@microsoft/applicationinsights-properties-js 2.8.0-beta.2203-01 → 2.8.0-beta.2203-02

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  /*!
2
- * Application Insights JavaScript SDK - Properties Plugin, 2.8.0-beta.2203-01
2
+ * Application Insights JavaScript SDK - Properties Plugin, 2.8.0-beta.2203-02
3
3
  * Copyright (c) Microsoft and contributors. All rights reserved.
4
4
  */
5
- var e=this,n=function(e){"use strict";var F="function",a="object",r="undefined",o="prototype",_="hasOwnProperty",t=Object,O=t[o],B=t.create,n=t.defineProperty,V=O[_],j=null;function W(e){return void 0===e&&(e=!0),j&&e||(typeof globalThis!==r&&globalThis&&(j=globalThis),typeof self!==r&&self&&(j=self),typeof window!==r&&window&&(j=window),typeof global!==r&&global&&(j=global)),j}function q(e){throw new TypeError(e)}(W()||{}).Symbol,(W()||{}).Reflect;var G=function(e,n){return(G=t.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var t in n)n[_](t)&&(e[t]=n[t])})(e,n)};function K(e,n){function t(){this.constructor=e}typeof n!==F&&null!==n&&q("Class extends value "+n+" is not a constructor or null"),G(e,n),e[o]=null===n?function(e){if(B)return B(e);if(null==e)return{};var n=typeof e;function t(){}return n!==a&&n!==F&&q("Object prototype may only be an Object:"+e),t[o]=e,new t}(n):(t[o]=n[o],new t)}var z="constructor",p="prototype",H="function",J="_dynInstFuncs",Z="_isDynProxy",X="_dynClass",Y="_dynInstChk",$=Y,Q="_dfOpts",ee="_unknown_",ne="__proto__",te="useBaseInst",oe="setInstFuncs",re=Object,ie=re.getPrototypeOf,ae=0;function v(e,n){return e&&re[p].hasOwnProperty.call(e,n)}function se(e){return e&&(e===re[p]||e===Array[p])}function ue(e){return se(e)||e===Function[p]}function h(e){if(e){if(ie)return ie(e);e=e[ne]||e[p]||(e[z]?e[z][p]:null);if(e)return e}return null}function ce(e,n){var t=[],o=re.getOwnPropertyNames;if(o)t=o(e);else for(var r in e)"string"==typeof r&&v(e,r)&&t.push(r);if(t&&0<t.length)for(var i=0;i<t.length;i++)n(t[i])}function le(e,n,t){return n!==z&&typeof e[n]===H&&(t||v(e,n))}function fe(e){throw new TypeError("DynamicProto: "+e)}function de(e,n){for(var t=e.length-1;0<=t;t--)if(e[t]===n)return 1}function ge(e,n){return v(e,p)?e.name||n||ee:((e||{})[z]||{}).name||n||ee}function m(e,o,n,t){v(e,p)||fe("theClass is an invalid class definition.");var r,i,a,s,u,c,l=e[p],f=(function(e){if(ie)for(var n=[],t=h(o);t&&!ue(t)&&!de(n,t);){if(t===e)return 1;n.push(t),t=h(t)}}(l)||fe("["+ge(e)+"] is not in class hierarchy of ["+ge(o)+"]"),null),e=(v(l,X)?f=l[X]:(f="_dynCls$"+ge(e,"_")+"$"+ae,ae++,l[X]=f),m[Q]),d=!!e[te],g=(d&&t&&t[te]!==undefined&&(d=!!t[te]),i={},ce(r=o,function(e){!i[e]&&le(r,e,!1)&&(i[e]=r[e])}),i),d=(n(o,function(e,n,t,i){function o(e,n,t){var o,r=n[t];return r[Z]&&i&&!1!==(o=e[J]||{})[$]&&(r=(o[n[X]]||{})[t]||r),function(){return r.apply(e,arguments)}}for(var r={},a=(ce(t,function(e){r[e]=o(n,t,e)}),h(e)),s=[];a&&!ue(a)&&!de(s,a);)ce(a,function(e){!r[e]&&le(a,e,!ie)&&(r[e]=o(n,a,e))}),s.push(a),a=h(a);return r}(l,o,g,d)),!!ie&&!!e[oe]);a=l,n=f,s=o,u=g,e=!1!==(d=d&&t?!!t[oe]:d),se(a)||(l=s[J]=s[J]||{},c=l[n]=l[n]||{},!1!==l[$]&&(l[$]=!!e),ce(s,function(e){var t,o,r;le(s,e,!1)&&s[e]!==u[e]&&(c[e]=s[e],delete s[e],v(a,e)&&(!a[e]||a[e][Z])||(a[e]=(t=a,o=e,(r=function(){var e,n;return(function(e,n,t,o){var r=null;if(e&&v(t,X)){var i=e[J]||{};if((r=(i[t[X]]||{})[n])||fe("Missing ["+n+"] "+H),!r[Y]&&!1!==i[$]){for(var a=!v(e,n),s=h(e),u=[];a&&s&&!ue(s)&&!de(u,s);){var c=s[n];if(c){a=c===o;break}u.push(s),s=h(s)}try{a&&(e[n]=r),r[Y]=1}catch(l){i[$]=!1}}}return r}(this,o,t,r)||(typeof(n=(n=t[e=o])===r?h(t)[e]:n)!==H&&fe("["+e+"] is not a "+H),n)).apply(this,arguments)})[Z]=1,r)))}))}m[Q]={setInstFuncs:!0,useBaseInst:!0},(i=C=C||{})[i.CRITICAL=1]="CRITICAL",i[i.WARNING=2]="WARNING";var C,I={BrowserDoesNotSupportLocalStorage:0,BrowserCannotReadLocalStorage:1,BrowserCannotReadSessionStorage:2,BrowserCannotWriteLocalStorage:3,BrowserCannotWriteSessionStorage:4,BrowserFailedRemovalFromLocalStorage:5,BrowserFailedRemovalFromSessionStorage:6,CannotSendEmptyTelemetry:7,ClientPerformanceMathError:8,ErrorParsingAISessionCookie:9,ErrorPVCalc:10,ExceptionWhileLoggingError:11,FailedAddingTelemetryToBuffer:12,FailedMonitorAjaxAbort:13,FailedMonitorAjaxDur:14,FailedMonitorAjaxOpen:15,FailedMonitorAjaxRSC:16,FailedMonitorAjaxSend:17,FailedMonitorAjaxGetCorrelationHeader:18,FailedToAddHandlerForOnBeforeUnload:19,FailedToSendQueuedTelemetry:20,FailedToReportDataLoss:21,FlushFailed:22,MessageLimitPerPVExceeded:23,MissingRequiredFieldSpecification:24,NavigationTimingNotSupported:25,OnError:26,SessionRenewalDateIsZero:27,SenderNotInitialized:28,StartTrackEventFailed:29,StopTrackEventFailed:30,StartTrackFailed:31,StopTrackFailed:32,TelemetrySampledAndNotSent:33,TrackEventFailed:34,TrackExceptionFailed:35,TrackMetricFailed:36,TrackPVFailed:37,TrackPVFailedCalc:38,TrackTraceFailed:39,TransmissionFailed:40,FailedToSetStorageBuffer:41,FailedToRestoreStorageBuffer:42,InvalidBackendResponse:43,FailedToFixDepricatedValues:44,InvalidDurationValue:45,TelemetryEnvelopeInvalid:46,CreateEnvelopeError:47,CannotSerializeObject:48,CannotSerializeObjectNonSerializable:49,CircularReferenceDetected:50,ClearAuthContextFailed:51,ExceptionTruncated:52,IllegalCharsInName:53,ItemNotInArray:54,MaxAjaxPerPVExceeded:55,MessageTruncated:56,NameTooLong:57,SampleRateOutOfRange:58,SetAuthContextFailed:59,SetAuthContextFailedAccountName:60,StringValueTooLong:61,StartCalledMoreThanOnce:62,StopCalledWithoutStart:63,TelemetryInitializerFailed:64,TrackArgumentsNotSpecified:65,UrlTooLong:66,SessionStorageBufferFull:67,CannotAccessCookie:68,IdTooLong:69,InvalidEvent:70,FailedMonitorAjaxSetRequestHeader:71,SendBrowserInfoOnUserInit:72,PluginException:73,NotificationException:74,SnippetScriptLoadFailure:99,InvalidInstrumentationKey:100,CannotParseAiBlobValue:101,InvalidContentBlob:102,TrackPageActionEventFailed:103,FailedAddingCustomDefinedRequestContext:104,InMemoryStorageBufferFull:105},pe="toISOString",ve="endsWith",he="trim",i="toString",me="constructor",Ce=n,n=t.freeze,Ie=t.keys,s=String[o],ye=s[he],xe=s[ve],Se=Date[o][pe],s=Array.isArray,we=O[i],Ne=V[i],Te=Ne.call(t),Ae=Object.getPrototypeOf;function g(e){return e===undefined||typeof e===r}function y(e){return null===e||g(e)}function ke(e){return!y(e)}function be(e){return!(!e||typeof e!==a)}function x(e){return!(!e||typeof e!==F)}function Me(e,n){if(e)for(var t in e)V.call(e,t)&&n.call(e,t,e[t])}function S(e,n){return!(!e||!n||!~e.indexOf(n))}var w=s||function(e){return!(!e||"[object Array]"!==we.call(e))};function N(e){return"string"==typeof e}function Pe(e){return e&&"object"==typeof e&&(!(e=(Ae||function(e){if(e){if(Ae)return Ae(e);e=e.__proto__||e[o]||e[me];if(e)return e}return null})(e))||typeof(e=e[me]&&V.call(e,me)?e[me]:e)===F&&Ne.call(e)===Te)}function Le(e,n,t){var o=e.length;try{for(var r=0;r<o&&!(r in e&&-1===n.call(t||e,e[r],r,e));r++);}catch(i){}}function T(e){return e&&(ye&&e[he]?e[he]():e.replace?e.replace(/^\s+|\s+$/g,""):e)}var Re=!{toString:null}.propertyIsEnumerable("toString"),De=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],Ue=n||function(e){return e};function Ee(){var e=Date;return e.now?e.now():(new e).getTime()}function Fe(e){return e&&"[object Error]"===we.call(e)?e.name:""}function A(e,n,t,o,r){var i=t;!e||(i=e[n])===t||r&&!r(i)||o&&!o(t)||(e[n]=i=t)}function f(e,n,t){var o;return e?!(o=e[n])&&y(o)&&(o=g(t)?{}:t,e[n]=o):o=g(t)?{}:t,o}function _e(e){return!!e}var Oe="window",Be="navigator",Ve="location",je="JSON",We="msie",qe="trident/",Ge=null,Ke=null,ze=!1;function c(e){var n=W();return n&&n[e]?n[e]:e===Oe&&He()?window:null}function He(){return typeof window===a&&window}function Je(){return typeof navigator===a&&navigator?navigator:c(Be)}function Ze(e){if(e&&ze){e=c("__mockLocation");if(e)return e}return typeof location===a&&location?location:c(Ve)}function Xe(){return typeof JSON===a&&JSON||null!==c(je)}function Ye(){return Xe()?JSON||c(je):null}function $e(){var e=Je();return!e||e.userAgent===Ke&&null!==Ge||(e=((Ke=e.userAgent)||"").toLowerCase(),Ge=S(e,We)||S(e,qe)),Ge}function k(e){var n=Object[o].toString.call(e),t="";return"[object Error]"===n?t="{ stack: '"+e.stack+"', message: '"+e.message+"', name: '"+e.name+"'":Xe()&&(t=Ye().stringify(e)),n+t}var Qe=null;function en(e){return e?'"'+e.replace(/\"/g,"")+'"':""}function nn(e,n){var t,o=typeof console!==r?console:c("console");o&&(t="log",x(o[t=o[e]?e:t])&&o[t](n))}on.dataType="MessageData";var tn=on;function on(e,n,t,o){void 0===t&&(t=!1),this.messageId=e,this.message=(t?"AI: ":"AI (Internal): ")+e;t="",Xe()&&(t=Ye().stringify(o)),e=(n?" message:"+en(n):"")+(o?" props:"+en(t):"");this.message+=e}function rn(e,n){return(e||{}).logger||new an(n)}var an=function Ut(r){this.identifier="DiagnosticLogger",this.queue=[];var s=0,u={};m(Ut,this,function(i){function e(e,n){e=r[e];return y(e)?n:e}function a(e,n){var t,o=(t=(t=Qe)||!0===r.disableDbgExt?t:Qe||(o=c("Microsoft"),Qe=o?o.ApplicationInsights:Qe))?t.ChromeDbgExt:null;o&&o.diagLog&&o.diagLog(e,n)}y(r)&&(r={}),i.consoleLoggingLevel=function(){return e("loggingLevelConsole",0)},i.telemetryLoggingLevel=function(){return e("loggingLevelTelemetry",1)},i.maxInternalMessageLimit=function(){return e("maxMessageLimit",25)},i.enableDebugExceptions=function(){return e("enableDebugExceptions",!1)},i.throwInternal=function(e,n,t,o,r){n=new tn(n,t,r=void 0!==r&&r,o);if(i.enableDebugExceptions())throw n;t=e===C.CRITICAL?"errorToConsole":"warnToConsole";g(n.message)?a("throw"+(e===C.CRITICAL?"Critical":"Warning"),n):(o=i.consoleLoggingLevel(),r?(r=+n.messageId,!u[r]&&e<=o&&(i[t](n.message),u[r]=!0)):e<=o&&i[t](n.message),i.logInternalMessage(e,n))},i.warnToConsole=function(e){nn("warn",e),a("warning",e)},i.errorToConsole=function(e){nn("error",e),a("error",e)},i.resetInternalMessageCount=function(){s=0,u={}},i.logInternalMessage=function(e,n){var t,o;s>=i.maxInternalMessageLimit()||(o=!0,t="AITR_"+n.messageId,u[t]?o=!1:u[t]=!0,o&&(e<=i.telemetryLoggingLevel()&&(i.queue.push(n),s++,a(e===C.CRITICAL?"error":"warn",n)),s===i.maxInternalMessageLimit()&&(o=new tn(I.MessageLimitPerPVExceeded,t="Internal events throttle limit per PageView reached for this app.",!1),i.queue.push(o),e===C.CRITICAL?i.errorToConsole(t):i.warnToConsole(t))))}})},sn=(u.ParentContextKey="parent",u.ChildrenContextKey="childEvts",u);function u(e,r,n){var o,i=this,a=!1;i.start=Ee(),i.name=e,i.isAsync=n,i.isChildEvt=function(){return!1},x(r)&&(a=function(e){if(Ce)try{var n={enumerable:!0,configurable:!0,get:function(){return!o&&x(r)&&(o=r(),r=null),o}};return Ce(e,"payload",n),!0}catch(t){}return!1}(i)),i.getCtx=function(e){return e?(e===u.ParentContextKey||e===u.ChildrenContextKey?i:i.ctx||{})[e]:null},i.setCtx=function(e,n){e&&(e===u.ParentContextKey?(i[e]||(i.isChildEvt=function(){return!0}),i[e]=n):e===u.ChildrenContextKey?i[e]=n:(i.ctx=i.ctx||{})[e]=n)},i.complete=function(){var e=0,n=i.getCtx(u.ChildrenContextKey);if(w(n))for(var t=0;t<n.length;t++){var o=n[t];o&&(e+=o.time)}i.time=Ee()-i.start,i.exTime=i.time-e,i.complete=function(){},!a&&x(r)&&(i.payload=r())}}var un="CoreUtils.doPerf";function cn(e,n,t,o,r){if(e)if(e=x(e.getPerfMgr)?e.getPerfMgr():e){var i,a=void 0,s=e.getCtx(un);try{if(a=e.create(n(),o,r))return s&&a.setCtx&&(a.setCtx(sn.ParentContextKey,s),s.getCtx&&s.setCtx&&((i=s.getCtx(sn.ChildrenContextKey))||(i=[],s.setCtx(sn.ChildrenContextKey,i)),i.push(a))),e.setCtx(un,a),t(a)}catch(u){a&&a.setCtx&&a.setCtx("exception",u)}finally{a&&e.fire(a),e.setCtx(un,s)}}t()}var ln="TelemetryPluginChain",fn="_hasRun",dn="_getTelCtx",gn=0;function pn(e,a,t,n){var o=null,r=null,o=n?function(e,n,t,o){for(;e;){if(e.getPlugin()===o)return e;e=e.getNext()}return vn([o],n,t)}(e,a,t,n):e,i={core:function(){return t},diagLog:function(){return rn(t,a)},getCfg:function(){return a},getExtCfg:s,getConfig:function(e,n,t){void 0===t&&(t=!1);var o,e=s(e,null);return e&&!y(e[n])?o=e[n]:a&&!y(a[n])&&(o=a[n]),y(o)?t:o},hasNext:function(){return null!=o},getNext:function(){return o},setNext:function(e){o=e},processNext:function(n){u(function(e){e.processTelemetry(n,i)})},iterate:function(n){for(;o;)u(function(e){e=e.getPlugin();e&&n(e)})},createNew:function(e,n){return pn((e=w(e=void 0===e?null:e)?vn(e,a,t,n):e)||o,a,t,n)},onComplete:function(e){r=e}};function s(e,n,t){var o,r,i;return void 0===n&&(n={}),void 0===t&&(t=0),(o=a&&(r=a.extensionConfig)&&e?r[e]:o)?be(n)&&0!==t&&(i=function d(){var e=arguments,n=e[0]||{},t=e.length,o=!1,r=1;for(0<t&&"boolean"==typeof n&&(o=n,n=e[r]||{},r++),be(n)||(n={});r<t;r++){var i,a,s,u,c=e[r],l=w(c),f=be(c);for(i in c)(l&&i in c||f&&V.call(c,i))&&(a=c[i],s=void 0,o&&a&&((s=w(a))||Pe(a))&&(u=n[i],s?w(u)||(u=[]):Pe(u)||(u={}),a=d(o,u,a)),a!==undefined&&(n[i]=a))}return n}(!0,n,o),a&&2===t&&Me(n,function(e){var n;y(i[e])&&!y(n=a[e])&&(i[e]=n)})):o=n,o}function u(e){var n=o;n?(o=n.getNext(),e(n)):r&&(r(),r=null)}return i}function vn(e,n,t,o){var r,i=null,a=!o;return w(e)&&0<e.length&&(r=null,Le(e,function(e){(a=!a&&o===e||a)&&e&&x(e.processTelemetry)&&(e=hn(e,n,t),i=i||e,r&&r._setNext(e),r=e)})),o&&!i?vn([o],n,t):i}function hn(u,c,l){var f=null,t=x(u.processTelemetry),o=x(u.setNextPlugin),d=u?u.identifier+"-"+u.priority+"-"+gn++:"Unknown-0-"+gn++,g={getPlugin:function(){return u},getNext:function(){return f},processTelemetry:function(n,e){r(e,function(e){return!!t&&(o&&u.setNextPlugin(f),u.processTelemetry(n,e),!0)},function(e){f.processTelemetry(n,e)},"processTelemetry",function(){return{item:n}},!n.sync)},_id:d,_setNext:function(e){f=e}};function r(o,r,i,a,e,n){o=(o=o||(u&&x(u[dn])?u[dn]():o))||pn(g,c,l);var t=u?u.identifier:ln,s=(s=o[fn])||(o[fn]={});cn(o.core(),function(){return t+":"+a},function(){var e=!(s[d]=!0);if(o.setNext(f),u)try{var n=f?f._id:"";n&&(s[n]=!1),e=r(o)}catch(t){n=!f||s[f._id];n&&(e=!0),f&&n||o.diagLog().throwInternal(C.CRITICAL,I.PluginException,"Plugin ["+u.identifier+"] failed during "+a+" - "+k(t)+", run flags: "+k(s))}f&&!e&&i(o)},e,n)}return Ue(g)}var mn="toGMTString",Cn="toUTCString",In="cookie",yn="expires",xn="enabled",Sn="isCookieUseDisabled",wn="disableCookiesUsage",b="_ckMgr",M="",Nn=null,Tn=null,An=null,kn=typeof document===a&&document?document:c("document"),bn={},Mn={};function Pn(e){return!e||e.isEnabled()}function Ln(e,n){var t,o;return e?t=e.getCookieMgr():n&&(t=n.cookieCfg[b]||Rn(n)),t||(e=(e||{}).logger,(o=Rn[b]||Mn[b])||(o=Rn[b]=Rn(n,e),Mn[b]=o),t=o),t}function Rn(e,r){A(t=(e=e||Mn).cookieCfg=e.cookieCfg||{},"domain",e.cookieDomain,ke,y),A(t,"path",e.cookiePath||"/",null,y),y(t[xn])&&(n=void 0,g(e[Sn])||(n=!e[Sn]),g(e[wn])||(n=!e[wn]),t[xn]=n);var n,t,c=t,l=c.path||"/",f=c.domain,o=!1!==c[xn],d={isEnabled:function(){var e=o&&Dn(r),n=Mn[b];return e&&n&&d!==n?Pn(n):e},setEnabled:function(e){o=!1!==e},set:function(e,n,t,o,r){var i,a,s,u=!1;return Pn(d)&&(i={},-1!=(s=(a=T(n||M)).indexOf(";"))&&(a=T(n.substring(0,s)),i=Un(n.substring(1+s))),A(i,"domain",o||f,_e,g),y(t)||(s=$e(),g(i[yn])&&0<(n=Ee()+1e3*t)&&((o=new Date).setTime(n),A(i,yn,En(o,s?mn:Cn)||En(o,s?mn:Cn)||M,_e)),s||A(i,"max-age",M+t,null,g)),(n=Ze())&&"https:"===n.protocol&&(A(i,"secure",null,null,g),(Tn=null===Tn?!(N(o=(Je()||{}).userAgent)&&(S(o,"CPU iPhone OS 12")||S(o,"iPad; CPU OS 12")||S(o,"Macintosh; Intel Mac OS X 10_14")&&S(o,"Version/")&&S(o,"Safari")||S(o,"Macintosh; Intel Mac OS X 10_14")&&function(e,n){var t=!1;if(!e||(t=e===n))return t;if(xe)return e[ve](n);var o=e,r=n,t=!1,e=o?o.length:0;if(e&&40<=e&&!(t=o===r)){for(var i=e-1,a=39;0<=a;a--){if(o[i]!=r[a])return;i--}t=!0}return t}(o,"AppleWebKit/605.1.15 (KHTML, like Gecko)")||S(o,"Chrome/5")||S(o,"Chrome/6")||S(o,"UnrealEngine")&&!S(o,"Chrome")||S(o,"UCBrowser/12")||S(o,"UCBrowser/11"))):Tn)&&A(i,"SameSite","None",null,g)),A(i,"path",r||l,null,g),(c.setCookie||_n)(e,Fn(a,i)),u=!0),u},get:function(e){var n=M;return Pn(d)?(c.getCookie||function(e){var n,t=M;return kn&&(n=kn[In]||M,An!==n&&(bn=Un(n),An=n),t=T(bn[e]||M)),t})(e):n},del:function(e,n){return!!Pn(d)&&d.purge(e,n)},purge:function(e,n){var t,o=!1;return Dn(r)&&((t={}).path=n||"/",t[yn]="Thu, 01 Jan 1970 00:00:01 GMT",n=t,$e()||(n["max-age"]="0"),(c.delCookie||_n)(e,Fn(M,n)),o=!0),o}};return d[b]=d}function Dn(e){if(null===Nn){Nn=!1;try{Nn=(kn||{})[In]!==undefined}catch(n){e&&e.throwInternal(C.WARNING,I.CannotAccessCookie,"Cannot access document.cookie - "+Fe(n),{exception:k(n)})}}return Nn}function Un(e){var t={};return e&&e.length&&Le(T(e).split(";"),function(e){var n;(e=T(e||M))&&(-1==(n=e.indexOf("="))?t[e]=null:t[T(e.substring(0,n))]=T(e.substring(1+n)))}),t}function En(e,n){return x(e[n])?e[n]():null}function Fn(e,n){var t=e||M;return Me(n,function(e,n){t+="; "+e+(y(n)?M:"="+n)}),t}function _n(e,n){kn&&(kn[In]=e+"="+n)}var On="getPlugin",O=function Et(){var i,a,s,n,u=this;function t(e){var n,e=e=void 0===e?null:e;return e||(n=a||pn(null,{},u.core),e=s&&s[On]?n.createNew(null,s[On]):n.createNew(null,s)),e}i=!1,u.core=null,s=a=null,n=[],m(Et,u,function(e){e.initialize=function(e,n,t,o){e&&A(e,"extensionConfig",[],null,y),!o&&n&&(o=n.getProcessTelContext().getNext());var r=s;s&&s[On]&&(r=s[On]()),u.core=n,a=pn(o,e,n,r),i=!0},e._addHook=function(e){e&&(w(e)?n=n.concat(e):n.push(e))}}),u.diagLog=function(e){return t(e).diagLog()},u.isInitialized=function(){return i},u.setInitialized=function(e){i=e},u.setNextPlugin=function(e){s=e},u.processNext=function(e,n){n?n.processNext(e):s&&x(s.processTelemetry)&&s.processTelemetry(e,null)},u._getTelCtx=t},Bn=4294967296,l=4294967295,Vn=!1,jn=123456789,Wn=987654321;function qn(e){var n,t=0,o=c("crypto")||c("msCrypto");if(0===(t=o&&o.getRandomValues?o.getRandomValues(new Uint32Array(1))[0]&l:t)&&$e()){if(!Vn)try{var r=2147483647&Ee();(n=(Math.random()*Bn^r)+r)<0&&(n>>>=0),jn=123456789+n&l,Wn=987654321-n&l,Vn=!0}catch(i){}o=((Wn=36969*(65535&Wn)+(Wn>>16)&l)<<16)+(65535&(jn=18e3*(65535&jn)+(jn>>16)&l))>>>0&l|0,t=(o>>>=0)&l}return 0===t&&(t=Math.floor(Bn*Math.random()|0)),e||(t>>>=0),t}function Gn(e){void 0===e&&(e=22);for(var n=qn()>>>0,t=0,o="";o.length<e;)o+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"[0|63&n]||"",n>>>=6,5==++t&&(n=(qn()<<2&4294967295|3&n)>>>0,t=0);return o}function Kn(e,n,t){var o,r,i=n.length,a=(e=e,(n=n)&&150<(n=T(n.toString())).length&&(r=n.substring(0,150),e&&e.throwInternal(C.WARNING,I.NameTooLong,"name is too long. It has been truncated to 150 characters.",{name:n},!0)),r||n);if(a.length!==i){for(var s=0,u=a;t[u]!==undefined;)s++,u=a.substring(0,147)+(o=void 0,(o="00"+s).substr(o.length-3));a=u}return a}function zn(e,n,t){var o;return void 0===t&&(t=1024),n&&(t=t||1024,(n=T(n)).toString().length>t&&(o=n.toString().substring(0,t),e&&e.throwInternal(C.WARNING,I.StringValueTooLong,"string value is too long. It has been truncated to "+t+" characters.",{value:n},!0))),o||n}function Hn(o,e){var r;return e&&(r={},Me(e,function(e,n){if(be(n)&&Xe())try{n=Ye().stringify(n)}catch(t){o&&o.throwInternal(C.WARNING,I.CannotSerializeObjectNonSerializable,"custom property is not valid",{exception:t},!0)}n=zn(o,n,8192),e=Kn(o,e,r),r[e]=n}),e=r),e}function Jn(e,n,t,o){var r;return n&&(n=T(n)).length>t&&(r=n.substring(0,t),e&&e.throwInternal(C.WARNING,o,"input is too long, it has been truncated to "+t+" characters.",{data:n},!0)),r||n}(i=Zn=Zn||{})[i.LocalStorage=0]="LocalStorage",i[i.SessionStorage=1]="SessionStorage";var Zn,Xn,Yn=undefined;function $n(){return et()?Qn(Zn.LocalStorage):null}function Qn(e){try{if(y(W()))return null;var n=new Date,t=c(e===Zn.LocalStorage?"localStorage":"sessionStorage"),o=(t.setItem(n.toString(),n.toString()),t.getItem(n.toString())!==n.toString());if(t.removeItem(n.toString()),!o)return t}catch(r){}return null}function et(){return Yn=Yn===undefined?!!Qn(Zn.LocalStorage):Yn}function nt(e,n){var t=$n();if(null!==t)try{return t.getItem(n)}catch(o){Yn=!1,e.throwInternal(C.WARNING,I.BrowserCannotReadLocalStorage,"Browser failed read of local storage. "+Fe(o),{exception:k(o)})}return null}function tt(e,n,t){var o=$n();if(null!==o)try{o.setItem(n,t)}catch(r){Yn=!1,e.throwInternal(C.WARNING,I.BrowserCannotWriteLocalStorage,"Browser failed write to local storage. "+Fe(r),{exception:k(r)})}}function ot(e,n){var t=$n();if(null!==t)try{t.removeItem(n)}catch(o){Yn=!1,e.throwInternal(C.WARNING,I.BrowserFailedRemovalFromLocalStorage,"Browser failed removal of local storage item. "+Fe(o),{exception:k(o)})}}function rt(){var e=Xn.call(this)||this;return e.ver=2,e.properties={},e.measurements={},e}K(rt,Xn=function(){this.ver=2,this.properties={},this.measurements={}}),K(st,it=rt),st.envelopeType="Microsoft.ApplicationInsights.{0}.Pageview",st.dataType="PageviewData";var it,at=st;function st(e,n,t,o,r,i,a){var s,u,c,l=it.call(this)||this;return l.aiDataContract={ver:1,name:0,url:0,duration:0,properties:0,measurements:0,id:0},l.id=a&&Jn(e,a,128,I.IdTooLong).toString(),l.url=Jn(e,t,2048,I.UrlTooLong),l.name=zn(e,n)||"not_specified",isNaN(o)||(l.duration=(t=""+Math.floor((a=Math.round(a=isNaN(a=o)||a<0?0:a))/1e3)%60,n=1===(n=""+a%1e3).length?"00"+n:2===n.length?"0"+n:n,t=t.length<2?"0"+t:t,o=(o=""+Math.floor(a/6e4)%60).length<2?"0"+o:o,(0<(s=Math.floor(a/864e5))?s+".":"")+(s=(s=""+Math.floor(a/36e5)%24).length<2?"0"+s:s)+":"+o+":"+t+"."+n)),l.properties=Hn(e,r),l.measurements=(u=e,(a=i)&&(c={},Me(a,function(e,n){e=Kn(u,e,c),c[e]=n}),a=c),a),l}function d(e){var n="ai."+e+".";return function(e){return n+e}}var ut,ct,s=d("application"),n=d("device"),i=d("location"),P=d("operation"),lt=d("session"),L=d("user"),R=d("cloud"),ft=d("internal");function dt(){return ut.call(this)||this}ct={applicationVersion:s("ver"),applicationBuild:s("build"),applicationTypeId:s("typeId"),applicationId:s("applicationId"),applicationLayer:s("layer"),deviceId:n("id"),deviceIp:n("ip"),deviceLanguage:n("language"),deviceLocale:n("locale"),deviceModel:n("model"),deviceFriendlyName:n("friendlyName"),deviceNetwork:n("network"),deviceNetworkName:n("networkName"),deviceOEMName:n("oemName"),deviceOS:n("os"),deviceOSVersion:n("osVersion"),deviceRoleInstance:n("roleInstance"),deviceRoleName:n("roleName"),deviceScreenResolution:n("screenResolution"),deviceType:n("type"),deviceMachineName:n("machineName"),deviceVMName:n("vmName"),deviceBrowser:n("browser"),deviceBrowserVersion:n("browserVersion"),locationIp:i("ip"),locationCountry:i("country"),locationProvince:i("province"),locationCity:i("city"),operationId:P("id"),operationName:P("name"),operationParentId:P("parentId"),operationRootId:P("rootId"),operationSyntheticSource:P("syntheticSource"),operationCorrelationVector:P("correlationVector"),sessionId:lt("id"),sessionIsFirst:lt("isFirst"),sessionIsNew:lt("isNew"),userAccountAcquisitionDate:L("accountAcquisitionDate"),userAccountId:L("accountId"),userAgent:L("userAgent"),userId:L("id"),userStoreRegion:L("storeRegion"),userAuthUserId:L("authUserId"),userAnonymousUserAcquisitionDate:L("anonUserAcquisitionDate"),userAuthenticatedUserAcquisitionDate:L("authUserAcquisitionDate"),cloudName:R("name"),cloudRole:R("role"),cloudRoleVer:R("roleVer"),cloudRoleInstance:R("roleInstance"),cloudEnvironment:R("environment"),cloudLocation:R("location"),cloudDeploymentUnit:R("deploymentUnit"),internalNodeName:ft("nodeName"),internalSdkVersion:ft("sdkVersion"),internalAgentVersion:ft("agentVersion"),internalSnippet:ft("snippet"),internalSdkSrc:ft("sdkSrc")},K(dt,ut=function(){var t=this;Me(ct,function(e,n){t[e]=n})});var gt="user",pt="device",vt="trace",ht="web",mt="app",Ct="os",D=new dt,It=function(){},yt=(U.acquisitionSpan=864e5,U.renewalSpan=18e5,U.cookieUpdateInterval=6e4,U);function U(n,e){var l,f,d=rn(e),g=Ln(e);m(U,this,function(s){x((n=n||{}).sessionExpirationMs)||(n.sessionExpirationMs=function(){return U.acquisitionSpan}),x(n.sessionRenewalMs)||(n.sessionRenewalMs=function(){return U.renewalSpan}),s.config=n;var e=s.config.sessionCookiePostfix&&s.config.sessionCookiePostfix()?s.config.sessionCookiePostfix():s.config.namePrefix&&s.config.namePrefix()?s.config.namePrefix():"";function u(e,n){var t=!1,o=", session will be reset",r=n.split("|");if(2<=r.length)try{var i=+r[1]||0,a=+r[2]||0;isNaN(i)||i<=0?d.throwInternal(C.WARNING,I.SessionRenewalDateIsZero,"AI session acquisition date is 0"+o):isNaN(a)||a<=0?d.throwInternal(C.WARNING,I.SessionRenewalDateIsZero,"AI session renewal date is 0"+o):r[0]&&(e.id=r[0],e.acquisitionDate=i,e.renewalDate=a,t=!0)}catch(s){d.throwInternal(C.CRITICAL,I.ErrorParsingAISessionCookie,"Error parsing ai_session value ["+(n||"")+"]"+o+" - "+Fe(s),{exception:k(s)})}return t}function c(e,n){var t=e.acquisitionDate,o=(e.renewalDate=n,s.config),r=o.sessionRenewalMs(),i=t+o.sessionExpirationMs()-n,e=[e.id,t,n],t=i<r?i/1e3:r/1e3,i=o.cookieDomain?o.cookieDomain():null;g.set(l(),e.join("|"),0<o.sessionExpirationMs()?t:null,i),f=n}l=function(){return"ai_session"+e},s.automaticSession=new It,s.update=function(){var e,n,t,o=Ee(),r=!1,i=s.automaticSession,a=(i.id||(n=i,t=!1,(a=g.get(l()))&&x(a.split)?t=u(n,a):(a=nt(d,l()))&&(t=u(n,a)),r=!(t||n.id)),s.config.sessionExpirationMs());!r&&0<a&&(t=s.config.sessionRenewalMs(),n=o-i.acquisitionDate,e=o-i.renewalDate,r=(r=(r=n<0||e<0)||a<n)||t<e),r?(a=o,t=((n=s.config||{}).getNewId?n.getNewId():null)||Gn,s.automaticSession.id=t(n.idLength?n.idLength():22),s.automaticSession.acquisitionDate=a,c(s.automaticSession,a),et()||d.throwInternal(C.WARNING,I.BrowserDoesNotSupportLocalStorage,"Browser does not support local storage. Session durations will be inaccurate.")):(!f||U.cookieUpdateInterval<o-f)&&c(i,o)},s.backup=function(){var e=s.automaticSession,n=e.id,t=e.acquisitionDate,e=e.renewalDate;tt(d,l(),[n,t,e].join("|"))}})}var xt=function(){},St=function(){this.id="browser",this.deviceClass="Browser"},wt=function(e){this.sdkVersion=(e.sdkExtension&&e.sdkExtension()?e.sdkExtension()+"_":"")+"javascript:2.8.0-beta.2203-01"};function Nt(e){return"string"==typeof e&&e&&!e.match(/,|;|=| |\|/)}E.cookieSeparator="|",E.userCookieName="ai_user",E.authUserCookieName="ai_authUser";var Tt=E;function E(a,e){this.isNewUser=!1,this.isUserCookieSet=!1;var s,u=rn(e),c=Ln(e);m(E,this,function(o){o.config=a;var e=o.config.userCookiePostfix&&o.config.userCookiePostfix()?o.config.userCookiePostfix():"",n=(s=function(){return E.userCookieName+e},c.get(s()));function t(){var e=a||{};return((e.getNewId?e.getNewId():null)||Gn)(e.idLength?a.idLength():22)}function r(e){var n=function(e){if(e){if(Se)return e[pe]();var n;return e&&e.getUTCFullYear?(n=function(e){e=""+e;return 1===e.length?"0"+e:e},e.getUTCFullYear()+"-"+n(1+e.getUTCMonth())+"-"+n(e.getUTCDate())+"T"+n(e.getUTCHours())+":"+n(e.getUTCMinutes())+":"+n(e.getUTCSeconds())+"."+(e.getUTCMilliseconds()/1e3).toFixed(3).slice(2,5)+"Z"):void 0}}(new Date);return o.accountAcquisitionDate=n,o.isNewUser=!0,[e,n]}function i(e){o.isUserCookieSet=c.set(s(),e,31536e3)}n&&(o.isNewUser=!1,0<(n=n.split(E.cookieSeparator)).length&&(o.id=n[0],o.isUserCookieSet=!!o.id)),o.id||(o.id=t(),i(r(o.id).join(E.cookieSeparator)),n=a.namePrefix&&a.namePrefix()?a.namePrefix()+"ai_session":"ai_session",ot(u,n)),o.accountId=a.accountId?a.accountId():undefined;var n=c.get(E.authUserCookieName);n&&((n=(n=decodeURI(n)).split(E.cookieSeparator))[0]&&(o.authenticatedId=n[0]),1<n.length&&n[1]&&(o.accountId=n[1])),o.setAuthenticatedUserContext=function(e,n,t){void 0===t&&(t=!1),!Nt(e)||n&&!Nt(n)?u.throwInternal(C.WARNING,I.SetAuthContextFailedAccountName,"Setting auth user context failed. User auth/account id should be of type string, and not contain commas, semi-colons, equal signs, spaces, or vertical-bars.",!0):(o.authenticatedId=e,e=o.authenticatedId,n&&(o.accountId=n,e=[o.authenticatedId,o.accountId].join(E.cookieSeparator)),t&&c.set(E.authUserCookieName,encodeURI(e)))},o.clearAuthenticatedUserContext=function(){o.authenticatedId=null,o.accountId=null,c.del(E.authUserCookieName)},o.update=function(e){o.id===e&&o.isUserCookieSet||i(r(e||t()).join(E.cookieSeparator))}})}var At=function(){},kt=function(e,n,t,o){var r=this,e=(r.traceID=e||function(){for(var e,n=["0","1","2","3","4","5","6","7","8","9","a","b","c","d","e","f"],t="",o=0;o<4;o++)t+=n[15&(e=qn())]+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 r=n[8+(3&qn())|0];return t.substr(0,8)+t.substr(9,4)+"4"+t.substr(13,3)+r+t.substr(16,3)+t.substr(19,12)}(),r.parentID=n,r.name=t,Ze());!t&&e&&e.pathname&&(r.name=e.pathname),r.name=zn(o,r.name)},bt="ext",Mt="tags";function Pt(e,n){e&&e[n]&&0===function(e){var n=typeof e;if(n===F||n===a&&null!==e||q("objKeys called on non-object"),!Re&&Ie)return Ie(e);var t,o=[];for(t in e)e&&V.call(e,t)&&o.push(t);if(Re)for(var r=De.length,i=0;i<r;i++)e&&V.call(e,De[i])&&o.push(De[i]);return o}(e[n]).length&&delete e[n]}var Lt,Rt=function Ft(e,n){var o=this,t=e.logger;this.appId=function(){return null},this.getSessionId=function(){return null},m(Ft,this,function(r){r.application=new xt,r.internal=new wt(n),He()&&(r.sessionManager=new yt(n,e),r.device=new St,r.location=new At,r.user=new Tt(n,e),r.telemetryTrace=new kt(undefined,undefined,undefined,t),r.session=new It),r.getSessionId=function(){var e=r.session;return e&&N(e.id)?e.id:(e=(r.sessionManager||{}).automaticSession)&&N(e.id)?e.id:null},r.applySessionContext=function(e,n){A(f(e.ext,mt),"sesId",r.getSessionId(),N)},r.applyOperatingSystemContxt=function(e,n){A(e.ext,Ct,r.os)},r.applyApplicationContext=function(e,n){var t=r.application;t&&(A(e=f(e,Mt),D.applicationVersion,t.ver,N),A(e,D.applicationBuild,t.build,N))},r.applyDeviceContext=function(e,n){var t=r.device;t&&(A(e=f(f(e,bt),pt),"localId",t.id,N),A(e,"ip",t.ip,N),A(e,"model",t.model,N),A(e,"deviceClass",t.deviceClass,N))},r.applyInternalContext=function(e,n){var t,o=r.internal;o&&(A(t=f(e,Mt),D.internalAgentVersion,o.agentVersion,N),A(t,D.internalSdkVersion,o.sdkVersion,N),e.baseType!==tn.dataType&&e.baseType!==at.dataType||(A(t,D.internalSnippet,o.snippetVer,N),A(t,D.internalSdkSrc,o.sdkSrc,N)))},r.applyLocationContext=function(e,n){var t=o.location;t&&A(f(e,Mt,[]),D.locationIp,t.ip,N)},r.applyOperationContext=function(e,n){var t=r.telemetryTrace;t&&(A(e=f(f(e,bt),vt,{traceID:undefined,parentID:undefined}),"traceID",t.traceID,N),A(e,"name",t.name,N),A(e,"parentID",t.parentID,N))},r.applyWebContext=function(e,n){var t=o.web;t&&A(f(e,bt),ht,t)},r.applyUserContext=function(e,n){var t=r.user;t&&(A(f(e,Mt,[]),D.userAccountId,t.accountId,N),A(e=f(f(e,bt),gt),"id",t.id,N),A(e,"authId",t.authenticatedId,N))},r.cleanUp=function(e,n){e=e.ext;e&&(Pt(e,pt),Pt(e,gt),Pt(e,ht),Pt(e,Ct),Pt(e,mt),Pt(e,vt))}})},s=(K(Dt,Lt=O),Dt.getDefaultConfig=function(){return{instrumentationKey:function(){return undefined},accountId:function(){return null},sessionRenewalMs:function(){return 18e5},samplingPercentage:function(){return 100},sessionExpirationMs:function(){return 864e5},cookieDomain:function(){return null},sdkExtension:function(){return null},isBrowserLinkTrackingEnabled:function(){return!1},appId:function(){return null},getSessionId:function(){return null},namePrefix:function(){return undefined},sessionCookiePostfix:function(){return undefined},userCookiePostfix:function(){return undefined},idLength:function(){return 22},getNewId:function(){return null}}},Dt);function Dt(){var c,l,e=Lt.call(this)||this;return e.priority=110,e.identifier="AppInsightsPropertiesPlugin",m(Dt,e,function(s,u){s.initialize=function(e,n,t,o){u.initialize(e,n,t,o);var r,i=s._getTelCtx(),a=s.identifier,e=Dt.getDefaultConfig();l=l||{},Me(e,function(e,n){l[e]=function(){return i.getConfig(a,e,n())}}),s.context=new Rt(n,l),r=null,Le(t,function(e){if("AppInsightsChannelPlugin"===e.identifier)return r=e,-1}),c=r,s.context.appId=function(){return c?c._appId:null},s._extConfig=l},s.processTelemetry=function(e,n){var t,o,r,i;y(e)||(n=s._getTelCtx(n),e.name===at.envelopeType&&n.diagLog().resetInternalMessageCount(),(r=s.context||{}).session&&"string"!=typeof s.context.session.id&&r.sessionManager&&r.sessionManager.update(),(t=r.user)&&!t.isUserCookieSet&&t.update(r.user.id),r=n,f(o=e,"tags",[]),f(o,"ext",{}),(i=s.context).applySessionContext(o,r),i.applyApplicationContext(o,r),i.applyDeviceContext(o,r),i.applyOperationContext(o,r),i.applyUserContext(o,r),i.applyOperatingSystemContxt(o,r),i.applyWebContext(o,r),i.applyLocationContext(o,r),i.applyInternalContext(o,r),i.cleanUp(o,r),t&&t.isNewUser&&(t.isNewUser=!1,o=new tn(I.SendBrowserInfoOnUserInit,(Je()||{}).userAgent||""),n.diagLog().logInternalMessage(C.CRITICAL,o)),s.processNext(e,n))}}),e}e.PropertiesPlugin=s,e.Session=It,e.SessionManager=yt,e.TelemetryContext=Rt,e.TelemetryTrace=kt;n=e,i="__esModule",P={value:!0},lt=Object.defineProperty;if(lt)try{return void lt(n,i,P)}catch(_t){}typeof P.value!==undefined&&(n[i]=P.value)};"object"==typeof exports&&"undefined"!=typeof module?n(exports):"function"==typeof define&&define.amd?define(["exports"],n):n(((e="undefined"!=typeof globalThis?globalThis:e||self).Microsoft=e.Microsoft||{},e.Microsoft.ApplicationInsights=e.Microsoft.ApplicationInsights||{}));
5
+ var e=this,n=function(e){"use strict";var F="function",a="object",R="undefined",o="prototype",O="hasOwnProperty",t=Object,n=t[o],B=t.create,r=t.defineProperty,V=n[O],j=null;function q(e){return void 0===e&&(e=!0),j&&e||(typeof globalThis!==R&&globalThis&&(j=globalThis),typeof self!==R&&self&&(j=self),typeof window!==R&&window&&(j=window),typeof global!==R&&global&&(j=global)),j}function W(e){throw new TypeError(e)}(q()||{}).Symbol,(q()||{}).Reflect;var K=function(e,n){return(K=t.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var t in n)n[O](t)&&(e[t]=n[t])})(e,n)};function z(e,n){function t(){this.constructor=e}typeof n!==F&&null!==n&&W("Class extends value "+n+" is not a constructor or null"),K(e,n),e[o]=null===n?function(e){if(B)return B(e);if(null==e)return{};var n=typeof e;function t(){}return n!==a&&n!==F&&W("Object prototype may only be an Object:"+e),t[o]=e,new t}(n):(t[o]=n[o],new t)}var G="constructor",p="prototype",H="function",J="_dynInstFuncs",Z="_isDynProxy",$="_dynClass",X="_dynInstChk",Y=X,Q="_dfOpts",ee="_unknown_",ne="__proto__",te="useBaseInst",oe="setInstFuncs",re=Object,ie=re.getPrototypeOf,ae=0;function v(e,n){return e&&re[p].hasOwnProperty.call(e,n)}function ue(e){return e&&(e===re[p]||e===Array[p])}function se(e){return ue(e)||e===Function[p]}function h(e){if(e){if(ie)return ie(e);e=e[ne]||e[p]||(e[G]?e[G][p]:null);if(e)return e}return null}function ce(e,n){var t=[],o=re.getOwnPropertyNames;if(o)t=o(e);else for(var r in e)"string"==typeof r&&v(e,r)&&t.push(r);if(t&&0<t.length)for(var i=0;i<t.length;i++)n(t[i])}function le(e,n,t){return n!==G&&typeof e[n]===H&&(t||v(e,n))}function fe(e){throw new TypeError("DynamicProto: "+e)}function de(e,n){for(var t=e.length-1;0<=t;t--)if(e[t]===n)return 1}function ge(e,n){return v(e,p)?e.name||n||ee:((e||{})[G]||{}).name||n||ee}function m(e,o,n,t){v(e,p)||fe("theClass is an invalid class definition.");var r,i,a,u,s,c,l=e[p],f=(function(e){if(ie)for(var n=[],t=h(o);t&&!se(t)&&!de(n,t);){if(t===e)return 1;n.push(t),t=h(t)}}(l)||fe("["+ge(e)+"] is not in class hierarchy of ["+ge(o)+"]"),null),e=(v(l,$)?f=l[$]:(f="_dynCls$"+ge(e,"_")+"$"+ae,ae++,l[$]=f),m[Q]),d=!!e[te],g=(d&&t&&t[te]!==undefined&&(d=!!t[te]),i={},ce(r=o,function(e){!i[e]&&le(r,e,!1)&&(i[e]=r[e])}),i),d=(n(o,function(e,n,t,i){function o(e,n,t){var o,r=n[t];return r[Z]&&i&&!1!==(o=e[J]||{})[Y]&&(r=(o[n[$]]||{})[t]||r),function(){return r.apply(e,arguments)}}for(var r={},a=(ce(t,function(e){r[e]=o(n,t,e)}),h(e)),u=[];a&&!se(a)&&!de(u,a);)ce(a,function(e){!r[e]&&le(a,e,!ie)&&(r[e]=o(n,a,e))}),u.push(a),a=h(a);return r}(l,o,g,d)),!!ie&&!!e[oe]);a=l,n=f,u=o,s=g,e=!1!==(d=d&&t?!!t[oe]:d),ue(a)||(l=u[J]=u[J]||{},c=l[n]=l[n]||{},!1!==l[Y]&&(l[Y]=!!e),ce(u,function(e){var t,o,r;le(u,e,!1)&&u[e]!==s[e]&&(c[e]=u[e],delete u[e],v(a,e)&&(!a[e]||a[e][Z])||(a[e]=(t=a,o=e,(r=function(){var e,n;return(function(e,n,t,o){var r=null;if(e&&v(t,$)){var i=e[J]||{};if((r=(i[t[$]]||{})[n])||fe("Missing ["+n+"] "+H),!r[X]&&!1!==i[Y]){for(var a=!v(e,n),u=h(e),s=[];a&&u&&!se(u)&&!de(s,u);){var c=u[n];if(c){a=c===o;break}s.push(u),u=h(u)}try{a&&(e[n]=r),r[X]=1}catch(l){i[Y]=!1}}}return r}(this,o,t,r)||(typeof(n=(n=t[e=o])===r?h(t)[e]:n)!==H&&fe("["+e+"] is not a "+H),n)).apply(this,arguments)})[Z]=1,r)))}))}m[Q]={setInstFuncs:!0,useBaseInst:!0};var g="",pe="isInitialized",ve="teardown",he="core",me="disabled",ye="_doTeardown",Ce="toISOString",xe="endsWith",Ie="trim",Se="toString",we="constructor",Te=r,i=t.freeze,Ne=t.keys,u=String[o],be=u[Ie],ke=u[xe],Ae=Date[o][Ce],u=Array.isArray,Me=n[Se],Pe=V[Se],Le=Pe.call(t),_e=/-([a-z])/g,De=/([^\w\d_$])/g,Ue=/^(\d+[\w\d_$])/,Ee=Object.getPrototypeOf;function y(e){return e===undefined||typeof e===R}function C(e){return null===e||y(e)}function Fe(e){return!C(e)}function Re(e){return!(!e||typeof e!==a)}function x(e){return!(!e||typeof e!==F)}function Oe(e){var n=e;return e&&w(e)?(n=(n=e.replace(_e,function(e,n){return n.toUpperCase()})).replace(De,"_")).replace(Ue,function(e,n){return"_"+n}):n}function f(e,n){if(e)for(var t in e)V.call(e,t)&&n.call(e,t,e[t])}function I(e,n){return!(!e||!n||!~e.indexOf(n))}var S=u||function(e){return!(!e||"[object Array]"!==Me.call(e))};function w(e){return"string"==typeof e}function Be(e){return e&&"object"==typeof e&&(!(e=(Ee||function(e){if(e){if(Ee)return Ee(e);e=e.__proto__||e[o]||e[we];if(e)return e}return null})(e))||typeof(e=e[we]&&V.call(e,we)?e[we]:e)===F&&Pe.call(e)===Le)}function Ve(e,n,t){var o=e.length;try{for(var r=0;r<o&&!(r in e&&-1===n.call(t||e,e[r],r,e));r++);}catch(i){}}function T(e){return e&&(be&&e[Ie]?e[Ie]():e.replace?e.replace(/^\s+|\s+$/g,""):e)}var je=!{toString:null}.propertyIsEnumerable("toString"),qe=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],We=i||function(e){return e};function Ke(){var e=Date;return e.now?e.now():(new e).getTime()}function ze(e){return e&&"[object Error]"===Me.call(e)?e.name:g}function N(e,n,t,o,r){var i=t;!e||(i=e[n])===t||r&&!r(i)||o&&!o(t)||(e[n]=i=t)}function d(e,n,t){var o;return e?!(o=e[n])&&C(o)&&(o=y(t)?{}:t,e[n]=o):o=y(t)?{}:t,o}function Ge(e){return!!e}function He(e){var t={};return f(e,function(e,n){if(t[e]=n,!y(t[n]))throw Error("Value: ["+n+"] already exists for "+e);t[n]=e}),We(t)}var Je="window",Ze="navigator",$e="location",Xe="JSON",Ye="crypto",Qe="msCrypto",en="msie",nn="trident/",tn=null,on=null,rn=!1;function c(e){var n=q();return n&&n[e]?n[e]:e===Je&&an()?window:null}function an(){return typeof window===a&&window}function un(){return typeof navigator===a&&navigator?navigator:c(Ze)}function sn(e){if(e&&rn){e=c("__mockLocation");if(e)return e}return typeof location===a&&location?location:c($e)}function cn(){return typeof JSON===a&&JSON||null!==c(Xe)}function ln(){return cn()?JSON||c(Xe):null}function fn(){var e=un();return!e||e.userAgent===on&&null!==tn||(e=((on=e.userAgent)||g).toLowerCase(),tn=I(e,en)||I(e,nn)),tn}function b(e){var n=Object[o].toString.call(e),t=g;return"[object Error]"===n?t="{ stack: '"+e.stack+"', message: '"+e.message+"', name: '"+e.name+"'":cn()&&(t=ln().stringify(e)),n+t}var dn=null;function gn(e){return e?'"'+e.replace(/\"/g,g)+'"':g}function pn(e,n){var t,o=typeof console!==R?console:c("console");o&&(t="log",x(o[t=o[e]?e:t])&&o[t](n))}hn.dataType="MessageData";var vn=hn;function hn(e,n,t,o){void 0===t&&(t=!1),this.messageId=e,this.message=(t?"AI: ":"AI (Internal): ")+e;t=g,cn()&&(t=ln().stringify(o)),e=(n?" message:"+gn(n):g)+(o?" props:"+gn(t):g);this.message+=e}function mn(e,n){return(e||{}).logger||new yn(n)}var yn=function Yt(r){this.identifier="DiagnosticLogger",this.queue=[];var u=0,s={};m(Yt,this,function(i){function e(e,n){e=r[e];return C(e)?n:e}function a(e,n){var t,o=(t=(t=dn)||!0===r.disableDbgExt?t:dn||(o=c("Microsoft"),dn=o?o.ApplicationInsights:dn))?t.ChromeDbgExt:null;o&&o.diagLog&&o.diagLog(e,n)}C(r)&&(r={}),i.consoleLoggingLevel=function(){return e("loggingLevelConsole",0)},i.telemetryLoggingLevel=function(){return e("loggingLevelTelemetry",1)},i.maxInternalMessageLimit=function(){return e("maxMessageLimit",25)},i.enableDebugExceptions=function(){return e("enableDebugExceptions",!1)},i.throwInternal=function(e,n,t,o,r){n=new vn(n,t,r=void 0!==r&&r,o);if(i.enableDebugExceptions())throw n;t=1===e?"errorToConsole":"warnToConsole";y(n.message)?a("throw"+(1===e?"Critical":"Warning"),n):(o=i.consoleLoggingLevel(),r?(r=+n.messageId,!s[r]&&e<=o&&(i[t](n.message),s[r]=!0)):e<=o&&i[t](n.message),i.logInternalMessage(e,n))},i.warnToConsole=function(e){pn("warn",e),a("warning",e)},i.errorToConsole=function(e){pn("error",e),a("error",e)},i.resetInternalMessageCount=function(){u=0,s={}},i.logInternalMessage=function(e,n){var t,o;u>=i.maxInternalMessageLimit()||(o=!0,t="AITR_"+n.messageId,s[t]?o=!1:s[t]=!0,o&&(e<=i.telemetryLoggingLevel()&&(i.queue.push(n),u++,a(1===e?"error":"warn",n)),u===i.maxInternalMessageLimit()&&(o=new vn(23,t="Internal events throttle limit per PageView reached for this app.",!1),i.queue.push(o),1===e?i.errorToConsole(t):i.warnToConsole(t))))}})},Cn=(s.ParentContextKey="parent",s.ChildrenContextKey="childEvts",s);function s(e,r,n){var o,i=this,a=!1;i.start=Ke(),i.name=e,i.isAsync=n,i.isChildEvt=function(){return!1},x(r)&&(a=function(e){if(Te)try{var n={enumerable:!0,configurable:!0,get:function(){return!o&&x(r)&&(o=r(),r=null),o}};return Te(e,"payload",n),!0}catch(t){}return!1}(i)),i.getCtx=function(e){return e?(e===s.ParentContextKey||e===s.ChildrenContextKey?i:i.ctx||{})[e]:null},i.setCtx=function(e,n){e&&(e===s.ParentContextKey?(i[e]||(i.isChildEvt=function(){return!0}),i[e]=n):e===s.ChildrenContextKey?i[e]=n:(i.ctx=i.ctx||{})[e]=n)},i.complete=function(){var e=0,n=i.getCtx(s.ChildrenContextKey);if(S(n))for(var t=0;t<n.length;t++){var o=n[t];o&&(e+=o.time)}i.time=Ke()-i.start,i.exTime=i.time-e,i.complete=function(){},!a&&x(r)&&(i.payload=r())}}var xn="CoreUtils.doPerf";function In(e,n,t,o,r){if(e)if(e=x(e.getPerfMgr)?e.getPerfMgr():e){var i,a=void 0,u=e.getCtx(xn);try{if(a=e.create(n(),o,r))return u&&a.setCtx&&(a.setCtx(Cn.ParentContextKey,u),u.getCtx&&u.setCtx&&((i=u.getCtx(Cn.ChildrenContextKey))||(i=[],u.setCtx(Cn.ChildrenContextKey,i)),i.push(a))),e.setCtx(xn,a),t(a)}catch(s){a&&a.setCtx&&a.setCtx("exception",s)}finally{a&&e.fire(a),e.setCtx(xn,u)}}t()}var Sn=4294967296,l=4294967295,wn=!1,Tn=123456789,Nn=987654321;function bn(e){var n,t=0,o=c(Ye)||c(Qe);if(0===(t=o&&o.getRandomValues?o.getRandomValues(new Uint32Array(1))[0]&l:t)&&fn()){if(!wn)try{var r=2147483647&Ke();(n=(Math.random()*Sn^r)+r)<0&&(n>>>=0),Tn=123456789+n&l,Nn=987654321-n&l,wn=!0}catch(i){}o=((Nn=36969*(65535&Nn)+(Nn>>16)&l)<<16)+(65535&(Tn=18e3*(65535&Tn)+(Tn>>16)&l))>>>0&l|0,t=(o>>>=0)&l}return 0===t&&(t=Math.floor(Sn*Math.random()|0)),e||(t>>>=0),t}function kn(e){void 0===e&&(e=22);for(var n=bn()>>>0,t=0,o=g;o.length<e;)o+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"[0|63&n]||"",n>>>=6,5==++t&&(n=(bn()<<2&4294967295|3&n)>>>0,t=0);return o}var An=r,n="."+kn(6);function Mn(e){return 1===e.nodeType||9===e.nodeType||!+e.nodeType}var Pn,Ln=Pn={id:Oe("_aiData-plugin.2.7.30"+((P=void 0!==P&&P)?".2.7.3":"")+n),accept:Mn,get:function(e,n,t,o){var r=e[Pn.id];return r?r[Oe(n)]:(o&&((r=function(e,n){var t=n[e.id];if(!t){t={};try{Mn(n)&&!function(e,n,t){if(An)try{return An(e,n,{value:t,enumerable:!1,configurable:!0}),1}catch(o){}}(n,e.id,t)&&(n[e.id]=t)}catch(o){}}return t}(Pn,e))[Oe(n)]=t),t)},kill:function(e,n){if(e&&e[n])try{delete e[n]}catch(t){}}};function _n(e){return Ln.get(e,"state",{},!0)}var Dn="TelemetryPluginChain",Un="_hasRun",En="_getTelCtx",Fn=0;function Rn(e,a,t,n){var o=n?function(e,n,t,o){for(;e;){if(e.getPlugin()===o)return e;e=e.getNext()}return Bn([o],n,t)}(e,a,t,n):e,r=[],i={_next:function(){var e,n=o;return o=n?n.getNext():null,n||(e=r)&&0<e.length&&(Ve(e,function(e){try{e.func.call(e.self,e.args)}catch(n){t.logger.throwInternal(2,73,"Unexpected Exception during onComplete - "+b(n))}}),r=[]),n},ctx:{core:function(){return t},diagLog:function(){return mn(t,a)},getCfg:function(){return a},getExtCfg:u,getConfig:function(e,n,t){void 0===t&&(t=!1);var o,e=u(e,null);return e&&!C(e[n])?o=e[n]:a&&!C(a[n])&&(o=a[n]),C(o)?t:o},hasNext:function(){return!!o},getNext:function(){return o},setNext:function(e){o=e},iterate:function(e){for(;n=i._next();){var n=n.getPlugin();n&&e(n)}},onComplete:function(e,n){for(var t=[],o=2;o<arguments.length;o++)t[o-2]=arguments[o];e&&r.push({func:e,self:y(n)?i.ctx:n,args:t})}}};function u(e,n,t){var o,r,i;return void 0===n&&(n={}),void 0===t&&(t=0),(o=a&&(r=a.extensionConfig)&&e?r[e]:o)?Re(n)&&0!==t&&(i=function d(){var e=arguments,n=e[0]||{},t=e.length,o=!1,r=1;for(0<t&&"boolean"==typeof n&&(o=n,n=e[r]||{},r++),Re(n)||(n={});r<t;r++){var i,a,u,s,c=e[r],l=S(c),f=Re(c);for(i in c)(l&&i in c||f&&V.call(c,i))&&(a=c[i],u=void 0,o&&a&&((u=S(a))||Be(a))&&(s=n[i],u?S(s)||(s=[]):Be(s)||(s={}),a=d(o,s,a)),a!==undefined&&(n[i]=a))}return n}(!0,n,o),a&&2===t&&f(n,function(e){var n;C(i[e])&&!C(n=a[e])&&(i[e]=n)})):o=n,o}return i}function On(e,t,o,n){var r=Rn(e,t,o,n),i=r.ctx;return i.processNext=function(e){var n=r._next();return n&&n.processTelemetry(e,i),!n},i.createNew=function(e,n){return On((e=S(e=void 0===e?null:e)?Bn(e,t,o,n):e)||i.getNext(),t,o,n)},i}function Bn(e,n,t,o){var r,i=null,a=!o;return S(e)&&0<e.length&&(r=null,Ve(e,function(e){(a=!a&&o===e||a)&&e&&x(e.processTelemetry)&&(e=Vn(e,n,t),i=i||e,r&&r._setNext(e),r=e)})),o&&!i?Bn([o],n,t):i}function Vn(s,o,r){var c=null,i=x(s.processTelemetry),a=x(s.setNextPlugin),l=s?s.identifier+"-"+s.priority+"-"+Fn++:"Unknown-0-"+Fn++,u={getPlugin:function(){return s},getNext:function(){return c},processTelemetry:function(t,e){var n;f(e=e||(n=(n=s&&x(s[En])?s[En]():n)||On(u,o,r)),function(e){if(!s||!i)return!1;var n=_n(s);return!n[ve]&&!n[me]&&(a&&s.setNextPlugin(c),s.processTelemetry(t,e),!0)},"processTelemetry",function(){return{item:t}},!t.sync)||e.processNext(t)},unload:function(o,r){f(o,function(){var e,n,t=!1;return s&&(e=_n(s),n=s[he]||e.core,!s||n&&n!==o[he]()||e[ve]||(e[he]=null,e[ve]=!0,e[pe]=!1,s[ve]&&!0===s[ve](o,r)&&(t=!0))),t},"unload",function(){},r.isAsync)||o.processNext(r)},_id:l,_setNext:function(e){c=e}};function f(t,o,r,e,n){var i=!1,a=s?s.identifier:Dn,u=(u=t[Un])||(t[Un]={});return t.setNext(c),s&&In(t[he](),function(){return a+":"+r},function(){u[l]=!0;try{var e=c?c._id:g;e&&(u[e]=!1),i=o(t)}catch(n){e=!c||u[c._id];e&&(i=!0),c&&e||t.diagLog().throwInternal(1,73,"Plugin ["+s.identifier+"] failed during "+r+" - "+b(n)+", run flags: "+b(u))}},e,n),i}return We(u)}var jn="toGMTString",qn="toUTCString",Wn="cookie",Kn="expires",zn="enabled",Gn="isCookieUseDisabled",Hn="disableCookiesUsage",k="_ckMgr",Jn=null,Zn=null,$n=null,Xn=typeof document===a&&document?document:c("document"),Yn={},Qn={};function et(e){return!e||e.isEnabled()}function nt(e,n){var t,o;return e?t=e.getCookieMgr():n&&(t=n.cookieCfg[k]||tt(n)),t||(e=(e||{}).logger,(o=tt[k]||Qn[k])||(o=tt[k]=tt(n,e),Qn[k]=o),t=o),t}function tt(e,r){N(t=(e=e||Qn).cookieCfg=e.cookieCfg||{},"domain",e.cookieDomain,Fe,C),N(t,"path",e.cookiePath||"/",null,C),C(t[zn])&&(n=void 0,y(e[Gn])||(n=!e[Gn]),y(e[Hn])||(n=!e[Hn]),t[zn]=n);var n,t,c=t,l=c.path||"/",f=c.domain,o=!1!==c[zn],d={isEnabled:function(){var e=o&&ot(r),n=Qn[k];return e&&n&&d!==n?et(n):e},setEnabled:function(e){o=!1!==e},set:function(e,n,t,o,r){var i,a,u,s=!1;return et(d)&&(i={},-1!=(u=(a=T(n||g)).indexOf(";"))&&(a=T(n.substring(0,u)),i=rt(n.substring(1+u))),N(i,"domain",o||f,Ge,y),C(t)||(u=fn(),y(i[Kn])&&0<(n=Ke()+1e3*t)&&((o=new Date).setTime(n),N(i,Kn,it(o,u?jn:qn)||it(o,u?jn:qn)||g,Ge)),u||N(i,"max-age",g+t,null,y)),(n=sn())&&"https:"===n.protocol&&(N(i,"secure",null,null,y),(Zn=null===Zn?!(w(o=(un()||{}).userAgent)&&(I(o,"CPU iPhone OS 12")||I(o,"iPad; CPU OS 12")||I(o,"Macintosh; Intel Mac OS X 10_14")&&I(o,"Version/")&&I(o,"Safari")||I(o,"Macintosh; Intel Mac OS X 10_14")&&function(e,n){var t=!1;if(!e||(t=e===n))return t;if(ke)return e[xe](n);var o=e,r=n,t=!1,e=o?o.length:0;if(e&&40<=e&&!(t=o===r)){for(var i=e-1,a=39;0<=a;a--){if(o[i]!=r[a])return;i--}t=!0}return t}(o,"AppleWebKit/605.1.15 (KHTML, like Gecko)")||I(o,"Chrome/5")||I(o,"Chrome/6")||I(o,"UnrealEngine")&&!I(o,"Chrome")||I(o,"UCBrowser/12")||I(o,"UCBrowser/11"))):Zn)&&N(i,"SameSite","None",null,y)),N(i,"path",r||l,null,y),(c.setCookie||ut)(e,at(a,i)),s=!0),s},get:function(e){var n=g;return et(d)?(c.getCookie||function(e){var n,t=g;return Xn&&(n=Xn[Wn]||g,$n!==n&&(Yn=rt(n),$n=n),t=T(Yn[e]||g)),t})(e):n},del:function(e,n){return!!et(d)&&d.purge(e,n)},purge:function(e,n){var t,o=!1;return ot(r)&&((t={}).path=n||"/",t[Kn]="Thu, 01 Jan 1970 00:00:01 GMT",n=t,fn()||(n["max-age"]="0"),(c.delCookie||ut)(e,at(g,n)),o=!0),o}};return d[k]=d}function ot(e){if(null===Jn){Jn=!1;try{Jn=(Xn||{})[Wn]!==undefined}catch(n){e&&e.throwInternal(2,68,"Cannot access document.cookie - "+ze(n),{exception:b(n)})}}return Jn}function rt(e){var t={};return e&&e.length&&Ve(T(e).split(";"),function(e){var n;(e=T(e||g))&&(-1==(n=e.indexOf("="))?t[e]=null:t[T(e.substring(0,n))]=T(e.substring(1+n)))}),t}function it(e,n){return x(e[n])?e[n]():null}function at(e,n){var t=e||g;return f(n,function(e,n){t+="; "+e+(C(n)?g:"="+n)}),t}function ut(e,n){Xn&&(Xn[Wn]=e+"="+n)}var st="getPlugin",Se=function Qt(){var i,a,c,l,u=this;function n(e){var n,e=e=void 0===e?null:e;return e||(n=a||On(null,{},u.core),e=c&&c[st]?n.createNew(null,c[st]):n.createNew(null,c)),e}function f(){i=!1,u.core=null,c=a=null,l=[]}f(),m(Qt,u,function(s){s.initialize=function(e,n,t,o){e&&N(e,"extensionConfig",[],null,C),!o&&n&&(o=n.getProcessTelContext().getNext());var r=c;c&&c[st]&&(r=c[st]()),u.core=n,a=On(o,e,n,r),i=!0},s.teardown=function(e,n){var t,o,r,i;if(s.core&&(!e||s.core===e.core()))return o=!1,r=e||function u(e,t,o,n){var r=Rn(e,t,o,n),i=r.ctx;return i.processNext=function(e){var n=r._next();return n&&n.unload(i,e),!n},i.createNew=function(e,n){return u((e=S(e=void 0===e?null:e)?Bn(e,t,o,n):e)||i.getNext(),t,o,n)},i}(null,{},s.core,c&&c[st]?c[st]():c),i=n||{reason:0,isAsync:!1},s[ye]&&!0===s[ye](r,i,a)?t=!0:a(),t;function a(){o||(o=!0,Ve(l,function(e){e.rm()}),l=[],!0===t&&r.processNext(i),f())}},s._addHook=function(e){e&&(S(e)?l=l.concat(e):l.push(e))}}),u.diagLog=function(e){return n(e).diagLog()},u[pe]=function(){return i},u.setInitialized=function(e){i=e},u.setNextPlugin=function(e){c=e},u.processNext=function(e,n){n?n.processNext(e):c&&x(c.processTelemetry)&&c.processTelemetry(e,null)},u._getTelCtx=n},ct=He({CRITICAL:1,WARNING:2}),A=He({BrowserDoesNotSupportLocalStorage:0,BrowserCannotReadLocalStorage:1,BrowserCannotReadSessionStorage:2,BrowserCannotWriteLocalStorage:3,BrowserCannotWriteSessionStorage:4,BrowserFailedRemovalFromLocalStorage:5,BrowserFailedRemovalFromSessionStorage:6,CannotSendEmptyTelemetry:7,ClientPerformanceMathError:8,ErrorParsingAISessionCookie:9,ErrorPVCalc:10,ExceptionWhileLoggingError:11,FailedAddingTelemetryToBuffer:12,FailedMonitorAjaxAbort:13,FailedMonitorAjaxDur:14,FailedMonitorAjaxOpen:15,FailedMonitorAjaxRSC:16,FailedMonitorAjaxSend:17,FailedMonitorAjaxGetCorrelationHeader:18,FailedToAddHandlerForOnBeforeUnload:19,FailedToSendQueuedTelemetry:20,FailedToReportDataLoss:21,FlushFailed:22,MessageLimitPerPVExceeded:23,MissingRequiredFieldSpecification:24,NavigationTimingNotSupported:25,OnError:26,SessionRenewalDateIsZero:27,SenderNotInitialized:28,StartTrackEventFailed:29,StopTrackEventFailed:30,StartTrackFailed:31,StopTrackFailed:32,TelemetrySampledAndNotSent:33,TrackEventFailed:34,TrackExceptionFailed:35,TrackMetricFailed:36,TrackPVFailed:37,TrackPVFailedCalc:38,TrackTraceFailed:39,TransmissionFailed:40,FailedToSetStorageBuffer:41,FailedToRestoreStorageBuffer:42,InvalidBackendResponse:43,FailedToFixDepricatedValues:44,InvalidDurationValue:45,TelemetryEnvelopeInvalid:46,CreateEnvelopeError:47,CannotSerializeObject:48,CannotSerializeObjectNonSerializable:49,CircularReferenceDetected:50,ClearAuthContextFailed:51,ExceptionTruncated:52,IllegalCharsInName:53,ItemNotInArray:54,MaxAjaxPerPVExceeded:55,MessageTruncated:56,NameTooLong:57,SampleRateOutOfRange:58,SetAuthContextFailed:59,SetAuthContextFailedAccountName:60,StringValueTooLong:61,StartCalledMoreThanOnce:62,StopCalledWithoutStart:63,TelemetryInitializerFailed:64,TrackArgumentsNotSpecified:65,UrlTooLong:66,SessionStorageBufferFull:67,CannotAccessCookie:68,IdTooLong:69,InvalidEvent:70,FailedMonitorAjaxSetRequestHeader:71,SendBrowserInfoOnUserInit:72,PluginException:73,NotificationException:74,SnippetScriptLoadFailure:99,InvalidInstrumentationKey:100,CannotParseAiBlobValue:101,InvalidContentBlob:102,TrackPageActionEventFailed:103,FailedAddingCustomDefinedRequestContext:104,InMemoryStorageBufferFull:105});function lt(e,n,t){var o,r,i=n.length,a=(e=e,(n=n)&&150<(n=T(n.toString())).length&&(r=n.substring(0,150),e&&e.throwInternal(2,A.NameTooLong,"name is too long. It has been truncated to 150 characters.",{name:n},!0)),r||n);if(a.length!==i){for(var u=0,s=a;t[s]!==undefined;)u++,s=a.substring(0,147)+(o=void 0,(o="00"+u).substr(o.length-3));a=s}return a}function ft(e,n,t){var o;return void 0===t&&(t=1024),n&&(t=t||1024,(n=T(n)).toString().length>t&&(o=n.toString().substring(0,t),e&&e.throwInternal(2,A.StringValueTooLong,"string value is too long. It has been truncated to "+t+" characters.",{value:n},!0))),o||n}function dt(o,e){var r;return e&&(r={},f(e,function(e,n){if(Re(n)&&cn())try{n=ln().stringify(n)}catch(t){o&&o.throwInternal(2,A.CannotSerializeObjectNonSerializable,"custom property is not valid",{exception:t},!0)}n=ft(o,n,8192),e=lt(o,e,r),r[e]=n}),e=r),e}function gt(e,n,t,o){var r;return n&&(n=T(n)).length>t&&(r=n.substring(0,t),e&&e.throwInternal(2,o,"input is too long, it has been truncated to "+t+" characters.",{data:n},!0)),r||n}var pt,vt=He({LocalStorage:0,SessionStorage:1}),ht=(He({AI:0,AI_AND_W3C:1,W3C:2}),undefined);function mt(){return Ct()?yt(vt.LocalStorage):null}function yt(e){try{if(C(q()))return null;var n=new Date,t=c(e===vt.LocalStorage?"localStorage":"sessionStorage"),o=(t.setItem(n.toString(),n.toString()),t.getItem(n.toString())!==n.toString());if(t.removeItem(n.toString()),!o)return t}catch(r){}return null}function Ct(){return ht=ht===undefined?!!yt(vt.LocalStorage):ht}function xt(e,n){var t=mt();if(null!==t)try{return t.getItem(n)}catch(o){ht=!1,e.throwInternal(2,A.BrowserCannotReadLocalStorage,"Browser failed read of local storage. "+ze(o),{exception:b(o)})}return null}function It(e,n,t){var o=mt();if(null!==o)try{o.setItem(n,t)}catch(r){ht=!1,e.throwInternal(2,A.BrowserCannotWriteLocalStorage,"Browser failed write to local storage. "+ze(r),{exception:b(r)})}}function St(e,n){var t=mt();if(null!==t)try{t.removeItem(n)}catch(o){ht=!1,e.throwInternal(2,A.BrowserFailedRemovalFromLocalStorage,"Browser failed removal of local storage item. "+ze(o),{exception:b(o)})}}function wt(){var e=pt.call(this)||this;return e.ver=2,e.properties={},e.measurements={},e}z(wt,pt=function(){this.ver=2,this.properties={},this.measurements={}}),z(bt,Tt=wt),bt.envelopeType="Microsoft.ApplicationInsights.{0}.Pageview",bt.dataType="PageviewData";var Tt,Nt=bt;function bt(e,n,t,o,r,i,a){var u,s,c,l=Tt.call(this)||this;return l.aiDataContract={ver:1,name:0,url:0,duration:0,properties:0,measurements:0,id:0},l.id=a&&gt(e,a,128,A.IdTooLong).toString(),l.url=gt(e,t,2048,A.UrlTooLong),l.name=ft(e,n)||"not_specified",isNaN(o)||(l.duration=(t=""+Math.floor((a=Math.round(a=isNaN(a=o)||a<0?0:a))/1e3)%60,n=1===(n=""+a%1e3).length?"00"+n:2===n.length?"0"+n:n,t=t.length<2?"0"+t:t,o=(o=""+Math.floor(a/6e4)%60).length<2?"0"+o:o,(0<(u=Math.floor(a/864e5))?u+".":"")+(u=(u=""+Math.floor(a/36e5)%24).length<2?"0"+u:u)+":"+o+":"+t+"."+n)),l.properties=dt(e,r),l.measurements=(s=e,(a=i)&&(c={},f(a,function(e,n){e=lt(s,e,c),c[e]=n}),a=c),a),l}function M(e){var n="ai."+e+".";return function(e){return n+e}}var kt,At,u=M("application"),i=M("device"),r=M("location"),P=M("operation"),n=M("session"),L=M("user"),_=M("cloud"),Mt=M("internal");function Pt(){return kt.call(this)||this}At={applicationVersion:u("ver"),applicationBuild:u("build"),applicationTypeId:u("typeId"),applicationId:u("applicationId"),applicationLayer:u("layer"),deviceId:i("id"),deviceIp:i("ip"),deviceLanguage:i("language"),deviceLocale:i("locale"),deviceModel:i("model"),deviceFriendlyName:i("friendlyName"),deviceNetwork:i("network"),deviceNetworkName:i("networkName"),deviceOEMName:i("oemName"),deviceOS:i("os"),deviceOSVersion:i("osVersion"),deviceRoleInstance:i("roleInstance"),deviceRoleName:i("roleName"),deviceScreenResolution:i("screenResolution"),deviceType:i("type"),deviceMachineName:i("machineName"),deviceVMName:i("vmName"),deviceBrowser:i("browser"),deviceBrowserVersion:i("browserVersion"),locationIp:r("ip"),locationCountry:r("country"),locationProvince:r("province"),locationCity:r("city"),operationId:P("id"),operationName:P("name"),operationParentId:P("parentId"),operationRootId:P("rootId"),operationSyntheticSource:P("syntheticSource"),operationCorrelationVector:P("correlationVector"),sessionId:n("id"),sessionIsFirst:n("isFirst"),sessionIsNew:n("isNew"),userAccountAcquisitionDate:L("accountAcquisitionDate"),userAccountId:L("accountId"),userAgent:L("userAgent"),userId:L("id"),userStoreRegion:L("storeRegion"),userAuthUserId:L("authUserId"),userAnonymousUserAcquisitionDate:L("anonUserAcquisitionDate"),userAuthenticatedUserAcquisitionDate:L("authUserAcquisitionDate"),cloudName:_("name"),cloudRole:_("role"),cloudRoleVer:_("roleVer"),cloudRoleInstance:_("roleInstance"),cloudEnvironment:_("environment"),cloudLocation:_("location"),cloudDeploymentUnit:_("deploymentUnit"),internalNodeName:Mt("nodeName"),internalSdkVersion:Mt("sdkVersion"),internalAgentVersion:Mt("agentVersion"),internalSnippet:Mt("snippet"),internalSdkSrc:Mt("sdkSrc")},z(Pt,kt=function(){var t=this;f(At,function(e,n){t[e]=n})});var Lt="user",_t="device",Dt="trace",Ut="web",Et="app",Ft="os",D=new Pt,Rt=function(){},Ot=(U.acquisitionSpan=864e5,U.renewalSpan=18e5,U.cookieUpdateInterval=6e4,U);function U(n,e){var l,f,d=mn(e),g=nt(e);m(U,this,function(u){x((n=n||{}).sessionExpirationMs)||(n.sessionExpirationMs=function(){return U.acquisitionSpan}),x(n.sessionRenewalMs)||(n.sessionRenewalMs=function(){return U.renewalSpan}),u.config=n;var e=u.config.sessionCookiePostfix&&u.config.sessionCookiePostfix()?u.config.sessionCookiePostfix():u.config.namePrefix&&u.config.namePrefix()?u.config.namePrefix():"";function s(e,n){var t=!1,o=", session will be reset",r=n.split("|");if(2<=r.length)try{var i=+r[1]||0,a=+r[2]||0;isNaN(i)||i<=0?d.throwInternal(ct.WARNING,A.SessionRenewalDateIsZero,"AI session acquisition date is 0"+o):isNaN(a)||a<=0?d.throwInternal(ct.WARNING,A.SessionRenewalDateIsZero,"AI session renewal date is 0"+o):r[0]&&(e.id=r[0],e.acquisitionDate=i,e.renewalDate=a,t=!0)}catch(u){d.throwInternal(ct.CRITICAL,A.ErrorParsingAISessionCookie,"Error parsing ai_session value ["+(n||"")+"]"+o+" - "+ze(u),{exception:b(u)})}return t}function c(e,n){var t=e.acquisitionDate,o=(e.renewalDate=n,u.config),r=o.sessionRenewalMs(),i=t+o.sessionExpirationMs()-n,e=[e.id,t,n],t=i<r?i/1e3:r/1e3,i=o.cookieDomain?o.cookieDomain():null;g.set(l(),e.join("|"),0<o.sessionExpirationMs()?t:null,i),f=n}l=function(){return"ai_session"+e},u.automaticSession=new Rt,u.update=function(){var e,n,t,o=Ke(),r=!1,i=u.automaticSession,a=(i.id||(n=i,t=!1,(a=g.get(l()))&&x(a.split)?t=s(n,a):(a=xt(d,l()))&&(t=s(n,a)),r=!(t||n.id)),u.config.sessionExpirationMs());!r&&0<a&&(t=u.config.sessionRenewalMs(),n=o-i.acquisitionDate,e=o-i.renewalDate,r=(r=(r=n<0||e<0)||a<n)||t<e),r?(a=o,t=((n=u.config||{}).getNewId?n.getNewId():null)||kn,u.automaticSession.id=t(n.idLength?n.idLength():22),u.automaticSession.acquisitionDate=a,c(u.automaticSession,a),Ct()||d.throwInternal(ct.WARNING,A.BrowserDoesNotSupportLocalStorage,"Browser does not support local storage. Session durations will be inaccurate.")):(!f||U.cookieUpdateInterval<o-f)&&c(i,o)},u.backup=function(){var e=u.automaticSession,n=e.id,t=e.acquisitionDate,e=e.renewalDate;It(d,l(),[n,t,e].join("|"))}})}var Bt=function(){},Vt=function(){this.id="browser",this.deviceClass="Browser"},jt=function(e){this.sdkVersion=(e.sdkExtension&&e.sdkExtension()?e.sdkExtension()+"_":"")+"javascript:2.8.0-beta.2203-02"};function qt(e){return"string"==typeof e&&e&&!e.match(/,|;|=| |\|/)}E.cookieSeparator="|",E.userCookieName="ai_user",E.authUserCookieName="ai_authUser";var Wt=E;function E(a,e){this.isNewUser=!1,this.isUserCookieSet=!1;var u,s=mn(e),c=nt(e);m(E,this,function(o){o.config=a;var e=o.config.userCookiePostfix&&o.config.userCookiePostfix()?o.config.userCookiePostfix():"",n=(u=function(){return E.userCookieName+e},c.get(u()));function t(){var e=a||{};return((e.getNewId?e.getNewId():null)||kn)(e.idLength?a.idLength():22)}function r(e){var n=function(e){if(e){if(Ae)return e[Ce]();var n;return e&&e.getUTCFullYear?(n=function(e){e=""+e;return 1===e.length?"0"+e:e},e.getUTCFullYear()+"-"+n(1+e.getUTCMonth())+"-"+n(e.getUTCDate())+"T"+n(e.getUTCHours())+":"+n(e.getUTCMinutes())+":"+n(e.getUTCSeconds())+"."+(e.getUTCMilliseconds()/1e3).toFixed(3).slice(2,5)+"Z"):void 0}}(new Date);return o.accountAcquisitionDate=n,o.isNewUser=!0,[e,n]}function i(e){o.isUserCookieSet=c.set(u(),e,31536e3)}n&&(o.isNewUser=!1,0<(n=n.split(E.cookieSeparator)).length&&(o.id=n[0],o.isUserCookieSet=!!o.id)),o.id||(o.id=t(),i(r(o.id).join(E.cookieSeparator)),n=a.namePrefix&&a.namePrefix()?a.namePrefix()+"ai_session":"ai_session",St(s,n)),o.accountId=a.accountId?a.accountId():undefined;var n=c.get(E.authUserCookieName);n&&((n=(n=decodeURI(n)).split(E.cookieSeparator))[0]&&(o.authenticatedId=n[0]),1<n.length&&n[1]&&(o.accountId=n[1])),o.setAuthenticatedUserContext=function(e,n,t){void 0===t&&(t=!1),!qt(e)||n&&!qt(n)?s.throwInternal(ct.WARNING,A.SetAuthContextFailedAccountName,"Setting auth user context failed. User auth/account id should be of type string, and not contain commas, semi-colons, equal signs, spaces, or vertical-bars.",!0):(o.authenticatedId=e,e=o.authenticatedId,n&&(o.accountId=n,e=[o.authenticatedId,o.accountId].join(E.cookieSeparator)),t&&c.set(E.authUserCookieName,encodeURI(e)))},o.clearAuthenticatedUserContext=function(){o.authenticatedId=null,o.accountId=null,c.del(E.authUserCookieName)},o.update=function(e){o.id===e&&o.isUserCookieSet||i(r(e||t()).join(E.cookieSeparator))}})}var Kt=function(){},zt=function(e,n,t,o){var r=this,e=(r.traceID=e||function(){for(var e,n=["0","1","2","3","4","5","6","7","8","9","a","b","c","d","e","f"],t=g,o=0;o<4;o++)t+=n[15&(e=bn())]+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 r=n[8+(3&bn())|0];return t.substr(0,8)+t.substr(9,4)+"4"+t.substr(13,3)+r+t.substr(16,3)+t.substr(19,12)}(),r.parentID=n,r.name=t,sn());!t&&e&&e.pathname&&(r.name=e.pathname),r.name=ft(o,r.name)},Gt="ext",Ht="tags";function Jt(e,n){e&&e[n]&&0===function(e){var n=typeof e;if(n===F||n===a&&null!==e||W("objKeys called on non-object"),!je&&Ne)return Ne(e);var t,o=[];for(t in e)e&&V.call(e,t)&&o.push(t);if(je)for(var r=qe.length,i=0;i<r;i++)e&&V.call(e,qe[i])&&o.push(qe[i]);return o}(e[n]).length&&delete e[n]}var Zt,$t=function eo(e,n){var o=this,t=e.logger;this.appId=function(){return null},this.getSessionId=function(){return null},m(eo,this,function(r){r.application=new Bt,r.internal=new jt(n),an()&&(r.sessionManager=new Ot(n,e),r.device=new Vt,r.location=new Kt,r.user=new Wt(n,e),r.telemetryTrace=new zt(undefined,undefined,undefined,t),r.session=new Rt),r.getSessionId=function(){var e=r.session;return e&&w(e.id)?e.id:(e=(r.sessionManager||{}).automaticSession)&&w(e.id)?e.id:null},r.applySessionContext=function(e,n){N(d(e.ext,Et),"sesId",r.getSessionId(),w)},r.applyOperatingSystemContxt=function(e,n){N(e.ext,Ft,r.os)},r.applyApplicationContext=function(e,n){var t=r.application;t&&(N(e=d(e,Ht),D.applicationVersion,t.ver,w),N(e,D.applicationBuild,t.build,w))},r.applyDeviceContext=function(e,n){var t=r.device;t&&(N(e=d(d(e,Gt),_t),"localId",t.id,w),N(e,"ip",t.ip,w),N(e,"model",t.model,w),N(e,"deviceClass",t.deviceClass,w))},r.applyInternalContext=function(e,n){var t,o=r.internal;o&&(N(t=d(e,Ht),D.internalAgentVersion,o.agentVersion,w),N(t,D.internalSdkVersion,o.sdkVersion,w),e.baseType!==vn.dataType&&e.baseType!==Nt.dataType||(N(t,D.internalSnippet,o.snippetVer,w),N(t,D.internalSdkSrc,o.sdkSrc,w)))},r.applyLocationContext=function(e,n){var t=o.location;t&&N(d(e,Ht,[]),D.locationIp,t.ip,w)},r.applyOperationContext=function(e,n){var t=r.telemetryTrace;t&&(N(e=d(d(e,Gt),Dt,{traceID:undefined,parentID:undefined}),"traceID",t.traceID,w),N(e,"name",t.name,w),N(e,"parentID",t.parentID,w))},r.applyWebContext=function(e,n){var t=o.web;t&&N(d(e,Gt),Ut,t)},r.applyUserContext=function(e,n){var t=r.user;t&&(N(d(e,Ht,[]),D.userAccountId,t.accountId,w),N(e=d(d(e,Gt),Lt),"id",t.id,w),N(e,"authId",t.authenticatedId,w))},r.cleanUp=function(e,n){e=e.ext;e&&(Jt(e,_t),Jt(e,Lt),Jt(e,Ut),Jt(e,Ft),Jt(e,Et),Jt(e,Dt))}})},u=(z(Xt,Zt=Se),Xt.getDefaultConfig=function(){return{instrumentationKey:function(){return undefined},accountId:function(){return null},sessionRenewalMs:function(){return 18e5},samplingPercentage:function(){return 100},sessionExpirationMs:function(){return 864e5},cookieDomain:function(){return null},sdkExtension:function(){return null},isBrowserLinkTrackingEnabled:function(){return!1},appId:function(){return null},getSessionId:function(){return null},namePrefix:function(){return undefined},sessionCookiePostfix:function(){return undefined},userCookiePostfix:function(){return undefined},idLength:function(){return 22},getNewId:function(){return null}}},Xt);function Xt(){var c,l,e=Zt.call(this)||this;return e.priority=110,e.identifier="AppInsightsPropertiesPlugin",m(Xt,e,function(u,s){u.initialize=function(e,n,t,o){s.initialize(e,n,t,o);var r,i=u._getTelCtx(),a=u.identifier,e=Xt.getDefaultConfig();l=l||{},f(e,function(e,n){l[e]=function(){return i.getConfig(a,e,n())}}),u.context=new $t(n,l),r=null,Ve(t,function(e){if("AppInsightsChannelPlugin"===e.identifier)return r=e,-1}),c=r,u.context.appId=function(){return c?c._appId:null},u._extConfig=l},u.processTelemetry=function(e,n){var t,o,r,i;C(e)||(n=u._getTelCtx(n),e.name===Nt.envelopeType&&n.diagLog().resetInternalMessageCount(),(r=u.context||{}).session&&"string"!=typeof u.context.session.id&&r.sessionManager&&r.sessionManager.update(),(t=r.user)&&!t.isUserCookieSet&&t.update(r.user.id),r=n,d(o=e,"tags",[]),d(o,"ext",{}),(i=u.context).applySessionContext(o,r),i.applyApplicationContext(o,r),i.applyDeviceContext(o,r),i.applyOperationContext(o,r),i.applyUserContext(o,r),i.applyOperatingSystemContxt(o,r),i.applyWebContext(o,r),i.applyLocationContext(o,r),i.applyInternalContext(o,r),i.cleanUp(o,r),t&&t.isNewUser&&(t.isNewUser=!1,o=new vn(A.SendBrowserInfoOnUserInit,(un()||{}).userAgent||""),n.diagLog().logInternalMessage(ct.CRITICAL,o)),u.processNext(e,n))}}),e}e.PropertiesPlugin=u,e.Session=Rt,e.SessionManager=Ot,e.TelemetryContext=$t,e.TelemetryTrace=zt;i=e,r="__esModule",P={value:!0},n=Object.defineProperty;if(n)try{return void n(i,r,P)}catch(no){}typeof P.value!==undefined&&(i[r]=P.value)};"object"==typeof exports&&"undefined"!=typeof module?n(exports):"function"==typeof define&&define.amd?define(["exports"],n):n(((e="undefined"!=typeof globalThis?globalThis:e||self).Microsoft=e.Microsoft||{},e.Microsoft.ApplicationInsights=e.Microsoft.ApplicationInsights||{}));
6
6
  //# sourceMappingURL=applicationinsights-properties-js.min.js.map