@microsoft/applicationinsights-properties-js 2.8.0-beta.2203-04 → 2.8.0-beta.2203-05
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 +85 -16
- 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.d.ts +1 -1
- package/dist/applicationinsights-properties-js.js +85 -16
- 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/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 +3 -3
- package/src/Context/Internal.ts +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* Application Insights JavaScript SDK - Properties Plugin, 2.8.0-beta.2203-
|
|
2
|
+
* Application Insights JavaScript SDK - Properties Plugin, 2.8.0-beta.2203-05
|
|
3
3
|
* Copyright (c) Microsoft and contributors. All rights reserved.
|
|
4
4
|
*/
|
|
5
|
-
var e=this,n=function(e){"use strict";var F="function",a="object",R="undefined",o="prototype",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("["+n+"] 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 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=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=null,r=[],i=(null!==n&&(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),{_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)}function st(){var n=[];return{add:function(e){e&&n.push(e)},run:function(t,o){Ve(n,function(e){try{e(t,o)}catch(n){t.diagLog().throwInternal(2,73,"Unexpected error calling unload handler - "+b(n))}}),n=[]}}}var ct="getPlugin",Se=function eo(){var i,a,c,l,f,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[ct]?n.createNew(null,c[ct]):n.createNew(null,c)),e}function d(){i=!1,u.core=null,c=a=null,f=[],l=st()}d(),m(eo,u,function(s){var e,n,t,o,r;s.initialize=function(e,n,t,o){e&&N(e,"extensionConfig",[],null,C),!o&&n&&(o=n.getProcessTelContext().getNext());var r=c;c&&c[ct]&&(r=c[ct]()),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[ct]?c[ct]():c),i=n||{reason:0,isAsync:!1},s[ye]&&!0===s[ye](r,i,a)?t=!0:a(),t;function a(){o||(o=!0,l.run(r,n),Ve(f,function(e){e.rm()}),f=[],!0===t&&r.processNext(i),d())}},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)}))}),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},lt=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 ft(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 dt(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 gt(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=dt(o,n,8192),e=ft(o,e,r),r[e]=n}),e=r),e}function pt(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 vt,ht=He({LocalStorage:0,SessionStorage:1}),mt=(He({AI:0,AI_AND_W3C:1,W3C:2}),undefined);function yt(){return xt()?Ct(ht.LocalStorage):null}function Ct(e){try{if(C(q()))return null;var n=new Date,t=c(e===ht.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 xt(){return mt=mt===undefined?!!Ct(ht.LocalStorage):mt}function It(e,n){var t=yt();if(null!==t)try{return t.getItem(n)}catch(o){mt=!1,e.throwInternal(2,A.BrowserCannotReadLocalStorage,"Browser failed read of local storage. "+ze(o),{exception:b(o)})}return null}function St(e,n,t){var o=yt();if(null!==o)try{o.setItem(n,t)}catch(r){mt=!1,e.throwInternal(2,A.BrowserCannotWriteLocalStorage,"Browser failed write to local storage. "+ze(r),{exception:b(r)})}}function wt(e,n){var t=yt();if(null!==t)try{t.removeItem(n)}catch(o){mt=!1,e.throwInternal(2,A.BrowserFailedRemovalFromLocalStorage,"Browser failed removal of local storage item. "+ze(o),{exception:b(o)})}}function Tt(){var e=vt.call(this)||this;return e.ver=2,e.properties={},e.measurements={},e}z(Tt,vt=function(){this.ver=2,this.properties={},this.measurements={}}),z(kt,Nt=Tt),kt.envelopeType="Microsoft.ApplicationInsights.{0}.Pageview",kt.dataType="PageviewData";var Nt,bt=kt;function kt(e,n,t,o,r,i,a){var u,s,c,l=Nt.call(this)||this;return l.aiDataContract={ver:1,name:0,url:0,duration:0,properties:0,measurements:0,id:0},l.id=a&&pt(e,a,128,A.IdTooLong).toString(),l.url=pt(e,t,2048,A.UrlTooLong),l.name=dt(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=gt(e,r),l.measurements=(s=e,(a=i)&&(c={},f(a,function(e,n){e=ft(s,e,c),c[e]=n}),a=c),a),l}function M(e){var n="ai."+e+".";return function(e){return n+e}}var At,Mt,u=M("application"),i=M("device"),r=M("location"),P=M("operation"),n=M("session"),L=M("user"),_=M("cloud"),Pt=M("internal");function Lt(){return At.call(this)||this}Mt={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:Pt("nodeName"),internalSdkVersion:Pt("sdkVersion"),internalAgentVersion:Pt("agentVersion"),internalSnippet:Pt("snippet"),internalSdkSrc:Pt("sdkSrc")},z(Lt,At=function(){var t=this;f(Mt,function(e,n){t[e]=n})});var _t="user",Dt="device",Ut="trace",Et="web",Ft="app",Rt="os",D=new Lt,Ot=function(){},Bt=(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(lt.WARNING,A.SessionRenewalDateIsZero,"AI session acquisition date is 0"+o):isNaN(a)||a<=0?d.throwInternal(lt.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(lt.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 Ot,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=It(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),xt()||d.throwInternal(lt.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;St(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-beta.2203-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=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",wt(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(lt.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 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=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=dt(o,r.name)},Ht="ext",Jt="tags";function Zt(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 $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),an()&&(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){N(d(e.ext,Ft),"sesId",r.getSessionId(),w)},r.applyOperatingSystemContxt=function(e,n){N(e.ext,Rt,r.os)},r.applyApplicationContext=function(e,n){var t=r.application;t&&(N(e=d(e,Jt),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,Ht),Dt),"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,Jt),D.internalAgentVersion,o.agentVersion,w),N(t,D.internalSdkVersion,o.sdkVersion,w),e.baseType!==vn.dataType&&e.baseType!==bt.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,Jt,[]),D.locationIp,t.ip,w)},r.applyOperationContext=function(e,n){var t=r.telemetryTrace;t&&(N(e=d(d(e,Ht),Ut,{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,Ht),Et,t)},r.applyUserContext=function(e,n){var t=r.user;t&&(N(d(e,Jt,[]),D.userAccountId,t.accountId,w),N(e=d(d(e,Ht),_t),"id",t.id,w),N(e,"authId",t.authenticatedId,w))},r.cleanUp=function(e,n){e=e.ext;e&&(Zt(e,Dt),Zt(e,_t),Zt(e,Et),Zt(e,Rt),Zt(e,Ft),Zt(e,Ut))}})},u=(z(Yt,$t=Se),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,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===bt.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(lt.CRITICAL,o)),u.processNext(e,n))}}),e}e.PropertiesPlugin=u,e.Session=Ot,e.SessionManager=Bt,e.TelemetryContext=Xt,e.TelemetryTrace=Gt;i=e,r="__esModule",P={value:!0},n=Object.defineProperty;if(n)try{return void n(i,r,P)}catch(to){}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||{}));
|
|
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",Ne="toString",Te="constructor",be=n,r=t.freeze,ke=t.keys,i=String[o],Ae=i[we],Me=i[Se],Pe=Date[o][Ie],i=Array.isArray,_e=e[Ne],Le=j[Ne],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=i||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[Te];if(e)return e}return null})(e))||typeof(e=e[Te]&&j.call(e,Te)?e[Te]: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=r||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 to(r){this.identifier="DiagnosticLogger",this.queue=[];var u=0,s={};m(to,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(be)try{var n={enumerable:!0,configurable:!0,get:function(){return!o&&x(r)&&(o=r(),r=null),o}};return be(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="."+Pn(6);function Ln(e){return 1===e.nodeType||9===e.nodeType||!+e.nodeType}var Dn,Un=Dn={id:Ve("_aiData-plugin.2.7.30"+((_=void 0!==_&&_)?".2.7.3":"")+e),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",Ne=function oo(){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(oo,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,yt=Ze({LocalStorage:0,SessionStorage:1}),Ct=(Ze({AI:0,AI_AND_W3C:1,W3C:2}),undefined);function xt(){return St()?It(yt.LocalStorage):null}function It(e){try{if(C(W()))return null;var n=new Date,t=c(e===yt.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 St(e){return Ct=e||Ct===undefined?!!It(yt.LocalStorage):Ct}function wt(e,n){var t=xt();if(null!==t)try{return t.getItem(n)}catch(o){Ct=!1,k(e,2,P.BrowserCannotReadLocalStorage,"Browser failed read of local storage. "+He(o),{exception:b(o)})}return null}function Nt(e,n,t){var o=xt();if(null!==o)try{o.setItem(n,t)}catch(r){Ct=!1,k(e,2,P.BrowserCannotWriteLocalStorage,"Browser failed write to local storage. "+He(r),{exception:b(r)})}}function Tt(e,n){var t=xt();if(null!==t)try{t.removeItem(n)}catch(o){Ct=!1,k(e,2,P.BrowserFailedRemovalFromLocalStorage,"Browser failed removal of local storage item. "+He(o),{exception:b(o)})}}function bt(){var e=mt.call(this)||this;return e.ver=2,e.properties={},e.measurements={},e}G(bt,mt=function(){this.ver=2,this.properties={},this.measurements={}}),G(Mt,kt=bt),Mt.envelopeType="Microsoft.ApplicationInsights.{0}.Pageview",Mt.dataType="PageviewData";var kt,At=Mt;function Mt(e,n,t,o,r,i,a){var u,s,c,l=kt.call(this)||this;return l.aiDataContract={ver:1,name:0,url:0,duration:0,properties:0,measurements:0,id:0},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),l}function l(e){var n="ai."+e+".";return function(e){return n+e}}var Pt,_t,i=l("application"),r=l("device"),n=l("location"),_=l("operation"),e=l("session"),L=l("user"),Lt=l("cloud"),Dt=l("internal");function Ut(){return Pt.call(this)||this}_t={applicationVersion:i("ver"),applicationBuild:i("build"),applicationTypeId:i("typeId"),applicationId:i("applicationId"),applicationLayer:i("layer"),deviceId:r("id"),deviceIp:r("ip"),deviceLanguage:r("language"),deviceLocale:r("locale"),deviceModel:r("model"),deviceFriendlyName:r("friendlyName"),deviceNetwork:r("network"),deviceNetworkName:r("networkName"),deviceOEMName:r("oemName"),deviceOS:r("os"),deviceOSVersion:r("osVersion"),deviceRoleInstance:r("roleInstance"),deviceRoleName:r("roleName"),deviceScreenResolution:r("screenResolution"),deviceType:r("type"),deviceMachineName:r("machineName"),deviceVMName:r("vmName"),deviceBrowser:r("browser"),deviceBrowserVersion:r("browserVersion"),locationIp:n("ip"),locationCountry:n("country"),locationProvince:n("province"),locationCity:n("city"),operationId:_("id"),operationName:_("name"),operationParentId:_("parentId"),operationRootId:_("rootId"),operationSyntheticSource:_("syntheticSource"),operationCorrelationVector:_("correlationVector"),sessionId:e("id"),sessionIsFirst:e("isFirst"),sessionIsNew:e("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:Lt("name"),cloudRole:Lt("role"),cloudRoleVer:Lt("roleVer"),cloudRoleInstance:Lt("roleInstance"),cloudEnvironment:Lt("environment"),cloudLocation:Lt("location"),cloudDeploymentUnit:Lt("deploymentUnit"),internalNodeName:Dt("nodeName"),internalSdkVersion:Dt("sdkVersion"),internalAgentVersion:Dt("agentVersion"),internalSnippet:Dt("snippet"),internalSdkSrc:Dt("sdkSrc")},G(Ut,Pt=function(){var t=this;f(_t,function(e,n){t[e]=n})});var Et="user",Ft="device",Rt="trace",Ot="web",Bt="app",Vt="os",D=new Ut,jt=function(){},qt=(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 jt,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=wt(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),St()||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;Nt(d,l(),[n,t,e].join("|"))}})}var Wt=function(){},Kt=function(){this.id="browser",this.deviceClass="Browser"},zt=function(e){this.sdkVersion=(e.sdkExtension&&e.sdkExtension()?e.sdkExtension()+"_":"")+"javascript:2.8.0-beta.2203-05"};function Gt(e){return"string"==typeof e&&e&&!e.match(/,|;|=| |\|/)}E.cookieSeparator="|",E.userCookieName="ai_user",E.authUserCookieName="ai_authUser";var Ht=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",Tt(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),!Gt(e)||n&&!Gt(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 Jt=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=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)},$t="ext",Xt="tags";function Yt(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&&ke)return ke(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 Qt,eo=function ro(e,n){var o=this,t=e.logger;this.appId=function(){return null},this.getSessionId=function(){return null},m(ro,this,function(r){r.application=new Wt,r.internal=new zt(n),cn()&&(r.sessionManager=new qt(n,e),r.device=new Kt,r.location=new Jt,r.user=new Ht(n,e),r.telemetryTrace=new Zt(undefined,undefined,undefined,t),r.session=new jt),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,Bt),"sesId",r.getSessionId(),w)},r.applyOperatingSystemContxt=function(e,n){T(e.ext,Vt,r.os)},r.applyApplicationContext=function(e,n){var t=r.application;t&&(T(e=d(e,Xt),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,$t),Ft),"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,Xt),D.internalAgentVersion,o.agentVersion,w),T(t,D.internalSdkVersion,o.sdkVersion,w),e.baseType!==yn.dataType&&e.baseType!==At.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,Xt,[]),D.locationIp,t.ip,w)},r.applyOperationContext=function(e,n){var t=r.telemetryTrace;t&&(T(e=d(d(e,$t),Rt,{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,$t),Ot,t)},r.applyUserContext=function(e,n){var t=r.user;t&&(T(d(e,Xt,[]),D.userAccountId,t.accountId,w),T(e=d(d(e,$t),Et),"id",t.id,w),T(e,"authId",t.authenticatedId,w))},r.cleanUp=function(e,n){e=e.ext;e&&(Yt(e,Ft),Yt(e,Et),Yt(e,Ot),Yt(e,Vt),Yt(e,Bt),Yt(e,Rt))}})},i=(G(no,Qt=Ne),no.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}}},no);function no(){var c,l,e=Qt.call(this)||this;return e.priority=110,e.identifier="AppInsightsPropertiesPlugin",m(no,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=no.getDefaultConfig();l=l||{},f(e,function(e,n){l[e]=function(){return i.getConfig(a,e,n())}}),u.context=new eo(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===At.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=jt,F.SessionManager=qt,F.TelemetryContext=eo,F.TelemetryTrace=Zt;r=F,n="__esModule",_={value:!0},e=Object.defineProperty;if(e)try{return void e(r,n,_)}catch(io){}typeof _.value!==undefined&&(r[n]=_.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
|