@microsoft/applicationinsights-dependencies-js
Advanced tools
Comparing version 2.7.0-beta.1 to 2.7.0
{ | ||
"name": "applicationinsights-dependencies-js", | ||
"version": "2.7.0-beta.1", | ||
"version": "2.7.0", | ||
"ext": { | ||
@@ -8,7 +8,7 @@ "@js": { | ||
"type": "text/javascript; charset=utf-8", | ||
"integrity": "sha256-igIQQ733nKegaiSomxfG6Z86/tMleAnIW/z3cC8Snjs= sha384-sA7ZBY66waBMZhbF25LnMgXJeQNPIBKQyFmN4TF0SQT3cbxJFVXQuZsj2R+358t8 sha512-LijpPkyTXsmzxOWq83Fc3i6d7IIdESwKMI6pvxqJFdNkPqRaVJLrjaFZc4GQmv3qve6exnch3tib4Y7oOG+z/w==", | ||
"integrity": "sha256-+XTzcOwdtMhGVEW8WN2Vl5vuu9Ll/0CLkM2JA71vvUQ= sha384-bsgD+/G0ypdNzsLq1f1ssrbyAmYR3GvzoD2ofF/FyGJaNbHtzcZBvRcU6Dc2Ih3B sha512-PC4GUfnVA0ePINEn7G5BMiPQ0uMDAs4S48nNDVEEjAm3+CLAd1G/D6gwJVXPcA66HgDzAdy3fqscIh7CRYV84A==", | ||
"hashes": { | ||
"sha256": "igIQQ733nKegaiSomxfG6Z86/tMleAnIW/z3cC8Snjs=", | ||
"sha384": "sA7ZBY66waBMZhbF25LnMgXJeQNPIBKQyFmN4TF0SQT3cbxJFVXQuZsj2R+358t8", | ||
"sha512": "LijpPkyTXsmzxOWq83Fc3i6d7IIdESwKMI6pvxqJFdNkPqRaVJLrjaFZc4GQmv3qve6exnch3tib4Y7oOG+z/w==" | ||
"sha256": "+XTzcOwdtMhGVEW8WN2Vl5vuu9Ll/0CLkM2JA71vvUQ=", | ||
"sha384": "bsgD+/G0ypdNzsLq1f1ssrbyAmYR3GvzoD2ofF/FyGJaNbHtzcZBvRcU6Dc2Ih3B", | ||
"sha512": "PC4GUfnVA0ePINEn7G5BMiPQ0uMDAs4S48nNDVEEjAm3+CLAd1G/D6gwJVXPcA66HgDzAdy3fqscIh7CRYV84A==" | ||
} | ||
@@ -19,7 +19,7 @@ }, | ||
"type": "text/javascript; charset=utf-8", | ||
"integrity": "sha256-zNgTG9t592/aZmO3HETSuo2XewkoANTrfSP7holPy7Y= sha384-MEwG2Zu8/8yur0FZGSD+P7C9yVtVwDF/38Kl998n6ssDYYOiqFyy+fEjGPB4MDi4 sha512-v5+ZBSqQHzeW0QOLTBnKBN+ksfz7I9jV/uQzaNZ5D38cOAdhUmyB0d3vKajjuyK5JX07l8Qhs7NwZDALnw9GKA==", | ||
"integrity": "sha256-SdafxSdNPrObfHiBcrRYz9HX8oI82NTzYHi+vsBqYCI= sha384-BVsC7rdJ3ZkSMNHNhpPsp2ZwpHx3d+jKjveOwVFcmDT17Qh+77PPSQjkHkA2QOWN sha512-IVy5mewULrFmL3nolc+u4k7Dtu6f12z7Wchq8848zQe/Yr0TYOnFc7JDb7Ek8M6fGU1j9CRn6SZzqKfriwtMfQ==", | ||
"hashes": { | ||
"sha256": "zNgTG9t592/aZmO3HETSuo2XewkoANTrfSP7holPy7Y=", | ||
"sha384": "MEwG2Zu8/8yur0FZGSD+P7C9yVtVwDF/38Kl998n6ssDYYOiqFyy+fEjGPB4MDi4", | ||
"sha512": "v5+ZBSqQHzeW0QOLTBnKBN+ksfz7I9jV/uQzaNZ5D38cOAdhUmyB0d3vKajjuyK5JX07l8Qhs7NwZDALnw9GKA==" | ||
"sha256": "SdafxSdNPrObfHiBcrRYz9HX8oI82NTzYHi+vsBqYCI=", | ||
"sha384": "BVsC7rdJ3ZkSMNHNhpPsp2ZwpHx3d+jKjveOwVFcmDT17Qh+77PPSQjkHkA2QOWN", | ||
"sha512": "IVy5mewULrFmL3nolc+u4k7Dtu6f12z7Wchq8848zQe/Yr0TYOnFc7JDb7Ek8M6fGU1j9CRn6SZzqKfriwtMfQ==" | ||
} | ||
@@ -26,0 +26,0 @@ } |
/*! | ||
* Application Insights JavaScript SDK - Dependencies Plugin, 2.7.0-beta.1 | ||
* Application Insights JavaScript SDK - Dependencies Plugin, 2.7.0 | ||
* Copyright (c) Microsoft and contributors. All rights reserved. | ||
*/ | ||
var e=this,t=function(e){"use strict";var i="function",l="object",s="undefined",H="prototype",o="hasOwnProperty",n=Object,u=n[H],t=n.assign,r=n.create,a=n.defineProperty,c=u[o];function P(){return typeof globalThis!==s&&globalThis?globalThis:typeof self!==s&&self?self:typeof window!==s&&window?window:typeof global!==s&&global?global:null}function d(e){throw new TypeError(e)}(P()||{}).Symbol,(P()||{}).Reflect;var N=t||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var a in t=arguments[n])u[o].call(t,a)&&(e[a]=t[a]);return e},f=function(e,t){return(f=n.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t[o](n)&&(e[n]=t[n])})(e,t)};function p(e,t){function n(){this.constructor=e}typeof t!==i&&null!==t&&d("Class extends value "+t+" is not a constructor or null"),f(e,t),e[H]=null===t?function(e){if(r)return r(e);if(null==e)return{};var t=typeof e;function n(){}return t!==l&&t!==i&&d("Object prototype may only be an Object:"+e),n[H]=e,new n}(t):(n[H]=t[H],new n)}var g,h="constructor",m="prototype",v="function",x="_dynInstFuncs",y="_isDynProxy",C="_dynClass",T="_dynInstChk",I=T,b="_dfOpts",A="_unknown_",S="__proto__",w="useBaseInst",q="setInstFuncs",M=Object,R=M.getPrototypeOf,F=0;function D(e,t){return e&&M[m].hasOwnProperty.call(e,t)}function L(e){return e&&(e===M[m]||e===Array[m])}function E(e){return L(e)||e===Function[m]}function j(e){if(e){if(R)return R(e);if(e=e[S]||e[m]||(e[h]?e[h][m]:null))return e}return null}function k(e,t){var n=[],r=M.getOwnPropertyNames;if(r)n=r(e);else for(var a in e)"string"==typeof a&&D(e,a)&&n.push(a);if(n&&0<n.length)for(var o=0;o<n.length;o++)t(n[o])}function _(e,t,n){return t!==h&&typeof e[t]===v&&(n||D(e,t))}function O(e){throw new TypeError("DynamicProto: "+e)}function U(e,t){for(var n=e.length-1;0<=n;n--)if(e[n]===t)return 1}function W(e,t){return D(e,m)?e.name||t||A:((e||{})[h]||{}).name||t||A}function V(e,r,t,n){D(e,m)||O("theClass is an invalid class definition.");var a=e[m];!function(e){if(R)for(var t=[],n=j(r);n&&!E(n)&&!U(t,n);){if(n===e)return 1;t.push(n),n=j(n)}}(a)&&O("["+W(e)+"] is not in class hierarchy of ["+W(r)+"]");var o=null;D(a,C)?o=a[C]:(o="_dynCls$"+W(e,"_")+"$"+F,F++,a[C]=o);var i=V[b],s=!!i[w];s&&n&&n[w]!==undefined&&(s=!!n[w]);var u,l,c,d,f,p,e=(l={},k(u=r,function(e){!l[e]&&_(u,e,!1)&&(l[e]=u[e])}),l);t(r,function(e,t,n,o){function r(e,t,n){var r,a=t[n];return a[y]&&o&&!1!==(r=e[x]||{})[I]&&(a=(r[t[C]]||{})[n]||a),function(){return a.apply(e,arguments)}}var a={};k(n,function(e){a[e]=r(t,n,e)});for(var i=j(e),s=[];i&&!E(i)&&!U(s,i);)k(i,function(e){!a[e]&&_(i,e,!R)&&(a[e]=r(t,i,e))}),s.push(i),i=j(i);return a}(a,r,e,s)),i=!!R&&!!i[q],c=a,o=o,d=r,f=e,n=!1!==(i=i&&n?!!n[q]:i),L(c)||(i=d[x]=d[x]||{},p=i[o]=i[o]||{},!1!==i[I]&&(i[I]=!!n),k(d,function(e){var n,r,a;_(d,e,!1)&&d[e]!==f[e]&&(p[e]=d[e],delete d[e],D(c,e)&&(!c[e]||c[e][y])||(c[e]=(n=c,r=e,(a=function(){var e,t;return(function(e,t,n,r){var a=null;if(e&&D(n,C)){var o=e[x]||{};if((a=(o[n[C]]||{})[t])||O("Missing ["+t+"] "+v),!a[T]&&!1!==o[I]){for(var i=!D(e,t),s=j(e),u=[];i&&s&&!E(s)&&!U(u,s);){var l=s[t];if(l){i=l===r;break}u.push(s),s=j(s)}try{i&&(e[t]=a),a[T]=1}catch(c){o[I]=!1}}}return a}(this,r,n,a)||(typeof(t=(t=n[e=r])===a?j(n)[e]:t)!==v&&O("["+e+"] is not a "+v),t)).apply(this,arguments)})[y]=1,a)))}))}V[b]={setInstFuncs:!0,useBaseInst:!0},(t=g=g||{})[t.CRITICAL=1]="CRITICAL",t[t.WARNING=2]="WARNING";var B={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},z="attachEvent",X="addEventListener",G="detachEvent",K="removeEventListener",$=a;function J(e){return u.toString.call(e)}function Z(e){return e===undefined||typeof e===s}function Q(e){return null===e||Z(e)}function Y(e){return typeof e===i}function ee(e,t,n,r){void 0===r&&(r=!1);var a=!1;if(!Q(e))try{Q(e[X])?Q(e[z])||(e[z]("on"+t,n),a=!0):(e[X](t,n,r),a=!0)}catch(o){}return a}function te(e,t,n,r){if(void 0===r&&(r=!1),!Q(e))try{Q(e[K])?Q(e[G])||e[G]("on"+t,n):e[K](t,n,r)}catch(a){}}function ne(e,t){if(e)for(var n in e)c.call(e,n)&&t.call(e,n,e[n])}function re(e,t){return!(!e||!t||!~e.indexOf(t))}function ae(e){return"string"==typeof e}function oe(e,t,n){for(var r=e.length,a=0;a<r&&!(a in e&&-1===t.call(n||e,e[a],a,e));a++);}function ie(e){return"string"!=typeof e?e:e.replace(/^\s+|\s+$/g,"")}var se=!{toString:null}.propertyIsEnumerable("toString"),ue=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"];function le(e){var t=typeof e;t===i||t===l&&null!==e||d("objKeys called on non-object");var n,r=[];for(n in e)e&&c.call(e,n)&&r.push(n);if(se)for(var a=ue.length,o=0;o<a;o++)e&&c.call(e,ue[o])&&r.push(ue[o]);return r}function ce(){var e=Date;return e.now?e.now():(new e).getTime()}var de="window",fe="performance",pe="JSON",ge="msie",he="trident/",me=null,ve=null;function xe(e){var t=P();return t&&t[e]?t[e]:e===de&&typeof window===l&&window?window:null}function ye(){return typeof navigator===l&&navigator?navigator:xe("navigator")}function Ce(){return xe(fe)}function Te(){return typeof JSON===l&&JSON||null!==xe(pe)}function Ie(){return Te()?JSON||xe(pe):null}function be(e){var t=Object[H].toString.call(e),n="";return"[object Error]"===t?n="{ stack: '"+e.stack+"', message: '"+e.message+"', name: '"+e.name+"'":Te()&&(n=Ie().stringify(e)),t+n}function Ae(e){return e?'"'+e.replace(/\"/g,"")+'"':""}var Se=(we.dataType="MessageData",we);function we(e,t,n,r){void 0===n&&(n=!1),this.messageId=e,this.message=(n?"AI: ":"AI (Internal): ")+e,e="",Te()&&(e=Ie().stringify(r)),e=(t?" message:"+Ae(t):"")+(r?" props:"+Ae(e):""),this.message+=e}var qe=function Ut(n){this.identifier="DiagnosticLogger",this.queue=[];var a=0,i={};V(Ut,this,function(o){function e(e,t){return Q(e=n[e])?t:e}Q(n)&&(n={}),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,t,n,r,a){if(n=new Se(t,n,a=void 0!==a&&a,r),o.enableDebugExceptions())throw n;Z(n.message)||(r=o.consoleLoggingLevel(),a?(a=+n.messageId,!i[a]&&r>=g.WARNING&&(o.warnToConsole(n.message),i[a]=!0)):r>=g.WARNING&&o.warnToConsole(n.message),o.logInternalMessage(e,n))},o.warnToConsole=function(e){var t,n=typeof console!==s?console:xe("console");n&&(t="log",Y(n[t=n.warn?"warn":t])&&n[t](e))},o.resetInternalMessageCount=function(){a=0,i={}},o.logInternalMessage=function(e,t){var n,r;a>=o.maxInternalMessageLimit()||(n=!0,r="AITR_"+t.messageId,i[r]?n=!1:i[r]=!0,n&&(e<=o.telemetryLoggingLevel()&&(o.queue.push(t),a++),a===o.maxInternalMessageLimit()&&(t=new Se(B.MessageLimitPerPVExceeded,e="Internal events throttle limit per PageView reached for this app.",!1),o.queue.push(t),o.warnToConsole(e))))}})},Me=(Re.ParentContextKey="parent",Re.ChildrenContextKey="childEvts",Re);function Re(e,a,t){var r,o=this,i=!1;o.start=ce(),o.name=e,o.isAsync=t,o.isChildEvt=function(){return!1},Y(a)&&(i=function(e){if($)try{var t={enumerable:!0,configurable:!0,get:function(){return!r&&Y(a)&&(r=a(),a=null),r}};return $(e,"payload",t),!0}catch(n){}return!1}(o)),o.getCtx=function(e){return e?(e===Re.ParentContextKey||e===Re.ChildrenContextKey?o:o.ctx||{})[e]:null},o.setCtx=function(e,t){e&&(e===Re.ParentContextKey?(o[e]||(o.isChildEvt=function(){return!0}),o[e]=t):e===Re.ChildrenContextKey?o[e]=t:(o.ctx=o.ctx||{})[e]=t)},o.complete=function(){var e=0,t=o.getCtx(Re.ChildrenContextKey);if("[object Array]"===J(t))for(var n=0;n<t.length;n++){var r=t[n];r&&(e+=r.time)}o.time=ce()-o.start,o.exTime=o.time-e,o.complete=function(){},!i&&Y(a)&&(o.payload=a())}}var Fe="CoreUtils.doPerf";function De(e,t,n,r,a){if(e){var o=e;if(o=Y(o.getPerfMgr)?o.getPerfMgr():o){var i,s=void 0,e=o.getCtx(Fe);try{if(s=o.create(t(),r,a))return e&&s.setCtx&&(s.setCtx(Me.ParentContextKey,e),e.getCtx&&e.setCtx&&((i=e.getCtx(Me.ChildrenContextKey))||(i=[],e.setCtx(Me.ChildrenContextKey,i)),i.push(s))),o.setCtx(Fe,s),n(s)}catch(u){s&&s.setCtx&&s.setCtx("exception",u)}finally{s&&o.fire(s),o.setCtx(Fe,e)}}}return n()}var Le=function(a,t){var o=this,i=null,s=Y(a.processTelemetry),u=Y(a.setNextPlugin);o._hasRun=!1,o.getPlugin=function(){return a},o.getNext=function(){return i},o.setNext=function(e){i=e},o.processTelemetry=function(n,r){r=r||t;var e=a?a.identifier:"TelemetryPluginChain";De(r?r.core():null,function(){return e+":processTelemetry"},function(){if(a&&s){o._hasRun=!0;try{r.setNext(i),u&&a.setNextPlugin(i),i&&(i._hasRun=!1),a.processTelemetry(n,r)}catch(t){var e=i&&i._hasRun;i&&e||r.diagLog().throwInternal(g.CRITICAL,B.PluginException,"Plugin ["+a.identifier+"] failed during processTelemetry - "+t),i&&!e&&i.processTelemetry(n,r)}}else i&&(o._hasRun=!0,i.processTelemetry(n,r))},function(){return{item:n}},!n.sync)}};function Ee(e,t){var n=[];if(e&&0<e.length)for(var r=null,a=0;a<e.length;a++){var o=e[a];o&&Y(o.processTelemetry)&&(o=new Le(o,t),n.push(o),r&&r.setNext(o),r=o)}return 0<n.length?n[0]:null}var je=function Wt(e,a,n,t){var r,o,i,s,u=this,l=null;null!==t&&(e&&Y(e.getPlugin)?l=function(e,t,n){var r=[],a=!n;if(e)for(;e;){var o=e.getPlugin();!a&&o!==n||(a=!0,r.push(o)),e=e.getNext()}return a||r.push(n),Ee(r,t)}(e,u,t||e.getPlugin()):t?(r=u,i=e,s=!1,(o=t)&&e&&(i=[],oe(e,function(e){!s&&e!==o||(s=!0,i.push(e))})),o&&!s&&(i=i||[]).push(o),l=Ee(i,r)):Z(t)&&(l=Ee(e,u))),u.core=function(){return n},u.diagLog=function(){return(n||{}).logger||new qe(a)},u.getCfg=function(){return a},u.getExtCfg=function(e,t){var n,r;return void 0===t&&(t={}),!a||(r=a.extensionConfig)&&e&&(n=r[e]),n||t},u.getConfig=function(e,t,n){var r;return void 0===n&&(n=!1),(e=u.getExtCfg(e,null))&&!Q(e[t])?r=e[t]:a&&!Q(a[t])&&(r=a[t]),Q(r)?n:r},u.hasNext=function(){return null!=l},u.getNext=function(){return l},u.setNext=function(e){l=e},u.processNext=function(e){var t=l;t&&(l=t.getNext(),t.processTelemetry(e,u))},u.createNew=function(e,t){return new Wt((e=void 0===e?null:e)||l,a,n,t)}},ke="getPlugin",a=(He.prototype.initialize=function(e,t,n,r){this._baseTelInit(e,t,n,r)},He);function He(){var s=this,u=!1,l=null,c=null;s.core=null,s.diagLog=function(e){return s._getTelCtx(e).diagLog()},s.isInitialized=function(){return u},s.setInitialized=function(e){u=e},s.setNextPlugin=function(e){c=e},s.processNext=function(e,t){t?t.processNext(e):c&&Y(c.processTelemetry)&&c.processTelemetry(e,null)},s._getTelCtx=function(e){var t=e=void 0===e?null:e;return t||(e=l||new je(null,{},s.core),t=c&&c[ke]?e.createNew(null,c[ke]):e.createNew(null,c)),t},s._baseTelInit=function(e,t,n,r){var a,o;e&&(a="extensionConfig",i=o=[],!e||(i=e[a])!==o&&Q(i)&&(e[a]=i=o)),!r&&t&&(r=t.getProcessTelContext().getNext());var i=c;c&&c[ke]&&(i=c[ke]()),s.core=t,l=new je(r,e,t,i),u=!0}}var Pe=4294967296,Ne=4294967295,_e=!1,Oe=123456789,Ue=987654321;function We(e){var t=xe("crypto")||xe("msCrypto"),n=t&&t.getRandomValues?t.getRandomValues(new Uint32Array(1))[0]&Ne:(!(n=ye())||n.userAgent===ve&&null!==me||(n=((ve=n.userAgent)||"").toLowerCase(),me=re(n,ge)||re(n,he)),me?(_e||function(){try{var e=2147483647&ce();(t=(Math.random()*Pe^e)+e)<0&&(t>>>=0),Oe=123456789+t&Ne,Ue=987654321-t&Ne,_e=!0}catch(n){}var t}(),t=((Ue=36969*(65535&Ue)+(Ue>>16)&Ne)<<16)+(65535&(Oe=18e3*(65535&Oe)+(Oe>>16)&Ne))>>>0&Ne|0,(t>>>=0)&Ne):Math.floor(Pe*Math.random()|0));return e||(n>>>=0),n}function Ve(){for(var e,t=["0","1","2","3","4","5","6","7","8","9","a","b","c","d","e","f"],n="",r=0;r<4;r++)n+=t[15&(e=We())]+t[e>>4&15]+t[e>>8&15]+t[e>>12&15]+t[e>>16&15]+t[e>>20&15]+t[e>>24&15]+t[e>>28&15];var a=t[8+(3&We())|0];return n.substr(0,8)+n.substr(9,4)+"4"+n.substr(13,3)+a+n.substr(16,3)+n.substr(19,12)}var Be={Attach:ee,AttachEvent:ee,Detach:te,DetachEvent:te},ze="_aiHooks",Xe=["req","rsp","hkErr","fnErr"];function Ge(e,t){if(e)for(var n=0;n<e.length&&!t(e[n],n);n++);}function Ke(e,i,s,u,l){0<=l&&l<=2&&Ge(e,function(e,t){var n=e.cbks;if(e=n[Xe[l]]){i.ctx=function(){return u[t]=u[t]||{}};try{e.apply(i.inst,s)}catch(a){e=i.err;try{var r=n.hkErr;r&&(i.err=a,r.apply(i.inst,s))}catch(o){}finally{i.err=e}}}})}function $e(u){return function(){var n=arguments,e=u.h,r={name:u.n,inst:this,ctx:null,set:function(e,t){(n=o([],n))[e]=t,a=o([r],n)}},t=[],a=o([r],n);function o(t,e){return Ge(e,function(e){t.push(e)}),t}Ke(e,r,a,t,0);var i=u.f;try{r.rslt=i.apply(this,n)}catch(s){throw r.err=s,Ke(e,r,a,t,3),s}return Ke(e,r,a,t,1),r.rslt}}var Je=Object.getPrototypeOf;function Ze(e,t,n,r){if(void 0===r&&(r=!0),e&&t&&n&&(e=function o(e,t,n){var r=null;return e&&(c.call(e,t)?r=e:n&&(r=o(function(e){if(e){if(Je)return Je(e);if(e=e.__proto__||e[H]||e.constructor)return e}return null}(e),t,!1))),r}(e,t,r))&&typeof(r=e[t])===i){var a=r[ze];return a||((r=$e(a={i:0,n:t,f:r,h:[]}))[ze]=a,e[t]=r),n={id:a.i,cbks:n,rm:function(){var n=this.id;Ge(a.h,function(e,t){return e.id===n&&(a.h.splice(t,1),1)})}},a.i++,a.h.push(n),n}return null}function Qe(e,t,n){var r,a,o=t.length,i=(t&&150<(t=ie(t.toString())).length&&(r=t.substring(0,150),e.throwInternal(g.WARNING,B.NameTooLong,"name is too long. It has been truncated to 150 characters.",{name:t},!0)),r||t);if(i.length!==o){for(var s=0,u=i;n[u]!==undefined;)s++,u=i.substring(0,147)+(a="00"+s).substr(a.length-3);i=u}return i}function Ye(e,t,n){var r;return void 0===n&&(n=1024),t&&(n=n||1024,(t=ie(t)).toString().length>n&&(r=t.toString().substring(0,n),e.throwInternal(g.WARNING,B.StringValueTooLong,"string value is too long. It has been truncated to "+n+" characters.",{value:t},!0))),r||t}function et(e,t){return n=e,e=t,t=B.UrlTooLong,e&&2048<(e=ie(e)).length&&(r=e.substring(0,2048),n.throwInternal(g.WARNING,t,"input is too long, it has been truncated to 2048 characters.",{data:e},!0)),r||e;var n,r}function tt(r,e){var a;return e&&(a={},ne(e,function(e,t){if(typeof t===l&&Te())try{t=Ie().stringify(t)}catch(n){r.throwInternal(g.WARNING,B.CannotSerializeObjectNonSerializable,"custom property is not valid",{exception:n},!0)}t=Ye(r,t,8192),e=Qe(r,e,a),a[e]=t}),e=a),e}function nt(e){var t=""+Math.floor((e=Math.round(e=isNaN(e)||e<0?0:e))/1e3)%60,n=""+Math.floor(e/6e4)%60,r=""+Math.floor(e/36e5)%24,a=Math.floor(e/864e5),e=1===(e=""+e%1e3).length?"00"+e:2===e.length?"0"+e:e,t=t.length<2?"0"+t:t,n=n.length<2?"0"+n:n;return(0<a?a+".":"")+(r=r.length<2?"0"+r:r)+":"+n+":"+t+"."+e}var rt,at,ot="Microsoft_ApplicationInsights_BypassAjaxInstrumentation";(at=at||{})[at.LocalStorage=0]="LocalStorage",at[at.SessionStorage=1]="SessionStorage",(at=rt=rt||{})[at.AI=0]="AI",at[at.AI_AND_W3C=1]="AI_AND_W3C",at[at.W3C=2]="W3C";var it=(typeof document===l&&document?document:xe("document"))||{},st=0,ut=[null,null,null,null,null];function lt(e){var t,n,r=st,a=ut,o=a[r];return it.createElement?a[r]||(o=a[r]=it.createElement("a")):o={host:(t=ct(t=e,!0)||"")&&null!=(n=t.match(/(www[0-9]?\.)?(.[^/:]+)(\:[\d]+)?/i))&&3<n.length&&ae(n[2])&&0<n[2].length?n[2]+(n[3]||""):t},o.href=e,++r>=a.length&&(r=0),st=r,o}function ct(e,t){var n=null;return!e||null!=(e=e.match(/(\w*):\/\/(.[^/:]+)(\:[\d]+)?/i))&&2<e.length&&ae(e[2])&&0<e[2].length&&(n=e[2]||"",t&&2<e.length&&(t=(e[1]||"").toLowerCase(),e=e[3]||"",n+=e="http"==t&&":80"===e||"https"==t&&":443"===e?"":e)),n}var dt={correlationIdPrefix:"cid-v1:",canIncludeCorrelationHeader:function(e,t,n){if(!t||e&&e.disableCorrelationHeaders)return!1;if(e&&e.correlationHeaderExcludePatterns)for(var r=0;r<e.correlationHeaderExcludePatterns.length;r++)if(e.correlationHeaderExcludePatterns[r].test(t))return!1;var a,o=lt(t).host.toLowerCase();if(o&&(~o.indexOf(":443")||~o.indexOf(":80"))&&(o=(ct(t,!0)||"").toLowerCase()),(!e||!e.enableCorsCorrelation)&&o&&o!==n)return!1;if((n=e&&e.correlationHeaderDomains)&&(oe(n,function(e){e=RegExp(e.toLowerCase().replace(/\\/g,"\\\\").replace(/\./g,"\\.").replace(/\*/g,".*")),a=a||e.test(o)}),!a))return!1;var i=e&&e.correlationHeaderExcludedDomains;if(!i||0===i.length)return!0;for(r=0;r<i.length;r++)if(RegExp(i[r].toLowerCase().replace(/\\/g,"\\\\").replace(/\./g,"\\.").replace(/\*/g,".*")).test(o))return!1;return o&&0<o.length},getCorrelationContext:function(e){if((e=e&&dt.getCorrelationContextValue(e,"appId"))&&e!==dt.correlationIdPrefix)return e},getCorrelationContextValue:function(e,t){if(e)for(var n=e.split(","),r=0;r<n.length;++r){var a=n[r].split("=");if(2===a.length&&a[0]===t)return a[1]}}};function ft(){var e=Ce();return e&&e.now&&e.timing&&0<(e=e.now()+e.timing.navigationStart)?e:ce()}function pt(e,t){return 0===e||0===t||Q(e)||Q(t)?null:t-e}var gt,ht=(p(mt,gt=function(){this.ver=2,this.success=!0,this.properties={},this.measurements={}}),mt.envelopeType="Microsoft.ApplicationInsights.{0}.RemoteDependency",mt.dataType="RemoteDependencyData",mt);function mt(e,t,n,r,a,o,i,s,u,l,c,d){void 0===u&&(u="Ajax");var f=gt.call(this)||this;f.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},f.id=t,f.duration=nt(a),f.success=o,f.resultCode=i+"",f.type=Ye(e,u);var p,g,h,m,i=(p=e,t=s,i=o=a=r,o=(u=n)&&0<u.length?(g=(s=lt(u)).host,o||(null!=s.pathname?("/"!=((n=0===s.pathname.length?"/":s.pathname)[0]||"")&&(n="/"+n),i=s.pathname,Ye(p,t?t+" "+n:n)):Ye(p,u))):g=a,{target:g,name:o,data:i});return f.data=et(e,r)||i.data,f.target=Ye(e,i.target),l&&(f.target=f.target+" | "+l),f.name=Ye(e,i.name),f.properties=tt(e,c),f.measurements=(h=e,d&&(m={},ne(d,function(e,t){e=Qe(h,e,m),m[e]=t}),d=m),d),f}var vt=(xt.create=function(e,t,n,r,a,o){if(n=Ye(r,n)||"not_specified",Q(e)||Q(t)||Q(n))throw Error("Input doesn't contain all required fields");var i={name:n,time:function(e){if("[object Date]"===J(e)){var t=function(e){return 1===(e=""+e).length?"0"+e:e};return e.getUTCFullYear()+"-"+t(1+e.getUTCMonth())+"-"+t(e.getUTCDate())+"T"+t(e.getUTCHours())+":"+t(e.getUTCMinutes())+":"+t(e.getUTCSeconds())+"."+(""+(e.getUTCMilliseconds()/1e3).toFixed(3)).slice(2,5)+"Z"}}(new Date),iKey:"",ext:o||{},tags:[],data:{},baseType:t,baseData:e};return Q(a)||ne(a,function(e,t){i.data[e]=t}),i},xt);function xt(){}var yt="properties";function Ct(e,t,n){t=e[t],e=e[n];return t&&e?pt(t,e):0}function Tt(e,t,n,r,a){return(a=Ct(n,r,a))?It(e,t,nt(a)):0}function It(e,t,n){var r="ajaxPerf",a=0;return e&&t&&n&&((e[r]=e[r]||{})[t]=n,a=1),a}var bt=function(){var e=this;e.openDone=!1,e.setRequestHeaderDone=!1,e.sendDone=!1,e.abortDone=!1,e.stateChangeAttached=!1},At=function Vt(e,t,n){var r=this,a=n,x="responseText";r.perfMark=null,r.completed=!1,r.requestHeadersSize=null,r.requestHeaders=null,r.responseReceivingDuration=null,r.callbackDuration=null,r.ajaxTotalDuration=null,r.aborted=0,r.pageUrl=null,r.requestUrl=null,r.requestSize=0,r.method=null,r.status=null,r.requestSentTime=null,r.responseStartedTime=null,r.responseFinishedTime=null,r.callbackFinishedTime=null,r.endTime=null,r.xhrMonitoringState=new bt,r.clientFailure=0,r.traceID=e,r.spanID=t,V(Vt,r,function(v){v.getAbsoluteUrl=function(){return v.requestUrl?(e=lt(v.requestUrl))?e.href:void 0:null;var e},v.getPathName=function(){return v.requestUrl?et(a,(e=v.method,t=v.requestUrl,e?e.toUpperCase()+" "+t:t)):null;var e,t},v.CreateTrackItem=function(e,t,n){return v.ajaxTotalDuration=Math.round(1e3*pt(v.requestSentTime,v.responseFinishedTime))/1e3,v.ajaxTotalDuration<0?null:((e={id:"|"+v.traceID+"."+v.spanID,target:v.getAbsoluteUrl(),name:v.getPathName(),type:e,startTime:null,duration:v.ajaxTotalDuration,success:200<=+v.status&&+v.status<400,responseCode:+v.status,method:v.method})[yt]={HttpMethod:v.method},v.requestSentTime&&(e.startTime=new Date,e.startTime.setTime(v.requestSentTime)),a=e,i=(r=v).perfTiming,s=a[yt]||{},u=0,l="startTime",c="connect"+"End",d="request"+"Start",f="response"+"End",p="transferSize",g="encodedBodySize",h="decodedBodySize",m="serverTiming",i?(u|=Tt(s,"End",i,"redirectStart","End"),u|=Tt(s,"domainLookup",i,"domainLookupStart","domainLookupEnd"),u|=Tt(s,"connect",i,"connectStart",c),u|=Tt(s,"request",i,d,"requestEnd"),u|=Tt(s,"response",i,"responseStart",f),u|=Tt(s,"networkConnect",i,l,c),u|=Tt(s,"sentRequest",i,d,f),u|=It(s,"duration",f=i.duration||Ct(i,l,f)||0),u|=It(s,"perfTotal",f),(f=i[m])&&(o={},oe(f,function(e,t){var n,r,t=(n=e.name||""+t,(r=/([^\w\d_$])/g).test(t=n)?n.replace(r,"_"):t),a=o[t]||{};ne(e,function(e,t){("name"!==e&&ae(t)||"number"==typeof t)&&(!(t=a[e]?a[e]+";"+t:t)&&ae(t)||(a[e]=t))}),o[t]=a}),u|=It(s,m,o)),u|=It(s,p,i[p]),u|=It(s,g,i[g]),u|=It(s,h,i[h])):r.perfMark&&(u|=It(s,"missing",r.perfAttempts)),u&&(a[yt]=s),t&&0<le(v.requestHeaders).length&&(e[yt]=e[yt]||{},e[yt].requestHeaders=v.requestHeaders),!n||(t=n())&&((n=t.correlationContext)&&(e.correlationContext=n),t.headerMap&&0<le(t.headerMap).length&&(e[yt]=e[yt]||{},e[yt].responseHeaders=t.headerMap),400<=v.status&&(n=t.type,e[yt]=e[yt]||{},""!==n&&"text"!==n||(e[yt][x]=t[x]?t.statusText+" - "+t[x]:t.statusText),"json"===n&&(e[yt][x]=t.response?t.statusText+" - "+JSON.stringify(t.response):t.statusText))),e);var r,a,o,i,s,u,l,c,d,f,p,g,h,m}})},St=(wt.isValidTraceId=function(e){return e.match(/^[0-9a-f]{32}$/)&&"00000000000000000000000000000000"!==e},wt.isValidSpanId=function(e){return e.match(/^[0-9a-f]{16}$/)&&"0000000000000000"!==e},wt.prototype.toString=function(){return this.version+"-"+this.traceId+"-"+this.spanId+"-"+this.traceFlag},wt.DEFAULT_TRACE_FLAG="01",wt.DEFAULT_VERSION="00",wt);function wt(e,t){var n=this;n.traceFlag=wt.DEFAULT_TRACE_FLAG,n.version=wt.DEFAULT_VERSION,e&&wt.isValidTraceId(e)?n.traceId=e:n.traceId=Ve(),t&&wt.isValidSpanId(t)?n.spanId=t:n.spanId=Ve().substr(0,16)}var qt="ai.ajxmn.",Mt="diagLog",Rt="ajaxData",Ft="throwInternal",Dt="fetch",Lt=0;function Et(e){var t=!1;typeof XMLHttpRequest===s||Q(XMLHttpRequest)||(t=!(Q(a=XMLHttpRequest[H])||Q(a.open)||Q(a.send)||Q(a.abort)));var n,r,a=re(n=((n=(n=void 0===n?null:n)?n:(r=ye()||{})?(r.userAgent||"").toLowerCase():"")||"").toLowerCase(),ge)?parseInt(n.split(ge)[1]):re(n,he)&&(n=parseInt(n.split(he)[1]))?n+4:null;if(t=!(a&&a<9)&&t)try{(new XMLHttpRequest)[Rt]={};var o=XMLHttpRequest[H].open;XMLHttpRequest[H].open=o}catch(i){t=!1,kt(e,B.FailedMonitorAjaxOpen,"Failed to enable XMLHttpRequest monitoring, extension is not supported",{exception:be(i)})}return t}function jt(e){var t="";try{Q(e)||Q(e[Rt])||Q(e[Rt].requestUrl)||(t+="(url: '"+e[Rt].requestUrl+"')")}catch(n){}return t}function kt(e,t,n,r,a){e[Mt]()[Ft](g.CRITICAL,t,n,r,a)}function Ht(e,t,n,r,a){e[Mt]()[Ft](g.WARNING,t,n,r,a)}function Pt(t,n,r){return function(e){kt(t,n,r,{ajaxDiagnosticsMessage:jt(e.inst),exception:be(e.err)})}}function Nt(e,t){return e&&t?e.indexOf(t):-1}var _t,a=(p(Ot,_t=a),Ot.getDefaultConfig=function(){return{maxAjaxCallsPerView:500,disableAjaxTracking:!1,disableFetchTracking:!0,excludeRequestFromAutoTrackingPatterns:undefined,disableCorrelationHeaders:!1,distributedTracingMode:rt.AI_AND_W3C,correlationHeaderExcludedDomains:["*.blob.core.windows.net","*.blob.core.chinacloudapi.cn","*.blob.core.cloudapi.de","*.blob.core.usgovcloudapi.net"],correlationHeaderDomains:undefined,correlationHeaderExcludePatterns:undefined,appId:undefined,enableCorsCorrelation:!1,enableRequestHeaderTracking:!1,enableResponseHeaderTracking:!1,enableAjaxErrorStatusText:!1,enableAjaxPerfTracking:!1,maxAjaxPerfLookupAttempts:3,ajaxPerfLookupDelay:25,ignoreHeaders:["Authorization","X-API-Key","WWW-Authenticate"],addRequestContext:undefined}},Ot.getEmptyConfig=function(){var t=this.getDefaultConfig();return ne(t,function(e){t[e]=undefined}),t},Ot.prototype.processTelemetry=function(e,t){this.processNext(e,t)},Ot.identifier="AjaxDependencyPlugin",Ot);function Ot(){var e=_t.call(this)||this;e.identifier=Ot.identifier,e.priority=120;var T,I,b,A,S,w,q="trackDependencyDataInternal",t=typeof location===l&&location?location:xe("location"),M=!1,R=!1,u=t&&t.host&&t.host.toLowerCase(),F=Ot.getEmptyConfig(),D=!1,r=0,L=!1,E=0,j=!1,k=[],s={};return V(Ot,e,function(l,c){function d(t){var n=!0;return(t||F.ignoreHeaders)&&oe(F.ignoreHeaders,function(e){if(e.toLowerCase()==t.toLowerCase())return n=!1,-1}),n}function f(e,t,n){k.push(e?Ze(e[H],t,n,!1):null)}function p(e,t,n){var r=!1,a=((ae(t)?t:(t||{}).url||"")||"").toLowerCase();if(oe(S,function(e){var t=e;ae(e)&&(t=RegExp(e)),r=r||t.test(a)}),r)return r;var o=Nt(a,"?"),i=Nt(a,"#");return-1!==(o=-1===o||-1!==i&&i<o?i:o)&&(a=a.substring(0,o)),Q(e)?Q(t)||(r="object"==typeof t&&!0===t[ot]||!!n&&!0===n[ot]):r=!0===e[ot]||!0===a[ot],r?s[a]||(s[a]=1):s[a]&&(r=!0),r}function g(e,t){var n=!0,r=R;return Q(e)||(n=!0===t||!Q(e[Rt])),r&&n}function h(n){n[Rt].xhrMonitoringState.stateChangeAttached=Be.Attach(n,"readystatechange",function(){try{n&&4===n.readyState&&g(n)&&((o=(a=n)[Rt]).responseFinishedTime=ft(),o.status=a.status,v("xmlhttprequest",o,function(){try{var e=o.CreateTrackItem("Ajax",D,function(){var e,n,t={statusText:a.statusText,headerMap:null,correlationContext:i(a),type:a.responseType,responseText:function(e){try{var t=e.responseType;if(""===t||"text"===t)return e.responseText}catch(n){}return null}(a),response:a.response};return!j||(e=a.getAllResponseHeaders())&&(e=ie(e).split(/[\r\n]+/),n={},oe(e,function(e){var e=(t=e.split(": ")).shift(),t=t.join(": ");d(e)&&(n[e]=t)}),t.headerMap=n),t}),t=void 0;try{w&&(t=w({status:a.status,xhr:a}))}catch(n){Ht(l,B.FailedAddingCustomDefinedRequestContext,"Failed to add custom defined request context as configured call back may missing a null check.")}e?(t!==undefined&&(e.properties=N(N({},e.properties),t)),l[q](e)):r(null,{requestSentTime:o.requestSentTime,responseFinishedTime:o.responseFinishedTime})}finally{try{a[Rt]=null}catch(n){}}},function(e){r(e,null)}))}catch(t){var e=be(t);e&&-1!==Nt(e.toLowerCase(),"c00c023f")||kt(l,B.FailedMonitorAjaxRSC,"Failed to monitor XMLHttpRequest 'readystatechange' event handler, monitoring data for this ajax call may be incorrect.",{ajaxDiagnosticsMessage:jt(n),exception:e})}function r(e,t){(t=t||{}).ajaxDiagnosticsMessage=jt(a),e&&(t.exception=be(e)),Ht(l,B.FailedMonitorAjaxDur,"Failed to calculate the duration of the ajax call, monitoring data for this ajax call won't be sent.",t)}var a,o})}function i(e){try{var t=e.getAllResponseHeaders();if(null!==t&&-1!==Nt(t.toLowerCase(),"request-context")){var n=e.getResponseHeader("Request-Context");return dt.getCorrelationContext(n)}}catch(r){Ht(l,B.FailedMonitorAjaxGetCorrelationHeader,"Failed to get Request-Context correlation header as it may be not included in the response or not accessible.",{ajaxDiagnosticsMessage:jt(e),exception:be(r)})}}function m(e,t){var n;t.requestUrl&&A&&L&&(n=Ce())&&Y(n.mark)&&(e=A+e+"#"+ ++Lt,n.mark(e),(n=n.getEntriesByName(e))&&1===n.length&&(t.perfMark=n[0]))}function v(o,i,s,u){var l=i.perfMark,c=Ce(),d=F.maxAjaxPerfLookupAttempts,f=F.ajaxPerfLookupDelay,p=i.requestUrl,g=0;!function h(){try{if(c&&l){g++;for(var e=null,t=c.getEntries(),n=t.length-1;0<=n;n--){var r=t[n];if(r){if("resource"===r.entryType)r.initiatorType!==o||-1===Nt(r.name,p)&&-1===Nt(p,r.name)||(e=r);else if("mark"===r.entryType&&r.name===l.name){i.perfTiming=e;break}if(r.startTime<l.startTime-1e3)break}}}!l||i.perfTiming||d<=g||!1===i["async"]?(l&&Y(c.clearMarks)&&c.clearMarks(l.name),i.perfAttempts=g,s()):setTimeout(h,f)}catch(a){u(a)}}()}function x(e){var t="";try{Q(e)||(t+="string"==typeof e?"(url: '"+e+"')":"(url: '"+e.url+"')")}catch(n){kt(l,B.FailedMonitorAjaxOpen,"Failed to grab failed fetch diagnostics message",{exception:be(n)})}return t}function y(e,r,a,o,i,s){function u(e,t,n){(n=n||{}).fetchDiagnosticsMessage=x(a),t&&(n.exception=be(t)),Ht(l,e,"Failed to calculate the duration of the fetch call, monitoring data for this fetch call won't be sent.",n)}i&&(i.responseFinishedTime=ft(),i.status=r,v("fetch",i,function(){var e,t=i.CreateTrackItem("Fetch",D,s);try{w&&(e=w({status:r,request:a,response:o}))}catch(n){Ht(l,B.FailedAddingCustomDefinedRequestContext,"Failed to add custom defined request context as configured call back may missing a null check.")}t?(e!==undefined&&(t.properties=N(N({},t.properties),e)),l[q](t)):u(B.FailedMonitorAjaxDur,null,{requestSentTime:i.requestSentTime,responseFinishedTime:i.responseFinishedTime})},function(e){u(B.FailedMonitorAjaxGetCorrelationHeader,e,null)}))}function C(e){if(e&&e.headers)try{var t=e.headers.get("Request-Context");return dt.getCorrelationContext(t)}catch(n){Ht(l,B.FailedMonitorAjaxGetCorrelationHeader,"Failed to get Request-Context correlation header as it may be not included in the response or not accessible.",{fetchDiagnosticsMessage:x(e),exception:be(n)})}}l.initialize=function(e,t,n,r){if(!l.isInitialized()){c.initialize(e,t,n,r);var a=l._getTelCtx();if(ne(Ot.getDefaultConfig(),function(e,t){F[e]=a.getConfig(Ot.identifier,e,t)}),r=F.distributedTracingMode,D=F.enableRequestHeaderTracking,L=F.enableAjaxPerfTracking,E=F.maxAjaxCallsPerView,j=F.enableResponseHeaderTracking,S=F.excludeRequestFromAutoTrackingPatterns,w=F.addRequestContext,b=r===rt.AI||r===rt.AI_AND_W3C,I=r===rt.AI_AND_W3C||r===rt.W3C,L&&(s=e.instrumentationKey||"unkwn",A=5<s.length?qt+s.substring(s.length-5)+".":qt+s+"."),!1===F.disableAjaxTracking&&Et(l)&&!R&&(f(XMLHttpRequest,"open",{req:function(e,t,n,r){var a=e.inst,o=a[Rt];p(a,n)||!g(a,!0)||o&&o.xhrMonitoringState.openDone||(e=a,o=t,a=n,t=r,n=T&&T.telemetryTrace&&T.telemetryTrace.traceID||Ve(),r=Ve().substr(0,16),(r=new At(n,r,l[Mt]())).method=o,r.requestUrl=a,r.xhrMonitoringState.openDone=!0,r.requestHeaders={},r["async"]=t,e[Rt]=r,h(e))},hkErr:Pt(l,B.FailedMonitorAjaxOpen,"Failed to monitor XMLHttpRequest.open, monitoring data for this ajax call may be incorrect.")}),f(XMLHttpRequest,"send",{req:function(e,t){var n=e.inst,e=n[Rt];g(n)&&!e.xhrMonitoringState.sendDone&&(m("xhr",e),e.requestSentTime=ft(),l.includeCorrelationHeaders(e,undefined,undefined,n),e.xhrMonitoringState.sendDone=!0)},hkErr:Pt(l,B.FailedMonitorAjaxSend,"Failed to monitor XMLHttpRequest, monitoring data for this ajax call may be incorrect.")}),f(XMLHttpRequest,"abort",{req:function(e){var t=e.inst,e=t[Rt];g(t)&&!e.xhrMonitoringState.abortDone&&(e.aborted=1,e.xhrMonitoringState.abortDone=!0)},hkErr:Pt(l,B.FailedMonitorAjaxAbort,"Failed to monitor XMLHttpRequest.abort, monitoring data for this ajax call may be incorrect.")}),D&&f(XMLHttpRequest,"setRequestHeader",{req:function(e,t,n){g(e=e.inst)&&d(t)&&(e[Rt].requestHeaders[t]=n)},hkErr:Pt(l,B.FailedMonitorAjaxSetRequestHeader,"Failed to monitor XMLHttpRequest.setRequestHeader, monitoring data for this ajax call may be incorrect.")}),R=!0),(e=!(r=P())||Q(r.Request)||Q(r.Request[H])||Q(r[Dt])?null:r[Dt])&&(s=P(),u=e.polyfill,!1===F.disableFetchTracking?(k.push(Ze(s,Dt,{req:function(e,t,n){var r,a;!M||p(null,t,n)||u&&R||(r=e.ctx(),a=function(e,t){var n=T&&T.telemetryTrace&&T.telemetryTrace.traceID||Ve(),r=Ve().substr(0,16);(n=new At(n,r,l[Mt]())).requestSentTime=ft(),e instanceof Request?n.requestUrl=e?e.url:"":n.requestUrl=e,r="GET",t&&t.method?r=t.method:e&&e instanceof Request&&(r=e.method),n.method=r;var a={};return D&&new Headers((t?t.headers:0)||e instanceof Request&&e.headers||{}).forEach(function(e,t){d(t)&&(a[t]=e)}),n.requestHeaders=a,m("fetch",n),n}(t,n),(t=l.includeCorrelationHeaders(a,t,n))!==n&&e.set(1,t),r.data=a)},rsp:function(e,n){var r=e.ctx().data;r&&(e.rslt=e.rslt.then(function(t){return y(0,(t||{}).status,n,t,r,function(){var n,e={statusText:t.statusText,headerMap:null,correlationContext:C(t)};return j&&(n={},t.headers.forEach(function(e,t){d(t)&&(n[t]=e)}),e.headerMap=n),e}),t})["catch"](function(e){throw y(0,0,n,null,r,null,e.message),e}))},hkErr:Pt(l,B.FailedMonitorAjaxOpen,"Failed to monitor Window.fetch, monitoring data for this fetch call may be incorrect.")})),M=!0):u&&k.push(Ze(s,Dt,{req:function(e,t,n){p(null,t,n)}})),u&&(s[Dt].polyfill=u)),0<n.length&&n){for(var o=void 0,i=0;!o&&i<n.length;)n[i]&&"AppInsightsPropertiesPlugin"===n[i].identifier&&(o=n[i]),i++;o&&(T=o.context)}}var s,u},l.teardown=function(){oe(k,function(e){e.rm()}),R=M=!(k=[]),l.setInitialized(!1)},l.trackDependencyData=function(e,t){l[q](e,t)},l.includeCorrelationHeaders=function(e,t,n,r){var a,o,i,s=l._currentWindowHost||u;return t?(dt.canIncludeCorrelationHeader(F,e.getAbsoluteUrl(),s)&&((n=n||{}).headers=new Headers(n.headers||t instanceof Request&&t.headers||{}),b&&(a="|"+e.traceID+"."+e.spanID,n.headers.set("Request-Id",a),D&&(e.requestHeaders["Request-Id"]=a)),(o=F.appId||T&&T.appId())&&(n.headers.set("Request-Context","appId=cid-v1:"+o),D&&(e.requestHeaders["Request-Context"]="appId=cid-v1:"+o)),I&&(i=new St(e.traceID,e.spanID),n.headers.set("traceparent",i.toString()),D&&(e.requestHeaders.traceparent=i.toString()))),n):r?(dt.canIncludeCorrelationHeader(F,e.getAbsoluteUrl(),s)&&(b&&(a="|"+e.traceID+"."+e.spanID,r.setRequestHeader("Request-Id",a),D&&(e.requestHeaders["Request-Id"]=a)),(o=F.appId||T&&T.appId())&&(r.setRequestHeader("Request-Context","appId=cid-v1:"+o),D&&(e.requestHeaders["Request-Context"]="appId=cid-v1:"+o)),I&&(i=new St(e.traceID,e.spanID),r.setRequestHeader("traceparent",i.toString()),D&&(e.requestHeaders.traceparent=i.toString()))),r):undefined},l[q]=function(e,t,n){-1===E||r<E?(F.distributedTracingMode!==rt.W3C&&F.distributedTracingMode!==rt.AI_AND_W3C||"string"!=typeof e.id||"."===e.id[e.id.length-1]||(e.id+="."),Q(e.startTime)&&(e.startTime=new Date),n=vt.create(e,ht.dataType,ht.envelopeType,l[Mt](),t,n),l.core.track(n)):r===E&&kt(l,B.MaxAjaxPerPVExceeded,"Maximum ajax per page view limit reached, ajax monitoring is paused until the next trackPageView(). In order to increase the limit set the maxAjaxCallsPerView configuration parameter.",!0),++r}}),e}e.AjaxPlugin=a,e.ajaxRecord=At,function(e,t,n){var r=Object.defineProperty;if(r)try{return r(e,t,n)}catch(a){}typeof n.value!==undefined&&(e[t]=n.value)}(e,"__esModule",{value:!0})};"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t(((e="undefined"!=typeof globalThis?globalThis:e||self).Microsoft=e.Microsoft||{},e.Microsoft.ApplicationInsights=e.Microsoft.ApplicationInsights||{})); | ||
var e=this,t=function(e){"use strict";var i="function",l="object",r="undefined",P="prototype",o="hasOwnProperty",n=Object,s=n[P],t=n.assign,a=n.create,u=n.defineProperty,c=s[o];function N(){return typeof globalThis!==r&&globalThis?globalThis:typeof self!==r&&self?self:typeof window!==r&&window?window:typeof global!==r&&global?global:null}function d(e){throw new TypeError(e)}(N()||{}).Symbol,(N()||{}).Reflect;var _=t||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var a in t=arguments[n])s[o].call(t,a)&&(e[a]=t[a]);return e},f=function(e,t){return(f=n.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t[o](n)&&(e[n]=t[n])})(e,t)};function p(e,t){function n(){this.constructor=e}typeof t!==i&&null!==t&&d("Class extends value "+t+" is not a constructor or null"),f(e,t),e[P]=null===t?function(e){if(a)return a(e);if(null==e)return{};var t=typeof e;function n(){}return t!==l&&t!==i&&d("Object prototype may only be an Object:"+e),n[P]=e,new n}(t):(n[P]=t[P],new n)}var g,h="constructor",m="prototype",v="function",x="_dynInstFuncs",y="_isDynProxy",C="_dynClass",T="_dynInstChk",I=T,b="_dfOpts",A="_unknown_",S="__proto__",w="useBaseInst",q="setInstFuncs",M=Object,R=M.getPrototypeOf,F=0;function D(e,t){return e&&M[m].hasOwnProperty.call(e,t)}function L(e){return e&&(e===M[m]||e===Array[m])}function E(e){return L(e)||e===Function[m]}function j(e){if(e){if(R)return R(e);if(e=e[S]||e[m]||(e[h]?e[h][m]:null))return e}return null}function k(e,t){var n=[],r=M.getOwnPropertyNames;if(r)n=r(e);else for(var a in e)"string"==typeof a&&D(e,a)&&n.push(a);if(n&&0<n.length)for(var o=0;o<n.length;o++)t(n[o])}function H(e,t,n){return t!==h&&typeof e[t]===v&&(n||D(e,t))}function O(e){throw new TypeError("DynamicProto: "+e)}function U(e,t){for(var n=e.length-1;0<=n;n--)if(e[n]===t)return 1}function W(e,t){return D(e,m)?e.name||t||A:((e||{})[h]||{}).name||t||A}function V(e,r,t,n){D(e,m)||O("theClass is an invalid class definition.");var a=e[m];!function(e){if(R)for(var t=[],n=j(r);n&&!E(n)&&!U(t,n);){if(n===e)return 1;t.push(n),n=j(n)}}(a)&&O("["+W(e)+"] is not in class hierarchy of ["+W(r)+"]");var o=null;D(a,C)?o=a[C]:(o="_dynCls$"+W(e,"_")+"$"+F,F++,a[C]=o);var i=V[b],s=!!i[w];s&&n&&n[w]!==undefined&&(s=!!n[w]);var u,l,c,d,f,p,e=(l={},k(u=r,function(e){!l[e]&&H(u,e,!1)&&(l[e]=u[e])}),l);t(r,function(e,t,n,o){function r(e,t,n){var r,a=t[n];return a[y]&&o&&!1!==(r=e[x]||{})[I]&&(a=(r[t[C]]||{})[n]||a),function(){return a.apply(e,arguments)}}var a={};k(n,function(e){a[e]=r(t,n,e)});for(var i=j(e),s=[];i&&!E(i)&&!U(s,i);)k(i,function(e){!a[e]&&H(i,e,!R)&&(a[e]=r(t,i,e))}),s.push(i),i=j(i);return a}(a,r,e,s)),i=!!R&&!!i[q],c=a,o=o,d=r,f=e,n=!1!==(i=i&&n?!!n[q]:i),L(c)||(i=d[x]=d[x]||{},p=i[o]=i[o]||{},!1!==i[I]&&(i[I]=!!n),k(d,function(e){var n,r,a;H(d,e,!1)&&d[e]!==f[e]&&(p[e]=d[e],delete d[e],D(c,e)&&(!c[e]||c[e][y])||(c[e]=(n=c,r=e,(a=function(){var e,t;return(function(e,t,n,r){var a=null;if(e&&D(n,C)){var o=e[x]||{};if((a=(o[n[C]]||{})[t])||O("Missing ["+t+"] "+v),!a[T]&&!1!==o[I]){for(var i=!D(e,t),s=j(e),u=[];i&&s&&!E(s)&&!U(u,s);){var l=s[t];if(l){i=l===r;break}u.push(s),s=j(s)}try{i&&(e[t]=a),a[T]=1}catch(c){o[I]=!1}}}return a}(this,r,n,a)||(typeof(t=(t=n[e=r])===a?j(n)[e]:t)!==v&&O("["+e+"] is not a "+v),t)).apply(this,arguments)})[y]=1,a)))}))}V[b]={setInstFuncs:!0,useBaseInst:!0},(t=g=g||{})[t.CRITICAL=1]="CRITICAL",t[t.WARNING=2]="WARNING";var B={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},z="attachEvent",K="addEventListener",G=u;function X(e){return s.toString.call(e)}function $(e){return e===undefined||typeof e===r}function J(e){return null===e||$(e)}function Z(e){return typeof e===i}function Q(e,t){if(e)for(var n in e)c.call(e,n)&&t.call(e,n,e[n])}function Y(e,t){return!(!e||!t||!~e.indexOf(t))}function ee(e){return"string"==typeof e}function te(e,t,n){var r=e.length;try{for(var a=0;a<r&&!(a in e&&-1===t.call(n||e,e[a],a,e));a++);}catch(o){}}function ne(e){return"string"!=typeof e?e:e.replace(/^\s+|\s+$/g,"")}var re=!{toString:null}.propertyIsEnumerable("toString"),ae=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"];function oe(e){var t=typeof e;t===i||t===l&&null!==e||d("objKeys called on non-object");var n,r=[];for(n in e)e&&c.call(e,n)&&r.push(n);if(re)for(var a=ae.length,o=0;o<a;o++)e&&c.call(e,ae[o])&&r.push(ae[o]);return r}function ie(){var e=Date;return e.now?e.now():(new e).getTime()}var se="window",ue="performance",le="JSON",ce="msie",de="trident/",fe=null,pe=null;function ge(e){var t=N();return t&&t[e]?t[e]:e===se&&typeof window===l&&window?window:null}function he(){return typeof navigator===l&&navigator?navigator:ge("navigator")}function me(){return ge(ue)}function ve(){return typeof JSON===l&&JSON||null!==ge(le)}function xe(){return ve()?JSON||ge(le):null}function ye(e){var t=Object[P].toString.call(e),n="";return"[object Error]"===t?n="{ stack: '"+e.stack+"', message: '"+e.message+"', name: '"+e.name+"'":ve()&&(n=xe().stringify(e)),t+n}function Ce(e){return e?'"'+e.replace(/\"/g,"")+'"':""}var Te=(Ie.dataType="MessageData",Ie);function Ie(e,t,n,r){void 0===n&&(n=!1),this.messageId=e,this.message=(n?"AI: ":"AI (Internal): ")+e,e="",ve()&&(e=xe().stringify(r)),e=(t?" message:"+Ce(t):"")+(r?" props:"+Ce(e):""),this.message+=e}var be=function Nt(n){this.identifier="DiagnosticLogger",this.queue=[];var a=0,i={};V(Nt,this,function(o){function e(e,t){return J(e=n[e])?t:e}J(n)&&(n={}),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,t,n,r,a){if(n=new Te(t,n,a=void 0!==a&&a,r),o.enableDebugExceptions())throw n;$(n.message)||(r=o.consoleLoggingLevel(),a?(a=+n.messageId,!i[a]&&r>=g.WARNING&&(o.warnToConsole(n.message),i[a]=!0)):r>=g.WARNING&&o.warnToConsole(n.message),o.logInternalMessage(e,n))},o.warnToConsole=function(e){var t,n=typeof console!==r?console:ge("console");n&&(t="log",Z(n[t=n.warn?"warn":t])&&n[t](e))},o.resetInternalMessageCount=function(){a=0,i={}},o.logInternalMessage=function(e,t){var n,r;a>=o.maxInternalMessageLimit()||(n=!0,r="AITR_"+t.messageId,i[r]?n=!1:i[r]=!0,n&&(e<=o.telemetryLoggingLevel()&&(o.queue.push(t),a++),a===o.maxInternalMessageLimit()&&(t=new Te(B.MessageLimitPerPVExceeded,e="Internal events throttle limit per PageView reached for this app.",!1),o.queue.push(t),o.warnToConsole(e))))}})},Ae=(Se.ParentContextKey="parent",Se.ChildrenContextKey="childEvts",Se);function Se(e,a,t){var r,o=this,i=!1;o.start=ie(),o.name=e,o.isAsync=t,o.isChildEvt=function(){return!1},Z(a)&&(i=function(e){if(G)try{var t={enumerable:!0,configurable:!0,get:function(){return!r&&Z(a)&&(r=a(),a=null),r}};return G(e,"payload",t),!0}catch(n){}return!1}(o)),o.getCtx=function(e){return e?(e===Se.ParentContextKey||e===Se.ChildrenContextKey?o:o.ctx||{})[e]:null},o.setCtx=function(e,t){e&&(e===Se.ParentContextKey?(o[e]||(o.isChildEvt=function(){return!0}),o[e]=t):e===Se.ChildrenContextKey?o[e]=t:(o.ctx=o.ctx||{})[e]=t)},o.complete=function(){var e=0,t=o.getCtx(Se.ChildrenContextKey);if("[object Array]"===X(t))for(var n=0;n<t.length;n++){var r=t[n];r&&(e+=r.time)}o.time=ie()-o.start,o.exTime=o.time-e,o.complete=function(){},!i&&Z(a)&&(o.payload=a())}}var we="CoreUtils.doPerf";function qe(e,t,n,r,a){if(e){var o=e;if(o=Z(o.getPerfMgr)?o.getPerfMgr():o){var i,s=void 0,e=o.getCtx(we);try{if(s=o.create(t(),r,a))return e&&s.setCtx&&(s.setCtx(Ae.ParentContextKey,e),e.getCtx&&e.setCtx&&((i=e.getCtx(Ae.ChildrenContextKey))||(i=[],e.setCtx(Ae.ChildrenContextKey,i)),i.push(s))),o.setCtx(we,s),n(s)}catch(u){s&&s.setCtx&&s.setCtx("exception",u)}finally{s&&o.fire(s),o.setCtx(we,e)}}}return n()}var Me=function(a,t){var o=this,i=null,s=Z(a.processTelemetry),u=Z(a.setNextPlugin);o._hasRun=!1,o.getPlugin=function(){return a},o.getNext=function(){return i},o.setNext=function(e){i=e},o.processTelemetry=function(n,r){r=r||t;var e=a?a.identifier:"TelemetryPluginChain";qe(r?r.core():null,function(){return e+":processTelemetry"},function(){if(a&&s){o._hasRun=!0;try{r.setNext(i),u&&a.setNextPlugin(i),i&&(i._hasRun=!1),a.processTelemetry(n,r)}catch(t){var e=i&&i._hasRun;i&&e||r.diagLog().throwInternal(g.CRITICAL,B.PluginException,"Plugin ["+a.identifier+"] failed during processTelemetry - "+ye(t)),i&&!e&&i.processTelemetry(n,r)}}else i&&(o._hasRun=!0,i.processTelemetry(n,r))},function(){return{item:n}},!n.sync)}};function Re(e,t){var n=[];if(e&&0<e.length)for(var r=null,a=0;a<e.length;a++){var o=e[a];o&&Z(o.processTelemetry)&&(o=new Me(o,t),n.push(o),r&&r.setNext(o),r=o)}return 0<n.length?n[0]:null}var Fe=function _t(e,a,n,t){var r,o,i,s,u=this,l=null;null!==t&&(e&&Z(e.getPlugin)?l=function(e,t,n){var r=[],a=!n;if(e)for(;e;){var o=e.getPlugin();!a&&o!==n||(a=!0,r.push(o)),e=e.getNext()}return a||r.push(n),Re(r,t)}(e,u,t||e.getPlugin()):t?(r=u,i=e,s=!1,(o=t)&&e&&(i=[],te(e,function(e){!s&&e!==o||(s=!0,i.push(e))})),o&&!s&&(i=i||[]).push(o),l=Re(i,r)):$(t)&&(l=Re(e,u))),u.core=function(){return n},u.diagLog=function(){return(n||{}).logger||new be(a)},u.getCfg=function(){return a},u.getExtCfg=function(e,t){var n,r;return void 0===t&&(t={}),!a||(r=a.extensionConfig)&&e&&(n=r[e]),n||t},u.getConfig=function(e,t,n){var r;return void 0===n&&(n=!1),(e=u.getExtCfg(e,null))&&!J(e[t])?r=e[t]:a&&!J(a[t])&&(r=a[t]),J(r)?n:r},u.hasNext=function(){return null!=l},u.getNext=function(){return l},u.setNext=function(e){l=e},u.processNext=function(e){var t=l;t&&(l=t.getNext(),t.processTelemetry(e,u))},u.createNew=function(e,t){return new _t((e=void 0===e?null:e)||l,a,n,t)}},De="getPlugin",u=(Le.prototype.initialize=function(e,t,n,r){this._baseTelInit(e,t,n,r)},Le);function Le(){var s=this,u=!1,l=null,c=null;s.core=null,s.diagLog=function(e){return s._getTelCtx(e).diagLog()},s.isInitialized=function(){return u},s.setInitialized=function(e){u=e},s.setNextPlugin=function(e){c=e},s.processNext=function(e,t){t?t.processNext(e):c&&Z(c.processTelemetry)&&c.processTelemetry(e,null)},s._getTelCtx=function(e){var t=e=void 0===e?null:e;return t||(e=l||new Fe(null,{},s.core),t=c&&c[De]?e.createNew(null,c[De]):e.createNew(null,c)),t},s._baseTelInit=function(e,t,n,r){var a,o;e&&(a="extensionConfig",i=o=[],!e||(i=e[a])!==o&&J(i)&&(e[a]=i=o)),!r&&t&&(r=t.getProcessTelContext().getNext());var i=c;c&&c[De]&&(i=c[De]()),s.core=t,l=new Fe(r,e,t,i),u=!0}}var Ee=4294967296,je=4294967295,ke=!1,He=123456789,Pe=987654321;function Ne(e){var t=ge("crypto")||ge("msCrypto"),n=t&&t.getRandomValues?t.getRandomValues(new Uint32Array(1))[0]&je:(!(n=he())||n.userAgent===pe&&null!==fe||(n=((pe=n.userAgent)||"").toLowerCase(),fe=Y(n,ce)||Y(n,de)),fe?(ke||function(){try{var e=2147483647&ie();(t=(Math.random()*Ee^e)+e)<0&&(t>>>=0),He=123456789+t&je,Pe=987654321-t&je,ke=!0}catch(n){}var t}(),t=((Pe=36969*(65535&Pe)+(Pe>>16)&je)<<16)+(65535&(He=18e3*(65535&He)+(He>>16)&je))>>>0&je|0,(t>>>=0)&je):Math.floor(Ee*Math.random()|0));return e||(n>>>=0),n}function _e(){for(var e,t=["0","1","2","3","4","5","6","7","8","9","a","b","c","d","e","f"],n="",r=0;r<4;r++)n+=t[15&(e=Ne())]+t[e>>4&15]+t[e>>8&15]+t[e>>12&15]+t[e>>16&15]+t[e>>20&15]+t[e>>24&15]+t[e>>28&15];var a=t[8+(3&Ne())|0];return n.substr(0,8)+n.substr(9,4)+"4"+n.substr(13,3)+a+n.substr(16,3)+n.substr(19,12)}var Oe="_aiHooks",Ue=["req","rsp","hkErr","fnErr"];function We(e,t){if(e)for(var n=0;n<e.length&&!t(e[n],n);n++);}function Ve(e,i,s,u,l){0<=l&&l<=2&&We(e,function(e,t){var n=e.cbks;if(e=n[Ue[l]]){i.ctx=function(){return u[t]=u[t]||{}};try{e.apply(i.inst,s)}catch(a){e=i.err;try{var r=n.hkErr;r&&(i.err=a,r.apply(i.inst,s))}catch(o){}finally{i.err=e}}}})}function Be(u){return function(){var n=arguments,e=u.h,r={name:u.n,inst:this,ctx:null,set:function(e,t){(n=o([],n))[e]=t,a=o([r],n)}},t=[],a=o([r],n);function o(t,e){return We(e,function(e){t.push(e)}),t}Ve(e,r,a,t,0);var i=u.f;try{r.rslt=i.apply(this,n)}catch(s){throw r.err=s,Ve(e,r,a,t,3),s}return Ve(e,r,a,t,1),r.rslt}}var ze=Object.getPrototypeOf;function Ke(e,t,n,r){if(void 0===r&&(r=!0),e&&t&&n&&(e=function o(e,t,n){var r=null;return e&&(c.call(e,t)?r=e:n&&(r=o(function(e){if(e){if(ze)return ze(e);if(e=e.__proto__||e[P]||e.constructor)return e}return null}(e),t,!1))),r}(e,t,r))&&typeof(r=e[t])===i){var a=r[Oe];return a||((r=Be(a={i:0,n:t,f:r,h:[]}))[Oe]=a,e[t]=r),n={id:a.i,cbks:n,rm:function(){var n=this.id;We(a.h,function(e,t){return e.id===n&&(a.h.splice(t,1),1)})}},a.i++,a.h.push(n),n}return null}function Ge(e,t,n){var r,a,o=t.length,i=(t&&150<(t=ne(t.toString())).length&&(r=t.substring(0,150),e.throwInternal(g.WARNING,B.NameTooLong,"name is too long. It has been truncated to 150 characters.",{name:t},!0)),r||t);if(i.length!==o){for(var s=0,u=i;n[u]!==undefined;)s++,u=i.substring(0,147)+(a="00"+s).substr(a.length-3);i=u}return i}function Xe(e,t,n){var r;return void 0===n&&(n=1024),t&&(n=n||1024,(t=ne(t)).toString().length>n&&(r=t.toString().substring(0,n),e.throwInternal(g.WARNING,B.StringValueTooLong,"string value is too long. It has been truncated to "+n+" characters.",{value:t},!0))),r||t}function $e(e,t){return n=e,e=t,t=B.UrlTooLong,e&&2048<(e=ne(e)).length&&(r=e.substring(0,2048),n.throwInternal(g.WARNING,t,"input is too long, it has been truncated to 2048 characters.",{data:e},!0)),r||e;var n,r}function Je(r,e){var a;return e&&(a={},Q(e,function(e,t){if(typeof t===l&&ve())try{t=xe().stringify(t)}catch(n){r.throwInternal(g.WARNING,B.CannotSerializeObjectNonSerializable,"custom property is not valid",{exception:n},!0)}t=Xe(r,t,8192),e=Ge(r,e,a),a[e]=t}),e=a),e}function Ze(e){var t=""+Math.floor((e=Math.round(e=isNaN(e)||e<0?0:e))/1e3)%60,n=""+Math.floor(e/6e4)%60,r=""+Math.floor(e/36e5)%24,a=Math.floor(e/864e5),e=1===(e=""+e%1e3).length?"00"+e:2===e.length?"0"+e:e,t=t.length<2?"0"+t:t,n=n.length<2?"0"+n:n;return(0<a?a+".":"")+(r=r.length<2?"0"+r:r)+":"+n+":"+t+"."+e}var Qe,Ye,et="Microsoft_ApplicationInsights_BypassAjaxInstrumentation",tt="iKey";(Ye=Ye||{})[Ye.LocalStorage=0]="LocalStorage",Ye[Ye.SessionStorage=1]="SessionStorage",(Ye=Qe=Qe||{})[Ye.AI=0]="AI",Ye[Ye.AI_AND_W3C=1]="AI_AND_W3C",Ye[Ye.W3C=2]="W3C";var nt=(typeof document===l&&document?document:ge("document"))||{},rt=0,at=[null,null,null,null,null];function ot(e){var t,n,r=rt,a=at,o=a[r];return nt.createElement?a[r]||(o=a[r]=nt.createElement("a")):o={host:(t=it(t=e,!0)||"")&&null!=(n=t.match(/(www[0-9]?\.)?(.[^/:]+)(\:[\d]+)?/i))&&3<n.length&&ee(n[2])&&0<n[2].length?n[2]+(n[3]||""):t},o.href=e,++r>=a.length&&(r=0),rt=r,o}function it(e,t){var n=null;return!e||null!=(e=e.match(/(\w*):\/\/(.[^/:]+)(\:[\d]+)?/i))&&2<e.length&&ee(e[2])&&0<e[2].length&&(n=e[2]||"",t&&2<e.length&&(t=(e[1]||"").toLowerCase(),e=e[3]||"",n+=e="http"==t&&":80"===e||"https"==t&&":443"===e?"":e)),n}var st=["https://dc.services.visualstudio.com/v2/track","https://breeze.aimon.applicationinsights.io/v2/track","https://dc-int.services.visualstudio.com/v2/track"],ut={correlationIdPrefix:"cid-v1:",canIncludeCorrelationHeader:function(e,t,n){if(!t||e&&e.disableCorrelationHeaders)return!1;if(e&&e.correlationHeaderExcludePatterns)for(var r=0;r<e.correlationHeaderExcludePatterns.length;r++)if(e.correlationHeaderExcludePatterns[r].test(t))return!1;var a,o=ot(t).host.toLowerCase();if(o&&(~o.indexOf(":443")||~o.indexOf(":80"))&&(o=(it(t,!0)||"").toLowerCase()),(!e||!e.enableCorsCorrelation)&&o&&o!==n)return!1;if((n=e&&e.correlationHeaderDomains)&&(te(n,function(e){e=RegExp(e.toLowerCase().replace(/\\/g,"\\\\").replace(/\./g,"\\.").replace(/\*/g,".*")),a=a||e.test(o)}),!a))return!1;var i=e&&e.correlationHeaderExcludedDomains;if(!i||0===i.length)return!0;for(r=0;r<i.length;r++)if(RegExp(i[r].toLowerCase().replace(/\\/g,"\\\\").replace(/\./g,"\\.").replace(/\*/g,".*")).test(o))return!1;return o&&0<o.length},getCorrelationContext:function(e){if((e=e&&ut.getCorrelationContextValue(e,"appId"))&&e!==ut.correlationIdPrefix)return e},getCorrelationContextValue:function(e,t){if(e)for(var n=e.split(","),r=0;r<n.length;++r){var a=n[r].split("=");if(2===a.length&&a[0]===t)return a[1]}}};function lt(){var e=me();return e&&e.now&&e.timing&&0<(e=e.now()+e.timing.navigationStart)?e:ie()}function ct(e,t){return 0===e||0===t||J(e)||J(t)?null:t-e}var dt,ft=(p(pt,dt=function(){this.ver=2,this.success=!0,this.properties={},this.measurements={}}),pt.envelopeType="Microsoft.ApplicationInsights.{0}.RemoteDependency",pt.dataType="RemoteDependencyData",pt);function pt(e,t,n,r,a,o,i,s,u,l,c,d){void 0===u&&(u="Ajax");var f=dt.call(this)||this;f.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},f.id=t,f.duration=Ze(a),f.success=o,f.resultCode=i+"",f.type=Xe(e,u);var p,g,h,m,i=(p=e,t=s,i=o=a=r,o=(u=n)&&0<u.length?(g=(s=ot(u)).host,o||(null!=s.pathname?("/"!=((n=0===s.pathname.length?"/":s.pathname)[0]||"")&&(n="/"+n),i=s.pathname,Xe(p,t?t+" "+n:n)):Xe(p,u))):g=a,{target:g,name:o,data:i});return f.data=$e(e,r)||i.data,f.target=Xe(e,i.target),l&&(f.target=f.target+" | "+l),f.name=Xe(e,i.name),f.properties=Je(e,c),f.measurements=(h=e,d&&(m={},Q(d,function(e,t){e=Ge(h,e,m),m[e]=t}),d=m),d),f}var gt=(ht.create=function(e,t,n,r,a,o){if(n=Xe(r,n)||"not_specified",J(e)||J(t)||J(n))throw Error("Input doesn't contain all required fields");r="",e[tt]&&(r=e[tt],delete e[tt]);var i={name:n,time:function(e){if("[object Date]"===X(e)){var t=function(e){return 1===(e=""+e).length?"0"+e:e};return e.getUTCFullYear()+"-"+t(1+e.getUTCMonth())+"-"+t(e.getUTCDate())+"T"+t(e.getUTCHours())+":"+t(e.getUTCMinutes())+":"+t(e.getUTCSeconds())+"."+(""+(e.getUTCMilliseconds()/1e3).toFixed(3)).slice(2,5)+"Z"}}(new Date),iKey:r,ext:o||{},tags:[],data:{},baseType:t,baseData:e};return J(a)||Q(a,function(e,t){i.data[e]=t}),i},ht);function ht(){}var mt="properties";function vt(e,t,n){t=e[t],e=e[n];return t&&e?ct(t,e):0}function xt(e,t,n,r,a){return(a=vt(n,r,a))?yt(e,t,Ze(a)):0}function yt(e,t,n){var r="ajaxPerf",a=0;return e&&t&&n&&((e[r]=e[r]||{})[t]=n,a=1),a}var Ct=function(){var e=this;e.openDone=!1,e.setRequestHeaderDone=!1,e.sendDone=!1,e.abortDone=!1,e.stateChangeAttached=!1},Tt=function Ot(e,t,n){var r=this,a=n,x="responseText";r.perfMark=null,r.completed=!1,r.requestHeadersSize=null,r.requestHeaders=null,r.responseReceivingDuration=null,r.callbackDuration=null,r.ajaxTotalDuration=null,r.aborted=0,r.pageUrl=null,r.requestUrl=null,r.requestSize=0,r.method=null,r.status=null,r.requestSentTime=null,r.responseStartedTime=null,r.responseFinishedTime=null,r.callbackFinishedTime=null,r.endTime=null,r.xhrMonitoringState=new Ct,r.clientFailure=0,r.traceID=e,r.spanID=t,V(Ot,r,function(v){v.getAbsoluteUrl=function(){return v.requestUrl?(e=ot(v.requestUrl))?e.href:void 0:null;var e},v.getPathName=function(){return v.requestUrl?$e(a,(e=v.method,t=v.requestUrl,e?e.toUpperCase()+" "+t:t)):null;var e,t},v.CreateTrackItem=function(e,t,n){return v.ajaxTotalDuration=Math.round(1e3*ct(v.requestSentTime,v.responseFinishedTime))/1e3,v.ajaxTotalDuration<0?null:((e={id:"|"+v.traceID+"."+v.spanID,target:v.getAbsoluteUrl(),name:v.getPathName(),type:e,startTime:null,duration:v.ajaxTotalDuration,success:200<=+v.status&&+v.status<400,responseCode:+v.status,method:v.method})[mt]={HttpMethod:v.method},v.requestSentTime&&(e.startTime=new Date,e.startTime.setTime(v.requestSentTime)),a=e,i=(r=v).perfTiming,s=a[mt]||{},u=0,l="startTime",c="connect"+"End",d="request"+"Start",f="response"+"End",p="transferSize",g="encodedBodySize",h="decodedBodySize",m="serverTiming",i?(u|=xt(s,"End",i,"redirectStart","End"),u|=xt(s,"domainLookup",i,"domainLookupStart","domainLookupEnd"),u|=xt(s,"connect",i,"connectStart",c),u|=xt(s,"request",i,d,"requestEnd"),u|=xt(s,"response",i,"responseStart",f),u|=xt(s,"networkConnect",i,l,c),u|=xt(s,"sentRequest",i,d,f),u|=yt(s,"duration",f=i.duration||vt(i,l,f)||0),u|=yt(s,"perfTotal",f),(f=i[m])&&(o={},te(f,function(e,t){var n,r,t=(n=e.name||""+t,(r=/([^\w\d_$])/g).test(t=n)?n.replace(r,"_"):t),a=o[t]||{};Q(e,function(e,t){("name"!==e&&ee(t)||"number"==typeof t)&&(!(t=a[e]?a[e]+";"+t:t)&&ee(t)||(a[e]=t))}),o[t]=a}),u|=yt(s,m,o)),u|=yt(s,p,i[p]),u|=yt(s,g,i[g]),u|=yt(s,h,i[h])):r.perfMark&&(u|=yt(s,"missing",r.perfAttempts)),u&&(a[mt]=s),t&&0<oe(v.requestHeaders).length&&(e[mt]=e[mt]||{},e[mt].requestHeaders=v.requestHeaders),!n||(t=n())&&((n=t.correlationContext)&&(e.correlationContext=n),t.headerMap&&0<oe(t.headerMap).length&&(e[mt]=e[mt]||{},e[mt].responseHeaders=t.headerMap),v.errorStatusText&&400<=v.status&&(n=t.type,e[mt]=e[mt]||{},""!==n&&"text"!==n||(e[mt][x]=t[x]?t.statusText+" - "+t[x]:t.statusText),"json"===n&&(e[mt][x]=t.response?t.statusText+" - "+JSON.stringify(t.response):t.statusText))),e);var r,a,o,i,s,u,l,c,d,f,p,g,h,m}})},It=(bt.isValidTraceId=function(e){return e.match(/^[0-9a-f]{32}$/)&&"00000000000000000000000000000000"!==e},bt.isValidSpanId=function(e){return e.match(/^[0-9a-f]{16}$/)&&"0000000000000000"!==e},bt.prototype.toString=function(){return this.version+"-"+this.traceId+"-"+this.spanId+"-"+this.traceFlag},bt.DEFAULT_TRACE_FLAG="01",bt.DEFAULT_VERSION="00",bt);function bt(e,t){var n=this;n.traceFlag=bt.DEFAULT_TRACE_FLAG,n.version=bt.DEFAULT_VERSION,e&&bt.isValidTraceId(e)?n.traceId=e:n.traceId=_e(),t&&bt.isValidSpanId(t)?n.spanId=t:n.spanId=_e().substr(0,16)}var At="ai.ajxmn.",St="diagLog",wt="ajaxData",qt="throwInternal",Mt="fetch",Rt=0;function Ft(e){var t=!1;!function(){var e=!1;try{e=!!ge("XMLHttpRequest")}catch(t){}return e}()||(t=!(J(a=XMLHttpRequest[P])||J(a.open)||J(a.send)||J(a.abort)));var n,r,a=Y(n=((n=(n=void 0===n?null:n)?n:(r=he()||{})?(r.userAgent||"").toLowerCase():"")||"").toLowerCase(),ce)?parseInt(n.split(ce)[1]):Y(n,de)&&(n=parseInt(n.split(de)[1]))?n+4:null;if(t=!(a&&a<9)&&t)try{(new XMLHttpRequest)[wt]={};var o=XMLHttpRequest[P].open;XMLHttpRequest[P].open=o}catch(i){t=!1,Lt(e,B.FailedMonitorAjaxOpen,"Failed to enable XMLHttpRequest monitoring, extension is not supported",{exception:ye(i)})}return t}function Dt(e){var t="";try{J(e)||J(e[wt])||J(e[wt].requestUrl)||(t+="(url: '"+e[wt].requestUrl+"')")}catch(n){}return t}function Lt(e,t,n,r,a){e[St]()[qt](g.CRITICAL,t,n,r,a)}function Et(e,t,n,r,a){e[St]()[qt](g.WARNING,t,n,r,a)}function jt(t,n,r){return function(e){Lt(t,n,r,{ajaxDiagnosticsMessage:Dt(e.inst),exception:ye(e.err)})}}function kt(e,t){return e&&t?e.indexOf(t):-1}var Ht,u=(p(Pt,Ht=u),Pt.getDefaultConfig=function(){return{maxAjaxCallsPerView:500,disableAjaxTracking:!1,disableFetchTracking:!0,excludeRequestFromAutoTrackingPatterns:undefined,disableCorrelationHeaders:!1,distributedTracingMode:Qe.AI_AND_W3C,correlationHeaderExcludedDomains:["*.blob.core.windows.net","*.blob.core.chinacloudapi.cn","*.blob.core.cloudapi.de","*.blob.core.usgovcloudapi.net"],correlationHeaderDomains:undefined,correlationHeaderExcludePatterns:undefined,appId:undefined,enableCorsCorrelation:!1,enableRequestHeaderTracking:!1,enableResponseHeaderTracking:!1,enableAjaxErrorStatusText:!1,enableAjaxPerfTracking:!1,maxAjaxPerfLookupAttempts:3,ajaxPerfLookupDelay:25,ignoreHeaders:["Authorization","X-API-Key","WWW-Authenticate"],addRequestContext:undefined}},Pt.getEmptyConfig=function(){var t=this.getDefaultConfig();return Q(t,function(e){t[e]=undefined}),t},Pt.prototype.processTelemetry=function(e,t){this.processNext(e,t)},Pt.identifier="AjaxDependencyPlugin",Pt);function Pt(){var e=Ht.call(this)||this;e.identifier=Pt.identifier,e.priority=120;var T,I,b,A,S,w,q,M="trackDependencyDataInternal",t=typeof location===l&&location?location:ge("location"),R=!1,F=!1,u=t&&t.host&&t.host.toLowerCase(),D=Pt.getEmptyConfig(),L=!1,r=0,E=!1,j=0,k=!1,H=[],s={};return V(Pt,e,function(l,c){function d(t){var n=!0;return(t||D.ignoreHeaders)&&te(D.ignoreHeaders,function(e){if(e.toLowerCase()==t.toLowerCase())return n=!1,-1}),n}function f(e,t,n){H.push(e?Ke(e[P],t,n,!1):null)}function p(e,t,n){var r=!1,a=((ee(t)?t:(t||{}).url||"")||"").toLowerCase();if(te(S,function(e){var t=e;ee(e)&&(t=RegExp(e)),r=r||t.test(a)}),r)return r;var o=kt(a,"?"),i=kt(a,"#");return-1!==(o=-1===o||-1!==i&&i<o?i:o)&&(a=a.substring(0,o)),J(e)?J(t)||(r="object"==typeof t&&!0===t[et]||!!n&&!0===n[et]):r=!0===e[et]||!0===a[et],(r=!(r||!a||(e=a,!~st.indexOf(e.toLowerCase())))||r)?s[a]||(s[a]=1):s[a]&&(r=!0),r}function g(e,t){var n=!0,r=F;return J(e)||(n=!0===t||!J(e[wt])),r&&n}function h(n){n[wt].xhrMonitoringState.stateChangeAttached=function(e,t,n,r){void 0===r&&(r=!1);var a=!1;if(!J(e))try{J(e[K])?J(e[z])||(e[z]("on"+t,n),a=!0):(e[K](t,n,r),a=!0)}catch(o){}return a}(n,"readystatechange",function(){try{n&&4===n.readyState&&g(n)&&((o=(a=n)[wt]).responseFinishedTime=lt(),o.status=a.status,v("xmlhttprequest",o,function(){try{var e=o.CreateTrackItem("Ajax",L,function(){var e,n,t={statusText:a.statusText,headerMap:null,correlationContext:i(a),type:a.responseType,responseText:function(e){try{var t=e.responseType;if(""===t||"text"===t)return e.responseText}catch(n){}return null}(a),response:a.response};return!k||(e=a.getAllResponseHeaders())&&(e=ne(e).split(/[\r\n]+/),n={},te(e,function(e){var e=(t=e.split(": ")).shift(),t=t.join(": ");d(e)&&(n[e]=t)}),t.headerMap=n),t}),t=void 0;try{w&&(t=w({status:a.status,xhr:a}))}catch(n){Et(l,B.FailedAddingCustomDefinedRequestContext,"Failed to add custom defined request context as configured call back may missing a null check.")}e?(t!==undefined&&(e.properties=_(_({},e.properties),t)),l[M](e)):r(null,{requestSentTime:o.requestSentTime,responseFinishedTime:o.responseFinishedTime})}finally{try{a[wt]=null}catch(n){}}},function(e){r(e,null)}))}catch(t){var e=ye(t);e&&-1!==kt(e.toLowerCase(),"c00c023f")||Lt(l,B.FailedMonitorAjaxRSC,"Failed to monitor XMLHttpRequest 'readystatechange' event handler, monitoring data for this ajax call may be incorrect.",{ajaxDiagnosticsMessage:Dt(n),exception:e})}function r(e,t){(t=t||{}).ajaxDiagnosticsMessage=Dt(a),e&&(t.exception=ye(e)),Et(l,B.FailedMonitorAjaxDur,"Failed to calculate the duration of the ajax call, monitoring data for this ajax call won't be sent.",t)}var a,o})}function i(e){try{var t=e.getAllResponseHeaders();if(null!==t&&-1!==kt(t.toLowerCase(),"request-context")){var n=e.getResponseHeader("Request-Context");return ut.getCorrelationContext(n)}}catch(r){Et(l,B.FailedMonitorAjaxGetCorrelationHeader,"Failed to get Request-Context correlation header as it may be not included in the response or not accessible.",{ajaxDiagnosticsMessage:Dt(e),exception:ye(r)})}}function m(e,t){var n;t.requestUrl&&A&&E&&(n=me())&&Z(n.mark)&&(e=A+e+"#"+ ++Rt,n.mark(e),(n=n.getEntriesByName(e))&&1===n.length&&(t.perfMark=n[0]))}function v(o,i,s,u){var l=i.perfMark,c=me(),d=D.maxAjaxPerfLookupAttempts,f=D.ajaxPerfLookupDelay,p=i.requestUrl,g=0;!function h(){try{if(c&&l){g++;for(var e=null,t=c.getEntries(),n=t.length-1;0<=n;n--){var r=t[n];if(r){if("resource"===r.entryType)r.initiatorType!==o||-1===kt(r.name,p)&&-1===kt(p,r.name)||(e=r);else if("mark"===r.entryType&&r.name===l.name){i.perfTiming=e;break}if(r.startTime<l.startTime-1e3)break}}}!l||i.perfTiming||d<=g||!1===i["async"]?(l&&Z(c.clearMarks)&&c.clearMarks(l.name),i.perfAttempts=g,s()):setTimeout(h,f)}catch(a){u(a)}}()}function x(e){var t="";try{J(e)||(t+="string"==typeof e?"(url: '"+e+"')":"(url: '"+e.url+"')")}catch(n){Lt(l,B.FailedMonitorAjaxOpen,"Failed to grab failed fetch diagnostics message",{exception:ye(n)})}return t}function y(e,r,a,o,i,s){function u(e,t,n){(n=n||{}).fetchDiagnosticsMessage=x(a),t&&(n.exception=ye(t)),Et(l,e,"Failed to calculate the duration of the fetch call, monitoring data for this fetch call won't be sent.",n)}i&&(i.responseFinishedTime=lt(),i.status=r,v("fetch",i,function(){var e,t=i.CreateTrackItem("Fetch",L,s);try{w&&(e=w({status:r,request:a,response:o}))}catch(n){Et(l,B.FailedAddingCustomDefinedRequestContext,"Failed to add custom defined request context as configured call back may missing a null check.")}t?(e!==undefined&&(t.properties=_(_({},t.properties),e)),l[M](t)):u(B.FailedMonitorAjaxDur,null,{requestSentTime:i.requestSentTime,responseFinishedTime:i.responseFinishedTime})},function(e){u(B.FailedMonitorAjaxGetCorrelationHeader,e,null)}))}function C(e){if(e&&e.headers)try{var t=e.headers.get("Request-Context");return ut.getCorrelationContext(t)}catch(n){Et(l,B.FailedMonitorAjaxGetCorrelationHeader,"Failed to get Request-Context correlation header as it may be not included in the response or not accessible.",{fetchDiagnosticsMessage:x(e),exception:ye(n)})}}l.initialize=function(e,t,n,r){if(!l.isInitialized()){c.initialize(e,t,n,r);var a=l._getTelCtx();if(Q(Pt.getDefaultConfig(),function(e,t){D[e]=a.getConfig(Pt.identifier,e,t)}),r=D.distributedTracingMode,L=D.enableRequestHeaderTracking,q=D.enableAjaxErrorStatusText,E=D.enableAjaxPerfTracking,j=D.maxAjaxCallsPerView,k=D.enableResponseHeaderTracking,S=D.excludeRequestFromAutoTrackingPatterns,w=D.addRequestContext,b=r===Qe.AI||r===Qe.AI_AND_W3C,I=r===Qe.AI_AND_W3C||r===Qe.W3C,E&&(s=e.instrumentationKey||"unkwn",A=5<s.length?At+s.substring(s.length-5)+".":At+s+"."),!1===D.disableAjaxTracking&&Ft(l)&&!F&&(f(XMLHttpRequest,"open",{req:function(e,t,n,r){var a=e.inst,o=a[wt];p(a,n)||!g(a,!0)||o&&o.xhrMonitoringState.openDone||(e=a,o=t,a=n,t=r,n=T&&T.telemetryTrace&&T.telemetryTrace.traceID||_e(),r=_e().substr(0,16),(r=new Tt(n,r,l[St]())).method=o,r.requestUrl=a,r.xhrMonitoringState.openDone=!0,r.requestHeaders={},r["async"]=t,r.errorStatusText=q,e[wt]=r,h(e))},hkErr:jt(l,B.FailedMonitorAjaxOpen,"Failed to monitor XMLHttpRequest.open, monitoring data for this ajax call may be incorrect.")}),f(XMLHttpRequest,"send",{req:function(e,t){var n=e.inst,e=n[wt];g(n)&&!e.xhrMonitoringState.sendDone&&(m("xhr",e),e.requestSentTime=lt(),l.includeCorrelationHeaders(e,undefined,undefined,n),e.xhrMonitoringState.sendDone=!0)},hkErr:jt(l,B.FailedMonitorAjaxSend,"Failed to monitor XMLHttpRequest, monitoring data for this ajax call may be incorrect.")}),f(XMLHttpRequest,"abort",{req:function(e){var t=e.inst,e=t[wt];g(t)&&!e.xhrMonitoringState.abortDone&&(e.aborted=1,e.xhrMonitoringState.abortDone=!0)},hkErr:jt(l,B.FailedMonitorAjaxAbort,"Failed to monitor XMLHttpRequest.abort, monitoring data for this ajax call may be incorrect.")}),L&&f(XMLHttpRequest,"setRequestHeader",{req:function(e,t,n){g(e=e.inst)&&d(t)&&(e[wt].requestHeaders[t]=n)},hkErr:jt(l,B.FailedMonitorAjaxSetRequestHeader,"Failed to monitor XMLHttpRequest.setRequestHeader, monitoring data for this ajax call may be incorrect.")}),F=!0),(e=!(r=N())||J(r.Request)||J(r.Request[P])||J(r[Mt])?null:r[Mt])&&(s=N(),u=e.polyfill,!1===D.disableFetchTracking?(H.push(Ke(s,Mt,{req:function(e,t,n){var r,a;!R||p(null,t,n)||u&&F||(r=e.ctx(),a=function(e,t){var n=T&&T.telemetryTrace&&T.telemetryTrace.traceID||_e(),r=_e().substr(0,16);(n=new Tt(n,r,l[St]())).requestSentTime=lt(),n.errorStatusText=q,e instanceof Request?n.requestUrl=e?e.url:"":n.requestUrl=e,r="GET",t&&t.method?r=t.method:e&&e instanceof Request&&(r=e.method),n.method=r;var a={};return L&&new Headers((t?t.headers:0)||e instanceof Request&&e.headers||{}).forEach(function(e,t){d(t)&&(a[t]=e)}),n.requestHeaders=a,m("fetch",n),n}(t,n),(t=l.includeCorrelationHeaders(a,t,n))!==n&&e.set(1,t),r.data=a)},rsp:function(e,n){var r=e.ctx().data;r&&(e.rslt=e.rslt.then(function(t){return y(0,(t||{}).status,n,t,r,function(){var n,e={statusText:t.statusText,headerMap:null,correlationContext:C(t)};return k&&(n={},t.headers.forEach(function(e,t){d(t)&&(n[t]=e)}),e.headerMap=n),e}),t})["catch"](function(e){throw y(0,0,n,null,r,null,e.message),e}))},hkErr:jt(l,B.FailedMonitorAjaxOpen,"Failed to monitor Window.fetch, monitoring data for this fetch call may be incorrect.")})),R=!0):u&&H.push(Ke(s,Mt,{req:function(e,t,n){p(null,t,n)}})),u&&(s[Mt].polyfill=u)),0<n.length&&n){for(var o=void 0,i=0;!o&&i<n.length;)n[i]&&"AppInsightsPropertiesPlugin"===n[i].identifier&&(o=n[i]),i++;o&&(T=o.context)}}var s,u},l.teardown=function(){te(H,function(e){e.rm()}),F=R=!(H=[]),l.setInitialized(!1)},l.trackDependencyData=function(e,t){l[M](e,t)},l.includeCorrelationHeaders=function(e,t,n,r){var a,o,i,s=l._currentWindowHost||u;return t?(ut.canIncludeCorrelationHeader(D,e.getAbsoluteUrl(),s)&&((n=n||{}).headers=new Headers(n.headers||t instanceof Request&&t.headers||{}),b&&(a="|"+e.traceID+"."+e.spanID,n.headers.set("Request-Id",a),L&&(e.requestHeaders["Request-Id"]=a)),(o=D.appId||T&&T.appId())&&(n.headers.set("Request-Context","appId=cid-v1:"+o),L&&(e.requestHeaders["Request-Context"]="appId=cid-v1:"+o)),I&&(i=new It(e.traceID,e.spanID),n.headers.set("traceparent",i.toString()),L&&(e.requestHeaders.traceparent=i.toString()))),n):r?(ut.canIncludeCorrelationHeader(D,e.getAbsoluteUrl(),s)&&(b&&(a="|"+e.traceID+"."+e.spanID,r.setRequestHeader("Request-Id",a),L&&(e.requestHeaders["Request-Id"]=a)),(o=D.appId||T&&T.appId())&&(r.setRequestHeader("Request-Context","appId=cid-v1:"+o),L&&(e.requestHeaders["Request-Context"]="appId=cid-v1:"+o)),I&&(i=new It(e.traceID,e.spanID),r.setRequestHeader("traceparent",i.toString()),L&&(e.requestHeaders.traceparent=i.toString()))),r):undefined},l[M]=function(e,t,n){-1===j||r<j?(D.distributedTracingMode!==Qe.W3C&&D.distributedTracingMode!==Qe.AI_AND_W3C||"string"!=typeof e.id||"."===e.id[e.id.length-1]||(e.id+="."),J(e.startTime)&&(e.startTime=new Date),n=gt.create(e,ft.dataType,ft.envelopeType,l[St](),t,n),l.core.track(n)):r===j&&Lt(l,B.MaxAjaxPerPVExceeded,"Maximum ajax per page view limit reached, ajax monitoring is paused until the next trackPageView(). In order to increase the limit set the maxAjaxCallsPerView configuration parameter.",!0),++r}}),e}e.AjaxPlugin=u,e.ajaxRecord=Tt,function(e,t,n){var r=Object.defineProperty;if(r)try{return r(e,t,n)}catch(a){}typeof n.value!==undefined&&(e[t]=n.value)}(e,"__esModule",{value:!0})};"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t(((e="undefined"!=typeof globalThis?globalThis:e||self).Microsoft=e.Microsoft||{},e.Microsoft.ApplicationInsights=e.Microsoft.ApplicationInsights||{})); | ||
//# sourceMappingURL=applicationinsights-dependencies-js.min.js.map |
/* | ||
* Application Insights JavaScript SDK - Dependencies Plugin, 2.7.0-beta.1 | ||
* Application Insights JavaScript SDK - Dependencies Plugin, 2.7.0 | ||
* Copyright (c) Microsoft and contributors. All rights reserved. | ||
@@ -8,6 +8,5 @@ */ | ||
import { __assignFn as __assign, __extendsFn as __extends } from "@microsoft/applicationinsights-shims"; | ||
import { RequestHeaders, CorrelationIdHelper, TelemetryItemCreator, RemoteDependencyData, dateTimeUtilsNow, DisabledPropertyName, PropertiesPluginIdentifier, DistributedTracingModes } from '@microsoft/applicationinsights-common'; | ||
import { isNullOrUndefined, arrForEach, isString, strTrim, isFunction, LoggingSeverity, _InternalMessageId, BaseTelemetryPlugin, getLocation, getGlobal, strUndefined, strPrototype, InstrumentFunc, InstrumentProto, getPerformance, objForEachKey, generateW3CId, getIEVersion, dumpObj } from '@microsoft/applicationinsights-core-js'; | ||
import { RequestHeaders, CorrelationIdHelper, TelemetryItemCreator, RemoteDependencyData, dateTimeUtilsNow, DisabledPropertyName, PropertiesPluginIdentifier, DistributedTracingModes, isInternalApplicationInsightsEndpoint } from '@microsoft/applicationinsights-common'; | ||
import { isNullOrUndefined, arrForEach, isString, strTrim, isFunction, LoggingSeverity, _InternalMessageId, BaseTelemetryPlugin, getLocation, getGlobal, strPrototype, InstrumentFunc, InstrumentProto, getPerformance, objForEachKey, generateW3CId, getIEVersion, dumpObj, isXhrSupported, attachEvent } from '@microsoft/applicationinsights-core-js'; | ||
import { ajaxRecord } from './ajaxRecord'; | ||
import { EventHelper } from './ajaxUtils'; | ||
import { Traceparent } from './TraceParent'; | ||
@@ -40,3 +39,3 @@ import dynamicProto from "@microsoft/dynamicproto-js"; | ||
var result = false; | ||
if (typeof XMLHttpRequest !== strUndefined && !isNullOrUndefined(XMLHttpRequest)) { | ||
if (isXhrSupported()) { | ||
var proto = XMLHttpRequest[strPrototype]; | ||
@@ -123,2 +122,3 @@ result = !isNullOrUndefined(proto) && | ||
var _enableRequestHeaderTracking = false; | ||
var _enableAjaxErrorStatusText = false; | ||
var _trackAjaxAttempts = 0; | ||
@@ -147,2 +147,3 @@ var _context; | ||
_enableRequestHeaderTracking = _config.enableRequestHeaderTracking; | ||
_enableAjaxErrorStatusText = _config.enableAjaxErrorStatusText; | ||
_enableAjaxPerfTracking = _config.enableAjaxPerfTracking; | ||
@@ -467,2 +468,6 @@ _maxAjaxCallsPerView = _config.maxAjaxCallsPerView; | ||
} | ||
// Also add extra check just in case the XHR or fetch objects where not decorated with the DisableProperty due to sealing or freezing | ||
if (!isDisabled && theUrl && isInternalApplicationInsightsEndpoint(theUrl)) { | ||
isDisabled = true; | ||
} | ||
if (isDisabled) { | ||
@@ -505,2 +510,3 @@ // Add the disabled url if not present | ||
ajaxData.async = async; | ||
ajaxData.errorStatusText = _enableAjaxErrorStatusText; | ||
xhr[strAjaxData] = ajaxData; | ||
@@ -510,3 +516,3 @@ _attachToOnReadyStateChange(xhr); | ||
function _attachToOnReadyStateChange(xhr) { | ||
xhr[strAjaxData].xhrMonitoringState.stateChangeAttached = EventHelper.Attach(xhr, "readystatechange", function () { | ||
xhr[strAjaxData].xhrMonitoringState.stateChangeAttached = attachEvent(xhr, "readystatechange", function () { | ||
try { | ||
@@ -538,3 +544,3 @@ if (xhr && xhr.readyState === 4 && _isMonitoredXhrInstance(xhr)) { | ||
catch (e) { | ||
// This shouldn't happend because of the above check -- but just in case, so just ignore | ||
// This shouldn't happen because of the above check -- but just in case, so just ignore | ||
} | ||
@@ -716,2 +722,3 @@ return null; | ||
ajaxData.requestSentTime = dateTimeUtilsNow(); | ||
ajaxData.errorStatusText = _enableAjaxErrorStatusText; | ||
if (input instanceof Request) { | ||
@@ -718,0 +725,0 @@ ajaxData.requestUrl = input ? input.url : ""; |
/* | ||
* Application Insights JavaScript SDK - Dependencies Plugin, 2.7.0-beta.1 | ||
* Application Insights JavaScript SDK - Dependencies Plugin, 2.7.0 | ||
* Copyright (c) Microsoft and contributors. All rights reserved. | ||
@@ -242,3 +242,3 @@ */ | ||
} | ||
if (self.status >= 400) { | ||
if (self.errorStatusText && self.status >= 400) { | ||
var responseType = response.type; | ||
@@ -245,0 +245,0 @@ dependency[strProperties] = dependency[strProperties] || {}; |
/* | ||
* Application Insights JavaScript SDK - Dependencies Plugin, 2.7.0-beta.1 | ||
* Application Insights JavaScript SDK - Dependencies Plugin, 2.7.0 | ||
* Copyright (c) Microsoft and contributors. All rights reserved. | ||
@@ -8,3 +8,2 @@ */ | ||
import { isNullOrUndefined } from '@microsoft/applicationinsights-core-js'; | ||
export { EventHelper } from '@microsoft/applicationinsights-core-js'; | ||
var stringUtils = /** @class */ (function () { | ||
@@ -11,0 +10,0 @@ function stringUtils() { |
/* | ||
* Application Insights JavaScript SDK - Dependencies Plugin, 2.7.0-beta.1 | ||
* Application Insights JavaScript SDK - Dependencies Plugin, 2.7.0 | ||
* Copyright (c) Microsoft and contributors. All rights reserved. | ||
@@ -4,0 +4,0 @@ */ |
/* | ||
* Application Insights JavaScript SDK - Dependencies Plugin, 2.7.0-beta.1 | ||
* Application Insights JavaScript SDK - Dependencies Plugin, 2.7.0 | ||
* Copyright (c) Microsoft and contributors. All rights reserved. | ||
@@ -4,0 +4,0 @@ */ |
@@ -74,2 +74,4 @@ ## API Report File for "@microsoft/applicationinsights-dependencies-js" | ||
// (undocumented) | ||
errorStatusText?: boolean; | ||
// (undocumented) | ||
getAbsoluteUrl(): string; | ||
@@ -76,0 +78,0 @@ // (undocumented) |
/* | ||
* Microsoft Application Insights XHR dependencies plugin, 2.7.0-beta.1 | ||
* Microsoft Application Insights XHR dependencies plugin, 2.7.0 | ||
* Copyright (c) Microsoft and contributors. All rights reserved. | ||
@@ -69,2 +69,3 @@ * | ||
async?: boolean; | ||
errorStatusText?: boolean; | ||
status: string | number; | ||
@@ -71,0 +72,0 @@ requestSentTime: number; |
/*! | ||
* Application Insights JavaScript SDK - Dependencies Plugin, 2.7.0-beta.1 | ||
* Application Insights JavaScript SDK - Dependencies Plugin, 2.7.0 | ||
* Copyright (c) Microsoft and contributors. All rights reserved. | ||
*/ | ||
var e=this,t=function(e){"use strict";var i="function",l="object",s="undefined",H="prototype",o="hasOwnProperty",n=Object,u=n[H],t=n.assign,r=n.create,a=n.defineProperty,c=u[o];function P(){return typeof globalThis!==s&&globalThis?globalThis:typeof self!==s&&self?self:typeof window!==s&&window?window:typeof global!==s&&global?global:null}function d(e){throw new TypeError(e)}(P()||{}).Symbol,(P()||{}).Reflect;var N=t||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var a in t=arguments[n])u[o].call(t,a)&&(e[a]=t[a]);return e},f=function(e,t){return(f=n.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t[o](n)&&(e[n]=t[n])})(e,t)};function p(e,t){function n(){this.constructor=e}typeof t!==i&&null!==t&&d("Class extends value "+t+" is not a constructor or null"),f(e,t),e[H]=null===t?function(e){if(r)return r(e);if(null==e)return{};var t=typeof e;function n(){}return t!==l&&t!==i&&d("Object prototype may only be an Object:"+e),n[H]=e,new n}(t):(n[H]=t[H],new n)}var g,h="constructor",m="prototype",v="function",x="_dynInstFuncs",y="_isDynProxy",C="_dynClass",T="_dynInstChk",I=T,b="_dfOpts",A="_unknown_",S="__proto__",w="useBaseInst",q="setInstFuncs",M=Object,R=M.getPrototypeOf,F=0;function D(e,t){return e&&M[m].hasOwnProperty.call(e,t)}function L(e){return e&&(e===M[m]||e===Array[m])}function E(e){return L(e)||e===Function[m]}function j(e){if(e){if(R)return R(e);if(e=e[S]||e[m]||(e[h]?e[h][m]:null))return e}return null}function k(e,t){var n=[],r=M.getOwnPropertyNames;if(r)n=r(e);else for(var a in e)"string"==typeof a&&D(e,a)&&n.push(a);if(n&&0<n.length)for(var o=0;o<n.length;o++)t(n[o])}function _(e,t,n){return t!==h&&typeof e[t]===v&&(n||D(e,t))}function O(e){throw new TypeError("DynamicProto: "+e)}function U(e,t){for(var n=e.length-1;0<=n;n--)if(e[n]===t)return 1}function W(e,t){return D(e,m)?e.name||t||A:((e||{})[h]||{}).name||t||A}function V(e,r,t,n){D(e,m)||O("theClass is an invalid class definition.");var a=e[m];!function(e){if(R)for(var t=[],n=j(r);n&&!E(n)&&!U(t,n);){if(n===e)return 1;t.push(n),n=j(n)}}(a)&&O("["+W(e)+"] is not in class hierarchy of ["+W(r)+"]");var o=null;D(a,C)?o=a[C]:(o="_dynCls$"+W(e,"_")+"$"+F,F++,a[C]=o);var i=V[b],s=!!i[w];s&&n&&n[w]!==undefined&&(s=!!n[w]);var u,l,c,d,f,p,e=(l={},k(u=r,function(e){!l[e]&&_(u,e,!1)&&(l[e]=u[e])}),l);t(r,function(e,t,n,o){function r(e,t,n){var r,a=t[n];return a[y]&&o&&!1!==(r=e[x]||{})[I]&&(a=(r[t[C]]||{})[n]||a),function(){return a.apply(e,arguments)}}var a={};k(n,function(e){a[e]=r(t,n,e)});for(var i=j(e),s=[];i&&!E(i)&&!U(s,i);)k(i,function(e){!a[e]&&_(i,e,!R)&&(a[e]=r(t,i,e))}),s.push(i),i=j(i);return a}(a,r,e,s)),i=!!R&&!!i[q],c=a,o=o,d=r,f=e,n=!1!==(i=i&&n?!!n[q]:i),L(c)||(i=d[x]=d[x]||{},p=i[o]=i[o]||{},!1!==i[I]&&(i[I]=!!n),k(d,function(e){var n,r,a;_(d,e,!1)&&d[e]!==f[e]&&(p[e]=d[e],delete d[e],D(c,e)&&(!c[e]||c[e][y])||(c[e]=(n=c,r=e,(a=function(){var e,t;return(function(e,t,n,r){var a=null;if(e&&D(n,C)){var o=e[x]||{};if((a=(o[n[C]]||{})[t])||O("Missing ["+t+"] "+v),!a[T]&&!1!==o[I]){for(var i=!D(e,t),s=j(e),u=[];i&&s&&!E(s)&&!U(u,s);){var l=s[t];if(l){i=l===r;break}u.push(s),s=j(s)}try{i&&(e[t]=a),a[T]=1}catch(c){o[I]=!1}}}return a}(this,r,n,a)||(typeof(t=(t=n[e=r])===a?j(n)[e]:t)!==v&&O("["+e+"] is not a "+v),t)).apply(this,arguments)})[y]=1,a)))}))}V[b]={setInstFuncs:!0,useBaseInst:!0},(t=g=g||{})[t.CRITICAL=1]="CRITICAL",t[t.WARNING=2]="WARNING";var B={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},z="attachEvent",X="addEventListener",G="detachEvent",K="removeEventListener",$=a;function J(e){return u.toString.call(e)}function Z(e){return e===undefined||typeof e===s}function Q(e){return null===e||Z(e)}function Y(e){return typeof e===i}function ee(e,t,n,r){void 0===r&&(r=!1);var a=!1;if(!Q(e))try{Q(e[X])?Q(e[z])||(e[z]("on"+t,n),a=!0):(e[X](t,n,r),a=!0)}catch(o){}return a}function te(e,t,n,r){if(void 0===r&&(r=!1),!Q(e))try{Q(e[K])?Q(e[G])||e[G]("on"+t,n):e[K](t,n,r)}catch(a){}}function ne(e,t){if(e)for(var n in e)c.call(e,n)&&t.call(e,n,e[n])}function re(e,t){return!(!e||!t||!~e.indexOf(t))}function ae(e){return"string"==typeof e}function oe(e,t,n){for(var r=e.length,a=0;a<r&&!(a in e&&-1===t.call(n||e,e[a],a,e));a++);}function ie(e){return"string"!=typeof e?e:e.replace(/^\s+|\s+$/g,"")}var se=!{toString:null}.propertyIsEnumerable("toString"),ue=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"];function le(e){var t=typeof e;t===i||t===l&&null!==e||d("objKeys called on non-object");var n,r=[];for(n in e)e&&c.call(e,n)&&r.push(n);if(se)for(var a=ue.length,o=0;o<a;o++)e&&c.call(e,ue[o])&&r.push(ue[o]);return r}function ce(){var e=Date;return e.now?e.now():(new e).getTime()}var de="window",fe="performance",pe="JSON",ge="msie",he="trident/",me=null,ve=null;function xe(e){var t=P();return t&&t[e]?t[e]:e===de&&typeof window===l&&window?window:null}function ye(){return typeof navigator===l&&navigator?navigator:xe("navigator")}function Ce(){return xe(fe)}function Te(){return typeof JSON===l&&JSON||null!==xe(pe)}function Ie(){return Te()?JSON||xe(pe):null}function be(e){var t=Object[H].toString.call(e),n="";return"[object Error]"===t?n="{ stack: '"+e.stack+"', message: '"+e.message+"', name: '"+e.name+"'":Te()&&(n=Ie().stringify(e)),t+n}function Ae(e){return e?'"'+e.replace(/\"/g,"")+'"':""}var Se=(we.dataType="MessageData",we);function we(e,t,n,r){void 0===n&&(n=!1),this.messageId=e,this.message=(n?"AI: ":"AI (Internal): ")+e,e="",Te()&&(e=Ie().stringify(r)),e=(t?" message:"+Ae(t):"")+(r?" props:"+Ae(e):""),this.message+=e}var qe=function Ut(n){this.identifier="DiagnosticLogger",this.queue=[];var a=0,i={};V(Ut,this,function(o){function e(e,t){return Q(e=n[e])?t:e}Q(n)&&(n={}),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,t,n,r,a){if(n=new Se(t,n,a=void 0!==a&&a,r),o.enableDebugExceptions())throw n;Z(n.message)||(r=o.consoleLoggingLevel(),a?(a=+n.messageId,!i[a]&&r>=g.WARNING&&(o.warnToConsole(n.message),i[a]=!0)):r>=g.WARNING&&o.warnToConsole(n.message),o.logInternalMessage(e,n))},o.warnToConsole=function(e){var t,n=typeof console!==s?console:xe("console");n&&(t="log",Y(n[t=n.warn?"warn":t])&&n[t](e))},o.resetInternalMessageCount=function(){a=0,i={}},o.logInternalMessage=function(e,t){var n,r;a>=o.maxInternalMessageLimit()||(n=!0,r="AITR_"+t.messageId,i[r]?n=!1:i[r]=!0,n&&(e<=o.telemetryLoggingLevel()&&(o.queue.push(t),a++),a===o.maxInternalMessageLimit()&&(t=new Se(B.MessageLimitPerPVExceeded,e="Internal events throttle limit per PageView reached for this app.",!1),o.queue.push(t),o.warnToConsole(e))))}})},Me=(Re.ParentContextKey="parent",Re.ChildrenContextKey="childEvts",Re);function Re(e,a,t){var r,o=this,i=!1;o.start=ce(),o.name=e,o.isAsync=t,o.isChildEvt=function(){return!1},Y(a)&&(i=function(e){if($)try{var t={enumerable:!0,configurable:!0,get:function(){return!r&&Y(a)&&(r=a(),a=null),r}};return $(e,"payload",t),!0}catch(n){}return!1}(o)),o.getCtx=function(e){return e?(e===Re.ParentContextKey||e===Re.ChildrenContextKey?o:o.ctx||{})[e]:null},o.setCtx=function(e,t){e&&(e===Re.ParentContextKey?(o[e]||(o.isChildEvt=function(){return!0}),o[e]=t):e===Re.ChildrenContextKey?o[e]=t:(o.ctx=o.ctx||{})[e]=t)},o.complete=function(){var e=0,t=o.getCtx(Re.ChildrenContextKey);if("[object Array]"===J(t))for(var n=0;n<t.length;n++){var r=t[n];r&&(e+=r.time)}o.time=ce()-o.start,o.exTime=o.time-e,o.complete=function(){},!i&&Y(a)&&(o.payload=a())}}var Fe="CoreUtils.doPerf";function De(e,t,n,r,a){if(e){var o=e;if(o=Y(o.getPerfMgr)?o.getPerfMgr():o){var i,s=void 0,e=o.getCtx(Fe);try{if(s=o.create(t(),r,a))return e&&s.setCtx&&(s.setCtx(Me.ParentContextKey,e),e.getCtx&&e.setCtx&&((i=e.getCtx(Me.ChildrenContextKey))||(i=[],e.setCtx(Me.ChildrenContextKey,i)),i.push(s))),o.setCtx(Fe,s),n(s)}catch(u){s&&s.setCtx&&s.setCtx("exception",u)}finally{s&&o.fire(s),o.setCtx(Fe,e)}}}return n()}var Le=function(a,t){var o=this,i=null,s=Y(a.processTelemetry),u=Y(a.setNextPlugin);o._hasRun=!1,o.getPlugin=function(){return a},o.getNext=function(){return i},o.setNext=function(e){i=e},o.processTelemetry=function(n,r){r=r||t;var e=a?a.identifier:"TelemetryPluginChain";De(r?r.core():null,function(){return e+":processTelemetry"},function(){if(a&&s){o._hasRun=!0;try{r.setNext(i),u&&a.setNextPlugin(i),i&&(i._hasRun=!1),a.processTelemetry(n,r)}catch(t){var e=i&&i._hasRun;i&&e||r.diagLog().throwInternal(g.CRITICAL,B.PluginException,"Plugin ["+a.identifier+"] failed during processTelemetry - "+t),i&&!e&&i.processTelemetry(n,r)}}else i&&(o._hasRun=!0,i.processTelemetry(n,r))},function(){return{item:n}},!n.sync)}};function Ee(e,t){var n=[];if(e&&0<e.length)for(var r=null,a=0;a<e.length;a++){var o=e[a];o&&Y(o.processTelemetry)&&(o=new Le(o,t),n.push(o),r&&r.setNext(o),r=o)}return 0<n.length?n[0]:null}var je=function Wt(e,a,n,t){var r,o,i,s,u=this,l=null;null!==t&&(e&&Y(e.getPlugin)?l=function(e,t,n){var r=[],a=!n;if(e)for(;e;){var o=e.getPlugin();!a&&o!==n||(a=!0,r.push(o)),e=e.getNext()}return a||r.push(n),Ee(r,t)}(e,u,t||e.getPlugin()):t?(r=u,i=e,s=!1,(o=t)&&e&&(i=[],oe(e,function(e){!s&&e!==o||(s=!0,i.push(e))})),o&&!s&&(i=i||[]).push(o),l=Ee(i,r)):Z(t)&&(l=Ee(e,u))),u.core=function(){return n},u.diagLog=function(){return(n||{}).logger||new qe(a)},u.getCfg=function(){return a},u.getExtCfg=function(e,t){var n,r;return void 0===t&&(t={}),!a||(r=a.extensionConfig)&&e&&(n=r[e]),n||t},u.getConfig=function(e,t,n){var r;return void 0===n&&(n=!1),(e=u.getExtCfg(e,null))&&!Q(e[t])?r=e[t]:a&&!Q(a[t])&&(r=a[t]),Q(r)?n:r},u.hasNext=function(){return null!=l},u.getNext=function(){return l},u.setNext=function(e){l=e},u.processNext=function(e){var t=l;t&&(l=t.getNext(),t.processTelemetry(e,u))},u.createNew=function(e,t){return new Wt((e=void 0===e?null:e)||l,a,n,t)}},ke="getPlugin",a=(He.prototype.initialize=function(e,t,n,r){this._baseTelInit(e,t,n,r)},He);function He(){var s=this,u=!1,l=null,c=null;s.core=null,s.diagLog=function(e){return s._getTelCtx(e).diagLog()},s.isInitialized=function(){return u},s.setInitialized=function(e){u=e},s.setNextPlugin=function(e){c=e},s.processNext=function(e,t){t?t.processNext(e):c&&Y(c.processTelemetry)&&c.processTelemetry(e,null)},s._getTelCtx=function(e){var t=e=void 0===e?null:e;return t||(e=l||new je(null,{},s.core),t=c&&c[ke]?e.createNew(null,c[ke]):e.createNew(null,c)),t},s._baseTelInit=function(e,t,n,r){var a,o;e&&(a="extensionConfig",i=o=[],!e||(i=e[a])!==o&&Q(i)&&(e[a]=i=o)),!r&&t&&(r=t.getProcessTelContext().getNext());var i=c;c&&c[ke]&&(i=c[ke]()),s.core=t,l=new je(r,e,t,i),u=!0}}var Pe=4294967296,Ne=4294967295,_e=!1,Oe=123456789,Ue=987654321;function We(e){var t=xe("crypto")||xe("msCrypto"),n=t&&t.getRandomValues?t.getRandomValues(new Uint32Array(1))[0]&Ne:(!(n=ye())||n.userAgent===ve&&null!==me||(n=((ve=n.userAgent)||"").toLowerCase(),me=re(n,ge)||re(n,he)),me?(_e||function(){try{var e=2147483647&ce();(t=(Math.random()*Pe^e)+e)<0&&(t>>>=0),Oe=123456789+t&Ne,Ue=987654321-t&Ne,_e=!0}catch(n){}var t}(),t=((Ue=36969*(65535&Ue)+(Ue>>16)&Ne)<<16)+(65535&(Oe=18e3*(65535&Oe)+(Oe>>16)&Ne))>>>0&Ne|0,(t>>>=0)&Ne):Math.floor(Pe*Math.random()|0));return e||(n>>>=0),n}function Ve(){for(var e,t=["0","1","2","3","4","5","6","7","8","9","a","b","c","d","e","f"],n="",r=0;r<4;r++)n+=t[15&(e=We())]+t[e>>4&15]+t[e>>8&15]+t[e>>12&15]+t[e>>16&15]+t[e>>20&15]+t[e>>24&15]+t[e>>28&15];var a=t[8+(3&We())|0];return n.substr(0,8)+n.substr(9,4)+"4"+n.substr(13,3)+a+n.substr(16,3)+n.substr(19,12)}var Be={Attach:ee,AttachEvent:ee,Detach:te,DetachEvent:te},ze="_aiHooks",Xe=["req","rsp","hkErr","fnErr"];function Ge(e,t){if(e)for(var n=0;n<e.length&&!t(e[n],n);n++);}function Ke(e,i,s,u,l){0<=l&&l<=2&&Ge(e,function(e,t){var n=e.cbks;if(e=n[Xe[l]]){i.ctx=function(){return u[t]=u[t]||{}};try{e.apply(i.inst,s)}catch(a){e=i.err;try{var r=n.hkErr;r&&(i.err=a,r.apply(i.inst,s))}catch(o){}finally{i.err=e}}}})}function $e(u){return function(){var n=arguments,e=u.h,r={name:u.n,inst:this,ctx:null,set:function(e,t){(n=o([],n))[e]=t,a=o([r],n)}},t=[],a=o([r],n);function o(t,e){return Ge(e,function(e){t.push(e)}),t}Ke(e,r,a,t,0);var i=u.f;try{r.rslt=i.apply(this,n)}catch(s){throw r.err=s,Ke(e,r,a,t,3),s}return Ke(e,r,a,t,1),r.rslt}}var Je=Object.getPrototypeOf;function Ze(e,t,n,r){if(void 0===r&&(r=!0),e&&t&&n&&(e=function o(e,t,n){var r=null;return e&&(c.call(e,t)?r=e:n&&(r=o(function(e){if(e){if(Je)return Je(e);if(e=e.__proto__||e[H]||e.constructor)return e}return null}(e),t,!1))),r}(e,t,r))&&typeof(r=e[t])===i){var a=r[ze];return a||((r=$e(a={i:0,n:t,f:r,h:[]}))[ze]=a,e[t]=r),n={id:a.i,cbks:n,rm:function(){var n=this.id;Ge(a.h,function(e,t){return e.id===n&&(a.h.splice(t,1),1)})}},a.i++,a.h.push(n),n}return null}function Qe(e,t,n){var r,a,o=t.length,i=(t&&150<(t=ie(t.toString())).length&&(r=t.substring(0,150),e.throwInternal(g.WARNING,B.NameTooLong,"name is too long. It has been truncated to 150 characters.",{name:t},!0)),r||t);if(i.length!==o){for(var s=0,u=i;n[u]!==undefined;)s++,u=i.substring(0,147)+(a="00"+s).substr(a.length-3);i=u}return i}function Ye(e,t,n){var r;return void 0===n&&(n=1024),t&&(n=n||1024,(t=ie(t)).toString().length>n&&(r=t.toString().substring(0,n),e.throwInternal(g.WARNING,B.StringValueTooLong,"string value is too long. It has been truncated to "+n+" characters.",{value:t},!0))),r||t}function et(e,t){return n=e,e=t,t=B.UrlTooLong,e&&2048<(e=ie(e)).length&&(r=e.substring(0,2048),n.throwInternal(g.WARNING,t,"input is too long, it has been truncated to 2048 characters.",{data:e},!0)),r||e;var n,r}function tt(r,e){var a;return e&&(a={},ne(e,function(e,t){if(typeof t===l&&Te())try{t=Ie().stringify(t)}catch(n){r.throwInternal(g.WARNING,B.CannotSerializeObjectNonSerializable,"custom property is not valid",{exception:n},!0)}t=Ye(r,t,8192),e=Qe(r,e,a),a[e]=t}),e=a),e}function nt(e){var t=""+Math.floor((e=Math.round(e=isNaN(e)||e<0?0:e))/1e3)%60,n=""+Math.floor(e/6e4)%60,r=""+Math.floor(e/36e5)%24,a=Math.floor(e/864e5),e=1===(e=""+e%1e3).length?"00"+e:2===e.length?"0"+e:e,t=t.length<2?"0"+t:t,n=n.length<2?"0"+n:n;return(0<a?a+".":"")+(r=r.length<2?"0"+r:r)+":"+n+":"+t+"."+e}var rt,at,ot="Microsoft_ApplicationInsights_BypassAjaxInstrumentation";(at=at||{})[at.LocalStorage=0]="LocalStorage",at[at.SessionStorage=1]="SessionStorage",(at=rt=rt||{})[at.AI=0]="AI",at[at.AI_AND_W3C=1]="AI_AND_W3C",at[at.W3C=2]="W3C";var it=(typeof document===l&&document?document:xe("document"))||{},st=0,ut=[null,null,null,null,null];function lt(e){var t,n,r=st,a=ut,o=a[r];return it.createElement?a[r]||(o=a[r]=it.createElement("a")):o={host:(t=ct(t=e,!0)||"")&&null!=(n=t.match(/(www[0-9]?\.)?(.[^/:]+)(\:[\d]+)?/i))&&3<n.length&&ae(n[2])&&0<n[2].length?n[2]+(n[3]||""):t},o.href=e,++r>=a.length&&(r=0),st=r,o}function ct(e,t){var n=null;return!e||null!=(e=e.match(/(\w*):\/\/(.[^/:]+)(\:[\d]+)?/i))&&2<e.length&&ae(e[2])&&0<e[2].length&&(n=e[2]||"",t&&2<e.length&&(t=(e[1]||"").toLowerCase(),e=e[3]||"",n+=e="http"==t&&":80"===e||"https"==t&&":443"===e?"":e)),n}var dt={correlationIdPrefix:"cid-v1:",canIncludeCorrelationHeader:function(e,t,n){if(!t||e&&e.disableCorrelationHeaders)return!1;if(e&&e.correlationHeaderExcludePatterns)for(var r=0;r<e.correlationHeaderExcludePatterns.length;r++)if(e.correlationHeaderExcludePatterns[r].test(t))return!1;var a,o=lt(t).host.toLowerCase();if(o&&(~o.indexOf(":443")||~o.indexOf(":80"))&&(o=(ct(t,!0)||"").toLowerCase()),(!e||!e.enableCorsCorrelation)&&o&&o!==n)return!1;if((n=e&&e.correlationHeaderDomains)&&(oe(n,function(e){e=RegExp(e.toLowerCase().replace(/\\/g,"\\\\").replace(/\./g,"\\.").replace(/\*/g,".*")),a=a||e.test(o)}),!a))return!1;var i=e&&e.correlationHeaderExcludedDomains;if(!i||0===i.length)return!0;for(r=0;r<i.length;r++)if(RegExp(i[r].toLowerCase().replace(/\\/g,"\\\\").replace(/\./g,"\\.").replace(/\*/g,".*")).test(o))return!1;return o&&0<o.length},getCorrelationContext:function(e){if((e=e&&dt.getCorrelationContextValue(e,"appId"))&&e!==dt.correlationIdPrefix)return e},getCorrelationContextValue:function(e,t){if(e)for(var n=e.split(","),r=0;r<n.length;++r){var a=n[r].split("=");if(2===a.length&&a[0]===t)return a[1]}}};function ft(){var e=Ce();return e&&e.now&&e.timing&&0<(e=e.now()+e.timing.navigationStart)?e:ce()}function pt(e,t){return 0===e||0===t||Q(e)||Q(t)?null:t-e}var gt,ht=(p(mt,gt=function(){this.ver=2,this.success=!0,this.properties={},this.measurements={}}),mt.envelopeType="Microsoft.ApplicationInsights.{0}.RemoteDependency",mt.dataType="RemoteDependencyData",mt);function mt(e,t,n,r,a,o,i,s,u,l,c,d){void 0===u&&(u="Ajax");var f=gt.call(this)||this;f.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},f.id=t,f.duration=nt(a),f.success=o,f.resultCode=i+"",f.type=Ye(e,u);var p,g,h,m,i=(p=e,t=s,i=o=a=r,o=(u=n)&&0<u.length?(g=(s=lt(u)).host,o||(null!=s.pathname?("/"!=((n=0===s.pathname.length?"/":s.pathname)[0]||"")&&(n="/"+n),i=s.pathname,Ye(p,t?t+" "+n:n)):Ye(p,u))):g=a,{target:g,name:o,data:i});return f.data=et(e,r)||i.data,f.target=Ye(e,i.target),l&&(f.target=f.target+" | "+l),f.name=Ye(e,i.name),f.properties=tt(e,c),f.measurements=(h=e,d&&(m={},ne(d,function(e,t){e=Qe(h,e,m),m[e]=t}),d=m),d),f}var vt=(xt.create=function(e,t,n,r,a,o){if(n=Ye(r,n)||"not_specified",Q(e)||Q(t)||Q(n))throw Error("Input doesn't contain all required fields");var i={name:n,time:function(e){if("[object Date]"===J(e)){var t=function(e){return 1===(e=""+e).length?"0"+e:e};return e.getUTCFullYear()+"-"+t(1+e.getUTCMonth())+"-"+t(e.getUTCDate())+"T"+t(e.getUTCHours())+":"+t(e.getUTCMinutes())+":"+t(e.getUTCSeconds())+"."+(""+(e.getUTCMilliseconds()/1e3).toFixed(3)).slice(2,5)+"Z"}}(new Date),iKey:"",ext:o||{},tags:[],data:{},baseType:t,baseData:e};return Q(a)||ne(a,function(e,t){i.data[e]=t}),i},xt);function xt(){}var yt="properties";function Ct(e,t,n){t=e[t],e=e[n];return t&&e?pt(t,e):0}function Tt(e,t,n,r,a){return(a=Ct(n,r,a))?It(e,t,nt(a)):0}function It(e,t,n){var r="ajaxPerf",a=0;return e&&t&&n&&((e[r]=e[r]||{})[t]=n,a=1),a}var bt=function(){var e=this;e.openDone=!1,e.setRequestHeaderDone=!1,e.sendDone=!1,e.abortDone=!1,e.stateChangeAttached=!1},At=function Vt(e,t,n){var r=this,a=n,x="responseText";r.perfMark=null,r.completed=!1,r.requestHeadersSize=null,r.requestHeaders=null,r.responseReceivingDuration=null,r.callbackDuration=null,r.ajaxTotalDuration=null,r.aborted=0,r.pageUrl=null,r.requestUrl=null,r.requestSize=0,r.method=null,r.status=null,r.requestSentTime=null,r.responseStartedTime=null,r.responseFinishedTime=null,r.callbackFinishedTime=null,r.endTime=null,r.xhrMonitoringState=new bt,r.clientFailure=0,r.traceID=e,r.spanID=t,V(Vt,r,function(v){v.getAbsoluteUrl=function(){return v.requestUrl?(e=lt(v.requestUrl))?e.href:void 0:null;var e},v.getPathName=function(){return v.requestUrl?et(a,(e=v.method,t=v.requestUrl,e?e.toUpperCase()+" "+t:t)):null;var e,t},v.CreateTrackItem=function(e,t,n){return v.ajaxTotalDuration=Math.round(1e3*pt(v.requestSentTime,v.responseFinishedTime))/1e3,v.ajaxTotalDuration<0?null:((e={id:"|"+v.traceID+"."+v.spanID,target:v.getAbsoluteUrl(),name:v.getPathName(),type:e,startTime:null,duration:v.ajaxTotalDuration,success:200<=+v.status&&+v.status<400,responseCode:+v.status,method:v.method})[yt]={HttpMethod:v.method},v.requestSentTime&&(e.startTime=new Date,e.startTime.setTime(v.requestSentTime)),a=e,i=(r=v).perfTiming,s=a[yt]||{},u=0,l="startTime",c="connect"+"End",d="request"+"Start",f="response"+"End",p="transferSize",g="encodedBodySize",h="decodedBodySize",m="serverTiming",i?(u|=Tt(s,"End",i,"redirectStart","End"),u|=Tt(s,"domainLookup",i,"domainLookupStart","domainLookupEnd"),u|=Tt(s,"connect",i,"connectStart",c),u|=Tt(s,"request",i,d,"requestEnd"),u|=Tt(s,"response",i,"responseStart",f),u|=Tt(s,"networkConnect",i,l,c),u|=Tt(s,"sentRequest",i,d,f),u|=It(s,"duration",f=i.duration||Ct(i,l,f)||0),u|=It(s,"perfTotal",f),(f=i[m])&&(o={},oe(f,function(e,t){var n,r,t=(n=e.name||""+t,(r=/([^\w\d_$])/g).test(t=n)?n.replace(r,"_"):t),a=o[t]||{};ne(e,function(e,t){("name"!==e&&ae(t)||"number"==typeof t)&&(!(t=a[e]?a[e]+";"+t:t)&&ae(t)||(a[e]=t))}),o[t]=a}),u|=It(s,m,o)),u|=It(s,p,i[p]),u|=It(s,g,i[g]),u|=It(s,h,i[h])):r.perfMark&&(u|=It(s,"missing",r.perfAttempts)),u&&(a[yt]=s),t&&0<le(v.requestHeaders).length&&(e[yt]=e[yt]||{},e[yt].requestHeaders=v.requestHeaders),!n||(t=n())&&((n=t.correlationContext)&&(e.correlationContext=n),t.headerMap&&0<le(t.headerMap).length&&(e[yt]=e[yt]||{},e[yt].responseHeaders=t.headerMap),400<=v.status&&(n=t.type,e[yt]=e[yt]||{},""!==n&&"text"!==n||(e[yt][x]=t[x]?t.statusText+" - "+t[x]:t.statusText),"json"===n&&(e[yt][x]=t.response?t.statusText+" - "+JSON.stringify(t.response):t.statusText))),e);var r,a,o,i,s,u,l,c,d,f,p,g,h,m}})},St=(wt.isValidTraceId=function(e){return e.match(/^[0-9a-f]{32}$/)&&"00000000000000000000000000000000"!==e},wt.isValidSpanId=function(e){return e.match(/^[0-9a-f]{16}$/)&&"0000000000000000"!==e},wt.prototype.toString=function(){return this.version+"-"+this.traceId+"-"+this.spanId+"-"+this.traceFlag},wt.DEFAULT_TRACE_FLAG="01",wt.DEFAULT_VERSION="00",wt);function wt(e,t){var n=this;n.traceFlag=wt.DEFAULT_TRACE_FLAG,n.version=wt.DEFAULT_VERSION,e&&wt.isValidTraceId(e)?n.traceId=e:n.traceId=Ve(),t&&wt.isValidSpanId(t)?n.spanId=t:n.spanId=Ve().substr(0,16)}var qt="ai.ajxmn.",Mt="diagLog",Rt="ajaxData",Ft="throwInternal",Dt="fetch",Lt=0;function Et(e){var t=!1;typeof XMLHttpRequest===s||Q(XMLHttpRequest)||(t=!(Q(a=XMLHttpRequest[H])||Q(a.open)||Q(a.send)||Q(a.abort)));var n,r,a=re(n=((n=(n=void 0===n?null:n)?n:(r=ye()||{})?(r.userAgent||"").toLowerCase():"")||"").toLowerCase(),ge)?parseInt(n.split(ge)[1]):re(n,he)&&(n=parseInt(n.split(he)[1]))?n+4:null;if(t=!(a&&a<9)&&t)try{(new XMLHttpRequest)[Rt]={};var o=XMLHttpRequest[H].open;XMLHttpRequest[H].open=o}catch(i){t=!1,kt(e,B.FailedMonitorAjaxOpen,"Failed to enable XMLHttpRequest monitoring, extension is not supported",{exception:be(i)})}return t}function jt(e){var t="";try{Q(e)||Q(e[Rt])||Q(e[Rt].requestUrl)||(t+="(url: '"+e[Rt].requestUrl+"')")}catch(n){}return t}function kt(e,t,n,r,a){e[Mt]()[Ft](g.CRITICAL,t,n,r,a)}function Ht(e,t,n,r,a){e[Mt]()[Ft](g.WARNING,t,n,r,a)}function Pt(t,n,r){return function(e){kt(t,n,r,{ajaxDiagnosticsMessage:jt(e.inst),exception:be(e.err)})}}function Nt(e,t){return e&&t?e.indexOf(t):-1}var _t,a=(p(Ot,_t=a),Ot.getDefaultConfig=function(){return{maxAjaxCallsPerView:500,disableAjaxTracking:!1,disableFetchTracking:!0,excludeRequestFromAutoTrackingPatterns:undefined,disableCorrelationHeaders:!1,distributedTracingMode:rt.AI_AND_W3C,correlationHeaderExcludedDomains:["*.blob.core.windows.net","*.blob.core.chinacloudapi.cn","*.blob.core.cloudapi.de","*.blob.core.usgovcloudapi.net"],correlationHeaderDomains:undefined,correlationHeaderExcludePatterns:undefined,appId:undefined,enableCorsCorrelation:!1,enableRequestHeaderTracking:!1,enableResponseHeaderTracking:!1,enableAjaxErrorStatusText:!1,enableAjaxPerfTracking:!1,maxAjaxPerfLookupAttempts:3,ajaxPerfLookupDelay:25,ignoreHeaders:["Authorization","X-API-Key","WWW-Authenticate"],addRequestContext:undefined}},Ot.getEmptyConfig=function(){var t=this.getDefaultConfig();return ne(t,function(e){t[e]=undefined}),t},Ot.prototype.processTelemetry=function(e,t){this.processNext(e,t)},Ot.identifier="AjaxDependencyPlugin",Ot);function Ot(){var e=_t.call(this)||this;e.identifier=Ot.identifier,e.priority=120;var T,I,b,A,S,w,q="trackDependencyDataInternal",t=typeof location===l&&location?location:xe("location"),M=!1,R=!1,u=t&&t.host&&t.host.toLowerCase(),F=Ot.getEmptyConfig(),D=!1,r=0,L=!1,E=0,j=!1,k=[],s={};return V(Ot,e,function(l,c){function d(t){var n=!0;return(t||F.ignoreHeaders)&&oe(F.ignoreHeaders,function(e){if(e.toLowerCase()==t.toLowerCase())return n=!1,-1}),n}function f(e,t,n){k.push(e?Ze(e[H],t,n,!1):null)}function p(e,t,n){var r=!1,a=((ae(t)?t:(t||{}).url||"")||"").toLowerCase();if(oe(S,function(e){var t=e;ae(e)&&(t=RegExp(e)),r=r||t.test(a)}),r)return r;var o=Nt(a,"?"),i=Nt(a,"#");return-1!==(o=-1===o||-1!==i&&i<o?i:o)&&(a=a.substring(0,o)),Q(e)?Q(t)||(r="object"==typeof t&&!0===t[ot]||!!n&&!0===n[ot]):r=!0===e[ot]||!0===a[ot],r?s[a]||(s[a]=1):s[a]&&(r=!0),r}function g(e,t){var n=!0,r=R;return Q(e)||(n=!0===t||!Q(e[Rt])),r&&n}function h(n){n[Rt].xhrMonitoringState.stateChangeAttached=Be.Attach(n,"readystatechange",function(){try{n&&4===n.readyState&&g(n)&&((o=(a=n)[Rt]).responseFinishedTime=ft(),o.status=a.status,v("xmlhttprequest",o,function(){try{var e=o.CreateTrackItem("Ajax",D,function(){var e,n,t={statusText:a.statusText,headerMap:null,correlationContext:i(a),type:a.responseType,responseText:function(e){try{var t=e.responseType;if(""===t||"text"===t)return e.responseText}catch(n){}return null}(a),response:a.response};return!j||(e=a.getAllResponseHeaders())&&(e=ie(e).split(/[\r\n]+/),n={},oe(e,function(e){var e=(t=e.split(": ")).shift(),t=t.join(": ");d(e)&&(n[e]=t)}),t.headerMap=n),t}),t=void 0;try{w&&(t=w({status:a.status,xhr:a}))}catch(n){Ht(l,B.FailedAddingCustomDefinedRequestContext,"Failed to add custom defined request context as configured call back may missing a null check.")}e?(t!==undefined&&(e.properties=N(N({},e.properties),t)),l[q](e)):r(null,{requestSentTime:o.requestSentTime,responseFinishedTime:o.responseFinishedTime})}finally{try{a[Rt]=null}catch(n){}}},function(e){r(e,null)}))}catch(t){var e=be(t);e&&-1!==Nt(e.toLowerCase(),"c00c023f")||kt(l,B.FailedMonitorAjaxRSC,"Failed to monitor XMLHttpRequest 'readystatechange' event handler, monitoring data for this ajax call may be incorrect.",{ajaxDiagnosticsMessage:jt(n),exception:e})}function r(e,t){(t=t||{}).ajaxDiagnosticsMessage=jt(a),e&&(t.exception=be(e)),Ht(l,B.FailedMonitorAjaxDur,"Failed to calculate the duration of the ajax call, monitoring data for this ajax call won't be sent.",t)}var a,o})}function i(e){try{var t=e.getAllResponseHeaders();if(null!==t&&-1!==Nt(t.toLowerCase(),"request-context")){var n=e.getResponseHeader("Request-Context");return dt.getCorrelationContext(n)}}catch(r){Ht(l,B.FailedMonitorAjaxGetCorrelationHeader,"Failed to get Request-Context correlation header as it may be not included in the response or not accessible.",{ajaxDiagnosticsMessage:jt(e),exception:be(r)})}}function m(e,t){var n;t.requestUrl&&A&&L&&(n=Ce())&&Y(n.mark)&&(e=A+e+"#"+ ++Lt,n.mark(e),(n=n.getEntriesByName(e))&&1===n.length&&(t.perfMark=n[0]))}function v(o,i,s,u){var l=i.perfMark,c=Ce(),d=F.maxAjaxPerfLookupAttempts,f=F.ajaxPerfLookupDelay,p=i.requestUrl,g=0;!function h(){try{if(c&&l){g++;for(var e=null,t=c.getEntries(),n=t.length-1;0<=n;n--){var r=t[n];if(r){if("resource"===r.entryType)r.initiatorType!==o||-1===Nt(r.name,p)&&-1===Nt(p,r.name)||(e=r);else if("mark"===r.entryType&&r.name===l.name){i.perfTiming=e;break}if(r.startTime<l.startTime-1e3)break}}}!l||i.perfTiming||d<=g||!1===i["async"]?(l&&Y(c.clearMarks)&&c.clearMarks(l.name),i.perfAttempts=g,s()):setTimeout(h,f)}catch(a){u(a)}}()}function x(e){var t="";try{Q(e)||(t+="string"==typeof e?"(url: '"+e+"')":"(url: '"+e.url+"')")}catch(n){kt(l,B.FailedMonitorAjaxOpen,"Failed to grab failed fetch diagnostics message",{exception:be(n)})}return t}function y(e,r,a,o,i,s){function u(e,t,n){(n=n||{}).fetchDiagnosticsMessage=x(a),t&&(n.exception=be(t)),Ht(l,e,"Failed to calculate the duration of the fetch call, monitoring data for this fetch call won't be sent.",n)}i&&(i.responseFinishedTime=ft(),i.status=r,v("fetch",i,function(){var e,t=i.CreateTrackItem("Fetch",D,s);try{w&&(e=w({status:r,request:a,response:o}))}catch(n){Ht(l,B.FailedAddingCustomDefinedRequestContext,"Failed to add custom defined request context as configured call back may missing a null check.")}t?(e!==undefined&&(t.properties=N(N({},t.properties),e)),l[q](t)):u(B.FailedMonitorAjaxDur,null,{requestSentTime:i.requestSentTime,responseFinishedTime:i.responseFinishedTime})},function(e){u(B.FailedMonitorAjaxGetCorrelationHeader,e,null)}))}function C(e){if(e&&e.headers)try{var t=e.headers.get("Request-Context");return dt.getCorrelationContext(t)}catch(n){Ht(l,B.FailedMonitorAjaxGetCorrelationHeader,"Failed to get Request-Context correlation header as it may be not included in the response or not accessible.",{fetchDiagnosticsMessage:x(e),exception:be(n)})}}l.initialize=function(e,t,n,r){if(!l.isInitialized()){c.initialize(e,t,n,r);var a=l._getTelCtx();if(ne(Ot.getDefaultConfig(),function(e,t){F[e]=a.getConfig(Ot.identifier,e,t)}),r=F.distributedTracingMode,D=F.enableRequestHeaderTracking,L=F.enableAjaxPerfTracking,E=F.maxAjaxCallsPerView,j=F.enableResponseHeaderTracking,S=F.excludeRequestFromAutoTrackingPatterns,w=F.addRequestContext,b=r===rt.AI||r===rt.AI_AND_W3C,I=r===rt.AI_AND_W3C||r===rt.W3C,L&&(s=e.instrumentationKey||"unkwn",A=5<s.length?qt+s.substring(s.length-5)+".":qt+s+"."),!1===F.disableAjaxTracking&&Et(l)&&!R&&(f(XMLHttpRequest,"open",{req:function(e,t,n,r){var a=e.inst,o=a[Rt];p(a,n)||!g(a,!0)||o&&o.xhrMonitoringState.openDone||(e=a,o=t,a=n,t=r,n=T&&T.telemetryTrace&&T.telemetryTrace.traceID||Ve(),r=Ve().substr(0,16),(r=new At(n,r,l[Mt]())).method=o,r.requestUrl=a,r.xhrMonitoringState.openDone=!0,r.requestHeaders={},r["async"]=t,e[Rt]=r,h(e))},hkErr:Pt(l,B.FailedMonitorAjaxOpen,"Failed to monitor XMLHttpRequest.open, monitoring data for this ajax call may be incorrect.")}),f(XMLHttpRequest,"send",{req:function(e,t){var n=e.inst,e=n[Rt];g(n)&&!e.xhrMonitoringState.sendDone&&(m("xhr",e),e.requestSentTime=ft(),l.includeCorrelationHeaders(e,undefined,undefined,n),e.xhrMonitoringState.sendDone=!0)},hkErr:Pt(l,B.FailedMonitorAjaxSend,"Failed to monitor XMLHttpRequest, monitoring data for this ajax call may be incorrect.")}),f(XMLHttpRequest,"abort",{req:function(e){var t=e.inst,e=t[Rt];g(t)&&!e.xhrMonitoringState.abortDone&&(e.aborted=1,e.xhrMonitoringState.abortDone=!0)},hkErr:Pt(l,B.FailedMonitorAjaxAbort,"Failed to monitor XMLHttpRequest.abort, monitoring data for this ajax call may be incorrect.")}),D&&f(XMLHttpRequest,"setRequestHeader",{req:function(e,t,n){g(e=e.inst)&&d(t)&&(e[Rt].requestHeaders[t]=n)},hkErr:Pt(l,B.FailedMonitorAjaxSetRequestHeader,"Failed to monitor XMLHttpRequest.setRequestHeader, monitoring data for this ajax call may be incorrect.")}),R=!0),(e=!(r=P())||Q(r.Request)||Q(r.Request[H])||Q(r[Dt])?null:r[Dt])&&(s=P(),u=e.polyfill,!1===F.disableFetchTracking?(k.push(Ze(s,Dt,{req:function(e,t,n){var r,a;!M||p(null,t,n)||u&&R||(r=e.ctx(),a=function(e,t){var n=T&&T.telemetryTrace&&T.telemetryTrace.traceID||Ve(),r=Ve().substr(0,16);(n=new At(n,r,l[Mt]())).requestSentTime=ft(),e instanceof Request?n.requestUrl=e?e.url:"":n.requestUrl=e,r="GET",t&&t.method?r=t.method:e&&e instanceof Request&&(r=e.method),n.method=r;var a={};return D&&new Headers((t?t.headers:0)||e instanceof Request&&e.headers||{}).forEach(function(e,t){d(t)&&(a[t]=e)}),n.requestHeaders=a,m("fetch",n),n}(t,n),(t=l.includeCorrelationHeaders(a,t,n))!==n&&e.set(1,t),r.data=a)},rsp:function(e,n){var r=e.ctx().data;r&&(e.rslt=e.rslt.then(function(t){return y(0,(t||{}).status,n,t,r,function(){var n,e={statusText:t.statusText,headerMap:null,correlationContext:C(t)};return j&&(n={},t.headers.forEach(function(e,t){d(t)&&(n[t]=e)}),e.headerMap=n),e}),t})["catch"](function(e){throw y(0,0,n,null,r,null,e.message),e}))},hkErr:Pt(l,B.FailedMonitorAjaxOpen,"Failed to monitor Window.fetch, monitoring data for this fetch call may be incorrect.")})),M=!0):u&&k.push(Ze(s,Dt,{req:function(e,t,n){p(null,t,n)}})),u&&(s[Dt].polyfill=u)),0<n.length&&n){for(var o=void 0,i=0;!o&&i<n.length;)n[i]&&"AppInsightsPropertiesPlugin"===n[i].identifier&&(o=n[i]),i++;o&&(T=o.context)}}var s,u},l.teardown=function(){oe(k,function(e){e.rm()}),R=M=!(k=[]),l.setInitialized(!1)},l.trackDependencyData=function(e,t){l[q](e,t)},l.includeCorrelationHeaders=function(e,t,n,r){var a,o,i,s=l._currentWindowHost||u;return t?(dt.canIncludeCorrelationHeader(F,e.getAbsoluteUrl(),s)&&((n=n||{}).headers=new Headers(n.headers||t instanceof Request&&t.headers||{}),b&&(a="|"+e.traceID+"."+e.spanID,n.headers.set("Request-Id",a),D&&(e.requestHeaders["Request-Id"]=a)),(o=F.appId||T&&T.appId())&&(n.headers.set("Request-Context","appId=cid-v1:"+o),D&&(e.requestHeaders["Request-Context"]="appId=cid-v1:"+o)),I&&(i=new St(e.traceID,e.spanID),n.headers.set("traceparent",i.toString()),D&&(e.requestHeaders.traceparent=i.toString()))),n):r?(dt.canIncludeCorrelationHeader(F,e.getAbsoluteUrl(),s)&&(b&&(a="|"+e.traceID+"."+e.spanID,r.setRequestHeader("Request-Id",a),D&&(e.requestHeaders["Request-Id"]=a)),(o=F.appId||T&&T.appId())&&(r.setRequestHeader("Request-Context","appId=cid-v1:"+o),D&&(e.requestHeaders["Request-Context"]="appId=cid-v1:"+o)),I&&(i=new St(e.traceID,e.spanID),r.setRequestHeader("traceparent",i.toString()),D&&(e.requestHeaders.traceparent=i.toString()))),r):undefined},l[q]=function(e,t,n){-1===E||r<E?(F.distributedTracingMode!==rt.W3C&&F.distributedTracingMode!==rt.AI_AND_W3C||"string"!=typeof e.id||"."===e.id[e.id.length-1]||(e.id+="."),Q(e.startTime)&&(e.startTime=new Date),n=vt.create(e,ht.dataType,ht.envelopeType,l[Mt](),t,n),l.core.track(n)):r===E&&kt(l,B.MaxAjaxPerPVExceeded,"Maximum ajax per page view limit reached, ajax monitoring is paused until the next trackPageView(). In order to increase the limit set the maxAjaxCallsPerView configuration parameter.",!0),++r}}),e}e.AjaxPlugin=a,e.ajaxRecord=At,function(e,t,n){var r=Object.defineProperty;if(r)try{return r(e,t,n)}catch(a){}typeof n.value!==undefined&&(e[t]=n.value)}(e,"__esModule",{value:!0})};"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t(((e="undefined"!=typeof globalThis?globalThis:e||self).Microsoft=e.Microsoft||{},e.Microsoft.ApplicationInsights=e.Microsoft.ApplicationInsights||{})); | ||
var e=this,t=function(e){"use strict";var i="function",l="object",r="undefined",P="prototype",o="hasOwnProperty",n=Object,s=n[P],t=n.assign,a=n.create,u=n.defineProperty,c=s[o];function N(){return typeof globalThis!==r&&globalThis?globalThis:typeof self!==r&&self?self:typeof window!==r&&window?window:typeof global!==r&&global?global:null}function d(e){throw new TypeError(e)}(N()||{}).Symbol,(N()||{}).Reflect;var _=t||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var a in t=arguments[n])s[o].call(t,a)&&(e[a]=t[a]);return e},f=function(e,t){return(f=n.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t[o](n)&&(e[n]=t[n])})(e,t)};function p(e,t){function n(){this.constructor=e}typeof t!==i&&null!==t&&d("Class extends value "+t+" is not a constructor or null"),f(e,t),e[P]=null===t?function(e){if(a)return a(e);if(null==e)return{};var t=typeof e;function n(){}return t!==l&&t!==i&&d("Object prototype may only be an Object:"+e),n[P]=e,new n}(t):(n[P]=t[P],new n)}var g,h="constructor",m="prototype",v="function",x="_dynInstFuncs",y="_isDynProxy",C="_dynClass",T="_dynInstChk",I=T,b="_dfOpts",A="_unknown_",S="__proto__",w="useBaseInst",q="setInstFuncs",M=Object,R=M.getPrototypeOf,F=0;function D(e,t){return e&&M[m].hasOwnProperty.call(e,t)}function L(e){return e&&(e===M[m]||e===Array[m])}function E(e){return L(e)||e===Function[m]}function j(e){if(e){if(R)return R(e);if(e=e[S]||e[m]||(e[h]?e[h][m]:null))return e}return null}function k(e,t){var n=[],r=M.getOwnPropertyNames;if(r)n=r(e);else for(var a in e)"string"==typeof a&&D(e,a)&&n.push(a);if(n&&0<n.length)for(var o=0;o<n.length;o++)t(n[o])}function H(e,t,n){return t!==h&&typeof e[t]===v&&(n||D(e,t))}function O(e){throw new TypeError("DynamicProto: "+e)}function U(e,t){for(var n=e.length-1;0<=n;n--)if(e[n]===t)return 1}function W(e,t){return D(e,m)?e.name||t||A:((e||{})[h]||{}).name||t||A}function V(e,r,t,n){D(e,m)||O("theClass is an invalid class definition.");var a=e[m];!function(e){if(R)for(var t=[],n=j(r);n&&!E(n)&&!U(t,n);){if(n===e)return 1;t.push(n),n=j(n)}}(a)&&O("["+W(e)+"] is not in class hierarchy of ["+W(r)+"]");var o=null;D(a,C)?o=a[C]:(o="_dynCls$"+W(e,"_")+"$"+F,F++,a[C]=o);var i=V[b],s=!!i[w];s&&n&&n[w]!==undefined&&(s=!!n[w]);var u,l,c,d,f,p,e=(l={},k(u=r,function(e){!l[e]&&H(u,e,!1)&&(l[e]=u[e])}),l);t(r,function(e,t,n,o){function r(e,t,n){var r,a=t[n];return a[y]&&o&&!1!==(r=e[x]||{})[I]&&(a=(r[t[C]]||{})[n]||a),function(){return a.apply(e,arguments)}}var a={};k(n,function(e){a[e]=r(t,n,e)});for(var i=j(e),s=[];i&&!E(i)&&!U(s,i);)k(i,function(e){!a[e]&&H(i,e,!R)&&(a[e]=r(t,i,e))}),s.push(i),i=j(i);return a}(a,r,e,s)),i=!!R&&!!i[q],c=a,o=o,d=r,f=e,n=!1!==(i=i&&n?!!n[q]:i),L(c)||(i=d[x]=d[x]||{},p=i[o]=i[o]||{},!1!==i[I]&&(i[I]=!!n),k(d,function(e){var n,r,a;H(d,e,!1)&&d[e]!==f[e]&&(p[e]=d[e],delete d[e],D(c,e)&&(!c[e]||c[e][y])||(c[e]=(n=c,r=e,(a=function(){var e,t;return(function(e,t,n,r){var a=null;if(e&&D(n,C)){var o=e[x]||{};if((a=(o[n[C]]||{})[t])||O("Missing ["+t+"] "+v),!a[T]&&!1!==o[I]){for(var i=!D(e,t),s=j(e),u=[];i&&s&&!E(s)&&!U(u,s);){var l=s[t];if(l){i=l===r;break}u.push(s),s=j(s)}try{i&&(e[t]=a),a[T]=1}catch(c){o[I]=!1}}}return a}(this,r,n,a)||(typeof(t=(t=n[e=r])===a?j(n)[e]:t)!==v&&O("["+e+"] is not a "+v),t)).apply(this,arguments)})[y]=1,a)))}))}V[b]={setInstFuncs:!0,useBaseInst:!0},(t=g=g||{})[t.CRITICAL=1]="CRITICAL",t[t.WARNING=2]="WARNING";var B={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},z="attachEvent",K="addEventListener",G=u;function X(e){return s.toString.call(e)}function $(e){return e===undefined||typeof e===r}function J(e){return null===e||$(e)}function Z(e){return typeof e===i}function Q(e,t){if(e)for(var n in e)c.call(e,n)&&t.call(e,n,e[n])}function Y(e,t){return!(!e||!t||!~e.indexOf(t))}function ee(e){return"string"==typeof e}function te(e,t,n){var r=e.length;try{for(var a=0;a<r&&!(a in e&&-1===t.call(n||e,e[a],a,e));a++);}catch(o){}}function ne(e){return"string"!=typeof e?e:e.replace(/^\s+|\s+$/g,"")}var re=!{toString:null}.propertyIsEnumerable("toString"),ae=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"];function oe(e){var t=typeof e;t===i||t===l&&null!==e||d("objKeys called on non-object");var n,r=[];for(n in e)e&&c.call(e,n)&&r.push(n);if(re)for(var a=ae.length,o=0;o<a;o++)e&&c.call(e,ae[o])&&r.push(ae[o]);return r}function ie(){var e=Date;return e.now?e.now():(new e).getTime()}var se="window",ue="performance",le="JSON",ce="msie",de="trident/",fe=null,pe=null;function ge(e){var t=N();return t&&t[e]?t[e]:e===se&&typeof window===l&&window?window:null}function he(){return typeof navigator===l&&navigator?navigator:ge("navigator")}function me(){return ge(ue)}function ve(){return typeof JSON===l&&JSON||null!==ge(le)}function xe(){return ve()?JSON||ge(le):null}function ye(e){var t=Object[P].toString.call(e),n="";return"[object Error]"===t?n="{ stack: '"+e.stack+"', message: '"+e.message+"', name: '"+e.name+"'":ve()&&(n=xe().stringify(e)),t+n}function Ce(e){return e?'"'+e.replace(/\"/g,"")+'"':""}var Te=(Ie.dataType="MessageData",Ie);function Ie(e,t,n,r){void 0===n&&(n=!1),this.messageId=e,this.message=(n?"AI: ":"AI (Internal): ")+e,e="",ve()&&(e=xe().stringify(r)),e=(t?" message:"+Ce(t):"")+(r?" props:"+Ce(e):""),this.message+=e}var be=function Nt(n){this.identifier="DiagnosticLogger",this.queue=[];var a=0,i={};V(Nt,this,function(o){function e(e,t){return J(e=n[e])?t:e}J(n)&&(n={}),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,t,n,r,a){if(n=new Te(t,n,a=void 0!==a&&a,r),o.enableDebugExceptions())throw n;$(n.message)||(r=o.consoleLoggingLevel(),a?(a=+n.messageId,!i[a]&&r>=g.WARNING&&(o.warnToConsole(n.message),i[a]=!0)):r>=g.WARNING&&o.warnToConsole(n.message),o.logInternalMessage(e,n))},o.warnToConsole=function(e){var t,n=typeof console!==r?console:ge("console");n&&(t="log",Z(n[t=n.warn?"warn":t])&&n[t](e))},o.resetInternalMessageCount=function(){a=0,i={}},o.logInternalMessage=function(e,t){var n,r;a>=o.maxInternalMessageLimit()||(n=!0,r="AITR_"+t.messageId,i[r]?n=!1:i[r]=!0,n&&(e<=o.telemetryLoggingLevel()&&(o.queue.push(t),a++),a===o.maxInternalMessageLimit()&&(t=new Te(B.MessageLimitPerPVExceeded,e="Internal events throttle limit per PageView reached for this app.",!1),o.queue.push(t),o.warnToConsole(e))))}})},Ae=(Se.ParentContextKey="parent",Se.ChildrenContextKey="childEvts",Se);function Se(e,a,t){var r,o=this,i=!1;o.start=ie(),o.name=e,o.isAsync=t,o.isChildEvt=function(){return!1},Z(a)&&(i=function(e){if(G)try{var t={enumerable:!0,configurable:!0,get:function(){return!r&&Z(a)&&(r=a(),a=null),r}};return G(e,"payload",t),!0}catch(n){}return!1}(o)),o.getCtx=function(e){return e?(e===Se.ParentContextKey||e===Se.ChildrenContextKey?o:o.ctx||{})[e]:null},o.setCtx=function(e,t){e&&(e===Se.ParentContextKey?(o[e]||(o.isChildEvt=function(){return!0}),o[e]=t):e===Se.ChildrenContextKey?o[e]=t:(o.ctx=o.ctx||{})[e]=t)},o.complete=function(){var e=0,t=o.getCtx(Se.ChildrenContextKey);if("[object Array]"===X(t))for(var n=0;n<t.length;n++){var r=t[n];r&&(e+=r.time)}o.time=ie()-o.start,o.exTime=o.time-e,o.complete=function(){},!i&&Z(a)&&(o.payload=a())}}var we="CoreUtils.doPerf";function qe(e,t,n,r,a){if(e){var o=e;if(o=Z(o.getPerfMgr)?o.getPerfMgr():o){var i,s=void 0,e=o.getCtx(we);try{if(s=o.create(t(),r,a))return e&&s.setCtx&&(s.setCtx(Ae.ParentContextKey,e),e.getCtx&&e.setCtx&&((i=e.getCtx(Ae.ChildrenContextKey))||(i=[],e.setCtx(Ae.ChildrenContextKey,i)),i.push(s))),o.setCtx(we,s),n(s)}catch(u){s&&s.setCtx&&s.setCtx("exception",u)}finally{s&&o.fire(s),o.setCtx(we,e)}}}return n()}var Me=function(a,t){var o=this,i=null,s=Z(a.processTelemetry),u=Z(a.setNextPlugin);o._hasRun=!1,o.getPlugin=function(){return a},o.getNext=function(){return i},o.setNext=function(e){i=e},o.processTelemetry=function(n,r){r=r||t;var e=a?a.identifier:"TelemetryPluginChain";qe(r?r.core():null,function(){return e+":processTelemetry"},function(){if(a&&s){o._hasRun=!0;try{r.setNext(i),u&&a.setNextPlugin(i),i&&(i._hasRun=!1),a.processTelemetry(n,r)}catch(t){var e=i&&i._hasRun;i&&e||r.diagLog().throwInternal(g.CRITICAL,B.PluginException,"Plugin ["+a.identifier+"] failed during processTelemetry - "+ye(t)),i&&!e&&i.processTelemetry(n,r)}}else i&&(o._hasRun=!0,i.processTelemetry(n,r))},function(){return{item:n}},!n.sync)}};function Re(e,t){var n=[];if(e&&0<e.length)for(var r=null,a=0;a<e.length;a++){var o=e[a];o&&Z(o.processTelemetry)&&(o=new Me(o,t),n.push(o),r&&r.setNext(o),r=o)}return 0<n.length?n[0]:null}var Fe=function _t(e,a,n,t){var r,o,i,s,u=this,l=null;null!==t&&(e&&Z(e.getPlugin)?l=function(e,t,n){var r=[],a=!n;if(e)for(;e;){var o=e.getPlugin();!a&&o!==n||(a=!0,r.push(o)),e=e.getNext()}return a||r.push(n),Re(r,t)}(e,u,t||e.getPlugin()):t?(r=u,i=e,s=!1,(o=t)&&e&&(i=[],te(e,function(e){!s&&e!==o||(s=!0,i.push(e))})),o&&!s&&(i=i||[]).push(o),l=Re(i,r)):$(t)&&(l=Re(e,u))),u.core=function(){return n},u.diagLog=function(){return(n||{}).logger||new be(a)},u.getCfg=function(){return a},u.getExtCfg=function(e,t){var n,r;return void 0===t&&(t={}),!a||(r=a.extensionConfig)&&e&&(n=r[e]),n||t},u.getConfig=function(e,t,n){var r;return void 0===n&&(n=!1),(e=u.getExtCfg(e,null))&&!J(e[t])?r=e[t]:a&&!J(a[t])&&(r=a[t]),J(r)?n:r},u.hasNext=function(){return null!=l},u.getNext=function(){return l},u.setNext=function(e){l=e},u.processNext=function(e){var t=l;t&&(l=t.getNext(),t.processTelemetry(e,u))},u.createNew=function(e,t){return new _t((e=void 0===e?null:e)||l,a,n,t)}},De="getPlugin",u=(Le.prototype.initialize=function(e,t,n,r){this._baseTelInit(e,t,n,r)},Le);function Le(){var s=this,u=!1,l=null,c=null;s.core=null,s.diagLog=function(e){return s._getTelCtx(e).diagLog()},s.isInitialized=function(){return u},s.setInitialized=function(e){u=e},s.setNextPlugin=function(e){c=e},s.processNext=function(e,t){t?t.processNext(e):c&&Z(c.processTelemetry)&&c.processTelemetry(e,null)},s._getTelCtx=function(e){var t=e=void 0===e?null:e;return t||(e=l||new Fe(null,{},s.core),t=c&&c[De]?e.createNew(null,c[De]):e.createNew(null,c)),t},s._baseTelInit=function(e,t,n,r){var a,o;e&&(a="extensionConfig",i=o=[],!e||(i=e[a])!==o&&J(i)&&(e[a]=i=o)),!r&&t&&(r=t.getProcessTelContext().getNext());var i=c;c&&c[De]&&(i=c[De]()),s.core=t,l=new Fe(r,e,t,i),u=!0}}var Ee=4294967296,je=4294967295,ke=!1,He=123456789,Pe=987654321;function Ne(e){var t=ge("crypto")||ge("msCrypto"),n=t&&t.getRandomValues?t.getRandomValues(new Uint32Array(1))[0]&je:(!(n=he())||n.userAgent===pe&&null!==fe||(n=((pe=n.userAgent)||"").toLowerCase(),fe=Y(n,ce)||Y(n,de)),fe?(ke||function(){try{var e=2147483647&ie();(t=(Math.random()*Ee^e)+e)<0&&(t>>>=0),He=123456789+t&je,Pe=987654321-t&je,ke=!0}catch(n){}var t}(),t=((Pe=36969*(65535&Pe)+(Pe>>16)&je)<<16)+(65535&(He=18e3*(65535&He)+(He>>16)&je))>>>0&je|0,(t>>>=0)&je):Math.floor(Ee*Math.random()|0));return e||(n>>>=0),n}function _e(){for(var e,t=["0","1","2","3","4","5","6","7","8","9","a","b","c","d","e","f"],n="",r=0;r<4;r++)n+=t[15&(e=Ne())]+t[e>>4&15]+t[e>>8&15]+t[e>>12&15]+t[e>>16&15]+t[e>>20&15]+t[e>>24&15]+t[e>>28&15];var a=t[8+(3&Ne())|0];return n.substr(0,8)+n.substr(9,4)+"4"+n.substr(13,3)+a+n.substr(16,3)+n.substr(19,12)}var Oe="_aiHooks",Ue=["req","rsp","hkErr","fnErr"];function We(e,t){if(e)for(var n=0;n<e.length&&!t(e[n],n);n++);}function Ve(e,i,s,u,l){0<=l&&l<=2&&We(e,function(e,t){var n=e.cbks;if(e=n[Ue[l]]){i.ctx=function(){return u[t]=u[t]||{}};try{e.apply(i.inst,s)}catch(a){e=i.err;try{var r=n.hkErr;r&&(i.err=a,r.apply(i.inst,s))}catch(o){}finally{i.err=e}}}})}function Be(u){return function(){var n=arguments,e=u.h,r={name:u.n,inst:this,ctx:null,set:function(e,t){(n=o([],n))[e]=t,a=o([r],n)}},t=[],a=o([r],n);function o(t,e){return We(e,function(e){t.push(e)}),t}Ve(e,r,a,t,0);var i=u.f;try{r.rslt=i.apply(this,n)}catch(s){throw r.err=s,Ve(e,r,a,t,3),s}return Ve(e,r,a,t,1),r.rslt}}var ze=Object.getPrototypeOf;function Ke(e,t,n,r){if(void 0===r&&(r=!0),e&&t&&n&&(e=function o(e,t,n){var r=null;return e&&(c.call(e,t)?r=e:n&&(r=o(function(e){if(e){if(ze)return ze(e);if(e=e.__proto__||e[P]||e.constructor)return e}return null}(e),t,!1))),r}(e,t,r))&&typeof(r=e[t])===i){var a=r[Oe];return a||((r=Be(a={i:0,n:t,f:r,h:[]}))[Oe]=a,e[t]=r),n={id:a.i,cbks:n,rm:function(){var n=this.id;We(a.h,function(e,t){return e.id===n&&(a.h.splice(t,1),1)})}},a.i++,a.h.push(n),n}return null}function Ge(e,t,n){var r,a,o=t.length,i=(t&&150<(t=ne(t.toString())).length&&(r=t.substring(0,150),e.throwInternal(g.WARNING,B.NameTooLong,"name is too long. It has been truncated to 150 characters.",{name:t},!0)),r||t);if(i.length!==o){for(var s=0,u=i;n[u]!==undefined;)s++,u=i.substring(0,147)+(a="00"+s).substr(a.length-3);i=u}return i}function Xe(e,t,n){var r;return void 0===n&&(n=1024),t&&(n=n||1024,(t=ne(t)).toString().length>n&&(r=t.toString().substring(0,n),e.throwInternal(g.WARNING,B.StringValueTooLong,"string value is too long. It has been truncated to "+n+" characters.",{value:t},!0))),r||t}function $e(e,t){return n=e,e=t,t=B.UrlTooLong,e&&2048<(e=ne(e)).length&&(r=e.substring(0,2048),n.throwInternal(g.WARNING,t,"input is too long, it has been truncated to 2048 characters.",{data:e},!0)),r||e;var n,r}function Je(r,e){var a;return e&&(a={},Q(e,function(e,t){if(typeof t===l&&ve())try{t=xe().stringify(t)}catch(n){r.throwInternal(g.WARNING,B.CannotSerializeObjectNonSerializable,"custom property is not valid",{exception:n},!0)}t=Xe(r,t,8192),e=Ge(r,e,a),a[e]=t}),e=a),e}function Ze(e){var t=""+Math.floor((e=Math.round(e=isNaN(e)||e<0?0:e))/1e3)%60,n=""+Math.floor(e/6e4)%60,r=""+Math.floor(e/36e5)%24,a=Math.floor(e/864e5),e=1===(e=""+e%1e3).length?"00"+e:2===e.length?"0"+e:e,t=t.length<2?"0"+t:t,n=n.length<2?"0"+n:n;return(0<a?a+".":"")+(r=r.length<2?"0"+r:r)+":"+n+":"+t+"."+e}var Qe,Ye,et="Microsoft_ApplicationInsights_BypassAjaxInstrumentation",tt="iKey";(Ye=Ye||{})[Ye.LocalStorage=0]="LocalStorage",Ye[Ye.SessionStorage=1]="SessionStorage",(Ye=Qe=Qe||{})[Ye.AI=0]="AI",Ye[Ye.AI_AND_W3C=1]="AI_AND_W3C",Ye[Ye.W3C=2]="W3C";var nt=(typeof document===l&&document?document:ge("document"))||{},rt=0,at=[null,null,null,null,null];function ot(e){var t,n,r=rt,a=at,o=a[r];return nt.createElement?a[r]||(o=a[r]=nt.createElement("a")):o={host:(t=it(t=e,!0)||"")&&null!=(n=t.match(/(www[0-9]?\.)?(.[^/:]+)(\:[\d]+)?/i))&&3<n.length&&ee(n[2])&&0<n[2].length?n[2]+(n[3]||""):t},o.href=e,++r>=a.length&&(r=0),rt=r,o}function it(e,t){var n=null;return!e||null!=(e=e.match(/(\w*):\/\/(.[^/:]+)(\:[\d]+)?/i))&&2<e.length&&ee(e[2])&&0<e[2].length&&(n=e[2]||"",t&&2<e.length&&(t=(e[1]||"").toLowerCase(),e=e[3]||"",n+=e="http"==t&&":80"===e||"https"==t&&":443"===e?"":e)),n}var st=["https://dc.services.visualstudio.com/v2/track","https://breeze.aimon.applicationinsights.io/v2/track","https://dc-int.services.visualstudio.com/v2/track"],ut={correlationIdPrefix:"cid-v1:",canIncludeCorrelationHeader:function(e,t,n){if(!t||e&&e.disableCorrelationHeaders)return!1;if(e&&e.correlationHeaderExcludePatterns)for(var r=0;r<e.correlationHeaderExcludePatterns.length;r++)if(e.correlationHeaderExcludePatterns[r].test(t))return!1;var a,o=ot(t).host.toLowerCase();if(o&&(~o.indexOf(":443")||~o.indexOf(":80"))&&(o=(it(t,!0)||"").toLowerCase()),(!e||!e.enableCorsCorrelation)&&o&&o!==n)return!1;if((n=e&&e.correlationHeaderDomains)&&(te(n,function(e){e=RegExp(e.toLowerCase().replace(/\\/g,"\\\\").replace(/\./g,"\\.").replace(/\*/g,".*")),a=a||e.test(o)}),!a))return!1;var i=e&&e.correlationHeaderExcludedDomains;if(!i||0===i.length)return!0;for(r=0;r<i.length;r++)if(RegExp(i[r].toLowerCase().replace(/\\/g,"\\\\").replace(/\./g,"\\.").replace(/\*/g,".*")).test(o))return!1;return o&&0<o.length},getCorrelationContext:function(e){if((e=e&&ut.getCorrelationContextValue(e,"appId"))&&e!==ut.correlationIdPrefix)return e},getCorrelationContextValue:function(e,t){if(e)for(var n=e.split(","),r=0;r<n.length;++r){var a=n[r].split("=");if(2===a.length&&a[0]===t)return a[1]}}};function lt(){var e=me();return e&&e.now&&e.timing&&0<(e=e.now()+e.timing.navigationStart)?e:ie()}function ct(e,t){return 0===e||0===t||J(e)||J(t)?null:t-e}var dt,ft=(p(pt,dt=function(){this.ver=2,this.success=!0,this.properties={},this.measurements={}}),pt.envelopeType="Microsoft.ApplicationInsights.{0}.RemoteDependency",pt.dataType="RemoteDependencyData",pt);function pt(e,t,n,r,a,o,i,s,u,l,c,d){void 0===u&&(u="Ajax");var f=dt.call(this)||this;f.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},f.id=t,f.duration=Ze(a),f.success=o,f.resultCode=i+"",f.type=Xe(e,u);var p,g,h,m,i=(p=e,t=s,i=o=a=r,o=(u=n)&&0<u.length?(g=(s=ot(u)).host,o||(null!=s.pathname?("/"!=((n=0===s.pathname.length?"/":s.pathname)[0]||"")&&(n="/"+n),i=s.pathname,Xe(p,t?t+" "+n:n)):Xe(p,u))):g=a,{target:g,name:o,data:i});return f.data=$e(e,r)||i.data,f.target=Xe(e,i.target),l&&(f.target=f.target+" | "+l),f.name=Xe(e,i.name),f.properties=Je(e,c),f.measurements=(h=e,d&&(m={},Q(d,function(e,t){e=Ge(h,e,m),m[e]=t}),d=m),d),f}var gt=(ht.create=function(e,t,n,r,a,o){if(n=Xe(r,n)||"not_specified",J(e)||J(t)||J(n))throw Error("Input doesn't contain all required fields");r="",e[tt]&&(r=e[tt],delete e[tt]);var i={name:n,time:function(e){if("[object Date]"===X(e)){var t=function(e){return 1===(e=""+e).length?"0"+e:e};return e.getUTCFullYear()+"-"+t(1+e.getUTCMonth())+"-"+t(e.getUTCDate())+"T"+t(e.getUTCHours())+":"+t(e.getUTCMinutes())+":"+t(e.getUTCSeconds())+"."+(""+(e.getUTCMilliseconds()/1e3).toFixed(3)).slice(2,5)+"Z"}}(new Date),iKey:r,ext:o||{},tags:[],data:{},baseType:t,baseData:e};return J(a)||Q(a,function(e,t){i.data[e]=t}),i},ht);function ht(){}var mt="properties";function vt(e,t,n){t=e[t],e=e[n];return t&&e?ct(t,e):0}function xt(e,t,n,r,a){return(a=vt(n,r,a))?yt(e,t,Ze(a)):0}function yt(e,t,n){var r="ajaxPerf",a=0;return e&&t&&n&&((e[r]=e[r]||{})[t]=n,a=1),a}var Ct=function(){var e=this;e.openDone=!1,e.setRequestHeaderDone=!1,e.sendDone=!1,e.abortDone=!1,e.stateChangeAttached=!1},Tt=function Ot(e,t,n){var r=this,a=n,x="responseText";r.perfMark=null,r.completed=!1,r.requestHeadersSize=null,r.requestHeaders=null,r.responseReceivingDuration=null,r.callbackDuration=null,r.ajaxTotalDuration=null,r.aborted=0,r.pageUrl=null,r.requestUrl=null,r.requestSize=0,r.method=null,r.status=null,r.requestSentTime=null,r.responseStartedTime=null,r.responseFinishedTime=null,r.callbackFinishedTime=null,r.endTime=null,r.xhrMonitoringState=new Ct,r.clientFailure=0,r.traceID=e,r.spanID=t,V(Ot,r,function(v){v.getAbsoluteUrl=function(){return v.requestUrl?(e=ot(v.requestUrl))?e.href:void 0:null;var e},v.getPathName=function(){return v.requestUrl?$e(a,(e=v.method,t=v.requestUrl,e?e.toUpperCase()+" "+t:t)):null;var e,t},v.CreateTrackItem=function(e,t,n){return v.ajaxTotalDuration=Math.round(1e3*ct(v.requestSentTime,v.responseFinishedTime))/1e3,v.ajaxTotalDuration<0?null:((e={id:"|"+v.traceID+"."+v.spanID,target:v.getAbsoluteUrl(),name:v.getPathName(),type:e,startTime:null,duration:v.ajaxTotalDuration,success:200<=+v.status&&+v.status<400,responseCode:+v.status,method:v.method})[mt]={HttpMethod:v.method},v.requestSentTime&&(e.startTime=new Date,e.startTime.setTime(v.requestSentTime)),a=e,i=(r=v).perfTiming,s=a[mt]||{},u=0,l="startTime",c="connect"+"End",d="request"+"Start",f="response"+"End",p="transferSize",g="encodedBodySize",h="decodedBodySize",m="serverTiming",i?(u|=xt(s,"End",i,"redirectStart","End"),u|=xt(s,"domainLookup",i,"domainLookupStart","domainLookupEnd"),u|=xt(s,"connect",i,"connectStart",c),u|=xt(s,"request",i,d,"requestEnd"),u|=xt(s,"response",i,"responseStart",f),u|=xt(s,"networkConnect",i,l,c),u|=xt(s,"sentRequest",i,d,f),u|=yt(s,"duration",f=i.duration||vt(i,l,f)||0),u|=yt(s,"perfTotal",f),(f=i[m])&&(o={},te(f,function(e,t){var n,r,t=(n=e.name||""+t,(r=/([^\w\d_$])/g).test(t=n)?n.replace(r,"_"):t),a=o[t]||{};Q(e,function(e,t){("name"!==e&&ee(t)||"number"==typeof t)&&(!(t=a[e]?a[e]+";"+t:t)&&ee(t)||(a[e]=t))}),o[t]=a}),u|=yt(s,m,o)),u|=yt(s,p,i[p]),u|=yt(s,g,i[g]),u|=yt(s,h,i[h])):r.perfMark&&(u|=yt(s,"missing",r.perfAttempts)),u&&(a[mt]=s),t&&0<oe(v.requestHeaders).length&&(e[mt]=e[mt]||{},e[mt].requestHeaders=v.requestHeaders),!n||(t=n())&&((n=t.correlationContext)&&(e.correlationContext=n),t.headerMap&&0<oe(t.headerMap).length&&(e[mt]=e[mt]||{},e[mt].responseHeaders=t.headerMap),v.errorStatusText&&400<=v.status&&(n=t.type,e[mt]=e[mt]||{},""!==n&&"text"!==n||(e[mt][x]=t[x]?t.statusText+" - "+t[x]:t.statusText),"json"===n&&(e[mt][x]=t.response?t.statusText+" - "+JSON.stringify(t.response):t.statusText))),e);var r,a,o,i,s,u,l,c,d,f,p,g,h,m}})},It=(bt.isValidTraceId=function(e){return e.match(/^[0-9a-f]{32}$/)&&"00000000000000000000000000000000"!==e},bt.isValidSpanId=function(e){return e.match(/^[0-9a-f]{16}$/)&&"0000000000000000"!==e},bt.prototype.toString=function(){return this.version+"-"+this.traceId+"-"+this.spanId+"-"+this.traceFlag},bt.DEFAULT_TRACE_FLAG="01",bt.DEFAULT_VERSION="00",bt);function bt(e,t){var n=this;n.traceFlag=bt.DEFAULT_TRACE_FLAG,n.version=bt.DEFAULT_VERSION,e&&bt.isValidTraceId(e)?n.traceId=e:n.traceId=_e(),t&&bt.isValidSpanId(t)?n.spanId=t:n.spanId=_e().substr(0,16)}var At="ai.ajxmn.",St="diagLog",wt="ajaxData",qt="throwInternal",Mt="fetch",Rt=0;function Ft(e){var t=!1;!function(){var e=!1;try{e=!!ge("XMLHttpRequest")}catch(t){}return e}()||(t=!(J(a=XMLHttpRequest[P])||J(a.open)||J(a.send)||J(a.abort)));var n,r,a=Y(n=((n=(n=void 0===n?null:n)?n:(r=he()||{})?(r.userAgent||"").toLowerCase():"")||"").toLowerCase(),ce)?parseInt(n.split(ce)[1]):Y(n,de)&&(n=parseInt(n.split(de)[1]))?n+4:null;if(t=!(a&&a<9)&&t)try{(new XMLHttpRequest)[wt]={};var o=XMLHttpRequest[P].open;XMLHttpRequest[P].open=o}catch(i){t=!1,Lt(e,B.FailedMonitorAjaxOpen,"Failed to enable XMLHttpRequest monitoring, extension is not supported",{exception:ye(i)})}return t}function Dt(e){var t="";try{J(e)||J(e[wt])||J(e[wt].requestUrl)||(t+="(url: '"+e[wt].requestUrl+"')")}catch(n){}return t}function Lt(e,t,n,r,a){e[St]()[qt](g.CRITICAL,t,n,r,a)}function Et(e,t,n,r,a){e[St]()[qt](g.WARNING,t,n,r,a)}function jt(t,n,r){return function(e){Lt(t,n,r,{ajaxDiagnosticsMessage:Dt(e.inst),exception:ye(e.err)})}}function kt(e,t){return e&&t?e.indexOf(t):-1}var Ht,u=(p(Pt,Ht=u),Pt.getDefaultConfig=function(){return{maxAjaxCallsPerView:500,disableAjaxTracking:!1,disableFetchTracking:!0,excludeRequestFromAutoTrackingPatterns:undefined,disableCorrelationHeaders:!1,distributedTracingMode:Qe.AI_AND_W3C,correlationHeaderExcludedDomains:["*.blob.core.windows.net","*.blob.core.chinacloudapi.cn","*.blob.core.cloudapi.de","*.blob.core.usgovcloudapi.net"],correlationHeaderDomains:undefined,correlationHeaderExcludePatterns:undefined,appId:undefined,enableCorsCorrelation:!1,enableRequestHeaderTracking:!1,enableResponseHeaderTracking:!1,enableAjaxErrorStatusText:!1,enableAjaxPerfTracking:!1,maxAjaxPerfLookupAttempts:3,ajaxPerfLookupDelay:25,ignoreHeaders:["Authorization","X-API-Key","WWW-Authenticate"],addRequestContext:undefined}},Pt.getEmptyConfig=function(){var t=this.getDefaultConfig();return Q(t,function(e){t[e]=undefined}),t},Pt.prototype.processTelemetry=function(e,t){this.processNext(e,t)},Pt.identifier="AjaxDependencyPlugin",Pt);function Pt(){var e=Ht.call(this)||this;e.identifier=Pt.identifier,e.priority=120;var T,I,b,A,S,w,q,M="trackDependencyDataInternal",t=typeof location===l&&location?location:ge("location"),R=!1,F=!1,u=t&&t.host&&t.host.toLowerCase(),D=Pt.getEmptyConfig(),L=!1,r=0,E=!1,j=0,k=!1,H=[],s={};return V(Pt,e,function(l,c){function d(t){var n=!0;return(t||D.ignoreHeaders)&&te(D.ignoreHeaders,function(e){if(e.toLowerCase()==t.toLowerCase())return n=!1,-1}),n}function f(e,t,n){H.push(e?Ke(e[P],t,n,!1):null)}function p(e,t,n){var r=!1,a=((ee(t)?t:(t||{}).url||"")||"").toLowerCase();if(te(S,function(e){var t=e;ee(e)&&(t=RegExp(e)),r=r||t.test(a)}),r)return r;var o=kt(a,"?"),i=kt(a,"#");return-1!==(o=-1===o||-1!==i&&i<o?i:o)&&(a=a.substring(0,o)),J(e)?J(t)||(r="object"==typeof t&&!0===t[et]||!!n&&!0===n[et]):r=!0===e[et]||!0===a[et],(r=!(r||!a||(e=a,!~st.indexOf(e.toLowerCase())))||r)?s[a]||(s[a]=1):s[a]&&(r=!0),r}function g(e,t){var n=!0,r=F;return J(e)||(n=!0===t||!J(e[wt])),r&&n}function h(n){n[wt].xhrMonitoringState.stateChangeAttached=function(e,t,n,r){void 0===r&&(r=!1);var a=!1;if(!J(e))try{J(e[K])?J(e[z])||(e[z]("on"+t,n),a=!0):(e[K](t,n,r),a=!0)}catch(o){}return a}(n,"readystatechange",function(){try{n&&4===n.readyState&&g(n)&&((o=(a=n)[wt]).responseFinishedTime=lt(),o.status=a.status,v("xmlhttprequest",o,function(){try{var e=o.CreateTrackItem("Ajax",L,function(){var e,n,t={statusText:a.statusText,headerMap:null,correlationContext:i(a),type:a.responseType,responseText:function(e){try{var t=e.responseType;if(""===t||"text"===t)return e.responseText}catch(n){}return null}(a),response:a.response};return!k||(e=a.getAllResponseHeaders())&&(e=ne(e).split(/[\r\n]+/),n={},te(e,function(e){var e=(t=e.split(": ")).shift(),t=t.join(": ");d(e)&&(n[e]=t)}),t.headerMap=n),t}),t=void 0;try{w&&(t=w({status:a.status,xhr:a}))}catch(n){Et(l,B.FailedAddingCustomDefinedRequestContext,"Failed to add custom defined request context as configured call back may missing a null check.")}e?(t!==undefined&&(e.properties=_(_({},e.properties),t)),l[M](e)):r(null,{requestSentTime:o.requestSentTime,responseFinishedTime:o.responseFinishedTime})}finally{try{a[wt]=null}catch(n){}}},function(e){r(e,null)}))}catch(t){var e=ye(t);e&&-1!==kt(e.toLowerCase(),"c00c023f")||Lt(l,B.FailedMonitorAjaxRSC,"Failed to monitor XMLHttpRequest 'readystatechange' event handler, monitoring data for this ajax call may be incorrect.",{ajaxDiagnosticsMessage:Dt(n),exception:e})}function r(e,t){(t=t||{}).ajaxDiagnosticsMessage=Dt(a),e&&(t.exception=ye(e)),Et(l,B.FailedMonitorAjaxDur,"Failed to calculate the duration of the ajax call, monitoring data for this ajax call won't be sent.",t)}var a,o})}function i(e){try{var t=e.getAllResponseHeaders();if(null!==t&&-1!==kt(t.toLowerCase(),"request-context")){var n=e.getResponseHeader("Request-Context");return ut.getCorrelationContext(n)}}catch(r){Et(l,B.FailedMonitorAjaxGetCorrelationHeader,"Failed to get Request-Context correlation header as it may be not included in the response or not accessible.",{ajaxDiagnosticsMessage:Dt(e),exception:ye(r)})}}function m(e,t){var n;t.requestUrl&&A&&E&&(n=me())&&Z(n.mark)&&(e=A+e+"#"+ ++Rt,n.mark(e),(n=n.getEntriesByName(e))&&1===n.length&&(t.perfMark=n[0]))}function v(o,i,s,u){var l=i.perfMark,c=me(),d=D.maxAjaxPerfLookupAttempts,f=D.ajaxPerfLookupDelay,p=i.requestUrl,g=0;!function h(){try{if(c&&l){g++;for(var e=null,t=c.getEntries(),n=t.length-1;0<=n;n--){var r=t[n];if(r){if("resource"===r.entryType)r.initiatorType!==o||-1===kt(r.name,p)&&-1===kt(p,r.name)||(e=r);else if("mark"===r.entryType&&r.name===l.name){i.perfTiming=e;break}if(r.startTime<l.startTime-1e3)break}}}!l||i.perfTiming||d<=g||!1===i["async"]?(l&&Z(c.clearMarks)&&c.clearMarks(l.name),i.perfAttempts=g,s()):setTimeout(h,f)}catch(a){u(a)}}()}function x(e){var t="";try{J(e)||(t+="string"==typeof e?"(url: '"+e+"')":"(url: '"+e.url+"')")}catch(n){Lt(l,B.FailedMonitorAjaxOpen,"Failed to grab failed fetch diagnostics message",{exception:ye(n)})}return t}function y(e,r,a,o,i,s){function u(e,t,n){(n=n||{}).fetchDiagnosticsMessage=x(a),t&&(n.exception=ye(t)),Et(l,e,"Failed to calculate the duration of the fetch call, monitoring data for this fetch call won't be sent.",n)}i&&(i.responseFinishedTime=lt(),i.status=r,v("fetch",i,function(){var e,t=i.CreateTrackItem("Fetch",L,s);try{w&&(e=w({status:r,request:a,response:o}))}catch(n){Et(l,B.FailedAddingCustomDefinedRequestContext,"Failed to add custom defined request context as configured call back may missing a null check.")}t?(e!==undefined&&(t.properties=_(_({},t.properties),e)),l[M](t)):u(B.FailedMonitorAjaxDur,null,{requestSentTime:i.requestSentTime,responseFinishedTime:i.responseFinishedTime})},function(e){u(B.FailedMonitorAjaxGetCorrelationHeader,e,null)}))}function C(e){if(e&&e.headers)try{var t=e.headers.get("Request-Context");return ut.getCorrelationContext(t)}catch(n){Et(l,B.FailedMonitorAjaxGetCorrelationHeader,"Failed to get Request-Context correlation header as it may be not included in the response or not accessible.",{fetchDiagnosticsMessage:x(e),exception:ye(n)})}}l.initialize=function(e,t,n,r){if(!l.isInitialized()){c.initialize(e,t,n,r);var a=l._getTelCtx();if(Q(Pt.getDefaultConfig(),function(e,t){D[e]=a.getConfig(Pt.identifier,e,t)}),r=D.distributedTracingMode,L=D.enableRequestHeaderTracking,q=D.enableAjaxErrorStatusText,E=D.enableAjaxPerfTracking,j=D.maxAjaxCallsPerView,k=D.enableResponseHeaderTracking,S=D.excludeRequestFromAutoTrackingPatterns,w=D.addRequestContext,b=r===Qe.AI||r===Qe.AI_AND_W3C,I=r===Qe.AI_AND_W3C||r===Qe.W3C,E&&(s=e.instrumentationKey||"unkwn",A=5<s.length?At+s.substring(s.length-5)+".":At+s+"."),!1===D.disableAjaxTracking&&Ft(l)&&!F&&(f(XMLHttpRequest,"open",{req:function(e,t,n,r){var a=e.inst,o=a[wt];p(a,n)||!g(a,!0)||o&&o.xhrMonitoringState.openDone||(e=a,o=t,a=n,t=r,n=T&&T.telemetryTrace&&T.telemetryTrace.traceID||_e(),r=_e().substr(0,16),(r=new Tt(n,r,l[St]())).method=o,r.requestUrl=a,r.xhrMonitoringState.openDone=!0,r.requestHeaders={},r["async"]=t,r.errorStatusText=q,e[wt]=r,h(e))},hkErr:jt(l,B.FailedMonitorAjaxOpen,"Failed to monitor XMLHttpRequest.open, monitoring data for this ajax call may be incorrect.")}),f(XMLHttpRequest,"send",{req:function(e,t){var n=e.inst,e=n[wt];g(n)&&!e.xhrMonitoringState.sendDone&&(m("xhr",e),e.requestSentTime=lt(),l.includeCorrelationHeaders(e,undefined,undefined,n),e.xhrMonitoringState.sendDone=!0)},hkErr:jt(l,B.FailedMonitorAjaxSend,"Failed to monitor XMLHttpRequest, monitoring data for this ajax call may be incorrect.")}),f(XMLHttpRequest,"abort",{req:function(e){var t=e.inst,e=t[wt];g(t)&&!e.xhrMonitoringState.abortDone&&(e.aborted=1,e.xhrMonitoringState.abortDone=!0)},hkErr:jt(l,B.FailedMonitorAjaxAbort,"Failed to monitor XMLHttpRequest.abort, monitoring data for this ajax call may be incorrect.")}),L&&f(XMLHttpRequest,"setRequestHeader",{req:function(e,t,n){g(e=e.inst)&&d(t)&&(e[wt].requestHeaders[t]=n)},hkErr:jt(l,B.FailedMonitorAjaxSetRequestHeader,"Failed to monitor XMLHttpRequest.setRequestHeader, monitoring data for this ajax call may be incorrect.")}),F=!0),(e=!(r=N())||J(r.Request)||J(r.Request[P])||J(r[Mt])?null:r[Mt])&&(s=N(),u=e.polyfill,!1===D.disableFetchTracking?(H.push(Ke(s,Mt,{req:function(e,t,n){var r,a;!R||p(null,t,n)||u&&F||(r=e.ctx(),a=function(e,t){var n=T&&T.telemetryTrace&&T.telemetryTrace.traceID||_e(),r=_e().substr(0,16);(n=new Tt(n,r,l[St]())).requestSentTime=lt(),n.errorStatusText=q,e instanceof Request?n.requestUrl=e?e.url:"":n.requestUrl=e,r="GET",t&&t.method?r=t.method:e&&e instanceof Request&&(r=e.method),n.method=r;var a={};return L&&new Headers((t?t.headers:0)||e instanceof Request&&e.headers||{}).forEach(function(e,t){d(t)&&(a[t]=e)}),n.requestHeaders=a,m("fetch",n),n}(t,n),(t=l.includeCorrelationHeaders(a,t,n))!==n&&e.set(1,t),r.data=a)},rsp:function(e,n){var r=e.ctx().data;r&&(e.rslt=e.rslt.then(function(t){return y(0,(t||{}).status,n,t,r,function(){var n,e={statusText:t.statusText,headerMap:null,correlationContext:C(t)};return k&&(n={},t.headers.forEach(function(e,t){d(t)&&(n[t]=e)}),e.headerMap=n),e}),t})["catch"](function(e){throw y(0,0,n,null,r,null,e.message),e}))},hkErr:jt(l,B.FailedMonitorAjaxOpen,"Failed to monitor Window.fetch, monitoring data for this fetch call may be incorrect.")})),R=!0):u&&H.push(Ke(s,Mt,{req:function(e,t,n){p(null,t,n)}})),u&&(s[Mt].polyfill=u)),0<n.length&&n){for(var o=void 0,i=0;!o&&i<n.length;)n[i]&&"AppInsightsPropertiesPlugin"===n[i].identifier&&(o=n[i]),i++;o&&(T=o.context)}}var s,u},l.teardown=function(){te(H,function(e){e.rm()}),F=R=!(H=[]),l.setInitialized(!1)},l.trackDependencyData=function(e,t){l[M](e,t)},l.includeCorrelationHeaders=function(e,t,n,r){var a,o,i,s=l._currentWindowHost||u;return t?(ut.canIncludeCorrelationHeader(D,e.getAbsoluteUrl(),s)&&((n=n||{}).headers=new Headers(n.headers||t instanceof Request&&t.headers||{}),b&&(a="|"+e.traceID+"."+e.spanID,n.headers.set("Request-Id",a),L&&(e.requestHeaders["Request-Id"]=a)),(o=D.appId||T&&T.appId())&&(n.headers.set("Request-Context","appId=cid-v1:"+o),L&&(e.requestHeaders["Request-Context"]="appId=cid-v1:"+o)),I&&(i=new It(e.traceID,e.spanID),n.headers.set("traceparent",i.toString()),L&&(e.requestHeaders.traceparent=i.toString()))),n):r?(ut.canIncludeCorrelationHeader(D,e.getAbsoluteUrl(),s)&&(b&&(a="|"+e.traceID+"."+e.spanID,r.setRequestHeader("Request-Id",a),L&&(e.requestHeaders["Request-Id"]=a)),(o=D.appId||T&&T.appId())&&(r.setRequestHeader("Request-Context","appId=cid-v1:"+o),L&&(e.requestHeaders["Request-Context"]="appId=cid-v1:"+o)),I&&(i=new It(e.traceID,e.spanID),r.setRequestHeader("traceparent",i.toString()),L&&(e.requestHeaders.traceparent=i.toString()))),r):undefined},l[M]=function(e,t,n){-1===j||r<j?(D.distributedTracingMode!==Qe.W3C&&D.distributedTracingMode!==Qe.AI_AND_W3C||"string"!=typeof e.id||"."===e.id[e.id.length-1]||(e.id+="."),J(e.startTime)&&(e.startTime=new Date),n=gt.create(e,ft.dataType,ft.envelopeType,l[St](),t,n),l.core.track(n)):r===j&&Lt(l,B.MaxAjaxPerPVExceeded,"Maximum ajax per page view limit reached, ajax monitoring is paused until the next trackPageView(). In order to increase the limit set the maxAjaxCallsPerView configuration parameter.",!0),++r}}),e}e.AjaxPlugin=u,e.ajaxRecord=Tt,function(e,t,n){var r=Object.defineProperty;if(r)try{return r(e,t,n)}catch(a){}typeof n.value!==undefined&&(e[t]=n.value)}(e,"__esModule",{value:!0})};"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t(((e="undefined"!=typeof globalThis?globalThis:e||self).Microsoft=e.Microsoft||{},e.Microsoft.ApplicationInsights=e.Microsoft.ApplicationInsights||{})); | ||
//# sourceMappingURL=applicationinsights-dependencies-js.min.js.map |
/* | ||
* Microsoft Application Insights XHR dependencies plugin, 2.7.0-beta.1 | ||
* Microsoft Application Insights XHR dependencies plugin, 2.7.0 | ||
* Copyright (c) Microsoft and contributors. All rights reserved. | ||
@@ -75,2 +75,3 @@ * | ||
async?: boolean; | ||
errorStatusText?: boolean; | ||
status: string | number; | ||
@@ -77,0 +78,0 @@ requestSentTime: number; |
{ | ||
"name": "@microsoft/applicationinsights-dependencies-js", | ||
"version": "2.7.0-beta.1", | ||
"version": "2.7.0", | ||
"description": "Microsoft Application Insights XHR dependencies plugin", | ||
@@ -54,9 +54,6 @@ "homepage": "https://github.com/microsoft/ApplicationInsights-JS#readme", | ||
"@microsoft/applicationinsights-shims": "2.0.0", | ||
"@microsoft/applicationinsights-core-js": "2.7.0-beta.1", | ||
"@microsoft/applicationinsights-common": "2.7.0-beta.1" | ||
"@microsoft/applicationinsights-core-js": "2.7.0", | ||
"@microsoft/applicationinsights-common": "2.7.0" | ||
}, | ||
"license": "MIT", | ||
"publishConfig": { | ||
"tag": "beta" | ||
} | ||
"license": "MIT" | ||
} |
@@ -7,3 +7,3 @@ // Copyright (c) Microsoft Corporation. All rights reserved. | ||
RemoteDependencyData, dateTimeUtilsNow, DisabledPropertyName, IDependencyTelemetry, | ||
IConfig, ITelemetryContext, PropertiesPluginIdentifier, DistributedTracingModes, IRequestContext | ||
IConfig, ITelemetryContext, PropertiesPluginIdentifier, DistributedTracingModes, IRequestContext, isInternalApplicationInsightsEndpoint | ||
} from '@microsoft/applicationinsights-common'; | ||
@@ -14,6 +14,5 @@ import { | ||
getLocation, getGlobal, strUndefined, strPrototype, IInstrumentCallDetails, InstrumentFunc, InstrumentProto, getPerformance, | ||
IInstrumentHooksCallbacks, IInstrumentHook, objForEachKey, generateW3CId, getIEVersion, dumpObj,objKeys, ICustomProperties | ||
IInstrumentHooksCallbacks, IInstrumentHook, objForEachKey, generateW3CId, getIEVersion, dumpObj,objKeys, ICustomProperties, isXhrSupported, attachEvent | ||
} from '@microsoft/applicationinsights-core-js'; | ||
import { ajaxRecord, IAjaxRecordResponse } from './ajaxRecord'; | ||
import { EventHelper } from './ajaxUtils'; | ||
import { Traceparent } from './TraceParent'; | ||
@@ -52,3 +51,3 @@ import dynamicProto from "@microsoft/dynamicproto-js"; | ||
if (typeof XMLHttpRequest !== strUndefined && !isNullOrUndefined(XMLHttpRequest)) { | ||
if (isXhrSupported()) { | ||
let proto = XMLHttpRequest[strPrototype]; | ||
@@ -212,2 +211,3 @@ result = !isNullOrUndefined(proto) && | ||
let _enableRequestHeaderTracking = false; | ||
let _enableAjaxErrorStatusText = false; | ||
let _trackAjaxAttempts: number = 0; | ||
@@ -238,2 +238,3 @@ let _context: ITelemetryContext; | ||
_enableRequestHeaderTracking = _config.enableRequestHeaderTracking; | ||
_enableAjaxErrorStatusText = _config.enableAjaxErrorStatusText; | ||
_enableAjaxPerfTracking = _config.enableAjaxPerfTracking; | ||
@@ -602,2 +603,7 @@ _maxAjaxCallsPerView = _config.maxAjaxCallsPerView; | ||
// Also add extra check just in case the XHR or fetch objects where not decorated with the DisableProperty due to sealing or freezing | ||
if (!isDisabled && theUrl && isInternalApplicationInsightsEndpoint(theUrl)) { | ||
isDisabled = true; | ||
} | ||
if (isDisabled) { | ||
@@ -644,2 +650,3 @@ // Add the disabled url if not present | ||
ajaxData.async = async; | ||
ajaxData.errorStatusText = _enableAjaxErrorStatusText; | ||
xhr[strAjaxData] = ajaxData; | ||
@@ -651,3 +658,3 @@ | ||
function _attachToOnReadyStateChange(xhr: XMLHttpRequestInstrumented) { | ||
xhr[strAjaxData].xhrMonitoringState.stateChangeAttached = EventHelper.Attach(xhr, "readystatechange", () => { | ||
xhr[strAjaxData].xhrMonitoringState.stateChangeAttached = attachEvent(xhr, "readystatechange", () => { | ||
try { | ||
@@ -682,3 +689,3 @@ if (xhr && xhr.readyState === 4 && _isMonitoredXhrInstance(xhr)) { | ||
} catch (e) { | ||
// This shouldn't happend because of the above check -- but just in case, so just ignore | ||
// This shouldn't happen because of the above check -- but just in case, so just ignore | ||
} | ||
@@ -806,3 +813,3 @@ | ||
if (entries && entries.length === 1) { | ||
ajaxData.perfMark = entries[0]; | ||
ajaxData.perfMark = entries[0] as any; | ||
} | ||
@@ -882,2 +889,3 @@ } | ||
ajaxData.requestSentTime = dateTimeUtilsNow(); | ||
ajaxData.errorStatusText = _enableAjaxErrorStatusText; | ||
@@ -884,0 +892,0 @@ if (input instanceof Request) { |
@@ -212,2 +212,5 @@ // Copyright (c) Microsoft Corporation. All rights reserved. | ||
/// <summary>Should the Error Status text be included in the response</summary> | ||
public errorStatusText?:boolean; | ||
/// <summary>Returns the HTTP status code.</summary> | ||
@@ -332,3 +335,3 @@ public status:string|number; | ||
if (self.status >= 400) { | ||
if (self.errorStatusText && self.status >= 400) { | ||
const responseType = response.type; | ||
@@ -335,0 +338,0 @@ dependency[strProperties] = dependency[strProperties] || {}; |
@@ -5,3 +5,2 @@ // Copyright (c) Microsoft Corporation. All rights reserved. | ||
import { isNullOrUndefined } from '@microsoft/applicationinsights-core-js'; | ||
export { EventHelper } from '@microsoft/applicationinsights-core-js'; | ||
@@ -8,0 +7,0 @@ export class stringUtils { |
@@ -35,2 +35,3 @@ import { IDependencyTelemetry } from '@microsoft/applicationinsights-common'; | ||
async?: boolean; | ||
errorStatusText?: boolean; | ||
status: string | number; | ||
@@ -37,0 +38,0 @@ requestSentTime: number; |
@@ -1,4 +0,3 @@ | ||
export { EventHelper } from '@microsoft/applicationinsights-core-js'; | ||
export declare class stringUtils { | ||
static GetLength(strObject: any): number; | ||
} |
@@ -8,5 +8,5 @@ // This file is read by tools that parse documentation comments conforming to the TSDoc standard. | ||
"packageName": "@microsoft/api-extractor", | ||
"packageVersion": "7.18.5" | ||
"packageVersion": "7.18.7" | ||
} | ||
] | ||
} |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
1924738
10848
0
+ Added@microsoft/applicationinsights-common@2.7.0(transitive)
+ Added@microsoft/applicationinsights-core-js@2.7.0(transitive)
- Removed@microsoft/applicationinsights-common@2.7.0-beta.1(transitive)
- Removed@microsoft/applicationinsights-core-js@2.7.0-beta.1(transitive)