@microsoft/applicationinsights-web-basic 2.7.2-nightly.2112-06 → 2.7.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/browser/aib.2.7.2.integrity.json +26 -0
- package/browser/{aib.2.7.2-nightly.2112-06.js → aib.2.7.2.js} +3 -3
- package/browser/aib.2.7.2.js.map +1 -0
- package/browser/{aib.2.7.2-nightly.2112-06.min.js → aib.2.7.2.min.js} +3 -3
- package/browser/aib.2.7.2.min.js.map +1 -0
- package/browser/aib.2.js +2 -2
- package/browser/aib.2.js.map +1 -1
- package/browser/aib.2.min.js +2 -2
- package/browser/aib.2.min.js.map +1 -1
- package/dist/applicationinsights-web-basic.d.ts +1 -1
- package/dist/applicationinsights-web-basic.js +2 -2
- package/dist/applicationinsights-web-basic.js.map +1 -1
- package/dist/applicationinsights-web-basic.min.js +2 -2
- package/dist/applicationinsights-web-basic.min.js.map +1 -1
- package/dist/applicationinsights-web-basic.rollup.d.ts +1 -1
- package/dist-esm/index.js +1 -1
- package/package.json +57 -60
- package/browser/aib.2.7.2-nightly.2112-06.integrity.json +0 -26
- package/browser/aib.2.7.2-nightly.2112-06.js.map +0 -1
- package/browser/aib.2.7.2-nightly.2112-06.min.js.map +0 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* Application Insights JavaScript Web SDK - Basic, 2.7.2
|
|
2
|
+
* Application Insights JavaScript Web SDK - Basic, 2.7.2
|
|
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,R="_dfOpts",_="_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);e=e[A]||e[C]||(e[I]?e[I][C]:null);if(e)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||_:((e||{})[I]||{}).name||n||_}function G(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=G[R],s=!!a[L];s&&t&&t[L]!==undefined&&(s=!!t[L]);var u,l,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));var c,f,d,g,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)))}))}G[R]={setInstFuncs:!0,useBaseInst:!0},(ri=M=M||{})[ri.CRITICAL=1]="CRITICAL",ri[ri.WARNING=2]="WARNING";var W={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){e=""+e;return 1===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 Re="window",_e="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===Re&&Ke()?window:null}function Ke(){return typeof window===g&&window}function qe(){return Ke()?window:je(Re)}function Ve(){return typeof document===g&&document?document:je("document")}function Ge(){return!(typeof navigator!==g||!navigator)}function We(){return Ge()?navigator:je(_e)}function He(){return typeof JSON===g&&JSON||null!==je(Ee)}function Xe(){return He()?JSON||je(Ee):null}function Ye(){var e=We();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?Ge()&&!!We().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={};G(Oi,this,function(o){function e(e,n){e=r[e];return Q(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){n=new un(n,t,i=void 0!==i&&i,r);if(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(W.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={},G(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,W.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;void 0===t&&(t=!1);e=u.getExtCfg(e,null);return e&&!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",Rn="isInitialized";function _n(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[Rn])&&o[Rn]()||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(ni=Fn.prototype,"ChannelControls",ni.getChannelControls),void Ie(ni,"channelQueue",ni.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,G(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 _n(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,Gn=Ve(),Wn={},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=(We()||{}).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 Gn&&(n=Gn[Dn]||jn,Vn!==n&&(Wn=Zn(n),Vn=n),t=he(Wn[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",t=t,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=(Gn||{})[Dn]!==undefined}catch(n){e&&e.throwInternal(M.WARNING,W.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){Gn&&(Gn[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;G(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;G(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,_n(new In([l],e,u),t),_n(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 G(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=je(Fe)||je(Me),n=n&&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();r&&(t=te(r,e,n),t=te(r.body,e,n)||t);r=Ve();return r&&te(r,e,n)||t},dateNow:Ce,isIE:Ye,disableCookies:function(){var e,n;(n=Yn[zn]||Hn[zn])||(n=Yn[zn]=Yn(void 0,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=(e=e,(n=n)&&150<(n=he(n.toString())).length&&(i=n.substring(0,150),e&&e.throwInternal(M.WARNING,W.NameTooLong,"name is too long. It has been truncated to 150 characters.",{name:n},!0)),i||n);if(a.length!==o){for(var s=0,u=a;t[u]!==undefined;)s++,u=a.substring(0,147)+(r=void 0,(r="00"+s).substr(r.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,W.StringValueTooLong,"string value is too long. It has been truncated to "+t+" characters.",{value:n},!0))),r||n}function Tt(e,n){return Rt(e,n,2048,W.UrlTooLong)}function wt(e,n){var t;return n&&32768<n.length&&(t=n.substring(0,32768),e&&e.throwInternal(M.WARNING,W.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,W.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 Rt(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 _t(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";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,W.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,W.BrowserCannotWriteSessionStorage,"Browser failed write to session storage. "+Se(i),{exception:Je(i)})}}var jt=Ve()||{},Kt=0,qt=[null,null,null,null,null];var Vt=["https://dc.services.visualstudio.com/v2/track","https://breeze.aimon.applicationinsights.io/v2/track","https://dc-int.services.visualstudio.com/v2/track"];function Gt(e){return~Vt.indexOf(e.toLowerCase())}var Wt,Ht=(v(Xt,Wt=function(){}),Xt);function Xt(){return Wt.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=function(){this.ver=2,this.properties={},this.measurements={}},er=(v(nr,Qt=$t),nr.envelopeType="Microsoft.ApplicationInsights.{0}.Event",nr.dataType="EventData",nr);function nr(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 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&&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,n=e.exceptions,t=e.properties,r=e.measurements,i=e.severityLevel;e.ver;var o=e.problemGroup,a=e.id,e=e.isManual;return{ver:"4.0",exceptions:n instanceof Array&&pe(n,function(e){return e.toInterface()})||undefined,severityLevel:i,properties:t,measurements:r,problemGroup:o,id:a,isManual:e}},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=function(){this.hasFullStack=!0,this.parsedStack=[]}),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,s=yr.call(this)||this;return s.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)?(s.typeName=n.typeName,s.message=n.message,s[rr]=n[rr],s.parsedStack=n.parsedStack,s.hasFullStack=n.hasFullStack):(r=(i=n)&&i.evt,se(i)||(i=i[tr]||r||i),s.typeName=xt(e,gr(i))||kt,s.message=wt(e,lr(n||i,s.typeName))||kt,l=n[ir]||dr(n),s.parsedStack=function(){var e=l.obj;if(e&&0<e.length){var n=[],t=0,r=0;if(de(e,function(e){var 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}(),s[rr]=(i=e,a="",(n=l)&&(n.obj?de(n.obj,function(e){a+=e+"\n"}):a=n.src||""),!(e=a)||32768<(n=""+e).length&&(o=n.substring(0,32768),i&&i.throwInternal(M.WARNING,W.ExceptionTruncated,"exception is too long, it has been truncated to 32768 characters.",{exception:e},!0)),o||e),s.hasFullStack=ae(s.parsedStack)&&0<s.parsedStack.length,t&&(t.typeName=t.typeName||s.typeName)),s}var Sr,xr=(v(Tr,Sr=function(){}),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=0,Nr=(v(Rr,wr=function(){this.kind=br}),Rr);function Rr(){var e=null!==wr&&wr.apply(this,arguments)||this;return e.aiDataContract={name:1,kind:0,value:1,count:0,min:0,max:0,stdDev:0},e}var _r,Ar=(v(Lr,_r=function(){this.ver=2,this.metrics=[],this.properties={},this.measurements={}}),Lr.envelopeType="Microsoft.ApplicationInsights.{0}.Metric",Lr.dataType="MetricData",Lr);function Lr(e,n,t,r,i,o,a,s,u){var l=_r.call(this)||this;l.aiDataContract={ver:1,metrics:1,properties:0};var c=new Nr;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 Er,Fr=(v(Mr,Er=$t),Mr);function Mr(){var e=Er.call(this)||this;return e.ver=2,e.properties={},e.measurements={},e}var kr,Dr=(v(Pr,kr=Fr),Pr.envelopeType="Microsoft.ApplicationInsights.{0}.Pageview",Pr.dataType="PageviewData",Pr);function Pr(e,n,t,r,i,o,a){var s=kr.call(this)||this;return s.aiDataContract={ver:1,name:0,url:0,duration:0,properties:0,measurements:0,id:0},s.id=a&&Rt(e,a,128,W.IdTooLong).toString(),s.url=Tt(e,t),s.name=xt(e,n)||kt,isNaN(r)||(s.duration=_t(r)),s.properties=bt(e,i),s.measurements=Nt(e,o),s}var Br,Ur=(v(Or,Br=function(){this.ver=2,this.success=!0,this.properties={},this.measurements={}}),Or.envelopeType="Microsoft.ApplicationInsights.{0}.RemoteDependency",Or.dataType="RemoteDependencyData",Or);function Or(e,n,t,r,i,o,a,s,u,l,c,f){void 0===u&&(u="Ajax");var d=Br.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=_t(i),d.success=o,d.resultCode=a+"",d.type=xt(e,u);var g,p,h,a=(g=e,n=s,a=o=i=r,o=(u=t)&&0<u.length?(p=u,t=(s=qt)[h=Kt],jt.createElement?s[h]||(t=s[h]=jt.createElement("a")):t={host:function(){var e,n,t=(r=null,!p||null!=(e=p.match(/(\w*):\/\/(.[^/:]+)(\:[\d]+)?/i))&&2<e.length&&ue(e[2])&&0<e[2].length&&(r=e[2]||"",2<e.length&&(n=(e[1]||"").toLowerCase(),t=e[3]||"",r+=t="http"==n&&":80"===t||"https"==n&&":443"===t?"":t)),r||"");if(t){var r=t.match(/(www[0-9]?\.)?(.[^/:]+)(\:[\d]+)?/i);if(null!=r&&3<r.length&&ue(r[2])&&0<r[2].length)return r[2]+(r[3]||"")}return t}()},t.href=p,++h>=s.length&&(h=0),Kt=h,h=(s=t).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))):h=i,{target:h,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 zr,jr=(v(Kr,zr=function(){this.ver=2,this.properties={},this.measurements={}}),Kr.envelopeType="Microsoft.ApplicationInsights.{0}.Message",Kr.dataType="MessageData",Kr);function Kr(e,n,t,r,i){var o=zr.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 qr,Vr=(v(Gr,qr=Fr),Gr);function Gr(){var e=qr.call(this)||this;return e.ver=2,e.properties={},e.measurements={},e}var Wr,Hr=(v(Xr,Wr=Vr),Xr.envelopeType="Microsoft.ApplicationInsights.{0}.PageviewPerformance",Xr.dataType="PageviewPerformanceData",Xr);function Xr(e,n,t,r,i,o,a){var s=Wr.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 Yr,Jr=(v(Zr,Yr=Ht),Zr);function Zr(e,n){var t=Yr.call(this)||this;return t.aiDataContract={baseType:1,baseData:1},t.baseType=e,t.baseData=n,t}function Qr(e){var n="ai."+e+".";return function(e){return n+e}}e.SeverityLevel=void 0,(ri=e.SeverityLevel||(e.SeverityLevel={}))[ri.Verbose=0]="Verbose",ri[ri.Information=1]="Information",ri[ri.Warning=2]="Warning",ri[ri.Error=3]="Error",ri[ri.Critical=4]="Critical";var $r,ei,l=Qr("application"),ni=Qr("device"),ti=Qr("location"),$t=Qr("operation"),Fr=Qr("session"),Vr=Qr("user"),Ht=Qr("cloud"),ri=Qr("internal"),ii=(ei={applicationVersion:l("ver"),applicationBuild:l("build"),applicationTypeId:l("typeId"),applicationId:l("applicationId"),applicationLayer:l("layer"),deviceId:ni("id"),deviceIp:ni("ip"),deviceLanguage:ni("language"),deviceLocale:ni("locale"),deviceModel:ni("model"),deviceFriendlyName:ni("friendlyName"),deviceNetwork:ni("network"),deviceNetworkName:ni("networkName"),deviceOEMName:ni("oemName"),deviceOS:ni("os"),deviceOSVersion:ni("osVersion"),deviceRoleInstance:ni("roleInstance"),deviceRoleName:ni("roleName"),deviceScreenResolution:ni("screenResolution"),deviceType:ni("type"),deviceMachineName:ni("machineName"),deviceVMName:ni("vmName"),deviceBrowser:ni("browser"),deviceBrowserVersion:ni("browserVersion"),locationIp:ti("ip"),locationCountry:ti("country"),locationProvince:ti("province"),locationCity:ti("city"),operationId:$t("id"),operationName:$t("name"),operationParentId:$t("parentId"),operationRootId:$t("rootId"),operationSyntheticSource:$t("syntheticSource"),operationCorrelationVector:$t("correlationVector"),sessionId:Fr("id"),sessionIsFirst:Fr("isFirst"),sessionIsNew:Fr("isNew"),userAccountAcquisitionDate:Vr("accountAcquisitionDate"),userAccountId:Vr("accountId"),userAgent:Vr("userAgent"),userId:Vr("id"),userStoreRegion:Vr("storeRegion"),userAuthUserId:Vr("authUserId"),userAnonymousUserAcquisitionDate:Vr("anonUserAcquisitionDate"),userAuthenticatedUserAcquisitionDate:Vr("authUserAcquisitionDate"),cloudName:Ht("name"),cloudRole:Ht("role"),cloudRoleVer:Ht("roleVer"),cloudRoleInstance:Ht("roleInstance"),cloudEnvironment:Ht("environment"),cloudLocation:Ht("location"),cloudDeploymentUnit:Ht("deploymentUnit"),internalNodeName:ri("nodeName"),internalSdkVersion:ri("sdkVersion"),internalAgentVersion:ri("agentVersion"),internalSnippet:ri("snippet"),internalSdkSrc:ri("sdkSrc")},v(oi,$r=function(){var t=this;re(ei,function(e,n){t[e]=n})}),oi);function oi(){return $r.call(this)||this}var ai,si=new ii,ri=function Vi(t,r){var i=[],o=!1;this._get=function(){return i},this._set=function(e){return i=e},G(Vi,this,function(n){n.enqueue=function(e){n.count()>=r.eventsLimitInMem()?o||(t.throwInternal(M.WARNING,W.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}})},ui=(v(li,ai=ri),li);function li(e,n){n=ai.call(this,e,n)||this;return G(li,n,function(e,n){e.markAsSent=function(e){n.clear()},e.clearSent=function(e){}}),n}var ci,fi=(v(di,ci=ri),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 G(di,e,function(t,n){var e=o(di.BUFFER_KEY),r=o(di.SENT_BUFFER_KEY),e=t._set(e.concat(r));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,W.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,W.FailedToSetStorageBuffer," storage key: "+e+", "+Se(r)+". Buffer cleared",{exception:Je(r)})}}e.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,W.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,W.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,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){r=new Jt(e,r,n);vi(r,"sampleRate",t[Et]),(t[pi]||{}).startTime&&(r.time=fe(t[pi].startTime)),r.iKey=t.iKey;n=t.iKey.replace(/-/g,"");return 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;a&&vi(r,si.sessionId,a.sesId);a=i.device;a&&(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;a&&(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;a&&vi(r,si.deviceOS,a.name);i=i.trace;i&&(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);r[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,W.TelemetryEnvelopeInvalid,"telemetryItem.baseData cannot be null.")}var xi={Version:"2.7.2-nightly.2112-06"};function Ti(e,n,t){Si(e,n);var r={},i={};n[gi]!==er.dataType&&(r.baseTypeSource=n[gi]),n[gi]===er.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 er(e,t,r,i),i=new Jr(er.dataType,i);return Ci(e,er.envelopeType,n,i)}var wi=function Gi(f){G(Gi,this,function(e){function l(a,s){var e="__aiCircularRefCheck",u={};if(!a)return f.throwInternal(M.CRITICAL,W.CannotSerializeObject,"cannot serialize object because it is null or undefined",{name:s},!0),u;if(a[e])return f.throwInternal(M.WARNING,W.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||(i=n?(i?c:l)(a[e],e):a[e])!==undefined&&(u[e]=i):f.throwInternal(M.CRITICAL,W.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,W.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,W.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,W.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,W.CannotSerializeObject,n&&ne(n.toString)?n.toString():"Error serializing object",null,!0)}}})};function bi(){var a=qe(),s=Ve(),u=!1,l=!0;G(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=We())&&!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=We();return u?e=l:n&&!Q(n.onLine)&&(e=n.onLine),e},e.isOffline=function(){return!e.isOnline()}})}var Ni=bi.Offline=new bi,Ri=(_i.prototype.getHashCodeScore=function(e){return this.getHashCode(e)/_i.INT_MAX_VALUE*100},_i.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)},_i.INT_MAX_VALUE=2147483647,_i);function _i(){}var Ai=function(){var n=new Ri,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===Ar.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,W.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=((ri={})[er.dataType]=Ti,ri[jr.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||{};yi(n.data,o,a),Q(t)||Ii(o,t);a=new jr(e,r,i,o,a),a=new Jr(jr.dataType,a);return Ci(e,jr.envelopeType,n,a)},ri[Dr.dataType]=function(e,n,t){Si(e,n);var r,i="duration",o=n[pi];Q(o)||Q(o[hi])||Q(o[hi][i])?Q(n.data)||Q(n.data[i])||(r=n.data[i],delete n.data[i]):(r=o[hi][i],delete o[hi][i]);var a=n[pi];((n.ext||{}).trace||{}).traceID&&(l=n.ext.trace.traceID);var s=a.id||l,i=a.name,o=a.uri,u=a[hi]||{},l=a.measurements||{};Q(a.refUri)||(u.refUri=a.refUri),Q(a.pageType)||(u.pageType=a.pageType),Q(a.isLoggedIn)||(u.isLoggedIn=a.isLoggedIn.toString()),Q(a[hi])||re(a[hi],function(e,n){u[e]=n}),yi(n.data,u,l),Q(t)||Ii(u,t);s=new Dr(e,i,o,r,u,l,s),s=new Jr(Dr.dataType,s);return Ci(e,Dr.envelopeType,n,s)},ri[Hr.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||{};yi(n.data,a,s),Q(t)||Ii(a,t);r=new Hr(e,i,o,undefined,a,s,r),r=new Jr(Hr.dataType,r);return Ci(e,Hr.envelopeType,n,r)},ri[mr.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);t=n[pi],r=mr.CreateFromInterface(e,t,i,r),r=new Jr(mr.dataType,r);return Ci(e,mr.envelopeType,n,r)},ri[Ar.dataType]=function(e,n,t){Si(e,n);var r=n[pi],i=r[hi]||{},o=r.measurements||{};yi(n.data,i,o),Q(t)||Ii(i,t);o=new Ar(e,r.name,r.average,r.sampleCount,r.min,r.max,r.stdDev,i,o),o=new Jr(Ar.dataType,o);return Ci(e,Ar.envelopeType,n,o)},ri[Ur.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];if(Q(o))return e.warnToConsole("Invalid input for dependency data"),null;t=o[hi]&&o[hi][Mt]?o[hi][Mt]:"GET",r=new Ur(e,o.id,o.target,o.name,o.duration,o.success,o.responseCode,t,o.type,o.correlationContext,i,r),r=new Jr(Ur.dataType,r);return Ci(e,Ur.envelopeType,n,r)},ri),Pi=(v(Bi,ki=xn),Bi.constructEnvelope=function(e,n,t,r){n=n===e.iKey||Q(n)?e:h(h({},e),{iKey:n});return(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(),G(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,W.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,W.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<=R)&&!Q(e)&&""!==e&&e!==l._senderConfig.endpointUrl()&&(l._senderConfig.endpointUrl=function(){return e},++R,1)}function n(e,n){A?A(e,!1):c(e)}function o(e){var n=We(),t=l._buffer,r=l._senderConfig.endpointUrl(),i=l._buffer.batchPayloads(e),i=new Blob([i],{type:"text/plain;charset=UTF-8"}),n=n.sendBeacon(r,i);return n&&(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&&(_(t,!0),l.diagLog().throwInternal(M.WARNING,W.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"),Gt(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):(_&&_(e,!0),l.diagLog().throwInternal(M.WARNING,W.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;Gt(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,W.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;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||"";if(l._senderConfig.endpointUrl().lastIndexOf(r,0))return l.diagLog().throwInternal(M.WARNING,W.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["getNotifyMgr"]?l.core.getNotifyMgr():l.core._notificationManager;if(t&&t.eventsSendRequest)try{t.eventsSendRequest(e,n)}catch(r){l.diagLog().throwInternal(M.CRITICAL,W.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,W.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,W.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,R=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(e.disableInstrumentationKeyValidation)&&e.disableInstrumentationKeyValidation||/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/.test(e.instrumentationKey)||n.throwInternal(M.CRITICAL,W.InvalidInstrumentationKey,"Invalid Instrumentation key "+e.instrumentationKey),!Gt(l._senderConfig.endpointUrl())&&l._senderConfig.customHeaders()&&0<l._senderConfig.customHeaders().length&&de(l._senderConfig.customHeaders(),function(e){b.addHeader(e.header,e.value)});e=l._senderConfig,n=null;!e.disableXhr()&&$e()?n=C:!e.disableXhr()&&en()&&(n=f),!n&&Qe()&&(n=g),_=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:_},l.processTelemetry=function(e,t){t=l._getTelCtx(t);try{if(l._senderConfig.disableTelemetry())return;if(!e)return void t.diagLog().throwInternal(M.CRITICAL,W.CannotSendEmptyTelemetry,"Cannot send empty telemetry");if(e.baseData&&!e.baseType)return void t.diagLog().throwInternal(M.CRITICAL,W.InvalidEvent,"Cannot send telemetry without baseData and baseType");if(e.baseType||(e.baseType="EventData"),!l._sender)return void t.diagLog().throwInternal(M.CRITICAL,W.SenderNotInitialized,"Sender was not initialized");if(!l._sample.isSampledIn(e))return void t.diagLog().throwInternal(M.WARNING,W.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,W.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,W.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,W.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,i=l._buffer;l._senderConfig.disableTelemetry()?i.clear():0<i.count()&&(r=i.getItems(),x(t||0,e),n?n.call(b,r,e):l._sender(r,e)),v()}catch(o){e=function(e){var n,e=((e=(e=void 0===e?null:e)?e:(n=We()||{})?(n.userAgent||"").toLowerCase():"")||"").toLowerCase();if(ie(e,ke))return parseInt(e.split(ke)[1]);if(ie(e,De)){e=parseInt(e.split(De)[1]);if(e)return e+4}return null}();(!e||9<e)&&l.diagLog().throwInternal(M.CRITICAL,W.TransmissionFailed,"Telemetry transmission failed, some telemetry will be lost: "+Se(o),{exception:Je(o)})}},l._onError=function(e,n,t){l.diagLog().throwInternal(M.WARNING,W.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,W.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}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;function Ui(e){(Q(e)||Q(e.instrumentationKey))&&be("Invalid input configuration"),this.config=e,this.getSKUDefaults(),this.initialize()}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
|
-
//# sourceMappingURL=aib.2.7.2
|
|
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,R="_dfOpts",_="_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);e=e[A]||e[C]||(e[I]?e[I][C]:null);if(e)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||_:((e||{})[I]||{}).name||n||_}function G(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=G[R],s=!!a[L];s&&t&&t[L]!==undefined&&(s=!!t[L]);var u,l,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));var c,f,d,g,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)))}))}G[R]={setInstFuncs:!0,useBaseInst:!0},(ri=M=M||{})[ri.CRITICAL=1]="CRITICAL",ri[ri.WARNING=2]="WARNING";var W={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){e=""+e;return 1===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 Re="window",_e="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===Re&&Ke()?window:null}function Ke(){return typeof window===g&&window}function qe(){return Ke()?window:je(Re)}function Ve(){return typeof document===g&&document?document:je("document")}function Ge(){return!(typeof navigator!==g||!navigator)}function We(){return Ge()?navigator:je(_e)}function He(){return typeof JSON===g&&JSON||null!==je(Ee)}function Xe(){return He()?JSON||je(Ee):null}function Ye(){var e=We();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?Ge()&&!!We().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={};G(Oi,this,function(o){function e(e,n){e=r[e];return Q(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){n=new un(n,t,i=void 0!==i&&i,r);if(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(W.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={},G(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,W.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;void 0===t&&(t=!1);e=u.getExtCfg(e,null);return e&&!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",Rn="isInitialized";function _n(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[Rn])&&o[Rn]()||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(ni=Fn.prototype,"ChannelControls",ni.getChannelControls),void Ie(ni,"channelQueue",ni.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,G(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 _n(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,Gn=Ve(),Wn={},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=(We()||{}).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 Gn&&(n=Gn[Dn]||jn,Vn!==n&&(Wn=Zn(n),Vn=n),t=he(Wn[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",t=t,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=(Gn||{})[Dn]!==undefined}catch(n){e&&e.throwInternal(M.WARNING,W.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){Gn&&(Gn[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;G(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;G(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,_n(new In([l],e,u),t),_n(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 G(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=je(Fe)||je(Me),n=n&&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();r&&(t=te(r,e,n),t=te(r.body,e,n)||t);r=Ve();return r&&te(r,e,n)||t},dateNow:Ce,isIE:Ye,disableCookies:function(){var e,n;(n=Yn[zn]||Hn[zn])||(n=Yn[zn]=Yn(void 0,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=(e=e,(n=n)&&150<(n=he(n.toString())).length&&(i=n.substring(0,150),e&&e.throwInternal(M.WARNING,W.NameTooLong,"name is too long. It has been truncated to 150 characters.",{name:n},!0)),i||n);if(a.length!==o){for(var s=0,u=a;t[u]!==undefined;)s++,u=a.substring(0,147)+(r=void 0,(r="00"+s).substr(r.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,W.StringValueTooLong,"string value is too long. It has been truncated to "+t+" characters.",{value:n},!0))),r||n}function Tt(e,n){return Rt(e,n,2048,W.UrlTooLong)}function wt(e,n){var t;return n&&32768<n.length&&(t=n.substring(0,32768),e&&e.throwInternal(M.WARNING,W.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,W.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 Rt(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 _t(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";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,W.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,W.BrowserCannotWriteSessionStorage,"Browser failed write to session storage. "+Se(i),{exception:Je(i)})}}var jt=Ve()||{},Kt=0,qt=[null,null,null,null,null];var Vt=["https://dc.services.visualstudio.com/v2/track","https://breeze.aimon.applicationinsights.io/v2/track","https://dc-int.services.visualstudio.com/v2/track"];function Gt(e){return~Vt.indexOf(e.toLowerCase())}var Wt,Ht=(v(Xt,Wt=function(){}),Xt);function Xt(){return Wt.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=function(){this.ver=2,this.properties={},this.measurements={}},er=(v(nr,Qt=$t),nr.envelopeType="Microsoft.ApplicationInsights.{0}.Event",nr.dataType="EventData",nr);function nr(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 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&&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,n=e.exceptions,t=e.properties,r=e.measurements,i=e.severityLevel;e.ver;var o=e.problemGroup,a=e.id,e=e.isManual;return{ver:"4.0",exceptions:n instanceof Array&&pe(n,function(e){return e.toInterface()})||undefined,severityLevel:i,properties:t,measurements:r,problemGroup:o,id:a,isManual:e}},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=function(){this.hasFullStack=!0,this.parsedStack=[]}),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,s=yr.call(this)||this;return s.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)?(s.typeName=n.typeName,s.message=n.message,s[rr]=n[rr],s.parsedStack=n.parsedStack,s.hasFullStack=n.hasFullStack):(r=(i=n)&&i.evt,se(i)||(i=i[tr]||r||i),s.typeName=xt(e,gr(i))||kt,s.message=wt(e,lr(n||i,s.typeName))||kt,l=n[ir]||dr(n),s.parsedStack=function(){var e=l.obj;if(e&&0<e.length){var n=[],t=0,r=0;if(de(e,function(e){var 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}(),s[rr]=(i=e,a="",(n=l)&&(n.obj?de(n.obj,function(e){a+=e+"\n"}):a=n.src||""),!(e=a)||32768<(n=""+e).length&&(o=n.substring(0,32768),i&&i.throwInternal(M.WARNING,W.ExceptionTruncated,"exception is too long, it has been truncated to 32768 characters.",{exception:e},!0)),o||e),s.hasFullStack=ae(s.parsedStack)&&0<s.parsedStack.length,t&&(t.typeName=t.typeName||s.typeName)),s}var Sr,xr=(v(Tr,Sr=function(){}),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=0,Nr=(v(Rr,wr=function(){this.kind=br}),Rr);function Rr(){var e=null!==wr&&wr.apply(this,arguments)||this;return e.aiDataContract={name:1,kind:0,value:1,count:0,min:0,max:0,stdDev:0},e}var _r,Ar=(v(Lr,_r=function(){this.ver=2,this.metrics=[],this.properties={},this.measurements={}}),Lr.envelopeType="Microsoft.ApplicationInsights.{0}.Metric",Lr.dataType="MetricData",Lr);function Lr(e,n,t,r,i,o,a,s,u){var l=_r.call(this)||this;l.aiDataContract={ver:1,metrics:1,properties:0};var c=new Nr;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 Er,Fr=(v(Mr,Er=$t),Mr);function Mr(){var e=Er.call(this)||this;return e.ver=2,e.properties={},e.measurements={},e}var kr,Dr=(v(Pr,kr=Fr),Pr.envelopeType="Microsoft.ApplicationInsights.{0}.Pageview",Pr.dataType="PageviewData",Pr);function Pr(e,n,t,r,i,o,a){var s=kr.call(this)||this;return s.aiDataContract={ver:1,name:0,url:0,duration:0,properties:0,measurements:0,id:0},s.id=a&&Rt(e,a,128,W.IdTooLong).toString(),s.url=Tt(e,t),s.name=xt(e,n)||kt,isNaN(r)||(s.duration=_t(r)),s.properties=bt(e,i),s.measurements=Nt(e,o),s}var Br,Ur=(v(Or,Br=function(){this.ver=2,this.success=!0,this.properties={},this.measurements={}}),Or.envelopeType="Microsoft.ApplicationInsights.{0}.RemoteDependency",Or.dataType="RemoteDependencyData",Or);function Or(e,n,t,r,i,o,a,s,u,l,c,f){void 0===u&&(u="Ajax");var d=Br.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=_t(i),d.success=o,d.resultCode=a+"",d.type=xt(e,u);var g,p,h,a=(g=e,n=s,a=o=i=r,o=(u=t)&&0<u.length?(p=u,t=(s=qt)[h=Kt],jt.createElement?s[h]||(t=s[h]=jt.createElement("a")):t={host:function(){var e,n,t=(r=null,!p||null!=(e=p.match(/(\w*):\/\/(.[^/:]+)(\:[\d]+)?/i))&&2<e.length&&ue(e[2])&&0<e[2].length&&(r=e[2]||"",2<e.length&&(n=(e[1]||"").toLowerCase(),t=e[3]||"",r+=t="http"==n&&":80"===t||"https"==n&&":443"===t?"":t)),r||"");if(t){var r=t.match(/(www[0-9]?\.)?(.[^/:]+)(\:[\d]+)?/i);if(null!=r&&3<r.length&&ue(r[2])&&0<r[2].length)return r[2]+(r[3]||"")}return t}()},t.href=p,++h>=s.length&&(h=0),Kt=h,h=(s=t).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))):h=i,{target:h,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 zr,jr=(v(Kr,zr=function(){this.ver=2,this.properties={},this.measurements={}}),Kr.envelopeType="Microsoft.ApplicationInsights.{0}.Message",Kr.dataType="MessageData",Kr);function Kr(e,n,t,r,i){var o=zr.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 qr,Vr=(v(Gr,qr=Fr),Gr);function Gr(){var e=qr.call(this)||this;return e.ver=2,e.properties={},e.measurements={},e}var Wr,Hr=(v(Xr,Wr=Vr),Xr.envelopeType="Microsoft.ApplicationInsights.{0}.PageviewPerformance",Xr.dataType="PageviewPerformanceData",Xr);function Xr(e,n,t,r,i,o,a){var s=Wr.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 Yr,Jr=(v(Zr,Yr=Ht),Zr);function Zr(e,n){var t=Yr.call(this)||this;return t.aiDataContract={baseType:1,baseData:1},t.baseType=e,t.baseData=n,t}function Qr(e){var n="ai."+e+".";return function(e){return n+e}}e.SeverityLevel=void 0,(ri=e.SeverityLevel||(e.SeverityLevel={}))[ri.Verbose=0]="Verbose",ri[ri.Information=1]="Information",ri[ri.Warning=2]="Warning",ri[ri.Error=3]="Error",ri[ri.Critical=4]="Critical";var $r,ei,l=Qr("application"),ni=Qr("device"),ti=Qr("location"),$t=Qr("operation"),Fr=Qr("session"),Vr=Qr("user"),Ht=Qr("cloud"),ri=Qr("internal"),ii=(ei={applicationVersion:l("ver"),applicationBuild:l("build"),applicationTypeId:l("typeId"),applicationId:l("applicationId"),applicationLayer:l("layer"),deviceId:ni("id"),deviceIp:ni("ip"),deviceLanguage:ni("language"),deviceLocale:ni("locale"),deviceModel:ni("model"),deviceFriendlyName:ni("friendlyName"),deviceNetwork:ni("network"),deviceNetworkName:ni("networkName"),deviceOEMName:ni("oemName"),deviceOS:ni("os"),deviceOSVersion:ni("osVersion"),deviceRoleInstance:ni("roleInstance"),deviceRoleName:ni("roleName"),deviceScreenResolution:ni("screenResolution"),deviceType:ni("type"),deviceMachineName:ni("machineName"),deviceVMName:ni("vmName"),deviceBrowser:ni("browser"),deviceBrowserVersion:ni("browserVersion"),locationIp:ti("ip"),locationCountry:ti("country"),locationProvince:ti("province"),locationCity:ti("city"),operationId:$t("id"),operationName:$t("name"),operationParentId:$t("parentId"),operationRootId:$t("rootId"),operationSyntheticSource:$t("syntheticSource"),operationCorrelationVector:$t("correlationVector"),sessionId:Fr("id"),sessionIsFirst:Fr("isFirst"),sessionIsNew:Fr("isNew"),userAccountAcquisitionDate:Vr("accountAcquisitionDate"),userAccountId:Vr("accountId"),userAgent:Vr("userAgent"),userId:Vr("id"),userStoreRegion:Vr("storeRegion"),userAuthUserId:Vr("authUserId"),userAnonymousUserAcquisitionDate:Vr("anonUserAcquisitionDate"),userAuthenticatedUserAcquisitionDate:Vr("authUserAcquisitionDate"),cloudName:Ht("name"),cloudRole:Ht("role"),cloudRoleVer:Ht("roleVer"),cloudRoleInstance:Ht("roleInstance"),cloudEnvironment:Ht("environment"),cloudLocation:Ht("location"),cloudDeploymentUnit:Ht("deploymentUnit"),internalNodeName:ri("nodeName"),internalSdkVersion:ri("sdkVersion"),internalAgentVersion:ri("agentVersion"),internalSnippet:ri("snippet"),internalSdkSrc:ri("sdkSrc")},v(oi,$r=function(){var t=this;re(ei,function(e,n){t[e]=n})}),oi);function oi(){return $r.call(this)||this}var ai,si=new ii,ri=function Vi(t,r){var i=[],o=!1;this._get=function(){return i},this._set=function(e){return i=e},G(Vi,this,function(n){n.enqueue=function(e){n.count()>=r.eventsLimitInMem()?o||(t.throwInternal(M.WARNING,W.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}})},ui=(v(li,ai=ri),li);function li(e,n){n=ai.call(this,e,n)||this;return G(li,n,function(e,n){e.markAsSent=function(e){n.clear()},e.clearSent=function(e){}}),n}var ci,fi=(v(di,ci=ri),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 G(di,e,function(t,n){var e=o(di.BUFFER_KEY),r=o(di.SENT_BUFFER_KEY),e=t._set(e.concat(r));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,W.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,W.FailedToSetStorageBuffer," storage key: "+e+", "+Se(r)+". Buffer cleared",{exception:Je(r)})}}e.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,W.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,W.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,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){r=new Jt(e,r,n);vi(r,"sampleRate",t[Et]),(t[pi]||{}).startTime&&(r.time=fe(t[pi].startTime)),r.iKey=t.iKey;n=t.iKey.replace(/-/g,"");return 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;a&&vi(r,si.sessionId,a.sesId);a=i.device;a&&(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;a&&(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;a&&vi(r,si.deviceOS,a.name);i=i.trace;i&&(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);r[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,W.TelemetryEnvelopeInvalid,"telemetryItem.baseData cannot be null.")}var xi={Version:"2.7.2"};function Ti(e,n,t){Si(e,n);var r={},i={};n[gi]!==er.dataType&&(r.baseTypeSource=n[gi]),n[gi]===er.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 er(e,t,r,i),i=new Jr(er.dataType,i);return Ci(e,er.envelopeType,n,i)}var wi=function Gi(f){G(Gi,this,function(e){function l(a,s){var e="__aiCircularRefCheck",u={};if(!a)return f.throwInternal(M.CRITICAL,W.CannotSerializeObject,"cannot serialize object because it is null or undefined",{name:s},!0),u;if(a[e])return f.throwInternal(M.WARNING,W.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||(i=n?(i?c:l)(a[e],e):a[e])!==undefined&&(u[e]=i):f.throwInternal(M.CRITICAL,W.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,W.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,W.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,W.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,W.CannotSerializeObject,n&&ne(n.toString)?n.toString():"Error serializing object",null,!0)}}})};function bi(){var a=qe(),s=Ve(),u=!1,l=!0;G(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=We())&&!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=We();return u?e=l:n&&!Q(n.onLine)&&(e=n.onLine),e},e.isOffline=function(){return!e.isOnline()}})}var Ni=bi.Offline=new bi,Ri=(_i.prototype.getHashCodeScore=function(e){return this.getHashCode(e)/_i.INT_MAX_VALUE*100},_i.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)},_i.INT_MAX_VALUE=2147483647,_i);function _i(){}var Ai=function(){var n=new Ri,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===Ar.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,W.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=((ri={})[er.dataType]=Ti,ri[jr.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||{};yi(n.data,o,a),Q(t)||Ii(o,t);a=new jr(e,r,i,o,a),a=new Jr(jr.dataType,a);return Ci(e,jr.envelopeType,n,a)},ri[Dr.dataType]=function(e,n,t){Si(e,n);var r,i="duration",o=n[pi];Q(o)||Q(o[hi])||Q(o[hi][i])?Q(n.data)||Q(n.data[i])||(r=n.data[i],delete n.data[i]):(r=o[hi][i],delete o[hi][i]);var a=n[pi];((n.ext||{}).trace||{}).traceID&&(l=n.ext.trace.traceID);var s=a.id||l,i=a.name,o=a.uri,u=a[hi]||{},l=a.measurements||{};Q(a.refUri)||(u.refUri=a.refUri),Q(a.pageType)||(u.pageType=a.pageType),Q(a.isLoggedIn)||(u.isLoggedIn=a.isLoggedIn.toString()),Q(a[hi])||re(a[hi],function(e,n){u[e]=n}),yi(n.data,u,l),Q(t)||Ii(u,t);s=new Dr(e,i,o,r,u,l,s),s=new Jr(Dr.dataType,s);return Ci(e,Dr.envelopeType,n,s)},ri[Hr.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||{};yi(n.data,a,s),Q(t)||Ii(a,t);r=new Hr(e,i,o,undefined,a,s,r),r=new Jr(Hr.dataType,r);return Ci(e,Hr.envelopeType,n,r)},ri[mr.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);t=n[pi],r=mr.CreateFromInterface(e,t,i,r),r=new Jr(mr.dataType,r);return Ci(e,mr.envelopeType,n,r)},ri[Ar.dataType]=function(e,n,t){Si(e,n);var r=n[pi],i=r[hi]||{},o=r.measurements||{};yi(n.data,i,o),Q(t)||Ii(i,t);o=new Ar(e,r.name,r.average,r.sampleCount,r.min,r.max,r.stdDev,i,o),o=new Jr(Ar.dataType,o);return Ci(e,Ar.envelopeType,n,o)},ri[Ur.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];if(Q(o))return e.warnToConsole("Invalid input for dependency data"),null;t=o[hi]&&o[hi][Mt]?o[hi][Mt]:"GET",r=new Ur(e,o.id,o.target,o.name,o.duration,o.success,o.responseCode,t,o.type,o.correlationContext,i,r),r=new Jr(Ur.dataType,r);return Ci(e,Ur.envelopeType,n,r)},ri),Pi=(v(Bi,ki=xn),Bi.constructEnvelope=function(e,n,t,r){n=n===e.iKey||Q(n)?e:h(h({},e),{iKey:n});return(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(),G(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,W.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,W.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<=R)&&!Q(e)&&""!==e&&e!==l._senderConfig.endpointUrl()&&(l._senderConfig.endpointUrl=function(){return e},++R,1)}function n(e,n){A?A(e,!1):c(e)}function o(e){var n=We(),t=l._buffer,r=l._senderConfig.endpointUrl(),i=l._buffer.batchPayloads(e),i=new Blob([i],{type:"text/plain;charset=UTF-8"}),n=n.sendBeacon(r,i);return n&&(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&&(_(t,!0),l.diagLog().throwInternal(M.WARNING,W.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"),Gt(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):(_&&_(e,!0),l.diagLog().throwInternal(M.WARNING,W.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;Gt(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,W.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;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||"";if(l._senderConfig.endpointUrl().lastIndexOf(r,0))return l.diagLog().throwInternal(M.WARNING,W.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["getNotifyMgr"]?l.core.getNotifyMgr():l.core._notificationManager;if(t&&t.eventsSendRequest)try{t.eventsSendRequest(e,n)}catch(r){l.diagLog().throwInternal(M.CRITICAL,W.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,W.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,W.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,R=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(e.disableInstrumentationKeyValidation)&&e.disableInstrumentationKeyValidation||/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/.test(e.instrumentationKey)||n.throwInternal(M.CRITICAL,W.InvalidInstrumentationKey,"Invalid Instrumentation key "+e.instrumentationKey),!Gt(l._senderConfig.endpointUrl())&&l._senderConfig.customHeaders()&&0<l._senderConfig.customHeaders().length&&de(l._senderConfig.customHeaders(),function(e){b.addHeader(e.header,e.value)});e=l._senderConfig,n=null;!e.disableXhr()&&$e()?n=C:!e.disableXhr()&&en()&&(n=f),!n&&Qe()&&(n=g),_=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:_},l.processTelemetry=function(e,t){t=l._getTelCtx(t);try{if(l._senderConfig.disableTelemetry())return;if(!e)return void t.diagLog().throwInternal(M.CRITICAL,W.CannotSendEmptyTelemetry,"Cannot send empty telemetry");if(e.baseData&&!e.baseType)return void t.diagLog().throwInternal(M.CRITICAL,W.InvalidEvent,"Cannot send telemetry without baseData and baseType");if(e.baseType||(e.baseType="EventData"),!l._sender)return void t.diagLog().throwInternal(M.CRITICAL,W.SenderNotInitialized,"Sender was not initialized");if(!l._sample.isSampledIn(e))return void t.diagLog().throwInternal(M.WARNING,W.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,W.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,W.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,W.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,i=l._buffer;l._senderConfig.disableTelemetry()?i.clear():0<i.count()&&(r=i.getItems(),x(t||0,e),n?n.call(b,r,e):l._sender(r,e)),v()}catch(o){e=function(e){var n,e=((e=(e=void 0===e?null:e)?e:(n=We()||{})?(n.userAgent||"").toLowerCase():"")||"").toLowerCase();if(ie(e,ke))return parseInt(e.split(ke)[1]);if(ie(e,De)){e=parseInt(e.split(De)[1]);if(e)return e+4}return null}();(!e||9<e)&&l.diagLog().throwInternal(M.CRITICAL,W.TransmissionFailed,"Telemetry transmission failed, some telemetry will be lost: "+Se(o),{exception:Je(o)})}},l._onError=function(e,n,t){l.diagLog().throwInternal(M.WARNING,W.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,W.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}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;function Ui(e){(Q(e)||Q(e.instrumentationKey))&&be("Invalid input configuration"),this.config=e,this.getSKUDefaults(),this.initialize()}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
|
+
//# sourceMappingURL=aib.2.7.2.min.js.map
|