Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Socket
Sign inDemoInstall

@microsoft/applicationinsights-core-js

Package Overview
Dependencies
Maintainers
2
Versions
562
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@microsoft/applicationinsights-core-js - npm Package Compare versions

Comparing version 2.6.5 to 2.7.0-beta.1

18

browser/applicationinsights-core-js.integrity.json
{
"name": "applicationinsights-core-js",
"version": "2.6.5",
"version": "2.7.0-beta.1",
"ext": {

@@ -8,7 +8,7 @@ "@js": {

"type": "text/javascript; charset=utf-8",
"integrity": "sha256-2qnhDkyxbuFXgC8ImUoR2Juk+Bni+vqrIkVLOQY4ImI= sha384-3M5iJMawOw+FMxn2U1C02YALwuDE/h5j9sP/897Oq0fd0Lj8/wkl/tl3o5FHVZot sha512-k6gvtSYRopkD8rtVcPMEDx1xUy3skUB0hCiGLcoODE1lGXKWTFOMnOpJnbt76YLc5qfRr1pu3nfKuHACw1fJVQ==",
"integrity": "sha256-53i7zQzNibgk5e6w/NzWuq7aEYF02+rJVNBwSMW2Tzk= sha384-ye6I/UpHJyJsaGbMdqCn2se5xlVh9Q+rr8m8DYm2BzvFnUF8pBZAWIA84foEAvur sha512-tQ5ZpueAPmWits6xeWW5ICbNMkIajchyW65a+GMrLwj+un8LgJ7u7pE7BEbU0XABMfoAKeF7L40Mb1SaraO2IQ==",
"hashes": {
"sha256": "2qnhDkyxbuFXgC8ImUoR2Juk+Bni+vqrIkVLOQY4ImI=",
"sha384": "3M5iJMawOw+FMxn2U1C02YALwuDE/h5j9sP/897Oq0fd0Lj8/wkl/tl3o5FHVZot",
"sha512": "k6gvtSYRopkD8rtVcPMEDx1xUy3skUB0hCiGLcoODE1lGXKWTFOMnOpJnbt76YLc5qfRr1pu3nfKuHACw1fJVQ=="
"sha256": "53i7zQzNibgk5e6w/NzWuq7aEYF02+rJVNBwSMW2Tzk=",
"sha384": "ye6I/UpHJyJsaGbMdqCn2se5xlVh9Q+rr8m8DYm2BzvFnUF8pBZAWIA84foEAvur",
"sha512": "tQ5ZpueAPmWits6xeWW5ICbNMkIajchyW65a+GMrLwj+un8LgJ7u7pE7BEbU0XABMfoAKeF7L40Mb1SaraO2IQ=="
}

@@ -19,7 +19,7 @@ },

"type": "text/javascript; charset=utf-8",
"integrity": "sha256-Nh7vqI4lpk5+PjbPOjypJn70wIYYq25EgZuF8qB+Bqw= sha384-r+pYvrgLX08V6jNdPfrTg7GXeJ/IHX1UY96UI20pMvuz/xJGsWkekV93TaSGqRwU sha512-Mt2EyD5ycL3PTj/bzIQ57zLUVdlE+mmRZZL3q7sv8oO3Gxvg+qIRsPDoJoFRfRa5KThf67RGBWNiVfBAsfMlRw==",
"integrity": "sha256-sLgGUmkdU6IrM+YPIMuKeBg/F+ekfu0C5ZR9OjUYnI0= sha384-yy4w7P/J0Ke9qf5SRLm9DrnMDqkXqirR+zRnWUVgXrGx+ez6DFE6Vh67XkXiIZIa sha512-jdjqNls/likaWdQAOmKfTBv+6Q3OufuWs2FP9usFORr9hYyrYEGXruh6O3jARoq7lGOn0raHPYblPPwWcdmXBw==",
"hashes": {
"sha256": "Nh7vqI4lpk5+PjbPOjypJn70wIYYq25EgZuF8qB+Bqw=",
"sha384": "r+pYvrgLX08V6jNdPfrTg7GXeJ/IHX1UY96UI20pMvuz/xJGsWkekV93TaSGqRwU",
"sha512": "Mt2EyD5ycL3PTj/bzIQ57zLUVdlE+mmRZZL3q7sv8oO3Gxvg+qIRsPDoJoFRfRa5KThf67RGBWNiVfBAsfMlRw=="
"sha256": "sLgGUmkdU6IrM+YPIMuKeBg/F+ekfu0C5ZR9OjUYnI0=",
"sha384": "yy4w7P/J0Ke9qf5SRLm9DrnMDqkXqirR+zRnWUVgXrGx+ez6DFE6Vh67XkXiIZIa",
"sha512": "jdjqNls/likaWdQAOmKfTBv+6Q3OufuWs2FP9usFORr9hYyrYEGXruh6O3jARoq7lGOn0raHPYblPPwWcdmXBw=="
}

@@ -26,0 +26,0 @@ }

/*!
* Application Insights JavaScript SDK - Core, 2.6.5
* Application Insights JavaScript SDK - Core, 2.7.0-beta.1
* Copyright (c) Microsoft and contributors. All rights reserved.
*/
!function(e,n){"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||{}))}(this,function(c){"use strict";var r={Unknown:0,NonRetryableStatus:1,InvalidEvent:2,SizeLimitExceeded:3,KillSwitch:4,QueueFull:5},a="function",u="object",n="undefined",s="prototype",o="hasOwnProperty",t=Object,i=t[s],l=t.assign,f=t.create,e=t.defineProperty,g=i[o];function d(){return typeof globalThis!==n&&globalThis?globalThis:typeof self!==n&&self?self:typeof window!==n&&window?window:typeof global!==n&&global?global:null}function v(e){throw new TypeError(e)}function p(e){if(f)return f(e);if(null==e)return{};var n=typeof e;function t(){}return n!==u&&n!==a&&v("Object prototype may only be an Object:"+e),t[s]=e,new t}(d()||{}).Symbol,(d()||{}).Reflect;var h=function(e,n){return(h=t.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var t in n)n[o](t)&&(e[t]=n[t])})(e,n)};function y(e,n){function t(){this.constructor=e}typeof n!==a&&null!==n&&v("Class extends value "+n+" is not a constructor or null"),h(e,n),e[s]=null===n?p(n):(t[s]=n[s],new t)}var m="constructor",C="prototype",x="function",w="_dynInstFuncs",T="_isDynProxy",S="_dynClass",I="_dynInstChk",b=I,N="_dfOpts",E="_unknown_",P="__proto__",M="useBaseInst",L="setInstFuncs",k=Object,A=k.getPrototypeOf,F=0;function _(e,n){return e&&k[C].hasOwnProperty.call(e,n)}function O(e){return e&&(e===k[C]||e===Array[C])}function R(e){return O(e)||e===Function[C]}function j(e){if(e){if(A)return A(e);if(e=e[P]||e[C]||(e[m]?e[m][C]:null))return e}return null}function D(e,n){var t=[],r=k.getOwnPropertyNames;if(r)t=r(e);else for(var o in e)"string"==typeof o&&_(e,o)&&t.push(o);if(t&&0<t.length)for(var i=0;i<t.length;i++)n(t[i])}function U(e,n,t){return n!==m&&typeof e[n]===x&&(t||_(e,n))}function z(e){throw new TypeError("DynamicProto: "+e)}function K(e,n){for(var t=e.length-1;0<=t;t--)if(e[t]===n)return 1}function B(e,n){return _(e,C)?e.name||n||E:((e||{})[m]||{}).name||n||E}function V(e,r,n,t){_(e,C)||z("theClass is an invalid class definition.");var o=e[C];!function(e){if(A)for(var n=[],t=j(r);t&&!R(t)&&!K(n,t);){if(t===e)return 1;n.push(t),t=j(t)}}(o)&&z("["+B(e)+"] is not in class hierarchy of ["+B(r)+"]");var i=null;_(o,S)?i=o[S]:(i="_dynCls$"+B(e,"_")+"$"+F,F++,o[S]=i);var a=V[N],u=!!a[M];u&&t&&t[M]!==undefined&&(u=!!t[M]);var s,c,l,f,g,d,e=(c={},D(s=r,function(e){!c[e]&&U(s,e,!1)&&(c[e]=s[e])}),c);n(r,function(e,n,t,i){function r(e,n,t){var r,o=n[t];return o[T]&&i&&!1!==(r=e[w]||{})[b]&&(o=(r[n[S]]||{})[t]||o),function(){return o.apply(e,arguments)}}var o={};D(t,function(e){o[e]=r(n,t,e)});for(var a=j(e),u=[];a&&!R(a)&&!K(u,a);)D(a,function(e){!o[e]&&U(a,e,!A)&&(o[e]=r(n,a,e))}),u.push(a),a=j(a);return o}(o,r,e,u)),a=!!A&&!!a[L],l=o,i=i,f=r,g=e,t=!1!==(a=a&&t?!!t[L]:a),O(l)||(a=f[w]=f[w]||{},d=a[i]=a[i]||{},!1!==a[b]&&(a[b]=!!t),D(f,function(e){var t,r,o;U(f,e,!1)&&f[e]!==g[e]&&(d[e]=f[e],delete f[e],_(l,e)&&(!l[e]||l[e][T])||(l[e]=(t=l,r=e,(o=function(){var e,n;return(function(e,n,t,r){var o=null;if(e&&_(t,S)){var i=e[w]||{};if((o=(i[t[S]]||{})[n])||z("Missing ["+n+"] "+x),!o[I]&&!1!==i[b]){for(var a=!_(e,n),u=j(e),s=[];a&&u&&!R(u)&&!K(s,u);){var c=u[n];if(c){a=c===r;break}s.push(u),u=j(u)}try{a&&(e[n]=o),o[I]=1}catch(l){i[b]=!1}}}return o}(this,r,t,o)||(typeof(n=(n=t[e=r])===o?j(t)[e]:n)!==x&&z("["+e+"] is not a "+x),n)).apply(this,arguments)})[T]=1,o)))}))}V[N]={setInstFuncs:!0,useBaseInst:!0},c.LoggingSeverity=void 0,(lt=c.LoggingSeverity||(c.LoggingSeverity={}))[lt.CRITICAL=1]="CRITICAL",lt[lt.WARNING=2]="WARNING";var W={BrowserDoesNotSupportLocalStorage:0,BrowserCannotReadLocalStorage:1,BrowserCannotReadSessionStorage:2,BrowserCannotWriteLocalStorage:3,BrowserCannotWriteSessionStorage:4,BrowserFailedRemovalFromLocalStorage:5,BrowserFailedRemovalFromSessionStorage:6,CannotSendEmptyTelemetry:7,ClientPerformanceMathError:8,ErrorParsingAISessionCookie:9,ErrorPVCalc:10,ExceptionWhileLoggingError:11,FailedAddingTelemetryToBuffer:12,FailedMonitorAjaxAbort:13,FailedMonitorAjaxDur:14,FailedMonitorAjaxOpen:15,FailedMonitorAjaxRSC:16,FailedMonitorAjaxSend:17,FailedMonitorAjaxGetCorrelationHeader:18,FailedToAddHandlerForOnBeforeUnload:19,FailedToSendQueuedTelemetry:20,FailedToReportDataLoss:21,FlushFailed:22,MessageLimitPerPVExceeded:23,MissingRequiredFieldSpecification:24,NavigationTimingNotSupported:25,OnError:26,SessionRenewalDateIsZero:27,SenderNotInitialized:28,StartTrackEventFailed:29,StopTrackEventFailed:30,StartTrackFailed:31,StopTrackFailed:32,TelemetrySampledAndNotSent:33,TrackEventFailed:34,TrackExceptionFailed:35,TrackMetricFailed:36,TrackPVFailed:37,TrackPVFailedCalc:38,TrackTraceFailed:39,TransmissionFailed:40,FailedToSetStorageBuffer:41,FailedToRestoreStorageBuffer:42,InvalidBackendResponse:43,FailedToFixDepricatedValues:44,InvalidDurationValue:45,TelemetryEnvelopeInvalid:46,CreateEnvelopeError:47,CannotSerializeObject:48,CannotSerializeObjectNonSerializable:49,CircularReferenceDetected:50,ClearAuthContextFailed:51,ExceptionTruncated:52,IllegalCharsInName:53,ItemNotInArray:54,MaxAjaxPerPVExceeded:55,MessageTruncated:56,NameTooLong:57,SampleRateOutOfRange:58,SetAuthContextFailed:59,SetAuthContextFailedAccountName:60,StringValueTooLong:61,StartCalledMoreThanOnce:62,StopCalledWithoutStart:63,TelemetryInitializerFailed:64,TrackArgumentsNotSpecified:65,UrlTooLong:66,SessionStorageBufferFull:67,CannotAccessCookie:68,IdTooLong:69,InvalidEvent:70,FailedMonitorAjaxSetRequestHeader:71,SendBrowserInfoOnUserInit:72,PluginException:73,NotificationException:74,SnippetScriptLoadFailure:99,InvalidInstrumentationKey:100,CannotParseAiBlobValue:101,InvalidContentBlob:102,TrackPageActionEventFailed:103},G="on",q="attachEvent",H="addEventListener",J="detachEvent",Q="removeEventListener",$=e,X=t.freeze,Z=t.seal;function Y(e){return i.toString.call(e)}function ee(e,n){return typeof e===n}function ne(e){return e===undefined||typeof e===n}function te(e){return null===e||ne(e)}function re(e){return!te(e)}function oe(e,n){return e&&g.call(e,n)}function ie(e){return typeof e===u}function ae(e){return typeof e===a}function ue(e,n,t,r){void 0===r&&(r=!1);var o=!1;if(!te(e))try{te(e[H])?te(e[q])||(e[q](G+n,t),o=!0):(e[H](n,t,r),o=!0)}catch(i){}return o}function se(e,n,t,r){if(void 0===r&&(r=!1),!te(e))try{te(e[Q])?te(e[J])||e[J](G+n,t):e[Q](n,t,r)}catch(o){}}function ce(e,n){if(e)for(var t in e)g.call(e,t)&&n.call(e,t,e[t])}function le(e,n){if(e&&n){var t=n.length,r=e.length;if(e===n)return!0;if(t<=r){for(var o=r-1,i=t-1;0<=i;i--){if(e[o]!=n[i])return!1;o--}return!0}}return!1}function fe(e,n){return!(!e||!n||!~e.indexOf(n))}function ge(e){return"[object Date]"===Y(e)}function de(e){return"[object Array]"===Y(e)}function ve(e){return"[object Error]"===Y(e)}function pe(e){return"string"==typeof e}function he(e){return"number"==typeof e}function ye(e){return"boolean"==typeof e}function me(e){if(ge(e)){var n=function(e){return 1===(e=""+e).length?"0"+e:e};return e.getUTCFullYear()+"-"+n(1+e.getUTCMonth())+"-"+n(e.getUTCDate())+"T"+n(e.getUTCHours())+":"+n(e.getUTCMinutes())+":"+n(e.getUTCSeconds())+"."+(""+(e.getUTCMilliseconds()/1e3).toFixed(3)).slice(2,5)+"Z"}}function Ce(e,n,t){for(var r=e.length,o=0;o<r&&!(o in e&&-1===n.call(t||e,e[o],o,e));o++);}function xe(e,n,t){for(var r=e.length,o=Math.max(0<=(t=t||0)?t:r-Math.abs(t),0);o<r;o++)if(o in e&&e[o]===n)return o;return-1}function we(e,n,t){for(var r=e.length,o=t||e,i=Array(r),a=0;a<r;a++)a in e&&(i[a]=n.call(o,e[a],e));return i}function Te(e,n,t){var r,o=e.length,i=0;if(3<=arguments.length)r=t;else{for(;i<o&&!(i in e);)i++;r=e[i++]}for(;i<o;)i in e&&(r=n(r,e[i],i,e)),i++;return r}function Se(e){return"string"!=typeof e?e:e.replace(/^\s+|\s+$/g,"")}var Ie=!{toString:null}.propertyIsEnumerable("toString"),be=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"];function Ne(e){var n=typeof e;n===a||n===u&&null!==e||v("objKeys called on non-object");var t,r=[];for(t in e)e&&g.call(e,t)&&r.push(t);if(Ie)for(var o=be.length,i=0;i<o;i++)e&&g.call(e,be[i])&&r.push(be[i]);return r}function Ee(e,n,t,r){if($)try{var o={enumerable:!0,configurable:!0};return t&&(o.get=t),r&&(o.set=r),$(e,n,o),!0}catch(i){}return!1}function Pe(){var e=Date;return e.now?e.now():(new e).getTime()}function Me(e){return ve(e)?e.name:""}function Le(e,n,t,r,o){var i=t;return e&&((i=e[n])===t||o&&!o(i)||r&&!r(t)||(e[n]=i=t)),i}function ke(e,n,t){var r;return e?!(r=e[n])&&te(r)&&(r=ne(t)?{}:t,e[n]=r):r=ne(t)?{}:t,r}function Ae(e){return!e}function Fe(e){return!!e}function _e(e){throw Error(e)}var Oe="window",Re="navigator",je="location",De="console",Ue="performance",ze="JSON",Ke="crypto",Be="msCrypto",Ve="msie",We="trident/",Ge=null,qe=null,He=!1;function Je(e){var n=d();return n&&n[e]?n[e]:e===Oe&&Qe()?window:null}function Qe(){return!(typeof window!==u||!window)}function $e(){return Qe()?window:Je(Oe)}function Xe(){return!(typeof document!==u||!document)}function Ze(){return Xe()?document:Je("document")}function Ye(){return!(typeof navigator!==u||!navigator)}function en(){return Ye()?navigator:Je(Re)}function nn(){return!(typeof history!==u||!history)}function tn(e){return e&&He&&(e=Je("__mockLocation"))?e:typeof location===u&&location?location:Je(je)}function rn(){return typeof console!==n?console:Je(De)}function on(){return Je(Ue)}function an(){return!!(typeof JSON===u&&JSON||null!==Je(ze))}function un(){return an()?JSON||Je(ze):null}function sn(){return Je(Ke)}function cn(){return Je(Be)}function ln(){var e=en();return!e||e.userAgent===qe&&null!==Ge||(e=((qe=e.userAgent)||"").toLowerCase(),Ge=fe(e,Ve)||fe(e,We)),Ge}function fn(e){var n=Object[s].toString.call(e),t="";return"[object Error]"===n?t="{ stack: '"+e.stack+"', message: '"+e.message+"', name: '"+e.name+"'":an()&&(t=un().stringify(e)),n+t}function gn(e){return e?'"'+e.replace(/\"/g,"")+'"':""}var dn=(vn.dataType="MessageData",vn);function vn(e,n,t,r){void 0===t&&(t=!1),this.messageId=e,this.message=(t?"AI: ":"AI (Internal): ")+e,e="",an()&&(e=un().stringify(r)),e=(n?" message:"+gn(n):"")+(r?" props:"+gn(e):""),this.message+=e}function pn(e,n){return(e||{}).logger||new hn(n)}var hn=function Gt(t){this.identifier="DiagnosticLogger",this.queue=[];var o=0,a={};V(Gt,this,function(i){function e(e,n){return te(e=t[e])?n:e}te(t)&&(t={}),i.consoleLoggingLevel=function(){return e("loggingLevelConsole",0)},i.telemetryLoggingLevel=function(){return e("loggingLevelTelemetry",1)},i.maxInternalMessageLimit=function(){return e("maxMessageLimit",25)},i.enableDebugExceptions=function(){return e("enableDebugExceptions",!1)},i.throwInternal=function(e,n,t,r,o){if(t=new dn(n,t,o=void 0!==o&&o,r),i.enableDebugExceptions())throw t;ne(t.message)||(r=i.consoleLoggingLevel(),o?(o=+t.messageId,!a[o]&&r>=c.LoggingSeverity.WARNING&&(i.warnToConsole(t.message),a[o]=!0)):r>=c.LoggingSeverity.WARNING&&i.warnToConsole(t.message),i.logInternalMessage(e,t))},i.warnToConsole=function(e){var n,t=rn();t&&(n="log",ae(t[n=t.warn?"warn":n])&&t[n](e))},i.resetInternalMessageCount=function(){o=0,a={}},i.logInternalMessage=function(e,n){var t,r;o>=i.maxInternalMessageLimit()||(t=!0,r="AITR_"+n.messageId,a[r]?t=!1:a[r]=!0,t&&(e<=i.telemetryLoggingLevel()&&(i.queue.push(n),o++),o===i.maxInternalMessageLimit()&&(n=new dn(W.MessageLimitPerPVExceeded,e="Internal events throttle limit per PageView reached for this app.",!1),i.queue.push(n),i.warnToConsole(e))))}})},yn=(mn.ParentContextKey="parent",mn.ChildrenContextKey="childEvts",mn);function mn(e,o,n){var t,i=this,a=!1;i.start=Pe(),i.name=e,i.isAsync=n,i.isChildEvt=function(){return!1},ae(o)&&(a=Ee(i,"payload",function(){return!t&&ae(o)&&(t=o(),o=null),t})),i.getCtx=function(e){return e?(e===mn.ParentContextKey||e===mn.ChildrenContextKey?i:i.ctx||{})[e]:null},i.setCtx=function(e,n){e&&(e===mn.ParentContextKey?(i[e]||(i.isChildEvt=function(){return!0}),i[e]=n):e===mn.ChildrenContextKey?i[e]=n:(i.ctx=i.ctx||{})[e]=n)},i.complete=function(){var e=0,n=i.getCtx(mn.ChildrenContextKey);if(de(n))for(var t=0;t<n.length;t++){var r=n[t];r&&(e+=r.time)}i.time=Pe()-i.start,i.exTime=i.time-e,i.complete=function(){},!a&&ae(o)&&(i.payload=o())}}var Cn=function qt(n){this.ctx={},V(qt,this,function(t){t.create=function(e,n,t){return new yn(e,n,t)},t.fire=function(e){e&&(e.complete(),n&&n.perfEvent(e))},t.setCtx=function(e,n){e&&((t.ctx=t.ctx||{})[e]=n)},t.getCtx=function(e){return(t.ctx||{})[e]}})},xn="CoreUtils.doPerf";function wn(e,n,t,r,o){if(e){var i=e;if(i=ae(i.getPerfMgr)?i.getPerfMgr():i){var a,u=void 0,e=i.getCtx(xn);try{if(u=i.create(n(),r,o))return e&&u.setCtx&&(u.setCtx(yn.ParentContextKey,e),e.getCtx&&e.setCtx&&((a=e.getCtx(yn.ChildrenContextKey))||(a=[],e.setCtx(yn.ChildrenContextKey,a)),a.push(u))),i.setCtx(xn,u),t(u)}catch(s){u&&u.setCtx&&u.setCtx("exception",s)}finally{u&&i.fire(u),i.setCtx(xn,e)}}}return t()}var Tn=function(o,n){var i=this,a=null,u=ae(o.processTelemetry),s=ae(o.setNextPlugin);i._hasRun=!1,i.getPlugin=function(){return o},i.getNext=function(){return a},i.setNext=function(e){a=e},i.processTelemetry=function(t,r){r=r||n;var e=o?o.identifier:"TelemetryPluginChain";wn(r?r.core():null,function(){return e+":processTelemetry"},function(){if(o&&u){i._hasRun=!0;try{r.setNext(a),s&&o.setNextPlugin(a),a&&(a._hasRun=!1),o.processTelemetry(t,r)}catch(n){var e=a&&a._hasRun;a&&e||r.diagLog().throwInternal(c.LoggingSeverity.CRITICAL,W.PluginException,"Plugin ["+o.identifier+"] failed during processTelemetry - "+n),a&&!e&&a.processTelemetry(t,r)}}else a&&(i._hasRun=!0,a.processTelemetry(t,r))},function(){return{item:t}},!t.sync)}};function Sn(e,n){var t=[];if(e&&0<e.length)for(var r=null,o=0;o<e.length;o++){var i=e[o];i&&ae(i.processTelemetry)&&(i=new Tn(i,n),t.push(i),r&&r.setNext(i),r=i)}return 0<t.length?t[0]:null}var In=function Ht(e,o,t,n){var r,i,a,u,s=this,c=null;null!==n&&(e&&ae(e.getPlugin)?c=function(e,n,t){var r=[],o=!t;if(e)for(;e;){var i=e.getPlugin();!o&&i!==t||(o=!0,r.push(i)),e=e.getNext()}return o||r.push(t),Sn(r,n)}(e,s,n||e.getPlugin()):n?(r=s,a=e,u=!1,(i=n)&&e&&(a=[],Ce(e,function(e){!u&&e!==i||(u=!0,a.push(e))})),i&&!u&&(a=a||[]).push(i),c=Sn(a,r)):ne(n)&&(c=Sn(e,s))),s.core=function(){return t},s.diagLog=function(){return pn(t,o)},s.getCfg=function(){return o},s.getExtCfg=function(e,n){var t,r;return void 0===n&&(n={}),!o||(r=o.extensionConfig)&&e&&(t=r[e]),t||n},s.getConfig=function(e,n,t){var r;return void 0===t&&(t=!1),(e=s.getExtCfg(e,null))&&!te(e[n])?r=e[n]:o&&!te(o[n])&&(r=o[n]),te(r)?t:r},s.hasNext=function(){return null!=c},s.getNext=function(){return c},s.setNext=function(e){c=e},s.processNext=function(e){var n=c;n&&(c=n.getNext(),n.processTelemetry(e,s))},s.createNew=function(e,n){return new Ht((e=void 0===e?null:e)||c,o,t,n)}},bn="extensionConfig",Nn="getPlugin",En=(Pn.prototype.initialize=function(e,n,t,r){this._baseTelInit(e,n,t,r)},Pn);function Pn(){var i=this,a=!1,u=null,s=null;i.core=null,i.diagLog=function(e){return i._getTelCtx(e).diagLog()},i.isInitialized=function(){return a},i.setInitialized=function(e){a=e},i.setNextPlugin=function(e){s=e},i.processNext=function(e,n){n?n.processNext(e):s&&ae(s.processTelemetry)&&s.processTelemetry(e,null)},i._getTelCtx=function(e){var n=e=void 0===e?null:e;return n||(e=u||new In(null,{},i.core),n=s&&s[Nn]?e.createNew(null,s[Nn]):e.createNew(null,s)),n},i._baseTelInit=function(e,n,t,r){e&&Le(e,bn,[],null,te),!r&&n&&(r=n.getProcessTelContext().getNext());var o=s;s&&s[Nn]&&(o=s[Nn]()),i.core=n,u=new In(r,e,n,o),a=!0}}var Mn="processTelemetry",Ln="priority",kn="setNextPlugin",An="isInitialized";function Fn(n,t){for(var e=[],r=null,o=n.getNext();o;){var i=o.getPlugin();i&&(r&&ae(r[kn])&&ae(i[Mn])&&r[kn](i),ae(i[An])&&i[An]()||e.push(i),r=i,o=o.getNext())}Ce(e,function(e){e.initialize(n.getCfg(),n.core(),t,n.getNext())})}function _n(e){return e.sort(function(e,n){var t=0,r=ae(n[Mn]);return ae(e[Mn])?t=r?e[Ln]-n[Ln]:1:r&&(t=-1),t})}var On,Rn=(y(jn,On=En),jn._staticInit=(Ee(Nt=jn.prototype,"ChannelControls",Nt.getChannelControls),void Ee(Nt,"channelQueue",Nt.getChannelControls)),jn);function jn(){var s,r=On.call(this)||this;function c(e){e&&0<e.length&&(Ce(e=e.sort(function(e,n){return e.priority-n.priority}),function(e){e.priority<500&&_e("Channel has invalid priority"+e.identifier)}),s.push(e))}return r.identifier="ChannelControllerPlugin",r.priority=500,V(jn,r,function(a,u){a.setNextPlugin=function(e){},a.processTelemetry=function(n,t){s&&Ce(s,function(e){0<e.length&&r._getTelCtx(t).createNew(e).processNext(n)})},a.getChannelControls=function(){return s},a.initialize=function(n,t,r){var e,o,i;a.isInitialized()||(u.initialize(n,t,r),e=(n||{}).channels,o=r,s=[],e&&Ce(e,c),o&&(i=[],Ce(o,function(e){500<e.priority&&i.push(e)}),c(i)),Ce(s,function(e){return Fn(new In(e,n,t),r)}))}}),r}var Dn="toGMTString",Un="toUTCString",zn="cookie",Kn="expires",Bn="enabled",Vn="isCookieUseDisabled",Wn="disableCookiesUsage",Gn="_ckMgr",qn="",Hn=null,Jn=null,Qn=null,$n=Ze(),Xn={},Zn={};function Yn(e,n){var t=nt[Gn]||Zn[Gn];return t||(t=nt[Gn]=nt(e,n),Zn[Gn]=t),t}function et(e){return!e||e.isEnabled()}function nt(e,r){var n,t,s=(Le(t=(n=e||Zn).cookieCfg=n.cookieCfg||{},"domain",n.cookieDomain,re,te),Le(t,"path",n.cookiePath||"/",null,te),te(t[Bn])&&(e=void 0,ne(n[Vn])||(e=!n[Vn]),ne(n[Wn])||(e=!n[Wn]),t[Bn]=e),t),c=s.path||"/",l=s.domain,o=!1!==s[Bn],f={isEnabled:function(){var e=o&&tt(r),n=Zn[Gn];return e&&n&&f!==n?et(n):e},setEnabled:function(e){o=!1!==e},set:function(e,n,t,r,o){var i,a,u;et(f)&&(i={},-1!=(u=(a=Se(n||qn)).indexOf(";"))&&(a=Se(n.substring(0,u)),i=rt(n.substring(1+u))),Le(i,"domain",r||l,Fe,ne),te(t)||(u=ln(),!ne(i[Kn])||0<(n=Pe()+1e3*t)&&((r=new Date).setTime(n),Le(i,Kn,ot(r,u?Dn:Un)||ot(r,u?Dn:Un)||qn,Fe)),u||Le(i,"max-age",qn+t,null,ne)),(t=tn())&&"https:"===t.protocol&&(Le(i,"secure",null,null,ne),(Jn=null===Jn?!ut((en()||{}).userAgent):Jn)&&Le(i,"SameSite","None",null,ne)),Le(i,"path",o||c,null,ne),(s.setCookie||at)(e,it(a,i)))},get:function(e){var n=qn;return et(f)?(s.getCookie||function(e){var n,t=qn;return $n&&(n=$n[zn]||qn,Qn!==n&&(Xn=rt(n),Qn=n),t=Se(Xn[e]||qn)),t})(e):n},del:function(e,n){et(f)&&f.purge(e,n)},purge:function(e,n){var t;tt(r)&&((t={}).path=n||"/",t[Kn]="Thu, 01 Jan 1970 00:00:01 GMT",ln()||(t["max-age"]="0"),(s.delCookie||at)(e,it(qn,t)))}};return f[Gn]=f}function tt(e){if(null===Hn){Hn=!1;try{Hn=($n||{})[zn]!==undefined}catch(n){e&&e.throwInternal(c.LoggingSeverity.WARNING,W.CannotAccessCookie,"Cannot access document.cookie - "+Me(n),{exception:fn(n)})}}return Hn}function rt(e){var t={};return e&&e.length&&Ce(Se(e).split(";"),function(e){var n;(e=Se(e||qn))&&(-1==(n=e.indexOf("="))?t[e]=null:t[Se(e.substring(0,n))]=Se(e.substring(1+n)))}),t}function ot(e,n){return ae(e[n])?e[n]():null}function it(e,n){var t=e||qn;return ce(n,function(e,n){t+="; "+e+(te(n)?qn:"="+n)}),t}function at(e,n){$n&&($n[zn]=e+"="+n)}function ut(e){return!(!pe(e)||!fe(e,"CPU iPhone OS 12")&&!fe(e,"iPad; CPU OS 12")&&!(fe(e,"Macintosh; Intel Mac OS X 10_14")&&fe(e,"Version/")&&fe(e,"Safari"))&&(!fe(e,"Macintosh; Intel Mac OS X 10_14")||!le(e,"AppleWebKit/605.1.15 (KHTML, like Gecko)"))&&!fe(e,"Chrome/5")&&!fe(e,"Chrome/6")&&(!fe(e,"UnrealEngine")||fe(e,"Chrome"))&&!fe(e,"UCBrowser/12")&&!fe(e,"UCBrowser/11"))}var st,ct="_notificationManager",lt=function Jt(){var n,u,s,t,r,c=!1;V(Jt,this,function(a){a._extensions=[],u=new Rn,a.logger=p({throwInternal:function(e,n,t,r,o){},warnToConsole:function(e){},resetInternalMessageCount:function(){}}),n=[],a.isInitialized=function(){return c},a.initialize=function(e,n,r,t){a.isInitialized()&&_e("Core should not be initialized more than once"),e&&!te(e.instrumentationKey)||_e("Please provide instrumentation key"),s=t,a[ct]=t,a.config=e||{},e.extensions=te(e.extensions)?[]:e.extensions,ke(e,bn).NotificationManager=t,r&&(a.logger=r),(t=[]).push.apply(t,n.concat(e.extensions));var t=_n(t),o=[],i={};Ce(t,function(e){(te(e)||te(e.initialize))&&_e("Extensions must provide callback to initialize");var n=e.priority,t=e.identifier;e&&n&&(te(i[n])?i[n]=t:r.warnToConsole("Two extensions have same priority #"+n+" - "+i[n]+", "+t)),(!n||n<u.priority)&&o.push(e)}),t.push(u),o.push(u),t=_n(t),a._extensions=t,Fn(new In([u],e,a),t),Fn(new In(o,e,a),t),a._extensions=o,0===a.getTransmissionControls().length&&_e("No channels available"),c=!0,a.releaseQueue()},a.getTransmissionControls=function(){return u.getChannelControls()},a.track=function(e){Le(e,"iKey",a.config.instrumentationKey,null,Ae),Le(e,"time",me(new Date),null,Ae),Le(e,"ver","4.0",null,te),a.isInitialized()?a.getProcessTelContext().processNext(e):n.push(e)},a.getProcessTelContext=function(){var e=a._extensions,n=e;return e&&0!==e.length||(n=[u]),new In(n,a.config,a)},a.getNotifyMgr=function(){return s||(s=p({addNotificationListener:function(e){},removeNotificationListener:function(e){},eventsSent:function(e){},eventsDiscarded:function(e,n){},eventsSendRequest:function(e,n){}}),a[ct]=s),s},a.getCookieMgr=function(){return r=r||nt(a.config,a.logger)},a.setCookieMgr=function(e){r=e},a.getPerfMgr=function(){return t||a.config&&a.config.enablePerfMgr&&(t=new Cn(a.getNotifyMgr())),t},a.setPerfMgr=function(e){t=e},a.eventCnt=function(){return n.length},a.releaseQueue=function(){0<n.length&&(Ce(n,function(e){a.getProcessTelContext().processNext(e)}),n=[])}})},ft=function Qt(e){this.listeners=[];var n=!!(e||{}).perfEvtsSendAll;V(Qt,this,function(o){o.addNotificationListener=function(e){o.listeners.push(e)},o.removeNotificationListener=function(e){for(var n=xe(o.listeners,e);-1<n;)o.listeners.splice(n,1),n=xe(o.listeners,e)},o.eventsSent=function(n){Ce(o.listeners,function(e){e&&e.eventsSent&&setTimeout(function(){return e.eventsSent(n)},0)})},o.eventsDiscarded=function(n,t){Ce(o.listeners,function(e){e&&e.eventsDiscarded&&setTimeout(function(){return e.eventsDiscarded(n,t)},0)})},o.eventsSendRequest=function(t,r){Ce(o.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){}})},o.perfEvent=function(t){t&&(!n&&t.isChildEvt()||Ce(o.listeners,function(e){if(e&&e.perfEvent)if(t.isAsync)setTimeout(function(){return e.perfEvent(t)},0);else try{e.perfEvent(t)}catch(n){}}))}})},e=(y(gt,st=lt),gt);function gt(){var e=st.call(this)||this;return V(gt,e,function(t,o){function n(e){var n=t.getNotifyMgr();n&&n.eventsDiscarded([e],r.InvalidEvent)}t.initialize=function(e,n,t,r){o.initialize(e,n,t||new hn(e),r||new ft(e))},t.track=function(e){wn(t.getPerfMgr(),function(){return"AppInsightsCore:track"},function(){null===e&&(n(e),_e("Invalid telemetry item")),function(){if(te(e.name))throw n(e),Error("telemetry name required")}(),o.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 setInterval(function(){var e=t.logger?t.logger.queue:[];Ce(e,function(e){e={name:n||"InternalMessageId: "+e.messageId,iKey:t.config.instrumentationKey,time:me(new Date),baseType:dn.dataType,baseData:{message:e.message}},t.track(e)}),e.length=0},e=e&&0<e?e:1e4)}}),e}var dt=4294967296,vt=4294967295,pt=!1,ht=123456789,yt=987654321;function mt(e){e<0&&(e>>>=0),ht=123456789+e&vt,yt=987654321-e&vt,pt=!0}function Ct(){try{var e=2147483647&Pe();mt((Math.random()*dt^e)+e)}catch(n){}}function xt(e){return 0<e?Math.floor(wt()/vt*(e+1))>>>0:0}function wt(e){var n=(n=sn()||cn())&&n.getRandomValues?n.getRandomValues(new Uint32Array(1))[0]&vt:ln()?(pt||Ct(),St()&vt):Math.floor(dt*Math.random()|0);return e||(n>>>=0),n}function Tt(e){e?mt(e):Ct()}function St(e){var n=((yt=36969*(65535&yt)+(yt>>16)&vt)<<16)+(65535&(ht=18e3*(65535&ht)+(ht>>16)&vt))>>>0&vt|0;return e||(n>>>=0),n}var It,bt=null,Nt=n;function Et(e,n){var t=!1,r=$e();return r&&(t=ue(r,e,n),t=ue(r.body,e,n)||t),(r=Ze())&&_t.Attach(r,e,n)||t}function Pt(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(Ft,function(e){var n=0|xt(15);return("x"===e?n:3&n|8).toString(16)})}function Mt(){var e=on();return e&&e.now?e.now():Pe()}function Lt(e){void 0===e&&(e=22);for(var n=wt()>>>0,t=0,r="";r.length<e;)r+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"[0|63&n]||"",n>>>=6,5==++t&&(n=(wt()<<2&4294967295|3&n)>>>0,t=0);return r}function kt(){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=wt())]+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 o=n[8+(3&wt())|0];return t.substr(0,8)+t.substr(9,4)+"4"+t.substr(13,3)+o+t.substr(16,3)+t.substr(19,12)}var At={_canUseCookies:undefined,isTypeof:ee,isUndefined:ne,isNullOrUndefined:te,hasOwnProperty:oe,isFunction:ae,isObject:ie,isDate:ge,isArray:de,isError:ve,isString:pe,isNumber:he,isBoolean:ye,toISOString:me,arrForEach:Ce,arrIndexOf:xe,arrMap:we,arrReduce:Te,strTrim:Se,objCreate:p,objKeys:Ne,objDefineAccessors:Ee,addEventHandler:Et,dateNow:Pe,isIE:ln,disableCookies:Rt,newGuid:Pt,perfNow:Mt,newId:Lt,randomValue:xt,random32:wt,mwcRandomSeed:Tt,mwcRandom32:St,generateW3CId:kt},Ft=/[xy]/g,_t={Attach:ue,AttachEvent:ue,Detach:se,DetachEvent:se};function Ot(e,n){return e=Yn(e,n),n=At._canUseCookies,null===bt&&(bt=[],It=n,Ee(At,"_canUseCookies",function(){return It},function(n){It=n,Ce(bt,function(e){e.setEnabled(n)})})),-1===xe(bt,e)&&bt.push(e),ye(n)&&e.setEnabled(n),ye(It)&&e.setEnabled(It),e}function Rt(){Ot().setEnabled(!1)}var jt="_aiHooks",Dt=["req","rsp","hkErr","fnErr"];function Ut(e,n){if(e)for(var t=0;t<e.length&&!n(e[t],t);t++);}function zt(e,a,u,s,c){0<=c&&c<=2&&Ut(e,function(e,n){var t=e.cbks;if(e=t[Dt[c]]){a.ctx=function(){return s[n]=s[n]||{}};try{e.apply(a.inst,u)}catch(o){e=a.err;try{var r=t[Dt[2]];r&&(a.err=o,r.apply(a.inst,u))}catch(i){}finally{a.err=e}}}})}function Kt(s){return function(){var t=arguments,e=s.h,r={name:s.n,inst:this,ctx:null,set:function(e,n){(t=i([],t))[e]=n,o=i([r],t)}},n=[],o=i([r],t);function i(n,e){return Ut(e,function(e){n.push(e)}),n}zt(e,r,o,n,0);var a=s.f;try{r.rslt=a.apply(this,t)}catch(u){throw r.err=u,zt(e,r,o,n,3),u}return zt(e,r,o,n,1),r.rslt}}var Bt=Object.getPrototypeOf;function Vt(e,n,t,r){if(void 0===r&&(r=!0),e&&n&&t&&(e=function i(e,n,t){var r=null;return e&&(oe(e,n)?r=e:t&&(r=i(function(e){if(e){if(Bt)return Bt(e);if(e=e.__proto__||e[s]||e.constructor)return e}return null}(e),n,!1))),r}(e,n,r))&&typeof(r=e[n])===a){var o=r[jt];return o||((r=Kt(o={i:0,n:n,f:r,h:[]}))[jt]=o,e[n]=r),t={id:o.i,cbks:t,rm:function(){var t=this.id;Ut(o.h,function(e,n){return e.id===t&&(o.h.splice(n,1),1)})}},o.i++,o.h.push(t),t}return null}function Wt(n,e,t,r){void 0===r&&(r=!0);var o=null;return Ut(e,function(e){(e=Vt(n,e,t,r))&&(o=o||[]).push(e)}),o}c.AppInsightsCore=e,c.BaseCore=lt,c.BaseTelemetryPlugin=En,c.CoreUtils=At,c.DiagnosticLogger=hn,c.EventHelper=_t,c.EventsDiscardedReason=r,c.InstrumentFunc=Vt,c.InstrumentFuncs=Wt,c.InstrumentProto=function(e,n,t){return e?Vt(e[s],n,t,!1):null},c.InstrumentProtos=function(e,n,t){return e?Wt(e[s],n,t,!1):null},c.MinChannelPriorty=100,c.NotificationManager=ft,c.PerfEvent=yn,c.PerfManager=Cn,c.ProcessTelemetryContext=In,c.Undefined=Nt,c._InternalLogMessage=dn,c._InternalMessageId=W,c._legacyCookieMgr=Ot,c.addEventHandler=Et,c.areCookiesSupported=tt,c.arrForEach=Ce,c.arrIndexOf=xe,c.arrMap=we,c.arrReduce=Te,c.attachEvent=ue,c.canUseCookies=function(e){return Ot(null,e).isEnabled()},c.createClassFromInterface=function(e){return function(){var t=this;e&&ce(e,function(e,n){t[e]=n})}},c.createCookieMgr=nt,c.dateNow=Pe,c.deleteCookie=function(e,n){return Ot(null,e).del(n)},c.detachEvent=se,c.disableCookies=Rt,c.doPerf=wn,c.dumpObj=fn,c.generateW3CId=kt,c.getConsole=rn,c.getCookie=function(e,n){return Ot(null,e).get(n)},c.getCrypto=sn,c.getDocument=Ze,c.getExceptionName=Me,c.getGlobal=d,c.getGlobalInst=Je,c.getHistory=function(){return nn()?history:Je("history")},c.getIEVersion=function(e){var n;return fe(e=((e=(e=void 0===e?null:e)?e:(n=en()||{})?(n.userAgent||"").toLowerCase():"")||"").toLowerCase(),Ve)?parseInt(e.split(Ve)[1]):fe(e,We)&&(e=parseInt(e.split(We)[1]))?e+4:null},c.getJSON=un,c.getLocation=tn,c.getMsCrypto=cn,c.getNavigator=en,c.getPerformance=on,c.getSetValue=ke,c.getWindow=$e,c.hasDocument=Xe,c.hasHistory=nn,c.hasJSON=an,c.hasNavigator=Ye,c.hasOwnProperty=oe,c.hasWindow=Qe,c.initializePlugins=Fn,c.isArray=de,c.isBoolean=ye,c.isDate=ge,c.isError=ve,c.isFunction=ae,c.isIE=ln,c.isNotNullOrUndefined=re,c.isNotTruthy=Ae,c.isNotUndefined=function(e){return!ne(e)},c.isNullOrUndefined=te,c.isNumber=he,c.isObject=ie,c.isReactNative=function(){var e=en();return!(!e||!e.product)&&"ReactNative"===e.product},c.isSafari=function(e){var n;return!!~((e=e&&pe(e)?e:(n=en()||{})?(n.userAgent||"").toLowerCase():"")||"").toLowerCase().indexOf("safari")},c.isString=pe,c.isSymbol=function(e){return"symbol"==typeof e},c.isTruthy=Fe,c.isTypeof=ee,c.isUndefined=ne,c.mwcRandom32=St,c.mwcRandomSeed=Tt,c.newGuid=Pt,c.newId=Lt,c.normalizeJsName=function(e){var n=e,t=/([^\w\d_$])/g;return t.test(e)?e.replace(t,"_"):n},c.objCreate=p,c.objDefineAccessors=Ee,c.objForEachKey=ce,c.objFreeze=function(e){return X?X(e):e},c.objKeys=Ne,c.objSeal=function(e){return Z?Z(e):e},c.optimizeObject=function(e){return e&&t(l?l({},e):e)},c.perfNow=Mt,c.proxyAssign=function(r,o,i){if(r&&o&&r!==o&&ie(r)&&ie(o))for(var e in o)!function(n){var e,t;pe(n)&&(ae(e=o[n])?i&&!i(n,!0,o,r)||(r[n]=(t=n,function(){return o[t].apply(o,arguments)})):i&&!i(n,!1,o,r)||(oe(r,n)&&delete r[n],Ee(r,n,function(){return o[n]},function(e){o[n]=e})||(r[n]=e)))}(e);return r},c.random32=wt,c.randomValue=xt,c.safeGetCookieMgr=function(e,n){var t;return e?t=e.getCookieMgr():n&&(t=n.cookieCfg[Gn]||nt(n)),t||Yn(n,(e||{}).logger)},c.safeGetLogger=pn,c.setCookie=function(e,n,t,r){Ot(null,e).set(n,t,null,r)},c.setEnableEnvMocks=function(e){He=e},c.setValue=Le,c.sortPlugins=_n,c.strContains=fe,c.strEndsWith=le,c.strExtensionConfig=bn,c.strFunction=a,c.strIKey="iKey",c.strObject=u,c.strPrototype=s,c.strStartsWith=function(e,n){var t=!1;if(e&&n){var r=n.length;if(e===n)return!0;if(e.length>=r){for(var o=0;o<r;o++)if(e[o]!==n[o])return!1;t=!0}}return t},c.strTrim=Se,c.strUndefined=n,c.throwError=_e,c.toISOString=me,c.uaDisallowsSameSiteNone=ut,function(e,n,t){var r=Object.defineProperty;if(r)try{return r(e,n,t)}catch(o){}typeof t.value!==undefined&&(e[n]=t.value)}(c,"__esModule",{value:!0})});
!function(e,n){"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||{}))}(this,function(c){"use strict";var r={Unknown:0,NonRetryableStatus:1,InvalidEvent:2,SizeLimitExceeded:3,KillSwitch:4,QueueFull:5},a="function",u="object",n="undefined",s="prototype",i="hasOwnProperty",t=Object,o=t[s],l=t.assign,f=t.create,e=t.defineProperty,g=o[i];function d(){return typeof globalThis!==n&&globalThis?globalThis:typeof self!==n&&self?self:typeof window!==n&&window?window:typeof global!==n&&global?global:null}function v(e){throw new TypeError(e)}function p(e){if(f)return f(e);if(null==e)return{};var n=typeof e;function t(){}return n!==u&&n!==a&&v("Object prototype may only be an Object:"+e),t[s]=e,new t}(d()||{}).Symbol,(d()||{}).Reflect;var h=function(e,n){return(h=t.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var t in n)n[i](t)&&(e[t]=n[t])})(e,n)};function y(e,n){function t(){this.constructor=e}typeof n!==a&&null!==n&&v("Class extends value "+n+" is not a constructor or null"),h(e,n),e[s]=null===n?p(n):(t[s]=n[s],new t)}function C(e,n){for(var t=0,r=n.length,i=e.length;t<r;t++,i++)e[i]=n[t];return e}var m="constructor",x="prototype",w="function",T="_dynInstFuncs",S="_isDynProxy",b="_dynClass",I="_dynInstChk",N=I,E="_dfOpts",P="_unknown_",M="__proto__",L="useBaseInst",k="setInstFuncs",A=Object,F=A.getPrototypeOf,_=0;function O(e,n){return e&&A[x].hasOwnProperty.call(e,n)}function R(e){return e&&(e===A[x]||e===Array[x])}function D(e){return R(e)||e===Function[x]}function j(e){if(e){if(F)return F(e);if(e=e[M]||e[x]||(e[m]?e[m][x]:null))return e}return null}function U(e,n){var t=[],r=A.getOwnPropertyNames;if(r)t=r(e);else for(var i in e)"string"==typeof i&&O(e,i)&&t.push(i);if(t&&0<t.length)for(var o=0;o<t.length;o++)n(t[o])}function z(e,n,t){return n!==m&&typeof e[n]===w&&(t||O(e,n))}function K(e){throw new TypeError("DynamicProto: "+e)}function B(e,n){for(var t=e.length-1;0<=t;t--)if(e[t]===n)return 1}function V(e,n){return O(e,x)?e.name||n||P:((e||{})[m]||{}).name||n||P}function G(e,r,n,t){O(e,x)||K("theClass is an invalid class definition.");var i=e[x];!function(e){if(F)for(var n=[],t=j(r);t&&!D(t)&&!B(n,t);){if(t===e)return 1;n.push(t),t=j(t)}}(i)&&K("["+V(e)+"] is not in class hierarchy of ["+V(r)+"]");var o=null;O(i,b)?o=i[b]:(o="_dynCls$"+V(e,"_")+"$"+_,_++,i[b]=o);var a=G[E],u=!!a[L];u&&t&&t[L]!==undefined&&(u=!!t[L]);var s,c,l,f,g,d,e=(c={},U(s=r,function(e){!c[e]&&z(s,e,!1)&&(c[e]=s[e])}),c);n(r,function(e,n,t,o){function r(e,n,t){var r,i=n[t];return i[S]&&o&&!1!==(r=e[T]||{})[N]&&(i=(r[n[b]]||{})[t]||i),function(){return i.apply(e,arguments)}}var i={};U(t,function(e){i[e]=r(n,t,e)});for(var a=j(e),u=[];a&&!D(a)&&!B(u,a);)U(a,function(e){!i[e]&&z(a,e,!F)&&(i[e]=r(n,a,e))}),u.push(a),a=j(a);return i}(i,r,e,u)),a=!!F&&!!a[k],l=i,o=o,f=r,g=e,t=!1!==(a=a&&t?!!t[k]:a),R(l)||(a=f[T]=f[T]||{},d=a[o]=a[o]||{},!1!==a[N]&&(a[N]=!!t),U(f,function(e){var t,r,i;z(f,e,!1)&&f[e]!==g[e]&&(d[e]=f[e],delete f[e],O(l,e)&&(!l[e]||l[e][S])||(l[e]=(t=l,r=e,(i=function(){var e,n;return(function(e,n,t,r){var i=null;if(e&&O(t,b)){var o=e[T]||{};if((i=(o[t[b]]||{})[n])||K("Missing ["+n+"] "+w),!i[I]&&!1!==o[N]){for(var a=!O(e,n),u=j(e),s=[];a&&u&&!D(u)&&!B(s,u);){var c=u[n];if(c){a=c===r;break}s.push(u),u=j(u)}try{a&&(e[n]=i),i[I]=1}catch(l){o[N]=!1}}}return i}(this,r,t,i)||(typeof(n=(n=t[e=r])===i?j(t)[e]:n)!==w&&K("["+e+"] is not a "+w),n)).apply(this,arguments)})[S]=1,i)))}))}G[E]={setInstFuncs:!0,useBaseInst:!0},c.LoggingSeverity=void 0,(dt=c.LoggingSeverity||(c.LoggingSeverity={}))[dt.CRITICAL=1]="CRITICAL",dt[dt.WARNING=2]="WARNING";var W={BrowserDoesNotSupportLocalStorage:0,BrowserCannotReadLocalStorage:1,BrowserCannotReadSessionStorage:2,BrowserCannotWriteLocalStorage:3,BrowserCannotWriteSessionStorage:4,BrowserFailedRemovalFromLocalStorage:5,BrowserFailedRemovalFromSessionStorage:6,CannotSendEmptyTelemetry:7,ClientPerformanceMathError:8,ErrorParsingAISessionCookie:9,ErrorPVCalc:10,ExceptionWhileLoggingError:11,FailedAddingTelemetryToBuffer:12,FailedMonitorAjaxAbort:13,FailedMonitorAjaxDur:14,FailedMonitorAjaxOpen:15,FailedMonitorAjaxRSC:16,FailedMonitorAjaxSend:17,FailedMonitorAjaxGetCorrelationHeader:18,FailedToAddHandlerForOnBeforeUnload:19,FailedToSendQueuedTelemetry:20,FailedToReportDataLoss:21,FlushFailed:22,MessageLimitPerPVExceeded:23,MissingRequiredFieldSpecification:24,NavigationTimingNotSupported:25,OnError:26,SessionRenewalDateIsZero:27,SenderNotInitialized:28,StartTrackEventFailed:29,StopTrackEventFailed:30,StartTrackFailed:31,StopTrackFailed:32,TelemetrySampledAndNotSent:33,TrackEventFailed:34,TrackExceptionFailed:35,TrackMetricFailed:36,TrackPVFailed:37,TrackPVFailedCalc:38,TrackTraceFailed:39,TransmissionFailed:40,FailedToSetStorageBuffer:41,FailedToRestoreStorageBuffer:42,InvalidBackendResponse:43,FailedToFixDepricatedValues:44,InvalidDurationValue:45,TelemetryEnvelopeInvalid:46,CreateEnvelopeError:47,CannotSerializeObject:48,CannotSerializeObjectNonSerializable:49,CircularReferenceDetected:50,ClearAuthContextFailed:51,ExceptionTruncated:52,IllegalCharsInName:53,ItemNotInArray:54,MaxAjaxPerPVExceeded:55,MessageTruncated:56,NameTooLong:57,SampleRateOutOfRange:58,SetAuthContextFailed:59,SetAuthContextFailedAccountName:60,StringValueTooLong:61,StartCalledMoreThanOnce:62,StopCalledWithoutStart:63,TelemetryInitializerFailed:64,TrackArgumentsNotSpecified:65,UrlTooLong:66,SessionStorageBufferFull:67,CannotAccessCookie:68,IdTooLong:69,InvalidEvent:70,FailedMonitorAjaxSetRequestHeader:71,SendBrowserInfoOnUserInit:72,PluginException:73,NotificationException:74,SnippetScriptLoadFailure:99,InvalidInstrumentationKey:100,CannotParseAiBlobValue:101,InvalidContentBlob:102,TrackPageActionEventFailed:103,FailedAddingCustomDefinedRequestContext:104},q="on",H="attachEvent",J="addEventListener",Q="detachEvent",$="removeEventListener",X=e,Z=t.freeze,Y=t.seal;function ee(e){return o.toString.call(e)}function ne(e,n){return typeof e===n}function te(e){return e===undefined||typeof e===n}function re(e){return null===e||te(e)}function ie(e){return!re(e)}function oe(e,n){return e&&g.call(e,n)}function ae(e){return typeof e===u}function ue(e){return typeof e===a}function se(e,n,t,r){void 0===r&&(r=!1);var i=!1;if(!re(e))try{re(e[J])?re(e[H])||(e[H](q+n,t),i=!0):(e[J](n,t,r),i=!0)}catch(o){}return i}function ce(e,n,t,r){if(void 0===r&&(r=!1),!re(e))try{re(e[$])?re(e[Q])||e[Q](q+n,t):e[$](n,t,r)}catch(i){}}function le(e,n){if(e)for(var t in e)g.call(e,t)&&n.call(e,t,e[t])}function fe(e,n){if(e&&n){var t=n.length,r=e.length;if(e===n)return!0;if(t<=r){for(var i=r-1,o=t-1;0<=o;o--){if(e[i]!=n[o])return!1;i--}return!0}}return!1}function ge(e,n){return!(!e||!n||!~e.indexOf(n))}function de(e){return"[object Date]"===ee(e)}function ve(e){return"[object Array]"===ee(e)}function pe(e){return"[object Error]"===ee(e)}function he(e){return"string"==typeof e}function ye(e){return"number"==typeof e}function Ce(e){return"boolean"==typeof e}function me(e){if(de(e)){var n=function(e){return 1===(e=""+e).length?"0"+e:e};return e.getUTCFullYear()+"-"+n(1+e.getUTCMonth())+"-"+n(e.getUTCDate())+"T"+n(e.getUTCHours())+":"+n(e.getUTCMinutes())+":"+n(e.getUTCSeconds())+"."+(""+(e.getUTCMilliseconds()/1e3).toFixed(3)).slice(2,5)+"Z"}}function xe(e,n,t){for(var r=e.length,i=0;i<r&&!(i in e&&-1===n.call(t||e,e[i],i,e));i++);}function we(e,n,t){for(var r=e.length,i=Math.max(0<=(t=t||0)?t:r-Math.abs(t),0);i<r;i++)if(i in e&&e[i]===n)return i;return-1}function Te(e,n,t){for(var r=e.length,i=t||e,o=Array(r),a=0;a<r;a++)a in e&&(o[a]=n.call(i,e[a],e));return o}function Se(e,n,t){var r,i=e.length,o=0;if(3<=arguments.length)r=t;else{for(;o<i&&!(o in e);)o++;r=e[o++]}for(;o<i;)o in e&&(r=n(r,e[o],o,e)),o++;return r}function be(e){return"string"!=typeof e?e:e.replace(/^\s+|\s+$/g,"")}var Ie=!{toString:null}.propertyIsEnumerable("toString"),Ne=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"];function Ee(e){var n=typeof e;n===a||n===u&&null!==e||v("objKeys called on non-object");var t,r=[];for(t in e)e&&g.call(e,t)&&r.push(t);if(Ie)for(var i=Ne.length,o=0;o<i;o++)e&&g.call(e,Ne[o])&&r.push(Ne[o]);return r}function Pe(e,n,t,r){if(X)try{var i={enumerable:!0,configurable:!0};return t&&(i.get=t),r&&(i.set=r),X(e,n,i),!0}catch(o){}return!1}function Me(){var e=Date;return e.now?e.now():(new e).getTime()}function Le(e){return pe(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 Ae(e,n,t){var r;return e?!(r=e[n])&&re(r)&&(r=te(t)?{}:t,e[n]=r):r=te(t)?{}:t,r}function Fe(e){return!e}function _e(e){return!!e}function Oe(e){throw Error(e)}var Re="window",De="navigator",je="location",Ue="console",ze="performance",Ke="JSON",Be="crypto",Ve="msCrypto",Ge="msie",We="trident/",qe=null,He=null,Je=!1;function Qe(e){var n=d();return n&&n[e]?n[e]:e===Re&&$e()?window:null}function $e(){return!(typeof window!==u||!window)}function Xe(){return $e()?window:Qe(Re)}function Ze(){return!(typeof document!==u||!document)}function Ye(){return Ze()?document:Qe("document")}function en(){return!(typeof navigator!==u||!navigator)}function nn(){return en()?navigator:Qe(De)}function tn(){return!(typeof history!==u||!history)}function rn(e){return e&&Je&&(e=Qe("__mockLocation"))?e:typeof location===u&&location?location:Qe(je)}function on(){return typeof console!==n?console:Qe(Ue)}function an(){return Qe(ze)}function un(){return!!(typeof JSON===u&&JSON||null!==Qe(Ke))}function sn(){return un()?JSON||Qe(Ke):null}function cn(){return Qe(Be)}function ln(){return Qe(Ve)}function fn(){var e=nn();return!e||e.userAgent===He&&null!==qe||(e=((He=e.userAgent)||"").toLowerCase(),qe=ge(e,Ge)||ge(e,We)),qe}function gn(e){var n=Object[s].toString.call(e),t="";return"[object Error]"===n?t="{ stack: '"+e.stack+"', message: '"+e.message+"', name: '"+e.name+"'":un()&&(t=sn().stringify(e)),n+t}function dn(e){return e?'"'+e.replace(/\"/g,"")+'"':""}var vn=(pn.dataType="MessageData",pn);function pn(e,n,t,r){void 0===t&&(t=!1),this.messageId=e,this.message=(t?"AI: ":"AI (Internal): ")+e,e="",un()&&(e=sn().stringify(r)),e=(n?" message:"+dn(n):"")+(r?" props:"+dn(e):""),this.message+=e}function hn(e,n){return(e||{}).logger||new yn(n)}var yn=function Jt(t){this.identifier="DiagnosticLogger",this.queue=[];var i=0,a={};G(Jt,this,function(o){function e(e,n){return re(e=t[e])?n:e}re(t)&&(t={}),o.consoleLoggingLevel=function(){return e("loggingLevelConsole",0)},o.telemetryLoggingLevel=function(){return e("loggingLevelTelemetry",1)},o.maxInternalMessageLimit=function(){return e("maxMessageLimit",25)},o.enableDebugExceptions=function(){return e("enableDebugExceptions",!1)},o.throwInternal=function(e,n,t,r,i){if(t=new vn(n,t,i=void 0!==i&&i,r),o.enableDebugExceptions())throw t;te(t.message)||(r=o.consoleLoggingLevel(),i?(i=+t.messageId,!a[i]&&r>=c.LoggingSeverity.WARNING&&(o.warnToConsole(t.message),a[i]=!0)):r>=c.LoggingSeverity.WARNING&&o.warnToConsole(t.message),o.logInternalMessage(e,t))},o.warnToConsole=function(e){var n,t=on();t&&(n="log",ue(t[n=t.warn?"warn":n])&&t[n](e))},o.resetInternalMessageCount=function(){i=0,a={}},o.logInternalMessage=function(e,n){var t,r;i>=o.maxInternalMessageLimit()||(t=!0,r="AITR_"+n.messageId,a[r]?t=!1:a[r]=!0,t&&(e<=o.telemetryLoggingLevel()&&(o.queue.push(n),i++),i===o.maxInternalMessageLimit()&&(n=new vn(W.MessageLimitPerPVExceeded,e="Internal events throttle limit per PageView reached for this app.",!1),o.queue.push(n),o.warnToConsole(e))))}})},Cn=null,mn=(xn.ParentContextKey="parent",xn.ChildrenContextKey="childEvts",xn);function xn(e,i,n){var t,o=this,a=!1;o.start=Me(),o.name=e,o.isAsync=n,o.isChildEvt=function(){return!1},ue(i)&&(a=Pe(o,"payload",function(){return!t&&ue(i)&&(t=i(),i=null),t})),o.getCtx=function(e){return e?(e===xn.ParentContextKey||e===xn.ChildrenContextKey?o:o.ctx||{})[e]:null},o.setCtx=function(e,n){e&&(e===xn.ParentContextKey?(o[e]||(o.isChildEvt=function(){return!0}),o[e]=n):e===xn.ChildrenContextKey?o[e]=n:(o.ctx=o.ctx||{})[e]=n)},o.complete=function(){var e=0,n=o.getCtx(xn.ChildrenContextKey);if(ve(n))for(var t=0;t<n.length;t++){var r=n[t];r&&(e+=r.time)}o.time=Me()-o.start,o.exTime=o.time-e,o.complete=function(){},!a&&ue(i)&&(o.payload=i())}}var wn=function Qt(n){this.ctx={},G(Qt,this,function(t){t.create=function(e,n,t){return new mn(e,n,t)},t.fire=function(e){e&&(e.complete(),n&&ue(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]}})},Tn="CoreUtils.doPerf";function Sn(e,n,t,r,i){if(e){var o=e;if(o=ue(o.getPerfMgr)?o.getPerfMgr():o){var a,u=void 0,e=o.getCtx(Tn);try{if(u=o.create(n(),r,i))return e&&u.setCtx&&(u.setCtx(mn.ParentContextKey,e),e.getCtx&&e.setCtx&&((a=e.getCtx(mn.ChildrenContextKey))||(a=[],e.setCtx(mn.ChildrenContextKey,a)),a.push(u))),o.setCtx(Tn,u),t(u)}catch(s){u&&u.setCtx&&u.setCtx("exception",s)}finally{u&&o.fire(u),o.setCtx(Tn,e)}}}return t()}var bn=function(i,n){var o=this,a=null,u=ue(i.processTelemetry),s=ue(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";Sn(r?r.core():null,function(){return e+":processTelemetry"},function(){if(i&&u){o._hasRun=!0;try{r.setNext(a),s&&i.setNextPlugin(a),a&&(a._hasRun=!1),i.processTelemetry(t,r)}catch(n){var e=a&&a._hasRun;a&&e||r.diagLog().throwInternal(c.LoggingSeverity.CRITICAL,W.PluginException,"Plugin ["+i.identifier+"] failed during processTelemetry - "+n),a&&!e&&a.processTelemetry(t,r)}}else a&&(o._hasRun=!0,a.processTelemetry(t,r))},function(){return{item:t}},!t.sync)}};function In(e,n){var t=[];if(e&&0<e.length)for(var r=null,i=0;i<e.length;i++){var o=e[i];o&&ue(o.processTelemetry)&&(o=new bn(o,n),t.push(o),r&&r.setNext(o),r=o)}return 0<t.length?t[0]:null}var Nn=function $t(e,i,t,n){var r,o,a,u,s=this,c=null;null!==n&&(e&&ue(e.getPlugin)?c=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),In(r,n)}(e,s,n||e.getPlugin()):n?(r=s,a=e,u=!1,(o=n)&&e&&(a=[],xe(e,function(e){!u&&e!==o||(u=!0,a.push(e))})),o&&!u&&(a=a||[]).push(o),c=In(a,r)):te(n)&&(c=In(e,s))),s.core=function(){return t},s.diagLog=function(){return hn(t,i)},s.getCfg=function(){return i},s.getExtCfg=function(e,n){var t,r;return void 0===n&&(n={}),!i||(r=i.extensionConfig)&&e&&(t=r[e]),t||n},s.getConfig=function(e,n,t){var r;return void 0===t&&(t=!1),(e=s.getExtCfg(e,null))&&!re(e[n])?r=e[n]:i&&!re(i[n])&&(r=i[n]),re(r)?t:r},s.hasNext=function(){return null!=c},s.getNext=function(){return c},s.setNext=function(e){c=e},s.processNext=function(e){var n=c;n&&(c=n.getNext(),n.processTelemetry(e,s))},s.createNew=function(e,n){return new $t((e=void 0===e?null:e)||c,i,t,n)}},En="extensionConfig",Pn="getPlugin",Mn=(Ln.prototype.initialize=function(e,n,t,r){this._baseTelInit(e,n,t,r)},Ln);function Ln(){var o=this,a=!1,u=null,s=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){s=e},o.processNext=function(e,n){n?n.processNext(e):s&&ue(s.processTelemetry)&&s.processTelemetry(e,null)},o._getTelCtx=function(e){var n=e=void 0===e?null:e;return n||(e=u||new Nn(null,{},o.core),n=s&&s[Pn]?e.createNew(null,s[Pn]):e.createNew(null,s)),n},o._baseTelInit=function(e,n,t,r){e&&ke(e,En,[],null,re),!r&&n&&(r=n.getProcessTelContext().getNext());var i=s;s&&s[Pn]&&(i=s[Pn]()),o.core=n,u=new Nn(r,e,n,i),a=!0}}var kn="processTelemetry",An="priority",Fn="setNextPlugin",_n="isInitialized";function On(n,t){for(var e=[],r=null,i=n.getNext();i;){var o=i.getPlugin();o&&(r&&ue(r[Fn])&&ue(o[kn])&&r[Fn](o),ue(o[_n])&&o[_n]()||e.push(o),r=o,i=i.getNext())}xe(e,function(e){e.initialize(n.getCfg(),n.core(),t,n.getNext())})}function Rn(e){return e.sort(function(e,n){var t=0,r=ue(n[kn]);return ue(e[kn])?t=r?e[An]-n[An]:1:r&&(t=-1),t})}var Dn,jn=(y(Un,Dn=Mn),Un._staticInit=(Pe(Mt=Un.prototype,"ChannelControls",Mt.getChannelControls),void Pe(Mt,"channelQueue",Mt.getChannelControls)),Un);function Un(){var s,r=Dn.call(this)||this;function c(e){e&&0<e.length&&(xe(e=e.sort(function(e,n){return e.priority-n.priority}),function(e){e.priority<500&&Oe("Channel has invalid priority"+e.identifier)}),s.push(e))}return r.identifier="ChannelControllerPlugin",r.priority=500,G(Un,r,function(a,u){a.setNextPlugin=function(e){},a.processTelemetry=function(n,t){s&&xe(s,function(e){0<e.length&&r._getTelCtx(t).createNew(e).processNext(n)})},a.getChannelControls=function(){return s},a.initialize=function(n,t,r){var e,i,o;a.isInitialized()||(u.initialize(n,t,r),e=(n||{}).channels,i=r,s=[],e&&xe(e,c),i&&(o=[],xe(i,function(e){500<e.priority&&o.push(e)}),c(o)),xe(s,function(e){return On(new Nn(e,n,t),r)}))}}),r}var zn="toGMTString",Kn="toUTCString",Bn="cookie",Vn="expires",Gn="enabled",Wn="isCookieUseDisabled",qn="disableCookiesUsage",Hn="_ckMgr",Jn="",Qn=null,$n=null,Xn=null,Zn=Ye(),Yn={},et={};function nt(e,n){var t=rt[Hn]||et[Hn];return t||(t=rt[Hn]=rt(e,n),et[Hn]=t),t}function tt(e){return!e||e.isEnabled()}function rt(e,i){var n,t,c=(ke(t=(n=e||et).cookieCfg=n.cookieCfg||{},"domain",n.cookieDomain,ie,re),ke(t,"path",n.cookiePath||"/",null,re),re(t[Gn])&&(e=void 0,te(n[Wn])||(e=!n[Wn]),te(n[qn])||(e=!n[qn]),t[Gn]=e),t),l=c.path||"/",f=c.domain,r=!1!==c[Gn],g={isEnabled:function(){var e=r&&it(i),n=et[Hn];return e&&n&&g!==n?tt(n):e},setEnabled:function(e){r=!1!==e},set:function(e,n,t,r,i){var o,a,u,s=!1;return tt(g)&&(o={},-1!=(u=(a=be(n||Jn)).indexOf(";"))&&(a=be(n.substring(0,u)),o=ot(n.substring(1+u))),ke(o,"domain",r||f,_e,te),re(t)||(u=fn(),!te(o[Vn])||0<(n=Me()+1e3*t)&&((r=new Date).setTime(n),ke(o,Vn,at(r,u?zn:Kn)||at(r,u?zn:Kn)||Jn,_e)),u||ke(o,"max-age",Jn+t,null,te)),(t=rn())&&"https:"===t.protocol&&(ke(o,"secure",null,null,te),($n=null===$n?!ct((nn()||{}).userAgent):$n)&&ke(o,"SameSite","None",null,te)),ke(o,"path",i||l,null,te),(c.setCookie||st)(e,ut(a,o)),s=!0),s},get:function(e){var n=Jn;return tt(g)?(c.getCookie||function(e){var n,t=Jn;return Zn&&(n=Zn[Bn]||Jn,Xn!==n&&(Yn=ot(n),Xn=n),t=be(Yn[e]||Jn)),t})(e):n},del:function(e,n){return!!tt(g)&&g.purge(e,n)},purge:function(e,n){var t,r=!1;return it(i)&&((t={}).path=n||"/",t[Vn]="Thu, 01 Jan 1970 00:00:01 GMT",fn()||(t["max-age"]="0"),(c.delCookie||st)(e,ut(Jn,t)),r=!0),r}};return g[Hn]=g}function it(e){if(null===Qn){Qn=!1;try{Qn=(Zn||{})[Bn]!==undefined}catch(n){e&&e.throwInternal(c.LoggingSeverity.WARNING,W.CannotAccessCookie,"Cannot access document.cookie - "+Le(n),{exception:gn(n)})}}return Qn}function ot(e){var t={};return e&&e.length&&xe(be(e).split(";"),function(e){var n;(e=be(e||Jn))&&(-1==(n=e.indexOf("="))?t[e]=null:t[be(e.substring(0,n))]=be(e.substring(1+n)))}),t}function at(e,n){return ue(e[n])?e[n]():null}function ut(e,n){var t=e||Jn;return le(n,function(e,n){t+="; "+e+(re(n)?Jn:"="+n)}),t}function st(e,n){Zn&&(Zn[Bn]=e+"="+n)}function ct(e){return!(!he(e)||!ge(e,"CPU iPhone OS 12")&&!ge(e,"iPad; CPU OS 12")&&!(ge(e,"Macintosh; Intel Mac OS X 10_14")&&ge(e,"Version/")&&ge(e,"Safari"))&&(!ge(e,"Macintosh; Intel Mac OS X 10_14")||!fe(e,"AppleWebKit/605.1.15 (KHTML, like Gecko)"))&&!ge(e,"Chrome/5")&&!ge(e,"Chrome/6")&&(!ge(e,"UnrealEngine")||ge(e,"Chrome"))&&!ge(e,"UCBrowser/12")&&!ge(e,"UCBrowser/11"))}var lt="_notificationManager";function ft(e,n){return new wn(n)}var gt,dt=function Xt(){var n,u,s,t,r,c=!1;G(Xt,this,function(a){a._extensions=[],u=new jn,a.logger=p({throwInternal:function(e,n,t,r,i){},warnToConsole:function(e){},resetInternalMessageCount:function(){}}),n=[],a.isInitialized=function(){return c},a.initialize=function(e,n,r,t){a.isInitialized()&&Oe("Core should not be initialized more than once"),e&&!re(e.instrumentationKey)||Oe("Please provide instrumentation key"),s=t,a[lt]=t,a.config=e||{},a.config.enablePerfMgr&&ke(a.config,"createPerfMgr",ft),e.extensions=re(e.extensions)?[]:e.extensions,Ae(e,En).NotificationManager=t,r&&(a.logger=r),(t=[]).push.apply(t,C(C([],n),e.extensions));var t=Rn(t),i=[],o={};xe(t,function(e){(re(e)||re(e.initialize))&&Oe("Extensions must provide callback to initialize");var n=e.priority,t=e.identifier;e&&n&&(re(o[n])?o[n]=t:r.warnToConsole("Two extensions have same priority #"+n+" - "+o[n]+", "+t)),(!n||n<u.priority)&&i.push(e)}),t.push(u),i.push(u),t=Rn(t),a._extensions=t,On(new Nn([u],e,a),t),On(new Nn(i,e,a),t),a._extensions=i,0===a.getTransmissionControls().length&&Oe("No channels available"),c=!0,a.releaseQueue()},a.getTransmissionControls=function(){return u.getChannelControls()},a.track=function(e){ke(e,"iKey",a.config.instrumentationKey,null,Fe),ke(e,"time",me(new Date),null,Fe),ke(e,"ver","4.0",null,re),a.isInitialized()?a.getProcessTelContext().processNext(e):n.push(e)},a.getProcessTelContext=function(){var e=a._extensions,n=e;return e&&0!==e.length||(n=[u]),new Nn(n,a.config,a)},a.getNotifyMgr=function(){return s||(s=p({addNotificationListener:function(e){},removeNotificationListener:function(e){},eventsSent:function(e){},eventsDiscarded:function(e,n){},eventsSendRequest:function(e,n){}}),a[lt]=s),s},a.getCookieMgr=function(){return r=r||rt(a.config,a.logger)},a.setCookieMgr=function(e){r=e},a.getPerfMgr=function(){return t||a.config&&a.config.enablePerfMgr&&ue(a.config.createPerfMgr)&&(t=a.config.createPerfMgr(a,a.getNotifyMgr())),t||Cn},a.setPerfMgr=function(e){t=e},a.eventCnt=function(){return n.length},a.releaseQueue=function(){0<n.length&&(xe(n,function(e){a.getProcessTelContext().processNext(e)}),n=[])}})},vt=function Zt(e){this.listeners=[];var n=!!(e||{}).perfEvtsSendAll;G(Zt,this,function(i){i.addNotificationListener=function(e){i.listeners.push(e)},i.removeNotificationListener=function(e){for(var n=we(i.listeners,e);-1<n;)i.listeners.splice(n,1),n=we(i.listeners,e)},i.eventsSent=function(n){xe(i.listeners,function(e){e&&e.eventsSent&&setTimeout(function(){return e.eventsSent(n)},0)})},i.eventsDiscarded=function(n,t){xe(i.listeners,function(e){e&&e.eventsDiscarded&&setTimeout(function(){return e.eventsDiscarded(n,t)},0)})},i.eventsSendRequest=function(t,r){xe(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()||xe(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){}}))}})},e=(y(pt,gt=dt),pt);function pt(){var e=gt.call(this)||this;return G(pt,e,function(t,i){function n(e){var n=t.getNotifyMgr();n&&n.eventsDiscarded([e],r.InvalidEvent)}t.initialize=function(e,n,t,r){i.initialize(e,n,t||new yn(e),r||new vt(e))},t.track=function(e){Sn(t.getPerfMgr(),function(){return"AppInsightsCore:track"},function(){null===e&&(n(e),Oe("Invalid telemetry item")),function(){if(re(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 setInterval(function(){var e=t.logger?t.logger.queue:[];xe(e,function(e){e={name:n||"InternalMessageId: "+e.messageId,iKey:t.config.instrumentationKey,time:me(new Date),baseType:vn.dataType,baseData:{message:e.message}},t.track(e)}),e.length=0},e=e&&0<e?e:1e4)}}),e}var ht=4294967296,yt=4294967295,Ct=!1,mt=123456789,xt=987654321;function wt(e){e<0&&(e>>>=0),mt=123456789+e&yt,xt=987654321-e&yt,Ct=!0}function Tt(){try{var e=2147483647&Me();wt((Math.random()*ht^e)+e)}catch(n){}}function St(e){return 0<e?Math.floor(bt()/yt*(e+1))>>>0:0}function bt(e){var n=(n=cn()||ln())&&n.getRandomValues?n.getRandomValues(new Uint32Array(1))[0]&yt:fn()?(Ct||Tt(),Nt()&yt):Math.floor(ht*Math.random()|0);return e||(n>>>=0),n}function It(e){e?wt(e):Tt()}function Nt(e){var n=((xt=36969*(65535&xt)+(xt>>16)&yt)<<16)+(65535&(mt=18e3*(65535&mt)+(mt>>16)&yt))>>>0&yt|0;return e||(n>>>=0),n}var Et,Pt=null,Mt=n;function Lt(e,n){var t=!1,r=Xe();return r&&(t=se(r,e,n),t=se(r.body,e,n)||t),(r=Ye())&&Dt.Attach(r,e,n)||t}function kt(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(Rt,function(e){var n=0|St(15);return("x"===e?n:3&n|8).toString(16)})}function At(){var e=an();return e&&e.now?e.now():Me()}function Ft(e){void 0===e&&(e=22);for(var n=bt()>>>0,t=0,r="";r.length<e;)r+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"[0|63&n]||"",n>>>=6,5==++t&&(n=(bt()<<2&4294967295|3&n)>>>0,t=0);return r}function _t(){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=bt())]+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&bt())|0];return t.substr(0,8)+t.substr(9,4)+"4"+t.substr(13,3)+i+t.substr(16,3)+t.substr(19,12)}var Ot={_canUseCookies:undefined,isTypeof:ne,isUndefined:te,isNullOrUndefined:re,hasOwnProperty:oe,isFunction:ue,isObject:ae,isDate:de,isArray:ve,isError:pe,isString:he,isNumber:ye,isBoolean:Ce,toISOString:me,arrForEach:xe,arrIndexOf:we,arrMap:Te,arrReduce:Se,strTrim:be,objCreate:p,objKeys:Ee,objDefineAccessors:Pe,addEventHandler:Lt,dateNow:Me,isIE:fn,disableCookies:Ut,newGuid:kt,perfNow:At,newId:Ft,randomValue:St,random32:bt,mwcRandomSeed:It,mwcRandom32:Nt,generateW3CId:_t},Rt=/[xy]/g,Dt={Attach:se,AttachEvent:se,Detach:ce,DetachEvent:ce};function jt(e,n){return e=nt(e,n),n=Ot._canUseCookies,null===Pt&&(Pt=[],Et=n,Pe(Ot,"_canUseCookies",function(){return Et},function(n){Et=n,xe(Pt,function(e){e.setEnabled(n)})})),-1===we(Pt,e)&&Pt.push(e),Ce(n)&&e.setEnabled(n),Ce(Et)&&e.setEnabled(Et),e}function Ut(){jt().setEnabled(!1)}var zt="_aiHooks",Kt=["req","rsp","hkErr","fnErr"];function Bt(e,n){if(e)for(var t=0;t<e.length&&!n(e[t],t);t++);}function Vt(e,a,u,s,c){0<=c&&c<=2&&Bt(e,function(e,n){var t=e.cbks;if(e=t[Kt[c]]){a.ctx=function(){return s[n]=s[n]||{}};try{e.apply(a.inst,u)}catch(i){e=a.err;try{var r=t[Kt[2]];r&&(a.err=i,r.apply(a.inst,u))}catch(o){}finally{a.err=e}}}})}function Gt(s){return function(){var t=arguments,e=s.h,r={name:s.n,inst:this,ctx:null,set:function(e,n){(t=o([],t))[e]=n,i=o([r],t)}},n=[],i=o([r],t);function o(n,e){return Bt(e,function(e){n.push(e)}),n}Vt(e,r,i,n,0);var a=s.f;try{r.rslt=a.apply(this,t)}catch(u){throw r.err=u,Vt(e,r,i,n,3),u}return Vt(e,r,i,n,1),r.rslt}}var Wt=Object.getPrototypeOf;function qt(e,n,t,r){if(void 0===r&&(r=!0),e&&n&&t&&(e=function o(e,n,t){var r=null;return e&&(oe(e,n)?r=e:t&&(r=o(function(e){if(e){if(Wt)return Wt(e);if(e=e.__proto__||e[s]||e.constructor)return e}return null}(e),n,!1))),r}(e,n,r))&&typeof(r=e[n])===a){var i=r[zt];return i||((r=Gt(i={i:0,n:n,f:r,h:[]}))[zt]=i,e[n]=r),t={id:i.i,cbks:t,rm:function(){var t=this.id;Bt(i.h,function(e,n){return e.id===t&&(i.h.splice(n,1),1)})}},i.i++,i.h.push(t),t}return null}function Ht(n,e,t,r){void 0===r&&(r=!0);var i=null;return Bt(e,function(e){(e=qt(n,e,t,r))&&(i=i||[]).push(e)}),i}c.AppInsightsCore=e,c.BaseCore=dt,c.BaseTelemetryPlugin=Mn,c.CoreUtils=Ot,c.DiagnosticLogger=yn,c.EventHelper=Dt,c.EventsDiscardedReason=r,c.InstrumentFunc=qt,c.InstrumentFuncs=Ht,c.InstrumentProto=function(e,n,t){return e?qt(e[s],n,t,!1):null},c.InstrumentProtos=function(e,n,t){return e?Ht(e[s],n,t,!1):null},c.MinChannelPriorty=100,c.NotificationManager=vt,c.PerfEvent=mn,c.PerfManager=wn,c.ProcessTelemetryContext=Nn,c.Undefined=Mt,c._InternalLogMessage=vn,c._InternalMessageId=W,c._legacyCookieMgr=jt,c.addEventHandler=Lt,c.areCookiesSupported=it,c.arrForEach=xe,c.arrIndexOf=we,c.arrMap=Te,c.arrReduce=Se,c.attachEvent=se,c.canUseCookies=function(e){return jt(null,e).isEnabled()},c.createClassFromInterface=function(e){return function(){var t=this;e&&le(e,function(e,n){t[e]=n})}},c.createCookieMgr=rt,c.dateNow=Me,c.deleteCookie=function(e,n){return jt(null,e).del(n)},c.detachEvent=ce,c.disableCookies=Ut,c.doPerf=Sn,c.dumpObj=gn,c.generateW3CId=_t,c.getConsole=on,c.getCookie=function(e,n){return jt(null,e).get(n)},c.getCrypto=cn,c.getDocument=Ye,c.getExceptionName=Le,c.getGblPerfMgr=function(){return Cn},c.getGlobal=d,c.getGlobalInst=Qe,c.getHistory=function(){return tn()?history:Qe("history")},c.getIEVersion=function(e){var n;return ge(e=((e=(e=void 0===e?null:e)?e:(n=nn()||{})?(n.userAgent||"").toLowerCase():"")||"").toLowerCase(),Ge)?parseInt(e.split(Ge)[1]):ge(e,We)&&(e=parseInt(e.split(We)[1]))?e+4:null},c.getJSON=sn,c.getLocation=rn,c.getMsCrypto=ln,c.getNavigator=nn,c.getPerformance=an,c.getSetValue=Ae,c.getWindow=Xe,c.hasDocument=Ze,c.hasHistory=tn,c.hasJSON=un,c.hasNavigator=en,c.hasOwnProperty=oe,c.hasWindow=$e,c.initializePlugins=On,c.isArray=ve,c.isBoolean=Ce,c.isDate=de,c.isError=pe,c.isFunction=ue,c.isIE=fn,c.isNotNullOrUndefined=ie,c.isNotTruthy=Fe,c.isNotUndefined=function(e){return!te(e)},c.isNullOrUndefined=re,c.isNumber=ye,c.isObject=ae,c.isReactNative=function(){var e=nn();return!(!e||!e.product)&&"ReactNative"===e.product},c.isSafari=function(e){var n;return!!~((e=e&&he(e)?e:(n=nn()||{})?(n.userAgent||"").toLowerCase():"")||"").toLowerCase().indexOf("safari")},c.isString=he,c.isSymbol=function(e){return"symbol"==typeof e},c.isTruthy=_e,c.isTypeof=ne,c.isUndefined=te,c.mwcRandom32=Nt,c.mwcRandomSeed=It,c.newGuid=kt,c.newId=Ft,c.normalizeJsName=function(e){var n=e,t=/([^\w\d_$])/g;return t.test(e)?e.replace(t,"_"):n},c.objCreate=p,c.objDefineAccessors=Pe,c.objForEachKey=le,c.objFreeze=function(e){return Z?Z(e):e},c.objKeys=Ee,c.objSeal=function(e){return Y?Y(e):e},c.optimizeObject=function(e){return e&&t(l?l({},e):e)},c.perfNow=At,c.proxyAssign=function(r,i,o){if(r&&i&&r!==i&&ae(r)&&ae(i))for(var e in i)!function(n){var e,t;he(n)&&(ue(e=i[n])?o&&!o(n,!0,i,r)||(r[n]=(t=n,function(){return i[t].apply(i,arguments)})):o&&!o(n,!1,i,r)||(oe(r,n)&&delete r[n],Pe(r,n,function(){return i[n]},function(e){i[n]=e})||(r[n]=e)))}(e);return r},c.random32=bt,c.randomValue=St,c.safeGetCookieMgr=function(e,n){var t;return e?t=e.getCookieMgr():n&&(t=n.cookieCfg[Hn]||rt(n)),t||nt(n,(e||{}).logger)},c.safeGetLogger=hn,c.setCookie=function(e,n,t,r){jt(null,e).set(n,t,null,r)},c.setEnableEnvMocks=function(e){Je=e},c.setGblPerfMgr=function(e){Cn=e},c.setValue=ke,c.sortPlugins=Rn,c.strContains=ge,c.strEndsWith=fe,c.strExtensionConfig=En,c.strFunction=a,c.strIKey="iKey",c.strObject=u,c.strPrototype=s,c.strStartsWith=function(e,n){var t=!1;if(e&&n){var r=n.length;if(e===n)return!0;if(e.length>=r){for(var i=0;i<r;i++)if(e[i]!==n[i])return!1;t=!0}}return t},c.strTrim=be,c.strUndefined=n,c.throwError=Oe,c.toISOString=me,c.uaDisallowsSameSiteNone=ct,function(e,n,t){var r=Object.defineProperty;if(r)try{return r(e,n,t)}catch(i){}typeof t.value!==undefined&&(e[n]=t.value)}(c,"__esModule",{value:!0})});
//# sourceMappingURL=applicationinsights-core-js.min.js.map
/*
* Application Insights JavaScript SDK - Core, 2.6.5
* Application Insights JavaScript SDK - Core, 2.7.0-beta.1
* Copyright (c) Microsoft and contributors. All rights reserved.

@@ -16,3 +16,3 @@ */

export { NotificationManager } from "./JavaScriptSDK/NotificationManager";
export { PerfEvent, PerfManager, doPerf } from './JavaScriptSDK/PerfManager';
export { PerfEvent, PerfManager, doPerf, getGblPerfMgr, setGblPerfMgr } from './JavaScriptSDK/PerfManager';
export { safeGetLogger, DiagnosticLogger, _InternalLogMessage } from './JavaScriptSDK/DiagnosticLogger';

@@ -19,0 +19,0 @@ export { ProcessTelemetryContext } from './JavaScriptSDK/ProcessTelemetryContext';

/*
* Application Insights JavaScript SDK - Core, 2.6.5
* Application Insights JavaScript SDK - Core, 2.7.0-beta.1
* Copyright (c) Microsoft and contributors. All rights reserved.

@@ -4,0 +4,0 @@ */

/*
* Application Insights JavaScript SDK - Core, 2.6.5
* Application Insights JavaScript SDK - Core, 2.7.0-beta.1
* Copyright (c) Microsoft and contributors. All rights reserved.

@@ -103,4 +103,5 @@ */

InvalidContentBlob: 102,
TrackPageActionEventFailed: 103
TrackPageActionEventFailed: 103,
FailedAddingCustomDefinedRequestContext: 104
};
//# sourceMappingURL=LoggingEnums.js.map
/*
* Application Insights JavaScript SDK - Core, 2.6.5
* Application Insights JavaScript SDK - Core, 2.7.0-beta.1
* Copyright (c) Microsoft and contributors. All rights reserved.
*/
;
export {};
//# sourceMappingURL=SendRequestReason.js.map
/*
* Application Insights JavaScript SDK - Core, 2.6.5
* Application Insights JavaScript SDK - Core, 2.7.0-beta.1
* Copyright (c) Microsoft and contributors. All rights reserved.
*/
"use strict";
export {};
//# sourceMappingURL=IAppInsightsCore.js.map
/*
* Application Insights JavaScript SDK - Core, 2.6.5
* Application Insights JavaScript SDK - Core, 2.7.0-beta.1
* Copyright (c) Microsoft and contributors. All rights reserved.

@@ -4,0 +4,0 @@ */

/*
* Application Insights JavaScript SDK - Core, 2.6.5
* Application Insights JavaScript SDK - Core, 2.7.0-beta.1
* Copyright (c) Microsoft and contributors. All rights reserved.
*/
"use strict";
export {};
//# sourceMappingURL=IConfiguration.js.map
/*
* Application Insights JavaScript SDK - Core, 2.6.5
* Application Insights JavaScript SDK - Core, 2.7.0-beta.1
* Copyright (c) Microsoft and contributors. All rights reserved.

@@ -7,2 +7,3 @@ */

export {};
//# sourceMappingURL=ICookieMgr.js.map
/*
* Application Insights JavaScript SDK - Core, 2.6.5
* Application Insights JavaScript SDK - Core, 2.7.0-beta.1
* Copyright (c) Microsoft and contributors. All rights reserved.
*/
"use strict";
export {};
//# sourceMappingURL=IDiagnosticLogger.js.map
/*
* Application Insights JavaScript SDK - Core, 2.6.5
* Application Insights JavaScript SDK - Core, 2.7.0-beta.1
* Copyright (c) Microsoft and contributors. All rights reserved.

@@ -7,2 +7,3 @@ */

export {};
//# sourceMappingURL=IInstrumentHooks.js.map
/*
* Application Insights JavaScript SDK - Core, 2.6.5
* Application Insights JavaScript SDK - Core, 2.7.0-beta.1
* Copyright (c) Microsoft and contributors. All rights reserved.

@@ -8,2 +8,3 @@ */

"use strict";
export {};
//# sourceMappingURL=INotificationListener.js.map
/*
* Application Insights JavaScript SDK - Core, 2.6.5
* Application Insights JavaScript SDK - Core, 2.7.0-beta.1
* Copyright (c) Microsoft and contributors. All rights reserved.
*/
export {};
//# sourceMappingURL=INotificationManager.js.map
/*
* Application Insights JavaScript SDK - Core, 2.6.5
* Application Insights JavaScript SDK - Core, 2.7.0-beta.1
* Copyright (c) Microsoft and contributors. All rights reserved.
*/
export {};
//# sourceMappingURL=IPerfEvent.js.map
/*
* Application Insights JavaScript SDK - Core, 2.6.5
* Application Insights JavaScript SDK - Core, 2.7.0-beta.1
* Copyright (c) Microsoft and contributors. All rights reserved.
*/
export {};
//# sourceMappingURL=IPerfManager.js.map
/*
* Application Insights JavaScript SDK - Core, 2.6.5
* Application Insights JavaScript SDK - Core, 2.7.0-beta.1
* Copyright (c) Microsoft and contributors. All rights reserved.

@@ -8,2 +8,3 @@ */

"use strict";
export {};
//# sourceMappingURL=IProcessTelemetryContext.js.map
/*
* Application Insights JavaScript SDK - Core, 2.6.5
* Application Insights JavaScript SDK - Core, 2.7.0-beta.1
* Copyright (c) Microsoft and contributors. All rights reserved.

@@ -8,2 +8,3 @@ */

"use strict";
export {};
//# sourceMappingURL=ITelemetryItem.js.map
/*
* Application Insights JavaScript SDK - Core, 2.6.5
* Application Insights JavaScript SDK - Core, 2.7.0-beta.1
* Copyright (c) Microsoft and contributors. All rights reserved.

@@ -8,2 +8,3 @@ */

"use strict";
export {};
//# sourceMappingURL=ITelemetryPlugin.js.map
/*
* Application Insights JavaScript SDK - Core, 2.6.5
* Application Insights JavaScript SDK - Core, 2.7.0-beta.1
* Copyright (c) Microsoft and contributors. All rights reserved.

@@ -8,2 +8,3 @@ */

"use strict";
export {};
//# sourceMappingURL=ITelemetryPluginChain.js.map
/*
* Application Insights JavaScript SDK - Core, 2.6.5
* Application Insights JavaScript SDK - Core, 2.7.0-beta.1
* Copyright (c) Microsoft and contributors. All rights reserved.
*/
import { __extendsFn } from "@microsoft/applicationinsights-shims";
import { __extendsFn as __extends } from "@microsoft/applicationinsights-shims";
import { BaseCore } from './BaseCore';

@@ -15,3 +15,3 @@ import { EventsDiscardedReason } from "../JavaScriptSDK.Enums/EventsDiscardedReason";

var AppInsightsCore = /** @class */ (function (_super) {
__extendsFn(AppInsightsCore, _super);
__extends(AppInsightsCore, _super);
function AppInsightsCore() {

@@ -18,0 +18,0 @@ var _this = _super.call(this) || this;

/*
* Application Insights JavaScript SDK - Core, 2.6.5
* Application Insights JavaScript SDK - Core, 2.7.0-beta.1
* Copyright (c) Microsoft and contributors. All rights reserved.

@@ -8,2 +8,3 @@ */

"use strict";
import { __spreadArrayFn as __spreadArray } from "@microsoft/applicationinsights-shims";
import { objCreateFn } from "@microsoft/applicationinsights-shims";

@@ -14,8 +15,16 @@ import dynamicProto from '@microsoft/dynamicproto-js';

import { initializePlugins, sortPlugins } from './TelemetryHelpers';
import { PerfManager } from "./PerfManager";
import { getGblPerfMgr, PerfManager } from "./PerfManager";
import { createCookieMgr } from "./CookieMgr";
import { arrForEach, isNullOrUndefined, toISOString, getSetValue, setValue, throwError, isNotTruthy } from "./HelperFuncs";
import { arrForEach, isNullOrUndefined, toISOString, getSetValue, setValue, throwError, isNotTruthy, isFunction } from "./HelperFuncs";
import { strExtensionConfig, strIKey } from "./Constants";
var validationError = "Extensions must provide callback to initialize";
var strNotificationManager = "_notificationManager";
/**
* Helper to create the default performance manager
* @param core
* @param notificationMgr
*/
function _createPerfManager(core, notificationMgr) {
return new PerfManager(notificationMgr);
}
var BaseCore = /** @class */ (function () {

@@ -53,2 +62,6 @@ function BaseCore() {

_self.config = config || {};
if (_self.config.enablePerfMgr) {
// Set the performance manager creation function if not defined
setValue(_self.config, "createPerfMgr", _createPerfManager);
}
config.extensions = isNullOrUndefined(config.extensions) ? [] : config.extensions;

@@ -63,3 +76,3 @@ // add notification to the extensions in the config so other plugins can access it

var allExtensions = [];
allExtensions.push.apply(allExtensions, extensions.concat(config.extensions));
allExtensions.push.apply(allExtensions, __spreadArray(__spreadArray([], extensions), config.extensions));
allExtensions = sortPlugins(allExtensions);

@@ -171,7 +184,7 @@ var coreExtensions = [];

if (!_perfManager) {
if (_self.config && _self.config.enablePerfMgr) {
_perfManager = new PerfManager(_self.getNotifyMgr());
if (_self.config && _self.config.enablePerfMgr && isFunction(_self.config.createPerfMgr)) {
_perfManager = _self.config.createPerfMgr(_self, _self.getNotifyMgr());
}
}
return _perfManager;
return _perfManager || getGblPerfMgr();
};

@@ -178,0 +191,0 @@ _self.setPerfMgr = function (perfMgr) {

/*
* Application Insights JavaScript SDK - Core, 2.6.5
* Application Insights JavaScript SDK - Core, 2.7.0-beta.1
* Copyright (c) Microsoft and contributors. All rights reserved.

@@ -4,0 +4,0 @@ */

/*
* Application Insights JavaScript SDK - Core, 2.6.5
* Application Insights JavaScript SDK - Core, 2.7.0-beta.1
* Copyright (c) Microsoft and contributors. All rights reserved.

@@ -8,3 +8,3 @@ */

"use strict";
import { __extendsFn } from "@microsoft/applicationinsights-shims";
import { __extendsFn as __extends } from "@microsoft/applicationinsights-shims";
import dynamicProto from '@microsoft/dynamicproto-js';

@@ -18,3 +18,3 @@ import { BaseTelemetryPlugin } from './BaseTelemetryPlugin';

var ChannelController = /** @class */ (function (_super) {
__extendsFn(ChannelController, _super);
__extends(ChannelController, _super);
function ChannelController() {

@@ -21,0 +21,0 @@ var _this = _super.call(this) || this;

/*
* Application Insights JavaScript SDK - Core, 2.6.5
* Application Insights JavaScript SDK - Core, 2.7.0-beta.1
* Copyright (c) Microsoft and contributors. All rights reserved.

@@ -4,0 +4,0 @@ */

/*
* Application Insights JavaScript SDK - Core, 2.6.5
* Application Insights JavaScript SDK - Core, 2.7.0-beta.1
* Copyright (c) Microsoft and contributors. All rights reserved.

@@ -119,2 +119,3 @@ */

set: function (name, value, maxAgeSec, domain, path) {
var result = false;
if (_isMgrEnabled(cookieMgr)) {

@@ -162,3 +163,5 @@ var values = {};

setCookieFn(name, _formatCookieValue(theValue, values));
result = true;
}
return result;
},

@@ -173,8 +176,12 @@ get: function (name) {

del: function (name, path) {
var result = false;
if (_isMgrEnabled(cookieMgr)) {
// Only remove the cookie if the manager and cookie support has not been disabled
cookieMgr.purge(name, path);
result = cookieMgr.purge(name, path);
}
return result;
},
purge: function (name, path) {
var _a;
var result = false;
if (areCookiesSupported(logger)) {

@@ -192,4 +199,5 @@ // Setting the expiration date in the past immediately removes the cookie

delCookie(name, _formatCookieValue(strEmpty, values));
result = true;
}
var _a;
return result;
}

@@ -196,0 +204,0 @@ };

/*
* Application Insights JavaScript SDK - Core, 2.6.5
* Application Insights JavaScript SDK - Core, 2.7.0-beta.1
* Copyright (c) Microsoft and contributors. All rights reserved.

@@ -4,0 +4,0 @@ */

/*
* Application Insights JavaScript SDK - Core, 2.6.5
* Application Insights JavaScript SDK - Core, 2.7.0-beta.1
* Copyright (c) Microsoft and contributors. All rights reserved.

@@ -4,0 +4,0 @@ */

/*
* Application Insights JavaScript SDK - Core, 2.6.5
* Application Insights JavaScript SDK - Core, 2.7.0-beta.1
* Copyright (c) Microsoft and contributors. All rights reserved.

@@ -4,0 +4,0 @@ */

/*
* Application Insights JavaScript SDK - Core, 2.6.5
* Application Insights JavaScript SDK - Core, 2.7.0-beta.1
* Copyright (c) Microsoft and contributors. All rights reserved.

@@ -587,6 +587,6 @@ */

function class_1() {
var _this = this;
var _this_1 = this;
if (defaults) {
objForEachKey(defaults, function (field, value) {
_this[field] = value;
_this_1[field] = value;
});

@@ -593,0 +593,0 @@ }

/*
* Application Insights JavaScript SDK - Core, 2.6.5
* Application Insights JavaScript SDK - Core, 2.7.0-beta.1
* Copyright (c) Microsoft and contributors. All rights reserved.

@@ -4,0 +4,0 @@ */

/*
* Application Insights JavaScript SDK - Core, 2.6.5
* Application Insights JavaScript SDK - Core, 2.7.0-beta.1
* Copyright (c) Microsoft and contributors. All rights reserved.

@@ -4,0 +4,0 @@ */

/*
* Application Insights JavaScript SDK - Core, 2.6.5
* Application Insights JavaScript SDK - Core, 2.7.0-beta.1
* Copyright (c) Microsoft and contributors. All rights reserved.

@@ -8,2 +8,3 @@ */

var strExecutionContextKey = "ctx";
var _defaultPerfManager = null;
var PerfEvent = /** @class */ (function () {

@@ -100,3 +101,3 @@ function PerfEvent(name, payloadDetails, isAsync) {

perfEvent.complete();
if (manager) {
if (manager && isFunction(manager.perfEvent)) {
manager.perfEvent(perfEvent);

@@ -179,2 +180,16 @@ }

}
/**
* Set the global performance manager to use when there is no core instance or it has not been initialized yet.
* @param perfManager - The IPerfManager instance to use when no performance manager is supplied.
*/
export function setGblPerfMgr(perfManager) {
_defaultPerfManager = perfManager;
}
/**
* Get the current global performance manager that will be used with no performance manager is supplied.
* @returns - The current default manager
*/
export function getGblPerfMgr() {
return _defaultPerfManager;
}
//# sourceMappingURL=PerfManager.js.map
/*
* Application Insights JavaScript SDK - Core, 2.6.5
* Application Insights JavaScript SDK - Core, 2.7.0-beta.1
* Copyright (c) Microsoft and contributors. All rights reserved.

@@ -4,0 +4,0 @@ */

/*
* Application Insights JavaScript SDK - Core, 2.6.5
* Application Insights JavaScript SDK - Core, 2.7.0-beta.1
* Copyright (c) Microsoft and contributors. All rights reserved.

@@ -4,0 +4,0 @@ */

/*
* Application Insights JavaScript SDK - Core, 2.6.5
* Application Insights JavaScript SDK - Core, 2.7.0-beta.1
* Copyright (c) Microsoft and contributors. All rights reserved.

@@ -4,0 +4,0 @@ */

/*
* Application Insights JavaScript SDK - Core, 2.6.5
* Application Insights JavaScript SDK - Core, 2.7.0-beta.1
* Copyright (c) Microsoft and contributors. All rights reserved.

@@ -4,0 +4,0 @@ */

@@ -120,3 +120,3 @@ ## API Report File for "@microsoft/applicationinsights-core-js"

// @public @deprecated (undocumented)
export function deleteCookie(logger: IDiagnosticLogger, name: string): void;
export function deleteCookie(logger: IDiagnosticLogger, name: string): boolean;

@@ -182,2 +182,5 @@ // @public

// @public
export function getGblPerfMgr(): IPerfManager;
export { getGlobal }

@@ -271,2 +274,3 @@

cookiePath?: string;
createPerfMgr?: (core: IAppInsightsCore, notificationManager: INotificationManager) => IPerfManager;
diagnosticLogInterval?: number;

@@ -292,7 +296,7 @@ disableCookiesUsage?: boolean;

export interface ICookieMgr {
del(name: string, path?: string): void;
del(name: string, path?: string): boolean;
get(name: string): string;
isEnabled(): boolean;
purge(name: string, path?: string): void;
set(name: string, value: string, maxAgeSec?: number, domain?: string, path?: string): void;
purge(name: string, path?: string): boolean;
set(name: string, value: string, maxAgeSec?: number, domain?: string, path?: string): boolean;
setEnabled(value: boolean): void;

@@ -555,2 +559,3 @@ }

TrackPageActionEventFailed: number;
FailedAddingCustomDefinedRequestContext: number;
};

@@ -708,3 +713,3 @@

CRITICAL = 1,
WARNING = 2,
WARNING = 2
}

@@ -839,3 +844,3 @@

Undefined = 0,
Unload = 2,
Unload = 2
}

@@ -850,2 +855,5 @@

// @public
export function setGblPerfMgr(perfManager: IPerfManager): void;
// @public
export function setValue<T, K extends keyof T>(target: T, field: K, value: T[K], valChk?: (value: T[K]) => boolean, srcChk?: (value: T[K]) => boolean): T[K];

@@ -852,0 +860,0 @@

/*!
* Application Insights JavaScript SDK - Core, 2.6.5
* Application Insights JavaScript SDK - Core, 2.7.0-beta.1
* Copyright (c) Microsoft and contributors. All rights reserved.
*/
!function(e,n){"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||{}))}(this,function(c){"use strict";var r={Unknown:0,NonRetryableStatus:1,InvalidEvent:2,SizeLimitExceeded:3,KillSwitch:4,QueueFull:5},a="function",u="object",n="undefined",s="prototype",o="hasOwnProperty",t=Object,i=t[s],l=t.assign,f=t.create,e=t.defineProperty,g=i[o];function d(){return typeof globalThis!==n&&globalThis?globalThis:typeof self!==n&&self?self:typeof window!==n&&window?window:typeof global!==n&&global?global:null}function v(e){throw new TypeError(e)}function p(e){if(f)return f(e);if(null==e)return{};var n=typeof e;function t(){}return n!==u&&n!==a&&v("Object prototype may only be an Object:"+e),t[s]=e,new t}(d()||{}).Symbol,(d()||{}).Reflect;var h=function(e,n){return(h=t.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var t in n)n[o](t)&&(e[t]=n[t])})(e,n)};function y(e,n){function t(){this.constructor=e}typeof n!==a&&null!==n&&v("Class extends value "+n+" is not a constructor or null"),h(e,n),e[s]=null===n?p(n):(t[s]=n[s],new t)}var m="constructor",C="prototype",x="function",w="_dynInstFuncs",T="_isDynProxy",S="_dynClass",I="_dynInstChk",b=I,N="_dfOpts",E="_unknown_",P="__proto__",M="useBaseInst",L="setInstFuncs",k=Object,A=k.getPrototypeOf,F=0;function _(e,n){return e&&k[C].hasOwnProperty.call(e,n)}function O(e){return e&&(e===k[C]||e===Array[C])}function R(e){return O(e)||e===Function[C]}function j(e){if(e){if(A)return A(e);if(e=e[P]||e[C]||(e[m]?e[m][C]:null))return e}return null}function D(e,n){var t=[],r=k.getOwnPropertyNames;if(r)t=r(e);else for(var o in e)"string"==typeof o&&_(e,o)&&t.push(o);if(t&&0<t.length)for(var i=0;i<t.length;i++)n(t[i])}function U(e,n,t){return n!==m&&typeof e[n]===x&&(t||_(e,n))}function z(e){throw new TypeError("DynamicProto: "+e)}function K(e,n){for(var t=e.length-1;0<=t;t--)if(e[t]===n)return 1}function B(e,n){return _(e,C)?e.name||n||E:((e||{})[m]||{}).name||n||E}function V(e,r,n,t){_(e,C)||z("theClass is an invalid class definition.");var o=e[C];!function(e){if(A)for(var n=[],t=j(r);t&&!R(t)&&!K(n,t);){if(t===e)return 1;n.push(t),t=j(t)}}(o)&&z("["+B(e)+"] is not in class hierarchy of ["+B(r)+"]");var i=null;_(o,S)?i=o[S]:(i="_dynCls$"+B(e,"_")+"$"+F,F++,o[S]=i);var a=V[N],u=!!a[M];u&&t&&t[M]!==undefined&&(u=!!t[M]);var s,c,l,f,g,d,e=(c={},D(s=r,function(e){!c[e]&&U(s,e,!1)&&(c[e]=s[e])}),c);n(r,function(e,n,t,i){function r(e,n,t){var r,o=n[t];return o[T]&&i&&!1!==(r=e[w]||{})[b]&&(o=(r[n[S]]||{})[t]||o),function(){return o.apply(e,arguments)}}var o={};D(t,function(e){o[e]=r(n,t,e)});for(var a=j(e),u=[];a&&!R(a)&&!K(u,a);)D(a,function(e){!o[e]&&U(a,e,!A)&&(o[e]=r(n,a,e))}),u.push(a),a=j(a);return o}(o,r,e,u)),a=!!A&&!!a[L],l=o,i=i,f=r,g=e,t=!1!==(a=a&&t?!!t[L]:a),O(l)||(a=f[w]=f[w]||{},d=a[i]=a[i]||{},!1!==a[b]&&(a[b]=!!t),D(f,function(e){var t,r,o;U(f,e,!1)&&f[e]!==g[e]&&(d[e]=f[e],delete f[e],_(l,e)&&(!l[e]||l[e][T])||(l[e]=(t=l,r=e,(o=function(){var e,n;return(function(e,n,t,r){var o=null;if(e&&_(t,S)){var i=e[w]||{};if((o=(i[t[S]]||{})[n])||z("Missing ["+n+"] "+x),!o[I]&&!1!==i[b]){for(var a=!_(e,n),u=j(e),s=[];a&&u&&!R(u)&&!K(s,u);){var c=u[n];if(c){a=c===r;break}s.push(u),u=j(u)}try{a&&(e[n]=o),o[I]=1}catch(l){i[b]=!1}}}return o}(this,r,t,o)||(typeof(n=(n=t[e=r])===o?j(t)[e]:n)!==x&&z("["+e+"] is not a "+x),n)).apply(this,arguments)})[T]=1,o)))}))}V[N]={setInstFuncs:!0,useBaseInst:!0},c.LoggingSeverity=void 0,(lt=c.LoggingSeverity||(c.LoggingSeverity={}))[lt.CRITICAL=1]="CRITICAL",lt[lt.WARNING=2]="WARNING";var W={BrowserDoesNotSupportLocalStorage:0,BrowserCannotReadLocalStorage:1,BrowserCannotReadSessionStorage:2,BrowserCannotWriteLocalStorage:3,BrowserCannotWriteSessionStorage:4,BrowserFailedRemovalFromLocalStorage:5,BrowserFailedRemovalFromSessionStorage:6,CannotSendEmptyTelemetry:7,ClientPerformanceMathError:8,ErrorParsingAISessionCookie:9,ErrorPVCalc:10,ExceptionWhileLoggingError:11,FailedAddingTelemetryToBuffer:12,FailedMonitorAjaxAbort:13,FailedMonitorAjaxDur:14,FailedMonitorAjaxOpen:15,FailedMonitorAjaxRSC:16,FailedMonitorAjaxSend:17,FailedMonitorAjaxGetCorrelationHeader:18,FailedToAddHandlerForOnBeforeUnload:19,FailedToSendQueuedTelemetry:20,FailedToReportDataLoss:21,FlushFailed:22,MessageLimitPerPVExceeded:23,MissingRequiredFieldSpecification:24,NavigationTimingNotSupported:25,OnError:26,SessionRenewalDateIsZero:27,SenderNotInitialized:28,StartTrackEventFailed:29,StopTrackEventFailed:30,StartTrackFailed:31,StopTrackFailed:32,TelemetrySampledAndNotSent:33,TrackEventFailed:34,TrackExceptionFailed:35,TrackMetricFailed:36,TrackPVFailed:37,TrackPVFailedCalc:38,TrackTraceFailed:39,TransmissionFailed:40,FailedToSetStorageBuffer:41,FailedToRestoreStorageBuffer:42,InvalidBackendResponse:43,FailedToFixDepricatedValues:44,InvalidDurationValue:45,TelemetryEnvelopeInvalid:46,CreateEnvelopeError:47,CannotSerializeObject:48,CannotSerializeObjectNonSerializable:49,CircularReferenceDetected:50,ClearAuthContextFailed:51,ExceptionTruncated:52,IllegalCharsInName:53,ItemNotInArray:54,MaxAjaxPerPVExceeded:55,MessageTruncated:56,NameTooLong:57,SampleRateOutOfRange:58,SetAuthContextFailed:59,SetAuthContextFailedAccountName:60,StringValueTooLong:61,StartCalledMoreThanOnce:62,StopCalledWithoutStart:63,TelemetryInitializerFailed:64,TrackArgumentsNotSpecified:65,UrlTooLong:66,SessionStorageBufferFull:67,CannotAccessCookie:68,IdTooLong:69,InvalidEvent:70,FailedMonitorAjaxSetRequestHeader:71,SendBrowserInfoOnUserInit:72,PluginException:73,NotificationException:74,SnippetScriptLoadFailure:99,InvalidInstrumentationKey:100,CannotParseAiBlobValue:101,InvalidContentBlob:102,TrackPageActionEventFailed:103},G="on",q="attachEvent",H="addEventListener",J="detachEvent",Q="removeEventListener",$=e,X=t.freeze,Z=t.seal;function Y(e){return i.toString.call(e)}function ee(e,n){return typeof e===n}function ne(e){return e===undefined||typeof e===n}function te(e){return null===e||ne(e)}function re(e){return!te(e)}function oe(e,n){return e&&g.call(e,n)}function ie(e){return typeof e===u}function ae(e){return typeof e===a}function ue(e,n,t,r){void 0===r&&(r=!1);var o=!1;if(!te(e))try{te(e[H])?te(e[q])||(e[q](G+n,t),o=!0):(e[H](n,t,r),o=!0)}catch(i){}return o}function se(e,n,t,r){if(void 0===r&&(r=!1),!te(e))try{te(e[Q])?te(e[J])||e[J](G+n,t):e[Q](n,t,r)}catch(o){}}function ce(e,n){if(e)for(var t in e)g.call(e,t)&&n.call(e,t,e[t])}function le(e,n){if(e&&n){var t=n.length,r=e.length;if(e===n)return!0;if(t<=r){for(var o=r-1,i=t-1;0<=i;i--){if(e[o]!=n[i])return!1;o--}return!0}}return!1}function fe(e,n){return!(!e||!n||!~e.indexOf(n))}function ge(e){return"[object Date]"===Y(e)}function de(e){return"[object Array]"===Y(e)}function ve(e){return"[object Error]"===Y(e)}function pe(e){return"string"==typeof e}function he(e){return"number"==typeof e}function ye(e){return"boolean"==typeof e}function me(e){if(ge(e)){var n=function(e){return 1===(e=""+e).length?"0"+e:e};return e.getUTCFullYear()+"-"+n(1+e.getUTCMonth())+"-"+n(e.getUTCDate())+"T"+n(e.getUTCHours())+":"+n(e.getUTCMinutes())+":"+n(e.getUTCSeconds())+"."+(""+(e.getUTCMilliseconds()/1e3).toFixed(3)).slice(2,5)+"Z"}}function Ce(e,n,t){for(var r=e.length,o=0;o<r&&!(o in e&&-1===n.call(t||e,e[o],o,e));o++);}function xe(e,n,t){for(var r=e.length,o=Math.max(0<=(t=t||0)?t:r-Math.abs(t),0);o<r;o++)if(o in e&&e[o]===n)return o;return-1}function we(e,n,t){for(var r=e.length,o=t||e,i=Array(r),a=0;a<r;a++)a in e&&(i[a]=n.call(o,e[a],e));return i}function Te(e,n,t){var r,o=e.length,i=0;if(3<=arguments.length)r=t;else{for(;i<o&&!(i in e);)i++;r=e[i++]}for(;i<o;)i in e&&(r=n(r,e[i],i,e)),i++;return r}function Se(e){return"string"!=typeof e?e:e.replace(/^\s+|\s+$/g,"")}var Ie=!{toString:null}.propertyIsEnumerable("toString"),be=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"];function Ne(e){var n=typeof e;n===a||n===u&&null!==e||v("objKeys called on non-object");var t,r=[];for(t in e)e&&g.call(e,t)&&r.push(t);if(Ie)for(var o=be.length,i=0;i<o;i++)e&&g.call(e,be[i])&&r.push(be[i]);return r}function Ee(e,n,t,r){if($)try{var o={enumerable:!0,configurable:!0};return t&&(o.get=t),r&&(o.set=r),$(e,n,o),!0}catch(i){}return!1}function Pe(){var e=Date;return e.now?e.now():(new e).getTime()}function Me(e){return ve(e)?e.name:""}function Le(e,n,t,r,o){var i=t;return e&&((i=e[n])===t||o&&!o(i)||r&&!r(t)||(e[n]=i=t)),i}function ke(e,n,t){var r;return e?!(r=e[n])&&te(r)&&(r=ne(t)?{}:t,e[n]=r):r=ne(t)?{}:t,r}function Ae(e){return!e}function Fe(e){return!!e}function _e(e){throw Error(e)}var Oe="window",Re="navigator",je="location",De="console",Ue="performance",ze="JSON",Ke="crypto",Be="msCrypto",Ve="msie",We="trident/",Ge=null,qe=null,He=!1;function Je(e){var n=d();return n&&n[e]?n[e]:e===Oe&&Qe()?window:null}function Qe(){return!(typeof window!==u||!window)}function $e(){return Qe()?window:Je(Oe)}function Xe(){return!(typeof document!==u||!document)}function Ze(){return Xe()?document:Je("document")}function Ye(){return!(typeof navigator!==u||!navigator)}function en(){return Ye()?navigator:Je(Re)}function nn(){return!(typeof history!==u||!history)}function tn(e){return e&&He&&(e=Je("__mockLocation"))?e:typeof location===u&&location?location:Je(je)}function rn(){return typeof console!==n?console:Je(De)}function on(){return Je(Ue)}function an(){return!!(typeof JSON===u&&JSON||null!==Je(ze))}function un(){return an()?JSON||Je(ze):null}function sn(){return Je(Ke)}function cn(){return Je(Be)}function ln(){var e=en();return!e||e.userAgent===qe&&null!==Ge||(e=((qe=e.userAgent)||"").toLowerCase(),Ge=fe(e,Ve)||fe(e,We)),Ge}function fn(e){var n=Object[s].toString.call(e),t="";return"[object Error]"===n?t="{ stack: '"+e.stack+"', message: '"+e.message+"', name: '"+e.name+"'":an()&&(t=un().stringify(e)),n+t}function gn(e){return e?'"'+e.replace(/\"/g,"")+'"':""}var dn=(vn.dataType="MessageData",vn);function vn(e,n,t,r){void 0===t&&(t=!1),this.messageId=e,this.message=(t?"AI: ":"AI (Internal): ")+e,e="",an()&&(e=un().stringify(r)),e=(n?" message:"+gn(n):"")+(r?" props:"+gn(e):""),this.message+=e}function pn(e,n){return(e||{}).logger||new hn(n)}var hn=function Gt(t){this.identifier="DiagnosticLogger",this.queue=[];var o=0,a={};V(Gt,this,function(i){function e(e,n){return te(e=t[e])?n:e}te(t)&&(t={}),i.consoleLoggingLevel=function(){return e("loggingLevelConsole",0)},i.telemetryLoggingLevel=function(){return e("loggingLevelTelemetry",1)},i.maxInternalMessageLimit=function(){return e("maxMessageLimit",25)},i.enableDebugExceptions=function(){return e("enableDebugExceptions",!1)},i.throwInternal=function(e,n,t,r,o){if(t=new dn(n,t,o=void 0!==o&&o,r),i.enableDebugExceptions())throw t;ne(t.message)||(r=i.consoleLoggingLevel(),o?(o=+t.messageId,!a[o]&&r>=c.LoggingSeverity.WARNING&&(i.warnToConsole(t.message),a[o]=!0)):r>=c.LoggingSeverity.WARNING&&i.warnToConsole(t.message),i.logInternalMessage(e,t))},i.warnToConsole=function(e){var n,t=rn();t&&(n="log",ae(t[n=t.warn?"warn":n])&&t[n](e))},i.resetInternalMessageCount=function(){o=0,a={}},i.logInternalMessage=function(e,n){var t,r;o>=i.maxInternalMessageLimit()||(t=!0,r="AITR_"+n.messageId,a[r]?t=!1:a[r]=!0,t&&(e<=i.telemetryLoggingLevel()&&(i.queue.push(n),o++),o===i.maxInternalMessageLimit()&&(n=new dn(W.MessageLimitPerPVExceeded,e="Internal events throttle limit per PageView reached for this app.",!1),i.queue.push(n),i.warnToConsole(e))))}})},yn=(mn.ParentContextKey="parent",mn.ChildrenContextKey="childEvts",mn);function mn(e,o,n){var t,i=this,a=!1;i.start=Pe(),i.name=e,i.isAsync=n,i.isChildEvt=function(){return!1},ae(o)&&(a=Ee(i,"payload",function(){return!t&&ae(o)&&(t=o(),o=null),t})),i.getCtx=function(e){return e?(e===mn.ParentContextKey||e===mn.ChildrenContextKey?i:i.ctx||{})[e]:null},i.setCtx=function(e,n){e&&(e===mn.ParentContextKey?(i[e]||(i.isChildEvt=function(){return!0}),i[e]=n):e===mn.ChildrenContextKey?i[e]=n:(i.ctx=i.ctx||{})[e]=n)},i.complete=function(){var e=0,n=i.getCtx(mn.ChildrenContextKey);if(de(n))for(var t=0;t<n.length;t++){var r=n[t];r&&(e+=r.time)}i.time=Pe()-i.start,i.exTime=i.time-e,i.complete=function(){},!a&&ae(o)&&(i.payload=o())}}var Cn=function qt(n){this.ctx={},V(qt,this,function(t){t.create=function(e,n,t){return new yn(e,n,t)},t.fire=function(e){e&&(e.complete(),n&&n.perfEvent(e))},t.setCtx=function(e,n){e&&((t.ctx=t.ctx||{})[e]=n)},t.getCtx=function(e){return(t.ctx||{})[e]}})},xn="CoreUtils.doPerf";function wn(e,n,t,r,o){if(e){var i=e;if(i=ae(i.getPerfMgr)?i.getPerfMgr():i){var a,u=void 0,e=i.getCtx(xn);try{if(u=i.create(n(),r,o))return e&&u.setCtx&&(u.setCtx(yn.ParentContextKey,e),e.getCtx&&e.setCtx&&((a=e.getCtx(yn.ChildrenContextKey))||(a=[],e.setCtx(yn.ChildrenContextKey,a)),a.push(u))),i.setCtx(xn,u),t(u)}catch(s){u&&u.setCtx&&u.setCtx("exception",s)}finally{u&&i.fire(u),i.setCtx(xn,e)}}}return t()}var Tn=function(o,n){var i=this,a=null,u=ae(o.processTelemetry),s=ae(o.setNextPlugin);i._hasRun=!1,i.getPlugin=function(){return o},i.getNext=function(){return a},i.setNext=function(e){a=e},i.processTelemetry=function(t,r){r=r||n;var e=o?o.identifier:"TelemetryPluginChain";wn(r?r.core():null,function(){return e+":processTelemetry"},function(){if(o&&u){i._hasRun=!0;try{r.setNext(a),s&&o.setNextPlugin(a),a&&(a._hasRun=!1),o.processTelemetry(t,r)}catch(n){var e=a&&a._hasRun;a&&e||r.diagLog().throwInternal(c.LoggingSeverity.CRITICAL,W.PluginException,"Plugin ["+o.identifier+"] failed during processTelemetry - "+n),a&&!e&&a.processTelemetry(t,r)}}else a&&(i._hasRun=!0,a.processTelemetry(t,r))},function(){return{item:t}},!t.sync)}};function Sn(e,n){var t=[];if(e&&0<e.length)for(var r=null,o=0;o<e.length;o++){var i=e[o];i&&ae(i.processTelemetry)&&(i=new Tn(i,n),t.push(i),r&&r.setNext(i),r=i)}return 0<t.length?t[0]:null}var In=function Ht(e,o,t,n){var r,i,a,u,s=this,c=null;null!==n&&(e&&ae(e.getPlugin)?c=function(e,n,t){var r=[],o=!t;if(e)for(;e;){var i=e.getPlugin();!o&&i!==t||(o=!0,r.push(i)),e=e.getNext()}return o||r.push(t),Sn(r,n)}(e,s,n||e.getPlugin()):n?(r=s,a=e,u=!1,(i=n)&&e&&(a=[],Ce(e,function(e){!u&&e!==i||(u=!0,a.push(e))})),i&&!u&&(a=a||[]).push(i),c=Sn(a,r)):ne(n)&&(c=Sn(e,s))),s.core=function(){return t},s.diagLog=function(){return pn(t,o)},s.getCfg=function(){return o},s.getExtCfg=function(e,n){var t,r;return void 0===n&&(n={}),!o||(r=o.extensionConfig)&&e&&(t=r[e]),t||n},s.getConfig=function(e,n,t){var r;return void 0===t&&(t=!1),(e=s.getExtCfg(e,null))&&!te(e[n])?r=e[n]:o&&!te(o[n])&&(r=o[n]),te(r)?t:r},s.hasNext=function(){return null!=c},s.getNext=function(){return c},s.setNext=function(e){c=e},s.processNext=function(e){var n=c;n&&(c=n.getNext(),n.processTelemetry(e,s))},s.createNew=function(e,n){return new Ht((e=void 0===e?null:e)||c,o,t,n)}},bn="extensionConfig",Nn="getPlugin",En=(Pn.prototype.initialize=function(e,n,t,r){this._baseTelInit(e,n,t,r)},Pn);function Pn(){var i=this,a=!1,u=null,s=null;i.core=null,i.diagLog=function(e){return i._getTelCtx(e).diagLog()},i.isInitialized=function(){return a},i.setInitialized=function(e){a=e},i.setNextPlugin=function(e){s=e},i.processNext=function(e,n){n?n.processNext(e):s&&ae(s.processTelemetry)&&s.processTelemetry(e,null)},i._getTelCtx=function(e){var n=e=void 0===e?null:e;return n||(e=u||new In(null,{},i.core),n=s&&s[Nn]?e.createNew(null,s[Nn]):e.createNew(null,s)),n},i._baseTelInit=function(e,n,t,r){e&&Le(e,bn,[],null,te),!r&&n&&(r=n.getProcessTelContext().getNext());var o=s;s&&s[Nn]&&(o=s[Nn]()),i.core=n,u=new In(r,e,n,o),a=!0}}var Mn="processTelemetry",Ln="priority",kn="setNextPlugin",An="isInitialized";function Fn(n,t){for(var e=[],r=null,o=n.getNext();o;){var i=o.getPlugin();i&&(r&&ae(r[kn])&&ae(i[Mn])&&r[kn](i),ae(i[An])&&i[An]()||e.push(i),r=i,o=o.getNext())}Ce(e,function(e){e.initialize(n.getCfg(),n.core(),t,n.getNext())})}function _n(e){return e.sort(function(e,n){var t=0,r=ae(n[Mn]);return ae(e[Mn])?t=r?e[Ln]-n[Ln]:1:r&&(t=-1),t})}var On,Rn=(y(jn,On=En),jn._staticInit=(Ee(Nt=jn.prototype,"ChannelControls",Nt.getChannelControls),void Ee(Nt,"channelQueue",Nt.getChannelControls)),jn);function jn(){var s,r=On.call(this)||this;function c(e){e&&0<e.length&&(Ce(e=e.sort(function(e,n){return e.priority-n.priority}),function(e){e.priority<500&&_e("Channel has invalid priority"+e.identifier)}),s.push(e))}return r.identifier="ChannelControllerPlugin",r.priority=500,V(jn,r,function(a,u){a.setNextPlugin=function(e){},a.processTelemetry=function(n,t){s&&Ce(s,function(e){0<e.length&&r._getTelCtx(t).createNew(e).processNext(n)})},a.getChannelControls=function(){return s},a.initialize=function(n,t,r){var e,o,i;a.isInitialized()||(u.initialize(n,t,r),e=(n||{}).channels,o=r,s=[],e&&Ce(e,c),o&&(i=[],Ce(o,function(e){500<e.priority&&i.push(e)}),c(i)),Ce(s,function(e){return Fn(new In(e,n,t),r)}))}}),r}var Dn="toGMTString",Un="toUTCString",zn="cookie",Kn="expires",Bn="enabled",Vn="isCookieUseDisabled",Wn="disableCookiesUsage",Gn="_ckMgr",qn="",Hn=null,Jn=null,Qn=null,$n=Ze(),Xn={},Zn={};function Yn(e,n){var t=nt[Gn]||Zn[Gn];return t||(t=nt[Gn]=nt(e,n),Zn[Gn]=t),t}function et(e){return!e||e.isEnabled()}function nt(e,r){var n,t,s=(Le(t=(n=e||Zn).cookieCfg=n.cookieCfg||{},"domain",n.cookieDomain,re,te),Le(t,"path",n.cookiePath||"/",null,te),te(t[Bn])&&(e=void 0,ne(n[Vn])||(e=!n[Vn]),ne(n[Wn])||(e=!n[Wn]),t[Bn]=e),t),c=s.path||"/",l=s.domain,o=!1!==s[Bn],f={isEnabled:function(){var e=o&&tt(r),n=Zn[Gn];return e&&n&&f!==n?et(n):e},setEnabled:function(e){o=!1!==e},set:function(e,n,t,r,o){var i,a,u;et(f)&&(i={},-1!=(u=(a=Se(n||qn)).indexOf(";"))&&(a=Se(n.substring(0,u)),i=rt(n.substring(1+u))),Le(i,"domain",r||l,Fe,ne),te(t)||(u=ln(),!ne(i[Kn])||0<(n=Pe()+1e3*t)&&((r=new Date).setTime(n),Le(i,Kn,ot(r,u?Dn:Un)||ot(r,u?Dn:Un)||qn,Fe)),u||Le(i,"max-age",qn+t,null,ne)),(t=tn())&&"https:"===t.protocol&&(Le(i,"secure",null,null,ne),(Jn=null===Jn?!ut((en()||{}).userAgent):Jn)&&Le(i,"SameSite","None",null,ne)),Le(i,"path",o||c,null,ne),(s.setCookie||at)(e,it(a,i)))},get:function(e){var n=qn;return et(f)?(s.getCookie||function(e){var n,t=qn;return $n&&(n=$n[zn]||qn,Qn!==n&&(Xn=rt(n),Qn=n),t=Se(Xn[e]||qn)),t})(e):n},del:function(e,n){et(f)&&f.purge(e,n)},purge:function(e,n){var t;tt(r)&&((t={}).path=n||"/",t[Kn]="Thu, 01 Jan 1970 00:00:01 GMT",ln()||(t["max-age"]="0"),(s.delCookie||at)(e,it(qn,t)))}};return f[Gn]=f}function tt(e){if(null===Hn){Hn=!1;try{Hn=($n||{})[zn]!==undefined}catch(n){e&&e.throwInternal(c.LoggingSeverity.WARNING,W.CannotAccessCookie,"Cannot access document.cookie - "+Me(n),{exception:fn(n)})}}return Hn}function rt(e){var t={};return e&&e.length&&Ce(Se(e).split(";"),function(e){var n;(e=Se(e||qn))&&(-1==(n=e.indexOf("="))?t[e]=null:t[Se(e.substring(0,n))]=Se(e.substring(1+n)))}),t}function ot(e,n){return ae(e[n])?e[n]():null}function it(e,n){var t=e||qn;return ce(n,function(e,n){t+="; "+e+(te(n)?qn:"="+n)}),t}function at(e,n){$n&&($n[zn]=e+"="+n)}function ut(e){return!(!pe(e)||!fe(e,"CPU iPhone OS 12")&&!fe(e,"iPad; CPU OS 12")&&!(fe(e,"Macintosh; Intel Mac OS X 10_14")&&fe(e,"Version/")&&fe(e,"Safari"))&&(!fe(e,"Macintosh; Intel Mac OS X 10_14")||!le(e,"AppleWebKit/605.1.15 (KHTML, like Gecko)"))&&!fe(e,"Chrome/5")&&!fe(e,"Chrome/6")&&(!fe(e,"UnrealEngine")||fe(e,"Chrome"))&&!fe(e,"UCBrowser/12")&&!fe(e,"UCBrowser/11"))}var st,ct="_notificationManager",lt=function Jt(){var n,u,s,t,r,c=!1;V(Jt,this,function(a){a._extensions=[],u=new Rn,a.logger=p({throwInternal:function(e,n,t,r,o){},warnToConsole:function(e){},resetInternalMessageCount:function(){}}),n=[],a.isInitialized=function(){return c},a.initialize=function(e,n,r,t){a.isInitialized()&&_e("Core should not be initialized more than once"),e&&!te(e.instrumentationKey)||_e("Please provide instrumentation key"),s=t,a[ct]=t,a.config=e||{},e.extensions=te(e.extensions)?[]:e.extensions,ke(e,bn).NotificationManager=t,r&&(a.logger=r),(t=[]).push.apply(t,n.concat(e.extensions));var t=_n(t),o=[],i={};Ce(t,function(e){(te(e)||te(e.initialize))&&_e("Extensions must provide callback to initialize");var n=e.priority,t=e.identifier;e&&n&&(te(i[n])?i[n]=t:r.warnToConsole("Two extensions have same priority #"+n+" - "+i[n]+", "+t)),(!n||n<u.priority)&&o.push(e)}),t.push(u),o.push(u),t=_n(t),a._extensions=t,Fn(new In([u],e,a),t),Fn(new In(o,e,a),t),a._extensions=o,0===a.getTransmissionControls().length&&_e("No channels available"),c=!0,a.releaseQueue()},a.getTransmissionControls=function(){return u.getChannelControls()},a.track=function(e){Le(e,"iKey",a.config.instrumentationKey,null,Ae),Le(e,"time",me(new Date),null,Ae),Le(e,"ver","4.0",null,te),a.isInitialized()?a.getProcessTelContext().processNext(e):n.push(e)},a.getProcessTelContext=function(){var e=a._extensions,n=e;return e&&0!==e.length||(n=[u]),new In(n,a.config,a)},a.getNotifyMgr=function(){return s||(s=p({addNotificationListener:function(e){},removeNotificationListener:function(e){},eventsSent:function(e){},eventsDiscarded:function(e,n){},eventsSendRequest:function(e,n){}}),a[ct]=s),s},a.getCookieMgr=function(){return r=r||nt(a.config,a.logger)},a.setCookieMgr=function(e){r=e},a.getPerfMgr=function(){return t||a.config&&a.config.enablePerfMgr&&(t=new Cn(a.getNotifyMgr())),t},a.setPerfMgr=function(e){t=e},a.eventCnt=function(){return n.length},a.releaseQueue=function(){0<n.length&&(Ce(n,function(e){a.getProcessTelContext().processNext(e)}),n=[])}})},ft=function Qt(e){this.listeners=[];var n=!!(e||{}).perfEvtsSendAll;V(Qt,this,function(o){o.addNotificationListener=function(e){o.listeners.push(e)},o.removeNotificationListener=function(e){for(var n=xe(o.listeners,e);-1<n;)o.listeners.splice(n,1),n=xe(o.listeners,e)},o.eventsSent=function(n){Ce(o.listeners,function(e){e&&e.eventsSent&&setTimeout(function(){return e.eventsSent(n)},0)})},o.eventsDiscarded=function(n,t){Ce(o.listeners,function(e){e&&e.eventsDiscarded&&setTimeout(function(){return e.eventsDiscarded(n,t)},0)})},o.eventsSendRequest=function(t,r){Ce(o.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){}})},o.perfEvent=function(t){t&&(!n&&t.isChildEvt()||Ce(o.listeners,function(e){if(e&&e.perfEvent)if(t.isAsync)setTimeout(function(){return e.perfEvent(t)},0);else try{e.perfEvent(t)}catch(n){}}))}})},e=(y(gt,st=lt),gt);function gt(){var e=st.call(this)||this;return V(gt,e,function(t,o){function n(e){var n=t.getNotifyMgr();n&&n.eventsDiscarded([e],r.InvalidEvent)}t.initialize=function(e,n,t,r){o.initialize(e,n,t||new hn(e),r||new ft(e))},t.track=function(e){wn(t.getPerfMgr(),function(){return"AppInsightsCore:track"},function(){null===e&&(n(e),_e("Invalid telemetry item")),function(){if(te(e.name))throw n(e),Error("telemetry name required")}(),o.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 setInterval(function(){var e=t.logger?t.logger.queue:[];Ce(e,function(e){e={name:n||"InternalMessageId: "+e.messageId,iKey:t.config.instrumentationKey,time:me(new Date),baseType:dn.dataType,baseData:{message:e.message}},t.track(e)}),e.length=0},e=e&&0<e?e:1e4)}}),e}var dt=4294967296,vt=4294967295,pt=!1,ht=123456789,yt=987654321;function mt(e){e<0&&(e>>>=0),ht=123456789+e&vt,yt=987654321-e&vt,pt=!0}function Ct(){try{var e=2147483647&Pe();mt((Math.random()*dt^e)+e)}catch(n){}}function xt(e){return 0<e?Math.floor(wt()/vt*(e+1))>>>0:0}function wt(e){var n=(n=sn()||cn())&&n.getRandomValues?n.getRandomValues(new Uint32Array(1))[0]&vt:ln()?(pt||Ct(),St()&vt):Math.floor(dt*Math.random()|0);return e||(n>>>=0),n}function Tt(e){e?mt(e):Ct()}function St(e){var n=((yt=36969*(65535&yt)+(yt>>16)&vt)<<16)+(65535&(ht=18e3*(65535&ht)+(ht>>16)&vt))>>>0&vt|0;return e||(n>>>=0),n}var It,bt=null,Nt=n;function Et(e,n){var t=!1,r=$e();return r&&(t=ue(r,e,n),t=ue(r.body,e,n)||t),(r=Ze())&&_t.Attach(r,e,n)||t}function Pt(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(Ft,function(e){var n=0|xt(15);return("x"===e?n:3&n|8).toString(16)})}function Mt(){var e=on();return e&&e.now?e.now():Pe()}function Lt(e){void 0===e&&(e=22);for(var n=wt()>>>0,t=0,r="";r.length<e;)r+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"[0|63&n]||"",n>>>=6,5==++t&&(n=(wt()<<2&4294967295|3&n)>>>0,t=0);return r}function kt(){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=wt())]+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 o=n[8+(3&wt())|0];return t.substr(0,8)+t.substr(9,4)+"4"+t.substr(13,3)+o+t.substr(16,3)+t.substr(19,12)}var At={_canUseCookies:undefined,isTypeof:ee,isUndefined:ne,isNullOrUndefined:te,hasOwnProperty:oe,isFunction:ae,isObject:ie,isDate:ge,isArray:de,isError:ve,isString:pe,isNumber:he,isBoolean:ye,toISOString:me,arrForEach:Ce,arrIndexOf:xe,arrMap:we,arrReduce:Te,strTrim:Se,objCreate:p,objKeys:Ne,objDefineAccessors:Ee,addEventHandler:Et,dateNow:Pe,isIE:ln,disableCookies:Rt,newGuid:Pt,perfNow:Mt,newId:Lt,randomValue:xt,random32:wt,mwcRandomSeed:Tt,mwcRandom32:St,generateW3CId:kt},Ft=/[xy]/g,_t={Attach:ue,AttachEvent:ue,Detach:se,DetachEvent:se};function Ot(e,n){return e=Yn(e,n),n=At._canUseCookies,null===bt&&(bt=[],It=n,Ee(At,"_canUseCookies",function(){return It},function(n){It=n,Ce(bt,function(e){e.setEnabled(n)})})),-1===xe(bt,e)&&bt.push(e),ye(n)&&e.setEnabled(n),ye(It)&&e.setEnabled(It),e}function Rt(){Ot().setEnabled(!1)}var jt="_aiHooks",Dt=["req","rsp","hkErr","fnErr"];function Ut(e,n){if(e)for(var t=0;t<e.length&&!n(e[t],t);t++);}function zt(e,a,u,s,c){0<=c&&c<=2&&Ut(e,function(e,n){var t=e.cbks;if(e=t[Dt[c]]){a.ctx=function(){return s[n]=s[n]||{}};try{e.apply(a.inst,u)}catch(o){e=a.err;try{var r=t[Dt[2]];r&&(a.err=o,r.apply(a.inst,u))}catch(i){}finally{a.err=e}}}})}function Kt(s){return function(){var t=arguments,e=s.h,r={name:s.n,inst:this,ctx:null,set:function(e,n){(t=i([],t))[e]=n,o=i([r],t)}},n=[],o=i([r],t);function i(n,e){return Ut(e,function(e){n.push(e)}),n}zt(e,r,o,n,0);var a=s.f;try{r.rslt=a.apply(this,t)}catch(u){throw r.err=u,zt(e,r,o,n,3),u}return zt(e,r,o,n,1),r.rslt}}var Bt=Object.getPrototypeOf;function Vt(e,n,t,r){if(void 0===r&&(r=!0),e&&n&&t&&(e=function i(e,n,t){var r=null;return e&&(oe(e,n)?r=e:t&&(r=i(function(e){if(e){if(Bt)return Bt(e);if(e=e.__proto__||e[s]||e.constructor)return e}return null}(e),n,!1))),r}(e,n,r))&&typeof(r=e[n])===a){var o=r[jt];return o||((r=Kt(o={i:0,n:n,f:r,h:[]}))[jt]=o,e[n]=r),t={id:o.i,cbks:t,rm:function(){var t=this.id;Ut(o.h,function(e,n){return e.id===t&&(o.h.splice(n,1),1)})}},o.i++,o.h.push(t),t}return null}function Wt(n,e,t,r){void 0===r&&(r=!0);var o=null;return Ut(e,function(e){(e=Vt(n,e,t,r))&&(o=o||[]).push(e)}),o}c.AppInsightsCore=e,c.BaseCore=lt,c.BaseTelemetryPlugin=En,c.CoreUtils=At,c.DiagnosticLogger=hn,c.EventHelper=_t,c.EventsDiscardedReason=r,c.InstrumentFunc=Vt,c.InstrumentFuncs=Wt,c.InstrumentProto=function(e,n,t){return e?Vt(e[s],n,t,!1):null},c.InstrumentProtos=function(e,n,t){return e?Wt(e[s],n,t,!1):null},c.MinChannelPriorty=100,c.NotificationManager=ft,c.PerfEvent=yn,c.PerfManager=Cn,c.ProcessTelemetryContext=In,c.Undefined=Nt,c._InternalLogMessage=dn,c._InternalMessageId=W,c._legacyCookieMgr=Ot,c.addEventHandler=Et,c.areCookiesSupported=tt,c.arrForEach=Ce,c.arrIndexOf=xe,c.arrMap=we,c.arrReduce=Te,c.attachEvent=ue,c.canUseCookies=function(e){return Ot(null,e).isEnabled()},c.createClassFromInterface=function(e){return function(){var t=this;e&&ce(e,function(e,n){t[e]=n})}},c.createCookieMgr=nt,c.dateNow=Pe,c.deleteCookie=function(e,n){return Ot(null,e).del(n)},c.detachEvent=se,c.disableCookies=Rt,c.doPerf=wn,c.dumpObj=fn,c.generateW3CId=kt,c.getConsole=rn,c.getCookie=function(e,n){return Ot(null,e).get(n)},c.getCrypto=sn,c.getDocument=Ze,c.getExceptionName=Me,c.getGlobal=d,c.getGlobalInst=Je,c.getHistory=function(){return nn()?history:Je("history")},c.getIEVersion=function(e){var n;return fe(e=((e=(e=void 0===e?null:e)?e:(n=en()||{})?(n.userAgent||"").toLowerCase():"")||"").toLowerCase(),Ve)?parseInt(e.split(Ve)[1]):fe(e,We)&&(e=parseInt(e.split(We)[1]))?e+4:null},c.getJSON=un,c.getLocation=tn,c.getMsCrypto=cn,c.getNavigator=en,c.getPerformance=on,c.getSetValue=ke,c.getWindow=$e,c.hasDocument=Xe,c.hasHistory=nn,c.hasJSON=an,c.hasNavigator=Ye,c.hasOwnProperty=oe,c.hasWindow=Qe,c.initializePlugins=Fn,c.isArray=de,c.isBoolean=ye,c.isDate=ge,c.isError=ve,c.isFunction=ae,c.isIE=ln,c.isNotNullOrUndefined=re,c.isNotTruthy=Ae,c.isNotUndefined=function(e){return!ne(e)},c.isNullOrUndefined=te,c.isNumber=he,c.isObject=ie,c.isReactNative=function(){var e=en();return!(!e||!e.product)&&"ReactNative"===e.product},c.isSafari=function(e){var n;return!!~((e=e&&pe(e)?e:(n=en()||{})?(n.userAgent||"").toLowerCase():"")||"").toLowerCase().indexOf("safari")},c.isString=pe,c.isSymbol=function(e){return"symbol"==typeof e},c.isTruthy=Fe,c.isTypeof=ee,c.isUndefined=ne,c.mwcRandom32=St,c.mwcRandomSeed=Tt,c.newGuid=Pt,c.newId=Lt,c.normalizeJsName=function(e){var n=e,t=/([^\w\d_$])/g;return t.test(e)?e.replace(t,"_"):n},c.objCreate=p,c.objDefineAccessors=Ee,c.objForEachKey=ce,c.objFreeze=function(e){return X?X(e):e},c.objKeys=Ne,c.objSeal=function(e){return Z?Z(e):e},c.optimizeObject=function(e){return e&&t(l?l({},e):e)},c.perfNow=Mt,c.proxyAssign=function(r,o,i){if(r&&o&&r!==o&&ie(r)&&ie(o))for(var e in o)!function(n){var e,t;pe(n)&&(ae(e=o[n])?i&&!i(n,!0,o,r)||(r[n]=(t=n,function(){return o[t].apply(o,arguments)})):i&&!i(n,!1,o,r)||(oe(r,n)&&delete r[n],Ee(r,n,function(){return o[n]},function(e){o[n]=e})||(r[n]=e)))}(e);return r},c.random32=wt,c.randomValue=xt,c.safeGetCookieMgr=function(e,n){var t;return e?t=e.getCookieMgr():n&&(t=n.cookieCfg[Gn]||nt(n)),t||Yn(n,(e||{}).logger)},c.safeGetLogger=pn,c.setCookie=function(e,n,t,r){Ot(null,e).set(n,t,null,r)},c.setEnableEnvMocks=function(e){He=e},c.setValue=Le,c.sortPlugins=_n,c.strContains=fe,c.strEndsWith=le,c.strExtensionConfig=bn,c.strFunction=a,c.strIKey="iKey",c.strObject=u,c.strPrototype=s,c.strStartsWith=function(e,n){var t=!1;if(e&&n){var r=n.length;if(e===n)return!0;if(e.length>=r){for(var o=0;o<r;o++)if(e[o]!==n[o])return!1;t=!0}}return t},c.strTrim=Se,c.strUndefined=n,c.throwError=_e,c.toISOString=me,c.uaDisallowsSameSiteNone=ut,function(e,n,t){var r=Object.defineProperty;if(r)try{return r(e,n,t)}catch(o){}typeof t.value!==undefined&&(e[n]=t.value)}(c,"__esModule",{value:!0})});
!function(e,n){"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||{}))}(this,function(c){"use strict";var r={Unknown:0,NonRetryableStatus:1,InvalidEvent:2,SizeLimitExceeded:3,KillSwitch:4,QueueFull:5},a="function",u="object",n="undefined",s="prototype",i="hasOwnProperty",t=Object,o=t[s],l=t.assign,f=t.create,e=t.defineProperty,g=o[i];function d(){return typeof globalThis!==n&&globalThis?globalThis:typeof self!==n&&self?self:typeof window!==n&&window?window:typeof global!==n&&global?global:null}function v(e){throw new TypeError(e)}function p(e){if(f)return f(e);if(null==e)return{};var n=typeof e;function t(){}return n!==u&&n!==a&&v("Object prototype may only be an Object:"+e),t[s]=e,new t}(d()||{}).Symbol,(d()||{}).Reflect;var h=function(e,n){return(h=t.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var t in n)n[i](t)&&(e[t]=n[t])})(e,n)};function y(e,n){function t(){this.constructor=e}typeof n!==a&&null!==n&&v("Class extends value "+n+" is not a constructor or null"),h(e,n),e[s]=null===n?p(n):(t[s]=n[s],new t)}function C(e,n){for(var t=0,r=n.length,i=e.length;t<r;t++,i++)e[i]=n[t];return e}var m="constructor",x="prototype",w="function",T="_dynInstFuncs",S="_isDynProxy",b="_dynClass",I="_dynInstChk",N=I,E="_dfOpts",P="_unknown_",M="__proto__",L="useBaseInst",k="setInstFuncs",A=Object,F=A.getPrototypeOf,_=0;function O(e,n){return e&&A[x].hasOwnProperty.call(e,n)}function R(e){return e&&(e===A[x]||e===Array[x])}function D(e){return R(e)||e===Function[x]}function j(e){if(e){if(F)return F(e);if(e=e[M]||e[x]||(e[m]?e[m][x]:null))return e}return null}function U(e,n){var t=[],r=A.getOwnPropertyNames;if(r)t=r(e);else for(var i in e)"string"==typeof i&&O(e,i)&&t.push(i);if(t&&0<t.length)for(var o=0;o<t.length;o++)n(t[o])}function z(e,n,t){return n!==m&&typeof e[n]===w&&(t||O(e,n))}function K(e){throw new TypeError("DynamicProto: "+e)}function B(e,n){for(var t=e.length-1;0<=t;t--)if(e[t]===n)return 1}function V(e,n){return O(e,x)?e.name||n||P:((e||{})[m]||{}).name||n||P}function G(e,r,n,t){O(e,x)||K("theClass is an invalid class definition.");var i=e[x];!function(e){if(F)for(var n=[],t=j(r);t&&!D(t)&&!B(n,t);){if(t===e)return 1;n.push(t),t=j(t)}}(i)&&K("["+V(e)+"] is not in class hierarchy of ["+V(r)+"]");var o=null;O(i,b)?o=i[b]:(o="_dynCls$"+V(e,"_")+"$"+_,_++,i[b]=o);var a=G[E],u=!!a[L];u&&t&&t[L]!==undefined&&(u=!!t[L]);var s,c,l,f,g,d,e=(c={},U(s=r,function(e){!c[e]&&z(s,e,!1)&&(c[e]=s[e])}),c);n(r,function(e,n,t,o){function r(e,n,t){var r,i=n[t];return i[S]&&o&&!1!==(r=e[T]||{})[N]&&(i=(r[n[b]]||{})[t]||i),function(){return i.apply(e,arguments)}}var i={};U(t,function(e){i[e]=r(n,t,e)});for(var a=j(e),u=[];a&&!D(a)&&!B(u,a);)U(a,function(e){!i[e]&&z(a,e,!F)&&(i[e]=r(n,a,e))}),u.push(a),a=j(a);return i}(i,r,e,u)),a=!!F&&!!a[k],l=i,o=o,f=r,g=e,t=!1!==(a=a&&t?!!t[k]:a),R(l)||(a=f[T]=f[T]||{},d=a[o]=a[o]||{},!1!==a[N]&&(a[N]=!!t),U(f,function(e){var t,r,i;z(f,e,!1)&&f[e]!==g[e]&&(d[e]=f[e],delete f[e],O(l,e)&&(!l[e]||l[e][S])||(l[e]=(t=l,r=e,(i=function(){var e,n;return(function(e,n,t,r){var i=null;if(e&&O(t,b)){var o=e[T]||{};if((i=(o[t[b]]||{})[n])||K("Missing ["+n+"] "+w),!i[I]&&!1!==o[N]){for(var a=!O(e,n),u=j(e),s=[];a&&u&&!D(u)&&!B(s,u);){var c=u[n];if(c){a=c===r;break}s.push(u),u=j(u)}try{a&&(e[n]=i),i[I]=1}catch(l){o[N]=!1}}}return i}(this,r,t,i)||(typeof(n=(n=t[e=r])===i?j(t)[e]:n)!==w&&K("["+e+"] is not a "+w),n)).apply(this,arguments)})[S]=1,i)))}))}G[E]={setInstFuncs:!0,useBaseInst:!0},c.LoggingSeverity=void 0,(dt=c.LoggingSeverity||(c.LoggingSeverity={}))[dt.CRITICAL=1]="CRITICAL",dt[dt.WARNING=2]="WARNING";var W={BrowserDoesNotSupportLocalStorage:0,BrowserCannotReadLocalStorage:1,BrowserCannotReadSessionStorage:2,BrowserCannotWriteLocalStorage:3,BrowserCannotWriteSessionStorage:4,BrowserFailedRemovalFromLocalStorage:5,BrowserFailedRemovalFromSessionStorage:6,CannotSendEmptyTelemetry:7,ClientPerformanceMathError:8,ErrorParsingAISessionCookie:9,ErrorPVCalc:10,ExceptionWhileLoggingError:11,FailedAddingTelemetryToBuffer:12,FailedMonitorAjaxAbort:13,FailedMonitorAjaxDur:14,FailedMonitorAjaxOpen:15,FailedMonitorAjaxRSC:16,FailedMonitorAjaxSend:17,FailedMonitorAjaxGetCorrelationHeader:18,FailedToAddHandlerForOnBeforeUnload:19,FailedToSendQueuedTelemetry:20,FailedToReportDataLoss:21,FlushFailed:22,MessageLimitPerPVExceeded:23,MissingRequiredFieldSpecification:24,NavigationTimingNotSupported:25,OnError:26,SessionRenewalDateIsZero:27,SenderNotInitialized:28,StartTrackEventFailed:29,StopTrackEventFailed:30,StartTrackFailed:31,StopTrackFailed:32,TelemetrySampledAndNotSent:33,TrackEventFailed:34,TrackExceptionFailed:35,TrackMetricFailed:36,TrackPVFailed:37,TrackPVFailedCalc:38,TrackTraceFailed:39,TransmissionFailed:40,FailedToSetStorageBuffer:41,FailedToRestoreStorageBuffer:42,InvalidBackendResponse:43,FailedToFixDepricatedValues:44,InvalidDurationValue:45,TelemetryEnvelopeInvalid:46,CreateEnvelopeError:47,CannotSerializeObject:48,CannotSerializeObjectNonSerializable:49,CircularReferenceDetected:50,ClearAuthContextFailed:51,ExceptionTruncated:52,IllegalCharsInName:53,ItemNotInArray:54,MaxAjaxPerPVExceeded:55,MessageTruncated:56,NameTooLong:57,SampleRateOutOfRange:58,SetAuthContextFailed:59,SetAuthContextFailedAccountName:60,StringValueTooLong:61,StartCalledMoreThanOnce:62,StopCalledWithoutStart:63,TelemetryInitializerFailed:64,TrackArgumentsNotSpecified:65,UrlTooLong:66,SessionStorageBufferFull:67,CannotAccessCookie:68,IdTooLong:69,InvalidEvent:70,FailedMonitorAjaxSetRequestHeader:71,SendBrowserInfoOnUserInit:72,PluginException:73,NotificationException:74,SnippetScriptLoadFailure:99,InvalidInstrumentationKey:100,CannotParseAiBlobValue:101,InvalidContentBlob:102,TrackPageActionEventFailed:103,FailedAddingCustomDefinedRequestContext:104},q="on",H="attachEvent",J="addEventListener",Q="detachEvent",$="removeEventListener",X=e,Z=t.freeze,Y=t.seal;function ee(e){return o.toString.call(e)}function ne(e,n){return typeof e===n}function te(e){return e===undefined||typeof e===n}function re(e){return null===e||te(e)}function ie(e){return!re(e)}function oe(e,n){return e&&g.call(e,n)}function ae(e){return typeof e===u}function ue(e){return typeof e===a}function se(e,n,t,r){void 0===r&&(r=!1);var i=!1;if(!re(e))try{re(e[J])?re(e[H])||(e[H](q+n,t),i=!0):(e[J](n,t,r),i=!0)}catch(o){}return i}function ce(e,n,t,r){if(void 0===r&&(r=!1),!re(e))try{re(e[$])?re(e[Q])||e[Q](q+n,t):e[$](n,t,r)}catch(i){}}function le(e,n){if(e)for(var t in e)g.call(e,t)&&n.call(e,t,e[t])}function fe(e,n){if(e&&n){var t=n.length,r=e.length;if(e===n)return!0;if(t<=r){for(var i=r-1,o=t-1;0<=o;o--){if(e[i]!=n[o])return!1;i--}return!0}}return!1}function ge(e,n){return!(!e||!n||!~e.indexOf(n))}function de(e){return"[object Date]"===ee(e)}function ve(e){return"[object Array]"===ee(e)}function pe(e){return"[object Error]"===ee(e)}function he(e){return"string"==typeof e}function ye(e){return"number"==typeof e}function Ce(e){return"boolean"==typeof e}function me(e){if(de(e)){var n=function(e){return 1===(e=""+e).length?"0"+e:e};return e.getUTCFullYear()+"-"+n(1+e.getUTCMonth())+"-"+n(e.getUTCDate())+"T"+n(e.getUTCHours())+":"+n(e.getUTCMinutes())+":"+n(e.getUTCSeconds())+"."+(""+(e.getUTCMilliseconds()/1e3).toFixed(3)).slice(2,5)+"Z"}}function xe(e,n,t){for(var r=e.length,i=0;i<r&&!(i in e&&-1===n.call(t||e,e[i],i,e));i++);}function we(e,n,t){for(var r=e.length,i=Math.max(0<=(t=t||0)?t:r-Math.abs(t),0);i<r;i++)if(i in e&&e[i]===n)return i;return-1}function Te(e,n,t){for(var r=e.length,i=t||e,o=Array(r),a=0;a<r;a++)a in e&&(o[a]=n.call(i,e[a],e));return o}function Se(e,n,t){var r,i=e.length,o=0;if(3<=arguments.length)r=t;else{for(;o<i&&!(o in e);)o++;r=e[o++]}for(;o<i;)o in e&&(r=n(r,e[o],o,e)),o++;return r}function be(e){return"string"!=typeof e?e:e.replace(/^\s+|\s+$/g,"")}var Ie=!{toString:null}.propertyIsEnumerable("toString"),Ne=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"];function Ee(e){var n=typeof e;n===a||n===u&&null!==e||v("objKeys called on non-object");var t,r=[];for(t in e)e&&g.call(e,t)&&r.push(t);if(Ie)for(var i=Ne.length,o=0;o<i;o++)e&&g.call(e,Ne[o])&&r.push(Ne[o]);return r}function Pe(e,n,t,r){if(X)try{var i={enumerable:!0,configurable:!0};return t&&(i.get=t),r&&(i.set=r),X(e,n,i),!0}catch(o){}return!1}function Me(){var e=Date;return e.now?e.now():(new e).getTime()}function Le(e){return pe(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 Ae(e,n,t){var r;return e?!(r=e[n])&&re(r)&&(r=te(t)?{}:t,e[n]=r):r=te(t)?{}:t,r}function Fe(e){return!e}function _e(e){return!!e}function Oe(e){throw Error(e)}var Re="window",De="navigator",je="location",Ue="console",ze="performance",Ke="JSON",Be="crypto",Ve="msCrypto",Ge="msie",We="trident/",qe=null,He=null,Je=!1;function Qe(e){var n=d();return n&&n[e]?n[e]:e===Re&&$e()?window:null}function $e(){return!(typeof window!==u||!window)}function Xe(){return $e()?window:Qe(Re)}function Ze(){return!(typeof document!==u||!document)}function Ye(){return Ze()?document:Qe("document")}function en(){return!(typeof navigator!==u||!navigator)}function nn(){return en()?navigator:Qe(De)}function tn(){return!(typeof history!==u||!history)}function rn(e){return e&&Je&&(e=Qe("__mockLocation"))?e:typeof location===u&&location?location:Qe(je)}function on(){return typeof console!==n?console:Qe(Ue)}function an(){return Qe(ze)}function un(){return!!(typeof JSON===u&&JSON||null!==Qe(Ke))}function sn(){return un()?JSON||Qe(Ke):null}function cn(){return Qe(Be)}function ln(){return Qe(Ve)}function fn(){var e=nn();return!e||e.userAgent===He&&null!==qe||(e=((He=e.userAgent)||"").toLowerCase(),qe=ge(e,Ge)||ge(e,We)),qe}function gn(e){var n=Object[s].toString.call(e),t="";return"[object Error]"===n?t="{ stack: '"+e.stack+"', message: '"+e.message+"', name: '"+e.name+"'":un()&&(t=sn().stringify(e)),n+t}function dn(e){return e?'"'+e.replace(/\"/g,"")+'"':""}var vn=(pn.dataType="MessageData",pn);function pn(e,n,t,r){void 0===t&&(t=!1),this.messageId=e,this.message=(t?"AI: ":"AI (Internal): ")+e,e="",un()&&(e=sn().stringify(r)),e=(n?" message:"+dn(n):"")+(r?" props:"+dn(e):""),this.message+=e}function hn(e,n){return(e||{}).logger||new yn(n)}var yn=function Jt(t){this.identifier="DiagnosticLogger",this.queue=[];var i=0,a={};G(Jt,this,function(o){function e(e,n){return re(e=t[e])?n:e}re(t)&&(t={}),o.consoleLoggingLevel=function(){return e("loggingLevelConsole",0)},o.telemetryLoggingLevel=function(){return e("loggingLevelTelemetry",1)},o.maxInternalMessageLimit=function(){return e("maxMessageLimit",25)},o.enableDebugExceptions=function(){return e("enableDebugExceptions",!1)},o.throwInternal=function(e,n,t,r,i){if(t=new vn(n,t,i=void 0!==i&&i,r),o.enableDebugExceptions())throw t;te(t.message)||(r=o.consoleLoggingLevel(),i?(i=+t.messageId,!a[i]&&r>=c.LoggingSeverity.WARNING&&(o.warnToConsole(t.message),a[i]=!0)):r>=c.LoggingSeverity.WARNING&&o.warnToConsole(t.message),o.logInternalMessage(e,t))},o.warnToConsole=function(e){var n,t=on();t&&(n="log",ue(t[n=t.warn?"warn":n])&&t[n](e))},o.resetInternalMessageCount=function(){i=0,a={}},o.logInternalMessage=function(e,n){var t,r;i>=o.maxInternalMessageLimit()||(t=!0,r="AITR_"+n.messageId,a[r]?t=!1:a[r]=!0,t&&(e<=o.telemetryLoggingLevel()&&(o.queue.push(n),i++),i===o.maxInternalMessageLimit()&&(n=new vn(W.MessageLimitPerPVExceeded,e="Internal events throttle limit per PageView reached for this app.",!1),o.queue.push(n),o.warnToConsole(e))))}})},Cn=null,mn=(xn.ParentContextKey="parent",xn.ChildrenContextKey="childEvts",xn);function xn(e,i,n){var t,o=this,a=!1;o.start=Me(),o.name=e,o.isAsync=n,o.isChildEvt=function(){return!1},ue(i)&&(a=Pe(o,"payload",function(){return!t&&ue(i)&&(t=i(),i=null),t})),o.getCtx=function(e){return e?(e===xn.ParentContextKey||e===xn.ChildrenContextKey?o:o.ctx||{})[e]:null},o.setCtx=function(e,n){e&&(e===xn.ParentContextKey?(o[e]||(o.isChildEvt=function(){return!0}),o[e]=n):e===xn.ChildrenContextKey?o[e]=n:(o.ctx=o.ctx||{})[e]=n)},o.complete=function(){var e=0,n=o.getCtx(xn.ChildrenContextKey);if(ve(n))for(var t=0;t<n.length;t++){var r=n[t];r&&(e+=r.time)}o.time=Me()-o.start,o.exTime=o.time-e,o.complete=function(){},!a&&ue(i)&&(o.payload=i())}}var wn=function Qt(n){this.ctx={},G(Qt,this,function(t){t.create=function(e,n,t){return new mn(e,n,t)},t.fire=function(e){e&&(e.complete(),n&&ue(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]}})},Tn="CoreUtils.doPerf";function Sn(e,n,t,r,i){if(e){var o=e;if(o=ue(o.getPerfMgr)?o.getPerfMgr():o){var a,u=void 0,e=o.getCtx(Tn);try{if(u=o.create(n(),r,i))return e&&u.setCtx&&(u.setCtx(mn.ParentContextKey,e),e.getCtx&&e.setCtx&&((a=e.getCtx(mn.ChildrenContextKey))||(a=[],e.setCtx(mn.ChildrenContextKey,a)),a.push(u))),o.setCtx(Tn,u),t(u)}catch(s){u&&u.setCtx&&u.setCtx("exception",s)}finally{u&&o.fire(u),o.setCtx(Tn,e)}}}return t()}var bn=function(i,n){var o=this,a=null,u=ue(i.processTelemetry),s=ue(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";Sn(r?r.core():null,function(){return e+":processTelemetry"},function(){if(i&&u){o._hasRun=!0;try{r.setNext(a),s&&i.setNextPlugin(a),a&&(a._hasRun=!1),i.processTelemetry(t,r)}catch(n){var e=a&&a._hasRun;a&&e||r.diagLog().throwInternal(c.LoggingSeverity.CRITICAL,W.PluginException,"Plugin ["+i.identifier+"] failed during processTelemetry - "+n),a&&!e&&a.processTelemetry(t,r)}}else a&&(o._hasRun=!0,a.processTelemetry(t,r))},function(){return{item:t}},!t.sync)}};function In(e,n){var t=[];if(e&&0<e.length)for(var r=null,i=0;i<e.length;i++){var o=e[i];o&&ue(o.processTelemetry)&&(o=new bn(o,n),t.push(o),r&&r.setNext(o),r=o)}return 0<t.length?t[0]:null}var Nn=function $t(e,i,t,n){var r,o,a,u,s=this,c=null;null!==n&&(e&&ue(e.getPlugin)?c=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),In(r,n)}(e,s,n||e.getPlugin()):n?(r=s,a=e,u=!1,(o=n)&&e&&(a=[],xe(e,function(e){!u&&e!==o||(u=!0,a.push(e))})),o&&!u&&(a=a||[]).push(o),c=In(a,r)):te(n)&&(c=In(e,s))),s.core=function(){return t},s.diagLog=function(){return hn(t,i)},s.getCfg=function(){return i},s.getExtCfg=function(e,n){var t,r;return void 0===n&&(n={}),!i||(r=i.extensionConfig)&&e&&(t=r[e]),t||n},s.getConfig=function(e,n,t){var r;return void 0===t&&(t=!1),(e=s.getExtCfg(e,null))&&!re(e[n])?r=e[n]:i&&!re(i[n])&&(r=i[n]),re(r)?t:r},s.hasNext=function(){return null!=c},s.getNext=function(){return c},s.setNext=function(e){c=e},s.processNext=function(e){var n=c;n&&(c=n.getNext(),n.processTelemetry(e,s))},s.createNew=function(e,n){return new $t((e=void 0===e?null:e)||c,i,t,n)}},En="extensionConfig",Pn="getPlugin",Mn=(Ln.prototype.initialize=function(e,n,t,r){this._baseTelInit(e,n,t,r)},Ln);function Ln(){var o=this,a=!1,u=null,s=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){s=e},o.processNext=function(e,n){n?n.processNext(e):s&&ue(s.processTelemetry)&&s.processTelemetry(e,null)},o._getTelCtx=function(e){var n=e=void 0===e?null:e;return n||(e=u||new Nn(null,{},o.core),n=s&&s[Pn]?e.createNew(null,s[Pn]):e.createNew(null,s)),n},o._baseTelInit=function(e,n,t,r){e&&ke(e,En,[],null,re),!r&&n&&(r=n.getProcessTelContext().getNext());var i=s;s&&s[Pn]&&(i=s[Pn]()),o.core=n,u=new Nn(r,e,n,i),a=!0}}var kn="processTelemetry",An="priority",Fn="setNextPlugin",_n="isInitialized";function On(n,t){for(var e=[],r=null,i=n.getNext();i;){var o=i.getPlugin();o&&(r&&ue(r[Fn])&&ue(o[kn])&&r[Fn](o),ue(o[_n])&&o[_n]()||e.push(o),r=o,i=i.getNext())}xe(e,function(e){e.initialize(n.getCfg(),n.core(),t,n.getNext())})}function Rn(e){return e.sort(function(e,n){var t=0,r=ue(n[kn]);return ue(e[kn])?t=r?e[An]-n[An]:1:r&&(t=-1),t})}var Dn,jn=(y(Un,Dn=Mn),Un._staticInit=(Pe(Mt=Un.prototype,"ChannelControls",Mt.getChannelControls),void Pe(Mt,"channelQueue",Mt.getChannelControls)),Un);function Un(){var s,r=Dn.call(this)||this;function c(e){e&&0<e.length&&(xe(e=e.sort(function(e,n){return e.priority-n.priority}),function(e){e.priority<500&&Oe("Channel has invalid priority"+e.identifier)}),s.push(e))}return r.identifier="ChannelControllerPlugin",r.priority=500,G(Un,r,function(a,u){a.setNextPlugin=function(e){},a.processTelemetry=function(n,t){s&&xe(s,function(e){0<e.length&&r._getTelCtx(t).createNew(e).processNext(n)})},a.getChannelControls=function(){return s},a.initialize=function(n,t,r){var e,i,o;a.isInitialized()||(u.initialize(n,t,r),e=(n||{}).channels,i=r,s=[],e&&xe(e,c),i&&(o=[],xe(i,function(e){500<e.priority&&o.push(e)}),c(o)),xe(s,function(e){return On(new Nn(e,n,t),r)}))}}),r}var zn="toGMTString",Kn="toUTCString",Bn="cookie",Vn="expires",Gn="enabled",Wn="isCookieUseDisabled",qn="disableCookiesUsage",Hn="_ckMgr",Jn="",Qn=null,$n=null,Xn=null,Zn=Ye(),Yn={},et={};function nt(e,n){var t=rt[Hn]||et[Hn];return t||(t=rt[Hn]=rt(e,n),et[Hn]=t),t}function tt(e){return!e||e.isEnabled()}function rt(e,i){var n,t,c=(ke(t=(n=e||et).cookieCfg=n.cookieCfg||{},"domain",n.cookieDomain,ie,re),ke(t,"path",n.cookiePath||"/",null,re),re(t[Gn])&&(e=void 0,te(n[Wn])||(e=!n[Wn]),te(n[qn])||(e=!n[qn]),t[Gn]=e),t),l=c.path||"/",f=c.domain,r=!1!==c[Gn],g={isEnabled:function(){var e=r&&it(i),n=et[Hn];return e&&n&&g!==n?tt(n):e},setEnabled:function(e){r=!1!==e},set:function(e,n,t,r,i){var o,a,u,s=!1;return tt(g)&&(o={},-1!=(u=(a=be(n||Jn)).indexOf(";"))&&(a=be(n.substring(0,u)),o=ot(n.substring(1+u))),ke(o,"domain",r||f,_e,te),re(t)||(u=fn(),!te(o[Vn])||0<(n=Me()+1e3*t)&&((r=new Date).setTime(n),ke(o,Vn,at(r,u?zn:Kn)||at(r,u?zn:Kn)||Jn,_e)),u||ke(o,"max-age",Jn+t,null,te)),(t=rn())&&"https:"===t.protocol&&(ke(o,"secure",null,null,te),($n=null===$n?!ct((nn()||{}).userAgent):$n)&&ke(o,"SameSite","None",null,te)),ke(o,"path",i||l,null,te),(c.setCookie||st)(e,ut(a,o)),s=!0),s},get:function(e){var n=Jn;return tt(g)?(c.getCookie||function(e){var n,t=Jn;return Zn&&(n=Zn[Bn]||Jn,Xn!==n&&(Yn=ot(n),Xn=n),t=be(Yn[e]||Jn)),t})(e):n},del:function(e,n){return!!tt(g)&&g.purge(e,n)},purge:function(e,n){var t,r=!1;return it(i)&&((t={}).path=n||"/",t[Vn]="Thu, 01 Jan 1970 00:00:01 GMT",fn()||(t["max-age"]="0"),(c.delCookie||st)(e,ut(Jn,t)),r=!0),r}};return g[Hn]=g}function it(e){if(null===Qn){Qn=!1;try{Qn=(Zn||{})[Bn]!==undefined}catch(n){e&&e.throwInternal(c.LoggingSeverity.WARNING,W.CannotAccessCookie,"Cannot access document.cookie - "+Le(n),{exception:gn(n)})}}return Qn}function ot(e){var t={};return e&&e.length&&xe(be(e).split(";"),function(e){var n;(e=be(e||Jn))&&(-1==(n=e.indexOf("="))?t[e]=null:t[be(e.substring(0,n))]=be(e.substring(1+n)))}),t}function at(e,n){return ue(e[n])?e[n]():null}function ut(e,n){var t=e||Jn;return le(n,function(e,n){t+="; "+e+(re(n)?Jn:"="+n)}),t}function st(e,n){Zn&&(Zn[Bn]=e+"="+n)}function ct(e){return!(!he(e)||!ge(e,"CPU iPhone OS 12")&&!ge(e,"iPad; CPU OS 12")&&!(ge(e,"Macintosh; Intel Mac OS X 10_14")&&ge(e,"Version/")&&ge(e,"Safari"))&&(!ge(e,"Macintosh; Intel Mac OS X 10_14")||!fe(e,"AppleWebKit/605.1.15 (KHTML, like Gecko)"))&&!ge(e,"Chrome/5")&&!ge(e,"Chrome/6")&&(!ge(e,"UnrealEngine")||ge(e,"Chrome"))&&!ge(e,"UCBrowser/12")&&!ge(e,"UCBrowser/11"))}var lt="_notificationManager";function ft(e,n){return new wn(n)}var gt,dt=function Xt(){var n,u,s,t,r,c=!1;G(Xt,this,function(a){a._extensions=[],u=new jn,a.logger=p({throwInternal:function(e,n,t,r,i){},warnToConsole:function(e){},resetInternalMessageCount:function(){}}),n=[],a.isInitialized=function(){return c},a.initialize=function(e,n,r,t){a.isInitialized()&&Oe("Core should not be initialized more than once"),e&&!re(e.instrumentationKey)||Oe("Please provide instrumentation key"),s=t,a[lt]=t,a.config=e||{},a.config.enablePerfMgr&&ke(a.config,"createPerfMgr",ft),e.extensions=re(e.extensions)?[]:e.extensions,Ae(e,En).NotificationManager=t,r&&(a.logger=r),(t=[]).push.apply(t,C(C([],n),e.extensions));var t=Rn(t),i=[],o={};xe(t,function(e){(re(e)||re(e.initialize))&&Oe("Extensions must provide callback to initialize");var n=e.priority,t=e.identifier;e&&n&&(re(o[n])?o[n]=t:r.warnToConsole("Two extensions have same priority #"+n+" - "+o[n]+", "+t)),(!n||n<u.priority)&&i.push(e)}),t.push(u),i.push(u),t=Rn(t),a._extensions=t,On(new Nn([u],e,a),t),On(new Nn(i,e,a),t),a._extensions=i,0===a.getTransmissionControls().length&&Oe("No channels available"),c=!0,a.releaseQueue()},a.getTransmissionControls=function(){return u.getChannelControls()},a.track=function(e){ke(e,"iKey",a.config.instrumentationKey,null,Fe),ke(e,"time",me(new Date),null,Fe),ke(e,"ver","4.0",null,re),a.isInitialized()?a.getProcessTelContext().processNext(e):n.push(e)},a.getProcessTelContext=function(){var e=a._extensions,n=e;return e&&0!==e.length||(n=[u]),new Nn(n,a.config,a)},a.getNotifyMgr=function(){return s||(s=p({addNotificationListener:function(e){},removeNotificationListener:function(e){},eventsSent:function(e){},eventsDiscarded:function(e,n){},eventsSendRequest:function(e,n){}}),a[lt]=s),s},a.getCookieMgr=function(){return r=r||rt(a.config,a.logger)},a.setCookieMgr=function(e){r=e},a.getPerfMgr=function(){return t||a.config&&a.config.enablePerfMgr&&ue(a.config.createPerfMgr)&&(t=a.config.createPerfMgr(a,a.getNotifyMgr())),t||Cn},a.setPerfMgr=function(e){t=e},a.eventCnt=function(){return n.length},a.releaseQueue=function(){0<n.length&&(xe(n,function(e){a.getProcessTelContext().processNext(e)}),n=[])}})},vt=function Zt(e){this.listeners=[];var n=!!(e||{}).perfEvtsSendAll;G(Zt,this,function(i){i.addNotificationListener=function(e){i.listeners.push(e)},i.removeNotificationListener=function(e){for(var n=we(i.listeners,e);-1<n;)i.listeners.splice(n,1),n=we(i.listeners,e)},i.eventsSent=function(n){xe(i.listeners,function(e){e&&e.eventsSent&&setTimeout(function(){return e.eventsSent(n)},0)})},i.eventsDiscarded=function(n,t){xe(i.listeners,function(e){e&&e.eventsDiscarded&&setTimeout(function(){return e.eventsDiscarded(n,t)},0)})},i.eventsSendRequest=function(t,r){xe(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()||xe(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){}}))}})},e=(y(pt,gt=dt),pt);function pt(){var e=gt.call(this)||this;return G(pt,e,function(t,i){function n(e){var n=t.getNotifyMgr();n&&n.eventsDiscarded([e],r.InvalidEvent)}t.initialize=function(e,n,t,r){i.initialize(e,n,t||new yn(e),r||new vt(e))},t.track=function(e){Sn(t.getPerfMgr(),function(){return"AppInsightsCore:track"},function(){null===e&&(n(e),Oe("Invalid telemetry item")),function(){if(re(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 setInterval(function(){var e=t.logger?t.logger.queue:[];xe(e,function(e){e={name:n||"InternalMessageId: "+e.messageId,iKey:t.config.instrumentationKey,time:me(new Date),baseType:vn.dataType,baseData:{message:e.message}},t.track(e)}),e.length=0},e=e&&0<e?e:1e4)}}),e}var ht=4294967296,yt=4294967295,Ct=!1,mt=123456789,xt=987654321;function wt(e){e<0&&(e>>>=0),mt=123456789+e&yt,xt=987654321-e&yt,Ct=!0}function Tt(){try{var e=2147483647&Me();wt((Math.random()*ht^e)+e)}catch(n){}}function St(e){return 0<e?Math.floor(bt()/yt*(e+1))>>>0:0}function bt(e){var n=(n=cn()||ln())&&n.getRandomValues?n.getRandomValues(new Uint32Array(1))[0]&yt:fn()?(Ct||Tt(),Nt()&yt):Math.floor(ht*Math.random()|0);return e||(n>>>=0),n}function It(e){e?wt(e):Tt()}function Nt(e){var n=((xt=36969*(65535&xt)+(xt>>16)&yt)<<16)+(65535&(mt=18e3*(65535&mt)+(mt>>16)&yt))>>>0&yt|0;return e||(n>>>=0),n}var Et,Pt=null,Mt=n;function Lt(e,n){var t=!1,r=Xe();return r&&(t=se(r,e,n),t=se(r.body,e,n)||t),(r=Ye())&&Dt.Attach(r,e,n)||t}function kt(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(Rt,function(e){var n=0|St(15);return("x"===e?n:3&n|8).toString(16)})}function At(){var e=an();return e&&e.now?e.now():Me()}function Ft(e){void 0===e&&(e=22);for(var n=bt()>>>0,t=0,r="";r.length<e;)r+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"[0|63&n]||"",n>>>=6,5==++t&&(n=(bt()<<2&4294967295|3&n)>>>0,t=0);return r}function _t(){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=bt())]+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&bt())|0];return t.substr(0,8)+t.substr(9,4)+"4"+t.substr(13,3)+i+t.substr(16,3)+t.substr(19,12)}var Ot={_canUseCookies:undefined,isTypeof:ne,isUndefined:te,isNullOrUndefined:re,hasOwnProperty:oe,isFunction:ue,isObject:ae,isDate:de,isArray:ve,isError:pe,isString:he,isNumber:ye,isBoolean:Ce,toISOString:me,arrForEach:xe,arrIndexOf:we,arrMap:Te,arrReduce:Se,strTrim:be,objCreate:p,objKeys:Ee,objDefineAccessors:Pe,addEventHandler:Lt,dateNow:Me,isIE:fn,disableCookies:Ut,newGuid:kt,perfNow:At,newId:Ft,randomValue:St,random32:bt,mwcRandomSeed:It,mwcRandom32:Nt,generateW3CId:_t},Rt=/[xy]/g,Dt={Attach:se,AttachEvent:se,Detach:ce,DetachEvent:ce};function jt(e,n){return e=nt(e,n),n=Ot._canUseCookies,null===Pt&&(Pt=[],Et=n,Pe(Ot,"_canUseCookies",function(){return Et},function(n){Et=n,xe(Pt,function(e){e.setEnabled(n)})})),-1===we(Pt,e)&&Pt.push(e),Ce(n)&&e.setEnabled(n),Ce(Et)&&e.setEnabled(Et),e}function Ut(){jt().setEnabled(!1)}var zt="_aiHooks",Kt=["req","rsp","hkErr","fnErr"];function Bt(e,n){if(e)for(var t=0;t<e.length&&!n(e[t],t);t++);}function Vt(e,a,u,s,c){0<=c&&c<=2&&Bt(e,function(e,n){var t=e.cbks;if(e=t[Kt[c]]){a.ctx=function(){return s[n]=s[n]||{}};try{e.apply(a.inst,u)}catch(i){e=a.err;try{var r=t[Kt[2]];r&&(a.err=i,r.apply(a.inst,u))}catch(o){}finally{a.err=e}}}})}function Gt(s){return function(){var t=arguments,e=s.h,r={name:s.n,inst:this,ctx:null,set:function(e,n){(t=o([],t))[e]=n,i=o([r],t)}},n=[],i=o([r],t);function o(n,e){return Bt(e,function(e){n.push(e)}),n}Vt(e,r,i,n,0);var a=s.f;try{r.rslt=a.apply(this,t)}catch(u){throw r.err=u,Vt(e,r,i,n,3),u}return Vt(e,r,i,n,1),r.rslt}}var Wt=Object.getPrototypeOf;function qt(e,n,t,r){if(void 0===r&&(r=!0),e&&n&&t&&(e=function o(e,n,t){var r=null;return e&&(oe(e,n)?r=e:t&&(r=o(function(e){if(e){if(Wt)return Wt(e);if(e=e.__proto__||e[s]||e.constructor)return e}return null}(e),n,!1))),r}(e,n,r))&&typeof(r=e[n])===a){var i=r[zt];return i||((r=Gt(i={i:0,n:n,f:r,h:[]}))[zt]=i,e[n]=r),t={id:i.i,cbks:t,rm:function(){var t=this.id;Bt(i.h,function(e,n){return e.id===t&&(i.h.splice(n,1),1)})}},i.i++,i.h.push(t),t}return null}function Ht(n,e,t,r){void 0===r&&(r=!0);var i=null;return Bt(e,function(e){(e=qt(n,e,t,r))&&(i=i||[]).push(e)}),i}c.AppInsightsCore=e,c.BaseCore=dt,c.BaseTelemetryPlugin=Mn,c.CoreUtils=Ot,c.DiagnosticLogger=yn,c.EventHelper=Dt,c.EventsDiscardedReason=r,c.InstrumentFunc=qt,c.InstrumentFuncs=Ht,c.InstrumentProto=function(e,n,t){return e?qt(e[s],n,t,!1):null},c.InstrumentProtos=function(e,n,t){return e?Ht(e[s],n,t,!1):null},c.MinChannelPriorty=100,c.NotificationManager=vt,c.PerfEvent=mn,c.PerfManager=wn,c.ProcessTelemetryContext=Nn,c.Undefined=Mt,c._InternalLogMessage=vn,c._InternalMessageId=W,c._legacyCookieMgr=jt,c.addEventHandler=Lt,c.areCookiesSupported=it,c.arrForEach=xe,c.arrIndexOf=we,c.arrMap=Te,c.arrReduce=Se,c.attachEvent=se,c.canUseCookies=function(e){return jt(null,e).isEnabled()},c.createClassFromInterface=function(e){return function(){var t=this;e&&le(e,function(e,n){t[e]=n})}},c.createCookieMgr=rt,c.dateNow=Me,c.deleteCookie=function(e,n){return jt(null,e).del(n)},c.detachEvent=ce,c.disableCookies=Ut,c.doPerf=Sn,c.dumpObj=gn,c.generateW3CId=_t,c.getConsole=on,c.getCookie=function(e,n){return jt(null,e).get(n)},c.getCrypto=cn,c.getDocument=Ye,c.getExceptionName=Le,c.getGblPerfMgr=function(){return Cn},c.getGlobal=d,c.getGlobalInst=Qe,c.getHistory=function(){return tn()?history:Qe("history")},c.getIEVersion=function(e){var n;return ge(e=((e=(e=void 0===e?null:e)?e:(n=nn()||{})?(n.userAgent||"").toLowerCase():"")||"").toLowerCase(),Ge)?parseInt(e.split(Ge)[1]):ge(e,We)&&(e=parseInt(e.split(We)[1]))?e+4:null},c.getJSON=sn,c.getLocation=rn,c.getMsCrypto=ln,c.getNavigator=nn,c.getPerformance=an,c.getSetValue=Ae,c.getWindow=Xe,c.hasDocument=Ze,c.hasHistory=tn,c.hasJSON=un,c.hasNavigator=en,c.hasOwnProperty=oe,c.hasWindow=$e,c.initializePlugins=On,c.isArray=ve,c.isBoolean=Ce,c.isDate=de,c.isError=pe,c.isFunction=ue,c.isIE=fn,c.isNotNullOrUndefined=ie,c.isNotTruthy=Fe,c.isNotUndefined=function(e){return!te(e)},c.isNullOrUndefined=re,c.isNumber=ye,c.isObject=ae,c.isReactNative=function(){var e=nn();return!(!e||!e.product)&&"ReactNative"===e.product},c.isSafari=function(e){var n;return!!~((e=e&&he(e)?e:(n=nn()||{})?(n.userAgent||"").toLowerCase():"")||"").toLowerCase().indexOf("safari")},c.isString=he,c.isSymbol=function(e){return"symbol"==typeof e},c.isTruthy=_e,c.isTypeof=ne,c.isUndefined=te,c.mwcRandom32=Nt,c.mwcRandomSeed=It,c.newGuid=kt,c.newId=Ft,c.normalizeJsName=function(e){var n=e,t=/([^\w\d_$])/g;return t.test(e)?e.replace(t,"_"):n},c.objCreate=p,c.objDefineAccessors=Pe,c.objForEachKey=le,c.objFreeze=function(e){return Z?Z(e):e},c.objKeys=Ee,c.objSeal=function(e){return Y?Y(e):e},c.optimizeObject=function(e){return e&&t(l?l({},e):e)},c.perfNow=At,c.proxyAssign=function(r,i,o){if(r&&i&&r!==i&&ae(r)&&ae(i))for(var e in i)!function(n){var e,t;he(n)&&(ue(e=i[n])?o&&!o(n,!0,i,r)||(r[n]=(t=n,function(){return i[t].apply(i,arguments)})):o&&!o(n,!1,i,r)||(oe(r,n)&&delete r[n],Pe(r,n,function(){return i[n]},function(e){i[n]=e})||(r[n]=e)))}(e);return r},c.random32=bt,c.randomValue=St,c.safeGetCookieMgr=function(e,n){var t;return e?t=e.getCookieMgr():n&&(t=n.cookieCfg[Hn]||rt(n)),t||nt(n,(e||{}).logger)},c.safeGetLogger=hn,c.setCookie=function(e,n,t,r){jt(null,e).set(n,t,null,r)},c.setEnableEnvMocks=function(e){Je=e},c.setGblPerfMgr=function(e){Cn=e},c.setValue=ke,c.sortPlugins=Rn,c.strContains=ge,c.strEndsWith=fe,c.strExtensionConfig=En,c.strFunction=a,c.strIKey="iKey",c.strObject=u,c.strPrototype=s,c.strStartsWith=function(e,n){var t=!1;if(e&&n){var r=n.length;if(e===n)return!0;if(e.length>=r){for(var i=0;i<r;i++)if(e[i]!==n[i])return!1;t=!0}}return t},c.strTrim=be,c.strUndefined=n,c.throwError=Oe,c.toISOString=me,c.uaDisallowsSameSiteNone=ct,function(e,n,t){var r=Object.defineProperty;if(r)try{return r(e,n,t)}catch(i){}typeof t.value!==undefined&&(e[n]=t.value)}(c,"__esModule",{value:!0})});
//# sourceMappingURL=applicationinsights-core-js.min.js.map
{
"name": "@microsoft/applicationinsights-core-js",
"author": "Microsoft Application Insights Team",
"version": "2.6.5",
"version": "2.7.0-beta.1",
"description": "Microsoft Application Insights Core Javascript SDK",

@@ -41,3 +41,3 @@ "homepage": "https://github.com/microsoft/ApplicationInsights-JS#readme",

"@microsoft/applicationinsights-rollup-es3": "1.1.3",
"@microsoft/api-extractor": "^7.9.11",
"@microsoft/api-extractor": "^7.18.1",
"grunt": "^1.4.1",

@@ -47,2 +47,3 @@ "grunt-cli": "^1.4.3",

"@nevware21/grunt-ts-plugin": "^0.4.3",
"@nevware21/grunt-eslint-ts": "^0.2.1",
"globby": "^11.0.0",

@@ -56,14 +57,17 @@ "magic-string": "^0.25.7",

"rollup": "^2.32.0",
"tslint": "^5.19.0",
"tslint-config-prettier": "^1.18.0",
"tslint-microsoft-contrib": "^5.2.1",
"typescript": "2.5.3",
"tslib": "^1.13.0",
"typescript": "^4.3.4",
"tslib": "^2.0.0",
"qunit": "^2.11.2",
"sinon": "^7.3.1"
},
"peerDependencies": {
"tslib": "*"
},
"dependencies": {
"@microsoft/applicationinsights-shims": "2.0.0",
"@microsoft/dynamicproto-js": "^1.1.4"
},
"publishConfig": {
"tag": "beta"
}
}

@@ -101,4 +101,5 @@ // Copyright (c) Microsoft Corporation. All rights reserved.

InvalidContentBlob: 102,
TrackPageActionEventFailed: 103
TrackPageActionEventFailed: 103,
FailedAddingCustomDefinedRequestContext: 104
};
export type _InternalMessageId = number | typeof _InternalMessageId;

@@ -6,2 +6,5 @@ // Copyright (c) Microsoft Corporation. All rights reserved.

import { ICookieMgrConfig } from "./ICookieMgr";
import { INotificationManager } from "./INotificationManager";
import { IPerfManager } from "./IPerfManager";
import { IAppInsightsCore } from "./IAppInsightsCore";

@@ -103,2 +106,9 @@ "use strict";

/**
* [Optional] Callback function that will be called to create a the IPerfManager instance when required and ```enablePerfMgr```
* is enabled, this enables you to override the default creation of a PerfManager() without needing to ```setPerfMgr()```
* after initialization.
*/
createPerfMgr?: (core: IAppInsightsCore, notificationManager: INotificationManager) => IPerfManager;
/**
* [Optional] Fire every single performance event not just the top level root performance event. Defaults to false.

@@ -105,0 +115,0 @@ */

@@ -23,4 +23,5 @@ // Copyright (c) Microsoft Corporation. All rights reserved.

* @param path - [optional] Path to set for the cookie, if not supplied will default to "/"
* @returns - True if the cookie was set otherwise false (Because cookie usage is not enabled or available)
*/
set(name: string, value: string, maxAgeSec?: number, domain?: string, path?: string): void;
set(name: string, value: string, maxAgeSec?: number, domain?: string, path?: string): boolean;

@@ -38,4 +39,5 @@ /**

* @param path - [optional] Path to set for the cookie, if not supplied will default to "/"
* @returns - True if the cookie was marked for deletion otherwise false (Because cookie usage is not enabled or available)
*/
del(name: string, path?: string): void;
del(name: string, path?: string): boolean;

@@ -48,4 +50,5 @@ /**

* @param path - [optional] Path to set for the cookie, if not supplied will default to "/"
* @returns - True if the cookie was marked for deletion otherwise false (Because cookie usage is not available)
*/
purge(name: string, path?: string): void;
purge(name: string, path?: string): boolean;
}

@@ -57,3 +60,4 @@

export interface ICookieMgrConfig {
/** Defaults to true, A boolean that indicates whether the use of cookies by the SDK is enabled by the current instance.
/**
* Defaults to true, A boolean that indicates whether the use of cookies by the SDK is enabled by the current instance.
* If false, the instance of the SDK initialized by this configuration will not store or read any data from cookies

@@ -60,0 +64,0 @@ */

@@ -21,6 +21,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved.

import { IPerfManager } from "../JavaScriptSDK.Interfaces/IPerfManager";
import { PerfManager } from "./PerfManager";
import { getGblPerfMgr, PerfManager } from "./PerfManager";
import { ICookieMgr } from "../JavaScriptSDK.Interfaces/ICookieMgr";
import { createCookieMgr } from "./CookieMgr";
import { arrForEach, isNullOrUndefined, toISOString, getSetValue, setValue, throwError, isNotTruthy } from "./HelperFuncs";
import { arrForEach, isNullOrUndefined, toISOString, getSetValue, setValue, throwError, isNotTruthy, isFunction } from "./HelperFuncs";
import { strExtensionConfig, strIKey } from "./Constants";

@@ -32,2 +32,11 @@

/**
* Helper to create the default performance manager
* @param core
* @param notificationMgr
*/
function _createPerfManager (core: IAppInsightsCore, notificationMgr: INotificationManager) {
return new PerfManager(notificationMgr);
}
export class BaseCore implements IAppInsightsCore {

@@ -77,2 +86,7 @@ public static defaultConfig: IConfiguration;

if (_self.config.enablePerfMgr) {
// Set the performance manager creation function if not defined
setValue(_self.config, "createPerfMgr", _createPerfManager);
}
config.extensions = isNullOrUndefined(config.extensions) ? [] : config.extensions;

@@ -221,8 +235,8 @@

if (!_perfManager) {
if (_self.config && _self.config.enablePerfMgr) {
_perfManager = new PerfManager(_self.getNotifyMgr());
if (_self.config && _self.config.enablePerfMgr && isFunction(_self.config.createPerfMgr)) {
_perfManager = _self.config.createPerfMgr(_self, _self.getNotifyMgr());
}
}
return _perfManager;
return _perfManager || getGblPerfMgr();
};

@@ -306,3 +320,2 @@

}
}

@@ -139,2 +139,3 @@ // Copyright (c) Microsoft Corporation. All rights reserved.

set: (name: string, value: string, maxAgeSec?: number, domain?: string, path?: string) => {
let result = false;
if (_isMgrEnabled(cookieMgr)) {

@@ -193,3 +194,6 @@ let values: any = {};

setCookieFn(name, _formatCookieValue(theValue, values));
result = true;
}
return result;
},

@@ -205,8 +209,12 @@ get: (name: string): string => {

del: (name: string, path?: string) => {
let result = false;
if (_isMgrEnabled(cookieMgr)) {
// Only remove the cookie if the manager and cookie support has not been disabled
cookieMgr.purge(name, path);
result = cookieMgr.purge(name, path);
}
return result;
},
purge: (name: string, path?: string) => {
let result = false;
if (areCookiesSupported(logger)) {

@@ -226,3 +234,6 @@ // Setting the expiration date in the past immediately removes the cookie

delCookie(name, _formatCookieValue(strEmpty, values));
result = true;
}
return result;
}

@@ -229,0 +240,0 @@ };

@@ -12,2 +12,4 @@ // Copyright (c) Microsoft Corporation. All rights reserved.

let _defaultPerfManager: IPerfManager = null;
export class PerfEvent implements IPerfEvent {

@@ -162,3 +164,3 @@ public static ParentContextKey = "parent";

if (manager) {
if (manager && isFunction(manager.perfEvent)) {
manager.perfEvent(perfEvent);

@@ -278,2 +280,18 @@ }

return func();
}
/**
* Set the global performance manager to use when there is no core instance or it has not been initialized yet.
* @param perfManager - The IPerfManager instance to use when no performance manager is supplied.
*/
export function setGblPerfMgr(perfManager: IPerfManager) {
_defaultPerfManager = perfManager;
}
/**
* Get the current global performance manager that will be used with no performance manager is supplied.
* @returns - The current default manager
*/
export function getGblPerfMgr(): IPerfManager {
return _defaultPerfManager;
}

@@ -14,2 +14,4 @@ {

"alwaysStrict": true,
"skipLibCheck": true,
"skipDefaultLibCheck": true,
"declaration": true,

@@ -16,0 +18,0 @@ "declarationDir": "shared/AppInsightsCore/types",

@@ -25,3 +25,3 @@ export { IConfiguration } from "./JavaScriptSDK.Interfaces/IConfiguration";

export { IPerfManager, IPerfManagerProvider } from './JavaScriptSDK.Interfaces/IPerfManager';
export { PerfEvent, PerfManager, doPerf } from './JavaScriptSDK/PerfManager';
export { PerfEvent, PerfManager, doPerf, getGblPerfMgr, setGblPerfMgr } from './JavaScriptSDK/PerfManager';
export { safeGetLogger, DiagnosticLogger, _InternalLogMessage } from './JavaScriptSDK/DiagnosticLogger';

@@ -28,0 +28,0 @@ export { ProcessTelemetryContext } from './JavaScriptSDK/ProcessTelemetryContext';

@@ -5,8 +5,26 @@ /**

export declare const EventsDiscardedReason: {
/**
* Unknown.
*/
Unknown: number;
/**
* Status set to non-retryable.
*/
NonRetryableStatus: number;
/**
* The event is invalid.
*/
InvalidEvent: number;
/**
* The size of the event is too large.
*/
SizeLimitExceeded: number;
/**
* The server is not accepting events from this instrumentation key.
*/
KillSwitch: number;
/**
* The event queue is full.
*/
QueueFull: number;
};

@@ -9,3 +9,3 @@ export declare enum LoggingSeverity {

*/
WARNING = 2,
WARNING = 2
}

@@ -96,3 +96,4 @@ /**

TrackPageActionEventFailed: number;
FailedAddingCustomDefinedRequestContext: number;
};
export declare type _InternalMessageId = number | typeof _InternalMessageId;

@@ -40,3 +40,3 @@ /**

*/
MaxQueuedEvents = 20,
MaxQueuedEvents = 20
}
import { ITelemetryPlugin } from "./ITelemetryPlugin";
import { IChannelControls } from "./IChannelControls";
import { ICookieMgrConfig } from "./ICookieMgr";
import { INotificationManager } from "./INotificationManager";
import { IPerfManager } from "./IPerfManager";
import { IAppInsightsCore } from "./IAppInsightsCore";
/**

@@ -87,2 +90,8 @@ * Configuration provided to SDK core

/**
* [Optional] Callback function that will be called to create a the IPerfManager instance when required and ```enablePerfMgr```
* is enabled, this enables you to override the default creation of a PerfManager() without needing to ```setPerfMgr()```
* after initialization.
*/
createPerfMgr?: (core: IAppInsightsCore, notificationManager: INotificationManager) => IPerfManager;
/**
* [Optional] Fire every single performance event not just the top level root performance event. Defaults to false.

@@ -89,0 +98,0 @@ */

@@ -17,4 +17,5 @@ export interface ICookieMgr {

* @param path - [optional] Path to set for the cookie, if not supplied will default to "/"
* @returns - True if the cookie was set otherwise false (Because cookie usage is not enabled or available)
*/
set(name: string, value: string, maxAgeSec?: number, domain?: string, path?: string): void;
set(name: string, value: string, maxAgeSec?: number, domain?: string, path?: string): boolean;
/**

@@ -30,4 +31,5 @@ * Get the value of the named cookie

* @param path - [optional] Path to set for the cookie, if not supplied will default to "/"
* @returns - True if the cookie was marked for deletion otherwise false (Because cookie usage is not enabled or available)
*/
del(name: string, path?: string): void;
del(name: string, path?: string): boolean;
/**

@@ -39,4 +41,5 @@ * Purge the cookie from the system if cookie support is available, this function ignores the enabled setting of the manager

* @param path - [optional] Path to set for the cookie, if not supplied will default to "/"
* @returns - True if the cookie was marked for deletion otherwise false (Because cookie usage is not available)
*/
purge(name: string, path?: string): void;
purge(name: string, path?: string): boolean;
}

@@ -47,3 +50,4 @@ /**

export interface ICookieMgrConfig {
/** Defaults to true, A boolean that indicates whether the use of cookies by the SDK is enabled by the current instance.
/**
* Defaults to true, A boolean that indicates whether the use of cookies by the SDK is enabled by the current instance.
* If false, the instance of the SDK initialized by this configuration will not store or read any data from cookies

@@ -50,0 +54,0 @@ */

@@ -301,2 +301,2 @@ import { IConfiguration } from "../JavaScriptSDK.Interfaces/IConfiguration";

*/
export declare function deleteCookie(logger: IDiagnosticLogger, name: string): void;
export declare function deleteCookie(logger: IDiagnosticLogger, name: string): boolean;

@@ -84,1 +84,11 @@ import { INotificationManager } from '../JavaScriptSDK.Interfaces/INotificationManager';

export declare function doPerf<T>(mgrSource: IPerfManagerProvider | IPerfManager, getSource: () => string, func: (perfEvt?: IPerfEvent) => T, details?: () => any, isAsync?: boolean): T;
/**
* Set the global performance manager to use when there is no core instance or it has not been initialized yet.
* @param perfManager - The IPerfManager instance to use when no performance manager is supplied.
*/
export declare function setGblPerfMgr(perfManager: IPerfManager): void;
/**
* Get the current global performance manager that will be used with no performance manager is supplied.
* @returns - The current default manager
*/
export declare function getGblPerfMgr(): IPerfManager;

@@ -8,5 +8,5 @@ // This file is read by tools that parse documentation comments conforming to the TSDoc standard.

"packageName": "@microsoft/api-extractor",
"packageVersion": "7.18.4"
"packageVersion": "7.18.5"
}
]
}

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc