"use strict";(()=>{var XLe=Object.create;var kv=Object.defineProperty;var n9=Object.getOwnPropertyDescriptor;var eRe=Object.getOwnPropertyNames;var tRe=Object.getPrototypeOf,nRe=Object.prototype.hasOwnProperty;var o9=e=>{throw TypeError(e)};var oRe=(e,t,n)=>t in e?kv(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var po=(e,t)=>()=>(e&&(t=e(e=0)),t);var r9=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),Dn=(e,t)=>{for(var n in t)kv(e,n,{get:t[n],enumerable:!0})},rRe=(e,t,n,o)=>{if(t&&typeof t=="object"||typeof t=="function")for(let r of eRe(t))!nRe.call(e,r)&&r!==n&&kv(e,r,{get:()=>t[r],enumerable:!(o=n9(t,r))||o.enumerable});return e};var X1=(e,t,n)=>(n=e!=null?XLe(tRe(e)):{},rRe(t||!e||!e.__esModule?kv(n,"default",{value:e,enumerable:!0}):n,e));var H=(e,t,n,o)=>{for(var r=o>1?void 0:o?n9(t,n):t,s=e.length-1,i;s>=0;s--)(i=e[s])&&(r=(o?i(t,n,r):i(r))||r);return o&&r&&kv(t,n,r),r};var Wt=(e,t,n)=>oRe(e,typeof t!="symbol"?t+"":t,n),eN=(e,t,n)=>t.has(e)||o9("Cannot "+n);var ye=(e,t,n)=>(eN(e,t,"read from private field"),n?n.call(e):t.get(e)),zt=(e,t,n)=>t.has(e)?o9("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),gt=(e,t,n,o)=>(eN(e,t,"write to private field"),o?o.call(e,n):t.set(e,n),n),Ip=(e,t,n)=>(eN(e,t,"access private method"),n);var Iv=(e,t,n,o)=>({set _(r){gt(e,t,r,n)},get _(){return ye(e,t,o)}});var Tle,ur,Kp,MF=po(()=>{Tle=new WeakMap,ur=e=>(...t)=>{let n=e(...t);return Tle.set(n,!0),n},Kp=e=>typeof e=="function"&&Tle.has(e)});var $F,K0,Jp,yh=po(()=>{$F=typeof window<"u"&&window.customElements!=null&&window.customElements.polyfillWrapFlushCallback!==void 0,K0=(e,t,n=null,o=null)=>{for(;t!==n;){let r=t.nextSibling;e.insertBefore(t,o),t=r}},Jp=(e,t,n=null)=>{for(;t!==n;){let o=t.nextSibling;e.removeChild(t),t=o}}});var Ds,J0,DF=po(()=>{Ds={},J0={}});var il,NF,wle,vh,hx,Sle,FF,Ns,Z0,xh=po(()=>{il=`{{lit-${String(Math.random()).slice(2)}}}`,NF=``,wle=new RegExp(`${il}|${NF}`),vh="$lit$",hx=class{constructor(t,n){this.parts=[],this.element=n;let o=[],r=[],s=document.createTreeWalker(n.content,133,null,!1),i=0,a=-1,l=0,{strings:c,values:{length:u}}=t;for(;l0;){let _=c[l],h=Z0.exec(_)[2],v=h.toLowerCase()+vh,y=p.getAttribute(v);p.removeAttribute(v);let T=y.split(wle);this.parts.push({type:"attribute",index:a,name:h,strings:T}),l+=T.length-1}}p.tagName==="TEMPLATE"&&(r.push(p),s.currentNode=p.content)}else if(p.nodeType===3){let m=p.data;if(m.indexOf(il)>=0){let g=p.parentNode,f=m.split(wle),_=f.length-1;for(let h=0;h<_;h++){let v,y=f[h];if(y==="")v=Ns();else{let T=Z0.exec(y);T!==null&&Sle(T[2],vh)&&(y=y.slice(0,T.index)+T[1]+T[2].slice(0,-vh.length)+T[3]),v=document.createTextNode(y)}g.insertBefore(v,p),this.parts.push({type:"node",index:++a})}f[_]===""?(g.insertBefore(Ns(),p),o.push(p)):p.data=f[_],l+=_}}else if(p.nodeType===8)if(p.data===il){let m=p.parentNode;(p.previousSibling===null||a===i)&&(a++,m.insertBefore(Ns(),p)),i=a,this.parts.push({type:"node",index:a}),p.nextSibling===null?p.data="":(o.push(p),a--),l++}else{let m=-1;for(;(m=p.data.indexOf(il,m+1))!==-1;)this.parts.push({type:"node",index:-1}),l++}}for(let p of o)p.parentNode.removeChild(p)}},Sle=(e,t)=>{let n=e.length-t.length;return n>=0&&e.slice(n)===t},FF=e=>e.index!==-1,Ns=()=>document.createComment(""),Z0=/([ \x09\x0a\x0c\x0d])([^\0-\x1F\x7F-\x9F "'>=/]+)([ \x09\x0a\x0c\x0d]*=[ \x09\x0a\x0c\x0d]*(?:[^ \x09\x0a\x0c\x0d"'`<>=]*|"[^"]*|'[^']*))$/});var Th,OF=po(()=>{yh();xh();Th=class{constructor(t,n,o){this.__parts=[],this.template=t,this.processor=n,this.options=o}update(t){let n=0;for(let o of this.__parts)o!==void 0&&o.setValue(t[n]),n++;for(let o of this.__parts)o!==void 0&&o.commit()}_clone(){let t=$F?this.template.element.content.cloneNode(!0):document.importNode(this.template.element.content,!0),n=[],o=this.template.parts,r=document.createTreeWalker(t,133,null,!1),s=0,i=0,a,l=r.nextNode();for(;s{yh();xh();Cle=window.trustedTypes&&trustedTypes.createPolicy("lit-html",{createHTML:e=>e}),xRe=` ${il} `,al=class{constructor(t,n,o,r){this.strings=t,this.values=n,this.type=o,this.processor=r}getHTML(){let t=this.strings.length-1,n="",o=!1;for(let r=0;r-1||o)&&s.indexOf("-->",i+1)===-1;let a=Z0.exec(s);a===null?n+=s+(o?xRe:NF):n+=s.substr(0,a.index)+a[1]+a[2]+vh+a[3]+il}return n+=this.strings[t],n}getTemplateElement(){let t=document.createElement("template"),n=this.getHTML();return Cle!==void 0&&(n=Cle.createHTML(n)),t.innerHTML=n,t}}});var ju,ek,wh,fa,es,Zp,bx,Vu,Ele,Xp,TRe,Sh=po(()=>{MF();yh();DF();OF();X0();xh();ju=e=>e===null||!(typeof e=="object"||typeof e=="function"),ek=e=>Array.isArray(e)||!!(e&&e[Symbol.iterator]),wh=class{constructor(t,n,o){this.dirty=!0,this.element=t,this.name=n,this.strings=o,this.parts=[];for(let r=0;r{try{let e={get capture(){return Ele=!0,!1}};window.addEventListener("test",e,e),window.removeEventListener("test",e,e)}catch{}})();Xp=class{constructor(t,n,o){this.value=void 0,this.__pendingValue=void 0,this.element=t,this.eventName=n,this.eventContext=o,this.__boundHandleEvent=r=>this.handleEvent(r)}setValue(t){this.__pendingValue=t}commit(){for(;Kp(this.__pendingValue);){let s=this.__pendingValue;this.__pendingValue=Ds,s(this)}if(this.__pendingValue===Ds)return;let t=this.__pendingValue,n=this.value,o=t==null||n!=null&&(t.capture!==n.capture||t.once!==n.once||t.passive!==n.passive),r=t!=null&&(n==null||o);o&&this.element.removeEventListener(this.eventName,this.__boundHandleEvent,this.__options),r&&(this.__options=TRe(t),this.element.addEventListener(this.eventName,this.__boundHandleEvent,this.__options)),this.value=t,this.__pendingValue=Ds}handleEvent(t){typeof this.value=="function"?this.value.call(this.eventContext||this.element,t):this.value.handleEvent(t)}},TRe=e=>e&&(Ele?{capture:e.capture,passive:e.passive,once:e.once}:e.capture)});var tk,nk,UF=po(()=>{Sh();tk=class{handleAttributeExpressions(t,n,o,r){let s=n[0];return s==="."?new bx(t,n.slice(1),o).parts:s==="@"?[new Xp(t,n.slice(1),r.eventContext)]:s==="?"?[new Zp(t,n.slice(1),o)]:new wh(t,n,o).parts}handleTextExpression(t){return new es(t)}},nk=new tk});function HF(e){let t=qF.get(e.type);t===void 0&&(t={stringsArray:new WeakMap,keyString:new Map},qF.set(e.type,t));let n=t.stringsArray.get(e.strings);if(n!==void 0)return n;let o=e.strings.join(il);return n=t.keyString.get(o),n===void 0&&(n=new hx(e,e.getTemplateElement()),t.keyString.set(o,n)),t.stringsArray.set(e.strings,n),n}var qF,BF=po(()=>{xh();qF=new Map});var zF,x,GF=po(()=>{yh();Sh();BF();zF=new WeakMap,x=(e,t,n)=>{let o=zF.get(t);o===void 0&&(Jp(t,t.firstChild),zF.set(t,o=new es(Object.assign({templateFactory:HF},n))),o.appendInto(t)),o.setValue(e),o.commit()}});var d,Qe=po(()=>{UF();X0();UF();MF();yh();DF();Sh();GF();BF();OF();X0();xh();typeof window<"u"&&(window.litHtmlVersions||(window.litHtmlVersions=[])).push("1.4.1");d=(e,...t)=>new al(e,t,"html",nk)});var VF,Ale,ts,kle=po(()=>{Qe();VF=class{constructor(t){this.classes=new Set,this.changed=!1,this.element=t;let n=(t.getAttribute("class")||"").split(/\s+/);for(let o of n)this.classes.add(o)}add(t){this.classes.add(t),this.changed=!0}remove(t){this.classes.delete(t),this.changed=!0}commit(){if(this.changed){let t="";this.classes.forEach(n=>t+=n+" "),this.element.setAttribute("class",t)}}},Ale=new WeakMap,ts=ur(e=>t=>{if(!(t instanceof fa)||t instanceof Vu||t.committer.name!=="class"||t.committer.parts.length>1)throw new Error("The `classMap` directive must be used in the `class` attribute and must be the only part in the attribute.");let{committer:n}=t,{element:o}=n,r=Ale.get(t);r===void 0&&(o.setAttribute("class",n.strings.join(" ")),Ale.set(t,r=new Set));let s=o.classList||new VF(o);r.forEach(i=>{i in e||(s.remove(i),r.delete(i))});for(let i in e){let a=e[i];a!=r.has(i)&&(a?(s.add(i),r.add(i)):(s.remove(i),r.delete(i)))}typeof s.commit=="function"&&s.commit()})});var jF,Ve,Ch=po(()=>{Qe();jF=new WeakMap,Ve=ur(e=>t=>{let n=jF.get(t);if(e===void 0&&t instanceof fa){if(n!==void 0||!jF.has(t)){let o=t.committer.name;t.committer.element.removeAttribute(o)}}else e!==n&&t.setValue(e);jF.set(t,e)})});var QF,Ile,Ple=po(()=>{Qe();QF=ur(e=>t=>{let n;if(t instanceof Xp||t instanceof es)throw new Error("The `live` directive is not allowed on text or event bindings");if(t instanceof Zp)Ile(t.strings),n=t.element.hasAttribute(t.name),t.value=n;else{let{element:o,name:r,strings:s}=t.committer;if(Ile(s),t instanceof Vu){if(n=o[r],n===e)return}else t instanceof fa&&(n=o.getAttribute(r));if(n===String(e))return}t.setValue(e)}),Ile=e=>{if(e.length!==2||e[0]!==""||e[1]!=="")throw new Error("`live` bindings can only contain a single expression")}});var Lle,em,YF,WF,Rle,Mle,$le,hn,Dle=po(()=>{Qe();Lle=(e,t)=>{let n=e.startNode.parentNode,o=t===void 0?e.endNode:t.startNode,r=n.insertBefore(Ns(),o);n.insertBefore(Ns(),o);let s=new es(e.options);return s.insertAfterNode(r),s},em=(e,t)=>(e.setValue(t),e.commit(),e),YF=(e,t,n)=>{let o=e.startNode.parentNode,r=n?n.startNode:e.endNode,s=t.endNode.nextSibling;s!==r&&K0(o,t.startNode,s,r)},WF=e=>{Jp(e.startNode.parentNode,e.startNode,e.endNode.nextSibling)},Rle=(e,t,n)=>{let o=new Map;for(let r=t;r<=n;r++)o.set(e[r],r);return o},Mle=new WeakMap,$le=new WeakMap,hn=ur((e,t,n)=>{let o;return n===void 0?n=t:t!==void 0&&(o=t),r=>{if(!(r instanceof es))throw new Error("repeat can only be used in text bindings");let s=Mle.get(r)||[],i=$le.get(r)||[],a=[],l=[],c=[],u=0;for(let v of e)c[u]=o?o(v,u):u,l[u]=n(v,u),u++;let p,m,g=0,f=s.length-1,_=0,h=l.length-1;for(;g<=f&&_<=h;)if(s[g]===null)g++;else if(s[f]===null)f--;else if(i[g]===c[_])a[_]=em(s[g],l[_]),g++,_++;else if(i[f]===c[h])a[h]=em(s[f],l[h]),f--,h--;else if(i[g]===c[h])a[h]=em(s[g],l[h]),YF(r,s[g],a[h+1]),g++,h--;else if(i[f]===c[_])a[_]=em(s[f],l[_]),YF(r,s[f],s[g]),f--,_++;else if(p===void 0&&(p=Rle(c,_,h),m=Rle(i,g,f)),!p.has(i[g]))WF(s[g]),g++;else if(!p.has(i[f]))WF(s[f]),f--;else{let v=m.get(c[_]),y=v!==void 0?s[v]:null;if(y===null){let T=Lle(r,s[g]);em(T,l[_]),a[_]=T}else a[_]=em(y,l[_]),YF(r,y,s[g]),s[v]=null;_++}for(;_<=h;){let v=Lle(r,a[h+1]);em(v,l[_]),a[_++]=v}for(;g<=f;){let v=s[g++];v!==null&&WF(v)}Mle.set(r,a),$le.set(r,c)}})});var Nle,F,tm=po(()=>{Sh();Qe();Nle=new WeakMap,F=ur(e=>t=>{if(!(t instanceof es))throw new Error("unsafeHTML can only be used in text bindings");let n=Nle.get(t);if(n!==void 0&&ju(e)&&e===n.value&&t.value===n.fragment)return;let o=document.createElement("template");o.innerHTML=e;let r=document.importNode(o.content,!0);t.setValue(r),Nle.set(t,{value:e,fragment:r})})});var Fle,Ole,Lo,Ule=po(()=>{Sh();Qe();Fle=new WeakMap,Ole=2147483647,Lo=ur((...e)=>t=>{let n=Fle.get(t);n===void 0&&(n={lastRenderedIndex:Ole,values:[]},Fle.set(t,n));let o=n.values,r=o.length;n.values=e;for(let s=0;sn.lastRenderedIndex);s++){let i=e[s];if(ju(i)||typeof i.then!="function"){t.setValue(i),n.lastRenderedIndex=s;break}s{let l=n.values.indexOf(i);l>-1&&l{"use strict";Qe();kle();Ch();Ple();Dle();tm();Ule()});function Rg(e){CR[e.name]=e}function O4(e){if(!e)return null;let t=e.replace(/^azurecli/,"bash").replace(/^azurepowershell/,"powershell"),n;if(t=t.replace(/^(bash|http|powershell|lab-on-demand|msgraph)(?:-|$)/,(s,i)=>(n=i,"")),n===void 0)return null;let o=CR[n]?CR[n].activateButtonConfig:{name:"unknown",attributes:[],iconClass:""},r={name:n,flags:{isExternal:n==="lab-on-demand",requiresStructuredData:n==="http"},activateButtonConfig:o};return t=t.replace(/(\w+)$/g,(s,i)=>(r.flags[i]=!0,"")),r}function vbe(e){return Array.from(e.childNodes).map(t=>t.nodeName==="CODE"?t.getAttribute("data-interactive-mode"):null).pop()}function U4(e,t){let n=F4[e.name];return n||(n=F4[e.name]=CR[e.name].create()),t.firstElementChild!==n.element&&x(n.element,t),{element:n.element,setCode:(o,r)=>n.setCode(o,r),execute:()=>n.execute(),dispose:()=>{delete F4[e.name],n.dispose()}}}var CR,F4,Mg=po(()=>{"use strict";k();CR={};F4={}});var Tz=r9((vz,xz)=>{(function(e,t){typeof vz=="object"&&typeof xz<"u"?xz.exports=t():typeof define=="function"&&define.amd?define(t):e.Bottleneck=t()})(vz,function(){"use strict";var e=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function t(qe){return qe&&qe.default||qe}var n=function(qe,z,A={}){var Y,re,de;for(Y in z)de=z[Y],A[Y]=(re=qe[Y])!=null?re:de;return A},o=function(qe,z,A={}){var Y,re;for(Y in qe)re=qe[Y],z[Y]!==void 0&&(A[Y]=re);return A},r={load:n,overwrite:o},s;s=class{constructor(z,A){this.incr=z,this.decr=A,this._first=null,this._last=null,this.length=0}push(z){var A;this.length++,typeof this.incr=="function"&&this.incr(),A={value:z,prev:this._last,next:null},this._last!=null?(this._last.next=A,this._last=A):this._first=this._last=A}shift(){var z;if(this._first!=null)return this.length--,typeof this.decr=="function"&&this.decr(),z=this._first.value,(this._first=this._first.next)!=null?this._first.prev=null:this._last=null,z}first(){if(this._first!=null)return this._first.value}getArray(){var z,A,Y;for(z=this._first,Y=[];z!=null;)Y.push((A=z,z=z.next,A.value));return Y}forEachShift(z){var A;for(A=this.shift();A!=null;)z(A),A=this.shift()}debug(){var z,A,Y,re,de;for(z=this._first,de=[];z!=null;)de.push((A=z,z=z.next,{value:A.value,prev:(Y=A.prev)!=null?Y.value:void 0,next:(re=A.next)!=null?re.value:void 0}));return de}};var i=s,a;a=class{constructor(z){if(this.instance=z,this._events={},this.instance.on!=null||this.instance.once!=null||this.instance.removeAllListeners!=null)throw new Error("An Emitter already exists for this object");this.instance.on=(A,Y)=>this._addListener(A,"many",Y),this.instance.once=(A,Y)=>this._addListener(A,"once",Y),this.instance.removeAllListeners=(A=null)=>A!=null?delete this._events[A]:this._events={}}_addListener(z,A,Y){var re;return(re=this._events)[z]==null&&(re[z]=[]),this._events[z].push({cb:Y,status:A}),this.instance}listenerCount(z){return this._events[z]!=null?this._events[z].length:0}async trigger(z,...A){var Y,re;try{return z!=="debug"&&this.trigger("debug",`Event triggered: ${z}`,A),this._events[z]==null?void 0:(this._events[z]=this._events[z].filter(function(de){return de.status!=="none"}),re=this._events[z].map(async de=>{var Ae,Be;if(de.status!=="none"){de.status==="once"&&(de.status="none");try{return Be=typeof de.cb=="function"?de.cb(...A):void 0,typeof Be?.then=="function"?await Be:Be}catch(Yt){return Ae=Yt,this.trigger("error",Ae),null}}}),(await Promise.all(re)).find(function(de){return de!=null}))}catch(de){return Y=de,this.trigger("error",Y),null}}};var l=a,c,u,p;c=i,u=l,p=class{constructor(z){var A;this.Events=new u(this),this._length=0,this._lists=function(){var Y,re,de;for(de=[],A=Y=1,re=z;1<=re?Y<=re:Y>=re;A=1<=re?++Y:--Y)de.push(new c(()=>this.incr(),()=>this.decr()));return de}.call(this)}incr(){if(this._length++===0)return this.Events.trigger("leftzero")}decr(){if(--this._length===0)return this.Events.trigger("zero")}push(z){return this._lists[z.options.priority].push(z)}queued(z){return z!=null?this._lists[z].length:this._length}shiftAll(z){return this._lists.forEach(function(A){return A.forEachShift(z)})}getFirst(z=this._lists){var A,Y,re;for(A=0,Y=z.length;A0)return re;return[]}shiftLastFrom(z){return this.getFirst(this._lists.slice(z).reverse()).shift()}};var m=p,g;g=class extends Error{};var f=g,_,h,v,y,T;y=10,h=5,T=r,_=f,v=class{constructor(z,A,Y,re,de,Ae,Be,Yt){this.task=z,this.args=A,this.rejectOnDrop=de,this.Events=Ae,this._states=Be,this.Promise=Yt,this.options=T.load(Y,re),this.options.priority=this._sanitizePriority(this.options.priority),this.options.id===re.id&&(this.options.id=`${this.options.id}-${this._randomIndex()}`),this.promise=new this.Promise((Qo,lr)=>{this._resolve=Qo,this._reject=lr}),this.retryCount=0}_sanitizePriority(z){var A;return A=~~z!==z?h:z,A<0?0:A>y-1?y-1:A}_randomIndex(){return Math.random().toString(36).slice(2)}doDrop({error:z,message:A="This job has been dropped by Bottleneck"}={}){return this._states.remove(this.options.id)?(this.rejectOnDrop&&this._reject(z??new _(A)),this.Events.trigger("dropped",{args:this.args,options:this.options,task:this.task,promise:this.promise}),!0):!1}_assertStatus(z){var A;if(A=this._states.jobStatus(this.options.id),!(A===z||z==="DONE"&&A===null))throw new _(`Invalid job status ${A}, expected ${z}. Please open an issue at https://github.com/SGrondin/bottleneck/issues`)}doReceive(){return this._states.start(this.options.id),this.Events.trigger("received",{args:this.args,options:this.options})}doQueue(z,A){return this._assertStatus("RECEIVED"),this._states.next(this.options.id),this.Events.trigger("queued",{args:this.args,options:this.options,reachedHWM:z,blocked:A})}doRun(){return this.retryCount===0?(this._assertStatus("QUEUED"),this._states.next(this.options.id)):this._assertStatus("EXECUTING"),this.Events.trigger("scheduled",{args:this.args,options:this.options})}async doExecute(z,A,Y,re){var de,Ae,Be;this.retryCount===0?(this._assertStatus("RUNNING"),this._states.next(this.options.id)):this._assertStatus("EXECUTING"),Ae={args:this.args,options:this.options,retryCount:this.retryCount},this.Events.trigger("executing",Ae);try{if(Be=await(z!=null?z.schedule(this.options,this.task,...this.args):this.task(...this.args)),A())return this.doDone(Ae),await re(this.options,Ae),this._assertStatus("DONE"),this._resolve(Be)}catch(Yt){return de=Yt,this._onFailure(de,Ae,A,Y,re)}}doExpire(z,A,Y){var re,de;return this._states.jobStatus(this.options.id==="RUNNING")&&this._states.next(this.options.id),this._assertStatus("EXECUTING"),de={args:this.args,options:this.options,retryCount:this.retryCount},re=new _(`This job timed out after ${this.options.expiration} ms.`),this._onFailure(re,de,z,A,Y)}async _onFailure(z,A,Y,re,de){var Ae,Be;if(Y())return Ae=await this.Events.trigger("failed",z,A),Ae!=null?(Be=~~Ae,this.Events.trigger("retry",`Retrying ${this.options.id} after ${Be} ms`,A),this.retryCount++,re(Be)):(this.doDone(A),await de(this.options,A),this._assertStatus("DONE"),this._reject(z))}doDone(z){return this._assertStatus("EXECUTING"),this._states.next(this.options.id),this.Events.trigger("done",z)}};var I=v,E,q,D;D=r,E=f,q=class{constructor(z,A,Y){this.instance=z,this.storeOptions=A,this.clientId=this.instance._randomIndex(),D.load(Y,Y,this),this._nextRequest=this._lastReservoirRefresh=this._lastReservoirIncrease=Date.now(),this._running=0,this._done=0,this._unblockTime=0,this.ready=this.Promise.resolve(),this.clients={},this._startHeartbeat()}_startHeartbeat(){var z;return this.heartbeat==null&&(this.storeOptions.reservoirRefreshInterval!=null&&this.storeOptions.reservoirRefreshAmount!=null||this.storeOptions.reservoirIncreaseInterval!=null&&this.storeOptions.reservoirIncreaseAmount!=null)?typeof(z=this.heartbeat=setInterval(()=>{var A,Y,re,de,Ae;if(de=Date.now(),this.storeOptions.reservoirRefreshInterval!=null&&de>=this._lastReservoirRefresh+this.storeOptions.reservoirRefreshInterval&&(this._lastReservoirRefresh=de,this.storeOptions.reservoir=this.storeOptions.reservoirRefreshAmount,this.instance._drainAll(this.computeCapacity())),this.storeOptions.reservoirIncreaseInterval!=null&&de>=this._lastReservoirIncrease+this.storeOptions.reservoirIncreaseInterval&&({reservoirIncreaseAmount:A,reservoirIncreaseMaximum:re,reservoir:Ae}=this.storeOptions,this._lastReservoirIncrease=de,Y=re!=null?Math.min(A,re-Ae):A,Y>0))return this.storeOptions.reservoir+=Y,this.instance._drainAll(this.computeCapacity())},this.heartbeatInterval)).unref=="function"?z.unref():void 0:clearInterval(this.heartbeat)}async __publish__(z){return await this.yieldLoop(),this.instance.Events.trigger("message",z.toString())}async __disconnect__(z){return await this.yieldLoop(),clearInterval(this.heartbeat),this.Promise.resolve()}yieldLoop(z=0){return new this.Promise(function(A,Y){return setTimeout(A,z)})}computePenalty(){var z;return(z=this.storeOptions.penalty)!=null?z:15*this.storeOptions.minTime||5e3}async __updateSettings__(z){return await this.yieldLoop(),D.overwrite(z,z,this.storeOptions),this._startHeartbeat(),this.instance._drainAll(this.computeCapacity()),!0}async __running__(){return await this.yieldLoop(),this._running}async __queued__(){return await this.yieldLoop(),this.instance.queued()}async __done__(){return await this.yieldLoop(),this._done}async __groupCheck__(z){return await this.yieldLoop(),this._nextRequest+this.timeout=z}check(z,A){return this.conditionsCheck(z)&&this._nextRequest-A<=0}async __check__(z){var A;return await this.yieldLoop(),A=Date.now(),this.check(z,A)}async __register__(z,A,Y){var re,de;return await this.yieldLoop(),re=Date.now(),this.conditionsCheck(A)?(this._running+=A,this.storeOptions.reservoir!=null&&(this.storeOptions.reservoir-=A),de=Math.max(this._nextRequest-re,0),this._nextRequest=re+de+this.storeOptions.minTime,{success:!0,wait:de,reservoir:this.storeOptions.reservoir}):{success:!1}}strategyIsBlock(){return this.storeOptions.strategy===3}async __submit__(z,A){var Y,re,de;if(await this.yieldLoop(),this.storeOptions.maxConcurrent!=null&&A>this.storeOptions.maxConcurrent)throw new E(`Impossible to add a job having a weight of ${A} to a limiter having a maxConcurrent setting of ${this.storeOptions.maxConcurrent}`);return re=Date.now(),de=this.storeOptions.highWater!=null&&z===this.storeOptions.highWater&&!this.check(A,re),Y=this.strategyIsBlock()&&(de||this.isBlocked(re)),Y&&(this._unblockTime=re+this.computePenalty(),this._nextRequest=this._unblockTime+this.storeOptions.minTime,this.instance._dropAllQueued()),{reachedHWM:de,blocked:Y,strategy:this.storeOptions.strategy}}async __free__(z,A){return await this.yieldLoop(),this._running-=A,this._done+=A,this.instance._drainAll(this.computeCapacity()),{running:this._running}}};var le=q,we,K;we=f,K=class{constructor(z){this.status=z,this._jobs={},this.counts=this.status.map(function(){return 0})}next(z){var A,Y;if(A=this._jobs[z],Y=A+1,A!=null&&Y(z[this.status[Y]]=A,z),{})}};var Le=K,Ke,Pt;Ke=i,Pt=class{constructor(z,A){this.schedule=this.schedule.bind(this),this.name=z,this.Promise=A,this._running=0,this._queue=new Ke}isEmpty(){return this._queue.length===0}async _tryToRun(){var z,A,Y,re,de,Ae,Be;if(this._running<1&&this._queue.length>0)return this._running++,{task:Be,args:z,resolve:de,reject:re}=this._queue.shift(),A=await async function(){try{return Ae=await Be(...z),function(){return de(Ae)}}catch(Yt){return Y=Yt,function(){return re(Y)}}}(),this._running--,this._tryToRun(),A()}schedule(z,...A){var Y,re,de;return de=re=null,Y=new this.Promise(function(Ae,Be){return de=Ae,re=Be}),this._queue.push({task:z,args:A,resolve:de,reject:re}),this._tryToRun(),Y}};var nn=Pt,Ut="2.19.5",sn={version:Ut},uo=Object.freeze({version:Ut,default:sn}),Lt=()=>console.log("You must import the full version of Bottleneck in order to use this feature."),cn=()=>console.log("You must import the full version of Bottleneck in order to use this feature."),Q=()=>console.log("You must import the full version of Bottleneck in order to use this feature."),X,U,se,fe,L,M;M=r,X=l,fe=Lt,se=cn,L=Q,U=function(){class qe{constructor(A={}){this.deleteKey=this.deleteKey.bind(this),this.limiterOptions=A,M.load(this.limiterOptions,this.defaults,this),this.Events=new X(this),this.instances={},this.Bottleneck=ar,this._startAutoCleanup(),this.sharedConnection=this.connection!=null,this.connection==null&&(this.limiterOptions.datastore==="redis"?this.connection=new fe(Object.assign({},this.limiterOptions,{Events:this.Events})):this.limiterOptions.datastore==="ioredis"&&(this.connection=new se(Object.assign({},this.limiterOptions,{Events:this.Events}))))}key(A=""){var Y;return(Y=this.instances[A])!=null?Y:(()=>{var re;return re=this.instances[A]=new this.Bottleneck(Object.assign(this.limiterOptions,{id:`${this.id}-${A}`,timeout:this.timeout,connection:this.connection})),this.Events.trigger("created",re,A),re})()}async deleteKey(A=""){var Y,re;return re=this.instances[A],this.connection&&(Y=await this.connection.__runCommand__(["del",...L.allKeys(`${this.id}-${A}`)])),re!=null&&(delete this.instances[A],await re.disconnect()),re!=null||Y>0}limiters(){var A,Y,re,de;Y=this.instances,re=[];for(A in Y)de=Y[A],re.push({key:A,limiter:de});return re}keys(){return Object.keys(this.instances)}async clusterKeys(){var A,Y,re,de,Ae,Be,Yt,Qo,lr;if(this.connection==null)return this.Promise.resolve(this.keys());for(Be=[],A=null,lr=`b_${this.id}-`.length,Y=9;A!==0;)for([Qo,re]=await this.connection.__runCommand__(["scan",A??0,"match",`b_${this.id}-*_settings`,"count",1e4]),A=~~Qo,de=0,Yt=re.length;de{var Y,re,de,Ae,Be,Yt;Be=Date.now(),de=this.instances,Ae=[];for(re in de){Yt=de[re];try{await Yt._store.__groupCheck__(Be)?Ae.push(this.deleteKey(re)):Ae.push(void 0)}catch(Qo){Y=Qo,Ae.push(Yt.Events.trigger("error",Y))}}return Ae},this.timeout/2)).unref=="function"?A.unref():void 0}updateSettings(A={}){if(M.overwrite(A,this.defaults,this),M.overwrite(A,A,this.limiterOptions),A.timeout!=null)return this._startAutoCleanup()}disconnect(A=!0){var Y;if(!this.sharedConnection)return(Y=this.connection)!=null?Y.disconnect(A):void 0}}return qe.prototype.defaults={timeout:1e3*60*5,connection:null,Promise,id:"group-key"},qe}.call(e);var Z=U,ae,Pe,Je;Je=r,Pe=l,ae=function(){class qe{constructor(A={}){this.options=A,Je.load(this.options,this.defaults,this),this.Events=new Pe(this),this._arr=[],this._resetPromise(),this._lastFlush=Date.now()}_resetPromise(){return this._promise=new this.Promise((A,Y)=>this._resolve=A)}_flush(){return clearTimeout(this._timeout),this._lastFlush=Date.now(),this._resolve(),this.Events.trigger("batch",this._arr),this._arr=[],this._resetPromise()}add(A){var Y;return this._arr.push(A),Y=this._promise,this._arr.length===this.maxSize?this._flush():this.maxTime!=null&&this._arr.length===1&&(this._timeout=setTimeout(()=>this._flush(),this.maxTime)),Y}}return qe.prototype.defaults={maxTime:null,maxSize:null,Promise},qe}.call(e);var it=ae,on=()=>console.log("You must import the full version of Bottleneck in order to use this feature."),$n=t(uo),un,G,ue,O,ee,ie,ke,Ie,He,Ue,vt,Cr=[].splice;ie=10,G=5,vt=r,ke=m,O=I,ee=le,Ie=on,ue=l,He=Le,Ue=nn,un=function(){class qe{constructor(A={},...Y){var re,de;this._addToQueue=this._addToQueue.bind(this),this._validateOptions(A,Y),vt.load(A,this.instanceDefaults,this),this._queues=new ke(ie),this._scheduled={},this._states=new He(["RECEIVED","QUEUED","RUNNING","EXECUTING"].concat(this.trackDoneStatus?["DONE"]:[])),this._limiter=null,this.Events=new ue(this),this._submitLock=new Ue("submit",this.Promise),this._registerLock=new Ue("register",this.Promise),de=vt.load(A,this.storeDefaults,{}),this._store=function(){if(this.datastore==="redis"||this.datastore==="ioredis"||this.connection!=null)return re=vt.load(A,this.redisStoreDefaults,{}),new Ie(this,de,re);if(this.datastore==="local")return re=vt.load(A,this.localStoreDefaults,{}),new ee(this,de,re);throw new qe.prototype.BottleneckError(`Invalid datastore type: ${this.datastore}`)}.call(this),this._queues.on("leftzero",()=>{var Ae;return(Ae=this._store.heartbeat)!=null&&typeof Ae.ref=="function"?Ae.ref():void 0}),this._queues.on("zero",()=>{var Ae;return(Ae=this._store.heartbeat)!=null&&typeof Ae.unref=="function"?Ae.unref():void 0})}_validateOptions(A,Y){if(!(A!=null&&typeof A=="object"&&Y.length===0))throw new qe.prototype.BottleneckError("Bottleneck v2 takes a single object argument. Refer to https://github.com/SGrondin/bottleneck#upgrading-to-v2 if you're upgrading from Bottleneck v1.")}ready(){return this._store.ready}clients(){return this._store.clients}channel(){return`b_${this.id}`}channel_client(){return`b_${this.id}_${this._store.clientId}`}publish(A){return this._store.__publish__(A)}disconnect(A=!0){return this._store.__disconnect__(A)}chain(A){return this._limiter=A,this}queued(A){return this._queues.queued(A)}clusterQueued(){return this._store.__queued__()}empty(){return this.queued()===0&&this._submitLock.isEmpty()}running(){return this._store.__running__()}done(){return this._store.__done__()}jobStatus(A){return this._states.jobStatus(A)}jobs(A){return this._states.statusJobs(A)}counts(){return this._states.statusCounts()}_randomIndex(){return Math.random().toString(36).slice(2)}check(A=1){return this._store.__check__(A)}_clearGlobalState(A){return this._scheduled[A]!=null?(clearTimeout(this._scheduled[A].expiration),delete this._scheduled[A],!0):!1}async _free(A,Y,re,de){var Ae,Be;try{if({running:Be}=await this._store.__free__(A,re.weight),this.Events.trigger("debug",`Freed ${re.id}`,de),Be===0&&this.empty())return this.Events.trigger("idle")}catch(Yt){return Ae=Yt,this.Events.trigger("error",Ae)}}_run(A,Y,re){var de,Ae,Be;return Y.doRun(),de=this._clearGlobalState.bind(this,A),Be=this._run.bind(this,A,Y),Ae=this._free.bind(this,A,Y),this._scheduled[A]={timeout:setTimeout(()=>Y.doExecute(this._limiter,de,Be,Ae),re),expiration:Y.options.expiration!=null?setTimeout(function(){return Y.doExpire(de,Be,Ae)},re+Y.options.expiration):void 0,job:Y}}_drainOne(A){return this._registerLock.schedule(()=>{var Y,re,de,Ae,Be;return this.queued()===0?this.Promise.resolve(null):(Be=this._queues.getFirst(),{options:Ae,args:Y}=de=Be.first(),A!=null&&Ae.weight>A?this.Promise.resolve(null):(this.Events.trigger("debug",`Draining ${Ae.id}`,{args:Y,options:Ae}),re=this._randomIndex(),this._store.__register__(re,Ae.weight,Ae.expiration).then(({success:Yt,wait:Qo,reservoir:lr})=>{var Av;return this.Events.trigger("debug",`Drained ${Ae.id}`,{success:Yt,args:Y,options:Ae}),Yt?(Be.shift(),Av=this.empty(),Av&&this.Events.trigger("empty"),lr===0&&this.Events.trigger("depleted",Av),this._run(re,de,Qo),this.Promise.resolve(Ae.weight)):this.Promise.resolve(null)})))})}_drainAll(A,Y=0){return this._drainOne(A).then(re=>{var de;return re!=null?(de=A!=null?A-re:A,this._drainAll(de,Y+re)):this.Promise.resolve(Y)}).catch(re=>this.Events.trigger("error",re))}_dropAllQueued(A){return this._queues.shiftAll(function(Y){return Y.doDrop({message:A})})}stop(A={}){var Y,re;return A=vt.load(A,this.stopDefaults),re=de=>{var Ae;return Ae=()=>{var Be;return Be=this._states.counts,Be[0]+Be[1]+Be[2]+Be[3]===de},new this.Promise((Be,Yt)=>Ae()?Be():this.on("done",()=>{if(Ae())return this.removeAllListeners("done"),Be()}))},Y=A.dropWaitingJobs?(this._run=function(de,Ae){return Ae.doDrop({message:A.dropErrorMessage})},this._drainOne=()=>this.Promise.resolve(null),this._registerLock.schedule(()=>this._submitLock.schedule(()=>{var de,Ae,Be;Ae=this._scheduled;for(de in Ae)Be=Ae[de],this.jobStatus(Be.job.options.id)==="RUNNING"&&(clearTimeout(Be.timeout),clearTimeout(Be.expiration),Be.job.doDrop({message:A.dropErrorMessage}));return this._dropAllQueued(A.dropErrorMessage),re(0)}))):this.schedule({priority:ie-1,weight:0},()=>re(1)),this._receive=function(de){return de._reject(new qe.prototype.BottleneckError(A.enqueueErrorMessage))},this.stop=()=>this.Promise.reject(new qe.prototype.BottleneckError("stop() has already been called")),Y}async _addToQueue(A){var Y,re,de,Ae,Be,Yt,Qo;({args:Y,options:Ae}=A);try{({reachedHWM:Be,blocked:re,strategy:Qo}=await this._store.__submit__(this.queued(),Ae.weight))}catch(lr){return de=lr,this.Events.trigger("debug",`Could not queue ${Ae.id}`,{args:Y,options:Ae,error:de}),A.doDrop({error:de}),!1}return re?(A.doDrop(),!0):Be&&(Yt=Qo===qe.prototype.strategy.LEAK?this._queues.shiftLastFrom(Ae.priority):Qo===qe.prototype.strategy.OVERFLOW_PRIORITY?this._queues.shiftLastFrom(Ae.priority+1):Qo===qe.prototype.strategy.OVERFLOW?A:void 0,Yt?.doDrop(),Yt==null||Qo===qe.prototype.strategy.OVERFLOW)?(Yt==null&&A.doDrop(),Be):(A.doQueue(Be,re),this._queues.push(A),await this._drainAll(),Be)}_receive(A){return this._states.jobStatus(A.options.id)!=null?(A._reject(new qe.prototype.BottleneckError(`A job with the same id already exists (id=${A.options.id})`)),!1):(A.doReceive(),this._submitLock.schedule(this._addToQueue,A))}submit(...A){var Y,re,de,Ae,Be,Yt,Qo;return typeof A[0]=="function"?(Be=A,[re,...A]=Be,[Y]=Cr.call(A,-1),Ae=vt.load({},this.jobDefaults)):(Yt=A,[Ae,re,...A]=Yt,[Y]=Cr.call(A,-1),Ae=vt.load(Ae,this.jobDefaults)),Qo=(...lr)=>new this.Promise(function(Av,ZLe){return re(...lr,function(...t9){return(t9[0]!=null?ZLe:Av)(t9)})}),de=new O(Qo,A,Ae,this.jobDefaults,this.rejectOnDrop,this.Events,this._states,this.Promise),de.promise.then(function(lr){return typeof Y=="function"?Y(...lr):void 0}).catch(function(lr){return Array.isArray(lr)?typeof Y=="function"?Y(...lr):void 0:typeof Y=="function"?Y(lr):void 0}),this._receive(de)}schedule(...A){var Y,re,de;return typeof A[0]=="function"?([de,...A]=A,re={}):[re,de,...A]=A,Y=new O(de,A,re,this.jobDefaults,this.rejectOnDrop,this.Events,this._states,this.Promise),this._receive(Y),Y.promise}wrap(A){var Y,re;return Y=this.schedule.bind(this),re=function(...de){return Y(A.bind(this),...de)},re.withOptions=function(de,...Ae){return Y(de,A,...Ae)},re}async updateSettings(A={}){return await this._store.__updateSettings__(vt.overwrite(A,this.storeDefaults)),vt.overwrite(A,this.instanceDefaults,this),this}currentReservoir(){return this._store.__currentReservoir__()}incrementReservoir(A=0){return this._store.__incrementReservoir__(A)}}return qe.default=qe,qe.Events=ue,qe.version=qe.prototype.version=$n.version,qe.strategy=qe.prototype.strategy={LEAK:1,OVERFLOW:2,OVERFLOW_PRIORITY:4,BLOCK:3},qe.BottleneckError=qe.prototype.BottleneckError=f,qe.Group=qe.prototype.Group=Z,qe.RedisConnection=qe.prototype.RedisConnection=Lt,qe.IORedisConnection=qe.prototype.IORedisConnection=cn,qe.Batcher=qe.prototype.Batcher=it,qe.prototype.jobDefaults={priority:G,weight:1,expiration:null,id:""},qe.prototype.storeDefaults={maxConcurrent:null,minTime:0,highWater:null,strategy:qe.prototype.strategy.LEAK,penalty:null,reservoir:null,reservoirRefreshInterval:null,reservoirRefreshAmount:null,reservoirIncreaseInterval:null,reservoirIncreaseAmount:null,reservoirIncreaseMaximum:null},qe.prototype.localStoreDefaults={Promise,timeout:null,heartbeatInterval:250},qe.prototype.redisStoreDefaults={Promise,timeout:null,heartbeatInterval:5e3,clientTimeout:1e4,Redis:null,clientOptions:{},clusterNodes:null,clearDatastore:!1,connection:null},qe.prototype.instanceDefaults={datastore:"local",connection:null,id:"",rejectOnDrop:!0,trackDoneStatus:!1,Promise},qe.prototype.stopDefaults={enqueueErrorMessage:"This limiter has been stopped and cannot accept new jobs.",dropWaitingJobs:!0,dropErrorMessage:"This limiter has been stopped."},qe}.call(e);var ar=un,kp=ar;return kp})});var Nve=r9(EM=>{"use strict";Object.defineProperty(EM,"__esModule",{value:!0});EM.format=n3e;EM.parse=o3e;var XBe=/^[\u0009\u0020-\u007e\u0080-\u00ff]*$/,Lve=/^[!#$%&'*+.^_`|~0-9A-Za-z-]+$/,e3e=/[\\"]/g,t3e=/^[!#$%&'*+.^_`|~0-9A-Za-z-]+\/[!#$%&'*+.^_`|~0-9A-Za-z-]+$/,Rve=(()=>{let e=function(){};return e.prototype=Object.create(null),e})();function n3e(e){let{type:t,parameters:n}=e;if(!t||!t3e.test(t))throw new TypeError(`Invalid type: ${t}`);let o=t;if(n)for(let r of Object.keys(n)){if(!Lve.test(r))throw new TypeError(`Invalid parameter name: ${r}`);o+=`; ${r}=${a3e(n[r])}`}return o}function o3e(e,t){let n=e.length,o=kz(e,0,n),r=o;o=Az(e,o,n);let s=Iz(e,r,o),i=e.slice(r,s).toLowerCase(),a=t?.parameters===!1?new Rve:i3e(e,o,n);return{type:i,parameters:a}}var Mve=32,$ve=9,Dve=59,r3e=61,Pve=34,s3e=92;function i3e(e,t,n){let o=new Rve;e:for(;tt;){let o=e.charCodeAt(n-1);if(o!==Mve&&o!==$ve)break;n--}return n}function a3e(e){if(Lve.test(e))return e;if(XBe.test(e))return`"${e.replace(e3e,"\\$&")}"`;throw new TypeError(`Invalid parameter value: ${e}`)}});function s9(){window.addEventListener("click",({target:e})=>{let t=e instanceof Element&&e.closest("[data-dismiss]");if(!t)return;let n=t.closest("[data-dismissable]");n&&sRe(n)})}function sRe(e){let t=e.getAttribute("data-dismiss-animation");if(t)switch(e.addEventListener("animationend",()=>{e.remove()}),t){case"slide-up":e.classList.add("animation-slide-up");break;case"fade":e.classList.add("animation-fade");break}else e.remove();window.dispatchEvent(new CustomEvent("dismiss-content-update"))}function Pv(e=document.body){e.addEventListener("toggle",t=>{let n=t.target instanceof Element&&t.target.closest("details.popover")||t.target instanceof Element&&t.target.shadowRoot?.activeElement?.closest("details.popover");if(!n)return;let o=n.querySelector(".popover-content");if(!o)return;if(!n.open){o.style.visibility="hidden";return}requestAnimationFrame(()=>{a9(n),o.offsetHeight});let r=()=>{n.open&&a9(n)},s=c=>{c.key==="Escape"&&l()},i=c=>{c.target instanceof Element&&(n?.contains(c.target)||l(),c.type==="click"&&c.target.closest("[data-popover-close]")&&l())},a=()=>{document.activeElement?.nodeName?.toLowerCase()==="iframe"&&l()},l=()=>{e.removeEventListener("focus",i,!0),e.removeEventListener("click",i),e.removeEventListener("touchstart",i),e.removeEventListener("keydown",s),window.removeEventListener("blur",a),window.removeEventListener("resize",r),n?.open&&(n.removeAttribute("open"),o.style.visibility="hidden")};e.addEventListener("focus",i,!0),e.addEventListener("click",i),e.addEventListener("touchstart",i),e.addEventListener("keydown",s),window.addEventListener("blur",a),window.addEventListener("resize",r)},!0)}var i9=24,tN=8;function iRe(e){return window.getComputedStyle(e).direction==="rtl"}function aRe(e,t,n){let o=n.getBoundingClientRect(),r=window.innerHeight-o.bottom,s=o.top,i=e.classList.contains("popover-top"),a=e.classList.contains("popover-bottom"),l=t.offsetHeight,c=a||!i&&(l+tN>s||r>=l||r>=s),u=e.classList.contains("popover-caret");u&&e.classList.remove("popover-caret-bottom");let p=0;c?p=n.offsetTop+n.offsetHeight+tN:(p=n.offsetTop-t.offsetHeight-tN,u&&e.classList.add("popover-caret-bottom")),t.style.top=`${p}px`}function lRe(e,t,n,o){let r=t.offsetWidth,s=n.offsetWidth,i=window.innerWidth,l=t.offsetParent.getBoundingClientRect(),c=n.offsetLeft,u=c+s,p,m=e.classList.contains("popover-left"),g=e.classList.contains("popover-right");if(m)p=o?u-r:c;else if(g)p=o?c:u-r;else{p=c+s/2-r/2;let f=l.left+p,_=f+r;fi-i9&&(p=u-r)}return o?(t.style.setProperty("left",`${p}px`),t.style.setProperty("right","auto")):t.style.setProperty("inset-inline-start",`${p}px`),p}function cRe(e,t,n,o){let r=e.offsetWidth,s=t.offsetWidth,a=t.offsetLeft+s/2,l;o?l=100-(a-n+4)/r*100:l=(a-n-4)/r*100;let c=Math.min(Math.max(l,10),90);e.style.setProperty("--caret-left",`${c}%`)}function a9(e){let t=e.querySelector(".popover-content"),n=e.querySelector("summary");if(!t||!n)return;t.style.top="",t.style.left="",t.style.right="",t.style.setProperty("inset-inline-start","");let o=iRe(e);aRe(e,t,n);let r=lRe(e,t,n,o);e.classList.contains("popover-caret")&&cRe(t,n,r,o),t.style.visibility="visible"}var nN=!1;function l9(){dRe();let e=Array.from(document.querySelectorAll("[data-snap-scroll]"));for(let t of e)uRe(t)}function uRe(e){let t=e.querySelector("[data-snap-scroll-slides]");if(!t)throw new Error('Your snap scroll element must contain a scrollable element with "data-snap-scroll-slides" attribute.');let n=Array.from(t.querySelectorAll("[data-snap-scroll-slide]")),o={root:t,rootMargin:"0px",threshold:.8},r=new IntersectionObserver(s=>{if(!nN&&s[0].isIntersecting===!0){let i=s[0].target.getAttribute("data-snap-scroll-slide");if(!i)throw new Error("The [data-snap-scroll-slide] clicked does not correspond to a [data-snap-scroll-nav-item]");let a=e.querySelector(`[data-snap-scroll-nav-item="${i}"]`);if(!a)throw new Error("Anchor missing from snap scroll container");c9(e,a)}},o);n.forEach(s=>r.observe(s))}function dRe(){window.addEventListener("click",e=>{let t=e.target instanceof Element&&e.target.closest("[data-snap-scroll-nav-item]");if(!t)return;let n=t.closest("[data-snap-scroll]");if(!n)return;let o=t.dataset.snapScrollNavItem;if(!o)throw new Error('You need to add a value to the parent of your snap scroll: [data-snap-scroll="id-goes-here")');nN=!0,e.preventDefault();let r=n.querySelector(`[data-snap-scroll-slide="${o}"]`);c9(n,t),r.scrollIntoView({behavior:"auto",block:"nearest",inline:"start"}),setTimeout(()=>nN=!1,500)})}function c9(e,t){let n=Array.from(e.querySelectorAll("[data-snap-scroll-nav-item]"));for(let o of n)o.classList.remove("is-current");t.classList.add("is-current")}var pRe=0;function Pp(){return`bx-${pRe++}`}function u9(e){return e.replace(/-./g,t=>t[1].toUpperCase())}var eXe=new Promise(e=>{document.readyState==="loading"?document.addEventListener("DOMContentLoaded",()=>e()):e()});var d9={contentHasChanged:"Content has changed, please reload the page to get the latest changes.",inputGroupRequired:"At least one selection for {inputGroup} is required.",inputMaxLength:"{inputLabel} cannot be longer than {maxLength} characters.",inputMinLength:"{inputLabel} must be at least {minLength} characters.",inputRequired:"{inputLabel} is required.",notAuthenticated:"You are not authenticated. Please refresh the page and try again. If this issue persists, please log out and log back in.",notAuthorized:"You are not authorized to make this response. If you believe this to be in error, please refresh the page and try again.",pleaseFixTheFollowingIssues:"Please fix the following issues to continue:",thereAreNoEditsToSubmit:"There are no edits to submit.",tooManyRequests:"You have sent too many requests. Please wait a few minutes and try again.",weEncounteredAnUnexpectedError:"We encountered an unexpected error. Please try again later. If this issue continues, please contact site support."},KC=class extends HTMLElement{constructor(){super();Wt(this,"submitting",!1);Wt(this,"initialData",new FormData);Wt(this,"toDispose",[]);Wt(this,"isDirty",!1);Wt(this,"commitTimeout",0);Wt(this,"locStrings",d9);Wt(this,"validators",[this.validateMinLength.bind(this),this.validateRequired.bind(this),this.validateMaxLength.bind(this)]);Wt(this,"commit",n=>{!g9(n.target,this.form)||!n.target?.form||n.target?.form!==this.parentElement||(clearTimeout(this.commitTimeout),n.type==="change"&&mRe(n.target),this.setDirty())});this.locStrings=this.locStrings}get canSave(){return this.isDirty||this.isNew}get form(){return this.closest("form")}get hideUnloadMessage(){return this.hasAttribute("nounload")}get isNew(){return this.hasAttribute("new")}get noSubmit(){return this.hasAttribute("nosubmit")}connectedCallback(){let n=this.parentElement;if(!(n instanceof HTMLFormElement))return;this.locStrings=this.getLocaleStrings(),n.setAttribute("novalidate","");let o=document.createElement("div");o.setAttribute("data-form-error-container",""),n.hasAttribute("data-hide-validation-banner")&&(o.hidden=!0),this.insertAdjacentElement("afterend",o),this.initialData=new FormData(n),this.ownerDocument.readyState==="loading"&&this.ownerDocument.addEventListener("readystatechange",()=>this.initialData=new FormData(n)),this.subscribe(n,"input",this),this.subscribe(n,"change",this),this.subscribe(n,"submit",this),this.subscribe(window,"beforeunload",this)}disconnectedCallback(){for(let n of this.toDispose)n()}getLocaleStrings(){let n=Array.from(this.attributes).filter(o=>o.name.startsWith("loc-")).reduce((o,r)=>(o[u9(r.name.substring(4))]=r.value,o),{});return Object.assign({},d9,n)}subscribe(n,o,r){n.addEventListener(o,r),this.toDispose.push(()=>n.removeEventListener(o,r))}setDirty(){let n=new URLSearchParams(this.initialData).toString(),o=new URLSearchParams(new FormData(this.parentElement)).toString();this.isDirty=o!==n}handleEvent(n){switch(n.type){case"submit":this.handleSubmitEvent(n);break;case"beforeunload":this.handleUnloadEvent(n);break;case"input":this.clearValidationErrors(n.target),this.scheduleCommit(n);break;case"change":this.clearValidationErrors(n.target),this.commit(n);break;default:throw new Error(`Unexpected event ${n.type}.`)}}navigate(n){return fRe(n,this.getAttribute("navigation"))}scheduleCommit(n){clearTimeout(this.commitTimeout),setTimeout(this.commit,300,n)}async handleUnloadEvent(n){this.setDirty(),!(!this.isDirty||this.hideUnloadMessage)&&(n.preventDefault(),n.returnValue="You have unsaved work.")}async handleSubmitEvent(n){if(n.preventDefault(),this.submitting)return;let o=n.currentTarget;if(!this.canSave){this.showNoChangesMessage(o);let s=new CustomEvent("form-validating",{detail:{form:o},bubbles:!0});this.dispatchEvent(s);return}let r=!1;try{if(this.submitting=!0,p9(n,o,this.submitting),!(await this.validateForm(o)).valid||this.noSubmit)return;let i=bRe(n)??o.action,a=new URL(i).searchParams,l=new FormData(o),c=new Headers;c.set("content-type","applicationhttps://www.microsoft.com/json");for(let{name:h,value:v}of this.attributes)h.startsWith("header-")&&c.set(h.substring(7),v);let p={method:a.get("_method")||o.method||"GET",body:JSON.stringify(Object.fromEntries(l)),headers:c},m=new CustomEvent("beforesubmit",{detail:{url:i,init:p,form:o,callback:async()=>{}},bubbles:!0,cancelable:!0}),g=!this.dispatchEvent(m);if(m.detail.callback)try{await m.detail.callback()}catch{return}if(g)return;let f,_;try{if(f=new Request(m.detail.url,m.detail.init),_=await fetch(f),_.ok)this.removeAttribute("new"),this.initialData=l,this.setDirty(),this.dispatchEvent(new CustomEvent("aftersubmit",{detail:{request:f,response:_},bubbles:!0})),r=this.navigate(_.headers.get("location")??this.getAttribute("navigation-href"));else{let h=this.locStrings.weEncounteredAnUnexpectedError;switch(_.status){case 401:h=this.locStrings.notAuthenticated;break;case 403:h=this.locStrings.notAuthorized;break;case 412:h=this.locStrings.contentHasChanged;break;case 429:h=this.locStrings.tooManyRequests;break}this.submissionError(o,h,f,_)}}catch{this.submissionError(o,this.locStrings.weEncounteredAnUnexpectedError,f,_);return}}finally{this.submitting=r,p9(n,o,this.submitting)}}createErrorAlert(n){let o=n.querySelector("[data-form-error-container]")||n,r=Pp(),s=document.createElement("div");s.className="help help-danger background-color-danger-light border border-color-danger border-radius padding-xs margin-bottom-sm",s.setAttribute("data-form-error-alert",""),s.setAttribute("role","alert"),s.setAttribute("aria-labelledby",r),s.setAttribute("tabindex","-1"),s.hidden=!0;let i=document.createElement("p");i.id=r,i.className="font-size-md font-weight-semibold margin-bottom-xs display-inline-flex",i.innerText=this.locStrings.pleaseFixTheFollowingIssues;let a=document.createElement("ul");return a.setAttribute("aria-label","Validation errors"),a.classList.add("margin-left-sm-tablet"),s.append(i,a),o.appendChild(s),{errorAlert:s,errorList:a}}getErrorAlert(n){let o=n.querySelector("[data-form-error-alert]");return o?{errorAlert:o,errorList:o.lastElementChild}:this.createErrorAlert(n)}submissionError(n,o,r,s){let{errorAlert:i,errorList:a}=this.getErrorAlert(n),l=document.createElement("li");l.innerText=o,this.dispatchEvent(new CustomEvent("submission-error",{detail:{form:n,request:r,response:s},bubbles:!0})),a.appendChild(l),i.hidden=!1,i.focus()}validateRequired(n,o){return n.validity.valueMissing?this.locStrings.inputRequired.replace("{inputLabel}",customElements.get(n.localName)||n.type==="radio"?`A selection for "${o}"`:o):null}validateMinLength(n,o){return(n instanceof HTMLTextAreaElement||n instanceof HTMLInputElement)&&(n.validity.tooShort||n.minLength>0&&n.value.length0&&n.value.length>n.maxLength)?this.locStrings.inputMaxLength.replace("{inputLabel}",o).replace("{maxLength}",n.maxLength.toString()):null}async validateForm(n,o=!0,r=n){let s=[],{errorAlert:i,errorList:a}=this.getErrorAlert(n);(o||n.hasAttribute("data-hide-validation-banner"))&&(i.hidden=!0,a.innerHTML="");let l=hRe(n);for(let c of[...n.elements,...l]){if(!r.contains(c)||!oN(c,n))continue;if(c.type==="radio"){let m=n.querySelectorAll(`input[name="${c.name}"]`);if(m.length>1&&m[0]!==c)continue}if(c.hasAttribute("aria-hidden")===!0||c.getAttribute("role")==="combobox"||c.closest("docs-markdown-editor"))continue;if(c.hasAttribute("data-skip-validation")){let m=new CustomEvent("form-validating",{detail:{errors:s,form:n},bubbles:!0});this.dispatchEvent(m);continue}let u=!!l.find(m=>m===c);this.runBasicValidation(c,o,s,a,u);let p=new CustomEvent("form-validating",{detail:{errors:s,form:n},bubbles:!0});this.dispatchEvent(p)}return s.length===0?{valid:!0}:(o&&(i.hidden=!1,i.focus()),{valid:!1,errors:s})}clearValidationErrors(n){if(!oN(n,this.form))return;if(m9(n),Er(n,""),cr(n).classList.remove("errored"),n.form){let{errorAlert:r,errorList:s}=this.getErrorAlert(n.form);s.querySelectorAll(`a[href="http://approjects.co.za/?big=#${n.id}"]`).forEach(i=>i.parentElement?.remove()),s.querySelector("#no-edits-error")?.remove(),s.firstElementChild||(r.hidden=!0)}let o=new CustomEvent("clear-validation-errors",{detail:{target:n},bubbles:!0});this.dispatchEvent(o)}showNoChangesMessage(n){let{errorAlert:o,errorList:r}=this.getErrorAlert(n);if(r.childElementCount>0){for(;r.firstChild;)r.lastChild?.remove();r.querySelector("#no-edits-error")?.remove()}let s=document.createElement("li");s.id="no-edits-error",s.innerText=this.locStrings.thereAreNoEditsToSubmit,r.appendChild(s),o.hidden=!1,o.focus()}runBasicValidation(n,o=!0,r,s,i){if(!oN(n,this.form))return;let a=rN(n),l=cr(n);for(let c of this.validators){let u=c(n,a);if(!u){i||m9(n);continue}if(r.push({input:n,message:u}),o){if(!n.id)continue;Er(n,u),l.classList.add("errored");let p=document.createElement("li");p.classList.add("margin-bottom-xs");let m=document.createElement("a");m.href=`#${n.id}`,m.textContent=u,m.classList.add("help","help-danger"),m.addEventListener("click",g=>{if(i){let f=g.target.getAttribute("href");f&&document.querySelector(f).focus()}}),p.appendChild(m),s.appendChild(p),i||(n.type==="checkbox"?n.closest("label.checkbox")?.classList.add("is-invalid"):n.type==="radio"?n.closest("label.radio")?.classList.add("is-invalid"):n.classList.add(`${n.localName}-danger`))}break}}};window.customElements.get("form-behavior")||(window.FormBehaviorElement=KC,window.customElements.define("form-behavior",KC));function g9(e,t){let n=e;return n?n instanceof HTMLElement&&"form"in n&&n.form===t&&"validity"in n&&n.validity instanceof ValidityState&&"value"in n&&typeof n.value=="string"&&"type"in n&&typeof n.type=="string"&&!["button","submit"].includes(n.type):!1}function mRe(e){(e instanceof HTMLTextAreaElement||e instanceof HTMLInputElement&&(e.type==="text"||e.type==="email"))&&(e.value=e.value.trim())}function p9(e,t,n){let o=e.submitter;Array.from(t.elements).forEach(r=>{r instanceof HTMLButtonElement&&r.type==="submit"&&(o&&o===r?r.classList.toggle("is-loading",n):r.disabled=n)})}function rN(e){let t=null;if(e.type==="radio"){let o=cr(e).querySelector(".field-label");o?t=o.textContent:t=e.getAttribute("aria-label")}else e.labels?.length?t=e.labels[0].textContent:t=e.getAttribute("aria-label");if(!t)throw new Error(`${e.nodeName} name="${e.name}" id="${e.id}" has no associated label.`);return t.trim()}function cr(e){let t=e.closest(".field");if(!t)throw new Error(`${e.nodeName} name="${e.name}" id="${e.id}" is not within a .field`);return t}function Pf(e){let t=e.closest(".field-body");if(!t)throw new Error(`${e.nodeName} name="${e.name}" id="${e.id}" is not within a .field-body`);return t}function gRe(e){let t=document.createElement("p");return t.id=Pp(),e.setAttribute("aria-describedby",`${t.id} ${e.getAttribute("aria-describedby")||""}`),t.classList.add("field-error"),t.setAttribute("data-field-error",""),Pf(e).after(t),t}function Er(e,t){let o=cr(e).querySelector("[data-field-error]")||gRe(e);o.textContent=t}function oN(e,t){return g9(e,t)&&e.type!=="hidden"}function fRe(e,t){switch(t){case null:return!1;case"follow":return e?(location.href=e,!0):!1;case"hash-reload":if(e){let n=e.includes("?")?"":window.location.search;if(e!==n+window.location.hash){let o=history.state||{};window.history.pushState(o,document.title,window.location.pathname+n+e)}return location.reload(),!0}return!1;case"replace":return e?(location.replace(e),!0):!1;case"reload":return location.reload(),!0;default:throw new Error("Unexpected navigation attribute value.")}}function hRe(e){let t=Object.fromEntries(new FormData(e)),n=[];return Object.keys(t).filter(r=>!e.elements.namedItem(r)).forEach(r=>{let s=e.querySelector(`[name="${r}"]`);s&&n.push(s)}),n}function m9(e){e.type==="checkbox"?e.closest("label.checkbox")?.classList.remove("is-invalid"):e.classList.remove(`${e.localName}-danger`)}function bRe(e){let t=e.submitter;return t instanceof HTMLButtonElement&&t.formAction!==window.location.href?t.formAction:null}var f9=globalThis.HTMLElement||null,Lp="assign"in(globalThis.HTMLSlotElement?.prototype||{})?(e,...t)=>{e.assign(...t)}:(e,...t)=>{let n=e.getRootNode().host;for(let o of n.querySelectorAll(`[slot="${e.name}"]`))o.removeAttribute("slot");for(let o of t)o.setAttribute("slot",e.name)},Rv,Mv,$v,ZC=class extends Event{constructor(n,{tabIndex:o,tab:r,panel:s,...i}){super(n,i);zt(this,Rv,null);zt(this,Mv,null);zt(this,$v,null);gt(this,$v,r||null),gt(this,Rv,o||null),gt(this,Mv,s||null)}get tabIndex(){return ye(this,Rv)}get panel(){return ye(this,Mv)}get tab(){return ye(this,$v)}};Rv=new WeakMap,Mv=new WeakMap,$v=new WeakMap;var Rp,Mp,ct,Lf,h9,Lv,b9,_9,y9,JC,sN,Lu,$p,Dp,v9,x9,iN,T9,w9,Rf=class extends f9{constructor(){super(...arguments);zt(this,ct);zt(this,Rp,null);zt(this,Mp,null);zt(this,$p,!1);zt(this,Dp)}static define(n="tab-container",o=customElements){return o.define(n,this),this}get onChange(){return this.onTabContainerChange}set onChange(n){this.onTabContainerChange=n}get onTabContainerChange(){return ye(this,Rp)}set onTabContainerChange(n){ye(this,Rp)&&this.removeEventListener("tab-container-change",ye(this,Rp)),gt(this,Rp,typeof n=="object"||typeof n=="function"?n:null),typeof n=="function"&&this.addEventListener("tab-container-change",n)}get onTabContainerChanged(){return ye(this,Mp)}set onTabContainerChanged(n){ye(this,Mp)&&this.removeEventListener("tab-container-changed",ye(this,Mp)),gt(this,Mp,typeof n=="object"||typeof n=="function"?n:null),typeof n=="function"&&this.addEventListener("tab-container-changed",n)}get onChanged(){return this.onTabContainerChanged}set onChanged(n){this.onTabContainerChanged=n}get activeTab(){return ye(this,ct,Lu)[this.selectedTabIndex]}get activePanel(){return ye(this,ct,sN).assignedNodes()[0]}get vertical(){return ye(this,ct,Lf)?.getAttribute("aria-orientation")==="vertical"}set vertical(n){let o=ye(this,ct,Lf);o&&n?o.setAttribute("aria-orientation","vertical"):o.setAttribute("aria-orientation","horizontal")}connectedCallback(){ye(this,Dp)||gt(this,Dp,this.attachInternals?this.attachInternals():null);let n=this.shadowRoot||this.attachShadow({mode:"open",slotAssignment:"manual"}),o=document.createElement("slot");o.style.display="flex",o.setAttribute("part","tablist-wrapper"),o.setAttribute("name","tablist-wrapper");let r=document.createElement("div");r.setAttribute("part","tablist-tab-wrapper"),r.setAttribute("name","tablist-tab-wrapper");let s=document.createElement("slot");s.setAttribute("part","tablist"),s.setAttribute("name","tablist"),r.append(s);let i=document.createElement("slot");i.setAttribute("part","panel"),i.setAttribute("name","panel");let a=document.createElement("slot");a.setAttribute("part","before-tabs"),a.setAttribute("name","before-tabs");let l=document.createElement("slot");l.setAttribute("part","after-tabs"),l.setAttribute("name","after-tabs"),o.append(a,r,l);let c=document.createElement("slot");c.setAttribute("part","after-panels"),c.setAttribute("name","after-panels"),n.replaceChildren(o,i,c),ye(this,Dp)&&"role"in ye(this,Dp)?ye(this,Dp).role="presentation":this.setAttribute("role","presentation"),this.addEventListener("keydown",this),this.addEventListener("click",this),this.selectTab(-1),this.addEventListener("tab-container-change",Ip(this,ct,T9)),this.addEventListener("click",Ip(this,ct,w9)),gt(this,$p,!0)}attributeChangedCallback(n){!this.isConnected||!this.shadowRoot||n==="vertical"&&(this.vertical=this.hasAttribute("vertical"))}handleEvent(n){if(n.type==="click")return Ip(this,ct,x9).call(this,n);if(n.type==="keydown")return Ip(this,ct,v9).call(this,n)}get selectedTabIndex(){return ye(this,ct,Lu).findIndex(n=>n.matches("[aria-selected=true]"))}set selectedTabIndex(n){this.selectTab(n)}get defaultTabIndex(){return Number(this.getAttribute("default-tab")||-1)}set defaultTabIndex(n){this.setAttribute("default-tab",String(n))}selectTab(n){if(!ye(this,$p)){let a=ye(this,ct,JC),l=ye(this,ct,h9),c=this.querySelector("[role=tablist]"),u=this.querySelector("[slot=tablist-wrapper]");u&&u.closest(this.tagName)===this?Lp(l,u):c&&c.closest(this.tagName)===this?Lp(a,c):(ye(this,ct,Lv).role="tablist",Lp(a,...[...this.children].filter(_=>_.matches("[role=tab]"))));let p=ye(this,ct,Lf);if(Ip(this,ct,iN).call(this,"aria-description",p),Ip(this,ct,iN).call(this,"aria-label",p),this.vertical&&ye(this,ct,Lf).setAttribute("aria-orientation","vertical"),!(this.querySelector("[slot=tablist-wrapper]")?.closest(this.tagName)===this)){let _=[],h=[],v=[],y=_;for(let T of this.children){if(T.getAttribute("role")==="tab"||T.getAttribute("role")==="tablist"){y=h;continue}if(T.getAttribute("role")==="tabpanel"){y=v;continue}T.getAttribute("slot")==="before-tabs"?_.push(T):T.getAttribute("slot")==="after-tabs"?h.push(T):y.push(T)}Lp(ye(this,ct,b9),..._),Lp(ye(this,ct,_9),...h),Lp(ye(this,ct,y9),...v)}let g=this.defaultTabIndex,f=g>=0?g:this.selectedTabIndex;n=n>=0?n:Math.max(0,f)}let o=ye(this,ct,Lu),r=Array.from(this.querySelectorAll('[role="tabpanel"]')).filter(a=>a.closest(this.tagName)===this);if(n>o.length-1)throw new RangeError(`Index "${n}" out of bounds`);let s=o[n],i=r[n];if(!(ye(this,$p)&&!this.dispatchEvent(new ZC("tab-container-change",{tabIndex:n,bubbles:!0,cancelable:!0,tab:s,panel:i})))){for(let a of o)a.setAttribute("aria-selected","false"),a.setAttribute("tabindex","-1");for(let a of r)!a.hasAttribute("tabindex")&&!a.hasAttribute("data-tab-container-no-tabstop")&&a.setAttribute("tabindex","0");s.setAttribute("aria-selected","true"),s.setAttribute("tabindex","0"),Lp(ye(this,ct,sN),i),i.hidden=!1,ye(this,$p)&&(s.focus(),this.dispatchEvent(new ZC("tab-container-changed",{tabIndex:n,bubbles:!0,tab:s,panel:i})))}}};Rp=new WeakMap,Mp=new WeakMap,ct=new WeakSet,Lf=function(){let n=this.querySelector("[slot=tablist-wrapper]");if(n?.closest(this.tagName)===this)return n.querySelector("[role=tablist]");let o=ye(this,ct,JC);return ye(this,ct,Lv).hasAttribute("role")?ye(this,ct,Lv):o.assignedNodes()[0]},h9=function(){return this.shadowRoot.querySelector('slot[part="tablist-wrapper"]')},Lv=function(){return this.shadowRoot.querySelector('div[part="tablist-tab-wrapper"]')},b9=function(){return this.shadowRoot.querySelector('slot[part="before-tabs"]')},_9=function(){return this.shadowRoot.querySelector('slot[part="after-tabs"]')},y9=function(){return this.shadowRoot.querySelector('slot[part="after-panels"]')},JC=function(){return this.shadowRoot.querySelector('slot[part="tablist"]')},sN=function(){return this.shadowRoot.querySelector('slot[part="panel"]')},Lu=function(){return ye(this,ct,Lv).matches("[role=tablist]")?ye(this,ct,JC).assignedNodes():Array.from(ye(this,ct,Lf)?.querySelectorAll('[role="tab"]')||[]).filter(n=>n instanceof f9&&n.closest(this.tagName)===this)},$p=new WeakMap,Dp=new WeakMap,v9=function(n){let o=n.target?.closest?.('[role="tab"]');if(!o)return;let r=ye(this,ct,Lu);if(!r.includes(o))return;let s=this.selectedTabIndex,i=o.closest('[role="tablist"]')?.getAttribute("aria-orientation")==="vertical",a=n.code==="ArrowLeft"||i&&n.code==="ArrowUp";if(n.code==="ArrowRight"||i&&n.code==="ArrowDown"){let c=s+1;c>=r.length&&(c=0),this.selectTab(c)}else if(a){let c=s-1;c<0&&(c=r.length-1),this.selectTab(c)}else n.code==="Home"?(this.selectTab(0),n.preventDefault()):n.code==="End"&&(this.selectTab(r.length-1),n.preventDefault())},x9=function(n){let o=n.target?.closest?.("[role=tab]");if(!o)return;let s=ye(this,ct,Lu).indexOf(o);s>=0&&this.selectTab(s)},iN=function(n,o){this.hasAttribute(n)&&(o.setAttribute(n,this.getAttribute(n)),this.removeAttribute(n))},T9=function(n){let{tab:o}=n;o&&o.scrollIntoView({behavior:"auto",block:"nearest",inline:"center"})},w9=function(n){let o=n.target instanceof Element&&n.target.closest("[data-tab-container-nav]");if(!o)return;let r=(o.dataset.tabContainerNav==="next"||o.dataset.tabContainerNav==="previous")&&o.dataset.tabContainerNav;if(!r)throw new Error('Supported values of [data-tab-container-nav] are "previous" and "next"');let s=this.selectedTabIndex;if(r==="next"){let i=s+1;i>=ye(this,ct,Lu).length&&(i=0),this.selectTab(i)}else{let i=s-1;i<0&&(i=ye(this,ct,Lu).length-1),this.selectTab(i)}},Wt(Rf,"observedAttributes",["vertical"]);var S9=typeof globalThis<"u"?globalThis:window;try{S9.TabContainerElement=Rf.define()}catch(e){if(!(S9.DOMException&&e instanceof DOMException&&e.name==="NotSupportedError")&&!(e instanceof ReferenceError))throw e}var Mf=document.documentElement,_Re=()=>{let e=document.querySelector(".layout-body-header"),t=e?.clientHeight||0,n=t?`${t}px`:"0px",o=e?.getBoundingClientRect().y||0,s=`${Math.max(0,o+t)}px`,i=document.querySelector(".layout-body-footer"),a=i?.clientHeight||0,l=a?`${a}px`:"0px",c=i?.getBoundingClientRect().y||0,p=`${c{window.dispatchEvent(new CustomEvent("atlas-layout-change-event"))};function E9(){window.addEventListener("atlas-layout-change-event",()=>{yRe(_Re)}),window.addEventListener("resize",el,{passive:!0}),Mf.style.setProperty("--window-inner-height",`${window.innerHeight}px`),window.addEventListener("DOMContentLoaded",el),window.addEventListener("scroll",el,{passive:!0})}var aN="atlas-layout-exclusions";function vRe(e){return e==="__proto__"||e==="prototype"||e==="constructor"?"default":e}function A9(e={}){let{root:t=document.documentElement,storage:n=window.localStorage,storageKey:o="default",excludesKey:r,excludes:s,deferCallbacksUntil:i=Promise.resolve(),useViewTransitionOnRestore:a=!1}=e,l="layout-",c="atlas-layout-preferences",u="data-layout-restored",p="LayoutStateInstance has been disposed; create a new instance with createLayoutState()";function m(O){return O==null?"default":vRe(O)}function g(){let O=typeof o=="function"?o():o;return m(O)}function f(){if(r===void 0)return null;let O=typeof r=="function"?r():r;return O==null?null:m(O)}function _(){if(s!==void 0)return typeof s=="function"?s():s}function h(){let O=_();if(O===void 0)return;let ee=f();if(ee===null)return;let ie=n.getItem(aN),ke={};if(ie)try{let He=JSON.parse(ie);He&&typeof He=="object"&&(ke=He)}catch{}let Ie={};for(let He of O)Ie[He]=!0;ke[ee]=Ie;try{n.setItem(aN,JSON.stringify(ke))}catch(He){console.error("createLayoutState: failed to write atlas-layout-exclusions; in-memory exclusions still apply",He)}}function v(){let O=f();if(O===null)return new Set;let ee=n.getItem(aN);if(!ee)return new Set;let ie;try{ie=JSON.parse(ee)}catch{return new Set}let ke=ie&&Object.prototype.hasOwnProperty.call(ie,O)?ie[O]:null;return!ke||typeof ke!="object"?new Set:new Set(Object.keys(ke))}let y=new Set,T=null,I=!1,E=[],q=!1,D=!1,le=0,we=[],K=!1;function Le(O){I?O():E.push(O)}function Ke(){t.setAttribute(u,"true")}function Pt(){t.removeAttribute(u)}function nn(){if(D){E=[];return}if(q)return;I=!0;let O=E;E=[];try{for(let ee of O){if(D)return;try{ee()}catch(ie){console.error("createLayoutState: a subscriber callback threw during initial flush",ie)}}}finally{D||Ke()}}function Ut(O,ee,ie={}){if(!O){ee();return}ie.sync?sn(ee):uo(ee)}function sn(O){let ee=document;if(typeof ee.startViewTransition!="function"){O();return}if(le>0){O();return}Lt(ee,O)}function uo(O){let ee=document;if(typeof ee.startViewTransition!="function"||le>0){O();return}we.push(O),!K&&(K=!0,queueMicrotask(()=>{if(K=!1,D||q)return;let ie=we;if(we=[],ie.length!==0){if(le>0){cn(ie);return}Lt(ee,()=>{cn(ie)})}}))}function Lt(O,ee){let ie;try{ie=O.startViewTransition(ee)}catch(He){console.error("createLayoutState: startViewTransition threw",He),ee();return}le++;let ke=()=>{le=Math.max(0,le-1)},Ie=ie?.finished;Ie&&typeof Ie.then=="function"?Ie.then(ke,ke):ke()}function cn(O){for(let ee of O)try{ee()}catch(ie){console.error("createLayoutState: view-transition callback threw",ie)}}function Q(){let O=n.getItem(c);if(!O)return{};try{return JSON.parse(O)}catch{return{}}}function X(O){n.setItem(c,JSON.stringify(O))}function U(){return Q()[g()]??{}}function se(O){return t.classList.contains(O)}function fe(O,ee){return O.when==="always"?!0:O.when==="added"?ee===!0:ee===!1}function L(O,ee){if(v().has(O))return;let ie=g();for(let ke of y)if(ke.className===O&&fe(ke,ee)){let{callback:Ie,useViewTransition:He}=ke;Le(()=>{Ut(He,()=>{Ie({className:O,isApplied:ee,storageKey:ie})})})}}function M(){let O=v(),ee=g();for(let ie of y){if(O.has(ie.className))continue;let ke=se(ie.className);if(!fe(ie,ke))continue;let{callback:Ie,useViewTransition:He,className:Ue}=ie;Le(()=>{Ut(He,()=>{Ie({className:Ue,isApplied:ke,storageKey:ee})})})}}function Z(O,ee,ie,ke={}){if(D)throw new Error(p);let Ie={className:O,when:ee,callback:ie,useViewTransition:!!ke.useViewTransition};y.add(Ie);let He=se(O);if(fe(Ie,He)&&!v().has(O)){let Ue=g(),{useViewTransition:vt}=Ie;Le(()=>{Ut(vt,()=>{ie({className:O,isApplied:He,storageKey:Ue})})})}return()=>{y.delete(Ie)}}function ae(){let O=U(),ee=v();for(let ie of Object.keys(O))ee.has(ie)||t.classList.toggle(ie,O[ie])}function Pe(O){return O.startsWith(l)}function Je(O,ee){let ie=O.filter(Pe),ke=ee.filter(Pe),Ie=ie.filter(Ue=>!ke.includes(Ue)),He=ke.filter(Ue=>!ie.includes(Ue));return{added:Ie,removed:He}}function it(O,ee){if(O.length+ee.length===0)return;let ie=v(),ke=g(),Ie=Q(),He=Ie[ke]??{},Ue=!1;for(let vt of O)ie.has(vt)||(He[vt]=!0,Ue=!0);for(let vt of ee)ie.has(vt)||(He[vt]=!1,Ue=!0);Ue&&(Ie[ke]=He,X(Ie))}function on(O){if(!D)for(let ee of O){if(D)return;let ie=(ee.oldValue??"").split(/\s+/),ke=Array.from(ee.target.classList),{added:Ie,removed:He}=Je(ke,ie);it(Ie,He);for(let Ue of Ie)L(Ue,!0);for(let Ue of He)L(Ue,!1)}}function $n(){T=new MutationObserver(on),T.observe(t,{attributes:!0,attributeFilter:["class"],attributeOldValue:!0})}function un(){if(D)throw new Error(p);q||(q=!0,T?.disconnect(),T=null,Pt(),we=[])}function G(){if(D)throw new Error(p);q&&(q=!1,h(),Ut(a,ae,{sync:!0}),I=!1,E=[],M(),$n(),Promise.resolve().then(nn,O=>{D||(console.error("createLayoutState: resume flush rejected; flushing anyway",O),nn())}))}function ue(){D||(D=!0,T?.disconnect(),T=null,Pt(),y.clear(),E=[],we=[])}h();try{Ut(a,ae,{sync:!0}),$n(),i.then(nn,O=>{D||(console.error("createLayoutState: deferCallbacksUntil rejected; flushing pending callbacks anyway",O),nn())})}catch(O){throw console.error("createLayoutState: setup failed; marking layout as restored anyway",O),Ke(),O}return{subscribe:Z,getViewState:U,getState:Q,suspend:un,resume:G,dispose:ue}}var k9="You have signed in with an account associated to an organization ({email}). By becoming a member, you understand and acknowledge that your Microsoft Learn membership means our network of sites and applications will record and track your achievements and activities and we may share your results and activities with your organization. Additionally, your username, display name, profile picture, affiliation, achievements and activities will be publicly visible. You can hide your achievements and activities under settings.

After you create your profile, we recommend you link a personal account so that you can access your learning progress regardless of your employment status. You can link additional accounts in the Account Management section of the profile settings.";var lN="Accept";var gc="Add",I9="Add section",P9="Add URL",XC="Added";var Dv="Additional information";var eE="Add content";var L9="Error getting GitHub content repo and path";var R9="Your GitHub Token has expired. You need to refresh your GitHub Token permissions by clicking the button below.";var M9='Want a simpler rich-text editing experience? Learn about Microsoft Learn Editor!';var $9="Suggest edits in {name}",D9='Thank you for your interest in contributing to Microsoft Learn. Click Edit to open this article in {name}. For more information, see contribute.';var N9="Re-Authorize GitHub Token with Latest Permissions";var F9="Start Over";var O9="MVP",U9="Microsoft Employee",q9="Microsoft External Staff";var H9="Microsoft Intern";var B9="Microsoft Regional Director",z9="Student Ambassador",$f="Alphabetical (A-Z)",Df="Alphabetical (Z-A)",cN="Analytics";var uN="an {AppliedSkills}",dN="{AppliedSkills} completed";var G9="asked {time}";var pN="Milestones";var V9="a day ago";var j9="Add Parameter",Q9="Advanced";var aa="All",tE="All APIs",Y9="All filters";var nE="All Packages";var W9="Already have an account? Sign in";var K9="a minute ago",J9="a month ago";var Z9="an hour ago",jr="Anonymous";var X9="1 answer",e7="{count} answers";var mN="One of the answers was accepted by the question author.";var oE="API";var t7="API Key",rE="{platformName} API Reference",gN="API search is unavailable. Please try again later.";var n7="{appliedSkillTitle} - {AppliedSkills} Assessment",o7="Please refresh to continue. Your lab will resume where you left off.";var r7="This assessment is very popular and we are at capacity, but we are working hard to accommodate more learners. Please come back after 10 minutes and try again.",sE="Microsoft Credential",s7="Time is up.",i7="You have reached the time limit.",a7="Your assessment will now be scored.",l7="See my results",c7="We are experiencing an issue and actively investigating on this. Please try a different assessment for now.",u7="Something went wrong. Please re-activate after 10 minutes.",d7="Your account has been flagged for unusual activity. As a result, access to Microsoft {AppliedSkills} has been suspended. Please use the back button to return to the credentials detail page.";var p7="View my credential";var m7="Save your collection to come back to it later. It may expire if the assessment is updated.",iE="Go to details page",fN="You can see previous attempts on the credential details page";var g7="Refresh the page",f7="You'll be eligible to retake the assessment in:",h7="Save your collection",b7="Performance by task",_7="Still scoring",y7="Customized collection to improve your performance",v7="{AppliedSkills} material - {date}",x7=`Your results are still processing. If you don't see a result in {duration} seconds, please refresh.`,T7="Based on your results, we've put together materials in the areas you have room to improve. Learning material includes:",w7="{AppliedSkills} credential earned",S7="Sorry, something went wrong, please try again later";var hN="Your assessment results",aE="Your assessment results for",C7="Learn how this assessment is scored",E7='This assessment is currently undergoing maintenance. Explore other Microsoft Credentials in the meantime.',A7=`Your account or connection was flagged for unusual activity. Because of this, we've suspended your access to Microsoft {AppliedSkills}. Learn more.`,k7="Your appeal is being reviewed";var I7="(Obsolete)",P7="{version} and other versions",L7="{version1} and {version2}",R7="Apply",lE="Architecture",M7="Solution Idea",Nf="Previous versions",tl="Are you sure?",$7="Deleting your data cannot be undone.";var D7="Article";var N7="a second ago";var F7="Ask the community";var cE="Assessments";var O7="Authorization required";var U7="a week ago";var q7="Azure Documentation";var H7="-- Select Value --",fc="Back";var B7="Back to feedback";var z7="Beginner";var Ff="Body";var G7="Remove bookmark for {title}",V7="Add bookmark for {title}";var j7=`Something went wrong with the "{branchFallbackFrom}" branch. We've redirected you to the "{branch}" branch instead.`,Q7="Branch selector",uE="Breadcrumb";var dE="All breadcrumbs";var Y7="Browse exams";var Ru="Browse Certifications",hc="Browse Credentials";var W7="Category",K7="Categories",J7="Caution";var Fe="Cancel",pE="Captions Off";var bc="Certification";var Z7="Transfer to Pearson Vue";var X7="Please enter your address so that Pearson Vue, the exam delivery provider, can validate your identity.",ej="Please enter your phone number and contact email so that Pearson Vue, the exam delivery provider, can contact you, if you encounter any issues while taking your exam.",tj="Any discounts will be applied at Pearson Vue during payment.",nj="If you have a voucher code, enter the code on Pearson Vue during payment.",oj="Please proceed to the Pearson Vue portal to advance with your exam registration.",rj='Microsoft will not store the address and phone number information you provided. We will now transfer you to Pearson Vue to complete your exam registration. Microsoft Privacy Statement',sj="Address 1",ij="Address 2",aj="City",lj="State",cj="Postal code",uj="Country/Region code",bN="Enter address",dj="Enter city";var pj="Enter postal code",mj="Enter phone number",gj="Enter contact email";var fj="Collection name";var Nv="Fail";var mE="Oops, something went wrong.",Fv="Pass";var hj="Assessment material - {date}";var bj="Save your collection";var _j="Renewal material - {date}";var yj="This is a temporary preview page that will expire on {temporaryPreviewExpiresAt}. Once it expires, you will need to regenerate it from the Item Workshop before previewing it again.",vj="Assessments Platform API",xj="Check Your Answer",Tj="Renewal assessment for {certificationName}",wj="Congratulations, you passed!",nl="Microsoft Certification",Sj="You\u2019ve renewed your {certificationName} and have extended it by one year.",Cj="See your results",Ej="Question {current} of {total}",Aj="{current} of {total}",kj="Select only one answer.",Ij="Time expired.",Pj="You have reached the time limit. Your assessment will now be scored.",Lj="See My Results",Rj="Select all answers that apply.",Mj="Next",$j="Compiling your assessment...",Dj="We encountered an unexpected error. Please try again later. If this issue continues, please contact certification support.",Nj="Ok, got it",Fj="Please retry to submit your renewal assessment. If this issue continues, you may contact certification support.",Oj="Contact Certification Support",Uj="Your assessment was already scored",qj="It looks like you have already submitted this assessment. You can view your assessment results from the certification renewal details page. If you believe this is incorrect and need help, please contact certification support.",gE="Go to renewal details",Hj="Your certification has expired",Bj='This certification expired before you submitted your renewal assessment, so it can no longer be completed here. Learn why in the certification expiration policy or review the renewal FAQ.',zj="Go to renewal details",Gj="Time left",Np="This answer is incorrect.",Fp="This answer is correct.",Vj="Show all questions",jj="Assessment date:",Qj="Your certification is renewed for one year. Please note that it can take a few minutes for your certification expiration date to update.",Yj="Sorry, this customized learning material is out of date with the current assessment. Please visit the assessment details page to get the latest preparation material.";var fE="Customized learning material to improve your skills";var hE='Because you scored lower in "{section}":',_N="Your renewal assessment results for {certificationName}";var Wj="Your renewal assessment results for";var Kj="Learn more about renewing this certification",Jj="{percent}% needed to pass",bE="Performance by assessment section",Zj="Ready to retake the assessment?";var Xj="You are eligible to retake the assessment. You can retake it as many times as needed before {date}. After your second attempt you'll need to wait 24 hours between retakes.",yN="See your certifications",eQ="You can search previous assessment attempts in your profile or visit the certification overview",tQ="Your overall results:";var nQ="Certification overview";var ol="Certifications";var oQ="Certification Type",rQ="Certification Types",la="Challenge";var sQ="Active from {start} until {end}";var iQ="Challenge Collection";var aQ="Find a product";var lQ="You do not have any challenges yet";var vN="End date cannot be before start date. Please reselect an end date.",cQ="End time cannot be before start time. Please reselect an end time.",uQ="Start time cannot be before the current time. Please reselect a start time.";var _E="Find something else to learn";var yE="{score}%",dQ="See the challenge";var Of="Challenges";var xN="Add to Challenges",vE="Added to Challenges";var pQ="Manage {title} in challenges",mQ="Add {title} to a challenge";var TN="No items in this section.";var xE="Start date",TE="Start time",wE="End date",SE="End time";var gQ="Sorry, this challenge is private.",fQ="This challenge is not visible to other users.",hQ="You can review your challenges in your user profile.",bQ="View your challenges",_Q="Go to leaderboard";var Ov="Copy Challenge",yQ="You are about to copy this challenge. The new challenge will have the same details and content. Once created, you will be able to edit it via its details page.",vQ="Delete challenge",xQ="Start date must be in the future.",TQ="End date must be after the start date or the current date.",wQ="Please select a valid primary subject matter.",SQ="Please enter a valid target name.",CQ="Please enter a valid ID associated with the selected audience of this challenge.",EQ="Please enter a valid purpose for this challenge.",AQ="You are not allowed to perform this action.";var Uv="Leaderboard";var kQ='Added to {collectionName}',IQ='Added to Challenges',PQ="Please sign in to add this to your challenge.",LQ='Removed from {collectionName}',RQ='Removed from Challenges';var MQ="Violation detected",$Q=`The title or description of this challenge, or a section title or description of this challenge's collection has been deleted due to a violation of our Terms of Use. These were manually reported or identified through automated detection before action was taken. Please refer to our Terms of Use for more information.`,wN=`If this challenge's title or description has been deleted, please go to its detail page to update.`;var DQ="If a section title or description of this challenge's collection has been deleted, please review and update below.",NQ="You will continue to see this alert until an update has been made.";var FQ="Ask Learn",OQ="Describe what you'd like to do",UQ="The chat has been reset",qQ="Conversation loaded",HQ="Back to chat",CE=`I've stopped generating the response. Want to try something else? Try our prompt guide by selecting the "View prompts" button.`,BQ="Chat",Uf="Chat history",zQ="Confirm",SN="Confirm delete",GQ='You requested to delete "{name}". This is an irreversible action. Are you sure you want to delete this?',VQ="No chats to display",CN="Rename",jQ="Rename conversation",EN="Search all chats",QQ="Clear search",YQ="AI-generated content may be incorrect",WQ="Accurate/relevant content",KQ="Complete/clear content",JQ="Fast response",ZQ="Inaccurate/irrelevant content",XQ="Incomplete/unclear content",eY="Offensive/inappropriate content",tY="Slow response",AN="Something else",nY="Thanks for your feedback.",kN=`Sorry, I can't chat about this. Please enter another topic or try the prompt guide by selecting the "View prompts" button below.`,IN="Not now",PN="Meet our AI assistant, Ask Learn",qv="Ask Learn is an AI assistant that can answer questions, clarify concepts, and define terms using trusted Microsoft documentation.",LN="Check for accuracy",RN="Ask Learn is in preview. Please check responses as AI-generated content may be inaccurate. Use the feedback buttons to help us improve the experience.",MN='Please read the Ask Learn transparency notes to learn more about use cases and limitations.',$N="Try Ask Learn",oY="Acknowledgement",EE="To provide more relevant and personalized responses, Ask Learn stores your chat transcripts.",rY="Let Ask Learn use your past chats to personalize responses.",sY="Please check the box to acknowledge the guidelines before continuing.",iY="To use Ask Learn, you are required to acknowledge previous chat utilization. You can read more in the Ask Learn transparency notes.",aY="Review acknowledgements",qf="Please sign in to use Ask Learn.",lY='Sorry, I hit the maximum number of responses I can give in a conversation. Please select "New chat" to start a new conversation.',AE="More options",cY="Maximum {max} characters",Hf="New chat",uY="See more",dY="New message from Ask Learn";var Bf="Preview",pY="Preview what will be shared",mY="Prompt guide",DN="Give as much detail as you can, but do not include any private or sensitive information";var gY="Regenerate";var fY="Send",hY="Stop generating",bY="Tell us more",kE="I'm currently experiencing high demand. Please try again in a few minutes.",_Y="This message is helpful",yY="This message is not helpful",Hv=`Sorry, I can't help with that. Try the prompt guide by selecting the "View prompts" button below.`,Yo="Sorry, something went wrong. Please try again or share your feedback.",vY="Some of the characters in your message aren't supported. Can you please try again using different characters?",xY="Please type a message to continue",IE="Message must be at least 10 characters",NN="Character limit exceeded",FN="View prompts",PE="Working on it...",TY="{count} of {total} responses";var wY="Only the assessment owner can view Notes and update checklist items";var SY="Citation";var zf="Clear all",CY="Clear Filter",EY="Clear form",AY="Clear question author";var kY="Clear Term",IY="Click for RSS feed",_e="Close";var PY="Close search",LY='Unable to start the Cloud Shell. Take a look at the troubleshooting guide.';var RY="Code Sample",ON="Code Samples";var Op="Collapse",MY="Collapse table",bi="Collection",$Y="Official Collection";var DY="A copy of this collection has been saved to your profile",NY="The days to complete a milestone must be a number.",UN="Description (optional)";var FY="Edit section",OY="Max length is 550 characters.",UY="The section title cannot be the same as another title in the collection.",qN="New section",qY="Save section",HN="Section {number}";var HY="Max length is 100 characters.",BY="The section title or description did not pass Microsoft's validation service.",zY="We were unable to save your section. Please try again.",GY="Add URL",VY="Page name",jY="Enter your title.",QY="The title must be between 2 and 100 characters.",YY="We could not save your URL. Please try again.",WY="URLs cannot be added to this collection.",KY="Your URL must start with http:// or https://. AKA links are permitted.",JY="The URL format is not valid.";var ZY="Add to collection",BN="Added to collection",zN="Add to Collections",LE="Add to a collection",XY='Add "{pageName}" to:',RE="Collection not found",eW="Oops! It seems like this collection doesn't exist or can't be found for one of the following reasons:",tW="The owner may have changed the URL of the Collection, which can lead to it not being found if users are accessing it with the old URL.",nW="The owner of the Collection might have deleted it entirely, rendering it inaccessible.";var oW=`If the Collection or its content violated Microsoft Learn's Terms of Use.`,rW="Here are some helpful links instead:",sW="Microsoft Learn Homepage: Build skills that open doors in your career",iW="Search | Microsoft Learn",aW="Microsoft Learn resources | Microsoft Learn",lW="Create a Microsoft Learn Collection",cW='Collections Updated',GN='Microsoft employees are eligible to label a collection with "Created by Microsoft".',ME="More Information",Up="Convert to an Official Collection",$E="An Official Collection represents Microsoft, so please ensure that your collection is complete, free of typographical errors, and that content is in the correct sequence. If not, please edit your collection as necessary. Once a collection is made official, it cannot be reverted.";var uW="Collection unavailable",dW="Are you ready to convert this collection to an Official Collection?";var DE='A collection already exists with the title "{title}". Collection titles should be unique.',Mu="Title is required and up to 100 characters long.",Bv="Description is optional and up to 550 characters long.",NE="Invalid content. Please remove any phone numbers, email addresses, or URLs.";var pW="If set to private, this collection can only be viewed by you. A collection that is not private can be viewed by anyone.",FE="Set as private",mW="{userDisplayName}'s Collection {index}",VN="Created by {name}",gW="Created by a Microsoft Learn user";var fW="Delete collection",hW="Display my name";var OE="Edit my collection",jN="add description",zv="Edit description",Gv="Edit title",bW="Edit Learning Outcomes",_W="Description of this collection",yW="At least one outcome is required.",vW="Title of this collection",xW="We were unable to save your title. Please try again.",TW="We were unable to save your description. Please try again.",wW="We were unable to save your learning outcomes. Please try again.",UE="Favorites",SW="If this link was shared with you, request a new link.",qE="Any edits will not affect the original collection";var CW="Items in this collection";var EW='No items in this collection. Add items from the Learn training browse page.',AW="{numberOf} Learning Paths",kW="{numberOf} Learning Path",IW="The Collection is complete and proofread",PW="This will take up to 14 days but could be completed sooner. After it is localized, any future edits you make will automatically be submitted to the localization pipeline.",LW="Your title, description, sections and section descriptions will be translated into each of the languages Microsoft Learn supports",HE="Localize",RW="Please ensure the following:",MW="This Collection has not been localized in your language yet.",$W="The source language is English",BE="This collection has been submitted to be localized",DW="Thank you for submitting your official collection for localization.",zE="{numberOf} Modules",GE="{numberOf} Module";var NW="Move item down",FW="Move item up";var OW="Move section down",UW="Move section up",qW="Official collection by Microsoft",HW="on behalf of",BW='Removed from {collectionName}',zW='Removed from Collections';var GW="Adding to a collection is disabled for content requiring authorization.",VW='Added to {collectionName}',jW='Added to Collections',QW="Save all items in this collection as a new";var QN="Please sign in to add this to your collection.",VE="Sorry, this collection is private.",YW="The creator of this collection has marked it as private and it is not currently visible to other users.",WW="This collection does not exist or was removed.",KW='You can also return to collections.',JW="You can review your collections in your user profile.",ZW="View your collections",XW="Manage {title} in collections",eK="Add {title} to a collection",tK="You can find this collection in your Learn profile";var nK="Violation detected",oK='The title or description of this collection, or a section title or description of this collection has been deleted due to a violation of our Terms of Use. These were manually reported or identified through automated detection before action was taken. Please refer to our Terms of Use for more information.',rK="You will continue to see this alert until an update has been made.",sK="Reported Collection",iK='A concern has been reported on this collection and it is currently under Microsoft review. Please refer to our Terms of Use for more information.';var Qr="Completed";var aK="Congratulations!";var lK="Contact customer support",YN="Contact email";var WN="Content area",cK="Content language selector. Currently set to {language}.";var uK='Note: The author created this article with assistance from AI. Learn more',dK='Note: This article contains content created with AI. Learn more',pK="Community-authored content. This article is written and maintained by experts in our Microsoft Learn community.",mK='Note: This episode contains content created with AI. Learn more',gK='Note: The author created this episode with assistance from AI. Learn more';var fK='Note: This module contains content created with AI. Learn more',hK='Note: The author created this module with assistance from AI. Learn more',bK='Note: This page contains content created with AI. Learn more',_K='Note: This page was partially created with the help of AI. Learn more',_c="Continue";var jE="Copied",$u="Copy";var qp="Course";var KN="Australia",JN="Austria";var QE="Belgium";var ZN="Brazil";var YE="Canada";var XN="India";var e2="Ireland";var WE="Malaysia";var t2="Mexico";var n2="New Zealand";var o2="Portugal";var r2="Singapore";var s2="South Africa";var Vv="Schweiz / Suisse";var i2="United Kingdom",a2="United States";var jv="Country/Region";var Qv="Create";var l2="Created by";var yK="By becoming a member, you understand and acknowledge that your Microsoft Learn membership means our network of sites and applications will record and track your achievements and activities.

Additionally, your username, display name, profile picture, affiliation, achievements and activities will be publicly visible. You can hide your achievements and activities under settings.";var mo="Credentials",vK="Credential Type",xK="Credential Types";var TK="Custom",wK="Custom date";var SK="Dark",Yv="Date";var KE="Day",Wv="Days",CK="{duration} days ago",Kv="{days} days";var Yr="Delete";var EK="Delete Parameter";var Gf="Description";var AK="This archived content is no longer being maintained. Links and information may be outdated or unsafe, and have not been actively reviewed by Microsoft.",kK="This article has been translated for your market from English. How satisfied are you with the quality of language used?",IK="This article was machine or AI translated. This archived content is no longer being maintained. Links and information may be outdated or unsafe, and have not been actively reviewed by Microsoft.",PK="This content has been retired and may not be updated in the future. The product, service, or technology mentioned in this content is no longer supported.",LK="This article was machine or AI translated. This content has been retired and may not be updated in the future. The product, service, or technology mentioned in this content is no longer supported.",ca="Dismiss alert";var RK="Parts of this topic may be\u202Fmachine or AI\u202Ftranslated.",MK="Parts of this topic may be\u202Fmachine or AI\u202Ftranslated.";var $K="Microsoft Confidential",DK="This page was permanently redirected to {url}",NK=`We're no longer updating this content regularly. Check the Microsoft Product Lifecycle for information about how this product, service, technology, or API is supported.`,FK=`This article was machine or AI translated. We're no longer updating this content regularly. Check the Microsoft Product Lifecycle for information about how this product, service, technology, or API is supported.`,OK="Recommended Version",c2="Return to main site",UK="Content on review sites may be viewed by all Microsoft FTEs, vendors, and LinkedIn employees.",qK="This content is not available in your language. Here is the English version.",Jv="Dismiss";var HK="This learning path will soon be available in the following language: {language}.",BK="This learning path is not available in the following language: {language}.";var zK="This module will soon be available in the following language: {language}.",GK="This module is not available in the following language: {language}.";var VK="Search results are from previous versions' documentation and not regularly updated.";var jK="Days to complete";var ua="Documentation",QK="Document Details",YK="Do not edit this section. It is required for learn.microsoft.com \u279F GitHub issue linking.";var WK=".NET Documentation";var JE="Download PDF",KK="Download PDF is disabled for content requiring authorization.",JK="Generating your PDF could take a few minutes. You can continue using the site while we get the PDF ready.";var yc="Edit";var ZK="Edited on";var vc="Email";var XK="Empty name is not allowed";var eJ="End Date";var tJ="Ending date",nJ="Ends {endDate}";var Du="Error",oJ="Values must be {date} or earlier.",rJ="Starting date must be earlier than ending date.";var sJ="Event Group",iJ="Event Groups",aJ="Events";var Wr="Exam";var lJ="Answer Summary",cJ="Back to Report",uJ="Below is a summary of your answers.",dJ="Congratulations, you passed all the sections! If you have passed multiple attempts, consider scheduling an exam.",pJ="Sorry, this customized learning material is out of date with the current practice assessment. Please visit the exam details page to get the latest preparation material.",mJ="Correct Answer";var gJ="It took you {duration} minutes to complete this assessment.";var fJ="Practice Assessment Results: {date}",hJ="Overall Results",bJ="To be better prepared for the exam, aim to achieve a score of {percent}% or higher in multiple attempts.",_J="Score: {percent}%";var yJ="To further strengthen your skills in the following areas, refer to the Customized Learning Material section below.",vJ="Question {x} of {y}",xJ="Ready to take the exam?",TJ="You can see previous assessment attempts on the exam details page.",wJ="Practice material - {date}",SJ="Show My Answers",CJ="Take another practice assessment.",EJ="Your Answer";var AJ="Examination";var Hp="Expand",kJ="Expand table";var Vf="Facebook";var IJ="FAQ";var PJ="Fair";var LJ='Feedback will be sent to Microsoft: By pressing the submit button, your feedback will be used to improve Microsoft products and services. Privacy policy.',ZE='By pressing submit, your feedback will be used to improve Microsoft products and services. Privacy Statement',XE=`Microsoft will process the feedback you submit pursuant to your organization's instructions in order to improve your and your organization's experience with this product. If you have any questions about the use of feedback data, please contact your tenant administrator. Processing of feedback data is governed by the Microsoft Products and Services Data Protection Addendum between your organization and Microsoft, and the feedback you submit is considered Personal Data under that addendum. Privacy Statement`,Zv="Microsoft will process the feedback you submit pursuant to your organization's instructions in order to improve your and your organization's experience with this product.",RJ=`Microsoft will process the feedback you submit pursuant to your organization's instructions in order to improve your and your organization's experience with this product. Privacy Statement`;var MJ="[Enter feedback here]";var $J="Report feedback";var DJ="Attach a screenshot (optional)",NJ="Choose Files...",FJ=".jpeg, .jpg, .png or .gif";var OJ="Problems with Cloud Shell";var UJ="Problems with .NET Editor";var qJ="Problems with installing dependencies";var HJ="Tutorial content quality";var BJ="Describe your feedback. If applicable, include steps to replicate your issue",zJ="Enter your feedback title",GJ="Incorrect Information/Spelling/Content Mistake",VJ="Feature request",jJ="Product or functionality",QJ="General feedback",YJ="Learning content quality",WJ="I have questions about the learning content",KJ="I am not being granted credit/XP for completion",JJ="Other",ZJ="Problems with registration/signing-in",XJ="Problems with the Sandbox",eZ="Issues with translation quality",tZ="Select an issue that applies to you",nZ="Select the type of feedback";var oZ="Content is easy to understand",rZ="Content is hard to understand",sZ="Couldn't find what I need",iZ="I accomplished my task or solved my problem",aZ="I learned something new",lZ="Information was easy to find",cZ="Out of date/obsolete",uZ="Plan structure",dZ="Content coverage",pZ="Personalization",mZ="Easy to use",gZ="Aids career growth",fZ="Too complex",hZ="Technical issues",bZ="Lack of personalization",_Z="Not relevant to goal",yZ="Incorrect timelines",vZ="Procedure or code doesn't work",u2="Translation quality";var Ms="Filter",xZ="Filters";var d2="Filter cleared",TZ="Content will filter as you type";var wZ="Find a {facet}";var SZ="Find by title";var CZ="Find a question author";var EZ="Reading mode enabled",AZ="Reading mode disabled";var kZ="Sign up now";var Xv="At least one item should be selected.",rl="Content has changed, please reload the page to get the latest changes.",p2="We're experiencing an issue with your attachment(s). Refresh or remove the attachment(s) to continue your post. If the problem continues, contact site support.",m2="Email is invalid",IZ="Email is invalid and must be at least 6 characters.",PZ="Select at least one reason for your feedback.",LZ="Was this page helpful? Select Yes or No.",RZ="At least one selection from {inputGroup} is required.",_i="{inputLabel} cannot be longer than {maxLength} characters.",yi="{inputLabel} must be at least {minLength} characters.",vi="{inputLabel} is required.",eA="{inputLabel} should not start or end with a period.",MZ='{inputLabel} cannot contain the \\ or " characters.',$Z="An input field is invalid. Please check your input fields and try again.",xi="You are not authenticated. Please refresh the page and try again. If this issue persists, please log out and log back in.",Ti="You are not authorized to make this response. If you believe this to be in error, please refresh the page and try again.";var DZ="US postal code should only contain numeric digits and must be 5 or 9 digits.",NZ="Canadian postal code should not contain spaces and must be in the format A1A1A1.",FZ="Phone number is invalid and should only contain numeric digits.",go="Please fix the following issues to continue:",jf="Please make a selection.",g2="Text must be in English. If you have any non-English text or symbols, please remove them to proceed.",wi="There are no edits to submit.",Si="You have sent too many requests. Please wait a few minutes and try again.",Kr="We encountered an unexpected error. Please try again later. If this issue continues, please contact site support.";var OZ="Generating PDF...";var UZ="Get help at Microsoft Q&A",qZ="Get product support",f2="Get started";var Bp="Global",h2="Global navigation";var b2="Go back";var HZ="Good";var _2="Go to exam details";var BZ="Great";var tA="Headers",zZ="Help me choose";var GZ="Here",VZ="Hide completed";var jZ='Hi, {user}';var QZ="High contrast",YZ="Home";var WZ="Horizontally scrollable code",y2="Horizontally scrollable data",nA="Hour",Nu="Hours",KZ="{duration} hours ago",JZ="How are we doing?";var ZZ="How satisfied are you with the quality of the language used?";var XZ="hr";var eX="{hrs} hrs",tX="{numberOfHours} hr {numberOfMinutes} min";var nX="Important";var ex="In progress";var oX="Intermediate";var v2="In this article";var Qf='"{itemTitle}" will be permanently deleted.';var rX="just now";var oA="Known issue",sX="Confirmed";var iX="Investigating",aX="Mitigated",lX="Reported",cX="Resolved";var Yf="Table of contents";var x2="Language",uX="Languages";var rA="Last updated on {time}";var T2="Learning Path",Wf="Learning Path";var fo="Learn more";var dX="Content type",pX="Content types";var tx="Episode";var mX="{count} Episodes";var gX="Events",fX="Last episode",hX="Last episode {date}";var bX="Published {date}",sA="Series",w2="Show",Ar="Shows";var iA="Video unavailable",S2="We're sorry but this video is unavailable. Please try again later while we work to fix it.",Kf="Video Player";var _X="Level",yX="Level {number}";var vX="Levels",xX="Lifecycle",TX="Light";var Jf="LinkedIn";var Dt="Loading...";var wX="More…",SX="Load more results",aA="Arabic",CX="Arabic (Saudi Arabia)",lA="Bulgarian",EX="Bulgarian (Bulgaria)";var cA="Bosnian (Latin)",AX="Bosnian (Cyrillic)",uA="Catalan",dA="Czech",pA="Danish",mA="German";var gA="Greek",kX="Greek (Greece)",fA="English",IX="English (Malaysia)";var hA="Spanish",PX="Spanish (Mexico)",bA="Estonian",_A="Basque",yA="Finnish",vA="Filipino",xA="French";var TA="Irish",wA="Galician",SA="Hebrew",CA="Hindi",EA="Croatian",AA="Hungarian",LX="Hungarian (Hungary)",kA="Indonesian",RX="Indonesian (Indonesia)",IA="Icelandic",PA="Italian";var LA="Japanese",MX="Georgian",RA="Kazakh",MA="Korean",$A="Luxembourgish",DA="Lithuanian",NA="Latvian",FA="Malay",OA="Maltese",UA="Norwegian",qA="Dutch",HA="Polish",BA="Portuguese",$X="Portuguese (Brazil)",DX="Portuguese (Portugal)",zA="Romanian",GA="Russian",VA="Slovak",jA="Slovenian";var QA="Serbian (Cyrillic)",YA="Serbian (Latin)",WA="Swedish",KA="Thai",JA="Turkish",ZA="Ukranian",NX="Ukranian",FX="Urdu",XA="Vietnamese",OX="Vietnamese (Vietnam)";var e0="Chinese (Simplified)",t0="Chinese (Traditional, Hong Kong SAR)",n0="Chinese (Traditional)";var UX="Manage cookies";var o0="Microsoft Learn Editor",qX="We are working hard to migrate your course history and achievements to Learn. At this time, however, only activity completed in Learn will appear here.",HX=`To view your full transcript and/or the badges you've earned in the Microsoft Educator Center and Learn, please go to your MEC profile.`;var BX="Microsoft Employee Privacy Notice",zX="You have signed in with an account associated to an organization ({email}). By becoming a member, you understand and acknowledge that your Microsoft Learn membership means our network of sites and applications will record, and track your achievements and activities and we may share your results and activities with your organization. Additionally, your username, display name, profile picture, affiliation, achievements and activities will be publicly visible. You can hide your achievements and activities under settings.

After you create your profile, we recommend you link a personal account so that you can access your learning progress regardless of your employment status. You can link additional accounts in the Account Management section of the profile settings.";var GX="Microsoft graph editor";var r0="Microsoft Privacy Notice",VX="You need to agree with the Microsoft Privacy Notice to keep your profile and relating data.";var s0="{numberOfMinutes} min";var zp="{numberOfMinutes} mins";var nx="Minutes";var jX="{duration} minutes ago";var kr="Module";var QX="{platformName} Module Reference",ox="Modules";var YX="You have been redirected to the newest product version available for this page.";var WX="{duration} months ago";var rx="More";var KX="Name";var Jr="Next";var JX="Next page";var $s="No",ZX="New collection",Zf="Newest",Xf="Oldest";var XX="No products available",eee="No tags available",i0="No filters available",tee='No items in this section. Move items here from other sections or add items from the Learn training browse page.';var fn="No results",da="No results found",nee="No results yet, but keep typing\u2026",oee='Search for "{term}" in all {searchScope} documentation',ree='Search for "{term}" in all documentation',see="No suggestions",iee="Normal";var a0="No subscriptions found",aee="No, thanks",lee="Note";var cee="We could not find any user.";var uee="{number} item",dee="{number} items";var pee="Very satisfied",mee="Satisfied",gee="Neither satisfied nor dissatisfied",fee="Dissatisfied",hee="Very Dissatisfied";var bee="Office Documentation";var Po="OK",_ee="OK, got it.";var yee="on {date}";var vee="Open search";var xee="{productName} feedback",Tee="{productName} is an open source project. Select a link to provide feedback:";var wee="Open Cloud Shell",See="Optional";var l0="{label} (optional)";var Cee="An error occurred",Eee='We ran into an expected error. Please try again. If you believe this is a mistake, feel free to contact account representative or customer support.',Aee="The data share you requested is already setup",kee="Do you wish to proceed to view this data share?",Iee="Not at this time",Pee="Sending data share invitation...",Lee="Microsoft Learn Data Sharing Agreement",Ree='I acknowledge and accept the Microsoft Learn Data Sharing Pilot Terms to enable Microsoft to share Learn data with my organization for Learn users signing in with my organization\u2019s tenant ID.',Mee="Try again with your linked work account",$ee="We could not verify your account",Dee='Please sign-in with your work account to access this data share. If you believe this is an error, please contact customer support or contact your account representative.',Nee="Yes, please",pa="Other";var Fee="Overall, how satisfied or dissatisfied are you with Microsoft Learn?";var c0="Package",C2="{platformName} Package Reference";var eh="Page {pageNumber} of {numberOfPages}";var u0="pagination";var Oee="Parameters";var Uee="Your PDF has been generated. Opening for you...";var qee="Phone number",Fu="Plan";var Hee="Please fill out this field.";var Bee="Please provide feedback on how we can improve this content. If applicable, provide the first part of the sentence or string at issue.";var zee="Popular";var Gee="Print";var Vee="Print is disabled for content requiring authorization.",d0="Privacy policy",jee="Poor";var th="Preview";var Ci="Previous",Qee="Previous page";var nh="Product",Yee="{productName} users:";var oh="Products",Wee="Profile";var Kee="Programming language",Jee="Programming languages";var Zee="Provide product feedback";var sx="Q&A";var Xee="asked";var ete="answers",tte="comments";var nte="votes";var ote=`We appreciate your patience as we migrate Microsoft Support Community content to Microsoft Q&A. We're not migrating all the content, and the question you're looking for has been retired. For more information about the migration, see Learn More. You can re-ask the question or explore other questions on the {product} page.`,rte="This question has been retired";var ste="Maximum number of attachments exceeded. Please select up to {maximumCount} attachments.";var ite="Maximum number of mentions exceeded. Please select up to {maximumCount} mentions.";var E2="You must confirm that you are not posting Microsoft internal or confidential information.";var ate="User is already suspended. Please refresh the page.",lte="User is not suspended. Please refresh the page.";var cte="You cannot take this action because your account has been suspended due to a violation of our Code of Conduct. Your account was manually reported or identified through automated detection before action was taken. Please refer to our Code of Conduct for more information.";var ute="This answer was helpful",dte="This answer was not helpful";var A2="Report a concern",k2="Report reason";var pte=` to opt into email updates on your reported concern`,mte="Allow Microsoft to contact me about this report",gte="Full Name",fte="Email",hte='We will contact you through your personal account {email}',bte='Microsoft is committed to helping our users and to protecting your privacy. You may read the Microsoft Privacy Statement if you would like more information on how we protect personal data.';var _te="Question",Gp="Question author",I2='

Question author filtering

When filtering by question author, you can only filter by one user at a time and only filter by Learn users.

',P2="Questions";var yte="Question already answered.";var vte="Required question.",xte="Optional question.",Tte="Quick Filters";var L2="Read in English",wte="Read in {language}";var Ste="Recommended content",Wo="Reference";var Cte="References";var Ou="Refresh";var rh="Remove",R2="Remove {itemName}";var M2="Renew";var p0="Report a concern",Ete="Select reason",$2="Adult and sexual",Ate="AI accuracy",D2="Child sexual exploitation and abuse imagery",N2="Coordination of harm",kte="Defamation, impersonation, false information",F2="Bullying and harassment",O2="Graphic violence and gore",U2="Hate speech and discrimination",q2="Non-consensual intimate imagery & intimate extortion",Ite="Off topic or irrelevant posts",H2="Other Terms of Use or Code of Conduct violation",Pte="Personal or sensitive user information",B2="Profanity and vulgarity",z2="Sexual solicitation",Lte="Spam";var G2="Suicide and self-injury",V2="Terrorism and violent extremism",j2="Trafficking",Q2="Violent threats, incitement, and glorification of violence";var Rte="Request Preview",Y2="Request URL";var ma="Required fields are marked with an asterisk";var Mte="Types";var $te="Response Code";var W2="Restart";var Dte="{numberOfResults} result",m0="{numberOfResults} results";var sh="Resume",g0="Retake";var Nte="Role";var Fte="Learning path";var Ote="Roles";var Ute="RSS",qte="Run";var f0="We're encountering an issue with the security verification process required to activate the resource. Please retry after 10 minutes.",K2=`We have reviewed your appeal and determined that your account has violated our Terms of Use. Your interactive resource access will not be reinstated. However, you can continue to access Microsoft Learn's training content. Many module exercises can be completed using your personal subscription, but charges may apply, and you may need to modify the instructions to work with your subscription.`;var at="Save";var Hte="Skill";var J2="Add to Plans",Z2="Added to Plans",Bte="Manage {title} in Plans",zte="Add {title} to a plan";var X2="Copy plan",Gte="Days to milestone: {number}";var Vte="Estimated time to complete: {time}";var jte="{number} milestone(s) in this plan";var Qte="Milestone {number}",Yte='Added to {collectionName}',Wte='Added to Plans',Kte="Sign in to Microsoft Learn to use AI to build a personalized and tailored learning plan that considers your unique needs and provides the most relevant content.",Jte='Removed from {collectionName}',Zte='Removed from Plans',h0="Background",Xte="Current role",ene="Choose a role",b0="Provide your career background information.",tne="Provide your detailed title and responsibilities",nne="What's your career stage?",one="Early career (0-5 years)",rne="Mid-career (5-10 years)",sne="Advanced career (10+ years)",ine="Build your plan",ane="{AppliedSkills} (scenarios-based, interactive lab assessments)",lne="Complete a challenging project at work",cne="Earn a professional credential in your field",une="Enhance a skillset, such as learning a new software tool or programming language",dne="Enter project technologies, goals, and success metrics",pne="Hold down Ctrl button on Windows/Command button on Mac to select multiple options.",mne="Provide project details",gne="Scenario-based credentials that are earned through practical, interactive lab assessments demonstrating your proficiency and ability to implement a real-world solution.";var eF="Select category",ix="Select certification",fne="Select credential",_0="Select a skill",tF="Select subject",hne="Select type of credential",bne="What are your career goals?",_ne="Choose your plan goal",y0="Complete a specific project",yne="Provide a detailed project description including a problem statement and the expected outcome along with technologies, frameworks, languages, or services that you're using.",vne="Provide your detailed title and responsibilities",xne="What is the project goal, problem, and expected outcome? Include any technologies, frameworks, languages, and services that you're using.",Tne="Dos and don'ts when describing the project",wne=`Do: "I'm developing a web-based application that leverages machine learning algorithms to predict inventory needs, track stock levels in real-time, and automate reordering processes.

The main features are real-time inventory tracking, predictive analytics, automated reordering and a reporting/analytics.

Technologies we will use are Microsoft Blazor for the frontend user interface, ASP.NET Core for server-side logic and API requests, Azure Cosmos DB for storing inventory data and transactions, Azure Machine Learning and Azure cloud services."`,Sne=`Don't: "I need to build an inventory tracking web app."`,Cne='Take a few minutes to help us build your learning plan with AI\u2014personalized to you! Microsoft will never share this data. Please read the AI transparency notes to learn more about use cases and limitations and privacy policy.',v0="Earn a credential",Ene="How do you want to gain credentials?",Ane="Validate skills through a scenario-based assessment",x0="Select the most relevant {AppliedSkills}",kne="Earn an industry-recognized, role-based Microsoft certification",T0="Industry-recognized certifications",w0="Hmm, something went wrong. Please try again.",Ine="The plan wasn't generated because the form might include wording that may be in violation of Microsoft Learn code of conduct. Please start over and change your phrasing.",Pne="Unfortunately, we couldn't generate your plan. Please start over.",Lne="We couldn't open your plan. Please try again.",Rne="We couldn't find credentials for this role. Please select a different role and try again.",S0="Enter detailed title and responsibilities which can help our AI system to better personalize your learning plan. We recommend adding your job title and details about specific tasks you perform which relate to your plan goal";var Mne="Give as many details as you can, but don't include any private or sensitive information",nF="Is this plan helpful?",$ne="Prompts and generated responses will be shared. Preview what will be shared {here}",oF="This plan is helpful",rF="This plan is not helpful",Dne="We appreciate you taking the time to rate the suggested plan and provide comments. Your input will help us improve our experience.",Nne="What about the plan could be improved?",Fne="What did you like about the plan?",One="Goal",Une="Generate plan",C0="Generating your plan...",qne="Almost there",Hne="Almost there - we're just putting the final touches to ensure everything is perfect!",Bne="Completion time",zne="Now, we're estimating milestone completion time based on your learning pace.",Gne="Next, we're outlining your learning outcomes.",Vne="Lastly, we're setting milestones including key stages and checkpoints.",jne="First, we're generating your plan title and description that'll define the purpose and scope of your project.",Qne="Title and description",E0="Grow in current career",Yne="How does it work?",Wne='Each AI-generated plan is based on your selections and the info you provided. We curate relevant content from Microsoft to create a personalized plan. This plan includes tailored training and documentation, organized milestones, progress tracking tools for individuals or groups, and recognition upon completion. Learn more about how AI plan generation works and its limitations.',ih="Objectives",A0="Provide more information about your career goals.",k0="Start a new career",Kne="Enter detailed title and responsibilities. We recommend using specific job title(s) and/or detailed responsibilities that relate to your plan goal. This helps our AI system to be more personalized and accurate.",Jne="Role description",Zne="Select role",Xne="Select the most relevant role",eoe="What role are you interested in exploring?",toe="Start over without saving",noe="Start over without saving your plan?",ooe="If you start over, the plan and info you entered won't be saved, and you'll need to reenter your details and preferences.",roe="Take a few minutes to help us build your learning plan with AI\u2014personalized to you!",ax="Tell us your goal",soe="Add as much information and detail as possible",ioe='Example: "My goal is to become proficient in Azure AI services. I want to learn how to build, deploy, and manage AI models using Azure Machine Learning. Additionally, I aim to understand how to integrate these models into our existing applications to enhance their capabilities and provide better insights."',lx="Timeline",cx="Let us know how much time you have to work on your plan.",aoe="How much time can you dedicate weekly?",loe="When do you want to finish your learning plan?",coe="Less than 1 hour",uoe="1-2 hours",doe="3-5 hours",poe="5-10 hours",moe="More than 10 hours",goe="Within 3 months",foe="3-6 months",hoe="6-12 months",boe="More than 12 months";var ah="Review plan";var _oe="Success! Your new plan is ready. Please review as AI-generated content may be inaccurate.";var yoe="Example plan",voe="This skilling plan guides you through developing AI solutions using Azure AI Services, focusing on natural language processing, generative AI, and custom AI applications. You'll learn to leverage Azure's powerful tools and services effectively.";var xoe="By the end of this plan, you'll be able to create and deploy AI solutions using Azure AI Services, including natural language processing and generative AI applications.",Toe="By the end of this plan, you'll be able to implement custom AI applications using Azure OpenAI Service and Azure AI Studio.",woe="By the end of this plan, you'll be able to develop intelligent applications that utilize Azure AI capabilities for various use cases.",Soe="Learn foundational Azure AI services",Coe="In this section, learners will explore the basics of Azure AI Services, gaining foundational knowledge to build AI solutions. Key technologies include Azure AI Services, with tasks such as understanding service capabilities and initial setup.",Eoe="Get started with Azure AI Services",Aoe="Develop advanced AI solutions with Azure",koe="This section focuses on developing advanced AI solutions, including natural language processing and generative AI. Learners will work with Azure AI Services and Azure OpenAI Service, engaging in tasks like building language models and creating custom copilots.",Ioe="Develop natural language processing solutions with Azure AI Services",Poe="Develop applications with Azure OpenAI in Foundry Models",Loe="Develop your own custom copilots with Azure AI Studio",Roe="Develop AI Solutions with Azure AI Services",Moe='Plans updated';var $oe="Choose a different name for your plan",Doe="Copy Link";var I0="Manage";var P0="Leave",Noe="Leave plan",Foe="Are you sure you want to leave this plan?",Ooe="You'll lose all records of your progress, and won't appear in the creator's report.",Uoe="Yes, leave",qoe="Enter a title";var Hoe="Sorry, this plan is private.",Boe="The creator of this plan has marked it as private and it is not currently visible to other users.",zoe="You can review your Plans in your user profile.",Goe="View your Plans",Voe='You can also return to Plans.',joe="Plan unavailable",Qoe="This plan does not exist or was removed.",Yoe="If this link was shared with you, request a new link.",Woe="Completed";var Koe="A plan allows learners to progress through a set of milestones to achieve learning outcomes. You can invite learners to your plan and track their progress.",Joe="Started";var Zoe="Official plan";var Xoe="Plan not found. Please refresh the page.",ere="One or more milestones is empty or is missing the recommended days to complete. Please fix these issues before publishing the plan.",tre="Plan details";var nre="Delete plan",ore="To delete your plan, ensure no users are joined to it. All users must drop the plan first.",rre="Are you sure that you want to delete the following plan?",sre="Yes, delete plan";var lh="Invite learners",sF="Copy invite link",ire="Link copied to clipboard",are="Delete learning group",lre="You are about to delete the following learning group: {learningGroupName}. Do you want to proceed?",cre="Group deleted",ure="Groups",ux="Group name",dre="Individuals";var pre="A learning group is a name that allows you to identify a group of learners in your progress report; learners will not see this name.

Creating a learning group generates a unique link to your plan for the specific group of learners.";var iF="New learning group",mre="Please enter a name for this learning group",gre="Your invitation to start {planTitle} plan on Microsoft Learn",fre="Start your plan and begin your learning journey today.",hre="You have been invited to start the {planTitle} plan on Microsoft Learn.",bre="A plan is a set of curated and organized content on Microsoft Learn with milestones designed to help you to achieve learning outcomes.",_re="By completing this plan, you\u2019ll achieve the following learning outcomes:",yre="Start your plan today!",ch="View progress",vre="Download this file to view a list of learners and their progress.",L0="Download CSV",xre="The file contains the following information:",Tre="Learner group",wre="Learn username",Sre="Start date",Cre="End date",Ere="Items completed",Are="Items total",Uu="Learning outcomes",kre="Edit learning outcomes",Ire="A learning outcome is specific knowledge, skills, or expertise that the learner will get from completing this plan.",Pre="Tip: Begin each learning outcome with a verb. Each outcome should finish the sentence \u201CUpon completion of this plan, learners will be able to...\u201D";var Lre="Outcome 1",Rre="Outcome 2 (optional)",Mre="Outcome 3 (optional)",$re="Outcome {number}",Dre="Convert to an official plan",Nre="Convert a plan to an official plan",Fre="An official plan should be used when you want your plan to represent Microsoft and if you would like to include links that are external to Microsoft Learn. Always ensure that your plan is complete, free of typographical errors, and that content is in the correct sequence. Once an official plan is published, it cannot be altered.",Ore="To preserve any external links from an underlying Official Collection or plan, please convert to an official plan.",Ure="An official plan represents Microsoft, so please ensure that your published plan is complete, free of typographical errors, and that content is in the correct sequence.";var R0="This plan has been submitted to be localized",qre="The plan is complete and proofread",Hre="Thank you for submitting your official plan for localization.",Bre="Mark as completed",aF="Milestone",zre="Add milestone",Gre="Edit milestone";var Vre="New milestone",jre="Days to milestone:",Qre="1 milestone",Yre="{numberOfMilestones} milestones";var Wre="Milestone completed";var Kre="Move to";var Jre="Please confirm all milestones have a title and days to complete. You may need to expand each milestone.";var Zre="Mark as complete?",Xre="Do you want to mark it complete? Once you mark it as complete, you won't be able to review it again.",ese="Welcome!",tse="To start this plan, you have to share your plan progress data with the creator of the plan. The data that will be shared is: the dates that you start and complete the plan and how many items of the total you have completed at any point in time. Your data will be associated with your public Learn username.",nse="Do you agree to share your progress?",ose="Yes, I agree to share my progress",rse="If you would like to receive useful emails to guide and encourage you through your Plans journey, please go to your Profile Settings page and provide a contact email for notifications.",sse="Save all items in this plan as a new",ise="Please sign in to add this to your plan.";var ase="You don't have any plans yet.",lF="A learner group with this name exists already. Please enter a different name";var lse="Reported plan",cse='A concern has been reported on this plan and it is currently under Microsoft review. Please refer to our Terms of Use for more information.';var use="Save your customized collection";var cF="Schedule exam";var rn="Search";var dse="Search all across Microsoft Learn";var uF="Search filters";var pse="Search Microsoft Learn",mse="Search documentation",dx="Search previous versions";var M0="Seconds",gse="{duration} seconds ago",fse="{seconds} seconds",$0="Section",hse="Section titled: {title}";var px="See less";var qu="See more";var D0="Select Package";var N0="Select Version";var bse="Service";var Vp="Settings",F0="Share";var O0="[Shared Article] {articleTitle}",_se="I completed {achievementTitle}! I'm so proud to be celebrating this achievement and hope this inspires you to start your own @MicrosoftLearn journey!";var mx="Share to your feed:";var dF="Share via";var yse="Share your achievement:",vse="Sharing",xse="Sharing is disabled for content requiring authorization.";var uh="Show less",Hu="Show more",U0="Show {number} more",q0="Signed In",Zr="Sign in";var Tse="Signing in...";var wse='Sign in to Microsoft Learn';var gx="Sign in to start",jp="Sign out";var Sse="Site";var Cse="{count} more",H0="Clear filters",Ese="Hide filter",pF="{filter} options";var Ase="Queried terms:",mF="Thinking...",gF="Generating result...",fF="Searching...",kse="Search Results",hF="Sorry, I can't help with this. Please make a new request or share your feedback.",bF="Sorry, you have sent too many requests in a short period of time. Please wait a moment and try again.",Ise="Accurate/relevant content",Pse="Complete/clear content",Lse="Fast response",Rse="Inaccurate/irrelevant content",Mse="Incomplete/unclear content",$se="Offensive/inappropriate content",Dse="Slow response",_F="Something else",yF="Give as much detail as you can, but do not include any private or sensitive information",Nse="Tell us more",Fse="This answer was helpful",Ose="This answer was not helpful",dh="AI Summary",Qp="Sorry, something went wrong. Please try again later.",vF="Summaries are temporarily unavailable, please try again later.";var xF="Failed to fetch summary",TF="Invalid summary response";var Bu="AI-generated content may be incorrect.",ph='Read our AI transparency notes for more information.',Use='Read our AI transparency notes for more information.',mh="Thanks for your feedback!",fx="Hide",wF="Show",B0="Generating...",qse="Please wait a moment and try again.",z0="We don't have that information yet.",Hse='{count} results for "{searchPhrase}"',Bse='{count} result for "{searchPhrase}"',zse='{count} similar results for "{searchPhrase}"',Gse='{count} similar result for "{searchPhrase}"',Vse='{count} results for "{searchPhrase}" in {scope}',jse='{count} result for "{searchPhrase}" in {scope}',Qse='{count} similar results for "{searchPhrase}" in {scope}',Yse='{count} similar result for "{searchPhrase}" in {scope}',Wse='No match found, showing {count} results similar to "{searchPhrase}".',Kse='No match found, showing {count} result similar to "{searchPhrase}".';var Jse="or view all results on Microsoft Learn",Zse='{count} results for "{searchPhrase}" in {scope} {pivotCategory}',Xse='{count} result for "{searchPhrase}" in {scope} {pivotCategory}',eie='{count} similar results for "{searchPhrase}" in {scope} {pivotCategory}',tie='{count} similar result for "{searchPhrase}" in {scope} {pivotCategory}',gh="Sorry, we couldn't find anything that fit your search.",nie="We tried spell-checking and widening the scope of your search, but were still unable to find anything. Try a different keyword or phrase.",oie="A safeguard hold is currently in place on your device. Details are not available at this time. When the update is available, you\u2019ll see it on the Windows Update page in Settings.",rie="The update is not yet available for your device",sie="Sorry, we couldn't find anything that fit your search in {scope}.",iie='You can still .',aie=`We couldn't find any results matching "{searchPhrase}"`,lie=`We couldn't find any results matching "{searchPhrase}" in {scope}`;var sl="Hmm, something went wrong",Kt="Something went wrong. Please try again.";var Yp="GitHub";var cie="Sort by:";var ga="Start",uie="Starts {startDate}",die="Start Date";var pie="Starting date";var mie="Start over";var gie="Step {step-index} of {step-count}",fie="Manage {title} in study guides",hie="Add {title} in study guides";var bie="Subject",_ie="Subjects",Nn="Submit";var yie="Submit another feedback";var vie="Successfully Submitted!",xie="Thank you for submitting your feedback. We will review it shortly. Please note that feedback reporting is a one way communication and we are not responding back at this time.",Tie="Please note that although we cannot respond to feedback, our team will use your comments to improve the experience.";var wie="Suggestions",Sie="Suggestions will filter as you type";var Cie="Support";var Eie="Table {index}";var Aie="Tag";var SF="Tags";var kie="Characters left";var Iie="External images can only be linked from certain websites. These image urls are not allowed: {urls}. Click to see full domain allowlist.",Pie="The file {fileName} is invalid. File type must be a valid gif, jpg, jpeg, or png image.",Lie="The file {fileName} is too large. File size cannot exceed five megabytes.";var Rie="Cloud Shell";var Mie="{account} already has a profile",$ie="You have reached your account limit",Die="No more than five school or work accounts can be linked to one profile. Please remove one account and try again.";var Nie="You already have a linked account in the same organization";var Fie="Please add another account and try again.";var Oie=`You can only link accounts that don't have a registered profile. Please select a different account or see our troubleshooting guidance for more details.`;var Uie="You have linked this account already",qie="{account} is a personal account. Please select a school or work account.";var Hie="You need at least one account linked to your profile.";var Bie="Only one account per organization is supported.",zie="You can only have one personal account linked",Gie="Profile is currently being merged",Vie="You can refresh the page to check the merge status.";var jie="Select account",CF="Please select a different account";var Qie="There is already a certification profile connected to this profile",Yie="In order to continue, please contact customer support to remove the current certification profile to proceed.";var Wie="This profile has been locked",Kie="This profile is currently locked and is being merged with another profile. Please sign-in to a different profile.",EF="Retry merge",AF="Terminate merge";var Jie="Merge complete";var Zie="You can refresh the page to check the merge status.",Xie="Profile merge record not found",eae='Unable to find your profile merge. Please refresh the page. If the problem is still there, please contact customer support.',tae="A previous merge attempt is preventing this action",nae="One of the profiles you are trying to merge is currently being merged with another profile. Please log into both profiles to check the status.";var oae="Your profiles have been successfully merged.",rae="We ran into a problem merging your source profile (username: {sourceUser}) to your destination profile (username: {destinationUser}).",sae="Some of your data might have been merged in the process, so it is expected if you find some data disappearing from your source profile and appearing on your destination profile.",iae="You can choose one of the following actions:",aae="{terminateMergeText}: It will stop and quit the merge process. You will be able to use both profiles as usual and can trigger a new merge at any time. The data that already merged will remain on your destination profile.",lae="{retryMergeText}: It will re-run the merging process for you once more. Your source profile will be locked during the merging process.",cae="Merging in progress. It may take several minutes to complete.",uae="Your merge has been terminated.";var dae="Microsoft MVP";var pae="Microsoft Learn Student Ambassador";var mae="Sign in with a different account";var gae="Welcome to Q&A!",fae="Get personalized updates on topics you care about",hae="Build your reputation while helping others",bae="Connect instantly with people who share your interests";var _ae="Without completing registration, you will not be able to post or ask a question on Q&A.";var yae="Tell us",G0="Tell us more.",vae="Tell us what you think.",xae="Tell us what you think! Your feedback is essential to us.";var Tae="Terrible";var V0="Thank you for your feedback.",wae="Thank you for your valuable feedback!";var Sae="This article is helpful",Cae="This article is not helpful";var Eae="This page";var Aae="This section will be permanently deleted.";var kae="Microsoft Ignite";var Iae="Register now";var Pae="November 17\u201320, 2026",Lae="Interactive learning, certifications, and direct access to experts all in one place.";var Rae="Tip";var xc="Title";var Mae="Your Azure account {email} has multiple tenants. Please choose one to use for this experience:",$ae="You are already signed into Learn by below account. Would you like to continue current experience with this account?",Dae="Confirm your account",Nae="Continue with Account",Fae="Choose one of your Azure tenants",Oae="Free Azure Trial",Uae="Uh-oh! No Azure Subscription available on this account",qae="Your account {email} does not have an associated Azure Subscription. You are welcome to try a free trial of Azure or sign in to a different account!",Hae="If your account doesn't have a registered Learn profile, this process will complete that for you.";var Bae="Sign in with your account.",j0="Use a different account";var Xr="Training";var zu="Oops... something went wrong. Please reload the page to try again.";var Gu="Try again";var fh="Try It",zae="Try the REST API with the inputs below.",Gae="There was a problem processing your request",Vae="Tutorial";var jae="Last 7 days",Qae="Last 24 hours",Yae="Last 30 days",Wae="Last 365 days";var Kae="type";var Jae="URL",Q0="URL copied!";var kF="Verify your account",hh="Version",Zae="Versions";var IF="Video";var PF="View results ({totalResults})";var Xae="We recommend using Visual Studio 2019.",ele="Download now",tle="Visual Studio Documentation";var nle="Warning";var ole="Was this page helpful?";var rle="Web page";var Y0="Week";var W0="Weeks";var sle="{duration} weeks ago";var ile='Welcome to Microsoft Learn!';var ale="What is the reason for your feedback?";var lle='with AI on Microsoft Learn ';var cle="Windows Documentation";var bh="x.com",LF="{totalXP} XP";var ule="Year",RF="Years";var Ei="Yes",Tc="Yes, delete";var dle="You don't have any collections yet.";var ple="You must select between {min} and {max} {tagLabel}.",mle="`{tagLabel}` is no longer in use. Use a different tag that applies to your scenario.";var gle="Your Account";var fle="MSDN TechNet has been retired and this article no longer exists. The following links have related information:",hle="Archived TechNet Wiki content",ble="Archived MSDN and TechNet forums";var _le="Microsoft Learn documentation",yle="Microsoft Learn home page",vle="Microsoft Q&A";var Wp=window;var B=Wp,_h=Wp.navigator,w=Wp.document,xle=Wp.localStorage,Ko=Wp.history,te=Wp.location,b=B.msDocs,xe=new Promise(e=>{w.readyState==="loading"?w.addEventListener("DOMContentLoaded",()=>e()):e()});k();function Rt(){window.dispatchEvent(new CustomEvent("content-update"))}function Jt(e,t,n="",o="button-info",r="banner",s){let i=s||w.getElementById("disclaimer-holder");if(!i||w.getElementById("server-disclaimer-holder"))return null;let l=t&&t.url?d`${t.text}`:"",c=t&&t.clickHandler?d``:"",u=t?d`
${l||c}
`:"";return x(d``,i),Rt(),i}var _x="__event_type_id__",SRe=0,ze=class{constructor(){this.callbacks={}}publish(t){let n=t.constructor[_x];if(n===void 0||this.callbacks[n]===void 0)return;let o=this.callbacks[n].slice(0);for(let r of o)r(t)}subscribe(t,n){t.hasOwnProperty(_x)||(t[_x]=SRe++);let o=t[_x];this.callbacks[o]===void 0&&(this.callbacks[o]=[]);let r=this.callbacks[o];return r.indexOf(n)===-1&&r.push(n),()=>this.unsubscribe(t,n)}unsubscribe(t,n){let o=t[_x];if(o===void 0||this.callbacks[o]===void 0)return;let r=this.callbacks[o],s=r.indexOf(n);s!==-1&&r.splice(s,1)}dispose(){this.callbacks={}}},ut=new ze;function Qu(e,t,n){let o=()=>{},r=s=>{n(s),o()};return o=e.subscribe(t,r),o}var Eh=class{constructor(t){this.url=t}},bn=class{constructor(t,n,o){this.title=t;this.url=n;this.referrerUrl=o}};var ll;function KF(){ll={};let e=w.head.querySelectorAll("meta[name],meta[property]");for(let t=0;t{let o=n.name||n.getAttribute("property");return t[o]=n.content,t},{})}function P(e){return ll===void 0&&KF(),ll[e]===void 0?void 0:ll[e][0]}function Ai(e){return ll===void 0&&KF(),ll[e]?ll[e].slice():[]}var dt=class{static get contentDir(){return b.data.contentDir}static get contentLocale(){return b.data.contentLocale}static get userDir(){return b.data.userDir}static get userLocale(){return b.data.userLocale}static get hasLocSideBySideTranslation(){return P("enable_loc_sxs")==="true"||P("bilingual_type")==="hover over"}static get translationType(){return P("ms.translationtype")?.toUpperCase()}static get machineTranslated(){return this.translationType?/^(?:MT|MTE|MTE75|MTE95)$/i.test(this.translationType):!1}},Fs=class{static get brand(){return b.data.brand}static get kind(){return P("page_kind")}static get type(){return P("page_type")}static get template(){return b.data.pageTemplate}};function ce(e){let t,n=/\+/g,o=/([^&=]+)=?([^&]*)/g,r=i=>decodeURIComponent(i.replace(n," "));e===void 0&&(e=te.search),e=e.substring(1);let s={};for(;t=o.exec(e);)s[r(t[1])]=r(t[2]);return s}function pe(e,t=!1){let n=[];for(let o in e)e.hasOwnProperty(o)&&e[o]!==""&&e[o]!==null&&e[o]!==void 0&&(t&&Array.isArray(e[o])?e[o].forEach(r=>{n.push(encodeURIComponent(o)+"="+encodeURIComponent(r))}):n.push(encodeURIComponent(o)+"="+encodeURIComponent(e[o].toString())));return n.join("&")}function Gt(e,t,n){let o=ce(),r=!1;for(let c in e)e.hasOwnProperty(c)&&o[c]!==String(e[c])&&(o[c]=e[c],r=!0);let s=te.hash;if(typeof n=="string"&&(n=n.trim(),n.substr(0,1)!=="#"&&n!==""&&(n=`#${n}`),s!==n&&(s=n,r=!0)),!r)return;let i=pe(o);i.length>0&&(i="?"+i);let a=`${te.protocol}//${te.host}${te.pathname}${i}${s}`,l=Ko.state||{};t==="pushState"?Ko.pushState(l,w.title,a):t==="replaceState"?Ko.replaceState(l,w.title,a):te.href=a}function JF(e){let t=w.createElement("a");/^https:\/\/|^http:\/\//.test(e)?t.href=e:/^\/\//.test(e)?t.href=te.protocol+e:t.href=te.origin+e;let n=t.pathname[0]==="/"?t.pathname:"/"+t.pathname,o=t.host.replace(/:443$|:80$/,""),r=t.hostname.replace(/:443$|:80$/,"");return{hash:t.hash,host:o,hostname:r,href:t.href,origin:`${t.protocol}//${o}`,pathname:n,protocol:t.protocol,search:t.search}}function ZF(e,t=2e3,n=";"){let o=encodeURIComponent(n).length,r=[],s,i;for(let a of e){let l=encodeURIComponent(a).length;if(l>t)throw new Error(`The encoded length of "${a}" (${l}) is greater than the max partition length (${t}).`);(!s||i+l>t)&&(s=[],r.push(s),i=0),s.push(a),i+=l+o}return r}function dr(e=new URL(te.href)){let t=new URLSearchParams(e.search),n={};return t.forEach((o,r)=>n[r]=o),n}var Bn=(()=>{let e;return t=>{if(!t&&e!==void 0)return e;let n=ce().dataSource;return e=P("is_archived")==="true"||b.data.pageTemplate==="SearchPage"&&n==="previousVersions",e}})();function ERe(){return P("is_retired")==="true"}function ARe(){let e=location.pathname.split("/").filter(t=>t!=="");return e.length>=2&&e[1]==="previous-versions"}function kRe(){if(!Bn())return;let e=dt.machineTranslated,t=e?LK:PK,n=ARe(),o=e?n?FK:IK:n?NK:AK,r=P("current_version_url"),s=ERe()?t:o;if(P("vs_archive")==="true"){let a=Xae,l=ele;Jt(a,{url:`https://visualstudio.microsoft.com/downloads/?utm_medium=microsoft&utm_source=${location.host}&utm_campaign=button+cta&utm_content=download+vs2019`,text:l})}if(r)Jt(s,{url:r,text:OK});else if(b.data.pageTemplate==="SearchPage"){let a=c2;Jt(VK,{url:location.origin,text:a})}else{let a=c2;Jt(s,{url:location.origin,text:a})}}function qle(){Bn()&&kRe()}function IRe(e){switch(e){case"learn.microsoft.com":return{supportLevel:"production",accessLevel:"online",reviewFeatures:!1,systemContent:!0,azurePortalHostname:"portal.azure.com",legacyHosting:!0,siteName:"learn"};case"review.learn.microsoft.com":return{supportLevel:"production",accessLevel:"online",reviewFeatures:!0,systemContent:!0,azurePortalHostname:"portal.azure.com",legacyHosting:!0,siteName:"learn"};case"dev.learn.microsoft.com":return{supportLevel:"development",accessLevel:"online",reviewFeatures:!0,systemContent:!0,azurePortalHostname:"portal.azure.com",legacyHosting:!0,siteName:"learn"};case"docs.azure.cn":return{supportLevel:"production",accessLevel:"online",reviewFeatures:!1,systemContent:!1,azurePortalHostname:"portal.azure.com",legacyHosting:!0,siteName:"mooncake"};case"review.docs.azure.cn":return{supportLevel:"production",accessLevel:"online",reviewFeatures:!0,systemContent:!1,azurePortalHostname:"portal.azure.com",legacyHosting:!0,siteName:"mooncake"};case"dev.docs.azure.cn":return{supportLevel:"development",accessLevel:"online",reviewFeatures:!0,systemContent:!1,azurePortalHostname:"portal.azure.com",legacyHosting:!1,siteName:"mooncake"};case"developer.microsoft.com":return{supportLevel:"production",accessLevel:"online",reviewFeatures:!1,systemContent:!1,azurePortalHostname:"portal.azure.com",legacyHosting:!1,siteName:"developer"};case"review.developer.microsoft.com":return{supportLevel:"production",accessLevel:"online",reviewFeatures:!0,systemContent:!1,azurePortalHostname:"portal.azure.com",legacyHosting:!1,siteName:"developer"};case"dev.developer.microsoft.com":return{supportLevel:"development",accessLevel:"online",reviewFeatures:!0,systemContent:!1,azurePortalHostname:"portal.azure.com",legacyHosting:!1,siteName:"developer"};case"localhost":return{supportLevel:"development",accessLevel:"local",reviewFeatures:!0,systemContent:!1,azurePortalHostname:"portal.azure.com",legacyHosting:!0,siteName:"learn"};case"local.learn.microsoft-int.com":case"developer-microsoft-com.local":case"docs-azure-cn.local":return{supportLevel:"development",accessLevel:"local",reviewFeatures:!0,systemContent:!0,azurePortalHostname:"portal.azure.com",legacyHosting:!1,siteName:"learn"};case"prdev.learn.microsoft.com":case"ppe.preview.learn.microsoft-int.com":case"prod.preview.learn.microsoft-int.com":case"mc.preview.learn.microsoft-int.com":return{supportLevel:"development",accessLevel:"online",reviewFeatures:!0,systemContent:!0,azurePortalHostname:"portal.azure.com",legacyHosting:!1,siteName:"learn"};default:return{supportLevel:"production",accessLevel:"online",reviewFeatures:!1,systemContent:!0,azurePortalHostname:"portal.azure.com",legacyHosting:!0,siteName:"learn"}}}var R=b?.environment?b.environment:IRe(location.hostname);var ne={setItem(e,t){try{B.localStorage.setItem(e,t)}catch{}},getItem(e){try{return B.localStorage.getItem(e)}catch{return null}},removeItem(e){try{B.localStorage.removeItem(e)}catch{}},clear(){try{B.localStorage.clear()}catch{}}},Ah={setItem(e,t){try{B.sessionStorage.setItem(e,t)}catch{}},getItem(e){try{return B.sessionStorage.getItem(e)}catch{return null}},removeItem(e){try{B.sessionStorage.removeItem(e)}catch{}}};var XF="docs.preview",eO=(new URLSearchParams(te.search).get("preview")||"").split(",").map(e=>e.trim().toLowerCase()).reduce((e,t)=>(t!==""&&(e[t]=1),e),{}),yx,PRe=()=>{let e;return ne.getItem(XF)?e=JSON.parse(ne.getItem(XF)):e={},e},LRe=(e,t)=>{yx=PRe();let n=eO[e]===1,o=!isNaN(yx[e]),r=n||o,s=eO[`x-${e}`];return n?console.log(`Preview ${e} via query string`):o&&console.log(`Preview ${e} via local storage`),t&&(r||s)&&(r&&(yx[e]=Date.now()),s&&delete yx[e],ne.setItem(XF,JSON.stringify(yx))),r},Ye=(e,t={require:!1,persist:!1})=>{let{require:n,persist:o}=t;return R.reviewFeatures&&Object.keys(eO).length===0&&!n?!0:(e=e.toLowerCase(),LRe(e,o))};function rk(e=te.search,t=R.reviewFeatures){let n="preview-date",o=new URLSearchParams(e),r=new Date(o.get(n)).getTime();return t&&!isNaN(r)&&r!==0?r:Date.now()}var RRe=["https://github.com/dotnet/docs/blob/live/docs/standard/design-guidelines/","https://github.com/dotnet/docs/blob/main/docs/standard/design-guidelines/","https://github.com/MicrosoftDocs/azure-compliance-pr/","https://github.com/MicrosoftDocs/OfficeDocs-SkypeForBusiness-pr/","https://github.com/MicrosoftDocs/OfficeDocs-Teams-PhoneRef-pr/"];function Hle(){let e=P("original_content_git_url");return RRe.some(n=>e?.startsWith(n))}function Ble(){let e=P("page_type"),t=P("page_kind"),n=P("is_admin")==="true",o=P("is_editor")==="true";return e==="learn"||e==="profile"||n||o||t==="learn"&&(e==="browse"||e==="home")}var S=MRe();function MRe(){return{aiSummary:b.data.pageTemplate==="Conceptual"&&b.data.userLocale?.startsWith("en"),arkoseEncrypt:R.reviewFeatures,apiBrowser:!0,applicationInsights:Ble(),appliedSkills:Date.now()>=new Date("2023-10-25T09:00:00.000-07:00").getTime()||Ye("applied-skills",{require:!0})||Ye("applied-skills-share",{require:!0}),appliedSkillsManager:!0,appliedSkillsShare:Date.now()>=new Date("2023-10-25T09:00:00.000-07:00").getTime()||Ye("applied-skills-share",{require:!0}),assessmentBranches:R.supportLevel==="production"&&R.reviewFeatures,assessmentMergerLearnAssessment:Ye("assessment-merger-learn-assessment",{require:!0}),assessmentMergerPracticeAssessment:Ye("assessment-merger-practice-assessment",{require:!0}),assessmentMergerRenewalAssessment:Ye("assessment-merger-renewal-assessment",{require:!0}),assessments:R.siteName==="learn",assessmentsEmail:Ye("assessments-email",{require:!0}),azureNotebooks:!0,banner:!0,blogComments:!0,chatTutor:R.siteName==="learn",chromeless:!!b.data.context.chromeless,certificationAndCourseUpdates:Date.now()>=new Date("2023-10-25T09:00:00.000-07:00").getTime()||Ye("certification-and-course-updates",{require:!0}),certificationUpdates:Date.now()>=new Date("2023-10-06T17:00:00.000Z").getTime()||Ye("certification-updates",{require:!0}),codeSamples:!0,connectedExperiences:["Conceptual","FAQ","Question"].includes(b.data.pageTemplate),contentBrowse:!0,cookieConsent:!0,courseScheduling:!0,disabledAppliedSkills:!0,disableSiteSearchSuggestions:!0,enableDeepSearch:(R.supportLevel==="development"||R.supportLevel==="production"&&R.reviewFeatures===!1)&&b.data.userLocale==="en-us"&&P("page_type")==="search"&&Bn()===!1,enableNewSiteSearch:P("page_type")==="search"&&Bn()===!1,enableSearchFilterLeftRail:P("page_type")==="search"&&Bn()===!1,enableModernSearchAnswer:(R.supportLevel==="development"||R.supportLevel==="production"&&R.reviewFeatures===!1)&&b.data.userLocale==="en-us"&&P("page_type")==="search"&&Bn()===!1,enableSiteSearchExperiment:R.siteName==="learn"&&R.supportLevel==="production",feedbackReport:b.data.showFeedbackReport,formAdvisor:b.data.userLocale?.startsWith("en"),formAdvisorCredential:Ye("form-advisor-credential",{require:!0}),gamification:!0,gitContributors:!0,graphOriginUpdate:Ye("graph-origin-update",{require:!0}),hubUpdate:b.data.pageTemplate==="Hub"&&Ye("hub-update",{require:!0}),inlineEdit:Ye("inline-edit",{require:!0}),inlineFeedback:!0,interactivity:!0,labsOnDemand:!0,learnAssessments:!0,skipAssessmentDualWrite:Ye("assessment-v0",{require:!0}),learnEventRebrand:Ye("learn-rebrand",{require:!0}),learningPathIlt:!0,learningPathIltSearch:Ye("learning-path-ilt-search",{require:!0}),marketing:!0,mecMigration:!0,moduleUnitFeedbackReport:!0,oneCustomerVoiceFeedback:!0,oneDS:R.accessLevel!=="local",openSourceFeedback:["Conceptual","Reference","Architecture","FAQ"].includes(b.data.pageTemplate)&&b.data.feedbackSystem==="OpenSource"&&!!b.data.openSourceFeedbackIssueUrl,pageRecommendations:R.siteName==="learn"&&b.data.hasRecommendations&&(P("page_type")==="conceptual"||["FAQ","Architecture","Sample"].includes(b.data.pageTemplate))&&!["reference","managed-reference","ui-reference","language-reference","error-reference","reference-internal","hub-page","landing-page","archived"].some(e=>e===P("ms.topic")?.toLowerCase())&&P("ROBOTS")!=="NOINDEX,NOFOLLOW"&&!Hle(),pdfDownload:R.siteName==="learn",permissionedContent:R.reviewFeatures&&Ye("permissioned-content"),personalChallenge:Date.now()>=new Date("2024-05-28T19:00:00.000Z").getTime()||Ye("personal-challenge",{require:!0}),practiceAssessmentsAllowParam:R.reviewFeatures&&(P("page_kind")==="practiceAssessment"||P("page_kind")==="practiceAssessmentReport"),previewCredentialsL1:Date.now()>=new Date("2023-09-18T18:00:00.000-07:00").getTime()||Ye("credentials-L1",{require:!0}),previewOneStreamPlayerNextVersion:Ye("one-stream-player-next-version",{require:!0}),previewRailEventCard:Ye("rail-event-card",{require:!0}),previewQnaAiAdmin:Ye("qna-ai-admin",{require:!0}),previewQnaAiDemo:Ye("qna-ai-demo",{require:!0}),qna:!0,qnaCaptchaBypass:Ye("qna-captcha-bypass",{require:!0}),qnaStackResults:Ye("qna-stack-results",{require:!0}),qnaTagsFilter:Ye("qna-tags-filter",{require:!0}),quickWins:Ye("quick-wins",{require:!0}),referenceRightRailH3:P("in_right_rail")==="h2h3",referenceRightRailSticky:["Reference"].includes(b.data.pageTemplate),reportWebVitalsAlways:Ye("report-web-vitals",{require:!0}),rightRailSticky:["Conceptual","FAQ","HowTo","Reference","Architecture"].includes(b.data.pageTemplate),rss:!0,shareLink:!0,siteSearchProducts:Ye("site-search-products",{require:!0}),skipToCompletedModal:Ye("completed-modal",{require:!0}),stayCurrentAllowParam:R.reviewFeatures&&(P("page_kind")==="certification"||P("page_kind")==="certificationrenewal"||P("page_kind")==="certificationRenewalAssessment"||P("page_kind")==="certificationRenewalAssessmentReport"),surveyPopover:R.siteName==="learn"||R.accessLevel==="local",systemDrivenAchievement:!0,temporaryClientSideEventBanners:R.siteName==="learn"||R.siteName==="developer",thirdPartyDataSharingConsentFlag:!0,tocSearch:b.data.brand!=="mooncake",translationFeedback:b.data.userLocale!=="en-us"&&P("ocv-translation-feedback")==="true"&&dt.machineTranslated,trainingSkills:b.data.userLocale?.startsWith("en"),tenantManager:Ye("tenant-manager",{require:!0}),userFeedback:Ye("user-feedback",{require:!0}),planGenV2:Ye("plan-gen-v2",{require:!0}),userAnalyticsMocks:Ye("user-analytics-mocks",{require:!0}),userServices:!0,usingStandardFeedback:b.data.standardFeedback||b.data.pageTemplate==="ModuleUnit"||b.data.pageTemplate==="Module",unifiedSearchResults:Ye("unified-search-results",{require:!0})&&P("page_type")==="search"&&Bn()===!1,supportsSharing:P("page_type")!=="learn"&&!(b.data.contentLocale==="en-us"&&b.data.brand==="mooncake")}}function zle(e,t){let n=document.querySelector("#side-doc-outline li > a[aria-current='true']"),o=$Re(e),r=o===null?null:document.querySelector(`#side-doc-outline li > a[href="http://approjects.co.za/?big=#${o}"]`);n!==r&&(n&&DRe(n),r&&(NRe(r),FRe(r,t)))}function $Re(e){if(e.length>0){let t=e.length-1;for(let n=0;n0){t=n;break}if(e[t].getBoundingClientRect().top>=window.innerHeight&&(t-=1),t>=0)return e[t].id}return null}function DRe(e){let t=e.closest("details"),n=t?t.parentElement:e.parentElement;n&&(n.classList.toggle("border-color-transparent"),n.classList.toggle("border-color-primary")),e.classList.remove("font-weight-semibold","color-text"),e.classList.add("color-text-subtle"),e.setAttribute("aria-current","false")}function NRe(e){let t=e.closest("details"),n=t?t.parentElement:e.parentElement;n&&(n.classList.toggle("border-color-transparent"),n.classList.toggle("border-color-primary")),e.classList.remove("color-text-subtle"),e.classList.add("font-weight-semibold","color-text"),e.setAttribute("aria-current","true")}function FRe(e,t){(e.offsetTopt.scrollTop+t.clientHeight)&&(t.scrollTop=e.offsetTop-t.clientHeight/2)}var cl=A9({storageKey:b.data.layoutStateStorageKey,excludesKey:b.data.layoutStateExcludesKey,excludes:b.data.layoutStateExcludes,useViewTransitionOnRestore:!1,storage:localStorage});ut.subscribe(Eh,()=>{cl.suspend()});ut.subscribe(bn,()=>{cl.resume()});function Gle(){E9(),ut.subscribe(bn,el),window.addEventListener("content-update",el);let e=["[data-dismissable]"];window.addEventListener("click",ORe(e))}function ORe(e){return t=>{t.target instanceof Element&&t.target.closest(e.join(","))&&el()}}function Vle(){return document.querySelector("[data-collapsible-toc-toggle]")}var URe=async(e=!document.documentElement.classList.contains("layout-menu-collapsed"))=>{await xe;let t=Vle(),n=document.getElementById("left-container"),o=document.getElementById("ms--toc-content");if(!t||!n||!o)return;let r=e?Op:Hp;t.setAttribute("aria-expanded",String(e)),t.setAttribute("aria-label",r),t.title=r,n.setAttribute("data-toc-collapsed",String(!e)),t.setAttribute("data-bi-name",e?"toc-collapse":"toc-expand"),n.classList.toggle("width-full",!0),o.classList.toggle("padding-left-sm",e),o.classList.toggle("padding-left-xxs",!e),t.hidden=!1};async function jle(){let e=Vle();e&&(cl.subscribe("layout-menu-collapsed","always",t=>URe(!t.isApplied),{useViewTransition:!1}),e.addEventListener("click",()=>{document.documentElement.classList.toggle("layout-menu-collapsed")}))}async function Qle(){await jle();let e=w.getElementById("affixed-left-container"),t=w.getElementById("affixed-right-container");if((S.connectedExperiences||S.rightRailSticky)&&t&&qRe(t),e===null)return;let n=w.getElementById("footer"),o=w.querySelector(".layout-body-header"),r=8,s=1;e.style.top=`${r}px`;function i(){if(e==null||e.hasAttribute("disable-affix"))return;let c=B.innerHeight;if(c<450)e.classList.remove("position-sticky"),e.style.maxHeight="";else{e.style.height="0";let u=n.getBoundingClientRect().height,p=u===0?0:Math.max(0,c-n.getBoundingClientRect().top),m=o.getBoundingClientRect().height,g=m===0?0:Math.max(0,o.getBoundingClientRect().bottom),f=w.body.scrollHeight;e.classList.add("position-sticky"),e.style.maxHeight=`${f-(2*r+m+u+s)}px`,e.style.height=`calc(100vh - ${r+g+p+s}px)`}}let a=0;function l(){cancelAnimationFrame(a),a=requestAnimationFrame(i)}B.addEventListener("scroll",l,{passive:!0}),B.addEventListener("resize",l,{passive:!0}),B.addEventListener("content-update",l),B.addEventListener("dismiss-content-update",l),i(),xe.then(i),B.addEventListener("pageshow",i,!1)}function qRe(e){let n=w.getElementById("footer");e.classList.add("position-sticky"),e.style.top="8px";function o(){let i=8,a=e.offsetHeight;if(a>B.innerHeight){let l=a-B.innerHeight;i=-1*(8/2+Math.min(B.scrollY,l))}if(e.style.top=`${i}px`,S.rightRailSticky){e.style.removeProperty("bottom"),e.style.top=`${i}px`;let l=w.getElementById("side-doc-outline"),c=w.getElementById("ms--site-user-feedback-right-rail");if(!l&&!c)return;let u=n.getBoundingClientRect().height,p=w.querySelector(".header-holder"),m=p.getBoundingClientRect().height,g=c?c.getBoundingClientRect().height:0,f=w.body.scrollHeight;e.style.maxHeight=`${f-(2*8+m+u)}px`;let _=u===0?0:Math.max(0,B.innerHeight-n.getBoundingClientRect().top),h=m===0?0:Math.max(0,p.getBoundingClientRect().bottom);if(e.style.height=`calc(100vh - ${2*8+h+_}px)`,l){l.style.overflow="auto",l.style.maxHeight=`calc(100% - ${g}px)`;let v="#ms--in-this-article, #ms--feedback, #ms--additional-resources-mobile-heading",y=S.referenceRightRailH3?`#main h2:not(${v}), #main h3`:`#main h2:not(${v})`,T=Array.from(w.querySelectorAll(y)).filter(I=>!!I.id&&I.offsetParent!==null);zle(T,e)}}}let r=0;function s(){cancelAnimationFrame(r),r=requestAnimationFrame(o)}B.addEventListener("scroll",s,{passive:!0}),B.addEventListener("resize",s,{passive:!0}),B.addEventListener("content-update",s),o(),xe.then(o)}var HRe=/([a-z]\.)([a-z])/gi,BRe=/([a-z])([A-Z]+[a-z])/g,zRe=/(\w\/)(\S?)/gi,sk="",tO=`$1${sk}$2`,GRe=/\u200B/g;function Ro(e,t=3){return!e||!e.length||t===0||(t&2&&(e=e.replace(HRe,tO)),t&1&&(e=e.replace(BRe,tO)),t&4&&(e=e.replace(zRe,tO))),e}function Yle(e,t){let n=[];if(!e||t===0)return n;e=Ro(e,t);let o=0,r=e.indexOf(sk,o);for(;r!==-1;)n.push(e.substring(o,r)),n.push(document.createElement("wbr")),o=r+sk.length,r=e.indexOf(sk,o);return n.push(e.substring(o)),n}function Wle(e){return e.replace(GRe,"")}var VRe={"&":"&","<":"<",">":">",'"':""","'":"'"},Kle=/[&<>"']/g,jRe=RegExp(Kle.source);function je(e){return e&&jRe.test(e)?e.replace(Kle,t=>VRe[t]):e}function ik(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}function ak(e){let t=e.cloneNode(!0);t.hidden=!0,document.body.appendChild(t);function n(o){o!==null&&(n(o.nextElementSibling),window.getComputedStyle(o,null).getPropertyValue("display")==="none"?o.parentElement.removeChild(o):n(o.firstElementChild))}return n(t.firstElementChild),document.body.removeChild(t),t.textContent}function ns(e,t={year:"numeric",month:"short",day:"numeric"},n=b.data.userLocale){return new Date(e).toLocaleDateString(n,t).replace(/\u200E/g,"")}function lk(e){Array.from(document.querySelectorAll("span[data-localize-date]")).forEach(n=>{if(n.textContent!==""){let o=ns(new Date(n.textContent),e);n.textContent=o}})}var QRe=/(^|\s)(C#|F#|C\+\+)($|\s|[.,!?;:])/g;function ck(e,t="text"){let n=`$1$2${t==="text"?"\u200E":"‎"}$3`;return e.replace(QRe,n)}function Jle(e=document.body,t=b.data.userLocale){e.querySelectorAll("time[data-article-date]").forEach(o=>{o.classList.remove("is-invisible");let r;try{if(r=new Date(o.getAttribute("datetime")),isNaN(r.getTime()))return}catch{return}o.setAttribute("datetime",r.toISOString());let s={year:"numeric",month:"2-digit",day:"2-digit"};o.getAttribute("data-article-date-source")==="ms.date"&&(s.timeZone="UTC");let a=ns(r,s,t);o.textContent=a})}function nO(e){return decodeURIComponent(atob(YRe(e).replace(/_/g,"/").replace(/-/g,"+")).split("").map(t=>`%${("00"+t.charCodeAt(0).toString(16)).slice(-2)}`).join(""))}function YRe(e){switch(e.length%4){case 0:return e;case 2:return e+"==";case 3:return e+"=";default:throw new Error("Illegal base64url string!")}}var oO="id_token",dk="docsAuthToken",WRe="account_linking_token",vx=class{constructor({detail:t}){this.message="invalid token",this.detail=t}},ul=class{constructor({detail:t}){this.message="invalid claim",this.detail=t}},uk=class{constructor({detail:t}){this.message="malformed claim",this.detail=t}};function pk(e){ne.setItem(oO,e)}function Yu(){return ne.getItem(oO)}function mk(){ne.removeItem(oO)}function gk(e){ne.setItem(dk,e)}function Zn(){return ne.getItem(dk)}function fk(){ne.removeItem(dk)}function kh(){ne.removeItem(WRe)}function nm(e,t={nbfClockSkewInMilliseconds:2500}){try{if(!(e&&e.length&&e.indexOf(".")>-1))throw new vx({detail:"Invalid JWT - no separators found."});let o=e.split("."),r=JSON.parse(nO(o[1]));if(!r)throw new vx({detail:"Invalid JWT - payload is missing."});if(r.hasOwnProperty("nbf")){let s=r.nbf;if(isNaN(s))throw new uk({detail:"Invalid NBF claim - claim is malformed."});let i=new Date(0);i.setUTCSeconds(r.nbf);let a=new Date(Date.now()+t.nbfClockSkewInMilliseconds);if(i>a)throw new ul({detail:"Invalid NBF claim - token not yet valid."})}if(r.hasOwnProperty("exp")){let s=r.exp;if(isNaN(s))throw new uk({detail:"Invalid EXP claim - claim is malformed."});let i=new Date(0);i.setUTCSeconds(r.exp);let a=new Date(Date.now());if(i<=a)throw new ul({detail:"Invalid EXP claim - token has expired."})}return r}finally{}}var hk=e=>{if(!(e&&e.length&&e.indexOf(".")>-1))throw new vx({detail:"Invalid JWT - no separators found."});let n=e.split(".");return JSON.parse(nO(n[1]))};var Xle=`data:image/svg+xml;base64,${btoa('')}`,ece=`data:image/svg+xml;base64,${btoa('')}`,tce="a4d008df-4ece-4cb3-b7c9-d1be5ac4cacf",KRe=(e,t)=>{e||(e=jr);let n=t.replace(/\D/g,""),o=parseInt(n.slice(0,2))*.01,r=parseInt(n.slice(2,4))*.01,s=o*320,i=r*100,a=Math.floor(o*31+10),l=`hsl(${s}, ${i}%, ${a}%)`,c=(e.match(/\b(\w)/g)||["A"]).join("").substring(0,2).toUpperCase();return{backgroundColor:l,initials:c}},ho=(e,t)=>{let{backgroundColor:n,initials:o}=KRe(e,t);return`data:image/svg+xml,${` %3Csvg xmlns='http://www.w3.org/2000/svg' height='64' class='font-weight-bold' style='font: 600 ${64/2.125}px "SegoeUI", Arial' width='64'%3E%3Ccircle fill='${n}' cx='32' cy='32' r='32' /%3E%3Ctext x='50%25' y='55%25' dominant-baseline='middle' text-anchor='middle' fill='%23FFF' %3E${o}%3C/text%3E%3C/svg%3E`}`},wn=class{},os="72f988bf-86f1-41af-91ab-2d7cd011db47",_k="9188040d-6c67-4c5b-b112-36a304b66dad",nce="1a092f68-5741-455a-8057-2acdb897a850",oce="604c1504-c6a3-4080-81aa-b33091104187",rce="ada63eea-fd1c-4d79-b40a-41d1380df7a5",rO={[os]:"microsoft",[_k]:"standard"},sO=new Date("2019-11-21T00:00:00.000Z"),dn=(e,t)=>yk(e,t).toString(),bk=class extends ze{constructor(){super();this.idTokenEmail="";this.legalName=null;this.setAnonymous()}setAnonymous(){this.isAuthenticated!==!1&&(this.userId="00000000-0000-0000-0000-000000000000",this.upn="anonymous@anonymous.com",this.email="anonymous@anonymous.com",this.idTokenEmail="anonymous@anonymous.com",this.userName="Anonymous",this.displayName="Anonymous",this.locale="en-us",this.country=null,this.contactPointTopicSetting=null,this.authenticationMode="AAD",this.authenticationModes=[],this.isAuthenticated=!1,this.avatarUrl=ho(this.displayName,this.userId),this.avatarThumbnailUrl=ho(this.displayName,this.userId),this.profileUrl="#",this.createdOn=null,this.userType="standard",this.acceptedPrivacyNotice=sO,this.isAvatarTakenDown=!1,this.followerCount=0,this.followingCount=0,this.answersAccepted=0,this.affiliations=[],this.reputationPoints=1,this.qnaUserId=0,this.interests=null,this.isPrivate=!1,this.tenantId=null,this.credentialId=null,this.source=null,this.sharingId=null,this.companionPreferences=void 0,this.legalName=null,this.publish(new wn))}mapIdTokenToProfile(n){this.email=n.email||n.preferred_username,this.upn=n.preferred_username,this.userName=n.name,this.displayName=n.name,this.authenticationMode=rO[n.tid]==="standard"?"MSA":"AAD",this.userType=rO[n.tid]||"aad",this.isAuthenticated=!0,this.country="",this.credentialId=this.authenticationMode==="AAD"?n.oid:n.puid,this.authenticationModes=[{id:this.credentialId,type:this.authenticationMode,tenantId:n.tid,upn:this.upn}],this.publish(new wn)}readUserProfile(n){this.userId=n.userId,this.email=n.email||"",this.userName=n.userName,this.displayName=n.displayName||n.userName||n.email,this.locale=n.locale,this.country=n.country,this.contactPointTopicSetting=n.contactPointTopicSetting,this.isAuthenticated=!0,this.avatarUrl=n.avatarUrl||ho(this.displayName,this.userId),this.avatarThumbnailUrl=n.avatarThumbnailUrl||n.avatarUrl||ho(this.displayName,this.userId),this.profileUrl=dn(n.userName),this.authenticationModes=n.authenticationModes,this.userType=JRe(n.authenticationModes),this.acceptedPrivacyNotice=new Date(n.acceptedPrivacyNotice),this.isAvatarTakenDown=n.isAvatarTakenDown,this.followingCount=n.followingCount,this.followerCount=n.followerCount,this.answersAccepted=n.answersAccepted,this.affiliations=n.affiliations,this.reputationPoints=n.reputationPoints,this.createdOn=new Date(n.createdOn),this.qnaUserId=n.qnaUserId,this.interests=n.interests,this.isPrivate=n.isPrivate,this.source=n.source,this.certificationSettings=n.certificationSettings,this.transcriptSettings=n.transcriptSettings,this.qnaEmailPreferences=n.qnaEmailPreferences,this.companionPreferences=n.companionPreferences,this.isQnaModerator=n.isQnaModerator,this.sharingId=n.sharingId,this.isChallengeAdmin=n.isChallengeAdmin,this.legalName=n.legalName||null,this.publish(new wn)}readUserFromToken(n){this.isAuthenticated=!0,this.instructor=n.instructor,this.isChallengeAdmin=n.is_challenge_admin,this.isMecUser=n.is_mec_user,this.userId=n.sub,this.upn=n.cred_upn,this.tenantId=n.tid,this.credentialId=n.cred_id,this.userName=n.preferred_username,this.displayName=n.name||n.preferred_username||n.email,this.avatarUrl=n.picture||ho(this.displayName,this.userId),this.avatarThumbnailUrl=n.thumbnail||n.picture||ho(this.displayName,this.userId),this.authenticationMode=n.cred_type,this.locale=n.locale,this.acceptedPrivacyNotice=new Date(n.accepted_privacy_notice),this.userType=rO[n.tid]||"aad",this.profileUrl=dn(n.preferred_username),this.email=n.email||"",this.idTokenEmail=n.id_token_email||"",this.sharingId=n.sharing_id||"",this.publish(new wn)}whenAuthenticated(){return C.isAuthenticated?Promise.resolve():new Promise(n=>this.subscribe(wn,()=>{this.isAuthenticated&&n()}))}},C=new bk;function iO(e,t){e&&Array.from(e.querySelectorAll("[data-profile-property]")).forEach(n=>{let o=n.getAttribute("data-profile-property"),r=t,s=t.profileUrl;n instanceof HTMLImageElement&&o==="avatarUrl"?(n.onerror=()=>n.src=ho(t.displayName,t.userId),n.src=r[o]):n instanceof HTMLImageElement&&o==="avatarThumbnailUrl"?(n.onerror=()=>n.src=t.avatarUrl||ho(t.displayName,t.userId),n.src=r[o]):n instanceof HTMLAnchorElement&&o==="profileUrl"?(n.href=dn("me","activity"),s==="#"&&(n.href=new URL("./register",wc()).toString())):n instanceof HTMLAnchorElement&&o==="bookmarksUrl"?(n.href=s+(R.reviewFeatures?"§ion=collections&detail=bookmarks":"collections/bookmarks"),s==="#"&&n.parentElement.remove()):n instanceof HTMLAnchorElement&&o==="collectionsUrl"?(n.href=s+(R.reviewFeatures?"§ion=collections":"collections"),s==="#"&&n.parentElement.remove()):n instanceof HTMLAnchorElement&&o==="settingsUrl"?n.href=dn("me","settings"):n instanceof HTMLInputElement?n.type!=="file"&&(n.value=r[o]):o==="createdOn"?n.textContent=ns(r[o]):n.textContent=r[o]})}function yk(e,t){let n=wc(),o=new URLSearchParams(te.search);P("page_type")==="profile"&&(n.hash=te.hash),R.reviewFeatures&&(o.has("branch")&&n.searchParams.set("branch",o.get("branch")),o.has("themebranch")&&n.searchParams.set("themebranch",o.get("themebranch")),o.has("preview")&&n.searchParams.set("preview",o.get("preview")));let r=`./${e}/`;t&&(r+=`${t}/`);let s=new URL(r,n);return s.hash=n.hash,s.search=n.search,n=s,n}function wc(e=b.data.userLocale){let t=new URL(`${e&&e.length?`/${e}`:""}/`,te.origin);return new URL("./users/",t)}function JRe(e){let t="standard";return e&&e.length&&(e.find(n=>n.tenantId===os)!==void 0?t="microsoft":e.find(n=>n.type==="AAD")!==void 0&&(t="aad")),t}function he(e){return e.status===401&&C.setAnonymous(),e}var ZRe={"https://review.learn.microsoft.com":{cloudShell:"https://ux.console.azure.com",ocvFeedback:"https://petrol-int.office.microsoft.com/v1/feedback",lists:"https://review.learn.microsoft.com/api/lists",achievements:"https://review.learn.microsoft.com/api/achievements",apiBrowser:"https://review.learn.microsoft.com/api/apibrowser"},"https://dev.learn.microsoft.com":{cloudShell:"https://ux-rc.console.azure.com",ocvFeedback:"https://petrol-int.office.microsoft.com/v1/feedback"},"https://developer.microsoft.com":{siteSearch:"https://learn.microsoft.com/api/search"},"https://review.developer.microsoft.com":{siteSearch:"https://learn.microsoft.com/api/search"},"https://dev.developer.microsoft.com":{siteSearch:"https://learn.microsoft.com/api/search"},"https://localhost:3000":{cloudShell:"https://ux.console.azure.com"},"http://localhost:3000":{cloudShell:"https://ux.console.azure.com"},"https://ppe.preview.learn.microsoft-int.com":{pdf:"https://review.learn.microsoft.com/pdf"}},XRe={"https://review.learn.microsoft.com":{stayCurrent:"https://review.learn.microsoft.com/api/certification",skillAssessment:"https://review.learn.microsoft.com/api/skillassessment"}};function eMe(e,t){let n=e,o=t.systemContent?e:n,r=t.supportLevel==="production"?"https://api.ilt.learningcredentials.microsoft.com":"https://api.dev.ilt.learningcredentials.microsoft.com",s=ZRe[e]||{},i=XRe[e]||{};return{admin:`${n}/api/admin`,selfAssessmentsAdmin:tMe(),apiBrowser:`${n}/api/apibrowser`,assessments:`${o}/api/assessments`,assessmentsAuthoring:`${o}/api/assessments/authoring`,learnAssessment:`${o}/api/assessment`,assessmentsBranch:"https://review.learn.microsoft.com/api/assessments/branches",attachment:`${n}/api/attachments`,azureManagement:"https://management.azure.com",auth:{docs:`${n}/api/profiles/auth`,identityPlatform:"https://login.microsoftonline.com/common/oauth2/v2.0/authorize",signOut:`${n}/api/profiles/signout`,partner:`${n}/api/profiles/partnerAuth/authorize`},blogs:`${n}/api/archives/blogs/comments`,browse:{certification:`${n}/api/contentbrowser/search/certifications`,credential:`${n}/api/contentbrowser/search/credentials`,course:`${n}/api/contentbrowser/search/certifications/courses`,events:`${n}/api/contentbrowser/search/events`,learn:`${n}/api/contentbrowser/search`,learnHome:`${n}/api/contentbrowser/home/learn`,learnHomePersonalized:`${n}/api/contentbrowser/home/personalized/learn`,sample:`${n}/api/contentbrowser/search/samples`,lifecycle:`${n}/api/contentbrowser/search/lifecycles`,architecture:`${n}/api/contentbrowser/search/architectures`,windowsSafeguards:`${n}/api/contentbrowser/search/windowsSafeguards`,shows:`${n}/api/contentbrowser/search/shows`},buildAuthAdmin:`${n}/api/build`,prDevBuildAuthAdmin:"https://docs-buildauth-locdev-wus.azurewebsites.net",certification:{appointments:`${n}/api/certification/appointments`,certification:`${n}/api/certification`,certifications:`${n}/api/certification/certifications`,dashboardSummary:`${n}/api/certification/dashboardsummary`,exams:`${n}/api/certification/exams`,linkedAccount:`${n}/api/certification/linkedAccount`,linkedMcId:`${n}/api/certification/linkedMcId`,printableCertification:`${n}/api/certification/printableCertification`,pvuetransfer:`${n}/api/certification/pvuetransfer`,renewalAssessments:`${n}/api/certification/scoredsnapshots`},cloudShell:"https://ux.console.azure.com",contentNav:e,contentOrigin:o,contentAuthorizationService:{setCasTokenCookie:`${n}/api/cas/user/token`,deleteCasTokenCookie:`${n}/api/cas/user/signout`},agentService:{stream:`${n}/api/agentservice/completion/stream`,conversations:`${n}/api/companion/conversations`},copilot:{chatAssistant:`${n}/api/copilot/chat/assistant?responseFormat=Markdown&preview=citations`,summarize:`${n}/api/copilot/content/summarize`,chatPlanGeneration:`${n}/api/copilot/chat/plangeneration`},encryptCaptchaPayload:`${n}/api/resources/captcha/encrypt`,forumSearch:{azureKbQuestionSuggestions:`${n}/api/questions/azurekb/searchMSDNThreads/v1.0`},achievements:`${n}/api/achievements`,github:"https://api.github.com",githubOAuth:"https://github.com/login/oauth/authorize",adoOAuth:"https://login.microsoftonline.com",labOnDemand:`${n}/api/resources/labondemand`,learn:{achievementsByUids:`${n}/api/hierarchy/achievements`,batchItemSummaries:`${n}/api/hierarchy/items`,certification:`${n}/api/hierarchy/certification`,challenge:`${n}/api/challenges`,episode:`${n}/api/video/public/v1/entries`,exams:`${n}/api/hierarchy/exams`,iltCourses:{scheduling:`${r}/ilt-scheduling/offerings`,location:`${r}/ilt-scheduling/offerings/location`,languages:`${r}/ilt-scheduling/languages`,duration:`${r}/ilt-scheduling/duration`},learningPath:`${n}/api/hierarchy/paths`,module:`${n}/api/hierarchy/modules`,unit:`${n}/api/hierarchy/units`,progress:{batchUnit:`${n}/api/progress/units`,learningPathPass:`${n}/api/progress/learningPathPass`,moduleAssessment:`${n}/api/progress/moduleAssessment`,unit:`${n}/api/progress/units`,user:`${n}/api/progress`},show:{episodes:`${n}/api/hierarchy/shows`,videos:`${n}/api/video/public/v1/entries/batch`},skillAssessment:`${n}/api/skillassessment`,stayCurrent:`${n}/api/certification`,...i},lists:`${n}/api/lists`,metadata:{platformId:`${n}/api/mms/document/platformId`,metadata:`${n}/api/mms/document/`,schema:`${n}/api/mms/contentTypes/`},monikers:`${o}/_api/familyTrees`,nextSteps:`${n}/api/nextsteps`,ocvFeedback:"https://petrol.office.microsoft.com/v1/feedback",pdf:`${e}/pdf`,privacy:{cookieConsentDeleteService:`${e}/api/privacy/cookieDelete`,delete:`${o}/api/privacy/delete`,partialDelete:`${o}/api/privacy/partialdelete`,export:`${o}/api/privacy/export`},profile:{acknowledgeMergeStatus:`${n}/api/profiles/merge/acknowledge`,acknowledgePrivacyNotice:`${n}/api/profiles/me/acknowledgePrivacyNotice`,avatar:`${n}/api/profiles/me/avatar`,avert:`${n}/api/profiles/avert`,certification:`${n}/api/profiles/certification/certifications`,credential:{private:`${n}/api/credentials/credential`,public:`${n}/api/credentials/{credentialId}`,list:`${n}/api/credentials/me`},challenge:`${n}/api/profiles/challenge`,groups:{users:`${n}/api/profiles/groups/{groupId}/users`,manage:`${n}/api/profiles/groups/{groupId}/users/{userId}`},deleteMecUserData:`${n}/api/profiles/mec/delete`,follow:`${n}/api/profiles/follow/{type}/{id}`,unfollow:`${n}/api/profiles/unfollow/{type}/{id}`,follows:`${n}/api/profiles/follows`,followsIds:`${n}/api/profiles/follows/ids`,userFollows:`${n}/api/profiles/userfollows/{userId}`,link:`${n}/api/profiles/link`,me:`${n}/api/profiles/me`,merge:`${n}/api/profiles/merge`,mergeDetails:`${n}/api/profiles/merge/details`,user:`${n}/api/profiles/{username}`,userRetryMerge:`${n}/api/profiles/merge/userretry`,userCancelMerge:`${n}/api/profiles/merge/usercancel`,migrateMecUserData:`${n}/api/profiles/mec/migrate`,profiles:`${n}/api/profiles`,qnaFollowing:`${n}/api/qna/following`,reporting:`${n}/api/profiles/reporting`,validateMerge:`${n}/api/profiles/merge/validate`,transcript:{private:`${n}/api/profiles/transcript/me`,public:`${n}/api/profiles/transcript/share`,settings:{publicLink:`${n}/api/profiles/transcript/share`,transcript:`${n}/api/profiles/transcript/me/settings`}},activeTakedowns:`${n}/api/profiles/takedown/active`,reportStatus:`${n}/api/profiles/report/status/{userId}`,reportConcern:`${n}/api/profiles/report/concern`,contributorEngagement:`${n}/api/profiles/contributor/engagement`},qna:{communication:{getToken:`${n}/api/questions/user/communication_token`,createJoinThread:`${n}/api/questions/admin/private_conversation/{questionId}`,render:`${n}/api/questions/markdown-to-html`,chatMessage:`${sce()}/chat/threads/{communicationChatThreadId}/messages/{messageId}?api-version=2023-11-07`,chatThread:`${sce()}/chat/threads/{communicationChatThreadId}/messages?api-version=2023-11-07`},analyticsSummary:`${n}/api/questions/dashboard/metrics`,analyticsQuestions:`${n}/api/questions/answered`,questionAnswerCommentVote:`${n}/api/questions/answers/comments/{commentId}/vote`,questionCommentVote:`${n}/api/questions/comments/{commentId}/vote`,questionDetails:`${n}/api/questions/{questionId}/details`,questionAiAnswer:{generate:`${n}/api/questions/{questionId}/aiAnswer`},questionAgentAnswer:`${n}/api/agentic/answer`,questionAutoTagging:{generate:`${n}/api/questions/autotagging`},threadHistory:`${n}/api/questions/admin/questions/{questionId}/history`,questionVote:`${n}/api/questions/{questionId}/vote`,rateAnswerHelpful:`${n}/api/questions/answers/{answerId}/helpful/yes?_method=PUT`,rateAnswerUnhelpful:`${n}/api/questions/answers/{answerId}/helpful/no?_method=PUT`,rateAnswerReset:`${n}/api/questions/answers/{answerId}/helpful/notSet?_method=PUT`,suspended:`${n}/api/questions/users/suspended`,tags:`${n}/api/questions/tags/autocomplete`,tagsNextLevelV2:`${n}/api/questions/tags/nextlevelv2`,admin:{suspend:`${n}/api/questions/admin/users/{userId}/suspend`,unsuspend:`${n}/api/questions/admin/users/{userId}/unsuspend`,suspended:`${n}/api/questions/admin/users/{userId}/suspended`,blockedcontent:`${n}/api/questions/admin/blockedcontent`,updateBlockedContent:`${n}/api/questions/admin/blockedcontent/{contentId}`,deleteAllUserContent:`${n}/api/questions/admin/users/{userId}/deleteAllUserContent`}},qnaSettings:`${n}/en-us/answers/users/{qnaId}/{username}/preferences.html`,recommendations:`${n}/api/recommendations`,sandbox:`${n}/api/resources/sandbox`,sandboxManager:`${n}/api/resources/admin`,siteFeedback:`${n}/api/feedback/report`,siteSearch:`${e}/api/search`,searchAnswer:{user:`${n}/api/aisearch/answers/user/html`,guest:`${n}/api/aisearch/answers/guest/html`},deepSearch:`${n}/api/aisearch/deepsearch/stream`,taxonomy:`${n}/api/taxonomies`,tenantManager:`${n}/api/resources/tenant`,uhf:{consentBanner:`${n}/api/GetConsentBanner`},video:`${n}/api/admin`,...s}}function tMe(){return"https://docs-rcs-pubdev.azurewebsites.net"}function sce(){return R.supportLevel==="production"?"https://docsquestions-acs-public.unitedstates.communication.azure.com":"https://docsquestions-acs-pubdev.unitedstates.communication.azure.com"}var N=eMe(location.origin,R);var nMe=30*1e3,$=async(e,t,n=nMe,o)=>{t=t||{};let r=new AbortController,s=()=>r.abort();o?.addEventListener("abort",s),t.signal=r.signal;try{let i=setTimeout(()=>r.abort(),n),a=await fetch(e,t);return clearTimeout(i),a}finally{o?.removeEventListener("abort",s)}};function J(e,t,n=!0,o=!0){t=t||{},t.mode="cors",t.credentials!=="omit"&&(t.credentials="same-origin");let r=new Request(e,t);return n&&Zn()&&r.headers.set("Authorization",`Bearer ${Zn()}`),(r.method==="PUT"||r.method==="POST")&&o&&r.headers.set("Content-Type","applicationhttps://www.microsoft.com/json"),r}var xx=class{};function aO(e){let t={method:"GET"},n=J(N.auth.docs,t,!1);return n.headers.set("Authorization",`Bearer ${e}`),$(n).then(o=>{if(o.ok)return o.text();throw o.status===404||o.status===204?new xx:o.status===401?new ul({detail:"token not accepted"}):new Error(`get docs auth token failed (${o.status} ${o.statusText})`)})}function om(e,t=!0){try{if(e.ok&&e.headers.has("Authorization")){let n=e.headers.get("Authorization");if(n){let o=nm(n);gk(n),t&&C.readUserFromToken(o)}}return e}catch{return e}}function bt(e=["api-branch","branch"],t=""){if(R.accessLevel==="local")return"main";if(R.reviewFeatures===!0){let n=ce(te.search);return e.reduce((o,r)=>o||n[r],"")||t}return null}var Ge=class extends Error{constructor(t,n){super(`Unexpected response status ${t?.status??""}: ${t?.statusText??""} from "${t?.url??""} with error type of ${n}".`),this.status=t?.status,this.statusText=t?.statusText,this.url=t?.url,this.type=n,this.response=t,R.reviewFeatures&&console.error(this)}};async function rm(e){let t;try{t=e.response.json?(await e.response.json()).errorCode:null}catch{t=null}return t}function vk(e){if(!Array.isArray(e))throw new Ge({statusText:"Value must be an array"},"InvalidTypeError");return e}function Ih(e,t){let n=t.filter(o=>e[o]===null||e[o]===void 0);if(n.length>0)throw new Ge({statusText:`Missing required fields in object: ${n.join(", ")}`},"MissingRequiredApiAttribute");return e}function ice(e,t){throw new Ge({statusText:`Type Conversion Error: converting type ${typeof e} to ${t} failed for value ${e.toString()}`},"TypeConversionError")}function lO(e){let t;try{t=parseInt(e)}catch{ice(e,"number")}return isNaN(t)&&ice(e,"number"),t}function Sc(e,t,n=!0,o="applicationhttps://www.microsoft.com/json",r="",s=!0){t=t||{},t.mode="cors",t.credentials="same-origin";let i=new Request(e,t);return n&&i.headers.set("Authorization",`Bearer ${r||Zn()}`),(i.method==="PUT"||i.method==="POST")&&s&&o!=="multipart/form-data"&&i.headers.set("Content-Type",o),i}async function Cc(e){let t=`${N.profile.profiles}/${e}`,o=await $(Sc(t,{method:"GET"},!1));return he(o),o.ok?await o.json():(o.status===204,null)}async function cO(e){if(!e)return null;if(e===tce)return{displayName:jr,userId:e,avatarUrl:ho(jr,e)};let t=`${N.profile.profiles}/id:${e}`,o=await $(Sc(t,{method:"GET"},!1));return he(o),o.ok?await o.json():(o.status===204,null)}async function sm(e){try{let t=await fetch(Sc(N.profile.me,{method:"GET"},!0,"applicationhttps://www.microsoft.com/json",e));return t.ok&&t.status!==204?await t.json():null}catch{return null}}async function Ph(e,t){let n=`${N.profile.profiles}/${e}`,r={credentials:"include",method:"PUT",body:JSON.stringify(t)},s=await $(Sc(n,r));if(he(s),s.ok){om(s,!1);let i=await s.json();return C.readUserProfile(i),{hasError:!1,profile:i}}else if(s.status===400){let i=await s.json();return{hasError:!0,message:i.message,errors:i.errorCode.split(",")}}return{hasError:!0,message:s.statusText,errors:["somethingWentWrong"]}}async function ace(){let e=N.privacy.delete,n=await $(Sc(e,{credentials:"include",method:"POST"},!0,"","",!1));return he(n),n.ok}async function lce(){let e=N.profile.acknowledgePrivacyNotice,n=await $(Sc(e,{method:"POST"}));if(he(n),om(n,!1),!n.ok)throw new Error(`Unexpected response status ${n.status} for ${e}`)}async function uO(){let e=N.profile.merge,n=await $(Sc(e,{method:"GET"}));if(he(n),n.ok){let{status:o}=await n.json();return o}return null}async function cce(){let e=N.profile.mergeDetails,n=await $(Sc(e,{method:"GET"}));return he(n),n.ok?await n.json():null}async function uce(){let e=N.profile.acknowledgeMergeStatus,n=await $(Sc(e,{method:"POST"}));if(he(n),om(n,!1),!n.ok)throw new Error(`Unexpected response status ${n.status} for ${e}`)}var oMe=["vscode://docsmsft.learn-tutor","vscode-insiders://docsmsft.learn-tutor"];function dce(e){return e?oMe.some(t=>e.toLowerCase().startsWith(t)):!1}var rMe="https://sanitize-url.invalid/";function xk(e){if(!e)return"";let t=String(e).trim();if(!t)return"";let n;try{n=new URL(t,rMe)}catch{return""}return n.protocol==="http:"||n.protocol==="https:"?t:""}function rs(e="",t=`${te.origin}${te.pathname}`){let n=e?new URL(e,te.href):new URL(t);if(n.href.toLowerCase().indexOf("javascript:")!==-1)return new URL(te.origin);if(n.protocol==="https:"&&(n.hostname===te.hostname||n.hostname.endsWith(".microsoft.com")||n.hostname==="microsoft.com")||dce(n.href))return n;let o=`${te.origin}${te.pathname}`;return t===o?new URL(`${n.pathname}${n.search}${n.hash}`,`${te.origin}`):rs(t)}var _n={};Dn(_n,{addApplicationTelemetry:()=>Fx,addAuthorizationCode:()=>dq,addBrokerParameters:()=>Ic,addCcsOid:()=>Ac,addCcsUpn:()=>Ju,addClaims:()=>gm,addCliData:()=>gq,addClientAssertion:()=>qx,addClientAssertionType:()=>Hx,addClientCapabilitiesToClaims:()=>hce,addClientId:()=>pm,addClientInfo:()=>hm,addClientSecret:()=>Ux,addCodeChallengeParams:()=>u$e,addCodeVerifier:()=>mq,addCorrelationId:()=>fm,addDeviceCode:()=>d$e,addDomainHint:()=>lq,addEARParameters:()=>h$e,addExtraParameters:()=>kc,addGrantType:()=>Bx,addIdTokenHint:()=>aq,addInstanceAware:()=>zx,addLibraryInfo:()=>Nx,addLoginHint:()=>Hh,addLogoutHint:()=>fq,addNativeBroker:()=>c$e,addNonce:()=>uq,addOboAssertion:()=>p$e,addPassword:()=>f$e,addPopToken:()=>Gx,addPostLogoutRedirectUri:()=>iq,addPrompt:()=>cq,addRedirectUri:()=>mm,addRefreshToken:()=>pq,addRequestTokenUse:()=>m$e,addResource:()=>Yx,addResponseMode:()=>sq,addResponseType:()=>l$e,addScopes:()=>dm,addServerTelemetry:()=>jx,addSid:()=>Vk,addSshJwk:()=>Vx,addState:()=>Ox,addThrottling:()=>Qx,addUsername:()=>g$e,instrumentBrokerParams:()=>um});var De={};Dn(De,{AADAuthority:()=>ha,AAD_INSTANCE_DISCOVERY_ENDPT:()=>fO,AAD_TENANT_DOMAIN_SUFFIX:()=>hO,ADFS:()=>mO,APP_METADATA:()=>Dh,AUTHORITY_METADATA_CACHE_KEY:()=>Nh,AUTHORITY_METADATA_REFRESH_TIME_SECONDS:()=>RO,AUTHORIZATION_PENDING:()=>lMe,AZURE_REGION_AUTO_DISCOVER_FLAG:()=>vO,AuthenticationScheme:()=>Sn,AuthorityMetadataSource:()=>Os,CACHE_ACCOUNT_TYPE_ADFS:()=>PO,CACHE_ACCOUNT_TYPE_GENERIC:()=>kk,CACHE_ACCOUNT_TYPE_MSAV1:()=>kMe,CACHE_ACCOUNT_TYPE_MSSTS:()=>IO,CACHE_KEY_SEPARATOR:()=>am,CIAM_AUTH_URL:()=>Tk,CLIENT_INFO:()=>LO,CLIENT_INFO_SEPARATOR:()=>$h,CLIENT_MISMATCH_ERROR:()=>BO,CODE_GRANT_TYPE:()=>iMe,CONSUMER_UTID:()=>sMe,CacheOutcome:()=>ba,CacheType:()=>IMe,ClaimsRequestKeys:()=>Mh,CodeChallengeMethodValues:()=>EMe,CredentialType:()=>bo,DEFAULT_AUTHORITY:()=>pce,DEFAULT_AUTHORITY_HOST:()=>pO,DEFAULT_COMMON_TENANT:()=>Tx,DEFAULT_MAX_THROTTLE_TIME_SECONDS:()=>UO,DEFAULT_THROTTLE_TIME_SECONDS:()=>OO,DEFAULT_TOKEN_RENEWAL_OFFSET_SEC:()=>GO,DSTS:()=>gO,EMAIL_SCOPE:()=>fce,EncodingTypes:()=>RMe,FORWARD_SLASH:()=>Lh,GrantType:()=>Cx,HTTP_BAD_REQUEST:()=>Ek,HTTP_CLIENT_ERROR:()=>gMe,HTTP_CLIENT_ERROR_RANGE_END:()=>CO,HTTP_CLIENT_ERROR_RANGE_START:()=>SO,HTTP_GATEWAY_TIMEOUT:()=>TMe,HTTP_GONE:()=>_Me,HTTP_MULTI_SIDED_ERROR:()=>wMe,HTTP_NOT_FOUND:()=>hMe,HTTP_REDIRECT:()=>mMe,HTTP_REQUEST_TIMEOUT:()=>bMe,HTTP_SERVER_ERROR:()=>vMe,HTTP_SERVER_ERROR_RANGE_END:()=>AO,HTTP_SERVER_ERROR_RANGE_START:()=>EO,HTTP_SERVICE_UNAVAILABLE:()=>xMe,HTTP_SUCCESS:()=>Ck,HTTP_SUCCESS_RANGE_END:()=>pMe,HTTP_SUCCESS_RANGE_START:()=>dMe,HTTP_TOO_MANY_REQUESTS:()=>yMe,HTTP_UNAUTHORIZED:()=>fMe,HeaderNames:()=>zn,HttpMethod:()=>SMe,IMDS_ENDPOINT:()=>Sk,IMDS_TIMEOUT:()=>yO,IMDS_VERSION:()=>_O,INVALID_GRANT_ERROR:()=>HO,INVALID_INSTANCE:()=>wO,JsonWebTokenTypes:()=>zO,KNOWN_PUBLIC_CLOUDS:()=>TO,NOT_APPLICABLE:()=>cMe,NOT_AVAILABLE:()=>im,OAuthResponseType:()=>AMe,OFFLINE_ACCESS_SCOPE:()=>wk,OIDC_DEFAULT_SCOPES:()=>Rh,OIDC_SCOPES:()=>Ak,ONE_DAY_IN_MS:()=>LMe,OPENID_SCOPE:()=>mce,PROFILE_SCOPE:()=>gce,PasswordGrantConstants:()=>Lk,PersistentCacheKeys:()=>CMe,PromptValue:()=>Sx,REGIONAL_AUTH_PUBLIC_CLOUD_SUFFIX:()=>xO,RESOURCE_DELIM:()=>wx,RegionDiscoveryOutcomes:()=>kx,RegionDiscoverySources:()=>Ku,ResponseMode:()=>kO,S256_CODE_CHALLENGE_METHOD:()=>aMe,SERVER_TELEM_CACHE_KEY:()=>Ex,SERVER_TELEM_CATEGORY_SEPARATOR:()=>Pk,SERVER_TELEM_MAX_CACHED_ERRORS:()=>$O,SERVER_TELEM_MAX_CUR_HEADER_BYTES:()=>PMe,SERVER_TELEM_MAX_LAST_HEADER_BYTES:()=>MO,SERVER_TELEM_OVERFLOW_FALSE:()=>NO,SERVER_TELEM_OVERFLOW_TRUE:()=>DO,SERVER_TELEM_SCHEMA_VERSION:()=>Ik,SERVER_TELEM_UNKNOWN_ERROR:()=>FO,SERVER_TELEM_VALUE_SEPARATOR:()=>Wu,SHR_NONCE_VALIDITY:()=>uMe,SKU:()=>dO,THE_FAMILY_ID:()=>lm,THROTTLING_PREFIX:()=>Ax,URL_FORM_CONTENT_TYPE:()=>bO,X_MS_LIB_CAPABILITY_VALUE:()=>qO});var dO="msal.js.common",pce="https://login.microsoftonline.com/common/",pO="login.microsoftonline.com",Tx="common",mO="adfs",gO="dstsv2",fO=`${pce}discovery/instance?api-version=1.1&authorization_endpoint=`,Tk=".ciamlogin.com",hO=".onmicrosoft.com",wx="|",sMe="9188040d-6c67-4c5b-b112-36a304b66dad",mce="openid",gce="profile",wk="offline_access",fce="email",iMe="authorization_code",aMe="S256",bO="application/x-www-form-urlencoded;charset=utf-8",lMe="authorization_pending",cMe="N/A",im="Not Available",Lh="/",Sk="http://169.254.169.254/metadata/instance/compute/location",_O="2020-06-01",yO=2e3,vO="TryAutoDetect",xO="login.microsoft.com",TO=["login.microsoftonline.com","login.windows.net","login.microsoft.com","sts.windows.net"],uMe=240,wO="invalid_instance",Ck=200,dMe=200,pMe=299,mMe=302,gMe=400,SO=400,Ek=400,fMe=401,hMe=404,bMe=408,_Me=410,yMe=429,CO=499,vMe=500,EO=500,xMe=503,TMe=504,AO=599,wMe=600,SMe={GET:"GET",POST:"POST"},Rh=[mce,gce,wk],Ak=[...Rh,fce],zn={CONTENT_TYPE:"Content-Type",CONTENT_LENGTH:"Content-Length",RETRY_AFTER:"Retry-After",CCS_HEADER:"X-AnchorMailbox",WWWAuthenticate:"WWW-Authenticate",AuthenticationInfo:"Authentication-Info",X_MS_REQUEST_ID:"x-ms-request-id",X_MS_HTTP_VERSION:"x-ms-httpver"},CMe={ACTIVE_ACCOUNT_FILTERS:"active-account-filters"},ha={COMMON:"common",ORGANIZATIONS:"organizations",CONSUMERS:"consumers"},Mh={ACCESS_TOKEN:"access_token",XMS_CC:"xms_cc"},Sx={LOGIN:"login",SELECT_ACCOUNT:"select_account",CONSENT:"consent",NONE:"none",CREATE:"create",NO_SESSION:"no_session"},EMe={PLAIN:"plain",S256:"S256"},AMe={CODE:"code",IDTOKEN_TOKEN:"id_token token",IDTOKEN_TOKEN_REFRESHTOKEN:"id_token token refresh_token"},kO={QUERY:"query",FRAGMENT:"fragment",FORM_POST:"form_post"},Cx={IMPLICIT_GRANT:"implicit",AUTHORIZATION_CODE_GRANT:"authorization_code",CLIENT_CREDENTIALS_GRANT:"client_credentials",RESOURCE_OWNER_PASSWORD_GRANT:"password",REFRESH_TOKEN_GRANT:"refresh_token",DEVICE_CODE_GRANT:"device_code",JWT_BEARER:"urn:ietf:params:oauth:grant-type:jwt-bearer"},IO="MSSTS",PO="ADFS",kMe="MSA",kk="Generic",am="-",$h=".",bo={ID_TOKEN:"IdToken",ACCESS_TOKEN:"AccessToken",ACCESS_TOKEN_WITH_AUTH_SCHEME:"AccessToken_With_AuthScheme",REFRESH_TOKEN:"RefreshToken"},IMe={ADFS:1001,MSA:1002,MSSTS:1003,GENERIC:1004,ACCESS_TOKEN:2001,REFRESH_TOKEN:2002,ID_TOKEN:2003,APP_METADATA:3001,UNDEFINED:9999},Dh="appmetadata",LO="client_info",lm="1",Nh="authority-metadata",RO=3600*24,Os={CONFIG:"config",CACHE:"cache",NETWORK:"network",HARDCODED_VALUES:"hardcoded_values"},Ik=5,PMe=80,MO=330,$O=50,Ex="server-telemetry",Pk="|",Wu=",",DO="1",NO="0",FO="unknown_error",Sn={BEARER:"Bearer",POP:"pop",SSH:"ssh-cert"},OO=60,UO=3600,Ax="throttling",qO="retry-after, h429",HO="invalid_grant",BO="client_mismatch",Lk={username:"username",password:"password"},Ku={FAILED_AUTO_DETECTION:"1",INTERNAL_CACHE:"2",ENVIRONMENT_VARIABLE:"3",IMDS:"4"},kx={CONFIGURED_MATCHES_DETECTED:"1",CONFIGURED_NO_AUTO_DETECTION:"2",CONFIGURED_NOT_DETECTED:"3",AUTO_DETECTION_REQUESTED_SUCCESSFUL:"4",AUTO_DETECTION_REQUESTED_FAILED:"5"},ba={NOT_APPLICABLE:"0",FORCE_REFRESH_OR_CLAIMS:"1",NO_CACHED_ACCESS_TOKEN:"2",CACHED_ACCESS_TOKEN_EXPIRED:"3",PROACTIVELY_REFRESHED:"4"},zO={Jwt:"JWT",Jwk:"JWK",Pop:"pop"},LMe=864e5,GO=300,RMe={BASE64:"base64",HEX:"hex",UTF8:"utf-8"};var Ec={};Dn(Ec,{ACCESS_TOKEN:()=>DMe,BROKER_CLIENT_ID:()=>Ix,BROKER_REDIRECT_URI:()=>Nk,CCS_HEADER:()=>zMe,CLAIMS:()=>YO,CLIENT_ASSERTION:()=>_U,CLIENT_ASSERTION_TYPE:()=>yU,CLIENT_ID:()=>dl,CLIENT_INFO:()=>qMe,CLIENT_REQUEST_ID:()=>rU,CLIENT_SECRET:()=>bU,CLI_DATA:()=>PU,CODE:()=>eU,CODE_CHALLENGE:()=>tU,CODE_CHALLENGE_METHOD:()=>nU,CODE_VERIFIER:()=>oU,DEVICE_CODE:()=>hU,DOMAIN_HINT:()=>EU,EAR_JWE_CRYPTO:()=>kU,EAR_JWK:()=>AU,ERROR:()=>MMe,ERROR_DESCRIPTION:()=>$Me,EXPIRES_IN:()=>FMe,FOCI:()=>BMe,GRANT_TYPE:()=>QO,ID_TOKEN:()=>NMe,ID_TOKEN_HINT:()=>fU,INSTANCE_AWARE:()=>Fh,LOGIN_HINT:()=>CU,LOGOUT_HINT:()=>wU,NATIVE_BROKER:()=>TU,NONCE:()=>ZO,OBO_ASSERTION:()=>vU,ON_BEHALF_OF:()=>HMe,POST_LOGOUT_URI:()=>gU,PROMPT:()=>XO,REDIRECT_URI:()=>Rk,REFRESH_TOKEN:()=>KO,REFRESH_TOKEN_EXPIRES_IN:()=>OMe,REQUESTED_TOKEN_USE:()=>xU,REQ_CNF:()=>$k,RESOURCE:()=>IU,RESPONSE_MODE:()=>jO,RESPONSE_TYPE:()=>VO,RETURN_SPA_CODE:()=>Dk,SCOPE:()=>WO,SESSION_STATE:()=>UMe,SID:()=>SU,STATE:()=>JO,TOKEN_TYPE:()=>Mk,X_APP_NAME:()=>pU,X_APP_VER:()=>mU,X_CLIENT_CPU:()=>lU,X_CLIENT_CURR_TELEM:()=>cU,X_CLIENT_EXTRA_SKU:()=>GMe,X_CLIENT_LAST_TELEM:()=>uU,X_CLIENT_OS:()=>aU,X_CLIENT_SKU:()=>sU,X_CLIENT_VER:()=>iU,X_MS_LIB_CAPABILITY:()=>dU});var dl="client_id",Rk="redirect_uri",VO="response_type",jO="response_mode",QO="grant_type",YO="claims",WO="scope",MMe="error",$Me="error_description",DMe="access_token",NMe="id_token",KO="refresh_token",FMe="expires_in",OMe="refresh_token_expires_in",JO="state",ZO="nonce",XO="prompt",UMe="session_state",qMe="client_info",eU="code",tU="code_challenge",nU="code_challenge_method",oU="code_verifier",rU="client-request-id",sU="x-client-SKU",iU="x-client-VER",aU="x-client-OS",lU="x-client-CPU",cU="x-client-current-telemetry",uU="x-client-last-telemetry",dU="x-ms-lib-capability",pU="x-app-name",mU="x-app-ver",gU="post_logout_redirect_uri",fU="id_token_hint",hU="device_code",bU="client_secret",_U="client_assertion",yU="client_assertion_type",Mk="token_type",$k="req_cnf",vU="assertion",xU="requested_token_use",HMe="on_behalf_of",BMe="foci",zMe="X-AnchorMailbox",Dk="return_spa_code",TU="nativebroker",wU="logout_hint",SU="sid",CU="login_hint",EU="domain_hint",GMe="x-client-xtra-sku",Ix="brk_client_id",Nk="brk_redirect_uri",Fh="instance_aware",AU="ear_jwk",kU="ear_jwe_crypto",IU="resource",PU="clidata";function Fk(e){return`See https://aka.ms/msal.js.errors#${e} for details`}var st=class e extends Error{constructor(t,n,o){let r=n||(t?Fk(t):""),s=r?`${t}: ${r}`:t;super(s),Object.setPrototypeOf(this,e.prototype),this.errorCode=t||"",this.errorMessage=r||"",this.subError=o||"",this.name="AuthError"}setCorrelationId(t){this.correlationId=t}};function Oh(e,t){return new st(e,t||Fk(e))}var Px=class e extends st{constructor(t){super(t),this.name="ClientConfigurationError",Object.setPrototypeOf(this,e.prototype)}};function Mt(e){return new Px(e)}var Fn=class{static isEmptyObj(t){if(t)try{let n=JSON.parse(t);return Object.keys(n).length===0}catch{}return!0}static startsWith(t,n){return t.indexOf(n)===0}static endsWith(t,n){return t.length>=n.length&&t.lastIndexOf(n)===t.length-n.length}static queryStringToObject(t){let n={},o=t.split("&"),r=s=>decodeURIComponent(s.replace(/\+/g," "));return o.forEach(s=>{if(s.trim()){let[i,a]=s.split(/=(.+)/g,2);i&&a&&(n[r(i)]=r(a))}}),n}static trimArrayEntries(t){return t.map(n=>n.trim())}static removeEmptyStringsFromArray(t){return t.filter(n=>!!n)}static jsonParseHelper(t){try{return JSON.parse(t)}catch{return null}}};var Lx=class e extends st{constructor(t,n){super(t,n),this.name="ClientAuthError",Object.setPrototypeOf(this,e.prototype)}};function oe(e,t){return new Lx(e,t)}var ss={};Dn(ss,{authorityMismatch:()=>ZMe,authorityUriInsecure:()=>RU,cannotAllowPlatformBroker:()=>JMe,cannotSetOIDCOptions:()=>KMe,claimsRequestParsingError:()=>VMe,emptyInputScopesError:()=>$U,invalidAuthenticationHeader:()=>WMe,invalidAuthorityMetadata:()=>OU,invalidClaims:()=>Ok,invalidCloudDiscoveryMetadata:()=>Uk,invalidCodeChallengeMethod:()=>jMe,invalidRequestMethodForEAR:()=>XMe,logoutRequestEmpty:()=>NU,missingNonceAuthenticationHeader:()=>YMe,missingSshJwk:()=>Rx,missingSshKid:()=>QMe,pkceParamsMissing:()=>FU,redirectUriEmpty:()=>LU,tokenRequestEmpty:()=>DU,untrustedAuthority:()=>UU,urlEmptyError:()=>MU,urlParseError:()=>Uh});var LU="redirect_uri_empty",VMe="claims_request_parsing_error",RU="authority_uri_insecure",Uh="url_parse_error",MU="empty_url_error",$U="empty_input_scopes_error",Ok="invalid_claims",DU="token_request_empty",NU="logout_request_empty",jMe="invalid_code_challenge_method",FU="pkce_params_missing",Uk="invalid_cloud_discovery_metadata",OU="invalid_authority_metadata",UU="untrusted_authority",Rx="missing_ssh_jwk",QMe="missing_ssh_kid",YMe="missing_nonce_authentication_header",WMe="invalid_authentication_header",KMe="cannot_set_OIDCOptions",JMe="cannot_allow_platform_broker",ZMe="authority_mismatch",XMe="invalid_request_method_for_EAR";var _o={};Dn(_o,{authTimeNotFound:()=>Mx,authorizationCodeMissingFromServerResponse:()=>eq,bindingKeyNotRemoved:()=>o$e,cannotAppendScopeSet:()=>JU,cannotRemoveEmptyScope:()=>KU,clientInfoDecodingError:()=>qk,clientInfoEmptyError:()=>qU,emptyInputScopeSet:()=>zk,endSessionEndpointNotSupported:()=>tq,endpointResolutionError:()=>_a,hashNotDeserialized:()=>GU,invalidCacheEnvironment:()=>Dx,invalidCacheRecord:()=>ZU,invalidState:()=>cm,keyIdMissing:()=>nq,maxAgeTranspired:()=>QU,methodNotImplemented:()=>xt,misplacedResourceParam:()=>rq,multipleMatchingAppMetadata:()=>YU,multipleMatchingTokens:()=>e$e,nestedAppAuthBridgeDisabled:()=>i$e,networkError:()=>BU,noAccountFound:()=>t$e,noAccountInSilentRequest:()=>$x,noCryptoObject:()=>Gk,noNetworkConnectivity:()=>r$e,nonceMismatch:()=>jU,nullOrEmptyToken:()=>HU,openIdConfigError:()=>zU,platformBrokerError:()=>a$e,requestCannotBeMade:()=>WU,resourceParameterRequired:()=>oq,stateMismatch:()=>VU,stateNotFound:()=>Bk,tokenClaimsCnfRequiredForSignedJwt:()=>XU,tokenParsingError:()=>Hk,tokenRefreshRequired:()=>qh,unexpectedCredentialType:()=>n$e,userCanceled:()=>s$e});var qk="client_info_decoding_error",qU="client_info_empty_error",Hk="token_parsing_error",HU="null_or_empty_token",_a="endpoints_resolution_error",BU="network_error",zU="openid_config_error",GU="hash_not_deserialized",cm="invalid_state",VU="state_mismatch",Bk="state_not_found",jU="nonce_mismatch",Mx="auth_time_not_found",QU="max_age_transpired",e$e="multiple_matching_tokens",YU="multiple_matching_appMetadata",WU="request_cannot_be_made",KU="cannot_remove_empty_scope",JU="cannot_append_scopeset",zk="empty_input_scopeset",$x="no_account_in_silent_request",ZU="invalid_cache_record",Dx="invalid_cache_environment",t$e="no_account_found",Gk="no_crypto_object",n$e="unexpected_credential_type",qh="token_refresh_required",XU="token_claims_cnf_required_for_signedjwt",eq="authorization_code_missing_from_server_response",o$e="binding_key_not_removed",tq="end_session_endpoint_not_supported",nq="key_id_missing",r$e="no_network_connectivity",s$e="user_canceled",xt="method_not_implemented",i$e="nested_app_auth_bridge_disabled",a$e="platform_broker_error",oq="resource_parameter_required",rq="misplaced_resource_parameter";var yo=class e{constructor(t){let n=t?Fn.trimArrayEntries([...t]):[],o=n?Fn.removeEmptyStringsFromArray(n):[];if(!o||!o.length)throw Mt($U);this.scopes=new Set,o.forEach(r=>this.scopes.add(r))}static fromString(t){let o=(t||"").split(" ");return new e(o)}static createSearchScopes(t){let n=t&&t.length>0?t:[...Rh],o=new e(n);return o.containsOnlyOIDCScopes()?o.removeScope(wk):o.removeOIDCScopes(),o}containsScope(t){let n=this.printScopesLowerCase().split(" "),o=new e(n);return t?o.scopes.has(t.toLowerCase()):!1}containsScopeSet(t){return!t||t.scopes.size<=0?!1:this.scopes.size>=t.scopes.size&&t.asArray().every(n=>this.containsScope(n))}containsOnlyOIDCScopes(){let t=0;return Ak.forEach(n=>{this.containsScope(n)&&(t+=1)}),this.scopes.size===t}appendScope(t){t&&this.scopes.add(t.trim())}appendScopes(t){try{t.forEach(n=>this.appendScope(n))}catch{throw oe(JU)}}removeScope(t){if(!t)throw oe(KU);this.scopes.delete(t.trim())}removeOIDCScopes(){Ak.forEach(t=>{this.scopes.delete(t)})}unionScopeSets(t){if(!t)throw oe(zk);let n=new Set;return t.scopes.forEach(o=>n.add(o.toLowerCase())),this.scopes.forEach(o=>n.add(o.toLowerCase())),n}intersectingScopeSets(t){if(!t)throw oe(zk);t.containsOnlyOIDCScopes()||t.removeOIDCScopes();let n=this.unionScopeSets(t),o=t.getScopeCount(),r=this.getScopeCount();return n.sizet.push(n)),t}printScopes(){return this.scopes?this.asArray().join(" "):""}printScopesLowerCase(){return this.printScopes().toLowerCase()}};function um(e,t,n){if(!t)return;let o=e.get(dl);o&&e.has(Ix)&&n?.addFields({embeddedClientId:o,embeddedRedirectUri:e.get(Rk)},t)}function l$e(e,t){e.set(VO,t)}function sq(e,t){e.set(jO,t||kO.QUERY)}function c$e(e){e.set(TU,"1")}function dm(e,t,n=!0,o=Rh){n&&!o.includes("openid")&&!t.includes("openid")&&o.push("openid");let r=n?[...t||[],...o]:t||[],s=new yo(r);e.set(WO,s.printScopes())}function pm(e,t){e.set(dl,t)}function mm(e,t){e.set(Rk,t)}function iq(e,t){e.set(gU,t)}function aq(e,t){e.set(fU,t)}function lq(e,t){e.set(EU,t)}function Hh(e,t){e.set(CU,t)}function Ju(e,t){e.set(zn.CCS_HEADER,`UPN:${t}`)}function Ac(e,t){e.set(zn.CCS_HEADER,`Oid:${t.uid}@${t.utid}`)}function Vk(e,t){e.set(SU,t)}function gm(e,t,n){let o=hce(t,n);try{JSON.parse(o)}catch{throw Mt(Ok)}e.set(YO,o)}function fm(e,t){e.set(rU,t)}function Nx(e,t){e.set(sU,t.sku),e.set(iU,t.version),t.os&&e.set(aU,t.os),t.cpu&&e.set(lU,t.cpu)}function Fx(e,t){t?.appName&&e.set(pU,t.appName),t?.appVersion&&e.set(mU,t.appVersion)}function cq(e,t){e.set(XO,t)}function Ox(e,t){t&&e.set(JO,t)}function uq(e,t){e.set(ZO,t)}function u$e(e,t,n){if(t&&n)e.set(tU,t),e.set(nU,n);else throw Mt(FU)}function dq(e,t){e.set(eU,t)}function d$e(e,t){e.set(hU,t)}function pq(e,t){e.set(KO,t)}function mq(e,t){e.set(oU,t)}function Ux(e,t){e.set(bU,t)}function qx(e,t){t&&e.set(_U,t)}function Hx(e,t){t&&e.set(yU,t)}function p$e(e,t){e.set(vU,t)}function m$e(e,t){e.set(xU,t)}function Bx(e,t){e.set(QO,t)}function hm(e){e.set(LO,"1")}function gq(e){e.set(PU,"1")}function zx(e){e.has(Fh)||e.set(Fh,"true")}function kc(e,t){Object.entries(t).forEach(([n,o])=>{!e.has(n)&&o&&e.set(n,o)})}function hce(e,t){let n;if(!e)n={};else try{n=JSON.parse(e)}catch{throw Mt(Ok)}return t&&t.length>0&&(n.hasOwnProperty(Mh.ACCESS_TOKEN)||(n[Mh.ACCESS_TOKEN]={}),n[Mh.ACCESS_TOKEN][Mh.XMS_CC]={values:t}),JSON.stringify(n)}function g$e(e,t){e.set(Lk.username,t)}function f$e(e,t){e.set(Lk.password,t)}function Gx(e,t){t&&(e.set(Mk,Sn.POP),e.set($k,t))}function Vx(e,t){t&&(e.set(Mk,Sn.SSH),e.set($k,t))}function jx(e,t){e.set(cU,t.generateCurrentRequestHeaderValue()),e.set(uU,t.generateLastRequestHeaderValue())}function Qx(e){e.set(dU,qO)}function fq(e,t){e.set(wU,t)}function Ic(e,t,n){e.has(Ix)||e.set(Ix,t),e.has(Nk)||e.set(Nk,n)}function h$e(e,t){e.set(AU,encodeURIComponent(t)),e.set(kU,"eyJhbGciOiJkaXIiLCJlbmMiOiJBMjU2R0NNIn0")}function Yx(e,t){t&&e.set(IU,t)}var ki={};Dn(ki,{getDeserializedResponse:()=>b$e,mapToQueryString:()=>pl,normalizeUrlForComparison:()=>_$e,stripLeadingHashOrQuery:()=>_ce});function bce(e){if(!e)return e;let t=e.toLowerCase();return Fn.endsWith(t,"?")?t=t.slice(0,-1):Fn.endsWith(t,"?/")&&(t=t.slice(0,-2)),Fn.endsWith(t,"/")||(t+="/"),t}function _ce(e){return e.startsWith("#/")?e.substring(2):e.startsWith("#")||e.startsWith("?")?e.substring(1):e}function b$e(e){if(!e||e.indexOf("=")<0)return null;try{let t=_ce(e),n=Object.fromEntries(new URLSearchParams(t));if(n.code||n.ear_jwe||n.error||n.error_description||n.state)return n}catch{throw oe(GU)}return null}function pl(e){let t=new Array;return e.forEach((n,o)=>{t.push(`${o}=${encodeURIComponent(n)}`)}),t.join("&")}function _$e(e){if(!e)return e;let t=e.split("#")[0];try{let n=new URL(t),o=n.origin+n.pathname+n.search;return bce(o)}catch{return bce(t)}}var Zu={createNewGuid:()=>{throw oe(xt)},base64Decode:()=>{throw oe(xt)},base64Encode:()=>{throw oe(xt)},base64UrlEncode:()=>{throw oe(xt)},encodeKid:()=>{throw oe(xt)},async getPublicKeyThumbprint(){throw oe(xt)},async removeTokenBindingKey(){throw oe(xt)},async clearKeystore(){throw oe(xt)},async signJwt(){throw oe(xt)},async hashString(){throw oe(xt)}};var Nt;(function(e){e[e.Error=0]="Error",e[e.Warning=1]="Warning",e[e.Info=2]="Info",e[e.Verbose=3]="Verbose",e[e.Trace=4]="Trace"})(Nt||(Nt={}));var y$e=50,v$e=500,bm=new Map;function x$e(e,t){bm.delete(e),bm.set(e,t)}function T$e(e,t){let n=Date.now(),o=bm.get(e);if(o)x$e(e,o);else if(o={logs:[],firstEventTime:n},bm.set(e,o),bm.size>y$e){let r=bm.keys().next().value;r&&bm.delete(r)}o.logs.push({...t,milliseconds:n-o.firstEventTime}),o.logs.length>v$e&&o.logs.shift()}function w$e(e){if(e.length!==6)return!1;for(let t=0;t="a"&&n<="z"||n>="A"&&n<="Z"||n>="0"&&n<="9"))return!1}return!0}var vo=class e{constructor(t,n,o){this.level=Nt.Info;let r=()=>{},s=t||e.createDefaultLoggerOptions();this.localCallback=s.loggerCallback||r,this.piiLoggingEnabled=s.piiLoggingEnabled||!1,this.level=typeof s.logLevel=="number"?s.logLevel:Nt.Info,this.packageName=n||"",this.packageVersion=o||""}static createDefaultLoggerOptions(){return{loggerCallback:()=>{},piiLoggingEnabled:!1,logLevel:Nt.Info}}clone(t,n){return new e({loggerCallback:this.localCallback,piiLoggingEnabled:this.piiLoggingEnabled,logLevel:this.level},t,n)}logMessage(t,n){let o=n.correlationId;if(w$e(t)){let l={hash:t,level:n.logLevel,containsPii:n.containsPii||!1,milliseconds:0};T$e(o,l)}if(n.logLevel>this.level||!this.piiLoggingEnabled&&n.containsPii)return;let a=`${`[${new Date().toUTCString()}] : [${o}]`} : ${this.packageName}@${this.packageVersion} : ${Nt[n.logLevel]} - ${t}`;this.executeCallback(n.logLevel,a,n.containsPii||!1)}executeCallback(t,n,o){this.localCallback&&this.localCallback(t,n,o)}error(t,n){this.logMessage(t,{logLevel:Nt.Error,containsPii:!1,correlationId:n})}errorPii(t,n){this.logMessage(t,{logLevel:Nt.Error,containsPii:!0,correlationId:n})}warning(t,n){this.logMessage(t,{logLevel:Nt.Warning,containsPii:!1,correlationId:n})}warningPii(t,n){this.logMessage(t,{logLevel:Nt.Warning,containsPii:!0,correlationId:n})}info(t,n){this.logMessage(t,{logLevel:Nt.Info,containsPii:!1,correlationId:n})}infoPii(t,n){this.logMessage(t,{logLevel:Nt.Info,containsPii:!0,correlationId:n})}verbose(t,n){this.logMessage(t,{logLevel:Nt.Verbose,containsPii:!1,correlationId:n})}verbosePii(t,n){this.logMessage(t,{logLevel:Nt.Verbose,containsPii:!0,correlationId:n})}trace(t,n){this.logMessage(t,{logLevel:Nt.Trace,containsPii:!1,correlationId:n})}tracePii(t,n){this.logMessage(t,{logLevel:Nt.Trace,containsPii:!0,correlationId:n})}isPiiLoggingEnabled(){return this.piiLoggingEnabled||!1}};var Xu="@azure/msal-common",ml="16.4.1";var ed={None:"none",AzurePublic:"https://login.microsoftonline.com",AzurePpe:"https://login.windows-ppe.net",AzureChina:"https://login.chinacloudapi.cn",AzureGermany:"https://login.microsoftonline.de",AzureUsGovernment:"https://login.microsoftonline.us"};function hq(e,t){return!!e&&!!t&&e===t.split(".")[1]}function gl(e,t,n,o){if(o){let{oid:r,sub:s,tid:i,name:a,tfp:l,acr:c,preferred_username:u,upn:p,login_hint:m}=o,g=i||l||c||"";return{tenantId:g,localAccountId:r||s||"",name:a,username:u||p||"",loginHint:m,isHomeTenant:hq(g,e)}}else return{tenantId:n,localAccountId:t,username:"",isHomeTenant:hq(n,e)}}function _m(e,t,n,o){let r=e;if(t){let{isHomeTenant:s,...i}=t;r={...e,...i}}if(n){let{isHomeTenant:s,...i}=gl(e.homeAccountId,e.localAccountId,e.tenantId,n);return r={...r,...i,idTokenClaims:n,idToken:o},r}return r}var mr={};Dn(mr,{checkMaxAge:()=>Wx,extractTokenClaims:()=>Pc,getJWSPayload:()=>yce,isKmsi:()=>bq});function Pc(e,t){let n=yce(e);try{let o=t(n);return JSON.parse(o)}catch{throw oe(Hk)}}function bq(e){if(!e.signin_state)return!1;let t=["kmsi","dvc_dmjd"];return e.signin_state.some(n=>t.includes(n.trim().toLowerCase()))}function yce(e){if(!e)throw oe(HU);let n=/^([^\.\s]*)\.([^\.\s]+)\.([^\.\s]*)$/.exec(e);if(!n||n.length<4)throw oe(Hk);return n[2]}function Wx(e,t){if(t===0||Date.now()-3e5>e+t)throw oe(QU)}var Ct=class e{get urlString(){return this._urlString}constructor(t){if(this._urlString=t,!this._urlString)throw Mt(MU);t.includes("#")||(this._urlString=e.canonicalizeUri(t))}static canonicalizeUri(t){if(t){let n=t.toLowerCase();return Fn.endsWith(n,"?")?n=n.slice(0,-1):Fn.endsWith(n,"?/")&&(n=n.slice(0,-2)),Fn.endsWith(n,"/")||(n+="/"),n}return t}validateAsUri(){let t;try{t=this.getUrlComponents()}catch{throw Mt(Uh)}if(!t.HostNameAndPort||!t.PathSegments)throw Mt(Uh);if(!t.Protocol||t.Protocol.toLowerCase()!=="https:")throw Mt(RU)}static appendQueryString(t,n){return n?t.indexOf("?")<0?`${t}?${n}`:`${t}&${n}`:t}static removeHashFromUrl(t){return e.canonicalizeUri(t.split("#")[0])}replaceTenantPath(t){let n=this.getUrlComponents(),o=n.PathSegments;return t&&o.length!==0&&(o[0]===ha.COMMON||o[0]===ha.ORGANIZATIONS)&&(o[0]=t),e.constructAuthorityUriFromObject(n)}getUrlComponents(){let t=RegExp("^(([^:/?#]+):)?(//([^/?#]*))?([^?#]*)(\\?([^#]*))?(#(.*))?"),n=this.urlString.match(t);if(!n)throw Mt(Uh);let o={Protocol:n[1],HostNameAndPort:n[4],AbsolutePath:n[5],QueryString:n[7]},r=o.AbsolutePath.split("/");return r=r.filter(s=>s&&s.length>0),o.PathSegments=r,o.QueryString&&o.QueryString.endsWith("/")&&(o.QueryString=o.QueryString.substring(0,o.QueryString.length-1)),o}static getDomainFromUrl(t){let n=RegExp("^([^:/?#]+://)?([^/?#]*)"),o=t.match(n);if(!o)throw Mt(Uh);return o[2]}static getAbsoluteUrl(t,n){if(t[0]===Lh){let r=new e(n).getUrlComponents();return r.Protocol+"//"+r.HostNameAndPort+t}return t}static constructAuthorityUriFromObject(t){return new e(t.Protocol+"//"+t.HostNameAndPort+"/"+t.PathSegments.join("/"))}};var S$e=[{host:"login.microsoftonline.com"},{host:"login.chinacloudapi.cn",issuerHost:"login.partner.microsoftonline.cn"},{host:"login.microsoftonline.us"},{host:"login.sovcloud-identity.fr"},{host:"login.sovcloud-identity.de"},{host:"login.sovcloud-identity.sg"}];function C$e(e,t){return{token_endpoint:`https://${e}/{tenantid}/oauth2/v2.0/token`,jwks_uri:`https://${e}/{tenantid}/discovery/v2.0/keys`,issuer:`https://${t}/{tenantid}/v2.0`,authorization_endpoint:`https://${e}/{tenantid}/oauth2/v2.0/authorize`,end_session_endpoint:`https://${e}/{tenantid}/oauth2/v2.0/logout`}}var E$e=S$e.reduce((e,{host:t,issuerHost:n})=>(e[t]=C$e(t,n||t),e),{}),xce={endpointMetadata:E$e,instanceDiscoveryMetadata:{metadata:[{preferred_network:"login.microsoftonline.com",preferred_cache:"login.windows.net",aliases:["login.microsoftonline.com","login.windows.net","login.microsoft.com","sts.windows.net"]},{preferred_network:"login.partner.microsoftonline.cn",preferred_cache:"login.partner.microsoftonline.cn",aliases:["login.partner.microsoftonline.cn","login.chinacloudapi.cn"]},{preferred_network:"login.microsoftonline.de",preferred_cache:"login.microsoftonline.de",aliases:["login.microsoftonline.de"]},{preferred_network:"login.microsoftonline.us",preferred_cache:"login.microsoftonline.us",aliases:["login.microsoftonline.us","login.usgovcloudapi.net"]},{preferred_network:"login-us.microsoftonline.com",preferred_cache:"login-us.microsoftonline.com",aliases:["login-us.microsoftonline.com"]},{preferred_network:"login.sovcloud-identity.fr",preferred_cache:"login.sovcloud-identity.fr",aliases:["login.sovcloud-identity.fr"]},{preferred_network:"login.sovcloud-identity.de",preferred_cache:"login.sovcloud-identity.de",aliases:["login.sovcloud-identity.de"]},{preferred_network:"login.sovcloud-identity.sg",preferred_cache:"login.sovcloud-identity.sg",aliases:["login.sovcloud-identity.sg"]}]}},_q=xce.endpointMetadata,yq=xce.instanceDiscoveryMetadata,vq=new Set;yq.metadata.forEach(e=>{e.aliases.forEach(t=>{vq.add(t)})});function Tce(e,t,n){let o,r=e.canonicalAuthority;if(r){let s=new Ct(r).getUrlComponents().HostNameAndPort;o=vce(t,n,s,e.cloudDiscoveryMetadata?.metadata)||vce(t,n,s,yq.metadata)||e.knownAuthorities}return o||[]}function vce(e,t,n,o,r){if(e.trace("1bmquz",t),n&&o){let s=Kx(o,n);if(s)return e.trace("1fotbt",t),s.aliases;e.trace("14avvj",t)}return null}function wce(e){return Kx(yq.metadata,e)}function Kx(e,t){for(let n=0;nTq,cacheQuotaExceeded:()=>xq});var xq="cache_quota_exceeded",Tq="cache_error_unknown";var td=class e extends Error{constructor(t,n){let o=n||Fk(t);super(o),Object.setPrototypeOf(this,e.prototype),this.name="CacheError",this.errorCode=t,this.errorMessage=o}};function Bh(e){return e instanceof Error?e.name==="QuotaExceededError"||e.name==="NS_ERROR_DOM_QUOTA_REACHED"||e.message.includes("exceeded the quota")?new td(xq):new td(e.name,e.message):new td(Tq)}var Ii={};Dn(Ii,{createAccountEntity:()=>wq,createAccountEntityFromAccountInfo:()=>I$e,generateAccountId:()=>A$e,generateHomeAccountId:()=>Sq,getAccountInfo:()=>Gh,isAccountEntity:()=>P$e,isSingleTenant:()=>k$e});function zh(e,t){if(!e)throw oe(qU);try{let n=t(e);return JSON.parse(n)}catch{throw oe(qk)}}function fl(e){if(!e)throw oe(qk);let t=e.split($h,2);return{uid:t[0],utid:t.length<2?"":t[1]}}var Ir={Default:0,Adfs:1,Dsts:2,Ciam:3};function ym(e){return e&&(e.tid||e.tfp||e.acr)||null}var pn={AAD:"AAD",OIDC:"OIDC",EAR:"EAR"};function A$e(e){return[e.homeAccountId,e.environment].join(am).toLowerCase()}function Gh(e){let t=e.tenantProfiles||[];return t.length===0&&e.realm&&e.localAccountId&&t.push(gl(e.homeAccountId,e.localAccountId,e.realm)),{homeAccountId:e.homeAccountId,environment:e.environment,tenantId:e.realm,username:e.username,localAccountId:e.localAccountId,loginHint:e.loginHint,name:e.name,nativeAccountId:e.nativeAccountId,authorityType:e.authorityType,tenantProfiles:new Map(t.map(n=>[n.tenantId,n])),dataBoundary:e.dataBoundary}}function k$e(e){return!e.tenantProfiles}function wq(e,t,n){let o;t.authorityType===Ir.Adfs?o=PO:t.protocolMode===pn.OIDC?o=kk:o=IO;let r,s;e.clientInfo&&n&&(r=zh(e.clientInfo,n),r.xms_tdbr&&(s=r.xms_tdbr==="EU"?"EU":"None"));let i=e.environment||t&&t.getPreferredCache();if(!i)throw oe(Dx);let a=e.idTokenClaims?.preferred_username||e.idTokenClaims?.upn,l=e.idTokenClaims?.emails?e.idTokenClaims.emails[0]:null,c=a||l||"",u=e.idTokenClaims?.login_hint,p=r?.utid||ym(e.idTokenClaims)||"",m=r?.uid||e.idTokenClaims?.oid||e.idTokenClaims?.sub||"",g;return e.tenantProfiles?g=e.tenantProfiles:g=[gl(e.homeAccountId,m,p,e.idTokenClaims)],{homeAccountId:e.homeAccountId,environment:i,realm:p,localAccountId:m,username:c,authorityType:o,loginHint:u,clientInfo:e.clientInfo,name:e.idTokenClaims?.name||"",lastModificationTime:void 0,lastModificationApp:void 0,cloudGraphHostName:e.cloudGraphHostName,msGraphHost:e.msGraphHost,nativeAccountId:e.nativeAccountId,tenantProfiles:g,dataBoundary:s}}function I$e(e,t,n){let o=Array.from(e.tenantProfiles?.values()||[]);return o.length===0&&e.tenantId&&e.localAccountId&&o.push(gl(e.homeAccountId,e.localAccountId,e.tenantId,e.idTokenClaims)),{authorityType:e.authorityType||kk,homeAccountId:e.homeAccountId,localAccountId:e.localAccountId,nativeAccountId:e.nativeAccountId,realm:e.tenantId,environment:e.environment,username:e.username,loginHint:e.loginHint,name:e.name,cloudGraphHostName:t,msGraphHost:n,tenantProfiles:o,dataBoundary:e.dataBoundary}}function Sq(e,t,n,o,r,s){if(!(t===Ir.Adfs||t===Ir.Dsts)){if(e)try{let i=zh(e,o.base64Decode);if(i.uid&&i.utid)return`${i.uid}.${i.utid}`}catch{}n.warning("1ub6wv",r)}return s?.sub||""}function P$e(e){return e?e.hasOwnProperty("homeAccountId")&&e.hasOwnProperty("environment")&&e.hasOwnProperty("realm")&&e.hasOwnProperty("localAccountId")&&e.hasOwnProperty("username")&&e.hasOwnProperty("authorityType"):!1}var vm=class{constructor(t,n,o,r,s){this.clientId=t,this.cryptoImpl=n,this.commonLogger=o.clone(Xu,ml),this.staticAuthorityOptions=s,this.performanceClient=r}getAllAccounts(t={},n){return this.buildTenantProfiles(this.getAccountsFilteredBy(t,n),n,t)}getAccountInfoFilteredBy(t,n){if(Object.keys(t).length===0||Object.values(t).every(r=>r==null||r===""))return this.commonLogger.warning("1skb02",n),null;let o=this.getAllAccounts(t,n);return o.length>1?o.sort(s=>s.idTokenClaims?-1:1)[0]:o.length===1?o[0]:null}getBaseAccountInfo(t,n){let o=this.getAccountsFilteredBy(t,n);return o.length>0?Gh(o[0]):null}buildTenantProfiles(t,n,o){return t.flatMap(r=>this.getTenantProfilesFromAccountEntity(r,n,o?.tenantId,o))}getTenantedAccountInfoByFilter(t,n,o,r,s){let i=null,a;if(s&&!this.tenantProfileMatchesFilter(o,s))return null;let l=this.getIdToken(t,r,n,o.tenantId);return l&&(a=Pc(l.secret,this.cryptoImpl.base64Decode),!this.idTokenClaimsMatchTenantProfileFilter(a,s))?null:(i=_m(t,o,a,l?.secret),i)}getTenantProfilesFromAccountEntity(t,n,o,r){let s=Gh(t),i=s.tenantProfiles||new Map,a=this.getTokenKeys();if(o){let c=i.get(o);if(c)i=new Map([[o,c]]);else return[]}let l=[];return i.forEach(c=>{let u=this.getTenantedAccountInfoByFilter(s,a,c,n,r);u&&l.push(u)}),l}tenantProfileMatchesFilter(t,n){return!(n.localAccountId&&!this.matchLocalAccountIdFromTenantProfile(t,n.localAccountId)||n.name&&t.name!==n.name||n.isHomeTenant!==void 0&&t.isHomeTenant!==n.isHomeTenant)}idTokenClaimsMatchTenantProfileFilter(t,n){return!(n&&(n.localAccountId&&!this.matchLocalAccountIdFromTokenClaims(t,n.localAccountId)||n.loginHint&&!this.matchLoginHintFromTokenClaims(t,n.loginHint)||n.username&&!this.matchUsername(t.preferred_username,n.username)||n.name&&!this.matchName(t,n.name)||n.sid&&!this.matchSid(t,n.sid)))}async saveCacheRecord(t,n,o,r,s){if(!t)throw oe(ZU);try{t.account&&await this.setAccount(t.account,n,o,r),t.idToken&&s?.idToken!==!1&&await this.setIdTokenCredential(t.idToken,n,o),t.accessToken&&s?.accessToken!==!1&&await this.saveAccessToken(t.accessToken,n,o),t.refreshToken&&s?.refreshToken!==!1&&await this.setRefreshTokenCredential(t.refreshToken,n,o),t.appMetadata&&this.setAppMetadata(t.appMetadata,n)}catch(i){throw this.commonLogger?.error("0j476p",n),i instanceof st?i:Bh(i)}}async saveAccessToken(t,n,o){let r={clientId:t.clientId,credentialType:t.credentialType,environment:t.environment,homeAccountId:t.homeAccountId,realm:t.realm,tokenType:t.tokenType},s=this.getTokenKeys(),i=yo.fromString(t.target);s.accessToken.forEach(a=>{if(!this.accessTokenKeyMatchesFilter(a,r,!1))return;let l=this.getAccessTokenCredential(a,n);l&&this.credentialMatchesFilter(l,r,n)&&yo.fromString(l.target).intersectingScopeSets(i)&&this.removeAccessToken(a,n)}),await this.setAccessTokenCredential(t,n,o)}getAccountsFilteredBy(t,n){let o=this.getAccountKeys(),r=[];return o.forEach(s=>{let i=this.getAccount(s,n);if(!i||t.homeAccountId&&!this.matchHomeAccountId(i,t.homeAccountId)||t.username&&!this.matchUsername(i.username,t.username)||t.environment&&!this.matchEnvironment(i,t.environment,n)||t.realm&&!this.matchRealm(i,t.realm)||t.nativeAccountId&&!this.matchNativeAccountId(i,t.nativeAccountId)||t.authorityType&&!this.matchAuthorityType(i,t.authorityType))return;let a={localAccountId:t?.localAccountId,name:t?.name},l=i.tenantProfiles?.filter(c=>this.tenantProfileMatchesFilter(c,a));l&&l.length===0||r.push(i)}),r}credentialMatchesFilter(t,n,o){return!(n.clientId&&!this.matchClientId(t,n.clientId)||n.userAssertionHash&&!this.matchUserAssertionHash(t,n.userAssertionHash)||typeof n.homeAccountId=="string"&&!this.matchHomeAccountId(t,n.homeAccountId)||n.environment&&!this.matchEnvironment(t,n.environment,o)||n.realm&&!this.matchRealm(t,n.realm)||n.credentialType&&!this.matchCredentialType(t,n.credentialType)||n.familyId&&!this.matchFamilyId(t,n.familyId)||n.target&&!this.matchTarget(t,n.target)||t.credentialType===bo.ACCESS_TOKEN_WITH_AUTH_SCHEME&&(n.tokenType&&!this.matchTokenType(t,n.tokenType)||n.tokenType===Sn.SSH&&n.keyId&&!this.matchKeyId(t,n.keyId)))}getAppMetadataFilteredBy(t,n){let o=this.getKeys(),r={};return o.forEach(s=>{if(!this.isAppMetadata(s))return;let i=this.getAppMetadata(s,n);i&&(t.environment&&!this.matchEnvironment(i,t.environment,n)||t.clientId&&!this.matchClientId(i,t.clientId)||(r[s]=i))}),r}getAuthorityMetadataByAlias(t,n){let o=this.getAuthorityMetadataKeys(),r=null;return o.forEach(s=>{if(!this.isAuthorityMetadata(s)||s.indexOf(this.clientId)===-1)return;let i=this.getAuthorityMetadata(s,n);i&&i.aliases.indexOf(t)!==-1&&(r=i)}),r}removeAllAccounts(t){this.getAllAccounts({},t).forEach(o=>{this.removeAccount(o,t)})}removeAccount(t,n){this.removeAccountContext(t,n);let o=this.getAccountKeys(),r=s=>s.includes(t.homeAccountId)&&s.includes(t.environment);o.filter(r).forEach(s=>{this.removeItem(s,n),this.performanceClient.incrementFields({accountsRemoved:1},n)})}removeAccountContext(t,n){let o=this.getTokenKeys(),r=s=>s.includes(t.homeAccountId)&&s.includes(t.environment);o.idToken.filter(r).forEach(s=>{this.removeIdToken(s,n)}),o.accessToken.filter(r).forEach(s=>{this.removeAccessToken(s,n)}),o.refreshToken.filter(r).forEach(s=>{this.removeRefreshToken(s,n)})}removeAccessToken(t,n){let o=this.getAccessTokenCredential(t,n);if(o&&(this.removeItem(t,n),this.performanceClient.incrementFields({accessTokensRemoved:1},n),o.credentialType.toLowerCase()===bo.ACCESS_TOKEN_WITH_AUTH_SCHEME.toLowerCase()&&o.tokenType===Sn.POP)){let s=o.keyId;s&&this.cryptoImpl.removeTokenBindingKey(s,n).catch(()=>{this.commonLogger.error("0cx291",n),this.performanceClient?.incrementFields({removeTokenBindingKeyFailure:1},n)})}}removeAppMetadata(t){return this.getKeys().forEach(o=>{this.isAppMetadata(o)&&this.removeItem(o,t)}),!0}getIdToken(t,n,o,r){this.commonLogger.trace("1drz22",n);let s={homeAccountId:t.homeAccountId,environment:t.environment,credentialType:bo.ID_TOKEN,clientId:this.clientId,realm:r},i=this.getIdTokensByFilter(s,n,o),a=i.size;if(a<1)return this.commonLogger.info("1atvtd",n),null;if(a>1){let l=i;if(!r){let c=new Map;i.forEach((p,m)=>{p.realm===t.tenantId&&c.set(m,p)});let u=c.size;if(u<1)return this.commonLogger.info("0ooalx",n),i.values().next().value;if(u===1)return this.commonLogger.info("1eq2vc",n),c.values().next().value;l=c}return this.commonLogger.info("1ws328",n),l.forEach((c,u)=>{this.removeIdToken(u,n)}),this.performanceClient.addFields({multiMatchedID:i.size},n),null}return this.commonLogger.info("1sm769",n),i.values().next().value}getIdTokensByFilter(t,n,o){let r=o&&o.idToken||this.getTokenKeys().idToken,s=new Map;return r.forEach(i=>{if(!this.idTokenKeyMatchesFilter(i,{clientId:this.clientId,...t}))return;let a=this.getIdTokenCredential(i,n);a&&this.credentialMatchesFilter(a,t,n)&&s.set(i,a)}),s}idTokenKeyMatchesFilter(t,n){let o=t.toLowerCase();return!(n.clientId&&o.indexOf(n.clientId.toLowerCase())===-1||n.homeAccountId&&o.indexOf(n.homeAccountId.toLowerCase())===-1)}removeIdToken(t,n){this.removeItem(t,n)}removeRefreshToken(t,n){this.removeItem(t,n)}getAccessToken(t,n,o,r){let s=n.correlationId;this.commonLogger.trace("1t7hz1",s);let i=yo.createSearchScopes(n.scopes),a=n.authenticationScheme||Sn.BEARER,l=a&&a.toLowerCase()!==Sn.BEARER.toLowerCase()?bo.ACCESS_TOKEN_WITH_AUTH_SCHEME:bo.ACCESS_TOKEN,c={homeAccountId:t.homeAccountId,environment:t.environment,credentialType:l,clientId:this.clientId,realm:r||t.tenantId,target:i,tokenType:a,keyId:n.sshKid},u=o&&o.accessToken||this.getTokenKeys().accessToken,p=[];u.forEach(g=>{if(this.accessTokenKeyMatchesFilter(g,c,!0)){let f=this.getAccessTokenCredential(g,s);f&&this.credentialMatchesFilter(f,c,s)&&p.push(f)}});let m=p.length;return m<1?(this.commonLogger.info("1nckna",s),null):m>1?(this.commonLogger.info("1wkfwp",s),p.forEach(g=>{this.removeAccessToken(this.generateCredentialKey(g),s)}),this.performanceClient.addFields({multiMatchedAT:p.length},s),null):(this.commonLogger.info("06yt98",s),p[0])}accessTokenKeyMatchesFilter(t,n,o){let r=t.toLowerCase();if(n.clientId&&r.indexOf(n.clientId.toLowerCase())===-1||n.homeAccountId&&r.indexOf(n.homeAccountId.toLowerCase())===-1||n.realm&&r.indexOf(n.realm.toLowerCase())===-1)return!1;if(n.target){let s=n.target.asArray();for(let i=0;i{if(!this.accessTokenKeyMatchesFilter(s,t,!0))return;let i=this.getAccessTokenCredential(s,n);i&&this.credentialMatchesFilter(i,t,n)&&r.push(i)}),r}getRefreshToken(t,n,o,r){this.commonLogger.trace("0x53vi",o);let s=n?lm:void 0,i={homeAccountId:t.homeAccountId,environment:t.environment,credentialType:bo.REFRESH_TOKEN,clientId:this.clientId,familyId:s},a=r&&r.refreshToken||this.getTokenKeys().refreshToken,l=[];a.forEach(u=>{if(this.refreshTokenKeyMatchesFilter(u,i)){let p=this.getRefreshTokenCredential(u,o);p&&this.credentialMatchesFilter(p,i,o)&&l.push(p)}});let c=l.length;return c<1?(this.commonLogger.info("0dlw11",o),null):(c>1&&this.performanceClient.addFields({multiMatchedRT:c},o),this.commonLogger.info("0wcnep",o),l[0])}refreshTokenKeyMatchesFilter(t,n){let o=t.toLowerCase();return!(n.familyId&&o.indexOf(n.familyId.toLowerCase())===-1||!n.familyId&&n.clientId&&o.indexOf(n.clientId.toLowerCase())===-1||n.homeAccountId&&o.indexOf(n.homeAccountId.toLowerCase())===-1)}readAppMetadataFromCache(t,n){let o={environment:t,clientId:this.clientId},r=this.getAppMetadataFilteredBy(o,n),s=Object.keys(r).map(a=>r[a]),i=s.length;if(i<1)return null;if(i>1)throw oe(YU);return s[0]}isAppMetadataFOCI(t,n){let o=this.readAppMetadataFromCache(t,n);return!!(o&&o.familyId===lm)}matchHomeAccountId(t,n){return typeof t.homeAccountId=="string"&&n===t.homeAccountId}matchLocalAccountIdFromTokenClaims(t,n){let o=t.oid||t.sub;return n===o}matchLocalAccountIdFromTenantProfile(t,n){return t.localAccountId===n}matchName(t,n){return n.toLowerCase()===t.name?.toLowerCase()}matchUsername(t,n){return!!(t&&typeof t=="string"&&n?.toLowerCase()===t.toLowerCase())}matchUserAssertionHash(t,n){return!!(t.userAssertionHash&&n===t.userAssertionHash)}matchEnvironment(t,n,o){if(this.staticAuthorityOptions){let s=Tce(this.staticAuthorityOptions,this.commonLogger,o);if(s.includes(n)&&s.includes(t.environment))return!0}let r=this.getAuthorityMetadataByAlias(n,o);return!!(r&&r.aliases.indexOf(t.environment)>-1)}matchCredentialType(t,n){return t.credentialType&&n.toLowerCase()===t.credentialType.toLowerCase()}matchClientId(t,n){return!!(t.clientId&&n===t.clientId)}matchFamilyId(t,n){return!!(t.familyId&&n===t.familyId)}matchRealm(t,n){return t.realm?.toLowerCase()===n.toLowerCase()}matchNativeAccountId(t,n){return!!(t.nativeAccountId&&n===t.nativeAccountId)}matchLoginHintFromTokenClaims(t,n){return t.login_hint===n||t.preferred_username===n||t.upn===n}matchSid(t,n){return t.sid===n}matchAuthorityType(t,n){return!!(t.authorityType&&n.toLowerCase()===t.authorityType.toLowerCase())}matchTarget(t,n){return t.credentialType!==bo.ACCESS_TOKEN&&t.credentialType!==bo.ACCESS_TOKEN_WITH_AUTH_SCHEME||!t.target?!1:yo.fromString(t.target).containsScopeSet(n)}matchTokenType(t,n){return!!(t.tokenType&&t.tokenType===n)}matchKeyId(t,n){return!!(t.keyId&&t.keyId===n)}isAppMetadata(t){return t.indexOf(Dh)!==-1}isAuthorityMetadata(t){return t.indexOf(Nh)!==-1}generateAuthorityMetadataCacheKey(t){return`${Nh}-${this.clientId}-${t}`}static toObject(t,n){for(let o in n)t[o]=n[o];return t}},Zx=class extends vm{async setAccount(){throw oe(xt)}getAccount(){throw oe(xt)}async setIdTokenCredential(){throw oe(xt)}getIdTokenCredential(){throw oe(xt)}async setAccessTokenCredential(){throw oe(xt)}getAccessTokenCredential(){throw oe(xt)}async setRefreshTokenCredential(){throw oe(xt)}getRefreshTokenCredential(){throw oe(xt)}setAppMetadata(){throw oe(xt)}getAppMetadata(){throw oe(xt)}setServerTelemetry(){throw oe(xt)}getServerTelemetry(){throw oe(xt)}setAuthorityMetadata(){throw oe(xt)}getAuthorityMetadata(){throw oe(xt)}getAuthorityMetadataKeys(){throw oe(xt)}setThrottlingCache(){throw oe(xt)}getThrottlingCache(){throw oe(xt)}removeItem(){throw oe(xt)}getKeys(){throw oe(xt)}getAccountKeys(){throw oe(xt)}getTokenKeys(){throw oe(xt)}generateCredentialKey(){throw oe(xt)}generateAccountKey(){throw oe(xt)}};var Sce={NotStarted:0,InProgress:1,Completed:2};var Lc=class{generateId(){return"callback-id"}startMeasurement(t,n){return{end:()=>null,discard:()=>{},add:()=>{},increment:()=>{},event:{eventId:this.generateId(),status:Sce.InProgress,authority:"",libraryName:"",libraryVersion:"",clientId:"",name:t,startTimeMs:Date.now(),correlationId:n||""}}}endMeasurement(){return null}discardMeasurements(){}removePerformanceCallback(){return!0}addPerformanceCallback(){return""}emitEvents(){}addFields(){}incrementFields(){}cacheEventByCorrelationId(){}};var jk={tokenRenewalOffsetSeconds:GO,preventCorsPreflight:!1},L$e={loggerCallback:()=>{},piiLoggingEnabled:!1,logLevel:Nt.Info,correlationId:""},R$e={async sendGetRequestAsync(){throw oe(xt)},async sendPostRequestAsync(){throw oe(xt)}},M$e={sku:dO,version:ml,cpu:"",os:""},$$e={clientSecret:"",clientAssertion:void 0},D$e={azureCloudInstance:ed.None,tenant:`${Tx}`},N$e={application:{appName:"",appVersion:""}};function Vh({authOptions:e,systemOptions:t,loggerOptions:n,storageInterface:o,networkInterface:r,cryptoInterface:s,clientCredentials:i,libraryInfo:a,telemetry:l,serverTelemetryManager:c,persistencePlugin:u,serializableCache:p}){let m={...L$e,...n};return{authOptions:F$e(e),systemOptions:{...jk,...t},loggerOptions:m,storageInterface:o||new Zx(e.clientId,Zu,new vo(m),new Lc),networkInterface:r||R$e,cryptoInterface:s||Zu,clientCredentials:i||$$e,libraryInfo:{...M$e,...a},telemetry:{...N$e,...l},serverTelemetryManager:c||null,persistencePlugin:u||null,serializableCache:p||null}}function F$e(e){return{clientCapabilities:[],azureCloudOptions:D$e,instanceAware:!1,isMcp:!1,...e}}function Qk(e){return e.authOptions.authority.options.protocolMode===pn.OIDC}var Yk=class{constructor(t,n){this.cache=t,this.hasChanged=n}get cacheHasChanged(){return this.hasChanged}get tokenCache(){return this.cache}};var xo={};Dn(xo,{createAccessTokenEntity:()=>Aq,createIdTokenEntity:()=>Eq,createRefreshTokenEntity:()=>kq,generateAppMetadataKey:()=>j$e,generateAuthorityMetadataExpiresAt:()=>Kk,isAccessTokenEntity:()=>H$e,isAppMetadataEntity:()=>Q$e,isAuthorityMetadataEntity:()=>Y$e,isAuthorityMetadataExpired:()=>Jk,isCredentialEntity:()=>Wk,isIdTokenEntity:()=>B$e,isRefreshTokenEntity:()=>z$e,isServerTelemetryEntity:()=>G$e,isThrottlingEntity:()=>V$e,updateAuthorityEndpointMetadata:()=>Qh,updateCloudDiscoveryMetadata:()=>eT});var is={};Dn(is,{delay:()=>q$e,isCacheExpired:()=>U$e,isTokenExpired:()=>jh,nowSeconds:()=>Us,toDateFromSeconds:()=>Xx,toSecondsFromDate:()=>O$e,wasClockTurnedBack:()=>Cq});function Us(){return Math.round(new Date().getTime()/1e3)}function O$e(e){return e.getTime()/1e3}function Xx(e){return e?new Date(Number(e)*1e3):new Date}function jh(e,t){let n=Number(e)||0;return Us()+t>n}function U$e(e,t){let n=Number(e)+t*24*60*60*1e3;return Date.now()>n}function Cq(e){return Number(e)>Us()}function q$e(e,t){return new Promise(n=>setTimeout(()=>n(t),e))}function Eq(e,t,n,o,r){return{credentialType:bo.ID_TOKEN,homeAccountId:e,environment:t,clientId:o,secret:n,realm:r,lastUpdatedAt:Date.now().toString()}}function Aq(e,t,n,o,r,s,i,a,l,c,u,p,m){let g={homeAccountId:e,credentialType:bo.ACCESS_TOKEN,secret:n,cachedAt:Us().toString(),expiresOn:i.toString(),extendedExpiresOn:a.toString(),environment:t,clientId:o,realm:r,target:s,tokenType:u||Sn.BEARER,lastUpdatedAt:Date.now().toString()};if(p&&(g.userAssertionHash=p),c&&(g.refreshOn=c.toString()),g.tokenType?.toLowerCase()!==Sn.BEARER.toLowerCase())switch(g.credentialType=bo.ACCESS_TOKEN_WITH_AUTH_SCHEME,g.tokenType){case Sn.POP:let f=Pc(n,l);if(!f?.cnf?.kid)throw oe(XU);g.keyId=f.cnf.kid;break;case Sn.SSH:g.keyId=m}return g}function kq(e,t,n,o,r,s,i){let a={credentialType:bo.REFRESH_TOKEN,homeAccountId:e,environment:t,clientId:o,secret:n,lastUpdatedAt:Date.now().toString()};return s&&(a.userAssertionHash=s),r&&(a.familyId=r),i&&(a.expiresOn=i.toString()),a}function Wk(e){return e.hasOwnProperty("homeAccountId")&&e.hasOwnProperty("environment")&&e.hasOwnProperty("credentialType")&&e.hasOwnProperty("clientId")&&e.hasOwnProperty("secret")}function H$e(e){return e?Wk(e)&&e.hasOwnProperty("realm")&&e.hasOwnProperty("target")&&(e.credentialType===bo.ACCESS_TOKEN||e.credentialType===bo.ACCESS_TOKEN_WITH_AUTH_SCHEME):!1}function B$e(e){return e?Wk(e)&&e.hasOwnProperty("realm")&&e.credentialType===bo.ID_TOKEN:!1}function z$e(e){return e?Wk(e)&&e.credentialType===bo.REFRESH_TOKEN:!1}function G$e(e,t){let n=e.indexOf(Ex)===0,o=!0;return t&&(o=t.hasOwnProperty("failedRequests")&&t.hasOwnProperty("errors")&&t.hasOwnProperty("cacheHits")),n&&o}function V$e(e,t){let n=!1;e&&(n=e.indexOf(Ax)===0);let o=!0;return t&&(o=t.hasOwnProperty("throttleTime")),n&&o}function j$e({environment:e,clientId:t}){return[Dh,e,t].join(am).toLowerCase()}function Q$e(e,t){return t?e.indexOf(Dh)===0&&t.hasOwnProperty("clientId")&&t.hasOwnProperty("environment"):!1}function Y$e(e,t){return t?e.indexOf(Nh)===0&&t.hasOwnProperty("aliases")&&t.hasOwnProperty("preferred_cache")&&t.hasOwnProperty("preferred_network")&&t.hasOwnProperty("canonical_authority")&&t.hasOwnProperty("authorization_endpoint")&&t.hasOwnProperty("token_endpoint")&&t.hasOwnProperty("issuer")&&t.hasOwnProperty("aliasesFromNetwork")&&t.hasOwnProperty("endpointsFromNetwork")&&t.hasOwnProperty("expiresAt")&&t.hasOwnProperty("jwks_uri"):!1}function Kk(){return Us()+RO}function Qh(e,t,n){e.authorization_endpoint=t.authorization_endpoint,e.token_endpoint=t.token_endpoint,e.end_session_endpoint=t.end_session_endpoint,e.issuer=t.issuer,e.endpointsFromNetwork=n,e.jwks_uri=t.jwks_uri}function eT(e,t,n){e.aliases=t.aliases,e.preferred_cache=t.preferred_cache,e.preferred_network=t.preferred_network,e.aliasesFromNetwork=n}function Jk(e){return e.expiresAt<=Us()}var To={};Dn(To,{AuthClientCreateTokenRequestBody:()=>Fq,AuthClientExecuteTokenRequest:()=>Nq,AuthorityGetCloudDiscoveryMetadataFromNetwork:()=>qq,AuthorityGetEndpointMetadataFromNetwork:()=>Bq,AuthorityResolveEndpointsAsync:()=>Uq,AuthorityUpdateCloudDiscoveryMetadata:()=>Hq,AuthorityUpdateEndpointMetadata:()=>zq,AuthorityUpdateMetadataWithRegionalInformation:()=>Zk,AuthorizationCodeClientExecutePostToTokenEndpoint:()=>Lq,CacheManagerGetRefreshToken:()=>jq,GetAuthCodeUrl:()=>W$e,HandleCodeResponseFromServer:()=>K$e,HandleServerTokenResponse:()=>nT,NetworkClientSendPostRequestAsync:()=>Iq,PopTokenGenerateCnf:()=>xm,RefreshTokenClientAcquireToken:()=>Mq,RefreshTokenClientAcquireTokenWithCachedRefreshToken:()=>tT,RefreshTokenClientCreateTokenRequestBody:()=>$q,RefreshTokenClientExecutePostToTokenEndpoint:()=>Pq,RefreshTokenClientExecuteTokenRequest:()=>Rq,RegionDiscoveryDetectRegion:()=>Gq,RegionDiscoveryGetCurrentVersion:()=>Vq,RegionDiscoveryGetRegionFromIMDS:()=>Xk,SetUserData:()=>J$e,SilentFlowClientGenerateResultFromCacheRecord:()=>Dq,UpdateTokenEndpointAuthority:()=>Oq});var Iq="networkClientSendPostRequestAsync",Pq="refreshTokenClientExecutePostToTokenEndpoint",Lq="authorizationCodeClientExecutePostToTokenEndpoint",Rq="refreshTokenClientExecuteTokenRequest",Mq="refreshTokenClientAcquireToken",tT="refreshTokenClientAcquireTokenWithCachedRefreshToken",$q="refreshTokenClientCreateTokenRequestBody",Dq="silentFlowClientGenerateResultFromCacheRecord",W$e="getAuthCodeUrl",K$e="handleCodeResponseFromServer",Nq="authClientExecuteTokenRequest",Fq="authClientCreateTokenRequestBody",Oq="updateTokenEndpointAuthority",xm="popTokenGenerateCnf",nT="handleServerTokenResponse",Uq="authorityResolveEndpointsAsync",qq="authorityGetCloudDiscoveryMetadataFromNetwork",Hq="authorityUpdateCloudDiscoveryMetadata",Bq="authorityGetEndpointMetadataFromNetwork",zq="authorityUpdateEndpointMetadata",Zk="authorityUpdateMetadataWithRegionalInformation",Gq="regionDiscoveryDetectRegion",Xk="regionDiscoveryGetRegionFromIMDS",Vq="regionDiscoveryGetCurrentVersion",jq="cacheManagerGetRefreshToken",J$e="setUserData";var Xn=(e,t,n,o,r)=>(...s)=>{n.trace("1plfzx",r);let i=o.startMeasurement(t,r);r&&o.incrementFields({[`ext.${t}CallCount`]:1},r);try{let a=e(...s);return i.end({success:!0}),n.trace("1g8n6a",r),a}catch(a){n.trace("0cfd8i",r);try{n.trace(JSON.stringify(a),r)}catch{n.trace("00dty7",r)}throw i.end({success:!1},a),a}},j=(e,t,n,o,r)=>(...s)=>{n.trace("1plfzx",r);let i=o.startMeasurement(t,r);return r&&o.incrementFields({[`ext.${t}CallCount`]:1},r),e(...s).then(a=>(n.trace("1g8n6a",r),i.end({success:!0}),a)).catch(a=>{n.trace("0cfd8i",r);try{n.trace(JSON.stringify(a),r)}catch{n.trace("00dty7",r)}throw i.end({success:!1},a),a})};var Z$e={SW:"sw"},as=class{constructor(t,n){this.cryptoUtils=t,this.performanceClient=n}async generateCnf(t,n){let o=await j(this.generateKid.bind(this),xm,n,this.performanceClient,t.correlationId)(t),r=this.cryptoUtils.base64UrlEncode(JSON.stringify(o));return{kid:o.kid,reqCnfString:r}}async generateKid(t){return{kid:await this.cryptoUtils.getPublicKeyThumbprint(t),xms_ksl:Z$e.SW}}async signPopToken(t,n,o){return this.signPayload(t,n,o)}async signPayload(t,n,o,r){let{resourceRequestMethod:s,resourceRequestUri:i,shrClaims:a,shrNonce:l,shrOptions:c}=o,p=(i?new Ct(i):void 0)?.getUrlComponents();return this.cryptoUtils.signJwt({at:t,ts:Us(),m:s?.toUpperCase(),u:p?.HostNameAndPort,nonce:l||this.cryptoUtils.createNewGuid(),p:p?.AbsolutePath,q:p?.QueryString?[[],p.QueryString]:void 0,client_claims:a||void 0,...r},n,c,o.correlationId)}};var hl={};Dn(hl,{badToken:()=>oT,consentRequired:()=>Kq,interactionRequired:()=>Wq,interruptedUser:()=>Zq,loginRequired:()=>Jq,nativeAccountUnavailable:()=>X$e,noTokensFound:()=>eI,refreshTokenExpired:()=>Qq,uxNotAllowed:()=>Yq});var eI="no_tokens_found",X$e="native_account_unavailable",Qq="refresh_token_expired",Yq="ux_not_allowed",Wq="interaction_required",Kq="consent_required",Jq="login_required",oT="bad_token",Zq="interrupted_user";var Cce=[Wq,Kq,Jq,oT,Yq,Zq],eDe=["message_only","additional_action","basic_action","user_password_expired","consent_required","bad_token","ux_not_allowed","interrupted_user"],Cn=class e extends st{constructor(t,n,o,r,s,i,a,l){super(t,n,o),Object.setPrototypeOf(this,e.prototype),this.timestamp=r||"",this.traceId=s||"",this.correlationId=i||"",this.claims=a||"",this.name="InteractionRequiredAuthError",this.errorNo=l}};function tI(e,t,n){let o=!!e&&Cce.indexOf(e)>-1,r=!!n&&eDe.indexOf(n)>-1,s=!!t&&Cce.some(i=>t.indexOf(i)>-1);return o||s||r}function Tm(e,t){return new Cn(e,t)}var ls=class e extends st{constructor(t,n,o,r,s){super(t,n,o),this.name="ServerError",this.errorNo=r,this.status=s,Object.setPrototypeOf(this,e.prototype)}};var ya={};Dn(ya,{generateLibraryState:()=>Ece,parseRequestState:()=>Xq,setRequestState:()=>tDe});function tDe(e,t,n){let o=Ece(e,n);return t?`${o}${wx}${t}`:o}function Ece(e,t){if(!e)throw oe(Gk);let n={id:e.createNewGuid()};t&&(n.meta=t);let o=JSON.stringify(n);return e.base64Encode(o)}function Xq(e,t){if(!e)throw oe(Gk);if(!t)throw oe(cm);try{let n=t.split(wx),o=n[0],r=n.length>1?n.slice(1).join(wx):"",s=e(o),i=JSON.parse(s);return{userRequestState:r||"",libraryState:i}}catch{throw oe(cm)}}var va=class e{constructor(t,n,o,r,s,i,a){this.clientId=t,this.cacheStorage=n,this.cryptoObj=o,this.logger=r,this.performanceClient=s,this.serializableCache=i,this.persistencePlugin=a}validateTokenResponse(t,n,o){if(t.error||t.error_description||t.suberror){let r=`Error(s): ${t.error_codes||im} - Timestamp: ${t.timestamp||im} - Description: ${t.error_description||im} - Correlation ID: ${t.correlation_id||im} - Trace ID: ${t.trace_id||im}`,s=t.error_codes?.length?t.error_codes[0]:void 0,i=new ls(t.error,r,t.suberror,s,t.status);if(o&&t.status&&t.status>=EO&&t.status<=AO){this.logger.warning("16ks7j",n);return}else if(o&&t.status&&t.status>=SO&&t.status<=CO){this.logger.warning("0g61x3",n);return}throw tI(t.error,t.error_description,t.suberror)?new Cn(t.error,t.error_description,t.suberror,t.timestamp||"",t.trace_id||"",t.correlation_id||"",t.claims||"",s):i}}async handleServerTokenResponse(t,n,o,r,s,i,a,l,c,u){let p;if(t.id_token){if(p=Pc(t.id_token||"",this.cryptoObj.base64Decode),i&&i.nonce&&p.nonce!==i.nonce)throw oe(jU);if(r.maxAge||r.maxAge===0){let _=p.auth_time;if(!_)throw oe(Mx);Wx(_,r.maxAge)}}this.homeAccountIdentifier=Sq(t.client_info||"",n.authorityType,this.logger,this.cryptoObj,r.correlationId,p);let m;i&&i.state&&(m=Xq(this.cryptoObj.base64Decode,i.state)),t.key_id=t.key_id||r.sshKid||void 0;let g=this.generateCacheRecord(t,n,o,r,p,a,i),f;try{if(this.persistencePlugin&&this.serializableCache&&(this.logger.verbose("0jbz5k",r.correlationId),f=new Yk(this.serializableCache,!0),await this.persistencePlugin.beforeCacheAccess(f)),l&&!c&&g.account&&this.cacheStorage.getAllAccounts({homeAccountId:g.account.homeAccountId,environment:g.account.environment},r.correlationId).length<1)return this.logger.warning("1gmt66",r.correlationId),this.performanceClient?.addFields({acntLoggedOut:!0},r.correlationId),await e.generateAuthenticationResult(this.cryptoObj,n,g,!1,r,this.performanceClient,p,m,void 0,u);await this.cacheStorage.saveCacheRecord(g,r.correlationId,bq(p||{}),s,r.storeInCache)}finally{this.persistencePlugin&&this.serializableCache&&f&&(this.logger.verbose("1bh17u",r.correlationId),await this.persistencePlugin.afterCacheAccess(f))}return e.generateAuthenticationResult(this.cryptoObj,n,g,!1,r,this.performanceClient,p,m,t,u)}generateCacheRecord(t,n,o,r,s,i,a){let l=n.getPreferredCache();if(!l)throw oe(Dx);let c=ym(s),u,p;t.id_token&&s&&(u=Eq(this.homeAccountIdentifier,l,t.id_token,this.clientId,c||""),p=nI(this.cacheStorage,n,this.homeAccountIdentifier,this.cryptoObj.base64Decode,r.correlationId,s,t.client_info,l,c,a,void 0,this.logger,this.performanceClient));let m=null;if(t.access_token){let _=t.scope?yo.fromString(t.scope):new yo(r.scopes||[]),h=(typeof t.expires_in=="string"?parseInt(t.expires_in,10):t.expires_in)||0,v=(typeof t.ext_expires_in=="string"?parseInt(t.ext_expires_in,10):t.ext_expires_in)||0,y=(typeof t.refresh_in=="string"?parseInt(t.refresh_in,10):t.refresh_in)||void 0,T=o+h,I=T+v,E=y&&y>0?o+y:void 0;m=Aq(this.homeAccountIdentifier,l,t.access_token,this.clientId,c||n.tenant||"",_.printScopes(),T,I,this.cryptoObj.base64Decode,E,t.token_type,i,t.key_id);let q=r.resource||null;q&&(m.resource=q)}let g=null;if(t.refresh_token){let _;if(t.refresh_token_expires_in){let h=typeof t.refresh_token_expires_in=="string"?parseInt(t.refresh_token_expires_in,10):t.refresh_token_expires_in;_=o+h,this.performanceClient?.addFields({ntwkRtExpiresOnSeconds:_},r.correlationId)}g=kq(this.homeAccountIdentifier,l,t.refresh_token,this.clientId,t.foci,i,_)}let f=null;return t.foci&&(f={clientId:this.clientId,environment:l,familyId:t.foci}),{account:p,idToken:u,accessToken:m,refreshToken:g,appMetadata:f}}static async generateAuthenticationResult(t,n,o,r,s,i,a,l,c,u){let p="",m=[],g=null,f,_,h="";if(o.accessToken){if(o.accessToken.tokenType===Sn.POP&&!s.popKid){let I=new as(t,i),{secret:E,keyId:q}=o.accessToken;if(!q)throw oe(nq);p=await I.signPopToken(E,q,s)}else p=o.accessToken.secret;m=yo.fromString(o.accessToken.target).asArray(),g=Xx(o.accessToken.expiresOn),f=Xx(o.accessToken.extendedExpiresOn),o.accessToken.refreshOn&&(_=Xx(o.accessToken.refreshOn))}o.appMetadata&&(h=o.appMetadata.familyId===lm?lm:"");let v=a?.oid||a?.sub||"",y=a?.tid||"";c?.spa_accountid&&o.account&&(o.account.nativeAccountId=c?.spa_accountid);let T=o.account?_m(Gh(o.account),void 0,a,o.idToken?.secret):null;return{authority:n.canonicalAuthority,uniqueId:v,tenantId:y,scopes:m,account:T,idToken:o?.idToken?.secret||"",idTokenClaims:a||{},accessToken:p,fromCache:r,expiresOn:g,extExpiresOn:f,refreshOn:_,correlationId:s.correlationId,requestId:u||"",familyId:h,tokenType:o.accessToken?.tokenType||"",state:l?l.userRequestState:"",cloudGraphHostName:o.account?.cloudGraphHostName||"",msGraphHost:o.account?.msGraphHost||"",code:c?.spa_code,fromPlatformBroker:!1}}};function nI(e,t,n,o,r,s,i,a,l,c,u,p,m){p?.verbose("09jz0t",r);let g=a||t.getPreferredCache(),f=e.getAccountsFilteredBy({homeAccountId:n,environment:g},r);m?.addFields({cacheMatchedAccounts:f.length},r),f.length>1&&p?.warning("0x7ad1",r);let h=(f.length===1?f[0]:null)||wq({homeAccountId:n,idTokenClaims:s,clientInfo:i,environment:a,cloudGraphHostName:c?.cloud_graph_host_name,msGraphHost:c?.msgraph_host,nativeAccountId:u},t,o),v=h.tenantProfiles||[],y=l||h.realm;if(y&&!v.find(T=>T.tenantId===y)){let T=gl(n,h.localAccountId,y,s);v.push(T)}return h.tenantProfiles=v,h}var gr={HOME_ACCOUNT_ID:"home_account_id",UPN:"UPN"};async function oI(e,t,n){return typeof e=="string"?e:e({clientId:t,tokenEndpoint:n})}function Rc(e,t,n){return{clientId:e,authority:t.authority,scopes:t.scopes,homeAccountIdentifier:n,claims:t.claims,authenticationScheme:t.authenticationScheme,resourceRequestMethod:t.resourceRequestMethod,resourceRequestUri:t.resourceRequestUri,shrClaims:t.shrClaims,sshKid:t.sshKid,embeddedClientId:t.embeddedClientId||t.extraParameters?.clientId}}var Mc=class e{static generateThrottlingStorageKey(t){return`${Ax}.${JSON.stringify(t)}`}static preProcess(t,n,o){let r=e.generateThrottlingStorageKey(n),s=t.getThrottlingCache(r,o);if(s){if(s.throttleTime=500&&t.status<600}static checkResponseForRetryAfter(t){return t.headers?t.headers.hasOwnProperty(zn.RETRY_AFTER)&&(t.status<200||t.status>=300):!1}static calculateThrottleTime(t){let n=t<=0?0:t,o=Date.now()/1e3;return Math.floor(Math.min(o+(n||OO),o+UO)*1e3)}static removeThrottle(t,n,o,r){let s=Rc(n,o,r),i=this.generateThrottlingStorageKey(s);t.removeItem(i,o.correlationId)}};var Yh=class e extends st{constructor(t,n,o){super(t.errorCode,t.errorMessage,t.subError),Object.setPrototypeOf(this,e.prototype),this.name="NetworkError",this.error=t,this.httpStatus=n,this.responseHeaders=o}};function wm(e,t,n,o){return e.errorMessage=`${e.errorMessage}, additionalErrorInfo: error.name:${o?.name}, error.message:${o?.message}`,new Yh(e,t,n)}function rI(e,t,n){let o={};if(o[zn.CONTENT_TYPE]=bO,!t&&n)switch(n.type){case gr.HOME_ACCOUNT_ID:try{let r=fl(n.credential);o[zn.CCS_HEADER]=`Oid:${r.uid}@${r.utid}`}catch{e.verbose("1qhtee","")}break;case gr.UPN:o[zn.CCS_HEADER]=`UPN: ${n.credential}`;break}return o}function sI(e,t,n,o){let r=new Map;return e.embeddedClientId&&Ic(r,t,n),e.extraQueryParameters&&kc(r,e.extraQueryParameters),fm(r,e.correlationId),um(r,e.correlationId,o),pl(r)}async function iI(e,t,n,o,r,s,i,a,l,c){let u=await nDe(o,e,{body:t,headers:n},r,s,i,a,l);return c&&u.status<500&&u.status!==429&&c.clearTelemetryCache(),u}async function nDe(e,t,n,o,r,s,i,a){Mc.preProcess(r,e,o);let l;try{l=await j(s.sendPostRequestAsync.bind(s),Iq,i,a,o)(t,n);let c=l.headers||{};a?.addFields({refreshTokenSize:l.body.refresh_token?.length||0,httpVerToken:c[zn.X_MS_HTTP_VERSION]||"",requestId:c[zn.X_MS_REQUEST_ID]||""},o)}catch(c){if(c instanceof Yh){let u=c.responseHeaders;throw u&&a?.addFields({httpVerToken:u[zn.X_MS_HTTP_VERSION]||"",requestId:u[zn.X_MS_REQUEST_ID]||"",contentTypeHeader:u[zn.CONTENT_TYPE]||void 0,contentLengthHeader:u[zn.CONTENT_LENGTH]||void 0,httpStatus:c.httpStatus},o),c.error}throw c instanceof st?c:oe(BU)}return Mc.postProcess(r,e,l,o),l}var lI={};Dn(lI,{createDiscoveredInstance:()=>tH});function Ace(e){return e.hasOwnProperty("authorization_endpoint")&&e.hasOwnProperty("token_endpoint")&&e.hasOwnProperty("issuer")&&e.hasOwnProperty("jwks_uri")}function kce(e){return e.hasOwnProperty("tenant_discovery_endpoint")&&e.hasOwnProperty("metadata")}function Ice(e){return e.hasOwnProperty("error")&&e.hasOwnProperty("error_description")}var rT=class e{constructor(t,n,o,r){this.networkInterface=t,this.logger=n,this.performanceClient=o,this.correlationId=r}async detectRegion(t,n){let o=t;if(o)n.region_source=Ku.ENVIRONMENT_VARIABLE;else{let r=e.IMDS_OPTIONS;try{let s=await j(this.getRegionFromIMDS.bind(this),Xk,this.logger,this.performanceClient,this.correlationId)(_O,r);if(s.status===Ck&&(o=s.body,n.region_source=Ku.IMDS),s.status===Ek){let i=await j(this.getCurrentVersion.bind(this),Vq,this.logger,this.performanceClient,this.correlationId)(r);if(!i)return n.region_source=Ku.FAILED_AUTO_DETECTION,null;let a=await j(this.getRegionFromIMDS.bind(this),Xk,this.logger,this.performanceClient,this.correlationId)(i,r);a.status===Ck&&(o=a.body,n.region_source=Ku.IMDS)}}catch{return n.region_source=Ku.FAILED_AUTO_DETECTION,null}}return o||(n.region_source=Ku.FAILED_AUTO_DETECTION),o||null}async getRegionFromIMDS(t,n){return this.networkInterface.sendGetRequestAsync(`${Sk}?api-version=${t}&format=text`,n,yO)}async getCurrentVersion(t){try{let n=await this.networkInterface.sendGetRequestAsync(`${Sk}?format=json`,t);return n.status===Ek&&n.body&&n.body["newest-versions"]&&n.body["newest-versions"].length>0?n.body["newest-versions"][0]:null}catch{return null}}};rT.IMDS_OPTIONS={headers:{Metadata:"true"}};var $c=class e{constructor(t,n,o,r,s,i,a,l){this.canonicalAuthority=t,this._canonicalAuthority.validateAsUri(),this.networkInterface=n,this.cacheManager=o,this.authorityOptions=r,this.regionDiscoveryMetadata={region_used:void 0,region_source:void 0,region_outcome:void 0},this.logger=s,this.performanceClient=a,this.correlationId=i,this.managedIdentity=l||!1,this.regionDiscovery=new rT(n,this.logger,this.performanceClient,this.correlationId)}getAuthorityType(t){if(t.HostNameAndPort.endsWith(Tk))return Ir.Ciam;let n=t.PathSegments;if(n.length)switch(n[0].toLowerCase()){case mO:return Ir.Adfs;case gO:return Ir.Dsts}return Ir.Default}get authorityType(){return this.getAuthorityType(this.canonicalAuthorityUrlComponents)}get protocolMode(){return this.authorityOptions.protocolMode}get options(){return this.authorityOptions}get canonicalAuthority(){return this._canonicalAuthority.urlString}set canonicalAuthority(t){this._canonicalAuthority=new Ct(t),this._canonicalAuthority.validateAsUri(),this._canonicalAuthorityUrlComponents=null}get canonicalAuthorityUrlComponents(){return this._canonicalAuthorityUrlComponents||(this._canonicalAuthorityUrlComponents=this._canonicalAuthority.getUrlComponents()),this._canonicalAuthorityUrlComponents}get hostnameAndPort(){return this.canonicalAuthorityUrlComponents.HostNameAndPort.toLowerCase()}get tenant(){return this.canonicalAuthorityUrlComponents.PathSegments[0]}get authorizationEndpoint(){if(this.discoveryComplete())return this.replacePath(this.metadata.authorization_endpoint);throw oe(_a)}get tokenEndpoint(){if(this.discoveryComplete())return this.replacePath(this.metadata.token_endpoint);throw oe(_a)}get deviceCodeEndpoint(){if(this.discoveryComplete())return this.replacePath(this.metadata.token_endpoint.replace("/token","/devicecode"));throw oe(_a)}get endSessionEndpoint(){if(this.discoveryComplete()){if(!this.metadata.end_session_endpoint)throw oe(tq);return this.replacePath(this.metadata.end_session_endpoint)}else throw oe(_a)}get selfSignedJwtAudience(){if(this.discoveryComplete())return this.replacePath(this.metadata.issuer);throw oe(_a)}get jwksUri(){if(this.discoveryComplete())return this.replacePath(this.metadata.jwks_uri);throw oe(_a)}canReplaceTenant(t){return t.PathSegments.length===1&&!e.reservedTenantDomains.has(t.PathSegments[0])&&this.getAuthorityType(t)===Ir.Default&&this.protocolMode!==pn.OIDC}replaceTenant(t){return t.replace(/{tenant}|{tenantid}/g,this.tenant)}replacePath(t){let n=t,r=new Ct(this.metadata.canonical_authority).getUrlComponents(),s=r.PathSegments;return this.canonicalAuthorityUrlComponents.PathSegments.forEach((a,l)=>{let c=s[l];if(l===0&&this.canReplaceTenant(r)){let u=new Ct(this.metadata.authorization_endpoint).getUrlComponents().PathSegments[0];c!==u&&(this.logger.verbose("1q3g2x",this.correlationId),c=u)}a!==c&&(n=n.replace(`/${c}/`,`/${a}/`))}),this.replaceTenant(n)}get defaultOpenIdConfigurationEndpoint(){let t=this.hostnameAndPort;return this.canonicalAuthority.endsWith("v2.0/")||this.authorityType===Ir.Adfs||this.protocolMode===pn.OIDC&&!this.isAliasOfKnownMicrosoftAuthority(t)?`${this.canonicalAuthority}.well-known/openid-configuration`:`${this.canonicalAuthority}v2.0/.well-known/openid-configuration`}discoveryComplete(){return!!this.metadata}async resolveEndpointsAsync(){let t=this.getCurrentMetadataEntity(),n=await j(this.updateCloudDiscoveryMetadata.bind(this),Hq,this.logger,this.performanceClient,this.correlationId)(t);this.canonicalAuthority=this.canonicalAuthority.replace(this.hostnameAndPort,t.preferred_network);let o=await j(this.updateEndpointMetadata.bind(this),zq,this.logger,this.performanceClient,this.correlationId)(t);this.updateCachedMetadata(t,n,{source:o}),this.performanceClient?.addFields({cloudDiscoverySource:n,authorityEndpointSource:o},this.correlationId)}getCurrentMetadataEntity(){let t=this.cacheManager.getAuthorityMetadataByAlias(this.hostnameAndPort,this.correlationId);return t||(t={aliases:[],preferred_cache:this.hostnameAndPort,preferred_network:this.hostnameAndPort,canonical_authority:this.canonicalAuthority,authorization_endpoint:"",token_endpoint:"",end_session_endpoint:"",issuer:"",aliasesFromNetwork:!1,endpointsFromNetwork:!1,expiresAt:Kk(),jwks_uri:""}),t}updateCachedMetadata(t,n,o){n!==Os.CACHE&&o?.source!==Os.CACHE&&(t.expiresAt=Kk(),t.canonical_authority=this.canonicalAuthority);let r=this.cacheManager.generateAuthorityMetadataCacheKey(t.preferred_cache,this.correlationId);this.cacheManager.setAuthorityMetadata(r,t,this.correlationId),this.metadata=t}async updateEndpointMetadata(t){let n=this.updateEndpointMetadataFromLocalSources(t);if(n){if(n.source===Os.HARDCODED_VALUES&&this.authorityOptions.azureRegionConfiguration?.azureRegion&&n.metadata){let r=await j(this.updateMetadataWithRegionalInformation.bind(this),Zk,this.logger,this.performanceClient,this.correlationId)(n.metadata);Qh(t,r,!1),t.canonical_authority=this.canonicalAuthority}return n.source}let o=await j(this.getEndpointMetadataFromNetwork.bind(this),Bq,this.logger,this.performanceClient,this.correlationId)();if(o)return this.authorityOptions.azureRegionConfiguration?.azureRegion&&(o=await j(this.updateMetadataWithRegionalInformation.bind(this),Zk,this.logger,this.performanceClient,this.correlationId)(o)),Qh(t,o,!0),Os.NETWORK;throw oe(zU,this.defaultOpenIdConfigurationEndpoint)}updateEndpointMetadataFromLocalSources(t){this.logger.verbose("1fi0kc",this.correlationId);let n=this.getEndpointMetadataFromConfig();if(n)return this.logger.verbose("06t0uj",this.correlationId),Qh(t,n,!1),{source:Os.CONFIG};this.logger.verbose("151k0p",this.correlationId);let o=this.getEndpointMetadataFromHardcodedValues();if(o)return Qh(t,o,!1),{source:Os.HARDCODED_VALUES,metadata:o};this.logger.verbose("1imop5",this.correlationId);let r=Jk(t);return this.isAuthoritySameType(t)&&t.endpointsFromNetwork&&!r?(this.logger.verbose("16uq31",""),{source:Os.CACHE}):(r&&this.logger.verbose("0uoibc",""),null)}isAuthoritySameType(t){return new Ct(t.canonical_authority).getUrlComponents().PathSegments.length===this.canonicalAuthorityUrlComponents.PathSegments.length}getEndpointMetadataFromConfig(){if(this.authorityOptions.authorityMetadata)try{return JSON.parse(this.authorityOptions.authorityMetadata)}catch{throw Mt(OU)}return null}async getEndpointMetadataFromNetwork(){let t={},n=this.defaultOpenIdConfigurationEndpoint;this.logger.verbose("1y65x6",this.correlationId);try{let o=await this.networkInterface.sendGetRequestAsync(n,t);return Ace(o.body)?o.body:(this.logger.verbose("1koyv8",this.correlationId),null)}catch{return this.logger.verbose("0a9wik",this.correlationId),null}}getEndpointMetadataFromHardcodedValues(){return this.hostnameAndPort in _q?_q[this.hostnameAndPort]:null}async updateMetadataWithRegionalInformation(t){let n=this.authorityOptions.azureRegionConfiguration?.azureRegion;if(n){if(n!==vO)return this.regionDiscoveryMetadata.region_outcome=kx.CONFIGURED_NO_AUTO_DETECTION,this.regionDiscoveryMetadata.region_used=n,e.replaceWithRegionalInformation(t,n);let o=await j(this.regionDiscovery.detectRegion.bind(this.regionDiscovery),Gq,this.logger,this.performanceClient,this.correlationId)(this.authorityOptions.azureRegionConfiguration?.environmentRegion,this.regionDiscoveryMetadata);if(o)return this.regionDiscoveryMetadata.region_outcome=kx.AUTO_DETECTION_REQUESTED_SUCCESSFUL,this.regionDiscoveryMetadata.region_used=o,e.replaceWithRegionalInformation(t,o);this.regionDiscoveryMetadata.region_outcome=kx.AUTO_DETECTION_REQUESTED_FAILED}return t}async updateCloudDiscoveryMetadata(t){let n=this.updateCloudDiscoveryMetadataFromLocalSources(t);if(n)return n;let o=await j(this.getCloudDiscoveryMetadataFromNetwork.bind(this),qq,this.logger,this.performanceClient,this.correlationId)();if(o)return eT(t,o,!0),Os.NETWORK;throw Mt(UU)}updateCloudDiscoveryMetadataFromLocalSources(t){this.logger.verbose("0jhlgt",this.correlationId),this.logger.verbosePii("1fy7uz",this.correlationId),this.logger.verbosePii("08zabj",this.correlationId),this.logger.verbosePii("1o1kv3",this.correlationId);let n=this.getCloudDiscoveryMetadataFromConfig();if(n)return this.logger.verbose("1nakio",this.correlationId),eT(t,n,!1),Os.CONFIG;this.logger.verbose("1x74aj",this.correlationId);let o=wce(this.hostnameAndPort);if(o)return this.logger.verbose("0by47c",this.correlationId),eT(t,o,!1),Os.HARDCODED_VALUES;this.logger.verbose("0r2fzy",this.correlationId);let r=Jk(t);return this.isAuthoritySameType(t)&&t.aliasesFromNetwork&&!r?(this.logger.verbose("1uffgh",""),Os.CACHE):(r&&this.logger.verbose("0uoibc",""),null)}getCloudDiscoveryMetadataFromConfig(){if(this.authorityType===Ir.Ciam)return this.logger.verbose("04y84h",this.correlationId),e.createCloudDiscoveryMetadataFromHost(this.hostnameAndPort);if(this.authorityOptions.cloudDiscoveryMetadata){this.logger.verbose("0gszr3",this.correlationId);try{this.logger.verbose("1iifkx",this.correlationId);let t=JSON.parse(this.authorityOptions.cloudDiscoveryMetadata),n=Kx(t.metadata,this.hostnameAndPort);if(this.logger.verbose("0q67e3",""),n)return this.logger.verbose("0hzfao",this.correlationId),n;this.logger.verbose("1ajz3u",this.correlationId)}catch{throw this.logger.verbose("1wq5tu",this.correlationId),Mt(Uk)}}return this.isInKnownAuthorities()?(this.logger.verbose("0mt9al",this.correlationId),e.createCloudDiscoveryMetadataFromHost(this.hostnameAndPort)):null}async getCloudDiscoveryMetadataFromNetwork(){let t=`${fO}${this.canonicalAuthority}oauth2/v2.0/authorize`,n={},o=null;try{let r=await this.networkInterface.sendGetRequestAsync(t,n),s,i;if(kce(r.body))s=r.body,i=s.metadata,this.logger.verbosePii("1vglyt",this.correlationId);else if(Ice(r.body)){if(this.logger.warning("062uto",this.correlationId),s=r.body,s.error===wO)return this.logger.error("1x90tm",this.correlationId),null;this.logger.warning("0wchdm",this.correlationId),this.logger.warning("1s5mpv",this.correlationId),this.logger.warning("1yhqpw",this.correlationId),i=[]}else return this.logger.error("0768g0",this.correlationId),null;this.logger.verbose("1lrobr",this.correlationId),o=Kx(i,this.hostnameAndPort)}catch(r){return r instanceof st?this.logger.error("0vwhc7",this.correlationId):this.logger.error("0s2z41",this.correlationId),null}return o||(this.logger.warning("0jp28q",this.correlationId),this.logger.verbose("130sd8",this.correlationId),o=e.createCloudDiscoveryMetadataFromHost(this.hostnameAndPort)),o}isInKnownAuthorities(){return this.authorityOptions.knownAuthorities.filter(n=>n&&Ct.getDomainFromUrl(n).toLowerCase()===this.hostnameAndPort).length>0}static generateAuthority(t,n){let o;if(n&&n.azureCloudInstance!==ed.None){let r=n.tenant?n.tenant:Tx;o=`${n.azureCloudInstance}/${r}/`}return o||t}static createCloudDiscoveryMetadataFromHost(t){return{preferred_network:t,preferred_cache:t,aliases:[t]}}getPreferredCache(){if(this.managedIdentity)return pO;if(this.discoveryComplete())return this.metadata.preferred_cache;throw oe(_a)}isAlias(t){return this.metadata.aliases.indexOf(t)>-1}isAliasOfKnownMicrosoftAuthority(t){return vq.has(t)}static isPublicCloudAuthority(t){return TO.indexOf(t)>=0}static buildRegionalAuthorityString(t,n,o){let r=new Ct(t);r.validateAsUri();let s=r.getUrlComponents(),i=`${n}.${s.HostNameAndPort}`;this.isPublicCloudAuthority(s.HostNameAndPort)&&(i=`${n}.${xO}`);let a=Ct.constructAuthorityUriFromObject({...r.getUrlComponents(),HostNameAndPort:i}).urlString;return o?`${a}?${o}`:a}static replaceWithRegionalInformation(t,n){let o={...t};return o.authorization_endpoint=e.buildRegionalAuthorityString(o.authorization_endpoint,n),o.token_endpoint=e.buildRegionalAuthorityString(o.token_endpoint,n),o.end_session_endpoint&&(o.end_session_endpoint=e.buildRegionalAuthorityString(o.end_session_endpoint,n)),o}static transformCIAMAuthority(t){let n=t,r=new Ct(t).getUrlComponents();if(r.PathSegments.length===0&&r.HostNameAndPort.endsWith(Tk)){let s=r.HostNameAndPort.split(".")[0];n=`${n}${s}${hO}`}return n}};$c.reservedTenantDomains=new Set(["{tenant}","{tenantid}",ha.COMMON,ha.CONSUMERS,ha.ORGANIZATIONS]);function Pce(e){let o=new Ct(e).getUrlComponents().PathSegments.slice(-1)[0]?.toLowerCase();switch(o){case ha.COMMON:case ha.ORGANIZATIONS:case ha.CONSUMERS:return;default:return o}}function aI(e){return e.endsWith(Lh)?e:`${e}${Lh}`}function eH(e){let t=e.cloudDiscoveryMetadata,n;if(t)try{n=JSON.parse(t)}catch{throw Mt(Uk)}return{canonicalAuthority:e.authority?aI(e.authority):void 0,knownAuthorities:e.knownAuthorities,cloudDiscoveryMetadata:n}}async function tH(e,t,n,o,r,s,i){let a=$c.transformCIAMAuthority(aI(e)),l=new $c(a,t,n,o,r,s,i);try{return await j(l.resolveEndpointsAsync.bind(l),Uq,r,i,s)(),l}catch{throw oe(_a)}}var Sm=class{constructor(t,n){this.includeRedirectUri=!0,this.config=Vh(t),this.logger=new vo(this.config.loggerOptions,Xu,ml),this.cryptoUtils=this.config.cryptoInterface,this.cacheManager=this.config.storageInterface,this.networkClient=this.config.networkInterface,this.serverTelemetryManager=this.config.serverTelemetryManager,this.authority=this.config.authOptions.authority,this.performanceClient=n,this.oidcDefaultScopes=this.config.authOptions.authority.options.OIDCOptions?.defaultScopes}async acquireToken(t,n,o){if(!t.code)throw oe(WU);o&&o.cloud_instance_host_name&&await j(this.updateTokenEndpointAuthority.bind(this),Oq,this.logger,this.performanceClient,t.correlationId)(o.cloud_instance_host_name,t.correlationId);let r=Us(),s=await j(this.executeTokenRequest.bind(this),Nq,this.logger,this.performanceClient,t.correlationId)(this.authority,t,this.serverTelemetryManager),i=s.headers?.[zn.X_MS_REQUEST_ID],a=new va(this.config.authOptions.clientId,this.cacheManager,this.cryptoUtils,this.logger,this.performanceClient,this.config.serializableCache,this.config.persistencePlugin);return a.validateTokenResponse(s.body,t.correlationId),j(a.handleServerTokenResponse.bind(a),nT,this.logger,this.performanceClient,t.correlationId)(s.body,this.authority,r,t,n,o,void 0,void 0,void 0,i)}getLogoutUri(t){if(!t)throw Mt(NU);let n=this.createLogoutUrlQueryString(t);return Ct.appendQueryString(this.authority.endSessionEndpoint,n)}async executeTokenRequest(t,n,o){let r=sI(n,this.config.authOptions.clientId,this.config.authOptions.redirectUri,this.performanceClient),s=Ct.appendQueryString(t.tokenEndpoint,r),i=await j(this.createTokenRequestBody.bind(this),Fq,this.logger,this.performanceClient,n.correlationId)(n),a;if(n.clientInfo)try{let u=zh(n.clientInfo,this.cryptoUtils.base64Decode);a={credential:`${u.uid}${$h}${u.utid}`,type:gr.HOME_ACCOUNT_ID}}catch{this.logger.verbose("0wznt3",n.correlationId)}let l=rI(this.logger,this.config.systemOptions.preventCorsPreflight,a||n.ccsCredential),c=Rc(this.config.authOptions.clientId,n);return j(iI,Lq,this.logger,this.performanceClient,n.correlationId)(s,i,l,c,n.correlationId,this.cacheManager,this.networkClient,this.logger,this.performanceClient,o)}async createTokenRequestBody(t){let n=new Map;if(pm(n,t.embeddedClientId||t.extraParameters?.[dl]||this.config.authOptions.clientId),this.includeRedirectUri)mm(n,t.redirectUri);else if(!t.redirectUri)throw Mt(LU);if(dm(n,t.scopes,!0,this.oidcDefaultScopes),Yx(n,t.resource),dq(n,t.code),Nx(n,this.config.libraryInfo),Fx(n,this.config.telemetry.application),Qx(n),this.serverTelemetryManager&&!Qk(this.config)&&jx(n,this.serverTelemetryManager),t.codeVerifier&&mq(n,t.codeVerifier),this.config.clientCredentials.clientSecret&&Ux(n,this.config.clientCredentials.clientSecret),this.config.clientCredentials.clientAssertion){let r=this.config.clientCredentials.clientAssertion;qx(n,await oI(r.assertion,this.config.authOptions.clientId,t.resourceRequestUri)),Hx(n,r.assertionType)}if(Bx(n,Cx.AUTHORIZATION_CODE_GRANT),hm(n),t.authenticationScheme===Sn.POP){let r=new as(this.cryptoUtils,this.performanceClient),s;t.popKid?s=this.cryptoUtils.encodeKid(t.popKid):s=(await j(r.generateCnf.bind(r),xm,this.logger,this.performanceClient,t.correlationId)(t,this.logger)).reqCnfString,Gx(n,s)}else if(t.authenticationScheme===Sn.SSH)if(t.sshJwk)Vx(n,t.sshJwk);else throw Mt(Rx);(!Fn.isEmptyObj(t.claims)||this.config.authOptions.clientCapabilities&&this.config.authOptions.clientCapabilities.length>0)&&gm(n,t.claims,this.config.authOptions.clientCapabilities);let o;if(t.clientInfo)try{let r=zh(t.clientInfo,this.cryptoUtils.base64Decode);o={credential:`${r.uid}${$h}${r.utid}`,type:gr.HOME_ACCOUNT_ID}}catch{this.logger.verbose("0wznt3",t.correlationId)}else o=t.ccsCredential;if(this.config.systemOptions.preventCorsPreflight&&o)switch(o.type){case gr.HOME_ACCOUNT_ID:try{let r=fl(o.credential);Ac(n,r)}catch{this.logger.verbose("1qhtee",t.correlationId)}break;case gr.UPN:Ju(n,o.credential);break}return t.embeddedClientId&&Ic(n,this.config.authOptions.clientId,this.config.authOptions.redirectUri),t.extraParameters&&kc(n,t.extraParameters),t.enableSpaAuthorizationCode&&(!t.extraParameters||!t.extraParameters[Dk])&&kc(n,{[Dk]:"1"}),um(n,t.correlationId,this.performanceClient),pl(n)}createLogoutUrlQueryString(t){let n=new Map;return t.postLogoutRedirectUri&&iq(n,t.postLogoutRedirectUri),t.correlationId&&fm(n,t.correlationId),t.idTokenHint&&aq(n,t.idTokenHint),t.state&&Ox(n,t.state),t.logoutHint&&fq(n,t.logoutHint),t.extraQueryParameters&&kc(n,t.extraQueryParameters),this.config.authOptions.instanceAware&&zx(n),pl(n)}async updateTokenEndpointAuthority(t,n){let o=`https://${t}/${this.authority.tenant}/`,r=await tH(o,this.networkClient,this.cacheManager,this.authority.options,this.logger,n,this.performanceClient);this.authority=r}};var oDe=300,sT=class{constructor(t,n){this.config=Vh(t),this.logger=new vo(this.config.loggerOptions,Xu,ml),this.cryptoUtils=this.config.cryptoInterface,this.cacheManager=this.config.storageInterface,this.networkClient=this.config.networkInterface,this.serverTelemetryManager=this.config.serverTelemetryManager,this.authority=this.config.authOptions.authority,this.performanceClient=n}async acquireToken(t,n){let o=Us(),r=await j(this.executeTokenRequest.bind(this),Rq,this.logger,this.performanceClient,t.correlationId)(t,this.authority),s=r.headers?.[zn.X_MS_REQUEST_ID],i=new va(this.config.authOptions.clientId,this.cacheManager,this.cryptoUtils,this.logger,this.performanceClient,this.config.serializableCache,this.config.persistencePlugin);return i.validateTokenResponse(r.body,t.correlationId),j(i.handleServerTokenResponse.bind(i),nT,this.logger,this.performanceClient,t.correlationId)(r.body,this.authority,o,t,n,void 0,void 0,!0,t.forceCache,s)}async acquireTokenByRefreshToken(t,n){if(!t)throw Mt(DU);if(!t.account)throw oe($x);if(this.cacheManager.isAppMetadataFOCI(t.account.environment,t.correlationId))try{return await j(this.acquireTokenWithCachedRefreshToken.bind(this),tT,this.logger,this.performanceClient,t.correlationId)(t,!0,n)}catch(r){let s=r instanceof Cn&&r.errorCode===eI,i=r instanceof ls&&r.errorCode===HO&&r.subError===BO;if(s||i)return j(this.acquireTokenWithCachedRefreshToken.bind(this),tT,this.logger,this.performanceClient,t.correlationId)(t,!1,n);throw r}return j(this.acquireTokenWithCachedRefreshToken.bind(this),tT,this.logger,this.performanceClient,t.correlationId)(t,!1,n)}async acquireTokenWithCachedRefreshToken(t,n,o){let r=Xn(this.cacheManager.getRefreshToken.bind(this.cacheManager),jq,this.logger,this.performanceClient,t.correlationId)(t.account,n,t.correlationId,void 0);if(!r)throw Tm(eI);if(r.expiresOn){let i=t.refreshTokenExpirationOffsetSeconds||oDe;if(this.performanceClient?.addFields({cacheRtExpiresOnSeconds:Number(r.expiresOn),rtOffsetSeconds:i},t.correlationId),jh(r.expiresOn,i))throw Tm(Qq)}let s={...t,refreshToken:r.secret,authenticationScheme:t.authenticationScheme||Sn.BEARER,ccsCredential:{credential:t.account.homeAccountId,type:gr.HOME_ACCOUNT_ID}};try{return await j(this.acquireToken.bind(this),Mq,this.logger,this.performanceClient,t.correlationId)(s,o)}catch(i){if(i instanceof Cn&&i.subError===oT){this.logger.verbose("1pg3ap",t.correlationId);let a=this.cacheManager.generateCredentialKey(r);this.cacheManager.removeRefreshToken(a,t.correlationId)}throw i}}async executeTokenRequest(t,n){let o=sI(t,this.config.authOptions.clientId,this.config.authOptions.redirectUri,this.performanceClient),r=Ct.appendQueryString(n.tokenEndpoint,o),s=await j(this.createTokenRequestBody.bind(this),$q,this.logger,this.performanceClient,t.correlationId)(t),i=rI(this.logger,this.config.systemOptions.preventCorsPreflight,t.ccsCredential),a=Rc(this.config.authOptions.clientId,t);return j(iI,Pq,this.logger,this.performanceClient,t.correlationId)(r,s,i,a,t.correlationId,this.cacheManager,this.networkClient,this.logger,this.performanceClient,this.serverTelemetryManager)}async createTokenRequestBody(t){let n=new Map;if(pm(n,t.embeddedClientId||t.extraParameters?.[dl]||this.config.authOptions.clientId),t.redirectUri&&mm(n,t.redirectUri),dm(n,t.scopes,!0,this.config.authOptions.authority.options.OIDCOptions?.defaultScopes),Bx(n,Cx.REFRESH_TOKEN_GRANT),hm(n),Nx(n,this.config.libraryInfo),Fx(n,this.config.telemetry.application),Qx(n),this.serverTelemetryManager&&!Qk(this.config)&&jx(n,this.serverTelemetryManager),pq(n,t.refreshToken),this.config.clientCredentials.clientSecret&&Ux(n,this.config.clientCredentials.clientSecret),this.config.clientCredentials.clientAssertion){let o=this.config.clientCredentials.clientAssertion;qx(n,await oI(o.assertion,this.config.authOptions.clientId,t.resourceRequestUri)),Hx(n,o.assertionType)}if(t.authenticationScheme===Sn.POP){let o=new as(this.cryptoUtils,this.performanceClient),r;t.popKid?r=this.cryptoUtils.encodeKid(t.popKid):r=(await j(o.generateCnf.bind(o),xm,this.logger,this.performanceClient,t.correlationId)(t,this.logger)).reqCnfString,Gx(n,r)}else if(t.authenticationScheme===Sn.SSH)if(t.sshJwk)Vx(n,t.sshJwk);else throw Mt(Rx);if((!Fn.isEmptyObj(t.claims)||this.config.authOptions.clientCapabilities&&this.config.authOptions.clientCapabilities.length>0)&&gm(n,t.claims,this.config.authOptions.clientCapabilities),this.config.systemOptions.preventCorsPreflight&&t.ccsCredential)switch(t.ccsCredential.type){case gr.HOME_ACCOUNT_ID:try{let o=fl(t.ccsCredential.credential);Ac(n,o)}catch{this.logger.verbose("1qhtee",t.correlationId)}break;case gr.UPN:Ju(n,t.ccsCredential.credential);break}return t.embeddedClientId&&Ic(n,this.config.authOptions.clientId,this.config.authOptions.redirectUri),t.extraParameters&&kc(n,{...t.extraParameters}),um(n,t.correlationId,this.performanceClient),pl(n)}};var iT=class{constructor(t,n){this.config=Vh(t),this.logger=new vo(this.config.loggerOptions,Xu,ml),this.cryptoUtils=this.config.cryptoInterface,this.cacheManager=this.config.storageInterface,this.networkClient=this.config.networkInterface,this.serverTelemetryManager=this.config.serverTelemetryManager,this.authority=this.config.authOptions.authority,this.performanceClient=n}async acquireCachedToken(t){let n=ba.NOT_APPLICABLE;if(t.forceRefresh||!Fn.isEmptyObj(t.claims))throw this.setCacheOutcome(ba.FORCE_REFRESH_OR_CLAIMS,t.correlationId),oe(qh);if(!t.account)throw oe($x);let o=t.account.tenantId||Pce(t.authority),r=this.cacheManager.getTokenKeys(),s=this.cacheManager.getAccessToken(t.account,t,r,o);if(s){if(Cq(s.cachedAt)||jh(s.expiresOn,this.config.systemOptions.tokenRenewalOffsetSeconds))throw this.setCacheOutcome(ba.CACHED_ACCESS_TOKEN_EXPIRED,t.correlationId),oe(qh);if(t.resource){if(s.resource!==t.resource)throw this.setCacheOutcome(ba.NO_CACHED_ACCESS_TOKEN,t.correlationId),oe(qh)}else s.refreshOn&&jh(s.refreshOn,0)&&(n=ba.PROACTIVELY_REFRESHED)}else throw this.setCacheOutcome(ba.NO_CACHED_ACCESS_TOKEN,t.correlationId),oe(qh);let i=t.authority||this.authority.getPreferredCache(),a={account:this.cacheManager.getAccount(this.cacheManager.generateAccountKey(t.account),t.correlationId),accessToken:s,idToken:this.cacheManager.getIdToken(t.account,t.correlationId,r,o),refreshToken:null,appMetadata:this.cacheManager.readAppMetadataFromCache(i,t.correlationId)};return this.setCacheOutcome(n,t.correlationId),this.config.serverTelemetryManager&&this.config.serverTelemetryManager.incrementCacheHits(),[await j(this.generateResultFromCacheRecord.bind(this),Dq,this.logger,this.performanceClient,t.correlationId)(a,t),n]}setCacheOutcome(t,n){this.serverTelemetryManager?.setCacheOutcome(t),this.performanceClient?.addFields({cacheOutcome:t},n),t!==ba.NOT_APPLICABLE&&this.logger.info("09ingz",n)}async generateResultFromCacheRecord(t,n){let o;if(t.idToken&&(o=Pc(t.idToken.secret,this.config.cryptoInterface.base64Decode)),n.maxAge||n.maxAge===0){let r=o?.auth_time;if(!r)throw oe(Mx);Wx(r,n.maxAge)}return va.generateAuthenticationResult(this.cryptoUtils,this.authority,t,!0,n,this.performanceClient,o)}};var nH={sendGetRequestAsync:()=>Promise.reject(oe(xt)),sendPostRequestAsync:()=>Promise.reject(oe(xt))};var bl={};Dn(bl,{getAuthorizationCodePayload:()=>iDe,getAuthorizeUrl:()=>sDe,getStandardAuthorizeRequestParameters:()=>rDe,validateAuthorizationResponse:()=>Lce});function rDe(e,t,n,o){let r=t.correlationId,s=new Map;pm(s,t.embeddedClientId||t.extraQueryParameters?.[dl]||e.clientId);let i=[...t.scopes||[],...t.extraScopesToConsent||[]];if(dm(s,i,!0,e.authority.options.OIDCOptions?.defaultScopes),Yx(s,t.resource),mm(s,t.redirectUri),fm(s,r),sq(s,t.responseMode),hm(s),gq(s),t.prompt&&(cq(s,t.prompt),o?.addFields({prompt:t.prompt},r)),t.domainHint&&(lq(s,t.domainHint),o?.addFields({domainHintFromRequest:!0},r)),t.prompt!==Sx.SELECT_ACCOUNT)if(t.sid&&t.prompt===Sx.NONE)n.verbose("1tvqyx",t.correlationId),Vk(s,t.sid),o?.addFields({sidFromRequest:!0},r);else if(t.account){let a=lDe(t.account),l=cDe(t.account);if(l&&t.domainHint&&(n.warning("0wkg3v",t.correlationId),l=null),l){n.verbose("1eyfsw",t.correlationId),Hh(s,l),o?.addFields({loginHintFromClaim:!0},r);try{let c=fl(t.account.homeAccountId);Ac(s,c)}catch{n.verbose("12ugck",t.correlationId)}}else if(a&&t.prompt===Sx.NONE){n.verbose("1rmd8s",t.correlationId),Vk(s,a),o?.addFields({sidFromClaim:!0},r);try{let c=fl(t.account.homeAccountId);Ac(s,c)}catch{n.verbose("12ugck",t.correlationId)}}else if(t.loginHint)n.verbose("0y3007",t.correlationId),Hh(s,t.loginHint),Ju(s,t.loginHint),o?.addFields({loginHintFromRequest:!0},r);else if(t.account.username){n.verbose("02f507",t.correlationId),Hh(s,t.account.username),o?.addFields({loginHintFromUpn:!0},r);try{let c=fl(t.account.homeAccountId);Ac(s,c)}catch{n.verbose("12ugck",t.correlationId)}}}else t.loginHint&&(n.verbose("0g01ey",t.correlationId),Hh(s,t.loginHint),Ju(s,t.loginHint),o?.addFields({loginHintFromRequest:!0},r));else n.verbose("169k9v",t.correlationId);return t.nonce&&uq(s,t.nonce),t.state&&Ox(s,t.state),(t.claims||e.clientCapabilities&&e.clientCapabilities.length>0)&&gm(s,t.claims,e.clientCapabilities),t.embeddedClientId&&Ic(s,e.clientId,e.redirectUri),e.instanceAware&&(!t.extraQueryParameters||!Object.keys(t.extraQueryParameters).includes(Fh))&&zx(s),s}function sDe(e,t){let n=pl(t);return Ct.appendQueryString(e.authorizationEndpoint,n)}function iDe(e,t){if(Lce(e,t),!e.code)throw oe(eq);return e}function Lce(e,t){if(!e.state||!t)throw e.state?oe(Bk,"Cached State"):oe(Bk,"Server State");let n,o;try{n=decodeURIComponent(e.state)}catch{throw oe(cm,e.state)}try{o=decodeURIComponent(t)}catch{throw oe(cm,e.state)}if(n!==o)throw oe(VU);if(e.error||e.error_description||e.suberror){let r=aDe(e);throw tI(e.error,e.error_description,e.suberror)?new Cn(e.error||"",e.error_description,e.suberror,e.timestamp||"",e.trace_id||"",e.correlation_id||"",e.claims||"",r):new ls(e.error||"",e.error_description,e.suberror,r)}}function aDe(e){let t="code=",n=e.error_uri?.lastIndexOf(t);return n&&n>=0?e.error_uri?.substring(n+t.length):void 0}function lDe(e){return e.idTokenClaims?.sid||null}function cDe(e){return e.loginHint||e.idTokenClaims?.login_hint||null}function aT(e,t){if(e){if(t.resource&&(Rce(t.extraParameters)||Rce(t.extraQueryParameters)))throw oe(rq);if(!t.resource)throw oe(oq)}}function Rce(e){return e?Object.prototype.hasOwnProperty.call(e,"resource"):!1}var nd={};Dn(nd,{postRequestFailed:()=>dDe,unexpectedError:()=>uDe});var uDe="unexpected_error",dDe="post_request_failed";var Mce=",",$ce="|";function pDe(e){let{skus:t,libraryName:n,libraryVersion:o,extensionName:r,extensionVersion:s}=e,i=new Map([[0,[n,o]],[2,[r,s]]]),a=[];if(t?.length){if(a=t.split(Mce),a.length<4)return t}else a=Array.from({length:4},()=>$ce);return i.forEach((l,c)=>{l.length===2&&l[0]?.length&&l[1]?.length&&mDe({skuArr:a,index:c,skuName:l[0],skuVersion:l[1]})}),a.join(Mce)}function mDe(e){let{skuArr:t,index:n,skuName:o,skuVersion:r}=e;n>=t.length||(t[n]=[o,r].join($ce))}var Cm=class e{constructor(t,n){this.cacheOutcome=ba.NOT_APPLICABLE,this.cacheManager=n,this.apiId=t.apiId,this.correlationId=t.correlationId,this.wrapperSKU=t.wrapperSKU||"",this.wrapperVer=t.wrapperVer||"",this.telemetryCacheKey=Ex+am+t.clientId}generateCurrentRequestHeaderValue(){let t=`${this.apiId}${Wu}${this.cacheOutcome}`,n=[this.wrapperSKU,this.wrapperVer],o=this.getNativeBrokerErrorCode();o?.length&&n.push(`broker_error=${o}`);let r=n.join(Wu),s=this.getRegionDiscoveryFields(),i=[t,s].join(Wu);return[Ik,i,r].join(Pk)}generateLastRequestHeaderValue(){let t=this.getLastRequests(),n=e.maxErrorsToSend(t),o=t.failedRequests.slice(0,2*n).join(Wu),r=t.errors.slice(0,n).join(Wu),s=t.errors.length,i=n=$O&&(n.failedRequests.shift(),n.failedRequests.shift(),n.errors.shift()),n.failedRequests.push(this.apiId,this.correlationId),t instanceof Error&&t&&t.toString()?t instanceof st?t.subError?n.errors.push(t.subError):t.errorCode?n.errors.push(t.errorCode):n.errors.push(t.toString()):n.errors.push(t.toString()):n.errors.push(FO),this.cacheManager.setServerTelemetry(this.telemetryCacheKey,n,this.correlationId)}incrementCacheHits(){let t=this.getLastRequests();return t.cacheHits+=1,this.cacheManager.setServerTelemetry(this.telemetryCacheKey,t,this.correlationId),t.cacheHits}getLastRequests(){let t={failedRequests:[],errors:[],cacheHits:0};return this.cacheManager.getServerTelemetry(this.telemetryCacheKey,this.correlationId)||t}clearTelemetryCache(){let t=this.getLastRequests(),n=e.maxErrorsToSend(t),o=t.errors.length;if(n===o)this.cacheManager.removeItem(this.telemetryCacheKey,this.correlationId);else{let r={failedRequests:t.failedRequests.slice(n*2),errors:t.errors.slice(n),cacheHits:0};this.cacheManager.setServerTelemetry(this.telemetryCacheKey,r,this.correlationId)}}static maxErrorsToSend(t){let n,o=0,r=0,s=t.errors.length;for(n=0;ntypeof e=="number"&&e in hue?hue[e]:"unknown",Ze;(function(e){e.Redirect="redirect",e.Popup="popup",e.Silent="silent",e.None="none"})(Ze||(Ze={}));var pH={scopes:De.OIDC_DEFAULT_SCOPES},mH="jwk";var dI="msal.db",_ue=1,yue=`${dI}.keys`,Jo={Default:0,AccessToken:1,AccessTokenAndRefreshToken:2,RefreshToken:3,RefreshTokenAndNetwork:4,Skip:5},vue=[Jo.Default,Jo.Skip,Jo.RefreshTokenAndNetwork];function uT(e){return encodeURIComponent(sd(e).replace(/=/g,"").replace(/\+/g,"-").replace(/\//g,"_"))}function Pi(e){return xue(e).replace(/=/g,"").replace(/\+/g,"-").replace(/\//g,"_")}function sd(e){return xue(new TextEncoder().encode(e))}function xue(e){let t=Array.from(e,n=>String.fromCodePoint(n)).join("");return btoa(t)}var gH="pkce_not_created",fH="ear_jwk_empty",Tue="ear_jwe_empty",hH="crypto_nonexistent",tb="empty_navigate_uri",wue="hash_empty_error",nb="no_state_in_hash",Sue="hash_does_not_contain_known_properties",pI="unable_to_parse_state",Cue="state_interaction_type_mismatch",Eue="interaction_in_progress",Aue="interaction_in_progress_cancelled",kue="popup_window_error",Iue="empty_window_error",dT="user_cancelled",Pue="redirect_bridge_empty_response",Lue="redirect_in_iframe",Rue="block_iframe_reload",Mue="block_nested_popups";var ob="silent_logout_unsupported",$ue="no_account_error";var Due="no_token_request_cache_error",Nue="unable_to_parse_token_request_cache_error";var mI="non_browser_environment",rb="database_not_open",pT="no_network_connectivity",Fue="post_request_failed",Oue="get_request_failed",bH="failed_to_parse_response";var gI="crypto_key_not_found",Uue="auth_code_required",que="auth_code_or_nativeAccountId_required",Hue="spa_code_and_nativeAccountId_present",fI="database_unavailable",Bue="unable_to_acquire_token_from_native_platform",zue="native_handshake_timeout",Gue="native_extension_not_installed",hI="native_connection_not_established",sb="uninitialized_public_client_application",Vue="native_prompt_not_supported",jue="invalid_base64_string",Que="invalid_pop_token_request",Yue="failed_to_build_headers",Wue="failed_to_parse_headers",bI="failed_to_decrypt_ear_response",km="timed_out",Kue="empty_response";function $o(e){return new TextDecoder().decode(_l(e))}function _l(e){let t=e.replace(/-/g,"+").replace(/_/g,"/");switch(t.length%4){case 0:break;case 2:t+="==";break;case 3:t+="=";break;default:throw be(jue)}let n=atob(t);return Uint8Array.from(n,o=>o.codePointAt(0)||0)}var gDe="RSASSA-PKCS1-v1_5",ib="AES-GCM",Xue="HKDF",yH="SHA-256",fDe=2048,hDe=new Uint8Array([1,0,1]),Jue="0123456789abcdef",Zue=new Uint32Array(1),vH="raw",ede="encrypt",xH="decrypt",bDe="deriveKey",_De="crypto_subtle_undefined",TH={name:gDe,hash:yH,modulusLength:fDe,publicExponent:hDe};function tde(e){if(!window)throw be(mI);if(!window.crypto)throw be(hH);if(!e&&!window.crypto.subtle)throw be(hH,_De)}async function wH(e){let n=new TextEncoder().encode(e);return window.crypto.subtle.digest(yH,n)}function nde(e){return window.crypto.getRandomValues(e)}function _H(){return window.crypto.getRandomValues(Zue),Zue[0]}function qs(){let e=Date.now(),t=_H()*1024+(_H()&1023),n=new Uint8Array(16),o=Math.trunc(t/2**30),r=t&2**30-1,s=_H();n[0]=e/2**40,n[1]=e/2**32,n[2]=e/2**24,n[3]=e/2**16,n[4]=e/2**8,n[5]=e,n[6]=112|o>>>8,n[7]=o,n[8]=128|r>>>24,n[9]=r>>>16,n[10]=r>>>8,n[11]=r,n[12]=s>>>24,n[13]=s>>>16,n[14]=s>>>8,n[15]=s;let i="";for(let a=0;a>>4),i+=Jue.charAt(n[a]&15),(a===3||a===5||a===7||a===9)&&(i+="-");return i}async function ode(e,t){return window.crypto.subtle.generateKey(TH,e,t)}async function _I(e){return window.crypto.subtle.exportKey(mH,e)}async function rde(e,t,n){return window.crypto.subtle.importKey(mH,e,TH,t,n)}async function sde(e,t){return window.crypto.subtle.sign(TH,e,t)}async function ab(){let e=await SH(),n={alg:"dir",kty:"oct",k:Pi(new Uint8Array(e))};return sd(JSON.stringify(n))}async function yDe(e){let t=$o(e),o=JSON.parse(t).k,r=_l(o);return window.crypto.subtle.importKey(vH,r,ib,!1,[xH])}async function ide(e,t){let n=t.split(".");if(n.length!==5)throw be(bI,"jwe_length");let o=await yDe(e).catch(()=>{throw be(bI,"import_key")});try{let r=new TextEncoder().encode(n[0]),s=_l(n[2]),i=_l(n[3]),a=_l(n[4]),l=a.byteLength*8,c=new Uint8Array(i.length+a.length);c.set(i),c.set(a,i.length);let u=await window.crypto.subtle.decrypt({name:ib,iv:s,tagLength:l,additionalData:r},o,c);return new TextDecoder().decode(u)}catch{throw be(bI,"decrypt")}}async function SH(){let e=await window.crypto.subtle.generateKey({name:ib,length:256},!0,[ede,xH]);return window.crypto.subtle.exportKey(vH,e)}async function CH(e){return window.crypto.subtle.importKey(vH,e,Xue,!1,[bDe])}async function ade(e,t,n){return window.crypto.subtle.deriveKey({name:Xue,salt:t,hash:yH,info:new TextEncoder().encode(n)},e,{name:ib,length:256},!1,[ede,xH])}async function lde(e,t,n){let o=new TextEncoder().encode(t),r=window.crypto.getRandomValues(new Uint8Array(16)),s=await ade(e,r,n),i=await window.crypto.subtle.encrypt({name:ib,iv:new Uint8Array(12)},s,o);return{data:Pi(new Uint8Array(i)),nonce:Pi(r)}}async function EH(e,t,n,o){let r=_l(o),s=await ade(e,_l(t),n),i=await window.crypto.subtle.decrypt({name:ib,iv:new Uint8Array(12)},s,r);return new TextDecoder().decode(i)}async function cde(e){let t=await wH(e),n=new Uint8Array(t);return Pi(n)}var AH=class e extends st{constructor(t,n){super(t,n),this.name="BrowserConfigurationAuthError",Object.setPrototypeOf(this,e.prototype)}};function lb(e){return new AH(e,Xh(e))}var yI="storage_not_supported";var ude="in_mem_redirect_unavailable";function vDe(){let e=window.location.hash,t=window.location.search,n=!1,o=!1,r="",s;if(e&&e.length>1){let u=e.charAt(0)==="#"?e.substring(1):e,p=new URLSearchParams(u);p.has("state")&&(n=!0,r=u,s=p)}if(t&&t.length>1){let u=t.charAt(0)==="?"?t.substring(1):t,p=new URLSearchParams(u);p.has("state")&&(o=!0,r=u,s=p)}if(n&&o){let u=t.charAt(0)==="?"?t.substring(1):t,p=e.charAt(0)==="#"?e.substring(1):e;r=`${u}${p}`,s=new URLSearchParams(r)}if(!r||!s)throw be(Kue);let i=s.get("state");if(!i)throw be(nb);let{libraryState:a}=ya.parseRequestState($o,i),{id:l,meta:c}=a;if(!l||!c)throw be(pI,"missing_library_state");return{params:s,payload:r,urlHash:e,urlQuery:t,hasResponseInHash:n,hasResponseInQuery:o,libraryState:{id:l,meta:c}}}function vI(e){e.location.hash="",typeof e.history.replaceState=="function"&&e.history.replaceState(null,"",`${e.location.origin}${e.location.pathname}${e.location.search}`)}function dde(e){let t=e.split("#");t.shift(),window.location.hash=t.length>0?t.join("#"):""}function mT(){return window.parent!==window}function xDe(){if(mT())return!1;try{let{libraryState:e}=vDe(),{meta:t}=e;return t.interactionType===Ze.Popup}catch{return!1}}var id=null;function pde(e,t){id&&(e.verbose("18y01k",t),clearTimeout(id.timeoutId),id.channel.close(),id.reject(be(Aue)),id=null)}async function ad(e,t,n,o,r,s){return new Promise((i,a)=>{t.verbose("1rf6em",o.correlationId);let l=o.correlationId;r.addFields({redirectBridgeTimeoutMs:e,lateResponseExperimentEnabled:s?.iframeTimeoutTelemetry||!1},l);let{libraryState:c}=ya.parseRequestState(n.base64Decode,o.state||""),u=new BroadcastChannel(c.id),p,m=!1,g,f,_=window.setTimeout(()=>{id=null,s?.iframeTimeoutTelemetry?(f=r.startMeasurement(fue,l),m=!0,g=window.setTimeout(()=>{f?.end({success:!1}),clearTimeout(g),u.close()},6e4)):u.close(),a(be(km,"redirect_bridge_timeout"))},e);id={timeoutId:_,channel:u,reject:a},u.onmessage=h=>{p=h.data.payload;let v=h?.data&&typeof h.data.v=="number"?h.data.v:void 0;if(m){f?.end({success:!!p}),clearTimeout(g),u.close();return}r.addFields({redirectBridgeMessageVersion:v},l),id=null,clearTimeout(_),u.close(),p?i(p):a(be(Pue))}})}function Li(){return typeof window<"u"&&window.location?window.location.href.split("?")[0].split("#")[0]:""}function mde(){let t=new Ct(window.location.href).getUrlComponents();return`${t.Protocol}//${t.HostNameAndPort}/`}function TDe(){if(ki.getDeserializedResponse(window.location.hash)&&mT())throw be(Rue)}function wDe(e){if(mT()&&!e)throw be(Lue)}function SDe(){if(xDe())throw be(Mue)}function kH(){if(typeof window>"u")throw be(mI)}function IH(e){if(!e)throw be(sb)}function xI(e){kH(),TDe(),SDe(),IH(e)}function PH(e,t){if(xI(e),wDe(t.system.allowRedirectInIframe),t.cache.cacheLocation===Mo.MemoryStorage)throw lb(ude)}function TI(e){let t=document.createElement("link");t.rel="preconnect",t.href=new URL(e).origin,t.crossOrigin="anonymous",document.head.appendChild(t),window.setTimeout(()=>{try{document.head.removeChild(t)}catch{}},1e4)}function gT(){return qs()}var zlt=_n.addClientCapabilitiesToClaims;var wI=class{constructor(){this.dbName=dI,this.version=_ue,this.tableName=yue,this.dbOpen=!1}async open(){return new Promise((t,n)=>{let o=window.indexedDB.open(this.dbName,this.version);o.addEventListener("upgradeneeded",r=>{r.target.result.createObjectStore(this.tableName)}),o.addEventListener("success",r=>{let s=r;this.db=s.target.result,this.dbOpen=!0,t()}),o.addEventListener("error",()=>n(be(fI)))})}closeConnection(){let t=this.db;t&&this.dbOpen&&(t.close(),this.dbOpen=!1)}async validateDbIsOpen(){if(!this.dbOpen)return this.open()}async getItem(t){return await this.validateDbIsOpen(),new Promise((n,o)=>{if(!this.db)return o(be(rb));let i=this.db.transaction([this.tableName],"readonly").objectStore(this.tableName).get(t);i.addEventListener("success",a=>{let l=a;this.closeConnection(),n(l.target.result)}),i.addEventListener("error",a=>{this.closeConnection(),o(a)})})}async setItem(t,n){return await this.validateDbIsOpen(),new Promise((o,r)=>{if(!this.db)return r(be(rb));let a=this.db.transaction([this.tableName],"readwrite").objectStore(this.tableName).put(n,t);a.addEventListener("success",()=>{this.closeConnection(),o()}),a.addEventListener("error",l=>{this.closeConnection(),r(l)})})}async removeItem(t){return await this.validateDbIsOpen(),new Promise((n,o)=>{if(!this.db)return o(be(rb));let i=this.db.transaction([this.tableName],"readwrite").objectStore(this.tableName).delete(t);i.addEventListener("success",()=>{this.closeConnection(),n()}),i.addEventListener("error",a=>{this.closeConnection(),o(a)})})}async getKeys(){return await this.validateDbIsOpen(),new Promise((t,n)=>{if(!this.db)return n(be(rb));let s=this.db.transaction([this.tableName],"readonly").objectStore(this.tableName).getAllKeys();s.addEventListener("success",i=>{let a=i;this.closeConnection(),t(a.target.result)}),s.addEventListener("error",i=>{this.closeConnection(),n(i)})})}async containsKey(t){return await this.validateDbIsOpen(),new Promise((n,o)=>{if(!this.db)return o(be(rb));let i=this.db.transaction([this.tableName],"readonly").objectStore(this.tableName).count(t);i.addEventListener("success",a=>{let l=a;this.closeConnection(),n(l.target.result===1)}),i.addEventListener("error",a=>{this.closeConnection(),o(a)})})}async deleteDatabase(){return this.db&&this.dbOpen&&this.closeConnection(),new Promise((t,n)=>{let o=window.indexedDB.deleteDatabase(dI),r=setTimeout(()=>n(!1),200);o.addEventListener("success",()=>(clearTimeout(r),t(!0))),o.addEventListener("blocked",()=>(clearTimeout(r),t(!0))),o.addEventListener("error",()=>(clearTimeout(r),n(!1)))})}};var Nc=class{constructor(){this.cache=new Map}async initialize(){}getItem(t){return this.cache.get(t)||null}getUserData(t){return this.getItem(t)}setItem(t,n){this.cache.set(t,n)}async setUserData(t,n){this.setItem(t,n)}removeItem(t){this.cache.delete(t)}getKeys(){let t=[];return this.cache.forEach((n,o)=>{t.push(o)}),t}containsKey(t){return this.cache.has(t)}clear(){this.cache.clear()}decryptData(){return Promise.resolve(null)}};var SI=class{constructor(t){this.inMemoryCache=new Nc,this.indexedDBCache=new wI,this.logger=t}handleDatabaseAccessError(t,n){if(t instanceof Am&&t.errorCode===fI)this.logger.error("1wx7zz",n);else throw t}async getItem(t,n){let o=this.inMemoryCache.getItem(t);if(!o)try{return this.logger.verbose("0naxpl",n),await this.indexedDBCache.getItem(t)}catch(r){this.handleDatabaseAccessError(r,n)}return o}async setItem(t,n,o){this.inMemoryCache.setItem(t,n);try{await this.indexedDBCache.setItem(t,n)}catch(r){this.handleDatabaseAccessError(r,o)}}async removeItem(t,n){this.inMemoryCache.removeItem(t);try{await this.indexedDBCache.removeItem(t)}catch(o){this.handleDatabaseAccessError(o,n)}}async getKeys(t){let n=this.inMemoryCache.getKeys();if(n.length===0)try{return this.logger.verbose("1iqrbq",t),await this.indexedDBCache.getKeys()}catch(o){this.handleDatabaseAccessError(o,t)}return n}async containsKey(t,n){let o=this.inMemoryCache.containsKey(t);if(!o)try{return this.logger.verbose("03zl2j",n),await this.indexedDBCache.containsKey(t)}catch(r){this.handleDatabaseAccessError(r,n)}return o}clearInMemory(t){this.logger.verbose("03r21p",t),this.inMemoryCache.clear(),this.logger.verbose("0uksk1",t)}async clearPersistent(t){try{this.logger.verbose("0rdqut",t);let n=await this.indexedDBCache.deleteDatabase();return n&&this.logger.verbose("149ouc",t),n}catch(n){return this.handleDatabaseAccessError(n,t),!1}}};var yl=class e{constructor(t,n,o){this.logger=t,tde(o??!1),this.cache=new SI(this.logger),this.performanceClient=n}createNewGuid(){return qs()}base64Encode(t){return sd(t)}base64Decode(t){return $o(t)}base64UrlEncode(t){return uT(t)}encodeKid(t){return this.base64UrlEncode(JSON.stringify({kid:t}))}async getPublicKeyThumbprint(t){let n=this.performanceClient?.startMeasurement(qce,t.correlationId),o=await ode(e.EXTRACTABLE,e.POP_KEY_USAGES),r=await _I(o.publicKey),s={e:r.e,kty:r.kty,n:r.n},i=gde(s),a=await this.hashString(i),l=await _I(o.privateKey),c=await rde(l,!1,["sign"]);return await this.cache.setItem(a,{privateKey:c,publicKey:o.publicKey,requestMethod:t.resourceRequestMethod,requestUri:t.resourceRequestUri},t.correlationId),n&&n.end({success:!0}),a}async removeTokenBindingKey(t,n){if(await this.cache.removeItem(t,n),await this.cache.containsKey(t,n))throw oe(_o.bindingKeyNotRemoved)}async clearKeystore(t){this.cache.clearInMemory(t);try{return await this.cache.clearPersistent(t),!0}catch(n){return n instanceof Error?this.logger.error("1owpn8",t):this.logger.error("0yrmwo",t),!1}}async signJwt(t,n,o,r){let s=this.performanceClient?.startMeasurement(Hce,r),i=await this.cache.getItem(n,r||"");if(!i)throw be(gI);let a=await _I(i.publicKey),l=gde(a),c=uT(JSON.stringify({kid:n})),u=lT.getShrHeaderString({...o?.header,alg:a.alg,kid:c}),p=uT(u);t.cnf={jwk:JSON.parse(l)};let m=uT(JSON.stringify(t)),g=`${p}.${m}`,_=new TextEncoder().encode(g),h=await sde(i.privateKey,_),v=Pi(new Uint8Array(h)),y=`${g}.${v}`;return s&&s.end({success:!0}),y}async hashString(t){return cde(t)}};yl.POP_KEY_USAGES=["sign","verify"];yl.EXTRACTABLE=!0;function gde(e){return JSON.stringify(e,Object.keys(e).sort())}var fde="acquireTokenSilent",hde="acquireTokenByCode",bde="acquireTokenPopup",_de="acquireTokenPreRedirect",CI="acquireTokenRedirect",yde="ssoSilent",vde="initializeClientApplication",xde="localStorageUpdated";var eo="msal",EI="browser",LH="|";var Sde=`${eo}.${EI}.log.level`,Cde=`${eo}.${EI}.log.pii`,dct=`${eo}.${EI}.performance.enabled`,Ede=`${eo}.${EI}.platform.auth.dom`,RH=`${eo}.version`,Tde="account.keys",wde="token.keys";function Fc(e=2){return e<1?`${eo}.${Tde}`:`${eo}.${e}.${Tde}`}function Oc(e,t=2){return t<1?`${eo}.${wde}.${e}`:`${eo}.${t}.${wde}.${e}`}var CDe=24*60*60*1e3,AI={Lax:"Lax",None:"None"},cb=class{initialize(){return Promise.resolve()}getItem(t){let n=`${encodeURIComponent(t)}`,o=document.cookie.split(";");for(let r=0;r{let r=decodeURIComponent(o).trim().split("=");n.push(r[0])}),n}containsKey(t){return this.getKeys().includes(t)}decryptData(){return Promise.resolve(null)}};function EDe(e){let t=new Date;return new Date(t.getTime()+e*CDe).toUTCString()}function vl(e,t){let n=e.getItem(Fc(t));return n?JSON.parse(n):[]}function Hs(e,t,n){let o=t.getItem(Oc(e,n));if(o){let r=JSON.parse(o);if(r&&r.hasOwnProperty("idToken")&&r.hasOwnProperty("accessToken")&&r.hasOwnProperty("refreshToken"))return r}return{idToken:[],accessToken:[],refreshToken:[]}}function ub(e){return e.hasOwnProperty("id")&&e.hasOwnProperty("nonce")&&e.hasOwnProperty("data")}var Ade="msal.cache.encryption",ADe="msal.broadcast.cache",kI=class{constructor(t,n,o){if(!window.localStorage)throw lb(yI);this.memoryStorage=new Nc,this.initialized=!1,this.clientId=t,this.logger=n,this.performanceClient=o,this.broadcast=new BroadcastChannel(ADe)}async initialize(t){let n=new cb,o=n.getItem(Ade),r={key:"",id:""};if(o)try{r=JSON.parse(o)}catch{}if(r.key&&r.id){let s=Xn(_l,due,this.logger,this.performanceClient,t)(r.key);this.encryptionCookie={id:r.id,key:await j(CH,cH,this.logger,this.performanceClient,t)(s)}}else{let s=qs(),i=await j(SH,uue,this.logger,this.performanceClient,t)(),a=Xn(Pi,pue,this.logger,this.performanceClient,t)(new Uint8Array(i));this.encryptionCookie={id:s,key:await j(CH,cH,this.logger,this.performanceClient,t)(i)};let l={id:s,key:a};n.setItem(Ade,JSON.stringify(l),0,!0,AI.None)}await j(this.importExistingCache.bind(this),sue,this.logger,this.performanceClient,t)(t),this.broadcast.addEventListener("message",s=>{this.updateCache(s,t)}),this.initialized=!0}getItem(t){return window.localStorage.getItem(t)}getUserData(t){if(!this.initialized)throw be(sb);return this.memoryStorage.getItem(t)}async decryptData(t,n,o){if(!this.initialized||!this.encryptionCookie)throw be(sb);if(n.id!==this.encryptionCookie.id)return this.performanceClient.incrementFields({encryptedCacheExpiredCount:1},o),null;let r=await j(EH,uH,this.logger,this.performanceClient,o)(this.encryptionCookie.key,n.nonce,this.getContext(t),n.data);if(!r)return null;try{return{...JSON.parse(r),lastUpdatedAt:n.lastUpdatedAt}}catch{return this.performanceClient.incrementFields({encryptedCacheCorruptionCount:1},o),null}}setItem(t,n){window.localStorage.setItem(t,n)}async setUserData(t,n,o,r,s){if(!this.initialized||!this.encryptionCookie)throw be(sb);if(s)this.setItem(t,n);else{let{data:i,nonce:a}=await j(lde,mue,this.logger,this.performanceClient,o)(this.encryptionCookie.key,n,this.getContext(t)),l={id:this.encryptionCookie.id,nonce:a,data:i,lastUpdatedAt:r};this.setItem(t,JSON.stringify(l))}this.memoryStorage.setItem(t,n),this.broadcast.postMessage({key:t,value:n,context:this.getContext(t)})}removeItem(t){this.memoryStorage.containsKey(t)&&(this.memoryStorage.removeItem(t),this.broadcast.postMessage({key:t,value:null,context:this.getContext(t)})),window.localStorage.removeItem(t)}getKeys(){return Object.keys(window.localStorage)}containsKey(t){return window.localStorage.hasOwnProperty(t)}clear(){this.memoryStorage.clear(),vl(this).forEach(o=>this.removeItem(o));let n=Hs(this.clientId,this);n.idToken.forEach(o=>this.removeItem(o)),n.accessToken.forEach(o=>this.removeItem(o)),n.refreshToken.forEach(o=>this.removeItem(o)),this.getKeys().forEach(o=>{(o.startsWith(eo)||o.indexOf(this.clientId)!==-1)&&this.removeItem(o)})}async importExistingCache(t){if(!this.encryptionCookie)return;let n=vl(this);n=await this.importArray(n,t),n.length?this.setItem(Fc(),JSON.stringify(n)):this.removeItem(Fc());let o=Hs(this.clientId,this);o.idToken=await this.importArray(o.idToken,t),o.accessToken=await this.importArray(o.accessToken,t),o.refreshToken=await this.importArray(o.refreshToken,t),o.idToken.length||o.accessToken.length||o.refreshToken.length?this.setItem(Oc(this.clientId),JSON.stringify(o)):this.removeItem(Oc(this.clientId))}async getItemFromEncryptedCache(t,n){if(!this.encryptionCookie)return null;let o=this.getItem(t);if(!o)return null;let r;try{r=JSON.parse(o)}catch{return null}return ub(r)?r.id!==this.encryptionCookie.id?(this.performanceClient.incrementFields({encryptedCacheExpiredCount:1},n),null):(this.performanceClient.incrementFields({encryptedCacheCount:1},n),j(EH,uH,this.logger,this.performanceClient,n)(this.encryptionCookie.key,r.nonce,this.getContext(t),r.data)):(this.performanceClient.incrementFields({unencryptedCacheCount:1},n),o)}async importArray(t,n){let o=[],r=[];return t.forEach(s=>{let i=this.getItemFromEncryptedCache(s,n).then(a=>{a?(this.memoryStorage.setItem(s,a),o.push(s)):this.removeItem(s)});r.push(i)}),await Promise.all(r),o}getContext(t){let n="";return t.includes(this.clientId)&&(n=this.clientId),n}updateCache(t,n){this.logger.trace("17cxcm",n);let o=this.performanceClient.startMeasurement(xde);o.add({isBackground:!0});let{key:r,value:s,context:i}=t.data;if(!r){this.logger.error("0e10qr",n),o.end({success:!1,errorCode:"noKey"});return}if(i&&i!==this.clientId){this.logger.trace("04rtdy",n),o.end({success:!1,errorCode:"contextMismatch"});return}s?(this.memoryStorage.setItem(r,s),this.logger.verbose("1vzsgt",n)):(this.memoryStorage.removeItem(r),this.logger.verbose("04ypih",n)),o.end({success:!0})}};var II=class{constructor(){if(!window.sessionStorage)throw lb(yI)}async initialize(){}getItem(t){return window.sessionStorage.getItem(t)}getUserData(t){return this.getItem(t)}setItem(t,n){window.sessionStorage.setItem(t,n)}async setUserData(t,n){this.setItem(t,n)}removeItem(t){window.sessionStorage.removeItem(t)}getKeys(){return Object.keys(window.sessionStorage)}containsKey(t){return window.sessionStorage.hasOwnProperty(t)}decryptData(){return Promise.resolve(null)}};var et={INITIALIZE_START:"msal:initializeStart",INITIALIZE_END:"msal:initializeEnd",ACTIVE_ACCOUNT_CHANGED:"msal:activeAccountChanged",LOGIN_SUCCESS:"msal:loginSuccess",ACQUIRE_TOKEN_START:"msal:acquireTokenStart",BROKERED_REQUEST_START:"msal:brokeredRequestStart",ACQUIRE_TOKEN_SUCCESS:"msal:acquireTokenSuccess",BROKERED_REQUEST_SUCCESS:"msal:brokeredRequestSuccess",ACQUIRE_TOKEN_FAILURE:"msal:acquireTokenFailure",BROKERED_REQUEST_FAILURE:"msal:brokeredRequestFailure",ACQUIRE_TOKEN_NETWORK_START:"msal:acquireTokenFromNetworkStart",HANDLE_REDIRECT_START:"msal:handleRedirectStart",HANDLE_REDIRECT_END:"msal:handleRedirectEnd",POPUP_OPENED:"msal:popupOpened",LOGOUT_START:"msal:logoutStart",LOGOUT_SUCCESS:"msal:logoutSuccess",LOGOUT_FAILURE:"msal:logoutFailure",LOGOUT_END:"msal:logoutEnd",RESTORE_FROM_BFCACHE:"msal:restoreFromBFCache",BROKER_CONNECTION_ESTABLISHED:"msal:brokerConnectionEstablished"};var kde="@azure/msal-browser",Bs="5.6.3";function Uc(e,t){let n=e.indexOf(t);n>-1&&e.splice(n,1)}var db=class extends vm{constructor(t,n,o,r,s,i,a){super(t,o,r,s,a),this.cacheConfig=n,this.logger=r,this.internalStorage=new Nc,this.browserStorage=Ide(t,n.cacheLocation,r,s),this.temporaryCacheStorage=Ide(t,Mo.SessionStorage,r,s),this.cookieStorage=new cb,this.eventHandler=i}async initialize(t){this.performanceClient.addFields({cacheLocation:this.cacheConfig.cacheLocation,cacheRetentionDays:this.cacheConfig.cacheRetentionDays},t),await this.browserStorage.initialize(t),await this.migrateExistingCache(t),this.trackVersionChanges(t)}async migrateExistingCache(t){let n=vl(this.browserStorage),o=Hs(this.clientId,this.browserStorage);this.performanceClient.addFields({preMigrateAcntCount:n.length,preMigrateATCount:o.accessToken.length,preMigrateITCount:o.idToken.length,preMigrateRTCount:o.refreshToken.length},t);for(let s=0;s<2;s++){let i=s;await this.removeStaleAccounts(s,i,t)}for(let s=0;s<2;s++){let i=s;await this.migrateIdTokens(s,i,t)}let r=this.getKMSIValues();for(let s=0;s<2;s++)await this.migrateAccessTokens(s,r,t),await this.migrateRefreshTokens(s,r,t);n=vl(this.browserStorage),o=Hs(this.clientId,this.browserStorage),this.performanceClient.addFields({postMigrateAcntCount:n.length,postMigrateATCount:o.accessToken.length,postMigrateITCount:o.idToken.length,postMigrateRTCount:o.refreshToken.length},t)}async updateOldEntry(t,n){let o=this.browserStorage.getItem(t),r=this.validateAndParseJson(o||"");if(!r)return this.browserStorage.removeItem(t),null;if(!r.lastUpdatedAt)r.lastUpdatedAt=Date.now().toString(),this.setItem(t,JSON.stringify(r),n);else if(is.isCacheExpired(r.lastUpdatedAt,this.cacheConfig.cacheRetentionDays))return this.browserStorage.removeItem(t),this.performanceClient.incrementFields({expiredCacheRemovedCount:1},n),null;let s=ub(r)?await this.browserStorage.decryptData(t,r,n):r;return!s||!xo.isCredentialEntity(s)?(this.performanceClient.incrementFields({invalidCacheCount:1},n),null):(xo.isAccessTokenEntity(s)||xo.isRefreshTokenEntity(s))&&s.expiresOn&&is.isTokenExpired(s.expiresOn,De.DEFAULT_TOKEN_RENEWAL_OFFSET_SEC)?(this.browserStorage.removeItem(t),this.performanceClient.incrementFields({expiredCacheRemovedCount:1},n),null):s}async removeStaleAccounts(t,n,o){let r=vl(this.browserStorage,t);if(r.length!==0){for(let s of[...r]){this.performanceClient.incrementFields({oldAcntCount:1},o);let i=this.browserStorage.getItem(s),a=this.validateAndParseJson(i||"");if(!a){Uc(r,s);continue}if(a.lastUpdatedAt)is.isCacheExpired(a.lastUpdatedAt,this.cacheConfig.cacheRetentionDays)&&(await this.removeAccountOldSchema(s,a,n,o),Uc(r,s));else{a.lastUpdatedAt=Date.now().toString(),this.setItem(s,JSON.stringify(a),o);continue}}this.setAccountKeys(r,o,t)}}async removeAccountOldSchema(t,n,o,r){let i=(ub(n)?await this.browserStorage.decryptData(t,n,r):n)?.homeAccountId;if(i){let a=this.getTokenKeys(o);[...a.idToken].filter(l=>l.includes(i)).forEach(l=>{this.browserStorage.removeItem(l),Uc(a.idToken,l)}),[...a.accessToken].filter(l=>l.includes(i)).forEach(l=>{this.browserStorage.removeItem(l),Uc(a.accessToken,l)}),[...a.refreshToken].filter(l=>l.includes(i)).forEach(l=>{this.browserStorage.removeItem(l),Uc(a.refreshToken,l)}),this.setTokenKeys(a,r,o)}this.performanceClient.incrementFields({expiredAcntRemovedCount:1},r),this.browserStorage.removeItem(t)}getKMSIValues(){let t={},n=this.getTokenKeys().idToken;for(let o of n){let r=this.browserStorage.getUserData(o);if(r){let s=JSON.parse(r),i=mr.extractTokenClaims(s.secret,$o);i&&(t[s.homeAccountId]=mr.isKmsi(i))}}return t}async migrateIdTokens(t,n,o){let r=Hs(this.clientId,this.browserStorage,t);if(r.idToken.length===0)return;let s=Hs(this.clientId,this.browserStorage,2),i=vl(this.browserStorage),a=vl(this.browserStorage,n);for(let l of[...r.idToken]){this.performanceClient.incrementFields({oldITCount:1},o);let c=await this.updateOldEntry(l,o);if(!c){Uc(r.idToken,l);continue}let u=i.find(y=>y.includes(c.homeAccountId)),p=a.find(y=>y.includes(c.homeAccountId)),m=null;if(u)m=this.getAccount(u,o);else if(p){let y=this.browserStorage.getItem(p),T=this.validateAndParseJson(y||"");m=T&&ub(T)?await this.browserStorage.decryptData(p,T,o):T}if(!m){this.performanceClient.incrementFields({skipITMigrateCount:1},o);continue}let g=mr.extractTokenClaims(c.secret,$o),f=this.generateCredentialKey(c),_=this.getIdTokenCredential(f,o),h=Object.keys(g).includes("signin_state"),v=_&&Object.keys(mr.extractTokenClaims(_.secret,$o)||{}).includes("signin_state");if(!_||c.lastUpdatedAt>_.lastUpdatedAt&&(h||!v)){let y=m.tenantProfiles||[],T=ym(g)||m.realm;if(T&&!y.find(q=>q.tenantId===T)){let q=gl(m.homeAccountId,m.localAccountId,T,g);y.push(q)}m.tenantProfiles=y;let I=this.generateAccountKey(Ii.getAccountInfo(m)),E=mr.isKmsi(g);await this.setUserData(I,JSON.stringify(m),o,m.lastUpdatedAt,E),i.includes(I)||i.push(I),await this.setUserData(f,JSON.stringify(c),o,c.lastUpdatedAt,E),this.performanceClient.incrementFields({migratedITCount:1},o),s.idToken.push(f)}}this.setTokenKeys(r,o,t),this.setTokenKeys(s,o),this.setAccountKeys(i,o)}async migrateAccessTokens(t,n,o){let r=Hs(this.clientId,this.browserStorage,t);if(r.accessToken.length===0)return;let s=Hs(this.clientId,this.browserStorage,2);for(let i of[...r.accessToken]){this.performanceClient.incrementFields({oldATCount:1},o);let a=await this.updateOldEntry(i,o);if(!a){Uc(r.accessToken,i);continue}if(!(a.homeAccountId in n)){this.performanceClient.incrementFields({skipATMigrateCount:1},o);continue}let l=this.generateCredentialKey(a),c=n[a.homeAccountId];if(!s.accessToken.includes(l))await this.setUserData(l,JSON.stringify(a),o,a.lastUpdatedAt,c),this.performanceClient.incrementFields({migratedATCount:1},o),s.accessToken.push(l);else{let u=this.getAccessTokenCredential(l,o);(!u||a.lastUpdatedAt>u.lastUpdatedAt)&&(await this.setUserData(l,JSON.stringify(a),o,a.lastUpdatedAt,c),this.performanceClient.incrementFields({migratedATCount:1},o))}}this.setTokenKeys(r,o,t),this.setTokenKeys(s,o)}async migrateRefreshTokens(t,n,o){let r=Hs(this.clientId,this.browserStorage,t);if(r.refreshToken.length===0)return;let s=Hs(this.clientId,this.browserStorage,2);for(let i of[...r.refreshToken]){this.performanceClient.incrementFields({oldRTCount:1},o);let a=await this.updateOldEntry(i,o);if(!a){Uc(r.refreshToken,i);continue}if(!(a.homeAccountId in n)){this.performanceClient.incrementFields({skipRTMigrateCount:1},o);continue}let l=this.generateCredentialKey(a),c=n[a.homeAccountId];if(!s.refreshToken.includes(l))await this.setUserData(l,JSON.stringify(a),o,a.lastUpdatedAt,c),this.performanceClient.incrementFields({migratedRTCount:1},o),s.refreshToken.push(l);else{let u=this.getRefreshTokenCredential(l,o);(!u||a.lastUpdatedAt>u.lastUpdatedAt)&&(await this.setUserData(l,JSON.stringify(a),o,a.lastUpdatedAt,c),this.performanceClient.incrementFields({migratedRTCount:1},o))}}this.setTokenKeys(r,o,t),this.setTokenKeys(s,o)}trackVersionChanges(t){let n=this.browserStorage.getItem(RH);n&&(this.logger.info("1wuc87",t),this.performanceClient.addFields({previousLibraryVersion:n},t)),n!==Bs&&this.setItem(RH,Bs,t)}validateAndParseJson(t){if(!t)return null;try{let n=JSON.parse(t);return n&&typeof n=="object"?n:null}catch{return null}}setItem(t,n,o){let r=new Array(3).fill(0),s=[],i=20;for(let a=0;a<=i;a++)try{if(this.browserStorage.setItem(t,n),a>0)for(let l=0;l<=2;l++){let c=r.slice(0,l).reduce((p,m)=>p+m,0);if(c>=a)break;let u=a>c+r[l]?c+r[l]:a;a>c&&r[l]>0&&this.removeAccessTokenKeys(s.slice(c,u),o,l)}break}catch(l){let c=Bh(l);if(c.errorCode===Jx.cacheQuotaExceeded&&a0)for(let u=0;u<=2;u++){let p=i.slice(0,u).reduce((g,f)=>g+f,0);if(p>=c)break;let m=c>p+i[u]?p+i[u]:c;c>p&&i[u]>0&&this.removeAccessTokenKeys(a.slice(p,m),o,u)}break}catch(u){let p=Bh(u);if(p.errorCode===Jx.cacheQuotaExceeded&&c-1?(o.splice(r,1),this.setAccountKeys(o,n)):this.logger.trace("1dytu2",n)}removeAccount(t,n){let o=this.getActiveAccount(n);o?.homeAccountId===t.homeAccountId&&o?.environment===t.environment&&this.setActiveAccount(null,n),super.removeAccount(t,n),this.removeAccountKeyFromMap(this.generateAccountKey(t),n),this.browserStorage.getKeys().forEach(r=>{r.includes(t.homeAccountId)&&r.includes(t.environment)&&this.browserStorage.removeItem(r)})}removeIdToken(t,n){super.removeIdToken(t,n);let o=this.getTokenKeys(),r=o.idToken.indexOf(t);r>-1&&(this.logger.info("05udv9",n),o.idToken.splice(r,1),this.setTokenKeys(o,n))}removeAccessToken(t,n,o=!0){super.removeAccessToken(t,n),o&&this.removeAccessTokenKeys([t],n)}removeAccessTokenKeys(t,n,o=2){this.logger.trace("17o18n",n);let r=this.getTokenKeys(o),s=0;if(t.forEach(i=>{let a=r.accessToken.indexOf(i);a>-1&&(r.accessToken.splice(a,1),s++)}),s>0){this.logger.info("15i5d5",n),this.setTokenKeys(r,n,o);return}}removeRefreshToken(t,n){super.removeRefreshToken(t,n);let o=this.getTokenKeys(),r=o.refreshToken.indexOf(t);r>-1&&(this.logger.info("1f4fq3",n),o.refreshToken.splice(r,1),this.setTokenKeys(o,n))}getTokenKeys(t=2){return Hs(this.clientId,this.browserStorage,t)}setTokenKeys(t,n,o=2){if(t.idToken.length===0&&t.accessToken.length===0&&t.refreshToken.length===0){this.removeItem(Oc(this.clientId,o));return}else this.setItem(Oc(this.clientId,o),JSON.stringify(t),n)}getIdTokenCredential(t,n){let o=this.browserStorage.getUserData(t);if(!o)return this.logger.trace("1jukz6",n),this.removeIdToken(t,n),null;let r=this.validateAndParseJson(o);return!r||!xo.isIdTokenEntity(r)?(this.logger.trace("1jukz6",n),null):(this.logger.trace("01ju66",n),r)}async setIdTokenCredential(t,n,o){this.logger.trace("13hjll",n);let r=this.generateCredentialKey(t),s=Date.now().toString();t.lastUpdatedAt=s,await this.setUserData(r,JSON.stringify(t),n,s,o);let i=this.getTokenKeys();i.idToken.indexOf(r)===-1&&(this.logger.info("07jy92",n),i.idToken.push(r),this.setTokenKeys(i,n))}getAccessTokenCredential(t,n){let o=this.browserStorage.getUserData(t);if(!o)return this.logger.trace("0bqvx8",n),this.removeAccessTokenKeys([t],n),null;let r=this.validateAndParseJson(o);return!r||!xo.isAccessTokenEntity(r)?(this.logger.trace("0bqvx8",n),null):(this.logger.trace("1o81rl",n),r)}async setAccessTokenCredential(t,n,o){this.logger.trace("1pondb",n);let r=this.generateCredentialKey(t),s=Date.now().toString();t.lastUpdatedAt=s,await this.setUserData(r,JSON.stringify(t),n,s,o);let i=this.getTokenKeys(),a=i.accessToken.indexOf(r);a!==-1&&i.accessToken.splice(a,1),this.logger.trace("1onhey",n),i.accessToken.push(r),this.setTokenKeys(i,n)}getRefreshTokenCredential(t,n){let o=this.browserStorage.getUserData(t);if(!o)return this.logger.trace("0jlizt",n),this.removeRefreshToken(t,n),null;let r=this.validateAndParseJson(o);return!r||!xo.isRefreshTokenEntity(r)?(this.logger.trace("0jlizt",n),null):(this.logger.trace("0nokxi",n),r)}async setRefreshTokenCredential(t,n,o){this.logger.trace("0tcg8d",n);let r=this.generateCredentialKey(t),s=Date.now().toString();t.lastUpdatedAt=s,await this.setUserData(r,JSON.stringify(t),n,s,o);let i=this.getTokenKeys();i.refreshToken.indexOf(r)===-1&&(this.logger.info("0eckjs",n),i.refreshToken.push(r),this.setTokenKeys(i,n))}getAppMetadata(t,n){let o=this.browserStorage.getItem(t);if(!o)return this.logger.trace("1q101h",n),null;let r=this.validateAndParseJson(o);return!r||!xo.isAppMetadataEntity(t,r)?(this.logger.trace("1q101h",n),null):(this.logger.trace("19pvg2",n),r)}setAppMetadata(t,n){this.logger.trace("0cyma6",n);let o=xo.generateAppMetadataKey(t);this.setItem(o,JSON.stringify(t),n)}getServerTelemetry(t,n){let o=this.browserStorage.getItem(t);if(!o)return this.logger.trace("0jk19c",n),null;let r=this.validateAndParseJson(o);return!r||!xo.isServerTelemetryEntity(t,r)?(this.logger.trace("0jk19c",n),null):(this.logger.trace("12jguk",n),r)}setServerTelemetry(t,n,o){this.logger.trace("1poh61",o),this.setItem(t,JSON.stringify(n),o)}getAuthorityMetadata(t,n){let o=this.internalStorage.getItem(t);if(!o)return this.logger.trace("1r39oe",n),null;let r=this.validateAndParseJson(o);return r&&xo.isAuthorityMetadataEntity(t,r)?(this.logger.trace("1ohvk3",n),r):null}getAuthorityMetadataKeys(){return this.internalStorage.getKeys().filter(n=>this.isAuthorityMetadata(n))}setWrapperMetadata(t,n){this.internalStorage.setItem(cT.WRAPPER_SKU,t),this.internalStorage.setItem(cT.WRAPPER_VER,n)}getWrapperMetadata(){let t=this.internalStorage.getItem(cT.WRAPPER_SKU)||"",n=this.internalStorage.getItem(cT.WRAPPER_VER)||"";return[t,n]}setAuthorityMetadata(t,n,o){this.logger.trace("07w8n2",o),this.internalStorage.setItem(t,JSON.stringify(n))}getActiveAccount(t){let n=this.generateCacheKey(De.PersistentCacheKeys.ACTIVE_ACCOUNT_FILTERS),o=this.browserStorage.getItem(n);if(!o)return this.logger.trace("08gw0e",t),null;let r=this.validateAndParseJson(o);return r?(this.logger.trace("1t3ch7",t),this.getAccountInfoFilteredBy({homeAccountId:r.homeAccountId,localAccountId:r.localAccountId,tenantId:r.tenantId},t)):(this.logger.trace("0me1up",t),null)}setActiveAccount(t,n){let o=this.generateCacheKey(De.PersistentCacheKeys.ACTIVE_ACCOUNT_FILTERS);if(t){this.logger.verbose("0rsj80",n);let r={homeAccountId:t.homeAccountId,localAccountId:t.localAccountId,tenantId:t.tenantId};this.setItem(o,JSON.stringify(r),n)}else this.logger.verbose("1bp5z5",n),this.browserStorage.removeItem(o);this.eventHandler.emitEvent(et.ACTIVE_ACCOUNT_CHANGED,n)}getThrottlingCache(t,n){let o=this.browserStorage.getItem(t);if(!o)return this.logger.trace("1h4wa6",n),null;let r=this.validateAndParseJson(o);return!r||!xo.isThrottlingEntity(t,r)?(this.logger.trace("1h4wa6",n),null):(this.logger.trace("0of6n8",n),r)}setThrottlingCache(t,n,o){this.logger.trace("0wfgh6",o),this.setItem(t,JSON.stringify(n),o)}getTemporaryCache(t,n,o){let r=o?this.generateCacheKey(t):t,s=this.temporaryCacheStorage.getItem(r);if(!s){if(this.cacheConfig.cacheLocation===Mo.LocalStorage){let i=this.browserStorage.getItem(r);if(i)return this.logger.trace("1yt61y",n),i}return this.logger.trace("1qhy81",n),null}return s}setTemporaryCache(t,n,o){let r=o?this.generateCacheKey(t):t;this.temporaryCacheStorage.setItem(r,n)}removeItem(t){this.browserStorage.removeItem(t)}removeTemporaryItem(t){this.temporaryCacheStorage.removeItem(t)}getKeys(){return this.browserStorage.getKeys()}clear(t){this.removeAllAccounts(t),this.removeAppMetadata(t),this.temporaryCacheStorage.getKeys().forEach(n=>{(n.indexOf(eo)!==-1||n.indexOf(this.clientId)!==-1)&&this.removeTemporaryItem(n)}),this.browserStorage.getKeys().forEach(n=>{(n.indexOf(eo)!==-1||n.indexOf(this.clientId)!==-1)&&this.browserStorage.removeItem(n)}),this.internalStorage.clear()}generateCacheKey(t){return Fn.startsWith(t,eo)?t:`${eo}.${this.clientId}.${t}`}generateCredentialKey(t){let n=t.credentialType===De.CredentialType.REFRESH_TOKEN&&t.familyId||t.clientId,o=t.tokenType&&t.tokenType.toLowerCase()!==De.AuthenticationScheme.BEARER.toLowerCase()?t.tokenType.toLowerCase():"";return[`${eo}.${2}`,t.homeAccountId,t.environment,t.credentialType,n,t.realm||"",t.target||"",o].join(LH).toLowerCase()}generateAccountKey(t){let n=t.homeAccountId.split(".")[1];return[`${eo}.${2}`,t.homeAccountId,t.environment,n||t.tenantId||""].join(LH).toLowerCase()}resetRequestCache(t){this.logger.trace("0h0ynu",t),this.removeTemporaryItem(this.generateCacheKey(En.REQUEST_PARAMS)),this.removeTemporaryItem(this.generateCacheKey(En.VERIFIER)),this.removeTemporaryItem(this.generateCacheKey(En.ORIGIN_URI)),this.removeTemporaryItem(this.generateCacheKey(En.URL_HASH)),this.removeTemporaryItem(this.generateCacheKey(En.NATIVE_REQUEST)),this.setInteractionInProgress(!1,void 0)}cacheAuthorizeRequest(t,n,o){this.logger.trace("1tzef5",n);let r=sd(JSON.stringify(t));if(this.setTemporaryCache(En.REQUEST_PARAMS,r,!0),o){let s=sd(o);this.setTemporaryCache(En.VERIFIER,s,!0)}}getCachedRequest(t){this.logger.trace("0uen20",t);let n=this.getTemporaryCache(En.REQUEST_PARAMS,t,!0);if(!n)throw be(Due);let o=this.getTemporaryCache(En.VERIFIER,t,!0),r,s="";try{r=JSON.parse($o(n)),o&&(s=$o(o))}catch{throw this.logger.errorPii("0ewsey",t),this.logger.error("0tvdic",t),be(Nue)}return[r,s]}getCachedNativeRequest(){this.logger.trace("1yxcdm","");let t=this.getTemporaryCache(En.NATIVE_REQUEST,"",!0);if(!t)return this.logger.trace("0mnxd4",""),null;let n=this.validateAndParseJson(t);return n||(this.logger.error("0rrkip",""),null)}isInteractionInProgress(t){let n=this.getInteractionInProgress()?.clientId;return t?n===this.clientId:!!n}getInteractionInProgress(){let t=`${eo}.${En.INTERACTION_STATUS_KEY}`,n=this.getTemporaryCache(t,"",!1);try{return n?JSON.parse(n):null}catch{return this.logger.error("0jjyys",""),this.removeTemporaryItem(t),this.resetRequestCache(""),vI(window),null}}setInteractionInProgress(t,n=Sa.SIGNIN,o=!1,r=""){let s=`${eo}.${En.INTERACTION_STATUS_KEY}`;if(t){if(this.getInteractionInProgress())if(o)this.logger.warning("1pmscr",r),pde(this.logger,r),this.removeTemporaryItem(s);else throw be(Eue);this.setTemporaryCache(s,JSON.stringify({clientId:this.clientId,type:n}),!1)}else!t&&this.getInteractionInProgress()?.clientId===this.clientId&&this.removeTemporaryItem(s)}async hydrateCache(t,n){let o=xo.createIdTokenEntity(t.account.homeAccountId,t.account.environment,t.idToken,this.clientId,t.tenantId),r=xo.createAccessTokenEntity(t.account.homeAccountId,t.account.environment,t.accessToken,this.clientId,t.tenantId,t.scopes.join(" "),t.expiresOn?is.toSecondsFromDate(t.expiresOn):0,t.extExpiresOn?is.toSecondsFromDate(t.extExpiresOn):0,$o,void 0,t.tokenType,void 0,n.sshKid);n.resource&&(r.resource=n.resource);let s={idToken:o,accessToken:r};return this.saveCacheRecord(s,t.correlationId,mr.isKmsi(mr.extractTokenClaims(t.idToken,$o)),Et.hydrateCache)}async saveCacheRecord(t,n,o,r,s){try{await super.saveCacheRecord(t,n,o,r,s)}catch(i){if(i instanceof td&&this.performanceClient&&n)try{let a=this.getTokenKeys();this.performanceClient.addFields({cacheRtCount:a.refreshToken.length,cacheIdCount:a.idToken.length,cacheAtCount:a.accessToken.length},n)}catch{}throw i}}};function Ide(e,t,n,o){try{switch(t){case Mo.LocalStorage:return new kI(e,n,o);case Mo.SessionStorage:return new II;case Mo.MemoryStorage:default:break}}catch(r){n.error(r,"")}return new Nc}var Pde=(e,t,n,o)=>{let r={cacheLocation:Mo.MemoryStorage,cacheRetentionDays:5};return new db(e,r,Zu,t,n,o)};function Lde(e,t,n,o,r){return e.verbose("1yd030",o),n?t.getAllAccounts(r,o):[]}function Rde(e,t,n,o){t.trace("0u7b90",o);let r=n.getAccountInfoFilteredBy(e,o);return r?(t.verbose("0btgll",o),r):(t.verbose("0ltaj5",o),null)}function Mde(e,t,n){t.setActiveAccount(e,n)}function $de(e,t){return e.getActiveAccount(t)}var kDe="msal.broadcast.event",PI=class{constructor(t){this.eventCallbacks=new Map,this.logger=t||new vo({}),typeof BroadcastChannel<"u"&&(this.broadcastChannel=new BroadcastChannel(kDe)),this.invokeCrossTabCallbacks=this.invokeCrossTabCallbacks.bind(this)}addEventCallback(t,n,o){if(typeof window<"u"){let r=o||gT();return this.eventCallbacks.has(r)?(this.logger.error("1578i0",""),null):(this.eventCallbacks.set(r,[t,n||[]]),this.logger.verbose("1cnec4",""),r)}return null}removeEventCallback(t){this.eventCallbacks.delete(t),this.logger.verbose("12zotd","")}emitEvent(t,n,o,r,s){let i={eventType:t,interactionType:o||null,payload:r||null,error:s||null,correlationId:n,timestamp:Date.now()};switch(t){case et.LOGIN_SUCCESS:case et.LOGOUT_SUCCESS:case et.ACTIVE_ACCOUNT_CHANGED:this.broadcastChannel?.postMessage(i)}this.invokeCallbacks(i)}invokeCallbacks(t){this.eventCallbacks.forEach(([n,o],r)=>{(o.length===0||o.includes(t.eventType))&&(this.logger.verbose("15jpwk",""),n.apply(null,[t]))})}invokeCrossTabCallbacks(t){let n=t.data;this.invokeCallbacks(n)}subscribeCrossTab(){this.broadcastChannel?.addEventListener("message",this.invokeCrossTabCallbacks)}unsubscribeCrossTab(){this.broadcastChannel?.removeEventListener("message",this.invokeCrossTabCallbacks)}};var pb=class{constructor(t,n,o,r,s,i,a,l,c){this.config=t,this.browserStorage=n,this.browserCrypto=o,this.networkClient=this.config.system.networkClient,this.eventHandler=s,this.navigationClient=i,this.platformAuthProvider=c,this.correlationId=l,this.logger=r.clone(wo.MSAL_SKU,Bs),this.performanceClient=a}};function Im(e,t,n,o){n.verbose("0bd1la",o);let r=e||t||"";return Ct.getAbsoluteUrl(r,Li())}function Gn(e,t,n,o,r,s){r.verbose("1p12tq",n);let i={clientId:t,correlationId:n,apiId:e,forceRefresh:!1,wrapperSKU:o.getWrapperMetadata()[0],wrapperVer:o.getWrapperMetadata()[1]};return new Cm(i,o)}async function cs(e,t,n,o,r,s,i,a,l){let c=a&&a.hasOwnProperty("instance_aware")?a.instance_aware:void 0,u={protocolMode:e.system.protocolMode,OIDCOptions:e.auth.OIDCOptions,knownAuthorities:e.auth.knownAuthorities,cloudDiscoveryMetadata:e.auth.cloudDiscoveryMetadata,authorityMetadata:e.auth.authorityMetadata},p=s||e.auth.authority,m=c?.length?c==="true":e.auth.instanceAware,g=l&&m?e.auth.authority.replace(Ct.getDomainFromUrl(p),l.environment):p,f=$c.generateAuthority(g,i||e.auth.azureCloudOptions),_=await j(lI.createDiscoveredInstance,eue,r,n,t)(f,e.system.networkClient,o,u,r,t,n);if(l&&!_.isAlias(l.environment))throw Mt(ss.authorityMismatch);return _}async function mb(e,t,n,o,r){if(r)try{e.removeAccount(r,o),n.verbose("0s4z6h",o)}catch{n.error("0mgg1d",o)}else try{n.verbose("0zj631",o),e.clear(o),await t.clearKeystore(o)}catch{n.error("12ih0c",o)}}async function fT(e,t,n,o,r){let s=e.authority||t.auth.authority,i=[...e&&e.scopes||[]],a={...e,correlationId:e.correlationId,authority:s,scopes:i};if(!a.authenticationScheme)a.authenticationScheme=De.AuthenticationScheme.BEARER,o.verbose("1l4fwv",r);else{if(a.authenticationScheme===De.AuthenticationScheme.SSH){if(!e.sshJwk)throw Mt(ss.missingSshJwk);if(!e.sshKid)throw Mt(ss.missingSshKid)}o.verbose("1ecmns",r)}return a}async function Dde(e,t,n,o,r){let s=await j(fT,Wh,r,o,e.correlationId)(e,n,o,r,e.correlationId);return{...e,...s,account:t,forceRefresh:e.forceRefresh||!1}}function LI(e,t){let n,o=e.httpMethod;if(t===pn.EAR){if(o&&o!==De.HttpMethod.POST)throw Mt(ss.invalidRequestMethodForEAR);n=De.HttpMethod.POST}else n=o||De.HttpMethod.GET;return n}var us=class extends pb{initializeLogoutRequest(t){this.logger.verbose("0546u4",this.correlationId);let n={correlationId:this.correlationId,...t};if(t)if(t.logoutHint)this.logger.verbose("12k4l4",this.correlationId);else if(t.account){let o=this.getLogoutHintFromIdTokenClaims(t.account);o&&(this.logger.verbose("0st5di",this.correlationId),n.logoutHint=o)}else this.logger.verbose("0pdtc3",this.correlationId);else this.logger.verbose("07ndze",this.correlationId);return!t||t.postLogoutRedirectUri!==null?t&&t.postLogoutRedirectUri?(this.logger.verbose("1vamm6",n.correlationId),n.postLogoutRedirectUri=Ct.getAbsoluteUrl(t.postLogoutRedirectUri,Li())):this.config.auth.postLogoutRedirectUri===null?this.logger.verbose("15m5g7",n.correlationId):this.config.auth.postLogoutRedirectUri?(this.logger.verbose("1f4xlz",n.correlationId),n.postLogoutRedirectUri=Ct.getAbsoluteUrl(this.config.auth.postLogoutRedirectUri,Li())):(this.logger.verbose("17s5rf",n.correlationId),n.postLogoutRedirectUri=Ct.getAbsoluteUrl(Li(),Li())):this.logger.verbose("0ljv63",n.correlationId),n}getLogoutHintFromIdTokenClaims(t){let n=t.idTokenClaims;if(n){if(n.login_hint)return n.login_hint;this.logger.verbose("0mvp54",this.correlationId)}else this.logger.verbose("1e7bdp",this.correlationId);return null}async createAuthCodeClient(t){let n=await j(this.getClientConfiguration.bind(this),od,this.logger,this.performanceClient,this.correlationId)(t);return new Sm(n,this.performanceClient)}async getClientConfiguration(t){let{serverTelemetryManager:n,requestAuthority:o,requestAzureCloudOptions:r,requestExtraQueryParameters:s,account:i}=t,a=t.authority||await j(cs,xa,this.logger,this.performanceClient,this.correlationId)(this.config,this.correlationId,this.performanceClient,this.browserStorage,this.logger,o,r,s,i),l=this.config.system.loggerOptions;return{authOptions:{clientId:this.config.auth.clientId,authority:a,clientCapabilities:this.config.auth.clientCapabilities,redirectUri:this.config.auth.redirectUri,isMcp:this.config.auth.isMcp},systemOptions:{tokenRenewalOffsetSeconds:this.config.system.tokenRenewalOffsetSeconds,preventCorsPreflight:!0},loggerOptions:{loggerCallback:l.loggerCallback,piiLoggingEnabled:l.piiLoggingEnabled,logLevel:l.logLevel,correlationId:this.correlationId},cryptoInterface:this.browserCrypto,networkInterface:this.networkClient,storageInterface:this.browserStorage,serverTelemetryManager:n,libraryInfo:{sku:wo.MSAL_SKU,version:Bs,cpu:"",os:""},telemetry:this.config.telemetry}}};async function ld(e,t,n,o,r,s,i,a){let l=Im(e.redirectUri,n.auth.redirectUri,s,a);new URL(l).origin!==new URL(window.location.href).origin&&(s.warning("08qbvw",a),i.addFields({isRedirectUriCrossOrigin:!0},a));let c={interactionType:t},u=ya.setRequestState(o,e&&e.state||"",c),m={...await j(fT,Wh,s,i,a)({...e,correlationId:a},n,i,s,a),redirectUri:l,state:u,nonce:e.nonce||qs(),responseMode:n.auth.OIDCOptions.responseMode},g={...m,httpMethod:LI(m,n.system.protocolMode)};if(e.loginHint||e.sid)return g;let f=e.account||r.getActiveAccount(a);return f&&(s.verbose("1eqlb3",a),s.verbosePii("0tf99t",a),g.account=f),g}function Nde(e,t){if(!t)return null;try{return ya.parseRequestState(e.base64Decode,t).libraryState.meta}catch{throw oe(_o.invalidState)}}function Pm(e,t,n,o){let r=ki.getDeserializedResponse(e);if(!r)throw ki.stripLeadingHashOrQuery(e)?(n.error("13pl0s",o),n.errorPii("1097vx",o),be(Sue)):(n.error("18h0l1",o),be(wue));return r}function Fde(e,t,n){if(!e.state)throw be(nb);let o=Nde(t,e.state);if(!o)throw be(pI);if(o.interactionType!==n)throw be(Cue)}var gb=class{constructor(t,n,o,r,s){this.authModule=t,this.browserStorage=n,this.authCodeRequest=o,this.logger=r,this.performanceClient=s}async handleCodeResponse(t,n,o){let r;try{r=bl.getAuthorizationCodePayload(t,n.state)}catch(s){throw s instanceof ls&&s.subError===dT?be(dT):s}return j(this.handleCodeResponseFromServer.bind(this),To.HandleCodeResponseFromServer,this.logger,this.performanceClient,n.correlationId)(r,n,o)}async handleCodeResponseFromServer(t,n,o,r=!0){if(this.logger.trace("0mf2hb",n.correlationId),this.authCodeRequest.code=t.code,r&&(t.nonce=n.nonce||void 0),t.state=n.state,t.client_info)this.authCodeRequest.clientInfo=t.client_info;else{let i=this.createCcsCredentials(n);i&&(this.authCodeRequest.ccsCredential=i)}return await j(this.authModule.acquireToken.bind(this.authModule),Xce,this.logger,this.performanceClient,n.correlationId)(this.authCodeRequest,o,t)}createCcsCredentials(t){return t.account?{credential:t.account.homeAccountId,type:gr.HOME_ACCOUNT_ID}:t.loginHint?{credential:t.loginHint,type:gr.UPN}:null}};var Ode="ContentError",Ude="PageException",qde="user_switch";var Hde="USER_INTERACTION_REQUIRED",Bde="USER_CANCEL",zde="NO_NETWORK",Gde="PERSISTENT_ERROR",Vde="DISABLED",jde="ACCOUNT_UNAVAILABLE",Qde="UX_NOT_ALLOWED";var IDe=-2147186943,Ri=class e extends st{constructor(t,n,o){super(t,n||Xh(t)),Object.setPrototypeOf(this,e.prototype),this.name="NativeAuthError",this.ext=o}};function cd(e){if(e.ext&&e.ext.status&&(e.ext.status===Gde||e.ext.status===Vde)||e.ext&&e.ext.error&&e.ext.error===IDe)return!0;switch(e.errorCode){case Ode:case Ude:return!0;default:return!1}}function Lm(e,t,n){if(n&&n.status)switch(n.status){case jde:return Tm(hl.nativeAccountUnavailable,Xh(e));case Hde:return new Cn(e,t);case Bde:return be(dT);case zde:return be(pT);case Qde:return Tm(hl.uxNotAllowed)}return new Ri(e,t,n)}var fb=class extends us{async acquireToken(t){let n=Gn(Et.acquireTokenSilent_silentFlow,this.config.auth.clientId,this.correlationId,this.browserStorage,this.logger),o=await j(this.getClientConfiguration.bind(this),od,this.logger,this.performanceClient,this.correlationId)({serverTelemetryManager:n,requestAuthority:t.authority,requestAzureCloudOptions:t.azureCloudOptions,account:t.account}),r=new iT(o,this.performanceClient);this.logger.verbose("0wa871",this.correlationId);try{let i=(await j(r.acquireCachedToken.bind(r),Kce,this.logger,this.performanceClient,t.correlationId)(t))[0];return this.performanceClient.addFields({fromCache:!0},t.correlationId),i}catch(s){throw s instanceof Am&&s.errorCode===gI&&this.logger.verbose("06wena",this.correlationId),s}}logout(t){this.logger.verbose("1rkurh",this.correlationId);let n=this.initializeLogoutRequest(t);return mb(this.browserStorage,this.browserCrypto,this.logger,this.correlationId,n.account)}};var ud=class extends pb{constructor(t,n,o,r,s,i,a,l,c,u,p,m){super(t,n,o,r,s,i,l,m,c),this.apiId=a,this.accountId=u,this.platformAuthProvider=c,this.nativeStorageManager=p,this.silentCacheClient=new fb(t,this.nativeStorageManager,o,r,s,i,l,m,c);let g=this.platformAuthProvider.getExtensionName();this.skus=Cm.makeExtraSkuString({libraryName:wo.MSAL_SKU,libraryVersion:Bs,extensionName:g,extensionVersion:this.platformAuthProvider.getExtensionVersion()})}addRequestSKUs(t){t.extraParameters={...t.extraParameters,[Ec.X_CLIENT_EXTRA_SKU]:this.skus}}async acquireToken(t,n){this.logger.trace("03qeos",this.correlationId);let o=this.performanceClient.startMeasurement(cI,t.correlationId),r=is.nowSeconds(),s=Gn(this.apiId,this.config.auth.clientId,this.correlationId,this.browserStorage,this.logger);try{let i=await this.initializeNativeRequest(t);try{let l=await this.acquireTokensFromCache(this.accountId,i);return o.end({success:!0,isNativeBroker:!1,fromCache:!0}),l}catch(l){if(n===Jo.AccessToken)throw this.logger.info("0eitbc",this.correlationId),l;this.logger.info("0957j1",this.correlationId)}let a=await this.platformAuthProvider.sendMessage(i);return await this.handleNativeResponse(a,i,r).then(l=>(o.end({success:!0,isNativeBroker:!0,requestId:l.requestId}),s.clearNativeBrokerErrorCode(),l)).catch(l=>{throw o.end({success:!1,errorCode:l.errorCode,subErrorCode:l.subError,isNativeBroker:!0}),l})}catch(i){throw i instanceof Ri&&s.setNativeBrokerErrorCode(i.errorCode),i}}createSilentCacheRequest(t,n){return{authority:t.authority,correlationId:this.correlationId,scopes:yo.fromString(t.scope).asArray(),account:n,forceRefresh:!1}}async acquireTokensFromCache(t,n){if(!t)throw this.logger.warning("1ndf3e",this.correlationId),oe(_o.noAccountFound);let o=this.browserStorage.getBaseAccountInfo({nativeAccountId:t},n.correlationId);if(!o)throw oe(_o.noAccountFound);try{let r=this.createSilentCacheRequest(n,o),s=await this.silentCacheClient.acquireToken(r),i={...o,idTokenClaims:s?.idTokenClaims,idToken:s?.idToken};return{...s,account:i}}catch(r){throw r}}async acquireTokenRedirect(t,n,o){this.logger.trace("0luikq",this.correlationId);let r=await this.initializeNativeRequest(t),s=o?.navigateToLoginRequestUrl??!0;try{await this.platformAuthProvider.sendMessage(r)}catch(l){if(l instanceof Ri&&(Gn(this.apiId,this.config.auth.clientId,this.correlationId,this.browserStorage,this.logger).setNativeBrokerErrorCode(l.errorCode),cd(l)))throw l}this.browserStorage.setTemporaryCache(En.NATIVE_REQUEST,JSON.stringify(r),!0);let i={apiId:Et.acquireTokenRedirect,timeout:this.config.system.redirectNavigationTimeout,noHistory:!1},a=s?window.location.href:Im(t.redirectUri,this.config.auth.redirectUri,this.logger,this.correlationId);n.end({success:!0}),await this.navigationClient.navigateExternal(a,i)}async handleRedirectPromise(t,n){if(this.logger.trace("1c5lhw",this.correlationId),!this.browserStorage.isInteractionInProgress(!0))return this.logger.info("0le6uv",this.correlationId),null;let o=this.browserStorage.getCachedNativeRequest();if(!o)return this.logger.verbose("0a6zjb",this.correlationId),t&&n&&t?.addFields({errorCode:"no_cached_request"},n),null;let{prompt:r,...s}=o;r&&this.logger.verbose("0ac34v",this.correlationId),this.browserStorage.removeItem(this.browserStorage.generateCacheKey(En.NATIVE_REQUEST));let i=is.nowSeconds();try{this.logger.verbose("003x5a",this.correlationId);let a=await this.platformAuthProvider.sendMessage(s),l=await this.handleNativeResponse(a,s,i);return Gn(this.apiId,this.config.auth.clientId,this.correlationId,this.browserStorage,this.logger).clearNativeBrokerErrorCode(),l}catch(a){throw a}}logout(){return this.logger.trace("0u2sjm",this.correlationId),Promise.reject("Logout not implemented yet")}async handleNativeResponse(t,n,o){this.logger.trace("1bojln",this.correlationId);let r=mr.extractTokenClaims(t.id_token,$o),s=this.createHomeAccountIdentifier(t,r),i=this.browserStorage.getAccountInfoFilteredBy({nativeAccountId:n.accountId},this.correlationId)?.homeAccountId;if(n.extraParameters?.child_client_id&&t.account.id!==n.accountId)this.logger.info("1ub1in",this.correlationId);else if(s!==i&&t.account.id!==n.accountId)throw Lm(qde);let a=await cs(this.config,this.correlationId,this.performanceClient,this.browserStorage,this.logger,n.authority),l=nI(this.browserStorage,a,s,$o,this.correlationId,r,t.client_info,a.getPreferredCache(),r.tid,void 0,t.account.id,this.logger,this.performanceClient);t.expires_in=Number(t.expires_in);let c=await this.generateAuthenticationResult(t,n,r,l,a.canonicalAuthority,o);return await this.cacheAccount(l,mr.isKmsi(r)),await this.cacheNativeTokens(t,n,s,r,t.access_token,c.tenantId,o),c}createHomeAccountIdentifier(t,n){return Ii.generateHomeAccountId(t.client_info||"",Ir.Default,this.logger,this.browserCrypto,this.correlationId,n)}generateScopes(t,n){return n?yo.fromString(n):yo.fromString(t)}async generatePopAccessToken(t,n){if(n.tokenType===De.AuthenticationScheme.POP&&n.signPopToken){if(t.shr)return this.logger.trace("0coqhu",this.correlationId),t.shr;let o=new as(this.browserCrypto,this.performanceClient),r={resourceRequestMethod:n.resourceRequestMethod,resourceRequestUri:n.resourceRequestUri,shrClaims:n.shrClaims,shrNonce:n.shrNonce,correlationId:this.correlationId};if(!n.keyId)throw oe(_o.keyIdMissing);return o.signPopToken(t.access_token,n.keyId,r)}else return t.access_token}async generateAuthenticationResult(t,n,o,r,s,i){let a=this.addTelemetryFromNativeResponse(t.properties.MATS),l=this.generateScopes(n.scope,t.scope),c=t.account.properties||{},u=c.UID||o.oid||o.sub||"",p=c.TenantId||o.tid||"",m=_m(Ii.getAccountInfo(r),void 0,o,t.id_token);m.nativeAccountId!==t.account.id&&(m.nativeAccountId=t.account.id);let g=await this.generatePopAccessToken(t,n),f=n.tokenType===De.AuthenticationScheme.POP?De.AuthenticationScheme.POP:De.AuthenticationScheme.BEARER;return{authority:s,uniqueId:u,tenantId:p,scopes:l.asArray(),account:m,idToken:t.id_token,idTokenClaims:o,accessToken:g,fromCache:a?this.isResponseFromCache(a):!1,expiresOn:is.toDateFromSeconds(i+t.expires_in),tokenType:f,correlationId:this.correlationId,state:t.state,fromPlatformBroker:!0,...n.resource&&{resource:n.resource}}}async cacheAccount(t,n){await this.browserStorage.setAccount(t,this.correlationId,n,this.apiId),this.browserStorage.removeAccountContext(Ii.getAccountInfo(t),this.correlationId)}cacheNativeTokens(t,n,o,r,s,i,a){let l=xo.createIdTokenEntity(o,n.authority,t.id_token||"",n.clientId,r.tid||""),c=n.tokenType===De.AuthenticationScheme.POP?De.SHR_NONCE_VALIDITY:(typeof t.expires_in=="string"?parseInt(t.expires_in,10):t.expires_in)||0,u=a+c,p=this.generateScopes(t.scope,n.scope),m=xo.createAccessTokenEntity(o,n.authority,s,n.clientId,r.tid||i,p.printScopes(),u,0,$o,void 0,n.tokenType,void 0,n.keyId),g={idToken:l,accessToken:m};return this.nativeStorageManager.saveCacheRecord(g,this.correlationId,mr.isKmsi(r),this.apiId,n.storeInCache)}getExpiresInValue(t,n){return t===De.AuthenticationScheme.POP?De.SHR_NONCE_VALIDITY:(typeof n=="string"?parseInt(n,10):n)||0}addTelemetryFromNativeResponse(t){let n=this.getMATSFromResponse(t);return n?(this.performanceClient.addFields({extensionId:this.platformAuthProvider.getExtensionId(),extensionVersion:this.platformAuthProvider.getExtensionVersion(),matsBrokerVersion:n.broker_version,matsAccountJoinOnStart:n.account_join_on_start,matsAccountJoinOnEnd:n.account_join_on_end,matsDeviceJoin:n.device_join,matsPromptBehavior:n.prompt_behavior,matsApiErrorCode:n.api_error_code,matsUiVisible:n.ui_visible,matsSilentCode:n.silent_code,matsSilentBiSubCode:n.silent_bi_sub_code,matsSilentMessage:n.silent_message,matsSilentStatus:n.silent_status,matsHttpStatus:n.http_status,matsHttpEventCount:n.http_event_count},this.correlationId),n):null}getMATSFromResponse(t){if(t)try{return JSON.parse(t)}catch{this.logger.error("0b3l57",this.correlationId)}return null}isResponseFromCache(t){return typeof t.is_cached>"u"?(this.logger.verbose("1okqev",this.correlationId),!1):!!t.is_cached}async initializeNativeRequest(t){this.logger.trace("04j6wj",this.correlationId);let n=await this.getCanonicalAuthority(t),{scopes:o,...r}=t,s=new yo(o||[]);s.appendScopes(De.OIDC_DEFAULT_SCOPES);let i={...r,accountId:this.accountId,clientId:this.config.auth.clientId,authority:n.urlString,scope:s.printScopes(),redirectUri:Im(t.redirectUri,this.config.auth.redirectUri,this.logger,this.correlationId),prompt:this.getPrompt(t.prompt),correlationId:this.correlationId,tokenType:t.authenticationScheme,windowTitleSubstring:document.title,extraParameters:{...t.extraParameters},extendedExpiryToken:!1,keyId:t.popKid};if(i.signPopToken&&t.popKid)throw be(Que);if(this.handleExtraBrokerParams(i),i.extraParameters=i.extraParameters||{},i.extraParameters.telemetry=Pr.MATS_TELEMETRY,t.authenticationScheme===De.AuthenticationScheme.POP){let a={resourceRequestUri:t.resourceRequestUri,resourceRequestMethod:t.resourceRequestMethod,shrClaims:t.shrClaims,shrNonce:t.shrNonce,correlationId:this.correlationId},l=new as(this.browserCrypto,this.performanceClient),c;if(i.keyId)c=this.browserCrypto.base64UrlEncode(JSON.stringify({kid:i.keyId})),i.signPopToken=!1;else{let u=await j(l.generateCnf.bind(l),To.PopTokenGenerateCnf,this.logger,this.performanceClient,this.correlationId)(a,this.logger);c=u.reqCnfString,i.keyId=u.kid,i.signPopToken=!0}i.reqCnf=c}return this.addRequestSKUs(i),i}async getCanonicalAuthority(t){let n=t.authority||this.config.auth.authority,{azureCloudOptions:o,account:r}=t;r&&await cs(this.config,this.correlationId,this.performanceClient,this.browserStorage,this.logger,n,o,void 0,r);let s=new Ct(n);return s.validateAsUri(),s}getPrompt(t){switch(this.apiId){case Et.ssoSilent:case Et.acquireTokenSilent_silentFlow:return this.logger.trace("1hiwaz",this.correlationId),De.PromptValue.NONE}if(!t){this.logger.trace("1qlu04",this.correlationId);return}switch(t){case De.PromptValue.NONE:case De.PromptValue.CONSENT:case De.PromptValue.LOGIN:return this.logger.trace("1ynje4",this.correlationId),t;default:throw this.logger.trace("0nkr6q",this.correlationId),be(Vue)}}handleExtraBrokerParams(t){let n=t.extraParameters&&t.extraParameters.hasOwnProperty(Ec.BROKER_CLIENT_ID)&&t.extraParameters.hasOwnProperty(Ec.BROKER_REDIRECT_URI)&&t.extraParameters.hasOwnProperty(Ec.CLIENT_ID);if(!t.embeddedClientId&&!n)return;let o="",r=t.redirectUri;t.embeddedClientId?(t.redirectUri=this.config.auth.redirectUri,o=t.embeddedClientId):t.extraParameters&&(t.redirectUri=t.extraParameters[Ec.BROKER_REDIRECT_URI],o=t.extraParameters[Ec.CLIENT_ID]),t.extraParameters={child_client_id:o,child_redirect_uri:r},this.performanceClient?.addFields({embeddedClientId:o,embeddedRedirectUri:r},t.correlationId)}};var PDe=new Map([["e","AAD"],["m","MSA"]]);function LDe(e){if(!e)return null;try{let o=(/%(?:[0-9A-Fa-f]{2})/.test(e)?decodeURIComponent(e):e).split("|");return o.length<5?null:{accountType:PDe.get(o[0]?.trim()||"")||"",error:o[1]?.trim()||"",subError:o[2]?.trim()||"",cloudInstance:o[3]?.trim()||"",callerDataBoundary:o[4]?.trim()||""}}catch{return null}}function Yde(e,t,n){let o=LDe(e.clientdata);o?.accountType&&n.addFields({accountType:o.accountType},t),o?.error&&n.addFields({serverErrorNo:o.error},t),o?.subError&&n.addFields({serverSubErrorNo:o.subError},t)}async function $H(e,t,n,o,r){let s=bl.getStandardAuthorizeRequestParameters({...e.auth,authority:t},n,o,r);if(_n.addLibraryInfo(s,{sku:wo.MSAL_SKU,version:Bs,os:"",cpu:""}),e.system.protocolMode!==pn.OIDC&&_n.addApplicationTelemetry(s,e.telemetry.application),n.platformBroker&&(_n.addNativeBroker(s),n.authenticationScheme===De.AuthenticationScheme.POP)){let i=new yl(o,r),a=new as(i,r),l;n.popKid?l=i.encodeKid(n.popKid):l=(await j(a.generateCnf.bind(a),To.PopTokenGenerateCnf,o,r,n.correlationId)(n,o)).reqCnfString,_n.addPopToken(s,l)}return _n.instrumentBrokerParams(s,n.correlationId,r),s}async function hb(e,t,n,o,r){if(!n.codeChallenge)throw Mt(ss.pkceParamsMissing);let s=await j($H,Jce,o,r,n.correlationId)(e,t,n,o,r);return _n.addResponseType(s,De.OAuthResponseType.CODE),_n.addCodeChallengeParams(s,n.codeChallenge,De.S256_CODE_CHALLENGE_METHOD),_n.addExtraParameters(s,{...n.extraQueryParameters,...n.extraParameters}),bl.getAuthorizeUrl(t,s)}async function bb(e,t,n,o,r,s){if(!o.earJwk)throw be(fH);let i=await $H(t,n,o,r,s);_n.addResponseType(i,De.OAuthResponseType.IDTOKEN_TOKEN_REFRESHTOKEN),_n.addEARParameters(i,o.earJwk),_n.addCodeChallengeParams(i,o.codeChallenge,De.S256_CODE_CHALLENGE_METHOD),_n.addExtraParameters(i,{...o.extraParameters});let a=new Map;_n.addExtraParameters(a,o.extraQueryParameters||{}),_n.addCorrelationId(a,o.correlationId);let l=bl.getAuthorizeUrl(n,a);return Wde(e,l,i)}async function _b(e,t,n,o,r,s){let i=await $H(t,n,o,r,s);_n.addResponseType(i,De.OAuthResponseType.CODE),_n.addCodeChallengeParams(i,o.codeChallenge,o.codeChallengeMethod||De.S256_CODE_CHALLENGE_METHOD),_n.addExtraParameters(i,{...o.extraParameters});let a=new Map;_n.addExtraParameters(a,o.extraQueryParameters||{}),_n.addCorrelationId(a,o.correlationId);let l=bl.getAuthorizeUrl(n,a);return Wde(e,l,i)}function Wde(e,t,n){let o=e.createElement("form");return o.method="post",o.action=t,n.forEach((r,s)=>{let i=e.createElement("input");i.hidden=!0,i.name=s,i.value=r,o.appendChild(i)}),e.body.appendChild(o),o}async function Kde(e,t,n,o,r,s,i,a,l,c){if(a.verbose("11qcow",e.correlationId),!c)throw be(hI);let u=new yl(a,l),p=new ud(o,r,u,a,i,o.system.navigationClient,n,l,c,t,s,e.correlationId),{userRequestState:m}=ya.parseRequestState(u.base64Decode,e.state);return j(p.acquireToken.bind(p),cI,a,l,e.correlationId)({...e,state:m,prompt:void 0})}async function qc(e,t,n,o,r,s,i,a,l,c,u,p){if(Mc.removeThrottle(i,r.auth.clientId,e),Yde(t,e.correlationId,u),t.accountId)return j(Kde,aH,c,u,e.correlationId)(e,t.accountId,o,r,i,a,l,c,u,p);let m={...e,code:t.code||"",codeVerifier:n},g=new gb(s,i,m,c,u);return await j(g.handleCodeResponse.bind(g),Zce,c,u,e.correlationId)(t,e,o)}async function yb(e,t,n,o,r,s,i,a,l,c,u){if(Mc.removeThrottle(s,o.auth.clientId,e),Yde(t,e.correlationId,c),bl.validateAuthorizationResponse(t,e.state),!t.ear_jwe)throw be(Tue);if(!e.earJwk)throw be(fH);let p=JSON.parse(await j(ide,gue,l,c,e.correlationId)(e.earJwk,t.ear_jwe));if(p.accountId)return j(Kde,aH,l,c,e.correlationId)(e,p.accountId,n,o,s,i,a,l,c,u);let m=new va(o.auth.clientId,s,new yl(l,c),l,c,null,null);m.validateTokenResponse(p,e.correlationId);let g={code:"",state:e.state,nonce:e.nonce,client_info:p.client_info,cloud_graph_host_name:p.cloud_graph_host_name,cloud_instance_host_name:p.cloud_instance_host_name,cloud_instance_name:p.cloud_instance_name,msgraph_host:p.msgraph_host};return await j(m.handleServerTokenResponse.bind(m),To.HandleServerTokenResponse,l,c,e.correlationId)(p,r,is.nowSeconds(),e,n,g,void 0,void 0,void 0,void 0)}var RDe=32;async function Ca(e,t,n){let o=Xn(MDe,iue,t,e,n)(e,t,n),r=await j($De,aue,t,e,n)(o,e,t,n);return{verifier:o,challenge:r}}function MDe(e,t,n){try{let o=new Uint8Array(RDe);return Xn(nde,cue,t,e,n)(o),Pi(o)}catch{throw be(gH)}}async function $De(e,t,n,o){try{let r=await j(wH,lue,n,t,o)(e);return Pi(new Uint8Array(r))}catch{throw be(gH)}}var RI=class e{navigateInternal(t,n){return e.defaultNavigateWindow(t,n)}navigateExternal(t,n){return e.defaultNavigateWindow(t,n)}static defaultNavigateWindow(t,n){return n.noHistory?window.location.replace(t):window.location.assign(t),new Promise((o,r)=>{setTimeout(()=>{r(be(km,"failed_to_redirect"))},n.timeout)})}};var MI=class{async sendGetRequestAsync(t,n){let o,r={},s=0,i=Jde(n);try{o=await fetch(t,{method:dH.GET,headers:i})}catch(a){throw wm(be(window.navigator.onLine?Oue:pT),void 0,void 0,a)}r=Zde(o.headers);try{return s=o.status,{headers:r,body:await o.json(),status:s}}catch(a){throw wm(be(bH),s,r,a)}}async sendPostRequestAsync(t,n){let o=n&&n.body||"",r=Jde(n),s,i=0,a={};try{s=await fetch(t,{method:dH.POST,headers:r,body:o})}catch(l){throw wm(be(window.navigator.onLine?Fue:pT),void 0,void 0,l)}a=Zde(s.headers);try{return i=s.status,{headers:a,body:await s.json(),status:i}}catch(l){throw wm(be(bH),i,a,l)}}};function Jde(e){try{let t=new Headers;if(!(e&&e.headers))return t;let n=e.headers;return Object.entries(n).forEach(([o,r])=>{t.append(o,r)}),t}catch(t){throw wm(be(Yue),void 0,void 0,t)}}function Zde(e){try{let t={};return e.forEach((n,o)=>{t[o]=n}),t}catch{throw be(Wue)}}var DDe=6e4,NDe=1e4,FDe=3e4,DH=2e3;function Xde({auth:e,cache:t,system:n,experimental:o,telemetry:r},s){let i={clientId:"",authority:`${De.DEFAULT_AUTHORITY}`,knownAuthorities:[],cloudDiscoveryMetadata:"",authorityMetadata:"",redirectUri:typeof window<"u"&&window.location?window.location.href.split("?")[0].split("#")[0]:"",postLogoutRedirectUri:"",clientCapabilities:[],OIDCOptions:{responseMode:De.ResponseMode.FRAGMENT,defaultScopes:[De.OPENID_SCOPE,De.PROFILE_SCOPE,De.OFFLINE_ACCESS_SCOPE]},azureCloudOptions:{azureCloudInstance:ed.None,tenant:""},instanceAware:!1,isMcp:!1},a={cacheLocation:Mo.SessionStorage,cacheRetentionDays:5},l={loggerCallback:()=>{},logLevel:Nt.Info,piiLoggingEnabled:!1},u={...{...jk,loggerOptions:l,networkClient:s?new MI:nH,navigationClient:new RI,popupBridgeTimeout:n?.popupBridgeTimeout||DDe,iframeBridgeTimeout:n?.iframeBridgeTimeout||NDe,redirectNavigationTimeout:FDe,allowRedirectInIframe:!1,navigatePopups:!0,allowPlatformBroker:!1,nativeBrokerHandshakeTimeout:n?.nativeBrokerHandshakeTimeout||DH,protocolMode:pn.AAD},...n,loggerOptions:n?.loggerOptions||l},p={application:{appName:"",appVersion:""},client:new Lc},m={iframeTimeoutTelemetry:!1};if(n?.protocolMode!==pn.OIDC&&e?.OIDCOptions&&new vo(u.loggerOptions).warning(JSON.stringify(Mt(ss.cannotSetOIDCOptions)),""),n?.protocolMode&&n.protocolMode===pn.OIDC&&u?.allowPlatformBroker)throw Mt(ss.cannotAllowPlatformBroker);return{auth:{...i,...e,OIDCOptions:{...i.OIDCOptions,...e?.OIDCOptions}},cache:{...a,...t},system:u,experimental:{...m,...o},telemetry:{...p,...r}}}var $I=class e{constructor(t,n,o,r){this.logger=t,this.handshakeTimeoutMs=n,this.extensionId=r,this.resolvers=new Map,this.handshakeResolvers=new Map,this.messageChannel=new MessageChannel,this.windowListener=this.onWindowMessage.bind(this),this.performanceClient=o,this.handshakeEvent=o.startMeasurement(rue),this.platformAuthType=Pr.PLATFORM_EXTENSION_PROVIDER}async sendMessage(t){this.logger.trace("0on4p2",t.correlationId);let n={method:eb.GetToken,request:t},o={channel:Pr.CHANNEL_ID,extensionId:this.extensionId,responseId:qs(),body:n};this.logger.trace("1qadfi",t.correlationId),this.logger.tracePii("1xm533",t.correlationId),this.messageChannel.port1.postMessage(o);let r=await new Promise((i,a)=>{this.resolvers.set(o.responseId,{resolve:i,reject:a})});return this.validatePlatformBrokerResponse(r)}static async createProvider(t,n,o,r){t.trace("15zfnw",r);try{let s=new e(t,n,o,Pr.PREFERRED_EXTENSION_ID);return await s.sendHandshakeRequest(r),s}catch{let i=new e(t,n,o);return await i.sendHandshakeRequest(r),i}}async sendHandshakeRequest(t){this.logger.trace("1dpg9o",t),window.addEventListener("message",this.windowListener,!1);let n={channel:Pr.CHANNEL_ID,extensionId:this.extensionId,responseId:qs(),body:{method:eb.HandshakeRequest}};return this.handshakeEvent.add({extensionId:this.extensionId,extensionHandshakeTimeoutMs:this.handshakeTimeoutMs}),this.messageChannel.port1.onmessage=o=>{this.onChannelMessage(o)},window.postMessage(n,window.origin,[this.messageChannel.port2]),new Promise((o,r)=>{this.handshakeResolvers.set(n.responseId,{resolve:o,reject:r}),this.timeoutId=window.setTimeout(()=>{window.removeEventListener("message",this.windowListener,!1),this.messageChannel.port1.close(),this.messageChannel.port2.close(),this.handshakeEvent.end({extensionHandshakeTimedOut:!0,success:!1}),r(be(zue)),this.handshakeResolvers.delete(n.responseId)},this.handshakeTimeoutMs)})}onWindowMessage(t){let n=gT();if(this.logger.trace("0jpn5u",n),t.source!==window)return;let o=t.data;if(!(!o.channel||o.channel!==Pr.CHANNEL_ID)&&!(o.extensionId&&o.extensionId!==this.extensionId)&&o.body.method===eb.HandshakeRequest){let r=this.handshakeResolvers.get(o.responseId);if(!r){this.logger.trace("07buhm",n);return}this.logger.verbose(o.extensionId?"0xrkug":"No extension installed",n),clearTimeout(this.timeoutId),this.messageChannel.port1.close(),this.messageChannel.port2.close(),window.removeEventListener("message",this.windowListener,!1),this.handshakeEvent.end({success:!1,extensionInstalled:!1}),r.reject(be(Gue))}}onChannelMessage(t){let n=gT();this.logger.trace("1py8yf",n);let o=t.data,r=this.resolvers.get(o.responseId),s=this.handshakeResolvers.get(o.responseId);try{let i=o.body.method;if(i===eb.Response){if(!r)return;let a=o.body.response;if(this.logger.trace("19hpgm",n),this.logger.tracePii("179a24",n),a.status!=="Success")r.reject(Lm(a.code,a.description,a.ext));else if(a.result)a.result.code&&a.result.description?r.reject(Lm(a.result.code,a.result.description,a.result.ext)):r.resolve(a.result);else throw Oh(nd.unexpectedError,"Event does not contain result.");this.resolvers.delete(o.responseId)}else if(i===eb.HandshakeResponse){if(!s){this.logger.trace("082qnt",n);return}clearTimeout(this.timeoutId),window.removeEventListener("message",this.windowListener,!1),this.extensionId=o.extensionId,this.extensionVersion=o.body.version,this.logger.verbose("0yf5ib",n),this.handshakeEvent.end({extensionInstalled:!0,success:!0}),s.resolve(),this.handshakeResolvers.delete(o.responseId)}}catch(i){this.logger.error("0xf978",n),this.logger.errorPii("04i99o",n),this.logger.errorPii("0xdvsy",n),r?r.reject(i):s&&s.reject(i)}}validatePlatformBrokerResponse(t){if(t.hasOwnProperty("access_token")&&t.hasOwnProperty("id_token")&&t.hasOwnProperty("client_info")&&t.hasOwnProperty("account")&&t.hasOwnProperty("scope")&&t.hasOwnProperty("expires_in"))return t;throw Oh(nd.unexpectedError,"Response missing expected properties.")}getExtensionId(){return this.extensionId}getExtensionVersion(){return this.extensionVersion}getExtensionName(){return this.getExtensionId()===Pr.PREFERRED_EXTENSION_ID?"chrome":this.getExtensionId()?.length?"unknown":void 0}};var DI=class e{constructor(t,n,o){this.logger=t,this.performanceClient=n,this.correlationId=o,this.platformAuthType=Pr.PLATFORM_DOM_PROVIDER}static async createProvider(t,n,o){if(t.trace("12mj4a",o),window.navigator?.platformAuthentication&&(await window.navigator.platformAuthentication.getSupportedContracts(Pr.MICROSOFT_ENTRA_BROKERID))?.includes(Pr.PLATFORM_DOM_APIS))return t.trace("1h5q1r",o),new e(t,n,o)}getExtensionId(){return Pr.MICROSOFT_ENTRA_BROKERID}getExtensionVersion(){return""}getExtensionName(){return Pr.DOM_API_NAME}async sendMessage(t){this.logger.trace("02bcil",t.correlationId);try{let n=this.initializePlatformDOMRequest(t),o=await window.navigator.platformAuthentication.executeGetToken(n);return this.validatePlatformBrokerResponse(o,t.correlationId)}catch(n){throw this.logger.error("11im7g",t.correlationId),n}}initializePlatformDOMRequest(t){this.logger.trace("15d6yv",t.correlationId);let{accountId:n,clientId:o,authority:r,scope:s,redirectUri:i,correlationId:a,state:l,storeInCache:c,embeddedClientId:u,extraParameters:p,...m}=t,g=this.getDOMExtraParams(m,a);return{accountId:n,brokerId:this.getExtensionId(),authority:r,clientId:o,correlationId:a||this.correlationId,extraParameters:{...p,...g},isSecurityTokenService:!1,redirectUri:i,scope:s,state:l,storeInCache:c,embeddedClientId:u}}validatePlatformBrokerResponse(t,n){if(t.hasOwnProperty("isSuccess")){if(t.hasOwnProperty("accessToken")&&t.hasOwnProperty("idToken")&&t.hasOwnProperty("clientInfo")&&t.hasOwnProperty("account")&&t.hasOwnProperty("scopes")&&t.hasOwnProperty("expiresIn"))return this.logger.trace("0h4vei",n),this.convertToPlatformBrokerResponse(t,n);if(t.hasOwnProperty("error")){let o=t;if(o.isSuccess===!1&&o.error&&o.error.code)throw this.logger.trace("0g92vm",n),Lm(o.error.code,o.error.description,{error:parseInt(o.error.errorCode),protocol_error:o.error.protocolError,status:o.error.status,properties:o.error.properties})}}throw Oh(nd.unexpectedError,"Response missing expected properties.")}convertToPlatformBrokerResponse(t,n){return this.logger.trace("14913t",n),{access_token:t.accessToken,id_token:t.idToken,client_info:t.clientInfo,account:t.account,expires_in:t.expiresIn,scope:t.scopes,state:t.state||"",properties:t.properties||{},extendedLifetimeToken:t.extendedLifetimeToken??!1,shr:t.proofOfPossessionPayload}}getDOMExtraParams(t,n){try{let o={};for(let[r,s]of Object.entries(t))s&&(typeof s=="object"?o[r]=JSON.stringify(s):o[r]=String(s));return o}catch{return this.logger.error("0eu9o3",n),this.logger.errorPii("17rpl5",n),{}}}};async function epe(e,t,n,o){e.trace("134j0v",n);let r=ODe();e.trace("04c81g",n);let s;try{r&&(s=await DI.createProvider(e,t,n)),s||(e.trace("0l3na8",n),s=await $I.createProvider(e,o||DH,t,n))}catch(i){e.trace("0icbd7",i)}return s}function ODe(){let e;try{return e=window[Mo.SessionStorage],e?.getItem(Ede)==="true"}catch{return!1}}function Hc(e,t,n,o,r){if(t.trace("0uko3r",n),!e.system.allowPlatformBroker)return t.trace("04hozs",n),!1;if(!o)return t.trace("0kvv1r",n),!1;if(r)switch(r){case De.AuthenticationScheme.BEARER:case De.AuthenticationScheme.POP:return t.trace("18tev1",n),!0;default:return t.trace("1dd2nh",n),!1}return!0}var NI=class extends us{constructor(t,n,o,r,s,i,a,l,c,u){super(t,n,o,r,s,i,a,c,u),this.nativeStorage=l,this.eventHandler=s}acquireToken(t,n){let o;try{if(o={popupName:this.generatePopupName(t.scopes||De.OIDC_DEFAULT_SCOPES,t.authority||this.config.auth.authority),popupWindowAttributes:t.popupWindowAttributes||{},popupWindowParent:t.popupWindowParent??window},this.performanceClient.addFields({isAsyncPopup:!this.config.system.navigatePopups},this.correlationId),this.config.system.navigatePopups){let s={...t,httpMethod:LI(t,this.config.system.protocolMode)};return this.logger.verbose("1f9ok3",this.correlationId),o.popup=this.openSizedPopup("about:blank",o),this.acquireTokenPopupAsync(s,o,n)}else return this.logger.verbose("162h4u",this.correlationId),this.acquireTokenPopupAsync(t,o,n)}catch(r){return Promise.reject(r)}}logout(t){try{this.logger.verbose("068rup",this.correlationId);let n=this.initializeLogoutRequest(t),o={popupName:this.generateLogoutPopupName(n),popupWindowAttributes:t?.popupWindowAttributes||{},popupWindowParent:t?.popupWindowParent??window},r=t&&t.authority,s=t&&t.mainWindowRedirectUri;return this.config.system.navigatePopups?(this.logger.verbose("1a28da",this.correlationId),o.popup=this.openSizedPopup("about:blank",o),this.logoutPopupAsync(n,o,r,s)):(this.logger.verbose("1phd8u",this.correlationId),this.logoutPopupAsync(n,o,r,s))}catch(n){return Promise.reject(n)}}async acquireTokenPopupAsync(t,n,o){this.logger.verbose("1g77pg",this.correlationId);let r=await j(ld,rd,this.logger,this.performanceClient,this.correlationId)(t,Ze.Popup,this.config,this.browserCrypto,this.browserStorage,this.logger,this.performanceClient,this.correlationId);n.popup&&TI(r.authority);let s=Hc(this.config,this.logger,this.correlationId,this.platformAuthProvider,t.authenticationScheme);return r.platformBroker=s,this.config.system.protocolMode===pn.EAR?this.executeEarFlow(r,n,o):this.executeCodeFlow(r,n,o)}async executeCodeFlow(t,n,o){let r=t.correlationId,s=Gn(Et.acquireTokenPopup,this.config.auth.clientId,this.correlationId,this.browserStorage,this.logger),i=o||await j(Ca,wa,this.logger,this.performanceClient,r)(this.performanceClient,this.logger,r),a={...t,codeChallenge:i.challenge};try{let l=await j(this.createAuthCodeClient.bind(this),Ta,this.logger,this.performanceClient,r)({serverTelemetryManager:s,requestAuthority:a.authority,requestAzureCloudOptions:a.azureCloudOptions,requestExtraQueryParameters:a.extraQueryParameters,account:a.account});if(a.httpMethod===De.HttpMethod.POST)return await this.executeCodeFlowWithPost(a,n,l,i.verifier);{let c=await j(hb,To.GetAuthCodeUrl,this.logger,this.performanceClient,r)(this.config,l.authority,a,this.logger,this.performanceClient),u=this.initiateAuthRequest(c,n);this.eventHandler.emitEvent(et.POPUP_OPENED,r,Ze.Popup,{popupWindow:u},null);let p=await ad(this.config.system.popupBridgeTimeout,this.logger,this.browserCrypto,t,this.performanceClient),m=Xn(Pm,Em,this.logger,this.performanceClient,this.correlationId)(p,this.config.auth.OIDCOptions.responseMode,this.logger,this.correlationId);return await j(qc,Dc,this.logger,this.performanceClient,r)(t,m,i.verifier,Et.acquireTokenPopup,this.config,l,this.browserStorage,this.nativeStorage,this.eventHandler,this.logger,this.performanceClient,this.platformAuthProvider)}}catch(l){throw n.popup?.close(),l instanceof st&&(l.setCorrelationId(this.correlationId),s.cacheFailedRequest(l)),l}}async executeEarFlow(t,n,o){let{correlationId:r,authority:s,azureCloudOptions:i,extraQueryParameters:a,account:l}=t,c=await j(cs,xa,this.logger,this.performanceClient,r)(this.config,this.correlationId,this.performanceClient,this.browserStorage,this.logger,s,i,a,l),u=await j(ab,Zh,this.logger,this.performanceClient,r)(),p=o||await j(Ca,wa,this.logger,this.performanceClient,r)(this.performanceClient,this.logger,r),m={...t,earJwk:u,codeChallenge:p.challenge},g=n.popup||this.openPopup("about:blank",n);(await bb(g.document,this.config,c,m,this.logger,this.performanceClient)).submit();let _=await j(ad,Kh,this.logger,this.performanceClient,r)(this.config.system.popupBridgeTimeout,this.logger,this.browserCrypto,m,this.performanceClient),h=Xn(Pm,Em,this.logger,this.performanceClient,this.correlationId)(_,this.config.auth.OIDCOptions.responseMode,this.logger,this.correlationId);if(!h.ear_jwe&&h.code){let v=await j(this.createAuthCodeClient.bind(this),Ta,this.logger,this.performanceClient,r)({serverTelemetryManager:Gn(Et.acquireTokenPopup,this.config.auth.clientId,r,this.browserStorage,this.logger),requestAuthority:t.authority,requestAzureCloudOptions:t.azureCloudOptions,requestExtraQueryParameters:t.extraQueryParameters,account:t.account,authority:c});return j(qc,Dc,this.logger,this.performanceClient,r)(m,h,p.verifier,Et.acquireTokenPopup,this.config,v,this.browserStorage,this.nativeStorage,this.eventHandler,this.logger,this.performanceClient,this.platformAuthProvider)}else return j(yb,Jh,this.logger,this.performanceClient,r)(m,h,Et.acquireTokenPopup,this.config,c,this.browserStorage,this.nativeStorage,this.eventHandler,this.logger,this.performanceClient,this.platformAuthProvider)}async executeCodeFlowWithPost(t,n,o,r){let s=t.correlationId,i=await j(cs,xa,this.logger,this.performanceClient,s)(this.config,this.correlationId,this.performanceClient,this.browserStorage,this.logger),a=n.popup||this.openPopup("about:blank",n);(await _b(a.document,this.config,i,t,this.logger,this.performanceClient)).submit();let c=await j(ad,Kh,this.logger,this.performanceClient,s)(this.config.system.popupBridgeTimeout,this.logger,this.browserCrypto,t,this.performanceClient),u=Xn(Pm,Em,this.logger,this.performanceClient,this.correlationId)(c,this.config.auth.OIDCOptions.responseMode,this.logger,this.correlationId);return j(qc,Dc,this.logger,this.performanceClient,s)(t,u,r,Et.acquireTokenPopup,this.config,o,this.browserStorage,this.nativeStorage,this.eventHandler,this.logger,this.performanceClient,this.platformAuthProvider)}async logoutPopupAsync(t,n,o,r){this.logger.verbose("0b7yrk",this.correlationId),this.eventHandler.emitEvent(et.LOGOUT_START,this.correlationId,Ze.Popup,t);let s=Gn(Et.logoutPopup,this.config.auth.clientId,this.correlationId,this.browserStorage,this.logger);try{await mb(this.browserStorage,this.browserCrypto,this.logger,this.correlationId,t.account);let i=await j(this.createAuthCodeClient.bind(this),Ta,this.logger,this.performanceClient,this.correlationId)({serverTelemetryManager:s,requestAuthority:o,account:t.account||void 0});try{i.authority.endSessionEndpoint}catch{if(t.account?.homeAccountId&&t.postLogoutRedirectUri&&i.authority.protocolMode===pn.OIDC){if(this.eventHandler.emitEvent(et.LOGOUT_SUCCESS,t.correlationId,Ze.Popup,t),r){let c={apiId:Et.logoutPopup,timeout:this.config.system.redirectNavigationTimeout,noHistory:!1},u=Ct.getAbsoluteUrl(r,Li());await this.navigationClient.navigateInternal(u,c)}n.popup?.close();return}}let a=i.getLogoutUri(t);this.eventHandler.emitEvent(et.LOGOUT_SUCCESS,t.correlationId,Ze.Popup,t);let l=this.openPopup(a,n);if(this.eventHandler.emitEvent(et.POPUP_OPENED,t.correlationId,Ze.Popup,{popupWindow:l},null),await ad(this.config.system.popupBridgeTimeout,this.logger,this.browserCrypto,t,this.performanceClient).catch(()=>{}),r){let c={apiId:Et.logoutPopup,timeout:this.config.system.redirectNavigationTimeout,noHistory:!1},u=Ct.getAbsoluteUrl(r,Li());this.logger.verbose("0qcur2",this.correlationId),this.logger.verbosePii("0oj7lk",this.correlationId),await this.navigationClient.navigateInternal(u,c)}else this.logger.verbose("03zgcf",this.correlationId)}catch(i){throw n.popup?.close(),i instanceof st&&(i.setCorrelationId(this.correlationId),s.cacheFailedRequest(i)),this.eventHandler.emitEvent(et.LOGOUT_FAILURE,this.correlationId,Ze.Popup,null,i),this.eventHandler.emitEvent(et.LOGOUT_END,this.correlationId,Ze.Popup),i}this.eventHandler.emitEvent(et.LOGOUT_END,this.correlationId,Ze.Popup)}initiateAuthRequest(t,n){if(t)return this.logger.infoPii("1kcr9k",this.correlationId),this.openPopup(t,n);throw this.logger.error("1l7hyp",this.correlationId),be(tb)}openPopup(t,n){try{let o;if(n.popup?(o=n.popup,this.logger.verbosePii("0cgeo7",this.correlationId),o.location.assign(t)):typeof n.popup>"u"&&(this.logger.verbosePii("0c2awd",this.correlationId),o=this.openSizedPopup(t,n)),!o)throw be(Iue);return o.focus&&o.focus(),this.currentWindow=o,o}catch{throw this.logger.error("0dxfb9",this.correlationId),be(kue)}}openSizedPopup(t,{popupName:n,popupWindowAttributes:o,popupWindowParent:r}){let s=r.screenLeft?r.screenLeft:r.screenX,i=r.screenTop?r.screenTop:r.screenY,a=r.innerWidth||document.documentElement.clientWidth||document.body.clientWidth,l=r.innerHeight||document.documentElement.clientHeight||document.body.clientHeight,c=o.popupSize?.width,u=o.popupSize?.height,p=o.popupPosition?.top,m=o.popupPosition?.left;return(!c||c<0||c>a)&&(this.logger.verbose("08vfmo",this.correlationId),c=wo.POPUP_WIDTH),(!u||u<0||u>l)&&(this.logger.verbose("09cxa0",this.correlationId),u=wo.POPUP_HEIGHT),(!p||p<0||p>l)&&(this.logger.verbose("1qh4wo",this.correlationId),p=Math.max(0,l/2-wo.POPUP_HEIGHT/2+i)),(!m||m<0||m>a)&&(this.logger.verbose("1sz3en",this.correlationId),m=Math.max(0,a/2-wo.POPUP_WIDTH/2+s)),r.open(t,n,`width=${c}, height=${u}, top=${p}, left=${m}, scrollbars=yes`)}generatePopupName(t,n){return`${wo.POPUP_NAME_PREFIX}.${this.config.auth.clientId}.${t.join("-")}.${n}.${this.correlationId}`}generateLogoutPopupName(t){let n=t.account&&t.account.homeAccountId;return`${wo.POPUP_NAME_PREFIX}.${this.config.auth.clientId}.${n}.${this.correlationId}`}};function UDe(){if(typeof window>"u"||typeof window.performance>"u"||typeof window.performance.getEntriesByType!="function")return;let e=window.performance.getEntriesByType("navigation");return(e.length?e[0]:void 0)?.type}var FI=class extends us{constructor(t,n,o,r,s,i,a,l,c,u){super(t,n,o,r,s,i,a,c,u),this.nativeStorage=l}async acquireToken(t){let n=await j(ld,rd,this.logger,this.performanceClient,this.correlationId)(t,Ze.Redirect,this.config,this.browserCrypto,this.browserStorage,this.logger,this.performanceClient,this.correlationId);n.platformBroker=Hc(this.config,this.logger,this.correlationId,this.platformAuthProvider,t.authenticationScheme);let o=s=>{s.persisted&&(this.logger.verbose("0udvtt",this.correlationId),this.browserStorage.resetRequestCache(this.correlationId),this.eventHandler.emitEvent(et.RESTORE_FROM_BFCACHE,this.correlationId,Ze.Redirect))},r=this.getRedirectStartPage(t.redirectStartPage);this.logger.verbosePii("0zao0a",this.correlationId),this.browserStorage.setTemporaryCache(En.ORIGIN_URI,r,!0),window.addEventListener("pageshow",o);try{this.config.system.protocolMode===pn.EAR?await this.executeEarFlow(n):await this.executeCodeFlow(n)}catch(s){throw s instanceof st&&s.setCorrelationId(this.correlationId),window.removeEventListener("pageshow",o),s}}async executeCodeFlow(t){let n=t.correlationId,o=Gn(Et.acquireTokenRedirect,this.config.auth.clientId,this.correlationId,this.browserStorage,this.logger),r=await j(Ca,wa,this.logger,this.performanceClient,n)(this.performanceClient,this.logger,n),s={...t,codeChallenge:r.challenge};this.browserStorage.cacheAuthorizeRequest(s,this.correlationId,r.verifier);try{if(s.httpMethod===De.HttpMethod.POST)return await this.executeCodeFlowWithPost(s);{let i=await j(this.createAuthCodeClient.bind(this),Ta,this.logger,this.performanceClient,this.correlationId)({serverTelemetryManager:o,requestAuthority:s.authority,requestAzureCloudOptions:s.azureCloudOptions,requestExtraQueryParameters:s.extraQueryParameters,account:s.account}),a=await j(hb,To.GetAuthCodeUrl,this.logger,this.performanceClient,t.correlationId)(this.config,i.authority,s,this.logger,this.performanceClient);return await this.initiateAuthRequest(a)}}catch(i){throw i instanceof st&&(i.setCorrelationId(this.correlationId),o.cacheFailedRequest(i)),i}}async executeEarFlow(t){let{correlationId:n,authority:o,azureCloudOptions:r,extraQueryParameters:s,account:i}=t,a=await j(cs,xa,this.logger,this.performanceClient,n)(this.config,this.correlationId,this.performanceClient,this.browserStorage,this.logger,o,r,s,i),l=await j(ab,Zh,this.logger,this.performanceClient,n)(),c=await j(Ca,wa,this.logger,this.performanceClient,n)(this.performanceClient,this.logger,n),u={...t,earJwk:l,codeChallenge:c.challenge};return this.browserStorage.cacheAuthorizeRequest(u,this.correlationId,c.verifier),(await bb(document,this.config,a,u,this.logger,this.performanceClient)).submit(),new Promise((m,g)=>{setTimeout(()=>{g(be(km,"failed_to_redirect"))},this.config.system.redirectNavigationTimeout)})}async executeCodeFlowWithPost(t){let n=t.correlationId,o=await j(cs,xa,this.logger,this.performanceClient,n)(this.config,this.correlationId,this.performanceClient,this.browserStorage,this.logger);return this.browserStorage.cacheAuthorizeRequest(t,this.correlationId),(await _b(document,this.config,o,t,this.logger,this.performanceClient)).submit(),new Promise((s,i)=>{setTimeout(()=>{i(be(km,"failed_to_redirect"))},this.config.system.redirectNavigationTimeout)})}async handleRedirectPromise(t,n,o,r){let s=Gn(Et.handleRedirectPromise,this.config.auth.clientId,this.correlationId,this.browserStorage,this.logger),i=r?.navigateToLoginRequestUrl??!0;try{let[a,l]=this.getRedirectResponse(r?.hash||"");if(!a)return this.logger.info("1qmv0q",this.correlationId),this.browserStorage.resetRequestCache(this.correlationId),UDe()!=="back_forward"?o.event.errorCode="no_server_response":this.logger.verbose("1eqegq",this.correlationId),null;let c=this.browserStorage.getTemporaryCache(En.ORIGIN_URI,this.correlationId,!0)||"",u=ki.normalizeUrlForComparison(c),p=ki.normalizeUrlForComparison(window.location.href);if(u===p&&i)return this.logger.verbose("11yred",this.correlationId),c.indexOf("#")>-1&&dde(c),await this.handleResponse(a,t,n,s);if(i){if(!mT()||this.config.system.allowRedirectInIframe){this.browserStorage.setTemporaryCache(En.URL_HASH,l,!0);let m={apiId:Et.handleRedirectPromise,timeout:this.config.system.redirectNavigationTimeout,noHistory:!0},g=!0;if(!c||c==="null"){let f=mde();this.browserStorage.setTemporaryCache(En.ORIGIN_URI,f,!0),this.logger.warning("1dutq1",this.correlationId),g=await this.navigationClient.navigateInternal(f,m)}else this.logger.verbose("08jpy1",this.correlationId),g=await this.navigationClient.navigateInternal(c,m);if(!g)return await this.handleResponse(a,t,n,s)}}else return this.logger.verbose("0v4sdv",this.correlationId),await this.handleResponse(a,t,n,s);return null}catch(a){throw a instanceof st&&(a.setCorrelationId(this.correlationId),s.cacheFailedRequest(a)),a}}getRedirectResponse(t){this.logger.verbose("1c5i8m",this.correlationId);let n=t;n||(this.config.auth.OIDCOptions.responseMode===De.ResponseMode.QUERY?n=window.location.search:n=window.location.hash);let o=ki.getDeserializedResponse(n);if(o){try{Fde(o,this.browserCrypto,Ze.Redirect)}catch(s){return s instanceof st&&this.logger.error("0bkq6p",this.correlationId),[null,""]}return vI(window),this.logger.verbose("00uvho",this.correlationId),[o,n]}let r=this.browserStorage.getTemporaryCache(En.URL_HASH,this.correlationId,!0);return this.browserStorage.removeItem(this.browserStorage.generateCacheKey(En.URL_HASH)),r&&(o=ki.getDeserializedResponse(r),o)?(this.logger.verbose("001671",this.correlationId),[o,r]):[null,""]}async handleResponse(t,n,o,r){if(!t.state)throw be(nb);let{authority:i,azureCloudOptions:a,extraQueryParameters:l,account:c}=n;if(t.ear_jwe){let p=await j(cs,xa,this.logger,this.performanceClient,n.correlationId)(this.config,this.correlationId,this.performanceClient,this.browserStorage,this.logger,i,a,l,c);return j(yb,Jh,this.logger,this.performanceClient,n.correlationId)(n,t,Et.acquireTokenRedirect,this.config,p,this.browserStorage,this.nativeStorage,this.eventHandler,this.logger,this.performanceClient,this.platformAuthProvider)}let u=await j(this.createAuthCodeClient.bind(this),Ta,this.logger,this.performanceClient,this.correlationId)({serverTelemetryManager:r,requestAuthority:n.authority});return j(qc,Dc,this.logger,this.performanceClient,n.correlationId)(n,t,o,Et.acquireTokenRedirect,this.config,u,this.browserStorage,this.nativeStorage,this.eventHandler,this.logger,this.performanceClient,this.platformAuthProvider)}async initiateAuthRequest(t){if(this.logger.verbose("0yaw2e",this.correlationId),t){this.logger.infoPii("1luf83",this.correlationId);let n={apiId:Et.acquireTokenRedirect,timeout:this.config.system.redirectNavigationTimeout,noHistory:!1},o=this.config.auth.onRedirectNavigate;if(typeof o=="function")if(this.logger.verbose("1nehvl",this.correlationId),o(t)!==!1){this.logger.verbose("1a0jxh",this.correlationId),await this.navigationClient.navigateExternal(t,n);return}else{this.logger.verbose("09k5h5",this.correlationId);return}else{this.logger.verbose("0klwf7",this.correlationId),await this.navigationClient.navigateExternal(t,n);return}}else throw this.logger.info("0rlh4e",this.correlationId),be(tb)}async logout(t){this.logger.verbose("1rkurh",this.correlationId);let n=this.initializeLogoutRequest(t),o=Gn(Et.logout,this.config.auth.clientId,this.correlationId,this.browserStorage,this.logger);try{this.eventHandler.emitEvent(et.LOGOUT_START,this.correlationId,Ze.Redirect,t),await mb(this.browserStorage,this.browserCrypto,this.logger,this.correlationId,n.account);let r={apiId:Et.logout,timeout:this.config.system.redirectNavigationTimeout,noHistory:!1},s=await j(this.createAuthCodeClient.bind(this),Ta,this.logger,this.performanceClient,this.correlationId)({serverTelemetryManager:o,requestAuthority:t&&t.authority,requestExtraQueryParameters:t?.extraQueryParameters,account:t&&t.account||void 0});if(s.authority.protocolMode===pn.OIDC)try{s.authority.endSessionEndpoint}catch{if(n.account?.homeAccountId){this.eventHandler.emitEvent(et.LOGOUT_SUCCESS,this.correlationId,Ze.Redirect,n);return}}let i=s.getLogoutUri(n);n.account?.homeAccountId&&this.eventHandler.emitEvent(et.LOGOUT_SUCCESS,this.correlationId,Ze.Redirect,n);let a=this.config.auth.onRedirectNavigate;if(typeof a=="function")if(a(i)!==!1){this.logger.verbose("06v57e",this.correlationId),this.browserStorage.getInteractionInProgress()||this.browserStorage.setInteractionInProgress(!0,Sa.SIGNOUT),await this.navigationClient.navigateExternal(i,r);return}else this.browserStorage.setInteractionInProgress(!1),this.logger.verbose("0xqes1",this.correlationId);else{this.browserStorage.getInteractionInProgress()||this.browserStorage.setInteractionInProgress(!0,Sa.SIGNOUT),await this.navigationClient.navigateExternal(i,r);return}}catch(r){throw r instanceof st&&(r.setCorrelationId(this.correlationId),o.cacheFailedRequest(r)),this.eventHandler.emitEvent(et.LOGOUT_FAILURE,this.correlationId,Ze.Redirect,null,r),this.eventHandler.emitEvent(et.LOGOUT_END,this.correlationId,Ze.Redirect),r}this.eventHandler.emitEvent(et.LOGOUT_END,this.correlationId,Ze.Redirect)}getRedirectStartPage(t){let n=t||window.location.href;return Ct.getAbsoluteUrl(n,Li())}};async function tpe(e,t,n,o){if(!e)throw n.info("1l7hyp",o),be(tb);return Xn(qDe,Wce,n,t,o)(e)}async function npe(e,t,n,o,r){let s=NH();if(!s.contentDocument)throw"No document associated with iframe!";return(await _b(s.contentDocument,e,t,n,o,r)).submit(),s}async function ope(e,t,n,o,r){let s=NH();if(!s.contentDocument)throw"No document associated with iframe!";return(await bb(s.contentDocument,e,t,n,o,r)).submit(),s}function qDe(e){let t=NH();return t.src=e,t}function NH(){let e=document.createElement("iframe");return e.className="msalSilentIframe",e.style.visibility="hidden",e.style.position="absolute",e.style.width=e.style.height="0",e.style.border="0",e.setAttribute("sandbox","allow-scripts allow-same-origin allow-forms"),e.setAttribute("allow","local-network-access *"),document.body.appendChild(e),e}function FH(e){document.body===e.parentNode&&document.body.removeChild(e)}var OI=class extends us{constructor(t,n,o,r,s,i,a,l,c,u,p){super(t,n,o,r,s,i,l,u,p),this.apiId=a,this.nativeStorage=c}async acquireToken(t){!t.loginHint&&!t.sid&&(!t.account||!t.account.username)&&this.logger.warning("1kl318",this.correlationId);let n={...t};n.prompt?n.prompt!==De.PromptValue.NONE&&n.prompt!==De.PromptValue.NO_SESSION&&(this.logger.warning("0bmctg",this.correlationId),n.prompt=De.PromptValue.NONE):n.prompt=De.PromptValue.NONE;let o=await j(ld,rd,this.logger,this.performanceClient,this.correlationId)(n,Ze.Silent,this.config,this.browserCrypto,this.browserStorage,this.logger,this.performanceClient,this.correlationId);return o.platformBroker=Hc(this.config,this.logger,this.correlationId,this.platformAuthProvider,o.authenticationScheme),TI(o.authority),this.config.system.protocolMode===pn.EAR?this.executeEarFlow(o):this.executeCodeFlow(o)}async executeCodeFlow(t){let n,o=Gn(this.apiId,this.config.auth.clientId,this.correlationId,this.browserStorage,this.logger);try{return n=await j(this.createAuthCodeClient.bind(this),Ta,this.logger,this.performanceClient,t.correlationId)({serverTelemetryManager:o,requestAuthority:t.authority,requestAzureCloudOptions:t.azureCloudOptions,requestExtraQueryParameters:t.extraQueryParameters,account:t.account}),await j(this.silentTokenHelper.bind(this),iH,this.logger,this.performanceClient,t.correlationId)(n,t)}catch(r){if(r instanceof st&&(r.setCorrelationId(this.correlationId),o.cacheFailedRequest(r)),!n||!(r instanceof st)||r.errorCode!==wo.INVALID_GRANT_ERROR)throw r;return this.performanceClient.addFields({retryError:r.errorCode},this.correlationId),await j(this.silentTokenHelper.bind(this),iH,this.logger,this.performanceClient,this.correlationId)(n,t)}}async executeEarFlow(t){let{correlationId:n,authority:o,azureCloudOptions:r,extraQueryParameters:s,account:i}=t,a=await j(cs,xa,this.logger,this.performanceClient,n)(this.config,this.correlationId,this.performanceClient,this.browserStorage,this.logger,o,r,s,i),l=await j(ab,Zh,this.logger,this.performanceClient,n)(),c=await j(Ca,wa,this.logger,this.performanceClient,n)(this.performanceClient,this.logger,n),u={...t,earJwk:l,codeChallenge:c.challenge},p=await j(ope,uI,this.logger,this.performanceClient,n)(this.config,a,u,this.logger,this.performanceClient),m=this.config.auth.OIDCOptions.responseMode,g;try{g=await j(ad,Kh,this.logger,this.performanceClient,n)(this.config.system.iframeBridgeTimeout,this.logger,this.browserCrypto,t,this.performanceClient,this.config.experimental)}finally{Xn(FH,lH,this.logger,this.performanceClient,n)(p)}let f=Xn(Pm,Em,this.logger,this.performanceClient,n)(g,m,this.logger,this.correlationId);if(!f.ear_jwe&&f.code){let _=await j(this.createAuthCodeClient.bind(this),Ta,this.logger,this.performanceClient,n)({serverTelemetryManager:Gn(this.apiId,this.config.auth.clientId,n,this.browserStorage,this.logger),requestAuthority:t.authority,requestAzureCloudOptions:t.azureCloudOptions,requestExtraQueryParameters:t.extraQueryParameters,account:t.account,authority:a});return j(qc,Dc,this.logger,this.performanceClient,n)(u,f,c.verifier,this.apiId,this.config,_,this.browserStorage,this.nativeStorage,this.eventHandler,this.logger,this.performanceClient,this.platformAuthProvider)}else return j(yb,Jh,this.logger,this.performanceClient,n)(u,f,this.apiId,this.config,a,this.browserStorage,this.nativeStorage,this.eventHandler,this.logger,this.performanceClient,this.platformAuthProvider)}logout(){return Promise.reject(be(ob))}async silentTokenHelper(t,n){let o=n.correlationId,r=await j(Ca,wa,this.logger,this.performanceClient,o)(this.performanceClient,this.logger,o),s={...n,codeChallenge:r.challenge},i;if(n.httpMethod===De.HttpMethod.POST)i=await j(npe,uI,this.logger,this.performanceClient,o)(this.config,t.authority,s,this.logger,this.performanceClient);else{let u=await j(hb,To.GetAuthCodeUrl,this.logger,this.performanceClient,o)(this.config,t.authority,s,this.logger,this.performanceClient);i=await j(tpe,uI,this.logger,this.performanceClient,o)(u,this.performanceClient,this.logger,o)}let a=this.config.auth.OIDCOptions.responseMode,l;try{l=await j(ad,Kh,this.logger,this.performanceClient,o)(this.config.system.iframeBridgeTimeout,this.logger,this.browserCrypto,n,this.performanceClient,this.config.experimental)}finally{Xn(FH,lH,this.logger,this.performanceClient,o)(i)}let c=Xn(Pm,Em,this.logger,this.performanceClient,o)(l,a,this.logger,this.correlationId);return j(qc,Dc,this.logger,this.performanceClient,o)(n,c,r.verifier,this.apiId,this.config,t,this.browserStorage,this.nativeStorage,this.eventHandler,this.logger,this.performanceClient,this.platformAuthProvider)}};var UI=class extends us{async acquireToken(t){let n=await j(fT,Wh,this.logger,this.performanceClient,t.correlationId)(t,this.config,this.performanceClient,this.logger,this.correlationId),o={...t,...n};t.redirectUri&&(o.redirectUri=Im(t.redirectUri,this.config.auth.redirectUri,this.logger,this.correlationId));let r=Gn(Et.acquireTokenSilent_silentFlow,this.config.auth.clientId,this.correlationId,this.browserStorage,this.logger),s=await this.createRefreshTokenClient({serverTelemetryManager:r,authorityUrl:o.authority,azureCloudOptions:o.azureCloudOptions,account:o.account});return j(s.acquireTokenByRefreshToken.bind(s),jce,this.logger,this.performanceClient,t.correlationId)(o,Et.acquireTokenSilent_silentFlow).catch(i=>{throw i.setCorrelationId(this.correlationId),r.cacheFailedRequest(i),i})}logout(){return Promise.reject(be(ob))}async createRefreshTokenClient(t){let n=await j(this.getClientConfiguration.bind(this),od,this.logger,this.performanceClient,this.correlationId)({serverTelemetryManager:t.serverTelemetryManager,requestAuthority:t.authorityUrl,requestAzureCloudOptions:t.azureCloudOptions,requestExtraQueryParameters:t.extraQueryParameters,account:t.account});return new sT(n,this.performanceClient)}};var qI=class extends Sm{constructor(t,n){super(t,n),this.includeRedirectUri=!1}};var HI=class extends us{constructor(t,n,o,r,s,i,a,l,c,u){super(t,n,o,r,s,i,l,c,u),this.apiId=a}async acquireToken(t){if(!t.code)throw be(Uue);let n=await j(ld,rd,this.logger,this.performanceClient,this.correlationId)(t,Ze.Silent,this.config,this.browserCrypto,this.browserStorage,this.logger,this.performanceClient,this.correlationId),o=Gn(this.apiId,this.config.auth.clientId,this.correlationId,this.browserStorage,this.logger);try{let r={...n,code:t.code},s=await j(this.getClientConfiguration.bind(this),od,this.logger,this.performanceClient,this.correlationId)({serverTelemetryManager:o,requestAuthority:n.authority,requestAzureCloudOptions:n.azureCloudOptions,requestExtraQueryParameters:n.extraQueryParameters,account:n.account}),i=new qI(s,this.performanceClient);this.logger.verbose("1uic5e",this.correlationId);let a=new gb(i,this.browserStorage,r,this.logger,this.performanceClient);return await j(a.handleCodeResponseFromServer.bind(a),To.HandleCodeResponseFromServer,this.logger,this.performanceClient,this.correlationId)({code:t.code,msgraph_host:t.msGraphHost,cloud_graph_host_name:t.cloudGraphHostName,cloud_instance_host_name:t.cloudInstanceHostName},n,this.apiId,!1)}catch(r){throw r instanceof st&&(r.setCorrelationId(this.correlationId),o.cacheFailedRequest(r)),r}}logout(){return Promise.reject(be(ob))}};function rpe(e,t,n,o){let r=window.msal?.clientIds||[],s=r.length,i=r.filter(a=>a===e).length;i>1&&n.warning("1e88vg",o),t.add({msalInstanceCount:s,sameClientIdInstanceCount:i})}function BI(e,t,n,o){try{xI(e),aT(n.auth.isMcp,o)}catch(r){throw t.end({success:!1},r,o.account),r}}var zI=class e{constructor(t){this.operatingContext=t,this.isBrowserEnvironment=this.operatingContext.isBrowserEnvironment(),this.config=t.getConfig(),this.initialized=!1,this.logger=this.operatingContext.getLogger(),this.networkClient=this.config.system.networkClient,this.navigationClient=this.config.system.navigationClient,this.redirectResponse=new Map,this.hybridAuthCodeResponses=new Map,this.performanceClient=this.config.telemetry.client,this.browserCrypto=this.isBrowserEnvironment?new yl(this.logger,this.performanceClient):Zu,this.eventHandler=new PI(this.logger),this.browserStorage=this.isBrowserEnvironment?new db(this.config.auth.clientId,this.config.cache,this.browserCrypto,this.logger,this.performanceClient,this.eventHandler,eH(this.config.auth)):Pde(this.config.auth.clientId,this.logger,this.performanceClient,this.eventHandler);let n={cacheLocation:Mo.MemoryStorage,cacheRetentionDays:5};this.nativeInternalStorage=new db(this.config.auth.clientId,n,this.browserCrypto,this.logger,this.performanceClient,this.eventHandler),this.activeSilentTokenRequests=new Map,this.trackStateChange=this.trackStateChange.bind(this),this.trackStateChangeWithMeasurement=this.trackStateChangeWithMeasurement.bind(this)}static async createController(t,n){let o=new e(t);return await o.initialize(n),o}trackStateChange(t,n){t&&(n.type==="visibilitychange"?(this.logger.info("16v6hv",t),this.performanceClient.incrementFields({visibilityChangeCount:1},t)):n.type==="online"?(this.logger.info("0zirfd",t),this.performanceClient.incrementFields({onlineStatusChangeCount:1},t)):n.type==="offline"&&(this.logger.info("1xk9ef",t),this.performanceClient.incrementFields({onlineStatusChangeCount:1},t)))}async initialize(t){let n=this.getRequestCorrelationId(t);if(this.logger.trace("1f7joy",n),this.initialized){this.logger.info("061m5x",n);return}if(!this.isBrowserEnvironment){this.logger.info("19fvpi",n),this.initialized=!0,this.eventHandler.emitEvent(et.INITIALIZE_END,n);return}let o=this.config.system.allowPlatformBroker,r=this.performanceClient.startMeasurement(vde,n);if(this.eventHandler.emitEvent(et.INITIALIZE_START,n),this.logMultipleInstances(r,n),r.add({isMcp:this.config.auth.isMcp}),await j(this.browserStorage.initialize.bind(this.browserStorage),Yce,this.logger,this.performanceClient,n)(n),o)try{this.platformAuthProvider=await epe(this.logger,this.performanceClient,n,this.config.system.nativeBrokerHandshakeTimeout)}catch(s){this.logger.verbose(s,n)}this.config.cache.cacheLocation===Mo.LocalStorage&&this.eventHandler.subscribeCrossTab(),!this.config.system.navigatePopups&&await this.preGeneratePkceCodes(n),this.initialized=!0,this.eventHandler.emitEvent(et.INITIALIZE_END,n),r.end({allowPlatformBroker:o,success:!0})}async handleRedirectPromise(t){if(this.logger.verbose("02l8bm",""),IH(this.initialized),this.isBrowserEnvironment){let n=t?.hash||"",o=this.redirectResponse.get(n);return typeof o>"u"?(o=this.handleRedirectPromiseInternal(t),this.redirectResponse.set(n,o),this.logger.verbose("1wn9kp","")):this.logger.verbose("0w0gm3",""),o}return this.logger.verbose("12xi63",""),null}async handleRedirectPromiseInternal(t){if(!this.browserStorage.isInteractionInProgress(!0))return this.logger.info("0le6uv",""),null;if(this.browserStorage.getInteractionInProgress()?.type===Sa.SIGNOUT)return this.logger.verbose("1ywcv2",""),this.browserStorage.setInteractionInProgress(!1),Promise.resolve(null);let o=this.getAllAccounts(),r=this.browserStorage.getCachedNativeRequest(),s=r&&this.platformAuthProvider&&!t?.hash,i,a;try{if(s&&this.platformAuthProvider){let l=r?.correlationId||"";this.eventHandler.emitEvent(et.HANDLE_REDIRECT_START,l,Ze.Redirect),i=this.performanceClient.startMeasurement(CI,l),this.logger.trace("12v7is",l);let c=new ud(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,Et.handleRedirectPromise,this.performanceClient,this.platformAuthProvider,r.accountId,this.nativeInternalStorage,r.correlationId);a=j(c.handleRedirectPromise.bind(c),oue,this.logger,this.performanceClient,i.event.correlationId)(this.performanceClient,i.event.correlationId)}else{let[l,c]=this.browserStorage.getCachedRequest(""),u=l.correlationId;this.eventHandler.emitEvent(et.HANDLE_REDIRECT_START,u,Ze.Redirect),i=this.performanceClient.startMeasurement(CI,u),this.logger.trace("0znzs5",u);let p=this.createRedirectClient(u);a=j(p.handleRedirectPromise.bind(p),nue,this.logger,this.performanceClient,i.event.correlationId)(l,c,i,t)}}catch(l){throw this.browserStorage.resetRequestCache(""),l}return a.then(l=>(l?(this.browserStorage.resetRequestCache(l.correlationId),this.eventHandler.emitEvent(et.ACQUIRE_TOKEN_SUCCESS,l.correlationId,Ze.Redirect,l),this.logger.verbose("0ui8f5",l.correlationId),o.length{this.browserStorage.resetRequestCache(i.event.correlationId);let c=l;throw this.eventHandler.emitEvent(et.ACQUIRE_TOKEN_FAILURE,i.event.correlationId,Ze.Redirect,null,c),this.eventHandler.emitEvent(et.HANDLE_REDIRECT_END,i.event.correlationId,Ze.Redirect),i.end({success:!1},c),l})}async acquireTokenRedirect(t){let n=this.getRequestCorrelationId(t);this.logger.verbose("0os66p",n);let o=this.performanceClient.startMeasurement(_de,n);o.add({scenarioId:t.scenarioId});let r=this.config.auth.onRedirectNavigate;this.config.auth.onRedirectNavigate=s=>{let i=typeof r=="function"?r(s):void 0;return o.add({navigateCallbackResult:i!==!1}),o.event=o.end({success:!0},void 0,t.account)||o.event,i};try{PH(this.initialized,this.config),aT(this.config.auth.isMcp,t),this.browserStorage.setInteractionInProgress(!0,Sa.SIGNIN),this.eventHandler.emitEvent(et.ACQUIRE_TOKEN_START,n,Ze.Redirect,t);let s;return this.platformAuthProvider&&this.canUsePlatformBroker(t)?s=new ud(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,Et.acquireTokenRedirect,this.performanceClient,this.platformAuthProvider,this.getNativeAccountId(t),this.nativeInternalStorage,n).acquireTokenRedirect(t,o).catch(a=>{if(a instanceof Ri&&cd(a))return this.platformAuthProvider=void 0,this.createRedirectClient(n).acquireToken(t);if(a instanceof Cn)return this.logger.verbose("1ipyz4",n),this.createRedirectClient(n).acquireToken(t);throw a}):s=this.createRedirectClient(n).acquireToken(t),await s}catch(s){throw this.browserStorage.resetRequestCache(n),o.event.status===2?this.performanceClient.startMeasurement(CI,n).end({success:!1},s,t.account):o.end({success:!1},s,t.account),this.eventHandler.emitEvent(et.ACQUIRE_TOKEN_FAILURE,n,Ze.Redirect,null,s),s}}acquireTokenPopup(t){let n=this.getRequestCorrelationId(t),o=this.performanceClient.startMeasurement(bde,n);o.add({scenarioId:t.scenarioId});try{this.logger.verbose("0ch87b",n),BI(this.initialized,o,this.config,t),this.browserStorage.setInteractionInProgress(!0,Sa.SIGNIN,t.overrideInteractionInProgress,n)}catch(a){return Promise.reject(a)}let r=this.getAllAccounts();this.eventHandler.emitEvent(et.ACQUIRE_TOKEN_START,n,Ze.Popup,t);let s,i=this.getPreGeneratedPkceCodes(n);return this.canUsePlatformBroker(t)?s=this.acquireTokenNative({...t,correlationId:n},Et.acquireTokenPopup).then(a=>(o.end({success:!0,isNativeBroker:!0},void 0,a.account),a)).catch(a=>{if(a instanceof Ri&&cd(a))return this.platformAuthProvider=void 0,this.createPopupClient(n).acquireToken(t,i);if(a instanceof Cn)return this.logger.verbose("0yy5fw",n),this.createPopupClient(n).acquireToken(t,i);throw a}):s=this.createPopupClient(n).acquireToken(t,i),s.then(a=>{let l=r.length(this.eventHandler.emitEvent(et.ACQUIRE_TOKEN_FAILURE,n,Ze.Popup,null,a),o.end({success:!1},a,t.account),Promise.reject(a))).finally(async()=>{this.browserStorage.setInteractionInProgress(!1),this.config.system.navigatePopups||await this.preGeneratePkceCodes(n)})}trackStateChangeWithMeasurement(t){let n=this.ssoSilentMeasurement||this.acquireTokenByCodeAsyncMeasurement;n&&(t.type==="visibilitychange"?(this.logger.info("0yzimq",n.event.correlationId),n.increment({visibilityChangeCount:1})):t.type==="online"?(this.logger.info("1caf53",n.event.correlationId),n.increment({onlineStatusChangeCount:1})):t.type==="offline"&&(this.logger.info("0fdyk7",n.event.correlationId),n.increment({onlineStatusChangeCount:1})))}addStateChangeListeners(t){document.addEventListener("visibilitychange",t),window.addEventListener("online",t),window.addEventListener("offline",t)}removeStateChangeListeners(t){document.removeEventListener("visibilitychange",t),window.removeEventListener("online",t),window.removeEventListener("offline",t)}async ssoSilent(t){let n=this.getRequestCorrelationId(t),o={...t,prompt:t.prompt,correlationId:n};this.ssoSilentMeasurement=this.performanceClient.startMeasurement(yde,n),this.ssoSilentMeasurement?.add({scenarioId:t.scenarioId}),BI(this.initialized,this.ssoSilentMeasurement,this.config,o),this.ssoSilentMeasurement?.increment({visibilityChangeCount:0,onlineStatusChangeCount:0}),this.addStateChangeListeners(this.trackStateChangeWithMeasurement);let r=this.getAllAccounts();this.logger.verbose("0w1b45",n),this.eventHandler.emitEvent(et.ACQUIRE_TOKEN_START,n,Ze.Silent,o);let s;return this.canUsePlatformBroker(o)?s=this.acquireTokenNative(o,Et.ssoSilent).catch(i=>{if(i instanceof Ri&&cd(i))return this.platformAuthProvider=void 0,this.createSilentIframeClient(o.correlationId).acquireToken(o);throw i}):s=this.createSilentIframeClient(o.correlationId).acquireToken(o),s.then(i=>{let a=r.length{throw this.eventHandler.emitEvent(et.ACQUIRE_TOKEN_FAILURE,n,Ze.Silent,null,i),this.ssoSilentMeasurement?.end({success:!1},i,t.account),i}).finally(()=>{this.removeStateChangeListeners(this.trackStateChangeWithMeasurement)})}async acquireTokenByCode(t){let n=this.getRequestCorrelationId(t);this.logger.trace("0ch6ga",n);let o=this.performanceClient.startMeasurement(hde,n);BI(this.initialized,o,this.config,t),this.eventHandler.emitEvent(et.ACQUIRE_TOKEN_START,n,Ze.Silent,t),o.add({scenarioId:t.scenarioId});try{if(t.code&&t.nativeAccountId)throw be(Hue);if(t.code){let r=t.code,s=this.hybridAuthCodeResponses.get(r);return s?(this.logger.verbose("0qgp28",n),o.discard()):(this.logger.verbose("06eh73",n),s=this.acquireTokenByCodeAsync({...t,correlationId:n}).then(i=>(this.eventHandler.emitEvent(et.ACQUIRE_TOKEN_SUCCESS,n,Ze.Silent,i),this.hybridAuthCodeResponses.delete(r),o.end({success:!0,isNativeBroker:i.fromPlatformBroker,accessTokenSize:i.accessToken.length,idTokenSize:i.idToken.length},void 0,i.account),i)).catch(i=>{throw this.hybridAuthCodeResponses.delete(r),this.eventHandler.emitEvent(et.ACQUIRE_TOKEN_FAILURE,n,Ze.Silent,null,i),o.end({success:!1},i),i}),this.hybridAuthCodeResponses.set(r,s)),await s}else if(t.nativeAccountId)if(this.canUsePlatformBroker(t,t.nativeAccountId)){let r=await this.acquireTokenNative({...t,correlationId:n},Et.acquireTokenByCode,t.nativeAccountId).catch(s=>{throw s instanceof Ri&&cd(s)&&(this.platformAuthProvider=void 0),s});return o.end({success:!0},void 0,r.account),r}else throw be(Bue);else throw be(que)}catch(r){throw this.eventHandler.emitEvent(et.ACQUIRE_TOKEN_FAILURE,n,Ze.Silent,null,r),o.end({success:!1},r),r}}async acquireTokenByCodeAsync(t){let n=this.getRequestCorrelationId(t);return this.logger.trace("10d9hy",n),this.acquireTokenByCodeAsyncMeasurement=this.performanceClient.startMeasurement(tue,n),this.acquireTokenByCodeAsyncMeasurement?.increment({visibilityChangeCount:0,onlineStatusChangeCount:0}),this.addStateChangeListeners(this.trackStateChangeWithMeasurement),await this.createSilentAuthCodeClient(n).acquireToken(t).then(s=>(this.acquireTokenByCodeAsyncMeasurement?.end({success:!0,fromCache:s.fromCache,isNativeBroker:s.fromPlatformBroker}),s)).catch(s=>{throw this.acquireTokenByCodeAsyncMeasurement?.end({success:!1},s),s}).finally(()=>{this.removeStateChangeListeners(this.trackStateChangeWithMeasurement)})}async acquireTokenFromCache(t,n){switch(n){case Jo.Default:case Jo.AccessToken:case Jo.AccessTokenAndRefreshToken:let o=this.createSilentCacheClient(t.correlationId);return j(o.acquireToken.bind(o),Bce,this.logger,this.performanceClient,t.correlationId)(t);default:throw oe(_o.tokenRefreshRequired)}}async acquireTokenByRefreshToken(t,n){switch(n){case Jo.Default:case Jo.AccessTokenAndRefreshToken:case Jo.RefreshToken:case Jo.RefreshTokenAndNetwork:let o=this.createSilentRefreshClient(t.correlationId);return j(o.acquireToken.bind(o),Vce,this.logger,this.performanceClient,t.correlationId)(t);default:throw oe(_o.tokenRefreshRequired)}}async acquireTokenBySilentIframe(t){let n=this.createSilentIframeClient(t.correlationId);return j(n.acquireToken.bind(n),zce,this.logger,this.performanceClient,t.correlationId)(t)}async logoutRedirect(t){let n=this.getRequestCorrelationId(t);return PH(this.initialized,this.config),this.browserStorage.setInteractionInProgress(!0,Sa.SIGNOUT),this.createRedirectClient(n).logout(t)}logoutPopup(t){try{let n=this.getRequestCorrelationId(t);return xI(this.initialized),this.browserStorage.setInteractionInProgress(!0,Sa.SIGNOUT),this.createPopupClient(n).logout(t).finally(()=>{this.browserStorage.setInteractionInProgress(!1)})}catch(n){return Promise.reject(n)}}async clearCache(t){if(!this.isBrowserEnvironment)return;let n=this.getRequestCorrelationId(t);return this.createSilentCacheClient(n).logout(t)}getAllAccounts(t){return Lde(this.logger,this.browserStorage,this.isBrowserEnvironment,this.getRequestCorrelationId(),t)}getAccount(t){return Rde(t,this.logger,this.browserStorage,this.getRequestCorrelationId())}setActiveAccount(t){Mde(t,this.browserStorage,this.getRequestCorrelationId())}getActiveAccount(){return $de(this.browserStorage,this.getRequestCorrelationId())}async hydrateCache(t,n){this.logger.verbose("16jycr",t.correlationId);let o=Ii.createAccountEntityFromAccountInfo(t.account,t.cloudGraphHostName,t.msGraphHost);return await this.browserStorage.setAccount(o,t.correlationId,mr.isKmsi(t.idTokenClaims),Et.hydrateCache),t.fromPlatformBroker?(this.logger.verbose("1fxyu8",t.correlationId),this.nativeInternalStorage.hydrateCache(t,n)):this.browserStorage.hydrateCache(t,n)}async acquireTokenNative(t,n,o,r){let s=this.getRequestCorrelationId(t);if(this.logger.trace("0b9y3p",s),!this.platformAuthProvider)throw be(hI);return new ud(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,n,this.performanceClient,this.platformAuthProvider,o||this.getNativeAccountId(t),this.nativeInternalStorage,s).acquireToken(t,r)}canUsePlatformBroker(t,n){let o=this.getRequestCorrelationId(t);if(this.logger.trace("1n9lbl",o),!this.platformAuthProvider)return this.logger.trace("0vnu11",o),!1;if(!Hc(this.config,this.logger,o,this.platformAuthProvider,t.authenticationScheme))return this.logger.trace("1m4bzf",o),!1;if(t.prompt)switch(t.prompt){case De.PromptValue.NONE:case De.PromptValue.CONSENT:case De.PromptValue.LOGIN:this.logger.trace("0vdv8e",o);break;default:return this.logger.trace("0pdzw6",o),!1}return!n&&!this.getNativeAccountId(t)?(this.logger.trace("16lbtk",o),!1):!0}getNativeAccountId(t){let n=t.account||this.getAccount({loginHint:t.loginHint,sid:t.sid})||this.getActiveAccount();return n&&n.nativeAccountId||""}createPopupClient(t){return new NI(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,this.performanceClient,this.nativeInternalStorage,t,this.platformAuthProvider)}createRedirectClient(t){return new FI(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,this.performanceClient,this.nativeInternalStorage,t,this.platformAuthProvider)}createSilentIframeClient(t){return new OI(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,Et.ssoSilent,this.performanceClient,this.nativeInternalStorage,t,this.platformAuthProvider)}createSilentCacheClient(t){return new fb(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,this.performanceClient,t,this.platformAuthProvider)}createSilentRefreshClient(t){return new UI(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,this.performanceClient,t,this.platformAuthProvider)}createSilentAuthCodeClient(t){return new HI(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,Et.acquireTokenByCode,this.performanceClient,t,this.platformAuthProvider)}addEventCallback(t,n){return this.eventHandler.addEventCallback(t,n)}removeEventCallback(t){this.eventHandler.removeEventCallback(t)}addPerformanceCallback(t){return kH(),this.performanceClient.addPerformanceCallback(t)}removePerformanceCallback(t){return this.performanceClient.removePerformanceCallback(t)}getLogger(){return this.logger}setLogger(t){this.logger=t}initializeWrapperLibrary(t,n){this.browserStorage.setWrapperMetadata(t,n)}setNavigationClient(t){this.navigationClient=t}getConfiguration(){return this.config}getPerformanceClient(){return this.performanceClient}isBrowserEnv(){return this.isBrowserEnvironment}getRequestCorrelationId(t){return t?.correlationId?t.correlationId:this.isBrowserEnvironment?qs():""}async loginRedirect(t){let n=this.getRequestCorrelationId(t);return this.logger.verbose("0lz9hf",n),this.acquireTokenRedirect({correlationId:n,...t||pH})}loginPopup(t){let n=this.getRequestCorrelationId(t);return this.logger.verbose("0qw7v5",n),this.acquireTokenPopup({correlationId:n,...t||pH})}async acquireTokenSilent(t){let n=this.getRequestCorrelationId(t),o=this.performanceClient.startMeasurement(fde,n);o.add({cacheLookupPolicy:t.cacheLookupPolicy,scenarioId:t.scenarioId}),BI(this.initialized,o,this.config,t),this.logger.verbose("0x1c4s",n);let r=t.account||this.getActiveAccount();if(!r)throw be($ue);return this.acquireTokenSilentDeduped(t,r,n).then(s=>(o.end({success:!0,fromCache:s.fromCache,isNativeBroker:s.fromPlatformBroker,accessTokenSize:s.accessToken.length,idTokenSize:s.idToken.length},void 0,s.account),{...s,state:t.state,correlationId:n})).catch(s=>{throw s instanceof st&&s.setCorrelationId(n),o.end({success:!1},s,r),s})}async acquireTokenSilentDeduped(t,n,o){let r=Rc(this.config.auth.clientId,{...t,authority:t.authority||this.config.auth.authority,correlationId:o},n.homeAccountId),s=JSON.stringify(r),i=this.activeSilentTokenRequests.get(s);if(typeof i>"u"){this.logger.verbose("0fcjbk",o),this.performanceClient.addFields({deduped:!1},o);let a=j(this.acquireTokenSilentAsync.bind(this),Uce,this.logger,this.performanceClient,o)({...t,correlationId:o},n);return this.activeSilentTokenRequests.set(s,a),a.finally(()=>{this.activeSilentTokenRequests.delete(s)})}else return this.logger.verbose("1yq7nb",o),this.performanceClient.addFields({deduped:!0},o),i}async acquireTokenSilentAsync(t,n){let o=a=>this.trackStateChange(t.correlationId,a);this.eventHandler.emitEvent(et.ACQUIRE_TOKEN_START,t.correlationId,Ze.Silent,t),t.correlationId&&this.performanceClient.incrementFields({visibilityChangeCount:0,onlineStatusChangeCount:0},t.correlationId),this.addStateChangeListeners(o);let r=await j(Dde,Qce,this.logger,this.performanceClient,t.correlationId)(t,n,this.config,this.performanceClient,this.logger),s=t.cacheLookupPolicy||Jo.Default;return this.acquireTokenSilentNoIframe(r,s).catch(async a=>{if(HDe(a,s)){let c=`${a.errorCode}${a.subError?`|${a.subError}`:""}`;if(this.performanceClient.addFields({silentRefreshReason:c},t.correlationId),this.activeIframeRequest)if(s!==Jo.Skip){let[u,p]=this.activeIframeRequest;this.logger.verbose("1w8fso",r.correlationId);let m=this.performanceClient.startMeasurement(Gce,r.correlationId);m.add({awaitIframeCorrelationId:p});let g=await u;if(m.end({success:g}),g)return this.logger.verbose("0ywzzi",r.correlationId),this.acquireTokenSilentNoIframe(r,s);throw this.logger.info("17y14q",r.correlationId),a}else return this.logger.warning("1bd4p8",r.correlationId),j(this.acquireTokenBySilentIframe.bind(this),sH,this.logger,this.performanceClient,r.correlationId)(r);else{let u;return this.activeIframeRequest=[new Promise(p=>{u=p}),r.correlationId],this.logger.verbose("0rh08z",r.correlationId),j(this.acquireTokenBySilentIframe.bind(this),sH,this.logger,this.performanceClient,r.correlationId)(r).then(p=>(u(!0),p)).catch(p=>{throw u(!1),p}).finally(()=>{this.activeIframeRequest=void 0})}}else throw a}).then(a=>(this.eventHandler.emitEvent(et.ACQUIRE_TOKEN_SUCCESS,t.correlationId,Ze.Silent,a),t.correlationId&&this.performanceClient.addFields({fromCache:a.fromCache,isNativeBroker:a.fromPlatformBroker},t.correlationId),a)).catch(a=>{throw this.eventHandler.emitEvent(et.ACQUIRE_TOKEN_FAILURE,t.correlationId,Ze.Silent,null,a),a}).finally(()=>{this.removeStateChangeListeners(o)})}async acquireTokenSilentNoIframe(t,n){return Hc(this.config,this.logger,t.correlationId,this.platformAuthProvider,t.authenticationScheme)&&t.account.nativeAccountId?(this.logger.verbose("0sczo4",t.correlationId),this.acquireTokenNative(t,Et.acquireTokenSilent_silentFlow,t.account.nativeAccountId,n).catch(async o=>{throw o instanceof Ri&&cd(o)?(this.logger.verbose("07rkmb",t.correlationId),this.platformAuthProvider=void 0,oe(_o.tokenRefreshRequired)):o})):(this.logger.verbose("0ox81t",t.correlationId),n===Jo.AccessToken&&this.logger.verbose("0fvwxe",t.correlationId),j(this.acquireTokenFromCache.bind(this),Fce,this.logger,this.performanceClient,t.correlationId)(t,n).catch(o=>{if(n===Jo.AccessToken)throw o;return this.eventHandler.emitEvent(et.ACQUIRE_TOKEN_NETWORK_START,t.correlationId,Ze.Silent,t),j(this.acquireTokenByRefreshToken.bind(this),Oce,this.logger,this.performanceClient,t.correlationId)(t,n)}))}async preGeneratePkceCodes(t){return this.logger.verbose("1x6uj6",t),this.pkceCode=await j(Ca,wa,this.logger,this.performanceClient,t)(this.performanceClient,this.logger,t),Promise.resolve()}getPreGeneratedPkceCodes(t){let n=this.pkceCode?{...this.pkceCode}:void 0;return this.pkceCode=void 0,n?this.logger.verbose("12js1o",t):this.logger.verbose("1oe9ci",t),this.performanceClient.addFields({usePreGeneratedPkce:!!n},t),n}logMultipleInstances(t,n){let o=this.config.auth.clientId;if(!window)return;window.msal=window.msal||{},window.msal.clientIds=window.msal.clientIds||[],window.msal.clientIds.length>0&&this.logger.verbose("1qtz3l",n),window.msal.clientIds.push(o),rpe(o,t,this.logger,n)}};function HDe(e,t){let n=!(e instanceof Cn&&e.subError!==hl.badToken),o=e.errorCode===wo.INVALID_GRANT_ERROR||e.errorCode===_o.tokenRefreshRequired,r=n&&o||e.errorCode===hl.noTokensFound||e.errorCode===hl.refreshTokenExpired,s=vue.includes(t);return r&&s}var GI=class e{static loggerCallback(t,n){switch(t){case Nt.Error:console.error(n);return;case Nt.Info:console.info(n);return;case Nt.Verbose:console.debug(n);return;case Nt.Warning:console.warn(n);return;default:console.log(n);return}}constructor(t){this.browserEnvironment=typeof window<"u",this.config=Xde(t,this.browserEnvironment);let n;try{n=window[Mo.SessionStorage]}catch{}let o=n?.getItem(Sde),r=n?.getItem(Cde)?.toLowerCase(),s=r==="true"?!0:r==="false"?!1:void 0,i={...this.config.system.loggerOptions},a=o&&Object.keys(Nt).includes(o)?Nt[o]:void 0;a&&(i.loggerCallback=e.loggerCallback,i.logLevel=a),s!==void 0&&(i.piiLoggingEnabled=s),this.logger=new vo(i,kde,Bs),this.available=!1}getConfig(){return this.config}getLogger(){return this.logger}isAvailable(){return this.available}isBrowserEnvironment(){return this.browserEnvironment}};var vb=class e extends GI{getModuleName(){return e.MODULE_NAME}getId(){return e.ID}async initialize(t){return this.available=typeof window<"u",this.available}};vb.MODULE_NAME="";vb.ID="StandardOperatingContext";var hT=class{constructor(t,n){this.controller=n||new zI(new vb(t))}async initialize(t){return this.controller.initialize(t)}async acquireTokenPopup(t){return this.controller.acquireTokenPopup(t)}acquireTokenRedirect(t){return this.controller.acquireTokenRedirect(t)}acquireTokenSilent(t){return this.controller.acquireTokenSilent(t)}acquireTokenByCode(t){return this.controller.acquireTokenByCode(t)}addEventCallback(t,n){return this.controller.addEventCallback(t,n)}removeEventCallback(t){return this.controller.removeEventCallback(t)}addPerformanceCallback(t){return this.controller.addPerformanceCallback(t)}removePerformanceCallback(t){return this.controller.removePerformanceCallback(t)}getAccount(t){return this.controller.getAccount(t)}getAllAccounts(t){return this.controller.getAllAccounts(t)}handleRedirectPromise(t){return this.controller.handleRedirectPromise(t)}loginPopup(t){return this.controller.loginPopup(t)}loginRedirect(t){return this.controller.loginRedirect(t)}logoutRedirect(t){return this.controller.logoutRedirect(t)}logoutPopup(t){return this.controller.logoutPopup(t)}ssoSilent(t){return this.controller.ssoSilent(t)}getLogger(){return this.controller.getLogger()}setLogger(t){this.controller.setLogger(t)}setActiveAccount(t){this.controller.setActiveAccount(t)}getActiveAccount(){return this.controller.getActiveAccount()}initializeWrapperLibrary(t,n){return this.controller.initializeWrapperLibrary(t,n)}setNavigationClient(t){this.controller.setNavigationClient(t)}getConfiguration(){return this.controller.getConfiguration()}async hydrateCache(t,n){return this.controller.hydrateCache(t,n)}clearCache(t){return this.controller.clearCache(t)}};var bgt=De.AuthenticationScheme,_gt=De.ResponseMode,ygt=De.PromptValue,vgt=De.JsonWebTokenTypes,xgt=De.OIDC_DEFAULT_SCOPES;async function spe(e){let t={method:"POST",body:JSON.stringify(e)},n=await $(J(N.privacy.cookieConsentDeleteService,t));if(!n.ok)throw new Error(`Cookie Deletion Error ${n.status}: ${n.statusText}`)}var ipe;(function(e){ipe=e()})(function(){let e=function(){let n=0,o={};for(;n"u")return;if(arguments.length>1){if(i=e({path:"/"},o.defaults,i),typeof i.expires=="number"){let m=new Date;m.setMilliseconds(m.getMilliseconds()+i.expires*864e5),i.expires=m}i.expires=i.expires?i.expires.toUTCString():"";try{a=JSON.stringify(s),/^[\{\[]/.test(a)&&(s=a)}catch{}n.write?s=n.write(s,r):s=encodeURIComponent(String(s)).replace(/%(23|24|26|2B|3A|3C|3E|3D|2F|3F|40|5B|5D|5E|60|7B|7D|7C)/g,decodeURIComponent),r=encodeURIComponent(String(r)),r=r.replace(/%(23|24|26|2B|5E|60|7C)/g,decodeURIComponent),r=r.replace(/[\(\)]/g,escape);let p="";for(let m in i)i[m]&&(p+="; "+m,i[m]!==!0&&(p+="="+i[m]));return document.cookie=r+"="+s+p}r||(a={});let l=document.cookie?document.cookie.split("; "):[],c=/(%[0-9A-Z]{2})+/g,u=0;for(;u{let r=performance.now(),s=setInterval(()=>{let i=ds.get(e);i?(clearInterval(s),o(i)):performance.now()-r>=t&&(clearInterval(s),o(null))},200)})}var lpe=!!window.matchMedia,xb=window.matchMedia("screen and (min-width: 768px), screen and (min-height: 1024px)"),Rr=window.matchMedia("screen and (min-width: 1088px)"),Ea=window.matchMedia("screen and (min-width: 768px)"),cpe=window.matchMedia("screen and (max-width: 768px)"),upe=window.matchMedia("print"),dpe=window.matchMedia("(prefers-color-scheme: dark)"),ppe=window.matchMedia("(prefers-contrast: more)");var Re={left:37,up:38,right:39,down:40,home:36,end:35,escape:27,enter:13,space:32,eight:56,numPadAsterisk:106,a:65,b:90};function mpe(e){e.addEventListener("click",t=>{if(!(t.target instanceof Element))return;let n=null;if(n=t.target.closest(".dropdown-trigger"),n||(n=t.target.shadowRoot?.activeElement?.closest(".dropdown-trigger")),!n)return;t.preventDefault();let o=n.parentElement,r=n.getAttribute("aria-expanded")!=="true";n.setAttribute("aria-expanded",r.toString());let s,i=!0;if(r&&o){o.classList.contains("has-centered-menu")||BDe(o);let a=u=>{u.target instanceof Element&&(!o.contains(u.target)||u.type==="click"&&u.target.closest(".dropdown-menu-close"))&&(s(),u.target.classList.contains("dropdown-menu-close")&&n&&n.focus())},l=u=>{if(u instanceof KeyboardEvent&&u.keyCode===Re.escape){u.stopImmediatePropagation();let m=Array.from(w.querySelectorAll('.dropdown-trigger[aria-expanded="true"]')).pop();m&&(m.setAttribute("aria-expanded","false"),m.focus())}},c=async()=>{w.activeElement?.nodeName?.toLowerCase()==="iframe"&&s()};s=()=>{e.removeEventListener("focus",a,i),e.removeEventListener("click",a),e.removeEventListener("touchstart",a),e.removeEventListener("keydown",l),B.removeEventListener("blur",c),n&&n.setAttribute("aria-expanded","false")},e.addEventListener("focus",a,i),e.addEventListener("click",a),e.addEventListener("touchstart",a),e.addEventListener("keydown",l),e.addEventListener("collapse-dropdown",u=>{u.stopPropagation(),s()}),B.addEventListener("blur",c)}})}function bT(e){e.dispatchEvent(new CustomEvent("collapse-dropdown",{bubbles:!0}))}function BDe(e){let t=f=>B.getComputedStyle(f).overflowX,n=e.parentElement;for(;n&&n.nodeName!=="BODY"&&t(n)!=="hidden";)n=n.parentElement;if(n===null)return;let o=e.querySelector(".dropdown-trigger"),r=e.querySelector(".dropdown-menu"),s=e.closest(".dropdown-menu")!==null,i=r.classList.contains("is-vertically-scrollable");r.style.left="",r.style.right="",r.style.maxHeight="";let{left:a,right:l}=n.getBoundingClientRect(),{left:c,right:u,top:p,bottom:m}=o.getBoundingClientRect(),g=r.getBoundingClientRect().width;s?(r.style.top="-1px",b.data.userDir==="ltr"?u+g<=l?(r.style.right="0",r.style.transform="translateX(100%)"):(r.style.left="0",r.style.transform="translateX(-100%)"):u-g>=a?(r.style.left="0",r.style.transform="translateX(-100%)"):(r.style.right="0",r.style.transform="translateX(100%)"),i&&(r.style.maxHeight=`${B.innerHeight-p-8}px`)):(b.data.userDir==="ltr"?c+g<=l?r.style.left="0":r.style.right="0":u-g>=a?r.style.right="0":r.style.left="0",i&&(r.style.maxHeight=`${B.innerHeight-m-8}px`))}var dd="light",jI={light:{documentClass:"theme-light",name:"light",text:TX,icon:"docon-sun"},dark:{documentClass:"theme-dark",name:"dark",text:SK,icon:"docon-clear-night"},"high-contrast":{documentClass:"theme-high-contrast",name:"high-contrast",text:QZ,icon:"docon-clear-night"}},zDe=Object.keys(jI),gpe=zDe.map(e=>jI[e].documentClass),xl=class{constructor(t,n){this.currentTheme=t;this.previousTheme=n}};function GDe(e,t,n){e.publish(new xl(t,n)),window.dispatchEvent(new CustomEvent("theme-changed",{detail:{currentTheme:t,previousTheme:n}}))}function VDe(e){let t=document.documentElement.classList;for(let n of gpe)t.remove(n);t.add(jI[e].documentClass)}function jDe(e){return dd=e}function fpe(e){let t=Array.from(document.querySelectorAll(".theme-control[data-theme-to]"));for(let n of t)n.dataset.themeTo===e?(n.classList.add("is-selected"),n.setAttribute("aria-checked","true")):(n.classList.remove("is-selected"),n.setAttribute("aria-checked","false"))}function QDe(e){ne.setItem("theme",e)}function YDe(e=!1,t=!1){let n=ne.getItem("theme");return n&&/^light|dark|high-contrast$/.test(n)?n:t?"high-contrast":e?"dark":"light"}function hpe(e){OH(ut,e)}function OH(e,t){let n=dd;jDe(t),VDe(t),n!==t&&GDe(e,t,n)}async function bpe(e){let t=pd();OH(e,t),ZDe(e),await xe,fpe(t),window.setTheme=hpe}function pd(e=dpe.matches){let t=ce();if(t.theme==="light"||t.theme==="dark"||t.theme==="high-contrast")return t.theme;let n=t.checkPrefersContrast==="true"&&ppe.matches;return YDe(e,n)}function _pe(e){return Array.from(e.querySelectorAll(".theme-control[data-theme-to]"))}function VI(e,t){let n=e.length;n!==0&&e[(t%n+n)%n].focus()}function ype(e,t){let n=e.closest(".dropdown")?.querySelector(".dropdown-trigger");bT(e),t&&n?.focus()}function WDe(e,t,n){let o=n.indexOf(t);switch(e.key){case"ArrowDown":e.preventDefault(),VI(n,o+1);break;case"ArrowUp":e.preventDefault(),VI(n,o-1);break;case"Home":e.preventDefault(),VI(n,0);break;case"End":e.preventDefault(),VI(n,n.length-1);break;case"Tab":ype(t,!1);break}}function KDe(e){let t=e.target;if(!(t instanceof HTMLElement))return;let n=t.closest(".theme-dropdown-trigger");if(n){(e.key==="ArrowDown"||e.key==="ArrowUp")&&n.getAttribute("aria-expanded")!=="true"&&(e.preventDefault(),n.click());return}let o=t.closest(".theme-control[data-theme-to]"),r=o?.closest('[role="menu"]');o&&r&&WDe(e,o,_pe(r))}function JDe({target:e}){let t=e instanceof Element?e.closest(".theme-dropdown-trigger"):null;if(t?.getAttribute("aria-expanded")!=="true")return;let n=t.parentElement?.querySelector('[role="menu"]');if(!n)return;let o=_pe(n);(o.find(s=>s.getAttribute("aria-checked")==="true")??o[0])?.focus()}function ZDe(e){window.addEventListener("click",({target:t})=>{let n=t instanceof Element&&t.closest(".theme-control[data-theme-to]");if(!n)return;let o=n.dataset.themeTo;fpe(o),QDe(o),OH(e,o),ype(n,!0)}),window.addEventListener("click",JDe),window.addEventListener("keydown",KDe)}var _T,xpe=new Promise(e=>_T=e),Rm,Mm=new Promise(e=>Rm=e),Tpe,wpe=()=>Tpe,vpe=e=>{for(let t of Object.values(e))if(!t)return!1;return!0};async function Spe(){if(!S.cookieConsent)return;if(S.chromeless){Rm(!0),_T();return}let e=()=>ds.get("MSCC")!==void 0,t=B.WcpConsent;if(t===void 0||typeof t.init!="function"){Rm(!1);return}await xe;let n=document.getElementById("cookie-consent-holder"),o=Array.from(document.querySelectorAll(".manage-cookies-holder"));if(!n||!o.length){console.log("No container for cookie banner");return}t.init(b.data.userLocale,n,function(r,s){if(r!==void 0){Rm(!1);return}if(Tpe=s,!s.isConsentRequired){Rm(!0),_T();return}let i=document.createElement("button");if(i.setAttribute("data-bi-name","manageCookies"),i.textContent=UX,o.forEach(a=>{a.appendChild(i.cloneNode(!0)).addEventListener("click",()=>{s.manageConsent()}),a.hidden=!1}),n.hidden=!1,Rt(),vpe(s.getConsent())){Rm(!0),_T();return}Rm(!1)},async function(r){if(vpe(r)){_T(),el();return}if(await spe({domain:document.location.hostname,analytics:!r.Analytics,advertising:!r.Advertising,social:!r.SocialMedia}),e()){r.Analytics||(document.cookie="mbox=;expires=Thu, 01 Jan 1970 00:00:00 GMT;path=/;domain=.microsoft.com"),B.location.href=B.location.pathname+B.location.search+B.location.hash;return}el()},dd)}function Cpe(e=location.hostname){return{"developer.microsoft.com":"DevCenter","dev.learn.microsoft.com ":"DocsDev","dev.docs.azure.cn":"DocsDev","review.learn.microsoft.com":"DocsReview","review.docs.azure.cn":"DocsReview","learn.microsoft.com":"Docs","docs.azure.cn":"DocsCN"}[e]||"OneDSTest"}function Epe(e=location.hostname){return{"developer.microsoft.com":"d1574ad452ea4a37a5dda6f9f1fb5ef2-b55b2da9-95eb-4cf9-a633-191aa7b0ee25-6798","docs.azure.cn":"54ae4d70fff842118ff98bccfdc28deb-7f4f32ec-ae5a-4562-881c-5c0188170faf-7594","learn.microsoft.com":"c6c27850c9c24cbfae921778d2465031-4c28c161-db47-426b-9d28-733d45d05dd9-7278","review.learn.microsoft.com":"d94fc739fadb4805bce966a4f24e2e21-a6b89116-ce98-4ffb-b1cf-d46e361ea690-7616","review.docs.azure.cn":"d94fc739fadb4805bce966a4f24e2e21-a6b89116-ce98-4ffb-b1cf-d46e361ea690-7616"}[e]??"8617064329544862a1d4dbcc1cdda9d3-079a9ef7-af43-443d-a28b-f60ba4efc9ff-7531"}var Ape="3PAdsOptOut";var UH=!1;function kpe(){let e=w.createElement("div");e.style.cssText="position:absolute;top:0;left:-2300px;background-color:#878787",e.textContent="hc",w.body.appendChild(e);let t=B.getComputedStyle(e).backgroundColor.toLowerCase();w.body.removeChild(e),t!=="#878787"&&t!=="rgb(135, 135, 135)"&&(w.documentElement.className+=" os-high-contrast-enabled theme-high-contrast",UH=!0)}var XDe={audience:"aud",author:"author",manager:"manager","ms.assetid":"asst","ms.author":"pgauth","ms.contentsource":"pgpubl","ms.custom":"custom","ms.date":"date",depot_name:"depotname","ms.devlang":"pgdevlng",gitcommit:"gitcommit",original_content_git_url:"giturl",updated_at:"publishtime","ms.lasthandoff":"lasthandoff","ms.locfileid":"locfileid","ms.prod":"product","ms.reviewer":"reviewer","ms.service":"pgsrvcs","ms.suite":"suite","ms.technology":"technology","ms.tgt_pltfrm":"pgtrgtplf","ms.topic":"pgtop","ms.workload":"workload","ms.search.region":"searchregion","ms.prod_service":"prod_service","ms.component":"component",experimental:"experimental",experiment_id:"experiment_id","ms.assigned_experiments":"assigned_experiments","ms.translationtype":"translationtype",document_version_independent_id:"document_version_independent_id",platform_id:"platform_id","ms.collection":"collection","ms.subservice":"subservice"};function QI(e){let t=document.querySelectorAll("meta");for(let n=0;n{let o={id:0},r=()=>{window.clearTimeout(o.id),t.removeEventListener("load",r),t.removeEventListener("error",r),n(window.awa)};o.id=window.setTimeout(r,t1e),t.addEventListener("load",r),t.addEventListener("error",r)}):Promise.resolve(void 0)}function o1e(e,t){let n={instrumentationKey:Epe(),useShortNameForContentBlob:!1,syncMuid:t,urlCollectHash:!0,urlCollectQuery:!0,autoCapture:{pageView:!0,onLoad:!0,click:!0,scroll:!0,resize:!0,jsError:!1,addin:!0,msTags:!1,perf:!0,assets:!1,lineage:!0},coreData:{appId:Cpe(),pageName:P("document_id")||"missing document_id",market:b.data.userLocale,pageType:P("page_type"),pageTags:{}},callback:{signedinStatus:()=>C.isAuthenticated&&(C.authenticationMode==="MSA"||C.tenantId===os),pageViewPageTags:YI,pageActionPageTags:YI,contentUpdatePageTags:YI,pageActionContentTags:YI,userConsentDetailsCallback:Lpe},advancedConfig:{propertyConfiguration:{gpcDataSharingOptIn:S.thirdPartyDataSharingConsentFlag?r1e():null}},shareAuthStatus:!0,isLoggedIn:!1};QI(n.coreData.pageTags),n.coreData.pageTags.pageTemplate=b.data.pageTemplate,e.init(n),s1e(e)}function YI(){return C.isAuthenticated?{"ext-app-user-id":`c:${C.userId}`}:{}}var md=new Promise(e=>Ipe=e);function r1e(){let e=a1e(),t=i1e(),n=!!navigator.globalPrivacyControl,o=ds.get(Ape)==="1";return!(e||t||n||o)}function s1e(e){var n,o;(n=e.sku.config).extensionConfig??(n.extensionConfig={});let t=e.sku.config.extensionConfig;t.SystemPropertiesCollector??(t.SystemPropertiesCollector={}),(o=t.SystemPropertiesCollector).callback??(o.callback={}),t.SystemPropertiesCollector.callback.userConsentDetails=Lpe}function Lpe(){return wpe()?.getConsent()||null}function i1e(){let e=window.self!==window.top,t=!!window.frameElement;return e&&!t}function a1e(e=window.location.hostname){return!e.endsWith(".microsoft.com")}var Ee={CLICKLEFT:"CL",CLICKRIGHT:"CR",CLICKMIDDLE:"CM",SCROLL:"S",ZOOM:"Z",RESIZE:"R",KEYBOARDENTER:"KE",KEYBOARDSPACE:"KS",GAMEPADA:"CGA",GAMEPADMENU:"CGM",OTHER:"O",AUTO:"A"},me={UNDEFINED:0,NAVIGATIONBACK:1,NAVIGATION:2,NAVIGATIONFORWARD:3,APPLY:4,REMOVE:5,SORT:6,EXPAND:7,REDUCE:8,CONTEXTMENU:9,TAB:10,COPY:11,EXPERIMENTATION:12,PRINT:13,SHOW:14,HIDE:15,MAXIMIZE:16,MINIMIZE:17,BACKBUTTON:18,STARTPROCESS:20,PROCESSCHECKPOINT:21,COMPLETEPROCESS:22,SCENARIOCANCEL:23,DOWNLOADCOMMIT:40,DOWNLOAD:41,SEARCHAUTOCOMPLETE:60,SEARCH:61,SEARCHINITIATE:62,TEXTBOXINPUT:63,PURCHASE:80,ADDTOCART:81,VIEWCART:82,ADDWISHLIST:83,FINDSTORE:84,CHECKOUT:85,REMOVEFROMCART:86,PURCHASECOMPLETE:87,VIEWCHECKOUTPAGE:88,VIEWCARTPAGE:89,VIEWPDP:90,UPDATEITEMQUANTITY:91,INTENTTOBUY:92,PUSHTOINSTALL:93,SIGNIN:100,SIGNOUT:101,SOCIALSHARE:120,SOCIALLIKE:121,SOCIALREPLY:122,CALL:123,EMAIL:124,COMMUNITY:125,SOCIALFOLLOW:126,VOTE:140,SURVEYINITIATE:141,SURVEYCOMPLETE:142,REPORTAPPLICATION:143,REPORTREVIEW:144,SURVEYCHECKPOINT:145,CONTACT:160,REGISTRATIONINITIATE:161,REGISTRATIONCOMPLETE:162,CANCELSUBSCRIPTION:163,RENEWSUBSCRIPTION:164,CHANGESUBSCRIPTION:165,REGISTRATIONCHECKPOINT:166,CHATINITIATE:180,CHATEND:181,TRIALSIGNUP:200,TRIALINITIATE:201,SIGNUP:210,FREESIGNUP:211,PARTNERREFERRAL:220,LEARNLOWFUNNEL:230,LEARNHIGHFUNNEL:231,SHOPPINGINTENT:232,VIDEOSTART:240,VIDEOPAUSE:241,VIDEOCONTINUE:242,VIDEOCHECKPOINT:243,VIDEOJUMP:244,VIDEOCOMPLETE:245,VIDEOBUFFERING:246,VIDEOERROR:247,VIDEOMUTE:248,VIDEOUNMUTE:249,VIDEOFULLSCREEN:250,VIDEOUNFULLSCREEN:251,VIDEOREPLAY:252,VIDEOPLAYERLOAD:253,VIDEOPLAYERCLICK:254,VIDEOVOLUMECONTROL:255,VIDEOAUDIOTRACKCONTROL:256,VIDEOCLOSEDCAPTIONCONTROL:257,VIDEOCLOSEDCAPTIONSTYLE:258,VIDEORESOLUTIONCONTROL:259,VIRTUALEVENTJOIN:260,VIRTUALEVENTEND:261,IMPRESSION:280,CLICK:281,RICHMEDIACOMPLETE:282,ADBUFFERING:283,ADERROR:284,ADSTART:285,ADCOMPLETE:286,ADSKIP:287,ADTIMEOUT:288,OTHER:300},An={id:"data-bi-id",name:"data-bi-name",type:"data-bi-type",scenario:"data-bi-scn",scenarioStep:"data-bi-scnstp",scenarioStepNumber:"data-bi-subnm",satisfaction:"data-bi-sat"},yT={id:"id",name:"name",type:"type",scenario:"scn",scenarioStep:"scnstp",scenarioStepNumber:"subnm"},Bc=e=>{let t=e.closest(`[${An.name}]`);return t?t.getAttribute(An.name):""},Rpe=()=>{md.then(e=>{e.sku.getAuthExtension().signOut()})},Mpe=(e,t)=>{md.then(n=>{let o=n.sku.getAuthExtension();if(!t){o.setAuthType(0);return}o.setAuthType(e==="MSA"?1:e==="AAD"?2:0)})},$pe=e=>{md.then(t=>t.extendCoreData(e))},Vt=(e,t)=>{md.then(n=>n.ct.capturePageAction(e,t))},Se=e=>{md.then(t=>t.ct.captureContentPageAction(e))},Dpe=e=>{md.then(t=>t.ct.captureContentUpdate(e))},WI=e=>{md.then(t=>t.ct.capturePageView(e||{}))};var KI,JI="undefined",tP="constructor",Tl="prototype",nP="function",oP="_dynInstFuncs",BH="_isDynProxy",Tb="_dynClass",l1e="_dynCls$",zH="_dynInstChk",vT=zH,qpe="_dfOpts",Npe="_unknown_",jH="__proto__",ZI="_dyn"+jH,Fpe="__dynProto$Gbl",qH="_dynInstProto",XI="useBaseInst",GH="setInstFuncs",iP=Object,xT=iP.getPrototypeOf,Ope=iP.getOwnPropertyNames;function c1e(){var e;return typeof globalThis!==JI&&(e=globalThis),!e&&typeof self!==JI&&(e=self),!e&&typeof window!==JI&&(e=window),!e&&typeof global!==JI&&(e=global),e||{}}var Upe=c1e(),VH=Upe[Fpe]||(Upe[Fpe]={o:(KI={},KI[GH]=!0,KI[XI]=!0,KI),n:1e3});function zc(e,t){return e&&iP[Tl].hasOwnProperty.call(e,t)}function eP(e){return e&&(e===iP[Tl]||e===Array[Tl])}function QH(e){return eP(e)||e===Function[Tl]}function $m(e){var t;if(e){if(xT)return xT(e);var n=e[jH]||e[Tl]||(e[tP]?e[tP][Tl]:null);t=e[ZI]||n,zc(e,ZI)||(delete e[qH],t=e[ZI]=e[qH]||e[ZI],e[qH]=n)}return t}function rP(e,t){var n=[];if(Ope)n=Ope(e);else for(var o in e)typeof o=="string"&&zc(e,o)&&n.push(o);if(n&&n.length>0)for(var r=0;r=0;n--)if(e[n]===t)return!0;return!1}function d1e(e,t,n,o){function r(l,c,u){var p=c[u];if(p[BH]&&o){var m=l[oP]||{};m[vT]!==!1&&(p=(m[c[Tb]]||{})[u]||p)}return function(){return p.apply(l,arguments)}}var s=wb();rP(n,function(l){s[l]=r(t,n,l)});for(var i=$m(e),a=[];i&&!QH(i)&&!WH(a,i);)rP(i,function(l){!s[l]&&YH(i,l,!xT)&&(s[l]=r(t,i,l))}),a.push(i),i=$m(i);return s}function p1e(e,t,n,o){var r=null;if(e&&zc(n,Tb)){var s=e[oP]||wb();if(r=(s[n[Tb]]||wb())[t],r||sP("Missing ["+t+"] "+nP),!r[zH]&&s[vT]!==!1){for(var i=!zc(e,t),a=$m(e),l=[];i&&a&&!QH(a)&&!WH(l,a);){var c=a[t];if(c){i=c===o;break}l.push(a),a=$m(a)}try{i&&(e[t]=r),r[zH]=1}catch{s[vT]=!1}}}return r}function m1e(e,t,n){var o=t[e];return o===n&&(o=$m(t)[e]),typeof o!==nP&&sP("["+e+"] is not a "+nP),o}function g1e(e,t,n,o,r){function s(l,c){var u=function(){var p=p1e(this,c,l,u)||m1e(c,l,u);return p.apply(this,arguments)};return u[BH]=1,u}if(!eP(e)){var i=n[oP]=n[oP]||wb();if(!eP(i)){var a=i[t]=i[t]||wb();i[vT]!==!1&&(i[vT]=!!r),eP(a)||rP(n,function(l){YH(n,l,!1)&&n[l]!==o[l]&&(a[l]=n[l],delete n[l],(!zc(e,l)||e[l]&&!e[l][BH])&&(e[l]=s(e,l)))})}}}function f1e(e,t){if(xT){for(var n=[],o=$m(t);o&&!QH(o)&&!WH(n,o);){if(o===e)return!0;n.push(o),o=$m(o)}return!1}return!0}function HH(e,t){return zc(e,Tl)?e.name||t||Npe:((e||{})[tP]||{}).name||t||Npe}function ft(e,t,n,o){zc(e,Tl)||sP("theClass is an invalid class definition.");var r=e[Tl];f1e(r,t)||sP("["+HH(e)+"] not in hierarchy of ["+HH(t)+"]");var s=null;zc(r,Tb)?s=r[Tb]:(s=l1e+HH(e,"_")+"$"+VH.n,VH.n++,r[Tb]=s);var i=ft[qpe],a=!!i[XI];a&&o&&o[XI]!==void 0&&(a=!!o[XI]);var l=u1e(t),c=d1e(r,t,l,a);n(t,c);var u=!!xT&&!!i[GH];u&&o&&(u=!!o[GH]),g1e(r,s,t,l,u!==!1)}ft[qpe]=VH.o;var Mi="function",ps="object",ms="undefined",kn="prototype",TT="hasOwnProperty";var zs=Object,Sb=zs[kn],Cb=zs.assign,aP=zs.create,Eb=zs.defineProperty,wl=Sb[TT];var Hpe=null;function $i(e){e===void 0&&(e=!0);var t=e===!1?null:Hpe;return t||(typeof globalThis!==ms&&(t=globalThis),!t&&typeof self!==ms&&(t=self),!t&&typeof window!==ms&&(t=window),!t&&typeof global!==ms&&(t=global),Hpe=t),t}function Ab(e){throw new TypeError(e)}function kb(e){var t=aP;if(t)return t(e);if(e==null)return{};var n=typeof e;n!==ps&&n!==Mi&&Ab("Object prototype may only be an Object:"+e);function o(){}return o[kn]=e,new o}var wft=($i()||{}).Symbol,Sft=($i()||{}).Reflect;var b1e=function(e){for(var t,n=1,o=arguments.length;n=o&&!(n=e===t)){for(var s=r-1,i=o-1;i>=0;i--){if(e[s]!=t[i])return!1;s--}n=!0}return n}function Co(e,t){return e&&t?e[hd](t)!==-1:!1}var At=S1e||P1e;function P1e(e){return!!(e&&Xpe[So](e)==="[object Array]")}function Vm(e){return!!(e&&Xpe[So](e)==="[object Error]")}function We(e){return typeof e=="string"}function LT(e){return typeof e=="number"}function tme(e){return typeof e=="boolean"}function Ype(e){var t=!1;if(e&&typeof e=="object"){var n=yP?yP(e):aB(e);n?(n[_P]&&wl[So](n,_P)&&(n=n[_P]),t=typeof n===Mi&&eme[So](n)===C1e):t=!0}return t}function Qs(e){if(e)return w1e?e[Kpe]():L1e(e)}function L1e(e){if(e&&e.getUTCFullYear){var t=function(n){var o=String(n);return o[ot]===1&&(o="0"+o),o};return e.getUTCFullYear()+"-"+t(e.getUTCMonth()+1)+"-"+t(e.getUTCDate())+"T"+t(e.getUTCHours())+":"+t(e.getUTCMinutes())+":"+t(e.getUTCSeconds())+"."+String((e.getUTCMilliseconds()/1e3).toFixed(3)).slice(2,5)+"Z"}}function Ne(e,t,n){var o=e[ot];try{for(var r=0;r=0?r:o-Math.abs(r),0);s=3)o=arguments[2];else{for(;s0&&tme(a)&&(c=a,a=i[u]||{},u++),hr(a)||(a={});u=g&&(l[T](y[gd]),o[I]=!0)}else r>=g&&l[T](y[gd]);c(g,y)}},l[PT]=function(g){cme("warn",g),m("warning",g)},l[bP]=function(g){cme("error",g),m("error",g)},l.resetInternalMessageCount=function(){n=0,o={}},l[XH]=c;function c(g,f){if(!p()){var _=!0,h=Y1e+f[Pb];if(o[h]?_=!1:o[h]=!0,_&&(g<=s&&(l.queue[wt](f),n++,m(g===1?"error":"warn",f)),n===i)){var v="Internal events throttle limit per PageView reached for this app.",y=new Qc(23,v,!1);l.queue[wt](y),g===1?l[bP](v):l[PT](v)}}}function u(g){r=Ys(g.loggingLevelConsole,0),s=Ys(g.loggingLevelTelemetry,1),i=Ys(g.maxMessageLimit,25),a=Ys(g.enableDebug,Ys(g[ZH],!1))}function p(){return n>=i}function m(g,f){var _=EB(t||{});_&&_[Di]&&_[Di](g,f)}})}return e.__ieDyn=1,e}();function AB(e){return e||new Ym}function Ce(e,t,n,o,r,s){s===void 0&&(s=!1),AB(e).throwInternal(t,n,o,r,s)}function Ui(e,t){AB(e)[PT](t)}function kB(e,t,n){AB(e)[XH](t,n)}var Gb="ctx",PB="ParentContextKey",RT="ChildrenContextKey",W1e=null,MT=function(){function e(t,n,o){var r=this,s=!1;if(r.start=Oo(),r[fr]=t,r[Pa]=o,r[ET]=function(){return!1},Xe(n)){var i;s=Fi(r,"payload",function(){return!i&&Xe(n)&&(i=n(),n=null),i})}r[Bm]=function(a){return a?a===e[PB]||a===e[RT]?r[a]:(r[Gb]||{})[a]:null},r[Ra]=function(a,l){if(a)if(a===e[PB])r[a]||(r[ET]=function(){return!0}),r[a]=l;else if(a===e[RT])r[a]=l;else{var c=r[Gb]=r[Gb]||{};c[a]=l}},r[fP]=function(){var a=0,l=r[Bm](e[RT]);if(At(l))for(var c=0;c>>=0),$T=123456789+e&Wm,DT=987654321-e&Wm,dme=!0}function J1e(){try{var e=Oo()&2147483647;K1e((Math.random()*ume^e)+e)}catch{}}function Km(e){var t=0,n=TB()||wB();return n&&n.getRandomValues&&(t=n.getRandomValues(new Uint32Array(1))[0]&Wm),t===0&&Bb()&&(dme||J1e(),t=MB()&Wm),t===0&&(t=Math.floor(ume*Math.random()|0)),e||(t>>>=0),t}function MB(e){DT=36969*(DT&65535)+(DT>>16)&Wm,$T=18e3*($T&65535)+($T>>16)&Wm;var t=(DT<<16)+($T&65535)>>>0&Wm|0;return e||(t>>>=0),t}function Yc(e){e===void 0&&(e=22);for(var t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",n=Km()>>>0,o=0,r=yt;r[ot]>>=6,o===5&&(n=(Km()<<2&4294967295|n&3)>>>0,o=0);return r}var pme=Eb,mme="2.8.13",Z1e="."+Yc(6),X1e=0;function eNe(e,t,n){if(pme)try{return pme(e,t,{value:n,enumerable:!1,configurable:!0}),!0}catch{}return!1}function gme(e){return e[pP]===1||e[pP]===9||!+e[pP]}function tNe(e,t){var n=t[e.id];if(!n){n={};try{gme(t)&&(eNe(t,e.id,n)||(t[e.id]=n))}catch{}}return n}function Zo(e,t){return t===void 0&&(t=!1),Gm(e+X1e+++(t?"."+mme:yt)+Z1e)}function IP(e){var t={id:Zo("_aiData-"+(e||yt)+"."+mme),accept:function(n){return gme(n)},get:function(n,o,r,s){var i=n[t.id];return i?i[Gm(o)]:(s&&(i=tNe(t,n),i[Gm(o)]=r),r)},kill:function(n,o){if(n&&n[o])try{delete n[o]}catch{}}};return t}var fme="toGMTString",hme="toUTCString",OB="cookie",$B="expires",NB="enabled",bme="isCookieUseDisabled",_me="disableCookiesUsage",wd="_ckMgr",PP=null,DB=null,yme=null,NT=Qn(),vme={},RP={};function nNe(e,t){var n=Jm[wd]||RP[wd];return n||(n=Jm[wd]=Jm(e,t),RP[wd]=n),n}function LP(e){return e?e.isEnabled():!0}function oNe(e){var t=e[dP]=e[dP]||{};if(qt(t,"domain",e.cookieDomain,lB,ge),qt(t,"path",e.cookiePath||"/",null,ge),ge(t[NB])){var n=void 0;yn(e[bme])||(n=!e[bme]),yn(e[_me])||(n=!e[_me]),t[NB]=n}return t}function Sme(e,t){return t&&e&&At(e.ignoreCookies)?e.ignoreCookies[hd](t)!==-1:!1}function rNe(e,t){return t&&e&&At(e.blockedCookies)&&e.blockedCookies[hd](t)!==-1?!0:Sme(e,t)}function Zm(e,t){var n;if(e)n=e.getCookieMgr();else if(t){var o=t[dP];o[wd]?n=o[wd]:n=Jm(t)}return n||(n=nNe(t,(e||{})[No])),n}function Jm(e,t){var n,o=oNe(e||RP),r=o.path||"/",s=o.domain,i=o[NB]!==!1,a=(n={isEnabled:function(){var l=i&&FB(t),c=RP[wd];return l&&c&&a!==c&&(l=LP(c)),l}},n[CT]=function(l){i=l!==!1},n.set=function(l,c,u,p,m){var g=!1;if(LP(a)&&!rNe(o,l)){var f={},_=jn(c||yt),h=_[hd](";");if(h!==-1&&(_=jn(c[Rb](0,h)),f=Cme(c[Rb](h+1))),qt(f,"domain",p||s,Ob,yn),!ge(u)){var v=Bb();if(yn(f[$B])){var y=Oo(),T=y+u*1e3;if(T>0){var I=new Date;I.setTime(T),qt(f,$B,xme(I,v?fme:hme)||xme(I,v?fme:hme)||yt,Ob)}}v||qt(f,"max-age",yt+u,null,yn)}var E=hs();E&&E.protocol==="https:"&&(qt(f,"secure",null,null,yn),DB===null&&(DB=!UB((Mr()||{})[Mb])),DB&&qt(f,"SameSite","None",null,yn)),qt(f,"path",m||r,null,yn);var q=o.setCookie||wme;q(l,Tme(_,f)),g=!0}return g},n.get=function(l){var c=yt;return LP(a)&&!Sme(o,l)&&(c=(o.getCookie||sNe)(l)),c},n.del=function(l,c){var u=!1;return LP(a)&&(u=a.purge(l,c)),u},n.purge=function(l,c){var u,p=!1;if(FB(t)){var m=(u={},u.path=c||"/",u[$B]="Thu, 01 Jan 1970 00:00:01 GMT",u);Bb()||(m["max-age"]="0");var g=o.delCookie||wme;g(l,Tme(yt,m)),p=!0}return p},n);return a[wd]=a,a}function FB(e){if(PP===null){PP=!1;try{var t=NT||{};PP=t[OB]!==void 0}catch(n){Ce(e,2,68,"Cannot access document.cookie - "+Tt(n),{exception:Oe(n)})}}return PP}function Cme(e){var t={};if(e&&e[ot]){var n=jn(e)[bd](";");Ne(n,function(o){if(o=jn(o||yt),o){var r=o[hd]("=");r===-1?t[o]=null:t[jn(o[Rb](0,r))]=jn(o[Rb](r+1))}})}return t}function xme(e,t){return Xe(e[t])?e[t]():null}function Tme(e,t){var n=e||yt;return kt(t,function(o,r){n+="; "+o+(ge(r)?yt:"="+r)}),n}function sNe(e){var t=yt;if(NT){var n=NT[OB]||yt;yme!==n&&(vme=Cme(n),yme=n),t=jn(vme[e]||yt)}return t}function wme(e,t){NT&&(NT[OB]=e+"="+t)}function UB(e){return We(e)?!!(Co(e,"CPU iPhone OS 12")||Co(e,"iPad; CPU OS 12")||Co(e,"Macintosh; Intel Mac OS X 10_14")&&Co(e,"Version/")&&Co(e,"Safari")||Co(e,"Macintosh; Intel Mac OS X 10_14")&&cB(e,"AppleWebKit/605.1.15 (KHTML, like Gecko)")||Co(e,"Chrome/5")||Co(e,"Chrome/6")||Co(e,"UnrealEngine")&&!Co(e,"Chrome")||Co(e,"UCBrowser/12")||Co(e,"UCBrowser/11")):!1}var Rme="on",Eme="attachEvent",Ame="addEventListener",kme="detachEvent",Ime="removeEventListener",qB="events",HB="visibilitychange",NP="pagehide";var Mme="unload",$me="beforeunload",Dme=Zo("aiEvtPageHide"),zht=Zo("aiEvtPageShow"),iNe=/\.[\.]+/g,aNe=/[\.]+$/,lNe=1,MP=IP("events"),cNe=/^([^.]*)(?:\.(.+)|)/;function Pme(e){return e&&e[La]?e[La](/^[\s\.]+|(?=[\s\.])[\.\s]+$/g,yt):e}function BB(e,t){var n;if(t){var o=yt;At(t)?(o=yt,Ne(t,function(s){s=Pme(s),s&&(s[0]!=="."&&(s="."+s),o+=s)})):o=Pme(t),o&&(o[0]!=="."&&(o="."+o),e=(e||yt)+o)}var r=cNe.exec(e||yt)||[];return n={},n[El]=r[1],n.ns=(r[2]||yt).replace(iNe,".").replace(aNe,yt)[bd](".").sort().join("."),n}function Nme(e,t,n){n===void 0&&(n=!0);var o=MP.get(e,qB,{},n),r=o[t];return r||(r=o[t]=[]),r}function Fme(e,t,n,o){e&&t&&t[El]&&(e[Ime]?e[Ime](t[El],n,o):e[kme]&&e[kme](Rme+t[El],n))}function uNe(e,t,n,o){var r=!1;return e&&t&&t[El]&&n&&(e[Ame]?(e[Ame](t[El],n,o),r=!0):e[Eme]&&(e[Eme](Rme+t[El],n),r=!0)),r}function Lme(e,t,n,o){for(var r=t[ot];r--;){var s=t[r];s&&(!n.ns||n.ns===s.evtName.ns)&&(!o||o(s))&&(Fme(e,s.evtName,s[gP],s.capture),t[Ia](r,1))}}function dNe(e,t,n){if(t[El])Lme(e,Nme(e,t[El]),t,n);else{var o=MP.get(e,qB,{});kt(o,function(r,s){Lme(e,s,t,n)}),fs(o)[ot]===0&&MP.kill(e,qB)}}function Ks(e,t){var n;return t?(At(t)?n=[e].concat(t):n=[e,t],n=BB("xx",n).ns[bd](".")):n=e,n}function qi(e,t,n,o,r){var s;r===void 0&&(r=!1);var i=!1;if(e)try{var a=BB(t,o);if(i=uNe(e,a,n,r),i&&MP.accept(e)){var l=(s={guid:lNe++,evtName:a},s[gP]=n,s.capture=r,s);Nme(e,a.type)[wt](l)}}catch{}return i}function Sd(e,t,n,o,r){if(r===void 0&&(r=!1),e)try{var s=BB(t,o),i=!1;dNe(e,s,function(a){return s.ns&&!n||a[gP]===n?(i=!0,!0):!1}),i||Fme(e,s,n,r)}catch{}}function Ome(e,t,n){var o=!1,r=Ws();r&&(o=qi(r,e,t,n),o=qi(r.body,e,t,n)||o);var s=Qn();return s&&(o=qi(s,e,t,n)||o),o}function Ume(e,t,n){var o=Ws();o&&(Sd(o,e,t,n),Sd(o.body,e,t,n));var r=Qn();r&&Sd(r,e,t,n)}function $P(e,t,n,o){var r=!1;return t&&e&&e[ot]>0&&Ne(e,function(s){s&&(!n||Fo(n,s)===-1)&&(r=Ome(s,t,o)||r)}),r}function qme(e,t,n,o){var r=!1;return t&&e&&At(e)&&(r=$P(e,t,n,o),!r&&n&&n[ot]>0&&(r=$P(e,t,null,o))),r}function DP(e,t,n){e&&At(e)&&Ne(e,function(o){o&&Ume(o,t,n)})}function zB(e,t,n){return qme([$me,Mme,NP],e,t,n)}function GB(e,t){DP([$me,Mme,NP],e,t)}function FT(e,t,n){function o(i){var a=Qn();e&&a&&a.visibilityState==="hidden"&&e(i)}var r=Ks(Dme,n),s=$P([NP],e,t,r);return(!t||Fo(t,HB)===-1)&&(s=$P([HB],o,t,r)||s),!s&&t&&(s=FT(e,null,n)),s}function VB(e,t){var n=Ks(Dme,t);DP([NP],e,n),DP([HB],null,n)}function bs(){for(var e=["0","1","2","3","4","5","6","7","8","9","a","b","c","d","e","f"],t=yt,n,o=0;o<4;o++)n=Km(),t+=e[n&15]+e[n>>4&15]+e[n>>8&15]+e[n>>12&15]+e[n>>16&15]+e[n>>20&15]+e[n>>24&15]+e[n>>28&15];var r=e[8+(Km()&3)|0];return t[_d](0,8)+t[_d](9,4)+"4"+t[_d](13,3)+r+t[_d](16,3)+t[_d](19,12)}var jB="00",gNe="ff",Bme="00000000000000000000000000000000",zme="0000000000000000";function OT(e,t,n){return e&&e[ot]===t&&e!==n?!!e.match(/^[\da-f]*$/):!1}function Hme(e,t,n){return OT(e,t)?e:n}function fNe(e){(isNaN(e)||e<0||e>255)&&(e=1);for(var t=e.toString(16);t[ot]<2;)t="0"+t;return t}function UT(e,t,n,o){var r;return r={},r[eB]=OT(o,2,gNe)?o:jB,r[AT]=Xm(e)?e:bs(),r.spanId=eg(t)?t:bs()[_d](0,16),r.traceFlags=n>=0&&n<=255?n:1,r}function Xm(e){return OT(e,32,Bme)}function eg(e){return OT(e,16,zme)}function qT(e){if(e){var t=fNe(e[kT]);OT(t,2)||(t="01");var n=e[eB]||jB;return n!=="00"&&n!=="ff"&&(n=jB),"".concat(n,"-").concat(Hme(e.traceId,32,Bme),"-").concat(Hme(e.spanId,16,zme),"-").concat(t)}return""}var hNe=IP("plugin");function Wc(e){return hNe.get(e,"state",{},!0)}function FP(e,t){for(var n=[],o=null,r=e[js](),s;r;){var i=r[Um]();if(i){o&&Xe(o[fd])&&Xe(i[gs])&&o[fd](i);var a=!1;Xe(i[Gs])?a=i[Gs]():(s=Wc(i),a=s[Gs]),a||n[wt](i),o=i,r=r[js]()}}Ne(n,function(l){var c=e[In]();l[Aa](e.getCfg(),c,t,e[js]()),s=Wc(l),!l[In]&&!s[In]&&(s[In]=c),s[Gs]=!0,delete s[Vs]})}function OP(e){return e.sort(function(t,n){var o=0;if(n){var r=Xe(n[gs]);Xe(t[gs])?o=r?t[Ni]-n[Ni]:1:r&&(o=-1)}else o=t?1:-1;return o})}function Gme(e){var t={};return{getName:function(){return t[fr]},setName:function(n){e&&e.setName(n),t[fr]=n},getTraceId:function(){return t[AT]},setTraceId:function(n){e&&e.setTraceId(n),Xm(n)&&(t[AT]=n)},getSpanId:function(){return t[hP]},setSpanId:function(n){e&&e.setSpanId(n),eg(n)&&(t[hP]=n)},getTraceFlags:function(){return t[kT]},setTraceFlags:function(n){e&&e.setTraceFlags(n),t[kT]=n}}}var bNe="TelemetryPluginChain",Vme="_hasRun",jme="_getTelCtx",Qme=0;function _Ne(e,t,n){for(;e;){if(e[Um]()===n)return e;e=e[js]()}return kl([n],t[Sl]||{},t)}function QB(e,t,n,o){var r=null,s=[];o!==null&&(r=o?_Ne(e,n,o):e);var i={_next:l,ctx:{core:function(){return n},diagLog:function(){return $a(n,t)},getCfg:function(){return t},getExtCfg:c,getConfig:u,hasNext:function(){return!!r},getNext:function(){return r},setNext:function(m){r=m},iterate:p,onComplete:a}};function a(m,g){for(var f=[],_=2;_0&&(Ne(g,function(f){try{f.func[So](f.self,f.args)}catch(_){Ce(n[No],2,73,"Unexpected Exception during onComplete - "+Oe(_))}}),s=[])}return m}function c(m,g,f){g===void 0&&(g={}),f===void 0&&(f=0);var _;if(t){var h=t[$b];h&&m&&(_=h[m])}if(!_)_=g;else if(hr(g)&&f!==0){var v=qb(!0,g,_);t&&f===2&&kt(g,function(y){if(ge(v[y])){var T=t[y];ge(T)||(v[y]=T)}}),_=v}return _}function u(m,g,f){f===void 0&&(f=!1);var _,h=c(m,null);return h&&!ge(h[g])?_=h[g]:t&&!ge(t[g])&&(_=t[g]),ge(_)?f:_}function p(m){for(var g;g=i._next();){var f=g[Um]();f&&m(f)}}return i}function Xo(e,t,n,o){var r=QB(e,t,n,o),s=r.ctx;function i(l){var c=r._next();return c&&c[gs](l,s),!c}function a(l,c){return l===void 0&&(l=null),At(l)&&(l=kl(l,t,n,c)),Xo(l||s[js](),t,n,c)}return s[an]=i,s[Gc]=a,s}function Vb(e,t,n){var o=t[Sl]||{},r=QB(e,o,t,n),s=r.ctx;function i(l){var c=r._next();return c&&c.unload(s,l),!c}function a(l,c){return l===void 0&&(l=null),At(l)&&(l=kl(l,o,t,c)),Vb(l||s[js](),t,c)}return s[an]=i,s[Gc]=a,s}function HT(e,t,n){var o=t[Sl]||{},r=QB(e,o,t,n),s=r.ctx;function i(l){return s.iterate(function(c){Xe(c[qm])&&c[qm](s,l)})}function a(l,c){return l===void 0&&(l=null),At(l)&&(l=kl(l,o,t,c)),HT(l||s[js](),t,c)}return s[an]=i,s[Gc]=a,s}function kl(e,t,n,o){var r=null,s=!o;if(At(e)&&e[ot]>0){var i=null;Ne(e,function(a){if(!s&&o===a&&(s=!0),s&&a&&Xe(a[gs])){var l=yNe(a,t,n);r||(r=l),i&&i._setNext(l),i=l}})}return o&&!r?kl([o],t,n):r}function yNe(e,t,n){var o=null,r=Xe(e[gs]),s=Xe(e[fd]),i;e?i=e[ka]+"-"+e[Ni]+"-"+Qme++:i="Unknown-0-"+Qme++;var a={getPlugin:function(){return e},getNext:function(){return o},processTelemetry:u,unload:p,update:m,_id:i,_setNext:function(g){o=g}};function l(){var g;return e&&Xe(e[jme])&&(g=e[jme]()),g||(g=Xo(a,t,n)),g}function c(g,f,_,h,v){var y=!1,T=e?e[ka]:bNe,I=g[Vme];return I||(I=g[Vme]={}),g.setNext(o),e&&Td(g[In](),function(){return T+":"+_},function(){I[i]=!0;try{var E=o?o._id:yt;E&&(I[E]=!1),y=f(g)}catch(D){var q=o?I[o._id]:!0;q&&(y=!0),(!o||!q)&&Ce(g[Di](),1,73,"Plugin ["+T+"] failed during "+_+" - "+Oe(D)+", run flags: "+Oe(I))}},h,v),y}function u(g,f){f=f||l();function _(h){if(!e||!r)return!1;var v=Wc(e);return v[Vs]||v[IT]?!1:(s&&e[fd](o),e[gs](g,h),!0)}c(f,_,"processTelemetry",function(){return{item:g}},!g.sync)||f[an](g)}function p(g,f){function _(){var h=!1;if(e){var v=Wc(e),y=e[In]||v[In];e&&(!y||y===g.core())&&!v[Vs]&&(v[In]=null,v[Vs]=!0,v[Gs]=!1,e[Vs]&&e[Vs](g,f)===!0&&(h=!0))}return h}c(g,_,"unload",function(){},f[Pa])||g[an](f)}function m(g,f){function _(){var h=!1;if(e){var v=Wc(e),y=e[In]||v[In];e&&(!y||y===g.core())&&!v[Vs]&&e[qm]&&e[qm](g,f)===!0&&(h=!0)}return h}c(g,_,"update",function(){},!1)||g[an](f)}return Al(a)}var BT=500,vNe="Channel has invalid priority - ";function Yme(e,t,n){t&&At(t)&&t[ot]>0&&(t=t.sort(function(o,r){return o[Ni]-r[Ni]}),Ne(t,function(o){o[Ni]0&&Ne(c,function(_){if(_&&_.queue[ot]>0){var h=_.chain,v=u[Gc](h);v[Om](f),p(v)}else g--}),f()}function r(c,u){var p=u||{reason:0};return o(e,c,function(m){m[an](p)},function(){c[an](p)}),!0}function s(c,u){var p=u||{reason:0,isAsync:!1};return o(e,c,function(m){m[an](p)},function(){c[an](p),a=!1}),!0}function i(c){var u=null;return e&&e[ot]>0&&Ne(e,function(p){if(p&&p.queue[ot]>0&&(Ne(p.queue,function(m){if(m[ka]===c)return u=m,-1}),u))return-1}),u}var a=!1,l={identifier:"ChannelControllerPlugin",priority:BT,initialize:function(c,u,p,m){a=!0,Ne(e,function(g){g&&g.queue[ot]>0&&FP(Xo(g.chain,c,u),p)})},isInitialized:function(){return a},processTelemetry:function(c,u){o(e,u||n(),function(p){p[an](c)},function(){u[an](c)})},update:r,pause:function(){o(e,n(),function(c){c.iterate(function(u){u.pause&&u.pause()})},null)},resume:function(){o(e,n(),function(c){c.iterate(function(u){u.resume&&u.resume()})},null)},teardown:s,getChannel:i,flush:function(c,u,p,m){var g=1,f=!1,_=null;m=m||5e3;function h(){g--,f&&g===0&&(_&&(clearTimeout(_),_=null),u&&u(f),u=null)}return o(e,n(),function(v){v.iterate(function(y){if(y[Ib]){g++;var T=!1;y[Ib](c,function(){T=!0,h()},p)||T||(c&&_==null?_=setTimeout(function(){_=null,h()},m):h())}})},function(){f=!0,h()}),!0},_setQueue:function(c){e=c}};return l}function Kme(e,t,n){var o=[];if(e&&Ne(e,function(s){return Yme(o,s,n)}),t){var r=[];Ne(t,function(s){s[Ni]>BT&&r[wt](s)}),Yme(o,r,n)}return o}function UP(){var e=[];function t(o){o&&e[wt](o)}function n(o,r){Ne(e,function(s){try{s(o,r)}catch(i){Ce(o[Di](),2,73,"Unexpected error calling unload handler - "+Oe(i))}}),e=[]}return{add:t,run:n}}var Cd="getPlugin",Da=function(){function e(){var t=this,n,o,r,s,i;c(),ft(e,t,function(u){u[Aa]=function(p,m,g,f){l(p,m,f),n=!0},u[Vs]=function(p,m){var g,f=u[In];if(!f||p&&f!==p[In]())return;var _,h=!1,v=p||Vb(null,f,r&&r[Cd]?r[Cd]():r),y=m||(g={reason:0},g[Pa]=!1,g);function T(){if(!h){h=!0,s.run(v,m);var I=i;i=[],Ne(I,function(E){E.rm()}),_===!0&&v[an](y),c()}}return!u[Lb]||u[Lb](v,y,T)!==!0?T():_=!0,_},u[qm]=function(p,m){var g=u[In];if(!g||p&&g!==p[In]())return;var f,_=!1,h=p||HT(null,g,r&&r[Cd]?r[Cd]():r),v=m||{reason:0};function y(){_||(_=!0,l(h.getCfg(),h.core(),h[js]()))}return!u._doUpdate||u._doUpdate(h,v,y)!==!0?y():f=!0,f},u._addHook=function(p){p&&(At(p)?i=i.concat(p):i[wt](p))},Ub(u,"_addUnloadCb",function(){return s},"add")}),t[Di]=function(u){return a(u)[Di]()},t[Gs]=function(){return n},t.setInitialized=function(u){n=u},t[fd]=function(u){r=u},t[an]=function(u,p){p?p[an](u):r&&Xe(r[gs])&&r[gs](u,null)},t._getTelCtx=a;function a(u){u===void 0&&(u=null);var p=u;if(!p){var m=o||Xo(null,{},t[In]);r&&r[Cd]?p=m[Gc](null,r[Cd]):p=m[Gc](null,r)}return p}function l(u,p,m){u&&qt(u,$b,[],null,ge),!m&&p&&(m=p[uP]()[js]());var g=r;r&&r[Cd]&&(g=r[Cd]()),t[In]=p,o=Xo(m,u,p,g)}function c(){n=!1,t[In]=null,o=null,r=null,i=[],s=UP()}}return e.__ieDyn=1,e}();var Jme=function(e){Do(t,e);function t(){var n=e.call(this)||this;n.identifier="TelemetryInitializerPlugin",n.priority=199;var o,r;s(),ft(t,n,function(i,a){i.addTelemetryInitializer=function(l){var c={id:o++,fn:l};r[wt](c);var u={remove:function(){Ne(r,function(p,m){if(p.id===c.id)return r[Ia](m,1),-1})}};return u},i[gs]=function(l,c){for(var u=!1,p=r[ot],m=0;m0){var U=o;o=[],Ne(U,function(se){K()[an](se)})}},D.pollInternalLogs=function(U){return h=U||null,q=!1,E&&(clearInterval(E),E=null),le(!0)};function le(U){if(!E&&!q){var se=U||D[No]&&D[No].queue[ot]>0;if(se){var fe=Ys(t.diagnosticLogInterval);(!fe||!(fe>0))&&(fe=1e4),E=setInterval(function(){clearInterval(E),E=0,Ut()},fe)}}return E}D[JH]=function(){q=!0,E&&(clearInterval(E),E=0,Ut())},Vc(D,function(){return _},["addTelemetryInitializer"]),D.unload=function(U,se,fe){var L;U===void 0&&(U=!0),n||Pn(xNe),f&&Pn(Xme);var M=(L={reason:50},L[Pa]=U,L.flushComplete=!1,L),Z=Vb(Pt(),D);Z[Om](function(){we(),se&&se(M)},D);function ae(Pe){M.flushComplete=Pe,f=!0,y.run(Z,M),D[JH](),Z[an](M)}Ut(),sn(U,ae,6,fe)||ae(!1)},D[Um]=Ke,D.addPlugin=function(U,se,fe,L){if(!U){L&&L(!1),X(tge);return}var M=Ke(U[ka]);if(M&&!se){L&&L(!1),X("Plugin ["+U[ka]+"] is already loaded!");return}var Z={reason:16};function ae(it){c[wt](U),Z.added=[U],Le(Z),L&&L(!0)}if(M){var Pe=[M.plugin],Je={reason:2,isAsync:!!fe};nn(Pe,Je,function(it){it?(Z.removed=Pe,Z.reason|=32,ae(!0)):L&&L(!1)})}else ae(!1)},D.evtNamespace=function(){return v},D[Ib]=sn,D.getTraceCtx=function(U){return I||(I=Gme()),I},D.setTraceCtx=function(U){I=U||null},Ub(D,"addUnloadCb",function(){return y},"add");function we(){n=!1,t=qb(!0,{},TNe),D[Sl]=t,D[No]=new Ym(t),D[ST]=[],_=new Jme,o=[],r=null,s=null,i=null,a=null,l=null,u=null,c=[],p=null,m=null,g=null,f=!1,h=null,v=Zo("AIBaseCore",!0),y=UP(),I=null}function K(){var U=Xo(Pt(),t,D);return U[Om](le),U}function Le(U){var se=SNe(D[No],BT,c);u=se[In],l=null;var fe=se.all;if(g=Al(Kme(m,fe,D)),p){var L=Fo(fe,p);L!==-1&&fe[Ia](L,1),L=Fo(u,p),L!==-1&&u[Ia](L,1),p._setQueue(g)}else p=Wme(g,D);fe[wt](p),u[wt](p),D[ST]=OP(fe),p[Aa](t,D,fe);var M=K();FP(M,fe),D[ST]=Al(OP(u||[])).slice(),U&&Q(U)}function Ke(U){var se,fe=null,L=null;return Ne(D[ST],function(M){if(M[ka]===U&&M!==p&&M!==_)return L=M,-1}),!L&&p&&(L=p.getChannel(U)),L&&(fe=(se={plugin:L},se[CT]=function(M){Wc(L)[IT]=!M},se.isEnabled=function(){var M=Wc(L);return!M[Vs]&&!M[IT]},se.remove=function(M,Z){var ae;M===void 0&&(M=!0);var Pe=[L],Je=(ae={reason:1},ae[Pa]=M,ae);nn(Pe,Je,function(it){it&&Le({reason:32,removed:Pe}),Z&&Z(it)})},se)),fe}function Pt(){if(!l){var U=(u||[]).slice();Fo(U,_)===-1&&U[wt](_),l=kl(OP(U),t,D)}return l}function nn(U,se,fe){if(U&&U[ot]>0){var L=kl(U,t,D),M=Vb(L,D);M[Om](function(){var Z=!1,ae=[];Ne(c,function(Je,it){ege(Je,U)?Z=!0:ae[wt](Je)}),c=ae;var Pe=[];m&&(Ne(m,function(Je,it){var on=[];Ne(Je,function($n){ege($n,U)?Z=!0:on[wt]($n)}),Pe[wt](on)}),m=Pe),fe&&fe(Z),le()}),M[an](se)}else fe(!1)}function Ut(){if(D[No]&&D[No].queue){var U=D[No].queue.slice(0);D[No].queue[ot]=0,Ne(U,function(se){var fe,L=(fe={},fe[fr]=h||"InternalMessageId: "+se[Pb],fe.iKey=Ys(t[cP]),fe.time=Qs(new Date),fe.baseType=Qc.dataType,fe.baseData={message:se[gd]},fe);D.track(L)})}}function sn(U,se,fe,L){return p?p[Ib](U,se,fe||6,L):(se&&se(!1),!0)}function uo(){var U=Ys(t.disableDbgExt);U===!0&&T&&(r[Fm](T),T=null),r&&!T&&U!==!0&&(T=ame(t),r[Nm](T))}function Lt(){var U=Ys(t.enablePerfMgr);!U&&i&&(i=null),U&&On(t,nB,wNe)}function cn(){var U=On(t,$b,{});U.NotificationManager=r}function Q(U){var se=HT(Pt(),D);se[Om](le),(!D._updateHook||D._updateHook(se,U)!==!0)&&se[an](U)}function X(U){var se=D[No];se?(Ce(se,2,73,U),le()):Pn(U)}})}return e.__ieDyn=1,e}();function qP(e,t,n,o){Ne(e,function(r){if(r&&r[t])if(n)setTimeout(function(){return o(r)},0);else try{o(r)}catch{}})}var oge=function(){function e(t){this.listeners=[];var n=!!(t||{}).perfEvtsSendAll;ft(e,this,function(o){o[Nm]=function(r){o.listeners[wt](r)},o[Fm]=function(r){for(var s=Fo(o[Hm],r);s>-1;)o.listeners[Ia](s,1),s=Fo(o[Hm],r)},o[Db]=function(r){qP(o[Hm],Db,!0,function(s){s[Db](r)})},o[yd]=function(r,s){qP(o[Hm],yd,!0,function(i){i[yd](r,s)})},o[Nb]=function(r,s){qP(o[Hm],Nb,s,function(i){i[Nb](r,s)})},o[vd]=function(r){r&&(n||!r[ET]())&&qP(o[Hm],vd,!1,function(s){r[Pa]?setTimeout(function(){return s[vd](r)},0):s[vd](r)})}})}return e.__ieDyn=1,e}();var YB=function(e){Do(t,e);function t(){var n=e.call(this)||this;return ft(t,n,function(o,r){o[Aa]=function(a,l,c,u){r[Aa](a,l,c||new Ym(a),u||new oge(a))},o.track=function(a){Td(o[zm](),function(){return"AppInsightsCore:track"},function(){a===null&&(i(a),Pn("Invalid telemetry item")),s(a),r.track(a)},function(){return{item:a}},!a.sync)};function s(a){ge(a[fr])&&(i(a),Pn("telemetry name required"))}function i(a){var l=o[wT]();l&&l[yd]([a],2)}}),n}return t.__ieDyn=1,t}(nge);var rge="_aiHooks",sge=["req","rsp","hkErr","fnErr"];function KB(e,t){if(e)for(var n=0;n=0&&r<=2&&KB(e,function(s,i){var a=s.cbks,l=a[sge[r]];if(l){t.ctx=function(){var p=o[i]=o[i]||{};return p};try{l[Cl](t.inst,n)}catch(p){var c=t.err;try{var u=a[sge[2]];u&&(t.err=p,u[Cl](t.inst,n))}catch{}finally{t.err=c}}}})}function ENe(e){return function(){var t,n=this,o=arguments,r=e.h,s=(t={},t[fr]=e.n,t.inst=n,t.ctx=null,t.set=c,t),i=[],a=l([s],o);s.evt=Ln("event");function l(p,m){return KB(m,function(g){p[wt](g)}),p}function c(p,m){o=l([],o),o[p]=m,a=l([s],o)}WB(r,s,a,i,0);var u=e.f;if(u)try{s.rslt=u[Cl](n,o)}catch(p){throw s.err=p,WB(r,s,a,i,3),p}return WB(r,s,a,i,1),s.rslt}}function JB(e,t,n,o){var r=null;return e&&(vP(e,t)?r=e:n&&(r=JB(aB(e),t,o,!1))),r}function ZB(e,t,n){return e?zT(e[kn],t,n,!1):null}function ige(e,t,n,o){var r=n&&n[rge];if(!r){r={i:0,n:t,f:n,h:[]};var s=ENe(r);s[rge]=r,e[t]=s}var i={id:r.i,cbks:o,rm:function(){var a=this.id;KB(r.h,function(l,c){if(l.id===a)return r.h[Ia](c,1),1})}};return r.i++,r.h[wt](i),i}function zT(e,t,n,o,r){if(o===void 0&&(o=!0),e&&t&&n){var s=JB(e,t,o,r);if(s){var i=s[t];if(typeof i===Mi)return ige(s,t,i,n)}}return null}function jb(e,t,n,o,r){if(e&&t&&n){var s=JB(e,t,o,r)||e;if(s)return ige(s,t,s[t],n)}return null}var Na="Microsoft_ApplicationInsights_BypassAjaxInstrumentation",Qb="sampleRate",Yb="ProcessLegacy",GT="http.method",Ed="https://dc.services.visualstudio.com",Kc="/v2/track",Yn="not_specified",HP="iKey";function tg(e){var t=null;if(Xe(Event))t=new Event(e);else{var n=Qn();n&&n.createEvent&&(t=n.createEvent("Event"),t.initEvent(e,!0,!0))}return t}var Jc="split",ht="length",Il="toLowerCase",VT="ingestionendpoint",Fa="toString",BP="removeItem",to="name",Zc="message",age="count";var jT="stringify",QT="pathname",XB="correlationHeaderExcludePatterns",Wb="indexOf";var ng="exceptions",Hi="parsedStack",br="properties",_r="measurements",og="sizeInBytes",Pl="typeName",rg="severityLevel",zP="problemGroup",GP="isManual",e3="CreateFromInterface",sg="assembly",YT="hasFullStack",WT="level",ig="method",Kb="fileName",Jb="line",ag="duration",t3="receivedResponse",lg="substring",lge="sanitizeKeyAndAddUniqueness",cge="sanitizeException",uge="sanitizeProperties",dge="sanitizeMeasurements";var KT="";function Bi(e,t){return t===void 0&&(t=!1),e==null?t:e.toString()[Il]()==="true"}function Js(e){(isNaN(e)||e<0)&&(e=0),e=Math.round(e);var t=KT+e%1e3,n=KT+Math.floor(e/1e3)%60,o=KT+Math.floor(e/(1e3*60))%60,r=KT+Math.floor(e/(1e3*60*60))%24,s=Math.floor(e/(1e3*60*60*24));return t=t[ht]===1?"00"+t:t[ht]===2?"0"+t:t,n=n[ht]<2?"0"+n:n,o=o[ht]<2?"0"+o:o,r=r[ht]<2?"0"+r:r,(s>0?s+".":KT)+r+":"+o+":"+n+"."+t}function n3(e,t,n,o,r){return!r&&We(e)&&(e==="Script error."||e==="Script error")}var Zt=mB({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 Zb=TP({LocalStorage:0,SessionStorage:1}),ONe=TP({AI:0,AI_AND_W3C:1,W3C:2});var Ad=void 0,kd=void 0;function o3(){return JT()?VP(Zb.LocalStorage):null}function VP(e){try{if(ge($i()))return null;var t=new Date()[Fa](),n=Ln(e===Zb.LocalStorage?"localStorage":"sessionStorage");n.setItem(t,t);var o=n.getItem(t)!==t;if(n[BP](t),!o)return n}catch{}return null}function r3(){return Id()?VP(Zb.SessionStorage):null}function s3(){Ad=!1,kd=!1}function i3(){Ad=JT(!0),kd=Id(!0)}function JT(e){return(e||Ad===void 0)&&(Ad=!!VP(Zb.LocalStorage)),Ad}function a3(e,t){var n=o3();if(n!==null)try{return n.getItem(t)}catch(o){Ad=!1,Ce(e,2,1,"Browser failed read of local storage. "+Tt(o),{exception:Oe(o)})}return null}function l3(e,t,n){var o=o3();if(o!==null)try{return o.setItem(t,n),!0}catch(r){Ad=!1,Ce(e,2,3,"Browser failed write to local storage. "+Tt(r),{exception:Oe(r)})}return!1}function c3(e,t){var n=o3();if(n!==null)try{return n[BP](t),!0}catch(o){Ad=!1,Ce(e,2,5,"Browser failed removal of local storage item. "+Tt(o),{exception:Oe(o)})}return!1}function Id(e){return(e||kd===void 0)&&(kd=!!VP(Zb.SessionStorage)),kd}function Xb(e,t){var n=r3();if(n!==null)try{return n.getItem(t)}catch(o){kd=!1,Ce(e,2,2,"Browser failed read of session storage. "+Tt(o),{exception:Oe(o)})}return null}function ZT(e,t,n){var o=r3();if(o!==null)try{return o.setItem(t,n),!0}catch(r){kd=!1,Ce(e,2,4,"Browser failed write to session storage. "+Tt(r),{exception:Oe(r)})}return!1}function u3(e,t){var n=r3();if(n!==null)try{return n[BP](t),!0}catch(o){kd=!1,Ce(e,2,6,"Browser failed removal of session storage item. "+Tt(o),{exception:Oe(o)})}return!1}var _s;function jP(e,t,n){var o=t[ht],r=d3(e,t);if(r[ht]!==o){for(var s=0,i=r;n[i]!==void 0;)s++,i=r[lg](0,147)+p3(s);r=i}return r}function d3(e,t){var n;return t&&(t=jn(t[Fa]()),t[ht]>150&&(n=t[lg](0,150),Ce(e,2,57,"name is too long. It has been truncated to 150 characters.",{name:t},!0))),n||t}function jt(e,t,n){n===void 0&&(n=1024);var o;return t&&(n=n||1024,t=jn(t),t.toString()[ht]>n&&(o=t[Fa]()[lg](0,n),Ce(e,2,61,"string value is too long. It has been truncated to "+n+" characters.",{value:t},!0))),o||t}function Ll(e,t){return WP(e,t,2048,66)}function e_(e,t){var n;return t&&t[ht]>32768&&(n=t[lg](0,32768),Ce(e,2,56,"message is too long, it has been truncated to 32768 characters.",{message:t},!0)),n||t}function QP(e,t){var n;if(t){var o=""+t;o[ht]>32768&&(n=o[lg](0,32768),Ce(e,2,52,"exception is too long, it has been truncated to 32768 characters.",{exception:t},!0))}return n||t}function yr(e,t){if(t){var n={};kt(t,function(o,r){if(hr(r)&&Ma())try{r=Eo()[jT](r)}catch(s){Ce(e,2,49,"custom property is not valid",{exception:s},!0)}r=jt(e,r,8192),o=jP(e,o,n),n[o]=r}),t=n}return t}function vr(e,t){if(t){var n={};kt(t,function(o,r){o=jP(e,o,n),n[o]=r}),t=n}return t}function YP(e,t){return t&&WP(e,t,128,69)[Fa]()}function WP(e,t,n,o){var r;return t&&(t=jn(t),t[ht]>n&&(r=t[lg](0,n),Ce(e,2,o,"input is too long, it has been truncated to "+n+" characters.",{data:t},!0))),r||t}function p3(e){var t="00"+e;return t.substr(t[ht]-3)}var pge=(_s={MAX_NAME_LENGTH:150,MAX_ID_LENGTH:128,MAX_PROPERTY_LENGTH:8192,MAX_STRING_LENGTH:1024,MAX_URL_LENGTH:2048,MAX_MESSAGE_LENGTH:32768,MAX_EXCEPTION_LENGTH:32768},_s[lge]=jP,_s.sanitizeKey=d3,_s.sanitizeString=jt,_s.sanitizeUrl=Ll,_s.sanitizeMessage=e_,_s[cge]=QP,_s[uge]=yr,_s[dge]=vr,_s.sanitizeId=YP,_s.sanitizeInput=WP,_s.padNumber=p3,_s.trim=jn,_s);var mge=Qn()||{},gge=0,UNe=[null,null,null,null,null];function XT(e){var t=gge,n=UNe,o=n[t];return mge.createElement?n[t]||(o=n[t]=mge.createElement("a")):o={host:m3(e,!0)},o.href=e,t++,t>=n[ht]&&(t=0),gge=t,o}function KP(e){var t,n=XT(e);return n&&(t=n.href),t}function JP(e,t){return e?e.toUpperCase()+" "+t:t}function m3(e,t){var n=ZP(e,t)||"";if(n){var o=n.match(/(www\d{0,5}\.)?([^\/:]{1,256})(:\d{1,20})?/i);if(o!=null&&o[ht]>3&&We(o[2])&&o[2][ht]>0)return o[2]+(o[3]||"")}return n}function ZP(e,t){var n=null;if(e){var o=e.match(/(\w{1,150}):\/\/([^\/:]{1,256})(:\d{1,20})?/i);if(o!=null&&o[ht]>2&&We(o[2])&&o[2][ht]>0&&(n=o[2]||"",t&&o[ht]>2)){var r=(o[1]||"")[Il](),s=o[3]||"";(r==="http"&&s===":80"||r==="https"&&s===":443")&&(s=""),n+=s}}return n}var HNe=[Ed+Kc,"https://breeze.aimon.applicationinsights.io"+Kc,"https://dc-int.services.visualstudio.com"+Kc];function cg(e){return Fo(HNe,e[Il]())!==-1}var Xc={correlationIdPrefix:"cid-v1:",canIncludeCorrelationHeader:function(e,t,n){if(!t||e&&e.disableCorrelationHeaders)return!1;if(e&&e[XB]){for(var o=0;o0},getCorrelationContext:function(e){if(e){var t=Xc.getCorrelationContextValue(e,Zt[1]);if(t&&t!==Xc.correlationIdPrefix)return t}},getCorrelationContextValue:function(e,t){if(e)for(var n=e[Jc](","),o=0;o0){var a=XT(t);if(r=a.host,!s)if(a[QT]!=null){var l=a.pathname[ht]===0?"/":a[QT];l.charAt(0)!=="/"&&(l="/"+l),i=a[QT],s=jt(e,n?n+" "+l:l)}else s=jt(e,t)}else r=o,s=o;return{target:r,name:s,data:i}}function t_(){var e=Oi();if(e&&e.now&&e.timing){var t=e.now()+e.timing.navigationStart;if(t>0)return t}return Oo()}function Ao(e,t){var n=null;return e!==0&&t!==0&&!ge(e)&&!ge(t)&&(n=t-e),n}function ug(e,t){var n=e||{};return{getName:function(){return n[to]},setName:function(o){t&&t.setName(o),n[to]=o},getTraceId:function(){return n.traceID},setTraceId:function(o){t&&t.setTraceId(o),Xm(o)&&(n.traceID=o)},getSpanId:function(){return n.parentID},setSpanId:function(o){t&&t.setSpanId(o),eg(o)&&(n.parentID=o)},getTraceFlags:function(){return n.traceFlags},setTraceFlags:function(o){t&&t.setTraceFlags(o),n.traceFlags=o}}}var BNe=";",zNe="=";function g3(e){if(!e)return{};var t=e[Jc](BNe),n=uB(t,function(r,s){var i=s[Jc](zNe);if(i[ht]===2){var a=i[0][Il](),l=i[1];r[a]=l}return r},{});if(fs(n)[ht]>0){if(n.endpointsuffix){var o=n.location?n.location+".":"";n[VT]=n[VT]||"https://"+o+"dc."+n.endpointsuffix}n[VT]=n[VT]||Ed}return n}var XP=function(){function e(t,n,o){var r=this,s=this;s.ver=1,s.sampleRate=100,s.tags={},s[to]=jt(t,o)||Yn,s.data=n,s.time=Qs(new Date),s.aiDataContract={time:1,iKey:1,name:1,sampleRate:function(){return r.sampleRate===100?4:1},tags:1,data:1}}return e}();var Zs=function(){function e(t,n,o,r){this.aiDataContract={ver:1,name:1,properties:0,measurements:0};var s=this;s.ver=2,s[to]=jt(t,n)||Yn,s[br]=yr(t,o),s[_r]=vr(t,r)}return e.envelopeType="Microsoft.ApplicationInsights.{0}.Event",e.dataType="EventData",e}();var GNe="",n_="error",ys="stack",h3="stackDetails",hge="errorSrc",b3="message",yge="description";function _3(e,t){var n=e;return n&&!We(n)&&(JSON&&JSON[jT]?(n=JSON[jT](e),t&&(!n||n==="{}")&&(Xe(e[Fa])?n=e[Fa]():n=""+e)):n=""+e+" - (Missing JSON.stringify)"),n||""}function vge(e,t){var n=e;return e&&(n&&!We(n)&&(n=e[b3]||e[yge]||n),n&&!We(n)&&(n=_3(n,!0)),e.filename&&(n=n+" @"+(e.filename||"")+":"+(e.lineno||"?")+":"+(e.colno||"?"))),t&&t!=="String"&&t!=="Object"&&t!=="Error"&&(n||"")[Wb](t)===-1&&(n=t+": "+n),n||""}function VNe(e){try{if(hr(e))return"hasFullStack"in e&&"typeName"in e}catch{}return!1}function jNe(e){try{if(hr(e))return"ver"in e&&"exceptions"in e&&"properties"in e}catch{}return!1}function bge(e){return e&&e.src&&We(e.src)&&e.obj&&At(e.obj)}function dg(e){var t=e||"";We(t)||(We(t[ys])?t=t[ys]:t=""+t);var n=t[Jc](` `);return{src:t,obj:n}}function QNe(e){for(var t=[],n=e[Jc](` `),o=0;o0){t=[];var o=0,r=0;Ne(n,function(f){var _=f[Fa]();if(y3.regex.test(_)){var h=new y3(_,o++);r+=h[og],t.push(h)}});var s=32*1024;if(r>s)for(var i=0,a=t[ht]-1,l=0,c=i,u=a;is){var g=u-c+1;t.splice(c,g);break}c=i,u=a,i++,a--}}return t}function eL(e){var t="";if(e&&(t=e.typeName||e[to]||"",!t))try{var n=/function (.{1,200})\(/,o=n.exec(e.constructor[Fa]());t=o&&o[ht]>1?o[1]:""}catch{}return t}function f3(e){if(e)try{if(!We(e)){var t=eL(e),n=_3(e,!1);return(!n||n==="{}")&&(e[n_]&&(e=e[n_],t=eL(e)),n=_3(e,!0)),n[Wb](t)!==0&&t!=="String"?t+":"+n:n}}catch{}return""+(e||"")}var er=function(){function e(t,n,o,r,s,i){this.aiDataContract={ver:1,exceptions:1,severityLevel:0,properties:0,measurements:0};var a=this;a.ver=2,jNe(n)?(a[ng]=n[ng]||[],a[br]=n[br],a[_r]=n[_r],n[rg]&&(a[rg]=n[rg]),n.id&&(a.id=n.id),n[zP]&&(a[zP]=n[zP]),ge(n[GP])||(a[GP]=n[GP])):(o||(o={}),a[ng]=[new _ge(t,n,o)],a[br]=yr(t,o),a[_r]=vr(t,r),s&&(a[rg]=s),i&&(a.id=i))}return e.CreateAutoException=function(t,n,o,r,s,i,a,l){var c,u=eL(s||i||t);return c={},c[Zc]=vge(t,u),c.url=n,c.lineNumber=o,c.columnNumber=r,c.error=f3(s||i||t),c.evt=f3(i||t),c[Pl]=u,c.stackDetails=xge(a||s||i),c.errorSrc=l,c},e.CreateFromInterface=function(t,n,o,r){var s=n[ng]&&jm(n[ng],function(a){return _ge[e3](t,a)}),i=new e(t,Vn(Vn({},n),{exceptions:s}),o,r);return i},e.prototype.toInterface=function(){var t,n=this,o=n.exceptions,r=n.properties,s=n.measurements,i=n.severityLevel,a=n.problemGroup,l=n.id,c=n.isManual,u=o instanceof Array&&jm(o,function(p){return p.toInterface()})||void 0;return t={ver:"4.0"},t[ng]=u,t.severityLevel=i,t.properties=r,t.measurements=s,t.problemGroup=a,t.id=l,t.isManual=c,t},e.CreateSimpleException=function(t,n,o,r,s,i){var a;return{exceptions:[(a={},a[YT]=!0,a.message=t,a.stack=s,a.typeName=n,a)]}},e.envelopeType="Microsoft.ApplicationInsights.{0}.Exception",e.dataType="ExceptionData",e.formatError=f3,e}();var _ge=function(){function e(t,n,o){this.aiDataContract={id:0,outerId:0,typeName:1,message:1,hasFullStack:0,stack:0,parsedStack:2};var r=this;if(VNe(n))r[Pl]=n[Pl],r[Zc]=n[Zc],r[ys]=n[ys],r[Hi]=n[Hi]||[],r[YT]=n[YT];else{var s=n,i=s&&s.evt;Vm(s)||(s=s[n_]||i||s),r[Pl]=jt(t,eL(s))||Yn,r[Zc]=e_(t,vge(n||s,r[Pl]))||Yn;var a=n[h3]||xge(n);r[Hi]=WNe(a),At(r[Hi])&&jm(r[Hi],function(l){return l[sg]=jt(t,l[sg])}),r[ys]=QP(t,YNe(a)),r.hasFullStack=At(r.parsedStack)&&r.parsedStack[ht]>0,o&&(o[Pl]=o[Pl]||r[Pl])}}return e.prototype.toInterface=function(){var t,n=this,o=n[Hi]instanceof Array&&jm(n[Hi],function(s){return s.toInterface()}),r=(t={id:n.id,outerId:n.outerId,typeName:n[Pl],message:n[Zc],hasFullStack:n[YT],stack:n[ys]},t[Hi]=o||void 0,t);return r},e.CreateFromInterface=function(t,n){var o=n[Hi]instanceof Array&&jm(n[Hi],function(s){return y3[e3](s)})||n[Hi],r=new e(t,Vn(Vn({},n),{parsedStack:o}));return r},e}();var y3=function(){function e(t,n){this.aiDataContract={level:1,method:1,assembly:0,fileName:0,line:0};var o=this;if(o[og]=0,typeof t=="string"){var r=t;o[WT]=n,o[ig]=GNe,o[sg]=jn(r),o[Kb]="",o[Jb]=0;var s=r.match(e.regex);s&&s[ht]>=5&&(o[ig]=jn(s[2])||o[ig],o[Kb]=jn(s[4]),o[Jb]=parseInt(s[5])||0)}else o[WT]=t[WT],o[ig]=t[ig],o[sg]=t[sg],o[Kb]=t[Kb],o[Jb]=t[Jb],o[og]=0;o.sizeInBytes+=o.method[ht],o.sizeInBytes+=o.fileName[ht],o.sizeInBytes+=o.assembly[ht],o[og]+=e.baseSize,o.sizeInBytes+=o.level.toString()[ht],o.sizeInBytes+=o.line.toString()[ht]}return e.CreateFromInterface=function(t){return new e(t,null)},e.prototype.toInterface=function(){var t=this;return{level:t[WT],method:t[ig],assembly:t[sg],fileName:t[Kb],line:t[Jb]}},e.regex=/^([\s]+at)?[\s]{0,50}([^\@\()]+?)[\s]{0,50}(\@|\()([^\(\n]+):([0-9]+):([0-9]+)(\)?)$/,e.baseSize=58,e}();var Tge=function(){function e(){this.aiDataContract={name:1,kind:0,value:1,count:0,min:0,max:0,stdDev:0},this.kind=0}return e}();var Xs=function(){function e(t,n,o,r,s,i,a,l,c){this.aiDataContract={ver:1,metrics:1,properties:0};var u=this;u.ver=2;var p=new Tge;p[age]=r>0?r:void 0,p.max=isNaN(i)||i===null?void 0:i,p.min=isNaN(s)||s===null?void 0:s,p[to]=jt(t,n)||Yn,p.value=o,p.stdDev=isNaN(a)||a===null?void 0:a,u.metrics=[p],u[br]=yr(t,l),u[_r]=vr(t,c)}return e.envelopeType="Microsoft.ApplicationInsights.{0}.Metric",e.dataType="MetricData",e}();var $r=function(){function e(t,n,o,r,s,i,a){this.aiDataContract={ver:1,name:0,url:0,duration:0,properties:0,measurements:0,id:0};var l=this;l.ver=2,l.id=YP(t,a),l.url=Ll(t,o),l[to]=jt(t,n)||Yn,isNaN(r)||(l[ag]=Js(r)),l[br]=yr(t,s),l[_r]=vr(t,i)}return e.envelopeType="Microsoft.ApplicationInsights.{0}.Pageview",e.dataType="PageviewData",e}();var ei=function(){function e(t,n,o,r,s,i,a,l,c,u,p,m){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=n,g[ag]=Js(s),g.success=i,g.resultCode=a+"",g.type=jt(t,c);var f=fge(t,o,l,r);g.data=Ll(t,r)||f.data,g.target=jt(t,f.target),u&&(g.target="".concat(g.target," | ").concat(u)),g[to]=jt(t,f[to]),g[br]=yr(t,p),g[_r]=vr(t,m)}return e.envelopeType="Microsoft.ApplicationInsights.{0}.RemoteDependency",e.dataType="RemoteDependencyData",e}();var Oa=function(){function e(t,n,o,r,s){this.aiDataContract={ver:1,message:1,severityLevel:0,properties:0};var i=this;i.ver=2,n=n||Yn,i[Zc]=e_(t,n),i[br]=yr(t,r),i[_r]=vr(t,s),o&&(i[rg]=o)}return e.envelopeType="Microsoft.ApplicationInsights.{0}.Message",e.dataType="MessageData",e}();var Ua=function(){function e(t,n,o,r,s,i,a){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 l=this;l.ver=2,l.url=Ll(t,o),l[to]=jt(t,n)||Yn,l[br]=yr(t,s),l[_r]=vr(t,i),a&&(l.domProcessing=a.domProcessing,l[ag]=a[ag],l.networkConnect=a.networkConnect,l.perfTotal=a.perfTotal,l[t3]=a[t3],l.sentRequest=a.sentRequest)}return e.envelopeType="Microsoft.ApplicationInsights.{0}.PageviewPerformance",e.dataType="PageviewPerformanceData",e}();var Rl=function(){function e(t,n){this.aiDataContract={baseType:1,baseData:1},this.baseType=t,this.baseData=n}return e}();function Ld(e){var t="ai."+e+".";return function(n){return t+n}}var ew=Ld("application"),ko=Ld("device"),tL=Ld("location"),o_=Ld("operation"),v3=Ld("session"),Pd=Ld("user"),pg=Ld("cloud"),tw=Ld("internal"),r_=function(e){Do(t,e);function t(){return e.call(this)||this}return t}(pB({applicationVersion:ew("ver"),applicationBuild:ew("build"),applicationTypeId:ew("typeId"),applicationId:ew("applicationId"),applicationLayer:ew("layer"),deviceId:ko("id"),deviceIp:ko("ip"),deviceLanguage:ko("language"),deviceLocale:ko("locale"),deviceModel:ko("model"),deviceFriendlyName:ko("friendlyName"),deviceNetwork:ko("network"),deviceNetworkName:ko("networkName"),deviceOEMName:ko("oemName"),deviceOS:ko("os"),deviceOSVersion:ko("osVersion"),deviceRoleInstance:ko("roleInstance"),deviceRoleName:ko("roleName"),deviceScreenResolution:ko("screenResolution"),deviceType:ko("type"),deviceMachineName:ko("machineName"),deviceVMName:ko("vmName"),deviceBrowser:ko("browser"),deviceBrowserVersion:ko("browserVersion"),locationIp:tL("ip"),locationCountry:tL("country"),locationProvince:tL("province"),locationCity:tL("city"),operationId:o_("id"),operationName:o_("name"),operationParentId:o_("parentId"),operationRootId:o_("rootId"),operationSyntheticSource:o_("syntheticSource"),operationCorrelationVector:o_("correlationVector"),sessionId:v3("id"),sessionIsFirst:v3("isFirst"),sessionIsNew:v3("isNew"),userAccountAcquisitionDate:Pd("accountAcquisitionDate"),userAccountId:Pd("accountId"),userAgent:Pd("userAgent"),userId:Pd("id"),userStoreRegion:Pd("storeRegion"),userAuthUserId:Pd("authUserId"),userAnonymousUserAcquisitionDate:Pd("anonUserAcquisitionDate"),userAuthenticatedUserAcquisitionDate:Pd("authUserAcquisitionDate"),cloudName:pg("name"),cloudRole:pg("role"),cloudRoleVer:pg("roleVer"),cloudRoleInstance:pg("roleInstance"),cloudEnvironment:pg("environment"),cloudLocation:pg("location"),cloudDeploymentUnit:pg("deploymentUnit"),internalNodeName:tw("nodeName"),internalSdkVersion:tw("sdkVersion"),internalAgentVersion:tw("agentVersion"),internalSnippet:tw("snippet"),internalSdkSrc:tw("sdkSrc")}));function zi(e,t,n,o,r,s){var i;n=jt(o,n)||Yn,(ge(e)||ge(t)||ge(n))&&Pn("Input doesn't contain all required fields");var a="";e[HP]&&(a=e[HP],delete e[HP]);var l=(i={},i[to]=n,i.time=Qs(new Date),i.iKey=a,i.ext=s||{},i.tags=[],i.data={},i.baseType=t,i.baseData=e,i);return ge(r)||kt(r,function(c,u){l.data[c]=u}),l}var wge=function(){function e(){}return e.create=zi,e}();var tr={UserExt:"user",DeviceExt:"device",TraceExt:"trace",WebExt:"web",AppExt:"app",OSExt:"os",SessionExt:"ses",SDKExt:"sdk"},Xt=new r_;var Rd="AppInsightsPropertiesPlugin",nw="AppInsightsChannelPlugin",x3="ApplicationInsightsAnalytics";var ow="toString",nL="disableExceptionTracking",rw="autoTrackPageVisitTime",oL="overridePageViewDuration",rL="enableUnhandledPromiseRejectionTracking",sw="samplingPercentage",iw="isStorageUseDisabled",aw="isBrowserLinkTrackingEnabled",sL="enableAutoRouteTracking",iL="namePrefix",aL="disableFlushOnBeforeUnload";var Uo="core",eu="dataType",Md="envelopeType",vs="diagLog",$d="track",s_="trackPageView",lw="trackPreviousPageVisit",tu="sendPageViewInternal",cw="sendPageViewPerformanceInternal",i_="populatePageViewPerformanceEvent",Dd="href",T3="sendExceptionInternal",lL="exception",a_="error",cL="_onerror",uL="errorSrc",dL="lineNumber",pL="columnNumber",w3="message",mL="CreateAutoException",uw="addTelemetryInitializer",Ml="duration",Nd="length",gL="isPerformanceTimingSupported",fL="getPerformanceTiming",l_="navigationStart",dw="shouldCollectDuration",hL="isPerformanceTimingDataReady",Sge="getEntriesByType",c_="responseStart",Cge="requestStart",pw="loadEventEnd",bL="responseEnd",mw="connectEnd",S3="pageVisitStartTime";var _L=null;function e2e(){if(_L==null)try{_L=!!(self&&self instanceof WorkerGlobalScope)}catch{_L=!1}return _L}var Ege=function(){function e(t,n,o,r){ft(e,this,function(s){var i=null,a=[],l=!1,c;o&&(c=o.logger);function u(g){o&&o.flush(g)}function p(){i||(i=setTimeout(function(){i=null;var g=a.slice(0),f=!1;a=[],Ne(g,function(_){_()?f=!0:a.push(_)}),a[Nd]>0&&p(),f&&u(!0)},100))}function m(g){a.push(g),p()}s[s_]=function(g,f){var _=g.name;if(ge(_)||typeof _!="string"){var h=Qn();_=g.name=h&&h.title||""}var v=g.uri;if(ge(v)||typeof v!="string"){var y=hs();v=g.uri=y&&y[Dd]||""}if(!r[gL]()){t[tu](g,f),u(!0),e2e()||Ce(c,2,25,"trackPageView: navigation timing API used for calculation of page duration is not supported in this browser. This page view will be collected without duration and timing info.");return}var T=!1,I,E=r[fL]()[l_];E>0&&(I=Ao(E,+new Date),r[dw](I)||(I=void 0));var q;!ge(f)&&!ge(f[Ml])&&(q=f[Ml]),(n||!isNaN(q))&&(isNaN(q)&&(f||(f={}),f[Ml]=I),t[tu](g,f),u(!0),T=!0);var D=6e4;f||(f={}),m(function(){var le=!1;try{if(r[hL]()){le=!0;var we={name:_,uri:v};r[i_](we),!we.isValid&&!T?(f[Ml]=I,t[tu](g,f)):(T||(f[Ml]=we.durationMs,t[tu](g,f)),l||(t[cw](we,f),l=!0))}else E>0&&Ao(E,+new Date)>D&&(le=!0,T||(f[Ml]=D,t[tu](g,f)))}catch(K){Ce(c,1,38,"trackPageView failed on page load calculation: "+Tt(K),{exception:Oe(K)})}return le})},s.teardown=function(g,f){if(i){clearTimeout(i),i=null;var _=a.slice(0),h=!1;a=[],Ne(_,function(v){v()&&(h=!0)})}}})}return e.__ieDyn=1,e}();var t2e=36e5,Age=["googlebot","adsbot-google","apis-google","mediapartners-google"];function Ige(){var e=Oi();return e&&!!e.timing}function n2e(){var e=Oi();return e&&e.getEntriesByType&&e.getEntriesByType("navigation")[Nd]>0}function o2e(){var e=Oi(),t=e?e.timing:0;return t&&t.domainLookupStart>0&&t[l_]>0&&t[c_]>0&&t[Cge]>0&&t[pw]>0&&t[bL]>0&&t[mw]>0&&t.domLoading>0}function kge(){return Ige()?Oi().timing:null}function r2e(){return n2e()?Oi()[Sge]("navigation")[0]:null}function s2e(){for(var e=[],t=0;t=t2e)return!1;return!0}var Pge=function(){function e(t){var n=this,o=$a(t);ft(e,this,function(r){r[i_]=function(s){s.isValid=!1;var i=r2e(),a=kge(),l=0,c=0,u=0,p=0,m=0;(i||a)&&(i?(l=i[Ml],c=i.startTime===0?i[mw]:Ao(i.startTime,i[mw]),u=Ao(i.requestStart,i[c_]),p=Ao(i[c_],i[bL]),m=Ao(i.responseEnd,i[pw])):(l=Ao(a[l_],a[pw]),c=Ao(a[l_],a[mw]),u=Ao(a.requestStart,a[c_]),p=Ao(a[c_],a[bL]),m=Ao(a.responseEnd,a[pw])),l===0?Ce(o,2,10,"error calculating page view performance.",{total:l,network:c,request:u,response:p,dom:m}):n[dw](l,c,u,p,m)?l=100)&&(e[sw]=100),e[iw]=Bi(e[iw]),e[aw]=Bi(e[aw]),e[sL]=Bi(e[sL]),e[iL]=e[iL]||"",e.enableDebug=Bi(e.enableDebug),e[aL]=Bi(e[aL]),e.disableFlushOnUnload=Bi(e.disableFlushOnUnload,e[aL]),e}function c2e(e){yn(e[iw])||(e[iw]?s3():i3())}var yL=function(e){Do(t,e);function t(){var n=e.call(this)||this;n.identifier=x3,n.priority=180,n.autoRoutePVDelay=500;var o,r,s,i,a,l,c,u,p,m,g,f,_,h,v=0,y,T,I;return ft(t,n,function(E,q){var D=q._addHook;cn(),E.getCookieMgr=function(){return Zm(E[Uo])},E.processTelemetry=function(Q,X){E.processNext(Q,X)},E.trackEvent=function(Q,X){try{var U=zi(Q,Zs[eu],Zs[Md],E[vs](),X);E[Uo][$d](U)}catch(se){Lt(2,39,"trackTrace failed, trace will not be collected: "+Tt(se),{exception:Oe(se)})}},E.startTrackEvent=function(Q){try{o.start(Q)}catch(X){Lt(1,29,"startTrackEvent failed, event will not be collected: "+Tt(X),{exception:Oe(X)})}},E.stopTrackEvent=function(Q,X,U){try{o.stop(Q,void 0,X,U)}catch(se){Lt(1,30,"stopTrackEvent failed, event will not be collected: "+Tt(se),{exception:Oe(se)})}},E.trackTrace=function(Q,X){try{var U=zi(Q,Oa[eu],Oa[Md],E[vs](),X);E[Uo][$d](U)}catch(se){Lt(2,39,"trackTrace failed, trace will not be collected: "+Tt(se),{exception:Oe(se)})}},E.trackMetric=function(Q,X){try{var U=zi(Q,Xs[eu],Xs[Md],E[vs](),X);E[Uo][$d](U)}catch(se){Lt(1,36,"trackMetric failed, metric will not be collected: "+Tt(se),{exception:Oe(se)})}},E[s_]=function(Q,X){try{var U=Q||{};s[s_](U,Vn(Vn(Vn({},U.properties),U.measurements),X)),E.config[rw]&&a[lw](U.name,U.uri)}catch(se){Lt(1,37,"trackPageView failed, page view will not be collected: "+Tt(se),{exception:Oe(se)})}},E[tu]=function(Q,X,U){var se=Qn();se&&(Q.refUri=Q.refUri===void 0?se.referrer:Q.refUri);var fe=zi(Q,$r[eu],$r[Md],E[vs](),X,U);E[Uo][$d](fe),v=0},E[cw]=function(Q,X,U){var se=zi(Q,Ua[eu],Ua[Md],E[vs](),X,U);E[Uo][$d](se)},E.trackPageViewPerformance=function(Q,X){var U=Q||{};try{i[i_](U),E[cw](U,X)}catch(se){Lt(1,37,"trackPageViewPerformance failed, page view will not be collected: "+Tt(se),{exception:Oe(se)})}},E.startTrackPage=function(Q){try{if(typeof Q!="string"){var X=Qn();Q=X&&X.title||""}r.start(Q)}catch(U){Lt(1,31,"startTrackPage failed, page view may not be collected: "+Tt(U),{exception:Oe(U)})}},E.stopTrackPage=function(Q,X,U,se){try{if(typeof Q!="string"){var fe=Qn();Q=fe&&fe.title||""}if(typeof X!="string"){var L=hs();X=L&&L[Dd]||""}r.stop(Q,X,U,se),E.config[rw]&&a[lw](Q,X)}catch(M){Lt(1,32,"stopTrackPage failed, page view will not be collected: "+Tt(M),{exception:Oe(M)})}},E[T3]=function(Q,X,U){var se=Q&&(Q[lL]||Q[a_])||Vm(Q)&&Q||{name:Q&&typeof Q,message:Q||Yn};Q=Q||{};var fe=new er(E[vs](),se,Q.properties||X,Q.measurements,Q.severityLevel,Q.id).toInterface(),L=zi(fe,er[eu],er[Md],E[vs](),X,U);E[Uo][$d](L)},E.trackException=function(Q,X){Q&&!Q[lL]&&Q[a_]&&(Q[lL]=Q[a_]);try{E[T3](Q,X)}catch(U){Lt(1,35,"trackException failed, exception will not be collected: "+Tt(U),{exception:Oe(U)})}},E[cL]=function(Q){var X=Q&&Q[a_],U=Q&&Q.evt;try{if(!U){var se=Ws();se&&(U=se[a2e])}var fe=Q&&Q.url||(Qn()||{}).URL,L=Q[uL]||"window.onerror@"+fe+":"+(Q[dL]||0)+":"+(Q[pL]||0),M={errorSrc:L,url:fe,lineNumber:Q[dL]||0,columnNumber:Q[pL]||0,message:Q[w3]};n3(Q.message,Q.url,Q.lineNumber,Q.columnNumber,Q[a_])?Ke(er[mL]("Script error: The browser's same-origin policy prevents us from getting the details of this exception. Consider using the 'crossorigin' attribute.",fe,Q[dL]||0,Q[pL]||0,X,U,null,L),M):(Q[uL]||(Q[uL]=L),E.trackException({exception:Q,severityLevel:3},M))}catch(ae){var Z=X?X.name+", "+X[w3]:"null";Lt(1,11,"_onError threw exception while logging error, error will not be collected: "+Tt(ae),{exception:Oe(ae),errorString:Z})}},E[uw]=function(Q){if(E[Uo])return E[Uo][uw](Q);l||(l=[]),l.push(Q)},E.initialize=function(Q,X,U,se){if(!E.isInitialized()){ge(X)&&Pn("Error initializing"),q.initialize(Q,X,U,se);try{I=Ks(Zo(E.identifier),X.evtNamespace&&X.evtNamespace()),l&&(Ne(l,function(L){X[uw](L)}),l=null);var fe=le(Q);c2e(fe),i=new Pge(E[Uo]),s=new Ege(n,fe[oL],E[Uo],i),a=new Lge(E[vs](),function(L,M,Z){return K(L,M,Z)}),we(fe,Q),o=new C3(E[vs](),"trackEvent"),o.action=function(L,M,Z,ae,Pe){ae||(ae={}),Pe||(Pe={}),ae.duration=Z[ow](),E.trackEvent({name:L,properties:ae,measurements:Pe})},r=new C3(E[vs](),"trackPageView"),r.action=function(L,M,Z,ae,Pe){ge(ae)&&(ae={}),ae.duration=Z[ow]();var Je={name:L,uri:M,properties:ae,measurements:Pe};E[tu](Je,ae)},jc()&&(Pt(fe),nn(fe))}catch(L){throw E.setInitialized(!1),L}}},E._doTeardown=function(Q,X){s&&s.teardown(Q,X),Sd(window,null,null,I),cn()};function le(Q){var X=Xo(null,Q,E[Uo]),U=E.identifier,se=$ge(Q),fe=E.config=X.getExtCfg(U);return se!==void 0&&kt(se,function(L,M){fe[L]=X.getConfig(U,L,M),fe[L]===void 0&&(fe=M)}),fe}function we(Q,X){c=Q[aw]||X[aw],Le()}function K(Q,X,U){var se={PageName:Q,PageUrl:X};E.trackMetric({name:"PageVisitTime",average:U,max:U,min:U,sampleCount:1},se)}function Le(){if(!u&&c){var Q=["/browserLinkSignalR/","/__browserLink/"],X=function(U){if(c&&U.baseType===ei[eu]){var se=U.baseData;if(se){for(var fe=0;fe=0)return!1}}return!0};E[uw](X),u=!0}}function Ke(Q,X){var U=zi(Q,er[eu],er[Md],E[vs](),X);E[Uo][$d](U)}function Pt(Q){var X=Ws(),U=hs(!0);g=Q[nL],!g&&!f&&!Q.autoExceptionInstrumented&&(D(jb(X,"onerror",{ns:I,rsp:function(se,fe,L,M,Z,ae){!g&&se.rslt!==!0&&E[cL](er[mL](fe,L,M,Z,ae,se.evt))}},!1)),f=!0),uo(Q,X,U)}function nn(Q){var X=Ws(),U=hs(!0);if(p=Q[sL]===!0,X&&p&&SP()){var se=vB();Xe(se.pushState)&&Xe(se.replaceState)&&typeof Event!==ms&&sn(Q,X,se,U)}}function Ut(){var Q=null;if(E[Uo]&&E[Uo].getTraceCtx&&(Q=E[Uo].getTraceCtx(!1)),!Q){var X=E[Uo].getPlugin(Rd);if(X){var U=X.plugin.context;U&&(Q=ug(U.telemetryTrace))}}return Q}function sn(Q,X,U,se){var fe=Q[iL]||"";function L(){p&&gw(X,tg(fe+"locationchange"))}function M(){if(T?(y=T,T=se&&se[Dd]||""):T=se&&se[Dd]||"",p){var Z=Ut();if(Z){Z.setTraceId(bs());var ae="_unknown_";se&&se.pathname&&(ae=se.pathname+(se.hash||"")),Z.setName(jt(E[vs](),ae))}setTimeout(function(Pe){E[s_]({refUri:Pe,properties:{duration:0}})}.bind(this,y),E.autoRoutePVDelay)}}m||(D(jb(U,"pushState",{ns:I,rsp:function(){p&&(gw(X,tg(fe+"pushState")),gw(X,tg(fe+"locationchange")))}},!0)),D(jb(U,"replaceState",{ns:I,rsp:function(){p&&(gw(X,tg(fe+"replaceState")),gw(X,tg(fe+"locationchange")))}},!0)),qi(X,fe+"popstate",L,I),qi(X,fe+"locationchange",M,I),m=!0)}function uo(Q,X,U){_=Q[rL]===!0,_&&!h&&(D(jb(X,"onunhandledrejection",{ns:I,rsp:function(se,fe){_&&se.rslt!==!0&&E[cL](er[mL](l2e(fe),U?U[Dd]:"",0,0,fe,se.evt))}},!1)),h=!0,Q.autoUnhandledPromiseInstrumented=h)}function Lt(Q,X,U,se,fe){E[vs]().throwInternal(Q,X,U,se,fe)}function cn(){o=null,r=null,s=null,i=null,a=null,l=null,c=!1,u=!1,p=!1,m=!1,g=!1,f=!1,_=!1,h=!1,v=0;var Q=hs(!0);y=Q&&Q[Dd]||"",T=null,I=null}Fi(E,"_pageViewManager",function(){return s}),Fi(E,"_pageViewPerformanceManager",function(){return i}),Fi(E,"_pageVisitTimeManager",function(){return a}),Fi(E,"_evtNamespace",function(){return"."+I})}),n}return t.Version="2.8.13",t.getDefaultConfig=$ge,t}(Da);var Fd="duration";var no="tags",vL="deviceType",xs="data",$l="name",mg="traceID",St="length",Od="stringify",Ud="measurements",Gi="dataType",qd="envelopeType",nu="toString",fw="onLine",hw="isOnline",gg="enqueue",Hd="count",ou="push",bw="emitLineDelimitedJson",Bd="clear",fg="batchPayloads",zd="markAsSent",hg="clearSent",_w="bufferOverride",u_="BUFFER_KEY",Gd="SENT_BUFFER_KEY",d_="MAX_BUFFER_SIZE",ru="namePrefix",xL="maxBatchSizeInBytes",bg="triggerSend",xr="diagLog",E3="onunloadDisableBeacon",TL="isBeaconApiDisabled",p_="_sender",ln="_senderConfig",A3="enableSessionStorageBuffer",Vd="_buffer",k3="samplingPercentage",yw="instrumentationKey",jd="endpointUrl",I3="customHeaders",m_="disableXhr",P3="onunloadDisableFetch",wL="disableTelemetry",SL="baseType",g_="sampleRate",L3="convertUndefined",Dge="_xhrReadyStateChange",Vi="_onError",CL="_onPartialSuccess",vw="_onSuccess",xw="itemsAccepted",Nge="itemsReceived",f_="isRetryDisabled",EL="setRequestHeader",R3="maxBatchInterval",M3="eventsSendRequest",$3="disableInstrumentationKeyValidation",AL="getSamplingScore",Fge="getHashCodeScore";var D3="baseType",vn="baseData",qo="properties",Oge="true";function oo(e,t,n){return qt(e,t,n,Ob)}function u2e(e,t,n){var o=n[no]=n[no]||{},r=t.ext=t.ext||{},s=t[no]=t[no]||[],i=r.user;i&&(oo(o,Xt.userAuthUserId,i.authId),oo(o,Xt.userId,i.id||i.localId));var a=r.app;a&&oo(o,Xt.sessionId,a.sesId);var l=r.device;l&&(oo(o,Xt.deviceId,l.id||l.localId),oo(o,Xt[vL],l.deviceClass),oo(o,Xt.deviceIp,l.ip),oo(o,Xt.deviceModel,l.model),oo(o,Xt[vL],l[vL]));var c=t.ext.web;if(c){oo(o,Xt.deviceLanguage,c.browserLang),oo(o,Xt.deviceBrowserVersion,c.browserVer),oo(o,Xt.deviceBrowser,c.browser);var u=n[xs]=n[xs]||{},p=u[vn]=u[vn]||{},m=p[qo]=p[qo]||{};oo(m,"domain",c.domain),oo(m,"isManual",c.isManual?Oge:null),oo(m,"screenRes",c.screenRes),oo(m,"userConsent",c.userConsent?Oge:null)}var g=r.os;g&&oo(o,Xt.deviceOS,g[$l]);var f=r.trace;f&&(oo(o,Xt.operationParentId,f.parentID),oo(o,Xt.operationName,jt(e,f[$l])),oo(o,Xt.operationId,f[mg]));for(var _={},h=s[St]-1;h>=0;h--){var v=s[h];kt(v,function(T,I){_[T]=I}),s.splice(h,1)}kt(s,function(T,I){_[T]=I});var y=Vn(Vn({},o),_);y[Xt.internalSdkVersion]||(y[Xt.internalSdkVersion]="javascript:".concat(d2e.Version)),n[no]=xP(y)}function Qd(e,t,n){ge(e)||kt(e,function(o,r){LT(r)?n[o]=r:We(r)?t[o]=r:Ma()&&(t[o]=Eo()[Od](r))})}function _g(e,t){ge(e)||kt(e,function(n,o){e[n]=o||t})}function yg(e,t,n,o){var r=new XP(e,o,t);oo(r,"sampleRate",n[Qb]),(n[vn]||{}).startTime&&(r.time=Qs(n[vn].startTime)),r.iKey=n.iKey;var s=n.iKey.replace(/-/g,"");return r[$l]=r[$l].replace("{0}",s),u2e(e,n,r),n[no]=n[no]||[],xP(r)}function vg(e,t){ge(t[vn])&&Ce(e,1,46,"telemetryItem.baseData cannot be null.")}var d2e={Version:"2.8.13"};function Uge(e,t,n){vg(e,t);var o=t[vn][Ud]||{},r=t[vn][qo]||{};Qd(t[xs],r,o),ge(n)||_g(r,n);var s=t[vn];if(ge(s))return Ui(e,"Invalid input for dependency data"),null;var i=s[qo]&&s[qo][GT]?s[qo][GT]:"GET",a=new ei(e,s.id,s.target,s[$l],s[Fd],s.success,s.responseCode,i,s.type,s.correlationContext,r,o),l=new Rl(ei[Gi],a);return yg(e,ei[qd],t,l)}function N3(e,t,n){vg(e,t);var o={},r={};t[D3]!==Zs[Gi]&&(o.baseTypeSource=t[D3]),t[D3]===Zs[Gi]?(o=t[vn][qo]||{},r=t[vn][Ud]||{}):t[vn]&&Qd(t[vn],o,r),Qd(t[xs],o,r),ge(n)||_g(o,n);var s=t[vn][$l],i=new Zs(e,s,o,r),a=new Rl(Zs[Gi],i);return yg(e,Zs[qd],t,a)}function qge(e,t,n){vg(e,t);var o=t[vn][Ud]||{},r=t[vn][qo]||{};Qd(t[xs],r,o),ge(n)||_g(r,n);var s=t[vn],i=er.CreateFromInterface(e,s,r,o),a=new Rl(er[Gi],i);return yg(e,er[qd],t,a)}function Hge(e,t,n){vg(e,t);var o=t[vn],r=o[qo]||{},s=o[Ud]||{};Qd(t[xs],r,s),ge(n)||_g(r,n);var i=new Xs(e,o[$l],o.average,o.sampleCount,o.min,o.max,o.stdDev,r,s),a=new Rl(Xs[Gi],i);return yg(e,Xs[qd],t,a)}function Bge(e,t,n){vg(e,t);var o,r=t[vn];!ge(r)&&!ge(r[qo])&&!ge(r[qo][Fd])?(o=r[qo][Fd],delete r[qo][Fd]):!ge(t[xs])&&!ge(t[xs][Fd])&&(o=t[xs][Fd],delete t[xs][Fd]);var s=t[vn],i;((t.ext||{}).trace||{})[mg]&&(i=t.ext.trace[mg]);var a=s.id||i,l=s[$l],c=s.uri,u=s[qo]||{},p=s[Ud]||{};if(ge(s.refUri)||(u.refUri=s.refUri),ge(s.pageType)||(u.pageType=s.pageType),ge(s.isLoggedIn)||(u.isLoggedIn=s.isLoggedIn[nu]()),!ge(s[qo])){var m=s[qo];kt(m,function(_,h){u[_]=h})}Qd(t[xs],u,p),ge(n)||_g(u,n);var g=new $r(e,l,c,o,u,p,a),f=new Rl($r[Gi],g);return yg(e,$r[qd],t,f)}function zge(e,t,n){vg(e,t);var o=t[vn],r=o[$l],s=o.uri||o.url,i=o[qo]||{},a=o[Ud]||{};Qd(t[xs],i,a),ge(n)||_g(i,n);var l=new Ua(e,r,s,void 0,i,a,o),c=new Rl(Ua[Gi],l);return yg(e,Ua[qd],t,c)}function Gge(e,t,n){vg(e,t);var o=t[vn].message,r=t[vn].severityLevel,s=t[vn][qo]||{},i=t[vn][Ud]||{};Qd(t[xs],s,i),ge(n)||_g(s,n);var a=new Oa(e,o,r,s,i),l=new Rl(Oa[Gi],a);return yg(e,Oa[qd],t,l)}function Vge(e,t){Sd(e,null,null,t)}function jge(e){var t,n=Qn(),o=Mr(),r=!1,s=!0,i=Ks(Zo("OfflineListener"),e);try{if(l(Ws())&&(r=!0),n){var a=n.body||n;a.ononline&&l(a)&&(r=!0)}r&&o&&!ge(o[fw])&&(s=o[fw])}catch{r=!1}function l(g){var f=!1;return g&&(f=qi(g,"online",c,i),f&&qi(g,"offline",u,i)),f}function c(){s=!0}function u(){s=!1}function p(){var g=!0;return r?g=s:o&&!ge(o[fw])&&(g=o[fw]),g}function m(){var g=Ws();if(g&&r){if(Vge(g,i),n){var f=n.body||n;yn(f.ononline)||Vge(f,i)}r=!1}}return t={},t[hw]=p,t.isListening=function(){return r},t.unload=m,t}var Qge=function(){function e(t,n){var o=[],r=!1;this._get=function(){return o},this._set=function(s){return o=s,o},ft(e,this,function(s){s[gg]=function(i){if(s[Hd]()>=n.eventsLimitInMem()){r||(Ce(t,2,105,"Maximum in-memory buffer size reached: "+s[Hd](),!0),r=!0);return}o[ou](i)},s[Hd]=function(){return o[St]},s.size=function(){for(var i=o[St],a=0;a0){var a=n[bw]()?i.join(` `):"["+i.join(",")+"]";return a}return null}})}return e.__ieDyn=1,e}(),Yge=function(e){Do(t,e);function t(n,o){var r=e.call(this,n,o)||this;return ft(t,r,function(s,i){s[zd]=function(a){i[Bd]()},s[hg]=function(a){}}),r}return t.__ieDyn=1,t}(Qge);var Wge=function(e){Do(t,e);function t(n,o){var r=e.call(this,n,o)||this,s=!1,i=o[_w]()||{getItem:Xb,setItem:ZT},a=i.getItem,l=i.setItem;return ft(t,r,function(c,u){var p=_(t[u_]),m=_(t[Gd]),g=c._set(p.concat(m));g[St]>t[d_]&&(g[St]=t[d_]),h(t[Gd],[]),h(t[u_],g),c[gg]=function(v){if(c[Hd]()>=t[d_]){s||(Ce(n,2,67,"Maximum buffer size reached: "+c[Hd](),!0),s=!0);return}u[gg](v),h(t[u_],c._get())},c[Bd]=function(){u[Bd](),h(t[u_],c._get()),h(t[Gd],[]),s=!1},c[zd]=function(v){h(t[u_],c._set(f(v,c._get())));var y=_(t[Gd]);y instanceof Array&&v instanceof Array&&(y=y.concat(v),y[St]>t[d_]&&(Ce(n,1,67,"Sent buffer reached its maximum size: "+y[St],!0),y[St]=t[d_]),h(t[Gd],y))},c[hg]=function(v){var y=_(t[Gd]);y=f(v,y),h(t[Gd],y)};function f(v,y){var T=[];return Ne(y,function(I){!Xe(I)&&Fo(v,I)===-1&&T[ou](I)}),T}function _(v){var y=v;try{y=o[ru]&&o[ru]()?o[ru]()+"_"+y:y;var T=a(n,y);if(T){var I=Eo().parse(T);if(We(I)&&(I=Eo().parse(I)),I&&At(I))return I}}catch(E){Ce(n,1,42," storage key: "+y+", "+Tt(E),{exception:Oe(E)})}return[]}function h(v,y){var T=v;try{T=o[ru]&&o[ru]()?o[ru]()+"_"+T:T;var I=JSON[Od](y);l(n,T,I)}catch(E){l(n,T,JSON[Od]([])),Ce(n,2,41," storage key: "+T+", "+Tt(E)+". Buffer cleared",{exception:Oe(E)})}}}),r}return t.BUFFER_KEY="AI_buffer",t.SENT_BUFFER_KEY="AI_sentBuffer",t.MAX_BUFFER_SIZE=2e3,t}(Qge);var Kge=function(){function e(t){ft(e,this,function(n){n.serialize=function(i){var a=o(i,"root");try{return Eo()[Od](a)}catch(l){Ce(t,1,48,l&&Xe(l[nu])?l[nu]():"Error serializing object",null,!0)}};function o(i,a){var l="__aiCircularRefCheck",c={};if(!i)return Ce(t,1,48,"cannot serialize object because it is null or undefined",{name:a},!0),c;if(i[l])return Ce(t,2,50,"Circular reference detected while serializing object",{name:a},!0),c;if(!i.aiDataContract){if(a==="measurements")c=s(i,"number",a);else if(a==="properties")c=s(i,"string",a);else if(a==="tags")c=s(i,"string",a);else if(At(i))c=r(i,a);else{Ce(t,2,49,"Attempting to serialize an object which does not implement ISerializable",{name:a},!0);try{Eo()[Od](i),c=i}catch(u){Ce(t,1,48,u&&Xe(u[nu])?u[nu]():"Error serializing object",null,!0)}}return c}return i[l]=!0,kt(i.aiDataContract,function(u,p){var m=Xe(p)?p()&1:p&1,g=Xe(p)?p()&4:p&4,f=p&2,_=i[u]!==void 0,h=hr(i[u])&&i[u]!==null;if(m&&!_&&!f)Ce(t,1,24,"Missing required field specification. The field is required but not present on source",{field:u,name:a});else if(!g){var v=void 0;h?f?v=r(i[u],u):v=o(i[u],u):v=i[u],v!==void 0&&(c[u]=v)}}),delete i[l],c}function r(i,a){var l;if(i)if(!At(i))Ce(t,1,54,`This field was specified as an array in the contract but the item is not an array.\r `,{name:a},!0);else{l=[];for(var c=0;c100||t<0)&&(o.throwInternal(2,58,"Sampling rate is out of range (0..100). Sampling will be disabled, you may be sending too much data which may affect your AI service level.",{samplingRate:t},!0),t=100),this[g_]=t,this.samplingScoreGenerator=new Zge}return e.prototype.isSampledIn=function(t){var n=this[g_],o=!1;return n==null||n>=100||t.baseType===Xs[Gi]?!0:(o=this.samplingScoreGenerator[AL](t)h._senderConfig[xL]()&&h[bg](!0,null,10),Ut())},h.flush=function(L,M,Z){if(L===void 0&&(L=!0),!i){sn();try{h[bg](L,null,Z||1)}catch(ae){Ce(h[xr](),1,22,"flush failed, telemetry will not be collected: "+Tt(ae),{exception:Oe(ae)})}}},h.onunloadFlush=function(){if(!i)if((h._senderConfig[E3]()===!1||h[ln][TL]()===!1)&&xd())try{h[bg](!0,E,2)}catch(L){Ce(h[xr](),1,20,"failed to flush with beacon sender on page unload, telemetry will not be collected: "+Tt(L),{exception:Oe(L)})}else h.flush()},h.addHeader=function(L,M){u[L]=M},h.initialize=function(L,M,Z,ae){h.isInitialized()&&Ce(h[xr](),1,28,"Sender is already initialized"),v.initialize(L,M,Z,ae);var Pe=h._getTelCtx(),Je=h.identifier;l=new Kge(M.logger),o=0,r=null,s=0,h[p_]=null,c=0;var it=h[xr]();_=Ks(Zo("Sender"),M.evtNamespace&&M.evtNamespace()),f=jge(_);var on=efe();kt(on,function(ue,O){h[ln][ue]=function(){var ee=Pe.getConfig(Je,ue,O());return!ee&&ue==="endpointUrl"&&(ee=O()),ee}});var $n=h[ln][A3]()&&!!(h._senderConfig[_w]()||Id());h[Vd]=$n?new Wge(it,h[ln]):new Yge(it,h[ln]),h._sample=new Xge(h[ln][k3](),it),se(L)||Ce(it,1,100,"Invalid Instrumentation key "+L[yw]),!cg(h._senderConfig.endpointUrl())&&h._senderConfig.customHeaders()&&h._senderConfig.customHeaders()[St]>0&&Ne(h[ln][I3](),function(ue){n.addHeader(ue.header,ue.value)});var un=h[ln],G=null;!un[m_]()&&EP()?G=cn:!un[m_]()&&Qm()&&(G=le),!G&&CP()&&(G=K),m=G||le,!un[TL]()&&xd()&&(G=D),h[p_]=G||le,!un[P3]()&&CP(!0)?g=we:xd()?g=D:!un[m_]()&&EP()?g=cn:!un[m_]()&&Qm()?g=le:g=m},h.processTelemetry=function(L,M){M=h._getTelCtx(M);var Z=M[xr]();try{if(h[ln][wL]())return;if(!L){Ce(Z,1,7,"Cannot send empty telemetry");return}if(L.baseData&&!L[SL]){Ce(Z,1,70,"Cannot send telemetry without baseData and baseType");return}if(L[SL]||(L[SL]="EventData"),!h[p_]){Ce(Z,1,28,"Sender was not initialized");return}if(y(L))L[Qb]=h._sample[g_];else{Ce(Z,2,33,"Telemetry item was sampled out and not sent",{SampleRate:h._sample[g_]});return}var ae=h[ln][L3]()||void 0,Pe=L.iKey||h[ln][yw](),Je=t.constructEnvelope(L,Pe,Z,ae);if(!Je){Ce(Z,1,47,"Unable to create an AppInsights envelope");return}var it=!1;if(L[no]&&L[no][Yb]&&(Ne(L[no][Yb],function(G){try{G&&G(Je)===!1&&(it=!0,Ui(Z,"Telemetry processor check returns false"))}catch(ue){Ce(Z,1,64,"One of telemetry initializers failed, telemetry item will not be sent: "+Tt(ue),{exception:Oe(ue)},!0)}}),delete L[no][Yb]),it)return;var on=l.serialize(Je),$n=h[Vd],un=$n.size();un+on[St]>h[ln][xL]()&&(!f||f[hw]())&&h[bg](!0,null,10),$n[gg](on),Ut()}catch(G){Ce(Z,2,12,"Failed adding telemetry to the sender's buffer, some telemetry will be lost: "+Tt(G),{exception:Oe(G)})}h.processNext(L,M)},h[Dge]=function(L,M,Z){L.readyState===4&&T(L.status,M,L.responseURL,Z,Lt(L),kL(L)||L.response)},h[bg]=function(L,M,Z){if(L===void 0&&(L=!0),!i)try{var ae=h[Vd];if(h[ln][wL]())ae[Bd]();else{if(ae[Hd]()>0){var Pe=ae.getItems();U(Z||0,L),M?M.call(n,Pe,L):h[p_](Pe,L)}s=+new Date}sn()}catch(it){var Je=zb();(!Je||Je>9)&&Ce(h[xr](),1,40,"Telemetry transmission failed, some telemetry will be lost: "+Tt(it),{exception:Oe(it)})}},h._doTeardown=function(L,M){h.onunloadFlush(),f.unload(),fe()},h[Vi]=function(L,M,Z){Ce(h[xr](),2,26,"Failed to send telemetry.",{message:M}),h._buffer[hg](L)},h[CL]=function(L,M){for(var Z=[],ae=[],Pe=M.errors.reverse(),Je=0,it=Pe;Je0&&h[vw](L,M[xw]),Z[St]>0&&h[Vi](Z,Lt(null,["partial success",M[xw],"of",M.itemsReceived].join(" "))),ae[St]>0&&(Pt(ae),Ce(h[xr](),2,40,"Partial success. Delivered: "+L[St]+", Failed: "+Z[St]+". Will retry to send "+ae[St]+" our of "+M[Nge]+" items"))},h[vw]=function(L,M){h._buffer[hg](L)},h._xdrOnLoad=function(L,M){var Z=kL(L);if(L&&(Z+""=="200"||Z===""))o=0,h[vw](M,0);else{var ae=Ke(Z);ae&&ae.itemsReceived&&ae.itemsReceived>ae[xw]&&!h[ln][f_]()?h[CL](M,ae):h[Vi](M,Q(L))}};function y(L){return h._sample.isSampledIn(L)}function T(L,M,Z,ae,Pe,Je){var it=null;if(h._appId||(it=Ke(Je),it&&it.appId&&(h._appId=it.appId)),(L<200||L>=300)&&L!==0){if((L===301||L===307||L===308)&&!I(Z)){h[Vi](M,Pe);return}!h[ln][f_]()&&uo(L)?(Pt(M),Ce(h[xr](),2,40,". Response code "+L+". Will retry to send "+M[St]+" items.")):h[Vi](M,Pe)}else if(f&&!f[hw]()){if(!h[ln][f_]()){var on=10;Pt(M,on),Ce(h[xr](),2,40,". Offline - Response Code: ".concat(L,". Offline status: ").concat(!f.isOnline(),". Will retry to send ").concat(M.length," items."))}}else I(Z),L===206?(it||(it=Ke(Je)),it&&!h[ln][f_]()?h[CL](M,it):h[Vi](M,Pe)):(o=0,h[vw](M,ae))}function I(L){return c>=10?!1:!ge(L)&&L!==""&&L!==h[ln][jd]()?(h[ln][jd]=function(){return L},++c,!0):!1}function E(L,M){g?g(L,!1):D(L,M)}function q(L){var M=Mr(),Z=h[Vd],ae=h[ln][jd](),Pe=h._buffer[fg](L),Je=new Blob([Pe],{type:"text/plain;charset=UTF-8"}),it=M.sendBeacon(ae,Je);return it&&(Z[zd](L),h._onSuccess(L,L[St])),it}function D(L,M){if(At(L)&&L[St]>0&&!q(L)){for(var Z=[],ae=0;ae0&&(m&&m(Z,!0),Ce(h[xr](),2,40,". Failed to send telemetry with Beacon API, retried with normal sender."))}}function le(L,M){var Z=new XMLHttpRequest,ae=h[ln][jd]();try{Z[Na]=!0}catch{}Z.open("POST",ae,M),Z[EL]("Content-type","applicationhttps://www.microsoft.com/json"),cg(ae)&&Z[EL](Zt[6],Zt[7]),Ne(fs(u),function(Je){Z[EL](Je,u[Je])}),Z.onreadystatechange=function(){return h._xhrReadyStateChange(Z,L,L[St])},Z.onerror=function(Je){return h[Vi](L,Lt(Z),Je)};var Pe=h._buffer[fg](L);Z.send(Pe),h._buffer[zd](L)}function we(L,M){if(At(L)){for(var Z=L[St],ae=0;ae=M[xw]&&M.itemsReceived-M.itemsAccepted===M.errors[St])return M}}catch(Z){Ce(h[xr](),1,43,"Cannot parse the response. "+Tt(Z),{response:L})}return null}function Pt(L,M){if(M===void 0&&(M=1),!(!L||L[St]===0)){var Z=h[Vd];Z[hg](L),o++;for(var ae=0,Pe=L;ae=200&&+c[ti]<400,g.responseCode=+c[ti],g[Yd]={HttpMethod:c[Nl]},g),_=f[Yd];if(c[Wd]&&(_[Wd]=!0),c[lu]&&(f[iu]=new Date,f[iu].setTime(c[lu])),f2e(c,f),p&&fs(c.requestHeaders)[qa]>0&&(_[Ss]=c[Ss]),m){var h=m();if(h){var v=h[pfe];if(v&&(f.correlationContext=v),h[v_]&&fs(h.headerMap)[qa]>0&&(_.responseHeaders=h[v_]),c[Iw])if(c[ti]>=400){var y=h.type;(y===""||y==="text")&&(_.responseText=h.responseText?h[au]+" - "+h[l]:h[au]),y==="json"&&(_.responseText=h.response?h[au]+" - "+JSON.stringify(h[ML]):h[au])}else c[ti]===0&&(_.responseText=h[au]||"")}}return f},c[Lw]=function(){var u,p=null,m=c[DL];if(m&&(m[__]||m[y_])){p={};var g=p[tr.TraceExt]=(u={},u[Ha]=m[__],u.parentID=m[y_],u);ge(m[ws])||(g[ws]=m[ws])}return p}})}return e.__ieDyn=1,e}();var gfe="ai.ajxmn.",Dw="diagLog",ni="ajaxData",Sg="fetch",Mw="Failed to monitor XMLHttpRequest",Tfe=", monitoring data for this ajax call ",T_=Tfe+"may be incorrect.",ffe=Tfe+"won't be sent.",hfe="Failed to get Request-Context correlation header as it may be not included in the response or not accessible.",bfe="Failed to add custom defined request context as configured call back may missing a null check.",_fe="Failed to calculate the duration of the ",yfe=0;function b2e(){var e=$i();return!e||ge(e.Request)||ge(e.Request[kn])||ge(e[Sg])?null:e[Sg]}var NL=null;function _2e(){if(NL==null)try{NL=!!(self&&self instanceof WorkerGlobalScope)}catch{NL=!1}return NL}function y2e(e){var t=!1;if(Qm()){var n=XMLHttpRequest[kn];t=!ge(n)&&!ge(n.open)&&!ge(n.send)&&!ge(n.abort)}var o=zb();if(o&&o<9&&(t=!1),t)try{var r=new XMLHttpRequest;r[ni]={};var s=XMLHttpRequest[kn].open;XMLHttpRequest[kn].open=s}catch(i){t=!1,Nw(e,15,"Failed to enable XMLHttpRequest monitoring, extension is not supported",{exception:Oe(i)})}return t}function OL(e){var t="";try{e&&e[ni]&&e[ni][Ts]&&(t+="(url: '"+e[ni][Ts]+"')")}catch{}return t}function Nw(e,t,n,o,r){Ce(e[Dw](),1,t,n,o,r)}function w_(e,t,n,o,r){Ce(e[Dw](),2,t,n,o,r)}function $w(e,t,n){return function(o){Nw(e,t,n,{ajaxDiagnosticsMessage:OL(o[h_]),exception:Oe(o.err)})}}function S_(e,t){return e&&t?e.indexOf(t):-1}function vfe(e,t,n){var o={id:t,fn:n};return e.push(o),{remove:function(){Ne(e,function(r,s){if(r.id===o.id)return e.splice(s,1),-1})}}}function wfe(e,t,n,o){var r=!0;return Ne(t,function(s,i){try{s.fn.call(null,n)===!1&&(r=!1)}catch(a){Ce(e&&e.logger,1,64,"Dependency "+o+" [#"+i+"] failed: "+Tt(a),{exception:Oe(a)},!0)}}),r}function v2e(e,t,n,o,r,s){var i=e[qa];if(i>0){var a={core:t,xhr:o,input:r,init:s,traceId:n[Ha],spanId:n[Dl],traceFlags:n[ws],context:n[b_]||{},aborted:!!n[Wd]};wfe(t,e,a,"listener"),n[Ha]=a[__],n[Dl]=a[y_],n[ws]=a[ws],n[b_]=a[b_]}}var FL="*.blob.core.",Sfe=Fb([FL+"windows.net",FL+"chinacloudapi.cn",FL+"cloudapi.de",FL+"usgovcloudapi.net"]),x2e=[/https:\/\/[^\/]*(\.pipe\.aria|aria\.pipe|events\.data|collector\.azure)\.[^\/]+\/(OneCollector\/1|Collector\/3)\.0/i];function G3(){var e={maxAjaxCallsPerView:500,disableAjaxTracking:!1,disableFetchTracking:!1,excludeRequestFromAutoTrackingPatterns:void 0,disableCorrelationHeaders:!1,distributedTracingMode:1,correlationHeaderExcludedDomains:Sfe,correlationHeaderDomains:void 0,correlationHeaderExcludePatterns:void 0,appId:void 0,enableCorsCorrelation:!1,enableRequestHeaderTracking:!1,enableResponseHeaderTracking:!1,enableAjaxErrorStatusText:!1,enableAjaxPerfTracking:!1,maxAjaxPerfLookupAttempts:3,ajaxPerfLookupDelay:25,ignoreHeaders:["Authorization","X-API-Key","WWW-Authenticate"],addRequestContext:void 0,addIntEndpoints:!0};return e}function xfe(){var e=G3();return kt(e,function(t){e[t]=void 0}),e}var V3=function(e){Do(t,e);function t(){var n=e.call(this)||this;n.identifier=t.identifier,n.priority=120;var o,r,s,i,a,l,c,u,p,m,g,f,_,h,v,y,T,I,E,q,D,le,we;return ft(t,n,function(K,Le){var Ke=Le._addHook;Pt(),K.initialize=function(G,ue,O,ee){K.isInitialized()||(Le.initialize(G,ue,O,ee),q=Ks(Zo("ajax"),ue&&ue.evtNamespace&&ue.evtNamespace()),nn(G),cn(),uo(),Ut())},K._doTeardown=function(){Pt()},K.trackDependencyData=function(G,ue){un(we,K[Ba],null,G,ue)},K[IL]=function(G,ue,O,ee){var ie=K._currentWindowHost||s;if(v2e(le,K[Ba],G,ee,ue,O),ue){if(Xc[U3](i,G[Tw](),ie)){O||(O={});var ke=new Headers(O[Kd]||(ue instanceof Request?ue[Kd]||{}:{}));if(m){var Ie="|"+G[Ha]+"."+G[Dl];ke.set(Zt[3],Ie),a&&(G[Ss][Zt[3]]=Ie)}var He=i[ww]||u&&u[ww]();if(He&&(ke.set(Zt[0],Zt[2]+He),a&&(G[Ss][Zt[0]]=Zt[2]+He)),p){var Ue=G[ws];ge(Ue)&&(Ue=1);var vt=qT(UT(G[Ha],G[Dl],Ue));ke.set(Zt[4],vt),a&&(G[Ss][Zt[4]]=vt)}O[Kd]=ke}return O}else if(ee){if(Xc[U3](i,G[Tw](),ie)){if(m){var Ie="|"+G[Ha]+"."+G[Dl];ee[PL](Zt[3],Ie),a&&(G[Ss][Zt[3]]=Ie)}var He=i[ww]||u&&u[ww]();if(He&&(ee[PL](Zt[0],Zt[2]+He),a&&(G[Ss][Zt[0]]=Zt[2]+He)),p){var Ue=G[ws];ge(Ue)&&(Ue=1);var vt=qT(UT(G[Ha],G[Dl],Ue));ee[PL](Zt[4],vt),a&&(G[Ss][Zt[4]]=vt)}}return ee}},K[q3]=function(G,ue,O){if(_===-1||c<_){(i[LL]===2||i[LL]===1)&&typeof G.id=="string"&&G.id[G.id[qa]-1]!=="."&&(G.id+="."),ge(G[iu])&&(G[iu]=new Date);var ee=zi(G,ei.dataType,ei.envelopeType,K[Dw](),ue,O);K[Ba].track(ee)}else c===_&&Nw(K,55,"Maximum ajax per page view limit reached, ajax monitoring is paused until the next trackPageView(). In order to increase the limit set the maxAjaxCallsPerView configuration parameter.",!0);++c},K.addDependencyListener=function(G){return vfe(le,D++,G)},K.addDependencyInitializer=function(G){return vfe(we,D++,G)};function Pt(){var G=hs();o=!1,r=!1,s=G&&G.host&&G.host[xg](),i=t.getEmptyConfig(),a=!1,l=!1,c=0,u=null,p=!1,m=!1,g=null,f=!1,_=0,h=!1,v={},y=!1,T=!1,I=null,E=null,q=null,D=0,le=[],we=[]}function nn(G){var ue=Xo(null,G,K[Ba]);i=xfe();var O=G3();kt(O,function(ke,Ie){i[ke]=ue.getConfig(t.identifier,ke,Ie)});var ee=i[LL];if(a=i[tfe],l=i[nfe],f=i[ofe],_=i[rfe],h=i[sfe],I=[].concat(i[ife]||[],i.addIntEndpoints!==!1?x2e:[]),E=i[afe],m=ee===0||ee===1,p=ee===1||ee===2,f){var ie=G.instrumentationKey||"unkwn";ie[qa]>5?g=gfe+ie.substring(ie[qa]-5)+".":g=gfe+ie+"."}y=!!i[lfe],T=!!i[cfe]}function Ut(){var G=K[Ba].getPlugin(Rd);G&&(u=G.plugin[b_])}function sn(G){var ue=!0;return(G||i.ignoreHeaders)&&Ne(i.ignoreHeaders,function(O){if(O[xg]()===G[xg]())return ue=!1,-1}),ue}function uo(){var G=b2e();if(G){var ue=$i(),O=G.polyfill;!T&&!o?(Ke(zT(ue,Sg,{ns:q,req:function(ee,ie,ke){var Ie;if(!T&&o&&!Q(null,ie,ke)&&!(O&&r)){var He=ee.ctx();Ie=Je(ie,ke);var Ue=K[IL](Ie,ie,ke);Ue!==ke&&ee.set(1,Ue),He.data=Ie}},rsp:function(ee,ie){if(!T){var ke=ee.ctx().data;ke&&(ee.rslt=ee.rslt.then(function(Ie){return on(ee,(Ie||{})[ti],ie,Ie,ke,function(){var He={statusText:(Ie||{})[au],headerMap:null,correlationContext:$n(Ie)};if(h&&Ie){var Ue={};Ie.headers.forEach(function(vt,Cr){sn(Cr)&&(Ue[Cr]=vt)}),He[v_]=Ue}return He}),Ie}).catch(function(Ie){throw on(ee,0,ie,null,ke,null,{error:Ie.message||Oe(Ie)}),Ie}))}},hkErr:$w(K,15,"Failed to monitor Window.fetch"+T_)},!0,_2e())),o=!0):O&&Ke(zT(ue,Sg,{ns:q,req:function(ee,ie,ke){Q(null,ie,ke)}})),O&&(ue[Sg].polyfill=O)}}function Lt(G,ue,O){Ke(ZB(G,ue,O))}function cn(){y2e(K)&&!y&&!r&&(Lt(XMLHttpRequest,"open",{ns:q,req:function(G,ue,O,ee){if(!y){var ie=G[h_],ke=ie[ni];!Q(ie,O)&&X(ie,!0)&&((!ke||!ke.xhrMonitoringState[Sw])&&se(ie,ue,O,ee),fe(ie))}},hkErr:$w(K,15,Mw+".open"+T_)}),Lt(XMLHttpRequest,"send",{ns:q,req:function(G,ue){if(!y){var O=G[h_],ee=O[ni];X(O)&&!ee.xhrMonitoringState[Cw]&&(ae("xhr",ee),ee[lu]=t_(),K[IL](ee,void 0,void 0,O),ee.xhrMonitoringState[Cw]=!0)}},hkErr:$w(K,17,Mw+T_)}),Lt(XMLHttpRequest,"abort",{ns:q,req:function(G){if(!y){var ue=G[h_],O=ue[ni];X(ue)&&!O.xhrMonitoringState[Ew]&&(O[Wd]=1,O.xhrMonitoringState[Ew]=!0)}},hkErr:$w(K,13,Mw+".abort"+T_)}),Lt(XMLHttpRequest,"setRequestHeader",{ns:q,req:function(G,ue,O){if(!y&&a){var ee=G[h_];X(ee)&&sn(ue)&&(ee[ni][Ss][ue]=O)}},hkErr:$w(K,71,Mw+".setRequestHeader"+T_)}),r=!0)}function Q(G,ue,O){var ee=!1,ie=((We(ue)?ue:(ue||{}).url||"")||"")[xg]();if(Ne(I,function(He){var Ue=He;We(He)&&(Ue=new RegExp(He)),ee||(ee=Ue.test(ie))}),ee)return ee;var ke=S_(ie,"?"),Ie=S_(ie,"#");return(ke===-1||Ie!==-1&&Ie=0;qe--){var z=kp[qe];if(z){if(z.entryType==="resource")z.initiatorType===G&&(S_(z[Jd],Ue)!==-1||S_(Ue,z[Jd])!==-1)&&(ar=z);else if(z.entryType==="mark"&&z[Jd]===ie[Jd]){ue[Rw]=ar;break}if(z[iu]=Ie||ue.async===!1?(ie&&Xe(ke.clearMarks)&&ke.clearMarks(ie[Jd]),ue.perfAttempts=vt,O()):setTimeout(Cr,He)}catch(A){ee(A)}})()}function Je(G,ue){var O,ee=U(),ie=ee&&ee[Aw]()||bs(),ke=bs().substr(0,16),Ie=new z3(ie,ke,K[Dw](),(O=K.core)===null||O===void 0?void 0:O.getTraceCtx());Ie[ws]=ee&&ee[kw](),Ie[lu]=t_(),Ie[Iw]=l,G instanceof Request?Ie[Ts]=G?G.url:"":Ie[Ts]=G;var He="GET";ue&&ue[Nl]?He=ue[Nl]:G&&G instanceof Request&&(He=G[Nl]),Ie[Nl]=He;var Ue={};if(a){var vt=new Headers((ue?ue[Kd]:0)||(G instanceof Request?G[Kd]||{}:{}));vt.forEach(function(Cr,ar){sn(ar)&&(Ue[ar]=Cr)})}return Ie[Ss]=Ue,ae(Sg,Ie),Ie}function it(G){var ue="";try{ge(G)||(typeof G=="string"?ue+="(url: '".concat(G,"')"):ue+="(url: '".concat(G.url,"')"))}catch(O){Nw(K,15,"Failed to grab failed fetch diagnostics message",{exception:Oe(O)})}return ue}function on(G,ue,O,ee,ie,ke,Ie){if(!ie)return;function He(Ue,vt,Cr){var ar=Cr||{};ar.fetchDiagnosticsMessage=it(O),vt&&(ar.exception=Oe(vt)),w_(K,Ue,_fe+"fetch call"+ffe,ar)}ie[Tg]=t_(),ie[ti]=ue,Pe(Sg,ie,function(){var Ue=ie[Pw]("Fetch",a,ke),vt;try{E&&(vt=E({status:ue,request:O,response:ee}))}catch{w_(K,104,bfe)}if(Ue){vt!==void 0&&(Ue[Yd]=Vn(Vn({},Ue.properties),vt));var Cr=ie[Lw]();un(we,K[Ba],ie,Ue,null,Cr)}else He(14,null,{requestSentTime:ie[lu],responseFinishedTime:ie[Tg]})},function(Ue){He(18,Ue,null)})}function $n(G){if(G&&G[Kd])try{var ue=G[Kd].get(Zt[0]);return Xc[B3](ue)}catch(O){w_(K,18,hfe,{fetchDiagnosticsMessage:it(G),exception:Oe(O)})}}function un(G,ue,O,ee,ie,ke){var Ie=!0,He=G[qa];if(He>0){var Ue={item:ee,properties:ie,sysProperties:ke,context:O?O[b_]:null,aborted:O?!!O[Wd]:!1};Ie=wfe(ue,G,Ue,"initializer")}Ie&&K[q3](ee,ie,ke)}}),n}return t.prototype.processTelemetry=function(n,o){this.processNext(n,o)},t.prototype.addDependencyInitializer=function(n){return null},t.identifier="AjaxDependencyPlugin",t.getDefaultConfig=G3,t.getEmptyConfig=xfe,t}(Da);var Cfe=function(){function e(){}return e}();var Efe=function(){function e(){this.id="browser",this.deviceClass="Browser"}return e}();var C_="sessionManager",Cg="update",E_="isUserCookieSet",A_="isNewUser",UL="getTraceCtx",Fw="telemetryTrace",qL="applySessionContext",HL="applyApplicationContext",BL="applyDeviceContext",zL="applyOperationContext",GL="applyUserContext",VL="applyOperatingSystemContxt",jL="applyLocationContext",QL="applyInternalContext",za="accountId",k_="sdkExtension",I_="getSessionId",Fl="namePrefix",P_="sessionCookiePostfix",L_="userCookiePostfix",Xd="idLength",ep="getNewId",Eg="length",tp="automaticSession",np="authenticatedId",R_="sessionExpirationMs",Ow="sessionRenewalMs",Ga="config",M_="acquisitionDate",Uw="renewalDate",qw="cookieDomain",$_="join",D_="cookieSeparator",YL="authUserCookieName";var T2e="2.8.13",Afe=function(){function e(t){this.sdkVersion=(t[k_]&&t[k_]()?t[k_]()+"_":"")+"javascript:"+T2e}return e}();var kfe=function(){function e(){}return e}();var w2e="ai_session",j3=function(){function e(){}return e}();var Ife=function(){function e(t,n){var o=this,r,s,i=$a(n),a=Zm(n);ft(e,o,function(l){t||(t={}),Xe(t[R_])||(t[R_]=function(){return e.acquisitionSpan}),Xe(t[Ow])||(t[Ow]=function(){return e.renewalSpan}),l[Ga]=t;var c=l.config[P_]&&l[Ga][P_]()?l.config[P_]():l.config[Fl]&&l[Ga][Fl]()?l[Ga][Fl]():"";r=function(){return w2e+c},l[tp]=new j3,l[Cg]=function(){var _=Oo(),h=!1,v=l[tp];v.id||(h=!u(v,_));var y=l.config[R_]();if(!h&&y>0){var T=l.config[Ow](),I=_-v[M_],E=_-v[Uw];h=I<0||E<0,h=h||I>y,h=h||E>T}h?m(_):(!s||_-s>e.cookieUpdateInterval)&&g(v,_)},l.backup=function(){var _=l[tp];f(_.id,_[M_],_[Uw])};function u(_,h){var v=!1,y=a.get(r());if(y&&Xe(y.split))v=p(_,y);else{var T=a3(i,r());T&&(v=p(_,T))}return v||!!_.id}function p(_,h){var v=!1,y=", session will be reset",T=h.split("|");if(T[Eg]>=2)try{var I=+T[1]||0,E=+T[2]||0;isNaN(I)||I<=0?Ce(i,2,27,"AI session acquisition date is 0"+y):isNaN(E)||E<=0?Ce(i,2,27,"AI session renewal date is 0"+y):T[0]&&(_.id=T[0],_[M_]=I,_[Uw]=E,v=!0)}catch(q){Ce(i,1,9,"Error parsing ai_session value ["+(h||"")+"]"+y+" - "+Tt(q),{exception:Oe(q)})}return v}function m(_){var h=l[Ga]||{},v=(h[ep]?h[ep]():null)||Yc;l.automaticSession.id=v(h[Xd]?h[Xd]():22),l[tp][M_]=_,g(l[tp],_),JT()||Ce(i,2,0,"Browser does not support local storage. Session durations will be inaccurate.")}function g(_,h){var v=_[M_];_[Uw]=h;var y=l[Ga],T=y[Ow](),I=v+y[R_]()-h,E=[_.id,v,h],q=0;I0?q:null,D),s=h}function f(_,h,v){l3(i,r(),[_,h,v][$_]("|"))}})}return e.acquisitionSpan=864e5,e.renewalSpan=18e5,e.cookieUpdateInterval=6e4,e}();var Pfe=function(){function e(t,n,o,r){var s=this;s.traceID=t||bs(),s.parentID=n;var i=hs();!o&&i&&i.pathname&&(o=i.pathname),s.name=jt(r,o)}return e}();function Lfe(e){return!(typeof e!="string"||!e||e.match(/,|;|=| |\|/))}var Rfe=function(){function e(t,n){this.isNewUser=!1,this.isUserCookieSet=!1;var o=$a(n),r=Zm(n),s;ft(e,this,function(i){i[Ga]=t;var a=i.config[L_]&&i[Ga][L_]()?i[Ga][L_]():"";s=function(){return e.userCookieName+a};var l=r.get(s());if(l){i[A_]=!1;var c=l.split(e[D_]);c[Eg]>0&&(i.id=c[0],i[E_]=!!i.id)}function u(){var v=t||{},y=(v[ep]?v[ep]():null)||Yc,T=y(v[Xd]?t[Xd]():22);return T}function p(v){var y=Qs(new Date);i.accountAcquisitionDate=y,i[A_]=!0;var T=[v,y];return T}function m(v){var y=31536e3;i[E_]=r.set(s(),v,y)}if(!i.id){i.id=u();var g=p(i.id);m(g[$_](e[D_]));var f=t[Fl]&&t[Fl]()?t[Fl]()+"ai_session":"ai_session";c3(o,f)}i[za]=t[za]?t[za]():void 0;var _=r.get(e[YL]);if(_){_=decodeURI(_);var h=_.split(e[D_]);h[0]&&(i[np]=h[0]),h[Eg]>1&&h[1]&&(i[za]=h[1])}i.setAuthenticatedUserContext=function(v,y,T){T===void 0&&(T=!1);var I=!Lfe(v)||y&&!Lfe(y);if(I){Ce(o,2,60,"Setting auth user context failed. User auth/account id should be of type string, and not contain commas, semi-colons, equal signs, spaces, or vertical-bars.",!0);return}i[np]=v;var E=i[np];y&&(i[za]=y,E=[i[np],i.accountId][$_](e[D_])),T&&r.set(e[YL],encodeURI(E))},i.clearAuthenticatedUserContext=function(){i[np]=null,i[za]=null,r.del(e[YL])},i[Cg]=function(v){if(i.id!==v||!i[E_]){var y=v||u(),T=p(y);m(T[$_](e[D_]))}}})}return e.cookieSeparator="|",e.userCookieName="ai_user",e.authUserCookieName="ai_authUser",e}();var WL="ext",KL="tags";function N_(e,t){e&&e[t]&&fs(e[t])[Eg]===0&&delete e[t]}var Mfe=function(){function e(t,n,o){var r=this,s=t.logger;this.appId=function(){return null},this[I_]=function(){return null},ft(e,this,function(i){if(i.application=new Cfe,i.internal=new Afe(n),jc()){i[C_]=new Ife(n,t),i.device=new Efe,i.location=new kfe,i.user=new Rfe(n,t);var a=void 0,l=void 0,c;o&&(a=o.getTraceId(),l=o.getSpanId(),c=o.getName()),i[Fw]=new Pfe(a,l,c,s),i.session=new j3}i[I_]=function(){var u=i.session,p=null;if(u&&We(u.id))p=u.id;else{var m=(i[C_]||{})[tp];p=m&&We(m.id)?m.id:null}return p},i[qL]=function(u,p){qt(On(u.ext,tr.AppExt),"sesId",i[I_](),We)},i[VL]=function(u,p){qt(u.ext,tr.OSExt,i.os)},i[HL]=function(u,p){var m=i.application;if(m){var g=On(u,KL);qt(g,Xt.applicationVersion,m.ver,We),qt(g,Xt.applicationBuild,m.build,We)}},i[BL]=function(u,p){var m=i.device;if(m){var g=On(On(u,WL),tr.DeviceExt);qt(g,"localId",m.id,We),qt(g,"ip",m.ip,We),qt(g,"model",m.model,We),qt(g,"deviceClass",m.deviceClass,We)}},i[QL]=function(u,p){var m=i.internal;if(m){var g=On(u,KL);qt(g,Xt.internalAgentVersion,m.agentVersion,We),qt(g,Xt.internalSdkVersion,m.sdkVersion,We),(u.baseType===Qc.dataType||u.baseType===$r.dataType)&&(qt(g,Xt.internalSnippet,m.snippetVer,We),qt(g,Xt.internalSdkSrc,m.sdkSrc,We))}},i[jL]=function(u,p){var m=r.location;m&&qt(On(u,KL,[]),Xt.locationIp,m.ip,We)},i[zL]=function(u,p){var m=i[Fw];if(m){var g=On(On(u,WL),tr.TraceExt,{traceID:void 0,parentID:void 0});qt(g,"traceID",m.traceID,We,ge),qt(g,"name",m.name,We,ge),qt(g,"parentID",m.parentID,We,ge)}},i.applyWebContext=function(u,p){var m=r.web;m&&qt(On(u,WL),tr.WebExt,m)},i[GL]=function(u,p){var m=i.user;if(m){var g=On(u,KL,[]);qt(g,Xt.userAccountId,m[za],We);var f=On(On(u,WL),tr.UserExt);qt(f,"id",m.id,We),qt(f,"authId",m[np],We)}},i.cleanUp=function(u,p){var m=u.ext;m&&(N_(m,tr.DeviceExt),N_(m,tr.UserExt),N_(m,tr.WebExt),N_(m,tr.OSExt),N_(m,tr.AppExt),N_(m,tr.TraceExt))}})}return e.__ieDyn=1,e}();var S2e=function(e){Do(t,e);function t(){var n=e.call(this)||this;n.priority=110,n.identifier=Rd;var o,r,s;return ft(t,n,function(i,a){l(),i.initialize=function(p,m,g,f){a.initialize(p,m,g,f),c(p)},i.processTelemetry=function(p,m){if(!ge(p)){m=i._getTelCtx(m),p.name===$r.envelopeType&&m.diagLog().resetInternalMessageCount();var g=i.context||{};g.session&&typeof i.context.session.id!="string"&&g[C_]&&g[C_][Cg]();var f=g.user;if(f&&!f[E_]&&f[Cg](g.user.id),u(p,m),f&&f[A_]){f[A_]=!1;var _=new Qc(72,(Mr()||{}).userAgent||"");kB(m.diagLog(),1,_)}i.processNext(p,m)}},i._doTeardown=function(p,m){var g=(p||{}).core();if(g&&g[UL]){var f=g[UL](!1);f===r&&g.setTraceCtx(s)}l()};function l(){o=null,r=null,s=null}function c(p){var m=i.identifier,g=i.core,f=Xo(null,p,g),_=t.getDefaultConfig();o=o||{},kt(_,function(h,v){o[h]=function(){return f.getConfig(m,h,v())}}),s=g[UL](!1),i.context=new Mfe(g,o,s),r=ug(i.context[Fw],s),g.setTraceCtx(r),i.context.appId=function(){var h=g.getPlugin(nw);return h?h.plugin._appId:null},i._extConfig=o}function u(p,m){On(p,"tags",[]),On(p,"ext",{});var g=i.context;g[qL](p,m),g[HL](p,m),g[BL](p,m),g[zL](p,m),g[GL](p,m),g[VL](p,m),g.applyWebContext(p,m),g[jL](p,m),g[QL](p,m),g.cleanUp(p,m)}}),n}return t.getDefaultConfig=function(){var n,o,r=null,s=(n={instrumentationKey:function(){return o}},n[za]=function(){return r},n.sessionRenewalMs=function(){return 30*60*1e3},n.samplingPercentage=function(){return 100},n.sessionExpirationMs=function(){return 24*60*60*1e3},n[qw]=function(){return r},n[k_]=function(){return r},n.isBrowserLinkTrackingEnabled=function(){return!1},n.appId=function(){return r},n[I_]=function(){return r},n[Fl]=function(){return o},n[P_]=function(){return o},n[L_]=function(){return o},n[Xd]=function(){return 22},n[ep]=function(){return r},n);return s},t}(Da),Q3=S2e;var $fe="AuthenticatedUserContext",F_="track";var JL="snippet",Dfe="getCookieMgr",Nfe="startTrackPage",Ffe="stopTrackPage",ZL="flush",Ofe="startTrackEvent",Ufe="stopTrackEvent",Y3="addTelemetryInitializer",Nwt=Y3+"s",W3="pollInternalLogs",XL="getPlugin",eR="evtNamespace",qfe=F_+"Event",Hfe=F_+"Trace",Bfe=F_+"Metric",zfe=F_+"PageView",Gfe=F_+"Exception",Vfe=F_+"DependencyData",jfe="set"+$fe,Qfe="clear"+$fe;var Yfe="updateSnippetDefinitions",Wfe="loadAppInsights",K3="endpointUrl";var Hw="diagnosticLogInterval";var Kfe="disableFlushOnBeforeUnload",Jfe="disableFlushOnUnload";var cu="config",ji="context",Bw="push",tR="version",op="queue",nR="connectionString",J3="instrumentationKey",zw="appInsights",Z3="disableIkeyDeprecationMessage",X3="getTransmissionControls",O_="onunloadFlush",e4="addHousekeepingBeforeUnload",Gw="indexOf";var t4,Zfe=[JL,"dependencies","properties","_snippetVersion","appInsightsNew","getSKUDefaults"];var n4=function(){function e(t){var n=this,o,r,s,i,a,l,c;ft(e,this,function(u){v(),i=""+(t.sv||t[tR]||""),t[op]=t[op]||[],t[tR]=t[tR]||2;var p=t[cu]||{};if(p[nR]){var m=g3(p[nR]),g=m.ingestionendpoint;p[K3]=g?g+Kc:p[K3],p[J3]=m.instrumentationkey||p[J3]}u[zw]=new yL,r=new Q3,o=new V3,s=new F3,c=new YB,u.core=c;var f=ge(p[Z3])?!0:p[Z3];!p[nR]&&!f&&Ce(c.logger,1,106,"Instrumentation key support will end soon, see aka.ms/IkeyMigrate"),u[JL]=t,u[cu]=p,_(),u[ZL]=function(y){y===void 0&&(y=!0),Td(c,function(){return"AISKU.flush"},function(){Ne(c[X3](),function(T){Ne(T,function(I){I[ZL](y)})})},null,y)},u[O_]=function(y){y===void 0&&(y=!0),Ne(c[X3](),function(T){Ne(T,function(I){I[O_]?I[O_]():I[ZL](y)})})},u[Wfe]=function(y,T,I){y===void 0&&(y=!1);function E(q){if(q){var D="";ge(i)||(D+=i),y&&(D+=".lg"),u[ji]&&u[ji].internal&&(u[ji].internal.snippetVer=D||"-"),kt(u,function(le,we){We(le)&&!Xe(we)&&le&&le[0]!=="_"&&Fo(Zfe,le)===-1&&(q[le]=we)})}}return y&&u[cu].extensions&&u[cu].extensions.length>0&&Pn("Extensions not allowed in legacy mode"),Td(u.core,function(){return"AISKU.loadAppInsights"},function(){var q=[];q[Bw](s),q[Bw](r),q[Bw](o),q[Bw](u[zw]),c.initialize(u[cu],q,T,I),u[ji]=r[ji],t4&&u[ji]&&(u[ji].internal.sdkSrc=t4),E(u[JL]),u.emptyQueue(),u[W3](),u[e4](n)}),u},u[Yfe]=function(y){dB(y,u,function(T){return T&&Fo(Zfe,T)===-1})},u.emptyQueue=function(){try{if(At(u.snippet[op])){for(var y=u.snippet[op].length,T=0;T0?u[cu][Hw]:1e4}function h(){return o}function v(){a=Zo("AISKU"),l=null,o=null,r=null,s=null,i=null}})}return e.prototype.addDependencyInitializer=function(t){return null},e}();(function(){var e=null,t=!1,n=[":/https://www.microsoft.com/js.monitor.azure.com/","://az416426.vo.msecnd.net/"];try{var o=(document||{}).currentScript;o&&(e=o.src)}catch{}if(e)try{var r=e.toLowerCase();if(r){for(var s="",i=0;i{},trackException:()=>{},trackTrace:()=>{}};function Xfe(){if(!S.applicationInsights)return;let e={"docs.microsoft.com":"9367385a-f935-4fd9-91da-c734500b5d55","learn.microsoft.com":"9367385a-f935-4fd9-91da-c734500b5d55","docs.azure.cn":"9367385a-f935-4fd9-91da-c734500b5d55","developer.microsoft.com":"9367385a-f935-4fd9-91da-c734500b5d55","review.docs.microsoft.com":"9367385a-f935-4fd9-91da-c734500b5d55","review.learn.microsoft.com":"9367385a-f935-4fd9-91da-c734500b5d55","ppe.docs.microsoft.com":"89ee6297-0550-4fd8-8d37-c2aa8d2ec81c","dev.learn.microsoft.com":"89ee6297-0550-4fd8-8d37-c2aa8d2ec81c"}[te.hostname];if(!e)return;let t=new n4({config:{instrumentationKey:e,disableFetchTracking:!1}});t.loadAppInsights();let n=()=>{C.isAuthenticated?t.setAuthenticatedUserContext(C.userId):t.clearAuthenticatedUserContext()};C.subscribe(wn,n),n(),t.trackPageView(),ut.subscribe(bn,()=>{t.trackPageView({properties:{syntheticPageView:!0}})}),Ho=t}function o4(e,t){return async function(...n){let o=t;for(;;)try{return await e.apply(null,n)}catch(r){if(o<=0)throw r;o--}}}async function ehe(){let e={method:"POST"},t=J(N.contentAuthorizationService.deleteCasTokenCookie,e,!0,!1);await o4(async()=>{(await $(t)).ok},10)()}k();Qe();var C2e=0;function tt(){return`ax-${C2e++}`}function uu(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".split("").map(e=>{if(e==="-"||e==="4")return e;let t=Math.random()*16|0;return(e==="x"?t:t&3|8).toString(16)}).join("")}function Wn(e){return e?e.toLowerCase().replace(/_/g,"-").replace(/\W/g,"-"):""}var nhe=d`
`;function r4(e=!0){let t=e?"color-text-subtle":"white-static-text";return e?d``:d``}function the(e){return d``}var E2e="casSignIn",oR=class e{constructor(t,n=!1){this.url=rs(t),n&&this.url.searchParams.set(E2e,"true"),this.source=this.url.searchParams.get("source"),this.source||(this.source=P("page_type")==="learn"||P("page_kind")==="learn"?"learn":"docs",P("uhfHeaderId")!=="answers"&&this.url.searchParams.set("source",this.source))}static getProfileContext(t){try{let n=t||location.href,o=new e(n),r=rs(n);return r.searchParams.delete("source"),{redirectUrl:r.href,source:o.source,microsoftUser:void 0}}catch{return{redirectUrl:void 0,source:void 0,microsoftUser:void 0}}}toString(){return this.url.href}};function ohe(e,t=!1){let n=null;try{n=new oR(e,t).toString()}catch{n=location.href}return n}var NSt=new URL("./register",wc()).toString(),rR=R.accessLevel==="local"?`https://${location.hostname}/_themes/docs.theme/master/en-us/_themes/global/identity-redirect.html`:`${location.origin}/_themes/docs.theme/master/en-us/_themes/global/identity-redirect.html`,FSt=she(),OSt=location.origin,A2e=R.supportLevel==="production"?"18fbca16-2224-45f6-85b0-f7bf2b39b3f3":"f602d4fb-244f-48be-a746-435fac3917df",k2e="https://login.microsoftonline.com",I2e="common",Dr,rhe=async()=>{let e={auth:{clientId:A2e,authority:`${k2e}/${I2e}`,redirectUri:rR},cache:{cacheLocation:"localStorage"},system:{loggerOptions:{loggerCallback:(t,n,o)=>{if(!o)switch(t){case Nt.Info:R.reviewFeatures&&console.info(n);return;case Nt.Verbose:R.reviewFeatures&&console.debug(n);return;case Nt.Warning:R.reviewFeatures?console.warn(n):Ho.trackTrace({message:n,severityLevel:Nt.Warning,iKey:"learn.msal"});return;case Nt.Error:R.reviewFeatures?console.error(n):Ho.trackTrace({message:n,severityLevel:Nt.Error,iKey:"learn.msal"});return}}}}};Dr=new hT(e),await Dr.initialize()};function she(){return R.accessLevel==="local"?`https://${location.hostname}/_themes/docs.theme/master/en-us/_themes/global/identity-profile.html`:`${location.origin}/_themes/docs.theme/master/en-us/_themes/global/identity-profile.html`}function P2e(e,t=null,n=!1){let o=ohe(e,n),r=she(),s=encodeURIComponent(o),i=uu();return{scopes:["openid","profile","email"],prompt:t,redirectStartPage:r,nonce:i,redirectUri:rR,state:s}}function ihe(e,t=null,n=!1){return Dr.setActiveAccount(null),Dr.loginRedirect(P2e(e,t,n))}var L2e={scopes:["openid","profile","email"]};function ahe(){try{let e=R2e();return e?Dr.acquireTokenSilent(Object.assign({},L2e,{prompt:"none",account:e})).then(t=>(pk(t.idToken),!0)).catch(()=>(mk(),!1)):Promise.resolve(!1)}catch{return Promise.resolve(!1)}}function R2e(e=Yu()){if(!e)return null;let n=hk(e).preferred_username;return n?Dr.getAccount({username:n}):null}function Un(e=location.href,t="select_account",n=!1){ihe(e,t,n)}var M2e=location.origin;async function oi(e=location.href,t=!1,n=!1){if($2e(),D2e(),t&&await $(N.auth.signOut),Rpe(),Zn()&&await ehe(),fk(),mk(),!n){let o=rs(e,M2e);location.href=`${o.origin}${o.pathname}${o.search}`}}function $2e(){localStorage.removeItem("gitHubToken")}function D2e(){localStorage.removeItem("adoToken")}async function s4(e,t,n,o){return Se({behavior:me.SIGNIN,actionType:Ee.OTHER,content:{autoIngest:!0,type:"learn-sso-attempt",loadTime:performance.now(),timeStamp:new Date().toISOString(),referrer:w.referrer,hasLoginHint:!!t,status:e,uuid:crypto.randomUUID(),errorCode:n,errorMessage:o}})}function lhe({sso:e,loginHint:t}={}){return async function(n=()=>!1){if(e)try{await xe,s4("started",t),Gt({context:"sso",source:e},"replaceState");let o={scopes:["openid","profile","email"]};t&&(o.loginHint=t);let r=await Dr.ssoSilent(o);if(r)return fk(),pk(r.idToken),s4("completed",t),!0}catch(o){return o instanceof st&&await s4("error",t,o.errorCode,o.errorMessage),o instanceof Cn&&(oi("",!1,!0),Un(window.location.href,"select_account")),n()}return n()}}function che(e=ce().sso,t=ce().login_hint){return(e||t)&&Gt({sso:null,login_hint:null},"replaceState"),{sso:e,loginHint:t}}function uhe(e=new URL(window.location.href)){let t=e.searchParams.get("redirectUrl");if(!t)return{};try{let n=new URL(t,"https://fakeurl.com"),o=n.searchParams.get("sso")??void 0,r=n.searchParams.get("login_hint")??void 0;return{sso:o,loginHint:r}}catch{return{}}}var sR=class{},iR=class{constructor(t,n,o=new ze){this.stack=t,this.final=n,this.bus=o}async run(){let t=0,n=!0,o=this.final,r=[],s=this.bus.subscribe(sR,()=>n=!1),i=a=>(this.bus.publish(new sR),o=a||o,!1);try{for(;n&&this.stack[t];){let a=await this.stack[t](i);if(a||r[t]!==!1){r[t]=a,t+=a?-1:1;continue}n=!1}t>=0&&o(),s()}catch(a){throw s(),this.final(),a}}};var phe=N.profile.me,mhe=che(),dhe=uhe(),wCt=dhe.sso?dhe:mhe,N2e=`${phe}?isCPMCalled=true`,ghe=new URL("./register",wc()).toString();async function Ag(){let t=location.pathname.split("/").indexOf("edit")!==-1?N2e:phe;try{let o=await fetch(J(t,{credentials:"include"}));if(o.ok&&o.status!==204){let r=await o.json();C.readUserProfile(r)}else C.setAnonymous()}catch{C.setAnonymous()}}async function fhe(e=()=>{C.setAnonymous()}){if(!S.userServices)return C.setAnonymous(),Promise.resolve();await new iR([F2e,O2e,lhe(mhe),ahe],e).run()}async function F2e(e=()=>!1){try{let t=Zn();if(t){let n=nm(t);return C.readUserFromToken(n),!0}return!1}catch(t){return t instanceof ul?!1:e()}}async function O2e(e=()=>!1){try{let t=Yu();if(t){nm(t);let n=await aO(t);return gk(n),!0}return!1}catch(t){return t instanceof ul?!1:t instanceof xx?location.pathname.endsWith("/external-sign-in.html")?!1:e(U2e):e()}}function U2e(){if(P("page_kind")!=="register"&&(C.setAnonymous(),!location.href.includes("/answers"))){let n=pe({redirectUrl:location.href});location.href=rs(`${ghe}?${n}`).href;return}let e=Yu();if(!e)return;let t=nm(e);C.mapIdTokenToProfile(t)}function hhe(e=location.href){let t=encodeURIComponent(e);location.href=`/_themes/docs.theme/master/en-us/_themes/global/permissioned-auth.html?changeDirectory=true&redirectUrl=${t}`}var rp=["a","area","button:not([disabled])","iframe","input:not([disabled])","select:not([disabled])","summary","textarea:not([disabled])","[contenteditable]",'[tabindex]:not([tabindex="-1"])'];function U_(e){return e.matches(rp.join(","))}function aR(e,t=!0){return n=>{if(n.target instanceof Element&&!e.contains(n.target)){n.preventDefault();let o,r=Array.from(e.querySelectorAll(rp.join(",")));n.target.compareDocumentPosition(e)&(t?Node.DOCUMENT_POSITION_PRECEDING:Node.DOCUMENT_POSITION_FOLLOWING)&&r.reverse();let s=r.length;for(;s--;){let i=r[s],a=getComputedStyle(i);if(!i.hidden&&a.display!=="none"&&a.visibility!=="hidden"&&(i.offsetWidth>0||i.offsetHeight>0)){o=i;break}}o=o||e,o.focus()}}}function i4(e){let t=e.createElement("span");return t.setAttribute("tabindex","0"),t.classList.add("modal-tab-sentinel"),t}k();var lR=[];function du(e){lR.push(e)}function Ht(e,t,n,o){e.addEventListener(t,n,o);let r=()=>e.removeEventListener(t,n,o);return du(r),r}function bhe(e=document.documentElement,t=document.documentElement||document.body,n=(document.documentElement||document.body).scrollTop){return t.style.left="0",t.style.right="0",t.style.top=`-${n}px`,t.style.position="fixed",(o=!0)=>{t.style.left="",t.style.right="",t.style.top="",t.style.position="",o&&(e.scrollTop=n)}}var q_=e=>{let t=e.querySelector("[data-autofocus]");if(t&&U_(t)){t.focus();return}e.focus()},Te=class e{constructor(t,n="visibility-hidden-visual-diff"){this.restoreScrollbar=()=>{};this.clickHandler=t=>{let n=t.target,o=n.closest(".modal-pop-content"),r=n.closest(".modal-close");r?(t.preventDefault(),this.hide(r.getAttribute("data-modal-result"))):o&&(t.preventDefault(),this.popContent())};this.escHandler=t=>{if(t.key==="Escape"){if(w.activeElement&&w.activeElement.closest(".popover[open]"))return;t.preventDefault(),this.hide()}};this.setAriaLabelledBy=t=>{let n=t.querySelector("h1")||t.querySelector("h2")||t.querySelector("h3")||t.querySelector("h4")||t.querySelector("p")||t.querySelector("figcaption");n&&(n.id||(n.id="modal-heading"),t.setAttribute("aria-labelledby",n.id))};this.container=w.createElement("div"),this.container.setAttribute("tabindex","-1"),this.container.setAttribute("role","dialog"),this.container.setAttribute("aria-modal","true"),this.container.classList.add("modal","has-default-focus"),n&&this.container.classList.add(n),this.container.setAttribute("data-test-id","modal-container"),x(d`${t} `,this.container),window.addEventListener("close-modals",()=>{this.hide()}),this.wrapper=w.createElement("div"),this.wrapper.setAttribute("data-bi-name","modal"),this.wrapper.insertAdjacentElement("afterbegin",this.container),this.contentStack=[t]}static get openCount(){return window.openModalCount||0}static set openCount(t){window.openModalCount=t}show(){return this.container.classList.contains("is-active")?this.openPromise:(e.openCount++,w.body.insertAdjacentElement("afterbegin",i4(w)),w.body.insertAdjacentElement("afterbegin",this.wrapper),this.wrapper.addEventListener("click",this.clickHandler),this.wrapper.addEventListener("keydown",this.escHandler),this.restoreScrollbar=bhe(w.documentElement,w.scrollingElement||w.documentElement,(w.scrollingElement||w.documentElement||w.body).scrollTop),this.container.classList.add("is-active"),w.body.insertAdjacentElement("afterbegin",i4(w)),this.setAriaLabelledBy(this.container),window.dispatchEvent(new CustomEvent("modal-show",{detail:{container:this.container}})),this.lastFocus=w.activeElement,this.focusHandler=aR(this.wrapper),Ht(window,"focus",this.focusHandler,!0),q_(this.container),this.openPromise=new Promise(t=>this.resolveOpen=t),this.openPromise)}hide(t=null){this.container.classList.contains("is-active")&&(e.openCount--,this.restoreScrollbar(),this.container.classList.remove("is-active"),this.wrapper.parentElement.removeChild(this.wrapper),Array.from(w.body.querySelectorAll(".modal-tab-sentinel")).forEach(n=>{w.body.removeChild(n)}),window.removeEventListener("focus",this.focusHandler),this.wrapper.removeEventListener("click",this.clickHandler),this.wrapper.removeEventListener("keydown",this.escHandler),this.lastFocus&&this.lastFocus instanceof HTMLElement&&this.lastFocus.focus(),this.lastFocus.closest("details")&&this.lastFocus.closest("details").querySelector("summary").focus(),this.resolveOpen(t),this.resolveOpen=void 0,this.openPromise=void 0)}updateContent(t,n=!0,o=!1){let r=this.container.querySelector(".modal-slide-container"),s=r.querySelector(".modal-slide:first-of-type");if(r===null||s===null)throw new Error(`The ${r===null?"modal-slide-container":"modal-slide"} class is missing!`);r.appendChild(t);let i={forward:dt.userDir==="ltr"?"slide-right":"slide-left",backward:dt.userDir==="ltr"?"slide-left":"slide-right"},a=o?i.forward:i.backward;n?(setTimeout(()=>{s.classList.add(a),t.classList.add(a)},50),setTimeout(()=>{t.classList.remove(a),l(this)},250)):l(this);function l(c){r.removeChild(s),q_(c.container),c.setAriaLabelledBy(c.container)}}pushContent(t){this.contentStack.push(t),x(d`${this.contentElement} `,this.container),this.setAriaLabelledBy(this.container),q_(this.contentElement)}popContent(){if(this.contentStack&&this.contentStack.length<=1)throw new Error("Error getting modal content");this.contentStack.pop(),x(d`${this.contentElement} `,this.container),q_(this.contentElement)}get contentElement(){return this.contentStack[this.contentStack.length-1]}};k();var cR={setItem(e,t,n){try{let o=n.getTime();if(Date.now()>=o)return;let r={value:t,expiry:o};ne.setItem(e,JSON.stringify(r))}catch{}},getItem(e){try{let t=ne.getItem(e);if(!t)return null;let n=JSON.parse(t);return typeof n.expiry!="number"||isNaN(n.expiry)||Date.now()>=n.expiry?(ne.removeItem(e),null):n.value}catch{return null}},removeItem(e){ne.removeItem(e)},clear(){ne.clear()}};k();var uR=location.pathname.split("/").map(e=>e.toLowerCase()),q2e=uR.length>2?uR[2]:"",Bt=q2e==="test";function _he(){let e=P("original_content_git_url")||P("original_ref_skeleton_git_url")||"",t=e;if(t!==""&&t.substring(0,8)==="https://")try{let n=new URL(e);t=`${n.pathname}${n.search}`}catch{t=t.substring(8)}return t}function dR(){let e=H2e(),t;return Bt?t=`/${b.data.userLocale}/test/training/support/troubleshooting${e}`:t=`/${b.data.userLocale}/training/support/troubleshooting${e}`,t}function H2e(){let e={uid:P("uid")||"",documentId:P("document_id")||"",versionIndependentDocumentId:P("document_version_independent_id")||"",platformId:P("platform_id")||"",contentPath:_he(),url:location.href,author:P("ms.author")||""},t=Object.keys(e).reduce((n,o)=>{let r=e[o];return r===void 0||r.trim().length===0||n.push(`${o}=${encodeURIComponent(r)}`),n},[]);return t.length===0?"":`?${t.join("&")}`}function pR(e,t=Un){let n=new URL(e||location.href);n.searchParams.set("account-linking","1"),t(n.href,"login")}var Cs={Cancel:{text:Fe,clickHandler:kh,modifiers:"button-primary",biName:"add-account-error-cancel"},ContactCustomerSupport:{text:lK,clickHandler:()=>{location.href=dR()},modifiers:"button-primary button-filled",biName:"add-account-error-contact-support"},Ok:{text:Po,clickHandler:kh,modifiers:"button-primary button-filled",biName:"add-account-error-ok"},SelectAccount:{text:jie,clickHandler:()=>pR(),modifiers:"button-primary button-filled",biName:"add-account-error-select-account"}};function B2e(e){return{accountAlreadyRegistered:{title:Mie.replace("{account}",e),description:Oie,buttons:[Cs.Cancel,Cs.SelectAccount]},alreadyHasCertProfileConnected:{title:Qie,description:Yie,buttons:[Cs.ContactCustomerSupport]},alreadyLinked:{title:Uie,description:CF,buttons:[Cs.Cancel,Cs.SelectAccount]},moreThanOneAccountPerTenant:{title:Nie,description:`${Bie} ${CF}.`,buttons:[Cs.Ok]},moreThanOneMSAAccount:{title:zie,description:qie.replace("{account}",e),buttons:[Cs.Ok]},needAtLeastOneAccountLinked:{title:Hie,description:Fie,buttons:[Cs.Ok]},numberOfAccounts:{title:$ie,description:Die,buttons:[Cs.Ok]},profileMergeRunning:{title:Gie,description:Vie,buttons:[Cs.Ok]},profileMergeAlreadyComplete:{title:Jie,description:Zie,buttons:[Cs.Ok]},profileMergeRecordNotFound:{title:Xie,description:eae,buttons:[Cs.Ok]},previousMergeAttemptPreventsAction:{title:tae,description:nae,buttons:[Cs.Ok]},unexpectedError:{title:Kt,buttons:[Cs.Ok]}}}function a4(e,t){let n=B2e(e)[t];return d`${n.title?d`

${n.title}

`:null} ${n.description?d`

${F(n.description)}

`:null} ${n.buttons?d`
${n.buttons.map(o=>d``)}
`:null} `}var z2e={Complete:{color:"success",icon:"docon-status-success-outline",text:oae},Failed:{color:"danger",icon:"docon-status-failure-outline",text:rae},Running:{color:"warning",icon:"docon-status-info-outline",text:cae},Terminated:{color:"success",icon:"docon-status-success-outline",text:uae}};function G2e(){return cR.getItem("check-merge-status")!==null}function V2e(){cR.removeItem("check-merge-status")}async function mR(e=!1){if(!(!e&&!G2e()))try{let t=await uO();if(t===null||(l4(t),t!=="Running"))return;let n=setInterval(async()=>{t=await uO(),t!==null&&(l4(t),t!=="Running"&&(clearInterval(n),V2e()))},3e4)}catch{}}async function j2e(){try{await uce()}catch{}}function Q2e(e){return d`
`}async function l4(e){if(e==="Acknowledged")return;if(e==="Locked"){Y2e();return}e==="Complete"&&Fs.type==="profile"&&await Ag();let t=z2e[e];if(!t)return;let n=aae,o=lae;if(e==="Failed"){let l=await cce();if(!l)return;let c=l.sourceUserName,u=l.destinationUserName;t.text=t.text.replace("{sourceUser}",je(c)),t.text=t.text.replace("{destinationUser}",je(u)),n=n.replace("{terminateMergeText}",AF),o=o.replace("{retryMergeText}",EF)}let r=d`

${sae}


${iae}

  • ${F(n)}
  • ${F(o)}
`,s=document.querySelector("#add-account");if(!s)return;e==="Running"||e==="Failed"?(s.disabled=!0,s.classList.add("is-disabled")):(s.disabled=!1,s.classList.remove("is-disabled"));let i=document.querySelector(".accounts"),a=i.querySelector(".merging-status");i!==null&&(a===null&&(a=document.createElement("div"),a.classList.add("merging-status"),i.appendChild(a)),x(d`

${t.text}

${e==="Failed"?d`${r} ${Q2e(a)}`:""}
${e==="Complete"?d``:null}
`,a))}function Y2e(){let e=document.createElement("div"),t=new Te(e);x(d``,e),t.show(),document.querySelector(".modal").addEventListener("click",o=>{o.preventDefault(),o.stopPropagation(),oi(location.origin,!0)})}async function W2e(e){vhe(e,"Terminate")}async function K2e(e){vhe(e,"Retry")}async function yhe(e,t){e.classList.remove("is-loading");let n=document.createElement("div"),o=new Te(n);xhe(o,t),await o.show(),e.disabled=!1}async function vhe(e,t){let n,o;t==="Terminate"?(n=e.querySelector("#terminate-failed-merge"),o=N.profile.userCancelMerge):(n=e.querySelector("#retry-failed-merge"),o=N.profile.userRetryMerge);try{n.classList.add("is-loading"),n.disabled=!0;let r=await J2e(o);if(r.hasError){let s=r.errors[0]||"unexpectedError";await yhe(n,s)}else t==="Terminate"?l4("Terminated"):location.reload()}catch{await yhe(n,"unexpectedError")}}async function J2e(e){let n=await $(J(e,{method:"POST"}));if(he(n),n.ok)return om(n,!1),{hasError:!1};if(n.status===400){let o=await n.json();if(o.errorCode==="ProfileMergeRunning")return{hasError:!0,message:n.statusText,errors:["profileMergeRunning"]};if(o.errorCode==="ProfileMergeComplete")return{hasError:!0,message:n.statusText,errors:["profileMergeAlreadyComplete"]};throw new Error(`Unexpected response status ${n.status} for ${e}`)}else{if(n.status===404)return{hasError:!0,message:n.statusText,errors:["profileMergeRecordNotFound"]};throw new Error(`Unexpected response status ${n.status} for ${e}`)}}function xhe(e,t="unexpectedError",n=""){x(d``,e.contentElement),e.show()}k();var gR,fR;async function The(e){c4(e)&&await Z2e()}function c4(e){let t=P("page_type")==="profile",n=P("page_kind");if(!e.isAuthenticated||t&&n!=="register")return!1;let o=!1;return e.acceptedPrivacyNotice.getTime()&&(o=e.userType==="standard"||new Date(e.acceptedPrivacyNotice)>=sO),!o}async function Z2e(){if(!gR){let e=w.createElement("div");e.classList.add("modal-content"),x(d``,e),gR=new Te(e),fR=e.querySelector("#consentModal"),whe()}await xe,gR.show()}function whe(){let e=C.userType==="microsoft"?BX:r0,t=()=>lce(),n=d``;x(n,fR)}function X2e(){let e=d``;x(e,fR),eFe(fR)}async function eFe(e){let t=e.querySelector("#error-message"),n=e.querySelector("#consent-delete-acct");t.setAttribute("hidden","hidden"),n.onclick=async()=>{n.classList.add("is-loading");try{await ace()?(gR.hide(),await oi(location.origin,!0)):t.removeAttribute("hidden")}catch(o){throw t.removeAttribute("hidden"),new Error(`error: ${o.message}`)}finally{n.classList.remove("is-loading")}}}function tFe(e,t,n,o){return o&&o.length!==0||e==="microsoft"?zX.replace("{email}",o||n):t==="AAD"||e==="aad"?k9.replace("{email}",n):yK}async function She(e,t,n){let o=()=>n.setAttribute("data-authenticated",e.isAuthenticated.toString());o(),e.subscribe(wn,o),await t,n.setAttribute("data-auth-status-determined","true")}var pu="docs-sign-in",u4="docs-sign-out",Che="docs-change-directory";function Ehe(e){oFe(e),e.addEventListener("click",nFe)}function nFe(e){if(!(e.target instanceof Element))return;let t=e.target.closest(`.${pu}, .${u4}, .${Che}`);if(!t)return;let n=t.classList.contains(pu);e.preventDefault();let r=t instanceof HTMLAnchorElement&&t.matches('a[href]:not([href="http://approjects.co.za/?big="]):not([href="http://approjects.co.za/?big=#"])')?t.href:location.href;if(t.classList.contains(Che))hhe(r);else if(n){let s=b.data.isPermissioned;Un(r,"select_account",s)}else oi(r,!0)}function oFe(e){let t=n=>{if(!(n.target instanceof Element))return;let o=n.target.closest(`.${pu}, .${u4}`);if(!o)return;let r=o.classList.contains(pu);n.target.setAttribute("data-m",JSON.stringify({cN:r?pu:u4,bhvr:r?100:101}))};e.addEventListener("touchstart",t,!0),e.addEventListener("pointerdown",t,!0),e.addEventListener("keyup",n=>{n.which===Re.enter&&t(n)},!0)}var d4,ve=new Promise(e=>d4=e);async function Ahe(e){if(!S.userServices){d4(),xe.then(()=>{let t=w.getElementById("docs-sign-in-container-item");t&&(t.hidden=!0)});return}await rhe(),await Dr.handleRedirectPromise(),She(C,ve,w.documentElement),Ehe(w.documentElement),S.permissionedContent&&xe.then(t=>{w.documentElement.querySelectorAll("[data-permissioned-content]").forEach(n=>n.hidden=!1)}),C.subscribe(wn,async()=>{await Promise.all([e.siteHeaderRendered,xe]),iO(w.documentElement,C)}),fhe().then(d4),ve.then(async()=>{if(C.userType!=="standard"&&The(C),!C.isAuthenticated)return;if(!c4(C)){await xe,mR();return}let t=new URL("./register",wc(b.data.userLocale));if(location.pathname===t.pathname)return;let n=pe({redirectUrl:location.href});location.href=`${t.toString()}?${n}`})}k();function khe(){let e=location.pathname.toLowerCase();if(Bt&&e!==`/${b.data.userLocale}/test/docs/architecture/icons/`)return;if(!Bt&&e!==`/${b.data.userLocale}/azure/architecture/icons/`&&e!==`/${b.data.userLocale}/power-platform/guidance/icons`&&e!==`/${b.data.userLocale}/dynamics365/get-started/icons`)return;let t=w.querySelector(".content a.button"),n=t.href;t.parentElement.parentElement.classList.add("margin-bottom-lg");let o=()=>{w.querySelector('.azure-icons-consent input[type="checkbox"]').checked?(t.href=n,t.removeAttribute("disabled")):(t.href="http://approjects.co.za/?big=javascript:void(0)",t.setAttribute("disabled","disabled"))},r=a=>{let l=a.target instanceof HTMLElement&&a.target;l&&l.parentElement.classList.contains("azure-icons-consent")&&o()},s=w.getElementById("consent-checkbox");s.classList.add("margin-block-sm");let i=s.textContent;x(rFe(i),s),o(),B.addEventListener("change",r)}function rFe(e){return d``}k();function sFe(e,t){let n={};return e.querySelectorAll("li > a").forEach(r=>{if(r.textContent){let s=t?r.textContent="default":r.textContent.trim().slice(1,-1).split("|");if(s.length===2){let i=s[0].trim(),a=s[1].trim(),l=r.href;i&&a&&l&&(n[i]||(n[i]={}),n[i][a]=l)}}}),n}function Ihe(e){let t=document.createElement("a");return t.href=e,t.host===""&&(t.href=t.href),t.protocol+"//"+t.host+t.pathname}function iFe(e){let t=window.location.href.toLowerCase(),n=Ihe(t);for(let o in e)for(let r in e[o]){let s=e[o][r].toLowerCase();if(Ihe(s).localeCompare(n,void 0,{sensitivity:"base"})===0)return[o,r]}return null}function aFe(e,t,n){function o(u){return[u,u]}function r(u){window.location.href=u}let s=sFe(e,t),i=iFe(s),a=document.createElement("div");a.classList.add("azureselector"),a.classList.add("display-none-print");let l=e.getAttribute("title1"),c=Phe(a,l);if(p4(c,s,o,!1,n),i&&(c.value=i[0]),t)c.addEventListener("change",()=>{c.value&&r(s[c.value].default)});else{let u=e.getAttribute("title2"),p=Phe(a,u);c.addEventListener("change",()=>{p4(p,c.value?s[c.value]:{},o,!1,n)}),p.addEventListener("change",()=>{c.value&&p.value&&r(s[c.value][p.value])}),p4(p,c.value?s[c.value]:{},o,!1,n),i&&(p.value=i[1])}e.insertAdjacentElement("afterend",a)}function Lhe(){let e=H7,t=document.querySelector(".op_single_selector"),n=document.querySelectorAll(".op_multi_selector");t&&lFe(t),n.forEach(o=>{aFe(o,!1,e)})}function lFe(e){let t=e.parentNode,n=e.getAttribute("title1"),o=Array.from(document.querySelectorAll(".op_single_selector > ul > li")),r=Array.from(document.querySelectorAll(".op_single_selector > ul > li > a")),s=[];r.map(c=>{let u={title:c.textContent,href:c.href};s.push(u)});let i=o[0].firstElementChild.getAttribute("href")?cFe(s):o.shift().textContent,a=document.createElement("nav");a.classList.add("margin-top-xxs","display-none-print"),a.setAttribute("aria-label",n||"Dropdown menu"),t.replaceChild(a,e);let l=uFe(i,s,n);x(l,a)}function cFe(e){let t=decodeURI(location.pathname).toLowerCase();for(let n of e)if(new URL(n.href,location.href).pathname.toLowerCase()===t)return n.title;return e[0].title}function uFe(e,t,n){let o=d``,r=[];n&&(o=d`${n}`);let s="padding-xxs";for(let i of t)r.push(d`
  • ${i.title}
  • `);return d` ${o}`}function Phe(e,t){let n=document.createElement("div");n.classList.add("display-inline-block-tablet","margin-block-xxs","margin-right-xs-tablet");let o=tt(),r=d`
    ${t?d``:""}
    `;return x(r,n),e.appendChild(n),n.querySelector("select")}function p4(e,t,n,o,r){let s=[];o||s.push(d``);for(let i in t){let a=n(i,t[i]);a&&a.length===2&&s.push(d``)}x(s,e)}var Rn={value:null};async function m4(e,t,n){let o={scopes:[e],forceRefresh:!0,authority:`https://login.microsoftonline.com/${t}`};return await Rhe(o,n)}async function Rhe(e,t){try{return await Dr.acquireTokenSilent(e)}catch(n){if(Ho.trackTrace({message:`Acquire Token Silent Failure - ${C?.userName} - ${e.scopes.toString()} - ${e.authority} - ${n?.message}`}),Ho.trackException(n),n instanceof Cn&&t.noInteraction===!1)try{return await Dr.acquireTokenPopup(e)}catch(o){return Ho.trackTrace({message:`Acquire Token Popup Failure - ${C?.userName} - ${e.scopes.toString()} - ${e.authority} - ${o?.message}`}),Ho.trackException(o),null}return null}}async function dFe(e){if(!(e.username.includes("@")&&e.username.includes(".")))throw new Error(`Account username is not an email address: ${e.username}`);let t=e.username.split("@"),n=t[1]?t[1].split(".")[0]:"",r=`https://login.windows.net/${`${t[0]}${n}.onmicrosoft.com`}/.well-known/openid-configuration`,i=await(await $(r,{method:"GET"})).json();if("error"in i&&i.error==="invalid_tenant")throw new Error(`${i.error}: ${i.error_description}`);if("issuer"in i)return i.issuer.split("/")[3];throw new Error("Issuer not found in OpenID configuration")}function pFe(e){return![oce,rce,nce].includes(e)}var Vw={async tryLoadTokens(e={noInteraction:!0}){if(await ve,!C.isAuthenticated)return Ho.trackTrace({message:`Try Load Token User Not Authenticated - ${C?.userName}`}),null;try{let t=Yu(),o=hk(t).preferred_username,r=Dr.getAccount({username:o});Dr.setActiveAccount(r);let s=P("interactive")?.toLowerCase(),i=s&&(s==="powershell"||s==="bash"),a=P("rest_product")?.toLowerCase()??"",l=r?.tenantId===_k||r?.homeAccountId.split(".")[1]===_k,c=[],u="",p=null;try{u=l?await dFe(r):"organizations"}catch{return c}let m={scopes:["https://management.azure.com/user_impersonation"],forceRefresh:!0,authority:`https://login.microsoftonline.com/${u}`,redirectUri:rR},g=await Rhe(m,e),f="https://management.azure.com/tenants?api-version=2020-01-01",_={method:"GET",headers:{Authorization:`Bearer ${g.accessToken}`}};if(p=await(await $(f,_)).json(),!p||!p.value)return c;p.value=p.value.filter(v=>pFe(v.tenantId));for(let v of p.value){if(!v.tenantId)continue;let y={access_token:"",access_token_type:"",expires_at:"",msgraph_access_token:"",msgraph_access_token_type:"",msgraph_expires_at:"",key_vault_access_token:"",key_vault_access_token_type:"",key_vault_expires_at:"",display_name:v.displayName,default_domain:v.defaultDomain,tenant_id:v.tenantId},T={arm:"https://management.core.windows.net/user_impersonation","business-assist-api":"https://business-assist.microsoft.com/.default","dev-center":"https://devcenter.azure.com/.default",learn:"https://learn.microsoft.com/.default",fabric:"https://api.fabric.microsoft.com/.default","partner-center-rest":"https://api.partnercenter.microsoft.com/.default","power bi":"https://analysis.windows.net/powerbi/api/.default","health-dataplane":"https://deid.azure.com/.default"},I=await m4(T[a]??T.arm,v.tenantId,e);if(y.access_token=I?.accessToken,y.access_token_type=I?.tokenType,y.expires_at=I?.expiresOn?.valueOf().toString()??"",i){let E=await m4("https://vault.azure.net/user_impersonation",v.tenantId,e);y.key_vault_access_token=E?.accessToken,y.key_vault_access_token_type=E?.tokenType,y.key_vault_expires_at=E?.expiresOn.valueOf().toString();let q=await m4("https://graph.microsoft.com/.default",v.tenantId,e);y.msgraph_access_token=q?.accessToken,y.msgraph_access_token_type=q?.tokenType,y.msgraph_expires_at=q?.expiresOn.valueOf.toString()}c.push(y)}return c}catch(t){return Ho.trackTrace({message:`Try Load Token Failure - ${C?.userName} - ${t?.message}`}),Ho.trackException(t),null}}};var mFe=5*60*1e3,Mhe=0;function Dhe(){document.addEventListener("visibilitychange",$he,{passive:!0}),$he()}function $he(){document.visibilityState==="visible"?Mhe=setInterval(gFe,mFe):clearInterval(Mhe)}function gFe(){Rn.value&&Vw.tryLoadTokens().then(e=>{let t=e.find(n=>n.default_domain===Rn.value.default_domain);t&&(Rn.value=t)})}function Nhe(){return S.banner?(document.querySelectorAll("[data-banner-dismiss]").forEach(t=>{let n=t.closest(".banner");n&&(n.hidden=hFe(t.getAttribute("data-banner-dismiss")))}),document.addEventListener("click",fFe)):void 0}function fFe(e){let t=e.target instanceof HTMLElement&&e.target.closest("button[data-banner-dismiss]");if(!t)return;let n=t.getAttribute("data-banner-dismiss"),o=JSON.parse(ne.getItem("dismissed-banners"));return o?(o.push(n),ne.setItem("dismissed-banners",JSON.stringify(o))):ne.setItem("dismissed-banners",JSON.stringify([n]))}function hFe(e){let t=JSON.parse(ne.getItem("dismissed-banners"));return t?t.some(n=>n===e):!1}var g4;function f4(){if(g4===void 0){let e=P("api")||"/en-us/rest/api/rest-products.json";g4=$(e,{credentials:"include"}).then(t=>t.json())}return g4}function Fhe(e){return e==="rest"?f4().then(t=>vFe(t,e)).catch(()=>({platformId:e,displayName:e,families:[]})):$(`${N.monikers}/byPlatform/${encodeURIComponent(e)}`).then(t=>t.json()).then(t=>_Fe(t,e)).catch(()=>({platformId:e,displayName:e,families:[]}))}function Ohe(e){return $(`${N.monikers}/bymoniker/${encodeURIComponent(e)}`).then(t=>t.ok?t.json().then(n=>(yFe(e,n),n)):Promise.reject(null)).then(t=>Uhe(t)).catch(()=>h4(e))}function h4(e){return{displayName:e,products:[{displayName:e,packages:[{displayName:e,isDefault:!0,moniker:e,versionDisplayName:e,isDeprecated:!1,isPrerelease:!1}]}]}}function Uhe(e){return{displayName:e.familyName,products:e.products.map(({productName:t,packages:n})=>({displayName:t,packages:n.sort((o,r)=>r.order-o.order).filter(o=>bFe(o)).map(o=>({displayName:o.monikerDisplayName,isDefault:o.isDefault,moniker:o.monikerName,versionDisplayName:o.versionDisplayName,isDeprecated:o.isDeprecated,isPrerelease:o.isPrerelease}))}))}}function bFe(e){return b.data.brand==="mooncake"?e.monikerName!=="azure-cli-2017-03-09-profile":!0}function _Fe(e,t){return{platformId:t,families:e.map(Uhe)}}function yFe(e,t){if(!t.products.find(n=>!!n.packages.find(o=>o.monikerName===e)))throw new Error(`The family "${t.familyName}" does not contain the moniker "${e}".`)}function vFe(e,t){return{platformId:t,families:[{displayName:"",products:[{displayName:"",packages:e.map(n=>({displayName:n.name,moniker:n.scope,versionDisplayName:n.name,isDefault:!1,isDeprecated:!1,isPrerelease:!1}))}]}]}}function ro(e,t,n=0,o=[]){for(let r of e){o.length=n;let s=t(r,o);if(!s)return 0;if(s!==2&&(o[n]=r,r.children&&!ro(r.children,t,n+1,o)))return 0}return 1}var Nr="moniker-changed",b4="same-moniker-selected",qhe=()=>{let e=ce().view;return e===void 0?"":e.toLowerCase()},jw=qhe();function lt(){return jw}function sp(e){if(e===jw){B.dispatchEvent(new CustomEvent(b4,{detail:{moniker:jw}}));return}jw=e,B.dispatchEvent(new CustomEvent(Nr,{detail:{moniker:jw}}))}B.addEventListener("popstate",()=>sp(qhe()));var Ol={"ar-sa":"\u0627\u0644\u0639\u0631\u0628\u064A\u0629","eu-es":"Euskara","bs-latn-ba":"Bosanski","bg-bg":"\u0411\u044A\u043B\u0433\u0430\u0440\u0441\u043A\u0438","ca-es":"Catal\xE0","zh-cn":"\u4E2D\u6587 (\u7B80\u4F53)","zh-hk":"\u4E2D\u6587 (\u7E41\u9AD4 \u9999\u6E2F\u7279\u5225\u884C\u653F\u5340)","zh-tw":"\u4E2D\u6587 (\u7E41\u9AD4)","hr-hr":"Hrvatski","cs-cz":"\u010Ce\u0161tina","da-dk":"Dansk","nl-be":"Nederlands (Belgi\xEB)","nl-nl":"Nederlands","en-au":"English (Australia)","en-ca":"English (Canada)","en-in":"English (India)","en-ie":"English (Ireland)","en-my":"English (Malaysia)","en-nz":"English (New Zealand)","en-sg":"English (Singapore)","en-za":"English (South Africa)","en-gb":"English (United Kingdom)","en-us":"English (United States)","et-ee":"Eesti","fil-ph":"Filipino","fi-fi":"Suomi","fr-be":"Fran\xE7ais (Belgique)","fr-ca":"Fran\xE7ais (Canada)","fr-fr":"Fran\xE7ais","fr-ch":"Fran\xE7ais (Suisse)","gl-es":"Galego","ka-ge":"Georgian","de-at":"Deutsch (\xD6sterreich)","de-de":"Deutsch","de-ch":"Deutsch (Schweiz)","el-gr":"\u0395\u03BB\u03BB\u03B7\u03BD\u03B9\u03BA\u03AC","he-il":"\u05E2\u05D1\u05E8\u05D9\u05EA\u200F","hi-in":"\u0939\u093F\u0902\u0926\u0940","hu-hu":"Magyar","is-is":"\xCDslenska","id-id":"Bahasa Indonesia","ga-ie":"Irish (Ireland)","it-it":"Italiano","it-ch":"Italiano (Svizzera)","ja-jp":"\u65E5\u672C\u8A9E","kk-kz":"\u049A\u0430\u0437\u0430\u049B","ko-kr":"\uD55C\uAD6D\uC5B4","lv-lv":"Latvie\u0161u","lt-lt":"Lietuvi\u0173","lb-lu":"Luxembourgish (Luxembourg)","ms-my":"Bahasa Malaysia","mt-mt":"Maltese (Malta)","nb-no":"Norsk","pl-pl":"Polski","pt-br":"Portugu\xEAs (Brasil)","pt-pt":"Portugu\xEAs (Portugal)","ro-ro":"Rom\xE2n\u0103","ru-ru":"\u0420\u0443\u0441\u0441\u043A\u0438\u0439","sr-cyrl-rs":"\u0421\u0440\u043F\u0441\u043A\u0438 (\u0421\u0440\u0431\u0438\u0458\u0430 \u0438 \u0426\u0440\u043D\u0430 \u0413\u043E\u0440\u0430)","sr-latn-rs":"Srbija - Srpski","sk-sk":"Sloven\u010Dina","sl-si":"Slovenski","es-mx":"Espa\xF1ol (M\xE9xico)","es-es":"Espa\xF1ol (Espa\xF1a)","sv-se":"Svenska","th-th":"\u0E44\u0E17\u0E22","tr-tr":"T\xFCrk\xE7e","uk-ua":"\u0423\u043A\u0440\u0430\u0457\u043D\u0441\u044C\u043A\u0430","vi-vn":"Ti\xEA\u0301ng Vi\xEA\u0323t"};var ip=/^\/([a-z]{2,3}-(?:[a-z]{4}-)?[a-z]{2})(\/|$)/i,xFe="MarketplaceSelectedLocale",TFe=["ContentPage","Conceptual","Module","ModuleUnit","LearningPath"];function _4(e){return!!Ol[e]}function Qw(e){let t=ip.exec(e);return t===null?"en-us":t[1].toLowerCase()}function rt(e,t,n=!0){return!e||!_4(t)||e.indexOf("http://")===0||e.indexOf("https://")===0||e.indexOf("//")===0?e:ip.test(e)?n?kg(e,t):e:"/"+t+e}function so(e){return e.replace(ip,"/")}function kg(e,t){return e.replace(ip,`/${t}$2`)}async function Hhe(){let e=b.data.userLocale,t=b.data.contentLocale,n=dt.machineTranslated;b.data.userLocaleName=Ol[e],await xe,t!==e&&/^en/.test(t)&&!/^en/.test(e)&&!n&&TFe.indexOf(b.data.pageTemplate)!==-1&&Jt(CFe(b.data.pageTemplate,e)),y4(e)}function Bhe(e){ds.set(xFe,e,{expires:365*10})}function y4(e){Array.from(document.querySelectorAll(".locale-selector-link")).forEach(t=>wFe(t,e))}function wFe(e,t){let n=e.querySelector(".local-selector-link-text"),o=Ol[t];n?n.textContent=o:e.textContent=o,e.addEventListener("mousedown",()=>e.href=`/${t}/locale?target=${encodeURIComponent(location.href)}`),e.addEventListener("keydown",()=>e.href=`/${t}/locale?target=${encodeURIComponent(location.href)}`),e.href=`/${t}/locale?target=${encodeURIComponent(location.href)}`;let r=cK.replace("{language}",o);e.setAttribute("aria-label",r)}function SFe(e){return Ai("localization_scopes").indexOf(e)!==-1}function CFe(e,t){let n=SFe(t),o=Ol[t];return e==="LearningPath"?n?HK.replace("{language}",o):BK.replace("{language}",o):e==="Module"||e==="ModuleUnit"?n?zK.replace("{language}",o):GK.replace("{language}",o):qK}var EFe=/^([.\/]*\/)?([^\?#]*)?(\?[^#]*)?(#.*)?$/,Yw=/(^|\/)index$/i,AFe=R.accessLevel==="local"&&b.environment===void 0,v4={};function kFe(e,t){let{origin:n,pathname:o}=JF(e),r={"/":`/${t}/`},s=o.split("/"),i="";for(;s.length>2;){s.pop();let a=s.join("/")+"/";r[i]=a,r["./"+i]=a,i+="../"}return{origin:n,relMap:r}}var H_=class{constructor(t,n,o,r,s){this.external=t;this.origin=n;this.pathname=o;this.search=r;this.hash=s}get href(){return this.origin+this.pathname+this.search+this.hash}originAndPathnameEquals({origin:t,pathname:n}){return this.pathname.length===n.length&&this.origin.length===this.origin.length&&this.pathname.localeCompare(n,void 0,{sensitivity:"base"})===0&&this.origin.localeCompare(t,void 0,{sensitivity:"base"})===0}originAndPathnameStartsWith({origin:t,pathname:n}){return this.pathname.length>=n.length&&(n[n.length-1]==="/"||this.pathname[n.length]===void 0||this.pathname[n.length]==="/")&&this.origin.length===t.length&&this.pathname.substr(0,n.length).localeCompare(n,void 0,{sensitivity:"base"})===0&&this.origin.localeCompare(t,void 0,{sensitivity:"base"})===0}};function nr(e,t,n=b.data.userLocale,o=te.origin){let[r,s,,,i,a]=e;if(r==="/"&&s==="/"||i===":"||a===":"){let{origin:y,pathname:T,search:I,hash:E}=JF(e);if(y!==o)return new H_(!0,y,T,I,E);let q=ip.exec(T);return(!q||!_4(q[1]))&&(T="/"+n+T),T=decodeURIComponent(T.replace(Yw,"$1")),new H_(!1,y,T,I,E)}v4[t]===void 0&&(v4[t]=kFe(t,n));let{origin:l,relMap:c}=v4[t],u=EFe.exec(e),[,p="",m="",g="",f=""]=u,_=c[p];AFe&&(m=m.replace(/\.html$/i,""));let h=m.replace(Yw,"$1");h.indexOf("%")!==-1&&(h=decodeURIComponent(h));let v=_+h;return new H_(!1,l,v,g,f)}function ap({origin:e,pathname:t,search:n,hash:o}=te){return t=x4(t),t=decodeURIComponent(t).toLowerCase().replace(Yw,"$1"),new H_(!1,e,t,n,o)}function x4(e){return e.replace(/\/+/g,"/")}var IFe=ap(),bR=P("moniker_definition_rel"),hR,T4=new Map,Ig=!!bR&&bR.endsWith(".json");function w4(){if(!bR)return null;let e=nr(bR,IFe.href);return Vhe(e.href)}async function Ghe(e){let t=[],n=lt();for(let o of e)if(o.metadata?.moniker_definition_rel){let r=nr(o.metadata.moniker_definition_rel,o.url);t.push(Vhe(r.href).then(({monikerSet:s})=>zhe(o.nodes,s)))}else n&&t.push(Promise.resolve(zhe(o.nodes,new Set([n]))));await Promise.all(t)}function zhe(e,t){t?.size&&ro(e,(n,o)=>{if(n.monikers===void 0&&o&&o.length){let r=o[o.length-1];r.monikers&&r.monikers.length&&(n.monikers=r.monikers)}if(n.monikers&&n.monikers.length&&n.selectedMoniker===void 0){let r=n.monikers.find(s=>t.has(s));n.selectedMoniker=r===void 0?null:r}return!0})}function Vhe(e){let t={family:null,monikerSet:new Set};if(!e)return Promise.resolve(t);let n;return T4.has(e)?n=T4.get(e):(n=$(e,{credentials:"include"}).then(o=>o.json()).then(o=>PFe(o)).catch(()=>t),T4.set(e,n)),n}function PFe(e){let t=null,n=new Set,o=lt(),r=e.products.reduce((s,i)=>{let a=i.familyName;return s[a]=s[a]||[],s[a].push(i),s},{});return Object.keys(r).forEach(s=>{let i="",a=!1,l=r[s];l.forEach(u=>{u.monikers.forEach(p=>{p.isDefault&&(i=p.monikerName),p.monikerName===o&&(a=!0,t=LFe(s,l))})});let c=a?o:i;c&&n.add(c)}),{family:t,monikerSet:n}}async function jhe(){if(hR===void 0){let e=lt();if(Ig){let t=await w4();hR=Promise.resolve(t?.family??h4(e))}else hR=Ohe(e)}return hR}function LFe(e,t){return{displayName:e,products:t.map(n=>({displayName:n.productName,packages:n.monikers.sort((o,r)=>r.order-o.order).map(o=>({moniker:o.monikerName,displayName:o.monikerDisplayName??o.monikerName,versionDisplayName:o.versionDisplayName??o.monikerName,isDefault:o.isDefault??!1,isDeprecated:o.isDeprecated??!1,isPrerelease:o.isPrerelease??!1}))}))}}var S4;function Va(){return S4===void 0&&(S4=jhe()),S4}function B_(e,t){for(let n of e.products)for(let o of n.packages)if(o.moniker===t)return o;return null}var z_=null;async function Qhe(e=b.data.pageTemplate){_R();let t=ce(),n=t.viewFallbackFrom,o=t.branchFallbackFrom,r=t.branch;if(n&&e!=="NotFound"){RFe(n);return}o&&r&&MFe(o,r)}async function RFe(e){let t=await Va(),n=B_(t,e);n&&(z_=Jt(YX.replace("{moniker}",je(n.displayName))))}function MFe(e,t){z_=Jt(j7.replace("{branchFallbackFrom}",je(e)).replace("{branch}",je(t)))}function _R(){if(z_){let e=z_.firstElementChild;if(!e)return;z_.removeChild(e),z_=null,Rt()}}function Yhe(){R.supportLevel==="production"&&R.reviewFeatures&&Jt(UK)}k();var yR=[];var Ww="banner-instructions",Kw="banner-instructions-locale",$Fe=1e3*60*60;function Whe(e=S.temporaryClientSideEventBanners){if(e){try{E4()}catch{ne.removeItem(Ww),ne.removeItem(Kw)}C4()}}async function C4(e=$,t=new Date){let n=Khe();if(n&&n.date.getTime()+$Fe>Date.now())return;let o=R.reviewFeatures&&location.pathname.startsWith("/en-us/test/")?"test/":"",r=new URL(`/${b.data.userLocale}/${o}banners/index.json`,location.origin);if(R.reviewFeatures){let a=new URLSearchParams(location.search).get("api-branch")??"main";r.searchParams.set("branch",a)}let s=await e(r.href),{banners:i=[]}=s.ok?await s.json():{};ne.setItem(Ww,JSON.stringify({date:t,banners:i})),ne.setItem(Kw,b.data.userLocale)}function E4(){let e=Khe();if(!e)return;let t=b.data.userLocale,n=e.banners.filter(o=>o.location==="sectional"&&o.scope.accessLevels.includes("online")&&o.content.text&&(!o.scope.locales||o.scope.locales.includes(t))).map(({uid:o,scope:r,content:s,displayType:i})=>{let[a,l]=s.text.split("|");l||(l=a,a=""),a=a.trim(),l=l.trim();let c=r.paths.map(g=>{let f=!g.endsWith("*");return{path:g.substring(1).replace(/\*/g,""),fullPathMatch:f}}),u="",p="";return s.link&&(u=s.link.title,p=s.link.href.startsWith("/")?`/${t}${so(s.link.href)}`:s.link.href),{id:o,startTime:r.startDate,endTime:r.endDate,bannerPaths:c,eventTitle:a,eventDescription:l,linkHref:p,linkText:u,imageUrl:s.imageUrl,displayType:i,displayedEventStartDate:r.displayedEventStartDate,displayedEventEndDate:r.displayedEventEndDate}});yR.push(...n)}function Khe(e=b.data.userLocale){let t=ne.getItem(Ww),n=ne.getItem(Kw);if(n&&n!==e||!t)return ne.removeItem(Ww),ne.removeItem(Kw),null;try{let r=JSON.parse(t);if(r.date=new Date(r.date),isNaN(r.date.getTime()))return null;for(let s of r.banners){if(s.scope.startDate=new Date(s.scope.startDate),s.scope.endDate=new Date(s.scope.endDate),isNaN(s.scope.startDate.getTime())||isNaN(s.scope.endDate.getTime()))return null;s.scope.displayedEventStartDate&&s.scope.displayedEventEndDate&&(s.scope.displayedEventStartDate=new Date(s.scope.displayedEventStartDate),s.scope.displayedEventEndDate=new Date(s.scope.displayedEventEndDate))}return r}catch{ne.removeItem(Ww),ne.removeItem(Kw)}return null}k();var Pg=Intl.DateTimeFormat().resolvedOptions().timeZone;function or(e){let t=Math.floor(e/60),n=e%60;return t===0?s0.replace("{numberOfMinutes}",n.toString()):n===0?`${t} ${XZ}`:tX.replace("{numberOfHours}",t.toString()).replace("{numberOfMinutes}",n.toString())}var Jhe=new Intl.DateTimeFormat(b.data.userLocale,{hour:"numeric",minute:"numeric"}),w0t=new Intl.DateTimeFormat(b.data.userLocale,{month:"long",day:"numeric"}),S0t=new Intl.DateTimeFormat(b.data.userLocale,{month:"short",day:"numeric"}),C0t=new Intl.DateTimeFormat(b.data.userLocale,{month:"short",year:"2-digit"}),NFe=new Intl.DateTimeFormat(b.data.userLocale,{month:"long",year:"numeric"}),E0t=new Intl.DateTimeFormat(b.data.userLocale,{day:"numeric"}),A0t=new Intl.DateTimeFormat(b.data.userLocale,{month:"short"}),k0t=new Intl.DateTimeFormat(b.data.userLocale,{weekday:"short"}),I0t=new Intl.DateTimeFormat(b.data.userLocale,{year:"numeric"}),Qi=new Intl.DateTimeFormat(b.data.userLocale,{month:"long",day:"numeric",year:"numeric"}),P0t=new Intl.DateTimeFormat(b.data.userLocale,{weekday:"long",month:"long",day:"numeric",year:"numeric"});function Zhe(e=Pg){return new Intl.DateTimeFormat(b.data.userLocale,{month:"long",day:"numeric",year:"numeric",timeZone:e})}function Ul(e=Pg){return new Intl.DateTimeFormat(b.data.userLocale,{month:"short",day:"numeric",year:"numeric",timeZone:e})}function Xhe(e=Pg){return new Intl.DateTimeFormat(b.data.userLocale,{month:"2-digit",day:"2-digit",year:"numeric",timeZone:e})}function ebe(e=Pg){return new Intl.DateTimeFormat(b.data.userLocale,{month:"short",day:"numeric",year:"numeric",hour:"numeric",minute:"numeric",timeZone:e})}function k4(e=Pg){return new Intl.DateTimeFormat(b.data.userLocale,{month:"short",day:"numeric",hour:"numeric",timeZone:e})}function io(e){return Math.floor(e/1e3)}function tbe(e){return Math.floor(e/1e3/60)}function I4(e){let t=e/1e3,n=Math.floor(t/3600),o=A4(Math.floor(t%3600/60)),r=A4(Math.floor(t%3600%60));return n<1?`${o}:${r}`:`${A4(n)}:${o}:${r}`}function vR(e){let t="",n=0,o="",r=Math.floor(e/168),s=Math.floor(e%168/24),i=e-r*168-s*24;if(r>0&&n++,s>0&&n++,i>0&&n++,n>0&&n--,r>0){let l=r===1?Y0:W0;a(),t+=r.toString()+" "+l+o,o=""}if(s>0){let l=s===1?KE:Wv;a(),t+=s.toString()+" "+l+o,o=""}if(i>0){let l=i===1?nA:Nu;t+=i.toString()+" "+l}return t;function a(){n>0&&(o=", ",n--)}}function Lg(e){if(!e)return"";let t=e.getMonth()+1,n=e.getDate();return`${e.getFullYear()}-${t>9?t:`0${t}`}-${n>9?n:`0${n}`}`}function A4(e){return e<10?`0${e}`:`${e}`}function nbe(e){if(e===0)return"PT0S";let t=Math.floor(e/864e5);e=e-t*864e5;let n=e,o=Math.floor(e/36e5);e=e-o*36e5;let r=Math.floor(e/6e4);e=e-r*6e4;let s=Math.floor(e/1e3);e=e-s*1e3;let i="P";return t>0&&(i+=t.toString()+"D"),n>0&&(i+="T"),o>0&&(i+=o.toString()+"H"),r>0&&(i+=r.toString()+"M"),s>0&&(i+=s.toString()+"S"),i}function G_(e){let t="h",n="m",o="s",r=0,s=e.indexOf(t)!==-1,i=e.indexOf(n)!==-1,a=e.indexOf(o)!==-1;return r+=s?Number(e.substring(0,e.indexOf(t)))*3600:0,r+=i?s?Number(e.substring(e.indexOf(t)+1,e.indexOf(n)))*60:Number(e.substring(0,e.indexOf(n)))*60:0,r+=a?Number(i?e.substring(e.indexOf(n)+1,e.indexOf(o)):s?e.substring(e.indexOf(t)+1,e.indexOf(o)):e.substring(0,e.indexOf(o))):0,r}function P4(e){let t="",n="",o="";if(e.indexOf(":")===-1)return Number(e)>0?e+"s":t;let r=e.split(":");return isNaN(Number(r[0]))||isNaN(Number(r[1]))||isNaN(Number(r[2]))&&r.length===3||r.length>3?"":(Number(r[0])>0&&(o=r.length===2?Number(r[0]).toString()+"m":Number(r[0]).toString()+"h"),Number(r[1])>0&&(n=r.length===2?Number(r[1]).toString()+"s":Number(r[1]).toString()+"m"),Number(r[2])>0&&(t=r.length===2?"":Number(r[2]).toString()+"s"),o+n+t)}k();function V_(e,t,n,o){let r=o?d`${o}`:"",s=S.rightRailSticky?"":d``;return d` ${s}
    ${e}
    ${t}
    ${r}
    `}function j_(e,t){return d`

    ${t}

    `}function Q_(e,t,n,o,r,s){let i=o?d`

    ${o}

    `:"",a=n?d`

    ${e}

    `:d`

    ${e}

    `;return d` ${i} ${a} `}function Y_(e,t=!0){return d`

    ${e}

    `}function obe(e){return d``}function W_(){if(!S.connectedExperiences)return;let e=document.getElementById("ms--additional-resources-heading");e&&(e.hidden=!1);let t=document.getElementById("ms--additional-resources-mobile-heading"),n=document.querySelector("#ms--additional-resources-mobile > hr");t&&n&&(n.hidden=!1,t.hidden=!1)}function FFe(e){let t=k4().format(e.displayedEventStartDate),n=k4().format(e.displayedEventEndDate),o=j_("docon-special-event",aJ),r=e.eventTitle?Q_(e.eventTitle,!1,e.linkHref):"",s=e.eventTitle?"margin-top-xs":"",i=d` ${e.displayType==="event-image-card"&&e.imageUrl?obe(e.imageUrl):""} ${r}

    ${t} - ${n}

    ${Y_(e.eventDescription,!1)}${e.linkText}`;return V_(o,i,!1)}async function rbe(){!S.connectedExperiences&&!S.temporaryClientSideEventBanners||(await C4(),E4())}function sbe(e){let t=Array.from(document.querySelectorAll("#right-rail-events, #right-rail-events-mobile"));W_();for(let n of t)x(FFe(e[0]),n),n.hidden=!1,Rt()}var OFe=["Ask","ApiBrowserPage","Architecture","AssessmentsBrowse","AssessmentsLanding","AssessmentsHome","AssessmentsSession","CareerPath","Challenge","CollectionsHome","Conceptual","ContentBrowserPage","ContentPage","Course","Directory","FAQ","HowTo","Hub","Landing","LearnHome","LearningPath","Marketing","Module","Moderation","ProductList","Reference","Question","QuestionEdit","QuestionList","Sample","SearchPage","Show","SkillingPlans","Tag","TagList","TopicLanding","Welcome"],UFe=["/aspnet/core/blazor/globalization-localization","/dotnet/framework/ui-automation/accessibility-best-practices","/learn/modules/intro-accessibility-disability/","/learn/modules/write-inclusive-windows-apps/","/learn/paths/accessibility-fundamentals/","/training/modules/intro-accessibility-disability/","/training/modules/write-inclusive-windows-apps/","/training/paths/accessibility-fundamentals/","/microsoft-edge/accessibility/","/microsoft-edge/devtools-guide-chromium/accessibility/reference","/windows/uwp/design/accessibility/basic-accessibility-information","/xamarin/android/app-fundamentals/accessibility","/xamarin/ios/app-fundamentals/accessibility","/xamarin/xamarin-forms/app-fundamentals/accessibility/"];function xR(e=location.pathname,t=Fs.template){return e=so(e),UFe.includes(e)?!1:OFe.includes(t)||!t&&e.startsWith("/answers/")}function TR(){let e=document.getElementById("cookie-consent-holder");return!e||document.getElementById("banner-holder")?null:(e.insertAdjacentHTML("afterend",''),e.nextElementSibling)}function ibe(e,t,n,o){let r=rk(),s=r>t.getTime()&&r<=n.getTime(),i=localStorage.getItem(e)==="hide",a=so(location.pathname).toLowerCase();a=a.startsWith("/")?a.substring(1):a;let l=o.some(c=>c.fullPathMatch?a===c.path:a.startsWith(c.path));return s&&!i&&l}k();function qFe({uid:e,startDate:t,endDate:n,cssClass:o,title:r,subtitle:s,description:i,cta:a,theme:l,buttonCss:c=""},u=Date.now(),p=location.pathname){if(p=so(p),!S.marketing||u=n.getTime()||!xR()||ne.getItem(e)==="hide")return!1;let m=TR();if(!m)return!1;m.classList.add(`theme-${l}`);let g=d`

    ${r}

    ${s?d`

    ${s}

    `:""}
    ${a.title}
    `;return x(g,m),!0}function HFe(e=rk()){return qFe({uid:"2026-09--ignite",title:kae,description:Lae,subtitle:Pae,cta:{href:"https://ignite.microsoft.com/home?wt.mc_ID=msignite26_gmee_corp_np_oo_MSLearnRegLaunch",title:Iae},cssClass:"ignite-banner",theme:"light",startDate:new Date("2026-08-20T15:00:00.000Z"),endDate:new Date("2026-11-17T07:00:00.000Z")},e)}function abe(){return HFe()}async function lbe(){if(!xR())return;S.connectedExperiences&&S.temporaryClientSideEventBanners?await rbe():Whe();let e=yR.filter(n=>{let{id:o,startTime:r,endTime:s,bannerPaths:i}=n;return ibe(o,r,s,i)}),t=!1;if(!(abe()&&(t=!0,!S.connectedExperiences))&&!(e.length<1)){if(S.connectedExperiences&&e[0].displayType)sbe(e);else if(!t)for(let n of e){let o=TR();if(!o)return;let{id:r,eventTitle:s,eventDescription:i,linkHref:a,linkText:l}=n,c=BFe(`${r}-banner`,`${r}-event`,s,i,a,l);x(c,o);let u=o.querySelector("[data-dismiss]");u.onclick=()=>ne.setItem(r,"hide")}}}function BFe(e,t,n,o,r,s){let i=r&&s?d`${s}`:"";return d``}tm();async function zFe(e,t="fiveStar"){e.rating&&(t==="binary"?e.rating=(e.rating-1)/4:e.rating/=5)}async function cbe(e,t="fiveStar"){if(e.rating===null||e.rating===void 0||isNaN(e.rating))throw new Error("No rating was selected by the user");zFe(e,t);let n={method:"POST",headers:{"Content-Type":"applicationhttps://www.microsoft.com/json"},body:JSON.stringify(e)},o=J(`${N.ocvFeedback}`,n),r=await $(o),s;if(r.ok)return s=await r.json(),s;throw new Error(`ocv api responded with ${r.status} ${r.statusText}`)}k();Qe();var GFe=[Tae,jee,PJ,HZ,BZ];function ube(e,t,n,o,r,s,i=GFe,a=!1,l="star-rating-control"){let c=document.createElement("fieldset");c.classList.add("star-rating-control"),c.setAttribute("data-bi-name",l);let u=`font-size-${t}`,p=`font-size-${n}`,m=tt(),g=[],f=o==="display-inline-flex"?"":o;for(let T=0;T<5;T++){let I=tt();g.push(d``)}let _=r?d`
    ${JZ}
    `:"",h=d` ${_}
    ${g}
    `,v=o==="display-inline-flex"?d`
    ${h}
    `:h;x(v,c);let y=c.querySelector(".rating-output");if(e!==0){let T=c.querySelector(`input[value="${e}"]`);T.checked=!0,y.textContent=T.nextElementSibling.textContent}return c.onmouseover=T=>{let I=T.target.closest("label");I&&(y.textContent=I.textContent)},c.onmouseleave=()=>{y.textContent=""},c.onchange=T=>{let I=T.target,E=parseInt(I.value),q=c.querySelectorAll(".star-collection input");for(let D=0;D=D?q[D].classList.add("is-selected"):q[D].classList.remove("is-selected");s(E),I.nextElementSibling&&(y.textContent=I.nextElementSibling.textContent)},c}var VFe=2539,jFe=50033,dbe=R.reviewFeatures?jFe:VFe;var pbe="a6b7c4ac-4c15-426f-b054-42341177dffc";var mbe=[hee,fee,gee,mee,pee];function gbe(){Jt(kK,{text:yae,clickHandler:JFe},void 0,void 0,"mt-csat-banner")}var wR,L4,Jw;function QFe(){return d``}function YFe(){let e=ube(0,"m","m","",!1,t=>wR=t,mbe,!0);return d``}function WFe(){Se({actionType:Ee.OTHER,behavior:me.OTHER,content:{type:"translation-csat-feedback",score:wR,verbatim:L4}})}function KFe(e){if(e.preventDefault(),Jw){WFe(),cbe({manifestType:"Psat",appId:dbe,submitTime:new Date().toISOString(),source:"Client",type:"Survey",telemetry:{featureArea:"Docs"},clientFeedbackId:uu(),survey:{surveyId:pbe},rating:wR,comment:L4||"",web:{sourcePageURI:location.origin+location.pathname}});let t=document.createElement("div");t.classList.add("modal-slide"),x(QFe(),t),Jw.pushContent(t)}}function JFe(){let e=document.createElement("div");x(YFe(),e),Jw=null,wR=null,Jw=new Te(e),Jw.show()}var ZFe=dt.machineTranslated;function hbe(e){let t=e.toLowerCase(),n=b.data.isEditDisplayable;if(S.translationFeedback){gbe();return}Bn()||t.startsWith("en-")||!ZFe||(n?Jt(RK):Jt(MK))}function bbe(){let e=Array.from(document.querySelectorAll("[data-read-in-link]"));for(let t of e){let n=t.querySelector("[data-read-in-link-text]");if(R4()){let r=new URL(document.referrer),s=Qw(r.pathname),i=wte.replace("{language}",Ol[s]);n.innerText=i,t.title=i,t.hidden=!1}else b.data.userLocale.includes("en-")||(n.innerText=L2,t.title=L2,t.hidden=!1);fbe(t),window.addEventListener("popstate",()=>fbe(t))}}function R4(e=location.href,t=document.referrer){if(!t)return!1;let n=new URL(e),o=new URL(t),r=Qw(n.pathname),s=Qw(o.pathname),i=kg(o.pathname,"en-us");return!(n.origin!==o.origin||n.pathname!==i||r===s)}function fbe(e){let t=new URL(location.href);if(R4()){let n=new URL(document.referrer),o=Qw(n.pathname);t.pathname=kg(t.pathname,o)}else t.pathname=kg(t.pathname,"en-us");e.href=t.href,XFe(e)}function XFe(e,t=R4()){let n=t?"on":"off";e.setAttribute("data-bi",JSON.stringify({cN:"language-toggle",value:n}))}k();function eOe(e){let t=ce().branch||ds.get("CONTENT_BRANCH")||"",n=e.sort().map(o=>``).join("");return`
    `}function M4(){if(!R.reviewFeatures)return;let e=document.getElementById("article-header-page-actions");if(e===null)return;let t=document.querySelector('meta[name="branches"]')?.content.split(",")??[];if(t.length===0)return;let n=document.createElement("div");n.classList.add("control"),n.id="branch-selector-container",n.innerHTML=eOe(t);let o=n.querySelector("select"),r=ce().view||"",s=r?`view=${encodeURIComponent(r)}&`:"";o&&(o.onchange=()=>{let a=o.value;ds.set("CONTENT_BRANCH",a),window.location.search=`?${s}branch=${encodeURIComponent(a)}`}),e.insertAdjacentElement("afterbegin",n),n.classList.remove("control"),n.classList.add("display-flex","align-items-center")}k();var $4=class{constructor(t,n=[]){this.breadcrumbsWrapper=t,this.basePath=b.data.userLocale,this.baseTitle="Learn",Bt&&(this.baseTitle="Test",this.basePath+="/test"),this.breadcrumbsList=[{title:this.baseTitle,url:`/${this.basePath}/`},...n]}add(...t){t.forEach(n=>this.breadcrumbsList.push(n))}render(){D4(this.breadcrumbsList);let t=this.breadcrumbsWrapper;if(!t)return;x(d``,t);let n=document.getElementById("article-header-breadcrumbs-overflow"),o=document.querySelectorAll(".has-interactive section.primary-holder"),r=document.getElementById("branch-selector"),s;r&&(s=tOe(o,r)),n&&x(d`${s} `,n)}breadcrumbsTemplate(){return this.breadcrumbsList.map(t=>{let n;return t.url?(t.url=t.url.replace(/\/index$/i,"/"),n=d`${t.title}`):n=d`${t.title}`,d`
  • ${n}
  • `})}};function tOe(e,t){let n;if(e.length&&t){n=document.getElementById("branch-selector-container"),n&&n.classList.add("padding-xxs");let o=document.getElementById("article-header-breadcrumbs-overflow-popover");o&&o.setAttribute("style","display: inline-block !important")}return n}async function lp(e){if(b.data.context.chromeless)return;await xe;let t=e||document.getElementById("article-header-breadcrumbs");return t?new $4(t):void 0}function D4(e){let t={"@context":"https://schema.org","@type":"BreadcrumbList",itemListElement:[]},n=e.filter((o,r)=>o.url||r+1===e.length).map((o,r)=>{let s={name:o.title,position:r+1,"@type":"ListItem"};return o.url&&(s.item=o.url),s});if(t.itemListElement=n,t.itemListElement.length){let o=document.createElement("script");o.setAttribute("type","application/ld+json"),o.textContent=JSON.stringify(t),document.head.appendChild(o)}}function _be(){let e=Array.from(document.querySelectorAll(".has-interactive section.primary-holder"));if(!e.length)return;let t=e[0],n=document.getElementById("article-header-breadcrumbs-overflow-popover");if(n){let r=document.getElementById("article-header-breadcrumbs-overflow");if(!r)return;n.addEventListener("toggle",()=>{r.getBoundingClientRect().width{s.getBoundingClientRect().width{w.body.removeChild(n)},()=>{w.body.removeChild(n),o=!1}),o}function N4(e,t){return navigator.clipboard?navigator.clipboard.writeText(e).then(()=>!0,()=>!1):Promise.resolve(Es(e,t))}var SR=!1;function ybe(){function e(t){let n=B.getSelection();if(!n)return;let o=n.toString(),r=Wle(o);if(Zw&&o!==r&&!SR){SR=!0,Es(r,t.target);return}Vt(t.target,{actionType:Ee.OTHER,behavior:me.COPY,content:{event:"copy",name:Bc(t.target),value:o,unprintable:SR}}),SR=!1}w.addEventListener("copy",e,{passive:!0})}Mg();var ja={any:!1};function nOe(){let e=Ai("monikers");ja.any=e.length>0;for(let t of e)ja[t]=!0}nOe();function Yi(e){return e!==""&&ja[e]!==void 0}k();function ql(e){e&&e.addEventListener("click",t=>{let n=t.target instanceof HTMLElement&&t.target.closest("button[data-show-more]");if(n||(n=t.target instanceof HTMLElement&&t.target.shadowRoot&&t.target.shadowRoot.activeElement&&t.target.shadowRoot.activeElement.closest("button[data-show-more]")),n||(n=t.target instanceof HTMLElement&&t.target.shadowRoot&&t.target.shadowRoot.activeElement&&t.target.shadowRoot.activeElement.shadowRoot&&t.target.shadowRoot.activeElement.shadowRoot.activeElement.closest("button[data-show-more]")),!n)return;let o=n.getAttribute("aria-controls"),r=document.getElementById(o);if(r||(r=t.target instanceof HTMLElement&&t.target.shadowRoot&&t.target.shadowRoot.activeElement&&t.target.shadowRoot.activeElement.closest(`[id='${o}']`)),r||(r=t.target instanceof HTMLElement&&t.target.shadowRoot&&t.target.shadowRoot.activeElement&&t.target.shadowRoot.activeElement.shadowRoot.activeElement.closest(`[id='${o}']`)),!r)return;let s=n.getAttribute("aria-expanded")==="true";n.setAttribute("aria-expanded",(!s).toString());let i=Array.from(r.querySelectorAll(".expandable")),a=Array.from(document.querySelectorAll(`#${CSS.escape(o)} .expandable .expandable`));i=i.filter(u=>!a.includes(u));for(let u of i)u.classList.toggle("is-expanded");if(n.hasAttribute("data-show-once")){n.remove();let u=r.querySelector("[data-autofocus]");if(u){u.focus();return}let p=i[0];if(p){let m=U_(p)?p:p.querySelector(rp.join(","));m||(p.setAttribute("tabindex","-1"),m=p),m.focus({preventScroll:!0})}return}let l=n.querySelector(".show-more-text");if(!l)return;let c={show:n.getAttribute("data-title")||Hu,hide:n.getAttribute("data-expanded-title")||uh};if(l.innerText=s?c.show:c.hide,!s){let u=r.querySelector(".is-expanded");if(!u)return;let p=u.querySelector(rp.join(","));p?n.compareDocumentPosition(p)&Node.DOCUMENT_POSITION_FOLLOWING||p.focus():u.focus()}})}function Qa(e,t="show-more-btn",n,o,r,s,i,a,l){let c=n||"button button-primary",u=r||Hu;return d``}k();var Tbe=6,wbe=4,Sbe=11,Cbe=9,oOe=9,xbe=!1;function cp(){let e=w.getElementById("center-doc-outline"),t=w.getElementById("side-doc-outline");if(e===null||t===null){e?.remove(),t?.remove();return}let n="#ms--in-this-article, #ms--feedback, #ms--additional-resources-mobile-heading",o=S.referenceRightRailH3?`#main h2:not(${n}), #main h3`:`#main h2:not(${n})`,r=Array.from(w.querySelectorAll(o)),s=[];if(r.forEach(i=>{let a=i.tagName.toLowerCase(),l=i.offsetParent!==null,c=ak(i).trim();l&&c.length>0&&(i.id||(i.id=c.toLowerCase().replace(/\s+/g,"-")),a==="h2"?s.push({text:c,id:i.id,children:[]}):a==="h3"&&s[s.length-1].children?.push({text:c,id:i.id}))}),s.length<2){e.hidden=!0,t.hidden=!0;return}e.hidden=!1,rOe(s,e),sOe(s,t)}function rOe(e,t){let n=b.data.pageTemplate==="Reference",o="content-well-in-this-article-list",r=n?Ebe(e,o,"content-well"):Abe(e,o,"content-well");x(d`

    ${v2}

    ${r} `,t)}function sOe(e,t,n=b.data.pageTemplate){let o=e.length>oOe,r=n==="Reference",s="right-rail-in-this-article-list",i=r?Ebe(e,s,"right-rail"):Abe(e,s,"right-rail");x(d`

    ${v2}

    ${i} `,t),o&&!xbe&&(ql(t),xbe=!0)}function Ebe(e,t,n){let o=n==="content-well"?"border-left padding-left-xxs":"",r=n==="content-well"?"":"border-left-md border-color-transparent padding-left-xxs",s=n==="content-well"?"":"color-text-subtle",i=n==="content-well"?Tbe:Sbe,a=n==="content-well"?wbe:Cbe,l=e.length>=i,c=d`
      ${e.map(({text:p,id:m,children:g},f)=>{let _=g?.length?d`
      1. ${p}
      2. ${g?.map(({text:y,id:T})=>d`
      3. ${y}
      4. `)}
      `:"",v=l&&f>=a?"expandable":"";return _?d`
    1. ${p}${_}
    2. `:d`
    3. ${p}
    4. `})}
    `;return l?d` ${c} ${kbe(e,t,a,n)} `:c}function Abe(e,t,n){let o=n==="content-well"?"border-left padding-left-xxs":"padding-right-xxs",r=n==="content-well"?"":"border-left-md border-color-transparent padding-left-xxs",s=n==="content-well"?"":"color-text-subtle",i=n==="content-well"?Tbe:Sbe,a=n==="content-well"?wbe:Cbe,l=e.length>=i,c=d`
      ${e.map(({text:p,id:m},g)=>{let _=l&&g>=a?"expandable":"";return d`
    1. ${p}
    2. `})}
    `;return l?d` ${c} ${kbe(e,t,a,n)} `:c}function kbe(e,t,n,o){let r=e.length-n,s=U0.replace("{number}",r.toString());return Qa(t,"show-more-btn",`link-button font-weight-semibold font-size-sm margin-top-xxs ${o==="content-well"?"margin-left-xs":"margin-left-xxs"}`,void 0,s,!0)}var Hl,Bl;function q4(){let e=document.getElementById("assertive-live-region"),t=document.getElementById("polite-live-region");e?Hl=e:(Hl=document.createElement("div"),Hl.setAttribute("role","alert"),Hl.setAttribute("aria-live","assertive"),Hl.setAttribute("aria-relevant","additions"),Hl.setAttribute("aria-atomic","true"),Hl.classList.add("visually-hidden"),Hl.setAttribute("id","assertive-live-region"),document.body.appendChild(Hl)),t?Bl=t:(Bl=document.createElement("div"),Bl.setAttribute("role","status"),Bl.setAttribute("aria-live","polite"),Bl.setAttribute("aria-relevant","additions"),Bl.setAttribute("aria-atomic","true"),Bl.classList.add("visually-hidden"),Bl.setAttribute("id","polite-live-region"),document.body.appendChild(Bl))}function iOe(e){let t=e.querySelector('.contextual-live-region[aria-live="assertive"]'),n=e.querySelector('.contextual-live-region[aria-live="polite"]');return t||(t=document.createElement("div"),t.setAttribute("role","alert"),t.setAttribute("aria-live","assertive"),t.setAttribute("aria-relevant","additions"),t.setAttribute("aria-atomic","true"),t.classList.add("contextual-live-region","visually-hidden"),e.appendChild(t)),n||(n=document.createElement("div"),n.setAttribute("role","status"),n.setAttribute("aria-live","polite"),n.setAttribute("aria-relevant","additions"),n.setAttribute("aria-atomic","true"),n.classList.add("contextual-live-region","visually-hidden"),e.appendChild(n)),{contextualAssertiveRegion:t,contextualPoliteRegion:n}}function aOe(e){q4();let t;try{t=document.querySelector(".modal.is-active, :modal")}catch{t=document.querySelector(".modal.is-active")}if(!t)return e==="assertive"?Hl:Bl;let{contextualAssertiveRegion:n,contextualPoliteRegion:o}=iOe(t);return e==="assertive"?n:o}function pt(e,t="polite",n=5e3){let o=aOe(t);o.innerHTML="";let r=document.createElement("div");r.setAttribute("role","none"),r.textContent=e,o.appendChild(r),setTimeout(()=>{r?.remove()},n)}var ER=class{constructor(t){this.expanded=t}},H4={expanded:"ap-expanded",collapsed:"ap-collapsed",expandButton:"ap-expand-behavior",collapseButton:"ap-collapse-behavior"},B4;function z4(e,t){B4=t;let n=document.documentElement.classList,o=document.querySelector(".action-panel");if(n.contains("ap-layout")||e==="none")return o;let r=document.querySelector("[data-main-column]"),s=Pbe();n.add("ap-layout"),e==="animate"&&n.add("ap-layout-animates"),setTimeout(()=>n.add("ap-layout-in"),20);let i=()=>{o.removeEventListener("transitionend",i),n.remove("ap-layout-animates"),n.add("ap-layout-finished"),lOe(o),Rt(),s(r),o?.setAttribute("aria-expanded","true"),o?.focus(),ut.publish(new ER(!0))};return o.addEventListener("transitionend",i),o}function lOe(e){let t=(()=>{let o=document.querySelector(".ap-layout-finished .content-header");return window.getComputedStyle(o).getPropertyValue("height")})(),n=document.querySelector(".ap-layout-finished [data-main-column]");e.style.top=t,n.style.top=t,n.classList.add("padding-top-none")}function Ibe(){let e=document.documentElement.classList;if(!e.contains("ap-layout"))return;let t=Pbe(),n=document.querySelector(".action-panel");e.remove("ap-layout"),e.remove("ap-layout-animates"),e.remove("ap-layout-in"),e.remove("ap-layout-finished"),Rt(),t(document.documentElement),B4&&B4.focus(),n?.setAttribute("aria-expanded","false"),ut.publish(new ER(!1)),document.querySelector("[data-main-column]")?.classList.remove("padding-top-none")}function Pbe(){let e=document.querySelector("main");if(!e||!e.children)return()=>{};let t=e.children;for(let n=t.length-1;n>=0;n--){let o=t.item(n);if(o.hasAttribute("hidden"))continue;let{top:r}=o.getBoundingClientRect();if(r<=5||n===0){let s=o.clientWidth;return i=>{o.scrollIntoView(!0),i.scrollTop-=r*s/o.clientWidth}}}return()=>{}}function Lbe(){addEventListener("click",e=>{if(!(e.target instanceof Element))return;let t=e.target.closest(`.${H4.expandButton}, .${H4.collapseButton}`);t&&(t.classList.contains(H4.expandButton)?z4("animate",t):Ibe())}),cpe.addListener(Ibe)}function Rbe(){if(window.scrollTo(0,0),!S.chromeless){let e=document.querySelector("[data-main-column]");e&&(e.scrollTop=0)}}Mg();k();var cOe=0,$be="code-try-",uOe=(()=>{let e=location.hash.split($be)[1];if(e===void 0)return-1;let t=parseInt(e,10);return t>=-1?t:-1})(),dOe=()=>cOe++,pOe=e=>e===uOe,Mbe=!1;function G4(){Mbe||(Mbe=!0,w.addEventListener("click",e=>{let n=e.target.closest("[data-code-header-copy-button]");n&&(e.preventDefault(),mOe(n))}))}function mOe(e){if(!Zw||!e||!yOe(e))return;let t=e.closest("[data-code-block-header]"),n=gOe(t);if(!n)return;let o=n.getAttribute("data-language")||"",r=n.firstElementChild||n;_Oe(r,o)&&Vt(e,{actionType:Ee.OTHER,behavior:me.COPY,content:{event:"copy",name:Bc(t)}}),e.focus()}function gOe(e){let t=e?.nextElementSibling;return t?t.hasAttribute("data-language")?t:t.querySelector("pre[data-language]"):null}function fOe(e,t){return t==="rtl"?je(e).replace(/(^|\s|\>)(C#|F#|C\+\+)(\s*|[.!?;:]*)(\<|[\n\r]|$)/gi,"$1$2‎$3$4"):e}function Dbe(e,t){G4();let n=w.createElement("div"),o=dOe(),r=`${$be}${o}`;n.classList.add("code-block-header","margin-top-sm"),n.setAttribute("data-code-block-header",""),n.setAttribute("id",r),n.setAttribute(An.name,"code-header"),e.monikers&&n.setAttribute("data-moniker",e.monikers);let s=e.interactiveType&&!(e.interactiveType.flags.requiresStructuredData&&b.data.pageTemplate==="Conceptual"),i=Zw?V4():"",a=s&&e.interactiveType?hOe(e.interactiveType):"",l=d`${F(fOe(e.displayName,t))}
    ${i} ${a}
    `;x(l,n),e.element&&e.element.setAttribute("data-language",e.language);let c=e.interactiveType,u=e.scaffoldingType;if(s){let p=n.querySelector("button[data-code-header-action-button]");if(p){let m=c?.activateButtonConfig;for(let f of m?.attributes||[])p.setAttribute(f.name,f.value);let g=(f,_=!1)=>{_!==!0&&history.replaceState(null,"",`#${r}`),p.classList.add("is-loading"),p.disabled=!0;let h=e.element.textContent?.trim()||"",v;if(c){if(b.data.pageTemplate==="ModuleUnit"){let y=w.getElementById("interactive-container");v=U4(c,y)}else{let y=z4("animate",p);v=U4(c,y)}v.setCode(h,u).then(()=>v.execute()).catch(()=>{}).then(()=>{p.classList.remove("is-loading"),p.disabled=!1})}};p.addEventListener("click",g),pOe(o)&&g(null,!0)}}e.element.classList.remove("loading"),e.element.insertAdjacentElement("beforebegin",n),e.header=n}function V4(){return d``}function hOe(e){let t=e.activateButtonConfig;return d``}var K_=e=>e.split(/\n\n/).map(t=>t.split(/[\\`][\s]*$/gm).map(n=>n.trim()).join(" ")).join(` `),bOe={powershell:e=>K_(e.replace(/\bPS [a-z]:\\>\s?/gi,"")),azurecli:K_,azurepowershell:K_,"azurepowershell-interactive":K_,"cloudshell-powershell":K_,ps:K_};function _Oe(e,t){let o=(bOe[t]||(r=>r))(e.textContent?.trim()||"");return Es(o,e)}function yOe(e){if(e.getAttribute("debounce")==="true")return!1;let t=e.querySelector("[data-copy-button-success-indicator]");return t?.classList.remove("is-transparent"),e.setAttribute("debounce","true"),pt(jE,"assertive",1e3),setTimeout(()=>{t?.classList.add("is-transparent"),e.removeAttribute("debounce")},1e3),!0}var Qt=class extends Error{constructor(t){let{status:n,statusText:o,url:r}=t,s=j4(t.headers);super(`Unexpected response status ${n}: ${o} from "${r}". Headers: ${JSON.stringify(s,null,2)}`),this.name=this.constructor.name,typeof Error.captureStackTrace=="function"&&Error.captureStackTrace(this,this.constructor),this.status=n,this.statusText=o,this.url=r,this.headers=s}};function j4(e){let t;try{t=Object.fromEntries(e)}catch{t={error:"Unable to serialize headers"}}if("set-cookie"in t){let n=t["set-cookie"];t["set-cookie"]=`[Redacted. Length=${n.length}]`}return t}async function J_(e,t=b.data.userLocale){let n=`${N.taxonomy}?${pe({name:e,locale:t})}`,o=await $(n);if(o.ok)return(await o.json())[e].map(s=>({value:s.slug,displayName:s.styleGuideLabel||s.label,level:s.level?+s.level:s.level,parent:s?.parentSlug}));throw new Qt(o)}var Q4=class{constructor(){this.cache={}}async get(t){return await this.getInternal(t)}async getFamily(t){return await this.getInternal(t,1)}taxonomyTermsToTaxonomyMap(t,n){return t.reduce((o,r)=>((!n||r.level===n)&&(o[r.value]=r.displayName),o),{})}async getInternal(t,n){let o=[];try{t in this.cache||(this.cache[t]=J_(t)),o=await this.cache[t]}catch{delete this.cache[t]}return this.taxonomyTermsToTaxonomyMap(o,n)}},Xw=new Q4;var Nbe="proglang",Z_={getDisplayNames:()=>Xw.get("devlang"),visibilityMap:{"aspx-csharp":"csharp","aspx-vb":"vb"},syntaxMap:{aspx:"csharp",azdeveloper:"azurecli",azurepowershell:"powershell",cppcx:"cpp",cppwinrt:"cpp",hcl:"json",nodejs:"js",nosql:"sql","powerquery-m":"fsharp"},unset:"",default:vOe(),get preferred(){return(ne.getItem(Nbe)||Z_.unset).substr(5)},set preferred(e){ne.setItem(Nbe,"lang-"+e)}};function vOe(){return b&&b.data&&b.data.defaultDevLang?b.data.defaultDevLang:""}var AR,xOe=0,Fbe={};function kR(e){AR===void 0&&TOe();let t={id:xOe++,instructions:e};return AR.postMessage(t),new Promise(n=>Fbe[t.id]=n)}function TOe(){let e=location.origin+"/static/third-party/highlight.js/9.15.25/highlight.pack.js",t=new Blob([`(${wOe.toString()})('${e}') //# sourceURL=syntax-highlighter.js`],{type:"application/javascript"}),n=URL.createObjectURL(t);AR=new Worker(n),AR.onmessage=o=>{let r=o.data;Fbe[r.id](r.results)}}function wOe(e){function t(l,c){let u=[];if(c===null)return u;let p=/\n/g,m=1;for(;p.exec(l);)m++;let g=/(\d+)(?:\s*-\s*(\d+))?/g,f;for(;f=g.exec(c);){let _=+f[1]-1;if(isNaN(_)||_>=m)continue;let h=f[2]===void 0?_:+f[2]-1;isNaN(h)||h<_||(h=Math.min(h,m-1),u.push({start:_,end:h}))}return u}let n=/.*<\/rgn>/gi,o=/RGNPLACEHOLDER/g,r="RGNPLACEHOLDER";function s(l,c){return l.replace(n,u=>(c.push(u),r))}function i(l,c){return l.replace(o,()=>c.shift())}function a(l){let{id:c,instructions:u}=l.data,p=[];for(let{language:g,code:f,highlightLines:_}of u){let h={code:f,html:"",success:!1};try{let v=[],y=s(f,v),T=[],I=t(f,_);if(I.length){let D=y.split(` `),le=0;I.forEach(we=>{we.start>le&&T.push({highlight:!1,lines:D.slice(le,we.start).join(` `)}),T.push({highlight:!0,lines:D.slice(we.start,we.end+1).join(` `)}),le=we.end+1}),le<=D.length&&T.push({highlight:!1,lines:D.slice(le).join(` `)})}else T.push({highlight:!1,lines:y});let E=null,q="";do{let D=T.shift(),{value:le,top:we}=hljs.highlight(g,D.lines,!0,E);E=we,q+=D.highlight?`${le}`:`${le}`,T.length&&(q+=` `)}while(T.length);h.html=i(q,v),h.success=!0}catch{}p.push(h)}let m={id:c,results:p};self.postMessage(m,void 0)}self.importScripts(e),self.addEventListener("message",l=>{a(l)})}function SOe(e,t){for(let n=0;n code, span[class*="lang-"]'),s=[],i;if(r.length>0){let a=await t.getDisplayNames();for(let l=0;l({language:r.syntaxLanguage,code:r.code,highlightLines:r.highlightLines}));return n.forEach(r=>{Dbe(r,t)}),kR(o).then(r=>{for(let s=0;s{o.element.hidden=!r,o.header&&(o.header.hidden=!r)};for(let o of e){let r=!1;for(let s of o.members){let i=s.visibilityLanguage===t||s.element.classList.toString().indexOf(`lang-${t}`)!==-1;n(s,i),r=r||i}r||n(o.default,!0)}Rt()}function EOe(e,t,n=location.search){let o=IOe(e,n),r=t.preferred;return r!==t.unset&&e.indexOf(r)!==-1&&(o.length===0||o.indexOf(r)!==-1)?r:t.default!==t.unset&&e.indexOf(t.default)!==-1&&(o.length===0||o.indexOf(t.default)!==-1)?t.default:o.length!==0?o[0]:e[0]}var AOe=["Architecture","Conceptual","FAQ","HowTo","Marketing","ModuleUnit","OpenAPI-3-2-Operation@1","Question","QuestionEdit","Reference","Sample","Welcome"];function kOe(e){return AOe.includes(e)}function IR(){w.querySelectorAll(".cdlHolder .cdlLastVisible").forEach(function(n){n.classList.remove("cdlLastVisible")});let e=lt(),t=w.querySelectorAll(".cdlHolder");Yi(e)&&t.forEach(function(n){let o=n.querySelectorAll(`.cdl[data-moniker~='${e}']:not([hidden]),.cdl:not([data-moniker]):not([hidden])`);o.length>0&&o[o.length-1].classList.add("cdlLastVisible")})}async function eS(e){if(!kOe(b.data.pageTemplate))return;let t=Array.from(w.querySelectorAll(".lang-title")),n=Array.from(w.querySelectorAll(".language-selector button")),o=[];if(n.length>0){let c=await Z_.getDisplayNames();n.forEach(u=>{if(b.data.userDir==="rtl"?u.classList.add("justify-content-flex-end"):u.classList.add("justify-content-flex-start"),u.dataset.biName){let p=u.dataset.biName.substr(5);u.textContent=c[p],o.push(p)}})}let r=n!==null&&o.length>0,s=await COe(e??w.body,Z_,o);if(r){let c=EOe(o,Z_),u=w.querySelector('[data-bi-name="lang-'+c+'"]');t.forEach(p=>{p.textContent=u.textContent}),Ube(s,c),IR(),n.forEach(p=>{p===u&&p.setAttribute("aria-pressed","true"),Ht(p,"click",()=>{if(n.forEach(m=>{m.setAttribute("aria-pressed","false")}),p.setAttribute("aria-pressed","true"),t.forEach(m=>{m.textContent=p.textContent}),p.dataset.biName){let m=p.dataset.biName.substr(5);Z_.preferred=m,Ube(s,m)}IR(),cp(),Obe(s,b.data.contentDir)})})}let i=s.flatMap(c=>c.members),a=0;function l(){cancelAnimationFrame(a),a=requestAnimationFrame(()=>qbe(i))}return window.addEventListener("resize",l,{passive:!0}),qbe(i),Obe(s,b.data.contentDir)}function qbe(e){e.forEach(t=>{let{type:n,element:o}=t;if(n!=="precode")return;o.scrollWidth>o.clientWidth?(o.setAttribute("role","group"),o.setAttribute("aria-label",WZ),o.tabIndex=0):(o.removeAttribute("role"),o.removeAttribute("aria-label"),o.removeAttribute("tabindex"))})}function IOe(e,t=location.search){return new URLSearchParams(t).get("devlangs")?.split(",").filter(n=>e.includes(n))??[]}Qe();var tS={401:Qp,403:vF,404:Qp,422:Qp,429:vF,500:Qp};async function Hbe(e){let t={payload:{platformId:e}};try{let n=await $(J(N.copilot.summarize,{body:JSON.stringify(t),method:"POST"},!1)),o=n.status.toString();if(o in tS)try{return{message:(await n.json())?.message||tS[o],errorCode:o}}catch{return{message:tS[o],errorCode:o}}if(n.ok)try{let r=await n.json();return"errorCode"in r||r?.message?r:{message:TF,errorCode:"500"}}catch{return{message:TF,errorCode:"500"}}return{message:xF,errorCode:n.status.toString()}}catch{return{message:xF,errorCode:"500"}}}var zl=R.reviewFeatures===!0&&(R.accessLevel==="local"||R.supportLevel==="development"&&R.accessLevel==="online"||Bt),PR=typeof __karma__<"u";var POe=1e3*60*5,LOe=new URL(window.location.href).pathname.replace(new RegExp(`^/${b.data.userLocale}`),""),zbe="rollout-status",nS;async function Fr(e){nS===void 0&&(nS=Y4());let t=await nS;if(t&&"failed"in t&&(nS=Y4()),!t||"failed"in t)return Bbe("feature-rollout-failure",{featureName:e}),!1;let n=t.activeFeatures.find(r=>"name"in r?r.name===e:!1);if(!n)return!1;let o=await ROe(n);return Bbe("feature-rollout-activated",{featureName:e,isActive:o}),o}async function ROe(e,t=b.data.userLocale,n=LOe,o=b.data.pageTemplate,r=ve.then(()=>C.isAuthenticated)){if(!e.conditions)return!0;let s=e.conditions.find(g=>g.limitTo==="locale");if(!(s?s.locales.includes(t):!0))return!1;let a=e.conditions.find(g=>g.limitTo==="pathname");if(!(a?!!a.startsWith.find(g=>n.startsWith(g)):!0))return!1;let c=e.conditions.find(g=>g.limitTo==="pageTemplate");return(c?!!c.pageTemplates.find(g=>g===o):!0)?e.conditions.find(g=>g.limitTo==="authenticated")?await r:!0:!1}async function Gbe(){nS=Y4()}async function Y4(e=ce()["refresh-rollout"]==="true"){let t=MOe(e);if(t)return t;let o=`/en-us/feature-rollout.json${R.reviewFeatures?"?branch=main":""}`;zl&&(o=`/en-us/test/feature-rollout.json?branch=${bt()}`);try{let r=await $(o,{method:"GET"});if(!r.ok)return{failed:!0};let s=await r.json();return s.expiresAt=new Date(Date.now()+POe).getTime(),ne.setItem(zbe,JSON.stringify(s)),s}catch{return{failed:!0}}}function MOe(e=!1){if(e)return null;let t=ne.getItem(zbe);if(!t)return null;let n;try{n=JSON.parse(t)}catch{return null}if(!n||"failed"in n||!n.expiresAt)return null;let o=n.expiresAt||0;return Date.now()>=o||!("activeFeatures"in n)||"failed"in n?null:n}function Bbe(e,t){Se({content:{type:e,content:JSON.stringify(t)}})}var nt=class{},$g=class{};var Gl="ms--ai-summary-body",Vbe="ms--ai-summary",mu="ms--ai-summary-header",jbe="ms--ai-summary-cta",Qbe="ms--ai-summary-feedback",up="ai-summary",Ybe="ms--ai-summary-feedback-buttons",Wbe="ms--ai-summary-feedback-thanks";Qe();k();function Kbe(e){switch(e.state){case"ready":case"loading":return OOe(e);case"loaded":return $Oe(e);case"errored":return UOe(e);default:return d``}}function W4(e,t){return d`

    ${t}

    `}function $Oe(e){let t=d``;if(e.response){let{message:n}=e.response;n?t=d`${DOe(n)} ${NOe(e)} `:t=d`

    ${z0}

    `}return d`
    ${W4(e,dh)}
    ${t}
    `}function DOe(e){return d`
    ${F(e)}
    `}function NOe(e){return d`
    ${Bu} ${F(Use)}${FOe(e)}
    `}function FOe(e){return d`
    ${mh}
    `}function OOe(e){return d`
    ${W4(e,dh)}

    ${B0}

    `}function UOe(e){let{errorCode:t}=e.response,o=tS[t]??Qp;return d`
    ${W4(e,dh)}
    ${o}
    `}function Jbe(e){return typeof e=="object"&&e!==null&&"message"in e&&"errorCode"in e}var Vl,oS,rS,X_,ey,ty,ny,oy,ry,LR=class extends ze{constructor(n){super();this.state="ready";zt(this,Vl,null);zt(this,oS);zt(this,rS);zt(this,X_,!1);zt(this,ey,null);zt(this,ty,null);zt(this,ny,!1);zt(this,oy,!0);zt(this,ry,!0);gt(this,rS,P("platform_id")??""),gt(this,oS,n)}set sessionId(n){gt(this,ey,n)}get sessionId(){return ye(this,ey)}set interactionId(n){gt(this,ty,n)}get interactionId(){return ye(this,ty)}get response(){return ye(this,Vl)}set response(n){gt(this,Vl,n)}get visible(){return ye(this,X_)}set visible(n){ye(this,X_)!==n&&(gt(this,X_,n),this.notifyStateChanged())}get showFeedbackThanks(){return ye(this,ny)}set showFeedbackThanks(n){ye(this,ny)!==n&&(gt(this,ny,n),this.notifyStateChanged())}get showHeader(){return ye(this,oy)}set showHeader(n){ye(this,oy)!==n&&(gt(this,oy,n),this.notifyStateChanged())}get showCta(){return ye(this,ry)}set showCta(n){ye(this,ry)!==n&&(gt(this,ry,n),this.notifyStateChanged())}async fetch(){try{if(!this.response||Jbe(this.response)===!0){this.state="loading",this.notifyStateChanged();let n=new Date().toISOString(),o=await ye(this,oS).call(this,ye(this,rS));if(Jbe(o)){this.state="errored",gt(this,Vl,o),this.notifyStateChanged();return}else{gt(this,Vl,o),gt(this,ey,o?.sessionId??null),gt(this,ty,o?.interactionId??null);let r=new Date().toISOString();this.timeToContentTelemetry(n,r);try{let i=new DOMParser().parseFromString(ye(this,Vl).message??"","text/html");i.querySelectorAll("[id]").forEach(a=>{a.removeAttribute("id"),a.tagName.match(/^H[1-6]$/)&&a.classList.add("margin-top-xs")}),ye(this,Vl).message=i.body.innerHTML}catch{}}}this.state="loaded",this.notifyStateChanged()}catch(n){this.state="errored",gt(this,Vl,{message:n.message,errorCode:n.name}),this.notifyStateChanged()}}displayThanksForFeedback(n){this.showFeedbackThanks=!0,Se({behavior:me.OTHER,content:{autoIngest:!0,type:"ai-summary-feedback",aN:up,timestamp:new Date().toISOString(),sessionId:this.sessionId,interactionId:this.interactionId,feedbackData:{sat:n?1:0}}})}toggleAiSummaryVisibility(){this.visible=!this.visible,this.showHeader=!1,this.showCta=!0,this.visible||(this.showFeedbackThanks=!1),this.state==="errored"&&(this.state="ready")}timeToContentTelemetry(n,o){Se({behavior:me.OTHER,content:{autoIngest:!0,type:"ai-summary-request",aN:up,sessionId:this.sessionId,interactionId:this.interactionId,triggeredTimestamp:n,returnedTimestamp:o}})}notifyStateChanged(){this.publish(new nt)}};Vl=new WeakMap,oS=new WeakMap,rS=new WeakMap,X_=new WeakMap,ey=new WeakMap,ty=new WeakMap,ny=new WeakMap,oy=new WeakMap,ry=new WeakMap;async function Zbe(){let e=S.aiSummary&&await Fr("ai-summary")||Ye("ai-summary",{require:!0}),t=document.querySelector('[data-id="ai-summary"]'),n=document.getElementById(Vbe),o=document.getElementById(mu),r=document.getElementById(jbe);if(!e||!t||!n||!o||!r)return;t.hidden=!1;let s=new LR(Hbe),i=!1;n.addEventListener("click",async()=>{s.showHeader=!0,s.showCta=!1,s.visible=!0;let a=document.getElementById(mu);if(!a)return;let l=()=>{o.hidden=!s.showHeader,r.hidden=!s.showCta,x(Kbe(s),a)};i||(s.subscribe(nt,l),i=!0),l(),s.state==="ready"&&await s.fetch()})}k();function K4(e){return new Promise((t,n)=>{let o=w.createElement("img");o.classList.add("visually-hidden"),o.setAttribute("aria-hidden","true"),o.src=e,o.onload=()=>{o.remove(),t(null)},o.onerror=()=>{o.remove(),n()},w.body.appendChild(o)})}function sS(e){let t=w.createElement("link");t.rel="preload",t.as="image",t.href=e,w.head.appendChild(t)}function Xbe(e,t,n,o=500){let r=0,s=(...i)=>{t(r),r=e.apply(null,[n.bind(null,...i),o])};return s.cancel=()=>t(r),s}var sy={timeout:Xbe.bind(null,setTimeout,clearTimeout),animationFrame:Xbe.bind(null,B.requestAnimationFrame,B.cancelAnimationFrame)};function e_e(){qOe()}var J4=!1;function Z4(e,t,n=()=>{}){window.addEventListener("click",o=>{o.target instanceof HTMLElement&&o.target.closest(e)&&n(()=>t.show())})}function X4(e,t=()=>{},n=!1){window.addEventListener("click",o=>{let r=o.target instanceof HTMLElement&&o.target.closest(e);!r||!document.querySelector(".layout-body-flyout")||t(()=>{gu(r,n)})})}async function t_e(e,t,n,o=()=>{}){window.addEventListener("click",s=>{let i=s.target instanceof HTMLElement&&s.target.closest(e);i&&(s.preventDefault(),o(()=>{Rr.matches?n(i,!0):t()}))}),await xe;let r=document.querySelector(e);r&&(r.hidden=!1)}function gu(e,t=!1){let n=document.querySelector(".layout-body-flyout");if(!n)return;J4=!J4;let o=document.documentElement.classList.contains("layout-flyout-active")?"remove":"add",r=o==="add"?"flyout-show":"flyout-hide";if(window.dispatchEvent(new CustomEvent(r)),(!t||o==="add")&&(document.documentElement.classList[o]("layout-flyout-active"),Rt()),t||o==="add"){e.dataset.flyoutReturnFocus="true";let s=n.querySelector('button[data-flyout-button="close"]');s&&s.focus()}}cl.subscribe("layout-flyout-active","always",async e=>{let t=e.isApplied,n=t?"add":"remove";await xe;let o=document.querySelectorAll('[data-flyout-button="toggle"]');for(let r of o)r.classList[n]("is-selected"),r.setAttribute("aria-expanded",t.toString())});function qOe(){window.addEventListener("click",e=>{let t=e.target instanceof HTMLElement&&e.target.closest('[data-flyout-button="close"]');if(!t||t.closest(".modal")||!document.querySelector(".layout-body-flyout"))return;let s=document.querySelector('[data-flyout-return-focus="true"]')||document.querySelector('[data-flyout-button="toggle"]');s&&(s.focus(),s.removeAttribute("data-flyout-return-focus"),s.hasAttribute("aria-expanded")&&s.setAttribute("aria-expanded","false"),s.classList.remove("is-selected")),J4=!1,document.documentElement.classList.remove("layout-flyout-active"),window.dispatchEvent(new CustomEvent("flyout-hide")),Rt()})}function n_e(e,t){if(localStorage.getItem("playwrightActive"))return;let n=document.querySelector(t);if(!n)return;let o=Rr.matches,r=()=>!!document.querySelector('[data-chat-container-name="ask-learn-modal"]'),s=()=>document.documentElement.classList.contains("layout-flyout-active"),i=()=>{document.documentElement.classList.remove("layout-flyout-active"),n.classList.remove("is-selected")},a=()=>{let l=Rr.matches;!o&&l&&r()?(e.hide(),gu(n,!0)):o&&!l&&s()&&(e.show(),i()),o=l};window.addEventListener("resize",()=>{window.requestAnimationFrame(a)}),a()}var e6="[data-ask-learn-modal-entry]",iS="[data-ask-learn-flyout-entry]",RR="[data-ask-learn-modal-entry-feedback]",MR="[data-ask-learn-flyout-entry-show-only]",o_e="[data-skip-to-ask-learn]",r_e=[e6,iS];function i_e(){s_e(),ut.subscribe(bn,s_e)}async function s_e(){await xe,Array.from(document.querySelectorAll(r_e.join(","))).forEach(n=>n.hidden=!1),Array.from(document.querySelectorAll("[data-chat-tutor-modal-entry]")).forEach(n=>n.hidden=!0)}k();k();function a_e(e){let{text:t,biName:n,biTn:o,alignment:r,action:s}=e;return d``}function HOe(e,t){let n=[];for(let r=0;r`)}let o=gie.replace("{step-index}",e.toString()).replace("{step-count}",t.toString());return d`

    ${o}

    `}function BOe(e){return d``}function t6(e,t,n){let o=BOe(e.imageSrc);return d``}function $R(e,t,n){e0&&l_e(e-1,t,n)}var zOe='[data-focus-on-button-click="true"]';function l_e(e,t,n){let o=document.createElement("div"),r=t6(t[e],e,t.length);x(r,o),n.pushContent(o);let s=o.querySelector(zOe);s&&s.focus()}function NR(e){e.hide()}function n6(e,t){e.hide(),localStorage.setItem(t,"2")}function FR(e,t,n,o,r,s,i,a,l,c,u){return{fetch:e,maxMessages:t,getContextIdType:n,getContextId:o,validate:r,errorMapping:s,starterPrompts:i,suggestionPills:a,companionActive:l,onFeedback:c,onTimeTelemetry:u}}var iy="/en-us/media/ask-learn/meet-ask-learn-base.png",lS="/en-us/media/ask-learn/check-for-accuracy-base.png",OR="ask-learn-history",Dg="ask-learn-history-last-interaction-time",Ng="ask-learn-open-status";function GOe(e){return/[\u{10000}-\u{10FFFF}]/u.test(e)}function VOe(e){return GOe(e)?"non_unicode_characters":null}var aS={"validation-failure":IE,"session-not-found":Yo,"interaction-not-found":Yo,open_ai_content_filter:kN,copilot_content_filter:kN,knowledge_index_no_results:Hv,copilot_invalid_urls:Hv,open_ai_empty_message:Hv,failed_to_parse_open_ai_message:Hv,non_unicode_characters:vY,open_ai_too_many_requests:kE},jOe=[{icon:"text-align-left",header:"Clarify",description:"Tell me more about [concept]",prompt:"Tell me more about: "},{icon:"edit-outline",header:"Define",description:"Tell me the meaning of [term/concept]",prompt:"Tell me the meaning of: "},{icon:"chat-bubbles-question",header:"Guide",description:"Tell me how to [concept]",prompt:"Tell me how to: "}],QOe=[{name:"summarize",description:"Summarize this page",prompt:"Summarize this page"},{name:"troubleshoot",description:"Help me troubleshoot",prompt:"/troubleshoot"}],u_e={like:{[WQ]:"01-ai-positive-accurate-relevant",[KQ]:"02-ai-positive-complete-clear",[JQ]:"03-ai-positive-fast",[AN]:"00-ai-positive-other"},dislike:{[ZQ]:"01-ai-negative-inaccurate-irrelevant",[XQ]:"02-ai-negative-incomplete-unclear",[tY]:"03-ai-negative-slow",[eY]:"04-ai-negative-offensive-inappropriate",[AN]:"00-ai-negative-other"}},YOe=120*1e3;async function WOe(e){let t={body:JSON.stringify({message:e.message,payload:{message:e.message,pageTemplate:e.pageTemplate,idType:e.idType,id:e.id},...e.sessionId?{sessionId:e.sessionId}:{}}),headers:{Accept:"applicationhttps://www.microsoft.com/json","Content-Type":"applicationhttps://www.microsoft.com/json"},method:"POST"};try{let n=await $(J(N.copilot.chatAssistant,t,!0),{},YOe);if(n.status===401)return he(n),{message:qf,isError:!0};if(!n.ok)try{let r=await n.json();return{message:r.errorCode&&r.errorCode in aS?aS[r.errorCode]:Yo,interactionId:r.additionalData?.interactionId,isError:!0}}catch{return{message:Yo,isError:!0}}let o=await n.json();return"errorCode"in o?{message:o.errorCode&&o.errorCode in aS?aS[o.errorCode]:Yo,interactionId:o?.additionalData?.interactionId,isError:!0}:{sessionId:o.sessionId,interactionId:o.interactionId,message:o.message,responseCount:o.assistantMessageCount,citations:o.citations}}catch{return{message:Yo,isError:!0}}}var KOe=10;function c_e(){if(new URLSearchParams(window.location.search).has("excludeContext"))return{uid:void 0,contextIdType:void 0};if(b.data.pageTemplate==="ModuleUnit"){let o=P("uid");if(o)return{uid:Bt?o.replace("learn-test","learn"):o,contextIdType:"unitUid"}}let n=P("platform_id");return n?{uid:n,contextIdType:"platformId"}:{uid:void 0,contextIdType:void 0}}async function JOe(){return FR(WOe,KOe,()=>c_e().contextIdType||"",()=>c_e().uid||"",VOe,aS,jOe,QOe)}var d_e=JOe();var Fg="ask-learn-assistant",As="learn-companion-fre";function Og(e=Fg){let t=ne.getItem(e);return t?Number(t):0}function ZOe(e,t){let n=[{title:PN,imageSrc:iy,descriptions:[qv],buttonLeft:{text:IN,biName:"01-not-now",biTn:Fg,alignment:"left",action:()=>{NR(e),t?.()}},buttonRight:{text:Jr,biName:"01-next",biTn:Fg,alignment:"right",action:()=>$R(0,n,e)}},{title:LN,imageSrc:lS,descriptions:[RN,MN],buttonLeft:{text:Ci,biName:"02-previous",biTn:Fg,alignment:"left",action:()=>DR(1,n,e)},buttonRight:{text:$N,biName:"try-cta",biTn:Fg,alignment:"right",action:()=>{n6(e,Fg),t?.()}}}];return n}function XOe(e,t){let n=[{title:PN,imageSrc:iy,descriptions:[qv],buttonLeft:{text:IN,biName:"01-not-now",biTn:As,alignment:"left",action:()=>{NR(e),t?.()}},buttonRight:{text:Jr,biName:"01-next",biTn:As,alignment:"right",action:()=>$R(0,n,e)}},{title:LN,imageSrc:lS,descriptions:[RN,MN],buttonLeft:{text:Ci,biName:"02-previous",biTn:As,alignment:"left",action:()=>DR(1,n,e)},buttonRight:{text:Jr,biName:"02-next",biTn:As,alignment:"right",action:()=>$R(1,n,e)}},{title:oY,imageSrc:iy,descriptions:[EE],acknowledgementCheckbox:{label:rY},buttonLeft:{text:Ci,biName:"03-previous",biTn:As,alignment:"left",action:()=>DR(2,n,e)},buttonRight:{text:$N,biName:"03-try-ask-learn",biTn:As,alignment:"right",action:()=>{document.querySelector(".fre-acknowledgement-checkbox")?.checked?(n6(e,As),t?.()):(pt(sY,"assertive"),NR(e),t?.())}}}];return n}function p_e(e,t,n,o=!1,r=!1){let s=Og(e);if(s>=2||!r&&document.documentElement.classList.contains("layout-flyout-active")){n?.();return}else o||(s++,ne.setItem(e,s.toString()));let i=document.createElement("div");document.body.appendChild(i);let a=new Te(i,""),l=t(a,n),c=t6(l[0],0,l.length);x(c,i),a.show()}function m_e(e){p_e(Fg,ZOe,e)}function UR(e,t=!1){p_e(As,XOe,e,!0,t)}var HR="learn-companion-history",Ug="learn-companion-history-last-interaction-time",hu="learn-companion-open-status",qR="learn-companion-fre-synced",eUe=30*1e3,tUe=10,BR=100,fu=class extends Error{constructor(n,o){super(o);this.status=n}};async function cS(e,t,n,o){try{let r=await $(J(e,t,!0),{},n,o);if(r.status===401)throw he(r),new fu(401,qf);if(r.status===429)throw new fu(429,kE);if(!r.ok)throw new fu(r.status,Yo);return r}catch(r){throw r instanceof fu?r:new fu(0,Yo)}}function g_e(e){let t="",n="";for(let r of e.split(` `))r.startsWith("event:")?t=r.slice(6).trim():r.startsWith("data:")&&(n=r.slice(5).trim());if(!t)return null;let o=n;try{let r=JSON.parse(n);o=r.d==="_"?"":r.d??""}catch{}return{event:t,data:o}}async function nUe(e,t){try{let n=await cS(N.agentService.stream,{method:"POST",body:JSON.stringify(e)},eUe,t);if(!n.body)return{message:Yo,isError:!0};let o=n.body.getReader(),r=new TextDecoder,s="",i="",a=e.conversationId??null;for(;;){let{done:l,value:c}=await o.read();if(l)break;s+=r.decode(c,{stream:!0});let u=s.split(` `);s=u.pop()||"";for(let p of u){if(!p.trim())continue;let m=g_e(p);if(m)switch(m.event){case"StreamStart":m.data&&m.data!=="_"&&(a=m.data);break;case"AgentResponse":i+=m.data;break;case"StreamEnd":return{sessionId:a??void 0,message:i};case"Error":return{message:m.data||Yo,isError:!0}}}}if(s.trim()){let l=g_e(s);if(l?.event==="Error")return{message:l.data||Yo,isError:!0}}return{sessionId:a??void 0,message:i}}catch(n){return{message:n instanceof fu?n.message:Yo,isError:!0}}}async function s6(e,t=tUe){let n=new URL(N.agentService.conversations);n.searchParams.set("take",String(t)),e&&n.searchParams.set("continuationToken",e);let r=await(await cS(n.toString())).json(),s=r.continuationToken??null;return{conversations:Array.isArray(r.conversations)?r.conversations:[],continuationToken:s,haAlpha XR:s!==null,totalConversations:typeof r.totalConversations=="number"?r.totalConversations:0}}async function f_e(e){let t=`${N.agentService.conversations}/${encodeURIComponent(e)}`;await cS(t,{method:"DELETE"})}async function h_e(e,t){let n=`${N.agentService.conversations}/${encodeURIComponent(e)}`;await cS(n,{method:"PATCH",headers:{"Content-Type":"applicationhttps://www.microsoft.com/json"},body:JSON.stringify({summary:t})})}function oUe(){return document.head.querySelector('link[rel="canonical"]')?.href??window.location.href}var o6="Summarize this page",rUe=[{icon:"text-align-left",header:"Clarify",description:"Tell me more about [concept]",prompt:"Tell me more about: "},{icon:"edit-outline",header:"Define",description:"Tell me the meaning of [term/concept]",prompt:"Tell me the meaning of: "},{icon:"chat-bubbles-question",header:"Guide",description:"Tell me how to [concept]",prompt:"Tell me how to: "}],sUe=100;async function b_e(e){try{let t=new URL(`${N.agentService.conversations}/${encodeURIComponent(e)}`);return t.searchParams.set("take",String(sUe)),{messages:((await(await cS(t.toString())).json()).messages??[]).flatMap(i=>{let a=(i.role??"").toLowerCase(),l=i.content??"";return a==="user"?[{type:"user",content:l}]:a==="assistant"?[{type:"ai",content:l}]:[]})}}catch(t){return{messages:[],error:t instanceof fu?t.message:Yo}}}async function iUe(){return FR(e=>{let t=e.message.trim().toLowerCase()===o6.toLowerCase()?`${e.message.trim()}: ${oUe()}`:e.message;return nUe({query:t,conversationId:e.sessionId})},1/0,()=>"",()=>"",void 0,void 0,rUe,[{name:"summarize",description:o6,prompt:o6}],!0,aUe,lUe)}function aUe({sessionId:e,feedbackData:t,consentProvided:n,authType:o}){Se({behavior:me.SURVEYCOMPLETE,actionType:Ee.OTHER,content:{autoIngest:!0,type:"learn-companion-feedback",timestamp:new Date().toISOString(),sessionId:e,feedbackData:t,authType:o,isUserConsent:n}})}function lUe({triggeredTime:e,returnedTime:t,sessionId:n,interactionId:o}){Se({behavior:me.OTHER,actionType:Ee.OTHER,content:{autoIngest:!0,type:"learn-companion-request",an:"learn-companion-chat",name:"learn-companion-chat-request",triggeredTimestamp:e,returnedTimestamp:t,sessionId:n,interactionId:o}})}var __e=iUe();function zR(){return Og(As)>=2||C.companionPreferences?.chatHistoryEnabled===!0}var cUe=3e4,r6;function uUe(){let e=C.companionPreferences,t={responseDetail:e?.responseDetail??50,teachingApproach:e?.teachingApproach??50,technicalDepth:e?.technicalDepth??50,chatHistoryEnabled:!0};return{userName:C.userName,displayName:C.displayName,email:C.email,locale:C.locale,country:C.country,contactPointTopicSetting:C.contactPointTopicSetting,isPrivate:C.isPrivate,source:C.source,interests:C.interests,qnaEmailPreferences:C.qnaEmailPreferences,isQnaModerator:C.isQnaModerator,companionPreferences:t}}async function GR(){if(!(!C.isAuthenticated||!C.userName)&&!(Og(As)<2))try{if(C.companionPreferences===void 0){let n=Zn();if(!n)return;let o=await sm(n);if(!o)return;C.readUserProfile(o)}let e=C.companionPreferences?.chatHistoryEnabled;if(e===!0){ne.setItem(qR,"1");return}if(e===!1&&ne.getItem(qR)){ne.removeItem(As),ne.removeItem(qR);return}(await Ph(C.userName,uUe())).hasError?r6??(r6=setInterval(GR,cUe)):(ne.setItem(qR,"1"),clearInterval(r6),r6=void 0)}catch{}}k();k();function Wi(){return d`
    ${FQ}
    `}k();function uS(e,t){requestAnimationFrame(()=>{e.getActiveContainer()?.querySelector(`[data-conversation-id="${CSS.escape(t)}"] [data-chat-history-row-overflow]`)?.focus()})}function dUe(e){requestAnimationFrame(()=>{let t=e.getActiveContainer();(t?.querySelector("[data-conversation-id] [data-chat-history-row-overflow]")??t?.querySelector("[data-chat-history-empty], [data-chat-history-error]"))?.focus()})}function y_e(e){requestAnimationFrame(()=>{let t=e.getActiveContainer()?.querySelector("[data-chat-history-rename-input]");t?.focus(),t?.select()})}function v_e(e){requestAnimationFrame(()=>{e.getActiveContainer()?.querySelector("[data-chat-history-confirm-delete-yes]")?.focus()})}function pUe(e){requestAnimationFrame(()=>{e.getActiveContainer()?.querySelector("#chat-history-search-input")?.focus()})}function x_e(e,t){if(e.pendingDeleteId){let n=e.conversations.find(o=>o.conversationId===e.pendingDeleteId);return mUe(e,t,n)}return d`

    ${Uf}

    ${gUe(e,t)} ${e.isLoading?d`
    ${Dt}
    `:e.error&&!e.pendingRenameId?d`
    `:e.filteredConversations.length===0?d`
    ${VQ}
    `:d`
      ${hn(e.filteredConversations,n=>n.conversationId,n=>fUe(n,e,t))}
    ${e.isLoadingMore?d`
    ${Dt}
    `:e.loadMoreError?d`

    ${e.loadMoreError}

    `:e.haAlpha XR?d`
    `:""} `}
    `}function mUe(e,t,n){return d`

    ${SN}

    ${tl}

    ${GQ.replace("{name}",()=>n?.summary??"")}

    ${e.error?d``:""}
    `}function gUe(e,t){return d`
    {n.preventDefault(),e.search(n.currentTarget.elements.namedItem("keyword").value)}} >
    `}function fUe(e,t,n){let o=t.pendingRenameId===e.conversationId;return d`
  • ${o?hUe(e,t,n):d`
    `}
  • `}function hUe(e,t,n){let o=async()=>{let r=t.pendingRenameDraft.trim();if(!r||r===e.summary){t.cancelRename(),uS(n,e.conversationId);return}await t.rename(e.conversationId,r)?uS(n,e.conversationId):y_e(n)};return d`
    {r.preventDefault(),o()}} @keydown=${r=>{r.key==="Escape"&&(r.preventDefault(),t.cancelRename(),uS(n,e.conversationId))}} >{t.updateRenameDraft(r.currentTarget.value)}} aria-label="${jQ}" aria-invalid=${t.error?"true":"false"} aria-describedby=${t.error?`chat-history-rename-error-${e.conversationId}`:""} />${t.error?d``:""}
    `}k();k();function bUe(e,t,n){let o=xk(n);if(!o)return"";let r=je(String(t??"")),s=je(o);return`
    ${e}
    ${e}. ${r}
    `}function T_e(e){return e?Object.entries(e).map(([t,n])=>{let o=parseInt(t),{title:r,url:s}=n;return bUe(o,r,s)}):[]}function i6(e,t){if(!e||!t.length)return;let n=o=>{if(!o.open)return;let r=o.querySelector(".popover-content"),s=o.querySelector(".tag-summary");if(!r||!s)return;o.classList.add("popover-left"),r.offsetHeight;let i=e.getBoundingClientRect(),a=s.getBoundingClientRect(),l=r.getBoundingClientRect();a.left+a.width/2-l.width/2>=i.left&&(o.classList.remove("popover-left"),r.offsetHeight)};t.forEach(o=>{o.querySelectorAll("details.popover.tag-popover").forEach(s=>{s.addEventListener("toggle",i=>{let a=i.target;a.open&&n(a)})})})}k();function _Ue(e,t,n,o,r,s){let i=`${e}-${t}-msg${r}`,a=`${e}-${t}-msg${r}-choice${s}`;return d``}function yUe(e,t,n){return Object.entries(u_e[n]).map(([s,i],a)=>_Ue(t,n,s,i,e.index,a))}function vUe(e){return t=>{if(!t)return;let n=t.currentTarget;if(!n)return;let o=n.getAttribute("aria-expanded")==="true";n.setAttribute("aria-expanded",(!o).toString());let r=n.getAttribute("aria-controls");if(!r)return;e.previewPayload(t);let s=`${r}-disclaimer`,i=document.getElementById(s);if(!i)return;let a=Lo(w_e(!o),d``);x(a,i),n.textContent=o?qu:px}}async function w_e(e){return await ve,C&&C.authenticationMode==="AAD"?F(e?XE:Zv):F(ZE)}function xUe(e,t,n,o,r=w_e(!1)){let s=Qa(o,"disclaimer-see-more","link-button font-weight-semibold font-size-sm margin-top-xxs",vUe(e),qu,!0,!1,`ask-learn-show-more-${e.index}-${n}`),i=`${t}-feedback-payload-${e.index}-${n}`;return d`
    ${Lo(r,d``)}
    ${TUe(e,i)}
    ${s}
    `}function TUe(e,t){return d``}function wUe(e,t,n){let o=`${t}-feedback-textarea-${e.index}-${n}`,r=`${t}-see-more-${e.index}-${n}`;return d`
    e.handleSubmit(e,s)}>
    ${bY}
    ${yUe(e,t,n)}

    ${xUe(e,t,n,r)}

    `}function S_e(e,t){let n;return e.state==="none"?"":(e.state==="submitted"||e.state==="cancelled"?n=d` ${Wi()}
    ${nY}
    `:(e.state==="like"||e.state==="dislike")&&(n=wUe(e,t,e.state)),d`
    ${n}
    `)}var uM={};Dn(uM,{default:()=>cM});var f6={};Dn(f6,{arrayReplaceAt:()=>g6,assign:()=>cy,escapeHtml:()=>_u,escapeRE:()=>iqe,fromCodePoint:()=>mS,has:()=>WUe,isMdAsciiPunct:()=>Bg,isPunctChar:()=>Hg,isSpace:()=>$t,isString:()=>nM,isValidEntityCode:()=>oM,isWhiteSpace:()=>qg,lib:()=>aqe,normalizeReference:()=>zg,unescapeAll:()=>bu,unescapeMd:()=>eqe});var WR={};Dn(WR,{decode:()=>dS,encode:()=>QR,format:()=>ay,parse:()=>pS});var C_e={};function SUe(e){let t=C_e[e];if(t)return t;t=C_e[e]=[];for(let n=0;n<128;n++){let o=String.fromCharCode(n);t.push(o)}for(let n=0;n=55296&&u<=57343?r+="\uFFFD\uFFFD\uFFFD":r+=String.fromCharCode(u),s+=6;continue}}if((a&248)===240&&s+91114111?r+="\uFFFD\uFFFD\uFFFD\uFFFD":(p-=65536,r+=String.fromCharCode(55296+(p>>10),56320+(p&1023))),s+=9;continue}}r+="\uFFFD"}return r})}VR.defaultChars=";/?:@&=+$,#";VR.componentChars="";var dS=VR;var E_e={};function CUe(e){let t=E_e[e];if(t)return t;t=E_e[e]=[];for(let n=0;n<128;n++){let o=String.fromCharCode(n);/^[0-9a-z]$/i.test(o)?t.push(o):t.push("%"+("0"+n.toString(16).toUpperCase()).slice(-2))}for(let n=0;n"u"&&(n=!0);let o=CUe(t),r="";for(let s=0,i=e.length;s=55296&&a<=57343){if(a>=55296&&a<=56319&&s+1=56320&&l<=57343){r+=encodeURIComponent(e[s]+e[s+1]),s++;continue}}r+="%EF%BF%BD";continue}r+=encodeURIComponent(e[s])}return r}jR.defaultChars=";/?:@&=+$,-_.!~*'()#";jR.componentChars="-_.!~*'()";var QR=jR;function ay(e){let t="";return t+=e.protocol||"",t+=e.slashes?"//":"",t+=e.auth?e.auth+"@":"",e.hostname&&e.hostname.indexOf(":")!==-1?t+="["+e.hostname+"]":t+=e.hostname||"",t+=e.port?":"+e.port:"",t+=e.pathname||"",t+=e.search||"",t+=e.hash||"",t}function YR(){this.protocol=null,this.slashes=null,this.auth=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.pathname=null}var EUe=/^([a-z0-9.+-]+:)/i,AUe=/:[0-9]*$/,kUe=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,IUe=["<",">",'"',"`"," ","\r",` `," "],PUe=["{","}","|","\\","^","`"].concat(IUe),LUe=["'"].concat(PUe),A_e=["%","/","?",";","#"].concat(LUe),k_e=["/","?","#"],RUe=255,I_e=/^[+a-z0-9A-Z_-]{0,63}$/,MUe=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,P_e={javascript:!0,"javascript:":!0},L_e={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0};function $Ue(e,t){if(e&&e instanceof YR)return e;let n=new YR;return n.parse(e,t),n}YR.prototype.parse=function(e,t){let n,o,r,s=e;if(s=s.trim(),!t&&e.split("#").length===1){let c=kUe.exec(s);if(c)return this.pathname=c[1],c[2]&&(this.search=c[2]),this}let i=EUe.exec(s);if(i&&(i=i[0],n=i.toLowerCase(),this.protocol=i,s=s.substr(i.length)),(t||i||s.match(/^\/\/[^@\/]+@[^@\/]+/))&&(r=s.substr(0,2)==="//",r&&!(i&&P_e[i])&&(s=s.substr(2),this.slashes=!0)),!P_e[i]&&(r||i&&!L_e[i])){let c=-1;for(let f=0;f127?y+="x":y+=v[T];if(!y.match(I_e)){let T=f.slice(0,_),I=f.slice(_+1),E=v.match(MUe);E&&(T.push(E[1]),I.unshift(E[2])),I.length&&(s=I.join(".")+s),this.hostname=T.join(".");break}}}}this.hostname.length>RUe&&(this.hostname=""),g&&(this.hostname=this.hostname.substr(1,this.hostname.length-2))}let a=s.indexOf("#");a!==-1&&(this.hash=s.substr(a),s=s.slice(0,a));let l=s.indexOf("?");return l!==-1&&(this.search=s.substr(l),s=s.slice(0,l)),s&&(this.pathname=s),L_e[n]&&this.hostname&&!this.pathname&&(this.pathname=""),this};YR.prototype.parseHost=function(e){let t=AUe.exec(e);t&&(t=t[0],t!==":"&&(this.port=t.substr(1)),e=e.substr(0,e.length-t.length)),e&&(this.hostname=e)};var pS=$Ue;var a6={};Dn(a6,{Any:()=>KR,Cc:()=>JR,Cf:()=>R_e,P:()=>ly,S:()=>ZR,Z:()=>XR});var KR=/[\0-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/;var JR=/[\0-\x1F\x7F-\x9F]/;var R_e=/[\xAD\u0600-\u0605\u061C\u06DD\u070F\u0890\u0891\u08E2\u180E\u200B-\u200F\u202A-\u202E\u2060-\u2064\u2066-\u206F\uFEFF\uFFF9-\uFFFB]|\uD804[\uDCBD\uDCCD]|\uD80D[\uDC30-\uDC3F]|\uD82F[\uDCA0-\uDCA3]|\uD834[\uDD73-\uDD7A]|\uDB40[\uDC01\uDC20-\uDC7F]/;var ly=/[!-#%-\*,-\/:;\?@\[-\]_\{\}\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061D-\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u09FD\u0A76\u0AF0\u0C77\u0C84\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1B7D\u1B7E\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E4F\u2E52-\u2E5D\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]|\uD800[\uDD00-\uDD02\uDF9F\uDFD0]|\uD801\uDD6F|\uD802[\uDC57\uDD1F\uDD3F\uDE50-\uDE58\uDE7F\uDEF0-\uDEF6\uDF39-\uDF3F\uDF99-\uDF9C]|\uD803[\uDEAD\uDF55-\uDF59\uDF86-\uDF89]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC8\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9]|\uD805[\uDC4B-\uDC4F\uDC5A\uDC5B\uDC5D\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDE60-\uDE6C\uDEB9\uDF3C-\uDF3E]|\uD806[\uDC3B\uDD44-\uDD46\uDDE2\uDE3F-\uDE46\uDE9A-\uDE9C\uDE9E-\uDEA2\uDF00-\uDF09]|\uD807[\uDC41-\uDC45\uDC70\uDC71\uDEF7\uDEF8\uDF43-\uDF4F\uDFFF]|\uD809[\uDC70-\uDC74]|\uD80B[\uDFF1\uDFF2]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3B\uDF44]|\uD81B[\uDE97-\uDE9A\uDFE2]|\uD82F\uDC9F|\uD836[\uDE87-\uDE8B]|\uD83A[\uDD5E\uDD5F]/;var ZR=/[\$\+<->\^`\|~\xA2-\xA6\xA8\xA9\xAC\xAE-\xB1\xB4\xB8\xD7\xF7\u02C2-\u02C5\u02D2-\u02DF\u02E5-\u02EB\u02ED\u02EF-\u02FF\u0375\u0384\u0385\u03F6\u0482\u058D-\u058F\u0606-\u0608\u060B\u060E\u060F\u06DE\u06E9\u06FD\u06FE\u07F6\u07FE\u07FF\u0888\u09F2\u09F3\u09FA\u09FB\u0AF1\u0B70\u0BF3-\u0BFA\u0C7F\u0D4F\u0D79\u0E3F\u0F01-\u0F03\u0F13\u0F15-\u0F17\u0F1A-\u0F1F\u0F34\u0F36\u0F38\u0FBE-\u0FC5\u0FC7-\u0FCC\u0FCE\u0FCF\u0FD5-\u0FD8\u109E\u109F\u1390-\u1399\u166D\u17DB\u1940\u19DE-\u19FF\u1B61-\u1B6A\u1B74-\u1B7C\u1FBD\u1FBF-\u1FC1\u1FCD-\u1FCF\u1FDD-\u1FDF\u1FED-\u1FEF\u1FFD\u1FFE\u2044\u2052\u207A-\u207C\u208A-\u208C\u20A0-\u20C0\u2100\u2101\u2103-\u2106\u2108\u2109\u2114\u2116-\u2118\u211E-\u2123\u2125\u2127\u2129\u212E\u213A\u213B\u2140-\u2144\u214A-\u214D\u214F\u218A\u218B\u2190-\u2307\u230C-\u2328\u232B-\u2426\u2440-\u244A\u249C-\u24E9\u2500-\u2767\u2794-\u27C4\u27C7-\u27E5\u27F0-\u2982\u2999-\u29D7\u29DC-\u29FB\u29FE-\u2B73\u2B76-\u2B95\u2B97-\u2BFF\u2CE5-\u2CEA\u2E50\u2E51\u2E80-\u2E99\u2E9B-\u2EF3\u2F00-\u2FD5\u2FF0-\u2FFF\u3004\u3012\u3013\u3020\u3036\u3037\u303E\u303F\u309B\u309C\u3190\u3191\u3196-\u319F\u31C0-\u31E3\u31EF\u3200-\u321E\u322A-\u3247\u3250\u3260-\u327F\u328A-\u32B0\u32C0-\u33FF\u4DC0-\u4DFF\uA490-\uA4C6\uA700-\uA716\uA720\uA721\uA789\uA78A\uA828-\uA82B\uA836-\uA839\uAA77-\uAA79\uAB5B\uAB6A\uAB6B\uFB29\uFBB2-\uFBC2\uFD40-\uFD4F\uFDCF\uFDFC-\uFDFF\uFE62\uFE64-\uFE66\uFE69\uFF04\uFF0B\uFF1C-\uFF1E\uFF3E\uFF40\uFF5C\uFF5E\uFFE0-\uFFE6\uFFE8-\uFFEE\uFFFC\uFFFD]|\uD800[\uDD37-\uDD3F\uDD79-\uDD89\uDD8C-\uDD8E\uDD90-\uDD9C\uDDA0\uDDD0-\uDDFC]|\uD802[\uDC77\uDC78\uDEC8]|\uD805\uDF3F|\uD807[\uDFD5-\uDFF1]|\uD81A[\uDF3C-\uDF3F\uDF45]|\uD82F\uDC9C|\uD833[\uDF50-\uDFC3]|\uD834[\uDC00-\uDCF5\uDD00-\uDD26\uDD29-\uDD64\uDD6A-\uDD6C\uDD83\uDD84\uDD8C-\uDDA9\uDDAE-\uDDEA\uDE00-\uDE41\uDE45\uDF00-\uDF56]|\uD835[\uDEC1\uDEDB\uDEFB\uDF15\uDF35\uDF4F\uDF6F\uDF89\uDFA9\uDFC3]|\uD836[\uDC00-\uDDFF\uDE37-\uDE3A\uDE6D-\uDE74\uDE76-\uDE83\uDE85\uDE86]|\uD838[\uDD4F\uDEFF]|\uD83B[\uDCAC\uDCB0\uDD2E\uDEF0\uDEF1]|\uD83C[\uDC00-\uDC2B\uDC30-\uDC93\uDCA0-\uDCAE\uDCB1-\uDCBF\uDCC1-\uDCCF\uDCD1-\uDCF5\uDD0D-\uDDAD\uDDE6-\uDE02\uDE10-\uDE3B\uDE40-\uDE48\uDE50\uDE51\uDE60-\uDE65\uDF00-\uDFFF]|\uD83D[\uDC00-\uDED7\uDEDC-\uDEEC\uDEF0-\uDEFC\uDF00-\uDF76\uDF7B-\uDFD9\uDFE0-\uDFEB\uDFF0]|\uD83E[\uDC00-\uDC0B\uDC10-\uDC47\uDC50-\uDC59\uDC60-\uDC87\uDC90-\uDCAD\uDCB0\uDCB1\uDD00-\uDE53\uDE60-\uDE6D\uDE70-\uDE7C\uDE80-\uDE88\uDE90-\uDEBD\uDEBF-\uDEC5\uDECE-\uDEDB\uDEE0-\uDEE8\uDEF0-\uDEF8\uDF00-\uDF92\uDF94-\uDFCA]/;var XR=/[ \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/;var M_e=new Uint16Array('\u1D41<\xD5\u0131\u028A\u049D\u057B\u05D0\u0675\u06DE\u07A2\u07D6\u080F\u0A4A\u0A91\u0DA1\u0E6D\u0F09\u0F26\u10CA\u1228\u12E1\u1415\u149D\u14C3\u14DF\u1525\0\0\0\0\0\0\u156B\u16CD\u198D\u1C12\u1DDD\u1F7E\u2060\u21B0\u228D\u23C0\u23FB\u2442\u2824\u2912\u2D08\u2E48\u2FCE\u3016\u32BA\u3639\u37AC\u38FE\u3A28\u3A71\u3AE0\u3B2E\u0800EMabcfglmnoprstu\\bfms\x7F\x84\x8B\x90\x95\x98\xA6\xB3\xB9\xC8\xCFlig\u803B\xC6\u40C6P\u803B&\u4026cute\u803B\xC1\u40C1reve;\u4102\u0100iyx}rc\u803B\xC2\u40C2;\u4410r;\uC000\u{1D504}rave\u803B\xC0\u40C0pha;\u4391acr;\u4100d;\u6A53\u0100gp\x9D\xA1on;\u4104f;\uC000\u{1D538}plyFunction;\u6061ing\u803B\xC5\u40C5\u0100cs\xBE\xC3r;\uC000\u{1D49C}ign;\u6254ilde\u803B\xC3\u40C3ml\u803B\xC4\u40C4\u0400aceforsu\xE5\xFB\xFE\u0117\u011C\u0122\u0127\u012A\u0100cr\xEA\xF2kslash;\u6216\u0176\xF6\xF8;\u6AE7ed;\u6306y;\u4411\u0180crt\u0105\u010B\u0114ause;\u6235noullis;\u612Ca;\u4392r;\uC000\u{1D505}pf;\uC000\u{1D539}eve;\u42D8c\xF2\u0113mpeq;\u624E\u0700HOacdefhilorsu\u014D\u0151\u0156\u0180\u019E\u01A2\u01B5\u01B7\u01BA\u01DC\u0215\u0273\u0278\u027Ecy;\u4427PY\u803B\xA9\u40A9\u0180cpy\u015D\u0162\u017Aute;\u4106\u0100;i\u0167\u0168\u62D2talDifferentialD;\u6145leys;\u612D\u0200aeio\u0189\u018E\u0194\u0198ron;\u410Cdil\u803B\xC7\u40C7rc;\u4108nint;\u6230ot;\u410A\u0100dn\u01A7\u01ADilla;\u40B8terDot;\u40B7\xF2\u017Fi;\u43A7rcle\u0200DMPT\u01C7\u01CB\u01D1\u01D6ot;\u6299inus;\u6296lus;\u6295imes;\u6297o\u0100cs\u01E2\u01F8kwiseContourIntegral;\u6232eCurly\u0100DQ\u0203\u020FoubleQuote;\u601Duote;\u6019\u0200lnpu\u021E\u0228\u0247\u0255on\u0100;e\u0225\u0226\u6237;\u6A74\u0180git\u022F\u0236\u023Aruent;\u6261nt;\u622FourIntegral;\u622E\u0100fr\u024C\u024E;\u6102oduct;\u6210nterClockwiseContourIntegral;\u6233oss;\u6A2Fcr;\uC000\u{1D49E}p\u0100;C\u0284\u0285\u62D3ap;\u624D\u0580DJSZacefios\u02A0\u02AC\u02B0\u02B4\u02B8\u02CB\u02D7\u02E1\u02E6\u0333\u048D\u0100;o\u0179\u02A5trahd;\u6911cy;\u4402cy;\u4405cy;\u440F\u0180grs\u02BF\u02C4\u02C7ger;\u6021r;\u61A1hv;\u6AE4\u0100ay\u02D0\u02D5ron;\u410E;\u4414l\u0100;t\u02DD\u02DE\u6207a;\u4394r;\uC000\u{1D507}\u0100af\u02EB\u0327\u0100cm\u02F0\u0322ritical\u0200ADGT\u0300\u0306\u0316\u031Ccute;\u40B4o\u0174\u030B\u030D;\u42D9bleAcute;\u42DDrave;\u4060ilde;\u42DCond;\u62C4ferentialD;\u6146\u0470\u033D\0\0\0\u0342\u0354\0\u0405f;\uC000\u{1D53B}\u0180;DE\u0348\u0349\u034D\u40A8ot;\u60DCqual;\u6250ble\u0300CDLRUV\u0363\u0372\u0382\u03CF\u03E2\u03F8ontourIntegra\xEC\u0239o\u0274\u0379\0\0\u037B\xBB\u0349nArrow;\u61D3\u0100eo\u0387\u03A4ft\u0180ART\u0390\u0396\u03A1rrow;\u61D0ightArrow;\u61D4e\xE5\u02CAng\u0100LR\u03AB\u03C4eft\u0100AR\u03B3\u03B9rrow;\u67F8ightArrow;\u67FAightArrow;\u67F9ight\u0100AT\u03D8\u03DErrow;\u61D2ee;\u62A8p\u0241\u03E9\0\0\u03EFrrow;\u61D1ownArrow;\u61D5erticalBar;\u6225n\u0300ABLRTa\u0412\u042A\u0430\u045E\u047F\u037Crrow\u0180;BU\u041D\u041E\u0422\u6193ar;\u6913pArrow;\u61F5reve;\u4311eft\u02D2\u043A\0\u0446\0\u0450ightVector;\u6950eeVector;\u695Eector\u0100;B\u0459\u045A\u61BDar;\u6956ight\u01D4\u0467\0\u0471eeVector;\u695Fector\u0100;B\u047A\u047B\u61C1ar;\u6957ee\u0100;A\u0486\u0487\u62A4rrow;\u61A7\u0100ct\u0492\u0497r;\uC000\u{1D49F}rok;\u4110\u0800NTacdfglmopqstux\u04BD\u04C0\u04C4\u04CB\u04DE\u04E2\u04E7\u04EE\u04F5\u0521\u052F\u0536\u0552\u055D\u0560\u0565G;\u414AH\u803B\xD0\u40D0cute\u803B\xC9\u40C9\u0180aiy\u04D2\u04D7\u04DCron;\u411Arc\u803B\xCA\u40CA;\u442Dot;\u4116r;\uC000\u{1D508}rave\u803B\xC8\u40C8ement;\u6208\u0100ap\u04FA\u04FEcr;\u4112ty\u0253\u0506\0\0\u0512mallSquare;\u65FBerySmallSquare;\u65AB\u0100gp\u0526\u052Aon;\u4118f;\uC000\u{1D53C}silon;\u4395u\u0100ai\u053C\u0549l\u0100;T\u0542\u0543\u6A75ilde;\u6242librium;\u61CC\u0100ci\u0557\u055Ar;\u6130m;\u6A73a;\u4397ml\u803B\xCB\u40CB\u0100ip\u056A\u056Fsts;\u6203onentialE;\u6147\u0280cfios\u0585\u0588\u058D\u05B2\u05CCy;\u4424r;\uC000\u{1D509}lled\u0253\u0597\0\0\u05A3mallSquare;\u65FCerySmallSquare;\u65AA\u0370\u05BA\0\u05BF\0\0\u05C4f;\uC000\u{1D53D}All;\u6200riertrf;\u6131c\xF2\u05CB\u0600JTabcdfgorst\u05E8\u05EC\u05EF\u05FA\u0600\u0612\u0616\u061B\u061D\u0623\u066C\u0672cy;\u4403\u803B>\u403Emma\u0100;d\u05F7\u05F8\u4393;\u43DCreve;\u411E\u0180eiy\u0607\u060C\u0610dil;\u4122rc;\u411C;\u4413ot;\u4120r;\uC000\u{1D50A};\u62D9pf;\uC000\u{1D53E}eater\u0300EFGLST\u0635\u0644\u064E\u0656\u065B\u0666qual\u0100;L\u063E\u063F\u6265ess;\u62DBullEqual;\u6267reater;\u6AA2ess;\u6277lantEqual;\u6A7Eilde;\u6273cr;\uC000\u{1D4A2};\u626B\u0400Aacfiosu\u0685\u068B\u0696\u069B\u069E\u06AA\u06BE\u06CARDcy;\u442A\u0100ct\u0690\u0694ek;\u42C7;\u405Eirc;\u4124r;\u610ClbertSpace;\u610B\u01F0\u06AF\0\u06B2f;\u610DizontalLine;\u6500\u0100ct\u06C3\u06C5\xF2\u06A9rok;\u4126mp\u0144\u06D0\u06D8ownHum\xF0\u012Fqual;\u624F\u0700EJOacdfgmnostu\u06FA\u06FE\u0703\u0707\u070E\u071A\u071E\u0721\u0728\u0744\u0778\u078B\u078F\u0795cy;\u4415lig;\u4132cy;\u4401cute\u803B\xCD\u40CD\u0100iy\u0713\u0718rc\u803B\xCE\u40CE;\u4418ot;\u4130r;\u6111rave\u803B\xCC\u40CC\u0180;ap\u0720\u072F\u073F\u0100cg\u0734\u0737r;\u412AinaryI;\u6148lie\xF3\u03DD\u01F4\u0749\0\u0762\u0100;e\u074D\u074E\u622C\u0100gr\u0753\u0758ral;\u622Bsection;\u62C2isible\u0100CT\u076C\u0772omma;\u6063imes;\u6062\u0180gpt\u077F\u0783\u0788on;\u412Ef;\uC000\u{1D540}a;\u4399cr;\u6110ilde;\u4128\u01EB\u079A\0\u079Ecy;\u4406l\u803B\xCF\u40CF\u0280cfosu\u07AC\u07B7\u07BC\u07C2\u07D0\u0100iy\u07B1\u07B5rc;\u4134;\u4419r;\uC000\u{1D50D}pf;\uC000\u{1D541}\u01E3\u07C7\0\u07CCr;\uC000\u{1D4A5}rcy;\u4408kcy;\u4404\u0380HJacfos\u07E4\u07E8\u07EC\u07F1\u07FD\u0802\u0808cy;\u4425cy;\u440Cppa;\u439A\u0100ey\u07F6\u07FBdil;\u4136;\u441Ar;\uC000\u{1D50E}pf;\uC000\u{1D542}cr;\uC000\u{1D4A6}\u0580JTaceflmost\u0825\u0829\u082C\u0850\u0863\u09B3\u09B8\u09C7\u09CD\u0A37\u0A47cy;\u4409\u803B<\u403C\u0280cmnpr\u0837\u083C\u0841\u0844\u084Dute;\u4139bda;\u439Bg;\u67EAlacetrf;\u6112r;\u619E\u0180aey\u0857\u085C\u0861ron;\u413Ddil;\u413B;\u441B\u0100fs\u0868\u0970t\u0500ACDFRTUVar\u087E\u08A9\u08B1\u08E0\u08E6\u08FC\u092F\u095B\u0390\u096A\u0100nr\u0883\u088FgleBracket;\u67E8row\u0180;BR\u0899\u089A\u089E\u6190ar;\u61E4ightArrow;\u61C6eiling;\u6308o\u01F5\u08B7\0\u08C3bleBracket;\u67E6n\u01D4\u08C8\0\u08D2eeVector;\u6961ector\u0100;B\u08DB\u08DC\u61C3ar;\u6959loor;\u630Aight\u0100AV\u08EF\u08F5rrow;\u6194ector;\u694E\u0100er\u0901\u0917e\u0180;AV\u0909\u090A\u0910\u62A3rrow;\u61A4ector;\u695Aiangle\u0180;BE\u0924\u0925\u0929\u62B2ar;\u69CFqual;\u62B4p\u0180DTV\u0937\u0942\u094CownVector;\u6951eeVector;\u6960ector\u0100;B\u0956\u0957\u61BFar;\u6958ector\u0100;B\u0965\u0966\u61BCar;\u6952ight\xE1\u039Cs\u0300EFGLST\u097E\u098B\u0995\u099D\u09A2\u09ADqualGreater;\u62DAullEqual;\u6266reater;\u6276ess;\u6AA1lantEqual;\u6A7Dilde;\u6272r;\uC000\u{1D50F}\u0100;e\u09BD\u09BE\u62D8ftarrow;\u61DAidot;\u413F\u0180npw\u09D4\u0A16\u0A1Bg\u0200LRlr\u09DE\u09F7\u0A02\u0A10eft\u0100AR\u09E6\u09ECrrow;\u67F5ightArrow;\u67F7ightArrow;\u67F6eft\u0100ar\u03B3\u0A0Aight\xE1\u03BFight\xE1\u03CAf;\uC000\u{1D543}er\u0100LR\u0A22\u0A2CeftArrow;\u6199ightArrow;\u6198\u0180cht\u0A3E\u0A40\u0A42\xF2\u084C;\u61B0rok;\u4141;\u626A\u0400acefiosu\u0A5A\u0A5D\u0A60\u0A77\u0A7C\u0A85\u0A8B\u0A8Ep;\u6905y;\u441C\u0100dl\u0A65\u0A6FiumSpace;\u605Flintrf;\u6133r;\uC000\u{1D510}nusPlus;\u6213pf;\uC000\u{1D544}c\xF2\u0A76;\u439C\u0480Jacefostu\u0AA3\u0AA7\u0AAD\u0AC0\u0B14\u0B19\u0D91\u0D97\u0D9Ecy;\u440Acute;\u4143\u0180aey\u0AB4\u0AB9\u0ABEron;\u4147dil;\u4145;\u441D\u0180gsw\u0AC7\u0AF0\u0B0Eative\u0180MTV\u0AD3\u0ADF\u0AE8ediumSpace;\u600Bhi\u0100cn\u0AE6\u0AD8\xEB\u0AD9eryThi\xEE\u0AD9ted\u0100GL\u0AF8\u0B06reaterGreate\xF2\u0673essLes\xF3\u0A48Line;\u400Ar;\uC000\u{1D511}\u0200Bnpt\u0B22\u0B28\u0B37\u0B3Areak;\u6060BreakingSpace;\u40A0f;\u6115\u0680;CDEGHLNPRSTV\u0B55\u0B56\u0B6A\u0B7C\u0BA1\u0BEB\u0C04\u0C5E\u0C84\u0CA6\u0CD8\u0D61\u0D85\u6AEC\u0100ou\u0B5B\u0B64ngruent;\u6262pCap;\u626DoubleVerticalBar;\u6226\u0180lqx\u0B83\u0B8A\u0B9Bement;\u6209ual\u0100;T\u0B92\u0B93\u6260ilde;\uC000\u2242\u0338ists;\u6204reater\u0380;EFGLST\u0BB6\u0BB7\u0BBD\u0BC9\u0BD3\u0BD8\u0BE5\u626Fqual;\u6271ullEqual;\uC000\u2267\u0338reater;\uC000\u226B\u0338ess;\u6279lantEqual;\uC000\u2A7E\u0338ilde;\u6275ump\u0144\u0BF2\u0BFDownHump;\uC000\u224E\u0338qual;\uC000\u224F\u0338e\u0100fs\u0C0A\u0C27tTriangle\u0180;BE\u0C1A\u0C1B\u0C21\u62EAar;\uC000\u29CF\u0338qual;\u62ECs\u0300;EGLST\u0C35\u0C36\u0C3C\u0C44\u0C4B\u0C58\u626Equal;\u6270reater;\u6278ess;\uC000\u226A\u0338lantEqual;\uC000\u2A7D\u0338ilde;\u6274ested\u0100GL\u0C68\u0C79reaterGreater;\uC000\u2AA2\u0338essLess;\uC000\u2AA1\u0338recedes\u0180;ES\u0C92\u0C93\u0C9B\u6280qual;\uC000\u2AAF\u0338lantEqual;\u62E0\u0100ei\u0CAB\u0CB9verseElement;\u620CghtTriangle\u0180;BE\u0CCB\u0CCC\u0CD2\u62EBar;\uC000\u29D0\u0338qual;\u62ED\u0100qu\u0CDD\u0D0CuareSu\u0100bp\u0CE8\u0CF9set\u0100;E\u0CF0\u0CF3\uC000\u228F\u0338qual;\u62E2erset\u0100;E\u0D03\u0D06\uC000\u2290\u0338qual;\u62E3\u0180bcp\u0D13\u0D24\u0D4Eset\u0100;E\u0D1B\u0D1E\uC000\u2282\u20D2qual;\u6288ceeds\u0200;EST\u0D32\u0D33\u0D3B\u0D46\u6281qual;\uC000\u2AB0\u0338lantEqual;\u62E1ilde;\uC000\u227F\u0338erset\u0100;E\u0D58\u0D5B\uC000\u2283\u20D2qual;\u6289ilde\u0200;EFT\u0D6E\u0D6F\u0D75\u0D7F\u6241qual;\u6244ullEqual;\u6247ilde;\u6249erticalBar;\u6224cr;\uC000\u{1D4A9}ilde\u803B\xD1\u40D1;\u439D\u0700Eacdfgmoprstuv\u0DBD\u0DC2\u0DC9\u0DD5\u0DDB\u0DE0\u0DE7\u0DFC\u0E02\u0E20\u0E22\u0E32\u0E3F\u0E44lig;\u4152cute\u803B\xD3\u40D3\u0100iy\u0DCE\u0DD3rc\u803B\xD4\u40D4;\u441Eblac;\u4150r;\uC000\u{1D512}rave\u803B\xD2\u40D2\u0180aei\u0DEE\u0DF2\u0DF6cr;\u414Cga;\u43A9cron;\u439Fpf;\uC000\u{1D546}enCurly\u0100DQ\u0E0E\u0E1AoubleQuote;\u601Cuote;\u6018;\u6A54\u0100cl\u0E27\u0E2Cr;\uC000\u{1D4AA}ash\u803B\xD8\u40D8i\u016C\u0E37\u0E3Cde\u803B\xD5\u40D5es;\u6A37ml\u803B\xD6\u40D6er\u0100BP\u0E4B\u0E60\u0100ar\u0E50\u0E53r;\u603Eac\u0100ek\u0E5A\u0E5C;\u63DEet;\u63B4arenthesis;\u63DC\u0480acfhilors\u0E7F\u0E87\u0E8A\u0E8F\u0E92\u0E94\u0E9D\u0EB0\u0EFCrtialD;\u6202y;\u441Fr;\uC000\u{1D513}i;\u43A6;\u43A0usMinus;\u40B1\u0100ip\u0EA2\u0EADncareplan\xE5\u069Df;\u6119\u0200;eio\u0EB9\u0EBA\u0EE0\u0EE4\u6ABBcedes\u0200;EST\u0EC8\u0EC9\u0ECF\u0EDA\u627Aqual;\u6AAFlantEqual;\u627Cilde;\u627Eme;\u6033\u0100dp\u0EE9\u0EEEuct;\u620Fortion\u0100;a\u0225\u0EF9l;\u621D\u0100ci\u0F01\u0F06r;\uC000\u{1D4AB};\u43A8\u0200Ufos\u0F11\u0F16\u0F1B\u0F1FOT\u803B"\u4022r;\uC000\u{1D514}pf;\u611Acr;\uC000\u{1D4AC}\u0600BEacefhiorsu\u0F3E\u0F43\u0F47\u0F60\u0F73\u0FA7\u0FAA\u0FAD\u1096\u10A9\u10B4\u10BEarr;\u6910G\u803B\xAE\u40AE\u0180cnr\u0F4E\u0F53\u0F56ute;\u4154g;\u67EBr\u0100;t\u0F5C\u0F5D\u61A0l;\u6916\u0180aey\u0F67\u0F6C\u0F71ron;\u4158dil;\u4156;\u4420\u0100;v\u0F78\u0F79\u611Cerse\u0100EU\u0F82\u0F99\u0100lq\u0F87\u0F8Eement;\u620Builibrium;\u61CBpEquilibrium;\u696Fr\xBB\u0F79o;\u43A1ght\u0400ACDFTUVa\u0FC1\u0FEB\u0FF3\u1022\u1028\u105B\u1087\u03D8\u0100nr\u0FC6\u0FD2gleBracket;\u67E9row\u0180;BL\u0FDC\u0FDD\u0FE1\u6192ar;\u61E5eftArrow;\u61C4eiling;\u6309o\u01F5\u0FF9\0\u1005bleBracket;\u67E7n\u01D4\u100A\0\u1014eeVector;\u695Dector\u0100;B\u101D\u101E\u61C2ar;\u6955loor;\u630B\u0100er\u102D\u1043e\u0180;AV\u1035\u1036\u103C\u62A2rrow;\u61A6ector;\u695Biangle\u0180;BE\u1050\u1051\u1055\u62B3ar;\u69D0qual;\u62B5p\u0180DTV\u1063\u106E\u1078ownVector;\u694FeeVector;\u695Cector\u0100;B\u1082\u1083\u61BEar;\u6954ector\u0100;B\u1091\u1092\u61C0ar;\u6953\u0100pu\u109B\u109Ef;\u611DndImplies;\u6970ightarrow;\u61DB\u0100ch\u10B9\u10BCr;\u611B;\u61B1leDelayed;\u69F4\u0680HOacfhimoqstu\u10E4\u10F1\u10F7\u10FD\u1119\u111E\u1151\u1156\u1161\u1167\u11B5\u11BB\u11BF\u0100Cc\u10E9\u10EEHcy;\u4429y;\u4428FTcy;\u442Ccute;\u415A\u0280;aeiy\u1108\u1109\u110E\u1113\u1117\u6ABCron;\u4160dil;\u415Erc;\u415C;\u4421r;\uC000\u{1D516}ort\u0200DLRU\u112A\u1134\u113E\u1149ownArrow\xBB\u041EeftArrow\xBB\u089AightArrow\xBB\u0FDDpArrow;\u6191gma;\u43A3allCircle;\u6218pf;\uC000\u{1D54A}\u0272\u116D\0\0\u1170t;\u621Aare\u0200;ISU\u117B\u117C\u1189\u11AF\u65A1ntersection;\u6293u\u0100bp\u118F\u119Eset\u0100;E\u1197\u1198\u628Fqual;\u6291erset\u0100;E\u11A8\u11A9\u6290qual;\u6292nion;\u6294cr;\uC000\u{1D4AE}ar;\u62C6\u0200bcmp\u11C8\u11DB\u1209\u120B\u0100;s\u11CD\u11CE\u62D0et\u0100;E\u11CD\u11D5qual;\u6286\u0100ch\u11E0\u1205eeds\u0200;EST\u11ED\u11EE\u11F4\u11FF\u627Bqual;\u6AB0lantEqual;\u627Dilde;\u627FTh\xE1\u0F8C;\u6211\u0180;es\u1212\u1213\u1223\u62D1rset\u0100;E\u121C\u121D\u6283qual;\u6287et\xBB\u1213\u0580HRSacfhiors\u123E\u1244\u1249\u1255\u125E\u1271\u1276\u129F\u12C2\u12C8\u12D1ORN\u803B\xDE\u40DEADE;\u6122\u0100Hc\u124E\u1252cy;\u440By;\u4426\u0100bu\u125A\u125C;\u4009;\u43A4\u0180aey\u1265\u126A\u126Fron;\u4164dil;\u4162;\u4422r;\uC000\u{1D517}\u0100ei\u127B\u1289\u01F2\u1280\0\u1287efore;\u6234a;\u4398\u0100cn\u128E\u1298kSpace;\uC000\u205F\u200ASpace;\u6009lde\u0200;EFT\u12AB\u12AC\u12B2\u12BC\u623Cqual;\u6243ullEqual;\u6245ilde;\u6248pf;\uC000\u{1D54B}ipleDot;\u60DB\u0100ct\u12D6\u12DBr;\uC000\u{1D4AF}rok;\u4166\u0AE1\u12F7\u130E\u131A\u1326\0\u132C\u1331\0\0\0\0\0\u1338\u133D\u1377\u1385\0\u13FF\u1404\u140A\u1410\u0100cr\u12FB\u1301ute\u803B\xDA\u40DAr\u0100;o\u1307\u1308\u619Fcir;\u6949r\u01E3\u1313\0\u1316y;\u440Eve;\u416C\u0100iy\u131E\u1323rc\u803B\xDB\u40DB;\u4423blac;\u4170r;\uC000\u{1D518}rave\u803B\xD9\u40D9acr;\u416A\u0100di\u1341\u1369er\u0100BP\u1348\u135D\u0100ar\u134D\u1350r;\u405Fac\u0100ek\u1357\u1359;\u63DFet;\u63B5arenthesis;\u63DDon\u0100;P\u1370\u1371\u62C3lus;\u628E\u0100gp\u137B\u137Fon;\u4172f;\uC000\u{1D54C}\u0400ADETadps\u1395\u13AE\u13B8\u13C4\u03E8\u13D2\u13D7\u13F3rrow\u0180;BD\u1150\u13A0\u13A4ar;\u6912ownArrow;\u61C5ownArrow;\u6195quilibrium;\u696Eee\u0100;A\u13CB\u13CC\u62A5rrow;\u61A5own\xE1\u03F3er\u0100LR\u13DE\u13E8eftArrow;\u6196ightArrow;\u6197i\u0100;l\u13F9\u13FA\u43D2on;\u43A5ing;\u416Ecr;\uC000\u{1D4B0}ilde;\u4168ml\u803B\xDC\u40DC\u0480Dbcdefosv\u1427\u142C\u1430\u1433\u143E\u1485\u148A\u1490\u1496ash;\u62ABar;\u6AEBy;\u4412ash\u0100;l\u143B\u143C\u62A9;\u6AE6\u0100er\u1443\u1445;\u62C1\u0180bty\u144C\u1450\u147Aar;\u6016\u0100;i\u144F\u1455cal\u0200BLST\u1461\u1465\u146A\u1474ar;\u6223ine;\u407Ceparator;\u6758ilde;\u6240ThinSpace;\u600Ar;\uC000\u{1D519}pf;\uC000\u{1D54D}cr;\uC000\u{1D4B1}dash;\u62AA\u0280cefos\u14A7\u14AC\u14B1\u14B6\u14BCirc;\u4174dge;\u62C0r;\uC000\u{1D51A}pf;\uC000\u{1D54E}cr;\uC000\u{1D4B2}\u0200fios\u14CB\u14D0\u14D2\u14D8r;\uC000\u{1D51B};\u439Epf;\uC000\u{1D54F}cr;\uC000\u{1D4B3}\u0480AIUacfosu\u14F1\u14F5\u14F9\u14FD\u1504\u150F\u1514\u151A\u1520cy;\u442Fcy;\u4407cy;\u442Ecute\u803B\xDD\u40DD\u0100iy\u1509\u150Drc;\u4176;\u442Br;\uC000\u{1D51C}pf;\uC000\u{1D550}cr;\uC000\u{1D4B4}ml;\u4178\u0400Hacdefos\u1535\u1539\u153F\u154B\u154F\u155D\u1560\u1564cy;\u4416cute;\u4179\u0100ay\u1544\u1549ron;\u417D;\u4417ot;\u417B\u01F2\u1554\0\u155BoWidt\xE8\u0AD9a;\u4396r;\u6128pf;\u6124cr;\uC000\u{1D4B5}\u0BE1\u1583\u158A\u1590\0\u15B0\u15B6\u15BF\0\0\0\0\u15C6\u15DB\u15EB\u165F\u166D\0\u1695\u169B\u16B2\u16B9\0\u16BEcute\u803B\xE1\u40E1reve;\u4103\u0300;Ediuy\u159C\u159D\u15A1\u15A3\u15A8\u15AD\u623E;\uC000\u223E\u0333;\u623Frc\u803B\xE2\u40E2te\u80BB\xB4\u0306;\u4430lig\u803B\xE6\u40E6\u0100;r\xB2\u15BA;\uC000\u{1D51E}rave\u803B\xE0\u40E0\u0100ep\u15CA\u15D6\u0100fp\u15CF\u15D4sym;\u6135\xE8\u15D3ha;\u43B1\u0100ap\u15DFc\u0100cl\u15E4\u15E7r;\u4101g;\u6A3F\u0264\u15F0\0\0\u160A\u0280;adsv\u15FA\u15FB\u15FF\u1601\u1607\u6227nd;\u6A55;\u6A5Clope;\u6A58;\u6A5A\u0380;elmrsz\u1618\u1619\u161B\u161E\u163F\u164F\u1659\u6220;\u69A4e\xBB\u1619sd\u0100;a\u1625\u1626\u6221\u0461\u1630\u1632\u1634\u1636\u1638\u163A\u163C\u163E;\u69A8;\u69A9;\u69AA;\u69AB;\u69AC;\u69AD;\u69AE;\u69AFt\u0100;v\u1645\u1646\u621Fb\u0100;d\u164C\u164D\u62BE;\u699D\u0100pt\u1654\u1657h;\u6222\xBB\xB9arr;\u637C\u0100gp\u1663\u1667on;\u4105f;\uC000\u{1D552}\u0380;Eaeiop\u12C1\u167B\u167D\u1682\u1684\u1687\u168A;\u6A70cir;\u6A6F;\u624Ad;\u624Bs;\u4027rox\u0100;e\u12C1\u1692\xF1\u1683ing\u803B\xE5\u40E5\u0180cty\u16A1\u16A6\u16A8r;\uC000\u{1D4B6};\u402Amp\u0100;e\u12C1\u16AF\xF1\u0288ilde\u803B\xE3\u40E3ml\u803B\xE4\u40E4\u0100ci\u16C2\u16C8onin\xF4\u0272nt;\u6A11\u0800Nabcdefiklnoprsu\u16ED\u16F1\u1730\u173C\u1743\u1748\u1778\u177D\u17E0\u17E6\u1839\u1850\u170D\u193D\u1948\u1970ot;\u6AED\u0100cr\u16F6\u171Ek\u0200ceps\u1700\u1705\u170D\u1713ong;\u624Cpsilon;\u43F6rime;\u6035im\u0100;e\u171A\u171B\u623Dq;\u62CD\u0176\u1722\u1726ee;\u62BDed\u0100;g\u172C\u172D\u6305e\xBB\u172Drk\u0100;t\u135C\u1737brk;\u63B6\u0100oy\u1701\u1741;\u4431quo;\u601E\u0280cmprt\u1753\u175B\u1761\u1764\u1768aus\u0100;e\u010A\u0109ptyv;\u69B0s\xE9\u170Cno\xF5\u0113\u0180ahw\u176F\u1771\u1773;\u43B2;\u6136een;\u626Cr;\uC000\u{1D51F}g\u0380costuvw\u178D\u179D\u17B3\u17C1\u17D5\u17DB\u17DE\u0180aiu\u1794\u1796\u179A\xF0\u0760rc;\u65EFp\xBB\u1371\u0180dpt\u17A4\u17A8\u17ADot;\u6A00lus;\u6A01imes;\u6A02\u0271\u17B9\0\0\u17BEcup;\u6A06ar;\u6605riangle\u0100du\u17CD\u17D2own;\u65BDp;\u65B3plus;\u6A04e\xE5\u1444\xE5\u14ADarow;\u690D\u0180ako\u17ED\u1826\u1835\u0100cn\u17F2\u1823k\u0180lst\u17FA\u05AB\u1802ozenge;\u69EBriangle\u0200;dlr\u1812\u1813\u1818\u181D\u65B4own;\u65BEeft;\u65C2ight;\u65B8k;\u6423\u01B1\u182B\0\u1833\u01B2\u182F\0\u1831;\u6592;\u65914;\u6593ck;\u6588\u0100eo\u183E\u184D\u0100;q\u1843\u1846\uC000=\u20E5uiv;\uC000\u2261\u20E5t;\u6310\u0200ptwx\u1859\u185E\u1867\u186Cf;\uC000\u{1D553}\u0100;t\u13CB\u1863om\xBB\u13CCtie;\u62C8\u0600DHUVbdhmptuv\u1885\u1896\u18AA\u18BB\u18D7\u18DB\u18EC\u18FF\u1905\u190A\u1910\u1921\u0200LRlr\u188E\u1890\u1892\u1894;\u6557;\u6554;\u6556;\u6553\u0280;DUdu\u18A1\u18A2\u18A4\u18A6\u18A8\u6550;\u6566;\u6569;\u6564;\u6567\u0200LRlr\u18B3\u18B5\u18B7\u18B9;\u655D;\u655A;\u655C;\u6559\u0380;HLRhlr\u18CA\u18CB\u18CD\u18CF\u18D1\u18D3\u18D5\u6551;\u656C;\u6563;\u6560;\u656B;\u6562;\u655Fox;\u69C9\u0200LRlr\u18E4\u18E6\u18E8\u18EA;\u6555;\u6552;\u6510;\u650C\u0280;DUdu\u06BD\u18F7\u18F9\u18FB\u18FD;\u6565;\u6568;\u652C;\u6534inus;\u629Flus;\u629Eimes;\u62A0\u0200LRlr\u1919\u191B\u191D\u191F;\u655B;\u6558;\u6518;\u6514\u0380;HLRhlr\u1930\u1931\u1933\u1935\u1937\u1939\u193B\u6502;\u656A;\u6561;\u655E;\u653C;\u6524;\u651C\u0100ev\u0123\u1942bar\u803B\xA6\u40A6\u0200ceio\u1951\u1956\u195A\u1960r;\uC000\u{1D4B7}mi;\u604Fm\u0100;e\u171A\u171Cl\u0180;bh\u1968\u1969\u196B\u405C;\u69C5sub;\u67C8\u016C\u1974\u197El\u0100;e\u1979\u197A\u6022t\xBB\u197Ap\u0180;Ee\u012F\u1985\u1987;\u6AAE\u0100;q\u06DC\u06DB\u0CE1\u19A7\0\u19E8\u1A11\u1A15\u1A32\0\u1A37\u1A50\0\0\u1AB4\0\0\u1AC1\0\0\u1B21\u1B2E\u1B4D\u1B52\0\u1BFD\0\u1C0C\u0180cpr\u19AD\u19B2\u19DDute;\u4107\u0300;abcds\u19BF\u19C0\u19C4\u19CA\u19D5\u19D9\u6229nd;\u6A44rcup;\u6A49\u0100au\u19CF\u19D2p;\u6A4Bp;\u6A47ot;\u6A40;\uC000\u2229\uFE00\u0100eo\u19E2\u19E5t;\u6041\xEE\u0693\u0200aeiu\u19F0\u19FB\u1A01\u1A05\u01F0\u19F5\0\u19F8s;\u6A4Don;\u410Ddil\u803B\xE7\u40E7rc;\u4109ps\u0100;s\u1A0C\u1A0D\u6A4Cm;\u6A50ot;\u410B\u0180dmn\u1A1B\u1A20\u1A26il\u80BB\xB8\u01ADptyv;\u69B2t\u8100\xA2;e\u1A2D\u1A2E\u40A2r\xE4\u01B2r;\uC000\u{1D520}\u0180cei\u1A3D\u1A40\u1A4Dy;\u4447ck\u0100;m\u1A47\u1A48\u6713ark\xBB\u1A48;\u43C7r\u0380;Ecefms\u1A5F\u1A60\u1A62\u1A6B\u1AA4\u1AAA\u1AAE\u65CB;\u69C3\u0180;el\u1A69\u1A6A\u1A6D\u42C6q;\u6257e\u0261\u1A74\0\0\u1A88rrow\u0100lr\u1A7C\u1A81eft;\u61BAight;\u61BB\u0280RSacd\u1A92\u1A94\u1A96\u1A9A\u1A9F\xBB\u0F47;\u64C8st;\u629Birc;\u629Aash;\u629Dnint;\u6A10id;\u6AEFcir;\u69C2ubs\u0100;u\u1ABB\u1ABC\u6663it\xBB\u1ABC\u02EC\u1AC7\u1AD4\u1AFA\0\u1B0Aon\u0100;e\u1ACD\u1ACE\u403A\u0100;q\xC7\xC6\u026D\u1AD9\0\0\u1AE2a\u0100;t\u1ADE\u1ADF\u402C;\u4040\u0180;fl\u1AE8\u1AE9\u1AEB\u6201\xEE\u1160e\u0100mx\u1AF1\u1AF6ent\xBB\u1AE9e\xF3\u024D\u01E7\u1AFE\0\u1B07\u0100;d\u12BB\u1B02ot;\u6A6Dn\xF4\u0246\u0180fry\u1B10\u1B14\u1B17;\uC000\u{1D554}o\xE4\u0254\u8100\xA9;s\u0155\u1B1Dr;\u6117\u0100ao\u1B25\u1B29rr;\u61B5ss;\u6717\u0100cu\u1B32\u1B37r;\uC000\u{1D4B8}\u0100bp\u1B3C\u1B44\u0100;e\u1B41\u1B42\u6ACF;\u6AD1\u0100;e\u1B49\u1B4A\u6AD0;\u6AD2dot;\u62EF\u0380delprvw\u1B60\u1B6C\u1B77\u1B82\u1BAC\u1BD4\u1BF9arr\u0100lr\u1B68\u1B6A;\u6938;\u6935\u0270\u1B72\0\0\u1B75r;\u62DEc;\u62DFarr\u0100;p\u1B7F\u1B80\u61B6;\u693D\u0300;bcdos\u1B8F\u1B90\u1B96\u1BA1\u1BA5\u1BA8\u622Arcap;\u6A48\u0100au\u1B9B\u1B9Ep;\u6A46p;\u6A4Aot;\u628Dr;\u6A45;\uC000\u222A\uFE00\u0200alrv\u1BB5\u1BBF\u1BDE\u1BE3rr\u0100;m\u1BBC\u1BBD\u61B7;\u693Cy\u0180evw\u1BC7\u1BD4\u1BD8q\u0270\u1BCE\0\0\u1BD2re\xE3\u1B73u\xE3\u1B75ee;\u62CEedge;\u62CFen\u803B\xA4\u40A4earrow\u0100lr\u1BEE\u1BF3eft\xBB\u1B80ight\xBB\u1BBDe\xE4\u1BDD\u0100ci\u1C01\u1C07onin\xF4\u01F7nt;\u6231lcty;\u632D\u0980AHabcdefhijlorstuwz\u1C38\u1C3B\u1C3F\u1C5D\u1C69\u1C75\u1C8A\u1C9E\u1CAC\u1CB7\u1CFB\u1CFF\u1D0D\u1D7B\u1D91\u1DAB\u1DBB\u1DC6\u1DCDr\xF2\u0381ar;\u6965\u0200glrs\u1C48\u1C4D\u1C52\u1C54ger;\u6020eth;\u6138\xF2\u1133h\u0100;v\u1C5A\u1C5B\u6010\xBB\u090A\u016B\u1C61\u1C67arow;\u690Fa\xE3\u0315\u0100ay\u1C6E\u1C73ron;\u410F;\u4434\u0180;ao\u0332\u1C7C\u1C84\u0100gr\u02BF\u1C81r;\u61CAtseq;\u6A77\u0180glm\u1C91\u1C94\u1C98\u803B\xB0\u40B0ta;\u43B4ptyv;\u69B1\u0100ir\u1CA3\u1CA8sht;\u697F;\uC000\u{1D521}ar\u0100lr\u1CB3\u1CB5\xBB\u08DC\xBB\u101E\u0280aegsv\u1CC2\u0378\u1CD6\u1CDC\u1CE0m\u0180;os\u0326\u1CCA\u1CD4nd\u0100;s\u0326\u1CD1uit;\u6666amma;\u43DDin;\u62F2\u0180;io\u1CE7\u1CE8\u1CF8\u40F7de\u8100\xF7;o\u1CE7\u1CF0ntimes;\u62C7n\xF8\u1CF7cy;\u4452c\u026F\u1D06\0\0\u1D0Arn;\u631Eop;\u630D\u0280lptuw\u1D18\u1D1D\u1D22\u1D49\u1D55lar;\u4024f;\uC000\u{1D555}\u0280;emps\u030B\u1D2D\u1D37\u1D3D\u1D42q\u0100;d\u0352\u1D33ot;\u6251inus;\u6238lus;\u6214quare;\u62A1blebarwedg\xE5\xFAn\u0180adh\u112E\u1D5D\u1D67ownarrow\xF3\u1C83arpoon\u0100lr\u1D72\u1D76ef\xF4\u1CB4igh\xF4\u1CB6\u0162\u1D7F\u1D85karo\xF7\u0F42\u026F\u1D8A\0\0\u1D8Ern;\u631Fop;\u630C\u0180cot\u1D98\u1DA3\u1DA6\u0100ry\u1D9D\u1DA1;\uC000\u{1D4B9};\u4455l;\u69F6rok;\u4111\u0100dr\u1DB0\u1DB4ot;\u62F1i\u0100;f\u1DBA\u1816\u65BF\u0100ah\u1DC0\u1DC3r\xF2\u0429a\xF2\u0FA6angle;\u69A6\u0100ci\u1DD2\u1DD5y;\u445Fgrarr;\u67FF\u0900Dacdefglmnopqrstux\u1E01\u1E09\u1E19\u1E38\u0578\u1E3C\u1E49\u1E61\u1E7E\u1EA5\u1EAF\u1EBD\u1EE1\u1F2A\u1F37\u1F44\u1F4E\u1F5A\u0100Do\u1E06\u1D34o\xF4\u1C89\u0100cs\u1E0E\u1E14ute\u803B\xE9\u40E9ter;\u6A6E\u0200aioy\u1E22\u1E27\u1E31\u1E36ron;\u411Br\u0100;c\u1E2D\u1E2E\u6256\u803B\xEA\u40EAlon;\u6255;\u444Dot;\u4117\u0100Dr\u1E41\u1E45ot;\u6252;\uC000\u{1D522}\u0180;rs\u1E50\u1E51\u1E57\u6A9Aave\u803B\xE8\u40E8\u0100;d\u1E5C\u1E5D\u6A96ot;\u6A98\u0200;ils\u1E6A\u1E6B\u1E72\u1E74\u6A99nters;\u63E7;\u6113\u0100;d\u1E79\u1E7A\u6A95ot;\u6A97\u0180aps\u1E85\u1E89\u1E97cr;\u4113ty\u0180;sv\u1E92\u1E93\u1E95\u6205et\xBB\u1E93p\u01001;\u1E9D\u1EA4\u0133\u1EA1\u1EA3;\u6004;\u6005\u6003\u0100gs\u1EAA\u1EAC;\u414Bp;\u6002\u0100gp\u1EB4\u1EB8on;\u4119f;\uC000\u{1D556}\u0180als\u1EC4\u1ECE\u1ED2r\u0100;s\u1ECA\u1ECB\u62D5l;\u69E3us;\u6A71i\u0180;lv\u1EDA\u1EDB\u1EDF\u43B5on\xBB\u1EDB;\u43F5\u0200csuv\u1EEA\u1EF3\u1F0B\u1F23\u0100io\u1EEF\u1E31rc\xBB\u1E2E\u0269\u1EF9\0\0\u1EFB\xED\u0548ant\u0100gl\u1F02\u1F06tr\xBB\u1E5Dess\xBB\u1E7A\u0180aei\u1F12\u1F16\u1F1Als;\u403Dst;\u625Fv\u0100;D\u0235\u1F20D;\u6A78parsl;\u69E5\u0100Da\u1F2F\u1F33ot;\u6253rr;\u6971\u0180cdi\u1F3E\u1F41\u1EF8r;\u612Fo\xF4\u0352\u0100ah\u1F49\u1F4B;\u43B7\u803B\xF0\u40F0\u0100mr\u1F53\u1F57l\u803B\xEB\u40EBo;\u60AC\u0180cip\u1F61\u1F64\u1F67l;\u4021s\xF4\u056E\u0100eo\u1F6C\u1F74ctatio\xEE\u0559nential\xE5\u0579\u09E1\u1F92\0\u1F9E\0\u1FA1\u1FA7\0\0\u1FC6\u1FCC\0\u1FD3\0\u1FE6\u1FEA\u2000\0\u2008\u205Allingdotse\xF1\u1E44y;\u4444male;\u6640\u0180ilr\u1FAD\u1FB3\u1FC1lig;\u8000\uFB03\u0269\u1FB9\0\0\u1FBDg;\u8000\uFB00ig;\u8000\uFB04;\uC000\u{1D523}lig;\u8000\uFB01lig;\uC000fj\u0180alt\u1FD9\u1FDC\u1FE1t;\u666Dig;\u8000\uFB02ns;\u65B1of;\u4192\u01F0\u1FEE\0\u1FF3f;\uC000\u{1D557}\u0100ak\u05BF\u1FF7\u0100;v\u1FFC\u1FFD\u62D4;\u6AD9artint;\u6A0D\u0100ao\u200C\u2055\u0100cs\u2011\u2052\u03B1\u201A\u2030\u2038\u2045\u2048\0\u2050\u03B2\u2022\u2025\u2027\u202A\u202C\0\u202E\u803B\xBD\u40BD;\u6153\u803B\xBC\u40BC;\u6155;\u6159;\u615B\u01B3\u2034\0\u2036;\u6154;\u6156\u02B4\u203E\u2041\0\0\u2043\u803B\xBE\u40BE;\u6157;\u615C5;\u6158\u01B6\u204C\0\u204E;\u615A;\u615D8;\u615El;\u6044wn;\u6322cr;\uC000\u{1D4BB}\u0880Eabcdefgijlnorstv\u2082\u2089\u209F\u20A5\u20B0\u20B4\u20F0\u20F5\u20FA\u20FF\u2103\u2112\u2138\u0317\u213E\u2152\u219E\u0100;l\u064D\u2087;\u6A8C\u0180cmp\u2090\u2095\u209Dute;\u41F5ma\u0100;d\u209C\u1CDA\u43B3;\u6A86reve;\u411F\u0100iy\u20AA\u20AErc;\u411D;\u4433ot;\u4121\u0200;lqs\u063E\u0642\u20BD\u20C9\u0180;qs\u063E\u064C\u20C4lan\xF4\u0665\u0200;cdl\u0665\u20D2\u20D5\u20E5c;\u6AA9ot\u0100;o\u20DC\u20DD\u6A80\u0100;l\u20E2\u20E3\u6A82;\u6A84\u0100;e\u20EA\u20ED\uC000\u22DB\uFE00s;\u6A94r;\uC000\u{1D524}\u0100;g\u0673\u061Bmel;\u6137cy;\u4453\u0200;Eaj\u065A\u210C\u210E\u2110;\u6A92;\u6AA5;\u6AA4\u0200Eaes\u211B\u211D\u2129\u2134;\u6269p\u0100;p\u2123\u2124\u6A8Arox\xBB\u2124\u0100;q\u212E\u212F\u6A88\u0100;q\u212E\u211Bim;\u62E7pf;\uC000\u{1D558}\u0100ci\u2143\u2146r;\u610Am\u0180;el\u066B\u214E\u2150;\u6A8E;\u6A90\u8300>;cdlqr\u05EE\u2160\u216A\u216E\u2173\u2179\u0100ci\u2165\u2167;\u6AA7r;\u6A7Aot;\u62D7Par;\u6995uest;\u6A7C\u0280adels\u2184\u216A\u2190\u0656\u219B\u01F0\u2189\0\u218Epro\xF8\u209Er;\u6978q\u0100lq\u063F\u2196les\xF3\u2088i\xED\u066B\u0100en\u21A3\u21ADrtneqq;\uC000\u2269\uFE00\xC5\u21AA\u0500Aabcefkosy\u21C4\u21C7\u21F1\u21F5\u21FA\u2218\u221D\u222F\u2268\u227Dr\xF2\u03A0\u0200ilmr\u21D0\u21D4\u21D7\u21DBrs\xF0\u1484f\xBB\u2024il\xF4\u06A9\u0100dr\u21E0\u21E4cy;\u444A\u0180;cw\u08F4\u21EB\u21EFir;\u6948;\u61ADar;\u610Firc;\u4125\u0180alr\u2201\u220E\u2213rts\u0100;u\u2209\u220A\u6665it\xBB\u220Alip;\u6026con;\u62B9r;\uC000\u{1D525}s\u0100ew\u2223\u2229arow;\u6925arow;\u6926\u0280amopr\u223A\u223E\u2243\u225E\u2263rr;\u61FFtht;\u623Bk\u0100lr\u2249\u2253eftarrow;\u61A9ightarrow;\u61AAf;\uC000\u{1D559}bar;\u6015\u0180clt\u226F\u2274\u2278r;\uC000\u{1D4BD}as\xE8\u21F4rok;\u4127\u0100bp\u2282\u2287ull;\u6043hen\xBB\u1C5B\u0AE1\u22A3\0\u22AA\0\u22B8\u22C5\u22CE\0\u22D5\u22F3\0\0\u22F8\u2322\u2367\u2362\u237F\0\u2386\u23AA\u23B4cute\u803B\xED\u40ED\u0180;iy\u0771\u22B0\u22B5rc\u803B\xEE\u40EE;\u4438\u0100cx\u22BC\u22BFy;\u4435cl\u803B\xA1\u40A1\u0100fr\u039F\u22C9;\uC000\u{1D526}rave\u803B\xEC\u40EC\u0200;ino\u073E\u22DD\u22E9\u22EE\u0100in\u22E2\u22E6nt;\u6A0Ct;\u622Dfin;\u69DCta;\u6129lig;\u4133\u0180aop\u22FE\u231A\u231D\u0180cgt\u2305\u2308\u2317r;\u412B\u0180elp\u071F\u230F\u2313in\xE5\u078Ear\xF4\u0720h;\u4131f;\u62B7ed;\u41B5\u0280;cfot\u04F4\u232C\u2331\u233D\u2341are;\u6105in\u0100;t\u2338\u2339\u621Eie;\u69DDdo\xF4\u2319\u0280;celp\u0757\u234C\u2350\u235B\u2361al;\u62BA\u0100gr\u2355\u2359er\xF3\u1563\xE3\u234Darhk;\u6A17rod;\u6A3C\u0200cgpt\u236F\u2372\u2376\u237By;\u4451on;\u412Ff;\uC000\u{1D55A}a;\u43B9uest\u803B\xBF\u40BF\u0100ci\u238A\u238Fr;\uC000\u{1D4BE}n\u0280;Edsv\u04F4\u239B\u239D\u23A1\u04F3;\u62F9ot;\u62F5\u0100;v\u23A6\u23A7\u62F4;\u62F3\u0100;i\u0777\u23AElde;\u4129\u01EB\u23B8\0\u23BCcy;\u4456l\u803B\xEF\u40EF\u0300cfmosu\u23CC\u23D7\u23DC\u23E1\u23E7\u23F5\u0100iy\u23D1\u23D5rc;\u4135;\u4439r;\uC000\u{1D527}ath;\u4237pf;\uC000\u{1D55B}\u01E3\u23EC\0\u23F1r;\uC000\u{1D4BF}rcy;\u4458kcy;\u4454\u0400acfghjos\u240B\u2416\u2422\u2427\u242D\u2431\u2435\u243Bppa\u0100;v\u2413\u2414\u43BA;\u43F0\u0100ey\u241B\u2420dil;\u4137;\u443Ar;\uC000\u{1D528}reen;\u4138cy;\u4445cy;\u445Cpf;\uC000\u{1D55C}cr;\uC000\u{1D4C0}\u0B80ABEHabcdefghjlmnoprstuv\u2470\u2481\u2486\u248D\u2491\u250E\u253D\u255A\u2580\u264E\u265E\u2665\u2679\u267D\u269A\u26B2\u26D8\u275D\u2768\u278B\u27C0\u2801\u2812\u0180art\u2477\u247A\u247Cr\xF2\u09C6\xF2\u0395ail;\u691Barr;\u690E\u0100;g\u0994\u248B;\u6A8Bar;\u6962\u0963\u24A5\0\u24AA\0\u24B1\0\0\0\0\0\u24B5\u24BA\0\u24C6\u24C8\u24CD\0\u24F9ute;\u413Amptyv;\u69B4ra\xEE\u084Cbda;\u43BBg\u0180;dl\u088E\u24C1\u24C3;\u6991\xE5\u088E;\u6A85uo\u803B\xAB\u40ABr\u0400;bfhlpst\u0899\u24DE\u24E6\u24E9\u24EB\u24EE\u24F1\u24F5\u0100;f\u089D\u24E3s;\u691Fs;\u691D\xEB\u2252p;\u61ABl;\u6939im;\u6973l;\u61A2\u0180;ae\u24FF\u2500\u2504\u6AABil;\u6919\u0100;s\u2509\u250A\u6AAD;\uC000\u2AAD\uFE00\u0180abr\u2515\u2519\u251Drr;\u690Crk;\u6772\u0100ak\u2522\u252Cc\u0100ek\u2528\u252A;\u407B;\u405B\u0100es\u2531\u2533;\u698Bl\u0100du\u2539\u253B;\u698F;\u698D\u0200aeuy\u2546\u254B\u2556\u2558ron;\u413E\u0100di\u2550\u2554il;\u413C\xEC\u08B0\xE2\u2529;\u443B\u0200cqrs\u2563\u2566\u256D\u257Da;\u6936uo\u0100;r\u0E19\u1746\u0100du\u2572\u2577har;\u6967shar;\u694Bh;\u61B2\u0280;fgqs\u258B\u258C\u0989\u25F3\u25FF\u6264t\u0280ahlrt\u2598\u25A4\u25B7\u25C2\u25E8rrow\u0100;t\u0899\u25A1a\xE9\u24F6arpoon\u0100du\u25AF\u25B4own\xBB\u045Ap\xBB\u0966eftarrows;\u61C7ight\u0180ahs\u25CD\u25D6\u25DErrow\u0100;s\u08F4\u08A7arpoon\xF3\u0F98quigarro\xF7\u21F0hreetimes;\u62CB\u0180;qs\u258B\u0993\u25FAlan\xF4\u09AC\u0280;cdgs\u09AC\u260A\u260D\u261D\u2628c;\u6AA8ot\u0100;o\u2614\u2615\u6A7F\u0100;r\u261A\u261B\u6A81;\u6A83\u0100;e\u2622\u2625\uC000\u22DA\uFE00s;\u6A93\u0280adegs\u2633\u2639\u263D\u2649\u264Bppro\xF8\u24C6ot;\u62D6q\u0100gq\u2643\u2645\xF4\u0989gt\xF2\u248C\xF4\u099Bi\xED\u09B2\u0180ilr\u2655\u08E1\u265Asht;\u697C;\uC000\u{1D529}\u0100;E\u099C\u2663;\u6A91\u0161\u2669\u2676r\u0100du\u25B2\u266E\u0100;l\u0965\u2673;\u696Alk;\u6584cy;\u4459\u0280;acht\u0A48\u2688\u268B\u2691\u2696r\xF2\u25C1orne\xF2\u1D08ard;\u696Bri;\u65FA\u0100io\u269F\u26A4dot;\u4140ust\u0100;a\u26AC\u26AD\u63B0che\xBB\u26AD\u0200Eaes\u26BB\u26BD\u26C9\u26D4;\u6268p\u0100;p\u26C3\u26C4\u6A89rox\xBB\u26C4\u0100;q\u26CE\u26CF\u6A87\u0100;q\u26CE\u26BBim;\u62E6\u0400abnoptwz\u26E9\u26F4\u26F7\u271A\u272F\u2741\u2747\u2750\u0100nr\u26EE\u26F1g;\u67ECr;\u61FDr\xEB\u08C1g\u0180lmr\u26FF\u270D\u2714eft\u0100ar\u09E6\u2707ight\xE1\u09F2apsto;\u67FCight\xE1\u09FDparrow\u0100lr\u2725\u2729ef\xF4\u24EDight;\u61AC\u0180afl\u2736\u2739\u273Dr;\u6985;\uC000\u{1D55D}us;\u6A2Dimes;\u6A34\u0161\u274B\u274Fst;\u6217\xE1\u134E\u0180;ef\u2757\u2758\u1800\u65CAnge\xBB\u2758ar\u0100;l\u2764\u2765\u4028t;\u6993\u0280achmt\u2773\u2776\u277C\u2785\u2787r\xF2\u08A8orne\xF2\u1D8Car\u0100;d\u0F98\u2783;\u696D;\u600Eri;\u62BF\u0300achiqt\u2798\u279D\u0A40\u27A2\u27AE\u27BBquo;\u6039r;\uC000\u{1D4C1}m\u0180;eg\u09B2\u27AA\u27AC;\u6A8D;\u6A8F\u0100bu\u252A\u27B3o\u0100;r\u0E1F\u27B9;\u601Arok;\u4142\u8400<;cdhilqr\u082B\u27D2\u2639\u27DC\u27E0\u27E5\u27EA\u27F0\u0100ci\u27D7\u27D9;\u6AA6r;\u6A79re\xE5\u25F2mes;\u62C9arr;\u6976uest;\u6A7B\u0100Pi\u27F5\u27F9ar;\u6996\u0180;ef\u2800\u092D\u181B\u65C3r\u0100du\u2807\u280Dshar;\u694Ahar;\u6966\u0100en\u2817\u2821rtneqq;\uC000\u2268\uFE00\xC5\u281E\u0700Dacdefhilnopsu\u2840\u2845\u2882\u288E\u2893\u28A0\u28A5\u28A8\u28DA\u28E2\u28E4\u0A83\u28F3\u2902Dot;\u623A\u0200clpr\u284E\u2852\u2863\u287Dr\u803B\xAF\u40AF\u0100et\u2857\u2859;\u6642\u0100;e\u285E\u285F\u6720se\xBB\u285F\u0100;s\u103B\u2868to\u0200;dlu\u103B\u2873\u2877\u287Bow\xEE\u048Cef\xF4\u090F\xF0\u13D1ker;\u65AE\u0100oy\u2887\u288Cmma;\u6A29;\u443Cash;\u6014asuredangle\xBB\u1626r;\uC000\u{1D52A}o;\u6127\u0180cdn\u28AF\u28B4\u28C9ro\u803B\xB5\u40B5\u0200;acd\u1464\u28BD\u28C0\u28C4s\xF4\u16A7ir;\u6AF0ot\u80BB\xB7\u01B5us\u0180;bd\u28D2\u1903\u28D3\u6212\u0100;u\u1D3C\u28D8;\u6A2A\u0163\u28DE\u28E1p;\u6ADB\xF2\u2212\xF0\u0A81\u0100dp\u28E9\u28EEels;\u62A7f;\uC000\u{1D55E}\u0100ct\u28F8\u28FDr;\uC000\u{1D4C2}pos\xBB\u159D\u0180;lm\u2909\u290A\u290D\u43BCtimap;\u62B8\u0C00GLRVabcdefghijlmoprstuvw\u2942\u2953\u297E\u2989\u2998\u29DA\u29E9\u2A15\u2A1A\u2A58\u2A5D\u2A83\u2A95\u2AA4\u2AA8\u2B04\u2B07\u2B44\u2B7F\u2BAE\u2C34\u2C67\u2C7C\u2CE9\u0100gt\u2947\u294B;\uC000\u22D9\u0338\u0100;v\u2950\u0BCF\uC000\u226B\u20D2\u0180elt\u295A\u2972\u2976ft\u0100ar\u2961\u2967rrow;\u61CDightarrow;\u61CE;\uC000\u22D8\u0338\u0100;v\u297B\u0C47\uC000\u226A\u20D2ightarrow;\u61CF\u0100Dd\u298E\u2993ash;\u62AFash;\u62AE\u0280bcnpt\u29A3\u29A7\u29AC\u29B1\u29CCla\xBB\u02DEute;\u4144g;\uC000\u2220\u20D2\u0280;Eiop\u0D84\u29BC\u29C0\u29C5\u29C8;\uC000\u2A70\u0338d;\uC000\u224B\u0338s;\u4149ro\xF8\u0D84ur\u0100;a\u29D3\u29D4\u666El\u0100;s\u29D3\u0B38\u01F3\u29DF\0\u29E3p\u80BB\xA0\u0B37mp\u0100;e\u0BF9\u0C00\u0280aeouy\u29F4\u29FE\u2A03\u2A10\u2A13\u01F0\u29F9\0\u29FB;\u6A43on;\u4148dil;\u4146ng\u0100;d\u0D7E\u2A0Aot;\uC000\u2A6D\u0338p;\u6A42;\u443Dash;\u6013\u0380;Aadqsx\u0B92\u2A29\u2A2D\u2A3B\u2A41\u2A45\u2A50rr;\u61D7r\u0100hr\u2A33\u2A36k;\u6924\u0100;o\u13F2\u13F0ot;\uC000\u2250\u0338ui\xF6\u0B63\u0100ei\u2A4A\u2A4Ear;\u6928\xED\u0B98ist\u0100;s\u0BA0\u0B9Fr;\uC000\u{1D52B}\u0200Eest\u0BC5\u2A66\u2A79\u2A7C\u0180;qs\u0BBC\u2A6D\u0BE1\u0180;qs\u0BBC\u0BC5\u2A74lan\xF4\u0BE2i\xED\u0BEA\u0100;r\u0BB6\u2A81\xBB\u0BB7\u0180Aap\u2A8A\u2A8D\u2A91r\xF2\u2971rr;\u61AEar;\u6AF2\u0180;sv\u0F8D\u2A9C\u0F8C\u0100;d\u2AA1\u2AA2\u62FC;\u62FAcy;\u445A\u0380AEadest\u2AB7\u2ABA\u2ABE\u2AC2\u2AC5\u2AF6\u2AF9r\xF2\u2966;\uC000\u2266\u0338rr;\u619Ar;\u6025\u0200;fqs\u0C3B\u2ACE\u2AE3\u2AEFt\u0100ar\u2AD4\u2AD9rro\xF7\u2AC1ightarro\xF7\u2A90\u0180;qs\u0C3B\u2ABA\u2AEAlan\xF4\u0C55\u0100;s\u0C55\u2AF4\xBB\u0C36i\xED\u0C5D\u0100;r\u0C35\u2AFEi\u0100;e\u0C1A\u0C25i\xE4\u0D90\u0100pt\u2B0C\u2B11f;\uC000\u{1D55F}\u8180\xAC;in\u2B19\u2B1A\u2B36\u40ACn\u0200;Edv\u0B89\u2B24\u2B28\u2B2E;\uC000\u22F9\u0338ot;\uC000\u22F5\u0338\u01E1\u0B89\u2B33\u2B35;\u62F7;\u62F6i\u0100;v\u0CB8\u2B3C\u01E1\u0CB8\u2B41\u2B43;\u62FE;\u62FD\u0180aor\u2B4B\u2B63\u2B69r\u0200;ast\u0B7B\u2B55\u2B5A\u2B5Flle\xEC\u0B7Bl;\uC000\u2AFD\u20E5;\uC000\u2202\u0338lint;\u6A14\u0180;ce\u0C92\u2B70\u2B73u\xE5\u0CA5\u0100;c\u0C98\u2B78\u0100;e\u0C92\u2B7D\xF1\u0C98\u0200Aait\u2B88\u2B8B\u2B9D\u2BA7r\xF2\u2988rr\u0180;cw\u2B94\u2B95\u2B99\u619B;\uC000\u2933\u0338;\uC000\u219D\u0338ghtarrow\xBB\u2B95ri\u0100;e\u0CCB\u0CD6\u0380chimpqu\u2BBD\u2BCD\u2BD9\u2B04\u0B78\u2BE4\u2BEF\u0200;cer\u0D32\u2BC6\u0D37\u2BC9u\xE5\u0D45;\uC000\u{1D4C3}ort\u026D\u2B05\0\0\u2BD6ar\xE1\u2B56m\u0100;e\u0D6E\u2BDF\u0100;q\u0D74\u0D73su\u0100bp\u2BEB\u2BED\xE5\u0CF8\xE5\u0D0B\u0180bcp\u2BF6\u2C11\u2C19\u0200;Ees\u2BFF\u2C00\u0D22\u2C04\u6284;\uC000\u2AC5\u0338et\u0100;e\u0D1B\u2C0Bq\u0100;q\u0D23\u2C00c\u0100;e\u0D32\u2C17\xF1\u0D38\u0200;Ees\u2C22\u2C23\u0D5F\u2C27\u6285;\uC000\u2AC6\u0338et\u0100;e\u0D58\u2C2Eq\u0100;q\u0D60\u2C23\u0200gilr\u2C3D\u2C3F\u2C45\u2C47\xEC\u0BD7lde\u803B\xF1\u40F1\xE7\u0C43iangle\u0100lr\u2C52\u2C5Ceft\u0100;e\u0C1A\u2C5A\xF1\u0C26ight\u0100;e\u0CCB\u2C65\xF1\u0CD7\u0100;m\u2C6C\u2C6D\u43BD\u0180;es\u2C74\u2C75\u2C79\u4023ro;\u6116p;\u6007\u0480DHadgilrs\u2C8F\u2C94\u2C99\u2C9E\u2CA3\u2CB0\u2CB6\u2CD3\u2CE3ash;\u62ADarr;\u6904p;\uC000\u224D\u20D2ash;\u62AC\u0100et\u2CA8\u2CAC;\uC000\u2265\u20D2;\uC000>\u20D2nfin;\u69DE\u0180Aet\u2CBD\u2CC1\u2CC5rr;\u6902;\uC000\u2264\u20D2\u0100;r\u2CCA\u2CCD\uC000<\u20D2ie;\uC000\u22B4\u20D2\u0100At\u2CD8\u2CDCrr;\u6903rie;\uC000\u22B5\u20D2im;\uC000\u223C\u20D2\u0180Aan\u2CF0\u2CF4\u2D02rr;\u61D6r\u0100hr\u2CFA\u2CFDk;\u6923\u0100;o\u13E7\u13E5ear;\u6927\u1253\u1A95\0\0\0\0\0\0\0\0\0\0\0\0\0\u2D2D\0\u2D38\u2D48\u2D60\u2D65\u2D72\u2D84\u1B07\0\0\u2D8D\u2DAB\0\u2DC8\u2DCE\0\u2DDC\u2E19\u2E2B\u2E3E\u2E43\u0100cs\u2D31\u1A97ute\u803B\xF3\u40F3\u0100iy\u2D3C\u2D45r\u0100;c\u1A9E\u2D42\u803B\xF4\u40F4;\u443E\u0280abios\u1AA0\u2D52\u2D57\u01C8\u2D5Alac;\u4151v;\u6A38old;\u69BClig;\u4153\u0100cr\u2D69\u2D6Dir;\u69BF;\uC000\u{1D52C}\u036F\u2D79\0\0\u2D7C\0\u2D82n;\u42DBave\u803B\xF2\u40F2;\u69C1\u0100bm\u2D88\u0DF4ar;\u69B5\u0200acit\u2D95\u2D98\u2DA5\u2DA8r\xF2\u1A80\u0100ir\u2D9D\u2DA0r;\u69BEoss;\u69BBn\xE5\u0E52;\u69C0\u0180aei\u2DB1\u2DB5\u2DB9cr;\u414Dga;\u43C9\u0180cdn\u2DC0\u2DC5\u01CDron;\u43BF;\u69B6pf;\uC000\u{1D560}\u0180ael\u2DD4\u2DD7\u01D2r;\u69B7rp;\u69B9\u0380;adiosv\u2DEA\u2DEB\u2DEE\u2E08\u2E0D\u2E10\u2E16\u6228r\xF2\u1A86\u0200;efm\u2DF7\u2DF8\u2E02\u2E05\u6A5Dr\u0100;o\u2DFE\u2DFF\u6134f\xBB\u2DFF\u803B\xAA\u40AA\u803B\xBA\u40BAgof;\u62B6r;\u6A56lope;\u6A57;\u6A5B\u0180clo\u2E1F\u2E21\u2E27\xF2\u2E01ash\u803B\xF8\u40F8l;\u6298i\u016C\u2E2F\u2E34de\u803B\xF5\u40F5es\u0100;a\u01DB\u2E3As;\u6A36ml\u803B\xF6\u40F6bar;\u633D\u0AE1\u2E5E\0\u2E7D\0\u2E80\u2E9D\0\u2EA2\u2EB9\0\0\u2ECB\u0E9C\0\u2F13\0\0\u2F2B\u2FBC\0\u2FC8r\u0200;ast\u0403\u2E67\u2E72\u0E85\u8100\xB6;l\u2E6D\u2E6E\u40B6le\xEC\u0403\u0269\u2E78\0\0\u2E7Bm;\u6AF3;\u6AFDy;\u443Fr\u0280cimpt\u2E8B\u2E8F\u2E93\u1865\u2E97nt;\u4025od;\u402Eil;\u6030enk;\u6031r;\uC000\u{1D52D}\u0180imo\u2EA8\u2EB0\u2EB4\u0100;v\u2EAD\u2EAE\u43C6;\u43D5ma\xF4\u0A76ne;\u660E\u0180;tv\u2EBF\u2EC0\u2EC8\u43C0chfork\xBB\u1FFD;\u43D6\u0100au\u2ECF\u2EDFn\u0100ck\u2ED5\u2EDDk\u0100;h\u21F4\u2EDB;\u610E\xF6\u21F4s\u0480;abcdemst\u2EF3\u2EF4\u1908\u2EF9\u2EFD\u2F04\u2F06\u2F0A\u2F0E\u402Bcir;\u6A23ir;\u6A22\u0100ou\u1D40\u2F02;\u6A25;\u6A72n\u80BB\xB1\u0E9Dim;\u6A26wo;\u6A27\u0180ipu\u2F19\u2F20\u2F25ntint;\u6A15f;\uC000\u{1D561}nd\u803B\xA3\u40A3\u0500;Eaceinosu\u0EC8\u2F3F\u2F41\u2F44\u2F47\u2F81\u2F89\u2F92\u2F7E\u2FB6;\u6AB3p;\u6AB7u\xE5\u0ED9\u0100;c\u0ECE\u2F4C\u0300;acens\u0EC8\u2F59\u2F5F\u2F66\u2F68\u2F7Eppro\xF8\u2F43urlye\xF1\u0ED9\xF1\u0ECE\u0180aes\u2F6F\u2F76\u2F7Approx;\u6AB9qq;\u6AB5im;\u62E8i\xED\u0EDFme\u0100;s\u2F88\u0EAE\u6032\u0180Eas\u2F78\u2F90\u2F7A\xF0\u2F75\u0180dfp\u0EEC\u2F99\u2FAF\u0180als\u2FA0\u2FA5\u2FAAlar;\u632Eine;\u6312urf;\u6313\u0100;t\u0EFB\u2FB4\xEF\u0EFBrel;\u62B0\u0100ci\u2FC0\u2FC5r;\uC000\u{1D4C5};\u43C8ncsp;\u6008\u0300fiopsu\u2FDA\u22E2\u2FDF\u2FE5\u2FEB\u2FF1r;\uC000\u{1D52E}pf;\uC000\u{1D562}rime;\u6057cr;\uC000\u{1D4C6}\u0180aeo\u2FF8\u3009\u3013t\u0100ei\u2FFE\u3005rnion\xF3\u06B0nt;\u6A16st\u0100;e\u3010\u3011\u403F\xF1\u1F19\xF4\u0F14\u0A80ABHabcdefhilmnoprstux\u3040\u3051\u3055\u3059\u30E0\u310E\u312B\u3147\u3162\u3172\u318E\u3206\u3215\u3224\u3229\u3258\u326E\u3272\u3290\u32B0\u32B7\u0180art\u3047\u304A\u304Cr\xF2\u10B3\xF2\u03DDail;\u691Car\xF2\u1C65ar;\u6964\u0380cdenqrt\u3068\u3075\u3078\u307F\u308F\u3094\u30CC\u0100eu\u306D\u3071;\uC000\u223D\u0331te;\u4155i\xE3\u116Emptyv;\u69B3g\u0200;del\u0FD1\u3089\u308B\u308D;\u6992;\u69A5\xE5\u0FD1uo\u803B\xBB\u40BBr\u0580;abcfhlpstw\u0FDC\u30AC\u30AF\u30B7\u30B9\u30BC\u30BE\u30C0\u30C3\u30C7\u30CAp;\u6975\u0100;f\u0FE0\u30B4s;\u6920;\u6933s;\u691E\xEB\u225D\xF0\u272El;\u6945im;\u6974l;\u61A3;\u619D\u0100ai\u30D1\u30D5il;\u691Ao\u0100;n\u30DB\u30DC\u6236al\xF3\u0F1E\u0180abr\u30E7\u30EA\u30EEr\xF2\u17E5rk;\u6773\u0100ak\u30F3\u30FDc\u0100ek\u30F9\u30FB;\u407D;\u405D\u0100es\u3102\u3104;\u698Cl\u0100du\u310A\u310C;\u698E;\u6990\u0200aeuy\u3117\u311C\u3127\u3129ron;\u4159\u0100di\u3121\u3125il;\u4157\xEC\u0FF2\xE2\u30FA;\u4440\u0200clqs\u3134\u3137\u313D\u3144a;\u6937dhar;\u6969uo\u0100;r\u020E\u020Dh;\u61B3\u0180acg\u314E\u315F\u0F44l\u0200;ips\u0F78\u3158\u315B\u109Cn\xE5\u10BBar\xF4\u0FA9t;\u65AD\u0180ilr\u3169\u1023\u316Esht;\u697D;\uC000\u{1D52F}\u0100ao\u3177\u3186r\u0100du\u317D\u317F\xBB\u047B\u0100;l\u1091\u3184;\u696C\u0100;v\u318B\u318C\u43C1;\u43F1\u0180gns\u3195\u31F9\u31FCht\u0300ahlrst\u31A4\u31B0\u31C2\u31D8\u31E4\u31EErrow\u0100;t\u0FDC\u31ADa\xE9\u30C8arpoon\u0100du\u31BB\u31BFow\xEE\u317Ep\xBB\u1092eft\u0100ah\u31CA\u31D0rrow\xF3\u0FEAarpoon\xF3\u0551ightarrows;\u61C9quigarro\xF7\u30CBhreetimes;\u62CCg;\u42DAingdotse\xF1\u1F32\u0180ahm\u320D\u3210\u3213r\xF2\u0FEAa\xF2\u0551;\u600Foust\u0100;a\u321E\u321F\u63B1che\xBB\u321Fmid;\u6AEE\u0200abpt\u3232\u323D\u3240\u3252\u0100nr\u3237\u323Ag;\u67EDr;\u61FEr\xEB\u1003\u0180afl\u3247\u324A\u324Er;\u6986;\uC000\u{1D563}us;\u6A2Eimes;\u6A35\u0100ap\u325D\u3267r\u0100;g\u3263\u3264\u4029t;\u6994olint;\u6A12ar\xF2\u31E3\u0200achq\u327B\u3280\u10BC\u3285quo;\u603Ar;\uC000\u{1D4C7}\u0100bu\u30FB\u328Ao\u0100;r\u0214\u0213\u0180hir\u3297\u329B\u32A0re\xE5\u31F8mes;\u62CAi\u0200;efl\u32AA\u1059\u1821\u32AB\u65B9tri;\u69CEluhar;\u6968;\u611E\u0D61\u32D5\u32DB\u32DF\u332C\u3338\u3371\0\u337A\u33A4\0\0\u33EC\u33F0\0\u3428\u3448\u345A\u34AD\u34B1\u34CA\u34F1\0\u3616\0\0\u3633cute;\u415Bqu\xEF\u27BA\u0500;Eaceinpsy\u11ED\u32F3\u32F5\u32FF\u3302\u330B\u330F\u331F\u3326\u3329;\u6AB4\u01F0\u32FA\0\u32FC;\u6AB8on;\u4161u\xE5\u11FE\u0100;d\u11F3\u3307il;\u415Frc;\u415D\u0180Eas\u3316\u3318\u331B;\u6AB6p;\u6ABAim;\u62E9olint;\u6A13i\xED\u1204;\u4441ot\u0180;be\u3334\u1D47\u3335\u62C5;\u6A66\u0380Aacmstx\u3346\u334A\u3357\u335B\u335E\u3363\u336Drr;\u61D8r\u0100hr\u3350\u3352\xEB\u2228\u0100;o\u0A36\u0A34t\u803B\xA7\u40A7i;\u403Bwar;\u6929m\u0100in\u3369\xF0nu\xF3\xF1t;\u6736r\u0100;o\u3376\u2055\uC000\u{1D530}\u0200acoy\u3382\u3386\u3391\u33A0rp;\u666F\u0100hy\u338B\u338Fcy;\u4449;\u4448rt\u026D\u3399\0\0\u339Ci\xE4\u1464ara\xEC\u2E6F\u803B\xAD\u40AD\u0100gm\u33A8\u33B4ma\u0180;fv\u33B1\u33B2\u33B2\u43C3;\u43C2\u0400;deglnpr\u12AB\u33C5\u33C9\u33CE\u33D6\u33DE\u33E1\u33E6ot;\u6A6A\u0100;q\u12B1\u12B0\u0100;E\u33D3\u33D4\u6A9E;\u6AA0\u0100;E\u33DB\u33DC\u6A9D;\u6A9Fe;\u6246lus;\u6A24arr;\u6972ar\xF2\u113D\u0200aeit\u33F8\u3408\u340F\u3417\u0100ls\u33FD\u3404lsetm\xE9\u336Ahp;\u6A33parsl;\u69E4\u0100dl\u1463\u3414e;\u6323\u0100;e\u341C\u341D\u6AAA\u0100;s\u3422\u3423\u6AAC;\uC000\u2AAC\uFE00\u0180flp\u342E\u3433\u3442tcy;\u444C\u0100;b\u3438\u3439\u402F\u0100;a\u343E\u343F\u69C4r;\u633Ff;\uC000\u{1D564}a\u0100dr\u344D\u0402es\u0100;u\u3454\u3455\u6660it\xBB\u3455\u0180csu\u3460\u3479\u349F\u0100au\u3465\u346Fp\u0100;s\u1188\u346B;\uC000\u2293\uFE00p\u0100;s\u11B4\u3475;\uC000\u2294\uFE00u\u0100bp\u347F\u348F\u0180;es\u1197\u119C\u3486et\u0100;e\u1197\u348D\xF1\u119D\u0180;es\u11A8\u11AD\u3496et\u0100;e\u11A8\u349D\xF1\u11AE\u0180;af\u117B\u34A6\u05B0r\u0165\u34AB\u05B1\xBB\u117Car\xF2\u1148\u0200cemt\u34B9\u34BE\u34C2\u34C5r;\uC000\u{1D4C8}tm\xEE\xF1i\xEC\u3415ar\xE6\u11BE\u0100ar\u34CE\u34D5r\u0100;f\u34D4\u17BF\u6606\u0100an\u34DA\u34EDight\u0100ep\u34E3\u34EApsilo\xEE\u1EE0h\xE9\u2EAFs\xBB\u2852\u0280bcmnp\u34FB\u355E\u1209\u358B\u358E\u0480;Edemnprs\u350E\u350F\u3511\u3515\u351E\u3523\u352C\u3531\u3536\u6282;\u6AC5ot;\u6ABD\u0100;d\u11DA\u351Aot;\u6AC3ult;\u6AC1\u0100Ee\u3528\u352A;\u6ACB;\u628Alus;\u6ABFarr;\u6979\u0180eiu\u353D\u3552\u3555t\u0180;en\u350E\u3545\u354Bq\u0100;q\u11DA\u350Feq\u0100;q\u352B\u3528m;\u6AC7\u0100bp\u355A\u355C;\u6AD5;\u6AD3c\u0300;acens\u11ED\u356C\u3572\u3579\u357B\u3326ppro\xF8\u32FAurlye\xF1\u11FE\xF1\u11F3\u0180aes\u3582\u3588\u331Bppro\xF8\u331Aq\xF1\u3317g;\u666A\u0680123;Edehlmnps\u35A9\u35AC\u35AF\u121C\u35B2\u35B4\u35C0\u35C9\u35D5\u35DA\u35DF\u35E8\u35ED\u803B\xB9\u40B9\u803B\xB2\u40B2\u803B\xB3\u40B3;\u6AC6\u0100os\u35B9\u35BCt;\u6ABEub;\u6AD8\u0100;d\u1222\u35C5ot;\u6AC4s\u0100ou\u35CF\u35D2l;\u67C9b;\u6AD7arr;\u697Bult;\u6AC2\u0100Ee\u35E4\u35E6;\u6ACC;\u628Blus;\u6AC0\u0180eiu\u35F4\u3609\u360Ct\u0180;en\u121C\u35FC\u3602q\u0100;q\u1222\u35B2eq\u0100;q\u35E7\u35E4m;\u6AC8\u0100bp\u3611\u3613;\u6AD4;\u6AD6\u0180Aan\u361C\u3620\u362Drr;\u61D9r\u0100hr\u3626\u3628\xEB\u222E\u0100;o\u0A2B\u0A29war;\u692Alig\u803B\xDF\u40DF\u0BE1\u3651\u365D\u3660\u12CE\u3673\u3679\0\u367E\u36C2\0\0\0\0\0\u36DB\u3703\0\u3709\u376C\0\0\0\u3787\u0272\u3656\0\0\u365Bget;\u6316;\u43C4r\xEB\u0E5F\u0180aey\u3666\u366B\u3670ron;\u4165dil;\u4163;\u4442lrec;\u6315r;\uC000\u{1D531}\u0200eiko\u3686\u369D\u36B5\u36BC\u01F2\u368B\0\u3691e\u01004f\u1284\u1281a\u0180;sv\u3698\u3699\u369B\u43B8ym;\u43D1\u0100cn\u36A2\u36B2k\u0100as\u36A8\u36AEppro\xF8\u12C1im\xBB\u12ACs\xF0\u129E\u0100as\u36BA\u36AE\xF0\u12C1rn\u803B\xFE\u40FE\u01EC\u031F\u36C6\u22E7es\u8180\xD7;bd\u36CF\u36D0\u36D8\u40D7\u0100;a\u190F\u36D5r;\u6A31;\u6A30\u0180eps\u36E1\u36E3\u3700\xE1\u2A4D\u0200;bcf\u0486\u36EC\u36F0\u36F4ot;\u6336ir;\u6AF1\u0100;o\u36F9\u36FC\uC000\u{1D565}rk;\u6ADA\xE1\u3362rime;\u6034\u0180aip\u370F\u3712\u3764d\xE5\u1248\u0380adempst\u3721\u374D\u3740\u3751\u3757\u375C\u375Fngle\u0280;dlqr\u3730\u3731\u3736\u3740\u3742\u65B5own\xBB\u1DBBeft\u0100;e\u2800\u373E\xF1\u092E;\u625Cight\u0100;e\u32AA\u374B\xF1\u105Aot;\u65ECinus;\u6A3Alus;\u6A39b;\u69CDime;\u6A3Bezium;\u63E2\u0180cht\u3772\u377D\u3781\u0100ry\u3777\u377B;\uC000\u{1D4C9};\u4446cy;\u445Brok;\u4167\u0100io\u378B\u378Ex\xF4\u1777head\u0100lr\u3797\u37A0eftarro\xF7\u084Fightarrow\xBB\u0F5D\u0900AHabcdfghlmoprstuw\u37D0\u37D3\u37D7\u37E4\u37F0\u37FC\u380E\u381C\u3823\u3834\u3851\u385D\u386B\u38A9\u38CC\u38D2\u38EA\u38F6r\xF2\u03EDar;\u6963\u0100cr\u37DC\u37E2ute\u803B\xFA\u40FA\xF2\u1150r\u01E3\u37EA\0\u37EDy;\u445Eve;\u416D\u0100iy\u37F5\u37FArc\u803B\xFB\u40FB;\u4443\u0180abh\u3803\u3806\u380Br\xF2\u13ADlac;\u4171a\xF2\u13C3\u0100ir\u3813\u3818sht;\u697E;\uC000\u{1D532}rave\u803B\xF9\u40F9\u0161\u3827\u3831r\u0100lr\u382C\u382E\xBB\u0957\xBB\u1083lk;\u6580\u0100ct\u3839\u384D\u026F\u383F\0\0\u384Arn\u0100;e\u3845\u3846\u631Cr\xBB\u3846op;\u630Fri;\u65F8\u0100al\u3856\u385Acr;\u416B\u80BB\xA8\u0349\u0100gp\u3862\u3866on;\u4173f;\uC000\u{1D566}\u0300adhlsu\u114B\u3878\u387D\u1372\u3891\u38A0own\xE1\u13B3arpoon\u0100lr\u3888\u388Cef\xF4\u382Digh\xF4\u382Fi\u0180;hl\u3899\u389A\u389C\u43C5\xBB\u13FAon\xBB\u389Aparrows;\u61C8\u0180cit\u38B0\u38C4\u38C8\u026F\u38B6\0\0\u38C1rn\u0100;e\u38BC\u38BD\u631Dr\xBB\u38BDop;\u630Eng;\u416Fri;\u65F9cr;\uC000\u{1D4CA}\u0180dir\u38D9\u38DD\u38E2ot;\u62F0lde;\u4169i\u0100;f\u3730\u38E8\xBB\u1813\u0100am\u38EF\u38F2r\xF2\u38A8l\u803B\xFC\u40FCangle;\u69A7\u0780ABDacdeflnoprsz\u391C\u391F\u3929\u392D\u39B5\u39B8\u39BD\u39DF\u39E4\u39E8\u39F3\u39F9\u39FD\u3A01\u3A20r\xF2\u03F7ar\u0100;v\u3926\u3927\u6AE8;\u6AE9as\xE8\u03E1\u0100nr\u3932\u3937grt;\u699C\u0380eknprst\u34E3\u3946\u394B\u3952\u395D\u3964\u3996app\xE1\u2415othin\xE7\u1E96\u0180hir\u34EB\u2EC8\u3959op\xF4\u2FB5\u0100;h\u13B7\u3962\xEF\u318D\u0100iu\u3969\u396Dgm\xE1\u33B3\u0100bp\u3972\u3984setneq\u0100;q\u397D\u3980\uC000\u228A\uFE00;\uC000\u2ACB\uFE00setneq\u0100;q\u398F\u3992\uC000\u228B\uFE00;\uC000\u2ACC\uFE00\u0100hr\u399B\u399Fet\xE1\u369Ciangle\u0100lr\u39AA\u39AFeft\xBB\u0925ight\xBB\u1051y;\u4432ash\xBB\u1036\u0180elr\u39C4\u39D2\u39D7\u0180;be\u2DEA\u39CB\u39CFar;\u62BBq;\u625Alip;\u62EE\u0100bt\u39DC\u1468a\xF2\u1469r;\uC000\u{1D533}tr\xE9\u39AEsu\u0100bp\u39EF\u39F1\xBB\u0D1C\xBB\u0D59pf;\uC000\u{1D567}ro\xF0\u0EFBtr\xE9\u39B4\u0100cu\u3A06\u3A0Br;\uC000\u{1D4CB}\u0100bp\u3A10\u3A18n\u0100Ee\u3980\u3A16\xBB\u397En\u0100Ee\u3992\u3A1E\xBB\u3990igzag;\u699A\u0380cefoprs\u3A36\u3A3B\u3A56\u3A5B\u3A54\u3A61\u3A6Airc;\u4175\u0100di\u3A40\u3A51\u0100bg\u3A45\u3A49ar;\u6A5Fe\u0100;q\u15FA\u3A4F;\u6259erp;\u6118r;\uC000\u{1D534}pf;\uC000\u{1D568}\u0100;e\u1479\u3A66at\xE8\u1479cr;\uC000\u{1D4CC}\u0AE3\u178E\u3A87\0\u3A8B\0\u3A90\u3A9B\0\0\u3A9D\u3AA8\u3AAB\u3AAF\0\0\u3AC3\u3ACE\0\u3AD8\u17DC\u17DFtr\xE9\u17D1r;\uC000\u{1D535}\u0100Aa\u3A94\u3A97r\xF2\u03C3r\xF2\u09F6;\u43BE\u0100Aa\u3AA1\u3AA4r\xF2\u03B8r\xF2\u09EBa\xF0\u2713is;\u62FB\u0180dpt\u17A4\u3AB5\u3ABE\u0100fl\u3ABA\u17A9;\uC000\u{1D569}im\xE5\u17B2\u0100Aa\u3AC7\u3ACAr\xF2\u03CEr\xF2\u0A01\u0100cq\u3AD2\u17B8r;\uC000\u{1D4CD}\u0100pt\u17D6\u3ADCr\xE9\u17D4\u0400acefiosu\u3AF0\u3AFD\u3B08\u3B0C\u3B11\u3B15\u3B1B\u3B21c\u0100uy\u3AF6\u3AFBte\u803B\xFD\u40FD;\u444F\u0100iy\u3B02\u3B06rc;\u4177;\u444Bn\u803B\xA5\u40A5r;\uC000\u{1D536}cy;\u4457pf;\uC000\u{1D56A}cr;\uC000\u{1D4CE}\u0100cm\u3B26\u3B29y;\u444El\u803B\xFF\u40FF\u0500acdefhiosw\u3B42\u3B48\u3B54\u3B58\u3B64\u3B69\u3B6D\u3B74\u3B7A\u3B80cute;\u417A\u0100ay\u3B4D\u3B52ron;\u417E;\u4437ot;\u417C\u0100et\u3B5D\u3B61tr\xE6\u155Fa;\u43B6r;\uC000\u{1D537}cy;\u4436grarr;\u61DDpf;\uC000\u{1D56B}cr;\uC000\u{1D4CF}\u0100jn\u3B85\u3B87;\u600Dj;\u600C'.split("").map(e=>e.charCodeAt(0)));var $_e=new Uint16Array("\u0200aglq \x1B\u026D\0\0p;\u4026os;\u4027t;\u403Et;\u403Cuot;\u4022".split("").map(e=>e.charCodeAt(0)));var l6,DUe=new Map([[0,65533],[128,8364],[130,8218],[131,402],[132,8222],[133,8230],[134,8224],[135,8225],[136,710],[137,8240],[138,352],[139,8249],[140,338],[142,381],[145,8216],[146,8217],[147,8220],[148,8221],[149,8226],[150,8211],[151,8212],[152,732],[153,8482],[154,353],[155,8250],[156,339],[158,382],[159,376]]),c6=(l6=String.fromCodePoint)!==null&&l6!==void 0?l6:function(e){let t="";return e>65535&&(e-=65536,t+=String.fromCharCode(e>>>10&1023|55296),e=56320|e&1023),t+=String.fromCharCode(e),t};function u6(e){var t;return e>=55296&&e<=57343||e>1114111?65533:(t=DUe.get(e))!==null&&t!==void 0?t:e}var zo;(function(e){e[e.NUM=35]="NUM",e[e.SEMI=59]="SEMI",e[e.EQUALS=61]="EQUALS",e[e.ZERO=48]="ZERO",e[e.NINE=57]="NINE",e[e.LOWER_A=97]="LOWER_A",e[e.LOWER_F=102]="LOWER_F",e[e.LOWER_X=120]="LOWER_X",e[e.LOWER_Z=122]="LOWER_Z",e[e.UPPER_A=65]="UPPER_A",e[e.UPPER_F=70]="UPPER_F",e[e.UPPER_Z=90]="UPPER_Z"})(zo||(zo={}));var NUe=32,dp;(function(e){e[e.VALUE_LENGTH=49152]="VALUE_LENGTH",e[e.BRANCH_LENGTH=16256]="BRANCH_LENGTH",e[e.JUMP_TABLE=127]="JUMP_TABLE"})(dp||(dp={}));function d6(e){return e>=zo.ZERO&&e<=zo.NINE}function FUe(e){return e>=zo.UPPER_A&&e<=zo.UPPER_F||e>=zo.LOWER_A&&e<=zo.LOWER_F}function OUe(e){return e>=zo.UPPER_A&&e<=zo.UPPER_Z||e>=zo.LOWER_A&&e<=zo.LOWER_Z||d6(e)}function UUe(e){return e===zo.EQUALS||OUe(e)}var Bo;(function(e){e[e.EntityStart=0]="EntityStart",e[e.NumericStart=1]="NumericStart",e[e.NumericDecimal=2]="NumericDecimal",e[e.NumericHex=3]="NumericHex",e[e.NamedEntity=4]="NamedEntity"})(Bo||(Bo={}));var jl;(function(e){e[e.Legacy=0]="Legacy",e[e.Strict=1]="Strict",e[e.Attribute=2]="Attribute"})(jl||(jl={}));var eM=class{constructor(t,n,o){this.decodeTree=t,this.emitCodePoint=n,this.errors=o,this.state=Bo.EntityStart,this.consumed=1,this.result=0,this.treeIndex=0,this.excess=1,this.decodeMode=jl.Strict}startEntity(t){this.decodeMode=t,this.state=Bo.EntityStart,this.result=0,this.treeIndex=0,this.excess=1,this.consumed=1}write(t,n){switch(this.state){case Bo.EntityStart:return t.charCodeAt(n)===zo.NUM?(this.state=Bo.NumericStart,this.consumed+=1,this.stateNumericStart(t,n+1)):(this.state=Bo.NamedEntity,this.stateNamedEntity(t,n));case Bo.NumericStart:return this.stateNumericStart(t,n);case Bo.NumericDecimal:return this.stateNumericDecimal(t,n);case Bo.NumericHex:return this.stateNumericHex(t,n);case Bo.NamedEntity:return this.stateNamedEntity(t,n)}}stateNumericStart(t,n){return n>=t.length?-1:(t.charCodeAt(n)|NUe)===zo.LOWER_X?(this.state=Bo.NumericHex,this.consumed+=1,this.stateNumericHex(t,n+1)):(this.state=Bo.NumericDecimal,this.stateNumericDecimal(t,n))}addToNumericResult(t,n,o,r){if(n!==o){let s=o-n;this.result=this.result*Math.pow(r,s)+parseInt(t.substr(n,s),r),this.consumed+=s}}stateNumericHex(t,n){let o=n;for(;n>14;for(;n>14,s!==0){if(i===zo.SEMI)return this.emitNamedEntityData(this.treeIndex,s,this.consumed+this.excess);this.decodeMode!==jl.Strict&&(this.result=this.treeIndex,this.consumed+=this.excess,this.excess=0)}}return-1}emitNotTerminatedNamedEntity(){var t;let{result:n,decodeTree:o}=this,r=(o[n]&dp.VALUE_LENGTH)>>14;return this.emitNamedEntityData(n,r,this.consumed),(t=this.errors)===null||t===void 0||t.missingSemicolonAfterCharacterReference(),this.consumed}emitNamedEntityData(t,n,o){let{decodeTree:r}=this;return this.emitCodePoint(n===1?r[t]&~dp.VALUE_LENGTH:r[t+1],o),n===3&&this.emitCodePoint(r[t+2],o),o}end(){var t;switch(this.state){case Bo.NamedEntity:return this.result!==0&&(this.decodeMode!==jl.Attribute||this.result===this.treeIndex)?this.emitNotTerminatedNamedEntity():0;case Bo.NumericDecimal:return this.emitNumericEntity(0,2);case Bo.NumericHex:return this.emitNumericEntity(0,3);case Bo.NumericStart:return(t=this.errors)===null||t===void 0||t.absenceOfDigitsInNumericCharacterReference(this.consumed),0;case Bo.EntityStart:return 0}}};function D_e(e){let t="",n=new eM(e,o=>t+=c6(o));return function(r,s){let i=0,a=0;for(;(a=r.indexOf("&",a))>=0;){t+=r.slice(i,a),n.startEntity(s);let c=n.write(r,a+1);if(c<0){i=a+n.end();break}i=a+c,a=c===0?i+1:i}let l=t+r.slice(i);return t="",l}}function qUe(e,t,n,o){let r=(t&dp.BRANCH_LENGTH)>>7,s=t&dp.JUMP_TABLE;if(r===0)return s!==0&&o===s?n:-1;if(s){let l=o-s;return l<0||l>=r?-1:e[n+l]-1}let i=n,a=i+r-1;for(;i<=a;){let l=i+a>>>1,c=e[l];if(co)a=l-1;else return e[l+r]}return-1}var HUe=D_e(M_e),mMt=D_e($_e);function pp(e,t=jl.Legacy){return HUe(e,t)}function tM(e){for(let t=1;te.codePointAt(t):(e,t)=>(e.charCodeAt(t)&64512)===55296?(e.charCodeAt(t)-55296)*1024+e.charCodeAt(t+1)-56320+65536:e.charCodeAt(t);function p6(e,t){return function(o){let r,s=0,i="";for(;r=e.exec(o);)s!==r.index&&(i+=o.substring(s,r.index)),i+=t.get(r[0].charCodeAt(0)),s=r.index+1;return i+o.substring(s)}}var N_e=p6(/[&<>'"]/g,zUe),F_e=p6(/["&\u00A0]/g,new Map([[34,"""],[38,"&"],[160," "]])),O_e=p6(/[&<>\u00A0]/g,new Map([[38,"&"],[60,"<"],[62,">"],[160," "]]));var U_e;(function(e){e[e.XML=0]="XML",e[e.HTML=1]="HTML"})(U_e||(U_e={}));var q_e;(function(e){e[e.UTF8=0]="UTF8",e[e.ASCII=1]="ASCII",e[e.Extensive=2]="Extensive",e[e.Attribute=3]="Attribute",e[e.Text=4]="Text"})(q_e||(q_e={}));function QUe(e){return Object.prototype.toString.call(e)}function nM(e){return QUe(e)==="[object String]"}var YUe=Object.prototype.hasOwnProperty;function WUe(e,t){return YUe.call(e,t)}function cy(e){return Array.prototype.slice.call(arguments,1).forEach(function(n){if(n){if(typeof n!="object")throw new TypeError(n+"must be object");Object.keys(n).forEach(function(o){e[o]=n[o]})}}),e}function g6(e,t,n){return[].concat(e.slice(0,t),n,e.slice(t+1))}function oM(e){return!(e>=55296&&e<=57343||e>=64976&&e<=65007||(e&65535)===65535||(e&65535)===65534||e>=0&&e<=8||e===11||e>=14&&e<=31||e>=127&&e<=159||e>1114111)}function mS(e){if(e>65535){e-=65536;let t=55296+(e>>10),n=56320+(e&1023);return String.fromCharCode(t,n)}return String.fromCharCode(e)}var z_e=/\\([!"#$%&'()*+,\-./:;<=>?@[\\\]^_`{|}~])/g,KUe=/&([a-z#][a-z0-9]{1,31});/gi,JUe=new RegExp(z_e.source+"|"+KUe.source,"gi"),ZUe=/^#((?:x[a-f0-9]{1,8}|[0-9]{1,8}))$/i;function XUe(e,t){if(t.charCodeAt(0)===35&&ZUe.test(t)){let o=t[1].toLowerCase()==="x"?parseInt(t.slice(2),16):parseInt(t.slice(1),10);return oM(o)?mS(o):e}let n=pp(e);return n!==e?n:e}function eqe(e){return e.indexOf("\\")<0?e:e.replace(z_e,"$1")}function bu(e){return e.indexOf("\\")<0&&e.indexOf("&")<0?e:e.replace(JUe,function(t,n,o){return n||XUe(t,o)})}var tqe=/[&<>"]/,nqe=/[&<>"]/g,oqe={"&":"&","<":"<",">":">",'"':"""};function rqe(e){return oqe[e]}function _u(e){return tqe.test(e)?e.replace(nqe,rqe):e}var sqe=/[.?*+^$[\]\\(){}|-]/g;function iqe(e){return e.replace(sqe,"\\$&")}function $t(e){switch(e){case 9:case 32:return!0}return!1}function qg(e){if(e>=8192&&e<=8202)return!0;switch(e){case 9:case 10:case 11:case 12:case 13:case 32:case 160:case 5760:case 8239:case 8287:case 12288:return!0}return!1}function Hg(e){return ly.test(e)||ZR.test(e)}function Bg(e){switch(e){case 33:case 34:case 35:case 36:case 37:case 38:case 39:case 40:case 41:case 42:case 43:case 44:case 45:case 46:case 47:case 58:case 59:case 60:case 61:case 62:case 63:case 64:case 91:case 92:case 93:case 94:case 95:case 96:case 123:case 124:case 125:case 126:return!0;default:return!1}}function zg(e){return e=e.trim().replace(/\s+/g," "),"\u1E9E".toLowerCase()==="\u1E7E"&&(e=e.replace(/ẞ/g,"\xDF")),e.toLowerCase().toUpperCase()}var aqe={mdurl:WR,ucmicro:a6};var y6={};Dn(y6,{parseLinkDestination:()=>b6,parseLinkLabel:()=>h6,parseLinkTitle:()=>_6});function h6(e,t,n){let o,r,s,i,a=e.posMax,l=e.pos;for(e.pos=t+1,o=1;e.pos32))return s;if(o===41){if(i===0)break;i--}r++}return t===r||i!==0||(s.str=bu(e.slice(t,r)),s.pos=r,s.ok=!0),s}function _6(e,t,n,o){let r,s=t,i={ok:!1,can_continue:!1,pos:0,str:"",marker:0};if(o)i.str=o.str,i.marker=o.marker;else{if(s>=n)return i;let a=e.charCodeAt(s);if(a!==34&&a!==39&&a!==40)return i;t++,s++,a===40&&(a=41),i.marker=a}for(;s"+_u(s.content)+""};Ql.code_block=function(e,t,n,o,r){let s=e[t];return""+_u(e[t].content)+` `};Ql.fence=function(e,t,n,o,r){let s=e[t],i=s.info?bu(s.info).trim():"",a="",l="";if(i){let u=i.split(/(\s+)/g);a=u[0],l=u.slice(2).join("")}let c;if(n.highlight?c=n.highlight(s.content,a,l)||_u(s.content):c=_u(s.content),c.indexOf("${c} `}return`
    ${c}
    `};Ql.image=function(e,t,n,o,r){let s=e[t];return s.attrs[s.attrIndex("alt")][1]=r.renderInlineAsText(s.children,n,o),r.renderToken(e,t,n)};Ql.hardbreak=function(e,t,n){return n.xhtmlOut?`
    `:`
    `};Ql.softbreak=function(e,t,n){return n.breaks?n.xhtmlOut?`
    `:`
    `:` `};Ql.text=function(e,t){return _u(e[t].content)};Ql.html_block=function(e,t){return e[t].content};Ql.html_inline=function(e,t){return e[t].content};function uy(){this.rules=cy({},Ql)}uy.prototype.renderAttrs=function(t){let n,o,r;if(!t.attrs)return"";for(r="",n=0,o=t.attrs.length;n `:">",s};uy.prototype.renderInline=function(e,t,n){let o="",r=this.rules;for(let s=0,i=e.length;s=0&&(o=this.attrs[n][1]),o};dy.prototype.attrJoin=function(t,n){let o=this.attrIndex(t);o<0?this.attrPush([t,n]):this.attrs[o][1]=this.attrs[o][1]+" "+n};var yu=dy;function V_e(e,t,n){this.src=e,this.env=n,this.tokens=[],this.inlineMode=!1,this.md=t}V_e.prototype.Token=yu;var j_e=V_e;var lqe=/\r\n?|\n/g,cqe=/\0/g;function v6(e){let t;t=e.src.replace(lqe,` `),t=t.replace(cqe,"\uFFFD"),e.src=t}function x6(e){let t;e.inlineMode?(t=new e.Token("inline","",0),t.content=e.src,t.map=[0,1],t.children=[],e.tokens.push(t)):e.md.block.parse(e.src,e.md,e.env,e.tokens)}function T6(e){let t=e.tokens;for(let n=0,o=t.length;n\s]/i.test(e)}function dqe(e){return/^<\/a\s*>/i.test(e)}function w6(e){let t=e.tokens;if(e.md.options.linkify)for(let n=0,o=t.length;n=0;i--){let a=r[i];if(a.type==="link_close"){for(i--;r[i].level!==a.level&&r[i].type!=="link_open";)i--;continue}if(a.type==="html_inline"&&(uqe(a.content)&&s>0&&s--,dqe(a.content)&&s++),!(s>0)&&a.type==="text"&&e.md.linkify.test(a.content)){let l=a.content,c=e.md.linkify.match(l),u=[],p=a.level,m=0;c.length>0&&c[0].index===0&&i>0&&r[i-1].type==="text_special"&&(c=c.slice(1));for(let g=0;gm){let E=new e.Token("text","",0);E.content=l.slice(m,v),E.level=p,u.push(E)}let y=new e.Token("link_open","a",1);y.attrs=[["href",_]],y.level=p++,y.markup="linkify",y.info="auto",u.push(y);let T=new e.Token("text","",0);T.content=h,T.level=p,u.push(T);let I=new e.Token("link_close","a",-1);I.level=--p,I.markup="linkify",I.info="auto",u.push(I),m=c[g].lastIndex}if(m=0;n--){let o=e[n];o.type==="text"&&!t&&(o.content=o.content.replace(mqe,fqe)),o.type==="link_open"&&o.info==="auto"&&t--,o.type==="link_close"&&o.info==="auto"&&t++}}function bqe(e){let t=0;for(let n=e.length-1;n>=0;n--){let o=e[n];o.type==="text"&&!t&&Q_e.test(o.content)&&(o.content=o.content.replace(/\+-/g,"\xB1").replace(/\.{2,}/g,"\u2026").replace(/([?!])…/g,"$1..").replace(/([?!]){4,}/g,"$1$1$1").replace(/,{2,}/g,",").replace(/(^|[^-])---(?=[^-]|$)/mg,"$1\u2014").replace(/(^|\s)--(?=\s|$)/mg,"$1\u2013").replace(/(^|[^-\s])--(?=[^-\s]|$)/mg,"$1\u2013")),o.type==="link_open"&&o.info==="auto"&&t--,o.type==="link_close"&&o.info==="auto"&&t++}}function S6(e){let t;if(e.md.options.typographer)for(t=e.tokens.length-1;t>=0;t--)e.tokens[t].type==="inline"&&(pqe.test(e.tokens[t].content)&&hqe(e.tokens[t].children),Q_e.test(e.tokens[t].content)&&bqe(e.tokens[t].children))}var _qe=/['"]/,Y_e=/['"]/g,W_e="\u2019";function rM(e,t,n){return e.slice(0,t)+n+e.slice(t+1)}function yqe(e,t){let n,o=[];for(let r=0;r=0&&!(o[n].level<=i);n--);if(o.length=n+1,s.type!=="text")continue;let a=s.content,l=0,c=a.length;e:for(;l=0)f=a.charCodeAt(u.index-1);else for(n=r-1;n>=0&&!(e[n].type==="softbreak"||e[n].type==="hardbreak");n--)if(e[n].content){f=e[n].content.charCodeAt(e[n].content.length-1);break}let _=32;if(l=48&&f<=57&&(m=p=!1),p&&m&&(p=h,m=v),!p&&!m){g&&(s.content=rM(s.content,u.index,W_e));continue}if(m)for(n=o.length-1;n>=0;n--){let I=o[n];if(o[n].level=0;t--)e.tokens[t].type!=="inline"||!_qe.test(e.tokens[t].content)||yqe(e.tokens[t].children,e)}function E6(e){let t,n,o=e.tokens,r=o.length;for(let s=0;s0&&this.level++,this.tokens.push(o),o};Yl.prototype.isEmpty=function(t){return this.bMarks[t]+this.tShift[t]>=this.eMarks[t]};Yl.prototype.skipEmptyLines=function(t){for(let n=this.lineMax;tn;)if(!$t(this.src.charCodeAt(--t)))return t+1;return t};Yl.prototype.skipChars=function(t,n){for(let o=this.src.length;to;)if(n!==this.src.charCodeAt(--t))return t+1;return t};Yl.prototype.getLines=function(t,n,o,r){if(t>=n)return"";let s=new Array(n-t);for(let i=0,a=t;ao?s[i]=new Array(l-o+1).join(" ")+this.src.slice(u,p):s[i]=this.src.slice(u,p)}return s.join("")};Yl.prototype.Token=yu;var J_e=Yl;var vqe=65536;function I6(e,t){let n=e.bMarks[t]+e.tShift[t],o=e.eMarks[t];return e.src.slice(n,o)}function Z_e(e){let t=[],n=e.length,o=0,r=e.charCodeAt(o),s=!1,i=0,a="";for(;on)return!1;let r=t+1;if(e.sCount[r]=4)return!1;let s=e.bMarks[r]+e.tShift[r];if(s>=e.eMarks[r])return!1;let i=e.src.charCodeAt(s++);if(i!==124&&i!==45&&i!==58||s>=e.eMarks[r])return!1;let a=e.src.charCodeAt(s++);if(a!==124&&a!==45&&a!==58&&!$t(a)||i===45&&$t(a))return!1;for(;s=4)return!1;c=Z_e(l),c.length&&c[0]===""&&c.shift(),c.length&&c[c.length-1]===""&&c.pop();let p=c.length;if(p===0||p!==u.length)return!1;if(o)return!0;let m=e.parentType;e.parentType="table";let g=e.md.block.ruler.getRules("blockquote"),f=e.push("table_open","table",1),_=[t,0];f.map=_;let h=e.push("thead_open","thead",1);h.map=[t,t+1];let v=e.push("tr_open","tr",1);v.map=[t,t+1];for(let I=0;I=4||(c=Z_e(l),c.length&&c[0]===""&&c.shift(),c.length&&c[c.length-1]===""&&c.pop(),T+=p-c.length,T>vqe))break;if(r===t+2){let q=e.push("tbody_open","tbody",1);q.map=y=[t+2,0]}let E=e.push("tr_open","tr",1);E.map=[r,r+1];for(let q=0;q=4){o++,r=o;continue}break}e.line=r;let s=e.push("code_block","code",0);return s.content=e.getLines(t,r,4+e.blkIndent,!1)+` `,s.map=[t,e.line],!0}function R6(e,t,n,o){let r=e.bMarks[t]+e.tShift[t],s=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4||r+3>s)return!1;let i=e.src.charCodeAt(r);if(i!==126&&i!==96)return!1;let a=r;r=e.skipChars(r,i);let l=r-a;if(l<3)return!1;let c=e.src.slice(a,r),u=e.src.slice(r,s);if(i===96&&u.indexOf(String.fromCharCode(i))>=0)return!1;if(o)return!0;let p=t,m=!1;for(;p++,!(p>=n||(r=a=e.bMarks[p]+e.tShift[p],s=e.eMarks[p],r=4)&&(r=e.skipChars(r,i),!(r-a=4||e.src.charCodeAt(r)!==62)return!1;if(o)return!0;let a=[],l=[],c=[],u=[],p=e.md.block.ruler.getRules("blockquote"),m=e.parentType;e.parentType="blockquote";let g=!1,f;for(f=t;f=s)break;if(e.src.charCodeAt(r++)===62&&!T){let E=e.sCount[f]+1,q,D;e.src.charCodeAt(r)===32?(r++,E++,D=!1,q=!0):e.src.charCodeAt(r)===9?(q=!0,(e.bsCount[f]+E)%4===3?(r++,E++,D=!1):D=!0):q=!1;let le=E;for(a.push(e.bMarks[f]),e.bMarks[f]=r;r=s,l.push(e.bsCount[f]),e.bsCount[f]=e.sCount[f]+1+(q?1:0),c.push(e.sCount[f]),e.sCount[f]=le-E,u.push(e.tShift[f]),e.tShift[f]=r-e.bMarks[f];continue}if(g)break;let I=!1;for(let E=0,q=p.length;E";let v=[t,0];h.map=v,e.md.block.tokenize(e,t,f);let y=e.push("blockquote_close","blockquote",-1);y.markup=">",e.lineMax=i,e.parentType=m,v[1]=e.line;for(let T=0;T=4)return!1;let s=e.bMarks[t]+e.tShift[t],i=e.src.charCodeAt(s++);if(i!==42&&i!==45&&i!==95)return!1;let a=1;for(;s=o)return-1;let s=e.src.charCodeAt(r++);if(s<48||s>57)return-1;for(;;){if(r>=o)return-1;if(s=e.src.charCodeAt(r++),s>=48&&s<=57){if(r-n>=10)return-1;continue}if(s===41||s===46)break;return-1}return r=4||e.listIndent>=0&&e.sCount[l]-e.listIndent>=4&&e.sCount[l]=e.blkIndent&&(u=!0);let p,m,g;if((g=eye(e,l))>=0){if(p=!0,i=e.bMarks[l]+e.tShift[l],m=Number(e.src.slice(i,g-1)),u&&m!==1)return!1}else if((g=X_e(e,l))>=0)p=!1;else return!1;if(u&&e.skipSpaces(g)>=e.eMarks[l])return!1;if(o)return!0;let f=e.src.charCodeAt(g-1),_=e.tokens.length;p?(a=e.push("ordered_list_open","ol",1),m!==1&&(a.attrs=[["start",m]])):a=e.push("bullet_list_open","ul",1);let h=[l,0];a.map=h,a.markup=String.fromCharCode(f);let v=!1,y=e.md.block.ruler.getRules("list"),T=e.parentType;for(e.parentType="list";l=r?D=1:D=E-I,D>4&&(D=1);let le=I+D;a=e.push("list_item_open","li",1),a.markup=String.fromCharCode(f);let we=[l,0];a.map=we,p&&(a.info=e.src.slice(i,g-1));let K=e.tight,Le=e.tShift[l],Ke=e.sCount[l],Pt=e.listIndent;if(e.listIndent=e.blkIndent,e.blkIndent=le,e.tight=!0,e.tShift[l]=q-e.bMarks[l],e.sCount[l]=E,q>=r&&e.isEmpty(l+1)?e.line=Math.min(e.line+2,n):e.md.block.tokenize(e,l,n,!0),(!e.tight||v)&&(c=!1),v=e.line-l>1&&e.isEmpty(e.line-1),e.blkIndent=e.listIndent,e.listIndent=Pt,e.tShift[l]=Le,e.sCount[l]=Ke,e.tight=K,a=e.push("list_item_close","li",-1),a.markup=String.fromCharCode(f),l=e.line,we[1]=l,l>=n||e.sCount[l]=4)break;let nn=!1;for(let Ut=0,sn=y.length;Ut=4||e.src.charCodeAt(r)!==91)return!1;function a(y){let T=e.lineMax;if(y>=T||e.isEmpty(y))return null;let I=!1;if(e.sCount[y]-e.blkIndent>3&&(I=!0),e.sCount[y]<0&&(I=!0),!I){let D=e.md.block.ruler.getRules("reference"),le=e.parentType;e.parentType="reference";let we=!1;for(let K=0,Le=D.length;K"u"&&(e.env.references={}),typeof e.env.references[v]>"u"&&(e.env.references[v]={title:h,href:p}),e.line=i),!0):!1}var tye=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"];var Tqe="[a-zA-Z_:][a-zA-Z0-9:._-]*",wqe="[^\"'=<>`\\x00-\\x20]+",Sqe="'[^']*'",Cqe='"[^"]*"',Eqe="(?:"+wqe+"|"+Sqe+"|"+Cqe+")",Aqe="(?:\\s+"+Tqe+"(?:\\s*=\\s*"+Eqe+")?)",nye="<[A-Za-z][A-Za-z0-9\\-]*"+Aqe+"*\\s*\\/?>",oye="<\\/[A-Za-z][A-Za-z0-9\\-]*\\s*>",kqe="",Iqe="<[?][\\s\\S]*?[?]>",Pqe="]*>",Lqe="",rye=new RegExp("^(?:"+nye+"|"+oye+"|"+kqe+"|"+Iqe+"|"+Pqe+"|"+Lqe+")"),sye=new RegExp("^(?:"+nye+"|"+oye+")");var py=[[/^<(script|pre|style|textarea)(?=(\s|>|$))/i,/<\/(script|pre|style|textarea)>/i,!0],[/^/,!0],[/^<\?/,/\?>/,!0],[/^/,!0],[/^/,!0],[new RegExp("^|$))","i"),/^$/,!0],[new RegExp(sye.source+"\\s*$"),/^$/,!1]];function F6(e,t,n,o){let r=e.bMarks[t]+e.tShift[t],s=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4||!e.md.options.html||e.src.charCodeAt(r)!==60)return!1;let i=e.src.slice(r,s),a=0;for(;a=4)return!1;let i=e.src.charCodeAt(r);if(i!==35||r>=s)return!1;let a=1;for(i=e.src.charCodeAt(++r);i===35&&r6||rr&&$t(e.src.charCodeAt(l-1))&&(s=l),e.line=t+1;let c=e.push("heading_open","h"+String(a),1);c.markup="########".slice(0,a),c.map=[t,e.line];let u=e.push("inline","",0);u.content=e.src.slice(r,s).trim(),u.map=[t,e.line],u.children=[];let p=e.push("heading_close","h"+String(a),-1);return p.markup="########".slice(0,a),!0}function U6(e,t,n){let o=e.md.block.ruler.getRules("paragraph");if(e.sCount[t]-e.blkIndent>=4)return!1;let r=e.parentType;e.parentType="paragraph";let s=0,i,a=t+1;for(;a3)continue;if(e.sCount[a]>=e.blkIndent){let g=e.bMarks[a]+e.tShift[a],f=e.eMarks[a];if(g=f))){s=i===61?1:2;break}}if(e.sCount[a]<0)continue;let m=!1;for(let g=0,f=o.length;g3||e.sCount[s]<0)continue;let c=!1;for(let u=0,p=o.length;u=n||e.sCount[i]=s){e.line=n;break}let l=e.line,c=!1;for(let u=0;u=e.line)throw new Error("block rule didn't increment state.line");break}if(!c)throw new Error("none of the block rules matched");e.tight=!a,e.isEmpty(e.line-1)&&(a=!0),i=e.line,i0&&(this.level++,this._prev_delimiters.push(this.delimiters),this.delimiters=[],r={delimiters:this.delimiters}),this.pendingLevel=this.level,this.tokens.push(o),this.tokens_meta.push(r),o};gS.prototype.scanDelims=function(e,t){let n=this.posMax,o=this.src.charCodeAt(e),r=e>0?this.src.charCodeAt(e-1):32,s=e;for(;s0)return!1;let n=e.pos,o=e.posMax;if(n+3>o||e.src.charCodeAt(n)!==58||e.src.charCodeAt(n+1)!==47||e.src.charCodeAt(n+2)!==47)return!1;let r=e.pending.match(Mqe);if(!r)return!1;let s=r[1],i=e.md.linkify.matchAtStart(e.src.slice(n-s.length));if(!i)return!1;let a=i.url;if(a.length<=s.length)return!1;a=a.replace(/\*+$/,"");let l=e.md.normalizeLink(a);if(!e.md.validateLink(l))return!1;if(!t){e.pending=e.pending.slice(0,-s.length);let c=e.push("link_open","a",1);c.attrs=[["href",l]],c.markup="linkify",c.info="auto";let u=e.push("text","",0);u.content=e.md.normalizeLinkText(a);let p=e.push("link_close","a",-1);p.markup="linkify",p.info="auto"}return e.pos+=a.length-s.length,!0}function z6(e,t){let n=e.pos;if(e.src.charCodeAt(n)!==10)return!1;let o=e.pending.length-1,r=e.posMax;if(!t)if(o>=0&&e.pending.charCodeAt(o)===32)if(o>=1&&e.pending.charCodeAt(o-1)===32){let s=o-1;for(;s>=1&&e.pending.charCodeAt(s-1)===32;)s--;e.pending=e.pending.slice(0,s),e.push("hardbreak","br",0)}else e.pending=e.pending.slice(0,-1),e.push("softbreak","br",0);else e.push("softbreak","br",0);for(n++;n?@[]^_`{|}~-".split("").forEach(function(e){G6[e.charCodeAt(0)]=1});function V6(e,t){let n=e.pos,o=e.posMax;if(e.src.charCodeAt(n)!==92||(n++,n>=o))return!1;let r=e.src.charCodeAt(n);if(r===10){for(t||e.push("hardbreak","br",0),n++;n=55296&&r<=56319&&n+1=56320&&a<=57343&&(s+=e.src[n+1],n++)}let i="\\"+s;if(!t){let a=e.push("text_special","",0);r<256&&G6[r]!==0?a.content=s:a.content=i,a.markup=i,a.info="escape"}return e.pos=n+1,!0}function j6(e,t){let n=e.pos;if(e.src.charCodeAt(n)!==96)return!1;let r=n;n++;let s=e.posMax;for(;n=0;o--){let r=t[o];if(r.marker!==95&&r.marker!==42||r.end===-1)continue;let s=t[r.end],i=o>0&&t[o-1].end===r.end+1&&t[o-1].marker===r.marker&&t[o-1].token===r.token-1&&t[r.end+1].token===s.token+1,a=String.fromCharCode(r.marker),l=e.tokens[r.token];l.type=i?"strong_open":"em_open",l.tag=i?"strong":"em",l.nesting=1,l.markup=i?a+a:a,l.content="";let c=e.tokens[s.token];c.type=i?"strong_close":"em_close",c.tag=i?"strong":"em",c.nesting=-1,c.markup=i?a+a:a,c.content="",i&&(e.tokens[t[o-1].token].content="",e.tokens[t[r.end+1].token].content="",o--)}}function Fqe(e){let t=e.tokens_meta,n=e.tokens_meta.length;cye(e,e.delimiters);for(let o=0;o=p)return!1;if(l=f,r=e.md.helpers.parseLinkDestination(e.src,f,e.posMax),r.ok){for(i=e.md.normalizeLink(r.str),e.md.validateLink(i)?f=r.pos:i="",l=f;f=p||e.src.charCodeAt(f)!==41)&&(c=!0),f++}if(c){if(typeof e.env.references>"u")return!1;if(f=0?o=e.src.slice(l,f++):f=g+1):f=g+1,o||(o=e.src.slice(m,g)),s=e.env.references[zg(o)],!s)return e.pos=u,!1;i=s.href,a=s.title}if(!t){e.pos=m,e.posMax=g;let _=e.push("link_open","a",1),h=[["href",i]];_.attrs=h,a&&h.push(["title",a]),e.linkLevel++,e.md.inline.tokenize(e),e.linkLevel--,e.push("link_close","a",-1)}return e.pos=f,e.posMax=p,!0}function K6(e,t){let n,o,r,s,i,a,l,c,u="",p=e.pos,m=e.posMax;if(e.src.charCodeAt(e.pos)!==33||e.src.charCodeAt(e.pos+1)!==91)return!1;let g=e.pos+2,f=e.md.helpers.parseLinkLabel(e,e.pos+1,!1);if(f<0)return!1;if(s=f+1,s=m)return!1;for(c=s,a=e.md.helpers.parseLinkDestination(e.src,s,e.posMax),a.ok&&(u=e.md.normalizeLink(a.str),e.md.validateLink(u)?s=a.pos:u=""),c=s;s=m||e.src.charCodeAt(s)!==41)return e.pos=p,!1;s++}else{if(typeof e.env.references>"u")return!1;if(s=0?r=e.src.slice(c,s++):s=f+1):s=f+1,r||(r=e.src.slice(g,f)),i=e.env.references[zg(r)],!i)return e.pos=p,!1;u=i.href,l=i.title}if(!t){o=e.src.slice(g,f);let _=[];e.md.inline.parse(o,e.md,e.env,_);let h=e.push("image","img",0),v=[["src",u],["alt",""]];h.attrs=v,h.children=_,h.content=o,l&&v.push(["title",l])}return e.pos=s,e.posMax=m,!0}var Oqe=/^([a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*)$/,Uqe=/^([a-zA-Z][a-zA-Z0-9+.-]{1,31}):([^<>\x00-\x20]*)$/;function J6(e,t){let n=e.pos;if(e.src.charCodeAt(n)!==60)return!1;let o=e.pos,r=e.posMax;for(;;){if(++n>=r)return!1;let i=e.src.charCodeAt(n);if(i===60)return!1;if(i===62)break}let s=e.src.slice(o+1,n);if(Uqe.test(s)){let i=e.md.normalizeLink(s);if(!e.md.validateLink(i))return!1;if(!t){let a=e.push("link_open","a",1);a.attrs=[["href",i]],a.markup="autolink",a.info="auto";let l=e.push("text","",0);l.content=e.md.normalizeLinkText(s);let c=e.push("link_close","a",-1);c.markup="autolink",c.info="auto"}return e.pos+=s.length+2,!0}if(Oqe.test(s)){let i=e.md.normalizeLink("mailto:"+s);if(!e.md.validateLink(i))return!1;if(!t){let a=e.push("link_open","a",1);a.attrs=[["href",i]],a.markup="autolink",a.info="auto";let l=e.push("text","",0);l.content=e.md.normalizeLinkText(s);let c=e.push("link_close","a",-1);c.markup="autolink",c.info="auto"}return e.pos+=s.length+2,!0}return!1}function qqe(e){return/^\s]/i.test(e)}function Hqe(e){return/^<\/a\s*>/i.test(e)}function Bqe(e){let t=e|32;return t>=97&&t<=122}function Z6(e,t){if(!e.md.options.html)return!1;let n=e.posMax,o=e.pos;if(e.src.charCodeAt(o)!==60||o+2>=n)return!1;let r=e.src.charCodeAt(o+1);if(r!==33&&r!==63&&r!==47&&!Bqe(r))return!1;let s=e.src.slice(o).match(rye);if(!s)return!1;if(!t){let i=e.push("html_inline","",0);i.content=s[0],qqe(i.content)&&e.linkLevel++,Hqe(i.content)&&e.linkLevel--}return e.pos+=s[0].length,!0}var zqe=/^&#((?:x[a-f0-9]{1,6}|[0-9]{1,7}));/i,Gqe=/^&([a-z][a-z0-9]{1,31});/i;function X6(e,t){let n=e.pos,o=e.posMax;if(e.src.charCodeAt(n)!==38||n+1>=o)return!1;if(e.src.charCodeAt(n+1)===35){let s=e.src.slice(n).match(zqe);if(s){if(!t){let i=s[1][0].toLowerCase()==="x"?parseInt(s[1].slice(1),16):parseInt(s[1],10),a=e.push("text_special","",0);a.content=oM(i)?mS(i):mS(65533),a.markup=s[0],a.info="entity"}return e.pos+=s[0].length,!0}}else{let s=e.src.slice(n).match(Gqe);if(s){let i=pp(s[0]);if(i!==s[0]){if(!t){let a=e.push("text_special","",0);a.content=i,a.markup=s[0],a.info="entity"}return e.pos+=s[0].length,!0}}}return!1}function uye(e){let t={},n=e.length;if(!n)return;let o=0,r=-2,s=[];for(let i=0;il;c-=s[c]+1){let p=e[c];if(p.marker===a.marker&&p.open&&p.end<0){let m=!1;if((p.close||a.open)&&(p.length+a.length)%3===0&&(p.length%3!==0||a.length%3!==0)&&(m=!0),!m){let g=c>0&&!e[c-1].open?s[c-1]+1:0;s[i]=i-c+g,s[c]=g,a.open=!1,p.end=i,p.close=!1,u=-1,r=-2;break}}}u!==-1&&(t[a.marker][(a.open?3:0)+(a.length||0)%3]=u)}}function ez(e){let t=e.tokens_meta,n=e.tokens_meta.length;uye(e.delimiters);for(let o=0;o0&&o++,r[t].type==="text"&&t+1=e.pos)throw new Error("inline rule didn't increment state.pos");break}}else e.pos=e.posMax;i||e.pos++,s[t]=e.pos};fS.prototype.tokenize=function(e){let t=this.ruler.getRules(""),n=t.length,o=e.posMax,r=e.md.options.maxNesting;for(;e.pos=e.pos)throw new Error("inline rule didn't increment state.pos");break}}if(i){if(e.pos>=o)break;continue}e.pending+=e.src[e.pos++]}e.pending&&e.pushPending()};fS.prototype.parse=function(e,t,n,o){let r=new this.State(e,t,n,o);this.tokenize(r);let s=this.ruler2.getRules(""),i=s.length;for(let a=0;a|$))",t.tpl_email_fuzzy="(^|"+n+'|"|\\(|'+t.src_ZCc+")("+t.src_email_name+"@"+t.tpl_host_fuzzy_strict+")",t.tpl_link_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`|\uFF5C]|"+t.src_ZPCc+"))((?![$+<=>^`|\uFF5C])"+t.tpl_host_port_fuzzy_strict+t.src_path+")",t.tpl_link_no_ip_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`|\uFF5C]|"+t.src_ZPCc+"))((?![$+<=>^`|\uFF5C])"+t.tpl_host_port_no_ip_fuzzy_strict+t.src_path+")",t}function rz(e){return Array.prototype.slice.call(arguments,1).forEach(function(n){n&&Object.keys(n).forEach(function(o){e[o]=n[o]})}),e}function lM(e){return Object.prototype.toString.call(e)}function Vqe(e){return lM(e)==="[object String]"}function jqe(e){return lM(e)==="[object Object]"}function Qqe(e){return lM(e)==="[object RegExp]"}function mye(e){return lM(e)==="[object Function]"}function Yqe(e){return e.replace(/[.?*+^$[\]\\(){}|-]/g,"\\$&")}var fye={fuzzyLink:!0,fuzzyEmail:!0,fuzzyIP:!1};function Wqe(e){return Object.keys(e||{}).reduce(function(t,n){return t||fye.hasOwnProperty(n)},!1)}var Kqe={"http:":{validate:function(e,t,n){let o=e.slice(t);return n.re.http||(n.re.http=new RegExp("^\\/\\/"+n.re.src_auth+n.re.src_host_port_strict+n.re.src_path,"i")),n.re.http.test(o)?o.match(n.re.http)[0].length:0}},"https:":"http:","ftp:":"http:","//":{validate:function(e,t,n){let o=e.slice(t);return n.re.no_http||(n.re.no_http=new RegExp("^"+n.re.src_auth+"(?:localhost|(?:(?:"+n.re.src_domain+")\\.)+"+n.re.src_domain_root+")"+n.re.src_port+n.re.src_host_terminator+n.re.src_path,"i")),n.re.no_http.test(o)?t>=3&&e[t-3]===":"||t>=3&&e[t-3]==="/"?0:o.match(n.re.no_http)[0].length:0}},"mailto:":{validate:function(e,t,n){let o=e.slice(t);return n.re.mailto||(n.re.mailto=new RegExp("^"+n.re.src_email_name+"@"+n.re.src_host_strict,"i")),n.re.mailto.test(o)?o.match(n.re.mailto)[0].length:0}}},Jqe="a[cdefgilmnoqrstuwxz]|b[abdefghijmnorstvwyz]|c[acdfghiklmnoruvwxyz]|d[ejkmoz]|e[cegrstu]|f[ijkmor]|g[abdefghilmnpqrstuwy]|h[kmnrtu]|i[delmnoqrst]|j[emop]|k[eghimnprwyz]|l[abcikrstuvy]|m[acdeghklmnopqrstuvwxyz]|n[acefgilopruz]|om|p[aefghklmnrstwy]|qa|r[eosuw]|s[abcdeghijklmnortuvxyz]|t[cdfghjklmnortvwz]|u[agksyz]|v[aceginu]|w[fs]|y[et]|z[amw]",Zqe="biz|com|edu|gov|net|org|pro|web|xxx|aero|asia|coop|info|museum|name|shop|\u0440\u0444".split("|");function Xqe(e){return function(t,n){let o=t.slice(n);return e.test(o)?o.match(e)[0].length:0}}function gye(){return function(e,t){t.normalize(e)}}function aM(e){let t=e.re=pye(e.__opts__),n=e.__tlds__.slice();e.onCompile(),e.__tlds_replaced__||n.push(Jqe),n.push(t.src_xn),t.src_tlds=n.join("|");function o(a){return a.replace("%TLDS%",t.src_tlds)}t.email_fuzzy=RegExp(o(t.tpl_email_fuzzy),"i"),t.email_fuzzy_global=RegExp(o(t.tpl_email_fuzzy),"ig"),t.link_fuzzy=RegExp(o(t.tpl_link_fuzzy),"i"),t.link_fuzzy_global=RegExp(o(t.tpl_link_fuzzy),"ig"),t.link_no_ip_fuzzy=RegExp(o(t.tpl_link_no_ip_fuzzy),"i"),t.link_no_ip_fuzzy_global=RegExp(o(t.tpl_link_no_ip_fuzzy),"ig"),t.host_fuzzy_test=RegExp(o(t.tpl_host_fuzzy_test),"i");let r=[];e.__compiled__={};function s(a,l){throw new Error('(LinkifyIt) Invalid schema "'+a+'": '+l)}Object.keys(e.__schemas__).forEach(function(a){let l=e.__schemas__[a];if(l===null)return;let c={validate:null,link:null};if(e.__compiled__[a]=c,jqe(l)){Qqe(l.validate)?c.validate=Xqe(l.validate):mye(l.validate)?c.validate=l.validate:s(a,l),mye(l.normalize)?c.normalize=l.normalize:l.normalize?s(a,l):c.normalize=gye();return}if(Vqe(l)){r.push(a);return}s(a,l)}),r.forEach(function(a){e.__compiled__[e.__schemas__[a]]&&(e.__compiled__[a].validate=e.__compiled__[e.__schemas__[a]].validate,e.__compiled__[a].normalize=e.__compiled__[e.__schemas__[a]].normalize)}),e.__compiled__[""]={validate:null,normalize:gye()};let i=Object.keys(e.__compiled__).filter(function(a){return a.length>0&&e.__compiled__[a]}).map(Yqe).join("|");e.re.schema_test=RegExp("(^|(?!_)(?:[><\uFF5C]|"+t.src_ZPCc+"))("+i+")","i"),e.re.schema_search=RegExp("(^|(?!_)(?:[><\uFF5C]|"+t.src_ZPCc+"))("+i+")","ig"),e.re.schema_at_start=RegExp("^"+e.re.schema_search.source,"i"),e.re.pretest=RegExp("("+e.re.schema_test.source+")|("+e.re.host_fuzzy_test.source+")|@","i")}function hye(e,t,n,o){let r=e.slice(n,o);this.schema=t.toLowerCase(),this.index=n,this.lastIndex=o,this.raw=r,this.text=r,this.url=r}function ri(e,t){if(!(this instanceof ri))return new ri(e,t);t||Wqe(e)&&(t=e,e={}),this.__opts__=rz({},fye,t),this.__schemas__=rz({},Kqe,e),this.__compiled__={},this.__tlds__=Zqe,this.__tlds_replaced__=!1,this.re={},aM(this)}ri.prototype.add=function(t,n){return this.__schemas__[t]=n,aM(this),this};ri.prototype.set=function(t){return this.__opts__=rz(this.__opts__,t),this};ri.prototype.test=function(t){if(!t.length)return!1;let n,o;if(this.re.schema_test.test(t)){for(o=this.re.schema_search,o.lastIndex=0;(n=o.exec(t))!==null;)if(this.testSchemaAt(t,n[2],o.lastIndex))return!0}return!!(this.__opts__.fuzzyLink&&this.__compiled__["http:"]&&t.search(this.re.host_fuzzy_test)>=0&&t.match(this.__opts__.fuzzyIP?this.re.link_fuzzy:this.re.link_no_ip_fuzzy)!==null||this.__opts__.fuzzyEmail&&this.__compiled__["mailto:"]&&t.indexOf("@")>=0&&t.match(this.re.email_fuzzy)!==null)};ri.prototype.pretest=function(t){return this.re.pretest.test(t)};ri.prototype.testSchemaAt=function(t,n,o){return this.__compiled__[n.toLowerCase()]?this.__compiled__[n.toLowerCase()].validate(t,o,this):0};ri.prototype.match=function(t){let n=[],o=[],r=[],s=[],i,a,l;function c(m,g){return m?g?m.index!==g.index?m.index=g.lastIndex?m:g:m:g}if(!t.length)return null;if(this.re.schema_test.test(t))for(l=this.re.schema_search,l.lastIndex=0;(i=l.exec(t))!==null;)a=this.testSchemaAt(t,i[2],l.lastIndex),a&&o.push({schema:i[2],index:i.index+i[1].length,lastIndex:i.index+i[0].length+a});if(this.__opts__.fuzzyLink&&this.__compiled__["http:"])for(l=this.__opts__.fuzzyIP?this.re.link_fuzzy_global:this.re.link_no_ip_fuzzy_global,l.lastIndex=0;(i=l.exec(t))!==null;)r.push({schema:"",index:i.index+i[1].length,lastIndex:i.index+i[0].length});if(this.__opts__.fuzzyEmail&&this.__compiled__["mailto:"])for(l=this.re.email_fuzzy_global,l.lastIndex=0;(i=l.exec(t))!==null;)s.push({schema:"mailto:",index:i.index+i[1].length,lastIndex:i.index+i[0].length});let u=[0,0,0],p=0;for(;;){let m=[o[u[0]],s[u[1]],r[u[2]]],g=c(c(m[0],m[1]),m[2]);if(!g)break;if(g===m[0]?u[0]++:g===m[1]?u[1]++:u[2]++,g.index= 0x80 (not a basic code point)","invalid-input":"Invalid input"},sz=35,Wl=Math.floor,iz=String.fromCharCode;function mp(e){throw new RangeError(oHe[e])}function rHe(e,t){let n=[],o=e.length;for(;o--;)n[o]=t(e[o]);return n}function vye(e,t){let n=e.split("@"),o="";n.length>1&&(o=n[0]+"@",e=n[1]),e=e.replace(nHe,".");let r=e.split("."),s=rHe(r,t).join(".");return o+s}function xye(e){let t=[],n=0,o=e.length;for(;n=55296&&r<=56319&&nString.fromCodePoint(...e),iHe=function(e){return e>=48&&e<58?26+(e-48):e>=65&&e<91?e-65:e>=97&&e<123?e-97:36},_ye=function(e,t){return e+22+75*(e<26)-((t!=0)<<5)},Tye=function(e,t,n){let o=0;for(e=n?Wl(e/700):e>>1,e+=Wl(e/t);e>sz*26>>1;o+=36)e=Wl(e/sz);return Wl(o+(sz+1)*e/(e+38))},wye=function(e){let t=[],n=e.length,o=0,r=128,s=72,i=e.lastIndexOf(yye);i<0&&(i=0);for(let a=0;a=128&&mp("not-basic"),t.push(e.charCodeAt(a));for(let a=i>0?i+1:0;a=n&&mp("invalid-input");let m=iHe(e.charCodeAt(a++));m>=36&&mp("invalid-input"),m>Wl((2147483647-o)/u)&&mp("overflow"),o+=m*u;let g=p<=s?1:p>=s+26?26:p-s;if(mWl(2147483647/f)&&mp("overflow"),u*=f}let c=t.length+1;s=Tye(o-l,c,l==0),Wl(o/c)>2147483647-r&&mp("overflow"),r+=Wl(o/c),o%=c,t.splice(o++,0,r)}return String.fromCodePoint(...t)},Sye=function(e){let t=[];e=xye(e);let n=e.length,o=128,r=0,s=72;for(let l of e)l<128&&t.push(iz(l));let i=t.length,a=i;for(i&&t.push(yye);a=o&&uWl((2147483647-r)/c)&&mp("overflow"),r+=(l-o)*c,o=l;for(let u of e)if(u2147483647&&mp("overflow"),u===o){let p=r;for(let m=36;;m+=36){let g=m<=s?1:m>=s+26?26:m-s;if(p=0))try{t.hostname=az.toASCII(t.hostname)}catch{}return QR(ay(t))}function fHe(e){let t=pS(e,!0);if(t.hostname&&(!t.protocol||kye.indexOf(t.protocol)>=0))try{t.hostname=az.toUnicode(t.hostname)}catch{}return dS(ay(t),dS.defaultChars+"%")}function Ki(e,t){if(!(this instanceof Ki))return new Ki(e,t);t||nM(e)||(t=e||{},e="default"),this.inline=new dye,this.block=new iye,this.core=new K_e,this.renderer=new G_e,this.linkify=new bye,this.validateLink=mHe,this.normalizeLink=gHe,this.normalizeLinkText=fHe,this.utils=f6,this.helpers=cy({},y6),this.options={},this.configure(e),t&&this.set(t)}Ki.prototype.set=function(e){return cy(this.options,e),this};Ki.prototype.configure=function(e){let t=this;if(nM(e)){let n=e;if(e=uHe[n],!e)throw new Error('Wrong `markdown-it` preset "'+n+'", check name')}if(!e)throw new Error("Wrong `markdown-it` preset, can't be empty");return e.options&&t.set(e.options),e.components&&Object.keys(e.components).forEach(function(n){e.components[n].rules&&t[n].ruler.enableOnly(e.components[n].rules),e.components[n].rules2&&t[n].ruler2.enableOnly(e.components[n].rules2)}),this};Ki.prototype.enable=function(e,t){let n=[];Array.isArray(e)||(e=[e]),["core","block","inline"].forEach(function(r){n=n.concat(this[r].ruler.enable(e,!0))},this),n=n.concat(this.inline.ruler2.enable(e,!0));let o=e.filter(function(r){return n.indexOf(r)<0});if(o.length&&!t)throw new Error("MarkdownIt. Failed to enable unknown rule(s): "+o);return this};Ki.prototype.disable=function(e,t){let n=[];Array.isArray(e)||(e=[e]),["core","block","inline"].forEach(function(r){n=n.concat(this[r].ruler.disable(e,!0))},this),n=n.concat(this.inline.ruler2.disable(e,!0));let o=e.filter(function(r){return n.indexOf(r)<0});if(o.length&&!t)throw new Error("MarkdownIt. Failed to disable unknown rule(s): "+o);return this};Ki.prototype.use=function(e){let t=[this].concat(Array.prototype.slice.call(arguments,1));return e.apply(e,t),this};Ki.prototype.parse=function(e,t){if(typeof e!="string")throw new Error("Input data should be a String");let n=new this.core.State(e,this,t);return this.core.process(n),n.tokens};Ki.prototype.render=function(e,t){return t=t||{},this.renderer.render(this.parse(e,t),this.options,t)};Ki.prototype.parseInline=function(e,t){let n=new this.core.State(e,this,t);return n.inlineMode=!0,this.core.process(n),n.tokens};Ki.prototype.renderInline=function(e,t){return t=t||{},this.renderer.render(this.parseInline(e,t),this.options,t)};var cM=Ki;var gp=my();gp.set=()=>{throw new Error("Do not apply any non-default plugins or formatting to the globally available markdown instance. Instead use createMarkdownItInstance to create a new instance.")};function my(e="default",t){return"default"in uM?cM(e,t):new uM(e,t)}var hHe=e=>{let t=/(]*?)>\^(\d+)\^(<\/a>)/g;return e.replace(t,(n,o,r,s)=>`${o} aria-label="link, ${r}">${r}${s}`)},Iye=e=>{let t=my("default",{html:!1,linkify:!0,typographer:!0}),n=t.render;return t.render=function(o){let r=String(n.call(t,o));if(!e||e.length===0)return hHe(r);let s=r.replace(/

    /g,'

    ').replace(/<\/p>/g,"
    "),i=/]*?>(\^(\d+)\^)<\/a>/g;return s=s.replace(i,(a,l,c)=>{let u=parseInt(String(c));return u>0&&u<=e.length?e[u-1]:a}),s},t.renderer.rules.fence=function(o,r,s,i,a){let l=o[r],c=l.info?l.info.trim().split(/\s+/g)[0]:"",u=/^[A-Za-z0-9_-]+$/.test(c)?c:"",p=u?`class="lang-${u}"`:"",m=t.utils.escapeHtml(l.content||"");return`
    ${m}
    `},t};function Pye(e,t,n){let o="color-success";t&&t>=n?o="color-danger":t&&t>=.5*n&&(o="color-warning");let r=e.skeletonHidden?"is-hidden":"",s=t?"":"is-hidden",i=t?"":"skeleton",a=d``;return d`
    ${t?TY.replace("{count}",t.toString()).replace("{total}",n.toString()):a}
    `}function bHe(){return d`
    ${Wi()}
    ${YQ}
    `}function _He(e){return d`
    ${e}
    `}function Rye(e,t,n){return d`
    ${t?bHe():Wi()}
    ${e}
    `}function yHe(e,t){let n=e.contentIsHTML?"content first-p-top-margin-reset":"";return Rye(t,!0,n)}function vHe(e){let t=d`

    ${lY}

    `;return Rye(t,!1)}function Lye(e){return d`
    `}function xHe(e){return d`
    `}function THe(e){if(!e.citations||Object.keys(e.citations).length===0)return"";let t=Object.entries(e.citations).map(([n,o])=>({key:n,citation:o,safeUrl:xk(o.url)})).filter(n=>n.safeUrl!=="");return t.length===0?"":d`
    ${Cte}
      ${t.map(({citation:n,safeUrl:o})=>d`
    1. ${n.title}
    2. `)}
    `}function wHe(e){return e.loaded?d` ${THe(e)}
    ${Lye(e)} ${Pye(e,e.responseCount,e.maxMessages)}
    `:e.errored?d`
    ${Lye(e)}
    `:e.cancelled?d`
    ${Pye(e,e.responseCount,e.maxMessages)}
    `:""}function SHe(e,t){if(e.allowLoadingView&&e.loading)return CHe(e,t);let o=T_e(e.citations),r=Iye(o),s=e.cancelled?d`${CE} ${e.content}`:e.type==="ai"&&e.contentIsHTML?F(r.render(e.content??"")):e.content,i=e.type==="ai"?wHe(e):"",a=e.cancelled?xHe(e):"",l=e.feedbackViewModel?S_e(e.feedbackViewModel,t):"",c=e.responseCount&&e.responseCount>=e.maxMessages?vHe(e):"",u=d`
    ${s} ${i}
    `;return d`
    ${e.type==="user"?_He(u):yHe(e,u)}
    ${a} ${l} ${c} `}function CHe(e,t){return d`
    ${Wi()}

    ${PE}

    `}function Mye(e,t){return SHe(e,t)}k();k();function EHe(e){return d``}function $ye(e){return!e.suggestionPills||e.suggestionPills.length===0||!e.canSubmit?"":d` ${e.suggestionPills.filter(t=>!t.clicked).map(t=>EHe(t))} `}function Nye(e,t){return!e.starterPrompts||e.starterPrompts.length===0?"":d`
    ${e.starterPrompts.map(({icon:n,header:o,description:r,prompt:s})=>{let i=o.charAt(0).toLowerCase()+o.slice(1);return d`

    ${r}

    `})}
    `}function Dye(){return b.data.pageTemplate!=="ModuleUnit"}function Fye(e,t){if(!e.starterPrompts||e.starterPrompts.length===0)return"";let o=!Dye()||!e.suggestionPills||e.suggestionPills.length===0||e.suggestionPills.every(r=>r.clicked)?FN:"";return d`
    ${Dye()?$ye(e):""}
    ${o}

    ${mY}

    ${e.starterPrompts.map(({icon:r,header:s,prompt:i})=>{let a=s.toLowerCase();return d``})}
    `}k();function Oye(e,t){return d``}function AHe(e){let o=parseInt(window.getComputedStyle(e).lineHeight,10);e.rows=1;let r=Math.floor(e.scrollHeight/o);r>6?(r=6,e.style.overflowY="auto"):e.style.overflowY="hidden",e.rows=r}function kHe(e,t){return d`
    ${e.starterPrompts?Nye(e,t):""} ${hn(e.messages,n=>n.index,n=>Mye(n,t))}
    `}function lz(e,t){return d`${kHe(e,t)} ${PHe(e,t)}`}function Uye(){return d``}function qye(e,t,n=!1){return d`

    ${Wi()}

    ${Bf}
    ${Uye()}
    ${lz(e,t)}
    `}function IHe(e){return e?d`${e}`:d``}function PHe(e,t){return d`
    ${e.starterPrompts?Fye(e,t):""}
    ${Oye(e,t)}
    ${IHe(e.currentValidationMessage)}
    `}function Hye(e,t=!1){return d`

    ${Wi()}

    ${Bf}
    ${Uye()}

    ${qv}

    ${qf}

    `}function Bye(){return d``}function LHe(e,t,n){let o=()=>{document.querySelector('[data-flyout-button="close"]')?.click(),UR(()=>{e.notifyPropertyChanged();let r=document.querySelector("[data-ask-learn-flyout-entry]");r&&gu(r,!0)},!0)};return d`

    ${Wi()}

    ${Bf}
    ${Bye()}

    ${EE}

    ${iY}

    `}function RHe(e,t){switch(e.currentView){case"history":return x_e(e.historyViewModel,e);default:return lz(e,t)}}function MHe(e,t,n){switch(e.currentView){case"history":return"";default:return d`
    ${Vp}
    `}}function $He(e,t){switch(e.currentView){case"history":let n=e.historyViewModel;return d`
    `;default:return""}}function DHe(){let e=yk("me","settings"),t=e.searchParams.get("preview"),n=new Set(t?t.split(","):[]);return n.add("learn-companion"),e.searchParams.set("preview",[...n].join(",")),e.hash="ask-learn-settings-container",e.toString()}function zye(e,t,n=!1){if(e.companionActive&&!zR())return LHe(e,t,n);let o=e.navigator,r=DHe();return d`

    ${Wi()}

    ${Bf}
    ${MHe(e,o,r)} ${Bye()}
    ${$He(e,o)}
    ${RHe(e,t)}
    `}var vu=class{constructor(t={}){this.detail=t}},Kl=class{constructor(t={}){this.detail=t}},gy=class{constructor(t={}){this.detail=t}},fy=class{constructor(t={}){this.detail=t}},Jl=class{constructor(t={}){this.detail=t}},xu=class{constructor(t={}){this.detail=t}},hy=class{constructor(t={}){this.detail=t}},by=class{constructor(t={}){this.detail=t}};var Gye={chat:BQ,history:Uf},dM=class{constructor(t){this.args=t;this.currentView="chat";this.previousView="chat";this.focusedElement=null;this.escController=null}goto(t,n){t!==this.currentView&&(this.focusedElement=n!==void 0?n:document.activeElement instanceof HTMLElement?document.activeElement:null,this.previousView=this.currentView,this.currentView=t,this.args.onChange(),t==="chat"?this.detachEscHandler():this.attachEscHandler(),requestAnimationFrame(()=>{pt(Gye[t]),this.args.getContainer()?.querySelector(rp.join(","))?.focus()}))}back(){if(this.currentView==="chat")return;let t=this.previousView;this.previousView=this.currentView,this.currentView=t,this.args.onChange(),this.detachEscHandler(),requestAnimationFrame(()=>{pt(Gye[t]),this.focusedElement?.focus(),document.activeElement!==this.focusedElement&&this.args.getContainer()?.querySelector(rp.join(","))?.focus()})}reset(){this.currentView="chat",this.previousView="chat",this.focusedElement=null,this.detachEscHandler()}attachEscHandler(){if(!this.escController){let t=this.args.getContainer();if(!t)return;this.escController=new AbortController,t.addEventListener("keydown",n=>{n.key==="Escape"&&(n.preventDefault(),this.back())},{signal:this.escController.signal})}}detachEscHandler(){this.escController?.abort(),this.escController=null}};var Vye=Kt,jye=sl,si,pM=class extends ze{constructor(){super(...arguments);this.conversations=[];this.keyword="";this.isLoading=!1;this.isLoadingMore=!1;this.isDeleting=!1;this.isRenaming=!1;this.error=null;this.loadMoreError=null;this.continuationToken=null;this.haAlpha XR=!1;this.totalConversations=0;this.pendingRenameId=null;this.pendingRenameDraft="";this.pendingDeleteId=null;this.conversationsSnapshot=null;zt(this,si,0)}get filteredConversations(){if(!this.keyword)return this.conversations;let n=this.keyword.toLowerCase();return this.conversations.filter(o=>o.summary.toLowerCase().includes(n))}async search(n){let o=n.trim();if(this.keyword===o||!o)return;let r=!this.keyword;this.keyword=o,r?(this.conversationsSnapshot={conversations:this.conversations,continuationToken:this.continuationToken,haAlpha XR:this.haAlpha XR,totalConversations:this.totalConversations},await this.fetch(BR)):this.notifyPropertyChanged();let s=this.filteredConversations.length,i=s===0?fn:(s===1?Dte:m0).replace("{numberOfResults}",`${s}`);pt(i)}clearSearch(){if(!this.keyword)return;this.keyword="";let n=this.conversationsSnapshot;n&&(this.conversations=n.conversations,this.continuationToken=n.continuationToken,this.haAlpha XR=n.haAlpha XR,this.totalConversations=n.totalConversations,this.conversationsSnapshot=null,this.error=null),this.notifyPropertyChanged()}startRename(n){let o=this.conversations.find(r=>r.conversationId===n);this.pendingRenameId=n,this.pendingRenameDraft=o?.summary??"",this.pendingDeleteId=null,this.error=null,this.notifyPropertyChanged()}cancelRename(){this.pendingRenameId=null,this.pendingRenameDraft="",this.error=null,this.notifyPropertyChanged()}updateRenameDraft(n){this.pendingRenameDraft=n}startConfirmDelete(n){this.pendingDeleteId=n,this.pendingRenameId=null,this.error=null,this.notifyPropertyChanged()}cancelConfirmDelete(){this.pendingDeleteId=null,this.error=null,this.notifyPropertyChanged()}async fetch(n){if(this.isLoading)return;let o=++Iv(this,si)._;this.isLoading=!0,this.error=null,this.loadMoreError=null,this.notifyPropertyChanged();try{let r=await s6(void 0,n);if(o!==ye(this,si))return;this.conversations=r.conversations,this.continuationToken=r.continuationToken,this.haAlpha XR=r.haAlpha XR,this.totalConversations=r.totalConversations}catch{if(o!==ye(this,si))return;this.error=Vye}finally{o===ye(this,si)&&(this.isLoading=!1,this.notifyPropertyChanged())}}async fetchMore(){if(this.isLoading||this.isLoadingMore||!this.haAlpha XR||!this.continuationToken)return;let n=++Iv(this,si)._,o=this.continuationToken;this.isLoadingMore=!0,this.loadMoreError=null,this.notifyPropertyChanged();try{let r=await s6(o);if(n!==ye(this,si))return;this.conversations=[...this.conversations,...r.conversations],r.continuationToken&&r.continuationToken===o?(this.continuationToken=null,this.haAlpha XR=!1):(this.continuationToken=r.continuationToken,this.haAlpha XR=r.haAlpha XR)}catch{if(n!==ye(this,si))return;this.loadMoreError=Vye}finally{n===ye(this,si)&&(this.isLoadingMore=!1,this.notifyPropertyChanged())}}async deleteOne(n){if(this.isDeleting)return!1;this.isDeleting=!0,this.notifyPropertyChanged();try{await f_e(n);let o=this.conversations.length;return this.conversations=this.conversations.filter(r=>r.conversationId!==n),this.updateSnapshot(r=>{let s=r.conversations.filter(i=>i.conversationId!==n);return s.length===r.conversations.length?null:{conversations:s,totalConversations:r.totalConversations-1}}),this.conversations.lengthi.conversationId===n);if(r===-1)return!1;this.isRenaming=!0;let s=this.conversations[r];this.conversations=[...this.conversations.slice(0,r),{...s,summary:o},...this.conversations.slice(r+1)],this.notifyPropertyChanged();try{return await h_e(n,o),this.updateSnapshot(i=>({conversations:i.conversations.map(a=>a.conversationId===n?{...a,summary:o}:a)})),this.pendingRenameId===n&&(this.pendingRenameId=null,this.pendingRenameDraft=""),this.error=null,++Iv(this,si)._,!0}catch{return this.conversations=[...this.conversations.slice(0,r),s,...this.conversations.slice(r+1)],this.error=jye,!1}finally{this.isRenaming=!1,this.notifyPropertyChanged()}}updateSnapshot(n){let o=this.conversationsSnapshot;if(!o)return;let r=n(o);r&&(this.conversationsSnapshot={...o,...r})}notifyPropertyChanged(){this.publish(new vu({}))}};si=new WeakMap;var mM=class extends ze{constructor(n){super();this.state="none";this.index=n}getSelectedOption(n){return n?.querySelector('input[type="radio"]:checked')}getVerbatimText(n){return n?.querySelector("textarea")?.value}previewPayload(n,o=!1){if(!n)return;let r=n.target.closest("form"),s=this.getSelectedOption(r),i=this.getVerbatimText(r);s&&(this.userRadioSelection=s.value,this.verbatim=i),this.publish(new xu({refresh:o,msgIndex:this.index}))}handleSubmit(n,o){o.preventDefault();let r=o.target.closest("form"),s=this.getSelectedOption(r),i=this.getVerbatimText(r);s&&(this.userRadioSelection=s.value,this.verbatim=i,this.state="submitted",n.notifyPropertyChanged(),this.publish(new Jl({consentProvided:!0})))}clearRadioSelection(){Array.from(document.querySelectorAll("[data-chat-container-name]")).forEach(o=>{o.querySelectorAll('input[type="radio"]').forEach(s=>{s.checked=!1})})}cancelFeedback(){this.state="cancelled",this.userRadioSelection=void 0,this.verbatim=void 0,this.notifyPropertyChanged()}undoFeedback(){this.state="none",this.userRadioSelection=void 0,this.verbatim=void 0,this.notifyPropertyChanged()}notifyPropertyChanged(){this.publish(new Kl({scroll:!1}))}};var NHe={contentIsHTML:!1,type:"user"},ks,gM=class extends ze{constructor(n,o={},r,s,i,a){super();zt(this,ks,"loading");this.firstRender=!0;this.errorMapping={};this.skeletonHidden=!1;let{contentIsHTML:l,type:c}={...NHe,...o};if(this.type=c||"user",this.contentIsHTML=l||!1,this.index=r,this.maxMessages=s,this.errorMapping=i||{},this.sessionId=a,n instanceof Promise)this.fetchInternal=n;else{let u=n;this.content=u.content,this.citations=u.citations,this.type=u.type,this.interactionId=u.interactionId,this.rating=u.rating,gt(this,ks,u.state||"loaded"),this.responseCount=u.responseCount,this.responseCount||(this.skeletonHidden=!0),this.fetchInternal=Promise.resolve({})}this.type==="ai"&&(pt(PE,"assertive"),this.feedbackViewModel=new mM(r),this.feedbackViewModel.subscribe(Kl,()=>this.notifyPropertyChanged()),this.feedbackViewModel.subscribe(Jl,u=>this.publish(new Jl(u.detail))),this.feedbackViewModel.subscribe(xu,u=>this.publish(new xu({refresh:u.detail.refresh,msgIndex:u.detail.msgIndex,likeOrDislike:this.rating})))),this.load().then(()=>{this.type==="ai"&&pt(dY),this.notifyPropertyChanged()})}get loading(){return ye(this,ks)==="loading"}get cancelled(){return ye(this,ks)==="cancelled"}get loaded(){return ye(this,ks)==="loaded"}get errored(){return ye(this,ks)==="errored"}get allowLoadingView(){return ye(this,ks)==="loading"&&this.type==="ai"}updateResponseCount(n){this.responseCount=n,this.responseCount>=this.maxMessages&&this.chatSetBusy()}async load(){this.loading&&(await Promise.race([this.loadInternal(),this.awaitCancellation()]),this.publish(new by),this.notifyPropertyChanged())}async awaitCancellation(){return new Promise(n=>{this.cancel=n}).then(n=>{this.contentIsHTML=!1,gt(this,ks,"cancelled"),pt(CE,"assertive"),this.focusElementOnCancel(n)})}focusElementOnCancel(n){let o=n.target instanceof HTMLElement&&n.target.closest("[data-chat-container-name]");if(!o)return;let r=o.dataset.containerName;if(!r)return;let s=document.querySelector(`[data-focus-on-cancel="${r}"]`);s&&s.focus()}async loadInternal(){if(this.loaded||this.errored)return;let n=await this.fetchInternal;if(n.responseCount||(this.skeletonHidden=!0),!this.loading){n.responseCount&&this.updateResponseCount(n.responseCount),this.notifyPropertyChanged();return}n.message&&(this.content=n.message),n.citations&&(this.citations=n.citations),n.sessionId&&(this.sessionId=n.sessionId),n.interactionId&&(this.interactionId=n.interactionId),n.responseCount&&this.updateResponseCount(n.responseCount),n.isError?gt(this,ks,"errored"):this.loading&>(this,ks,"loaded")}resetChat(){this.publish(new fy)}chatSetBusy(){this.publish(new gy)}updateFeedback(n){this.rating===n?(this.rating=void 0,this.feedbackViewModel&&this.feedbackViewModel.undoFeedback()):(this.rating=n,this.feedbackViewModel&&(this.feedbackViewModel.state=n,this.feedbackViewModel.clearRadioSelection())),this.publish(new Jl),this.notifyPropertyChanged()}regenerateMessage(){this.cancelled&&(gt(this,ks,"loading"),this.contentIsHTML=!0,this.load(),this.notifyPropertyChanged())}notifyPropertyChanged(){let n=this.contentIsHTML&&this.firstRender&&this.loaded&&this.type==="ai";n&&(this.firstRender=!1),this.publish(new Kl({updateCodeBlocks:n,scroll:!1,interactionId:this.interactionId}))}saveMessage(){return{content:this.content,citations:this.citations,type:this.type,interactionId:this.interactionId,responseCount:this.responseCount,state:this.type==="ai"?ye(this,ks):void 0,rating:this.rating}}};ks=new WeakMap;var fM=class extends ze{constructor(t,n,o){super(),this.name=t,this.description=n,this.prompt=o,this.clicked=!1}clickSuggestionPill(){this.clicked=!0,this.publish(new hy({prompt:this.prompt}))}resetSuggestionPill(){this.clicked=!1}};var hM={empty:xY,short:IE,exceeded:NN},FHe=8*60*60*1e3,OHe="learn_companion_channel",hS,bS,_S,Or,yS,vS,_y,yy,Vg,vy,bM=class extends ze{constructor(n){super();this.textarea=null;this.navigator=null;zt(this,hS,"");zt(this,bS,"");this.MIN_CHAR_LENGTH=10;this.MAX_CHAR_LENGTH=500;this.errorMapping={};this.starterPrompts=[];this.suggestionPills=[];this.scrollHandle="chat-messages-container";this.indexCount=0;this.canSubmit=!0;this.responseCount=0;this.broadcastChannel=new BroadcastChannel("chat_channel");zt(this,_S);zt(this,Or,[]);zt(this,yS);zt(this,vS);zt(this,_y);zt(this,yy);zt(this,Vg,null);this.initialized=new Promise(n=>{this.initialize=n});this._busy=!1;zt(this,vy,null);gt(this,_S,n.fetch),gt(this,yS,n.getContextIdType),gt(this,vS,n.getContextId),this.maxMessages=n.maxMessages,this.validate=n.validate||(()=>null),this.errorMapping=n.errorMapping||{},this.starterPrompts=n.starterPrompts,gt(this,_y,n.onFeedback),gt(this,yy,n.onTimeTelemetry),this.initSuggestionPills(n),this.setUpTestKeyboardListener(),n.companionActive?(this.companionActive=!0,this.broadcastChannel.close(),this.broadcastChannel=new BroadcastChannel(OHe),this.navigator=new dM({onChange:async()=>{this.navigator?.currentView==="history"&&await this.historyViewModel.fetch(),this.notifyPropertyChanged()},getContainer:()=>this.getActiveContainer()})):this.companionActive=!1,this.initUserInteractionListener(),this.handleInitialChatHistory(),this.initBroadcastChannel(),this.initialize()}get sessionId(){return ye(this,hS)}set sessionId(n){gt(this,hS,n||"")}get currentMessageLength(){return this.currentMessage.length}get currentMessage(){return ye(this,bS)||""}set currentMessage(n){gt(this,bS,n)}get historyViewModel(){return ye(this,Vg)||(gt(this,Vg,new pM),ye(this,Vg).subscribe(vu,n=>this.notifyPropertyChanged(n.detail))),ye(this,Vg)}get messages(){return ye(this,Or)}get busy(){return this._busy}get currentView(){return this.navigator?.currentView??"chat"}async submit(n){n.preventDefault(),this.validateMinLength(),!(!this.canSubmit||!this.currentMessage)&&(this.resetTextAreaHeight(this.getActiveTextArea(this.getActiveContainerName())),this.userMessage(),await this.fetch(),this.notifyPropertyChanged())}async submitWithPrompt(n){this.currentMessage=n,this.submit(new Event("submit"))}async testPrompt(){this.currentMessage="How do I write a test in C#?",this.userMessage(),await this.fetch(),this.notifyPropertyChanged()}async applyStarterPrompt(n,o){this.currentMessage=n;let r=this.getActiveTextArea(o);this.notifyPropertyChanged(),r&&(r.focus(),r.dispatchEvent(new Event("input")))}initSuggestionPills(n){this.suggestionPills=n.suggestionPills?.map(o=>new fM(o.name,o.description,o.prompt))||[],this.suggestionPills.forEach(o=>{o.subscribe(hy,r=>{r.detail.prompt&&this.submitWithPrompt(r.detail.prompt)})})}resetSuggestionPills(){this.suggestionPills?.forEach(n=>n.resetSuggestionPill())}notifyPropertyChanged(n){this.publish(new vu({...n}))}populateForTest(n){gt(this,Or,n),this.notifyPropertyChanged()}async loadConversation(n){if(!n)return;let o=()=>{requestAnimationFrame(()=>{this.currentView==="chat"&&this.getActiveTextArea()?.focus()})};if(this.sessionId===n&&ye(this,Or).length>0&&ye(this,Or).some(s=>!s.errored)){o();return}if(ye(this,vy))return;gt(this,vy,n),this.sessionId=n,gt(this,Or,[]),this.indexCount=0,this.responseCount=0,this.setBusy(),this.notifyPropertyChanged(),o();let r=(s,i={})=>{this.pushMessage(s,i,this.createChildVmIndex(),this.maxMessages,this.errorMapping,this.sessionId)};try{let s=await b_e(n);if(s.error){r({content:s.error,state:"errored",type:"ai"}),pt(s.error,"assertive");return}for(let i of s.messages)r({type:i.type,content:i.content,state:"loaded"},{contentIsHTML:!0,type:i.type});pt(qQ)}finally{gt(this,vy,null),this.setReady(),this.notifyPropertyChanged({scroll:!0})}}getActiveTextArea(n){if(n){let s=document.querySelector(`[data-chat-textarea-container-name="${n}"]`);if(s)return s}let o=this.getActiveContainer(n);if(!o)return null;let r=o.querySelector("[data-chat-textarea-container-name]");return r||null}getActiveContainer(n){if(n){let s=document.querySelector(`[data-chat-container-name="${n}"]`);if(s)return s}let o=Array.from(document.querySelectorAll("[data-chat-container-name]"));if(o.length===0)return null;let r=o.find(s=>getComputedStyle(s).display!=="none");return r||null}getActiveContainerName(){let n=this.getActiveContainer();return n&&n.getAttribute("data-chat-container-name")||""}validateMinLength(){this.currentMessage.length===0?(this.canSubmit=!1,this.currentValidationMessage=hM.empty):this.currentMessage.lengththis.MAX_CHAR_LENGTH&&(this.canSubmit=!1,this.currentValidationMessage=hM.exceeded,pt(NN)),this.notifyPropertyChanged()}handleKeyDown(n){n.key==="Enter"&&!n.shiftKey&&(n.preventDefault(),this.submit(n),Se({behavior:me.OTHER,actionType:Ee.KEYBOARDENTER,content:{autoIngest:!0,type:"ask-learn-assistant-submit-prompt",an:"ask-learn-assistant",name:"submit-enter"}}))}reset(n=!1){gt(this,Or,[]),this.sessionId="",this.deleteChatHistory(),this.indexCount=0,this.responseCount=0,this.setReady(),this.canSubmit=!0,this.resetSuggestionPills(),this.navigator?.reset(),this.notifyPropertyChanged(),pt(UQ),n||this.broadcastChannel.postMessage({type:"reset"})}clearActiveChat(n=!1){gt(this,Or,[]),this.sessionId="",this.deleteChatHistory(),this.notifyPropertyChanged(),n||this.broadcastChannel.postMessage({type:"clear-active-chat"})}scrollToActiveMessage(n,o="smooth",r=!1){let s=this.getActiveContainer(n);if(!s)return;let i=`[data-scroll-into-view="${this.scrollHandle}"]`,a=s.querySelector(i);if(!a){if(!r)return;throw new Error("No active scroll handle found for chat.")}a.scrollIntoView({block:"nearest",inline:"start",behavior:o})}createMessagesHistoryArray(n=!1){let o=[];for(let r=0;r0&&(this.messages[this.messages.length-1].skeletonHidden=!0,this.publish(new Kl({})))}finally{(this.responseCountthis.handleMessageChange(c.detail)),l.subscribe(gy,()=>this.setBusy()),l.subscribe(fy,()=>{this.reset()}),l.subscribe(Jl,c=>{this.sendTelemetryToOneDS(c.detail),this.saveChat()}),l.subscribe(xu,c=>{c.detail.refresh&&c.detail.likeOrDislike&&c.detail.msgIndex?this.updatePreviewPayload("refresh",c.detail.msgIndex,c.detail.likeOrDislike):c.detail.likeOrDislike&&c.detail.msgIndex&&this.updatePreviewPayload("toggle",c.detail.msgIndex,c.detail.likeOrDislike)}),l.subscribe(by,()=>{this.saveChat()}),ye(this,Or).push(l)}userMessage(){this.pushMessage(Promise.resolve({message:this.currentMessage}),{},this.createChildVmIndex(),this.maxMessages,{})}systemMessage(n){this.pushMessage(n,{contentIsHTML:!0,type:"ai"},this.createChildVmIndex(),this.maxMessages,this.errorMapping)}errorMessage(n){let o;n in this.errorMapping?o=this.errorMapping[n]:o=Yo;let r={content:o,state:"errored",type:"ai"};this.pushMessage(r,{},this.createChildVmIndex(),this.maxMessages,this.errorMapping)}handleMessageChange(n){this.notifyPropertyChanged(n)}createChildVmIndex(){return this.indexCount++}setUpTestKeyboardListener(){zl&&window.addEventListener("keydown",n=>{n.ctrlKey&&n.shiftKey&&n.altKey&&n.key==="T"&&this.testPrompt()})}resetTextAreaHeight(n){n&&(n.rows=1,n.style.overflowY="hidden")}serializeChat(){return JSON.stringify({sessionId:this.sessionId,messages:this.messages.filter((n,o,r)=>{if(!n.loaded)return!1;if(n.type==="user"){let s=r[o+1];if(!s||!s.loaded)return!1}return!0}).map(n=>n.saveMessage())})}saveChat(n=!1){let o=this.serializeChat(),r={type:"history",payload:o,shouldScroll:n};this.broadcastChannel.postMessage(r),this.companionActive?(ne.setItem(HR,o),ne.setItem(Ug,Date.now().toString())):(ne.setItem(OR,o),ne.setItem(Dg,Date.now().toString()))}deleteChatHistory(){this.companionActive?(ne.removeItem(HR),ne.removeItem(Ug)):(ne.removeItem(OR),ne.removeItem(Dg))}getChatHistory(){let n=ne.getItem(this.companionActive?HR:OR);return n?JSON.parse(n):null}restoreChatHistory(n,o=!1){n&&(this.sessionId=n.sessionId,gt(this,Or,[]),n.messages.forEach(r=>{this.pushMessage(r,{contentIsHTML:!0,type:r.type},this.createChildVmIndex(),this.maxMessages,this.errorMapping,this.sessionId),this.responseCount=r.responseCount||0,this.responseCount>=this.maxMessages&&this.setBusy()}),this.notifyPropertyChanged({scroll:o}))}clearChatsUponInactive(){let n=ne.getItem(this.companionActive?Ug:Dg);if(!n)return;let o=parseInt(n);Date.now()-o>FHe&&(this.deleteChatHistory(),this.reset(),ne.removeItem(this.companionActive?hu:Ng))}handleInitialChatHistory(){if(!PR&&(this.clearChatsUponInactive(),this.restoreChatHistory(this.getChatHistory()),ne.getItem(this.companionActive?hu:Ng)==="true")){if(this.companionActive&&!zR()){ne.removeItem(hu);return}this.handleFlyoutOpenStateChange(!0)}}initBroadcastChannel(){PR||(this.broadcastChannel.onmessage=n=>{if(n.data)switch(n.data.type){case"history":try{let o=JSON.parse(n.data.payload||"{}");this.restoreChatHistory(o,n.data.shouldScroll)}catch{}break;case"reset":this.reset(!0);break;case"clear-active-chat":this.clearActiveChat(!0);break;case"open-state":this.handleFlyoutOpenStateChange(n.data.isOpen);break}})}initUserInteractionListener(){PR||(window.addEventListener("focusin",()=>{ne.setItem(this.companionActive?Ug:Dg,Date.now().toString())}),this.companionActive&&document.addEventListener("visibilitychange",()=>{document.visibilityState==="visible"&&!this.busy&&this.restoreChatHistory(this.getChatHistory())}),window.addEventListener("flyout-show",()=>{ne.setItem(this.companionActive?hu:Ng,"true"),this.broadcastChannel.postMessage({type:"open-state",isOpen:!0})}),window.addEventListener("flyout-hide",()=>{ne.setItem(this.companionActive?hu:Ng,"false"),this.broadcastChannel.postMessage({type:"open-state",isOpen:!1})}))}handleFlyoutOpenStateChange(n){let o=document.querySelector("[data-ask-learn-flyout-entry]");if(!o)return;let r=document.documentElement.classList.contains("layout-flyout-active");if(n!==r)if(n)gu(o);else{let s=document.querySelector('button[data-flyout-button="close"]');s&&s.click()}}initialize(){}};hS=new WeakMap,bS=new WeakMap,_S=new WeakMap,Or=new WeakMap,yS=new WeakMap,vS=new WeakMap,_y=new WeakMap,yy=new WeakMap,Vg=new WeakMap,vy=new WeakMap;var Go,_M,UHe=async e=>{await(_M??Promise.resolve()),UR(()=>{_M=GR(),Go?.notifyPropertyChanged(),e()})},qHe=(()=>{let e=new URLSearchParams(window.location.search),t=e.has("asklearn");if(t){e.delete("asklearn");let n=e.toString(),o=`${window.location.pathname}${n?"?"+n:""}${window.location.hash}`;window.history.replaceState(window.history.state,window.document.title,o)}return t})();function HHe(e){return e.map(t=>sS(t))}function BHe(e,t,n,o){return!!(e||t||n||o)}function zHe(e){return e?__e:d_e}function GHe(e,t){return e||t}function VHe(e){return e?{lastInteractionTimeKey:Ug,openStatusKey:hu}:{lastInteractionTimeKey:Dg,openStatusKey:Ng}}function jHe(e,t){window.addEventListener("flyout-show",()=>{ne.setItem(e,Date.now().toString()),ne.setItem(t,"true")}),window.addEventListener("flyout-hide",()=>{ne.setItem(e,Date.now().toString()),ne.setItem(t,"false")})}async function Qye(){if(!S.chatTutor||b.data.isPermissioned&&b.data.permissionedType!=="public")return;let e=Ye("chat-tutor",{require:!0}),[t,n,o,r]=await Promise.all([Fr("ask-learn"),Fr("ask-learn-on-articles"),Fr("ask-learn-on-reference"),Fr("learn-companion"),ve,xe]);if(!BHe(e,t,n,o)){document.documentElement.classList.remove("layout-flyout-active");return}let i=GHe(Ye("learn-companion",{require:!0}),r),{lastInteractionTimeKey:a,openStatusKey:l}=VHe(i);J_("devlang");let c=C.isAuthenticated,u=i?Og(As):Og();u<2&&HHe([iy,lS]);let{chatContainer:p,chatModal:m}=QHe();if(!p||!m)return;let g=[],f=document.getElementById("ask-learn-flyout");f&&g.push({element:f,name:"ask-learn-flyout",sticky:!0});let _=i?UHe:m_e;Z4(e6,m,_),Z4(RR,m,_),X4(iS,_),X4(MR,_,!0),t_e(o_e,()=>m.show(),gu,_),n_e(m,iS),i_e();let h=[{element:p,name:"ask-learn-modal"},...g];if(c){let v=await zHe(i);i&&u>=2&&(_M=GR(),ne.getItem(hu)==="true"&&await _M),WHe(v,h)}else{for(let v of h)x(Hye(v.name,!!v.sticky),v.element);jHe(a,l)}qHe&&ne.getItem(l)!=="true"&&_(()=>{if(Rr.matches){let y=document.querySelector(iS);y&&gu(y,!0)}else m.show()})}function QHe(){let e=document.createElement("div");e.classList.add("modal-content","is-docked-right","background-color-body-medium"),e.style.cssText="--sidebar-modal-width: 500px";let t=new Te(e);return{chatContainer:e,chatModal:t}}function YHe(e,t){e.scrollToActiveMessage(t,"smooth",e.currentView==="chat")}async function WHe(e,t){if(!t||t.length===0)throw new Error("Invalid container provided to Chat View Model.");Go=new bM(e);let n=e.companionActive?zye:qye;Go.subscribe(vu,async o=>{for(let r of t){x(n(Go,r.name,!!r.sticky),r.element);let s=Array.from(r.element.querySelectorAll(`[data-interaction-id="${o.detail.interactionId}"]`));if(o.detail.updateCodeBlocks)for(let i of s)eS(i);i6(r.element,s),o.detail.scroll&&YHe(Go,r.name)}}),await Go.initialized,window.addEventListener("resize",sy.timeout(()=>{for(let o of t){let r=Array.from(o.element.querySelectorAll("[data-interaction-id]"));i6(o.element,r)}},250));for(let o of t)x(n(Go,o.name,!!o.sticky),o.element);window.addEventListener("modal-show",()=>{Go.scrollToActiveMessage("ask-learn-modal","instant")}),window.addEventListener("flyout-show",()=>{Go.scrollToActiveMessage("ask-learn-flyout","instant")})}var cz,KHe="article-header-page-actions",JHe="article-header-page-actions-overflow",Yye="[data-page-action-item]";function dz(e=Array.from(document.querySelectorAll(Yye))){let t=document.getElementById(KHe);if(!t)return;cz&&cz.disconnect(),Wye(e);let n=new MutationObserver(()=>{Wye(Array.from(t.querySelectorAll(Yye)))});n.observe(t,{childList:!0,attributes:!0,attributeFilter:["hidden"],subtree:!0}),cz=n,t.classList.remove("opacity-none")}function ZHe(e){switch(e){case"overflow-all":case"overflow-mobile":return e;default:throw new Error(`Incorrect value added for [data-page-action-item]: ${e}`)}}function Wye(e){let t=document.getElementById(JHe);if(!t)return;let n=t.getAttribute("data-reset-required");if(n)switch(n){case"display-none":t.classList.remove("display-none");case"display-none-tablet":t.classList.remove("display-none-tablet");default:break}let o=!1,r=!1,s=t.querySelector('[data-list-type="plan"]');s&&(s.hidden=!1);for(let i of e)if(i.dataset.pageActionItem){let a=i.dataset.pageActionItem;if(!a)continue;let l=i.dataset?.checkHidden==="true",c=i.hidden,u=ZHe(a);if(u==="overflow-all"&&(!l||!c)){o=!0;break}if(u==="overflow-mobile"&&(!l||!c)){r=!0;continue}}t&&(!o&&r&&(t.classList.add("display-none-tablet"),t.setAttribute("data-reset-required","display-none-tablet")),!o&&!r&&(t.classList.add("display-none"),t.setAttribute("data-reset-required","display-none")))}function Kye(){document.documentElement.classList.contains("layout-focus-mode")&&uz({isLoad:!0}),document.addEventListener("click",t=>{t.target instanceof Element&&t.target.closest("[data-focus-mode]")&&uz()}),window.addEventListener("resize",()=>{Ea.matches||!document.documentElement.classList.contains("layout-focus-mode")||uz({isResize:!0})},{passive:!0})}function uz({isResize:e,isLoad:t}={}){if(!document.getElementById("ms--focus-mode-button"))return;if(e){document.documentElement.classList.remove("layout-focus-mode");return}let o=document.documentElement.classList.contains("layout-focus-mode"),r=t?o:!o,s="layout-menu-collapsed"in cl.getViewState()?cl.getViewState()["layout-menu-collapsed"]:r;document.documentElement.classList.toggle("layout-focus-mode",r),document.documentElement.classList.toggle("layout-menu-collapsed",s)}cl.subscribe("layout-focus-mode","always",e=>{let t=document.getElementById("ms--focus-mode-button");if(!t)return;let n=e.isApplied;t.classList.toggle("is-selected",n),t.setAttribute("aria-pressed",n.toString()),t.setAttribute("data-bi-name",n?"focus-mode-exit":"focus-mode-entry"),document.body.setAttribute("data-bi-name",n?"body-focus-mode":"body"),pt(n?EZ:AZ,"assertive"),Rt()});function XHe(){let t={iPhone:"ios",iPad:"ios",iPod:"ios",Macintosh:"macos",MacIntel:"macos",MacPPC:"macos",Mac68K:"macos",Win32:"windows",Win64:"windows",Windows:"windows",WinCE:"windows"}[navigator.platform];return t!==void 0?t:/Android/.test(navigator.userAgent)?"android":/Linux/.test(navigator.platform)?"linux":null}function xS(e){return/^(?:android|ios|linux|macos|windows)$/.test(e)}var eBe=tBe();function tBe(){let e=!1,t=navigator.userAgent||navigator.vendor,n=/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i,o=/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i;return(n.test(t)||o.test(t.substr(0,4)))&&(e=!0),e}var TS=XHe(),Jye="preferred-platform";function nBe(){let e=ne.getItem(Jye);return e!==null&&xS(e)?e:null}var yM=nBe();function vM(e){ne.setItem(Jye,e)}var pz=["button-primary","is-selected"],Xye=["previous-versions","archive"],oBe=({location:e,allowedPaths:t})=>{let n=ap(e).pathname.split("/"),o=t.includes(n[2])?4:3;return n.slice(0,o).join("/")},mz=oBe({location:te,allowedPaths:Xye});function gz(){let e=fz();if(!e.length)return Promise.resolve();let t={get(n){return ne.getItem(`zone-pivot${mz}/${n}`)},set(n,o){ne.setItem(`zone-pivot${mz}/${n}`,o)}};return Promise.all([cBe(),xe]).then(([n])=>{let o=document.querySelector("[data-main-column] .top-alert")??document.querySelector("[data-main-column] .page-metadata-container")??document.querySelector("[data-main-column] .page-metadata"),r=document.querySelector('[data-id="ai-summary"]'),s=[o,r].filter(a=>a!==null);if(s.length===0)return;let i=s.reduce((a,l)=>a.compareDocumentPosition(l)&Node.DOCUMENT_POSITION_FOLLOWING?l:a);iBe(i,e,n,t)})}function fz(){return(P("zone_pivot_groups")||"").split(",").map(e=>e.trim()).filter(e=>e.length)}function rBe(e){document.querySelectorAll(`[data-pivot]${e.map(n=>`:not([data-pivot~='${n}'])`).join("")}`).forEach(n=>{Array.from(n.querySelectorAll("[id]")).forEach(r=>eve(r))})}var sBe=e=>{e.forEach(t=>{document.querySelectorAll(`[data-pivot~='${t}'] [data-id]`).forEach(s=>{s.id=s.getAttribute("data-id"),s.removeAttribute("data-id")});let o=Array.from(document.querySelectorAll(`[data-pivot~='${t}'] [id]`)).map(s=>s.id);document.querySelectorAll(`[data-pivot]:not([data-pivot~='${t}']) [id]`).forEach(s=>{o.includes(s.id)&&eve(s)})})};function eve(e){e.setAttribute("data-id",e.id),e.removeAttribute("id")}function iBe(e,t,n,o){let r=ce().pivots,s=r?r.split(",").map(f=>f.trim().toLowerCase()):[],i=lBe(n,t,s,o,yM||TS),a=document.createElement("style");document.head.appendChild(a),Zye(a,i);let l=t.map(f=>n.find(_=>_.id===f)).filter(f=>f!==void 0);if(l.length===0)return;let c=aBe(e,l,i),u=Array.from(c.querySelectorAll('input[type="radio"]')).map(f=>({input:f,button:f.closest(".button")})),p=()=>{Zye(a,u.filter(f=>f.input.checked).map(f=>f.input.value)),u.forEach(({input:f,button:_})=>{f.checked?(_.classList.add(...pz),_.querySelector(".icon").classList.remove("is-hidden")):(_.classList.remove(...pz),_.querySelector(".icon").classList.add("is-hidden"))})},m=()=>u.forEach(({input:f,button:_})=>{let h=f.matches(":focus-visible")?"add":"remove";_.classList[h]("is-focused")}),g=f=>{let{name:_,value:h}=f.target;o.set(_,h),xS(h)&&vM(h)};Ht(c,"change",p),Ht(c,"blur",m,!0),Ht(c,"focus",m,!0),Ht(c,"change",g),du(()=>a.remove())}function Zye(e,t){e.textContent=` [data-pivot]${t.map(n=>`:not([data-pivot~='${n}'])`).join("")} { display: none !important; }`,rBe(t),sBe(t),cp(),Rt(),Gt({pivots:t.join()},"replaceState")}function aBe(e,t,n){let{userDir:o,userLocale:r}=b.data;return e.insertAdjacentHTML("afterend",`
    ${t.map(s=>`
    ${s.prompt}
    ${s.pivots.map(i=>` `).join(` `)}
    `).join(` `)}
    `),e.nextElementSibling}function lBe(e,t,n,o,r){let s=[];for(let i of t){let a=e.find(f=>f.id===i);if(!a)continue;let l=o.get(i),c=a.pivots,u,p,m,g;for(let f of c)g||(g=f.id),!u&&n.indexOf(f.id)!==-1&&(u=f.id),!p&&f.id===l&&(p=f.id),!m&&f.id===r&&(m=f.id);s.push(u||p||m||g)}return s}function cBe(){let e=uBe();return $(e,{credentials:"include"}).then(t=>t.json()).then(t=>t.groups)}function uBe(){let{branch:e}=ce(),t=P("zone_pivot_group_filename")||"zone-pivot-groups.json",n=e?"?"+pe({branch:e}):"",o=["nb-no"],r=mz,s=r.split("/")[1],i=o.includes(s);i&&(r=r.replace(s,"en-us"));let a=`${r}/${t}${n}`,l=P("zone_pivot_groups_path");l&&(l=x4(l));let c=l&&l.length>1,u=l&&l.startsWith("/"),p=Xye.filter(f=>te.pathname.includes(`/${f}/`)),m=p.length>0?`/${p[0]}`:"",g=`/${i?"en-us":s}${m??""}${u?"":"/"}${l}`;return c?g:a}var dBe=["azure.microsoft.com/pricing/purchase-options/azure-account","azure.microsoft.com/free"];function wS(e){try{let t=new URL(e),n=t.hostname+so(t.pathname);return dBe.some(o=>n.includes(o))}catch{return!1}}function xM(e,t){try{let n=new URL(e),o=n.searchParams.get("cid");if(o===null||o==="")return n.searchParams.set("cid",t?`msft_learn_${t}`:"msft_learn"),n.toString();if(o.includes("msft_learn")&&t&&!o.endsWith(`_${t}`))return n.searchParams.set("cid",`${o}_${t}`),n.toString()}catch{}return e}function tve(e,t=P("platform_id")){let n=Array.from(e.querySelectorAll("a[href]")).filter(o=>{let r=o.getAttribute("href");return r&&wS(r)});for(let o of n){let r=o.getAttribute("href");!r||!wS(r)||o.setAttribute("href",xM(r,t))}}function nve(e,t){let n=Array.from(e.querySelectorAll('iframe[src^="https://learn-video.azurefd.net/"], iframe[src^="https://channel9.msdn.com/"], iframe[src*="/video-embed.html?"], iframe[src*="/video-embed-one-stream.html?"]')),o;try{o=so(new URL(t.href)?.pathname)}catch{return[]}for(let r of n){let s;try{s=new URL(r.src)}catch{continue}s.searchParams.set("locale",b.data.userLocale),s.searchParams.set("embedUrl",o),r.src=s.toString(),r.title||(r.title=Kf)}return n??[]}function ove(){if(fz().length)return;let t=Array.from(document.querySelectorAll("h1, h2, h3, h4, h5, h6")),n=[],o=[];t.map(r=>n.includes(r.id)?o.push(r):n.push(r.id)),o.forEach(r=>{r.removeAttribute("id")})}k();var rve="h1,h2,h3,h4,h5,h6",pBe=15,sve="data-scrollable-table-init",xy=e=>{let t=e.map(n=>{let o=n.firstElementChild;return!!o&&n.clientWidth{t[o]?(n.classList.add("table-wrapper"),n.tabIndex=0,n.setAttribute("role","group"),n.setAttribute("aria-label",y2)):(n.classList.remove("table-wrapper"),n.removeAttribute("tabindex"),n.removeAttribute("role"),n.removeAttribute("aria-label"))})},ave=(e,t)=>{let n=!1;return(...o)=>{n||(n=!0,B.requestAnimationFrame(()=>{e.apply(t,o),n=!1}))}},TM={definitions:["margin-bottom-sm"],nameValue:["table-stacked-mobile"],dataMatrix:["table-complex","margin-top-sm"],attributeList:["table-complex","width-auto"]};function mBe(e){let t=e.classList;if(t.contains("definitions")){e.classList.add(...TM.definitions);let n=Array.from(e.querySelectorAll("th"));for(let o=0;o{for(let r=o.firstChild;r;r=r.nextSibling)r.nodeType===Node.TEXT_NODE?t+=r.textContent??"":r.nodeType===Node.ELEMENT_NODE&&!gBe(r)&&n(r)};return n(e),t}function gBe(e){return e.hidden||e.style.display==="none"}function fBe(e,t){return(()=>{let o;e.parentElement.classList.contains("table-wrapper")?o=e.parentElement.previousElementSibling:o=e.previousElementSibling;let r=0;for(;o&&r<5;){if(o.matches(rve))return ive(o).trim();if(o.matches(".heading-wrapper")){let s=o.querySelector(rve);if(s)return ive(s).trim()}o=o.previousElementSibling,r++}return Eie.replace("{index}",(t+1).toString())})()}function lve(e){Array.from(e.querySelectorAll(b.data.pageTemplate==="OpenAPI-3-2-Operation@1"?".content table, [data-main-column] table":".content table")).forEach(n=>{let o=Array.from(n.querySelectorAll("thead tr > th")),r=n.querySelector("tbody");if(!r)return;let s=Array.from(r.children);if(hBe(o,s)){for(let i of s){let l=i.firstElementChild;l.firstElementChild.nodeName==="SPAN"?(l.firstElementChild.textContent=l.firstElementChild.textContent,l.lastElementChild.firstElementChild.textContent=l.lastElementChild.firstElementChild.textContent):l.innerHTML=l.firstElementChild.innerHTML;let c=w.createElement("th");c.setAttribute("scope","row"),c.innerHTML=l.innerHTML,l.parentElement.replaceChild(c,l)}o.forEach(i=>{if(i.textContent==="")return;i.setAttribute("scope","col");let a=Array.from(n.querySelectorAll("thead tr > th"));if(!a.length||a[0].innerHTML!=="")return;Array.from(n.querySelectorAll("tbody tr > td:first-child > strong")).forEach(c=>{let u=c.parentElement.parentElement.innerHTML.replace("",'').replace("","");c.parentElement.parentElement.innerHTML=u}),a.forEach(c=>{c.innerHTML!==""&&c.setAttribute("scope","col")})})}})}function hBe(e,t){if(!(e.length&&e[0].firstElementChild===null&&e[0].textContent===""))return!1;for(let o of t){let s=o.firstElementChild,i=s.firstElementChild,a=s.lastElementChild;if(s.nodeName!=="TD"||!i||!(s.querySelector(".sxs-lookup")?bBe(i):i===a&&s.textContent.trim()===i.textContent.trim()&&i.nodeName==="STRONG"))return!1}return!0}function bBe(e){if(e.nodeName==="SPAN"){let t=e.firstElementChild;return e.hasAttribute("data-ttu-id")&&t&&t.nodeName==="STRONG"&&e.textContent.trim()===t.textContent.trim()&&!t.firstElementChild}return!1}function _Be(e){let t=w.createElement("div");if(t.classList.add("buttons","buttons-right","margin-bottom-none","margin-top-sm"),e.previousElementSibling&&e.previousElementSibling.classList.contains("heading-wrapper")){let c=e.previousElementSibling.querySelector("[data-moniker]");if(c){let u=c.getAttribute("data-moniker");u&&t.setAttribute("data-moniker",u)}}let n=d``,o=d``,r=c=>d``,s,i,a;function l(){if(!s||!i){s=w.createElement("div"),a=e.cloneNode(!0);let c=r(a);x(c,s),i=new Te(s),a&&Ht(B,"resize",ave(()=>xy([a])),{passive:!0})}i.show(),xy([a])}return x(n,t),t}function yBe(e,t){if(!e.matches("[aria-label], [aria-labelledby]")&&!e.querySelector("caption")){let n=fBe(e,t);e.setAttribute("aria-label",n)}e.classList.add("table"),(b.data.pageTemplate==="Conceptual"||b.data.pageTemplate==="Reference"||b.data.pageTemplate==="OpenAPI-3-2-Operation@1")&&e.classList.add("table-sm","margin-top-none"),e.classList.length!==1&&mBe(e)}function hz(e,t){if(e.hasAttribute(sve)||(e.setAttribute(sve,""),e.classList.contains("nameValue")))return null;if(e.parentElement.classList.contains("table-wrapper"))return e.parentElement;let n=w.createElement("div");if(n.classList.add("table-wrapper","inner-focus"),n.tabIndex=0,n.setAttribute("role","group"),n.setAttribute("aria-label",y2),e.parentElement.insertBefore(n,e),n.appendChild(e),!t){let o=_Be(n);n.parentElement&&n.parentElement.insertBefore(o,n)}return n}function bz(e=!1,t){let n=Array.from((t??w).querySelectorAll(b.data.pageTemplate==="OpenAPI-3-2-Operation@1"?".content table, [data-main-column] table":".content table"));if(!n.length)return;n.forEach((i,a)=>yBe(i,a));let o=[],r=Math.min(n.length,pBe);for(let i=0;ir)if(typeof IntersectionObserver=="function")vBe(n,r,e,o);else{for(let i=r;ixy(o));Ht(B,"resize",s,{passive:!0}),Ht(B,"content-update",s,{passive:!0})}function vBe(e,t,n,o){let r=Math.max(B.innerHeight,600),s=e.length-t,i=new IntersectionObserver(a=>{let l=[];for(let c of a){if(!c.isIntersecting)continue;let u=c.target;i.unobserve(u),s--;let p=hz(u,n);p&&l.push(p)}l.length&&(o.push(...l),xy(l)),s<=0&&i.disconnect()},{rootMargin:`${r}px 0px ${r}px 0px`});for(let a=t;ai.disconnect())}function xBe(e){return Array.from(e.querySelectorAll('iframe[src^="https://www.microsoft.com"][src*="/videoplayer/"]'))}function TBe(e,t,n){let o=t.split("/").pop(),r=new URL(`http://approjects.co.za/?big=${e}/videoplayer/embed/${o}`);return n&&r.searchParams.set("postJsllMsg","true"),e!=="en-us"&&r.searchParams.set("autoCaptions",e),r.href}function wBe(e,t=window){t.addEventListener("message",n=>{if(n.origin!=="https://www.microsoft.com"||typeof n.data!="string")return;let o;try{o=JSON.parse(n.data)}catch{}!o||typeof o.eventName!="string"||o.eventName.toLowerCase()!=="postjsllmessage"||e(o.data)})}function cve(){let t=xBe(document.body);for(let n of t){let o=TBe(b.data.userLocale,n.src,!0);n.src!==o&&(n.src=o),n.title=n.title||Kf}t.length&&wBe(Se)}function yz(){SBe(),CBe(),EBe(document.body),ove(),lve(document.body),cve(),nve(document.body,te),tve(document.body)}function SBe(){let e={TIP:{class:"is-success",docon:"lightbulb",title:Rae},NOTE:{class:"is-info",docon:"status-error-outline",title:lee},IMPORTANT:{class:"is-primary",docon:"status-info-outline",title:nX},WARNING:{class:"is-warning",docon:"status-warning-outline",title:nle},CAUTION:{class:"is-danger",docon:"status-failure-outline",title:J7}};Array.from(document.querySelectorAll(".TIP, .NOTE, .IMPORTANT, .WARNING, .CAUTION")).forEach(n=>{let o=/TIP|NOTE|IMPORTANT|WARNING|CAUTION/.exec(n.className)[0];n.className=`alert ${e[o].class}`;let r=n.firstElementChild;!r||!(r instanceof HTMLParagraphElement)||(r.classList.add("alert-title"),r.textContent=e[o].title,r.insertAdjacentHTML("afterbegin",` `))})}function CBe(){Array.from(document.querySelectorAll(".content div.button a, .content div.step-by-step a, .content div.nextstepaction a")).forEach(e=>{e.classList.add("button","button-primary","button-filled","has-text-wrap");let t=e.closest("div.button, .step-by-step");t&&(t.className="")})}function EBe(e){Array.from(e.querySelectorAll(".break-text > .xref")).forEach(n=>{if(n.firstElementChild!==null)return;let r=n.parentElement.classList.contains("dots-only")?2:3,s=Ro(n.textContent.replace(//g,">"),r);n.innerHTML=s})}function uve(){document.querySelectorAll("button[data-copy-markdown]").forEach(e=>{e.addEventListener("click",()=>ABe(e))})}async function ABe(e){if(e.dataset.copyState!=="idle")return;SS(e,"loading");let t=new URL(te.href);t.searchParams.set("accept","text/markdown");try{let n=await fetch(t.toString());if(!n.ok)throw new Error(`Failed to fetch markdown: ${n.status}`);let o=await n.text();await N4(o,e)?(SS(e,"success"),pt(jE,"assertive",1e3),setTimeout(()=>SS(e,"idle"),1e3)):SS(e,"idle")}catch{SS(e,"idle")}}function SS(e,t){e.dataset.copyState=t,e.querySelectorAll("[data-show-when]").forEach(n=>{n.hidden=n.dataset.showWhen!==t})}function dve(){window.addEventListener("click",({target:e})=>{let t=e instanceof Element&&e.closest("[data-dismiss]");if(!t)return;let n=t.closest("[data-dismissable]");n&&(n.classList.contains("notification")||n.classList.contains("banner")||wM(n))},{passive:!0})}async function wM(e){e.getAttribute("data-dismissable")==="disappearing"&&(e.classList.add("disappearing"),await new Promise(t=>setTimeout(t,500))),e.classList.remove("disappearing"),e.remove(),Rt()}Qe();var mve=X1(Tz(),1);var Tu=class extends Error{constructor(n,o,r){super(n,{cause:r.cause});Wt(this,"name");Wt(this,"status");Wt(this,"request");Wt(this,"response");this.name="HttpError",this.status=Number.parseInt(o),Number.isNaN(this.status)&&(this.status=0);"response"in r&&(this.response=r.response);let s=Object.assign({},r.request);r.request.headers.authorization&&(s.headers=Object.assign({},r.request.headers,{authorization:r.request.headers.authorization.replace(/(?=400&&!e.doNotRetry.includes(n.status)){let r=o.request.retries!=null?o.request.retries:e.retries,s=Math.pow((o.request.retryCount||0)+1,2);throw t.retry.retryRequest(n,r,s)}throw n}async function IBe(e,t,n,o){let r=new mve.default;return r.on("failed",function(s,i){let a=~~s.request.request.retries,l=~~s.request.request.retryAfter;if(o.request.retryCount=i.retryCount+1,a>i.retryCount)return l*e.retryAfterBaseValue}),r.schedule(PBe.bind(null,e,t,n),o)}async function PBe(e,t,n,o){let r=await n(n,o);if(r.data&&r.data.errors&&r.data.errors.length>0&&/Something went wrong while executing your query/.test(r.data.errors[0].message)){let s=new Tu(r.data.errors[0].message,500,{request:o,response:r});return pve(e,t,s,o)}return r}function wz(e,t){let n=Object.assign({enabled:!0,retryAfterBaseValue:1e3,doNotRetry:[400,401,403,404,410,422,451],retries:3},t.retry);return n.enabled&&(e.hook.error("request",pve.bind(null,n,e)),e.hook.wrap("request",IBe.bind(null,n,e))),{retry:{retryRequest:(o,r,s)=>(o.request.request=Object.assign({},o.request.request,{retries:r,retryAfter:s}),o)}}}wz.VERSION=kBe;var fve=X1(Tz(),1),LBe="0.0.0-development",Sz=()=>Promise.resolve();function RBe(e,t,n){return e.retryLimiter.schedule(MBe,e,t,n)}async function MBe(e,t,n){let{pathname:o}=new URL(n.url,"http://github.test"),r=$Be(n.method,o),s=!r&&n.method!=="GET"&&n.method!=="HEAD",i=n.method==="GET"&&o.startsWith("/search/"),a=o.startsWith("/graphql"),c=~~t.retryCount>0?{priority:0,weight:0}:{};e.clustering&&(c.expiration=1e3*60),(s||a)&&await e.write.key(e.id).schedule(c,Sz),s&&e.triggersNotification(o)&&await e.notifications.key(e.id).schedule(c,Sz),i&&await e.search.key(e.id).schedule(c,Sz);let u=(r?e.auth:e.global).key(e.id).schedule(c,t,n);if(a){let p=await u;if(p.data.errors!=null&&p.data.errors.some(m=>m.type==="RATE_LIMITED"))throw Object.assign(new Error("GraphQL Rate Limit Exceeded"),{response:p,data:p.data})}return u}function $Be(e,t){return e==="PATCH"&&/^\/applications\/[^/]+\/token\/scoped$/.test(t)||e==="POST"&&(/^\/applications\/[^/]+\/token$/.test(t)||/^\/app\/installations\/[^/]+\/access_tokens$/.test(t)||t==="/login/oauth/access_token")}var DBe=["/orgs/{org}/invitations","/orgs/{org}/invitations/{invitation_id}","/orgs/{org}/teams/{team_slug}/discussions","/orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments","/repos/{owner}/{repo}/collaborators/{username}","/repos/{owner}/{repo}/commits/{commit_sha}/comments","/repos/{owner}/{repo}/issues","/repos/{owner}/{repo}/issues/{issue_number}/comments","/repos/{owner}/{repo}/issues/{issue_number}/sub_issue","/repos/{owner}/{repo}/issues/{issue_number}/sub_issues/priority","/repos/{owner}/{repo}/pulls","/repos/{owner}/{repo}/pulls/{pull_number}/comments","/repos/{owner}/{repo}/pulls/{pull_number}/comments/{comment_id}/replies","/repos/{owner}/{repo}/pulls/{pull_number}/merge","/repos/{owner}/{repo}/pulls/{pull_number}/requested_reviewers","/repos/{owner}/{repo}/pulls/{pull_number}/reviews","/repos/{owner}/{repo}/releases","/teams/{team_id}/discussions","/teams/{team_id}/discussions/{discussion_number}/comments"];function NBe(e){let n=`^(?:${e.map(o=>o.split("/").map(r=>r.startsWith("{")?"(?:.+?)":r).join("/")).map(o=>`(?:${o})`).join("|")})[^/]*$`;return new RegExp(n,"i")}var gve=NBe(DBe),hve=gve.test.bind(gve),jg={},FBe=function(e,t){jg.global=new e.Group({id:"octokit-global",maxConcurrent:10,...t}),jg.auth=new e.Group({id:"octokit-auth",maxConcurrent:1,...t}),jg.search=new e.Group({id:"octokit-search",maxConcurrent:1,minTime:2e3,...t}),jg.write=new e.Group({id:"octokit-write",maxConcurrent:1,minTime:1e3,...t}),jg.notifications=new e.Group({id:"octokit-notifications",maxConcurrent:1,minTime:3e3,...t})};function SM(e,t){let{enabled:n=!0,Bottleneck:o=fve.default,id:r="no-id",timeout:s=1e3*60*2,connection:i}=t.throttle||{};if(!n)return{};let a={timeout:s};typeof i<"u"&&(a.connection=i),jg.global==null&&FBe(o,a);let l=Object.assign({clustering:i!=null,triggersNotification:hve,fallbackSecondaryRateRetryAfter:60,retryAfterBaseValue:1e3,retryLimiter:new o,id:r,...jg},t.throttle);if(typeof l.onSecondaryRateLimit!="function"||typeof l.onRateLimit!="function")throw new Error(`octokit/plugin-throttling error: You must pass the onSecondaryRateLimit and onRateLimit error handlers. See https://octokit.github.io/rest.js/#throttling const octokit = new Octokit({ throttle: { onSecondaryRateLimit: (retryAfter, options) => {/* ... */}, onRateLimit: (retryAfter, options) => {/* ... */} } }) `);let c={},u=new o.Events(c);return c.on("secondary-limit",l.onSecondaryRateLimit),c.on("rate-limit",l.onRateLimit),c.on("error",p=>e.log.warn("Error in throttling-plugin limit handler",p)),l.retryLimiter.on("failed",async function(p,m){let[g,f,_]=m.args,{pathname:h}=new URL(_.url,"http://github.test");if(!(h.startsWith("/graphql")&&p.status!==401||p.status===403||p.status===429))return;let y=~~f.retryCount;f.retryCount=y,_.request.retryCount=y;let{wantRetry:T,retryAfter:I=0}=await async function(){if(/\bsecondary rate\b/i.test(p.message)){let E=Number(p.response.headers["retry-after"])||g.fallbackSecondaryRateRetryAfter;return{wantRetry:await u.trigger("secondary-limit",E,_,e,y),retryAfter:E}}if(p.response.headers!=null&&p.response.headers["x-ratelimit-remaining"]==="0"||(p.response.data?.errors??[]).some(E=>E.type==="RATE_LIMITED")){let E=new Date(~~p.response.headers["x-ratelimit-reset"]*1e3).getTime(),q=Math.max(Math.ceil((E-Date.now())/1e3)+1,0);return{wantRetry:await u.trigger("rate-limit",q,_,e,y),retryAfter:q}}return{}}();if(T)return f.retryCount++,I*g.retryAfterBaseValue}),e.hook.wrap("request",RBe.bind(null,l)),{}}SM.VERSION=LBe;SM.triggersNotification=hve;function fp(){return typeof navigator=="object"&&"userAgent"in navigator?navigator.userAgent:typeof process=="object"&&process.version!==void 0?`Node.js/${process.version.substr(1)} (${process.platform}; ${process.arch})`:""}function CM(e,t,n,o){if(typeof n!="function")throw new Error("method for before hook must be a function");return o||(o={}),Array.isArray(t)?t.reverse().reduce((r,s)=>CM.bind(null,e,s,r,o),n)():Promise.resolve().then(()=>e.registry[t]?e.registry[t].reduce((r,s)=>s.hook.bind(null,r,o),n)():n(o))}function bve(e,t,n,o){let r=o;e.registry[n]||(e.registry[n]=[]),t==="before"&&(o=(s,i)=>Promise.resolve().then(r.bind(null,i)).then(s.bind(null,i))),t==="after"&&(o=(s,i)=>{let a;return Promise.resolve().then(s.bind(null,i)).then(l=>(a=l,r(a,i))).then(()=>a)}),t==="error"&&(o=(s,i)=>Promise.resolve().then(s.bind(null,i)).catch(a=>r(a,i))),e.registry[n].push({hook:o,orig:r})}function _ve(e,t,n){if(!e.registry[t])return;let o=e.registry[t].map(r=>r.orig).indexOf(n);o!==-1&&e.registry[t].splice(o,1)}var yve=Function.bind,vve=yve.bind(yve);function xve(e,t,n){let o=vve(_ve,null).apply(null,n?[t,n]:[t]);e.api={remove:o},e.remove=o,["before","error","after","wrap"].forEach(r=>{let s=n?[t,r,n]:[t,r];e[r]=e.api[r]=vve(bve,null).apply(null,s)})}function OBe(){let e=Symbol("Singular"),t={registry:{}},n=CM.bind(null,t,e);return xve(n,t,e),n}function UBe(){let e={registry:{}},t=CM.bind(null,e);return xve(t,e),t}var Tve={Singular:OBe,Collection:UBe};var qBe="0.0.0-development",HBe=`octokit-endpoint.js/${qBe} ${fp()}`,BBe={method:"GET",baseUrl:"https://api.github.com",headers:{accept:"application/vnd.github.v3+json","user-agent":HBe},mediaType:{format:""}};function zBe(e){return e?Object.keys(e).reduce((t,n)=>(t[n.toLowerCase()]=e[n],t),{}):{}}function GBe(e){if(typeof e!="object"||e===null||Object.prototype.toString.call(e)!=="[object Object]")return!1;let t=Object.getPrototypeOf(e);if(t===null)return!0;let n=Object.prototype.hasOwnProperty.call(t,"constructor")&&t.constructor;return typeof n=="function"&&n instanceof n&&Function.prototype.call(n)===Function.prototype.call(e)}function Cve(e,t){let n=Object.assign({},e);return Object.keys(t).forEach(o=>{GBe(t[o])?o in e?n[o]=Cve(e[o],t[o]):Object.assign(n,{[o]:t[o]}):Object.assign(n,{[o]:t[o]})}),n}function wve(e){for(let t in e)e[t]===void 0&&delete e[t];return e}function Ez(e,t,n){if(typeof t=="string"){let[r,s]=t.split(" ");n=Object.assign(s?{method:r,url:s}:{url:r},n)}else n=Object.assign({},t);n.headers=zBe(n.headers),wve(n),wve(n.headers);let o=Cve(e||{},n);return n.url==="/graphql"&&(e&&e.mediaType.previews?.length&&(o.mediaType.previews=e.mediaType.previews.filter(r=>!o.mediaType.previews.includes(r)).concat(o.mediaType.previews)),o.mediaType.previews=(o.mediaType.previews||[]).map(r=>r.replace(/-preview/,""))),o}function VBe(e,t){let n=/\?/.test(e)?"&":"?",o=Object.keys(t);return o.length===0?e:e+n+o.map(r=>r==="q"?"q="+t.q.split("+").map(encodeURIComponent).join("+"):`${r}=${encodeURIComponent(t[r])}`).join("&")}var jBe=/\{[^{}}]+\}/g;function QBe(e){return e.replace(/(?:^\W+)|(?:(?n.concat(o),[]):[]}function Sve(e,t){let n={__proto__:null};for(let o of Object.keys(e))t.indexOf(o)===-1&&(n[o]=e[o]);return n}function Eve(e){return e.split(/(%[0-9A-Fa-f]{2})/g).map(function(t){return/%[0-9A-Fa-f]/.test(t)||(t=encodeURI(t).replace(/%5B/g,"[").replace(/%5D/g,"]")),t}).join("")}function wy(e){return encodeURIComponent(e).replace(/[!'()*]/g,function(t){return"%"+t.charCodeAt(0).toString(16).toUpperCase()})}function CS(e,t,n){return t=e==="+"||e==="#"?Eve(t):wy(t),n?wy(n)+"="+t:t}function Ty(e){return e!=null}function Cz(e){return e===";"||e==="&"||e==="?"}function WBe(e,t,n,o){var r=e[n],s=[];if(Ty(r)&&r!=="")if(typeof r=="string"||typeof r=="number"||typeof r=="bigint"||typeof r=="boolean")r=r.toString(),o&&o!=="*"&&(r=r.substring(0,parseInt(o,10))),s.push(CS(t,r,Cz(t)?n:""));else if(o==="*")Array.isArray(r)?r.filter(Ty).forEach(function(i){s.push(CS(t,i,Cz(t)?n:""))}):Object.keys(r).forEach(function(i){Ty(r[i])&&s.push(CS(t,r[i],i))});else{let i=[];Array.isArray(r)?r.filter(Ty).forEach(function(a){i.push(CS(t,a))}):Object.keys(r).forEach(function(a){Ty(r[a])&&(i.push(wy(a)),i.push(CS(t,r[a].toString())))}),Cz(t)?s.push(wy(n)+"="+i.join(",")):i.length!==0&&s.push(i.join(","))}else t===";"?Ty(r)&&s.push(wy(n)):r===""&&(t==="&"||t==="?")?s.push(wy(n)+"="):r===""&&s.push("");return s}function KBe(e){return{expand:JBe.bind(null,e)}}function JBe(e,t){var n=["+","#",".","/",";","?","&"];return e=e.replace(/\{([^\{\}]+)\}|([^\{\}]+)/g,function(o,r,s){if(r){let a="",l=[];if(n.indexOf(r.charAt(0))!==-1&&(a=r.charAt(0),r=r.substr(1)),r.split(/,/g).forEach(function(c){var u=/([^:\*]*)(?::(\d+)|(\*))?/.exec(c);l.push(WBe(t,a,u[1],u[2]||u[3]))}),a&&a!=="+"){var i=",";return a==="?"?i="&":a!=="#"&&(i=a),(l.length!==0?a:"")+l.join(i)}else return l.join(",")}else return Eve(s)}),e==="/"?e:e.replace(/\/$/,"")}function Ave(e){let t=e.method.toUpperCase(),n=(e.url||"/").replace(/:([a-z]\w+)/g,"{$1}"),o=Object.assign({},e.headers),r,s=Sve(e,["method","baseUrl","url","headers","request","mediaType"]),i=YBe(n);n=KBe(n).expand(s),/^http/.test(n)||(n=e.baseUrl+n);let a=Object.keys(e).filter(u=>i.includes(u)).concat("baseUrl"),l=Sve(s,a);if(!/application\/octet-stream/i.test(o.accept)&&(e.mediaType.format&&(o.accept=o.accept.split(/,/).map(u=>u.replace(/application\/vnd(\.\w+)(\.v3)?(\.\w+)?(\+json)?$/,`application/vnd$1$2.${e.mediaType.format}`)).join(",")),n.endsWith("/graphql")&&e.mediaType.previews?.length)){let u=o.accept.match(/(?{let m=e.mediaType.format?`.${e.mediaType.format}`:"+json";return`application/vnd.github.${p}-preview${m}`}).join(",")}return["GET","HEAD"].includes(t)?n=VBe(n,l):"data"in l?r=l.data:Object.keys(l).length&&(r=l),!o["content-type"]&&typeof r<"u"&&(o["content-type"]="applicationhttps://www.microsoft.com/json; charset=utf-8"),["PATCH","PUT"].includes(t)&&typeof r>"u"&&(r=""),Object.assign({method:t,url:n,headers:o},typeof r<"u"?{body:r}:null,e.request?{request:e.request}:null)}function ZBe(e,t,n){return Ave(Ez(e,t,n))}function kve(e,t){let n=Ez(e,t),o=ZBe.bind(null,n);return Object.assign(o,{DEFAULTS:n,defaults:kve.bind(null,n),merge:Ez.bind(null,n),parse:Ave})}var Ive=kve(null,BBe);var Vve=X1(Nve(),1);var l3e=/^-?\d+$/,Uve=/^-?\d+n+$/,Pz=JSON.stringify,Fve=JSON.parse,c3e=/^-?\d+n$/,u3e=/([\[:])?"(-?\d+)n"($|([\\n]|\s)*(\s|[\\n])*[,\}\]])/g,d3e=/([\[:])?("-?\d+n+)n("$|"([\\n]|\s)*(\s|[\\n])*[,\}\]])/g,qve=(e,t,n)=>"rawJSON"in JSON?Pz(e,(i,a)=>typeof a=="bigint"?JSON.rawJSON(a.toString()):typeof t=="function"?t(i,a):(Array.isArray(t)&&t.includes(i),a),n):e?Pz(e,(i,a)=>typeof a=="string"&&Uve.test(a)||typeof a=="bigint"?a.toString()+"n":typeof t=="function"?t(i,a):(Array.isArray(t)&&t.includes(i),a),n).replace(u3e,"$1$2$3").replace(d3e,"$1$2$3"):Pz(e,t,n),AM=new Map,p3e=()=>{let e=JSON.parse.toString();if(AM.has(e))return AM.get(e);try{let t=JSON.parse("1",(n,o,r)=>!!r?.source&&r.source==="1");return AM.set(e,t),t}catch{return AM.set(e,!1),!1}},m3e=(e,t,n,o)=>typeof t=="string"&&c3e.test(t)?BigInt(t.slice(0,-1)):typeof t=="string"&&Uve.test(t)?t.slice(0,-1):typeof o!="function"?t:o(e,t,n),g3e=(e,t)=>JSON.parse(e,(n,o,r)=>{let s=typeof o=="number"&&(o>Number.MAX_SAFE_INTEGER||o{if(!e)return Fve(e,t);if(p3e())return g3e(e,t);let n=e.replace(f3e,(o,r,s,i)=>{let a=o[0]==='"';if(a&&h3e.test(o))return o.substring(0,o.length-1)+'n"';let c=s||i,u=r&&(r.lengthm3e(o,r,s,t))};var b3e="10.0.9",_3e={headers:{"user-agent":`octokit-request.js/${b3e} ${fp()}`}};function y3e(e){if(typeof e!="object"||e===null||Object.prototype.toString.call(e)!=="[object Object]")return!1;let t=Object.getPrototypeOf(e);if(t===null)return!0;let n=Object.prototype.hasOwnProperty.call(t,"constructor")&&t.constructor;return typeof n=="function"&&n instanceof n&&Function.prototype.call(n)===Function.prototype.call(e)}var zve=()=>"";async function Gve(e){let t=e.request?.fetch||globalThis.fetch;if(!t)throw new Error("fetch is not set. Please pass a fetch implementation as new Octokit({ request: { fetch }}). Learn more at https://github.com/octokit/octokit.js/#fetch-missing");let n=e.request?.log||console,o=e.request?.parseSuccessResponseBody!==!1,r=y3e(e.body)||Array.isArray(e.body)?qve(e.body):e.body,s=Object.fromEntries(Object.entries(e.headers).map(([p,m])=>[p,String(m)])),i;try{i=await t(e.url,{method:e.method,body:r,redirect:e.request?.redirect,headers:s,signal:e.request?.signal,...e.body&&{duplex:"half"}})}catch(p){let m="Unknown Error";if(p instanceof Error){if(p.name==="AbortError")throw p.status=500,p;m=p.message,p.name==="TypeError"&&"cause"in p&&(p.cause instanceof Error?m=p.cause.message:typeof p.cause=="string"&&(m=p.cause))}let g=new Tu(m,500,{request:e});throw g.cause=p,g}let a=i.status,l=i.url,c={};for(let[p,m]of i.headers)c[p]=m;let u={url:l,status:a,headers:c,data:""};if("deprecation"in c){let p=c.link&&c.link.match(/<([^<>]+)>; rel="deprecation"/),m=p&&p.pop();n.warn(`[@octokit/request] "${e.method} ${e.url}" is deprecated. It is scheduled to be removed on ${c.sunset}${m?`. See ${m}`:""}`)}if(a===204||a===205)return u;if(e.method==="HEAD"){if(a<400)return u;throw new Tu(i.statusText,a,{response:u,request:e})}if(a===304)throw u.data=await Lz(i),new Tu("Not modified",a,{response:u,request:e});if(a>=400)throw u.data=await Lz(i),new Tu(x3e(u.data),a,{response:u,request:e});return u.data=o?await Lz(i):i.body,u}async function Lz(e){let t=e.headers.get("content-type");if(!t)return e.text().catch(zve);let n=(0,Vve.parse)(t);if(v3e(n)){let o="";try{return o=await e.text(),Bve(o)}catch{return o}}else return n.type.startsWith("text/")||n.parameters.charset?.toLowerCase()==="utf-8"?e.text().catch(zve):e.arrayBuffer().catch(()=>new ArrayBuffer(0))}function v3e(e){return e.type==="applicationhttps://www.microsoft.com/json"||e.type==="application/scim+json"}function x3e(e){if(typeof e=="string")return e;if(e instanceof ArrayBuffer)return"Unknown error";if("message"in e){let t="documentation_url"in e?` - ${e.documentation_url}`:"";return Array.isArray(e.errors)?`${e.message}: ${e.errors.map(n=>JSON.stringify(n)).join(", ")}${t}`:`${e.message}${t}`}return`Unknown error: ${JSON.stringify(e)}`}function Rz(e,t){let n=e.defaults(t);return Object.assign(function(r,s){let i=n.merge(r,s);if(!i.request||!i.request.hook)return Gve(n.parse(i));let a=(l,c)=>Gve(n.parse(n.merge(l,c)));return Object.assign(a,{endpoint:n,defaults:Rz.bind(null,n)}),i.request.hook(a,i)},{endpoint:n,defaults:Rz.bind(null,n)})}var ES=Rz(Ive,_3e);var T3e="0.0.0-development";function w3e(e){return`Request failed due to following response errors: `+e.errors.map(t=>` - ${t.message}`).join(` `)}var S3e=class extends Error{constructor(t,n,o){super(w3e(o));Wt(this,"name","GraphqlResponseError");Wt(this,"errors");Wt(this,"data");this.request=t,this.headers=n,this.response=o,this.errors=o.errors,this.data=o.data,Error.captureStackTrace&&Error.captureStackTrace(this,this.constructor)}},C3e=["method","baseUrl","url","headers","request","query","mediaType","operationName"],E3e=["query","method","url"],jve=/\/api\/v3\/?$/;function A3e(e,t,n){if(n){if(typeof t=="string"&&"query"in n)return Promise.reject(new Error('[@octokit/graphql] "query" cannot be used as variable name'));for(let i in n)if(E3e.includes(i))return Promise.reject(new Error(`[@octokit/graphql] "${i}" cannot be used as variable name`))}let o=typeof t=="string"?Object.assign({query:t},n):t,r=Object.keys(o).reduce((i,a)=>C3e.includes(a)?(i[a]=o[a],i):(i.variables||(i.variables={}),i.variables[a]=o[a],i),{}),s=o.baseUrl||e.endpoint.DEFAULTS.baseUrl;return jve.test(s)&&(r.url=s.replace(jve,"/api/graphql")),e(r).then(i=>{if(i.data.errors){let a={};for(let l of Object.keys(i.headers))a[l]=i.headers[l];throw new S3e(r,a,i.data)}return i.data.data})}function Mz(e,t){let n=e.defaults(t);return Object.assign((r,s)=>A3e(n,r,s),{defaults:Mz.bind(null,n),endpoint:n.endpoint})}var zFt=Mz(ES,{headers:{"user-agent":`octokit-graphql.js/${T3e} ${fp()}`},method:"POST",url:"/graphql"});function Qve(e){return Mz(e,{method:"POST",url:"/graphql"})}var $z="(?:[a-zA-Z0-9_-]+)",Yve="\\.",Wve=new RegExp(`^${$z}${Yve}${$z}${Yve}${$z}$`),k3e=Wve.test.bind(Wve);async function I3e(e){let t=k3e(e),n=e.startsWith("v1.")||e.startsWith("ghs_"),o=e.startsWith("ghu_");return{type:"token",token:e,tokenType:t?"app":n?"installation":o?"user-to-server":"oauth"}}function P3e(e){return e.split(/\./).length===3?`bearer ${e}`:`token ${e}`}async function L3e(e,t,n,o){let r=t.endpoint.merge(n,o);return r.headers.authorization=P3e(e),t(r)}var Kve=function(t){if(!t)throw new Error("[@octokit/auth-token] No token passed to createTokenAuth");if(typeof t!="string")throw new Error("[@octokit/auth-token] Token passed to createTokenAuth is not a string");return t=t.replace(/^(token|bearer) +/i,""),Object.assign(I3e.bind(null,t),{hook:L3e.bind(null,t)})};var Dz="7.0.6";var Jve=()=>{},R3e=console.warn.bind(console),M3e=console.error.bind(console);function $3e(e={}){return typeof e.debug!="function"&&(e.debug=Jve),typeof e.info!="function"&&(e.info=Jve),typeof e.warn!="function"&&(e.warn=R3e),typeof e.error!="function"&&(e.error=M3e),e}var Zve=`octokit-core.js/${Dz} ${fp()}`,Sy=class{constructor(t={}){Wt(this,"request");Wt(this,"graphql");Wt(this,"log");Wt(this,"hook");Wt(this,"auth");let n=new Tve.Collection,o={baseUrl:ES.endpoint.DEFAULTS.baseUrl,headers:{},request:Object.assign({},t.request,{hook:n.bind(null,"request")}),mediaType:{previews:[],format:""}};if(o.headers["user-agent"]=t.userAgent?`${t.userAgent} ${Zve}`:Zve,t.baseUrl&&(o.baseUrl=t.baseUrl),t.previews&&(o.mediaType.previews=t.previews),t.timeZone&&(o.headers["time-zone"]=t.timeZone),this.request=ES.defaults(o),this.graphql=Qve(this.request).defaults(o),this.log=$3e(t.log),this.hook=n,t.authStrategy){let{authStrategy:s,...i}=t,a=s(Object.assign({request:this.request,log:this.log,octokit:this,octokitOptions:i},t.auth));n.wrap("request",a.hook),this.auth=a}else if(!t.auth)this.auth=async()=>({type:"unauthenticated"});else{let s=Kve(t.auth);n.wrap("request",s.hook),this.auth=s}let r=this.constructor;for(let s=0;s!n.includes(s)))),r}};Wt(Sy,"VERSION",Dz),Wt(Sy,"plugins",[]);var Xve="6.0.0";function Nz(e){e.hook.wrap("request",(t,n)=>{e.log.debug("request",n);let o=Date.now(),r=e.request.endpoint.parse(n),s=r.url.replace(n.baseUrl,"");return t(n).then(i=>{let a=i.headers["x-github-request-id"];return e.log.info(`${r.method} ${s} - ${i.status} with id ${a} in ${Date.now()-o}ms`),i}).catch(i=>{let a=i.response?.headers["x-github-request-id"]||"UNKNOWN";throw e.log.error(`${r.method} ${s} - ${i.status} with id ${a} in ${Date.now()-o}ms`),i})})}Nz.VERSION=Xve;var D3e="0.0.0-development";function N3e(e){if(!e.data)return{...e,data:[]};if(!(("total_count"in e.data||"total_commits"in e.data)&&!("url"in e.data)))return e;let n=e.data.incomplete_results,o=e.data.repository_selection,r=e.data.total_count,s=e.data.total_commits;delete e.data.incomplete_results,delete e.data.repository_selection,delete e.data.total_count,delete e.data.total_commits;let i=Object.keys(e.data)[0],a=e.data[i];return e.data=a,typeof n<"u"&&(e.data.incomplete_results=n),typeof o<"u"&&(e.data.repository_selection=o),e.data.total_count=r,e.data.total_commits=s,e}function Fz(e,t,n){let o=typeof t=="function"?t.endpoint(n):e.request.endpoint(t,n),r=typeof t=="function"?t:e.request,s=o.method,i=o.headers,a=o.url;return{[Symbol.asyncIterator]:()=>({async next(){if(!a)return{done:!0};try{let l=await r({method:s,url:a,headers:i}),c=N3e(l);if(a=((c.headers.link||"").match(/<([^<>]+)>;\s*rel="next"/)||[])[1],!a&&"total_commits"in c.data){let u=new URL(c.url),p=u.searchParams,m=parseInt(p.get("page")||"1",10),g=parseInt(p.get("per_page")||"250",10);m*g{if(r.done)return t;let s=!1;function i(){s=!0}return t=t.concat(o?o(r.value,i):r.value.data),s?t:txe(e,t,n,o)})}var lOt=Object.assign(exe,{iterator:Fz});function Oz(e){return{paginate:Object.assign(exe.bind(null,e),{iterator:Fz.bind(null,e)})}}Oz.VERSION=D3e;var Uz="16.1.1";var F3e={actions:{addCustomLabelsToSelfHostedRunnerForOrg:["POST /orgs/{org}/actions/runners/{runner_id}/labels"],addCustomLabelsToSelfHostedRunnerForRepo:["POST /repos/{owner}/{repo}/actions/runners/{runner_id}/labels"],addRepoAccessToSelfHostedRunnerGroupInOrg:["PUT /orgs/{org}/actions/runner-groups/{runner_group_id}/repositories/{repository_id}"],addSelectedRepoToOrgSecret:["PUT /orgs/{org}/actions/secrets/{secret_name}/repositories/{repository_id}"],addSelectedRepoToOrgVariable:["PUT /orgs/{org}/actions/variables/{name}/repositories/{repository_id}"],approveWorkflowRun:["POST /repos/{owner}/{repo}/actions/runs/{run_id}/approve"],cancelWorkflowRun:["POST /repos/{owner}/{repo}/actions/runs/{run_id}/cancel"],createEnvironmentVariable:["POST /repos/{owner}/{repo}/environments/{environment_name}/variables"],createHostedRunnerForOrg:["POST /orgs/{org}/actions/hosted-runners"],createOrUpdateEnvironmentSecret:["PUT /repos/{owner}/{repo}/environments/{environment_name}/secrets/{secret_name}"],createOrUpdateOrgSecret:["PUT /orgs/{org}/actions/secrets/{secret_name}"],createOrUpdateRepoSecret:["PUT /repos/{owner}/{repo}/actions/secrets/{secret_name}"],createOrgVariable:["POST /orgs/{org}/actions/variables"],createRegistrationTokenForOrg:["POST /orgs/{org}/actions/runners/registration-token"],createRegistrationTokenForRepo:["POST /repos/{owner}/{repo}/actions/runners/registration-token"],createRemoveTokenForOrg:["POST /orgs/{org}/actions/runners/remove-token"],createRemoveTokenForRepo:["POST /repos/{owner}/{repo}/actions/runners/remove-token"],createRepoVariable:["POST /repos/{owner}/{repo}/actions/variables"],createWorkflowDispatch:["POST /repos/{owner}/{repo}/actions/workflows/{workflow_id}/dispatches"],deleteActionsCacheById:["DELETE /repos/{owner}/{repo}/actions/caches/{cache_id}"],deleteActionsCacheByKey:["DELETE /repos/{owner}/{repo}/actions/caches{?key,ref}"],deleteArtifact:["DELETE /repos/{owner}/{repo}/actions/artifacts/{artifact_id}"],deleteEnvironmentSecret:["DELETE /repos/{owner}/{repo}/environments/{environment_name}/secrets/{secret_name}"],deleteEnvironmentVariable:["DELETE /repos/{owner}/{repo}/environments/{environment_name}/variables/{name}"],deleteHostedRunnerForOrg:["DELETE /orgs/{org}/actions/hosted-runners/{hosted_runner_id}"],deleteOrgSecret:["DELETE /orgs/{org}/actions/secrets/{secret_name}"],deleteOrgVariable:["DELETE /orgs/{org}/actions/variables/{name}"],deleteRepoSecret:["DELETE /repos/{owner}/{repo}/actions/secrets/{secret_name}"],deleteRepoVariable:["DELETE /repos/{owner}/{repo}/actions/variables/{name}"],deleteSelfHostedRunnerFromOrg:["DELETE /orgs/{org}/actions/runners/{runner_id}"],deleteSelfHostedRunnerFromRepo:["DELETE /repos/{owner}/{repo}/actions/runners/{runner_id}"],deleteWorkflowRun:["DELETE /repos/{owner}/{repo}/actions/runs/{run_id}"],deleteWorkflowRunLogs:["DELETE /repos/{owner}/{repo}/actions/runs/{run_id}/logs"],disableSelectedRepositoryGithubActionsOrganization:["DELETE /orgs/{org}/actions/permissions/repositories/{repository_id}"],disableWorkflow:["PUT /repos/{owner}/{repo}/actions/workflows/{workflow_id}/disable"],downloadArtifact:["GET /repos/{owner}/{repo}/actions/artifacts/{artifact_id}/{archive_format}"],downloadJobLogsForWorkflowRun:["GET /repos/{owner}/{repo}/actions/jobs/{job_id}/logs"],downloadWorkflowRunAttemptLogs:["GET /repos/{owner}/{repo}/actions/runs/{run_id}/attempts/{attempt_number}/logs"],downloadWorkflowRunLogs:["GET /repos/{owner}/{repo}/actions/runs/{run_id}/logs"],enableSelectedRepositoryGithubActionsOrganization:["PUT /orgs/{org}/actions/permissions/repositories/{repository_id}"],enableWorkflow:["PUT /repos/{owner}/{repo}/actions/workflows/{workflow_id}/enable"],forceCancelWorkflowRun:["POST /repos/{owner}/{repo}/actions/runs/{run_id}/force-cancel"],generateRunnerJitconfigForOrg:["POST /orgs/{org}/actions/runners/generate-jitconfig"],generateRunnerJitconfigForRepo:["POST /repos/{owner}/{repo}/actions/runners/generate-jitconfig"],getActionsCacheList:["GET /repos/{owner}/{repo}/actions/caches"],getActionsCacheUsage:["GET /repos/{owner}/{repo}/actions/cache/usage"],getActionsCacheUsageByRepoForOrg:["GET /orgs/{org}/actions/cache/usage-by-repository"],getActionsCacheUsageForOrg:["GET /orgs/{org}/actions/cache/usage"],getAllowedActionsOrganization:["GET /orgs/{org}/actions/permissions/selected-actions"],getAllowedActionsRepository:["GET /repos/{owner}/{repo}/actions/permissions/selected-actions"],getArtifact:["GET /repos/{owner}/{repo}/actions/artifacts/{artifact_id}"],getCustomOidcSubClaimForRepo:["GET /repos/{owner}/{repo}/actions/oidc/customization/sub"],getEnvironmentPublicKey:["GET /repos/{owner}/{repo}/environments/{environment_name}/secrets/public-key"],getEnvironmentSecret:["GET /repos/{owner}/{repo}/environments/{environment_name}/secrets/{secret_name}"],getEnvironmentVariable:["GET /repos/{owner}/{repo}/environments/{environment_name}/variables/{name}"],getGithubActionsDefaultWorkflowPermissionsOrganization:["GET /orgs/{org}/actions/permissions/workflow"],getGithubActionsDefaultWorkflowPermissionsRepository:["GET /repos/{owner}/{repo}/actions/permissions/workflow"],getGithubActionsPermissionsOrganization:["GET /orgs/{org}/actions/permissions"],getGithubActionsPermissionsRepository:["GET /repos/{owner}/{repo}/actions/permissions"],getHostedRunnerForOrg:["GET /orgs/{org}/actions/hosted-runners/{hosted_runner_id}"],getHostedRunnersGithubOwnedImagesForOrg:["GET /orgs/{org}/actions/hosted-runnershttps://www.microsoft.com/images/github-owned"],getHostedRunnersLimitsForOrg:["GET /orgs/{org}/actions/hosted-runners/limits"],getHostedRunnersMachineSpecsForOrg:["GET /orgs/{org}/actions/hosted-runners/machine-sizes"],getHostedRunnersPartnerImagesForOrg:["GET /orgs/{org}/actions/hosted-runnershttps://www.microsoft.com/images/partner"],getHostedRunnersPlatformsForOrg:["GET /orgs/{org}/actions/hosted-runners/platforms"],getJobForWorkflowRun:["GET /repos/{owner}/{repo}/actions/jobs/{job_id}"],getOrgPublicKey:["GET /orgs/{org}/actions/secrets/public-key"],getOrgSecret:["GET /orgs/{org}/actions/secrets/{secret_name}"],getOrgVariable:["GET /orgs/{org}/actions/variables/{name}"],getPendingDeploymentsForRun:["GET /repos/{owner}/{repo}/actions/runs/{run_id}/pending_deployments"],getRepoPermissions:["GET /repos/{owner}/{repo}/actions/permissions",{},{renamed:["actions","getGithubActionsPermissionsRepository"]}],getRepoPublicKey:["GET /repos/{owner}/{repo}/actions/secrets/public-key"],getRepoSecret:["GET /repos/{owner}/{repo}/actions/secrets/{secret_name}"],getRepoVariable:["GET /repos/{owner}/{repo}/actions/variables/{name}"],getReviewsForRun:["GET /repos/{owner}/{repo}/actions/runs/{run_id}/approvals"],getSelfHostedRunnerForOrg:["GET /orgs/{org}/actions/runners/{runner_id}"],getSelfHostedRunnerForRepo:["GET /repos/{owner}/{repo}/actions/runners/{runner_id}"],getWorkflow:["GET /repos/{owner}/{repo}/actions/workflows/{workflow_id}"],getWorkflowAccessToRepository:["GET /repos/{owner}/{repo}/actions/permissions/access"],getWorkflowRun:["GET /repos/{owner}/{repo}/actions/runs/{run_id}"],getWorkflowRunAttempt:["GET /repos/{owner}/{repo}/actions/runs/{run_id}/attempts/{attempt_number}"],getWorkflowRunUsage:["GET /repos/{owner}/{repo}/actions/runs/{run_id}/timing"],getWorkflowUsage:["GET /repos/{owner}/{repo}/actions/workflows/{workflow_id}/timing"],listArtifactsForRepo:["GET /repos/{owner}/{repo}/actions/artifacts"],listEnvironmentSecrets:["GET /repos/{owner}/{repo}/environments/{environment_name}/secrets"],listEnvironmentVariables:["GET /repos/{owner}/{repo}/environments/{environment_name}/variables"],listGithubHostedRunnersInGroupForOrg:["GET /orgs/{org}/actions/runner-groups/{runner_group_id}/hosted-runners"],listHostedRunnersForOrg:["GET /orgs/{org}/actions/hosted-runners"],listJobsForWorkflowRun:["GET /repos/{owner}/{repo}/actions/runs/{run_id}/jobs"],listJobsForWorkflowRunAttempt:["GET /repos/{owner}/{repo}/actions/runs/{run_id}/attempts/{attempt_number}/jobs"],listLabelsForSelfHostedRunnerForOrg:["GET /orgs/{org}/actions/runners/{runner_id}/labels"],listLabelsForSelfHostedRunnerForRepo:["GET /repos/{owner}/{repo}/actions/runners/{runner_id}/labels"],listOrgSecrets:["GET /orgs/{org}/actions/secrets"],listOrgVariables:["GET /orgs/{org}/actions/variables"],listRepoOrganizationSecrets:["GET /repos/{owner}/{repo}/actions/organization-secrets"],listRepoOrganizationVariables:["GET /repos/{owner}/{repo}/actions/organization-variables"],listRepoSecrets:["GET /repos/{owner}/{repo}/actions/secrets"],listRepoVariables:["GET /repos/{owner}/{repo}/actions/variables"],listRepoWorkflows:["GET /repos/{owner}/{repo}/actions/workflows"],listRunnerApplicationsForOrg:["GET /orgs/{org}/actions/runners/downloads"],listRunnerApplicationsForRepo:["GET /repos/{owner}/{repo}/actions/runners/downloads"],listSelectedReposForOrgSecret:["GET /orgs/{org}/actions/secrets/{secret_name}/repositories"],listSelectedReposForOrgVariable:["GET /orgs/{org}/actions/variables/{name}/repositories"],listSelectedRepositoriesEnabledGithubActionsOrganization:["GET /orgs/{org}/actions/permissions/repositories"],listSelfHostedRunnersForOrg:["GET /orgs/{org}/actions/runners"],listSelfHostedRunnersForRepo:["GET /repos/{owner}/{repo}/actions/runners"],listWorkflowRunArtifacts:["GET /repos/{owner}/{repo}/actions/runs/{run_id}/artifacts"],listWorkflowRuns:["GET /repos/{owner}/{repo}/actions/workflows/{workflow_id}/runs"],listWorkflowRunsForRepo:["GET /repos/{owner}/{repo}/actions/runs"],reRunJobForWorkflowRun:["POST /repos/{owner}/{repo}/actions/jobs/{job_id}/rerun"],reRunWorkflow:["POST /repos/{owner}/{repo}/actions/runs/{run_id}/rerun"],reRunWorkflowFailedJobs:["POST /repos/{owner}/{repo}/actions/runs/{run_id}/rerun-failed-jobs"],removeAllCustomLabelsFromSelfHostedRunnerForOrg:["DELETE /orgs/{org}/actions/runners/{runner_id}/labels"],removeAllCustomLabelsFromSelfHostedRunnerForRepo:["DELETE /repos/{owner}/{repo}/actions/runners/{runner_id}/labels"],removeCustomLabelFromSelfHostedRunnerForOrg:["DELETE /orgs/{org}/actions/runners/{runner_id}/labels/{name}"],removeCustomLabelFromSelfHostedRunnerForRepo:["DELETE /repos/{owner}/{repo}/actions/runners/{runner_id}/labels/{name}"],removeSelectedRepoFromOrgSecret:["DELETE /orgs/{org}/actions/secrets/{secret_name}/repositories/{repository_id}"],removeSelectedRepoFromOrgVariable:["DELETE /orgs/{org}/actions/variables/{name}/repositories/{repository_id}"],reviewCustomGatesForRun:["POST /repos/{owner}/{repo}/actions/runs/{run_id}/deployment_protection_rule"],reviewPendingDeploymentsForRun:["POST /repos/{owner}/{repo}/actions/runs/{run_id}/pending_deployments"],setAllowedActionsOrganization:["PUT /orgs/{org}/actions/permissions/selected-actions"],setAllowedActionsRepository:["PUT /repos/{owner}/{repo}/actions/permissions/selected-actions"],setCustomLabelsForSelfHostedRunnerForOrg:["PUT /orgs/{org}/actions/runners/{runner_id}/labels"],setCustomLabelsForSelfHostedRunnerForRepo:["PUT /repos/{owner}/{repo}/actions/runners/{runner_id}/labels"],setCustomOidcSubClaimForRepo:["PUT /repos/{owner}/{repo}/actions/oidc/customization/sub"],setGithubActionsDefaultWorkflowPermissionsOrganization:["PUT /orgs/{org}/actions/permissions/workflow"],setGithubActionsDefaultWorkflowPermissionsRepository:["PUT /repos/{owner}/{repo}/actions/permissions/workflow"],setGithubActionsPermissionsOrganization:["PUT /orgs/{org}/actions/permissions"],setGithubActionsPermissionsRepository:["PUT /repos/{owner}/{repo}/actions/permissions"],setSelectedReposForOrgSecret:["PUT /orgs/{org}/actions/secrets/{secret_name}/repositories"],setSelectedReposForOrgVariable:["PUT /orgs/{org}/actions/variables/{name}/repositories"],setSelectedRepositoriesEnabledGithubActionsOrganization:["PUT /orgs/{org}/actions/permissions/repositories"],setWorkflowAccessToRepository:["PUT /repos/{owner}/{repo}/actions/permissions/access"],updateEnvironmentVariable:["PATCH /repos/{owner}/{repo}/environments/{environment_name}/variables/{name}"],updateHostedRunnerForOrg:["PATCH /orgs/{org}/actions/hosted-runners/{hosted_runner_id}"],updateOrgVariable:["PATCH /orgs/{org}/actions/variables/{name}"],updateRepoVariable:["PATCH /repos/{owner}/{repo}/actions/variables/{name}"]},activity:{checkRepoIsStarredByAuthenticatedUser:["GET /user/starred/{owner}/{repo}"],deleteRepoSubscription:["DELETE /repos/{owner}/{repo}/subscription"],deleteThreadSubscription:["DELETE /notifications/threads/{thread_id}/subscription"],getFeeds:["GET /feeds"],getRepoSubscription:["GET /repos/{owner}/{repo}/subscription"],getThread:["GET /notifications/threads/{thread_id}"],getThreadSubscriptionForAuthenticatedUser:["GET /notifications/threads/{thread_id}/subscription"],listEventsForAuthenticatedUser:["GET /users/{username}/events"],listNotificationsForAuthenticatedUser:["GET /notifications"],listOrgEventsForAuthenticatedUser:["GET /users/{username}/events/orgs/{org}"],listPublicEvents:["GET /events"],listPublicEventsForRepoNetwork:["GET /networks/{owner}/{repo}/events"],listPublicEventsForUser:["GET /users/{username}/events/public"],listPublicOrgEvents:["GET /orgs/{org}/events"],listReceivedEventsForUser:["GET /users/{username}/received_events"],listReceivedPublicEventsForUser:["GET /users/{username}/received_events/public"],listRepoEvents:["GET /repos/{owner}/{repo}/events"],listRepoNotificationsForAuthenticatedUser:["GET /repos/{owner}/{repo}/notifications"],listReposStarredByAuthenticatedUser:["GET /user/starred"],listReposStarredByUser:["GET /users/{username}/starred"],listReposWatchedByUser:["GET /users/{username}/subscriptions"],listStargazersForRepo:["GET /repos/{owner}/{repo}/stargazers"],listWatchedReposForAuthenticatedUser:["GET /user/subscriptions"],listWatchersForRepo:["GET /repos/{owner}/{repo}/subscribers"],markNotificationsAsRead:["PUT /notifications"],markRepoNotificationsAsRead:["PUT /repos/{owner}/{repo}/notifications"],markThreadAsDone:["DELETE /notifications/threads/{thread_id}"],markThreadAsRead:["PATCH /notifications/threads/{thread_id}"],setRepoSubscription:["PUT /repos/{owner}/{repo}/subscription"],setThreadSubscription:["PUT /notifications/threads/{thread_id}/subscription"],starRepoForAuthenticatedUser:["PUT /user/starred/{owner}/{repo}"],unstarRepoForAuthenticatedUser:["DELETE /user/starred/{owner}/{repo}"]},apps:{addRepoToInstallation:["PUT /user/installations/{installation_id}/repositories/{repository_id}",{},{renamed:["apps","addRepoToInstallationForAuthenticatedUser"]}],addRepoToInstallationForAuthenticatedUser:["PUT /user/installations/{installation_id}/repositories/{repository_id}"],checkToken:["POST /applications/{client_id}/token"],createFromManifest:["POST /app-manifests/{code}/conversions"],createInstallationAccessToken:["POST /app/installations/{installation_id}/access_tokens"],deleteAuthorization:["DELETE /applications/{client_id}/grant"],deleteInstallation:["DELETE /app/installations/{installation_id}"],deleteToken:["DELETE /applications/{client_id}/token"],getAuthenticated:["GET /app"],getBySlug:["GET /apps/{app_slug}"],getInstallation:["GET /app/installations/{installation_id}"],getOrgInstallation:["GET /orgs/{org}/installation"],getRepoInstallation:["GET /repos/{owner}/{repo}/installation"],getSubscriptionPlanForAccount:["GET /marketplace_listing/accounts/{account_id}"],getSubscriptionPlanForAccountStubbed:["GET /marketplace_listing/stubbed/accounts/{account_id}"],getUserInstallation:["GET /users/{username}/installation"],getWebhookConfigForApp:["GET /app/hook/config"],getWebhookDelivery:["GET /app/hook/deliveries/{delivery_id}"],listAccountsForPlan:["GET /marketplace_listing/plans/{plan_id}/accounts"],listAccountsForPlanStubbed:["GET /marketplace_listing/stubbed/plans/{plan_id}/accounts"],listInstallationReposForAuthenticatedUser:["GET /user/installations/{installation_id}/repositories"],listInstallationRequestsForAuthenticatedApp:["GET /app/installation-requests"],listInstallations:["GET /app/installations"],listInstallationsForAuthenticatedUser:["GET /user/installations"],listPlans:["GET /marketplace_listing/plans"],listPlansStubbed:["GET /marketplace_listing/stubbed/plans"],listReposAccessibleToInstallation:["GET /installation/repositories"],listSubscriptionsForAuthenticatedUser:["GET /user/marketplace_purchases"],listSubscriptionsForAuthenticatedUserStubbed:["GET /user/marketplace_purchases/stubbed"],listWebhookDeliveries:["GET /app/hook/deliveries"],redeliverWebhookDelivery:["POST /app/hook/deliveries/{delivery_id}/attempts"],removeRepoFromInstallation:["DELETE /user/installations/{installation_id}/repositories/{repository_id}",{},{renamed:["apps","removeRepoFromInstallationForAuthenticatedUser"]}],removeRepoFromInstallationForAuthenticatedUser:["DELETE /user/installations/{installation_id}/repositories/{repository_id}"],resetToken:["PATCH /applications/{client_id}/token"],revokeInstallationAccessToken:["DELETE /installation/token"],scopeToken:["POST /applications/{client_id}/token/scoped"],suspendInstallation:["PUT /app/installations/{installation_id}/suspended"],unsuspendInstallation:["DELETE /app/installations/{installation_id}/suspended"],updateWebhookConfigForApp:["PATCH /app/hook/config"]},billing:{getGithubActionsBillingOrg:["GET /orgs/{org}/settings/billing/actions"],getGithubActionsBillingUser:["GET /users/{username}/settings/billing/actions"],getGithubBillingUsageReportOrg:["GET /organizations/{org}/settings/billing/usage"],getGithubBillingUsageReportUser:["GET /users/{username}/settings/billing/usage"],getGithubPackagesBillingOrg:["GET /orgs/{org}/settings/billing/packages"],getGithubPackagesBillingUser:["GET /users/{username}/settings/billing/packages"],getSharedStorageBillingOrg:["GET /orgs/{org}/settings/billing/shared-storage"],getSharedStorageBillingUser:["GET /users/{username}/settings/billing/shared-storage"]},campaigns:{createCampaign:["POST /orgs/{org}/campaigns"],deleteCampaign:["DELETE /orgs/{org}/campaigns/{campaign_number}"],getCampaignSummary:["GET /orgs/{org}/campaigns/{campaign_number}"],listOrgCampaigns:["GET /orgs/{org}/campaigns"],updateCampaign:["PATCH /orgs/{org}/campaigns/{campaign_number}"]},checks:{create:["POST /repos/{owner}/{repo}/check-runs"],createSuite:["POST /repos/{owner}/{repo}/check-suites"],get:["GET /repos/{owner}/{repo}/check-runs/{check_run_id}"],getSuite:["GET /repos/{owner}/{repo}/check-suites/{check_suite_id}"],listAnnotations:["GET /repos/{owner}/{repo}/check-runs/{check_run_id}/annotations"],listForRef:["GET /repos/{owner}/{repo}/commits/{ref}/check-runs"],listForSuite:["GET /repos/{owner}/{repo}/check-suites/{check_suite_id}/check-runs"],listSuitesForRef:["GET /repos/{owner}/{repo}/commits/{ref}/check-suites"],rerequestRun:["POST /repos/{owner}/{repo}/check-runs/{check_run_id}/rerequest"],rerequestSuite:["POST /repos/{owner}/{repo}/check-suites/{check_suite_id}/rerequest"],setSuitesPreferences:["PATCH /repos/{owner}/{repo}/check-suites/preferences"],update:["PATCH /repos/{owner}/{repo}/check-runs/{check_run_id}"]},codeScanning:{commitAutofix:["POST /repos/{owner}/{repo}/code-scanning/alerts/{alert_number}/autofix/commits"],createAutofix:["POST /repos/{owner}/{repo}/code-scanning/alerts/{alert_number}/autofix"],createVariantAnalysis:["POST /repos/{owner}/{repo}/code-scanning/codeql/variant-analyses"],deleteAnalysis:["DELETE /repos/{owner}/{repo}/code-scanning/analyses/{analysis_id}{?confirm_delete}"],deleteCodeqlDatabase:["DELETE /repos/{owner}/{repo}/code-scanning/codeql/databases/{language}"],getAlert:["GET /repos/{owner}/{repo}/code-scanning/alerts/{alert_number}",{},{renamedParameters:{alert_id:"alert_number"}}],getAnalysis:["GET /repos/{owner}/{repo}/code-scanning/analyses/{analysis_id}"],getAutofix:["GET /repos/{owner}/{repo}/code-scanning/alerts/{alert_number}/autofix"],getCodeqlDatabase:["GET /repos/{owner}/{repo}/code-scanning/codeql/databases/{language}"],getDefaultSetup:["GET /repos/{owner}/{repo}/code-scanning/default-setup"],getSarif:["GET /repos/{owner}/{repo}/code-scanning/sarifs/{sarif_id}"],getVariantAnalysis:["GET /repos/{owner}/{repo}/code-scanning/codeql/variant-analyses/{codeql_variant_analysis_id}"],getVariantAnalysisRepoTask:["GET /repos/{owner}/{repo}/code-scanning/codeql/variant-analyses/{codeql_variant_analysis_id}/repos/{repo_owner}/{repo_name}"],listAlertInstances:["GET /repos/{owner}/{repo}/code-scanning/alerts/{alert_number}/instances"],listAlertsForOrg:["GET /orgs/{org}/code-scanning/alerts"],listAlertsForRepo:["GET /repos/{owner}/{repo}/code-scanning/alerts"],listAlertsInstances:["GET /repos/{owner}/{repo}/code-scanning/alerts/{alert_number}/instances",{},{renamed:["codeScanning","listAlertInstances"]}],listCodeqlDatabases:["GET /repos/{owner}/{repo}/code-scanning/codeql/databases"],listRecentAnalyses:["GET /repos/{owner}/{repo}/code-scanning/analyses"],updateAlert:["PATCH /repos/{owner}/{repo}/code-scanning/alerts/{alert_number}"],updateDefaultSetup:["PATCH /repos/{owner}/{repo}/code-scanning/default-setup"],uploadSarif:["POST /repos/{owner}/{repo}/code-scanning/sarifs"]},codeSecurity:{attachConfiguration:["POST /orgs/{org}/code-security/configurations/{configuration_id}/attach"],attachEnterpriseConfiguration:["POST /enterprises/{enterprise}/code-security/configurations/{configuration_id}/attach"],createConfiguration:["POST /orgs/{org}/code-security/configurations"],createConfigurationForEnterprise:["POST /enterprises/{enterprise}/code-security/configurations"],deleteConfiguration:["DELETE /orgs/{org}/code-security/configurations/{configuration_id}"],deleteConfigurationForEnterprise:["DELETE /enterprises/{enterprise}/code-security/configurations/{configuration_id}"],detachConfiguration:["DELETE /orgs/{org}/code-security/configurations/detach"],getConfiguration:["GET /orgs/{org}/code-security/configurations/{configuration_id}"],getConfigurationForRepository:["GET /repos/{owner}/{repo}/code-security-configuration"],getConfigurationsForEnterprise:["GET /enterprises/{enterprise}/code-security/configurations"],getConfigurationsForOrg:["GET /orgs/{org}/code-security/configurations"],getDefaultConfigurations:["GET /orgs/{org}/code-security/configurations/defaults"],getDefaultConfigurationsForEnterprise:["GET /enterprises/{enterprise}/code-security/configurations/defaults"],getRepositoriesForConfiguration:["GET /orgs/{org}/code-security/configurations/{configuration_id}/repositories"],getRepositoriesForEnterpriseConfiguration:["GET /enterprises/{enterprise}/code-security/configurations/{configuration_id}/repositories"],getSingleConfigurationForEnterprise:["GET /enterprises/{enterprise}/code-security/configurations/{configuration_id}"],setConfigurationAsDefault:["PUT /orgs/{org}/code-security/configurations/{configuration_id}/defaults"],setConfigurationAsDefaultForEnterprise:["PUT /enterprises/{enterprise}/code-security/configurations/{configuration_id}/defaults"],updateConfiguration:["PATCH /orgs/{org}/code-security/configurations/{configuration_id}"],updateEnterpriseConfiguration:["PATCH /enterprises/{enterprise}/code-security/configurations/{configuration_id}"]},codesOfConduct:{getAllCodesOfConduct:["GET /codes_of_conduct"],getConductCode:["GET /codes_of_conduct/{key}"]},codespaces:{addRepositoryForSecretForAuthenticatedUser:["PUT /user/codespaces/secrets/{secret_name}/repositories/{repository_id}"],addSelectedRepoToOrgSecret:["PUT /orgs/{org}/codespaces/secrets/{secret_name}/repositories/{repository_id}"],checkPermissionsForDevcontainer:["GET /repos/{owner}/{repo}/codespaces/permissions_check"],codespaceMachinesForAuthenticatedUser:["GET /user/codespaces/{codespace_name}/machines"],createForAuthenticatedUser:["POST /user/codespaces"],createOrUpdateOrgSecret:["PUT /orgs/{org}/codespaces/secrets/{secret_name}"],createOrUpdateRepoSecret:["PUT /repos/{owner}/{repo}/codespaces/secrets/{secret_name}"],createOrUpdateSecretForAuthenticatedUser:["PUT /user/codespaces/secrets/{secret_name}"],createWithPrForAuthenticatedUser:["POST /repos/{owner}/{repo}/pulls/{pull_number}/codespaces"],createWithRepoForAuthenticatedUser:["POST /repos/{owner}/{repo}/codespaces"],deleteForAuthenticatedUser:["DELETE /user/codespaces/{codespace_name}"],deleteFromOrganization:["DELETE /orgs/{org}/members/{username}/codespaces/{codespace_name}"],deleteOrgSecret:["DELETE /orgs/{org}/codespaces/secrets/{secret_name}"],deleteRepoSecret:["DELETE /repos/{owner}/{repo}/codespaces/secrets/{secret_name}"],deleteSecretForAuthenticatedUser:["DELETE /user/codespaces/secrets/{secret_name}"],exportForAuthenticatedUser:["POST /user/codespaces/{codespace_name}/exports"],getCodespacesForUserInOrg:["GET /orgs/{org}/members/{username}/codespaces"],getExportDetailsForAuthenticatedUser:["GET /user/codespaces/{codespace_name}/exports/{export_id}"],getForAuthenticatedUser:["GET /user/codespaces/{codespace_name}"],getOrgPublicKey:["GET /orgs/{org}/codespaces/secrets/public-key"],getOrgSecret:["GET /orgs/{org}/codespaces/secrets/{secret_name}"],getPublicKeyForAuthenticatedUser:["GET /user/codespaces/secrets/public-key"],getRepoPublicKey:["GET /repos/{owner}/{repo}/codespaces/secrets/public-key"],getRepoSecret:["GET /repos/{owner}/{repo}/codespaces/secrets/{secret_name}"],getSecretForAuthenticatedUser:["GET /user/codespaces/secrets/{secret_name}"],listDevcontainersInRepositoryForAuthenticatedUser:["GET /repos/{owner}/{repo}/codespaces/devcontainers"],listForAuthenticatedUser:["GET /user/codespaces"],listInOrganization:["GET /orgs/{org}/codespaces",{},{renamedParameters:{org_id:"org"}}],listInRepositoryForAuthenticatedUser:["GET /repos/{owner}/{repo}/codespaces"],listOrgSecrets:["GET /orgs/{org}/codespaces/secrets"],listRepoSecrets:["GET /repos/{owner}/{repo}/codespaces/secrets"],listRepositoriesForSecretForAuthenticatedUser:["GET /user/codespaces/secrets/{secret_name}/repositories"],listSecretsForAuthenticatedUser:["GET /user/codespaces/secrets"],listSelectedReposForOrgSecret:["GET /orgs/{org}/codespaces/secrets/{secret_name}/repositories"],preFlightWithRepoForAuthenticatedUser:["GET /repos/{owner}/{repo}/codespaces/new"],publishForAuthenticatedUser:["POST /user/codespaces/{codespace_name}/publish"],removeRepositoryForSecretForAuthenticatedUser:["DELETE /user/codespaces/secrets/{secret_name}/repositories/{repository_id}"],removeSelectedRepoFromOrgSecret:["DELETE /orgs/{org}/codespaces/secrets/{secret_name}/repositories/{repository_id}"],repoMachinesForAuthenticatedUser:["GET /repos/{owner}/{repo}/codespaces/machines"],setRepositoriesForSecretForAuthenticatedUser:["PUT /user/codespaces/secrets/{secret_name}/repositories"],setSelectedReposForOrgSecret:["PUT /orgs/{org}/codespaces/secrets/{secret_name}/repositories"],startForAuthenticatedUser:["POST /user/codespaces/{codespace_name}/start"],stopForAuthenticatedUser:["POST /user/codespaces/{codespace_name}/stop"],stopInOrganization:["POST /orgs/{org}/members/{username}/codespaces/{codespace_name}/stop"],updateForAuthenticatedUser:["PATCH /user/codespaces/{codespace_name}"]},copilot:{addCopilotSeatsForTeams:["POST /orgs/{org}/copilot/billing/selected_teams"],addCopilotSeatsForUsers:["POST /orgs/{org}/copilot/billing/selected_users"],cancelCopilotSeatAssignmentForTeams:["DELETE /orgs/{org}/copilot/billing/selected_teams"],cancelCopilotSeatAssignmentForUsers:["DELETE /orgs/{org}/copilot/billing/selected_users"],copilotMetricsForOrganization:["GET /orgs/{org}/copilot/metrics"],copilotMetricsForTeam:["GET /orgs/{org}/team/{team_slug}/copilot/metrics"],getCopilotOrganizationDetails:["GET /orgs/{org}/copilot/billing"],getCopilotSeatDetailsForUser:["GET /orgs/{org}/members/{username}/copilot"],listCopilotSeats:["GET /orgs/{org}/copilot/billing/seats"]},credentials:{revoke:["POST /credentials/revoke"]},dependabot:{addSelectedRepoToOrgSecret:["PUT /orgs/{org}/dependabot/secrets/{secret_name}/repositories/{repository_id}"],createOrUpdateOrgSecret:["PUT /orgs/{org}/dependabot/secrets/{secret_name}"],createOrUpdateRepoSecret:["PUT /repos/{owner}/{repo}/dependabot/secrets/{secret_name}"],deleteOrgSecret:["DELETE /orgs/{org}/dependabot/secrets/{secret_name}"],deleteRepoSecret:["DELETE /repos/{owner}/{repo}/dependabot/secrets/{secret_name}"],getAlert:["GET /repos/{owner}/{repo}/dependabot/alerts/{alert_number}"],getOrgPublicKey:["GET /orgs/{org}/dependabot/secrets/public-key"],getOrgSecret:["GET /orgs/{org}/dependabot/secrets/{secret_name}"],getRepoPublicKey:["GET /repos/{owner}/{repo}/dependabot/secrets/public-key"],getRepoSecret:["GET /repos/{owner}/{repo}/dependabot/secrets/{secret_name}"],listAlertsForEnterprise:["GET /enterprises/{enterprise}/dependabot/alerts"],listAlertsForOrg:["GET /orgs/{org}/dependabot/alerts"],listAlertsForRepo:["GET /repos/{owner}/{repo}/dependabot/alerts"],listOrgSecrets:["GET /orgs/{org}/dependabot/secrets"],listRepoSecrets:["GET /repos/{owner}/{repo}/dependabot/secrets"],listSelectedReposForOrgSecret:["GET /orgs/{org}/dependabot/secrets/{secret_name}/repositories"],removeSelectedRepoFromOrgSecret:["DELETE /orgs/{org}/dependabot/secrets/{secret_name}/repositories/{repository_id}"],repositoryAccessForOrg:["GET /organizations/{org}/dependabot/repository-access"],setRepositoryAccessDefaultLevel:["PUT /organizations/{org}/dependabot/repository-access/default-level"],setSelectedReposForOrgSecret:["PUT /orgs/{org}/dependabot/secrets/{secret_name}/repositories"],updateAlert:["PATCH /repos/{owner}/{repo}/dependabot/alerts/{alert_number}"],updateRepositoryAccessForOrg:["PATCH /organizations/{org}/dependabot/repository-access"]},dependencyGraph:{createRepositorySnapshot:["POST /repos/{owner}/{repo}/dependency-graph/snapshots"],diffRange:["GET /repos/{owner}/{repo}/dependency-graph/compare/{basehead}"],exportSbom:["GET /repos/{owner}/{repo}/dependency-graph/sbom"]},emojis:{get:["GET /emojis"]},gists:{checkIsStarred:["GET /gists/{gist_id}/star"],create:["POST /gists"],createComment:["POST /gists/{gist_id}/comments"],delete:["DELETE /gists/{gist_id}"],deleteComment:["DELETE /gists/{gist_id}/comments/{comment_id}"],fork:["POST /gists/{gist_id}/forks"],get:["GET /gists/{gist_id}"],getComment:["GET /gists/{gist_id}/comments/{comment_id}"],getRevision:["GET /gists/{gist_id}/{sha}"],list:["GET /gists"],listComments:["GET /gists/{gist_id}/comments"],listCommits:["GET /gists/{gist_id}/commits"],listForUser:["GET /users/{username}/gists"],listForks:["GET /gists/{gist_id}/forks"],listPublic:["GET /gists/public"],listStarred:["GET /gists/starred"],star:["PUT /gists/{gist_id}/star"],unstar:["DELETE /gists/{gist_id}/star"],update:["PATCH /gists/{gist_id}"],updateComment:["PATCH /gists/{gist_id}/comments/{comment_id}"]},git:{createBlob:["POST /repos/{owner}/{repo}/git/blobs"],createCommit:["POST /repos/{owner}/{repo}/git/commits"],createRef:["POST /repos/{owner}/{repo}/git/refs"],createTag:["POST /repos/{owner}/{repo}/git/tags"],createTree:["POST /repos/{owner}/{repo}/git/trees"],deleteRef:["DELETE /repos/{owner}/{repo}/git/refs/{ref}"],getBlob:["GET /repos/{owner}/{repo}/git/blobs/{file_sha}"],getCommit:["GET /repos/{owner}/{repo}/git/commits/{commit_sha}"],getRef:["GET /repos/{owner}/{repo}/git/ref/{ref}"],getTag:["GET /repos/{owner}/{repo}/git/tags/{tag_sha}"],getTree:["GET /repos/{owner}/{repo}/git/trees/{tree_sha}"],listMatchingRefs:["GET /repos/{owner}/{repo}/git/matching-refs/{ref}"],updateRef:["PATCH /repos/{owner}/{repo}/git/refs/{ref}"]},gitignore:{getAllTemplates:["GET /gitignore/templates"],getTemplate:["GET /gitignore/templates/{name}"]},hostedCompute:{createNetworkConfigurationForOrg:["POST /orgs/{org}/settings/network-configurations"],deleteNetworkConfigurationFromOrg:["DELETE /orgs/{org}/settings/network-configurations/{network_configuration_id}"],getNetworkConfigurationForOrg:["GET /orgs/{org}/settings/network-configurations/{network_configuration_id}"],getNetworkSettingsForOrg:["GET /orgs/{org}/settings/network-settings/{network_settings_id}"],listNetworkConfigurationsForOrg:["GET /orgs/{org}/settings/network-configurations"],updateNetworkConfigurationForOrg:["PATCH /orgs/{org}/settings/network-configurations/{network_configuration_id}"]},interactions:{getRestrictionsForAuthenticatedUser:["GET /user/interaction-limits"],getRestrictionsForOrg:["GET /orgs/{org}/interaction-limits"],getRestrictionsForRepo:["GET /repos/{owner}/{repo}/interaction-limits"],getRestrictionsForYourPublicRepos:["GET /user/interaction-limits",{},{renamed:["interactions","getRestrictionsForAuthenticatedUser"]}],removeRestrictionsForAuthenticatedUser:["DELETE /user/interaction-limits"],removeRestrictionsForOrg:["DELETE /orgs/{org}/interaction-limits"],removeRestrictionsForRepo:["DELETE /repos/{owner}/{repo}/interaction-limits"],removeRestrictionsForYourPublicRepos:["DELETE /user/interaction-limits",{},{renamed:["interactions","removeRestrictionsForAuthenticatedUser"]}],setRestrictionsForAuthenticatedUser:["PUT /user/interaction-limits"],setRestrictionsForOrg:["PUT /orgs/{org}/interaction-limits"],setRestrictionsForRepo:["PUT /repos/{owner}/{repo}/interaction-limits"],setRestrictionsForYourPublicRepos:["PUT /user/interaction-limits",{},{renamed:["interactions","setRestrictionsForAuthenticatedUser"]}]},issues:{addAssignees:["POST /repos/{owner}/{repo}/issues/{issue_number}/assignees"],addBlockedByDependency:["POST /repos/{owner}/{repo}/issues/{issue_number}/dependencies/blocked_by"],addLabels:["POST /repos/{owner}/{repo}/issues/{issue_number}/labels"],addSubIssue:["POST /repos/{owner}/{repo}/issues/{issue_number}/sub_issues"],checkUserCanBeAssigned:["GET /repos/{owner}/{repo}/assignees/{assignee}"],checkUserCanBeAssignedToIssue:["GET /repos/{owner}/{repo}/issues/{issue_number}/assignees/{assignee}"],create:["POST /repos/{owner}/{repo}/issues"],createComment:["POST /repos/{owner}/{repo}/issues/{issue_number}/comments"],createLabel:["POST /repos/{owner}/{repo}/labels"],createMilestone:["POST /repos/{owner}/{repo}/milestones"],deleteComment:["DELETE /repos/{owner}/{repo}/issues/comments/{comment_id}"],deleteLabel:["DELETE /repos/{owner}/{repo}/labels/{name}"],deleteMilestone:["DELETE /repos/{owner}/{repo}/milestones/{milestone_number}"],get:["GET /repos/{owner}/{repo}/issues/{issue_number}"],getComment:["GET /repos/{owner}/{repo}/issues/comments/{comment_id}"],getEvent:["GET /repos/{owner}/{repo}/issues/events/{event_id}"],getLabel:["GET /repos/{owner}/{repo}/labels/{name}"],getMilestone:["GET /repos/{owner}/{repo}/milestones/{milestone_number}"],getParent:["GET /repos/{owner}/{repo}/issues/{issue_number}/parent"],list:["GET /issues"],listAssignees:["GET /repos/{owner}/{repo}/assignees"],listComments:["GET /repos/{owner}/{repo}/issues/{issue_number}/comments"],listCommentsForRepo:["GET /repos/{owner}/{repo}/issues/comments"],listDependenciesBlockedBy:["GET /repos/{owner}/{repo}/issues/{issue_number}/dependencies/blocked_by"],listDependenciesBlocking:["GET /repos/{owner}/{repo}/issues/{issue_number}/dependencies/blocking"],listEvents:["GET /repos/{owner}/{repo}/issues/{issue_number}/events"],listEventsForRepo:["GET /repos/{owner}/{repo}/issues/events"],listEventsForTimeline:["GET /repos/{owner}/{repo}/issues/{issue_number}/timeline"],listForAuthenticatedUser:["GET /user/issues"],listForOrg:["GET /orgs/{org}/issues"],listForRepo:["GET /repos/{owner}/{repo}/issues"],listLabelsForMilestone:["GET /repos/{owner}/{repo}/milestones/{milestone_number}/labels"],listLabelsForRepo:["GET /repos/{owner}/{repo}/labels"],listLabelsOnIssue:["GET /repos/{owner}/{repo}/issues/{issue_number}/labels"],listMilestones:["GET /repos/{owner}/{repo}/milestones"],listSubIssues:["GET /repos/{owner}/{repo}/issues/{issue_number}/sub_issues"],lock:["PUT /repos/{owner}/{repo}/issues/{issue_number}/lock"],removeAllLabels:["DELETE /repos/{owner}/{repo}/issues/{issue_number}/labels"],removeAssignees:["DELETE /repos/{owner}/{repo}/issues/{issue_number}/assignees"],removeDependencyBlockedBy:["DELETE /repos/{owner}/{repo}/issues/{issue_number}/dependencies/blocked_by/{issue_id}"],removeLabel:["DELETE /repos/{owner}/{repo}/issues/{issue_number}/labels/{name}"],removeSubIssue:["DELETE /repos/{owner}/{repo}/issues/{issue_number}/sub_issue"],reprioritizeSubIssue:["PATCH /repos/{owner}/{repo}/issues/{issue_number}/sub_issues/priority"],setLabels:["PUT /repos/{owner}/{repo}/issues/{issue_number}/labels"],unlock:["DELETE /repos/{owner}/{repo}/issues/{issue_number}/lock"],update:["PATCH /repos/{owner}/{repo}/issues/{issue_number}"],updateComment:["PATCH /repos/{owner}/{repo}/issues/comments/{comment_id}"],updateLabel:["PATCH /repos/{owner}/{repo}/labels/{name}"],updateMilestone:["PATCH /repos/{owner}/{repo}/milestones/{milestone_number}"]},licenses:{get:["GET /licenses/{license}"],getAllCommonlyUsed:["GET /licenses"],getForRepo:["GET /repos/{owner}/{repo}/license"]},markdown:{render:["POST /markdown"],renderRaw:["POST /markdown/raw",{headers:{"content-type":"text/plain; charset=utf-8"}}]},meta:{get:["GET /meta"],getAllVersions:["GET /versions"],getOctocat:["GET /octocat"],getZen:["GET /zen"],root:["GET /"]},migrations:{deleteArchiveForAuthenticatedUser:["DELETE /user/migrations/{migration_id}/archive"],deleteArchiveForOrg:["DELETE /orgs/{org}/migrations/{migration_id}/archive"],downloadArchiveForOrg:["GET /orgs/{org}/migrations/{migration_id}/archive"],getArchiveForAuthenticatedUser:["GET /user/migrations/{migration_id}/archive"],getStatusForAuthenticatedUser:["GET /user/migrations/{migration_id}"],getStatusForOrg:["GET /orgs/{org}/migrations/{migration_id}"],listForAuthenticatedUser:["GET /user/migrations"],listForOrg:["GET /orgs/{org}/migrations"],listReposForAuthenticatedUser:["GET /user/migrations/{migration_id}/repositories"],listReposForOrg:["GET /orgs/{org}/migrations/{migration_id}/repositories"],listReposForUser:["GET /user/migrations/{migration_id}/repositories",{},{renamed:["migrations","listReposForAuthenticatedUser"]}],startForAuthenticatedUser:["POST /user/migrations"],startForOrg:["POST /orgs/{org}/migrations"],unlockRepoForAuthenticatedUser:["DELETE /user/migrations/{migration_id}/repos/{repo_name}/lock"],unlockRepoForOrg:["DELETE /orgs/{org}/migrations/{migration_id}/repos/{repo_name}/lock"]},oidc:{getOidcCustomSubTemplateForOrg:["GET /orgs/{org}/actions/oidc/customization/sub"],updateOidcCustomSubTemplateForOrg:["PUT /orgs/{org}/actions/oidc/customization/sub"]},orgs:{addSecurityManagerTeam:["PUT /orgs/{org}/security-managers/teams/{team_slug}",{},{deprecated:"octokit.rest.orgs.addSecurityManagerTeam() is deprecated, see https://docs.github.com/rest/orgs/security-managers#add-a-security-manager-team"}],assignTeamToOrgRole:["PUT /orgs/{org}/organization-roles/teams/{team_slug}/{role_id}"],assignUserToOrgRole:["PUT /orgs/{org}/organization-roles/users/{username}/{role_id}"],blockUser:["PUT /orgs/{org}/blocks/{username}"],cancelInvitation:["DELETE /orgs/{org}/invitations/{invitation_id}"],checkBlockedUser:["GET /orgs/{org}/blocks/{username}"],checkMembershipForUser:["GET /orgs/{org}/members/{username}"],checkPublicMembershipForUser:["GET /orgs/{org}/public_members/{username}"],convertMemberToOutsideCollaborator:["PUT /orgs/{org}/outside_collaborators/{username}"],createArtifactStorageRecord:["POST /orgs/{org}/artifacts/metadata/storage-record"],createInvitation:["POST /orgs/{org}/invitations"],createIssueType:["POST /orgs/{org}/issue-types"],createOrUpdateCustomProperties:["PATCH /orgs/{org}/properties/schema"],createOrUpdateCustomPropertiesValuesForRepos:["PATCH /orgs/{org}/properties/values"],createOrUpdateCustomProperty:["PUT /orgs/{org}/properties/schema/{custom_property_name}"],createWebhook:["POST /orgs/{org}/hooks"],delete:["DELETE /orgs/{org}"],deleteAttestationsBulk:["POST /orgs/{org}/attestations/delete-request"],deleteAttestationsById:["DELETE /orgs/{org}/attestations/{attestation_id}"],deleteAttestationsBySubjectDigest:["DELETE /orgs/{org}/attestations/digest/{subject_digest}"],deleteIssueType:["DELETE /orgs/{org}/issue-types/{issue_type_id}"],deleteWebhook:["DELETE /orgs/{org}/hooks/{hook_id}"],get:["GET /orgs/{org}"],getAllCustomProperties:["GET /orgs/{org}/properties/schema"],getCustomProperty:["GET /orgs/{org}/properties/schema/{custom_property_name}"],getMembershipForAuthenticatedUser:["GET /user/memberships/orgs/{org}"],getMembershipForUser:["GET /orgs/{org}/memberships/{username}"],getOrgRole:["GET /orgs/{org}/organization-roles/{role_id}"],getOrgRulesetHistory:["GET /orgs/{org}/rulesets/{ruleset_id}/history"],getOrgRulesetVersion:["GET /orgs/{org}/rulesets/{ruleset_id}/history/{version_id}"],getWebhook:["GET /orgs/{org}/hooks/{hook_id}"],getWebhookConfigForOrg:["GET /orgs/{org}/hooks/{hook_id}/config"],getWebhookDelivery:["GET /orgs/{org}/hooks/{hook_id}/deliveries/{delivery_id}"],list:["GET /organizations"],listAppInstallations:["GET /orgs/{org}/installations"],listArtifactStorageRecords:["GET /orgs/{org}/artifacts/{subject_digest}/metadata/storage-records"],listAttestations:["GET /orgs/{org}/attestations/{subject_digest}"],listAttestationsBulk:["POST /orgs/{org}/attestations/bulk-list{?per_page,before,after}"],listBlockedUsers:["GET /orgs/{org}/blocks"],listCustomPropertiesValuesForRepos:["GET /orgs/{org}/properties/values"],listFailedInvitations:["GET /orgs/{org}/failed_invitations"],listForAuthenticatedUser:["GET /user/orgs"],listForUser:["GET /users/{username}/orgs"],listInvitationTeams:["GET /orgs/{org}/invitations/{invitation_id}/teams"],listIssueTypes:["GET /orgs/{org}/issue-types"],listMembers:["GET /orgs/{org}/members"],listMembershipsForAuthenticatedUser:["GET /user/memberships/orgs"],listOrgRoleTeams:["GET /orgs/{org}/organization-roles/{role_id}/teams"],listOrgRoleUsers:["GET /orgs/{org}/organization-roles/{role_id}/users"],listOrgRoles:["GET /orgs/{org}/organization-roles"],listOrganizationFineGrainedPermissions:["GET /orgs/{org}/organization-fine-grained-permissions"],listOutsideCollaborators:["GET /orgs/{org}/outside_collaborators"],listPatGrantRepositories:["GET /orgs/{org}/personal-access-tokens/{pat_id}/repositories"],listPatGrantRequestRepositories:["GET /orgs/{org}/personal-access-token-requests/{pat_request_id}/repositories"],listPatGrantRequests:["GET /orgs/{org}/personal-access-token-requests"],listPatGrants:["GET /orgs/{org}/personal-access-tokens"],listPendingInvitations:["GET /orgs/{org}/invitations"],listPublicMembers:["GET /orgs/{org}/public_members"],listSecurityManagerTeams:["GET /orgs/{org}/security-managers",{},{deprecated:"octokit.rest.orgs.listSecurityManagerTeams() is deprecated, see https://docs.github.com/rest/orgs/security-managers#list-security-manager-teams"}],listWebhookDeliveries:["GET /orgs/{org}/hooks/{hook_id}/deliveries"],listWebhooks:["GET /orgs/{org}/hooks"],pingWebhook:["POST /orgs/{org}/hooks/{hook_id}/pings"],redeliverWebhookDelivery:["POST /orgs/{org}/hooks/{hook_id}/deliveries/{delivery_id}/attempts"],removeCustomProperty:["DELETE /orgs/{org}/properties/schema/{custom_property_name}"],removeMember:["DELETE /orgs/{org}/members/{username}"],removeMembershipForUser:["DELETE /orgs/{org}/memberships/{username}"],removeOutsideCollaborator:["DELETE /orgs/{org}/outside_collaborators/{username}"],removePublicMembershipForAuthenticatedUser:["DELETE /orgs/{org}/public_members/{username}"],removeSecurityManagerTeam:["DELETE /orgs/{org}/security-managers/teams/{team_slug}",{},{deprecated:"octokit.rest.orgs.removeSecurityManagerTeam() is deprecated, see https://docs.github.com/rest/orgs/security-managers#remove-a-security-manager-team"}],reviewPatGrantRequest:["POST /orgs/{org}/personal-access-token-requests/{pat_request_id}"],reviewPatGrantRequestsInBulk:["POST /orgs/{org}/personal-access-token-requests"],revokeAllOrgRolesTeam:["DELETE /orgs/{org}/organization-roles/teams/{team_slug}"],revokeAllOrgRolesUser:["DELETE /orgs/{org}/organization-roles/users/{username}"],revokeOrgRoleTeam:["DELETE /orgs/{org}/organization-roles/teams/{team_slug}/{role_id}"],revokeOrgRoleUser:["DELETE /orgs/{org}/organization-roles/users/{username}/{role_id}"],setMembershipForUser:["PUT /orgs/{org}/memberships/{username}"],setPublicMembershipForAuthenticatedUser:["PUT /orgs/{org}/public_members/{username}"],unblockUser:["DELETE /orgs/{org}/blocks/{username}"],update:["PATCH /orgs/{org}"],updateIssueType:["PUT /orgs/{org}/issue-types/{issue_type_id}"],updateMembershipForAuthenticatedUser:["PATCH /user/memberships/orgs/{org}"],updatePatAccess:["POST /orgs/{org}/personal-access-tokens/{pat_id}"],updatePatAccesses:["POST /orgs/{org}/personal-access-tokens"],updateWebhook:["PATCH /orgs/{org}/hooks/{hook_id}"],updateWebhookConfigForOrg:["PATCH /orgs/{org}/hooks/{hook_id}/config"]},packages:{deletePackageForAuthenticatedUser:["DELETE /user/packages/{package_type}/{package_name}"],deletePackageForOrg:["DELETE /orgs/{org}/packages/{package_type}/{package_name}"],deletePackageForUser:["DELETE /users/{username}/packages/{package_type}/{package_name}"],deletePackageVersionForAuthenticatedUser:["DELETE /user/packages/{package_type}/{package_name}/versions/{package_version_id}"],deletePackageVersionForOrg:["DELETE /orgs/{org}/packages/{package_type}/{package_name}/versions/{package_version_id}"],deletePackageVersionForUser:["DELETE /users/{username}/packages/{package_type}/{package_name}/versions/{package_version_id}"],getAllPackageVersionsForAPackageOwnedByAnOrg:["GET /orgs/{org}/packages/{package_type}/{package_name}/versions",{},{renamed:["packages","getAllPackageVersionsForPackageOwnedByOrg"]}],getAllPackageVersionsForAPackageOwnedByTheAuthenticatedUser:["GET /user/packages/{package_type}/{package_name}/versions",{},{renamed:["packages","getAllPackageVersionsForPackageOwnedByAuthenticatedUser"]}],getAllPackageVersionsForPackageOwnedByAuthenticatedUser:["GET /user/packages/{package_type}/{package_name}/versions"],getAllPackageVersionsForPackageOwnedByOrg:["GET /orgs/{org}/packages/{package_type}/{package_name}/versions"],getAllPackageVersionsForPackageOwnedByUser:["GET /users/{username}/packages/{package_type}/{package_name}/versions"],getPackageForAuthenticatedUser:["GET /user/packages/{package_type}/{package_name}"],getPackageForOrganization:["GET /orgs/{org}/packages/{package_type}/{package_name}"],getPackageForUser:["GET /users/{username}/packages/{package_type}/{package_name}"],getPackageVersionForAuthenticatedUser:["GET /user/packages/{package_type}/{package_name}/versions/{package_version_id}"],getPackageVersionForOrganization:["GET /orgs/{org}/packages/{package_type}/{package_name}/versions/{package_version_id}"],getPackageVersionForUser:["GET /users/{username}/packages/{package_type}/{package_name}/versions/{package_version_id}"],listDockerMigrationConflictingPackagesForAuthenticatedUser:["GET /user/docker/conflicts"],listDockerMigrationConflictingPackagesForOrganization:["GET /orgs/{org}/docker/conflicts"],listDockerMigrationConflictingPackagesForUser:["GET /users/{username}/docker/conflicts"],listPackagesForAuthenticatedUser:["GET /user/packages"],listPackagesForOrganization:["GET /orgs/{org}/packages"],listPackagesForUser:["GET /users/{username}/packages"],restorePackageForAuthenticatedUser:["POST /user/packages/{package_type}/{package_name}/restore{?token}"],restorePackageForOrg:["POST /orgs/{org}/packages/{package_type}/{package_name}/restore{?token}"],restorePackageForUser:["POST /users/{username}/packages/{package_type}/{package_name}/restore{?token}"],restorePackageVersionForAuthenticatedUser:["POST /user/packages/{package_type}/{package_name}/versions/{package_version_id}/restore"],restorePackageVersionForOrg:["POST /orgs/{org}/packages/{package_type}/{package_name}/versions/{package_version_id}/restore"],restorePackageVersionForUser:["POST /users/{username}/packages/{package_type}/{package_name}/versions/{package_version_id}/restore"]},privateRegistries:{createOrgPrivateRegistry:["POST /orgs/{org}/private-registries"],deleteOrgPrivateRegistry:["DELETE /orgs/{org}/private-registries/{secret_name}"],getOrgPrivateRegistry:["GET /orgs/{org}/private-registries/{secret_name}"],getOrgPublicKey:["GET /orgs/{org}/private-registries/public-key"],listOrgPrivateRegistries:["GET /orgs/{org}/private-registries"],updateOrgPrivateRegistry:["PATCH /orgs/{org}/private-registries/{secret_name}"]},projects:{addItemForOrg:["POST /orgs/{org}/projectsV2/{project_number}/items"],addItemForUser:["POST /users/{user_id}/projectsV2/{project_number}/items"],deleteItemForOrg:["DELETE /orgs/{org}/projectsV2/{project_number}/items/{item_id}"],deleteItemForUser:["DELETE /users/{user_id}/projectsV2/{project_number}/items/{item_id}"],getFieldForOrg:["GET /orgs/{org}/projectsV2/{project_number}/fields/{field_id}"],getFieldForUser:["GET /users/{user_id}/projectsV2/{project_number}/fields/{field_id}"],getForOrg:["GET /orgs/{org}/projectsV2/{project_number}"],getForUser:["GET /users/{user_id}/projectsV2/{project_number}"],getOrgItem:["GET /orgs/{org}/projectsV2/{project_number}/items/{item_id}"],getUserItem:["GET /users/{user_id}/projectsV2/{project_number}/items/{item_id}"],listFieldsForOrg:["GET /orgs/{org}/projectsV2/{project_number}/fields"],listFieldsForUser:["GET /users/{user_id}/projectsV2/{project_number}/fields"],listForOrg:["GET /orgs/{org}/projectsV2"],listForUser:["GET /users/{username}/projectsV2"],listItemsForOrg:["GET /orgs/{org}/projectsV2/{project_number}/items"],listItemsForUser:["GET /users/{user_id}/projectsV2/{project_number}/items"],updateItemForOrg:["PATCH /orgs/{org}/projectsV2/{project_number}/items/{item_id}"],updateItemForUser:["PATCH /users/{user_id}/projectsV2/{project_number}/items/{item_id}"]},pulls:{checkIfMerged:["GET /repos/{owner}/{repo}/pulls/{pull_number}/merge"],create:["POST /repos/{owner}/{repo}/pulls"],createReplyForReviewComment:["POST /repos/{owner}/{repo}/pulls/{pull_number}/comments/{comment_id}/replies"],createReview:["POST /repos/{owner}/{repo}/pulls/{pull_number}/reviews"],createReviewComment:["POST /repos/{owner}/{repo}/pulls/{pull_number}/comments"],deletePendingReview:["DELETE /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}"],deleteReviewComment:["DELETE /repos/{owner}/{repo}/pulls/comments/{comment_id}"],dismissReview:["PUT /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}/dismissals"],get:["GET /repos/{owner}/{repo}/pulls/{pull_number}"],getReview:["GET /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}"],getReviewComment:["GET /repos/{owner}/{repo}/pulls/comments/{comment_id}"],list:["GET /repos/{owner}/{repo}/pulls"],listCommentsForReview:["GET /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}/comments"],listCommits:["GET /repos/{owner}/{repo}/pulls/{pull_number}/commits"],listFiles:["GET /repos/{owner}/{repo}/pulls/{pull_number}/files"],listRequestedReviewers:["GET /repos/{owner}/{repo}/pulls/{pull_number}/requested_reviewers"],listReviewComments:["GET /repos/{owner}/{repo}/pulls/{pull_number}/comments"],listReviewCommentsForRepo:["GET /repos/{owner}/{repo}/pulls/comments"],listReviews:["GET /repos/{owner}/{repo}/pulls/{pull_number}/reviews"],merge:["PUT /repos/{owner}/{repo}/pulls/{pull_number}/merge"],removeRequestedReviewers:["DELETE /repos/{owner}/{repo}/pulls/{pull_number}/requested_reviewers"],requestReviewers:["POST /repos/{owner}/{repo}/pulls/{pull_number}/requested_reviewers"],submitReview:["POST /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}/events"],update:["PATCH /repos/{owner}/{repo}/pulls/{pull_number}"],updateBranch:["PUT /repos/{owner}/{repo}/pulls/{pull_number}/update-branch"],updateReview:["PUT /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}"],updateReviewComment:["PATCH /repos/{owner}/{repo}/pulls/comments/{comment_id}"]},rateLimit:{get:["GET /rate_limit"]},reactions:{createForCommitComment:["POST /repos/{owner}/{repo}/comments/{comment_id}/reactions"],createForIssue:["POST /repos/{owner}/{repo}/issues/{issue_number}/reactions"],createForIssueComment:["POST /repos/{owner}/{repo}/issues/comments/{comment_id}/reactions"],createForPullRequestReviewComment:["POST /repos/{owner}/{repo}/pulls/comments/{comment_id}/reactions"],createForRelease:["POST /repos/{owner}/{repo}/releases/{release_id}/reactions"],createForTeamDiscussionCommentInOrg:["POST /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}/reactions"],createForTeamDiscussionInOrg:["POST /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/reactions"],deleteForCommitComment:["DELETE /repos/{owner}/{repo}/comments/{comment_id}/reactions/{reaction_id}"],deleteForIssue:["DELETE /repos/{owner}/{repo}/issues/{issue_number}/reactions/{reaction_id}"],deleteForIssueComment:["DELETE /repos/{owner}/{repo}/issues/comments/{comment_id}/reactions/{reaction_id}"],deleteForPullRequestComment:["DELETE /repos/{owner}/{repo}/pulls/comments/{comment_id}/reactions/{reaction_id}"],deleteForRelease:["DELETE /repos/{owner}/{repo}/releases/{release_id}/reactions/{reaction_id}"],deleteForTeamDiscussion:["DELETE /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/reactions/{reaction_id}"],deleteForTeamDiscussionComment:["DELETE /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}/reactions/{reaction_id}"],listForCommitComment:["GET /repos/{owner}/{repo}/comments/{comment_id}/reactions"],listForIssue:["GET /repos/{owner}/{repo}/issues/{issue_number}/reactions"],listForIssueComment:["GET /repos/{owner}/{repo}/issues/comments/{comment_id}/reactions"],listForPullRequestReviewComment:["GET /repos/{owner}/{repo}/pulls/comments/{comment_id}/reactions"],listForRelease:["GET /repos/{owner}/{repo}/releases/{release_id}/reactions"],listForTeamDiscussionCommentInOrg:["GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}/reactions"],listForTeamDiscussionInOrg:["GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/reactions"]},repos:{acceptInvitation:["PATCH /user/repository_invitations/{invitation_id}",{},{renamed:["repos","acceptInvitationForAuthenticatedUser"]}],acceptInvitationForAuthenticatedUser:["PATCH /user/repository_invitations/{invitation_id}"],addAppAccessRestrictions:["POST /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/apps",{},{mapToData:"apps"}],addCollaborator:["PUT /repos/{owner}/{repo}/collaborators/{username}"],addStatusCheckContexts:["POST /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/contexts",{},{mapToData:"contexts"}],addTeamAccessRestrictions:["POST /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams",{},{mapToData:"teams"}],addUserAccessRestrictions:["POST /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users",{},{mapToData:"users"}],cancelPagesDeployment:["POST /repos/{owner}/{repo}/pages/deployments/{pages_deployment_id}/cancel"],checkAutomatedSecurityFixes:["GET /repos/{owner}/{repo}/automated-security-fixes"],checkCollaborator:["GET /repos/{owner}/{repo}/collaborators/{username}"],checkPrivateVulnerabilityReporting:["GET /repos/{owner}/{repo}/private-vulnerability-reporting"],checkVulnerabilityAlerts:["GET /repos/{owner}/{repo}/vulnerability-alerts"],codeownersErrors:["GET /repos/{owner}/{repo}/codeowners/errors"],compareCommits:["GET /repos/{owner}/{repo}/compare/{base}...{head}"],compareCommitsWithBasehead:["GET /repos/{owner}/{repo}/compare/{basehead}"],createAttestation:["POST /repos/{owner}/{repo}/attestations"],createAutolink:["POST /repos/{owner}/{repo}/autolinks"],createCommitComment:["POST /repos/{owner}/{repo}/commits/{commit_sha}/comments"],createCommitSignatureProtection:["POST /repos/{owner}/{repo}/branches/{branch}/protection/required_signatures"],createCommitStatus:["POST /repos/{owner}/{repo}/statuses/{sha}"],createDeployKey:["POST /repos/{owner}/{repo}/keys"],createDeployment:["POST /repos/{owner}/{repo}/deployments"],createDeploymentBranchPolicy:["POST /repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies"],createDeploymentProtectionRule:["POST /repos/{owner}/{repo}/environments/{environment_name}/deployment_protection_rules"],createDeploymentStatus:["POST /repos/{owner}/{repo}/deployments/{deployment_id}/statuses"],createDispatchEvent:["POST /repos/{owner}/{repo}/dispatches"],createForAuthenticatedUser:["POST /user/repos"],createFork:["POST /repos/{owner}/{repo}/forks"],createInOrg:["POST /orgs/{org}/repos"],createOrUpdateCustomPropertiesValues:["PATCH /repos/{owner}/{repo}/properties/values"],createOrUpdateEnvironment:["PUT /repos/{owner}/{repo}/environments/{environment_name}"],createOrUpdateFileContents:["PUT /repos/{owner}/{repo}/contents/{path}"],createOrgRuleset:["POST /orgs/{org}/rulesets"],createPagesDeployment:["POST /repos/{owner}/{repo}/pages/deployments"],createPagesSite:["POST /repos/{owner}/{repo}/pages"],createRelease:["POST /repos/{owner}/{repo}/releases"],createRepoRuleset:["POST /repos/{owner}/{repo}/rulesets"],createUsingTemplate:["POST /repos/{template_owner}/{template_repo}/generate"],createWebhook:["POST /repos/{owner}/{repo}/hooks"],declineInvitation:["DELETE /user/repository_invitations/{invitation_id}",{},{renamed:["repos","declineInvitationForAuthenticatedUser"]}],declineInvitationForAuthenticatedUser:["DELETE /user/repository_invitations/{invitation_id}"],delete:["DELETE /repos/{owner}/{repo}"],deleteAccessRestrictions:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/restrictions"],deleteAdminBranchProtection:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/enforce_admins"],deleteAnEnvironment:["DELETE /repos/{owner}/{repo}/environments/{environment_name}"],deleteAutolink:["DELETE /repos/{owner}/{repo}/autolinks/{autolink_id}"],deleteBranchProtection:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection"],deleteCommitComment:["DELETE /repos/{owner}/{repo}/comments/{comment_id}"],deleteCommitSignatureProtection:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/required_signatures"],deleteDeployKey:["DELETE /repos/{owner}/{repo}/keys/{key_id}"],deleteDeployment:["DELETE /repos/{owner}/{repo}/deployments/{deployment_id}"],deleteDeploymentBranchPolicy:["DELETE /repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies/{branch_policy_id}"],deleteFile:["DELETE /repos/{owner}/{repo}/contents/{path}"],deleteInvitation:["DELETE /repos/{owner}/{repo}/invitations/{invitation_id}"],deleteOrgRuleset:["DELETE /orgs/{org}/rulesets/{ruleset_id}"],deletePagesSite:["DELETE /repos/{owner}/{repo}/pages"],deletePullRequestReviewProtection:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/required_pull_request_reviews"],deleteRelease:["DELETE /repos/{owner}/{repo}/releases/{release_id}"],deleteReleaseAsset:["DELETE /repos/{owner}/{repo}/releases/assets/{asset_id}"],deleteRepoRuleset:["DELETE /repos/{owner}/{repo}/rulesets/{ruleset_id}"],deleteWebhook:["DELETE /repos/{owner}/{repo}/hooks/{hook_id}"],disableAutomatedSecurityFixes:["DELETE /repos/{owner}/{repo}/automated-security-fixes"],disableDeploymentProtectionRule:["DELETE /repos/{owner}/{repo}/environments/{environment_name}/deployment_protection_rules/{protection_rule_id}"],disablePrivateVulnerabilityReporting:["DELETE /repos/{owner}/{repo}/private-vulnerability-reporting"],disableVulnerabilityAlerts:["DELETE /repos/{owner}/{repo}/vulnerability-alerts"],downloadArchive:["GET /repos/{owner}/{repo}/zipball/{ref}",{},{renamed:["repos","downloadZipballArchive"]}],downloadTarballArchive:["GET /repos/{owner}/{repo}/tarball/{ref}"],downloadZipballArchive:["GET /repos/{owner}/{repo}/zipball/{ref}"],enableAutomatedSecurityFixes:["PUT /repos/{owner}/{repo}/automated-security-fixes"],enablePrivateVulnerabilityReporting:["PUT /repos/{owner}/{repo}/private-vulnerability-reporting"],enableVulnerabilityAlerts:["PUT /repos/{owner}/{repo}/vulnerability-alerts"],generateReleaseNotes:["POST /repos/{owner}/{repo}/releases/generate-notes"],get:["GET /repos/{owner}/{repo}"],getAccessRestrictions:["GET /repos/{owner}/{repo}/branches/{branch}/protection/restrictions"],getAdminBranchProtection:["GET /repos/{owner}/{repo}/branches/{branch}/protection/enforce_admins"],getAllDeploymentProtectionRules:["GET /repos/{owner}/{repo}/environments/{environment_name}/deployment_protection_rules"],getAllEnvironments:["GET /repos/{owner}/{repo}/environments"],getAllStatusCheckContexts:["GET /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/contexts"],getAllTopics:["GET /repos/{owner}/{repo}/topics"],getAppsWithAccessToProtectedBranch:["GET /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/apps"],getAutolink:["GET /repos/{owner}/{repo}/autolinks/{autolink_id}"],getBranch:["GET /repos/{owner}/{repo}/branches/{branch}"],getBranchProtection:["GET /repos/{owner}/{repo}/branches/{branch}/protection"],getBranchRules:["GET /repos/{owner}/{repo}/rules/branches/{branch}"],getClones:["GET /repos/{owner}/{repo}/traffic/clones"],getCodeFrequencyStats:["GET /repos/{owner}/{repo}/stats/code_frequency"],getCollaboratorPermissionLevel:["GET /repos/{owner}/{repo}/collaborators/{username}/permission"],getCombinedStatusForRef:["GET /repos/{owner}/{repo}/commits/{ref}/status"],getCommit:["GET /repos/{owner}/{repo}/commits/{ref}"],getCommitActivityStats:["GET /repos/{owner}/{repo}/stats/commit_activity"],getCommitComment:["GET /repos/{owner}/{repo}/comments/{comment_id}"],getCommitSignatureProtection:["GET /repos/{owner}/{repo}/branches/{branch}/protection/required_signatures"],getCommunityProfileMetrics:["GET /repos/{owner}/{repo}/community/profile"],getContent:["GET /repos/{owner}/{repo}/contents/{path}"],getContributorsStats:["GET /repos/{owner}/{repo}/stats/contributors"],getCustomDeploymentProtectionRule:["GET /repos/{owner}/{repo}/environments/{environment_name}/deployment_protection_rules/{protection_rule_id}"],getCustomPropertiesValues:["GET /repos/{owner}/{repo}/properties/values"],getDeployKey:["GET /repos/{owner}/{repo}/keys/{key_id}"],getDeployment:["GET /repos/{owner}/{repo}/deployments/{deployment_id}"],getDeploymentBranchPolicy:["GET /repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies/{branch_policy_id}"],getDeploymentStatus:["GET /repos/{owner}/{repo}/deployments/{deployment_id}/statuses/{status_id}"],getEnvironment:["GET /repos/{owner}/{repo}/environments/{environment_name}"],getLatestPagesBuild:["GET /repos/{owner}/{repo}/pages/builds/latest"],getLatestRelease:["GET /repos/{owner}/{repo}/releases/latest"],getOrgRuleSuite:["GET /orgs/{org}/rulesets/rule-suites/{rule_suite_id}"],getOrgRuleSuites:["GET /orgs/{org}/rulesets/rule-suites"],getOrgRuleset:["GET /orgs/{org}/rulesets/{ruleset_id}"],getOrgRulesets:["GET /orgs/{org}/rulesets"],getPages:["GET /repos/{owner}/{repo}/pages"],getPagesBuild:["GET /repos/{owner}/{repo}/pages/builds/{build_id}"],getPagesDeployment:["GET /repos/{owner}/{repo}/pages/deployments/{pages_deployment_id}"],getPagesHealthCheck:["GET /repos/{owner}/{repo}/pages/health"],getParticipationStats:["GET /repos/{owner}/{repo}/stats/participation"],getPullRequestReviewProtection:["GET /repos/{owner}/{repo}/branches/{branch}/protection/required_pull_request_reviews"],getPunchCardStats:["GET /repos/{owner}/{repo}/stats/punch_card"],getReadme:["GET /repos/{owner}/{repo}/readme"],getReadmeInDirectory:["GET /repos/{owner}/{repo}/readme/{dir}"],getRelease:["GET /repos/{owner}/{repo}/releases/{release_id}"],getReleaseAsset:["GET /repos/{owner}/{repo}/releases/assets/{asset_id}"],getReleaseByTag:["GET /repos/{owner}/{repo}/releases/tags/{tag}"],getRepoRuleSuite:["GET /repos/{owner}/{repo}/rulesets/rule-suites/{rule_suite_id}"],getRepoRuleSuites:["GET /repos/{owner}/{repo}/rulesets/rule-suites"],getRepoRuleset:["GET /repos/{owner}/{repo}/rulesets/{ruleset_id}"],getRepoRulesetHistory:["GET /repos/{owner}/{repo}/rulesets/{ruleset_id}/history"],getRepoRulesetVersion:["GET /repos/{owner}/{repo}/rulesets/{ruleset_id}/history/{version_id}"],getRepoRulesets:["GET /repos/{owner}/{repo}/rulesets"],getStatusChecksProtection:["GET /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks"],getTeamsWithAccessToProtectedBranch:["GET /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams"],getTopPaths:["GET /repos/{owner}/{repo}/traffic/popular/paths"],getTopReferrers:["GET /repos/{owner}/{repo}/traffic/popular/referrers"],getUsersWithAccessToProtectedBranch:["GET /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users"],getViews:["GET /repos/{owner}/{repo}/traffic/views"],getWebhook:["GET /repos/{owner}/{repo}/hooks/{hook_id}"],getWebhookConfigForRepo:["GET /repos/{owner}/{repo}/hooks/{hook_id}/config"],getWebhookDelivery:["GET /repos/{owner}/{repo}/hooks/{hook_id}/deliveries/{delivery_id}"],listActivities:["GET /repos/{owner}/{repo}/activity"],listAttestations:["GET /repos/{owner}/{repo}/attestations/{subject_digest}"],listAutolinks:["GET /repos/{owner}/{repo}/autolinks"],listBranches:["GET /repos/{owner}/{repo}/branches"],listBranchesForHeadCommit:["GET /repos/{owner}/{repo}/commits/{commit_sha}/branches-where-head"],listCollaborators:["GET /repos/{owner}/{repo}/collaborators"],listCommentsForCommit:["GET /repos/{owner}/{repo}/commits/{commit_sha}/comments"],listCommitCommentsForRepo:["GET /repos/{owner}/{repo}/comments"],listCommitStatusesForRef:["GET /repos/{owner}/{repo}/commits/{ref}/statuses"],listCommits:["GET /repos/{owner}/{repo}/commits"],listContributors:["GET /repos/{owner}/{repo}/contributors"],listCustomDeploymentRuleIntegrations:["GET /repos/{owner}/{repo}/environments/{environment_name}/deployment_protection_rules/apps"],listDeployKeys:["GET /repos/{owner}/{repo}/keys"],listDeploymentBranchPolicies:["GET /repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies"],listDeploymentStatuses:["GET /repos/{owner}/{repo}/deployments/{deployment_id}/statuses"],listDeployments:["GET /repos/{owner}/{repo}/deployments"],listForAuthenticatedUser:["GET /user/repos"],listForOrg:["GET /orgs/{org}/repos"],listForUser:["GET /users/{username}/repos"],listForks:["GET /repos/{owner}/{repo}/forks"],listInvitations:["GET /repos/{owner}/{repo}/invitations"],listInvitationsForAuthenticatedUser:["GET /user/repository_invitations"],listLanguages:["GET /repos/{owner}/{repo}/languages"],listPagesBuilds:["GET /repos/{owner}/{repo}/pages/builds"],listPublic:["GET /repositories"],listPullRequestsAssociatedWithCommit:["GET /repos/{owner}/{repo}/commits/{commit_sha}/pulls"],listReleaseAssets:["GET /repos/{owner}/{repo}/releases/{release_id}/assets"],listReleases:["GET /repos/{owner}/{repo}/releases"],listTags:["GET /repos/{owner}/{repo}/tags"],listTeams:["GET /repos/{owner}/{repo}/teams"],listWebhookDeliveries:["GET /repos/{owner}/{repo}/hooks/{hook_id}/deliveries"],listWebhooks:["GET /repos/{owner}/{repo}/hooks"],merge:["POST /repos/{owner}/{repo}/merges"],mergeUpstream:["POST /repos/{owner}/{repo}/merge-upstream"],pingWebhook:["POST /repos/{owner}/{repo}/hooks/{hook_id}/pings"],redeliverWebhookDelivery:["POST /repos/{owner}/{repo}/hooks/{hook_id}/deliveries/{delivery_id}/attempts"],removeAppAccessRestrictions:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/apps",{},{mapToData:"apps"}],removeCollaborator:["DELETE /repos/{owner}/{repo}/collaborators/{username}"],removeStatusCheckContexts:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/contexts",{},{mapToData:"contexts"}],removeStatusCheckProtection:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks"],removeTeamAccessRestrictions:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams",{},{mapToData:"teams"}],removeUserAccessRestrictions:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users",{},{mapToData:"users"}],renameBranch:["POST /repos/{owner}/{repo}/branches/{branch}/rename"],replaceAllTopics:["PUT /repos/{owner}/{repo}/topics"],requestPagesBuild:["POST /repos/{owner}/{repo}/pages/builds"],setAdminBranchProtection:["POST /repos/{owner}/{repo}/branches/{branch}/protection/enforce_admins"],setAppAccessRestrictions:["PUT /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/apps",{},{mapToData:"apps"}],setStatusCheckContexts:["PUT /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/contexts",{},{mapToData:"contexts"}],setTeamAccessRestrictions:["PUT /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams",{},{mapToData:"teams"}],setUserAccessRestrictions:["PUT /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users",{},{mapToData:"users"}],testPushWebhook:["POST /repos/{owner}/{repo}/hooks/{hook_id}/tests"],transfer:["POST /repos/{owner}/{repo}/transfer"],update:["PATCH /repos/{owner}/{repo}"],updateBranchProtection:["PUT /repos/{owner}/{repo}/branches/{branch}/protection"],updateCommitComment:["PATCH /repos/{owner}/{repo}/comments/{comment_id}"],updateDeploymentBranchPolicy:["PUT /repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies/{branch_policy_id}"],updateInformationAboutPagesSite:["PUT /repos/{owner}/{repo}/pages"],updateInvitation:["PATCH /repos/{owner}/{repo}/invitations/{invitation_id}"],updateOrgRuleset:["PUT /orgs/{org}/rulesets/{ruleset_id}"],updatePullRequestReviewProtection:["PATCH /repos/{owner}/{repo}/branches/{branch}/protection/required_pull_request_reviews"],updateRelease:["PATCH /repos/{owner}/{repo}/releases/{release_id}"],updateReleaseAsset:["PATCH /repos/{owner}/{repo}/releases/assets/{asset_id}"],updateRepoRuleset:["PUT /repos/{owner}/{repo}/rulesets/{ruleset_id}"],updateStatusCheckPotection:["PATCH /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks",{},{renamed:["repos","updateStatusCheckProtection"]}],updateStatusCheckProtection:["PATCH /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks"],updateWebhook:["PATCH /repos/{owner}/{repo}/hooks/{hook_id}"],updateWebhookConfigForRepo:["PATCH /repos/{owner}/{repo}/hooks/{hook_id}/config"],uploadReleaseAsset:["POST /repos/{owner}/{repo}/releases/{release_id}/assets{?name,label}",{baseUrl:"https://uploads.github.com"}]},search:{code:["GET /search/code"],commits:["GET /search/commits"],issuesAndPullRequests:["GET /search/issues",{},{deprecated:"octokit.rest.search.issuesAndPullRequests() is deprecated, see https://docs.github.com/rest/search/search#search-issues-and-pull-requests"}],labels:["GET /search/labels"],repos:["GET /search/repositories"],topics:["GET /search/topics"],users:["GET /search/users"]},secretScanning:{createPushProtectionBypass:["POST /repos/{owner}/{repo}/secret-scanning/push-protection-bypasses"],getAlert:["GET /repos/{owner}/{repo}/secret-scanning/alerts/{alert_number}"],getScanHistory:["GET /repos/{owner}/{repo}/secret-scanning/scan-history"],listAlertsForEnterprise:["GET /enterprises/{enterprise}/secret-scanning/alerts"],listAlertsForOrg:["GET /orgs/{org}/secret-scanning/alerts"],listAlertsForRepo:["GET /repos/{owner}/{repo}/secret-scanning/alerts"],listLocationsForAlert:["GET /repos/{owner}/{repo}/secret-scanning/alerts/{alert_number}/locations"],listOrgPatternConfigs:["GET /orgs/{org}/secret-scanning/pattern-configurations"],updateAlert:["PATCH /repos/{owner}/{repo}/secret-scanning/alerts/{alert_number}"],updateOrgPatternConfigs:["PATCH /orgs/{org}/secret-scanning/pattern-configurations"]},securityAdvisories:{createFork:["POST /repos/{owner}/{repo}/security-advisories/{ghsa_id}/forks"],createPrivateVulnerabilityReport:["POST /repos/{owner}/{repo}/security-advisories/reports"],createRepositoryAdvisory:["POST /repos/{owner}/{repo}/security-advisories"],createRepositoryAdvisoryCveRequest:["POST /repos/{owner}/{repo}/security-advisories/{ghsa_id}/cve"],getGlobalAdvisory:["GET /advisories/{ghsa_id}"],getRepositoryAdvisory:["GET /repos/{owner}/{repo}/security-advisories/{ghsa_id}"],listGlobalAdvisories:["GET /advisories"],listOrgRepositoryAdvisories:["GET /orgs/{org}/security-advisories"],listRepositoryAdvisories:["GET /repos/{owner}/{repo}/security-advisories"],updateRepositoryAdvisory:["PATCH /repos/{owner}/{repo}/security-advisories/{ghsa_id}"]},teams:{addOrUpdateMembershipForUserInOrg:["PUT /orgs/{org}/teams/{team_slug}/memberships/{username}"],addOrUpdateRepoPermissionsInOrg:["PUT /orgs/{org}/teams/{team_slug}/repos/{owner}/{repo}"],checkPermissionsForRepoInOrg:["GET /orgs/{org}/teams/{team_slug}/repos/{owner}/{repo}"],create:["POST /orgs/{org}/teams"],createDiscussionCommentInOrg:["POST /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments"],createDiscussionInOrg:["POST /orgs/{org}/teams/{team_slug}/discussions"],deleteDiscussionCommentInOrg:["DELETE /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}"],deleteDiscussionInOrg:["DELETE /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}"],deleteInOrg:["DELETE /orgs/{org}/teams/{team_slug}"],getByName:["GET /orgs/{org}/teams/{team_slug}"],getDiscussionCommentInOrg:["GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}"],getDiscussionInOrg:["GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}"],getMembershipForUserInOrg:["GET /orgs/{org}/teams/{team_slug}/memberships/{username}"],list:["GET /orgs/{org}/teams"],listChildInOrg:["GET /orgs/{org}/teams/{team_slug}/teams"],listDiscussionCommentsInOrg:["GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments"],listDiscussionsInOrg:["GET /orgs/{org}/teams/{team_slug}/discussions"],listForAuthenticatedUser:["GET /user/teams"],listMembersInOrg:["GET /orgs/{org}/teams/{team_slug}/members"],listPendingInvitationsInOrg:["GET /orgs/{org}/teams/{team_slug}/invitations"],listReposInOrg:["GET /orgs/{org}/teams/{team_slug}/repos"],removeMembershipForUserInOrg:["DELETE /orgs/{org}/teams/{team_slug}/memberships/{username}"],removeRepoInOrg:["DELETE /orgs/{org}/teams/{team_slug}/repos/{owner}/{repo}"],updateDiscussionCommentInOrg:["PATCH /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}"],updateDiscussionInOrg:["PATCH /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}"],updateInOrg:["PATCH /orgs/{org}/teams/{team_slug}"]},users:{addEmailForAuthenticated:["POST /user/emails",{},{renamed:["users","addEmailForAuthenticatedUser"]}],addEmailForAuthenticatedUser:["POST /user/emails"],addSocialAccountForAuthenticatedUser:["POST /user/social_accounts"],block:["PUT /user/blocks/{username}"],checkBlocked:["GET /user/blocks/{username}"],checkFollowingForUser:["GET /users/{username}/following/{target_user}"],checkPersonIsFollowedByAuthenticated:["GET /user/following/{username}"],createGpgKeyForAuthenticated:["POST /user/gpg_keys",{},{renamed:["users","createGpgKeyForAuthenticatedUser"]}],createGpgKeyForAuthenticatedUser:["POST /user/gpg_keys"],createPublicSshKeyForAuthenticated:["POST /user/keys",{},{renamed:["users","createPublicSshKeyForAuthenticatedUser"]}],createPublicSshKeyForAuthenticatedUser:["POST /user/keys"],createSshSigningKeyForAuthenticatedUser:["POST /user/ssh_signing_keys"],deleteAttestationsBulk:["POST /users/{username}/attestations/delete-request"],deleteAttestationsById:["DELETE /users/{username}/attestations/{attestation_id}"],deleteAttestationsBySubjectDigest:["DELETE /users/{username}/attestations/digest/{subject_digest}"],deleteEmailForAuthenticated:["DELETE /user/emails",{},{renamed:["users","deleteEmailForAuthenticatedUser"]}],deleteEmailForAuthenticatedUser:["DELETE /user/emails"],deleteGpgKeyForAuthenticated:["DELETE /user/gpg_keys/{gpg_key_id}",{},{renamed:["users","deleteGpgKeyForAuthenticatedUser"]}],deleteGpgKeyForAuthenticatedUser:["DELETE /user/gpg_keys/{gpg_key_id}"],deletePublicSshKeyForAuthenticated:["DELETE /user/keys/{key_id}",{},{renamed:["users","deletePublicSshKeyForAuthenticatedUser"]}],deletePublicSshKeyForAuthenticatedUser:["DELETE /user/keys/{key_id}"],deleteSocialAccountForAuthenticatedUser:["DELETE /user/social_accounts"],deleteSshSigningKeyForAuthenticatedUser:["DELETE /user/ssh_signing_keys/{ssh_signing_key_id}"],follow:["PUT /user/following/{username}"],getAuthenticated:["GET /user"],getById:["GET /user/{account_id}"],getByUsername:["GET /users/{username}"],getContextForUser:["GET /users/{username}/hovercard"],getGpgKeyForAuthenticated:["GET /user/gpg_keys/{gpg_key_id}",{},{renamed:["users","getGpgKeyForAuthenticatedUser"]}],getGpgKeyForAuthenticatedUser:["GET /user/gpg_keys/{gpg_key_id}"],getPublicSshKeyForAuthenticated:["GET /user/keys/{key_id}",{},{renamed:["users","getPublicSshKeyForAuthenticatedUser"]}],getPublicSshKeyForAuthenticatedUser:["GET /user/keys/{key_id}"],getSshSigningKeyForAuthenticatedUser:["GET /user/ssh_signing_keys/{ssh_signing_key_id}"],list:["GET /users"],listAttestations:["GET /users/{username}/attestations/{subject_digest}"],listAttestationsBulk:["POST /users/{username}/attestations/bulk-list{?per_page,before,after}"],listBlockedByAuthenticated:["GET /user/blocks",{},{renamed:["users","listBlockedByAuthenticatedUser"]}],listBlockedByAuthenticatedUser:["GET /user/blocks"],listEmailsForAuthenticated:["GET /user/emails",{},{renamed:["users","listEmailsForAuthenticatedUser"]}],listEmailsForAuthenticatedUser:["GET /user/emails"],listFollowedByAuthenticated:["GET /user/following",{},{renamed:["users","listFollowedByAuthenticatedUser"]}],listFollowedByAuthenticatedUser:["GET /user/following"],listFollowersForAuthenticatedUser:["GET /user/followers"],listFollowersForUser:["GET /users/{username}/followers"],listFollowingForUser:["GET /users/{username}/following"],listGpgKeysForAuthenticated:["GET /user/gpg_keys",{},{renamed:["users","listGpgKeysForAuthenticatedUser"]}],listGpgKeysForAuthenticatedUser:["GET /user/gpg_keys"],listGpgKeysForUser:["GET /users/{username}/gpg_keys"],listPublicEmailsForAuthenticated:["GET /user/public_emails",{},{renamed:["users","listPublicEmailsForAuthenticatedUser"]}],listPublicEmailsForAuthenticatedUser:["GET /user/public_emails"],listPublicKeysForUser:["GET /users/{username}/keys"],listPublicSshKeysForAuthenticated:["GET /user/keys",{},{renamed:["users","listPublicSshKeysForAuthenticatedUser"]}],listPublicSshKeysForAuthenticatedUser:["GET /user/keys"],listSocialAccountsForAuthenticatedUser:["GET /user/social_accounts"],listSocialAccountsForUser:["GET /users/{username}/social_accounts"],listSshSigningKeysForAuthenticatedUser:["GET /user/ssh_signing_keys"],listSshSigningKeysForUser:["GET /users/{username}/ssh_signing_keys"],setPrimaryEmailVisibilityForAuthenticated:["PATCH /user/email/visibility",{},{renamed:["users","setPrimaryEmailVisibilityForAuthenticatedUser"]}],setPrimaryEmailVisibilityForAuthenticatedUser:["PATCH /user/email/visibility"],unblock:["DELETE /user/blocks/{username}"],unfollow:["DELETE /user/following/{username}"],updateAuthenticated:["PATCH /user"]}},nxe=F3e;var Qg=new Map;for(let[e,t]of Object.entries(nxe))for(let[n,o]of Object.entries(t)){let[r,s,i]=o,[a,l]=r.split(/ /),c=Object.assign({method:a,url:l},s);Qg.has(e)||Qg.set(e,new Map),Qg.get(e).set(n,{scope:e,methodName:n,endpointDefaults:c,decorations:i})}var O3e={has({scope:e},t){return Qg.get(e).has(t)},getOwnPropertyDescriptor(e,t){return{value:this.get(e,t),configurable:!0,writable:!0,enumerable:!0}},defineProperty(e,t,n){return Object.defineProperty(e.cache,t,n),!0},deleteProperty(e,t){return delete e.cache[t],!0},ownKeys({scope:e}){return[...Qg.get(e).keys()]},set(e,t,n){return e.cache[t]=n},get({octokit:e,scope:t,cache:n},o){if(n[o])return n[o];let r=Qg.get(t).get(o);if(!r)return;let{endpointDefaults:s,decorations:i}=r;return i?n[o]=U3e(e,t,o,s,i):n[o]=e.request.defaults(s),n[o]}};function qz(e){let t={};for(let n of Qg.keys())t[n]=new Proxy({octokit:e,scope:n,cache:{}},O3e);return t}function U3e(e,t,n,o,r){let s=e.request.defaults(o);function i(...a){let l=s.endpoint.merge(...a);if(r.mapToData)return l=Object.assign({},l,{data:l[r.mapToData],[r.mapToData]:void 0}),s(l);if(r.renamed){let[c,u]=r.renamed;e.log.warn(`octokit.${t}.${n}() has been renamed to octokit.${c}.${u}()`)}if(r.deprecated&&e.log.warn(r.deprecated),r.renamedParameters){let c=s.endpoint.merge(...a);for(let[u,p]of Object.entries(r.renamedParameters))u in c&&(e.log.warn(`"${u}" parameter is deprecated for "octokit.${t}.${n}()". Use "${p}" instead`),p in c||(c[p]=c[u]),delete c[u]);return s(c)}return s(...a)}return Object.assign(i,s)}function q3e(e){return{rest:qz(e)}}q3e.VERSION=Uz;function Hz(e){let t=qz(e);return{...t,rest:t}}Hz.VERSION=Uz;var oxe="22.0.0";var rxe=Sy.plugin(Nz,Hz,Oz).defaults({userAgent:`octokit-rest.js/${oxe}`});var wu=function(){if(typeof globalThis<"u")return globalThis;if(typeof global<"u")return global;if(typeof self<"u")return self;if(typeof window<"u")return window;try{return new Function("return this")()}catch{return{}}}();wu.trustedTypes===void 0&&(wu.trustedTypes={createPolicy:(e,t)=>t});var sxe={configurable:!1,enumerable:!1,writable:!1};wu.FAST===void 0&&Reflect.defineProperty(wu,"FAST",Object.assign({value:Object.create(null)},sxe));var Yg=wu.FAST;if(Yg.getById===void 0){let e=Object.create(null);Reflect.defineProperty(Yg,"getById",Object.assign({value(t,n){let o=e[t];return o===void 0&&(o=n?e[t]=n():null),o}},sxe))}var kM=Object.freeze([]);function IM(){let e=new WeakMap;return function(t){let n=e.get(t);if(n===void 0){let o=Reflect.getPrototypeOf(t);for(;n===void 0&&o!==null;)n=e.get(o),o=Reflect.getPrototypeOf(o);n=n===void 0?[]:n.slice(0),e.set(t,n)}return n}}var Bz=wu.FAST.getById(1,()=>{let e=[],t=[];function n(){if(t.length)throw t.shift()}function o(i){try{i.call()}catch(a){t.push(a),setTimeout(n,0)}}function r(){let a=0;for(;a1024){for(let l=0,c=e.length-a;le}),zz=ixe,AS=`fast-${Math.random().toString(36).substring(2,8)}`,Gz=`${AS}{`,PM=`}${AS}`,It=Object.freeze({supportsAdoptedStyleSheets:Array.isArray(document.adoptedStyleSheets)&&"replace"in CSSStyleSheet.prototype,setHTMLPolicy(e){if(zz!==ixe)throw new Error("The HTML policy can only be set once.");zz=e},createHTML(e){return zz.createHTML(e)},isMarker(e){return e&&e.nodeType===8&&e.data.startsWith(AS)},extractDirectiveIndexFromMarker(e){return parseInt(e.data.replace(`${AS}:`,""))},createInterpolationPlaceholder(e){return`${Gz}${e}${PM}`},createCustomAttributePlaceholder(e,t){return`${e}="${this.createInterpolationPlaceholder(t)}"`},createBlockPlaceholder(e){return``},queueUpdate:Bz.enqueue,processUpdates:Bz.process,nextUpdate(){return new Promise(Bz.enqueue)},setAttribute(e,t,n){n==null?e.removeAttribute(t):e.setAttribute(t,n)},setBooleanAttribute(e,t,n){n?e.setAttribute(t,""):e.removeAttribute(t)},removeChildNodes(e){for(let t=e.firstChild;t!==null;t=e.firstChild)e.removeChild(t)},createTemplateWalker(e){return document.createTreeWalker(e,133,null,!1)}});var hp=class{constructor(t,n){this.sub1=void 0,this.sub2=void 0,this.spillover=void 0,this.source=t,this.sub1=n}has(t){return this.spillover===void 0?this.sub1===t||this.sub2===t:this.spillover.indexOf(t)!==-1}subscribe(t){let n=this.spillover;if(n===void 0){if(this.has(t))return;if(this.sub1===void 0){this.sub1=t;return}if(this.sub2===void 0){this.sub2=t;return}this.spillover=[this.sub1,this.sub2,t],this.sub1=void 0,this.sub2=void 0}else n.indexOf(t)===-1&&n.push(t)}unsubscribe(t){let n=this.spillover;if(n===void 0)this.sub1===t?this.sub1=void 0:this.sub2===t&&(this.sub2=void 0);else{let o=n.indexOf(t);o!==-1&&n.splice(o,1)}}notify(t){let n=this.spillover,o=this.source;if(n===void 0){let r=this.sub1,s=this.sub2;r!==void 0&&r.handleChange(o,t),s!==void 0&&s.handleChange(o,t)}else for(let r=0,s=n.length;r{let e=/(:|&&|\|\||if)/,t=new WeakMap,n=It.queueUpdate,o,r=c=>{throw new Error("Must call enableArrayObservation before observing arrays.")};function s(c){let u=c.$fastController||t.get(c);return u===void 0&&(Array.isArray(c)?u=r(c):t.set(c,u=new Cy(c))),u}let i=IM();class a{constructor(u){this.name=u,this.field=`_${u}`,this.callback=`${u}Changed`}getValue(u){return o!==void 0&&o.watch(u,this.name),u[this.field]}setValue(u,p){let m=this.field,g=u[m];if(g!==p){u[m]=p;let f=u[this.callback];typeof f=="function"&&f.call(u,g,p),s(u).notify(this.name)}}}class l extends hp{constructor(u,p,m=!1){super(u,p),this.binding=u,this.isVolatileBinding=m,this.needsRefresh=!0,this.needsQueue=!0,this.first=this,this.last=null,this.propertySource=void 0,this.propertyName=void 0,this.notifier=void 0,this.next=void 0}observe(u,p){this.needsRefresh&&this.last!==null&&this.disconnect();let m=o;o=this.needsRefresh?this:void 0,this.needsRefresh=this.isVolatileBinding;let g=this.binding(u,p);return o=m,g}disconnect(){if(this.last!==null){let u=this.first;for(;u!==void 0;)u.notifier.unsubscribe(this,u.propertyName),u=u.next;this.last=null,this.needsRefresh=this.needsQueue=!0}}watch(u,p){let m=this.last,g=s(u),f=m===null?this.first:{};if(f.propertySource=u,f.propertyName=p,f.notifier=g,g.subscribe(this,p),m!==null){if(!this.needsRefresh){let _;o=void 0,_=m.propertySource[m.propertyName],o=this,u===_&&(this.needsRefresh=!0)}m.next=f}this.last=f}handleChange(){this.needsQueue&&(this.needsQueue=!1,n(this))}call(){this.last!==null&&(this.needsQueue=!0,this.notify(this))}records(){let u=this.first;return{next:()=>{let p=u;return p===void 0?{value:void 0,done:!0}:(u=u.next,{value:p,done:!1})},[Symbol.iterator]:function(){return this}}}}return Object.freeze({setArrayObserverFactory(c){r=c},getNotifier:s,track(c,u){o!==void 0&&o.watch(c,u)},trackVolatile(){o!==void 0&&(o.needsRefresh=!0)},notify(c,u){s(c).notify(u)},defineProperty(c,u){typeof u=="string"&&(u=new a(u)),i(c).push(u),Reflect.defineProperty(c,u.name,{enumerable:!0,get:function(){return u.getValue(this)},set:function(p){u.setValue(this,p)}})},getAccessors:i,binding(c,u,p=this.isVolatileBinding(c)){return new l(c,u,p)},isVolatileBinding(c){return e.test(c.toString())}})});function V(e,t){en.defineProperty(e,t)}var axe=Yg.getById(3,()=>{let e=null;return{get(){return e},set(t){e=t}}}),bp=class{constructor(){this.index=0,this.length=0,this.parent=null,this.parentContext=null}get event(){return axe.get()}get isEven(){return this.index%2===0}get isOdd(){return this.index%2!==0}get isFirst(){return this.index===0}get isInMiddle(){return!this.isFirst&&!this.isLast}get isLast(){return this.index===this.length-1}static setEvent(t){axe.set(t)}};en.defineProperty(bp.prototype,"index");en.defineProperty(bp.prototype,"length");var ii=Object.seal(new bp);var Zl=class{constructor(){this.targetIndex=0}},Ey=class extends Zl{constructor(){super(...arguments),this.createPlaceholder=It.createInterpolationPlaceholder}},LM=class extends Zl{constructor(t,n,o){super(),this.name=t,this.behavior=n,this.options=o}createPlaceholder(t){return It.createCustomAttributePlaceholder(this.name,t)}createBehavior(t){return new this.behavior(t,this.options)}};function H3e(e,t){this.source=e,this.context=t,this.bindingObserver===null&&(this.bindingObserver=en.binding(this.binding,this,this.isBindingVolatile)),this.updateTarget(this.bindingObserver.observe(e,t))}function B3e(e,t){this.source=e,this.context=t,this.target.addEventListener(this.targetName,this)}function z3e(){this.bindingObserver.disconnect(),this.source=null,this.context=null}function G3e(){this.bindingObserver.disconnect(),this.source=null,this.context=null;let e=this.target.$fastView;e!==void 0&&e.isComposed&&(e.unbind(),e.needsBindOnly=!0)}function V3e(){this.target.removeEventListener(this.targetName,this),this.source=null,this.context=null}function j3e(e){It.setAttribute(this.target,this.targetName,e)}function Q3e(e){It.setBooleanAttribute(this.target,this.targetName,e)}function Y3e(e){if(e==null&&(e=""),e.create){this.target.textContent="";let t=this.target.$fastView;t===void 0?t=e.create():this.target.$fastTemplate!==e&&(t.isComposed&&(t.remove(),t.unbind()),t=e.create()),t.isComposed?t.needsBindOnly&&(t.needsBindOnly=!1,t.bind(this.source,this.context)):(t.isComposed=!0,t.bind(this.source,this.context),t.insertBefore(this.target),this.target.$fastView=t,this.target.$fastTemplate=e)}else{let t=this.target.$fastView;t!==void 0&&t.isComposed&&(t.isComposed=!1,t.remove(),t.needsBindOnly?t.needsBindOnly=!1:t.unbind()),this.target.textContent=e}}function W3e(e){this.target[this.targetName]=e}function K3e(e){let t=this.classVersions||Object.create(null),n=this.target,o=this.version||0;if(e!=null&&e.length){let r=e.split(/\s+/);for(let s=0,i=r.length;sIt.createHTML(n(o,r))}break;case"?":this.cleanedTargetName=t.substr(1),this.updateTarget=Q3e;break;case"@":this.cleanedTargetName=t.substr(1),this.bind=B3e,this.unbind=V3e;break;default:this.cleanedTargetName=t,t==="class"&&(this.updateTarget=K3e);break}}targetAtContent(){this.updateTarget=Y3e,this.unbind=G3e}createBehavior(t){return new Vz(t,this.binding,this.isBindingVolatile,this.bind,this.unbind,this.updateTarget,this.cleanedTargetName)}},Vz=class{constructor(t,n,o,r,s,i,a){this.source=null,this.context=null,this.bindingObserver=null,this.target=t,this.binding=n,this.isBindingVolatile=o,this.bind=r,this.unbind=s,this.updateTarget=i,this.targetName=a}handleChange(){this.updateTarget(this.bindingObserver.observe(this.source,this.context))}handleEvent(t){bp.setEvent(t);let n=this.binding(this.source,this.context);bp.setEvent(null),n!==!0&&t.preventDefault()}};var jz=null,Qz=class e{addFactory(t){t.targetIndex=this.targetIndex,this.behaviorFactories.push(t)}captureContentBinding(t){t.targetAtContent(),this.addFactory(t)}reset(){this.behaviorFactories=[],this.targetIndex=-1}release(){jz=this}static borrow(t){let n=jz||new e;return n.directives=t,n.reset(),jz=null,n}};function J3e(e){if(e.length===1)return e[0];let t,n=e.length,o=e.map(i=>typeof i=="string"?()=>i:(t=i.targetName||t,i.binding)),r=(i,a)=>{let l="";for(let c=0;ca),c.targetName=i.name):c=J3e(l),c!==null&&(t.removeAttributeNode(i),r--,s--,e.addFactory(c))}}function X3e(e,t,n){let o=cxe(e,t.textContent);if(o!==null){let r=t;for(let s=0,i=o.length;s0}let n=this.fragment.cloneNode(!0),o=this.viewBehaviorFactories,r=new Array(this.behaviorCount),s=It.createTemplateWalker(n),i=0,a=this.targetOffset,l=s.nextNode();for(let c=o.length;i=/]+)([ \x09\x0a\x0c\x0d]*=[ \x09\x0a\x0c\x0d]*(?:[^ \x09\x0a\x0c\x0d"'`<>=]*|"[^"]*|'[^']*))$/;function W(e,...t){let n=[],o="";for(let r=0,s=e.length-1;rl}if(typeof a=="function"&&(a=new Wg(a)),a instanceof Ey){let l=e4e.exec(i);l!==null&&(a.targetName=l[2])}a instanceof Zl?(o+=a.createPlaceholder(n.length),n.push(a)):o+=a}return o+=e[e.length-1],new RM(o,n)}var Is=class{constructor(){this.targets=new WeakSet}addStylesTo(t){this.targets.add(t)}removeStylesFrom(t){this.targets.delete(t)}isAttachedTo(t){return this.targets.has(t)}withBehaviors(...t){return this.behaviors=this.behaviors===null?t:this.behaviors.concat(t),this}};Is.create=(()=>{if(It.supportsAdoptedStyleSheets){let e=new Map;return t=>new Wz(t,e)}return e=>new Kz(e)})();function Jz(e){return e.map(t=>t instanceof Is?Jz(t.styles):[t]).reduce((t,n)=>t.concat(n),[])}function dxe(e){return e.map(t=>t instanceof Is?t.behaviors:null).reduce((t,n)=>n===null?t:(t===null&&(t=[]),t.concat(n)),null)}var pxe=(e,t)=>{e.adoptedStyleSheets=[...e.adoptedStyleSheets,...t]},mxe=(e,t)=>{e.adoptedStyleSheets=e.adoptedStyleSheets.filter(n=>t.indexOf(n)===-1)};if(It.supportsAdoptedStyleSheets)try{document.adoptedStyleSheets.push(),document.adoptedStyleSheets.splice(),pxe=(e,t)=>{e.adoptedStyleSheets.push(...t)},mxe=(e,t)=>{for(let n of t){let o=e.adoptedStyleSheets.indexOf(n);o!==-1&&e.adoptedStyleSheets.splice(o,1)}}}catch{}var Wz=class extends Is{constructor(t,n){super(),this.styles=t,this.styleSheetCache=n,this._styleSheets=void 0,this.behaviors=dxe(t)}get styleSheets(){if(this._styleSheets===void 0){let t=this.styles,n=this.styleSheetCache;this._styleSheets=Jz(t).map(o=>{if(o instanceof CSSStyleSheet)return o;let r=n.get(o);return r===void 0&&(r=new CSSStyleSheet,r.replaceSync(o),n.set(o,r)),r})}return this._styleSheets}addStylesTo(t){pxe(t,this.styleSheets),super.addStylesTo(t)}removeStylesFrom(t){mxe(t,this.styleSheets),super.removeStylesFrom(t)}},t4e=0;function n4e(){return`fast-style-class-${++t4e}`}var Kz=class extends Is{constructor(t){super(),this.styles=t,this.behaviors=null,this.behaviors=dxe(t),this.styleSheets=Jz(t),this.styleClass=n4e()}addStylesTo(t){let n=this.styleSheets,o=this.styleClass;t=this.normalizeTarget(t);for(let r=0;r{o.add(t);let r=t[this.fieldName];switch(n){case"reflect":let s=this.converter;It.setAttribute(t,this.attribute,s!==void 0?s.toView(r):r);break;case"boolean":It.setBooleanAttribute(t,this.attribute,r);break}o.delete(t)})}static collect(t,...n){let o=[];n.push(gxe.locate(t));for(let r=0,s=n.length;r1&&(n.property=s),gxe.locate(r.constructor).push(n)}if(arguments.length>1){n={},o(e,t);return}return n=e===void 0?{}:e,o}var fxe={mode:"open"},hxe={},Zz=Yg.getById(4,()=>{let e=new Map;return Object.freeze({register(t){return e.has(t.type)?!1:(e.set(t.type,t),!0)},getByType(t){return e.get(t)}})}),Kg=class{constructor(t,n=t.definition){typeof n=="string"&&(n={name:n}),this.type=t,this.name=n.name,this.template=n.template;let o=MM.collect(t,n.attributes),r=new Array(o.length),s={},i={};for(let a=0,l=o.length;a0){let s=this.boundObservables=Object.create(null);for(let i=0,a=r.length;i0||n>0;){if(t===0){r.push(t5),n--;continue}if(n===0){r.push(n5),t--;continue}let s=e[t-1][n-1],i=e[t-1][n],a=e[t][n-1],l;i=0){e.splice(a,1),a--,i-=l.addedCount-l.removed.length,r.addedCount+=l.addedCount-c;let u=r.removed.length+l.removed.length-c;if(!r.addedCount&&!u)s=!0;else{let p=l.removed;if(r.indexl.index+l.addedCount){let m=r.removed.slice(l.index+l.addedCount-r.index);vxe.apply(p,m)}r.removed=p,l.indexo?n=o-e.addedCount:n<0&&(n=o+e.removed.length+n-e.addedCount),n<0&&(n=0),e.index=n,e}var s5=class extends hp{constructor(t){super(t),this.oldCollection=void 0,this.splices=void 0,this.needsQueue=!0,this.call=this.flush,Reflect.defineProperty(t,"$fastController",{value:this,enumerable:!1})}subscribe(t){this.flush(),super.subscribe(t)}addSplice(t){this.splices===void 0?this.splices=[t]:this.splices.push(t),this.needsQueue&&(this.needsQueue=!1,It.queueUpdate(this))}reset(t){this.oldCollection=t,this.needsQueue&&(this.needsQueue=!1,It.queueUpdate(this))}flush(){let t=this.splices,n=this.oldCollection;if(t===void 0&&n===void 0)return;this.needsQueue=!0,this.splices=void 0,this.oldCollection=void 0;let o=n===void 0?wxe(this.source,t):o5(this.source,0,this.source.length,n,0,n.length);this.notify(o)}};function Cxe(){if(Sxe)return;Sxe=!0,en.setArrayObserverFactory(l=>new s5(l));let e=Array.prototype;if(e.$fastPatch)return;Reflect.defineProperty(e,"$fastPatch",{value:1,enumerable:!1});let t=e.pop,n=e.push,o=e.reverse,r=e.shift,s=e.sort,i=e.splice,a=e.unshift;e.pop=function(){let l=this.length>0,c=t.apply(this,arguments),u=this.$fastController;return u!==void 0&&l&&u.addSplice(Ji(this.length,[c],0)),c},e.push=function(){let l=n.apply(this,arguments),c=this.$fastController;return c!==void 0&&c.addSplice(r5(Ji(this.length-arguments.length,[],arguments.length),this)),l},e.reverse=function(){let l,c=this.$fastController;c!==void 0&&(c.flush(),l=this.slice());let u=o.apply(this,arguments);return c!==void 0&&c.reset(l),u},e.shift=function(){let l=this.length>0,c=r.apply(this,arguments),u=this.$fastController;return u!==void 0&&l&&u.addSplice(Ji(0,[c],0)),c},e.sort=function(){let l,c=this.$fastController;c!==void 0&&(c.flush(),l=this.slice());let u=s.apply(this,arguments);return c!==void 0&&c.reset(l),u},e.splice=function(){let l=i.apply(this,arguments),c=this.$fastController;return c!==void 0&&c.addSplice(r5(Ji(+arguments[0],l,arguments.length>2?arguments.length-2:0),this)),l},e.unshift=function(){let l=a.apply(this,arguments),c=this.$fastController;return c!==void 0&&c.addSplice(r5(Ji(0,[],arguments.length),this)),l}}var i5=class{constructor(t,n){this.target=t,this.propertyName=n}bind(t){t[this.propertyName]=this.target}unbind(){}};function Jg(e){return new LM("fast-ref",i5,e)}var a5=e=>typeof e=="function";var m4e=()=>null;function Exe(e){return e===void 0?m4e:a5(e)?e:()=>e}function Me(e,t,n){let o=a5(e)?e:()=>e,r=Exe(t),s=Exe(n);return(i,a)=>o(i,a)?r(i,a):s(i,a)}var Axe=Object.freeze({positioning:!1,recycle:!0});function g4e(e,t,n,o){e.bind(t[n],o)}function f4e(e,t,n,o){let r=Object.create(o);r.index=n,r.length=t.length,e.bind(t[n],r)}var l5=class{constructor(t,n,o,r,s,i){this.location=t,this.itemsBinding=n,this.templateBinding=r,this.options=i,this.source=null,this.views=[],this.items=null,this.itemsObserver=null,this.originalContext=void 0,this.childContext=void 0,this.bindView=g4e,this.itemsBindingObserver=en.binding(n,this,o),this.templateBindingObserver=en.binding(r,this,s),i.positioning&&(this.bindView=f4e)}bind(t,n){this.source=t,this.originalContext=n,this.childContext=Object.create(n),this.childContext.parent=t,this.childContext.parentContext=this.originalContext,this.items=this.itemsBindingObserver.observe(t,this.originalContext),this.template=this.templateBindingObserver.observe(t,this.originalContext),this.observeItems(!0),this.refreshAllViews()}unbind(){this.source=null,this.items=null,this.itemsObserver!==null&&this.itemsObserver.unsubscribe(this),this.unbindAllViews(),this.itemsBindingObserver.disconnect(),this.templateBindingObserver.disconnect()}handleChange(t,n){t===this.itemsBinding?(this.items=this.itemsBindingObserver.observe(this.source,this.originalContext),this.observeItems(),this.refreshAllViews()):t===this.templateBinding?(this.template=this.templateBindingObserver.observe(this.source,this.originalContext),this.refreshAllViews(!0)):this.updateViews(n)}observeItems(t=!1){if(!this.items){this.items=kM;return}let n=this.itemsObserver,o=this.itemsObserver=en.getNotifier(this.items),r=n!==o;r&&n!==null&&n.unsubscribe(this),(r||t)&&o.subscribe(this)}updateViews(t){let n=this.childContext,o=this.views,r=this.bindView,s=this.items,i=this.template,a=this.options.recycle,l=[],c=0,u=0;for(let p=0,m=t.length;p0?(_<=T&&y.length>0?(q=y[_],_++):(q=l[c],c++),u--):q=i.create(),o.splice(h,0,q),r(q,s,h,n),q.insertBefore(E)}y[_]&&l.push(...y.slice(_))}for(let p=c,m=l.length;pt;return new c5(e,o,Object.assign(Object.assign({},Axe),n))}var h4e=e5` .modal-background { bottom: 0; left: 0; position: fixed; right: 0; top: 0; z-index: 1040; } .modal-background + div:not(.modal-content) { width: auto; height: auto; } .modal-card { top: 30%; max-width: 650px; z-index: 10001; margin: 0 auto; } .buttons-center { justify-content: center; } `;function kxe(e,t,n,o){let r=["default-focus","button","font-weight-semibold","modal-close"],s=typeof t=="function"?t(e):t;s.classes&&r.push("button-filled");let i=new Set([...s.classes??[],...r]);if(s.url)return W`${s.label}`;let a=s.object?`${s.action} - ${s.object}`:`${s.action}`;return W``}function b4e({message:e,title:t,confirmButton:n,cancelButton:o,align:r}){let s=i=>({action:Fe,label:Fe,...typeof o=="function"?o(i):o});return W` ${Me(i=>i.visible,W``)} `}var NM=class extends yxe{constructor(){super(...arguments);this.visible=!1}connectedCallback(){super.connectedCallback()}confirm(){this.visible=!1,this.$emit("confirm"),this.showVerticalScrollbar()}cancel(){this.visible=!1,this.$emit("cancel"),this.showVerticalScrollbar()}close(){this.visible=!1,this.$emit("close"),this.showVerticalScrollbar()}setFocus(){It.queueUpdate(()=>{let n=document.getElementsByClassName("default-focus")[0];n&&n.focus();let o=".modal-close, .modal-card .button",r=document.querySelector(".modal-card");if(!r)return;let s=r.querySelectorAll(o),i=s[0],a=s[s.length-1];document.addEventListener("keydown",l=>{(l.key==="Tab"||l.keyCode===9)&&(l.shiftKey?(document.activeElement===i||s.length===1)&&(a.focus(),l.preventDefault()):(document.activeElement===a||s.length===1)&&(i.focus(),l.preventDefault()))})})}hideVerticalScrollbar(){document.getElementsByTagName("html")[0].style.overflowY="hidden"}showVerticalScrollbar(){document.getElementsByTagName("html")[0].removeAttribute("style")}};H([V],NM.prototype,"visible",2);var FM=class extends NM{showModal(t,n,o){this.visible=!0,this.hideVerticalScrollbar(),this.confirmCallback=t,this.cancelCallback=n,this.closeCallback=o,this.setFocus()}confirm(){super.confirm(),this.confirmCallback&&this.confirmCallback()}cancel(){super.cancel(),this.cancelCallback&&this.cancelCallback()}close(){super.close(),this.closeCallback&&this.closeCallback()}};function Ixe(e,t,n){return FM.define(class extends FM{},{name:e,template:b4e(n),styles:h4e,shadowOptions:null,attributes:t??[]})}var u5=0;function OM(e,t){if(typeof e!="string"){let r=e;e="";for(let s in r)e+=r[s]+"
    "}let n=document.getElementById("error-modal");n&&document.body.removeChild(n),Ixe(`error-modal-${u5}`,[],{message:W`

    ${e}

    `,title:"",confirmButton:t,align:"center"});let o=document.createElement(`error-modal-${u5}`);o.id="error-modal",document.body.appendChild(o),o.showModal(),u5++}function UM(...e){let t=a=>[...a].join("/"),n=(a,...l)=>{let c=new URLSearchParams;for(let u of l)a.searchParams.has(u)&&c.set(u,a.searchParams.get(u)??"");return c},o=new URL(location.href),r=n(o,"branch","themebranch","branchFallbackFrom","pr"),s=r.toString()!==""?"?"+r.toString():"",i=`/${b.data.userLocale}/editor/`+t(e)+s;return new URL(i,o)}function Pxe(e){e||(e=UM());let t="";return R.supportLevel==="development"&&R.accessLevel==="online"&&te.hostname.startsWith("ppe.preview")?t="630f400e5ecc44019564":R.supportLevel==="development"&&R.accessLevel==="online"?t="3e1dd7a2769cc245c17d":t="7f9273caa02d97194b28",`${N.githubOAuth}?client_id=${t}&scope=repo%20read:org%20workflow&redirect_uri=${encodeURIComponent(e.href)}`}var _4e=rxe.plugin(wz,SM),y4e={onRateLimit:(e,t)=>{if(t.request.retryCount<=3)return!0;throw new Error("Rate limit exceeded. Retries failed. Please try again later.")},onAbuseLimit:(e,t)=>{throw new Error(`Abuse detected for request ${t.method} ${t.url}`)},onSecondaryRateLimit:(e,t)=>{if(t.request.retryCount<=3)return!0;throw new Error("Secondary Rate limit exceeded. Retries failed. Please try again later.")}},v4e={doNotRetry:[429,409,404]};function d5(){let e=localStorage.getItem("gitHubToken");return e?JSON.parse(e):null}var x4e=()=>{localStorage.removeItem("gitHubToken"),location.href=Pxe()};async function p5(e){let t=new _4e({auth:e,retry:v4e,throttle:y4e});try{return(await t.users.getAuthenticated({headers:{"If-None-Match":""}})).data.login}catch(n){throw OM({message:R9},{label:N9,action:"",object:"",classes:["button-primary renew-github-token"]}),document.addEventListener("confirm",r=>x4e()),T4e({message:n.toString(),function:"getAuthenticatedUser"}),n}}async function Lxe(){let e={method:"GET"},t=await $(J(`${N.buildAuthAdmin}/opensource/link/github`,e,!0));return he(t),t.ok?await t.json():null}var qM=`pageInfo { endCursor hasNextPage hasPreviousPage startCursor }`,m5=`items: nodes { ... on PullRequest { id number title base: baseRef { name prefix repository { name nameWithOwner owner { login } } } changedFiles closed closedAt createdAt files(first: 100) { items: nodes { path } ${qM} totalCount } head: headRef { name prefix repository { name nameWithOwner owner { login } } } isDraft merged mergedAt repository { name nameWithOwner owner { login } } state updatedAt url } }`,g5=`rateLimit { cost limit nodeCount remaining resetAt used }`,Wqt=`query Drafts ($draftsQuery:String!, $inReviewQuery:String!, $closedQuery:String!, $first:Int, $after:String) { drafts: search(query: $draftsQuery, type: ISSUE, first: $first, after: $after) { totalCount: issueCount ${m5} ${qM} } inReview: search(query: $inReviewQuery, type: ISSUE) { totalCount: issueCount } closed: search(query: $closedQuery, type: ISSUE) { totalCount: issueCount } ${g5} }`,Kqt=`query InReview ($draftsQuery:String!, $inReviewQuery:String!, $closedQuery:String!, $first:Int, $after:String) { drafts: search(query: $draftsQuery, type: ISSUE) { totalCount: issueCount } inReview: search(query: $inReviewQuery, type: ISSUE, first: $first, after: $after) { totalCount: issueCount, ${m5} ${qM} } closed: search(query: $closedQuery, type: ISSUE) { totalCount: issueCount } ${g5} }`,Jqt=`query Closed ($draftsQuery:String!, $inReviewQuery:String!, $closedQuery:String!, $first:Int, $after:String) { drafts: search(query: $draftsQuery, type: ISSUE) { totalCount: issueCount } inReview: search(query: $inReviewQuery, type: ISSUE) { totalCount: issueCount } closed: search(query: $closedQuery, type: ISSUE, first: $first, after: $after) { totalCount: issueCount ${m5} ${qM} } ${g5} }`;function T4e(e){Se({actionType:Ee.OTHER,behavior:me.OTHER,content:{section:"admin-editor",type:"error",event:"Exception",...e}})}Qe();tm();var w4e=/https:\/\/github.com\/(.*?)\/(.*?)\/(.*?)\/(.*?)\/(.*\.[a-zA-Z]+)([?])?/;function Rxe(e,t=w4e){let n="",o="",r="",s="";try{let i=t.exec(e);i&&i.length>1&&(n=i[1]??""),i&&i.length>2&&(o=i[2]??""),i&&i.length>3&&(s=i[4]??""),i&&i.length>4&&(r=i[5]??"")}catch(i){OM(L9),Se({actionType:Ee.OTHER,behavior:me.OTHER,content:{section:"admin-editor",type:"error",event:"Exception",message:i}})}return{owner:n,repo:o,path:r,branch:s}}async function f5(e){let t=await $(e,{credentials:"include",redirect:"follow"});if(!t.ok)throw new Error(`Unexpected response status ${t.status} for ${e}`);let n=await t.text(),r=new DOMParser().parseFromString(n,"text/html");return{url:new URL(t.url||e,location.origin),document:r}}function HM(e){return Array.from(e?.querySelectorAll("meta")??[]).reduce((t,n)=>{let o=(n.name||n?.getAttribute("property"))??"";return t[o]=n.content,t},{})}var h5={template:"",forkUrl:"",branch:"",path:"",repo:"",owner:"",originalContent:""};function Mxe(e){let t="",n="",o="",r="",s="",a=HM(e)?.original_content_git_url??"";({branch:r,path:s,repo:o,owner:n}=Rxe(a)),h5={template:"",forkUrl:"",branch:r,path:s,repo:o,owner:n,originalContent:a};let l=e.querySelector("a[data-contenteditbtn]");if(l){let c=l?.getAttribute("data-original_content_git_url_template")??"";if(c){let u=l?.getAttribute("data-pr_repo")??"",p=l?.getAttribute("data-pr_branch")??"";u&&p&&(t=c.replace("{repo}",u).replace("{branch}",p),[n,o]=(l?.getAttribute("data-pr_repo")??"")?.split("github.com/")?.pop()?.split("/")??["",""]);let m=c?.split("{branch}/")?.pop()??"";(l?.getAttribute("data-pr_branch")??"")&&(r=l?.getAttribute("data-pr_branch")??""),h5={template:c,forkUrl:t,branch:r,path:m,repo:o,owner:n,originalContent:a}}}return h5}function $xe(e,t,n,o){return d``}function Dxe(e,t){let n=$9,o=D9,r="",s=t.getAttribute("href")||"";switch(t.removeAttribute("href"),e){case 0:n=n.replace("{name}",Yp),o=o.replace("{name}",Yp).replace("{href}","https://learn.microsoft.com/en-us/contribute/");break;case 1:n=n.replace("{name}",Yp),o=o.replace("{name}",Yp).replace("{href}","https://learn.microsoft.com/en-us/help/get-started/?tabs=learn");break;case 2:n=n.replace("{name}",Yp),o=o.replace("{name}",Yp).replace("{href}","https://learn.microsoft.com/en-us/help/get-started/?tabs=learn"),r=M9;break;case 3:n=n.replace("{name}",o0),o=o.replace("{name}",o0).replace("{href}","https://learn.microsoft.com/en-us/help/get-started/?tabs=learn"),s=S4e().toString();break}return{title:n,description:o,link:s,moreInfo:r}}function S4e(){let e=HM(document),t=e.platform_id||"",n=e.monikers??"",{owner:o,repo:r,branch:s,path:i}=Mxe(document);return UM(`${o}/${r}/${encodeURIComponent(i)}/${encodeURIComponent(s)}${t?`/${t}/${n??""}`:""}`)}Qe();var Zg=class e extends Error{constructor(t,n,{errorCode:o,message:r},...s){super(...s),Object.setPrototypeOf(this,e.prototype),this.type=t,this.name=this.constructor.name,this.status=n,this.errorCode=o,this.message=r,this.detail={assessmentId:null,certificationUid:null,snapshotId:null}}};function kS(){let e="false";if(["AppliedSkills","AppliedSkillsAssessment","AppliedSkillsAssessmentReport"].find(t=>t===b.data.pageTemplate))return ce()["skip-verification"];if(S.stayCurrentAllowParam||S.practiceAssessmentsAllowParam){let t=ce()["skip-verification"];t===void 0||t.length&&t.toLowerCase()==="false"?e="false":e="true"}return e}function IS(){let e="live";if(S.stayCurrentAllowParam||S.practiceAssessmentsAllowParam){let t=ce()["snapshot-version"];t!==void 0&&t.toLowerCase()==="live"?e="live":e="preview"}return e}function Nxe(){let e="false";if(S.stayCurrentAllowParam||S.practiceAssessmentsAllowParam){let t=ce()["show-all-questions"];t!==void 0&&t.toLowerCase()==="true"?e="true":e="false"}return e}function Fxe(){let{accommodationRequested:e}=ce();if(S.stayCurrentAllowParam){let t=ce()["accommodation-requested"];t!==void 0&&t.toLowerCase()==="true"?e="true":e="false"}return e}function Oxe(){let e=!1;if(S.stayCurrentAllowParam||S.practiceAssessmentsAllowParam){let t=ce()["omit-scoring"];t!==void 0&&t.toLowerCase()==="true"?e=!0:e=!1}return e}function ai(e,t){return Math.round(Math.max(0,Math.min(1,e/t))*100)}var b5=class{constructor(t,n,o){let s=Ih(t,["id","isCorrect","questionnaireId","text","textHTML"]);this.id=s.id,this.createdAtUTC="0001-01-01T00:00:00",this.isCorrect=s.isCorrect,this.locale=o,this.questionId=n,this.questionnaireId=s.questionnaireId,this.text=s.text,this.textHtml=s.textHTML}},PS=class{constructor(t,n,o){this.choices=vk(t.map(r=>new b5(r,n,o)))}},_5=class{constructor(t,n){let r=Ih(t,["activityLog","id","choices","choiceCount","questionnaireId","text","type"]),s=["createdAtUTC"],i=Ih(r.activityLog,s);this.id=r.id,this.createdAtUTC=i.createdAtUTC,this.choices=new PS(r.choices,r.id,n).choices,this.choiceCount=r.choiceCount,this.locale=n,this.questionnaireId=r.questionnaireId,this.text=r.text,this.type=r.type,r.rationale&&(this.rationale=r.rationale),r.rationaleHTML&&(this.rationaleHtml=r.rationaleHTML),r.textHTML&&(this.textHtml=r.textHTML)}};var y5=class{constructor(t,n){let r=Ih(t,["correctChoice","question","userChoice"]),s=new _5(r.question,n);this.correctChoice=new PS(r.correctChoice,s.id,n).choices,this.question=s,this.userChoice=new PS(r.userChoice,s.id,n).choices}},BM=class{constructor(t,n){this.items=vk(t.map(o=>new y5(o,n)))}};var IBt=bt(),PBt=b.data.userLocale;function Zi(e){return JSON.parse(JSON.stringify(e))}function zM(e){let t=e&&e.skipVerification,n=e&&t?e.accomodationRequested??!1:!1,o=e&&t&&e.showAllQuestions;return{accomodationRequested:n,activityLog:{createdAtUTC:"2022-01-01T00:00:00Z",createdBy:"user1",updatedAtUTC:"2022-01-01T00:00:00Z",updatedBy:"user1",publishedAtUTC:"2022-01-01T00:00:00Z",publishedBy:"user1",publishedVersion:1},assessmentId:"1",assessmentType:"Renewal",assessmentVersion:1,branch:"Main",correctPercent:100,docsId:"docs1",endTime:"2022-01-01T00:00:00Z",expirationTime:"2022-01-01T00:00:00Z",id:1765,locale:"en-US",linkedContent:{id:1,assessmentType:"Renewal",activityLog:{createdAtUTC:"2022-01-01T00:00:00Z",createdBy:"user1",publishedAtUTC:"2022-01-01T00:00:00Z",publishedBy:"user1",publishedVersion:1,updatedAtUTC:"2022-01-01T00:00:00Z",updatedBy:"user1"},linkedContentCertificationExpirationDate:"2022-01-01T00:00:00Z",linkedContentCertificationPartOfStayCurrent:!0,linkedContentEligibleForRecertification:!0,linkedContentIconURL:"https://review.learn.microsoft.com/en-us/media/learn/certification/badges/microsoft-certified-associate-badge.svg?branch=main",linkedContentId:"exam.ai-102",linkedContentName:"Content1",linkedContentSnapshotRetakeEligibleDate:"2022-01-01T00:00:00Z",linkedContentStudyGuide:{type:"studyguide",items:[{listId:"module",id:"learn.host-a-web-application-with-azure-web-apps",type:"module",data:{docId:"null",docVIId:"null",platformId:"null",pageKind:"module",pageType:"learn",eventUid:"null",rawUrl:"null",title:"Host a web application with Azure App Service",uid:"learn.host-a-web-application-with-azure-web-apps",url:"/training/modules/host-a-web-app-with-azure-app-service/",iconUrl:"/training/achievements/host-a-web-app-with-azure-app-service.svg",durationInMinutes:31,moduleCount:0,products:["azure","azure-app-service","azure-portal"],levels:["beginner"],roles:["developer","solution-architect","student"],childUids:["learn.host-a-web-application-with-azure-web-apps.1-introduction","learn.host-a-web-application-with-azure-web-apps.2-create-a-web-app-in-the-azure-portal","learn.host-a-web-application-with-azure-web-apps.3-exercise-create-a-web-app-in-the-azure-portal","learn.host-a-web-application-with-azure-web-apps.4-exercise-implement-a-web-application","learn.host-a-web-application-with-azure-web-apps.5-deploying-code-to-app-service","learn.host-a-web-application-with-azure-web-apps.6-exercise-deploy-your-code-to-app-service","learn.host-a-web-application-with-azure-web-apps.7-summary","learn.host-a-web-application-with-azure-web-apps.8"],completedChildUids:[],display_products:["Azure","Azure App Service","Azure Portal"],display_levels:["Beginner"],display_roles:["Developer","Solution Architect","Student"],remainingTime:31},lastModified:"0001-01-01T00:00:00+00:00"}],moduleCount:7,completedModuleCount:0,remainingDuration:324,totalDuration:324,totalItems:1},linkedContentTitle:"Content1",linkedContentType:"Exam",linkedContentURL:"http://review.learn.microsoft.com",sequence:1},manualId:"manual1",assessmentName:`${t?"Preview ":""} Session1`,passingPercent:50,questionnaires:[{activityLog:{createdAtUTC:"2024-01-01T00:00:00Z",updatedAtUTC:"2024-02-01T00:00:00Z",publishedVersion:1},assessmentType:"Self",description:"Questionnaire A Description",groupId:"dc2c0287-a37d-49a0-bd42-9283acac7f61",id:91,locale:"en-us",name:"Optional Questionnaire A Name",questionsToPass:2,questionsToTake:4,questions:[{activityLog:{createdAtUTC:"2024-01-01T00:00:00Z",publishedVersion:1,updatedAtUTC:"2024-02-01T00:00:00Z"},assessmentType:"Practice",choiceCount:3,choices:[{questionId:4916,id:20604,isCorrect:!0,questionnaireId:130,text:"`facetable`",textHTML:"facetable"},{questionId:4916,id:20605,isCorrect:!0,questionnaireId:130,text:"`filterable`",textHTML:"filterable"},{questionId:4916,id:20606,isCorrect:!1,questionnaireId:130,text:"`key`",textHTML:"key"}],id:4916,isRequired:!0,questionnaireId:130,manualId:"manual1",sequence:1,rationale:"`facetable` is typically used in a presentation of search results that includes a hit count by category.\n\n`Filterable` is referenced in `$filter` queries, and `key` is a unique identifier for documents within the index.\n\n[Index overview - Azure Cognitive Search | Microsoft Learn](https://learn.microsoft.com/azure/search/search-what-is-an-index)\n\n[Create an Azure Cognitive Search solution - Training | Microsoft Learn](https://learn.microsoft.com/training/modules/create-azure-cognitive-search-solution/)\n\n",rationaleHTML:`

    facetable is typically used in a presentation of search results that includes a hit count by category.

    Filterable is referenced in $filter queries, and key is a unique identifier for documents within the index.

    Index overview - Azure Cognitive Search | Microsoft Learn

    Create an Azure Cognitive Search solution - Training | Microsoft Learn

    `,text:`You are building a solution that uses Azure AI Search. You need to define the field attributes for a field where the search results will include a hit count by category. Which attribute should you assign to the field? `,textHTML:`

    You are building a solution that uses Azure AI Search.

    You need to define the field attributes for a field where the search results will include a hit count by category.

    Which attribute should you assign to the field?

    `,type:"MultiSelect"},{activityLog:{createdAtUTC:"2024-01-01T00:00:00Z",publishedVersion:1,updatedAtUTC:"2024-02-01T00:00:00Z"},assessmentType:"Self",choiceCount:3,choices:[{questionId:4916,id:20610,isCorrect:!0,questionnaireId:12,text:"files (correct)",textHTML:"files (correct)"},{questionId:4916,id:20611,isCorrect:!1,questionnaireId:12,text:"objects",textHTML:"objects"},{questionId:4916,id:20612,isCorrect:!1,questionnaireId:12,text:"tables",textHTML:"tables"}],id:4917,isRequired:!0,questionnaireId:130,rationale:"First question rationale",sequence:1,text:"Second question",type:"SingleSelect"},...o?[{activityLog:{createdAtUTC:"2024-01-01T00:00:00Z",publishedVersion:1,updatedAtUTC:"2024-02-01T00:00:00Z"},assessmentType:"Practice",choiceCount:3,choices:[{questionId:4916,activityLog:{createdAtUTC:"2024-01-01T00:00:00Z",publishedVersion:1,updatedAtUTC:"2024-02-01T00:00:00Z"},assessmentType:"Practice",id:20604,isCorrect:!0,questionnaireId:130,text:"`facetable`",textHTML:"facetable"},{questionId:4916,activityLog:{createdAtUTC:"2024-01-01T00:00:00Z",publishedVersion:1,updatedAtUTC:"2024-02-01T00:00:00Z"},assessmentType:"Practice",id:20605,isCorrect:!0,questionnaireId:130,text:"`filterable`",textHTML:"filterable"},{questionId:4916,activityLog:{createdAtUTC:"2024-01-01T00:00:00Z",publishedVersion:1,updatedAtUTC:"2024-02-01T00:00:00Z"},assessmentType:"Practice",id:20606,isCorrect:!1,questionnaireId:130,text:"`key`",textHTML:"key"}],id:4916,isRequired:!0,questionnaireId:130,manualId:"manual1",sequence:1,rationale:"`facetable` is typically used in a presentation of search results that includes a hit count by category.\n\n`Filterable` is referenced in `$filter` queries, and `key` is a unique identifier for documents within the index.\n\n[Index overview - Azure Cognitive Search | Microsoft Learn](https://learn.microsoft.com/azure/search/search-what-is-an-index)\n\n[Create an Azure Cognitive Search solution - Training | Microsoft Learn](https://learn.microsoft.com/training/modules/create-azure-cognitive-search-solution/)\n\n",rationaleHTML:`

    facetable is typically used in a presentation of search results that includes a hit count by category.

    Filterable is referenced in $filter queries, and key is a unique identifier for documents within the index.

    Index overview - Azure Cognitive Search | Microsoft Learn

    Create an Azure Cognitive Search solution - Training | Microsoft Learn

    `,text:`You are building a solution that uses Azure AI Search. You need to define the field attributes for a field where the search results will include a hit count by category. Which attribute should you assign to the field? `,textHTML:`

    You are building a solution that uses Azure AI Search.

    You need to define the field attributes for a field where the search results will include a hit count by category.

    Which attribute should you assign to the field?

    `,type:"MultiSelect"},{activityLog:{createdAtUTC:"2024-01-01T00:00:00Z",publishedVersion:1,updatedAtUTC:"2024-02-01T00:00:00Z"},assessmentType:"Self",choiceCount:3,choices:[{questionId:4916,activityLog:{createdAtUTC:"2024-01-01T00:00:00Z",publishedVersion:1,updatedAtUTC:"2024-02-01T00:00:00Z"},assessmentType:"Self",id:20610,isCorrect:!0,questionnaireId:12,text:"files (correct)",textHTML:"files (correct)"},{questionId:4916,id:20611,isCorrect:!1,questionnaireId:12,text:"objects",textHTML:"objects"},{questionId:4916,id:20612,isCorrect:!1,questionnaireId:12,text:"tables",textHTML:"tables"}],id:4917,isRequired:!0,questionnaireId:130,rationale:"Fourth question rationale",sequence:1,text:"Fourth question",type:"SingleSelect"}]:[]],questionSets:[{activityLog:{createdAtUTC:"2022-01-01T00:00:00Z",publishedVersion:1,updatedAtUTC:"2022-01-01T00:00:00Z"},assessmentType:"Renewal",id:1,questionCount:2,questionnaireId:130,questions:[{activityLog:{createdAtUTC:"2024-01-01T00:00:00Z",publishedVersion:1,updatedAtUTC:"2024-02-01T00:00:00Z"},assessmentType:"Practice",choiceCount:3,choices:[{questionId:4916,id:20604,isCorrect:!0,questionnaireId:130,text:"`facetable`",textHTML:"facetable"},{questionId:4916,id:20605,isCorrect:!0,questionnaireId:130,text:"`filterable`",textHTML:"filterable"},{questionId:4916,id:20606,isCorrect:!1,questionnaireId:130,text:"`key`",textHTML:"key"}],id:4916,isRequired:!0,questionnaireId:130,sequence:1,rationale:"`facetable` is typically used in a presentation of search results that includes a hit count by category.\n\n`Filterable` is referenced in `$filter` queries, and `key` is a unique identifier for documents within the index.\n\n[Index overview - Azure Cognitive Search | Microsoft Learn](https://learn.microsoft.com/azure/search/search-what-is-an-index)\n\n[Create an Azure Cognitive Search solution - Training | Microsoft Learn](https://learn.microsoft.com/training/modules/create-azure-cognitive-search-solution/)\n\n",rationaleHTML:`

    facetable is typically used in a presentation of search results that includes a hit count by category.

    Filterable is referenced in $filter queries, and key is a unique identifier for documents within the index.

    Index overview - Azure Cognitive Search | Microsoft Learn

    Create an Azure Cognitive Search solution - Training | Microsoft Learn

    `,text:`You are building a solution that uses Azure AI Search. You need to define the field attributes for a field where the search results will include a hit count by category. Which attribute should you assign to the field? `,textHTML:`

    You are building a solution that uses Azure AI Search.

    You need to define the field attributes for a field where the search results will include a hit count by category.

    Which attribute should you assign to the field?

    `,type:"MultiSelect"},{activityLog:{createdAtUTC:"2024-01-01T00:00:00Z",publishedVersion:1,updatedAtUTC:"2024-02-01T00:00:00Z"},assessmentType:"Self",choiceCount:3,choices:[{questionId:4916,id:20610,isCorrect:!0,questionnaireId:12,text:"files (correct)",textHTML:"files (correct)"},{questionId:4916,id:20611,isCorrect:!1,questionnaireId:12,text:"objects",textHTML:"objects"},{questionId:4916,id:20612,isCorrect:!1,questionnaireId:12,text:"tables",textHTML:"tables"}],id:4917,isRequired:!0,questionnaireId:130,rationale:"First question rationale",sequence:1,text:"Second question",textHTML:"Second question",type:"SingleSelect"}],rationale:"Question Set 1 Rationale",rationaleHTML:"Question Set 1 Rationale HTML",sequence:1,text:"Question Set 1 Text",textHTML:"Question Set 1 Text HTML"}],title:"Questionnaire A",totalQuestionCount:2,totalQuestionSetCount:0}],questionsAnswered:2,questionsAnsweredCorrectly:1,questionsToPass:1,questionsToTake:2,questionTotal:2,result:{sessionId:1765,questionnaireSessions:[{questionnaireId:130,questionnaireVersion:100,responses:[{isCorrect:!0,activityLog:{createdAtUTC:"2022-01-01T00:00:00Z",updatedAtUTC:"2022-01-01T00:00:00Z",updatedBy:"bill.gates"},questionnaireId:130,questionId:4916,choiceId:20604},{isCorrect:!0,activityLog:{createdAtUTC:"2022-01-01T03:00:00Z",createdBy:"bill.gates",updatedAtUTC:"2022-01-01T03:00:00Z",updatedBy:"bill.gates"},questionnaireId:130,questionId:4917,choiceId:20610},{isCorrect:!1,activityLog:{createdAtUTC:"2022-01-01T03:00:00Z",createdBy:"bill.gates",updatedAtUTC:"2022-01-01T03:00:00Z",updatedBy:"bill.gates"},questionnaireId:130,questionId:4917,choiceId:20611}],score:{questionnaireId:130,resultStatus:"Passed",questionsToTake:2,questionsToPass:1,questionsAnsweredCorrectly:1,actionItems:[{iconUrl:"string",description:"string",title:"string",type:"StudyMaterialModule",links:[{existed:"string",choiceOptions:[],scoreOptions:[],title:"string",url:"string",context:"string",priority:1,reportingCategory:"string",reportingSubCategory:"string",id:1234,assessmentType:"Practice"}],id:1234,assessmentType:"Practice"}],title:"string"}}],studyGuide:{type:"studyguide",totalItems:1,items:[{id:"studyguide.id",listId:"list.id",type:"module",data:{docId:"docId-string",docVIId:"docVIId-string",platformId:"platformId-string",pageKind:"module",pageType:"learn",title:"Study Guide Item Title",uid:"learn-test.control-azure-services-with-cli.1-introduction",iconUrl:"/learn/achievements/align-requirements-in-azure.svg",progress:.2,durationInMinutes:60,moduleCount:2,rawUrl:"https://review.learn.microsoft.com/en-us/test/learn/azure/align-requirements-in-azure/",url:"/learn/azure/align-requirements-in-azure/"},lastModified:"2024-01-15T00:00:00Z"}],moduleCount:6,completedModuleCount:4,remainingDuration:35,totalDuration:240},studyGuidesByFailedQuestionnaires:[{questionnaireId:130,questionnaireTitle:"string",studyGuides:[{id:"string",title:"string",durationInMinutes:120}]}]},startTime:"2022-01-01T00:00:00Z",status:"NotStarted",timer:60,userResponseUpdatedAt:"2022-01-01T00:00:00Z",userChoices:[{isCorrect:!0,activityLog:{createdAtUTC:"2022-01-01T00:00:00Z",createdBy:"bill.gates",updatedAtUTC:"2022-01-01T00:00:00Z",updatedBy:"bill.gates"},questionnaireId:130,questionId:4916,choiceId:20604},{isCorrect:!0,activityLog:{createdAtUTC:"2022-01-01T03:00:00Z",createdBy:"bill.gates",updatedAtUTC:"2022-01-01T03:00:00Z",updatedBy:"bill.gates"},questionnaireId:130,questionId:4917,choiceId:20610},{isCorrect:!1,activityLog:{createdAtUTC:"2022-01-01T03:00:00Z",createdBy:"bill.gates",updatedAtUTC:"2022-01-01T03:00:00Z",updatedBy:"bill.gates"},questionnaireId:130,questionId:4917,choiceId:20611}],wasAssessmentVersionUpdated:!1,certificationPartOfStayCurrent:!1,eligibleForRecertification:!1}}function k4e(){return[{question:{id:123456,text:"string",textHTML:"string",rationale:"string",rationaleHTML:"string",type:"SingleSelect",choiceCount:1,choices:[{questionId:123456,questionnaireId:345678,text:"string",textHTML:"string",isCorrect:!0,id:12345}],activityLog:{createdAtUTC:"2024-01-01T00:00:00Z",publishedVersion:1,updatedAtUTC:"2022-01-02T00:00:00Z",updatedBy:"gsettles"},assessmentType:"Practice",questionnaireId:345678,isRequired:!0,sequence:2},userChoice:[{questionId:123456,questionnaireId:345678,text:"string",textHTML:"string",isCorrect:!0,id:12345}],correctChoice:[{questionId:123456,questionnaireId:345678,text:"string",textHTML:"string",isCorrect:!0,id:12345}]}]}var Su={createSession:async e=>zM(e),getSessionAnswerSummary:async()=>k4e(),getSessionResult:async()=>zM(),getPreviousAttemptsByParentId:async()=>[zM()],getRenewalEligibility:async()=>{},submitSession:async()=>zM()};var c3t=bt(),u3t=b.data.userLocale;var ky={getStatus(e){let t=`${N.achievements}/xp/${e}`;return $(J(t,{mode:"cors"},!0)).then(he).then(o=>{if(o.ok)return o.json();throw new Qt(o)})},getAchievements(e,t){let n={locale:t},o=`${N.achievements}/user/${e}?${pe(n,!1)}`;return $(J(o,{mode:"cors"},!0)).then(he).then(s=>{if(s.ok)return s.json();throw new Qt(s)})},redeemCode(e){let t={mode:"cors",method:"post",credentials:"include"},n=`${N.achievements}/redeem/${e}`,o={branch:R.supportLevel==="production"?"main":void 0},r=`${n}?${pe(o,!1)}`,s=J(r,t,!0);return fetch(s,t).then(he).then(i=>i.json())},requestCode(e,t,n){let o={achievementCategory:e,courseId:t,useCount:n};e===6&&S.learningPathIlt&&(o.courseId=void 0,o.learningPathId=t);let s=`${N.achievements}/code`,i={branch:R.supportLevel==="production"?"main":void 0},a=`${s}?${pe(i,!1)}`,l={mode:"cors",body:JSON.stringify(o),method:"put",credentials:"include"};return $(J(a,l,!0)).then(he).then(c=>c.json())}};Qe();function Uxe(e){let t=Math.floor(e.videoTimeSeconds),n=e.startTime===e.eventTime||e.startTime===void 0?0:io(e.eventTime-e.startTime)-e.freezeTime-e.secondsNormalSpeed+e.secondsDiffSpeed,o=e.freezeTimeAfterReplay??0,r=e.secondsNormalSpeedAfterReplay??0,s=e.secondsDiffSpeedAfterReplay??0,i=e.reStartTime!==void 0?io(e.eventTime-e.reStartTime)-o-r+s:e.startTime===e.eventTime||e.startTime===void 0?0:io(e.eventTime-e.startTime)-e.freezeTime-e.secondsNormalSpeed+e.secondsDiffSpeed,a=e.videoData.publicVideo.durationInMillisecond,l=io(a),c=t>0?Math.floor(t/l*100):0,u=Math.floor(n/l*100);Se({behavior:e.behaviorCode,actionType:Ee.OTHER,content:{vidnm:e.videoData.title,vidid:e.videoData.id,vidpct:c,vidpctwtchd:u,vidwt:t,viddur:l,vidtimeseconds:i,sessiontimeseconds:n,live:!1,parentpage:location.origin,containerName:"learnvideoplayer",currentCaptions:e.languageCaptions}})}function qxe(e,t,n,o,r){return e!==0&&t&&(n+=ee?se?s{o&&setTimeout(()=>{i(`${e} load timeout`)},o);let a=document.createElement("script");a.src=e,r&&a.setAttribute("data-callback","setupEnforcement"),a.async=!0,a.defer=!0,a.onload=s,t&&(a.integrity=t,a.crossOrigin="anonymous"),a.onerror=()=>{i(`Failed to load ${e}`)},(document.body||document.head).appendChild(a)}).then(()=>{if(n!==void 0){if(window[n]===void 0)throw new Error(`${e} loaded successfully but ${n} is undefined.`);return window[n]}})}var zxe="2.3.11.2",R3t=`/static/third-party/azure-media-player/${zxe}/azuremediaplayer.min.js`,M3t=`/static/third-party/azure-media-player/${zxe}/azuremediaplayer.min.css`;var Iy,x5;function I4e(){let e=location.href,t="#time=";if(e.includes(t)){let n=e.substring(e.indexOf(t)+t.length);return G_(n)}return G_("0s")}function P4e(){if(!location.hash.startsWith("#time="))return;let e=Iy.paused(),t=I4e();t>0&&t{Iy!==void 0&&P4e()});function LS(e){let t=new URL(e,location.origin),n=decodeURIComponent(t.pathname).toLowerCase().replace(Yw,"$1").replace(ip,"/"),o=t.searchParams.get("view");if(o&&(t.search="",t.searchParams.set("view",o),n+=t.search),n.indexOf("/learn/challenges")!==-1||n.indexOf("/training/challenges")!==-1){let r=t.searchParams.get("id");r&&(t.search="",t.searchParams.set("id",r),n+=t.search)}return n}function Gxe(e){e.type!=="docs"&&e.type!=="qa"&&e.type!=="url"&&(e.type="docs"),e.type!=="url"&&e.data.url&&(e.data.url=LS(e.data.url))}function Tr(e){e.items?.forEach(Gxe),e.sections?.forEach(t=>t.items?.forEach(Gxe))}var mt={baseUrl:N.lists,async getAllLists(e=!1){let t=J(`${this.baseUrl}${e?`?${pe({ignoreEmptyLists:!0})}`:""}`,{}),n=await $(t);if(he(n),n.ok){let o=await n.json();return o.forEach(Tr),o}throw n.status===401?new Ge(n,"UnauthorizedError"):new Ge(n,"UnexpectedError")},async getAllListsByUrl(e){let t=[];e.forEach(s=>{t.push(LS(s))});let n=JSON.stringify(t),o=J(`${this.baseUrl}/by-url`,{method:"POST",body:n}),r=await $(o);if(he(r),r.ok)return{hasError:!1,data:await r.json()};throw new Ge(r,"UnexpectedError")},async getList(e){let t={locale:b.data.userLocale,useNewFlow:!0},n=`${this.baseUrl}/${e}?${pe(t)}`,o=J(n,{},!0),r=await $(o);if(he(r),r.ok){let s=await r.json();return Tr(s),{hasError:!1,data:s}}throw r.status===401?new Ge(r,"UnauthorizedError"):r.status===404?new Ge(r,"NotFoundError"):r.status===403?new Ge(r,"ForbiddenError"):new Ge(r,"UnexpectedError")},async getStudyGuideList(e,t,n=ce().apiBranchParam){let o={locale:b.data.userLocale,branch:R.supportLevel==="production"&&R.reviewFeatures?n:null},r={credentials:R.supportLevel==="production"&&R.reviewFeatures?"include":void 0},s=`${this.baseUrl}/studyguide/${e}/${t}?${pe(o)}`,i=J(s,r,!0),a=await $(i);if(he(a),a.ok){let l=await a.json();return Tr(l),l}throw a.status===404?new Ge(a,"NotFoundError"):new Ge(a,"UnexpectedError")},async createList(e){let t=JSON.stringify(e),n=J(this.baseUrl,{method:"POST",body:t},!0),o=await $(n);if(he(o),o.ok)return{hasError:!1,data:await o.json()};if(o.status===400)return{hasError:!0,error:await o.json()};throw o.status===401?new Ge(o,"UnauthorizedError"):new Ge(o,"UnexpectedError")},async deleteList(e){let t=J(this.baseUrl+"/"+e,{method:"DELETE"},!0),n=await $(t);if(he(n),n.ok)return{hasError:!1,data:void 0};throw new Ge(n,"UnexpectedError")},async copyList(e,t,n){let o=JSON.stringify({name:t,description:n}),r=J(`${this.baseUrl}/copy/${e}`,{method:"POST",body:o},!0),s=await $(r);if(he(s),s.ok){let i=await s.json();return Tr(i),{hasError:!1,data:i}}if(s.status===400)return{hasError:!0,error:await s.json()};throw new Ge(s,"UnexpectedError")},async submitForLocalize(e){let n=J(`${this.baseUrl}/${e}/localize`,{method:"PATCH",body:"true"},!0),o=await $(n);if(he(o),o.ok){let r=await o.json();return Tr(r),{hasError:!1,data:r}}if(o.status===400)return{hasError:!0,error:await o.json()};throw new Ge(o,"UnexpectedError")},async convertList(e){let n=J(`${this.baseUrl}/${e}/official`,{method:"PATCH",body:"true"},!0),o=await $(n);if(he(o),o.ok){let r=await o.json();return Tr(r),{hasError:!1,data:r}}if(o.status===400)return{hasError:!0,error:await o.json()};throw new Ge(o,"UnexpectedError")},async toggleListPrivacy(e,t){let n=t.toString(),o=J(`${this.baseUrl}/${e}/private`,{method:"PATCH",body:n},!0),r=await $(o);if(he(r),r.ok){let s=await r.json();return Tr(s),{hasError:!1,data:s}}if(r.status===400)return{hasError:!0,error:await r.json()};throw new Ge(r,"UnexpectedError")},async toggleShowUserDisplayName(e,t){let n=t.toString(),o=J(`${this.baseUrl}/${e}/showuserdisplayname`,{method:"PATCH",body:n},!0),r=await $(o);if(he(r),r.ok){let s=await r.json();return Tr(s),{hasError:!1,data:s}}if(r.status===400)return{hasError:!0,error:await r.json()};throw new Ge(r,"UnexpectedError")},async updateListMetadata(e,t){let n=JSON.stringify({name:t.name,description:t.description}),o={useNewFlow:!0},r=J(`${this.baseUrl}/${e}?${pe(o)}`,{method:"PATCH",body:n},!0),s=await $(r);if(he(s),s.ok){let i=await s.json();return Tr(i),{hasError:!1,data:i}}if(s.status===400)return{hasError:!0,error:await s.json()};throw new Ge(s,"UnexpectedError")},async sortList(e,t){let n={locale:b.data.userLocale},o=`${this.baseUrl}/${e}?${pe(n)}`,r=JSON.stringify(t),s=J(o,{method:"PUT",body:r},!0),i=await $(s);if(he(i),i.ok){let a=await i.json();return Tr(a),{hasError:!1,data:a}}if(i.status===400)return{hasError:!0,error:await i.json()};throw new Ge(i,"UnexpectedError")},async addItem(e,t){let n=JSON.stringify(t),o=J(this.baseUrl+"/"+e,{method:"POST",body:n},!0),r=await $(o);if(he(r),r.ok)return{hasError:!1,data:await r.json()};if(r.status===400||r.status===403)return{hasError:!0,error:await r.json()};throw new Ge(r,"UnexpectedError")},async deleteItem(e,t){let n=J(this.baseUrl+"/"+e+"/"+t,{method:"DELETE"},!0),o=await $(n);if(he(o),!(o.ok||o.status===204))throw new Ge(o,"UnexpectedError")},async updateItem(e,t,n){let o=JSON.stringify(n),r=J(`${this.baseUrl}/${e}/${t}`,{method:"PUT",body:o},!0),s=await $(r);if(he(s),s.ok)return{hasError:!1,data:await s.json()};if(s.status===400||s.status===403)return{hasError:!0,error:await s.json()};throw new Ge(s,"UnexpectedError")},async getListsItems(e){let t={uid:e.join(","),locale:b.data.userLocale},n=J(`${this.baseUrl}/items/?${pe(t)}`,{}),o=await $(n);if(he(o),o.ok)return(await o.json()).items;throw new Ge(o,"UnexpectedError")},async createSection(e,t,n,o){let r=JSON.stringify({name:t,description:n,daysToComplete:o}),s=J(`${this.baseUrl}/${e}/section`,{method:"POST",body:r},!0),i=await $(s);if(he(i),i.ok)return{hasError:!1,data:await i.json()};if(i.status===400)return{hasError:!0,error:await i.json()};throw new Ge(i,"UnexpectedError")},async updateSection(e,t,n,o,r){let s=JSON.stringify({name:n,description:o,daysToComplete:r}),i=J(`${this.baseUrl}/${e}/section/${t}`,{method:"PATCH",body:s},!0),a=await $(i);if(he(a),a.ok)return{hasError:!1,data:await a.json()};if(a.status===400)return{hasError:!0,error:await a.json()};throw new Ge(a,"UnexpectedError")},async deleteSection(e,t){let n=J(`${this.baseUrl}/${e}/section/${t}`,{method:"DELETE"},!0),o=await $(n);if(he(o),o.ok)return{hasError:!1,data:await o.json()};if(o.status===400)return{hasError:!0,error:await o.json()};throw new Ge(o,"UnexpectedError")},async getActiveTakedowns(e){if(e===null)return!1;let t=J(`${this.baseUrl}/takedown/active/${e}`,{method:"GET"},!1),n=await $(t);return n.ok?(await n.json()).hasContentTakedowns:!1},async getReportStatus(e){if(e===null)return"None";let t=J(`${this.baseUrl}/report/status/${e}`,{method:"GET"},!1),n=await $(t);return n.ok?await n.json():"Unknown"}};async function Py(e=B.document,t=!1){let n;if(typeof e=="string")if(!t&&new URL(rt(e,b.data.userLocale),B.location.origin).href===B.location.href)e=B.document,n=new URL(B.location.href);else{let c=await f5(e);n=c.url,e=c.document}else n=new URL(e.URL);let o=ok(e),r=()=>o.page_type==="show"&&o.type?o.type:o.page_kind||"",s=new RegExp(`^/${b.data.userLocale}/answers[$/]`,"i"),i;n.pathname.match(s)?i="qa":i="docs";let a=n.toString(),l=null;return(n.pathname.indexOf("/learn/challenges")!==-1||n.pathname.indexOf("/training/challenges")!==-1)&&(l=dr().id),{type:i,data:{url:LS(a),rawUrl:a,title:o["og:title"]||e.title,docId:o.document_id||"",docVIId:o.document_version_independent_id||"",platformId:o.platform_id||"",pageType:o.page_type||"",pageKind:r(),uid:o.uid||"",challengeId:l,eventUid:o.eventUid||"",durationInMillisecond:x5||null,showId:o.showId||""}}}function Vxe(e,t){return{type:"url",data:{url:e,rawUrl:"",title:t,docId:"",docVIId:"",platformId:"",pageType:"",pageKind:"",uid:"",challengeId:"",eventUid:"",durationInMillisecond:null,showId:""}}}var rr={async getSkillingPlan(e){let t={locale:b.data.userLocale},n=`${N.lists}/skillingPlan/${e}?${pe(t)}`,r=J(n,{method:"GET"}),s=await $(r);if(he(s),s.ok){let i=await s.json();return await _p(i),i}throw new Error(`${s.status}: ${s.statusText}`)},async completeSkillingPlan(e){let t=`${N.lists}/completeSkillingPlan`,o={method:"POST",body:JSON.stringify(e)},r=await $(J(t,o));if(he(r),r.ok){let s=await r.json();return await _p(s),{hasError:!1,data:s}}if(r.status===400)return{hasError:!0,error:await r.json()};throw new Error(`${r.status}: ${r.statusText}`)},async createSkillingPlan(e){let t=`${N.lists}/skillingPlan`,o={method:"POST",body:JSON.stringify(e)},r=await $(J(t,o));if(he(r),r.ok){let s=await r.json();return await _p(s),{hasError:!1,data:s}}if(r.status===400)return{hasError:!0,error:await r.json()};throw new Error(`${r.status}: ${r.statusText}`)},async updateSkillingPlan(e,t){let n=`${N.lists}/skillingPlan/${e}`,r={method:"PUT",body:JSON.stringify(t)},s=await $(J(n,r));if(he(s),s.ok){let i=await s.json();return await _p(i),{hasError:!1,data:i}}if(s.status===400)return{hasError:!0,error:await s.json()};throw new Error(`${s.status}: ${s.statusText}`)},async modifySkillingPlan(e,t){let n=`${N.lists}/skillingPlan/${e}`,r={method:"PATCH",body:JSON.stringify(t)},s=await $(J(n,r));if(he(s),s.ok){let i=await s.json();return await _p(i),{hasError:!1,data:i}}if(s.status===400)return{hasError:!0,error:await s.json()};throw new Error(`${s.status}: ${s.statusText}`)},async modifyPlanList(e,t){let n=`${N.lists}/skillingPlan/${e}/list`,r={method:"PATCH",body:JSON.stringify(t)},s=await $(J(n,r));if(he(s),s.ok){let i=await s.json();return await _p(i),{hasError:!1,data:i}}if(s.status===400)return{hasError:!0,error:await s.json()};throw new Error(`${s.status}: ${s.statusText}`)},async deleteSkillingPlan(e){let t=`${N.lists}/skillingPlan/${e}`,o=await $(J(t,{method:"DELETE"}));if(he(o),!o.ok)throw new Error(`${o.status}: ${o.statusText}`)},async getJoinedSkillingPlans(e=0,t=12,n){let o=`${N.lists}/skillingPlan/joined/${n}?${pe({page:e+1,pageSize:t})}`,r=J(o,{},!0),s=await $(r);if(he(s),s.ok)return await s.json();throw new Error(`${s.status}:${s.statusText}`)},async getCreatedSkillingPlans(e=0,t=12){let n=t===-1?"":"?"+pe({page:e+1,pageSize:t}),o=`${N.lists}/skillingPlan/created${n}`,r=J(o,{},!0),s=await $(r);if(he(s),s.ok)return await s.json();throw new Error(`${s.status}:${s.statusText}`)},async joinSkillingPlan(e){let n=ce(location.search).learnerGroupId,o=`${N.lists}/skillingPlan/${e}/join?${pe({registrationType:1,learnerGroupId:n||""})}`,r=J(o,{method:"POST"},!0,!1),s=await $(r);if(he(s),s.ok){let i=await s.json();return _p(i),{hasError:!1,data:i}}throw new Error(`${s.status}:${s.statusText}`)},async leaveSkillingPlan(e){let t=`${N.lists}/skillingPlan/${e}/leave`,n=J(t,{method:"POST"},!0,!1),o=await $(n);if(he(o),o.ok){let r=await o.json();return _p(r),{hasError:!1,data:r}}throw new Error(`${o.status}:${o.statusText}`)},async trackClick(e,t){let n=`${N.lists}/skillingPlan/${e}/trackClick/${t}`,o=J(n,{method:"POST"},!0,!1),r=await $(o);if(he(r),r.ok)return{};throw new Error(`${r.status}:${r.statusText}`)},async getPlanStatistics(e){let t=`${N.lists}/skillingPlan/${e}/statistics`,n=J(t,{},!0),o=await $(n);if(he(o),o.ok)return await o.json();throw new Error(`${o.status}:${o.statusText}`)},async createLearnerGroup(e,t,n=""){let o=`${N.lists}/skillingPlan/${e}/learnerGroup`,s={method:"POST",body:JSON.stringify({name:t,description:n})},i=await $(J(o,s));if(he(i),i.ok)return{hasError:!1,data:await i.json()};if(i.status===400)return{hasError:!0,error:await i.json()};throw new Error(`${i.status}:${i.statusText}`)},async updateLearnerGroup(e,t,n,o=""){let r=`${N.lists}/skillingPlan/${e}/learnerGroup/${t}`,i={method:"PATCH",body:JSON.stringify({name:n,description:o})},a=await $(J(r,i));return he(a),a.ok?{hasError:!1,data:await a.json()}:{hasError:!0,error:await a.json()}},async deleteLearnerGroup(e,t){let n=`${N.lists}/skillingPlan/${e}/learnerGroup/${t}`,r=await $(J(n,{method:"DELETE"}));return he(r),r.ok?{hasError:!1}:{hasError:!0,error:await r.json()}}};async function _p(e){e.lastModified&&(e.publishedOn=e.lastModified),Tr(e.contentList)}function L4e(e){return e.type==="bookmarks"&&(e.name=UE),e}var RS=null;async function Qxe(e=()=>!0,t=!1){if(!RS)try{RS=(await mt.getAllLists(t)).map(L4e)}catch{RS=null}return RS?.filter(e)??null}async function Yxe(){return C.isAuthenticated===!1?[]:(await rr.getCreatedSkillingPlans(0,-1)).skillingPlans}function Wxe(e){return RS=null,mt.createList(e)}async function GM(){let e=Zn()||"",t=await sm(e),n=["MicrosoftEmployee","MicrosoftAgencyTemporary","MicrosoftVendor","MicrosoftIntern"];return t?t.affiliations.some(o=>n.includes(o)):!1}function R4e(e,t=!1){switch(e){case"MicrosoftEmployee":return U9;case"MicrosoftAgencyTemporary":case"MicrosoftVendor":return q9;case"MicrosoftIntern":return H9;case"RegionalDirector":return B9;case"Mvp":return t?dae:O9;case"StudentAmbassador":return t?pae:z9;default:return""}}function VM(e){let t=e?e[0]:"";return R4e(t)}function T5(e,t){e=decodeURIComponent(e);let n=Es(e,t.target),o=d``,r=d``;if(n){let s=document.createElement("div");x(r,s),new Te(s).show()}}async function Kxe(e){if(!R.reviewFeatures)return;let t=Array.from(e.querySelectorAll("[data-contenteditbtn] a, a[data-contenteditbtn]"));for(let n of t){Ye("edit-in-editor",{require:!0})||(n.hidden=!1);let o=n.dataset.original_content_git_url,r=n.dataset.original_content_git_url_template,s=n.dataset.pr_repo,i=n.dataset.pr_branch;r&&r.length&&s&&s.length&&i&&i.length?n.setAttribute("href",r.replace("{repo}",s).replace("{branch}",i)):o&&o.length&&n.setAttribute("href",o)}$4e(t)}async function M4e(e){let t=document.createElement("div");t.classList.add("modal-content");let n=new Te(t);return x(e,t),n.show()}async function $4e(e){if(!Ye("edit-in-editor",{require:!0}))return;console.log("edit-in-editor flag running.");let t=await D4e();for(let n of e){let{title:o,description:r,link:s,moreInfo:i}=Dxe(t,n);n.addEventListener("click",function(a){a.preventDefault(),M4e($xe(o,r,s,i))}),n.hidden=!1}}async function D4e(){if(!C.isAuthenticated||!await GM())return 0;if(!N4e())return 1;let e=d5();return await F4e(e)?3:2}function N4e(){let e=ok(document);return e?.original_content_git_url?e?.original_content_git_url?.endsWith(".md"):!1}async function F4e(e){if(!e)return!1;let t=e?await p5(e.access_token):null,n=await Lxe();return t&&n&&n.login&&n.login.toLowerCase()===t.toLowerCase()}async function Jxe(e){let t={method:"POST",body:e,credentials:"same-origin"},n=new Request(N.siteFeedback,t),o=await $(n);if(!o.ok)throw new Error(`Error fetching ${n.url}`);return o}var O4e=["jpeg","jpg","png","gif"],U4e=1024*1024*5;function Zxe(e){let t=[];return Array.from(e).forEach(n=>{(n.type.split("/")[0]!=="image"||O4e.indexOf(n.type.split("/")[1])===-1)&&t.push(Pie.replace("{fileName}",n.name)),n.size>=U4e&&t.push(Lie.replace("{fileName}",n.name))}),t}k();k();var gn={"functionality-other":jJ,"learn-content-other":YJ,"feature-request":VJ,"category-general":QJ,"tutorial-content-quality":HJ,"learn-credit-problem":KJ,"sandbox-problem":XJ,"registration-problem":ZJ,"problem-with-cloudshell":OJ,"problem-with-install":qJ,"problem-with-dotnet-editor":UJ,"content-mistake":GJ,"content-question":WJ,"translation-quality":eZ,"category-other":JJ},q4e=[{icon:"docon-developer-tools",value:"Microsoft Learn/Customer Feedback/Engineering",id:"feedback-report-category-product",subCategories:[{value:"Microsoft Learn/Customer Feedback/Engineering/Gamification",text:gn["learn-credit-problem"]},{value:"Microsoft Learn/Customer Feedback/Engineering/Interactivity",text:gn["sandbox-problem"]},{value:"Microsoft Learn/Customer Feedback/Engineering/Profile",text:gn["registration-problem"]},{value:"Microsoft Learn/Customer Feedback/Engineering",text:gn["category-other"]}],text:gn["functionality-other"]},{icon:"docon-text-document",value:"Microsoft Learn/Customer Feedback/Content",id:"feedback-report-category-content",subCategories:[{value:"Microsoft Learn/Customer Feedback/Content/{{REPO-AREA}}",text:gn["content-mistake"]},{value:"Microsoft Learn/Customer Feedback/Content/{{REPO-AREA}}",text:gn["content-question"]},{value:"Microsoft Learn/Customer Feedback/Localization/{{REPO-AREA}}",text:gn["translation-quality"]},{value:"Microsoft Learn/Customer Feedback/Content",text:gn["category-other"]}],text:gn["learn-content-other"]},{icon:"docon-web-components",value:"Microsoft Learn/Customer Feedback/Engineering/Experience",text:gn["feature-request"]},{icon:"docon-feedback",value:"Microsoft Learn/Customer Feedback",text:gn["category-general"]}],H4e={type:"reportIssue",source:"Report an issue",orgId:"0842495d64db4f69a49eaab7007ce057",categories:q4e},B4e=[{icon:"docon-developer-tools",value:"Tutorial Feedback/Customer Feedback/Engineering",id:"feedback-report-category-product",subCategories:[{value:"Tutorial Feedback/Customer Feedback/Engineering/Interactivity",text:gn["problem-with-cloudshell"]},{value:"Tutorial Feedback/Customer Feedback/Engineering/Interactivity",text:gn["problem-with-install"]},{value:"Tutorial Feedback/Customer Feedback/Engineering/Interactivity",text:gn["problem-with-dotnet-editor"]},{value:"Tutorial Feedback/Customer Feedback/Engineering/Profile",text:gn["registration-problem"]},{value:"Tutorial Feedback/Customer Feedback/Engineering",text:gn["category-other"]}],text:gn["functionality-other"]},{icon:"docon-text-document",value:"Tutorial Feedback/Customer Feedback/Content",id:"feedback-report-category-content",subCategories:[{value:"Tutorial Feedback/Customer Feedback/Content/{{REPO-AREA}}",text:gn["content-mistake"]},{value:"Tutorial Feedback/Customer Feedback/Content/{{REPO-AREA}}",text:gn["content-question"]},{value:"Tutorial Feedback/Customer Feedback/Localization/{{REPO-AREA}}",text:gn["translation-quality"]},{value:"Tutorial Feedback/Customer Feedback/Content",text:gn["category-other"]}],text:gn["tutorial-content-quality"]},{icon:"docon-web-components",value:"Tutorial Feedback/Customer Feedback/Engineering/Experience",text:gn["feature-request"]},{icon:"docon-feedback",value:"Tutorial Feedback/Customer Feedback",text:gn["category-general"]}],z4e={type:"tutorialFeedback",source:"Report an issue",orgId:"0842495d64db4f69a49eaab7007ce057",categories:B4e};function Xxe(e,t){let n=G4e(t),o=V4e(n);x(o,e)}function G4e(e){return e==="reportIssue"?H4e:z4e}function V4e(e){return d`

    ${$J}

    ${nZ}
    ${e.categories.map(t=>d``)}
    ${e.categories.filter(t=>t.subCategories!==void 0).map(t=>d``)}
    `}var w5=!1;ut.subscribe(bn,()=>{E5("reportIssue")});var eTe=e=>{e.disabled=!1,e.classList.remove("is-loading")},C5=e=>e.querySelector("input:checked"),j4e=(e,t)=>{let n=!1,o=e!=null&&"subCategory"in e.dataset&&e.dataset.subCategory||null;for(let r in t){let s=o!==r,i=t[r].closest("div.field");t[r].disabled=s,i.hidden=s;let a=Array.from(i.querySelectorAll(".radio"));s?a.forEach(l=>{l.querySelector("input").removeAttribute("required")}):(n=!0,a.forEach(l=>{l.querySelector("input").setAttribute("required","")}))}return n},tTe=e=>e.dispatchEvent(new CustomEvent("opened",{bubbles:!1})),Q4e=(e,t,n)=>{j4e(e,t)||tTe(n)},Y4e=e=>{Array.from(e.querySelectorAll("[id^='feedback-report-category-'] .radio")).forEach(n=>{n.querySelector("input").setAttribute("required","")}),tTe(e)},W4e=e=>{e.hidden=!1},K4e=e=>{let t=e.target;if(!t.files||t.files.length===0)return;let n=document.querySelector("#attachment-validation"),o=Zxe(t.files),r=t.parentElement.querySelector("#feedback-report-attachment-file-name");if(o.length){let i=o.map(a=>d`

    ${a}

    `);x(d`${i}`,n),n.hidden=!1,x(d``,r);return}let s=Array.from(t.files).map(i=>i.name).join(", ");x(d`${s}`,r),x(d``,n),n.hidden=!0},J4e=e=>{e.disabled=!0,e.classList.add("is-loading")},S5=e=>e.hidden=!0,Z4e=()=>{let e=document.getElementById("feedback-report-category"),t=C5(e),n=t.value,o=t.parentElement.textContent.trim();return{value:n,text:o}},X4e=e=>{let t=document.getElementById("feedback-report-category"),n=C5(t);if(n===null||!n.dataset.subCategory)return{valueSub:null,textSub:null};let r=Array.from(e[n.dataset.subCategory].querySelectorAll(".radio input")).filter(a=>a.checked)[0],s=r.value,i=r.parentElement.textContent.trim();return{valueSub:s,textSub:i}},e6e=e=>new FormData(e),nTe=e=>e.hidden=!1,t6e=(e,t,n,o)=>{e.classList.remove("is-hidden"),o.classList.add("is-hidden"),t.classList.add("is-hidden"),n.classList.add("is-hidden")},oTe=(e,t)=>{let n=e.querySelector("#feedback-report-attachment-file-name");document.getElementById("feedback-report-category-product").setAttribute("value",""),document.getElementById("feedback-report-category-content").setAttribute("value",""),e.category.value="",e.summary.value="",e.description.value="",e.attachment.value="",e.reset(),Array.from(e.querySelectorAll(".radio")).forEach(r=>{let s=r.querySelector("input");s.setAttribute("required",""),s.checked=!1});for(let r in t){let s=t[r].closest("div.field"),i=e.querySelector("#feedback-form-info");s.hidden=!0,i.hidden=!0}x(d``,n)},n6e=async(e,t,{successMessage:n})=>{let{value:o,text:r}=Z4e(),{valueSub:s,textSub:i}=X4e(t);e.feedbackCategory&&(e.feedbackCategory.value=r),e.category.value=s||o,e.issueType&&(e.issueType.value=i),R.reviewFeatures&&(e.summary.value=`[TEST] ${e.summary.value}`),Jxe(e6e(e)),nTe(n),oTe(e,t)},o6e=(e,t,n,o,{successMessage:r})=>{e.classList.add("is-hidden"),S5(r),o.classList.remove("is-hidden"),t.classList.remove("is-hidden"),t.disabled=!0,n.classList.remove("is-hidden")};async function E5(e,t,n=!1){let o=document.querySelector(".feedback-report");if((!S.feedbackReport||!o)&&!n)return;Xxe(o,e);let r=document.querySelector("#feedback-report-form");if(r===null||w5)return;w5=!0,du(()=>{w5=!1});let s=r.querySelector("#feedback-report-error-message"),i=r.querySelector("#feedback-report-category"),a={"feedback-report-category-product":r.querySelector("#feedback-report-category-product"),"feedback-report-category-content":r.querySelector("#feedback-report-category-content")},l=r.querySelector("#feedback-report-attachment"),c=r.querySelector("fieldset:nth-of-type(2)"),u=r.querySelector("button[type=submit]"),p=r.querySelector("#feedback-report-success-message"),m=r.querySelector("#feedback-report-feedbackTitle"),g=r.querySelector("#feedback-report-description"),f=r.querySelector("#submit-another-feedback-button"),_=r.querySelector("#clear-form-button"),h=r.querySelector("#feedback-type-selection");r.contentLocale.value=b.data.contentLocale,r.userLocale.value=b.data.userLocale,r.jsllImpressionGuid.value="";let v=ds.get("ai_session");r.aiSessionId.value=v!==void 0?v.split("|")[0]:"";let{uid:y,documentId:T,versionIndependentDocumentId:I,platformId:E,contentPath:q,url:D,author:le}=ce(t);r.uid.value=y,r.documentId.value=T,r.versionIndependentDocumentId.value=I,r.platformId.value=E,r.contentPath.value=q,r.url.value=D,r.author.value=le;let we=()=>{if(!r.checkValidity()){u.disabled=!0;return}eTe(u)};Ht(i,"change",()=>{let Le=C5(i);Le?Le.dispatchEvent(new CustomEvent("selected")):Le=null}),Ht(m,"input",()=>{we()}),Ht(g,"input",()=>{we()});let K=Array.from(i.querySelectorAll("input"));Array.from(K).forEach(Le=>Ht(Le,"selected",()=>Q4e(Le,a,r))),Object.keys(a).forEach(Le=>Ht(a[Le],"change",()=>{Y4e(r)})),Ht(r,"opened",()=>W4e(c)),Ht(l,"change",K4e),Ht(r,"submit",async Le=>{if(Le.preventDefault(),!u.disabled){J4e(u),S5(s),S5(p);try{await n6e(r,a,{successMessage:p}),t6e(f,u,_,h)}catch{nTe(s)}eTe(u)}}),Ht(_,"click",()=>{oTe(r,a)}),Ht(f,"click",()=>{o6e(f,u,_,h,{successMessage:p})})}k();k();var r6e={"01-yes-content-easy":oZ,"02-yes-problem-solved":iZ,"03-yes-information-easy":lZ,"04-yes-learned-smth-new":aZ,...b.data.userLocale!=="en-us"?{"05-yes-localization":u2}:{},"00-yes-other":pa},s6e={"01-no-content-hard":rZ,"02-no-example-problem":vZ,"03-no-discovery-issue":sZ,"04-no-outdated-content":cZ,...b.data.userLocale!=="en-us"?{"05-no-localization":u2}:{},"00-no-other":pa},iTe={"ask-the-community":F7,"get-product-support":qZ,"get-help-at-qna":UZ};function aTe(){let e=S.usingStandardFeedback||S.openSourceFeedback;return d``}function rTe(){return!!(b.data.feedbackHelpLinkType&&b.data.feedbackHelpLinkType in iTe&&b.data.feedbackHelpLinkUrl)}function lTe(){return d`

    ${wae}

    ${Tie}

    `}function A5(e,t,n,o,r){return d``}function sTe(e,t){let n=[];for(let o in e)n.push(d``);return n}function cTe(){window.addEventListener("form-validating",e=>{e.detail.errors?.length>=0&&(k5(e.detail.form,e.detail.errors),i6e(e.detail.form,e.detail.errors))}),window.addEventListener("clear-validation-errors",e=>{let t=e.detail.target;Ly(t)})}function k5(e,t){let n=e.querySelector(".checkbox-group.required:not([hidden])");if(!n)return;let o=n.querySelectorAll('input[type="checkbox"]');if(!o)return;if(n.querySelectorAll('input[type="checkbox"]:checked').length<1){n.classList.add("errored"),o.forEach(l=>l.closest(".checkbox")?.classList.add("is-invalid"));let s=Xv,i=n.querySelector('input[type="checkbox"]');Er(i,s),uTe(t,i,s);let a=`${go} ${PZ}`;pt(a,"assertive")}}function i6e(e,t){let n=e.querySelector(".choice-selection.required");if(!n)return;let o=n.querySelectorAll(".thumb-rating-button");if(!o)return;if(!n.querySelector(".thumb-rating-button.button-selected")){n.classList.add("errored"),o.forEach(a=>{a.classList.add("button-danger"),a.querySelector(".icon")?.classList.add("color-danger")});let s=jf;Er(o[0],s),uTe(t,o[0],s);let i=`${go} ${LZ}`;pt(i,"assertive")}}function uTe(e,t,n){e.find(o=>o.message===n)||e.push({input:t,message:n})}function Ly(e){let t,n,o=e.closest("form");o&&(e instanceof HTMLInputElement?t=e.closest(".suggestions-list.errored"):e instanceof HTMLButtonElement&&(t=o.querySelector(".suggestions-list.errored"),n=o.querySelector(".choice-selection.errored")),!(!t&&!n)&&(t&&(t.classList.remove("errored"),t.querySelectorAll('input[type="checkbox"]').forEach(a=>a.closest(".checkbox").classList.remove("is-invalid")),o.querySelector("[data-feedback-suggestions] .field-error")?.remove(),o.querySelector("[module-assessment-ai-feedback-suggestions] .field-error")?.remove()),n&&(n.classList.remove("errored"),n.querySelectorAll(".thumb-rating-button").forEach(a=>{a.classList.remove("button-danger"),a.querySelector(".icon")?.classList.remove("color-danger")}),o.querySelector("[data-feedback-rating] .field-error")?.remove(),o.querySelector("[module-assessment-ai-feedback-rating] .field-error")?.remove())))}function a6e(e){return e.querySelector("[data-feedback-suggestions]")}function jM(e){let t=a6e(e)?.querySelectorAll(".suggestions-list:not([hidden]) .checkbox > input:checked")??[];return Array.from(t)}var QM=!1;function YM(){let e=location.pathname;return b.data.pageTemplate==="ModuleUnit"?e.substring(0,e.lastIndexOf("/")+1):e}async function WM(e){let t=document.getElementById("user-feedback"),n=document.getElementById("site-user-feedback-footer");if(e==="ModuleUnit"&&(QM=!1),!t&&!n)return;if(b.data.isArchived){let r=document.querySelector("[data-hide-on-archived]");r&&(r.hidden=!0);return}c6e(),dTe(),l6e(),cTe(),h6e();let o=u6e();m6e(o,e==="Module"||e==="ModuleUnit"?"training-feedback":"standard-feedback"),await p6e(o)}function dTe(e=localStorage){let t=e.getItem(`binary-rating-${YM()}`);t!=="rating-yes"&&t!=="rating-no"||(MS(t),Xg(t))}function MS(e,t=Array.from(document.querySelectorAll("[data-binary-rating-response]"))){if(!QM)for(let n of t){let o=n.dataset.binaryRatingResponse===e;n.classList[o?"add":"remove"]("button-selected"),n.classList.contains("link-button")||n.classList[o?"add":"remove"]("is-selected"),n.setAttribute("aria-pressed",o?"true":"false")}}function l6e(){let e=t=>{if(!(t.target instanceof HTMLElement&&t.target.closest("[data-user-feedback-button]")))return;let o=localStorage.getItem(`binary-rating-${YM()}`);!o||o!=="rating-no"&&o!=="rating-yes"||(MS(o),Xg(o))};window.addEventListener("click",e)}function c6e(){let e=t=>{let n=t.target instanceof HTMLElement&&t.target.closest("[data-binary-rating-response]");if(!n)return;let o=n.dataset.binaryRatingResponse;o!=="rating-no"&&o!=="rating-yes"||(n.classList.contains("button-selected")||Ly(n),MS(o),Xg(o),QM||localStorage.setItem(`binary-rating-${YM()}`,o))};window.addEventListener("click",e)}function u6e(){let e=document.createElement("div"),t=aTe();return x(t,e),dTe(),new Te(e)}async function d6e(){let[e,t,n,o]=await Promise.all([Fr("ask-learn-on-articles"),Fr("ask-learn-on-reference"),Fr("ask-learn"),ve.then(()=>C.isAuthenticated)]);return Ye("ask-learn-popover",{require:!0})?{enabled:!0,userAuthenticated:o}:Ye("disable-ask-learn-popover",{require:!0})?{enabled:!1,userAuthenticated:o}:{enabled:e||t||n,userAuthenticated:o}}async function p6e(e){let t=Array.from(document.querySelectorAll("[data-binary-rating-response]")),n=document.getElementById("user-feedback-button");n&&n.addEventListener("click",()=>e.show());let r=Array.from(t.filter(l=>l.dataset.binaryRatingResponse==="rating-yes")).length>0,{enabled:s,userAuthenticated:i}=await d6e(),a=b.data.userLocale.substring(0,2).toLocaleLowerCase()==="en";if(s&&i&&a&&r){t.forEach(c=>c.addEventListener("click",()=>{c.dataset.binaryRatingResponse==="rating-yes"&&e.show();let u=localStorage.getItem(`binary-rating-${YM()}`);u&&(MS(u),Xg(u))})),window.addEventListener("click",async c=>{let p=c.target.closest("[data-bi-name]");if(!p)return;let m=p.dataset.biName;f6e(c),m==="feedback-suggest"?(e.show(),MS("rating-no"),Xg("rating-no")):m==="ask-learn-assistant-entry-troubleshoot"&&Go&&(await Go.initialized,Go.responseCount&&Go.responseCount>=Go.maxMessages&&Go.reset(),Go.submitWithPrompt("/troubleshoot"),Go.getActiveTextArea()?.focus())});let l=Array.from(document.querySelectorAll(RR+","+MR));s&&(b6e(),l.forEach(c=>{c.hidden=!1}))}else t.forEach(c=>{c.dataset.binaryRatingResponse==="rating-no"&&c.removeAttribute("hidden")}),Array.from(document.querySelectorAll("#mobile-help-popover,#help-popover")).forEach(c=>c.hidden=!0),t.forEach(c=>c.addEventListener("click",()=>e.show()))}function m6e(e,t="standard-feedback"){window.addEventListener("submit",n=>{let o=n.target instanceof HTMLElement&&n.target.closest("[data-feedback-verbatim-form]");if(!o||(n.preventDefault(),o.querySelector(".errored")))return;g6e(n,o,t),QM=!0;let r=document.createElement("div");r.classList.add("modal-slide"),x(lTe(),r),e.updateContent(r,!1,!1)})}function g6e(e,t,n){if(!e)return;let o=jM(t),r=t.querySelector("#user-feedback-textarea"),s=r?r.value:"",i=t.querySelector(".thumb-rating-button.button-selected"),a=i&&i.dataset.binaryRatingResponse==="rating-yes"?1:0,l=o.map(c=>c.value);e.target&&Vt(e.target,{behavior:me.SURVEYCOMPLETE,actionType:Ee.OTHER,content:{autoIngest:!0,type:n,sat:a,vtbm:s,reasons:l}})}function f6e(e){let t=e.target;(t.closest('[data-test-id="feedback-popover"]')||t.closest('[data-test-id="footer-feedback-popover"]'))&&Vt(t,{actionType:Ee.CLICKLEFT,behavior:me.VOTE,content:{autoIngest:!0,event:"feedback-thumbs-down-details-clicked",cN:"details-rating-no",type:"popover-interaction"},contentTags:{feedbackType:"negative",feedbackMethod:"details-popover",aN:"feedback-unhelpful-popover"}})}function Xg(e){let t=document.querySelector("[data-feedback-suggestions]");if(!t)return;t.hidden=!1;let n=document.querySelector("[data-feedback-options-yes]"),o=document.querySelector("[data-feedback-options-no]");!n||!o||(n.hidden=e!=="rating-yes",o.hidden=e!=="rating-no")}function h6e(){let e=document.getElementById("ms--user-feedback-configurable-help-link");if(e){e.classList.remove("display-none");return}}function b6e(){if(!document.body.classList.contains("layout-flyout-active")){let e=document.querySelector('#help-popover [data-help-option="ask-learn"]');e&&e.classList.contains("is-selected")&&e.classList.remove("is-selected")}}k();var I5="v9",_6e=.03,KM=Ye("survey-popover",{require:!0}),y6e=new Set(["Architecture","CareerPath","Certification","CertificationRenewal","Conceptual","Course","FAQ","HowTo","KnownIssue","LearningPath","Lifecycle","Module","ModuleUnit","Question","QuestionList","Reference","Sample","Tag","TagList"]),v6e=new Set(["en-us","de-at","de-ch","de-de","fr-be","fr-ca","fr-ch","fr-fr","es-es","es-mx"]),pTe=0,mTe=!1;function x6e(e=S.surveyPopover,t=b.data.pageTemplate,n=b.data.userLocale){return e&&y6e.has(t)&&v6e.has(n)}function JM(e,t=0){try{let n=ne.getItem(e);if(n===null)return t;let o=Number(n);return isNaN(o)?t:o}catch{return t}}function T6e(e=R.accessLevel!=="local"){let t=new URL("https://microsoft.qualtrics.com/jfe/form/SV_6hUVpRBU3hQVnZY");e&&t.searchParams.set("original_url",te.href),t.searchParams.set("locale",b.data.userLocale),t.searchParams.set("pageTemplate",b.data.pageTemplate);let n=JM("hats_survey-pages-visited",0);t.searchParams.set("pagesVisited",n.toString());let o=JM("hats_survey-qualified-pages-visited",0);t.searchParams.set("qualifiedSurveyPagesVisited",o.toString());let r=gTe().slice(0,30);return t.searchParams.set("pageTemplatesVisited",r?r.join(","):""),t.href}function P5(){w6e(I5);let e=ne.getItem("hats_survey-interacted");if(e){let u=Date.now(),p;try{if(p=new Date(e),isNaN(p.getTime())){ZM(),ne.setItem("hats_survey-version",I5);return}}catch{return}let m=1e3*60*60*24*30*6;if(u-p.getTime()

    ${xae}

    ${Fee}

    `;return x(t,e),e.addEventListener("click",n=>{n.target instanceof HTMLElement&&n.target.closest("[data-dismiss]")&&ne.setItem("hats_survey-interacted",new Date().toISOString())}),e}function hTe(){let e=document.querySelectorAll(".ccpa-privacy-link");S.thirdPartyDataSharingConsentFlag&&e.forEach(t=>{t.removeAttribute("hidden")})}var Ps={repo:b.data.feedbackGitHubRepo,documentId:P("document_id")||btoa(location.pathname),versionIndependentDocumentId:P("document_version_independent_id")||btoa(location.pathname),platformId:P("platform_id")||btoa(location.pathname),documentSourceUrl:P("github_feedback_content_git_url")||P("original_content_git_url")||P("original_ref_skeleton_git_url")||"",service:P("ms.service"),subservice:P("ms.subservice"),product:P("ms.prod"),technology:P("ms.technology"),author:P("author"),msAuthor:P("ms.author"),contentTitle:P("og:title")||document.title};function bTe(e){let t=`${e} --- #### ${QK} \u26A0 *${YK}* `,n=location.href,{documentId:o,versionIndependentDocumentId:r,platformId:s,documentSourceUrl:i,contentTitle:a}=Ps,l=i.replace(/^https:\/\/github.com\/[^/]+\/[^/]+\/blob\/[^/]+\//i,"").replace(/\[|\]/g,"\\$&");a=a.replace(/\[|\]/g,"\\$&"),t+=`* ID: ${o} * Version Independent ID: ${r} * Platform ID: ${s} * Content: [${a}](${n}) * Content Source: [${l}](${i})`;let{service:c,subservice:u,product:p,technology:m}=Ps;c!==void 0&&(t+=` * Service: **${c.toLowerCase()}**`),u!==void 0&&(t+=` * Sub-service: **${u.toLowerCase()}**`),p!==void 0&&(t+=` * Product: **${p.toLowerCase()}**`),m!==void 0&&(t+=` * Technology: **${m.toLowerCase()}**`);let{author:g,msAuthor:f}=Ps;return g!==void 0&&(/github\.com/.test(i)?t+=` * GitHub Login: @${g}`:t+=` * Git Login: **${g}**`),f!==void 0&&(t+=` * Microsoft Alias: **${f}**`),t=t.replace(//g,">"),t}function _Te(e,t,n,o,r,s,i,a,l,c,u,p,m,g,f="",_){let h=e.querySelector("[data-github-link]"),v=e.querySelector("[data-open-source-image-light]"),y=e.querySelector("[data-open-source-image-dark]"),T=e.querySelector("[data-open-source-image-container]"),I=e.querySelector("[data-open-source-product-title]"),E=e.querySelector("[data-open-source-product-description]");if(!h||!t||!n||!r||!c||!g)return;let q=u==="production"&&p?`\u{1F6A8} Looks like you arrived from the internal review site \u{1F6A8} Do not enter Microsoft confidential information here`:"",D=A6e(o,r,s,i,a,l),le=/github\.com/.test(c)?`@${g}`:g,we=new URL(t),K=new URLSearchParams;K.set("pageUrl",m.href),K.set("pageQueryParams",m.search),K.set("contentSourceUrl",c),K.set("documentVersionIndependentId",n),K.set("platformId",r),K.set("feedback",`${q} ${MJ} `),K.set("author",le),K.set("metadata",D),f&&K.set("title",f),_&&K.set("labels",_),we.search+=`&${K.toString()}`,h.href=we.toString(),k6e(I,E),v&&y&&T&&I6e(v,y,T),e.hidden=!1}function A6e(e,t,n,o,r,s){let i=`* ID: ${e} * PlatformId: ${t} ${o!==void 0?` * Service: **${o.toLowerCase()}**`:""}${r!==void 0?` * Sub-service: **${r.toLowerCase()}**`:""}${n!==void 0?` * Product: **${n.toLowerCase()}**`:""}${s!==void 0?` * Technology: **${s.toLowerCase()}**`:""}`;return i=i.replace(//g,">"),i}function k6e(e,t){if(!e)return;let n=e.textContent;e.textContent=xee.replace("{productName}",n),t&&(t.textContent=Tee.replace("{productName}",n))}async function I6e(e,t,n){let[o,r]=await Promise.all([K4(e.src).then(()=>!0).catch(()=>!1),K4(t.src).then(()=>!0).catch(()=>!1)]);o&&r&&(n.hidden=!1)}function yTe(){let e=document.body.querySelector(".feedback-section");if(e){if(b.data.pageTemplate==="ModuleUnit"){S.moduleUnitFeedbackReport||P6e(e);return}if(S.openSourceFeedback&&b.data.openSourceFeedbackIssueUrl){let t=document.body.querySelector("[data-open-source-feedback-section]");t&&_Te(t,b.data.openSourceFeedbackIssueUrl,Ps.versionIndependentDocumentId,Ps.documentId,Ps.platformId,Ps.product,Ps.service,Ps.subservice,Ps.technology,Ps.documentSourceUrl,R.supportLevel,R.reviewFeatures,te,Ps.author,b.data.openSourceFeedbackIssueTitle,b.data.openSourceFeedbackIssueLabels)}addEventListener("keydown",({keyCode:t,altKey:n,ctrlKey:o})=>{t===71&&n&&o&&Es(bTe(""),document.body)&&alert("\u2705 GitHub issue footer copied.")})}}function P6e(e){if(e){e.hidden=!0;for(let t of document.querySelectorAll("[data-feedback-section-link]"))t.hidden=!0}}k();var L6e=P("uhfHeaderId"),R6e=L6e,Ft=M6e({brand:b.data.brand,pathnameSegments:uR,page_kind:P("page_kind"),page_type:P("page_type"),headerId:R6e,isAdmin:P("is_admin"),isEditor:P("is_editor")??"false"});function M6e(e){let{brand:t,pathnameSegments:n,page_kind:o,page_type:r,headerId:s,isAdmin:i,isEditor:a}=e;if(i==="true")return"Admin";if(a==="true")return"Editor";if(s==="MSDocsHeader-Archive")return"Archive";if(o==="docs"&&r==="home"||r==="welcome")return"Docs_Home";if(r==="profile")return"Profile";if(r==="locale")return"Locale";if(r==="search")return"Search";if(o==="assessments")return"Assessments";switch(n[2]){case"docs":return"Documentation";case"training":return"Training";case"certifications":return S.previewCredentialsL1?"Credentials":"Certifications";case"credentials":return"Credentials";case"answers":return"Q&A";case"samples":return"Code Samples";case"assessments":return"Assessments";case"shows":return"Shows";case"events":return"Events";case"legal":return"Legal"}if(n[2]==="training"&&R.siteName==="learn")return"Training";if(t==="mooncake")return"Mooncake";if(!s&&R.siteName==="learn")return"Learn";switch(s){case"answers":case"answersv2":case"answersv2MOD":case"answersv2ADMIN":return"Q&A";case"mooncake":return"Mooncake";case"MSDocsHeader-Credentials":return"Credentials";case"MSDocsHeader-Certifications":return S.previewCredentialsL1?"Credentials":"Certifications";case"MSDocsHeader-Events":return"Events";case"MSDocsHeader-Learn":return"Learn";case"MSDocsHeader-RegionalDirectors":return"Regional Directors";case"MSDocsHeader-Shows":return"Shows";case"DEV_Homeheader":case"MSDocsHeader-Advocates":case"devcenter-store-header":case"mixed-reality-header":case"win-dev-center-header":case"win-hardware-header":case"win-iot-devcenter-header":case"reactor":return"Developer";case"MSDocsHeader-DocsL1":return"Documentation";case"MSDocsHeader-Assessments":return"Assessments";default:return"Third-Party"}}var{userLocale:qn}=b.data,vTe={type:"static-header",brandLink:{displayName:"Learn",href:`/${qn}/`,biName:"learn"},navLinks:[{title:ua,href:`/${qn}/docs/`,biName:"documentation"},{title:Xr,href:`/${qn}/training/`,biName:"training"},{title:S.previewCredentialsL1?mo:ol,href:S.previewCredentialsL1?`/${qn}/credentials/`:`/${qn}/certifications/`,biName:S.previewCredentialsL1?"credentials":"certifications"},{title:"Q&A",href:`/${qn}/answers/`,biName:"qna"},{title:ON,href:`/${qn}/samples/browse/`,biName:"code-samples"},{title:cE,href:`/${qn}/assessments/`,biName:"assessments"},{title:Ar,href:`/${qn}/shows/`,biName:"shows"}]},xTe={type:"static-header",brandLink:{displayName:"Developer",href:`/${qn}/`,biName:"developer"},navLinks:[{title:"Learn",href:`https://learn.microsoft.com/${qn}/`,biName:"learn"},{title:ua,href:`https://learn.microsoft.com/${qn}/docs/`,biName:"documentation"},{title:Xr,href:`https://learn.microsoft.com/${qn}/training/`,biName:"training"},{title:"Q&A",href:`https://learn.microsoft.com/${qn}/answers/`,biName:"qna"},{title:ON,href:`https://learn.microsoft.com/${qn}/samples/browse/`,biName:"code-samples"},{title:Ar,href:`https://learn.microsoft.com/${qn}/shows/`,biName:"shows"}]},TTe={type:"static-header",brandLink:{displayName:"Learn",href:`/${qn}/`,biName:"learn"},navLinks:[{title:Xr,href:`https://learn.microsoft.com/${qn}/training/`,biName:"training"},{title:S.previewCredentialsL1?mo:ol,href:S.previewCredentialsL1?`https://learn.microsoft.com/${qn}/credentials/`:`https://learn.microsoft.com/${qn}/certifications/`,biName:S.previewCredentialsL1?"credentials":"certifications"},{title:Cie,href:`https://support.azure.cn/${qn}/support/contact/`,biName:"support"},{title:Ar,href:`https://learn.microsoft.com/${qn}/shows/`,biName:"shows"}]};async function STe(e=b.data.userLocale){let t=D6e();if(t==="developer-header"||t==="mooncake-header")return wTe(t);let n=R.reviewFeatures&&location.pathname.startsWith("/en-us/test/")?"test/":"",o={branch:bt(["contentnav-branch"],"main")},r=new URL(`/${e}/${n}content-nav/site-header/${t}.json?${pe(o)}`,location.origin);try{let s=await $(r.href,{credentials:"include"});if(!s?.ok)throw new Error(`Site navigation JSON not found for ${t} in ${e}.`);return await s.json()}catch{return console.error(`Site navigation fetching error. Loading static version of ${t}.`),wTe(t)}}function D6e(){return R.siteName==="mooncake"?"mooncake-header":Ft==="Developer"?"developer-header":"site-header"}function wTe(e){switch(e){case"mooncake-header":return TTe;case"developer-header":return xTe;default:return vTe}}var Ry,CTe,My=new Promise(e=>CTe=e);async function ETe(){Ry=await STe(),CTe()}function ATe(){let e=document.getElementById("ms--search-expander-wrapper");if(!e||!e.classList.contains("overflow-x-hidden"))return;let t=e.querySelector("overflow-menu"),n=e.querySelector("search-expander");if(!t||!n)return;let o=n.querySelector("button[data-search-expander-trigger-open]"),r=n.querySelector("button[data-search-expander-trigger-close]");!o||!r||(o.addEventListener("click",()=>{e.classList.toggle("overflow-x-hidden")}),r.addEventListener("click",()=>{e.classList.toggle("overflow-x-hidden")}),n.addEventListener("keydown",s=>{s.key==="Escape"&&!e.classList.contains("overflow-x-hidden")&&e.classList.toggle("overflow-x-hidden")}),window.addEventListener("click",s=>{s.target instanceof Element&&s.type==="click"&&!n.contains(s.target)&&!e.classList.contains("overflow-x-hidden")&&(s.target.hasAttribute("data-search-expander-autocomplete-suggestion")||e.classList.toggle("overflow-x-hidden"))}))}var XM=class{constructor(){this._contentStack=[];this._titleStack=[]}get stackLength(){return this._contentStack?this._contentStack.length:void 0}get bodyTemplate(){return this.stackLength?this._contentStack[this._contentStack.length-1]:null}push(t){if(!t)throw new Error("Cannot push empty content");this._contentStack.push(t)}pop(){!this._contentStack||this.stackLength<=1||(this._contentStack.pop(),this._titleStack&&this._titleStack?.length>0&&this._titleStack.pop())}pushTitle(t){t&&this._titleStack.push(t)}getTitle(){return!this._titleStack||this._titleStack?.length===0?null:this._titleStack[this._titleStack.length-1]}dispose(){this._contentStack=null}};k();Qe();var $y=class{constructor(t){this.container=document.createElement("div"),this.container.setAttribute("role","alert"),this.container.setAttribute("aria-live","assertive"),this.container.setAttribute("data-dismissable","disappearing"),this.container.classList.add("toast"),this.container.appendChild(t),this.wrapper=document.createElement("div"),this.wrapper.insertAdjacentElement("afterbegin",this.container),this.contentElement=t}show(){let t=document.querySelector(".toast");t&&wM(t),document.body.insertAdjacentElement("afterbegin",this.container),this.container.classList.add("appearing"),setTimeout(()=>{Rt()},10),setTimeout(()=>{wM(this.container)},3500)}};Qe();k();function e$(e){for(let t=0;tn.setCustomValidity(/^\s+$/.test(n.value)?Hee:"")),n instanceof HTMLButtonElement&&n.type==="submit"&&(n.onclick=()=>e.classList.add("show-validation-status"))}}k();async function ao(e,t=!1,n){let o=w.createElement("form");if(o.action="javascript:",e instanceof al){if(x(e,o),t){let c=o.querySelectorAll("input.loc-checkbox"),u=0,p=o.querySelector("#loc-submit-button");c&&c.forEach(m=>m.addEventListener("change",()=>{m.checked?u++:u--,u===2?p.disabled=!1:p.disabled=!0}))}}else o.appendChild(e);N6e(o);let r=w.createElement("div");r.classList.add("modal-content"),r.appendChild(o);let s=new Te(r),i=!1,a={hasError:!1,data:null};return o.addEventListener("submit",async c=>{c.preventDefault(),a=n?await n(o):{hasError:!1,data:null},a.hasError===!1&&(i=!0,s.hide())}),e$(o),await s.show(),{submitted:i,form:o,data:a.hasError?null:a.data}}function N6e(e){if(e.querySelector("form"))throw new Error("The content argument should not contain a form")}function yp(e,t,n=Po,o=!1,r=IW,s,i){return d``}k();Qe();Qe();Qe();k();k();var Io={0:"Spam",1:"OffTopicIrrelevantPosts",2:"SensitiveInformation",3:"ChildEndangermentExploitation",4:"Terrorism",5:"HateSpeech",6:"CoordinationOfHarm",7:"NonConsensualAdultImages",8:"GraphicViolenceHumanGore",9:"AdultNudity",10:"SuicideSelfHarm",11:"ThreatsCyberbullyingHarassment",12:"Defamation",13:"ProfanityVulgarity",14:"Other",15:"SexualSolicitation",16:"Trafficking",17:"ThreatsOrPraiseOfViolence",24:"AIAccuracy"},H6e=[{reason:Lte,value:0},{reason:Ite,value:1},{reason:Pte,value:2},{reason:D2,value:3},{reason:V2,value:4},{reason:U2,value:5},{reason:N2,value:6},{reason:q2,value:7},{reason:O2,value:8},{reason:$2,value:9},{reason:G2,value:10},{reason:F2,value:11},{reason:kte,value:12},{reason:B2,value:13},{reason:z2,value:15},{reason:j2,value:16},{reason:Q2,value:17},{reason:H2,value:14}],c8t=[{reason:Ate,value:24},...H6e],kTe=[{reason:B2,value:Io[13]},{reason:D2,value:Io[3]},{reason:V2,value:Io[4]},{reason:U2,value:Io[5]},{reason:N2,value:Io[6]},{reason:q2,value:Io[7]},{reason:O2,value:Io[8]},{reason:$2,value:Io[9]},{reason:G2,value:Io[10]},{reason:F2,value:Io[11]},{reason:z2,value:Io[15]},{reason:j2,value:Io[16]},{reason:Q2,value:Io[17]},{reason:H2,value:Io[14]}];function ITe(e){if(!e)return;let t=document.getElementById("tagHeading");if(!t)return;let n=t.getAttribute("data-tag-id"),o=t.innerText;e.primary.href.includes("/ask/")&&(e.primary.href=`${e.primary.href}?id=${n}&styleGuideLabel=${o}`)}function PTe(e){if(!e||Ft!=="Q&A")return;let t=b.data.userLocale;e&&e.primary.href.includes("/ask/")&&!e.primary.href.includes(t)&&(e.primary.href=`/${t}${e.primary.href}`),e&&e.secondary?.href.includes("/moderation/")&&!e.secondary?.href.includes(t)&&(e.secondary.href=`/${t}${e.secondary.href}`)}var t$=S.userServices&&R.siteName!=="mooncake"&&Ft!=="Developer"&&Ft!=="Regional Directors",Dy=Ft==="Third-Party"||Ft==="Admin"||Ft==="Developer"||Ft==="Assessments"||Ft==="Certifications"||Ft==="Credentials"||Ft==="Learn"||Ft==="Shows"||Ft==="Mooncake"||Ft==="Q&A"||Ft==="Training"||Ft==="Legal";function LTe(e){let t=V6e();if(!(!t||t==="exclude"))for(let n of e){let o=n?.id===t;if(o){n.current=o;break}}}var B6e={id:"exclude",pattern:`/${b.data.userLocale}/answers/`,exact:!0,next:{id:"questions",pattern:"/answers/questions",exclude:"/ask/",next:{id:"tags",pattern:"/answers/tags",next:{id:"faq-help",pattern:"/answers/support"}}}},z6e={id:"exclude",pattern:`/${b.data.userLocale}/training/`,exact:!0,next:{id:"career-paths",pattern:"/training/career-paths",next:{id:"browse-training",pattern:"/training/browse",next:{id:"educator-center",pattern:"/training/educator-center",next:{id:"student-hub",pattern:"/training/student-hub",next:{id:"faq-help",pattern:"/training/support",next:{id:"products",pattern:"/training"}}}}}}},G6e={id:"exclude",pattern:`/${b.data.userLocale}/credentials/`,exact:!0,next:{id:"browse",pattern:"/credentials/browse",next:{id:"cert-renewals",pattern:"/credentials/certifications/renew-your-microsoft-certification",next:{id:"faq-help",pattern:"/credentials/support/help"}}}};function V6e(e=P,t=Ft){let n;switch(t){case"Learn":case"Training":n=z6e;break;case"Q&A":n=B6e;break;case"Certifications":case"Credentials":n=G6e;break;default:return e("activeMenuId")}return j6e(n)}function j6e(e,t=te.pathname){if(!e)return;let n,o=e;do{let r=!0;o.exclude&&t.includes(o.exclude)&&(r=!1),(o.exact&&t!==o.pattern||t.indexOf(o.pattern)===-1)&&(r=!1),r&&(n=o.id),o=o.next}while(o&&!n);return n}var Q6e="DEV_Homeheader";function RTe(){let e=P("uhfHeaderId"),t=e&&e!==Q6e?e:"";return(R.reviewFeatures?ce()["header-id"]:"")||b.data.context.uhfHeaderId||t}async function MTe(e,t=b.data.userLocale){let n={branch:bt(["contentnav-branch"],"main")},r=`${N.contentNav}/${t}/content-nav/${e}.json?${pe(n)}`,s;try{s=await $(r,{credentials:"include"})}catch{return console.error("Content navigation fetching error."),null}if(!s.ok){let a=new Error(`Content navigation JSON not found for ${e} in ${t}.`);return a.headerId=e,console.error(a),null}let i=await s.json();return i.items.push({kind:"menu",title:rx,biName:"more",items:[]}),i}function $Te(e,t=P("platform_id")){if(!e)return;let n=e.primary,o=e.secondary;n&&wS(n.href)&&(n.href=xM(n.href,t)),o&&wS(o.href)&&(o.href=xM(o.href,t))}var Ls,n$,Ny=new Promise(e=>n$=e);async function DTe(){if(!Dy){Ls=null,n$();return}let e=RTe();if(!e){Ls=null,n$();return}Ls=await MTe(e),Ls&&(PTe(Ls.callToAction),ITe(Ls.callToAction),$Te(Ls.callToAction),LTe(Ls.items)),n$()}k();k();function Y6e(e,t,n,o){let r;return n&&(r=[],r.push("font-weight-semibold","font-size-md")),e.kind==="link"?o$(e,`secondary-nav-link-${o+1}`,!1,r,n):W6e(e,t,r,o)}function o$({href:e,title:t,biName:n},o,r=!1,s=[],i=!1,a=!1){let l=r?"has-text-primary":"",c=i?"":"has-external-link-indicator",u;a?u=n?`secondary-nav-link-category-${n}-mobile`:"secondary-nav-link-category-mobile":u=n?`secondary-nav-link-${n}-mobile`:"secondary-nav-link-mobile",r&&(u=n?`${o}-${n}-mobile`:`${o}-mobile`);let p=rt(e,b.data.userLocale);return d`
  • ${t}
  • `}function W6e(e,t,n=[],o){let r=b.data.userDir==="ltr"?"docon-chevron-right-light":"docon-chevron-left-light",s=e.id?`ms--secondary-nav-btn-${e.id}`:`ms--secondary-nav-btn-${o+1}`,i=e.biName?`secondary-nav-btn-${e.biName}-mobile`:"secondary-nav-btn-mobile",a=e.biName?`secondary-nav-menu-${e.biName}-mobile`:"secondary-nav-menu-mobile";return d`
  • `}function NTe(e,t){return d``}function FTe(e,t,n,o,r,s,i,a,l,c,u){let p=b.data.userDir==="ltr"?"docon-arrow-left":"docon-arrow-right",m=n?"secondary-nav":"primary-nav";return d` ${eze(i,n)&&o>=2&&u?d`
    `:null} ${i?d`
    `:null}`}function OTe(e,t){if(!e)throw new Error("Site header data is unavailable.");return K6e(e,t)}function K6e(e,t){if(e.type==="static-header")return J6e(e);if(!t)throw new Error("Menu handler is not available");return Z6e(e,t)}function J6e(e){let t=e.navLinks.map(n=>{let o=rt(n.href,b.data.userLocale);return d`
  • ${n.title}
  • `});return d``}function Z6e(e,t){let n=b.data.userDir==="ltr"?"docon-chevron-right-light":"docon-chevron-left-light",o=e.navCategories.map(r=>{let s=`site-header-btn-${r.biName}-mobile`,i=`ms--${s}`;return d`
  • `});return d``}function UTe(e,t,n,o,r,s){let i=b.data.userDir==="ltr"?"docon-arrow-left":"docon-arrow-right",a=b.data.userLocale,l=d`
    `,c=d`
    `,u="";if(e.panelLink){let g=e.panelLink,f=rt(g.href,a);u=d`${g.title}`}let p="";if(s){let g=s.map(f=>{let _=rt(f.href,a);return d``});p=d`
    ${g}
    `}let m=[];return e.panelContent[0].componentType==="header-panel-card"?e.panelContent.map(g=>{let f=rt(g.href,a),_=d`
  • `;m.push(_)}):e.panelContent[0].componentType==="header-panel-link"&&e.panelContent.map(g=>{let f=rt(g.href,a),_=d`
  • ${g.title}
  • `;m.push(_)}),d` ${l}
    ${c}${u}
    ${p}
    `}function qTe(){let e="#",t=C.isAuthenticated?"button-clear inner-focus":"auth-status-determined not-authenticated button-filled button-primary";t=`docs-sign-${C.isAuthenticated?"out":"in"} `+t;let n=d`

    ${F(ile)}

    `,o=d` ${C.isAuthenticated?X6e():n}
    ${C.isAuthenticated?d`${Vp}`:""}${C.isAuthenticated?jp:Zr}
    `;return d`
    ${t$?o:n}
    `}function X6e(){return d``}function eze(e,t){return t||Ft!=="Docs_Home"&&e}async function BTe(e,t){if(await My,!t)throw new Error("Site header data is unavailable.");let n=w.createElement("div");n.classList.add("modal-content","is-docked-left","display-flex","flex-direction-column"),n.setAttribute("data-test-id","global-navigation-mobile");let o=new XM;n.paint=()=>{x(d` ${NTe(e,t.brandLink.displayName)}${qTe()} `,n)};function r(le){n.paint();let we=n.querySelector("#modal-body");if(le){let K=we.querySelector(`#${le}`);if(K){K.focus();return}}tze(we)}function s(le){let we=le.target instanceof HTMLElement&&le.target.closest("button");if(!we||!we.classList.contains("pop-content"))return;let K=we.getAttribute("data-back-id");o.pop(),r(K)}let i=e.subscribe(nt,n.paint);n.dispose=()=>{o.dispose(),i(),n.removeEventListener("click",s)};let a=HTe(e.items),l,c,u,p,m,g,f,_,h,v,y;function T(le,we,K){a=le.items,l=le.title,g=we,f=K,c=null,u=null,p=null,m=o.getTitle(),E(!0),r()}function I(le,we,K,Le,Ke,Pt){h=le,v=we,y=Pt,g=K,f=Le,_=Ke,E(!1,!0),r()}function E(le=!1,we=!1){let K;!le&&!we&&t?K=OTe(t,I):we?K=UTe(h,v,g,_,fc,y):K=FTe(a,T,le,o.stackLength,g,f,l,c,u,p,m),o.push(K),o.pushTitle(l)}function q(){E(),n.paint()}function D(){if(!(o.stackLength<=1)){for(;o.stackLength>1;)o.stackLength===2&&(e.secondaryNav=!1),o.pop();r()}}if(q(),n.addEventListener("click",s),Dy){await Ny;let le=Ls;le&&(c=le.category,u=le.callToAction,p=le.preview,l=le.category?le.category.title:null,a=HTe(le.items),E(!0),r(),e.secondaryNav=!0,n.querySelector("#modal-header button.button").onclick=D)}return n}function tze(e){let t=e.querySelector("[data-autofocus]");if(t&&U_(t)){t.focus();return}e.focus()}function HTe(e){return e.slice(0,e.length-1)}var Fy=class extends ze{constructor(){super();this._items=[{title:rx,kind:"menu",items:[],biName:"more"}];this._mobile=!1;this._desktop=!1;this._mobileNavExpanded=!1;this._secondaryNav=!1}get items(){return this._items}set items(n){this._items=n&&n.length?n:[{title:rx,kind:"menu",items:[],id:"more",biName:"more"}],this.more.items=Zi(this._items.slice(0,this._items.length-1)),this.resetItemVisibility(),this.notifyPropertyChanged()}get mobile(){return this._mobile}set mobile(n){this._mobile=n,this._mobileNavExpanded=!1,this.notifyPropertyChanged()}get desktop(){return this._desktop}set desktop(n){this._desktop=n,this.notifyPropertyChanged()}get mobileNavExpanded(){return this._mobileNavExpanded}set mobileNavExpanded(n){this._mobileNavExpanded=n,this.notifyPropertyChanged()}get secondaryNav(){return this._secondaryNav}set secondaryNav(n){this._secondaryNav=n,this.notifyPropertyChanged()}get more(){let n=this._items.length;return n?this._items[n-1]:null}resetItemVisibility(){this.items.length!==0&&(this.items.forEach(n=>n.hidden=!1),this.more.hidden=!0,this.more.items.forEach(n=>n.hidden=!0))}notifyPropertyChanged(){this.publish(new nt)}};function zTe(){let e=document.querySelector("#ms--site-header-hamburger > button");if(!e)return;let t=new Fy;e.addEventListener("click",()=>nze(t))}async function nze(e){await My;let t=await BTe(e,Ry),n=new Te(t),o=window.outerWidth;function r(){t.dispose(),window.removeEventListener("resize",s),e.mobileNavExpanded=!1}function s(){n.hide(),r()}window.addEventListener("resize",()=>{window.outerWidth!==o&&s()},{passive:!0}),e.mobileNavExpanded=!0,await n.show()}k();var L5;function GTe(){return L5===void 0&&(L5=(async()=>Ye("user-analytics",{require:!0})?!0:Fr("user-analytics-dashboard"))()),L5}k();var li="autocomplete-change-event",$S="autocomplete-displayed-event";function wr(e){e.input.placeholder=e.input.placeholder||"",e.input.type=e.input.type||"text",e.input.required=e.input.required||!1,e.input.disabled=e.input.disabled||!1;let{getSuggestions:t,getTitle:n=M=>typeof M?.toString=="function"?M.toString():M,itemTemplate:o=n,noResultsTemplate:r=null,initialValue:s=null,input:{biName:i},exclude:a=M=>!1,showLoader:l=!0,showOnFocus:c=!1,selectOnBlur:u=!1}=e,p=document.createElement("div");p.classList.add("autocomplete"),e.input.isFullWidth&&p.classList.add("display-block"),p.setAttribute("data-bi-name","autocomplete");let m=tt(),g=`${m}-listbox`,f=M=>M===-1?"":`${m}-option-${M}`,_=[],h=-1,v=s?n(s):"",y="",T=s,I=0,E=!1,q=!1,D=!1,le=!1,we="";e.input.size&&(we=e.input.size==="small"?"input-sm":"input-lg");let K=()=>{let M=p.querySelector(`#${g}`),Z=M.children.item(h===-1?0:h);Z?Z.offsetTop+Z.offsetHeight>M.offsetHeight?M.scrollTop=Z.offsetTop-M.offsetHeight+Z.offsetHeight+4:Z.offsetTop{x(L(),p);let M=p.querySelector("input");M&&(M.value=v||y),K()},Ke=()=>{_=[],h=-1,D=!1,Le()},Pt=(M,Z)=>{let ae=y;if(T=M,v=M?n(M):"",y=v,Ke(),Z&&M){let Pe=new CustomEvent(li,{detail:{suggestion:M,term:ae},bubbles:!0});p.dispatchEvent(Pe)}};p.clear=()=>Pt(null,!1),Object.defineProperty(p,"value",{get(){return T},set(M){Pt(M,!1)}});let nn=()=>{let M=new CustomEvent($S,{detail:_,bubbles:!0});p.dispatchEvent(M)},Ut=async()=>{if(y===""){E=!1,T=null,Ke();return}_=await t(y),_=_.filter(M=>!a(M)),nn(),_.length||pt(see,"assertive",2e3),h=-1,E=!1,Le()},sn=async()=>{E=!1,_=(await t("")).filter(M=>!a(M)),nn(),D=!0,h=T?_.indexOf(T):-1,Le()},uo=()=>{if(le=!0,c&&(y===""||v===y)){sn();return}Ut()},Lt=M=>{let ae=M?.url;ae&&ae.href&&window.open(ae.href,"_blank")},cn=M=>{let Z=M.target instanceof Element&&M.target.closest('[role="option"]');if(!Z)return;M.preventDefault();let ae=Z.parentElement,Pe=0;for(;Pe{clearTimeout(I);let Z=M.target;if(le=!0,y=Z.value,T&&y!==n(T)&&(T=null),v="",_=[],h=-1,D=!1,c&&y===""){await sn();return}I=setTimeout(Ut,250),!E&&Z.value!==""&&!q&&(E=!0,Le())},X=()=>{q=!0},U=()=>{q=!1},se=()=>{le=!1;let M=h>=0?_[h]:_.length===1?_[0]:null;u&&M?Pt(M,!0):Ke()},fe=M=>{let{keyCode:Z,shiftKey:ae,altKey:Pe,ctrlKey:Je}=M;if(!(ae||Pe||Je)){if(Z===Re.down){M.preventDefault(),h<_.length-1?(h++,v=n(_[h])):(h=-1,v=y),Le();return}if(Z===Re.up){if(M.preventDefault(),!_.length)return;h===-1?(h=_.length-1,v=n(_[h])):h>0?(h--,v=n(_[h])):(h=-1,v=y),Le();return}if(Z===Re.escape){M.preventDefault(),v=T?n(T):y,Ke();return}if(Z===Re.enter){if(h>=0){M.preventDefault();let it=_[h];Pt(it,!0)}return}}};function L(){let M=le&&!E&&(D||y.length>0)&&(!!r||_.length>0)&&(D||v!==y),Z=e.input.docon?d``:"";return d`
    ${Z} ${l?d``:""}
      ae.preventDefault()} @click=${cn} @keyup=${ae=>(ae.key==="Enter"||ae.key==="Spacebar")&&cn} ?hidden=${!M} >${_.map((ae,Pe)=>d`
    • ${o(ae)}
    • `)} ${!_.length&&r?d`
    • ${r}
    • `:""}
    `}return Le(),p.addEventListener("compositionstart",X),p.addEventListener("compositionend",U),p}var r$=["All","Ai","Documentation","Training","Credential","QnA","Reference","Show"];async function VTe(e,t=b.data.userLocale){let n={query:e,suggestions:[]};if(!e)return Promise.resolve(n);let o=`${N.siteSearch}/autocomplete?${pe({locale:t,query:e})}`,r={mode:"cors",credentials:R.supportLevel==="production"&&R.reviewFeatures?"include":"same-origin"},s=await $(o,r);if(s.ok)return s.json();if(s.status===403)return{query:e,suggestions:[]};throw new Qt(s)}function DS(e){let t=new URLSearchParams(e),n=t.get("category")||"All",o=r$.find(r=>r.localeCompare(n,void 0,{sensitivity:"base"})===0)||"All";return{dataSource:t.get("dataSource"),category:o,skip:parseInt(t.get("skip")||"0"),term:t.get("search"),scope:t.get("scope"),preview:t.get("preview")}}k();function jTe(){let e=b.data.context.searchScope||P("scope");if(b.data.pageTemplate==="SearchPage"&&(e=DS(location.search).scope),P("hideScope")==="true"||!e)return"";let o=e.split(",").map(r=>r.trim()).filter(r=>r.length);return o.length?o[o.length-1]:""}function R5(e=te.pathname,t={}){let n=decodeURI(so(e)).toLowerCase().split("/").slice(1),[o="",r=""]=n;return{parts:n,firstPart:o,secondPart:r,pageKind:Fs.kind,pageType:Fs.type,msTopic:P("ms.topic"),...t}}function s$(e,t=R5()){if(e==="site"){if(t.firstPart==="docs")return"Documentation";if(t.firstPart==="training"||t.pageKind==="learn")return"Training";if(t.firstPart==="answers")return"QnA";if(t.firstPart==="credentials")return"Credential";if(t.firstPart==="shows")return"Show"}return e==="toc"&&t.pageType==="conceptual"?"Documentation":t.firstPart==="powershell"&&t.secondPart==="module"||t.parts.includes("api")||t.msTopic==="generated-reference"?"Reference":"All"}async function QTe(e){let t={query:e,suggestions:[]};if(!e)return Promise.resolve(t);let n=`${N.siteSearch}/user?${pe({query:e})}&$top=30&$skip=0&$filter=questionAuthor eq true`,o={mode:"cors",credentials:R.supportLevel==="production"&&R.reviewFeatures?"include":"same-origin"},r=await $(n,o);if(r.ok)return r.json();if(r.status===403)return{query:e,suggestions:[]};throw new Qt(r)}var vp=typeof Blob=="function"&&typeof PerformanceObserver=="function"&&typeof Intl=="object"&&typeof MutationObserver=="function"&&typeof URLSearchParams=="function"&&typeof WebSocket=="function"&&typeof IntersectionObserver=="function"&&typeof queueMicrotask=="function"&&typeof TextEncoder=="function"&&typeof TextDecoder=="function"&&typeof customElements=="object"&&typeof HTMLDetailsElement=="function"&&typeof AbortController=="function"&&typeof AbortSignal=="function"&&"entries"in FormData.prototype&&"toggleAttribute"in Element.prototype&&"replaceChildren"in Element.prototype&&"fromEntries"in Object&&"flatMap"in Array.prototype&&"trimEnd"in String.prototype&&"allSettled"in Promise&&"matchAll"in String.prototype&&"replaceAll"in String.prototype&&!0;var oze=1e4,rze=4e3,YTe=Symbol("scenario timeout"),Sr=class{constructor(t,n=32e3,o=window.fetch){this.scenario=t;this.timeLimitMs=n;this.fetch=o;this._timeoutHandle=0;this._pingTimeoutHandle=0;this._start=0}succeed(){this.complete(!0,void 0)}updateProgress(t){this._start!==0&&(this._diagnostics.scenarioProgress={progress:t,duration:performance.now()-this._start})}fail(t){this.complete(!1,t)}cancel(){this.unsubscribe(),this._start=0,this._diagnostics=null}start(){this.cancel(),this._diagnostics={type:"scenario-health",version:"1",scenario:this.scenario,durationInMilliseconds:0,succeeded:!0,reason:void 0,startConnection:_h.connection?.effectiveType??"unknown",endConnection:"unknown",wasHidden:w.visibilityState==="hidden",wentOffline:!_h.onLine,supportedBrowser:vp,resources:[],pings:{},startDateTime:new Date().toISOString(),pingStartDateTime:null,endDateTime:null,scenarioProgress:null},this._start=performance.now(),addEventListener("visibilitychange",this),addEventListener("offline",this),this._timeoutHandle=setTimeout(()=>this.complete(!1,YTe),this.timeLimitMs),this._pingTimeoutHandle=setTimeout(()=>this.collectPingDiagnostics(),oze)}handleEvent(){var t,n;(t=this._diagnostics).wasHidden||(t.wasHidden=w.visibilityState==="hidden"),(n=this._diagnostics).wentOffline||(n.wentOffline=!_h.onLine)}complete(t,n){this.unsubscribe();let o=this._start;if(o===0)return;this._start=0;let r=this._diagnostics;r.scenarioProgress=t?{progress:"Succeeded",duration:performance.now()-o}:r.scenarioProgress,r.endDateTime=new Date().toISOString(),r.succeeded=t,r.durationInMilliseconds=performance.now()-o,r.reason=t?void 0:sze(n),r.endConnection=_h.connection?.effectiveType??"unknown",r.resources=Array.from(performance.getEntriesByType("resource")).filter(s=>s.startTime>=o).map(s=>s.toJSON()).filter(s=>s.initiatorType==="fetch"&&s.name.startsWith(location.origin)).map(s=>(s.connectEnd=Math.floor(s.connectEnd),s.connectStart=Math.floor(s.connectStart),s.domainLookupEnd=Math.floor(s.domainLookupEnd),s.domainLookupStart=Math.floor(s.domainLookupStart),s.duration=Math.floor(s.duration),s.fetchStart=Math.floor(s.fetchStart),s.redirectEnd=Math.floor(s.redirectEnd),s.redirectStart=Math.floor(s.redirectStart),s.requestStart=Math.floor(s.requestStart),s.responseEnd=Math.floor(s.responseEnd),s.responseStart=Math.floor(s.responseStart),s.secureConnectionStart=Math.floor(s.secureConnectionStart),s.startTime=Math.floor(s.startTime),s.workerStart=Math.floor(s.workerStart),s)),Se({actionType:Ee.OTHER,behavior:me.OTHER,content:r})}unsubscribe(){removeEventListener("visibilitychange",this),removeEventListener("offline",this),clearTimeout(this._timeoutHandle),clearTimeout(this._pingTimeoutHandle)}collectPingDiagnostics(){this._diagnostics.pingStartDateTime=new Date().toISOString();let t=new AbortController,n=t.signal;setTimeout(()=>t.abort(),rze);let o=async(r,s)=>{let i=performance.now();try{await this.fetch.call(window,s,{cache:"no-store",mode:"no-cors",signal:n}),this._diagnostics.pings[r]={response:!0,duration:Math.floor(performance.now()-i)}}catch{this._diagnostics.pings[r]={response:!1,duration:Math.floor(performance.now()-i)}}};return Promise.all([o("docs",`${location.origin}/robots.txt`)])}};function sze(e){return e===YTe?{type:"scenario-timeout"}:e instanceof Response||e instanceof Qt?{type:"dependency",url:e.url,status:e.status,statusText:e.statusText,headers:e.headers instanceof Headers?j4(e.headers):e.headers}:e instanceof Error?{type:"exception",name:e.name,message:e.message,stack:e.stack}:{type:"unknown",value:String(e)}}async function Uy(e){if(S.disableSiteSearchSuggestions)return[];let t=new Sr("Commerce.Docs.Discoverability_SiteSearch_Autocomplete");t.start();try{if(e=e.replace(/^[\s`~!@^,]+/,"").replace(/[\s`~!@^,]+$/,""),e.length<2)return t.cancel(),[];let n=await VTe(e,b.data.userLocale);return t.succeed(),n.suggestions}catch(n){return t.fail(n),[]}}async function WTe(e){let t=new Sr("Commerce.Docs.Discoverability_SiteSearch_Autocomplete");t.start();try{if(e=e.trim(),e.length<1)return t.cancel(),[];let n=await QTe(e);t.succeed();let o=[],r=[];for(let s of n.suggestions)s.displayName.toLowerCase().startsWith(e)?o.push(s):r.push(s);return o.sort((s,i)=>s.displayName.localeCompare(i.displayName)),r.sort((s,i)=>s.displayName.localeCompare(i.displayName)),n.suggestions=o.concat(r),n.suggestions}catch(n){return t.fail(n),[]}}function JTe(e){let t={suggestion:{title:e.detail.suggestion},term:e.detail.term};M5(t)}function i$(e){let t=e.detail.map(n=>({title:n}));$5(t)}function M5({suggestion:e,term:t}){Se({behavior:me.SEARCHAUTOCOMPLETE,actionType:Ee.OTHER,content:{srchq:t,srchtype:"auto suggest",resultselected:e.title,resulttype:e.type||"",resulturl:e.url||""}})}function $5(e){let t=[{srchtype:"auto suggest"}];e.forEach((n,o)=>{t.push({cN:n.title,sN:o,type:n.type||"",url:n.url||""})}),Se({content:t})}var KTe=!1;function ZTe(e,t,n,o,r,s,i,a){KTe?WI():KTe=!0,Se({behavior:me.OTHER,actionType:Ee.OTHER,content:{event:"uhf-search-results",category:o,term:e.terms,scope:e.scope||"",results:t.length,resultUrls:t,skip:e.skip,dataSource:e.dataSource||a||"",scoringProfileName:e.scoringProfile||"",experimentId:P("experiment_id"),hideCompleted:e.hideCompleted||"",count:n,scopeRemoved:r,spellingCorrection:s,semanticCaptions:i}})}function XTe(e,t,n,o,r){let s=o===!0?1:0;Se({behavior:me.SURVEYCOMPLETE,actionType:Ee.OTHER,content:{autoIngest:!0,type:"search-answer-feedback",sat:s,searchTerm:e,question:t,answer:n,authType:r.toString()}})}function a$(e,t,n,o,r,s,i,a){!t||!n||(Se({behavior:me.OTHER,actionType:Ee.OTHER,content:{event:"search-answer-result",searchTerm:e,copilotQuestion:t,copilotAnswer:n,authType:o.toString()}}),a&&Se({content:{autoIngest:!0,type:"search-answer-request",name:"search-answer",triggeredTimestamp:r,returnedTimestamp:s,answerType:i}}))}function ewe(e,t,n,o,r){Se({behavior:me.SURVEYCOMPLETE,actionType:Ee.OTHER,content:{autoIngest:!0,type:"deep-search-feedback",sat:t?1:0,query:e,reasons:o??"",verbatim:r??"",isEmptyResponse:0,authType:n.toString()}})}function qy(e,t){Se({behavior:me.OTHER,actionType:Ee.OTHER,content:{autoIngest:!0,type:e,aN:"search-filter",timestamp:new Date().toISOString(),feedbackData:{filter:t??""}}})}var ize="https://www.azure.cn/searchresults/";function D5(){let e;return b.data.brand==="mooncake"?e=ize:!R.systemContent&&R.accessLevel!=="local"?e=`https://learn.microsoft.com/${b.data.userLocale}/search/`:e=`/${b.data.userLocale}/${Bt?"test/docs/search/search":"search/"}`,e}function N5(){let e=jTe(),t=aze(),n=lze();return{scope:e,category:t,dataSource:Bn()?"previousVersions":"",preview:n}}function aze(){let e=DS(te.search)?.category;if(e?.toLowerCase()!=="all")return e;let t=s$("site",R5());return t&&t!=="All"?t:""}function lze(){return DS(te.search).preview||""}function F5(e){let t={suggestion:{title:e.detail.suggestion},term:e.detail.term};M5(t)}function O5(e){let t=e.detail.map(n=>({title:n}));$5(t)}function l$(e,t,n,o,r){if(!e)return;let s=w.getElementById(n),i=s.placeholder,a=s.value,l=e.parentElement;if(!l)return;let c=r?`${r}-search`:void 0,u={input:{id:`${t}-autocomplete-input`,placeholder:i,size:"large",label:o,isFullWidth:!0,name:"terms",biName:c},initialValue:a,getSuggestions:Uy,itemTemplate:y=>d`${y}`,showLoader:!S.disableSiteSearchSuggestions},p=wr(u),{scope:m,category:g,dataSource:f,preview:_}=N5(),h=r?`${r}-search-form`:void 0,v=r?`${r}-search-submit`:void 0;x(d``,l)}k();var xp="display-block font-size-sm padding-inline-xxs",c$;function u$(e,t){if(c$===void 0){let c=(P("scope")||"").split(",").map(u=>u.trim()).filter(u=>u.length);c$=c.length?c[c.length-1]:""}let n="";c$&&t&&(n=c$);let o=Bn()?"previousVersions":"",r=Bt?"/test/docs/search/search":"/search/",s=s$("toc"),i=`${r}?${pe({search:e,scope:n,dataSource:o,category:s==="All"?void 0:s})}`;return{title:n?oee.replace("{term}",e).replace("{searchScope}",n):ree.replace("{term}",e),url:i}}function NS(e){return e.indexOf("/search/?search")!==-1||Bt&&e.indexOf("/search/search?search")!==-1}async function d$(e,t,n){Vt(e,{behavior:me.APPLY,targetUri:n,content:{event:"autocomplete",title:t,href:n}})}function twe(e=!1){let{category:t,dataSource:n,preview:o}=N5(),r=Ft==="Search"?"":t,s=D5(),i=b.data.brand==="mooncake"?"q":"terms",a={input:{id:e?"site-header-search-autocomplete-input-mobile":"site-header-search-autocomplete-input",type:"search",placeholder:Bn()?dx:rn,label:rn,isFullWidth:!0,name:i,biName:e?"site-header-search-autocomplete-input-mobile":"site-header-search-autocomplete-input"},getSuggestions:Uy,itemTemplate:p=>d`${p}`,showLoader:!S.disableSiteSearchSuggestions};e||(a.input.size="small");let l=wr(a),c=e?"ms--site-header-search-form-mobile":"ms--site-header-search-form",u=e?"site-header-search-form-mobile":"site-header-search-form";return d``}function nwe(e){return e?d`${rwe()}
    ${swe(e.brandLink)}
    ${pze(e)}${iwe()}
    ${awe()} `:""}function owe(e){return e?d`
    ${swe(e.brandLink,!0)}${rwe(!0)}${iwe(!0)}${awe(!0)} `:""}function rwe(e=!1){let t="site-header-microsoft-logo",n="site-header-microsoft-logo",o="";e&&(t="site-header-microsoft-logo-mobile",n="site-header-microsoft-logo-mobile",o="site-header-logo-centered");let r=d``;return d``}function swe(e,t=!1){if(!e)return"";let n=rt(e.href,b.data.userLocale),o=t?`site-header-brand-${e.biName}-mobile`:`site-header-brand-${e.biName}`;return d``}function iwe(e=!1){let t=twe(e),n="flex-grow-1 margin-left-xxs";e&&(n="display-flex flex-grow-1 justify-content-flex-end");let o=e?"site-header-search-open-mobile":"site-header-search-open",r=e?"site-header-search-close-mobile":"site-header-search-close",s=e?"site-header-search-mobile":"site-header-search",i=e?"ms--site-header-search-mobile":"ms--site-header-search";return d``}function awe(e=!1){if(!t$)return"";let o=d``,r=e?"site-header-user-mobile":"site-header-user",s=e?"site-header-user-mobile":"site-header-user",i=e?"site-header-sign-out-mobile":"site-header-sign-out",a=e?"site-header-user-sign-out-mobile":"site-header-user-sign-out",l=e?"ms--user-display-name-mobile":"ms--user-display-name",u=d`

    `;return d`${o} ${u}`}function cze(e,t){if(!e)return"";let n="";if(t){let r=t.map(s=>{let i=rt(s.href,b.data.userLocale);return d``});n=d``}let o=e.map((r,s)=>{let i=`ms--panel-${s+1}`;return d`
  • `});return d`
      ${o}
    `}function uze(e,t){if(!e)return"";let n=b.data.userLocale,o="";if(e.panelLink){let i=e.panelLink,a=rt(i.href,n);o=d`${i.title}`}let r=[],s="site-header-panel-links";return e.panelContent[0].componentType==="header-panel-card"?e.panelContent.map(i=>{s="site-header-panel-cards";let a=rt(i.href,n),l=d`
  • `;r.push(l)}):e.panelContent[0].componentType==="header-panel-link"&&e.panelContent.map(i=>{let a=rt(i.href,n),l=d`
  • ${i.title}
  • `;r.push(l)}),d`
      ${r}
    ${o}
    ${t} `}function dze(e){if(!e)return"";let t=e.map((n,o)=>{let r=rt(n.href,b.data.userLocale);return d`
  • ${n.title}
  • `});return d`
      ${t}
    `}function pze(e){let t=e.type==="static-header"?dze(e.navLinks):cze(e.navCategories,e.featuredContent),n=b.data.userDir==="ltr"?"left":"right",o=b.data.userDir==="ltr"?"right":"left";return d``}Qe();Ch();k();k();function U5(e,t){let{leftTemplate:n,rightTemplate:o}=e;return d` ${n()} ${o(t)} `}function uwe(e){let t=document.createElement("div");t.classList.add("site-header","width-full");let n=new Fy;return t.paint=()=>pwe(t,n,e),Object.defineProperty(t,"items",{enumerable:!0,get:()=>n.items,set:o=>n.items=o}),n.desktop=Rr.matches,n.mobile=!Ea.matches,Rr.addListener(()=>{n.desktop=Rr.matches}),Ea.addListener(()=>{n.mobile=!Ea.matches}),window.addEventListener("resize",()=>{Ea.matches&&mze(t,n,e)},{passive:!0}),t.paint(),xe.then(()=>{let o=new MutationObserver(r=>{for(let s of r)for(let i=0;it.paint()),window.addEventListener("content-update",()=>t.paint()),t}var dwe=0;function pwe(e,t,n){if(dwe=Date.now(),t.resetItemVisibility(),x(U5(n,t),e),t.mobile)return;let o=e.querySelector(".nav-bar-spacer"),{more:r,items:s}=t,i=s.length-1;for(;i>0&&o.getBoundingClientRect().width===0;)i--,r.hidden=!1,s[i].hidden=!0,r.items[i].hidden=!1,x(U5(n,t),e)}var lwe=0,cwe=50;function mze(e,t,n){clearTimeout(lwe),Date.now()-dwe>cwe?e.paint():lwe=setTimeout(pwe,cwe,e,t,n)}async function gwe(){if(await Ny,!Ls)return null;let e=uwe(gze(Ls));return e.items=Ls.items,e}function gze(e){let{category:t,callToAction:n,preview:o}=e,r="";return n&&(r=fze(n)),{leftTemplate:()=>hze(t,o),rightTemplate:a=>d` ${_ze(a,Sse)}${r} ${bze()} `}}function fze(e){if(!e)return"";let{primary:t,secondary:n}=e,o="";return n&&(o=mwe(n,!0)),d`
    ${o} ${mwe(t)}
    `}function mwe(e,t=!1){if(!e)return"";let{href:n,title:o}=e,r;return e.biName?r=t?`secondary-nav-cta-secondary-${e.biName}`:`secondary-nav-cta-primary-${e.biName}`:r=t?"secondary-nav-cta-secondary":"secondary-nav-cta-primary",d`${o}`}function hze(e,t){let{href:n,title:o,biName:r}=e,s=rt(n,b.data.userLocale),i=hwe(s),a=r?`secondary-nav-link-category-${r}`:"secondary-nav-link-category";return d``}function bze(){return Ft!=="Learn"&&Ft!=="Training"?"":d``}function _ze(e,t){let{items:n}=e;return d``}function fwe(e,t){return e.kind==="link"?yze(e,t):vze(e,t)}function yze(e,t){let n=e.current?"is-active":"",o=rt(e.href,b.data.userLocale),r=hwe(o,!!n),s=e.biName?`secondary-nav-link-${e.biName}`:"secondary-nav-link";return t?d`
  • ${e.title}
  • `:d`
  • ${e.title}
  • `}function vze(e,t){let n=Pp(),o=t?b.data.userDir==="ltr"?"chevron-right-light":"chevron-left-light":"chevron-down-light",r=t?"":"expanded-indicator",s=e.current?"is-active":"",i=e.current?"true":void 0,a=e.biName?`secondary-nav-btn-${e.biName}`:"secondary-nav-btn",l=e.biName?`secondary-nav-menu-${e.biName}`:"secondary-nav-menu";return d``}function xze(e,t=new URL(window.location.href)){return e.origin===t.origin&&e.pathname.toLowerCase().replace(/\//gi,"")===t.pathname.toLowerCase().replace(/\//gi,"")}function hwe(e,t){let n=new URL(e,window.location.origin);if(xze(n)&&t)return"page";if(t)return"true"}var Hy,p$=new Promise(e=>Hy=e);async function bwe(){ETe(),DTe(),Tze()}async function Tze(){await My;let e=nwe(Ry),t=owe(Ry);await xe;let n=w.querySelector("#ms--site-header");if(!n){Hy();return}let o=n.querySelector("#ms--primary-nav");if(!o){Hy();return}let r=n.querySelector("#ms--mobile-nav");if(!r){Hy();return}x(e,o),x(t,r),ATe(),zTe();let s=n.querySelector("#ms--secondary-nav");if(!s){Hy();return}if(Dy){await Ny;let i=await gwe();s.classList.contains("site-header")&&i?(s.classList.remove("site-header"),x(i,s)):s.remove()}else s.remove();Hy()}var wze=["Conceptual","ContentPage","Hub","Reference","Architecture","FAQ","HowTo"];function By(e){if(!e||!wze.includes(b.data.pageTemplate))return;let t=[".content",".content section",".content [data-moniker]",".content [data-pivot]",".anchor-headings"],n=["h2","h3","h4","h5","h6"];Array.from(e.querySelectorAll(`${n.join(",")}`)).forEach(r=>{if(r.parentElement&&r.parentElement.matches(`${t.join(",")}`)){let s=r.tagName.toLowerCase(),i=document.createElement("div");i.classList.add("heading-wrapper"),i.setAttribute("data-heading-level",s);let a=ak(r).trim(),l=r.id||Wn(a);r.id||(r.id=l),r.classList.add("heading-anchor");let c=document.createElement("a");c.classList.add("anchor-link","docon","docon-link"),c.href="http://approjects.co.za/?big=#"+l,c.setAttribute("aria-label",hse.replace("{title}",a)),i.appendChild(c),r.insertAdjacentElement("beforebegin",i),i.insertAdjacentElement("beforeend",r)}})}k();var Sze=["Conceptual","Episode","Module","Reference"],_we={Conceptual:{"ai-generated":dK,"ai-assisted":uK,"human-only":pK},Episode:{"ai-generated":mK,"ai-assisted":gK},Module:{"ai-generated":fK,"ai-assisted":hK},Reference:{"ai-generated":bK,"ai-assisted":_K}};function ywe(){let e=Ai("ai-usage"),t=b.data.pageTemplate;!Sze.includes(t)||e.length===0||Cze(t,e)}function Cze(e,t){let n=document.getElementById("ms--inline-notifications"),o=Eze(e,t);if(!n||!o)return;let r=kze(o);x(r,n)}function Eze(e,t){let n=new Set(t),o=[];for(let r of n)if(_we[e].hasOwnProperty(r)){let s=_we[e][r];s&&o.push(s)}return o}function Aze(e){return d`
    ${F(e)}
    `}function kze(e){return d` ${hn(e,t=>Aze(t))} `}Object.defineProperty(HTMLElement.prototype,"inlineStyle",{set(e){this.style.cssText=e}});Object.defineProperty(HTMLInputElement.prototype,"customValidity",{set(e){this.setCustomValidity(e)}});function xwe(){let e=document.querySelector('script[src*=".index-"][src$=".js"]');return e?e.src:"unknown-script-src"}function Twe(){window.addEventListener("unhandledrejection",e=>{let t=vwe(e.type,xwe(),e.lineno,e.colno,{name:e?.type,message:e?.reason?.message||"Error message unavailable for unhandle rejection in promise",stack:e?.reason?.stack||"No stack available for unhandled rejection in promise",...e?.reason?.message?{}:{troubleshooting:JSON.stringify(e)}});Se({behavior:me.OTHER,content:t})}),window.onerror=(e,t,n,o,r)=>{let s=vwe(e,t,n,o,r);Se({behavior:me.OTHER,content:s})}}function vwe(e,t,n,o,r){let i=new Date().toString();return{type:"learn-client-error",event:e,source:t||xwe(),lineno:n||0,colno:o||0,message:r?.message||"Error message unavailable",stack:r?.stack||"Stack trace unavailable",name:r?.name||"Error name unavailable",timestamp:i,timeOrigin:window.performance.timeOrigin||void 0,userAgent:window.navigator.userAgent,connectionCategory:window.navigator.connection?.effectiveType||"Unknown",url:window.location.href,supportedBrowser:vp,pageTemplate:b.data.pageTemplate}}var Tp,OS,$we,g$,z5,Gy=function(){return window.performance&&performance.getEntriesByType&&performance.getEntriesByType("navigation")[0]},US=function(e){if(document.readyState==="loading")return"loading";var t=Gy();if(t){if(e(t||100)-1)return n||r;if(n=n?r+">"+n:r,o.id)break;e=o.parentNode}}catch{}return n},Dwe=-1,Nwe=function(){return Dwe},ef=function(e){addEventListener("pageshow",function(t){t.persisted&&(Dwe=t.timeStamp,e(t))},!0)},b$=function(){var e=Gy();return e&&e.activationStart||0},ea=function(e,t){var n=Gy(),o="navigate";return Nwe()>=0?o="back-forward-cache":n&&(o=document.prerendering||b$()>0?"prerender":document.wasDiscarded?"restore":n.type.replace(/_/g,"-")),{name:e,value:t===void 0?-1:t,rating:"good",delta:0,entries:[],id:"v3-".concat(Date.now(),"-").concat(Math.floor(8999999999999*Math.random())+1e12),navigationType:o}},Vy=function(e,t,n){try{if(PerformanceObserver.supportedEntryTypes.includes(e)){var o=new PerformanceObserver(function(r){Promise.resolve().then(function(){t(r.getEntries())})});return o.observe(Object.assign({type:e,buffered:!0},n||{})),o}}catch{}},ta=function(e,t,n,o){var r,s;return function(i){t.value>=0&&(i||o)&&((s=t.value-(r||0))||r===void 0)&&(r=t.value,t.delta=s,t.rating=function(a,l){return a>l[1]?"poor":a>l[0]?"needs-improvement":"good"}(t.value,n),e(t))}},G5=function(e){requestAnimationFrame(function(){return requestAnimationFrame(function(){return e()})})},_$=function(e){var t=function(n){n.type!=="pagehide"&&document.visibilityState!=="hidden"||e(n)};addEventListener("visibilitychange",t,!0),addEventListener("pagehide",t,!0)},V5=function(e){var t=!1;return function(n){t||(e(n),t=!0)}},zy=-1,wwe=function(){return document.visibilityState!=="hidden"||document.prerendering?1/0:0},f$=function(e){document.visibilityState==="hidden"&&zy>-1&&(zy=e.type==="visibilitychange"?e.timeStamp:0,Pze())},Swe=function(){addEventListener("visibilitychange",f$,!0),addEventListener("prerenderingchange",f$,!0)},Pze=function(){removeEventListener("visibilitychange",f$,!0),removeEventListener("prerenderingchange",f$,!0)},j5=function(){return zy<0&&(zy=wwe(),Swe(),ef(function(){setTimeout(function(){zy=wwe(),Swe()},0)})),{get firstHiddenTime(){return zy}}},qS=function(e){document.prerendering?addEventListener("prerenderingchange",function(){return e()},!0):e()},Cwe=[1800,3e3],Fwe=function(e,t){t=t||{},qS(function(){var n,o=j5(),r=ea("FCP"),s=Vy("paint",function(i){i.forEach(function(a){a.name==="first-contentful-paint"&&(s.disconnect(),a.startTimes.value&&(s.value=i,s.entries=a,r())},c=Vy("layout-shift",l);c&&(r=ta(n,s,Ewe,o.reportAllChanges),_$(function(){l(c.takeRecords()),r(!0)}),ef(function(){i=0,s=ea("CLS",0),r=ta(n,s,Ewe,o.reportAllChanges),G5(function(){return r()})}),setTimeout(r,0))}))})(function(n){(function(o){if(o.entries.length){var r=o.entries.reduce(function(a,l){return a&&a.value>l.value?a:l});if(r&&r.sources&&r.sources.length){var s=(i=r.sources).find(function(a){return a.node&&a.node.nodeType===1})||i[0];if(s)return void(o.attribution={largestShiftTarget:h$(s.node),largestShiftTime:r.startTime,largestShiftValue:r.value,largestShiftSource:s,largestShiftEntry:r,loadState:US(r.startTime)})}}var i;o.attribution={}})(n),e(n)},t)},Uwe=function(e,t){Fwe(function(n){(function(o){if(o.entries.length){var r=Gy(),s=o.entries[o.entries.length-1];if(r){var i=r.activationStart||0,a=Math.max(0,r.responseStart-i);return void(o.attribution={timeToFirstByte:a,firstByteToFCP:o.value-a,loadState:US(o.entries[0].startTime),navigationEntry:r,fcpEntry:s})}}o.attribution={timeToFirstByte:0,firstByteToFCP:o.value,loadState:US(Nwe())}})(n),e(n)},t)},FS={passive:!0,capture:!0},Lze=new Date,Awe=function(e,t){Tp||(Tp=t,OS=e,$we=new Date,Hwe(removeEventListener),qwe())},qwe=function(){if(OS>=0&&OS<$we-Lze){var e={entryType:"first-input",name:Tp.type,target:Tp.target,cancelable:Tp.cancelable,startTime:Tp.timeStamp,processingStart:Tp.timeStamp+OS};g$.forEach(function(t){t(e)}),g$=[]}},Rze=function(e){if(e.cancelable){var t=(e.timeStamp>1e12?new Date:performance.now())-e.timeStamp;e.type=="pointerdown"?function(n,o){var r=function(){Awe(n,o),i()},s=function(){i()},i=function(){removeEventListener("pointerup",r,FS),removeEventListener("pointercancel",s,FS)};addEventListener("pointerup",r,FS),addEventListener("pointercancel",s,FS)}(t,e):Awe(t,e)}},Hwe=function(e){["mousedown","keydown","touchstart","pointerdown"].forEach(function(t){return e(t,Rze,FS)})},kwe=[100,300],Mze=function(e,t){t=t||{},qS(function(){var n,o=j5(),r=ea("FID"),s=function(l){l.startTimet.latency){if(n)n.entries.push(e),n.latency=Math.max(n.latency,e.duration);else{var o={id:e.interactionId,latency:e.duration,entries:[e]};H5[o.id]=o,Xl.push(o)}Xl.sort(function(r,s){return s.latency-r.latency}),Xl.splice(10).forEach(function(r){delete H5[r.id]})}},Nze=function(e,t){t=t||{},qS(function(){Dze();var n,o=ea("INP"),r=function(i){i.forEach(function(c){c.interactionId&&Lwe(c),c.entryType==="first-input"&&!Xl.some(function(u){return u.entries.some(function(p){return c.duration===p.duration&&c.startTime===p.startTime})})&&Lwe(c)});var a,l=(a=Math.min(Xl.length-1,Math.floor(Pwe()/50)),Xl[a]);l&&l.latency!==o.value&&(o.value=l.latency,o.entries=l.entries,n())},s=Vy("event",r,{durationThreshold:t.durationThreshold||40});n=ta(e,o,Iwe,t.reportAllChanges),s&&(s.observe({type:"first-input",buffered:!0}),_$(function(){r(s.takeRecords()),o.value<0&&Pwe()>0&&(o.value=0,o.entries=[]),n(!0)}),ef(function(){Xl=[],Vwe=Gwe(),o=ea("INP"),n=ta(e,o,Iwe,t.reportAllChanges)}))})},jwe=function(e,t){Nze(function(n){(function(o){if(o.entries.length){var r=o.entries.sort(function(s,i){return i.duration-s.duration||i.processingEnd-i.processingStart-(s.processingEnd-s.processingStart)})[0];o.attribution={eventTarget:h$(r.target),eventType:r.name,eventTime:r.startTime,eventEntry:r,loadState:US(r.startTime)}}else o.attribution={}})(n),e(n)},t)},Rwe=[2500,4e3],B5={},Qwe=function(e,t){(function(n,o){o=o||{},qS(function(){var r,s=j5(),i=ea("LCP"),a=function(u){var p=u[u.length-1];p&&p.startTimeperformance.now())return;n.value=Math.max(s-b$(),0),n.entries=[r],o(!0),ef(function(){n=ea("TTFB",0),(o=ta(e,n,Mwe,t.reportAllChanges))(!0)})}})},Ywe=function(e,t){Oze(function(n){(function(o){if(o.entries.length){var r=o.entries[0],s=r.activationStart||0,i=Math.max(r.domainLookupStart-s,0),a=Math.max(r.connectStart-s,0),l=Math.max(r.requestStart-s,0);o.attribution={waitingTime:i,dnsTime:a-i,connectionTime:l-a,requestTime:o.value-l,navigationEntry:r}}else o.attribution={waitingTime:0,dnsTime:0,connectionTime:0,requestTime:0}})(n),e(n)},t)};var HS=P("learn-experiments")==="true"&&R.siteName!=="developer"&&R.siteName!=="mooncake",Y5=HS?5*1e3:0,Uze="assignmentserviceapi.production.portalrp.azure.com",qze=`https://${Uze}/api/mslearn/variants?api-version=1.0`;function Hze(){return qze}var Kwe=ape("MC1",Y5),Jwe={},v$,y$,Wwe,Q5=!1,Zwe=nSe(),Xwe=oSe(),eSe,W5=new Promise(e=>{eSe=e});async function x$(e,t="treatment"){return!HS||!await Mm?!1:(await W5,`${e}-${t}`in Jwe)}async function tSe(){if(!HS||!await Mm)return;let t=await Kwe,n=t?aSe(t):null;if(!n){Se({content:{type:"experiment-no-assignment",name:"experiment-platform-no-mc1-cookie",autoIngest:!0,timestamp:new Date().toISOString()}});return}await ve;let o={mc1:n,audience:{environment:R.supportLevel==="production"?"prod":"preprod",isAuthenticated:!1,locale:C.locale,referer:document.referrer}};C.isAuthenticated&&(o.userId=C.userId,o.audience.isAuthenticated=!0);let r=JSON.stringify(o),s=J(Hze(),{method:"POST",body:r},!1,!0),i=await $(s,{},Y5);if(!i.ok)throw Se({content:{type:"experiment-platform-assignment",name:"assignment-error",autoIngest:!0,timestamp:new Date().toISOString(),content:{requestBody:r,error:`Experiment API failed with status ${i.status}`}}}),new Error(`Experiment API failed: ${i.status}`);let a=await i.json(),l=Object.keys(a.variants),c=new Date().toISOString();return Se({content:{type:"experiment-platform-assignment",name:"assignment-success",autoIngest:!0,timestamp:new Date().toISOString(),content:{requestBody:r,data:a,dataVersion:a.dataVersion}}}),{assignments:l,rawResponse:a,assignmentTimestamp:c}}function nSe(){return tSe().then(e=>(v$!==void 0&&(clearTimeout(v$),v$=void 0),e!==void 0&&(B.learnExperiments={loaded:!0,assignments:e.assignments,loadTime:performance.now()}),e))}function oSe(){return new Promise(e=>{v$=setTimeout(()=>{e(void 0)},Y5)})}async function T$(){await rSe();let e=Mm;if(HS){if(!await e){Se({content:{type:"experiment-no-assignment",name:"experiment-platform-no-consent",autoIngest:!0,timestamp:new Date().toISOString()}});return}B.learnExperiments={...B.learnExperiments||{assignments:[]},loaded:!1};try{let t=await Promise.race([Zwe,Xwe]);t===void 0&&Se({content:{type:"experiment-platform-timeout"}}),t!=null&&typeof t=="object"&&"assignments"in t&&"rawResponse"in t&&"assignmentTimestamp"in t&&(Jwe=t.assignments.reduce((n,o)=>(n[o]=!0,n),{}),y$=t.rawResponse,Wwe=t.assignmentTimestamp),eSe?.(),y$&&await iSe("client-side",y$.assignmentContext,y$.dataVersion,Wwe)}catch(t){Se({content:{type:"experiment-platform-error",content:{error:JSON.stringify(t)}}});return}}}async function rSe(){if(Q5)return;let e=document.getElementById("learn-experiments-context");if(!e||e.tagName!=="SCRIPT")return;let t=e.textContent?.trim();if(!t)return;let n;try{n=JSON.parse(t),Q5=!0}catch(o){Se({content:{type:"experiment-platform-error",content:{error:`learn-experiments-script-parse:${o.message}`}}});return}try{await iSe("server-side",n.assignmentContext,n.dataVersion,n.assignmentTimestamp)}catch(o){throw Q5=!1,o}}ut.subscribe(bn,async()=>await sSe());ut.subscribe(wn,async()=>await sSe());async function sSe(){!HS||!await Mm||(Zwe=nSe(),Xwe=oSe(),T$())}async function iSe(e,t,n,o){if(!t)return;let r=await Kwe,s={actionType:"A",behavior:12,pageTags:{exp_context:t,exp_platform:"learn-experiments",exp_data_version:n?.toString()??"",exp_assignment_ts:o??"",exp_mc1:aSe(r??"")??"",exp_uri:B.location.href,exp_document_id:P("document_id")??"",exp_page_type:b?.data?.pageTemplate??"",exp_locale:P("locale")??document.documentElement.lang??"",exp_docs_ui_ver:Bze()}};Dpe(s),Se({content:{type:"experiment-platform-telemetry",name:e+"-experiment",autoIngest:!0,timestamp:new Date().toISOString(),content:s}})}zl&&(B.__learnExperimentsTestHooks={emitServerExperimentContext:rSe,loadExperimentAssignments:tSe,instrumentExperiments:T$});function aSe(e){let t=e.match(/GUID=([^&;]+)/);return t?t[1]:null}function Bze(){return document.querySelector('script[src*="index-"]')?.src??""}var zze=S.reportWebVitalsAlways?1:.1,w$=new Set;function tf(e){w$.add(e)}function lSe(){if(w$.size>0){let e=Array.from(w$);Vze(e),w$.clear()}}function Gze(e){let t={};for(let n of e){let{name:o,value:r}=n;t[o]=r}return t}function Vze(e){let t=Gze(e);Se({content:{type:"web-vitals",version:"1",metrics:t}})}function cSe(){let e=S.reportWebVitalsAlways||Math.random()<=zze;!vp||!e||(Owe(tf),Uwe(tf),jwe(tf),Qwe(tf),Ywe(tf),Bwe(tf),jze(tf),document.addEventListener("visibilitychange",()=>{document.visibilityState==="hidden"&&lSe()}),document.addEventListener("pagehide",lSe))}async function jze(e){if(window.learnExperiments===void 0||(await W5,window.learnExperiments.loadTime===void 0))return;let t=window.learnExperiments.loadTime,n=t<2500?"good":t>4e3?"bad":"needs-improvement";e({value:t,id:crypto.randomUUID(),name:"learnExperimentsLoaded",rating:n,delta:0,entries:[],navigationType:"navigate"})}function uSe(){Qze(),Yze(),Wze(),Kze(),Jze(),Zze(),Xze(),e5e(),n5e(),o5e(),cSe()}async function Qze(){let e=()=>Mpe(C.authenticationMode,C.isAuthenticated);C.subscribe(wn,e),e(),await C.whenAuthenticated(),Se({content:{event:"user-is-signed-in"}})}function Yze(){function e(t){!t.isTrusted||!(t.target instanceof HTMLSelectElement)||!t.target.hasAttribute(An.name)||Vt(t.target,{actionType:Ee.OTHER,behavior:me.OTHER,content:{event:"select-value-changed",name:Bc(t.target),value:t.target.value}})}w.addEventListener("change",e,{passive:!0})}function Wze(){let e="";function t(r){!r.isTrusted||e===r.type||(e=r.type,Se({actionType:Ee.OTHER,behavior:me.OTHER,content:{event:"page-focus-changed",value:r.type}}))}let n=0;function o(r){clearTimeout(n),n=setTimeout(()=>t(r),50)}B.addEventListener("focus",o,{passive:!0}),B.addEventListener("blur",o,{passive:!0})}function Kze(){function e(){Se({actionType:Ee.OTHER,behavior:me.OTHER,content:{event:"page-visibility-changed",value:w.hidden?"hidden":"visible"}})}function t(){w.addEventListener("visibilitychange",e,{passive:!0})}w.readyState==="interactive"||w.readyState==="complete"?t():w.addEventListener("DOMContentLoaded",t)}function Jze(){lpe&&upe.addListener(e=>{e.matches&&Se({actionType:Ee.OTHER,behavior:me.PRINT,content:{event:"print"}})})}function Zze(){function e(n){if(!n.isTrusted||!(n.target instanceof HTMLElement))return;let{width:o,height:r}=n.target.getBoundingClientRect(),{scrollLeft:s,scrollTop:i,scrollWidth:a,scrollHeight:l}=n.target;Vt(n.target,{actionType:Ee.OTHER,behavior:me.OTHER,content:{event:"secondary-content-scroll",name:Bc(n.target),viewPortWidth:Math.floor(o),viewPortHeight:Math.floor(r),contentWidth:Math.floor(a),contentHeight:Math.floor(l),horizontalOffset:Math.floor(s),verticalOffset:Math.floor(i)}})}function t(n){if(n.target===w)return;let o=n.target;clearTimeout(o.reportScrollTimeout),o.reportScrollTimeout=setTimeout(()=>e(n),100)}B.addEventListener("scroll",t,{passive:!0,capture:!0})}function Xze(){let e=!1;function t(){Se({actionType:Ee.OTHER,behavior:me.OTHER,content:{event:"unload",anchor:e}})}function n(r){r.target instanceof HTMLAnchorElement&&(e=!0,setTimeout(()=>e=!1))}function o(r){r.target instanceof HTMLAnchorElement&&(e=!0,setTimeout(()=>e=!1))}B.addEventListener("keydown",o,{capture:!0,passive:!0}),B.addEventListener("click",n,{capture:!0,passive:!0}),B.addEventListener("beforeunload",t,{passive:!0})}function e5e(){function e(t){let n=t.target;if(n.id!=="ms--site-header-search-form"&&n.id!=="ms--site-header-search-form-mobile"&&n.id!=="welcome-page-search-form"&&n.id!=="directory-page-search-form"&&n.id!=="facet-search-form")return;t5e(n.id);let r=Array.from(n.querySelectorAll('input[name="terms"], input[name="facet-search-input"]'))[0].value,s=w.activeElement&&w.activeElement instanceof HTMLButtonElement&&w.activeElement.type==="submit"&&!!n.querySelector(`#${w.activeElement.id}`);Vt(n,{actionType:Ee.OTHER,behavior:me.SEARCH,content:{event:"uhf-search",value:r,submitButton:s}})}B.addEventListener("submit",e,{passive:!0,capture:!0})}function t5e(e){let n={"ms--site-header-search-form":"nav-search-enter","ms--site-header-search-form-mobile":"nav-search-enter","welcome-page-search-form":"hero-search-enter"}[e];n&&Se({behavior:me.SEARCH,actionType:Ee.OTHER,content:{autoIngest:!0,type:"site-search-submit",name:n}})}function n5e(){function e(t){t.isTrusted&&t.keyCode===70&&t.ctrlKey&&!t.shiftKey&&!t.altKey&&!t.metaKey&&Se({actionType:Ee.OTHER,behavior:me.OTHER,content:{event:"ctrl-f"}})}B.addEventListener("keydown",e,{passive:!0})}function o5e(){function e(t){let n={referrerUri:t.referrerUrl.href,requestUri:t.url.href,title:t.title,pageName:P("document_id")||"missing document_id",pageType:P("page_type"),pageTags:{}};QI(n.pageTags),$pe(n),WI()}ut.subscribe(bn,e)}k();var dSe="azure-auth-complete";function r5e(){let e=ce(location.search);return e[dSe]==="true"?(e[dSe]=null,Gt(e,"replaceState"),!0):!1}r5e()&&Vw.tryLoadTokens().then(e=>{e&&u5e()});var s5e=d`

    ${je(Tse)}

    ${nhe}`;async function S$(e){let t=d`
    ${s5e}
    `;x(t,e);let n=e.firstElementChild.firstElementChild,o=s=>new Promise(i=>{let a=l=>{e.innerHTML="",Rn.value=l,i(l)};s===null?(Rn.value=null,C$(n)):s.length===0?a5e(n):i5e(n,a,s)});Ho.trackEvent({name:"oauth-login-try-load-tokens"});let r=await Vw.tryLoadTokens({noInteraction:!1});return o(r)}var K5={light:"light",dark:"dark","high-contrast":"high-contrast"};function pSe(e){let t=document.getElementById("mult-account");t&&(t.src=`/en-us/media/illustrations/multiple-accounts-${K5[e]}.svg?branch=live`);let n=document.getElementById("log-in-media");n&&(n.src=`/en-us/media/illustrations/lock-and-key-${K5[e]}.svg?branch=live`);let o=document.getElementById("profile-icon"),r=C.authenticationMode==="AAD"?"org":"personal";o&&(o.src=`/en-us/media/profile/${r}-account${K5[e]==="light"?"":"-dark-highcontrast"}.svg?branch=live`)}function C$(e){c5e(),ut.subscribe(xl,i=>pSe(i.currentTheme));let n=`/en-us/media/illustrations/lock-and-key-${pd()}.svg?branch=live`,r=d``;x(r,e);let s=document.getElementById("try-it-sign-in");s&&s.addEventListener("click",()=>{let i=ce();i.tryIt="true",Gt(i,"replaceState"),oi(null,!1,!0)})}function i5e(e,t,n){ut.subscribe(xl,c=>pSe(c.currentTheme));let o=pd(),r=`/en-us/media/illustrations/multiple-accounts-${o}.svg?branch=live`,i=`/en-us/media/profile/${C.authenticationMode==="AAD"?"org":"personal"}-account${o==="light"?"":"-dark-highcontrast"}.svg?branch=live`,l=d`
    ${Dae}

    ${$ae}


    ${C.upn}

    ${q0}


    `;x(l,e)}function a5e(e){let t="/en-us/media/illustrations/azure-subscription-alert.svg?branch=live",n=P("platform_id"),o=n?`msft_learn_${encodeURIComponent(n)}`:"msft_learn",r=d`
    ${Uae}

    ${qae.replace("{email}",C.upn)}

    `;x(r,e)}function l5e(e,t,n){if(n.length===1)t(n[0]);else{let o=()=>{},s=d`
    ${Fae}

    ${Mae.replace("{email}",C.upn)}

      `;x(s,e);let i=e.firstElementChild.firstElementChild.querySelector("#token-list-container").querySelector("ul.azure-auth-tokens");for(let l of n){let c=`
      `;i.insertAdjacentHTML("beforeend",`
    • ${c}
    • `)}i.lastElementChild.querySelector("hr").hidden=!0;let a=i.querySelectorAll('input[name="tenant-name"]');a[0].checked=!0,o=()=>{e.firstElementChild.firstElementChild.querySelector(".buttons").firstElementChild.querySelector("button#continue-with-tenant").classList.add("is-loading");for(let c=0;c{!this.consoleFrame||!this.consoleFrame.contentWindow||r!==E$||t!=="portalConsole"||n!=="getToken"||(this.messageReceived||(Ho.trackEvent({name:"cloud-shell-message-received"}),this.messageReceived=!0),clearTimeout(this.messageHandlerTimeout),this.replyToken(o))};this.instrumentMessageHandler=()=>{!this.consoleFrame||!this.consoleFrame.contentWindow||(Ho.trackEvent({name:"cloud-shell-not-responsive"}),this.showTroubleshootingMessage())};this.showTroubleshootingMessage=()=>{this.element.innerHTML=`

      ${LY}

      `};B.addEventListener("message",this.messageHandler),this.element=w.createElement("div"),this.element.classList.add("cloud-shell"),this.element.setAttribute(An.name,"azure-cli"),this.messageHandlerTimeout=0,this.interactiveType=t?"powershell":"bash",S$(this.element).then(()=>(this.element.classList.add(`has-text-${this.interactiveType}-invert`,`has-background-${this.interactiveType}`),Promise.resolve())).then(()=>this.whenPageVisible()).then(()=>{let n=p5e(b.data.userLocale);this.element.innerHTML=`

      Azure Cloud Shell

      `;let o=this.element.querySelector('button[data-bi-name="restart"]');o.onclick=()=>this.restart(),this.consoleFrame=this.element.querySelector("iframe"),this.messageHandlerTimeout=setTimeout(this.instrumentMessageHandler,d5e)})}setCode(){return Promise.resolve()}execute(){return Promise.resolve()}restart(){this.consoleFrame.hidden||this.consoleFrame.contentWindow.postMessage({signature:"portalConsole",type:"restart"},E$)}dispose(){B.removeEventListener("message",this.messageHandler)}replyToken(t){let n;switch(t){case"":n=Rn.value.access_token;break;case"microsoft.graph":n=Rn.value.msgraph_access_token,Se({content:{event:"cloud-shell-audience",value:"microsoft.graph"}});break;case"keyvault":n=Rn.value.key_vault_access_token,Se({content:{event:"cloud-shell-audience",value:"keyvault"}});break;default:throw new Error(`Unsupported token audience: "${t}".`)}this.consoleFrame.contentWindow.postMessage({signature:"portalConsole",type:"postToken",audience:t,message:`Bearer ${n}`},E$)}whenPageVisible(){return w.visibilityState==="visible"?Promise.resolve():new Promise(t=>w.addEventListener("visibilitychange",()=>{w.visibilityState==="visible"&&t()}))}},mSe={name:wee,iconClass:"docon docon-terminal",attributes:[{name:"aria-haspopup",value:"true"}]};Rg({name:"bash",activateButtonConfig:mSe,create:()=>new A$(!1)});Rg({name:"powershell",activateButtonConfig:mSe,create:()=>new A$(!0)});function p5e(e){switch(e){case"zh-cn":return"zh-hans";case"zh-hk":return"zh-hans";case"zh-tw":return"zh-hant"}return["en","cs","de","es","fr","hu","it","ja","ko","nl","pl","pt-br","pt-pt","ru","sv","tr","zh-hans","zh-hant"].find(o=>e.indexOf(o)===0)||"en"}var BS=class{constructor(t,n,o=window){this.targetOrigin=n;this.subscriptions=[];this.messageHandler=({data:t,origin:n})=>{if(n!==this.targetOrigin)return;let o=this.subscriptions.filter(r=>r.predicate(t));for(let r of o)r.callback(t)};if(t)t instanceof HTMLIFrameElement?t.contentWindow?this.targetWindowLoaded=Promise.resolve({value:t.contentWindow}):this.targetWindowLoaded=new Promise(r=>{t.onload=()=>r({value:t.contentWindow})}):this.targetWindowLoaded=Promise.resolve({value:t});else throw new Error("target is required");o.addEventListener("message",this.messageHandler)}async publish(t){(await this.targetWindowLoaded).value.postMessage(t,this.targetOrigin)}subscribe(t,n=()=>!0){let o={predicate:n,callback:t};return this.subscriptions.push(o),()=>this.unsubscribe(o)}subscribeOnce(t=()=>!0,n){return new Promise((o,r)=>{let s={},i=n===void 0?0:setTimeout(l,n,s),a=this.subscribe(l,t);function l(c){clearTimeout(i),a(),c===s?r("timeout"):o(c)}})}unsubscribe(t){let n=this.subscriptions.indexOf(t);n!==-1&&this.subscriptions.splice(n,1)}};Mg();var k$=R.supportLevel==="production"&&R.reviewFeatures?"https://tryit.graphexplorerppe.microsoft.com":"https://tryit.graphexplorer.microsoft.com";function m5e(e){let t=g5e(e);if(!t)return[];let n=f5e(t);return h5e(n)}function g5e(e){return e.querySelector('h2[id="permissions"] ~ * table, h2[id="permissions"] ~ table')}function f5e(e){let t=e.cloneNode(!0),n=Array.from(t.childNodes);return Array.from(n[0].parentNode.querySelectorAll("[data-ttu-id]")).map(o=>{o.remove()}),t}function h5e(e){return Array.from(e.querySelectorAll("tr")).map(n=>Array.from(n.querySelectorAll("th,td")).map(o=>o.textContent.trim()))}var b5e={name:fh,iconClass:"docon docon-terminal",attributes:[{name:"aria-haspopup",value:"true"}]};Rg({name:"msgraph",activateButtonConfig:b5e,create:()=>{let e=new URL(k$),t=location.origin,n=document.getElementById("main"),o=m5e(n),r={type:"init",locale:b.data.userLocale,theme:dd,code:"",permissions:o};e.searchParams.set("locale",r.locale),e.searchParams.set("host-origin",t),e.searchParams.set("theme",r.theme);let s=document.createElement("iframe");s.classList.add("msgraph","is-full-height"),s.title=GX,s.src=e.toString();let i=new BS(s,k$),a,l=c=>{c.origin!==k$&&c.data.type!=="ready"||(s.contentWindow.postMessage(r,k$),a||(a=ut.subscribe(xl,u=>{i.publish({type:"theme-changed",theme:u.currentTheme})})),window.removeEventListener("message",l))};return{element:s,setCode:c=>(r.code=c,r.theme=dd,Promise.resolve()),execute:()=>window.addEventListener("message",l),dispose:()=>{a()}}}});Qe();async function gSe(e,t,n){Vt(e,{behavior:me.STARTPROCESS,contentTags:{scn:"Rest Try It",scnstp:"Request",scnnxtstp:"Response",isSuccess:!0},content:{event:"rest-tryit-run",authenticationMethod:t,fields:n}})}async function fSe(e,t){Se({behavior:me.COMPLETEPROCESS,actionType:Ee.OTHER,contentTags:{scn:"Rest Try It",scnstp:"Response",isSuccess:!0},content:{event:"rest-tryit-fetch-complete",status:t.status,method:e.method}})}function I$(e,t,n){n=n||{},n.mode="cors",n.cache="reload",n.method=e.httpVerb,e.body&&(n.body=e.body);let o=e.url,r=t.transform(new Request(o,n),e);return e.headers!==null&&e.headers.forEach(s=>{s.value!==""&&r.headers.set(s.name,s.value)}),r}function hSe(e){return fetch(e).then(t=>(fSe(e,t),t))}function bSe(e){let t={};t.statusCode=e.status.toString();let n=e.headers;return t.header="",n.forEach((o,r)=>{t.header+=`${r}: ${o} `}),/application\https://www.microsoft.com/json/i.test(e.headers.get("Content-Type")||"")&&t.statusCode!=="204"&&t.statusCode!=="404"?e.json().then(o=>(t.body=JSON.stringify(o,null,2),t)):e.text().then(o=>(t.body=o,t))}function P$(e,t,n=window){let o=n instanceof Window?window.pageYOffset:n.scrollTop,r=e-o,s;function i(a){s||(s=a);let l=a-s,c=Math.min(l/t,1);n instanceof Window?n.scrollTo(0,o+r*c):n.scrollTop=o+r*c,l
      ${n}
      ${a}
      ${o}
      `}function Yy(e,t){let n=e.querySelector(t);if(n&&G4(),n?.textContent){let o=n.getAttribute("data-language")||"";kR([{code:n.textContent,language:o,highlightLines:""}]).then(r=>{r[0]&&(n.innerHTML=r[0].html)})}}k();function ySe(e,t,n,o){let r=_Se(n,o),s=d`

      ${Rte}

      ${L$({language:"http",code:r,attributes:{name:"http-request","aria-live":"polite","aria-atomic":"true",tabindex:"0"}})} `,i=document.createElement("div");x(s,i),e.appendChild(i),Yy(i,'pre[name="http-request"]');let a=i.querySelector('pre[name="http-request"]'),l=()=>{let c={url:null,httpVerb:null,headers:[],params:[],body:null};t.publish(new ci(c));let u=_Se(c,o);a.textContent=u,Yy(i,'pre[name="http-request"]')};t.subscribe(sr,l)}function _Se(e,t){let n=I$(e,t),o=`${n.method} ${n.url} `;return n.headers.forEach((r,s)=>{o+=`${s[0].toUpperCase()}${s.substring(1)}: ${r} `}),o}k();var _5e="https://management.azure.com/subscriptions?api-version=2016-06-01",y5e=e=>{e.publish(new GS);let t=new Request(_5e,{mode:"cors"});if(Rn.value===null)throw e.publish(new of([])),new Error("error fetching subscription: authorization header no token");return t.headers.append("Authorization",`Bearer ${Rn.value.access_token}`),fetch(t).then(n=>n.ok?n.json().then(({value:o})=>(e.publish(new of(o)),!0)):(n.text().then(o=>{throw new Error(`error fetching subscriptions: ${o}`)}),e.publish(new of([])),!1),()=>!1)};function vSe(e,t){if(!t)return e;let n=e.toLocaleLowerCase().indexOf(t.toLocaleLowerCase());if(n===-1)return e;let o=e.slice(0,n),r=e.slice(n,n+t.length),s=e.slice(n+t.length);return d`${o}${r}${s}`}function v5e(e,t){return d`${vSe(e.displayName,t)}${vSe(e.subscriptionId,t)}`}function R$(e,t){let n=t.map(({value:o,text:r,disabled:s,hidden:i,selected:a})=>{let l=document.createElement("option");return l.value=o,l.text=r,l.disabled=s??!1,l.hidden=i??!1,l.selected=a??!1,l});e.replaceChildren(...n)}function J5(e,t,n,o=!0,r={}){let s=document.createElement("div");s.classList.add("columns","field");let i=document.createElement("div");i.classList.add("column","is-5","param-name","field-label","margin-bottom-none","align-self-center");let a=document.createElement("div");a.classList.add("font-family-monospace","margin-right-none","font-size-xs");let l=document.createElement("label");l.classList.add("font-size-xs"),l.setAttribute("aria-label","parameter name "+n.name),l.textContent=n.name,a.appendChild(l),i.appendChild(a),s.appendChild(i);let c=document.createElement("div");c.classList.add("column","is-5","param-value","field-body","margin-top-none","align-self-center");let u=document.createElement("div"),p=document.createElement("p");p.classList.add("margin-block-none");let m=document.createElement("input");m.classList.add("input");let g=[],f=document.createElement("div");f.classList.add("select");let _=document.createElement("select");n.type==="boolean"&&(g.push("True"),g.push("False"));let h=n.type==="azure-subscriptions"&&n.name==="subscriptionId",v=[],y="",T=null,I=null,E=()=>{let K=I,Le=K?.querySelector("input");if(!(!K||!Le)){if(v.length===0||Le.value&&!K.value){Le.setCustomValidity(a0);return}Le.setCustomValidity("")}},q=document.createElement("div");q.classList.add("subscription-id"),q.textContent="";let D=K=>{let Le=K.restTryItRequest,Ke;h?Ke=I?.value?.subscriptionId??"":n.type==="boolean"||n.type==="azure-subscriptions"||n.type==="enum"?Ke=_.value:Ke=m.value,o?Le.headers.push({name:n.name,value:Ke,type:n.type,in:n.in,isRequired:n.isRequired,skipUrlEncoding:!1}):Le.params.push({name:n.name,value:Ke,type:n.type,in:n.in,isRequired:n.isRequired,skipUrlEncoding:n.skipUrlEncoding})};switch(n.type){case"boolean":case"azure-subscriptions":case"enum":if(h){T={input:{id:n.name+"-autocomplete",placeholder:Dt,label:"select parameter value option for "+n.name,isFullWidth:!0,required:n.isRequired,disabled:!0},getSuggestions:K=>{y=K.trim();let Le=y.toLowerCase();return Promise.resolve(v.filter(Ke=>Ke.normalizedDisplayName.includes(Le)||Ke.normalizedSubscriptionId.includes(Le)))},getTitle:K=>K.displayName,itemTemplate:K=>v5e(K,y),noResultsTemplate:a0,showOnFocus:!0,selectOnBlur:!0},I=wr(T),I.addEventListener(li,()=>{E(),t.publish(new sr)}),I.addEventListener("input",()=>{E(),t.publish(new sr)}),c.appendChild(I);break}if(g.length>=1){let K=document.createElement("option");K.value="",K.selected=!0,K.disabled=!0,K.hidden=!0,K.text="Select",_.appendChild(K)}g.forEach(K=>{let Le=document.createElement("option");Le.value=K,Le.text=K,_.appendChild(Le)}),n.isRequired&&_.setAttribute("required","true"),_.setAttribute("aria-label","select parameter value option for "+n.name),_.onchange=()=>{t.publish(new sr),_.textContent!==_.value&&(q.textContent=_.value)},n.name==="subscriptionId"&&(_.disabled=!0,R$(_,[{value:"",text:"Login to load..."}])),f.appendChild(_),c.appendChild(f);break;case"array":break;case"object":break;default:m.setAttribute("value",n.value),n.isRequired&&m.setAttribute("required","true"),m.setAttribute("aria-label","enter parameter value for "+n.name),m.onblur=()=>{t.publish(new sr)},p.appendChild(m),u.appendChild(p),c.appendChild(u);break}n.isRequired&&l.insertAdjacentHTML("beforeend",''),s.appendChild(c);let le=document.createElement("div");le.classList.add("column"),le.classList.add("is-2"),le.classList.add("delete-button");let we=document.createElement("button");return we.classList.add("button"),we.classList.add("docon"),we.classList.add("docon-navigate-close"),n.isRequired&&(we.style.visibility="hidden"),we.setAttribute("aria-label",EK),we.setAttribute("type","button"),le.appendChild(we),s.appendChild(le),we.onclick=K=>{s.parentElement.removeChild(s),t.unsubscribe(ci,D),t.publish(new sr),K.preventDefault()},e.appendChild(s),t.subscribe(ci,D),o||n.name==="subscriptionId"&&(t.subscribe(GS,()=>{h?(v=[],T&&(T.input.disabled=!0,T.input.placeholder=Dt),I&&(I.clear(),E())):(R$(_,[{value:"",text:""}]),_.disabled=!1)}),t.subscribe(of,K=>{let Le=[...K.subscriptions].sort((Ke,Pt)=>Ke.displayName.localeCompare(Pt.displayName,void 0,{sensitivity:"base"})).map(Ke=>({...Ke,normalizedDisplayName:Ke.displayName.toLowerCase(),normalizedSubscriptionId:Ke.subscriptionId.toLowerCase()}));if(h){v=Le;let Ke=Le.length>0;T&&(T.input.disabled=!1,T.input.placeholder=Ke?rn:a0),I&&(Ke?I.value=Le[0]:I.clear(),E()),t.publish(new sr);return}Le.length===0?(R$(_,[{value:"",text:"Error"}]),_.value=""):(R$(_,Le.map(({displayName:Ke,subscriptionId:Pt})=>({value:Pt,text:Ke}))),_.value=Le[0].subscriptionId,_.hidden=!1,_.disabled=!1),q.textContent=Le[0]?.subscriptionId??"",t.publish(new sr)})),n.type==="string"&&n.in==="query"&&r[n.name]!==void 0&&r[n.name].indexOf(n.name)===-1&&(m.value=r[n.name],t.publish(new sr)),n.name==="subscriptionId"&&y5e(t),{nameInput:l,valueInput:m,delButton:we,columnContainer:s}}function Z5(e,t,n=!0){let o=document.createElement("div");o.classList.add("columns");let r=document.createElement("div");r.classList.add("column","is-5","param-name");let s=document.createElement("div");s.classList.add("field-body");let i=document.createElement("p");i.classList.add("control");let a=document.createElement("input");a.classList.add("input"),a.setAttribute("placeholder","name"),a.setAttribute("aria-label","add new parameter name"),i.appendChild(a),s.appendChild(i),r.appendChild(s);let l=document.createElement("div");l.classList.add("error-message"),l.setAttribute("role","alert"),r.appendChild(l),o.appendChild(r),a.onblur=()=>{a.value!==""&&l.textContent!==""&&r.removeChild(l)};let c=document.createElement("div");c.classList.add("column","is-5","param-value");let u=document.createElement("div");u.classList.add("field-body");let p=document.createElement("p");p.classList.add("control");let m=document.createElement("input");m.classList.add("input"),m.setAttribute("type","text"),m.setAttribute("placeholder","value"),m.setAttribute("aria-label","add new parameter value"),p.appendChild(m),u.appendChild(p),c.appendChild(u),o.appendChild(c);let g=document.createElement("div");g.classList.add("column","is-2","add-button");let f=document.createElement("button");f.classList.add("button","button-clear","button-success","docon","docon-math-plus"),f.setAttribute("type","button"),f.setAttribute("aria-label",j9),g.appendChild(f),o.appendChild(g),e.appendChild(o);let _=h=>{let v=a.value,y=m.value;if(v===""){l.textContent=XK,r.appendChild(l),h.preventDefault();return}let T;n?T="header":document.querySelector(".url-input").value.indexOf("{"+v+"}")!==-1?T="path":T="query",o.parentElement.removeChild(o),t.publish(new jy({name:v,value:y,type:"string",in:T,isRequired:!1,skipUrlEncoding:!1}))};return f.onclick=h=>{_(h)},{nameInput:a,valueInput:m,addButton:f,columnContainer:o}}function X5(e,t,n,o=!0,r={}){let s=document.createElement("div"),i=document.createElement("div");i.classList.add("columns");let a=document.createElement("div");a.classList.add("column","is-5","param-heading");let l=document.createElement("h3");o?l.textContent=tA:l.textContent=Oee,a.appendChild(l),i.appendChild(a),s.appendChild(i);let c=document.createElement("div");c.classList.add("param-form-group");for(let p of n)J5(c,t,p,o,r);Z5(c,t,o),s.appendChild(c),e.appendChild(s);let u=p=>{(p.param.in==="header"&&o||p.param.in!=="header"&&!o)&&(J5(c,t,p.param,o),Z5(c,t,o),t.publish(new sr))};return t.subscribe(jy,u),c}var eG="";function TSe(e,t,n,o){let{url:r,urlParams:s}=x5e(n.url);eG=r;let i=document.createElement("div");i.classList.add("request-section"),T5e(i,t,r,n.httpVerb),X5(i,t,n.params,!1,s),X5(i,t,n.headers,!0),n.body!==null&&S5e(i,t,n.body),ySe(i,t,n,o);let a=document.createElement("div");a.classList.add("request-section"),i.appendChild(a);let l=C5e(a,t);return e.appendChild(i),l}function x5e(e){let t=e,n={},o=e.indexOf("?");if(o!==-1){let r=e.substr(o);t=e.substr(0,o),n=ce(r)}return{url:t,urlParams:n}}function T5e(e,t,n,o){let r=document.createElement("div");r.classList.add("field");let s=document.createElement("h3");s.classList.add("field-label","margin-bottom-none"),s.textContent=Y2,r.appendChild(s);let i=document.createElement("div");i.classList.add("field-body","url-group","margin-top-none");let a=document.createElement("div");a.classList.add("http-verb");let l=document.createElement("span");l.textContent=o,a.appendChild(l);let c=document.createElement("input");c.setAttribute("name","url"),c.readOnly=!0,c.classList.add("url-input","input"),c.setAttribute("aria-label",Y2),c.setAttribute("value",n),i.appendChild(a),i.appendChild(c),r.appendChild(i),e.appendChild(r),t.subscribe(ci,p=>{let m=p.restTryItRequest;m.url=n,m.httpVerb=l.textContent});let u=()=>{let p={url:null,httpVerb:null,headers:[],params:[],body:null};t.publish(new ci(p)),n=eG;let m=eG;p.params.forEach(g=>{n=xSe(n,g),m=xSe(m,g)}),c.value=m};return t.subscribe(sr,u),{inputUrl:c}}function xSe(e,t){return t.in==="path"&&t.value!==""?e=e.replace("{"+t.name+"}",w5e(t)):t.in==="query"&&t.value!==""&&(e.indexOf("?")===-1?e=e+"?"+encodeURIComponent(t.name)+"="+encodeURIComponent(t.value):e=e+"&"+encodeURIComponent(t.name)+"="+encodeURIComponent(t.value)),e}function w5e(e){return e.skipUrlEncoding?e.value:encodeURIComponent(e.value)}function S5e(e,t,n){let o=document.createElement("div"),r=document.createElement("h3");r.textContent=Ff,o.appendChild(r);let s=document.createElement("textarea");return s.setAttribute("name",Ff),s.textContent=n,s.classList.add("textarea","request-body","tall","small"),s.setAttribute("aria-label",Ff),o.appendChild(s),e.appendChild(o),t.subscribe(ci,i=>{let a=i.restTryItRequest;a.body=s.value}),{bodyText:s}}function C5e(e,t){let n=d``;x(n,e);let o=e.querySelector('button[type="submit"]');return t.subscribe(nf,()=>{o.classList.remove("is-loading")}),o}k();var wSe;function CSe(e,t){wSe=e,t.subscribe(Qy,n=>{E5e(wSe,n.response)})}function E5e(e,t){let n=e.querySelector(".response-section");n&&n.remove();let o=d` ${A5e(t.statusCode)} ${SSe(tA,t.header,"http","response-header")} ${t.body!==null?SSe(Ff,t.body,"json","response-body"):""} `,r=document.createElement("div");r.classList.add("response-section"),x(o,r),e.appendChild(r),Yy(r,".response-header"),t.body!==null&&Yy(r,".response-body")}function A5e(e){return d`

      ${$te}: ${e}

      `}function SSe(e,t,n,o){return d`

      ${e}

      ${L$({language:n,code:t,cssClasses:o})}
      `}var ESe={prompt:Zr,type:"oauth2",login:async e=>{await S$(e)},transform:e=>(Rn.value!==null&&e.headers.set("Authorization",`Bearer ${Rn.value.access_token}`),e)},k5e={prompt:t7,type:"APIKey",login:async()=>{},transform:e=>e};function ASe(e){return{oauth2:ESe,apiKey:k5e}[e]||ESe}var ISe=null,M$,wp;function PSe(){return wp=w.createElement("div"),wp.style.height="100%",wp.setAttribute("aria-live","polite"),wp.setAttribute("aria-atomic","true"),wp.tabIndex=-1,ISe=L5e(b.data.restAPIData),M$=ASe("oauth2"),I5e(wp),wp}async function I5e(e){e.contains(w.activeElement)&&e.focus(),await M$.login(e),P5e(e)}function P5e(e){let t=w.createElement("form");t.classList.add("rest-tryit-form");let n=w.createElement("div");n.classList.add("signin-section"),M5e(n),t.appendChild(n),e.insertAdjacentElement("afterbegin",t);let o=new ze;$5e(t,o,ISe),CSe(t,o),setTimeout(()=>{wp.setAttribute("aria-live","off")},0)}function L5e(e){let t={url:e.path,httpVerb:e.httpVerb,headers:[],params:[],body:e.requestBody};return(e.httpVerb==="PUT"||e.httpVerb==="POST"||e.httpVerb==="PATCH")&&t.headers.push({name:"Content-Type",value:"applicationhttps://www.microsoft.com/json",type:"string",in:"header",isRequired:!0,skipUrlEncoding:!1}),e.requestHeader.forEach(n=>{n.in==="header"&&t.headers.push({name:n.name,value:"",type:n.type,in:n.in,isRequired:n.isRequired,skipUrlEncoding:!1})}),e.uriParameters.forEach(n=>{(n.in==="path"||n.in==="query"||n.in==="formData")&&t.params.push({name:n.name,value:"",type:n.type,in:n.in,isRequired:n.isRequired,skipUrlEncoding:n.skipUrlEncoding})}),t}var kSe={light:"light",dark:"dark","high-contrast":"high-contrast"};function R5e(e){let t=C.authenticationMode==="AAD"?"org":"personal",n=w.getElementById("profile-icon");n&&(n.src=`/en-us/media/profile/${t}-account${kSe[e]==="light"?"":"-dark-highcontrast"}.svg?branch=live`);let o=w.getElementById("exit-icon");o&&(o.src=`/en-us/media/profile/fluent-arrow-exit-20-regular${kSe[e]==="light"?"":"-dark-hc"}.svg?branch=live`)}function M5e(e){ut.subscribe(xl,i=>R5e(i.currentTheme));let t=pd(),o=`/en-us/media/profile/${C.authenticationMode==="AAD"?"org":"personal"}-account${t==="light"?"":"-dark-highcontrast"}.svg?branch=live`,r=`/en-us/media/profile/fluent-arrow-exit-20-regular${t==="light"?"":"-dark-hc"}.svg?branch=live`,s=d`

      REST API ${fh}

      ${zae}


      ${C.upn}

      ${q0}

      ${Rn.value.display_name}

      `;x(s,e)}function $5e(e,t,n){let o=TSe(e,t,n,M$);e$(e),e.onsubmit=s=>{D5e(o,t,M$),s.preventDefault()};let r=s=>{let i=s.restTryItRequest,a=s.security,l=I$(i,a);hSe(l).then(c=>{bSe(c).then(u=>{t.publish(new Qy(u)),t.publish(new nf)}).then(()=>{let u=w.querySelector(".rest-tryit-form"),{scrollTop:p}=u,{height:m}=w.querySelector(".request-section").getBoundingClientRect();p>=m||P$(m,500,u)})}).catch(c=>{let u=e.querySelector('.request-section button[type="submit"]'),p=w.createElement("span");throw p.classList.add("border-none","color-danger","display-inline-block","font-size-medium","font-weight-semibold","padding-top-xxs"),p.textContent=Gae,u&&u.parentElement.append(p),t.publish(new nf),c})};t.subscribe(zS,r)}function D5e(e,t,n){e.classList.add("is-loading");let o={url:null,httpVerb:null,headers:[],params:[],body:null};t.publish(new ci(o)),gSe(e,n.type,N5e(o)),t.publish(new zS(o,n))}function N5e(e){return e.headers.concat(e.params).map(t=>({[t.name]:!!t.value.length}))}Mg();Rg({name:"http",activateButtonConfig:{name:fh,iconClass:"docon docon-play",attributes:[]},create:()=>({element:PSe(),setCode:()=>Promise.resolve(),execute:()=>Promise.resolve(),dispose:()=>{}})});async function F5e(){let e={};b.data.mathjax?.macros&&(e=b.data.mathjax.macros),B.MathJax={showMathMenu:!1,showMathMenuMSIE:!1,tex:{inlineMath:[["$","$"],["\\(","\\)"]],processEscapes:!0,macros:e}}}async function O5e(){let e="/static/third-party/MathJax/3.2.2/tex-mml-chtml.js";return w.querySelector(`script[src="http://approjects.co.za/?big=${e}"]`)?.remove(),Xi(e,"sha384-Wuix6BuhrWbjDBs24bXrjf4ZQ5aFeFWBuKkFekO2t8xFU0iNaLQfp2K6/1Nxveei")}async function tG(){(P("show_latex")==="true"||b.data.pageTemplate==="ModuleUnit")&&xe.then(F5e).then(O5e)}function LSe(){let e=R.reviewFeatures===!0&&(R.accessLevel==="local"||R.supportLevel==="development"&&R.accessLevel==="online"||Bt),t=document.querySelector("html");e&&t&&t.classList.add("show-deprecation-warning")}LSe();k();var eKt=new ze,RSe,MSe=!1,$Se,DSe,NSe,D$=0,$$=0,VS=0,nG=.125,oG=!1,U5e=d` 1% `;async function FSe(){if(!S.gamification||S.chromeless)return;await p$;let e=document.querySelector("#level-status-container"),t=document.querySelector("#level-status");!e||!t||(x(U5e,t),xe.then(()=>{C.whenAuthenticated().then(()=>{let n;b.data.pageTemplate==="Module"?n=new Sr("Commerce.Docs.LearnProgress_ModuleCompletion_AccessProgressModule"):b.data.pageTemplate==="LearningPath"?n=new Sr("Commerce.Docs.LearnProgress_ModuleCompletion_AccessProgressLearningPath"):b.data.pageTemplate==="ModuleUnit"&&(n=new Sr("Commerce.Docs.LearnProgress_ModuleCompletion_AccessProgressUnit")),n?.start(),$Se=document.querySelector("#level-status-text"),DSe=document.querySelector("#level-status-progress"),NSe=document.querySelector("#level-status-points");let o=t.querySelector("a");o!==null&&o.setAttribute("href",dn(C.userName)),n?.updateProgress("Fetching game status"),ky.getStatus(C.userId).then(r=>{n?.updateProgress("Fetched game status"),USe(r),MSe=!0,e.classList.remove("is-hidden"),n?.succeed()}).catch(r=>{n?.fail(r)})})}))}function q5e(e,t,n,o){e.currentLevel>RSe&&(oG=!0),RSe=e.currentLevel,H5e(t,e.currentLevel),B5e(n,e,MSe),G5e(o,e.currentLevelHigh-e.currentLevelLow,e.currentLevelPointsEarned)}function H5e(e,t){e&&(e.textContent=`${yX.replace("{number}",t.toString())}`)}function B5e(e,t,n){if(e){if($$=V5e(t.currentLevelHigh,t.currentLevelLow,t.currentLevelPointsEarned),e.textContent=`${$$}%`,!n){B.cancelAnimationFrame(D$),e.value=VS=$$;return}z5e(e)}}function z5e(e){D$||(D$=OSe(e))}function OSe(e){return oG||e.value<$$?(Math.floor(VS+nG)>=100&&(oG=!1),VS=VS+nG,e.value=Math.floor(VS+nG)%100,B.requestAnimationFrame(()=>{D$=OSe(e)})):0}function G5e(e,t,n){if(!e)return;let o=d`${n}/${LF.replace("{totalXP}",t.toString())}`;x(o,e)}function V5e(e,t,n){let o=e-t,r=n/o;return Math.floor(r*100)}function USe(e){S.chromeless||q5e(e,$Se,DSe,NSe)}Qe();async function qSe(){if(!b.data.isPermissioned)return;let e=j5e();e&&Jt(e)}function j5e(){return b.data.permissionedType==="secret"||b.data.permissionedType==="private"?$K:null}function Q5e(e,t){return d``}async function rf(e,t){let n=document.createElement("div");n.classList.add("modal-content");let o=new Te(n);return x(Q5e(e,t),n),o.show()}function HSe(e,t,n){b.data.isPermissioned&&e.addEventListener("click",function(o){o.preventDefault(),rf(t,n)})}function BSe(){let e=document.querySelector("[unauthorized-private-section]");e&&(e.hidden=!1,e.parentElement?.removeChild(e),Array.from(document.querySelectorAll("h1")).pop()?.insertAdjacentElement("afterend",e))}var ec,rG={},sG={},iG={},aG={},lG={},YS={};async function Y5e(){let e=R.supportLevel==="production"&&!Bt?"/country/countryRegion.json":"/test/country/countryRegion-dev.json",t=await $(e);if(!t.ok||t.status!==200)return[];try{return(await t.json()).countries}catch{return[]}}function QS(e,t,n){let o={};return e.forEach(r=>{let s=r[t],i=r[n];o[s]=i}),o}function W5e(e){let t={};return e.forEach(n=>{if(n.statesOrProvinces?.length>0){let o={};n.statesOrProvinces.forEach(r=>{o[r.code]=r.displayName}),t[n.ISOAlpha3Code]=o}}),t}async function zSe(){if(!(ec&&ec.length>0)&&(ec=await Y5e(),!!ec))return rG=QS(ec,"ISOAlpha2Code","displayName"),sG=QS(ec,"ISOAlpha2Code","phoneCountryCode"),iG=QS(ec,"ISOAlpha3Code","displayName"),aG=QS(ec,"ISOAlpha3Code","ISOAlpha2Code"),lG=QS(ec,"ISOAlpha2Code","ISOAlpha3Code"),YS=W5e(ec),Promise.resolve()}k();var cG,GSe=()=>(cG===void 0&&(cG=Ag()),cG);k();function uG(e){return e.slice(-2).toUpperCase()}function J5e(e,t){let n=uG(e);return t.length===2?n===t:t.length===3?n===aG[t]:!1}function Wy(e,t,n){let o=[],r=b.data.userLocale;for(let s in e){let i=J5e(r,s),a=s,l=e[s];t==="phone"&&n&&(a=e[s],l=`${n[s]} (+${e[s]})`),o.push(d``)}return o.length===0&&o.push(d``),o}k();function VSe(){window.addEventListener("form-validating",e=>{let t=WS(e.detail.form),n=F$(t);e.detail.errors?.length>=0&&(mG(e.detail.form,e.detail.errors),X5e(e.detail.form,e.detail.errors),eGe(e.detail.form,e.detail.errors),Z5e(e.detail.form,e.detail.errors),lGe(e.detail.form,e.detail.errors),aGe(e.detail.form,e.detail.errors),uGe(e.detail.form,e.detail.errors),dGe(e.detail.form,e.detail.errors)),t&&!t.querySelector("[data-warning-icon-container]")&&N$(t),n&&dG(n)}),window.addEventListener("clear-validation-errors",e=>{let t=e.detail.target;KS(t)}),window.addEventListener("submission-error",e=>{let t=WS(e.detail.form);rGe(e.detail.request,e.detail.response,e.detail.form),sGe(e.detail.request,e.detail.response,e.detail.form),N$(t),cGe(e.detail.request,e.detail.response,e.detail.form)})}function Z5e(e,t){let n=e.querySelector("#employee-attestation");n&&!n.checked&&t.filter(o=>o.input===n).length===0&&(Er(n,E2),tc(e,t,n,E2))}function X5e(e,t){let n=e.querySelector("[data-tag-input]");if(n&&t.filter(o=>o.input===n).length===0){let o=tGe(n),r=cr(n).querySelector("[data-tag-input-holder]");o&&(tc(e,t,n,o,r),Er(r,o));let s=nGe(n);s&&s.length>0&&s.forEach(i=>{tc(e,t,n,i,r),Er(r,i)})}}function eGe(e,t){let n=e.querySelector("#attachment-count");if(n&&t.filter(o=>o.input===n).length===0){let o=oGe(n),r=cr(n);if(o){let s=r.querySelector('[data-id="docs-markdown-editor"]'),i=r.querySelector("#markdown-editor");tc(e,t,n,o,s??void 0,i?.id??void 0),QSe(n,o)}}}function N$(e){if(!e.querySelector(".docon-status-warning-outline-rounded")){let n=document.createElement("span");n.classList.add("docon","docon-status-warning-outline-rounded","margin-right-xxs"),n.ariaHidden="true",n.setAttribute("data-warning-icon-container",""),e.prepend(n)}}function dG(e){e.querySelectorAll("a").forEach(t=>t.classList.add("text-decoration-underline","has-line-height-reset"))}function tGe(e){let t=e.getAttribute("minTags"),n=e.getAttribute("maxTags"),o=e.value===""?0:e.value.split(",").length;if(!t||!n)return null;if(!o||oNumber(n)){let r=rN(e);return`${ple.replace("{min}",t).replace("{max}",n).replace("{tagLabel}",r.toLocaleLowerCase())}`}return null}function nGe(e){let t=e.value.split(","),n=[];for(let o of t){let r=document.getElementById(o);if(!r)continue;let s=r.innerText;r.getAttribute("active")!=="false"||n.push(`${mle.replace("{tagLabel}",s)}`)}return n.length>0?n:null}function oGe(e){if(e instanceof HTMLInputElement){let t=e.getAttribute("maxCount"),n=Number(e.value);if(t&&n&&n>Number(t))return ste.replace("{maximumCount}",t)}return null}async function rGe(e,t,n){if(t.status===412&&e.url.includes("api/question"))try{if((await t.json()).code==="processed-attachment-failure"){pG(n);let o=[],r=n.querySelector("#attachment-count"),s=n.querySelector('textarea[name="body"]');Er(s,p2),tc(n,o,r,p2,cr(r).querySelector('[data-id="docs-markdown-editor"]')??void 0)}}catch{}}async function sGe(e,t,n){if(t.status===400&&e.url.includes("api/question"))try{if((await t.json()).errorCode==="processed-user-mention-failure"){pG(n);let o=[],r=n.querySelector('textarea[name="body"]'),s=ite.replace("{maximumCount}","10");Er(r,s),tc(n,o,r,s,n.querySelector("#markdown-editor")??void 0)}}catch{}}function WS(e){return e.querySelector("[data-form-error-alert]")??null}function F$(e){return e.querySelector("ul")??null}function pG(e){let t=e.querySelector("[data-form-error-alert] > ul");t&&(t.innerHTML="")}function tc(e,t,n,o,r,s,i){if(t.find(m=>m.message===o))return;let a=jSe(e),c=n.hasAttribute("data-tag-input")?n.parentElement?.querySelector("input.autocomplete-input")?.id:n.id;cr(n).classList.add("errored");let p=document.createElement("a");p.href=`${i?"":"#"}${s||c}`,p.textContent=o,p.classList.add("help","help-danger","text-decoration-underline","has-line-height-reset"),a.append(p),r?.classList.add("border","border-color-danger"),t.push({input:n,message:o})}function jSe(e){let t=WS(e),n=F$(t),o=document.createElement("li");return o.classList.add("margin-bottom-xs"),t&&n&&(n.appendChild(o),t.hidden=!1,t.focus(),t.scrollIntoView()),o}function QSe(e,t){let o=cr(e).querySelector("[data-field-error-custom]")||iGe(e);o.textContent=t}function iGe(e){let t=document.createElement("p");return t.id=tt(),e.setAttribute("aria-describedby",`${t.id} ${e.getAttribute("aria-describedby")||""}`),t.classList.add("help","help-danger"),t.setAttribute("data-field-error-custom",""),Pf(e).after(t),t}function KS(e){if(e instanceof HTMLInputElement){let t=cr(e),n=e.hasAttribute("data-tag-input"),o=t.querySelector("docs-markdown-editor"),r=e.getAttribute("type")==="email";if(n){let s=t.querySelector("[data-tag-input-holder]");s&&s.classList.remove("border","border-color-danger")}if(o){let s=t.querySelector('[data-id="docs-markdown-editor"]');s&&s.classList.remove("border","border-color-danger")}r&&t.querySelector("[type=email]")?.classList?.remove("border","border-color-danger"),QSe(o??e,""),t.classList.remove("errored")}}function aGe(e,t){let n=e.querySelector("#question-body"),o=document.querySelector("docs-markdown-editor")?.parentElement,r=t.filter(s=>s.input===n);if(r&&r.length>0&&o){let s=e.querySelector('[data-form-error-container] a[href="http://approjects.co.za/?big=#question-body"]');if(s){s.addEventListener("click",()=>{setTimeout(()=>{window.location.hash="markdown-editor",o.focus()},0)});let i=e.querySelector('[data-id="docs-markdown-editor"]');i&&i.classList.add("border","border-color-danger")}}}function lGe(e,t){let n=e.querySelector('textarea[name="body"]');if(!n)return;let o=n.value.match(/(?:!\[(.*?)\]\((.*?)\))/gm);if(!o)return;let r=!1,s=[],i=[".microsoft.com/",".githubusercontent.com/",".github.com/","azure.net/",".azureedge.net/",".windows.net/",".office.net/",".visualstudio.com/",".linkedin.com/",".imgur.com/",".giphy.com/"],a=new RegExp("https?://.*.(?:png|jpg|jpeg|gif|svg|webp)","gi");if(o.forEach(l=>{let c=l.match(a);c&&!i.some(u=>c[0].includes(u))&&(r=!0,s.push(c[0]))}),r){let l=cr(n);tc(e,t,n,Iie.replace("{urls}",s.join(", ")),l.querySelector('[data-id="docs-markdown-editor"]')??void 0,"https://learn.microsoft.com/en-us/answers/support/attachments#inserting-images-from-the-web",!0)}}async function cGe(e,t,n){if(n&&t.status===422&&e.url.includes("api/questions/admin/users"))try{if((await t.json()).errorCode==="validation-failure"){pG(n);let o=e.url.includes("/suspend")?ate:lte,r=jSe(n);r.innerText=o}}catch{}}async function uGe(e,t){if(!e?.getAttribute("data-suspended"))return;let o=e.querySelector('textarea[name="body"]');tc(e,t,o,cte,void 0,"https://aka.ms/msftqacodeconduct",!0)}function mG(e,t){let n=e.querySelector("input[type=email]");n&&n.validity.typeMismatch&&(Er(n,m2),tc(e,t,n,m2,n))}function dGe(e,t){let n=e.querySelector('input[data-lang*="en-"]'),o=b.data.userLocale||"en-us";if(!n||!o.startsWith("en-"))return;/[^\p{M}|\p{N}|\p{S}|\p{P}|\p{Z}|\p{C}|\p{Script=Latin}|\p{Emoji_Presentation}]/gu.test(n.value)&&(Er(n,g2),tc(e,t,n,g2,n))}k();function pGe(e){let t=e.metadata.map(n=>d``);return d`${t}`}function YSe(e){let t=d`
      ${pGe(e)}
      `,n=document.createElement("div");x(t,n),document.body.appendChild(n),document.getElementById("pearson-vue-hidden-redirect-form").submit()}k();function Wa(e){return document.getElementById(e).value}function Ky(e,t,n,o,r="text",s=50,i=0){return d`
      `}function gG(e,t,n){return d`
      `}function fG(e){return d`
      ${e}
      `}var mGe=()=>{let n=new URL(window.location.href).searchParams.get("examUrl")||"";n?location.href=rs(n).toString():window.history.back()};function WSe(){let e=uG(b.data.userLocale),t=lG[e],n=YS[t];return d`

      ${Z7}

      ${X7}

      ${ma}

      ${Ky("address1",sj,bN,!0,"text",40)}
      ${Ky("address2",ij,bN,!1,"text",40)}
      ${Ky("city",aj,dj,!0,"text",32)}
      ${gG("state",lj,Wy(n,"country"))}
      ${gG("countryRegion",jv,Wy(iG,"country"))}
      ${Ky("postalCode",cj,pj,!0,"text")}

      ${F(ej)}

      ${gG("phoneCountryCode",uj,Wy(sG,"phone",rG))}
      ${Ky("phoneNumber",qee,mj,!0,"tel")}
      ${Ky("contactEmail",YN,gj,!0,"email",255,6)}

      ${tj}

      ${nj}

      ${oj}


      ${F(rj)}

      `}function gGe(e){return d`
      ${e}
      `}function hG(e,t){t&&x(gGe(e),t)}var KSe=!0;function JSe(e){window.addEventListener("form-validating",o=>{CGe(o.detail.errors),KSe=o.detail.errors.length===0}),e.addEventListener("beforesubmit",async o=>{if(!KSe){o.preventDefault();return}let r=o.detail.form.querySelector("#schedule-pearson-submit");o.detail&&(o.preventDefault(),o.detail.callback=async()=>{r?.classList.add("is-loading");try{await hGe(o)}catch{let i=o.detail.form.querySelector("#ms--error-container");hG(Kr,i)}finally{r?.classList.remove("is-loading")}})}),window.addEventListener("clear-validation-errors",o=>{let r=o.detail.target;KS(r)});let t=document.getElementById("countryRegion"),n=document.getElementById("state");t.addEventListener("change",()=>{let o=Wa("countryRegion"),r=YS[o];x(Wy(r,"country"),n)})}function fGe(e){let t=/^exam\.(.+)$|^(.+)$/,n=e.match(t);return n?n[1]||n[2]:""}async function hGe(e){let n=new URL(window.location.href).searchParams,o=n.get("examUrl")||"",r=n.get("examUid")||"",s=n.get("locale")||P("locale")||"en-us",i=n.get("action")||"",a={address1:Wa("address1"),address2:Wa("address2"),city:Wa("city"),state:Wa("state"),countryRegion:Wa("countryRegion"),postalCode:Wa("postalCode"),phoneCountryCode:Wa("phoneCountryCode"),phoneNumber:Wa("phoneNumber"),contactEmail:Wa("contactEmail")},l=i?{addressInfo:a,returnUrl:"placeholder",locale:"en-us",examUid:"placeholder"}:{addressInfo:a,returnUrl:o,locale:s,examUid:fGe(r)},c=Zn(),u=N.certification.pvuetransfer,p={...e.detail.init,body:JSON.stringify(l),headers:{Authorization:`Bearer ${c}`,"Content-Type":"applicationhttps://www.microsoft.com/json"}},m=e.detail.form.querySelector("#ms--error-container"),g=Kr;try{let f=await fetch(u,p);if(!f.ok)f.status===400&&(g=$Z),hG(g,m);else{let _=await f.json();YSe(_)}}catch{hG(g,m)}}var bGe=new RegExp("^[\\x20-\\x21\\x23-\\x3B\\x3F-\\x5B\\x5D-\\x7F]+$"),_Ge=new RegExp("^[0-9]{5}([0-9]{4})?$"),yGe=new RegExp("^[A-Za-z][0-9][A-Za-z][0-9][A-Za-z][0-9]$"),vGe=new RegExp("^(['A-Za-z0-9]+(([_.\\-+]*)|(\\.)))*['.A-Za-z0-9_-]+@([A-Za-z0-9]+(([_.\\-+]*)|(\\.)))*[A-Za-z0-9]\\.[a-zA-Z]{2,12}$"),xGe=new RegExp("^(?!0*$)[0-9]*$"),TGe=new RegExp("^(?!0*$)\\d{3}\\d{3}\\d{4}$"),wGe=new RegExp("^[^.].*[^.]$|^$");function SGe(e,t){return e?t.test(e):!0}function JS(e,t,n,o,r){if(!SGe(e,n)){let i=`${o.replace("{inputLabel}",document.querySelector(`label[for="${t.id}"]`)?.textContent||"")}`;Er(t,i),EGe(r,t,i)}let s=`${go} ${o}`;pt(s,"assertive")}function CGe(e){let t=document.getElementById("address1"),n=document.getElementById("address2"),o=document.getElementById("city"),r=document.getElementById("postalCode"),s=document.getElementById("phoneNumber"),i=document.getElementById("contactEmail"),a=document.getElementById("phoneCountryCode"),l=document.getElementById("countryRegion");[t,n,o].forEach(p=>JS(p.value,p,bGe,MZ,e)),JS(s.value,s,a.value==="1"?TGe:xGe,FZ,e),JS(r.value,r,l.value==="USA"?_Ge:l.value==="CAN"?yGe:/.*/,l.value==="USA"?DZ:l.value==="CAN"?NZ:"",e),JS(i.value,i,vGe,IZ,e),[t,n,o,r,s,i].forEach(p=>JS(p.value,p,wGe,eA,e))}function EGe(e,t,n){e.find(o=>o.message===n)||e.push({input:t,message:n})}function AGe(e){try{return e.origin.includes("microsoft")}catch{return!1}}function kGe(e,t){let n=t.get("examUid"),o=t.get("examUrl");return!!(n&&o&&AGe(e))}function IGe(e,t){return!!t.get("action")}function ZSe(e=new URL(location.href)){let t=new URLSearchParams(e.search);return kGe(e,t)||IGe(e,t)}function XSe(e,t){let n=new URL(dn("me","settings")),o=P("locale")||"en-us",r=ce(n.search),s=new URLSearchParams({examUrl:e,examUid:t,locale:o,context:"exam",...r});return n.search=s.toString(),n.toString()}async function PGe(){if(await GSe(),!C.legalName?.first){let e=new URLSearchParams(location.search),t=e.get("examUid")||"",n=e.get("examUrl")||"";return location.href=XSe(n,t),!0}return!1}async function LGe(){return ve.then(async()=>C.isAuthenticated?await PGe()?Promise.reject():fG(WSe()):(Un(location.href),Promise.reject()))}async function eCe(){if(!P("scheduleThroughPearsonVue"))return;let t=document.querySelector("[data-main-column]");if(!t)return;await zSe();let n=window.location.origin;if(!ZSe()){location.href=`${n}/credentials`;return}let o=Lo(await LGe(),fG(d`${Dt}`));x(o,t);let r=document.getElementById("pearson-vue-registration");r&&JSe(r)}var O$="image-browser-close-event";function tCe(e,t){let o={horizontal:0,vertical:0};t.addEventListener("keypress",r=>{r.which===Re.enter&&(r.preventDefault(),e.toggleExpand())}),t.addEventListener("keydown",r=>{let s=r.which||r.keyCode;switch(s){case Re.left:r.preventDefault(),o.horizontal=1;break;case Re.right:r.preventDefault(),o.horizontal=-1;break;case Re.up:r.preventDefault(),o.vertical=1;break;case Re.down:r.preventDefault(),o.vertical=-1;break}[Re.left,Re.right,Re.up,Re.down].indexOf(s)>-1&&e.panViewport(5*o.horizontal,5*o.vertical)}),t.addEventListener("keyup",r=>{switch(r.which||r.keyCode){case Re.left:r.preventDefault(),o.horizontal=0;break;case Re.right:r.preventDefault(),o.horizontal=0;break;case Re.up:r.preventDefault(),o.vertical=0;break;case Re.down:r.preventDefault(),o.vertical=0;break}})}var Ka={dragging:!1,prevX:0,prevY:0},U$=null;function nCe(e,t){U$=U$||(n=>{if(e.state.expanded)if(n.buttons%2){n.preventDefault(),Ka.dragging=!0;let o=n.movementX||!isNaN(Ka.prevX)?n.screenX-Ka.prevX:0,r=n.movementY||!isNaN(Ka.prevY)?n.screenY-Ka.prevY:0;e.panViewport(o,r)}else Ka.dragging&&setTimeout(()=>{Ka.dragging=!1},0);else Ka.dragging=!1;Ka.prevX=n.screenX,Ka.prevY=n.screenY}),w.removeEventListener("mousemove",U$),w.addEventListener("mousemove",U$),t.addEventListener("dragstart",n=>{n.preventDefault()}),t.addEventListener("click",n=>{Ka.dragging||(n.preventDefault(),e.toggleExpand(n.offsetX,n.offsetY))})}var oCe=`
      `;function rCe(e,t){let n={touches:[]};t.addEventListener("touchstart",o=>{e.state.expanded&&(o.preventDefault(),Array.from(o.changedTouches).forEach(({identifier:r,screenX:s,screenY:i})=>{n.touches.push(Object.assign({},{identifier:r,screenX:s,screenY:i}))}))}),t.addEventListener("touchmove",o=>{if(e.state.expanded){o.preventDefault();let r=n.touches.map(l=>l.identifier),s=Array.from(o.changedTouches).filter(l=>l.identifier===n.touches[0].identifier);if(!s[0])return;let i=s[0].screenX-n.touches[0].screenX,a=s[0].screenY-n.touches[0].screenY;Array.from(o.changedTouches).forEach(l=>{let c=r.indexOf(l.identifier);c>=0&&(n.touches[c]=Object.assign({},{identifier:l.identifier,screenX:l.screenX,screenY:l.screenY}))}),e.panViewport(i,a)}}),t.addEventListener("touchend",o=>{let r=n.touches.map(s=>s.identifier);Array.from(o.changedTouches).forEach(({identifier:s})=>{n.touches.splice(r.indexOf(s),1)})})}function sCe(e,t,n){let o=Math.max(e,t);return Math.min(n,o)}var q$=class{constructor(){this.imageElement=null;this.imageContainer=null;this.state={expanded:!1}}open(t,{url:n,alt:o}){return new Promise(s=>{t.innerHTML=oCe,this.imageContainer=t.querySelector("div"),this.imageElement=t.querySelector("#image-browser-image"),!(!this.imageContainer||!this.imageElement)&&(this.imageContainer.dir="ltr",this.imageElement.style.opacity="0",this.imageElement.style.transformOrigin="0 0",this.imageElement.addEventListener("error",()=>{}),this.imageElement.addEventListener("load",()=>{!this.imageContainer||!this.imageElement||(this.imageElement.classList.add("image-browser-expandable"),this.imageElement.style.width="",this.imageElement.style.height="",this.imageContainer.classList.add("image-browser-transition"),this.imageContainer.addEventListener("transitionend",()=>{this.imageContainer?.classList.remove("image-browser-transition")}),this.imageElement.style.opacity="1",this.imageElement.parentElement&&(tCe(this,this.imageElement.parentElement),nCe(this,this.imageElement.parentElement),rCe(this,this.imageElement.parentElement)),B.addEventListener("resize",()=>{this.state.expanded&&this.panViewport(0,0)},{passive:!0}),s(null))}),this.imageElement.src=n,this.imageElement.alt=o)})}close(){B.dispatchEvent(new CustomEvent(O$,{detail:{image:this.imageElement?.src}}))}toggleExpand(t=0,n=0){if(!(!this.imageContainer||!this.imageElement))if(this.state.expanded)this.imageElement.style.transform="",this.imageElement.classList.remove("image-browser-pannable"),this.imageElement.classList.add("image-browser-expandable"),this.imageContainer.style.width="",this.imageContainer.style.height="",this.state.expanded=!1;else{this.imageContainer.style.width=`${this.imageElement.clientWidth}px`,this.imageContainer.style.height=`${this.imageElement.clientHeight}px`;let o=t/this.imageElement.clientWidth,r=n/this.imageElement.clientHeight,{naturalWidth:s,naturalHeight:i}=this.imageElement,a=Math.round(o*s),l=Math.round(r*i);this.state.expanded=!0,this.imageElement.classList.add("image-browser-pannable"),this.imageElement.classList.remove("image-browser-expandable");let c=a-this.imageContainer.clientWidth/2,u=l-this.imageContainer.clientHeight/2,p=sCe(0,c,s-this.imageContainer.clientWidth),m=sCe(0,u,i-this.imageContainer.clientHeight);this.state.translationX=-1*p,this.state.translationY=-1*m,this.imageElement.style.transform=`translate(${this.state.translationX}px, ${this.state.translationY}px)`}}panViewport(t,n){if(!(!this.imageContainer||!this.imageElement)&&this.state.expanded){let o=this.state.translationX??0,r=this.state.translationY??0;this.state.translationX=Math.min(0,Math.max(this.imageElement.naturalWidth*-1+this.imageContainer.clientWidth,o+t)),this.state.translationY=Math.min(0,Math.max(this.imageElement.naturalHeight*-1+this.imageContainer.clientHeight,r+n)),this.imageElement.style.transform=`translate(${this.state.translationX}px, ${this.state.translationY}px)`}}};function iCe(){B.addEventListener(O$,e=>{let t=e.detail;Se({behavior:me.REDUCE,actionType:Ee.CLICKLEFT,content:{type:"lightbox-close",image:t.image}})})}function bG(e){iCe();let t="lightbox-enabled",n=Array.from(e.querySelectorAll('a[href$="#lightbox"]')),o=new q$;n.forEach(r=>{r.classList.add(t),r.setAttribute("data-bi-name","lightbox"),r.setAttribute("aria-haspopup","dialog"),Ht(r,"click",s=>{s.preventDefault();let i=document.createElement("div");i.classList.add("modal-content"),o.open(i,{url:r.href,alt:r.querySelector("img")?.alt??""}),new Te(i).show().then(()=>o.close()),i.insertAdjacentHTML("afterend",``)})})}k();var MGe=()=>`/${b.data.userLocale}${R.reviewFeatures?"/test/challenges":"/challenges"}`;function lo(e,t,n,o){let r=new URL(location.href),s=new URLSearchParams(r.search),i=r;if(i.pathname=`${MGe()}/${e}${t?`/${t}`:""}`,n){let a=new URLSearchParams(n);for(let[l,c]of a)i.searchParams.set(l,c)}return o&&(i.hash=o),s.has("preview")&&i.searchParams.set("preview",s.get("preview")??""),i.href}function aCe(){let e=document.getElementById("challenge-end-date"),t=document.getElementById("challenge-start-date"),n=document.getElementById("challenge-end-time"),o=document.getElementById("challenge-start-time"),r=document.getElementById("copy-challenge-form");return r&&(e=r.querySelector("#challenge-end-date"),t=r.querySelector("#challenge-start-date"),n=r.querySelector("#challenge-end-time"),o=r.querySelector("#challenge-start-time")),t&&e&&o&&n?{startDate:t,startTime:o,endDate:e,endTime:n}:null}function _G(e=!0){let{startDate:t,endDate:n}=aCe()||{};if(!(t&&n))return;let o=new Date(t.value);n.min=o.toISOString().split("T")[0],t.value&&n.value&&n.valued``)}var lCe=b.data.userLocale,DGe=bt(),sf={async getChallenges(e,t,n=0,o=6){let r=`${N.lists}/challenge/${e}/${t}?${pe({page:n+1,pageSize:o,locale:lCe})}`,i=J(r,{method:"GET"}),a=await $(i);return he(a),a.ok?await a.json():null},async getChallenge(e){let t=`${N.lists}/challenge/${e}`,o=J(t,{method:"GET"}),r=await $(o);return he(r),r.ok?await r.json():null},async getChallengeStatistics(e){let t=`${N.lists}/challenge/${e}/statistics`,o=J(t,{method:"GET"}),r=await $(o);return he(r),r.ok?await r.json():null},async getChallengeLeaderboard(e,t=0,n=5){let o=`${N.lists}/challenge/${e}/leaderboard?${pe({page:t+1,pageSize:n})}`,s=J(o,{method:"GET"}),i=await $(s);return he(i),i.ok?await i.json():null},getChallengeCsv(e){return`${N.lists}/challenge/${e}/csv`},async createNewChallenge(e){let t=`${N.lists}/challenge`,o={method:"POST",body:JSON.stringify(e)},r=await $(J(t,o));if(he(r),r.ok){let s=await r.json();return Tr(s.contentList),{hasError:!1,data:s}}return r.status===400?{hasError:!0,error:await r.json()}:null},async updateChallenge(e,t){let n=`${N.lists}/challenge/${e}`,r={method:"PATCH",body:JSON.stringify(t)},s=await $(J(n,r));if(he(s),s.ok){let i=await s.json();return Tr(i.contentList),{hasError:!1,data:i}}return s.status===400?{hasError:!0,error:await s.json()}:null},async updateChallengeList(e,t){let n=`${N.lists}/challenge/${e}/list`,r={method:"PATCH",body:JSON.stringify(t)},s=await $(J(n,r));if(he(s),s.ok){let i=await s.json();return Tr(i.contentList),{hasError:!1,data:i}}return s.status===400?{hasError:!0,error:await s.json()}:null},async deleteChallenge(e){let t=`${N.lists}/challenge/${e}`,n=await $(J(t,{method:"DELETE"}));if(he(n),!n.ok)throw new Error(`${n.status}: ${n.statusText}`)},async joinOrLeaveChallenge(e,t){let n=`${N.lists}/challenge/${e}/${t}`,o=J(n,{method:"POST"},!0,!1),r=await $(o);return he(r),r.ok?{}:null},async getFacetProducts(){let e={branch:DGe,locale:lCe,facet:"products"},t=`${N.browse.learn}?${pe(e,!0)}`,o=await $(J(t,{method:"GET"}));if(o.ok){let r=await o.json();return!r||!r.facets||!r.facets.products?[]:r.facets.products}if(o.status===400){let r=await o.json();throw new Error(`${r.errorCode}: ${r.message}`)}return null}};k();k();k();k();var ir=ur(e=>t=>{t.setValue(e)});function vG({origin:e,protocol:t,hostname:n,port:o}){return e||(t&&n?`${t}//${n}${o&&o!=="443"&&o!=="80"?":"+o:""}`:location.origin)}k();var son=6*60*60*1e3,FGe,ion=new Promise(e=>FGe=e);function cCe(e,{compareOrigin:t}={compareOrigin:!0}){let n=e.target instanceof HTMLElement&&e.target.closest("a"),o=!!n&&vG(n)===te.origin;return!n||e.altKey||e.ctrlKey||e.metaKey||e.shiftKey||n.target&&n.target!==window.name&&n.target!=="_self"||n.href.lastIndexOf("javascript:")===0||n.hasAttribute("download")?{anchor:n,shouldHandle:!1,differentOrigin:!o}:t&&!o||o&&n.classList.contains(pu)||o&&/^#lightbox/.test(n.hash)||o&&n.closest("#docs-admin-editor .ProseMirror")||n.classList.contains("following-user-profile")?{anchor:n,shouldHandle:!1,differentOrigin:!o}:{anchor:n,shouldHandle:!0,differentOrigin:!o}}function uCe(){let e=document.createElement("progress");return e.classList.add("position-fixed","top-0","left-0","right-0","margin-bottom-none","progress-bar"),e.setAttribute("max","100"),e.style.zIndex="10",document.body.insertAdjacentElement("afterbegin",e),e}var TG=class{constructor(){this.referrerStack=[];this.finished=Promise.resolve();this.handleClick=t=>{let{shouldHandle:n,anchor:o}=cCe(t);if(!n||!o.href)return;let r=new URL(o.href);this.delegate.canHandle(r)&&(t.preventDefault(),this.preserveBranch(this.currentUrl,r),this.navigateInternal(r,!0))};this.handlePopstate=()=>{let t=new URL(te.href);this.routeChanged(t,this.currentUrl)?(this.referrerStack.pop(),this.navigateInternal(t,!1)):this.currentUrl=t};this.routeChanged=(t,n)=>{let o=t.pathname===n.pathname;for(let r of this.delegate.params)o=o&&t.searchParams.get(r)===n.searchParams.get(r);return!o}}enable(t,n=new URL(te.href)){this.delegate=t,this.currentUrl=n,B.addEventListener("click",this.handleClick,!0),B.addEventListener("popstate",this.handlePopstate)}disable(){this.delegate=null,B.removeEventListener("click",this.handleClick,!0),B.removeEventListener("popstate",this.handlePopstate)}get enabled(){return!!this.delegate}async finishNavigating(){await this.finished}goto(t,n){if(!this.delegate)throw new Error("Router is not enabled.");if(t.origin!==te.origin)throw new Error("Cross-origin navigation is not permitted");if(!this.delegate.canHandle(t))throw new Error(`Router delegate cannot handle "${t.href}".`);return this.preserveBranch(this.currentUrl,t),this.navigateInternal(t,n==="pushState")}preserveBranch(t,n){(R.supportLevel==="production"&&R.reviewFeatures||R.supportLevel==="development"&&R.accessLevel==="online")&&xG(["branch","themebranch","api-branch"],t,n),xG(["preview"],t,n),xG(["variant"],t,n)}navigateInternal(t,n){let o=async()=>{lR.splice(0,lR.length).forEach(a=>a()),ut.publish(new Eh(t));let s=uCe(),i=await this.delegate.handle(t);w.title=i.title,n?(Ko.pushState(void 0,i.title,i.url.href),this.referrerStack.push(i.url)):Ko.replaceState(void 0,i.title,i.url.href),B.scrollTo(0,0),ZS(t.hash),ut.publish(new bn(i.title,i.url,this.currentUrl)),s.remove(),this.currentUrl=t},r=this.finished.then(o);return this.finished=r.catch(()=>{}),r}},Rs=new TG;function xG(e,t,n){for(let o of e){let r=t.searchParams.get(o);r&&n.searchParams.set(o,r)}}function ZS(e){if(e.length<2)return;let t=w.body.querySelector(e);t&&t.scrollIntoView({block:"start",inline:"nearest",behavior:"smooth"})}function na(e){Array.from(e.querySelectorAll("[data-label]")).forEach(t=>{t.hidden=!0})}function Mn(e,t){let n=e.querySelector(`[data-label="${t}"]`);n!==null&&(n.hidden=!1)}function Hn(e,t,n,o=B.location,r=b.data.userLocale,s){if(e=e.toLowerCase(),n&&!(t==="collections"||t==="training"||t==="achievements"||t==="transcript"||t==="certifications"||t==="credentials"||t==="challenges"||t==="settings"&&n==="interests"))throw new Error(`Detail url component is not supported in ${t} section.`);let i=new URL(o.origin+o.pathname+o.search).searchParams;i.delete("id");let a=i.toString();a=a.length?"?"+a:"";let l;return t&&t!=="activity"?l=new URL(`/${r}/users/${e}/${t}${n?`/${n}`:""}${s?`/${s}`:""}${a}`,o.origin):l=new URL(`/${r}/users/${e}/${a}`,o.origin),l}function Cu(e){if(!e)throw new Error("The Collection ID does not exist and no linking URL will be created.");let t=new URL(te.origin+te.pathname+te.search).searchParams,n=`/${b.data.userLocale}/${R.reviewFeatures?"test/":""}collections/${e}`;return new URL(n+"?"+t.toString(),te.origin)}function wG(e){if(!e)throw new Error("The Plan ID does not exist and no linking URL will be created.");let t=new URL(te.origin+te.pathname+te.search).searchParams,n=`/${b.data.userLocale}/${R.reviewFeatures?"test/":""}plans/${e}`;return new URL(n+"?"+t.toString(),te.origin)}function SG(){return d`

      ${zu}

      `}function _t(e){return e==null||e instanceof Array&&e.length===0||e===""||typeof e=="number"&&isNaN(e)}function B$(e,t){return d`

      ${t?.htmlMessage?F(e.replace(t.htmlMessage.replaceTarget,t.htmlMessage.replaceWith)):e}

      `}function mCe(e){return B$(e?TN:tee,e?void 0:{htmlMessage:{replaceTarget:"{link}",replaceWith:`${zl?"/test":""}/training/browse/`}})}k();async function z$(e,t){let n=e.elements.namedItem("collection-title").value,o=e.elements.namedItem("collection-description").value,r=e.elements.namedItem("collection-privacy-checkbox").checked;e.querySelector("button[type=submit]").classList.add("is-loading"),na(e);try{let s=await Wxe({type:"collection",name:n,description:o,items:t,isPrivate:r});return gCe(s,e)}catch(s){let i=s;return gCe({hasError:!0,error:{errorCode:await rm(i)||"UnexpectedError",message:i.message||""}},e)}}function gCe(e,t){if(e.hasError===!0){let n=t.querySelector("button[type=submit]");n&&n.classList.remove("is-loading");let{errorCode:o}=e.error;return o==="UnexpectedError"?Mn(t,"somethingWentWrong"):UGe(o,t),{hasError:!0}}return{hasError:!1,data:e.data}}function UGe(e,t){let n=t.elements.namedItem("collection-title"),o=t.elements.namedItem("collection-description");switch(e){case"InvalidBody":case"MissingType":return;case"InvalidTitle":n.setCustomValidity(Mu),n.reportValidity();return;case"InvalidDescription":o.setCustomValidity(Bv),o.reportValidity();return;case"DuplicateTitle":let r=DE.replace("{title}",n.value);n.setCustomValidity(r),n.reportValidity();return;default:return}}function XS(e,t,n,o,r,s=xc,i=!0,a=!1,l="",c=""){return d`

      ${e}

      ${tK}

      ${fo}
      `}var G$=[],af={};function fCe(e,t,n,o="collection",r=()=>{}){return af={},d``}async function qGe(e,t,n){let o=document.createElement("div");o.classList.add("modal-content");let r=mW.replace("{userDisplayName}",C.displayName).replace("{index}",(n+1).toString()),i=d``;return x(i,o),o.querySelector("button[type=submit]").onclick=async()=>{await HGe(e,t)},o}async function CG(e,t,n){let o=[],r="",s=[];if(n==="plan"){try{s=await Yxe()}catch{s=[]}o=s?.map(m=>m.contentList)??[],r=ase}else if(n==="challenge")o=(await sf.getChallenges("created","all",0,100))?.challenges.filter(f=>!f.earlyRegistrationEnabled&&new Date(f.starts)>new Date)?.map(f=>f.contentList)||[],r=lQ;else{let m=await Qxe(g=>g.type==="collection"||g.type==="bookmarks");m===null?r=zu:(o=m??[],r=dle)}let i=o.length===0,a=e.querySelector("#collections"),l=e.querySelector("#save-collection");if(l&&l.hasAttribute("data-autofocus")&&l.removeAttribute("data-autofocus"),i){let m=d`

      ${r}

      `;return l&&(l.setAttribute("data-autofocus","data-autofocus"),(n==="plan"||n==="challenge")&&l.setAttribute("disabled","disabled")),x(m,a),[]}let c;try{let m=await mt.getAllListsByUrl([t]);m.hasError===!1&&(c=m.data)}catch{c=void 0}let u=c&&c.length>0?c[0]?.lists.filter(m=>n==="plan"?!_t(m.skillingPlanId)&&o.find(g=>g.skillingPlanId===m.skillingPlanId):n==="challenge"?!_t(m.learnChallengeId)&&o.find(g=>g.learnChallengeId===m.learnChallengeId):_t(m.skillingPlanId)&&_t(m.learnChallengeId)):[];G$=u;let p=d` ${o.map(m=>{let g=m.skillingPlanId??"";return d`
      `})}`;if(x(p,a),o.length===1&&o[0].id==="bookmarks"&&G$.length===0){let m=await Py(t);await mt.addItem("bookmarks",m)}return G$}async function HGe(e,t,n="collection"){event.preventDefault();let o=event.target;o.classList.add("is-loading");let r=Py(t),s=document.getElementById("save-to-collection");await z$(s).then(async i=>{i.hasError?o.classList.remove("is-loading"):(i=i,af[i.data.id]=r,hCe(e),G$=await CG(document.querySelector(".modal-card"),t,n))})}async function BGe(e,t,n){let o=event.target;if(o.checked){let r=Py(e);n[o.id]=r}else{let r=t.find(s=>s.listId===o.id);r?n[o.id]=r.id:n[o.id]&&delete n[o.id]}}function zGe(e){let t=Object.keys(e);return Promise.all(t.map(async n=>typeof e[n]!="string"?mt.addItem(n,await e[n]):mt.deleteItem(n,e[n])))}async function GGe(e,t,n){e.pushContent(await qGe(e,t,n))}function hCe(e){e.popContent()}k();k();var VGe=new Intl.NumberFormat(b.data.userLocale);function qr(e){return VGe.format(e)}var lf=new Intl.NumberFormat(b.data.userLocale,{notation:"compact",compactDisplay:"short"}),eC=new Intl.NumberFormat(b.data.userLocale,{maximumFractionDigits:0}),jGe=new Intl.NumberFormat(b.data.userLocale,{style:"percent",maximumFractionDigits:0});var cf="Applied Skills";function Kn(e){return e.replace("{AppliedSkills}",cf)}var bCe={module:kr,"learning path":T2,certification:bc,examination:AJ},V$={"applied skills":cf,certification:bc,examination:Wr,course:qp};var EG=!1,_Ce={bookmarks:{pressed:"single-bookmark-solid",unpressed:"single-bookmark"},collection:{pressed:"circle-addition-solid",unpressed:"circle-addition"},challenge:{pressed:"circle-addition-solid",unpressed:"circle-addition"},plan:{pressed:"circle-addition-solid",unpressed:"circle-addition"},studyguide:{pressed:"book-open",unpressed:"book-solid"}},QGe={bookmarks:{pressed:G7,unpressed:V7},collection:{pressed:XW,unpressed:eK},challenge:{pressed:pQ,unpressed:mQ},plan:{pressed:Bte,unpressed:zte},studyguide:{pressed:fie,unpressed:hie}};function j$(e,t){return`docon-${t?_Ce[e].pressed:_Ce[e].unpressed}`}function YGe(e,t,n){return QGe[e][t?"pressed":"unpressed"].replace(/\{title\}/g,n)}function WGe(e,t,n){let o=e?.querySelector("summary"),r=o?.querySelector(".add-to-collection-status");o?.querySelector(".docon")?.classList.remove(j$(n,!t)),o?.querySelector(".docon")?.classList.add(j$(n,t)),r&&(r.textContent=t?XC:gc)}function KGe(e,t,n,o){e.setAttribute("data-pressed",o.toString()),e.setAttribute("title",YGe(t,o,n));let r=e.querySelector(".docon");if(!r)throw new Error("Expected list button to contain a docon");if(r.classList.remove(j$(t,!o)),r.classList.add(j$(t,o)),e.closest(".popover")!==null){if(t==="collection"){let s=e.querySelector(".popover .collection-status");s&&(s.textContent=o?BN:zN)}else if(t==="plan"){let s=e.querySelector(".plan-status");s&&(s.textContent=o?Z2:J2)}else if(t==="challenge"){let s=e.querySelector(".challenge-status");s&&(s.textContent=o?vE:xN)}}else{let s=e.querySelector(".collection-status:not(.popover *)");if(s){s.textContent=o?XC:gc;return}let i=e.querySelector(".popover .add-to-collection-status");i&&(i.textContent=o?XC:gc)}}async function Hr(e){if(!e)return;if(!S.userServices){Array.from(e.querySelectorAll("button[data-list-type]")).forEach(s=>s.hidden=!0);return}let n=so(te.pathname).indexOf("/training")!==-1||te.href.indexOf("interests")!==-1;Array.from(e.querySelectorAll("button[data-list-type]:not(.popover *)")).forEach(r=>{JGe(r,n)}),nC(e),e.querySelectorAll("button[data-list-type]").forEach(r=>{r.addEventListener("click",e8e)})}function JGe(e,t){let n=kG(e);if(n===null)return;let o=e.closest("#article-header"),r=t&&(n.resourceType==="learning path"||n.resourceType==="module"),s=w.createElement("details");s.classList.add("popover","popover-right","add-item-popover"),t&&e.parentElement&&e.parentElement.id==="module-actions"&&s.classList.remove("popover-right");let i=r?d``:"",a=d`${gc}
      ${i}
      `;x(a,s),e.replaceWith(s)}var Sp=[];async function nC(e,t=C.isAuthenticated){let n=Array.from(e.querySelectorAll("button[data-list-type]")).map(a=>kG(a)).filter(a=>a!==null);if(n.length===0)return;let o=n.map(a=>a.url).filter((a,l,c)=>a&&c.indexOf(a)===l);if(t&&!Sp?.length)try{let a=await mt.getAllListsByUrl(o);a.hasError===!1&&(Sp=a.data)}catch{Sp=void 0}let r=ZGe(Sp),s=a=>{a==="collection"?Sp=Array.from(r.collectionAssociations):a==="plan"?Sp=Array.from(r.planAssociations):a==="challenge"&&(Sp=Array.from(r.challengeAssociations))};for(let{button:a,type:l,url:c,title:u}of n){s(l);let p=XGe(c,Sp);KGe(a,l,u,p)}Array.from(e.querySelectorAll(".add-item-popover")).forEach(a=>{let l=a.querySelector(".popover-content .collection-status"),c=a.querySelector(".popover-content .plan-status"),u=a.querySelector(".popover-content .challenge-status"),p=l?.textContent===BN||c?.textContent===Z2||u?.textContent===vE;WGe(a,p,"collection")})}function ZGe(e){return(e??[]).reduce((t,n)=>(n.lists.forEach(o=>{!_t(o.skillingPlanId)&&_t(o.learnChallengeId)?t.planAssociations.add(n):!_t(o.learnChallengeId)&&_t(o.skillingPlanId)?t.challengeAssociations.add(n):_t(o.skillingPlanId)&&_t(o.learnChallengeId)&&t.collectionAssociations.add(n)}),t),{planAssociations:new Set,collectionAssociations:new Set,challengeAssociations:new Set})}function XGe(e,t){return t.findIndex(n=>n.url===e&&n.lists.length>0)!==-1}async function e8e(e,t=C.isAuthenticated){let n=kG(e.target);if(n!==null){if(e.preventDefault(),b.data.isPermissioned){rf(LE,GW);return}if(!t){let o=n.type==="plan"?ise:n.type==="challenge"?PQ:QN;t8e(o);return}n8e(n)}}function kG(e){let t=e instanceof Element&&e.closest("button");if(!t)return null;let n=t.getAttribute("data-list-type");if(n!=="collection"&&n!=="challenge"&&n!=="plan")return null;let o=t.getAttribute("data-list-item-url")||te.href,r=t.getAttribute("data-list-item-title")||w.title,s=LS(o),i=t.getAttribute("data-pressed")==="true",a=t.getAttribute("data-list-source")||"module",l=t.getAttribute("data-resource-type")||"";return{button:t,type:n,url:s,title:r,pressed:i,source:a,resourceType:l}}async function t8e(e=QN){let n=yp(e,null,Zr);(await ao(n)).submitted&&Un()}async function n8e({button:e,url:t,title:n,type:o}){e.classList.contains("is-loading")||(e.classList.add("is-loading"),o8e(t,n,o).catch().finally(()=>{e.classList.remove("is-loading")}))}function tC(e="added",t=[],n="collection"){let o=w.querySelectorAll("#collections input:checked"),r=f=>e==="removed"&&t.length===1?t[0]:je(o.item(0).getAttribute(f)),s;n==="plan"?o.length===1&&e==="added"?s=wG(r("data-plan-id")).href:e==="removed"&&t.length!==0?s=wG(t[0]).href:s=Hn(C.userName,"plans").href:n==="challenge"?o.length===1?s=lo(r("data-challenge-id"),"details"):e==="removed"&&t.length!==0?s=lo(t[0],"details"):s=lo("home"):o.length===1?s=Cu(r("id")).href:s=Hn(C.userName,"collections",e==="removed"&&t.length!==0?t.length===1?t[0]:"":o.length===1?je(o.item(0).getAttribute("id")??""):"").href;let i=VW,a=jW,l=BW,c=zW;n==="plan"?(i=Yte,a=Wte,l=Jte,c=Zte):n==="challenge"&&(i=kQ,a=IQ,l=LQ,c=RQ);let u={"is-hidden":!1},p;if(e==="added")p=(o.length!==1?a:i.replace("{collectionName}",je(o.item(0).getAttribute("name")))).replace("{url}",s);else if(e==="removed"){let f=(w?.querySelector(`#collections input[${n==="plan"?"data-plan-":n==="challenge"?"data-challenge-":""}id="${t[0]}"]`)).getAttribute("name");p=(t.length>1?c:l.replace("{collectionName}",je(f))).replace("{url}",s)}else p=n==="plan"?Moe.replace("{url}",s):n==="challenge"?vE.replace("{url}",s):cW.replace("{url}",s);let m=d`
      ${F(p)}
      `,g=w.createElement("div");x(m,g),new $y(g).show(),nC(w.body)}async function o8e(e,t,n){let o=w.querySelector(".modal");if(EG||o&&!o.querySelector(".page-actions-menu"))return!1;EG=!0;let r=w.createElement("div");r.classList.add("modal-content");let s=new Te(r),i=[];return x(fCe(s,t,e,n,()=>{r8e(i.map(a=>n==="plan"?a.skillingPlanId:n==="challenge"?a.learnChallengeId:a.listId),n)}),r),i=await CG(r,e,n),EG=!1,s.show()}function r8e(e,t){nC(w.body);let n=Array.from(w.querySelectorAll("#collections input:checked")).map(s=>t==="plan"?s.attributes.getNamedItem("data-plan-id")?.value:t==="challenge"?s.attributes.getNamedItem("data-challenge-id")?.value:s.id),o=n.filter(s=>!e.includes(s)),r=e.filter(s=>!n.includes(s));o.length>0&&r.length===0?tC("added",void 0,t):o.length===0&&r.length>0?tC("removed",r,t):o.length>0&&r.length>0&&tC("updated",void 0,t),Hr(w.body)}k();function vCe(e){Va().then(t=>{let n=[],o=0;for(let s of t.products){let i=[];for(let{moniker:l,versionDisplayName:c}of s.packages)Yi(l)&&ja[l]&&i.push(`${Ro(je(c))}`);if(i.length===0)continue;let a=o===0?"propertyInfoTitle":"propertyInfoTitle stack";n.push(d`

      ${je(s.displayName)}

      ${F(i.join(" "))}
      `),o++}let r=document.createElement("div");x(n,r),e.insertAdjacentElement("afterend",r)})}function xCe(){let e=document.querySelector(".moniker-applies-to-table"),t=Array.from(document.querySelectorAll(".moniker-applies-to-overloadmember"));!e&&t.length===0||Va().then(n=>{if(e){let o=e.parentElement?.parentElement?.getAttribute("data-moniker");(!o||o.trim()==="")&&(o=Ai("monikers").join(" "));let r="",s=e.parentElement?.parentElement?.querySelectorAll(".alert.is-danger");s&&s.length>0&&s.forEach(i=>{let a=i.getAttribute("data-moniker");a!==null&&a!==""&&(r+=a)}),yCe(e,n,o,r)}if(t.length!==0)for(let o of t){let r=o.parentElement.parentElement.parentElement.parentElement.getAttribute("data-moniker"),s=o.parentElement.parentElement.parentElement.parentElement.querySelectorAll(".alert.is-danger"),i="";s.forEach(a=>{let l=a.getAttribute("data-moniker");l!==null&&l!==""&&(i+=l)}),yCe(o,n,r,i)}})}function yCe(e,t,n,o){if(!e)return;let r=e.parentElement.querySelector("summary"),s=e.querySelector("thead"),i=[],a="",l="",c=0,u=!1;for(let f of t.products){let _=[],h=[],v="";for(let{moniker:y,versionDisplayName:T}of f.packages){let I=Ro(je(T));o&&o.split(" ").indexOf(y)>0&&(h.push(I),u=!0),n&&n.split(" ").indexOf(y)>=0&&(c++,c===1?a=je(f.displayName)+" "+I:c===2&&(l=je(f.displayName)+" "+I),h.includes(I)||_.push(I))}_.length===0&&h.length===0||(_.length>0&&(_.reverse(),v=_.join(", ")+" "),h.length>0&&(h.reverse(),v=v+"("+h.join(", ")+")"),i.push(d`${je(f.displayName)}${F(v)}`))}if(i.length===0)return;r&&(c===1?r.textContent=a:c===2?r.textContent=L7.replace("{version1}",a).replace("{version2}",l):c>=3&&(r.textContent=P7.replace("{version}",a)));let p=Zae;u&&(p=p+" "+I7+"");let m=d`${nh}${F(p)}`;x(m,s);let g=document.createElement("tbody");x(i,g),s.insertAdjacentElement("afterend",g)}function TCe(){let e=lt();if(e==="")return;let t=document.querySelector(".moniker-display-boilerplate");t&&Va().then(n=>{for(let o of n.products)for(let{moniker:r,isPrerelease:s}of o.packages)if(e===r&&Yi(r)&&ja[r]&&s){t.classList.remove("is-hidden");return}})}function Q$(){let e=lt();if(!Yi(e))return!1;s8e(e);let t=i8e(w.body);return a8e(t,e),cp(),Rt(),!0}var wCe=w.createElement("style");w.head.appendChild(wCe);function s8e(e){wCe.textContent=` [data-moniker]:not([data-moniker~='${e}']) { display: none !important; } `;let t=w.querySelectorAll(`[data-moniker~='${e}'] [data-id]`);for(let o=0;oc8e(e)),B.addEventListener(b4,u8e)}var Br={dotnet:{displayName:".NET",validSearchTerm:/^[A-Za-z_][A-Za-z0-9.<>,_]{2,255}$/,namespaceItemType:"Namespace",namespacesPath:"namespaces",monikerPickerLabel:oE,allApisLabel:tE,resultsHeadingTemplate:rE,selectLabel:N0},java:{displayName:"Java",validSearchTerm:/^[A-Za-z][A-Za-z0-9.<>,]{2,255}$/,namespaceItemType:"Package",namespacesPath:"namespaces",monikerPickerLabel:oE,allApisLabel:tE,resultsHeadingTemplate:rE,selectLabel:N0},javascript:{displayName:"JavaScript",validSearchTerm:/^[A-Za-z@][A-Za-z0-9.<>,!\/\-]{2,255}$/,namespaceItemType:"Package",namespacesPath:"packages",monikerPickerLabel:c0,allApisLabel:nE,resultsHeadingTemplate:C2,selectLabel:D0},powershell:{displayName:"PowerShell",validSearchTerm:/^[A-Za-z][A-Za-z0-9.-]{2,255}$/,namespaceItemType:"Module",namespacesPath:"modules",monikerPickerLabel:c0,allApisLabel:nE,resultsHeadingTemplate:QX,selectLabel:D0},python:{displayName:"Python",validSearchTerm:/^[A-Za-z][A-Za-z0-9.<>,_-]{2,255}$/,namespaceItemType:"Package",namespacesPath:"packages",monikerPickerLabel:c0,allApisLabel:nE,resultsHeadingTemplate:C2,selectLabel:D0},rest:{displayName:"REST",validSearchTerm:/^[A-Za-z ]{3,255}$/,namespaceItemType:"",namespacesPath:"services",monikerPickerLabel:oE,allApisLabel:tE,resultsHeadingTemplate:rE,selectLabel:N0}};var Ot=P("platform")||P("apiPlatform")||null,IG;function nc(){return IG===void 0&&(IG=Fhe(Ot).then(d8e)),IG}function d8e(e){let{platformId:t,families:n}=e,o=[],r={},s=[];for(let i of n)for(let a of i.products){s.push(a);for(let l of a.packages){let{moniker:c,displayName:u,versionDisplayName:p,isDefault:m,isDeprecated:g,isPrerelease:f}=l,_={platform:e,family:i,product:a,moniker:c,displayName:u,versionDisplayName:p,isDefault:m,isDeprecated:g,isPrerelease:f};o.push(_),r[_.moniker]=_}}return{platformId:t,families:n,products:s,packages:o,packagesByMoniker:r}}var oC=Br[Ot],rC=!1;function ICe(e){let{element:t,button:n,buttonDisplayedValue:o,productList:r}=p8e();function s(c){c.target instanceof Element&&!t.contains(c.target)&&i()}function i(){w.documentElement.classList.remove("moniker-picker-expanded"),t.classList.remove("expanded"),n.setAttribute("aria-expanded","false"),B.removeEventListener("focus",s,{capture:!0}),B.removeEventListener("click",s),xb.removeListener(i)}function a(){i(),n.focus()}function l(){w.body.removeAttribute("style"),w.documentElement.classList.add("moniker-picker-expanded"),t.classList.add("expanded"),n.setAttribute("aria-expanded","true"),B.addEventListener("focus",s,{capture:!0}),B.addEventListener("click",s),xb.addListener(i)}return m8e(e,n,o,r),h8e(n,r,l,a),b8e(r,a),_8e(r,a),t}function p8e(){let e=w.createElement("div");e.classList.add("moniker-picker"),e.setAttribute(An.name,"moniker-picker"),e.setAttribute("role","application ");let t=tt(),n=tt();return e.innerHTML=` `,{element:e,button:e.firstElementChild,buttonDisplayedValue:e.firstElementChild.lastElementChild,productList:e.lastElementChild.lastElementChild}}function m8e(e,t,n,o){return Ot==="rest"&&(rC=!0),e?nc().then(r=>{r.packagesByMoniker[lt()]===void 0&&sp("");let s=()=>{let i=lt();i===""?n.textContent=oC.allApisLabel:n.innerHTML=Ro(je(r.packagesByMoniker[i].displayName))};B.addEventListener(Nr,s),s(),g8e(o);for(let i of r.families)ECe(i.products,o)}):Va().then(r=>{rC=r.products.length===1,rC&&r.products[0].packages.length===1&&(t.disabled=!0);let s=()=>{let i=lt();n.innerHTML=Ro(je(B_(r,i).displayName))};B.addEventListener(Nr,s),s(),ECe(r.products,o)})}function g8e(e){let t=oC.allApisLabel;e.insertAdjacentHTML("afterbegin",`
    • ${t}
    • `)}function ECe(e,t){if(rC){ACe(e[0].packages,t);return}for(let{displayName:n,packages:o}of e){let r=tt(),s=tt();t.insertAdjacentHTML("beforeend",`
    • `);let i=t.lastElementChild.lastElementChild,a=i.lastElementChild;ACe(o,a),i.insertAdjacentHTML("beforeend",'');let l=i.lastElementChild;o.find(u=>/^azurermps/.test(u.moniker))&&l.insertAdjacentHTML("beforeend",`${je(zZ)}`);let c=P("archive_url");c&&l.insertAdjacentHTML("beforeend",`${je(Nf)}`)}}function ACe(e,t){for(let{moniker:n,isDefault:o,versionDisplayName:r}of e)t.insertAdjacentHTML("beforeend",`
    • ${je(r)}
    • `)}function f8e(e){Array.from(e.querySelectorAll("button.versions")).forEach(n=>{n.setAttribute("aria-expanded","false")})}function W$(e,t,n){let o=e.querySelector('button[aria-expanded="true"]');o!==t&&(o!==null&&o.setAttribute("aria-expanded","false"),t!==null&&setTimeout(function(){t.setAttribute("aria-expanded","true"),n&&setTimeout(function(){let r=w.getElementById(t.getAttribute("aria-controls"));if(!r)return;let s=r.querySelector('a[role="menuitem"]');s!==null&&s.focus()},300)},100))}function PCe(e,t){return e.querySelector(`a[href="http://approjects.co.za/?big=?view=${t}"]`)}function kCe(e){let t=e.nextElementSibling,n=PCe(t,lt()),o=t.querySelector('a[href^="?view="][data-default="true"]'),r=t.querySelector('a[href^="?view="]');return n||o||r}function LCe(e){return e.search==="?view="||rC?null:e.parentElement.parentElement.parentElement.previousElementSibling}function h8e(e,t,n,o){let r=()=>{n();let s=lt(),i=PCe(t,s),a=LCe(i);W$(t,a,!1),setTimeout(()=>{a!==null&&a.scrollIntoView(!1),i.scrollIntoView(!1),setTimeout(()=>{i.focus()},100)})};e.addEventListener("click",()=>{e.getAttribute("aria-expanded")==="false"?r():o()}),e.addEventListener("keydown",s=>{let i=e.getAttribute("aria-expanded")==="true";i&&s.keyCode===Re.up?(s.preventDefault(),o()):!i&&s.keyCode===Re.down&&(s.preventDefault(),r())})}function b8e(e,t){e.addEventListener("keydown",n=>{let o=n.target;if(o.getAttribute("role")!=="menuitem")return;let r=n.keyCode,s;switch(r){case Re.left:o instanceof HTMLAnchorElement&&o.search!=="?view="&&(n.preventDefault(),LCe(o).focus(),f8e(e));break;case Re.right:o instanceof HTMLButtonElement&&o.hasAttribute("aria-controls")&&(n.preventDefault(),kCe(o).focus(),xb.matches||W$(e,o instanceof HTMLButtonElement?o:null,!0));break;case Re.up:case Re.down:n.preventDefault();let i=r===Re.up?"previousElementSibling":"nextElementSibling",a=r===Re.up?"lastElementChild":"firstElementChild";o.parentElement[i]===null?s=o.parentElement.parentElement[a].firstElementChild:s=o.parentElement[i].firstElementChild,s.focus(),!xb.matches&&o instanceof HTMLButtonElement&&o.getAttribute("aria-expanded")==="true"&&(n.preventDefault(),kCe(o).focus());break;case Re.home:case Re.end:n.preventDefault();let l=r===Re.home?"firstElementChild":"lastElementChild";s=o.parentElement.parentElement[l].firstElementChild,s.focus(),s.parentElement.parentElement===e&&W$(e,s instanceof HTMLButtonElement?s:null,!0);break;case Re.escape:n.preventDefault(),t();break}})}function _8e(e,t){e.addEventListener("click",n=>{let o=n.target;if(o.getAttribute("role")==="menuitem"){if(o instanceof HTMLAnchorElement){n.preventDefault();let r=ce(o.search).view;sp(r),t();return}o instanceof HTMLButtonElement&&(!xb.matches&&o.getAttribute("aria-expanded")==="true"?o.setAttribute("aria-expanded","false"):W$(e,o,!0),o.focus())}})}k();k();var ui=b.data.pageTemplate,Eu=P("page_type"),y8e=P("page_kind"),PG=P("pagetype"),v8e=P("interactive_type"),uf=ja.any||ui==="Conceptual"&&PG==="Reference"&&Ot!==null||ui==="Conceptual"&&Eu==="powershell"&&Ot!==null||ui==="Conceptual"&&PG==="Conceptual"&&Ot==="powershell"||ui==="Conceptual"&&Eu==="conceptual"&&Ot==="powershell"||(ui==="Conceptual"&&Eu==="conceptual"||ui==="Reference"&&Eu==="python")&&Ot==="python"||(ui==="Conceptual"&&Eu==="conceptual"||ui==="Reference"&&Eu==="cli")&&v8e==="azurecli"||ui==="Reference"&&Eu==="powershell"&&Ot!==null||ui==="Reference"&&Eu==="azure-cli"&&y8e==="group",RCe=ui==="Reference"&&Ot!==null||ui==="Conceptual"&&PG==="Reference"&&Ot!==null||ui==="Conceptual"&&Eu==="powershell"&&Ot!==null;function MCe(){uf&&Y$(!0)}function x8e(e){let t=document.createElement("div");return t.setAttribute("data-bi-name","left toc"),t.classList.add("modal-content","is-docked-left","display-flex","flex-direction-column"),x(d`

      ${e||Yf}

      `,t),t}var oc;function LG(e,t){if(t){let n=Array.from(document.getElementsByClassName("contents-expand-title"));for(let o of n)o.innerText=t}window.addEventListener("click",n=>{if(!(n.target instanceof Element&&n.target.closest("[data-contents-button]")))return;n.preventDefault();let r=x8e(t),s=["margin-xs"];uf&<()&&(s=["margin-inline-xs","margin-bottom-xs","margin-top-none"]),e(r,s,["padding-inline-xs","padding-top-xs"],["padding-inline-xs","padding-top-xs","border-top"],["modal-close","border"]);let c=new Te(r);oc=c,c.show().then(()=>{oc=void 0,window.removeEventListener("resize",p)});let u=window.innerWidth;function p(){window.innerWidth!==u&&(window.removeEventListener("resize",p),c.hide())}window.addEventListener("resize",p,{passive:!0})})}function DCe(){let e=R.supportLevel==="production"&&R.reviewFeatures||R.supportLevel==="development"&&R.accessLevel==="online"||R.accessLevel==="local",t=new URLSearchParams(location.search).get("experimental_moniker_picker")==="true",n=P("experimental_moniker_picker")==="true";return e&&(n||t)}function K$(e){let t=document.createElement("div");return t.classList.add("moniker-picker2","margin-right-sm"),t.setAttribute("data-bi-name","moniker-picker"),x(sC(e),t),e?nc().then(n=>{x(sC(e,null,n),t),addEventListener(Nr,()=>x(sC(e,null,n),t))}):Va().then(n=>{x(sC(e,n),t),addEventListener(Nr,()=>x(sC(e,n),t))}),t}function sC(e,t,n){let o=tt(),r=`${o}-picker-label`,s=P("archive_url"),i=t&&t.products.length===1,a=c=>{if(oc){c.preventDefault(),c.stopPropagation();let u=document.createElement("div");u.classList.add("modal-content","is-docked-left","display-flex","flex-direction-column"),x(T8e(t),u),oc.pushContent(u)}},l=c=>{let u,p=lt();return c&&p===""?u=Br[Ot].allApisLabel:c?u=n.packagesByMoniker[p].displayName:u=t?B_(t,p).displayName:"",u};return d`${hh}`}function $Ce(e){let t=tt(),n=b.data.userDir==="ltr"?"chevron-right-light":"chevron-left-light",o=b.data.userDir==="ltr"?"text-align-left":"is-text-right",r=P("archive_url");return d` ${e.packages.length!==1?d``:d`
    • ${e.packages[0].displayName}
    • `} `}function NCe(e){let t=b.data.userDir==="ltr"?"text-align-left":"is-text-right";return d`
    • ${e.versionDisplayName}
    • `}function T8e(e){let t=e&&e.products.length===1;return d` ${t?d`${FCe(e.products[0])}`:d` ${OCe(oh)} ${UCe(Yf)}
        ${e&&e.products?e.products.map(n=>w8e(n)):""}
      `} `}function w8e(e){let t=b.data.userDir==="ltr"?"docon-chevron-right-light":"docon-chevron-left-light";return d`
    • ${e.packages.length!==1?d``:d`${e.packages[0].displayName}`}
    • `}function FCe(e){let t=tt(),n=P("archive_url");return d` ${OCe(e.displayName)} ${UCe(oh)}
      `}function OCe(e){return d`

      ${e}

      `}function UCe(e){let t=b.data.userDir==="ltr"?"docon-arrow-left":"docon-arrow-right";return d`
      `}function S8e(e){if(oc){let t=document.createElement("div");t.classList.add("modal-content","is-docked-left","display-flex","flex-direction-column"),x(FCe(e),t),oc.pushContent(t)}}function J$(e){let t=e.target;if(t instanceof HTMLAnchorElement){e.preventDefault();let n=ce(t.search).view;sp(n),oc?oc.hide():(bT(t),bT(t));return}}function Z$(e){let t=lt();return e===t?"true":void 0}var qCe="api-search-quick-filter";function HCe(){return nc().then(e=>{let t=e.packagesByMoniker,n=!1,o=s=>(P(s)||"").split(",").map(l=>l.trim()).filter(l=>t[l]===void 0?(console.warn(`Quick Filter: no package with moniker "${l}" was found.`),!1):(n=!0,!0)).map(l=>({moniker:l,displayName:t[l].displayName})),r=[o("quickFilterColumn1"),o("quickFilterColumn2"),o("quickFilterColumn3")];return{any:n,columns:r}})}function BCe(e){let t=w.createElement("div");t.classList.add(qCe),t.setAttribute(An.name,qCe);let n=w.createElement("h2");n.textContent=Tte,n.classList.add("api-search-heading","font-size-h3"),t.appendChild(n);for(let o of e.columns){let r=w.createElement("div");t.appendChild(r);for(let{moniker:s,displayName:i}of o){let a=w.createElement("button");a.classList.add("button","button-clear","has-text-wrap","text-align-left","display-block","button-block"),a.innerHTML=Ro(i),a.addEventListener("click",()=>{Vt(a,{actionType:Ee.OTHER,behavior:me.OTHER,content:{event:"api-browser-quickfilter",value:s,platform:Ot}}),sp(s)}),r.appendChild(a)}}return t}function zCe(e,t,n="en-us"){if(e==="rest")return C8e(t);let o=Br[e].namespacesPath;return $(`${N.apiBrowser}/${encodeURIComponent(e)}/${o}?moniker=${encodeURIComponent(t)}&api-version=0.2&locale=${n}`).then(r=>r.json())}function C8e(e){return f4().then(t=>E8e(t,e))}function E8e(e,t){return{apiItems:(e.filter(o=>(o.scope||"").toLowerCase()===(t||"").toLowerCase())[0].services||[]).map(o=>({displayName:o.name,url:o.url,description:o.description,itemKind:bse}))}}function X$(e,t,n,o="en-us"){if(e==="rest")return A8e(o,"",t,n+"*",0,25);let r=`${N.apiBrowser}/${e}/search?api-version=0.2&search=${encodeURIComponent(n)}&locale=${o}`;return t!==""&&(r+=`&$filter=monikers/any(t: t eq '${encodeURIComponent(t)}')`),$(r).then(s=>s.json())}function A8e(e,t,n,o,r,s){let i=`${N.siteSearch}?locale=${e}&search=${o}&$skip=${r}&$top=${s}`,l=(n!==""?["REST"].concat([n]):["REST"]).map(c=>`scopes/any(t:t eq '${c}')`).join(" and ");return i+=`&$filter=${encodeURIComponent(l)}`,t!==""&&(i+=`&dataSource=${encodeURIComponent(t)}`),$(i).then(c=>c.json()).then(RG)}function RG(e){return{count:e.count,"@nextLink":e["@nextLink"],results:e.results.map(t=>({displayName:t.title,url:t.url,description:t.description,itemType:null,itemKind:null}))}}k();var eD=Br[Ot],iC=[];function VCe(e,t){iC.push({container:e,renderHeading:t})}function tD(e,t,n){w.documentElement.classList.add("api-search-has-results");for(let{container:o,renderHeading:r}of iC){if(o.innerHTML="",t.length===0){let u=Ot==="rest"?nee:fn;o.insertAdjacentHTML("afterbegin",`
      ${u}
      `);return}r&&k8e(o,e);let s=w.createElement("table");s.classList.add("table","api-search-results"),s.setAttribute(An.name,"api-search-results");let i=w.createElement("thead");s.appendChild(i);let a=w.createElement("tr");i.appendChild(a);let l=w.createElement("th");l.textContent=KX,a.appendChild(l),l=w.createElement("th"),l.textContent=Gf,a.appendChild(l);let c=w.createElement("tbody");if(s.appendChild(c),GCe(c,t),o.appendChild(s),n&&r){let u=w.createElement("button");u.classList.add("more-button","button"),u.textContent=SX,u.setAttribute(An.name,"api-browser-load-more-results"),u.addEventListener("click",()=>{$(n).then(p=>p.json()).then(p=>{e.platformId==="rest"&&(p=RG(p)),n=p["@nextLink"],n===void 0&&o.removeChild(u),GCe(c,p.results)})}),o.appendChild(u)}}}function GCe(e,t){let n=w.createElement("div"),o=s=>(x(d`${s}`,n),n.textContent!=="null"?n.textContent:""),r=lt();for(let s of t){let i=s.itemKind||s.itemType||eD.namespaceItemType,a=w.createElement("tr");e.appendChild(a);let l=w.createElement("td"),c=w.createElement("a");c.href=$G(s.url,r);let u=d`${F(Ro(s.displayName.replace(//g,">")))}`;x(u,c);let p=w.createElement("span");p.textContent=" "+i,l.appendChild(c),l.appendChild(p),a.appendChild(l),l=w.createElement("td"),l.textContent=o(s.description),a.appendChild(l),a.appendChild(l)}}function MG(){w.documentElement.classList.add("api-search-has-results");for(let{container:e}of iC){let t=d`
      `;x(t,e)}}function nD(e){w.documentElement.classList.add("api-search-has-results");for(let{container:t}of iC)t.textContent=e}function jCe(){w.documentElement.classList.remove("api-search-has-results");for(let{container:e}of iC)e.innerHTML=""}function k8e(e,t){let n=lt(),o,r;if(n==="")o=Br[Ot].displayName,r=null;else{let a=t.packagesByMoniker[n];o=a.product.displayName,r=a.versionDisplayName}let s=w.createElement("h2");s.classList.add("api-search-results-heading","font-size-h3");let i=d`${eD.resultsHeadingTemplate.replace("{platformName}",o)}`;if(x(i,s),r!==null&&Ot==="rest"){let a=d`${F(`${je(n)} REST ${eD.resultsHeadingTemplate.replace("{platformName}",o)}`)}`;x(a,s)}else if(r!==null){let a=d`${F(`${eD.resultsHeadingTemplate.replace("{platformName}",o)} version ${je(r)}`)}`;x(a,s)}e.appendChild(s)}function $G(e,t){if(t!==""&&!/[?&]view=/i.test(e)){let[o,r]=e.split("#");r=r===void 0?"":"#"+r,e=Ot==="rest"?`${o}${r}`:`${o}?view=${encodeURIComponent(t)}${r}`}let n=new URL(e,location.origin);return e=`${n.pathname}${n.search}${n.hash}`,Ot!=="rest"&&(e=`/${b.data.userLocale}${e}`),e}var df="api-search-term-changed",Zy="";function pf(){return Zy}function DG(e){e=e.trim(),e!==Zy&&(Zy=e,(b.data.pageTemplate==="ApiBrowserPage"||b.data.pageTemplate==="AdminModeration")&&Gt({term:Zy},"pushState"),window.dispatchEvent(new CustomEvent(df,{detail:{term:Zy}})))}function QCe(){let e=ce().term;return e===void 0?"":e.trim()}(b.data.pageTemplate==="ApiBrowserPage"||b.data.pageTemplate==="AdminModeration")&&(Zy=QCe(),window.addEventListener("popstate",()=>DG(QCe())));function YCe(){B.addEventListener(df,NG),B.addEventListener(Nr,NG),b.data.pageTemplate==="ApiBrowserPage"&&NG()}var oD="";function NG(){let e=pf(),t=lt(),n=`${e}/${t}`;return n===oD?Promise.resolve():(oD=n,b.data.pageTemplate==="ApiBrowserPage"&&t!==""&&e===""?(MG(),Promise.all([zCe(Ot,t,b.data.userLocale),nc()]).then(([o,r])=>{if(n===oD){if(o.apiItems.length===0){nD(fn);return}tD(r,o.apiItems,null)}},()=>{nD(gN)})):e.length<3?(jCe(),Promise.resolve()):Br[Ot].validSearchTerm.test(e)?(MG(),Promise.all([X$(Ot,t,e,b.data.userLocale),nc()]).then(([o,r])=>{n===oD&&(FG(t,e,o.results.length),tD(r,o.results,o["@nextLink"]))},()=>{nD(gN)})):nc().then(o=>tD(o,[],null)))}function FG(e,t,n){Se({actionType:Ee.OTHER,behavior:me.SEARCH,content:{event:"api-browser-search",platform:Ot,moniker:e,term:t,results:n}})}var WCe="api-search-field";function KCe(){let e=w.createElement("form");e.classList.add(WCe,"margin-top-xxs"),e.setAttribute(An.name,WCe),e.action="javascript:",e.addEventListener("submit",l=>l.preventDefault());let t=w.createElement("label"),n=w.createElement("span");n.classList.add("visually-hidden"),n.textContent=rn,t.appendChild(n),e.appendChild(t);let o=w.createElement("input");o.type="search",o.classList.add("input","input-lg","padding-right-sm"),o.value=pf(),o.placeholder=rn,t.appendChild(o);let r=w.createElement("a");r.href="http://approjects.co.za/?big=#",r.title=kY,r.classList.add("clear"),r.addEventListener("click",l=>{l.preventDefault(),o.value="",o.dispatchEvent(new CustomEvent("change",{bubbles:!0}))}),t.appendChild(r);let s=()=>{o.value===""?o.classList.add("empty"):o.classList.remove("empty")};s();let i=0,a=()=>{s(),clearTimeout(i),i=setTimeout(()=>DG(o.value),500)};return o.addEventListener("change",a),o.addEventListener("input",a),B.addEventListener(df,()=>{let l=pf();o.value.trim()!==l&&(o.value=l,s())}),e}function JCe(){if(!S.apiBrowser)return;Y$(),YCe();let e=w.querySelector("#api-browser-search-field-container");if(!e)return;let t=!0;DCe()?e.appendChild(K$(t)):e.appendChild(ICe(t)),e.appendChild(KCe()),HCe().then(s=>{if(!s.any)return;let i=BCe(s);e.appendChild(i)});let n=w.querySelector("#api-browser-results-container");if(!n)return;VCe(n,!0);let r=()=>{let s=lt()===""&&pf()===""?"remove":"add";w.documentElement.classList[s]("has-moniker-or-term")};r(),window.addEventListener(Nr,r),window.addEventListener(df,r)}var ZCe="renewalassessment-session-disclaimer",XCe="https://review.learn.microsoft.com/en-us/rest/api/learn/?view=rest-learn-2023-11-01-preview&branch=main";var I8e=N.assessments,cln=`${I8e}/sessions`;k();function rD(e,t=Qf,n=Tc,o=Aae){return yp(tl,e?t.replace("{itemTitle}",e):o,n)}function sD(e=Nn,t){return yp(RW,"",e,!0,t)}function iD(e=DW){return d``}function nEe(e=$E,t=Up){return yp(dW,e,t)}function oEe(e=qE,t=OE){return yp(DY,e,t)}var cD=(s=>(s.facebook="facebook",s.twitter="twitter",s.linkedin="linkedin",s.email="email",s.weibo="weibo",s))(cD||{}),F8e={facebook:"https://www.facebook.com/sharer/sharer.php?u={url}",twitter:"https://twitter.com/intent/tweet?original_referer={url}&tw_p=tweetbutton&url={url}",linkedin:"https://www.linkedin.com/feed/?shareActive=true&text={body}",email:"mailto:?subject={subject}&body={body}",weibo:"http://service.weibo.com/share/share.php?title={title}&url={url}"};function lC(e,t,n){let o=encodeURIComponent(t),r=new URL(e);r.hostname="learn.microsoft.com";let s=r.href+=(e.indexOf("?")!==-1?"&":"?")+"WT.mc_id=",i=C.sharingId?`&sharingId=${C.sharingId}`:"",a=!!n?.achievementCopyTitle?.overrideTitle;return Object.values(cD).reduce((c,u)=>{if(b.data.isPermissioned)return c[u]="#",c;let p=encodeURIComponent(s+u+i),m=n?.achievementCopyTitle?.overrideTitle??t,g=encodeURIComponent(_se.replace("{achievementTitle}",n?.achievementCopyTitle?.isUnquoted?`${m}`:`"${m}"`)),f={achievementCopy:g,url:p,title:o,body:a?`${encodeURIComponent(` \r `)}${g}${encodeURIComponent(` \r `)}${p}`:`${encodeURIComponent(` \r `)}${p}`,subject:encodeURIComponent(O0).replace(encodeURIComponent("{articleTitle}"),o)},_=Object.entries(f).reduce((h,[v,y])=>h.replace(new RegExp(`{${v}}`,"g"),y),F8e[u]);return c[u]=_,c},{})}function uD(e,t,n){Object.values(cD).forEach(o=>{let r=lC(t,n);e.querySelectorAll(`.share-${o}`).forEach(s=>{r[o]==="#"&&HSe(s,vse,xse),s.href=r[o]})})}function iEe(){document.querySelectorAll("div.sharing").forEach(e=>e.remove())}k();function mf(e,t="is-centered margin-top-sm margin-bottom-xs"){if(!e.pageCount)return null;let n=Array.from({length:e.pageCount},(m,g)=>g),o=e.pageIndex,r=!1,s=1,i={first:0,last:n.length-1};n.length>=7&&(r=!0,o<3?(s=3,i.first=0,i.last=3):o>n.length-4?(s=3,i.first=n.length-4,i.last=i.first+s):(s=1,i={first:Math.max(e.pageIndex-s,0),last:Math.min(e.pageIndex+s,n.length-2)}));let a=d``,l=d``,c=d``,u=d``,p=[];for(let m=i.first;m<=i.last;m++)p.push(d`
    • `);return d``}k();k();function Xy(e,t=uEe,n=q8e){if(!e)return;let o=H8e(e),r=t();o.length||(o=Array.from(document.querySelectorAll("body"))),o.forEach(s=>{let i=B8e(s),a=z8e(s),l=i.map(c=>c.id);i.forEach(c=>{typeof r=="string"?l.indexOf(r)!==-1&&dD(r,c,a):l.indexOf(r[s.id])!==-1?dD(r[s.id],c,a):l.indexOf(r.tab)!==-1?dD(r.tab,c,a):dD(i[0].id,c,a),c.onclick=()=>{U8e(c.id,s),n(c.id,s.id||"tab")},c.onkeydown=u=>{let p=u.which;if(!u.altKey&&(p===Re.left||p===Re.right||p===Re.home||p===Re.end)){u.preventDefault();let m=p===Re.left||p===Re.home,g;if(u.ctrlKey||p===Re.home||p===Re.end){let f=m?1:-1;for(g=m?0:i.length-1;i[g].parentElement.getAttribute("hidden");)g+=f}else{let f=m?-1:1;g=i.findIndex(_=>_.id===c.id);do g+=f,g===-1?g=i.length-1:g===i.length&&(g=0);while(i[g].parentElement.getAttribute("hidden"))}i[g].focus();return}}})})}function U8e(e,t){let n=t.querySelector(`#${e}`);if(n===null)return;let o=Array.from(t.querySelectorAll(":scope > .tabs .tab-control")),r=Array.from(t.querySelectorAll(":scope > [data-tab-content]"));o.forEach(s=>{s!==n&&(s.parentElement.classList.remove("is-active"),s.setAttribute("aria-selected","false"),s.setAttribute("tabindex","-1"))}),n.parentElement.classList.add("is-active"),n.setAttribute("aria-selected","true"),n.setAttribute("tabindex","0"),dEe(n.getAttribute("aria-controls"),r)}function q8e(e,t){t||(t="tab");let n=`{"${t}": "${e}"}`;Gt(JSON.parse(n),"replaceState")}function uEe(){let e=ce();for(let t in e)t.slice(0,3)!=="tab"&&delete e[t];return e}function dD(e,t,n){e===t.id?(t.setAttribute("aria-selected","true"),t.setAttribute("tabindex","0"),t.parentElement.classList.add("is-active"),dEe(t.getAttribute("aria-controls"),n)):(t.setAttribute("aria-selected","false"),t.setAttribute("tabindex","-1"),t.parentElement.classList.remove("is-active"))}function dEe(e,t){t.forEach(n=>{n.dataset.tabContent===e?(n.hidden=!1,n.setAttribute("aria-hidden","false")):(n.hidden=!0,n.setAttribute("aria-hidden","true"))})}function H8e(e){return Array.from(e.querySelectorAll(".tabs-container"))}function B8e(e){return Array.from(e.querySelectorAll(":scope > .tabs .tab-control"))}function z8e(e){return Array.from(e.querySelectorAll(":scope > [data-tab-content]"))}k();var sc=class sc{static async render(t,n){return await sc.ensureFrappeChartsIsLoaded(),sc.frappeLibrary?new sc.frappeLibrary.Chart(t,n):null}static async ensureFrappeChartsIsLoaded(){let t=`${sc.thirdPartyUrl}/frappe-charts/1.5.2/frappe-charts.min.iife.js`;return sc.frappeLibrary||(sc.frappeLibrary=await Xi(t,"sha384-J742xhkMgA0pI8dwp+aANFethNYix5bapYzKZsz8z2Df+xqxLYImpGZddI2+ztIZ","frappe")),sc.frappeLibrary}};sc.thirdPartyUrl="/static/third-party";var pD=sc;k();Qe();k();Qe();k();var X8e=e=>e.isAnswered?"docon-check has-text-success":e.isRequired?"docon-asterisk-solid has-text-danger":"docon-location-circle",eVe=e=>e.isAnswered?yte:e.isRequired?vte:xte,tVe=(e,t)=>d`${eVe(e)}${F(t.render(e.title||e.id))}`,mD=class{constructor(){this.md=gp}hasChildren(t){return!!t.children}children(t){return t.children}htmlTitle(t,n=this.md){if(t.isCategory)return t.title;let o=document.createElement("span");return x(tVe(t,n),o),o.innerHTML}textTitle(t){return t.title||t.id}href(t){return t.href.toString()}isNewSection(t){return!1}isExpanded(t){return!!t.children}isSelected(t){return t.isSelected}setHtmlAttributes(t,n){}};Qe();function fEe(e,t,n){return nVe(e,t,n,!0)}function qG(e){let t=e.querySelector(".tree-item.is-selected");t||(t=nv(e)?e.querySelector(".tree-item"):e.querySelector(".tree-item.tree-leaf")),t&&tv(t)}function hEe(e,t){e.addEventListener("focus",rVe,!0),e.addEventListener("click",n=>sVe(n,t),!0),e.addEventListener("keydown",n=>iVe(n,t),!0)}function nVe(e,t,n,o){let r=document.createElement("ul");return r.classList.add("tree"),r.setAttribute("role","tree"),r.setAttribute("aria-label",n),r.setAttribute("data-bi-name","tree"),r.setAttribute("data-is-collapsible",o?"true":"false"),bEe(r,e,t),qG(r),hEe(r,t),r}function bEe(e,t,n,o=1,r){let s=nv(e),i=1;for(let a of t){if(n.isHidden&&n.isHidden(a))continue;let l=document.createElement("li"),c=document.createElement("a");e.appendChild(l),n.isNewSection(a)&&l.classList.add("border-top"),n.setHtmlAttributes(a,(m,g)=>l.setAttribute(m,g));let u=n.htmlTitle(a);if(n.hasChildren(a)){let m=(r?`${r}_`:"title-")+`${i}-${o}`;mEe(l,a),l.classList.add("tree-item"),l.setAttribute("aria-setsize",t.length.toString()),l.setAttribute("aria-level",o.toString()),l.setAttribute("aria-posinset",i.toString()),l.setAttribute("role","treeitem"),l.setAttribute("tabindex","-1"),l.setAttribute("id",m),s&&l.setAttribute("aria-expanded","false");let g=document.createElement("span");l.appendChild(g),g.setAttribute("data-bi-name","tree-expander"),s&&(g.className="tree-expander"),g.insertAdjacentHTML("beforeend",u),(!s||n.isExpanded(a))&&ev(l,!0,n),i++;continue}c.setAttribute("aria-setsize",t.length.toString()),c.setAttribute("aria-level",o.toString()),c.setAttribute("aria-posinset",i.toString()),c.setAttribute("role","treeitem"),c.setAttribute("tabindex","-1"),!s&&e.parentElement&&e.parentElement.id&&c.setAttribute("aria-describedby",e.parentElement.id),l.setAttribute("role","none"),mEe(c,a),l.appendChild(c),c.classList.add("tree-item","tree-leaf","has-external-link-indicator"),c.setAttribute("data-bi-name","tree-leaf"),c.href=n.href(a),c.innerHTML=u,n.isSelected(a)&&(c.classList.add("is-selected"),c.setAttribute("aria-current","page")),n.icon&&n.icon(a)&&oVe(c,n.icon(a)),i++}}function mEe(e,t){e.node=t}function _Ee(e){return e.node}function oVe(e,t){if(!t||!t.screenReaderText||!t.classNames)return;let n=document.createElement("span");n.textContent=t.screenReaderText,n.classList.add("visually-hidden"),e.classList.add(...t.classNames),e.append(n)}function nv(e){return e.closest(".tree").getAttribute("data-is-collapsible")!=="false"}function yEe(e){return e?.getAttribute("aria-expanded")==="true"||!nv(e)}function ev(e,t,n){let o=e.getAttribute("aria-level"),s=(o?parseInt(o,10):1)+1;if(!nv(e)&&!t||(e.setAttribute("aria-expanded",t.toString()),!t||e.lastElementChild instanceof HTMLUListElement))return;let a=_Ee(e),l=document.createElement("ul");l.classList.add("tree-group"),l.setAttribute("role","group"),e.appendChild(l);let c=e.getAttribute("id"),u=n.children(a);bEe(l,u,n,s,c)}function tv(e){let t=e.closest(".tree");Array.from(t.querySelectorAll('[tabindex="0"]')).forEach(n=>n.setAttribute("tabindex","-1")),e.setAttribute("tabindex","0")}function gEe(e,t){let n=e.closest(".tree"),r=nv(e)?':not([aria-expanded="false"]) [role="treeitem"]':'[role="treeitem"] .tree-leaf',s=Array.from(n.querySelectorAll(r));t==="preceding"&&s.reverse();let i=t==="preceding"?Node.DOCUMENT_POSITION_PRECEDING:Node.DOCUMENT_POSITION_FOLLOWING;return s.find(a=>e.compareDocumentPosition(a)&i&&a.closest('.tree [aria-expanded="false"] [role="treeitem"]')!==a&&vEe(a.closest("li")))}function vEe(e){return window.getComputedStyle(e).display!=="none"}function rVe({target:e}){let t=e instanceof HTMLElement&&e.closest('[role="treeitem"]');t&&tv(t)}function sVe({target:e},t){let{REDUCE:n,EXPAND:o}=me,{CLICKLEFT:r}=Ee,s=e instanceof HTMLElement&&e.closest(".tree-expander, a");if(!s)return;let i;if(s instanceof HTMLAnchorElement)i=s;else{i=s.parentElement;let c=yEe(i);ev(i,!c,t),Vt(e,{behavior:c?n:o,actionType:r})}let a=_Ee(i),l=new CustomEvent("tree-item-clicked",{detail:a,bubbles:!0});s.closest(".tree").dispatchEvent(l)}function iVe(e,t){let{target:n,keyCode:o,shiftKey:r,altKey:s,ctrlKey:i}=e,{REDUCE:a,EXPAND:l}=me,{KEYBOARDENTER:c,KEYBOARDSPACE:u,OTHER:p}=Ee;if(s||i||r&&o!==Re.eight&&!(o>=Re.a&&o<=Re.b))return;let m=n instanceof HTMLElement&&n.closest('[role="treeitem"]');if(!m)return;let g=m instanceof HTMLAnchorElement,f=!g&&yEe(m),_=nv(m);if(o===Re.enter||o===Re.space){if(g||!_)return;ev(m,!f,t),Vt(e.target,{behavior:f?a:l,actionType:o===Re.enter?c:u}),e.preventDefault();return}if(o===Re.right){if(g||!_)return;if(f){let h=m.querySelector('[role="treeitem"]');h.focus(),tv(h)}else ev(m,!0,t),Vt(e.target,{behavior:l,actionType:p});e.preventDefault();return}if(o===Re.left){if(!_)return;if(f)ev(m,!1,t),Vt(e.target,{behavior:a,actionType:p}),e.preventDefault();else{let h=m.parentElement.closest('[role="treeitem"]');h&&(h.focus(),tv(h),e.preventDefault())}return}if(o===Re.down||o===Re.up){let h=o===Re.down?"following":"preceding",v=gEe(m,h);v&&(v.focus(),tv(v),e.preventDefault());return}if(o===Re.home||o===Re.end){let h=o===Re.home,v=m.closest(".tree"),y;if(_)y=v[h?"firstElementChild":"lastElementChild"].firstElementChild.closest('[role="treeitem"]'),vEe(y)||(y=gEe(y,h?"following":"preceding"));else{let T=v.querySelectorAll(".tree-item.tree-leaf"),I=h?0:T.length-1;y=T[I]}y.focus(),tv(y),e.preventDefault();return}if(o===Re.numPadAsterisk||o===Re.eight&&r){if(!_)return;let h=m.closest("ul");for(let v=0;v
      ${wY}
      `;k();Qe();Ch();Qe();k();k();k();Ch();k();function HG({changeHandler:e,expandedRows:t,id:n,maxCharacterCount:o,name:r,placeholder:s,readonly:i=!1,rows:a=1,value:l="",allowDoubleLength:c=!1}){return d`
      `}function xEe(e){let t=e.target,n=Number(t.getAttribute("data-max-character-count"));if(!t.parentElement)return;let o=t.parentElement.querySelector("span"),r=n-t.value.length;o.textContent=`${r}`,r<=1?o.setAttribute("aria-live","assertive"):o.setAttribute("aria-live","polite")}function BG(e){let t=e.target,n=Number(t.getAttribute("data-expanded-rows")),o=Number(t.getAttribute("data-max-character-count"));if(t.rows=n,t.style.height="auto",!t.parentElement)return;let r=t.parentElement.querySelector("span"),s=o-t.value.length;r.textContent=`${s}`,t.removeEventListener("focus",BG),t.addEventListener("blur",TEe),t.addEventListener("input",xEe)}function TEe(e){let t=e.target,n=Number(t.getAttribute("data-collapsed-rows"));if(t.rows=n,t.style.height="inherit",!t.parentElement)return;let o=t.parentElement.querySelector("span");o.textContent="",t.removeEventListener("blur",TEe),t.removeEventListener("input",xEe),t.addEventListener("focus",BG)}k();k();k();function vVe(e){let t=Array.from(e.querySelectorAll('iframe[src^="https://channel9.msdn.com/"]'));t.length&&t.forEach(n=>{let o=n.src.split("/"),r=o[o.length-2],s=`${IF}: ${r}`;n.title=n.title||s})}function xVe(e){let t=Array.from(e.querySelectorAll('iframe[src^="https://www.youtube"]'));t.length&&t.forEach(n=>{let o=n.src.split("/").pop(),r=`${IF}: ${o}`;n.title=n.title||r})}function TVe(e){let t=[],n=[];window.addEventListener("beforeprint",()=>{Array.from(e.querySelectorAll(".embeddedvideo iframe")).forEach(r=>{if(r.offsetParent!==null){let s=r.src,i=document.createElement("a");i.href=s,i.target="_blank",i.text=s,r.parentElement&&(r.parentElement.appendChild(i),r.hidden=!0,t.push(r),n.push(i))}})}),window.addEventListener("afterprint",()=>{t.forEach(o=>o.hidden=!1),n.forEach(o=>o.remove()),t=[],n=[]})}function zG(e){xVe(e),vVe(e),TVe(e)}k();k();async function GG(e,t,n){let o=await lp(t);if(!(!o||!e)){switch(e){case"details":case"leaderboard":o.add({title:Of,url:`/${o.basePath}/challenges`});break;case"content":n&&o.add({title:Of,url:`/${o.basePath}/challenges`},{title:Uv,url:`/${o.basePath}/challenges/${n}/leaderboard`});break;default:throw new Error("Unsupported page.")}o.render()}}Qe();Ch();var VG="5d6ea118-ff48-4612-a205-7c65e11e49ca",gf="379d1859-15d0-4803-81ed-eb51a2e4945d";var Vo=class{constructor({errorCode:t}){this.errorCode=t}};k();Qe();GF();function jG(e){let n=/(?:status|code)[^\d]*(\d{3})/i.exec(e);return n?parseInt(n[1],10):null}var Cp=class extends ze{constructor(n=null,o=null,r=!0,s=!1,i="Unknown"){super();this.id=n;this.collectionOwner=o;this.isPublicView=r;this.hasActiveTakedowns=s;this.reportStatus=i;this.isUserAuthenticated=C.isAuthenticated;this.isUserChallengeAdmin=C.isChallengeAdmin;this.responseErrorCode=0;this._busy=!1;this._editingId=null;this._editingSectionId=null;this._isEditingSummaryTitle=!1;this._isEditingSummaryDescription=!1;this._isOfficialOrOverride=!1;this._showUserDisplayName=!1}get breadcrumbTitle(){return this.collection?this.collection.name:""}get editingId(){return this._editingId}set editingId(n){this._editingId=n,this.notifyPropertyChanged()}get editingSectionId(){return this._editingSectionId}set editingSectionId(n){let o=this._editingSectionId;this._editingSectionId=n,this.notifyPropertyChanged(),n?document.getElementById("add-edit-section-form")?.focus():document.getElementById(o===gf?"section":`edit-section-${o}`)?.focus()}get isEditingSummaryTitle(){return this._isEditingSummaryTitle}set isEditingSummaryTitle(n){this._isEditingSummaryTitle=n,this.notifyPropertyChanged()}get isEditingSummaryDescription(){return this._isEditingSummaryDescription}set isEditingSummaryDescription(n){this._isEditingSummaryDescription=n,this.notifyPropertyChanged()}get isEditing(){return this.editingId!==null||this.editingSectionId!==null||this.isEditingSummaryTitle||this.isEditingSummaryDescription}get isOfficialOrOverride(){return this._isOfficialOrOverride}set isOfficialOrOverride(n){this._isOfficialOrOverride=n,this.notifyPropertyChanged()}get isChallengeCollection(){return!_t(this.collection?.challengeId)||!_t(this.collection?.learnChallengeId)}get busy(){return this._busy}get showUserDisplayName(){return this._showUserDisplayName}async beforeActivate(n=null){try{if(!this.id)this.collection=n;else{let s=await mt.getList(this.id);s.hasError===!1&&(this.collection=s.data)}let o=new URLSearchParams(location.search),r=o.has("force-official-collection")?o.get("force-official-collection")==="true":!1;if(this._isOfficialOrOverride=this.collection?.isOfficial||r,this.isUserAuthenticated&&this.isUserChallengeAdmin===void 0&&(this.isUserChallengeAdmin=(await Cc("me"))?.isChallengeAdmin??!1),this.collectionOwner===null){let s=await Cc(`id:${this.collection.userId}`);this.setPublicCollectionOwner(s)}C.userId===this.collectionOwner?.userId?(this.setIsPublicView(!1),this.setHasActiveTakedowns(await mt.getActiveTakedowns(this.id))):this.setReportStatus(await mt.getReportStatus(this.id)),this.notifyPropertyChanged()}catch(o){if(o instanceof Error){let r=jG(o.message);r&&(this.responseErrorCode=r)}}}async updateCollection(n,o,r){if(this.busy)throw new Error("Busy");this.setBusy();try{let s=await mt.updateListMetadata(r??this.id,{name:n,description:o});if(s.hasError===!1){let{data:i}=s;this.collection=i}else throw new Vo({errorCode:s.error.errorCode})}finally{this.setHasActiveTakedowns(!1),this.setReady()}}async toggleShowUserDisplayName(){if(this.busy)throw new Error("Busy");this.setBusy();try{let n=await mt.toggleShowUserDisplayName(this.collection.id,!this.collection.showUserDisplayName);if(n.hasError===!1){let{data:o}=n;this.collection=o}else throw new Vo({errorCode:n.error.errorCode})}finally{this.setReady()}}async setPublicCollectionOwner(n){this.collectionOwner=n}async setIsPublicView(n){this.isPublicView=n}async setHasActiveTakedowns(n){this.hasActiveTakedowns=n}async setReportStatus(n){this.reportStatus=n}async deleteCollection(){if(this.busy)throw new Error("Busy");this.setBusy();try{let{submitted:n}=await ao(rD(this.collection.name,Qf,Tc));if(n){let o=await mt.deleteList(this.id);if(o.hasError===!1)location.href=`${dn(C.userName,"collections")}`;else throw new Vo({errorCode:o.error.errorCode})}}finally{this.setReady()}}async localizeCollection(){if(this.busy)throw new Error("Busy");this.setBusy();try{let{submitted:n}=await ao(sD(),!0);if(n){let o=ao(iD());await mt.submitForLocalize(this.id),await o;let r=document.getElementById("submit-loc"),s=document.createElement("p");s.classList.add("margin-top-sm"),s.setAttribute("id","loc-submitted-text");let i=d`${BE}`;x(i,s),document.getElementById("icon-list").parentElement.appendChild(s),r.hidden=!0}}finally{this.setReady()}}async copyCollection(){if(this.busy)throw new Error("Busy");this.setBusy();try{let n=await mt.copyList(this.collection.id,this.collection.name,this.collection.description);if(n.hasError===!1){let{data:o}=n,{submitted:r}=await ao(oEe(qE,OE));r&&(location.href=Cu(o.id).toString())}else throw new Vo({errorCode:n.error.errorCode})}finally{this.setReady()}}async convertCollection(){if(this.busy)throw new Error("Busy");this.setBusy();try{let{submitted:n}=await ao(nEe($E,Up));n&&(await mt.convertList(this.collection.id),location.reload())}finally{this.setReady()}}async updatePrivacy(){if(this.busy)throw new Error("Busy");if(!this.collection||!this.collection.id)throw new Error("Invalid Collection");this.setBusy();try{let n=await mt.toggleListPrivacy(this.collection.id,!this.collection.isPrivate);if(n.hasError===!1){let{data:o}=n;this.collection=o}else throw new Vo({errorCode:n.error.errorCode})}finally{this.setReady()}}async commitUrlItem(n,o,r=-1,s){if(this.busy)throw new Error("Busy");this.setBusy();try{let i=Vxe(o,n),a=await(s?mt.updateItem(this.id,s,i):mt.addItem(this.id,i));if(a.hasError===!1){let{data:l}=a;if(this.collection.sectionCount){let c=r!==-1?r:this.collection.sectionCount-1;if(s){let u=this.collection.sections[c].items.findIndex(p=>p.id===s);this.collection.sections[c].items[u]=l}else this.collection.sections[c].items.push(l),this.collection.sections[c].itemCount=this.collection.sections[c].items.length;return}if(s){let c=this.collection.items.findIndex(u=>u.id===s);this.collection.items[c]=l}else this.collection.items.push(l),this.collection.itemCount=this.collection.items.length}else throw new Vo({errorCode:a.error.errorCode})}finally{this.setReady()}}async moveItem(n,o,r=-1,s){if(this.busy)throw new Error("Busy");this.setBusy();try{if(o===0)return;let i=r!==-1?{sectionId:this.collection.sections[r].id,items:this.collection.sections[r].items.map(u=>u.id)}:{sectionId:null,items:this.collection.items.map(u=>u.id)},a=r!==-1&&this.collection.sections[r+o]?{sectionId:this.collection.sections[r+o].id,items:this.collection.sections[r+o].items.map(u=>u.id)}:null,l=IVe(n,o,i,a),c=await mt.sortList(s??this.id,l);if(c.hasError===!1)this.syncProgress(c.data,this.collection),this.collection=c.data;else throw new Error(c.error.message)}finally{this.setReady()}}async moveSection(n,o,r){if(this.busy)throw new Error("Busy");this.setBusy();try{if(o===0)return;if(o===-1){if(n===0)return;let a=this.collection.sections[n],l=this.collection.sections[n-1];this.collection.sections[n]=l,this.collection.sections[n-1]=a}if(o===1&&this.collection.sections!==void 0){if(n===this.collection.sections.length-1)return;let a=this.collection.sections[n],l=this.collection.sections[n+1];this.collection.sections[n]=l,this.collection.sections[n+1]=a}let s=this.collection.sections.map(a=>({sectionId:a.id,items:a.items.map(l=>l.id)})),i=await mt.sortList(r??this.id,s);if(i.hasError===!1)this.syncProgress(i.data,this.collection),this.collection=i.data;else throw new Error(i.error.message)}finally{this.setReady()}}async moveItemToSection(n,o,r,s){if(this.busy)throw new Error("Busy");this.setBusy();try{if(o===r)return;let i=this.collection.sections.map(c=>({sectionId:c.id,items:[...(c.items??[]).map(u=>u.id)]})),[a]=i[o].items.splice(n,1);i[r].items.unshift(a);let l=await mt.sortList(s??this.id,i);if(l.hasError===!1)this.syncProgress(l.data,this.collection),this.collection=l.data;else throw new Error(l.error.message)}finally{this.setReady()}}async deleteItem(n,o=-1,r){if(!this.busy){this.setBusy();try{let{submitted:s}=await ao(rD(n.data.title,Qf,Tc));if(s){if(await mt.deleteItem(r??this.id,n.id),this.collection.sectionCount&&Array.isArray(this.collection.sections)&&o!==-1){let l=this.collection.sections[o];l.items=(l.items??[]).filter(c=>c.id!==n.id),l.itemCount=l.items.length;return}this.collection.itemCount&&Array.isArray(this.collection.items)&&(this.collection.items=this.collection.items.filter(l=>l.id!==n.id),this.collection.itemCount=this.collection.items.length)}}finally{this.setReady()}}}async commitSection(n,o,r,s){if(this.busy)throw new Error("Busy");this.setBusy();try{let i=await(this.editingSectionId===gf?mt.createSection(s??this.id,[...n?.trim()].length!==0?n:this.getDefaultSectionName(),o,r):mt.updateSection(s??this.id,this.editingSectionId,n,o,r));if(i.hasError===!1){let{data:a}=i;this.syncProgress(a,this.collection),this.collection=a}else throw new Vo({errorCode:i.error.errorCode})}finally{this.editingSectionId!==gf&&this.setHasActiveTakedowns(!1),this.setReady()}}async deleteSection(n,o){if(this.busy)throw new Error("Busy");this.setBusy();try{let r=await mt.deleteSection(o??this.id,n);if(r.hasError===!1){this.syncProgress(r.data,this.collection);let{data:s}=r;this.collection=s}}finally{this.setReady()}}getAmountStrings(){let n="",o="";if(this.collection.totalItems===0)return{pathCountFormat:n,moduleCountFormat:o};let{path:r,module:s}=this.getCollectionItemsAmount();return r!==0&&(n=(r===1?kW:AW).replace("{numberOf}",r.toString())),s!==0&&(o=(s===1?GE:zE).replace("{numberOf}",s.toString())),{pathCountFormat:n,moduleCountFormat:o}}getCollectionItemsAmount(){return this.collection.items.concat(...this.collection.sections?this.collection.sections.map(o=>o.items??[]):[]).reduce((o,r)=>((r.data.pageKind==="path"||r.data.pageKind==="module")&&o[r.data.pageKind]++,o),{path:0,module:0})}canCopyAsChallenge(){return(!!this.isUserChallengeAdmin||C.tenantId===os)&&(Object.values(this.getCollectionItemsAmount()).some(n=>n>0)||Object.values(this.getCollectionSectionItemsAmount()).some(n=>n>0))}setBusy(){this._busy=!0,this.notifyPropertyChanged()}setReady(){this._busy=!1,this.notifyPropertyChanged()}notifyPropertyChanged(){this.publish(new nt)}getDefaultSectionName(n=HN){let[o,r]=[this.collection.sectionCount,this.collection.sections];if(!o||!Array.isArray(r))return n.replace("{number}",qr(1));let s=o+1;for(;r.some(i=>i.name===n.replace("{number}",qr(s)));)s++;return n.replace("{number}",qr(s))}syncProgress(n,o){let r=Object.fromEntries([...o?.items??[],...(o?.sections??[]).flatMap(s=>s.items??[])].filter(s=>s?.id).map(s=>[s.id,s]));for(let s of[...n?.items??[],...(n?.sections??[]).flatMap(i=>i.items??[])])s?.id&&s.data&&r[s.id]?.data&&(s.data.progress=r[s.id].data.progress)}getCollectionSectionItemsAmount(){return(this.collection.sections??[]).reduce((n,o)=>{let r=(o.items??[]).reduce((s,i)=>((i.data.pageKind==="path"||i.data.pageKind==="module")&&s[i.data.pageKind]++,s),{path:0,module:0});return n.path+=r.path,n.module+=r.module,n},{path:0,module:0})}};function IVe(e,t,n,o){if(!n)throw new Error("Initial section is undefined.");let r={sectionId:n.sectionId,items:Zi(n.items)},s=e+t;if(s>=0&&s
      `}function CEe(){let e=document.createElement("div"),t=PVe();return x(t,e),new Te(e)}function PVe(){return d``}function QG(e){let t=document.createElement("div");x(e,t),ov=new Te(t)}function cC(e,t,n="",o=Po,r=Fe,s=!1,i=!1,a=""){return d``}var zr=class extends Cp{constructor(n){super();this.id=n;this.returnedForbidden=!1;this._planBusy=!1;this._skillingPlan=null;this._nextPlanItem=null;this._isNextPlanItemHighlighted=!1;this._isEditingSummaryLearningOutcomes=!1;this._stats=null;this._csv=null;this._editResultCode=-1;this._id=n}get busy(){return this._planBusy}get planId(){return this._id}set planId(n){this._id=n}get plan(){return this._skillingPlan}set plan(n){this._skillingPlan=n,n&&(this.collection=n.contentList,this.isOfficialOrOverride=this.collection?.isOfficial??!1),this.notifyPropertyChanged()}get nextPlanItem(){return this._nextPlanItem}set nextPlanItem(n){this._nextPlanItem=n}get isNextPlanItemHighlighted(){return this._isNextPlanItemHighlighted}set isNextPlanItemHighlighted(n){this._isNextPlanItemHighlighted=n}get isEditing(){return super.isEditing||this.isEditingSummaryLearningOutcomes}get editResultCode(){return this._editResultCode}set editResultCode(n){this._editResultCode=n}get isEditingSummaryLearningOutcomes(){return this._isEditingSummaryLearningOutcomes}set isEditingSummaryLearningOutcomes(n){this._isEditingSummaryLearningOutcomes=n,this.notifyPropertyChanged()}async setIsPublicView(n){this.isPublicView=n}get stats(){return this._stats}set stats(n){this._stats=n}get csv(){return this._csv}set csv(n){this._csv=n}hasStarted(){return!_t(this.plan?.startedOn)}isCompleted(){return!_t(this.plan?.completedOn)||(this.plan?.itemsCompleted??0)===this.collection.totalItems}async moveItem(n,o,r){await super.moveItem(n,o,r,this.collection.id)}async moveItemToSection(n,o,r){await super.moveItemToSection(n,o,r,this.collection.id)}async deleteItem(n,o=-1){await super.deleteItem(n,o,this.collection.id)}async updateCollection(n,o){await super.updateCollection(n,o,this.collection.id)}async localizePlan(){if(this.busy)throw new Error("Busy");this.setBusy();try{let{submitted:n}=await ao(sD(void 0,qre),!0);if(n){let o=ao(iD(Hre));await mt.submitForLocalize(this.collection?.id),await o;let r=document.getElementById("submit-loc"),s=document.createElement("p");s.classList.add("margin-top-sm"),s.setAttribute("id","loc-submitted-text");let i=d`${R0}`;x(i,s),document.getElementById("icon-list")?.parentElement?.appendChild(s),r&&(r.hidden=!0)}}finally{this.setReady()}}resumePlan(){let{item:n,elementToHighlight:o}=this.getFirstIncompleteItem(this.collection.sections??[]);location.hash=o,this.nextPlanItem=n,this.isNextPlanItemHighlighted=!0,setTimeout(()=>ZS(location.hash)),this.notifyPropertyChanged()}setBusy(){this._planBusy=!0,this.notifyPropertyChanged()}setReady(){this._planBusy=!1,this.notifyPropertyChanged()}notifyPropertyChanged(){this.publish(new nt)}async beforeActivate(){try{if(location.hash="",this.plan=await rr.getSkillingPlan(this.planId),this.collectionOwner===null){let o=await Cc(`id:${this.plan?.userId}`);this.setPublicCollectionOwner(o)}C.userId===this.collectionOwner?.userId?(this.setIsPublicView(!1),this.setHasActiveTakedowns(await mt.getActiveTakedowns(this.collection?.id)),await this.getPlanStatistics(),this.csv=`${N.lists}/skillingPlan/${this.planId}/csv`):this.setReportStatus(await mt.getReportStatus(this.collection?.id)),ce(location.search).ref==="profile"&&this.hasStarted()?this.resumePlan():this.nextPlanItem=this.getFirstIncompleteItem(this.collection.sections??[]).item,this.notifyPropertyChanged()}catch{}}async joinPlan(n){if(this.busy)throw new Error("Busy");try{await ao(SEe(),!1,async o=>{let r=o.querySelector("#save-plan-btn");r?.classList.add("is-loading"),this.setBusy();try{let s=await rr.joinSkillingPlan(this.planId);return s.hasError===!1&&(this.plan=s.data),n?.onSuccess?.(),{hasError:!1,data:null}}catch{return Mn(o,"somethingWentWrong"),{hasError:!0}}finally{r?.classList.remove("is-loading")}})}finally{this.setReady()}}async moveSection(n,o){await super.moveSection(n,o,this.collection.id)}async commitSection(n,o,r){await super.commitSection(n,o,r,this.collection.id)}async deleteSection(n,o){await super.deleteSection(n,o??this.collection.id)}async updatePlan(n){if(this.busy)throw new Error("Busy");this.setBusy();let o=null;try{o=await rr.updateSkillingPlan(this.planId,n),o.hasError===!1&&(this.syncProgress(o.data.contentList,this.plan.contentList),this.plan=o.data,this.hasActiveTakedowns=!1,this.editResultCode=200)}catch{this.editResultCode=500}finally{this.setReady()}return o}async toggleShowUserDisplayName(){if(this.busy)throw new Error("Busy");this.setBusy();try{let n=await mt.toggleShowUserDisplayName(this.collection.id,!this.collection.showUserDisplayName);if(n.hasError===!1){let{data:o}=n;this.collection=o}else throw new Vo({errorCode:n.error.errorCode})}finally{this.setReady()}}async deletePlan(){if(this.busy)throw new Error("Busy");this.setBusy();try{await rr.deleteSkillingPlan(this.planId)}finally{this.setReady()}}async dropPlan(){if(this.busy)throw new Error("Busy");this.setBusy();try{let n=await rr.leaveSkillingPlan(this.planId);n.hasError===!1&&(this.plan=n.data)}finally{this.setReady()}}async trackClick(n,o){if(this.busy)throw new Error("Busy");if(o&&window.open(o,"_blank"),!!(!["module","path"].includes(n.data.pageKind)&&n.data.progress!==1&&this.hasStarted())){this.setBusy();try{await rr.trackClick(this.planId,n.id),this.updateTrackedItemProgress(this.collection,n,this.plan)}finally{this.setReady()}}}async getPlanStatistics(){if(this.busy)throw new Error("Busy");this.setBusy();try{let n=await rr.getPlanStatistics(this.planId);n!==null&&(this.stats=n)}finally{this.setReady()}}async addToLearnersGroups(n,o){if(this.busy)throw new Error("Busy");this.setBusy(),this.plan!==null&&(this.plan?.learnerGroups===void 0||this.plan?.learnerGroups===null)&&(this.plan.learnerGroups=[]),this.plan?.learnerGroups?.push(n),this.setReady(),o(this)}async updateLearnerGroup(n){let{id:o,name:r}=n;if(this.plan===null)throw new Error("Plan not found");if(this.busy)throw new Error("Busy");this.setBusy();let s=await rr.updateLearnerGroup(this.plan?.id,o,r);if(s.hasError===!1&&this.plan?.learnerGroups){let i=this.plan.learnerGroups.findIndex(l=>l.id===o),{data:a}=s;i!==-1&&(this.plan.learnerGroups[i]=a)}return this.setReady(),s}async deleteLearnerGroup(n){if(this.busy)throw new Error("Busy");this.setBusy();let o=await rr.deleteLearnerGroup(this.plan?.id,n);return o.hasError===!1&&this.plan?.learnerGroups&&(this.plan.learnerGroups=this.plan?.learnerGroups?.filter(r=>r.id!==n)),this.setReady(),o}getDefaultSectionName(){return super.getDefaultSectionName(Qte)}updateTrackedItemProgress(n,o,r){let s=[...n.items??[],...(n.sections??[]).flatMap(i=>i.items??[])].find(i=>i?.id===o.id&&i.data);s&&(s.data.progress=1,r.itemsCompleted=(r.itemsCompleted??0)+1)}getFirstIncompleteItem(n){n=n.filter(a=>a.items?.length);let o=n[0],r=n[0]?.items?.[0]??null,s=0,i=0;for(let a of n){let l=a.items?.findIndex(c=>(c?.data.progress??0)<1)??-1;if(l!==-1&&a.items?.[l]){o=a,r=a.items[l],i=l,s=n.indexOf(a);break}}return{section:o,item:r,elementToHighlight:Wn(r?.data.uid??"")||`${r?.type+"-"||""}item-${s}${i}`}}};var EEe={architecture:lE,conceptual:D7,tutorial:Vae,certification:bc,appliedSkills:cf,challenge:la,sample:RY,course:qp,examination:Wr,faq:IJ,path:Wf,knownissue:oA,lifecycle:xX,module:kr,apiconnector:Wo,"azure-cli":Wo,cli:Wo,dotnet:Wo,java:Wo,javascript:Wo,odata:Wo,powerconnector:Wo,powershell:Wo,python:Wo,rest:Wo,typescript:Wo,show:w2,series:sA,episode:tx};function rv(e,t,n){return e==="appliedSkills"||e==="certification"||e==="challenge"||e==="course"||e==="examination"||e==="path"||e==="knownissue"||e==="lifecycle"||e==="module"||e==="series"?EEe[e]:t==="architecture"||t==="conceptual"||t==="tutorial"||t==="sample"||t==="faq"||t==="azure-cli"||t==="cli"||t==="dotnet"||t==="java"||t==="javascript"||t==="odata"||t==="powerconnector"||t==="python"||t==="rest"||t==="typescript"||t==="episode"||t==="show"?EEe[t]:n&&n.startsWith("/answers/questions")?_te:""}k();var LVe=()=>`/${b.data.userLocale}${R.reviewFeatures?"/test/plans":"/plans"}`;function sv(e,t,n){let o=new URL(location.href),r=new URLSearchParams(o.search),s=o;if(s.pathname=`${LVe()}/${e}`,t){let i=new URLSearchParams(t);for(let[a,l]of i)s.searchParams.set(a,l)}return n&&(s.hash=n),r.has("preview")&&s.searchParams.set("preview",r.get("preview")??""),s.href}function AEe(e){let t=e.items;if(!t)return 0;let n=t?.filter(r=>(r?.data.progress??0)===1);return n?.length?n.length/t?.length:0}function YG(e){if(location.hash){let t=e.querySelector(location.hash);t!==null&&scrollTo(window.scrollY+t.getBoundingClientRect().top,500)}}function kEe(e,t){let n="primary";return e.data.progress===1?n="accent":t&&(n="info"),`${n} border-radius`}function fD(e,t){let n={completionStatusTag:"",completionStatusTagStyle:"",progressBarLabelStyle:"",progressBarStyle:""};return e===1?(n.completionStatusTag=t==="milestone"?Wre:Qr,n.completionStatusTagStyle=t==="milestone"?"color-primary":"color-success"):n.progressBarLabelStyle=t==="milestone"?"font-weight-bold":"",n}function IEe(e){let t=new URL(e).hostname;switch(t=t.replace("www.","").toLocaleLowerCase(),t){case"github.com":return"Github";case"support.microsoft.com":return"Microsoft Support";case"techcommunity.microsoft.com":return"Microsoft Tech Community";case"youtube.com":return"YouTube";default:return rle}}function PEe(e){return C.tenantId===os&&e!=="bookmarks"}function WG(e,t=""){let{id:n,contentList:{name:o},learningOutcomes:r}=e,s=o??"",i=sv(n,t?`learnerGroupId=${t}`:""),a=encodeURIComponent(gre).replace(encodeURIComponent("{planTitle}"),s),l=[fre,String(hre).replace("{planTitle}",s),bre];return r.length!==0&&l.push(String(_re)+` `+r.map(c=>`- ${c}`).join(` `)),l.push(String(yre)+` `+i),{emailSubject:a,emailBody:encodeURIComponent(l.join(` `)),encodedPlanUrl:encodeURIComponent(i)}}function LEe(e,t){return t.some(n=>n.name.toLowerCase()===e.toLowerCase())}function uC(e,t){e.hidden=!e.hidden,t.hidden=!t.hidden}function KG(e,t,n=!1){return`

      ${e}

      ${n?``:""}
      `}function JG(e,t){let n=decodeURIComponent(e);if(Es(n,t.target)){let r=document.querySelector("#notification-wrapper"),s=KG(ire,"success",!0);r.innerHTML=s}}k();var ZG={email:/\b[A-Z0-9._%+-]+@[A-Z0-9.-]+\.[A-Z]{2,}\b/i,phone:/\b(?:(?:\+?1|\b001)[\s.-]?)?(?:\(?[0-9]{3}\)?[\s.-]?)?(?:\(?[0-9]{3}\)?[\s.-]?)?[0-9]{4}\b/i,externalLink:/((http|ftp|https):\/\/)?([\w_-]+(?:(?:\.[\w_-]+)+))([\w.,@?^=%&:\/~+#-]*[\w@?^=%&\/~+#-])/i};function hD(e){return ZG.email.test(e)}function bD(e){return ZG.phone.test(e)}function _D(e){return ZG.externalLink.test(e)}function dC(e,t,n,o){switch(e){case"InvalidTitle":t.setCustomValidity(QY),t.reportValidity();break;case"TitleMissing":t.setCustomValidity(jY),t.reportValidity();break;case"UrlFormatIncorrect":n.setCustomValidity(KY),n.reportValidity();break;case"Malformed":n.setCustomValidity(JY),n.reportValidity();break;case"Unofficial":if(o)o.textContent=WY,o.hidden=!1;else throw new Error("genericErrorContainerElement was not provided");break;default:if(o)o.textContent=YY,o.hidden=!1;else throw new Error("genericErrorContainerElement was not provided");break}}function RVe(e,t){let r=[...e.value.trim()].length;return r===0?(dC("TitleMissing",e,t),!1):r<2||r>100?(dC("InvalidTitle",e,t),!1):t.value.startsWith("http://")||t.value.startsWith("https://")?!0:(dC("UrlFormatIncorrect",e,t),!1)}function xD(e,t=-1,n){let o=async i=>{i.preventDefault();let a=i.target,l=a.elements.namedItem("add-edit-url-title"),c=a.elements.namedItem("add-edit-url");if(RVe(l,c))try{let u=l.value.trim(),p=c.value.trim();await e.commitUrlItem(u,p,t,n?.id),e.editingId=null}catch(u){let p=a.querySelector("#generic-error-container");u instanceof Vo?dC(u.errorCode,l,c,p):dC("UnexpectedError",l,c,p)}},r=()=>{e.editingId=null},s=i=>{i.key==="Escape"&&r(),i.target instanceof HTMLInputElement&&mC(i)};return d`
      i.target.setCustomValidity("")} />
      i.target.setCustomValidity("")} />
      `}function pC(e,t,n,o,r){switch(e){case"InvalidTitle":t.setCustomValidity(HY),t.reportValidity();break;case"DuplicateTitle":t.setCustomValidity(UY),t.reportValidity();break;case"InvalidDescription":n.setCustomValidity(OY),n.reportValidity();break;case"InvalidDaysToComplete":o?.setCustomValidity(NY),o?.reportValidity();break;case"Invalid":if(r)r.textContent=BY,r.hidden=!1;else throw new Error("genericErrorContainerElement was not provided");break;default:if(r)r.textContent=zY,r.hidden=!1;else throw new Error("genericErrorContainerElement was not provided");break}}function MVe(e,t,n){let s=[...e.value.trim()].length,i=[...t.value.trim()].length;if(s>100)return pC("InvalidTitle",e,t,n),!1;if(i>550)return pC("InvalidDescription",e,t,n),!1;if(n){let a=n.value.trim();if(a!==""){let l=Number(a);if(isNaN(l)||!Number.isInteger(l)||l<1)return pC("InvalidDaysToComplete",e,t,n),!1}}return!0}function XG(e,t){let n=async i=>{i.preventDefault();let a=i.target,l=a.elements.namedItem("add-edit-section-title"),c=a.elements.namedItem("add-edit-section-description"),u=a.elements.namedItem("add-edit-section-days-to-complete");if(MVe(l,c,u))try{let p=l.value.trim(),m=c.value.trim(),g=(()=>{let f=u?.value.trim();if(f)return parseInt(f)})();await e.commitSection(p,m,g),e.editingSectionId=null}catch(p){let m=a.querySelector("#generic-error-container");p instanceof Vo?pC(p.errorCode,l,c,u,m):pC("UnexpectedError",l,c,u,m)}},o=()=>{e.editingSectionId=null},r=i=>{i.key==="Escape"&&o()},s=i=>{mC(i),i.target.setCustomValidity("")};return d`
      ${(()=>{let i=e instanceof zr?"plan":"collection",a=t?"editSection":"newSection";return{collection:{newSection:qN,editSection:FY},plan:{newSection:Vre,editSection:Gre}}[i][a]})()}
      ${e instanceof zr?d`
      `:""}
      `}function mC(e){let n=e.target.closest("form").querySelector("#generic-error-container");n.hidden||(n.textContent="",n.hidden=!0)}function yD(e,t,n){switch(e){case"InvalidTitle":t.setCustomValidity(Mu),t.reportValidity();break;case"DuplicateTitle":let o=DE.replace("{title}",t.value.trim());t.setCustomValidity(o),t.reportValidity();break;case"InvalidContent":t.setCustomValidity(NE),t.reportValidity();break;default:if(n)n.textContent=xW,n.hidden=!1;else throw new Error("genericErrorContainerElement was not provided");break}}function $Ve(e){if(hD(e.value)||_D(e.value)||bD(e.value))return yD("InvalidContent",e),!1;let o=[...e.value.trim()].length;return o<1||o>100?(yD("InvalidTitle",e),!1):!0}function e8(e,t="",n=""){if(!e)return d``;let o=async i=>{i.preventDefault();let a=i.target,l=a.elements.namedItem("edit-summary-title");if($Ve(l))try{let c=l.value.trim(),u=e.collection.description?.trim()||"";await e.updateCollection(c,u),e.isEditingSummaryTitle=!1}catch(c){let u=a.querySelector("#generic-error-container");c instanceof Vo?yD(c.errorCode,l,u):yD("UnexpectedError",l,u)}},r=()=>{e.isEditingSummaryTitle=!1},s=i=>{i.key==="Escape"&&r(),i.target instanceof HTMLInputElement&&(mC(i),i.target.setCustomValidity(""),i.target.reportValidity())};return d`
      `}function vD(e,t,n){switch(e){case"InvalidContent":t.setCustomValidity(NE),t.reportValidity();break;case"InvalidDescription":t.setCustomValidity(Bv),t.reportValidity();break;default:if(n)n.textContent=TW,n.hidden=!1;else throw new Error("genericErrorContainerElement was not provided");break}}function DVe(e){return hD(e.value)||_D(e.value)||bD(e.value)?(vD("InvalidContent",e),!1):[...e.value.trim()].length>550?(vD("InvalidDescription",e),!1):!0}function t8(e,t="",n=""){if(!e)return d``;let o=async i=>{i.preventDefault();let a=i.target,l=a.elements.namedItem("edit-summary-description");if(DVe(l))try{let c=e.collection.name?.trim()||"",u=l.value.trim()||"";await e.updateCollection(c,u),e.isEditingSummaryDescription=!1}catch(c){let u=a.querySelector("#generic-error-container");c instanceof Vo?vD(c.errorCode,l,u):vD("UnexpectedError",l,u)}},r=()=>{e.isEditingSummaryDescription=!1},s=i=>{i.key==="Escape"&&r(),i.target instanceof HTMLTextAreaElement&&(mC(i),i.target.setCustomValidity(""),i.target.reportValidity())};return d`
      `}function REe(e,t){if(t)switch(e){case"InvalidContent":t.setCustomValidity(NE),t.reportValidity();break;case"InvalidDescription":t.setCustomValidity(Bv),t.reportValidity();break;case"Invalid":t.setCustomValidity(yW),t.reportValidity();break;default:break}}function NVe(e){e&&(e.textContent=wW,e.hidden=!1)}function FVe(e,t){let n=!1,o=!0;return t&&(t.textContent="",t.hidden=!0),e.forEach(r=>{r.setCustomValidity("");let s=r.value.trim();s.length>0&&(n=!0,(hD(s)||_D(s)||bD(s))&&(REe("InvalidContent",r),o=!1))}),!n&&e.length>0&&(REe("Invalid",e[0]),o=!1),o}function n8(e,t=""){if(!e||!e.isEditingSummaryLearningOutcomes||e.isPublicView)return"";let n=()=>{e.isEditingSummaryLearningOutcomes=!1},o=async a=>{a.preventDefault();let l=a.target,c=Array.from(l.querySelectorAll('textarea[id^="edit-summary-learning-outcomes"]')),u=l.querySelector("#generic-error-container");if(FVe(c,u))try{let p=e.collection.name?.trim()||"",m=e.collection.description?.trim()||"",g=c.map(_=>_.value.trim()).filter(_=>_.length>0),f={metadata:{name:p,description:m,learningOutcomes:g,listId:e.collection.id??"",isOfficial:e.collection.isOfficial??!1}};await e.updatePlan(f),n()}catch{NVe(u)}},r=a=>{a.key==="Escape"&&n(),a.target instanceof HTMLTextAreaElement&&(mC(a),a.target.setCustomValidity(""),a.target.reportValidity())},s=e.plan.learningOutcomes,i=[...s,"","",""].slice(0,Math.max(3,s.length));return d`
      ${kre}
      ${i.map((a,l)=>d`
      `)}
      `}k();var MEe=bt(),$Ee=b.data.contentLocale||b.data.userLocale;async function ff(e,t){let n=ZF(e),o=[],r={method:"GET"},s=n.map(async i=>{let a={branch:MEe,uids:i.join(";"),locale:$Ee},l=`${N.learn.progress.user}?${pe(a)}`,c=J(l,r),u=await $(c);if(u.ok&&u.status!==204){let p=await u.json();o.push(...p)}if(!u.ok)throw new Qt(u)});try{t?.updateProgress("Getting user progress by uids"),await Promise.all(s),t?.updateProgress("Got user progress by uids")}catch(i){t?.fail(i)}return o}function DEe(e,t){let n={branch:MEe,locale:$Ee},o=`${N.learn.progress.batchUnit}?${pe(n)}`,s={method:"PUT",body:JSON.stringify(e)};return t?.updateProgress("Putting batch Progress"),$(J(o,s)).then(i=>he(i)).then(i=>{if(i.ok)return t?.updateProgress("Completed putting batch progress"),i.json();throw new Qt(i)}).catch(i=>(t?.fail(i),Promise.reject()))}k();var hf={all:aa,ai:"AI search",documentation:ua,training:Xr,credential:mo,qna:sx,reference:Wo,show:Ar};var NEe={...V$};var di={all:aa,last24hours:Qae,last7days:jae,last30days:Yae,last365days:Wae,custom:wK};var TD={advanced:Q9,beginner:z7,intermediate:oX};function o8(e){switch(e){case"beginner":return 0;case"intermediate":return 1;case"advanced":return 2;default:return 3}}var r8={ar:aA,"ar-sa":CX,bg:lA,"bg-bg":EX,"bs-cyrl":AX,"bs-latn":cA,ca:uA,cs:dA,da:pA,de:mA,el:gA,"el-gr":kX,en:fA,"en-my":IX,es:hA,"es-mx":PX,et:bA,eu:_A,fi:yA,fil:vA,fr:xA,ga:TA,gl:wA,he:SA,hi:CA,hr:EA,hu:AA,"hu-hu":LX,id:kA,"id-id":RX,is:IA,it:PA,ja:LA,kk:RA,ko:MA,lb:$A,lt:DA,lv:NA,ms:FA,mt:OA,nb:UA,nl:qA,pl:HA,pt:BA,"pt-br":$X,"pt-pt":DX,ro:zA,ru:GA,sk:VA,sl:jA,"sr-cyrl":QA,"sr-latn":YA,sv:WA,th:KA,tr:JA,uk:ZA,"uk-ua":NX,ur:FX,vi:XA,"vi-vn":OX,"zh-cn":e0,"zh-hk":t0,"zh-tw":n0};var FEe={event:gX,series:sA,show:Ar};var Gr={category:hf,credential_types:NEe,date:di,levels:TD,locales:r8,resource_type:{...bCe,...V$},show_type:FEe,years:RF,author:Gp,tags:SF},iv={azure_categories:K7,category:WN,credential_types:xK,event_groups:iJ,languages:Jee,date:Yv,levels:vX,locales:uX,products:oh,roles:Ote,resource_type:Mte,subjects:_ie,type:rQ,show_type:pX,years:RF,author:Gp,tags:SF},OEe={azure_categories:W7,category:WN,credential_types:vK,event_groups:sJ,languages:Kee,date:Yv,levels:_X,locales:x2,products:nh,roles:Nte,resource_type:Kae,subjects:bie,type:oQ,show_type:dX,years:ule,author:Gp,tags:Aie};function xn(e){switch(e){case"locales":return 0;case"products":return 1;case"languages":return 2;case"roles":return 3;case"levels":return 4;case"subjects":return 5;case"type":return 6;case"resource_type":return 7;case"event_groups":return 8;case"years":return 9;case"azure_categories":return 10;default:return 11}}k();k();k();var HVe=parseInt(P("hoursToComplete"),10),Vxn=vR(HVe).toLocaleLowerCase();k();k();var $e={ar:aA,bg:lA,"bs-latn":cA,ca:uA,cs:dA,da:pA,de:mA,el:gA,en:fA,es:hA,et:bA,eu:_A,fi:yA,fil:vA,fr:xA,ga:TA,gl:wA,he:SA,hi:CA,hr:EA,hu:AA,id:kA,is:IA,it:PA,ja:LA,ka:MX,kk:RA,ko:MA,lb:$A,lt:DA,lv:NA,ms:FA,mt:OA,nb:UA,nl:qA,pl:HA,pt:BA,ro:zA,ru:GA,sk:VA,sl:jA,"sr-cyrl":QA,"sr-latn":YA,sv:WA,th:KA,tr:JA,uk:ZA,vi:XA,"zh-cn":e0,"zh-hk":t0,"zh-tw":n0},wD=new Map([["ar-sa",$e.ar],["bg-bg",$e.bg],["bs-latn-ba",$e["bs-latn"]],["ca-es",$e.ca],["cs-cz",$e.cs],["da-dk",$e.da],["de-at",`${$e.de} (${JN})`],["de-ch",`${$e.de} (${Vv})`],["de-de",$e.de],["el-gr",$e.el],["en-au",`${$e.en} (${KN})`],["en-ca",`${$e.en} (${YE})`],["en-gb",`${$e.en} (${i2})`],["en-ie",`${$e.en} (${e2})`],["en-in",`${$e.en} (${XN})`],["en-my",`${$e.en} (${WE})`],["en-nz",`${$e.en} (${n2})`],["en-sg",`${$e.en} (${r2})`],["en-us",`${$e.en} (${a2})`],["en-za",`${$e.en} (${s2})`],["es-es",`${$e.es}`],["es-mx",`${$e.es} (${t2})`],["et-ee",$e.et],["eu-es",$e.eu],["fi-fi",$e.fi],["fil-ph",$e.fil],["fr-be",`${$e.fr} (${QE})`],["fr-ca",`${$e.fr} (${YE})`],["fr-ch",`${$e.fr} (${Vv})`],["fr-fr",`${$e.fr}`],["ga-ie",$e.ga],["gl-es",$e.gl],["he-il",$e.he],["hi-in",$e.hi],["hr-hr",$e.hr],["hu-hu",$e.hu],["id-id",$e.id],["is-is",$e.is],["it-ch",`${$e.it} (${Vv})`],["it-it",`${$e.it}`],["ja-jp",$e.ja],["ka-ge",$e.ka],["kk-kz",$e.kk],["ko-kr",$e.ko],["lb-lu",$e.lb],["lt-lt",$e.lt],["lv-lv",$e.lv],["ms-my",`${$e.ms} (${WE})`],["mt-mt",$e.mt],["nb-no",$e.nb],["nl-be",`${$e.nl} (${QE})`],["nl-nl",`${$e.nl}`],["pl-pl",$e.pl],["pt-br",`${$e.pt} (${ZN})`],["pt-pt",`${$e.pt} (${o2})`],["ro-ro",$e.ro],["ru-ru",$e.ru],["sk-sk",$e.sk],["sl-si",$e.sl],["sr-cyrl-rs",$e["sr-cyrl"]],["sr-latn-rs",$e["sr-latn"]],["sv-se",$e.sv],["th-th",$e.th],["tr-tr",$e.tr],["uk-ua",$e.uk],["vi-vn",$e.vi],["zh-cn",$e["zh-cn"]],["zh-tw",$e["zh-tw"]],["zh-hk",$e["zh-hk"]]]),BVe=e=>wD.get(e);BVe.keys=()=>wD.keys();var zVe=(()=>{let e=["de","en","es","fr","it"],t=n=>`${n} (${aa})`;return new Map([...wD,...Object.entries($e).filter(([n])=>e.includes(n)).map(([n,o])=>[n,t(o)])])})();k();function GVe(){return Fs.template==="Course"?P("uid")??"":P("iltSchedulingId")??""}var SD=GVe();k();k();k();k();Qe();Qe();k();function kD(e,t="learningpath"){let n=ce();return n["ns-enrollment-type"]||(n["ns-enrollment-type"]=t),n["ns-enrollment-id"]||(n["ns-enrollment-id"]=e),n}var HEe="ModuleProgress",BEe="ModuleAssessmentProgress";async function av(e){if(!S.gamification)return;await ve;let t=JSON.parse(ne.getItem(HEe));if(P("page_type")!=="learn"||!C.isAuthenticated||!t||!t.progress)return;let n=t.progress.reduce((o,r)=>(o[r.unitUid]=r.detail||{},o),{});await DEe(n,e),ne.removeItem(HEe)}async function gC(){await ve;let e=Ah.getItem(BEe);P("page_type")!=="learn"||!C.isAuthenticated||!e||Ah.removeItem(BEe)}k();Qe();k();tm();k();var VEe=d`

      ${Yee.replace("{productName}","Microsoft Educator Center")}

      ${qX}

      ${F(HX)}

      `;k();k();function ZEe(e,t){return t=t??40,e.length<=t?e:`${e.slice(0,t)}...`}function XEe(e){let n=ZEe(e.text,34);return d`
      ${e.iconClasses?d``:""}${n}
      ${e.popoverTemplate}
      `}k();var d9e="skill";function PD(e){let t={classes:["badge-clear","badge-sm","background-color-secondary-light","font-weight-normal"],iconClasses:["docon","docon-ribbon2","gradient-text-vivid"],popoverTemplate:d`

      ${Hte}

      ${e}

      `,text:e,type:d9e};return XEe(t)}var co=e=>{let{title:t,url:n,titleId:o,resourceType:r,label:s=ZY,labelClass:i="is-visually-hidden",buttonExtraClasses:a="button-primary"}=e;return d``};k();Qe();function eAe(e){let{pageKind:t,moduleCount:n,durationInMinutes:o}=e;if(t!=="module"&&t!=="path"||!n&&!o)return"";let r=n?d`
    • ${n} ${n===1?kr.toLowerCase():ox.toLowerCase()}
    • `:"",s=o?d`
    • ${or(o)}
    • `:"";return d``}function tAe(e){let{pageKind:t,start:n,end:o,moduleCount:r}=e;if(t!=="challenge"||(!n||!o)&&r===void 0)return"";let s=n&&o?d`
    • ${sQ.replace("{start}",Qi.format(new Date(n))).replace("{end}",Qi.format(new Date(o)))}
    • `:"",i=r?d`
    • ${r} ${r===1?kr.toLowerCase():ox.toLowerCase()}
    • `:"";return d`${s}${i}`}function nAe(e){let{url:t,submitterUsername:n,answerCount:o,commentCount:r,votes:s}=e;if(!t||!t.startsWith("/answers/questions")||!n&&o===void 0&&r===void 0&&s===void 0)return"";let i=n?d`
    • ${n} ${Xee}
    • `:"",a=s!==void 0?d`
    • ${s} ${nte}
    • `:"",l=o!==void 0?d`
    • ${o} ${ete}
    • `:"",c=r!==void 0?d`
    • ${r} ${tte}
    • `:"";return d`${i}${a}${l}${c}`}function oAe(e){let{pageKind:t,hoursToComplete:n}=e;return t!=="course"?"":n?d`
    • ${p9e(n)}
    • `:""}function rAe(e){let{pageKind:t,start:n,end:o}=e;if(t!=="lifecycle"||!n&&!o)return"";let r=n?d`
    • ${uie.replace("{startDate}",new Date(n).toLocaleDateString())}
    • `:"",s=o?d`
    • ${nJ.replace("{endDate}",new Date(o).toLocaleDateString())}
    • `:"";return d`${r}${s}`}function sAe(e){let{pageKind:t,lastEpisode:n,episodeCount:o,pageType:r}=e;if(r!=="show"&&t!=="series"||!n&&!o)return"";let s=n?d`
    • ${hX.replace("{date}",new Date(n).toLocaleDateString())}
    • `:"",i=o?d`
    • ${mX.replace("{count}",o.toString())}
    • `:"";return d`${s}${i}`}function iAe(e){let{showName:t,uploadDate:n,pageType:o,durationInMillisecond:r}=e;if(o!=="episode"||!t&&!n&&!r)return"";let s=r?tbe(r):null,i=t?d`
    • ${t}
    • `:"",a=n?d`
    • ${bX.replace("{date}",new Date(n).toLocaleDateString())}
    • `:"",l=s?d`
    • ${or(s)}
    • `:"";return d`${i}${a}${l}`}function p9e(e){let t=Math.floor(e/168),n=Math.floor(e%168/24),o=e-t*168-n*24,r=t>0?`${t.toString()} ${t===1?Y0:W0}`:null,s=n>0?`${n.toString()} ${n===1?KE:Wv}`:null,i=o>0?`${o.toString()} ${o===1?nA:Nu}`:null;return[r,s,i].filter(a=>a!==null).join(", ")}Qe();function l8(){let e=Lg(new Date(Date.now()));return d`

      ${ma}

      `}k();k();var m9e=(e,t)=>e?(t.indexOf("?")!==-1?"&":"?")+`sharingId=${e}`:"",aAe=(e,t,n)=>encodeURIComponent((n?n+` `+e.toString():e.href)+m9e(t,e.href));function lAe(e,t,n,o=!0,r=!1){let s=aAe(t,n);return d``}function fC(e,t,n,o,r,s){return d`
      ${e?d``:d`
      ${lAe(n||"",t,o)}
      `}
      `}function c8(e,t=!0,n=!1){let{displayName:o,userName:r,avatarUrl:s,avatarThumbnailUrl:i,userId:a}=e,l=Hn(r,"activity"),c=n?d`${F(lle)}`:"";return t?d`
      ${l2}${o}${c}
      `:d`${gW}`}function cAe(e,t,n){let o=e??t??n;if(!o)return d``;let r=((e??t)?.collectionOwner??n?.challengeCreator).displayName;return d`
      ${uAe(r,o.collection.showUserDisplayName)}
      `}function uAe(e,t){return t?d`${String(VN).replace("{name}",e)}`:d`${qW}${r4(!1)} `}function dAe(e,t,n){let o=e??t??n;return o?!(e??t)?.isPublicView&&!e?.isChallengeCollection?d`
      await o.toggleShowUserDisplayName()} .checked=${o.collection.showUserDisplayName} />
      `:d``:d``}function hC(e,t="",n=""){return d`${`${qr(Math.floor(e*100))}%`}${Qr}`}function pAe(e,t){let{challengeId:n,learnChallengeId:o,name:r,isPrivate:s}=t.collection;return d` ${t?.isChallengeCollection?d`${dQ}`:""} ${fC(s,e,r,C.sharingId)}`}function mAe(e){return!e||!e?.collection?d``:d`
      e.updatePrivacy()} />
      ${pW}
      `}function gAe(e,t,n,o){if(!t&&!n&&!o)return d``;let r=_t(n)?_t(o)?d``:d``:d``,s=d`

      ${_t(n)?QW:sse}

      `;return _t(t)?r:s}function g9e(){return d``}function u8(e){return e.sectionsCount&&e.sectionsCount>1?d`
      e.isBusy?t.preventDefault():void 0} @keydown=${t=>e.isBusy&&(t.key==="Enter"||t.key===" ")?t.preventDefault():void 0} >

      ${Kre}

      `:d``}function hAe(e,t,n,o=0,r=-1,s="h3",i=!1){let{userLocale:a}=b.data,{pageKind:l,pageType:c,title:u,url:p,uid:m}=t.data;p=p,u=u;let g=e instanceof zr,f=g?kEe(t,e.nextPlanItem?.id===t.id&&e.isNextPlanItemHighlighted):void 0,_=S.trainingSkills&&t.data.pageKind==="path"&&t.data.display_skills?.length?d`
      ${PD(t.data.display_skills[0])}
      `:"",h=K=>{let Le=kD(K.id,"Collection");return l==="challenge"&&t.data.challengeId&&(Le.id=t.data.challengeId),`${pe(Le)}`},v=rv(l,c,p),y=t.type==="url"?`${IEe(p)}`:v,T=l==="challenge"&&t.data.challengeId?p.split("?")[0]:p,I=t.data.url&&t.data.url.includes("/answers/"),E=t.type==="url"?p:`/${I?t.data.rawUrl.split("/")[3]:a}${T}?${h(e.collection)}`,q=async()=>{e.editingId=t.id},D;g&&(D=e.hasStarted()?d`${u}`:d``);let le=t.type==="url"?d`
      ${g?D:d`${fAe(s,u)}`}
      `:g?d` ${D} `:d`${fAe(s,u)}`,we=K=>f9e(e,n,t,r,K);return e.editingId===t.id?xD(e,r,t):d`
    • ${y}

      ${le} ${t.data.iconUrl?d``:""}
      ${eAe(t.data)}${_}
      ${we(i)}
    • `}function f9e(e,t,n,o=-1,r=!1){let{challengeId:s,userId:i}=e.collection;return d`${e.isPublicView||e.isOfficialOrOverride&&i!==C.userId||s?b9e(e.isUserAuthenticated,n,r,e):h9e(e,t,n,o,r)}`}function h9e(e,t,n,o=-1,r=!1){n.data.uid=n.data.uid;let s=o>=0?!(o===0&&t===0):t!==0,i=o>-1?!(o>=e.collection.sections?.length-1&&t>=e.collection.sections[o]?.items.length-1):t${l}`:d``}function b9e(e,t,n=!1,o){let r=n?d``:void 0,s=bAe(o,t,e);return r||s?d``:""}function _9e(e,t){if(!e||!t)return d``;let n=t.data.progress??0,o=!(t?.data?.pageKind==="path"||t?.data?.pageKind==="module"),{completionStatusTag:r,completionStatusTagStyle:s}=fD(n,"item");if(n===0){if(o){let i=y9e(e,t);return d``}return d``}return n===1?d`${r}`:n>0&&n<1?d`${ex}`:d``}function bAe(e,t,n){if(!n)return d``;let o=(()=>{let r=t.data.progress,s=e instanceof zr,i=s&&e?.hasStarted?.(),a=!s&&typeof r=="number";if(i)return _9e(e,t);if(a)return hC(r)})();return o?d``:""}function y9e(e,t){let n=document.createElement("div"),o=v9e(e,t);return x(o,n),new Te(n)}function v9e(e,t){return d``}function fAe(e="h3",t){let n={h3:d`

      ${t}

      `,h4:d`

      ${t}

      `,h6:d`
      ${t}
      `};return n[e]||n.h3}function p8(e,t="collection"){let n=(t==="plan"?Voe:KW).replace("{url}",e),o=uW,r=WW,s=SW;return t==="plan"&&(o=joe,r=Qoe,s=Yoe),d`

      ${o}

      ${r} ${s}

      ${F(n)}
      `}function _Ae(){return d`

      ${RE}

      ${eW}


      1. ${tW}
      2. ${nW}
      3. ${F(oW)}

      ${rW}

      `}function bC(e,t,n,o,r=!0){return d`

      ${t}

      ${n}


      ${o}
      `}function m8(e,t){let n=(()=>{let r=e.collection.sections;if(Array.isArray(r)&&r.length>0)return d`
      ${r.map((i,a,l)=>d`
      ${x9e(e,i,a,l,t)} ${d8(e,i.items,void 0,a)}
      `)}
      `;let s=e.collection.items;return Array.isArray(s)&&s.length>0?d8(e,s,void 0,-1):B$(EW,{htmlMessage:{replaceTarget:"{link}",replaceWith:`${zl?"/test":""}/training/browse/`}})})(),o=d`${C9e(e)} ${S9e(e)} ${E9e(e)}`;return d`${n}${o}`}function x9e(e,t,n,o,r){return d`

      ${r} ${n+1}

      ${e.isPublicView?"":d``}
      ${e.isPublicView?"":d`
      ${n>0?d``:""} ${o.length>1&&n`:""} ${!(e instanceof zr)||o.length>1?d``:""}
      `}
      ${e instanceof zr?d`Progress:${w9e(t)}`:""}
      ${(()=>{let s=e.editingSectionId===t.id,i=!_t(t.name),a=!_t(t.description),l=!_t(t.daysToComplete),c=i||a||l;return d`
      ${s?XG(e,t):c?d` ${i?d`

      ${t.name}

      `:""} ${a?d`

      ${t.description}

      `:""} ${l?T9e(t.daysToComplete):""} `:""}
      `})()}
      `}function d8(e,t,n=0,o=-1,r="h4",s=!1){return!t||t.length===0?mCe(e.isPublicView):d`
        ${t.map((i,a)=>hAe(e,i,a,n,o,r,s))}
      `}function T9e(e){return _t(e)?"":d`

      ${jre}${e}

      `}function w9e(e){let t=AEe(e),{completionStatusTag:n,completionStatusTagStyle:o,progressBarLabelStyle:r,progressBarStyle:s}=fD(t,"milestone");return t===1?d`${n}`:d`
      ${qr(Math.floor(t*100))}%
      `}function S9e(e){return e.editingSectionId===gf?XG(e):""}function C9e(e){return d`${e.editingId===VG?d`
      ${xD(e)}
      `:""}`}function E9e(e,t="margin-top-xl"){if(e.isPublicView)return"";let n={handleEvent(r){r.preventDefault(),e.editingId=VG}},o={handleEvent(r){r.preventDefault(),e.editingSectionId=gf}};return d` ${d`
      ${e.isOfficialOrOverride&&!(e instanceof zr)?d``:""} ${(e.collection?.items?.length??0)>0||(e.collection?.sections?.length??0)>0?d``:""}
      `} `}k();function LD(...e){let[t,n,o=!0]=e,r=d` ${F($Q)}
      • ${F(t)}
      • ${F(n)}
      `;return bC("ms--challenges-violation-banner",MQ,r,NQ,o)}k();var JLn=new Array(100).fill(0).map((e,t)=>({id:`team${t+1}`,name:`Team ${t+1}`,imageUrl:"",hasMembers:!!(t%3)}));k();var g8={"ar-sa":!0,"he-il":!0};var u$n=Ul();k();k();k();Qe();k();k();var vAe=e=>[{id:"plan-title",name:"plan-title",title:xc,inputType:"text",dataBiName:"plan-title",value:e.title,placeholder:qoe,required:!0},{id:"plan-description",name:"plan-description",title:UN,inputType:"textarea",dataBiName:"plan-description",cssClasses:"padding-bottom-xs",value:e.description,required:!1},{id:"learning-outcomes",title:Uu,subtitle:Ire,tip:Pre,cssClasses:"padding-top-xs border-top"},{id:"plan-outcome-1",name:"plan-learning-outcome-1",title:Lre,inputType:"textarea",dataBiName:"plan-outcome-1",value:e.learningOutcomes?.[0]??"",required:!1},{id:"plan-outcome-2",name:"plan-learning-outcome-2",title:Rre,inputType:"textarea",dataBiName:"plan-outcome-2",value:e.learningOutcomes?.[1]??"",required:!1},{id:"plan-outcome-3",name:"plan-learning-outcome-3",title:Mre,inputType:"textarea",dataBiName:"plan-outcome-3",value:e.learningOutcomes?.[2]??"",required:!1},{id:"plan-official",name:"official-plan",title:Dre,inputType:"checkbox",dataBiName:"plan-official-checkbox",tip:Ore,value:e.isOfficial,isDirty:!1}];function xAe(e){let t=e.elements.namedItem("plan-title"),n=t.value;if(!n)return t.setCustomValidity(Mu),t.reportValidity(),Mn(e,"planNewTitle"),null;let o=e.elements.namedItem("plan-description").value,r=[e.elements.namedItem("plan-learning-outcome-1").value,e.elements.namedItem("plan-learning-outcome-2").value,e.elements.namedItem("plan-learning-outcome-3").value].map(i=>i.trim()).filter(i=>i.length>0),s=e.elements.namedItem("official-plan")?.checked??!1;return{title:n,description:o,learningOutcomes:r,isOfficial:s}}var TAe;async function wAe(e,t){e.preventDefault();let n=document.getElementById("ms--create-plan"),o=e.target;na(n);let r=xAe(n);if(r===null)return;let{title:s,description:i,learningOutcomes:a,isOfficial:l}=r,u=n.elements.namedItem("official-plan")?.dataset.changed==="true",p={listId:n.dataset.listId??"",name:s,description:i,learningOutcomes:a??[],isOfficial:l};o.disabled=!0,o.classList.add("is-loading");try{let m=await rr.createSkillingPlan(p);if(m.hasError===!0)Mn(n,"somethingWentWrong");else{let g,f=sv(m?.data?.id);if(l&&u&&(g=CEe()),g){t.hide(),g?.show();let _=g?.contentElement.querySelector(".modal-close");[g?.contentElement.querySelector("button#close-official-plan-modal"),_].forEach(v=>{if(!v)throw new Error("Something went wrong with the close buttons in the Official plan informative modal.");v.onclick=()=>{g?.hide(),location.href=f}})}else location.href=f}}catch(m){throw Mn(n,"somethingWentWrong"),new Error(`error: ${m.message}`)}finally{o.disabled=!1,o.classList.remove("is-loading")}}async function SAe(e,t){if(!t)return;let n=e.contentElement.querySelector("button#ms--plan-modal-primary-btn");if(!n)throw new Error("Primary button not found");n.onclick=async()=>{n.disabled=!0,n.classList.add("is-loading"),na(e.contentElement);try{await t.deletePlan(),e.hide(),location.href=Hn("me","plans").toString()}catch(o){throw Mn(e.contentElement,"somethingWentWrong"),new Error(`error: ${o.message}`)}finally{n.disabled=!1,n.classList.remove("is-loading")}}}async function CAe(e,t,n){let o=e.contentElement.querySelector("button#ms--plan-modal-primary-btn");if(!o)throw new Error("Primary button not found");o.onclick=async r=>{r.preventDefault(),o.disabled=!0,o.classList.add("is-loading"),na(e.contentElement);try{await t.dropPlan(),e.hide(),n()}catch(s){throw Mn(e.contentElement,"somethingWentWrong"),new Error(`error: ${s.message}`)}finally{o.disabled=!1,o.classList.remove("is-loading")}}}async function EAe(e){let t=e.elements.namedItem("plan-learner-group-name"),n=t.value,o=t.dataset.planId;t.classList.remove("input-danger"),e.querySelector("button[type=submit]")?.classList.add("is-loading");try{let r=await rr.createLearnerGroup(o,n);return $9e(r,e)}catch(r){throw new Error(`error: ${r.message}`)}}function $9e(e,t){if(e.hasError===!0){e.error.errorCode==="AlreadyExists"?Mn(t,"learnerGroupAlreadyExists"):Mn(t,"somethingWentWrong");let n=t.elements.namedItem("plan-learner-group-name");n.focus(),n.classList.add("input-danger");let o=t.querySelector("button[type=submit]");return o&&o.classList.remove("is-loading"),{hasError:!0}}return{hasError:!1,data:e.data}}async function AAe(e){let t=e.closest(".learner-group-details");if(!t)throw new Error("Could not find the learner group details");let n=t.nextElementSibling,o=n.querySelector(".cancel"),r=n?.querySelector("input");uC(t,n),n.focus(),o&&(o.onclick=s=>{s.preventDefault(),uC(t,n),r&&(r.value=r?.dataset.originalName)})}async function kAe(e,t){let n=t.parentElement?.previousElementSibling,o=t.parentElement,r=o?.querySelector("input"),s=r?.dataset.groupId,i=o.querySelector("#learner-group-submit");if(i?.classList.add("is-loading"),r?.value===r?.dataset.originalName){i?.classList.remove("is-loading"),uC(n,o),r.value=r?.dataset.originalName;return}if(LEe(r?.value,e.plan?.learnerGroups??[])){Mn(t,"learnerGroupAlreadyExists"),r?.focus(),r?.classList.add("input-danger"),i?.classList.remove("is-loading");return}na(t);let a=await e.updateLearnerGroup({id:s,name:r?.value});if(a.hasError===!1){let{data:l}=a,c=n.querySelector(".group-name");c&&(c.textContent=l.name,r.dataset.originalName=l.name),uC(n,o),r.classList.remove("input-danger"),i?.classList.remove("is-loading")}else Mn(t,"somethingWentWrong"),r.focus(),r.classList.add("input-danger"),i?.classList.remove("is-loading")}async function IAe(e,t,n,o){TAe=e.contentElement.querySelector("#notification-wrapper");let r=cC(are,d`${F(lre.replace("{learningGroupName}",t.plan?.learnerGroups?.find(i=>i.id===n)?.name||ux))}`,void 0,Yr,Fe,!0);if(e.hide(),(await ao(r,!1,i=>D9e(i,t,n,o))).submitted){e.show();let i=KG(cre,"success",!0);TAe.innerHTML=i}}async function D9e(e,t,n,o){let r=e.querySelector("button[type=submit]");r?.classList.add("is-loading");let s={hasError:!1,data:null};try{await t.deleteLearnerGroup(n),s={hasError:!1,data:null}}catch{Mn(e,"somethingWentWrong"),s={hasError:!0}}finally{o.closest(".card")?.remove(),r?.classList.remove("is-loading")}return s}k();var PAe;async function RAe(e,t=null,n=N.profile.reportConcern,o,r,s="description",i){let a=document.createElement("div");PAe=new Te(a);let l=d``;if(PAe.show(),e.isAuthenticated&&t===null){let u=d``;x(d``,a);let p=Zn()??"";t=await sm(p)}l=d` ${q9e(N9e,i,k2,r,void 0,s)} ${H9e(t)}

      ${F(bte)}

      ${o||""} `,x(d``,a);let c=a.querySelector("#report-content-form");U9e(),Q9e(c),t!==null&&j9e(c,t)}function N9e(e,t,n="abuseCategory",o=!1){let r=t||kTe;return d`
      `}function LAe(e){return d``}function F9e(e,t,n,o,r){return d``}function O9e(e,t){return d`
      `}function U9e(){window.addEventListener("form-validating",e=>{let t=WS(e.detail.form),n=F$(t);e.detail.errors?.length>=0&&mG(e.detail.form,e.detail.errors),t&&!t.querySelector("[data-warning-icon-container]")&&N$(t),n&&dG(n)}),window.addEventListener("clear-validation-errors",e=>{let t=e.detail.target;KS(t)})}function q9e(e,t,n=k2,o,r,s,i,a=!1){return d`
      ${e(r,t,o,a)}
      `}function H9e(e){if(e===null)return d`

      ${F(pte)}

      `;let[t,n]=MAe(e);return d`
      `}function B9e(e){return e.authenticationModes?e.authenticationModes.map(t=>t.type).includes("MSA"):!1}function z9e(e){let t=e.authenticationModes.find(n=>n.type==="MSA");return t?t.upn:null}function G9e(e){let t=e.authenticationModes.find(n=>n.type==="AAD");return t?t.upn:null}function V9e(e,t,n){return t??(_t(e.email)?n:e.email)??""}function MAe(e){let t=B9e(e),n=t?z9e(e):null,o=t?null:G9e(e),r=V9e(e,n,o);return[t,r]}function j9e(e,t){let[n,o]=MAe(t);if(n){let i=e.querySelector("#report-msa-email-account");i.innerText=o}let r=e.querySelector("#opt-into-email-checkbox"),s=e.querySelector("#submitter-info");r.addEventListener("change",()=>{r.checked?s.hidden=!1:s.hidden=!0})}function Q9e(e){if(!e)return;let t=e.querySelector("#select-reason"),n=e.querySelector("#other-reason-textarea-container"),o=n.querySelector("textarea");if(!t||!n||!o)return;let r=t.value===Io[14]||t.value===14 .toString()||t.value===Io[24]||t.value===24 .toString();r&&(n.hidden=!1,o.required=!0),t.addEventListener("change",()=>{r=t.value===Io[14]||t.value===14 .toString()||t.value===Io[24]||t.value===24 .toString(),o.value="",r?(n.hidden=!1,o.required=!0,o.disabled=!1):(n.hidden=!0,o.required=!1,o.disabled=!0)})}k();Qe();k();var RD;function $Ae(e){RD=e}function DAe(e,t){let n=e.isOfficial?Ei:$s,o=s=>{let i=s.target;n=i.checked?Ei:$s;let a=document.querySelector("#toggle-text-plan-official");x(n,a),i.getAttribute("data-changed")==="false"&&i.setAttribute("data-changed","true")},r=vAe(e).map(s=>{let{id:i,name:a,title:l,subtitle:c,tip:u,inputType:p,dataBiName:m,cssClasses:g,required:f}=s;if(i==="plan-official"&&!t)return d``;let _=i==="plan-title"&&e.isNew===!0,h=p?p==="textarea"?d``:p==="checkbox"?d`
      ${n}
      `:d`{let y=v.target;i==="plan-title"&&(W9e(y,Mu),y.classList.remove("input-danger"))}} />${_?d`

      ${$oe}

      `:""} ${i==="plan-title"?d``:""}`:"";return d`
      ${i==="plan-official"?Y9e():""}
      ${c?d`

      ${c}

      `:""}
      ${h}
      ${u?d`

      ${u}

      `:""}
      `});return d`

      ${Koe}

      ${r}
      `}function Y9e(){return d`
      ${F(Fre)}
      `}function W9e(e,t){e.setCustomValidity(""),e.validity.valid||(t&&e.setCustomValidity(t),e.reportValidity())}function NAe(e){return e?d`
      • ${e.stats?.participantsStarted}

        ${Joe}

      • ${e.stats?.participantsJoined}

        ${ex}

      • ${e.stats?.participantsCompleted}

        ${Woe}

      ${vre}

      ${xre}

      • ${Tre}
      • ${wre}
      • ${Sre}
      • ${Cre}
      • ${Ere}
      • ${Are}
      `:d``}function FAe(e,t){if(!t?.plan)return d``;let{emailSubject:n,emailBody:o,encodedPlanUrl:r}=WG(t.plan);async function s(){RD.hide();let i=J9e(iF,mre,t?.plan.id,Qv,!0),a=await ao(i,!1,EAe);return t&&a.submitted?t.addToLearnersGroups(a.data,l=>e(l)):RD.show(),d``}return d`
      ${dre}
      ${ure}
      ${F(pre)}
      ${t.plan?.learnerGroups?.map(i=>K9e(t,i))}
      `}function K9e(e,t){let{emailSubject:n,emailBody:o,encodedPlanUrl:r}=WG(e.plan,t.id);return d`
      ${ux}:${t.name}
      `}function J9e(e,t,n,o=Po,r=!1){return n?d``:d``}k();function _C(e,t){return d``}function f8(e,t,n){return d`
      ${t}
      `}function h8(e,t,n){return d``}var bf;function yC(e,t,n){if(!t&&!n?.plan)return;let o=d``,r=document.createElement("div");bf=new Te(r),$Ae(bf);let s={title:t?.name??"",description:t?.description??"",isOfficial:t?.isOfficial??!1},i,a;switch(e){case"new":let l=t?.id;n?.plan&&(s.title=n?.plan?.contentList.name??"",s.description=n?.plan?.contentList.description??"",s.isOfficial=n?.plan?.contentList.isOfficial??!1,s.learningOutcomes=n?.plan?.learningOutcomes??[],l=n?.plan?.listId,s.isNew=!0),o=_C("plan",{title:tre,body:f8("create-plan",DAe(s,PEe(n?.collection?.id)),l),footer:h8("plan",bf)}),x(o,r),i=r.querySelector("button[type=submit]"),i&&(i.innerText=Qv,i.setAttribute("aria-label",Qv),i.setAttribute("data-bi-name","create-plan-btn"),i.onclick=async c=>{await wAe(c,bf)}),a=r.querySelector("button#cancel-plan-btn"),a&&a.setAttribute("data-bi-name","cancel-create-plan-btn");break;case"invite":o=_C("plan",{title:lh,body:FAe(c=>yC("invite",void 0,c),n),footer:d``}),x(o,r);break;case"progress":o=_C("plan",{title:ch,body:NAe(n),footer:d``}),x(o,r);break;default:break}if(o)bf.show();else throw new Error(`Invalid side panel content type: ${e}`)}function b8(e,t,n){if(!e&&!t&&!n)return d``;Pv(w.body);let o=!_t(t),r=!_t(n),s={vm:e,vmPlans:t,vmChallenge:n},i=vC(s),{lastModified:a,totalDuration:l=0,shouldLocalize:c}=i,u=!!e?.isOfficialOrOverride||!!t?.collection.isOfficial||!!e?.isChallengeCollection,p=w.getElementById("loc-submitted-text"),m={pathCountFormat:"",moduleCountFormat:""};if(e){let{pathCountFormat:h,moduleCountFormat:v}=e.getAmountStrings();m.pathCountFormat=h,m.moduleCountFormat=v}let{pathCountFormat:g,moduleCountFormat:f}=m,_=e?.isChallengeCollection?d` ${l?d`
    • ${or(l)}
    • `:""} ${g?d`
    • ${g}
    • `:""} ${f?d`
    • ${f}
    • `:""} `:!t?.isPublicView&&a!==void 0?d`
    • ${ZK} ${new Intl.DateTimeFormat(b.data.userLocale).format(new Date(a))}
    • `:"";return d`
      ${u||r?d`${cAe(e,t,n)}`:""}
      ${u||r?dAe(e,t,n):""} ${zAe(s)?mAe(e):""}
      ${p||r?"":d`

      ${c?o?R0:BE:""}

      `}
      `}function vC(e){return(e.vm??e.vmPlans??e.vmChallenge)?.collection}function MD(e){let{vm:t,vmPlans:n}=e;return t?.collectionOwner?.userId===C.userId||n?.plan?.userId===C.userId}function _8(e){return e.vmPlans?.hasStarted()===!0}function BAe(e){return e.vmPlans?.isCompleted()===!0}function Z9e(e){let{vm:t,vmPlans:n}=e,o=!_t(t),r=!_t(n),s=n?.isPublicView||t?.isPublicView,i=vC(e),a=i?.isOfficial,l=i?.shouldLocalize;return(o||r)&&!(s||l||!a)&&MD(e)}function OAe(e){return!!e.vmPlans&&MD(e)}function X9e(e){return!!e.vmPlans&&MD(e)}function e7e(e){return!!e.vmPlans&&_8(e)&&!BAe(e)}function UAe(e){return!!e.vmPlans&&_8(e)&&!BAe(e)}function qAe(e){return!!e.vmPlans&&!_8(e)&&C.isAuthenticated}function HAe(e){return!!e.vmPlans&&!C.isAuthenticated}function t7e(e){let{vm:t,vmPlans:n}=e,o=vC(e);return!t?.isChallengeCollection&&!MD(e)&&!o?.isOfficial&&(!!t&&t?.reportStatus!=="Unknown"||!!n&&n?.reportStatus!=="Unknown")}function zAe(e){if(!e.vm&&!e.vmPlans)return!1;let{vm:t,vmChallenge:n}=e,o=!_t(t),r=!_t(n),i=vC(e)?.id;return o&&!(t?.isPublicView||t?.isOfficialOrOverride&&t?.collectionOwner?.userId!==C.userId||t?.isChallengeCollection||i==="bookmarks")||r&&!!n?.isChallengeOwner()&&!!n?.isChallengeUpcoming()}function n7e(e){let{vm:t,vmPlans:n,vmChallenge:o}=e,s=vC(e)?.id,i=Cu(s),a=Ja("resume-plan-button",sh,sh,()=>n?.resumePlan(),"resume-plan-btn",sh,"button-sm button-primary button-filled");function l(){function y(){let T=w.getElementById("start-or-resume");T&&x(a,T)}if(!C.isAuthenticated){Un(location.href);return}n?.joinPlan({onSuccess:()=>{y()}})}let c=Ja("start-plan-button",ga,ga,()=>l(),"start-plan-btn",ga,"button-sm button-primary button-filled inner-focus"),u=Ja("sign-in-plan-button",gx,gx,()=>l(),"sign-in-plan-btn",gx,"button-sm button-primary button-filled",!n?.isPublicView),p=o?Ja("delete-challenge-button",vQ,d``,()=>o?.deleteChallenge(),"delete-challenge-btn",Yr,"button-sm button-clear"):Ja("delete-collection-button",fW,d``,()=>t?.deleteCollection(),"delete-collection-btn",Yr,"button-sm button-clear");async function m(y){y&&(QG(cC(Noe,d`${Foe}`,Ooe,Uoe,$s)),ov.show(),await CAe(ov,y,()=>{let T=w.getElementById("start-or-resume");T&&x(c,T)}))}let g=()=>Ja("drop-plan-button",P0,d``,()=>m(n),"drop-plan-btn",P0,"button-sm button-clear"),f=d`
      ${Ja("submit-loc-button",HE,d``,()=>t?.localizeCollection()??n?.localizePlan(),"localize-list-btn",HE,"button-sm button-clear margin-right-none")}
      ${LW}
      `,_=!S.shareLink||s==="bookmarks"?d``:t?d`${pAe(i,t)}`:n?d`${fC(!1,new URL(sv(n?.plan?.id),location.origin),n?.collection?.name,C.sharingId,!1,"share-plan-btn")}`:o?d`${fC(!1,new URL(lo(o?.challengeDetails?.id),location.origin),o?.challengeDetails?.contentList.name,C.sharingId)}`:d``,h=t?.isChallengeCollection||!C.isAuthenticated||s==="bookmarks"?d``:gAe((y,T,I)=>yC(y,T,I),t,n,o);return d` ${UAe(e)||qAe(e)||HAe(e)?d`
      ${UAe(e)?a:""} ${qAe(e)?c:""} ${HAe(e)?u:""}
      `:""} ${_} ${h} ${t7e(e)?o7e(t,n):""} ${OAe(e)?d`${a7e(n)}`:""} ${Z9e(e)?f:""} ${X9e(e)?d`${l7e()}`:""} ${zAe(e)?p:""} ${OAe(e)?d` ${r7e(n)}`:""} ${e7e(e)?g():""} `}function y8(e,t,n){return!e&&!t&&!n?d``:d`
      ${n7e({vm:e,vmPlans:t,vmChallenge:n})}
      `}function Ja(e,t,n,o,r,s,i,a=!1){return d``}function o7e(e,t){let n=d`${t?d``:""}`,o=e?.reportStatus==="Active"||t?.reportStatus==="Active",r=Ja("report-a-concern-btn",p0,d``,()=>RAe(C,null,`${N.lists}/report/concern`,n),e?"collection-report-a-concern-btn":"plan-report-a-concern-btn",p0,"button-sm button-clear margin-right-none",o),s=d`
      ${e?d`

      ${sK}

      ${F(iK)}

      `:d`

      ${lse}

      ${F(cse)}

      `}
      `;return d`
      ${r} ${o?s:""}
      `}function r7e(e){return e?Ja("delete-plan-button",Yr,d``,async()=>{QG(cC(nre,rre,d`${e.plan?.contentList.name??""}`,sre,void 0,void 0,e.plan?.hasParticipants,ore)),ov.show(),await SAe(ov,e)},"delete-plan-btn",Yr,"button-sm button-clear"):d``}function s7e(e){return Ja("plan-progress-button",ch,d``,()=>yC("progress",void 0,e),"view-plan-progress-btn",ch,"button button-clear button-block color-text justify-content-flex-start inner-focus")}function i7e(e){return Ja("invite-learners-button",lh,d``,()=>yC("invite",void 0,e),"plan-invite-learners-btn",lh,"button button-clear button-block color-text justify-content-flex-start inner-focus")}function a7e(e){return e?d`
      • ${s7e(e)}
      • ${i7e(e)}
      `:d``}function l7e(){return d`
        ${[{href:"/training/browse",label:Xr},{href:"/credentials/browse",label:mo},{href:"/docs",label:ua},{href:"/shows/browse",label:Ar}].map(t=>d`
      • ${t.label}
      • `)}
      `}function v8(e,t){if(!e&&!t)return d``;let n=(e??t)?.collection;if(!n)return d``;let o=e??t,{challengeId:r,learnChallengeId:s,description:i,totalItems:a,name:l,remainingDuration:c,totalDuration:u,isFallbackLocale:p,shouldLocalize:m,sectionCount:g}=n,f=!_t(t),_=t?"plan":o?.isChallengeCollection?"challenge":"collection",h={challenge:"--hero-background-image-light: url('/en-us/media/profile/CSCCollectionHeroImage.png?branch=main');--hero-background-image-dark: url('/en-us/media/profile/CSCCollectionHeroImage.png?branch=main'); --border-gradient-end-color: #271e6d",collection:"--hero-background-image-light: url('/en-us/media/profile/OfficialCollectionsHeroImage.png?branch=main');--hero-background-image-dark: url('/en-us/media/profile/OfficialCollectionsHeroImage.png?branch=main'); --border-gradient-end-color: #053986",plan:"--hero-background-image-light: url(/media/learn/plans/skilling_plan_hero.png?branch=main);--hero-background-image-dark: url(/media/learn/plans/skilling_plan_hero.png?branch=main);--border-gradient-end-color: #152c75"},v={challenge:"has-background-challenge",collection:"has-background-collection",plan:"has-background-plan"},y={challenge:iQ,collection:$Y,plan:Zoe},T=!o?.isPublicView&&!o?.isChallengeCollection?d``:"";return d` ${e?.isPublicView&&p&&m?Jt(MW):""}

      ${y[_]}

      ${l} ${o?.collectionOwner?.userId===C.userId?d``:""}

      ${f?VAe(g):""} ${o?.isEditingSummaryTitle?e8(o,o?.isOfficialOrOverride||o?.isChallengeCollection?"has-text-collection-invert":""):""} ${i?d`

      ${i} ${T}

      `:!o?.isEditingSummaryDescription&&!o?.isPublicView&&o?.isChallengeCollection===!1?d`
      ${jN} ${T}
      `:""} ${o?.isEditingSummaryDescription?t8(o,o?.isOfficialOrOverride||o?.isChallengeCollection?"has-text-collection-invert":""):""} ${b8(e,t)} ${e?.isUserAuthenticated&&a&&u&&c&&o?.isChallengeCollection?d`
      ${hC((u-c)/u,r||s,"width-150")}
      `:""}
      ${GAe(t)} ${n8(t)}
      ${y8(e,t,void 0)}`}function $D(e,t,n){if(!e&&!t&&!n)return d``;let o=(e??t??n)?.collection;if(!o)return d``;let r=!_t(e),s=!_t(t),i=!_t(n);if(i&&n?.isPublicView)return d``;let{description:a,items:l,name:c,remainingDuration:u,totalDuration:p,type:m,challengeId:g,sectionCount:f}=o,_=e??n??t,h=m!=="bookmarks"&&!_?.isPublicView?d``:"",v=s?"plan":i?"challenge":"collection",y={collection:{light:"url(/media/profile/RegularCollectionsHeroImage.png?branch=main)",dark:"url(/media/profile/RegularCollectionsHeroImageDark.png?branch=main)"},plan:{light:"url(/media/learn/plans/skilling_plan_hero.png?branch=main)",dark:"url(/media/learn/plans/skilling_plan_hero.png?branch=main)"},challenge:{light:"url(/media/learn/challenge/challenges_hero.png?branch=main)",dark:"url(/media/learn/challenge/challenges_hero.png?branch=main)"}};return d`

      ${s?Fu:i?la:bi}

      ${m==="bookmarks"?UE:c} ${r||i||s?d``:""}

      ${_?.isEditingSummaryTitle?e8(_):""} ${s?VAe(f):""} ${a?d`

      ${a} ${h}

      `:!_?.isEditingSummaryDescription&&m!=="bookmarks"?d`
      ${jN} ${h}
      `:""} ${_?.isEditingSummaryDescription?t8(_):""} ${b8(e,t,n)} ${e?c7e(e):""} ${e?.isUserAuthenticated&&l?.length&&p&&u&&g?d`
      ${hC((p-u)/p)}
      `:""}
      ${GAe(t)} ${n8(t)}
      ${y8(e,t,n)} `}function GAe(e){return!e||!e.plan?d``:d`

      ${Uu}

        ${(e.plan.learningOutcomes??[])?.map(t=>t?d`
      • ${t}
      • `:"")}
      `}function c7e(e){return e?!e.isOfficialOrOverride&&C.tenantId===os&&e.collectionOwner?.userId===C.userId&&e.collection.id!=="bookmarks"?d`

      ${u7e()}

      `:"":d``}function u7e(){return d`
      ${GN}
      `}function VAe(e){if(_t(e))return d``;let t="";switch(e){case 0:return d``;case 1:t=String(Qre);break;default:t=String(Yre).replace("{numberOfMilestones}",(e??"").toString());break}return d`

      ${t}

      `}Qe();k();k();k();function d7e(e,t){let n=VE,o=YW,r=JW,s=ZW,i=Hn("me","collections"),a=_E,l=`/${b.data.userLocale}/`;return e==="plan"&&(n=Hoe,o=Boe,r=zoe,s=Goe,i=Hn("me","plans")),e==="challenge"&&(n=gQ,o=fQ,r=hQ,s=bQ,i=Hn("me","challenges"),t&&(a=_Q,l=lo(t,"leaderboard"))),d`

      ${n}

      ${o}

      ${r}

      `}function x8(e="collection",t){return d`
      ${d7e(e,t)}
      `}function T8(e,t=!0){switch(e){case 0:case 200:case 201:case 204:return null;case 403:return t?x8():d`

      ${VE}

      `;case 404:return t?_Ae():d`

      ${RE}

      `;case 500:case 502:case 503:case 504:return t?SG():d`

      ${zu}

      `;default:return d`

      ${Kt}

      `}}k();k();var Q2n={input:{id:"challenge-primary-subject",name:"challenge-primary-subject",docon:"search",isFullWidth:!0,placeholder:aQ,required:!0},getSuggestions:async()=>[],getTitle:e=>e.displayName||e.value,noResultsTemplate:d`${fn}`,itemTemplate:e=>d`${e.displayName||e.value}`};k();Qe();k();Qe();Qe();tm();k();k();k();k();k();k();k();k();function WAe(e){let t=T8(e.responseErrorCode);if(t!==null)return t;if(!e.collection){let n=Hn("me","collections").toString();return p8(n,"collection")}return e.collection.learnChallengeId&&GG("content",document.getElementById("article-header-breadcrumbs")||void 0,e.collection.learnChallengeId),d` ${e.isOfficialOrOverride||e.collection.challengeId||e.collection.learnChallengeId?v8(e):$D(e)} ${M7e(e)} `}function M7e(e){if(!e.collection)return"";let t=d`

      ${CW}

      `;return d`
      ${!e.isPublicView&&e.hasActiveTakedowns?D7e(e):""}
      ${t}
      ${m8(e,$0)}
      `}var $7e=bC("ms--lists-violation-banner",nK,d`${F(oK)}`,rK);function D7e(e){return e?.collection?.learnChallengeId?LD(wN.replace("{detailPageLink}",lo(e.collection.learnChallengeId,"details")),DQ):$7e}async function KAe(){let e=document.querySelector("[data-main-column] [data-page-content]");if(!e)return;let t=N7e(te.pathname);await ve;let n=new Cp(t,void 0,!0);await n.beforeActivate();let o=async()=>{x(WAe(n),e)};n.subscribe(nt,o),C.subscribe(wn,o),o()}function N7e(e){let t;if(!e)return t=void 0,t;let n=/collections\/([^\/]+)/,o=e.match(n);return o===null||o&&!o[1]?t=void 0:o&&o[1]&&(t=o[1]),t}function JAe(){let e=document.getElementById("filter-list");if(!e)return;let t=Array.from(document.querySelectorAll(".profile-component")),n=0,o=()=>{clearTimeout(n),n=setTimeout(()=>{F7e(ik(e.value),t)},250)};e.addEventListener("input",o),e.addEventListener("change",o)}function F7e(e,t){let n=document.querySelector(".no-results"),o=new RegExp(e,"gi");n.hidden=!0;let r=t.filter(s=>(s.hidden=!s.textContent.match(o),s.hidden?!1:s));return r.length===0&&(n.hidden=!1,pt(da,"assertive",1e3)),r}k();k();k();k();var c3n=bt(),u3n=b.data.userLocale;k();k();function oa(e){let t=[],n=e.display_products?.[0];n&&t.push(n);let o=e.display_roles?.[0];o&&t.push(o);let r=e.levels?.[0],s=e.display_levels?.[0];if(s)t.push(s);else if(r&&r in Gr.levels){let c=Gr.levels[r];t.push(c)}let i=e.display_event_groups?.[0];i&&t.push(i);let a=e.display_azure_categories?.[0];a&&t.push(a);let l=e.display_languages?.[0];return l&&t.push(l),t}function lv(e){return e.map(t=>d`
    • ${t}
    • `)}function w8(e,t){return e?or(e):t?vR(t):""}k();var xC=24*60*60*1e3;function wC(e,t,n){let o=ce(),r=S.enableNewSiteSearch?"font-size-sm font-weight-normal":"";return d`
      {let i=s.target;i.type!=="date"&&e.selectByValue(i.value)}} >
      ${G7e(e.facets)}
      s.value==="custom")?.isSelected}>${t0e("starting-date",pie,o.gt)} ${t0e("ending-date",tJ,o.lt)}
        `}function G7e(e){return Object.keys(di).map(n=>{let o=e.find(r=>r.value.toLowerCase()===n);if(n==="all")return V7e("all",e);{let r=n==="custom"?TK:di[n];return n0e(n,r,o.isSelected)}})}function n0e(e,t,n=!1){let o=S.enableNewSiteSearch?"font-size-sm":"";return d``}function V7e(e,t){let n=t.reduce((o,r)=>(r.isSelected&&r.value!=="all"&&(o.selection=!0),o),{selection:!1});return n0e(e,aa,!n.selection)}function t0e(e,t,n){let o=S.enableNewSiteSearch?"font-size-sm font-weight-normal":"",r=S.enableNewSiteSearch?"margin-top-xxs":"";return d`j7e()} value="${n}" />`}function j7e(){let e=document.querySelector("#custom-date-facet-button"),t=document.querySelector("#custom-date-facet-error"),n=[];if(Q7e()&&n.push(oJ.replace("{date}",new Date().toLocaleDateString())),Y7e()&&n.push(rJ),t.innerHTML="",n.length){for(let o of n){let r=document.createElement("li");r.innerText=o,t.appendChild(r)}e.disabled=!0}else e.disabled=!1}function Q7e(){let e=W7e().getTime(),t=new Date(document.querySelector("input[name=starting-date]").value).getTime(),n=new Date(document.querySelector("input[name=ending-date]").value).getTime();return t>e||n>e}function Y7e(){let e=new Date(document.querySelector("input[name=starting-date]").value).getTime(),t=new Date(document.querySelector("input[name=ending-date]").value).getTime();return e>t}function W7e(){let e=new Date,t=`0${e.getDate()}`.slice(-2),n=`0${e.getMonth()+1}`.slice(-2),o=e.getFullYear();return new Date(`${o}-${n}-${t}`)}function o0e(e,t=new Date(Date.now())){let n=new Date(t.getFullYear(),t.getMonth(),t.getDate()).getTime();switch(e){case"all":return"";case"last24hours":return TC(t.getTime()-xC);case"last7days":return TC(n-7*xC);case"last30days":return TC(n-30*xC);case"last365days":return TC(n-365*xC);case"custom":return K7e();default:return""}}function K7e(){let e=ce(),t=e.gt,n=e.lt,o=null,r=null;if(t){let s=new Date(t),i=s.getTimezoneOffset()*6e4;o=s.getTime()+i}if(n){let s=new Date(n),i=s.getTimezoneOffset()*6e4;r=s.getTime()+i+xC}return TC(o,r)}function TC(e=null,t=null){let n=[];if(e){e=e<0?0:e;let o=new Date(e).toISOString();n.push(`lastUpdated gt ${o}`)}if(t){t=t<0?0:t;let o=new Date(t).toISOString();n.push(`lastUpdated lt ${o}`)}return n.join(" and ")}function jo(e){let t=[];for(let n in e){let o=Object.keys(e[n]);if(o.length>0){let r=n.charAt(0),s=n!=="resource_type"&&n!=="type"?`${n}/any(${r}: `+o.map(i=>`${r} eq '${i}'`).join(" or ")+")":o.map(i=>`${n} eq '${i.replace("_"," ")}'`).join(" or ");t.push(`(${s})`)}}return t.join(" and ")}function ND(e){let t=[],n=e.scope?`scopes/any(s: s eq '${e.scope}')`:"";n&&t.push("("+n+")");let o=[];for(let c in e.selectedFacets){if(c==="category"||c==="date"||c==="author")continue;let u=e.selectedFacets[c],p=Object.keys(u);if(p.length>0)if(S.enableNewSiteSearch){let m=c.charAt(0),g=p.map(f=>`(${c}/any(${m}: ${m} eq '${f}'))`).join(" and ");o.push(`(${g})`)}else{let m=c.charAt(0),g=p.map(_=>`${m} eq '${_}'`).join(" or "),f=`(${c}/any(${m}: ${g}))`;o.push(f)}}if(o.length>0){let c=o.join(" and ");t.push("("+c+")")}let r;for(let c in e.selectedFacets.date){r=c;break}let s=r?o0e(r):"";s&&t.push("(category eq 'QnA' and "+s+")");let i;for(let c in e.selectedFacets.author){i=c;break}i&&t.push(`(category eq 'QnA' and authorId eq '${i}')`);let a="";for(let c in e.selectedFacets.category){a=c;break}let l=a?`category eq '${a}'`:"";return l&&t.push("("+l+")"),t.join(" and ")}function s0e(){return{facetSort:(e,t)=>xn(e)-xn(t),layout:"grid",hideCompleted:!0,fetch:J7e,resultTemplate:S8,resultSortOptions:[{label:zee,orderBy:null},{label:$f,orderBy:"title"},{label:Df,orderBy:"title desc"},{label:Zf,orderBy:"last_modified desc"},{label:Xf,orderBy:"last_modified"}]}}function S8(e){let n=`learn-${e.uid?Wn(e.uid):tt()}-title`;return d`

        ${Gr.resource_type[e.resource_type]}

        ${e.title}
        `}async function J7e(e){let[t]=await Promise.all([r0e(e,!1),ve]);if(t.count===0&&([t]=await Promise.all([r0e(e,!0),ve]),t.count!==0&&(t.isFuzzySearch=!0)),!S.certificationAndCourseUpdates&&(t.facets&&t.facets.resource_type&&(t.facets.resource_type=t.facets.resource_type.filter(r=>r.value!=="course")),t.results)){let r=t.results.filter(s=>s.resource_type!=="course");t.count<=t.results.length&&(t.count=r.length),t.results=r}let n=t.results.map(r=>r.uid),o;try{o=(await Promise.resolve(S.gamification&&C.isAuthenticated?ff(n):Promise.resolve([]))).reduce(i0e("uid"),{})}catch{o={}}for(let r of t.results)r.icon_url&&(r.icon_url=rt(r.icon_url,"en-us")),r.url&&(r.url=rt(r.url,dt.userLocale)),r.uid in o&&(r.progress=o[r.uid]);return t}function Z7e(e){return{branch:bt(),environment:"prod",locale:b.data.userLocale,terms:e.terms,facet:["roles","levels","products","subjects","resource_type"],$filter:jo(e.selectedFacets),$orderBy:e.orderBy,$skip:e.skip?e.skip.toString():null,$top:e.top?e.top.toString():null,hideCompleted:e.hideCompleted?e.hideCompleted.toString():null,showHidden:R.reviewFeatures.toString()}}async function r0e(e,t){let n={...Z7e(e),fuzzySearch:t},o=`${N.browse.learn}?${pe(n,!0)}`;return $(J(o,{method:"GET"})).then(async s=>{if(s.ok)return await s.json();throw{error:s.json()}})}function i0e(e){return(t,n)=>(t[n[e]]=n,t)}function X7e(e){let{progress:t}=e,n=e.duration_in_minutes??e.hours_to_complete;if(!t||t.status==="notStarted"||typeof n!="number")return"";if(t.status==="inProgress"&&n){let r=`${Math.floor((n-t.remainingTime)/n*100)}%`;return d``}return d``}k();k();function FD(e,t){return(e==="lit"?d:W)`

        ${t?.title??yse}

        `}k();Qe();k();Qe();k();function l0e(){return{facetSort:(e,t)=>xn(e)-xn(t),layout:"grid",fetch:eje,resultTemplate:c0e,resultSortOptions:[{label:$f,orderBy:"title"},{label:Df,orderBy:"title desc"},{label:Zf,orderBy:"last_modified desc"},{label:Xf,orderBy:"last_modified"}]}}function c0e(e){let t=(e.exams||[]).filter(a=>!!a.display_name).map((a,l)=>l===0?d` ${a.display_name}`:d`, ${a.display_name}`),n=t.length>0?d``:"",o=Gr.resource_type[e.resource_type],r=e.resource_type==="examination"?`${Wr} ${e.exam_display_name}: ${e.title}`:e.title,i=`certifications-${e.uid?Wn(e.uid):tt()}-title`;return d`

        ${o}

        ${r}
        ${n}
        `}async function eje(e){let[t]=await Promise.all([a0e(e,!1),ve]);t.count===0&&([t]=await Promise.all([a0e(e,!0),ve]),t.count!==0&&(t.isFuzzySearch=!0));for(let n of t.results)n.icon_url&&(n.icon_url=rt(n.icon_url,"en-us")),n.url&&(n.url=rt(n.url,dt.userLocale));return t}function tje(e){return{branch:bt(),locale:b.data.userLocale,terms:e.terms,facet:["roles","products","levels","resource_type","type"],$filter:jo(e.selectedFacets),$orderBy:e.orderBy,$skip:e.skip?e.skip.toString():null,$top:e.top?e.top.toString():null}}function a0e(e,t){let n={...tje(e),fuzzySearch:t},o=`${N.browse.certification}?${pe(n,!0)}`;return $(J(o,{method:"GET"})).then(s=>{if(s.ok)return s.json();throw{error:s.json()}})}k();k();var nje=Ul(),oje={orderBy:"latest_episode_upload_at desc"};function d0e(){return{facetSort:(e,t)=>xn(e)-xn(t),layout:"grid",fetch:rje,resultTemplate:p0e(),taxonomyFacetLookups:{type:"show_type"}}}async function rje(e){let[t]=await Promise.all([u0e(e,!1),ve]);t.count===0&&([t]=await Promise.all([u0e(e,!0),ve]),t.count!==0&&(t.isFuzzySearch=!0));for(let n of t.results)n.url&&(n.url=rt(n.url,dt.userLocale));return t}function u0e(e,t){let n={...sje(e),fuzzySearch:t},o=`${N.browse.shows}?${pe(n,!0)}`;return $(J(o,{method:"GET"})).then(s=>{if(s.ok)return s.json();throw{error:s.json()}})}function sje(e){return{branch:bt(),locale:b.data.userLocale,terms:e.terms,facet:["products","type"],$filter:jo(e.selectedFacets),$orderBy:e.terms&&e.terms.length>0?null:oje.orderBy,$skip:e.skip?e.skip.toString():null,$top:e.top?e.top.toString():null}}function p0e(){return function(e){let t=e.image_url||e.image_url_small?e.url+(e.image_url??e.image_url_small)+"?branch=main":"/en-us/media/learn/tv/shows/show_image_default.svg?branch=main";return ije(e,t)}}function ije(e,t){let n=e.latest_episode_upload_at?d`

        ${nje.format(new Date(e.latest_episode_upload_at))}

        `:"";return d``}Mg();k();k();Qe();k();var P8n=bt(),L8n=b.data.userLocale;k();Qe();k();k();k();var Aje=kje();function kje(){let e=Ah.getItem("x-sid");return e||(e=uu(),Ah.setItem("x-sid",e),e)}var OD={"ar-sa":"ar","bg-bg":"bg","bn-in":"bn-in","bs-latn-ba":"bs-latn-ba","ca-es":"ca","cs-cz":"cs","da-dk":"da","de-de":"de","el-gr":"el","en-gb":"en-gb","en-us":"en","es-mx":"es-mx","es-es":"es","et-ee":"et","eu-es":"eu","fi-fi":"fi","fil-ph":"fil","fr-ca":"fr-ca","fr-fr":"fr","ga-ie":"ga-ie","gl-es":"gl","he-il":"he","hi-in":"hi","hr-hr":"hr","hu-hu":"hu","id-id":"id","ig-ng":"ig-ng","is-is":"is","it-it":"it","ja-jp":"ja","kk-kz":"kk","ko-kr":"ko","lb-lu":"lb-lu","ms-my":"ms","mt-mt":"mt-mt","nl-nl":"nl","nb-no":"no","pl-pl":"pl","pt-br":"pt-br","pt-pt":"pt","ro-ro":"ro","ru-ru":"ru","sk-sk":"sk","sl-si":"sl","sr-cyrl-rs":"sr-cyrl","sr-latn-rs":"sr","sv-se":"sv","th-th":"th","zh-cn":"zh","zh-tw":"zh-TW","zh-hk":"zh-HK"};function f0e(){return R.supportLevel==="production"?"958652F9-1B3E-C23A-E908-CDFFFE508ECB":"4459FB26-0753-0E59-AA51-E12E04E8D946"}var Ije="00000000-0000-0000-0000-000000000000";async function Pje(){let e=C.userId;if(!e||e===Ije)return;let t=await crypto.subtle.digest("SHA-256",new TextEncoder().encode(e));return Array.from(new Uint8Array(t)).map(n=>n.toString(16).padStart(2,"0")).join("")}async function h0e(e){let t=await Pje(),n={timestamp:String(Date.now()),use_case:e,"HEADER_user-agent":navigator.userAgent,"HEADER_accept-language":OD[b.data.userLocale]??"default",HEADER_origin:location.origin,HEADER_referer:document.referrer,...t?{user_identifier:t}:{}},o={method:"POST",body:JSON.stringify(n)},r=J(N.encryptCaptchaPayload,o),s=await $(r);if(s.ok)return{blob:(await s.json()).encodedData};throw s.status===400?new Error("Enhance detection payload invalid"):new Error("Failed to generate Arkose enhance detection data")}var b0e=["version","getConfig","reset","run","setConfig"];var Lje=S.chromeless||xle.getItem("playwrightActive"),SC;function _0e(){return SC}var Rje=!1;function Mje(){Rje=!0}async function $je(){return Lje?!1:(await ve,C.isAuthenticated)}function CC(e){return SC!==void 0||(SC=$je().then(t=>t?Xi("https://client-api.arkoselabs.com/v2/api.js",null,void 0,void 0,!0).then(()=>Dje(e)).then(Fje).catch(n=>{throw Mje(),new Error("Failed to load Arkose library")}):Promise.resolve())),SC}function Dje(e){return new Promise(t=>{B.setupEnforcement=function(n){Nje(n,e).then(t)}})}async function Nje(e,t){let n=OD[b.data.userLocale]||"default";return e.setConfig({language:n,publicKey:f0e(),data:await(async()=>{let o;try{S.arkoseEncrypt&&(o=await h0e(t))}catch{}return o})()}),Oje(e),e}function Fje(e){let t=b0e.filter(n=>e[n]===void 0);if(t.length>0)throw new Error(`Missing arkose dependencies: ${t.join(", ")}`)}function Oje(e){B.arkoseEnforcement=e}function I8(){return B.arkoseEnforcement}k();function EC(e){return encodeURIComponent(e==="high-contrast"?` `:e==="dark"?` `:` `)}var AC=class{};function UD(e,t){return W``}k();var HD="captcha-container",S0e,C0e,y0e=0,Uje=3,E0e=P0e(),qD=class{},P8=new ze,v0e=e=>{I0e(e.token),S0e()},qje={title:Du,imgsrc:e=>`data:image/svg+xml,${EC(e)}`,message:sl,description:f0,buttonText:Ou,event:qD,type:"static"},Hje={title:kF,iframeContainerId:HD,type:"iframe"},x0e={mode:"inline",selector:"#"+HD,onCompleted:v0e,onSuppress(e){e.suppressed&&(v0e(e),T0e("suppressed",C.userId,P("lab-id")))},async onError(e){T0e("failed",C.userId,P("lab-id"));let t=await Qje(),n=I8();if(t&&y0e{x0e.onCompleted?.(n),e.onCaptchaCompleted?.()}}:{}}),t.run(),await E0e,t.reset()}catch{e.renderError?.()}return zje(),C0e}var gjn=d`

        ${kF}

        `;async function k0e(){let e=null,t=await A0e({renderCaptcha:()=>{e=w0e(Hje),e.show()},renderError:()=>{e=w0e(qje),e.show()}});if(typeof t!="string"||!t||t.trim()==="")throw new Error("Captcha failed");return e&&e.hide(),t}function I0e(e){C0e=e}function Bje(){I0e("")}function P0e(){return new Promise(e=>{S0e=e})}function zje(){E0e=P0e()}function Gje(){return w.querySelector("#"+HD)}function Vje(){let e=Gje();e&&e.replaceChildren()}function jje(e,t){e.setConfig({...e.getConfig(),...t})}function T0e(e,t,n){let o=n||null;Se({behavior:me.OTHER,actionType:Ee.OTHER,content:{event:"arkose-result",labInstanceId:o,userInstanceId:t,message:e}})}async function Qje(){try{return(await(await fetch("https://status.arkoselabs.com/api/v2/status.json")).json()).status.indicator==="none"}catch{return!1}}function w0e(e){let t=w.createElement("div");t.classList.add("modal-content","margin-none","width-full"),t.tabIndex=-1;let n=UD(P8,e).create();return Qu(P8,qD,()=>{location.reload()}),n.bind(P8,ii),n.appendTo(t),new Te(t)}k();var Kje=new Promise(()=>{});k();Qe();async function ac(e,t){let n=await lp(t);if(!n||!e)return;let o=e.hasOwnProperty("parents");if(Bt){let s=i=>"/"+i.split("/").slice(2).join("/");e&&(e=Zi(e),e.url=s(e.url)),o&&e&&e.parents&&(e.parents[0].url=s(e.parents[0].url))}let r=P("page_kind");switch(r){case"appliedSkills":n.add({title:mo,url:`/${n.basePath}/credentials`},{title:hc,url:`/${n.basePath}/credentials/browse/`});break;case"appliedSkillsAssessment":n.add({title:mo,url:`/${n.basePath}/credentials`},{title:hc,url:`/${n.basePath}/credentials/browse/`},{title:e?.title??"",url:`/${n.basePath}${e.url}`});break;case"appliedSkillsAssessmentReport":n.add({title:mo,url:`/${n.basePath}/credentials`},{title:hc,url:`/${n.basePath}/credentials/browse/`},{title:e?.title??"",url:`/${n.basePath}${e.url}`});break;case"role":case"certification":n.add({title:S.previewCredentialsL1?mo:ol,url:S.previewCredentialsL1?`/${n.basePath}/credentials`:`/${n.basePath}/certifications`},{title:S.previewCredentialsL1?hc:Ru,url:S.previewCredentialsL1?`/${n.basePath}/credentials/browse/`:`/${n.basePath}/certifications/browse/`});break;case"certificationrenewal":n.add({title:S.previewCredentialsL1?mo:ol,url:S.previewCredentialsL1?`/${n.basePath}/credentials`:`/${n.basePath}/certifications`},{title:S.previewCredentialsL1?hc:Ru,url:S.previewCredentialsL1?`/${n.basePath}/credentials/browse/`:`/${n.basePath}/certifications/browse/`},{title:e?.title??"",url:`/${n.basePath}${e.url}`});break;case"certificationRenewalAssessment":case"certificationRenewalAssessmentReport":n.add({title:S.previewCredentialsL1?mo:ol,url:S.previewCredentialsL1?`/${n.basePath}/credentials`:`/${n.basePath}/certifications`},{title:S.previewCredentialsL1?hc:Ru,url:S.previewCredentialsL1?`/${n.basePath}/credentials/browse/`:`/${n.basePath}/certifications/browse/`},{title:e?.title??"",url:`/${n.basePath}${e?.url}/`},{title:M2,url:`/${n.basePath}${e?.url}/renew/`});break;case"examination":n.add({title:S.previewCredentialsL1?mo:ol,url:S.previewCredentialsL1?`/${n.basePath}/credentials`:`/${n.basePath}/certifications`},{title:S.previewCredentialsL1?hc:Ru,url:S.previewCredentialsL1?`/${n.basePath}/credentials/browse/`:`/${n.basePath}/certifications/browse/`});break;case"practiceAssessmentReport":n.add({title:S.previewCredentialsL1?mo:ol,url:S.previewCredentialsL1?`/${n.basePath}/credentials`:`/${n.basePath}/certifications`},{title:S.previewCredentialsL1?hc:Ru,url:S.previewCredentialsL1?`/${n.basePath}/credentials/browse/`:`/${n.basePath}/certifications/browse/`},{title:e?.title??"",url:`/${n.basePath}${e.url}/`});break;default:throw new Error(`Unsupported page_kind "${r}".`)}n.render()}var Ep=class{constructor(t,n=1){this.dateFormat=n;this.totalTimeLeft=0;this.isExpired=!1;this.endDate=t;let o=setInterval(()=>{this.setTotalTimeLeft(),this.isExpired=this.totalTimeLeft<=0,this.isExpired&&clearInterval(o)},1e3)}setTotalTimeLeft(){this.totalTimeLeft=this.endDate.getTime()-new Date().getTime()}get seconds(){return Math.floor(this.totalTimeLeft/1e3%60)}get mins(){return Math.floor(this.totalTimeLeft/1e3/60%60)}get hrs(){return this.dateFormat===0?Math.floor(this.totalTimeLeft/(1e3*60*60)):Math.floor(this.totalTimeLeft/(1e3*60*60)%24)}get days(){return Math.floor(this.totalTimeLeft/(1e3*60*60*24))}get displayFormat(){let t="";return this.days>0&&(t+="d"),this.hrs>0&&(t+="h"),this.mins>0&&(t+="m"),this.seconds>0&&(t+="s"),this.getDateFormat(t)}addLeadingZero(t){return t<10?`0${t}`:t}getDateFormat(t){let n="dhms";if(this.dateFormat===1)return t.length>=2?t.substr(0,2):t.length===1&&"dh".indexOf(t)>-1?n.substr("dh".indexOf(t),2):"ms";if(this.dateFormat===0)return"hms";throw new Error("Invalid date format used in DateCountdown")}};H([V],Ep.prototype,"endDate",2),H([V],Ep.prototype,"totalTimeLeft",2),H([V],Ep.prototype,"isExpired",2);var eQe=W` ${e=>e.displayFormat.indexOf("d")>-1?`${Kv.replace("{days}",e.days.toString())}`:null} ${e=>e.displayFormat.indexOf("h")>-1?`${eX.replace("{hrs}",e.hrs.toString())}`:null} ${e=>e.displayFormat.indexOf("m")>-1?`${zp.replace("{numberOfMinutes}",e.mins.toString())}`:null} ${e=>e.displayFormat.indexOf("s")>-1?`${fse.replace("{seconds}",e.seconds.toString())}`:null} `,tQe=W`${mn(e=>[{value:e.hrs,label:Nu},{value:e.mins,label:nx},{value:e.seconds,label:M0}],W`${(e,t)=>t.parent.addLeadingZero(e.value)}${e=>e.label}${Me((e,t)=>!t.isLast,W`:`)} `,{positioning:!0})}`,L0e=W`${Me(e=>e.totalTimeLeft>0,W` ${Me(e=>e.dateFormat===1,eQe)} ${Me(e=>e.dateFormat===0,tQe)} `)}`;k();k();var oQe={"applied-skill":{0:{0:["api-branch","display-captcha","skip-verification","themebranch"],1:[]},1:{0:["api-branch","display-captcha","skip-verification","snapshotId","themebranch"],1:["snapshotId"]},2:{0:["api-branch","display-captcha","skip-verification","snapshotId","themebranch"],1:["snapshotId"]}},practice:{0:{0:["api-branch","practice-assessment-type","themebranch"],1:["practice-assessment-type"]},1:{0:["assessmentId","assessment-type","practice-assessment-type","preview","snapshot-version","api-branch","themebranch"],1:["assessmentId","assessment-type","practice-assessment-type"]},2:{0:["assessmentId","practice-assessment-type","preview","snapshotId","snapshot-version","api-branch","themebranch"],1:["assessmentId","practice-assessment-type","snapshotId"]}},renewal:{0:{0:["assessmentId","snapshot-version","skip-verification","api-branch","themebranch"],1:[]},1:{0:["accommodationRequested","assessmentId","certification-id","preview","skip-verification","snapshot-version","api-branch","themebranch"],1:["assessmentId"]},2:{0:["assessmentid","snapshotId","skip-verification","snapshot-version","preview","api-branch","themebranch"],1:["snapshotId"]}}};function Tn(e){let t={"applied-skill":"credentials/applied-skills",practice:`credentials/certifications${ce()["practice-assessment-type"]==="certification"?"":"/exams"}`,renewal:"credentials/certifications"},n={"applied-skill":"applied-skill",practice:`${ce()["practice-assessment-type"]==="certification"?"certification":"exam"}`,renewal:"certification"},o={"applied-skill":[],practice:[1,2],renewal:[0,1,2]},r={"applied-skill":"",practice:"practice",renewal:"renew"},s={0:"",1:"assessment",2:"results"},i={accommodationRequested:Fxe(),"api-branch":ce()["api-branch"],assessmentid:e.query?.assessmentid,assessmentId:e.query?.assessmentId,"assessment-type":e.assessmentType,"certification-id":e.credentialId,"display-captcha":e.query?.["display-captcha"]??ce()["display-captcha"],"practice-assessment-type":ce()["practice-assessment-type"],preview:ce().preview,"skip-verification":e.query?.["skip-verification"]??kS(),snapshotId:e.query?.snapshotId,"snapshot-version":IS(),themebranch:ce().themebranch},a=oQe[e.assessmentType][e.pageType][R.reviewFeatures?0:1],l={origin:te.origin+"/",locale:dt.userLocale+"/",test:Bt?"test/training/":"",credentialType:t[e.assessmentType].replace(Bt&&["practice","renewal"].includes(e.assessmentType)?"credentials/":"","")+"/",credentialId:e.credentialId.replace(new RegExp("^"+n[e.assessmentType]+"."),"").replace(Bt?/\-test$/:"","")+"/",credentialPathname:e.credentialPathname?e.credentialPathname.replace(/^\/|\/$/g,"")+"/":null,subPath:o[e.assessmentType].includes(e.pageType)?r[e.assessmentType]+"/":"",pageType:s[e.pageType],query:a.length?"?"+pe(a.reduce((u,p)=>(u[p]=i[p],u),{})):""};return`${l.origin}${l.locale}${l.credentialPathname??l.test+l.credentialType+l.credentialId}${l.subPath}${l.pageType}${l.query}`}k();var R8=class{constructor(t,n,o,r,s){this.location=t;this.dataBinding=n;this.templateBinding=r;this.source=null;this.view=null;this.data=null;this.originalContext=void 0;this.childContext=void 0;this.dataBindingObserver=en.binding(n,this,o),this.templateBindingObserver=en.binding(r,this,s)}bind(t,n){this.source=t,this.originalContext=n,this.childContext=Object.create(n),this.childContext.parent=t,this.childContext.parentContext=this.originalContext,this.data=this.dataBindingObserver.observe(t,this.originalContext),this.template=this.templateBindingObserver.observe(t,this.originalContext),this.refreshView()}unbind(){this.source=null,this.data=null,this.view!==null&&this.view.unbind(),this.dataBindingObserver.disconnect(),this.templateBindingObserver.disconnect()}handleChange(t){t===this.dataBinding?(this.data=this.dataBindingObserver.observe(this.source,this.originalContext),this.refreshView()):t===this.templateBinding&&(this.template=this.templateBindingObserver.observe(this.source,this.originalContext),this.refreshView())}refreshView(){this.view!==null&&this.view.dispose(),this.view=this.template.create(),this.view.bind(this.data,this.childContext),this.view.insertBefore(this.location)}},M8=class extends Zl{constructor(n,o){super();this.dataBinding=n;this.templateBinding=o;this.createPlaceholder=It.createBlockPlaceholder;this.isBindingVolatile=en.isVolatileBinding(n),this.isTemplateBindingVolatile=en.isVolatileBinding(o)}createBehavior(n){return new R8(n,this.dataBinding,this.isBindingVolatile,this.templateBinding,this.isTemplateBindingVolatile)}};function tn(e,t){let n=typeof t=="function"?t:()=>t;return new M8(e,n)}k();function BD(e){let t=function(){let s=P("sourceContentUid");return s?s.split(".")[1]:e.pathname.split("/")[Bt?6:4]}(),n=e.searchParams.get("display-captcha"),o=e.searchParams.get("snapshotId"),r=e.searchParams.get("skip-verification");return{credentialId:t,displayCaptcha:n,skipverification:r,snapshotId:o}}function zD(e,t,n){let r=w.title.split("|").pop();return`${t.replace(n,e)} | ${r}`}var $8=W`

        ${e=>e.title}

        ${e=>e.msg}

        `;function D8(e){return D0e({buttonText:e,template:$0e(),hasPrimaryButton:!0,isDisabled:!0})}function $0e(){return W`

        ${f7}

        ${tn(e=>e,L0e)}

        `}function D0e(e){let t=e.isDisabled?"disabled":"",n=e.hasPrimaryButton?"button-primary":"";return W`
        ${tn(o=>o,e.template)}
        `}function rQe(e){let n=!(e.riskData?.appealStatus&&e.riskData?.appealStatus==="denied"),o=e.riskData?.appealStatus==="approved"?!1:!!(e.riskData?.appealStatus||e.isDisabled),r=E7;return{alertText:{approved:Kn(A7),new:k7,denied:K2,defaultMSg:r}[e.riskData?.userStatus==="NotAllowed"?e.riskData.appealStatus??"defaultMSg":"defaultMSg"],hasPrimaryButton:n,isDisabled:o}}function N8(e){let{alertText:t,hasPrimaryButton:n}=rQe({isDisabled:e.isDisabled,riskData:{appealStatus:e.riskData?.appealStatus,userStatus:e.riskData?.userStatus}});return D0e({buttonText:e.buttonText,template:W`
        ${It.createHTML(Kn(t))}
        `,hasPrimaryButton:n,isDisabled:!0})}k();var q0e={InvalidRequest:c7,LabError:u7,SubscriptionUnavailable:r7,NotAllowed:Kn(d7),InvalidCaptchaToken:f0,default:zu};var GD=class{},cv=class{},VD=class{},IC=class{};var O8={title:Du,type:"static",imgsrc:e=>`data:image/svg+xml,${EC(e)}`,message:sl,description:o7,buttonText:Ou,event:cv};var H0e={title:s7,type:"static",imgsrc:e=>`data:image/svg+xml,${EC(e)}`,message:i7,description:a7,buttonText:l7,event:IC};var B0e="labStatusReporter",dQe="fullScreenMessageTitle",pQe="fullScreenProgressText",mQe="fullScreenProgressWrapper",DJn=`#${dQe}`,NJn=`#${mQe} > #${pQe}`,z0e="labclient.labondemand.com";var U8=(l=>(l.loadingYourLabContent="loading your lab content",l.labEnvironmentBeingBuilt="your lab environment is being built",l.thisCanTakeSeveralMinutes="this can take several minutes",l.virtualMachinesStarting="your virtual machines are starting",l.resuming="resuming",l.preparing="preparing",l.labSetup="lab setup",l.checkingBrowserCapabilities="checking browser capabilities",l))(U8||{}),q8=(n=>(n.labCouldNotBeLaunched="sorry, your lab could not be launched",n.launchError="launch error",n))(q8||{});function lc(e,t,n,o){switch(n&&e.updateProgress(n),t){case"labInitialized":e.start();break;case"successfullyLoaded":e.succeed();break;case"iframeFailure":case"serverBadRequest":e.fail(o);break;case"unauthorized":case"labNotFound":case"labPreviouslyScored":case"userNavigatedAway":e.cancel();break;case"reportLabProgress":case"labErrorFound":break}}var Za=class extends ze{constructor(n,o){super();this.appliedSkillAssessment=null;this.viewState=0;this.modal=null;this.hasLabConnected=!1;this.captchaToken="";this.mostRecentLabStatusMessage=null;this.appliedSkillScenarioTimeout=6e5;this.reportTelemetry=n=>{if(n.id){this._services.reportLabStatus({id:n.id,message:n.message??null});return}n.message&&(this.mostRecentLabStatusMessage=n.message)};this.urlContext=o,this._services=n,this.launchLabScenario=new Sr("Commerce.Docs.LearnProgress_AppliedSkill_LaunchLab",this.appliedSkillScenarioTimeout),this.onMessageHandler=r=>{if(r&&r.origin.startsWith("https://")&&r.origin.endsWith(z0e)&&r.data)try{let s=JSON.parse(r.data);s.event_id===B0e&&(this.updateLabConnected(s),this.reportScenarioHealth(s),this.reportUpdatedTelemetry(s))}catch{}},this.onBeforeUnloadHandler=r=>{r.preventDefault(),r.returnValue=""},this.onUnloadHandler=()=>{this._services.cancelAppliedSkillAssessment(this.urlContext.snapshotId)},this.userNavigatedAway=()=>{lc(this.launchLabScenario,"userNavigatedAway")}}async initialize(){window.addEventListener("message",this.onMessageHandler,!1),window.addEventListener("visibilitychange",this.userNavigatedAway,!1),await this.initAppliedSkillSession(this.urlContext)}async submit(){try{window.removeEventListener("beforeunload",this.onBeforeUnloadHandler),window.removeEventListener("unload",this.onUnloadHandler),this._services.scoreAppliedSkillAssessment(this.urlContext.snapshotId)}finally{setTimeout(()=>{te.href=jD(2,this.urlContext,this.appliedSkillAssessment.appliedSkill.url)})}}async cancel(){try{window.removeEventListener("beforeunload",this.onBeforeUnloadHandler),window.removeEventListener("unload",this.onUnloadHandler),this._services.cancelAppliedSkillAssessment(this.urlContext.snapshotId),setTimeout(()=>{te.href=jD(0,this.urlContext,this.appliedSkillAssessment.appliedSkill.url)})}catch{window.addEventListener("beforeunload",this.onBeforeUnloadHandler),window.addEventListener("unload",this.onUnloadHandler),this.publish(new AC)}}async expireTime(){try{let n=await this._services.getAppliedSkillAssessment(this.appliedSkillAssessment.labSession.labSessionId,this.captchaToken),o=Date.parse(this.appliedSkillAssessment.labSession.expiresAt),r=Date.parse(n.labSession.expiresAt);if(r<=o){window.removeEventListener("beforeunload",this.onBeforeUnloadHandler),window.removeEventListener("unload",this.onUnloadHandler);let s=Qu(this,IC,this.submit.bind(this));this.iframe.classList.add("display-none"),document.documentElement.focus(),this.showModal(H0e).then(()=>{s(),this.submit()})}else{this.appliedSkillAssessment.labSession.expiresAt=n.labSession.expiresAt;let s=r-Date.now();setTimeout(this.expireTime.bind(this),s)}}catch{window.removeEventListener("beforeunload",this.onBeforeUnloadHandler),window.removeEventListener("unload",this.onUnloadHandler);let n=Qu(this,cv,()=>{te.reload()});this.showModal(O8).then(o=>{n()})}}showModal(n){let o=document.createElement("div");o.classList.add("modal-content","margin-none","width-full"),o.tabIndex=-1;let r=UD(this,n).create();return r.bind(this,ii),r.appendTo(o),this.modal=new Te(o),this.modal.show()}async getCaptchaToken(){return CC("Applied Skills"),await k0e().catch(n=>{throw this.viewState=3,n})}reportScenarioHealth(n){if(n.errors.length>0&&lc(this.launchLabScenario,"labErrorFound",n.errors.join(", ")),n.currentConnectionState===1)lc(this.launchLabScenario,"successfullyLoaded");else if(n.messageProgressTitle){let o=this.getScenarioHealthEventFromMessageTitle(n.messageProgressTitle);o&&(o==="iframeFailure"?lc(this.launchLabScenario,o,void 0,n.messageProgressTitle):lc(this.launchLabScenario,o,n.messageProgressTitle))}}updateLabConnected(n){n.currentConnectionState===1&&(this.hasLabConnected=!0)}reportUpdatedTelemetry(n){n.currentConnectionState!==n.lastConnectionState&&this.reportTelemetry({id:this.appliedSkillAssessment?.labSession?.labSessionId,message:n})}getScenarioHealthEventFromMessageTitle(n){let o=new Map([[q8,"iframeFailure"],[U8,"reportLabProgress"]]);for(let[r,s]of o)if(Object.values(r).some(i=>n.includes(i)))return s;return null}async initAppliedSkillSession(n){try{lc(this.launchLabScenario,"labInitialized");let o=!!n.snapshotId;if(this.appliedSkillAssessment=o?await this._services.getAppliedSkillAssessment(n.snapshotId,this.captchaToken):await this._services.createAppliedSkillAssessment(n.credentialId,this.captchaToken,n.skipverification,R.reviewFeatures&&this.urlContext.displayCaptcha==="true").catch(async s=>{let i=s,a=await rm(i);if(i.type==="BadRequestError"){if(a==="MissingCaptchaToken")return this.captchaToken=await this.getCaptchaToken(),this._services.createAppliedSkillAssessment(n.credentialId,this.captchaToken,n.skipverification);throw i.response.errorCode=a||void 0,i}throw s}),this.reportTelemetry({id:this.appliedSkillAssessment.labSession.labSessionId}),this.appliedSkillAssessment.labSession.scored==="Scored"||this.appliedSkillAssessment.labSession.scored==="ScoringInitiated"){lc(this.launchLabScenario,"labPreviouslyScored"),Promise.resolve().then(()=>{te.href=jD(2,n,this.appliedSkillAssessment.appliedSkill.url)});return}this.urlContext.snapshotId=this.appliedSkillAssessment.labSession.labSessionId;let r=new URL(te.href);r.searchParams.set("snapshotId",this.appliedSkillAssessment.labSession.labSessionId),Ko.replaceState(null,"",r),ac({title:this.appliedSkillAssessment.appliedSkill.title??sE,url:this.appliedSkillAssessment.appliedSkill.url||""},document.getElementById("article-header-breadcrumbs")||void 0),this.subscribe(GD,this.submit.bind(this)),this.subscribe(VD,this.cancel.bind(this)),document.title=zD(this.appliedSkillAssessment.appliedSkill.title??sE,Kn(n7),"{appliedSkillTitle}"),this.checkEstimatedReadyAt(o)}catch(o){let r=o,s=await rm(r)??r.response?.errorCode;if(r.type==="NotFoundError"){lc(this.launchLabScenario,"labNotFound");let i=new URL(te.href);i.searchParams.delete("snapshotId"),Ko.replaceState(null,"",i),this.viewState=3;return}if(r.type==="UnauthorizedError"||s==="QuotaExceeded"||S.disabledAppliedSkills&&s==="AppliedSkillDisabled")lc(this.launchLabScenario,"unauthorized"),te.href=jD(0,this.urlContext);else{lc(this.launchLabScenario,"serverBadRequest",void 0,o);let i=Qu(this,cv,()=>{te.reload()}),a=Object.assign({},O8,{message:sl,description:q0e[s??"default"]});this.showModal(a).then(l=>{i()})}}}setTesting(){let o=Date.parse(this.appliedSkillAssessment.labSession.expiresAt)-Date.now();setTimeout(this.expireTime.bind(this),o),window.addEventListener("beforeunload",this.onBeforeUnloadHandler),window.addEventListener("unload",this.onUnloadHandler),this.viewState=2}checkEstimatedReadyAt(n=!1){let r=(Date.parse(this.appliedSkillAssessment.labSession.estimatedReadyAt)||-1/0)-Date.now();n||r<=0||this.hasLabConnected?this.setTesting():(this.viewState=1,setTimeout(this.checkEstimatedReadyAt.bind(this),1e3))}};H([V],Za.prototype,"appliedSkillAssessment",2),H([V],Za.prototype,"urlContext",2),H([V],Za.prototype,"viewState",2),H([V],Za.prototype,"modal",2),H([V],Za.prototype,"hasLabConnected",2),H([V],Za.prototype,"captchaToken",2),H([V],Za.prototype,"mostRecentLabStatusMessage",2),H([V],Za.prototype,"subscription",2);function jD(e,t,n){return Tn({credentialId:t.credentialId,credentialPathname:n??void 0,assessmentType:"applied-skill",pageType:e,query:{"display-captcha":t.displayCaptcha,snapshotId:e===2?t.snapshotId:void 0,"skip-verification":t.skipverification}})}var gQe={loadingContext:{loadingType:!w.referrer||new URL(w.referrer).pathname.match(/.*(assessment|results)$/gi)?.length?0:1,navigation:{assessmentPageUrl:(e,t,n,o)=>Tn({credentialId:e,assessmentType:"applied-skill",pageType:1,credentialPathname:n,query:{"display-captcha":o,snapshotId:void 0,"skip-verification":void 0}}),profileOverviewPageUrl:dn("me","certifications")}},loadedContext:{reportSummary:{passed:{titleDate:e=>e,imgSrc:e=>e||"/en-us/media/learn/credential/badges/applied-skill.svg?branch=main",shareMsg:mx,supertitle:Kn(w7),title:e=>e||hN},failed:{supertitle:aE,title:e=>e||hN}},reportScores:{scoresTitle:b7,scoreType:0,scoreGuidanceUrl:"https://learn.microsoft.com/credentials/support/assessment-scoring-reports#understand-an-assessment-lab-score-report"},reportStudyGuide:{guideType:0,studyGuideCollectionFormTitle:Kn(v7),studyGuideItemsTitle:y7}},errorContext:{reportError:e=>({NotFoundError:{title:da,msg:fN,primaryButton:{text:iE,url:Tn({credentialId:e.credentialId,assessmentType:"applied-skill",pageType:0,credentialPathname:void 0,query:{"display-captcha":e?.displayCaptcha,"skip-verification":e?.skipverification}})}},UnexpectedError:{title:Du,msg:S7,primaryButton:{text:iE,url:Tn({credentialId:e.credentialId,assessmentType:"applied-skill",pageType:0,credentialPathname:void 0,query:{"display-captcha":e?.displayCaptcha,"skip-verification":e?.skipverification}})}}})}};var QD=W` ${Me(e=>e.viewConfig.loadingContext.loadingType===1,null)} ${Me(e=>e.viewConfig.loadingContext.loadingType===0,W`

        ${_7}

        ${It.createHTML(x7.replace("{duration}","60"))}

        `)} `;var PC=class{constructor(t){if(this.errorType=t.error.type,this.errorType==="UnauthorizedError"&&R.accessLevel!=="local"&&!C.isAuthenticated&&Un(),this.errorType==="NotFoundError"&&t.urlContext.snapshotId){let n=new URL(location.href);n.searchParams.delete("snapshotId"),Ko.replaceState(null,"",n)}}};H([V],PC.prototype,"errorType",2);var H8=e=>W`${tn(t=>t.viewConfig.errorContext.reportError(t.urlContext)[e??t.reportError.errorType],$8)}`,Q0e=W` ${Me(e=>e.reportError.errorType==="NotFoundError",H8())} ${Me(e=>e.reportError.errorType==="UnauthorizedError",H8("UnexpectedError"))} ${Me(e=>e.reportError.errorType==="UnexpectedError",H8())} ${Me(e=>e.reportError.errorType==="TimeoutError",QD)} `;var cc=class{constructor({high:t=0,low:n=0,max:o=1,min:r=0,optimum:s=0,value:i=0,classModifiers:a=""}){this.high=t,this.low=n,this.max=o,this.min=r,this.optimum=s,this.value=i,this.classModifiers=a}};H([Ur],cc.prototype,"high",2),H([Ur],cc.prototype,"low",2),H([Ur],cc.prototype,"max",2),H([Ur],cc.prototype,"min",2),H([Ur],cc.prototype,"optimum",2),H([Ur],cc.prototype,"value",2),H([V],cc.prototype,"classModifiers",2);var uc=class{constructor(t){this.correctPercent=t.correctPercent,this.overallMeter=this.createMeter(t.correctPercent,t.passingPercent),this.passed=t.passed,this.passingPercent=t.passingPercent,this.scoredAt=t.scoredOn,this.scores=this.createMeters(t.scores)}createMeter(t,n,o){return new cc({high:100,low:n,max:100,optimum:n,value:t,classModifiers:o})}createMeters(t){return t.map(n=>({...n,meter:this.createMeter(n.correctPercent,n.passingPercent,"is-small")}))}};H([V],uc.prototype,"correctPercent",2),H([V],uc.prototype,"overallMeter",2),H([V],uc.prototype,"passed",2),H([V],uc.prototype,"passingPercent",2),H([V],uc.prototype,"scoredAt",2),H([V],uc.prototype,"scores",2);var Y0e=W`
        `,W0e=W`

        ${e=>e.reportScores.passed?Fv:Nv}

        ${jj} ${e=>Qi.format(e.reportScores.scoredAt)}

        ${tQ}${e=>yE.replace("{score}",e.reportScores.correctPercent.toString())}${e=>e.passed?Fv:Nv}

        ${e=>Jj.replace("{percent}",e.reportScores.passingPercent.toString())}

        ${tn(e=>e.reportScores.overallMeter,Y0e)}

        ${e=>e.viewConfig.loadedContext.reportScores.scoresTitle}

        ${mn(e=>e.reportScores.scores,W`
        ${Me((e,t)=>t.parent.viewConfig.loadedContext.reportScores.scoreType===0,W`e.passed?"background-color-success":"background-color-danger"}" aria-hidden="true" >`)}

        ${e=>e.title}

        ${Me((e,t)=>t.parent.viewConfig.loadedContext.reportScores.scoreType===1,W` ${tn(e=>e.meter,Y0e)}`)}
        `,{positioning:!0})}
        ${Me(e=>e.viewConfig.loadedContext.reportScores.scoreGuidanceUrl,W``)}
        `;k();async function YD(e,t,n=hj){let o=document.createElement("div");o.classList.add("modal-content");let r=new Te(o),s=new Intl.DateTimeFormat(e).format(new Date).replace(/\//g,"-"),i=d``;x(i,r.contentElement),r.contentElement.querySelector("button[type=submit]").onclick=async a=>{if(!C.isAuthenticated)return;a.preventDefault(),a.target.classList.add("is-loading");let c=document.getElementById("save-to-collection");(await z$(c,t)).hasError||(r.hide(),tC("added"))},r.show()}var uv=class{constructor(t){this.credentialId=t.credentialId,this.assessmentId=t.assessmentId,this.credentialUrl=t.credentialUrl,this.studyGuide=t.studyGuide,this.hasStudyGuideSummaries=this.studyGuide?.items.length>0}};H([V],uv.prototype,"hasStudyGuideSummaries",2),H([V],uv.prototype,"studyGuide",2);var hQe=W`
        ${Yj}
        ${Me(e=>"detailsPageUrl"in e.viewConfig.loadingContext.navigation,W`${gE}`)} `,bQe=W`
        ${e=>e.type.toLowerCase()==="path"?Wf:kr}${e=>e.data.title}${e=>or(e.data.durationInMinutes)}
        `,_Qe=W`

        ${e=>hE.replace("{section}",e.data.title)}

        `,yQe=W`

        ${T7}

        ${m7}

        ${mn(e=>e.reportStudyGuide.studyGuide.items,W` ${Me((e,t)=>t.parent.viewConfig.loadedContext.reportStudyGuide.guideType===0,bQe)} ${Me((e,t)=>t.parent.viewConfig.loadedContext.reportStudyGuide.guideType===1,_Qe)} `)} `,K0e=W`

        ${e=>e.viewConfig.loadedContext.reportStudyGuide.studyGuideItemsTitle}

        ${Me(e=>!e.reportStudyGuide.hasStudyGuideSummaries,hQe)} ${Me(e=>e.reportStudyGuide.hasStudyGuideSummaries,yQe)}
        `;var Jn=class{constructor(t){this.assessmentId=t.assessmentId,this.credentialExpiresOn=t.credentialExpiresOn,this.credentialIcon=t.credentialIcon,this.credentialId=t.credentialId,this.credentialName=t.credentialName,this.credentialUrl=t.credentialUrl,this.dateCountdown=new Ep(t.retakeEligibleOn,0),this.eligibleToRenewByDate=t.eligibleToRenewByDate,this.isCurrentlyEligible=t.isCurrentlyEligible,this.isDisabled=t.isDisabled,this.passed=t.passed,this.profileUrl=t.profileUrl,this.retakeEligibleOn=t.retakeEligibleOn,this.scoredOn=t.scoredOn,this.shareableUrl=t.shareableUrl,this.titleDate=t.titleDate,this.riskData=t.riskData}};H([V],Jn.prototype,"assessmentId",2),H([V],Jn.prototype,"credentialExpiresOn",2),H([V],Jn.prototype,"credentialIcon",2),H([V],Jn.prototype,"credentialId",2),H([V],Jn.prototype,"credentialName",2),H([V],Jn.prototype,"credentialUrl",2),H([V],Jn.prototype,"dateCountdown",2),H([V],Jn.prototype,"eligibleToRenewByDate",2),H([V],Jn.prototype,"isCurrentlyEligible",2),H([V],Jn.prototype,"isDisabled",2),H([V],Jn.prototype,"passed",2),H([V],Jn.prototype,"profileUrl",2),H([V],Jn.prototype,"retakeEligibleOn",2),H([V],Jn.prototype,"scoredOn",2),H([V],Jn.prototype,"shareableUrl",2),H([V],Jn.prototype,"titleDate",2),H([V],Jn.prototype,"riskData",2);var vQe=W`
        ${Me(e=>"supertitle"in e.viewConfig.loadedContext.reportSummary.passed&&!!e.reportSummary?.credentialName,W`

        ${e=>e.viewConfig.loadedContext.reportSummary.passed.supertitle}

        `)}

        ${e=>e.viewConfig.loadedContext.reportSummary.passed.title(e.reportSummary?.credentialName||"")}

        ${Me(e=>!!e.reportSummary?.scoredOn,W`

        ${e=>e.reportSummary?.titleDate}

        `)} ${Me(e=>"dateMsg"in e.viewConfig.loadedContext.reportSummary.passed,W`

        ${e=>e.viewConfig.loadedContext.reportSummary.passed.dateMsg}

        `)} ${Me(e=>"profilePageBtnTxt"in e.viewConfig.loadedContext.reportSummary.passed,W`${e=>e.viewConfig.loadedContext.reportSummary.passed.profilePageBtnTxt}`)} ${Me(e=>"shareMsg"in e.viewConfig.loadedContext.reportSummary.passed,W`
        ${Me(e=>"profileUrl"in e.reportSummary,W`${p7}`)} ${Me(e=>S.appliedSkillsShare,W`
        ${e=>FD("fast",{extraClasses:{paragraph:"display-inline-block margin-right-xxs font-size-sm has-text-centered-mobile ",link:"margin-right-xxs font-size-md"},sharingLinks:lC(e.reportSummary?.shareableUrl||"",e.reportSummary?.credentialName??Kn(dN),{achievementCopyTitle:{overrideTitle:e.reportSummary?.credentialName??Kn(uN),isUnquoted:!e.reportSummary?.credentialName}})})} `)}
        `)}
        `,xQe=W` ${Me(e=>!!e.reportSummary?.credentialName,W`

        ${e=>e.viewConfig.loadedContext.reportSummary.failed.supertitle}

        `)}

        ${e=>e.viewConfig.loadedContext.reportSummary.failed.title(e.reportSummary?.credentialName||"")}

        ${Me(e=>"detailsPageUrl"in e.viewConfig.loadingContext.navigation,W`

        ${e=>e.viewConfig.loadedContext.reportSummary.failed.detailsPageBtnTxt}

        `)} ${e=>S.disabledAppliedSkills&&((e.reportSummary?.isDisabled??!1)||e.reportSummary?.riskData?.userStatus==="NotAllowed")?N8({buttonText:g0,isDisabled:!0,riskData:{appealStatus:e.reportSummary?.riskData?.appealStatus,userStatus:e.reportSummary?.riskData?.userStatus}}):e.reportSummary?.isCurrentlyEligible?W` ${Me(t=>"eligibleTitle"in t.viewConfig.loadedContext.reportSummary.failed,W`

        ${t=>t.viewConfig.loadedContext.reportSummary.failed.eligibleTitle}

        `)} ${Me(t=>"eligibleMsg"in t.viewConfig.loadedContext.reportSummary.failed&&!!t.reportSummary?.eligibleToRenewByDate,W`

        ${t=>t.viewConfig.loadedContext.reportSummary.failed.eligibleMsg(t.reportSummary?.eligibleToRenewByDate||new Date(0))}

        `)}${g0}`:W`${tn(t=>t.reportSummary.dateCountdown,D8(g0))}`}`,J0e=W`
        ${Me(e=>e.reportSummary?.passed,vQe)} ${Me(e=>!e.reportSummary?.passed,xQe)}
        `;var ra=class{constructor(t){this.viewState=2;(async()=>{let n=t.urlContext??BD(new URL(location.href));this.urlContext=n;let o;this.viewConfig=t.viewConfig;let r;try{o=await t.getAssessmentReport(n),this.reportSummary=new Jn(o),this.reportScores=new uc(o),this.reportStudyGuide=new uv(o),this.passed=o.passed,r=1}catch(s){let a=await rm(s);if(a==="TimeoutError"||a==="ScoringTimeout"){location.reload();return}this.reportError=new PC({error:s,urlContext:n}),r=0}finally{this.viewState=r,t.afterActivated(o?{credentialName:o.credentialName,credentialUrl:o.credentialUrl}:null)}})()}};H([V],ra.prototype,"passed",2),H([V],ra.prototype,"reportError",2),H([V],ra.prototype,"reportScores",2),H([V],ra.prototype,"reportStudyGuide",2),H([V],ra.prototype,"reportSummary",2),H([V],ra.prototype,"urlContext",2),H([V],ra.prototype,"viewConfig",2),H([V],ra.prototype,"viewState",2);var Z0e=W` ${Me(e=>e.viewState===2,QD)} ${Me(e=>e.viewState===1,W`
        ${tn(e=>e,J0e)} ${tn(e=>e,W0e)} ${Me(e=>!e.passed,W`${tn(e=>e,K0e)}`)}
        `)} ${Me(e=>e.viewState===0,Q0e)} `;function X0e(){if(document.querySelectorAll("h1").length>1){let t=document.querySelector("[data-main-column] div:not(.content)>h1");t&&t.remove()}}var WD=class{constructor(t){this.sessionId=lO(t.sessionId)}};var B8={async createSession(e){if(!S.assessmentMergerLearnAssessment)return Su.createSession(e);let t=pe({accommodationRequested:e.accommodationRequested,assessmentId:e.assessmentId,locale:e.locale,sessionVersion:e.sessionVersion,showAllQuestions:e.showAllQuestions,skipVerification:e.skipVerification}),n=`${N.learnAssessment}/rendering/assessments/${e.assessmentId}?${t}`,r=J(n,{method:"POST"}),s=await $(r);if(he(s),s.ok)return await s.json();throw s.status===400?new Ge(s,"BadRequestError"):s.status===401?new Ge(s,"UnauthorizedError"):s.status===404?new Ge(s,"NotFoundError"):new Ge(s,"UnexpectedError")},async getSessionAnswerSummary(e){if(!S.assessmentMergerLearnAssessment)return Su.getSessionAnswerSummary();let t=`${N.learnAssessment}/rendering/assessments/sessions/${e.sessionId}/result/answers`,o=J(t,{method:"GET"}),r=await $(o);if(he(r),r.ok)return await r.json();throw r.status===400?new Ge(r,"BadRequestError"):r.status===401?new Ge(r,"UnauthorizedError"):r.status===404?new Ge(r,"NotFoundError"):new Ge(r,"UnexpectedError")},async getPreviousAttemptsByParentId(e){if(!S.assessmentMergerLearnAssessment)return Su.getPreviousAttemptsByParentId();let t=`${N.learnAssessment}/rendering/assessments/linkedcontent/${e.parentId}/sessions/attempts`,o=J(t,{method:"GET"}),r=await $(o);if(he(r),r.ok)return await r.json();throw new Ge(r,"UnexpectedError")},async getRenewalEligibility(){if(!S.assessmentMergerLearnAssessment)return Su.getRenewalEligibility()},async getSessionResult(e){if(!S.assessmentMergerLearnAssessment)return Su.getSessionResult();let t=`${N.learnAssessment}/rendering/assessments/sessions/${e.sessionId}/result`,o=J(t,{method:"GET"}),r=await $(o);if(he(r),r.ok)return await r.json();throw r.status===400?new Ge(r,"BadRequestError"):r.status===401?new Ge(r,"UnauthorizedError"):r.status===404?new Ge(r,"NotFoundError"):new Ge(r,"UnexpectedError")},async submitSession(e){if(!S.assessmentMergerLearnAssessment)return Su.submitSession();let t=`${N.learnAssessment}/rendering/assessments/sessions/${e.sessionId}`,n={method:"PUT",body:JSON.stringify(e.userSelections)},o=J(t,n),r=await $(o);if(he(r),r.ok)return await r.json();throw r.status===400?new Ge(r,"BadRequestError"):r.status===401?new Ge(r,"UnauthorizedError"):r.status===404?new Ge(r,"NotFoundError"):new Ge(r,"UnexpectedError")}};var Cto=R.supportLevel==="production"&&R.reviewFeatures?"include":void 0;var eke=async(e,t,n)=>{if(!S.assessmentMergerPracticeAssessment){if(R.accessLevel==="local")return Promise.resolve([{question:{type:"SingleSelect",text:"This is the first question.",rationale:"Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum."},userChoice:[{id:1,locale:"en-us",text:"Answer 1",isCorrect:!1}],correctChoice:[{id:2,locale:"en-us",text:"Answer 2",isCorrect:!0}]},{question:{type:"MultiSelect",text:"This is the second question.",rationale:"Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum."},userChoice:[{id:1,locale:"en-us",text:"Answer 1",isCorrect:!1},{id:2,locale:"en-us",text:"Answer 2",isCorrect:!1},{id:3,locale:"en-us",text:"Answer 3",isCorrect:!0}],correctChoice:[{id:3,locale:"en-us",text:"Answer 3",isCorrect:!0},{id:4,locale:"en-us",text:"Answer 4",isCorrect:!0},{id:5,locale:"en-us",text:"Answer 5",isCorrect:!0}]},{question:{type:"SingleSelect",text:"This is the third question.",rationale:"Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum."},userChoice:[{id:1,locale:"en-us",text:"Answer 1",isCorrect:!1}],correctChoice:[{id:2,locale:"en-us",text:"Answer 2",isCorrect:!0}]}]);let o=`${N.learn.skillAssessment}/practice/assessments/${e}/sessions/${t}/result/answers?${pe({locale:n})}`,s=J(o,{method:"GET",credentials:"include",headers:{"Content-Type":"applicationhttps://www.microsoft.com/json"}},!0),i=await $(s);if(he(i),i.ok)return await i.json();throw new Error(`get practice answer summary api responded with ${i.status} ${i.statusText}`)}return new BM(await B8.getSessionAnswerSummary(new WD({sessionId:t})),n).items};k();k();k();Qe();k();async function nke(){let e=`${N.profile.reporting}/createInvitation`,n=await $(J(e,{method:"POST"}));if(n.ok)return await n.json();throw new Error(`createInvitation api responded with ${n.status} ${n.statusText}`)}async function oke(){let e=`${N.profile.reporting}/status`,t=await $(J(e));if(t.status===404)return null;if(t.ok)return await t.json();throw new Error(`Invitation status api responded with ${t.status} ${t.statusText}`)}k();async function ike(){await xe,P("req_accommodation")==="true"&&CQe(),P("org_reporting")==="true"&&await EQe()}function CQe(){let e=document.getElementById("extend-time");if(!e)return;let{certificationUrl:t}=ce(),n=e.firstElementChild.firstElementChild;n.href=`${t}&accommodationRequested=true`}async function EQe(){let e=document.getElementById("org-reporting-container"),t=document.getElementById("org-reporting-button");if(!e||!t)return;let n=t.innerText;if(await ve,C.isAuthenticated){let o,r=ce().signInRedirect;if(C.userType==="standard")return r==="true"&&(Gt({signInRedirect:null},"replaceState"),KD(null,ske)),rke("msa-error",ske,e,n);try{o=await oke()}catch{return rke("error",lke,e,n)}if(r==="true"&&RQe(o),o)return LQe(o,e,n);let s=d``;x(s,e)}else{let o=uke(),r=d``;x(r,e)}}async function ake(){let e=document.createElement("div"),t=new Te(e);return x(AQe(t),e),await t.show()}function AQe(e){let t=d`

        ${F(Ree)}

        `,n=Lee,o=d`
        `;return LC(n,t,o)}async function kQe(e){IQe();try{let t=await nke();te.href=t.nextStepUrl}catch{KD(e,lke)}}function IQe(){let e=document.getElementById("cancel-terms"),t=document.getElementById("continue-terms"),n=document.getElementById("create-invitation-alert");t&&(t.classList.add("is-loading"),n.setAttribute("role","alert"),n.textContent=Pee,e.setAttribute("disabled",""))}async function KD(e,t){return(async o=>{e?e.pushContent(o):(e=new Te(o),await e.show())})(t()),await e.show()}function rke(e,t,n,o){let r=d``;x(r,n),document.getElementById(e)?.addEventListener("click",()=>KD(null,t))}function lke(){let e=document.createElement("div"),t=d`

        ${F(Eee)}

        `,n=Cee,o=d``;return x(LC(n,t,o),e),e}function ske(){let e=uke(),t=document.createElement("div"),n=d`

        ${F(Dee)}

        `,o=$ee,r=d``;return x(LC(o,n,r),t),t}async function cke(e){let t=document.createElement("div"),n=new Te(t);return x(PQe(e),t),await n.show()}function PQe(e){let t=d`

        ${F(kee)}

        `,n=Aee,o=d`${Nee}`;return LC(n,t,o)}function LQe(e,t,n){let o=e.status==="Accepted",r=e.nextStepUrl;if(o){let s=d``;x(s,t)}else{let s=d`${n}`;x(s,t)}}function RQe(e){let t=e&&e.status==="Accepted",n=e&&e.status==="Pending",o=e&&e.nextStepUrl;return Gt({signInRedirect:null},"replaceState"),t?cke(o):n?te.href=e.nextStepUrl:ake()}function uke(){return te.search?`${te.pathname}${te.search}&signInRedirect=true`:`${te.pathname}?signInRedirect=true`}function LC(e,t,n){return d``}k();tm();k();async function z8(e,t){let n=P("sourceContentUid"),o=t.searchParams.get("assessment-type"),r=await async function(){let l,c=o==="practice";if(n)try{l=(await mt.getListsItems([n]))[0]?.[c?"practiceAssessmentUid":"assessmentId"]}catch{}return l??t.searchParams.get("assessment-id")??t.searchParams.get("assessmentId")??null}(),s=function(){return n?n.split(".")[1]:!R.reviewFeatures||!Bt?location.href.replace(`${location.origin}/${e}/credentials/certifications/`,"").split("/")[0]:t.searchParams.get("certification-id")}(),i=t.searchParams.get("practice-assessment-type"),a=kS();return{assessmentId:r,certificationId:s,assessmentType:o,practiceAssessmentType:i,skipVerification:a,isPreview:a==="true",omitScoring:Oxe(),snapshotVersion:IS(),showAllQuestions:Nxe()}}k();k();k();k();k();k();var uao={allEmail:!0,autoFollowAsked:!0,autoFollowAnswered:!0,autoFollowCommented:!0,autoFollowTagged:!1,emailEventSettings:{questionUpdated:"off",questionPosted:"off",unansweredQuestions:"off",newModeration:"instant",newFollower:"off",newMention:"instant",answerUpdated:"off",answerPosted:"instant",answerAccepted:"instant",commentPosted:"instant",newPrivateMessage:"instant"}};k();var Mao=new URL(N.auth.partner).pathname;k();function gke(){return d`
        ${gae}
        • ${fae}
        • ${hae}
        • ${bae}
        `}var YQe={qna:{contextualCard:gke(),cancelRegistrationMessage:String(_ae),isEnabled:P("page_kind")!=="register"}},ylo=ce();k();var RC=class{constructor(t,n){this.question=t;this.questionNumber=n}},MC=class{},_f=class{constructor(t){this.questionResponses=t}},$C=class{};var hke=W` ${Me(e=>e.scenarioDescription,W`
        `)}
        ${mn(e=>e.choices[0].choices,W``)}${mn(e=>e.choices[0].choices,W``)}${mn(e=>e.choices,W`${mn(e=>e.choices,W``)}`,{positioning:!0})}
        `,dv=class{constructor(t){this.isSelected=!1;this.text=t.text,this.id=t.id}};H([V],dv.prototype,"id",2),H([V],dv.prototype,"text",2),H([V],dv.prototype,"isSelected",2);var yf=class{constructor(t){this.text=t.title,this.id=t.fullyQualifiedId,this.description=t.description,this.choices=t.choices.map(n=>new dv(n)),this.manualId=t.manualId}validate(){return this.choices.reduce((t,n)=>t||n.isSelected,!1)}};H([V],yf.prototype,"id",2),H([V],yf.prototype,"text",2),H([V],yf.prototype,"description",2),H([V],yf.prototype,"choices",2);var Au=class{constructor(t){this.scenarioTitle=t.title,this.scenarioDescription=t.description,this.uid=t.uid,this.questionType="Matrix",this.id=t.uid,this.choices=t.questions.map(n=>new yf(n)),this.fullyQualifiedId=t.questions[0].fullyQualifiedId}validate(){return this.choices.reduce((t,n)=>t&&n.validate(),!0)}async checkUserAnswer(){}serialize(){return this.choices.map(t=>({fullyQualifiedQuestionId:t.id,value:t.choices.filter(n=>n.isSelected).map(n=>n.id)}))}};H([V],Au.prototype,"uid",2),H([V],Au.prototype,"questionType",2),H([V],Au.prototype,"scenarioTitle",2),H([V],Au.prototype,"scenarioDescription",2),H([V],Au.prototype,"choices",2),H([V],Au.prototype,"id",2);function JD(e){try{let t=document.createElement("template");return t.innerHTML=e,t.content.querySelectorAll("a").forEach(n=>n.target="_blank"),t.innerHTML}catch{return e}}var bke=W`
        ${Rj}
        ${mn(e=>e.choices,W`
        ${(e,t)=>W` ${Me(n=>t.parent.displayAnswer,W` ${n=>n.isSelected&&n.isCorrect===!1?W`${Np}`:""} ${n=>n.isCorrect===!0?W`${Fp}`:""} `)} `}
        `)}
        e.rationale||""}>
        `,pv=class{constructor(t){this.isSelected=!1;this.text=t}};H([V],pv.prototype,"id",2),H([V],pv.prototype,"text",2),H([V],pv.prototype,"isSelected",2),H([V],pv.prototype,"isCorrect",2);var gi=class{constructor(t,n){this.choices=[];this.displayAnswer=!1;this.question=n,this.choices=this.question.choices.map(o=>({id:o.id,text:o.text,isSelected:!1,isCorrect:o.isCorrect})),this.questionTitle=this.question.title,this.questionDescription=this.question.description,this.scenarioTitle=t.title,this.scenarioDescription=t.description,this.uid=this.question.uid,this.questionType=this.question.questionType,this.id=this.question.fullyQualifiedId,this.fullyQualifiedId=this.question.fullyQualifiedId,this.manualId=this.question.manualId,this.rationale=JD(this.question.rationale)}validate(){return this.choices.reduce((t,n)=>t||n.isSelected,!1)}async checkUserAnswer(){this.displayAnswer=!0}serialize(){return[{fullyQualifiedQuestionId:this.question.fullyQualifiedId,value:this.choices.filter(t=>t.isSelected).map(t=>t.id)}]}};H([V],gi.prototype,"uid",2),H([V],gi.prototype,"questionTitle",2),H([V],gi.prototype,"questionDescription",2),H([V],gi.prototype,"questionType",2),H([V],gi.prototype,"scenarioTitle",2),H([V],gi.prototype,"scenarioDescription",2),H([V],gi.prototype,"choices",2),H([V],gi.prototype,"id",2),H([V],gi.prototype,"rationale",2),H([V],gi.prototype,"displayAnswer",2);var _ke=W`
        ${kj}
        ${mn(e=>e.choices,W`
        ${(e,t)=>W` ${Me(n=>t.parent.displayAnswer,W` ${n=>n.isSelected&&n.isCorrect===!1?W`${Np}`:""} ${n=>n.isCorrect===!0?W`${Fp}`:""} `)} `}
        `)}
        e.rationale||""}>
        `,mv=class{constructor(t){this.isSelected=!1;this.text=t}};H([V],mv.prototype,"id",2),H([V],mv.prototype,"text",2),H([V],mv.prototype,"isSelected",2),H([V],mv.prototype,"isCorrect",2);var fi=class{constructor(t,n){this.choices=[];this.displayAnswer=!1;this.question=n,this.choices=this.question.choices.map(o=>({id:o.id,text:o.text,isSelected:!1,isCorrect:o.isCorrect})),this.questionTitle=this.question.title,this.questionDescription=this.question.description,this.scenarioTitle=t.title,this.scenarioDescription=t.description,this.uid=this.question.uid,this.questionType=this.question.questionType,this.id=this.question.fullyQualifiedId,this.fullyQualifiedId=this.question.fullyQualifiedId,this.manualId=this.question.manualId,this.rationale=JD(this.question.rationale)}validate(){return this.choices.reduce((t,n)=>t||n.isSelected,!1)}async checkUserAnswer(){this.displayAnswer=!0}serialize(){return[{fullyQualifiedQuestionId:this.question.fullyQualifiedId,value:this.choices.filter(t=>t.isSelected).map(t=>t.id)}]}};H([V],fi.prototype,"uid",2),H([V],fi.prototype,"questionTitle",2),H([V],fi.prototype,"questionDescription",2),H([V],fi.prototype,"questionType",2),H([V],fi.prototype,"scenarioTitle",2),H([V],fi.prototype,"scenarioDescription",2),H([V],fi.prototype,"choices",2),H([V],fi.prototype,"id",2),H([V],fi.prototype,"rationale",2),H([V],fi.prototype,"displayAnswer",2);var vf=class{constructor(t,n,o,r,s,i,a,l){this.assessmentId=t,this.certificationUid=n,this.skipVerification=r,this.snapshotVersion=s,this.error=a,this.retry=l||(()=>{}),this.reportPageUrl=Tn({assessmentType:i,pageType:2,credentialId:this.error.detail.certificationUid,credentialPathname:o,query:{assessmentid:this.error.detail.assessmentId,snapshotId:this.error.detail.snapshotId}}),this.recertDetailsUrl=Tn({assessmentType:i,pageType:0,credentialId:this.certificationUid,credentialPathname:o,query:{assessmentId:this.assessmentId}})}retryHandler(){this.retry()}};H([V],vf.prototype,"error",2),H([V],vf.prototype,"reportPageUrl",2),H([V],vf.prototype,"recertDetailsUrl",2);var yke=W`
         

        ${e=>e.error&&e.error.status===400&&e.error.errorCode==="snapshotInvalid"?String(Uj):e.error&&e.error.status===400&&e.error.errorCode==="renewalCertificationExpired"?String(Hj):String(mE)}

        ${Me(e=>e.error&&e.error.status!==400,W`

        ${Fj}

        `)} ${Me(e=>e.error&&e.error.status===400&&e.error.errorCode==="snapshotInvalid",W`

        ${qj}

        `)} ${Me(e=>e.error&&e.error.status===400&&e.error.errorCode==="renewalCertificationExpired",W`

        `)} ${Me(e=>!e.error||e.error.status===400&&e.error.errorCode!=="snapshotInvalid"&&e.error.errorCode!=="renewalCertificationExpired",W`

        ${Dj}

        `)}
        `;var vke=W`

        ${Dt}

        ....
        `;var G8=class{constructor(){this.fileIsDirty=!1}static get admin(){return this._instance||(this._instance=new this)}},xke=G8.admin;xke.fileIsDirty=!1;function nYe(e,...t){let n=new URLSearchParams;for(let o of t){let r=e.searchParams.get(o);r!==null&&n.set(o,r)}return n}function gv(e,...t){let n=(a,l)=>l.length===0?a:[a,...l].join("/");if(t.length===0){let a=e.split("/");e=a.shift()??"",t=a}let o=new URL(te.href),r=nYe(o,"branch","themebranch","branchFallbackFrom","pr"),s=r.toString()!==""?"?"+r.toString():"",i=`/${b.data.userLocale}/admin/`+n(e,t)+s;return new URL(i,o)}k();var oYe=W`

        ${Gj}

        00:00:00
        `,rYe=d``,Tke=document.createElement("div"),wke=new Te(Tke),sYe=()=>{x(rYe,Tke)},iYe=()=>wke.hide(),aYe=()=>{document.querySelector(".modal-background").classList.remove("modal-close")},lYe=e=>{let{timeRemaining:t}=ce(),n=parseInt(t);return isNaN(n)?e:n},cYe=500,ZD=class{constructor(){this.countdownTimerReference=null}clearTimeout(){this.countdownTimerReference&&clearTimeout(this.countdownTimerReference)}};H([V],ZD.prototype,"countdownTimerReference",2);var V8=(e,t,n,o)=>{let r=e,s=Math.floor(r/1e3%60),i=Math.floor(r/1e3/60%60),a=Math.floor(r/(1e3*60*60)%24),l=document.querySelector("#timer-container");if(l!==null){let c=l.querySelector(".hours"),u=l.querySelector(".minutes"),p=l.querySelector(".seconds");c.textContent=a.toString().padStart(2,"0"),u.textContent=i.toString().padStart(2,"0"),p.textContent=s.toString().padStart(2,"0")}if(r<=0){let c=document.getElementById("next-button");return c.disabled!==null&&(c.disabled=!0),sYe(),wke.show(),document.getElementById("see-results-button").addEventListener("click",()=>{t.publish(new $C),iYe()}),aYe()}else return o.countdownTimerReference=setTimeout(V8,cYe,Math.max(n-Date.now(),0),t,n,o)},dc=class{constructor(t,n,o=ut,r=!1,s=!1,i="false",a="preview"){this.bus=o;this.omitScoring=r;this.isPreview=s;this.showAllQuestions=i;this.snapshotVersion=a;this.countdownTimerReference=new ZD;this.options={showcheckAnswer:!1};this.reRouteSession=()=>{let t=new URL(location.href),n=this.showAllQuestions==="true"?"false":"true";t.searchParams.set("show-all-questions",n),t.searchParams.set("omit-scoring",n),this.countdownTimerReference.clearTimeout(),Rs.goto(t,"replaceState")};this.title=t,this.service=n,this.numberOfScenarios=this.service.questionnaire.count,this.timer=this.service.snapshot.timer,this.bus.subscribe(RC,c=>{this.updateScenario(c.question,c.questionNumber)}),this.renewalAssessmentUid=this.service.snapshot.renewalAssessmentUid,this.manualId=this.service.snapshot.manualId,this.linkMetadata=this.service.linkMetadata,this.options={showcheckAnswer:this.service.type==="practice"};let l=()=>({canHandle:c=>location.origin===c.origin&&location.pathname===c.pathname&&c.search!=="",handle:async c=>Promise.resolve({url:c,title:this.title}),params:[]});Rs.enable(l())}async initialize(){if(this.updateScenario(this.service.currentScenario,this.service.currentScenarioNumber),this?.service?.snapshot?.temporaryPreviewExpiresAt){let t="has-background-warning-light display-flex justify-content-center",n="button",o=ZCe,r={id:"renewal-assessment-platform-api-link",url:XCe,text:vj},s=new Date(Date.parse(this.service.snapshot.temporaryPreviewExpiresAt));Jt(yj?.replace("{temporaryPreviewExpiresAt}",s.toString()),r,t,n,o)}if(this.timer!==null&&this.timer!==void 0){let t=this.timer*1e3*60;if(R.supportLevel==="production"){let n=Date.now()+t;V8(t,this.bus,n,this.countdownTimerReference)}else{let n=lYe(t),o=Date.now()+n;V8(n,this.bus,o,this.countdownTimerReference)}}}updateScenario(t,n){let[o,r,s]=t.fullyQualifiedId.split(".");this.questionnaireId=o,this.questionSetId=r,this.questionId=s,this.currentScenario=t,this.currentScenarioNumber=n,this.form&&this.form.focus()}next(){this.bus.publish(new MC)}checkUserAnswer(){if(this.form.checkValidity()){this.currentScenario.checkUserAnswer();return}this.form.reportValidity()}};H([V],dc.prototype,"numberOfScenarios",2),H([V],dc.prototype,"currentScenarioNumber",2),H([V],dc.prototype,"currentScenario",2),H([V],dc.prototype,"title",2),H([V],dc.prototype,"timer",2),H([V],dc.prototype,"countdownTimerReference",2);var Ske=W` ${Me(()=>R.reviewFeatures,W`
        e.reRouteSession()} />
        `)}
        ${Me(e=>e.isPreview,W`${e=>e.manualId||e.renewalAssessmentUid}`)}

        ${e=>e.title}

        ${e=>e.timer!==null&&e.timer!==void 0?oYe:""}
        ${Me(e=>e.isPreview,W` (${e=>e.currentScenario.manualId||e.currentScenario.uid}) `)}
        ${tn(e=>e.currentScenario,e=>uYe(e.currentScenario))}
        ${Me(e=>e.options.showcheckAnswer,W``)}
        `;function uYe(e){let t={SingleSelect:_ke,MultiSelect:bke,Matrix:hke},n=e.questionType.charAt(0).toUpperCase()+e.questionType.slice(1);return t[n]}function dYe(e){return e.currentScenarioNumber===e.numberOfScenarios?e.isPreview&&(e.omitScoring||e.snapshotVersion==="preview")?F9:Nn:Mj}document.onkeydown=e=>{if(e.altKey&&e.key==="v"){let t=document.getElementById("timer-container");if(t)switch(t.getAttribute("aria-live")){case"polite":t.setAttribute("aria-live","assertive");break;case"assertive":t.setAttribute("aria-live","off");break;case"off":t.setAttribute("aria-live","assertive");break}}};var Cke=W`
         

        ${$j}

        `;var fv=class{constructor(t,n){this.scoredSnapshot=t,this.resultsUrl=n}};H([V],fv.prototype,"scoredSnapshot",2),H([V],fv.prototype,"resultsUrl",2);var Eke=W``;var XD=class extends ze{constructor(n,o,r,s,i,a=ut,l=!1,c=!1){super();this.service=n;this.assessmentId=o;this.skipVerification=r;this.showAllQuestions=s;this.snapshotVersion=i;this.bus=a;this.omitScoring=l;this.isPreview=c;this.viewState="Loading";this.publish(new $g)}async initializeAssessment(){let n=await z8(b.data.userLocale,new URL(location.href));try{await this.service.initSnapshot()}catch(o){Ake(o,this.service,n.certificationId)}w.title=this.service.type==="renewal"?this.createTitle(this.service.snapshot.certificationName,w.title):w.title,this.setTesting(),this.bus.subscribe(_f,async o=>{this.setScoring();try{await this.service.scoreSnapshot(o.questionResponses)&&this.service.type==="renewal"?this.setSuccess(this.service.scoredSnapshot,Tn({assessmentType:"renewal",pageType:2,credentialId:this.service.snapshot.certificationUid,credentialPathname:this.service.contentSource.url,query:{assessmentid:this.assessmentId,snapshotId:this.service.scoredSnapshot.snapshotId}})):this.setFailed()}catch(r){if(r instanceof Zg){this.setError(this.assessmentId,this.service.snapshot.certificationUid,this.service.contentSource?.url,this.skipVerification,this.snapshotVersion,this.service.type,r,()=>this.bus.publish(new _f(o.questionResponses)));return}this.setError(this.assessmentId,this.service.snapshot.certificationUid,this.service.contentSource?.url,this.skipVerification,this.snapshotVersion,this.service.type)}})}setTesting(){this.model=new dc(this.service.snapshot.title,this.service,this.bus,this.omitScoring,this.isPreview,this.showAllQuestions,this.snapshotVersion),this.model.initialize(),this.viewState="Testing",this.publish(new nt),this.assessmentStart=Date.now()}setScoring(){this.assessmentTime=(Date.now()-this.assessmentStart)/6e4,this.model=null,this.viewState="Scoring",this.publish(new nt)}async setSuccess(n,o){this.model=new fv(n,o);try{await Promise.all([sS("/en-us/media/learn/certification/renew/fireworks.png?branch=main"),sS("/en-us/media/learn/certification/badges/microsoft-certified-associate-badge.svg?branch=main")])}finally{this.viewState="Success",this.publish(new nt)}}setError(n,o,r,s,i,a,l,c){this.model=new vf(n,o,r,s,i,a,l,c),this.viewState="Error",this.publish(new nt)}setFailed(){this.viewState="Failed",this.publish(new nt)}createTitle(n=nl,o=w.title){let r=o.split("|").pop();return`${Tj.replace("{certificationName}",n||nl)} | ${r}`}};H([V],XD.prototype,"viewState",2);var pYe=W` ${Me(e=>e.viewState==="Loading",vke)} ${Me(e=>e.viewState==="Testing",W` ${tn(e=>e.model,e=>Ske)}`)} ${Me(e=>e.viewState==="Scoring",Cke)} ${Me(e=>e.viewState==="Success",W` ${tn(e=>e.model,e=>Eke)}`)} ${Me(e=>e.viewState==="Error",W` ${tn(e=>e.model,e=>yke)}`)} `;function Ake(e,t,n){if(e instanceof Zg){if(e.status===401){Un(location.href);return}t.snapshot?location.href=Tn({assessmentType:"renewal",pageType:0,credentialId:t.snapshot&&t.snapshot.certificationUid||n,credentialPathname:t.contentSource.url,query:{assessmentId:t.snapshot&&t.snapshot.renewalAssessmentUid||""}}):location.href=rs(w.referrer).href;return}else throw e}var mYe={loadingContext:{loadingType:1,navigation:{assessmentPageUrl:(e,t,n)=>Tn({credentialId:e,assessmentType:"renewal",pageType:1,credentialPathname:n,query:{assessmentId:t}}),detailsPageUrl:(e,t,n)=>Tn({credentialId:e,assessmentType:"renewal",pageType:0,credentialPathname:n,query:{assessmentId:t}}),profileDetailPageUrl:dn("me","certifications"),profileOverviewPageUrl:dn(C.userName),browsePageUrl:`/${b.data.userLocale}/certifications`}},loadedContext:{reportSummary:{passed:{title:e=>_N.replace("{certificationName}",e||nl),imgSrc:e=>e||"/en-us/media/learn/certification/badges/microsoft-certified-associate-badge.svg?branch=main",titleDate:e=>e,dateMsg:`${aK} ${Qj}`,profilePageBtnTxt:yN,supertitle:aE},failed:{detailsPageBtnTxt:Kj,eligibleTitle:Zj,eligibleMsg:e=>Xj.replace("{date}",Qi.format(e)),supertitle:Wj,title:e=>e||nl}},reportScores:{scoresTitle:bE,scoreType:1},reportStudyGuide:{guideType:1,studyGuideCollectionFormTitle:_j,studyGuideItemsTitle:fE}},errorContext:{reportError:e=>({NotFoundError:{title:da,msg:eQ,primaryButton:{text:nQ,url:`/${b.data.userLocale}/credentials`},secondaryButton:{text:yN,url:dn(C.userName)}}})}};k();var xf="facet-search-input";async function e1(e,t,n=null,o=60*1e3){let r=new URL(e).href;if(t.length>100)return{question:"",answer:""};let s=J(r,{mode:"cors",method:"POST",credentials:R.supportLevel==="production"&&R.reviewFeatures?"include":"same-origin",body:JSON.stringify({Query:t}),signal:n||void 0}),i,a=new Promise((l,c)=>{i=window.setTimeout(()=>{c(new Qt(new Response("Timeout",{status:408})))},o)});try{let l=await Promise.race([fetch(s),a]);if(l.ok){let c=(await l.text()).trim();return c?JSON.parse(c):{question:"",answer:""}}throw new Qt(l)}finally{i!==void 0&&clearTimeout(i)}}function t1(e,t,n,o,r,s,i,a){if(isNaN(e))return"";if(!t)return m0.replace("{numberOfResults}",qr(e));let c=i?e===1?Kse:Wse:a?e===1?Gse:zse:e===1?Bse:Hse,u=a?e===1?Yse:Qse:e===1?jse:Vse,p=a?e===1?tie:eie:e===1?Xse:Zse,m;switch(n){case"Documentation":case"documentation":m=p.replace("{pivotCategory}",ua);break;case"Training":case"training":m=p.replace("{pivotCategory}",Xr);break;case"Credential":case"credential":m=p.replace("{pivotCategory}",mo);break;case"Reference":case"reference":m=p.replace("{pivotCategory}",Wo);break;case"Show":case"show":m=p.replace("{pivotCategory}",Ar);break;case"QnA":case"qna":m=p.replace("{pivotCategory}",sx);break;default:m=o&&!r?u:c}return m.replace("{count}",qr(e)).replace("{searchPhrase}",s&&s.length!==0?gYe(t,s):t).replace("{scope}",o&&!r?o:"").replace(/\s\s+/g," ")}function gYe(e,t){t.reverse();let n=e;for(let{start:o,length:r,correction:s}of t)n=`${n.substring(0,o)}${s}${n.substring(o+r)}`;return n}function kke(e){if(e.busy)return;let n=(e.facetGroups?.category&&e.facetGroups.category.facets.find(s=>s.isSelected))?.value||"",o=t1(e.resultsCount,e.terms,n,e.scope,e.scopeRemoved,e.spellingCorrection),r=e.resultsCount===0?fn:o;e.getSelectedCategoryName()!=="Ai"&&pt(r,"assertive")}var ku=class{constructor(t){this.type=t}};var Tf=class extends ze{constructor(n,o,r,s,i,a,l,c,u,p,m){super();this.label=n;this.count=o;this.name=r;this.value=s;this._isSelected=i;this._isExpanded=a;this.level=l;this.position=c;this.group=u;this.parent=p;this.avatarUrl=m;this.children=[]}get hasChildren(){return this.children.length>0}get hasSelectedChild(){return!this.isSelected&&!!this.children.find(n=>n.isSelected)}get isSelected(){return this._isSelected}get isChecked(){return this.parent?._isSelected||this.isSelected}get inputClass(){return this.parent&&this.parent.isSelected?"checkbox-muted":this.isSelected?"is-primary":""}get isExpanded(){return this.group.filterActive||this.hasChildren&&this._isExpanded||this.hasSelectedChild}get hidden(){return this.group.filterActive&&this.hasVisibleChild?!1:!!(this.isFiltered||this.parent&&!this.parent.isExpanded)}get isFiltered(){return this.group.filterActive&&!this.name.toLocaleLowerCase().includes(this.group.filter.toLocaleLowerCase())}get hasVisibleChild(){return this.hasChildren&&!!this.children.find(n=>!n.hidden)}toggleSelected(){this.isSelected?this.deselect():this.select(),this.notifyFacetChange("select")}toggleExpanded(){this._isExpanded?this.collapse():this.expand(),this.notifyFacetChange("expand")}deselect(){this._isSelected=!1}select(){if(this.parent?.isSelected&&this.parent.deselect(),this.children.length>0)for(let n of this.children)n.deselect();this._isSelected=!0}expand(){this.hasChildren&&(this._isExpanded=!0)}collapse(){this._isExpanded=!1}notifyFacetChange(n){this.publish(new ku(n))}};function Ike(e){let t={};for(let n in e){let o=n,r=e[o];t[o]=r.selected}return t}function Pke(e){let t={};for(let n in e){let r=e[n];t={...t,...r.expanded}}return t}function Lke(e,t,n){if(!t){let r=document.createElement("input");return n&&(r.pattern="(?!^\\s+$)^.*$",r.required=!0),r.setAttribute("type","text"),r.setAttribute("aria-label",rn),r.setAttribute("maxlength","100"),r.dataset.biName="search-input",r.classList.add("input","input-lg"),r.placeholder=rn,r.id=xf,r.name=xf,r.value="",r}t.input={...t.input,name:xf,id:xf,label:rn,size:"large",required:!!n};let o=wr({...t,initialValue:""});return o.addEventListener(li,()=>e()),o.addEventListener(li,JTe),o.addEventListener($S,i$),o}function n1(e){document.getElementById(`facet-input-filter-${e}`).focus()}var DC=class{constructor(t){this.skip=t}},o1=class extends ze{constructor(n,o,r=0){super();this._top=o;this.pageIndex=Math.floor(r/o),this.pageCount=Math.min(Math.max(this.pageIndex+2,10),Math.ceil(n/o))}get displayRange(){return{first:Math.max(this.pageIndex-2,0),last:Math.min(this.pageIndex+2,this.pageCount)}}async setPage(n){let o=n*this._top;this.publish(new DC(o))}};function fYe(e){let t={};if(t.scope=e.scope||null,t.terms=e.terms||null,t.top=null,t.skip=e.skip&&e.skip!==0?e.skip.toString():null,t.hideCompleted=e.hideCompleted?e.hideCompleted.toString():null,t.dataSource=e.dataSource||null,e.selectedFacets)for(let n in e.selectedFacets)t[n]=Object.keys(e.selectedFacets[n]).join(",");e.expandedFacets&&(t.expanded=Object.keys(e.expandedFacets).join(","));for(let n in iv){let o=`filter-${n}`,r=n in e.filters;t[o]=r?e.filters[n]:null}return t.search=null,t}function sa(e,t="pushState"){let n=fYe(e);Gt(n,t)}function Rke(e){for(let t in e){let n=t,o=hYe(n);e[n]=e[n].map(r=>Mke(r,n,o)),n!=="category"&&n!=="date"&&(e[n]=e[n].sort(o))}return e}function hYe(e){return e==="years"?(t,n)=>n.displayName.localeCompare(t.displayName,b.data.userLocale):e==="levels"?(t,n)=>o8(t.value)-o8(n.value):(t,n)=>t.displayName.localeCompare(n.displayName,b.data.userLocale)}function Mke(e,t,n){return e.displayName||(e.displayName=Gr?.[t]?.[e.value]||e.value),e.children&&e.children.length&&(e.children.map(o=>{Mke(o,t,n)}),e.children.length>1&&e.children.sort(n)),e}var j8=(e,t)=>t.hasChildren?t.children.reduce(j8,e)+1:e+1,r1=class extends ze{constructor(n,o=""){super();this.key=n;this._filter=o;this._facets=[];this._totalFacets=0;this.name=iv[n]}get facets(){return this._facets}set facets(n){this._facets=n,this._totalFacets=this._facets.reduce(j8,0),this.subscribeToChanges(this.facets)}get hasFilterInput(){return this.filterActive||this._totalFacets>14}get selected(){return this.facets.reduce(Q8("isSelected"),{})}get expanded(){return this.facets.reduce(Q8("isExpanded"),{})}set filter(n){this._filter=n}get filter(){return this._filter}get filterActive(){return this._filter!==""}get hasVisibleChild(){return!!this.facets.find(n=>!n.hidden)}get isEmpty(){return this._totalFacets===0}get allFacetsFilteredOut(){return this.hasFilterInput&&this.filterActive&&!this.hasVisibleChild}handleFilterInput(n){let o=n.target instanceof HTMLInputElement&&n.target;this.filter=o.value,this.notifyFacetChange("filter")}clearFilter(){this._filter="",n1(this.key),pt(d2,"assertive"),this.notifyFacetChange("filter")}clearFacet(){pt(d2,"assertive"),this.notifyFacetChange("facet_clear")}deselectAll(){this.facets.forEach(n=>n.deselect())}selectByValue(n){this.deselectAll();let o=this.facets.find(r=>r.value===n);o&&!o.isSelected&&o.select(),this.notifyFacetChange("select")}setFacets(n){this._facets=n,this._totalFacets=this._facets.reduce(j8,0),this.subscribeToChanges(this.facets)}subscribeToChanges(n){for(let o of n)o.subscribe(ku,r=>this.notifyFacetChange(r.type)),o.children&&this.subscribeToChanges(o.children)}notifyFacetChange(n){this.publish(new ku(n))}};function Q8(e){return(t,n)=>{if(n[e])t[n.value]=!0;else if(n.hasChildren)return n.children.reduce(Q8(e),t);return t}}function $ke(e){let t={};for(let n in e)if(n in iv&&e[n]){let o=n,r=e[o].split(","),s=bYe(o,r);s&&(t[o]=s.reduce((i,a)=>(i[a]=!0,i),{}))}return t}function Dke(e){return e.expanded?e.expanded.split(",").reduce((n,o)=>(n[o]=!0,n),{}):{}}function Nke(e,t,n,o){let r={};for(let s in e){let i=s,a=new r1(i,o[i]);a.facets=e[i].map(Fke(i,1,t,n,a)),r[i]=a}if(Ft==="Search"){let s=t.category&&Object.keys(t.category).length>0?Object.keys(t.category)[0]:void 0;for(let i of r$)i!=="All"&&!r?.category.facets.find(a=>a.name===i)&&(r.category.facets=r.category.facets.concat(new Tf("category",0,i,i,i===s,!1,2,r.category.facets.length+1,r.category)))}return r}function Fke(e,t,n,o,r,s){return(i,a)=>{let l=e in n&&i.value in n[e],c=i.value in o,u=new Tf(e,i.count,i.displayName||i.name,i.value,l,c,t+1,a+1,r,s,i.avatarUrl);return i.children&&i.children.length&&(u.children=i.children.map(Fke(e,t+1,n,o,r,u))),u}}function Oke(e){let t={};for(let n in e){let o=n,r=e[o];t[o]=r.filter||""}return t}function Uke(e){let t={};for(let n in e)t[e[n]]=n;return t}function bYe(e,t){if(t.length===0)return[];if(e==="category"){if(t.length===1){let n=r$.find(o=>o.localeCompare(t[0],void 0,{sensitivity:"base"})===0);return n==="Ai"&&(S.enableDeepSearch===!1||!C.isAuthenticated)?[]:n&&n!=="All"?[n]:null}return[]}else if(e==="date"){if(t.length===1){let n=Object.keys(di).find(o=>o.localeCompare(t[0],void 0,{sensitivity:"base"})===0);return n&&n!=="all"?[n]:null}return[]}return t}function NC(e){return Object.keys(e||{}).length===0}var s1=class extends ze{constructor(n,o,r={}){super();this._top=o;this.initialized=new Promise(n=>{this.initialize=n});this.showSearchAnswer=!0;this._busy=!1;this._dataSource="";this._disallowBlankSlate=!1;this._expandedFacets={};this._facetGroups={};this._facetsKnown=!1;this._filters={};this._isFuzzySearch=!1;this._hideCompletedEnabled=!1;this._hideCompleted=!1;this._mobileMenuView="top";this._results=[];this._rssEnabled=!1;this._scopeRemoved=!1;this._scoringProfileEnabled=!1;this._spellingCorrection=[];this._blankSlateEnabled=!1;this._resultsSortOptions=[];this._currentResultsSortOptionsIndex=0;this._termHasSynonyms=!1;this._pageStateHandler=null;this._abortController={};this._firstFetchCompleted=!1;this._maxCachedResponse=6;this._cachedResponse=[];this._maxCopilotQaCache=10;this._copilotQaCache=[];this._maxDeepSearchCache=5;this._deepSearchCache=[];this.argsStringifyFunc=(n,o)=>{if(n==="selectedFacets"){let r=o;for(let s in r)NC(r[s])&&delete r[s];o=r}if(!(n==="expandedFacets"||!o))return o};this.toUrl=n=>n.url;if(r.blankSlateEnabled&&(this._blankSlateEnabled=!0),r.taxonomyFacetLookups&&(this.taxonomyFacetLookups=r.taxonomyFacetLookups,this.taxonomyFacetLookupsReversed=Uke(this.taxonomyFacetLookups)),r.syntheticFacets&&(this._syntheticFacets=r.syntheticFacets),r.facetSort&&(this.facetSort=r.facetSort),r.queryStringTransformer){let s=r.queryStringTransformer(new URL(te.href));Gt(s,"replaceState","")}if(this._pageStateHandler=r.pageStateHandler,this._fetch=n,r.hideCompleted&&C.isAuthenticated&&(this._hideCompletedEnabled=!0),this._scoringProfileEnabled=!!r.scoringProfile,this.scoringProfileEnabled&&(this._scoringProfile=r.scoringProfile),r.rss&&S.rss&&(this._rss=r.rss,this._rssEnabled=!0),r.resultSortOptions&&r.resultSortOptions.length>0){this._resultsSortOptions=r.resultSortOptions;let s=r.resultSortOptions.findIndex(i=>i?.default===!0);this._currentResultsSortOptionsIndex=s===-1?0:s}this._input=Lke(async()=>{await this.fetch(),sa(this.createSearchArgs())},r.autocomplete,!!r.fetchRequiresTerms),this.readState(),!this.terms&&this.blankSlateEnabled?(this.setBusy(),this.setBlankData(),this.setReady()):(r.scenarioHealth&&(this._scenarioHealth=r.scenarioHealth,this.startScenario(this._scenarioHealth.viewResults)),this.fetch()),sa(this.createSearchArgs(),"replaceState"),window.addEventListener("popstate",()=>this.handlePopState())}get selectedFacetsMinusCategory(){let n=Object.assign({},this._selectedFacets);n.category&&delete n.category;for(let o in n)NC(n[o])&&delete n[o];return n}get mobileMenuView(){return this._mobileMenuView}get resultsCount(){return this._resultCount}get input(){return this._input}get terms(){return this._input.value||""}get scope(){return this._scope}get scopeRemoved(){return this._scopeRemoved}get spellingCorrection(){return this._spellingCorrection}get results(){return this._results}get srcheng(){return this._srcheng}get busy(){return this._busy}get facetGroups(){return this._facetGroups}get selectedCategoryId(){return this._selectedCategoryId}get selectedFacets(){return this._selectedFacets}get expandedFacets(){return this._expandedFacets}get hideCompleted(){return this._hideCompleted}get hideCompletedEnabled(){return this._hideCompletedEnabled}get scoringProfileEnabled(){return this._scoringProfileEnabled}get scoringProfile(){return this._scoringProfile}get rssEnabled(){return this._rssEnabled}get rssUrl(){return this._rssUrl}get dataSource(){return this._dataSource}get blankSlateEnabled(){return this._blankSlateEnabled}get showBlankSlate(){return this.blankSlateEnabled&&!this.disallowBlankSlate&&(!this.results||this.results.length===0)&&!this.busy&&this.isBlank}get disallowBlankSlate(){return this._disallowBlankSlate}set disallowBlankSlate(n){this.disallowBlankSlate||(this._disallowBlankSlate=n)}get hasActiveFilter(){for(let n in this._selectedFacets)if(this._selectedFacets[n]){for(let o in this._selectedFacets[n])if(o.toLowerCase()!=="all"){if(n==="category")return this.getSelectedCategoryName()===o;if(this._selectedFacets[n]?.[o])return!0}}return!1}get isBlank(){return!this.hasActiveFilter&&this.terms===""}get categoriesEnabled(){return!!this.facetGroups.category}get hasActiveFacets(){for(let n in this._facetGroups)if(this._facetGroups[n]?.facets?.length)return!0;return!1}get syntheticFacets(){return this._syntheticFacets}get facetsEnabled(){return this.dataSource!=="previousVersions"}get isFuzzySearch(){return this._isFuzzySearch}get hasSortableResults(){return this._resultsSortOptions&&this._resultsSortOptions.length>0}get resultsSortOptions(){return this._resultsSortOptions}get currentResultsSortOptionsIndex(){return this._currentResultsSortOptionsIndex}get termHasSynonyms(){return this._termHasSynonyms}get isFirstPage(){return!this._skip}get firstFetchCompleted(){return this._firstFetchCompleted}async submit(n){n.preventDefault(),this._scenarioHealth&&this.startScenario(this._scenarioHealth.viewResults);let o=n.target.elements.namedItem(xf);o.value.length>100&&(o.value=o.value.trim().slice(0,100)),this.input.value=o.value.trim(),this._skip=0,this.fetch(),sa(this.createSearchArgs())}async fetch(){this.setBusy();try{let n=this.createSearchArgs();this.taxonomyFacetLookups&&this._remapTaxonomyFacetNames(this.taxonomyFacetLookupsReversed,n.selectedFacets);let o;for(let c in n.selectedFacets.author){o=c;break}let[r,s,i,a]=await Promise.all([this.useCacheOrFetch(n),this.contentAreaNumberFetch(),cO(o),this.fetchGuestSearchAnswerResult(n)]);this.maintainCachedResults(n,r),s&&this.maintainCachedResults(this.createSearchArgs(!1),s);let l=this.combineResponse(r,s,i);this.taxonomyFacetLookups&&this._remapTaxonomyFacetNames(this.taxonomyFacetLookups,l.facets),this.updateAnswers(a),this.updateResults(l),this.updateSrcheng(l),this.updateFacets(l),this.updateScopeRemoval(l),this.updateSpellingCorrection(l),this.updateSynonymCheckForSearchTerm(l),this.updatePaging(),this.updateRssUrl()}catch(n){this.setBlankData(),this._scenarioInstance?.fail(n)}finally{this.results&&this.results.length>0&&(this.disallowBlankSlate=!0),this._firstFetchCompleted=!0,this.setReady(),this.initialize(),this._scenarioInstance?.succeed(),kke(this),ZTe(this.createSearchArgs(),this._results.map(this.toUrl),this._resultCount,this.getSelectedCategoryName(),this._scopeRemoved,this._spellingCorrection.length>0,!0,this._srcheng)}}handleFacetChange(n,o){switch(n){case"select":this._scenarioHealth&&this.startScenario(this._scenarioHealth.facetChange),this._selectedFacets=Ike(this.facetGroups),this._skip=0,this.fetch(),sa(this.createSearchArgs()),qy("search-filter-apply",o);break;case"expand":this._expandedFacets=Pke(this.facetGroups),sa(this.createSearchArgs()),this.notifyPropertyChanged();break;case"filter":this._filters=Oke(this.facetGroups),sa(this.createSearchArgs(),"replaceState"),this.facetGroups[o].allFacetsFilteredOut&&pt(fn,"assertive",2e3),this.notifyPropertyChanged();break;case"facet_clear":this.clearFacet(o),this.notifyPropertyChanged();break;default:break}}clearFacets(n=!1){this.hideCompletedEnabled&&(this._hideCompleted=!1);for(let o in this._selectedFacets)o==="category"&&n||(this._selectedFacets[o]={});this._facetsKnown=!1,this._skip=0,this.fetch(),sa(this.createSearchArgs())}clearFacet(n){this._selectedFacets[n]={},this.fetch().then(()=>{n1(n)}),sa(this.createSearchArgs())}selectMobileView(n,o){this._mobileMenuView=n,this.notifyPropertyChanged();let r=document.querySelector(".modal-content");if(o)this._selectedCategoryId=o;else if(this.selectedCategoryId){let s=r.querySelector(`#${this.selectedCategoryId}`);if(s){s.focus();return}}q_(r)}clearScope(){this._scope=null,this.fetch(),sa(this.createSearchArgs()),this.notifyPropertyChanged()}notifyPropertyChanged(){this.publish(new nt)}resetAbortController(n){return n in this._abortController&&this._abortController[n].abort(),this._abortController[n]=new AbortController,this._abortController[n].signal}toggleHideCompleted(){this.hideCompletedEnabled&&(this._hideCompleted=!this._hideCompleted,this._skip=0,this.fetch(),sa(this.createSearchArgs()))}getSelectedCategoryName(){if(!this._facetsKnown){if(this._selectedFacets?.category)for(let o in this._selectedFacets.category)return o;return""}return this.categoriesEnabled&&this.facetGroups.category.facets.find(o=>o.isSelected)?.name||""}async handleResultsSortOptionChange(n,o){if(this._currentResultsSortOptionsIndex===o){let r=n.target instanceof Element&&n.target.closest("details.popover")||n.target instanceof Element&&n.target.shadowRoot?.activeElement?.closest("details.popover");r?.hasAttribute("open")&&r.removeAttribute("open");return}this._currentResultsSortOptionsIndex=o,this.fetch()}queryCopilotQaCache(n){let o=this._copilotQaCache.find(r=>r.query===n);return o?o.response:null}addCopilotQaToCache(n,o){for(this._copilotQaCache=this._copilotQaCache.filter(r=>r.query!==n),this._copilotQaCache.push({query:n,response:o});this._copilotQaCache.length>this._maxCopilotQaCache;)this._copilotQaCache.shift()}queryDeepSearchCache(n){let o=this._deepSearchCache.find(r=>r.query===n);return o?o.response:null}addDeepSearchToCache(n,o){for(this._deepSearchCache=this._deepSearchCache.filter(r=>r.query!==n),this._deepSearchCache.push({query:n,response:o});this._deepSearchCache.length>this._maxDeepSearchCache;)this._deepSearchCache.shift()}async handlePageState(n){this._pageStateHandler&&await this._pageStateHandler(this,n)}startScenario(n){this._scenarioInstance&&this._scenarioInstance.cancel(),this._scenarioInstance=new Sr(n),this._scenarioInstance.start()}setBlankData(){this._results=[],this._facetGroups={},this._resultCount=0,this.initialize()}initialize(){}_remapTaxonomyFacetNames(n,o){for(let r in n)if(r in o){let s=o[r],i=n[r];o[i]=s,delete o[r]}}async contentAreaNumberFetch(){return this.getSelectedCategoryName()?this.useCacheOrFetch(this.createSearchArgs(!1)):Promise.resolve(void 0)}async useCacheOrFetch(n){if(n?.selectedFacets?.date&&Object.keys(n.selectedFacets.date).length>0)return this._fetch(n);let o=JSON.stringify(n,this.argsStringifyFunc),r=this._cachedResponse.find(s=>s.args===o);return r?(await new Promise(s=>setTimeout(s,300)),r.response):this._fetch(n)}maintainCachedResults(n,o){let r=JSON.stringify(n,this.argsStringifyFunc);for(this._cachedResponse=this._cachedResponse.filter(s=>s.args!==r),this._cachedResponse.push({args:r,response:o});this._cachedResponse.length>this._maxCachedResponse;)this._cachedResponse.shift()}combineResponse(n,o,r){if(this.syntheticFacets&&this.dataSource!=="previousVersions"&&(n.facets={...n.facets,...this.syntheticFacets,author:r?[{type:"text",displayName:r.displayName||jr,value:r.userId,avatarUrl:r.avatarUrl||ho(r.displayName,r.userId)}]:[]}),o&&n.facets?.category){if(this.getSelectedCategoryName()==="QnA"&&n.facets?.category.length===0){let s=o.facets?.category?.find(i=>i.value==="QnA");s&&(s.count=0)}for(let s of o.facets?.category??[]){let i=n.facets?.category.find(a=>a.value===s.value);i&&(s.count=i.count)}n.facets={...n.facets,category:o.facets.category},n.spellingCorrection?.length>0&&o.spellingCorrection?.length===0&&(n.count=0,n.results=[])}return n}updateAnswers(n){this.copilotQA=n??void 0}updateSrcheng(n){this._srcheng=n.srcheng?n.srcheng:""}updateResults(n){this._results=n.results,this._resultCount=n.count{this._skip=n.skip,this._scenarioHealth&&this.startScenario(this._scenarioHealth.pagination),this.fetch(),sa(this.createSearchArgs()),Rbe()})}updateRssUrl(){this._rssEnabled&&(this._rssUrl=this._rss(this.createSearchArgs()))}updateScopeRemoval(n){this._scopeRemoved=n.scopeRemoved||!1}updateSpellingCorrection(n){this._spellingCorrection=n.spellingCorrection||[]}updateSynonymCheckForSearchTerm(n){this._termHasSynonyms=n.termHasSynonyms||!1}createSearchArgs(n=!0){return Zi({terms:this.terms,scope:this.scope,selectedFacets:n?this._selectedFacets:this.selectedFacetsMinusCategory,expandedFacets:this._expandedFacets,skip:n&&this._skip>0?this._skip:null,top:this._top,hideCompleted:this.hideCompletedEnabled?this.hideCompleted:null,scoringProfile:this.scoringProfileEnabled?this.scoringProfile:null,dataSource:this.dataSource?this.dataSource:null,filters:this._filters,orderBy:this.hasSortableResults?this._resultsSortOptions[this._currentResultsSortOptionsIndex].orderBy:""})}setBusy(){this._busy=!0,this.notifyPropertyChanged(),this.handlePageState("VmBusy")}setReady(){this._busy=!1,this.notifyPropertyChanged(),this.handlePageState("VmReady")}readState(){let n=dr(),o=n.terms||n.search||n.term;o&&(o.trim(),o.length>100&&(o=o.slice(0,100))),this.input.value=o||"",this._scope=n.scope||null,this._selectedFacets=$ke(n),this._expandedFacets=Dke(n),this._dataSource=n.dataSource,this.hideCompletedEnabled&&n.hideCompleted&&(this._hideCompleted=!0);try{this._skip=n.skip?parseInt(n.skip):0}catch{this._skip=0}}handlePopState(){!te.search&&Ft==="Search"||(this._facetsKnown=!1,this.readState(),this.fetch())}subscribeFacetChanges(){for(let n in this._facetGroups)this._facetGroups[n].subscribe(ku,r=>this.handleFacetChange(r.type,n))}async fetchGuestSearchAnswerResult(n){if(!S.enableModernSearchAnswer||C.isAuthenticated||this.scope||!this.isFirstPage||this.hasActiveFilter)return null;try{if(!C.isAuthenticated&&this.scope===null){let o=n.terms.trim(),r=this.queryCopilotQaCache(o);if(r)return this.copilotQA=r,r;let s=await e1(N.searchAnswer.guest,n.terms,null,3*1e3),i={question:s.question??"",answer:s.answer??"",responseType:s.responseType};return this.addCopilotQaToCache(o,i),i}else return null}catch(o){if(o instanceof Qt)return null;throw o}}};k();Qe();k();k();var Y8="facet-group";function W8(e,t){return`${Y8}-body--${e}${t?"--mobile":""}`}function hv(e,t){return`${Y8}-expander--${e}${t?"--mobile":""}`}function K8(e,t){return`${Y8}-container--${e}${t?"--mobile":""}`}var i1="deep-search-container",wf="desktop-filter-button",bv="desktop-filter-button-close",_v="search-filter-sidebar",J8="search-answer",a1="search-answer-header",FC="toggle-search-answer-button",OC="search-answer-body",Z8="search-answer-rating",X8="more-content-areas-popover";function Sf(e,t,n){return e?S.enableNewSiteSearch?d`${vYe(`${e.key}${t}`,e)}`:d`
        {let r=o.target,s;if(r.value==="All")s="All";else if(e.facets.find(i=>i.name===r.value&&i.count>0))s=r.value;else{s=e.facets.find(a=>a.isSelected)?.value||"All";let i=Array.from(document.querySelectorAll('input[type="radio"]')).find(a=>a.value===s);i&&(i.checked=!0);return}Array.from(document.querySelectorAll('input[type="checkbox"]')).forEach(i=>i.checked=!1),e.selectByValue(s)}} >
        ${yYe(`${e.key}${t}`,e.facets)}
        `:d``}var eV=(e,t,n,o,r=!1)=>{let s=r?"badge-primary":"";return d``};function _Ye(e,t){let n=t.reduce((o,r)=>(r.isSelected&&(o.selection=!0),o.count+=r.count,o),{count:0,selection:!1});return eV(e,"All",aa,n.count,!n.selection)}function yYe(e,t){return Object.keys(hf).map(r=>{let s=t.find(i=>i.value.toLowerCase()===r);return r==="all"?_Ye(e,t):s?eV(e,s.value,hf[r],s.count,s.isSelected):eV(e,r,hf[r],0,!1)})}function vYe(e,t){let n=["ai","documentation","training","credential","qna","reference","show"],o=!1,r=0,s=n.map(a=>{let l=t.facets.find(c=>c.value.toLowerCase()===a);return o=o||!!l?.isSelected,r+=l?.count??0,qke(e,l?.value??a,a,!!l?.isSelected,t,l?.count===0)}),i=d`${qke(e,"all","all",!o,t,r===0)}`;return d`
        ${i}${s}
        ${xYe()}`}function qke(e,t,n,o,r,s){if(n==="ai"&&(S.enableDeepSearch===!1||!C.isAuthenticated))return d``;let i=n==="ai"?!1:s&&!o&&t!=="all",a=hf[n],l=n==="ai"&&o;return d``}function xYe(){return d`
        `}function tV(e,t=!1){return`font-size-sm padding-block-xxs display-flex align-items-center white-space-nowrap ${e?`${t?"font-weight-bold":"font-weight-semibold"} border-bottom-md border-color-primary`:"has-text-subtle font-weight-normal"}`}k();function l1(e){return!e.hasActiveFilter&&!e.hideCompleted?"":d``}function nV(e){let t=S.enableNewSiteSearch?"font-size-sm font-weight-normal":"";return e.facets?.length>0?d``:""}k();function Hke(e,t){return!t&&!e.hasChildren?null:!e.hasChildren||e.hasSelectedChild||e.group.filterActive?d`
        `:d``}k();function c1(e){return!e.hasFilterInput||!e.filterActive||e.hasVisibleChild?d``:d`

        ${fn}.

        `}function oV(){return d`

        ${i0}

        `}function u1(e){let t=document.getElementById(_v);if(t){t.classList.toggle("is-hidden");let n=t.classList.contains("is-hidden");n&&qy("search-filter-collapse");let o=document.getElementById(wf);o&&(o.classList.toggle("background-color-body-medium"),o.setAttribute("aria-expanded",`${!n}`),e===bv&&n&&o.focus())}}k();function Bke(e){return e.hideCompletedEnabled?d`

        ${Gke(e)}
        `:""}function zke(e){return e.hideCompletedEnabled?d`
      • ${Gke(e,!0)}
      • `:""}function Gke(e,t=!1){return d``}k();function UC(e,t){let n=wr({input:{id:`facet-input-filter-${e.key}${t?"-mobile":""}`,placeholder:CZ,isFullWidth:!0,type:"search",name:`facet-${e.name}`,biName:`facet-${e.name}${t?`-${t}`:""}`},getSuggestions:WTe,getTitle:o=>o.displayName||jr,itemTemplate:o=>d`
        ${o.displayName||jr}
        ${TYe(o.reputationPoints)}${VM(o.affiliations)}
        `,initialValue:e.facets.length>0?{displayName:e.facets[0].name,userId:e.facets[0].value}:null,noResultsTemplate:cee});return n.addEventListener(li,o=>{let r=o.detail.suggestion,s=new Tf("author",1,r.displayName||jr,r.userId,!0,!1,1,1,null,null,r.avatarUrl);e.setFacets([s]),e.selectByValue(r.userId)}),n.addEventListener($S,i$),n.addEventListener("keyup",o=>{o.key==="Enter"&&n.querySelector("input").value.trim()===""&&e.facets.length>0&&e.clearFacet()}),n.addEventListener("focusout",()=>{n.querySelector("input").value=e.facets?.length>0?e.facets[0].name:""}),n}function rV(){return S.enableNewSiteSearch?d`
        ${F(I2)}
        `:d`
        ${F(I2)}
        `}function TYe(e){return e>0?d`${e}`:null}var wYe={title:!0,"is-3":!0,"margin-bottom-xxs":!0},d1={title:!0,"is-5":!0,"margin-bottom-xs":!0};function SYe(e){return e.hasActiveFilter||e.hasActiveFacets?"":d`

        ${i0}

        `}function sV(e){return S.enableNewSiteSearch?pc(e).length===0?d``:d``:e.facetsEnabled?d`

        ${Ms}

        ${l1(e)} ${Bke(e)}
        ${Ft==="Search"?"":SYe(e)} ${p1(e)}
        `:""}function CYe(e){let t=Object.keys(e.facetGroups);return t=e.facetSort?t.sort(e.facetSort):t,t}function pc(e){if(Ft==="Search"){let t=e.getSelectedCategoryName().toLowerCase();if(S.enableNewSiteSearch)switch(t){case"ai":return[];case"show":return[];case"qna":return S.qnaTagsFilter?["tags","date","author"]:["date","author"];default:return["products"]}switch(t){case"show":return["category"];case"qna":return S.qnaTagsFilter?["category","tags","author","date"]:["category","author","date"];default:return["category","products"]}}return CYe(e)}function jke(e){let t=pc(e),n=t.length===1;return S.enableNewSiteSearch?d`
        ${t.length===0?d`
        ${oV()}
        `:d`${hn(t,o=>o,(o,r)=>m1(e.facetGroups[o],!0,!n,r===t.length-1))}`}
        `:d`${hn(t,o=>o,o=>m1(e.facetGroups[o],!0,!n))} `}function p1(e){let t=pc(e),n=t.length===1;return S.enableNewSiteSearch?d`
        ${t.length===0?oV():d`${hn(t,o=>o,(o,r)=>m1(e.facetGroups[o],!1,!n,r===t.length-1))}`}
        `:d`${hn(t,o=>o,o=>m1(e.facetGroups[o],!1,!n))} `}function m1(e,t,n,o=!0){if(!e||Ft!=="Search"&&e.isEmpty)return d``;let r=`ms--facet-heading-${e.key}${t?"-mobile":""}`,s=n?`is-vertically-scrollable ${S.enableNewSiteSearch?"":"has-max-height-260"}`:"",i=!t||!n;return S.enableNewSiteSearch?d`
        ${EYe(e,t,i,r,o)} ${AYe(e,t,s,i,r)}
        `:e.key==="category"?d`

        ${e.name}

        ${Sf(e,t?"mobile":"",r)}
        `:e.key==="date"?d`

        ${Yv}

        ${wC(e,t?"mobile":"",r)}
        `:e.key==="author"?d`

        ${Gp}

        ${rV()}
        ${nV(e)}
        ${UC(e,t)}
        `:d`

        ${e.name}

        ${e.facets.length>0?Qke(e,s,r):Yke(e.key)}
        `}function EYe(e,t,n,o,r=!1){let s=e.key,i=e.name;return s==="category"?d``:s==="author"?d`

        ${Gp}

        ${rV()}
        `:d`

        ${i}

        `}function AYe(e,t,n,o,r){let s=e.key,i=`display-flex flex-direction-column ${t?"":"padding-inline-xxs"} ${s==="author"?"margin-right-md":"has-overflow-hidden margin-right-md"} ${o?"":"is-hidden"}`,a=d``;return s==="date"?a=wC(e,t?"mobile":"",r):s==="author"?a=d`
        ${nV(e)}
        ${UC(e,t)}
        `:a=e.facets.length>0?Qke(e,n,r):Yke(e.key),d`
        ${a}
        `}function iV(e){if(!e.hasFilterInput&&!e.filter)return"";let t=wZ.replace("{facet}",OEe[e.key].toLowerCase()),n=tt();return d`
        e.handleFilterInput(o))} placeholder=${t} .value=${e.filter} aria-describedby=${n} />
        `}function Qke(e,t,n){let o=document.documentElement.classList.contains("layout-sidecar-left"),r=S.enableNewSiteSearch&&!S.enableSearchFilterLeftRail&&!o;return d`${iV(e)}
        ${c1(e)}
          ${g1(e.facets,e.key)}
        `}function g1(e,t,n=!1,o=!1){let r=o||!!e.find(s=>s.hasChildren);return hn(e,s=>s.value,s=>kYe(s,t,e.length,r,n))}function Yke(e){let t=S.enableNewSiteSearch?"font-size-sm":"",n;switch(e){case"products":n=XX;break;case"tags":n=eee;break;default:n=fn}return d`

        ${n}

        `}function kYe(e,t,n,o,r){let s=Hke(e,o),i=S.enableNewSiteSearch?"font-size-sm":"";return d`
      • ${s}
        ${e.hasChildren?d`
          ${g1(e.children,t,!1,o)}
        `:null}
      • `}function IYe(){return"column is-hidden-mobile is-two-fifths-tablet is-one-quarter-desktop"}function Vke(e,t,n=!1){let o=document.getElementById(W8(e,t));if(o&&(o.classList.toggle("is-hidden"),n)){let s=document.getElementById(K8(e,t));s&&s.classList.toggle("border-bottom")}let r=document.getElementById(hv(e,t));if(r){let s=r.getAttribute("aria-expanded")==="false";r.setAttribute("aria-expanded",s.toString())}}function Wke(e){return pc(e).length===0?d``:d``}k();function yv(e){return d`
        e.submit(t)} >
        ${e.input}
        `}k();function h1(e){return S.enableNewSiteSearch?pc(e).length===0?d``:d``:d``}function Kke(e){return e.mobileMenuView in e.facetGroups?e.facetGroups[e.mobileMenuView]?.name:S.enableNewSiteSearch?Ms:uF}function f1(e){return e.mobileMenuView in e.facetGroups?`ms--${e.facetGroups[e.mobileMenuView]?.key||e.mobileMenuView}-mobile`:"ms--search-filters"}var vv,aV;async function Jke(){vv||(vv=document.createElement("div")),aV||(aV=new Te(vv)),await aV.show()}function eIe(e){return S.enableNewSiteSearch?d``:d``}function Zke(e){return S.enableNewSiteSearch?d``:d`

        ${Kke(e)}

        ${PYe(e)} `}function PYe(e){return e.mobileMenuView==="top"?"":d`
        `}function LYe(e){switch(e.mobileMenuView){case"top":return RYe(e);default:return $Ye(e.facetGroups[e.mobileMenuView])}}function RYe(e){return d`
          ${zke(e)} ${MYe(e)}
        `}function MYe(e){let t=pc(e);return hn(t,n=>n,n=>{let o=e.facetGroups[n].facets.length>0||e.facetGroups?.category?.facets.find(r=>r.isSelected)?.name==="QnA"&&n==="author";if(S.enableNewSiteSearch&&n==="category")return"";if(o){let r=`ms--cat-btn-${n}`;return d`
      • `}return""})}function $Ye(e){return e.key==="author"?d`
        ${UC(e,!0)}
        `:e.key==="date"?d`
          ${wC(e,"")}
        `:d`
        ${iV(e)} ${c1(e)}
          ${e.key==="category"?Sf(e,"mobile"):g1(e.facets,e.key,!0)}
        `}function Xke(e){return S.enableNewSiteSearch?d``:d`
        `}function tIe(e){if(!e.pager||e.pager.pageCount<2||e.results.length<1||e.resultsCount===0||e.getSelectedCategoryName()==="Ai")return null;let t=Object.assign({busy:e.busy,publish:e.publish,setPage:e.pager.setPage},e.pager);return mf(t)}k();var DYe=()=>{let e=[];for(let t=0;t<30;t++)e.push(d``);return e},NYe=()=>{let e=[];for(let t=0;t<10;t++)e.push(d``);return e};function nIe(e,t){return S.enableNewSiteSearch?d`
          ${t}
        `:d`
          ${t}
        `}function b1(e,t,n,o){if(e.getSelectedCategoryName()==="Ai")return d`
        `;if((!e.results||e.results.length===0||e.resultsCount===0)&&!e.busy)return o(e);if(t==="grid"||t==="grid-large"){let r=e.busy?DYe():e.results.map((s,i)=>d`
      • ${n(s,i)}
      • `);return nIe(t,r)}else if(t==="list"){let r=e.busy?NYe():e.results.map((s,i)=>d`
      • ${n(s,i)}
      • `);return nIe(t,r)}else throw new Error("Invalid layout property specified in View Model config.")}k();function oIe(e){return!e.rssEnabled||e.results.length<1||e.resultsCount===0||e.getSelectedCategoryName()==="Ai"?"":d``}k();function uV(e){let t=e.getSelectedCategoryName().toLowerCase(),n=C.isAuthenticated,o=!C.isAuthenticated&&!e.busy&&e.resultsCount>0&&!!e.copilotQA?.answer;return S.enableModernSearchAnswer&&e.isFirstPage&&(t==="all"||t==="")&&Object.keys(e.selectedFacetsMinusCategory).length===0&&!e.scope&&e.firstFetchCompleted&&(o||n)}function dV(e,t){return d`
        ${ia(e,t)}
        `}function ia(e,t){if(t==="NotShown")return d``;let n=d``;return t==="Generating"?n=d`

        ${B0}

        `:t==="Error"?n=d`

        ${qse}

        `:t==="ShowResult"&&(e.copilotQA?.answer?n=d` ${F(qYe(e.copilotQA.answer))} ${OYe(e)} `:n=d`

        ${z0}

        `),d`
        ${FYe(e)}
        ${n}
        ${t==="Generating"?d``:d``}
        `}function FYe(e){return d`

        ${dh}

        `}function OYe(e){return d`
        ${Bu} ${F(ph)}
        `}function rIe(e,t,n,o){let r=document.getElementById(Z8);r&&(r.innerHTML=` ${mh}`);try{let s=C.isAuthenticated?C.authenticationMode:"Anonymous";XTe(e,t??"",n??"",o,s)}catch{}}function UYe(e){let t=document.getElementById(OC),n=document.getElementById(FC);t&&n&&(e.showSearchAnswer=!e.showSearchAnswer,t.hidden=!t.hidden,n.textContent=t.hidden?wF:fx)}function qYe(e){let t=document.createElement("div");t.innerHTML=e;let n=t.getElementsByTagName("a");Array.from(n).forEach((r,s)=>{r.setAttribute("data-bi-name",`search-answer-ref-${s}`)});let o=t.getElementsByTagName("pre");return Array.from(o).forEach(r=>{r.classList.add("white-space-pre-wrap")}),t.innerHTML}async function sIe(e,t){if(S.enableModernSearchAnswer===!1)return;let n=e.resetAbortController("SearchAnswer"),o=e.getSelectedCategoryName(),r=document.getElementById(J8);if(r){if(o!=="All"&&o){x(ia(e,"NotShown"),r);return}await ve,C.isAuthenticated?await HYe(e,t,n,r):await BYe(e,t,n,r)}}async function HYe(e,t,n,o){if(x(ia(e,"Generating"),o),t==="VmBusy"){e.copilotQA=void 0;return}try{if(e.resultsCount===0){e.copilotQA=void 0,x(ia(e,"ShowResult"),o);return}let r=e.queryCopilotQaCache(e.terms);if(r){let u=new Date().toISOString();e.copilotQA={answer:r.answer,question:r.question,responseType:r.responseType};let p=400+Math.random()*1e3;if(await new Promise(g=>setTimeout(g,p)),n.aborted)return;let m=new Date().toISOString();x(ia(e,"ShowResult"),o),a$(e.terms,e.copilotQA.question,e.copilotQA.answer,C.authenticationMode,u,m,e.copilotQA.responseType,!0);return}let s=e.terms.trim(),i=new Date().toISOString(),a=await e1(N.searchAnswer.user,s,n),l=new Date().toISOString(),c={answer:a?.answer??"",question:a?.question??"",responseType:a?.responseType};if(e.addCopilotQaToCache(s,c),n.aborted)return;e.copilotQA=c,x(ia(e,"ShowResult"),o),a$(e.terms,c.question,c.answer,C.authenticationMode,i,l,a.responseType,!0)}catch{x(ia(e,"Error"),o)}}async function BYe(e,t,n,o){if(t==="VmBusy"){e.copilotQA=void 0,n.aborted===!1&&x(ia(e,"NotShown"),o);return}try{if(e.resultsCount>0&&e.copilotQA?.answer&&e.copilotQA.answer.length>0){x(ia(e,"Generating"),o);let r=new Date().toISOString(),s=600+Math.random()*1e3;if(await new Promise(a=>setTimeout(a,s)),n.aborted)return;let i=new Date().toISOString();x(ia(e,"ShowResult"),o),a$(e.terms,e.copilotQA?.question||"",e.copilotQA?.answer||"","Anonymous",r,i,e.copilotQA?.responseType,!0)}else x(ia(e,"NotShown"),o)}catch{x(ia(e,"NotShown"),o)}}k();function _1(e,t="h2"){let o=(e.facetGroups?.category&&e.facetGroups.category.facets.find(s=>s.isSelected))?.value||"";if(o==="Ai")return d``;let r=e.busy?"":t1(e.resultsCount,e.terms,o,e.scope,e.scopeRemoved,e.spellingCorrection,e.isFuzzySearch,e.termHasSynonyms);if(S.enableNewSiteSearch)return e.busy?d``:e.resultsCount===0?d``:d`

        ${r}

        `;switch(t){case"h1":return d`

        ${r}

        `;default:return d`

        ${r}

        `}}function y1(e){return e.busy?"":e.scope&&!e.scopeRemoved&&e.resultsCount!==0&&e.spellingCorrection.length===0?d`

        `:e.scope&&e.scopeRemoved?d`

        ${lie.replace("{searchPhrase}",e.terms).replace("{scope}",e.scope)}

        `:e.spellingCorrection.length!==0&&e.resultsCount>0?d`

        ${aie.replace("{searchPhrase}",e.terms)}

        `:""}function iIe(e){return e.busy?"":e.hasSortableResults?d`
        ${cie}${e.resultsSortOptions[e.currentResultsSortOptionsIndex].label}
        `:""}k();function v1(e){let t=Object.keys(e.facetGroups).filter(n=>n!=="category");if(S.enableNewSiteSearch){let n=e.selectedFacetsMinusCategory;return Object.keys(n).length===0?d``:d`
        ${hn(t,o=>o,o=>pV(e.facetGroups[o]?.facets||[]))}
        `}return d`${hn(t,n=>n,n=>pV(e.facetGroups[n]?.facets||[]))}`}function pV(e){return d`${e.map(t=>!t.isSelected&&!t.hasSelectedChild?d``:t.hasSelectedChild?d`${pV(t.children)}`:zYe(t))}`}function zYe(e){return d``}function GYe(e){return e.label==="author"?d``:null}function aIe(e,t,n,o,r,s){if(e.blankSlateEnabled&&e.showBlankSlate)return e.disallowBlankSlate=!0,s(e);if(S.enableNewSiteSearch){let i="is-full is-three-fifths-desktop padding-inline-none";return d`
        ${yv(e)}
        ${Sf(e.facetGroups?.category,"-new-search")}
        ${h1(e)}
        ${_1(e,r)} ${Wke(e)}
        ${y1(e)}
        ${v1(e)} ${uV(e)?d`${dV(e,"ShowResult")}`:d``} ${b1(e,t,n,o)} ${mV(e)}
        `}return d`
        ${sV(e)}
        ${yv(e)} ${e.hasActiveFacets?d`
        ${jYe(e)}
        ${v1(e)}
        `:""}
        ${_1(e,r)} ${y1(e)} ${iIe(e)}
        ${t==="list"&&e.resultsCount!==0?d`
        `:""} ${b1(e,t,n,o)} ${mV(e)}
        `}function lIe(e){if(pc(e).length===0)return d``;let t=!w.querySelector(".layout")?.classList.contains("layout-menu-collapsed"),n=t?Op:Hp,o=t?"filter-collapse":"filter-expand",r=t?"docon-panel-left-contract":"docon-panel-left-expand";return d``}function cIe(e,t,n,o,r){return d` ${yv(e)}
        ${Sf(e.facetGroups?.category,"-new-search")}
        ${h1(e)}
        ${_1(e,r)}
        ${y1(e)}
        ${v1(e)} ${uV(e)?d`${dV(e,"ShowResult")}`:d``} ${b1(e,t,n,o)} ${mV(e)}
        `}function VYe(e){let t=e.currentTarget,n=w.querySelector(".layout"),o=n?n.classList.contains("layout-menu-collapsed"):t.getAttribute("aria-expanded")!=="true",r=o?Op:Hp,s=t.querySelector(".docon");t.setAttribute("aria-expanded",String(o)),t.setAttribute("aria-label",r),t.title=r,t.setAttribute("data-bi-name",o?"filter-collapse":"filter-expand"),n?.classList.toggle("layout-menu-collapsed",!o),s?.classList.toggle("docon-panel-left-contract",o),s?.classList.toggle("docon-panel-left-expand",!o),o||qy("search-filter-left-rail")}function mV(e){let t=e.pager&&e.pager.pageCount<2?"padding-bottom-xs":"";return d`
        ${tIe(e)}
        ${oIe(e)}
        `}function jYe(e){return d`
        ${h1(e)}
        ${l1(e)}
        `}k();function gV(e){return d`

        ${fn}

        ${gh}

        `}async function hi(e,t,n){if(!t)throw new Error("Invalid container provided to Facet Search.");let{fetch:o,autocomplete:r,layout:s,hideCompleted:i,resultTemplate:a,noResultsTemplate:l,scoringProfile:c,rss:u,headingLevel:p,queryStringTransformer:m,taxonomyFacetLookups:g,facetSort:f,scenarioHealth:_,blankTemplate:h,fetchRequiresTerms:v,syntheticFacets:y,resultSortOptions:T,pageStateHandler:I,filterLayout:E="default"}=e,q;switch(s){case"grid":q=30;break;case"grid-large":q=6;break;case"list":default:q=10}let D=new s1(o,q,{autocomplete:r,hideCompleted:i,scoringProfile:c,rss:u,queryStringTransformer:m,taxonomyFacetLookups:g,facetSort:f,scenarioHealth:_,blankSlateEnabled:!!h,fetchRequiresTerms:v,syntheticFacets:y,resultSortOptions:T,pageStateHandler:I}),le=E==="left-rail"&&!!n;function we(){if(le&&n){if(h&&D.blankSlateEnabled&&D.showBlankSlate){D.disallowBlankSlate=!0,x(d``,n),x(h(D),t);return}x(lIe(D),n),x(cIe(D,s,a,l||gV,p),t);let K=!!n.querySelector("#left-container"),Le=w.documentElement;Le.classList.toggle("layout-sidecar-left",K),Le.classList.toggle("layout-single",!K),n.closest("#layout-body-menu")?.classList.toggle("display-none",!K);return}x(aIe(D,s,a,l||gV,p,h),t)}we(),await Hr(t),D.handlePageState("VmReady"),D.subscribe(nt,async()=>{we(),await Hr(t),vv&&x(eIe(D),vv)})}k();function dIe(){return{facetSort:(e,t)=>xn(e)-xn(t),layout:"grid-large",fetch:JYe,resultTemplate:XYe}}var YYe={orderBy:"last_modified desc"},WYe=lE,KYe={"solution-idea":M7};async function JYe(e){let[t]=await Promise.all([uIe(e,!1),ve]);t.count===0&&([t]=await Promise.all([uIe(e,!0),ve]),t.count!==0&&(t.isFuzzySearch=!0));for(let n of t.results)n.url&&(n.url=rt(n.url,dt.userLocale));return t}function ZYe(e){return{branch:bt(),locale:b.data.userLocale,terms:e.terms,facet:["products","azure_categories"],$filter:jo(e.selectedFacets),$orderBy:e.terms&&e.terms.length>0?null:YYe.orderBy,$skip:e.skip?e.skip.toString():null,$top:e.top?e.top.toString():null}}function uIe(e,t){let n={...ZYe(e),fuzzySearch:t},o=`${N.browse.architecture}?${pe(n,!0)}`;return $(J(o,{method:"GET"})).then(s=>{if(s.ok)return s.json();throw{error:s.json()}})}function XYe(e){let t=tt();return d`

        ${KYe[e.content_type]||WYe}

        ${e.title}

        ${e.summary}

          ${lv(oa(e))}
        `}k();function pIe(){return{facetSort:(e,t)=>xn(e)-xn(t),layout:"grid",fetch:tWe,resultTemplate:eWe,resultSortOptions:[{label:$f,orderBy:"title"},{label:Df,orderBy:"title desc"},{label:Zf,orderBy:"last_modified desc"},{label:Xf,orderBy:"last_modified"}]}}function eWe(e){let t=(e.exams||[]).filter(l=>!!l.display_name).map((l,c)=>c===0?d` ${l.display_name}`:d`, ${l.display_name}`),n=t.length>0?d``:"",o={"applied skills":cf,examination:Gr.resource_type.examination,certification:Gr.resource_type.certification,course:Gr.resource_type.course}[e.credential_types[0]],r={"applied skills":e.title,examination:`${Wr} ${e.exam_display_name}: ${e.title}`,certification:e.title,course:e.title}[e.credential_types[0]],i=`credential-${e.uid?Wn(e.uid):tt()}-title`,a=e.credential_types[0]==="applied skills"?"/en-us/media/learn/credential/badges/applied-skill.svg?branch=main":e.icon_url;return d`

        ${o}

        ${r}
        ${n}
        `}async function tWe(e){let[t]=await Promise.all([x1(e,!1),ve]);t.count===0&&([t]=await Promise.all([x1(e,!0),ve]),t.count!==0&&(t.isFuzzySearch=!0));for(let n of t.results)n.icon_url&&(n.icon_url=rt(n.icon_url,"en-us")),n.url&&(n.url=rt(n.url,dt.userLocale));return t}function nWe(e){return{branch:bt(),locale:b.data.userLocale,terms:e.terms,facet:["roles","products","levels","subjects","credential_types"],$filter:jo(e.selectedFacets),$orderBy:e.orderBy,$skip:e.skip?e.skip.toString():null,$top:e.top?e.top.toString():null}}function x1(e,t){let n={...nWe(e),fuzzySearch:t},o=`${N.browse.credential}?${pe(n,!0)}`;return $(J(o,{method:"GET"})).then(s=>{if(s.ok)return s.json();throw{error:s.json()}})}k();function mIe(e){let t=dr(e);if(!t.osRelease&&!t.ReferenceIds)return{};let n={terms:null,products:null};return t.ReferenceIds&&(n.terms=`ref:${t.ReferenceIds.replace(/,/g," ref:")}`,t.terms&&(n.terms+=` ${t.terms}`)),t.osRelease&&(n.products=`windows-${t.osRelease.replace(/,/g,",windows-")}`),{terms:n.terms,products:n.products,osRelease:null,ReferenceIds:null}}function gIe(e){switch(e){case"Reported":return lX;case"Under Investigation":case"Investigating":return iX;case"Confirmed":return sX;case"Mitigated":return aX;case"Resolved":return cX;default:throw new Error(`Unexpected status - ${e}`)}}var oWe={orderBy:"last_updated_date desc"};function hIe(){return{facetSort:(e,t)=>xn(e)-xn(t),layout:"grid",fetch:rWe,resultTemplate:lWe,noResultsTemplate:iWe,queryStringTransformer:mIe}}async function rWe(e){let[t]=await Promise.all([fIe(e,!1),ve]);t.count===0&&([t]=await Promise.all([fIe(e,!0),ve]),t.count!==0&&(t.isFuzzySearch=!0));for(let n of t.results)n.url&&(n.url=rt(n.url,dt.userLocale));return t}function sWe(e){return{branch:bt(),locale:b.data.userLocale,terms:e.terms,facet:["products"],$filter:jo(e.selectedFacets),$orderBy:e.terms&&e.terms.length>0?null:oWe.orderBy,$skip:e.skip?e.skip.toString():null,$top:e.top?e.top.toString():null}}function fIe(e,t){let n={...sWe(e),fuzzySearch:t},o=`${N.browse.windowsSafeguards}?${pe(n,!0)}`;return $(J(o,{method:"GET"})).then(s=>{if(s.ok)return s.json();throw{error:s.json()}})}function iWe(e){return e.terms&&e.terms.includes("ref:")?aWe():d`

        ${fn}

        ${gh}

        `}function aWe(){return d`

        ${rie}

        ${oie}

        `}function lWe(e){let t=gIe(e.status),n=e.status==="Resolved"?"background-color-success color-success-invert":"background-color-tertiary color-tertiary-invert",o=e.products.map(s=>d`${s}`),r=tt();return d`

        ${oA}

        ${e.title}
        ${e.status==="Resolved"?d``:""}${t}
        `}function cWe(e){if(!e.versions)return"";let t=e.versions.length===1?d`${e.versions[0]}`:e.versions.map(n=>d`${n}`);return d`
      • ${t}
      • `}k();function _Ie(){return{facetSort:(e,t)=>xn(e)-xn(t),layout:"list",fetch:dWe,resultTemplate:mWe}}var uWe={orderBy:"start desc"};async function dWe(e){let[t]=await Promise.all([bIe(e,!1),ve]);t.count===0&&([t]=await Promise.all([bIe(e,!0),ve]),t.count!==0&&(t.isFuzzySearch=!0));for(let n of t.results)n.url&&(n.url=rt(n.url,dt.userLocale));return t}function pWe(e){return{branch:bt(),locale:b.data.userLocale,terms:e.terms,facet:["products"],$filter:jo(e.selectedFacets),$orderBy:e.terms&&e.terms.length>0?null:uWe.orderBy,$skip:e.skip?e.skip.toString():null,$top:e.top?e.top.toString():null}}function bIe(e,t){let n={...pWe(e),fuzzySearch:t},o=`${N.browse.lifecycle}?${pe(n,!0)}`;return $(J(o,{method:"GET"})).then(s=>{if(s.ok)return s.json();throw{error:s.json()}})}function mWe(e){let t=e.start,n=e.end&&e.end!=="0001-01-01T00:00:00"?e.end:"",o=tt();return d`
        ${e.title}
        `}k();function vIe(){return{facetSort:(e,t)=>xn(e)-xn(t),layout:"grid",fetch:bWe,resultTemplate:fWe}}var gWe={orderBy:"last_modified desc"};function fWe(e){let t=ns(new Date(e.last_modified),{year:"numeric",month:"2-digit",day:"2-digit"}),o=`sample-${e.uid?Wn(e.uid):tt()}-title`;return d`
        ${e.title.replace(//g,">")}

        ${e.summary}

          ${lv(hWe(e))}
        `}function hWe(e){let t=[],n=e.display_products?.[0];n&&t.push(n);let o=e.display_languages?.[0];return o&&t.push(o),t}async function bWe(e){let[t]=await Promise.all([yIe(e,!1),ve]);t.count===0&&([t]=await Promise.all([yIe(e,!0),ve]),t.count!==0&&(t.isFuzzySearch=!0));for(let n of t.results)n.url&&(n.url=rt(n.url,dt.userLocale));return t}function _We(e){return{branch:bt(),environment:null,locale:b.data.userLocale,terms:e.terms,facet:["languages","products"],$filter:jo(e.selectedFacets),$orderBy:e.terms&&e.terms.length>0?null:gWe.orderBy,$skip:e.skip?e.skip.toString():null,$top:e.top?e.top.toString():null}}function yIe(e,t){let n={..._We(e),fuzzySearch:t},o=`${N.browse.sample}?${pe(n,!0)}`;return $(J(o,{method:"GET"})).then(s=>{if(s.ok)return s.json();throw{error:s.json()}})}async function xIe(){let e=yWe();if(S.contentBrowse){await xe;let t=document.getElementById("content-browser-container");switch(e){case"sample":hi(vIe(),t);break;case"learn":av(),gC(),hi(s0e(),t);break;case"certification":hi(l0e(),t);break;case"credential":hi(pIe(),t);break;case"lifecycle":hi(_Ie(),t);break;case"architecture":hi(dIe(),t);break;case"knownIssue":hi(hIe(),t);break;case"show":{hi(d0e(),t);break}}}}function yWe(){let e=P("page_type"),t=P("page_kind");if(e==="browse"&&(t==="learn"||t==="sample"||t==="certification"||t==="credential"||t==="knownIssue"||t==="lifecycle"||t==="architecture"||t==="show"))return t;throw new Error(`The page configuration (page_kind: ${t} and page_type: ${e}) does not support browse functionality`)}k();async function TIe(){await xe;let e=document.getElementById("directory-search-form-replacement");l$(e,"directory-page-search-form","facet-search-input",mse,"directory")}function vWe(e){return 400<=e&&e<500}async function wIe(e,t=!1){let n=t?"?isAMS=true":"?isAMS=false",o=`${N.learn.episode}/${e}${n}`,s=J(o,{method:"GET"}),i=await $(s);if(he(i),i.ok)return await i.json();if(vWe(i.status))return null;throw new Error(`Unexpected response status ${i.status}`)}function Vr(e){return e?.textTracks?.length?[...e.textTracks].find(o=>o.mode==="showing")?.label||pE:pE}function SIe(e,t){let n=!1,o=e.video.volume===0||e.video.muted,r=e.video.currentTime,s=e.video.duration?r/e.video.duration:0,i,a,l,c,u,p=0,m=0,g,f=0,_,h=Vr(e.video),v=0,y=0,T=0;function I(X){Uxe({behaviorCode:X,videoData:t,videoTimeSeconds:r,eventTime:c,startTime:i,freezeTime:f,reStartTime:a,secondsDiffSpeed:p,secondsNormalSpeed:m,languageCaptions:h,secondsDiffSpeedAfterReplay:y,secondsNormalSpeedAfterReplay:v,freezeTimeAfterReplay:T})}function E(){p=qxe(u,g,p,_,c),m=v5(u,g,m,_,c),y=Hxe(u,g,y,_,c,a),v=Bxe(u,g,v,_,c,a)}function q(){let X=Date.now();c=X,i=X,r=e.video.currentTime,h=Vr(e.video),I(me.VIDEOSTART)}function D(){let X=Date.now();c=X,l=X,r=e.video.currentTime,h=Vr(e.video),E(),I(me.VIDEOPAUSE),_=X}function le(){let X=Date.now();c=X,r=e.video.currentTime,h=Vr(e.video);let U=!!l,se=l>a,fe=io(X-l);U&&(f+=fe),se&&(T+=fe),I(me.VIDEOCONTINUE)}function we(){let X=Date.now();c=X,l=X,r=e.video.currentTime,h=Vr(e.video),m=v5(u,g,m,_,c),a=X,T=0,y=0,v=0,I(me.VIDEOREPLAY)}function K(){c=Date.now(),r=e.video.currentTime,h=Vr(e.video),E(),I(me.VIDEOCOMPLETE)}function Le(){c=Date.now(),r=e.video.currentTime,h=Vr(e.video),E(),I(me.VIDEOMUTE)}function Ke(){c=Date.now(),r=e.video.currentTime,h=Vr(e.video),E(),I(me.VIDEOUNMUTE)}function Pt(){c=Date.now(),r=e.video.currentTime,h=Vr(e.video),E(),I(me.VIDEOERROR)}function nn(){c=Date.now(),r=e.video.currentTime,h=Vr(e.video),E(),I(me.VIDEOFULLSCREEN)}function Ut(){c=Date.now(),r=e.video.currentTime,h=Vr(e.video),E(),I(me.VIDEOUNFULLSCREEN)}function sn(){let X=Date.now();c=X,r=e.video.currentTime,h=Vr(e.video),u=X,g=e.video.playbackRate,E(),I(me.VIDEOPLAYERCLICK)}function uo(){let X=Date.now();c=X,r=e.video.currentTime,h=Vr(e.video),E(),I(me.VIDEOBUFFERING),_=X}function Lt(){c=Date.now(),r=e.video.currentTime,h=Vr(e.video),E(),I(me.VIDEOPLAYERLOAD)}function cn(){let X=e.video.muted||e.video.volume===0;!o&&X?Le():o&&!X&&Ke(),o=X}function Q(){let X=Date.now(),U=e.video.currentTime,se=U/e.video.duration,fe=s<.25&&se>=.25,L=s<.5&&se>=.5,M=s<.75&&se>=.75;(fe||L||M)&&(c=X,r=U,h=Vr(e.video),E(),I(me.VIDEOCHECKPOINT)),c=X,s=se}document.addEventListener("onestreamplayerstart",()=>{n?e.video.currentTime<.5?we():le():(n=!0,q())}),document.addEventListener("onestreamplayererror",Pt),e.video.addEventListener("pause",D),e.video.addEventListener("ended",K),e.video.addEventListener("waiting",uo),e.video.addEventListener("ratechange",sn),e.video.addEventListener("loadstart",Lt),e.video.addEventListener("volumechange",cn),e.video.addEventListener("timeupdate",Q),e.onFullscreenChange((X,U)=>{U?nn():Ut()})}k();var T1,CIe,xWe="4.9.4",TWe=`/static/third-party/onestream-player/shaka/${xWe}/shaka-player.ui.min.js`,fV=!1,wWe="6.2.0",SWe=`/static/third-party/onestream-player/mux-js/${wWe}/mux.min.js`,hV=!1,CWe="0.4.0",EWe=`/static/third-party/onestream-player/onestream/0.4.0/one_stream_player-v${CWe}.min.js`,bV=!1,EIe=!1,_V={id:"09ce73a6-05a5-4e4d-b3d7-bd5a8c05a524",owners:[{id:"11111111-1111-1111-1111-111111111111",email:"sample-owner@example.com",name:"Sample Owner"}],createdBy:{id:"22222222-2222-2222-2222-222222222222",email:"sample-creator@example.com",name:"Sample Creator"},updatedBy:{id:"33333333-3333-3333-3333-333333333333",email:"sample-editor@example.com",name:"Sample Editor"},publishedBy:{id:"44444444-4444-4444-4444-444444444444",email:"sample-publisher@example.com",name:"Sample Publisher"},createTime:"2021-10-07T22:49:43.6262435Z",updateTime:"2021-12-01T19:09:48.4966451Z",publishTime:"2021-12-01T19:09:55.5078044Z",title:"IoT Show - Bridge IoT, Screens and Mobile with Ombori Grid",originalFileName:"20210923-TheIoTShow-DevelopappsthatdelightscustomerswithOmboriGridPoweredbyAzureIoTEdge_Edited_V3.mp4",publicVideo:{highQualityVideoUrl:"https://videoencodingpublic-hgeaeyeba8gycee3.b01.azurefd.net/public-09ce73a6-05a5-4e4d-b3d7-bd5a8c05a524/20210923-TheIoTShow-Developappst_1920x1080_AACAudio_2502_1.mp4",mediumQualityVideoUrl:"https://videoencodingpublic-hgeaeyeba8gycee3.b01.azurefd.net/public-09ce73a6-05a5-4e4d-b3d7-bd5a8c05a524/20210923-TheIoTShow-Developappst_1280x720_AACAudio_1341_2.mp4",lowQualityVideoUrl:"https://videoencodingpublic-hgeaeyeba8gycee3.b01.azurefd.net/public-09ce73a6-05a5-4e4d-b3d7-bd5a8c05a524/20210923-TheIoTShow-Developappst_640x360_AACAudio_473_4.mp4",adaptiveVideoUrl:"",audioUrl:"https://videoencodingpublic-hgeaeyeba8gycee3.b01.azurefd.net/public-09ce73a6-05a5-4e4d-b3d7-bd5a8c05a524/20210923-TheIoTShow-Developappst_AACAudio_2Ch_192kbps.mp4",adaptiveVideoDashUrl:"https://videoencodingpublic-hgeaeyeba8gycee3.b01.azurefd.net/public-09ce73a6-05a5-4e4d-b3d7-bd5a8c05a524/20210923-TheIoTShow-Developappst.mpd",adaptiveVideoHLSUrl:"https://videoencodingpublic-hgeaeyeba8gycee3.b01.azurefd.net/public-09ce73a6-05a5-4e4d-b3d7-bd5a8c05a524/20210923-TheIoTShow-Developappst_master.m3u8",durationInMillisecond:1950763,thumbnailOtherSizes:{w800Url:`https://videoencodingpublic-hgea eyeba8gycee3.b01.azurefd.net/public-09ce73a6-05a5-4e4d-b3d7-bd5a8c05a524/maxresdefault_w800.jpg`,w1120Url:"https://videoencodingpublic-hgeaeyeba8gycee3.b01.azurefd.net/public-09ce73a6-05a5-4e4d-b3d7-bd5a8c05a524/maxresdefault_w1120.jpg"},captions:[{language:"pl-pl",url:"https://videoencodingpublic-hgeaeyeba8gycee3.b01.azurefd.net/public-b4da8140-92cf-421c-8b7b-e471d5b92418/caption-pl-pl.vtt"},{language:"cs-cz",url:"https://videoencodingpublic-hgeaeyeba8gycee3.b01.azurefd.net/public-b4da8140-92cf-421c-8b7b-e471d5b92418/caption-cs-cz.vtt"},{language:"de-de",url:"https://videoencodingpublic-hgeaeyeba8gycee3.b01.azurefd.net/public-b4da8140-92cf-421c-8b7b-e471d5b92418/caption-de-de.vtt"},{language:"en-us",url:"https://videoencodingpublic-hgeaeyeba8gycee3.b01.azurefd.net/public-b4da8140-92cf-421c-8b7b-e471d5b92418/caption-en-us.vtt"},{language:"es-es",url:"https://videoencodingpublic-hgeaeyeba8gycee3.b01.azurefd.net/public-b4da8140-92cf-421c-8b7b-e471d5b92418/caption-es-es.vtt"},{language:"fr-fr",url:"https://videoencodingpublic-hgeaeyeba8gycee3.b01.azurefd.net/public-b4da8140-92cf-421c-8b7b-e471d5b92418/caption-fr-fr.vtt"},{language:"it-it",url:"https://videoencodingpublic-hgeaeyeba8gycee3.b01.azurefd.net/public-b4da8140-92cf-421c-8b7b-e471d5b92418/caption-it-it.vtt"},{language:"ja-jp",url:"https://videoencodingpublic-hgeaeyeba8gycee3.b01.azurefd.net/public-b4da8140-92cf-421c-8b7b-e471d5b92418/caption-ja-jp.vtt"},{language:"ko-kr",url:"https://videoencodingpublic-hgeaeyeba8gycee3.b01.azurefd.net/public-b4da8140-92cf-421c-8b7b-e471d5b92418/caption-ko-kr.vtt"},{language:"pt-pt",url:"https://videoencodingpublic-hgeaeyeba8gycee3.b01.azurefd.net/public-b4da8140-92cf-421c-8b7b-e471d5b92418/caption-pt-pt.vtt"},{language:"ru-ru",url:"https://videoencodingpublic-hgeaeyeba8gycee3.b01.azurefd.net/public-b4da8140-92cf-421c-8b7b-e471d5b92418/caption-ru-ru.vtt"},{language:"tr-tr",url:"https://videoencodingpublic-hgeaeyeba8gycee3.b01.azurefd.net/public-b4da8140-92cf-421c-8b7b-e471d5b92418/caption-tr-tr.vtt"},{language:"zh-cn",url:"https://videoencodingpublic-hgeaeyeba8gycee3.b01.azurefd.net/public-b4da8140-92cf-421c-8b7b-e471d5b92418/caption-zh-cn.vtt"},{language:"zh-tw",url:"https://videoencodingpublic-hgeaeyeba8gycee3.b01.azurefd.net/public-b4da8140-92cf-421c-8b7b-e471d5b92418/caption-zh-tw.vtt"}]},description:"some description",tags:["some tag"]};async function AWe(){return fV?Promise.resolve():Xi(TWe,null).then(()=>{fV=!0})}async function kWe(){return hV?Promise.resolve():Xi(SWe,null).then(()=>{hV=!0})}async function IWe(){return bV?Promise.resolve():Xi(EWe,null,"one_stream_player").then(()=>{bV=!0})}var PWe=(e=!1)=>e?d`