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