@microsoft/applicationinsights-properties-js 2.8.0-nightly.2202-06 → 2.8.0-nightly.2204-04
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/browser/applicationinsights-properties-js.integrity.json +9 -9
- package/browser/applicationinsights-properties-js.js +949 -471
- package/browser/applicationinsights-properties-js.js.map +1 -1
- package/browser/applicationinsights-properties-js.min.js +2 -2
- package/browser/applicationinsights-properties-js.min.js.map +1 -1
- package/dist/applicationinsights-properties-js.api.json +110 -56
- package/dist/applicationinsights-properties-js.d.ts +1 -1
- package/dist/applicationinsights-properties-js.js +949 -471
- package/dist/applicationinsights-properties-js.js.map +1 -1
- package/dist/applicationinsights-properties-js.min.js +2 -2
- package/dist/applicationinsights-properties-js.min.js.map +1 -1
- package/dist/applicationinsights-properties-js.rollup.d.ts +1 -1
- package/dist-esm/Context/Application.js +1 -1
- package/dist-esm/Context/Device.js +1 -1
- package/dist-esm/Context/Internal.js +2 -2
- package/dist-esm/Context/Internal.js.map +1 -1
- package/dist-esm/Context/Location.js +1 -1
- package/dist-esm/Context/Session.js +1 -1
- package/dist-esm/Context/TelemetryTrace.js +1 -1
- package/dist-esm/Context/User.js +1 -1
- package/dist-esm/Context/User.js.map +1 -1
- package/dist-esm/Interfaces/IPropTelemetryContext.js +1 -1
- package/dist-esm/Interfaces/ITelemetryConfig.js +1 -1
- package/dist-esm/PropertiesPlugin.js +1 -1
- package/dist-esm/TelemetryContext.js +1 -1
- package/dist-esm/applicationinsights-properties-js.js +1 -1
- package/package.json +4 -4
- package/src/Context/Internal.ts +1 -1
- package/src/Context/Session.ts +2 -2
- package/src/Context/User.ts +1 -1
- package/src/PropertiesPlugin.ts +1 -1
- package/src/TelemetryContext.ts +1 -1
- package/types/Context/User.d.ts +5 -5
- package/types/tsdoc-metadata.json +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* Application Insights JavaScript SDK - Properties Plugin, 2.8.0-nightly.
|
|
2
|
+
* Application Insights JavaScript SDK - Properties Plugin, 2.8.0-nightly.2204-04
|
|
3
3
|
* Copyright (c) Microsoft and contributors. All rights reserved.
|
|
4
4
|
*/
|
|
5
|
-
var e=this,n=function(n){"use strict";var s="function",u="object",r="undefined",o="prototype",i="hasOwnProperty",t=Object,l=t[o],f=t.create,d=t.defineProperty,y=l[i],x=null;function S(e){return void 0===e&&(e=!0),x&&e||(typeof globalThis!==r&&globalThis&&(x=globalThis),typeof self!==r&&self&&(x=self),typeof window!==r&&window&&(x=window),typeof global!==r&&global&&(x=global)),x}function w(e){throw new TypeError(e)}(S()||{}).Symbol,(S()||{}).Reflect;var T=function(e,n){return(T=t.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var t in n)n[i](t)&&(e[t]=n[t])})(e,n)};function N(e,n){function t(){this.constructor=e}typeof n!==s&&null!==n&&w("Class extends value "+n+" is not a constructor or null"),T(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&&w("Object prototype may only be an Object:"+e),t[o]=e,new t}(n):(t[o]=n[o],new t)}var A="constructor",k="prototype",b="function",M="_dynInstFuncs",P="_isDynProxy",L="_dynClass",R="_dynInstChk",D=R,E="_dfOpts",U="_unknown_",F="__proto__",_="useBaseInst",O="setInstFuncs",B=Object,V=B.getPrototypeOf,j=0;function W(e,n){return e&&B[k].hasOwnProperty.call(e,n)}function q(e){return e&&(e===B[k]||e===Array[k])}function G(e){return q(e)||e===Function[k]}function K(e){if(e){if(V)return V(e);e=e[F]||e[k]||(e[A]?e[A][k]:null);if(e)return e}return null}function z(e,n){var t=[],o=B.getOwnPropertyNames;if(o)t=o(e);else for(var r in e)"string"==typeof r&&W(e,r)&&t.push(r);if(t&&0<t.length)for(var i=0;i<t.length;i++)n(t[i])}function H(e,n,t){return n!==A&&typeof e[n]===b&&(t||W(e,n))}function J(e){throw new TypeError("DynamicProto: "+e)}function Z(e,n){for(var t=e.length-1;0<=t;t--)if(e[t]===n)return 1}function X(e,n){return W(e,k)?e.name||n||U:((e||{})[A]||{}).name||n||U}function Y(e,o,n,t){W(e,k)||J("theClass is an invalid class definition.");var c,r,i,a,f,d,s=e[k],u=(function(e){if(V)for(var n=[],t=K(o);t&&!G(t)&&!Z(n,t);){if(t===e)return 1;n.push(t),t=K(t)}}(s)||J("["+X(e)+"] is not in class hierarchy of ["+X(o)+"]"),null),e=(W(s,L)?u=s[L]:(u="_dynCls$"+X(e,"_")+"$"+j,j++,s[L]=u),Y[E]),l=!!e[_],g=(l&&t&&t[_]!==undefined&&(l=!!t[_]),r={},z(c=o,function(e){!r[e]&&H(c,e,!1)&&(r[e]=c[e])}),r),l=(n(o,function(e,n,t,i){function o(e,n,t){var o,r=n[t];return r[P]&&i&&!1!==(o=e[M]||{})[D]&&(r=(o[n[L]]||{})[t]||r),function(){return r.apply(e,arguments)}}for(var r={},a=(z(t,function(e){r[e]=o(n,t,e)}),K(e)),s=[];a&&!G(a)&&!Z(s,a);)z(a,function(e){!r[e]&&H(a,e,!V)&&(r[e]=o(n,a,e))}),s.push(a),a=K(a);return r}(s,o,g,l)),!!V&&!!e[O]);i=s,n=u,a=o,f=g,e=!1!==(l=l&&t?!!t[O]:l),q(i)||(s=a[M]=a[M]||{},d=s[n]=s[n]||{},!1!==s[D]&&(s[D]=!!e),z(a,function(e){var t,o,r;H(a,e,!1)&&a[e]!==f[e]&&(d[e]=a[e],delete a[e],W(i,e)&&(!i[e]||i[e][P])||(i[e]=(t=i,o=e,(r=function(){var e,n;return(function(e,n,t,c){var o=null;if(e&&W(t,L)){var r=e[M]||{};if((o=(r[t[L]]||{})[n])||J("Missing ["+n+"] "+b),!o[R]&&!1!==r[D]){for(var i=!W(e,n),a=K(e),s=[];i&&a&&!G(a)&&!Z(s,a);){var u=a[n];if(u){i=u===c;break}s.push(a),a=K(a)}try{i&&(e[n]=o),o[R]=1}catch(l){r[D]=!1}}}return o}(this,o,t,r)||(typeof(n=(n=t[e=o])===r?K(t)[e]:n)!==b&&J("["+e+"] is not a "+b),n)).apply(this,arguments)})[P]=1,r)))}))}Y[E]={setInstFuncs:!0,useBaseInst:!0},(e=p=p||{})[e.CRITICAL=1]="CRITICAL",e[e.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},$="toISOString",Q="endsWith",ee="trim",e="toString",ne=d,te=t.keys,d=String[o],oe=d[ee],re=d[Q],ie=Date[o][$],d=Array.isArray,ae=l[e];function se(e){return e===undefined||typeof e===r}function g(e){return null===e||se(e)}function ue(e){return!g(e)}function h(e){return!(!e||typeof e!==s)}function le(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))}y[e].call(t);var ce=d||function(e){return!(!e||"[object Array]"!==ae.call(e))};function C(e){return"string"==typeof e}function fe(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 de(e){return e&&(oe&&e[ee]?e[ee]():e.replace?e.replace(/^\s+|\s+$/g,""):e)}var ge=!{toString:null}.propertyIsEnumerable("toString"),pe=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"];function ve(){var e=Date;return e.now?e.now():(new e).getTime()}function he(e){return e&&"[object Error]"===ae.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=se(t)?{}:t,e[n]=o):o=se(t)?{}:t,o}function me(e){return!!e}var Ce="window",Ie="navigator",ye="location",xe="JSON",Se="msie",we="trident/",Te=null,Ne=null,Ae=!1;function ke(e){var n=S();return n&&n[e]?n[e]:e===Ce&&be()?window:null}function be(){return typeof window===u&&window}function Me(){return typeof navigator===u&&navigator?navigator:ke(Ie)}function Pe(e){if(e&&Ae){e=ke("__mockLocation");if(e)return e}return typeof location===u&&location?location:ke(ye)}function Le(){return typeof JSON===u&&JSON||null!==ke(xe)}function Re(){return Le()?JSON||ke(xe):null}function De(){var e=Me();return!e||e.userAgent===Ne&&null!==Te||(e=((Ne=e.userAgent)||"").toLowerCase(),Te=m(e,Se)||m(e,we)),Te}function Ee(e){var n=Object[o].toString.call(e),t="";return"[object Error]"===n?t="{ stack: '"+e.stack+"', message: '"+e.message+"', name: '"+e.name+"'":Le()&&(t=Re().stringify(e)),n+t}var Ue=null;function Fe(e){return e?'"'+e.replace(/\"/g,"")+'"':""}function _e(e,n){var t,o=typeof console!==r?console:ke("console");o&&(t="log",h(o[t=o[e]?e:t])&&o[t](n))}Be.dataType="MessageData";var Oe=Be;function Be(e,n,t,o){void 0===t&&(t=!1),this.messageId=e,this.message=(t?"AI: ":"AI (Internal): ")+e;t="",Le()&&(t=Re().stringify(o)),e=(n?" message:"+Fe(n):"")+(o?" props:"+Fe(t):"");this.message+=e}function Ve(e,n){return(e||{}).logger||new je(n)}var je=function Tt(r){this.identifier="DiagnosticLogger",this.queue=[];var s=0,u={};Y(Tt,this,function(i){function e(e,n){e=r[e];return g(e)?n:e}function a(e,n){var t,o=(t=(t=Ue)||!0===r.disableDbgExt?t:Ue||(o=ke("Microsoft"),Ue=o?o.ApplicationInsights:Ue))?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 Oe(n,t,r=void 0!==r&&r,o);if(i.enableDebugExceptions())throw n;t=e===p.CRITICAL?"errorToConsole":"warnToConsole";se(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){_e("warn",e),a("warning",e)},i.errorToConsole=function(e){_e("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 Oe(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))))}})},We=(qe.ParentContextKey="parent",qe.ChildrenContextKey="childEvts",qe);function qe(e,r,n){var o,i=this,a=!1;i.start=ve(),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===qe.ParentContextKey||e===qe.ChildrenContextKey?i:i.ctx||{})[e]:null},i.setCtx=function(e,n){e&&(e===qe.ParentContextKey?(i[e]||(i.isChildEvt=function(){return!0}),i[e]=n):e===qe.ChildrenContextKey?i[e]=n:(i.ctx=i.ctx||{})[e]=n)},i.complete=function(){var e=0,n=i.getCtx(qe.ChildrenContextKey);if(ce(n))for(var t=0;t<n.length;t++){var o=n[t];o&&(e+=o.time)}i.time=ve()-i.start,i.exTime=i.time-e,i.complete=function(){},!a&&h(r)&&(i.payload=r())}}var Ge="CoreUtils.doPerf";function Ke(e,n,t,o,r){if(e)if(e=h(e.getPerfMgr)?e.getPerfMgr():e){var i,a=void 0,s=e.getCtx(Ge);try{if(a=e.create(n(),o,r))return s&&a.setCtx&&(a.setCtx(We.ParentContextKey,s),s.getCtx&&s.setCtx&&((i=s.getCtx(We.ChildrenContextKey))||(i=[],s.setCtx(We.ChildrenContextKey,i)),i.push(a))),e.setCtx(Ge,a),t(a)}catch(u){a&&a.setCtx&&a.setCtx("exception",u)}finally{a&&e.fire(a),e.setCtx(Ge,s)}}return t()}var ze=function(r,n){var i=this,a=null,s=h(r.processTelemetry),u=h(r.setNextPlugin);i._hasRun=!1,i.getPlugin=function(){return r},i.getNext=function(){return a},i.setNext=function(e){a=e},i.processTelemetry=function(t,o){o=o||n;var e=r?r.identifier:"TelemetryPluginChain";Ke(o?o.core():null,function(){return e+":processTelemetry"},function(){if(r&&s){i._hasRun=!0;try{o.setNext(a),u&&r.setNextPlugin(a),a&&(a._hasRun=!1),r.processTelemetry(t,o)}catch(n){var e=a&&a._hasRun;a&&e||o.diagLog().throwInternal(p.CRITICAL,v.PluginException,"Plugin ["+r.identifier+"] failed during processTelemetry - "+Ee(n)),a&&!e&&a.processTelemetry(t,o)}}else a&&(i._hasRun=!0,a.processTelemetry(t,o))},function(){return{item:t}},!t.sync)}};function He(e,n){var t=[];if(e&&0<e.length)for(var o=null,r=0;r<e.length;r++){var i=e[r];i&&h(i.processTelemetry)&&(i=new ze(i,n),t.push(i),o&&o.setNext(i),o=i)}return 0<t.length?t[0]:null}var Je=function Nt(e,r,t,n){var o,i,a,s,u=this,l=null;null!==n&&(e&&h(e.getPlugin)?l=function(e,n,t){var o=[],r=!t;if(e)for(;e;){var i=e.getPlugin();!r&&i!==t||(r=!0,o.push(i)),e=e.getNext()}return r||o.push(t),He(o,n)}(e,u,n||e.getPlugin()):n?(o=u,a=e,s=!1,(i=n)&&e&&(a=[],fe(e,function(e){!s&&e!==i||(s=!0,a.push(e))})),i&&!s&&(a=a||[]).push(i),l=He(a,o)):se(n)&&(l=He(e,u))),u.core=function(){return t},u.diagLog=function(){return Ve(t,r)},u.getCfg=function(){return r},u.getExtCfg=function(e,n){var t,o;return void 0===n&&(n={}),!r||(o=r.extensionConfig)&&e&&(t=o[e]),t||n},u.getConfig=function(e,n,t){void 0===t&&(t=!1);var o,e=u.getExtCfg(e,null);return e&&!g(e[n])?o=e[n]:r&&!g(r[n])&&(o=r[n]),g(o)?t:o},u.hasNext=function(){return null!=l},u.getNext=function(){return l},u.setNext=function(e){l=e},u.processNext=function(e){var n=l;n&&(l=n.getNext(),n.processTelemetry(e,u))},u.createNew=function(e,n){return new Nt((e=void 0===e?null:e)||l,r,t,n)}},Ze="getPlugin",l=(Xe.prototype.initialize=function(e,n,t,o){this._baseTelInit(e,n,t,o)},Xe);function Xe(){var i=this,a=!1,s=null,u=null;i.core=null,i.diagLog=function(e){return i._getTelCtx(e).diagLog()},i.isInitialized=function(){return a},i.setInitialized=function(e){a=e},i.setNextPlugin=function(e){u=e},i.processNext=function(e,n){n?n.processNext(e):u&&h(u.processTelemetry)&&u.processTelemetry(e,null)},i._getTelCtx=function(e){var n,e=e=void 0===e?null:e;return e||(n=s||new Je(null,{},i.core),e=u&&u[Ze]?n.createNew(null,u[Ze]):n.createNew(null,u)),e},i._baseTelInit=function(e,n,t,o){e&&I(e,"extensionConfig",[],null,g),!o&&n&&(o=n.getProcessTelContext().getNext());var r=u;u&&u[Ze]&&(r=u[Ze]()),i.core=n,s=new Je(o,e,n,r),a=!0}}var Ye="toGMTString",$e="toUTCString",Qe="cookie",en="expires",nn="enabled",tn="isCookieUseDisabled",on="disableCookiesUsage",rn="_ckMgr",an="",sn=null,un=null,ln=null,cn=typeof document===u&&document?document:ke("document"),fn={},dn={};function gn(e){return!e||e.isEnabled()}function pn(e,n){var t,o;return e?t=e.getCookieMgr():n&&(t=n.cookieCfg[rn]||vn(n)),t||(e=(e||{}).logger,(o=vn[rn]||dn[rn])||(o=vn[rn]=vn(n,e),dn[rn]=o),t=o),t}function vn(e,r){I(t=(e=e||dn).cookieCfg=e.cookieCfg||{},"domain",e.cookieDomain,ue,g),I(t,"path",e.cookiePath||"/",null,g),g(t[nn])&&(n=void 0,se(e[tn])||(n=!e[tn]),se(e[on])||(n=!e[on]),t[nn]=n);var n,t,l=t,c=l.path||"/",f=l.domain,o=!1!==l[nn],d={isEnabled:function(){var e=o&&hn(r),n=dn[rn];return e&&n&&d!==n?gn(n):e},setEnabled:function(e){o=!1!==e},set:function(e,n,t,o,r){var i,a,s,u=!1;return gn(d)&&(i={},-1!=(s=(a=de(n||an)).indexOf(";"))&&(a=de(n.substring(0,s)),i=mn(n.substring(1+s))),I(i,"domain",o||f,me,se),g(t)||(s=De(),!se(i[en])||0<(n=ve()+1e3*t)&&((o=new Date).setTime(n),I(i,en,Cn(o,s?Ye:$e)||Cn(o,s?Ye:$e)||an,me)),s||I(i,"max-age",an+t,null,se)),(n=Pe())&&"https:"===n.protocol&&(I(i,"secure",null,null,se),(un=null===un?!(C(o=(Me()||{}).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(re)return e[Q](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"))):un)&&I(i,"SameSite","None",null,se)),I(i,"path",r||c,null,se),(l.setCookie||yn)(e,In(a,i)),u=!0),u},get:function(e){var n=an;return gn(d)?(l.getCookie||function(e){var n,t=an;return cn&&(n=cn[Qe]||an,ln!==n&&(fn=mn(n),ln=n),t=de(fn[e]||an)),t})(e):n},del:function(e,n){return!!gn(d)&&d.purge(e,n)},purge:function(e,n){var t,o=!1;return hn(r)&&((t={}).path=n||"/",t[en]="Thu, 01 Jan 1970 00:00:01 GMT",n=t,De()||(n["max-age"]="0"),(l.delCookie||yn)(e,In(an,n)),o=!0),o}};return d[rn]=d}function hn(e){if(null===sn){sn=!1;try{sn=(cn||{})[Qe]!==undefined}catch(n){e&&e.throwInternal(p.WARNING,v.CannotAccessCookie,"Cannot access document.cookie - "+he(n),{exception:Ee(n)})}}return sn}function mn(e){var t={};return e&&e.length&&fe(de(e).split(";"),function(e){var n;(e=de(e||an))&&(-1==(n=e.indexOf("="))?t[e]=null:t[de(e.substring(0,n))]=de(e.substring(1+n)))}),t}function Cn(e,n){return h(e[n])?e[n]():null}function In(e,n){var t=e||an;return le(n,function(e,n){t+="; "+e+(g(n)?an:"="+n)}),t}function yn(e,n){cn&&(cn[Qe]=e+"="+n)}var xn=4294967296,Sn=4294967295,wn=!1,Tn=123456789,Nn=987654321;function An(e){var n=ke("crypto")||ke("msCrypto"),n=n&&n.getRandomValues?n.getRandomValues(new Uint32Array(1))[0]&Sn:De()?(wn||function(){try{var e=2147483647&ve();(n=(Math.random()*xn^e)+e)<0&&(n>>>=0),Tn=123456789+n&Sn,Nn=987654321-n&Sn,wn=!0}catch(t){}var n}(),n=((Nn=36969*(65535&Nn)+(Nn>>16)&Sn)<<16)+(65535&(Tn=18e3*(65535&Tn)+(Tn>>16)&Sn))>>>0&Sn|0,(n>>>=0)&Sn):Math.floor(xn*Math.random()|0);return e||(n>>>=0),n}function kn(e){void 0===e&&(e=22);for(var n=An()>>>0,t=0,o="";o.length<e;)o+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"[0|63&n]||"",n>>>=6,5==++t&&(n=(An()<<2&4294967295|3&n)>>>0,t=0);return o}function bn(e,n,t){var o,r,i=n.length,a=(e=e,(n=n)&&150<(n=de(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 Mn(e,n,t){var o;return void 0===t&&(t=1024),n&&(t=t||1024,(n=de(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 Pn(o,e){var r;return e&&(r={},le(e,function(e,n){if(n&&typeof n===u&&Le())try{n=Re().stringify(n)}catch(t){o&&o.throwInternal(p.WARNING,v.CannotSerializeObjectNonSerializable,"custom property is not valid",{exception:t},!0)}n=Mn(o,n,8192),e=bn(o,e,r),r[e]=n}),e=r),e}function Ln(e,n,t,o){var r;return n&&(n=de(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}(e=Rn=Rn||{})[e.LocalStorage=0]="LocalStorage",e[e.SessionStorage=1]="SessionStorage";var Rn,Dn,En=undefined;function Un(){return _n()?Fn(Rn.LocalStorage):null}function Fn(e){try{if(g(S()))return null;var n=new Date,t=ke(e===Rn.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 _n(){return En=En===undefined?!!Fn(Rn.LocalStorage):En}function On(e,n){var t=Un();if(null!==t)try{return t.getItem(n)}catch(o){En=!1,e.throwInternal(p.WARNING,v.BrowserCannotReadLocalStorage,"Browser failed read of local storage. "+he(o),{exception:Ee(o)})}return null}function Bn(e,n,t){var o=Un();if(null!==o)try{return o.setItem(n,t),1}catch(r){En=!1,e.throwInternal(p.WARNING,v.BrowserCannotWriteLocalStorage,"Browser failed write to local storage. "+he(r),{exception:Ee(r)})}}function Vn(e,n){var t=Un();if(null!==t)try{return t.removeItem(n),1}catch(o){En=!1,e.throwInternal(p.WARNING,v.BrowserFailedRemovalFromLocalStorage,"Browser failed removal of local storage item. "+he(o),{exception:Ee(o)})}}function jn(){var e=Dn.call(this)||this;return e.ver=2,e.properties={},e.measurements={},e}N(jn,Dn=function(){this.ver=2,this.properties={},this.measurements={}}),N(Gn,Wn=jn),Gn.envelopeType="Microsoft.ApplicationInsights.{0}.Pageview",Gn.dataType="PageviewData";var Wn,qn=Gn;function Gn(e,n,t,o,r,c,i){var a,s,u,l=Wn.call(this)||this;return l.aiDataContract={ver:1,name:0,url:0,duration:0,properties:0,measurements:0,id:0},l.id=i&&Ln(e,i,128,v.IdTooLong).toString(),l.url=Ln(e,t,2048,v.UrlTooLong),l.name=Mn(e,n)||"not_specified",isNaN(o)||(l.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)),l.properties=Pn(e,r),l.measurements=(s=e,(i=c)&&(u={},le(i,function(e,n){e=bn(s,e,u),u[e]=n}),i=u),i),l}function Kn(e){var n="ai."+e+".";return function(e){return n+e}}var zn,Hn,d=Kn("application"),e=Kn("device"),Jn=Kn("location"),Zn=Kn("operation"),Xn=Kn("session"),Yn=Kn("user"),$n=Kn("cloud"),Qn=Kn("internal");function et(){return zn.call(this)||this}Hn={applicationVersion:d("ver"),applicationBuild:d("build"),applicationTypeId:d("typeId"),applicationId:d("applicationId"),applicationLayer:d("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:Jn("ip"),locationCountry:Jn("country"),locationProvince:Jn("province"),locationCity:Jn("city"),operationId:Zn("id"),operationName:Zn("name"),operationParentId:Zn("parentId"),operationRootId:Zn("rootId"),operationSyntheticSource:Zn("syntheticSource"),operationCorrelationVector:Zn("correlationVector"),sessionId:Xn("id"),sessionIsFirst:Xn("isFirst"),sessionIsNew:Xn("isNew"),userAccountAcquisitionDate:Yn("accountAcquisitionDate"),userAccountId:Yn("accountId"),userAgent:Yn("userAgent"),userId:Yn("id"),userStoreRegion:Yn("storeRegion"),userAuthUserId:Yn("authUserId"),userAnonymousUserAcquisitionDate:Yn("anonUserAcquisitionDate"),userAuthenticatedUserAcquisitionDate:Yn("authUserAcquisitionDate"),cloudName:$n("name"),cloudRole:$n("role"),cloudRoleVer:$n("roleVer"),cloudRoleInstance:$n("roleInstance"),cloudEnvironment:$n("environment"),cloudLocation:$n("location"),cloudDeploymentUnit:$n("deploymentUnit"),internalNodeName:Qn("nodeName"),internalSdkVersion:Qn("sdkVersion"),internalAgentVersion:Qn("agentVersion"),internalSnippet:Qn("snippet"),internalSdkSrc:Qn("sdkSrc")},N(et,zn=function(){var t=this;le(Hn,function(e,n){t[e]=n})});var nt="user",tt="device",ot="trace",rt="web",it="app",at="os",st=new et,ut=function(){},lt=(ct.acquisitionSpan=864e5,ct.renewalSpan=18e5,ct.cookieUpdateInterval=6e4,ct);function ct(n,e){var c,f,d=Ve(e),g=pn(e);Y(ct,this,function(s){h((n=n||{}).sessionExpirationMs)||(n.sessionExpirationMs=function(){return ct.acquisitionSpan}),h(n.sessionRenewalMs)||(n.sessionRenewalMs=function(){return ct.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+" - "+he(s),{exception:Ee(s)})}return t}function l(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(c(),e.join("|"),0<o.sessionExpirationMs()?t:null,i),f=n}c=function(){return"ai_session"+e},s.automaticSession=new ut,s.update=function(){var e,n,t,o=ve(),r=!1,i=s.automaticSession,a=(i.id||(n=i,t=!1,(a=g.get(c()))&&h(a.split)?t=u(n,a):(a=On(d,c()))&&(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)||kn,s.automaticSession.id=t(n.idLength?n.idLength():22),s.automaticSession.acquisitionDate=a,l(s.automaticSession,a),_n()||d.throwInternal(p.WARNING,v.BrowserDoesNotSupportLocalStorage,"Browser does not support local storage. Session durations will be inaccurate.")):(!f||ct.cookieUpdateInterval<o-f)&&l(i,o)},s.backup=function(){var e=s.automaticSession,n=e.id,t=e.acquisitionDate,e=e.renewalDate;Bn(d,c(),[n,t,e].join("|"))}})}var ft=function(){},dt=function(){this.id="browser",this.deviceClass="Browser"},gt=function(e){this.sdkVersion=(e.sdkExtension&&e.sdkExtension()?e.sdkExtension()+"_":"")+"javascript:2.8.0-nightly.2202-06"};function pt(e){return"string"==typeof e&&e&&!e.match(/,|;|=| |\|/)}c.cookieSeparator="|",c.userCookieName="ai_user",c.authUserCookieName="ai_authUser";var vt=c;function c(a,e){this.isNewUser=!1,this.isUserCookieSet=!1;var s,u=Ve(e),l=pn(e);Y(c,this,function(o){o.config=a;var e=o.config.userCookiePostfix&&o.config.userCookiePostfix()?o.config.userCookiePostfix():"",n=(s=function(){return c.userCookieName+e},l.get(s()));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(ie)return e[$]();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=l.set(s(),e,31536e3)}n&&(o.isNewUser=!1,0<(n=n.split(c.cookieSeparator)).length&&(o.id=n[0],o.isUserCookieSet=!!o.id)),o.id||(o.id=t(),i(r(o.id).join(c.cookieSeparator)),n=a.namePrefix&&a.namePrefix()?a.namePrefix()+"ai_session":"ai_session",Vn(u,n)),o.accountId=a.accountId?a.accountId():undefined;var n=l.get(c.authUserCookieName);n&&((n=(n=decodeURI(n)).split(c.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),!pt(e)||n&&!pt(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(c.cookieSeparator)),t&&l.set(c.authUserCookieName,encodeURI(e)))},o.clearAuthenticatedUserContext=function(){o.authenticatedId=null,o.accountId=null,l.del(c.authUserCookieName)},o.update=function(e){o.id===e&&o.isUserCookieSet||i(r(e||t()).join(c.cookieSeparator))}})}var ht=function(){},mt=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=An())]+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&An())|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,Pe());!t&&e&&e.pathname&&(r.name=e.pathname),r.name=Mn(o,r.name)},Ct="ext",It="tags";function yt(e,n){e&&e[n]&&0===function(e){var n=typeof e;if(n===s||n===u&&null!==e||w("objKeys called on non-object"),!ge&&te)return te(e);var t,o=[];for(t in e)e&&y.call(e,t)&&o.push(t);if(ge)for(var r=pe.length,i=0;i<r;i++)e&&y.call(e,pe[i])&&o.push(pe[i]);return o}(e[n]).length&&delete e[n]}var xt,St=function At(e,n){var o=this,t=e.logger;this.appId=function(){return null},this.getSessionId=function(){return null},Y(At,this,function(r){r.application=new ft,r.internal=new gt(n),be()&&(r.sessionManager=new lt(n,e),r.device=new dt,r.location=new ht,r.user=new vt(n,e),r.telemetryTrace=new mt(undefined,undefined,undefined,t),r.session=new ut),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,it),"sesId",r.getSessionId(),C)},r.applyOperatingSystemContxt=function(e,n){I(e.ext,at,r.os)},r.applyApplicationContext=function(e,n){var t=r.application;t&&(I(e=a(e,It),st.applicationVersion,t.ver,C),I(e,st.applicationBuild,t.build,C))},r.applyDeviceContext=function(e,n){var t=r.device;t&&(I(e=a(a(e,Ct),tt),"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,It),st.internalAgentVersion,o.agentVersion,C),I(t,st.internalSdkVersion,o.sdkVersion,C),e.baseType!==Oe.dataType&&e.baseType!==qn.dataType||(I(t,st.internalSnippet,o.snippetVer,C),I(t,st.internalSdkSrc,o.sdkSrc,C)))},r.applyLocationContext=function(e,n){var t=o.location;t&&I(a(e,It,[]),st.locationIp,t.ip,C)},r.applyOperationContext=function(e,n){var t=r.telemetryTrace;t&&(I(e=a(a(e,Ct),ot,{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,Ct),rt,t)},r.applyUserContext=function(e,n){var t=r.user;t&&(I(a(e,It,[]),st.userAccountId,t.accountId,C),I(e=a(a(e,Ct),nt),"id",t.id,C),I(e,"authId",t.authenticatedId,C))},r.cleanUp=function(e,n){e=e.ext;e&&(yt(e,tt),yt(e,nt),yt(e,rt),yt(e,at),yt(e,it),yt(e,ot))}})};function wt(){var l,c,e=xt.call(this)||this;return e.priority=110,e.identifier="AppInsightsPropertiesPlugin",Y(wt,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=wt.getDefaultConfig();c=c||{},le(e,function(e,n){c[e]=function(){return i.getConfig(a,e,n())}}),s.context=new St(n,c),r=null,fe(t,function(e){if("AppInsightsChannelPlugin"===e.identifier)return r=e,-1}),l=r,s.context.appId=function(){return l?l._appId:null},s._extConfig=c},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 Oe(v.SendBrowserInfoOnUserInit,(Me()||{}).userAgent||""),n.diagLog().logInternalMessage(p.CRITICAL,o)),s.processNext(e,n))}}),e}N(wt,xt=l),wt.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}}},n.PropertiesPlugin=wt,n.Session=ut,n.SessionManager=lt,n.TelemetryContext=St,n.TelemetryTrace=mt;d=n,e="__esModule",Jn={value:!0},Zn=Object.defineProperty;if(Zn)try{return void Zn(d,e,Jn)}catch(kt){}typeof Jn.value!==undefined&&(d[e]=Jn.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(F){"use strict";var R="function",a="object",O="undefined",o="prototype",B="hasOwnProperty",t=Object,e=t[o],V=t.create,n=t.defineProperty,j=e[B],q=null;function W(e){return void 0===e&&(e=!0),q&&e||(typeof globalThis!==O&&globalThis&&(q=globalThis),typeof self!==O&&self&&(q=self),typeof window!==O&&window&&(q=window),typeof global!==O&&global&&(q=global)),q}function K(e){throw new TypeError(e)}(W()||{}).Symbol,(W()||{}).Reflect;var z=function(e,n){return(z=t.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var t in n)n[B](t)&&(e[t]=n[t])})(e,n)};function G(e,n){function t(){this.constructor=e}typeof n!==R&&null!==n&&K("Class extends value "+n+" is not a constructor or null"),z(e,n),e[o]=null===n?function(e){if(V)return V(e);if(null==e)return{};var n=typeof e;function t(){}return n!==a&&n!==R&&K("Object prototype may only be an Object:"+e),t[o]=e,new t}(n):(t[o]=n[o],new t)}var H="constructor",p="prototype",J="function",Z="_dynInstFuncs",$="_isDynProxy",X="_dynClass",Y="_dynInstChk",Q=Y,ee="_dfOpts",ne="_unknown_",te="__proto__",oe="useBaseInst",re="setInstFuncs",ie=Object,ae=ie.getPrototypeOf,ue=0;function v(e,n){return e&&ie[p].hasOwnProperty.call(e,n)}function se(e){return e&&(e===ie[p]||e===Array[p])}function ce(e){return se(e)||e===Function[p]}function h(e){if(e){if(ae)return ae(e);e=e[te]||e[p]||(e[H]?e[H][p]:null);if(e)return e}return null}function le(e,n){var t=[],o=ie.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 fe(e,n,t){return n!==H&&typeof e[n]===J&&(t||v(e,n))}function de(e){throw new TypeError("DynamicProto: "+e)}function ge(e,n){for(var t=e.length-1;0<=t;t--)if(e[t]===n)return 1}function pe(e,n){return v(e,p)?e.name||n||ne:((e||{})[H]||{}).name||n||ne}function m(e,o,n,t){v(e,p)||de("theClass is an invalid class definition.");var r,i,a,u,s,c,l=e[p],f=(function(e){if(ae)for(var n=[],t=h(o);t&&!ce(t)&&!ge(n,t);){if(t===e)return 1;n.push(t),t=h(t)}}(l)||de("["+pe(e)+"] is not in class hierarchy of ["+pe(o)+"]"),null),e=(v(l,X)?f=l[X]:(f="_dynCls$"+pe(e,"_")+"$"+ue,ue++,l[X]=f),m[ee]),d=!!e[oe],g=(d&&t&&t[oe]!==undefined&&(d=!!t[oe]),i={},le(r=o,function(e){!i[e]&&fe(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[$]&&i&&!1!==(o=e[Z]||{})[Q]&&(r=(o[n[X]]||{})[t]||r),function(){return r.apply(e,arguments)}}for(var r={},a=(le(t,function(e){r[e]=o(n,t,e)}),h(e)),u=[];a&&!ce(a)&&!ge(u,a);)le(a,function(e){!r[e]&&fe(a,e,!ae)&&(r[e]=o(n,a,e))}),u.push(a),a=h(a);return r}(l,o,g,d)),!!ae&&!!e[re]);a=l,n=f,u=o,s=g,e=!1!==(d=d&&t?!!t[re]:d),se(a)||(l=u[Z]=u[Z]||{},c=l[n]=l[n]||{},!1!==l[Q]&&(l[Q]=!!e),le(u,function(e){var t,o,r;fe(u,e,!1)&&u[e]!==s[e]&&(c[e]=u[e],delete u[e],v(a,e)&&(!a[e]||a[e][$])||(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[Z]||{};if((r=(i[t[X]]||{})[n])||de("Missing ["+n+"] "+J),!r[Y]&&!1!==i[Q]){for(var a=!v(e,n),u=h(e),s=[];a&&u&&!ce(u)&&!ge(s,u);){var c=u[n];if(c){a=c===o;break}s.push(u),u=h(u)}try{a&&(e[n]=r),r[Y]=1}catch(l){i[Q]=!1}}}return r}(this,o,t,r)||(typeof(n=(n=t[e=o])===r?h(t)[e]:n)!==J&&de("["+e+"] is not a "+J),n)).apply(this,arguments)})[$]=1,r)))}))}m[ee]={setInstFuncs:!0,useBaseInst:!0};var g="",ve="isInitialized",he="teardown",me="core",ye="update",Ce="disabled",xe="_doTeardown",Ie="toISOString",Se="endsWith",we="trim",r="toString",Ne="constructor",Te=n,i=t.freeze,be=t.keys,ke=String[o],Ae=ke[we],Me=ke[Se],Pe=Date[o][Ie],ke=Array.isArray,_e=e[r],Le=j[r],De=Le.call(t),Ue=/-([a-z])/g,Ee=/([^\w\d_$])/g,Fe=/^(\d+[\w\d_$])/,Re=Object.getPrototypeOf;function y(e){return e===undefined||typeof e===O}function C(e){return null===e||y(e)}function Oe(e){return!C(e)}function Be(e){return!(!e||typeof e!==a)}function x(e){return!(!e||typeof e!==R)}function Ve(e){var n=e;return e&&w(e)?(n=(n=e.replace(Ue,function(e,n){return n.toUpperCase()})).replace(Ee,"_")).replace(Fe,function(e,n){return"_"+n}):n}function f(e,n){if(e)for(var t in e)j.call(e,t)&&n.call(e,t,e[t])}function I(e,n){return!(!e||!n||!~e.indexOf(n))}var S=ke||function(e){return!(!e||"[object Array]"!==_e.call(e))};function w(e){return"string"==typeof e}function je(e){return e&&"object"==typeof e&&(!(e=(Re||function(e){if(e){if(Re)return Re(e);e=e.__proto__||e[o]||e[Ne];if(e)return e}return null})(e))||typeof(e=e[Ne]&&j.call(e,Ne)?e[Ne]:e)===R&&Le.call(e)===De)}function qe(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 N(e){return e&&(Ae&&e[we]?e[we]():e.replace?e.replace(/^\s+|\s+$/g,""):e)}var We=!{toString:null}.propertyIsEnumerable("toString"),Ke=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],ze=i||function(e){return e};function Ge(){var e=Date;return e.now?e.now():(new e).getTime()}function He(e){return e&&"[object Error]"===_e.call(e)?e.name:g}function T(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 Je(e){return!!e}function Ze(e){var t={};return f(e,function(e,n){if(t[e]=n,!y(t[n]))throw Error("["+n+"] exists for "+e);t[n]=e}),ze(t)}var $e="window",Xe="navigator",Ye="location",Qe="console",en="JSON",nn="crypto",tn="msCrypto",on="msie",rn="trident/",an=null,un=null,sn=!1;function c(e){var n=W();return n&&n[e]?n[e]:e===$e&&cn()?window:null}function cn(){return typeof window===a&&window}function ln(){return typeof navigator===a&&navigator?navigator:c(Xe)}function fn(e){if(e&&sn){e=c("__mockLocation");if(e)return e}return typeof location===a&&location?location:c(Ye)}function dn(){return typeof JSON===a&&JSON||null!==c(en)}function gn(){return dn()?JSON||c(en):null}function pn(){var e=ln();return!e||e.userAgent===un&&null!==an||(e=((un=e.userAgent)||g).toLowerCase(),an=I(e,on)||I(e,rn)),an}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+"'":dn()&&(t=gn().stringify(e)),n+t}var vn=null;function hn(e){return e?'"'+e.replace(/\"/g,g)+'"':g}function mn(e,n){var t,o=typeof console!==O?console:c(Qe);o&&(t="log",x(o[t=o[e]?e:t])&&o[t](n))}Cn.dataType="MessageData";var yn=Cn;function Cn(e,n,t,o){void 0===t&&(t=!1),this.messageId=e,this.message=(t?"AI: ":"AI (Internal): ")+e;t=g,dn()&&(t=gn().stringify(o)),e=(n?" message:"+hn(n):g)+(o?" props:"+hn(t):g);this.message+=e}function xn(e,n){return(e||{}).logger||new In(n)}var In=function Qt(r){this.identifier="DiagnosticLogger",this.queue=[];var u=0,s={};m(Qt,this,function(i){function e(e,n){e=r[e];return C(e)?n:e}function a(e,n){var t,o=(t=(t=vn)||!0===r.disableDbgExt?t:vn||(o=c("Microsoft"),vn=o?o.ApplicationInsights:vn))?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 yn(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){mn("warn",e),a("warning",e)},i.errorToConsole=function(e){mn("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 yn(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))))}})};function k(e,n,t,o,r,i){void 0===i&&(i=!1),(e||new In).throwInternal(n,t,o,r,i)}u.ParentContextKey="parent",u.ChildrenContextKey="childEvts";var Sn=u;function u(e,r,n){var o,i=this,a=!1;i.start=Ge(),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===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(S(n))for(var t=0;t<n.length;t++){var o=n[t];o&&(e+=o.time)}i.time=Ge()-i.start,i.exTime=i.time-e,i.complete=function(){},!a&&x(r)&&(i.payload=r())}}var wn="CoreUtils.doPerf";function Nn(e,n,t,o,r){if(e)if(e=x(e.getPerfMgr)?e.getPerfMgr():e){var i,a=void 0,u=e.getCtx(wn);try{if(a=e.create(n(),o,r))return u&&a.setCtx&&(a.setCtx(Sn.ParentContextKey,u),u.getCtx&&u.setCtx&&((i=u.getCtx(Sn.ChildrenContextKey))||(i=[],u.setCtx(Sn.ChildrenContextKey,i)),i.push(a))),e.setCtx(wn,a),t(a)}catch(s){a&&a.setCtx&&a.setCtx("exception",s)}finally{a&&e.fire(a),e.setCtx(wn,u)}}t()}var Tn=4294967296,s=4294967295,bn=!1,kn=123456789,An=987654321;function Mn(e){var n,t=0,o=c(nn)||c(tn);if(0===(t=o&&o.getRandomValues?o.getRandomValues(new Uint32Array(1))[0]&s:t)&&pn()){if(!bn)try{var r=2147483647&Ge();(n=(Math.random()*Tn^r)+r)<0&&(n>>>=0),kn=123456789+n&s,An=987654321-n&s,bn=!0}catch(i){}o=((An=36969*(65535&An)+(An>>16)&s)<<16)+(65535&(kn=18e3*(65535&kn)+(kn>>16)&s))>>>0&s|0,t=(o>>>=0)&s}return 0===t&&(t=Math.floor(Tn*Math.random()|0)),e||(t>>>=0),t}function Pn(e){void 0===e&&(e=22);for(var n=Mn()>>>0,t=0,o=g;o.length<e;)o+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"[0|63&n]||"",n>>>=6,5==++t&&(n=(Mn()<<2&4294967295|3&n)>>>0,t=0);return o}var _n=n,e="2.8.0-nightly.2204-04",r="."+Pn(6);function Ln(e){return 1===e.nodeType||9===e.nodeType||!+e.nodeType}var Dn,Un=Dn={id:Ve("_aiData-plugin."+e+0+((_=void 0!==_&&_)?"."+e:"")+r),accept:Ln,get:function(e,n,t,o){var r=e[Dn.id];return r?r[Ve(n)]:(o&&((r=function(e,n){var t=n[e.id];if(!t){t={};try{Ln(n)&&!function(e,n,t){if(_n)try{return _n(e,n,{value:t,enumerable:!1,configurable:!0}),1}catch(o){}}(n,e.id,t)&&(n[e.id]=t)}catch(o){}}return t}(Dn,e))[Ve(n)]=t),t)},kill:function(e,n){if(e&&e[n])try{delete e[n]}catch(t){}}};function En(e){return Un.get(e,"state",{},!0)}var Fn="TelemetryPluginChain",Rn="_hasRun",On="_getTelCtx",Bn=0;function Vn(e,a,t,n){var o=null,r=[],i=(null!==n&&(o=n?function(e,n,t,o){for(;e;){if(e.getPlugin()===o)return e;e=e.getNext()}return qn([o],n,t)}(e,a,t,n):e),{_next:function(){var e,n=o;return o=n?n.getNext():null,n||(e=r)&&0<e.length&&(qe(e,function(e){try{e.func.call(e.self,e.args)}catch(n){k(t.logger,2,73,"Unexpected Exception during onComplete - "+b(n))}}),r=[]),n},ctx:{core:function(){return t},diagLog:function(){return xn(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)?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,u,s,c=e[r],l=S(c),f=Be(c);for(i in c)(l&&i in c||f&&j.call(c,i))&&(a=c[i],u=void 0,o&&a&&((u=S(a))||je(a))&&(s=n[i],u?S(s)||(s=[]):je(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 jn(e,t,o,n){var r=Vn(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 jn((e=S(e=void 0===e?null:e)?qn(e,t,o,n):e)||i.getNext(),t,o,n)},i}function qn(e,n,t,o){var r,i=null,a=!o;return S(e)&&0<e.length&&(r=null,qe(e,function(e){(a=!a&&o===e||a)&&e&&x(e.processTelemetry)&&(e=Wn(e,n,t),i=i||e,r&&r._setNext(e),r=e)})),o&&!i?qn([o],n,t):i}function Wn(s,o,r){var c=null,i=x(s.processTelemetry),a=x(s.setNextPlugin),l=s?s.identifier+"-"+s.priority+"-"+Bn++:"Unknown-0-"+Bn++,u={getPlugin:function(){return s},getNext:function(){return c},processTelemetry:function(t,e){var n;f(e=e||(n=(n=s&&x(s[On])?s[On]():n)||jn(u,o,r)),function(e){if(!s||!i)return!1;var n=En(s);return!n[he]&&!n[Ce]&&(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=En(s),n=s[me]||e.core,!s||n&&n!==o[me]()||e[he]||(e[me]=null,e[he]=!0,e[ve]=!1,s[he]&&!0===s[he](o,r)&&(t=!0))),t},"unload",function(){},r.isAsync)||o.processNext(r)},update:function(o,r){f(o,function(){var e,n,t=!1;return s&&(e=En(s),n=s[me]||e.core,!s||n&&n!==o[me]()||e[he]||s[ye]&&!0===s[ye](o,r)&&(t=!0)),t},"update",function(){},!1)||o.processNext(r)},_id:l,_setNext:function(e){c=e}};function f(t,o,r,e,n){var i=!1,a=s?s.identifier:Fn,u=(u=t[Rn])||(t[Rn]={});return t.setNext(c),s&&Nn(t[me](),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||k(t.diagLog(),1,73,"Plugin ["+s.identifier+"] failed during "+r+" - "+b(n)+", run flags: "+b(u))}},e,n),i}return ze(u)}var Kn="toGMTString",zn="toUTCString",Gn="cookie",Hn="expires",Jn="enabled",Zn="isCookieUseDisabled",$n="disableCookiesUsage",A="_ckMgr",Xn=null,Yn=null,Qn=null,et=typeof document===a&&document?document:c("document"),nt={},tt={};function ot(e){return!e||e.isEnabled()}function rt(e,n){var t,o;return e?t=e.getCookieMgr():n&&(t=n.cookieCfg[A]||it(n)),t||(e=(e||{}).logger,(o=it[A]||tt[A])||(o=it[A]=it(n,e),tt[A]=o),t=o),t}function it(e,r){T(t=(e=e||tt).cookieCfg=e.cookieCfg||{},"domain",e.cookieDomain,Oe,C),T(t,"path",e.cookiePath||"/",null,C),C(t[Jn])&&(n=void 0,y(e[Zn])||(n=!e[Zn]),y(e[$n])||(n=!e[$n]),t[Jn]=n);var n,t,c=t,l=c.path||"/",f=c.domain,o=!1!==c[Jn],d={isEnabled:function(){var e=o&&at(r),n=tt[A];return e&&n&&d!==n?ot(n):e},setEnabled:function(e){o=!1!==e},set:function(e,n,t,o,r){var i,a,u,s=!1;return ot(d)&&(i={},-1!=(u=(a=N(n||g)).indexOf(";"))&&(a=N(n.substring(0,u)),i=ut(n.substring(1+u))),T(i,"domain",o||f,Je,y),C(t)||(u=pn(),y(i[Hn])&&0<(n=Ge()+1e3*t)&&((o=new Date).setTime(n),T(i,Hn,st(o,u?Kn:zn)||st(o,u?Kn:zn)||g,Je)),u||T(i,"max-age",g+t,null,y)),(n=fn())&&"https:"===n.protocol&&(T(i,"secure",null,null,y),(Yn=null===Yn?!(w(o=(ln()||{}).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(Me)return e[Se](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"))):Yn)&&T(i,"SameSite","None",null,y)),T(i,"path",r||l,null,y),(c.setCookie||lt)(e,ct(a,i)),s=!0),s},get:function(e){var n=g;return ot(d)?(c.getCookie||function(e){var n,t=g;return et&&(n=et[Gn]||g,Qn!==n&&(nt=ut(n),Qn=n),t=N(nt[e]||g)),t})(e):n},del:function(e,n){return!!ot(d)&&d.purge(e,n)},purge:function(e,n){var t,o=!1;return at(r)&&((t={}).path=n||"/",t[Hn]="Thu, 01 Jan 1970 00:00:01 GMT",n=t,pn()||(n["max-age"]="0"),(c.delCookie||lt)(e,ct(g,n)),o=!0),o}};return d[A]=d}function at(e){if(null===Xn){Xn=!1;try{Xn=(et||{})[Gn]!==undefined}catch(n){k(e,2,68,"Cannot access document.cookie - "+He(n),{exception:b(n)})}}return Xn}function ut(e){var t={};return e&&e.length&&qe(N(e).split(";"),function(e){var n;(e=N(e||g))&&(-1==(n=e.indexOf("="))?t[e]=null:t[N(e.substring(0,n))]=N(e.substring(1+n)))}),t}function st(e,n){return x(e[n])?e[n]():null}function ct(e,n){var t=e||g;return f(n,function(e,n){t+="; "+e+(C(n)?g:"="+n)}),t}function lt(e,n){et&&(et[Gn]=e+"="+n)}function ft(){var n=[];return{add:function(e){e&&n.push(e)},run:function(t,o){qe(n,function(e){try{e(t,o)}catch(n){k(t.diagLog(),2,73,"Unexpected error calling unload handler - "+b(n))}}),n=[]}}}var M="getPlugin",ke=function eo(){var i,r,c,l,f,a=this;function n(e){var n,e=e=void 0===e?null:e;return e||(n=r||jn(null,{},a.core),e=c&&c[M]?n.createNew(null,c[M]):n.createNew(null,c)),e}function u(e,n,t){e&&T(e,"extensionConfig",[],null,C),!t&&n&&(t=n.getProcessTelContext().getNext());var o=c;c&&c[M]&&(o=c[M]()),a.core=n,r=jn(t,e,n,o)}function d(){i=!1,a.core=null,c=r=null,f=[],l=ft()}d(),m(eo,a,function(s){var e,n,t,o,r;s.initialize=function(e,n,t,o){u(e,n,o),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=Vn(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)?qn(e,t,o,n):e)||i.getNext(),t,o,n)},i}(null,{},s.core,c&&c[M]?c[M]():c),i=n||{reason:0,isAsync:!1},s[xe]&&!0===s[xe](r,i,a)?t=!0:a(),t;function a(){o||(o=!0,l.run(r,n),qe(f,function(e){e.rm()}),f=[],!0===t&&r.processNext(i),d())}},s.update=function(e,n){var t,o,r;if(s.core&&(!e||s.core===e.core()))return o=!1,r=e||function a(e,t,o,n){var r=Vn(e,t,o,n).ctx;return r.processNext=function(n){return r.iterate(function(e){x(e[ye])&&e[ye](r,n)})},r.createNew=function(e,n){return a((e=S(e=void 0===e?null:e)?qn(e,t,o,n):e)||r.getNext(),t,o,n)},r}(null,{},s.core,c&&c[M]?c[M]():c),s._doUpdate&&!0===s._doUpdate(r,n||{reason:0},i)?t=!0:i(),t;function i(){o||(o=!0,u(r.getCfg(),r.core(),r.getNext()))}},s._addHook=function(e){e&&(S(e)?f=f.concat(e):f.push(e))},e="_addUnloadCb",n=function(){return l},void 0===t&&(t=!0),s&&n&&(t||y(s[e]))&&(s[e]=(r=o=null,x(t=n)?o=t:r=t,function(){var e=arguments;if(r=o?o():r)return r.add.apply(r,e)}))}),a.diagLog=function(e){return n(e).diagLog()},a[ve]=function(){return i},a.setInitialized=function(e){i=e},a.setNextPlugin=function(e){c=e},a.processNext=function(e,n){n?n.processNext(e):c&&x(c.processTelemetry)&&c.processTelemetry(e,null)},a._getTelCtx=n},dt=Ze({CRITICAL:1,WARNING:2}),P=Ze({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 gt(e,n,t){var o,r,i=n.length,a=(e=e,(n=n)&&150<(n=N(n.toString())).length&&(r=n.substring(0,150),k(e,2,P.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 pt(e,n,t){var o;return void 0===t&&(t=1024),n&&(t=t||1024,(n=N(n)).toString().length>t&&(o=n.toString().substring(0,t),k(e,2,P.StringValueTooLong,"string value is too long. It has been truncated to "+t+" characters.",{value:n},!0))),o||n}function vt(o,e){var r;return e&&(r={},f(e,function(e,n){if(Be(n)&&dn())try{n=gn().stringify(n)}catch(t){k(o,2,P.CannotSerializeObjectNonSerializable,"custom property is not valid",{exception:t},!0)}n=pt(o,n,8192),e=gt(o,e,r),r[e]=n}),e=r),e}function ht(e,n,t,o){var r;return n&&(n=N(n)).length>t&&(r=n.substring(0,t),k(e,2,o,"input is too long, it has been truncated to "+t+" characters.",{data:n},!0)),r||n}var mt=Ze({LocalStorage:0,SessionStorage:1}),yt=(Ze({AI:0,AI_AND_W3C:1,W3C:2}),undefined);function Ct(){return It()?xt(mt.LocalStorage):null}function xt(e){try{if(C(W()))return null;var n=new Date,t=c(e===mt.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 It(e){return yt=e||yt===undefined?!!xt(mt.LocalStorage):yt}function St(e,n){var t=Ct();if(null!==t)try{return t.getItem(n)}catch(o){yt=!1,k(e,2,P.BrowserCannotReadLocalStorage,"Browser failed read of local storage. "+He(o),{exception:b(o)})}return null}function wt(e,n,t){var o=Ct();if(null!==o)try{o.setItem(n,t)}catch(r){yt=!1,k(e,2,P.BrowserCannotWriteLocalStorage,"Browser failed write to local storage. "+He(r),{exception:b(r)})}}function Nt(e,n){var t=Ct();if(null!==t)try{t.removeItem(n)}catch(o){yt=!1,k(e,2,P.BrowserFailedRemovalFromLocalStorage,"Browser failed removal of local storage item. "+He(o),{exception:b(o)})}}bt.envelopeType="Microsoft.ApplicationInsights.{0}.Pageview",bt.dataType="PageviewData";var Tt=bt;function bt(e,n,t,o,r,i,a){this.aiDataContract={ver:1,name:0,url:0,duration:0,properties:0,measurements:0,id:0};var u,s,c,l=this;l.ver=2,l.id=a&&ht(e,a,128,P.IdTooLong).toString(),l.url=ht(e,t,2048,P.UrlTooLong),l.name=pt(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=vt(e,r),l.measurements=(s=e,(a=i)&&(c={},f(a,function(e,n){e=gt(s,e,c),c[e]=n}),a=c),a)}function l(e){var n="ai."+e+".";return function(e){return n+e}}var kt,At,i=l("application"),n=l("device"),_=l("location"),e=l("operation"),r=l("session"),L=l("user"),Mt=l("cloud"),Pt=l("internal");function _t(){return kt.call(this)||this}At={applicationVersion:i("ver"),applicationBuild:i("build"),applicationTypeId:i("typeId"),applicationId:i("applicationId"),applicationLayer:i("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:_("ip"),locationCountry:_("country"),locationProvince:_("province"),locationCity:_("city"),operationId:e("id"),operationName:e("name"),operationParentId:e("parentId"),operationRootId:e("rootId"),operationSyntheticSource:e("syntheticSource"),operationCorrelationVector:e("correlationVector"),sessionId:r("id"),sessionIsFirst:r("isFirst"),sessionIsNew:r("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:Mt("name"),cloudRole:Mt("role"),cloudRoleVer:Mt("roleVer"),cloudRoleInstance:Mt("roleInstance"),cloudEnvironment:Mt("environment"),cloudLocation:Mt("location"),cloudDeploymentUnit:Mt("deploymentUnit"),internalNodeName:Pt("nodeName"),internalSdkVersion:Pt("sdkVersion"),internalAgentVersion:Pt("agentVersion"),internalSnippet:Pt("snippet"),internalSdkSrc:Pt("sdkSrc")},G(_t,kt=function(){var t=this;f(At,function(e,n){t[e]=n})});var Lt="user",Dt="device",Ut="trace",Et="web",Ft="app",Rt="os",D=new _t,Ot=function(){},Bt=(U.acquisitionSpan=864e5,U.renewalSpan=18e5,U.cookieUpdateInterval=6e4,U);function U(n,e){var l,f,d=xn(e),g=rt(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(dt.WARNING,P.SessionRenewalDateIsZero,"AI session acquisition date is 0"+o):isNaN(a)||a<=0?d.throwInternal(dt.WARNING,P.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(dt.CRITICAL,P.ErrorParsingAISessionCookie,"Error parsing ai_session value ["+(n||"")+"]"+o+" - "+He(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 Ot,u.update=function(){var e,n,t,o=Ge(),r=!1,i=u.automaticSession,a=(i.id||(n=i,t=!1,(a=g.get(l()))&&x(a.split)?t=s(n,a):(a=St(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)||Pn,u.automaticSession.id=t(n.idLength?n.idLength():22),u.automaticSession.acquisitionDate=a,c(u.automaticSession,a),It()||d.throwInternal(dt.WARNING,P.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;wt(d,l(),[n,t,e].join("|"))}})}var Vt=function(){},jt=function(){this.id="browser",this.deviceClass="Browser"},qt=function(e){this.sdkVersion=(e.sdkExtension&&e.sdkExtension()?e.sdkExtension()+"_":"")+"javascript:2.8.0-nightly.2204-04"};function Wt(e){return"string"==typeof e&&e&&!e.match(/,|;|=| |\|/)}E.cookieSeparator="|",E.userCookieName="ai_user",E.authUserCookieName="ai_authUser";var Kt=E;function E(a,e){this.isNewUser=!1,this.isUserCookieSet=!1;var u,s=xn(e),c=rt(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)||Pn)(e.idLength?a.idLength():22)}function r(e){var n=function(e){if(e){if(Pe)return e[Ie]();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",Nt(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),!Wt(e)||n&&!Wt(n)?s.throwInternal(dt.WARNING,P.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 zt=function(){},Gt=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=Mn())]+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&Mn())|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,fn());!t&&e&&e.pathname&&(r.name=e.pathname),r.name=pt(o,r.name)},Ht="ext",Jt="tags";function Zt(e,n){e&&e[n]&&0===function(e){var n=typeof e;if(n===R||n===a&&null!==e||K("objKeys called on non-object"),!We&&be)return be(e);var t,o=[];for(t in e)e&&j.call(e,t)&&o.push(t);if(We)for(var r=Ke.length,i=0;i<r;i++)e&&j.call(e,Ke[i])&&o.push(Ke[i]);return o}(e[n]).length&&delete e[n]}var $t,Xt=function no(e,n){var o=this,t=e.logger;this.appId=function(){return null},this.getSessionId=function(){return null},m(no,this,function(r){r.application=new Vt,r.internal=new qt(n),cn()&&(r.sessionManager=new Bt(n,e),r.device=new jt,r.location=new zt,r.user=new Kt(n,e),r.telemetryTrace=new Gt(undefined,undefined,undefined,t),r.session=new Ot),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){T(d(e.ext,Ft),"sesId",r.getSessionId(),w)},r.applyOperatingSystemContxt=function(e,n){T(e.ext,Rt,r.os)},r.applyApplicationContext=function(e,n){var t=r.application;t&&(T(e=d(e,Jt),D.applicationVersion,t.ver,w),T(e,D.applicationBuild,t.build,w))},r.applyDeviceContext=function(e,n){var t=r.device;t&&(T(e=d(d(e,Ht),Dt),"localId",t.id,w),T(e,"ip",t.ip,w),T(e,"model",t.model,w),T(e,"deviceClass",t.deviceClass,w))},r.applyInternalContext=function(e,n){var t,o=r.internal;o&&(T(t=d(e,Jt),D.internalAgentVersion,o.agentVersion,w),T(t,D.internalSdkVersion,o.sdkVersion,w),e.baseType!==yn.dataType&&e.baseType!==Tt.dataType||(T(t,D.internalSnippet,o.snippetVer,w),T(t,D.internalSdkSrc,o.sdkSrc,w)))},r.applyLocationContext=function(e,n){var t=o.location;t&&T(d(e,Jt,[]),D.locationIp,t.ip,w)},r.applyOperationContext=function(e,n){var t=r.telemetryTrace;t&&(T(e=d(d(e,Ht),Ut,{traceID:undefined,parentID:undefined}),"traceID",t.traceID,w),T(e,"name",t.name,w),T(e,"parentID",t.parentID,w))},r.applyWebContext=function(e,n){var t=o.web;t&&T(d(e,Ht),Et,t)},r.applyUserContext=function(e,n){var t=r.user;t&&(T(d(e,Jt,[]),D.userAccountId,t.accountId,w),T(e=d(d(e,Ht),Lt),"id",t.id,w),T(e,"authId",t.authenticatedId,w))},r.cleanUp=function(e,n){e=e.ext;e&&(Zt(e,Dt),Zt(e,Lt),Zt(e,Et),Zt(e,Rt),Zt(e,Ft),Zt(e,Ut))}})},i=(G(Yt,$t=ke),Yt.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}}},Yt);function Yt(){var c,l,e=$t.call(this)||this;return e.priority=110,e.identifier="AppInsightsPropertiesPlugin",m(Yt,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=Yt.getDefaultConfig();l=l||{},f(e,function(e,n){l[e]=function(){return i.getConfig(a,e,n())}}),u.context=new Xt(n,l),r=null,qe(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===Tt.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 yn(P.SendBrowserInfoOnUserInit,(ln()||{}).userAgent||""),n.diagLog().logInternalMessage(dt.CRITICAL,o)),u.processNext(e,n))}}),e}F.PropertiesPlugin=i,F.Session=Ot,F.SessionManager=Bt,F.TelemetryContext=Xt,F.TelemetryTrace=Gt;n=F,_="__esModule",e={value:!0},r=Object.defineProperty;if(r)try{return void r(n,_,e)}catch(to){}typeof e.value!==undefined&&(n[_]=e.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
|