New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@microsoft/applicationinsights-analytics-js

Package Overview
Dependencies
Maintainers
4
Versions
605
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@microsoft/applicationinsights-analytics-js - npm Package Compare versions

Comparing version 2.5.9 to 2.5.10

4

browser/applicationinsights-analytics-js.min.js
/*!
* Application Insights JavaScript SDK - Web Analytics, 2.5.9
* Application Insights JavaScript SDK - Web Analytics, 2.5.10
* Copyright (c) Microsoft and contributors. All rights reserved.
*/
var e=this,t=function(e){"use strict";var r="function",i="object",t="undefined",o="prototype",a="hasOwnProperty";function n(){return typeof globalThis!==t&&globalThis?globalThis:typeof self!==t&&self?self:typeof window!==t&&window?window:typeof global!==t&&global?global:null}function s(e){var t=Object.create;if(t)return t(e);if(null==e)return{};if((t=typeof e)!=i&&t!==r)throw new TypeError("Object prototype may only be an Object:"+e);function n(){}return n[o]=e,new n}var c,p,u=function(e,t){return(u=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t[a](n)&&(e[n]=t[n])})(e,t)};Je=function(e,t){function n(){this.constructor=e}u(e,t),e[o]=null===t?s(t):(n[o]=t[o],new n)},(Ue=vt=n()||{}).__assign||(Ue.__assign=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object[o][a].call(t,i)&&(e[i]=t[i]);return e}),Ue.__extends||(Ue.__extends=Je),__assign=__assign||vt.__assign,__extends=__extends||vt.__extends,(an=c={})[an.LocalStorage=0]="LocalStorage",an[an.SessionStorage=1]="SessionStorage",(_t=p=p||{})[_t.Default=0]="Default",_t[_t.Required=1]="Required",_t[_t.Array=2]="Array",_t[_t.Hidden=4]="Hidden",(Et={})[Et.AI=0]="AI",Et[Et.AI_AND_W3C=1]="AI_AND_W3C",Et[Et.W3C=2]="W3C";var l=2,f=t,v=i,g=o,d="window",m="location",h="JSON",y=n;function x(e){var t=y();return t&&t[e]?t[e]:e===d&&_()?window:null}function _(){return typeof window===v&&window}function S(){return _()?window:x(d)}function T(){return typeof document===v&&document?document:x("document")}function w(){return typeof navigator===v&&navigator?navigator:x("navigator")}function I(){return typeof location===v&&location?location:x(m)}function N(){return x("performance")}function E(){return typeof JSON===v&&JSON||null!==x(h)}function C(){return E()?JSON||x(h):null}var b="attachEvent",D="addEventListener",P="detachEvent",k="removeEventListener",A=4294967296,L=4294967295,M=null,R=!1,O=123456789,U=987654321;function z(e){O=123456789+e&L,U=987654321-e&L,R=!0}function V(){z(Math.random()*A^(new Date).getTime())}function G(e,t){return typeof e===t}function j(e){return G(e,t)||e===undefined}function q(e){return j(e)||null===e}function F(e,t){return e&&Object[o].hasOwnProperty.call(e,t)}function B(e){return G(e,i)}function K(e){return G(e,r)}function W(e,t,n,r){void 0===r&&(r=!1);var i=!1;if(!q(e))try{q(e[D])?q(e[b])||(e[b]("on"+t,n),i=!0):(e[D](t,n,r),i=!0)}catch(o){}return i}function H(e,t,n,r){if(void 0===r&&(r=!1),!q(e))try{q(e[k])?q(e[P])||e[P]("on"+t,n):e[k](t,n,r)}catch(i){}}var X=(J.isDate=function(e){return"[object Date]"===Object[o].toString.call(e)},J.isArray=function(e){return"[object Array]"===Object[o].toString.call(e)},J.isError=function(e){return"[object Error]"===Object[o].toString.call(e)},J.isString=function(e){return G(e,"string")},J.isNumber=function(e){return G(e,"number")},J.isBoolean=function(e){return G(e,"boolean")},J.disableCookies=function(){J._canUseCookies=!1},J.newGuid=function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(Q,function(e){var t=0|J.randomValue(15);return("x"===e?t:3&t|8).toString(16)})},J.toISOString=function(e){if(J.isDate(e)){var t=function(e){return 1===(e+="").length&&(e="0"+e),e};return e.getUTCFullYear()+"-"+t(1+e.getUTCMonth())+"-"+t(e.getUTCDate())+"T"+t(e.getUTCHours())+":"+t(e.getUTCMinutes())+":"+t(e.getUTCSeconds())+"."+((e.getUTCMilliseconds()/1e3).toFixed(3)+"").slice(2,5)+"Z"}},J.arrForEach=function(e,t,n){for(var r=e.length,i=0;i<r;i++)i in e&&t.call(n||e,e[i],i,e)},J.arrIndexOf=function(e,t,n){for(var r=e.length,i=Math.max(0<=(n=n||0)?n:r-Math.abs(n),0);i<r;i++)if(i in e&&e[i]===t)return i;return-1},J.arrMap=function(e,t,n){for(var r=e.length,i=n||e,o=Array(r),a=0;a<r;a++)a in e&&(o[a]=t.call(i,e[a],e));return o},J.arrReduce=function(e,t,n){var r,i=e.length,o=0;if(3<=arguments.length)r=n;else{for(;o<i&&!(o in e);)o++;r=e[o++]}for(;o<i;)o in e&&(r=t(r,e[o],o,e)),o++;return r},J.strTrim=function(e){return J.isString(e)?e.replace(/^\s+|\s+$/g,""):e},J.objKeys=function(e){var t=!{toString:null}.propertyIsEnumerable("toString");if(!(K(e)||B(e)&&null!==e))throw new TypeError("objKeys called on non-object");var n,r=[];for(n in e)F(e,n)&&r.push(n);if(t)for(var i=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],o=i.length,a=0;a<o;a++)F(e,i[a])&&r.push(i[a]);return r},J.objDefineAccessors=function(e,t,n,r){var i=Object.defineProperty;if(i)try{var o={enumerable:!0,configurable:!0};return n&&(o.get=n),r&&(o.set=r),i(e,t,o),!0}catch(a){}return!1},J.addEventHandler=function(e,t){var n=!1,r=S();return r&&(n=W(r,e,t),n=W(r.body,e,t)||n),(r=T())&&(n=Y.Attach(r,e,t)||n),n},J.dateNow=function(){var e=Date;return e.now?e.now():(new e).getTime()},J.perfNow=function(){var e=N();return e&&e.now?e.now():J.dateNow()},J.newId=function(e){void 0===e&&(e=22);for(var t=J.random32()>>>0,n=0,r="";r.length<e;)r+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"[0|63&t],t>>>=6,5==++n&&(t=(J.random32()<<2&4294967295|3&t)>>>0,n=0);return r},J.isIE=function(){var e;return null===M&&(e=((w()||{}).userAgent||"").toLowerCase(),M=!!~e.indexOf("msie")||!!~e.indexOf("trident/")),M},J.randomValue=function(e){return 0<e?Math.floor(J.random32()/L*(e+1))>>>0:0},J.random32=function(e){var t=(t=x("crypto")||x("msCrypto"))&&t.getRandomValues?t.getRandomValues(new Uint32Array(1))[0]&L:J.isIE()?(R||V(),J.mwcRandom32()&L):Math.floor(A*Math.random()|0);return e||(t>>>=0),t},J.mwcRandomSeed=function(e){e?z(e):V()},J.mwcRandom32=function(e){var t=((U=36969*(65535&U)+(U>>16)&L)<<16)+(65535&(O=18e3*(65535&O)+(O>>16)&L))>>>0&L|0;return e||(t>>>=0),t},J.generateW3CId=function(){for(var e,t=["0","1","2","3","4","5","6","7","8","9","a","b","c","d","e","f"],n="",r=0;r<4;r++)n+=t[15&(e=J.random32())]+t[e>>4&15]+t[e>>8&15]+t[e>>12&15]+t[e>>16&15]+t[e>>20&15]+t[e>>24&15]+t[e>>28&15];var i=t[8+(3&J.random32())|0];return n.substr(0,8)+n.substr(9,4)+"4"+n.substr(13,3)+i+n.substr(16,3)+n.substr(19,12)},J.isTypeof=G,J.isUndefined=j,J.isNullOrUndefined=q,J.hasOwnProperty=F,J.isFunction=K,J.isObject=B,J.objCreate=s,J);function J(){}var $,Q=/[xy]/g,Y=(Z.Attach=W,Z.AttachEvent=W,Z.Detach=H,Z.DetachEvent=H,Z);function Z(){}(Ct=$={})[Ct.CRITICAL=1]="CRITICAL",Ct[Ct.WARNING=2]="WARNING";var ee="constructor",te="prototype",ne="function",re="_dynInstFuncs",ie="_isDynProxy",oe="_dynClass",ae="_dynCls$",se="_unknown_",ce="__proto__",ue=Object.getPrototypeOf,le=0;function fe(e,t){return e&&Object[te].hasOwnProperty.call(e,t)}function ge(e){return typeof e===ne}function pe(e){return e&&(e===Object[te]||e===Array[te])}function de(e){return pe(e)||e===Function[te]}function me(e){if(e){if(ue)return ue(e);if(e=e[ce]||e[te]||e[ee])return e}return null}function he(e,t,n){return t!==ee&&ge(e[t])&&(n||fe(e,t))}function ve(e){throw new TypeError("DynamicProto: "+e)}function ye(e,t){return fe(e,te)?e.name||t||se:((e||{})[ee]||{}).name||t||se}function xe(e,n,t){fe(e,te)||ve("theClass is an invalid class definition.");var r=e[te];!function(e){for(var t=me(n);t&&!de(t);){if(t===e)return 1;t=me(t)}}(r)&&ve("["+ye(e)+"] is not in class heirarchy of ["+ye(n)+"]");var i=null;fe(r,oe)?i=r[oe]:(i=ae+ye(e,"_")+"$"+le,le++,r[oe]=i),t(n,function(e,t,n){function r(e,t){return function(){return t.apply(e,arguments)}}var i={};for(s in n)i[s]=r(t,n[s]);for(var o=me(e),a=[];o&&!de(o)&&!function(e,t){for(var n=e.length-1;0<=n;n--)if(e[n]===t)return 1}(a,o);){for(var s in o)!i[s]&&he(o,s,!ue)&&(i[s]=r(t,o[s]));a.push(o),o=me(o)}return i}(r,n,e=function(e){var t,n={};for(t in e)!n[t]&&he(e,t,!1)&&(n[t]=e[t]);return n}(n))),function(e,t,n,r){if(!pe(e)){var i,o=n[re]=n[re]||{},a=o[t]=o[t]||{};for(i in n)he(n,i,!1)&&n[i]!==r[i]&&(a[i]=n[i],delete n[i],fe(e,i)&&(!e[i]||e[i][ie])||(e[i]=function(t,n){var r=function(){if(this&&fe(t,oe)){var e=((this[re]||{})[t[oe]]||{})[n];if(e)return e.apply(this,arguments);ve("Missing ["+n+"] "+ne)}return(e=t[n])===r&&(e=me(t)[n]),ge(e)||ve("["+n+"] is not a "+ne),e.apply(this,arguments)};return r[ie]=1,r}(e,i)))}}(r,i,n,e)}function _e(e){return e?'"'+e.replace(/\"/g,"")+'"':""}var Se=(Te.dataType="MessageData",Te);function Te(e,t,n,r){void 0===n&&(n=!1),this.messageId=e,this.message=(n?"AI: ":"AI (Internal): ")+e,e="",E()&&(e=C().stringify(r)),e=(t?" message:"+_e(t):"")+(r?" props:"+_e(e):""),this.message+=e}var we=function An(i){this.identifier="DiagnosticLogger",this.queue=[];var s=0,c={};xe(An,this,function(o){var n=X.isNullOrUndefined,a=X.isUndefined,r=X.isFunction;function e(e,t){return e=i[e],n(e)?t:e}n(i)&&(i={}),o.consoleLoggingLevel=function(){return e("loggingLevelConsole",0)},o.telemetryLoggingLevel=function(){return e("loggingLevelTelemetry",1)},o.maxInternalMessageLimit=function(){return e("maxMessageLimit",25)},o.enableDebugExceptions=function(){return e("enableDebugExceptions",!1)},o.throwInternal=function(e,t,n,r,i){if(void 0===i&&(i=!1),r=new Se(t,n,i,r),o.enableDebugExceptions())throw r;!a(r)&&r&&(a(r.message)||(i?(i=+r.messageId,!c[i]&&o.consoleLoggingLevel()>=$.WARNING&&(o.warnToConsole(r.message),c[i]=!0)):o.consoleLoggingLevel()>=$.WARNING&&o.warnToConsole(r.message),o.logInternalMessage(e,r)))},o.warnToConsole=function(e){var t,n=typeof console!==f?console:x("console");n&&(t="log",n.warn&&(t="warn"),r(n[t])&&n[t](e))},o.resetInternalMessageCount=function(){s=0,c={}},o.logInternalMessage=function(e,t){var n,r;s>=o.maxInternalMessageLimit()||(n=!0,r="AITR_"+t.messageId,c[r]?n=!1:c[r]=!0,n&&(e<=o.telemetryLoggingLevel()&&(o.queue.push(t),s++),s===o.maxInternalMessageLimit()&&(t=new Se(23,e="Internal events throttle limit per PageView reached for this app.",!1),o.queue.push(t),o.warnToConsole(e))))}})},Ie="ctx",Ne=(Ee.ParentContextKey="parent",Ee.ChildrenContextKey="childEvts",Ee);function Ee(e,i,t){var n,o=this,a=!1;o.start=X.dateNow(),o.name=e,o.isAsync=t,o.isChildEvt=function(){return!1},X.isFunction(i)&&(a=X.objDefineAccessors(o,"payload",function(){return!n&&X.isFunction(i)&&(n=i(),i=null),n})),o.getCtx=function(e){return e?(e===Ee.ParentContextKey||e===Ee.ChildrenContextKey?o:o[Ie]||{})[e]:null},o.setCtx=function(e,t){e&&(e===Ee.ParentContextKey?(o[e]||(o.isChildEvt=function(){return!0}),o[e]=t):e===Ee.ChildrenContextKey?o[e]=t:(o[Ie]=o[Ie]||{})[e]=t)},o.complete=function(){var e=0,t=o.getCtx(Ee.ChildrenContextKey);if(X.isArray(t))for(var n=0;n<t.length;n++){var r=t[n];r&&(e+=r.time)}o.time=X.dateNow()-o.start,o.exTime=o.time-e,o.complete=function(){},!a&&X.isFunction(i)&&(o.payload=i())}}var Ce=function Ln(t){this.ctx={},xe(Ln,this,function(n){n.create=function(e,t,n){return new Ne(e,t,n)},n.fire=function(e){e&&(e.complete(),t&&t.perfEvent(e))},n.setCtx=function(e,t){e&&((n[Ie]=n[Ie]||{})[e]=t)},n.getCtx=function(e){return(n[Ie]||{})[e]}})},be="CoreUtils.doPerf";function De(e,t,n,r,i){if(e){var o=e;if(o&&X.isFunction(o.getPerfMgr)&&(o=o.getPerfMgr()),o){var a,s=void 0,c=o.getCtx(be);try{if(s=o.create(t(),r,i))return c&&s.setCtx&&(s.setCtx(Ne.ParentContextKey,c),c.getCtx&&c.setCtx&&((a=c.getCtx(Ne.ChildrenContextKey))||(a=[],c.setCtx(Ne.ChildrenContextKey,a)),a.push(s))),o.setCtx(be,s),n(s)}catch(u){s&&s.setCtx&&s.setCtx("exception",u)}finally{s&&o.fire(s),o.setCtx(be,c)}}}return n()}var Pe=X.isFunction,ke=function(i,t){var o=this,a=null,s=Pe(i.processTelemetry),c=Pe(i.setNextPlugin);o._hasRun=!1,o.getPlugin=function(){return i},o.getNext=function(){return a},o.setNext=function(e){a=e},o.processTelemetry=function(n,r){r=r||t;var e=i?i.identifier:"TelemetryPluginChain";De(r?r.core():null,function(){return e+":processTelemetry"},function(){if(i&&s){o._hasRun=!0;try{r.setNext(a),c&&i.setNextPlugin(a),a&&(a._hasRun=!1),i.processTelemetry(n,r)}catch(t){var e=a&&a._hasRun;a&&e||r.diagLog().throwInternal($.CRITICAL,73,"Plugin ["+i.identifier+"] failed during processTelemetry - "+t),a&&!e&&a.processTelemetry(n,r)}}else a&&(o._hasRun=!0,a.processTelemetry(n,r))},function(){return{item:n}},!n.sync)}},Ae=X.isNullOrUndefined;function Le(e,t){var n=[];if(e&&0<e.length)for(var r=null,i=0;i<e.length;i++){var o=e[i];o&&X.isFunction(o.processTelemetry)&&(o=new ke(o,t),n.push(o),r&&r.setNext(o),r=o)}return 0<n.length?n[0]:null}var Me=function Mn(e,i,n,t){var r,o,a,s,c=this,u=null;null!==t&&(e&&X.isFunction(e.getPlugin)?u=function(e,t,n){var r=[],i=!n;if(e)for(;e;){var o=e.getPlugin();!i&&o!==n||(i=!0,r.push(o)),e=e.getNext()}return i||r.push(n),Le(r,t)}(e,c,t||e.getPlugin()):t?(r=c,a=e,s=!1,(o=t)&&e&&(a=[],X.arrForEach(e,function(e){!s&&e!==o||(s=!0,a.push(e))})),o&&!s&&(a=a||[]).push(o),u=Le(a,r)):X.isUndefined(t)&&(u=Le(e,c))),c.core=function(){return n},c.diagLog=function(){return(n||{}).logger||new we(i||{})},c.getCfg=function(){return i},c.getExtCfg=function(e,t){var n,r;return void 0===t&&(t={}),!i||(r=i.extensionConfig)&&e&&(n=r[e]),n||t},c.getConfig=function(e,t,n){var r;return void 0===n&&(n=!1),(e=c.getExtCfg(e,null))&&!Ae(e[t])?r=e[t]:i&&!Ae(i[t])&&(r=i[t]),Ae(r)?n:r},c.hasNext=function(){return null!=u},c.getNext=function(){return u},c.setNext=function(e){u=e},c.processNext=function(e){var t=u;t&&(u=t.getNext(),t.processTelemetry(e,c))},c.createNew=function(e,t){return void 0===e&&(e=null),new Mn(e||u,i,n,t)}},Re=X.isFunction,Oe="getPlugin",Ue=(ze.prototype.initialize=function(e,t,n,r){this._baseTelInit(e,t,n,r)},ze);function ze(){var o=this,a=!1,s=null,c=null;o.core=null,o.diagLog=function(e){return o._getTelCtx(e).diagLog()},o.isInitialized=function(){return a},o.setInitialized=function(e){a=e},o.setNextPlugin=function(e){c=e},o.processNext=function(e,t){t?t.processNext(e):c&&Re(c.processTelemetry)&&c.processTelemetry(e,null)},o._getTelCtx=function(e){void 0===e&&(e=null);var t=e;return t||(e=s||new Me(null,{},o.core),t=c&&c[Oe]?e.createNew(null,c[Oe]):e.createNew(null,c)),t},o._baseTelInit=function(e,t,n,r){e&&(e.extensionConfig=e.extensionConfig||[]),!r&&t&&(r=t.getProcessTelContext().getNext());var i=c;c&&c[Oe]&&(i=c[Oe]()),o.core=t,s=new Me(r,e,t,i),a=!0}}var Ve=X.isFunction,Ge="processTelemetry",je="priority",qe="setNextPlugin",Fe="isInitialized";function Be(t,n){for(var e=[],r=null,i=t.getNext();i;){var o=i.getPlugin();o&&(r&&Ve(r[qe])&&Ve(o[Ge])&&r[qe](o),Ve(o[Fe])&&o[Fe]()||e.push(o),r=o,i=i.getNext())}X.arrForEach(e,function(e){e.initialize(t.getCfg(),t.core(),n,t.getNext())})}function Ke(e){return e.sort(function(e,t){var n=0,r=Ve(t[Ge]);return Ve(e[Ge])?n=r?e[je]-t[je]:1:r&&(n=-1),n})}var We,He=500,Xe="Channel has invalid priority",Je=X.objDefineAccessors,$e=(We=Ue,__extends(Qe,We),Qe._staticInit=(Je(Qe.prototype,"ChannelControls",Qe.prototype.getChannelControls),void Je(Qe.prototype,"channelQueue",Qe.prototype.getChannelControls)),Qe);function Qe(){var r=We.call(this)||this;r.identifier="ChannelControllerPlugin",r.priority=He;var c,u=X.arrForEach;function l(e){e&&0<e.length&&(e=e.sort(function(e,t){return e.priority-t.priority}),u(e,function(e){if(e.priority<He)throw Error(Xe+e.identifier)}),c.push(e))}return xe(Qe,r,function(a,s){a.setNextPlugin=function(e){},a.processTelemetry=function(t,n){c&&u(c,function(e){0<e.length&&r._getTelCtx(n).createNew(e).processNext(t)})},a.getChannelControls=function(){return c},a.initialize=function(t,n,r){var e,i,o;a.isInitialized()||(s.initialize(t,n,r),t.isCookieUseDisabled&&X.disableCookies(),i=r,c=[],(e=(t||{}).channels)&&u(e,l),i&&(o=[],u(i,function(e){e.priority>He&&o.push(e)}),l(o)),u(c,function(e){return Be(new Me(e,t,n),r)}))}}),r}var Ye=X.arrForEach,Ze=X.isNullOrUndefined,et="_notificationManager",tt=function Rn(e){this.listeners=[];var o=X.arrForEach,t=!!(e||{}).perfEvtsSendAll;xe(Rn,this,function(i){i.addNotificationListener=function(e){i.listeners.push(e)},i.removeNotificationListener=function(e){for(var t=X.arrIndexOf(i.listeners,e);-1<t;)i.listeners.splice(t,1),t=X.arrIndexOf(i.listeners,e)},i.eventsSent=function(t){o(i.listeners,function(e){e&&e.eventsSent&&setTimeout(function(){return e.eventsSent(t)},0)})},i.eventsDiscarded=function(t,n){o(i.listeners,function(e){e&&e.eventsDiscarded&&setTimeout(function(){return e.eventsDiscarded(t,n)},0)})},i.eventsSendRequest=function(n,r){o(i.listeners,function(e){if(e&&e.eventsSendRequest)if(r)setTimeout(function(){return e.eventsSendRequest(n,r)},0);else try{e.eventsSendRequest(n,r)}catch(t){}})},i.perfEvent=function(n){n&&(!t&&n.isChildEvt()||o(i.listeners,function(e){if(e&&e.perfEvent)if(n.isAsync)setTimeout(function(){return e.perfEvent(n)},0);else try{e.perfEvent(n)}catch(t){}}))}})},nt=function On(){var t,s,c,n,u=!1;xe(On,this,function(a){a._extensions=[],s=new $e,t=[],a.isInitialized=function(){return u},a.initialize=function(e,t,r,n){if(a.isInitialized())throw Error("Core should not be initialized more than once");if(!e||Ze(e.instrumentationKey))throw Error("Please provide instrumentation key");c=n,a[et]=n,a.config=e||{},e.extensions=Ze(e.extensions)?[]:e.extensions,(e.extensionConfig=Ze(e.extensionConfig)?{}:e.extensionConfig).NotificationManager=n,r=r||X.objCreate({throwInternal:function(e,t,n,r,i){void 0===i&&(i=!1)},warnToConsole:function(e){},resetInternalMessageCount:function(){}}),a.logger=r,(n=[]).push.apply(n,t.concat(e.extensions)),n=Ke(n);var i=[],o={};if(Ye(n,function(e){if(Ze(e)||Ze(e.initialize))throw Error("Extensions must provide callback to initialize");var t=e.priority,n=e.identifier;e&&t&&(Ze(o[t])?o[t]=n:r.warnToConsole("Two extensions have same priority #"+t+" - "+o[t]+", "+n)),(!t||t<s.priority)&&i.push(e)}),n.push(s),i.push(s),n=Ke(n),a._extensions=n,Be(new Me([s],e,a),n),Be(new Me(i,e,a),n),a._extensions=i,0===a.getTransmissionControls().length)throw Error("No channels available");u=!0,a.releaseQueue()},a.getTransmissionControls=function(){return s.getChannelControls()},a.track=function(e){e.iKey||(e.iKey=a.config.instrumentationKey),e.time||(e.time=X.toISOString(new Date)),Ze(e.ver)&&(e.ver="4.0"),a.isInitialized()?a.getProcessTelContext().processNext(e):t.push(e)},a.getProcessTelContext=function(){var e=a._extensions,t=e;return e&&0!==e.length||(t=[s]),new Me(t,a.config,a)},a.getNotifyMgr=function(){return c||(c=X.objCreate({addNotificationListener:function(e){},removeNotificationListener:function(e){},eventsSent:function(e){},eventsDiscarded:function(e,t){},eventsSendRequest:function(e,t){}}),a[et]=c),c},a.getPerfMgr=function(){return n||a.config&&a.config.enablePerfMgr&&(n=new Ce(a.getNotifyMgr())),n},a.setPerfMgr=function(e){n=e},a.eventCnt=function(){return t.length},a.releaseQueue=function(){0<t.length&&(Ye(t,function(e){a.getProcessTelContext().processNext(e)}),t=[])}})};__extends(function Un(){var e=nt.call(this)||this;return xe(Un,e,function(n,i){function t(e){var t=n.getNotifyMgr();t&&t.eventsDiscarded([e],l)}n.initialize=function(e,t,n,r){i.initialize(e,t,n||new we(e),r||new tt(e))},n.track=function(e){De(n.getPerfMgr(),function(){return"AppInsightsCore:track"},function(){if(null===e)throw t(e),Error("Invalid telemetry item");!function(e){if(X.isNullOrUndefined(e.name))throw t(e),Error("telemetry name required")}(e),i.track(e)},function(){return{item:e}},!e.sync)},n.addNotificationListener=function(e){var t=n.getNotifyMgr();t&&t.addNotificationListener(e)},n.removeNotificationListener=function(e){var t=n.getNotifyMgr();t&&t.removeNotificationListener(e)},n.pollInternalLogs=function(t){var e=n.config.diagnosticLogInterval;return e&&0<e||(e=1e4),setInterval(function(){var e=n.logger?n.logger.queue:[];X.arrForEach(e,function(e){e={name:t||"InternalMessageId: "+e.messageId,iKey:n.config.instrumentationKey,time:X.toISOString(new Date),baseType:Se.dataType,baseData:{message:e.message}},n.track(e)}),e.length=0},e)}}),e},nt);var rt=(it.sanitizeKeyAndAddUniqueness=function(e,t,n){var r=t.length,i=it.sanitizeKey(e,t);if(i.length!==r){for(var o=0,a=i;n[a]!==undefined;)o++,a=i.substring(0,it.MAX_NAME_LENGTH-3)+it.padNumber(o);i=a}return i},it.sanitizeKey=function(e,t){var n;return t&&(t=it.trim(t.toString())).length>it.MAX_NAME_LENGTH&&(n=t.substring(0,it.MAX_NAME_LENGTH),e.throwInternal($.WARNING,57,"name is too long. It has been truncated to "+it.MAX_NAME_LENGTH+" characters.",{name:t},!0)),n||t},it.sanitizeString=function(e,t,n){var r;return void 0===n&&(n=it.MAX_STRING_LENGTH),t&&(n=n||it.MAX_STRING_LENGTH,(t=it.trim(t)).toString().length>n&&(r=t.toString().substring(0,n),e.throwInternal($.WARNING,61,"string value is too long. It has been truncated to "+n+" characters.",{value:t},!0))),r||t},it.sanitizeUrl=function(e,t){return it.sanitizeInput(e,t,it.MAX_URL_LENGTH,66)},it.sanitizeMessage=function(e,t){var n;return t&&t.length>it.MAX_MESSAGE_LENGTH&&(n=t.substring(0,it.MAX_MESSAGE_LENGTH),e.throwInternal($.WARNING,56,"message is too long, it has been truncated to "+it.MAX_MESSAGE_LENGTH+" characters.",{message:t},!0)),n||t},it.sanitizeException=function(e,t){var n;return t&&t.length>it.MAX_EXCEPTION_LENGTH&&(n=t.substring(0,it.MAX_EXCEPTION_LENGTH),e.throwInternal($.WARNING,52,"exception is too long, it has been truncated to "+it.MAX_EXCEPTION_LENGTH+" characters.",{exception:t},!0)),n||t},it.sanitizeProperties=function(e,t){if(t){var n,r={};for(n in t){var i=t[n];if(X.isObject(i)&&E())try{i=C().stringify(i)}catch(o){e.throwInternal($.WARNING,49,"custom property is not valid",{exception:o},!0)}i=it.sanitizeString(e,i,it.MAX_PROPERTY_LENGTH),r[n=it.sanitizeKeyAndAddUniqueness(e,n,r)]=i}t=r}return t},it.sanitizeMeasurements=function(e,t){if(t){var n={};for(r in t){var r,i=t[r];n[r=it.sanitizeKeyAndAddUniqueness(e,r,n)]=i}t=n}return t},it.sanitizeId=function(e,t){return t?it.sanitizeInput(e,t,it.MAX_ID_LENGTH,69).toString():t},it.sanitizeInput=function(e,t,n,r){var i;return t&&(t=it.trim(t)).length>n&&(i=t.substring(0,n),e.throwInternal($.WARNING,r,"input is too long, it has been truncated to "+n+" characters.",{data:t},!0)),i||t},it.padNumber=function(e){return(e="00"+e).substr(e.length-3)},it.trim=function(e){return X.isString(e)?e.replace(/^\s+|\s+$/g,""):e},it.MAX_NAME_LENGTH=150,it.MAX_ID_LENGTH=128,it.MAX_PROPERTY_LENGTH=8192,it.MAX_STRING_LENGTH=1024,it.MAX_URL_LENGTH=2048,it.MAX_MESSAGE_LENGTH=32768,it.MAX_EXCEPTION_LENGTH=32768,it);function it(){}var ot=w(),at=X.isString,st=null,ct=(ut.createDomEvent=function(e){var t,n=null;return X.isFunction(Event)?n=new Event(e):(t=T())&&t.createEvent&&(n=t.createEvent("Event")).initEvent(e,!0,!0),n},ut.disableStorage=function(){ut._canUseLocalStorage=!1,ut._canUseSessionStorage=!1},ut._getLocalStorageObject=function(){return ut.canUseLocalStorage()?ut._getVerifiedStorageObject(c.LocalStorage):null},ut._getVerifiedStorageObject=function(e){var t,n,r=null;try{if(X.isNullOrUndefined(y()))return null;n=new Date,(r=x(e===c.LocalStorage?"localStorage":"sessionStorage")).setItem(n.toString(),n.toString()),t=r.getItem(n.toString())!==n.toString(),r.removeItem(n.toString()),t&&(r=null)}catch(i){r=null}return r},ut.isInternalApplicationInsightsEndpoint=function(e){return!!~ut._internalEndpoints.indexOf(e.toLowerCase())},ut.canUseLocalStorage=function(){return ut._canUseLocalStorage===undefined&&(ut._canUseLocalStorage=!!ut._getVerifiedStorageObject(c.LocalStorage)),ut._canUseLocalStorage},ut.getStorage=function(e,t){var n=ut._getLocalStorageObject();if(null!==n)try{return n.getItem(t)}catch(r){ut._canUseLocalStorage=!1,e.throwInternal($.WARNING,1,"Browser failed read of local storage. "+ut.getExceptionName(r),{exception:ut.dump(r)})}return null},ut.setStorage=function(e,t,n){var r=ut._getLocalStorageObject();if(null!==r)try{return r.setItem(t,n),!0}catch(i){ut._canUseLocalStorage=!1,e.throwInternal($.WARNING,3,"Browser failed write to local storage. "+ut.getExceptionName(i),{exception:ut.dump(i)})}return!1},ut.removeStorage=function(e,t){var n=ut._getLocalStorageObject();if(null!==n)try{return n.removeItem(t),!0}catch(r){ut._canUseLocalStorage=!1,e.throwInternal($.WARNING,5,"Browser failed removal of local storage item. "+ut.getExceptionName(r),{exception:ut.dump(r)})}return!1},ut._getSessionStorageObject=function(){return ut.canUseSessionStorage()?ut._getVerifiedStorageObject(c.SessionStorage):null},ut.canUseSessionStorage=function(){return ut._canUseSessionStorage===undefined&&(ut._canUseSessionStorage=!!ut._getVerifiedStorageObject(c.SessionStorage)),ut._canUseSessionStorage},ut.getSessionStorageKeys=function(){var e=[];if(ut.canUseSessionStorage())for(var t in x("sessionStorage"))e.push(t);return e},ut.getSessionStorage=function(e,t){var n=ut._getSessionStorageObject();if(null!==n)try{return n.getItem(t)}catch(r){ut._canUseSessionStorage=!1,e.throwInternal($.WARNING,2,"Browser failed read of session storage. "+ut.getExceptionName(r),{exception:ut.dump(r)})}return null},ut.setSessionStorage=function(e,t,n){var r=ut._getSessionStorageObject();if(null!==r)try{return r.setItem(t,n),!0}catch(i){ut._canUseSessionStorage=!1,e.throwInternal($.WARNING,4,"Browser failed write to session storage. "+ut.getExceptionName(i),{exception:ut.dump(i)})}return!1},ut.removeSessionStorage=function(e,t){var n=ut._getSessionStorageObject();if(null!==n)try{return n.removeItem(t),!0}catch(r){ut._canUseSessionStorage=!1,e.throwInternal($.WARNING,6,"Browser failed removal of session storage item. "+ut.getExceptionName(r),{exception:ut.dump(r)})}return!1},ut.disableCookies=function(){X.disableCookies()},ut.canUseCookies=function(e){if(X._canUseCookies===undefined){X._canUseCookies=!1;try{X._canUseCookies=ut.document.cookie!==undefined}catch(t){e.throwInternal($.WARNING,68,"Cannot access document.cookie - "+ut.getExceptionName(t),{exception:ut.dump(t)})}}return X._canUseCookies},ut.disallowsSameSiteNone=function(e){return!(!at(e)||!~e.indexOf("CPU iPhone OS 12")&&!~e.indexOf("iPad; CPU OS 12")&&!(~e.indexOf("Macintosh; Intel Mac OS X 10_14")&&~e.indexOf("Version/")&&~e.indexOf("Safari"))&&(!~e.indexOf("Macintosh; Intel Mac OS X 10_14")||(n=(t=e.length)-40,"AppleWebKit/605.1.15 (KHTML, like Gecko)"!=e.substring(0<=n?n:0,t)))&&!~e.indexOf("Chrome/5")&&!~e.indexOf("Chrome/6")&&(!~e.indexOf("UnrealEngine")||~e.indexOf("Chrome"))&&!~e.indexOf("UCBrowser/12")&&!~e.indexOf("UCBrowser/11"));var t,n},ut.setCookie=function(e,t,n,r){var i;ut.canUseCookies(e)&&(e=i="",r&&(i=";domain="+r),(r=I())&&"https:"===r.protocol&&(e=";secure",null===st&&(st=ut.disallowsSameSiteNone((w()||{}).userAgent)),st||(n+=";SameSite=None")),ut.document.cookie=t+"="+n+i+";path=/"+e)},ut.stringToBoolOrDefault=function(e,t){return void 0===t&&(t=!1),e===undefined||null===e?t:"true"==e.toString().toLowerCase()},ut.getCookie=function(e,t){if(ut.canUseCookies(e)){var n="";if(t&&t.length)for(var r=t+"=",i=ut.document.cookie.split(";"),o=0;o<i.length;o++){var a=i[o];if((a=ut.trim(a))&&!a.indexOf(r)){n=a.substring(r.length,i[o].length);break}}return n}},ut.deleteCookie=function(e,t){ut.canUseCookies(e)&&(ut.document.cookie=t+"=;path=/;expires=Thu, 01 Jan 1970 00:00:01 GMT;")},ut.random32=function(){return X.random32(!0)},ut.getIEVersion=function(e){return void 0===e&&(e=null),~(e=e?e.toLowerCase():ot?(ot.userAgent||"").toLowerCase():"").indexOf("msie")?parseInt(e.split("msie")[1]):e.indexOf("trident/")&&(e=parseInt(e.split("trident/")[1]))?e+4:null},ut.msToTimeSpan=function(e){(isNaN(e)||e<0)&&(e=0);var t=""+(e=Math.round(e))%1e3,n=""+Math.floor(e/1e3)%60,r=""+Math.floor(e/6e4)%60,i=""+Math.floor(e/36e5)%24,e=Math.floor(e/864e5),t=1===t.length?"00"+t:2===t.length?"0"+t:t,n=n.length<2?"0"+n:n,r=r.length<2?"0"+r:r;return(0<e?e+".":"")+(i=i.length<2?"0"+i:i)+":"+r+":"+n+"."+t},ut.isCrossOriginError=function(e,t,n,r,i){return("Script error."===e||"Script error"===e)&&!i},ut.dump=function(e){var t=Object[g].toString.call(e),n="";return"[object Error]"===t?n="{ stack: '"+e.stack+"', message: '"+e.message+"', name: '"+e.name+"'":E()&&(n=C().stringify(e)),t+n},ut.getExceptionName=function(e){return"[object Error]"===Object[g].toString.call(e)?e.name:""},ut.addEventHandler=function(e,t){return Y.Attach(S(),e,t)},ut.IsBeaconApiSupported=function(){return"sendBeacon"in ot&&ot.sendBeacon},ut.getExtension=function(e,t){for(var n=null,r=0;!n&&r<e.length;)e[r]&&e[r].identifier===t&&(n=e[r]),r++;return n},ut.document=T()||{},ut._canUseLocalStorage=undefined,ut._canUseSessionStorage=undefined,ut._internalEndpoints=["https://dc.services.visualstudio.com/v2/track","https://breeze.aimon.applicationinsights.io/v2/track","https://dc-int.services.visualstudio.com/v2/track"],ut.NotSpecified="not_specified",ut.trim=X.strTrim,ut.newId=X.newId,ut.generateW3CId=X.generateW3CId,ut.isArray=X.isArray,ut.isError=X.isError,ut.isDate=X.isDate,ut.toISOStringForIE8=X.toISOString,ut);function ut(){}var lt=(ft.parseUrl=function(e){var t=ft._htmlAnchorIdx,n=ft._htmlAnchorElement,r=n[t];return ft.document.createElement?n[t]||(r=n[t]=ft.document.createElement("a")):r={host:ft.parseHost(e,!0)},r.href=e,++t>=n.length&&(t=0),ft._htmlAnchorIdx=t,r},ft.getAbsoluteUrl=function(e){var t;return(e=ft.parseUrl(e))&&(t=e.href),t},ft.getPathName=function(e){var t;return(e=ft.parseUrl(e))&&(t=e.pathname),t},ft.getCompleteUrl=function(e,t){return e?e.toUpperCase()+" "+t:t},ft.parseHost=function(e,t){return(e=ft.parseFullHost(e,t))&&null!=(t=e.match(/(www[0-9]?\.)?(.[^/:]+)(\:[\d]+)?/i))&&3<t.length&&at(t[2])&&0<t[2].length?t[2]+(t[3]||""):e},ft.parseFullHost=function(e,t){var n=null;return!e||null!=(e=e.match(/(\w*):\/\/(.[^/:]+)(\:[\d]+)?/i))&&2<e.length&&at(e[2])&&0<e[2].length&&(n=e[2]||"",t&&2<e.length&&(t=(e[1]||"").toLowerCase(),e=e[3]||"",("http"==t&&":80"===e||"https"==t&&":443"===e)&&(e=""),n+=e)),n},ft.document=T()||{},ft._htmlAnchorIdx=0,ft._htmlAnchorElement=[null,null,null,null,null],ft);function ft(){}var gt=(pt.ParseDependencyPath=function(e,t,n,r){var i,o,a,s=r,c=r,s=t&&0<t.length?(a=(i=lt.parseUrl(t)).host,s||(null!=i.pathname?("/"!=(o=0===i.pathname.length?"/":i.pathname)[0]&&(o="/"+o),c=i.pathname,rt.sanitizeString(e,n?n+" "+o:o)):rt.sanitizeString(e,t))):a=r;return{target:a,name:s,data:c}},pt);function pt(){}var dt=(mt.Now=function(){var e=N();return e&&e.now&&e.timing&&0<(e=e.now()+e.timing.navigationStart)?e:(new Date).getTime()},mt.GetDuration=function(e,t){var n=null;return 0===e||0===t||X.isNullOrUndefined(e)||X.isNullOrUndefined(t)||(n=t-e),n},mt);function mt(){}var ht,vt=(__extends(yt,function(){}),yt);function yt(){return this}ht=function(){this.ver=1,this.sampleRate=100,this.tags={}},__extends(function(e,t,n){var r=ht.call(this)||this;return r.name=rt.sanitizeString(e,n)||ct.NotSpecified,r.data=t,r.time=X.toISOString(new Date),r.aiDataContract={time:p.Required,iKey:p.Required,name:p.Required,sampleRate:function(){return 100===r.sampleRate?p.Hidden:p.Required},tags:p.Required,data:p.Required},r},ht);var xt,_t=(xt=an=function(){},__extends(St,xt),St);function St(){var e=xt.call(this)||this;return e.ver=2,e.properties={},e.measurements={},e}var Tt,wt=(Tt=_t,__extends(It,Tt),It.envelopeType="Microsoft.ApplicationInsights.{0}.Event",It.dataType="EventData",It);function It(e,t,n,r){var i=Tt.call(this)||this;return i.aiDataContract={ver:p.Required,name:p.Required,properties:p.Default,measurements:p.Default},i.name=rt.sanitizeString(e,t)||ct.NotSpecified,i.properties=rt.sanitizeProperties(e,n),i.measurements=rt.sanitizeMeasurements(e,r),i}var Nt,Et=function(){},Ct=(Nt=an,__extends(bt,Nt),bt);function bt(){var e=Nt.call(this)||this;return e.ver=2,e.exceptions=[],e.properties={},e.measurements={},e}var Dt,Je=function(){this.hasFullStack=!0,this.parsedStack=[]},Pt="error",kt=(Dt=Ct,__extends(At,Dt),At.CreateFromInterface=function(t,e,n,r){var i=e.exceptions&&X.arrMap(e.exceptions,function(e){return Mt.CreateFromInterface(t,e)});return new At(t,__assign({},e,{exceptions:i}),n,r)},At.prototype.toInterface=function(){var e=this.exceptions,t=this.properties,n=this.measurements,r=this.severityLevel,i=(this.ver,this.problemGroup),o=this.id,a=this.isManual;return{ver:"4.0",exceptions:e instanceof Array&&X.arrMap(e,function(e){return e.toInterface()})||undefined,severityLevel:r,properties:t,measurements:n,problemGroup:i,id:o,isManual:a}},At.CreateSimpleException=function(e,t,n,r,i,o){return{exceptions:[{hasFullStack:!0,message:e,stack:i,typeName:t}]}},At.envelopeType="Microsoft.ApplicationInsights.{0}.Exception",At.dataType="ExceptionData",At);function At(e,t,n,r,i,o){var a,s=Dt.call(this)||this;return s.aiDataContract={ver:p.Required,exceptions:p.Required,severityLevel:p.Default,properties:p.Default,measurements:p.Default},"ver"in(a=t)&&"exceptions"in a&&"properties"in a?(s.exceptions=t.exceptions,s.properties=t.properties,s.measurements=t.measurements,t.severityLevel&&(s.severityLevel=t.severityLevel),t.id&&(s.id=t.id),t.problemGroup&&(s.problemGroup=t.problemGroup),s.ver=2,X.isNullOrUndefined(t.isManual)||(s.isManual=t.isManual)):(s.exceptions=[new Mt(e,t)],s.properties=rt.sanitizeProperties(e,n)||{},s.measurements=rt.sanitizeMeasurements(e,r),i&&(s.severityLevel=i),o&&(s.id=o)),s}var Lt,Mt=(Lt=Je,__extends(Rt,Lt),Rt.prototype.toInterface=function(){var e=this.parsedStack instanceof Array&&X.arrMap(this.parsedStack,function(e){return e.toInterface()});return{id:this.id,outerId:this.outerId,typeName:this.typeName,message:this.message,hasFullStack:this.hasFullStack,stack:this.stack,parsedStack:e||undefined}},Rt.CreateFromInterface=function(e,t){var n=t.parsedStack instanceof Array&&X.arrMap(t.parsedStack,function(e){return Ut.CreateFromInterface(e)})||t.parsedStack;return new Rt(e,__assign({},t,{parsedStack:n}))},Rt.parseStack=function(e){if(X.isString(e)){for(var t=e.split("\n"),n=[],r=0,i=0,o=0;o<=t.length;o++){var a=t[o];Ut.regex.test(a)&&(i+=(a=new Ut(t[o],r++)).sizeInBytes,n.push(a))}if(32768<i)for(var s=0,c=n.length-1,u=0,l=s,f=c;s<c;){if(32768<(u+=n[s].sizeInBytes+n[c].sizeInBytes)){var g=f-l+1;n.splice(l,g);break}l=s,f=c,s++,c--}}return n},Rt);function Rt(e,t){var n,r=Lt.call(this)||this;return r.aiDataContract={id:p.Default,outerId:p.Default,typeName:p.Required,message:p.Required,hasFullStack:p.Default,stack:p.Default,parsedStack:p.Array},"hasFullStack"in(n=t)&&"typeName"in n?(r.typeName=t.typeName,r.message=t.message,r.stack=t.stack,r.parsedStack=t.parsedStack,r.hasFullStack=t.hasFullStack):(n=t,ct.isError(n)||(n=n[Pt]||n.evt||n),r.typeName=rt.sanitizeString(e,function(e){var t="";if(e&&!(t=e.typeName||e.name||""))try{var n=/function (.{1,})\(/.exec(e.constructor.toString()),t=n&&1<n.length?n[1]:""}catch(r){}return t}(n))||ct.NotSpecified,r.message=rt.sanitizeMessage(e,t.message)||ct.NotSpecified,t=t.stack,r.parsedStack=Rt.parseStack(t),r.stack=rt.sanitizeException(e,t),r.hasFullStack=ct.isArray(r.parsedStack)&&0<r.parsedStack.length),r}var Ot,Ut=(Ot=Et,__extends(zt,Ot),zt.CreateFromInterface=function(e){return new zt(e,null)},zt.prototype.toInterface=function(){return{level:this.level,method:this.method,assembly:this.assembly,fileName:this.fileName,line:this.line}},zt.regex=/^([\s]+at)?(.*?)(\@|\s\(|\s)([^\(\@\n]+):([0-9]+):([0-9]+)(\)?)$/,zt.baseSize=58,zt);function zt(e,t){var n,r=Ot.call(this)||this;return r.sizeInBytes=0,r.aiDataContract={level:p.Required,method:p.Required,assembly:p.Default,fileName:p.Default,line:p.Default},"string"==typeof e?(n=e,r.level=t,r.method="<no_method>",r.assembly=ct.trim(n),r.fileName="",r.line=0,(n=n.match(zt.regex))&&5<=n.length&&(r.method=ct.trim(n[2])||r.method,r.fileName=ct.trim(n[4]),r.line=parseInt(n[5])||0)):(r.level=e.level,r.method=e.method,r.assembly=e.assembly,r.fileName=e.fileName,r.line=e.line,r.sizeInBytes=0),r.sizeInBytes+=r.method.length,r.sizeInBytes+=r.fileName.length,r.sizeInBytes+=r.assembly.length,r.sizeInBytes+=zt.baseSize,r.sizeInBytes+=r.level.toString().length,r.sizeInBytes+=r.line.toString().length,r}var Vt,Gt,Je=(Vt=an,__extends(jt,Vt),jt);function jt(){var e=Vt.call(this)||this;return e.ver=2,e.metrics=[],e.properties={},e.measurements={},e}(Et=Gt={})[Et.Measurement=0]="Measurement",Et[Et.Aggregation=1]="Aggregation";var qt,Ft=(qt=function(){this.kind=Gt.Measurement},__extends(Bt,qt),Bt);function Bt(){var e=qt.apply(this,arguments)||this;return e.aiDataContract={name:p.Required,kind:p.Default,value:p.Required,count:p.Default,min:p.Default,max:p.Default,stdDev:p.Default},e}var Kt,Wt=(Kt=Je,__extends(Ht,Kt),Ht.envelopeType="Microsoft.ApplicationInsights.{0}.Metric",Ht.dataType="MetricData",Ht);function Ht(e,t,n,r,i,o,a,s){var c=Kt.call(this)||this;c.aiDataContract={ver:p.Required,metrics:p.Required,properties:p.Default};var u=new Ft;return u.count=0<r?r:undefined,u.max=isNaN(o)||null===o?undefined:o,u.min=isNaN(i)||null===i?undefined:i,u.name=rt.sanitizeString(e,t)||ct.NotSpecified,u.value=n,c.metrics=[u],c.properties=rt.sanitizeProperties(e,a),c.measurements=rt.sanitizeMeasurements(e,s),c}var Xt,Je=(Xt=_t,__extends(Jt,Xt),Jt);function Jt(){var e=Xt.call(this)||this;return e.ver=2,e.properties={},e.measurements={},e}var $t,Qt=($t=Je,__extends(Yt,$t),Yt.envelopeType="Microsoft.ApplicationInsights.{0}.Pageview",Yt.dataType="PageviewData",Yt);function Yt(e,t,n,r,i,o,a){var s=$t.call(this)||this;return s.aiDataContract={ver:p.Required,name:p.Default,url:p.Default,duration:p.Default,properties:p.Default,measurements:p.Default,id:p.Default},s.id=rt.sanitizeId(e,a),s.url=rt.sanitizeUrl(e,n),s.name=rt.sanitizeString(e,t)||ct.NotSpecified,isNaN(r)||(s.duration=ct.msToTimeSpan(r)),s.properties=rt.sanitizeProperties(e,i),s.measurements=rt.sanitizeMeasurements(e,o),s}var Zt,_t=(Zt=an,__extends(en,Zt),en);function en(){var e=Zt.call(this)||this;return e.ver=2,e.success=!0,e.properties={},e.measurements={},e}var tn,nn=(tn=_t,__extends(rn,tn),rn.envelopeType="Microsoft.ApplicationInsights.{0}.RemoteDependency",rn.dataType="RemoteDependencyData",rn);function rn(e,t,n,r,i,o,a,s,c,u,l,f){void 0===c&&(c="Ajax");var g=tn.call(this)||this;return g.aiDataContract={id:p.Required,ver:p.Required,name:p.Default,resultCode:p.Default,duration:p.Default,success:p.Default,data:p.Default,target:p.Default,type:p.Default,properties:p.Default,measurements:p.Default,kind:p.Default,value:p.Default,count:p.Default,min:p.Default,max:p.Default,stdDev:p.Default,dependencyKind:p.Default,dependencySource:p.Default,commandName:p.Default,dependencyTypeName:p.Default},g.id=t,g.duration=ct.msToTimeSpan(i),g.success=o,g.resultCode=a+"",g.type=rt.sanitizeString(e,c),s=gt.ParseDependencyPath(e,n,s,r),g.data=rt.sanitizeUrl(e,r)||s.data,g.target=rt.sanitizeString(e,s.target),u&&(g.target=g.target+" | "+u),g.name=rt.sanitizeString(e,s.name),g.properties=rt.sanitizeProperties(e,l),g.measurements=rt.sanitizeMeasurements(e,f),g}var on,an=(on=an,__extends(sn,on),sn);function sn(){var e=on.call(this)||this;return e.ver=2,e.properties={},e.measurements={},e}var cn,un=(cn=an,__extends(ln,cn),ln.envelopeType="Microsoft.ApplicationInsights.{0}.Message",ln.dataType="MessageData",ln);function ln(e,t,n,r,i){var o=cn.call(this)||this;return o.aiDataContract={ver:p.Required,message:p.Required,severityLevel:p.Default,properties:p.Default},t=t||ct.NotSpecified,o.message=rt.sanitizeMessage(e,t),o.properties=rt.sanitizeProperties(e,r),o.measurements=rt.sanitizeMeasurements(e,i),n&&(o.severityLevel=n),o}var fn,Je=(fn=Je,__extends(gn,fn),gn);function gn(){var e=fn.call(this)||this;return e.ver=2,e.properties={},e.measurements={},e}var pn,dn,mn,hn=(pn=Je,__extends(vn,pn),vn.envelopeType="Microsoft.ApplicationInsights.{0}.PageviewPerformance",vn.dataType="PageviewPerformanceData",vn);function vn(e,t,n,r,i,o,a){var s=pn.call(this)||this;return s.aiDataContract={ver:p.Required,name:p.Default,url:p.Default,duration:p.Default,perfTotal:p.Default,networkConnect:p.Default,sentRequest:p.Default,receivedResponse:p.Default,domProcessing:p.Default,properties:p.Default,measurements:p.Default},s.url=rt.sanitizeUrl(e,n),s.name=rt.sanitizeString(e,t)||ct.NotSpecified,s.properties=rt.sanitizeProperties(e,i),s.measurements=rt.sanitizeMeasurements(e,o),a&&(s.domProcessing=a.domProcessing,s.duration=a.duration,s.networkConnect=a.networkConnect,s.perfTotal=a.perfTotal,s.receivedResponse=a.receivedResponse,s.sentRequest=a.sentRequest),s}dn=vt,__extends(function(e,t){var n=dn.call(this)||this;return n.aiDataContract={baseType:p.Required,baseData:p.Required},n.baseType=e,n.baseData=t,n},dn),(vt=mn={})[vt.Verbose=0]="Verbose",vt[vt.Information=1]="Information",vt[vt.Warning=2]="Warning",vt[vt.Error=3]="Error",vt[vt.Critical=4]="Critical";var yn=(xn.create=function(e,t,n,r,i,o){if(n=rt.sanitizeString(r,n)||ct.NotSpecified,X.isNullOrUndefined(e)||X.isNullOrUndefined(t)||X.isNullOrUndefined(n))throw Error("Input doesn't contain all required fields");var a={name:n,time:X.toISOString(new Date),iKey:"",ext:o||{},tags:[],data:{},baseType:t,baseData:e};if(!X.isNullOrUndefined(i))for(var s in i)i.hasOwnProperty(s)&&(a.data[s]=i[s]);return a},xn);function xn(){}var _n=function zn(h,v,t,y){xe(zn,this,function(e){var l,n=X.arrForEach,f=X.isNullOrUndefined,g=null,p=[],d=!1;function m(){t&&n(t.getTransmissionControls(),function(e){n(e,function(e){return e.flush(!0)})})}t&&(l=t.logger),e.trackPageView=function(r,i){var o=r.name;!f(o)&&"string"==typeof o||(e=T(),o=r.name=e&&e.title||"");var e,a=r.uri;if(!f(a)&&"string"==typeof a||(e=I(),a=r.uri=e&&e.href||""),!y.isPerformanceTimingSupported())return h.sendPageViewInternal(r,i),m(),void l.throwInternal($.WARNING,25,"trackPageView: navigation timing API used for calculation of page duration is not supported in this browser. This page view will be collected without duration and timing info.");var s,t,c=!1,u=y.getPerformanceTiming().navigationStart;0<u&&(s=dt.GetDuration(u,+new Date),y.shouldCollectDuration(s)||(s=undefined)),f(i)||f(i.duration)||(t=i.duration),!v&&isNaN(t)||(isNaN(t)&&((i=i||{}).duration=s),h.sendPageViewInternal(r,i),m(),c=!0),i=i||{},t=function(){var e,t=!1;try{y.isPerformanceTimingDataReady()?(t=!0,e={name:o,uri:a},y.populatePageViewPerformanceEvent(e),e.isValid||c?(c||(i.duration=e.durationMs,h.sendPageViewInternal(r,i)),d||(h.sendPageViewPerformanceInternal(e,i),d=!0)):(i.duration=s,h.sendPageViewInternal(r,i))):0<u&&6e4<dt.GetDuration(u,+new Date)&&(t=!0,c||(i.duration=6e4,h.sendPageViewInternal(r,i)))}catch(n){l.throwInternal($.CRITICAL,38,"trackPageView failed on page load calculation: "+ct.getExceptionName(n),{exception:ct.dump(n)})}return t},p.push(t),g=g||setInterval(function(){var e=p.slice(0),t=!1;p=[],n(e,function(e){e()?t=!0:p.push(e)}),0===p.length&&(clearInterval(g),g=null),t&&m()},100)}})},Sn=(Tn.prototype.trackPreviousPageVisit=function(e,t){try{var n=this.restartPageVisitTimer(e,t);n&&this.pageVisitTimeTrackingHandler(n.pageName,n.pageUrl,n.pageVisitTime)}catch(r){this._logger.warnToConsole("Auto track page visit time failed, metric will not be collected: "+ct.dump(r))}},Tn.prototype.restartPageVisitTimer=function(e,t){try{var n=this.stopPageVisitTimer();return this.startPageVisitTimer(e,t),n}catch(r){return this._logger.warnToConsole("Call to restart failed: "+ct.dump(r)),null}},Tn.prototype.startPageVisitTimer=function(e,t){try{if(ct.canUseSessionStorage()){if(null!=ct.getSessionStorage(this._logger,this.prevPageVisitDataKeyName))throw Error("Cannot call startPageVisit consecutively without first calling stopPageVisit");var n=new wn(e,t),n=C().stringify(n);ct.setSessionStorage(this._logger,this.prevPageVisitDataKeyName,n)}}catch(r){this._logger.warnToConsole("Call to start failed: "+ct.dump(r))}},Tn.prototype.stopPageVisitTimer=function(){try{if(ct.canUseSessionStorage()){var e=X.dateNow(),t=ct.getSessionStorage(this._logger,this.prevPageVisitDataKeyName);return t&&E()?((t=C().parse(t)).pageVisitTime=e-t.pageVisitStartTime,ct.removeSessionStorage(this._logger,this.prevPageVisitDataKeyName),t):null}return null}catch(n){return this._logger.warnToConsole("Stop page visit timer failed: "+ct.dump(n)),null}},Tn);function Tn(e,t){this.prevPageVisitDataKeyName="prevPageVisitData",this.pageVisitTimeTrackingHandler=t,this._logger=e}var wn=function(e,t){this.pageVisitStartTime=X.dateNow(),this.pageName=e,this.pageUrl=t},In=(Nn.prototype.populatePageViewPerformanceEvent=function(e){e.isValid=!1;var t,n,r,i,o=this.getPerformanceNavigationTiming(),a=this.getPerformanceTiming();(o||a)&&(a=o?(t=o.duration,n=dt.GetDuration(o.startTime,o.connectEnd),r=dt.GetDuration(o.requestStart,o.responseStart),i=dt.GetDuration(o.responseStart,o.responseEnd),dt.GetDuration(o.responseEnd,o.loadEventEnd)):(t=dt.GetDuration(a.navigationStart,a.loadEventEnd),n=dt.GetDuration(a.navigationStart,a.connectEnd),r=dt.GetDuration(a.requestStart,a.responseStart),i=dt.GetDuration(a.responseStart,a.responseEnd),dt.GetDuration(a.responseEnd,a.loadEventEnd)),0===t?this._logger.throwInternal($.WARNING,10,"error calculating page view performance.",{total:t,network:n,request:r,response:i,dom:a}):this.shouldCollectDuration(t,n,r,i,a)?t<Math.floor(n)+Math.floor(r)+Math.floor(i)+Math.floor(a)?this._logger.throwInternal($.WARNING,8,"client performance math error.",{total:t,network:n,request:r,response:i,dom:a}):(e.durationMs=t,e.perfTotal=e.duration=ct.msToTimeSpan(t),e.networkConnect=ct.msToTimeSpan(n),e.sentRequest=ct.msToTimeSpan(r),e.receivedResponse=ct.msToTimeSpan(i),e.domProcessing=ct.msToTimeSpan(a),e.isValid=!0):this._logger.throwInternal($.WARNING,45,"Invalid page load duration value. Browser perf data won't be sent.",{total:t,network:n,request:r,response:i,dom:a}))},Nn.prototype.getPerformanceTiming=function(){return this.isPerformanceTimingSupported()?N().timing:null},Nn.prototype.getPerformanceNavigationTiming=function(){return this.isPerformanceNavigationTimingSupported()?N().getEntriesByType("navigation")[0]:null},Nn.prototype.isPerformanceNavigationTimingSupported=function(){var e=N();return e&&e.getEntriesByType&&0<e.getEntriesByType("navigation").length},Nn.prototype.isPerformanceTimingSupported=function(){var e=N();return e&&e.timing},Nn.prototype.isPerformanceTimingDataReady=function(){var e=N();return(e=e?e.timing:0)&&0<e.domainLookupStart&&0<e.navigationStart&&0<e.responseStart&&0<e.requestStart&&0<e.loadEventEnd&&0<e.responseEnd&&0<e.connectEnd&&0<e.domLoading},Nn.prototype.shouldCollectDuration=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=["googlebot","adsbot-google","apis-google","mediapartners-google"],r=(w()||{}).userAgent,i=!1;if(r)for(var o=0;o<n.length;o++)i=i||!!~r.toLowerCase().indexOf(n[o]);if(i)return!1;for(o=0;o<e.length;o++)if(e[o]<0||e[o]>=this.MAX_DURATION_ALLOWED)return!1;return!0},Nn);function Nn(e){this.MAX_DURATION_ALLOWED=36e5,e&&(this._logger=e.logger)}var En="duration";function Cn(e,t){e&&e.dispatchEvent&&t&&e.dispatchEvent(t)}var bn,Ue=(bn=Ue,__extends(Dn,bn),Dn.getDefaultConfig=function(e){return(e=e||{}).sessionRenewalMs=18e5,e.sessionExpirationMs=864e5,e.disableExceptionTracking=ct.stringToBoolOrDefault(e.disableExceptionTracking),e.autoTrackPageVisitTime=ct.stringToBoolOrDefault(e.autoTrackPageVisitTime),e.overridePageViewDuration=ct.stringToBoolOrDefault(e.overridePageViewDuration),e.enableUnhandledPromiseRejectionTracking=ct.stringToBoolOrDefault(e.enableUnhandledPromiseRejectionTracking),(isNaN(e.samplingPercentage)||e.samplingPercentage<=0||100<=e.samplingPercentage)&&(e.samplingPercentage=100),e.isCookieUseDisabled=ct.stringToBoolOrDefault(e.isCookieUseDisabled),e.isStorageUseDisabled=ct.stringToBoolOrDefault(e.isStorageUseDisabled),e.isBrowserLinkTrackingEnabled=ct.stringToBoolOrDefault(e.isBrowserLinkTrackingEnabled),e.enableAutoRouteTracking=ct.stringToBoolOrDefault(e.enableAutoRouteTracking),e.namePrefix=e.namePrefix||"",e},Dn.prototype.processTelemetry=function(o,a){var s=this;De(this.core,function(){return s.identifier+":processTelemetry"},function(){var e=!1,t=s._telemetryInitializers.length;a=s._getTelCtx(a);for(var n=0;n<t;++n){var r=s._telemetryInitializers[n];if(r)try{if(!1===r.call(null,o)){e=!0;break}}catch(i){a.diagLog().throwInternal($.CRITICAL,64,"One of telemetry initializers failed, telemetry item will not be sent: "+ct.getExceptionName(i),{exception:ct.dump(i)},!0)}}e||s.processNext(o,a)},function(){return{item:o}},!o.sync)},Dn.prototype.trackEvent=function(e,t){try{var n=yn.create(e,wt.dataType,wt.envelopeType,this.diagLog(),t);this.core.track(n)}catch(r){this.diagLog().throwInternal($.WARNING,39,"trackTrace failed, trace will not be collected: "+ct.getExceptionName(r),{exception:ct.dump(r)})}},Dn.prototype.startTrackEvent=function(e){try{this._eventTracking.start(e)}catch(t){this.diagLog().throwInternal($.CRITICAL,29,"startTrackEvent failed, event will not be collected: "+ct.getExceptionName(t),{exception:ct.dump(t)})}},Dn.prototype.stopTrackEvent=function(e,t,n){try{this._eventTracking.stop(e,undefined,t)}catch(r){this.diagLog().throwInternal($.CRITICAL,30,"stopTrackEvent failed, event will not be collected: "+ct.getExceptionName(r),{exception:ct.dump(r)})}},Dn.prototype.trackTrace=function(e,t){try{var n=yn.create(e,un.dataType,un.envelopeType,this.diagLog(),t);this.core.track(n)}catch(r){this.diagLog().throwInternal($.WARNING,39,"trackTrace failed, trace will not be collected: "+ct.getExceptionName(r),{exception:ct.dump(r)})}},Dn.prototype.trackMetric=function(e,t){try{var n=yn.create(e,Wt.dataType,Wt.envelopeType,this.diagLog(),t);this.core.track(n)}catch(r){this.diagLog().throwInternal($.CRITICAL,36,"trackMetric failed, metric will not be collected: "+ct.getExceptionName(r),{exception:ct.dump(r)})}},Dn.prototype.trackPageView=function(e,t){try{var n=e||{};this._pageViewManager.trackPageView(n,__assign({},n.properties,n.measurements,t)),this.config.autoTrackPageVisitTime&&this._pageVisitTimeManager.trackPreviousPageVisit(n.name,n.uri)}catch(r){this.diagLog().throwInternal($.CRITICAL,37,"trackPageView failed, page view will not be collected: "+ct.getExceptionName(r),{exception:ct.dump(r)})}},Dn.prototype.sendPageViewInternal=function(e,t,n){var r=T();r&&(e.refUri=e.refUri===undefined?r.referrer:e.refUri),n=yn.create(e,Qt.dataType,Qt.envelopeType,this.diagLog(),t,n),this.core.track(n),this._trackAjaxAttempts=0},Dn.prototype.sendPageViewPerformanceInternal=function(e,t,n){n=yn.create(e,hn.dataType,hn.envelopeType,this.diagLog(),t,n),this.core.track(n)},Dn.prototype.trackPageViewPerformance=function(e,t){try{this._pageViewPerformanceManager.populatePageViewPerformanceEvent(e),this.sendPageViewPerformanceInternal(e,t)}catch(n){this.diagLog().throwInternal($.CRITICAL,37,"trackPageViewPerformance failed, page view will not be collected: "+ct.getExceptionName(n),{exception:ct.dump(n)})}},Dn.prototype.startTrackPage=function(e){try{var t;"string"!=typeof e&&(e=(t=T())&&t.title||""),this._pageTracking.start(e)}catch(n){this.diagLog().throwInternal($.CRITICAL,31,"startTrackPage failed, page view may not be collected: "+ct.getExceptionName(n),{exception:ct.dump(n)})}},Dn.prototype.stopTrackPage=function(e,t,n,r){try{var i;"string"!=typeof e&&(e=(i=T())&&i.title||""),"string"!=typeof t&&(t=(i=I())&&i.href||""),this._pageTracking.stop(e,t,n,r),this.config.autoTrackPageVisitTime&&this._pageVisitTimeManager.trackPreviousPageVisit(e,t)}catch(o){this.diagLog().throwInternal($.CRITICAL,32,"stopTrackPage failed, page view will not be collected: "+ct.getExceptionName(o),{exception:ct.dump(o)})}},Dn.prototype.sendExceptionInternal=function(e,t,n){e=new kt(this.diagLog(),e.exception||Error(ct.NotSpecified),e.properties,e.measurements,e.severityLevel,e.id).toInterface(),n=yn.create(e,kt.dataType,kt.envelopeType,this.diagLog(),t,n),this.core.track(n)},Dn.prototype.trackException=function(e,t){try{this.sendExceptionInternal(e,t)}catch(n){this.diagLog().throwInternal($.CRITICAL,35,"trackException failed, exception will not be collected: "+ct.getExceptionName(n),{exception:ct.dump(n)})}},Dn.prototype._onerror=function(e){try{var t,n={url:e&&e.url||(T()||{}).URL,lineNumber:e.lineNumber,columnNumber:e.columnNumber,message:e.message};ct.isCrossOriginError(e.message,e.url,e.lineNumber,e.columnNumber,e.error)?this._sendCORSException(n.url):(ct.isError(e.error)||(t="window.onerror@"+n.url+":"+e.lineNumber+":"+(e.columnNumber||0),e.error=Error(e.message),e.error.stack=t),this.trackException({exception:e.error,severityLevel:mn.Error},n))}catch(i){var r=e.error?e.error.name+", "+e.error.message:"null";this.diagLog().throwInternal($.CRITICAL,11,"_onError threw exception while logging error, error will not be collected: "+ct.getExceptionName(i),{exception:ct.dump(i),errorString:r})}},Dn.prototype.addTelemetryInitializer=function(e){this._telemetryInitializers.push(e)},Dn.prototype.initialize=function(e,t,n,r){var o=this;if(!this.isInitialized()){if(X.isNullOrUndefined(t))throw Error("Error initializing");bn.prototype.initialize.call(this,e,t,n,r),this.setInitialized(!1);var i=this._getTelCtx(),a=this.identifier;this._globalconfig={instrumentationKey:e.instrumentationKey,endpointUrl:e.endpointUrl||"https://dc.services.visualstudio.com/v2/track"},this.config=i.getExtCfg(a);var s=Dn.getDefaultConfig();if(s!==undefined){for(var c in s)this.config[c]=i.getConfig(a,c,s[c]);if(this._globalconfig)for(var c in s)this._globalconfig[c]===undefined&&(this._globalconfig[c]=s[c])}this.config.isCookieUseDisabled&&ct.disableCookies(),this.config.isStorageUseDisabled&&ct.disableStorage(),t={instrumentationKey:function(){return e.instrumentationKey},accountId:function(){return o.config.accountId||e.accountId},sessionRenewalMs:function(){return o.config.sessionRenewalMs||e.sessionRenewalMs},sessionExpirationMs:function(){return o.config.sessionExpirationMs||e.sessionExpirationMs},sampleRate:function(){return o.config.samplingPercentage||e.samplingPercentage},cookieDomain:function(){return o.config.cookieDomain||e.cookieDomain},sdkExtension:function(){return o.config.sdkExtension||e.sdkExtension},isBrowserLinkTrackingEnabled:function(){return o.config.isBrowserLinkTrackingEnabled||e.isBrowserLinkTrackingEnabled},appId:function(){return o.config.appId||e.appId}},this._pageViewPerformanceManager=new In(this.core),this._pageViewManager=new _n(this,this.config.overridePageViewDuration,this.core,this._pageViewPerformanceManager),this._pageVisitTimeManager=new Sn(this.diagLog(),function(e,t,n){return o.trackPageVisitTime(e,t,n)}),this._telemetryInitializers=this._telemetryInitializers||[],this._addDefaultTelemetryInitializers(t),this._eventTracking=new Pn(this.diagLog(),"trackEvent"),this._eventTracking.action=function(e,t,n,r){(r=r||{})[En]=n.toString(),o.trackEvent({name:e,properties:r})},this._pageTracking=new Pn(this.diagLog(),"trackPageView"),this._pageTracking.action=function(e,t,n,r,i){X.isNullOrUndefined(r)&&(r={}),r[En]=n.toString(),i={name:e,uri:t,properties:r,measurements:i},o.sendPageViewInternal(i,r)};var u,l,f,g,p,d=S(),r=typeof history===v&&history?history:x("history"),m=I(),h=this;!1===this.config.disableExceptionTracking&&!this.config.autoExceptionInstrumented&&d&&(u=d.onerror,d.onerror=function(e,t,n,r,i){var o=u&&u(e,t,n,r,i);return!0!==o&&h._onerror({message:e,url:t,lineNumber:n,columnNumber:r,error:i}),o},this.config.autoExceptionInstrumented=!0),!1===this.config.disableExceptionTracking&&!0===this.config.enableUnhandledPromiseRejectionTracking&&!this.config.autoUnhandledPromiseInstrumented&&d&&(l=d[t="onunhandledrejection"],d[t]=function(e){var t=l&&l.call(d,e);return!0!==t&&h._onerror({message:e.reason.toString(),error:e.reason instanceof Error?e.reason:Error(e.reason.toString()),url:m?m.href:"",lineNumber:0,columnNumber:0}),t},this.config.autoUnhandledPromiseInstrumented=!0),!0===this.config.enableAutoRouteTracking&&r&&X.isFunction(r.pushState)&&X.isFunction(r.replaceState)&&d&&"undefined"!=typeof Event&&(f=this,X.arrForEach(n,function(e){"AppInsightsPropertiesPlugin"===e.identifier&&(o._properties=e)}),r.pushState=(p=r.pushState,function(){var e=p.apply(this,arguments);return Cn(d,ct.createDomEvent(f.config.namePrefix+"pushState")),Cn(d,ct.createDomEvent(f.config.namePrefix+"locationchange")),e}),r.replaceState=(g=r.replaceState,function(){var e=g.apply(this,arguments);return Cn(d,ct.createDomEvent(f.config.namePrefix+"replaceState")),Cn(d,ct.createDomEvent(f.config.namePrefix+"locationchange")),e}),d.addEventListener&&(d.addEventListener(f.config.namePrefix+"popstate",function(){Cn(d,ct.createDomEvent(f.config.namePrefix+"locationchange"))}),d.addEventListener(f.config.namePrefix+"locationchange",function(){f._properties&&f._properties.context&&f._properties.context.telemetryTrace&&(f._properties.context.telemetryTrace.traceID=ct.generateW3CId(),f._properties.context.telemetryTrace.name=m&&m.pathname||"_unknown_"),o._currUri&&(o._prevUri=o._currUri),o._currUri=m&&m.href||"",setTimeout((function(e){f.trackPageView({refUri:e,properties:{duration:0}})}).bind(o,o._prevUri),f.autoRoutePVDelay)}))),this.setInitialized(!0)}},Dn.prototype.trackPageVisitTime=function(e,t,n){t={PageName:e,PageUrl:t},this.trackMetric({name:"PageVisitTime",average:n,max:n,min:n,sampleCount:1},t)},Dn.prototype._addDefaultTelemetryInitializers=function(e){var r;e.isBrowserLinkTrackingEnabled()||(r=["/browserLinkSignalR/","/__browserLink/"],this._addTelemetryInitializer(function(e){if(e.baseType===nn.dataType){var t=e.baseData;if(t)for(var n=0;n<r.length;n++)if(t.target&&~t.target.indexOf(r[n]))return!1}return!0}))},Dn.prototype._addTelemetryInitializer=function(e){this._telemetryInitializers.push(e)},Dn.prototype._sendCORSException=function(e){var t={message:"Script error: The browser's same-origin policy prevents us from getting the details of this exception. Consider using the 'crossorigin' attribute.",url:e,lineNumber:0,columnNumber:0,error:undefined},e=yn.create(t,kt.dataType,kt.envelopeType,this.diagLog(),{url:e});this.core.track(e)},Dn.Version="2.5.9",Dn);function Dn(){var e=bn.call(this)||this;e.identifier="ApplicationInsightsAnalytics",e.priority=180,e.autoRoutePVDelay=500,e._trackAjaxAttempts=0;var t=I();return e._prevUri=t&&t.href||"",e}var Pn=(kn.prototype.start=function(e){"undefined"!=typeof this._events[e]&&this._logger.throwInternal($.WARNING,62,"start was called more than once for this event without calling stop.",{name:this._name,key:e},!0),this._events[e]=+new Date},kn.prototype.stop=function(e,t,n,r){var i,o=this._events[e];isNaN(o)?this._logger.throwInternal($.WARNING,63,"stop was called without a corresponding start.",{name:this._name,key:e},!0):(i=+new Date,i=dt.GetDuration(o,i),this.action(e,t,i,n,r)),delete this._events[e],this._events[e]=undefined},kn);function kn(e,t){this._name=t,this._events={},this._logger=e}e.ApplicationInsights=Ue,function(e,t,n){var r=Object.defineProperty;if(r)try{return r(e,t,n)}catch(i){}typeof n.value!==undefined&&(e[t]=n.value)}(e,"__esModule",{value:!0})};"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((e.Microsoft=e.Microsoft||{},e.Microsoft.ApplicationInsights=e.Microsoft.ApplicationInsights||{}));
var e=this,t=function(e){"use strict";var r="function",i="object",t="undefined",o="prototype",a="hasOwnProperty";function n(){return typeof globalThis!==t&&globalThis?globalThis:typeof self!==t&&self?self:typeof window!==t&&window?window:typeof global!==t&&global?global:null}function s(e){var t=Object.create;if(t)return t(e);if(null==e)return{};if((t=typeof e)!==i&&t!==r)throw new TypeError("Object prototype may only be an Object:"+e);function n(){}return n[o]=e,new n}var c,p,u=function(e,t){return(u=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t[a](n)&&(e[n]=t[n])})(e,t)};nt=function(e,t){function n(){this.constructor=e}u(e,t),e[o]=null===t?s(t):(n[o]=t[o],new n)},(Be=wt=n()||{}).__assign||(Be.__assign=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object[o][a].call(t,i)&&(e[i]=t[i]);return e}),Be.__extends||(Be.__extends=nt),__assign=__assign||wt.__assign,__extends=__extends||wt.__extends,(pn=c={})[pn.LocalStorage=0]="LocalStorage",pn[pn.SessionStorage=1]="SessionStorage",(Ct=p=p||{})[Ct.Default=0]="Default",Ct[Ct.Required=1]="Required",Ct[Ct.Array=2]="Array",Ct[Ct.Hidden=4]="Hidden",(Lt={})[Lt.AI=0]="AI",Lt[Lt.AI_AND_W3C=1]="AI_AND_W3C",Lt[Lt.W3C=2]="W3C";var l=2,f=t,m=i,g=o,d="window",h="location",v="JSON",y=n;function x(e){var t=y();return t&&t[e]?t[e]:e===d&&_()?window:null}function _(){return typeof window===m&&window}function S(){return _()?window:x(d)}function T(){return typeof document===m&&document?document:x("document")}function I(){return typeof navigator===m&&navigator?navigator:x("navigator")}function w(){return typeof location===m&&location?location:x(h)}function N(){return x("performance")}function E(){return typeof JSON===m&&JSON||null!==x(v)}function C(){return E()?JSON||x(v):null}var b="attachEvent",D="addEventListener",P="detachEvent",k="removeEventListener",A=4294967296,L=4294967295,M=null,R=!1,O=123456789,U=987654321;function z(e){e<0&&(e>>>=0),O=123456789+e&L,U=987654321-e&L,R=!0}function V(){z(Math.random()*A^(new Date).getTime())}function G(e,t){return typeof e===t}function j(e){return G(e,t)||e===undefined}function q(e){return j(e)||null===e}function F(e,t){return e&&Object[o].hasOwnProperty.call(e,t)}function B(e){return G(e,i)}function K(e){return G(e,r)}function W(e,t,n,r){void 0===r&&(r=!1);var i=!1;if(!q(e))try{q(e[D])?q(e[b])||(e[b]("on"+t,n),i=!0):(e[D](t,n,r),i=!0)}catch(o){}return i}function H(e,t,n,r){if(void 0===r&&(r=!1),!q(e))try{q(e[k])?q(e[P])||e[P]("on"+t,n):e[k](t,n,r)}catch(i){}}function X(e,t){if(e&&B(e))for(var n in e)F(e,n)&&t.call(e,n,e[n])}var J=($.isDate=function(e){return"[object Date]"===Object[o].toString.call(e)},$.isArray=function(e){return"[object Array]"===Object[o].toString.call(e)},$.isError=function(e){return"[object Error]"===Object[o].toString.call(e)},$.isString=function(e){return G(e,"string")},$.isNumber=function(e){return G(e,"number")},$.isBoolean=function(e){return G(e,"boolean")},$.disableCookies=function(){$._canUseCookies=!1},$.newGuid=function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(Y,function(e){var t=0|$.randomValue(15);return("x"===e?t:3&t|8).toString(16)})},$.toISOString=function(e){if($.isDate(e)){var t=function(e){return 1===(e+="").length&&(e="0"+e),e};return e.getUTCFullYear()+"-"+t(1+e.getUTCMonth())+"-"+t(e.getUTCDate())+"T"+t(e.getUTCHours())+":"+t(e.getUTCMinutes())+":"+t(e.getUTCSeconds())+"."+((e.getUTCMilliseconds()/1e3).toFixed(3)+"").slice(2,5)+"Z"}},$.arrForEach=function(e,t,n){for(var r=e.length,i=0;i<r;i++)i in e&&t.call(n||e,e[i],i,e)},$.arrIndexOf=function(e,t,n){for(var r=e.length,i=Math.max(0<=(n=n||0)?n:r-Math.abs(n),0);i<r;i++)if(i in e&&e[i]===t)return i;return-1},$.arrMap=function(e,t,n){for(var r=e.length,i=n||e,o=Array(r),a=0;a<r;a++)a in e&&(o[a]=t.call(i,e[a],e));return o},$.arrReduce=function(e,t,n){var r,i=e.length,o=0;if(3<=arguments.length)r=n;else{for(;o<i&&!(o in e);)o++;r=e[o++]}for(;o<i;)o in e&&(r=t(r,e[o],o,e)),o++;return r},$.strTrim=function(e){return $.isString(e)?e.replace(/^\s+|\s+$/g,""):e},$.objKeys=function(e){var t=!{toString:null}.propertyIsEnumerable("toString");if(!(K(e)||B(e)&&null!==e))throw new TypeError("objKeys called on non-object");var n,r=[];for(n in e)F(e,n)&&r.push(n);if(t)for(var i=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],o=i.length,a=0;a<o;a++)F(e,i[a])&&r.push(i[a]);return r},$.objDefineAccessors=function(e,t,n,r){var i=Object.defineProperty;if(i)try{var o={enumerable:!0,configurable:!0};return n&&(o.get=n),r&&(o.set=r),i(e,t,o),!0}catch(a){}return!1},$.addEventHandler=function(e,t){var n=!1,r=S();return r&&(n=W(r,e,t),n=W(r.body,e,t)||n),(r=T())&&(n=Z.Attach(r,e,t)||n),n},$.dateNow=function(){var e=Date;return e.now?e.now():(new e).getTime()},$.perfNow=function(){var e=N();return e&&e.now?e.now():$.dateNow()},$.newId=function(e){void 0===e&&(e=22);for(var t=$.random32()>>>0,n=0,r="";r.length<e;)r+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"[0|63&t],t>>>=6,5==++n&&(t=($.random32()<<2&4294967295|3&t)>>>0,n=0);return r},$.isIE=function(){var e;return null===M&&(e=((I()||{}).userAgent||"").toLowerCase(),M=!!~e.indexOf("msie")||!!~e.indexOf("trident/")),M},$.randomValue=function(e){return 0<e?Math.floor($.random32()/L*(e+1))>>>0:0},$.random32=function(e){var t=(t=x("crypto")||x("msCrypto"))&&t.getRandomValues?t.getRandomValues(new Uint32Array(1))[0]&L:$.isIE()?(R||V(),$.mwcRandom32()&L):Math.floor(A*Math.random()|0);return e||(t>>>=0),t},$.mwcRandomSeed=function(e){e?z(e):V()},$.mwcRandom32=function(e){var t=((U=36969*(65535&U)+(U>>16)&L)<<16)+(65535&(O=18e3*(65535&O)+(O>>16)&L))>>>0&L|0;return e||(t>>>=0),t},$.generateW3CId=function(){for(var e,t=["0","1","2","3","4","5","6","7","8","9","a","b","c","d","e","f"],n="",r=0;r<4;r++)n+=t[15&(e=$.random32())]+t[e>>4&15]+t[e>>8&15]+t[e>>12&15]+t[e>>16&15]+t[e>>20&15]+t[e>>24&15]+t[e>>28&15];var i=t[8+(3&$.random32())|0];return n.substr(0,8)+n.substr(9,4)+"4"+n.substr(13,3)+i+n.substr(16,3)+n.substr(19,12)},$.isTypeof=G,$.isUndefined=j,$.isNullOrUndefined=q,$.hasOwnProperty=F,$.isFunction=K,$.isObject=B,$.objCreate=s,$);function $(){}var Q,Y=/[xy]/g,Z=(ee.Attach=W,ee.AttachEvent=W,ee.Detach=H,ee.DetachEvent=H,ee);function ee(){}(Mt=Q={})[Mt.CRITICAL=1]="CRITICAL",Mt[Mt.WARNING=2]="WARNING";var te="constructor",ne="prototype",re="function",ie="_dynInstFuncs",oe="_isDynProxy",ae="_dynClass",se="_dynCls$",ce="_dynInstChk",ue=ce,le="_dfOpts",fe="_unknown_",ge="__proto__",pe="useBaseInst",de="setInstFuncs",me=Object.getPrototypeOf,he=0;function ve(e,t){return e&&Object[ne].hasOwnProperty.call(e,t)}function ye(e){return typeof e===re}function xe(e){return e&&(e===Object[ne]||e===Array[ne])}function _e(e){return xe(e)||e===Function[ne]}function Se(e){if(e){if(me)return me(e);if(e=e[ge]||e[ne]||e[te])return e}return null}function Te(e,t,n){return t!==te&&ye(e[t])&&(n||ve(e,t))}function Ie(e){throw new TypeError("DynamicProto: "+e)}function we(e,t){for(var n=e.length-1;0<=n;n--)if(e[n]===t)return 1}function Ne(e,t){return ve(e,ne)?e.name||t||fe:((e||{})[te]||{}).name||t||fe}function Ee(e,n,t,r){ve(e,ne)||Ie("theClass is an invalid class definition.");var i=e[ne];!function(e){for(var t=Se(n);t&&!_e(t);){if(t===e)return 1;t=Se(t)}}(i)&&Ie("["+Ne(e)+"] is not in class hierarchy of ["+Ne(n)+"]");var o=null;ve(i,ae)?o=i[ae]:(o=se+Ne(e,"_")+"$"+he,he++,i[ae]=o);var a=Ee[le],s=!!a[pe];s&&r&&r[pe]!==undefined&&(s=!!r[pe]),t(n,function(e,t,n,o){function r(e,t,n){var r,i=t[c];return i[oe]&&o&&!1!==(r=e[ie]||{})[ue]&&(i=(r[t[ae]]||{})[n]||i),function(){return i.apply(e,arguments)}}var i={};for(c in n)i[c]=r(t,n,c);for(var a=Se(e),s=[];a&&!_e(a)&&!we(s,a);){for(var c in a)!i[c]&&Te(a,c,!me)&&(i[c]=r(t,a,c));s.push(a),a=Se(a)}return i}(i,n,e=function(e){var t,n={};for(t in e)!n[t]&&Te(e,t,!1)&&(n[t]=e[t]);return n}(n),s)),(a=!!me&&!!a[de])&&r&&(a=!!r[de]),function(e,t,n,r,i){if(!xe(e)){var o,a=n[ie]=n[ie]||{},s=a[t]=a[t]||{};for(o in!1!==a[ue]&&(a[ue]=!!i),n)Te(n,o,!1)&&n[o]!==r[o]&&(s[o]=n[o],delete n[o],ve(e,o)&&(!e[o]||e[o][oe])||(e[o]=function(n,r){var i=function(){var e,t;return(function(e,t,n,r){var i=null;if(e&&ve(n,ae)){var o=e[ie]||{};if((i=(o[n[ae]]||{})[t])||Ie("Missing ["+t+"] "+re),!i[ce]&&!1!==o[ue]){for(var a=!ve(e,t),s=Se(e),c=[];a&&s&&!_e(s)&&!we(c,s);){var u=s[t];if(u){a=u===r;break}c.push(s),s=Se(s)}try{a&&(e[t]=i),i[ce]=1}catch(l){o[ue]=!1}}}return i}(this,r,n,i)||((t=n[e=r])===i&&(t=Se(n)[e]),ye(t)||Ie("["+e+"] is not a "+re),t)).apply(this,arguments)};return i[oe]=1,i}(e,o)))}}(i,o,n,e,!1!==a)}function Ce(e){return e?'"'+e.replace(/\"/g,"")+'"':""}Ee[le]={setInstFuncs:!0,useBaseInst:!0};var be=(De.dataType="MessageData",De);function De(e,t,n,r){void 0===n&&(n=!1),this.messageId=e,this.message=(n?"AI: ":"AI (Internal): ")+e,e="",E()&&(e=C().stringify(r)),e=(t?" message:"+Ce(t):"")+(r?" props:"+Ce(e):""),this.message+=e}var Pe=function Vn(i){this.identifier="DiagnosticLogger",this.queue=[];var s=0,c={};Ee(Vn,this,function(o){var n=J.isNullOrUndefined,a=J.isUndefined,r=J.isFunction;function e(e,t){return e=i[e],n(e)?t:e}n(i)&&(i={}),o.consoleLoggingLevel=function(){return e("loggingLevelConsole",0)},o.telemetryLoggingLevel=function(){return e("loggingLevelTelemetry",1)},o.maxInternalMessageLimit=function(){return e("maxMessageLimit",25)},o.enableDebugExceptions=function(){return e("enableDebugExceptions",!1)},o.throwInternal=function(e,t,n,r,i){if(void 0===i&&(i=!1),r=new be(t,n,i,r),o.enableDebugExceptions())throw r;!a(r)&&r&&(a(r.message)||(i?(i=+r.messageId,!c[i]&&o.consoleLoggingLevel()>=Q.WARNING&&(o.warnToConsole(r.message),c[i]=!0)):o.consoleLoggingLevel()>=Q.WARNING&&o.warnToConsole(r.message),o.logInternalMessage(e,r)))},o.warnToConsole=function(e){var t,n=typeof console!==f?console:x("console");n&&(t="log",n.warn&&(t="warn"),r(n[t])&&n[t](e))},o.resetInternalMessageCount=function(){s=0,c={}},o.logInternalMessage=function(e,t){var n,r;s>=o.maxInternalMessageLimit()||(n=!0,r="AITR_"+t.messageId,c[r]?n=!1:c[r]=!0,n&&(e<=o.telemetryLoggingLevel()&&(o.queue.push(t),s++),s===o.maxInternalMessageLimit()&&(t=new be(23,e="Internal events throttle limit per PageView reached for this app.",!1),o.queue.push(t),o.warnToConsole(e))))}})},ke="ctx",Ae=(Le.ParentContextKey="parent",Le.ChildrenContextKey="childEvts",Le);function Le(e,i,t){var n,o=this,a=!1;o.start=J.dateNow(),o.name=e,o.isAsync=t,o.isChildEvt=function(){return!1},J.isFunction(i)&&(a=J.objDefineAccessors(o,"payload",function(){return!n&&J.isFunction(i)&&(n=i(),i=null),n})),o.getCtx=function(e){return e?(e===Le.ParentContextKey||e===Le.ChildrenContextKey?o:o[ke]||{})[e]:null},o.setCtx=function(e,t){e&&(e===Le.ParentContextKey?(o[e]||(o.isChildEvt=function(){return!0}),o[e]=t):e===Le.ChildrenContextKey?o[e]=t:(o[ke]=o[ke]||{})[e]=t)},o.complete=function(){var e=0,t=o.getCtx(Le.ChildrenContextKey);if(J.isArray(t))for(var n=0;n<t.length;n++){var r=t[n];r&&(e+=r.time)}o.time=J.dateNow()-o.start,o.exTime=o.time-e,o.complete=function(){},!a&&J.isFunction(i)&&(o.payload=i())}}var Me=function Gn(t){this.ctx={},Ee(Gn,this,function(n){n.create=function(e,t,n){return new Ae(e,t,n)},n.fire=function(e){e&&(e.complete(),t&&t.perfEvent(e))},n.setCtx=function(e,t){e&&((n[ke]=n[ke]||{})[e]=t)},n.getCtx=function(e){return(n[ke]||{})[e]}})},Re="CoreUtils.doPerf";function Oe(e,t,n,r,i){if(e){var o=e;if(o&&J.isFunction(o.getPerfMgr)&&(o=o.getPerfMgr()),o){var a,s=void 0,c=o.getCtx(Re);try{if(s=o.create(t(),r,i))return c&&s.setCtx&&(s.setCtx(Ae.ParentContextKey,c),c.getCtx&&c.setCtx&&((a=c.getCtx(Ae.ChildrenContextKey))||(a=[],c.setCtx(Ae.ChildrenContextKey,a)),a.push(s))),o.setCtx(Re,s),n(s)}catch(u){s&&s.setCtx&&s.setCtx("exception",u)}finally{s&&o.fire(s),o.setCtx(Re,c)}}}return n()}var Ue=J.isFunction,ze=function(i,t){var o=this,a=null,s=Ue(i.processTelemetry),c=Ue(i.setNextPlugin);o._hasRun=!1,o.getPlugin=function(){return i},o.getNext=function(){return a},o.setNext=function(e){a=e},o.processTelemetry=function(n,r){r=r||t;var e=i?i.identifier:"TelemetryPluginChain";Oe(r?r.core():null,function(){return e+":processTelemetry"},function(){if(i&&s){o._hasRun=!0;try{r.setNext(a),c&&i.setNextPlugin(a),a&&(a._hasRun=!1),i.processTelemetry(n,r)}catch(t){var e=a&&a._hasRun;a&&e||r.diagLog().throwInternal(Q.CRITICAL,73,"Plugin ["+i.identifier+"] failed during processTelemetry - "+t),a&&!e&&a.processTelemetry(n,r)}}else a&&(o._hasRun=!0,a.processTelemetry(n,r))},function(){return{item:n}},!n.sync)}},Ve=J.isNullOrUndefined;function Ge(e,t){var n=[];if(e&&0<e.length)for(var r=null,i=0;i<e.length;i++){var o=e[i];o&&J.isFunction(o.processTelemetry)&&(o=new ze(o,t),n.push(o),r&&r.setNext(o),r=o)}return 0<n.length?n[0]:null}var je=function jn(e,i,n,t){var r,o,a,s,c=this,u=null;null!==t&&(e&&J.isFunction(e.getPlugin)?u=function(e,t,n){var r=[],i=!n;if(e)for(;e;){var o=e.getPlugin();!i&&o!==n||(i=!0,r.push(o)),e=e.getNext()}return i||r.push(n),Ge(r,t)}(e,c,t||e.getPlugin()):t?(r=c,a=e,s=!1,(o=t)&&e&&(a=[],J.arrForEach(e,function(e){!s&&e!==o||(s=!0,a.push(e))})),o&&!s&&(a=a||[]).push(o),u=Ge(a,r)):J.isUndefined(t)&&(u=Ge(e,c))),c.core=function(){return n},c.diagLog=function(){return(n||{}).logger||new Pe(i||{})},c.getCfg=function(){return i},c.getExtCfg=function(e,t){var n,r;return void 0===t&&(t={}),!i||(r=i.extensionConfig)&&e&&(n=r[e]),n||t},c.getConfig=function(e,t,n){var r;return void 0===n&&(n=!1),(e=c.getExtCfg(e,null))&&!Ve(e[t])?r=e[t]:i&&!Ve(i[t])&&(r=i[t]),Ve(r)?n:r},c.hasNext=function(){return null!=u},c.getNext=function(){return u},c.setNext=function(e){u=e},c.processNext=function(e){var t=u;t&&(u=t.getNext(),t.processTelemetry(e,c))},c.createNew=function(e,t){return void 0===e&&(e=null),new jn(e||u,i,n,t)}},qe=J.isFunction,Fe="getPlugin",Be=(Ke.prototype.initialize=function(e,t,n,r){this._baseTelInit(e,t,n,r)},Ke);function Ke(){var o=this,a=!1,s=null,c=null;o.core=null,o.diagLog=function(e){return o._getTelCtx(e).diagLog()},o.isInitialized=function(){return a},o.setInitialized=function(e){a=e},o.setNextPlugin=function(e){c=e},o.processNext=function(e,t){t?t.processNext(e):c&&qe(c.processTelemetry)&&c.processTelemetry(e,null)},o._getTelCtx=function(e){void 0===e&&(e=null);var t=e;return t||(e=s||new je(null,{},o.core),t=c&&c[Fe]?e.createNew(null,c[Fe]):e.createNew(null,c)),t},o._baseTelInit=function(e,t,n,r){e&&(e.extensionConfig=e.extensionConfig||[]),!r&&t&&(r=t.getProcessTelContext().getNext());var i=c;c&&c[Fe]&&(i=c[Fe]()),o.core=t,s=new je(r,e,t,i),a=!0}}var We=J.isFunction,He="processTelemetry",Xe="priority",Je="setNextPlugin",$e="isInitialized";function Qe(t,n){for(var e=[],r=null,i=t.getNext();i;){var o=i.getPlugin();o&&(r&&We(r[Je])&&We(o[He])&&r[Je](o),We(o[$e])&&o[$e]()||e.push(o),r=o,i=i.getNext())}J.arrForEach(e,function(e){e.initialize(t.getCfg(),t.core(),n,t.getNext())})}function Ye(e){return e.sort(function(e,t){var n=0,r=We(t[He]);return We(e[He])?n=r?e[Xe]-t[Xe]:1:r&&(n=-1),n})}var Ze,et=500,tt="Channel has invalid priority",nt=J.objDefineAccessors,rt=(Ze=Be,__extends(it,Ze),it._staticInit=(nt(it.prototype,"ChannelControls",it.prototype.getChannelControls),void nt(it.prototype,"channelQueue",it.prototype.getChannelControls)),it);function it(){var r=Ze.call(this)||this;r.identifier="ChannelControllerPlugin",r.priority=et;var c,u=J.arrForEach;function l(e){e&&0<e.length&&(e=e.sort(function(e,t){return e.priority-t.priority}),u(e,function(e){if(e.priority<et)throw Error(tt+e.identifier)}),c.push(e))}return Ee(it,r,function(a,s){a.setNextPlugin=function(e){},a.processTelemetry=function(t,n){c&&u(c,function(e){0<e.length&&r._getTelCtx(n).createNew(e).processNext(t)})},a.getChannelControls=function(){return c},a.initialize=function(t,n,r){var e,i,o;a.isInitialized()||(s.initialize(t,n,r),t.isCookieUseDisabled&&J.disableCookies(),i=r,c=[],(e=(t||{}).channels)&&u(e,l),i&&(o=[],u(i,function(e){e.priority>et&&o.push(e)}),l(o)),u(c,function(e){return Qe(new je(e,t,n),r)}))}}),r}var ot=J.arrForEach,at=J.isNullOrUndefined,st="_notificationManager",ct=function qn(e){this.listeners=[];var o=J.arrForEach,t=!!(e||{}).perfEvtsSendAll;Ee(qn,this,function(i){i.addNotificationListener=function(e){i.listeners.push(e)},i.removeNotificationListener=function(e){for(var t=J.arrIndexOf(i.listeners,e);-1<t;)i.listeners.splice(t,1),t=J.arrIndexOf(i.listeners,e)},i.eventsSent=function(t){o(i.listeners,function(e){e&&e.eventsSent&&setTimeout(function(){return e.eventsSent(t)},0)})},i.eventsDiscarded=function(t,n){o(i.listeners,function(e){e&&e.eventsDiscarded&&setTimeout(function(){return e.eventsDiscarded(t,n)},0)})},i.eventsSendRequest=function(n,r){o(i.listeners,function(e){if(e&&e.eventsSendRequest)if(r)setTimeout(function(){return e.eventsSendRequest(n,r)},0);else try{e.eventsSendRequest(n,r)}catch(t){}})},i.perfEvent=function(n){n&&(!t&&n.isChildEvt()||o(i.listeners,function(e){if(e&&e.perfEvent)if(n.isAsync)setTimeout(function(){return e.perfEvent(n)},0);else try{e.perfEvent(n)}catch(t){}}))}})},ut=function Fn(){var t,s,c,n,u=!1;Ee(Fn,this,function(a){a._extensions=[],s=new rt,a.logger=J.objCreate({throwInternal:function(e,t,n,r,i){void 0===i&&(i=!1)},warnToConsole:function(e){},resetInternalMessageCount:function(){}}),t=[],a.isInitialized=function(){return u},a.initialize=function(e,t,r,n){if(a.isInitialized())throw Error("Core should not be initialized more than once");if(!e||at(e.instrumentationKey))throw Error("Please provide instrumentation key");c=n,a[st]=n,a.config=e||{},e.extensions=at(e.extensions)?[]:e.extensions,(e.extensionConfig=at(e.extensionConfig)?{}:e.extensionConfig).NotificationManager=n,r&&(a.logger=r),(n=[]).push.apply(n,t.concat(e.extensions)),n=Ye(n);var i=[],o={};if(ot(n,function(e){if(at(e)||at(e.initialize))throw Error("Extensions must provide callback to initialize");var t=e.priority,n=e.identifier;e&&t&&(at(o[t])?o[t]=n:r.warnToConsole("Two extensions have same priority #"+t+" - "+o[t]+", "+n)),(!t||t<s.priority)&&i.push(e)}),n.push(s),i.push(s),n=Ye(n),a._extensions=n,Qe(new je([s],e,a),n),Qe(new je(i,e,a),n),a._extensions=i,0===a.getTransmissionControls().length)throw Error("No channels available");u=!0,a.releaseQueue()},a.getTransmissionControls=function(){return s.getChannelControls()},a.track=function(e){e.iKey||(e.iKey=a.config.instrumentationKey),e.time||(e.time=J.toISOString(new Date)),at(e.ver)&&(e.ver="4.0"),a.isInitialized()?a.getProcessTelContext().processNext(e):t.push(e)},a.getProcessTelContext=function(){var e=a._extensions,t=e;return e&&0!==e.length||(t=[s]),new je(t,a.config,a)},a.getNotifyMgr=function(){return c||(c=J.objCreate({addNotificationListener:function(e){},removeNotificationListener:function(e){},eventsSent:function(e){},eventsDiscarded:function(e,t){},eventsSendRequest:function(e,t){}}),a[st]=c),c},a.getPerfMgr=function(){return n||a.config&&a.config.enablePerfMgr&&(n=new Me(a.getNotifyMgr())),n},a.setPerfMgr=function(e){n=e},a.eventCnt=function(){return t.length},a.releaseQueue=function(){0<t.length&&(ot(t,function(e){a.getProcessTelContext().processNext(e)}),t=[])}})};__extends(function Bn(){var e=ut.call(this)||this;return Ee(Bn,e,function(n,i){function t(e){var t=n.getNotifyMgr();t&&t.eventsDiscarded([e],l)}n.initialize=function(e,t,n,r){i.initialize(e,t,n||new Pe(e),r||new ct(e))},n.track=function(e){Oe(n.getPerfMgr(),function(){return"AppInsightsCore:track"},function(){if(null===e)throw t(e),Error("Invalid telemetry item");!function(e){if(J.isNullOrUndefined(e.name))throw t(e),Error("telemetry name required")}(e),i.track(e)},function(){return{item:e}},!e.sync)},n.addNotificationListener=function(e){var t=n.getNotifyMgr();t&&t.addNotificationListener(e)},n.removeNotificationListener=function(e){var t=n.getNotifyMgr();t&&t.removeNotificationListener(e)},n.pollInternalLogs=function(t){var e=n.config.diagnosticLogInterval;return e&&0<e||(e=1e4),setInterval(function(){var e=n.logger?n.logger.queue:[];J.arrForEach(e,function(e){e={name:t||"InternalMessageId: "+e.messageId,iKey:n.config.instrumentationKey,time:J.toISOString(new Date),baseType:be.dataType,baseData:{message:e.message}},n.track(e)}),e.length=0},e)}}),e},ut);var lt=(ft.sanitizeKeyAndAddUniqueness=function(e,t,n){var r=t.length,i=ft.sanitizeKey(e,t);if(i.length!==r){for(var o=0,a=i;n[a]!==undefined;)o++,a=i.substring(0,ft.MAX_NAME_LENGTH-3)+ft.padNumber(o);i=a}return i},ft.sanitizeKey=function(e,t){var n;return t&&(t=ft.trim(t.toString())).length>ft.MAX_NAME_LENGTH&&(n=t.substring(0,ft.MAX_NAME_LENGTH),e.throwInternal(Q.WARNING,57,"name is too long. It has been truncated to "+ft.MAX_NAME_LENGTH+" characters.",{name:t},!0)),n||t},ft.sanitizeString=function(e,t,n){var r;return void 0===n&&(n=ft.MAX_STRING_LENGTH),t&&(n=n||ft.MAX_STRING_LENGTH,(t=ft.trim(t)).toString().length>n&&(r=t.toString().substring(0,n),e.throwInternal(Q.WARNING,61,"string value is too long. It has been truncated to "+n+" characters.",{value:t},!0))),r||t},ft.sanitizeUrl=function(e,t){return ft.sanitizeInput(e,t,ft.MAX_URL_LENGTH,66)},ft.sanitizeMessage=function(e,t){var n;return t&&t.length>ft.MAX_MESSAGE_LENGTH&&(n=t.substring(0,ft.MAX_MESSAGE_LENGTH),e.throwInternal(Q.WARNING,56,"message is too long, it has been truncated to "+ft.MAX_MESSAGE_LENGTH+" characters.",{message:t},!0)),n||t},ft.sanitizeException=function(e,t){var n;return t&&t.length>ft.MAX_EXCEPTION_LENGTH&&(n=t.substring(0,ft.MAX_EXCEPTION_LENGTH),e.throwInternal(Q.WARNING,52,"exception is too long, it has been truncated to "+ft.MAX_EXCEPTION_LENGTH+" characters.",{exception:t},!0)),n||t},ft.sanitizeProperties=function(r,e){var i;return e&&(i={},X(e,function(e,t){if(J.isObject(t)&&E())try{t=C().stringify(t)}catch(n){r.throwInternal(Q.WARNING,49,"custom property is not valid",{exception:n},!0)}t=ft.sanitizeString(r,t,ft.MAX_PROPERTY_LENGTH),e=ft.sanitizeKeyAndAddUniqueness(r,e,i),i[e]=t}),e=i),e},ft.sanitizeMeasurements=function(n,e){var r;return e&&(r={},X(e,function(e,t){e=ft.sanitizeKeyAndAddUniqueness(n,e,r),r[e]=t}),e=r),e},ft.sanitizeId=function(e,t){return t&&ft.sanitizeInput(e,t,ft.MAX_ID_LENGTH,69).toString()},ft.sanitizeInput=function(e,t,n,r){var i;return t&&(t=ft.trim(t)).length>n&&(i=t.substring(0,n),e.throwInternal(Q.WARNING,r,"input is too long, it has been truncated to "+n+" characters.",{data:t},!0)),i||t},ft.padNumber=function(e){return(e="00"+e).substr(e.length-3)},ft.trim=function(e){return J.isString(e)?e.replace(/^\s+|\s+$/g,""):e},ft.MAX_NAME_LENGTH=150,ft.MAX_ID_LENGTH=128,ft.MAX_PROPERTY_LENGTH=8192,ft.MAX_STRING_LENGTH=1024,ft.MAX_URL_LENGTH=2048,ft.MAX_MESSAGE_LENGTH=32768,ft.MAX_EXCEPTION_LENGTH=32768,ft);function ft(){}var gt=I(),pt=J.isString,dt=null,mt=(ht.createDomEvent=function(e){var t,n=null;return J.isFunction(Event)?n=new Event(e):(t=T())&&t.createEvent&&(n=t.createEvent("Event")).initEvent(e,!0,!0),n},ht.disableStorage=function(){ht._canUseLocalStorage=!1,ht._canUseSessionStorage=!1},ht._getLocalStorageObject=function(){return ht.canUseLocalStorage()?ht._getVerifiedStorageObject(c.LocalStorage):null},ht._getVerifiedStorageObject=function(e){var t,n,r=null;try{if(J.isNullOrUndefined(y()))return null;n=new Date,(r=x(e===c.LocalStorage?"localStorage":"sessionStorage")).setItem(n.toString(),n.toString()),t=r.getItem(n.toString())!==n.toString(),r.removeItem(n.toString()),t&&(r=null)}catch(i){r=null}return r},ht.isInternalApplicationInsightsEndpoint=function(e){return!!~ht._internalEndpoints.indexOf(e.toLowerCase())},ht.canUseLocalStorage=function(){return ht._canUseLocalStorage===undefined&&(ht._canUseLocalStorage=!!ht._getVerifiedStorageObject(c.LocalStorage)),ht._canUseLocalStorage},ht.getStorage=function(e,t){var n=ht._getLocalStorageObject();if(null!==n)try{return n.getItem(t)}catch(r){ht._canUseLocalStorage=!1,e.throwInternal(Q.WARNING,1,"Browser failed read of local storage. "+ht.getExceptionName(r),{exception:ht.dump(r)})}return null},ht.setStorage=function(e,t,n){var r=ht._getLocalStorageObject();if(null!==r)try{return r.setItem(t,n),!0}catch(i){ht._canUseLocalStorage=!1,e.throwInternal(Q.WARNING,3,"Browser failed write to local storage. "+ht.getExceptionName(i),{exception:ht.dump(i)})}return!1},ht.removeStorage=function(e,t){var n=ht._getLocalStorageObject();if(null!==n)try{return n.removeItem(t),!0}catch(r){ht._canUseLocalStorage=!1,e.throwInternal(Q.WARNING,5,"Browser failed removal of local storage item. "+ht.getExceptionName(r),{exception:ht.dump(r)})}return!1},ht._getSessionStorageObject=function(){return ht.canUseSessionStorage()?ht._getVerifiedStorageObject(c.SessionStorage):null},ht.canUseSessionStorage=function(){return ht._canUseSessionStorage===undefined&&(ht._canUseSessionStorage=!!ht._getVerifiedStorageObject(c.SessionStorage)),ht._canUseSessionStorage},ht.getSessionStorageKeys=function(){var t=[];return ht.canUseSessionStorage()&&X(x("sessionStorage"),function(e){t.push(e)}),t},ht.getSessionStorage=function(e,t){var n=ht._getSessionStorageObject();if(null!==n)try{return n.getItem(t)}catch(r){ht._canUseSessionStorage=!1,e.throwInternal(Q.WARNING,2,"Browser failed read of session storage. "+ht.getExceptionName(r),{exception:ht.dump(r)})}return null},ht.setSessionStorage=function(e,t,n){var r=ht._getSessionStorageObject();if(null!==r)try{return r.setItem(t,n),!0}catch(i){ht._canUseSessionStorage=!1,e.throwInternal(Q.WARNING,4,"Browser failed write to session storage. "+ht.getExceptionName(i),{exception:ht.dump(i)})}return!1},ht.removeSessionStorage=function(e,t){var n=ht._getSessionStorageObject();if(null!==n)try{return n.removeItem(t),!0}catch(r){ht._canUseSessionStorage=!1,e.throwInternal(Q.WARNING,6,"Browser failed removal of session storage item. "+ht.getExceptionName(r),{exception:ht.dump(r)})}return!1},ht.disableCookies=function(){J.disableCookies()},ht.canUseCookies=function(e){if(J._canUseCookies===undefined){J._canUseCookies=!1;try{J._canUseCookies=ht.document.cookie!==undefined}catch(t){e.throwInternal(Q.WARNING,68,"Cannot access document.cookie - "+ht.getExceptionName(t),{exception:ht.dump(t)})}}return J._canUseCookies},ht.disallowsSameSiteNone=function(e){return!(!pt(e)||!~e.indexOf("CPU iPhone OS 12")&&!~e.indexOf("iPad; CPU OS 12")&&!(~e.indexOf("Macintosh; Intel Mac OS X 10_14")&&~e.indexOf("Version/")&&~e.indexOf("Safari"))&&(!~e.indexOf("Macintosh; Intel Mac OS X 10_14")||(n=(t=e.length)-40,"AppleWebKit/605.1.15 (KHTML, like Gecko)"!=e.substring(0<=n?n:0,t)))&&!~e.indexOf("Chrome/5")&&!~e.indexOf("Chrome/6")&&(!~e.indexOf("UnrealEngine")||~e.indexOf("Chrome"))&&!~e.indexOf("UCBrowser/12")&&!~e.indexOf("UCBrowser/11"));var t,n},ht.setCookie=function(e,t,n,r){var i;ht.canUseCookies(e)&&(e=i="",r&&(i=";domain="+r),(r=w())&&"https:"===r.protocol&&(e=";secure",null===dt&&(dt=ht.disallowsSameSiteNone((I()||{}).userAgent)),dt||(n+=";SameSite=None")),ht.document.cookie=t+"="+n+i+";path=/"+e)},ht.stringToBoolOrDefault=function(e,t){return void 0===t&&(t=!1),e===undefined||null===e?t:"true"==e.toString().toLowerCase()},ht.getCookie=function(e,t){if(ht.canUseCookies(e)){var n="";if(t&&t.length)for(var r=t+"=",i=ht.document.cookie.split(";"),o=0;o<i.length;o++){var a=i[o];if((a=ht.trim(a))&&!a.indexOf(r)){n=a.substring(r.length,i[o].length);break}}return n}},ht.deleteCookie=function(e,t){ht.canUseCookies(e)&&(ht.document.cookie=t+"=;path=/;expires=Thu, 01 Jan 1970 00:00:01 GMT;")},ht.random32=function(){return J.random32(!0)},ht.getIEVersion=function(e){return void 0===e&&(e=null),~(e=e?e.toLowerCase():gt?(gt.userAgent||"").toLowerCase():"").indexOf("msie")?parseInt(e.split("msie")[1]):e.indexOf("trident/")&&(e=parseInt(e.split("trident/")[1]))?e+4:null},ht.msToTimeSpan=function(e){(isNaN(e)||e<0)&&(e=0);var t=""+(e=Math.round(e))%1e3,n=""+Math.floor(e/1e3)%60,r=""+Math.floor(e/6e4)%60,i=""+Math.floor(e/36e5)%24,e=Math.floor(e/864e5),t=1===t.length?"00"+t:2===t.length?"0"+t:t,n=n.length<2?"0"+n:n,r=r.length<2?"0"+r:r;return(0<e?e+".":"")+(i=i.length<2?"0"+i:i)+":"+r+":"+n+"."+t},ht.isCrossOriginError=function(e,t,n,r,i){return("Script error."===e||"Script error"===e)&&!i},ht.dump=function(e){var t=Object[g].toString.call(e),n="";return"[object Error]"===t?n="{ stack: '"+e.stack+"', message: '"+e.message+"', name: '"+e.name+"'":E()&&(n=C().stringify(e)),t+n},ht.getExceptionName=function(e){return"[object Error]"===Object[g].toString.call(e)?e.name:""},ht.addEventHandler=function(e,t){return Z.Attach(S(),e,t)},ht.IsBeaconApiSupported=function(){return"sendBeacon"in gt&&gt.sendBeacon},ht.getExtension=function(e,t){for(var n=null,r=0;!n&&r<e.length;)e[r]&&e[r].identifier===t&&(n=e[r]),r++;return n},ht.document=T()||{},ht._canUseLocalStorage=undefined,ht._canUseSessionStorage=undefined,ht._internalEndpoints=["https://dc.services.visualstudio.com/v2/track","https://breeze.aimon.applicationinsights.io/v2/track","https://dc-int.services.visualstudio.com/v2/track"],ht.NotSpecified="not_specified",ht.trim=J.strTrim,ht.newId=J.newId,ht.generateW3CId=J.generateW3CId,ht.isArray=J.isArray,ht.isError=J.isError,ht.isDate=J.isDate,ht.toISOStringForIE8=J.toISOString,ht);function ht(){}var vt=(yt.parseUrl=function(e){var t=yt._htmlAnchorIdx,n=yt._htmlAnchorElement,r=n[t];return yt.document.createElement?n[t]||(r=n[t]=yt.document.createElement("a")):r={host:yt.parseHost(e,!0)},r.href=e,++t>=n.length&&(t=0),yt._htmlAnchorIdx=t,r},yt.getAbsoluteUrl=function(e){var t;return(e=yt.parseUrl(e))&&(t=e.href),t},yt.getPathName=function(e){var t;return(e=yt.parseUrl(e))&&(t=e.pathname),t},yt.getCompleteUrl=function(e,t){return e?e.toUpperCase()+" "+t:t},yt.parseHost=function(e,t){return(e=yt.parseFullHost(e,t))&&null!=(t=e.match(/(www[0-9]?\.)?(.[^/:]+)(\:[\d]+)?/i))&&3<t.length&&pt(t[2])&&0<t[2].length?t[2]+(t[3]||""):e},yt.parseFullHost=function(e,t){var n=null;return!e||null!=(e=e.match(/(\w*):\/\/(.[^/:]+)(\:[\d]+)?/i))&&2<e.length&&pt(e[2])&&0<e[2].length&&(n=e[2]||"",t&&2<e.length&&(t=(e[1]||"").toLowerCase(),e=e[3]||"",("http"==t&&":80"===e||"https"==t&&":443"===e)&&(e=""),n+=e)),n},yt.document=T()||{},yt._htmlAnchorIdx=0,yt._htmlAnchorElement=[null,null,null,null,null],yt);function yt(){}var xt=(_t.ParseDependencyPath=function(e,t,n,r){var i,o,a,s=r,c=r,s=t&&0<t.length?(a=(i=vt.parseUrl(t)).host,s||(null!=i.pathname?("/"!=(o=0===i.pathname.length?"/":i.pathname)[0]&&(o="/"+o),c=i.pathname,lt.sanitizeString(e,n?n+" "+o:o)):lt.sanitizeString(e,t))):a=r;return{target:a,name:s,data:c}},_t);function _t(){}var St=(Tt.Now=function(){var e=N();return e&&e.now&&e.timing&&0<(e=e.now()+e.timing.navigationStart)?e:(new Date).getTime()},Tt.GetDuration=function(e,t){var n=null;return 0===e||0===t||J.isNullOrUndefined(e)||J.isNullOrUndefined(t)||(n=t-e),n},Tt);function Tt(){}var It,wt=(__extends(Nt,function(){}),Nt);function Nt(){return this}It=function(){this.ver=1,this.sampleRate=100,this.tags={}},__extends(function(e,t,n){var r=It.call(this)||this;return r.name=lt.sanitizeString(e,n)||mt.NotSpecified,r.data=t,r.time=J.toISOString(new Date),r.aiDataContract={time:p.Required,iKey:p.Required,name:p.Required,sampleRate:function(){return 100===r.sampleRate?p.Hidden:p.Required},tags:p.Required,data:p.Required},r},It);var Et,Ct=(Et=pn=function(){},__extends(bt,Et),bt);function bt(){var e=Et.call(this)||this;return e.ver=2,e.properties={},e.measurements={},e}var Dt,Pt=(Dt=Ct,__extends(kt,Dt),kt.envelopeType="Microsoft.ApplicationInsights.{0}.Event",kt.dataType="EventData",kt);function kt(e,t,n,r){var i=Dt.call(this)||this;return i.aiDataContract={ver:p.Required,name:p.Required,properties:p.Default,measurements:p.Default},i.name=lt.sanitizeString(e,t)||mt.NotSpecified,i.properties=lt.sanitizeProperties(e,n),i.measurements=lt.sanitizeMeasurements(e,r),i}var At,Lt=function(){},Mt=(At=pn,__extends(Rt,At),Rt);function Rt(){var e=At.call(this)||this;return e.ver=2,e.exceptions=[],e.properties={},e.measurements={},e}var Ot,nt=function(){this.hasFullStack=!0,this.parsedStack=[]},Ut="error",zt=(Ot=Mt,__extends(Vt,Ot),Vt.CreateFromInterface=function(t,e,n,r){var i=e.exceptions&&J.arrMap(e.exceptions,function(e){return jt.CreateFromInterface(t,e)});return new Vt(t,__assign({},e,{exceptions:i}),n,r)},Vt.prototype.toInterface=function(){var e=this.exceptions,t=this.properties,n=this.measurements,r=this.severityLevel,i=(this.ver,this.problemGroup),o=this.id,a=this.isManual;return{ver:"4.0",exceptions:e instanceof Array&&J.arrMap(e,function(e){return e.toInterface()})||undefined,severityLevel:r,properties:t,measurements:n,problemGroup:i,id:o,isManual:a}},Vt.CreateSimpleException=function(e,t,n,r,i,o){return{exceptions:[{hasFullStack:!0,message:e,stack:i,typeName:t}]}},Vt.envelopeType="Microsoft.ApplicationInsights.{0}.Exception",Vt.dataType="ExceptionData",Vt);function Vt(e,t,n,r,i,o){var a,s=Ot.call(this)||this;return s.aiDataContract={ver:p.Required,exceptions:p.Required,severityLevel:p.Default,properties:p.Default,measurements:p.Default},"ver"in(a=t)&&"exceptions"in a&&"properties"in a?(s.exceptions=t.exceptions,s.properties=t.properties,s.measurements=t.measurements,t.severityLevel&&(s.severityLevel=t.severityLevel),t.id&&(s.id=t.id),t.problemGroup&&(s.problemGroup=t.problemGroup),s.ver=2,J.isNullOrUndefined(t.isManual)||(s.isManual=t.isManual)):(s.exceptions=[new jt(e,t)],s.properties=lt.sanitizeProperties(e,n)||{},s.measurements=lt.sanitizeMeasurements(e,r),i&&(s.severityLevel=i),o&&(s.id=o)),s}var Gt,jt=(Gt=nt,__extends(qt,Gt),qt.prototype.toInterface=function(){var e=this.parsedStack instanceof Array&&J.arrMap(this.parsedStack,function(e){return e.toInterface()});return{id:this.id,outerId:this.outerId,typeName:this.typeName,message:this.message,hasFullStack:this.hasFullStack,stack:this.stack,parsedStack:e||undefined}},qt.CreateFromInterface=function(e,t){var n=t.parsedStack instanceof Array&&J.arrMap(t.parsedStack,function(e){return Bt.CreateFromInterface(e)})||t.parsedStack;return new qt(e,__assign({},t,{parsedStack:n}))},qt.parseStack=function(e){if(J.isString(e)){for(var t=e.split("\n"),n=[],r=0,i=0,o=0;o<=t.length;o++){var a=t[o];Bt.regex.test(a)&&(i+=(a=new Bt(t[o],r++)).sizeInBytes,n.push(a))}if(32768<i)for(var s=0,c=n.length-1,u=0,l=s,f=c;s<c;){if(32768<(u+=n[s].sizeInBytes+n[c].sizeInBytes)){var g=f-l+1;n.splice(l,g);break}l=s,f=c,s++,c--}}return n},qt);function qt(e,t){var n,r=Gt.call(this)||this;return r.aiDataContract={id:p.Default,outerId:p.Default,typeName:p.Required,message:p.Required,hasFullStack:p.Default,stack:p.Default,parsedStack:p.Array},"hasFullStack"in(n=t)&&"typeName"in n?(r.typeName=t.typeName,r.message=t.message,r.stack=t.stack,r.parsedStack=t.parsedStack,r.hasFullStack=t.hasFullStack):(n=t,mt.isError(n)||(n=n[Ut]||n.evt||n),r.typeName=lt.sanitizeString(e,function(e){var t="";if(e&&!(t=e.typeName||e.name||""))try{var n=/function (.{1,})\(/.exec(e.constructor.toString()),t=n&&1<n.length?n[1]:""}catch(r){}return t}(n))||mt.NotSpecified,r.message=lt.sanitizeMessage(e,t.message)||mt.NotSpecified,t=t.stack,r.parsedStack=qt.parseStack(t),r.stack=lt.sanitizeException(e,t),r.hasFullStack=mt.isArray(r.parsedStack)&&0<r.parsedStack.length),r}var Ft,Bt=(Ft=Lt,__extends(Kt,Ft),Kt.CreateFromInterface=function(e){return new Kt(e,null)},Kt.prototype.toInterface=function(){return{level:this.level,method:this.method,assembly:this.assembly,fileName:this.fileName,line:this.line}},Kt.regex=/^([\s]+at)?(.*?)(\@|\s\(|\s)([^\(\@\n]+):([0-9]+):([0-9]+)(\)?)$/,Kt.baseSize=58,Kt);function Kt(e,t){var n,r=Ft.call(this)||this;return r.sizeInBytes=0,r.aiDataContract={level:p.Required,method:p.Required,assembly:p.Default,fileName:p.Default,line:p.Default},"string"==typeof e?(n=e,r.level=t,r.method="<no_method>",r.assembly=mt.trim(n),r.fileName="",r.line=0,(n=n.match(Kt.regex))&&5<=n.length&&(r.method=mt.trim(n[2])||r.method,r.fileName=mt.trim(n[4]),r.line=parseInt(n[5])||0)):(r.level=e.level,r.method=e.method,r.assembly=e.assembly,r.fileName=e.fileName,r.line=e.line,r.sizeInBytes=0),r.sizeInBytes+=r.method.length,r.sizeInBytes+=r.fileName.length,r.sizeInBytes+=r.assembly.length,r.sizeInBytes+=Kt.baseSize,r.sizeInBytes+=r.level.toString().length,r.sizeInBytes+=r.line.toString().length,r}var Wt,Ht,nt=(Wt=pn,__extends(Xt,Wt),Xt);function Xt(){var e=Wt.call(this)||this;return e.ver=2,e.metrics=[],e.properties={},e.measurements={},e}(Lt=Ht={})[Lt.Measurement=0]="Measurement",Lt[Lt.Aggregation=1]="Aggregation";var Jt,$t=(Jt=function(){this.kind=Ht.Measurement},__extends(Qt,Jt),Qt);function Qt(){var e=Jt.apply(this,arguments)||this;return e.aiDataContract={name:p.Required,kind:p.Default,value:p.Required,count:p.Default,min:p.Default,max:p.Default,stdDev:p.Default},e}var Yt,Zt=(Yt=nt,__extends(en,Yt),en.envelopeType="Microsoft.ApplicationInsights.{0}.Metric",en.dataType="MetricData",en);function en(e,t,n,r,i,o,a,s){var c=Yt.call(this)||this;c.aiDataContract={ver:p.Required,metrics:p.Required,properties:p.Default};var u=new $t;return u.count=0<r?r:undefined,u.max=isNaN(o)||null===o?undefined:o,u.min=isNaN(i)||null===i?undefined:i,u.name=lt.sanitizeString(e,t)||mt.NotSpecified,u.value=n,c.metrics=[u],c.properties=lt.sanitizeProperties(e,a),c.measurements=lt.sanitizeMeasurements(e,s),c}var tn,nt=(tn=Ct,__extends(nn,tn),nn);function nn(){var e=tn.call(this)||this;return e.ver=2,e.properties={},e.measurements={},e}var rn,on=(rn=nt,__extends(an,rn),an.envelopeType="Microsoft.ApplicationInsights.{0}.Pageview",an.dataType="PageviewData",an);function an(e,t,n,r,i,o,a){var s=rn.call(this)||this;return s.aiDataContract={ver:p.Required,name:p.Default,url:p.Default,duration:p.Default,properties:p.Default,measurements:p.Default,id:p.Default},s.id=lt.sanitizeId(e,a),s.url=lt.sanitizeUrl(e,n),s.name=lt.sanitizeString(e,t)||mt.NotSpecified,isNaN(r)||(s.duration=mt.msToTimeSpan(r)),s.properties=lt.sanitizeProperties(e,i),s.measurements=lt.sanitizeMeasurements(e,o),s}var sn,Ct=(sn=pn,__extends(cn,sn),cn);function cn(){var e=sn.call(this)||this;return e.ver=2,e.success=!0,e.properties={},e.measurements={},e}var un,ln=(un=Ct,__extends(fn,un),fn.envelopeType="Microsoft.ApplicationInsights.{0}.RemoteDependency",fn.dataType="RemoteDependencyData",fn);function fn(e,t,n,r,i,o,a,s,c,u,l,f){void 0===c&&(c="Ajax");var g=un.call(this)||this;return g.aiDataContract={id:p.Required,ver:p.Required,name:p.Default,resultCode:p.Default,duration:p.Default,success:p.Default,data:p.Default,target:p.Default,type:p.Default,properties:p.Default,measurements:p.Default,kind:p.Default,value:p.Default,count:p.Default,min:p.Default,max:p.Default,stdDev:p.Default,dependencyKind:p.Default,dependencySource:p.Default,commandName:p.Default,dependencyTypeName:p.Default},g.id=t,g.duration=mt.msToTimeSpan(i),g.success=o,g.resultCode=a+"",g.type=lt.sanitizeString(e,c),s=xt.ParseDependencyPath(e,n,s,r),g.data=lt.sanitizeUrl(e,r)||s.data,g.target=lt.sanitizeString(e,s.target),u&&(g.target=g.target+" | "+u),g.name=lt.sanitizeString(e,s.name),g.properties=lt.sanitizeProperties(e,l),g.measurements=lt.sanitizeMeasurements(e,f),g}var gn,pn=(gn=pn,__extends(dn,gn),dn);function dn(){var e=gn.call(this)||this;return e.ver=2,e.properties={},e.measurements={},e}var mn,hn=(mn=pn,__extends(vn,mn),vn.envelopeType="Microsoft.ApplicationInsights.{0}.Message",vn.dataType="MessageData",vn);function vn(e,t,n,r,i){var o=mn.call(this)||this;return o.aiDataContract={ver:p.Required,message:p.Required,severityLevel:p.Default,properties:p.Default},t=t||mt.NotSpecified,o.message=lt.sanitizeMessage(e,t),o.properties=lt.sanitizeProperties(e,r),o.measurements=lt.sanitizeMeasurements(e,i),n&&(o.severityLevel=n),o}var yn,nt=(yn=nt,__extends(xn,yn),xn);function xn(){var e=yn.call(this)||this;return e.ver=2,e.properties={},e.measurements={},e}var _n,Sn,Tn,In=(_n=nt,__extends(wn,_n),wn.envelopeType="Microsoft.ApplicationInsights.{0}.PageviewPerformance",wn.dataType="PageviewPerformanceData",wn);function wn(e,t,n,r,i,o,a){var s=_n.call(this)||this;return s.aiDataContract={ver:p.Required,name:p.Default,url:p.Default,duration:p.Default,perfTotal:p.Default,networkConnect:p.Default,sentRequest:p.Default,receivedResponse:p.Default,domProcessing:p.Default,properties:p.Default,measurements:p.Default},s.url=lt.sanitizeUrl(e,n),s.name=lt.sanitizeString(e,t)||mt.NotSpecified,s.properties=lt.sanitizeProperties(e,i),s.measurements=lt.sanitizeMeasurements(e,o),a&&(s.domProcessing=a.domProcessing,s.duration=a.duration,s.networkConnect=a.networkConnect,s.perfTotal=a.perfTotal,s.receivedResponse=a.receivedResponse,s.sentRequest=a.sentRequest),s}Sn=wt,__extends(function(e,t){var n=Sn.call(this)||this;return n.aiDataContract={baseType:p.Required,baseData:p.Required},n.baseType=e,n.baseData=t,n},Sn),(wt=Tn={})[wt.Verbose=0]="Verbose",wt[wt.Information=1]="Information",wt[wt.Warning=2]="Warning",wt[wt.Error=3]="Error",wt[wt.Critical=4]="Critical";var Nn=(En.create=function(e,t,n,r,i,o){if(n=lt.sanitizeString(r,n)||mt.NotSpecified,J.isNullOrUndefined(e)||J.isNullOrUndefined(t)||J.isNullOrUndefined(n))throw Error("Input doesn't contain all required fields");var a={name:n,time:J.toISOString(new Date),iKey:"",ext:o||{},tags:[],data:{},baseType:t,baseData:e};return J.isNullOrUndefined(i)||X(i,function(e,t){a.data[e]=t}),a},En);function En(){}var Cn=function Kn(h,v,t,y){Ee(Kn,this,function(e){var l,n=J.arrForEach,f=J.isNullOrUndefined,g=null,p=[],d=!1;function m(){t&&n(t.getTransmissionControls(),function(e){n(e,function(e){return e.flush(!0)})})}t&&(l=t.logger),e.trackPageView=function(r,i){var o=r.name;!f(o)&&"string"==typeof o||(e=T(),o=r.name=e&&e.title||"");var e,a=r.uri;if(!f(a)&&"string"==typeof a||(e=w(),a=r.uri=e&&e.href||""),!y.isPerformanceTimingSupported())return h.sendPageViewInternal(r,i),m(),void l.throwInternal(Q.WARNING,25,"trackPageView: navigation timing API used for calculation of page duration is not supported in this browser. This page view will be collected without duration and timing info.");var s,t,c=!1,u=y.getPerformanceTiming().navigationStart;0<u&&(s=St.GetDuration(u,+new Date),y.shouldCollectDuration(s)||(s=undefined)),f(i)||f(i.duration)||(t=i.duration),!v&&isNaN(t)||(isNaN(t)&&((i=i||{}).duration=s),h.sendPageViewInternal(r,i),m(),c=!0),i=i||{},t=function(){var e,t=!1;try{y.isPerformanceTimingDataReady()?(t=!0,e={name:o,uri:a},y.populatePageViewPerformanceEvent(e),e.isValid||c?(c||(i.duration=e.durationMs,h.sendPageViewInternal(r,i)),d||(h.sendPageViewPerformanceInternal(e,i),d=!0)):(i.duration=s,h.sendPageViewInternal(r,i))):0<u&&6e4<St.GetDuration(u,+new Date)&&(t=!0,c||(i.duration=6e4,h.sendPageViewInternal(r,i)))}catch(n){l.throwInternal(Q.CRITICAL,38,"trackPageView failed on page load calculation: "+mt.getExceptionName(n),{exception:mt.dump(n)})}return t},p.push(t),g=g||setInterval(function(){var e=p.slice(0),t=!1;p=[],n(e,function(e){e()?t=!0:p.push(e)}),0===p.length&&(clearInterval(g),g=null),t&&m()},100)}})},bn=(Dn.prototype.trackPreviousPageVisit=function(e,t){try{var n=this.restartPageVisitTimer(e,t);n&&this.pageVisitTimeTrackingHandler(n.pageName,n.pageUrl,n.pageVisitTime)}catch(r){this._logger.warnToConsole("Auto track page visit time failed, metric will not be collected: "+mt.dump(r))}},Dn.prototype.restartPageVisitTimer=function(e,t){try{var n=this.stopPageVisitTimer();return this.startPageVisitTimer(e,t),n}catch(r){return this._logger.warnToConsole("Call to restart failed: "+mt.dump(r)),null}},Dn.prototype.startPageVisitTimer=function(e,t){try{if(mt.canUseSessionStorage()){if(null!=mt.getSessionStorage(this._logger,this.prevPageVisitDataKeyName))throw Error("Cannot call startPageVisit consecutively without first calling stopPageVisit");var n=new Pn(e,t),n=C().stringify(n);mt.setSessionStorage(this._logger,this.prevPageVisitDataKeyName,n)}}catch(r){this._logger.warnToConsole("Call to start failed: "+mt.dump(r))}},Dn.prototype.stopPageVisitTimer=function(){try{if(mt.canUseSessionStorage()){var e=J.dateNow(),t=mt.getSessionStorage(this._logger,this.prevPageVisitDataKeyName);return t&&E()?((t=C().parse(t)).pageVisitTime=e-t.pageVisitStartTime,mt.removeSessionStorage(this._logger,this.prevPageVisitDataKeyName),t):null}return null}catch(n){return this._logger.warnToConsole("Stop page visit timer failed: "+mt.dump(n)),null}},Dn);function Dn(e,t){this.prevPageVisitDataKeyName="prevPageVisitData",this.pageVisitTimeTrackingHandler=t,this._logger=e}var Pn=function(e,t){this.pageVisitStartTime=J.dateNow(),this.pageName=e,this.pageUrl=t},kn=(An.prototype.populatePageViewPerformanceEvent=function(e){e.isValid=!1;var t,n,r,i,o=this.getPerformanceNavigationTiming(),a=this.getPerformanceTiming();(o||a)&&(a=o?(t=o.duration,n=St.GetDuration(o.startTime,o.connectEnd),r=St.GetDuration(o.requestStart,o.responseStart),i=St.GetDuration(o.responseStart,o.responseEnd),St.GetDuration(o.responseEnd,o.loadEventEnd)):(t=St.GetDuration(a.navigationStart,a.loadEventEnd),n=St.GetDuration(a.navigationStart,a.connectEnd),r=St.GetDuration(a.requestStart,a.responseStart),i=St.GetDuration(a.responseStart,a.responseEnd),St.GetDuration(a.responseEnd,a.loadEventEnd)),0===t?this._logger.throwInternal(Q.WARNING,10,"error calculating page view performance.",{total:t,network:n,request:r,response:i,dom:a}):this.shouldCollectDuration(t,n,r,i,a)?t<Math.floor(n)+Math.floor(r)+Math.floor(i)+Math.floor(a)?this._logger.throwInternal(Q.WARNING,8,"client performance math error.",{total:t,network:n,request:r,response:i,dom:a}):(e.durationMs=t,e.perfTotal=e.duration=mt.msToTimeSpan(t),e.networkConnect=mt.msToTimeSpan(n),e.sentRequest=mt.msToTimeSpan(r),e.receivedResponse=mt.msToTimeSpan(i),e.domProcessing=mt.msToTimeSpan(a),e.isValid=!0):this._logger.throwInternal(Q.WARNING,45,"Invalid page load duration value. Browser perf data won't be sent.",{total:t,network:n,request:r,response:i,dom:a}))},An.prototype.getPerformanceTiming=function(){return this.isPerformanceTimingSupported()?N().timing:null},An.prototype.getPerformanceNavigationTiming=function(){return this.isPerformanceNavigationTimingSupported()?N().getEntriesByType("navigation")[0]:null},An.prototype.isPerformanceNavigationTimingSupported=function(){var e=N();return e&&e.getEntriesByType&&0<e.getEntriesByType("navigation").length},An.prototype.isPerformanceTimingSupported=function(){var e=N();return e&&e.timing},An.prototype.isPerformanceTimingDataReady=function(){var e=N();return(e=e?e.timing:0)&&0<e.domainLookupStart&&0<e.navigationStart&&0<e.responseStart&&0<e.requestStart&&0<e.loadEventEnd&&0<e.responseEnd&&0<e.connectEnd&&0<e.domLoading},An.prototype.shouldCollectDuration=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=["googlebot","adsbot-google","apis-google","mediapartners-google"],r=(I()||{}).userAgent,i=!1;if(r)for(var o=0;o<n.length;o++)i=i||!!~r.toLowerCase().indexOf(n[o]);if(i)return!1;for(o=0;o<e.length;o++)if(e[o]<0||e[o]>=this.MAX_DURATION_ALLOWED)return!1;return!0},An);function An(e){this.MAX_DURATION_ALLOWED=36e5,e&&(this._logger=e.logger)}var Ln="duration";function Mn(e,t){e&&e.dispatchEvent&&t&&e.dispatchEvent(t)}var Rn,Be=(Rn=Be,__extends(On,Rn),On.getDefaultConfig=function(e){return(e=e||{}).sessionRenewalMs=18e5,e.sessionExpirationMs=864e5,e.disableExceptionTracking=mt.stringToBoolOrDefault(e.disableExceptionTracking),e.autoTrackPageVisitTime=mt.stringToBoolOrDefault(e.autoTrackPageVisitTime),e.overridePageViewDuration=mt.stringToBoolOrDefault(e.overridePageViewDuration),e.enableUnhandledPromiseRejectionTracking=mt.stringToBoolOrDefault(e.enableUnhandledPromiseRejectionTracking),(isNaN(e.samplingPercentage)||e.samplingPercentage<=0||100<=e.samplingPercentage)&&(e.samplingPercentage=100),e.isCookieUseDisabled=mt.stringToBoolOrDefault(e.isCookieUseDisabled),e.isStorageUseDisabled=mt.stringToBoolOrDefault(e.isStorageUseDisabled),e.isBrowserLinkTrackingEnabled=mt.stringToBoolOrDefault(e.isBrowserLinkTrackingEnabled),e.enableAutoRouteTracking=mt.stringToBoolOrDefault(e.enableAutoRouteTracking),e.namePrefix=e.namePrefix||"",e},On.prototype.processTelemetry=function(o,a){var s=this;Oe(this.core,function(){return s.identifier+":processTelemetry"},function(){var e=!1,t=s._telemetryInitializers.length;a=s._getTelCtx(a);for(var n=0;n<t;++n){var r=s._telemetryInitializers[n];if(r)try{if(!1===r.call(null,o)){e=!0;break}}catch(i){a.diagLog().throwInternal(Q.CRITICAL,64,"One of telemetry initializers failed, telemetry item will not be sent: "+mt.getExceptionName(i),{exception:mt.dump(i)},!0)}}e||s.processNext(o,a)},function(){return{item:o}},!o.sync)},On.prototype.trackEvent=function(e,t){try{var n=Nn.create(e,Pt.dataType,Pt.envelopeType,this.diagLog(),t);this.core.track(n)}catch(r){this.diagLog().throwInternal(Q.WARNING,39,"trackTrace failed, trace will not be collected: "+mt.getExceptionName(r),{exception:mt.dump(r)})}},On.prototype.startTrackEvent=function(e){try{this._eventTracking.start(e)}catch(t){this.diagLog().throwInternal(Q.CRITICAL,29,"startTrackEvent failed, event will not be collected: "+mt.getExceptionName(t),{exception:mt.dump(t)})}},On.prototype.stopTrackEvent=function(e,t,n){try{this._eventTracking.stop(e,undefined,t)}catch(r){this.diagLog().throwInternal(Q.CRITICAL,30,"stopTrackEvent failed, event will not be collected: "+mt.getExceptionName(r),{exception:mt.dump(r)})}},On.prototype.trackTrace=function(e,t){try{var n=Nn.create(e,hn.dataType,hn.envelopeType,this.diagLog(),t);this.core.track(n)}catch(r){this.diagLog().throwInternal(Q.WARNING,39,"trackTrace failed, trace will not be collected: "+mt.getExceptionName(r),{exception:mt.dump(r)})}},On.prototype.trackMetric=function(e,t){try{var n=Nn.create(e,Zt.dataType,Zt.envelopeType,this.diagLog(),t);this.core.track(n)}catch(r){this.diagLog().throwInternal(Q.CRITICAL,36,"trackMetric failed, metric will not be collected: "+mt.getExceptionName(r),{exception:mt.dump(r)})}},On.prototype.trackPageView=function(e,t){try{var n=e||{};this._pageViewManager.trackPageView(n,__assign({},n.properties,n.measurements,t)),this.config.autoTrackPageVisitTime&&this._pageVisitTimeManager.trackPreviousPageVisit(n.name,n.uri)}catch(r){this.diagLog().throwInternal(Q.CRITICAL,37,"trackPageView failed, page view will not be collected: "+mt.getExceptionName(r),{exception:mt.dump(r)})}},On.prototype.sendPageViewInternal=function(e,t,n){var r=T();r&&(e.refUri=e.refUri===undefined?r.referrer:e.refUri),n=Nn.create(e,on.dataType,on.envelopeType,this.diagLog(),t,n),this.core.track(n),this._trackAjaxAttempts=0},On.prototype.sendPageViewPerformanceInternal=function(e,t,n){n=Nn.create(e,In.dataType,In.envelopeType,this.diagLog(),t,n),this.core.track(n)},On.prototype.trackPageViewPerformance=function(e,t){try{this._pageViewPerformanceManager.populatePageViewPerformanceEvent(e),this.sendPageViewPerformanceInternal(e,t)}catch(n){this.diagLog().throwInternal(Q.CRITICAL,37,"trackPageViewPerformance failed, page view will not be collected: "+mt.getExceptionName(n),{exception:mt.dump(n)})}},On.prototype.startTrackPage=function(e){try{var t;"string"!=typeof e&&(e=(t=T())&&t.title||""),this._pageTracking.start(e)}catch(n){this.diagLog().throwInternal(Q.CRITICAL,31,"startTrackPage failed, page view may not be collected: "+mt.getExceptionName(n),{exception:mt.dump(n)})}},On.prototype.stopTrackPage=function(e,t,n,r){try{var i;"string"!=typeof e&&(e=(i=T())&&i.title||""),"string"!=typeof t&&(t=(i=w())&&i.href||""),this._pageTracking.stop(e,t,n,r),this.config.autoTrackPageVisitTime&&this._pageVisitTimeManager.trackPreviousPageVisit(e,t)}catch(o){this.diagLog().throwInternal(Q.CRITICAL,32,"stopTrackPage failed, page view will not be collected: "+mt.getExceptionName(o),{exception:mt.dump(o)})}},On.prototype.sendExceptionInternal=function(e,t,n){e=new zt(this.diagLog(),e.exception||Error(mt.NotSpecified),e.properties,e.measurements,e.severityLevel,e.id).toInterface(),n=Nn.create(e,zt.dataType,zt.envelopeType,this.diagLog(),t,n),this.core.track(n)},On.prototype.trackException=function(e,t){try{this.sendExceptionInternal(e,t)}catch(n){this.diagLog().throwInternal(Q.CRITICAL,35,"trackException failed, exception will not be collected: "+mt.getExceptionName(n),{exception:mt.dump(n)})}},On.prototype._onerror=function(e){try{var t,n={url:e&&e.url||(T()||{}).URL,lineNumber:e.lineNumber,columnNumber:e.columnNumber,message:e.message};mt.isCrossOriginError(e.message,e.url,e.lineNumber,e.columnNumber,e.error)?this._sendCORSException(n.url):(mt.isError(e.error)||(t="window.onerror@"+n.url+":"+e.lineNumber+":"+(e.columnNumber||0),e.error=Error(e.message),e.error.stack=t),this.trackException({exception:e.error,severityLevel:Tn.Error},n))}catch(i){var r=e.error?e.error.name+", "+e.error.message:"null";this.diagLog().throwInternal(Q.CRITICAL,11,"_onError threw exception while logging error, error will not be collected: "+mt.getExceptionName(i),{exception:mt.dump(i),errorString:r})}},On.prototype.addTelemetryInitializer=function(e){this._telemetryInitializers.push(e)},On.prototype.initialize=function(e,t,n,r){var o=this;if(!this.isInitialized()){if(J.isNullOrUndefined(t))throw Error("Error initializing");Rn.prototype.initialize.call(this,e,t,n,r),this.setInitialized(!1);var i=this._getTelCtx(),a=this.identifier;this._globalconfig={instrumentationKey:e.instrumentationKey,endpointUrl:e.endpointUrl||"https://dc.services.visualstudio.com/v2/track"},this.config=i.getExtCfg(a),(t=On.getDefaultConfig())!==undefined&&(X(t,function(e,t){o.config[e]=i.getConfig(a,e,t)}),this._globalconfig&&X(t,function(e,t){o._globalconfig[e]===undefined&&(o._globalconfig[e]=t)})),this.config.isCookieUseDisabled&&mt.disableCookies(),this.config.isStorageUseDisabled&&mt.disableStorage(),r={instrumentationKey:function(){return e.instrumentationKey},accountId:function(){return o.config.accountId||e.accountId},sessionRenewalMs:function(){return o.config.sessionRenewalMs||e.sessionRenewalMs},sessionExpirationMs:function(){return o.config.sessionExpirationMs||e.sessionExpirationMs},sampleRate:function(){return o.config.samplingPercentage||e.samplingPercentage},cookieDomain:function(){return o.config.cookieDomain||e.cookieDomain},sdkExtension:function(){return o.config.sdkExtension||e.sdkExtension},isBrowserLinkTrackingEnabled:function(){return o.config.isBrowserLinkTrackingEnabled||e.isBrowserLinkTrackingEnabled},appId:function(){return o.config.appId||e.appId}},this._pageViewPerformanceManager=new kn(this.core),this._pageViewManager=new Cn(this,this.config.overridePageViewDuration,this.core,this._pageViewPerformanceManager),this._pageVisitTimeManager=new bn(this.diagLog(),function(e,t,n){return o.trackPageVisitTime(e,t,n)}),this._telemetryInitializers=this._telemetryInitializers||[],this._addDefaultTelemetryInitializers(r),this._eventTracking=new Un(this.diagLog(),"trackEvent"),this._eventTracking.action=function(e,t,n,r){(r=r||{})[Ln]=n.toString(),o.trackEvent({name:e,properties:r})},this._pageTracking=new Un(this.diagLog(),"trackPageView"),this._pageTracking.action=function(e,t,n,r,i){J.isNullOrUndefined(r)&&(r={}),r[Ln]=n.toString(),i={name:e,uri:t,properties:r,measurements:i},o.sendPageViewInternal(i,r)};var s,c,u,l,f,g=S(),t=typeof history===m&&history?history:x("history"),p=w(),d=this;!1===this.config.disableExceptionTracking&&!this.config.autoExceptionInstrumented&&g&&(s=g.onerror,g.onerror=function(e,t,n,r,i){var o=s&&s(e,t,n,r,i);return!0!==o&&d._onerror({message:e,url:t,lineNumber:n,columnNumber:r,error:i}),o},this.config.autoExceptionInstrumented=!0),!1===this.config.disableExceptionTracking&&!0===this.config.enableUnhandledPromiseRejectionTracking&&!this.config.autoUnhandledPromiseInstrumented&&g&&(c=g[r="onunhandledrejection"],g[r]=function(e){var t=c&&c.call(g,e);return!0!==t&&d._onerror({message:e.reason.toString(),error:e.reason instanceof Error?e.reason:Error(e.reason.toString()),url:p?p.href:"",lineNumber:0,columnNumber:0}),t},this.config.autoUnhandledPromiseInstrumented=!0),!0===this.config.enableAutoRouteTracking&&t&&J.isFunction(t.pushState)&&J.isFunction(t.replaceState)&&g&&"undefined"!=typeof Event&&(u=this,J.arrForEach(n,function(e){"AppInsightsPropertiesPlugin"===e.identifier&&(o._properties=e)}),t.pushState=(f=t.pushState,function(){var e=f.apply(this,arguments);return Mn(g,mt.createDomEvent(u.config.namePrefix+"pushState")),Mn(g,mt.createDomEvent(u.config.namePrefix+"locationchange")),e}),t.replaceState=(l=t.replaceState,function(){var e=l.apply(this,arguments);return Mn(g,mt.createDomEvent(u.config.namePrefix+"replaceState")),Mn(g,mt.createDomEvent(u.config.namePrefix+"locationchange")),e}),g.addEventListener&&(g.addEventListener(u.config.namePrefix+"popstate",function(){Mn(g,mt.createDomEvent(u.config.namePrefix+"locationchange"))}),g.addEventListener(u.config.namePrefix+"locationchange",function(){u._properties&&u._properties.context&&u._properties.context.telemetryTrace&&(u._properties.context.telemetryTrace.traceID=mt.generateW3CId(),u._properties.context.telemetryTrace.name=p&&p.pathname||"_unknown_"),o._currUri&&(o._prevUri=o._currUri),o._currUri=p&&p.href||"",setTimeout((function(e){u.trackPageView({refUri:e,properties:{duration:0}})}).bind(o,o._prevUri),u.autoRoutePVDelay)}))),this.setInitialized(!0)}},On.prototype.trackPageVisitTime=function(e,t,n){t={PageName:e,PageUrl:t},this.trackMetric({name:"PageVisitTime",average:n,max:n,min:n,sampleCount:1},t)},On.prototype._addDefaultTelemetryInitializers=function(e){var r;e.isBrowserLinkTrackingEnabled()||(r=["/browserLinkSignalR/","/__browserLink/"],this._addTelemetryInitializer(function(e){if(e.baseType===ln.dataType){var t=e.baseData;if(t)for(var n=0;n<r.length;n++)if(t.target&&~t.target.indexOf(r[n]))return!1}return!0}))},On.prototype._addTelemetryInitializer=function(e){this._telemetryInitializers.push(e)},On.prototype._sendCORSException=function(e){var t={message:"Script error: The browser's same-origin policy prevents us from getting the details of this exception. Consider using the 'crossorigin' attribute.",url:e,lineNumber:0,columnNumber:0,error:undefined},e=Nn.create(t,zt.dataType,zt.envelopeType,this.diagLog(),{url:e});this.core.track(e)},On.Version="2.5.10",On);function On(){var e=Rn.call(this)||this;e.identifier="ApplicationInsightsAnalytics",e.priority=180,e.autoRoutePVDelay=500,e._trackAjaxAttempts=0;var t=w();return e._prevUri=t&&t.href||"",e}var Un=(zn.prototype.start=function(e){"undefined"!=typeof this._events[e]&&this._logger.throwInternal(Q.WARNING,62,"start was called more than once for this event without calling stop.",{name:this._name,key:e},!0),this._events[e]=+new Date},zn.prototype.stop=function(e,t,n,r){var i,o=this._events[e];isNaN(o)?this._logger.throwInternal(Q.WARNING,63,"stop was called without a corresponding start.",{name:this._name,key:e},!0):(i=+new Date,i=St.GetDuration(o,i),this.action(e,t,i,n,r)),delete this._events[e],this._events[e]=undefined},zn);function zn(e,t){this._name=t,this._events={},this._logger=e}e.ApplicationInsights=Be,function(e,t,n){var r=Object.defineProperty;if(r)try{return r(e,t,n)}catch(i){}typeof n.value!==undefined&&(e[t]=n.value)}(e,"__esModule",{value:!0})};"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((e.Microsoft=e.Microsoft||{},e.Microsoft.ApplicationInsights=e.Microsoft.ApplicationInsights||{}));
//# sourceMappingURL=applicationinsights-analytics-js.min.js.map
/*!
* Application Insights JavaScript SDK - Web Analytics, 2.5.9
* Application Insights JavaScript SDK - Web Analytics, 2.5.10
* Copyright (c) Microsoft and contributors. All rights reserved.

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

/*!
* Application Insights JavaScript SDK - Web Analytics, 2.5.9
* Application Insights JavaScript SDK - Web Analytics, 2.5.10
* Copyright (c) Microsoft and contributors. All rights reserved.

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

/*!
* Application Insights JavaScript SDK - Web Analytics, 2.5.9
* Application Insights JavaScript SDK - Web Analytics, 2.5.10
* Copyright (c) Microsoft and contributors. All rights reserved.

@@ -10,3 +10,3 @@ */

import { Util, PageViewPerformance, PageView, RemoteDependencyData, Event as EventTelemetry, TelemetryItemCreator, Metric, Exception, SeverityLevel, Trace, DateTimeUtils, PropertiesPluginIdentifier, AnalyticsPluginIdentifier } from "@microsoft/applicationinsights-common";
import { BaseTelemetryPlugin, CoreUtils, LoggingSeverity, _InternalMessageId, getWindow, getDocument, getHistory, getLocation, doPerf } from "@microsoft/applicationinsights-core-js";
import { BaseTelemetryPlugin, CoreUtils, LoggingSeverity, _InternalMessageId, getWindow, getDocument, getHistory, getLocation, doPerf, objForEachKey } from "@microsoft/applicationinsights-core-js";
import { PageViewManager } from "./Telemetry/PageViewManager";

@@ -342,12 +342,12 @@ import { PageVisitTimeManager } from "./Telemetry/PageVisitTimeManager";

if (defaults !== undefined) {
for (var field in defaults) {
objForEachKey(defaults, function (field, value) {
// for each unspecified field, set the default value
this.config[field] = ctx.getConfig(identifier, field, defaults[field]);
}
_this.config[field] = ctx.getConfig(identifier, field, value);
});
if (this._globalconfig) {
for (var field in defaults) {
if (this._globalconfig[field] === undefined) {
this._globalconfig[field] = defaults[field];
objForEachKey(defaults, function (field, value) {
if (_this._globalconfig[field] === undefined) {
_this._globalconfig[field] = value;
}
}
});
}

@@ -548,3 +548,3 @@ }

};
ApplicationInsights.Version = "2.5.9"; // Not currently used anywhere
ApplicationInsights.Version = "2.5.10"; // Not currently used anywhere
return ApplicationInsights;

@@ -551,0 +551,0 @@ }(BaseTelemetryPlugin));

/*!
* Application Insights JavaScript SDK - Web Analytics, 2.5.9
* Application Insights JavaScript SDK - Web Analytics, 2.5.10
* Copyright (c) Microsoft and contributors. All rights reserved.

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

/*!
* Application Insights JavaScript SDK - Web Analytics, 2.5.9
* Application Insights JavaScript SDK - Web Analytics, 2.5.10
* Copyright (c) Microsoft and contributors. All rights reserved.

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

/*!
* Application Insights JavaScript SDK - Web Analytics, 2.5.9
* Application Insights JavaScript SDK - Web Analytics, 2.5.10
* Copyright (c) Microsoft and contributors. All rights reserved.

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

/*!
* Application Insights JavaScript SDK - Web Analytics, 2.5.9
* Application Insights JavaScript SDK - Web Analytics, 2.5.10
* Copyright (c) Microsoft and contributors. All rights reserved.
*/
var e=this,t=function(e){"use strict";var r="function",i="object",t="undefined",o="prototype",a="hasOwnProperty";function n(){return typeof globalThis!==t&&globalThis?globalThis:typeof self!==t&&self?self:typeof window!==t&&window?window:typeof global!==t&&global?global:null}function s(e){var t=Object.create;if(t)return t(e);if(null==e)return{};if((t=typeof e)!=i&&t!==r)throw new TypeError("Object prototype may only be an Object:"+e);function n(){}return n[o]=e,new n}var c,p,u=function(e,t){return(u=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t[a](n)&&(e[n]=t[n])})(e,t)};Je=function(e,t){function n(){this.constructor=e}u(e,t),e[o]=null===t?s(t):(n[o]=t[o],new n)},(Ue=vt=n()||{}).__assign||(Ue.__assign=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object[o][a].call(t,i)&&(e[i]=t[i]);return e}),Ue.__extends||(Ue.__extends=Je),__assign=__assign||vt.__assign,__extends=__extends||vt.__extends,(an=c={})[an.LocalStorage=0]="LocalStorage",an[an.SessionStorage=1]="SessionStorage",(_t=p=p||{})[_t.Default=0]="Default",_t[_t.Required=1]="Required",_t[_t.Array=2]="Array",_t[_t.Hidden=4]="Hidden",(Et={})[Et.AI=0]="AI",Et[Et.AI_AND_W3C=1]="AI_AND_W3C",Et[Et.W3C=2]="W3C";var l=2,f=t,v=i,g=o,d="window",m="location",h="JSON",y=n;function x(e){var t=y();return t&&t[e]?t[e]:e===d&&_()?window:null}function _(){return typeof window===v&&window}function S(){return _()?window:x(d)}function T(){return typeof document===v&&document?document:x("document")}function w(){return typeof navigator===v&&navigator?navigator:x("navigator")}function I(){return typeof location===v&&location?location:x(m)}function N(){return x("performance")}function E(){return typeof JSON===v&&JSON||null!==x(h)}function C(){return E()?JSON||x(h):null}var b="attachEvent",D="addEventListener",P="detachEvent",k="removeEventListener",A=4294967296,L=4294967295,M=null,R=!1,O=123456789,U=987654321;function z(e){O=123456789+e&L,U=987654321-e&L,R=!0}function V(){z(Math.random()*A^(new Date).getTime())}function G(e,t){return typeof e===t}function j(e){return G(e,t)||e===undefined}function q(e){return j(e)||null===e}function F(e,t){return e&&Object[o].hasOwnProperty.call(e,t)}function B(e){return G(e,i)}function K(e){return G(e,r)}function W(e,t,n,r){void 0===r&&(r=!1);var i=!1;if(!q(e))try{q(e[D])?q(e[b])||(e[b]("on"+t,n),i=!0):(e[D](t,n,r),i=!0)}catch(o){}return i}function H(e,t,n,r){if(void 0===r&&(r=!1),!q(e))try{q(e[k])?q(e[P])||e[P]("on"+t,n):e[k](t,n,r)}catch(i){}}var X=(J.isDate=function(e){return"[object Date]"===Object[o].toString.call(e)},J.isArray=function(e){return"[object Array]"===Object[o].toString.call(e)},J.isError=function(e){return"[object Error]"===Object[o].toString.call(e)},J.isString=function(e){return G(e,"string")},J.isNumber=function(e){return G(e,"number")},J.isBoolean=function(e){return G(e,"boolean")},J.disableCookies=function(){J._canUseCookies=!1},J.newGuid=function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(Q,function(e){var t=0|J.randomValue(15);return("x"===e?t:3&t|8).toString(16)})},J.toISOString=function(e){if(J.isDate(e)){var t=function(e){return 1===(e+="").length&&(e="0"+e),e};return e.getUTCFullYear()+"-"+t(1+e.getUTCMonth())+"-"+t(e.getUTCDate())+"T"+t(e.getUTCHours())+":"+t(e.getUTCMinutes())+":"+t(e.getUTCSeconds())+"."+((e.getUTCMilliseconds()/1e3).toFixed(3)+"").slice(2,5)+"Z"}},J.arrForEach=function(e,t,n){for(var r=e.length,i=0;i<r;i++)i in e&&t.call(n||e,e[i],i,e)},J.arrIndexOf=function(e,t,n){for(var r=e.length,i=Math.max(0<=(n=n||0)?n:r-Math.abs(n),0);i<r;i++)if(i in e&&e[i]===t)return i;return-1},J.arrMap=function(e,t,n){for(var r=e.length,i=n||e,o=Array(r),a=0;a<r;a++)a in e&&(o[a]=t.call(i,e[a],e));return o},J.arrReduce=function(e,t,n){var r,i=e.length,o=0;if(3<=arguments.length)r=n;else{for(;o<i&&!(o in e);)o++;r=e[o++]}for(;o<i;)o in e&&(r=t(r,e[o],o,e)),o++;return r},J.strTrim=function(e){return J.isString(e)?e.replace(/^\s+|\s+$/g,""):e},J.objKeys=function(e){var t=!{toString:null}.propertyIsEnumerable("toString");if(!(K(e)||B(e)&&null!==e))throw new TypeError("objKeys called on non-object");var n,r=[];for(n in e)F(e,n)&&r.push(n);if(t)for(var i=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],o=i.length,a=0;a<o;a++)F(e,i[a])&&r.push(i[a]);return r},J.objDefineAccessors=function(e,t,n,r){var i=Object.defineProperty;if(i)try{var o={enumerable:!0,configurable:!0};return n&&(o.get=n),r&&(o.set=r),i(e,t,o),!0}catch(a){}return!1},J.addEventHandler=function(e,t){var n=!1,r=S();return r&&(n=W(r,e,t),n=W(r.body,e,t)||n),(r=T())&&(n=Y.Attach(r,e,t)||n),n},J.dateNow=function(){var e=Date;return e.now?e.now():(new e).getTime()},J.perfNow=function(){var e=N();return e&&e.now?e.now():J.dateNow()},J.newId=function(e){void 0===e&&(e=22);for(var t=J.random32()>>>0,n=0,r="";r.length<e;)r+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"[0|63&t],t>>>=6,5==++n&&(t=(J.random32()<<2&4294967295|3&t)>>>0,n=0);return r},J.isIE=function(){var e;return null===M&&(e=((w()||{}).userAgent||"").toLowerCase(),M=!!~e.indexOf("msie")||!!~e.indexOf("trident/")),M},J.randomValue=function(e){return 0<e?Math.floor(J.random32()/L*(e+1))>>>0:0},J.random32=function(e){var t=(t=x("crypto")||x("msCrypto"))&&t.getRandomValues?t.getRandomValues(new Uint32Array(1))[0]&L:J.isIE()?(R||V(),J.mwcRandom32()&L):Math.floor(A*Math.random()|0);return e||(t>>>=0),t},J.mwcRandomSeed=function(e){e?z(e):V()},J.mwcRandom32=function(e){var t=((U=36969*(65535&U)+(U>>16)&L)<<16)+(65535&(O=18e3*(65535&O)+(O>>16)&L))>>>0&L|0;return e||(t>>>=0),t},J.generateW3CId=function(){for(var e,t=["0","1","2","3","4","5","6","7","8","9","a","b","c","d","e","f"],n="",r=0;r<4;r++)n+=t[15&(e=J.random32())]+t[e>>4&15]+t[e>>8&15]+t[e>>12&15]+t[e>>16&15]+t[e>>20&15]+t[e>>24&15]+t[e>>28&15];var i=t[8+(3&J.random32())|0];return n.substr(0,8)+n.substr(9,4)+"4"+n.substr(13,3)+i+n.substr(16,3)+n.substr(19,12)},J.isTypeof=G,J.isUndefined=j,J.isNullOrUndefined=q,J.hasOwnProperty=F,J.isFunction=K,J.isObject=B,J.objCreate=s,J);function J(){}var $,Q=/[xy]/g,Y=(Z.Attach=W,Z.AttachEvent=W,Z.Detach=H,Z.DetachEvent=H,Z);function Z(){}(Ct=$={})[Ct.CRITICAL=1]="CRITICAL",Ct[Ct.WARNING=2]="WARNING";var ee="constructor",te="prototype",ne="function",re="_dynInstFuncs",ie="_isDynProxy",oe="_dynClass",ae="_dynCls$",se="_unknown_",ce="__proto__",ue=Object.getPrototypeOf,le=0;function fe(e,t){return e&&Object[te].hasOwnProperty.call(e,t)}function ge(e){return typeof e===ne}function pe(e){return e&&(e===Object[te]||e===Array[te])}function de(e){return pe(e)||e===Function[te]}function me(e){if(e){if(ue)return ue(e);if(e=e[ce]||e[te]||e[ee])return e}return null}function he(e,t,n){return t!==ee&&ge(e[t])&&(n||fe(e,t))}function ve(e){throw new TypeError("DynamicProto: "+e)}function ye(e,t){return fe(e,te)?e.name||t||se:((e||{})[ee]||{}).name||t||se}function xe(e,n,t){fe(e,te)||ve("theClass is an invalid class definition.");var r=e[te];!function(e){for(var t=me(n);t&&!de(t);){if(t===e)return 1;t=me(t)}}(r)&&ve("["+ye(e)+"] is not in class heirarchy of ["+ye(n)+"]");var i=null;fe(r,oe)?i=r[oe]:(i=ae+ye(e,"_")+"$"+le,le++,r[oe]=i),t(n,function(e,t,n){function r(e,t){return function(){return t.apply(e,arguments)}}var i={};for(s in n)i[s]=r(t,n[s]);for(var o=me(e),a=[];o&&!de(o)&&!function(e,t){for(var n=e.length-1;0<=n;n--)if(e[n]===t)return 1}(a,o);){for(var s in o)!i[s]&&he(o,s,!ue)&&(i[s]=r(t,o[s]));a.push(o),o=me(o)}return i}(r,n,e=function(e){var t,n={};for(t in e)!n[t]&&he(e,t,!1)&&(n[t]=e[t]);return n}(n))),function(e,t,n,r){if(!pe(e)){var i,o=n[re]=n[re]||{},a=o[t]=o[t]||{};for(i in n)he(n,i,!1)&&n[i]!==r[i]&&(a[i]=n[i],delete n[i],fe(e,i)&&(!e[i]||e[i][ie])||(e[i]=function(t,n){var r=function(){if(this&&fe(t,oe)){var e=((this[re]||{})[t[oe]]||{})[n];if(e)return e.apply(this,arguments);ve("Missing ["+n+"] "+ne)}return(e=t[n])===r&&(e=me(t)[n]),ge(e)||ve("["+n+"] is not a "+ne),e.apply(this,arguments)};return r[ie]=1,r}(e,i)))}}(r,i,n,e)}function _e(e){return e?'"'+e.replace(/\"/g,"")+'"':""}var Se=(Te.dataType="MessageData",Te);function Te(e,t,n,r){void 0===n&&(n=!1),this.messageId=e,this.message=(n?"AI: ":"AI (Internal): ")+e,e="",E()&&(e=C().stringify(r)),e=(t?" message:"+_e(t):"")+(r?" props:"+_e(e):""),this.message+=e}var we=function An(i){this.identifier="DiagnosticLogger",this.queue=[];var s=0,c={};xe(An,this,function(o){var n=X.isNullOrUndefined,a=X.isUndefined,r=X.isFunction;function e(e,t){return e=i[e],n(e)?t:e}n(i)&&(i={}),o.consoleLoggingLevel=function(){return e("loggingLevelConsole",0)},o.telemetryLoggingLevel=function(){return e("loggingLevelTelemetry",1)},o.maxInternalMessageLimit=function(){return e("maxMessageLimit",25)},o.enableDebugExceptions=function(){return e("enableDebugExceptions",!1)},o.throwInternal=function(e,t,n,r,i){if(void 0===i&&(i=!1),r=new Se(t,n,i,r),o.enableDebugExceptions())throw r;!a(r)&&r&&(a(r.message)||(i?(i=+r.messageId,!c[i]&&o.consoleLoggingLevel()>=$.WARNING&&(o.warnToConsole(r.message),c[i]=!0)):o.consoleLoggingLevel()>=$.WARNING&&o.warnToConsole(r.message),o.logInternalMessage(e,r)))},o.warnToConsole=function(e){var t,n=typeof console!==f?console:x("console");n&&(t="log",n.warn&&(t="warn"),r(n[t])&&n[t](e))},o.resetInternalMessageCount=function(){s=0,c={}},o.logInternalMessage=function(e,t){var n,r;s>=o.maxInternalMessageLimit()||(n=!0,r="AITR_"+t.messageId,c[r]?n=!1:c[r]=!0,n&&(e<=o.telemetryLoggingLevel()&&(o.queue.push(t),s++),s===o.maxInternalMessageLimit()&&(t=new Se(23,e="Internal events throttle limit per PageView reached for this app.",!1),o.queue.push(t),o.warnToConsole(e))))}})},Ie="ctx",Ne=(Ee.ParentContextKey="parent",Ee.ChildrenContextKey="childEvts",Ee);function Ee(e,i,t){var n,o=this,a=!1;o.start=X.dateNow(),o.name=e,o.isAsync=t,o.isChildEvt=function(){return!1},X.isFunction(i)&&(a=X.objDefineAccessors(o,"payload",function(){return!n&&X.isFunction(i)&&(n=i(),i=null),n})),o.getCtx=function(e){return e?(e===Ee.ParentContextKey||e===Ee.ChildrenContextKey?o:o[Ie]||{})[e]:null},o.setCtx=function(e,t){e&&(e===Ee.ParentContextKey?(o[e]||(o.isChildEvt=function(){return!0}),o[e]=t):e===Ee.ChildrenContextKey?o[e]=t:(o[Ie]=o[Ie]||{})[e]=t)},o.complete=function(){var e=0,t=o.getCtx(Ee.ChildrenContextKey);if(X.isArray(t))for(var n=0;n<t.length;n++){var r=t[n];r&&(e+=r.time)}o.time=X.dateNow()-o.start,o.exTime=o.time-e,o.complete=function(){},!a&&X.isFunction(i)&&(o.payload=i())}}var Ce=function Ln(t){this.ctx={},xe(Ln,this,function(n){n.create=function(e,t,n){return new Ne(e,t,n)},n.fire=function(e){e&&(e.complete(),t&&t.perfEvent(e))},n.setCtx=function(e,t){e&&((n[Ie]=n[Ie]||{})[e]=t)},n.getCtx=function(e){return(n[Ie]||{})[e]}})},be="CoreUtils.doPerf";function De(e,t,n,r,i){if(e){var o=e;if(o&&X.isFunction(o.getPerfMgr)&&(o=o.getPerfMgr()),o){var a,s=void 0,c=o.getCtx(be);try{if(s=o.create(t(),r,i))return c&&s.setCtx&&(s.setCtx(Ne.ParentContextKey,c),c.getCtx&&c.setCtx&&((a=c.getCtx(Ne.ChildrenContextKey))||(a=[],c.setCtx(Ne.ChildrenContextKey,a)),a.push(s))),o.setCtx(be,s),n(s)}catch(u){s&&s.setCtx&&s.setCtx("exception",u)}finally{s&&o.fire(s),o.setCtx(be,c)}}}return n()}var Pe=X.isFunction,ke=function(i,t){var o=this,a=null,s=Pe(i.processTelemetry),c=Pe(i.setNextPlugin);o._hasRun=!1,o.getPlugin=function(){return i},o.getNext=function(){return a},o.setNext=function(e){a=e},o.processTelemetry=function(n,r){r=r||t;var e=i?i.identifier:"TelemetryPluginChain";De(r?r.core():null,function(){return e+":processTelemetry"},function(){if(i&&s){o._hasRun=!0;try{r.setNext(a),c&&i.setNextPlugin(a),a&&(a._hasRun=!1),i.processTelemetry(n,r)}catch(t){var e=a&&a._hasRun;a&&e||r.diagLog().throwInternal($.CRITICAL,73,"Plugin ["+i.identifier+"] failed during processTelemetry - "+t),a&&!e&&a.processTelemetry(n,r)}}else a&&(o._hasRun=!0,a.processTelemetry(n,r))},function(){return{item:n}},!n.sync)}},Ae=X.isNullOrUndefined;function Le(e,t){var n=[];if(e&&0<e.length)for(var r=null,i=0;i<e.length;i++){var o=e[i];o&&X.isFunction(o.processTelemetry)&&(o=new ke(o,t),n.push(o),r&&r.setNext(o),r=o)}return 0<n.length?n[0]:null}var Me=function Mn(e,i,n,t){var r,o,a,s,c=this,u=null;null!==t&&(e&&X.isFunction(e.getPlugin)?u=function(e,t,n){var r=[],i=!n;if(e)for(;e;){var o=e.getPlugin();!i&&o!==n||(i=!0,r.push(o)),e=e.getNext()}return i||r.push(n),Le(r,t)}(e,c,t||e.getPlugin()):t?(r=c,a=e,s=!1,(o=t)&&e&&(a=[],X.arrForEach(e,function(e){!s&&e!==o||(s=!0,a.push(e))})),o&&!s&&(a=a||[]).push(o),u=Le(a,r)):X.isUndefined(t)&&(u=Le(e,c))),c.core=function(){return n},c.diagLog=function(){return(n||{}).logger||new we(i||{})},c.getCfg=function(){return i},c.getExtCfg=function(e,t){var n,r;return void 0===t&&(t={}),!i||(r=i.extensionConfig)&&e&&(n=r[e]),n||t},c.getConfig=function(e,t,n){var r;return void 0===n&&(n=!1),(e=c.getExtCfg(e,null))&&!Ae(e[t])?r=e[t]:i&&!Ae(i[t])&&(r=i[t]),Ae(r)?n:r},c.hasNext=function(){return null!=u},c.getNext=function(){return u},c.setNext=function(e){u=e},c.processNext=function(e){var t=u;t&&(u=t.getNext(),t.processTelemetry(e,c))},c.createNew=function(e,t){return void 0===e&&(e=null),new Mn(e||u,i,n,t)}},Re=X.isFunction,Oe="getPlugin",Ue=(ze.prototype.initialize=function(e,t,n,r){this._baseTelInit(e,t,n,r)},ze);function ze(){var o=this,a=!1,s=null,c=null;o.core=null,o.diagLog=function(e){return o._getTelCtx(e).diagLog()},o.isInitialized=function(){return a},o.setInitialized=function(e){a=e},o.setNextPlugin=function(e){c=e},o.processNext=function(e,t){t?t.processNext(e):c&&Re(c.processTelemetry)&&c.processTelemetry(e,null)},o._getTelCtx=function(e){void 0===e&&(e=null);var t=e;return t||(e=s||new Me(null,{},o.core),t=c&&c[Oe]?e.createNew(null,c[Oe]):e.createNew(null,c)),t},o._baseTelInit=function(e,t,n,r){e&&(e.extensionConfig=e.extensionConfig||[]),!r&&t&&(r=t.getProcessTelContext().getNext());var i=c;c&&c[Oe]&&(i=c[Oe]()),o.core=t,s=new Me(r,e,t,i),a=!0}}var Ve=X.isFunction,Ge="processTelemetry",je="priority",qe="setNextPlugin",Fe="isInitialized";function Be(t,n){for(var e=[],r=null,i=t.getNext();i;){var o=i.getPlugin();o&&(r&&Ve(r[qe])&&Ve(o[Ge])&&r[qe](o),Ve(o[Fe])&&o[Fe]()||e.push(o),r=o,i=i.getNext())}X.arrForEach(e,function(e){e.initialize(t.getCfg(),t.core(),n,t.getNext())})}function Ke(e){return e.sort(function(e,t){var n=0,r=Ve(t[Ge]);return Ve(e[Ge])?n=r?e[je]-t[je]:1:r&&(n=-1),n})}var We,He=500,Xe="Channel has invalid priority",Je=X.objDefineAccessors,$e=(We=Ue,__extends(Qe,We),Qe._staticInit=(Je(Qe.prototype,"ChannelControls",Qe.prototype.getChannelControls),void Je(Qe.prototype,"channelQueue",Qe.prototype.getChannelControls)),Qe);function Qe(){var r=We.call(this)||this;r.identifier="ChannelControllerPlugin",r.priority=He;var c,u=X.arrForEach;function l(e){e&&0<e.length&&(e=e.sort(function(e,t){return e.priority-t.priority}),u(e,function(e){if(e.priority<He)throw Error(Xe+e.identifier)}),c.push(e))}return xe(Qe,r,function(a,s){a.setNextPlugin=function(e){},a.processTelemetry=function(t,n){c&&u(c,function(e){0<e.length&&r._getTelCtx(n).createNew(e).processNext(t)})},a.getChannelControls=function(){return c},a.initialize=function(t,n,r){var e,i,o;a.isInitialized()||(s.initialize(t,n,r),t.isCookieUseDisabled&&X.disableCookies(),i=r,c=[],(e=(t||{}).channels)&&u(e,l),i&&(o=[],u(i,function(e){e.priority>He&&o.push(e)}),l(o)),u(c,function(e){return Be(new Me(e,t,n),r)}))}}),r}var Ye=X.arrForEach,Ze=X.isNullOrUndefined,et="_notificationManager",tt=function Rn(e){this.listeners=[];var o=X.arrForEach,t=!!(e||{}).perfEvtsSendAll;xe(Rn,this,function(i){i.addNotificationListener=function(e){i.listeners.push(e)},i.removeNotificationListener=function(e){for(var t=X.arrIndexOf(i.listeners,e);-1<t;)i.listeners.splice(t,1),t=X.arrIndexOf(i.listeners,e)},i.eventsSent=function(t){o(i.listeners,function(e){e&&e.eventsSent&&setTimeout(function(){return e.eventsSent(t)},0)})},i.eventsDiscarded=function(t,n){o(i.listeners,function(e){e&&e.eventsDiscarded&&setTimeout(function(){return e.eventsDiscarded(t,n)},0)})},i.eventsSendRequest=function(n,r){o(i.listeners,function(e){if(e&&e.eventsSendRequest)if(r)setTimeout(function(){return e.eventsSendRequest(n,r)},0);else try{e.eventsSendRequest(n,r)}catch(t){}})},i.perfEvent=function(n){n&&(!t&&n.isChildEvt()||o(i.listeners,function(e){if(e&&e.perfEvent)if(n.isAsync)setTimeout(function(){return e.perfEvent(n)},0);else try{e.perfEvent(n)}catch(t){}}))}})},nt=function On(){var t,s,c,n,u=!1;xe(On,this,function(a){a._extensions=[],s=new $e,t=[],a.isInitialized=function(){return u},a.initialize=function(e,t,r,n){if(a.isInitialized())throw Error("Core should not be initialized more than once");if(!e||Ze(e.instrumentationKey))throw Error("Please provide instrumentation key");c=n,a[et]=n,a.config=e||{},e.extensions=Ze(e.extensions)?[]:e.extensions,(e.extensionConfig=Ze(e.extensionConfig)?{}:e.extensionConfig).NotificationManager=n,r=r||X.objCreate({throwInternal:function(e,t,n,r,i){void 0===i&&(i=!1)},warnToConsole:function(e){},resetInternalMessageCount:function(){}}),a.logger=r,(n=[]).push.apply(n,t.concat(e.extensions)),n=Ke(n);var i=[],o={};if(Ye(n,function(e){if(Ze(e)||Ze(e.initialize))throw Error("Extensions must provide callback to initialize");var t=e.priority,n=e.identifier;e&&t&&(Ze(o[t])?o[t]=n:r.warnToConsole("Two extensions have same priority #"+t+" - "+o[t]+", "+n)),(!t||t<s.priority)&&i.push(e)}),n.push(s),i.push(s),n=Ke(n),a._extensions=n,Be(new Me([s],e,a),n),Be(new Me(i,e,a),n),a._extensions=i,0===a.getTransmissionControls().length)throw Error("No channels available");u=!0,a.releaseQueue()},a.getTransmissionControls=function(){return s.getChannelControls()},a.track=function(e){e.iKey||(e.iKey=a.config.instrumentationKey),e.time||(e.time=X.toISOString(new Date)),Ze(e.ver)&&(e.ver="4.0"),a.isInitialized()?a.getProcessTelContext().processNext(e):t.push(e)},a.getProcessTelContext=function(){var e=a._extensions,t=e;return e&&0!==e.length||(t=[s]),new Me(t,a.config,a)},a.getNotifyMgr=function(){return c||(c=X.objCreate({addNotificationListener:function(e){},removeNotificationListener:function(e){},eventsSent:function(e){},eventsDiscarded:function(e,t){},eventsSendRequest:function(e,t){}}),a[et]=c),c},a.getPerfMgr=function(){return n||a.config&&a.config.enablePerfMgr&&(n=new Ce(a.getNotifyMgr())),n},a.setPerfMgr=function(e){n=e},a.eventCnt=function(){return t.length},a.releaseQueue=function(){0<t.length&&(Ye(t,function(e){a.getProcessTelContext().processNext(e)}),t=[])}})};__extends(function Un(){var e=nt.call(this)||this;return xe(Un,e,function(n,i){function t(e){var t=n.getNotifyMgr();t&&t.eventsDiscarded([e],l)}n.initialize=function(e,t,n,r){i.initialize(e,t,n||new we(e),r||new tt(e))},n.track=function(e){De(n.getPerfMgr(),function(){return"AppInsightsCore:track"},function(){if(null===e)throw t(e),Error("Invalid telemetry item");!function(e){if(X.isNullOrUndefined(e.name))throw t(e),Error("telemetry name required")}(e),i.track(e)},function(){return{item:e}},!e.sync)},n.addNotificationListener=function(e){var t=n.getNotifyMgr();t&&t.addNotificationListener(e)},n.removeNotificationListener=function(e){var t=n.getNotifyMgr();t&&t.removeNotificationListener(e)},n.pollInternalLogs=function(t){var e=n.config.diagnosticLogInterval;return e&&0<e||(e=1e4),setInterval(function(){var e=n.logger?n.logger.queue:[];X.arrForEach(e,function(e){e={name:t||"InternalMessageId: "+e.messageId,iKey:n.config.instrumentationKey,time:X.toISOString(new Date),baseType:Se.dataType,baseData:{message:e.message}},n.track(e)}),e.length=0},e)}}),e},nt);var rt=(it.sanitizeKeyAndAddUniqueness=function(e,t,n){var r=t.length,i=it.sanitizeKey(e,t);if(i.length!==r){for(var o=0,a=i;n[a]!==undefined;)o++,a=i.substring(0,it.MAX_NAME_LENGTH-3)+it.padNumber(o);i=a}return i},it.sanitizeKey=function(e,t){var n;return t&&(t=it.trim(t.toString())).length>it.MAX_NAME_LENGTH&&(n=t.substring(0,it.MAX_NAME_LENGTH),e.throwInternal($.WARNING,57,"name is too long. It has been truncated to "+it.MAX_NAME_LENGTH+" characters.",{name:t},!0)),n||t},it.sanitizeString=function(e,t,n){var r;return void 0===n&&(n=it.MAX_STRING_LENGTH),t&&(n=n||it.MAX_STRING_LENGTH,(t=it.trim(t)).toString().length>n&&(r=t.toString().substring(0,n),e.throwInternal($.WARNING,61,"string value is too long. It has been truncated to "+n+" characters.",{value:t},!0))),r||t},it.sanitizeUrl=function(e,t){return it.sanitizeInput(e,t,it.MAX_URL_LENGTH,66)},it.sanitizeMessage=function(e,t){var n;return t&&t.length>it.MAX_MESSAGE_LENGTH&&(n=t.substring(0,it.MAX_MESSAGE_LENGTH),e.throwInternal($.WARNING,56,"message is too long, it has been truncated to "+it.MAX_MESSAGE_LENGTH+" characters.",{message:t},!0)),n||t},it.sanitizeException=function(e,t){var n;return t&&t.length>it.MAX_EXCEPTION_LENGTH&&(n=t.substring(0,it.MAX_EXCEPTION_LENGTH),e.throwInternal($.WARNING,52,"exception is too long, it has been truncated to "+it.MAX_EXCEPTION_LENGTH+" characters.",{exception:t},!0)),n||t},it.sanitizeProperties=function(e,t){if(t){var n,r={};for(n in t){var i=t[n];if(X.isObject(i)&&E())try{i=C().stringify(i)}catch(o){e.throwInternal($.WARNING,49,"custom property is not valid",{exception:o},!0)}i=it.sanitizeString(e,i,it.MAX_PROPERTY_LENGTH),r[n=it.sanitizeKeyAndAddUniqueness(e,n,r)]=i}t=r}return t},it.sanitizeMeasurements=function(e,t){if(t){var n={};for(r in t){var r,i=t[r];n[r=it.sanitizeKeyAndAddUniqueness(e,r,n)]=i}t=n}return t},it.sanitizeId=function(e,t){return t?it.sanitizeInput(e,t,it.MAX_ID_LENGTH,69).toString():t},it.sanitizeInput=function(e,t,n,r){var i;return t&&(t=it.trim(t)).length>n&&(i=t.substring(0,n),e.throwInternal($.WARNING,r,"input is too long, it has been truncated to "+n+" characters.",{data:t},!0)),i||t},it.padNumber=function(e){return(e="00"+e).substr(e.length-3)},it.trim=function(e){return X.isString(e)?e.replace(/^\s+|\s+$/g,""):e},it.MAX_NAME_LENGTH=150,it.MAX_ID_LENGTH=128,it.MAX_PROPERTY_LENGTH=8192,it.MAX_STRING_LENGTH=1024,it.MAX_URL_LENGTH=2048,it.MAX_MESSAGE_LENGTH=32768,it.MAX_EXCEPTION_LENGTH=32768,it);function it(){}var ot=w(),at=X.isString,st=null,ct=(ut.createDomEvent=function(e){var t,n=null;return X.isFunction(Event)?n=new Event(e):(t=T())&&t.createEvent&&(n=t.createEvent("Event")).initEvent(e,!0,!0),n},ut.disableStorage=function(){ut._canUseLocalStorage=!1,ut._canUseSessionStorage=!1},ut._getLocalStorageObject=function(){return ut.canUseLocalStorage()?ut._getVerifiedStorageObject(c.LocalStorage):null},ut._getVerifiedStorageObject=function(e){var t,n,r=null;try{if(X.isNullOrUndefined(y()))return null;n=new Date,(r=x(e===c.LocalStorage?"localStorage":"sessionStorage")).setItem(n.toString(),n.toString()),t=r.getItem(n.toString())!==n.toString(),r.removeItem(n.toString()),t&&(r=null)}catch(i){r=null}return r},ut.isInternalApplicationInsightsEndpoint=function(e){return!!~ut._internalEndpoints.indexOf(e.toLowerCase())},ut.canUseLocalStorage=function(){return ut._canUseLocalStorage===undefined&&(ut._canUseLocalStorage=!!ut._getVerifiedStorageObject(c.LocalStorage)),ut._canUseLocalStorage},ut.getStorage=function(e,t){var n=ut._getLocalStorageObject();if(null!==n)try{return n.getItem(t)}catch(r){ut._canUseLocalStorage=!1,e.throwInternal($.WARNING,1,"Browser failed read of local storage. "+ut.getExceptionName(r),{exception:ut.dump(r)})}return null},ut.setStorage=function(e,t,n){var r=ut._getLocalStorageObject();if(null!==r)try{return r.setItem(t,n),!0}catch(i){ut._canUseLocalStorage=!1,e.throwInternal($.WARNING,3,"Browser failed write to local storage. "+ut.getExceptionName(i),{exception:ut.dump(i)})}return!1},ut.removeStorage=function(e,t){var n=ut._getLocalStorageObject();if(null!==n)try{return n.removeItem(t),!0}catch(r){ut._canUseLocalStorage=!1,e.throwInternal($.WARNING,5,"Browser failed removal of local storage item. "+ut.getExceptionName(r),{exception:ut.dump(r)})}return!1},ut._getSessionStorageObject=function(){return ut.canUseSessionStorage()?ut._getVerifiedStorageObject(c.SessionStorage):null},ut.canUseSessionStorage=function(){return ut._canUseSessionStorage===undefined&&(ut._canUseSessionStorage=!!ut._getVerifiedStorageObject(c.SessionStorage)),ut._canUseSessionStorage},ut.getSessionStorageKeys=function(){var e=[];if(ut.canUseSessionStorage())for(var t in x("sessionStorage"))e.push(t);return e},ut.getSessionStorage=function(e,t){var n=ut._getSessionStorageObject();if(null!==n)try{return n.getItem(t)}catch(r){ut._canUseSessionStorage=!1,e.throwInternal($.WARNING,2,"Browser failed read of session storage. "+ut.getExceptionName(r),{exception:ut.dump(r)})}return null},ut.setSessionStorage=function(e,t,n){var r=ut._getSessionStorageObject();if(null!==r)try{return r.setItem(t,n),!0}catch(i){ut._canUseSessionStorage=!1,e.throwInternal($.WARNING,4,"Browser failed write to session storage. "+ut.getExceptionName(i),{exception:ut.dump(i)})}return!1},ut.removeSessionStorage=function(e,t){var n=ut._getSessionStorageObject();if(null!==n)try{return n.removeItem(t),!0}catch(r){ut._canUseSessionStorage=!1,e.throwInternal($.WARNING,6,"Browser failed removal of session storage item. "+ut.getExceptionName(r),{exception:ut.dump(r)})}return!1},ut.disableCookies=function(){X.disableCookies()},ut.canUseCookies=function(e){if(X._canUseCookies===undefined){X._canUseCookies=!1;try{X._canUseCookies=ut.document.cookie!==undefined}catch(t){e.throwInternal($.WARNING,68,"Cannot access document.cookie - "+ut.getExceptionName(t),{exception:ut.dump(t)})}}return X._canUseCookies},ut.disallowsSameSiteNone=function(e){return!(!at(e)||!~e.indexOf("CPU iPhone OS 12")&&!~e.indexOf("iPad; CPU OS 12")&&!(~e.indexOf("Macintosh; Intel Mac OS X 10_14")&&~e.indexOf("Version/")&&~e.indexOf("Safari"))&&(!~e.indexOf("Macintosh; Intel Mac OS X 10_14")||(n=(t=e.length)-40,"AppleWebKit/605.1.15 (KHTML, like Gecko)"!=e.substring(0<=n?n:0,t)))&&!~e.indexOf("Chrome/5")&&!~e.indexOf("Chrome/6")&&(!~e.indexOf("UnrealEngine")||~e.indexOf("Chrome"))&&!~e.indexOf("UCBrowser/12")&&!~e.indexOf("UCBrowser/11"));var t,n},ut.setCookie=function(e,t,n,r){var i;ut.canUseCookies(e)&&(e=i="",r&&(i=";domain="+r),(r=I())&&"https:"===r.protocol&&(e=";secure",null===st&&(st=ut.disallowsSameSiteNone((w()||{}).userAgent)),st||(n+=";SameSite=None")),ut.document.cookie=t+"="+n+i+";path=/"+e)},ut.stringToBoolOrDefault=function(e,t){return void 0===t&&(t=!1),e===undefined||null===e?t:"true"==e.toString().toLowerCase()},ut.getCookie=function(e,t){if(ut.canUseCookies(e)){var n="";if(t&&t.length)for(var r=t+"=",i=ut.document.cookie.split(";"),o=0;o<i.length;o++){var a=i[o];if((a=ut.trim(a))&&!a.indexOf(r)){n=a.substring(r.length,i[o].length);break}}return n}},ut.deleteCookie=function(e,t){ut.canUseCookies(e)&&(ut.document.cookie=t+"=;path=/;expires=Thu, 01 Jan 1970 00:00:01 GMT;")},ut.random32=function(){return X.random32(!0)},ut.getIEVersion=function(e){return void 0===e&&(e=null),~(e=e?e.toLowerCase():ot?(ot.userAgent||"").toLowerCase():"").indexOf("msie")?parseInt(e.split("msie")[1]):e.indexOf("trident/")&&(e=parseInt(e.split("trident/")[1]))?e+4:null},ut.msToTimeSpan=function(e){(isNaN(e)||e<0)&&(e=0);var t=""+(e=Math.round(e))%1e3,n=""+Math.floor(e/1e3)%60,r=""+Math.floor(e/6e4)%60,i=""+Math.floor(e/36e5)%24,e=Math.floor(e/864e5),t=1===t.length?"00"+t:2===t.length?"0"+t:t,n=n.length<2?"0"+n:n,r=r.length<2?"0"+r:r;return(0<e?e+".":"")+(i=i.length<2?"0"+i:i)+":"+r+":"+n+"."+t},ut.isCrossOriginError=function(e,t,n,r,i){return("Script error."===e||"Script error"===e)&&!i},ut.dump=function(e){var t=Object[g].toString.call(e),n="";return"[object Error]"===t?n="{ stack: '"+e.stack+"', message: '"+e.message+"', name: '"+e.name+"'":E()&&(n=C().stringify(e)),t+n},ut.getExceptionName=function(e){return"[object Error]"===Object[g].toString.call(e)?e.name:""},ut.addEventHandler=function(e,t){return Y.Attach(S(),e,t)},ut.IsBeaconApiSupported=function(){return"sendBeacon"in ot&&ot.sendBeacon},ut.getExtension=function(e,t){for(var n=null,r=0;!n&&r<e.length;)e[r]&&e[r].identifier===t&&(n=e[r]),r++;return n},ut.document=T()||{},ut._canUseLocalStorage=undefined,ut._canUseSessionStorage=undefined,ut._internalEndpoints=["https://dc.services.visualstudio.com/v2/track","https://breeze.aimon.applicationinsights.io/v2/track","https://dc-int.services.visualstudio.com/v2/track"],ut.NotSpecified="not_specified",ut.trim=X.strTrim,ut.newId=X.newId,ut.generateW3CId=X.generateW3CId,ut.isArray=X.isArray,ut.isError=X.isError,ut.isDate=X.isDate,ut.toISOStringForIE8=X.toISOString,ut);function ut(){}var lt=(ft.parseUrl=function(e){var t=ft._htmlAnchorIdx,n=ft._htmlAnchorElement,r=n[t];return ft.document.createElement?n[t]||(r=n[t]=ft.document.createElement("a")):r={host:ft.parseHost(e,!0)},r.href=e,++t>=n.length&&(t=0),ft._htmlAnchorIdx=t,r},ft.getAbsoluteUrl=function(e){var t;return(e=ft.parseUrl(e))&&(t=e.href),t},ft.getPathName=function(e){var t;return(e=ft.parseUrl(e))&&(t=e.pathname),t},ft.getCompleteUrl=function(e,t){return e?e.toUpperCase()+" "+t:t},ft.parseHost=function(e,t){return(e=ft.parseFullHost(e,t))&&null!=(t=e.match(/(www[0-9]?\.)?(.[^/:]+)(\:[\d]+)?/i))&&3<t.length&&at(t[2])&&0<t[2].length?t[2]+(t[3]||""):e},ft.parseFullHost=function(e,t){var n=null;return!e||null!=(e=e.match(/(\w*):\/\/(.[^/:]+)(\:[\d]+)?/i))&&2<e.length&&at(e[2])&&0<e[2].length&&(n=e[2]||"",t&&2<e.length&&(t=(e[1]||"").toLowerCase(),e=e[3]||"",("http"==t&&":80"===e||"https"==t&&":443"===e)&&(e=""),n+=e)),n},ft.document=T()||{},ft._htmlAnchorIdx=0,ft._htmlAnchorElement=[null,null,null,null,null],ft);function ft(){}var gt=(pt.ParseDependencyPath=function(e,t,n,r){var i,o,a,s=r,c=r,s=t&&0<t.length?(a=(i=lt.parseUrl(t)).host,s||(null!=i.pathname?("/"!=(o=0===i.pathname.length?"/":i.pathname)[0]&&(o="/"+o),c=i.pathname,rt.sanitizeString(e,n?n+" "+o:o)):rt.sanitizeString(e,t))):a=r;return{target:a,name:s,data:c}},pt);function pt(){}var dt=(mt.Now=function(){var e=N();return e&&e.now&&e.timing&&0<(e=e.now()+e.timing.navigationStart)?e:(new Date).getTime()},mt.GetDuration=function(e,t){var n=null;return 0===e||0===t||X.isNullOrUndefined(e)||X.isNullOrUndefined(t)||(n=t-e),n},mt);function mt(){}var ht,vt=(__extends(yt,function(){}),yt);function yt(){return this}ht=function(){this.ver=1,this.sampleRate=100,this.tags={}},__extends(function(e,t,n){var r=ht.call(this)||this;return r.name=rt.sanitizeString(e,n)||ct.NotSpecified,r.data=t,r.time=X.toISOString(new Date),r.aiDataContract={time:p.Required,iKey:p.Required,name:p.Required,sampleRate:function(){return 100===r.sampleRate?p.Hidden:p.Required},tags:p.Required,data:p.Required},r},ht);var xt,_t=(xt=an=function(){},__extends(St,xt),St);function St(){var e=xt.call(this)||this;return e.ver=2,e.properties={},e.measurements={},e}var Tt,wt=(Tt=_t,__extends(It,Tt),It.envelopeType="Microsoft.ApplicationInsights.{0}.Event",It.dataType="EventData",It);function It(e,t,n,r){var i=Tt.call(this)||this;return i.aiDataContract={ver:p.Required,name:p.Required,properties:p.Default,measurements:p.Default},i.name=rt.sanitizeString(e,t)||ct.NotSpecified,i.properties=rt.sanitizeProperties(e,n),i.measurements=rt.sanitizeMeasurements(e,r),i}var Nt,Et=function(){},Ct=(Nt=an,__extends(bt,Nt),bt);function bt(){var e=Nt.call(this)||this;return e.ver=2,e.exceptions=[],e.properties={},e.measurements={},e}var Dt,Je=function(){this.hasFullStack=!0,this.parsedStack=[]},Pt="error",kt=(Dt=Ct,__extends(At,Dt),At.CreateFromInterface=function(t,e,n,r){var i=e.exceptions&&X.arrMap(e.exceptions,function(e){return Mt.CreateFromInterface(t,e)});return new At(t,__assign({},e,{exceptions:i}),n,r)},At.prototype.toInterface=function(){var e=this.exceptions,t=this.properties,n=this.measurements,r=this.severityLevel,i=(this.ver,this.problemGroup),o=this.id,a=this.isManual;return{ver:"4.0",exceptions:e instanceof Array&&X.arrMap(e,function(e){return e.toInterface()})||undefined,severityLevel:r,properties:t,measurements:n,problemGroup:i,id:o,isManual:a}},At.CreateSimpleException=function(e,t,n,r,i,o){return{exceptions:[{hasFullStack:!0,message:e,stack:i,typeName:t}]}},At.envelopeType="Microsoft.ApplicationInsights.{0}.Exception",At.dataType="ExceptionData",At);function At(e,t,n,r,i,o){var a,s=Dt.call(this)||this;return s.aiDataContract={ver:p.Required,exceptions:p.Required,severityLevel:p.Default,properties:p.Default,measurements:p.Default},"ver"in(a=t)&&"exceptions"in a&&"properties"in a?(s.exceptions=t.exceptions,s.properties=t.properties,s.measurements=t.measurements,t.severityLevel&&(s.severityLevel=t.severityLevel),t.id&&(s.id=t.id),t.problemGroup&&(s.problemGroup=t.problemGroup),s.ver=2,X.isNullOrUndefined(t.isManual)||(s.isManual=t.isManual)):(s.exceptions=[new Mt(e,t)],s.properties=rt.sanitizeProperties(e,n)||{},s.measurements=rt.sanitizeMeasurements(e,r),i&&(s.severityLevel=i),o&&(s.id=o)),s}var Lt,Mt=(Lt=Je,__extends(Rt,Lt),Rt.prototype.toInterface=function(){var e=this.parsedStack instanceof Array&&X.arrMap(this.parsedStack,function(e){return e.toInterface()});return{id:this.id,outerId:this.outerId,typeName:this.typeName,message:this.message,hasFullStack:this.hasFullStack,stack:this.stack,parsedStack:e||undefined}},Rt.CreateFromInterface=function(e,t){var n=t.parsedStack instanceof Array&&X.arrMap(t.parsedStack,function(e){return Ut.CreateFromInterface(e)})||t.parsedStack;return new Rt(e,__assign({},t,{parsedStack:n}))},Rt.parseStack=function(e){if(X.isString(e)){for(var t=e.split("\n"),n=[],r=0,i=0,o=0;o<=t.length;o++){var a=t[o];Ut.regex.test(a)&&(i+=(a=new Ut(t[o],r++)).sizeInBytes,n.push(a))}if(32768<i)for(var s=0,c=n.length-1,u=0,l=s,f=c;s<c;){if(32768<(u+=n[s].sizeInBytes+n[c].sizeInBytes)){var g=f-l+1;n.splice(l,g);break}l=s,f=c,s++,c--}}return n},Rt);function Rt(e,t){var n,r=Lt.call(this)||this;return r.aiDataContract={id:p.Default,outerId:p.Default,typeName:p.Required,message:p.Required,hasFullStack:p.Default,stack:p.Default,parsedStack:p.Array},"hasFullStack"in(n=t)&&"typeName"in n?(r.typeName=t.typeName,r.message=t.message,r.stack=t.stack,r.parsedStack=t.parsedStack,r.hasFullStack=t.hasFullStack):(n=t,ct.isError(n)||(n=n[Pt]||n.evt||n),r.typeName=rt.sanitizeString(e,function(e){var t="";if(e&&!(t=e.typeName||e.name||""))try{var n=/function (.{1,})\(/.exec(e.constructor.toString()),t=n&&1<n.length?n[1]:""}catch(r){}return t}(n))||ct.NotSpecified,r.message=rt.sanitizeMessage(e,t.message)||ct.NotSpecified,t=t.stack,r.parsedStack=Rt.parseStack(t),r.stack=rt.sanitizeException(e,t),r.hasFullStack=ct.isArray(r.parsedStack)&&0<r.parsedStack.length),r}var Ot,Ut=(Ot=Et,__extends(zt,Ot),zt.CreateFromInterface=function(e){return new zt(e,null)},zt.prototype.toInterface=function(){return{level:this.level,method:this.method,assembly:this.assembly,fileName:this.fileName,line:this.line}},zt.regex=/^([\s]+at)?(.*?)(\@|\s\(|\s)([^\(\@\n]+):([0-9]+):([0-9]+)(\)?)$/,zt.baseSize=58,zt);function zt(e,t){var n,r=Ot.call(this)||this;return r.sizeInBytes=0,r.aiDataContract={level:p.Required,method:p.Required,assembly:p.Default,fileName:p.Default,line:p.Default},"string"==typeof e?(n=e,r.level=t,r.method="<no_method>",r.assembly=ct.trim(n),r.fileName="",r.line=0,(n=n.match(zt.regex))&&5<=n.length&&(r.method=ct.trim(n[2])||r.method,r.fileName=ct.trim(n[4]),r.line=parseInt(n[5])||0)):(r.level=e.level,r.method=e.method,r.assembly=e.assembly,r.fileName=e.fileName,r.line=e.line,r.sizeInBytes=0),r.sizeInBytes+=r.method.length,r.sizeInBytes+=r.fileName.length,r.sizeInBytes+=r.assembly.length,r.sizeInBytes+=zt.baseSize,r.sizeInBytes+=r.level.toString().length,r.sizeInBytes+=r.line.toString().length,r}var Vt,Gt,Je=(Vt=an,__extends(jt,Vt),jt);function jt(){var e=Vt.call(this)||this;return e.ver=2,e.metrics=[],e.properties={},e.measurements={},e}(Et=Gt={})[Et.Measurement=0]="Measurement",Et[Et.Aggregation=1]="Aggregation";var qt,Ft=(qt=function(){this.kind=Gt.Measurement},__extends(Bt,qt),Bt);function Bt(){var e=qt.apply(this,arguments)||this;return e.aiDataContract={name:p.Required,kind:p.Default,value:p.Required,count:p.Default,min:p.Default,max:p.Default,stdDev:p.Default},e}var Kt,Wt=(Kt=Je,__extends(Ht,Kt),Ht.envelopeType="Microsoft.ApplicationInsights.{0}.Metric",Ht.dataType="MetricData",Ht);function Ht(e,t,n,r,i,o,a,s){var c=Kt.call(this)||this;c.aiDataContract={ver:p.Required,metrics:p.Required,properties:p.Default};var u=new Ft;return u.count=0<r?r:undefined,u.max=isNaN(o)||null===o?undefined:o,u.min=isNaN(i)||null===i?undefined:i,u.name=rt.sanitizeString(e,t)||ct.NotSpecified,u.value=n,c.metrics=[u],c.properties=rt.sanitizeProperties(e,a),c.measurements=rt.sanitizeMeasurements(e,s),c}var Xt,Je=(Xt=_t,__extends(Jt,Xt),Jt);function Jt(){var e=Xt.call(this)||this;return e.ver=2,e.properties={},e.measurements={},e}var $t,Qt=($t=Je,__extends(Yt,$t),Yt.envelopeType="Microsoft.ApplicationInsights.{0}.Pageview",Yt.dataType="PageviewData",Yt);function Yt(e,t,n,r,i,o,a){var s=$t.call(this)||this;return s.aiDataContract={ver:p.Required,name:p.Default,url:p.Default,duration:p.Default,properties:p.Default,measurements:p.Default,id:p.Default},s.id=rt.sanitizeId(e,a),s.url=rt.sanitizeUrl(e,n),s.name=rt.sanitizeString(e,t)||ct.NotSpecified,isNaN(r)||(s.duration=ct.msToTimeSpan(r)),s.properties=rt.sanitizeProperties(e,i),s.measurements=rt.sanitizeMeasurements(e,o),s}var Zt,_t=(Zt=an,__extends(en,Zt),en);function en(){var e=Zt.call(this)||this;return e.ver=2,e.success=!0,e.properties={},e.measurements={},e}var tn,nn=(tn=_t,__extends(rn,tn),rn.envelopeType="Microsoft.ApplicationInsights.{0}.RemoteDependency",rn.dataType="RemoteDependencyData",rn);function rn(e,t,n,r,i,o,a,s,c,u,l,f){void 0===c&&(c="Ajax");var g=tn.call(this)||this;return g.aiDataContract={id:p.Required,ver:p.Required,name:p.Default,resultCode:p.Default,duration:p.Default,success:p.Default,data:p.Default,target:p.Default,type:p.Default,properties:p.Default,measurements:p.Default,kind:p.Default,value:p.Default,count:p.Default,min:p.Default,max:p.Default,stdDev:p.Default,dependencyKind:p.Default,dependencySource:p.Default,commandName:p.Default,dependencyTypeName:p.Default},g.id=t,g.duration=ct.msToTimeSpan(i),g.success=o,g.resultCode=a+"",g.type=rt.sanitizeString(e,c),s=gt.ParseDependencyPath(e,n,s,r),g.data=rt.sanitizeUrl(e,r)||s.data,g.target=rt.sanitizeString(e,s.target),u&&(g.target=g.target+" | "+u),g.name=rt.sanitizeString(e,s.name),g.properties=rt.sanitizeProperties(e,l),g.measurements=rt.sanitizeMeasurements(e,f),g}var on,an=(on=an,__extends(sn,on),sn);function sn(){var e=on.call(this)||this;return e.ver=2,e.properties={},e.measurements={},e}var cn,un=(cn=an,__extends(ln,cn),ln.envelopeType="Microsoft.ApplicationInsights.{0}.Message",ln.dataType="MessageData",ln);function ln(e,t,n,r,i){var o=cn.call(this)||this;return o.aiDataContract={ver:p.Required,message:p.Required,severityLevel:p.Default,properties:p.Default},t=t||ct.NotSpecified,o.message=rt.sanitizeMessage(e,t),o.properties=rt.sanitizeProperties(e,r),o.measurements=rt.sanitizeMeasurements(e,i),n&&(o.severityLevel=n),o}var fn,Je=(fn=Je,__extends(gn,fn),gn);function gn(){var e=fn.call(this)||this;return e.ver=2,e.properties={},e.measurements={},e}var pn,dn,mn,hn=(pn=Je,__extends(vn,pn),vn.envelopeType="Microsoft.ApplicationInsights.{0}.PageviewPerformance",vn.dataType="PageviewPerformanceData",vn);function vn(e,t,n,r,i,o,a){var s=pn.call(this)||this;return s.aiDataContract={ver:p.Required,name:p.Default,url:p.Default,duration:p.Default,perfTotal:p.Default,networkConnect:p.Default,sentRequest:p.Default,receivedResponse:p.Default,domProcessing:p.Default,properties:p.Default,measurements:p.Default},s.url=rt.sanitizeUrl(e,n),s.name=rt.sanitizeString(e,t)||ct.NotSpecified,s.properties=rt.sanitizeProperties(e,i),s.measurements=rt.sanitizeMeasurements(e,o),a&&(s.domProcessing=a.domProcessing,s.duration=a.duration,s.networkConnect=a.networkConnect,s.perfTotal=a.perfTotal,s.receivedResponse=a.receivedResponse,s.sentRequest=a.sentRequest),s}dn=vt,__extends(function(e,t){var n=dn.call(this)||this;return n.aiDataContract={baseType:p.Required,baseData:p.Required},n.baseType=e,n.baseData=t,n},dn),(vt=mn={})[vt.Verbose=0]="Verbose",vt[vt.Information=1]="Information",vt[vt.Warning=2]="Warning",vt[vt.Error=3]="Error",vt[vt.Critical=4]="Critical";var yn=(xn.create=function(e,t,n,r,i,o){if(n=rt.sanitizeString(r,n)||ct.NotSpecified,X.isNullOrUndefined(e)||X.isNullOrUndefined(t)||X.isNullOrUndefined(n))throw Error("Input doesn't contain all required fields");var a={name:n,time:X.toISOString(new Date),iKey:"",ext:o||{},tags:[],data:{},baseType:t,baseData:e};if(!X.isNullOrUndefined(i))for(var s in i)i.hasOwnProperty(s)&&(a.data[s]=i[s]);return a},xn);function xn(){}var _n=function zn(h,v,t,y){xe(zn,this,function(e){var l,n=X.arrForEach,f=X.isNullOrUndefined,g=null,p=[],d=!1;function m(){t&&n(t.getTransmissionControls(),function(e){n(e,function(e){return e.flush(!0)})})}t&&(l=t.logger),e.trackPageView=function(r,i){var o=r.name;!f(o)&&"string"==typeof o||(e=T(),o=r.name=e&&e.title||"");var e,a=r.uri;if(!f(a)&&"string"==typeof a||(e=I(),a=r.uri=e&&e.href||""),!y.isPerformanceTimingSupported())return h.sendPageViewInternal(r,i),m(),void l.throwInternal($.WARNING,25,"trackPageView: navigation timing API used for calculation of page duration is not supported in this browser. This page view will be collected without duration and timing info.");var s,t,c=!1,u=y.getPerformanceTiming().navigationStart;0<u&&(s=dt.GetDuration(u,+new Date),y.shouldCollectDuration(s)||(s=undefined)),f(i)||f(i.duration)||(t=i.duration),!v&&isNaN(t)||(isNaN(t)&&((i=i||{}).duration=s),h.sendPageViewInternal(r,i),m(),c=!0),i=i||{},t=function(){var e,t=!1;try{y.isPerformanceTimingDataReady()?(t=!0,e={name:o,uri:a},y.populatePageViewPerformanceEvent(e),e.isValid||c?(c||(i.duration=e.durationMs,h.sendPageViewInternal(r,i)),d||(h.sendPageViewPerformanceInternal(e,i),d=!0)):(i.duration=s,h.sendPageViewInternal(r,i))):0<u&&6e4<dt.GetDuration(u,+new Date)&&(t=!0,c||(i.duration=6e4,h.sendPageViewInternal(r,i)))}catch(n){l.throwInternal($.CRITICAL,38,"trackPageView failed on page load calculation: "+ct.getExceptionName(n),{exception:ct.dump(n)})}return t},p.push(t),g=g||setInterval(function(){var e=p.slice(0),t=!1;p=[],n(e,function(e){e()?t=!0:p.push(e)}),0===p.length&&(clearInterval(g),g=null),t&&m()},100)}})},Sn=(Tn.prototype.trackPreviousPageVisit=function(e,t){try{var n=this.restartPageVisitTimer(e,t);n&&this.pageVisitTimeTrackingHandler(n.pageName,n.pageUrl,n.pageVisitTime)}catch(r){this._logger.warnToConsole("Auto track page visit time failed, metric will not be collected: "+ct.dump(r))}},Tn.prototype.restartPageVisitTimer=function(e,t){try{var n=this.stopPageVisitTimer();return this.startPageVisitTimer(e,t),n}catch(r){return this._logger.warnToConsole("Call to restart failed: "+ct.dump(r)),null}},Tn.prototype.startPageVisitTimer=function(e,t){try{if(ct.canUseSessionStorage()){if(null!=ct.getSessionStorage(this._logger,this.prevPageVisitDataKeyName))throw Error("Cannot call startPageVisit consecutively without first calling stopPageVisit");var n=new wn(e,t),n=C().stringify(n);ct.setSessionStorage(this._logger,this.prevPageVisitDataKeyName,n)}}catch(r){this._logger.warnToConsole("Call to start failed: "+ct.dump(r))}},Tn.prototype.stopPageVisitTimer=function(){try{if(ct.canUseSessionStorage()){var e=X.dateNow(),t=ct.getSessionStorage(this._logger,this.prevPageVisitDataKeyName);return t&&E()?((t=C().parse(t)).pageVisitTime=e-t.pageVisitStartTime,ct.removeSessionStorage(this._logger,this.prevPageVisitDataKeyName),t):null}return null}catch(n){return this._logger.warnToConsole("Stop page visit timer failed: "+ct.dump(n)),null}},Tn);function Tn(e,t){this.prevPageVisitDataKeyName="prevPageVisitData",this.pageVisitTimeTrackingHandler=t,this._logger=e}var wn=function(e,t){this.pageVisitStartTime=X.dateNow(),this.pageName=e,this.pageUrl=t},In=(Nn.prototype.populatePageViewPerformanceEvent=function(e){e.isValid=!1;var t,n,r,i,o=this.getPerformanceNavigationTiming(),a=this.getPerformanceTiming();(o||a)&&(a=o?(t=o.duration,n=dt.GetDuration(o.startTime,o.connectEnd),r=dt.GetDuration(o.requestStart,o.responseStart),i=dt.GetDuration(o.responseStart,o.responseEnd),dt.GetDuration(o.responseEnd,o.loadEventEnd)):(t=dt.GetDuration(a.navigationStart,a.loadEventEnd),n=dt.GetDuration(a.navigationStart,a.connectEnd),r=dt.GetDuration(a.requestStart,a.responseStart),i=dt.GetDuration(a.responseStart,a.responseEnd),dt.GetDuration(a.responseEnd,a.loadEventEnd)),0===t?this._logger.throwInternal($.WARNING,10,"error calculating page view performance.",{total:t,network:n,request:r,response:i,dom:a}):this.shouldCollectDuration(t,n,r,i,a)?t<Math.floor(n)+Math.floor(r)+Math.floor(i)+Math.floor(a)?this._logger.throwInternal($.WARNING,8,"client performance math error.",{total:t,network:n,request:r,response:i,dom:a}):(e.durationMs=t,e.perfTotal=e.duration=ct.msToTimeSpan(t),e.networkConnect=ct.msToTimeSpan(n),e.sentRequest=ct.msToTimeSpan(r),e.receivedResponse=ct.msToTimeSpan(i),e.domProcessing=ct.msToTimeSpan(a),e.isValid=!0):this._logger.throwInternal($.WARNING,45,"Invalid page load duration value. Browser perf data won't be sent.",{total:t,network:n,request:r,response:i,dom:a}))},Nn.prototype.getPerformanceTiming=function(){return this.isPerformanceTimingSupported()?N().timing:null},Nn.prototype.getPerformanceNavigationTiming=function(){return this.isPerformanceNavigationTimingSupported()?N().getEntriesByType("navigation")[0]:null},Nn.prototype.isPerformanceNavigationTimingSupported=function(){var e=N();return e&&e.getEntriesByType&&0<e.getEntriesByType("navigation").length},Nn.prototype.isPerformanceTimingSupported=function(){var e=N();return e&&e.timing},Nn.prototype.isPerformanceTimingDataReady=function(){var e=N();return(e=e?e.timing:0)&&0<e.domainLookupStart&&0<e.navigationStart&&0<e.responseStart&&0<e.requestStart&&0<e.loadEventEnd&&0<e.responseEnd&&0<e.connectEnd&&0<e.domLoading},Nn.prototype.shouldCollectDuration=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=["googlebot","adsbot-google","apis-google","mediapartners-google"],r=(w()||{}).userAgent,i=!1;if(r)for(var o=0;o<n.length;o++)i=i||!!~r.toLowerCase().indexOf(n[o]);if(i)return!1;for(o=0;o<e.length;o++)if(e[o]<0||e[o]>=this.MAX_DURATION_ALLOWED)return!1;return!0},Nn);function Nn(e){this.MAX_DURATION_ALLOWED=36e5,e&&(this._logger=e.logger)}var En="duration";function Cn(e,t){e&&e.dispatchEvent&&t&&e.dispatchEvent(t)}var bn,Ue=(bn=Ue,__extends(Dn,bn),Dn.getDefaultConfig=function(e){return(e=e||{}).sessionRenewalMs=18e5,e.sessionExpirationMs=864e5,e.disableExceptionTracking=ct.stringToBoolOrDefault(e.disableExceptionTracking),e.autoTrackPageVisitTime=ct.stringToBoolOrDefault(e.autoTrackPageVisitTime),e.overridePageViewDuration=ct.stringToBoolOrDefault(e.overridePageViewDuration),e.enableUnhandledPromiseRejectionTracking=ct.stringToBoolOrDefault(e.enableUnhandledPromiseRejectionTracking),(isNaN(e.samplingPercentage)||e.samplingPercentage<=0||100<=e.samplingPercentage)&&(e.samplingPercentage=100),e.isCookieUseDisabled=ct.stringToBoolOrDefault(e.isCookieUseDisabled),e.isStorageUseDisabled=ct.stringToBoolOrDefault(e.isStorageUseDisabled),e.isBrowserLinkTrackingEnabled=ct.stringToBoolOrDefault(e.isBrowserLinkTrackingEnabled),e.enableAutoRouteTracking=ct.stringToBoolOrDefault(e.enableAutoRouteTracking),e.namePrefix=e.namePrefix||"",e},Dn.prototype.processTelemetry=function(o,a){var s=this;De(this.core,function(){return s.identifier+":processTelemetry"},function(){var e=!1,t=s._telemetryInitializers.length;a=s._getTelCtx(a);for(var n=0;n<t;++n){var r=s._telemetryInitializers[n];if(r)try{if(!1===r.call(null,o)){e=!0;break}}catch(i){a.diagLog().throwInternal($.CRITICAL,64,"One of telemetry initializers failed, telemetry item will not be sent: "+ct.getExceptionName(i),{exception:ct.dump(i)},!0)}}e||s.processNext(o,a)},function(){return{item:o}},!o.sync)},Dn.prototype.trackEvent=function(e,t){try{var n=yn.create(e,wt.dataType,wt.envelopeType,this.diagLog(),t);this.core.track(n)}catch(r){this.diagLog().throwInternal($.WARNING,39,"trackTrace failed, trace will not be collected: "+ct.getExceptionName(r),{exception:ct.dump(r)})}},Dn.prototype.startTrackEvent=function(e){try{this._eventTracking.start(e)}catch(t){this.diagLog().throwInternal($.CRITICAL,29,"startTrackEvent failed, event will not be collected: "+ct.getExceptionName(t),{exception:ct.dump(t)})}},Dn.prototype.stopTrackEvent=function(e,t,n){try{this._eventTracking.stop(e,undefined,t)}catch(r){this.diagLog().throwInternal($.CRITICAL,30,"stopTrackEvent failed, event will not be collected: "+ct.getExceptionName(r),{exception:ct.dump(r)})}},Dn.prototype.trackTrace=function(e,t){try{var n=yn.create(e,un.dataType,un.envelopeType,this.diagLog(),t);this.core.track(n)}catch(r){this.diagLog().throwInternal($.WARNING,39,"trackTrace failed, trace will not be collected: "+ct.getExceptionName(r),{exception:ct.dump(r)})}},Dn.prototype.trackMetric=function(e,t){try{var n=yn.create(e,Wt.dataType,Wt.envelopeType,this.diagLog(),t);this.core.track(n)}catch(r){this.diagLog().throwInternal($.CRITICAL,36,"trackMetric failed, metric will not be collected: "+ct.getExceptionName(r),{exception:ct.dump(r)})}},Dn.prototype.trackPageView=function(e,t){try{var n=e||{};this._pageViewManager.trackPageView(n,__assign({},n.properties,n.measurements,t)),this.config.autoTrackPageVisitTime&&this._pageVisitTimeManager.trackPreviousPageVisit(n.name,n.uri)}catch(r){this.diagLog().throwInternal($.CRITICAL,37,"trackPageView failed, page view will not be collected: "+ct.getExceptionName(r),{exception:ct.dump(r)})}},Dn.prototype.sendPageViewInternal=function(e,t,n){var r=T();r&&(e.refUri=e.refUri===undefined?r.referrer:e.refUri),n=yn.create(e,Qt.dataType,Qt.envelopeType,this.diagLog(),t,n),this.core.track(n),this._trackAjaxAttempts=0},Dn.prototype.sendPageViewPerformanceInternal=function(e,t,n){n=yn.create(e,hn.dataType,hn.envelopeType,this.diagLog(),t,n),this.core.track(n)},Dn.prototype.trackPageViewPerformance=function(e,t){try{this._pageViewPerformanceManager.populatePageViewPerformanceEvent(e),this.sendPageViewPerformanceInternal(e,t)}catch(n){this.diagLog().throwInternal($.CRITICAL,37,"trackPageViewPerformance failed, page view will not be collected: "+ct.getExceptionName(n),{exception:ct.dump(n)})}},Dn.prototype.startTrackPage=function(e){try{var t;"string"!=typeof e&&(e=(t=T())&&t.title||""),this._pageTracking.start(e)}catch(n){this.diagLog().throwInternal($.CRITICAL,31,"startTrackPage failed, page view may not be collected: "+ct.getExceptionName(n),{exception:ct.dump(n)})}},Dn.prototype.stopTrackPage=function(e,t,n,r){try{var i;"string"!=typeof e&&(e=(i=T())&&i.title||""),"string"!=typeof t&&(t=(i=I())&&i.href||""),this._pageTracking.stop(e,t,n,r),this.config.autoTrackPageVisitTime&&this._pageVisitTimeManager.trackPreviousPageVisit(e,t)}catch(o){this.diagLog().throwInternal($.CRITICAL,32,"stopTrackPage failed, page view will not be collected: "+ct.getExceptionName(o),{exception:ct.dump(o)})}},Dn.prototype.sendExceptionInternal=function(e,t,n){e=new kt(this.diagLog(),e.exception||Error(ct.NotSpecified),e.properties,e.measurements,e.severityLevel,e.id).toInterface(),n=yn.create(e,kt.dataType,kt.envelopeType,this.diagLog(),t,n),this.core.track(n)},Dn.prototype.trackException=function(e,t){try{this.sendExceptionInternal(e,t)}catch(n){this.diagLog().throwInternal($.CRITICAL,35,"trackException failed, exception will not be collected: "+ct.getExceptionName(n),{exception:ct.dump(n)})}},Dn.prototype._onerror=function(e){try{var t,n={url:e&&e.url||(T()||{}).URL,lineNumber:e.lineNumber,columnNumber:e.columnNumber,message:e.message};ct.isCrossOriginError(e.message,e.url,e.lineNumber,e.columnNumber,e.error)?this._sendCORSException(n.url):(ct.isError(e.error)||(t="window.onerror@"+n.url+":"+e.lineNumber+":"+(e.columnNumber||0),e.error=Error(e.message),e.error.stack=t),this.trackException({exception:e.error,severityLevel:mn.Error},n))}catch(i){var r=e.error?e.error.name+", "+e.error.message:"null";this.diagLog().throwInternal($.CRITICAL,11,"_onError threw exception while logging error, error will not be collected: "+ct.getExceptionName(i),{exception:ct.dump(i),errorString:r})}},Dn.prototype.addTelemetryInitializer=function(e){this._telemetryInitializers.push(e)},Dn.prototype.initialize=function(e,t,n,r){var o=this;if(!this.isInitialized()){if(X.isNullOrUndefined(t))throw Error("Error initializing");bn.prototype.initialize.call(this,e,t,n,r),this.setInitialized(!1);var i=this._getTelCtx(),a=this.identifier;this._globalconfig={instrumentationKey:e.instrumentationKey,endpointUrl:e.endpointUrl||"https://dc.services.visualstudio.com/v2/track"},this.config=i.getExtCfg(a);var s=Dn.getDefaultConfig();if(s!==undefined){for(var c in s)this.config[c]=i.getConfig(a,c,s[c]);if(this._globalconfig)for(var c in s)this._globalconfig[c]===undefined&&(this._globalconfig[c]=s[c])}this.config.isCookieUseDisabled&&ct.disableCookies(),this.config.isStorageUseDisabled&&ct.disableStorage(),t={instrumentationKey:function(){return e.instrumentationKey},accountId:function(){return o.config.accountId||e.accountId},sessionRenewalMs:function(){return o.config.sessionRenewalMs||e.sessionRenewalMs},sessionExpirationMs:function(){return o.config.sessionExpirationMs||e.sessionExpirationMs},sampleRate:function(){return o.config.samplingPercentage||e.samplingPercentage},cookieDomain:function(){return o.config.cookieDomain||e.cookieDomain},sdkExtension:function(){return o.config.sdkExtension||e.sdkExtension},isBrowserLinkTrackingEnabled:function(){return o.config.isBrowserLinkTrackingEnabled||e.isBrowserLinkTrackingEnabled},appId:function(){return o.config.appId||e.appId}},this._pageViewPerformanceManager=new In(this.core),this._pageViewManager=new _n(this,this.config.overridePageViewDuration,this.core,this._pageViewPerformanceManager),this._pageVisitTimeManager=new Sn(this.diagLog(),function(e,t,n){return o.trackPageVisitTime(e,t,n)}),this._telemetryInitializers=this._telemetryInitializers||[],this._addDefaultTelemetryInitializers(t),this._eventTracking=new Pn(this.diagLog(),"trackEvent"),this._eventTracking.action=function(e,t,n,r){(r=r||{})[En]=n.toString(),o.trackEvent({name:e,properties:r})},this._pageTracking=new Pn(this.diagLog(),"trackPageView"),this._pageTracking.action=function(e,t,n,r,i){X.isNullOrUndefined(r)&&(r={}),r[En]=n.toString(),i={name:e,uri:t,properties:r,measurements:i},o.sendPageViewInternal(i,r)};var u,l,f,g,p,d=S(),r=typeof history===v&&history?history:x("history"),m=I(),h=this;!1===this.config.disableExceptionTracking&&!this.config.autoExceptionInstrumented&&d&&(u=d.onerror,d.onerror=function(e,t,n,r,i){var o=u&&u(e,t,n,r,i);return!0!==o&&h._onerror({message:e,url:t,lineNumber:n,columnNumber:r,error:i}),o},this.config.autoExceptionInstrumented=!0),!1===this.config.disableExceptionTracking&&!0===this.config.enableUnhandledPromiseRejectionTracking&&!this.config.autoUnhandledPromiseInstrumented&&d&&(l=d[t="onunhandledrejection"],d[t]=function(e){var t=l&&l.call(d,e);return!0!==t&&h._onerror({message:e.reason.toString(),error:e.reason instanceof Error?e.reason:Error(e.reason.toString()),url:m?m.href:"",lineNumber:0,columnNumber:0}),t},this.config.autoUnhandledPromiseInstrumented=!0),!0===this.config.enableAutoRouteTracking&&r&&X.isFunction(r.pushState)&&X.isFunction(r.replaceState)&&d&&"undefined"!=typeof Event&&(f=this,X.arrForEach(n,function(e){"AppInsightsPropertiesPlugin"===e.identifier&&(o._properties=e)}),r.pushState=(p=r.pushState,function(){var e=p.apply(this,arguments);return Cn(d,ct.createDomEvent(f.config.namePrefix+"pushState")),Cn(d,ct.createDomEvent(f.config.namePrefix+"locationchange")),e}),r.replaceState=(g=r.replaceState,function(){var e=g.apply(this,arguments);return Cn(d,ct.createDomEvent(f.config.namePrefix+"replaceState")),Cn(d,ct.createDomEvent(f.config.namePrefix+"locationchange")),e}),d.addEventListener&&(d.addEventListener(f.config.namePrefix+"popstate",function(){Cn(d,ct.createDomEvent(f.config.namePrefix+"locationchange"))}),d.addEventListener(f.config.namePrefix+"locationchange",function(){f._properties&&f._properties.context&&f._properties.context.telemetryTrace&&(f._properties.context.telemetryTrace.traceID=ct.generateW3CId(),f._properties.context.telemetryTrace.name=m&&m.pathname||"_unknown_"),o._currUri&&(o._prevUri=o._currUri),o._currUri=m&&m.href||"",setTimeout((function(e){f.trackPageView({refUri:e,properties:{duration:0}})}).bind(o,o._prevUri),f.autoRoutePVDelay)}))),this.setInitialized(!0)}},Dn.prototype.trackPageVisitTime=function(e,t,n){t={PageName:e,PageUrl:t},this.trackMetric({name:"PageVisitTime",average:n,max:n,min:n,sampleCount:1},t)},Dn.prototype._addDefaultTelemetryInitializers=function(e){var r;e.isBrowserLinkTrackingEnabled()||(r=["/browserLinkSignalR/","/__browserLink/"],this._addTelemetryInitializer(function(e){if(e.baseType===nn.dataType){var t=e.baseData;if(t)for(var n=0;n<r.length;n++)if(t.target&&~t.target.indexOf(r[n]))return!1}return!0}))},Dn.prototype._addTelemetryInitializer=function(e){this._telemetryInitializers.push(e)},Dn.prototype._sendCORSException=function(e){var t={message:"Script error: The browser's same-origin policy prevents us from getting the details of this exception. Consider using the 'crossorigin' attribute.",url:e,lineNumber:0,columnNumber:0,error:undefined},e=yn.create(t,kt.dataType,kt.envelopeType,this.diagLog(),{url:e});this.core.track(e)},Dn.Version="2.5.9",Dn);function Dn(){var e=bn.call(this)||this;e.identifier="ApplicationInsightsAnalytics",e.priority=180,e.autoRoutePVDelay=500,e._trackAjaxAttempts=0;var t=I();return e._prevUri=t&&t.href||"",e}var Pn=(kn.prototype.start=function(e){"undefined"!=typeof this._events[e]&&this._logger.throwInternal($.WARNING,62,"start was called more than once for this event without calling stop.",{name:this._name,key:e},!0),this._events[e]=+new Date},kn.prototype.stop=function(e,t,n,r){var i,o=this._events[e];isNaN(o)?this._logger.throwInternal($.WARNING,63,"stop was called without a corresponding start.",{name:this._name,key:e},!0):(i=+new Date,i=dt.GetDuration(o,i),this.action(e,t,i,n,r)),delete this._events[e],this._events[e]=undefined},kn);function kn(e,t){this._name=t,this._events={},this._logger=e}e.ApplicationInsights=Ue,function(e,t,n){var r=Object.defineProperty;if(r)try{return r(e,t,n)}catch(i){}typeof n.value!==undefined&&(e[t]=n.value)}(e,"__esModule",{value:!0})};"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((e.Microsoft=e.Microsoft||{},e.Microsoft.ApplicationInsights=e.Microsoft.ApplicationInsights||{}));
var e=this,t=function(e){"use strict";var r="function",i="object",t="undefined",o="prototype",a="hasOwnProperty";function n(){return typeof globalThis!==t&&globalThis?globalThis:typeof self!==t&&self?self:typeof window!==t&&window?window:typeof global!==t&&global?global:null}function s(e){var t=Object.create;if(t)return t(e);if(null==e)return{};if((t=typeof e)!==i&&t!==r)throw new TypeError("Object prototype may only be an Object:"+e);function n(){}return n[o]=e,new n}var c,p,u=function(e,t){return(u=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t[a](n)&&(e[n]=t[n])})(e,t)};nt=function(e,t){function n(){this.constructor=e}u(e,t),e[o]=null===t?s(t):(n[o]=t[o],new n)},(Be=wt=n()||{}).__assign||(Be.__assign=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object[o][a].call(t,i)&&(e[i]=t[i]);return e}),Be.__extends||(Be.__extends=nt),__assign=__assign||wt.__assign,__extends=__extends||wt.__extends,(pn=c={})[pn.LocalStorage=0]="LocalStorage",pn[pn.SessionStorage=1]="SessionStorage",(Ct=p=p||{})[Ct.Default=0]="Default",Ct[Ct.Required=1]="Required",Ct[Ct.Array=2]="Array",Ct[Ct.Hidden=4]="Hidden",(Lt={})[Lt.AI=0]="AI",Lt[Lt.AI_AND_W3C=1]="AI_AND_W3C",Lt[Lt.W3C=2]="W3C";var l=2,f=t,m=i,g=o,d="window",h="location",v="JSON",y=n;function x(e){var t=y();return t&&t[e]?t[e]:e===d&&_()?window:null}function _(){return typeof window===m&&window}function S(){return _()?window:x(d)}function T(){return typeof document===m&&document?document:x("document")}function I(){return typeof navigator===m&&navigator?navigator:x("navigator")}function w(){return typeof location===m&&location?location:x(h)}function N(){return x("performance")}function E(){return typeof JSON===m&&JSON||null!==x(v)}function C(){return E()?JSON||x(v):null}var b="attachEvent",D="addEventListener",P="detachEvent",k="removeEventListener",A=4294967296,L=4294967295,M=null,R=!1,O=123456789,U=987654321;function z(e){e<0&&(e>>>=0),O=123456789+e&L,U=987654321-e&L,R=!0}function V(){z(Math.random()*A^(new Date).getTime())}function G(e,t){return typeof e===t}function j(e){return G(e,t)||e===undefined}function q(e){return j(e)||null===e}function F(e,t){return e&&Object[o].hasOwnProperty.call(e,t)}function B(e){return G(e,i)}function K(e){return G(e,r)}function W(e,t,n,r){void 0===r&&(r=!1);var i=!1;if(!q(e))try{q(e[D])?q(e[b])||(e[b]("on"+t,n),i=!0):(e[D](t,n,r),i=!0)}catch(o){}return i}function H(e,t,n,r){if(void 0===r&&(r=!1),!q(e))try{q(e[k])?q(e[P])||e[P]("on"+t,n):e[k](t,n,r)}catch(i){}}function X(e,t){if(e&&B(e))for(var n in e)F(e,n)&&t.call(e,n,e[n])}var J=($.isDate=function(e){return"[object Date]"===Object[o].toString.call(e)},$.isArray=function(e){return"[object Array]"===Object[o].toString.call(e)},$.isError=function(e){return"[object Error]"===Object[o].toString.call(e)},$.isString=function(e){return G(e,"string")},$.isNumber=function(e){return G(e,"number")},$.isBoolean=function(e){return G(e,"boolean")},$.disableCookies=function(){$._canUseCookies=!1},$.newGuid=function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(Y,function(e){var t=0|$.randomValue(15);return("x"===e?t:3&t|8).toString(16)})},$.toISOString=function(e){if($.isDate(e)){var t=function(e){return 1===(e+="").length&&(e="0"+e),e};return e.getUTCFullYear()+"-"+t(1+e.getUTCMonth())+"-"+t(e.getUTCDate())+"T"+t(e.getUTCHours())+":"+t(e.getUTCMinutes())+":"+t(e.getUTCSeconds())+"."+((e.getUTCMilliseconds()/1e3).toFixed(3)+"").slice(2,5)+"Z"}},$.arrForEach=function(e,t,n){for(var r=e.length,i=0;i<r;i++)i in e&&t.call(n||e,e[i],i,e)},$.arrIndexOf=function(e,t,n){for(var r=e.length,i=Math.max(0<=(n=n||0)?n:r-Math.abs(n),0);i<r;i++)if(i in e&&e[i]===t)return i;return-1},$.arrMap=function(e,t,n){for(var r=e.length,i=n||e,o=Array(r),a=0;a<r;a++)a in e&&(o[a]=t.call(i,e[a],e));return o},$.arrReduce=function(e,t,n){var r,i=e.length,o=0;if(3<=arguments.length)r=n;else{for(;o<i&&!(o in e);)o++;r=e[o++]}for(;o<i;)o in e&&(r=t(r,e[o],o,e)),o++;return r},$.strTrim=function(e){return $.isString(e)?e.replace(/^\s+|\s+$/g,""):e},$.objKeys=function(e){var t=!{toString:null}.propertyIsEnumerable("toString");if(!(K(e)||B(e)&&null!==e))throw new TypeError("objKeys called on non-object");var n,r=[];for(n in e)F(e,n)&&r.push(n);if(t)for(var i=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],o=i.length,a=0;a<o;a++)F(e,i[a])&&r.push(i[a]);return r},$.objDefineAccessors=function(e,t,n,r){var i=Object.defineProperty;if(i)try{var o={enumerable:!0,configurable:!0};return n&&(o.get=n),r&&(o.set=r),i(e,t,o),!0}catch(a){}return!1},$.addEventHandler=function(e,t){var n=!1,r=S();return r&&(n=W(r,e,t),n=W(r.body,e,t)||n),(r=T())&&(n=Z.Attach(r,e,t)||n),n},$.dateNow=function(){var e=Date;return e.now?e.now():(new e).getTime()},$.perfNow=function(){var e=N();return e&&e.now?e.now():$.dateNow()},$.newId=function(e){void 0===e&&(e=22);for(var t=$.random32()>>>0,n=0,r="";r.length<e;)r+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"[0|63&t],t>>>=6,5==++n&&(t=($.random32()<<2&4294967295|3&t)>>>0,n=0);return r},$.isIE=function(){var e;return null===M&&(e=((I()||{}).userAgent||"").toLowerCase(),M=!!~e.indexOf("msie")||!!~e.indexOf("trident/")),M},$.randomValue=function(e){return 0<e?Math.floor($.random32()/L*(e+1))>>>0:0},$.random32=function(e){var t=(t=x("crypto")||x("msCrypto"))&&t.getRandomValues?t.getRandomValues(new Uint32Array(1))[0]&L:$.isIE()?(R||V(),$.mwcRandom32()&L):Math.floor(A*Math.random()|0);return e||(t>>>=0),t},$.mwcRandomSeed=function(e){e?z(e):V()},$.mwcRandom32=function(e){var t=((U=36969*(65535&U)+(U>>16)&L)<<16)+(65535&(O=18e3*(65535&O)+(O>>16)&L))>>>0&L|0;return e||(t>>>=0),t},$.generateW3CId=function(){for(var e,t=["0","1","2","3","4","5","6","7","8","9","a","b","c","d","e","f"],n="",r=0;r<4;r++)n+=t[15&(e=$.random32())]+t[e>>4&15]+t[e>>8&15]+t[e>>12&15]+t[e>>16&15]+t[e>>20&15]+t[e>>24&15]+t[e>>28&15];var i=t[8+(3&$.random32())|0];return n.substr(0,8)+n.substr(9,4)+"4"+n.substr(13,3)+i+n.substr(16,3)+n.substr(19,12)},$.isTypeof=G,$.isUndefined=j,$.isNullOrUndefined=q,$.hasOwnProperty=F,$.isFunction=K,$.isObject=B,$.objCreate=s,$);function $(){}var Q,Y=/[xy]/g,Z=(ee.Attach=W,ee.AttachEvent=W,ee.Detach=H,ee.DetachEvent=H,ee);function ee(){}(Mt=Q={})[Mt.CRITICAL=1]="CRITICAL",Mt[Mt.WARNING=2]="WARNING";var te="constructor",ne="prototype",re="function",ie="_dynInstFuncs",oe="_isDynProxy",ae="_dynClass",se="_dynCls$",ce="_dynInstChk",ue=ce,le="_dfOpts",fe="_unknown_",ge="__proto__",pe="useBaseInst",de="setInstFuncs",me=Object.getPrototypeOf,he=0;function ve(e,t){return e&&Object[ne].hasOwnProperty.call(e,t)}function ye(e){return typeof e===re}function xe(e){return e&&(e===Object[ne]||e===Array[ne])}function _e(e){return xe(e)||e===Function[ne]}function Se(e){if(e){if(me)return me(e);if(e=e[ge]||e[ne]||e[te])return e}return null}function Te(e,t,n){return t!==te&&ye(e[t])&&(n||ve(e,t))}function Ie(e){throw new TypeError("DynamicProto: "+e)}function we(e,t){for(var n=e.length-1;0<=n;n--)if(e[n]===t)return 1}function Ne(e,t){return ve(e,ne)?e.name||t||fe:((e||{})[te]||{}).name||t||fe}function Ee(e,n,t,r){ve(e,ne)||Ie("theClass is an invalid class definition.");var i=e[ne];!function(e){for(var t=Se(n);t&&!_e(t);){if(t===e)return 1;t=Se(t)}}(i)&&Ie("["+Ne(e)+"] is not in class hierarchy of ["+Ne(n)+"]");var o=null;ve(i,ae)?o=i[ae]:(o=se+Ne(e,"_")+"$"+he,he++,i[ae]=o);var a=Ee[le],s=!!a[pe];s&&r&&r[pe]!==undefined&&(s=!!r[pe]),t(n,function(e,t,n,o){function r(e,t,n){var r,i=t[c];return i[oe]&&o&&!1!==(r=e[ie]||{})[ue]&&(i=(r[t[ae]]||{})[n]||i),function(){return i.apply(e,arguments)}}var i={};for(c in n)i[c]=r(t,n,c);for(var a=Se(e),s=[];a&&!_e(a)&&!we(s,a);){for(var c in a)!i[c]&&Te(a,c,!me)&&(i[c]=r(t,a,c));s.push(a),a=Se(a)}return i}(i,n,e=function(e){var t,n={};for(t in e)!n[t]&&Te(e,t,!1)&&(n[t]=e[t]);return n}(n),s)),(a=!!me&&!!a[de])&&r&&(a=!!r[de]),function(e,t,n,r,i){if(!xe(e)){var o,a=n[ie]=n[ie]||{},s=a[t]=a[t]||{};for(o in!1!==a[ue]&&(a[ue]=!!i),n)Te(n,o,!1)&&n[o]!==r[o]&&(s[o]=n[o],delete n[o],ve(e,o)&&(!e[o]||e[o][oe])||(e[o]=function(n,r){var i=function(){var e,t;return(function(e,t,n,r){var i=null;if(e&&ve(n,ae)){var o=e[ie]||{};if((i=(o[n[ae]]||{})[t])||Ie("Missing ["+t+"] "+re),!i[ce]&&!1!==o[ue]){for(var a=!ve(e,t),s=Se(e),c=[];a&&s&&!_e(s)&&!we(c,s);){var u=s[t];if(u){a=u===r;break}c.push(s),s=Se(s)}try{a&&(e[t]=i),i[ce]=1}catch(l){o[ue]=!1}}}return i}(this,r,n,i)||((t=n[e=r])===i&&(t=Se(n)[e]),ye(t)||Ie("["+e+"] is not a "+re),t)).apply(this,arguments)};return i[oe]=1,i}(e,o)))}}(i,o,n,e,!1!==a)}function Ce(e){return e?'"'+e.replace(/\"/g,"")+'"':""}Ee[le]={setInstFuncs:!0,useBaseInst:!0};var be=(De.dataType="MessageData",De);function De(e,t,n,r){void 0===n&&(n=!1),this.messageId=e,this.message=(n?"AI: ":"AI (Internal): ")+e,e="",E()&&(e=C().stringify(r)),e=(t?" message:"+Ce(t):"")+(r?" props:"+Ce(e):""),this.message+=e}var Pe=function Vn(i){this.identifier="DiagnosticLogger",this.queue=[];var s=0,c={};Ee(Vn,this,function(o){var n=J.isNullOrUndefined,a=J.isUndefined,r=J.isFunction;function e(e,t){return e=i[e],n(e)?t:e}n(i)&&(i={}),o.consoleLoggingLevel=function(){return e("loggingLevelConsole",0)},o.telemetryLoggingLevel=function(){return e("loggingLevelTelemetry",1)},o.maxInternalMessageLimit=function(){return e("maxMessageLimit",25)},o.enableDebugExceptions=function(){return e("enableDebugExceptions",!1)},o.throwInternal=function(e,t,n,r,i){if(void 0===i&&(i=!1),r=new be(t,n,i,r),o.enableDebugExceptions())throw r;!a(r)&&r&&(a(r.message)||(i?(i=+r.messageId,!c[i]&&o.consoleLoggingLevel()>=Q.WARNING&&(o.warnToConsole(r.message),c[i]=!0)):o.consoleLoggingLevel()>=Q.WARNING&&o.warnToConsole(r.message),o.logInternalMessage(e,r)))},o.warnToConsole=function(e){var t,n=typeof console!==f?console:x("console");n&&(t="log",n.warn&&(t="warn"),r(n[t])&&n[t](e))},o.resetInternalMessageCount=function(){s=0,c={}},o.logInternalMessage=function(e,t){var n,r;s>=o.maxInternalMessageLimit()||(n=!0,r="AITR_"+t.messageId,c[r]?n=!1:c[r]=!0,n&&(e<=o.telemetryLoggingLevel()&&(o.queue.push(t),s++),s===o.maxInternalMessageLimit()&&(t=new be(23,e="Internal events throttle limit per PageView reached for this app.",!1),o.queue.push(t),o.warnToConsole(e))))}})},ke="ctx",Ae=(Le.ParentContextKey="parent",Le.ChildrenContextKey="childEvts",Le);function Le(e,i,t){var n,o=this,a=!1;o.start=J.dateNow(),o.name=e,o.isAsync=t,o.isChildEvt=function(){return!1},J.isFunction(i)&&(a=J.objDefineAccessors(o,"payload",function(){return!n&&J.isFunction(i)&&(n=i(),i=null),n})),o.getCtx=function(e){return e?(e===Le.ParentContextKey||e===Le.ChildrenContextKey?o:o[ke]||{})[e]:null},o.setCtx=function(e,t){e&&(e===Le.ParentContextKey?(o[e]||(o.isChildEvt=function(){return!0}),o[e]=t):e===Le.ChildrenContextKey?o[e]=t:(o[ke]=o[ke]||{})[e]=t)},o.complete=function(){var e=0,t=o.getCtx(Le.ChildrenContextKey);if(J.isArray(t))for(var n=0;n<t.length;n++){var r=t[n];r&&(e+=r.time)}o.time=J.dateNow()-o.start,o.exTime=o.time-e,o.complete=function(){},!a&&J.isFunction(i)&&(o.payload=i())}}var Me=function Gn(t){this.ctx={},Ee(Gn,this,function(n){n.create=function(e,t,n){return new Ae(e,t,n)},n.fire=function(e){e&&(e.complete(),t&&t.perfEvent(e))},n.setCtx=function(e,t){e&&((n[ke]=n[ke]||{})[e]=t)},n.getCtx=function(e){return(n[ke]||{})[e]}})},Re="CoreUtils.doPerf";function Oe(e,t,n,r,i){if(e){var o=e;if(o&&J.isFunction(o.getPerfMgr)&&(o=o.getPerfMgr()),o){var a,s=void 0,c=o.getCtx(Re);try{if(s=o.create(t(),r,i))return c&&s.setCtx&&(s.setCtx(Ae.ParentContextKey,c),c.getCtx&&c.setCtx&&((a=c.getCtx(Ae.ChildrenContextKey))||(a=[],c.setCtx(Ae.ChildrenContextKey,a)),a.push(s))),o.setCtx(Re,s),n(s)}catch(u){s&&s.setCtx&&s.setCtx("exception",u)}finally{s&&o.fire(s),o.setCtx(Re,c)}}}return n()}var Ue=J.isFunction,ze=function(i,t){var o=this,a=null,s=Ue(i.processTelemetry),c=Ue(i.setNextPlugin);o._hasRun=!1,o.getPlugin=function(){return i},o.getNext=function(){return a},o.setNext=function(e){a=e},o.processTelemetry=function(n,r){r=r||t;var e=i?i.identifier:"TelemetryPluginChain";Oe(r?r.core():null,function(){return e+":processTelemetry"},function(){if(i&&s){o._hasRun=!0;try{r.setNext(a),c&&i.setNextPlugin(a),a&&(a._hasRun=!1),i.processTelemetry(n,r)}catch(t){var e=a&&a._hasRun;a&&e||r.diagLog().throwInternal(Q.CRITICAL,73,"Plugin ["+i.identifier+"] failed during processTelemetry - "+t),a&&!e&&a.processTelemetry(n,r)}}else a&&(o._hasRun=!0,a.processTelemetry(n,r))},function(){return{item:n}},!n.sync)}},Ve=J.isNullOrUndefined;function Ge(e,t){var n=[];if(e&&0<e.length)for(var r=null,i=0;i<e.length;i++){var o=e[i];o&&J.isFunction(o.processTelemetry)&&(o=new ze(o,t),n.push(o),r&&r.setNext(o),r=o)}return 0<n.length?n[0]:null}var je=function jn(e,i,n,t){var r,o,a,s,c=this,u=null;null!==t&&(e&&J.isFunction(e.getPlugin)?u=function(e,t,n){var r=[],i=!n;if(e)for(;e;){var o=e.getPlugin();!i&&o!==n||(i=!0,r.push(o)),e=e.getNext()}return i||r.push(n),Ge(r,t)}(e,c,t||e.getPlugin()):t?(r=c,a=e,s=!1,(o=t)&&e&&(a=[],J.arrForEach(e,function(e){!s&&e!==o||(s=!0,a.push(e))})),o&&!s&&(a=a||[]).push(o),u=Ge(a,r)):J.isUndefined(t)&&(u=Ge(e,c))),c.core=function(){return n},c.diagLog=function(){return(n||{}).logger||new Pe(i||{})},c.getCfg=function(){return i},c.getExtCfg=function(e,t){var n,r;return void 0===t&&(t={}),!i||(r=i.extensionConfig)&&e&&(n=r[e]),n||t},c.getConfig=function(e,t,n){var r;return void 0===n&&(n=!1),(e=c.getExtCfg(e,null))&&!Ve(e[t])?r=e[t]:i&&!Ve(i[t])&&(r=i[t]),Ve(r)?n:r},c.hasNext=function(){return null!=u},c.getNext=function(){return u},c.setNext=function(e){u=e},c.processNext=function(e){var t=u;t&&(u=t.getNext(),t.processTelemetry(e,c))},c.createNew=function(e,t){return void 0===e&&(e=null),new jn(e||u,i,n,t)}},qe=J.isFunction,Fe="getPlugin",Be=(Ke.prototype.initialize=function(e,t,n,r){this._baseTelInit(e,t,n,r)},Ke);function Ke(){var o=this,a=!1,s=null,c=null;o.core=null,o.diagLog=function(e){return o._getTelCtx(e).diagLog()},o.isInitialized=function(){return a},o.setInitialized=function(e){a=e},o.setNextPlugin=function(e){c=e},o.processNext=function(e,t){t?t.processNext(e):c&&qe(c.processTelemetry)&&c.processTelemetry(e,null)},o._getTelCtx=function(e){void 0===e&&(e=null);var t=e;return t||(e=s||new je(null,{},o.core),t=c&&c[Fe]?e.createNew(null,c[Fe]):e.createNew(null,c)),t},o._baseTelInit=function(e,t,n,r){e&&(e.extensionConfig=e.extensionConfig||[]),!r&&t&&(r=t.getProcessTelContext().getNext());var i=c;c&&c[Fe]&&(i=c[Fe]()),o.core=t,s=new je(r,e,t,i),a=!0}}var We=J.isFunction,He="processTelemetry",Xe="priority",Je="setNextPlugin",$e="isInitialized";function Qe(t,n){for(var e=[],r=null,i=t.getNext();i;){var o=i.getPlugin();o&&(r&&We(r[Je])&&We(o[He])&&r[Je](o),We(o[$e])&&o[$e]()||e.push(o),r=o,i=i.getNext())}J.arrForEach(e,function(e){e.initialize(t.getCfg(),t.core(),n,t.getNext())})}function Ye(e){return e.sort(function(e,t){var n=0,r=We(t[He]);return We(e[He])?n=r?e[Xe]-t[Xe]:1:r&&(n=-1),n})}var Ze,et=500,tt="Channel has invalid priority",nt=J.objDefineAccessors,rt=(Ze=Be,__extends(it,Ze),it._staticInit=(nt(it.prototype,"ChannelControls",it.prototype.getChannelControls),void nt(it.prototype,"channelQueue",it.prototype.getChannelControls)),it);function it(){var r=Ze.call(this)||this;r.identifier="ChannelControllerPlugin",r.priority=et;var c,u=J.arrForEach;function l(e){e&&0<e.length&&(e=e.sort(function(e,t){return e.priority-t.priority}),u(e,function(e){if(e.priority<et)throw Error(tt+e.identifier)}),c.push(e))}return Ee(it,r,function(a,s){a.setNextPlugin=function(e){},a.processTelemetry=function(t,n){c&&u(c,function(e){0<e.length&&r._getTelCtx(n).createNew(e).processNext(t)})},a.getChannelControls=function(){return c},a.initialize=function(t,n,r){var e,i,o;a.isInitialized()||(s.initialize(t,n,r),t.isCookieUseDisabled&&J.disableCookies(),i=r,c=[],(e=(t||{}).channels)&&u(e,l),i&&(o=[],u(i,function(e){e.priority>et&&o.push(e)}),l(o)),u(c,function(e){return Qe(new je(e,t,n),r)}))}}),r}var ot=J.arrForEach,at=J.isNullOrUndefined,st="_notificationManager",ct=function qn(e){this.listeners=[];var o=J.arrForEach,t=!!(e||{}).perfEvtsSendAll;Ee(qn,this,function(i){i.addNotificationListener=function(e){i.listeners.push(e)},i.removeNotificationListener=function(e){for(var t=J.arrIndexOf(i.listeners,e);-1<t;)i.listeners.splice(t,1),t=J.arrIndexOf(i.listeners,e)},i.eventsSent=function(t){o(i.listeners,function(e){e&&e.eventsSent&&setTimeout(function(){return e.eventsSent(t)},0)})},i.eventsDiscarded=function(t,n){o(i.listeners,function(e){e&&e.eventsDiscarded&&setTimeout(function(){return e.eventsDiscarded(t,n)},0)})},i.eventsSendRequest=function(n,r){o(i.listeners,function(e){if(e&&e.eventsSendRequest)if(r)setTimeout(function(){return e.eventsSendRequest(n,r)},0);else try{e.eventsSendRequest(n,r)}catch(t){}})},i.perfEvent=function(n){n&&(!t&&n.isChildEvt()||o(i.listeners,function(e){if(e&&e.perfEvent)if(n.isAsync)setTimeout(function(){return e.perfEvent(n)},0);else try{e.perfEvent(n)}catch(t){}}))}})},ut=function Fn(){var t,s,c,n,u=!1;Ee(Fn,this,function(a){a._extensions=[],s=new rt,a.logger=J.objCreate({throwInternal:function(e,t,n,r,i){void 0===i&&(i=!1)},warnToConsole:function(e){},resetInternalMessageCount:function(){}}),t=[],a.isInitialized=function(){return u},a.initialize=function(e,t,r,n){if(a.isInitialized())throw Error("Core should not be initialized more than once");if(!e||at(e.instrumentationKey))throw Error("Please provide instrumentation key");c=n,a[st]=n,a.config=e||{},e.extensions=at(e.extensions)?[]:e.extensions,(e.extensionConfig=at(e.extensionConfig)?{}:e.extensionConfig).NotificationManager=n,r&&(a.logger=r),(n=[]).push.apply(n,t.concat(e.extensions)),n=Ye(n);var i=[],o={};if(ot(n,function(e){if(at(e)||at(e.initialize))throw Error("Extensions must provide callback to initialize");var t=e.priority,n=e.identifier;e&&t&&(at(o[t])?o[t]=n:r.warnToConsole("Two extensions have same priority #"+t+" - "+o[t]+", "+n)),(!t||t<s.priority)&&i.push(e)}),n.push(s),i.push(s),n=Ye(n),a._extensions=n,Qe(new je([s],e,a),n),Qe(new je(i,e,a),n),a._extensions=i,0===a.getTransmissionControls().length)throw Error("No channels available");u=!0,a.releaseQueue()},a.getTransmissionControls=function(){return s.getChannelControls()},a.track=function(e){e.iKey||(e.iKey=a.config.instrumentationKey),e.time||(e.time=J.toISOString(new Date)),at(e.ver)&&(e.ver="4.0"),a.isInitialized()?a.getProcessTelContext().processNext(e):t.push(e)},a.getProcessTelContext=function(){var e=a._extensions,t=e;return e&&0!==e.length||(t=[s]),new je(t,a.config,a)},a.getNotifyMgr=function(){return c||(c=J.objCreate({addNotificationListener:function(e){},removeNotificationListener:function(e){},eventsSent:function(e){},eventsDiscarded:function(e,t){},eventsSendRequest:function(e,t){}}),a[st]=c),c},a.getPerfMgr=function(){return n||a.config&&a.config.enablePerfMgr&&(n=new Me(a.getNotifyMgr())),n},a.setPerfMgr=function(e){n=e},a.eventCnt=function(){return t.length},a.releaseQueue=function(){0<t.length&&(ot(t,function(e){a.getProcessTelContext().processNext(e)}),t=[])}})};__extends(function Bn(){var e=ut.call(this)||this;return Ee(Bn,e,function(n,i){function t(e){var t=n.getNotifyMgr();t&&t.eventsDiscarded([e],l)}n.initialize=function(e,t,n,r){i.initialize(e,t,n||new Pe(e),r||new ct(e))},n.track=function(e){Oe(n.getPerfMgr(),function(){return"AppInsightsCore:track"},function(){if(null===e)throw t(e),Error("Invalid telemetry item");!function(e){if(J.isNullOrUndefined(e.name))throw t(e),Error("telemetry name required")}(e),i.track(e)},function(){return{item:e}},!e.sync)},n.addNotificationListener=function(e){var t=n.getNotifyMgr();t&&t.addNotificationListener(e)},n.removeNotificationListener=function(e){var t=n.getNotifyMgr();t&&t.removeNotificationListener(e)},n.pollInternalLogs=function(t){var e=n.config.diagnosticLogInterval;return e&&0<e||(e=1e4),setInterval(function(){var e=n.logger?n.logger.queue:[];J.arrForEach(e,function(e){e={name:t||"InternalMessageId: "+e.messageId,iKey:n.config.instrumentationKey,time:J.toISOString(new Date),baseType:be.dataType,baseData:{message:e.message}},n.track(e)}),e.length=0},e)}}),e},ut);var lt=(ft.sanitizeKeyAndAddUniqueness=function(e,t,n){var r=t.length,i=ft.sanitizeKey(e,t);if(i.length!==r){for(var o=0,a=i;n[a]!==undefined;)o++,a=i.substring(0,ft.MAX_NAME_LENGTH-3)+ft.padNumber(o);i=a}return i},ft.sanitizeKey=function(e,t){var n;return t&&(t=ft.trim(t.toString())).length>ft.MAX_NAME_LENGTH&&(n=t.substring(0,ft.MAX_NAME_LENGTH),e.throwInternal(Q.WARNING,57,"name is too long. It has been truncated to "+ft.MAX_NAME_LENGTH+" characters.",{name:t},!0)),n||t},ft.sanitizeString=function(e,t,n){var r;return void 0===n&&(n=ft.MAX_STRING_LENGTH),t&&(n=n||ft.MAX_STRING_LENGTH,(t=ft.trim(t)).toString().length>n&&(r=t.toString().substring(0,n),e.throwInternal(Q.WARNING,61,"string value is too long. It has been truncated to "+n+" characters.",{value:t},!0))),r||t},ft.sanitizeUrl=function(e,t){return ft.sanitizeInput(e,t,ft.MAX_URL_LENGTH,66)},ft.sanitizeMessage=function(e,t){var n;return t&&t.length>ft.MAX_MESSAGE_LENGTH&&(n=t.substring(0,ft.MAX_MESSAGE_LENGTH),e.throwInternal(Q.WARNING,56,"message is too long, it has been truncated to "+ft.MAX_MESSAGE_LENGTH+" characters.",{message:t},!0)),n||t},ft.sanitizeException=function(e,t){var n;return t&&t.length>ft.MAX_EXCEPTION_LENGTH&&(n=t.substring(0,ft.MAX_EXCEPTION_LENGTH),e.throwInternal(Q.WARNING,52,"exception is too long, it has been truncated to "+ft.MAX_EXCEPTION_LENGTH+" characters.",{exception:t},!0)),n||t},ft.sanitizeProperties=function(r,e){var i;return e&&(i={},X(e,function(e,t){if(J.isObject(t)&&E())try{t=C().stringify(t)}catch(n){r.throwInternal(Q.WARNING,49,"custom property is not valid",{exception:n},!0)}t=ft.sanitizeString(r,t,ft.MAX_PROPERTY_LENGTH),e=ft.sanitizeKeyAndAddUniqueness(r,e,i),i[e]=t}),e=i),e},ft.sanitizeMeasurements=function(n,e){var r;return e&&(r={},X(e,function(e,t){e=ft.sanitizeKeyAndAddUniqueness(n,e,r),r[e]=t}),e=r),e},ft.sanitizeId=function(e,t){return t&&ft.sanitizeInput(e,t,ft.MAX_ID_LENGTH,69).toString()},ft.sanitizeInput=function(e,t,n,r){var i;return t&&(t=ft.trim(t)).length>n&&(i=t.substring(0,n),e.throwInternal(Q.WARNING,r,"input is too long, it has been truncated to "+n+" characters.",{data:t},!0)),i||t},ft.padNumber=function(e){return(e="00"+e).substr(e.length-3)},ft.trim=function(e){return J.isString(e)?e.replace(/^\s+|\s+$/g,""):e},ft.MAX_NAME_LENGTH=150,ft.MAX_ID_LENGTH=128,ft.MAX_PROPERTY_LENGTH=8192,ft.MAX_STRING_LENGTH=1024,ft.MAX_URL_LENGTH=2048,ft.MAX_MESSAGE_LENGTH=32768,ft.MAX_EXCEPTION_LENGTH=32768,ft);function ft(){}var gt=I(),pt=J.isString,dt=null,mt=(ht.createDomEvent=function(e){var t,n=null;return J.isFunction(Event)?n=new Event(e):(t=T())&&t.createEvent&&(n=t.createEvent("Event")).initEvent(e,!0,!0),n},ht.disableStorage=function(){ht._canUseLocalStorage=!1,ht._canUseSessionStorage=!1},ht._getLocalStorageObject=function(){return ht.canUseLocalStorage()?ht._getVerifiedStorageObject(c.LocalStorage):null},ht._getVerifiedStorageObject=function(e){var t,n,r=null;try{if(J.isNullOrUndefined(y()))return null;n=new Date,(r=x(e===c.LocalStorage?"localStorage":"sessionStorage")).setItem(n.toString(),n.toString()),t=r.getItem(n.toString())!==n.toString(),r.removeItem(n.toString()),t&&(r=null)}catch(i){r=null}return r},ht.isInternalApplicationInsightsEndpoint=function(e){return!!~ht._internalEndpoints.indexOf(e.toLowerCase())},ht.canUseLocalStorage=function(){return ht._canUseLocalStorage===undefined&&(ht._canUseLocalStorage=!!ht._getVerifiedStorageObject(c.LocalStorage)),ht._canUseLocalStorage},ht.getStorage=function(e,t){var n=ht._getLocalStorageObject();if(null!==n)try{return n.getItem(t)}catch(r){ht._canUseLocalStorage=!1,e.throwInternal(Q.WARNING,1,"Browser failed read of local storage. "+ht.getExceptionName(r),{exception:ht.dump(r)})}return null},ht.setStorage=function(e,t,n){var r=ht._getLocalStorageObject();if(null!==r)try{return r.setItem(t,n),!0}catch(i){ht._canUseLocalStorage=!1,e.throwInternal(Q.WARNING,3,"Browser failed write to local storage. "+ht.getExceptionName(i),{exception:ht.dump(i)})}return!1},ht.removeStorage=function(e,t){var n=ht._getLocalStorageObject();if(null!==n)try{return n.removeItem(t),!0}catch(r){ht._canUseLocalStorage=!1,e.throwInternal(Q.WARNING,5,"Browser failed removal of local storage item. "+ht.getExceptionName(r),{exception:ht.dump(r)})}return!1},ht._getSessionStorageObject=function(){return ht.canUseSessionStorage()?ht._getVerifiedStorageObject(c.SessionStorage):null},ht.canUseSessionStorage=function(){return ht._canUseSessionStorage===undefined&&(ht._canUseSessionStorage=!!ht._getVerifiedStorageObject(c.SessionStorage)),ht._canUseSessionStorage},ht.getSessionStorageKeys=function(){var t=[];return ht.canUseSessionStorage()&&X(x("sessionStorage"),function(e){t.push(e)}),t},ht.getSessionStorage=function(e,t){var n=ht._getSessionStorageObject();if(null!==n)try{return n.getItem(t)}catch(r){ht._canUseSessionStorage=!1,e.throwInternal(Q.WARNING,2,"Browser failed read of session storage. "+ht.getExceptionName(r),{exception:ht.dump(r)})}return null},ht.setSessionStorage=function(e,t,n){var r=ht._getSessionStorageObject();if(null!==r)try{return r.setItem(t,n),!0}catch(i){ht._canUseSessionStorage=!1,e.throwInternal(Q.WARNING,4,"Browser failed write to session storage. "+ht.getExceptionName(i),{exception:ht.dump(i)})}return!1},ht.removeSessionStorage=function(e,t){var n=ht._getSessionStorageObject();if(null!==n)try{return n.removeItem(t),!0}catch(r){ht._canUseSessionStorage=!1,e.throwInternal(Q.WARNING,6,"Browser failed removal of session storage item. "+ht.getExceptionName(r),{exception:ht.dump(r)})}return!1},ht.disableCookies=function(){J.disableCookies()},ht.canUseCookies=function(e){if(J._canUseCookies===undefined){J._canUseCookies=!1;try{J._canUseCookies=ht.document.cookie!==undefined}catch(t){e.throwInternal(Q.WARNING,68,"Cannot access document.cookie - "+ht.getExceptionName(t),{exception:ht.dump(t)})}}return J._canUseCookies},ht.disallowsSameSiteNone=function(e){return!(!pt(e)||!~e.indexOf("CPU iPhone OS 12")&&!~e.indexOf("iPad; CPU OS 12")&&!(~e.indexOf("Macintosh; Intel Mac OS X 10_14")&&~e.indexOf("Version/")&&~e.indexOf("Safari"))&&(!~e.indexOf("Macintosh; Intel Mac OS X 10_14")||(n=(t=e.length)-40,"AppleWebKit/605.1.15 (KHTML, like Gecko)"!=e.substring(0<=n?n:0,t)))&&!~e.indexOf("Chrome/5")&&!~e.indexOf("Chrome/6")&&(!~e.indexOf("UnrealEngine")||~e.indexOf("Chrome"))&&!~e.indexOf("UCBrowser/12")&&!~e.indexOf("UCBrowser/11"));var t,n},ht.setCookie=function(e,t,n,r){var i;ht.canUseCookies(e)&&(e=i="",r&&(i=";domain="+r),(r=w())&&"https:"===r.protocol&&(e=";secure",null===dt&&(dt=ht.disallowsSameSiteNone((I()||{}).userAgent)),dt||(n+=";SameSite=None")),ht.document.cookie=t+"="+n+i+";path=/"+e)},ht.stringToBoolOrDefault=function(e,t){return void 0===t&&(t=!1),e===undefined||null===e?t:"true"==e.toString().toLowerCase()},ht.getCookie=function(e,t){if(ht.canUseCookies(e)){var n="";if(t&&t.length)for(var r=t+"=",i=ht.document.cookie.split(";"),o=0;o<i.length;o++){var a=i[o];if((a=ht.trim(a))&&!a.indexOf(r)){n=a.substring(r.length,i[o].length);break}}return n}},ht.deleteCookie=function(e,t){ht.canUseCookies(e)&&(ht.document.cookie=t+"=;path=/;expires=Thu, 01 Jan 1970 00:00:01 GMT;")},ht.random32=function(){return J.random32(!0)},ht.getIEVersion=function(e){return void 0===e&&(e=null),~(e=e?e.toLowerCase():gt?(gt.userAgent||"").toLowerCase():"").indexOf("msie")?parseInt(e.split("msie")[1]):e.indexOf("trident/")&&(e=parseInt(e.split("trident/")[1]))?e+4:null},ht.msToTimeSpan=function(e){(isNaN(e)||e<0)&&(e=0);var t=""+(e=Math.round(e))%1e3,n=""+Math.floor(e/1e3)%60,r=""+Math.floor(e/6e4)%60,i=""+Math.floor(e/36e5)%24,e=Math.floor(e/864e5),t=1===t.length?"00"+t:2===t.length?"0"+t:t,n=n.length<2?"0"+n:n,r=r.length<2?"0"+r:r;return(0<e?e+".":"")+(i=i.length<2?"0"+i:i)+":"+r+":"+n+"."+t},ht.isCrossOriginError=function(e,t,n,r,i){return("Script error."===e||"Script error"===e)&&!i},ht.dump=function(e){var t=Object[g].toString.call(e),n="";return"[object Error]"===t?n="{ stack: '"+e.stack+"', message: '"+e.message+"', name: '"+e.name+"'":E()&&(n=C().stringify(e)),t+n},ht.getExceptionName=function(e){return"[object Error]"===Object[g].toString.call(e)?e.name:""},ht.addEventHandler=function(e,t){return Z.Attach(S(),e,t)},ht.IsBeaconApiSupported=function(){return"sendBeacon"in gt&&gt.sendBeacon},ht.getExtension=function(e,t){for(var n=null,r=0;!n&&r<e.length;)e[r]&&e[r].identifier===t&&(n=e[r]),r++;return n},ht.document=T()||{},ht._canUseLocalStorage=undefined,ht._canUseSessionStorage=undefined,ht._internalEndpoints=["https://dc.services.visualstudio.com/v2/track","https://breeze.aimon.applicationinsights.io/v2/track","https://dc-int.services.visualstudio.com/v2/track"],ht.NotSpecified="not_specified",ht.trim=J.strTrim,ht.newId=J.newId,ht.generateW3CId=J.generateW3CId,ht.isArray=J.isArray,ht.isError=J.isError,ht.isDate=J.isDate,ht.toISOStringForIE8=J.toISOString,ht);function ht(){}var vt=(yt.parseUrl=function(e){var t=yt._htmlAnchorIdx,n=yt._htmlAnchorElement,r=n[t];return yt.document.createElement?n[t]||(r=n[t]=yt.document.createElement("a")):r={host:yt.parseHost(e,!0)},r.href=e,++t>=n.length&&(t=0),yt._htmlAnchorIdx=t,r},yt.getAbsoluteUrl=function(e){var t;return(e=yt.parseUrl(e))&&(t=e.href),t},yt.getPathName=function(e){var t;return(e=yt.parseUrl(e))&&(t=e.pathname),t},yt.getCompleteUrl=function(e,t){return e?e.toUpperCase()+" "+t:t},yt.parseHost=function(e,t){return(e=yt.parseFullHost(e,t))&&null!=(t=e.match(/(www[0-9]?\.)?(.[^/:]+)(\:[\d]+)?/i))&&3<t.length&&pt(t[2])&&0<t[2].length?t[2]+(t[3]||""):e},yt.parseFullHost=function(e,t){var n=null;return!e||null!=(e=e.match(/(\w*):\/\/(.[^/:]+)(\:[\d]+)?/i))&&2<e.length&&pt(e[2])&&0<e[2].length&&(n=e[2]||"",t&&2<e.length&&(t=(e[1]||"").toLowerCase(),e=e[3]||"",("http"==t&&":80"===e||"https"==t&&":443"===e)&&(e=""),n+=e)),n},yt.document=T()||{},yt._htmlAnchorIdx=0,yt._htmlAnchorElement=[null,null,null,null,null],yt);function yt(){}var xt=(_t.ParseDependencyPath=function(e,t,n,r){var i,o,a,s=r,c=r,s=t&&0<t.length?(a=(i=vt.parseUrl(t)).host,s||(null!=i.pathname?("/"!=(o=0===i.pathname.length?"/":i.pathname)[0]&&(o="/"+o),c=i.pathname,lt.sanitizeString(e,n?n+" "+o:o)):lt.sanitizeString(e,t))):a=r;return{target:a,name:s,data:c}},_t);function _t(){}var St=(Tt.Now=function(){var e=N();return e&&e.now&&e.timing&&0<(e=e.now()+e.timing.navigationStart)?e:(new Date).getTime()},Tt.GetDuration=function(e,t){var n=null;return 0===e||0===t||J.isNullOrUndefined(e)||J.isNullOrUndefined(t)||(n=t-e),n},Tt);function Tt(){}var It,wt=(__extends(Nt,function(){}),Nt);function Nt(){return this}It=function(){this.ver=1,this.sampleRate=100,this.tags={}},__extends(function(e,t,n){var r=It.call(this)||this;return r.name=lt.sanitizeString(e,n)||mt.NotSpecified,r.data=t,r.time=J.toISOString(new Date),r.aiDataContract={time:p.Required,iKey:p.Required,name:p.Required,sampleRate:function(){return 100===r.sampleRate?p.Hidden:p.Required},tags:p.Required,data:p.Required},r},It);var Et,Ct=(Et=pn=function(){},__extends(bt,Et),bt);function bt(){var e=Et.call(this)||this;return e.ver=2,e.properties={},e.measurements={},e}var Dt,Pt=(Dt=Ct,__extends(kt,Dt),kt.envelopeType="Microsoft.ApplicationInsights.{0}.Event",kt.dataType="EventData",kt);function kt(e,t,n,r){var i=Dt.call(this)||this;return i.aiDataContract={ver:p.Required,name:p.Required,properties:p.Default,measurements:p.Default},i.name=lt.sanitizeString(e,t)||mt.NotSpecified,i.properties=lt.sanitizeProperties(e,n),i.measurements=lt.sanitizeMeasurements(e,r),i}var At,Lt=function(){},Mt=(At=pn,__extends(Rt,At),Rt);function Rt(){var e=At.call(this)||this;return e.ver=2,e.exceptions=[],e.properties={},e.measurements={},e}var Ot,nt=function(){this.hasFullStack=!0,this.parsedStack=[]},Ut="error",zt=(Ot=Mt,__extends(Vt,Ot),Vt.CreateFromInterface=function(t,e,n,r){var i=e.exceptions&&J.arrMap(e.exceptions,function(e){return jt.CreateFromInterface(t,e)});return new Vt(t,__assign({},e,{exceptions:i}),n,r)},Vt.prototype.toInterface=function(){var e=this.exceptions,t=this.properties,n=this.measurements,r=this.severityLevel,i=(this.ver,this.problemGroup),o=this.id,a=this.isManual;return{ver:"4.0",exceptions:e instanceof Array&&J.arrMap(e,function(e){return e.toInterface()})||undefined,severityLevel:r,properties:t,measurements:n,problemGroup:i,id:o,isManual:a}},Vt.CreateSimpleException=function(e,t,n,r,i,o){return{exceptions:[{hasFullStack:!0,message:e,stack:i,typeName:t}]}},Vt.envelopeType="Microsoft.ApplicationInsights.{0}.Exception",Vt.dataType="ExceptionData",Vt);function Vt(e,t,n,r,i,o){var a,s=Ot.call(this)||this;return s.aiDataContract={ver:p.Required,exceptions:p.Required,severityLevel:p.Default,properties:p.Default,measurements:p.Default},"ver"in(a=t)&&"exceptions"in a&&"properties"in a?(s.exceptions=t.exceptions,s.properties=t.properties,s.measurements=t.measurements,t.severityLevel&&(s.severityLevel=t.severityLevel),t.id&&(s.id=t.id),t.problemGroup&&(s.problemGroup=t.problemGroup),s.ver=2,J.isNullOrUndefined(t.isManual)||(s.isManual=t.isManual)):(s.exceptions=[new jt(e,t)],s.properties=lt.sanitizeProperties(e,n)||{},s.measurements=lt.sanitizeMeasurements(e,r),i&&(s.severityLevel=i),o&&(s.id=o)),s}var Gt,jt=(Gt=nt,__extends(qt,Gt),qt.prototype.toInterface=function(){var e=this.parsedStack instanceof Array&&J.arrMap(this.parsedStack,function(e){return e.toInterface()});return{id:this.id,outerId:this.outerId,typeName:this.typeName,message:this.message,hasFullStack:this.hasFullStack,stack:this.stack,parsedStack:e||undefined}},qt.CreateFromInterface=function(e,t){var n=t.parsedStack instanceof Array&&J.arrMap(t.parsedStack,function(e){return Bt.CreateFromInterface(e)})||t.parsedStack;return new qt(e,__assign({},t,{parsedStack:n}))},qt.parseStack=function(e){if(J.isString(e)){for(var t=e.split("\n"),n=[],r=0,i=0,o=0;o<=t.length;o++){var a=t[o];Bt.regex.test(a)&&(i+=(a=new Bt(t[o],r++)).sizeInBytes,n.push(a))}if(32768<i)for(var s=0,c=n.length-1,u=0,l=s,f=c;s<c;){if(32768<(u+=n[s].sizeInBytes+n[c].sizeInBytes)){var g=f-l+1;n.splice(l,g);break}l=s,f=c,s++,c--}}return n},qt);function qt(e,t){var n,r=Gt.call(this)||this;return r.aiDataContract={id:p.Default,outerId:p.Default,typeName:p.Required,message:p.Required,hasFullStack:p.Default,stack:p.Default,parsedStack:p.Array},"hasFullStack"in(n=t)&&"typeName"in n?(r.typeName=t.typeName,r.message=t.message,r.stack=t.stack,r.parsedStack=t.parsedStack,r.hasFullStack=t.hasFullStack):(n=t,mt.isError(n)||(n=n[Ut]||n.evt||n),r.typeName=lt.sanitizeString(e,function(e){var t="";if(e&&!(t=e.typeName||e.name||""))try{var n=/function (.{1,})\(/.exec(e.constructor.toString()),t=n&&1<n.length?n[1]:""}catch(r){}return t}(n))||mt.NotSpecified,r.message=lt.sanitizeMessage(e,t.message)||mt.NotSpecified,t=t.stack,r.parsedStack=qt.parseStack(t),r.stack=lt.sanitizeException(e,t),r.hasFullStack=mt.isArray(r.parsedStack)&&0<r.parsedStack.length),r}var Ft,Bt=(Ft=Lt,__extends(Kt,Ft),Kt.CreateFromInterface=function(e){return new Kt(e,null)},Kt.prototype.toInterface=function(){return{level:this.level,method:this.method,assembly:this.assembly,fileName:this.fileName,line:this.line}},Kt.regex=/^([\s]+at)?(.*?)(\@|\s\(|\s)([^\(\@\n]+):([0-9]+):([0-9]+)(\)?)$/,Kt.baseSize=58,Kt);function Kt(e,t){var n,r=Ft.call(this)||this;return r.sizeInBytes=0,r.aiDataContract={level:p.Required,method:p.Required,assembly:p.Default,fileName:p.Default,line:p.Default},"string"==typeof e?(n=e,r.level=t,r.method="<no_method>",r.assembly=mt.trim(n),r.fileName="",r.line=0,(n=n.match(Kt.regex))&&5<=n.length&&(r.method=mt.trim(n[2])||r.method,r.fileName=mt.trim(n[4]),r.line=parseInt(n[5])||0)):(r.level=e.level,r.method=e.method,r.assembly=e.assembly,r.fileName=e.fileName,r.line=e.line,r.sizeInBytes=0),r.sizeInBytes+=r.method.length,r.sizeInBytes+=r.fileName.length,r.sizeInBytes+=r.assembly.length,r.sizeInBytes+=Kt.baseSize,r.sizeInBytes+=r.level.toString().length,r.sizeInBytes+=r.line.toString().length,r}var Wt,Ht,nt=(Wt=pn,__extends(Xt,Wt),Xt);function Xt(){var e=Wt.call(this)||this;return e.ver=2,e.metrics=[],e.properties={},e.measurements={},e}(Lt=Ht={})[Lt.Measurement=0]="Measurement",Lt[Lt.Aggregation=1]="Aggregation";var Jt,$t=(Jt=function(){this.kind=Ht.Measurement},__extends(Qt,Jt),Qt);function Qt(){var e=Jt.apply(this,arguments)||this;return e.aiDataContract={name:p.Required,kind:p.Default,value:p.Required,count:p.Default,min:p.Default,max:p.Default,stdDev:p.Default},e}var Yt,Zt=(Yt=nt,__extends(en,Yt),en.envelopeType="Microsoft.ApplicationInsights.{0}.Metric",en.dataType="MetricData",en);function en(e,t,n,r,i,o,a,s){var c=Yt.call(this)||this;c.aiDataContract={ver:p.Required,metrics:p.Required,properties:p.Default};var u=new $t;return u.count=0<r?r:undefined,u.max=isNaN(o)||null===o?undefined:o,u.min=isNaN(i)||null===i?undefined:i,u.name=lt.sanitizeString(e,t)||mt.NotSpecified,u.value=n,c.metrics=[u],c.properties=lt.sanitizeProperties(e,a),c.measurements=lt.sanitizeMeasurements(e,s),c}var tn,nt=(tn=Ct,__extends(nn,tn),nn);function nn(){var e=tn.call(this)||this;return e.ver=2,e.properties={},e.measurements={},e}var rn,on=(rn=nt,__extends(an,rn),an.envelopeType="Microsoft.ApplicationInsights.{0}.Pageview",an.dataType="PageviewData",an);function an(e,t,n,r,i,o,a){var s=rn.call(this)||this;return s.aiDataContract={ver:p.Required,name:p.Default,url:p.Default,duration:p.Default,properties:p.Default,measurements:p.Default,id:p.Default},s.id=lt.sanitizeId(e,a),s.url=lt.sanitizeUrl(e,n),s.name=lt.sanitizeString(e,t)||mt.NotSpecified,isNaN(r)||(s.duration=mt.msToTimeSpan(r)),s.properties=lt.sanitizeProperties(e,i),s.measurements=lt.sanitizeMeasurements(e,o),s}var sn,Ct=(sn=pn,__extends(cn,sn),cn);function cn(){var e=sn.call(this)||this;return e.ver=2,e.success=!0,e.properties={},e.measurements={},e}var un,ln=(un=Ct,__extends(fn,un),fn.envelopeType="Microsoft.ApplicationInsights.{0}.RemoteDependency",fn.dataType="RemoteDependencyData",fn);function fn(e,t,n,r,i,o,a,s,c,u,l,f){void 0===c&&(c="Ajax");var g=un.call(this)||this;return g.aiDataContract={id:p.Required,ver:p.Required,name:p.Default,resultCode:p.Default,duration:p.Default,success:p.Default,data:p.Default,target:p.Default,type:p.Default,properties:p.Default,measurements:p.Default,kind:p.Default,value:p.Default,count:p.Default,min:p.Default,max:p.Default,stdDev:p.Default,dependencyKind:p.Default,dependencySource:p.Default,commandName:p.Default,dependencyTypeName:p.Default},g.id=t,g.duration=mt.msToTimeSpan(i),g.success=o,g.resultCode=a+"",g.type=lt.sanitizeString(e,c),s=xt.ParseDependencyPath(e,n,s,r),g.data=lt.sanitizeUrl(e,r)||s.data,g.target=lt.sanitizeString(e,s.target),u&&(g.target=g.target+" | "+u),g.name=lt.sanitizeString(e,s.name),g.properties=lt.sanitizeProperties(e,l),g.measurements=lt.sanitizeMeasurements(e,f),g}var gn,pn=(gn=pn,__extends(dn,gn),dn);function dn(){var e=gn.call(this)||this;return e.ver=2,e.properties={},e.measurements={},e}var mn,hn=(mn=pn,__extends(vn,mn),vn.envelopeType="Microsoft.ApplicationInsights.{0}.Message",vn.dataType="MessageData",vn);function vn(e,t,n,r,i){var o=mn.call(this)||this;return o.aiDataContract={ver:p.Required,message:p.Required,severityLevel:p.Default,properties:p.Default},t=t||mt.NotSpecified,o.message=lt.sanitizeMessage(e,t),o.properties=lt.sanitizeProperties(e,r),o.measurements=lt.sanitizeMeasurements(e,i),n&&(o.severityLevel=n),o}var yn,nt=(yn=nt,__extends(xn,yn),xn);function xn(){var e=yn.call(this)||this;return e.ver=2,e.properties={},e.measurements={},e}var _n,Sn,Tn,In=(_n=nt,__extends(wn,_n),wn.envelopeType="Microsoft.ApplicationInsights.{0}.PageviewPerformance",wn.dataType="PageviewPerformanceData",wn);function wn(e,t,n,r,i,o,a){var s=_n.call(this)||this;return s.aiDataContract={ver:p.Required,name:p.Default,url:p.Default,duration:p.Default,perfTotal:p.Default,networkConnect:p.Default,sentRequest:p.Default,receivedResponse:p.Default,domProcessing:p.Default,properties:p.Default,measurements:p.Default},s.url=lt.sanitizeUrl(e,n),s.name=lt.sanitizeString(e,t)||mt.NotSpecified,s.properties=lt.sanitizeProperties(e,i),s.measurements=lt.sanitizeMeasurements(e,o),a&&(s.domProcessing=a.domProcessing,s.duration=a.duration,s.networkConnect=a.networkConnect,s.perfTotal=a.perfTotal,s.receivedResponse=a.receivedResponse,s.sentRequest=a.sentRequest),s}Sn=wt,__extends(function(e,t){var n=Sn.call(this)||this;return n.aiDataContract={baseType:p.Required,baseData:p.Required},n.baseType=e,n.baseData=t,n},Sn),(wt=Tn={})[wt.Verbose=0]="Verbose",wt[wt.Information=1]="Information",wt[wt.Warning=2]="Warning",wt[wt.Error=3]="Error",wt[wt.Critical=4]="Critical";var Nn=(En.create=function(e,t,n,r,i,o){if(n=lt.sanitizeString(r,n)||mt.NotSpecified,J.isNullOrUndefined(e)||J.isNullOrUndefined(t)||J.isNullOrUndefined(n))throw Error("Input doesn't contain all required fields");var a={name:n,time:J.toISOString(new Date),iKey:"",ext:o||{},tags:[],data:{},baseType:t,baseData:e};return J.isNullOrUndefined(i)||X(i,function(e,t){a.data[e]=t}),a},En);function En(){}var Cn=function Kn(h,v,t,y){Ee(Kn,this,function(e){var l,n=J.arrForEach,f=J.isNullOrUndefined,g=null,p=[],d=!1;function m(){t&&n(t.getTransmissionControls(),function(e){n(e,function(e){return e.flush(!0)})})}t&&(l=t.logger),e.trackPageView=function(r,i){var o=r.name;!f(o)&&"string"==typeof o||(e=T(),o=r.name=e&&e.title||"");var e,a=r.uri;if(!f(a)&&"string"==typeof a||(e=w(),a=r.uri=e&&e.href||""),!y.isPerformanceTimingSupported())return h.sendPageViewInternal(r,i),m(),void l.throwInternal(Q.WARNING,25,"trackPageView: navigation timing API used for calculation of page duration is not supported in this browser. This page view will be collected without duration and timing info.");var s,t,c=!1,u=y.getPerformanceTiming().navigationStart;0<u&&(s=St.GetDuration(u,+new Date),y.shouldCollectDuration(s)||(s=undefined)),f(i)||f(i.duration)||(t=i.duration),!v&&isNaN(t)||(isNaN(t)&&((i=i||{}).duration=s),h.sendPageViewInternal(r,i),m(),c=!0),i=i||{},t=function(){var e,t=!1;try{y.isPerformanceTimingDataReady()?(t=!0,e={name:o,uri:a},y.populatePageViewPerformanceEvent(e),e.isValid||c?(c||(i.duration=e.durationMs,h.sendPageViewInternal(r,i)),d||(h.sendPageViewPerformanceInternal(e,i),d=!0)):(i.duration=s,h.sendPageViewInternal(r,i))):0<u&&6e4<St.GetDuration(u,+new Date)&&(t=!0,c||(i.duration=6e4,h.sendPageViewInternal(r,i)))}catch(n){l.throwInternal(Q.CRITICAL,38,"trackPageView failed on page load calculation: "+mt.getExceptionName(n),{exception:mt.dump(n)})}return t},p.push(t),g=g||setInterval(function(){var e=p.slice(0),t=!1;p=[],n(e,function(e){e()?t=!0:p.push(e)}),0===p.length&&(clearInterval(g),g=null),t&&m()},100)}})},bn=(Dn.prototype.trackPreviousPageVisit=function(e,t){try{var n=this.restartPageVisitTimer(e,t);n&&this.pageVisitTimeTrackingHandler(n.pageName,n.pageUrl,n.pageVisitTime)}catch(r){this._logger.warnToConsole("Auto track page visit time failed, metric will not be collected: "+mt.dump(r))}},Dn.prototype.restartPageVisitTimer=function(e,t){try{var n=this.stopPageVisitTimer();return this.startPageVisitTimer(e,t),n}catch(r){return this._logger.warnToConsole("Call to restart failed: "+mt.dump(r)),null}},Dn.prototype.startPageVisitTimer=function(e,t){try{if(mt.canUseSessionStorage()){if(null!=mt.getSessionStorage(this._logger,this.prevPageVisitDataKeyName))throw Error("Cannot call startPageVisit consecutively without first calling stopPageVisit");var n=new Pn(e,t),n=C().stringify(n);mt.setSessionStorage(this._logger,this.prevPageVisitDataKeyName,n)}}catch(r){this._logger.warnToConsole("Call to start failed: "+mt.dump(r))}},Dn.prototype.stopPageVisitTimer=function(){try{if(mt.canUseSessionStorage()){var e=J.dateNow(),t=mt.getSessionStorage(this._logger,this.prevPageVisitDataKeyName);return t&&E()?((t=C().parse(t)).pageVisitTime=e-t.pageVisitStartTime,mt.removeSessionStorage(this._logger,this.prevPageVisitDataKeyName),t):null}return null}catch(n){return this._logger.warnToConsole("Stop page visit timer failed: "+mt.dump(n)),null}},Dn);function Dn(e,t){this.prevPageVisitDataKeyName="prevPageVisitData",this.pageVisitTimeTrackingHandler=t,this._logger=e}var Pn=function(e,t){this.pageVisitStartTime=J.dateNow(),this.pageName=e,this.pageUrl=t},kn=(An.prototype.populatePageViewPerformanceEvent=function(e){e.isValid=!1;var t,n,r,i,o=this.getPerformanceNavigationTiming(),a=this.getPerformanceTiming();(o||a)&&(a=o?(t=o.duration,n=St.GetDuration(o.startTime,o.connectEnd),r=St.GetDuration(o.requestStart,o.responseStart),i=St.GetDuration(o.responseStart,o.responseEnd),St.GetDuration(o.responseEnd,o.loadEventEnd)):(t=St.GetDuration(a.navigationStart,a.loadEventEnd),n=St.GetDuration(a.navigationStart,a.connectEnd),r=St.GetDuration(a.requestStart,a.responseStart),i=St.GetDuration(a.responseStart,a.responseEnd),St.GetDuration(a.responseEnd,a.loadEventEnd)),0===t?this._logger.throwInternal(Q.WARNING,10,"error calculating page view performance.",{total:t,network:n,request:r,response:i,dom:a}):this.shouldCollectDuration(t,n,r,i,a)?t<Math.floor(n)+Math.floor(r)+Math.floor(i)+Math.floor(a)?this._logger.throwInternal(Q.WARNING,8,"client performance math error.",{total:t,network:n,request:r,response:i,dom:a}):(e.durationMs=t,e.perfTotal=e.duration=mt.msToTimeSpan(t),e.networkConnect=mt.msToTimeSpan(n),e.sentRequest=mt.msToTimeSpan(r),e.receivedResponse=mt.msToTimeSpan(i),e.domProcessing=mt.msToTimeSpan(a),e.isValid=!0):this._logger.throwInternal(Q.WARNING,45,"Invalid page load duration value. Browser perf data won't be sent.",{total:t,network:n,request:r,response:i,dom:a}))},An.prototype.getPerformanceTiming=function(){return this.isPerformanceTimingSupported()?N().timing:null},An.prototype.getPerformanceNavigationTiming=function(){return this.isPerformanceNavigationTimingSupported()?N().getEntriesByType("navigation")[0]:null},An.prototype.isPerformanceNavigationTimingSupported=function(){var e=N();return e&&e.getEntriesByType&&0<e.getEntriesByType("navigation").length},An.prototype.isPerformanceTimingSupported=function(){var e=N();return e&&e.timing},An.prototype.isPerformanceTimingDataReady=function(){var e=N();return(e=e?e.timing:0)&&0<e.domainLookupStart&&0<e.navigationStart&&0<e.responseStart&&0<e.requestStart&&0<e.loadEventEnd&&0<e.responseEnd&&0<e.connectEnd&&0<e.domLoading},An.prototype.shouldCollectDuration=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=["googlebot","adsbot-google","apis-google","mediapartners-google"],r=(I()||{}).userAgent,i=!1;if(r)for(var o=0;o<n.length;o++)i=i||!!~r.toLowerCase().indexOf(n[o]);if(i)return!1;for(o=0;o<e.length;o++)if(e[o]<0||e[o]>=this.MAX_DURATION_ALLOWED)return!1;return!0},An);function An(e){this.MAX_DURATION_ALLOWED=36e5,e&&(this._logger=e.logger)}var Ln="duration";function Mn(e,t){e&&e.dispatchEvent&&t&&e.dispatchEvent(t)}var Rn,Be=(Rn=Be,__extends(On,Rn),On.getDefaultConfig=function(e){return(e=e||{}).sessionRenewalMs=18e5,e.sessionExpirationMs=864e5,e.disableExceptionTracking=mt.stringToBoolOrDefault(e.disableExceptionTracking),e.autoTrackPageVisitTime=mt.stringToBoolOrDefault(e.autoTrackPageVisitTime),e.overridePageViewDuration=mt.stringToBoolOrDefault(e.overridePageViewDuration),e.enableUnhandledPromiseRejectionTracking=mt.stringToBoolOrDefault(e.enableUnhandledPromiseRejectionTracking),(isNaN(e.samplingPercentage)||e.samplingPercentage<=0||100<=e.samplingPercentage)&&(e.samplingPercentage=100),e.isCookieUseDisabled=mt.stringToBoolOrDefault(e.isCookieUseDisabled),e.isStorageUseDisabled=mt.stringToBoolOrDefault(e.isStorageUseDisabled),e.isBrowserLinkTrackingEnabled=mt.stringToBoolOrDefault(e.isBrowserLinkTrackingEnabled),e.enableAutoRouteTracking=mt.stringToBoolOrDefault(e.enableAutoRouteTracking),e.namePrefix=e.namePrefix||"",e},On.prototype.processTelemetry=function(o,a){var s=this;Oe(this.core,function(){return s.identifier+":processTelemetry"},function(){var e=!1,t=s._telemetryInitializers.length;a=s._getTelCtx(a);for(var n=0;n<t;++n){var r=s._telemetryInitializers[n];if(r)try{if(!1===r.call(null,o)){e=!0;break}}catch(i){a.diagLog().throwInternal(Q.CRITICAL,64,"One of telemetry initializers failed, telemetry item will not be sent: "+mt.getExceptionName(i),{exception:mt.dump(i)},!0)}}e||s.processNext(o,a)},function(){return{item:o}},!o.sync)},On.prototype.trackEvent=function(e,t){try{var n=Nn.create(e,Pt.dataType,Pt.envelopeType,this.diagLog(),t);this.core.track(n)}catch(r){this.diagLog().throwInternal(Q.WARNING,39,"trackTrace failed, trace will not be collected: "+mt.getExceptionName(r),{exception:mt.dump(r)})}},On.prototype.startTrackEvent=function(e){try{this._eventTracking.start(e)}catch(t){this.diagLog().throwInternal(Q.CRITICAL,29,"startTrackEvent failed, event will not be collected: "+mt.getExceptionName(t),{exception:mt.dump(t)})}},On.prototype.stopTrackEvent=function(e,t,n){try{this._eventTracking.stop(e,undefined,t)}catch(r){this.diagLog().throwInternal(Q.CRITICAL,30,"stopTrackEvent failed, event will not be collected: "+mt.getExceptionName(r),{exception:mt.dump(r)})}},On.prototype.trackTrace=function(e,t){try{var n=Nn.create(e,hn.dataType,hn.envelopeType,this.diagLog(),t);this.core.track(n)}catch(r){this.diagLog().throwInternal(Q.WARNING,39,"trackTrace failed, trace will not be collected: "+mt.getExceptionName(r),{exception:mt.dump(r)})}},On.prototype.trackMetric=function(e,t){try{var n=Nn.create(e,Zt.dataType,Zt.envelopeType,this.diagLog(),t);this.core.track(n)}catch(r){this.diagLog().throwInternal(Q.CRITICAL,36,"trackMetric failed, metric will not be collected: "+mt.getExceptionName(r),{exception:mt.dump(r)})}},On.prototype.trackPageView=function(e,t){try{var n=e||{};this._pageViewManager.trackPageView(n,__assign({},n.properties,n.measurements,t)),this.config.autoTrackPageVisitTime&&this._pageVisitTimeManager.trackPreviousPageVisit(n.name,n.uri)}catch(r){this.diagLog().throwInternal(Q.CRITICAL,37,"trackPageView failed, page view will not be collected: "+mt.getExceptionName(r),{exception:mt.dump(r)})}},On.prototype.sendPageViewInternal=function(e,t,n){var r=T();r&&(e.refUri=e.refUri===undefined?r.referrer:e.refUri),n=Nn.create(e,on.dataType,on.envelopeType,this.diagLog(),t,n),this.core.track(n),this._trackAjaxAttempts=0},On.prototype.sendPageViewPerformanceInternal=function(e,t,n){n=Nn.create(e,In.dataType,In.envelopeType,this.diagLog(),t,n),this.core.track(n)},On.prototype.trackPageViewPerformance=function(e,t){try{this._pageViewPerformanceManager.populatePageViewPerformanceEvent(e),this.sendPageViewPerformanceInternal(e,t)}catch(n){this.diagLog().throwInternal(Q.CRITICAL,37,"trackPageViewPerformance failed, page view will not be collected: "+mt.getExceptionName(n),{exception:mt.dump(n)})}},On.prototype.startTrackPage=function(e){try{var t;"string"!=typeof e&&(e=(t=T())&&t.title||""),this._pageTracking.start(e)}catch(n){this.diagLog().throwInternal(Q.CRITICAL,31,"startTrackPage failed, page view may not be collected: "+mt.getExceptionName(n),{exception:mt.dump(n)})}},On.prototype.stopTrackPage=function(e,t,n,r){try{var i;"string"!=typeof e&&(e=(i=T())&&i.title||""),"string"!=typeof t&&(t=(i=w())&&i.href||""),this._pageTracking.stop(e,t,n,r),this.config.autoTrackPageVisitTime&&this._pageVisitTimeManager.trackPreviousPageVisit(e,t)}catch(o){this.diagLog().throwInternal(Q.CRITICAL,32,"stopTrackPage failed, page view will not be collected: "+mt.getExceptionName(o),{exception:mt.dump(o)})}},On.prototype.sendExceptionInternal=function(e,t,n){e=new zt(this.diagLog(),e.exception||Error(mt.NotSpecified),e.properties,e.measurements,e.severityLevel,e.id).toInterface(),n=Nn.create(e,zt.dataType,zt.envelopeType,this.diagLog(),t,n),this.core.track(n)},On.prototype.trackException=function(e,t){try{this.sendExceptionInternal(e,t)}catch(n){this.diagLog().throwInternal(Q.CRITICAL,35,"trackException failed, exception will not be collected: "+mt.getExceptionName(n),{exception:mt.dump(n)})}},On.prototype._onerror=function(e){try{var t,n={url:e&&e.url||(T()||{}).URL,lineNumber:e.lineNumber,columnNumber:e.columnNumber,message:e.message};mt.isCrossOriginError(e.message,e.url,e.lineNumber,e.columnNumber,e.error)?this._sendCORSException(n.url):(mt.isError(e.error)||(t="window.onerror@"+n.url+":"+e.lineNumber+":"+(e.columnNumber||0),e.error=Error(e.message),e.error.stack=t),this.trackException({exception:e.error,severityLevel:Tn.Error},n))}catch(i){var r=e.error?e.error.name+", "+e.error.message:"null";this.diagLog().throwInternal(Q.CRITICAL,11,"_onError threw exception while logging error, error will not be collected: "+mt.getExceptionName(i),{exception:mt.dump(i),errorString:r})}},On.prototype.addTelemetryInitializer=function(e){this._telemetryInitializers.push(e)},On.prototype.initialize=function(e,t,n,r){var o=this;if(!this.isInitialized()){if(J.isNullOrUndefined(t))throw Error("Error initializing");Rn.prototype.initialize.call(this,e,t,n,r),this.setInitialized(!1);var i=this._getTelCtx(),a=this.identifier;this._globalconfig={instrumentationKey:e.instrumentationKey,endpointUrl:e.endpointUrl||"https://dc.services.visualstudio.com/v2/track"},this.config=i.getExtCfg(a),(t=On.getDefaultConfig())!==undefined&&(X(t,function(e,t){o.config[e]=i.getConfig(a,e,t)}),this._globalconfig&&X(t,function(e,t){o._globalconfig[e]===undefined&&(o._globalconfig[e]=t)})),this.config.isCookieUseDisabled&&mt.disableCookies(),this.config.isStorageUseDisabled&&mt.disableStorage(),r={instrumentationKey:function(){return e.instrumentationKey},accountId:function(){return o.config.accountId||e.accountId},sessionRenewalMs:function(){return o.config.sessionRenewalMs||e.sessionRenewalMs},sessionExpirationMs:function(){return o.config.sessionExpirationMs||e.sessionExpirationMs},sampleRate:function(){return o.config.samplingPercentage||e.samplingPercentage},cookieDomain:function(){return o.config.cookieDomain||e.cookieDomain},sdkExtension:function(){return o.config.sdkExtension||e.sdkExtension},isBrowserLinkTrackingEnabled:function(){return o.config.isBrowserLinkTrackingEnabled||e.isBrowserLinkTrackingEnabled},appId:function(){return o.config.appId||e.appId}},this._pageViewPerformanceManager=new kn(this.core),this._pageViewManager=new Cn(this,this.config.overridePageViewDuration,this.core,this._pageViewPerformanceManager),this._pageVisitTimeManager=new bn(this.diagLog(),function(e,t,n){return o.trackPageVisitTime(e,t,n)}),this._telemetryInitializers=this._telemetryInitializers||[],this._addDefaultTelemetryInitializers(r),this._eventTracking=new Un(this.diagLog(),"trackEvent"),this._eventTracking.action=function(e,t,n,r){(r=r||{})[Ln]=n.toString(),o.trackEvent({name:e,properties:r})},this._pageTracking=new Un(this.diagLog(),"trackPageView"),this._pageTracking.action=function(e,t,n,r,i){J.isNullOrUndefined(r)&&(r={}),r[Ln]=n.toString(),i={name:e,uri:t,properties:r,measurements:i},o.sendPageViewInternal(i,r)};var s,c,u,l,f,g=S(),t=typeof history===m&&history?history:x("history"),p=w(),d=this;!1===this.config.disableExceptionTracking&&!this.config.autoExceptionInstrumented&&g&&(s=g.onerror,g.onerror=function(e,t,n,r,i){var o=s&&s(e,t,n,r,i);return!0!==o&&d._onerror({message:e,url:t,lineNumber:n,columnNumber:r,error:i}),o},this.config.autoExceptionInstrumented=!0),!1===this.config.disableExceptionTracking&&!0===this.config.enableUnhandledPromiseRejectionTracking&&!this.config.autoUnhandledPromiseInstrumented&&g&&(c=g[r="onunhandledrejection"],g[r]=function(e){var t=c&&c.call(g,e);return!0!==t&&d._onerror({message:e.reason.toString(),error:e.reason instanceof Error?e.reason:Error(e.reason.toString()),url:p?p.href:"",lineNumber:0,columnNumber:0}),t},this.config.autoUnhandledPromiseInstrumented=!0),!0===this.config.enableAutoRouteTracking&&t&&J.isFunction(t.pushState)&&J.isFunction(t.replaceState)&&g&&"undefined"!=typeof Event&&(u=this,J.arrForEach(n,function(e){"AppInsightsPropertiesPlugin"===e.identifier&&(o._properties=e)}),t.pushState=(f=t.pushState,function(){var e=f.apply(this,arguments);return Mn(g,mt.createDomEvent(u.config.namePrefix+"pushState")),Mn(g,mt.createDomEvent(u.config.namePrefix+"locationchange")),e}),t.replaceState=(l=t.replaceState,function(){var e=l.apply(this,arguments);return Mn(g,mt.createDomEvent(u.config.namePrefix+"replaceState")),Mn(g,mt.createDomEvent(u.config.namePrefix+"locationchange")),e}),g.addEventListener&&(g.addEventListener(u.config.namePrefix+"popstate",function(){Mn(g,mt.createDomEvent(u.config.namePrefix+"locationchange"))}),g.addEventListener(u.config.namePrefix+"locationchange",function(){u._properties&&u._properties.context&&u._properties.context.telemetryTrace&&(u._properties.context.telemetryTrace.traceID=mt.generateW3CId(),u._properties.context.telemetryTrace.name=p&&p.pathname||"_unknown_"),o._currUri&&(o._prevUri=o._currUri),o._currUri=p&&p.href||"",setTimeout((function(e){u.trackPageView({refUri:e,properties:{duration:0}})}).bind(o,o._prevUri),u.autoRoutePVDelay)}))),this.setInitialized(!0)}},On.prototype.trackPageVisitTime=function(e,t,n){t={PageName:e,PageUrl:t},this.trackMetric({name:"PageVisitTime",average:n,max:n,min:n,sampleCount:1},t)},On.prototype._addDefaultTelemetryInitializers=function(e){var r;e.isBrowserLinkTrackingEnabled()||(r=["/browserLinkSignalR/","/__browserLink/"],this._addTelemetryInitializer(function(e){if(e.baseType===ln.dataType){var t=e.baseData;if(t)for(var n=0;n<r.length;n++)if(t.target&&~t.target.indexOf(r[n]))return!1}return!0}))},On.prototype._addTelemetryInitializer=function(e){this._telemetryInitializers.push(e)},On.prototype._sendCORSException=function(e){var t={message:"Script error: The browser's same-origin policy prevents us from getting the details of this exception. Consider using the 'crossorigin' attribute.",url:e,lineNumber:0,columnNumber:0,error:undefined},e=Nn.create(t,zt.dataType,zt.envelopeType,this.diagLog(),{url:e});this.core.track(e)},On.Version="2.5.10",On);function On(){var e=Rn.call(this)||this;e.identifier="ApplicationInsightsAnalytics",e.priority=180,e.autoRoutePVDelay=500,e._trackAjaxAttempts=0;var t=w();return e._prevUri=t&&t.href||"",e}var Un=(zn.prototype.start=function(e){"undefined"!=typeof this._events[e]&&this._logger.throwInternal(Q.WARNING,62,"start was called more than once for this event without calling stop.",{name:this._name,key:e},!0),this._events[e]=+new Date},zn.prototype.stop=function(e,t,n,r){var i,o=this._events[e];isNaN(o)?this._logger.throwInternal(Q.WARNING,63,"stop was called without a corresponding start.",{name:this._name,key:e},!0):(i=+new Date,i=St.GetDuration(o,i),this.action(e,t,i,n,r)),delete this._events[e],this._events[e]=undefined},zn);function zn(e,t){this._name=t,this._events={},this._logger=e}e.ApplicationInsights=Be,function(e,t,n){var r=Object.defineProperty;if(r)try{return r(e,t,n)}catch(i){}typeof n.value!==undefined&&(e[t]=n.value)}(e,"__esModule",{value:!0})};"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((e.Microsoft=e.Microsoft||{},e.Microsoft.ApplicationInsights=e.Microsoft.ApplicationInsights||{}));
//# sourceMappingURL=applicationinsights-analytics-js.min.js.map
{
"name": "@microsoft/applicationinsights-analytics-js",
"version": "2.5.9",
"version": "2.5.10",
"description": "Microsoft Application Insights Javascript SDK apis",

@@ -22,3 +22,3 @@ "main": "dist/applicationinsights-analytics-js.js",

"@microsoft/applicationinsights-rollup-es3" : "1.1.3",
"@microsoft/applicationinsights-properties-js": "2.5.9",
"@microsoft/applicationinsights-properties-js": "2.5.10",
"typescript": "2.5.3",

@@ -38,8 +38,8 @@ "globby": "^11.0.0",

"dependencies": {
"@microsoft/dynamicproto-js": "^1.0.0",
"@microsoft/dynamicproto-js": "^1.1.0",
"@microsoft/applicationinsights-shims" : "1.0.3",
"@microsoft/applicationinsights-core-js": "2.5.9",
"@microsoft/applicationinsights-common": "2.5.9"
"@microsoft/applicationinsights-core-js": "2.5.10",
"@microsoft/applicationinsights-common": "2.5.10"
},
"license": "MIT"
}

@@ -18,3 +18,3 @@ /**

IDiagnosticLogger, LoggingSeverity, _InternalMessageId, ICustomProperties,
getWindow, getDocument, getHistory, getLocation, doPerf
getWindow, getDocument, getHistory, getLocation, doPerf, objForEachKey
} from "@microsoft/applicationinsights-core-js";

@@ -40,3 +40,3 @@ import { PageViewManager, IAppInsightsInternal } from "./Telemetry/PageViewManager";

export class ApplicationInsights extends BaseTelemetryPlugin implements IAppInsights, IAppInsightsInternal {
public static Version = "2.5.9"; // Not currently used anywhere
public static Version = "2.5.10"; // Not currently used anywhere

@@ -492,13 +492,13 @@ public static getDefaultConfig(config?: IConfig): IConfig {

if (defaults !== undefined) {
for (const field in defaults) {
objForEachKey(defaults, (field, value) => {
// for each unspecified field, set the default value
this.config[field] = ctx.getConfig(identifier, field, defaults[field]);
}
this.config[field] = ctx.getConfig(identifier, field, value);
});
if (this._globalconfig) {
for (const field in defaults) {
objForEachKey(defaults, (field, value) => {
if (this._globalconfig[field] === undefined) {
this._globalconfig[field] = defaults[field];
this._globalconfig[field] = value;
}
}
});
}

@@ -505,0 +505,0 @@ }

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc