@microsoft/applicationinsights-web-basic 2.7.2-nightly.2111-10 → 2.7.2-nightly.2111-15

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  /*!
2
- * Application Insights JavaScript Web SDK - Basic, 2.7.2-nightly.2111-10
2
+ * Application Insights JavaScript Web SDK - Basic, 2.7.2-nightly.2111-15
3
3
  * Copyright (c) Microsoft and contributors. All rights reserved.
4
4
  */
5
- var e=this,n=function(e){"use strict";var a="function",g="object",i="undefined",o="prototype",s="hasOwnProperty",t=Object,u=t[o],n=t.assign,r=t.create,l=t.defineProperty,c=u[s];function f(){return typeof globalThis!==i&&globalThis?globalThis:typeof self!==i&&self?self:typeof window!==i&&window?window:typeof global!==i&&global?global:null}function d(e){throw new TypeError(e)}function p(e){if(r)return r(e);if(null==e)return{};var n=typeof e;function t(){}return n!==g&&n!==a&&d("Object prototype may only be an Object:"+e),t[o]=e,new t}(f()||{}).Symbol,(f()||{}).Reflect;var h=n||function(e){for(var n,t=1,r=arguments.length;t<r;t++)for(var i in n=arguments[t])u[s].call(n,i)&&(e[i]=n[i]);return e},m=function(e,n){return(m=t.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var t in n)n[s](t)&&(e[t]=n[t])})(e,n)};function v(e,n){function t(){this.constructor=e}typeof n!==a&&null!==n&&d("Class extends value "+n+" is not a constructor or null"),m(e,n),e[o]=null===n?p(n):(t[o]=n[o],new t)}function y(e,n){for(var t=0,r=n.length,i=e.length;t<r;t++,i++)e[i]=n[t];return e}var M,I="constructor",C="prototype",S="function",x="_dynInstFuncs",T="_isDynProxy",w="_dynClass",b="_dynInstChk",N=b,_="_dfOpts",R="_unknown_",A="__proto__",L="useBaseInst",E="setInstFuncs",F=Object,k=F.getPrototypeOf,P=0;function D(e,n){return e&&F[C].hasOwnProperty.call(e,n)}function B(e){return e&&(e===F[C]||e===Array[C])}function U(e){return B(e)||e===Function[C]}function O(e){if(e){if(k)return k(e);if(e=e[A]||e[C]||(e[I]?e[I][C]:null))return e}return null}function z(e,n){var t=[],r=F.getOwnPropertyNames;if(r)t=r(e);else for(var i in e)"string"==typeof i&&D(e,i)&&t.push(i);if(t&&0<t.length)for(var o=0;o<t.length;o++)n(t[o])}function j(e,n,t){return n!==I&&typeof e[n]===S&&(t||D(e,n))}function K(e){throw new TypeError("DynamicProto: "+e)}function q(e,n){for(var t=e.length-1;0<=t;t--)if(e[t]===n)return 1}function V(e,n){return D(e,C)?e.name||n||R:((e||{})[I]||{}).name||n||R}function W(e,r,n,t){D(e,C)||K("theClass is an invalid class definition.");var i=e[C];!function(e){if(k)for(var n=[],t=O(r);t&&!U(t)&&!q(n,t);){if(t===e)return 1;n.push(t),t=O(t)}}(i)&&K("["+V(e)+"] is not in class hierarchy of ["+V(r)+"]");var o=null;D(i,w)?o=i[w]:(o="_dynCls$"+V(e,"_")+"$"+P,P++,i[w]=o);var a=W[_],s=!!a[L];s&&t&&t[L]!==undefined&&(s=!!t[L]);var u,l,c,f,d,g,e=(l={},z(u=r,function(e){!l[e]&&j(u,e,!1)&&(l[e]=u[e])}),l);n(r,function(e,n,t,o){function r(e,n,t){var r,i=n[t];return i[T]&&o&&!1!==(r=e[x]||{})[N]&&(i=(r[n[w]]||{})[t]||i),function(){return i.apply(e,arguments)}}var i={};z(t,function(e){i[e]=r(n,t,e)});for(var a=O(e),s=[];a&&!U(a)&&!q(s,a);)z(a,function(e){!i[e]&&j(a,e,!k)&&(i[e]=r(n,a,e))}),s.push(a),a=O(a);return i}(i,r,e,s)),a=!!k&&!!a[E],c=i,o=o,f=r,d=e,t=!1!==(a=a&&t?!!t[E]:a),B(c)||(a=f[x]=f[x]||{},g=a[o]=a[o]||{},!1!==a[N]&&(a[N]=!!t),z(f,function(e){var t,r,i;j(f,e,!1)&&f[e]!==d[e]&&(g[e]=f[e],delete f[e],D(c,e)&&(!c[e]||c[e][T])||(c[e]=(t=c,r=e,(i=function(){var e,n;return(function(e,n,t,r){var i=null;if(e&&D(t,w)){var o=e[x]||{};if((i=(o[t[w]]||{})[n])||K("Missing ["+n+"] "+S),!i[b]&&!1!==o[N]){for(var a=!D(e,n),s=O(e),u=[];a&&s&&!U(s)&&!q(u,s);){var l=s[n];if(l){a=l===r;break}u.push(s),s=O(s)}try{a&&(e[n]=i),i[b]=1}catch(c){o[N]=!1}}}return i}(this,r,t,i)||(typeof(n=(n=t[e=r])===i?O(t)[e]:n)!==S&&K("["+e+"] is not a "+S),n)).apply(this,arguments)})[T]=1,i)))}))}W[_]={setInstFuncs:!0,useBaseInst:!0},(Zt=M=M||{})[Zt.CRITICAL=1]="CRITICAL",Zt[Zt.WARNING=2]="WARNING";var G={BrowserDoesNotSupportLocalStorage:0,BrowserCannotReadLocalStorage:1,BrowserCannotReadSessionStorage:2,BrowserCannotWriteLocalStorage:3,BrowserCannotWriteSessionStorage:4,BrowserFailedRemovalFromLocalStorage:5,BrowserFailedRemovalFromSessionStorage:6,CannotSendEmptyTelemetry:7,ClientPerformanceMathError:8,ErrorParsingAISessionCookie:9,ErrorPVCalc:10,ExceptionWhileLoggingError:11,FailedAddingTelemetryToBuffer:12,FailedMonitorAjaxAbort:13,FailedMonitorAjaxDur:14,FailedMonitorAjaxOpen:15,FailedMonitorAjaxRSC:16,FailedMonitorAjaxSend:17,FailedMonitorAjaxGetCorrelationHeader:18,FailedToAddHandlerForOnBeforeUnload:19,FailedToSendQueuedTelemetry:20,FailedToReportDataLoss:21,FlushFailed:22,MessageLimitPerPVExceeded:23,MissingRequiredFieldSpecification:24,NavigationTimingNotSupported:25,OnError:26,SessionRenewalDateIsZero:27,SenderNotInitialized:28,StartTrackEventFailed:29,StopTrackEventFailed:30,StartTrackFailed:31,StopTrackFailed:32,TelemetrySampledAndNotSent:33,TrackEventFailed:34,TrackExceptionFailed:35,TrackMetricFailed:36,TrackPVFailed:37,TrackPVFailedCalc:38,TrackTraceFailed:39,TransmissionFailed:40,FailedToSetStorageBuffer:41,FailedToRestoreStorageBuffer:42,InvalidBackendResponse:43,FailedToFixDepricatedValues:44,InvalidDurationValue:45,TelemetryEnvelopeInvalid:46,CreateEnvelopeError:47,CannotSerializeObject:48,CannotSerializeObjectNonSerializable:49,CircularReferenceDetected:50,ClearAuthContextFailed:51,ExceptionTruncated:52,IllegalCharsInName:53,ItemNotInArray:54,MaxAjaxPerPVExceeded:55,MessageTruncated:56,NameTooLong:57,SampleRateOutOfRange:58,SetAuthContextFailed:59,SetAuthContextFailedAccountName:60,StringValueTooLong:61,StartCalledMoreThanOnce:62,StopCalledWithoutStart:63,TelemetryInitializerFailed:64,TrackArgumentsNotSpecified:65,UrlTooLong:66,SessionStorageBufferFull:67,CannotAccessCookie:68,IdTooLong:69,InvalidEvent:70,FailedMonitorAjaxSetRequestHeader:71,SendBrowserInfoOnUserInit:72,PluginException:73,NotificationException:74,SnippetScriptLoadFailure:99,InvalidInstrumentationKey:100,CannotParseAiBlobValue:101,InvalidContentBlob:102,TrackPageActionEventFailed:103,FailedAddingCustomDefinedRequestContext:104,InMemoryStorageBufferFull:105},H="attachEvent",X="addEventListener",Y=l;function J(e){return u.toString.call(e)}function Z(e){return e===undefined||typeof e===i}function Q(e){return null===e||Z(e)}function $(e){return!Q(e)}function ee(e){return typeof e===g}function ne(e){return typeof e===a}function te(e,n,t,r){void 0===r&&(r=!1);var i=!1;if(!Q(e))try{Q(e[X])?Q(e[H])||(e[H]("on"+n,t),i=!0):(e[X](n,t,r),i=!0)}catch(o){}return i}function re(e,n){if(e)for(var t in e)c.call(e,t)&&n.call(e,t,e[t])}function ie(e,n){return!(!e||!n||!~e.indexOf(n))}function oe(e){return"[object Date]"===J(e)}function ae(e){return"[object Array]"===J(e)}function se(e){return"[object Error]"===J(e)}function ue(e){return"string"==typeof e}function le(e){return"number"==typeof e}function ce(e){return"boolean"==typeof e}function fe(e){if(oe(e)){var n=function(e){return 1===(e=""+e).length?"0"+e:e};return e.getUTCFullYear()+"-"+n(1+e.getUTCMonth())+"-"+n(e.getUTCDate())+"T"+n(e.getUTCHours())+":"+n(e.getUTCMinutes())+":"+n(e.getUTCSeconds())+"."+(""+(e.getUTCMilliseconds()/1e3).toFixed(3)).slice(2,5)+"Z"}}function de(e,n,t){var r=e.length;try{for(var i=0;i<r&&!(i in e&&-1===n.call(t||e,e[i],i,e));i++);}catch(o){}}function ge(e,n,t){var r=e.length,t=t||0;try{for(var i=Math.max(0<=t?t:r-Math.abs(t),0);i<r;i++)if(i in e&&e[i]===n)return i}catch(o){}return-1}function pe(e,n,t){var r=e.length,i=t||e,o=Array(r);try{for(var a=0;a<r;a++)a in e&&(o[a]=n.call(i,e[a],e))}catch(s){}return o}function he(e){return"string"!=typeof e?e:e.replace(/^\s+|\s+$/g,"")}t.freeze,t.seal;var me=!{toString:null}.propertyIsEnumerable("toString"),ve=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"];function ye(e){var n=typeof e;n===a||n===g&&null!==e||d("objKeys called on non-object");var t,r=[];for(t in e)e&&c.call(e,t)&&r.push(t);if(me)for(var i=ve.length,o=0;o<i;o++)e&&c.call(e,ve[o])&&r.push(ve[o]);return r}function Ie(e,n,t,r){if(Y)try{var i={enumerable:!0,configurable:!0};return t&&(i.get=t),r&&(i.set=r),Y(e,n,i),!0}catch(o){}return!1}function Ce(){var e=Date;return e.now?e.now():(new e).getTime()}function Se(e){return se(e)?e.name:""}function xe(e,n,t,r,i){var o=t;return e&&((o=e[n])===t||i&&!i(o)||r&&!r(t)||(e[n]=o=t)),o}function Te(e){return!e}function we(e){return!!e}function be(e){throw Error(e)}function Ne(e){return e&&t(n?n({},e):e)}var _e="window",Re="navigator",Ae="location",Le="console",Ee="JSON",Fe="crypto",Me="msCrypto",ke="msie",Pe="trident/",De=null,Be=null,Ue=null,Oe=null;function ze(e,n){var t,r=!1;if(e){try{(r=n in e)||(t=e[o])&&(r=n in t)}catch(i){}if(!r)try{r=!Z((new e)[n])}catch(i){}}return r}function je(e){var n=f();return n&&n[e]?n[e]:e===_e&&Ke()?window:null}function Ke(){return typeof window===g&&window}function qe(){return Ke()?window:je(_e)}function Ve(){return typeof document===g&&document?document:je("document")}function We(){return!(typeof navigator!==g||!navigator)}function Ge(){return We()?navigator:je(Re)}function He(){return typeof JSON===g&&JSON||null!==je(Ee)}function Xe(){return He()?JSON||je(Ee):null}function Ye(){var e=Ge();return!e||e.userAgent===Be&&null!==De||(e=((Be=e.userAgent)||"").toLowerCase(),De=ie(e,ke)||ie(e,Pe)),De}function Je(e){var n=Object[o].toString.call(e),t="";return"[object Error]"===n?t="{ stack: '"+e.stack+"', message: '"+e.message+"', name: '"+e.name+"'":He()&&(t=Xe().stringify(e)),n+t}function Ze(){return Oe=null===Oe?We()&&!!Ge().sendBeacon:Oe}function Qe(e){var n=!1;try{var n=!!je("fetch"),t=je("Request");n&&e&&t&&(n=ze(t,"keepalive"))}catch(r){}return n}function $e(){return Ue=null===Ue&&(Ue=typeof XDomainRequest!==undefined)&&en()?Ue&&!ze(je("XMLHttpRequest"),"withCredentials"):Ue}function en(){var e=!1;try{e=!!je("XMLHttpRequest")}catch(n){}return e}function nn(e){return e?'"'+e.replace(/\"/g,"")+'"':""}function tn(e,n){var t,r=typeof console!==i?console:je(Le);r&&(t="log",ne(r[t=r[e]?e:t])&&r[t](n))}var rn=(on.dataType="MessageData",on);function on(e,n,t,r){void 0===t&&(t=!1),this.messageId=e,this.message=(t?"AI: ":"AI (Internal): ")+e,e="",He()&&(e=Xe().stringify(r)),e=(n?" message:"+nn(n):"")+(r?" props:"+nn(e):""),this.message+=e}function an(e,n){return(e||{}).logger||new sn(n)}var sn=function Pi(t){this.identifier="DiagnosticLogger",this.queue=[];var i=0,a={};W(Pi,this,function(o){function e(e,n){return Q(e=t[e])?n:e}Q(t)&&(t={}),o.consoleLoggingLevel=function(){return e("loggingLevelConsole",0)},o.telemetryLoggingLevel=function(){return e("loggingLevelTelemetry",1)},o.maxInternalMessageLimit=function(){return e("maxMessageLimit",25)},o.enableDebugExceptions=function(){return e("enableDebugExceptions",!1)},o.throwInternal=function(e,n,t,r,i){if(n=new rn(n,t,i=void 0!==i&&i,r),o.enableDebugExceptions())throw n;t=e===M.CRITICAL?"errorToConsole":"warnToConsole",Z(n.message)||(r=o.consoleLoggingLevel(),i?(i=+n.messageId,!a[i]&&e<=r&&(o[t](n.message),a[i]=!0)):e<=r&&o[t](n.message),o.logInternalMessage(e,n))},o.warnToConsole=function(e){tn("warn",e)},o.errorToConsole=function(e){tn("error",e)},o.resetInternalMessageCount=function(){i=0,a={}},o.logInternalMessage=function(e,n){var t,r;i>=o.maxInternalMessageLimit()||(t=!0,r="AITR_"+n.messageId,a[r]?t=!1:a[r]=!0,t&&(e<=o.telemetryLoggingLevel()&&(o.queue.push(n),i++),i===o.maxInternalMessageLimit()&&(n=new rn(G.MessageLimitPerPVExceeded,e="Internal events throttle limit per PageView reached for this app.",!1),o.queue.push(n),o.warnToConsole(e))))}})},un=(ln.ParentContextKey="parent",ln.ChildrenContextKey="childEvts",ln);function ln(e,i,n){var t,o=this,a=!1;o.start=Ce(),o.name=e,o.isAsync=n,o.isChildEvt=function(){return!1},ne(i)&&(a=Ie(o,"payload",function(){return!t&&ne(i)&&(t=i(),i=null),t})),o.getCtx=function(e){return e?(e===ln.ParentContextKey||e===ln.ChildrenContextKey?o:o.ctx||{})[e]:null},o.setCtx=function(e,n){e&&(e===ln.ParentContextKey?(o[e]||(o.isChildEvt=function(){return!0}),o[e]=n):e===ln.ChildrenContextKey?o[e]=n:(o.ctx=o.ctx||{})[e]=n)},o.complete=function(){var e=0,n=o.getCtx(ln.ChildrenContextKey);if(ae(n))for(var t=0;t<n.length;t++){var r=n[t];r&&(e+=r.time)}o.time=Ce()-o.start,o.exTime=o.time-e,o.complete=function(){},!a&&ne(i)&&(o.payload=i())}}var cn=function Di(n){this.ctx={},W(Di,this,function(t){t.create=function(e,n,t){return new un(e,n,t)},t.fire=function(e){e&&(e.complete(),n&&ne(n.perfEvent)&&n.perfEvent(e))},t.setCtx=function(e,n){e&&((t.ctx=t.ctx||{})[e]=n)},t.getCtx=function(e){return(t.ctx||{})[e]}})},fn="CoreUtils.doPerf";function dn(e,n,t,r,i){if(e){var o=e;if(o=ne(o.getPerfMgr)?o.getPerfMgr():o){var a,s=void 0,e=o.getCtx(fn);try{if(s=o.create(n(),r,i))return e&&s.setCtx&&(s.setCtx(un.ParentContextKey,e),e.getCtx&&e.setCtx&&((a=e.getCtx(un.ChildrenContextKey))||(a=[],e.setCtx(un.ChildrenContextKey,a)),a.push(s))),o.setCtx(fn,s),t(s)}catch(u){s&&s.setCtx&&s.setCtx("exception",u)}finally{s&&o.fire(s),o.setCtx(fn,e)}}}return t()}var gn=function(i,n){var o=this,a=null,s=ne(i.processTelemetry),u=ne(i.setNextPlugin);o._hasRun=!1,o.getPlugin=function(){return i},o.getNext=function(){return a},o.setNext=function(e){a=e},o.processTelemetry=function(t,r){r=r||n;var e=i?i.identifier:"TelemetryPluginChain";dn(r?r.core():null,function(){return e+":processTelemetry"},function(){if(i&&s){o._hasRun=!0;try{r.setNext(a),u&&i.setNextPlugin(a),a&&(a._hasRun=!1),i.processTelemetry(t,r)}catch(n){var e=a&&a._hasRun;a&&e||r.diagLog().throwInternal(M.CRITICAL,G.PluginException,"Plugin ["+i.identifier+"] failed during processTelemetry - "+Je(n)),a&&!e&&a.processTelemetry(t,r)}}else a&&(o._hasRun=!0,a.processTelemetry(t,r))},function(){return{item:t}},!t.sync)}};function pn(e,n){var t=[];if(e&&0<e.length)for(var r=null,i=0;i<e.length;i++){var o=e[i];o&&ne(o.processTelemetry)&&(o=new gn(o,n),t.push(o),r&&r.setNext(o),r=o)}return 0<t.length?t[0]:null}var hn=function Bi(e,i,t,n){var r,o,a,s,u=this,l=null;null!==n&&(e&&ne(e.getPlugin)?l=function(e,n,t){var r=[],i=!t;if(e)for(;e;){var o=e.getPlugin();!i&&o!==t||(i=!0,r.push(o)),e=e.getNext()}return i||r.push(t),pn(r,n)}(e,u,n||e.getPlugin()):n?(r=u,a=e,s=!1,(o=n)&&e&&(a=[],de(e,function(e){!s&&e!==o||(s=!0,a.push(e))})),o&&!s&&(a=a||[]).push(o),l=pn(a,r)):Z(n)&&(l=pn(e,u))),u.core=function(){return t},u.diagLog=function(){return an(t,i)},u.getCfg=function(){return i},u.getExtCfg=function(e,n){var t,r;return void 0===n&&(n={}),!i||(r=i.extensionConfig)&&e&&(t=r[e]),t||n},u.getConfig=function(e,n,t){var r;return void 0===t&&(t=!1),(e=u.getExtCfg(e,null))&&!Q(e[n])?r=e[n]:i&&!Q(i[n])&&(r=i[n]),Q(r)?t:r},u.hasNext=function(){return null!=l},u.getNext=function(){return l},u.setNext=function(e){l=e},u.processNext=function(e){var n=l;n&&(l=n.getNext(),n.processTelemetry(e,u))},u.createNew=function(e,n){return new Bi((e=void 0===e?null:e)||l,i,t,n)}},mn="extensionConfig",vn="getPlugin",yn=(In.prototype.initialize=function(e,n,t,r){this._baseTelInit(e,n,t,r)},In);function In(){var o=this,a=!1,s=null,u=null;o.core=null,o.diagLog=function(e){return o._getTelCtx(e).diagLog()},o.isInitialized=function(){return a},o.setInitialized=function(e){a=e},o.setNextPlugin=function(e){u=e},o.processNext=function(e,n){n?n.processNext(e):u&&ne(u.processTelemetry)&&u.processTelemetry(e,null)},o._getTelCtx=function(e){var n=e=void 0===e?null:e;return n||(e=s||new hn(null,{},o.core),n=u&&u[vn]?e.createNew(null,u[vn]):e.createNew(null,u)),n},o._baseTelInit=function(e,n,t,r){e&&xe(e,mn,[],null,Q),!r&&n&&(r=n.getProcessTelContext().getNext());var i=u;u&&u[vn]&&(i=u[vn]()),o.core=n,s=new hn(r,e,n,i),a=!0}}var Cn="processTelemetry",Sn="priority",xn="setNextPlugin",Tn="isInitialized";function wn(n,t){for(var e=[],r=null,i=n.getNext();i;){var o=i.getPlugin();o&&(r&&ne(r[xn])&&ne(o[Cn])&&r[xn](o),ne(o[Tn])&&o[Tn]()||e.push(o),r=o,i=i.getNext())}de(e,function(e){e.initialize(n.getCfg(),n.core(),t,n.getNext())})}function bn(e){return e.sort(function(e,n){var t=0,r=ne(n[Cn]);return ne(e[Cn])?t=r?e[Sn]-n[Sn]:1:r&&(t=-1),t})}var Nn,_n=(v(Rn,Nn=yn),Rn._staticInit=(Ie(Sr=Rn.prototype,"ChannelControls",Sr.getChannelControls),void Ie(Sr,"channelQueue",Sr.getChannelControls)),Rn);function Rn(){var u,r=Nn.call(this)||this;function l(e){e&&0<e.length&&(de(e=e.sort(function(e,n){return e.priority-n.priority}),function(e){e.priority<500&&be("Channel has invalid priority"+e.identifier)}),u.push(e))}return r.identifier="ChannelControllerPlugin",r.priority=500,W(Rn,r,function(a,s){a.setNextPlugin=function(e){},a.processTelemetry=function(n,t){u&&de(u,function(e){0<e.length&&r._getTelCtx(t).createNew(e).processNext(n)})},a.getChannelControls=function(){return u},a.initialize=function(n,t,r){var e,i,o;a.isInitialized()||(s.initialize(n,t,r),e=(n||{}).channels,i=r,u=[],e&&de(e,l),i&&(o=[],de(i,function(e){500<e.priority&&o.push(e)}),l(o)),de(u,function(e){return wn(new hn(e,n,t),r)}))}}),r}var An="toGMTString",Ln="toUTCString",En="cookie",Fn="expires",Mn="enabled",kn="isCookieUseDisabled",Pn="disableCookiesUsage",Dn="_ckMgr",Bn="",Un=null,On=null,zn=null,jn=Ve(),Kn={},qn={};function Vn(e){return!e||e.isEnabled()}function Wn(e,i){var n,t,l=(xe(t=(n=e||qn).cookieCfg=n.cookieCfg||{},"domain",n.cookieDomain,$,Q),xe(t,"path",n.cookiePath||"/",null,Q),Q(t[Mn])&&(e=void 0,Z(n[kn])||(e=!n[kn]),Z(n[Pn])||(e=!n[Pn]),t[Mn]=e),t),c=l.path||"/",f=l.domain,r=!1!==l[Mn],d={isEnabled:function(){var e=r&&Gn(i),n=qn[Dn];return e&&n&&d!==n?Vn(n):e},setEnabled:function(e){r=!1!==e},set:function(e,n,t,r,i){var o,a,s,u=!1;return Vn(d)&&(o={},-1!=(s=(a=he(n||Bn)).indexOf(";"))&&(a=he(n.substring(0,s)),o=Hn(n.substring(1+s))),xe(o,"domain",r||f,we,Z),Q(t)||(s=Ye(),!Z(o[Fn])||0<(n=Ce()+1e3*t)&&((r=new Date).setTime(n),xe(o,Fn,Xn(r,s?An:Ln)||Xn(r,s?An:Ln)||Bn,we)),s||xe(o,"max-age",Bn+t,null,Z)),(t=typeof location===g&&location?location:je(Ae))&&"https:"===t.protocol&&(xe(o,"secure",null,null,Z),(On=null===On?!(ue(t=(Ge()||{}).userAgent)&&(ie(t,"CPU iPhone OS 12")||ie(t,"iPad; CPU OS 12")||ie(t,"Macintosh; Intel Mac OS X 10_14")&&ie(t,"Version/")&&ie(t,"Safari")||ie(t,"Macintosh; Intel Mac OS X 10_14")&&function(e,n){if(e){var t=e.length;if(e===n)return 1;if(40<=t){for(var r=t-1,i=39;0<=i;i--){if(e[r]!=n[i])return;r--}return 1}}}(t,"AppleWebKit/605.1.15 (KHTML, like Gecko)")||ie(t,"Chrome/5")||ie(t,"Chrome/6")||ie(t,"UnrealEngine")&&!ie(t,"Chrome")||ie(t,"UCBrowser/12")||ie(t,"UCBrowser/11"))):On)&&xe(o,"SameSite","None",null,Z)),xe(o,"path",i||c,null,Z),(l.setCookie||Jn)(e,Yn(a,o)),u=!0),u},get:function(e){var n=Bn;return Vn(d)?(l.getCookie||function(e){var n,t=Bn;return jn&&(n=jn[En]||Bn,zn!==n&&(Kn=Hn(n),zn=n),t=he(Kn[e]||Bn)),t})(e):n},del:function(e,n){return!!Vn(d)&&d.purge(e,n)},purge:function(e,n){var t,r=!1;return Gn(i)&&((t={}).path=n||"/",t[Fn]="Thu, 01 Jan 1970 00:00:01 GMT",Ye()||(t["max-age"]="0"),(l.delCookie||Jn)(e,Yn(Bn,t)),r=!0),r}};return d[Dn]=d}function Gn(e){if(null===Un){Un=!1;try{Un=(jn||{})[En]!==undefined}catch(n){e&&e.throwInternal(M.WARNING,G.CannotAccessCookie,"Cannot access document.cookie - "+Se(n),{exception:Je(n)})}}return Un}function Hn(e){var t={};return e&&e.length&&de(he(e).split(";"),function(e){var n;(e=he(e||Bn))&&(-1==(n=e.indexOf("="))?t[e]=null:t[he(e.substring(0,n))]=he(e.substring(1+n)))}),t}function Xn(e,n){return ne(e[n])?e[n]():null}function Yn(e,n){var t=e||Bn;return re(n,function(e,n){t+="; "+e+(Q(n)?Bn:"="+n)}),t}function Jn(e,n){jn&&(jn[En]=e+"="+n)}var Zn="_notificationManager";function Qn(e,n){return new cn(n)}var $n,et=function Ui(e){this.listeners=[];var n=!!(e||{}).perfEvtsSendAll;W(Ui,this,function(i){i.addNotificationListener=function(e){i.listeners.push(e)},i.removeNotificationListener=function(e){for(var n=ge(i.listeners,e);-1<n;)i.listeners.splice(n,1),n=ge(i.listeners,e)},i.eventsSent=function(n){de(i.listeners,function(e){e&&e.eventsSent&&setTimeout(function(){return e.eventsSent(n)},0)})},i.eventsDiscarded=function(n,t){de(i.listeners,function(e){e&&e.eventsDiscarded&&setTimeout(function(){return e.eventsDiscarded(n,t)},0)})},i.eventsSendRequest=function(t,r){de(i.listeners,function(e){if(e&&e.eventsSendRequest)if(r)setTimeout(function(){return e.eventsSendRequest(t,r)},0);else try{e.eventsSendRequest(t,r)}catch(n){}})},i.perfEvent=function(t){t&&(!n&&t.isChildEvt()||de(i.listeners,function(e){if(e&&e.perfEvent)if(t.isAsync)setTimeout(function(){return e.perfEvent(t)},0);else try{e.perfEvent(t)}catch(n){}}))}})},nt=(v(tt,$n=function Oi(){var n,l,c,t,r,f=!1;W(Oi,this,function(u){u._extensions=[],l=new _n,u.logger=new sn({loggingLevelConsole:M.CRITICAL}),n=[],u.isInitialized=function(){return f},u.initialize=function(e,n,r,t){var i,o;u.isInitialized()&&be("Core should not be initialized more than once"),e&&!Q(e.instrumentationKey)||be("Please provide instrumentation key"),c=t,u[Zn]=t,u.config=e||{},u.config.enablePerfMgr&&xe(u.config,"createPerfMgr",Qn),e.extensions=Q(e.extensions)?[]:e.extensions,e?!(o=e[mn])&&Q(o)&&(o=Z(i)?{}:i,e[mn]=o):o=Z(i)?{}:i,o.NotificationManager=t,r&&(u.logger=r),(t=[]).push.apply(t,y(y([],n),e.extensions));var t=bn(t),a=[],s={};de(t,function(e){(Q(e)||Q(e.initialize))&&be("Extensions must provide callback to initialize");var n=e.priority,t=e.identifier;e&&n&&(Q(s[n])?s[n]=t:r.warnToConsole("Two extensions have same priority #"+n+" - "+s[n]+", "+t)),(!n||n<l.priority)&&a.push(e)}),t.push(l),a.push(l),t=bn(t),u._extensions=t,wn(new hn([l],e,u),t),wn(new hn(a,e,u),t),u._extensions=a,0===u.getTransmissionControls().length&&be("No channels available"),f=!0,u.releaseQueue()},u.getTransmissionControls=function(){return l.getChannelControls()},u.track=function(e){xe(e,"iKey",u.config.instrumentationKey,null,Te),xe(e,"time",fe(new Date),null,Te),xe(e,"ver","4.0",null,Q),u.isInitialized()?u.getProcessTelContext().processNext(e):n.push(e)},u.getProcessTelContext=function(){var e=u._extensions,n=e;return e&&0!==e.length||(n=[l]),new hn(n,u.config,u)},u.getNotifyMgr=function(){return c||(c=p({addNotificationListener:function(e){},removeNotificationListener:function(e){},eventsSent:function(e){},eventsDiscarded:function(e,n){},eventsSendRequest:function(e,n){}}),u[Zn]=c),c},u.getCookieMgr=function(){return r=r||Wn(u.config,u.logger)},u.setCookieMgr=function(e){r=e},u.getPerfMgr=function(){return t||u.config&&u.config.enablePerfMgr&&ne(u.config.createPerfMgr)&&(t=u.config.createPerfMgr(u,u.getNotifyMgr())),t||null},u.setPerfMgr=function(e){t=e},u.eventCnt=function(){return n.length},u.releaseQueue=function(){0<n.length&&(de(n,function(e){u.getProcessTelContext().processNext(e)}),n=[])}})}),tt);function tt(){var e=$n.call(this)||this,r=0;return W(tt,e,function(t,i){function n(e){var n=t.getNotifyMgr();n&&n.eventsDiscarded([e],2)}t.initialize=function(e,n,t,r){i.initialize(e,n,t||new sn(e),r||new et(e))},t.track=function(e){dn(t.getPerfMgr(),function(){return"AppInsightsCore:track"},function(){null===e&&(n(e),be("Invalid telemetry item")),function(){if(Q(e.name))throw n(e),Error("telemetry name required")}(),i.track(e)},function(){return{item:e}},!e.sync)},t.addNotificationListener=function(e){var n=t.getNotifyMgr();n&&n.addNotificationListener(e)},t.removeNotificationListener=function(e){var n=t.getNotifyMgr();n&&n.removeNotificationListener(e)},t.pollInternalLogs=function(n){var e=t.config.diagnosticLogInterval;return e&&0<e||(e=1e4),r&&t.stopPollingInternalLogs(),r=setInterval(function(){var e=t.logger?t.logger.queue:[];de(e,function(e){e={name:n||"InternalMessageId: "+e.messageId,iKey:t.config.instrumentationKey,time:fe(new Date),baseType:rn.dataType,baseData:{message:e.message}},t.track(e)}),e.length=0},e)},t.stopPollingInternalLogs=function(){r&&(clearInterval(r),r=0)}}),e}var rt=4294967296,it=4294967295,ot=!1,at=123456789,st=987654321;function ut(e){e<0&&(e>>>=0),at=123456789+e&it,st=987654321-e&it,ot=!0}function lt(){try{var e=2147483647&Ce();ut((Math.random()*rt^e)+e)}catch(n){}}function ct(e){return 0<e?Math.floor(ft()/it*(e+1))>>>0:0}function ft(e){var n=(n=je(Fe)||je(Me))&&n.getRandomValues?n.getRandomValues(new Uint32Array(1))[0]&it:Ye()?(ot||lt(),dt()&it):Math.floor(rt*Math.random()|0);return e||(n>>>=0),n}function dt(e){var n=((st=36969*(65535&st)+(st>>16)&it)<<16)+(65535&(at=18e3*(65535&at)+(at>>16)&it))>>>0&it|0;return e||(n>>>=0),n}var gt,pt=null,ht={_canUseCookies:undefined,isTypeof:function(e,n){return typeof e===n},isUndefined:Z,isNullOrUndefined:Q,hasOwnProperty:function(e,n){return e&&c.call(e,n)},isFunction:ne,isObject:ee,isDate:oe,isArray:ae,isError:se,isString:ue,isNumber:le,isBoolean:ce,toISOString:fe,arrForEach:de,arrIndexOf:ge,arrMap:pe,arrReduce:function(e,n,t){var r,i=e.length,o=0;if(3<=arguments.length)r=t;else{for(;o<i&&!(o in e);)o++;r=e[o++]}for(;o<i;)o in e&&(r=n(r,e[o],o,e)),o++;return r},strTrim:he,objCreate:p,objKeys:ye,objDefineAccessors:Ie,addEventHandler:function(e,n){var t=!1,r=qe();return r&&(t=te(r,e,n),t=te(r.body,e,n)||t),(r=Ve())&&te(r,e,n)||t},dateNow:Ce,isIE:Ye,disableCookies:function(){var e,n,t=e;(n=Wn[Dn]||qn[Dn])||(n=Wn[Dn]=Wn(t,void 0),qn[Dn]=n),e=n,n=ht._canUseCookies,null===pt&&(pt=[],gt=n,Ie(ht,"_canUseCookies",function(){return gt},function(n){gt=n,de(pt,function(e){e.setEnabled(n)})})),-1===ge(pt,e)&&pt.push(e),ce(n)&&e.setEnabled(n),ce(gt)&&e.setEnabled(gt),e.setEnabled(!1)},newGuid:function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(mt,function(e){var n=0|ct(15);return("x"===e?n:3&n|8).toString(16)})},perfNow:function(){var e=je("performance");return e&&e.now?e.now():Ce()},newId:function(e){void 0===e&&(e=22);for(var n=ft()>>>0,t=0,r="";r.length<e;)r+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"[0|63&n]||"",n>>>=6,5==++t&&(n=(ft()<<2&4294967295|3&n)>>>0,t=0);return r},randomValue:ct,random32:ft,mwcRandomSeed:function(e){e?ut(e):lt()},mwcRandom32:dt,generateW3CId:function(){for(var e,n=["0","1","2","3","4","5","6","7","8","9","a","b","c","d","e","f"],t="",r=0;r<4;r++)t+=n[15&(e=ft())]+n[e>>4&15]+n[e>>8&15]+n[e>>12&15]+n[e>>16&15]+n[e>>20&15]+n[e>>24&15]+n[e>>28&15];var i=n[8+(3&ft())|0];return t.substr(0,8)+t.substr(9,4)+"4"+t.substr(13,3)+i+t.substr(16,3)+t.substr(19,12)}},mt=/[xy]/g;function vt(e,n,t){var r,i,o=n.length,a=(n&&150<(n=he(n.toString())).length&&(r=n.substring(0,150),e&&e.throwInternal(M.WARNING,G.NameTooLong,"name is too long. It has been truncated to 150 characters.",{name:n},!0)),r||n);if(a.length!==o){for(var s=0,u=a;t[u]!==undefined;)s++,u=a.substring(0,147)+(i="00"+s).substr(i.length-3);a=u}return a}function yt(e,n,t){var r;return void 0===t&&(t=1024),n&&(t=t||1024,(n=he(n)).toString().length>t&&(r=n.toString().substring(0,t),e&&e.throwInternal(M.WARNING,G.StringValueTooLong,"string value is too long. It has been truncated to "+t+" characters.",{value:n},!0))),r||n}function It(e,n){return Tt(e,n,2048,G.UrlTooLong)}function Ct(e,n){var t;return n&&32768<n.length&&(t=n.substring(0,32768),e&&e.throwInternal(M.WARNING,G.MessageTruncated,"message is too long, it has been truncated to 32768 characters.",{message:n},!0)),t||n}function St(r,e){var i;return e&&(i={},re(e,function(e,n){if(ee(n)&&He())try{n=Xe().stringify(n)}catch(t){r&&r.throwInternal(M.WARNING,G.CannotSerializeObjectNonSerializable,"custom property is not valid",{exception:t},!0)}n=yt(r,n,8192),e=vt(r,e,i),i[e]=n}),e=i),e}function xt(t,e){var r;return e&&(r={},re(e,function(e,n){e=vt(t,e,r),r[e]=n}),e=r),e}function Tt(e,n,t,r){var i;return n&&(n=he(n)).length>t&&(i=n.substring(0,t),e&&e.throwInternal(M.WARNING,r,"input is too long, it has been truncated to "+t+" characters.",{data:n},!0)),i||n}function wt(e){var n=""+Math.floor((e=Math.round(e=isNaN(e)||e<0?0:e))/1e3)%60,t=""+Math.floor(e/6e4)%60,r=""+Math.floor(e/36e5)%24,i=Math.floor(e/864e5),e=1===(e=""+e%1e3).length?"00"+e:2===e.length?"0"+e:e,n=n.length<2?"0"+n:n,t=t.length<2?"0"+t:t;return(0<i?i+".":"")+(r=r.length<2?"0"+r:r)+":"+t+":"+n+"."+e}var bt,Nt="Microsoft_ApplicationInsights_BypassAjaxInstrumentation",_t="sampleRate",Rt="ProcessLegacy",At="http.method",Lt="not_specified";(Qr=bt=bt||{})[Qr.LocalStorage=0]="LocalStorage",Qr[Qr.SessionStorage=1]="SessionStorage",(jr=Ar=Ar||{})[jr.AI=0]="AI",jr[jr.AI_AND_W3C=1]="AI_AND_W3C",jr[jr.W3C=2]="W3C";var Et=undefined;function Ft(e){try{if(Q(f()))return null;var n=new Date,t=je(e===bt.LocalStorage?"localStorage":"sessionStorage");t.setItem(n.toString(),n.toString());var r=t.getItem(n.toString())!==n.toString();if(t.removeItem(n.toString()),!r)return t}catch(i){}return null}function Mt(){return kt()?Ft(bt.SessionStorage):null}function kt(){return Et=Et===undefined?!!Ft(bt.SessionStorage):Et}function Pt(e,n){var t=Mt();if(null!==t)try{return t.getItem(n)}catch(r){Et=!1,e.throwInternal(M.WARNING,G.BrowserCannotReadSessionStorage,"Browser failed read of session storage. "+Se(r),{exception:Je(r)})}return null}function Dt(e,n,t){var r=Mt();if(null!==r)try{return r.setItem(n,t),1}catch(i){Et=!1,e.throwInternal(M.WARNING,G.BrowserCannotWriteSessionStorage,"Browser failed write to session storage. "+Se(i),{exception:Je(i)})}}var Bt=Ve()||{},Ut=0,Ot=[null,null,null,null,null],zt=["https://dc.services.visualstudio.com/v2/track","https://breeze.aimon.applicationinsights.io/v2/track","https://dc-int.services.visualstudio.com/v2/track"];function jt(e){return~zt.indexOf(e.toLowerCase())}var Kt,qt=(v(Vt,Kt=function(){}),Vt);function Vt(){return Kt.call(this)||this}var Wt,Gt=(v(Ht,Wt=function(){this.ver=1,this.sampleRate=100,this.tags={}}),Ht);function Ht(e,n,t){var r=Wt.call(this)||this;return r.name=yt(e,t)||Lt,r.data=n,r.time=fe(new Date),r.aiDataContract={time:1,iKey:1,name:1,sampleRate:function(){return 100===r.sampleRate?4:1},tags:1,data:1},r}var Xt,Yt=(v(Jt,Xt=$r=function(){this.ver=2,this.properties={},this.measurements={}}),Jt.envelopeType="Microsoft.ApplicationInsights.{0}.Event",Jt.dataType="EventData",Jt);function Jt(e,n,t,r){var i=Xt.call(this)||this;return i.aiDataContract={ver:1,name:1,properties:0,measurements:0},i.name=yt(e,n)||Lt,i.properties=St(e,t),i.measurements=xt(e,r),i}var Zt=function(){},l=function(){this.hasFullStack=!0,this.parsedStack=[]},Qt="error",$t="stack",er="stackDetails",nr="errorSrc",tr="message",rr="description";function ir(e,n){var t=e;return t&&!ue(t)&&(JSON&&JSON.stringify?(t=JSON.stringify(e),!n||t&&"{}"!==t||(t=ne(e.toString)?e.toString():""+e)):t=e+" - (Missing JSON.stringify)"),t||""}function or(e,n){var t=e;return e&&((t=t&&!ue(t)&&(e[tr]||e[rr])||t)&&!ue(t)&&(t=ir(t,!0)),e.filename&&(t=t+" @"+(e.filename||"")+":"+(e.lineno||"?")+":"+(e.colno||"?"))),(n&&"String"!==n&&"Object"!==n&&"Error"!==n&&!~(t||"").indexOf(n)?n+": "+t:t)||""}function ar(e){return e&&e.src&&ue(e.src)&&e.obj&&ae(e.obj)}function sr(e){var n=e||"",e=(n=ue(n)?n:ue(n[$t])?n[$t]:""+n).split("\n");return{src:n,obj:e}}function ur(e){var n,t=null;if(e)try{e[$t]?t=sr(e[$t]):e[Qt]&&e[Qt][$t]?t=sr(e[Qt][$t]):e.exception&&e.exception[$t]?t=sr(e.exception[$t]):ar(e)?t=e:ar(e[er])?t=e[er]:window.opera&&e[tr]?t=function(e){for(var n=[],t=e.split("\n"),r=0;r<t.length;r++){var i=t[r];t[r+1]&&(i+="@"+t[r+1],r++),n.push(i)}return{src:e,obj:n}}(e.message):ue(e)?t=sr(e):(n=e[tr]||e[rr]||"",ue(e[nr])&&(n&&(n+="\n"),n+=" from "+e[nr]),n&&(t=sr(n)))}catch(r){t=sr(r)}return t||{src:"",obj:null}}function lr(e){var n="";if(e&&!(n=e.typeName||e.name||""))try{var t=/function (.{1,200})\(/.exec(e.constructor.toString()),n=t&&1<t.length?t[1]:""}catch(r){}return n}function cr(e){if(e)try{if(!ue(e)){var n=lr(e),t=ir(e,!1);return t&&"{}"!==t||(e[Qt]&&(n=lr(e=e[Qt])),t=ir(e,!0)),t.indexOf(n)&&"String"!==n?n+":"+t:t}}catch(r){}return""+(e||"")}var fr,dr=(v(gr,fr=function(){this.ver=2,this.exceptions=[],this.properties={},this.measurements={}}),gr.CreateAutoException=function(e,n,t,r,i,o,a,s){var u=lr(i||o||e);return{message:or(e,u),url:n,lineNumber:t,columnNumber:r,error:cr(i||o||e),evt:cr(o||e),typeName:u,stackDetails:ur(a||i||o),errorSrc:s}},gr.CreateFromInterface=function(n,e,t,r){var i=e.exceptions&&pe(e.exceptions,function(e){return hr.CreateFromInterface(n,e)});return new gr(n,h(h({},e),{exceptions:i}),t,r)},gr.prototype.toInterface=function(){var e=this.exceptions,n=this.properties,t=this.measurements,r=this.severityLevel;this.ver;var i=this.problemGroup,o=this.id,a=this.isManual;return{ver:"4.0",exceptions:e instanceof Array&&pe(e,function(e){return e.toInterface()})||undefined,severityLevel:r,properties:n,measurements:t,problemGroup:i,id:o,isManual:a}},gr.CreateSimpleException=function(e,n,t,r,i,o){return{exceptions:[{hasFullStack:!0,message:e,stack:i,typeName:n}]}},gr.envelopeType="Microsoft.ApplicationInsights.{0}.Exception",gr.dataType="ExceptionData",gr.formatError=cr,gr);function gr(e,n,t,r,i,o){var a=fr.call(this)||this;return a.aiDataContract={ver:1,exceptions:1,severityLevel:0,properties:0,measurements:0},function(e){try{if(ee(e))return"ver"in e&&"exceptions"in e&&"properties"in e}catch(n){}}(n)?(a.exceptions=n.exceptions,a.properties=n.properties,a.measurements=n.measurements,n.severityLevel&&(a.severityLevel=n.severityLevel),n.id&&(a.id=n.id),n.problemGroup&&(a.problemGroup=n.problemGroup),a.ver=2,Q(n.isManual)||(a.isManual=n.isManual)):(a.exceptions=[new hr(e,n,t=t||{})],a.properties=St(e,t),a.measurements=xt(e,r),i&&(a.severityLevel=i),o&&(a.id=o)),a}var pr,hr=(v(mr,pr=l),mr.prototype.toInterface=function(){var e=this.parsedStack instanceof Array&&pe(this.parsedStack,function(e){return e.toInterface()});return{id:this.id,outerId:this.outerId,typeName:this.typeName,message:this.message,hasFullStack:this.hasFullStack,stack:this[$t],parsedStack:e||undefined}},mr.CreateFromInterface=function(e,n){var t=n.parsedStack instanceof Array&&pe(n.parsedStack,function(e){return yr.CreateFromInterface(e)})||n.parsedStack;return new mr(e,h(h({},n),{parsedStack:t}))},mr);function mr(e,n,t){var r,l,i,o,a=pr.call(this)||this;return a.aiDataContract={id:0,outerId:0,typeName:1,message:1,hasFullStack:0,stack:0,parsedStack:2},function(e){try{if(ee(e))return"hasFullStack"in e&&"typeName"in e}catch(n){}}(n)?(a.typeName=n.typeName,a.message=n.message,a[$t]=n[$t],a.parsedStack=n.parsedStack,a.hasFullStack=n.hasFullStack):(l=(r=n)&&r.evt,se(r)||(r=r[Qt]||l||r),a.typeName=yt(e,lr(r))||Lt,a.message=Ct(e,or(n||r,a.typeName))||Lt,l=n[er]||ur(n),a.parsedStack=function(e){if((e=l.obj)&&0<e.length){var n=[],t=0,r=0;if(de(e,function(e){e=e.toString(),yr.regex.test(e)&&(e=new yr(e,t++),r+=e.sizeInBytes,n.push(e))}),32768<r)for(var i=0,o=n.length-1,a=0,s=i,u=o;i<o;){if(32768<(a+=n[i].sizeInBytes+n[o].sizeInBytes)){n.splice(s,u-s+1);break}s=i,u=o,i++,o--}}return n}(),a[$t]=(r=e,o="",(e=l)&&(e.obj?de(e.obj,function(e){o+=e+"\n"}):o=e.src||""),!(l=o)||32768<(e=""+l).length&&(i=e.substring(0,32768),r&&r.throwInternal(M.WARNING,G.ExceptionTruncated,"exception is too long, it has been truncated to 32768 characters.",{exception:l},!0)),i||l),a.hasFullStack=ae(a.parsedStack)&&0<a.parsedStack.length,t&&(t.typeName=t.typeName||a.typeName)),a}var vr,yr=(v(Ir,vr=Zt),Ir.CreateFromInterface=function(e){return new Ir(e,null)},Ir.prototype.toInterface=function(){return{level:this.level,method:this.method,assembly:this.assembly,fileName:this.fileName,line:this.line}},Ir.regex=/^([\s]+at)?[\s]{0,50}([^\@\()]+?)[\s]{0,50}(\@|\()([^\(\n]+):([0-9]+):([0-9]+)(\)?)$/,Ir.baseSize=58,Ir);function Ir(e,n){var t,r=vr.call(this)||this;return r.sizeInBytes=0,r.aiDataContract={level:1,method:1,assembly:0,fileName:0,line:0},"string"==typeof e?(t=e,r.level=n,r.method="<no_method>",r.assembly=he(t),r.fileName="",r.line=0,(t=t.match(Ir.regex))&&5<=t.length&&(r.method=he(t[2])||r.method,r.fileName=he(t[4]),r.line=parseInt(t[5])||0)):(r.level=e.level,r.method=e.method,r.assembly=e.assembly,r.fileName=e.fileName,r.line=e.line,r.sizeInBytes=0),r.sizeInBytes+=r.method.length,r.sizeInBytes+=r.fileName.length,r.sizeInBytes+=r.assembly.length,r.sizeInBytes+=Ir.baseSize,r.sizeInBytes+=r.level.toString().length,r.sizeInBytes+=r.line.toString().length,r}var Cr,Sr=function(){this.ver=2,this.metrics=[],this.properties={},this.measurements={}};(Qr=Cr={})[Qr.Measurement=0]="Measurement",Qr[Qr.Aggregation=1]="Aggregation";var xr,Tr=(v(wr,xr=function(){this.kind=Cr.Measurement}),wr);function wr(){var e=null!==xr&&xr.apply(this,arguments)||this;return e.aiDataContract={name:1,kind:0,value:1,count:0,min:0,max:0,stdDev:0},e}var br,Nr=(v(_r,br=Sr),_r.envelopeType="Microsoft.ApplicationInsights.{0}.Metric",_r.dataType="MetricData",_r);function _r(e,n,t,r,i,o,a,s,u){var l=br.call(this)||this;l.aiDataContract={ver:1,metrics:1,properties:0};var c=new Tr;return c.count=0<r?r:undefined,c.max=isNaN(o)||null===o?undefined:o,c.min=isNaN(i)||null===i?undefined:i,c.name=yt(e,n)||Lt,c.value=t,c.stdDev=isNaN(a)||null===a?undefined:a,l.metrics=[c],l.properties=St(e,s),l.measurements=xt(e,u),l}var Rr,Ar=(v(Lr,Rr=$r),Lr);function Lr(){var e=Rr.call(this)||this;return e.ver=2,e.properties={},e.measurements={},e}var Er,Fr=(v(Mr,Er=Ar),Mr.envelopeType="Microsoft.ApplicationInsights.{0}.Pageview",Mr.dataType="PageviewData",Mr);function Mr(e,n,t,r,i,o,a){var s=Er.call(this)||this;return s.aiDataContract={ver:1,name:0,url:0,duration:0,properties:0,measurements:0,id:0},s.id=a&&Tt(e,a,128,G.IdTooLong).toString(),s.url=It(e,t),s.name=yt(e,n)||Lt,isNaN(r)||(s.duration=wt(r)),s.properties=St(e,i),s.measurements=xt(e,o),s}var kr,Pr=(v(Dr,kr=function(){this.ver=2,this.success=!0,this.properties={},this.measurements={}}),Dr.envelopeType="Microsoft.ApplicationInsights.{0}.RemoteDependency",Dr.dataType="RemoteDependencyData",Dr);function Dr(e,n,t,r,i,o,a,s,u,l,c,f){void 0===u&&(u="Ajax");var d=kr.call(this)||this;d.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},d.id=n,d.duration=wt(i),d.success=o,d.resultCode=a+"",d.type=yt(e,u);var g,p,h,m,v,y,I,C,S,x,a=(g=e,n=s,a=o=i=r,o=(u=t)&&0<u.length?(p=u,x=(S=Ot)[C=Ut],Bt.createElement?S[C]||(x=S[C]=Bt.createElement("a")):x={host:(y=!0,I=null,!(v=h=p)||null!=(v=v.match(/(\w*):\/\/(.[^/:]+)(\:[\d]+)?/i))&&2<v.length&&ue(v[2])&&0<v[2].length&&(I=v[2]||"",y&&2<v.length&&(y=(v[1]||"").toLowerCase(),v=v[3]||"",I+=v="http"==y&&":80"===v||"https"==y&&":443"===v?"":v)),(h=I||"")&&null!=(m=h.match(/(www[0-9]?\.)?(.[^/:]+)(\:[\d]+)?/i))&&3<m.length&&ue(m[2])&&0<m[2].length?m[2]+(m[3]||""):h)},x.href=p,++C>=S.length&&(C=0),Ut=C,x=(s=x).host,o||(null!=s.pathname?("/"!=((t=0===s.pathname.length?"/":s.pathname)[0]||"")&&(t="/"+t),a=s.pathname,yt(g,n?n+" "+t:t)):yt(g,u))):x=i,{target:x,name:o,data:a});return d.data=It(e,r)||a.data,d.target=yt(e,a.target),l&&(d.target="".concat(d.target," | ").concat(l)),d.name=yt(e,a.name),d.properties=St(e,c),d.measurements=xt(e,f),d}var Br,Ur=(v(Or,Br=function(){this.ver=2,this.properties={},this.measurements={}}),Or.envelopeType="Microsoft.ApplicationInsights.{0}.Message",Or.dataType="MessageData",Or);function Or(e,n,t,r,i){var o=Br.call(this)||this;return o.aiDataContract={ver:1,message:1,severityLevel:0,properties:0},o.message=Ct(e,n=n||Lt),o.properties=St(e,r),o.measurements=xt(e,i),t&&(o.severityLevel=t),o}var zr,jr=(v(Kr,zr=Ar),Kr);function Kr(){var e=zr.call(this)||this;return e.ver=2,e.properties={},e.measurements={},e}var qr,Vr=(v(Wr,qr=jr),Wr.envelopeType="Microsoft.ApplicationInsights.{0}.PageviewPerformance",Wr.dataType="PageviewPerformanceData",Wr);function Wr(e,n,t,r,i,o,a){var s=qr.call(this)||this;return s.aiDataContract={ver:1,name:0,url:0,duration:0,perfTotal:0,networkConnect:0,sentRequest:0,receivedResponse:0,domProcessing:0,properties:0,measurements:0},s.url=It(e,t),s.name=yt(e,n)||Lt,s.properties=St(e,i),s.measurements=xt(e,o),a&&(s.domProcessing=a.domProcessing,s.duration=a.duration,s.networkConnect=a.networkConnect,s.perfTotal=a.perfTotal,s.receivedResponse=a.receivedResponse,s.sentRequest=a.sentRequest),s}var Gr,Hr=(v(Xr,Gr=qt),Xr);function Xr(e,n){var t=Gr.call(this)||this;return t.aiDataContract={baseType:1,baseData:1},t.baseType=e,t.baseData=n,t}function Yr(e){var n="ai."+e+".";return function(e){return n+e}}e.SeverityLevel=void 0,(l=e.SeverityLevel||(e.SeverityLevel={}))[l.Verbose=0]="Verbose",l[l.Information=1]="Information",l[l.Warning=2]="Warning",l[l.Error=3]="Error",l[l.Critical=4]="Critical";var Jr,Zr,Zt=Yr("application"),Qr=Yr("device"),Sr=Yr("location"),$r=Yr("operation"),Ar=Yr("session"),jr=Yr("user"),qt=Yr("cloud"),l=Yr("internal"),ei=(Zr={applicationVersion:Zt("ver"),applicationBuild:Zt("build"),applicationTypeId:Zt("typeId"),applicationId:Zt("applicationId"),applicationLayer:Zt("layer"),deviceId:Qr("id"),deviceIp:Qr("ip"),deviceLanguage:Qr("language"),deviceLocale:Qr("locale"),deviceModel:Qr("model"),deviceFriendlyName:Qr("friendlyName"),deviceNetwork:Qr("network"),deviceNetworkName:Qr("networkName"),deviceOEMName:Qr("oemName"),deviceOS:Qr("os"),deviceOSVersion:Qr("osVersion"),deviceRoleInstance:Qr("roleInstance"),deviceRoleName:Qr("roleName"),deviceScreenResolution:Qr("screenResolution"),deviceType:Qr("type"),deviceMachineName:Qr("machineName"),deviceVMName:Qr("vmName"),deviceBrowser:Qr("browser"),deviceBrowserVersion:Qr("browserVersion"),locationIp:Sr("ip"),locationCountry:Sr("country"),locationProvince:Sr("province"),locationCity:Sr("city"),operationId:$r("id"),operationName:$r("name"),operationParentId:$r("parentId"),operationRootId:$r("rootId"),operationSyntheticSource:$r("syntheticSource"),operationCorrelationVector:$r("correlationVector"),sessionId:Ar("id"),sessionIsFirst:Ar("isFirst"),sessionIsNew:Ar("isNew"),userAccountAcquisitionDate:jr("accountAcquisitionDate"),userAccountId:jr("accountId"),userAgent:jr("userAgent"),userId:jr("id"),userStoreRegion:jr("storeRegion"),userAuthUserId:jr("authUserId"),userAnonymousUserAcquisitionDate:jr("anonUserAcquisitionDate"),userAuthenticatedUserAcquisitionDate:jr("authUserAcquisitionDate"),cloudName:qt("name"),cloudRole:qt("role"),cloudRoleVer:qt("roleVer"),cloudRoleInstance:qt("roleInstance"),cloudEnvironment:qt("environment"),cloudLocation:qt("location"),cloudDeploymentUnit:qt("deploymentUnit"),internalNodeName:l("nodeName"),internalSdkVersion:l("sdkVersion"),internalAgentVersion:l("agentVersion"),internalSnippet:l("snippet"),internalSdkSrc:l("sdkSrc")},v(ni,Jr=function(){var t=this;re(Zr,function(e,n){t[e]=n})}),ni);function ni(){return Jr.call(this)||this}var ti,ri=new ei,ii=(v(oi,ti=l=function zi(t,r){var i=[],o=!1;this._get=function(){return i},this._set=function(e){return i=e},W(zi,this,function(n){n.enqueue=function(e){n.count()>=r.eventsLimitInMem()?o||(t.throwInternal(M.WARNING,G.InMemoryStorageBufferFull,"Maximum in-memory buffer size reached: "+n.count(),!0),o=!0):i.push(e)},n.count=function(){return i.length},n.size=function(){for(var e=i.length,n=0;n<i.length;n++)e+=i[n].length;return r.emitLineDelimitedJson()||(e+=2),e},n.clear=function(){o=!(i=[])},n.getItems=function(){return i.slice(0)},n.batchPayloads=function(e){return e&&0<e.length?r.emitLineDelimitedJson()?e.join("\n"):"["+e.join(",")+"]":null}})}),oi);function oi(e,n){return W(oi,n=ti.call(this,e,n)||this,function(e,n){e.markAsSent=function(e){n.clear()},e.clearSent=function(e){}}),n}var ai,si=(v(ui,ai=l),ui.BUFFER_KEY="AI_buffer",ui.SENT_BUFFER_KEY="AI_sentBuffer",ui.MAX_BUFFER_SIZE=2e3,ui);function ui(s,u){var e=ai.call(this,s,u)||this,l=!1;return W(ui,e,function(t,n){var e=o(ui.BUFFER_KEY),r=o(ui.SENT_BUFFER_KEY);function i(n,e){var t=[];return de(e,function(e){ne(e)||-1!==ge(n,e)||t.push(e)}),t}function o(e){try{var e=u.namePrefix&&u.namePrefix()?u.namePrefix()+"_"+e:e,n=Pt(s,e);if(n){var t=Xe().parse(n);if((t=ue(t)?Xe().parse(t):t)&&ae(t))return t}}catch(r){s.throwInternal(M.CRITICAL,G.FailedToRestoreStorageBuffer," storage key: "+e+", "+Se(r),{exception:Je(r)})}return[]}function a(e,n){try{var e=u.namePrefix&&u.namePrefix()?u.namePrefix()+"_"+e:e,t=JSON.stringify(n);Dt(s,e,t)}catch(r){Dt(s,e,JSON.stringify([])),s.throwInternal(M.WARNING,G.FailedToSetStorageBuffer," storage key: "+e+", "+Se(r)+". Buffer cleared",{exception:Je(r)})}}(e=t._set(e.concat(r))).length>ui.MAX_BUFFER_SIZE&&(e.length=ui.MAX_BUFFER_SIZE),a(ui.SENT_BUFFER_KEY,[]),a(ui.BUFFER_KEY,e),t.enqueue=function(e){t.count()>=ui.MAX_BUFFER_SIZE?l||(s.throwInternal(M.WARNING,G.SessionStorageBufferFull,"Maximum buffer size reached: "+t.count(),!0),l=!0):(n.enqueue(e),a(ui.BUFFER_KEY,t._get()))},t.clear=function(){n.clear(),a(ui.BUFFER_KEY,t._get()),a(ui.SENT_BUFFER_KEY,[]),l=!1},t.markAsSent=function(e){a(ui.BUFFER_KEY,t._set(i(e,t._get())));var n=o(ui.SENT_BUFFER_KEY);n instanceof Array&&e instanceof Array&&((n=n.concat(e)).length>ui.MAX_BUFFER_SIZE&&(s.throwInternal(M.CRITICAL,G.SessionStorageBufferFull,"Sent buffer reached its maximum size: "+n.length,!0),n.length=ui.MAX_BUFFER_SIZE),a(ui.SENT_BUFFER_KEY,n))},t.clearSent=function(e){e=i(e,e=o(ui.SENT_BUFFER_KEY)),a(ui.SENT_BUFFER_KEY,e)}}),e}var li="baseType",ci="baseData",fi="properties",di="true";function gi(e,n,t){return xe(e,n,t,we)}function pi(e,t,r){Q(e)||re(e,function(e,n){le(n)?r[e]=n:ue(n)?t[e]=n:He()&&(t[e]=Xe().stringify(n))})}function hi(t,r){Q(t)||re(t,function(e,n){t[e]=n||r})}function mi(e,n,t,r){return gi(r=new Gt(e,r,n),"sampleRate",t[_t]),(t[ci]||{}).startTime&&(r.time=fe(t[ci].startTime)),r.iKey=t.iKey,n=t.iKey.replace(/-/g,""),r.name=r.name.replace("{0}",n),function(e,n,t){var r=t.tags=t.tags||{},i=n.ext=n.ext||{},o=n.tags=n.tags||[],a=i.user;a&&(gi(r,ri.userAuthUserId,a.authId),gi(r,ri.userId,a.id||a.localId)),(a=i.app)&&gi(r,ri.sessionId,a.sesId),(a=i.device)&&(gi(r,ri.deviceId,a.id||a.localId),gi(r,ri.deviceType,a.deviceClass),gi(r,ri.deviceIp,a.ip),gi(r,ri.deviceModel,a.model),gi(r,ri.deviceType,a.deviceType)),(a=n.ext.web)&&(gi(r,ri.deviceLanguage,a.browserLang),gi(r,ri.deviceBrowserVersion,a.browserVer),gi(r,ri.deviceBrowser,a.browser),gi(n=(n=(n=t.data=t.data||{})[ci]=n[ci]||{})[fi]=n[fi]||{},"domain",a.domain),gi(n,"isManual",a.isManual?di:null),gi(n,"screenRes",a.screenRes),gi(n,"userConsent",a.userConsent?di:null)),(a=i.os)&&gi(r,ri.deviceOS,a.name),(i=i.trace)&&(gi(r,ri.operationParentId,i.parentID),gi(r,ri.operationName,yt(e,i.name)),gi(r,ri.operationId,i.traceID));for(var s={},u=o.length-1;0<=u;u--)re(o[u],function(e,n){s[e]=n}),o.splice(u,1);re(o,function(e,n){s[e]=n}),(r=h(h({},r),s))[ri.internalSdkVersion]||(r[ri.internalSdkVersion]="javascript:".concat(yi.Version)),t.tags=Ne(r)}(e,t,r),t.tags=t.tags||[],Ne(r)}function vi(e,n){Q(n[ci])&&e.throwInternal(M.CRITICAL,G.TelemetryEnvelopeInvalid,"telemetryItem.baseData cannot be null.")}var yi={Version:"2.7.2-nightly.2111-10"};function Ii(e,n,t){vi(e,n);var r={},i={};return n[li]!==Yt.dataType&&(r.baseTypeSource=n[li]),n[li]===Yt.dataType?(r=n[ci][fi]||{},i=n[ci].measurements||{}):n[ci]&&pi(n[ci],r,i),pi(n.data,r,i),Q(t)||hi(r,t),t=n[ci].name,i=new Yt(e,t,r,i),i=new Hr(Yt.dataType,i),mi(e,Yt.envelopeType,n,i)}var Ci=function ji(f){W(ji,this,function(e){function l(a,s){var e="__aiCircularRefCheck",u={};if(!a)return f.throwInternal(M.CRITICAL,G.CannotSerializeObject,"cannot serialize object because it is null or undefined",{name:s},!0),u;if(a[e])return f.throwInternal(M.WARNING,G.CircularReferenceDetected,"Circular reference detected while serializing object",{name:s},!0),u;if(a.aiDataContract)return a[e]=!0,re(a.aiDataContract,function(e,n){var t=ne(n)?1&n():1&n,r=ne(n)?4&n():4&n,i=2&n,o=a[e]!==undefined,n=ee(a[e])&&null!==a[e];!t||o||i?r||(r=void 0,(r=n?(i?c:l)(a[e],e):a[e])!==undefined&&(u[e]=r)):f.throwInternal(M.CRITICAL,G.MissingRequiredFieldSpecification,"Missing required field specification. The field is required but not present on source",{field:e,name:s})}),delete a[e],u;if("measurements"===s)u=t(a,"number",s);else if("properties"===s)u=t(a,"string",s);else if("tags"===s)u=t(a,"string",s);else if(ae(a))u=c(a,s);else{f.throwInternal(M.WARNING,G.CannotSerializeObjectNonSerializable,"Attempting to serialize an object which does not implement ISerializable",{name:s},!0);try{Xe().stringify(a),u=a}catch(n){f.throwInternal(M.CRITICAL,G.CannotSerializeObject,n&&ne(n.toString)?n.toString():"Error serializing object",null,!0)}}return u}function c(e,n){if(e)if(ae(e))for(var t=[],r=0;r<e.length;r++){var i=l(e[r],n+"["+r+"]");t.push(i)}else f.throwInternal(M.CRITICAL,G.ItemNotInArray,"This field was specified as an array in the contract but the item is not an array.\r\n",{name:n},!0);return t}function t(e,t,r){var i;return e&&(i={},re(e,function(e,n){"string"===t?n===undefined?i[e]="undefined":null===n?i[e]="null":n.toString?i[e]=n.toString():i[e]="invalid field: toString() is not defined.":"number"===t?n===undefined?i[e]="undefined":i[e]=null===n?"null":isNaN(n=parseFloat(n))?"NaN":n:(i[e]="invalid field: "+r+" is of unknown type.",f.throwInternal(M.CRITICAL,i[e],null,!0))})),i}e.serialize=function(e){e=l(e,"root");try{return Xe().stringify(e)}catch(n){f.throwInternal(M.CRITICAL,G.CannotSerializeObject,n&&ne(n.toString)?n.toString():"Error serializing object",null,!0)}}})};function Si(){var a=qe(),s=Ve(),u=!1,l=!0;W(Si,this,function(e){try{var n,t;a&&te(a,"online",r)&&(te(a,"offline",i),u=!0),s&&(Z((n=s.body||s).ononline)||(n.ononline=r,n.onoffline=i,u=!0)),!u||(t=Ge())&&!Q(t.onLine)&&(l=t.onLine)}catch(o){u=!1}function r(){l=!0}function i(){l=!1}e.isListening=u,e.isOnline=function(){var e=!0,n=Ge();return u?e=l:n&&!Q(n.onLine)&&(e=n.onLine),e},e.isOffline=function(){return!e.isOnline()}})}var xi=Si.Offline=new Si,Ti=(wi.prototype.getHashCodeScore=function(e){return this.getHashCode(e)/wi.INT_MAX_VALUE*100},wi.prototype.getHashCode=function(e){if(""===e)return 0;for(;e.length<8;)e=e.concat(e);for(var n=5381,t=0;t<e.length;++t)n=(n<<5)+n+e.charCodeAt(t),n&=n;return Math.abs(n)},wi.INT_MAX_VALUE=2147483647,wi);function wi(){}var bi=function(){var n=new Ti,t=new ei;this.getSamplingScore=function(e){return e.tags&&e.tags[t.userId]?n.getHashCodeScore(e.tags[t.userId]):e.ext&&e.ext.user&&e.ext.user.id?n.getHashCodeScore(e.ext.user.id):e.tags&&e.tags[t.operationId]?n.getHashCodeScore(e.tags[t.operationId]):e.ext&&e.ext.telemetryTrace&&e.ext.telemetryTrace.traceID?n.getHashCodeScore(e.ext.telemetryTrace.traceID):100*Math.random()}},Ni=(_i.prototype.isSampledIn=function(e){var n=this.sampleRate;return null===n||n===undefined||100<=n||e.baseType===Nr.dataType||this.samplingScoreGenerator.getSamplingScore(e)<n},_i);function _i(e,n){this.INT_MAX_VALUE=2147483647,n=n||an(null),(100<e||e<0)&&(n.throwInternal(M.WARNING,G.SampleRateOutOfRange,"Sampling rate is out of range (0..100). Sampling will be disabled, you may be sending too much data which may affect your AI service level.",{samplingRate:e},!0),e=100),this.sampleRate=e,this.samplingScoreGenerator=new bi}function Ri(e){try{return e.responseText}catch(n){}return null}function Ai(){return{endpointUrl:function(){return"https://dc.services.visualstudio.com/v2/track"},emitLineDelimitedJson:function(){return!1},maxBatchInterval:function(){return 15e3},maxBatchSizeInBytes:function(){return 102400},disableTelemetry:function(){return!1},enableSessionStorageBuffer:function(){return!0},isRetryDisabled:function(){return!1},isBeaconApiDisabled:function(){return!0},disableXhr:function(){return!1},onunloadDisableFetch:function(){return!1},onunloadDisableBeacon:function(){return!1},instrumentationKey:function(){return undefined},namePrefix:function(){return undefined},samplingPercentage:function(){return 100},customHeaders:function(){return undefined},convertUndefined:function(){return undefined},eventsLimitInMem:function(){return 1e4}}}var Li,Ei=((l={})[Yt.dataType]=Ii,l[Ur.dataType]=function(e,n,t){vi(e,n);var r=n[ci].message,i=n[ci].severityLevel,o=n[ci][fi]||{},a=n[ci].measurements||{};return pi(n.data,o,a),Q(t)||hi(o,t),a=new Ur(e,r,i,o,a),a=new Hr(Ur.dataType,a),mi(e,Ur.envelopeType,n,a)},l[Fr.dataType]=function(e,n,t){vi(e,n);var r,i="duration";Q(s=n[ci])||Q(s[fi])||Q(s[fi][i])?Q(n.data)||Q(n.data[i])||(r=n.data[i],delete n.data[i]):(r=s[fi][i],delete s[fi][i]);var o=n[ci];((n.ext||{}).trace||{}).traceID&&(l=n.ext.trace.traceID);var a=o.id||l,i=o.name,s=o.uri,u=o[fi]||{},l=o.measurements||{};return Q(o.refUri)||(u.refUri=o.refUri),Q(o.pageType)||(u.pageType=o.pageType),Q(o.isLoggedIn)||(u.isLoggedIn=o.isLoggedIn.toString()),Q(o[fi])||re(o[fi],function(e,n){u[e]=n}),pi(n.data,u,l),Q(t)||hi(u,t),a=new Fr(e,i,s,r,u,l,a),a=new Hr(Fr.dataType,a),mi(e,Fr.envelopeType,n,a)},l[Vr.dataType]=function(e,n,t){vi(e,n);var r=n[ci],i=r.name,o=r.uri||r.url,a=r[fi]||{},s=r.measurements||{};return pi(n.data,a,s),Q(t)||hi(a,t),r=new Vr(e,i,o,undefined,a,s,r),r=new Hr(Vr.dataType,r),mi(e,Vr.envelopeType,n,r)},l[dr.dataType]=function(e,n,t){vi(e,n);var r=n[ci].measurements||{},i=n[ci][fi]||{};return pi(n.data,i,r),Q(t)||hi(i,t),t=n[ci],r=dr.CreateFromInterface(e,t,i,r),r=new Hr(dr.dataType,r),mi(e,dr.envelopeType,n,r)},l[Nr.dataType]=function(e,n,t){vi(e,n);var r=n[ci],i=r[fi]||{},o=r.measurements||{};return pi(n.data,i,o),Q(t)||hi(i,t),o=new Nr(e,r.name,r.average,r.sampleCount,r.min,r.max,i,o),o=new Hr(Nr.dataType,o),mi(e,Nr.envelopeType,n,o)},l[Pr.dataType]=function(e,n,t){vi(e,n);var r=n[ci].measurements||{},i=n[ci][fi]||{};pi(n.data,i,r),Q(t)||hi(i,t);var o=n[ci];return Q(o)?(e.warnToConsole("Invalid input for dependency data"),null):(t=o[fi]&&o[fi][At]?o[fi][At]:"GET",r=new Pr(e,o.id,o.target,o.name,o.duration,o.success,o.responseCode,t,o.type,o.correlationContext,i,r),r=new Hr(Pr.dataType,r),mi(e,Pr.envelopeType,n,r))},l),Fi=(v(Mi,Li=yn),Mi.constructEnvelope=function(e,n,t,r){return n=n===e.iKey||Q(n)?e:h(h({},e),{iKey:n}),(Ei[n.baseType]||Ii)(t,n,r)},Mi);function Mi(){var T,w,b=Li.call(this)||this;b.priority=1001;var t,N,_,R,A,L=!(b.identifier="AppInsightsChannelPlugin"),E={},F=0;return b._senderConfig=Ai(),W(Mi,b,function(l,a){function u(e,n,t,r,i,o){var a=null;l._appId||(a=p(o))&&a.appId&&(l._appId=a.appId),(e<200||300<=e)&&0!==e?(301!==e&&307!==e&&308!==e||s(t))&&!l._senderConfig.isRetryDisabled()&&y(e)?(h(n),l.diagLog().throwInternal(M.WARNING,G.TransmissionFailed,". Response code "+e+". Will retry to send "+n.length+" items.")):l._onError(n,i):xi.isOffline()?l._senderConfig.isRetryDisabled()||(h(n,10),l.diagLog().throwInternal(M.WARNING,G.TransmissionFailed,". Offline - Response Code: ".concat(e,". Offline status: ").concat(xi.isOffline(),". Will retry to send ").concat(n.length," items."))):(s(t),206===e?(a=a||p(o))&&!l._senderConfig.isRetryDisabled()?l._onPartialSuccess(n,a):l._onError(n,i):(T=0,l._onSuccess(n,r)))}function s(e){return!(10<=_)&&!Q(e)&&""!==e&&e!==l._senderConfig.endpointUrl()&&(l._senderConfig.endpointUrl=function(){return e},++_,1)}function n(e,n){A?A(e,!1):c(e)}function o(e){var n=Ge(),t=l._buffer,r=l._senderConfig.endpointUrl(),i=l._buffer.batchPayloads(e),i=new Blob([i],{type:"text/plain;charset=UTF-8"});return(n=n.sendBeacon(r,i))&&(t.markAsSent(e),l._onSuccess(e,e.length)),n}function c(e,n){if(ae(e)&&0<e.length&&!o(e)){for(var t=[],r=0;r<e.length;r++){var i=e[r];o([i])||t.push(i)}0<t.length&&(R(t,!0),l.diagLog().throwInternal(M.WARNING,G.TransmissionFailed,". Failed to send telemetry with Beacon API, retried with normal sender."))}}function f(n,e){var t=new XMLHttpRequest,r=l._senderConfig.endpointUrl();try{t[Nt]=!0}catch(i){}t.open("POST",r,e),t.setRequestHeader("Content-type","application/json"),jt(r)&&t.setRequestHeader("Sdk-Context","appId"),de(ye(E),function(e){t.setRequestHeader(e,E[e])}),t.onreadystatechange=function(){return l._xhrReadyStateChange(t,n,n.length)},t.onerror=function(e){return l._onError(n,I(t),e)},r=l._buffer.batchPayloads(n),t.send(r),l._buffer.markAsSent(n)}function d(e,n){if(ae(e)){for(var t=e.length,r=0;r<e.length;r++)t+=e[r].length;F+t<=65e3?i(e,!1):Ze()?c(e):(R&&R(e,!0),l.diagLog().throwInternal(M.WARNING,G.TransmissionFailed,". Failed to send telemetry with Beacon API, retried with xhrSender."))}}function g(e,n){i(e,!0)}function i(t,r){var e=l._senderConfig.endpointUrl(),n=l._buffer.batchPayloads(t),i=new Blob([n],{type:"application/json"}),o=new Headers,a=n.length;jt(e)&&o.append("Sdk-Context","appId"),de(ye(E),function(e){o.append(e,E[e])}),(i={method:"POST",headers:o,body:i})[Nt]=!0,r||(i.keepalive=!0,F+=a),i=new Request(e,i);try{i[Nt]=!0}catch(s){}fetch(i).then(function(n){r||(F-=a,a=0),n.ok?n.text().then(function(e){u(n.status,t,n.url,t.length,n.statusText,e)}):l._onError(t,n.statusText)})["catch"](function(e){r||(F-=a,a=0),l._onError(t,e.message)}),l._buffer.markAsSent(t)}function p(e){try{if(e&&""!==e){var n=Xe().parse(e);if(n&&n.itemsReceived&&n.itemsReceived>=n.itemsAccepted&&n.itemsReceived-n.itemsAccepted===n.errors.length)return n}}catch(t){l.diagLog().throwInternal(M.CRITICAL,G.InvalidBackendResponse,"Cannot parse the response. "+Se(t),{response:e})}return null}function h(e,n){if(void 0===n&&(n=1),e&&0!==e.length){var t=l._buffer;t.clearSent(e),T++;for(var r=0,i=e;r<i.length;r++){var o=i[r];t.enqueue(o)}a=T<=1?10:(a=1+Math.floor((Math.pow(2,T)-1)/2*Math.random()*10),Math.max(Math.min(a*=n,3600),10)),a=Ce()+1e3*a,w=a,m()}var a}function m(){var e;t||L||(e=w?Math.max(0,w-Ce()):0,e=Math.max(l._senderConfig.maxBatchInterval(),e),t=setTimeout(function(){t=null,l.triggerSend(!0,null,1)},e))}function v(){clearTimeout(t),w=t=null}function y(e){return 408===e||429===e||500===e||503===e}function I(e,n){return e?"XMLHttpRequest,Status:"+e.status+",Response:"+Ri(e)||e.response||"":n}function C(n,e){var t=l._buffer,r=qe(),i=new XDomainRequest;if(i.onload=function(){return l._xdrOnLoad(i,n)},i.onerror=function(e){return l._onError(n,S(i),e)},r=r&&r.location&&r.location.protocol||"",l._senderConfig.endpointUrl().lastIndexOf(r,0))return l.diagLog().throwInternal(M.WARNING,G.TransmissionFailed,". Cannot send XDomain request. The endpoint URL protocol doesn't match the hosting page protocol."),void t.clear();r=l._senderConfig.endpointUrl().replace(/^(https?:)/,""),i.open("POST",r),r=t.batchPayloads(n),i.send(r),t.markAsSent(n)}function S(e,n){return e?"XDomainRequest,Response:"+Ri(e)||"":n}function x(e,n){var t=l.core[t="getNotifyMgr"]?l.core[t]():l.core._notificationManager;if(t&&t.eventsSendRequest)try{t.eventsSendRequest(e,n)}catch(r){l.diagLog().throwInternal(M.CRITICAL,G.NotificationException,"send request notification failed: "+Se(r),{exception:Je(r)})}}l.pause=function(){v(),L=!0},l.resume=function(){L&&(L=!1,w=null,l._buffer.size()>l._senderConfig.maxBatchSizeInBytes()&&l.triggerSend(!0,null,10),m())},l.flush=function(){if(!L){v();try{l.triggerSend(!0,null,1)}catch(e){l.diagLog().throwInternal(M.CRITICAL,G.FlushFailed,"flush failed, telemetry will not be collected: "+Se(e),{exception:Je(e)})}}},l.onunloadFlush=function(){if(!L)if(!1!==l._senderConfig.onunloadDisableBeacon()&&!1!==l._senderConfig.isBeaconApiDisabled()||!Ze())l.flush();else try{l.triggerSend(!0,n,2)}catch(e){l.diagLog().throwInternal(M.CRITICAL,G.FailedToSendQueuedTelemetry,"failed to flush with beacon sender on page unload, telemetry will not be collected: "+Se(e),{exception:Je(e)})}},l.teardown=function(){be("Method not implemented.")},l.addHeader=function(e,n){E[e]=n},l.initialize=function(e,n,t,r){a.initialize(e,n,t,r);var i=l._getTelCtx(),o=l.identifier;N=new Ci(n.logger),w=null,T=0,l._sender=null,_=0,n=l.diagLog(),re(Ai(),function(e,n){l._senderConfig[e]=function(){return i.getConfig(o,e,n())}}),l._buffer=new(l._senderConfig.enableSessionStorageBuffer()&&kt()?si:ii)(n,l._senderConfig),l._sample=new Ni(l._senderConfig.samplingPercentage(),n),!Q((r=e).disableInstrumentationKeyValidation)&&r.disableInstrumentationKeyValidation||/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/.test(r.instrumentationKey)||n.throwInternal(M.CRITICAL,G.InvalidInstrumentationKey,"Invalid Instrumentation key "+e.instrumentationKey),!jt(l._senderConfig.endpointUrl())&&l._senderConfig.customHeaders()&&0<l._senderConfig.customHeaders().length&&de(l._senderConfig.customHeaders(),function(e){b.addHeader(e.header,e.value)}),n=null,!(e=l._senderConfig).disableXhr()&&$e()?n=C:!e.disableXhr()&&en()&&(n=f),!n&&Qe()&&(n=g),R=n||f,!e.isBeaconApiDisabled()&&Ze()&&(n=c),l._sender=n||f,A=!e.onunloadDisableFetch()&&Qe(!0)?d:Ze()?c:!e.disableXhr()&&$e()?C:!e.disableXhr()&&en()?f:R},l.processTelemetry=function(e,t){t=l._getTelCtx(t);try{if(l._senderConfig.disableTelemetry())return;if(!e)return void t.diagLog().throwInternal(M.CRITICAL,G.CannotSendEmptyTelemetry,"Cannot send empty telemetry");if(e.baseData&&!e.baseType)return void t.diagLog().throwInternal(M.CRITICAL,G.InvalidEvent,"Cannot send telemetry without baseData and baseType");if(e.baseType||(e.baseType="EventData"),!l._sender)return void t.diagLog().throwInternal(M.CRITICAL,G.SenderNotInitialized,"Sender was not initialized");if(!l._sample.isSampledIn(e))return void t.diagLog().throwInternal(M.WARNING,G.TelemetrySampledAndNotSent,"Telemetry item was sampled out and not sent",{SampleRate:l._sample.sampleRate});e[_t]=l._sample.sampleRate;var n=l._senderConfig.convertUndefined()||undefined,r=e.iKey||l._senderConfig.instrumentationKey(),i=Mi.constructEnvelope(e,r,t.diagLog(),n);if(!i)return void t.diagLog().throwInternal(M.CRITICAL,G.CreateEnvelopeError,"Unable to create an AppInsights envelope");var o=!1;if(e.tags&&e.tags[Rt]&&(de(e.tags[Rt],function(e){try{e&&!1===e(i)&&(o=!0,t.diagLog().warnToConsole("Telemetry processor check returns false"))}catch(n){t.diagLog().throwInternal(M.CRITICAL,G.TelemetryInitializerFailed,"One of telemetry initializers failed, telemetry item will not be sent: "+Se(n),{exception:Je(n)},!0)}}),delete e.tags[Rt]),o)return;var a=N.serialize(i),s=l._buffer;s.size()+a.length>l._senderConfig.maxBatchSizeInBytes()&&l.triggerSend(!0,null,10),s.enqueue(a),m()}catch(u){t.diagLog().throwInternal(M.WARNING,G.FailedAddingTelemetryToBuffer,"Failed adding telemetry to the sender's buffer, some telemetry will be lost: "+Se(u),{exception:Je(u)})}l.processNext(e,t)},l._xhrReadyStateChange=function(e,n,t){4===e.readyState&&u(e.status,n,e.responseURL,t,I(e),Ri(e)||e.response)},l.triggerSend=function(e,n,t){if(void 0===e&&(e=!0),!L)try{var r=l._buffer;l._senderConfig.disableTelemetry()?r.clear():0<r.count()&&(o=r.getItems(),x(t||0,e),n?n.call(b,o,e):l._sender(o,e)),v()}catch(a){(!(e=ie(i=((i=(i=void 0===i?null:i)?i:(o=Ge()||{})?(o.userAgent||"").toLowerCase():"")||"").toLowerCase(),ke)?parseInt(i.split(ke)[1]):ie(i,Pe)&&(i=parseInt(i.split(Pe)[1]))?i+4:null)||9<e)&&l.diagLog().throwInternal(M.CRITICAL,G.TransmissionFailed,"Telemetry transmission failed, some telemetry will be lost: "+Se(a),{exception:Je(a)})}var i,o},l._onError=function(e,n,t){l.diagLog().throwInternal(M.WARNING,G.OnError,"Failed to send telemetry.",{message:n}),l._buffer.clearSent(e)},l._onPartialSuccess=function(e,n){for(var t=[],r=[],i=0,o=n.errors.reverse();i<o.length;i++){var a=o[i],s=e.splice(a.index,1)[0];(y(a.statusCode)?r:t).push(s)}0<e.length&&l._onSuccess(e,n.itemsAccepted),0<t.length&&l._onError(t,I(null,["partial success",n.itemsAccepted,"of",n.itemsReceived].join(" "))),0<r.length&&(h(r),l.diagLog().throwInternal(M.WARNING,G.TransmissionFailed,"Partial success. Delivered: "+e.length+", Failed: "+t.length+". Will retry to send "+r.length+" our of "+n.itemsReceived+" items"))},l._onSuccess=function(e,n){l._buffer.clearSent(e)},l._xdrOnLoad=function(e,n){var t=Ri(e);!e||t+""!="200"&&""!==t?(t=p(t))&&t.itemsReceived&&t.itemsReceived>t.itemsAccepted&&!l._senderConfig.isRetryDisabled()?l._onPartialSuccess(n,t):l._onError(n,S(e)):(T=0,l._onSuccess(n,0))}}),b}function ki(e){(Q(e)||Q(e.instrumentationKey))&&be("Invalid input configuration"),this.config=e,this.getSKUDefaults(),this.initialize()}ki.prototype.initialize=function(){this.core=new nt;var e=[],n=new Fi;e.push(n),this.core.initialize(this.config,e),n.initialize(this.config,this.core,e),this.pollInternalLogs()},ki.prototype.track=function(e){this.core.track(e)},ki.prototype.flush=function(n){void 0===n&&(n=!0),de(this.core.getTransmissionControls(),function(e){de(e,function(e){n?e.flush():e.triggerSend(n,null,1)})})},ki.prototype.pollInternalLogs=function(){this.core.pollInternalLogs()},ki.prototype.stopPollingInternalLogs=function(){this.core.stopPollingInternalLogs()},ki.prototype.getSKUDefaults=function(){this.config.diagnosticLogInterval=this.config.diagnosticLogInterval&&0<this.config.diagnosticLogInterval?this.config.diagnosticLogInterval:1e4},yn=ki,e.AppInsightsCore=nt,e.ApplicationInsights=yn,e.CoreUtils=ht,e.Sender=Fi,function(e,n,t){var r=Object.defineProperty;if(r)try{return r(e,n,t)}catch(i){}typeof t.value!==undefined&&(e[n]=t.value)}(e,"__esModule",{value:!0})};"object"==typeof exports&&"undefined"!=typeof module?n(exports):"function"==typeof define&&define.amd?define(["exports"],n):n(((e="undefined"!=typeof globalThis?globalThis:e||self).Microsoft=e.Microsoft||{},e.Microsoft.ApplicationInsights=e.Microsoft.ApplicationInsights||{}));
5
+ var e=this,n=function(e){"use strict";var a="function",g="object",i="undefined",o="prototype",s="hasOwnProperty",t=Object,u=t[o],n=t.assign,r=t.create,l=t.defineProperty,c=u[s];function f(){return typeof globalThis!==i&&globalThis?globalThis:typeof self!==i&&self?self:typeof window!==i&&window?window:typeof global!==i&&global?global:null}function d(e){throw new TypeError(e)}function p(e){if(r)return r(e);if(null==e)return{};var n=typeof e;function t(){}return n!==g&&n!==a&&d("Object prototype may only be an Object:"+e),t[o]=e,new t}(f()||{}).Symbol,(f()||{}).Reflect;var h=n||function(e){for(var n,t=1,r=arguments.length;t<r;t++)for(var i in n=arguments[t])u[s].call(n,i)&&(e[i]=n[i]);return e},m=function(e,n){return(m=t.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var t in n)n[s](t)&&(e[t]=n[t])})(e,n)};function v(e,n){function t(){this.constructor=e}typeof n!==a&&null!==n&&d("Class extends value "+n+" is not a constructor or null"),m(e,n),e[o]=null===n?p(n):(t[o]=n[o],new t)}function y(e,n){for(var t=0,r=n.length,i=e.length;t<r;t++,i++)e[i]=n[t];return e}var M,I="constructor",C="prototype",S="function",x="_dynInstFuncs",T="_isDynProxy",w="_dynClass",b="_dynInstChk",N=b,_="_dfOpts",R="_unknown_",A="__proto__",L="useBaseInst",E="setInstFuncs",F=Object,k=F.getPrototypeOf,D=0;function P(e,n){return e&&F[C].hasOwnProperty.call(e,n)}function B(e){return e&&(e===F[C]||e===Array[C])}function U(e){return B(e)||e===Function[C]}function O(e){if(e){if(k)return k(e);if(e=e[A]||e[C]||(e[I]?e[I][C]:null))return e}return null}function z(e,n){var t=[],r=F.getOwnPropertyNames;if(r)t=r(e);else for(var i in e)"string"==typeof i&&P(e,i)&&t.push(i);if(t&&0<t.length)for(var o=0;o<t.length;o++)n(t[o])}function j(e,n,t){return n!==I&&typeof e[n]===S&&(t||P(e,n))}function K(e){throw new TypeError("DynamicProto: "+e)}function q(e,n){for(var t=e.length-1;0<=t;t--)if(e[t]===n)return 1}function V(e,n){return P(e,C)?e.name||n||R:((e||{})[I]||{}).name||n||R}function W(e,r,n,t){P(e,C)||K("theClass is an invalid class definition.");var i=e[C];!function(e){if(k)for(var n=[],t=O(r);t&&!U(t)&&!q(n,t);){if(t===e)return 1;n.push(t),t=O(t)}}(i)&&K("["+V(e)+"] is not in class hierarchy of ["+V(r)+"]");var o=null;P(i,w)?o=i[w]:(o="_dynCls$"+V(e,"_")+"$"+D,D++,i[w]=o);var a=W[_],s=!!a[L];s&&t&&t[L]!==undefined&&(s=!!t[L]);var u,l,c,f,d,g,e=(l={},z(u=r,function(e){!l[e]&&j(u,e,!1)&&(l[e]=u[e])}),l);n(r,function(e,n,t,o){function r(e,n,t){var r,i=n[t];return i[T]&&o&&!1!==(r=e[x]||{})[N]&&(i=(r[n[w]]||{})[t]||i),function(){return i.apply(e,arguments)}}var i={};z(t,function(e){i[e]=r(n,t,e)});for(var a=O(e),s=[];a&&!U(a)&&!q(s,a);)z(a,function(e){!i[e]&&j(a,e,!k)&&(i[e]=r(n,a,e))}),s.push(a),a=O(a);return i}(i,r,e,s)),a=!!k&&!!a[E],c=i,o=o,f=r,d=e,t=!1!==(a=a&&t?!!t[E]:a),B(c)||(a=f[x]=f[x]||{},g=a[o]=a[o]||{},!1!==a[N]&&(a[N]=!!t),z(f,function(e){var t,r,i;j(f,e,!1)&&f[e]!==d[e]&&(g[e]=f[e],delete f[e],P(c,e)&&(!c[e]||c[e][T])||(c[e]=(t=c,r=e,(i=function(){var e,n;return(function(e,n,t,r){var i=null;if(e&&P(t,w)){var o=e[x]||{};if((i=(o[t[w]]||{})[n])||K("Missing ["+n+"] "+S),!i[b]&&!1!==o[N]){for(var a=!P(e,n),s=O(e),u=[];a&&s&&!U(s)&&!q(u,s);){var l=s[n];if(l){a=l===r;break}u.push(s),s=O(s)}try{a&&(e[n]=i),i[b]=1}catch(c){o[N]=!1}}}return i}(this,r,t,i)||(typeof(n=(n=t[e=r])===i?O(t)[e]:n)!==S&&K("["+e+"] is not a "+S),n)).apply(this,arguments)})[T]=1,i)))}))}W[_]={setInstFuncs:!0,useBaseInst:!0},(nr=M=M||{})[nr.CRITICAL=1]="CRITICAL",nr[nr.WARNING=2]="WARNING";var G={BrowserDoesNotSupportLocalStorage:0,BrowserCannotReadLocalStorage:1,BrowserCannotReadSessionStorage:2,BrowserCannotWriteLocalStorage:3,BrowserCannotWriteSessionStorage:4,BrowserFailedRemovalFromLocalStorage:5,BrowserFailedRemovalFromSessionStorage:6,CannotSendEmptyTelemetry:7,ClientPerformanceMathError:8,ErrorParsingAISessionCookie:9,ErrorPVCalc:10,ExceptionWhileLoggingError:11,FailedAddingTelemetryToBuffer:12,FailedMonitorAjaxAbort:13,FailedMonitorAjaxDur:14,FailedMonitorAjaxOpen:15,FailedMonitorAjaxRSC:16,FailedMonitorAjaxSend:17,FailedMonitorAjaxGetCorrelationHeader:18,FailedToAddHandlerForOnBeforeUnload:19,FailedToSendQueuedTelemetry:20,FailedToReportDataLoss:21,FlushFailed:22,MessageLimitPerPVExceeded:23,MissingRequiredFieldSpecification:24,NavigationTimingNotSupported:25,OnError:26,SessionRenewalDateIsZero:27,SenderNotInitialized:28,StartTrackEventFailed:29,StopTrackEventFailed:30,StartTrackFailed:31,StopTrackFailed:32,TelemetrySampledAndNotSent:33,TrackEventFailed:34,TrackExceptionFailed:35,TrackMetricFailed:36,TrackPVFailed:37,TrackPVFailedCalc:38,TrackTraceFailed:39,TransmissionFailed:40,FailedToSetStorageBuffer:41,FailedToRestoreStorageBuffer:42,InvalidBackendResponse:43,FailedToFixDepricatedValues:44,InvalidDurationValue:45,TelemetryEnvelopeInvalid:46,CreateEnvelopeError:47,CannotSerializeObject:48,CannotSerializeObjectNonSerializable:49,CircularReferenceDetected:50,ClearAuthContextFailed:51,ExceptionTruncated:52,IllegalCharsInName:53,ItemNotInArray:54,MaxAjaxPerPVExceeded:55,MessageTruncated:56,NameTooLong:57,SampleRateOutOfRange:58,SetAuthContextFailed:59,SetAuthContextFailedAccountName:60,StringValueTooLong:61,StartCalledMoreThanOnce:62,StopCalledWithoutStart:63,TelemetryInitializerFailed:64,TrackArgumentsNotSpecified:65,UrlTooLong:66,SessionStorageBufferFull:67,CannotAccessCookie:68,IdTooLong:69,InvalidEvent:70,FailedMonitorAjaxSetRequestHeader:71,SendBrowserInfoOnUserInit:72,PluginException:73,NotificationException:74,SnippetScriptLoadFailure:99,InvalidInstrumentationKey:100,CannotParseAiBlobValue:101,InvalidContentBlob:102,TrackPageActionEventFailed:103,FailedAddingCustomDefinedRequestContext:104,InMemoryStorageBufferFull:105},H="attachEvent",X="addEventListener",Y=l;function J(e){return u.toString.call(e)}function Z(e){return e===undefined||typeof e===i}function Q(e){return null===e||Z(e)}function $(e){return!Q(e)}function ee(e){return typeof e===g}function ne(e){return typeof e===a}function te(e,n,t,r){void 0===r&&(r=!1);var i=!1;if(!Q(e))try{Q(e[X])?Q(e[H])||(e[H]("on"+n,t),i=!0):(e[X](n,t,r),i=!0)}catch(o){}return i}function re(e,n){if(e)for(var t in e)c.call(e,t)&&n.call(e,t,e[t])}function ie(e,n){return!(!e||!n||!~e.indexOf(n))}function oe(e){return"[object Date]"===J(e)}function ae(e){return"[object Array]"===J(e)}function se(e){return"[object Error]"===J(e)}function ue(e){return"string"==typeof e}function le(e){return"number"==typeof e}function ce(e){return"boolean"==typeof e}function fe(e){if(oe(e)){var n=function(e){return 1===(e=""+e).length?"0"+e:e};return e.getUTCFullYear()+"-"+n(1+e.getUTCMonth())+"-"+n(e.getUTCDate())+"T"+n(e.getUTCHours())+":"+n(e.getUTCMinutes())+":"+n(e.getUTCSeconds())+"."+(""+(e.getUTCMilliseconds()/1e3).toFixed(3)).slice(2,5)+"Z"}}function de(e,n,t){var r=e.length;try{for(var i=0;i<r&&!(i in e&&-1===n.call(t||e,e[i],i,e));i++);}catch(o){}}function ge(e,n,t){var r=e.length,t=t||0;try{for(var i=Math.max(0<=t?t:r-Math.abs(t),0);i<r;i++)if(i in e&&e[i]===n)return i}catch(o){}return-1}function pe(e,n,t){var r=e.length,i=t||e,o=Array(r);try{for(var a=0;a<r;a++)a in e&&(o[a]=n.call(i,e[a],e))}catch(s){}return o}function he(e){return"string"!=typeof e?e:e.replace(/^\s+|\s+$/g,"")}t.freeze,t.seal;var me=!{toString:null}.propertyIsEnumerable("toString"),ve=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"];function ye(e){var n=typeof e;n===a||n===g&&null!==e||d("objKeys called on non-object");var t,r=[];for(t in e)e&&c.call(e,t)&&r.push(t);if(me)for(var i=ve.length,o=0;o<i;o++)e&&c.call(e,ve[o])&&r.push(ve[o]);return r}function Ie(e,n,t,r){if(Y)try{var i={enumerable:!0,configurable:!0};return t&&(i.get=t),r&&(i.set=r),Y(e,n,i),!0}catch(o){}return!1}function Ce(){var e=Date;return e.now?e.now():(new e).getTime()}function Se(e){return se(e)?e.name:""}function xe(e,n,t,r,i){var o=t;return e&&((o=e[n])===t||i&&!i(o)||r&&!r(t)||(e[n]=o=t)),o}function Te(e){return!e}function we(e){return!!e}function be(e){throw Error(e)}function Ne(e){return e&&t(n?n({},e):e)}var _e="window",Re="navigator",Ae="location",Le="console",Ee="JSON",Fe="crypto",Me="msCrypto",ke="msie",De="trident/",Pe=null,Be=null,Ue=null,Oe=null;function ze(e,n){var t,r=!1;if(e){try{(r=n in e)||(t=e[o])&&(r=n in t)}catch(i){}if(!r)try{r=!Z((new e)[n])}catch(i){}}return r}function je(e){var n=f();return n&&n[e]?n[e]:e===_e&&Ke()?window:null}function Ke(){return typeof window===g&&window}function qe(){return Ke()?window:je(_e)}function Ve(){return typeof document===g&&document?document:je("document")}function We(){return!(typeof navigator!==g||!navigator)}function Ge(){return We()?navigator:je(Re)}function He(){return typeof JSON===g&&JSON||null!==je(Ee)}function Xe(){return He()?JSON||je(Ee):null}function Ye(){var e=Ge();return!e||e.userAgent===Be&&null!==Pe||(e=((Be=e.userAgent)||"").toLowerCase(),Pe=ie(e,ke)||ie(e,De)),Pe}function Je(e){var n=Object[o].toString.call(e),t="";return"[object Error]"===n?t="{ stack: '"+e.stack+"', message: '"+e.message+"', name: '"+e.name+"'":He()&&(t=Xe().stringify(e)),n+t}function Ze(){return Oe=null===Oe?We()&&!!Ge().sendBeacon:Oe}function Qe(e){var n=!1;try{var n=!!je("fetch"),t=je("Request");n&&e&&t&&(n=ze(t,"keepalive"))}catch(r){}return n}function $e(){return Ue=null===Ue&&(Ue=typeof XDomainRequest!==undefined)&&en()?Ue&&!ze(je("XMLHttpRequest"),"withCredentials"):Ue}function en(){var e=!1;try{e=!!je("XMLHttpRequest")}catch(n){}return e}var nn,tn=["eventsSent","eventsDiscarded","eventsSendRequest","perfEvent"],rn=null;function on(e){var n=rn;return(n=n||!0===e.disableDbgExt?n:rn||(e=je("Microsoft"),rn=e?e.ApplicationInsights:rn))?n.ChromeDbgExt:null}function an(e){return e?'"'+e.replace(/\"/g,"")+'"':""}function sn(e,n){var t,r=typeof console!==i?console:je(Le);r&&(t="log",ne(r[t=r[e]?e:t])&&r[t](n))}var un=(ln.dataType="MessageData",ln);function ln(e,n,t,r){void 0===t&&(t=!1),this.messageId=e,this.message=(t?"AI: ":"AI (Internal): ")+e,e="",He()&&(e=Xe().stringify(r)),e=(n?" message:"+an(n):"")+(r?" props:"+an(e):""),this.message+=e}function cn(e,n){return(e||{}).logger||new fn(n)}var fn=function Oi(r){this.identifier="DiagnosticLogger",this.queue=[];var i=0,s={};W(Oi,this,function(o){function e(e,n){return Q(e=r[e])?n:e}function a(e,n){var t=on(r);t&&t.diagLog&&t.diagLog(e,n)}Q(r)&&(r={}),o.consoleLoggingLevel=function(){return e("loggingLevelConsole",0)},o.telemetryLoggingLevel=function(){return e("loggingLevelTelemetry",1)},o.maxInternalMessageLimit=function(){return e("maxMessageLimit",25)},o.enableDebugExceptions=function(){return e("enableDebugExceptions",!1)},o.throwInternal=function(e,n,t,r,i){if(n=new un(n,t,i=void 0!==i&&i,r),o.enableDebugExceptions())throw n;t=e===M.CRITICAL?"errorToConsole":"warnToConsole",Z(n.message)?a("throw"+(e===M.CRITICAL?"Critical":"Warning"),n):(r=o.consoleLoggingLevel(),i?(i=+n.messageId,!s[i]&&e<=r&&(o[t](n.message),s[i]=!0)):e<=r&&o[t](n.message),o.logInternalMessage(e,n))},o.warnToConsole=function(e){sn("warn",e),a("warning",e)},o.errorToConsole=function(e){sn("error",e),a("error",e)},o.resetInternalMessageCount=function(){i=0,s={}},o.logInternalMessage=function(e,n){var t,r;i>=o.maxInternalMessageLimit()||(r=!0,t="AITR_"+n.messageId,s[t]?r=!1:s[t]=!0,r&&(e<=o.telemetryLoggingLevel()&&(o.queue.push(n),i++,a(e===M.CRITICAL?"error":"warn",n)),i===o.maxInternalMessageLimit()&&(n=new un(G.MessageLimitPerPVExceeded,r="Internal events throttle limit per PageView reached for this app.",!1),o.queue.push(n),e===M.CRITICAL?o.errorToConsole(r):o.warnToConsole(r))))}})},dn=(gn.ParentContextKey="parent",gn.ChildrenContextKey="childEvts",gn);function gn(e,i,n){var t,o=this,a=!1;o.start=Ce(),o.name=e,o.isAsync=n,o.isChildEvt=function(){return!1},ne(i)&&(a=Ie(o,"payload",function(){return!t&&ne(i)&&(t=i(),i=null),t})),o.getCtx=function(e){return e?(e===gn.ParentContextKey||e===gn.ChildrenContextKey?o:o.ctx||{})[e]:null},o.setCtx=function(e,n){e&&(e===gn.ParentContextKey?(o[e]||(o.isChildEvt=function(){return!0}),o[e]=n):e===gn.ChildrenContextKey?o[e]=n:(o.ctx=o.ctx||{})[e]=n)},o.complete=function(){var e=0,n=o.getCtx(gn.ChildrenContextKey);if(ae(n))for(var t=0;t<n.length;t++){var r=n[t];r&&(e+=r.time)}o.time=Ce()-o.start,o.exTime=o.time-e,o.complete=function(){},!a&&ne(i)&&(o.payload=i())}}var pn=function zi(n){this.ctx={},W(zi,this,function(t){t.create=function(e,n,t){return new dn(e,n,t)},t.fire=function(e){e&&(e.complete(),n&&ne(n.perfEvent)&&n.perfEvent(e))},t.setCtx=function(e,n){e&&((t.ctx=t.ctx||{})[e]=n)},t.getCtx=function(e){return(t.ctx||{})[e]}})},hn="CoreUtils.doPerf";function mn(e,n,t,r,i){if(e){var o=e;if(o=ne(o.getPerfMgr)?o.getPerfMgr():o){var a,s=void 0,e=o.getCtx(hn);try{if(s=o.create(n(),r,i))return e&&s.setCtx&&(s.setCtx(dn.ParentContextKey,e),e.getCtx&&e.setCtx&&((a=e.getCtx(dn.ChildrenContextKey))||(a=[],e.setCtx(dn.ChildrenContextKey,a)),a.push(s))),o.setCtx(hn,s),t(s)}catch(u){s&&s.setCtx&&s.setCtx("exception",u)}finally{s&&o.fire(s),o.setCtx(hn,e)}}}return t()}var vn=function(i,n){var o=this,a=null,s=ne(i.processTelemetry),u=ne(i.setNextPlugin);o._hasRun=!1,o.getPlugin=function(){return i},o.getNext=function(){return a},o.setNext=function(e){a=e},o.processTelemetry=function(t,r){r=r||n;var e=i?i.identifier:"TelemetryPluginChain";mn(r?r.core():null,function(){return e+":processTelemetry"},function(){if(i&&s){o._hasRun=!0;try{r.setNext(a),u&&i.setNextPlugin(a),a&&(a._hasRun=!1),i.processTelemetry(t,r)}catch(n){var e=a&&a._hasRun;a&&e||r.diagLog().throwInternal(M.CRITICAL,G.PluginException,"Plugin ["+i.identifier+"] failed during processTelemetry - "+Je(n)),a&&!e&&a.processTelemetry(t,r)}}else a&&(o._hasRun=!0,a.processTelemetry(t,r))},function(){return{item:t}},!t.sync)}};function yn(e,n){var t=[];if(e&&0<e.length)for(var r=null,i=0;i<e.length;i++){var o=e[i];o&&ne(o.processTelemetry)&&(o=new vn(o,n),t.push(o),r&&r.setNext(o),r=o)}return 0<t.length?t[0]:null}var In=function ji(e,i,t,n){var r,o,a,s,u=this,l=null;null!==n&&(e&&ne(e.getPlugin)?l=function(e,n,t){var r=[],i=!t;if(e)for(;e;){var o=e.getPlugin();!i&&o!==t||(i=!0,r.push(o)),e=e.getNext()}return i||r.push(t),yn(r,n)}(e,u,n||e.getPlugin()):n?(r=u,a=e,s=!1,(o=n)&&e&&(a=[],de(e,function(e){!s&&e!==o||(s=!0,a.push(e))})),o&&!s&&(a=a||[]).push(o),l=yn(a,r)):Z(n)&&(l=yn(e,u))),u.core=function(){return t},u.diagLog=function(){return cn(t,i)},u.getCfg=function(){return i},u.getExtCfg=function(e,n){var t,r;return void 0===n&&(n={}),!i||(r=i.extensionConfig)&&e&&(t=r[e]),t||n},u.getConfig=function(e,n,t){var r;return void 0===t&&(t=!1),(e=u.getExtCfg(e,null))&&!Q(e[n])?r=e[n]:i&&!Q(i[n])&&(r=i[n]),Q(r)?t:r},u.hasNext=function(){return null!=l},u.getNext=function(){return l},u.setNext=function(e){l=e},u.processNext=function(e){var n=l;n&&(l=n.getNext(),n.processTelemetry(e,u))},u.createNew=function(e,n){return new ji((e=void 0===e?null:e)||l,i,t,n)}},Cn="extensionConfig",Sn="getPlugin",xn=(Tn.prototype.initialize=function(e,n,t,r){this._baseTelInit(e,n,t,r)},Tn);function Tn(){var o=this,a=!1,s=null,u=null;o.core=null,o.diagLog=function(e){return o._getTelCtx(e).diagLog()},o.isInitialized=function(){return a},o.setInitialized=function(e){a=e},o.setNextPlugin=function(e){u=e},o.processNext=function(e,n){n?n.processNext(e):u&&ne(u.processTelemetry)&&u.processTelemetry(e,null)},o._getTelCtx=function(e){var n=e=void 0===e?null:e;return n||(e=s||new In(null,{},o.core),n=u&&u[Sn]?e.createNew(null,u[Sn]):e.createNew(null,u)),n},o._baseTelInit=function(e,n,t,r){e&&xe(e,Cn,[],null,Q),!r&&n&&(r=n.getProcessTelContext().getNext());var i=u;u&&u[Sn]&&(i=u[Sn]()),o.core=n,s=new In(r,e,n,i),a=!0}}var wn="processTelemetry",bn="priority",Nn="setNextPlugin",_n="isInitialized";function Rn(n,t){for(var e=[],r=null,i=n.getNext();i;){var o=i.getPlugin();o&&(r&&ne(r[Nn])&&ne(o[wn])&&r[Nn](o),ne(o[_n])&&o[_n]()||e.push(o),r=o,i=i.getNext())}de(e,function(e){e.initialize(n.getCfg(),n.core(),t,n.getNext())})}function An(e){return e.sort(function(e,n){var t=0,r=ne(n[wn]);return ne(e[wn])?t=r?e[bn]-n[bn]:1:r&&(t=-1),t})}var Ln,En=(v(Fn,Ln=xn),Fn._staticInit=(Ie(br=Fn.prototype,"ChannelControls",br.getChannelControls),void Ie(br,"channelQueue",br.getChannelControls)),Fn);function Fn(){var u,r=Ln.call(this)||this;function l(e){e&&0<e.length&&(de(e=e.sort(function(e,n){return e.priority-n.priority}),function(e){e.priority<500&&be("Channel has invalid priority"+e.identifier)}),u.push(e))}return r.identifier="ChannelControllerPlugin",r.priority=500,W(Fn,r,function(a,s){a.setNextPlugin=function(e){},a.processTelemetry=function(n,t){u&&de(u,function(e){0<e.length&&r._getTelCtx(t).createNew(e).processNext(n)})},a.getChannelControls=function(){return u},a.initialize=function(n,t,r){var e,i,o;a.isInitialized()||(s.initialize(n,t,r),e=(n||{}).channels,i=r,u=[],e&&de(e,l),i&&(o=[],de(i,function(e){500<e.priority&&o.push(e)}),l(o)),de(u,function(e){return Rn(new In(e,n,t),r)}))}}),r}var Mn="toGMTString",kn="toUTCString",Dn="cookie",Pn="expires",Bn="enabled",Un="isCookieUseDisabled",On="disableCookiesUsage",zn="_ckMgr",jn="",Kn=null,qn=null,Vn=null,Wn=Ve(),Gn={},Hn={};function Xn(e){return!e||e.isEnabled()}function Yn(e,i){var n,t,l=(xe(t=(n=e||Hn).cookieCfg=n.cookieCfg||{},"domain",n.cookieDomain,$,Q),xe(t,"path",n.cookiePath||"/",null,Q),Q(t[Bn])&&(e=void 0,Z(n[Un])||(e=!n[Un]),Z(n[On])||(e=!n[On]),t[Bn]=e),t),c=l.path||"/",f=l.domain,r=!1!==l[Bn],d={isEnabled:function(){var e=r&&Jn(i),n=Hn[zn];return e&&n&&d!==n?Xn(n):e},setEnabled:function(e){r=!1!==e},set:function(e,n,t,r,i){var o,a,s,u=!1;return Xn(d)&&(o={},-1!=(s=(a=he(n||jn)).indexOf(";"))&&(a=he(n.substring(0,s)),o=Zn(n.substring(1+s))),xe(o,"domain",r||f,we,Z),Q(t)||(s=Ye(),!Z(o[Pn])||0<(n=Ce()+1e3*t)&&((r=new Date).setTime(n),xe(o,Pn,Qn(r,s?Mn:kn)||Qn(r,s?Mn:kn)||jn,we)),s||xe(o,"max-age",jn+t,null,Z)),(t=typeof location===g&&location?location:je(Ae))&&"https:"===t.protocol&&(xe(o,"secure",null,null,Z),(qn=null===qn?!(ue(t=(Ge()||{}).userAgent)&&(ie(t,"CPU iPhone OS 12")||ie(t,"iPad; CPU OS 12")||ie(t,"Macintosh; Intel Mac OS X 10_14")&&ie(t,"Version/")&&ie(t,"Safari")||ie(t,"Macintosh; Intel Mac OS X 10_14")&&function(e,n){if(e){var t=e.length;if(e===n)return 1;if(40<=t){for(var r=t-1,i=39;0<=i;i--){if(e[r]!=n[i])return;r--}return 1}}}(t,"AppleWebKit/605.1.15 (KHTML, like Gecko)")||ie(t,"Chrome/5")||ie(t,"Chrome/6")||ie(t,"UnrealEngine")&&!ie(t,"Chrome")||ie(t,"UCBrowser/12")||ie(t,"UCBrowser/11"))):qn)&&xe(o,"SameSite","None",null,Z)),xe(o,"path",i||c,null,Z),(l.setCookie||et)(e,$n(a,o)),u=!0),u},get:function(e){var n=jn;return Xn(d)?(l.getCookie||function(e){var n,t=jn;return Wn&&(n=Wn[Dn]||jn,Vn!==n&&(Gn=Zn(n),Vn=n),t=he(Gn[e]||jn)),t})(e):n},del:function(e,n){return!!Xn(d)&&d.purge(e,n)},purge:function(e,n){var t,r=!1;return Jn(i)&&((t={}).path=n||"/",t[Pn]="Thu, 01 Jan 1970 00:00:01 GMT",Ye()||(t["max-age"]="0"),(l.delCookie||et)(e,$n(jn,t)),r=!0),r}};return d[zn]=d}function Jn(e){if(null===Kn){Kn=!1;try{Kn=(Wn||{})[Dn]!==undefined}catch(n){e&&e.throwInternal(M.WARNING,G.CannotAccessCookie,"Cannot access document.cookie - "+Se(n),{exception:Je(n)})}}return Kn}function Zn(e){var t={};return e&&e.length&&de(he(e).split(";"),function(e){var n;(e=he(e||jn))&&(-1==(n=e.indexOf("="))?t[e]=null:t[he(e.substring(0,n))]=he(e.substring(1+n)))}),t}function Qn(e,n){return ne(e[n])?e[n]():null}function $n(e,n){var t=e||jn;return re(n,function(e,n){t+="; "+e+(Q(n)?jn:"="+n)}),t}function et(e,n){Wn&&(Wn[Dn]=e+"="+n)}var nt="_notificationManager";function tt(e,n){return new pn(n)}var rt,it=function Ki(e){this.listeners=[];var n=!!(e||{}).perfEvtsSendAll;W(Ki,this,function(i){i.addNotificationListener=function(e){i.listeners.push(e)},i.removeNotificationListener=function(e){for(var n=ge(i.listeners,e);-1<n;)i.listeners.splice(n,1),n=ge(i.listeners,e)},i.eventsSent=function(n){de(i.listeners,function(e){e&&e.eventsSent&&setTimeout(function(){return e.eventsSent(n)},0)})},i.eventsDiscarded=function(n,t){de(i.listeners,function(e){e&&e.eventsDiscarded&&setTimeout(function(){return e.eventsDiscarded(n,t)},0)})},i.eventsSendRequest=function(t,r){de(i.listeners,function(e){if(e&&e.eventsSendRequest)if(r)setTimeout(function(){return e.eventsSendRequest(t,r)},0);else try{e.eventsSendRequest(t,r)}catch(n){}})},i.perfEvent=function(t){t&&(!n&&t.isChildEvt()||de(i.listeners,function(e){if(e&&e.perfEvent)if(t.isAsync)setTimeout(function(){return e.perfEvent(t)},0);else try{e.perfEvent(t)}catch(n){}}))}})},ot=(v(at,rt=function qi(){var n,l,c,t,r,f=!1;W(qi,this,function(u){u._extensions=[],l=new En,u.logger=new fn({loggingLevelConsole:M.CRITICAL}),n=[],u.isInitialized=function(){return f},u.initialize=function(e,n,r,t){var i,o;u.isInitialized()&&be("Core should not be initialized more than once"),e&&!Q(e.instrumentationKey)||be("Please provide instrumentation key"),c=t,u[nt]=t,u.config=e||{},t&&!0!==u.config.disableDbgExt&&t.addNotificationListener(function(e){if(!nn){nn={};for(var n=0;n<tn.length;n++)nn[tn[n]]=function(n,t){return function(){var e=on(t);!e||(e=e.listener)&&e[n]&&e[n].apply(e,arguments)}}(tn[n],e)}return nn}(e)),u.config.enablePerfMgr&&xe(u.config,"createPerfMgr",tt),e.extensions=Q(e.extensions)?[]:e.extensions,e?!(o=e[Cn])&&Q(o)&&(o=Z(i)?{}:i,e[Cn]=o):o=Z(i)?{}:i,o.NotificationManager=t,r&&(u.logger=r),(t=[]).push.apply(t,y(y([],n),e.extensions));var t=An(t),a=[],s={};de(t,function(e){(Q(e)||Q(e.initialize))&&be("Extensions must provide callback to initialize");var n=e.priority,t=e.identifier;e&&n&&(Q(s[n])?s[n]=t:r.warnToConsole("Two extensions have same priority #"+n+" - "+s[n]+", "+t)),(!n||n<l.priority)&&a.push(e)}),t.push(l),a.push(l),t=An(t),u._extensions=t,Rn(new In([l],e,u),t),Rn(new In(a,e,u),t),u._extensions=a,0===u.getTransmissionControls().length&&be("No channels available"),f=!0,u.releaseQueue()},u.getTransmissionControls=function(){return l.getChannelControls()},u.track=function(e){xe(e,"iKey",u.config.instrumentationKey,null,Te),xe(e,"time",fe(new Date),null,Te),xe(e,"ver","4.0",null,Q),u.isInitialized()?u.getProcessTelContext().processNext(e):n.push(e)},u.getProcessTelContext=function(){var e=u._extensions,n=e;return e&&0!==e.length||(n=[l]),new In(n,u.config,u)},u.getNotifyMgr=function(){return c||(c=p({addNotificationListener:function(e){},removeNotificationListener:function(e){},eventsSent:function(e){},eventsDiscarded:function(e,n){},eventsSendRequest:function(e,n){}}),u[nt]=c),c},u.getCookieMgr=function(){return r=r||Yn(u.config,u.logger)},u.setCookieMgr=function(e){r=e},u.getPerfMgr=function(){return t||u.config&&u.config.enablePerfMgr&&ne(u.config.createPerfMgr)&&(t=u.config.createPerfMgr(u,u.getNotifyMgr())),t||null},u.setPerfMgr=function(e){t=e},u.eventCnt=function(){return n.length},u.releaseQueue=function(){0<n.length&&(de(n,function(e){u.getProcessTelContext().processNext(e)}),n=[])}})}),at);function at(){var e=rt.call(this)||this,r=0;return W(at,e,function(t,i){function n(e){var n=t.getNotifyMgr();n&&n.eventsDiscarded([e],2)}t.initialize=function(e,n,t,r){i.initialize(e,n,t||new fn(e),r||new it(e))},t.track=function(e){mn(t.getPerfMgr(),function(){return"AppInsightsCore:track"},function(){null===e&&(n(e),be("Invalid telemetry item")),function(){if(Q(e.name))throw n(e),Error("telemetry name required")}(),i.track(e)},function(){return{item:e}},!e.sync)},t.addNotificationListener=function(e){var n=t.getNotifyMgr();n&&n.addNotificationListener(e)},t.removeNotificationListener=function(e){var n=t.getNotifyMgr();n&&n.removeNotificationListener(e)},t.pollInternalLogs=function(n){var e=t.config.diagnosticLogInterval;return e&&0<e||(e=1e4),r&&t.stopPollingInternalLogs(),r=setInterval(function(){var e=t.logger?t.logger.queue:[];de(e,function(e){e={name:n||"InternalMessageId: "+e.messageId,iKey:t.config.instrumentationKey,time:fe(new Date),baseType:un.dataType,baseData:{message:e.message}},t.track(e)}),e.length=0},e)},t.stopPollingInternalLogs=function(){r&&(clearInterval(r),r=0)}}),e}var st=4294967296,ut=4294967295,lt=!1,ct=123456789,ft=987654321;function dt(e){e<0&&(e>>>=0),ct=123456789+e&ut,ft=987654321-e&ut,lt=!0}function gt(){try{var e=2147483647&Ce();dt((Math.random()*st^e)+e)}catch(n){}}function pt(e){return 0<e?Math.floor(ht()/ut*(e+1))>>>0:0}function ht(e){var n=(n=je(Fe)||je(Me))&&n.getRandomValues?n.getRandomValues(new Uint32Array(1))[0]&ut:Ye()?(lt||gt(),mt()&ut):Math.floor(st*Math.random()|0);return e||(n>>>=0),n}function mt(e){var n=((ft=36969*(65535&ft)+(ft>>16)&ut)<<16)+(65535&(ct=18e3*(65535&ct)+(ct>>16)&ut))>>>0&ut|0;return e||(n>>>=0),n}var vt,yt=null,It={_canUseCookies:undefined,isTypeof:function(e,n){return typeof e===n},isUndefined:Z,isNullOrUndefined:Q,hasOwnProperty:function(e,n){return e&&c.call(e,n)},isFunction:ne,isObject:ee,isDate:oe,isArray:ae,isError:se,isString:ue,isNumber:le,isBoolean:ce,toISOString:fe,arrForEach:de,arrIndexOf:ge,arrMap:pe,arrReduce:function(e,n,t){var r,i=e.length,o=0;if(3<=arguments.length)r=t;else{for(;o<i&&!(o in e);)o++;r=e[o++]}for(;o<i;)o in e&&(r=n(r,e[o],o,e)),o++;return r},strTrim:he,objCreate:p,objKeys:ye,objDefineAccessors:Ie,addEventHandler:function(e,n){var t=!1,r=qe();return r&&(t=te(r,e,n),t=te(r.body,e,n)||t),(r=Ve())&&te(r,e,n)||t},dateNow:Ce,isIE:Ye,disableCookies:function(){var e,n,t=e;(n=Yn[zn]||Hn[zn])||(n=Yn[zn]=Yn(t,void 0),Hn[zn]=n),e=n,n=It._canUseCookies,null===yt&&(yt=[],vt=n,Ie(It,"_canUseCookies",function(){return vt},function(n){vt=n,de(yt,function(e){e.setEnabled(n)})})),-1===ge(yt,e)&&yt.push(e),ce(n)&&e.setEnabled(n),ce(vt)&&e.setEnabled(vt),e.setEnabled(!1)},newGuid:function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(Ct,function(e){var n=0|pt(15);return("x"===e?n:3&n|8).toString(16)})},perfNow:function(){var e=je("performance");return e&&e.now?e.now():Ce()},newId:function(e){void 0===e&&(e=22);for(var n=ht()>>>0,t=0,r="";r.length<e;)r+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"[0|63&n]||"",n>>>=6,5==++t&&(n=(ht()<<2&4294967295|3&n)>>>0,t=0);return r},randomValue:pt,random32:ht,mwcRandomSeed:function(e){e?dt(e):gt()},mwcRandom32:mt,generateW3CId:function(){for(var e,n=["0","1","2","3","4","5","6","7","8","9","a","b","c","d","e","f"],t="",r=0;r<4;r++)t+=n[15&(e=ht())]+n[e>>4&15]+n[e>>8&15]+n[e>>12&15]+n[e>>16&15]+n[e>>20&15]+n[e>>24&15]+n[e>>28&15];var i=n[8+(3&ht())|0];return t.substr(0,8)+t.substr(9,4)+"4"+t.substr(13,3)+i+t.substr(16,3)+t.substr(19,12)}},Ct=/[xy]/g;function St(e,n,t){var r,i,o=n.length,a=(n&&150<(n=he(n.toString())).length&&(r=n.substring(0,150),e&&e.throwInternal(M.WARNING,G.NameTooLong,"name is too long. It has been truncated to 150 characters.",{name:n},!0)),r||n);if(a.length!==o){for(var s=0,u=a;t[u]!==undefined;)s++,u=a.substring(0,147)+(i="00"+s).substr(i.length-3);a=u}return a}function xt(e,n,t){var r;return void 0===t&&(t=1024),n&&(t=t||1024,(n=he(n)).toString().length>t&&(r=n.toString().substring(0,t),e&&e.throwInternal(M.WARNING,G.StringValueTooLong,"string value is too long. It has been truncated to "+t+" characters.",{value:n},!0))),r||n}function Tt(e,n){return _t(e,n,2048,G.UrlTooLong)}function wt(e,n){var t;return n&&32768<n.length&&(t=n.substring(0,32768),e&&e.throwInternal(M.WARNING,G.MessageTruncated,"message is too long, it has been truncated to 32768 characters.",{message:n},!0)),t||n}function bt(r,e){var i;return e&&(i={},re(e,function(e,n){if(ee(n)&&He())try{n=Xe().stringify(n)}catch(t){r&&r.throwInternal(M.WARNING,G.CannotSerializeObjectNonSerializable,"custom property is not valid",{exception:t},!0)}n=xt(r,n,8192),e=St(r,e,i),i[e]=n}),e=i),e}function Nt(t,e){var r;return e&&(r={},re(e,function(e,n){e=St(t,e,r),r[e]=n}),e=r),e}function _t(e,n,t,r){var i;return n&&(n=he(n)).length>t&&(i=n.substring(0,t),e&&e.throwInternal(M.WARNING,r,"input is too long, it has been truncated to "+t+" characters.",{data:n},!0)),i||n}function Rt(e){var n=""+Math.floor((e=Math.round(e=isNaN(e)||e<0?0:e))/1e3)%60,t=""+Math.floor(e/6e4)%60,r=""+Math.floor(e/36e5)%24,i=Math.floor(e/864e5),e=1===(e=""+e%1e3).length?"00"+e:2===e.length?"0"+e:e,n=n.length<2?"0"+n:n,t=t.length<2?"0"+t:t;return(0<i?i+".":"")+(r=r.length<2?"0"+r:r)+":"+t+":"+n+"."+e}var At,Lt="Microsoft_ApplicationInsights_BypassAjaxInstrumentation",Et="sampleRate",Ft="ProcessLegacy",Mt="http.method",kt="not_specified";(ti=At=At||{})[ti.LocalStorage=0]="LocalStorage",ti[ti.SessionStorage=1]="SessionStorage",(Wr=Mr=Mr||{})[Wr.AI=0]="AI",Wr[Wr.AI_AND_W3C=1]="AI_AND_W3C",Wr[Wr.W3C=2]="W3C";var Dt=undefined;function Pt(e){try{if(Q(f()))return null;var n=new Date,t=je(e===At.LocalStorage?"localStorage":"sessionStorage");t.setItem(n.toString(),n.toString());var r=t.getItem(n.toString())!==n.toString();if(t.removeItem(n.toString()),!r)return t}catch(i){}return null}function Bt(){return Ut()?Pt(At.SessionStorage):null}function Ut(){return Dt=Dt===undefined?!!Pt(At.SessionStorage):Dt}function Ot(e,n){var t=Bt();if(null!==t)try{return t.getItem(n)}catch(r){Dt=!1,e.throwInternal(M.WARNING,G.BrowserCannotReadSessionStorage,"Browser failed read of session storage. "+Se(r),{exception:Je(r)})}return null}function zt(e,n,t){var r=Bt();if(null!==r)try{return r.setItem(n,t),1}catch(i){Dt=!1,e.throwInternal(M.WARNING,G.BrowserCannotWriteSessionStorage,"Browser failed write to session storage. "+Se(i),{exception:Je(i)})}}var jt=Ve()||{},Kt=0,qt=[null,null,null,null,null],Vt=["https://dc.services.visualstudio.com/v2/track","https://breeze.aimon.applicationinsights.io/v2/track","https://dc-int.services.visualstudio.com/v2/track"];function Wt(e){return~Vt.indexOf(e.toLowerCase())}var Gt,Ht=(v(Xt,Gt=function(){}),Xt);function Xt(){return Gt.call(this)||this}var Yt,Jt=(v(Zt,Yt=function(){this.ver=1,this.sampleRate=100,this.tags={}}),Zt);function Zt(e,n,t){var r=Yt.call(this)||this;return r.name=xt(e,t)||kt,r.data=n,r.time=fe(new Date),r.aiDataContract={time:1,iKey:1,name:1,sampleRate:function(){return 100===r.sampleRate?4:1},tags:1,data:1},r}var Qt,$t=(v(er,Qt=ri=function(){this.ver=2,this.properties={},this.measurements={}}),er.envelopeType="Microsoft.ApplicationInsights.{0}.Event",er.dataType="EventData",er);function er(e,n,t,r){var i=Qt.call(this)||this;return i.aiDataContract={ver:1,name:1,properties:0,measurements:0},i.name=xt(e,n)||kt,i.properties=bt(e,t),i.measurements=Nt(e,r),i}var nr=function(){},l=function(){this.hasFullStack=!0,this.parsedStack=[]},tr="error",rr="stack",ir="stackDetails",or="errorSrc",ar="message",sr="description";function ur(e,n){var t=e;return t&&!ue(t)&&(JSON&&JSON.stringify?(t=JSON.stringify(e),!n||t&&"{}"!==t||(t=ne(e.toString)?e.toString():""+e)):t=e+" - (Missing JSON.stringify)"),t||""}function lr(e,n){var t=e;return e&&((t=t&&!ue(t)&&(e[ar]||e[sr])||t)&&!ue(t)&&(t=ur(t,!0)),e.filename&&(t=t+" @"+(e.filename||"")+":"+(e.lineno||"?")+":"+(e.colno||"?"))),(n&&"String"!==n&&"Object"!==n&&"Error"!==n&&!~(t||"").indexOf(n)?n+": "+t:t)||""}function cr(e){return e&&e.src&&ue(e.src)&&e.obj&&ae(e.obj)}function fr(e){var n=e||"",e=(n=ue(n)?n:ue(n[rr])?n[rr]:""+n).split("\n");return{src:n,obj:e}}function dr(e){var n,t=null;if(e)try{e[rr]?t=fr(e[rr]):e[tr]&&e[tr][rr]?t=fr(e[tr][rr]):e.exception&&e.exception[rr]?t=fr(e.exception[rr]):cr(e)?t=e:cr(e[ir])?t=e[ir]:window.opera&&e[ar]?t=function(e){for(var n=[],t=e.split("\n"),r=0;r<t.length;r++){var i=t[r];t[r+1]&&(i+="@"+t[r+1],r++),n.push(i)}return{src:e,obj:n}}(e.message):ue(e)?t=fr(e):(n=e[ar]||e[sr]||"",ue(e[or])&&(n&&(n+="\n"),n+=" from "+e[or]),n&&(t=fr(n)))}catch(r){t=fr(r)}return t||{src:"",obj:null}}function gr(e){var n="";if(e&&!(n=e.typeName||e.name||""))try{var t=/function (.{1,200})\(/.exec(e.constructor.toString()),n=t&&1<t.length?t[1]:""}catch(r){}return n}function pr(e){if(e)try{if(!ue(e)){var n=gr(e),t=ur(e,!1);return t&&"{}"!==t||(e[tr]&&(n=gr(e=e[tr])),t=ur(e,!0)),t.indexOf(n)&&"String"!==n?n+":"+t:t}}catch(r){}return""+(e||"")}var hr,mr=(v(vr,hr=function(){this.ver=2,this.exceptions=[],this.properties={},this.measurements={}}),vr.CreateAutoException=function(e,n,t,r,i,o,a,s){var u=gr(i||o||e);return{message:lr(e,u),url:n,lineNumber:t,columnNumber:r,error:pr(i||o||e),evt:pr(o||e),typeName:u,stackDetails:dr(a||i||o),errorSrc:s}},vr.CreateFromInterface=function(n,e,t,r){var i=e.exceptions&&pe(e.exceptions,function(e){return Ir.CreateFromInterface(n,e)});return new vr(n,h(h({},e),{exceptions:i}),t,r)},vr.prototype.toInterface=function(){var e=this.exceptions,n=this.properties,t=this.measurements,r=this.severityLevel;this.ver;var i=this.problemGroup,o=this.id,a=this.isManual;return{ver:"4.0",exceptions:e instanceof Array&&pe(e,function(e){return e.toInterface()})||undefined,severityLevel:r,properties:n,measurements:t,problemGroup:i,id:o,isManual:a}},vr.CreateSimpleException=function(e,n,t,r,i,o){return{exceptions:[{hasFullStack:!0,message:e,stack:i,typeName:n}]}},vr.envelopeType="Microsoft.ApplicationInsights.{0}.Exception",vr.dataType="ExceptionData",vr.formatError=pr,vr);function vr(e,n,t,r,i,o){var a=hr.call(this)||this;return a.aiDataContract={ver:1,exceptions:1,severityLevel:0,properties:0,measurements:0},function(e){try{if(ee(e))return"ver"in e&&"exceptions"in e&&"properties"in e}catch(n){}}(n)?(a.exceptions=n.exceptions,a.properties=n.properties,a.measurements=n.measurements,n.severityLevel&&(a.severityLevel=n.severityLevel),n.id&&(a.id=n.id),n.problemGroup&&(a.problemGroup=n.problemGroup),a.ver=2,Q(n.isManual)||(a.isManual=n.isManual)):(a.exceptions=[new Ir(e,n,t=t||{})],a.properties=bt(e,t),a.measurements=Nt(e,r),i&&(a.severityLevel=i),o&&(a.id=o)),a}var yr,Ir=(v(Cr,yr=l),Cr.prototype.toInterface=function(){var e=this.parsedStack instanceof Array&&pe(this.parsedStack,function(e){return e.toInterface()});return{id:this.id,outerId:this.outerId,typeName:this.typeName,message:this.message,hasFullStack:this.hasFullStack,stack:this[rr],parsedStack:e||undefined}},Cr.CreateFromInterface=function(e,n){var t=n.parsedStack instanceof Array&&pe(n.parsedStack,function(e){return xr.CreateFromInterface(e)})||n.parsedStack;return new Cr(e,h(h({},n),{parsedStack:t}))},Cr);function Cr(e,n,t){var r,l,i,o,a=yr.call(this)||this;return a.aiDataContract={id:0,outerId:0,typeName:1,message:1,hasFullStack:0,stack:0,parsedStack:2},function(e){try{if(ee(e))return"hasFullStack"in e&&"typeName"in e}catch(n){}}(n)?(a.typeName=n.typeName,a.message=n.message,a[rr]=n[rr],a.parsedStack=n.parsedStack,a.hasFullStack=n.hasFullStack):(l=(r=n)&&r.evt,se(r)||(r=r[tr]||l||r),a.typeName=xt(e,gr(r))||kt,a.message=wt(e,lr(n||r,a.typeName))||kt,l=n[ir]||dr(n),a.parsedStack=function(e){if((e=l.obj)&&0<e.length){var n=[],t=0,r=0;if(de(e,function(e){e=e.toString(),xr.regex.test(e)&&(e=new xr(e,t++),r+=e.sizeInBytes,n.push(e))}),32768<r)for(var i=0,o=n.length-1,a=0,s=i,u=o;i<o;){if(32768<(a+=n[i].sizeInBytes+n[o].sizeInBytes)){n.splice(s,u-s+1);break}s=i,u=o,i++,o--}}return n}(),a[rr]=(r=e,o="",(e=l)&&(e.obj?de(e.obj,function(e){o+=e+"\n"}):o=e.src||""),!(l=o)||32768<(e=""+l).length&&(i=e.substring(0,32768),r&&r.throwInternal(M.WARNING,G.ExceptionTruncated,"exception is too long, it has been truncated to 32768 characters.",{exception:l},!0)),i||l),a.hasFullStack=ae(a.parsedStack)&&0<a.parsedStack.length,t&&(t.typeName=t.typeName||a.typeName)),a}var Sr,xr=(v(Tr,Sr=nr),Tr.CreateFromInterface=function(e){return new Tr(e,null)},Tr.prototype.toInterface=function(){return{level:this.level,method:this.method,assembly:this.assembly,fileName:this.fileName,line:this.line}},Tr.regex=/^([\s]+at)?[\s]{0,50}([^\@\()]+?)[\s]{0,50}(\@|\()([^\(\n]+):([0-9]+):([0-9]+)(\)?)$/,Tr.baseSize=58,Tr);function Tr(e,n){var t,r=Sr.call(this)||this;return r.sizeInBytes=0,r.aiDataContract={level:1,method:1,assembly:0,fileName:0,line:0},"string"==typeof e?(t=e,r.level=n,r.method="<no_method>",r.assembly=he(t),r.fileName="",r.line=0,(t=t.match(Tr.regex))&&5<=t.length&&(r.method=he(t[2])||r.method,r.fileName=he(t[4]),r.line=parseInt(t[5])||0)):(r.level=e.level,r.method=e.method,r.assembly=e.assembly,r.fileName=e.fileName,r.line=e.line,r.sizeInBytes=0),r.sizeInBytes+=r.method.length,r.sizeInBytes+=r.fileName.length,r.sizeInBytes+=r.assembly.length,r.sizeInBytes+=Tr.baseSize,r.sizeInBytes+=r.level.toString().length,r.sizeInBytes+=r.line.toString().length,r}var wr,br=function(){this.ver=2,this.metrics=[],this.properties={},this.measurements={}};(ti=wr={})[ti.Measurement=0]="Measurement",ti[ti.Aggregation=1]="Aggregation";var Nr,_r=(v(Rr,Nr=function(){this.kind=wr.Measurement}),Rr);function Rr(){var e=null!==Nr&&Nr.apply(this,arguments)||this;return e.aiDataContract={name:1,kind:0,value:1,count:0,min:0,max:0,stdDev:0},e}var Ar,Lr=(v(Er,Ar=br),Er.envelopeType="Microsoft.ApplicationInsights.{0}.Metric",Er.dataType="MetricData",Er);function Er(e,n,t,r,i,o,a,s,u){var l=Ar.call(this)||this;l.aiDataContract={ver:1,metrics:1,properties:0};var c=new _r;return c.count=0<r?r:undefined,c.max=isNaN(o)||null===o?undefined:o,c.min=isNaN(i)||null===i?undefined:i,c.name=xt(e,n)||kt,c.value=t,c.stdDev=isNaN(a)||null===a?undefined:a,l.metrics=[c],l.properties=bt(e,s),l.measurements=Nt(e,u),l}var Fr,Mr=(v(kr,Fr=ri),kr);function kr(){var e=Fr.call(this)||this;return e.ver=2,e.properties={},e.measurements={},e}var Dr,Pr=(v(Br,Dr=Mr),Br.envelopeType="Microsoft.ApplicationInsights.{0}.Pageview",Br.dataType="PageviewData",Br);function Br(e,n,t,r,i,o,a){var s=Dr.call(this)||this;return s.aiDataContract={ver:1,name:0,url:0,duration:0,properties:0,measurements:0,id:0},s.id=a&&_t(e,a,128,G.IdTooLong).toString(),s.url=Tt(e,t),s.name=xt(e,n)||kt,isNaN(r)||(s.duration=Rt(r)),s.properties=bt(e,i),s.measurements=Nt(e,o),s}var Ur,Or=(v(zr,Ur=function(){this.ver=2,this.success=!0,this.properties={},this.measurements={}}),zr.envelopeType="Microsoft.ApplicationInsights.{0}.RemoteDependency",zr.dataType="RemoteDependencyData",zr);function zr(e,n,t,r,i,o,a,s,u,l,c,f){void 0===u&&(u="Ajax");var d=Ur.call(this)||this;d.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},d.id=n,d.duration=Rt(i),d.success=o,d.resultCode=a+"",d.type=xt(e,u);var g,p,h,m,v,y,I,C,S,x,a=(g=e,n=s,a=o=i=r,o=(u=t)&&0<u.length?(p=u,x=(S=qt)[C=Kt],jt.createElement?S[C]||(x=S[C]=jt.createElement("a")):x={host:(y=!0,I=null,!(v=h=p)||null!=(v=v.match(/(\w*):\/\/(.[^/:]+)(\:[\d]+)?/i))&&2<v.length&&ue(v[2])&&0<v[2].length&&(I=v[2]||"",y&&2<v.length&&(y=(v[1]||"").toLowerCase(),v=v[3]||"",I+=v="http"==y&&":80"===v||"https"==y&&":443"===v?"":v)),(h=I||"")&&null!=(m=h.match(/(www[0-9]?\.)?(.[^/:]+)(\:[\d]+)?/i))&&3<m.length&&ue(m[2])&&0<m[2].length?m[2]+(m[3]||""):h)},x.href=p,++C>=S.length&&(C=0),Kt=C,x=(s=x).host,o||(null!=s.pathname?("/"!=((t=0===s.pathname.length?"/":s.pathname)[0]||"")&&(t="/"+t),a=s.pathname,xt(g,n?n+" "+t:t)):xt(g,u))):x=i,{target:x,name:o,data:a});return d.data=Tt(e,r)||a.data,d.target=xt(e,a.target),l&&(d.target="".concat(d.target," | ").concat(l)),d.name=xt(e,a.name),d.properties=bt(e,c),d.measurements=Nt(e,f),d}var jr,Kr=(v(qr,jr=function(){this.ver=2,this.properties={},this.measurements={}}),qr.envelopeType="Microsoft.ApplicationInsights.{0}.Message",qr.dataType="MessageData",qr);function qr(e,n,t,r,i){var o=jr.call(this)||this;return o.aiDataContract={ver:1,message:1,severityLevel:0,properties:0},o.message=wt(e,n=n||kt),o.properties=bt(e,r),o.measurements=Nt(e,i),t&&(o.severityLevel=t),o}var Vr,Wr=(v(Gr,Vr=Mr),Gr);function Gr(){var e=Vr.call(this)||this;return e.ver=2,e.properties={},e.measurements={},e}var Hr,Xr=(v(Yr,Hr=Wr),Yr.envelopeType="Microsoft.ApplicationInsights.{0}.PageviewPerformance",Yr.dataType="PageviewPerformanceData",Yr);function Yr(e,n,t,r,i,o,a){var s=Hr.call(this)||this;return s.aiDataContract={ver:1,name:0,url:0,duration:0,perfTotal:0,networkConnect:0,sentRequest:0,receivedResponse:0,domProcessing:0,properties:0,measurements:0},s.url=Tt(e,t),s.name=xt(e,n)||kt,s.properties=bt(e,i),s.measurements=Nt(e,o),a&&(s.domProcessing=a.domProcessing,s.duration=a.duration,s.networkConnect=a.networkConnect,s.perfTotal=a.perfTotal,s.receivedResponse=a.receivedResponse,s.sentRequest=a.sentRequest),s}var Jr,Zr=(v(Qr,Jr=Ht),Qr);function Qr(e,n){var t=Jr.call(this)||this;return t.aiDataContract={baseType:1,baseData:1},t.baseType=e,t.baseData=n,t}function $r(e){var n="ai."+e+".";return function(e){return n+e}}e.SeverityLevel=void 0,(l=e.SeverityLevel||(e.SeverityLevel={}))[l.Verbose=0]="Verbose",l[l.Information=1]="Information",l[l.Warning=2]="Warning",l[l.Error=3]="Error",l[l.Critical=4]="Critical";var ei,ni,nr=$r("application"),ti=$r("device"),br=$r("location"),ri=$r("operation"),Mr=$r("session"),Wr=$r("user"),Ht=$r("cloud"),l=$r("internal"),ii=(ni={applicationVersion:nr("ver"),applicationBuild:nr("build"),applicationTypeId:nr("typeId"),applicationId:nr("applicationId"),applicationLayer:nr("layer"),deviceId:ti("id"),deviceIp:ti("ip"),deviceLanguage:ti("language"),deviceLocale:ti("locale"),deviceModel:ti("model"),deviceFriendlyName:ti("friendlyName"),deviceNetwork:ti("network"),deviceNetworkName:ti("networkName"),deviceOEMName:ti("oemName"),deviceOS:ti("os"),deviceOSVersion:ti("osVersion"),deviceRoleInstance:ti("roleInstance"),deviceRoleName:ti("roleName"),deviceScreenResolution:ti("screenResolution"),deviceType:ti("type"),deviceMachineName:ti("machineName"),deviceVMName:ti("vmName"),deviceBrowser:ti("browser"),deviceBrowserVersion:ti("browserVersion"),locationIp:br("ip"),locationCountry:br("country"),locationProvince:br("province"),locationCity:br("city"),operationId:ri("id"),operationName:ri("name"),operationParentId:ri("parentId"),operationRootId:ri("rootId"),operationSyntheticSource:ri("syntheticSource"),operationCorrelationVector:ri("correlationVector"),sessionId:Mr("id"),sessionIsFirst:Mr("isFirst"),sessionIsNew:Mr("isNew"),userAccountAcquisitionDate:Wr("accountAcquisitionDate"),userAccountId:Wr("accountId"),userAgent:Wr("userAgent"),userId:Wr("id"),userStoreRegion:Wr("storeRegion"),userAuthUserId:Wr("authUserId"),userAnonymousUserAcquisitionDate:Wr("anonUserAcquisitionDate"),userAuthenticatedUserAcquisitionDate:Wr("authUserAcquisitionDate"),cloudName:Ht("name"),cloudRole:Ht("role"),cloudRoleVer:Ht("roleVer"),cloudRoleInstance:Ht("roleInstance"),cloudEnvironment:Ht("environment"),cloudLocation:Ht("location"),cloudDeploymentUnit:Ht("deploymentUnit"),internalNodeName:l("nodeName"),internalSdkVersion:l("sdkVersion"),internalAgentVersion:l("agentVersion"),internalSnippet:l("snippet"),internalSdkSrc:l("sdkSrc")},v(oi,ei=function(){var t=this;re(ni,function(e,n){t[e]=n})}),oi);function oi(){return ei.call(this)||this}var ai,si=new ii,ui=(v(li,ai=l=function Vi(t,r){var i=[],o=!1;this._get=function(){return i},this._set=function(e){return i=e},W(Vi,this,function(n){n.enqueue=function(e){n.count()>=r.eventsLimitInMem()?o||(t.throwInternal(M.WARNING,G.InMemoryStorageBufferFull,"Maximum in-memory buffer size reached: "+n.count(),!0),o=!0):i.push(e)},n.count=function(){return i.length},n.size=function(){for(var e=i.length,n=0;n<i.length;n++)e+=i[n].length;return r.emitLineDelimitedJson()||(e+=2),e},n.clear=function(){o=!(i=[])},n.getItems=function(){return i.slice(0)},n.batchPayloads=function(e){return e&&0<e.length?r.emitLineDelimitedJson()?e.join("\n"):"["+e.join(",")+"]":null}})}),li);function li(e,n){return W(li,n=ai.call(this,e,n)||this,function(e,n){e.markAsSent=function(e){n.clear()},e.clearSent=function(e){}}),n}var ci,fi=(v(di,ci=l),di.BUFFER_KEY="AI_buffer",di.SENT_BUFFER_KEY="AI_sentBuffer",di.MAX_BUFFER_SIZE=2e3,di);function di(s,u){var e=ci.call(this,s,u)||this,l=!1;return W(di,e,function(t,n){var e=o(di.BUFFER_KEY),r=o(di.SENT_BUFFER_KEY);function i(n,e){var t=[];return de(e,function(e){ne(e)||-1!==ge(n,e)||t.push(e)}),t}function o(e){try{var e=u.namePrefix&&u.namePrefix()?u.namePrefix()+"_"+e:e,n=Ot(s,e);if(n){var t=Xe().parse(n);if((t=ue(t)?Xe().parse(t):t)&&ae(t))return t}}catch(r){s.throwInternal(M.CRITICAL,G.FailedToRestoreStorageBuffer," storage key: "+e+", "+Se(r),{exception:Je(r)})}return[]}function a(e,n){try{var e=u.namePrefix&&u.namePrefix()?u.namePrefix()+"_"+e:e,t=JSON.stringify(n);zt(s,e,t)}catch(r){zt(s,e,JSON.stringify([])),s.throwInternal(M.WARNING,G.FailedToSetStorageBuffer," storage key: "+e+", "+Se(r)+". Buffer cleared",{exception:Je(r)})}}(e=t._set(e.concat(r))).length>di.MAX_BUFFER_SIZE&&(e.length=di.MAX_BUFFER_SIZE),a(di.SENT_BUFFER_KEY,[]),a(di.BUFFER_KEY,e),t.enqueue=function(e){t.count()>=di.MAX_BUFFER_SIZE?l||(s.throwInternal(M.WARNING,G.SessionStorageBufferFull,"Maximum buffer size reached: "+t.count(),!0),l=!0):(n.enqueue(e),a(di.BUFFER_KEY,t._get()))},t.clear=function(){n.clear(),a(di.BUFFER_KEY,t._get()),a(di.SENT_BUFFER_KEY,[]),l=!1},t.markAsSent=function(e){a(di.BUFFER_KEY,t._set(i(e,t._get())));var n=o(di.SENT_BUFFER_KEY);n instanceof Array&&e instanceof Array&&((n=n.concat(e)).length>di.MAX_BUFFER_SIZE&&(s.throwInternal(M.CRITICAL,G.SessionStorageBufferFull,"Sent buffer reached its maximum size: "+n.length,!0),n.length=di.MAX_BUFFER_SIZE),a(di.SENT_BUFFER_KEY,n))},t.clearSent=function(e){e=i(e,e=o(di.SENT_BUFFER_KEY)),a(di.SENT_BUFFER_KEY,e)}}),e}var gi="baseType",pi="baseData",hi="properties",mi="true";function vi(e,n,t){return xe(e,n,t,we)}function yi(e,t,r){Q(e)||re(e,function(e,n){le(n)?r[e]=n:ue(n)?t[e]=n:He()&&(t[e]=Xe().stringify(n))})}function Ii(t,r){Q(t)||re(t,function(e,n){t[e]=n||r})}function Ci(e,n,t,r){return vi(r=new Jt(e,r,n),"sampleRate",t[Et]),(t[pi]||{}).startTime&&(r.time=fe(t[pi].startTime)),r.iKey=t.iKey,n=t.iKey.replace(/-/g,""),r.name=r.name.replace("{0}",n),function(e,n,t){var r=t.tags=t.tags||{},i=n.ext=n.ext||{},o=n.tags=n.tags||[],a=i.user;a&&(vi(r,si.userAuthUserId,a.authId),vi(r,si.userId,a.id||a.localId)),(a=i.app)&&vi(r,si.sessionId,a.sesId),(a=i.device)&&(vi(r,si.deviceId,a.id||a.localId),vi(r,si.deviceType,a.deviceClass),vi(r,si.deviceIp,a.ip),vi(r,si.deviceModel,a.model),vi(r,si.deviceType,a.deviceType)),(a=n.ext.web)&&(vi(r,si.deviceLanguage,a.browserLang),vi(r,si.deviceBrowserVersion,a.browserVer),vi(r,si.deviceBrowser,a.browser),vi(n=(n=(n=t.data=t.data||{})[pi]=n[pi]||{})[hi]=n[hi]||{},"domain",a.domain),vi(n,"isManual",a.isManual?mi:null),vi(n,"screenRes",a.screenRes),vi(n,"userConsent",a.userConsent?mi:null)),(a=i.os)&&vi(r,si.deviceOS,a.name),(i=i.trace)&&(vi(r,si.operationParentId,i.parentID),vi(r,si.operationName,xt(e,i.name)),vi(r,si.operationId,i.traceID));for(var s={},u=o.length-1;0<=u;u--)re(o[u],function(e,n){s[e]=n}),o.splice(u,1);re(o,function(e,n){s[e]=n}),(r=h(h({},r),s))[si.internalSdkVersion]||(r[si.internalSdkVersion]="javascript:".concat(xi.Version)),t.tags=Ne(r)}(e,t,r),t.tags=t.tags||[],Ne(r)}function Si(e,n){Q(n[pi])&&e.throwInternal(M.CRITICAL,G.TelemetryEnvelopeInvalid,"telemetryItem.baseData cannot be null.")}var xi={Version:"2.7.2-nightly.2111-15"};function Ti(e,n,t){Si(e,n);var r={},i={};return n[gi]!==$t.dataType&&(r.baseTypeSource=n[gi]),n[gi]===$t.dataType?(r=n[pi][hi]||{},i=n[pi].measurements||{}):n[pi]&&yi(n[pi],r,i),yi(n.data,r,i),Q(t)||Ii(r,t),t=n[pi].name,i=new $t(e,t,r,i),i=new Zr($t.dataType,i),Ci(e,$t.envelopeType,n,i)}var wi=function Wi(f){W(Wi,this,function(e){function l(a,s){var e="__aiCircularRefCheck",u={};if(!a)return f.throwInternal(M.CRITICAL,G.CannotSerializeObject,"cannot serialize object because it is null or undefined",{name:s},!0),u;if(a[e])return f.throwInternal(M.WARNING,G.CircularReferenceDetected,"Circular reference detected while serializing object",{name:s},!0),u;if(a.aiDataContract)return a[e]=!0,re(a.aiDataContract,function(e,n){var t=ne(n)?1&n():1&n,r=ne(n)?4&n():4&n,i=2&n,o=a[e]!==undefined,n=ee(a[e])&&null!==a[e];!t||o||i?r||(r=void 0,(r=n?(i?c:l)(a[e],e):a[e])!==undefined&&(u[e]=r)):f.throwInternal(M.CRITICAL,G.MissingRequiredFieldSpecification,"Missing required field specification. The field is required but not present on source",{field:e,name:s})}),delete a[e],u;if("measurements"===s)u=t(a,"number",s);else if("properties"===s)u=t(a,"string",s);else if("tags"===s)u=t(a,"string",s);else if(ae(a))u=c(a,s);else{f.throwInternal(M.WARNING,G.CannotSerializeObjectNonSerializable,"Attempting to serialize an object which does not implement ISerializable",{name:s},!0);try{Xe().stringify(a),u=a}catch(n){f.throwInternal(M.CRITICAL,G.CannotSerializeObject,n&&ne(n.toString)?n.toString():"Error serializing object",null,!0)}}return u}function c(e,n){if(e)if(ae(e))for(var t=[],r=0;r<e.length;r++){var i=l(e[r],n+"["+r+"]");t.push(i)}else f.throwInternal(M.CRITICAL,G.ItemNotInArray,"This field was specified as an array in the contract but the item is not an array.\r\n",{name:n},!0);return t}function t(e,t,r){var i;return e&&(i={},re(e,function(e,n){"string"===t?n===undefined?i[e]="undefined":null===n?i[e]="null":n.toString?i[e]=n.toString():i[e]="invalid field: toString() is not defined.":"number"===t?n===undefined?i[e]="undefined":i[e]=null===n?"null":isNaN(n=parseFloat(n))?"NaN":n:(i[e]="invalid field: "+r+" is of unknown type.",f.throwInternal(M.CRITICAL,i[e],null,!0))})),i}e.serialize=function(e){e=l(e,"root");try{return Xe().stringify(e)}catch(n){f.throwInternal(M.CRITICAL,G.CannotSerializeObject,n&&ne(n.toString)?n.toString():"Error serializing object",null,!0)}}})};function bi(){var a=qe(),s=Ve(),u=!1,l=!0;W(bi,this,function(e){try{var n,t;a&&te(a,"online",r)&&(te(a,"offline",i),u=!0),s&&(Z((n=s.body||s).ononline)||(n.ononline=r,n.onoffline=i,u=!0)),!u||(t=Ge())&&!Q(t.onLine)&&(l=t.onLine)}catch(o){u=!1}function r(){l=!0}function i(){l=!1}e.isListening=u,e.isOnline=function(){var e=!0,n=Ge();return u?e=l:n&&!Q(n.onLine)&&(e=n.onLine),e},e.isOffline=function(){return!e.isOnline()}})}var Ni=bi.Offline=new bi,_i=(Ri.prototype.getHashCodeScore=function(e){return this.getHashCode(e)/Ri.INT_MAX_VALUE*100},Ri.prototype.getHashCode=function(e){if(""===e)return 0;for(;e.length<8;)e=e.concat(e);for(var n=5381,t=0;t<e.length;++t)n=(n<<5)+n+e.charCodeAt(t),n&=n;return Math.abs(n)},Ri.INT_MAX_VALUE=2147483647,Ri);function Ri(){}var Ai=function(){var n=new _i,t=new ii;this.getSamplingScore=function(e){return e.tags&&e.tags[t.userId]?n.getHashCodeScore(e.tags[t.userId]):e.ext&&e.ext.user&&e.ext.user.id?n.getHashCodeScore(e.ext.user.id):e.tags&&e.tags[t.operationId]?n.getHashCodeScore(e.tags[t.operationId]):e.ext&&e.ext.telemetryTrace&&e.ext.telemetryTrace.traceID?n.getHashCodeScore(e.ext.telemetryTrace.traceID):100*Math.random()}},Li=(Ei.prototype.isSampledIn=function(e){var n=this.sampleRate;return null===n||n===undefined||100<=n||e.baseType===Lr.dataType||this.samplingScoreGenerator.getSamplingScore(e)<n},Ei);function Ei(e,n){this.INT_MAX_VALUE=2147483647,n=n||cn(null),(100<e||e<0)&&(n.throwInternal(M.WARNING,G.SampleRateOutOfRange,"Sampling rate is out of range (0..100). Sampling will be disabled, you may be sending too much data which may affect your AI service level.",{samplingRate:e},!0),e=100),this.sampleRate=e,this.samplingScoreGenerator=new Ai}function Fi(e){try{return e.responseText}catch(n){}return null}function Mi(){return{endpointUrl:function(){return"https://dc.services.visualstudio.com/v2/track"},emitLineDelimitedJson:function(){return!1},maxBatchInterval:function(){return 15e3},maxBatchSizeInBytes:function(){return 102400},disableTelemetry:function(){return!1},enableSessionStorageBuffer:function(){return!0},isRetryDisabled:function(){return!1},isBeaconApiDisabled:function(){return!0},disableXhr:function(){return!1},onunloadDisableFetch:function(){return!1},onunloadDisableBeacon:function(){return!1},instrumentationKey:function(){return undefined},namePrefix:function(){return undefined},samplingPercentage:function(){return 100},customHeaders:function(){return undefined},convertUndefined:function(){return undefined},eventsLimitInMem:function(){return 1e4}}}var ki,Di=((l={})[$t.dataType]=Ti,l[Kr.dataType]=function(e,n,t){Si(e,n);var r=n[pi].message,i=n[pi].severityLevel,o=n[pi][hi]||{},a=n[pi].measurements||{};return yi(n.data,o,a),Q(t)||Ii(o,t),a=new Kr(e,r,i,o,a),a=new Zr(Kr.dataType,a),Ci(e,Kr.envelopeType,n,a)},l[Pr.dataType]=function(e,n,t){Si(e,n);var r,i="duration";Q(s=n[pi])||Q(s[hi])||Q(s[hi][i])?Q(n.data)||Q(n.data[i])||(r=n.data[i],delete n.data[i]):(r=s[hi][i],delete s[hi][i]);var o=n[pi];((n.ext||{}).trace||{}).traceID&&(l=n.ext.trace.traceID);var a=o.id||l,i=o.name,s=o.uri,u=o[hi]||{},l=o.measurements||{};return Q(o.refUri)||(u.refUri=o.refUri),Q(o.pageType)||(u.pageType=o.pageType),Q(o.isLoggedIn)||(u.isLoggedIn=o.isLoggedIn.toString()),Q(o[hi])||re(o[hi],function(e,n){u[e]=n}),yi(n.data,u,l),Q(t)||Ii(u,t),a=new Pr(e,i,s,r,u,l,a),a=new Zr(Pr.dataType,a),Ci(e,Pr.envelopeType,n,a)},l[Xr.dataType]=function(e,n,t){Si(e,n);var r=n[pi],i=r.name,o=r.uri||r.url,a=r[hi]||{},s=r.measurements||{};return yi(n.data,a,s),Q(t)||Ii(a,t),r=new Xr(e,i,o,undefined,a,s,r),r=new Zr(Xr.dataType,r),Ci(e,Xr.envelopeType,n,r)},l[mr.dataType]=function(e,n,t){Si(e,n);var r=n[pi].measurements||{},i=n[pi][hi]||{};return yi(n.data,i,r),Q(t)||Ii(i,t),t=n[pi],r=mr.CreateFromInterface(e,t,i,r),r=new Zr(mr.dataType,r),Ci(e,mr.envelopeType,n,r)},l[Lr.dataType]=function(e,n,t){Si(e,n);var r=n[pi],i=r[hi]||{},o=r.measurements||{};return yi(n.data,i,o),Q(t)||Ii(i,t),o=new Lr(e,r.name,r.average,r.sampleCount,r.min,r.max,i,o),o=new Zr(Lr.dataType,o),Ci(e,Lr.envelopeType,n,o)},l[Or.dataType]=function(e,n,t){Si(e,n);var r=n[pi].measurements||{},i=n[pi][hi]||{};yi(n.data,i,r),Q(t)||Ii(i,t);var o=n[pi];return Q(o)?(e.warnToConsole("Invalid input for dependency data"),null):(t=o[hi]&&o[hi][Mt]?o[hi][Mt]:"GET",r=new Or(e,o.id,o.target,o.name,o.duration,o.success,o.responseCode,t,o.type,o.correlationContext,i,r),r=new Zr(Or.dataType,r),Ci(e,Or.envelopeType,n,r))},l),Pi=(v(Bi,ki=xn),Bi.constructEnvelope=function(e,n,t,r){return n=n===e.iKey||Q(n)?e:h(h({},e),{iKey:n}),(Di[n.baseType]||Ti)(t,n,r)},Bi);function Bi(){var T,w,b=ki.call(this)||this;b.priority=1001;var t,N,_,R,A,L=!(b.identifier="AppInsightsChannelPlugin"),E={},F=0;return b._senderConfig=Mi(),W(Bi,b,function(l,a){function u(e,n,t,r,i,o){var a=null;l._appId||(a=p(o))&&a.appId&&(l._appId=a.appId),(e<200||300<=e)&&0!==e?(301!==e&&307!==e&&308!==e||s(t))&&!l._senderConfig.isRetryDisabled()&&y(e)?(h(n),l.diagLog().throwInternal(M.WARNING,G.TransmissionFailed,". Response code "+e+". Will retry to send "+n.length+" items.")):l._onError(n,i):Ni.isOffline()?l._senderConfig.isRetryDisabled()||(h(n,10),l.diagLog().throwInternal(M.WARNING,G.TransmissionFailed,". Offline - Response Code: ".concat(e,". Offline status: ").concat(Ni.isOffline(),". Will retry to send ").concat(n.length," items."))):(s(t),206===e?(a=a||p(o))&&!l._senderConfig.isRetryDisabled()?l._onPartialSuccess(n,a):l._onError(n,i):(T=0,l._onSuccess(n,r)))}function s(e){return!(10<=_)&&!Q(e)&&""!==e&&e!==l._senderConfig.endpointUrl()&&(l._senderConfig.endpointUrl=function(){return e},++_,1)}function n(e,n){A?A(e,!1):c(e)}function o(e){var n=Ge(),t=l._buffer,r=l._senderConfig.endpointUrl(),i=l._buffer.batchPayloads(e),i=new Blob([i],{type:"text/plain;charset=UTF-8"});return(n=n.sendBeacon(r,i))&&(t.markAsSent(e),l._onSuccess(e,e.length)),n}function c(e,n){if(ae(e)&&0<e.length&&!o(e)){for(var t=[],r=0;r<e.length;r++){var i=e[r];o([i])||t.push(i)}0<t.length&&(R(t,!0),l.diagLog().throwInternal(M.WARNING,G.TransmissionFailed,". Failed to send telemetry with Beacon API, retried with normal sender."))}}function f(n,e){var t=new XMLHttpRequest,r=l._senderConfig.endpointUrl();try{t[Lt]=!0}catch(i){}t.open("POST",r,e),t.setRequestHeader("Content-type","application/json"),Wt(r)&&t.setRequestHeader("Sdk-Context","appId"),de(ye(E),function(e){t.setRequestHeader(e,E[e])}),t.onreadystatechange=function(){return l._xhrReadyStateChange(t,n,n.length)},t.onerror=function(e){return l._onError(n,I(t),e)},r=l._buffer.batchPayloads(n),t.send(r),l._buffer.markAsSent(n)}function d(e,n){if(ae(e)){for(var t=e.length,r=0;r<e.length;r++)t+=e[r].length;F+t<=65e3?i(e,!1):Ze()?c(e):(R&&R(e,!0),l.diagLog().throwInternal(M.WARNING,G.TransmissionFailed,". Failed to send telemetry with Beacon API, retried with xhrSender."))}}function g(e,n){i(e,!0)}function i(t,r){var e=l._senderConfig.endpointUrl(),n=l._buffer.batchPayloads(t),i=new Blob([n],{type:"application/json"}),o=new Headers,a=n.length;Wt(e)&&o.append("Sdk-Context","appId"),de(ye(E),function(e){o.append(e,E[e])}),(i={method:"POST",headers:o,body:i})[Lt]=!0,r||(i.keepalive=!0,F+=a),i=new Request(e,i);try{i[Lt]=!0}catch(s){}fetch(i).then(function(n){r||(F-=a,a=0),n.ok?n.text().then(function(e){u(n.status,t,n.url,t.length,n.statusText,e)}):l._onError(t,n.statusText)})["catch"](function(e){r||(F-=a,a=0),l._onError(t,e.message)}),l._buffer.markAsSent(t)}function p(e){try{if(e&&""!==e){var n=Xe().parse(e);if(n&&n.itemsReceived&&n.itemsReceived>=n.itemsAccepted&&n.itemsReceived-n.itemsAccepted===n.errors.length)return n}}catch(t){l.diagLog().throwInternal(M.CRITICAL,G.InvalidBackendResponse,"Cannot parse the response. "+Se(t),{response:e})}return null}function h(e,n){if(void 0===n&&(n=1),e&&0!==e.length){var t=l._buffer;t.clearSent(e),T++;for(var r=0,i=e;r<i.length;r++){var o=i[r];t.enqueue(o)}a=T<=1?10:(a=1+Math.floor((Math.pow(2,T)-1)/2*Math.random()*10),Math.max(Math.min(a*=n,3600),10)),a=Ce()+1e3*a,w=a,m()}var a}function m(){var e;t||L||(e=w?Math.max(0,w-Ce()):0,e=Math.max(l._senderConfig.maxBatchInterval(),e),t=setTimeout(function(){t=null,l.triggerSend(!0,null,1)},e))}function v(){clearTimeout(t),w=t=null}function y(e){return 408===e||429===e||500===e||503===e}function I(e,n){return e?"XMLHttpRequest,Status:"+e.status+",Response:"+Fi(e)||e.response||"":n}function C(n,e){var t=l._buffer,r=qe(),i=new XDomainRequest;if(i.onload=function(){return l._xdrOnLoad(i,n)},i.onerror=function(e){return l._onError(n,S(i),e)},r=r&&r.location&&r.location.protocol||"",l._senderConfig.endpointUrl().lastIndexOf(r,0))return l.diagLog().throwInternal(M.WARNING,G.TransmissionFailed,". Cannot send XDomain request. The endpoint URL protocol doesn't match the hosting page protocol."),void t.clear();r=l._senderConfig.endpointUrl().replace(/^(https?:)/,""),i.open("POST",r),r=t.batchPayloads(n),i.send(r),t.markAsSent(n)}function S(e,n){return e?"XDomainRequest,Response:"+Fi(e)||"":n}function x(e,n){var t=l.core[t="getNotifyMgr"]?l.core[t]():l.core._notificationManager;if(t&&t.eventsSendRequest)try{t.eventsSendRequest(e,n)}catch(r){l.diagLog().throwInternal(M.CRITICAL,G.NotificationException,"send request notification failed: "+Se(r),{exception:Je(r)})}}l.pause=function(){v(),L=!0},l.resume=function(){L&&(L=!1,w=null,l._buffer.size()>l._senderConfig.maxBatchSizeInBytes()&&l.triggerSend(!0,null,10),m())},l.flush=function(){if(!L){v();try{l.triggerSend(!0,null,1)}catch(e){l.diagLog().throwInternal(M.CRITICAL,G.FlushFailed,"flush failed, telemetry will not be collected: "+Se(e),{exception:Je(e)})}}},l.onunloadFlush=function(){if(!L)if(!1!==l._senderConfig.onunloadDisableBeacon()&&!1!==l._senderConfig.isBeaconApiDisabled()||!Ze())l.flush();else try{l.triggerSend(!0,n,2)}catch(e){l.diagLog().throwInternal(M.CRITICAL,G.FailedToSendQueuedTelemetry,"failed to flush with beacon sender on page unload, telemetry will not be collected: "+Se(e),{exception:Je(e)})}},l.teardown=function(){be("Method not implemented.")},l.addHeader=function(e,n){E[e]=n},l.initialize=function(e,n,t,r){a.initialize(e,n,t,r);var i=l._getTelCtx(),o=l.identifier;N=new wi(n.logger),w=null,T=0,l._sender=null,_=0,n=l.diagLog(),re(Mi(),function(e,n){l._senderConfig[e]=function(){return i.getConfig(o,e,n())}}),l._buffer=new(l._senderConfig.enableSessionStorageBuffer()&&Ut()?fi:ui)(n,l._senderConfig),l._sample=new Li(l._senderConfig.samplingPercentage(),n),!Q((r=e).disableInstrumentationKeyValidation)&&r.disableInstrumentationKeyValidation||/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/.test(r.instrumentationKey)||n.throwInternal(M.CRITICAL,G.InvalidInstrumentationKey,"Invalid Instrumentation key "+e.instrumentationKey),!Wt(l._senderConfig.endpointUrl())&&l._senderConfig.customHeaders()&&0<l._senderConfig.customHeaders().length&&de(l._senderConfig.customHeaders(),function(e){b.addHeader(e.header,e.value)}),n=null,!(e=l._senderConfig).disableXhr()&&$e()?n=C:!e.disableXhr()&&en()&&(n=f),!n&&Qe()&&(n=g),R=n||f,!e.isBeaconApiDisabled()&&Ze()&&(n=c),l._sender=n||f,A=!e.onunloadDisableFetch()&&Qe(!0)?d:Ze()?c:!e.disableXhr()&&$e()?C:!e.disableXhr()&&en()?f:R},l.processTelemetry=function(e,t){t=l._getTelCtx(t);try{if(l._senderConfig.disableTelemetry())return;if(!e)return void t.diagLog().throwInternal(M.CRITICAL,G.CannotSendEmptyTelemetry,"Cannot send empty telemetry");if(e.baseData&&!e.baseType)return void t.diagLog().throwInternal(M.CRITICAL,G.InvalidEvent,"Cannot send telemetry without baseData and baseType");if(e.baseType||(e.baseType="EventData"),!l._sender)return void t.diagLog().throwInternal(M.CRITICAL,G.SenderNotInitialized,"Sender was not initialized");if(!l._sample.isSampledIn(e))return void t.diagLog().throwInternal(M.WARNING,G.TelemetrySampledAndNotSent,"Telemetry item was sampled out and not sent",{SampleRate:l._sample.sampleRate});e[Et]=l._sample.sampleRate;var n=l._senderConfig.convertUndefined()||undefined,r=e.iKey||l._senderConfig.instrumentationKey(),i=Bi.constructEnvelope(e,r,t.diagLog(),n);if(!i)return void t.diagLog().throwInternal(M.CRITICAL,G.CreateEnvelopeError,"Unable to create an AppInsights envelope");var o=!1;if(e.tags&&e.tags[Ft]&&(de(e.tags[Ft],function(e){try{e&&!1===e(i)&&(o=!0,t.diagLog().warnToConsole("Telemetry processor check returns false"))}catch(n){t.diagLog().throwInternal(M.CRITICAL,G.TelemetryInitializerFailed,"One of telemetry initializers failed, telemetry item will not be sent: "+Se(n),{exception:Je(n)},!0)}}),delete e.tags[Ft]),o)return;var a=N.serialize(i),s=l._buffer;s.size()+a.length>l._senderConfig.maxBatchSizeInBytes()&&l.triggerSend(!0,null,10),s.enqueue(a),m()}catch(u){t.diagLog().throwInternal(M.WARNING,G.FailedAddingTelemetryToBuffer,"Failed adding telemetry to the sender's buffer, some telemetry will be lost: "+Se(u),{exception:Je(u)})}l.processNext(e,t)},l._xhrReadyStateChange=function(e,n,t){4===e.readyState&&u(e.status,n,e.responseURL,t,I(e),Fi(e)||e.response)},l.triggerSend=function(e,n,t){if(void 0===e&&(e=!0),!L)try{var r=l._buffer;l._senderConfig.disableTelemetry()?r.clear():0<r.count()&&(o=r.getItems(),x(t||0,e),n?n.call(b,o,e):l._sender(o,e)),v()}catch(a){(!(e=ie(i=((i=(i=void 0===i?null:i)?i:(o=Ge()||{})?(o.userAgent||"").toLowerCase():"")||"").toLowerCase(),ke)?parseInt(i.split(ke)[1]):ie(i,De)&&(i=parseInt(i.split(De)[1]))?i+4:null)||9<e)&&l.diagLog().throwInternal(M.CRITICAL,G.TransmissionFailed,"Telemetry transmission failed, some telemetry will be lost: "+Se(a),{exception:Je(a)})}var i,o},l._onError=function(e,n,t){l.diagLog().throwInternal(M.WARNING,G.OnError,"Failed to send telemetry.",{message:n}),l._buffer.clearSent(e)},l._onPartialSuccess=function(e,n){for(var t=[],r=[],i=0,o=n.errors.reverse();i<o.length;i++){var a=o[i],s=e.splice(a.index,1)[0];(y(a.statusCode)?r:t).push(s)}0<e.length&&l._onSuccess(e,n.itemsAccepted),0<t.length&&l._onError(t,I(null,["partial success",n.itemsAccepted,"of",n.itemsReceived].join(" "))),0<r.length&&(h(r),l.diagLog().throwInternal(M.WARNING,G.TransmissionFailed,"Partial success. Delivered: "+e.length+", Failed: "+t.length+". Will retry to send "+r.length+" our of "+n.itemsReceived+" items"))},l._onSuccess=function(e,n){l._buffer.clearSent(e)},l._xdrOnLoad=function(e,n){var t=Fi(e);!e||t+""!="200"&&""!==t?(t=p(t))&&t.itemsReceived&&t.itemsReceived>t.itemsAccepted&&!l._senderConfig.isRetryDisabled()?l._onPartialSuccess(n,t):l._onError(n,S(e)):(T=0,l._onSuccess(n,0))}}),b}function Ui(e){(Q(e)||Q(e.instrumentationKey))&&be("Invalid input configuration"),this.config=e,this.getSKUDefaults(),this.initialize()}Ui.prototype.initialize=function(){this.core=new ot;var e=[],n=new Pi;e.push(n),this.core.initialize(this.config,e),n.initialize(this.config,this.core,e),this.pollInternalLogs()},Ui.prototype.track=function(e){this.core.track(e)},Ui.prototype.flush=function(n){void 0===n&&(n=!0),de(this.core.getTransmissionControls(),function(e){de(e,function(e){n?e.flush():e.triggerSend(n,null,1)})})},Ui.prototype.pollInternalLogs=function(){this.core.pollInternalLogs()},Ui.prototype.stopPollingInternalLogs=function(){this.core.stopPollingInternalLogs()},Ui.prototype.getSKUDefaults=function(){this.config.diagnosticLogInterval=this.config.diagnosticLogInterval&&0<this.config.diagnosticLogInterval?this.config.diagnosticLogInterval:1e4},xn=Ui,e.AppInsightsCore=ot,e.ApplicationInsights=xn,e.CoreUtils=It,e.Sender=Pi,function(e,n,t){var r=Object.defineProperty;if(r)try{return r(e,n,t)}catch(i){}typeof t.value!==undefined&&(e[n]=t.value)}(e,"__esModule",{value:!0})};"object"==typeof exports&&"undefined"!=typeof module?n(exports):"function"==typeof define&&define.amd?define(["exports"],n):n(((e="undefined"!=typeof globalThis?globalThis:e||self).Microsoft=e.Microsoft||{},e.Microsoft.ApplicationInsights=e.Microsoft.ApplicationInsights||{}));
6
6
  //# sourceMappingURL=applicationinsights-web-basic.min.js.map