@microsoft/1ds-core-js
Advanced tools
Comparing version 3.1.9 to 3.1.10
/*! | ||
* 1DS JS SDK Core, 3.1.9 | ||
* 1DS JS SDK Core, 3.1.10 | ||
* Copyright (c) Microsoft and contributors. All rights reserved. | ||
* (Microsoft Internal Only) | ||
*/ | ||
!function(c){"use strict";var a="function",u="object",n="undefined",f="prototype",o="hasOwnProperty",t=Object,l=t[f],r=t.assign,i=t.create,e=t.defineProperty,s=l[o];function g(){return typeof globalThis!==n&&globalThis?globalThis:typeof self!==n&&self?self:typeof window!==n&&window?window:typeof global!==n&&global?global:null}function d(e){throw new TypeError(e)}function v(e){if(i)return i(e);if(null==e)return{};var n=typeof e;function t(){}return n!==u&&n!==a&&d("Object prototype may only be an Object:"+e),t[f]=e,new t}(g()||{}).Symbol,(g()||{}).Reflect;var p=r||function(e){for(var n,t=1,r=arguments.length;t<r;t++)for(var i in n=arguments[t])l[o].call(n,i)&&(e[i]=n[i]);return e},h=function(e,n){return(h=t.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var t in n)n[o](t)&&(e[t]=n[t])})(e,n)};function m(e,n){function t(){this.constructor=e}typeof n!==a&&null!==n&&d("Class extends value "+n+" is not a constructor or null"),h(e,n),e[f]=null===n?v(n):(t[f]=n[f],new t)}function y(e,n){for(var t=0,r=n.length,i=e.length;t<r;t++,i++)e[i]=n[t];return e}var C={Unknown:0,NonRetryableStatus:1,InvalidEvent:2,SizeLimitExceeded:3,KillSwitch:4,QueueFull:5},S="constructor",x="prototype",I="function",b="_dynInstFuncs",T="_isDynProxy",w="_dynClass",P="_dynInstChk",E=P,N="_dfOpts",A="_unknown_",L="__proto__",k="useBaseInst",M="setInstFuncs",F=Object,O=F.getPrototypeOf,R=0;function D(e,n){return e&&F[x].hasOwnProperty.call(e,n)}function _(e){return e&&(e===F[x]||e===Array[x])}function j(e){return _(e)||e===Function[x]}function U(e){if(e){if(O)return O(e);if(e=e[L]||e[x]||(e[S]?e[S][x]:null))return e}return null}function V(e,n){var t=[],r=F.getOwnPropertyNames;if(r)t=r(e);else for(var i in e)"string"==typeof i&&D(e,i)&&t.push(i);if(t&&0<t.length)for(var o=0;o<t.length;o++)n(t[o])}function z(e,n,t){return n!==S&&typeof e[n]===I&&(t||D(e,n))}function B(e){throw new TypeError("DynamicProto: "+e)}function K(e,n){for(var t=e.length-1;0<=t;t--)if(e[t]===n)return 1}function H(e,n){return D(e,x)?e.name||n||A:((e||{})[S]||{}).name||n||A}function q(e,r,n,t){D(e,x)||B("theClass is an invalid class definition.");var i=e[x];!function(e){if(O)for(var n=[],t=U(r);t&&!j(t)&&!K(n,t);){if(t===e)return 1;n.push(t),t=U(t)}}(i)&&B("["+H(e)+"] is not in class hierarchy of ["+H(r)+"]");var o=null;D(i,w)?o=i[w]:(o="_dynCls$"+H(e,"_")+"$"+R,R++,i[w]=o);var a=q[N],u=!!a[k];u&&t&&t[k]!==undefined&&(u=!!t[k]);var l,s,c,f,g,d,e=(s={},V(l=r,function(e){!s[e]&&z(l,e,!1)&&(s[e]=l[e])}),s);n(r,function(e,n,t,o){function r(e,n,t){var r,i=n[t];return i[T]&&o&&!1!==(r=e[b]||{})[E]&&(i=(r[n[w]]||{})[t]||i),function(){return i.apply(e,arguments)}}var i={};V(t,function(e){i[e]=r(n,t,e)});for(var a=U(e),u=[];a&&!j(a)&&!K(u,a);)V(a,function(e){!i[e]&&z(a,e,!O)&&(i[e]=r(n,a,e))}),u.push(a),a=U(a);return i}(i,r,e,u)),a=!!O&&!!a[M],c=i,o=o,f=r,g=e,t=!1!==(a=a&&t?!!t[M]:a),_(c)||(a=f[b]=f[b]||{},d=a[o]=a[o]||{},!1!==a[E]&&(a[E]=!!t),V(f,function(e){var t,r,i;z(f,e,!1)&&f[e]!==g[e]&&(d[e]=f[e],delete f[e],D(c,e)&&(!c[e]||c[e][T])||(c[e]=(t=c,r=e,(i=function(){var e,n;return(function(e,n,t,r){var i=null;if(e&&D(t,w)){var o=e[b]||{};if((i=(o[t[w]]||{})[n])||B("Missing ["+n+"] "+I),!i[P]&&!1!==o[E]){for(var a=!D(e,n),u=U(e),l=[];a&&u&&!j(u)&&!K(l,u);){var s=u[n];if(s){a=s===r;break}l.push(u),u=U(u)}try{a&&(e[n]=i),i[P]=1}catch(c){o[E]=!1}}}return i}(this,r,t,i)||(typeof(n=(n=t[e=r])===i?U(t)[e]:n)!==I&&B("["+e+"] is not a "+I),n)).apply(this,arguments)})[T]=1,i)))}))}q[N]={setInstFuncs:!0,useBaseInst:!0},c.LoggingSeverity=void 0,(Sr=c.LoggingSeverity||(c.LoggingSeverity={}))[Sr.CRITICAL=1]="CRITICAL",Sr[Sr.WARNING=2]="WARNING";var W={BrowserDoesNotSupportLocalStorage:0,BrowserCannotReadLocalStorage:1,BrowserCannotReadSessionStorage:2,BrowserCannotWriteLocalStorage:3,BrowserCannotWriteSessionStorage:4,BrowserFailedRemovalFromLocalStorage:5,BrowserFailedRemovalFromSessionStorage:6,CannotSendEmptyTelemetry:7,ClientPerformanceMathError:8,ErrorParsingAISessionCookie:9,ErrorPVCalc:10,ExceptionWhileLoggingError:11,FailedAddingTelemetryToBuffer:12,FailedMonitorAjaxAbort:13,FailedMonitorAjaxDur:14,FailedMonitorAjaxOpen:15,FailedMonitorAjaxRSC:16,FailedMonitorAjaxSend:17,FailedMonitorAjaxGetCorrelationHeader:18,FailedToAddHandlerForOnBeforeUnload:19,FailedToSendQueuedTelemetry:20,FailedToReportDataLoss:21,FlushFailed:22,MessageLimitPerPVExceeded:23,MissingRequiredFieldSpecification:24,NavigationTimingNotSupported:25,OnError:26,SessionRenewalDateIsZero:27,SenderNotInitialized:28,StartTrackEventFailed:29,StopTrackEventFailed:30,StartTrackFailed:31,StopTrackFailed:32,TelemetrySampledAndNotSent:33,TrackEventFailed:34,TrackExceptionFailed:35,TrackMetricFailed:36,TrackPVFailed:37,TrackPVFailedCalc:38,TrackTraceFailed:39,TransmissionFailed:40,FailedToSetStorageBuffer:41,FailedToRestoreStorageBuffer:42,InvalidBackendResponse:43,FailedToFixDepricatedValues:44,InvalidDurationValue:45,TelemetryEnvelopeInvalid:46,CreateEnvelopeError:47,CannotSerializeObject:48,CannotSerializeObjectNonSerializable:49,CircularReferenceDetected:50,ClearAuthContextFailed:51,ExceptionTruncated:52,IllegalCharsInName:53,ItemNotInArray:54,MaxAjaxPerPVExceeded:55,MessageTruncated:56,NameTooLong:57,SampleRateOutOfRange:58,SetAuthContextFailed:59,SetAuthContextFailedAccountName:60,StringValueTooLong:61,StartCalledMoreThanOnce:62,StopCalledWithoutStart:63,TelemetryInitializerFailed:64,TrackArgumentsNotSpecified:65,UrlTooLong:66,SessionStorageBufferFull:67,CannotAccessCookie:68,IdTooLong:69,InvalidEvent:70,FailedMonitorAjaxSetRequestHeader:71,SendBrowserInfoOnUserInit:72,PluginException:73,NotificationException:74,SnippetScriptLoadFailure:99,InvalidInstrumentationKey:100,CannotParseAiBlobValue:101,InvalidContentBlob:102,TrackPageActionEventFailed:103,FailedAddingCustomDefinedRequestContext:104,InMemoryStorageBufferFull:105},G="attachEvent",J="addEventListener",X="detachEvent",Q="removeEventListener",Z=e;function $(e){return l.toString.call(e)}function Y(e,n){return typeof e===n}function ee(e){return e===undefined||typeof e===n}function ne(e){return null===e||ee(e)}function te(e){return!ne(e)}function re(e,n){return e&&s.call(e,n)}function ie(e){return typeof e===u}function oe(e){return typeof e===a}function ae(e,n,t,r){void 0===r&&(r=!1);var i=!1;if(!ne(e))try{ne(e[J])?ne(e[G])||(e[G]("on"+n,t),i=!0):(e[J](n,t,r),i=!0)}catch(o){}return i}function ue(e,n,t,r){if(void 0===r&&(r=!1),!ne(e))try{ne(e[Q])?ne(e[X])||e[X]("on"+n,t):e[Q](n,t,r)}catch(i){}}function le(e,n){if(e)for(var t in e)s.call(e,t)&&n.call(e,t,e[t])}function se(e,n){if(e&&n){var t=n.length,r=e.length;if(e===n)return!0;if(t<=r){for(var i=r-1,o=t-1;0<=o;o--){if(e[i]!=n[o])return!1;i--}return!0}}return!1}function ce(e,n){return!(!e||!n||!~e.indexOf(n))}function fe(e){return"[object Date]"===$(e)}function ge(e){return"[object Array]"===$(e)}function de(e){return"[object Error]"===$(e)}function ve(e){return"string"==typeof e}function pe(e){return"number"==typeof e}function he(e){return"boolean"==typeof e}function me(e){if(fe(e)){var n=function(e){return 1===(e=""+e).length?"0"+e:e};return e.getUTCFullYear()+"-"+n(1+e.getUTCMonth())+"-"+n(e.getUTCDate())+"T"+n(e.getUTCHours())+":"+n(e.getUTCMinutes())+":"+n(e.getUTCSeconds())+"."+(""+(e.getUTCMilliseconds()/1e3).toFixed(3)).slice(2,5)+"Z"}}function ye(e,n,t){var r=e.length;try{for(var i=0;i<r&&!(i in e&&-1===n.call(t||e,e[i],i,e));i++);}catch(o){}}function Ce(e,n,t){var r=e.length,t=t||0;try{for(var i=Math.max(0<=t?t:r-Math.abs(t),0);i<r;i++)if(i in e&&e[i]===n)return i}catch(o){}return-1}function Se(e,n,t){var r=e.length,i=t||e,o=Array(r);try{for(var a=0;a<r;a++)a in e&&(o[a]=n.call(i,e[a],e))}catch(u){}return o}function xe(e,n,t){var r,i=e.length,o=0;if(3<=arguments.length)r=t;else{for(;o<i&&!(o in e);)o++;r=e[o++]}for(;o<i;)o in e&&(r=n(r,e[o],o,e)),o++;return r}function Ie(e){return"string"!=typeof e?e:e.replace(/^\s+|\s+$/g,"")}var be=!{toString:null}.propertyIsEnumerable("toString"),Te=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"];function we(e){var n=typeof e;n===a||n===u&&null!==e||d("objKeys called on non-object");var t,r=[];for(t in e)e&&s.call(e,t)&&r.push(t);if(be)for(var i=Te.length,o=0;o<i;o++)e&&s.call(e,Te[o])&&r.push(Te[o]);return r}function Pe(e,n,t,r){if(Z)try{var i={enumerable:!0,configurable:!0};return t&&(i.get=t),r&&(i.set=r),Z(e,n,i),!0}catch(o){}return!1}function Ee(){var e=Date;return e.now?e.now():(new e).getTime()}function Ne(e){return de(e)?e.name:""}function Ae(e,n,t,r,i){var o=t;return e&&((o=e[n])===t||i&&!i(o)||r&&!r(t)||(e[n]=o=t)),o}function Le(e,n,t){var r;return e?!(r=e[n])&&ne(r)&&(r=ee(t)?{}:t,e[n]=r):r=ee(t)?{}:t,r}function ke(e){return!e}function Me(e){return!!e}function Fe(e){throw Error(e)}var Oe="window",Re="navigator",De="location",_e="performance",je="JSON",Ue="crypto",Ve="msCrypto",ze="msie",Be="trident/",Ke=null,He=null,qe=!1,We=null,Ge=null;function Je(e,n){var t,r=!1;if(e){try{(r=n in e)||(t=e[f])&&(r=n in t)}catch(i){}if(!r)try{r=!ee((new e)[n])}catch(i){}}return r}function Xe(e){var n=g();return n&&n[e]?n[e]:e===Oe&&Qe()?window:null}function Qe(){return!(typeof window!==u||!window)}function Ze(){return Qe()?window:Xe(Oe)}function $e(){return!(typeof document!==u||!document)}function Ye(){return $e()?document:Xe("document")}function en(){return!(typeof navigator!==u||!navigator)}function nn(){return en()?navigator:Xe(Re)}function tn(){return!(typeof history!==u||!history)}function rn(e){return e&&qe&&(e=Xe("__mockLocation"))?e:typeof location===u&&location?location:Xe(De)}function on(){return typeof console!==n?console:Xe("console")}function an(){return Xe(_e)}function un(){return!!(typeof JSON===u&&JSON||null!==Xe(je))}function ln(){return un()?JSON||Xe(je):null}function sn(){return Xe(Ue)}function cn(){return Xe(Ve)}function fn(){var e=nn();return!(!e||!e.product)&&"ReactNative"===e.product}function gn(){var e=nn();return!e||e.userAgent===He&&null!==Ke||(e=((He=e.userAgent)||"").toLowerCase(),Ke=ce(e,ze)||ce(e,Be)),Ke}function dn(e){var n=Object[f].toString.call(e),t="";return"[object Error]"===n?t="{ stack: '"+e.stack+"', message: '"+e.message+"', name: '"+e.name+"'":un()&&(t=ln().stringify(e)),n+t}function vn(){return Ge=null===Ge?en()&&!!nn().sendBeacon:Ge}function pn(){return We=null===We&&(We=typeof XDomainRequest!==undefined)&&hn()?We&&!Je(Xe("XMLHttpRequest"),"withCredentials"):We}function hn(){var e=!1;try{e=!!Xe("XMLHttpRequest")}catch(n){}return e}function mn(e){return e?'"'+e.replace(/\"/g,"")+'"':""}function yn(e,n){var t,r=on();r&&(t="log",oe(r[t=r[e]?e:t])&&r[t](n))}var Cn=(Sn.dataType="MessageData",Sn);function Sn(e,n,t,r){void 0===t&&(t=!1),this.messageId=e,this.message=(t?"AI: ":"AI (Internal): ")+e,e="",un()&&(e=ln().stringify(r)),e=(n?" message:"+mn(n):"")+(r?" props:"+mn(e):""),this.message+=e}function xn(e,n){return(e||{}).logger||new In(n)}var In=function jr(t){this.identifier="DiagnosticLogger",this.queue=[];var i=0,a={};q(jr,this,function(o){function e(e,n){return ne(e=t[e])?n:e}ne(t)&&(t={}),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,n,t,r,i){if(n=new Cn(n,t,i=void 0!==i&&i,r),o.enableDebugExceptions())throw n;t=e===c.LoggingSeverity.CRITICAL?"errorToConsole":"warnToConsole",ee(n.message)||(r=o.consoleLoggingLevel(),i?(i=+n.messageId,!a[i]&&e<=r&&(o[t](n.message),a[i]=!0)):e<=r&&o[t](n.message),o.logInternalMessage(e,n))},o.warnToConsole=function(e){yn("warn",e)},o.errorToConsole=function(e){yn("error",e)},o.resetInternalMessageCount=function(){i=0,a={}},o.logInternalMessage=function(e,n){var t,r;i>=o.maxInternalMessageLimit()||(t=!0,r="AITR_"+n.messageId,a[r]?t=!1:a[r]=!0,t&&(e<=o.telemetryLoggingLevel()&&(o.queue.push(n),i++),i===o.maxInternalMessageLimit()&&(n=new Cn(W.MessageLimitPerPVExceeded,e="Internal events throttle limit per PageView reached for this app.",!1),o.queue.push(n),o.warnToConsole(e))))}})},bn=(Tn.ParentContextKey="parent",Tn.ChildrenContextKey="childEvts",Tn);function Tn(e,i,n){var t,o=this,a=!1;o.start=Ee(),o.name=e,o.isAsync=n,o.isChildEvt=function(){return!1},oe(i)&&(a=Pe(o,"payload",function(){return!t&&oe(i)&&(t=i(),i=null),t})),o.getCtx=function(e){return e?(e===Tn.ParentContextKey||e===Tn.ChildrenContextKey?o:o.ctx||{})[e]:null},o.setCtx=function(e,n){e&&(e===Tn.ParentContextKey?(o[e]||(o.isChildEvt=function(){return!0}),o[e]=n):e===Tn.ChildrenContextKey?o[e]=n:(o.ctx=o.ctx||{})[e]=n)},o.complete=function(){var e=0,n=o.getCtx(Tn.ChildrenContextKey);if(ge(n))for(var t=0;t<n.length;t++){var r=n[t];r&&(e+=r.time)}o.time=Ee()-o.start,o.exTime=o.time-e,o.complete=function(){},!a&&oe(i)&&(o.payload=i())}}var wn=function Ur(n){this.ctx={},q(Ur,this,function(t){t.create=function(e,n,t){return new bn(e,n,t)},t.fire=function(e){e&&(e.complete(),n&&oe(n.perfEvent)&&n.perfEvent(e))},t.setCtx=function(e,n){e&&((t.ctx=t.ctx||{})[e]=n)},t.getCtx=function(e){return(t.ctx||{})[e]}})},Pn="CoreUtils.doPerf";function En(e,n,t,r,i){if(e){var o=e;if(o=oe(o.getPerfMgr)?o.getPerfMgr():o){var a,u=void 0,e=o.getCtx(Pn);try{if(u=o.create(n(),r,i))return e&&u.setCtx&&(u.setCtx(bn.ParentContextKey,e),e.getCtx&&e.setCtx&&((a=e.getCtx(bn.ChildrenContextKey))||(a=[],e.setCtx(bn.ChildrenContextKey,a)),a.push(u))),o.setCtx(Pn,u),t(u)}catch(l){u&&u.setCtx&&u.setCtx("exception",l)}finally{u&&o.fire(u),o.setCtx(Pn,e)}}}return t()}var Nn=function(i,n){var o=this,a=null,u=oe(i.processTelemetry),l=oe(i.setNextPlugin);o._hasRun=!1,o.getPlugin=function(){return i},o.getNext=function(){return a},o.setNext=function(e){a=e},o.processTelemetry=function(t,r){r=r||n;var e=i?i.identifier:"TelemetryPluginChain";En(r?r.core():null,function(){return e+":processTelemetry"},function(){if(i&&u){o._hasRun=!0;try{r.setNext(a),l&&i.setNextPlugin(a),a&&(a._hasRun=!1),i.processTelemetry(t,r)}catch(n){var e=a&&a._hasRun;a&&e||r.diagLog().throwInternal(c.LoggingSeverity.CRITICAL,W.PluginException,"Plugin ["+i.identifier+"] failed during processTelemetry - "+dn(n)),a&&!e&&a.processTelemetry(t,r)}}else a&&(o._hasRun=!0,a.processTelemetry(t,r))},function(){return{item:t}},!t.sync)}};function An(e,n){var t=[];if(e&&0<e.length)for(var r=null,i=0;i<e.length;i++){var o=e[i];o&&oe(o.processTelemetry)&&(o=new Nn(o,n),t.push(o),r&&r.setNext(o),r=o)}return 0<t.length?t[0]:null}var Ln=function Vr(e,i,t,n){var r,o,a,u,l=this,s=null;null!==n&&(e&&oe(e.getPlugin)?s=function(e,n,t){var r=[],i=!t;if(e)for(;e;){var o=e.getPlugin();!i&&o!==t||(i=!0,r.push(o)),e=e.getNext()}return i||r.push(t),An(r,n)}(e,l,n||e.getPlugin()):n?(r=l,a=e,u=!1,(o=n)&&e&&(a=[],ye(e,function(e){!u&&e!==o||(u=!0,a.push(e))})),o&&!u&&(a=a||[]).push(o),s=An(a,r)):ee(n)&&(s=An(e,l))),l.core=function(){return t},l.diagLog=function(){return xn(t,i)},l.getCfg=function(){return i},l.getExtCfg=function(e,n){var t,r;return void 0===n&&(n={}),!i||(r=i.extensionConfig)&&e&&(t=r[e]),t||n},l.getConfig=function(e,n,t){var r;return void 0===t&&(t=!1),(e=l.getExtCfg(e,null))&&!ne(e[n])?r=e[n]:i&&!ne(i[n])&&(r=i[n]),ne(r)?t:r},l.hasNext=function(){return null!=s},l.getNext=function(){return s},l.setNext=function(e){s=e},l.processNext=function(e){var n=s;n&&(s=n.getNext(),n.processTelemetry(e,l))},l.createNew=function(e,n){return new Vr((e=void 0===e?null:e)||s,i,t,n)}},kn="extensionConfig",Mn="getPlugin",Fn=(On.prototype.initialize=function(e,n,t,r){this._baseTelInit(e,n,t,r)},On);function On(){var o=this,a=!1,u=null,l=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){l=e},o.processNext=function(e,n){n?n.processNext(e):l&&oe(l.processTelemetry)&&l.processTelemetry(e,null)},o._getTelCtx=function(e){var n=e=void 0===e?null:e;return n||(e=u||new Ln(null,{},o.core),n=l&&l[Mn]?e.createNew(null,l[Mn]):e.createNew(null,l)),n},o._baseTelInit=function(e,n,t,r){e&&Ae(e,kn,[],null,ne),!r&&n&&(r=n.getProcessTelContext().getNext());var i=l;l&&l[Mn]&&(i=l[Mn]()),o.core=n,u=new Ln(r,e,n,i),a=!0}}var Rn="processTelemetry",Dn="priority",_n="setNextPlugin",jn="isInitialized";function Un(n,t){for(var e=[],r=null,i=n.getNext();i;){var o=i.getPlugin();o&&(r&&oe(r[_n])&&oe(o[Rn])&&r[_n](o),oe(o[jn])&&o[jn]()||e.push(o),r=o,i=i.getNext())}ye(e,function(e){e.initialize(n.getCfg(),n.core(),t,n.getNext())})}function Vn(e){return e.sort(function(e,n){var t=0,r=oe(n[Rn]);return oe(e[Rn])?t=r?e[Dn]-n[Dn]:1:r&&(t=-1),t})}var zn,Bn=(m(Kn,zn=Fn),Kn._staticInit=(Pe(Pr=Kn.prototype,"ChannelControls",Pr.getChannelControls),void Pe(Pr,"channelQueue",Pr.getChannelControls)),Kn);function Kn(){var l,r=zn.call(this)||this;function s(e){e&&0<e.length&&(ye(e=e.sort(function(e,n){return e.priority-n.priority}),function(e){e.priority<500&&Fe("Channel has invalid priority"+e.identifier)}),l.push(e))}return r.identifier="ChannelControllerPlugin",r.priority=500,q(Kn,r,function(a,u){a.setNextPlugin=function(e){},a.processTelemetry=function(n,t){l&&ye(l,function(e){0<e.length&&r._getTelCtx(t).createNew(e).processNext(n)})},a.getChannelControls=function(){return l},a.initialize=function(n,t,r){var e,i,o;a.isInitialized()||(u.initialize(n,t,r),e=(n||{}).channels,i=r,l=[],e&&ye(e,s),i&&(o=[],ye(i,function(e){500<e.priority&&o.push(e)}),s(o)),ye(l,function(e){return Un(new Ln(e,n,t),r)}))}}),r}var Hn="toGMTString",qn="toUTCString",Wn="cookie",Gn="expires",Jn="enabled",Xn="isCookieUseDisabled",Qn="disableCookiesUsage",Zn="_ckMgr",$n="",Yn=null,et=null,nt=null,tt=Ye(),rt={},it={};function ot(e){return!e||e.isEnabled()}function at(e,n){var t,r;return e?t=e.getCookieMgr():n&&(t=n.cookieCfg[Zn]||ut(n)),t||(r=n,n=(e||{}).logger,(e=ut[Zn]||it[Zn])||(e=ut[Zn]=ut(r,n),it[Zn]=e),t=e),t}function ut(e,i){var n,t,s=(Ae(t=(n=e||it).cookieCfg=n.cookieCfg||{},"domain",n.cookieDomain,te,ne),Ae(t,"path",n.cookiePath||"/",null,ne),ne(t[Jn])&&(e=void 0,ee(n[Xn])||(e=!n[Xn]),ee(n[Qn])||(e=!n[Qn]),t[Jn]=e),t),c=s.path||"/",f=s.domain,r=!1!==s[Jn],g={isEnabled:function(){var e=r&<(i),n=it[Zn];return e&&n&&g!==n?ot(n):e},setEnabled:function(e){r=!1!==e},set:function(e,n,t,r,i){var o,a,u,l=!1;return ot(g)&&(o={},-1!=(u=(a=Ie(n||$n)).indexOf(";"))&&(a=Ie(n.substring(0,u)),o=st(n.substring(1+u))),Ae(o,"domain",r||f,Me,ee),ne(t)||(u=gn(),!ee(o[Gn])||0<(n=Ee()+1e3*t)&&((r=new Date).setTime(n),Ae(o,Gn,ct(r,u?Hn:qn)||ct(r,u?Hn:qn)||$n,Me)),u||Ae(o,"max-age",$n+t,null,ee)),(t=rn())&&"https:"===t.protocol&&(Ae(o,"secure",null,null,ee),(et=null===et?!dt((nn()||{}).userAgent):et)&&Ae(o,"SameSite","None",null,ee)),Ae(o,"path",i||c,null,ee),(s.setCookie||gt)(e,ft(a,o)),l=!0),l},get:function(e){var n=$n;return ot(g)?(s.getCookie||function(e){var n,t=$n;return tt&&(n=tt[Wn]||$n,nt!==n&&(rt=st(n),nt=n),t=Ie(rt[e]||$n)),t})(e):n},del:function(e,n){return!!ot(g)&&g.purge(e,n)},purge:function(e,n){var t,r=!1;return lt(i)&&((t={}).path=n||"/",t[Gn]="Thu, 01 Jan 1970 00:00:01 GMT",gn()||(t["max-age"]="0"),(s.delCookie||gt)(e,ft($n,t)),r=!0),r}};return g[Zn]=g}function lt(e){if(null===Yn){Yn=!1;try{Yn=(tt||{})[Wn]!==undefined}catch(n){e&&e.throwInternal(c.LoggingSeverity.WARNING,W.CannotAccessCookie,"Cannot access document.cookie - "+Ne(n),{exception:dn(n)})}}return Yn}function st(e){var t={};return e&&e.length&&ye(Ie(e).split(";"),function(e){var n;(e=Ie(e||$n))&&(-1==(n=e.indexOf("="))?t[e]=null:t[Ie(e.substring(0,n))]=Ie(e.substring(1+n)))}),t}function ct(e,n){return oe(e[n])?e[n]():null}function ft(e,n){var t=e||$n;return le(n,function(e,n){t+="; "+e+(ne(n)?$n:"="+n)}),t}function gt(e,n){tt&&(tt[Wn]=e+"="+n)}function dt(e){return!(!ve(e)||!ce(e,"CPU iPhone OS 12")&&!ce(e,"iPad; CPU OS 12")&&!(ce(e,"Macintosh; Intel Mac OS X 10_14")&&ce(e,"Version/")&&ce(e,"Safari"))&&(!ce(e,"Macintosh; Intel Mac OS X 10_14")||!se(e,"AppleWebKit/605.1.15 (KHTML, like Gecko)"))&&!ce(e,"Chrome/5")&&!ce(e,"Chrome/6")&&(!ce(e,"UnrealEngine")||ce(e,"Chrome"))&&!ce(e,"UCBrowser/12")&&!ce(e,"UCBrowser/11"))}var vt="_notificationManager";function pt(e,n){return new wn(n)}var ht,mt=function zr(){var n,u,l,t,r,s=!1;q(zr,this,function(a){a._extensions=[],u=new Bn,a.logger=new In({loggingLevelConsole:c.LoggingSeverity.CRITICAL}),n=[],a.isInitialized=function(){return s},a.initialize=function(e,n,r,t){a.isInitialized()&&Fe("Core should not be initialized more than once"),e&&!ne(e.instrumentationKey)||Fe("Please provide instrumentation key"),l=t,a[vt]=t,a.config=e||{},a.config.enablePerfMgr&&Ae(a.config,"createPerfMgr",pt),e.extensions=ne(e.extensions)?[]:e.extensions,Le(e,kn).NotificationManager=t,r&&(a.logger=r),(t=[]).push.apply(t,y(y([],n),e.extensions));var t=Vn(t),i=[],o={};ye(t,function(e){(ne(e)||ne(e.initialize))&&Fe("Extensions must provide callback to initialize");var n=e.priority,t=e.identifier;e&&n&&(ne(o[n])?o[n]=t:r.warnToConsole("Two extensions have same priority #"+n+" - "+o[n]+", "+t)),(!n||n<u.priority)&&i.push(e)}),t.push(u),i.push(u),t=Vn(t),a._extensions=t,Un(new Ln([u],e,a),t),Un(new Ln(i,e,a),t),a._extensions=i,0===a.getTransmissionControls().length&&Fe("No channels available"),s=!0,a.releaseQueue()},a.getTransmissionControls=function(){return u.getChannelControls()},a.track=function(e){Ae(e,"iKey",a.config.instrumentationKey,null,ke),Ae(e,"time",me(new Date),null,ke),Ae(e,"ver","4.0",null,ne),a.isInitialized()?a.getProcessTelContext().processNext(e):n.push(e)},a.getProcessTelContext=function(){var e=a._extensions,n=e;return e&&0!==e.length||(n=[u]),new Ln(n,a.config,a)},a.getNotifyMgr=function(){return l||(l=v({addNotificationListener:function(e){},removeNotificationListener:function(e){},eventsSent:function(e){},eventsDiscarded:function(e,n){},eventsSendRequest:function(e,n){}}),a[vt]=l),l},a.getCookieMgr=function(){return r=r||ut(a.config,a.logger)},a.setCookieMgr=function(e){r=e},a.getPerfMgr=function(){return t||a.config&&a.config.enablePerfMgr&&oe(a.config.createPerfMgr)&&(t=a.config.createPerfMgr(a,a.getNotifyMgr())),t||null},a.setPerfMgr=function(e){t=e},a.eventCnt=function(){return n.length},a.releaseQueue=function(){0<n.length&&(ye(n,function(e){a.getProcessTelContext().processNext(e)}),n=[])}})},yt=function Br(e){this.listeners=[];var n=!!(e||{}).perfEvtsSendAll;q(Br,this,function(i){i.addNotificationListener=function(e){i.listeners.push(e)},i.removeNotificationListener=function(e){for(var n=Ce(i.listeners,e);-1<n;)i.listeners.splice(n,1),n=Ce(i.listeners,e)},i.eventsSent=function(n){ye(i.listeners,function(e){e&&e.eventsSent&&setTimeout(function(){return e.eventsSent(n)},0)})},i.eventsDiscarded=function(n,t){ye(i.listeners,function(e){e&&e.eventsDiscarded&&setTimeout(function(){return e.eventsDiscarded(n,t)},0)})},i.eventsSendRequest=function(t,r){ye(i.listeners,function(e){if(e&&e.eventsSendRequest)if(r)setTimeout(function(){return e.eventsSendRequest(t,r)},0);else try{e.eventsSendRequest(t,r)}catch(n){}})},i.perfEvent=function(t){t&&(!n&&t.isChildEvt()||ye(i.listeners,function(e){if(e&&e.perfEvent)if(t.isAsync)setTimeout(function(){return e.perfEvent(t)},0);else try{e.perfEvent(t)}catch(n){}}))}})},Ct=(m(St,ht=mt),St);function St(){var e=ht.call(this)||this,r=0;return q(St,e,function(t,i){function n(e){var n=t.getNotifyMgr();n&&n.eventsDiscarded([e],C.InvalidEvent)}t.initialize=function(e,n,t,r){i.initialize(e,n,t||new In(e),r||new yt(e))},t.track=function(e){En(t.getPerfMgr(),function(){return"AppInsightsCore:track"},function(){null===e&&(n(e),Fe("Invalid telemetry item")),function(){if(ne(e.name))throw n(e),Error("telemetry name required")}(),i.track(e)},function(){return{item:e}},!e.sync)},t.addNotificationListener=function(e){var n=t.getNotifyMgr();n&&n.addNotificationListener(e)},t.removeNotificationListener=function(e){var n=t.getNotifyMgr();n&&n.removeNotificationListener(e)},t.pollInternalLogs=function(n){var e=t.config.diagnosticLogInterval;return e&&0<e||(e=1e4),r&&t.stopPollingInternalLogs(),r=setInterval(function(){var e=t.logger?t.logger.queue:[];ye(e,function(e){e={name:n||"InternalMessageId: "+e.messageId,iKey:t.config.instrumentationKey,time:me(new Date),baseType:Cn.dataType,baseData:{message:e.message}},t.track(e)}),e.length=0},e)},t.stopPollingInternalLogs=function(){r&&(clearInterval(r),r=0)}}),e}var xt=4294967296,It=4294967295,bt=!1,Tt=123456789,wt=987654321;function Pt(e){e<0&&(e>>>=0),Tt=123456789+e&It,wt=987654321-e&It,bt=!0}function Et(){try{var e=2147483647&Ee();Pt((Math.random()*xt^e)+e)}catch(n){}}function Nt(e){return 0<e?Math.floor(At()/It*(e+1))>>>0:0}function At(e){var n=(n=sn()||cn())&&n.getRandomValues?n.getRandomValues(new Uint32Array(1))[0]&It:gn()?(bt||Et(),Lt()&It):Math.floor(xt*Math.random()|0);return e||(n>>>=0),n}function Lt(e){var n=((wt=36969*(65535&wt)+(wt>>16)&It)<<16)+(65535&(Tt=18e3*(65535&Tt)+(Tt>>16)&It))>>>0&It|0;return e||(n>>>=0),n}var kt="visibilitychange",Mt="pagehide",Ft="pageshow";function Ot(e,n){var t=!1,r=Ze();return r&&(t=ae(r,e,n),t=ae(r.body,e,n)||t),(r=Ye())&&ae(r,e,n)||t}function Rt(e,n,t){var r,i=!1;return n&&e&&ge(e)&&(r=[],ye(e,function(e){ve(e)&&(t&&-1!==Ce(t,e)?r.push(e):i=Ot(e,n)||i)}),!i&&0<r.length&&(i=Rt(r,n))),i}function Dt(e,n){return Rt(["beforeunload","unload","pagehide"],e,n)}function _t(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(zt,function(e){var n=0|Nt(15);return("x"===e?n:3&n|8).toString(16)})}function jt(){var e=an();return e&&e.now?e.now():Ee()}function Ut(e){void 0===e&&(e=22);for(var n=At()>>>0,t=0,r="";r.length<e;)r+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"[0|63&n]||"",n>>>=6,5==++t&&(n=(At()<<2&4294967295|3&n)>>>0,t=0);return r}function Vt(){for(var e,n=["0","1","2","3","4","5","6","7","8","9","a","b","c","d","e","f"],t="",r=0;r<4;r++)t+=n[15&(e=At())]+n[e>>4&15]+n[e>>8&15]+n[e>>12&15]+n[e>>16&15]+n[e>>20&15]+n[e>>24&15]+n[e>>28&15];var i=n[8+(3&At())|0];return t.substr(0,8)+t.substr(9,4)+"4"+t.substr(13,3)+i+t.substr(16,3)+t.substr(19,12)}var zt=/[xy]/g,Bt={Attach:ae,AttachEvent:ae,Detach:ue,DetachEvent:ue},Kt={NotSet:0,Pii_DistinguishedName:1,Pii_GenericData:2,Pii_IPV4Address:3,Pii_IPv6Address:4,Pii_MailSubject:5,Pii_PhoneNumber:6,Pii_QueryString:7,Pii_SipAddress:8,Pii_SmtpAddress:9,Pii_Identity:10,Pii_Uri:11,Pii_Fqdn:12,Pii_IPV4AddressLegacy:13,CustomerContent_GenericContent:32},Ht={Normal:1,CostDeferred:2,RealTime:3,Immediate:4},qt={Unspecified:0,String:1,Int32:2,UInt32:3,Int64:4,UInt64:5,Double:6,Bool:7,Guid:8,DateTime:9},Wt=p(p({},W),{AuthHandShakeError:501,AuthRedirectFail:502,BrowserCannotReadLocalStorage:503,BrowserCannotWriteLocalStorage:504,BrowserDoesNotSupportLocalStorage:505,CannotParseBiBlobValue:506,CannotParseDataAttribute:507,CVPluginNotAvailable:508,DroppedEvent:509,ErrorParsingAISessionCookie:510,ErrorProvidedChannels:511,FailedToGetCookies:512,FailedToInitializeCorrelationVector:513,FailedToInitializeSDK:514,InvalidContentBlob:515,InvalidCorrelationValue:516,SessionRenewalDateIsZero:517,SendPostOnCompleteFailure:518,PostResponseHandler:519,SDKNotInitialized:520}),Gt="3.1.9",Jt="1DS-Web-JS-"+Gt,Xt="withCredentials",Qt=((Dr={})[0]=qt.Unspecified,Dr[2]=qt.Double,Dr[1]=qt.String,Dr[3]=qt.Bool,Dr[4098]=qt.Double,Dr[4097]=qt.String,Dr[4099]=qt.Bool,Dr),Zt=null,$t=!!Ye(),Yt=!!Ze();function er(e){return!(""===e||ne(e))}function nr(e){if(e){var n=e.indexOf("-");if(-1<n)return e.substring(0,n)}return""}function tr(){return Zt=null===Zt?!(ee(Uint8Array)||!ee(e=nn())&&e.userAgent&&(~(e=e.userAgent.toLowerCase()).indexOf("safari")||~e.indexOf("firefox"))&&!~e.indexOf("chrome")||fn()):Zt;var e}function rr(e){return!!(e&&pe(e)&&Ht.Normal<=e&&e<=Ht.Immediate)}function ir(e,n,t){if(!n&&!er(n)||"string"!=typeof e)return null;if("string"==(e=typeof n)||"number"==e||"boolean"==e||ge(n))n={value:n};else if("object"!=e||n.hasOwnProperty("value")){if(ne(n.value)||""===n.value||!ve(n.value)&&!pe(n.value)&&!he(n.value)&&!ge(n.value))return null}else n={value:t?JSON.stringify(n):n};if(ge(n.value)&&!pr(n.value))return null;if(!ne(n.kind)){if(ge(n.value)||!vr(n.kind))return null;n.value=n.value.toString()}return n}function or(e,n,t){var r=-1;return ee(e)||(0<n&&(32===n?r=8192:n<=13&&(r=n<<5)),0<=t&&t<=9?(-1===r&&(r=0),r|=t):(e=Qt[mr(e)]||-1,-1!==r&&-1!==e?r|=e:e===qt.Double&&(r=e))),r}function ar(){at(null).setEnabled(!1)}function ur(e,n,t){lt(null)&&at(null).set(e,n,86400*t,null,"/")}function lr(e){lt(null)&&at(null).del(e)}function sr(e){return lt(null)?cr(at(null),e):""}function cr(e,n,t){var r;return void 0===t&&(t=!0),e&&(r=e.get(n),t&&r&&decodeURIComponent&&(r=decodeURIComponent(r))),r||""}function fr(e){void 0===e&&(e="D");var n=_t();return"B"===e?n="{"+n+"}":"P"===e?n="("+n+")":"N"===e&&(n=n.replace(/-/g,"")),n}function gr(e,n,t,r,i){var o={},a=!1,u=0,l=arguments.length,s=Object[f],c=arguments;for("[object Boolean]"===s.toString.call(c[0])&&(a=c[0],u++);u<l;u++)le(c[u],function(t,e){a&&e&&ie(e)?ge(e)?(o[t]=o[t]||[],ye(e,function(e,n){e&&ie(e)?o[t][n]=gr(!0,o[t][n],e):o[t][n]=e})):o[t]=gr(!0,o[t],e):o[t]=e});return o}var dr=jt;function vr(e){return e===Kt.NotSet||e>Kt.NotSet&&e<=Kt.Pii_IPV4AddressLegacy||e===Kt.CustomerContent_GenericContent}function pr(e){return 0<e.length}function hr(e,n){e.timings=e.timings||{},e.timings.processTelemetryStart=e.timings.processTelemetryStart||{},e.timings.processTelemetryStart[n]=dr()}function mr(e){var n,t=0;return null!==e&&e!==undefined&&("string"==(n=typeof e)?t=1:"number"==n?t=2:"boolean"==n?t=3:n===u&&(t=4,ge(e)?(t=4096,0<e.length&&(t|=mr(e[0]))):re(e,"value")&&(t=8192|mr(e.value)))),t}var yr,Cr={Version:Gt,FullVersionString:Jt,strUndefined:n,strObject:u,Undefined:n,arrForEach:ye,arrIndexOf:Ce,arrMap:Se,arrReduce:xe,objKeys:we,toISOString:me,isReactNative:fn,isString:ve,isNumber:pe,isBoolean:he,isFunction:oe,isArray:ge,isObject:ie,strTrim:Ie,isDocumentObjectAvailable:$t,isWindowObjectAvailable:Yt,isValueAssigned:er,getTenantId:nr,isBeaconsSupported:vn,isUint8ArrayAvailable:tr,isLatency:rr,sanitizeProperty:ir,getISOString:me,useXDomainRequest:pn,getCommonSchemaMetaData:or,cookieAvailable:lt,disallowsSameSiteNone:dt,setCookie:ur,deleteCookie:lr,getCookie:sr,createGuid:fr,extend:gr,getTime:dr,isValueKind:vr,isArrayValid:pr,objDefineAccessors:Pe,addPageUnloadEventListener:Dt,setProcessTelemetryTimings:hr,addEventHandler:Ot,getFieldValueType:mr,strEndsWith:se,objForEachKey:le},Sr={_canUseCookies:undefined,isTypeof:Y,isUndefined:ee,isNullOrUndefined:ne,hasOwnProperty:re,isFunction:oe,isObject:ie,isDate:fe,isArray:ge,isError:de,isString:ve,isNumber:pe,isBoolean:he,toISOString:me,arrForEach:ye,arrIndexOf:Ce,arrMap:Se,arrReduce:xe,strTrim:Ie,objCreate:v,objKeys:we,objDefineAccessors:Pe,addEventHandler:Ot,dateNow:Ee,isIE:gn,disableCookies:ar,newGuid:_t,perfNow:jt,newId:Ut,randomValue:Nt,random32:At,mwcRandomSeed:function(e){e?Pt(e):Et()},mwcRandom32:Lt,generateW3CId:Vt},xr="version",Ir="properties";function br(){var e=yr.call(this)||this;return e.pluginVersionStringArr=[],e.pluginVersionString="",q(br,e,function(u,l){u.logger&&u.logger.queue||(u.logger=new In({loggingLevelConsole:c.LoggingSeverity.CRITICAL})),u.initialize=function(r,i,o,a){En(u,function(){return"AppInsightsCore.initialize"},function(){if(r){if(r.endpointUrl||(r.endpointUrl="https://browser.events.data.microsoft.com/OneCollector/1.0/"),(e=r.propertyStorageOverride)&&(!e.getProperty||!e.setProperty))throw Error("Invalid property storage override passed.");r.channels&&ye(r.channels,function(e){e&&ye(e,function(e){e.identifier&&e.version&&(e=e.identifier+"="+e.version,u.pluginVersionStringArr.push(e))})})}u.getWParam=function(){return"undefined"!=typeof document?0:-1},i&&ye(i,function(e){e&&e.identifier&&e.version&&(e=e.identifier+"="+e.version,u.pluginVersionStringArr.push(e))}),u.pluginVersionString=u.pluginVersionStringArr.join(";");try{l.initialize(r,i,o,a),u.pollInternalLogs("InternalLog")}catch(t){var e,n=u.logger;~(e=dn(t)).indexOf("channels")&&(e+="\n - Channels must be provided through config.channels only!"),n.throwInternal(c.LoggingSeverity.CRITICAL,Wt.FailedToInitializeSDK,"SDK Initialization Failed - no telemetry will be sent: "+e)}},function(){return{config:r,extensions:i,logger:o,notificationManager:a}})},u.track=function(t){En(u,function(){return"AppInsightsCore.track"},function(){var e,n=t;n&&(n.timings=n.timings||{},n.timings.trackStart=dr(),rr(n.latency)||(n.latency=Ht.Normal),(e=n.ext=n.ext||{}).sdk=e.sdk||{},e.sdk.ver=Jt,(e=n.baseData=n.baseData||{})[Ir]||(e[Ir]={}),(e=e[Ir])[xr]||(e[xr]=""),""!==u.pluginVersionString&&(e[xr]=u.pluginVersionString)),l.track(n)},function(){return{item:t}},!t.sync)}}),e}var Tr,e=(m(br,yr=Ct),br);function wr(){var e=Tr.call(this)||this;return q(wr,e,function(o,a){o.initialize=function(e,n,t,r){e&&!e.endpointUrl&&(e.endpointUrl="https://browser.events.data.microsoft.com/OneCollector/1.0/"),o.getWParam=function(){return $t?0:-1};try{a.initialize(e,n,t,r)}catch(i){o.logger.throwInternal(c.LoggingSeverity.CRITICAL,Wt.FailedToInitializeSDK,"Initialization Failed: "+dn(i)+"\n - Note: Channels must be provided through config.channels only")}},o.track=function(e){var n=e;n&&((e=n.ext=n.ext||{}).sdk=e.sdk||{},e.sdk.ver=Jt),a.track(n)}}),e}var Pr=(m(wr,Tr=mt),wr),Er=oe;function Nr(n){var a=0,u=null,e=[];function i(t,r,i,o){e.push(function(){var e;try{(e=1===a?Er(t)?t(u):u:Er(r)?r(u):u)instanceof Nr?e.then(i,o):(2!==a||Er(r)?i:o)(e)}catch(n){return void o(n)}}),0!==a&&l()}function l(){var r;0<e.length&&(r=e.slice(),e=[],setTimeout(function(){for(var e=0,n=r.length;e<n;++e)try{r[e]()}catch(t){}},0))}function t(e){0===a&&(u=e,a=1,l())}function r(e){0===a&&(u=e,a=2,l())}q(Nr,this,function(n){n.then=function(t,r){return new Nr(function(e,n){i(t,r,e,n)})},n["catch"]=function(e){return n.then(null,e)}}),function(){if(!Er(n))throw new TypeError("ESPromise: resolvedFunc argument is not a Function");try{n(t,r)}catch(e){r(e)}}()}var Ar=(Nr.resolve=function(r){return r instanceof Nr?r:r&&Er(r.then)?new Nr(function(e,n){try{r.then(e,n)}catch(t){n(t)}}):new Nr(function(e){e(r)})},Nr.reject=function(t){return new Nr(function(e,n){n(t)})},Nr.all=function(u){if(u&&u.length)return new Nr(function(r,e){try{for(var i=[],o=0,n=0;n<u.length;n++){var t=u[n];t&&Er(t.then)?(o++,t.then(function(n,t){return function(e){n[t]=e,0==--o&&r(i)}}(i,n),e)):i[n]=t}0===o&&setTimeout(function(){r(i)},0)}catch(a){e(a)}})},Nr.race=function(i){return new Nr(function(n,t){if(i&&i.length)try{for(var r=0;r<i.length;r++)!function(){var e=i[r];e&&Er(e.then)?e.then(n,t):setTimeout(function(){n(e)},0)}()}catch(e){t(e)}})},Nr),Lr=0,kr=[],Mr=[],Fr=[];function Or(){return(new Date).getTime()}function Rr(e,n){var h=0,m=(e||"<unnamed>")+"."+Lr;function y(e){var n=g();n&&n.QUnit&&console&&console.log("ESPromiseScheduler["+m+"] "+e)}function C(e){n&&n.warnToConsole("ESPromiseScheduler["+m+"] "+e)}Lr++,q(Rr,this,function(e){var d=null,v=0;function p(e,n){for(var t=0;t<e.length;t++)if(e[t].id===n)return e.splice(t,1)[0];return null}e.scheduleEvent=function(t,e,u){var i=m+"."+v;v++,e&&(i+="-("+e+")");var o,a,n,r=i+"{"+h+"}";return h++,(e={evt:null,tm:Or(),id:r,isRunning:!1,isAborted:!1}).evt=d?(o=e,a=d,n=new Ar(function(n,t){var e=Or()-a.tm,r=a.id;y("["+i+"] is waiting for ["+r+":"+e+" ms] to complete before starting -- ["+Mr.length+"] waiting and ["+kr.length+"] running"),o.abort=function(e){o.abort=null,p(Mr,i),o.isAborted=!0,t(Error(e))},a.evt.then(function(e){p(Mr,i),g(o).then(n,t)},function(e){p(Mr,i),g(o).then(n,t)})}),Mr.push(o),n):g(e),(d=e).evt._schId=r,e.evt;function l(e){for(var n=Or(),t=n-6e5,r=e.length,i=0;i<r;){var o,a=e[i];a&&a.tm<t?(o=null,a.abort?(o="Aborting ["+a.id+"] due to Excessive runtime ("+(n-a.tm)+" ms)",a.abort(o)):o="Removing ["+a.id+"] due to Excessive runtime ("+(n-a.tm)+" ms)",C(o),e.splice(i,1),r--):i++}}function s(e,n){var t,r=!1,i=p(kr,e);i||(i=p(Fr,e),r=!0),i?(i.to&&(clearTimeout(i.to),i.to=null),t=Or()-i.tm,n?r?C("Timed out event ["+e+"] finally complete -- "+t+" ms"):y("Promise ["+e+"] Complete -- "+t+" ms"):(Fr.push(i),C("Event ["+e+"] Timed out and removed -- "+t+" ms"))):y("Failed to remove ["+e+"] from running queue"),d&&d.id===e&&(d=null),l(kr),l(Mr),l(Fr)}function c(n,t){return function(e){return s(n,!0),t&&t(e),e}}function f(r,o){var a=r.id;return new Ar(function(n,t){y("Event ["+a+"] Starting -- waited for "+(r.wTm||"--")+" ms"),r.isRunning=!0,r.abort=function(e){r.abort=null,r.isAborted=!0,s(a,!1),t(Error(e))};var e=o(a);e instanceof Ar?(u&&(r.to=setTimeout(function(){s(a,!1),t(Error("Timed out after ["+u+"] ms"))},u)),function i(n,e,t,r){e.then(function(e){return e instanceof Ar?(y("Event ["+n+"] returned a promise -- waiting"),i(n,e,t,r),e):c(n,t)(e)},c(n,r))}(a,e,function(e){y("Event ["+a+"] Resolving after "+(Or()-r.tm)+" ms"),n(e)},t)):(y("Promise ["+a+"] Auto completed as the start action did not return a promise"),n())})}function g(e){var n=Or();return e.wTm=n-e.tm,e.tm=n,e.isAborted?Ar.reject(Error("["+i+"] was aborted")):(kr.push(e),f(e,t))}}})}var p=(Rr.incomplete=function(){return kr},Rr.waitingToStart=function(){return Mr},Rr),Dr=(_r.getFieldType=mr,_r);function _r(e){var l=this,o={},a=[],u=[];function s(e,n){var t=o[e];if(!(i=t?t[n]:i)&&null!==i){if(ve(e)&&ve(n))if(0<u.length){for(var r=0;r<u.length;r++)if(u[r].handleField(e,n)){i={canHandle:!0,fieldHandler:u[r]};break}}else 0===a.length&&(i={canHandle:!0});if(!i&&null!==i)for(var i=null,r=0;r<a.length;r++)if(a[r].handleField(e,n)){i={canHandle:!0,handler:a[r],fieldHandler:null};break}(t=t||(o[e]={}))[n]=i}return i}function c(e,n,t,r,i,o){if(e.handler)return e.handler.property(n,t,i,o);if(!ne(i.kind)){if(4096==(4096&r)||!vr(i.kind))return null;i.value=i.value.toString()}return function u(r,i,o,e,n){var t,a;return n&&r&&(t=r.getSanitizer(i,o,e,n.kind,n.propertyType))&&(4===e?(a={},le(n.value,function(e,n){var t;er(n)&&(t=f(0,0,n),(t=u(r,i+"."+o,e,mr(n),t))&&(a[e]=t.value))}),n.value=a):n=t.call(l,e={path:i,name:o,type:e,prop:n,sanitizer:l})),n}(e.fieldHandler,n,t,r,i)}function f(e,n,t){return er(t)?{value:t}:null}e&&u.push(e),l.addSanitizer=function(e){e&&(a.push(e),o={})},l.addFieldSanitizer=function(e){e&&(u.push(e),o={})},l.handleField=function(e,n){return!!(n=s(e,n))&&n.canHandle},l.value=function(e,n,t,r){var i=s(e,n);if(i&&i.canHandle){if(!i||!i.canHandle)return null;if(i.handler)return i.handler.value(e,n,t,r);if(!ve(n)||ne(t)||""===t)return null;var o=null,a=mr(t);if(8192==(8192&a)){var u=-8193&a;if(!er((o=t).value)||1!=u&&2!=u&&3!=u&&4096!=(4096&u))return null}else 1===a||2===a||3===a||4096==(4096&a)?o=f(0,0,t):4===a&&(o=f(0,0,r?JSON.stringify(t):t));if(o)return c(i,e,n,a,o,r)}return null},l.property=function(e,n,t,r){var i=s(e,n);if(!i||!i.canHandle)return null;if(!ve(n)||ne(t)||!er(t.value))return null;var o=mr(t.value);return 0===o?null:c(i,e,n,o,t,r)}}c.AppInsightsCore=e,c.BaseCore=Pr,c.BaseTelemetryPlugin=Fn,c.CoreUtils=Sr,c.DiagnosticLogger=In,c.ESPromise=Ar,c.ESPromiseScheduler=p,c.EventHelper=Bt,c.EventLatency=Ht,c.EventPersistence={Normal:1,Critical:2},c.EventPropertyType=qt,c.EventsDiscardedReason=C,c.FullVersionString=Jt,c.InternalAppInsightsCore=Ct,c.InternalBaseCore=mt,c.MinChannelPriorty=100,c.NotificationManager=yt,c.PerfEvent=bn,c.PerfManager=wn,c.ProcessTelemetryContext=Ln,c.TraceLevel={NONE:0,ERROR:1,WARNING:2,INFORMATION:3},c.Undefined=n,c.Utils=Cr,c.ValueKind=Kt,c.ValueSanitizer=Dr,c.Version=Gt,c._ExtendedInternalMessageId=Wt,c._InternalLogMessage=Cn,c._InternalMessageId=W,c.addEventHandler=Ot,c.addEventListeners=Rt,c.addPageHideEventListener=function Kr(t,e){var n=!1;return e&&-1!==Ce(e,Mt)||(n=Ot(Mt,t)),!(n=(!e||-1===Ce(e,kt))&&Ot(kt,function(e){var n=Ye();t&&n&&"hidden"===n.visibilityState&&t(e)})||n)&&e?Kr(t):n},c.addPageShowEventListener=function Hr(t,e){var n=!1;return e&&-1!==Ce(e,Ft)||(n=Ot(Ft,t)),!(n=(!e||-1===Ce(e,kt))&&Ot(kt,function(e){var n=Ye();t&&n&&"visible"===n.visibilityState&&t(e)})||n)&&e?Hr(t):n},c.addPageUnloadEventListener=Dt,c.areCookiesSupported=lt,c.arrForEach=ye,c.arrIndexOf=Ce,c.arrMap=Se,c.arrReduce=xe,c.attachEvent=ae,c.cookieAvailable=lt,c.createCookieMgr=ut,c.createGuid=fr,c.dateNow=Ee,c.deleteCookie=lr,c.detachEvent=ue,c.disableCookies=ar,c.disallowsSameSiteNone=dt,c.doPerf=En,c.dumpObj=dn,c.extend=gr,c.generateW3CId=Vt,c.getCommonSchemaMetaData=or,c.getConsole=on,c.getCookie=sr,c.getCookieValue=cr,c.getCrypto=sn,c.getDocument=Ye,c.getExceptionName=Ne,c.getFieldValueType=mr,c.getGlobal=g,c.getGlobalInst=Xe,c.getHistory=function(){return tn()?history:Xe("history")},c.getIEVersion=function(e){var n;return ce(e=((e=(e=void 0===e?null:e)?e:(n=nn()||{})?(n.userAgent||"").toLowerCase():"")||"").toLowerCase(),ze)?parseInt(e.split(ze)[1]):ce(e,Be)&&(e=parseInt(e.split(Be)[1]))?e+4:null},c.getISOString=me,c.getJSON=ln,c.getLocation=rn,c.getMsCrypto=cn,c.getNavigator=nn,c.getPerformance=an,c.getSetValue=Le,c.getTenantId=nr,c.getTime=dr,c.getWindow=Ze,c.hasDocument=$e,c.hasHistory=tn,c.hasJSON=un,c.hasNavigator=en,c.hasOwnProperty=re,c.hasWindow=Qe,c.isArray=ge,c.isArrayValid=pr,c.isBeaconsSupported=vn,c.isBoolean=he,c.isChromium=function(){return!!Xe("chrome")},c.isDate=fe,c.isDocumentObjectAvailable=$t,c.isError=de,c.isFetchSupported=function(e){var n=!1;try{var n=!!Xe("fetch"),t=Xe("Request");n&&e&&t&&(n=Je(t,"keepalive"))}catch(r){}return n},c.isFunction=oe,c.isIE=gn,c.isLatency=rr,c.isNotTruthy=ke,c.isNullOrUndefined=ne,c.isNumber=pe,c.isObject=ie,c.isReactNative=fn,c.isString=ve,c.isTruthy=Me,c.isTypeof=Y,c.isUint8ArrayAvailable=tr,c.isUndefined=ee,c.isValueAssigned=er,c.isValueKind=vr,c.isWindowObjectAvailable=Yt,c.isXhrSupported=hn,c.newGuid=_t,c.newId=Ut,c.normalizeJsName=function(e){var n=e,t=/([^\w\d_$])/g;return t.test(e)?e.replace(t,"_"):n},c.objCreate=v,c.objDefineAccessors=Pe,c.objForEachKey=le,c.objKeys=we,c.openXhr=function(e,n,t,r,i){function o(e,n,t){try{e[n]=t}catch(r){}}void 0===r&&(r=!1),void 0===i&&(i=!1);var a=new XMLHttpRequest;return r&&o(a,"Microsoft_ApplicationInsights_BypassAjaxInstrumentation",r),t&&o(a,Xt,t),a.open(e,n,!i),t&&o(a,Xt,t),a},c.optimizeObject=function(e){return e&&t(r?r({},e):e)},c.perfNow=jt,c.proxyAssign=function(r,i,o){if(r&&i&&r!==i&&ie(r)&&ie(i))for(var e in i)!function(n){var e,t;ve(n)&&(oe(e=i[n])?o&&!o(n,!0,i,r)||(r[n]=(t=n,function(){return i[t].apply(i,arguments)})):o&&!o(n,!1,i,r)||(re(r,n)&&delete r[n],Pe(r,n,function(){return i[n]},function(e){i[n]=e})||(r[n]=e)))}(e);return r},c.random32=At,c.randomValue=Nt,c.safeGetCookieMgr=at,c.safeGetLogger=xn,c.sanitizeProperty=ir,c.setCookie=ur,c.setEnableEnvMocks=function(e){qe=e},c.setProcessTelemetryTimings=hr,c.setValue=Ae,c.strContains=ce,c.strEndsWith=se,c.strExtensionConfig=kn,c.strFunction=a,c.strIKey="iKey",c.strObject=u,c.strPrototype=f,c.strStartsWith=function(e,n){var t=!1;if(e&&n){var r=n.length;if(e===n)return!0;if(e.length>=r){for(var i=0;i<r;i++)if(e[i]!==n[i])return!1;t=!0}}return t},c.strTrim=Ie,c.strUndefined=n,c.throwError=Fe,c.toISOString=me,c.useXDomainRequest=pn,function(e,n,t){var r=Object.defineProperty;if(r)try{return r(e,n,t)}catch(i){}typeof t.value!==undefined&&(e[n]=t.value)}(c,"__esModule",{value:!0})}(this.oneDS=this.oneDS||{}); | ||
!function(c){"use strict";var u="function",a="object",n="undefined",h="prototype",o="hasOwnProperty",r=Object,l=r[h],m=r.assign,y=r.create,e=r.defineProperty,C=l[o],S=null;function x(e){return void 0===e&&(e=!0),S&&e||(typeof globalThis!==n&&globalThis&&(S=globalThis),typeof self!==n&&self&&(S=self),typeof window!==n&&window&&(S=window),typeof global!==n&&global&&(S=global)),S}function I(e){throw new TypeError(e)}function b(e){if(y)return y(e);if(null==e)return{};var n=typeof e;function t(){}return n!==a&&n!==u&&I("Object prototype may only be an Object:"+e),t[h]=e,new t}(x()||{}).Symbol,(x()||{}).Reflect;var T=m||function(e){for(var n,t=1,r=arguments.length;t<r;t++)for(var i in n=arguments[t])l[o].call(n,i)&&(e[i]=n[i]);return e},w=function(e,n){return(w=r.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var t in n)n[o](t)&&(e[t]=n[t])})(e,n)};function P(e,n){function t(){this.constructor=e}typeof n!==u&&null!==n&&I("Class extends value "+n+" is not a constructor or null"),w(e,n),e[h]=null===n?b(n):(t[h]=n[h],new t)}function E(e,n){for(var t=0,r=n.length,i=e.length;t<r;t++,i++)e[i]=n[t];return e}var N={Unknown:0,NonRetryableStatus:1,InvalidEvent:2,SizeLimitExceeded:3,KillSwitch:4,QueueFull:5},A="constructor",L="prototype",M="function",k="_dynInstFuncs",F="_isDynProxy",O="_dynClass",R="_dynInstChk",D=R,_="_dfOpts",j="_unknown_",U="__proto__",V="useBaseInst",z="setInstFuncs",B=Object,K=B.getPrototypeOf,H=0;function q(e,n){return e&&B[L].hasOwnProperty.call(e,n)}function W(e){return e&&(e===B[L]||e===Array[L])}function G(e){return W(e)||e===Function[L]}function J(e){if(e){if(K)return K(e);e=e[U]||e[L]||(e[A]?e[A][L]:null);if(e)return e}return null}function X(e,n){var t=[],r=B.getOwnPropertyNames;if(r)t=r(e);else for(var i in e)"string"==typeof i&&q(e,i)&&t.push(i);if(t&&0<t.length)for(var o=0;o<t.length;o++)n(t[o])}function Q(e,n,t){return n!==A&&typeof e[n]===M&&(t||q(e,n))}function Z(e){throw new TypeError("DynamicProto: "+e)}function $(e,n){for(var t=e.length-1;0<=t;t--)if(e[t]===n)return 1}function Y(e,n){return q(e,L)?e.name||n||j:((e||{})[A]||{}).name||n||j}function ee(e,r,n,t){q(e,L)||Z("theClass is an invalid class definition.");var c,i,o,a,f,g,u=e[L],l=(function(e){if(K)for(var n=[],t=J(r);t&&!G(t)&&!$(n,t);){if(t===e)return 1;n.push(t),t=J(t)}}(u)||Z("["+Y(e)+"] is not in class hierarchy of ["+Y(r)+"]"),null),e=(q(u,O)?l=u[O]:(l="_dynCls$"+Y(e,"_")+"$"+H,H++,u[O]=l),ee[_]),s=!!e[V],d=(s&&t&&t[V]!==undefined&&(s=!!t[V]),i={},X(c=r,function(e){!i[e]&&Q(c,e,!1)&&(i[e]=c[e])}),i),s=(n(r,function(e,n,t,o){function r(e,n,t){var r,i=n[t];return i[F]&&o&&!1!==(r=e[k]||{})[D]&&(i=(r[n[O]]||{})[t]||i),function(){return i.apply(e,arguments)}}for(var i={},a=(X(t,function(e){i[e]=r(n,t,e)}),J(e)),u=[];a&&!G(a)&&!$(u,a);)X(a,function(e){!i[e]&&Q(a,e,!K)&&(i[e]=r(n,a,e))}),u.push(a),a=J(a);return i}(u,r,d,s)),!!K&&!!e[z]);o=u,n=l,a=r,f=d,e=!1!==(s=s&&t?!!t[z]:s),W(o)||(u=a[k]=a[k]||{},g=u[n]=u[n]||{},!1!==u[D]&&(u[D]=!!e),X(a,function(e){var t,r,i;Q(a,e,!1)&&a[e]!==f[e]&&(g[e]=a[e],delete a[e],q(o,e)&&(!o[e]||o[e][F])||(o[e]=(t=o,r=e,(i=function(){var e,n;return(function(e,n,t,c){var r=null;if(e&&q(t,O)){var i=e[k]||{};if((r=(i[t[O]]||{})[n])||Z("Missing ["+n+"] "+M),!r[R]&&!1!==i[D]){for(var o=!q(e,n),a=J(e),u=[];o&&a&&!G(a)&&!$(u,a);){var l=a[n];if(l){o=l===c;break}u.push(a),a=J(a)}try{o&&(e[n]=r),r[R]=1}catch(s){i[D]=!1}}}return r}(this,r,t,i)||(typeof(n=(n=t[e=r])===i?J(t)[e]:n)!==M&&Z("["+e+"] is not a "+M),n)).apply(this,arguments)})[F]=1,i)))}))}ee[_]={setInstFuncs:!0,useBaseInst:!0},c.LoggingSeverity=void 0,(Vn=c.LoggingSeverity||(c.LoggingSeverity={}))[Vn.CRITICAL=1]="CRITICAL",Vn[Vn.WARNING=2]="WARNING";var ne={BrowserDoesNotSupportLocalStorage:0,BrowserCannotReadLocalStorage:1,BrowserCannotReadSessionStorage:2,BrowserCannotWriteLocalStorage:3,BrowserCannotWriteSessionStorage:4,BrowserFailedRemovalFromLocalStorage:5,BrowserFailedRemovalFromSessionStorage:6,CannotSendEmptyTelemetry:7,ClientPerformanceMathError:8,ErrorParsingAISessionCookie:9,ErrorPVCalc:10,ExceptionWhileLoggingError:11,FailedAddingTelemetryToBuffer:12,FailedMonitorAjaxAbort:13,FailedMonitorAjaxDur:14,FailedMonitorAjaxOpen:15,FailedMonitorAjaxRSC:16,FailedMonitorAjaxSend:17,FailedMonitorAjaxGetCorrelationHeader:18,FailedToAddHandlerForOnBeforeUnload:19,FailedToSendQueuedTelemetry:20,FailedToReportDataLoss:21,FlushFailed:22,MessageLimitPerPVExceeded:23,MissingRequiredFieldSpecification:24,NavigationTimingNotSupported:25,OnError:26,SessionRenewalDateIsZero:27,SenderNotInitialized:28,StartTrackEventFailed:29,StopTrackEventFailed:30,StartTrackFailed:31,StopTrackFailed:32,TelemetrySampledAndNotSent:33,TrackEventFailed:34,TrackExceptionFailed:35,TrackMetricFailed:36,TrackPVFailed:37,TrackPVFailedCalc:38,TrackTraceFailed:39,TransmissionFailed:40,FailedToSetStorageBuffer:41,FailedToRestoreStorageBuffer:42,InvalidBackendResponse:43,FailedToFixDepricatedValues:44,InvalidDurationValue:45,TelemetryEnvelopeInvalid:46,CreateEnvelopeError:47,CannotSerializeObject:48,CannotSerializeObjectNonSerializable:49,CircularReferenceDetected:50,ClearAuthContextFailed:51,ExceptionTruncated:52,IllegalCharsInName:53,ItemNotInArray:54,MaxAjaxPerPVExceeded:55,MessageTruncated:56,NameTooLong:57,SampleRateOutOfRange:58,SetAuthContextFailed:59,SetAuthContextFailedAccountName:60,StringValueTooLong:61,StartCalledMoreThanOnce:62,StopCalledWithoutStart:63,TelemetryInitializerFailed:64,TrackArgumentsNotSpecified:65,UrlTooLong:66,SessionStorageBufferFull:67,CannotAccessCookie:68,IdTooLong:69,InvalidEvent:70,FailedMonitorAjaxSetRequestHeader:71,SendBrowserInfoOnUserInit:72,PluginException:73,NotificationException:74,SnippetScriptLoadFailure:99,InvalidInstrumentationKey:100,CannotParseAiBlobValue:101,InvalidContentBlob:102,TrackPageActionEventFailed:103,FailedAddingCustomDefinedRequestContext:104,InMemoryStorageBufferFull:105},te="attachEvent",re="addEventListener",ie="detachEvent",oe="removeEventListener",ae="toISOString",ue=e;function le(e){return l.toString.call(e)}function se(e,n){return typeof e===n}function d(e){return e===undefined||typeof e===n}function v(e){return null===e||d(e)}function ce(e){return!v(e)}function fe(e,n){return e&&C.call(e,n)}function ge(e){return typeof e===a}function f(e){return typeof e===u}function de(e,n,t,r){void 0===r&&(r=!1);var i=!1;if(!v(e))try{v(e[re])?v(e[te])||(e[te]("on"+n,t),i=!0):(e[re](n,t,r),i=!0)}catch(o){}return i}function ve(e,n,t,r){if(void 0===r&&(r=!1),!v(e))try{v(e[oe])?v(e[ie])||e[ie]("on"+n,t):e[oe](n,t,r)}catch(i){}}function pe(e,n){if(e)for(var t in e)C.call(e,t)&&n.call(e,t,e[t])}function he(e,n){if(e&&n){var t=n.length,r=e.length;if(e===n)return!0;if(t<=r){for(var i=r-1,o=t-1;0<=o;o--){if(e[i]!=n[o])return!1;i--}return!0}}return!1}function t(e,n){return!(!e||!n||!~e.indexOf(n))}function me(e){return"[object Date]"===le(e)}function ye(e){return"[object Array]"===le(e)}function Ce(e){return"[object Error]"===le(e)}function Se(e){return"string"==typeof e}function xe(e){return"number"==typeof e}function Ie(e){return"boolean"==typeof e}function be(e){var n;if(e)return e[ae]?e[ae]():me(e)?(n=function(e){e=""+e;return 1===e.length?"0"+e:e},e.getUTCFullYear()+"-"+n(1+e.getUTCMonth())+"-"+n(e.getUTCDate())+"T"+n(e.getUTCHours())+":"+n(e.getUTCMinutes())+":"+n(e.getUTCSeconds())+"."+(""+(e.getUTCMilliseconds()/1e3).toFixed(3)).slice(2,5)+"Z"):void 0}function g(e,n,t){var r=e.length;try{for(var i=0;i<r&&!(i in e&&-1===n.call(t||e,e[i],i,e));i++);}catch(o){}}function Te(e,n,t){var r=e.length,t=t||0;try{for(var i=Math.max(0<=t?t:r-Math.abs(t),0);i<r;i++)if(i in e&&e[i]===n)return i}catch(o){}return-1}function we(e,n,t){var r=e.length,i=t||e,o=Array(r);try{for(var a=0;a<r;a++)a in e&&(o[a]=n.call(i,e[a],e))}catch(u){}return o}function Pe(e,n,t){var r,i=e.length,o=0;if(3<=arguments.length)r=t;else{for(;o<i&&!(o in e);)o++;r=e[o++]}for(;o<i;)o in e&&(r=n(r,e[o],o,e)),o++;return r}function Ee(e){return"string"!=typeof e?e:e.replace(/^\s+|\s+$/g,"")}var Ne=!{toString:null}.propertyIsEnumerable("toString"),Ae=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"];function Le(e){var n,t=typeof e,r=(t===u||t===a&&null!==e||I("objKeys called on non-object"),[]);for(n in e)e&&C.call(e,n)&&r.push(n);if(Ne)for(var i=Ae.length,o=0;o<i;o++)e&&C.call(e,Ae[o])&&r.push(Ae[o]);return r}function Me(e,n,t,r){if(ue)try{var i={enumerable:!0,configurable:!0};return t&&(i.get=t),r&&(i.set=r),ue(e,n,i),!0}catch(o){}return!1}function ke(){var e=Date;return e.now?e.now():(new e).getTime()}function Fe(e){return Ce(e)?e.name:""}function p(e,n,t,r,i){var o=t;return e&&((o=e[n])===t||i&&!i(o)||r&&!r(t)||(e[n]=o=t)),o}function Oe(e,n,t){var r;return e?!(r=e[n])&&v(r)&&(r=d(t)?{}:t,e[n]=r):r=d(t)?{}:t,r}function Re(e){return!e}function De(e){return!!e}function _e(e){throw Error(e)}var je="window",Ue="navigator",Ve="location",ze="performance",Be="JSON",Ke="crypto",He="msCrypto",qe="msie",We="trident/",Ge=null,Je=null,Xe=!1,Qe=null,Ze=null;function $e(e,n){var t,r=!1;if(e){try{(r=n in e)||(t=e[h])&&(r=n in t)}catch(i){}if(!r)try{r=!d((new e)[n])}catch(i){}}return r}function i(e){var n=x();return n&&n[e]?n[e]:e===je&&Ye()?window:null}function Ye(){return!(typeof window!==a||!window)}function en(){return Ye()?window:i(je)}function nn(){return!(typeof document!==a||!document)}function tn(){return nn()?document:i("document")}function rn(){return!(typeof navigator!==a||!navigator)}function on(){return rn()?navigator:i(Ue)}function an(){return!(typeof history!==a||!history)}function un(e){if(e&&Xe){e=i("__mockLocation");if(e)return e}return typeof location===a&&location?location:i(Ve)}function ln(){return typeof console!==n?console:i("console")}function sn(){return i(ze)}function cn(){return!!(typeof JSON===a&&JSON||null!==i(Be))}function fn(){return cn()?JSON||i(Be):null}function gn(){return i(Ke)}function dn(){return i(He)}function vn(){var e=on();return!(!e||!e.product)&&"ReactNative"===e.product}function pn(){var e=on();return!e||e.userAgent===Je&&null!==Ge||(e=((Je=e.userAgent)||"").toLowerCase(),Ge=t(e,qe)||t(e,We)),Ge}function hn(e){var n=Object[h].toString.call(e),t="";return"[object Error]"===n?t="{ stack: '"+e.stack+"', message: '"+e.message+"', name: '"+e.name+"'":cn()&&(t=fn().stringify(e)),n+t}function mn(){return Ze=null===Ze?rn()&&!!on().sendBeacon:Ze}function yn(){return Qe=null===Qe&&(Qe="undefined"!=typeof XDomainRequest)&&Cn()?Qe&&!$e(i("XMLHttpRequest"),"withCredentials"):Qe}function Cn(){var e=!1;try{e=!!i("XMLHttpRequest")}catch(n){}return e}var Sn,xn=["eventsSent","eventsDiscarded","eventsSendRequest","perfEvent"],In=null;function bn(e){var n=In;return(n=n||!0===e.disableDbgExt?n:In||(e=i("Microsoft"),In=e?e.ApplicationInsights:In))?n.ChromeDbgExt:null}function Tn(e){return e?'"'+e.replace(/\"/g,"")+'"':""}function wn(e,n){var t,r=ln();r&&(t="log",f(r[t=r[e]?e:t])&&r[t](n))}En.dataType="MessageData";var Pn=En;function En(e,n,t,r){void 0===t&&(t=!1),this.messageId=e,this.message=(t?"AI: ":"AI (Internal): ")+e;t="",cn()&&(t=fn().stringify(r)),e=(n?" message:"+Tn(n):"")+(r?" props:"+Tn(t):"");this.message+=e}function Nn(e,n){return(e||{}).logger||new An(n)}var An=function Hr(r){this.identifier="DiagnosticLogger",this.queue=[];var i=0,u={};ee(Hr,this,function(o){function e(e,n){e=r[e];return v(e)?n:e}function a(e,n){var t=bn(r);t&&t.diagLog&&t.diagLog(e,n)}v(r)&&(r={}),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,n,t,r,i){n=new Pn(n,t,i=void 0!==i&&i,r);if(o.enableDebugExceptions())throw n;t=e===c.LoggingSeverity.CRITICAL?"errorToConsole":"warnToConsole";d(n.message)?a("throw"+(e===c.LoggingSeverity.CRITICAL?"Critical":"Warning"),n):(r=o.consoleLoggingLevel(),i?(i=+n.messageId,!u[i]&&e<=r&&(o[t](n.message),u[i]=!0)):e<=r&&o[t](n.message),o.logInternalMessage(e,n))},o.warnToConsole=function(e){wn("warn",e),a("warning",e)},o.errorToConsole=function(e){wn("error",e),a("error",e)},o.resetInternalMessageCount=function(){i=0,u={}},o.logInternalMessage=function(e,n){var t,r;i>=o.maxInternalMessageLimit()||(r=!0,t="AITR_"+n.messageId,u[t]?r=!1:u[t]=!0,r&&(e<=o.telemetryLoggingLevel()&&(o.queue.push(n),i++,a(e===c.LoggingSeverity.CRITICAL?"error":"warn",n)),i===o.maxInternalMessageLimit()&&(r=new Pn(ne.MessageLimitPerPVExceeded,t="Internal events throttle limit per PageView reached for this app.",!1),o.queue.push(r),e===c.LoggingSeverity.CRITICAL?o.errorToConsole(t):o.warnToConsole(t))))}})},Ln=(Mn.ParentContextKey="parent",Mn.ChildrenContextKey="childEvts",Mn);function Mn(e,i,n){var t,o=this,a=!1;o.start=ke(),o.name=e,o.isAsync=n,o.isChildEvt=function(){return!1},f(i)&&(a=Me(o,"payload",function(){return!t&&f(i)&&(t=i(),i=null),t})),o.getCtx=function(e){return e?(e===Mn.ParentContextKey||e===Mn.ChildrenContextKey?o:o.ctx||{})[e]:null},o.setCtx=function(e,n){e&&(e===Mn.ParentContextKey?(o[e]||(o.isChildEvt=function(){return!0}),o[e]=n):e===Mn.ChildrenContextKey?o[e]=n:(o.ctx=o.ctx||{})[e]=n)},o.complete=function(){var e=0,n=o.getCtx(Mn.ChildrenContextKey);if(ye(n))for(var t=0;t<n.length;t++){var r=n[t];r&&(e+=r.time)}o.time=ke()-o.start,o.exTime=o.time-e,o.complete=function(){},!a&&f(i)&&(o.payload=i())}}var kn=function qr(n){this.ctx={},ee(qr,this,function(t){t.create=function(e,n,t){return new Ln(e,n,t)},t.fire=function(e){e&&(e.complete(),n&&f(n.perfEvent)&&n.perfEvent(e))},t.setCtx=function(e,n){e&&((t.ctx=t.ctx||{})[e]=n)},t.getCtx=function(e){return(t.ctx||{})[e]}})},Fn="CoreUtils.doPerf";function On(e,n,t,r,i){if(e)if(e=f(e.getPerfMgr)?e.getPerfMgr():e){var o,a=void 0,u=e.getCtx(Fn);try{if(a=e.create(n(),r,i))return u&&a.setCtx&&(a.setCtx(Ln.ParentContextKey,u),u.getCtx&&u.setCtx&&((o=u.getCtx(Ln.ChildrenContextKey))||(o=[],u.setCtx(Ln.ChildrenContextKey,o)),o.push(a))),e.setCtx(Fn,a),t(a)}catch(l){a&&a.setCtx&&a.setCtx("exception",l)}finally{a&&e.fire(a),e.setCtx(Fn,u)}}return t()}var Rn=function(i,n){var o=this,a=null,u=f(i.processTelemetry),l=f(i.setNextPlugin);o._hasRun=!1,o.getPlugin=function(){return i},o.getNext=function(){return a},o.setNext=function(e){a=e},o.processTelemetry=function(t,r){r=r||n;var e=i?i.identifier:"TelemetryPluginChain";On(r?r.core():null,function(){return e+":processTelemetry"},function(){if(i&&u){o._hasRun=!0;try{r.setNext(a),l&&i.setNextPlugin(a),a&&(a._hasRun=!1),i.processTelemetry(t,r)}catch(n){var e=a&&a._hasRun;a&&e||r.diagLog().throwInternal(c.LoggingSeverity.CRITICAL,ne.PluginException,"Plugin ["+i.identifier+"] failed during processTelemetry - "+hn(n)),a&&!e&&a.processTelemetry(t,r)}}else a&&(o._hasRun=!0,a.processTelemetry(t,r))},function(){return{item:t}},!t.sync)}};function Dn(e,n){var t=[];if(e&&0<e.length)for(var r=null,i=0;i<e.length;i++){var o=e[i];o&&f(o.processTelemetry)&&(o=new Rn(o,n),t.push(o),r&&r.setNext(o),r=o)}return 0<t.length?t[0]:null}var _n=function Wr(e,i,t,n){var r,o,a,u,l=this,s=null;null!==n&&(e&&f(e.getPlugin)?s=function(e,n,t){var r=[],i=!t;if(e)for(;e;){var o=e.getPlugin();!i&&o!==t||(i=!0,r.push(o)),e=e.getNext()}return i||r.push(t),Dn(r,n)}(e,l,n||e.getPlugin()):n?(r=l,a=e,u=!1,(o=n)&&e&&(a=[],g(e,function(e){!u&&e!==o||(u=!0,a.push(e))})),o&&!u&&(a=a||[]).push(o),s=Dn(a,r)):d(n)&&(s=Dn(e,l))),l.core=function(){return t},l.diagLog=function(){return Nn(t,i)},l.getCfg=function(){return i},l.getExtCfg=function(e,n){var t,r;return void 0===n&&(n={}),!i||(r=i.extensionConfig)&&e&&(t=r[e]),t||n},l.getConfig=function(e,n,t){void 0===t&&(t=!1);var r,e=l.getExtCfg(e,null);return e&&!v(e[n])?r=e[n]:i&&!v(i[n])&&(r=i[n]),v(r)?t:r},l.hasNext=function(){return null!=s},l.getNext=function(){return s},l.setNext=function(e){s=e},l.processNext=function(e){var n=s;n&&(s=n.getNext(),n.processTelemetry(e,l))},l.createNew=function(e,n){return new Wr((e=void 0===e?null:e)||s,i,t,n)}},jn="extensionConfig",Un="getPlugin",Vn=(zn.prototype.initialize=function(e,n,t,r){this._baseTelInit(e,n,t,r)},zn);function zn(){var o=this,a=!1,u=null,l=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){l=e},o.processNext=function(e,n){n?n.processNext(e):l&&f(l.processTelemetry)&&l.processTelemetry(e,null)},o._getTelCtx=function(e){var n,e=e=void 0===e?null:e;return e||(n=u||new _n(null,{},o.core),e=l&&l[Un]?n.createNew(null,l[Un]):n.createNew(null,l)),e},o._baseTelInit=function(e,n,t,r){e&&p(e,jn,[],null,v),!r&&n&&(r=n.getProcessTelContext().getNext());var i=l;l&&l[Un]&&(i=l[Un]()),o.core=n,u=new _n(r,e,n,i),a=!0}}var Bn="processTelemetry",Kn="priority",Hn="setNextPlugin",qn="isInitialized";function Wn(n,t){for(var e=[],r=null,i=n.getNext();i;){var o=i.getPlugin();o&&(r&&f(r[Hn])&&f(o[Bn])&&r[Hn](o),f(o[qn])&&o[qn]()||e.push(o),r=o,i=i.getNext())}g(e,function(e){e.initialize(n.getCfg(),n.core(),t,n.getNext())})}function Gn(e){return e.sort(function(e,n){var t=0,r=f(n[Bn]);return f(e[Bn])?t=r?e[Kn]-n[Kn]:1:r&&(t=-1),t})}P(Qn,Jn=Vn),Qn._staticInit=(Me(e=Qn.prototype,"ChannelControls",e.getChannelControls),void Me(e,"channelQueue",e.getChannelControls));var Jn,Xn=Qn;function Qn(){var l,r=Jn.call(this)||this;function s(e){e&&0<e.length&&(g(e=e.sort(function(e,n){return e.priority-n.priority}),function(e){e.priority<500&&_e("Channel has invalid priority"+e.identifier)}),l.push(e))}return r.identifier="ChannelControllerPlugin",r.priority=500,ee(Qn,r,function(a,u){a.setNextPlugin=function(e){},a.processTelemetry=function(n,t){l&&g(l,function(e){0<e.length&&r._getTelCtx(t).createNew(e).processNext(n)})},a.getChannelControls=function(){return l},a.initialize=function(n,t,r){var e,i,o;a.isInitialized()||(u.initialize(n,t,r),e=(n||{}).channels,i=r,l=[],e&&g(e,s),i&&(o=[],g(i,function(e){500<e.priority&&o.push(e)}),s(o)),g(l,function(e){return Wn(new _n(e,n,t),r)}))}}),r}var Zn="toGMTString",$n="toUTCString",Yn="cookie",et="expires",nt="enabled",tt="isCookieUseDisabled",rt="disableCookiesUsage",it="_ckMgr",ot="",at=null,ut=null,lt=null,st=tn(),ct={},ft={};function gt(e){return!e||e.isEnabled()}function dt(e,n){var t,r;return e?t=e.getCookieMgr():n&&(t=n.cookieCfg[it]||vt(n)),t||(e=(e||{}).logger,(r=vt[it]||ft[it])||(r=vt[it]=vt(n,e),ft[it]=r),t=r),t}function vt(e,i){p(t=(e=e||ft).cookieCfg=e.cookieCfg||{},"domain",e.cookieDomain,ce,v),p(t,"path",e.cookiePath||"/",null,v),v(t[nt])&&(n=void 0,d(e[tt])||(n=!e[tt]),d(e[rt])||(n=!e[rt]),t[nt]=n);var n,t,s=t,c=s.path||"/",f=s.domain,r=!1!==s[nt],g={isEnabled:function(){var e=r&&pt(i),n=ft[it];return e&&n&&g!==n?gt(n):e},setEnabled:function(e){r=!1!==e},set:function(e,n,t,r,i){var o,a,u,l=!1;return gt(g)&&(o={},-1!=(u=(a=Ee(n||ot)).indexOf(";"))&&(a=Ee(n.substring(0,u)),o=ht(n.substring(1+u))),p(o,"domain",r||f,De,d),v(t)||(u=pn(),!d(o[et])||0<(n=ke()+1e3*t)&&((r=new Date).setTime(n),p(o,et,mt(r,u?Zn:$n)||mt(r,u?Zn:$n)||ot,De)),u||p(o,"max-age",ot+t,null,d)),(n=un())&&"https:"===n.protocol&&(p(o,"secure",null,null,d),(ut=null===ut?!St((on()||{}).userAgent):ut)&&p(o,"SameSite","None",null,d)),p(o,"path",i||c,null,d),(s.setCookie||Ct)(e,yt(a,o)),l=!0),l},get:function(e){var n=ot;return gt(g)?(s.getCookie||function(e){var n,t=ot;return st&&(n=st[Yn]||ot,lt!==n&&(ct=ht(n),lt=n),t=Ee(ct[e]||ot)),t})(e):n},del:function(e,n){return!!gt(g)&&g.purge(e,n)},purge:function(e,n){var t,r=!1;return pt(i)&&((t={}).path=n||"/",t[et]="Thu, 01 Jan 1970 00:00:01 GMT",n=t,pn()||(n["max-age"]="0"),(s.delCookie||Ct)(e,yt(ot,n)),r=!0),r}};return g[it]=g}function pt(e){if(null===at){at=!1;try{at=(st||{})[Yn]!==undefined}catch(n){e&&e.throwInternal(c.LoggingSeverity.WARNING,ne.CannotAccessCookie,"Cannot access document.cookie - "+Fe(n),{exception:hn(n)})}}return at}function ht(e){var t={};return e&&e.length&&g(Ee(e).split(";"),function(e){var n;(e=Ee(e||ot))&&(-1==(n=e.indexOf("="))?t[e]=null:t[Ee(e.substring(0,n))]=Ee(e.substring(1+n)))}),t}function mt(e,n){return f(e[n])?e[n]():null}function yt(e,n){var t=e||ot;return pe(n,function(e,n){t+="; "+e+(v(n)?ot:"="+n)}),t}function Ct(e,n){st&&(st[Yn]=e+"="+n)}function St(e){return!(!Se(e)||!t(e,"CPU iPhone OS 12")&&!t(e,"iPad; CPU OS 12")&&!(t(e,"Macintosh; Intel Mac OS X 10_14")&&t(e,"Version/")&&t(e,"Safari"))&&(!t(e,"Macintosh; Intel Mac OS X 10_14")||!he(e,"AppleWebKit/605.1.15 (KHTML, like Gecko)"))&&!t(e,"Chrome/5")&&!t(e,"Chrome/6")&&(!t(e,"UnrealEngine")||t(e,"Chrome"))&&!t(e,"UCBrowser/12")&&!t(e,"UCBrowser/11"))}var xt="_notificationManager";function It(e,n){return new kn(n)}var bt,e=function Gr(){var n,u,l,t,r,s=!1;ee(Gr,this,function(a){a._extensions=[],u=new Xn,a.logger=new An({loggingLevelConsole:c.LoggingSeverity.CRITICAL}),n=[],a.isInitialized=function(){return s},a.initialize=function(e,n,r,t){a.isInitialized()&&_e("Core should not be initialized more than once"),e&&!v(e.instrumentationKey)||_e("Please provide instrumentation key"),l=t,a[xt]=t,a.config=e||{},t&&!0!==a.config.disableDbgExt&&t.addNotificationListener(function(e){if(!Sn){Sn={};for(var n=0;n<xn.length;n++)Sn[xn[n]]=function(n,t){return function(){var e=bn(t);!e||(e=e.listener)&&e[n]&&e[n].apply(e,arguments)}}(xn[n],e)}return Sn}(e)),a.config.enablePerfMgr&&p(a.config,"createPerfMgr",It),e.extensions=v(e.extensions)?[]:e.extensions,Oe(e,jn).NotificationManager=t,r&&(a.logger=r);var t=[],i=(t.push.apply(t,E(E([],n),e.extensions)),t=Gn(t),[]),o={};g(t,function(e){(v(e)||v(e.initialize))&&_e("Extensions must provide callback to initialize");var n=e.priority,t=e.identifier;e&&n&&(v(o[n])?o[n]=t:r.warnToConsole("Two extensions have same priority #"+n+" - "+o[n]+", "+t)),(!n||n<u.priority)&&i.push(e)}),t.push(u),i.push(u),t=Gn(t),a._extensions=t,Wn(new _n([u],e,a),t),Wn(new _n(i,e,a),t),a._extensions=i,0===a.getTransmissionControls().length&&_e("No channels available"),s=!0,a.releaseQueue()},a.getTransmissionControls=function(){return u.getChannelControls()},a.track=function(e){p(e,"iKey",a.config.instrumentationKey,null,Re),p(e,"time",be(new Date),null,Re),p(e,"ver","4.0",null,v),a.isInitialized()?a.getProcessTelContext().processNext(e):n.push(e)},a.getProcessTelContext=function(){var e=a._extensions,n=e;return e&&0!==e.length||(n=[u]),new _n(n,a.config,a)},a.getNotifyMgr=function(){return l||(l=b({addNotificationListener:function(e){},removeNotificationListener:function(e){},eventsSent:function(e){},eventsDiscarded:function(e,n){},eventsSendRequest:function(e,n){}}),a[xt]=l),l},a.getCookieMgr=function(){return r=r||vt(a.config,a.logger)},a.setCookieMgr=function(e){r=e},a.getPerfMgr=function(){return t||a.config&&a.config.enablePerfMgr&&f(a.config.createPerfMgr)&&(t=a.config.createPerfMgr(a,a.getNotifyMgr())),t||null},a.setPerfMgr=function(e){t=e},a.eventCnt=function(){return n.length},a.releaseQueue=function(){0<n.length&&(g(n,function(e){a.getProcessTelContext().processNext(e)}),n=[])}})},Tt=function Jr(e){this.listeners=[];var n=!!(e||{}).perfEvtsSendAll;ee(Jr,this,function(i){i.addNotificationListener=function(e){i.listeners.push(e)},i.removeNotificationListener=function(e){for(var n=Te(i.listeners,e);-1<n;)i.listeners.splice(n,1),n=Te(i.listeners,e)},i.eventsSent=function(n){g(i.listeners,function(e){e&&e.eventsSent&&setTimeout(function(){return e.eventsSent(n)},0)})},i.eventsDiscarded=function(n,t){g(i.listeners,function(e){e&&e.eventsDiscarded&&setTimeout(function(){return e.eventsDiscarded(n,t)},0)})},i.eventsSendRequest=function(t,r){g(i.listeners,function(e){if(e&&e.eventsSendRequest)if(r)setTimeout(function(){return e.eventsSendRequest(t,r)},0);else try{e.eventsSendRequest(t,r)}catch(n){}})},i.perfEvent=function(t){t&&(!n&&t.isChildEvt()||g(i.listeners,function(e){if(e&&e.perfEvent)if(t.isAsync)setTimeout(function(){return e.perfEvent(t)},0);else try{e.perfEvent(t)}catch(n){}}))}})},wt=(P(Pt,bt=e),Pt);function Pt(){var e=bt.call(this)||this,r=0;return ee(Pt,e,function(t,i){function n(e){var n=t.getNotifyMgr();n&&n.eventsDiscarded([e],N.InvalidEvent)}t.initialize=function(e,n,t,r){i.initialize(e,n,t||new An(e),r||new Tt(e))},t.track=function(e){On(t.getPerfMgr(),function(){return"AppInsightsCore:track"},function(){if(null===e&&(n(e),_e("Invalid telemetry item")),v(e.name))throw n(e),Error("telemetry name required");i.track(e)},function(){return{item:e}},!e.sync)},t.addNotificationListener=function(e){var n=t.getNotifyMgr();n&&n.addNotificationListener(e)},t.removeNotificationListener=function(e){var n=t.getNotifyMgr();n&&n.removeNotificationListener(e)},t.pollInternalLogs=function(n){var e=t.config.diagnosticLogInterval;return e&&0<e||(e=1e4),r&&t.stopPollingInternalLogs(),r=setInterval(function(){var e=t.logger?t.logger.queue:[];g(e,function(e){e={name:n||"InternalMessageId: "+e.messageId,iKey:t.config.instrumentationKey,time:be(new Date),baseType:Pn.dataType,baseData:{message:e.message}};t.track(e)}),e.length=0},e)},t.stopPollingInternalLogs=function(){r&&(clearInterval(r),r=0)}}),e}var Et=4294967296,Nt=4294967295,At=!1,Lt=123456789,Mt=987654321;function kt(e){e<0&&(e>>>=0),Lt=123456789+e&Nt,Mt=987654321-e&Nt,At=!0}function Ft(){try{var e=2147483647&ke();kt((Math.random()*Et^e)+e)}catch(n){}}function Ot(e){return 0<e?Math.floor(Rt()/Nt*(e+1))>>>0:0}function Rt(e){var n=gn()||dn(),n=n&&n.getRandomValues?n.getRandomValues(new Uint32Array(1))[0]&Nt:pn()?(At||Ft(),Dt()&Nt):Math.floor(Et*Math.random()|0);return e||(n>>>=0),n}function Dt(e){var n=((Mt=36969*(65535&Mt)+(Mt>>16)&Nt)<<16)+(65535&(Lt=18e3*(65535&Lt)+(Lt>>16)&Nt))>>>0&Nt|0;return e||(n>>>=0),n}var _t="visibilitychange",jt="pagehide",Ut="pageshow";function Vt(e,n){var t=!1,r=en(),r=(r&&(t=de(r,e,n),t=de(r.body,e,n)||t),tn());return r&&de(r,e,n)||t}function zt(e,n,t){var r,i=!1;return n&&e&&ye(e)&&(r=[],g(e,function(e){Se(e)&&(t&&-1!==Te(t,e)?r.push(e):i=Vt(e,n)||i)}),!i&&0<r.length&&(i=zt(r,n))),i}function Bt(e,n){return zt(["beforeunload","unload","pagehide"],e,n)}function Kt(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(Gt,function(e){var n=0|Ot(15);return("x"===e?n:3&n|8).toString(16)})}function Ht(){var e=sn();return e&&e.now?e.now():ke()}function qt(e){void 0===e&&(e=22);for(var n=Rt()>>>0,t=0,r="";r.length<e;)r+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"[0|63&n]||"",n>>>=6,5==++t&&(n=(Rt()<<2&4294967295|3&n)>>>0,t=0);return r}function Wt(){for(var e,n=["0","1","2","3","4","5","6","7","8","9","a","b","c","d","e","f"],t="",r=0;r<4;r++)t+=n[15&(e=Rt())]+n[e>>4&15]+n[e>>8&15]+n[e>>12&15]+n[e>>16&15]+n[e>>20&15]+n[e>>24&15]+n[e>>28&15];var i=n[8+(3&Rt())|0];return t.substr(0,8)+t.substr(9,4)+"4"+t.substr(13,3)+i+t.substr(16,3)+t.substr(19,12)}var Gt=/[xy]/g,Jt={Attach:de,AttachEvent:de,Detach:ve,DetachEvent:ve},Xt={NotSet:0,Pii_DistinguishedName:1,Pii_GenericData:2,Pii_IPV4Address:3,Pii_IPv6Address:4,Pii_MailSubject:5,Pii_PhoneNumber:6,Pii_QueryString:7,Pii_SipAddress:8,Pii_SmtpAddress:9,Pii_Identity:10,Pii_Uri:11,Pii_Fqdn:12,Pii_IPV4AddressLegacy:13,CustomerContent_GenericContent:32},Qt={Normal:1,CostDeferred:2,RealTime:3,Immediate:4},Zt={Unspecified:0,String:1,Int32:2,UInt32:3,Int64:4,UInt64:5,Double:6,Bool:7,Guid:8,DateTime:9},$t=T(T({},ne),{AuthHandShakeError:501,AuthRedirectFail:502,BrowserCannotReadLocalStorage:503,BrowserCannotWriteLocalStorage:504,BrowserDoesNotSupportLocalStorage:505,CannotParseBiBlobValue:506,CannotParseDataAttribute:507,CVPluginNotAvailable:508,DroppedEvent:509,ErrorParsingAISessionCookie:510,ErrorProvidedChannels:511,FailedToGetCookies:512,FailedToInitializeCorrelationVector:513,FailedToInitializeSDK:514,InvalidContentBlob:515,InvalidCorrelationValue:516,SessionRenewalDateIsZero:517,SendPostOnCompleteFailure:518,PostResponseHandler:519,SDKNotInitialized:520}),T="3.1.10",Yt="1DS-Web-JS-"+T,er="withCredentials",nr=((ir={})[0]=Zt.Unspecified,ir[2]=Zt.Double,ir[1]=Zt.String,ir[3]=Zt.Bool,ir[4098]=Zt.Double,ir[4097]=Zt.String,ir[4099]=Zt.Bool,ir),tr=null,rr=!!tn(),ir=!!en();function or(e){return!(""===e||v(e))}function ar(e){if(e){var n=e.indexOf("-");if(-1<n)return e.substring(0,n)}return""}function ur(){return tr=null===tr?!d(Uint8Array)&&!function(){var e=on();if(!d(e)&&e.userAgent)return!~(e=e.userAgent.toLowerCase()).indexOf("safari")&&!~e.indexOf("firefox")||~e.indexOf("chrome")?void 0:1}()&&!vn():tr}function lr(e){return!!(e&&xe(e)&&Qt.Normal<=e&&e<=Qt.Immediate)}function sr(e,n,t){if(!n&&!or(n)||"string"!=typeof e)return null;e=typeof n;if("string"==e||"number"==e||"boolean"==e||ye(n))n={value:n};else if("object"!=e||n.hasOwnProperty("value")){if(v(n.value)||""===n.value||!Se(n.value)&&!xe(n.value)&&!Ie(n.value)&&!ye(n.value))return null}else n={value:t?JSON.stringify(n):n};if(ye(n.value)&&!Sr(n.value))return null;if(!v(n.kind)){if(ye(n.value)||!Cr(n.kind))return null;n.value=n.value.toString()}return n}function cr(e,n,t){var r=-1;return d(e)||(0<n&&(32===n?r=8192:n<=13&&(r=n<<5)),0<=t&&t<=9?(-1===r&&(r=0),r|=t):(n=nr[Ir(e)]||-1,-1!==r&&-1!==n?r|=n:n===Zt.Double&&(r=n))),r}function fr(){dt(null).setEnabled(!1)}function gr(e,n,t){pt(null)&&dt(null).set(e,n,86400*t,null,"/")}function dr(e){pt(null)&&dt(null).del(e)}function vr(e){return pt(null)?pr(dt(null),e):""}function pr(e,n,t){var r;return void 0===t&&(t=!0),e&&(r=e.get(n),t&&r&&decodeURIComponent&&(r=decodeURIComponent(r))),r||""}function hr(e){void 0===e&&(e="D");var n=Kt();return"B"===e?n="{"+n+"}":"P"===e?n="("+n+")":"N"===e&&(n=n.replace(/-/g,"")),n}function mr(e,n,t,s,c){var r={},i=!1,o=0,a=arguments.length,u=Object[h],l=arguments;for("[object Boolean]"===u.toString.call(l[0])&&(i=l[0],o++);o<a;o++)pe(l[o],function(t,e){i&&e&&ge(e)?ye(e)?(r[t]=r[t]||[],g(e,function(e,n){e&&ge(e)?r[t][n]=mr(!0,r[t][n],e):r[t][n]=e})):r[t]=mr(!0,r[t],e):r[t]=e});return r}var yr=Ht;function Cr(e){return e===Xt.NotSet||e>Xt.NotSet&&e<=Xt.Pii_IPV4AddressLegacy||e===Xt.CustomerContent_GenericContent}function Sr(e){return 0<e.length}function xr(e,n){e.timings=e.timings||{},e.timings.processTelemetryStart=e.timings.processTelemetryStart||{},e.timings.processTelemetryStart[n]=yr()}function Ir(e){var n,t=0;return null!==e&&e!==undefined&&("string"==(n=typeof e)?t=1:"number"==n?t=2:"boolean"==n?t=3:n===a&&(t=4,ye(e)?(t=4096,0<e.length&&(t|=Ir(e[0]))):fe(e,"value")&&(t=8192|Ir(e.value)))),t}var br,Tr={Version:T,FullVersionString:Yt,strUndefined:n,strObject:a,Undefined:n,arrForEach:g,arrIndexOf:Te,arrMap:we,arrReduce:Pe,objKeys:Le,toISOString:be,isReactNative:vn,isString:Se,isNumber:xe,isBoolean:Ie,isFunction:f,isArray:ye,isObject:ge,strTrim:Ee,isDocumentObjectAvailable:rr,isWindowObjectAvailable:ir,isValueAssigned:or,getTenantId:ar,isBeaconsSupported:mn,isUint8ArrayAvailable:ur,isLatency:lr,sanitizeProperty:sr,getISOString:be,useXDomainRequest:yn,getCommonSchemaMetaData:cr,cookieAvailable:pt,disallowsSameSiteNone:St,setCookie:gr,deleteCookie:dr,getCookie:vr,createGuid:hr,extend:mr,getTime:yr,isValueKind:Cr,isArrayValid:Sr,objDefineAccessors:Me,addPageUnloadEventListener:Bt,setProcessTelemetryTimings:xr,addEventHandler:Vt,getFieldValueType:Ir,strEndsWith:he,objForEachKey:pe},wr={_canUseCookies:undefined,isTypeof:se,isUndefined:d,isNullOrUndefined:v,hasOwnProperty:fe,isFunction:f,isObject:ge,isDate:me,isArray:ye,isError:Ce,isString:Se,isNumber:xe,isBoolean:Ie,toISOString:be,arrForEach:g,arrIndexOf:Te,arrMap:we,arrReduce:Pe,strTrim:Ee,objCreate:b,objKeys:Le,objDefineAccessors:Me,addEventHandler:Vt,dateNow:ke,isIE:pn,disableCookies:fr,newGuid:Kt,perfNow:Ht,newId:qt,randomValue:Ot,random32:Rt,mwcRandomSeed:function(e){e?kt(e):Ft()},mwcRandom32:Dt,generateW3CId:Wt},Pr="version",Er="properties";function Nr(){var e=br.call(this)||this;return e.pluginVersionStringArr=[],e.pluginVersionString="",ee(Nr,e,function(u,l){u.logger&&u.logger.queue||(u.logger=new An({loggingLevelConsole:c.LoggingSeverity.CRITICAL})),u.initialize=function(r,i,o,a){On(u,function(){return"AppInsightsCore.initialize"},function(){if(r){r.endpointUrl||(r.endpointUrl="https://browser.events.data.microsoft.com/OneCollector/1.0/");var e=r.propertyStorageOverride;if(e&&(!e.getProperty||!e.setProperty))throw Error("Invalid property storage override passed.");r.channels&&g(r.channels,function(e){e&&g(e,function(e){e.identifier&&e.version&&(e=e.identifier+"="+e.version,u.pluginVersionStringArr.push(e))})})}u.getWParam=function(){return"undefined"!=typeof document?0:-1},i&&g(i,function(e){e&&e.identifier&&e.version&&(e=e.identifier+"="+e.version,u.pluginVersionStringArr.push(e))}),u.pluginVersionString=u.pluginVersionStringArr.join(";");try{l.initialize(r,i,o,a),u.pollInternalLogs("InternalLog")}catch(t){var e=u.logger,n=hn(t);~n.indexOf("channels")&&(n+="\n - Channels must be provided through config.channels only!"),e.throwInternal(c.LoggingSeverity.CRITICAL,$t.FailedToInitializeSDK,"SDK Initialization Failed - no telemetry will be sent: "+n)}},function(){return{config:r,extensions:i,logger:o,notificationManager:a}})},u.track=function(t){On(u,function(){return"AppInsightsCore.track"},function(){var e,n=t;n&&(n.timings=n.timings||{},n.timings.trackStart=yr(),lr(n.latency)||(n.latency=Qt.Normal),(e=n.ext=n.ext||{}).sdk=e.sdk||{},e.sdk.ver=Yt,(e=n.baseData=n.baseData||{})[Er]||(e[Er]={}),(e=e[Er])[Pr]||(e[Pr]=""),""!==u.pluginVersionString&&(e[Pr]=u.pluginVersionString)),l.track(n)},function(){return{item:t}},!t.sync)}}),e}P(Nr,br=wt);var Ar,Lr=Nr;function Mr(){var e=Ar.call(this)||this;return ee(Mr,e,function(o,a){o.initialize=function(e,n,t,r){e&&!e.endpointUrl&&(e.endpointUrl="https://browser.events.data.microsoft.com/OneCollector/1.0/"),o.getWParam=function(){return rr?0:-1};try{a.initialize(e,n,t,r)}catch(i){o.logger.throwInternal(c.LoggingSeverity.CRITICAL,$t.FailedToInitializeSDK,"Initialization Failed: "+hn(i)+"\n - Note: Channels must be provided through config.channels only")}},o.track=function(e){var n;e&&((n=e.ext=e.ext||{}).sdk=n.sdk||{},n.sdk.ver=Yt),a.track(e)}}),e}P(Mr,Ar=e);var kr=Mr,Fr=f;function s(e){var a=0,u=null,n=[];function i(t,r,i,o){n.push(function(){var e;try{(e=1===a?Fr(t)?t(u):u:Fr(r)?r(u):u)instanceof s?e.then(i,o):(2!==a||Fr(r)?i:o)(e)}catch(n){return void o(n)}}),0!==a&&l()}function l(){var r;0<n.length&&(r=n.slice(),n=[],setTimeout(function(){for(var e=0,n=r.length;e<n;++e)try{r[e]()}catch(t){}},0))}function t(e){0===a&&(u=e,a=2,l())}if(ee(s,this,function(n){n.then=function(t,r){return new s(function(e,n){i(t,r,e,n)})},n["catch"]=function(e){return n.then(null,e)}}),!Fr(e))throw new TypeError("ESPromise: resolvedFunc argument is not a Function");try{e(function(e){0===a&&(u=e,a=1,l())},t)}catch(r){t(r)}}s.resolve=function(r){return r instanceof s?r:r&&Fr(r.then)?new s(function(e,n){try{r.then(e,n)}catch(t){n(t)}}):new s(function(e){e(r)})},s.reject=function(t){return new s(function(e,n){n(t)})},s.all=function(u){if(u&&u.length)return new s(function(r,e){try{for(var i=[],o=0,n=0;n<u.length;n++){var t=u[n];t&&Fr(t.then)?(o++,t.then(function(n,t){return function(e){n[t]=e,0==--o&&r(i)}}(i,n),e)):i[n]=t}0===o&&setTimeout(function(){r(i)},0)}catch(a){e(a)}})},s.race=function(i){return new s(function(n,t){if(i&&i.length)try{for(var r=0;r<i.length;r++)!function(){var e=i[r];e&&Fr(e.then)?e.then(n,t):setTimeout(function(){n(e)},0)}()}catch(e){t(e)}})};var Or=s,Rr=0,Dr=[],_r=[],jr=[];function Ur(){return(new Date).getTime()}function Vr(e,n){var h=0,m=(e||"<unnamed>")+"."+Rr;function y(e){var n=x();n&&n.QUnit&&console&&console.log("ESPromiseScheduler["+m+"] "+e)}function C(e){n&&n.warnToConsole("ESPromiseScheduler["+m+"] "+e)}Rr++,ee(Vr,this,function(e){var d=null,v=0;function p(e,n){for(var t=0;t<e.length;t++)if(e[t].id===n)return e.splice(t,1)[0];return null}e.scheduleEvent=function(r,e,u){var i,o,n,a=m+"."+v,e=(v++,e&&(a+="-("+e+")"),a+"{"+h+"}"),t=(h++,{evt:null,tm:Ur(),id:e,isRunning:!1,isAborted:!1});return t.evt=d?(i=t,o=d,n=new Or(function(n,t){var e=Ur()-o.tm,r=o.id;y("["+a+"] is waiting for ["+r+":"+e+" ms] to complete before starting -- ["+_r.length+"] waiting and ["+Dr.length+"] running"),i.abort=function(e){i.abort=null,p(_r,a),i.isAborted=!0,t(Error(e))},o.evt.then(function(e){p(_r,a),c(i).then(n,t)},function(e){p(_r,a),c(i).then(n,t)})}),_r.push(i),n):c(t),(d=t).evt._schId=e,t.evt;function l(e){for(var n=Ur(),t=n-6e5,r=e.length,i=0;i<r;){var o,a=e[i];a&&a.tm<t?(o=null,a.abort?(o="Aborting ["+a.id+"] due to Excessive runtime ("+(n-a.tm)+" ms)",a.abort(o)):o="Removing ["+a.id+"] due to Excessive runtime ("+(n-a.tm)+" ms)",C(o),e.splice(i,1),r--):i++}}function s(e,n){var t,r=!1,i=p(Dr,e);i||(i=p(jr,e),r=!0),i?(i.to&&(clearTimeout(i.to),i.to=null),t=Ur()-i.tm,n?r?C("Timed out event ["+e+"] finally complete -- "+t+" ms"):y("Promise ["+e+"] Complete -- "+t+" ms"):(jr.push(i),C("Event ["+e+"] Timed out and removed -- "+t+" ms"))):y("Failed to remove ["+e+"] from running queue"),d&&d.id===e&&(d=null),l(Dr),l(_r),l(jr)}function f(n,t){return function(e){return s(n,!0),t&&t(e),e}}function g(r,o){var a=r.id;return new Or(function(n,t){y("Event ["+a+"] Starting -- waited for "+(r.wTm||"--")+" ms"),r.isRunning=!0,r.abort=function(e){r.abort=null,r.isAborted=!0,s(a,!1),t(Error(e))};var e=o(a);e instanceof Or?(u&&(r.to=setTimeout(function(){s(a,!1),t(Error("Timed out after ["+u+"] ms"))},u)),function i(n,e,t,r){e.then(function(e){return e instanceof Or?(y("Event ["+n+"] returned a promise -- waiting"),i(n,e,t,r),e):f(n,t)(e)},f(n,r))}(a,e,function(e){y("Event ["+a+"] Resolving after "+(Ur()-r.tm)+" ms"),n(e)},t)):(y("Promise ["+a+"] Auto completed as the start action did not return a promise"),n())})}function c(e){var n=Ur();return e.wTm=n-e.tm,e.tm=n,e.isAborted?Or.reject(Error("["+a+"] was aborted")):(Dr.push(e),g(e,r))}}})}Vr.incomplete=function(){return Dr},Vr.waitingToStart=function(){return _r};var zr=Vr,Br=(Kr.getFieldType=Ir,Kr);function Kr(e){var l=this,o={},a=[],u=[];function s(e,n){var t=o[e];if(!(i=t?t[n]:i)&&null!==i){if(Se(e)&&Se(n))if(0<u.length){for(var r=0;r<u.length;r++)if(u[r].handleField(e,n)){i={canHandle:!0,fieldHandler:u[r]};break}}else 0===a.length&&(i={canHandle:!0});if(!i&&null!==i)for(var i=null,r=0;r<a.length;r++)if(a[r].handleField(e,n)){i={canHandle:!0,handler:a[r],fieldHandler:null};break}(t=t||(o[e]={}))[n]=i}return i}function c(e,n,t,r,i,o){if(e.handler)return e.handler.property(n,t,i,o);if(!v(i.kind)){if(4096==(4096&r)||!Cr(i.kind))return null;i.value=i.value.toString()}return function u(r,i,o,e,n){var t,a;return n&&r&&(t=r.getSanitizer(i,o,e,n.kind,n.propertyType))&&(4===e?(a={},pe(n.value,function(e,n){var t;or(n)&&(t=f(0,0,n),(t=u(r,i+"."+o,e,Ir(n),t))&&(a[e]=t.value))}),n.value=a):n=t.call(l,{path:i,name:o,type:e,prop:n,sanitizer:l})),n}(e.fieldHandler,n,t,r,i)}function f(e,n,t){return or(t)?{value:t}:null}e&&u.push(e),l.addSanitizer=function(e){e&&(a.push(e),o={})},l.addFieldSanitizer=function(e){e&&(u.push(e),o={})},l.handleField=function(e,n){e=s(e,n);return!!e&&e.canHandle},l.value=function(e,n,t,r){var i=s(e,n);if(i&&i.canHandle){if(!i||!i.canHandle)return null;if(i.handler)return i.handler.value(e,n,t,r);if(!Se(n)||v(t)||""===t)return null;var o=null,a=Ir(t);if(8192==(8192&a)){var u=-8193&a;if(!or((o=t).value)||1!=u&&2!=u&&3!=u&&4096!=(4096&u))return null}else 1===a||2===a||3===a||4096==(4096&a)?o=f(0,0,t):4===a&&(o=f(0,0,r?JSON.stringify(t):t));if(o)return c(i,e,n,a,o,r)}return null},l.property=function(e,n,t,r){var i=s(e,n);if(!i||!i.canHandle)return null;if(!Se(n)||v(t)||!or(t.value))return null;var o=Ir(t.value);return 0===o?null:c(i,e,n,o,t,r)}}c.AppInsightsCore=Lr,c.BaseCore=kr,c.BaseTelemetryPlugin=Vn,c.CoreUtils=wr,c.DiagnosticLogger=An,c.ESPromise=Or,c.ESPromiseScheduler=zr,c.EventHelper=Jt,c.EventLatency=Qt,c.EventPersistence={Normal:1,Critical:2},c.EventPropertyType=Zt,c.EventsDiscardedReason=N,c.FullVersionString=Yt,c.InternalAppInsightsCore=wt,c.InternalBaseCore=e,c.MinChannelPriorty=100,c.NotificationManager=Tt,c.PerfEvent=Ln,c.PerfManager=kn,c.ProcessTelemetryContext=_n,c.TraceLevel={NONE:0,ERROR:1,WARNING:2,INFORMATION:3},c.Undefined=n,c.Utils=Tr,c.ValueKind=Xt,c.ValueSanitizer=Br,c.Version=T,c._ExtendedInternalMessageId=$t,c._InternalLogMessage=Pn,c._InternalMessageId=ne,c.addEventHandler=Vt,c.addEventListeners=zt,c.addPageHideEventListener=function Xr(t,e){var n=!1;return e&&-1!==Te(e,jt)||(n=Vt(jt,t)),!(n=(!e||-1===Te(e,_t))&&Vt(_t,function(e){var n=tn();t&&n&&"hidden"===n.visibilityState&&t(e)})||n)&&e?Xr(t):n},c.addPageShowEventListener=function Qr(t,e){var n=!1;return e&&-1!==Te(e,Ut)||(n=Vt(Ut,t)),!(n=(!e||-1===Te(e,_t))&&Vt(_t,function(e){var n=tn();t&&n&&"visible"===n.visibilityState&&t(e)})||n)&&e?Qr(t):n},c.addPageUnloadEventListener=Bt,c.areCookiesSupported=pt,c.arrForEach=g,c.arrIndexOf=Te,c.arrMap=we,c.arrReduce=Pe,c.attachEvent=de,c.cookieAvailable=pt,c.createCookieMgr=vt,c.createGuid=hr,c.dateNow=ke,c.deleteCookie=dr,c.detachEvent=ve,c.disableCookies=fr,c.disallowsSameSiteNone=St,c.doPerf=On,c.dumpObj=hn,c.extend=mr,c.generateW3CId=Wt,c.getCommonSchemaMetaData=cr,c.getConsole=ln,c.getCookie=vr,c.getCookieValue=pr,c.getCrypto=gn,c.getDocument=tn,c.getExceptionName=Fe,c.getFieldValueType=Ir,c.getGlobal=x,c.getGlobalInst=i,c.getHistory=function(){return an()?history:i("history")},c.getIEVersion=function(e){var n=((e=(e=void 0===e?null:e)?e:(n=on()||{})?(n.userAgent||"").toLowerCase():"")||"").toLowerCase();if(t(n,qe))return e=tn()||{},Math.max(parseInt(n.split(qe)[1]),e.documentMode||0);if(t(n,We)){e=parseInt(n.split(We)[1]);if(e)return e+4}return null},c.getISOString=be,c.getJSON=fn,c.getLocation=un,c.getMsCrypto=dn,c.getNavigator=on,c.getPerformance=sn,c.getSetValue=Oe,c.getTenantId=ar,c.getTime=yr,c.getWindow=en,c.hasDocument=nn,c.hasHistory=an,c.hasJSON=cn,c.hasNavigator=rn,c.hasOwnProperty=fe,c.hasWindow=Ye,c.isArray=ye,c.isArrayValid=Sr,c.isBeaconsSupported=mn,c.isBoolean=Ie,c.isChromium=function(){return!!i("chrome")},c.isDate=me,c.isDocumentObjectAvailable=rr,c.isError=Ce,c.isFetchSupported=function(e){var n=!1;try{var n=!!i("fetch"),t=i("Request");n&&e&&t&&(n=$e(t,"keepalive"))}catch(r){}return n},c.isFunction=f,c.isIE=pn,c.isLatency=lr,c.isNotTruthy=Re,c.isNullOrUndefined=v,c.isNumber=xe,c.isObject=ge,c.isReactNative=vn,c.isString=Se,c.isTruthy=De,c.isTypeof=se,c.isUint8ArrayAvailable=ur,c.isUndefined=d,c.isValueAssigned=or,c.isValueKind=Cr,c.isWindowObjectAvailable=ir,c.isXhrSupported=Cn,c.newGuid=Kt,c.newId=qt,c.normalizeJsName=function(e){var n=e,t=/([^\w\d_$])/g;return t.test(e)?e.replace(t,"_"):n},c.objCreate=b,c.objDefineAccessors=Me,c.objForEachKey=pe,c.objKeys=Le,c.openXhr=function(e,n,t,r,i){function o(e,n,t){try{e[n]=t}catch(r){}}void 0===r&&(r=!1),void 0===i&&(i=!1);var a=new XMLHttpRequest;return r&&o(a,"Microsoft_ApplicationInsights_BypassAjaxInstrumentation",r),t&&o(a,er,t),a.open(e,n,!i),t&&o(a,er,t),a},c.optimizeObject=function(e){return e&&r(m?m({},e):e)},c.perfNow=Ht,c.proxyAssign=function(r,i,o){if(r&&i&&r!==i&&ge(r)&&ge(i))for(var e in i)!function(n){var e,t;Se(n)&&(f(e=i[n])?o&&!o(n,!0,i,r)||(r[n]=(t=n,function(){return i[t].apply(i,arguments)})):o&&!o(n,!1,i,r)||(fe(r,n)&&delete r[n],Me(r,n,function(){return i[n]},function(e){i[n]=e})||(r[n]=e)))}(e);return r},c.random32=Rt,c.randomValue=Ot,c.safeGetCookieMgr=dt,c.safeGetLogger=Nn,c.sanitizeProperty=sr,c.setCookie=gr,c.setEnableEnvMocks=function(e){Xe=e},c.setProcessTelemetryTimings=xr,c.setValue=p,c.strContains=t,c.strEndsWith=he,c.strExtensionConfig=jn,c.strFunction=u,c.strIKey="iKey",c.strObject=a,c.strPrototype=h,c.strStartsWith=function(e,n){var t=!1;if(e&&n){var r=n.length;if(e===n)return!0;if(e.length>=r){for(var i=0;i<r;i++)if(e[i]!==n[i])return!1;t=!0}}return t},c.strTrim=Ee,c.strUndefined=n,c.throwError=_e,c.toISOString=be,c.useXDomainRequest=yn;Lr=c,kr="__esModule",Vn={value:!0},wr=Object.defineProperty;if(wr)try{return wr(Lr,kr,Vn)}catch(Zr){}typeof Vn.value!==undefined&&(Lr[kr]=Vn.value)}(this.oneDS=this.oneDS||{}); | ||
//# sourceMappingURL=ms.core.gbl.min.js.map |
{ | ||
"name": "ms.core", | ||
"version": "3.1.9", | ||
"version": "3.1.10", | ||
"ext": { | ||
@@ -8,7 +8,7 @@ "@gbl.js": { | ||
"type": "text/javascript; charset=utf-8", | ||
"integrity": "sha256-uj5oqJerzmsvhZyADaU3lkYsw3p6vnwZX8x0mVpmxCQ= sha384-ZrNPbtjq4hN//AvlaNKaxJJrtldh5nfl2f2lGA98rNREez7RMqOb6CqZLgB1kEm5 sha512-RuZMSeTfY2J4ST2Gz+2Fjtul/RRdUjN3ahOeS9ht1a+MLmBAKzysEWFTHflJuOa+my9lW5PAX8/i3J7ICSlP8w==", | ||
"integrity": "sha256-FiXnqeSOF+9V3mplKAtQmR9udy2GIXWRRR1OA0kzbIo= sha384-M5JV6lvAZj2msKy8eOrINzx1TqDXreavxiFzpdxQDwhdcKtF4OtwAgZ0DSNY2rgC sha512-s+BL3pqPiqHcPUbzF16MUFWlD2+hkw8acgHrkY3z5utwb5Zdk/RR+XY7KnEr4uLo4W1mFIWcPyAsQP36xNV9sA==", | ||
"hashes": { | ||
"sha256": "uj5oqJerzmsvhZyADaU3lkYsw3p6vnwZX8x0mVpmxCQ=", | ||
"sha384": "ZrNPbtjq4hN//AvlaNKaxJJrtldh5nfl2f2lGA98rNREez7RMqOb6CqZLgB1kEm5", | ||
"sha512": "RuZMSeTfY2J4ST2Gz+2Fjtul/RRdUjN3ahOeS9ht1a+MLmBAKzysEWFTHflJuOa+my9lW5PAX8/i3J7ICSlP8w==" | ||
"sha256": "FiXnqeSOF+9V3mplKAtQmR9udy2GIXWRRR1OA0kzbIo=", | ||
"sha384": "M5JV6lvAZj2msKy8eOrINzx1TqDXreavxiFzpdxQDwhdcKtF4OtwAgZ0DSNY2rgC", | ||
"sha512": "s+BL3pqPiqHcPUbzF16MUFWlD2+hkw8acgHrkY3z5utwb5Zdk/RR+XY7KnEr4uLo4W1mFIWcPyAsQP36xNV9sA==" | ||
} | ||
@@ -19,7 +19,7 @@ }, | ||
"type": "text/javascript; charset=utf-8", | ||
"integrity": "sha256-TI82KbabQaLmmhcCiYVL3Uqt2L9+omgUsVpaJVci5O4= sha384-idQGSM+K7DHJqNI1BHstFqdUFAWJ7bGqFUVJIZxno7n7GvIz6rsNhNO8f9Lf0rx4 sha512-d8th2bZISjVbHgI09CWcF7sDsVtwHULHBT9Fqh7XkoHYMvzr7lIxgg6fqaE3Uw0giSys7asOLnr9+rQTXqYHoA==", | ||
"integrity": "sha256-umxrDUyyAIerRW4Jsjcsr77dvyl7ms5fqtIjNwR/G4Y= sha384-i3ZKFHlYCz3MRqEhnk/CBPzxpNro2s2Inx+tDDq4YFJ1GEQjQfZq9atVMKJhXmUN sha512-+i/aDY+QJsYOqX4MMHDlHvdxveNHFtLz7I0pODmxTx+k4YXOGANQIWEKVzqLEp18T0wry9DoqJMm4Wi0vLDETA==", | ||
"hashes": { | ||
"sha256": "TI82KbabQaLmmhcCiYVL3Uqt2L9+omgUsVpaJVci5O4=", | ||
"sha384": "idQGSM+K7DHJqNI1BHstFqdUFAWJ7bGqFUVJIZxno7n7GvIz6rsNhNO8f9Lf0rx4", | ||
"sha512": "d8th2bZISjVbHgI09CWcF7sDsVtwHULHBT9Fqh7XkoHYMvzr7lIxgg6fqaE3Uw0giSys7asOLnr9+rQTXqYHoA==" | ||
"sha256": "umxrDUyyAIerRW4Jsjcsr77dvyl7ms5fqtIjNwR/G4Y=", | ||
"sha384": "i3ZKFHlYCz3MRqEhnk/CBPzxpNro2s2Inx+tDDq4YFJ1GEQjQfZq9atVMKJhXmUN", | ||
"sha512": "+i/aDY+QJsYOqX4MMHDlHvdxveNHFtLz7I0pODmxTx+k4YXOGANQIWEKVzqLEp18T0wry9DoqJMm4Wi0vLDETA==" | ||
} | ||
@@ -30,7 +30,7 @@ }, | ||
"type": "text/javascript; charset=utf-8", | ||
"integrity": "sha256-refTwOXOmHI0H8rM8PY++HVgY4LrCLBzVHc2PasgJII= sha384-GJGDcJ7dgYnPZq6GhRWQZMTZYIqEApCV09Y1afJ6zvCUepk629ubPoeouXyQzSZ+ sha512-X4xVyqF5gTYS61e1R0JsQmhXOPrJlN3TTUiznTn+YJ+oiD0+uLWPNjkT43Yeb+irDRAhVtEmVIBhXsnYuS69YQ==", | ||
"integrity": "sha256-Za8dVp2vOgaB0Uu5okjt72FGl5y7IFh6covOZ7/FcMo= sha384-UWN03v/qe8BzrZZcYzMl7oAhufJ/1ISQzXUVaHfE+oUi+S1lC1bdzvzKi4qw6UkS sha512-8/0SFcA/XKU4C+wjGnP5sDzW0nmn+FVfoBSqIWyGTQmq2VgJZ5ypemLFFsD2dzNaa7T7I2Zwp3M6A95UmkoX9Q==", | ||
"hashes": { | ||
"sha256": "refTwOXOmHI0H8rM8PY++HVgY4LrCLBzVHc2PasgJII=", | ||
"sha384": "GJGDcJ7dgYnPZq6GhRWQZMTZYIqEApCV09Y1afJ6zvCUepk629ubPoeouXyQzSZ+", | ||
"sha512": "X4xVyqF5gTYS61e1R0JsQmhXOPrJlN3TTUiznTn+YJ+oiD0+uLWPNjkT43Yeb+irDRAhVtEmVIBhXsnYuS69YQ==" | ||
"sha256": "Za8dVp2vOgaB0Uu5okjt72FGl5y7IFh6covOZ7/FcMo=", | ||
"sha384": "UWN03v/qe8BzrZZcYzMl7oAhufJ/1ISQzXUVaHfE+oUi+S1lC1bdzvzKi4qw6UkS", | ||
"sha512": "8/0SFcA/XKU4C+wjGnP5sDzW0nmn+FVfoBSqIWyGTQmq2VgJZ5ypemLFFsD2dzNaa7T7I2Zwp3M6A95UmkoX9Q==" | ||
} | ||
@@ -41,7 +41,7 @@ }, | ||
"type": "text/javascript; charset=utf-8", | ||
"integrity": "sha256-Xz81e2H9gDVYQ70SZhjI6+rxQkSd8XpCvNyrDk9GN0A= sha384-Lvfjb7yGqSOuDnbHYVzopTYXYZD0LPOpjsVGBJwHxRH7x4//ni5yHMGFoOWpin7D sha512-ARtcsQOt9pNEGaaV93z7FxqaAVC9bpHWQdUJQ3i0gDMDAbsC6MarkQx7P8sIpomyb3tK8rXBc0F1GE0Lvlq6Tg==", | ||
"integrity": "sha256-3CDiNoil1AZlJA6tXUM1oz2QyALfDuKVszIC6831Tu8= sha384-6MM9vj7QroaBTpn6B7gMp7I/V9hU4z1YnPjvf8ZJOPpPuT+w84hMwbPiYlnITMR+ sha512-xoRN3aqKk1pl1T32HA8c885WWUZRGN6afsYg4aRUhvDEhJIAfo93LLVZgwZ2H0jny7AMU8IjY5nF6ZqTUmsNjA==", | ||
"hashes": { | ||
"sha256": "Xz81e2H9gDVYQ70SZhjI6+rxQkSd8XpCvNyrDk9GN0A=", | ||
"sha384": "Lvfjb7yGqSOuDnbHYVzopTYXYZD0LPOpjsVGBJwHxRH7x4//ni5yHMGFoOWpin7D", | ||
"sha512": "ARtcsQOt9pNEGaaV93z7FxqaAVC9bpHWQdUJQ3i0gDMDAbsC6MarkQx7P8sIpomyb3tK8rXBc0F1GE0Lvlq6Tg==" | ||
"sha256": "3CDiNoil1AZlJA6tXUM1oz2QyALfDuKVszIC6831Tu8=", | ||
"sha384": "6MM9vj7QroaBTpn6B7gMp7I/V9hU4z1YnPjvf8ZJOPpPuT+w84hMwbPiYlnITMR+", | ||
"sha512": "xoRN3aqKk1pl1T32HA8c885WWUZRGN6afsYg4aRUhvDEhJIAfo93LLVZgwZ2H0jny7AMU8IjY5nF6ZqTUmsNjA==" | ||
} | ||
@@ -48,0 +48,0 @@ } |
/*! | ||
* 1DS JS SDK Core, 3.1.9 | ||
* 1DS JS SDK Core, 3.1.10 | ||
* Copyright (c) Microsoft and contributors. All rights reserved. | ||
* (Microsoft Internal Only) | ||
*/ | ||
var e=this,n=function(c){"use strict";var a="function",u="object",n="undefined",f="prototype",o="hasOwnProperty",t=Object,l=t[f],r=t.assign,i=t.create,e=t.defineProperty,s=l[o];function g(){return typeof globalThis!==n&&globalThis?globalThis:typeof self!==n&&self?self:typeof window!==n&&window?window:typeof global!==n&&global?global:null}function d(e){throw new TypeError(e)}function v(e){if(i)return i(e);if(null==e)return{};var n=typeof e;function t(){}return n!==u&&n!==a&&d("Object prototype may only be an Object:"+e),t[f]=e,new t}(g()||{}).Symbol,(g()||{}).Reflect;var p=r||function(e){for(var n,t=1,r=arguments.length;t<r;t++)for(var i in n=arguments[t])l[o].call(n,i)&&(e[i]=n[i]);return e},h=function(e,n){return(h=t.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var t in n)n[o](t)&&(e[t]=n[t])})(e,n)};function m(e,n){function t(){this.constructor=e}typeof n!==a&&null!==n&&d("Class extends value "+n+" is not a constructor or null"),h(e,n),e[f]=null===n?v(n):(t[f]=n[f],new t)}function y(e,n){for(var t=0,r=n.length,i=e.length;t<r;t++,i++)e[i]=n[t];return e}var C={Unknown:0,NonRetryableStatus:1,InvalidEvent:2,SizeLimitExceeded:3,KillSwitch:4,QueueFull:5},S="constructor",x="prototype",b="function",I="_dynInstFuncs",T="_isDynProxy",w="_dynClass",P="_dynInstChk",E=P,N="_dfOpts",A="_unknown_",L="__proto__",k="useBaseInst",M="setInstFuncs",F=Object,O=F.getPrototypeOf,R=0;function D(e,n){return e&&F[x].hasOwnProperty.call(e,n)}function _(e){return e&&(e===F[x]||e===Array[x])}function j(e){return _(e)||e===Function[x]}function U(e){if(e){if(O)return O(e);if(e=e[L]||e[x]||(e[S]?e[S][x]:null))return e}return null}function V(e,n){var t=[],r=F.getOwnPropertyNames;if(r)t=r(e);else for(var i in e)"string"==typeof i&&D(e,i)&&t.push(i);if(t&&0<t.length)for(var o=0;o<t.length;o++)n(t[o])}function z(e,n,t){return n!==S&&typeof e[n]===b&&(t||D(e,n))}function B(e){throw new TypeError("DynamicProto: "+e)}function K(e,n){for(var t=e.length-1;0<=t;t--)if(e[t]===n)return 1}function H(e,n){return D(e,x)?e.name||n||A:((e||{})[S]||{}).name||n||A}function q(e,r,n,t){D(e,x)||B("theClass is an invalid class definition.");var i=e[x];!function(e){if(O)for(var n=[],t=U(r);t&&!j(t)&&!K(n,t);){if(t===e)return 1;n.push(t),t=U(t)}}(i)&&B("["+H(e)+"] is not in class hierarchy of ["+H(r)+"]");var o=null;D(i,w)?o=i[w]:(o="_dynCls$"+H(e,"_")+"$"+R,R++,i[w]=o);var a=q[N],u=!!a[k];u&&t&&t[k]!==undefined&&(u=!!t[k]);var l,s,c,f,g,d,e=(s={},V(l=r,function(e){!s[e]&&z(l,e,!1)&&(s[e]=l[e])}),s);n(r,function(e,n,t,o){function r(e,n,t){var r,i=n[t];return i[T]&&o&&!1!==(r=e[I]||{})[E]&&(i=(r[n[w]]||{})[t]||i),function(){return i.apply(e,arguments)}}var i={};V(t,function(e){i[e]=r(n,t,e)});for(var a=U(e),u=[];a&&!j(a)&&!K(u,a);)V(a,function(e){!i[e]&&z(a,e,!O)&&(i[e]=r(n,a,e))}),u.push(a),a=U(a);return i}(i,r,e,u)),a=!!O&&!!a[M],c=i,o=o,f=r,g=e,t=!1!==(a=a&&t?!!t[M]:a),_(c)||(a=f[I]=f[I]||{},d=a[o]=a[o]||{},!1!==a[E]&&(a[E]=!!t),V(f,function(e){var t,r,i;z(f,e,!1)&&f[e]!==g[e]&&(d[e]=f[e],delete f[e],D(c,e)&&(!c[e]||c[e][T])||(c[e]=(t=c,r=e,(i=function(){var e,n;return(function(e,n,t,r){var i=null;if(e&&D(t,w)){var o=e[I]||{};if((i=(o[t[w]]||{})[n])||B("Missing ["+n+"] "+b),!i[P]&&!1!==o[E]){for(var a=!D(e,n),u=U(e),l=[];a&&u&&!j(u)&&!K(l,u);){var s=u[n];if(s){a=s===r;break}l.push(u),u=U(u)}try{a&&(e[n]=i),i[P]=1}catch(c){o[E]=!1}}}return i}(this,r,t,i)||(typeof(n=(n=t[e=r])===i?U(t)[e]:n)!==b&&B("["+e+"] is not a "+b),n)).apply(this,arguments)})[T]=1,i)))}))}q[N]={setInstFuncs:!0,useBaseInst:!0},c.LoggingSeverity=void 0,(Sr=c.LoggingSeverity||(c.LoggingSeverity={}))[Sr.CRITICAL=1]="CRITICAL",Sr[Sr.WARNING=2]="WARNING";var W={BrowserDoesNotSupportLocalStorage:0,BrowserCannotReadLocalStorage:1,BrowserCannotReadSessionStorage:2,BrowserCannotWriteLocalStorage:3,BrowserCannotWriteSessionStorage:4,BrowserFailedRemovalFromLocalStorage:5,BrowserFailedRemovalFromSessionStorage:6,CannotSendEmptyTelemetry:7,ClientPerformanceMathError:8,ErrorParsingAISessionCookie:9,ErrorPVCalc:10,ExceptionWhileLoggingError:11,FailedAddingTelemetryToBuffer:12,FailedMonitorAjaxAbort:13,FailedMonitorAjaxDur:14,FailedMonitorAjaxOpen:15,FailedMonitorAjaxRSC:16,FailedMonitorAjaxSend:17,FailedMonitorAjaxGetCorrelationHeader:18,FailedToAddHandlerForOnBeforeUnload:19,FailedToSendQueuedTelemetry:20,FailedToReportDataLoss:21,FlushFailed:22,MessageLimitPerPVExceeded:23,MissingRequiredFieldSpecification:24,NavigationTimingNotSupported:25,OnError:26,SessionRenewalDateIsZero:27,SenderNotInitialized:28,StartTrackEventFailed:29,StopTrackEventFailed:30,StartTrackFailed:31,StopTrackFailed:32,TelemetrySampledAndNotSent:33,TrackEventFailed:34,TrackExceptionFailed:35,TrackMetricFailed:36,TrackPVFailed:37,TrackPVFailedCalc:38,TrackTraceFailed:39,TransmissionFailed:40,FailedToSetStorageBuffer:41,FailedToRestoreStorageBuffer:42,InvalidBackendResponse:43,FailedToFixDepricatedValues:44,InvalidDurationValue:45,TelemetryEnvelopeInvalid:46,CreateEnvelopeError:47,CannotSerializeObject:48,CannotSerializeObjectNonSerializable:49,CircularReferenceDetected:50,ClearAuthContextFailed:51,ExceptionTruncated:52,IllegalCharsInName:53,ItemNotInArray:54,MaxAjaxPerPVExceeded:55,MessageTruncated:56,NameTooLong:57,SampleRateOutOfRange:58,SetAuthContextFailed:59,SetAuthContextFailedAccountName:60,StringValueTooLong:61,StartCalledMoreThanOnce:62,StopCalledWithoutStart:63,TelemetryInitializerFailed:64,TrackArgumentsNotSpecified:65,UrlTooLong:66,SessionStorageBufferFull:67,CannotAccessCookie:68,IdTooLong:69,InvalidEvent:70,FailedMonitorAjaxSetRequestHeader:71,SendBrowserInfoOnUserInit:72,PluginException:73,NotificationException:74,SnippetScriptLoadFailure:99,InvalidInstrumentationKey:100,CannotParseAiBlobValue:101,InvalidContentBlob:102,TrackPageActionEventFailed:103,FailedAddingCustomDefinedRequestContext:104,InMemoryStorageBufferFull:105},G="attachEvent",J="addEventListener",X="detachEvent",Q="removeEventListener",Z=e;function $(e){return l.toString.call(e)}function Y(e,n){return typeof e===n}function ee(e){return e===undefined||typeof e===n}function ne(e){return null===e||ee(e)}function te(e){return!ne(e)}function re(e,n){return e&&s.call(e,n)}function ie(e){return typeof e===u}function oe(e){return typeof e===a}function ae(e,n,t,r){void 0===r&&(r=!1);var i=!1;if(!ne(e))try{ne(e[J])?ne(e[G])||(e[G]("on"+n,t),i=!0):(e[J](n,t,r),i=!0)}catch(o){}return i}function ue(e,n,t,r){if(void 0===r&&(r=!1),!ne(e))try{ne(e[Q])?ne(e[X])||e[X]("on"+n,t):e[Q](n,t,r)}catch(i){}}function le(e,n){if(e)for(var t in e)s.call(e,t)&&n.call(e,t,e[t])}function se(e,n){if(e&&n){var t=n.length,r=e.length;if(e===n)return!0;if(t<=r){for(var i=r-1,o=t-1;0<=o;o--){if(e[i]!=n[o])return!1;i--}return!0}}return!1}function ce(e,n){return!(!e||!n||!~e.indexOf(n))}function fe(e){return"[object Date]"===$(e)}function ge(e){return"[object Array]"===$(e)}function de(e){return"[object Error]"===$(e)}function ve(e){return"string"==typeof e}function pe(e){return"number"==typeof e}function he(e){return"boolean"==typeof e}function me(e){if(fe(e)){var n=function(e){return 1===(e=""+e).length?"0"+e:e};return e.getUTCFullYear()+"-"+n(1+e.getUTCMonth())+"-"+n(e.getUTCDate())+"T"+n(e.getUTCHours())+":"+n(e.getUTCMinutes())+":"+n(e.getUTCSeconds())+"."+(""+(e.getUTCMilliseconds()/1e3).toFixed(3)).slice(2,5)+"Z"}}function ye(e,n,t){var r=e.length;try{for(var i=0;i<r&&!(i in e&&-1===n.call(t||e,e[i],i,e));i++);}catch(o){}}function Ce(e,n,t){var r=e.length,t=t||0;try{for(var i=Math.max(0<=t?t:r-Math.abs(t),0);i<r;i++)if(i in e&&e[i]===n)return i}catch(o){}return-1}function Se(e,n,t){var r=e.length,i=t||e,o=Array(r);try{for(var a=0;a<r;a++)a in e&&(o[a]=n.call(i,e[a],e))}catch(u){}return o}function xe(e,n,t){var r,i=e.length,o=0;if(3<=arguments.length)r=t;else{for(;o<i&&!(o in e);)o++;r=e[o++]}for(;o<i;)o in e&&(r=n(r,e[o],o,e)),o++;return r}function be(e){return"string"!=typeof e?e:e.replace(/^\s+|\s+$/g,"")}var Ie=!{toString:null}.propertyIsEnumerable("toString"),Te=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"];function we(e){var n=typeof e;n===a||n===u&&null!==e||d("objKeys called on non-object");var t,r=[];for(t in e)e&&s.call(e,t)&&r.push(t);if(Ie)for(var i=Te.length,o=0;o<i;o++)e&&s.call(e,Te[o])&&r.push(Te[o]);return r}function Pe(e,n,t,r){if(Z)try{var i={enumerable:!0,configurable:!0};return t&&(i.get=t),r&&(i.set=r),Z(e,n,i),!0}catch(o){}return!1}function Ee(){var e=Date;return e.now?e.now():(new e).getTime()}function Ne(e){return de(e)?e.name:""}function Ae(e,n,t,r,i){var o=t;return e&&((o=e[n])===t||i&&!i(o)||r&&!r(t)||(e[n]=o=t)),o}function Le(e,n,t){var r;return e?!(r=e[n])&&ne(r)&&(r=ee(t)?{}:t,e[n]=r):r=ee(t)?{}:t,r}function ke(e){return!e}function Me(e){return!!e}function Fe(e){throw Error(e)}var Oe="window",Re="navigator",De="location",_e="performance",je="JSON",Ue="crypto",Ve="msCrypto",ze="msie",Be="trident/",Ke=null,He=null,qe=!1,We=null,Ge=null;function Je(e,n){var t,r=!1;if(e){try{(r=n in e)||(t=e[f])&&(r=n in t)}catch(i){}if(!r)try{r=!ee((new e)[n])}catch(i){}}return r}function Xe(e){var n=g();return n&&n[e]?n[e]:e===Oe&&Qe()?window:null}function Qe(){return!(typeof window!==u||!window)}function Ze(){return Qe()?window:Xe(Oe)}function $e(){return!(typeof document!==u||!document)}function Ye(){return $e()?document:Xe("document")}function en(){return!(typeof navigator!==u||!navigator)}function nn(){return en()?navigator:Xe(Re)}function tn(){return!(typeof history!==u||!history)}function rn(e){return e&&qe&&(e=Xe("__mockLocation"))?e:typeof location===u&&location?location:Xe(De)}function on(){return typeof console!==n?console:Xe("console")}function an(){return Xe(_e)}function un(){return!!(typeof JSON===u&&JSON||null!==Xe(je))}function ln(){return un()?JSON||Xe(je):null}function sn(){return Xe(Ue)}function cn(){return Xe(Ve)}function fn(){var e=nn();return!(!e||!e.product)&&"ReactNative"===e.product}function gn(){var e=nn();return!e||e.userAgent===He&&null!==Ke||(e=((He=e.userAgent)||"").toLowerCase(),Ke=ce(e,ze)||ce(e,Be)),Ke}function dn(e){var n=Object[f].toString.call(e),t="";return"[object Error]"===n?t="{ stack: '"+e.stack+"', message: '"+e.message+"', name: '"+e.name+"'":un()&&(t=ln().stringify(e)),n+t}function vn(){return Ge=null===Ge?en()&&!!nn().sendBeacon:Ge}function pn(){return We=null===We&&(We=typeof XDomainRequest!==undefined)&&hn()?We&&!Je(Xe("XMLHttpRequest"),"withCredentials"):We}function hn(){var e=!1;try{e=!!Xe("XMLHttpRequest")}catch(n){}return e}function mn(e){return e?'"'+e.replace(/\"/g,"")+'"':""}function yn(e,n){var t,r=on();r&&(t="log",oe(r[t=r[e]?e:t])&&r[t](n))}var Cn=(Sn.dataType="MessageData",Sn);function Sn(e,n,t,r){void 0===t&&(t=!1),this.messageId=e,this.message=(t?"AI: ":"AI (Internal): ")+e,e="",un()&&(e=ln().stringify(r)),e=(n?" message:"+mn(n):"")+(r?" props:"+mn(e):""),this.message+=e}function xn(e,n){return(e||{}).logger||new bn(n)}var bn=function jr(t){this.identifier="DiagnosticLogger",this.queue=[];var i=0,a={};q(jr,this,function(o){function e(e,n){return ne(e=t[e])?n:e}ne(t)&&(t={}),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,n,t,r,i){if(n=new Cn(n,t,i=void 0!==i&&i,r),o.enableDebugExceptions())throw n;t=e===c.LoggingSeverity.CRITICAL?"errorToConsole":"warnToConsole",ee(n.message)||(r=o.consoleLoggingLevel(),i?(i=+n.messageId,!a[i]&&e<=r&&(o[t](n.message),a[i]=!0)):e<=r&&o[t](n.message),o.logInternalMessage(e,n))},o.warnToConsole=function(e){yn("warn",e)},o.errorToConsole=function(e){yn("error",e)},o.resetInternalMessageCount=function(){i=0,a={}},o.logInternalMessage=function(e,n){var t,r;i>=o.maxInternalMessageLimit()||(t=!0,r="AITR_"+n.messageId,a[r]?t=!1:a[r]=!0,t&&(e<=o.telemetryLoggingLevel()&&(o.queue.push(n),i++),i===o.maxInternalMessageLimit()&&(n=new Cn(W.MessageLimitPerPVExceeded,e="Internal events throttle limit per PageView reached for this app.",!1),o.queue.push(n),o.warnToConsole(e))))}})},In=(Tn.ParentContextKey="parent",Tn.ChildrenContextKey="childEvts",Tn);function Tn(e,i,n){var t,o=this,a=!1;o.start=Ee(),o.name=e,o.isAsync=n,o.isChildEvt=function(){return!1},oe(i)&&(a=Pe(o,"payload",function(){return!t&&oe(i)&&(t=i(),i=null),t})),o.getCtx=function(e){return e?(e===Tn.ParentContextKey||e===Tn.ChildrenContextKey?o:o.ctx||{})[e]:null},o.setCtx=function(e,n){e&&(e===Tn.ParentContextKey?(o[e]||(o.isChildEvt=function(){return!0}),o[e]=n):e===Tn.ChildrenContextKey?o[e]=n:(o.ctx=o.ctx||{})[e]=n)},o.complete=function(){var e=0,n=o.getCtx(Tn.ChildrenContextKey);if(ge(n))for(var t=0;t<n.length;t++){var r=n[t];r&&(e+=r.time)}o.time=Ee()-o.start,o.exTime=o.time-e,o.complete=function(){},!a&&oe(i)&&(o.payload=i())}}var wn=function Ur(n){this.ctx={},q(Ur,this,function(t){t.create=function(e,n,t){return new In(e,n,t)},t.fire=function(e){e&&(e.complete(),n&&oe(n.perfEvent)&&n.perfEvent(e))},t.setCtx=function(e,n){e&&((t.ctx=t.ctx||{})[e]=n)},t.getCtx=function(e){return(t.ctx||{})[e]}})},Pn="CoreUtils.doPerf";function En(e,n,t,r,i){if(e){var o=e;if(o=oe(o.getPerfMgr)?o.getPerfMgr():o){var a,u=void 0,e=o.getCtx(Pn);try{if(u=o.create(n(),r,i))return e&&u.setCtx&&(u.setCtx(In.ParentContextKey,e),e.getCtx&&e.setCtx&&((a=e.getCtx(In.ChildrenContextKey))||(a=[],e.setCtx(In.ChildrenContextKey,a)),a.push(u))),o.setCtx(Pn,u),t(u)}catch(l){u&&u.setCtx&&u.setCtx("exception",l)}finally{u&&o.fire(u),o.setCtx(Pn,e)}}}return t()}var Nn=function(i,n){var o=this,a=null,u=oe(i.processTelemetry),l=oe(i.setNextPlugin);o._hasRun=!1,o.getPlugin=function(){return i},o.getNext=function(){return a},o.setNext=function(e){a=e},o.processTelemetry=function(t,r){r=r||n;var e=i?i.identifier:"TelemetryPluginChain";En(r?r.core():null,function(){return e+":processTelemetry"},function(){if(i&&u){o._hasRun=!0;try{r.setNext(a),l&&i.setNextPlugin(a),a&&(a._hasRun=!1),i.processTelemetry(t,r)}catch(n){var e=a&&a._hasRun;a&&e||r.diagLog().throwInternal(c.LoggingSeverity.CRITICAL,W.PluginException,"Plugin ["+i.identifier+"] failed during processTelemetry - "+dn(n)),a&&!e&&a.processTelemetry(t,r)}}else a&&(o._hasRun=!0,a.processTelemetry(t,r))},function(){return{item:t}},!t.sync)}};function An(e,n){var t=[];if(e&&0<e.length)for(var r=null,i=0;i<e.length;i++){var o=e[i];o&&oe(o.processTelemetry)&&(o=new Nn(o,n),t.push(o),r&&r.setNext(o),r=o)}return 0<t.length?t[0]:null}var Ln=function Vr(e,i,t,n){var r,o,a,u,l=this,s=null;null!==n&&(e&&oe(e.getPlugin)?s=function(e,n,t){var r=[],i=!t;if(e)for(;e;){var o=e.getPlugin();!i&&o!==t||(i=!0,r.push(o)),e=e.getNext()}return i||r.push(t),An(r,n)}(e,l,n||e.getPlugin()):n?(r=l,a=e,u=!1,(o=n)&&e&&(a=[],ye(e,function(e){!u&&e!==o||(u=!0,a.push(e))})),o&&!u&&(a=a||[]).push(o),s=An(a,r)):ee(n)&&(s=An(e,l))),l.core=function(){return t},l.diagLog=function(){return xn(t,i)},l.getCfg=function(){return i},l.getExtCfg=function(e,n){var t,r;return void 0===n&&(n={}),!i||(r=i.extensionConfig)&&e&&(t=r[e]),t||n},l.getConfig=function(e,n,t){var r;return void 0===t&&(t=!1),(e=l.getExtCfg(e,null))&&!ne(e[n])?r=e[n]:i&&!ne(i[n])&&(r=i[n]),ne(r)?t:r},l.hasNext=function(){return null!=s},l.getNext=function(){return s},l.setNext=function(e){s=e},l.processNext=function(e){var n=s;n&&(s=n.getNext(),n.processTelemetry(e,l))},l.createNew=function(e,n){return new Vr((e=void 0===e?null:e)||s,i,t,n)}},kn="extensionConfig",Mn="getPlugin",Fn=(On.prototype.initialize=function(e,n,t,r){this._baseTelInit(e,n,t,r)},On);function On(){var o=this,a=!1,u=null,l=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){l=e},o.processNext=function(e,n){n?n.processNext(e):l&&oe(l.processTelemetry)&&l.processTelemetry(e,null)},o._getTelCtx=function(e){var n=e=void 0===e?null:e;return n||(e=u||new Ln(null,{},o.core),n=l&&l[Mn]?e.createNew(null,l[Mn]):e.createNew(null,l)),n},o._baseTelInit=function(e,n,t,r){e&&Ae(e,kn,[],null,ne),!r&&n&&(r=n.getProcessTelContext().getNext());var i=l;l&&l[Mn]&&(i=l[Mn]()),o.core=n,u=new Ln(r,e,n,i),a=!0}}var Rn="processTelemetry",Dn="priority",_n="setNextPlugin",jn="isInitialized";function Un(n,t){for(var e=[],r=null,i=n.getNext();i;){var o=i.getPlugin();o&&(r&&oe(r[_n])&&oe(o[Rn])&&r[_n](o),oe(o[jn])&&o[jn]()||e.push(o),r=o,i=i.getNext())}ye(e,function(e){e.initialize(n.getCfg(),n.core(),t,n.getNext())})}function Vn(e){return e.sort(function(e,n){var t=0,r=oe(n[Rn]);return oe(e[Rn])?t=r?e[Dn]-n[Dn]:1:r&&(t=-1),t})}var zn,Bn=(m(Kn,zn=Fn),Kn._staticInit=(Pe(Pr=Kn.prototype,"ChannelControls",Pr.getChannelControls),void Pe(Pr,"channelQueue",Pr.getChannelControls)),Kn);function Kn(){var l,r=zn.call(this)||this;function s(e){e&&0<e.length&&(ye(e=e.sort(function(e,n){return e.priority-n.priority}),function(e){e.priority<500&&Fe("Channel has invalid priority"+e.identifier)}),l.push(e))}return r.identifier="ChannelControllerPlugin",r.priority=500,q(Kn,r,function(a,u){a.setNextPlugin=function(e){},a.processTelemetry=function(n,t){l&&ye(l,function(e){0<e.length&&r._getTelCtx(t).createNew(e).processNext(n)})},a.getChannelControls=function(){return l},a.initialize=function(n,t,r){var e,i,o;a.isInitialized()||(u.initialize(n,t,r),e=(n||{}).channels,i=r,l=[],e&&ye(e,s),i&&(o=[],ye(i,function(e){500<e.priority&&o.push(e)}),s(o)),ye(l,function(e){return Un(new Ln(e,n,t),r)}))}}),r}var Hn="toGMTString",qn="toUTCString",Wn="cookie",Gn="expires",Jn="enabled",Xn="isCookieUseDisabled",Qn="disableCookiesUsage",Zn="_ckMgr",$n="",Yn=null,et=null,nt=null,tt=Ye(),rt={},it={};function ot(e){return!e||e.isEnabled()}function at(e,n){var t,r;return e?t=e.getCookieMgr():n&&(t=n.cookieCfg[Zn]||ut(n)),t||(r=n,n=(e||{}).logger,(e=ut[Zn]||it[Zn])||(e=ut[Zn]=ut(r,n),it[Zn]=e),t=e),t}function ut(e,i){var n,t,s=(Ae(t=(n=e||it).cookieCfg=n.cookieCfg||{},"domain",n.cookieDomain,te,ne),Ae(t,"path",n.cookiePath||"/",null,ne),ne(t[Jn])&&(e=void 0,ee(n[Xn])||(e=!n[Xn]),ee(n[Qn])||(e=!n[Qn]),t[Jn]=e),t),c=s.path||"/",f=s.domain,r=!1!==s[Jn],g={isEnabled:function(){var e=r&<(i),n=it[Zn];return e&&n&&g!==n?ot(n):e},setEnabled:function(e){r=!1!==e},set:function(e,n,t,r,i){var o,a,u,l=!1;return ot(g)&&(o={},-1!=(u=(a=be(n||$n)).indexOf(";"))&&(a=be(n.substring(0,u)),o=st(n.substring(1+u))),Ae(o,"domain",r||f,Me,ee),ne(t)||(u=gn(),!ee(o[Gn])||0<(n=Ee()+1e3*t)&&((r=new Date).setTime(n),Ae(o,Gn,ct(r,u?Hn:qn)||ct(r,u?Hn:qn)||$n,Me)),u||Ae(o,"max-age",$n+t,null,ee)),(t=rn())&&"https:"===t.protocol&&(Ae(o,"secure",null,null,ee),(et=null===et?!dt((nn()||{}).userAgent):et)&&Ae(o,"SameSite","None",null,ee)),Ae(o,"path",i||c,null,ee),(s.setCookie||gt)(e,ft(a,o)),l=!0),l},get:function(e){var n=$n;return ot(g)?(s.getCookie||function(e){var n,t=$n;return tt&&(n=tt[Wn]||$n,nt!==n&&(rt=st(n),nt=n),t=be(rt[e]||$n)),t})(e):n},del:function(e,n){return!!ot(g)&&g.purge(e,n)},purge:function(e,n){var t,r=!1;return lt(i)&&((t={}).path=n||"/",t[Gn]="Thu, 01 Jan 1970 00:00:01 GMT",gn()||(t["max-age"]="0"),(s.delCookie||gt)(e,ft($n,t)),r=!0),r}};return g[Zn]=g}function lt(e){if(null===Yn){Yn=!1;try{Yn=(tt||{})[Wn]!==undefined}catch(n){e&&e.throwInternal(c.LoggingSeverity.WARNING,W.CannotAccessCookie,"Cannot access document.cookie - "+Ne(n),{exception:dn(n)})}}return Yn}function st(e){var t={};return e&&e.length&&ye(be(e).split(";"),function(e){var n;(e=be(e||$n))&&(-1==(n=e.indexOf("="))?t[e]=null:t[be(e.substring(0,n))]=be(e.substring(1+n)))}),t}function ct(e,n){return oe(e[n])?e[n]():null}function ft(e,n){var t=e||$n;return le(n,function(e,n){t+="; "+e+(ne(n)?$n:"="+n)}),t}function gt(e,n){tt&&(tt[Wn]=e+"="+n)}function dt(e){return!(!ve(e)||!ce(e,"CPU iPhone OS 12")&&!ce(e,"iPad; CPU OS 12")&&!(ce(e,"Macintosh; Intel Mac OS X 10_14")&&ce(e,"Version/")&&ce(e,"Safari"))&&(!ce(e,"Macintosh; Intel Mac OS X 10_14")||!se(e,"AppleWebKit/605.1.15 (KHTML, like Gecko)"))&&!ce(e,"Chrome/5")&&!ce(e,"Chrome/6")&&(!ce(e,"UnrealEngine")||ce(e,"Chrome"))&&!ce(e,"UCBrowser/12")&&!ce(e,"UCBrowser/11"))}var vt="_notificationManager";function pt(e,n){return new wn(n)}var ht,mt=function zr(){var n,u,l,t,r,s=!1;q(zr,this,function(a){a._extensions=[],u=new Bn,a.logger=new bn({loggingLevelConsole:c.LoggingSeverity.CRITICAL}),n=[],a.isInitialized=function(){return s},a.initialize=function(e,n,r,t){a.isInitialized()&&Fe("Core should not be initialized more than once"),e&&!ne(e.instrumentationKey)||Fe("Please provide instrumentation key"),l=t,a[vt]=t,a.config=e||{},a.config.enablePerfMgr&&Ae(a.config,"createPerfMgr",pt),e.extensions=ne(e.extensions)?[]:e.extensions,Le(e,kn).NotificationManager=t,r&&(a.logger=r),(t=[]).push.apply(t,y(y([],n),e.extensions));var t=Vn(t),i=[],o={};ye(t,function(e){(ne(e)||ne(e.initialize))&&Fe("Extensions must provide callback to initialize");var n=e.priority,t=e.identifier;e&&n&&(ne(o[n])?o[n]=t:r.warnToConsole("Two extensions have same priority #"+n+" - "+o[n]+", "+t)),(!n||n<u.priority)&&i.push(e)}),t.push(u),i.push(u),t=Vn(t),a._extensions=t,Un(new Ln([u],e,a),t),Un(new Ln(i,e,a),t),a._extensions=i,0===a.getTransmissionControls().length&&Fe("No channels available"),s=!0,a.releaseQueue()},a.getTransmissionControls=function(){return u.getChannelControls()},a.track=function(e){Ae(e,"iKey",a.config.instrumentationKey,null,ke),Ae(e,"time",me(new Date),null,ke),Ae(e,"ver","4.0",null,ne),a.isInitialized()?a.getProcessTelContext().processNext(e):n.push(e)},a.getProcessTelContext=function(){var e=a._extensions,n=e;return e&&0!==e.length||(n=[u]),new Ln(n,a.config,a)},a.getNotifyMgr=function(){return l||(l=v({addNotificationListener:function(e){},removeNotificationListener:function(e){},eventsSent:function(e){},eventsDiscarded:function(e,n){},eventsSendRequest:function(e,n){}}),a[vt]=l),l},a.getCookieMgr=function(){return r=r||ut(a.config,a.logger)},a.setCookieMgr=function(e){r=e},a.getPerfMgr=function(){return t||a.config&&a.config.enablePerfMgr&&oe(a.config.createPerfMgr)&&(t=a.config.createPerfMgr(a,a.getNotifyMgr())),t||null},a.setPerfMgr=function(e){t=e},a.eventCnt=function(){return n.length},a.releaseQueue=function(){0<n.length&&(ye(n,function(e){a.getProcessTelContext().processNext(e)}),n=[])}})},yt=function Br(e){this.listeners=[];var n=!!(e||{}).perfEvtsSendAll;q(Br,this,function(i){i.addNotificationListener=function(e){i.listeners.push(e)},i.removeNotificationListener=function(e){for(var n=Ce(i.listeners,e);-1<n;)i.listeners.splice(n,1),n=Ce(i.listeners,e)},i.eventsSent=function(n){ye(i.listeners,function(e){e&&e.eventsSent&&setTimeout(function(){return e.eventsSent(n)},0)})},i.eventsDiscarded=function(n,t){ye(i.listeners,function(e){e&&e.eventsDiscarded&&setTimeout(function(){return e.eventsDiscarded(n,t)},0)})},i.eventsSendRequest=function(t,r){ye(i.listeners,function(e){if(e&&e.eventsSendRequest)if(r)setTimeout(function(){return e.eventsSendRequest(t,r)},0);else try{e.eventsSendRequest(t,r)}catch(n){}})},i.perfEvent=function(t){t&&(!n&&t.isChildEvt()||ye(i.listeners,function(e){if(e&&e.perfEvent)if(t.isAsync)setTimeout(function(){return e.perfEvent(t)},0);else try{e.perfEvent(t)}catch(n){}}))}})},Ct=(m(St,ht=mt),St);function St(){var e=ht.call(this)||this,r=0;return q(St,e,function(t,i){function n(e){var n=t.getNotifyMgr();n&&n.eventsDiscarded([e],C.InvalidEvent)}t.initialize=function(e,n,t,r){i.initialize(e,n,t||new bn(e),r||new yt(e))},t.track=function(e){En(t.getPerfMgr(),function(){return"AppInsightsCore:track"},function(){null===e&&(n(e),Fe("Invalid telemetry item")),function(){if(ne(e.name))throw n(e),Error("telemetry name required")}(),i.track(e)},function(){return{item:e}},!e.sync)},t.addNotificationListener=function(e){var n=t.getNotifyMgr();n&&n.addNotificationListener(e)},t.removeNotificationListener=function(e){var n=t.getNotifyMgr();n&&n.removeNotificationListener(e)},t.pollInternalLogs=function(n){var e=t.config.diagnosticLogInterval;return e&&0<e||(e=1e4),r&&t.stopPollingInternalLogs(),r=setInterval(function(){var e=t.logger?t.logger.queue:[];ye(e,function(e){e={name:n||"InternalMessageId: "+e.messageId,iKey:t.config.instrumentationKey,time:me(new Date),baseType:Cn.dataType,baseData:{message:e.message}},t.track(e)}),e.length=0},e)},t.stopPollingInternalLogs=function(){r&&(clearInterval(r),r=0)}}),e}var xt=4294967296,bt=4294967295,It=!1,Tt=123456789,wt=987654321;function Pt(e){e<0&&(e>>>=0),Tt=123456789+e&bt,wt=987654321-e&bt,It=!0}function Et(){try{var e=2147483647&Ee();Pt((Math.random()*xt^e)+e)}catch(n){}}function Nt(e){return 0<e?Math.floor(At()/bt*(e+1))>>>0:0}function At(e){var n=(n=sn()||cn())&&n.getRandomValues?n.getRandomValues(new Uint32Array(1))[0]&bt:gn()?(It||Et(),Lt()&bt):Math.floor(xt*Math.random()|0);return e||(n>>>=0),n}function Lt(e){var n=((wt=36969*(65535&wt)+(wt>>16)&bt)<<16)+(65535&(Tt=18e3*(65535&Tt)+(Tt>>16)&bt))>>>0&bt|0;return e||(n>>>=0),n}var kt="visibilitychange",Mt="pagehide",Ft="pageshow";function Ot(e,n){var t=!1,r=Ze();return r&&(t=ae(r,e,n),t=ae(r.body,e,n)||t),(r=Ye())&&ae(r,e,n)||t}function Rt(e,n,t){var r,i=!1;return n&&e&&ge(e)&&(r=[],ye(e,function(e){ve(e)&&(t&&-1!==Ce(t,e)?r.push(e):i=Ot(e,n)||i)}),!i&&0<r.length&&(i=Rt(r,n))),i}function Dt(e,n){return Rt(["beforeunload","unload","pagehide"],e,n)}function _t(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(zt,function(e){var n=0|Nt(15);return("x"===e?n:3&n|8).toString(16)})}function jt(){var e=an();return e&&e.now?e.now():Ee()}function Ut(e){void 0===e&&(e=22);for(var n=At()>>>0,t=0,r="";r.length<e;)r+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"[0|63&n]||"",n>>>=6,5==++t&&(n=(At()<<2&4294967295|3&n)>>>0,t=0);return r}function Vt(){for(var e,n=["0","1","2","3","4","5","6","7","8","9","a","b","c","d","e","f"],t="",r=0;r<4;r++)t+=n[15&(e=At())]+n[e>>4&15]+n[e>>8&15]+n[e>>12&15]+n[e>>16&15]+n[e>>20&15]+n[e>>24&15]+n[e>>28&15];var i=n[8+(3&At())|0];return t.substr(0,8)+t.substr(9,4)+"4"+t.substr(13,3)+i+t.substr(16,3)+t.substr(19,12)}var zt=/[xy]/g,Bt={Attach:ae,AttachEvent:ae,Detach:ue,DetachEvent:ue},Kt={NotSet:0,Pii_DistinguishedName:1,Pii_GenericData:2,Pii_IPV4Address:3,Pii_IPv6Address:4,Pii_MailSubject:5,Pii_PhoneNumber:6,Pii_QueryString:7,Pii_SipAddress:8,Pii_SmtpAddress:9,Pii_Identity:10,Pii_Uri:11,Pii_Fqdn:12,Pii_IPV4AddressLegacy:13,CustomerContent_GenericContent:32},Ht={Normal:1,CostDeferred:2,RealTime:3,Immediate:4},qt={Unspecified:0,String:1,Int32:2,UInt32:3,Int64:4,UInt64:5,Double:6,Bool:7,Guid:8,DateTime:9},Wt=p(p({},W),{AuthHandShakeError:501,AuthRedirectFail:502,BrowserCannotReadLocalStorage:503,BrowserCannotWriteLocalStorage:504,BrowserDoesNotSupportLocalStorage:505,CannotParseBiBlobValue:506,CannotParseDataAttribute:507,CVPluginNotAvailable:508,DroppedEvent:509,ErrorParsingAISessionCookie:510,ErrorProvidedChannels:511,FailedToGetCookies:512,FailedToInitializeCorrelationVector:513,FailedToInitializeSDK:514,InvalidContentBlob:515,InvalidCorrelationValue:516,SessionRenewalDateIsZero:517,SendPostOnCompleteFailure:518,PostResponseHandler:519,SDKNotInitialized:520}),Gt="3.1.9",Jt="1DS-Web-JS-"+Gt,Xt="withCredentials",Qt=((Dr={})[0]=qt.Unspecified,Dr[2]=qt.Double,Dr[1]=qt.String,Dr[3]=qt.Bool,Dr[4098]=qt.Double,Dr[4097]=qt.String,Dr[4099]=qt.Bool,Dr),Zt=null,$t=!!Ye(),Yt=!!Ze();function er(e){return!(""===e||ne(e))}function nr(e){if(e){var n=e.indexOf("-");if(-1<n)return e.substring(0,n)}return""}function tr(){return Zt=null===Zt?!(ee(Uint8Array)||!ee(e=nn())&&e.userAgent&&(~(e=e.userAgent.toLowerCase()).indexOf("safari")||~e.indexOf("firefox"))&&!~e.indexOf("chrome")||fn()):Zt;var e}function rr(e){return!!(e&&pe(e)&&Ht.Normal<=e&&e<=Ht.Immediate)}function ir(e,n,t){if(!n&&!er(n)||"string"!=typeof e)return null;if("string"==(e=typeof n)||"number"==e||"boolean"==e||ge(n))n={value:n};else if("object"!=e||n.hasOwnProperty("value")){if(ne(n.value)||""===n.value||!ve(n.value)&&!pe(n.value)&&!he(n.value)&&!ge(n.value))return null}else n={value:t?JSON.stringify(n):n};if(ge(n.value)&&!pr(n.value))return null;if(!ne(n.kind)){if(ge(n.value)||!vr(n.kind))return null;n.value=n.value.toString()}return n}function or(e,n,t){var r=-1;return ee(e)||(0<n&&(32===n?r=8192:n<=13&&(r=n<<5)),0<=t&&t<=9?(-1===r&&(r=0),r|=t):(e=Qt[mr(e)]||-1,-1!==r&&-1!==e?r|=e:e===qt.Double&&(r=e))),r}function ar(){at(null).setEnabled(!1)}function ur(e,n,t){lt(null)&&at(null).set(e,n,86400*t,null,"/")}function lr(e){lt(null)&&at(null).del(e)}function sr(e){return lt(null)?cr(at(null),e):""}function cr(e,n,t){var r;return void 0===t&&(t=!0),e&&(r=e.get(n),t&&r&&decodeURIComponent&&(r=decodeURIComponent(r))),r||""}function fr(e){void 0===e&&(e="D");var n=_t();return"B"===e?n="{"+n+"}":"P"===e?n="("+n+")":"N"===e&&(n=n.replace(/-/g,"")),n}function gr(e,n,t,r,i){var o={},a=!1,u=0,l=arguments.length,s=Object[f],c=arguments;for("[object Boolean]"===s.toString.call(c[0])&&(a=c[0],u++);u<l;u++)le(c[u],function(t,e){a&&e&&ie(e)?ge(e)?(o[t]=o[t]||[],ye(e,function(e,n){e&&ie(e)?o[t][n]=gr(!0,o[t][n],e):o[t][n]=e})):o[t]=gr(!0,o[t],e):o[t]=e});return o}var dr=jt;function vr(e){return e===Kt.NotSet||e>Kt.NotSet&&e<=Kt.Pii_IPV4AddressLegacy||e===Kt.CustomerContent_GenericContent}function pr(e){return 0<e.length}function hr(e,n){e.timings=e.timings||{},e.timings.processTelemetryStart=e.timings.processTelemetryStart||{},e.timings.processTelemetryStart[n]=dr()}function mr(e){var n,t=0;return null!==e&&e!==undefined&&("string"==(n=typeof e)?t=1:"number"==n?t=2:"boolean"==n?t=3:n===u&&(t=4,ge(e)?(t=4096,0<e.length&&(t|=mr(e[0]))):re(e,"value")&&(t=8192|mr(e.value)))),t}var yr,Cr={Version:Gt,FullVersionString:Jt,strUndefined:n,strObject:u,Undefined:n,arrForEach:ye,arrIndexOf:Ce,arrMap:Se,arrReduce:xe,objKeys:we,toISOString:me,isReactNative:fn,isString:ve,isNumber:pe,isBoolean:he,isFunction:oe,isArray:ge,isObject:ie,strTrim:be,isDocumentObjectAvailable:$t,isWindowObjectAvailable:Yt,isValueAssigned:er,getTenantId:nr,isBeaconsSupported:vn,isUint8ArrayAvailable:tr,isLatency:rr,sanitizeProperty:ir,getISOString:me,useXDomainRequest:pn,getCommonSchemaMetaData:or,cookieAvailable:lt,disallowsSameSiteNone:dt,setCookie:ur,deleteCookie:lr,getCookie:sr,createGuid:fr,extend:gr,getTime:dr,isValueKind:vr,isArrayValid:pr,objDefineAccessors:Pe,addPageUnloadEventListener:Dt,setProcessTelemetryTimings:hr,addEventHandler:Ot,getFieldValueType:mr,strEndsWith:se,objForEachKey:le},Sr={_canUseCookies:undefined,isTypeof:Y,isUndefined:ee,isNullOrUndefined:ne,hasOwnProperty:re,isFunction:oe,isObject:ie,isDate:fe,isArray:ge,isError:de,isString:ve,isNumber:pe,isBoolean:he,toISOString:me,arrForEach:ye,arrIndexOf:Ce,arrMap:Se,arrReduce:xe,strTrim:be,objCreate:v,objKeys:we,objDefineAccessors:Pe,addEventHandler:Ot,dateNow:Ee,isIE:gn,disableCookies:ar,newGuid:_t,perfNow:jt,newId:Ut,randomValue:Nt,random32:At,mwcRandomSeed:function(e){e?Pt(e):Et()},mwcRandom32:Lt,generateW3CId:Vt},xr="version",br="properties";function Ir(){var e=yr.call(this)||this;return e.pluginVersionStringArr=[],e.pluginVersionString="",q(Ir,e,function(u,l){u.logger&&u.logger.queue||(u.logger=new bn({loggingLevelConsole:c.LoggingSeverity.CRITICAL})),u.initialize=function(r,i,o,a){En(u,function(){return"AppInsightsCore.initialize"},function(){if(r){if(r.endpointUrl||(r.endpointUrl="https://browser.events.data.microsoft.com/OneCollector/1.0/"),(e=r.propertyStorageOverride)&&(!e.getProperty||!e.setProperty))throw Error("Invalid property storage override passed.");r.channels&&ye(r.channels,function(e){e&&ye(e,function(e){e.identifier&&e.version&&(e=e.identifier+"="+e.version,u.pluginVersionStringArr.push(e))})})}u.getWParam=function(){return"undefined"!=typeof document?0:-1},i&&ye(i,function(e){e&&e.identifier&&e.version&&(e=e.identifier+"="+e.version,u.pluginVersionStringArr.push(e))}),u.pluginVersionString=u.pluginVersionStringArr.join(";");try{l.initialize(r,i,o,a),u.pollInternalLogs("InternalLog")}catch(t){var e,n=u.logger;~(e=dn(t)).indexOf("channels")&&(e+="\n - Channels must be provided through config.channels only!"),n.throwInternal(c.LoggingSeverity.CRITICAL,Wt.FailedToInitializeSDK,"SDK Initialization Failed - no telemetry will be sent: "+e)}},function(){return{config:r,extensions:i,logger:o,notificationManager:a}})},u.track=function(t){En(u,function(){return"AppInsightsCore.track"},function(){var e,n=t;n&&(n.timings=n.timings||{},n.timings.trackStart=dr(),rr(n.latency)||(n.latency=Ht.Normal),(e=n.ext=n.ext||{}).sdk=e.sdk||{},e.sdk.ver=Jt,(e=n.baseData=n.baseData||{})[br]||(e[br]={}),(e=e[br])[xr]||(e[xr]=""),""!==u.pluginVersionString&&(e[xr]=u.pluginVersionString)),l.track(n)},function(){return{item:t}},!t.sync)}}),e}var Tr,e=(m(Ir,yr=Ct),Ir);function wr(){var e=Tr.call(this)||this;return q(wr,e,function(o,a){o.initialize=function(e,n,t,r){e&&!e.endpointUrl&&(e.endpointUrl="https://browser.events.data.microsoft.com/OneCollector/1.0/"),o.getWParam=function(){return $t?0:-1};try{a.initialize(e,n,t,r)}catch(i){o.logger.throwInternal(c.LoggingSeverity.CRITICAL,Wt.FailedToInitializeSDK,"Initialization Failed: "+dn(i)+"\n - Note: Channels must be provided through config.channels only")}},o.track=function(e){var n=e;n&&((e=n.ext=n.ext||{}).sdk=e.sdk||{},e.sdk.ver=Jt),a.track(n)}}),e}var Pr=(m(wr,Tr=mt),wr),Er=oe;function Nr(n){var a=0,u=null,e=[];function i(t,r,i,o){e.push(function(){var e;try{(e=1===a?Er(t)?t(u):u:Er(r)?r(u):u)instanceof Nr?e.then(i,o):(2!==a||Er(r)?i:o)(e)}catch(n){return void o(n)}}),0!==a&&l()}function l(){var r;0<e.length&&(r=e.slice(),e=[],setTimeout(function(){for(var e=0,n=r.length;e<n;++e)try{r[e]()}catch(t){}},0))}function t(e){0===a&&(u=e,a=1,l())}function r(e){0===a&&(u=e,a=2,l())}q(Nr,this,function(n){n.then=function(t,r){return new Nr(function(e,n){i(t,r,e,n)})},n["catch"]=function(e){return n.then(null,e)}}),function(){if(!Er(n))throw new TypeError("ESPromise: resolvedFunc argument is not a Function");try{n(t,r)}catch(e){r(e)}}()}var Ar=(Nr.resolve=function(r){return r instanceof Nr?r:r&&Er(r.then)?new Nr(function(e,n){try{r.then(e,n)}catch(t){n(t)}}):new Nr(function(e){e(r)})},Nr.reject=function(t){return new Nr(function(e,n){n(t)})},Nr.all=function(u){if(u&&u.length)return new Nr(function(r,e){try{for(var i=[],o=0,n=0;n<u.length;n++){var t=u[n];t&&Er(t.then)?(o++,t.then(function(n,t){return function(e){n[t]=e,0==--o&&r(i)}}(i,n),e)):i[n]=t}0===o&&setTimeout(function(){r(i)},0)}catch(a){e(a)}})},Nr.race=function(i){return new Nr(function(n,t){if(i&&i.length)try{for(var r=0;r<i.length;r++)!function(){var e=i[r];e&&Er(e.then)?e.then(n,t):setTimeout(function(){n(e)},0)}()}catch(e){t(e)}})},Nr),Lr=0,kr=[],Mr=[],Fr=[];function Or(){return(new Date).getTime()}function Rr(e,n){var h=0,m=(e||"<unnamed>")+"."+Lr;function y(e){var n=g();n&&n.QUnit&&console&&console.log("ESPromiseScheduler["+m+"] "+e)}function C(e){n&&n.warnToConsole("ESPromiseScheduler["+m+"] "+e)}Lr++,q(Rr,this,function(e){var d=null,v=0;function p(e,n){for(var t=0;t<e.length;t++)if(e[t].id===n)return e.splice(t,1)[0];return null}e.scheduleEvent=function(t,e,u){var i=m+"."+v;v++,e&&(i+="-("+e+")");var o,a,n,r=i+"{"+h+"}";return h++,(e={evt:null,tm:Or(),id:r,isRunning:!1,isAborted:!1}).evt=d?(o=e,a=d,n=new Ar(function(n,t){var e=Or()-a.tm,r=a.id;y("["+i+"] is waiting for ["+r+":"+e+" ms] to complete before starting -- ["+Mr.length+"] waiting and ["+kr.length+"] running"),o.abort=function(e){o.abort=null,p(Mr,i),o.isAborted=!0,t(Error(e))},a.evt.then(function(e){p(Mr,i),g(o).then(n,t)},function(e){p(Mr,i),g(o).then(n,t)})}),Mr.push(o),n):g(e),(d=e).evt._schId=r,e.evt;function l(e){for(var n=Or(),t=n-6e5,r=e.length,i=0;i<r;){var o,a=e[i];a&&a.tm<t?(o=null,a.abort?(o="Aborting ["+a.id+"] due to Excessive runtime ("+(n-a.tm)+" ms)",a.abort(o)):o="Removing ["+a.id+"] due to Excessive runtime ("+(n-a.tm)+" ms)",C(o),e.splice(i,1),r--):i++}}function s(e,n){var t,r=!1,i=p(kr,e);i||(i=p(Fr,e),r=!0),i?(i.to&&(clearTimeout(i.to),i.to=null),t=Or()-i.tm,n?r?C("Timed out event ["+e+"] finally complete -- "+t+" ms"):y("Promise ["+e+"] Complete -- "+t+" ms"):(Fr.push(i),C("Event ["+e+"] Timed out and removed -- "+t+" ms"))):y("Failed to remove ["+e+"] from running queue"),d&&d.id===e&&(d=null),l(kr),l(Mr),l(Fr)}function c(n,t){return function(e){return s(n,!0),t&&t(e),e}}function f(r,o){var a=r.id;return new Ar(function(n,t){y("Event ["+a+"] Starting -- waited for "+(r.wTm||"--")+" ms"),r.isRunning=!0,r.abort=function(e){r.abort=null,r.isAborted=!0,s(a,!1),t(Error(e))};var e=o(a);e instanceof Ar?(u&&(r.to=setTimeout(function(){s(a,!1),t(Error("Timed out after ["+u+"] ms"))},u)),function i(n,e,t,r){e.then(function(e){return e instanceof Ar?(y("Event ["+n+"] returned a promise -- waiting"),i(n,e,t,r),e):c(n,t)(e)},c(n,r))}(a,e,function(e){y("Event ["+a+"] Resolving after "+(Or()-r.tm)+" ms"),n(e)},t)):(y("Promise ["+a+"] Auto completed as the start action did not return a promise"),n())})}function g(e){var n=Or();return e.wTm=n-e.tm,e.tm=n,e.isAborted?Ar.reject(Error("["+i+"] was aborted")):(kr.push(e),f(e,t))}}})}var p=(Rr.incomplete=function(){return kr},Rr.waitingToStart=function(){return Mr},Rr),Dr=(_r.getFieldType=mr,_r);function _r(e){var l=this,o={},a=[],u=[];function s(e,n){var t=o[e];if(!(i=t?t[n]:i)&&null!==i){if(ve(e)&&ve(n))if(0<u.length){for(var r=0;r<u.length;r++)if(u[r].handleField(e,n)){i={canHandle:!0,fieldHandler:u[r]};break}}else 0===a.length&&(i={canHandle:!0});if(!i&&null!==i)for(var i=null,r=0;r<a.length;r++)if(a[r].handleField(e,n)){i={canHandle:!0,handler:a[r],fieldHandler:null};break}(t=t||(o[e]={}))[n]=i}return i}function c(e,n,t,r,i,o){if(e.handler)return e.handler.property(n,t,i,o);if(!ne(i.kind)){if(4096==(4096&r)||!vr(i.kind))return null;i.value=i.value.toString()}return function u(r,i,o,e,n){var t,a;return n&&r&&(t=r.getSanitizer(i,o,e,n.kind,n.propertyType))&&(4===e?(a={},le(n.value,function(e,n){var t;er(n)&&(t=f(0,0,n),(t=u(r,i+"."+o,e,mr(n),t))&&(a[e]=t.value))}),n.value=a):n=t.call(l,e={path:i,name:o,type:e,prop:n,sanitizer:l})),n}(e.fieldHandler,n,t,r,i)}function f(e,n,t){return er(t)?{value:t}:null}e&&u.push(e),l.addSanitizer=function(e){e&&(a.push(e),o={})},l.addFieldSanitizer=function(e){e&&(u.push(e),o={})},l.handleField=function(e,n){return!!(n=s(e,n))&&n.canHandle},l.value=function(e,n,t,r){var i=s(e,n);if(i&&i.canHandle){if(!i||!i.canHandle)return null;if(i.handler)return i.handler.value(e,n,t,r);if(!ve(n)||ne(t)||""===t)return null;var o=null,a=mr(t);if(8192==(8192&a)){var u=-8193&a;if(!er((o=t).value)||1!=u&&2!=u&&3!=u&&4096!=(4096&u))return null}else 1===a||2===a||3===a||4096==(4096&a)?o=f(0,0,t):4===a&&(o=f(0,0,r?JSON.stringify(t):t));if(o)return c(i,e,n,a,o,r)}return null},l.property=function(e,n,t,r){var i=s(e,n);if(!i||!i.canHandle)return null;if(!ve(n)||ne(t)||!er(t.value))return null;var o=mr(t.value);return 0===o?null:c(i,e,n,o,t,r)}}c.AppInsightsCore=e,c.BaseCore=Pr,c.BaseTelemetryPlugin=Fn,c.CoreUtils=Sr,c.DiagnosticLogger=bn,c.ESPromise=Ar,c.ESPromiseScheduler=p,c.EventHelper=Bt,c.EventLatency=Ht,c.EventPersistence={Normal:1,Critical:2},c.EventPropertyType=qt,c.EventsDiscardedReason=C,c.FullVersionString=Jt,c.InternalAppInsightsCore=Ct,c.InternalBaseCore=mt,c.MinChannelPriorty=100,c.NotificationManager=yt,c.PerfEvent=In,c.PerfManager=wn,c.ProcessTelemetryContext=Ln,c.TraceLevel={NONE:0,ERROR:1,WARNING:2,INFORMATION:3},c.Undefined=n,c.Utils=Cr,c.ValueKind=Kt,c.ValueSanitizer=Dr,c.Version=Gt,c._ExtendedInternalMessageId=Wt,c._InternalLogMessage=Cn,c._InternalMessageId=W,c.addEventHandler=Ot,c.addEventListeners=Rt,c.addPageHideEventListener=function Kr(t,e){var n=!1;return e&&-1!==Ce(e,Mt)||(n=Ot(Mt,t)),!(n=(!e||-1===Ce(e,kt))&&Ot(kt,function(e){var n=Ye();t&&n&&"hidden"===n.visibilityState&&t(e)})||n)&&e?Kr(t):n},c.addPageShowEventListener=function Hr(t,e){var n=!1;return e&&-1!==Ce(e,Ft)||(n=Ot(Ft,t)),!(n=(!e||-1===Ce(e,kt))&&Ot(kt,function(e){var n=Ye();t&&n&&"visible"===n.visibilityState&&t(e)})||n)&&e?Hr(t):n},c.addPageUnloadEventListener=Dt,c.areCookiesSupported=lt,c.arrForEach=ye,c.arrIndexOf=Ce,c.arrMap=Se,c.arrReduce=xe,c.attachEvent=ae,c.cookieAvailable=lt,c.createCookieMgr=ut,c.createGuid=fr,c.dateNow=Ee,c.deleteCookie=lr,c.detachEvent=ue,c.disableCookies=ar,c.disallowsSameSiteNone=dt,c.doPerf=En,c.dumpObj=dn,c.extend=gr,c.generateW3CId=Vt,c.getCommonSchemaMetaData=or,c.getConsole=on,c.getCookie=sr,c.getCookieValue=cr,c.getCrypto=sn,c.getDocument=Ye,c.getExceptionName=Ne,c.getFieldValueType=mr,c.getGlobal=g,c.getGlobalInst=Xe,c.getHistory=function(){return tn()?history:Xe("history")},c.getIEVersion=function(e){var n;return ce(e=((e=(e=void 0===e?null:e)?e:(n=nn()||{})?(n.userAgent||"").toLowerCase():"")||"").toLowerCase(),ze)?parseInt(e.split(ze)[1]):ce(e,Be)&&(e=parseInt(e.split(Be)[1]))?e+4:null},c.getISOString=me,c.getJSON=ln,c.getLocation=rn,c.getMsCrypto=cn,c.getNavigator=nn,c.getPerformance=an,c.getSetValue=Le,c.getTenantId=nr,c.getTime=dr,c.getWindow=Ze,c.hasDocument=$e,c.hasHistory=tn,c.hasJSON=un,c.hasNavigator=en,c.hasOwnProperty=re,c.hasWindow=Qe,c.isArray=ge,c.isArrayValid=pr,c.isBeaconsSupported=vn,c.isBoolean=he,c.isChromium=function(){return!!Xe("chrome")},c.isDate=fe,c.isDocumentObjectAvailable=$t,c.isError=de,c.isFetchSupported=function(e){var n=!1;try{var n=!!Xe("fetch"),t=Xe("Request");n&&e&&t&&(n=Je(t,"keepalive"))}catch(r){}return n},c.isFunction=oe,c.isIE=gn,c.isLatency=rr,c.isNotTruthy=ke,c.isNullOrUndefined=ne,c.isNumber=pe,c.isObject=ie,c.isReactNative=fn,c.isString=ve,c.isTruthy=Me,c.isTypeof=Y,c.isUint8ArrayAvailable=tr,c.isUndefined=ee,c.isValueAssigned=er,c.isValueKind=vr,c.isWindowObjectAvailable=Yt,c.isXhrSupported=hn,c.newGuid=_t,c.newId=Ut,c.normalizeJsName=function(e){var n=e,t=/([^\w\d_$])/g;return t.test(e)?e.replace(t,"_"):n},c.objCreate=v,c.objDefineAccessors=Pe,c.objForEachKey=le,c.objKeys=we,c.openXhr=function(e,n,t,r,i){function o(e,n,t){try{e[n]=t}catch(r){}}void 0===r&&(r=!1),void 0===i&&(i=!1);var a=new XMLHttpRequest;return r&&o(a,"Microsoft_ApplicationInsights_BypassAjaxInstrumentation",r),t&&o(a,Xt,t),a.open(e,n,!i),t&&o(a,Xt,t),a},c.optimizeObject=function(e){return e&&t(r?r({},e):e)},c.perfNow=jt,c.proxyAssign=function(r,i,o){if(r&&i&&r!==i&&ie(r)&&ie(i))for(var e in i)!function(n){var e,t;ve(n)&&(oe(e=i[n])?o&&!o(n,!0,i,r)||(r[n]=(t=n,function(){return i[t].apply(i,arguments)})):o&&!o(n,!1,i,r)||(re(r,n)&&delete r[n],Pe(r,n,function(){return i[n]},function(e){i[n]=e})||(r[n]=e)))}(e);return r},c.random32=At,c.randomValue=Nt,c.safeGetCookieMgr=at,c.safeGetLogger=xn,c.sanitizeProperty=ir,c.setCookie=ur,c.setEnableEnvMocks=function(e){qe=e},c.setProcessTelemetryTimings=hr,c.setValue=Ae,c.strContains=ce,c.strEndsWith=se,c.strExtensionConfig=kn,c.strFunction=a,c.strIKey="iKey",c.strObject=u,c.strPrototype=f,c.strStartsWith=function(e,n){var t=!1;if(e&&n){var r=n.length;if(e===n)return!0;if(e.length>=r){for(var i=0;i<r;i++)if(e[i]!==n[i])return!1;t=!0}}return t},c.strTrim=be,c.strUndefined=n,c.throwError=Fe,c.toISOString=me,c.useXDomainRequest=pn,function(e,n,t){var r=Object.defineProperty;if(r)try{return r(e,n,t)}catch(i){}typeof t.value!==undefined&&(e[n]=t.value)}(c,"__esModule",{value:!0})};"object"==typeof exports&&"undefined"!=typeof module?n(exports):"function"==typeof define&&define.amd?define(["exports"],n):n((e="undefined"!=typeof globalThis?globalThis:e||self).oneDS=e.oneDS||{}); | ||
var e=this,n=function(c){"use strict";var u="function",a="object",n="undefined",h="prototype",o="hasOwnProperty",r=Object,l=r[h],m=r.assign,y=r.create,e=r.defineProperty,C=l[o],S=null;function x(e){return void 0===e&&(e=!0),S&&e||(typeof globalThis!==n&&globalThis&&(S=globalThis),typeof self!==n&&self&&(S=self),typeof window!==n&&window&&(S=window),typeof global!==n&&global&&(S=global)),S}function I(e){throw new TypeError(e)}function b(e){if(y)return y(e);if(null==e)return{};var n=typeof e;function t(){}return n!==a&&n!==u&&I("Object prototype may only be an Object:"+e),t[h]=e,new t}(x()||{}).Symbol,(x()||{}).Reflect;var T=m||function(e){for(var n,t=1,r=arguments.length;t<r;t++)for(var i in n=arguments[t])l[o].call(n,i)&&(e[i]=n[i]);return e},w=function(e,n){return(w=r.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var t in n)n[o](t)&&(e[t]=n[t])})(e,n)};function P(e,n){function t(){this.constructor=e}typeof n!==u&&null!==n&&I("Class extends value "+n+" is not a constructor or null"),w(e,n),e[h]=null===n?b(n):(t[h]=n[h],new t)}function E(e,n){for(var t=0,r=n.length,i=e.length;t<r;t++,i++)e[i]=n[t];return e}var N={Unknown:0,NonRetryableStatus:1,InvalidEvent:2,SizeLimitExceeded:3,KillSwitch:4,QueueFull:5},A="constructor",L="prototype",M="function",k="_dynInstFuncs",F="_isDynProxy",O="_dynClass",R="_dynInstChk",D=R,_="_dfOpts",j="_unknown_",U="__proto__",V="useBaseInst",z="setInstFuncs",B=Object,K=B.getPrototypeOf,H=0;function q(e,n){return e&&B[L].hasOwnProperty.call(e,n)}function W(e){return e&&(e===B[L]||e===Array[L])}function G(e){return W(e)||e===Function[L]}function J(e){if(e){if(K)return K(e);e=e[U]||e[L]||(e[A]?e[A][L]:null);if(e)return e}return null}function X(e,n){var t=[],r=B.getOwnPropertyNames;if(r)t=r(e);else for(var i in e)"string"==typeof i&&q(e,i)&&t.push(i);if(t&&0<t.length)for(var o=0;o<t.length;o++)n(t[o])}function Q(e,n,t){return n!==A&&typeof e[n]===M&&(t||q(e,n))}function Z(e){throw new TypeError("DynamicProto: "+e)}function $(e,n){for(var t=e.length-1;0<=t;t--)if(e[t]===n)return 1}function Y(e,n){return q(e,L)?e.name||n||j:((e||{})[A]||{}).name||n||j}function ee(e,r,n,t){q(e,L)||Z("theClass is an invalid class definition.");var c,i,o,a,f,g,u=e[L],l=(function(e){if(K)for(var n=[],t=J(r);t&&!G(t)&&!$(n,t);){if(t===e)return 1;n.push(t),t=J(t)}}(u)||Z("["+Y(e)+"] is not in class hierarchy of ["+Y(r)+"]"),null),e=(q(u,O)?l=u[O]:(l="_dynCls$"+Y(e,"_")+"$"+H,H++,u[O]=l),ee[_]),s=!!e[V],d=(s&&t&&t[V]!==undefined&&(s=!!t[V]),i={},X(c=r,function(e){!i[e]&&Q(c,e,!1)&&(i[e]=c[e])}),i),s=(n(r,function(e,n,t,o){function r(e,n,t){var r,i=n[t];return i[F]&&o&&!1!==(r=e[k]||{})[D]&&(i=(r[n[O]]||{})[t]||i),function(){return i.apply(e,arguments)}}for(var i={},a=(X(t,function(e){i[e]=r(n,t,e)}),J(e)),u=[];a&&!G(a)&&!$(u,a);)X(a,function(e){!i[e]&&Q(a,e,!K)&&(i[e]=r(n,a,e))}),u.push(a),a=J(a);return i}(u,r,d,s)),!!K&&!!e[z]);o=u,n=l,a=r,f=d,e=!1!==(s=s&&t?!!t[z]:s),W(o)||(u=a[k]=a[k]||{},g=u[n]=u[n]||{},!1!==u[D]&&(u[D]=!!e),X(a,function(e){var t,r,i;Q(a,e,!1)&&a[e]!==f[e]&&(g[e]=a[e],delete a[e],q(o,e)&&(!o[e]||o[e][F])||(o[e]=(t=o,r=e,(i=function(){var e,n;return(function(e,n,t,c){var r=null;if(e&&q(t,O)){var i=e[k]||{};if((r=(i[t[O]]||{})[n])||Z("Missing ["+n+"] "+M),!r[R]&&!1!==i[D]){for(var o=!q(e,n),a=J(e),u=[];o&&a&&!G(a)&&!$(u,a);){var l=a[n];if(l){o=l===c;break}u.push(a),a=J(a)}try{o&&(e[n]=r),r[R]=1}catch(s){i[D]=!1}}}return r}(this,r,t,i)||(typeof(n=(n=t[e=r])===i?J(t)[e]:n)!==M&&Z("["+e+"] is not a "+M),n)).apply(this,arguments)})[F]=1,i)))}))}ee[_]={setInstFuncs:!0,useBaseInst:!0},c.LoggingSeverity=void 0,(Vn=c.LoggingSeverity||(c.LoggingSeverity={}))[Vn.CRITICAL=1]="CRITICAL",Vn[Vn.WARNING=2]="WARNING";var ne={BrowserDoesNotSupportLocalStorage:0,BrowserCannotReadLocalStorage:1,BrowserCannotReadSessionStorage:2,BrowserCannotWriteLocalStorage:3,BrowserCannotWriteSessionStorage:4,BrowserFailedRemovalFromLocalStorage:5,BrowserFailedRemovalFromSessionStorage:6,CannotSendEmptyTelemetry:7,ClientPerformanceMathError:8,ErrorParsingAISessionCookie:9,ErrorPVCalc:10,ExceptionWhileLoggingError:11,FailedAddingTelemetryToBuffer:12,FailedMonitorAjaxAbort:13,FailedMonitorAjaxDur:14,FailedMonitorAjaxOpen:15,FailedMonitorAjaxRSC:16,FailedMonitorAjaxSend:17,FailedMonitorAjaxGetCorrelationHeader:18,FailedToAddHandlerForOnBeforeUnload:19,FailedToSendQueuedTelemetry:20,FailedToReportDataLoss:21,FlushFailed:22,MessageLimitPerPVExceeded:23,MissingRequiredFieldSpecification:24,NavigationTimingNotSupported:25,OnError:26,SessionRenewalDateIsZero:27,SenderNotInitialized:28,StartTrackEventFailed:29,StopTrackEventFailed:30,StartTrackFailed:31,StopTrackFailed:32,TelemetrySampledAndNotSent:33,TrackEventFailed:34,TrackExceptionFailed:35,TrackMetricFailed:36,TrackPVFailed:37,TrackPVFailedCalc:38,TrackTraceFailed:39,TransmissionFailed:40,FailedToSetStorageBuffer:41,FailedToRestoreStorageBuffer:42,InvalidBackendResponse:43,FailedToFixDepricatedValues:44,InvalidDurationValue:45,TelemetryEnvelopeInvalid:46,CreateEnvelopeError:47,CannotSerializeObject:48,CannotSerializeObjectNonSerializable:49,CircularReferenceDetected:50,ClearAuthContextFailed:51,ExceptionTruncated:52,IllegalCharsInName:53,ItemNotInArray:54,MaxAjaxPerPVExceeded:55,MessageTruncated:56,NameTooLong:57,SampleRateOutOfRange:58,SetAuthContextFailed:59,SetAuthContextFailedAccountName:60,StringValueTooLong:61,StartCalledMoreThanOnce:62,StopCalledWithoutStart:63,TelemetryInitializerFailed:64,TrackArgumentsNotSpecified:65,UrlTooLong:66,SessionStorageBufferFull:67,CannotAccessCookie:68,IdTooLong:69,InvalidEvent:70,FailedMonitorAjaxSetRequestHeader:71,SendBrowserInfoOnUserInit:72,PluginException:73,NotificationException:74,SnippetScriptLoadFailure:99,InvalidInstrumentationKey:100,CannotParseAiBlobValue:101,InvalidContentBlob:102,TrackPageActionEventFailed:103,FailedAddingCustomDefinedRequestContext:104,InMemoryStorageBufferFull:105},te="attachEvent",re="addEventListener",ie="detachEvent",oe="removeEventListener",ae="toISOString",ue=e;function le(e){return l.toString.call(e)}function se(e,n){return typeof e===n}function d(e){return e===undefined||typeof e===n}function v(e){return null===e||d(e)}function ce(e){return!v(e)}function fe(e,n){return e&&C.call(e,n)}function ge(e){return typeof e===a}function f(e){return typeof e===u}function de(e,n,t,r){void 0===r&&(r=!1);var i=!1;if(!v(e))try{v(e[re])?v(e[te])||(e[te]("on"+n,t),i=!0):(e[re](n,t,r),i=!0)}catch(o){}return i}function ve(e,n,t,r){if(void 0===r&&(r=!1),!v(e))try{v(e[oe])?v(e[ie])||e[ie]("on"+n,t):e[oe](n,t,r)}catch(i){}}function pe(e,n){if(e)for(var t in e)C.call(e,t)&&n.call(e,t,e[t])}function he(e,n){if(e&&n){var t=n.length,r=e.length;if(e===n)return!0;if(t<=r){for(var i=r-1,o=t-1;0<=o;o--){if(e[i]!=n[o])return!1;i--}return!0}}return!1}function t(e,n){return!(!e||!n||!~e.indexOf(n))}function me(e){return"[object Date]"===le(e)}function ye(e){return"[object Array]"===le(e)}function Ce(e){return"[object Error]"===le(e)}function Se(e){return"string"==typeof e}function xe(e){return"number"==typeof e}function Ie(e){return"boolean"==typeof e}function be(e){var n;if(e)return e[ae]?e[ae]():me(e)?(n=function(e){e=""+e;return 1===e.length?"0"+e:e},e.getUTCFullYear()+"-"+n(1+e.getUTCMonth())+"-"+n(e.getUTCDate())+"T"+n(e.getUTCHours())+":"+n(e.getUTCMinutes())+":"+n(e.getUTCSeconds())+"."+(""+(e.getUTCMilliseconds()/1e3).toFixed(3)).slice(2,5)+"Z"):void 0}function g(e,n,t){var r=e.length;try{for(var i=0;i<r&&!(i in e&&-1===n.call(t||e,e[i],i,e));i++);}catch(o){}}function Te(e,n,t){var r=e.length,t=t||0;try{for(var i=Math.max(0<=t?t:r-Math.abs(t),0);i<r;i++)if(i in e&&e[i]===n)return i}catch(o){}return-1}function we(e,n,t){var r=e.length,i=t||e,o=Array(r);try{for(var a=0;a<r;a++)a in e&&(o[a]=n.call(i,e[a],e))}catch(u){}return o}function Pe(e,n,t){var r,i=e.length,o=0;if(3<=arguments.length)r=t;else{for(;o<i&&!(o in e);)o++;r=e[o++]}for(;o<i;)o in e&&(r=n(r,e[o],o,e)),o++;return r}function Ee(e){return"string"!=typeof e?e:e.replace(/^\s+|\s+$/g,"")}var Ne=!{toString:null}.propertyIsEnumerable("toString"),Ae=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"];function Le(e){var n,t=typeof e,r=(t===u||t===a&&null!==e||I("objKeys called on non-object"),[]);for(n in e)e&&C.call(e,n)&&r.push(n);if(Ne)for(var i=Ae.length,o=0;o<i;o++)e&&C.call(e,Ae[o])&&r.push(Ae[o]);return r}function Me(e,n,t,r){if(ue)try{var i={enumerable:!0,configurable:!0};return t&&(i.get=t),r&&(i.set=r),ue(e,n,i),!0}catch(o){}return!1}function ke(){var e=Date;return e.now?e.now():(new e).getTime()}function Fe(e){return Ce(e)?e.name:""}function p(e,n,t,r,i){var o=t;return e&&((o=e[n])===t||i&&!i(o)||r&&!r(t)||(e[n]=o=t)),o}function Oe(e,n,t){var r;return e?!(r=e[n])&&v(r)&&(r=d(t)?{}:t,e[n]=r):r=d(t)?{}:t,r}function Re(e){return!e}function De(e){return!!e}function _e(e){throw Error(e)}var je="window",Ue="navigator",Ve="location",ze="performance",Be="JSON",Ke="crypto",He="msCrypto",qe="msie",We="trident/",Ge=null,Je=null,Xe=!1,Qe=null,Ze=null;function $e(e,n){var t,r=!1;if(e){try{(r=n in e)||(t=e[h])&&(r=n in t)}catch(i){}if(!r)try{r=!d((new e)[n])}catch(i){}}return r}function i(e){var n=x();return n&&n[e]?n[e]:e===je&&Ye()?window:null}function Ye(){return!(typeof window!==a||!window)}function en(){return Ye()?window:i(je)}function nn(){return!(typeof document!==a||!document)}function tn(){return nn()?document:i("document")}function rn(){return!(typeof navigator!==a||!navigator)}function on(){return rn()?navigator:i(Ue)}function an(){return!(typeof history!==a||!history)}function un(e){if(e&&Xe){e=i("__mockLocation");if(e)return e}return typeof location===a&&location?location:i(Ve)}function ln(){return typeof console!==n?console:i("console")}function sn(){return i(ze)}function cn(){return!!(typeof JSON===a&&JSON||null!==i(Be))}function fn(){return cn()?JSON||i(Be):null}function gn(){return i(Ke)}function dn(){return i(He)}function vn(){var e=on();return!(!e||!e.product)&&"ReactNative"===e.product}function pn(){var e=on();return!e||e.userAgent===Je&&null!==Ge||(e=((Je=e.userAgent)||"").toLowerCase(),Ge=t(e,qe)||t(e,We)),Ge}function hn(e){var n=Object[h].toString.call(e),t="";return"[object Error]"===n?t="{ stack: '"+e.stack+"', message: '"+e.message+"', name: '"+e.name+"'":cn()&&(t=fn().stringify(e)),n+t}function mn(){return Ze=null===Ze?rn()&&!!on().sendBeacon:Ze}function yn(){return Qe=null===Qe&&(Qe="undefined"!=typeof XDomainRequest)&&Cn()?Qe&&!$e(i("XMLHttpRequest"),"withCredentials"):Qe}function Cn(){var e=!1;try{e=!!i("XMLHttpRequest")}catch(n){}return e}var Sn,xn=["eventsSent","eventsDiscarded","eventsSendRequest","perfEvent"],In=null;function bn(e){var n=In;return(n=n||!0===e.disableDbgExt?n:In||(e=i("Microsoft"),In=e?e.ApplicationInsights:In))?n.ChromeDbgExt:null}function Tn(e){return e?'"'+e.replace(/\"/g,"")+'"':""}function wn(e,n){var t,r=ln();r&&(t="log",f(r[t=r[e]?e:t])&&r[t](n))}En.dataType="MessageData";var Pn=En;function En(e,n,t,r){void 0===t&&(t=!1),this.messageId=e,this.message=(t?"AI: ":"AI (Internal): ")+e;t="",cn()&&(t=fn().stringify(r)),e=(n?" message:"+Tn(n):"")+(r?" props:"+Tn(t):"");this.message+=e}function Nn(e,n){return(e||{}).logger||new An(n)}var An=function Hr(r){this.identifier="DiagnosticLogger",this.queue=[];var i=0,u={};ee(Hr,this,function(o){function e(e,n){e=r[e];return v(e)?n:e}function a(e,n){var t=bn(r);t&&t.diagLog&&t.diagLog(e,n)}v(r)&&(r={}),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,n,t,r,i){n=new Pn(n,t,i=void 0!==i&&i,r);if(o.enableDebugExceptions())throw n;t=e===c.LoggingSeverity.CRITICAL?"errorToConsole":"warnToConsole";d(n.message)?a("throw"+(e===c.LoggingSeverity.CRITICAL?"Critical":"Warning"),n):(r=o.consoleLoggingLevel(),i?(i=+n.messageId,!u[i]&&e<=r&&(o[t](n.message),u[i]=!0)):e<=r&&o[t](n.message),o.logInternalMessage(e,n))},o.warnToConsole=function(e){wn("warn",e),a("warning",e)},o.errorToConsole=function(e){wn("error",e),a("error",e)},o.resetInternalMessageCount=function(){i=0,u={}},o.logInternalMessage=function(e,n){var t,r;i>=o.maxInternalMessageLimit()||(r=!0,t="AITR_"+n.messageId,u[t]?r=!1:u[t]=!0,r&&(e<=o.telemetryLoggingLevel()&&(o.queue.push(n),i++,a(e===c.LoggingSeverity.CRITICAL?"error":"warn",n)),i===o.maxInternalMessageLimit()&&(r=new Pn(ne.MessageLimitPerPVExceeded,t="Internal events throttle limit per PageView reached for this app.",!1),o.queue.push(r),e===c.LoggingSeverity.CRITICAL?o.errorToConsole(t):o.warnToConsole(t))))}})},Ln=(Mn.ParentContextKey="parent",Mn.ChildrenContextKey="childEvts",Mn);function Mn(e,i,n){var t,o=this,a=!1;o.start=ke(),o.name=e,o.isAsync=n,o.isChildEvt=function(){return!1},f(i)&&(a=Me(o,"payload",function(){return!t&&f(i)&&(t=i(),i=null),t})),o.getCtx=function(e){return e?(e===Mn.ParentContextKey||e===Mn.ChildrenContextKey?o:o.ctx||{})[e]:null},o.setCtx=function(e,n){e&&(e===Mn.ParentContextKey?(o[e]||(o.isChildEvt=function(){return!0}),o[e]=n):e===Mn.ChildrenContextKey?o[e]=n:(o.ctx=o.ctx||{})[e]=n)},o.complete=function(){var e=0,n=o.getCtx(Mn.ChildrenContextKey);if(ye(n))for(var t=0;t<n.length;t++){var r=n[t];r&&(e+=r.time)}o.time=ke()-o.start,o.exTime=o.time-e,o.complete=function(){},!a&&f(i)&&(o.payload=i())}}var kn=function qr(n){this.ctx={},ee(qr,this,function(t){t.create=function(e,n,t){return new Ln(e,n,t)},t.fire=function(e){e&&(e.complete(),n&&f(n.perfEvent)&&n.perfEvent(e))},t.setCtx=function(e,n){e&&((t.ctx=t.ctx||{})[e]=n)},t.getCtx=function(e){return(t.ctx||{})[e]}})},Fn="CoreUtils.doPerf";function On(e,n,t,r,i){if(e)if(e=f(e.getPerfMgr)?e.getPerfMgr():e){var o,a=void 0,u=e.getCtx(Fn);try{if(a=e.create(n(),r,i))return u&&a.setCtx&&(a.setCtx(Ln.ParentContextKey,u),u.getCtx&&u.setCtx&&((o=u.getCtx(Ln.ChildrenContextKey))||(o=[],u.setCtx(Ln.ChildrenContextKey,o)),o.push(a))),e.setCtx(Fn,a),t(a)}catch(l){a&&a.setCtx&&a.setCtx("exception",l)}finally{a&&e.fire(a),e.setCtx(Fn,u)}}return t()}var Rn=function(i,n){var o=this,a=null,u=f(i.processTelemetry),l=f(i.setNextPlugin);o._hasRun=!1,o.getPlugin=function(){return i},o.getNext=function(){return a},o.setNext=function(e){a=e},o.processTelemetry=function(t,r){r=r||n;var e=i?i.identifier:"TelemetryPluginChain";On(r?r.core():null,function(){return e+":processTelemetry"},function(){if(i&&u){o._hasRun=!0;try{r.setNext(a),l&&i.setNextPlugin(a),a&&(a._hasRun=!1),i.processTelemetry(t,r)}catch(n){var e=a&&a._hasRun;a&&e||r.diagLog().throwInternal(c.LoggingSeverity.CRITICAL,ne.PluginException,"Plugin ["+i.identifier+"] failed during processTelemetry - "+hn(n)),a&&!e&&a.processTelemetry(t,r)}}else a&&(o._hasRun=!0,a.processTelemetry(t,r))},function(){return{item:t}},!t.sync)}};function Dn(e,n){var t=[];if(e&&0<e.length)for(var r=null,i=0;i<e.length;i++){var o=e[i];o&&f(o.processTelemetry)&&(o=new Rn(o,n),t.push(o),r&&r.setNext(o),r=o)}return 0<t.length?t[0]:null}var _n=function Wr(e,i,t,n){var r,o,a,u,l=this,s=null;null!==n&&(e&&f(e.getPlugin)?s=function(e,n,t){var r=[],i=!t;if(e)for(;e;){var o=e.getPlugin();!i&&o!==t||(i=!0,r.push(o)),e=e.getNext()}return i||r.push(t),Dn(r,n)}(e,l,n||e.getPlugin()):n?(r=l,a=e,u=!1,(o=n)&&e&&(a=[],g(e,function(e){!u&&e!==o||(u=!0,a.push(e))})),o&&!u&&(a=a||[]).push(o),s=Dn(a,r)):d(n)&&(s=Dn(e,l))),l.core=function(){return t},l.diagLog=function(){return Nn(t,i)},l.getCfg=function(){return i},l.getExtCfg=function(e,n){var t,r;return void 0===n&&(n={}),!i||(r=i.extensionConfig)&&e&&(t=r[e]),t||n},l.getConfig=function(e,n,t){void 0===t&&(t=!1);var r,e=l.getExtCfg(e,null);return e&&!v(e[n])?r=e[n]:i&&!v(i[n])&&(r=i[n]),v(r)?t:r},l.hasNext=function(){return null!=s},l.getNext=function(){return s},l.setNext=function(e){s=e},l.processNext=function(e){var n=s;n&&(s=n.getNext(),n.processTelemetry(e,l))},l.createNew=function(e,n){return new Wr((e=void 0===e?null:e)||s,i,t,n)}},jn="extensionConfig",Un="getPlugin",Vn=(zn.prototype.initialize=function(e,n,t,r){this._baseTelInit(e,n,t,r)},zn);function zn(){var o=this,a=!1,u=null,l=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){l=e},o.processNext=function(e,n){n?n.processNext(e):l&&f(l.processTelemetry)&&l.processTelemetry(e,null)},o._getTelCtx=function(e){var n,e=e=void 0===e?null:e;return e||(n=u||new _n(null,{},o.core),e=l&&l[Un]?n.createNew(null,l[Un]):n.createNew(null,l)),e},o._baseTelInit=function(e,n,t,r){e&&p(e,jn,[],null,v),!r&&n&&(r=n.getProcessTelContext().getNext());var i=l;l&&l[Un]&&(i=l[Un]()),o.core=n,u=new _n(r,e,n,i),a=!0}}var Bn="processTelemetry",Kn="priority",Hn="setNextPlugin",qn="isInitialized";function Wn(n,t){for(var e=[],r=null,i=n.getNext();i;){var o=i.getPlugin();o&&(r&&f(r[Hn])&&f(o[Bn])&&r[Hn](o),f(o[qn])&&o[qn]()||e.push(o),r=o,i=i.getNext())}g(e,function(e){e.initialize(n.getCfg(),n.core(),t,n.getNext())})}function Gn(e){return e.sort(function(e,n){var t=0,r=f(n[Bn]);return f(e[Bn])?t=r?e[Kn]-n[Kn]:1:r&&(t=-1),t})}P(Qn,Jn=Vn),Qn._staticInit=(Me(e=Qn.prototype,"ChannelControls",e.getChannelControls),void Me(e,"channelQueue",e.getChannelControls));var Jn,Xn=Qn;function Qn(){var l,r=Jn.call(this)||this;function s(e){e&&0<e.length&&(g(e=e.sort(function(e,n){return e.priority-n.priority}),function(e){e.priority<500&&_e("Channel has invalid priority"+e.identifier)}),l.push(e))}return r.identifier="ChannelControllerPlugin",r.priority=500,ee(Qn,r,function(a,u){a.setNextPlugin=function(e){},a.processTelemetry=function(n,t){l&&g(l,function(e){0<e.length&&r._getTelCtx(t).createNew(e).processNext(n)})},a.getChannelControls=function(){return l},a.initialize=function(n,t,r){var e,i,o;a.isInitialized()||(u.initialize(n,t,r),e=(n||{}).channels,i=r,l=[],e&&g(e,s),i&&(o=[],g(i,function(e){500<e.priority&&o.push(e)}),s(o)),g(l,function(e){return Wn(new _n(e,n,t),r)}))}}),r}var Zn="toGMTString",$n="toUTCString",Yn="cookie",et="expires",nt="enabled",tt="isCookieUseDisabled",rt="disableCookiesUsage",it="_ckMgr",ot="",at=null,ut=null,lt=null,st=tn(),ct={},ft={};function gt(e){return!e||e.isEnabled()}function dt(e,n){var t,r;return e?t=e.getCookieMgr():n&&(t=n.cookieCfg[it]||vt(n)),t||(e=(e||{}).logger,(r=vt[it]||ft[it])||(r=vt[it]=vt(n,e),ft[it]=r),t=r),t}function vt(e,i){p(t=(e=e||ft).cookieCfg=e.cookieCfg||{},"domain",e.cookieDomain,ce,v),p(t,"path",e.cookiePath||"/",null,v),v(t[nt])&&(n=void 0,d(e[tt])||(n=!e[tt]),d(e[rt])||(n=!e[rt]),t[nt]=n);var n,t,s=t,c=s.path||"/",f=s.domain,r=!1!==s[nt],g={isEnabled:function(){var e=r&&pt(i),n=ft[it];return e&&n&&g!==n?gt(n):e},setEnabled:function(e){r=!1!==e},set:function(e,n,t,r,i){var o,a,u,l=!1;return gt(g)&&(o={},-1!=(u=(a=Ee(n||ot)).indexOf(";"))&&(a=Ee(n.substring(0,u)),o=ht(n.substring(1+u))),p(o,"domain",r||f,De,d),v(t)||(u=pn(),!d(o[et])||0<(n=ke()+1e3*t)&&((r=new Date).setTime(n),p(o,et,mt(r,u?Zn:$n)||mt(r,u?Zn:$n)||ot,De)),u||p(o,"max-age",ot+t,null,d)),(n=un())&&"https:"===n.protocol&&(p(o,"secure",null,null,d),(ut=null===ut?!St((on()||{}).userAgent):ut)&&p(o,"SameSite","None",null,d)),p(o,"path",i||c,null,d),(s.setCookie||Ct)(e,yt(a,o)),l=!0),l},get:function(e){var n=ot;return gt(g)?(s.getCookie||function(e){var n,t=ot;return st&&(n=st[Yn]||ot,lt!==n&&(ct=ht(n),lt=n),t=Ee(ct[e]||ot)),t})(e):n},del:function(e,n){return!!gt(g)&&g.purge(e,n)},purge:function(e,n){var t,r=!1;return pt(i)&&((t={}).path=n||"/",t[et]="Thu, 01 Jan 1970 00:00:01 GMT",n=t,pn()||(n["max-age"]="0"),(s.delCookie||Ct)(e,yt(ot,n)),r=!0),r}};return g[it]=g}function pt(e){if(null===at){at=!1;try{at=(st||{})[Yn]!==undefined}catch(n){e&&e.throwInternal(c.LoggingSeverity.WARNING,ne.CannotAccessCookie,"Cannot access document.cookie - "+Fe(n),{exception:hn(n)})}}return at}function ht(e){var t={};return e&&e.length&&g(Ee(e).split(";"),function(e){var n;(e=Ee(e||ot))&&(-1==(n=e.indexOf("="))?t[e]=null:t[Ee(e.substring(0,n))]=Ee(e.substring(1+n)))}),t}function mt(e,n){return f(e[n])?e[n]():null}function yt(e,n){var t=e||ot;return pe(n,function(e,n){t+="; "+e+(v(n)?ot:"="+n)}),t}function Ct(e,n){st&&(st[Yn]=e+"="+n)}function St(e){return!(!Se(e)||!t(e,"CPU iPhone OS 12")&&!t(e,"iPad; CPU OS 12")&&!(t(e,"Macintosh; Intel Mac OS X 10_14")&&t(e,"Version/")&&t(e,"Safari"))&&(!t(e,"Macintosh; Intel Mac OS X 10_14")||!he(e,"AppleWebKit/605.1.15 (KHTML, like Gecko)"))&&!t(e,"Chrome/5")&&!t(e,"Chrome/6")&&(!t(e,"UnrealEngine")||t(e,"Chrome"))&&!t(e,"UCBrowser/12")&&!t(e,"UCBrowser/11"))}var xt="_notificationManager";function It(e,n){return new kn(n)}var bt,e=function Gr(){var n,u,l,t,r,s=!1;ee(Gr,this,function(a){a._extensions=[],u=new Xn,a.logger=new An({loggingLevelConsole:c.LoggingSeverity.CRITICAL}),n=[],a.isInitialized=function(){return s},a.initialize=function(e,n,r,t){a.isInitialized()&&_e("Core should not be initialized more than once"),e&&!v(e.instrumentationKey)||_e("Please provide instrumentation key"),l=t,a[xt]=t,a.config=e||{},t&&!0!==a.config.disableDbgExt&&t.addNotificationListener(function(e){if(!Sn){Sn={};for(var n=0;n<xn.length;n++)Sn[xn[n]]=function(n,t){return function(){var e=bn(t);!e||(e=e.listener)&&e[n]&&e[n].apply(e,arguments)}}(xn[n],e)}return Sn}(e)),a.config.enablePerfMgr&&p(a.config,"createPerfMgr",It),e.extensions=v(e.extensions)?[]:e.extensions,Oe(e,jn).NotificationManager=t,r&&(a.logger=r);var t=[],i=(t.push.apply(t,E(E([],n),e.extensions)),t=Gn(t),[]),o={};g(t,function(e){(v(e)||v(e.initialize))&&_e("Extensions must provide callback to initialize");var n=e.priority,t=e.identifier;e&&n&&(v(o[n])?o[n]=t:r.warnToConsole("Two extensions have same priority #"+n+" - "+o[n]+", "+t)),(!n||n<u.priority)&&i.push(e)}),t.push(u),i.push(u),t=Gn(t),a._extensions=t,Wn(new _n([u],e,a),t),Wn(new _n(i,e,a),t),a._extensions=i,0===a.getTransmissionControls().length&&_e("No channels available"),s=!0,a.releaseQueue()},a.getTransmissionControls=function(){return u.getChannelControls()},a.track=function(e){p(e,"iKey",a.config.instrumentationKey,null,Re),p(e,"time",be(new Date),null,Re),p(e,"ver","4.0",null,v),a.isInitialized()?a.getProcessTelContext().processNext(e):n.push(e)},a.getProcessTelContext=function(){var e=a._extensions,n=e;return e&&0!==e.length||(n=[u]),new _n(n,a.config,a)},a.getNotifyMgr=function(){return l||(l=b({addNotificationListener:function(e){},removeNotificationListener:function(e){},eventsSent:function(e){},eventsDiscarded:function(e,n){},eventsSendRequest:function(e,n){}}),a[xt]=l),l},a.getCookieMgr=function(){return r=r||vt(a.config,a.logger)},a.setCookieMgr=function(e){r=e},a.getPerfMgr=function(){return t||a.config&&a.config.enablePerfMgr&&f(a.config.createPerfMgr)&&(t=a.config.createPerfMgr(a,a.getNotifyMgr())),t||null},a.setPerfMgr=function(e){t=e},a.eventCnt=function(){return n.length},a.releaseQueue=function(){0<n.length&&(g(n,function(e){a.getProcessTelContext().processNext(e)}),n=[])}})},Tt=function Jr(e){this.listeners=[];var n=!!(e||{}).perfEvtsSendAll;ee(Jr,this,function(i){i.addNotificationListener=function(e){i.listeners.push(e)},i.removeNotificationListener=function(e){for(var n=Te(i.listeners,e);-1<n;)i.listeners.splice(n,1),n=Te(i.listeners,e)},i.eventsSent=function(n){g(i.listeners,function(e){e&&e.eventsSent&&setTimeout(function(){return e.eventsSent(n)},0)})},i.eventsDiscarded=function(n,t){g(i.listeners,function(e){e&&e.eventsDiscarded&&setTimeout(function(){return e.eventsDiscarded(n,t)},0)})},i.eventsSendRequest=function(t,r){g(i.listeners,function(e){if(e&&e.eventsSendRequest)if(r)setTimeout(function(){return e.eventsSendRequest(t,r)},0);else try{e.eventsSendRequest(t,r)}catch(n){}})},i.perfEvent=function(t){t&&(!n&&t.isChildEvt()||g(i.listeners,function(e){if(e&&e.perfEvent)if(t.isAsync)setTimeout(function(){return e.perfEvent(t)},0);else try{e.perfEvent(t)}catch(n){}}))}})},wt=(P(Pt,bt=e),Pt);function Pt(){var e=bt.call(this)||this,r=0;return ee(Pt,e,function(t,i){function n(e){var n=t.getNotifyMgr();n&&n.eventsDiscarded([e],N.InvalidEvent)}t.initialize=function(e,n,t,r){i.initialize(e,n,t||new An(e),r||new Tt(e))},t.track=function(e){On(t.getPerfMgr(),function(){return"AppInsightsCore:track"},function(){if(null===e&&(n(e),_e("Invalid telemetry item")),v(e.name))throw n(e),Error("telemetry name required");i.track(e)},function(){return{item:e}},!e.sync)},t.addNotificationListener=function(e){var n=t.getNotifyMgr();n&&n.addNotificationListener(e)},t.removeNotificationListener=function(e){var n=t.getNotifyMgr();n&&n.removeNotificationListener(e)},t.pollInternalLogs=function(n){var e=t.config.diagnosticLogInterval;return e&&0<e||(e=1e4),r&&t.stopPollingInternalLogs(),r=setInterval(function(){var e=t.logger?t.logger.queue:[];g(e,function(e){e={name:n||"InternalMessageId: "+e.messageId,iKey:t.config.instrumentationKey,time:be(new Date),baseType:Pn.dataType,baseData:{message:e.message}};t.track(e)}),e.length=0},e)},t.stopPollingInternalLogs=function(){r&&(clearInterval(r),r=0)}}),e}var Et=4294967296,Nt=4294967295,At=!1,Lt=123456789,Mt=987654321;function kt(e){e<0&&(e>>>=0),Lt=123456789+e&Nt,Mt=987654321-e&Nt,At=!0}function Ft(){try{var e=2147483647&ke();kt((Math.random()*Et^e)+e)}catch(n){}}function Ot(e){return 0<e?Math.floor(Rt()/Nt*(e+1))>>>0:0}function Rt(e){var n=gn()||dn(),n=n&&n.getRandomValues?n.getRandomValues(new Uint32Array(1))[0]&Nt:pn()?(At||Ft(),Dt()&Nt):Math.floor(Et*Math.random()|0);return e||(n>>>=0),n}function Dt(e){var n=((Mt=36969*(65535&Mt)+(Mt>>16)&Nt)<<16)+(65535&(Lt=18e3*(65535&Lt)+(Lt>>16)&Nt))>>>0&Nt|0;return e||(n>>>=0),n}var _t="visibilitychange",jt="pagehide",Ut="pageshow";function Vt(e,n){var t=!1,r=en(),r=(r&&(t=de(r,e,n),t=de(r.body,e,n)||t),tn());return r&&de(r,e,n)||t}function zt(e,n,t){var r,i=!1;return n&&e&&ye(e)&&(r=[],g(e,function(e){Se(e)&&(t&&-1!==Te(t,e)?r.push(e):i=Vt(e,n)||i)}),!i&&0<r.length&&(i=zt(r,n))),i}function Bt(e,n){return zt(["beforeunload","unload","pagehide"],e,n)}function Kt(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(Gt,function(e){var n=0|Ot(15);return("x"===e?n:3&n|8).toString(16)})}function Ht(){var e=sn();return e&&e.now?e.now():ke()}function qt(e){void 0===e&&(e=22);for(var n=Rt()>>>0,t=0,r="";r.length<e;)r+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"[0|63&n]||"",n>>>=6,5==++t&&(n=(Rt()<<2&4294967295|3&n)>>>0,t=0);return r}function Wt(){for(var e,n=["0","1","2","3","4","5","6","7","8","9","a","b","c","d","e","f"],t="",r=0;r<4;r++)t+=n[15&(e=Rt())]+n[e>>4&15]+n[e>>8&15]+n[e>>12&15]+n[e>>16&15]+n[e>>20&15]+n[e>>24&15]+n[e>>28&15];var i=n[8+(3&Rt())|0];return t.substr(0,8)+t.substr(9,4)+"4"+t.substr(13,3)+i+t.substr(16,3)+t.substr(19,12)}var Gt=/[xy]/g,Jt={Attach:de,AttachEvent:de,Detach:ve,DetachEvent:ve},Xt={NotSet:0,Pii_DistinguishedName:1,Pii_GenericData:2,Pii_IPV4Address:3,Pii_IPv6Address:4,Pii_MailSubject:5,Pii_PhoneNumber:6,Pii_QueryString:7,Pii_SipAddress:8,Pii_SmtpAddress:9,Pii_Identity:10,Pii_Uri:11,Pii_Fqdn:12,Pii_IPV4AddressLegacy:13,CustomerContent_GenericContent:32},Qt={Normal:1,CostDeferred:2,RealTime:3,Immediate:4},Zt={Unspecified:0,String:1,Int32:2,UInt32:3,Int64:4,UInt64:5,Double:6,Bool:7,Guid:8,DateTime:9},$t=T(T({},ne),{AuthHandShakeError:501,AuthRedirectFail:502,BrowserCannotReadLocalStorage:503,BrowserCannotWriteLocalStorage:504,BrowserDoesNotSupportLocalStorage:505,CannotParseBiBlobValue:506,CannotParseDataAttribute:507,CVPluginNotAvailable:508,DroppedEvent:509,ErrorParsingAISessionCookie:510,ErrorProvidedChannels:511,FailedToGetCookies:512,FailedToInitializeCorrelationVector:513,FailedToInitializeSDK:514,InvalidContentBlob:515,InvalidCorrelationValue:516,SessionRenewalDateIsZero:517,SendPostOnCompleteFailure:518,PostResponseHandler:519,SDKNotInitialized:520}),T="3.1.10",Yt="1DS-Web-JS-"+T,er="withCredentials",nr=((ir={})[0]=Zt.Unspecified,ir[2]=Zt.Double,ir[1]=Zt.String,ir[3]=Zt.Bool,ir[4098]=Zt.Double,ir[4097]=Zt.String,ir[4099]=Zt.Bool,ir),tr=null,rr=!!tn(),ir=!!en();function or(e){return!(""===e||v(e))}function ar(e){if(e){var n=e.indexOf("-");if(-1<n)return e.substring(0,n)}return""}function ur(){return tr=null===tr?!d(Uint8Array)&&!function(){var e=on();if(!d(e)&&e.userAgent)return!~(e=e.userAgent.toLowerCase()).indexOf("safari")&&!~e.indexOf("firefox")||~e.indexOf("chrome")?void 0:1}()&&!vn():tr}function lr(e){return!!(e&&xe(e)&&Qt.Normal<=e&&e<=Qt.Immediate)}function sr(e,n,t){if(!n&&!or(n)||"string"!=typeof e)return null;e=typeof n;if("string"==e||"number"==e||"boolean"==e||ye(n))n={value:n};else if("object"!=e||n.hasOwnProperty("value")){if(v(n.value)||""===n.value||!Se(n.value)&&!xe(n.value)&&!Ie(n.value)&&!ye(n.value))return null}else n={value:t?JSON.stringify(n):n};if(ye(n.value)&&!Sr(n.value))return null;if(!v(n.kind)){if(ye(n.value)||!Cr(n.kind))return null;n.value=n.value.toString()}return n}function cr(e,n,t){var r=-1;return d(e)||(0<n&&(32===n?r=8192:n<=13&&(r=n<<5)),0<=t&&t<=9?(-1===r&&(r=0),r|=t):(n=nr[Ir(e)]||-1,-1!==r&&-1!==n?r|=n:n===Zt.Double&&(r=n))),r}function fr(){dt(null).setEnabled(!1)}function gr(e,n,t){pt(null)&&dt(null).set(e,n,86400*t,null,"/")}function dr(e){pt(null)&&dt(null).del(e)}function vr(e){return pt(null)?pr(dt(null),e):""}function pr(e,n,t){var r;return void 0===t&&(t=!0),e&&(r=e.get(n),t&&r&&decodeURIComponent&&(r=decodeURIComponent(r))),r||""}function hr(e){void 0===e&&(e="D");var n=Kt();return"B"===e?n="{"+n+"}":"P"===e?n="("+n+")":"N"===e&&(n=n.replace(/-/g,"")),n}function mr(e,n,t,s,c){var r={},i=!1,o=0,a=arguments.length,u=Object[h],l=arguments;for("[object Boolean]"===u.toString.call(l[0])&&(i=l[0],o++);o<a;o++)pe(l[o],function(t,e){i&&e&&ge(e)?ye(e)?(r[t]=r[t]||[],g(e,function(e,n){e&&ge(e)?r[t][n]=mr(!0,r[t][n],e):r[t][n]=e})):r[t]=mr(!0,r[t],e):r[t]=e});return r}var yr=Ht;function Cr(e){return e===Xt.NotSet||e>Xt.NotSet&&e<=Xt.Pii_IPV4AddressLegacy||e===Xt.CustomerContent_GenericContent}function Sr(e){return 0<e.length}function xr(e,n){e.timings=e.timings||{},e.timings.processTelemetryStart=e.timings.processTelemetryStart||{},e.timings.processTelemetryStart[n]=yr()}function Ir(e){var n,t=0;return null!==e&&e!==undefined&&("string"==(n=typeof e)?t=1:"number"==n?t=2:"boolean"==n?t=3:n===a&&(t=4,ye(e)?(t=4096,0<e.length&&(t|=Ir(e[0]))):fe(e,"value")&&(t=8192|Ir(e.value)))),t}var br,Tr={Version:T,FullVersionString:Yt,strUndefined:n,strObject:a,Undefined:n,arrForEach:g,arrIndexOf:Te,arrMap:we,arrReduce:Pe,objKeys:Le,toISOString:be,isReactNative:vn,isString:Se,isNumber:xe,isBoolean:Ie,isFunction:f,isArray:ye,isObject:ge,strTrim:Ee,isDocumentObjectAvailable:rr,isWindowObjectAvailable:ir,isValueAssigned:or,getTenantId:ar,isBeaconsSupported:mn,isUint8ArrayAvailable:ur,isLatency:lr,sanitizeProperty:sr,getISOString:be,useXDomainRequest:yn,getCommonSchemaMetaData:cr,cookieAvailable:pt,disallowsSameSiteNone:St,setCookie:gr,deleteCookie:dr,getCookie:vr,createGuid:hr,extend:mr,getTime:yr,isValueKind:Cr,isArrayValid:Sr,objDefineAccessors:Me,addPageUnloadEventListener:Bt,setProcessTelemetryTimings:xr,addEventHandler:Vt,getFieldValueType:Ir,strEndsWith:he,objForEachKey:pe},wr={_canUseCookies:undefined,isTypeof:se,isUndefined:d,isNullOrUndefined:v,hasOwnProperty:fe,isFunction:f,isObject:ge,isDate:me,isArray:ye,isError:Ce,isString:Se,isNumber:xe,isBoolean:Ie,toISOString:be,arrForEach:g,arrIndexOf:Te,arrMap:we,arrReduce:Pe,strTrim:Ee,objCreate:b,objKeys:Le,objDefineAccessors:Me,addEventHandler:Vt,dateNow:ke,isIE:pn,disableCookies:fr,newGuid:Kt,perfNow:Ht,newId:qt,randomValue:Ot,random32:Rt,mwcRandomSeed:function(e){e?kt(e):Ft()},mwcRandom32:Dt,generateW3CId:Wt},Pr="version",Er="properties";function Nr(){var e=br.call(this)||this;return e.pluginVersionStringArr=[],e.pluginVersionString="",ee(Nr,e,function(u,l){u.logger&&u.logger.queue||(u.logger=new An({loggingLevelConsole:c.LoggingSeverity.CRITICAL})),u.initialize=function(r,i,o,a){On(u,function(){return"AppInsightsCore.initialize"},function(){if(r){r.endpointUrl||(r.endpointUrl="https://browser.events.data.microsoft.com/OneCollector/1.0/");var e=r.propertyStorageOverride;if(e&&(!e.getProperty||!e.setProperty))throw Error("Invalid property storage override passed.");r.channels&&g(r.channels,function(e){e&&g(e,function(e){e.identifier&&e.version&&(e=e.identifier+"="+e.version,u.pluginVersionStringArr.push(e))})})}u.getWParam=function(){return"undefined"!=typeof document?0:-1},i&&g(i,function(e){e&&e.identifier&&e.version&&(e=e.identifier+"="+e.version,u.pluginVersionStringArr.push(e))}),u.pluginVersionString=u.pluginVersionStringArr.join(";");try{l.initialize(r,i,o,a),u.pollInternalLogs("InternalLog")}catch(t){var e=u.logger,n=hn(t);~n.indexOf("channels")&&(n+="\n - Channels must be provided through config.channels only!"),e.throwInternal(c.LoggingSeverity.CRITICAL,$t.FailedToInitializeSDK,"SDK Initialization Failed - no telemetry will be sent: "+n)}},function(){return{config:r,extensions:i,logger:o,notificationManager:a}})},u.track=function(t){On(u,function(){return"AppInsightsCore.track"},function(){var e,n=t;n&&(n.timings=n.timings||{},n.timings.trackStart=yr(),lr(n.latency)||(n.latency=Qt.Normal),(e=n.ext=n.ext||{}).sdk=e.sdk||{},e.sdk.ver=Yt,(e=n.baseData=n.baseData||{})[Er]||(e[Er]={}),(e=e[Er])[Pr]||(e[Pr]=""),""!==u.pluginVersionString&&(e[Pr]=u.pluginVersionString)),l.track(n)},function(){return{item:t}},!t.sync)}}),e}P(Nr,br=wt);var Ar,Lr=Nr;function Mr(){var e=Ar.call(this)||this;return ee(Mr,e,function(o,a){o.initialize=function(e,n,t,r){e&&!e.endpointUrl&&(e.endpointUrl="https://browser.events.data.microsoft.com/OneCollector/1.0/"),o.getWParam=function(){return rr?0:-1};try{a.initialize(e,n,t,r)}catch(i){o.logger.throwInternal(c.LoggingSeverity.CRITICAL,$t.FailedToInitializeSDK,"Initialization Failed: "+hn(i)+"\n - Note: Channels must be provided through config.channels only")}},o.track=function(e){var n;e&&((n=e.ext=e.ext||{}).sdk=n.sdk||{},n.sdk.ver=Yt),a.track(e)}}),e}P(Mr,Ar=e);var kr=Mr,Fr=f;function s(e){var a=0,u=null,n=[];function i(t,r,i,o){n.push(function(){var e;try{(e=1===a?Fr(t)?t(u):u:Fr(r)?r(u):u)instanceof s?e.then(i,o):(2!==a||Fr(r)?i:o)(e)}catch(n){return void o(n)}}),0!==a&&l()}function l(){var r;0<n.length&&(r=n.slice(),n=[],setTimeout(function(){for(var e=0,n=r.length;e<n;++e)try{r[e]()}catch(t){}},0))}function t(e){0===a&&(u=e,a=2,l())}if(ee(s,this,function(n){n.then=function(t,r){return new s(function(e,n){i(t,r,e,n)})},n["catch"]=function(e){return n.then(null,e)}}),!Fr(e))throw new TypeError("ESPromise: resolvedFunc argument is not a Function");try{e(function(e){0===a&&(u=e,a=1,l())},t)}catch(r){t(r)}}s.resolve=function(r){return r instanceof s?r:r&&Fr(r.then)?new s(function(e,n){try{r.then(e,n)}catch(t){n(t)}}):new s(function(e){e(r)})},s.reject=function(t){return new s(function(e,n){n(t)})},s.all=function(u){if(u&&u.length)return new s(function(r,e){try{for(var i=[],o=0,n=0;n<u.length;n++){var t=u[n];t&&Fr(t.then)?(o++,t.then(function(n,t){return function(e){n[t]=e,0==--o&&r(i)}}(i,n),e)):i[n]=t}0===o&&setTimeout(function(){r(i)},0)}catch(a){e(a)}})},s.race=function(i){return new s(function(n,t){if(i&&i.length)try{for(var r=0;r<i.length;r++)!function(){var e=i[r];e&&Fr(e.then)?e.then(n,t):setTimeout(function(){n(e)},0)}()}catch(e){t(e)}})};var Or=s,Rr=0,Dr=[],_r=[],jr=[];function Ur(){return(new Date).getTime()}function Vr(e,n){var h=0,m=(e||"<unnamed>")+"."+Rr;function y(e){var n=x();n&&n.QUnit&&console&&console.log("ESPromiseScheduler["+m+"] "+e)}function C(e){n&&n.warnToConsole("ESPromiseScheduler["+m+"] "+e)}Rr++,ee(Vr,this,function(e){var d=null,v=0;function p(e,n){for(var t=0;t<e.length;t++)if(e[t].id===n)return e.splice(t,1)[0];return null}e.scheduleEvent=function(r,e,u){var i,o,n,a=m+"."+v,e=(v++,e&&(a+="-("+e+")"),a+"{"+h+"}"),t=(h++,{evt:null,tm:Ur(),id:e,isRunning:!1,isAborted:!1});return t.evt=d?(i=t,o=d,n=new Or(function(n,t){var e=Ur()-o.tm,r=o.id;y("["+a+"] is waiting for ["+r+":"+e+" ms] to complete before starting -- ["+_r.length+"] waiting and ["+Dr.length+"] running"),i.abort=function(e){i.abort=null,p(_r,a),i.isAborted=!0,t(Error(e))},o.evt.then(function(e){p(_r,a),c(i).then(n,t)},function(e){p(_r,a),c(i).then(n,t)})}),_r.push(i),n):c(t),(d=t).evt._schId=e,t.evt;function l(e){for(var n=Ur(),t=n-6e5,r=e.length,i=0;i<r;){var o,a=e[i];a&&a.tm<t?(o=null,a.abort?(o="Aborting ["+a.id+"] due to Excessive runtime ("+(n-a.tm)+" ms)",a.abort(o)):o="Removing ["+a.id+"] due to Excessive runtime ("+(n-a.tm)+" ms)",C(o),e.splice(i,1),r--):i++}}function s(e,n){var t,r=!1,i=p(Dr,e);i||(i=p(jr,e),r=!0),i?(i.to&&(clearTimeout(i.to),i.to=null),t=Ur()-i.tm,n?r?C("Timed out event ["+e+"] finally complete -- "+t+" ms"):y("Promise ["+e+"] Complete -- "+t+" ms"):(jr.push(i),C("Event ["+e+"] Timed out and removed -- "+t+" ms"))):y("Failed to remove ["+e+"] from running queue"),d&&d.id===e&&(d=null),l(Dr),l(_r),l(jr)}function f(n,t){return function(e){return s(n,!0),t&&t(e),e}}function g(r,o){var a=r.id;return new Or(function(n,t){y("Event ["+a+"] Starting -- waited for "+(r.wTm||"--")+" ms"),r.isRunning=!0,r.abort=function(e){r.abort=null,r.isAborted=!0,s(a,!1),t(Error(e))};var e=o(a);e instanceof Or?(u&&(r.to=setTimeout(function(){s(a,!1),t(Error("Timed out after ["+u+"] ms"))},u)),function i(n,e,t,r){e.then(function(e){return e instanceof Or?(y("Event ["+n+"] returned a promise -- waiting"),i(n,e,t,r),e):f(n,t)(e)},f(n,r))}(a,e,function(e){y("Event ["+a+"] Resolving after "+(Ur()-r.tm)+" ms"),n(e)},t)):(y("Promise ["+a+"] Auto completed as the start action did not return a promise"),n())})}function c(e){var n=Ur();return e.wTm=n-e.tm,e.tm=n,e.isAborted?Or.reject(Error("["+a+"] was aborted")):(Dr.push(e),g(e,r))}}})}Vr.incomplete=function(){return Dr},Vr.waitingToStart=function(){return _r};var zr=Vr,Br=(Kr.getFieldType=Ir,Kr);function Kr(e){var l=this,o={},a=[],u=[];function s(e,n){var t=o[e];if(!(i=t?t[n]:i)&&null!==i){if(Se(e)&&Se(n))if(0<u.length){for(var r=0;r<u.length;r++)if(u[r].handleField(e,n)){i={canHandle:!0,fieldHandler:u[r]};break}}else 0===a.length&&(i={canHandle:!0});if(!i&&null!==i)for(var i=null,r=0;r<a.length;r++)if(a[r].handleField(e,n)){i={canHandle:!0,handler:a[r],fieldHandler:null};break}(t=t||(o[e]={}))[n]=i}return i}function c(e,n,t,r,i,o){if(e.handler)return e.handler.property(n,t,i,o);if(!v(i.kind)){if(4096==(4096&r)||!Cr(i.kind))return null;i.value=i.value.toString()}return function u(r,i,o,e,n){var t,a;return n&&r&&(t=r.getSanitizer(i,o,e,n.kind,n.propertyType))&&(4===e?(a={},pe(n.value,function(e,n){var t;or(n)&&(t=f(0,0,n),(t=u(r,i+"."+o,e,Ir(n),t))&&(a[e]=t.value))}),n.value=a):n=t.call(l,{path:i,name:o,type:e,prop:n,sanitizer:l})),n}(e.fieldHandler,n,t,r,i)}function f(e,n,t){return or(t)?{value:t}:null}e&&u.push(e),l.addSanitizer=function(e){e&&(a.push(e),o={})},l.addFieldSanitizer=function(e){e&&(u.push(e),o={})},l.handleField=function(e,n){e=s(e,n);return!!e&&e.canHandle},l.value=function(e,n,t,r){var i=s(e,n);if(i&&i.canHandle){if(!i||!i.canHandle)return null;if(i.handler)return i.handler.value(e,n,t,r);if(!Se(n)||v(t)||""===t)return null;var o=null,a=Ir(t);if(8192==(8192&a)){var u=-8193&a;if(!or((o=t).value)||1!=u&&2!=u&&3!=u&&4096!=(4096&u))return null}else 1===a||2===a||3===a||4096==(4096&a)?o=f(0,0,t):4===a&&(o=f(0,0,r?JSON.stringify(t):t));if(o)return c(i,e,n,a,o,r)}return null},l.property=function(e,n,t,r){var i=s(e,n);if(!i||!i.canHandle)return null;if(!Se(n)||v(t)||!or(t.value))return null;var o=Ir(t.value);return 0===o?null:c(i,e,n,o,t,r)}}c.AppInsightsCore=Lr,c.BaseCore=kr,c.BaseTelemetryPlugin=Vn,c.CoreUtils=wr,c.DiagnosticLogger=An,c.ESPromise=Or,c.ESPromiseScheduler=zr,c.EventHelper=Jt,c.EventLatency=Qt,c.EventPersistence={Normal:1,Critical:2},c.EventPropertyType=Zt,c.EventsDiscardedReason=N,c.FullVersionString=Yt,c.InternalAppInsightsCore=wt,c.InternalBaseCore=e,c.MinChannelPriorty=100,c.NotificationManager=Tt,c.PerfEvent=Ln,c.PerfManager=kn,c.ProcessTelemetryContext=_n,c.TraceLevel={NONE:0,ERROR:1,WARNING:2,INFORMATION:3},c.Undefined=n,c.Utils=Tr,c.ValueKind=Xt,c.ValueSanitizer=Br,c.Version=T,c._ExtendedInternalMessageId=$t,c._InternalLogMessage=Pn,c._InternalMessageId=ne,c.addEventHandler=Vt,c.addEventListeners=zt,c.addPageHideEventListener=function Xr(t,e){var n=!1;return e&&-1!==Te(e,jt)||(n=Vt(jt,t)),!(n=(!e||-1===Te(e,_t))&&Vt(_t,function(e){var n=tn();t&&n&&"hidden"===n.visibilityState&&t(e)})||n)&&e?Xr(t):n},c.addPageShowEventListener=function Qr(t,e){var n=!1;return e&&-1!==Te(e,Ut)||(n=Vt(Ut,t)),!(n=(!e||-1===Te(e,_t))&&Vt(_t,function(e){var n=tn();t&&n&&"visible"===n.visibilityState&&t(e)})||n)&&e?Qr(t):n},c.addPageUnloadEventListener=Bt,c.areCookiesSupported=pt,c.arrForEach=g,c.arrIndexOf=Te,c.arrMap=we,c.arrReduce=Pe,c.attachEvent=de,c.cookieAvailable=pt,c.createCookieMgr=vt,c.createGuid=hr,c.dateNow=ke,c.deleteCookie=dr,c.detachEvent=ve,c.disableCookies=fr,c.disallowsSameSiteNone=St,c.doPerf=On,c.dumpObj=hn,c.extend=mr,c.generateW3CId=Wt,c.getCommonSchemaMetaData=cr,c.getConsole=ln,c.getCookie=vr,c.getCookieValue=pr,c.getCrypto=gn,c.getDocument=tn,c.getExceptionName=Fe,c.getFieldValueType=Ir,c.getGlobal=x,c.getGlobalInst=i,c.getHistory=function(){return an()?history:i("history")},c.getIEVersion=function(e){var n=((e=(e=void 0===e?null:e)?e:(n=on()||{})?(n.userAgent||"").toLowerCase():"")||"").toLowerCase();if(t(n,qe))return e=tn()||{},Math.max(parseInt(n.split(qe)[1]),e.documentMode||0);if(t(n,We)){e=parseInt(n.split(We)[1]);if(e)return e+4}return null},c.getISOString=be,c.getJSON=fn,c.getLocation=un,c.getMsCrypto=dn,c.getNavigator=on,c.getPerformance=sn,c.getSetValue=Oe,c.getTenantId=ar,c.getTime=yr,c.getWindow=en,c.hasDocument=nn,c.hasHistory=an,c.hasJSON=cn,c.hasNavigator=rn,c.hasOwnProperty=fe,c.hasWindow=Ye,c.isArray=ye,c.isArrayValid=Sr,c.isBeaconsSupported=mn,c.isBoolean=Ie,c.isChromium=function(){return!!i("chrome")},c.isDate=me,c.isDocumentObjectAvailable=rr,c.isError=Ce,c.isFetchSupported=function(e){var n=!1;try{var n=!!i("fetch"),t=i("Request");n&&e&&t&&(n=$e(t,"keepalive"))}catch(r){}return n},c.isFunction=f,c.isIE=pn,c.isLatency=lr,c.isNotTruthy=Re,c.isNullOrUndefined=v,c.isNumber=xe,c.isObject=ge,c.isReactNative=vn,c.isString=Se,c.isTruthy=De,c.isTypeof=se,c.isUint8ArrayAvailable=ur,c.isUndefined=d,c.isValueAssigned=or,c.isValueKind=Cr,c.isWindowObjectAvailable=ir,c.isXhrSupported=Cn,c.newGuid=Kt,c.newId=qt,c.normalizeJsName=function(e){var n=e,t=/([^\w\d_$])/g;return t.test(e)?e.replace(t,"_"):n},c.objCreate=b,c.objDefineAccessors=Me,c.objForEachKey=pe,c.objKeys=Le,c.openXhr=function(e,n,t,r,i){function o(e,n,t){try{e[n]=t}catch(r){}}void 0===r&&(r=!1),void 0===i&&(i=!1);var a=new XMLHttpRequest;return r&&o(a,"Microsoft_ApplicationInsights_BypassAjaxInstrumentation",r),t&&o(a,er,t),a.open(e,n,!i),t&&o(a,er,t),a},c.optimizeObject=function(e){return e&&r(m?m({},e):e)},c.perfNow=Ht,c.proxyAssign=function(r,i,o){if(r&&i&&r!==i&&ge(r)&&ge(i))for(var e in i)!function(n){var e,t;Se(n)&&(f(e=i[n])?o&&!o(n,!0,i,r)||(r[n]=(t=n,function(){return i[t].apply(i,arguments)})):o&&!o(n,!1,i,r)||(fe(r,n)&&delete r[n],Me(r,n,function(){return i[n]},function(e){i[n]=e})||(r[n]=e)))}(e);return r},c.random32=Rt,c.randomValue=Ot,c.safeGetCookieMgr=dt,c.safeGetLogger=Nn,c.sanitizeProperty=sr,c.setCookie=gr,c.setEnableEnvMocks=function(e){Xe=e},c.setProcessTelemetryTimings=xr,c.setValue=p,c.strContains=t,c.strEndsWith=he,c.strExtensionConfig=jn,c.strFunction=u,c.strIKey="iKey",c.strObject=a,c.strPrototype=h,c.strStartsWith=function(e,n){var t=!1;if(e&&n){var r=n.length;if(e===n)return!0;if(e.length>=r){for(var i=0;i<r;i++)if(e[i]!==n[i])return!1;t=!0}}return t},c.strTrim=Ee,c.strUndefined=n,c.throwError=_e,c.toISOString=be,c.useXDomainRequest=yn;Lr=c,kr="__esModule",Vn={value:!0},wr=Object.defineProperty;if(wr)try{return void wr(Lr,kr,Vn)}catch(Zr){}typeof Vn.value!==undefined&&(Lr[kr]=Vn.value)};"object"==typeof exports&&"undefined"!=typeof module?n(exports):"function"==typeof define&&define.amd?define(["exports"],n):n((e="undefined"!=typeof globalThis?globalThis:e||self).oneDS=e.oneDS||{}); | ||
//# sourceMappingURL=ms.core.min.js.map |
/* | ||
* 1DS JS SDK Core, 3.1.9 | ||
* 1DS JS SDK Core, 3.1.10 | ||
* Copyright (c) Microsoft and contributors. All rights reserved. | ||
@@ -4,0 +4,0 @@ * (Microsoft Internal Only) |
/* | ||
* 1DS JS SDK Core, 3.1.9 | ||
* 1DS JS SDK Core, 3.1.10 | ||
* Copyright (c) Microsoft and contributors. All rights reserved. | ||
@@ -4,0 +4,0 @@ * (Microsoft Internal Only) |
/* | ||
* 1DS JS SDK Core, 3.1.9 | ||
* 1DS JS SDK Core, 3.1.10 | ||
* Copyright (c) Microsoft and contributors. All rights reserved. | ||
@@ -4,0 +4,0 @@ * (Microsoft Internal Only) |
/* | ||
* 1DS JS SDK Core, 3.1.9 | ||
* 1DS JS SDK Core, 3.1.10 | ||
* Copyright (c) Microsoft and contributors. All rights reserved. | ||
@@ -4,0 +4,0 @@ * (Microsoft Internal Only) |
/* | ||
* 1DS JS SDK Core, 3.1.9 | ||
* 1DS JS SDK Core, 3.1.10 | ||
* Copyright (c) Microsoft and contributors. All rights reserved. | ||
@@ -4,0 +4,0 @@ * (Microsoft Internal Only) |
/* | ||
* 1DS JS SDK Core, 3.1.9 | ||
* 1DS JS SDK Core, 3.1.10 | ||
* Copyright (c) Microsoft and contributors. All rights reserved. | ||
@@ -4,0 +4,0 @@ * (Microsoft Internal Only) |
/* | ||
* 1DS JS SDK Core, 3.1.9 | ||
* 1DS JS SDK Core, 3.1.10 | ||
* Copyright (c) Microsoft and contributors. All rights reserved. | ||
@@ -4,0 +4,0 @@ * (Microsoft Internal Only) |
import { IEventProperty } from "./DataModels"; | ||
import { GuidStyle, FieldValueSanitizerType, EventLatency } from "./Enums"; | ||
import { ITelemetryItem, objForEachKey, isNumber, isReactNative, isString, isBoolean, isArray, isObject, perfNow, addEventHandler, uaDisallowsSameSiteNone, objDefineAccessors, toISOString, strTrim, isFunction, objKeys, arrReduce, arrMap, arrIndexOf, arrForEach, areCookiesSupported, ICookieMgr, ICoreUtils, strEndsWith, useXDomainRequest, isBeaconsSupported, addPageUnloadEventListener } from "@microsoft/applicationinsights-core-js"; | ||
export declare const Version = "3.1.9"; | ||
export declare const Version = "3.1.10"; | ||
export declare const FullVersionString: string; | ||
@@ -6,0 +6,0 @@ /** |
/* | ||
* 1DS JS SDK Core, 3.1.9 | ||
* 1DS JS SDK Core, 3.1.10 | ||
* Copyright (c) Microsoft and contributors. All rights reserved. | ||
@@ -16,3 +16,3 @@ * (Microsoft Internal Only) | ||
import { getDocument, getNavigator, getWindow, getGlobalInst, objForEachKey, isUndefined, isNullOrUndefined, isNumber, isReactNative, isString, isBoolean, isArray, newGuid, isObject, perfNow, hasOwnProperty, addEventHandler, uaDisallowsSameSiteNone, strPrototype, objDefineAccessors, toISOString, strTrim, isFunction, objKeys, arrReduce, arrMap, arrIndexOf, arrForEach, strUndefined, strObject, areCookiesSupported, safeGetCookieMgr, generateW3CId, mwcRandom32, mwcRandomSeed, random32, randomValue, newId, isIE, dateNow, isError, isDate, isTypeof, strEndsWith, useXDomainRequest, isBeaconsSupported, addPageUnloadEventListener, } from "@microsoft/applicationinsights-core-js"; | ||
export var Version = '3.1.9'; | ||
export var Version = '3.1.10'; | ||
export var FullVersionString = "1DS-Web-JS-" + Version; | ||
@@ -19,0 +19,0 @@ // Defining here so we don't need to take (import) the ApplicationInsights Common module |
/* | ||
* 1DS JS SDK Core, 3.1.9 | ||
* 1DS JS SDK Core, 3.1.10 | ||
* Copyright (c) Microsoft and contributors. All rights reserved. | ||
@@ -4,0 +4,0 @@ * (Microsoft Internal Only) |
/*! | ||
* 1DS JS SDK Core, 3.1.9 | ||
* 1DS JS SDK Core, 3.1.10 | ||
* Copyright (c) Microsoft and contributors. All rights reserved. | ||
@@ -64,3 +64,3 @@ * (Microsoft Internal Only) | ||
var _a; | ||
var Version = '3.1.9'; | ||
var Version = '3.1.10'; | ||
var FullVersionString = "1DS-Web-JS-" + Version; | ||
@@ -67,0 +67,0 @@ var strDisabledPropertyName = "Microsoft_ApplicationInsights_BypassAjaxInstrumentation"; |
/*! | ||
* 1DS JS SDK Core, 3.1.9 | ||
* 1DS JS SDK Core, 3.1.10 | ||
* Copyright (c) Microsoft and contributors. All rights reserved. | ||
* (Microsoft Internal Only) | ||
*/ | ||
var e=this,n=function(e,r,f,n){"use strict";function t(e){return e&&"object"==typeof e&&"default"in e?e["default"]:e}var o=t(n),i={NotSet:0,Pii_DistinguishedName:1,Pii_GenericData:2,Pii_IPV4Address:3,Pii_IPv6Address:4,Pii_MailSubject:5,Pii_PhoneNumber:6,Pii_QueryString:7,Pii_SipAddress:8,Pii_SmtpAddress:9,Pii_Identity:10,Pii_Uri:11,Pii_Fqdn:12,Pii_IPV4AddressLegacy:13,CustomerContent_GenericContent:32},a={Normal:1,CostDeferred:2,RealTime:3,Immediate:4},s={Unspecified:0,String:1,Int32:2,UInt32:3,Int64:4,UInt64:5,Double:6,Bool:7,Guid:8,DateTime:9},u=r.__assignFn(r.__assignFn({},f._InternalMessageId),{AuthHandShakeError:501,AuthRedirectFail:502,BrowserCannotReadLocalStorage:503,BrowserCannotWriteLocalStorage:504,BrowserDoesNotSupportLocalStorage:505,CannotParseBiBlobValue:506,CannotParseDataAttribute:507,CVPluginNotAvailable:508,DroppedEvent:509,ErrorParsingAISessionCookie:510,ErrorProvidedChannels:511,FailedToGetCookies:512,FailedToInitializeCorrelationVector:513,FailedToInitializeSDK:514,InvalidContentBlob:515,InvalidCorrelationValue:516,SessionRenewalDateIsZero:517,SendPostOnCompleteFailure:518,PostResponseHandler:519,SDKNotInitialized:520}),l="3.1.9",d="1DS-Web-JS-"+l,c="withCredentials",g=((ee={})[0]=s.Unspecified,ee[2]=s.Double,ee[1]=s.String,ee[3]=s.Bool,ee[4098]=s.Double,ee[4097]=s.String,ee[4099]=s.Bool,ee),p=null,m=!!f.getDocument(),v=!!f.getWindow();function h(e){return!(""===e||f.isNullOrUndefined(e))}function S(e){if(e){var n=e.indexOf("-");if(-1<n)return e.substring(0,n)}return""}function y(){return p=null===p?!(f.isUndefined(Uint8Array)||(e=f.getNavigator(),!f.isUndefined(e)&&e.userAgent&&(~(e=e.userAgent.toLowerCase()).indexOf("safari")||~e.indexOf("firefox"))&&!~e.indexOf("chrome"))||f.isReactNative()):p;var e}function b(e){return!!(e&&f.isNumber(e)&&a.Normal<=e&&e<=a.Immediate)}function C(e,n,t){if(!n&&!h(n)||"string"!=typeof e)return null;if("string"==(e=typeof n)||"number"==e||"boolean"==e||f.isArray(n))n={value:n};else if("object"!=e||n.hasOwnProperty("value")){if(f.isNullOrUndefined(n.value)||""===n.value||!f.isString(n.value)&&!f.isNumber(n.value)&&!f.isBoolean(n.value)&&!f.isArray(n.value))return null}else n={value:t?JSON.stringify(n):n};if(f.isArray(n.value)&&!D(n.value))return null;if(!f.isNullOrUndefined(n.kind)){if(f.isArray(n.value)||!F(n.kind))return null;n.value=n.value.toString()}return n}function I(e,n,t){var r=-1;return f.isUndefined(e)||(0<n&&(32===n?r=8192:n<=13&&(r=n<<5)),0<=t&&t<=9?(-1===r&&(r=0),r|=t):(e=g[U(e)]||-1,-1!==r&&-1!==e?r|=e:e===s.Double&&(r=e))),r}function E(){f.safeGetCookieMgr(null).setEnabled(!1)}function P(e,n,t){f.areCookiesSupported(null)&&f.safeGetCookieMgr(null).set(e,n,86400*t,null,"/")}function w(e){f.areCookiesSupported(null)&&f.safeGetCookieMgr(null).del(e)}function O(e){return f.areCookiesSupported(null)?N(f.safeGetCookieMgr(null),e):""}function N(e,n,t){var r;return void 0===t&&(t=!0),e&&(r=e.get(n),t&&r&&decodeURIComponent&&(r=decodeURIComponent(r))),r||""}function A(e){void 0===e&&(e="D");var n=f.newGuid();return"B"===e?n="{"+n+"}":"P"===e?n="("+n+")":"N"===e&&(n=n.replace(/-/g,"")),n}function T(e,n,t,r,i){var o={},a=!1,s=0,l=arguments.length,u=Object[f.strPrototype],d=arguments;for("[object Boolean]"===u.toString.call(d[0])&&(a=d[0],s++);s<l;s++)f.objForEachKey(d[s],function(t,e){a&&e&&f.isObject(e)?f.isArray(e)?(o[t]=o[t]||[],f.arrForEach(e,function(e,n){e&&f.isObject(e)?o[t][n]=T(!0,o[t][n],e):o[t][n]=e})):o[t]=T(!0,o[t],e):o[t]=e});return o}var j=f.perfNow;function F(e){return e===i.NotSet||e>i.NotSet&&e<=i.Pii_IPV4AddressLegacy||e===i.CustomerContent_GenericContent}function D(e){return 0<e.length}function k(e,n){e.timings=e.timings||{},e.timings.processTelemetryStart=e.timings.processTelemetryStart||{},e.timings.processTelemetryStart[n]=j()}function U(e){var n,t=0;return null!==e&&e!==undefined&&("string"==(n=typeof e)?t=1:"number"==n?t=2:"boolean"==n?t=3:n===r.strShimObject&&(t=4,f.isArray(e)?(t=4096,0<e.length&&(t|=U(e[0]))):f.hasOwnProperty(e,"value")&&(t=8192|U(e.value)))),t}var L,R={Version:l,FullVersionString:d,strUndefined:f.strUndefined,strObject:f.strObject,Undefined:f.strUndefined,arrForEach:f.arrForEach,arrIndexOf:f.arrIndexOf,arrMap:f.arrMap,arrReduce:f.arrReduce,objKeys:f.objKeys,toISOString:f.toISOString,isReactNative:f.isReactNative,isString:f.isString,isNumber:f.isNumber,isBoolean:f.isBoolean,isFunction:f.isFunction,isArray:f.isArray,isObject:f.isObject,strTrim:f.strTrim,isDocumentObjectAvailable:m,isWindowObjectAvailable:v,isValueAssigned:h,getTenantId:S,isBeaconsSupported:f.isBeaconsSupported,isUint8ArrayAvailable:y,isLatency:b,sanitizeProperty:C,getISOString:f.toISOString,useXDomainRequest:f.useXDomainRequest,getCommonSchemaMetaData:I,cookieAvailable:f.areCookiesSupported,disallowsSameSiteNone:f.uaDisallowsSameSiteNone,setCookie:P,deleteCookie:w,getCookie:O,createGuid:A,extend:T,getTime:j,isValueKind:F,isArrayValid:D,objDefineAccessors:f.objDefineAccessors,addPageUnloadEventListener:f.addPageUnloadEventListener,setProcessTelemetryTimings:k,addEventHandler:f.addEventHandler,getFieldValueType:U,strEndsWith:f.strEndsWith,objForEachKey:f.objForEachKey},V={_canUseCookies:undefined,isTypeof:f.isTypeof,isUndefined:f.isUndefined,isNullOrUndefined:f.isNullOrUndefined,hasOwnProperty:f.hasOwnProperty,isFunction:f.isFunction,isObject:f.isObject,isDate:f.isDate,isArray:f.isArray,isError:f.isError,isString:f.isString,isNumber:f.isNumber,isBoolean:f.isBoolean,toISOString:f.toISOString,arrForEach:f.arrForEach,arrIndexOf:f.arrIndexOf,arrMap:f.arrMap,arrReduce:f.arrReduce,strTrim:f.strTrim,objCreate:r.objCreateFn,objKeys:f.objKeys,objDefineAccessors:f.objDefineAccessors,addEventHandler:f.addEventHandler,dateNow:f.dateNow,isIE:f.isIE,disableCookies:E,newGuid:f.newGuid,perfNow:f.perfNow,newId:f.newId,randomValue:f.randomValue,random32:f.random32,mwcRandomSeed:f.mwcRandomSeed,mwcRandom32:f.mwcRandom32,generateW3CId:f.generateW3CId},M="version",x="properties",_=(L=f.AppInsightsCore,r.__extendsFn(B,L),B);function B(){var e=L.call(this)||this;return e.pluginVersionStringArr=[],e.pluginVersionString="",o(B,e,function(s,l){s.logger&&s.logger.queue||(s.logger=new f.DiagnosticLogger({loggingLevelConsole:f.LoggingSeverity.CRITICAL})),s.initialize=function(r,i,o,a){f.doPerf(s,function(){return"AppInsightsCore.initialize"},function(){if(r){if(r.endpointUrl||(r.endpointUrl="https://browser.events.data.microsoft.com/OneCollector/1.0/"),(e=r.propertyStorageOverride)&&(!e.getProperty||!e.setProperty))throw Error("Invalid property storage override passed.");r.channels&&f.arrForEach(r.channels,function(e){e&&f.arrForEach(e,function(e){e.identifier&&e.version&&(e=e.identifier+"="+e.version,s.pluginVersionStringArr.push(e))})})}s.getWParam=function(){return"undefined"!=typeof document?0:-1},i&&f.arrForEach(i,function(e){e&&e.identifier&&e.version&&(e=e.identifier+"="+e.version,s.pluginVersionStringArr.push(e))}),s.pluginVersionString=s.pluginVersionStringArr.join(";");try{l.initialize(r,i,o,a),s.pollInternalLogs("InternalLog")}catch(t){var e,n=s.logger;~(e=f.dumpObj(t)).indexOf("channels")&&(e+="\n - Channels must be provided through config.channels only!"),n.throwInternal(f.LoggingSeverity.CRITICAL,u.FailedToInitializeSDK,"SDK Initialization Failed - no telemetry will be sent: "+e)}},function(){return{config:r,extensions:i,logger:o,notificationManager:a}})},s.track=function(t){f.doPerf(s,function(){return"AppInsightsCore.track"},function(){var e,n=t;n&&(n.timings=n.timings||{},n.timings.trackStart=j(),b(n.latency)||(n.latency=a.Normal),(e=n.ext=n.ext||{}).sdk=e.sdk||{},e.sdk.ver=d,(e=n.baseData=n.baseData||{})[x]||(e[x]={}),(e=e[x])[M]||(e[M]=""),""!==s.pluginVersionString&&(e[M]=s.pluginVersionString)),l.track(n)},function(){return{item:t}},!t.sync)}}),e}var G,H=(G=f.BaseCore,r.__extendsFn(z,G),z);function z(){var e=G.call(this)||this;return o(z,e,function(o,a){o.initialize=function(e,n,t,r){e&&!e.endpointUrl&&(e.endpointUrl="https://browser.events.data.microsoft.com/OneCollector/1.0/"),o.getWParam=function(){return m?0:-1};try{a.initialize(e,n,t,r)}catch(i){o.logger.throwInternal(f.LoggingSeverity.CRITICAL,u.FailedToInitializeSDK,"Initialization Failed: "+f.dumpObj(i)+"\n - Note: Channels must be provided through config.channels only")}},o.track=function(e){var n=e;n&&((e=n.ext=n.ext||{}).sdk=e.sdk||{},e.sdk.ver=d),a.track(n)}}),e}var K=f.isFunction,W=(q.resolve=function(r){return r instanceof q?r:r&&K(r.then)?new q(function(e,n){try{r.then(e,n)}catch(t){n(t)}}):new q(function(e){e(r)})},q.reject=function(t){return new q(function(e,n){n(t)})},q.all=function(s){if(s&&s.length)return new q(function(r,e){try{for(var i=[],o=0,n=0;n<s.length;n++){var t=s[n];t&&K(t.then)?(o++,t.then(function(n,t){return function(e){n[t]=e,0==--o&&r(i)}}(i,n),e)):i[n]=t}0===o&&setTimeout(function(){r(i)},0)}catch(a){e(a)}})},q.race=function(i){return new q(function(n,t){if(i&&i.length)try{for(var r=0;r<i.length;r++)!function(){var e=i[r];e&&K(e.then)?e.then(n,t):setTimeout(function(){n(e)},0)}()}catch(e){t(e)}})},q);function q(n){var a=0,s=null,e=[];function i(t,r,i,o){e.push(function(){var e;try{(e=1===a?K(t)?t(s):s:K(r)?r(s):s)instanceof q?e.then(i,o):(2!==a||K(r)?i:o)(e)}catch(n){return void o(n)}}),0!==a&&l()}function l(){var r;0<e.length&&(r=e.slice(),e=[],setTimeout(function(){for(var e=0,n=r.length;e<n;++e)try{r[e]()}catch(t){}},0))}function t(e){0===a&&(s=e,a=1,l())}function r(e){0===a&&(s=e,a=2,l())}o(q,this,function(n){n.then=function(t,r){return new q(function(e,n){i(t,r,e,n)})},n["catch"]=function(e){return n.then(null,e)}}),function(){if(!K(n))throw new TypeError("ESPromise: resolvedFunc argument is not a Function");try{n(t,r)}catch(e){r(e)}}()}var J=0,X=[],Q=[],Z=[];function Y(){return(new Date).getTime()}function $(e,n){var v=0,h=(e||"<unnamed>")+"."+J;function S(e){var n=f.getGlobal();n&&n.QUnit&&console&&console.log("ESPromiseScheduler["+h+"] "+e)}function y(e){n&&n.warnToConsole("ESPromiseScheduler["+h+"] "+e)}J++,o($,this,function(e){var g=null,p=0;function m(e,n){for(var t=0;t<e.length;t++)if(e[t].id===n)return e.splice(t,1)[0];return null}e.scheduleEvent=function(t,e,s){var i=h+"."+p;p++,e&&(i+="-("+e+")");var o,a,n,r=i+"{"+v+"}";return v++,(e={evt:null,tm:Y(),id:r,isRunning:!1,isAborted:!1}).evt=g?(o=e,a=g,n=new W(function(n,t){var e=Y()-a.tm,r=a.id;S("["+i+"] is waiting for ["+r+":"+e+" ms] to complete before starting -- ["+Q.length+"] waiting and ["+X.length+"] running"),o.abort=function(e){o.abort=null,m(Q,i),o.isAborted=!0,t(Error(e))},a.evt.then(function(e){m(Q,i),f(o).then(n,t)},function(e){m(Q,i),f(o).then(n,t)})}),Q.push(o),n):f(e),(g=e).evt._schId=r,e.evt;function l(e){for(var n=Y(),t=n-6e5,r=e.length,i=0;i<r;){var o,a=e[i];a&&a.tm<t?(o=null,a.abort?(o="Aborting ["+a.id+"] due to Excessive runtime ("+(n-a.tm)+" ms)",a.abort(o)):o="Removing ["+a.id+"] due to Excessive runtime ("+(n-a.tm)+" ms)",y(o),e.splice(i,1),r--):i++}}function u(e,n){var t,r=!1,i=m(X,e);i||(i=m(Z,e),r=!0),i?(i.to&&(clearTimeout(i.to),i.to=null),t=Y()-i.tm,n?r?y("Timed out event ["+e+"] finally complete -- "+t+" ms"):S("Promise ["+e+"] Complete -- "+t+" ms"):(Z.push(i),y("Event ["+e+"] Timed out and removed -- "+t+" ms"))):S("Failed to remove ["+e+"] from running queue"),g&&g.id===e&&(g=null),l(X),l(Q),l(Z)}function d(n,t){return function(e){return u(n,!0),t&&t(e),e}}function c(r,o){var a=r.id;return new W(function(n,t){S("Event ["+a+"] Starting -- waited for "+(r.wTm||"--")+" ms"),r.isRunning=!0,r.abort=function(e){r.abort=null,r.isAborted=!0,u(a,!1),t(Error(e))};var e=o(a);e instanceof W?(s&&(r.to=setTimeout(function(){u(a,!1),t(Error("Timed out after ["+s+"] ms"))},s)),function i(n,e,t,r){e.then(function(e){return e instanceof W?(S("Event ["+n+"] returned a promise -- waiting"),i(n,e,t,r),e):d(n,t)(e)},d(n,r))}(a,e,function(e){S("Event ["+a+"] Resolving after "+(Y()-r.tm)+" ms"),n(e)},t)):(S("Promise ["+a+"] Auto completed as the start action did not return a promise"),n())})}function f(e){var n=Y();return e.wTm=n-e.tm,e.tm=n,e.isAborted?W.reject(Error("["+i+"] was aborted")):(X.push(e),c(e,t))}}})}$.incomplete=function(){return X},$.waitingToStart=function(){return Q},n=$;var ee=(ne.getFieldType=U,ne);function ne(e){var u=this,o={},a=[],s=[];function l(e,n){var t=o[e];if(!(i=t?t[n]:i)&&null!==i){if(f.isString(e)&&f.isString(n))if(0<s.length){for(var r=0;r<s.length;r++)if(s[r].handleField(e,n)){i={canHandle:!0,fieldHandler:s[r]};break}}else 0===a.length&&(i={canHandle:!0});if(!i&&null!==i)for(var i=null,r=0;r<a.length;r++)if(a[r].handleField(e,n)){i={canHandle:!0,handler:a[r],fieldHandler:null};break}(t=t||(o[e]={}))[n]=i}return i}function d(e,n,t,r,i,o){if(e.handler)return e.handler.property(n,t,i,o);if(!f.isNullOrUndefined(i.kind)){if(4096==(4096&r)||!F(i.kind))return null;i.value=i.value.toString()}return function l(i,o,a,e,n){var t,s,r;return n&&i&&(t=i.getSanitizer(o,a,e,n.kind,n.propertyType))&&(4===e?(s={},r=n.value,f.objForEachKey(r,function(e,n){var t,r=o+"."+a;h(n)&&(t=c(0,0,n),(t=l(i,r,e,U(n),t))&&(s[e]=t.value))}),n.value=s):n=t.call(u,e={path:o,name:a,type:e,prop:n,sanitizer:u})),n}(e.fieldHandler,n,t,r,i)}function c(e,n,t){return h(t)?{value:t}:null}e&&s.push(e),u.addSanitizer=function(e){e&&(a.push(e),o={})},u.addFieldSanitizer=function(e){e&&(s.push(e),o={})},u.handleField=function(e,n){return!!(n=l(e,n))&&n.canHandle},u.value=function(e,n,t,r){var i=l(e,n);if(i&&i.canHandle){if(!i||!i.canHandle)return null;if(i.handler)return i.handler.value(e,n,t,r);if(!f.isString(n)||f.isNullOrUndefined(t)||""===t)return null;var o=null,a=U(t);if(8192==(8192&a)){var s=-8193&a;if(!h((o=t).value)||1!=s&&2!=s&&3!=s&&4096!=(4096&s))return null}else 1===a||2===a||3===a||4096==(4096&a)?o=c(0,0,t):4===a&&(o=c(0,0,r?JSON.stringify(t):t));if(o)return d(i,e,n,a,o,r)}return null},u.property=function(e,n,t,r){var i=l(e,n);if(!i||!i.canHandle)return null;if(!f.isString(n)||f.isNullOrUndefined(t)||!h(t.value))return null;var o=U(t.value);return 0===o?null:d(i,e,n,o,t,r)}}e.BaseTelemetryPlugin=f.BaseTelemetryPlugin,e.DiagnosticLogger=f.DiagnosticLogger,e.EventHelper=f.EventHelper,e.EventsDiscardedReason=f.EventsDiscardedReason,e.InternalAppInsightsCore=f.AppInsightsCore,e.InternalBaseCore=f.BaseCore,e.LoggingSeverity=f.LoggingSeverity,e.MinChannelPriorty=f.MinChannelPriorty,e.NotificationManager=f.NotificationManager,e.PerfEvent=f.PerfEvent,e.PerfManager=f.PerfManager,e.ProcessTelemetryContext=f.ProcessTelemetryContext,e.Undefined=f.strUndefined,e._InternalLogMessage=f._InternalLogMessage,e._InternalMessageId=f._InternalMessageId,e.addEventHandler=f.addEventHandler,e.addEventListeners=f.addEventListeners,e.addPageHideEventListener=f.addPageHideEventListener,e.addPageShowEventListener=f.addPageShowEventListener,e.addPageUnloadEventListener=f.addPageUnloadEventListener,e.areCookiesSupported=f.areCookiesSupported,e.arrForEach=f.arrForEach,e.arrIndexOf=f.arrIndexOf,e.arrMap=f.arrMap,e.arrReduce=f.arrReduce,e.attachEvent=f.attachEvent,e.cookieAvailable=f.areCookiesSupported,e.createCookieMgr=f.createCookieMgr,e.dateNow=f.dateNow,e.detachEvent=f.detachEvent,e.disallowsSameSiteNone=f.uaDisallowsSameSiteNone,e.doPerf=f.doPerf,e.dumpObj=f.dumpObj,e.generateW3CId=f.generateW3CId,e.getConsole=f.getConsole,e.getCrypto=f.getCrypto,e.getDocument=f.getDocument,e.getExceptionName=f.getExceptionName,e.getGlobal=f.getGlobal,e.getGlobalInst=f.getGlobalInst,e.getHistory=f.getHistory,e.getIEVersion=f.getIEVersion,e.getISOString=f.toISOString,e.getJSON=f.getJSON,e.getLocation=f.getLocation,e.getMsCrypto=f.getMsCrypto,e.getNavigator=f.getNavigator,e.getPerformance=f.getPerformance,e.getSetValue=f.getSetValue,e.getWindow=f.getWindow,e.hasDocument=f.hasDocument,e.hasHistory=f.hasHistory,e.hasJSON=f.hasJSON,e.hasNavigator=f.hasNavigator,e.hasOwnProperty=f.hasOwnProperty,e.hasWindow=f.hasWindow,e.isArray=f.isArray,e.isBeaconsSupported=f.isBeaconsSupported,e.isBoolean=f.isBoolean,e.isDate=f.isDate,e.isError=f.isError,e.isFetchSupported=f.isFetchSupported,e.isFunction=f.isFunction,e.isIE=f.isIE,e.isNotTruthy=f.isNotTruthy,e.isNullOrUndefined=f.isNullOrUndefined,e.isNumber=f.isNumber,e.isObject=f.isObject,e.isReactNative=f.isReactNative,e.isString=f.isString,e.isTruthy=f.isTruthy,e.isTypeof=f.isTypeof,e.isUndefined=f.isUndefined,e.isXhrSupported=f.isXhrSupported,e.newGuid=f.newGuid,e.newId=f.newId,e.normalizeJsName=f.normalizeJsName,e.objCreate=f.objCreate,e.objDefineAccessors=f.objDefineAccessors,e.objForEachKey=f.objForEachKey,e.objKeys=f.objKeys,e.optimizeObject=f.optimizeObject,e.perfNow=f.perfNow,e.proxyAssign=f.proxyAssign,e.random32=f.random32,e.randomValue=f.randomValue,e.safeGetCookieMgr=f.safeGetCookieMgr,e.safeGetLogger=f.safeGetLogger,e.setEnableEnvMocks=f.setEnableEnvMocks,e.setValue=f.setValue,e.strContains=f.strContains,e.strEndsWith=f.strEndsWith,e.strExtensionConfig=f.strExtensionConfig,e.strFunction=f.strFunction,e.strIKey=f.strIKey,e.strObject=f.strObject,e.strPrototype=f.strPrototype,e.strStartsWith=f.strStartsWith,e.strTrim=f.strTrim,e.strUndefined=f.strUndefined,e.throwError=f.throwError,e.toISOString=f.toISOString,e.useXDomainRequest=f.useXDomainRequest,e.AppInsightsCore=_,e.BaseCore=H,e.CoreUtils=V,e.ESPromise=W,e.ESPromiseScheduler=n,e.EventLatency=a,e.EventPersistence={Normal:1,Critical:2},e.EventPropertyType=s,e.FullVersionString=d,e.TraceLevel={NONE:0,ERROR:1,WARNING:2,INFORMATION:3},e.Utils=R,e.ValueKind=i,e.ValueSanitizer=ee,e.Version=l,e._ExtendedInternalMessageId=u,e.createGuid=A,e.deleteCookie=w,e.disableCookies=E,e.extend=T,e.getCommonSchemaMetaData=I,e.getCookie=O,e.getCookieValue=N,e.getFieldValueType=U,e.getTenantId=S,e.getTime=j,e.isArrayValid=D,e.isChromium=function(){return!!f.getGlobalInst("chrome")},e.isDocumentObjectAvailable=m,e.isLatency=b,e.isUint8ArrayAvailable=y,e.isValueAssigned=h,e.isValueKind=F,e.isWindowObjectAvailable=v,e.openXhr=function(e,n,t,r,i){function o(e,n,t){try{e[n]=t}catch(r){}}void 0===r&&(r=!1),void 0===i&&(i=!1);var a=new XMLHttpRequest;return r&&o(a,"Microsoft_ApplicationInsights_BypassAjaxInstrumentation",r),t&&o(a,c,t),a.open(e,n,!i),t&&o(a,c,t),a},e.sanitizeProperty=C,e.setCookie=P,e.setProcessTelemetryTimings=k,function(e,n,t){var r=Object.defineProperty;if(r)try{return r(e,n,t)}catch(i){}typeof t.value!==undefined&&(e[n]=t.value)}(e,"__esModule",{value:!0})};"object"==typeof exports&&"undefined"!=typeof module?n(exports,require("@microsoft/applicationinsights-shims"),require("@microsoft/applicationinsights-core-js"),require("@microsoft/dynamicproto-js")):"function"==typeof define&&define.amd?define(["exports","@microsoft/applicationinsights-shims","@microsoft/applicationinsights-core-js","@microsoft/dynamicproto-js"],n):n((e="undefined"!=typeof globalThis?globalThis:e||self).oneDS=e.oneDS||{},e.applicationinsightsShims,e.applicationinsightsCoreJs,e.dynamicProto); | ||
var e=this,n=function(e,r,f,t){"use strict";function o(e){return e&&"object"==typeof e&&"default"in e?e["default"]:e}var c=o(t),a={NotSet:0,Pii_DistinguishedName:1,Pii_GenericData:2,Pii_IPV4Address:3,Pii_IPv6Address:4,Pii_MailSubject:5,Pii_PhoneNumber:6,Pii_QueryString:7,Pii_SipAddress:8,Pii_SmtpAddress:9,Pii_Identity:10,Pii_Uri:11,Pii_Fqdn:12,Pii_IPV4AddressLegacy:13,CustomerContent_GenericContent:32},m={Normal:1,CostDeferred:2,RealTime:3,Immediate:4},i={Unspecified:0,String:1,Int32:2,UInt32:3,Int64:4,UInt64:5,Double:6,Bool:7,Guid:8,DateTime:9},v=r.__assignFn(r.__assignFn({},f._InternalMessageId),{AuthHandShakeError:501,AuthRedirectFail:502,BrowserCannotReadLocalStorage:503,BrowserCannotWriteLocalStorage:504,BrowserDoesNotSupportLocalStorage:505,CannotParseBiBlobValue:506,CannotParseDataAttribute:507,CVPluginNotAvailable:508,DroppedEvent:509,ErrorParsingAISessionCookie:510,ErrorProvidedChannels:511,FailedToGetCookies:512,FailedToInitializeCorrelationVector:513,FailedToInitializeSDK:514,InvalidContentBlob:515,InvalidCorrelationValue:516,SessionRenewalDateIsZero:517,SendPostOnCompleteFailure:518,PostResponseHandler:519,SDKNotInitialized:520}),t="3.1.10",h="1DS-Web-JS-"+t,s="withCredentials",l=((n={})[0]=i.Unspecified,n[2]=i.Double,n[1]=i.String,n[3]=i.Bool,n[4098]=i.Double,n[4097]=i.String,n[4099]=i.Bool,n),S=null,y=!!f.getDocument(),n=!!f.getWindow();function g(e){return!(""===e||f.isNullOrUndefined(e))}function C(e){if(e){var n=e.indexOf("-");if(-1<n)return e.substring(0,n)}return""}function I(){return S=null===S?!f.isUndefined(Uint8Array)&&!function(){var e=f.getNavigator();if(!f.isUndefined(e)&&e.userAgent)return!~(e=e.userAgent.toLowerCase()).indexOf("safari")&&!~e.indexOf("firefox")||~e.indexOf("chrome")?void 0:1}()&&!f.isReactNative():S}function E(e){return!!(e&&f.isNumber(e)&&m.Normal<=e&&e<=m.Immediate)}function P(e,n,t){if(!n&&!g(n)||"string"!=typeof e)return null;e=typeof n;if("string"==e||"number"==e||"boolean"==e||f.isArray(n))n={value:n};else if("object"!=e||n.hasOwnProperty("value")){if(f.isNullOrUndefined(n.value)||""===n.value||!f.isString(n.value)&&!f.isNumber(n.value)&&!f.isBoolean(n.value)&&!f.isArray(n.value))return null}else n={value:t?JSON.stringify(n):n};if(f.isArray(n.value)&&!L(n.value))return null;if(!f.isNullOrUndefined(n.kind)){if(f.isArray(n.value)||!U(n.kind))return null;n.value=n.value.toString()}return n}function w(e,n,t){var r=-1;return f.isUndefined(e)||(0<n&&(32===n?r=8192:n<=13&&(r=n<<5)),0<=t&&t<=9?(-1===r&&(r=0),r|=t):(n=l[p(e)]||-1,-1!==r&&-1!==n?r|=n:n===i.Double&&(r=n))),r}function O(){f.safeGetCookieMgr(null).setEnabled(!1)}function N(e,n,t){f.areCookiesSupported(null)&&f.safeGetCookieMgr(null).set(e,n,86400*t,null,"/")}function A(e){f.areCookiesSupported(null)&&f.safeGetCookieMgr(null).del(e)}function T(e){return f.areCookiesSupported(null)?j(f.safeGetCookieMgr(null),e):""}function j(e,n,t){var r;return void 0===t&&(t=!0),e&&(r=e.get(n),t&&r&&decodeURIComponent&&(r=decodeURIComponent(r))),r||""}function F(e){void 0===e&&(e="D");var n=f.newGuid();return"B"===e?n="{"+n+"}":"P"===e?n="("+n+")":"N"===e&&(n=n.replace(/-/g,"")),n}function D(e,n,t,u,d){var r={},i=!1,o=0,a=arguments.length,s=Object[f.strPrototype],l=arguments;for("[object Boolean]"===s.toString.call(l[0])&&(i=l[0],o++);o<a;o++)f.objForEachKey(l[o],function(t,e){i&&e&&f.isObject(e)?f.isArray(e)?(r[t]=r[t]||[],f.arrForEach(e,function(e,n){e&&f.isObject(e)?r[t][n]=D(!0,r[t][n],e):r[t][n]=e})):r[t]=D(!0,r[t],e):r[t]=e});return r}var k=f.perfNow;function U(e){return e===a.NotSet||e>a.NotSet&&e<=a.Pii_IPV4AddressLegacy||e===a.CustomerContent_GenericContent}function L(e){return 0<e.length}function R(e,n){e.timings=e.timings||{},e.timings.processTelemetryStart=e.timings.processTelemetryStart||{},e.timings.processTelemetryStart[n]=k()}function p(e){var n,t=0;return null!==e&&e!==undefined&&("string"==(n=typeof e)?t=1:"number"==n?t=2:"boolean"==n?t=3:n===r.strShimObject&&(t=4,f.isArray(e)?(t=4096,0<e.length&&(t|=p(e[0]))):f.hasOwnProperty(e,"value")&&(t=8192|p(e.value)))),t}var V,M={Version:t,FullVersionString:h,strUndefined:f.strUndefined,strObject:f.strObject,Undefined:f.strUndefined,arrForEach:f.arrForEach,arrIndexOf:f.arrIndexOf,arrMap:f.arrMap,arrReduce:f.arrReduce,objKeys:f.objKeys,toISOString:f.toISOString,isReactNative:f.isReactNative,isString:f.isString,isNumber:f.isNumber,isBoolean:f.isBoolean,isFunction:f.isFunction,isArray:f.isArray,isObject:f.isObject,strTrim:f.strTrim,isDocumentObjectAvailable:y,isWindowObjectAvailable:n,isValueAssigned:g,getTenantId:C,isBeaconsSupported:f.isBeaconsSupported,isUint8ArrayAvailable:I,isLatency:E,sanitizeProperty:P,getISOString:f.toISOString,useXDomainRequest:f.useXDomainRequest,getCommonSchemaMetaData:w,cookieAvailable:f.areCookiesSupported,disallowsSameSiteNone:f.uaDisallowsSameSiteNone,setCookie:N,deleteCookie:A,getCookie:T,createGuid:F,extend:D,getTime:k,isValueKind:U,isArrayValid:L,objDefineAccessors:f.objDefineAccessors,addPageUnloadEventListener:f.addPageUnloadEventListener,setProcessTelemetryTimings:R,addEventHandler:f.addEventHandler,getFieldValueType:p,strEndsWith:f.strEndsWith,objForEachKey:f.objForEachKey},x={_canUseCookies:undefined,isTypeof:f.isTypeof,isUndefined:f.isUndefined,isNullOrUndefined:f.isNullOrUndefined,hasOwnProperty:f.hasOwnProperty,isFunction:f.isFunction,isObject:f.isObject,isDate:f.isDate,isArray:f.isArray,isError:f.isError,isString:f.isString,isNumber:f.isNumber,isBoolean:f.isBoolean,toISOString:f.toISOString,arrForEach:f.arrForEach,arrIndexOf:f.arrIndexOf,arrMap:f.arrMap,arrReduce:f.arrReduce,strTrim:f.strTrim,objCreate:r.objCreateFn,objKeys:f.objKeys,objDefineAccessors:f.objDefineAccessors,addEventHandler:f.addEventHandler,dateNow:f.dateNow,isIE:f.isIE,disableCookies:O,newGuid:f.newGuid,perfNow:f.perfNow,newId:f.newId,randomValue:f.randomValue,random32:f.random32,mwcRandomSeed:f.mwcRandomSeed,mwcRandom32:f.mwcRandom32,generateW3CId:f.generateW3CId},_="version",B="properties",G=(V=f.AppInsightsCore,r.__extendsFn(H,V),H);function H(){var e=V.call(this)||this;return e.pluginVersionStringArr=[],e.pluginVersionString="",c(H,e,function(s,l){s.logger&&s.logger.queue||(s.logger=new f.DiagnosticLogger({loggingLevelConsole:f.LoggingSeverity.CRITICAL})),s.initialize=function(r,i,o,a){f.doPerf(s,function(){return"AppInsightsCore.initialize"},function(){if(r){r.endpointUrl||(r.endpointUrl="https://browser.events.data.microsoft.com/OneCollector/1.0/");var e=r.propertyStorageOverride;if(e&&(!e.getProperty||!e.setProperty))throw Error("Invalid property storage override passed.");r.channels&&f.arrForEach(r.channels,function(e){e&&f.arrForEach(e,function(e){e.identifier&&e.version&&(e=e.identifier+"="+e.version,s.pluginVersionStringArr.push(e))})})}s.getWParam=function(){return"undefined"!=typeof document?0:-1},i&&f.arrForEach(i,function(e){e&&e.identifier&&e.version&&(e=e.identifier+"="+e.version,s.pluginVersionStringArr.push(e))}),s.pluginVersionString=s.pluginVersionStringArr.join(";");try{l.initialize(r,i,o,a),s.pollInternalLogs("InternalLog")}catch(t){var e=s.logger,n=f.dumpObj(t);~n.indexOf("channels")&&(n+="\n - Channels must be provided through config.channels only!"),e.throwInternal(f.LoggingSeverity.CRITICAL,v.FailedToInitializeSDK,"SDK Initialization Failed - no telemetry will be sent: "+n)}},function(){return{config:r,extensions:i,logger:o,notificationManager:a}})},s.track=function(t){f.doPerf(s,function(){return"AppInsightsCore.track"},function(){var e,n=t;n&&(n.timings=n.timings||{},n.timings.trackStart=k(),E(n.latency)||(n.latency=m.Normal),(e=n.ext=n.ext||{}).sdk=e.sdk||{},e.sdk.ver=h,(e=n.baseData=n.baseData||{})[B]||(e[B]={}),(e=e[B])[_]||(e[_]=""),""!==s.pluginVersionString&&(e[_]=s.pluginVersionString)),l.track(n)},function(){return{item:t}},!t.sync)}}),e}z=f.BaseCore,r.__extendsFn(W,z);var z,K=W;function W(){var e=z.call(this)||this;return c(W,e,function(o,a){o.initialize=function(e,n,t,r){e&&!e.endpointUrl&&(e.endpointUrl="https://browser.events.data.microsoft.com/OneCollector/1.0/"),o.getWParam=function(){return y?0:-1};try{a.initialize(e,n,t,r)}catch(i){o.logger.throwInternal(f.LoggingSeverity.CRITICAL,v.FailedToInitializeSDK,"Initialization Failed: "+f.dumpObj(i)+"\n - Note: Channels must be provided through config.channels only")}},o.track=function(e){var n;e&&((n=e.ext=e.ext||{}).sdk=n.sdk||{},n.sdk.ver=h),a.track(e)}}),e}var u=f.isFunction,q=(d.resolve=function(r){return r instanceof d?r:r&&u(r.then)?new d(function(e,n){try{r.then(e,n)}catch(t){n(t)}}):new d(function(e){e(r)})},d.reject=function(t){return new d(function(e,n){n(t)})},d.all=function(s){if(s&&s.length)return new d(function(r,e){try{for(var i=[],o=0,n=0;n<s.length;n++){var t=s[n];t&&u(t.then)?(o++,t.then(function(n,t){return function(e){n[t]=e,0==--o&&r(i)}}(i,n),e)):i[n]=t}0===o&&setTimeout(function(){r(i)},0)}catch(a){e(a)}})},d.race=function(i){return new d(function(n,t){if(i&&i.length)try{for(var r=0;r<i.length;r++)!function(){var e=i[r];e&&u(e.then)?e.then(n,t):setTimeout(function(){n(e)},0)}()}catch(e){t(e)}})},d);function d(e){var a=0,s=null,n=[];function i(t,r,i,o){n.push(function(){var e;try{(e=1===a?u(t)?t(s):s:u(r)?r(s):s)instanceof d?e.then(i,o):(2!==a||u(r)?i:o)(e)}catch(n){return void o(n)}}),0!==a&&l()}function l(){var r;0<n.length&&(r=n.slice(),n=[],setTimeout(function(){for(var e=0,n=r.length;e<n;++e)try{r[e]()}catch(t){}},0))}function t(e){0===a&&(s=e,a=2,l())}if(c(d,this,function(n){n.then=function(t,r){return new d(function(e,n){i(t,r,e,n)})},n["catch"]=function(e){return n.then(null,e)}}),!u(e))throw new TypeError("ESPromise: resolvedFunc argument is not a Function");try{e(function(e){0===a&&(s=e,a=1,l())},t)}catch(r){t(r)}}var J=0,X=[],b=[],Q=[];function Z(){return(new Date).getTime()}$.incomplete=function(){return X},$.waitingToStart=function(){return b};var Y=$;function $(e,n){var v=0,h=(e||"<unnamed>")+"."+J;function S(e){var n=f.getGlobal();n&&n.QUnit&&console&&console.log("ESPromiseScheduler["+h+"] "+e)}function y(e){n&&n.warnToConsole("ESPromiseScheduler["+h+"] "+e)}J++,c($,this,function(e){var g=null,p=0;function m(e,n){for(var t=0;t<e.length;t++)if(e[t].id===n)return e.splice(t,1)[0];return null}e.scheduleEvent=function(r,e,s){var i,o,n,a=h+"."+p,e=(p++,e&&(a+="-("+e+")"),a+"{"+v+"}"),t=(v++,{evt:null,tm:Z(),id:e,isRunning:!1,isAborted:!1});return t.evt=g?(i=t,o=g,n=new q(function(n,t){var e=Z()-o.tm,r=o.id;S("["+a+"] is waiting for ["+r+":"+e+" ms] to complete before starting -- ["+b.length+"] waiting and ["+X.length+"] running"),i.abort=function(e){i.abort=null,m(b,a),i.isAborted=!0,t(Error(e))},o.evt.then(function(e){m(b,a),d(i).then(n,t)},function(e){m(b,a),d(i).then(n,t)})}),b.push(i),n):d(t),(g=t).evt._schId=e,t.evt;function l(e){for(var n=Z(),t=n-6e5,r=e.length,i=0;i<r;){var o,a=e[i];a&&a.tm<t?(o=null,a.abort?(o="Aborting ["+a.id+"] due to Excessive runtime ("+(n-a.tm)+" ms)",a.abort(o)):o="Removing ["+a.id+"] due to Excessive runtime ("+(n-a.tm)+" ms)",y(o),e.splice(i,1),r--):i++}}function u(e,n){var t,r=!1,i=m(X,e);i||(i=m(Q,e),r=!0),i?(i.to&&(clearTimeout(i.to),i.to=null),t=Z()-i.tm,n?r?y("Timed out event ["+e+"] finally complete -- "+t+" ms"):S("Promise ["+e+"] Complete -- "+t+" ms"):(Q.push(i),y("Event ["+e+"] Timed out and removed -- "+t+" ms"))):S("Failed to remove ["+e+"] from running queue"),g&&g.id===e&&(g=null),l(X),l(b),l(Q)}function c(n,t){return function(e){return u(n,!0),t&&t(e),e}}function f(r,o){var a=r.id;return new q(function(n,t){S("Event ["+a+"] Starting -- waited for "+(r.wTm||"--")+" ms"),r.isRunning=!0,r.abort=function(e){r.abort=null,r.isAborted=!0,u(a,!1),t(Error(e))};var e=o(a);e instanceof q?(s&&(r.to=setTimeout(function(){u(a,!1),t(Error("Timed out after ["+s+"] ms"))},s)),function i(n,e,t,r){e.then(function(e){return e instanceof q?(S("Event ["+n+"] returned a promise -- waiting"),i(n,e,t,r),e):c(n,t)(e)},c(n,r))}(a,e,function(e){S("Event ["+a+"] Resolving after "+(Z()-r.tm)+" ms"),n(e)},t)):(S("Promise ["+a+"] Auto completed as the start action did not return a promise"),n())})}function d(e){var n=Z();return e.wTm=n-e.tm,e.tm=n,e.isAborted?q.reject(Error("["+a+"] was aborted")):(X.push(e),f(e,r))}}})}ne.getFieldType=p;var ee=ne;function ne(e){var u=this,o={},a=[],s=[];function l(e,n){var t=o[e];if(!(i=t?t[n]:i)&&null!==i){if(f.isString(e)&&f.isString(n))if(0<s.length){for(var r=0;r<s.length;r++)if(s[r].handleField(e,n)){i={canHandle:!0,fieldHandler:s[r]};break}}else 0===a.length&&(i={canHandle:!0});if(!i&&null!==i)for(var i=null,r=0;r<a.length;r++)if(a[r].handleField(e,n)){i={canHandle:!0,handler:a[r],fieldHandler:null};break}(t=t||(o[e]={}))[n]=i}return i}function d(e,n,t,r,i,o){if(e.handler)return e.handler.property(n,t,i,o);if(!f.isNullOrUndefined(i.kind)){if(4096==(4096&r)||!U(i.kind))return null;i.value=i.value.toString()}return function l(i,o,a,e,n){var t,s,r;return n&&i&&(t=i.getSanitizer(o,a,e,n.kind,n.propertyType))&&(4===e?(s={},r=n.value,f.objForEachKey(r,function(e,n){var t,r=o+"."+a;g(n)&&(t=c(0,0,n),(t=l(i,r,e,p(n),t))&&(s[e]=t.value))}),n.value=s):n=t.call(u,{path:o,name:a,type:e,prop:n,sanitizer:u})),n}(e.fieldHandler,n,t,r,i)}function c(e,n,t){return g(t)?{value:t}:null}e&&s.push(e),u.addSanitizer=function(e){e&&(a.push(e),o={})},u.addFieldSanitizer=function(e){e&&(s.push(e),o={})},u.handleField=function(e,n){e=l(e,n);return!!e&&e.canHandle},u.value=function(e,n,t,r){var i=l(e,n);if(i&&i.canHandle){if(!i||!i.canHandle)return null;if(i.handler)return i.handler.value(e,n,t,r);if(!f.isString(n)||f.isNullOrUndefined(t)||""===t)return null;var o=null,a=p(t);if(8192==(8192&a)){var s=-8193&a;if(!g((o=t).value)||1!=s&&2!=s&&3!=s&&4096!=(4096&s))return null}else 1===a||2===a||3===a||4096==(4096&a)?o=c(0,0,t):4===a&&(o=c(0,0,r?JSON.stringify(t):t));if(o)return d(i,e,n,a,o,r)}return null},u.property=function(e,n,t,r){var i=l(e,n);if(!i||!i.canHandle)return null;if(!f.isString(n)||f.isNullOrUndefined(t)||!g(t.value))return null;var o=p(t.value);return 0===o?null:d(i,e,n,o,t,r)}}e.BaseTelemetryPlugin=f.BaseTelemetryPlugin,e.DiagnosticLogger=f.DiagnosticLogger,e.EventHelper=f.EventHelper,e.EventsDiscardedReason=f.EventsDiscardedReason,e.InternalAppInsightsCore=f.AppInsightsCore,e.InternalBaseCore=f.BaseCore,e.LoggingSeverity=f.LoggingSeverity,e.MinChannelPriorty=f.MinChannelPriorty,e.NotificationManager=f.NotificationManager,e.PerfEvent=f.PerfEvent,e.PerfManager=f.PerfManager,e.ProcessTelemetryContext=f.ProcessTelemetryContext,e.Undefined=f.strUndefined,e._InternalLogMessage=f._InternalLogMessage,e._InternalMessageId=f._InternalMessageId,e.addEventHandler=f.addEventHandler,e.addEventListeners=f.addEventListeners,e.addPageHideEventListener=f.addPageHideEventListener,e.addPageShowEventListener=f.addPageShowEventListener,e.addPageUnloadEventListener=f.addPageUnloadEventListener,e.areCookiesSupported=f.areCookiesSupported,e.arrForEach=f.arrForEach,e.arrIndexOf=f.arrIndexOf,e.arrMap=f.arrMap,e.arrReduce=f.arrReduce,e.attachEvent=f.attachEvent,e.cookieAvailable=f.areCookiesSupported,e.createCookieMgr=f.createCookieMgr,e.dateNow=f.dateNow,e.detachEvent=f.detachEvent,e.disallowsSameSiteNone=f.uaDisallowsSameSiteNone,e.doPerf=f.doPerf,e.dumpObj=f.dumpObj,e.generateW3CId=f.generateW3CId,e.getConsole=f.getConsole,e.getCrypto=f.getCrypto,e.getDocument=f.getDocument,e.getExceptionName=f.getExceptionName,e.getGlobal=f.getGlobal,e.getGlobalInst=f.getGlobalInst,e.getHistory=f.getHistory,e.getIEVersion=f.getIEVersion,e.getISOString=f.toISOString,e.getJSON=f.getJSON,e.getLocation=f.getLocation,e.getMsCrypto=f.getMsCrypto,e.getNavigator=f.getNavigator,e.getPerformance=f.getPerformance,e.getSetValue=f.getSetValue,e.getWindow=f.getWindow,e.hasDocument=f.hasDocument,e.hasHistory=f.hasHistory,e.hasJSON=f.hasJSON,e.hasNavigator=f.hasNavigator,e.hasOwnProperty=f.hasOwnProperty,e.hasWindow=f.hasWindow,e.isArray=f.isArray,e.isBeaconsSupported=f.isBeaconsSupported,e.isBoolean=f.isBoolean,e.isDate=f.isDate,e.isError=f.isError,e.isFetchSupported=f.isFetchSupported,e.isFunction=f.isFunction,e.isIE=f.isIE,e.isNotTruthy=f.isNotTruthy,e.isNullOrUndefined=f.isNullOrUndefined,e.isNumber=f.isNumber,e.isObject=f.isObject,e.isReactNative=f.isReactNative,e.isString=f.isString,e.isTruthy=f.isTruthy,e.isTypeof=f.isTypeof,e.isUndefined=f.isUndefined,e.isXhrSupported=f.isXhrSupported,e.newGuid=f.newGuid,e.newId=f.newId,e.normalizeJsName=f.normalizeJsName,e.objCreate=f.objCreate,e.objDefineAccessors=f.objDefineAccessors,e.objForEachKey=f.objForEachKey,e.objKeys=f.objKeys,e.optimizeObject=f.optimizeObject,e.perfNow=f.perfNow,e.proxyAssign=f.proxyAssign,e.random32=f.random32,e.randomValue=f.randomValue,e.safeGetCookieMgr=f.safeGetCookieMgr,e.safeGetLogger=f.safeGetLogger,e.setEnableEnvMocks=f.setEnableEnvMocks,e.setValue=f.setValue,e.strContains=f.strContains,e.strEndsWith=f.strEndsWith,e.strExtensionConfig=f.strExtensionConfig,e.strFunction=f.strFunction,e.strIKey=f.strIKey,e.strObject=f.strObject,e.strPrototype=f.strPrototype,e.strStartsWith=f.strStartsWith,e.strTrim=f.strTrim,e.strUndefined=f.strUndefined,e.throwError=f.throwError,e.toISOString=f.toISOString,e.useXDomainRequest=f.useXDomainRequest,e.AppInsightsCore=G,e.BaseCore=K,e.CoreUtils=x,e.ESPromise=q,e.ESPromiseScheduler=Y,e.EventLatency=m,e.EventPersistence={Normal:1,Critical:2},e.EventPropertyType=i,e.FullVersionString=h,e.TraceLevel={NONE:0,ERROR:1,WARNING:2,INFORMATION:3},e.Utils=M,e.ValueKind=a,e.ValueSanitizer=ee,e.Version=t,e._ExtendedInternalMessageId=v,e.createGuid=F,e.deleteCookie=A,e.disableCookies=O,e.extend=D,e.getCommonSchemaMetaData=w,e.getCookie=T,e.getCookieValue=j,e.getFieldValueType=p,e.getTenantId=C,e.getTime=k,e.isArrayValid=L,e.isChromium=function(){return!!f.getGlobalInst("chrome")},e.isDocumentObjectAvailable=y,e.isLatency=E,e.isUint8ArrayAvailable=I,e.isValueAssigned=g,e.isValueKind=U,e.isWindowObjectAvailable=n,e.openXhr=function(e,n,t,r,i){function o(e,n,t){try{e[n]=t}catch(r){}}void 0===r&&(r=!1),void 0===i&&(i=!1);var a=new XMLHttpRequest;return r&&o(a,"Microsoft_ApplicationInsights_BypassAjaxInstrumentation",r),t&&o(a,s,t),a.open(e,n,!i),t&&o(a,s,t),a},e.sanitizeProperty=P,e.setCookie=N,e.setProcessTelemetryTimings=R;G=e,K="__esModule",x={value:!0},Y=Object.defineProperty;if(Y)try{return void Y(G,K,x)}catch(te){}typeof x.value!==undefined&&(G[K]=x.value)};"object"==typeof exports&&"undefined"!=typeof module?n(exports,require("@microsoft/applicationinsights-shims"),require("@microsoft/applicationinsights-core-js"),require("@microsoft/dynamicproto-js")):"function"==typeof define&&define.amd?define(["exports","@microsoft/applicationinsights-shims","@microsoft/applicationinsights-core-js","@microsoft/dynamicproto-js"],n):n((e="undefined"!=typeof globalThis?globalThis:e||self).oneDS=e.oneDS||{},e.applicationinsightsShims,e.applicationinsightsCoreJs,e.dynamicProto); | ||
//# sourceMappingURL=ms.core.min.js.map |
{ | ||
"name": "@microsoft/1ds-core-js", | ||
"version": "3.1.9", | ||
"version": "3.1.10", | ||
"description": "Microsoft Application Insights JavaScript SDK - 1ds-core-js extensions", | ||
@@ -35,4 +35,4 @@ "author": "Microsoft Application Insights Team", | ||
"dependencies": { | ||
"@microsoft/applicationinsights-shims": "^2.0.0", | ||
"@microsoft/applicationinsights-core-js": "2.7.1", | ||
"@microsoft/applicationinsights-shims": "^2.0.1", | ||
"@microsoft/applicationinsights-core-js": "2.7.3", | ||
"@microsoft/dynamicproto-js": "^1.1.4" | ||
@@ -39,0 +39,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 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 not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
4325306
21745
+ Added@microsoft/applicationinsights-core-js@2.7.3(transitive)
+ Added@microsoft/applicationinsights-shims@2.0.1(transitive)
- Removed@microsoft/applicationinsights-core-js@2.7.1(transitive)
- Removed@microsoft/applicationinsights-shims@2.0.0(transitive)