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.7.1-nightly.202110-05 to 2.7.1-nightly.202110-06

18

browser/applicationinsights-core-js.integrity.json
{
"name": "applicationinsights-core-js",
"version": "2.7.1-nightly.202110-05",
"version": "2.7.1-nightly.202110-06",
"ext": {

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

"type": "text/javascript; charset=utf-8",
"integrity": "sha256-y5KSsC1KKcJRzsxfkbFVQUmysi2eAz11BsUAOKr3cLc= sha384-TKE0+luJdhwZ7ZGfqEIJFwfHstXM/beXhtbsUUy2+q7pd59GB/tbX3T8ApK14DMm sha512-putavp7yyr1fMMcowos3ro0WrEGn7fsTM2MHDykNLU9nSCNXKqjZzcsGyZzmYkCkvuCI67YE3t5Wgyi+hkuVRw==",
"integrity": "sha256-Kqx/4k/0H9XTz6J/ACvTTE2W5nRre2Td/pAi/CzWBpU= sha384-yLh/NtMffa+U6BNGrbHZl23tvSuFlT3/Ck5FgiqoBt5Xm7kmLqNJW8qQeBbTeFXG sha512-aGXg89/F+kyTMPCD2FTaIvdAdxB87dI6xjLfUV3Kv1hTUgsoOnHvkHSaAuiLD+XJJCAqwWo6Iz2q0Ar/XTWrtg==",
"hashes": {
"sha256": "y5KSsC1KKcJRzsxfkbFVQUmysi2eAz11BsUAOKr3cLc=",
"sha384": "TKE0+luJdhwZ7ZGfqEIJFwfHstXM/beXhtbsUUy2+q7pd59GB/tbX3T8ApK14DMm",
"sha512": "putavp7yyr1fMMcowos3ro0WrEGn7fsTM2MHDykNLU9nSCNXKqjZzcsGyZzmYkCkvuCI67YE3t5Wgyi+hkuVRw=="
"sha256": "Kqx/4k/0H9XTz6J/ACvTTE2W5nRre2Td/pAi/CzWBpU=",
"sha384": "yLh/NtMffa+U6BNGrbHZl23tvSuFlT3/Ck5FgiqoBt5Xm7kmLqNJW8qQeBbTeFXG",
"sha512": "aGXg89/F+kyTMPCD2FTaIvdAdxB87dI6xjLfUV3Kv1hTUgsoOnHvkHSaAuiLD+XJJCAqwWo6Iz2q0Ar/XTWrtg=="
}

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

"type": "text/javascript; charset=utf-8",
"integrity": "sha256-Ely54K+3eVOWtMbrGRR1iwsEyjobOVY8OiBLOXByrX8= sha384-6iRbuI7W42xIFSLhHAS2j8ad20XckER7qVq6G7ObeRcAOrYkF7FP2nc3X3h/IIxJ sha512-dlS4JelqpZHr00DjfBkFxDFko0/ADlqdBIZ7Ha5wzPxQZBu9vMhim0LWTXyHIhUBUD3Fi4NW6UTcfm1KAON1+g==",
"integrity": "sha256-t9JbzAYXNdIjN8k4EVQC/HL0mkBflc/d6U6kOdmY7lY= sha384-Gd/ApAJYea0uUzI9cIgzjxtFhfBVWq+jQ0oPJa32Xk5qt9vk1uFC04puSWxdsXfu sha512-KDixO6mLRcNp7QUBSJjT2wGL/ygGNpY7VDl9bUb7Z81S1o+4NL1NJMliasaZ/pq8qw3FwYxAINVwA8uC9l9o2A==",
"hashes": {
"sha256": "Ely54K+3eVOWtMbrGRR1iwsEyjobOVY8OiBLOXByrX8=",
"sha384": "6iRbuI7W42xIFSLhHAS2j8ad20XckER7qVq6G7ObeRcAOrYkF7FP2nc3X3h/IIxJ",
"sha512": "dlS4JelqpZHr00DjfBkFxDFko0/ADlqdBIZ7Ha5wzPxQZBu9vMhim0LWTXyHIhUBUD3Fi4NW6UTcfm1KAON1+g=="
"sha256": "t9JbzAYXNdIjN8k4EVQC/HL0mkBflc/d6U6kOdmY7lY=",
"sha384": "Gd/ApAJYea0uUzI9cIgzjxtFhfBVWq+jQ0oPJa32Xk5qt9vk1uFC04puSWxdsXfu",
"sha512": "KDixO6mLRcNp7QUBSJjT2wGL/ygGNpY7VDl9bUb7Z81S1o+4NL1NJMliasaZ/pq8qw3FwYxAINVwA8uC9l9o2A=="
}

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

/*!
* Application Insights JavaScript SDK - Core, 2.7.1-nightly.202110-05
* Application Insights JavaScript SDK - Core, 2.7.1-nightly.202110-06
* 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 o={Unknown:0,NonRetryableStatus:1,InvalidEvent:2,SizeLimitExceeded:3,KillSwitch:4,QueueFull:5},a="function",u="object",n="undefined",s="prototype",r="hasOwnProperty",t=Object,i=t[s],l=t.assign,f=t.create,e=t.defineProperty,g=i[r];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[r](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 m(e,n){for(var t=0,r=n.length,i=e.length;t<r;t++,i++)e[i]=n[t];return e}var C="constructor",x="prototype",w="function",T="_dynInstFuncs",S="_isDynProxy",I="_dynClass",b="_dynInstChk",N=b,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[C]?e[C][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!==C&&typeof e[n]===w&&(t||O(e,n))}function B(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 q(e,n){return O(e,x)?e.name||n||P:((e||{})[C]||{}).name||n||P}function V(e,r,n,t){O(e,x)||B("theClass is an invalid class definition.");var i=e[x];!function(e){if(F)for(var n=[],t=j(r);t&&!D(t)&&!K(n,t);){if(t===e)return 1;n.push(t),t=j(t)}}(i)&&B("["+q(e)+"] is not in class hierarchy of ["+q(r)+"]");var o=null;O(i,I)?o=i[I]:(o="_dynCls$"+q(e,"_")+"$"+_,_++,i[I]=o);var a=V[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[I]]||{})[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)&&!K(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,I)){var o=e[T]||{};if((i=(o[t[I]]||{})[n])||B("Missing ["+n+"] "+w),!i[b]&&!1!==o[N]){for(var a=!O(e,n),u=j(e),s=[];a&&u&&!D(u)&&!K(s,u);){var c=u[n];if(c){a=c===r;break}s.push(u),u=j(u)}try{a&&(e[n]=i),i[b]=1}catch(l){o[N]=!1}}}return i}(this,r,t,i)||(typeof(n=(n=t[e=r])===i?j(t)[e]:n)!==w&&B("["+e+"] is not a "+w),n)).apply(this,arguments)})[S]=1,i)))}))}V[E]={setInstFuncs:!0,useBaseInst:!0},c.LoggingSeverity=void 0,(Ct=c.LoggingSeverity||(c.LoggingSeverity={}))[Ct.CRITICAL=1]="CRITICAL",Ct[Ct.WARNING=2]="WARNING";var G={BrowserDoesNotSupportLocalStorage:0,BrowserCannotReadLocalStorage:1,BrowserCannotReadSessionStorage:2,BrowserCannotWriteLocalStorage:3,BrowserCannotWriteSessionStorage:4,BrowserFailedRemovalFromLocalStorage:5,BrowserFailedRemovalFromSessionStorage:6,CannotSendEmptyTelemetry:7,ClientPerformanceMathError:8,ErrorParsingAISessionCookie:9,ErrorPVCalc:10,ExceptionWhileLoggingError:11,FailedAddingTelemetryToBuffer:12,FailedMonitorAjaxAbort:13,FailedMonitorAjaxDur:14,FailedMonitorAjaxOpen:15,FailedMonitorAjaxRSC:16,FailedMonitorAjaxSend:17,FailedMonitorAjaxGetCorrelationHeader:18,FailedToAddHandlerForOnBeforeUnload:19,FailedToSendQueuedTelemetry:20,FailedToReportDataLoss:21,FlushFailed:22,MessageLimitPerPVExceeded:23,MissingRequiredFieldSpecification:24,NavigationTimingNotSupported:25,OnError:26,SessionRenewalDateIsZero:27,SenderNotInitialized:28,StartTrackEventFailed:29,StopTrackEventFailed:30,StartTrackFailed:31,StopTrackFailed:32,TelemetrySampledAndNotSent:33,TrackEventFailed:34,TrackExceptionFailed:35,TrackMetricFailed:36,TrackPVFailed:37,TrackPVFailedCalc:38,TrackTraceFailed:39,TransmissionFailed:40,FailedToSetStorageBuffer:41,FailedToRestoreStorageBuffer:42,InvalidBackendResponse:43,FailedToFixDepricatedValues:44,InvalidDurationValue:45,TelemetryEnvelopeInvalid:46,CreateEnvelopeError:47,CannotSerializeObject:48,CannotSerializeObjectNonSerializable:49,CircularReferenceDetected:50,ClearAuthContextFailed:51,ExceptionTruncated:52,IllegalCharsInName:53,ItemNotInArray:54,MaxAjaxPerPVExceeded:55,MessageTruncated:56,NameTooLong:57,SampleRateOutOfRange:58,SetAuthContextFailed:59,SetAuthContextFailedAccountName:60,StringValueTooLong:61,StartCalledMoreThanOnce:62,StopCalledWithoutStart:63,TelemetryInitializerFailed:64,TrackArgumentsNotSpecified:65,UrlTooLong:66,SessionStorageBufferFull:67,CannotAccessCookie:68,IdTooLong:69,InvalidEvent:70,FailedMonitorAjaxSetRequestHeader:71,SendBrowserInfoOnUserInit:72,PluginException:73,NotificationException:74,SnippetScriptLoadFailure:99,InvalidInstrumentationKey:100,CannotParseAiBlobValue:101,InvalidContentBlob:102,TrackPageActionEventFailed:103,FailedAddingCustomDefinedRequestContext:104},W="on",H="attachEvent",J="addEventListener",X="detachEvent",Q="removeEventListener",$=e,Z=t.freeze,Y=t.seal;function ee(e){return i.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](W+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[Q])?re(e[X])||e[X](W+n,t):e[Q](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 me(e){return"boolean"==typeof e}function Ce(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){var r=e.length;try{for(var i=0;i<r&&!(i in e&&-1===n.call(t||e,e[i],i,e));i++);}catch(o){}}function we(e,n,t){var r=e.length,t=t||0;try{for(var i=Math.max(0<=t?t:r-Math.abs(t),0);i<r;i++)if(i in e&&e[i]===n)return i}catch(o){}return-1}function Te(e,n,t){var r=e.length,i=t||e,o=Array(r);try{for(var a=0;a<r;a++)a in e&&(o[a]=n.call(i,e[a],e))}catch(u){}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 Ie(e){return"string"!=typeof e?e:e.replace(/^\s+|\s+$/g,"")}var be=!{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(be)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($)try{var i={enumerable:!0,configurable:!0};return t&&(i.get=t),r&&(i.set=r),$(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",Be="JSON",Ke="crypto",qe="msCrypto",Ve="msie",Ge="trident/",We=null,He=null,Je=!1,Xe=null,Qe=null;function $e(e,n){var t,r=!1;if(e){try{(r=n in e)||(t=e[s])&&(r=n in t)}catch(i){}if(!r)try{r=!te((new e)[n])}catch(i){}}return r}function Ze(e){var n=d();return n&&n[e]?n[e]:e===Re&&Ye()?window:null}function Ye(){return!(typeof window!==u||!window)}function en(){return Ye()?window:Ze(Re)}function nn(){return!(typeof document!==u||!document)}function tn(){return nn()?document:Ze("document")}function rn(){return!(typeof navigator!==u||!navigator)}function on(){return rn()?navigator:Ze(De)}function an(){return!(typeof history!==u||!history)}function un(e){return e&&Je&&(e=Ze("__mockLocation"))?e:typeof location===u&&location?location:Ze(je)}function sn(){return typeof console!==n?console:Ze(Ue)}function cn(){return Ze(ze)}function ln(){return!!(typeof JSON===u&&JSON||null!==Ze(Be))}function fn(){return ln()?JSON||Ze(Be):null}function gn(){return Ze(Ke)}function dn(){return Ze(qe)}function vn(){var e=on();return!e||e.userAgent===He&&null!==We||(e=((He=e.userAgent)||"").toLowerCase(),We=ge(e,Ve)||ge(e,Ge)),We}function pn(e){var n=Object[s].toString.call(e),t="";return"[object Error]"===n?t="{ stack: '"+e.stack+"', message: '"+e.message+"', name: '"+e.name+"'":ln()&&(t=fn().stringify(e)),n+t}function hn(){var e=!1;try{e=!!Ze("XMLHttpRequest")}catch(n){}return e}function yn(e){return e?'"'+e.replace(/\"/g,"")+'"':""}var mn=(Cn.dataType="MessageData",Cn);function Cn(e,n,t,r){void 0===t&&(t=!1),this.messageId=e,this.message=(t?"AI: ":"AI (Internal): ")+e,e="",ln()&&(e=fn().stringify(r)),e=(n?" message:"+yn(n):"")+(r?" props:"+yn(e):""),this.message+=e}function xn(e,n){return(e||{}).logger||new wn(n)}var wn=function Zt(t){this.identifier="DiagnosticLogger",this.queue=[];var i=0,a={};V(Zt,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 mn(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=sn();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 mn(G.MessageLimitPerPVExceeded,e="Internal events throttle limit per PageView reached for this app.",!1),o.queue.push(n),o.warnToConsole(e))))}})},Tn=null,Sn=(In.ParentContextKey="parent",In.ChildrenContextKey="childEvts",In);function In(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===In.ParentContextKey||e===In.ChildrenContextKey?o:o.ctx||{})[e]:null},o.setCtx=function(e,n){e&&(e===In.ParentContextKey?(o[e]||(o.isChildEvt=function(){return!0}),o[e]=n):e===In.ChildrenContextKey?o[e]=n:(o.ctx=o.ctx||{})[e]=n)},o.complete=function(){var e=0,n=o.getCtx(In.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 bn=function Yt(n){this.ctx={},V(Yt,this,function(t){t.create=function(e,n,t){return new Sn(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]}})},Nn="CoreUtils.doPerf";function En(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(Nn);try{if(u=o.create(n(),r,i))return e&&u.setCtx&&(u.setCtx(Sn.ParentContextKey,e),e.getCtx&&e.setCtx&&((a=e.getCtx(Sn.ChildrenContextKey))||(a=[],e.setCtx(Sn.ChildrenContextKey,a)),a.push(u))),o.setCtx(Nn,u),t(u)}catch(s){u&&u.setCtx&&u.setCtx("exception",s)}finally{u&&o.fire(u),o.setCtx(Nn,e)}}}return t()}var Pn=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";En(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,G.PluginException,"Plugin ["+i.identifier+"] failed during processTelemetry - "+pn(n)),a&&!e&&a.processTelemetry(t,r)}}else a&&(o._hasRun=!0,a.processTelemetry(t,r))},function(){return{item:t}},!t.sync)}};function Mn(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 Pn(o,n),t.push(o),r&&r.setNext(o),r=o)}return 0<t.length?t[0]:null}var Ln=function er(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),Mn(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=Mn(a,r)):te(n)&&(c=Mn(e,s))),s.core=function(){return t},s.diagLog=function(){return xn(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 er((e=void 0===e?null:e)||c,i,t,n)}},kn="extensionConfig",An="getPlugin",Fn=(_n.prototype.initialize=function(e,n,t,r){this._baseTelInit(e,n,t,r)},_n);function _n(){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 Ln(null,{},o.core),n=s&&s[An]?e.createNew(null,s[An]):e.createNew(null,s)),n},o._baseTelInit=function(e,n,t,r){e&&ke(e,kn,[],null,re),!r&&n&&(r=n.getProcessTelContext().getNext());var i=s;s&&s[An]&&(i=s[An]()),o.core=n,u=new Ln(r,e,n,i),a=!0}}var On="processTelemetry",Rn="priority",Dn="setNextPlugin",jn="isInitialized";function Un(n,t){for(var e=[],r=null,i=n.getNext();i;){var o=i.getPlugin();o&&(r&&ue(r[Dn])&&ue(o[On])&&r[Dn](o),ue(o[jn])&&o[jn]()||e.push(o),r=o,i=i.getNext())}xe(e,function(e){e.initialize(n.getCfg(),n.core(),t,n.getNext())})}function zn(e){return e.sort(function(e,n){var t=0,r=ue(n[On]);return ue(e[On])?t=r?e[Rn]-n[Rn]:1:r&&(t=-1),t})}var Bn,Kn=(y(qn,Bn=Fn),qn._staticInit=(Pe(Bt=qn.prototype,"ChannelControls",Bt.getChannelControls),void Pe(Bt,"channelQueue",Bt.getChannelControls)),qn);function qn(){var s,r=Bn.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,V(qn,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 Un(new Ln(e,n,t),r)}))}}),r}var Vn="toGMTString",Gn="toUTCString",Wn="cookie",Hn="expires",Jn="enabled",Xn="isCookieUseDisabled",Qn="disableCookiesUsage",$n="_ckMgr",Zn="",Yn=null,et=null,nt=null,tt=tn(),rt={},it={};function ot(e,n){var t=ut[$n]||it[$n];return t||(t=ut[$n]=ut(e,n),it[$n]=t),t}function at(e){return!e||e.isEnabled()}function ut(e,i){var n,t,c=(ke(t=(n=e||it).cookieCfg=n.cookieCfg||{},"domain",n.cookieDomain,ie,re),ke(t,"path",n.cookiePath||"/",null,re),re(t[Jn])&&(e=void 0,te(n[Xn])||(e=!n[Xn]),te(n[Qn])||(e=!n[Qn]),t[Jn]=e),t),l=c.path||"/",f=c.domain,r=!1!==c[Jn],g={isEnabled:function(){var e=r&&st(i),n=it[$n];return e&&n&&g!==n?at(n):e},setEnabled:function(e){r=!1!==e},set:function(e,n,t,r,i){var o,a,u,s=!1;return at(g)&&(o={},-1!=(u=(a=Ie(n||Zn)).indexOf(";"))&&(a=Ie(n.substring(0,u)),o=ct(n.substring(1+u))),ke(o,"domain",r||f,_e,te),re(t)||(u=vn(),!te(o[Hn])||0<(n=Me()+1e3*t)&&((r=new Date).setTime(n),ke(o,Hn,lt(r,u?Vn:Gn)||lt(r,u?Vn:Gn)||Zn,_e)),u||ke(o,"max-age",Zn+t,null,te)),(t=un())&&"https:"===t.protocol&&(ke(o,"secure",null,null,te),(et=null===et?!dt((on()||{}).userAgent):et)&&ke(o,"SameSite","None",null,te)),ke(o,"path",i||l,null,te),(c.setCookie||gt)(e,ft(a,o)),s=!0),s},get:function(e){var n=Zn;return at(g)?(c.getCookie||function(e){var n,t=Zn;return tt&&(n=tt[Wn]||Zn,nt!==n&&(rt=ct(n),nt=n),t=Ie(rt[e]||Zn)),t})(e):n},del:function(e,n){return!!at(g)&&g.purge(e,n)},purge:function(e,n){var t,r=!1;return st(i)&&((t={}).path=n||"/",t[Hn]="Thu, 01 Jan 1970 00:00:01 GMT",vn()||(t["max-age"]="0"),(c.delCookie||gt)(e,ft(Zn,t)),r=!0),r}};return g[$n]=g}function st(e){if(null===Yn){Yn=!1;try{Yn=(tt||{})[Wn]!==undefined}catch(n){e&&e.throwInternal(c.LoggingSeverity.WARNING,G.CannotAccessCookie,"Cannot access document.cookie - "+Le(n),{exception:pn(n)})}}return Yn}function ct(e){var t={};return e&&e.length&&xe(Ie(e).split(";"),function(e){var n;(e=Ie(e||Zn))&&(-1==(n=e.indexOf("="))?t[e]=null:t[Ie(e.substring(0,n))]=Ie(e.substring(1+n)))}),t}function lt(e,n){return ue(e[n])?e[n]():null}function ft(e,n){var t=e||Zn;return le(n,function(e,n){t+="; "+e+(re(n)?Zn:"="+n)}),t}function gt(e,n){tt&&(tt[Wn]=e+"="+n)}function dt(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 vt="_notificationManager";function pt(e,n){return new bn(n)}var ht,yt=function nr(){var n,u,s,t,r,c=!1;V(nr,this,function(a){a._extensions=[],u=new Kn,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[vt]=t,a.config=e||{},a.config.enablePerfMgr&&ke(a.config,"createPerfMgr",pt),e.extensions=re(e.extensions)?[]:e.extensions,Ae(e,kn).NotificationManager=t,r&&(a.logger=r),(t=[]).push.apply(t,m(m([],n),e.extensions));var t=zn(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=zn(t),a._extensions=t,Un(new Ln([u],e,a),t),Un(new Ln(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",Ce(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 Ln(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[vt]=s),s},a.getCookieMgr=function(){return r=r||ut(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||Tn},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=[])}})},mt=function tr(e){this.listeners=[];var n=!!(e||{}).perfEvtsSendAll;V(tr,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){}}))}})},Ct=(y(xt,ht=yt),xt);function xt(){var e=ht.call(this)||this,r=0;return V(xt,e,function(t,i){function n(e){var n=t.getNotifyMgr();n&&n.eventsDiscarded([e],o.InvalidEvent)}t.initialize=function(e,n,t,r){i.initialize(e,n,t||new wn(e),r||new mt(e))},t.track=function(e){En(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 e&&0<e||(e=1e4),r&&t.stopPollingInternalLogs(),r=setInterval(function(){var e=t.logger?t.logger.queue:[];xe(e,function(e){e={name:n||"InternalMessageId: "+e.messageId,iKey:t.config.instrumentationKey,time:Ce(new Date),baseType:mn.dataType,baseData:{message:e.message}},t.track(e)}),e.length=0},e)},t.stopPollingInternalLogs=function(){r&&(clearInterval(r),r=0)}}),e}var wt=4294967296,Tt=4294967295,St=!1,It=123456789,bt=987654321;function Nt(e){e<0&&(e>>>=0),It=123456789+e&Tt,bt=987654321-e&Tt,St=!0}function Et(){try{var e=2147483647&Me();Nt((Math.random()*wt^e)+e)}catch(n){}}function Pt(e){return 0<e?Math.floor(Mt()/Tt*(e+1))>>>0:0}function Mt(e){var n=(n=gn()||dn())&&n.getRandomValues?n.getRandomValues(new Uint32Array(1))[0]&Tt:vn()?(St||Et(),kt()&Tt):Math.floor(wt*Math.random()|0);return e||(n>>>=0),n}function Lt(e){e?Nt(e):Et()}function kt(e){var n=((bt=36969*(65535&bt)+(bt>>16)&Tt)<<16)+(65535&(It=18e3*(65535&It)+(It>>16)&Tt))>>>0&Tt|0;return e||(n>>>=0),n}var At,Ft=null,e=n;function _t(e,n){var t=!1,r=en();return r&&(t=se(r,e,n),t=se(r.body,e,n)||t),(r=tn())&&se(r,e,n)||t}function Ot(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(zt,function(e){var n=0|Pt(15);return("x"===e?n:3&n|8).toString(16)})}function Rt(){var e=cn();return e&&e.now?e.now():Me()}function Dt(e){void 0===e&&(e=22);for(var n=Mt()>>>0,t=0,r="";r.length<e;)r+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"[0|63&n]||"",n>>>=6,5==++t&&(n=(Mt()<<2&4294967295|3&n)>>>0,t=0);return r}function jt(){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=Mt())]+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&Mt())|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 Ut={_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:me,toISOString:Ce,arrForEach:xe,arrIndexOf:we,arrMap:Te,arrReduce:Se,strTrim:Ie,objCreate:p,objKeys:Ee,objDefineAccessors:Pe,addEventHandler:_t,dateNow:Me,isIE:vn,disableCookies:qt,newGuid:Ot,perfNow:Rt,newId:Dt,randomValue:Pt,random32:Mt,mwcRandomSeed:Lt,mwcRandom32:kt,generateW3CId:jt},zt=/[xy]/g,Bt={Attach:se,AttachEvent:se,Detach:ce,DetachEvent:ce};function Kt(e,n){return e=ot(e,n),n=Ut._canUseCookies,null===Ft&&(Ft=[],At=n,Pe(Ut,"_canUseCookies",function(){return At},function(n){At=n,xe(Ft,function(e){e.setEnabled(n)})})),-1===we(Ft,e)&&Ft.push(e),me(n)&&e.setEnabled(n),me(At)&&e.setEnabled(At),e}function qt(){Kt().setEnabled(!1)}var Vt="_aiHooks",Gt=["req","rsp","hkErr","fnErr"];function Wt(e,n){if(e)for(var t=0;t<e.length&&!n(e[t],t);t++);}function Ht(e,a,u,s,c){0<=c&&c<=2&&Wt(e,function(e,n){var t=e.cbks;if(e=t[Gt[c]]){a.ctx=function(){return s[n]=s[n]||{}};try{e.apply(a.inst,u)}catch(i){e=a.err;try{var r=t[Gt[2]];r&&(a.err=i,r.apply(a.inst,u))}catch(o){}finally{a.err=e}}}})}function Jt(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 Wt(e,function(e){n.push(e)}),n}Ht(e,r,i,n,0);var a=s.f;try{r.rslt=a.apply(this,t)}catch(u){throw r.err=u,Ht(e,r,i,n,3),u}return Ht(e,r,i,n,1),r.rslt}}var Xt=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(Xt)return Xt(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[Vt];return i||((r=Jt(i={i:0,n:n,f:r,h:[]}))[Vt]=i,e[n]=r),t={id:i.i,cbks:t,rm:function(){var t=this.id;Wt(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 $t(n,e,t,r){void 0===r&&(r=!0);var i=null;return Wt(e,function(e){(e=Qt(n,e,t,r))&&(i=i||[]).push(e)}),i}c.AppInsightsCore=Ct,c.BaseCore=yt,c.BaseTelemetryPlugin=Fn,c.CoreUtils=Ut,c.DiagnosticLogger=wn,c.EventHelper=Bt,c.EventsDiscardedReason=o,c.InstrumentFunc=Qt,c.InstrumentFuncs=$t,c.InstrumentProto=function(e,n,t){return e?Qt(e[s],n,t,!1):null},c.InstrumentProtos=function(e,n,t){return e?$t(e[s],n,t,!1):null},c.MinChannelPriorty=100,c.NotificationManager=mt,c.PerfEvent=Sn,c.PerfManager=bn,c.ProcessTelemetryContext=Ln,c.Undefined=e,c._InternalLogMessage=mn,c._InternalMessageId=G,c._legacyCookieMgr=Kt,c.addEventHandler=_t,c.areCookiesSupported=st,c.arrForEach=xe,c.arrIndexOf=we,c.arrMap=Te,c.arrReduce=Se,c.attachEvent=se,c.canUseCookies=function(e){return Kt(null,e).isEnabled()},c.createClassFromInterface=function(e){return function(){var t=this;e&&le(e,function(e,n){t[e]=n})}},c.createCookieMgr=ut,c.dateNow=Me,c.deleteCookie=function(e,n){return Kt(null,e).del(n)},c.detachEvent=ce,c.disableCookies=qt,c.doPerf=En,c.dumpObj=pn,c.generateW3CId=jt,c.getConsole=sn,c.getCookie=function(e,n){return Kt(null,e).get(n)},c.getCrypto=gn,c.getDocument=tn,c.getExceptionName=Le,c.getGblPerfMgr=function(){return Tn},c.getGlobal=d,c.getGlobalInst=Ze,c.getHistory=function(){return an()?history:Ze("history")},c.getIEVersion=function(e){var n;return ge(e=((e=(e=void 0===e?null:e)?e:(n=on()||{})?(n.userAgent||"").toLowerCase():"")||"").toLowerCase(),Ve)?parseInt(e.split(Ve)[1]):ge(e,Ge)&&(e=parseInt(e.split(Ge)[1]))?e+4:null},c.getJSON=fn,c.getLocation=un,c.getMsCrypto=dn,c.getNavigator=on,c.getPerformance=cn,c.getSetValue=Ae,c.getWindow=en,c.hasDocument=nn,c.hasHistory=an,c.hasJSON=ln,c.hasNavigator=rn,c.hasOwnProperty=oe,c.hasWindow=Ye,c.initializePlugins=Un,c.isArray=ve,c.isBeaconsSupported=function(){return Qe=null===Qe?rn()&&!!on().sendBeacon:Qe},c.isBoolean=me,c.isDate=de,c.isError=pe,c.isFetchSupported=function(e){var n=!1;try{var n=!!Ze("fetch"),t=Ze("Request");n&&e&&t&&(n=$e(t,"keepalive"))}catch(r){}return n},c.isFunction=ue,c.isIE=vn,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=on();return!(!e||!e.product)&&"ReactNative"===e.product},c.isSafari=function(e){var n;return!!~((e=e&&he(e)?e:(n=on()||{})?(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.isXhrSupported=hn,c.mwcRandom32=kt,c.mwcRandomSeed=Lt,c.newGuid=Ot,c.newId=Dt,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=Rt,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=Mt,c.randomValue=Pt,c.safeGetCookieMgr=function(e,n){var t;return e?t=e.getCookieMgr():n&&(t=n.cookieCfg[$n]||ut(n)),t||ot(n,(e||{}).logger)},c.safeGetLogger=xn,c.setCookie=function(e,n,t,r){Kt(null,e).set(n,t,null,r)},c.setEnableEnvMocks=function(e){Je=e},c.setGblPerfMgr=function(e){Tn=e},c.setValue=ke,c.sortPlugins=zn,c.strContains=ge,c.strEndsWith=fe,c.strExtensionConfig=kn,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=Ie,c.strUndefined=n,c.throwError=Oe,c.toISOString=Ce,c.uaDisallowsSameSiteNone=dt,c.useXDomainRequest=function(){return Xe=null===Xe&&(Xe=typeof XDomainRequest!==undefined)&&hn()?Xe&&!$e(Ze("XMLHttpRequest"),"withCredentials"):Xe},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})});
!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 o={Unknown:0,NonRetryableStatus:1,InvalidEvent:2,SizeLimitExceeded:3,KillSwitch:4,QueueFull:5},a="function",u="object",n="undefined",s="prototype",r="hasOwnProperty",t=Object,i=t[s],l=t.assign,f=t.create,e=t.defineProperty,g=i[r];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[r](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 m(e,n){for(var t=0,r=n.length,i=e.length;t<r;t++,i++)e[i]=n[t];return e}var C="constructor",x="prototype",w="function",S="_dynInstFuncs",b="_isDynProxy",T="_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[C]?e[C][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!==C&&typeof e[n]===w&&(t||O(e,n))}function B(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 q(e,n){return O(e,x)?e.name||n||P:((e||{})[C]||{}).name||n||P}function V(e,r,n,t){O(e,x)||B("theClass is an invalid class definition.");var i=e[x];!function(e){if(F)for(var n=[],t=j(r);t&&!D(t)&&!K(n,t);){if(t===e)return 1;n.push(t),t=j(t)}}(i)&&B("["+q(e)+"] is not in class hierarchy of ["+q(r)+"]");var o=null;O(i,T)?o=i[T]:(o="_dynCls$"+q(e,"_")+"$"+_,_++,i[T]=o);var a=V[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[b]&&o&&!1!==(r=e[S]||{})[N]&&(i=(r[n[T]]||{})[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)&&!K(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[S]=f[S]||{},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][b])||(l[e]=(t=l,r=e,(i=function(){var e,n;return(function(e,n,t,r){var i=null;if(e&&O(t,T)){var o=e[S]||{};if((i=(o[t[T]]||{})[n])||B("Missing ["+n+"] "+w),!i[I]&&!1!==o[N]){for(var a=!O(e,n),u=j(e),s=[];a&&u&&!D(u)&&!K(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&&B("["+e+"] is not a "+w),n)).apply(this,arguments)})[b]=1,i)))}))}V[E]={setInstFuncs:!0,useBaseInst:!0},c.LoggingSeverity=void 0,(Ct=c.LoggingSeverity||(c.LoggingSeverity={}))[Ct.CRITICAL=1]="CRITICAL",Ct[Ct.WARNING=2]="WARNING";var G={BrowserDoesNotSupportLocalStorage:0,BrowserCannotReadLocalStorage:1,BrowserCannotReadSessionStorage:2,BrowserCannotWriteLocalStorage:3,BrowserCannotWriteSessionStorage:4,BrowserFailedRemovalFromLocalStorage:5,BrowserFailedRemovalFromSessionStorage:6,CannotSendEmptyTelemetry:7,ClientPerformanceMathError:8,ErrorParsingAISessionCookie:9,ErrorPVCalc:10,ExceptionWhileLoggingError:11,FailedAddingTelemetryToBuffer:12,FailedMonitorAjaxAbort:13,FailedMonitorAjaxDur:14,FailedMonitorAjaxOpen:15,FailedMonitorAjaxRSC:16,FailedMonitorAjaxSend:17,FailedMonitorAjaxGetCorrelationHeader:18,FailedToAddHandlerForOnBeforeUnload:19,FailedToSendQueuedTelemetry:20,FailedToReportDataLoss:21,FlushFailed:22,MessageLimitPerPVExceeded:23,MissingRequiredFieldSpecification:24,NavigationTimingNotSupported:25,OnError:26,SessionRenewalDateIsZero:27,SenderNotInitialized:28,StartTrackEventFailed:29,StopTrackEventFailed:30,StartTrackFailed:31,StopTrackFailed:32,TelemetrySampledAndNotSent:33,TrackEventFailed:34,TrackExceptionFailed:35,TrackMetricFailed:36,TrackPVFailed:37,TrackPVFailedCalc:38,TrackTraceFailed:39,TransmissionFailed:40,FailedToSetStorageBuffer:41,FailedToRestoreStorageBuffer:42,InvalidBackendResponse:43,FailedToFixDepricatedValues:44,InvalidDurationValue:45,TelemetryEnvelopeInvalid:46,CreateEnvelopeError:47,CannotSerializeObject:48,CannotSerializeObjectNonSerializable:49,CircularReferenceDetected:50,ClearAuthContextFailed:51,ExceptionTruncated:52,IllegalCharsInName:53,ItemNotInArray:54,MaxAjaxPerPVExceeded:55,MessageTruncated:56,NameTooLong:57,SampleRateOutOfRange:58,SetAuthContextFailed:59,SetAuthContextFailedAccountName:60,StringValueTooLong:61,StartCalledMoreThanOnce:62,StopCalledWithoutStart:63,TelemetryInitializerFailed:64,TrackArgumentsNotSpecified:65,UrlTooLong:66,SessionStorageBufferFull:67,CannotAccessCookie:68,IdTooLong:69,InvalidEvent:70,FailedMonitorAjaxSetRequestHeader:71,SendBrowserInfoOnUserInit:72,PluginException:73,NotificationException:74,SnippetScriptLoadFailure:99,InvalidInstrumentationKey:100,CannotParseAiBlobValue:101,InvalidContentBlob:102,TrackPageActionEventFailed:103,FailedAddingCustomDefinedRequestContext:104},W="on",H="attachEvent",J="addEventListener",X="detachEvent",Q="removeEventListener",$=e,Z=t.freeze,Y=t.seal;function ee(e){return i.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](W+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[Q])?re(e[X])||e[X](W+n,t):e[Q](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 me(e){return"boolean"==typeof e}function Ce(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){var r=e.length;try{for(var i=0;i<r&&!(i in e&&-1===n.call(t||e,e[i],i,e));i++);}catch(o){}}function we(e,n,t){var r=e.length,t=t||0;try{for(var i=Math.max(0<=t?t:r-Math.abs(t),0);i<r;i++)if(i in e&&e[i]===n)return i}catch(o){}return-1}function Se(e,n,t){var r=e.length,i=t||e,o=Array(r);try{for(var a=0;a<r;a++)a in e&&(o[a]=n.call(i,e[a],e))}catch(u){}return o}function be(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 Te(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($)try{var i={enumerable:!0,configurable:!0};return t&&(i.get=t),r&&(i.set=r),$(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",Be="JSON",Ke="crypto",qe="msCrypto",Ve="msie",Ge="trident/",We=null,He=null,Je=!1,Xe=null,Qe=null;function $e(e,n){var t,r=!1;if(e){try{(r=n in e)||(t=e[s])&&(r=n in t)}catch(i){}if(!r)try{r=!te((new e)[n])}catch(i){}}return r}function Ze(e){var n=d();return n&&n[e]?n[e]:e===Re&&Ye()?window:null}function Ye(){return!(typeof window!==u||!window)}function en(){return Ye()?window:Ze(Re)}function nn(){return!(typeof document!==u||!document)}function tn(){return nn()?document:Ze("document")}function rn(){return!(typeof navigator!==u||!navigator)}function on(){return rn()?navigator:Ze(De)}function an(){return!(typeof history!==u||!history)}function un(e){return e&&Je&&(e=Ze("__mockLocation"))?e:typeof location===u&&location?location:Ze(je)}function sn(){return typeof console!==n?console:Ze(Ue)}function cn(){return Ze(ze)}function ln(){return!!(typeof JSON===u&&JSON||null!==Ze(Be))}function fn(){return ln()?JSON||Ze(Be):null}function gn(){return Ze(Ke)}function dn(){return Ze(qe)}function vn(){var e=on();return!e||e.userAgent===He&&null!==We||(e=((He=e.userAgent)||"").toLowerCase(),We=ge(e,Ve)||ge(e,Ge)),We}function pn(e){var n=Object[s].toString.call(e),t="";return"[object Error]"===n?t="{ stack: '"+e.stack+"', message: '"+e.message+"', name: '"+e.name+"'":ln()&&(t=fn().stringify(e)),n+t}function hn(){var e=!1;try{e=!!Ze("XMLHttpRequest")}catch(n){}return e}function yn(e){return e?'"'+e.replace(/\"/g,"")+'"':""}var mn=(Cn.dataType="MessageData",Cn);function Cn(e,n,t,r){void 0===t&&(t=!1),this.messageId=e,this.message=(t?"AI: ":"AI (Internal): ")+e,e="",ln()&&(e=fn().stringify(r)),e=(n?" message:"+yn(n):"")+(r?" props:"+yn(e):""),this.message+=e}function xn(e,n){return(e||{}).logger||new wn(n)}var wn=function tr(t){this.identifier="DiagnosticLogger",this.queue=[];var i=0,a={};V(tr,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 mn(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=sn();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 mn(G.MessageLimitPerPVExceeded,e="Internal events throttle limit per PageView reached for this app.",!1),o.queue.push(n),o.warnToConsole(e))))}})},Sn=null,bn=(Tn.ParentContextKey="parent",Tn.ChildrenContextKey="childEvts",Tn);function Tn(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===Tn.ParentContextKey||e===Tn.ChildrenContextKey?o:o.ctx||{})[e]:null},o.setCtx=function(e,n){e&&(e===Tn.ParentContextKey?(o[e]||(o.isChildEvt=function(){return!0}),o[e]=n):e===Tn.ChildrenContextKey?o[e]=n:(o.ctx=o.ctx||{})[e]=n)},o.complete=function(){var e=0,n=o.getCtx(Tn.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 In=function rr(n){this.ctx={},V(rr,this,function(t){t.create=function(e,n,t){return new bn(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]}})},Nn="CoreUtils.doPerf";function En(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(Nn);try{if(u=o.create(n(),r,i))return e&&u.setCtx&&(u.setCtx(bn.ParentContextKey,e),e.getCtx&&e.setCtx&&((a=e.getCtx(bn.ChildrenContextKey))||(a=[],e.setCtx(bn.ChildrenContextKey,a)),a.push(u))),o.setCtx(Nn,u),t(u)}catch(s){u&&u.setCtx&&u.setCtx("exception",s)}finally{u&&o.fire(u),o.setCtx(Nn,e)}}}return t()}var Pn=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";En(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,G.PluginException,"Plugin ["+i.identifier+"] failed during processTelemetry - "+pn(n)),a&&!e&&a.processTelemetry(t,r)}}else a&&(o._hasRun=!0,a.processTelemetry(t,r))},function(){return{item:t}},!t.sync)}};function Mn(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 Pn(o,n),t.push(o),r&&r.setNext(o),r=o)}return 0<t.length?t[0]:null}var Ln=function ir(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),Mn(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=Mn(a,r)):te(n)&&(c=Mn(e,s))),s.core=function(){return t},s.diagLog=function(){return xn(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 ir((e=void 0===e?null:e)||c,i,t,n)}},kn="extensionConfig",An="getPlugin",Fn=(_n.prototype.initialize=function(e,n,t,r){this._baseTelInit(e,n,t,r)},_n);function _n(){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 Ln(null,{},o.core),n=s&&s[An]?e.createNew(null,s[An]):e.createNew(null,s)),n},o._baseTelInit=function(e,n,t,r){e&&ke(e,kn,[],null,re),!r&&n&&(r=n.getProcessTelContext().getNext());var i=s;s&&s[An]&&(i=s[An]()),o.core=n,u=new Ln(r,e,n,i),a=!0}}var On="processTelemetry",Rn="priority",Dn="setNextPlugin",jn="isInitialized";function Un(n,t){for(var e=[],r=null,i=n.getNext();i;){var o=i.getPlugin();o&&(r&&ue(r[Dn])&&ue(o[On])&&r[Dn](o),ue(o[jn])&&o[jn]()||e.push(o),r=o,i=i.getNext())}xe(e,function(e){e.initialize(n.getCfg(),n.core(),t,n.getNext())})}function zn(e){return e.sort(function(e,n){var t=0,r=ue(n[On]);return ue(e[On])?t=r?e[Rn]-n[Rn]:1:r&&(t=-1),t})}var Bn,Kn=(y(qn,Bn=Fn),qn._staticInit=(Pe(Gt=qn.prototype,"ChannelControls",Gt.getChannelControls),void Pe(Gt,"channelQueue",Gt.getChannelControls)),qn);function qn(){var s,r=Bn.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,V(qn,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 Un(new Ln(e,n,t),r)}))}}),r}var Vn="toGMTString",Gn="toUTCString",Wn="cookie",Hn="expires",Jn="enabled",Xn="isCookieUseDisabled",Qn="disableCookiesUsage",$n="_ckMgr",Zn="",Yn=null,et=null,nt=null,tt=tn(),rt={},it={};function ot(e,n){var t=ut[$n]||it[$n];return t||(t=ut[$n]=ut(e,n),it[$n]=t),t}function at(e){return!e||e.isEnabled()}function ut(e,i){var n,t,c=(ke(t=(n=e||it).cookieCfg=n.cookieCfg||{},"domain",n.cookieDomain,ie,re),ke(t,"path",n.cookiePath||"/",null,re),re(t[Jn])&&(e=void 0,te(n[Xn])||(e=!n[Xn]),te(n[Qn])||(e=!n[Qn]),t[Jn]=e),t),l=c.path||"/",f=c.domain,r=!1!==c[Jn],g={isEnabled:function(){var e=r&&st(i),n=it[$n];return e&&n&&g!==n?at(n):e},setEnabled:function(e){r=!1!==e},set:function(e,n,t,r,i){var o,a,u,s=!1;return at(g)&&(o={},-1!=(u=(a=Te(n||Zn)).indexOf(";"))&&(a=Te(n.substring(0,u)),o=ct(n.substring(1+u))),ke(o,"domain",r||f,_e,te),re(t)||(u=vn(),!te(o[Hn])||0<(n=Me()+1e3*t)&&((r=new Date).setTime(n),ke(o,Hn,lt(r,u?Vn:Gn)||lt(r,u?Vn:Gn)||Zn,_e)),u||ke(o,"max-age",Zn+t,null,te)),(t=un())&&"https:"===t.protocol&&(ke(o,"secure",null,null,te),(et=null===et?!dt((on()||{}).userAgent):et)&&ke(o,"SameSite","None",null,te)),ke(o,"path",i||l,null,te),(c.setCookie||gt)(e,ft(a,o)),s=!0),s},get:function(e){var n=Zn;return at(g)?(c.getCookie||function(e){var n,t=Zn;return tt&&(n=tt[Wn]||Zn,nt!==n&&(rt=ct(n),nt=n),t=Te(rt[e]||Zn)),t})(e):n},del:function(e,n){return!!at(g)&&g.purge(e,n)},purge:function(e,n){var t,r=!1;return st(i)&&((t={}).path=n||"/",t[Hn]="Thu, 01 Jan 1970 00:00:01 GMT",vn()||(t["max-age"]="0"),(c.delCookie||gt)(e,ft(Zn,t)),r=!0),r}};return g[$n]=g}function st(e){if(null===Yn){Yn=!1;try{Yn=(tt||{})[Wn]!==undefined}catch(n){e&&e.throwInternal(c.LoggingSeverity.WARNING,G.CannotAccessCookie,"Cannot access document.cookie - "+Le(n),{exception:pn(n)})}}return Yn}function ct(e){var t={};return e&&e.length&&xe(Te(e).split(";"),function(e){var n;(e=Te(e||Zn))&&(-1==(n=e.indexOf("="))?t[e]=null:t[Te(e.substring(0,n))]=Te(e.substring(1+n)))}),t}function lt(e,n){return ue(e[n])?e[n]():null}function ft(e,n){var t=e||Zn;return le(n,function(e,n){t+="; "+e+(re(n)?Zn:"="+n)}),t}function gt(e,n){tt&&(tt[Wn]=e+"="+n)}function dt(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 vt="_notificationManager";function pt(e,n){return new In(n)}var ht,yt=function or(){var n,u,s,t,r,c=!1;V(or,this,function(a){a._extensions=[],u=new Kn,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[vt]=t,a.config=e||{},a.config.enablePerfMgr&&ke(a.config,"createPerfMgr",pt),e.extensions=re(e.extensions)?[]:e.extensions,Ae(e,kn).NotificationManager=t,r&&(a.logger=r),(t=[]).push.apply(t,m(m([],n),e.extensions));var t=zn(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=zn(t),a._extensions=t,Un(new Ln([u],e,a),t),Un(new Ln(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",Ce(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 Ln(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[vt]=s),s},a.getCookieMgr=function(){return r=r||ut(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||Sn},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=[])}})},mt=function ar(e){this.listeners=[];var n=!!(e||{}).perfEvtsSendAll;V(ar,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){}}))}})},Ct=(y(xt,ht=yt),xt);function xt(){var e=ht.call(this)||this,r=0;return V(xt,e,function(t,i){function n(e){var n=t.getNotifyMgr();n&&n.eventsDiscarded([e],o.InvalidEvent)}t.initialize=function(e,n,t,r){i.initialize(e,n,t||new wn(e),r||new mt(e))},t.track=function(e){En(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 e&&0<e||(e=1e4),r&&t.stopPollingInternalLogs(),r=setInterval(function(){var e=t.logger?t.logger.queue:[];xe(e,function(e){e={name:n||"InternalMessageId: "+e.messageId,iKey:t.config.instrumentationKey,time:Ce(new Date),baseType:mn.dataType,baseData:{message:e.message}},t.track(e)}),e.length=0},e)},t.stopPollingInternalLogs=function(){r&&(clearInterval(r),r=0)}}),e}var wt=4294967296,St=4294967295,bt=!1,Tt=123456789,It=987654321;function Nt(e){e<0&&(e>>>=0),Tt=123456789+e&St,It=987654321-e&St,bt=!0}function Et(){try{var e=2147483647&Me();Nt((Math.random()*wt^e)+e)}catch(n){}}function Pt(e){return 0<e?Math.floor(Mt()/St*(e+1))>>>0:0}function Mt(e){var n=(n=gn()||dn())&&n.getRandomValues?n.getRandomValues(new Uint32Array(1))[0]&St:vn()?(bt||Et(),kt()&St):Math.floor(wt*Math.random()|0);return e||(n>>>=0),n}function Lt(e){e?Nt(e):Et()}function kt(e){var n=((It=36969*(65535&It)+(It>>16)&St)<<16)+(65535&(Tt=18e3*(65535&Tt)+(Tt>>16)&St))>>>0&St|0;return e||(n>>>=0),n}var At,Ft="visibilitychange",_t="pagehide",Ot="pageshow",Rt=null,e=n;function Dt(e,n){var t=!1,r=en();return r&&(t=se(r,e,n),t=se(r.body,e,n)||t),(r=tn())&&se(r,e,n)||t}function jt(e,n,t){var r,i=!1;return n&&e&&ve(e)&&(r=[],xe(e,function(e){he(e)&&(t&&-1!==we(t,e)?r.push(e):i=Dt(e,n)||i)}),!i&&0<r.length&&(i=jt(r,n))),i}function Ut(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(Vt,function(e){var n=0|Pt(15);return("x"===e?n:3&n|8).toString(16)})}function zt(){var e=cn();return e&&e.now?e.now():Me()}function Bt(e){void 0===e&&(e=22);for(var n=Mt()>>>0,t=0,r="";r.length<e;)r+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"[0|63&n]||"",n>>>=6,5==++t&&(n=(Mt()<<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=Mt())]+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&Mt())|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 qt={_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:me,toISOString:Ce,arrForEach:xe,arrIndexOf:we,arrMap:Se,arrReduce:be,strTrim:Te,objCreate:p,objKeys:Ee,objDefineAccessors:Pe,addEventHandler:Dt,dateNow:Me,isIE:vn,disableCookies:Ht,newGuid:Ut,perfNow:zt,newId:Bt,randomValue:Pt,random32:Mt,mwcRandomSeed:Lt,mwcRandom32:kt,generateW3CId:Kt},Vt=/[xy]/g,Gt={Attach:se,AttachEvent:se,Detach:ce,DetachEvent:ce};function Wt(e,n){return e=ot(e,n),n=qt._canUseCookies,null===Rt&&(Rt=[],At=n,Pe(qt,"_canUseCookies",function(){return At},function(n){At=n,xe(Rt,function(e){e.setEnabled(n)})})),-1===we(Rt,e)&&Rt.push(e),me(n)&&e.setEnabled(n),me(At)&&e.setEnabled(At),e}function Ht(){Wt().setEnabled(!1)}var Jt="_aiHooks",Xt=["req","rsp","hkErr","fnErr"];function Qt(e,n){if(e)for(var t=0;t<e.length&&!n(e[t],t);t++);}function $t(e,a,u,s,c){0<=c&&c<=2&&Qt(e,function(e,n){var t=e.cbks;if(e=t[Xt[c]]){a.ctx=function(){return s[n]=s[n]||{}};try{e.apply(a.inst,u)}catch(i){e=a.err;try{var r=t[Xt[2]];r&&(a.err=i,r.apply(a.inst,u))}catch(o){}finally{a.err=e}}}})}function Zt(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 Qt(e,function(e){n.push(e)}),n}$t(e,r,i,n,0);var a=s.f;try{r.rslt=a.apply(this,t)}catch(u){throw r.err=u,$t(e,r,i,n,3),u}return $t(e,r,i,n,1),r.rslt}}var Yt=Object.getPrototypeOf;function er(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(Yt)return Yt(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[Jt];return i||((r=Zt(i={i:0,n:n,f:r,h:[]}))[Jt]=i,e[n]=r),t={id:i.i,cbks:t,rm:function(){var t=this.id;Qt(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 nr(n,e,t,r){void 0===r&&(r=!0);var i=null;return Qt(e,function(e){(e=er(n,e,t,r))&&(i=i||[]).push(e)}),i}c.AppInsightsCore=Ct,c.BaseCore=yt,c.BaseTelemetryPlugin=Fn,c.CoreUtils=qt,c.DiagnosticLogger=wn,c.EventHelper=Gt,c.EventsDiscardedReason=o,c.InstrumentFunc=er,c.InstrumentFuncs=nr,c.InstrumentProto=function(e,n,t){return e?er(e[s],n,t,!1):null},c.InstrumentProtos=function(e,n,t){return e?nr(e[s],n,t,!1):null},c.MinChannelPriorty=100,c.NotificationManager=mt,c.PerfEvent=bn,c.PerfManager=In,c.ProcessTelemetryContext=Ln,c.Undefined=e,c._InternalLogMessage=mn,c._InternalMessageId=G,c._legacyCookieMgr=Wt,c.addEventHandler=Dt,c.addEventListeners=jt,c.addPageHideEventListener=function ur(t,e){var n=!1;return e&&-1!==we(e,_t)||(n=Dt(_t,t)),!(n=(!e||-1===we(e,Ft))&&Dt(Ft,function(e){var n=tn();t&&n&&"hidden"===n.visibilityState&&t(e)})||n)&&e?ur(t):n},c.addPageShowEventListener=function sr(t,e){var n=!1;return e&&-1!==we(e,Ot)||(n=Dt(Ot,t)),!(n=(!e||-1===we(e,Ft))&&Dt(Ft,function(e){var n=tn();t&&n&&"visible"===n.visibilityState&&t(e)})||n)&&e?sr(t):n},c.addPageUnloadEventListener=function(e,n){return jt(["beforeunload","unload","pagehide"],e,n)},c.areCookiesSupported=st,c.arrForEach=xe,c.arrIndexOf=we,c.arrMap=Se,c.arrReduce=be,c.attachEvent=se,c.canUseCookies=function(e){return Wt(null,e).isEnabled()},c.createClassFromInterface=function(e){return function(){var t=this;e&&le(e,function(e,n){t[e]=n})}},c.createCookieMgr=ut,c.dateNow=Me,c.deleteCookie=function(e,n){return Wt(null,e).del(n)},c.detachEvent=ce,c.disableCookies=Ht,c.doPerf=En,c.dumpObj=pn,c.generateW3CId=Kt,c.getConsole=sn,c.getCookie=function(e,n){return Wt(null,e).get(n)},c.getCrypto=gn,c.getDocument=tn,c.getExceptionName=Le,c.getGblPerfMgr=function(){return Sn},c.getGlobal=d,c.getGlobalInst=Ze,c.getHistory=function(){return an()?history:Ze("history")},c.getIEVersion=function(e){var n;return ge(e=((e=(e=void 0===e?null:e)?e:(n=on()||{})?(n.userAgent||"").toLowerCase():"")||"").toLowerCase(),Ve)?parseInt(e.split(Ve)[1]):ge(e,Ge)&&(e=parseInt(e.split(Ge)[1]))?e+4:null},c.getJSON=fn,c.getLocation=un,c.getMsCrypto=dn,c.getNavigator=on,c.getPerformance=cn,c.getSetValue=Ae,c.getWindow=en,c.hasDocument=nn,c.hasHistory=an,c.hasJSON=ln,c.hasNavigator=rn,c.hasOwnProperty=oe,c.hasWindow=Ye,c.initializePlugins=Un,c.isArray=ve,c.isBeaconsSupported=function(){return Qe=null===Qe?rn()&&!!on().sendBeacon:Qe},c.isBoolean=me,c.isDate=de,c.isError=pe,c.isFetchSupported=function(e){var n=!1;try{var n=!!Ze("fetch"),t=Ze("Request");n&&e&&t&&(n=$e(t,"keepalive"))}catch(r){}return n},c.isFunction=ue,c.isIE=vn,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=on();return!(!e||!e.product)&&"ReactNative"===e.product},c.isSafari=function(e){var n;return!!~((e=e&&he(e)?e:(n=on()||{})?(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.isXhrSupported=hn,c.mwcRandom32=kt,c.mwcRandomSeed=Lt,c.newGuid=Ut,c.newId=Bt,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=zt,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=Mt,c.randomValue=Pt,c.safeGetCookieMgr=function(e,n){var t;return e?t=e.getCookieMgr():n&&(t=n.cookieCfg[$n]||ut(n)),t||ot(n,(e||{}).logger)},c.safeGetLogger=xn,c.setCookie=function(e,n,t,r){Wt(null,e).set(n,t,null,r)},c.setEnableEnvMocks=function(e){Je=e},c.setGblPerfMgr=function(e){Sn=e},c.setValue=ke,c.sortPlugins=zn,c.strContains=ge,c.strEndsWith=fe,c.strExtensionConfig=kn,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=Te,c.strUndefined=n,c.throwError=Oe,c.toISOString=Ce,c.uaDisallowsSameSiteNone=dt,c.useXDomainRequest=function(){return Xe=null===Xe&&(Xe=typeof XDomainRequest!==undefined)&&hn()?Xe&&!$e(Ze("XMLHttpRequest"),"withCredentials"):Xe},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.7.1-nightly.202110-05
* Application Insights JavaScript SDK - Core, 2.7.1-nightly.202110-06
* Copyright (c) Microsoft and contributors. All rights reserved.

@@ -11,3 +11,3 @@ */

export { randomValue, random32, mwcRandomSeed, mwcRandom32 } from './JavaScriptSDK/RandomHelper';
export { CoreUtils, EventHelper, Undefined, addEventHandler, newGuid, perfNow, newId, generateW3CId, disableCookies, canUseCookies, getCookie, setCookie, deleteCookie, _legacyCookieMgr } from "./JavaScriptSDK/CoreUtils";
export { CoreUtils, EventHelper, Undefined, addEventHandler, newGuid, perfNow, newId, generateW3CId, disableCookies, canUseCookies, getCookie, setCookie, deleteCookie, _legacyCookieMgr, addEventListeners, addPageUnloadEventListener, addPageHideEventListener, addPageShowEventListener } from "./JavaScriptSDK/CoreUtils";
export { isTypeof, isUndefined, isNullOrUndefined, hasOwnProperty, isObject, isFunction, attachEvent, detachEvent, normalizeJsName, objForEachKey, strEndsWith, strStartsWith, isDate, isArray, isError, isString, isNumber, isBoolean, toISOString, arrForEach, arrIndexOf, arrMap, arrReduce, strTrim, objKeys, objDefineAccessors, dateNow, getExceptionName, throwError, strContains, isSymbol, setValue, getSetValue, isNotTruthy, isTruthy, proxyAssign, createClassFromInterface, optimizeObject, isNotUndefined, isNotNullOrUndefined, objFreeze, objSeal } from './JavaScriptSDK/HelperFuncs';

@@ -14,0 +14,0 @@ export { getGlobalInst, hasWindow, getWindow, hasDocument, getDocument, getCrypto, getMsCrypto, hasNavigator, getNavigator, hasHistory, getHistory, getLocation, getPerformance, hasJSON, getJSON, isReactNative, getConsole, dumpObj, isIE, getIEVersion, isSafari, setEnableEnvMocks, isBeaconsSupported, isFetchSupported, useXDomainRequest, isXhrSupported } from "./JavaScriptSDK/EnvUtils";

/*
* Application Insights JavaScript SDK - Core, 2.7.1-nightly.202110-05
* Application Insights JavaScript SDK - Core, 2.7.1-nightly.202110-06
* Copyright (c) Microsoft and contributors. All rights reserved.

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

/*
* Application Insights JavaScript SDK - Core, 2.7.1-nightly.202110-05
* Application Insights JavaScript SDK - Core, 2.7.1-nightly.202110-06
* Copyright (c) Microsoft and contributors. All rights reserved.

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

/*
* Application Insights JavaScript SDK - Core, 2.7.1-nightly.202110-05
* Application Insights JavaScript SDK - Core, 2.7.1-nightly.202110-06
* Copyright (c) Microsoft and contributors. All rights reserved.

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

/*
* Application Insights JavaScript SDK - Core, 2.7.1-nightly.202110-05
* Application Insights JavaScript SDK - Core, 2.7.1-nightly.202110-06
* Copyright (c) Microsoft and contributors. All rights reserved.

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

/*
* Application Insights JavaScript SDK - Core, 2.7.1-nightly.202110-05
* Application Insights JavaScript SDK - Core, 2.7.1-nightly.202110-06
* Copyright (c) Microsoft and contributors. All rights reserved.

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

/*
* Application Insights JavaScript SDK - Core, 2.7.1-nightly.202110-05
* Application Insights JavaScript SDK - Core, 2.7.1-nightly.202110-06
* Copyright (c) Microsoft and contributors. All rights reserved.

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

/*
* Application Insights JavaScript SDK - Core, 2.7.1-nightly.202110-05
* Application Insights JavaScript SDK - Core, 2.7.1-nightly.202110-06
* Copyright (c) Microsoft and contributors. All rights reserved.

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

/*
* Application Insights JavaScript SDK - Core, 2.7.1-nightly.202110-05
* Application Insights JavaScript SDK - Core, 2.7.1-nightly.202110-06
* Copyright (c) Microsoft and contributors. All rights reserved.

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

/*
* Application Insights JavaScript SDK - Core, 2.7.1-nightly.202110-05
* Application Insights JavaScript SDK - Core, 2.7.1-nightly.202110-06
* Copyright (c) Microsoft and contributors. All rights reserved.

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

/*
* Application Insights JavaScript SDK - Core, 2.7.1-nightly.202110-05
* Application Insights JavaScript SDK - Core, 2.7.1-nightly.202110-06
* Copyright (c) Microsoft and contributors. All rights reserved.

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

/*
* Application Insights JavaScript SDK - Core, 2.7.1-nightly.202110-05
* Application Insights JavaScript SDK - Core, 2.7.1-nightly.202110-06
* Copyright (c) Microsoft and contributors. All rights reserved.

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

/*
* Application Insights JavaScript SDK - Core, 2.7.1-nightly.202110-05
* Application Insights JavaScript SDK - Core, 2.7.1-nightly.202110-06
* Copyright (c) Microsoft and contributors. All rights reserved.

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

/*
* Application Insights JavaScript SDK - Core, 2.7.1-nightly.202110-05
* Application Insights JavaScript SDK - Core, 2.7.1-nightly.202110-06
* Copyright (c) Microsoft and contributors. All rights reserved.

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

/*
* Application Insights JavaScript SDK - Core, 2.7.1-nightly.202110-05
* Application Insights JavaScript SDK - Core, 2.7.1-nightly.202110-06
* Copyright (c) Microsoft and contributors. All rights reserved.

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

/*
* Application Insights JavaScript SDK - Core, 2.7.1-nightly.202110-05
* Application Insights JavaScript SDK - Core, 2.7.1-nightly.202110-06
* Copyright (c) Microsoft and contributors. All rights reserved.

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

/*
* Application Insights JavaScript SDK - Core, 2.7.1-nightly.202110-05
* Application Insights JavaScript SDK - Core, 2.7.1-nightly.202110-06
* Copyright (c) Microsoft and contributors. All rights reserved.

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

/*
* Application Insights JavaScript SDK - Core, 2.7.1-nightly.202110-05
* Application Insights JavaScript SDK - Core, 2.7.1-nightly.202110-06
* Copyright (c) Microsoft and contributors. All rights reserved.

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

/*
* Application Insights JavaScript SDK - Core, 2.7.1-nightly.202110-05
* Application Insights JavaScript SDK - Core, 2.7.1-nightly.202110-06
* Copyright (c) Microsoft and contributors. All rights reserved.

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

/*
* Application Insights JavaScript SDK - Core, 2.7.1-nightly.202110-05
* Application Insights JavaScript SDK - Core, 2.7.1-nightly.202110-06
* Copyright (c) Microsoft and contributors. All rights reserved.

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

/*
* Application Insights JavaScript SDK - Core, 2.7.1-nightly.202110-05
* Application Insights JavaScript SDK - Core, 2.7.1-nightly.202110-06
* Copyright (c) Microsoft and contributors. All rights reserved.

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

/*
* Application Insights JavaScript SDK - Core, 2.7.1-nightly.202110-05
* Application Insights JavaScript SDK - Core, 2.7.1-nightly.202110-06
* Copyright (c) Microsoft and contributors. All rights reserved.

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

/*
* Application Insights JavaScript SDK - Core, 2.7.1-nightly.202110-05
* Application Insights JavaScript SDK - Core, 2.7.1-nightly.202110-06
* Copyright (c) Microsoft and contributors. All rights reserved.

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

/*
* Application Insights JavaScript SDK - Core, 2.7.1-nightly.202110-05
* Application Insights JavaScript SDK - Core, 2.7.1-nightly.202110-06
* Copyright (c) Microsoft and contributors. All rights reserved.

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

/*
* Application Insights JavaScript SDK - Core, 2.7.1-nightly.202110-05
* Application Insights JavaScript SDK - Core, 2.7.1-nightly.202110-06
* Copyright (c) Microsoft and contributors. All rights reserved.

@@ -13,2 +13,5 @@ */

import { randomValue, random32, mwcRandomSeed, mwcRandom32 } from "./RandomHelper";
var strVisibilityChangeEvt = "visibilitychange";
var strPageHide = "pagehide";
var strPageShow = "pageshow";
var _cookieMgrs = null;

@@ -37,2 +40,98 @@ var _canUseCookies; // legacy supported config

}
/**
* Bind the listener to the array of events
* @param events An string array of event names to bind the listener to
* @param listener The event callback to call when the event is triggered
* @param excludeEvents - [Optional] An array of events that should not be hooked (if possible), unless no other events can be.
* @returns true - when at least one of the events was registered otherwise false
*/
export function addEventListeners(events, listener, excludeEvents) {
var added = false;
if (listener && events && isArray(events)) {
var excluded_1 = [];
arrForEach(events, function (name) {
if (isString(name)) {
if (!excludeEvents || arrIndexOf(excludeEvents, name) === -1) {
added = addEventHandler(name, listener) || added;
}
else {
excluded_1.push(name);
}
}
});
if (!added && excluded_1.length > 0) {
// Failed to add any listeners and we excluded some, so just attempt to add the excluded events
added = addEventListeners(excluded_1, listener);
}
}
return added;
}
/**
* Listen to the 'beforeunload', 'unload' and 'pagehide' events which indicates a page unload is occurring,
* this does NOT listen to the 'visibilitychange' event as while it does indicate that the page is being hidden
* it does not *necessarily* mean that the page is being completely unloaded, it can mean that the user is
* just navigating to a different Tab and may come back (without unloading the page). As such you may also
* need to listen to the 'addPageHideEventListener' and 'addPageShowEventListener' events.
* @param listener - The event callback to call when a page unload event is triggered
* @param excludeEvents - [Optional] An array of events that should not be hooked, unless no other events can be.
* @returns true - when at least one of the events was registered otherwise false
*/
export function addPageUnloadEventListener(listener, excludeEvents) {
// Hook the unload event for the document, window and body to ensure that the client events are flushed to the server
// As just hooking the window does not always fire (on chrome) for page navigation's.
return addEventListeners(["beforeunload", "unload", "pagehide"], listener, excludeEvents);
}
/**
* Listen to the pagehide and visibility changing to 'hidden' events
* @param listener - The event callback to call when a page hide event is triggered
* @param excludeEvents - [Optional] An array of events that should not be hooked (if possible), unless no other events can be.
* Suggestion: pass as true if you are also calling addPageUnloadEventListener as that also hooks pagehide
* @returns true - when at least one of the events was registered otherwise false
*/
export function addPageHideEventListener(listener, excludeEvents) {
function _handlePageVisibility(evt) {
var doc = getDocument();
if (listener && doc && doc.visibilityState === 'hidden') {
listener(evt);
}
}
var pageUnloadAdded = false;
if (!excludeEvents || arrIndexOf(excludeEvents, strPageHide) === -1) {
pageUnloadAdded = addEventHandler(strPageHide, listener);
}
if (!excludeEvents || arrIndexOf(excludeEvents, strVisibilityChangeEvt) === -1) {
pageUnloadAdded = addEventHandler(strVisibilityChangeEvt, _handlePageVisibility) || pageUnloadAdded;
}
if (!pageUnloadAdded && excludeEvents) {
// Failed to add any listeners and we where requested to exclude some, so just call again without excluding anything
pageUnloadAdded = addPageHideEventListener(listener);
}
return pageUnloadAdded;
}
/**
* Listen to the pageshow and visibility changing to 'visible' events
* @param listener - The event callback to call when a page is show event is triggered
* @param excludeEvents - [Optional] An array of events that should not be hooked (if possible), unless no other events can be.
* @returns true - when at least one of the events was registered otherwise false
*/
export function addPageShowEventListener(listener, excludeEvents) {
function _handlePageVisibility(evt) {
var doc = getDocument();
if (listener && doc && doc.visibilityState === 'visible') {
listener(evt);
}
}
var pageShowAdded = false;
if (!excludeEvents || arrIndexOf(excludeEvents, strPageShow) === -1) {
pageShowAdded = addEventHandler(strPageShow, listener);
}
if (!excludeEvents || arrIndexOf(excludeEvents, strVisibilityChangeEvt) === -1) {
pageShowAdded = addEventHandler(strVisibilityChangeEvt, _handlePageVisibility) || pageShowAdded;
}
if (!pageShowAdded && excludeEvents) {
// Failed to add any listeners and we where requested to exclude some, so just call again without excluding anything
pageShowAdded = addPageShowEventListener(listener);
}
return pageShowAdded;
}
export function newGuid() {

@@ -39,0 +138,0 @@ function randomHexDigit() {

/*
* Application Insights JavaScript SDK - Core, 2.7.1-nightly.202110-05
* Application Insights JavaScript SDK - Core, 2.7.1-nightly.202110-06
* Copyright (c) Microsoft and contributors. All rights reserved.

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

/*
* Application Insights JavaScript SDK - Core, 2.7.1-nightly.202110-05
* Application Insights JavaScript SDK - Core, 2.7.1-nightly.202110-06
* Copyright (c) Microsoft and contributors. All rights reserved.

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

/*
* Application Insights JavaScript SDK - Core, 2.7.1-nightly.202110-05
* Application Insights JavaScript SDK - Core, 2.7.1-nightly.202110-06
* Copyright (c) Microsoft and contributors. All rights reserved.

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

/*
* Application Insights JavaScript SDK - Core, 2.7.1-nightly.202110-05
* Application Insights JavaScript SDK - Core, 2.7.1-nightly.202110-06
* Copyright (c) Microsoft and contributors. All rights reserved.

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

/*
* Application Insights JavaScript SDK - Core, 2.7.1-nightly.202110-05
* Application Insights JavaScript SDK - Core, 2.7.1-nightly.202110-06
* Copyright (c) Microsoft and contributors. All rights reserved.

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

/*
* Application Insights JavaScript SDK - Core, 2.7.1-nightly.202110-05
* Application Insights JavaScript SDK - Core, 2.7.1-nightly.202110-06
* Copyright (c) Microsoft and contributors. All rights reserved.

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

/*
* Application Insights JavaScript SDK - Core, 2.7.1-nightly.202110-05
* Application Insights JavaScript SDK - Core, 2.7.1-nightly.202110-06
* Copyright (c) Microsoft and contributors. All rights reserved.

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

/*
* Application Insights JavaScript SDK - Core, 2.7.1-nightly.202110-05
* Application Insights JavaScript SDK - Core, 2.7.1-nightly.202110-06
* Copyright (c) Microsoft and contributors. All rights reserved.

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

/*
* Application Insights JavaScript SDK - Core, 2.7.1-nightly.202110-05
* Application Insights JavaScript SDK - Core, 2.7.1-nightly.202110-06
* Copyright (c) Microsoft and contributors. All rights reserved.

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

/*
* Application Insights JavaScript SDK - Core, 2.7.1-nightly.202110-05
* Application Insights JavaScript SDK - Core, 2.7.1-nightly.202110-06
* Copyright (c) Microsoft and contributors. All rights reserved.

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

@@ -17,2 +17,14 @@ ## API Report File for "@microsoft/applicationinsights-core-js"

// @public
export function addEventListeners(events: string[], listener: any, excludeEvents?: string[]): boolean;
// @public
export function addPageHideEventListener(listener: any, excludeEvents?: string[]): boolean;
// @public
export function addPageShowEventListener(listener: any, excludeEvents?: string[]): boolean;
// @public
export function addPageUnloadEventListener(listener: any, excludeEvents?: string[]): boolean;
// @public (undocumented)

@@ -280,2 +292,4 @@ export class AppInsightsCore extends BaseCore implements IAppInsightsCore {

disableInstrumentationKeyValidation?: boolean;
disablePageShowEvents?: string[];
disablePageUnloadEvents?: string[];
enableDebugExceptions?: boolean;

@@ -282,0 +296,0 @@ enablePerfMgr?: boolean;

/*!
* Application Insights JavaScript SDK - Core, 2.7.1-nightly.202110-05
* Application Insights JavaScript SDK - Core, 2.7.1-nightly.202110-06
* 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 o={Unknown:0,NonRetryableStatus:1,InvalidEvent:2,SizeLimitExceeded:3,KillSwitch:4,QueueFull:5},a="function",u="object",n="undefined",s="prototype",r="hasOwnProperty",t=Object,i=t[s],l=t.assign,f=t.create,e=t.defineProperty,g=i[r];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[r](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 m(e,n){for(var t=0,r=n.length,i=e.length;t<r;t++,i++)e[i]=n[t];return e}var C="constructor",x="prototype",w="function",T="_dynInstFuncs",S="_isDynProxy",I="_dynClass",b="_dynInstChk",N=b,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[C]?e[C][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!==C&&typeof e[n]===w&&(t||O(e,n))}function B(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 q(e,n){return O(e,x)?e.name||n||P:((e||{})[C]||{}).name||n||P}function V(e,r,n,t){O(e,x)||B("theClass is an invalid class definition.");var i=e[x];!function(e){if(F)for(var n=[],t=j(r);t&&!D(t)&&!K(n,t);){if(t===e)return 1;n.push(t),t=j(t)}}(i)&&B("["+q(e)+"] is not in class hierarchy of ["+q(r)+"]");var o=null;O(i,I)?o=i[I]:(o="_dynCls$"+q(e,"_")+"$"+_,_++,i[I]=o);var a=V[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[I]]||{})[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)&&!K(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,I)){var o=e[T]||{};if((i=(o[t[I]]||{})[n])||B("Missing ["+n+"] "+w),!i[b]&&!1!==o[N]){for(var a=!O(e,n),u=j(e),s=[];a&&u&&!D(u)&&!K(s,u);){var c=u[n];if(c){a=c===r;break}s.push(u),u=j(u)}try{a&&(e[n]=i),i[b]=1}catch(l){o[N]=!1}}}return i}(this,r,t,i)||(typeof(n=(n=t[e=r])===i?j(t)[e]:n)!==w&&B("["+e+"] is not a "+w),n)).apply(this,arguments)})[S]=1,i)))}))}V[E]={setInstFuncs:!0,useBaseInst:!0},c.LoggingSeverity=void 0,(Ct=c.LoggingSeverity||(c.LoggingSeverity={}))[Ct.CRITICAL=1]="CRITICAL",Ct[Ct.WARNING=2]="WARNING";var G={BrowserDoesNotSupportLocalStorage:0,BrowserCannotReadLocalStorage:1,BrowserCannotReadSessionStorage:2,BrowserCannotWriteLocalStorage:3,BrowserCannotWriteSessionStorage:4,BrowserFailedRemovalFromLocalStorage:5,BrowserFailedRemovalFromSessionStorage:6,CannotSendEmptyTelemetry:7,ClientPerformanceMathError:8,ErrorParsingAISessionCookie:9,ErrorPVCalc:10,ExceptionWhileLoggingError:11,FailedAddingTelemetryToBuffer:12,FailedMonitorAjaxAbort:13,FailedMonitorAjaxDur:14,FailedMonitorAjaxOpen:15,FailedMonitorAjaxRSC:16,FailedMonitorAjaxSend:17,FailedMonitorAjaxGetCorrelationHeader:18,FailedToAddHandlerForOnBeforeUnload:19,FailedToSendQueuedTelemetry:20,FailedToReportDataLoss:21,FlushFailed:22,MessageLimitPerPVExceeded:23,MissingRequiredFieldSpecification:24,NavigationTimingNotSupported:25,OnError:26,SessionRenewalDateIsZero:27,SenderNotInitialized:28,StartTrackEventFailed:29,StopTrackEventFailed:30,StartTrackFailed:31,StopTrackFailed:32,TelemetrySampledAndNotSent:33,TrackEventFailed:34,TrackExceptionFailed:35,TrackMetricFailed:36,TrackPVFailed:37,TrackPVFailedCalc:38,TrackTraceFailed:39,TransmissionFailed:40,FailedToSetStorageBuffer:41,FailedToRestoreStorageBuffer:42,InvalidBackendResponse:43,FailedToFixDepricatedValues:44,InvalidDurationValue:45,TelemetryEnvelopeInvalid:46,CreateEnvelopeError:47,CannotSerializeObject:48,CannotSerializeObjectNonSerializable:49,CircularReferenceDetected:50,ClearAuthContextFailed:51,ExceptionTruncated:52,IllegalCharsInName:53,ItemNotInArray:54,MaxAjaxPerPVExceeded:55,MessageTruncated:56,NameTooLong:57,SampleRateOutOfRange:58,SetAuthContextFailed:59,SetAuthContextFailedAccountName:60,StringValueTooLong:61,StartCalledMoreThanOnce:62,StopCalledWithoutStart:63,TelemetryInitializerFailed:64,TrackArgumentsNotSpecified:65,UrlTooLong:66,SessionStorageBufferFull:67,CannotAccessCookie:68,IdTooLong:69,InvalidEvent:70,FailedMonitorAjaxSetRequestHeader:71,SendBrowserInfoOnUserInit:72,PluginException:73,NotificationException:74,SnippetScriptLoadFailure:99,InvalidInstrumentationKey:100,CannotParseAiBlobValue:101,InvalidContentBlob:102,TrackPageActionEventFailed:103,FailedAddingCustomDefinedRequestContext:104},W="on",H="attachEvent",J="addEventListener",X="detachEvent",Q="removeEventListener",$=e,Z=t.freeze,Y=t.seal;function ee(e){return i.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](W+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[Q])?re(e[X])||e[X](W+n,t):e[Q](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 me(e){return"boolean"==typeof e}function Ce(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){var r=e.length;try{for(var i=0;i<r&&!(i in e&&-1===n.call(t||e,e[i],i,e));i++);}catch(o){}}function we(e,n,t){var r=e.length,t=t||0;try{for(var i=Math.max(0<=t?t:r-Math.abs(t),0);i<r;i++)if(i in e&&e[i]===n)return i}catch(o){}return-1}function Te(e,n,t){var r=e.length,i=t||e,o=Array(r);try{for(var a=0;a<r;a++)a in e&&(o[a]=n.call(i,e[a],e))}catch(u){}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 Ie(e){return"string"!=typeof e?e:e.replace(/^\s+|\s+$/g,"")}var be=!{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(be)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($)try{var i={enumerable:!0,configurable:!0};return t&&(i.get=t),r&&(i.set=r),$(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",Be="JSON",Ke="crypto",qe="msCrypto",Ve="msie",Ge="trident/",We=null,He=null,Je=!1,Xe=null,Qe=null;function $e(e,n){var t,r=!1;if(e){try{(r=n in e)||(t=e[s])&&(r=n in t)}catch(i){}if(!r)try{r=!te((new e)[n])}catch(i){}}return r}function Ze(e){var n=d();return n&&n[e]?n[e]:e===Re&&Ye()?window:null}function Ye(){return!(typeof window!==u||!window)}function en(){return Ye()?window:Ze(Re)}function nn(){return!(typeof document!==u||!document)}function tn(){return nn()?document:Ze("document")}function rn(){return!(typeof navigator!==u||!navigator)}function on(){return rn()?navigator:Ze(De)}function an(){return!(typeof history!==u||!history)}function un(e){return e&&Je&&(e=Ze("__mockLocation"))?e:typeof location===u&&location?location:Ze(je)}function sn(){return typeof console!==n?console:Ze(Ue)}function cn(){return Ze(ze)}function ln(){return!!(typeof JSON===u&&JSON||null!==Ze(Be))}function fn(){return ln()?JSON||Ze(Be):null}function gn(){return Ze(Ke)}function dn(){return Ze(qe)}function vn(){var e=on();return!e||e.userAgent===He&&null!==We||(e=((He=e.userAgent)||"").toLowerCase(),We=ge(e,Ve)||ge(e,Ge)),We}function pn(e){var n=Object[s].toString.call(e),t="";return"[object Error]"===n?t="{ stack: '"+e.stack+"', message: '"+e.message+"', name: '"+e.name+"'":ln()&&(t=fn().stringify(e)),n+t}function hn(){var e=!1;try{e=!!Ze("XMLHttpRequest")}catch(n){}return e}function yn(e){return e?'"'+e.replace(/\"/g,"")+'"':""}var mn=(Cn.dataType="MessageData",Cn);function Cn(e,n,t,r){void 0===t&&(t=!1),this.messageId=e,this.message=(t?"AI: ":"AI (Internal): ")+e,e="",ln()&&(e=fn().stringify(r)),e=(n?" message:"+yn(n):"")+(r?" props:"+yn(e):""),this.message+=e}function xn(e,n){return(e||{}).logger||new wn(n)}var wn=function Zt(t){this.identifier="DiagnosticLogger",this.queue=[];var i=0,a={};V(Zt,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 mn(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=sn();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 mn(G.MessageLimitPerPVExceeded,e="Internal events throttle limit per PageView reached for this app.",!1),o.queue.push(n),o.warnToConsole(e))))}})},Tn=null,Sn=(In.ParentContextKey="parent",In.ChildrenContextKey="childEvts",In);function In(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===In.ParentContextKey||e===In.ChildrenContextKey?o:o.ctx||{})[e]:null},o.setCtx=function(e,n){e&&(e===In.ParentContextKey?(o[e]||(o.isChildEvt=function(){return!0}),o[e]=n):e===In.ChildrenContextKey?o[e]=n:(o.ctx=o.ctx||{})[e]=n)},o.complete=function(){var e=0,n=o.getCtx(In.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 bn=function Yt(n){this.ctx={},V(Yt,this,function(t){t.create=function(e,n,t){return new Sn(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]}})},Nn="CoreUtils.doPerf";function En(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(Nn);try{if(u=o.create(n(),r,i))return e&&u.setCtx&&(u.setCtx(Sn.ParentContextKey,e),e.getCtx&&e.setCtx&&((a=e.getCtx(Sn.ChildrenContextKey))||(a=[],e.setCtx(Sn.ChildrenContextKey,a)),a.push(u))),o.setCtx(Nn,u),t(u)}catch(s){u&&u.setCtx&&u.setCtx("exception",s)}finally{u&&o.fire(u),o.setCtx(Nn,e)}}}return t()}var Pn=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";En(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,G.PluginException,"Plugin ["+i.identifier+"] failed during processTelemetry - "+pn(n)),a&&!e&&a.processTelemetry(t,r)}}else a&&(o._hasRun=!0,a.processTelemetry(t,r))},function(){return{item:t}},!t.sync)}};function Mn(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 Pn(o,n),t.push(o),r&&r.setNext(o),r=o)}return 0<t.length?t[0]:null}var Ln=function er(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),Mn(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=Mn(a,r)):te(n)&&(c=Mn(e,s))),s.core=function(){return t},s.diagLog=function(){return xn(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 er((e=void 0===e?null:e)||c,i,t,n)}},kn="extensionConfig",An="getPlugin",Fn=(_n.prototype.initialize=function(e,n,t,r){this._baseTelInit(e,n,t,r)},_n);function _n(){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 Ln(null,{},o.core),n=s&&s[An]?e.createNew(null,s[An]):e.createNew(null,s)),n},o._baseTelInit=function(e,n,t,r){e&&ke(e,kn,[],null,re),!r&&n&&(r=n.getProcessTelContext().getNext());var i=s;s&&s[An]&&(i=s[An]()),o.core=n,u=new Ln(r,e,n,i),a=!0}}var On="processTelemetry",Rn="priority",Dn="setNextPlugin",jn="isInitialized";function Un(n,t){for(var e=[],r=null,i=n.getNext();i;){var o=i.getPlugin();o&&(r&&ue(r[Dn])&&ue(o[On])&&r[Dn](o),ue(o[jn])&&o[jn]()||e.push(o),r=o,i=i.getNext())}xe(e,function(e){e.initialize(n.getCfg(),n.core(),t,n.getNext())})}function zn(e){return e.sort(function(e,n){var t=0,r=ue(n[On]);return ue(e[On])?t=r?e[Rn]-n[Rn]:1:r&&(t=-1),t})}var Bn,Kn=(y(qn,Bn=Fn),qn._staticInit=(Pe(Bt=qn.prototype,"ChannelControls",Bt.getChannelControls),void Pe(Bt,"channelQueue",Bt.getChannelControls)),qn);function qn(){var s,r=Bn.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,V(qn,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 Un(new Ln(e,n,t),r)}))}}),r}var Vn="toGMTString",Gn="toUTCString",Wn="cookie",Hn="expires",Jn="enabled",Xn="isCookieUseDisabled",Qn="disableCookiesUsage",$n="_ckMgr",Zn="",Yn=null,et=null,nt=null,tt=tn(),rt={},it={};function ot(e,n){var t=ut[$n]||it[$n];return t||(t=ut[$n]=ut(e,n),it[$n]=t),t}function at(e){return!e||e.isEnabled()}function ut(e,i){var n,t,c=(ke(t=(n=e||it).cookieCfg=n.cookieCfg||{},"domain",n.cookieDomain,ie,re),ke(t,"path",n.cookiePath||"/",null,re),re(t[Jn])&&(e=void 0,te(n[Xn])||(e=!n[Xn]),te(n[Qn])||(e=!n[Qn]),t[Jn]=e),t),l=c.path||"/",f=c.domain,r=!1!==c[Jn],g={isEnabled:function(){var e=r&&st(i),n=it[$n];return e&&n&&g!==n?at(n):e},setEnabled:function(e){r=!1!==e},set:function(e,n,t,r,i){var o,a,u,s=!1;return at(g)&&(o={},-1!=(u=(a=Ie(n||Zn)).indexOf(";"))&&(a=Ie(n.substring(0,u)),o=ct(n.substring(1+u))),ke(o,"domain",r||f,_e,te),re(t)||(u=vn(),!te(o[Hn])||0<(n=Me()+1e3*t)&&((r=new Date).setTime(n),ke(o,Hn,lt(r,u?Vn:Gn)||lt(r,u?Vn:Gn)||Zn,_e)),u||ke(o,"max-age",Zn+t,null,te)),(t=un())&&"https:"===t.protocol&&(ke(o,"secure",null,null,te),(et=null===et?!dt((on()||{}).userAgent):et)&&ke(o,"SameSite","None",null,te)),ke(o,"path",i||l,null,te),(c.setCookie||gt)(e,ft(a,o)),s=!0),s},get:function(e){var n=Zn;return at(g)?(c.getCookie||function(e){var n,t=Zn;return tt&&(n=tt[Wn]||Zn,nt!==n&&(rt=ct(n),nt=n),t=Ie(rt[e]||Zn)),t})(e):n},del:function(e,n){return!!at(g)&&g.purge(e,n)},purge:function(e,n){var t,r=!1;return st(i)&&((t={}).path=n||"/",t[Hn]="Thu, 01 Jan 1970 00:00:01 GMT",vn()||(t["max-age"]="0"),(c.delCookie||gt)(e,ft(Zn,t)),r=!0),r}};return g[$n]=g}function st(e){if(null===Yn){Yn=!1;try{Yn=(tt||{})[Wn]!==undefined}catch(n){e&&e.throwInternal(c.LoggingSeverity.WARNING,G.CannotAccessCookie,"Cannot access document.cookie - "+Le(n),{exception:pn(n)})}}return Yn}function ct(e){var t={};return e&&e.length&&xe(Ie(e).split(";"),function(e){var n;(e=Ie(e||Zn))&&(-1==(n=e.indexOf("="))?t[e]=null:t[Ie(e.substring(0,n))]=Ie(e.substring(1+n)))}),t}function lt(e,n){return ue(e[n])?e[n]():null}function ft(e,n){var t=e||Zn;return le(n,function(e,n){t+="; "+e+(re(n)?Zn:"="+n)}),t}function gt(e,n){tt&&(tt[Wn]=e+"="+n)}function dt(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 vt="_notificationManager";function pt(e,n){return new bn(n)}var ht,yt=function nr(){var n,u,s,t,r,c=!1;V(nr,this,function(a){a._extensions=[],u=new Kn,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[vt]=t,a.config=e||{},a.config.enablePerfMgr&&ke(a.config,"createPerfMgr",pt),e.extensions=re(e.extensions)?[]:e.extensions,Ae(e,kn).NotificationManager=t,r&&(a.logger=r),(t=[]).push.apply(t,m(m([],n),e.extensions));var t=zn(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=zn(t),a._extensions=t,Un(new Ln([u],e,a),t),Un(new Ln(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",Ce(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 Ln(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[vt]=s),s},a.getCookieMgr=function(){return r=r||ut(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||Tn},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=[])}})},mt=function tr(e){this.listeners=[];var n=!!(e||{}).perfEvtsSendAll;V(tr,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){}}))}})},Ct=(y(xt,ht=yt),xt);function xt(){var e=ht.call(this)||this,r=0;return V(xt,e,function(t,i){function n(e){var n=t.getNotifyMgr();n&&n.eventsDiscarded([e],o.InvalidEvent)}t.initialize=function(e,n,t,r){i.initialize(e,n,t||new wn(e),r||new mt(e))},t.track=function(e){En(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 e&&0<e||(e=1e4),r&&t.stopPollingInternalLogs(),r=setInterval(function(){var e=t.logger?t.logger.queue:[];xe(e,function(e){e={name:n||"InternalMessageId: "+e.messageId,iKey:t.config.instrumentationKey,time:Ce(new Date),baseType:mn.dataType,baseData:{message:e.message}},t.track(e)}),e.length=0},e)},t.stopPollingInternalLogs=function(){r&&(clearInterval(r),r=0)}}),e}var wt=4294967296,Tt=4294967295,St=!1,It=123456789,bt=987654321;function Nt(e){e<0&&(e>>>=0),It=123456789+e&Tt,bt=987654321-e&Tt,St=!0}function Et(){try{var e=2147483647&Me();Nt((Math.random()*wt^e)+e)}catch(n){}}function Pt(e){return 0<e?Math.floor(Mt()/Tt*(e+1))>>>0:0}function Mt(e){var n=(n=gn()||dn())&&n.getRandomValues?n.getRandomValues(new Uint32Array(1))[0]&Tt:vn()?(St||Et(),kt()&Tt):Math.floor(wt*Math.random()|0);return e||(n>>>=0),n}function Lt(e){e?Nt(e):Et()}function kt(e){var n=((bt=36969*(65535&bt)+(bt>>16)&Tt)<<16)+(65535&(It=18e3*(65535&It)+(It>>16)&Tt))>>>0&Tt|0;return e||(n>>>=0),n}var At,Ft=null,e=n;function _t(e,n){var t=!1,r=en();return r&&(t=se(r,e,n),t=se(r.body,e,n)||t),(r=tn())&&se(r,e,n)||t}function Ot(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(zt,function(e){var n=0|Pt(15);return("x"===e?n:3&n|8).toString(16)})}function Rt(){var e=cn();return e&&e.now?e.now():Me()}function Dt(e){void 0===e&&(e=22);for(var n=Mt()>>>0,t=0,r="";r.length<e;)r+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"[0|63&n]||"",n>>>=6,5==++t&&(n=(Mt()<<2&4294967295|3&n)>>>0,t=0);return r}function jt(){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=Mt())]+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&Mt())|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 Ut={_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:me,toISOString:Ce,arrForEach:xe,arrIndexOf:we,arrMap:Te,arrReduce:Se,strTrim:Ie,objCreate:p,objKeys:Ee,objDefineAccessors:Pe,addEventHandler:_t,dateNow:Me,isIE:vn,disableCookies:qt,newGuid:Ot,perfNow:Rt,newId:Dt,randomValue:Pt,random32:Mt,mwcRandomSeed:Lt,mwcRandom32:kt,generateW3CId:jt},zt=/[xy]/g,Bt={Attach:se,AttachEvent:se,Detach:ce,DetachEvent:ce};function Kt(e,n){return e=ot(e,n),n=Ut._canUseCookies,null===Ft&&(Ft=[],At=n,Pe(Ut,"_canUseCookies",function(){return At},function(n){At=n,xe(Ft,function(e){e.setEnabled(n)})})),-1===we(Ft,e)&&Ft.push(e),me(n)&&e.setEnabled(n),me(At)&&e.setEnabled(At),e}function qt(){Kt().setEnabled(!1)}var Vt="_aiHooks",Gt=["req","rsp","hkErr","fnErr"];function Wt(e,n){if(e)for(var t=0;t<e.length&&!n(e[t],t);t++);}function Ht(e,a,u,s,c){0<=c&&c<=2&&Wt(e,function(e,n){var t=e.cbks;if(e=t[Gt[c]]){a.ctx=function(){return s[n]=s[n]||{}};try{e.apply(a.inst,u)}catch(i){e=a.err;try{var r=t[Gt[2]];r&&(a.err=i,r.apply(a.inst,u))}catch(o){}finally{a.err=e}}}})}function Jt(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 Wt(e,function(e){n.push(e)}),n}Ht(e,r,i,n,0);var a=s.f;try{r.rslt=a.apply(this,t)}catch(u){throw r.err=u,Ht(e,r,i,n,3),u}return Ht(e,r,i,n,1),r.rslt}}var Xt=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(Xt)return Xt(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[Vt];return i||((r=Jt(i={i:0,n:n,f:r,h:[]}))[Vt]=i,e[n]=r),t={id:i.i,cbks:t,rm:function(){var t=this.id;Wt(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 $t(n,e,t,r){void 0===r&&(r=!0);var i=null;return Wt(e,function(e){(e=Qt(n,e,t,r))&&(i=i||[]).push(e)}),i}c.AppInsightsCore=Ct,c.BaseCore=yt,c.BaseTelemetryPlugin=Fn,c.CoreUtils=Ut,c.DiagnosticLogger=wn,c.EventHelper=Bt,c.EventsDiscardedReason=o,c.InstrumentFunc=Qt,c.InstrumentFuncs=$t,c.InstrumentProto=function(e,n,t){return e?Qt(e[s],n,t,!1):null},c.InstrumentProtos=function(e,n,t){return e?$t(e[s],n,t,!1):null},c.MinChannelPriorty=100,c.NotificationManager=mt,c.PerfEvent=Sn,c.PerfManager=bn,c.ProcessTelemetryContext=Ln,c.Undefined=e,c._InternalLogMessage=mn,c._InternalMessageId=G,c._legacyCookieMgr=Kt,c.addEventHandler=_t,c.areCookiesSupported=st,c.arrForEach=xe,c.arrIndexOf=we,c.arrMap=Te,c.arrReduce=Se,c.attachEvent=se,c.canUseCookies=function(e){return Kt(null,e).isEnabled()},c.createClassFromInterface=function(e){return function(){var t=this;e&&le(e,function(e,n){t[e]=n})}},c.createCookieMgr=ut,c.dateNow=Me,c.deleteCookie=function(e,n){return Kt(null,e).del(n)},c.detachEvent=ce,c.disableCookies=qt,c.doPerf=En,c.dumpObj=pn,c.generateW3CId=jt,c.getConsole=sn,c.getCookie=function(e,n){return Kt(null,e).get(n)},c.getCrypto=gn,c.getDocument=tn,c.getExceptionName=Le,c.getGblPerfMgr=function(){return Tn},c.getGlobal=d,c.getGlobalInst=Ze,c.getHistory=function(){return an()?history:Ze("history")},c.getIEVersion=function(e){var n;return ge(e=((e=(e=void 0===e?null:e)?e:(n=on()||{})?(n.userAgent||"").toLowerCase():"")||"").toLowerCase(),Ve)?parseInt(e.split(Ve)[1]):ge(e,Ge)&&(e=parseInt(e.split(Ge)[1]))?e+4:null},c.getJSON=fn,c.getLocation=un,c.getMsCrypto=dn,c.getNavigator=on,c.getPerformance=cn,c.getSetValue=Ae,c.getWindow=en,c.hasDocument=nn,c.hasHistory=an,c.hasJSON=ln,c.hasNavigator=rn,c.hasOwnProperty=oe,c.hasWindow=Ye,c.initializePlugins=Un,c.isArray=ve,c.isBeaconsSupported=function(){return Qe=null===Qe?rn()&&!!on().sendBeacon:Qe},c.isBoolean=me,c.isDate=de,c.isError=pe,c.isFetchSupported=function(e){var n=!1;try{var n=!!Ze("fetch"),t=Ze("Request");n&&e&&t&&(n=$e(t,"keepalive"))}catch(r){}return n},c.isFunction=ue,c.isIE=vn,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=on();return!(!e||!e.product)&&"ReactNative"===e.product},c.isSafari=function(e){var n;return!!~((e=e&&he(e)?e:(n=on()||{})?(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.isXhrSupported=hn,c.mwcRandom32=kt,c.mwcRandomSeed=Lt,c.newGuid=Ot,c.newId=Dt,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=Rt,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=Mt,c.randomValue=Pt,c.safeGetCookieMgr=function(e,n){var t;return e?t=e.getCookieMgr():n&&(t=n.cookieCfg[$n]||ut(n)),t||ot(n,(e||{}).logger)},c.safeGetLogger=xn,c.setCookie=function(e,n,t,r){Kt(null,e).set(n,t,null,r)},c.setEnableEnvMocks=function(e){Je=e},c.setGblPerfMgr=function(e){Tn=e},c.setValue=ke,c.sortPlugins=zn,c.strContains=ge,c.strEndsWith=fe,c.strExtensionConfig=kn,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=Ie,c.strUndefined=n,c.throwError=Oe,c.toISOString=Ce,c.uaDisallowsSameSiteNone=dt,c.useXDomainRequest=function(){return Xe=null===Xe&&(Xe=typeof XDomainRequest!==undefined)&&hn()?Xe&&!$e(Ze("XMLHttpRequest"),"withCredentials"):Xe},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})});
!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 o={Unknown:0,NonRetryableStatus:1,InvalidEvent:2,SizeLimitExceeded:3,KillSwitch:4,QueueFull:5},a="function",u="object",n="undefined",s="prototype",r="hasOwnProperty",t=Object,i=t[s],l=t.assign,f=t.create,e=t.defineProperty,g=i[r];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[r](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 m(e,n){for(var t=0,r=n.length,i=e.length;t<r;t++,i++)e[i]=n[t];return e}var C="constructor",x="prototype",w="function",S="_dynInstFuncs",b="_isDynProxy",T="_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[C]?e[C][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!==C&&typeof e[n]===w&&(t||O(e,n))}function B(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 q(e,n){return O(e,x)?e.name||n||P:((e||{})[C]||{}).name||n||P}function V(e,r,n,t){O(e,x)||B("theClass is an invalid class definition.");var i=e[x];!function(e){if(F)for(var n=[],t=j(r);t&&!D(t)&&!K(n,t);){if(t===e)return 1;n.push(t),t=j(t)}}(i)&&B("["+q(e)+"] is not in class hierarchy of ["+q(r)+"]");var o=null;O(i,T)?o=i[T]:(o="_dynCls$"+q(e,"_")+"$"+_,_++,i[T]=o);var a=V[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[b]&&o&&!1!==(r=e[S]||{})[N]&&(i=(r[n[T]]||{})[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)&&!K(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[S]=f[S]||{},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][b])||(l[e]=(t=l,r=e,(i=function(){var e,n;return(function(e,n,t,r){var i=null;if(e&&O(t,T)){var o=e[S]||{};if((i=(o[t[T]]||{})[n])||B("Missing ["+n+"] "+w),!i[I]&&!1!==o[N]){for(var a=!O(e,n),u=j(e),s=[];a&&u&&!D(u)&&!K(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&&B("["+e+"] is not a "+w),n)).apply(this,arguments)})[b]=1,i)))}))}V[E]={setInstFuncs:!0,useBaseInst:!0},c.LoggingSeverity=void 0,(Ct=c.LoggingSeverity||(c.LoggingSeverity={}))[Ct.CRITICAL=1]="CRITICAL",Ct[Ct.WARNING=2]="WARNING";var G={BrowserDoesNotSupportLocalStorage:0,BrowserCannotReadLocalStorage:1,BrowserCannotReadSessionStorage:2,BrowserCannotWriteLocalStorage:3,BrowserCannotWriteSessionStorage:4,BrowserFailedRemovalFromLocalStorage:5,BrowserFailedRemovalFromSessionStorage:6,CannotSendEmptyTelemetry:7,ClientPerformanceMathError:8,ErrorParsingAISessionCookie:9,ErrorPVCalc:10,ExceptionWhileLoggingError:11,FailedAddingTelemetryToBuffer:12,FailedMonitorAjaxAbort:13,FailedMonitorAjaxDur:14,FailedMonitorAjaxOpen:15,FailedMonitorAjaxRSC:16,FailedMonitorAjaxSend:17,FailedMonitorAjaxGetCorrelationHeader:18,FailedToAddHandlerForOnBeforeUnload:19,FailedToSendQueuedTelemetry:20,FailedToReportDataLoss:21,FlushFailed:22,MessageLimitPerPVExceeded:23,MissingRequiredFieldSpecification:24,NavigationTimingNotSupported:25,OnError:26,SessionRenewalDateIsZero:27,SenderNotInitialized:28,StartTrackEventFailed:29,StopTrackEventFailed:30,StartTrackFailed:31,StopTrackFailed:32,TelemetrySampledAndNotSent:33,TrackEventFailed:34,TrackExceptionFailed:35,TrackMetricFailed:36,TrackPVFailed:37,TrackPVFailedCalc:38,TrackTraceFailed:39,TransmissionFailed:40,FailedToSetStorageBuffer:41,FailedToRestoreStorageBuffer:42,InvalidBackendResponse:43,FailedToFixDepricatedValues:44,InvalidDurationValue:45,TelemetryEnvelopeInvalid:46,CreateEnvelopeError:47,CannotSerializeObject:48,CannotSerializeObjectNonSerializable:49,CircularReferenceDetected:50,ClearAuthContextFailed:51,ExceptionTruncated:52,IllegalCharsInName:53,ItemNotInArray:54,MaxAjaxPerPVExceeded:55,MessageTruncated:56,NameTooLong:57,SampleRateOutOfRange:58,SetAuthContextFailed:59,SetAuthContextFailedAccountName:60,StringValueTooLong:61,StartCalledMoreThanOnce:62,StopCalledWithoutStart:63,TelemetryInitializerFailed:64,TrackArgumentsNotSpecified:65,UrlTooLong:66,SessionStorageBufferFull:67,CannotAccessCookie:68,IdTooLong:69,InvalidEvent:70,FailedMonitorAjaxSetRequestHeader:71,SendBrowserInfoOnUserInit:72,PluginException:73,NotificationException:74,SnippetScriptLoadFailure:99,InvalidInstrumentationKey:100,CannotParseAiBlobValue:101,InvalidContentBlob:102,TrackPageActionEventFailed:103,FailedAddingCustomDefinedRequestContext:104},W="on",H="attachEvent",J="addEventListener",X="detachEvent",Q="removeEventListener",$=e,Z=t.freeze,Y=t.seal;function ee(e){return i.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](W+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[Q])?re(e[X])||e[X](W+n,t):e[Q](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 me(e){return"boolean"==typeof e}function Ce(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){var r=e.length;try{for(var i=0;i<r&&!(i in e&&-1===n.call(t||e,e[i],i,e));i++);}catch(o){}}function we(e,n,t){var r=e.length,t=t||0;try{for(var i=Math.max(0<=t?t:r-Math.abs(t),0);i<r;i++)if(i in e&&e[i]===n)return i}catch(o){}return-1}function Se(e,n,t){var r=e.length,i=t||e,o=Array(r);try{for(var a=0;a<r;a++)a in e&&(o[a]=n.call(i,e[a],e))}catch(u){}return o}function be(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 Te(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($)try{var i={enumerable:!0,configurable:!0};return t&&(i.get=t),r&&(i.set=r),$(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",Be="JSON",Ke="crypto",qe="msCrypto",Ve="msie",Ge="trident/",We=null,He=null,Je=!1,Xe=null,Qe=null;function $e(e,n){var t,r=!1;if(e){try{(r=n in e)||(t=e[s])&&(r=n in t)}catch(i){}if(!r)try{r=!te((new e)[n])}catch(i){}}return r}function Ze(e){var n=d();return n&&n[e]?n[e]:e===Re&&Ye()?window:null}function Ye(){return!(typeof window!==u||!window)}function en(){return Ye()?window:Ze(Re)}function nn(){return!(typeof document!==u||!document)}function tn(){return nn()?document:Ze("document")}function rn(){return!(typeof navigator!==u||!navigator)}function on(){return rn()?navigator:Ze(De)}function an(){return!(typeof history!==u||!history)}function un(e){return e&&Je&&(e=Ze("__mockLocation"))?e:typeof location===u&&location?location:Ze(je)}function sn(){return typeof console!==n?console:Ze(Ue)}function cn(){return Ze(ze)}function ln(){return!!(typeof JSON===u&&JSON||null!==Ze(Be))}function fn(){return ln()?JSON||Ze(Be):null}function gn(){return Ze(Ke)}function dn(){return Ze(qe)}function vn(){var e=on();return!e||e.userAgent===He&&null!==We||(e=((He=e.userAgent)||"").toLowerCase(),We=ge(e,Ve)||ge(e,Ge)),We}function pn(e){var n=Object[s].toString.call(e),t="";return"[object Error]"===n?t="{ stack: '"+e.stack+"', message: '"+e.message+"', name: '"+e.name+"'":ln()&&(t=fn().stringify(e)),n+t}function hn(){var e=!1;try{e=!!Ze("XMLHttpRequest")}catch(n){}return e}function yn(e){return e?'"'+e.replace(/\"/g,"")+'"':""}var mn=(Cn.dataType="MessageData",Cn);function Cn(e,n,t,r){void 0===t&&(t=!1),this.messageId=e,this.message=(t?"AI: ":"AI (Internal): ")+e,e="",ln()&&(e=fn().stringify(r)),e=(n?" message:"+yn(n):"")+(r?" props:"+yn(e):""),this.message+=e}function xn(e,n){return(e||{}).logger||new wn(n)}var wn=function tr(t){this.identifier="DiagnosticLogger",this.queue=[];var i=0,a={};V(tr,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 mn(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=sn();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 mn(G.MessageLimitPerPVExceeded,e="Internal events throttle limit per PageView reached for this app.",!1),o.queue.push(n),o.warnToConsole(e))))}})},Sn=null,bn=(Tn.ParentContextKey="parent",Tn.ChildrenContextKey="childEvts",Tn);function Tn(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===Tn.ParentContextKey||e===Tn.ChildrenContextKey?o:o.ctx||{})[e]:null},o.setCtx=function(e,n){e&&(e===Tn.ParentContextKey?(o[e]||(o.isChildEvt=function(){return!0}),o[e]=n):e===Tn.ChildrenContextKey?o[e]=n:(o.ctx=o.ctx||{})[e]=n)},o.complete=function(){var e=0,n=o.getCtx(Tn.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 In=function rr(n){this.ctx={},V(rr,this,function(t){t.create=function(e,n,t){return new bn(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]}})},Nn="CoreUtils.doPerf";function En(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(Nn);try{if(u=o.create(n(),r,i))return e&&u.setCtx&&(u.setCtx(bn.ParentContextKey,e),e.getCtx&&e.setCtx&&((a=e.getCtx(bn.ChildrenContextKey))||(a=[],e.setCtx(bn.ChildrenContextKey,a)),a.push(u))),o.setCtx(Nn,u),t(u)}catch(s){u&&u.setCtx&&u.setCtx("exception",s)}finally{u&&o.fire(u),o.setCtx(Nn,e)}}}return t()}var Pn=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";En(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,G.PluginException,"Plugin ["+i.identifier+"] failed during processTelemetry - "+pn(n)),a&&!e&&a.processTelemetry(t,r)}}else a&&(o._hasRun=!0,a.processTelemetry(t,r))},function(){return{item:t}},!t.sync)}};function Mn(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 Pn(o,n),t.push(o),r&&r.setNext(o),r=o)}return 0<t.length?t[0]:null}var Ln=function ir(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),Mn(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=Mn(a,r)):te(n)&&(c=Mn(e,s))),s.core=function(){return t},s.diagLog=function(){return xn(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 ir((e=void 0===e?null:e)||c,i,t,n)}},kn="extensionConfig",An="getPlugin",Fn=(_n.prototype.initialize=function(e,n,t,r){this._baseTelInit(e,n,t,r)},_n);function _n(){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 Ln(null,{},o.core),n=s&&s[An]?e.createNew(null,s[An]):e.createNew(null,s)),n},o._baseTelInit=function(e,n,t,r){e&&ke(e,kn,[],null,re),!r&&n&&(r=n.getProcessTelContext().getNext());var i=s;s&&s[An]&&(i=s[An]()),o.core=n,u=new Ln(r,e,n,i),a=!0}}var On="processTelemetry",Rn="priority",Dn="setNextPlugin",jn="isInitialized";function Un(n,t){for(var e=[],r=null,i=n.getNext();i;){var o=i.getPlugin();o&&(r&&ue(r[Dn])&&ue(o[On])&&r[Dn](o),ue(o[jn])&&o[jn]()||e.push(o),r=o,i=i.getNext())}xe(e,function(e){e.initialize(n.getCfg(),n.core(),t,n.getNext())})}function zn(e){return e.sort(function(e,n){var t=0,r=ue(n[On]);return ue(e[On])?t=r?e[Rn]-n[Rn]:1:r&&(t=-1),t})}var Bn,Kn=(y(qn,Bn=Fn),qn._staticInit=(Pe(Gt=qn.prototype,"ChannelControls",Gt.getChannelControls),void Pe(Gt,"channelQueue",Gt.getChannelControls)),qn);function qn(){var s,r=Bn.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,V(qn,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 Un(new Ln(e,n,t),r)}))}}),r}var Vn="toGMTString",Gn="toUTCString",Wn="cookie",Hn="expires",Jn="enabled",Xn="isCookieUseDisabled",Qn="disableCookiesUsage",$n="_ckMgr",Zn="",Yn=null,et=null,nt=null,tt=tn(),rt={},it={};function ot(e,n){var t=ut[$n]||it[$n];return t||(t=ut[$n]=ut(e,n),it[$n]=t),t}function at(e){return!e||e.isEnabled()}function ut(e,i){var n,t,c=(ke(t=(n=e||it).cookieCfg=n.cookieCfg||{},"domain",n.cookieDomain,ie,re),ke(t,"path",n.cookiePath||"/",null,re),re(t[Jn])&&(e=void 0,te(n[Xn])||(e=!n[Xn]),te(n[Qn])||(e=!n[Qn]),t[Jn]=e),t),l=c.path||"/",f=c.domain,r=!1!==c[Jn],g={isEnabled:function(){var e=r&&st(i),n=it[$n];return e&&n&&g!==n?at(n):e},setEnabled:function(e){r=!1!==e},set:function(e,n,t,r,i){var o,a,u,s=!1;return at(g)&&(o={},-1!=(u=(a=Te(n||Zn)).indexOf(";"))&&(a=Te(n.substring(0,u)),o=ct(n.substring(1+u))),ke(o,"domain",r||f,_e,te),re(t)||(u=vn(),!te(o[Hn])||0<(n=Me()+1e3*t)&&((r=new Date).setTime(n),ke(o,Hn,lt(r,u?Vn:Gn)||lt(r,u?Vn:Gn)||Zn,_e)),u||ke(o,"max-age",Zn+t,null,te)),(t=un())&&"https:"===t.protocol&&(ke(o,"secure",null,null,te),(et=null===et?!dt((on()||{}).userAgent):et)&&ke(o,"SameSite","None",null,te)),ke(o,"path",i||l,null,te),(c.setCookie||gt)(e,ft(a,o)),s=!0),s},get:function(e){var n=Zn;return at(g)?(c.getCookie||function(e){var n,t=Zn;return tt&&(n=tt[Wn]||Zn,nt!==n&&(rt=ct(n),nt=n),t=Te(rt[e]||Zn)),t})(e):n},del:function(e,n){return!!at(g)&&g.purge(e,n)},purge:function(e,n){var t,r=!1;return st(i)&&((t={}).path=n||"/",t[Hn]="Thu, 01 Jan 1970 00:00:01 GMT",vn()||(t["max-age"]="0"),(c.delCookie||gt)(e,ft(Zn,t)),r=!0),r}};return g[$n]=g}function st(e){if(null===Yn){Yn=!1;try{Yn=(tt||{})[Wn]!==undefined}catch(n){e&&e.throwInternal(c.LoggingSeverity.WARNING,G.CannotAccessCookie,"Cannot access document.cookie - "+Le(n),{exception:pn(n)})}}return Yn}function ct(e){var t={};return e&&e.length&&xe(Te(e).split(";"),function(e){var n;(e=Te(e||Zn))&&(-1==(n=e.indexOf("="))?t[e]=null:t[Te(e.substring(0,n))]=Te(e.substring(1+n)))}),t}function lt(e,n){return ue(e[n])?e[n]():null}function ft(e,n){var t=e||Zn;return le(n,function(e,n){t+="; "+e+(re(n)?Zn:"="+n)}),t}function gt(e,n){tt&&(tt[Wn]=e+"="+n)}function dt(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 vt="_notificationManager";function pt(e,n){return new In(n)}var ht,yt=function or(){var n,u,s,t,r,c=!1;V(or,this,function(a){a._extensions=[],u=new Kn,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[vt]=t,a.config=e||{},a.config.enablePerfMgr&&ke(a.config,"createPerfMgr",pt),e.extensions=re(e.extensions)?[]:e.extensions,Ae(e,kn).NotificationManager=t,r&&(a.logger=r),(t=[]).push.apply(t,m(m([],n),e.extensions));var t=zn(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=zn(t),a._extensions=t,Un(new Ln([u],e,a),t),Un(new Ln(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",Ce(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 Ln(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[vt]=s),s},a.getCookieMgr=function(){return r=r||ut(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||Sn},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=[])}})},mt=function ar(e){this.listeners=[];var n=!!(e||{}).perfEvtsSendAll;V(ar,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){}}))}})},Ct=(y(xt,ht=yt),xt);function xt(){var e=ht.call(this)||this,r=0;return V(xt,e,function(t,i){function n(e){var n=t.getNotifyMgr();n&&n.eventsDiscarded([e],o.InvalidEvent)}t.initialize=function(e,n,t,r){i.initialize(e,n,t||new wn(e),r||new mt(e))},t.track=function(e){En(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 e&&0<e||(e=1e4),r&&t.stopPollingInternalLogs(),r=setInterval(function(){var e=t.logger?t.logger.queue:[];xe(e,function(e){e={name:n||"InternalMessageId: "+e.messageId,iKey:t.config.instrumentationKey,time:Ce(new Date),baseType:mn.dataType,baseData:{message:e.message}},t.track(e)}),e.length=0},e)},t.stopPollingInternalLogs=function(){r&&(clearInterval(r),r=0)}}),e}var wt=4294967296,St=4294967295,bt=!1,Tt=123456789,It=987654321;function Nt(e){e<0&&(e>>>=0),Tt=123456789+e&St,It=987654321-e&St,bt=!0}function Et(){try{var e=2147483647&Me();Nt((Math.random()*wt^e)+e)}catch(n){}}function Pt(e){return 0<e?Math.floor(Mt()/St*(e+1))>>>0:0}function Mt(e){var n=(n=gn()||dn())&&n.getRandomValues?n.getRandomValues(new Uint32Array(1))[0]&St:vn()?(bt||Et(),kt()&St):Math.floor(wt*Math.random()|0);return e||(n>>>=0),n}function Lt(e){e?Nt(e):Et()}function kt(e){var n=((It=36969*(65535&It)+(It>>16)&St)<<16)+(65535&(Tt=18e3*(65535&Tt)+(Tt>>16)&St))>>>0&St|0;return e||(n>>>=0),n}var At,Ft="visibilitychange",_t="pagehide",Ot="pageshow",Rt=null,e=n;function Dt(e,n){var t=!1,r=en();return r&&(t=se(r,e,n),t=se(r.body,e,n)||t),(r=tn())&&se(r,e,n)||t}function jt(e,n,t){var r,i=!1;return n&&e&&ve(e)&&(r=[],xe(e,function(e){he(e)&&(t&&-1!==we(t,e)?r.push(e):i=Dt(e,n)||i)}),!i&&0<r.length&&(i=jt(r,n))),i}function Ut(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(Vt,function(e){var n=0|Pt(15);return("x"===e?n:3&n|8).toString(16)})}function zt(){var e=cn();return e&&e.now?e.now():Me()}function Bt(e){void 0===e&&(e=22);for(var n=Mt()>>>0,t=0,r="";r.length<e;)r+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"[0|63&n]||"",n>>>=6,5==++t&&(n=(Mt()<<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=Mt())]+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&Mt())|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 qt={_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:me,toISOString:Ce,arrForEach:xe,arrIndexOf:we,arrMap:Se,arrReduce:be,strTrim:Te,objCreate:p,objKeys:Ee,objDefineAccessors:Pe,addEventHandler:Dt,dateNow:Me,isIE:vn,disableCookies:Ht,newGuid:Ut,perfNow:zt,newId:Bt,randomValue:Pt,random32:Mt,mwcRandomSeed:Lt,mwcRandom32:kt,generateW3CId:Kt},Vt=/[xy]/g,Gt={Attach:se,AttachEvent:se,Detach:ce,DetachEvent:ce};function Wt(e,n){return e=ot(e,n),n=qt._canUseCookies,null===Rt&&(Rt=[],At=n,Pe(qt,"_canUseCookies",function(){return At},function(n){At=n,xe(Rt,function(e){e.setEnabled(n)})})),-1===we(Rt,e)&&Rt.push(e),me(n)&&e.setEnabled(n),me(At)&&e.setEnabled(At),e}function Ht(){Wt().setEnabled(!1)}var Jt="_aiHooks",Xt=["req","rsp","hkErr","fnErr"];function Qt(e,n){if(e)for(var t=0;t<e.length&&!n(e[t],t);t++);}function $t(e,a,u,s,c){0<=c&&c<=2&&Qt(e,function(e,n){var t=e.cbks;if(e=t[Xt[c]]){a.ctx=function(){return s[n]=s[n]||{}};try{e.apply(a.inst,u)}catch(i){e=a.err;try{var r=t[Xt[2]];r&&(a.err=i,r.apply(a.inst,u))}catch(o){}finally{a.err=e}}}})}function Zt(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 Qt(e,function(e){n.push(e)}),n}$t(e,r,i,n,0);var a=s.f;try{r.rslt=a.apply(this,t)}catch(u){throw r.err=u,$t(e,r,i,n,3),u}return $t(e,r,i,n,1),r.rslt}}var Yt=Object.getPrototypeOf;function er(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(Yt)return Yt(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[Jt];return i||((r=Zt(i={i:0,n:n,f:r,h:[]}))[Jt]=i,e[n]=r),t={id:i.i,cbks:t,rm:function(){var t=this.id;Qt(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 nr(n,e,t,r){void 0===r&&(r=!0);var i=null;return Qt(e,function(e){(e=er(n,e,t,r))&&(i=i||[]).push(e)}),i}c.AppInsightsCore=Ct,c.BaseCore=yt,c.BaseTelemetryPlugin=Fn,c.CoreUtils=qt,c.DiagnosticLogger=wn,c.EventHelper=Gt,c.EventsDiscardedReason=o,c.InstrumentFunc=er,c.InstrumentFuncs=nr,c.InstrumentProto=function(e,n,t){return e?er(e[s],n,t,!1):null},c.InstrumentProtos=function(e,n,t){return e?nr(e[s],n,t,!1):null},c.MinChannelPriorty=100,c.NotificationManager=mt,c.PerfEvent=bn,c.PerfManager=In,c.ProcessTelemetryContext=Ln,c.Undefined=e,c._InternalLogMessage=mn,c._InternalMessageId=G,c._legacyCookieMgr=Wt,c.addEventHandler=Dt,c.addEventListeners=jt,c.addPageHideEventListener=function ur(t,e){var n=!1;return e&&-1!==we(e,_t)||(n=Dt(_t,t)),!(n=(!e||-1===we(e,Ft))&&Dt(Ft,function(e){var n=tn();t&&n&&"hidden"===n.visibilityState&&t(e)})||n)&&e?ur(t):n},c.addPageShowEventListener=function sr(t,e){var n=!1;return e&&-1!==we(e,Ot)||(n=Dt(Ot,t)),!(n=(!e||-1===we(e,Ft))&&Dt(Ft,function(e){var n=tn();t&&n&&"visible"===n.visibilityState&&t(e)})||n)&&e?sr(t):n},c.addPageUnloadEventListener=function(e,n){return jt(["beforeunload","unload","pagehide"],e,n)},c.areCookiesSupported=st,c.arrForEach=xe,c.arrIndexOf=we,c.arrMap=Se,c.arrReduce=be,c.attachEvent=se,c.canUseCookies=function(e){return Wt(null,e).isEnabled()},c.createClassFromInterface=function(e){return function(){var t=this;e&&le(e,function(e,n){t[e]=n})}},c.createCookieMgr=ut,c.dateNow=Me,c.deleteCookie=function(e,n){return Wt(null,e).del(n)},c.detachEvent=ce,c.disableCookies=Ht,c.doPerf=En,c.dumpObj=pn,c.generateW3CId=Kt,c.getConsole=sn,c.getCookie=function(e,n){return Wt(null,e).get(n)},c.getCrypto=gn,c.getDocument=tn,c.getExceptionName=Le,c.getGblPerfMgr=function(){return Sn},c.getGlobal=d,c.getGlobalInst=Ze,c.getHistory=function(){return an()?history:Ze("history")},c.getIEVersion=function(e){var n;return ge(e=((e=(e=void 0===e?null:e)?e:(n=on()||{})?(n.userAgent||"").toLowerCase():"")||"").toLowerCase(),Ve)?parseInt(e.split(Ve)[1]):ge(e,Ge)&&(e=parseInt(e.split(Ge)[1]))?e+4:null},c.getJSON=fn,c.getLocation=un,c.getMsCrypto=dn,c.getNavigator=on,c.getPerformance=cn,c.getSetValue=Ae,c.getWindow=en,c.hasDocument=nn,c.hasHistory=an,c.hasJSON=ln,c.hasNavigator=rn,c.hasOwnProperty=oe,c.hasWindow=Ye,c.initializePlugins=Un,c.isArray=ve,c.isBeaconsSupported=function(){return Qe=null===Qe?rn()&&!!on().sendBeacon:Qe},c.isBoolean=me,c.isDate=de,c.isError=pe,c.isFetchSupported=function(e){var n=!1;try{var n=!!Ze("fetch"),t=Ze("Request");n&&e&&t&&(n=$e(t,"keepalive"))}catch(r){}return n},c.isFunction=ue,c.isIE=vn,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=on();return!(!e||!e.product)&&"ReactNative"===e.product},c.isSafari=function(e){var n;return!!~((e=e&&he(e)?e:(n=on()||{})?(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.isXhrSupported=hn,c.mwcRandom32=kt,c.mwcRandomSeed=Lt,c.newGuid=Ut,c.newId=Bt,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=zt,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=Mt,c.randomValue=Pt,c.safeGetCookieMgr=function(e,n){var t;return e?t=e.getCookieMgr():n&&(t=n.cookieCfg[$n]||ut(n)),t||ot(n,(e||{}).logger)},c.safeGetLogger=xn,c.setCookie=function(e,n,t,r){Wt(null,e).set(n,t,null,r)},c.setEnableEnvMocks=function(e){Je=e},c.setGblPerfMgr=function(e){Sn=e},c.setValue=ke,c.sortPlugins=zn,c.strContains=ge,c.strEndsWith=fe,c.strExtensionConfig=kn,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=Te,c.strUndefined=n,c.throwError=Oe,c.toISOString=Ce,c.uaDisallowsSameSiteNone=dt,c.useXDomainRequest=function(){return Xe=null===Xe&&(Xe=typeof XDomainRequest!==undefined)&&hn()?Xe&&!$e(Ze("XMLHttpRequest"),"withCredentials"):Xe},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.7.1-nightly.202110-05",
"version": "2.7.1-nightly.202110-06",
"description": "Microsoft Application Insights Core Javascript SDK",

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

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

cookieCfg?: ICookieMgrConfig;
/**
* [Optional] An array of the page unload events that you would like to be ignored, special note there must be at least one valid unload
* event hooked, if you list all or the runtime environment only supports a listed "disabled" event it will still be hooked, if required by the SDK.
* Unload events include "beforeunload", "unload", "visibilitychange" (with 'hidden' state) and "pagehide"
*/
disablePageUnloadEvents?: string[];
/**
* [Optional] An array of page show events that you would like to be ignored, special note there must be at lease one valid show event
* hooked, if you list all or the runtime environment only supports a listed (disabled) event it will STILL be hooked, if required by the SDK.
* Page Show events include "pageshow" and "visibilitychange" (with 'visible' state)
*/
disablePageShowEvents?: string[];
}

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

const strVisibilityChangeEvt: string = "visibilitychange";
const strPageHide: string = "pagehide";
const strPageShow: string = "pageshow";
let _cookieMgrs: ICookieMgr[] = null;

@@ -46,2 +50,114 @@ let _canUseCookies: boolean; // legacy supported config

/**
* Bind the listener to the array of events
* @param events An string array of event names to bind the listener to
* @param listener The event callback to call when the event is triggered
* @param excludeEvents - [Optional] An array of events that should not be hooked (if possible), unless no other events can be.
* @returns true - when at least one of the events was registered otherwise false
*/
export function addEventListeners(events: string[], listener: any, excludeEvents?: string[]): boolean {
let added = false;
if (listener && events && isArray(events)) {
let excluded: string[] = [];
arrForEach(events, (name) => {
if (isString(name)) {
if (!excludeEvents || arrIndexOf(excludeEvents, name) === -1) {
added = addEventHandler(name, listener) || added;
} else {
excluded.push(name);
}
}
});
if (!added && excluded.length > 0) {
// Failed to add any listeners and we excluded some, so just attempt to add the excluded events
added = addEventListeners(excluded, listener);
}
}
return added;
}
/**
* Listen to the 'beforeunload', 'unload' and 'pagehide' events which indicates a page unload is occurring,
* this does NOT listen to the 'visibilitychange' event as while it does indicate that the page is being hidden
* it does not *necessarily* mean that the page is being completely unloaded, it can mean that the user is
* just navigating to a different Tab and may come back (without unloading the page). As such you may also
* need to listen to the 'addPageHideEventListener' and 'addPageShowEventListener' events.
* @param listener - The event callback to call when a page unload event is triggered
* @param excludeEvents - [Optional] An array of events that should not be hooked, unless no other events can be.
* @returns true - when at least one of the events was registered otherwise false
*/
export function addPageUnloadEventListener(listener: any, excludeEvents?: string[]): boolean {
// Hook the unload event for the document, window and body to ensure that the client events are flushed to the server
// As just hooking the window does not always fire (on chrome) for page navigation's.
return addEventListeners(["beforeunload", "unload", "pagehide"], listener, excludeEvents);
}
/**
* Listen to the pagehide and visibility changing to 'hidden' events
* @param listener - The event callback to call when a page hide event is triggered
* @param excludeEvents - [Optional] An array of events that should not be hooked (if possible), unless no other events can be.
* Suggestion: pass as true if you are also calling addPageUnloadEventListener as that also hooks pagehide
* @returns true - when at least one of the events was registered otherwise false
*/
export function addPageHideEventListener(listener: any, excludeEvents?: string[]): boolean {
function _handlePageVisibility(evt: any) {
let doc = getDocument();
if (listener && doc && doc.visibilityState === 'hidden') {
listener(evt);
}
}
let pageUnloadAdded = false;
if (!excludeEvents || arrIndexOf(excludeEvents, strPageHide) === -1) {
pageUnloadAdded = addEventHandler(strPageHide, listener);
}
if (!excludeEvents || arrIndexOf(excludeEvents, strVisibilityChangeEvt) === -1) {
pageUnloadAdded = addEventHandler(strVisibilityChangeEvt, _handlePageVisibility) || pageUnloadAdded;
}
if (!pageUnloadAdded && excludeEvents) {
// Failed to add any listeners and we where requested to exclude some, so just call again without excluding anything
pageUnloadAdded = addPageHideEventListener(listener);
}
return pageUnloadAdded;
}
/**
* Listen to the pageshow and visibility changing to 'visible' events
* @param listener - The event callback to call when a page is show event is triggered
* @param excludeEvents - [Optional] An array of events that should not be hooked (if possible), unless no other events can be.
* @returns true - when at least one of the events was registered otherwise false
*/
export function addPageShowEventListener(listener: any, excludeEvents?: string[]): boolean {
function _handlePageVisibility(evt: any) {
let doc = getDocument();
if (listener && doc && doc.visibilityState === 'visible') {
listener(evt);
}
}
let pageShowAdded = false;
if (!excludeEvents || arrIndexOf(excludeEvents, strPageShow) === -1) {
pageShowAdded = addEventHandler(strPageShow, listener);
}
if (!excludeEvents || arrIndexOf(excludeEvents, strVisibilityChangeEvt) === -1) {
pageShowAdded = addEventHandler(strVisibilityChangeEvt, _handlePageVisibility) || pageShowAdded;
}
if (!pageShowAdded && excludeEvents) {
// Failed to add any listeners and we where requested to exclude some, so just call again without excluding anything
pageShowAdded = addPageShowEventListener(listener);
}
return pageShowAdded;
}
export function newGuid(): string {

@@ -48,0 +164,0 @@ function randomHexDigit() {

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

export { randomValue, random32, mwcRandomSeed, mwcRandom32 } from './JavaScriptSDK/RandomHelper';
export { CoreUtils, ICoreUtils, EventHelper, IEventHelper, Undefined, addEventHandler, newGuid, perfNow, newId, generateW3CId, disableCookies, canUseCookies, getCookie, setCookie, deleteCookie, _legacyCookieMgr } from "./JavaScriptSDK/CoreUtils";
export { CoreUtils, ICoreUtils, EventHelper, IEventHelper, Undefined, addEventHandler, newGuid, perfNow, newId, generateW3CId, disableCookies, canUseCookies, getCookie, setCookie, deleteCookie, _legacyCookieMgr, addEventListeners, addPageUnloadEventListener, addPageHideEventListener, addPageShowEventListener } from "./JavaScriptSDK/CoreUtils";
export { isTypeof, isUndefined, isNullOrUndefined, hasOwnProperty, isObject, isFunction, attachEvent, detachEvent, normalizeJsName, objForEachKey, strEndsWith, strStartsWith, isDate, isArray, isError, isString, isNumber, isBoolean, toISOString, arrForEach, arrIndexOf, arrMap, arrReduce, strTrim, objKeys, objDefineAccessors, dateNow, getExceptionName, throwError, strContains, isSymbol, setValue, getSetValue, isNotTruthy, isTruthy, proxyAssign, createClassFromInterface, optimizeObject, isNotUndefined, isNotNullOrUndefined, objFreeze, objSeal } from './JavaScriptSDK/HelperFuncs';

@@ -20,0 +20,0 @@ export { getGlobalInst, hasWindow, getWindow, hasDocument, getDocument, getCrypto, getMsCrypto, hasNavigator, getNavigator, hasHistory, getHistory, getLocation, getPerformance, hasJSON, getJSON, isReactNative, getConsole, dumpObj, isIE, getIEVersion, isSafari, setEnableEnvMocks, isBeaconsSupported, isFetchSupported, useXDomainRequest, isXhrSupported } from "./JavaScriptSDK/EnvUtils";

@@ -131,2 +131,14 @@ import { ITelemetryPlugin } from "./ITelemetryPlugin";

cookieCfg?: ICookieMgrConfig;
/**
* [Optional] An array of the page unload events that you would like to be ignored, special note there must be at least one valid unload
* event hooked, if you list all or the runtime environment only supports a listed "disabled" event it will still be hooked, if required by the SDK.
* Unload events include "beforeunload", "unload", "visibilitychange" (with 'hidden' state) and "pagehide"
*/
disablePageUnloadEvents?: string[];
/**
* [Optional] An array of page show events that you would like to be ignored, special note there must be at lease one valid show event
* hooked, if you list all or the runtime environment only supports a listed (disabled) event it will STILL be hooked, if required by the SDK.
* Page Show events include "pageshow" and "visibilitychange" (with 'visible' state)
*/
disablePageShowEvents?: string[];
}

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

export declare function addEventHandler(eventName: string, callback: any): boolean;
/**
* Bind the listener to the array of events
* @param events An string array of event names to bind the listener to
* @param listener The event callback to call when the event is triggered
* @param excludeEvents - [Optional] An array of events that should not be hooked (if possible), unless no other events can be.
* @returns true - when at least one of the events was registered otherwise false
*/
export declare function addEventListeners(events: string[], listener: any, excludeEvents?: string[]): boolean;
/**
* Listen to the 'beforeunload', 'unload' and 'pagehide' events which indicates a page unload is occurring,
* this does NOT listen to the 'visibilitychange' event as while it does indicate that the page is being hidden
* it does not *necessarily* mean that the page is being completely unloaded, it can mean that the user is
* just navigating to a different Tab and may come back (without unloading the page). As such you may also
* need to listen to the 'addPageHideEventListener' and 'addPageShowEventListener' events.
* @param listener - The event callback to call when a page unload event is triggered
* @param excludeEvents - [Optional] An array of events that should not be hooked, unless no other events can be.
* @returns true - when at least one of the events was registered otherwise false
*/
export declare function addPageUnloadEventListener(listener: any, excludeEvents?: string[]): boolean;
/**
* Listen to the pagehide and visibility changing to 'hidden' events
* @param listener - The event callback to call when a page hide event is triggered
* @param excludeEvents - [Optional] An array of events that should not be hooked (if possible), unless no other events can be.
* Suggestion: pass as true if you are also calling addPageUnloadEventListener as that also hooks pagehide
* @returns true - when at least one of the events was registered otherwise false
*/
export declare function addPageHideEventListener(listener: any, excludeEvents?: string[]): boolean;
/**
* Listen to the pageshow and visibility changing to 'visible' events
* @param listener - The event callback to call when a page is show event is triggered
* @param excludeEvents - [Optional] An array of events that should not be hooked (if possible), unless no other events can be.
* @returns true - when at least one of the events was registered otherwise false
*/
export declare function addPageShowEventListener(listener: any, excludeEvents?: string[]): boolean;
export declare function newGuid(): string;

@@ -14,0 +48,0 @@ /**

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 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