@microsoft/applicationinsights-properties-js 2.8.0-beta.2202-06 → 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.2202-06
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(t){"use strict";var s="function",u="object",r="undefined",o="prototype",i="hasOwnProperty",c=Object,l=c[o],f=c.create,e=c.defineProperty,y=l[i],d=null;function x(e){return void 0===e&&(e=!0),d&&e||(typeof globalThis!==r&&globalThis&&(d=globalThis),typeof self!==r&&self&&(d=self),typeof window!==r&&window&&(d=window),typeof global!==r&&global&&(d=global)),d}function S(e){throw new TypeError(e)}(x()||{}).Symbol,(x()||{}).Reflect;var w=function(e,n){return(w=c.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var t in n)n[i](t)&&(e[t]=n[t])})(e,n)};function N(e,n){function t(){this.constructor=e}typeof n!==s&&null!==n&&S("Class extends value "+n+" is not a constructor or null"),w(e,n),e[o]=null===n?function(e){if(f)return f(e);if(null==e)return{};var n=typeof e;function t(){}return n!==u&&n!==s&&S("Object prototype may only be an Object:"+e),t[o]=e,new t}(n):(t[o]=n[o],new t)}var T="constructor",A="prototype",k="function",b="_dynInstFuncs",M="_isDynProxy",P="_dynClass",L="_dynInstChk",R=L,D="_dfOpts",U="_unknown_",E="__proto__",F="useBaseInst",_="setInstFuncs",O=Object,B=O.getPrototypeOf,V=0;function j(e,n){return e&&O[A].hasOwnProperty.call(e,n)}function W(e){return e&&(e===O[A]||e===Array[A])}function q(e){return W(e)||e===Function[A]}function G(e){if(e){if(B)return B(e);e=e[E]||e[A]||(e[T]?e[T][A]:null);if(e)return e}return null}function K(e,n){var t=[],o=O.getOwnPropertyNames;if(o)t=o(e);else for(var r in e)"string"==typeof r&&j(e,r)&&t.push(r);if(t&&0<t.length)for(var i=0;i<t.length;i++)n(t[i])}function z(e,n,t){return n!==T&&typeof e[n]===k&&(t||j(e,n))}function H(e){throw new TypeError("DynamicProto: "+e)}function J(e,n){for(var t=e.length-1;0<=t;t--)if(e[t]===n)return 1}function Z(e,n){return j(e,A)?e.name||n||U:((e||{})[T]||{}).name||n||U}function X(e,o,n,t){j(e,A)||H("theClass is an invalid class definition.");var l,r,i,a,f,d,s=e[A],u=(function(e){if(B)for(var n=[],t=G(o);t&&!q(t)&&!J(n,t);){if(t===e)return 1;n.push(t),t=G(t)}}(s)||H("["+Z(e)+"] is not in class hierarchy of ["+Z(o)+"]"),null),e=(j(s,P)?u=s[P]:(u="_dynCls$"+Z(e,"_")+"$"+V,V++,s[P]=u),X[D]),c=!!e[F],g=(c&&t&&t[F]!==undefined&&(c=!!t[F]),r={},K(l=o,function(e){!r[e]&&z(l,e,!1)&&(r[e]=l[e])}),r),c=(n(o,function(e,n,t,i){function o(e,n,t){var o,r=n[t];return r[M]&&i&&!1!==(o=e[b]||{})[R]&&(r=(o[n[P]]||{})[t]||r),function(){return r.apply(e,arguments)}}for(var r={},a=(K(t,function(e){r[e]=o(n,t,e)}),G(e)),s=[];a&&!q(a)&&!J(s,a);)K(a,function(e){!r[e]&&z(a,e,!B)&&(r[e]=o(n,a,e))}),s.push(a),a=G(a);return r}(s,o,g,c)),!!B&&!!e[_]);i=s,n=u,a=o,f=g,e=!1!==(c=c&&t?!!t[_]:c),W(i)||(s=a[b]=a[b]||{},d=s[n]=s[n]||{},!1!==s[R]&&(s[R]=!!e),K(a,function(e){var t,o,r;z(a,e,!1)&&a[e]!==f[e]&&(d[e]=a[e],delete a[e],j(i,e)&&(!i[e]||i[e][M])||(i[e]=(t=i,o=e,(r=function(){var e,n;return(function(e,n,t,l){var o=null;if(e&&j(t,P)){var r=e[b]||{};if((o=(r[t[P]]||{})[n])||H("Missing ["+n+"] "+k),!o[L]&&!1!==r[R]){for(var i=!j(e,n),a=G(e),s=[];i&&a&&!q(a)&&!J(s,a);){var u=a[n];if(u){i=u===l;break}s.push(a),a=G(a)}try{i&&(e[n]=o),o[L]=1}catch(c){r[R]=!1}}}return o}(this,o,t,r)||(typeof(n=(n=t[e=o])===r?G(t)[e]:n)!==k&&H("["+e+"] is not a "+k),n)).apply(this,arguments)})[M]=1,r)))}))}X[D]={setInstFuncs:!0,useBaseInst:!0},(n=p=p||{})[n.CRITICAL=1]="CRITICAL",n[n.WARNING=2]="WARNING";var p,v={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},Y="toISOString",$="endsWith",Q="trim",n="toString",ee="constructor",ne=e,e=c.freeze,te=c.keys,oe=String[o],re=oe[Q],ie=oe[$],ae=Date[o][Y],oe=Array.isArray,se=l[n],ue=y[n],ce=ue.call(c),le=Object.getPrototypeOf;function fe(e){return e===undefined||typeof e===r}function g(e){return null===e||fe(e)}function de(e){return!g(e)}function ge(e){return!(!e||typeof e!==u)}function h(e){return!(!e||typeof e!==s)}function pe(e,n){if(e)for(var t in e)y.call(e,t)&&n.call(e,t,e[t])}function m(e,n){return!(!e||!n||!~e.indexOf(n))}var ve=oe||function(e){return!(!e||"[object Array]"!==se.call(e))};function C(e){return"string"==typeof e}function he(e){return e&&"object"==typeof e&&(!(e=(le||function(e){if(e){if(le)return le(e);e=e.__proto__||e[o]||e[ee];if(e)return e}return null})(e))||typeof(e=e[ee]&&y.call(e,ee)?e[ee]:e)===s&&ue.call(e)===ce)}function me(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 Ce(e){return e&&(re&&e[Q]?e[Q]():e.replace?e.replace(/^\s+|\s+$/g,""):e)}var Ie=!{toString:null}.propertyIsEnumerable("toString"),ye=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],xe=e||function(e){return e};function Se(){var e=Date;return e.now?e.now():(new e).getTime()}function we(e){return e&&"[object Error]"===se.call(e)?e.name:""}function I(e,n,t,o,r){var i=t;return e&&((i=e[n])===t||r&&!r(i)||o&&!o(t)||(e[n]=i=t)),i}function a(e,n,t){var o;return e?!(o=e[n])&&g(o)&&(o=fe(t)?{}:t,e[n]=o):o=fe(t)?{}:t,o}function Ne(e){return!!e}var Te="window",Ae="navigator",ke="location",be="JSON",Me="msie",Pe="trident/",Le=null,Re=null,De=!1;function Ue(e){var n=x();return n&&n[e]?n[e]:e===Te&&Ee()?window:null}function Ee(){return typeof window===u&&window}function Fe(){return typeof navigator===u&&navigator?navigator:Ue(Ae)}function _e(e){if(e&&De){e=Ue("__mockLocation");if(e)return e}return typeof location===u&&location?location:Ue(ke)}function Oe(){return typeof JSON===u&&JSON||null!==Ue(be)}function Be(){return Oe()?JSON||Ue(be):null}function Ve(){var e=Fe();return!e||e.userAgent===Re&&null!==Le||(e=((Re=e.userAgent)||"").toLowerCase(),Le=m(e,Me)||m(e,Pe)),Le}function je(e){var n=Object[o].toString.call(e),t="";return"[object Error]"===n?t="{ stack: '"+e.stack+"', message: '"+e.message+"', name: '"+e.name+"'":Oe()&&(t=Be().stringify(e)),n+t}var We=null;function qe(e){return e?'"'+e.replace(/\"/g,"")+'"':""}function Ge(e,n){var t,o=typeof console!==r?console:Ue("console");o&&(t="log",h(o[t=o[e]?e:t])&&o[t](n))}ze.dataType="MessageData";var Ke=ze;function ze(e,n,t,o){void 0===t&&(t=!1),this.messageId=e,this.message=(t?"AI: ":"AI (Internal): ")+e;t="",Oe()&&(t=Be().stringify(o)),e=(n?" message:"+qe(n):"")+(o?" props:"+qe(t):"");this.message+=e}function He(e,n){return(e||{}).logger||new Je(n)}var Je=function Ut(r){this.identifier="DiagnosticLogger",this.queue=[];var s=0,u={};X(Ut,this,function(i){function e(e,n){e=r[e];return g(e)?n:e}function a(e,n){var t,o=(t=(t=We)||!0===r.disableDbgExt?t:We||(o=Ue("Microsoft"),We=o?o.ApplicationInsights:We))?t.ChromeDbgExt:null;o&&o.diagLog&&o.diagLog(e,n)}g(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 Ke(n,t,r=void 0!==r&&r,o);if(i.enableDebugExceptions())throw n;t=e===p.CRITICAL?"errorToConsole":"warnToConsole";fe(n.message)?a("throw"+(e===p.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){Ge("warn",e),a("warning",e)},i.errorToConsole=function(e){Ge("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===p.CRITICAL?"error":"warn",n)),s===i.maxInternalMessageLimit()&&(o=new Ke(v.MessageLimitPerPVExceeded,t="Internal events throttle limit per PageView reached for this app.",!1),i.queue.push(o),e===p.CRITICAL?i.errorToConsole(t):i.warnToConsole(t))))}})},Ze=(Xe.ParentContextKey="parent",Xe.ChildrenContextKey="childEvts",Xe);function Xe(e,r,n){var o,i=this,a=!1;i.start=Se(),i.name=e,i.isAsync=n,i.isChildEvt=function(){return!1},h(r)&&(a=function(e){if(ne)try{var n={enumerable:!0,configurable:!0,get:function(){return!o&&h(r)&&(o=r(),r=null),o}};return ne(e,"payload",n),!0}catch(t){}return!1}(i)),i.getCtx=function(e){return e?(e===Xe.ParentContextKey||e===Xe.ChildrenContextKey?i:i.ctx||{})[e]:null},i.setCtx=function(e,n){e&&(e===Xe.ParentContextKey?(i[e]||(i.isChildEvt=function(){return!0}),i[e]=n):e===Xe.ChildrenContextKey?i[e]=n:(i.ctx=i.ctx||{})[e]=n)},i.complete=function(){var e=0,n=i.getCtx(Xe.ChildrenContextKey);if(ve(n))for(var t=0;t<n.length;t++){var o=n[t];o&&(e+=o.time)}i.time=Se()-i.start,i.exTime=i.time-e,i.complete=function(){},!a&&h(r)&&(i.payload=r())}}var Ye="CoreUtils.doPerf";function $e(e,n,t,o,r){if(e)if(e=h(e.getPerfMgr)?e.getPerfMgr():e){var i,a=void 0,s=e.getCtx(Ye);try{if(a=e.create(n(),o,r))return s&&a.setCtx&&(a.setCtx(Ze.ParentContextKey,s),s.getCtx&&s.setCtx&&((i=s.getCtx(Ze.ChildrenContextKey))||(i=[],s.setCtx(Ze.ChildrenContextKey,i)),i.push(a))),e.setCtx(Ye,a),t(a)}catch(u){a&&a.setCtx&&a.setCtx("exception",u)}finally{a&&e.fire(a),e.setCtx(Ye,s)}}return t()}var Qe="TelemetryPluginChain",en="_hasRun",nn="_getTelCtx",tn=0;function on(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 rn([o],n,t)}(e,a,t,n):e,i={core:function(){return t},diagLog:function(){return He(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&&!g(e[n])?o=e[n]:a&&!g(a[n])&&(o=a[n]),g(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 on((e=ve(e=void 0===e?null:e)?rn(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),!a||(r=a.extensionConfig)&&e&&(o=r[e]),o?ge(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++),ge(n)||(n={});r<t;r++){var i,a,s,u,c=e[r],l=ve(c),f=ge(c);for(i in c)(l&&i in c||f&&y.call(c,i))&&(a=c[i],s=void 0,o&&a&&((s=ve(a))||he(a))&&(u=n[i],s?ve(u)||(u=[]):he(u)||(u={}),a=d(o,u,a)),a!==undefined&&(n[i]=a))}return n}(!0,n,o),a&&2===t&&pe(n,function(e){var n;g(i[e])&&(g(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 rn(e,n,t,o){var r,i=null,a=!o;return ve(e)&&0<e.length&&(r=null,me(e,function(e){(a=!a&&o===e||a)&&e&&h(e.processTelemetry)&&(e=an(e,n,t),i=i||e,r&&r._setNext(e),r=e)})),o&&!i?rn([o],n,t):i}function an(u,c,l){var f=null,t=h(u.processTelemetry),o=h(u.setNextPlugin),d=u?u.identifier+"-"+u.priority+"-"+tn++:"Unknown-0-"+tn++,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&&h(u[nn])?u[nn]():o))||on(g,c,l);var t=u?u.identifier:Qe,s=(s=o[en])||(o[en]={});$e(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(p.CRITICAL,v.PluginException,"Plugin ["+u.identifier+"] failed during "+a+" - "+je(t)+", run flags: "+je(s))}f&&!e&&i(o)},e,n)}return xe(g)}var sn="toGMTString",un="toUTCString",cn="cookie",ln="expires",fn="enabled",dn="isCookieUseDisabled",gn="disableCookiesUsage",pn="_ckMgr",vn="",hn=null,mn=null,Cn=null,In=typeof document===u&&document?document:Ue("document"),yn={},xn={};function Sn(e){return!e||e.isEnabled()}function wn(e,n){var t,o;return e?t=e.getCookieMgr():n&&(t=n.cookieCfg[pn]||Nn(n)),t||(e=(e||{}).logger,(o=Nn[pn]||xn[pn])||(o=Nn[pn]=Nn(n,e),xn[pn]=o),t=o),t}function Nn(e,r){I(t=(e=e||xn).cookieCfg=e.cookieCfg||{},"domain",e.cookieDomain,de,g),I(t,"path",e.cookiePath||"/",null,g),g(t[fn])&&(n=void 0,fe(e[dn])||(n=!e[dn]),fe(e[gn])||(n=!e[gn]),t[fn]=n);var n,t,c=t,l=c.path||"/",f=c.domain,o=!1!==c[fn],d={isEnabled:function(){var e=o&&Tn(r),n=xn[pn];return e&&n&&d!==n?Sn(n):e},setEnabled:function(e){o=!1!==e},set:function(e,n,t,o,r){var i,a,s,u=!1;return Sn(d)&&(i={},-1!=(s=(a=Ce(n||vn)).indexOf(";"))&&(a=Ce(n.substring(0,s)),i=An(n.substring(1+s))),I(i,"domain",o||f,Ne,fe),g(t)||(s=Ve(),!fe(i[ln])||0<(n=Se()+1e3*t)&&((o=new Date).setTime(n),I(i,ln,kn(o,s?sn:un)||kn(o,s?sn:un)||vn,Ne)),s||I(i,"max-age",vn+t,null,fe)),(n=_e())&&"https:"===n.protocol&&(I(i,"secure",null,null,fe),(mn=null===mn?!(C(o=(Fe()||{}).userAgent)&&(m(o,"CPU iPhone OS 12")||m(o,"iPad; CPU OS 12")||m(o,"Macintosh; Intel Mac OS X 10_14")&&m(o,"Version/")&&m(o,"Safari")||m(o,"Macintosh; Intel Mac OS X 10_14")&&function(e,n){var t=!1;if(!e||(t=e===n))return t;if(ie)return e[$](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)")||m(o,"Chrome/5")||m(o,"Chrome/6")||m(o,"UnrealEngine")&&!m(o,"Chrome")||m(o,"UCBrowser/12")||m(o,"UCBrowser/11"))):mn)&&I(i,"SameSite","None",null,fe)),I(i,"path",r||l,null,fe),(c.setCookie||Mn)(e,bn(a,i)),u=!0),u},get:function(e){var n=vn;return Sn(d)?(c.getCookie||function(e){var n,t=vn;return In&&(n=In[cn]||vn,Cn!==n&&(yn=An(n),Cn=n),t=Ce(yn[e]||vn)),t})(e):n},del:function(e,n){return!!Sn(d)&&d.purge(e,n)},purge:function(e,n){var t,o=!1;return Tn(r)&&((t={}).path=n||"/",t[ln]="Thu, 01 Jan 1970 00:00:01 GMT",n=t,Ve()||(n["max-age"]="0"),(c.delCookie||Mn)(e,bn(vn,n)),o=!0),o}};return d[pn]=d}function Tn(e){if(null===hn){hn=!1;try{hn=(In||{})[cn]!==undefined}catch(n){e&&e.throwInternal(p.WARNING,v.CannotAccessCookie,"Cannot access document.cookie - "+we(n),{exception:je(n)})}}return hn}function An(e){var t={};return e&&e.length&&me(Ce(e).split(";"),function(e){var n;(e=Ce(e||vn))&&(-1==(n=e.indexOf("="))?t[e]=null:t[Ce(e.substring(0,n))]=Ce(e.substring(1+n)))}),t}function kn(e,n){return h(e[n])?e[n]():null}function bn(e,n){var t=e||vn;return pe(n,function(e,n){t+="; "+e+(g(n)?vn:"="+n)}),t}function Mn(e,n){In&&(In[cn]=e+"="+n)}var Pn="getPlugin",l=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||on(null,{},u.core),e=s&&s[Pn]?n.createNew(null,s[Pn]):n.createNew(null,s)),e}i=!1,u.core=null,s=a=null,n=[],X(Et,u,function(e){e.initialize=function(e,n,t,o){e&&I(e,"extensionConfig",[],null,g),!o&&n&&(o=n.getProcessTelContext().getNext());var r=s;s&&s[Pn]&&(r=s[Pn]()),u.core=n,a=on(o,e,n,r),i=!0},e._addHook=function(e){e&&(ve(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&&h(s.processTelemetry)&&s.processTelemetry(e,null)},u._getTelCtx=t},Ln=4294967296,Rn=4294967295,Dn=!1,Un=123456789,En=987654321;function Fn(e){var n,t=0,o=Ue("crypto")||Ue("msCrypto");if(0===(t=o&&o.getRandomValues?o.getRandomValues(new Uint32Array(1))[0]&Rn:t)&&Ve()){if(!Dn)try{var r=2147483647&Se();(n=(Math.random()*Ln^r)+r)<0&&(n>>>=0),Un=123456789+n&Rn,En=987654321-n&Rn,Dn=!0}catch(i){}o=((En=36969*(65535&En)+(En>>16)&Rn)<<16)+(65535&(Un=18e3*(65535&Un)+(Un>>16)&Rn))>>>0&Rn|0,t=(o>>>=0)&Rn}return 0===t&&(t=Math.floor(Ln*Math.random()|0)),e||(t>>>=0),t}function _n(e){void 0===e&&(e=22);for(var n=Fn()>>>0,t=0,o="";o.length<e;)o+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"[0|63&n]||"",n>>>=6,5==++t&&(n=(Fn()<<2&4294967295|3&n)>>>0,t=0);return o}function On(e,n,t){var o,r,i=n.length,a=(e=e,(n=n)&&150<(n=Ce(n.toString())).length&&(r=n.substring(0,150),e&&e.throwInternal(p.WARNING,v.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 Bn(e,n,t){var o;return void 0===t&&(t=1024),n&&(t=t||1024,(n=Ce(n)).toString().length>t&&(o=n.toString().substring(0,t),e&&e.throwInternal(p.WARNING,v.StringValueTooLong,"string value is too long. It has been truncated to "+t+" characters.",{value:n},!0))),o||n}function Vn(o,e){var r;return e&&(r={},pe(e,function(e,n){if(ge(n)&&Oe())try{n=Be().stringify(n)}catch(t){o&&o.throwInternal(p.WARNING,v.CannotSerializeObjectNonSerializable,"custom property is not valid",{exception:t},!0)}n=Bn(o,n,8192),e=On(o,e,r),r[e]=n}),e=r),e}function jn(e,n,t,o){var r;return n&&(n=Ce(n)).length>t&&(r=n.substring(0,t),e&&e.throwInternal(p.WARNING,o,"input is too long, it has been truncated to "+t+" characters.",{data:n},!0)),r||n}(n=Wn=Wn||{})[n.LocalStorage=0]="LocalStorage",n[n.SessionStorage=1]="SessionStorage";var Wn,qn,Gn=undefined;function Kn(){return Hn()?zn(Wn.LocalStorage):null}function zn(e){try{if(g(x()))return null;var n=new Date,t=Ue(e===Wn.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 Hn(){return Gn=Gn===undefined?!!zn(Wn.LocalStorage):Gn}function Jn(e,n){var t=Kn();if(null!==t)try{return t.getItem(n)}catch(o){Gn=!1,e.throwInternal(p.WARNING,v.BrowserCannotReadLocalStorage,"Browser failed read of local storage. "+we(o),{exception:je(o)})}return null}function Zn(e,n,t){var o=Kn();if(null!==o)try{return o.setItem(n,t),1}catch(r){Gn=!1,e.throwInternal(p.WARNING,v.BrowserCannotWriteLocalStorage,"Browser failed write to local storage. "+we(r),{exception:je(r)})}}function Xn(e,n){var t=Kn();if(null!==t)try{return t.removeItem(n),1}catch(o){Gn=!1,e.throwInternal(p.WARNING,v.BrowserFailedRemovalFromLocalStorage,"Browser failed removal of local storage item. "+we(o),{exception:je(o)})}}function Yn(){var e=qn.call(this)||this;return e.ver=2,e.properties={},e.measurements={},e}N(Yn,qn=function(){this.ver=2,this.properties={},this.measurements={}}),N(et,$n=Yn),et.envelopeType="Microsoft.ApplicationInsights.{0}.Pageview",et.dataType="PageviewData";var $n,Qn=et;function et(e,n,t,o,r,l,i){var a,s,u,c=$n.call(this)||this;return c.aiDataContract={ver:1,name:0,url:0,duration:0,properties:0,measurements:0,id:0},c.id=i&&jn(e,i,128,v.IdTooLong).toString(),c.url=jn(e,t,2048,v.UrlTooLong),c.name=Bn(e,n)||"not_specified",isNaN(o)||(c.duration=(t=""+Math.floor((i=Math.round(i=isNaN(i=o)||i<0?0:i))/1e3)%60,n=1===(n=""+i%1e3).length?"00"+n:2===n.length?"0"+n:n,t=t.length<2?"0"+t:t,o=(o=""+Math.floor(i/6e4)%60).length<2?"0"+o:o,(0<(a=Math.floor(i/864e5))?a+".":"")+(a=(a=""+Math.floor(i/36e5)%24).length<2?"0"+a:a)+":"+o+":"+t+"."+n)),c.properties=Vn(e,r),c.measurements=(s=e,(i=l)&&(u={},pe(i,function(e,n){e=On(s,e,u),u[e]=n}),i=u),i),c}function nt(e){var n="ai."+e+".";return function(e){return n+e}}var tt,ot,oe=nt("application"),e=nt("device"),n=nt("location"),rt=nt("operation"),it=nt("session"),at=nt("user"),st=nt("cloud"),ut=nt("internal");function ct(){return tt.call(this)||this}ot={applicationVersion:oe("ver"),applicationBuild:oe("build"),applicationTypeId:oe("typeId"),applicationId:oe("applicationId"),applicationLayer:oe("layer"),deviceId:e("id"),deviceIp:e("ip"),deviceLanguage:e("language"),deviceLocale:e("locale"),deviceModel:e("model"),deviceFriendlyName:e("friendlyName"),deviceNetwork:e("network"),deviceNetworkName:e("networkName"),deviceOEMName:e("oemName"),deviceOS:e("os"),deviceOSVersion:e("osVersion"),deviceRoleInstance:e("roleInstance"),deviceRoleName:e("roleName"),deviceScreenResolution:e("screenResolution"),deviceType:e("type"),deviceMachineName:e("machineName"),deviceVMName:e("vmName"),deviceBrowser:e("browser"),deviceBrowserVersion:e("browserVersion"),locationIp:n("ip"),locationCountry:n("country"),locationProvince:n("province"),locationCity:n("city"),operationId:rt("id"),operationName:rt("name"),operationParentId:rt("parentId"),operationRootId:rt("rootId"),operationSyntheticSource:rt("syntheticSource"),operationCorrelationVector:rt("correlationVector"),sessionId:it("id"),sessionIsFirst:it("isFirst"),sessionIsNew:it("isNew"),userAccountAcquisitionDate:at("accountAcquisitionDate"),userAccountId:at("accountId"),userAgent:at("userAgent"),userId:at("id"),userStoreRegion:at("storeRegion"),userAuthUserId:at("authUserId"),userAnonymousUserAcquisitionDate:at("anonUserAcquisitionDate"),userAuthenticatedUserAcquisitionDate:at("authUserAcquisitionDate"),cloudName:st("name"),cloudRole:st("role"),cloudRoleVer:st("roleVer"),cloudRoleInstance:st("roleInstance"),cloudEnvironment:st("environment"),cloudLocation:st("location"),cloudDeploymentUnit:st("deploymentUnit"),internalNodeName:ut("nodeName"),internalSdkVersion:ut("sdkVersion"),internalAgentVersion:ut("agentVersion"),internalSnippet:ut("snippet"),internalSdkSrc:ut("sdkSrc")},N(ct,tt=function(){var t=this;pe(ot,function(e,n){t[e]=n})});var lt="user",ft="device",dt="trace",gt="web",pt="app",vt="os",ht=new ct,mt=function(){},Ct=(It.acquisitionSpan=864e5,It.renewalSpan=18e5,It.cookieUpdateInterval=6e4,It);function It(n,e){var l,f,d=He(e),g=wn(e);X(It,this,function(s){h((n=n||{}).sessionExpirationMs)||(n.sessionExpirationMs=function(){return It.acquisitionSpan}),h(n.sessionRenewalMs)||(n.sessionRenewalMs=function(){return It.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(p.WARNING,v.SessionRenewalDateIsZero,"AI session acquisition date is 0"+o):isNaN(a)||a<=0?d.throwInternal(p.WARNING,v.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(p.CRITICAL,v.ErrorParsingAISessionCookie,"Error parsing ai_session value ["+(n||"")+"]"+o+" - "+we(s),{exception:je(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 mt,s.update=function(){var e,n,t,o=Se(),r=!1,i=s.automaticSession,a=(i.id||(n=i,t=!1,(a=g.get(l()))&&h(a.split)?t=u(n,a):(a=Jn(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)||_n,s.automaticSession.id=t(n.idLength?n.idLength():22),s.automaticSession.acquisitionDate=a,c(s.automaticSession,a),Hn()||d.throwInternal(p.WARNING,v.BrowserDoesNotSupportLocalStorage,"Browser does not support local storage. Session durations will be inaccurate.")):(!f||It.cookieUpdateInterval<o-f)&&c(i,o)},s.backup=function(){var e=s.automaticSession,n=e.id,t=e.acquisitionDate,e=e.renewalDate;Zn(d,l(),[n,t,e].join("|"))}})}var yt=function(){},xt=function(){this.id="browser",this.deviceClass="Browser"},St=function(e){this.sdkVersion=(e.sdkExtension&&e.sdkExtension()?e.sdkExtension()+"_":"")+"javascript:2.8.0-beta.2202-06"};function wt(e){return"string"==typeof e&&e&&!e.match(/,|;|=| |\|/)}Tt.cookieSeparator="|",Tt.userCookieName="ai_user",Tt.authUserCookieName="ai_authUser";var Nt=Tt;function Tt(a,e){this.isNewUser=!1,this.isUserCookieSet=!1;var s,u=He(e),c=wn(e);X(Tt,this,function(o){o.config=a;var e=o.config.userCookiePostfix&&o.config.userCookiePostfix()?o.config.userCookiePostfix():"",n=(s=function(){return Tt.userCookieName+e},c.get(s()));function t(){var e=a||{};return((e.getNewId?e.getNewId():null)||_n)(e.idLength?a.idLength():22)}function r(e){var n=function(e){if(e){if(ae)return e[Y]();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(Tt.cookieSeparator)).length&&(o.id=n[0],o.isUserCookieSet=!!o.id)),o.id||(o.id=t(),i(r(o.id).join(Tt.cookieSeparator)),n=a.namePrefix&&a.namePrefix()?a.namePrefix()+"ai_session":"ai_session",Xn(u,n)),o.accountId=a.accountId?a.accountId():undefined;var n=c.get(Tt.authUserCookieName);n&&((n=(n=decodeURI(n)).split(Tt.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),!wt(e)||n&&!wt(n)?u.throwInternal(p.WARNING,v.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(Tt.cookieSeparator)),t&&c.set(Tt.authUserCookieName,encodeURI(e)))},o.clearAuthenticatedUserContext=function(){o.authenticatedId=null,o.accountId=null,c.del(Tt.authUserCookieName)},o.update=function(e){o.id===e&&o.isUserCookieSet||i(r(e||t()).join(Tt.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=Fn())]+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&Fn())|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,_e());!t&&e&&e.pathname&&(r.name=e.pathname),r.name=Bn(o,r.name)},bt="ext",Mt="tags";function Pt(e,n){e&&e[n]&&0===function(e){var n=typeof e;if(n===s||n===u&&null!==e||S("objKeys called on non-object"),!Ie&&te)return te(e);var t,o=[];for(t in e)e&&y.call(e,t)&&o.push(t);if(Ie)for(var r=ye.length,i=0;i<r;i++)e&&y.call(e,ye[i])&&o.push(ye[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},X(Ft,this,function(r){r.application=new yt,r.internal=new St(n),Ee()&&(r.sessionManager=new Ct(n,e),r.device=new xt,r.location=new At,r.user=new Nt(n,e),r.telemetryTrace=new kt(undefined,undefined,undefined,t),r.session=new mt),r.getSessionId=function(){var e=r.session;return e&&C(e.id)?e.id:(e=(r.sessionManager||{}).automaticSession)&&C(e.id)?e.id:null},r.applySessionContext=function(e,n){I(a(e.ext,pt),"sesId",r.getSessionId(),C)},r.applyOperatingSystemContxt=function(e,n){I(e.ext,vt,r.os)},r.applyApplicationContext=function(e,n){var t=r.application;t&&(I(e=a(e,Mt),ht.applicationVersion,t.ver,C),I(e,ht.applicationBuild,t.build,C))},r.applyDeviceContext=function(e,n){var t=r.device;t&&(I(e=a(a(e,bt),ft),"localId",t.id,C),I(e,"ip",t.ip,C),I(e,"model",t.model,C),I(e,"deviceClass",t.deviceClass,C))},r.applyInternalContext=function(e,n){var t,o=r.internal;o&&(I(t=a(e,Mt),ht.internalAgentVersion,o.agentVersion,C),I(t,ht.internalSdkVersion,o.sdkVersion,C),e.baseType!==Ke.dataType&&e.baseType!==Qn.dataType||(I(t,ht.internalSnippet,o.snippetVer,C),I(t,ht.internalSdkSrc,o.sdkSrc,C)))},r.applyLocationContext=function(e,n){var t=o.location;t&&I(a(e,Mt,[]),ht.locationIp,t.ip,C)},r.applyOperationContext=function(e,n){var t=r.telemetryTrace;t&&(I(e=a(a(e,bt),dt,{traceID:undefined,parentID:undefined}),"traceID",t.traceID,C),I(e,"name",t.name,C),I(e,"parentID",t.parentID,C))},r.applyWebContext=function(e,n){var t=o.web;t&&I(a(e,bt),gt,t)},r.applyUserContext=function(e,n){var t=r.user;t&&(I(a(e,Mt,[]),ht.userAccountId,t.accountId,C),I(e=a(a(e,bt),lt),"id",t.id,C),I(e,"authId",t.authenticatedId,C))},r.cleanUp=function(e,n){e=e.ext;e&&(Pt(e,ft),Pt(e,lt),Pt(e,gt),Pt(e,vt),Pt(e,pt),Pt(e,dt))}})},oe=(N(Dt,Lt=l),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",X(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||{},pe(e,function(e,n){l[e]=function(){return i.getConfig(a,e,n())}}),s.context=new Rt(n,l),r=null,me(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;g(e)||(n=s._getTelCtx(n),e.name===Qn.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,a(o=e,"tags",[]),a(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 Ke(v.SendBrowserInfoOnUserInit,(Fe()||{}).userAgent||""),n.diagLog().logInternalMessage(p.CRITICAL,o)),s.processNext(e,n))}}),e}t.PropertiesPlugin=oe,t.Session=mt,t.SessionManager=Ct,t.TelemetryContext=Rt,t.TelemetryTrace=kt;e=t,n="__esModule",rt={value:!0},it=Object.defineProperty;if(it)try{return void it(e,n,rt)}catch(_t){}typeof rt.value!==undefined&&(e[n]=rt.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