res-1.cdn.office.net Open in urlscan Pro
2a02:26f0:e600::170f:b271  Public Scan

URL: https://res-1.cdn.office.net/officeonline/wv/s/h989042E55AFC3371_App_Scripts/otelNext.worker.min.js
Submission: On July 03 via api from LU — Scanned from DE

Form analysis 0 forms found in the DOM

Text Content

var otelWorker=function(e){var n={};function t(r){if(n[r])return n[r].exports;var i=n[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,t),i.l=!0,i.exports}return t.m=e,t.c=n,t.d=function(e,n,r){t.o(e,n)||Object.defineProperty(e,n,{enumerable:!0,get:r})},t.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},t.t=function(e,n){if(1&n&&(e=t(e)),8&n)return e;if(4&n&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(t.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&n&&"string"!=typeof e)for(var i in e)t.d(r,i,function(n){return e[n]}.bind(null,i));return r},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,n){return Object.prototype.hasOwnProperty.call(e,n)},t.p="",t(t.s=7)}([function(e,n,t){"use strict";t.d(n,"h",(function(){return r})),t.d(n,"j",(function(){return i})),t.d(n,"l",(function(){return o})),t.d(n,"k",(function(){return a})),t.d(n,"i",(function(){return s})),t.d(n,"g",(function(){return u})),t.d(n,"b",(function(){return c})),t.d(n,"f",(function(){return l})),t.d(n,"a",(function(){return f})),t.d(n,"c",(function(){return d})),t.d(n,"d",(function(){return v})),t.d(n,"e",(function(){return p}));var r="function",i="object",o="undefined",a="prototype",s="hasOwnProperty",u="default",c=Object,l=c[a],f=c.assign,d=c.create,v=c.defineProperty,p=l[s]},,,function(e,n,t){"use strict";t.d(n,"a",(function(){return o})),t.d(n,"c",(function(){return a})),t.d(n,"b",(function(){return s}));var r=t(0),i=null;function o(e){void 0===e&&(e=!0);var n=!1===e?null:i;return n||(typeof globalThis!==r.l&&(n=globalThis),n||typeof self===r.l||(n=self),n||typeof window===r.l||(n=window),n||typeof global===r.l||(n=global),i=n),n}function a(e){throw new TypeError(e)}function s(e){var n=r.c;if(n)return n(e);if(null==e)return{};var t=typeof e;function i(){}return t!==r.j&&t!==r.h&&a("Object prototype may only be an Object:"+e),i[r.k]=e,new i}},,,,function(e,n,t){"use strict";t.r(n);var r=function(e,n){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var t in n)Object.prototype.hasOwnProperty.call(n,t)&&(e[t]=n[t])})(e,n)};function i(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function t(){this.constructor=e}r(e,n),e.prototype=null===n?Object.create(n):(t.prototype=n.prototype,new t)}var o=function(){return(o=Object.assign||function(e){for(var n,t=1,r=arguments.length;t<r;t++)for(var i in n=arguments[t])Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i]);return e}).apply(this,arguments)};Object.create;Object.create;var a,s=(a=[],{fireEvent:function(e){a.forEach((function(n){return n(e)}))},addListener:function(e){e&&a.push(e)}});function u(e,n,t){s.fireEvent({level:e,category:n,message:t})}function c(e,n,t){u(0,e,(function(){var e=t instanceof Error?t.message:"";return"".concat(n,": ").concat(e)}))}var l={};function f(e,n){"Office."===e.substring(0,7)&&"."!==e[e.length-1]?l[e]?(n.ariaTenantToken&&(l[e].ariaTenantToken=n.ariaTenantToken),n.dnmToken&&(l[e].dnmToken=n.dnmToken)):l[e]=n:u(0,0,(function(){return"Namespace: ".concat(e)}))}function d(e,n){for(var t=e.length;t>0;){var r=e.substr(0,t);if(l[r]){var i=l[r];return n.ariaTenantToken=i.ariaTenantToken,n.dnmToken=i.dnmToken,!0}t=e.lastIndexOf(".",t-1)}return!1}var v=/^Office(\.[A-Z][a-zA-Z0-9]*){2,}$/,p=/^[a-zA-Z0-9_\.]{1,95}$/;function h(e){if(!function(e){if(!e||e.length>98)return!1;return v.test(e)}(e.eventName))throw new Error("Invalid eventName");var n=e.eventContract;if(n){if(n.name&&!g(n.name))throw new Error("Invalid eventContract");y(n.dataFields)}y(e.dataFields)}function g(e){return p.test(e)}function y(e){e&&e.forEach((function(e){if("string"!=typeof e.name||!g(e.name))throw new Error("Invalid dataField name");2===e.dataType&&function(e){if("number"!=typeof e||!isFinite(e)||Math.floor(e)!==e||e<-9007199254740991||e>9007199254740991)throw new Error("Invalid integer ".concat(JSON.stringify(e)))}(e.value)}))}function m(e,n,t){return b(e,1,n,t)}function C(e,n,t){return b(e,2,n,t)}function T(e,n,t){return b(e,0,n,t)}function b(e,n,t,r){return{name:e,dataType:n,value:t,classification:r||4}}function S(e){var n={eventName:e.eventName,eventFlags:e.eventFlags||{},telemetryProperties:e.telemetryProperties?o({},e.telemetryProperties):{},dataFields:e.dataFields?e.dataFields.slice():[],timestamp:e.timestamp||(new Date).getTime()};return e.eventContract&&(n.eventContract={name:e.eventContract.name,dataFields:e.eventContract.dataFields.slice()}),n}!function(){function e(e,n,t){var r,i,a;this.telemetrySinks=[],this.persistentDataFields=[],this.partAFields=[],this.eventQueue=[],this.config=t||{},e&&(this.telemetrySinks=e.telemetrySinks,(r=this.persistentDataFields).push.apply(r,e.persistentDataFields),this.config=o(o({},e.getConfig()),this.config),(i=this.partAFields).push.apply(i,e.partAFields)),n&&(a=this.persistentDataFields).push.apply(a,n)}e.prototype.addEventContentType=function(e,n){e.push(C("EventContent.Type",n))},e.prototype.sendTelemetryEvent=function(e){var n=S(e),t=n.telemetryProperties;t.nexusTenantToken=-1;var r=t.ariaTenantToken;if(!r&&(!d(n.eventName,t)&&!r))return void u(0,0,(function(){return"No tenant token: "+e.eventName}));this.sendTelemetryEventInternal(n,1)},e.prototype.sendCustomerContent=function(e){var n=S(e),t=n.telemetryProperties,r=t.customerContentVersion;return(!r||r>2)&&(t.customerContentVersion=2),t.ariaTenantToken=void 0,t.nexusTenantToken=void 0,t.dnmToken=void 0,this.addEventContentType(n.dataFields,2),this.sendTelemetryEventInternal(n,2)},e.prototype.sendDirectNumericEvent=function(e){var n=S(e),t=n.telemetryProperties;if(!t.dnmToken&&(!d(n.eventName,t)&&!t.dnmToken))return void u(0,0,(function(){return"No dnm token: "+n.eventName}));this.addEventContentType(n.dataFields,1),this.sendTelemetryEventInternal(n,3)},e.prototype.sendTelemetryEventInternal=function(e,n){if(2===n||!e.telemetryProperties.customerContentVersion&&!e.telemetryProperties.customerContentType){try{if(0===this.telemetrySinks.length)return void(this.config.enableQueue&&this.eventQueue.length<1e3?this.eventQueue.push([e,n]):u(1,0,(function(){return"No telemetry sinks are attached."})));this.processTelemetryEvent(e,n)}catch(e){return void c(0,"SendTelemetryEvent",e)}this.telemetrySinks.forEach((function(t){try{3===n||2===n?t.sendNonStandardEvent&&t.sendNonStandardEvent(e,n):t.sendTelemetryEvent(e)}catch(e){}}))}else u(0,0,(function(){return"Customer content"}))},e.prototype.processTelemetryEvent=function(e,n){var t,r,i;if(e.dataFields&&(null===(i=e.dataFields)||void 0===i||i.unshift(T("OTelJS.Version","4.13.16")),3!==n&&this.persistentDataFields&&(t=e.dataFields).unshift.apply(t,this.persistentDataFields)),this.partAFields.length>0){var o=e.eventContract||{name:"",dataFields:[]};(r=o.dataFields).push.apply(r,this.partAFields),e.eventContract=o}this.config.disableValidation||h(e)},e.prototype.addSink=function(e){this.telemetrySinks.push(e),this.flushQueue()},e.prototype.flushQueue=function(){var e=this.eventQueue;if(this.eventQueue=[],this.telemetrySinks.length>0)for(var n=0,t=e;n<t.length;n++){var r=t[n],i=r[0],o=r[1];this.sendTelemetryEventInternal(i,o)}},e.prototype.setTenantToken=function(e,n,t){f(e,{ariaTenantToken:n,nexusTenantToken:t})},e.prototype.setDNMToken=function(e,n){f(e,{dnmToken:n})},e.prototype.cloneEvent=function(e){return S(e)},e.prototype.getConfig=function(){return this.config}}();var _,P=t(11),E=Object,w=E.getPrototypeOf,k=E.getOwnPropertyNames;var x,I=("undefined"!=typeof globalThis&&(x=globalThis),x||"undefined"==typeof self||(x=self),x||"undefined"==typeof window||(x=window),x||"undefined"==typeof global||(x=global),x||{}),N=I.__dynProto$Gbl||(I.__dynProto$Gbl={o:(_={},_.setInstFuncs=!0,_.useBaseInst=!0,_),n:1e3});function A(e,n){return e&&E.prototype.hasOwnProperty.call(e,n)}function O(e){return e&&(e===E.prototype||e===Array.prototype)}function M(e){return O(e)||e===Function.prototype}function D(e){var n;if(e){if(w)return w(e);var t=e.__proto__||e.prototype||(e.constructor?e.constructor.prototype:null);n=e._dyn__proto__||t,A(e,"_dyn__proto__")||(delete e._dynInstProto,n=e._dyn__proto__=e._dynInstProto||e._dyn__proto__,e._dynInstProto=t)}return n}function F(e,n){var t=[];if(k)t=k(e);else for(var r in e)"string"==typeof r&&A(e,r)&&t.push(r);if(t&&t.length>0)for(var i=0;i<t.length;i++)n(t[i])}function U(e,n,t){return"constructor"!==n&&"function"==typeof e[n]&&(t||A(e,n))}function L(e){throw new TypeError("DynamicProto: "+e)}function R(e,n){for(var t=e.length-1;t>=0;t--)if(e[t]===n)return!0;return!1}function B(e,n,t,r){var i=null;if(e&&A(t,"_dynClass")){var o=e._dynInstFuncs||{};if((i=(o[t._dynClass]||{})[n])||L("Missing ["+n+"] function"),!i._dynInstChk&&!1!==o._dynInstChk){for(var a=!A(e,n),s=D(e),u=[];a&&s&&!M(s)&&!R(u,s);){var c=s[n];if(c){a=c===r;break}u.push(s),s=D(s)}try{a&&(e[n]=i),i._dynInstChk=1}catch(e){o._dynInstChk=!1}}}return i}function K(e,n,t){var r=n[e];return r===t&&(r=D(n)[e]),"function"!=typeof r&&L("["+e+"] is not a function"),r}function z(e,n,t,r,i){if(!O(e)){var o=t._dynInstFuncs=t._dynInstFuncs||{},a=o[n]=o[n]||{};!1!==o._dynInstChk&&(o._dynInstChk=!!i),F(t,(function(n){U(t,n,!1)&&t[n]!==r[n]&&(a[n]=t[n],delete t[n],(!A(e,n)||e[n]&&!e[n]._isDynProxy)&&(e[n]=function(e,n){var t=function(){var r=B(this,n,e,t)||K(n,e,t);return r.apply(this,arguments)};return t._isDynProxy=1,t}(e,n)))}))}}function H(e,n){return A(e,"prototype")?e.name||n||"_unknown_":((e||{}).constructor||{}).name||n||"_unknown_"}function j(e,n,t,r){A(e,"prototype")||L("theClass is an invalid class definition.");var i=e.prototype;(function(e,n){if(w){for(var t=[],r=D(n);r&&!M(r)&&!R(t,r);){if(r===e)return!0;t.push(r),r=D(r)}return!1}return!0})(i,n)||L("["+H(e)+"] not in hierarchy of ["+H(n)+"]");var o=null;A(i,"_dynClass")?o=i._dynClass:(o="_dynCls$"+H(e,"_")+"$"+N.n,N.n++,i._dynClass=o);var a=j._dfOpts,s=!!a.useBaseInst;s&&r&&void 0!==r.useBaseInst&&(s=!!r.useBaseInst);var u=function(e){var n={};return F(e,(function(t){!n[t]&&U(e,t,!1)&&(n[t]=e[t])})),n}(n);t(n,function(e,n,t,r){function i(e,n,t){var i=n[t];if(i._isDynProxy&&r){var o=e._dynInstFuncs||{};!1!==o._dynInstChk&&(i=(o[n._dynClass]||{})[t]||i)}return function(){return i.apply(e,arguments)}}var o={};F(t,(function(e){o[e]=i(n,t,e)}));for(var a=D(e),s=[];a&&!M(a)&&!R(s,a);)F(a,(function(e){!o[e]&&U(a,e,!w)&&(o[e]=i(n,a,e))})),s.push(a),a=D(a);return o}(i,n,u,s));var c=!!w&&!!a.setInstFuncs;c&&r&&(c=!!r.setInstFuncs),z(i,o,n,u,!1!==c)}j._dfOpts=N.o;var q=t(0),V=t(3),G=q.d,X=q.b.freeze,W=(q.b.seal,q.b.keys),Q=String[q.k],J=Q.trim,$=Q.endsWith,Z=Q.startsWith,Y=Date[q.k].toISOString,ee=Array.isArray,ne=q.f.toString,te=q.e.toString,re=te.call(q.b),ie=/-([a-z])/g,oe=/([^\w\d_$])/g,ae=/^(\d+[\w\d_$])/,se=Object.getPrototypeOf;function ue(e,n){return typeof e===n}function ce(e){return void 0===e||typeof e===q.l}function le(e){return null===e||ce(e)}function fe(e){return!le(e)}function de(e,n){return!(!e||!q.e.call(e,n))}function ve(e){return!(!e||typeof e!==q.j)}function pe(e){return!(!e||typeof e!==q.h)}function he(e){var n=e;return n&&_e(n)&&(n=(n=(n=n.replace(ie,(function(e,n){return n.toUpperCase()}))).replace(oe,"_")).replace(ae,(function(e,n){return"_"+n}))),n}function ge(e,n){if(e)for(var t in e)q.e.call(e,t)&&n.call(e,t,e[t])}function ye(e,n){var t=!1;return e&&n&&!(t=e===n)&&(t=$?e.endsWith(n):function(e,n){var t=!1,r=n?n.length:0,i=e?e.length:0;if(r&&i&&i>=r&&!(t=e===n)){for(var o=i-1,a=r-1;a>=0;a--){if(e[o]!=n[a])return!1;o--}t=!0}return t}(e,n)),t}function me(e,n){var t=!1;return e&&n&&!(t=e===n)&&(t=Z?e.startsWith(n):function(e,n){var t=!1,r=n?n.length:0;if(e&&r&&e.length>=r&&!(t=e===n)){for(var i=0;i<r;i++)if(e[i]!==n[i])return!1;t=!0}return t}(e,n)),t}function Ce(e,n){return!(!e||!n)&&-1!==e.indexOf(n)}function Te(e){return!(!e||"[object Date]"!==ne.call(e))}var be=ee||function(e){return!(!e||"[object Array]"!==ne.call(e))};function Se(e){return!(!e||"[object Error]"!==ne.call(e))}function _e(e){return"string"==typeof e}function Pe(e){return"number"==typeof e}function Ee(e){return"boolean"==typeof e}function we(e){var n=!1;if(e&&"object"==typeof e){var t=se?se(e):function(e){if(e){if(se)return se(e);var n=e.__proto__||e[q.k]||e.constructor;if(n)return n}return null}(e);t?(t.constructor&&q.e.call(t,"constructor")&&(t=t.constructor),n=typeof t===q.h&&te.call(t)===re):n=!0}return n}function ke(e){if(e)return Y?e.toISOString():function(e){if(e&&e.getUTCFullYear){var n=function(e){var n=String(e);return 1===n.length&&(n="0"+n),n};return e.getUTCFullYear()+"-"+n(e.getUTCMonth()+1)+"-"+n(e.getUTCDate())+"T"+n(e.getUTCHours())+":"+n(e.getUTCMinutes())+":"+n(e.getUTCSeconds())+"."+String((e.getUTCMilliseconds()/1e3).toFixed(3)).slice(2,5)+"Z"}}(e)}function xe(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(e){}}function Ie(e,n,t){if(e){if(e.indexOf)return e.indexOf(n,t);var r=e.length,i=t||0;try{for(var o=Math.max(i>=0?i:r-Math.abs(i),0);o<r;o++)if(o in e&&e[o]===n)return o}catch(e){}}return-1}function Ne(e,n,t){var r;if(e){if(e.map)return e.map(n,t);var i=e.length,o=t||e;r=new Array(i);try{for(var a=0;a<i;a++)a in e&&(r[a]=n.call(o,e[a],e))}catch(e){}}return r}function Ae(e,n,t){var r;if(e){if(e.reduce)return e.reduce(n,t);var i=e.length,o=0;if(arguments.length>=3)r=arguments[2];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 Oe(e){return e&&(e=J&&e.trim?e.trim():e.replace?e.replace(/^\s+|(?=\s)\s+$/g,""):e),e}var Me=!{toString:null}.propertyIsEnumerable("toString"),De=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"];function Fe(e){var n=typeof e;if(n===q.h||n===q.j&&null!==e||Object(V.c)("objKeys called on non-object"),!Me&&W)return W(e);var t=[];for(var r in e)e&&q.e.call(e,r)&&t.push(r);if(Me)for(var i=De.length,o=0;o<i;o++)e&&q.e.call(e,De[o])&&t.push(De[o]);return t}function Ue(e,n,t,r){if(G)try{var i={enumerable:!0,configurable:!0};return t&&(i.get=t),r&&(i.set=r),G(e,n,i),!0}catch(e){}return!1}function Le(e){return e}function Re(e){return X&&ge(e,(function(e,n){(be(n)||ve(n))&&X(n)})),Be(e)}var Be=X||Le;function Ke(){var e=Date;return e.now?e.now():(new e).getTime()}function ze(e){return Se(e)?e.name:""}function He(e,n,t,r,i){var o=t;return e&&((o=e[n])===t||i&&!i(o)||r&&!r(t)||(o=t,e[n]=o)),o}function je(e,n,t){var r;return e?!(r=e[n])&&le(r)&&(r=ce(t)?{}:t,e[n]=r):r=ce(t)?{}:t,r}function qe(e,n){return le(e)?n:e}function Ve(e){return!!e}function Ge(e){throw new Error(e)}function Xe(e,n){var t=null,r=null;return pe(e)?t=e:r=e,function(){var e=arguments;if(t&&(r=t()),r)return r[n].apply(r,e)}}function We(e,n,t,r,i){e&&n&&t&&(!1!==i||ce(e[n]))&&(e[n]=Xe(t,r))}function Qe(e,n,t,r){return e&&n&&ve(e)&&be(t)&&xe(t,(function(t){_e(t)&&We(e,t,n,t,r)})),e}function Je(e){return e&&q.a&&(e=Object(q.b)(Object(q.a)({},e))),e}function $e(e,n,t,r,i,o){var a=arguments,s=a[0]||{},u=a.length,c=!1,l=1;for(u>0&&Ee(s)&&(c=s,s=a[l]||{},l++),ve(s)||(s={});l<u;l++){var f=a[l],d=be(f),v=ve(f);for(var p in f){var h=d&&p in f||v&&q.e.call(f,p);if(h){var g=f[p],y=void 0;if(c&&g&&((y=be(g))||we(g))){var m=s[p];y?be(m)||(m=[]):we(m)||(m={}),g=$e(c,m,g)}void 0!==g&&(s[p]=g)}}}return s}var Ze=null,Ye=null,en=!1,nn=null,tn=null;function rn(e,n){var t=!1;if(e){try{if(!(t=n in e)){var r=e[q.k];r&&(t=n in r)}}catch(e){}if(!t)try{t=!ce((new e)[n])}catch(e){}}return t}function on(e){var n=Object(V.a)();return n&&n[e]?n[e]:"window"===e&&an()?window:null}function an(){return Boolean(typeof window===q.j&&window)}function sn(){return an()?window:on("window")}function un(){return Boolean(typeof document===q.j&&document)?document:on("document")}function cn(){return Boolean(typeof navigator===q.j&&navigator)}function ln(){return cn()?navigator:on("navigator")}function fn(e){if(e&&en){var n=on("__mockLocation");if(n)return n}return typeof location===q.j&&location?location:on("location")}function dn(){return on("performance")}function vn(){return Boolean(typeof JSON===q.j&&JSON||null!==on("JSON"))}function pn(){return vn()?JSON||on("JSON"):null}function hn(){var e=ln();return!(!e||!e.product)&&"ReactNative"===e.product}function gn(){var e=ln();if(e&&(e.userAgent!==Ye||null===Ze)){var n=((Ye=e.userAgent)||"").toLowerCase();Ze=Ce(n,"msie")||Ce(n,"trident/")}return Ze}function yn(e){var n=Object[q.k].toString.call(e),t="";return"[object Error]"===n?t="{ stack: '"+e.stack+"', message: '"+e.message+"', name: '"+e.name+"'":vn()&&(t=pn().stringify(e)),n+t}function mn(){return null===tn&&(tn=cn()&&Boolean(ln().sendBeacon)),tn}function Cn(e){var n=!1;try{n=!!on("fetch");var t=on("Request");n&&e&&t&&(n=rn(t,"keepalive"))}catch(e){}return n}function Tn(){return null===nn&&(nn=typeof XDomainRequest!==q.l)&&bn()&&(nn=nn&&!rn(on("XMLHttpRequest"),"withCredentials")),nn}function bn(){var e=!1;try{e=!!on("XMLHttpRequest")}catch(e){}return e}var Sn,_n=["eventsSent","eventsDiscarded","eventsSendRequest","perfEvent"],Pn=null;function En(e,n){return function(){var t=arguments,r=wn(n);if(r){var i=r.listener;i&&i[e]&&i[e].apply(i,t)}}}function wn(e){var n,t=Pn;return t||!0===e.disableDbgExt||(t=Pn||((n=on("Microsoft"))&&(Pn=n.ApplicationInsights),Pn)),t?t.ChromeDbgExt:null}function kn(e){return e?'"'+e.replace(/\"/g,"")+'"':""}function xn(e,n){var t=typeof console!==q.l?console:on("console");if(t){var r="log";t[e]&&(r=e),pe(t[r])&&t[r](n)}}var In=function(){function e(e,n,t,r){void 0===t&&(t=!1);this.messageId=e,this.message=(t?"AI: ":"AI (Internal): ")+e;var i="";vn()&&(i=pn().stringify(r));var o=(n?" message:"+kn(n):"")+(r?" props:"+kn(i):"");this.message+=o}return e.dataType="MessageData",e}();var Nn=function(){function e(n){this.identifier="DiagnosticLogger",this.queue=[];var t,r,i,o,a=0,s={};j(e,this,(function(e){function u(n,t){if(!(a>=i)){var o=!0,u="AITR_"+t.messageId;if(s[u]?o=!1:s[u]=!0,o&&(n<=r&&(e.queue.push(t),a++,c(1===n?"error":"warn",t)),a===i)){var l="Internal events throttle limit per PageView reached for this app.",f=new In(23,l,!1);e.queue.push(f),1===n?e.errorToConsole(l):e.warnToConsole(l)}}}function c(e,t){var r=wn(n||{});r&&r.diagLog&&r.diagLog(e,t)}!function(e){t=qe(e.loggingLevelConsole,0),r=qe(e.loggingLevelTelemetry,1),i=qe(e.maxMessageLimit,25),o=qe(e.enableDebug,qe(e.enableDebugExceptions,!1))}(n||{}),e.consoleLoggingLevel=function(){return t},e.telemetryLoggingLevel=function(){return r},e.maxInternalMessageLimit=function(){return i},e.enableDebugExceptions=function(){return o},e.throwInternal=function(n,r,i,a,l){void 0===l&&(l=!1);var f=new In(r,i,l,a);if(o)throw yn(f);var d=1===n?"errorToConsole":"warnToConsole";if(ce(f.message))c("throw"+(1===n?"Critical":"Warning"),f);else{if(l){var v=+f.messageId;!s[v]&&t>=n&&(e[d](f.message),s[v]=!0)}else t>=n&&e[d](f.message);u(n,f)}},e.warnToConsole=function(e){xn("warn",e),c("warning",e)},e.errorToConsole=function(e){xn("error",e),c("error",e)},e.resetInternalMessageCount=function(){a=0,s={}},e.logInternalMessage=u}))}return e.__ieDyn=1,e}();function An(e){return e||new Nn}function On(e,n,t,r,i,o){void 0===o&&(o=!1),An(e).throwInternal(n,t,r,i,o)}function Mn(e,n){An(e).warnToConsole(n)}var Dn=null,Fn=function(){function e(n,t,r){var i,o=this,a=!1;(o.start=Ke(),o.name=n,o.isAsync=r,o.isChildEvt=function(){return!1},pe(t))&&(a=Ue(o,"payload",(function(){return!i&&pe(t)&&(i=t(),t=null),i})));o.getCtx=function(n){return n?n===e.ParentContextKey||n===e.ChildrenContextKey?o[n]:(o.ctx||{})[n]:null},o.setCtx=function(n,t){if(n)if(n===e.ParentContextKey)o[n]||(o.isChildEvt=function(){return!0}),o[n]=t;else if(n===e.ChildrenContextKey)o[n]=t;else{(o.ctx=o.ctx||{})[n]=t}},o.complete=function(){var n=0,r=o.getCtx(e.ChildrenContextKey);if(be(r))for(var i=0;i<r.length;i++){var s=r[i];s&&(n+=s.time)}o.time=Ke()-o.start,o.exTime=o.time-n,o.complete=function(){},!a&&pe(t)&&(o.payload=t())}}return e.ParentContextKey="parent",e.ChildrenContextKey="childEvts",e}(),Un=function(){function e(n){this.ctx={},j(e,this,(function(e){e.create=function(e,n,t){return new Fn(e,n,t)},e.fire=function(e){e&&(e.complete(),n&&pe(n.perfEvent)&&n.perfEvent(e))},e.setCtx=function(n,t){n&&((e.ctx=e.ctx||{})[n]=t)},e.getCtx=function(n){return(e.ctx||{})[n]}}))}return e.__ieDyn=1,e}();function Ln(e,n,t,r,i){if(e){var o=e;if(o.getPerfMgr&&(o=o.getPerfMgr()),o){var a=void 0,s=o.getCtx("CoreUtils.doPerf");try{if(a=o.create(n(),r,i)){if(s&&a.setCtx&&(a.setCtx(Fn.ParentContextKey,s),s.getCtx&&s.setCtx)){var u=s.getCtx(Fn.ChildrenContextKey);u||(u=[],s.setCtx(Fn.ChildrenContextKey,u)),u.push(a)}return o.setCtx("CoreUtils.doPerf",a),t(a)}}catch(e){a&&a.setCtx&&a.setCtx("exception",e)}finally{a&&o.fire(a),o.setCtx("CoreUtils.doPerf",s)}}}return t()}var Rn=!1,Bn=123456789,Kn=987654321;function zn(e){e<0&&(e>>>=0),Bn=123456789+e&4294967295,Kn=987654321-e&4294967295,Rn=!0}function Hn(){try{var e=2147483647&Ke();zn((4294967296*Math.random()^e)+e)}catch(e){}}function jn(e){return e>0?Math.floor(qn()/4294967295*(e+1))>>>0:0}function qn(e){var n=0,t=on("crypto")||on("msCrypto");return t&&t.getRandomValues&&(n=4294967295&t.getRandomValues(new Uint32Array(1))[0]),0===n&&gn()&&(Rn||Hn(),n=4294967295&Gn()),0===n&&(n=Math.floor(4294967296*Math.random()|0)),e||(n>>>=0),n}function Vn(e){e?zn(e):Hn()}function Gn(e){var n=((Kn=36969*(65535&Kn)+(Kn>>16)&4294967295)<<16)+(65535&(Bn=18e3*(65535&Bn)+(Bn>>16)&4294967295))>>>0&4294967295|0;return e||(n>>>=0),n}function Xn(e){void 0===e&&(e=22);for(var n=qn()>>>0,t=0,r="";r.length<e;)t++,r+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(63&n),n>>>=6,5===t&&(n=(qn()<<2&4294967295|3&n)>>>0,t=0);return r}var Wn=q.d,Qn="."+Xn(6),Jn=0;function $n(e){return 1===e.nodeType||9===e.nodeType||!+e.nodeType}function Zn(e,n){var t=n[e.id];if(!t){t={};try{$n(n)&&(function(e,n,t){if(Wn)try{return Wn(e,n,{value:t,enumerable:!1,configurable:!0}),!0}catch(e){}return!1}(n,e.id,t)||(n[e.id]=t))}catch(e){}}return t}function Yn(e,n){return void 0===n&&(n=!1),he(e+Jn+++(n?".2.8.13":"")+Qn)}function et(e){var n={id:Yn("_aiData-"+(e||"")+".2.8.13"),accept:function(e){return $n(e)},get:function(e,t,r,i){var o=e[n.id];return o?o[he(t)]:(i&&((o=Zn(n,e))[he(t)]=r),r)},kill:function(e,n){if(e&&e[n])try{delete e[n]}catch(e){}}};return n}var nt=null,tt=null,rt=null,it=un(),ot={},at={};function st(e,n){var t=lt._ckMgr||at._ckMgr;return t||(t=lt._ckMgr=lt(e,n),at._ckMgr=t),t}function ut(e){return!e||e.isEnabled()}function ct(e,n){return!!(n&&e&&be(e.ignoreCookies))&&-1!==e.ignoreCookies.indexOf(n)}function lt(e,n){var t,r=function(e){var n=e.cookieCfg=e.cookieCfg||{};if(He(n,"domain",e.cookieDomain,fe,le),He(n,"path",e.cookiePath||"/",null,le),le(n.enabled)){var t=void 0;ce(e.isCookieUseDisabled)||(t=!e.isCookieUseDisabled),ce(e.disableCookiesUsage)||(t=!e.disableCookiesUsage),n.enabled=t}return n}(e||at),i=r.path||"/",o=r.domain,a=!1!==r.enabled,s=((t={isEnabled:function(){var e=a&&ft(n),t=at._ckMgr;return e&&t&&s!==t&&(e=ut(t)),e}}).setEnabled=function(e){a=!1!==e},t.set=function(e,n,t,a,u){var c=!1;if(ut(s)&&!function(e,n){return!!(n&&e&&be(e.blockedCookies)&&-1!==e.blockedCookies.indexOf(n))||ct(e,n)}(r,e)){var l={},f=Oe(n||""),d=f.indexOf(";");if(-1!==d&&(f=Oe(n.substring(0,d)),l=dt(n.substring(d+1))),He(l,"domain",a||o,Ve,ce),!le(t)){var v=gn();if(ce(l.expires)){var p=Ke()+1e3*t;if(p>0){var h=new Date;h.setTime(p),He(l,"expires",vt(h,v?"toGMTString":"toUTCString")||vt(h,v?"toGMTString":"toUTCString")||"",Ve)}}v||He(l,"max-age",""+t,null,ce)}var g=fn();g&&"https:"===g.protocol&&(He(l,"secure",null,null,ce),null===tt&&(tt=!yt((ln()||{}).userAgent)),tt&&He(l,"SameSite","None",null,ce)),He(l,"path",u||i,null,ce),(r.setCookie||gt)(e,pt(f,l)),c=!0}return c},t.get=function(e){var n="";return ut(s)&&!ct(r,e)&&(n=(r.getCookie||ht)(e)),n},t.del=function(e,n){var t=!1;return ut(s)&&(t=s.purge(e,n)),t},t.purge=function(e,t){var i,o=!1;if(ft(n)){var a=((i={}).path=t||"/",i.expires="Thu, 01 Jan 1970 00:00:01 GMT",i);gn()||(a["max-age"]="0"),(r.delCookie||gt)(e,pt("",a)),o=!0}return o},t);return s._ckMgr=s,s}function ft(e){if(null===nt){nt=!1;try{nt=void 0!==(it||{}).cookie}catch(n){On(e,2,68,"Cannot access document.cookie - "+ze(n),{exception:yn(n)})}}return nt}function dt(e){var n={};e&&e.length&&xe(Oe(e).split(";"),(function(e){if(e=Oe(e||"")){var t=e.indexOf("=");-1===t?n[e]=null:n[Oe(e.substring(0,t))]=Oe(e.substring(t+1))}}));return n}function vt(e,n){return pe(e[n])?e[n]():null}function pt(e,n){var t=e||"";return ge(n,(function(e,n){t+="; "+e+(le(n)?"":"="+n)})),t}function ht(e){var n="";if(it){var t=it.cookie||"";rt!==t&&(ot=dt(t),rt=t),n=Oe(ot[e]||"")}return n}function gt(e,n){it&&(it.cookie=e+"="+n)}function yt(e){return!!_e(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")||!ye(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 mt=Yn("aiEvtPageHide"),Ct=Yn("aiEvtPageShow"),Tt=/\.[\.]+/g,bt=/[\.]+$/,St=1,_t=et("events"),Pt=/^([^.]*)(?:\.(.+)|)/;function Et(e){return e&&e.replace?e.replace(/^[\s\.]+|(?=[\s\.])[\.\s]+$/g,""):e}function wt(e,n){var t;if(n){var r="";be(n)?(r="",xe(n,(function(e){(e=Et(e))&&("."!==e[0]&&(e="."+e),r+=e)}))):r=Et(n),r&&("."!==r[0]&&(r="."+r),e=(e||"")+r)}var i=Pt.exec(e||"")||[];return(t={}).type=i[1],t.ns=(i[2]||"").replace(Tt,".").replace(bt,"").split(".").sort().join("."),t}function kt(e,n,t){void 0===t&&(t=!0);var r=_t.get(e,"events",{},t),i=r[n];return i||(i=r[n]=[]),i}function xt(e,n,t,r){e&&n&&n.type&&(e.removeEventListener?e.removeEventListener(n.type,t,r):e.detachEvent&&e.detachEvent("on"+n.type,t))}function It(e,n,t,r){for(var i=n.length;i--;){var o=n[i];o&&(t.ns&&t.ns!==o.evtName.ns||r&&!r(o)||(xt(e,o.evtName,o.handler,o.capture),n.splice(i,1)))}}function Nt(e,n){return n?wt("xx",be(n)?[e].concat(n):[e,n]).ns.split("."):e}function At(e,n,t,r,i){var o;void 0===i&&(i=!1);var a=!1;if(e)try{var s=wt(n,r);if((a=function(e,n,t,r){var i=!1;return e&&n&&n.type&&t&&(e.addEventListener?(e.addEventListener(n.type,t,r),i=!0):e.attachEvent&&(e.attachEvent("on"+n.type,t),i=!0)),i}(e,s,t,i))&&_t.accept(e)){var u=((o={guid:St++,evtName:s}).handler=t,o.capture=i,o);kt(e,s.type).push(u)}}catch(e){}return a}function Ot(e,n,t,r,i){if(void 0===i&&(i=!1),e)try{var o=wt(n,r),a=!1;!function(e,n,t){if(n.type)It(e,kt(e,n.type),n,t);else{var r=_t.get(e,"events",{});ge(r,(function(r,i){It(e,i,n,t)})),0===Fe(r).length&&_t.kill(e,"events")}}(e,o,(function(e){return!((!o.ns||t)&&e.handler!==t)&&(a=!0,!0)})),a||xt(e,o,t,i)}catch(e){}}function Mt(e,n,t){var r=!1,i=sn();i&&(r=At(i,e,n,t),r=At(i.body,e,n,t)||r);var o=un();return o&&(r=At(o,e,n,t)||r),r}function Dt(e,n,t,r){var i=!1;return n&&e&&e.length>0&&xe(e,(function(e){e&&(t&&-1!==Ie(t,e)||(i=Mt(e,n,r)||i))})),i}function Ft(e,n,t){e&&be(e)&&xe(e,(function(e){e&&function(e,n,t){var r=sn();r&&(Ot(r,e,n,t),Ot(r.body,e,n,t));var i=un();i&&Ot(i,e,n,t)}(e,n,t)}))}function Ut(e,n,t){return function(e,n,t,r){var i=!1;return n&&e&&be(e)&&!(i=Dt(e,n,t,r))&&t&&t.length>0&&(i=Dt(e,n,null,r)),i}(["beforeunload","unload","pagehide"],e,n,t)}var Lt,Rt=null;q.l;function Bt(){var e=zt();return e.substring(0,8)+"-"+e.substring(8,12)+"-"+e.substring(12,16)+"-"+e.substring(16,20)+"-"+e.substring(20)}function Kt(){var e=dn();return e&&e.now?e.now():Ke()}function zt(){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=qn())]+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&qn())|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 Ht={_canUseCookies:void 0,isTypeof:ue,isUndefined:ce,isNullOrUndefined:le,hasOwnProperty:de,isFunction:pe,isObject:ve,isDate:Te,isArray:be,isError:Se,isString:_e,isNumber:Pe,isBoolean:Ee,toISOString:ke,arrForEach:xe,arrIndexOf:Ie,arrMap:Ne,arrReduce:Ae,strTrim:Oe,objCreate:V.b,objKeys:Fe,objDefineAccessors:Ue,addEventHandler:Mt,dateNow:Ke,isIE:gn,disableCookies:function(){jt().setEnabled(!1)},newGuid:Bt,perfNow:Kt,newId:Xn,randomValue:jn,random32:qn,mwcRandomSeed:Vn,mwcRandom32:Gn,generateW3CId:zt};function jt(e,n){var t=st(e,n),r=Ht._canUseCookies;return null===Rt&&(Rt=[],Lt=r,Ue(Ht,"_canUseCookies",(function(){return Lt}),(function(e){Lt=e,xe(Rt,(function(n){n.setEnabled(e)}))}))),-1===Ie(Rt,t)&&Rt.push(t),Ee(r)&&t.setEnabled(r),Ee(Lt)&&t.setEnabled(Lt),t}var qt="00000000000000000000000000000000";function Vt(e,n,t){return!(!e||e.length!==n||e===t)&&!!e.match(/^[\da-f]*$/)}function Gt(e){return Vt(e,32,qt)}function Xt(e){return Vt(e,16,"0000000000000000")}var Wt=et("plugin");function Qt(e){return Wt.get(e,"state",{},!0)}function Jt(e,n){for(var t,r=[],i=null,o=e.getNext();o;){var a=o.getPlugin();if(a){i&&pe(i.setNextPlugin)&&pe(a.processTelemetry)&&i.setNextPlugin(a);(pe(a.isInitialized)?a.isInitialized():(t=Qt(a)).isInitialized)||r.push(a),i=a,o=o.getNext()}}xe(r,(function(r){var i=e.core();r.initialize(e.getCfg(),i,n,e.getNext()),t=Qt(r),r.core||t.core||(t.core=i),t.isInitialized=!0,delete t.teardown}))}function $t(e){return e.sort((function(e,n){var t=0;if(n){var r=pe(n.processTelemetry);pe(e.processTelemetry)?t=r?e.priority-n.priority:1:r&&(t=-1)}else t=e?1:-1;return t}))}var Zt=0;function Yt(e,n,t,r){var i=null,o=[];null!==r&&(i=r?function(e,n,t){for(;e;){if(e.getPlugin()===t)return e;e=e.getNext()}return rr([t],n.config||{},n)}(e,t,r):e);var a={_next:function(){var e=i;if(i=e?e.getNext():null,!e){var n=o;n&&n.length>0&&(xe(n,(function(e){try{e.func.call(e.self,e.args)}catch(e){On(t.logger,2,73,"Unexpected Exception during onComplete - "+yn(e))}})),o=[])}return e},ctx:{core:function(){return t},diagLog:function(){return function(e,n){return(e||{}).logger||new Nn(n)}(t,n)},getCfg:function(){return n},getExtCfg:s,getConfig:function(e,t,r){void 0===r&&(r=!1);var i,o=s(e,null);o&&!le(o[t])?i=o[t]:n&&!le(n[t])&&(i=n[t]);return le(i)?r:i},hasNext:function(){return!!i},getNext:function(){return i},setNext:function(e){i=e},iterate:function(e){var n;for(;n=a._next();){var t=n.getPlugin();t&&e(t)}},onComplete:function(e,n){for(var t=[],r=2;r<arguments.length;r++)t[r-2]=arguments[r];e&&o.push({func:e,self:ce(n)?a.ctx:n,args:t})}}};function s(e,t,r){var i;if(void 0===t&&(t={}),void 0===r&&(r=0),n){var o=n.extensionConfig;o&&e&&(i=o[e])}if(i){if(ve(t)&&0!==r){var a=$e(!0,t,i);n&&2===r&&ge(t,(function(e){if(le(a[e])){var t=n[e];le(t)||(a[e]=t)}})),i=a}}else i=t;return i}return a}function er(e,n,t,r){var i=Yt(e,n,t,r),o=i.ctx;return o.processNext=function(e){var n=i._next();return n&&n.processTelemetry(e,o),!n},o.createNew=function(e,r){return void 0===e&&(e=null),be(e)&&(e=rr(e,n,t,r)),er(e||o.getNext(),n,t,r)},o}function nr(e,n,t){var r=n.config||{},i=Yt(e,r,n,t),o=i.ctx;return o.processNext=function(e){var n=i._next();return n&&n.unload(o,e),!n},o.createNew=function(e,t){return void 0===e&&(e=null),be(e)&&(e=rr(e,r,n,t)),nr(e||o.getNext(),n,t)},o}function tr(e,n,t){var r=n.config||{},i=Yt(e,r,n,t).ctx;return i.processNext=function(e){return i.iterate((function(n){pe(n.update)&&n.update(i,e)}))},i.createNew=function(e,t){return void 0===e&&(e=null),be(e)&&(e=rr(e,r,n,t)),tr(e||i.getNext(),n,t)},i}function rr(e,n,t,r){var i=null,o=!r;if(be(e)&&e.length>0){var a=null;xe(e,(function(e){if(o||r!==e||(o=!0),o&&e&&pe(e.processTelemetry)){var s=function(e,n,t){var r,i=null,o=pe(e.processTelemetry),a=pe(e.setNextPlugin);r=e?e.identifier+"-"+e.priority+"-"+Zt++:"Unknown-0-"+Zt++;var s={getPlugin:function(){return e},getNext:function(){return i},processTelemetry:function(n,t){c(t=t||u(),(function(t){if(!e||!o)return!1;var r=Qt(e);if(r.teardown||r.disabled)return!1;a&&e.setNextPlugin(i);return e.processTelemetry(n,t),!0}),"processTelemetry",(function(){return{item:n}}),!n.sync)||t.processNext(n)},unload:function(n,t){c(n,(function(){var r=!1;if(e){var i=Qt(e),o=e.core||i.core;!e||o&&o!==n.core()||i.teardown||(i.core=null,i.teardown=!0,i.isInitialized=!1,e.teardown&&!0===e.teardown(n,t)&&(r=!0))}return r}),"unload",(function(){}),t.isAsync)||n.processNext(t)},update:function(n,t){c(n,(function(){var r=!1;if(e){var i=Qt(e),o=e.core||i.core;!e||o&&o!==n.core()||i.teardown||e.update&&!0===e.update(n,t)&&(r=!0)}return r}),"update",(function(){}),!1)||n.processNext(t)},_id:r,_setNext:function(e){i=e}};function u(){var r;return e&&pe(e._getTelCtx)&&(r=e._getTelCtx()),r||(r=er(s,n,t)),r}function c(n,t,o,a,s){var u=!1,c=e?e.identifier:"TelemetryPluginChain",l=n._hasRun;return l||(l=n._hasRun={}),n.setNext(i),e&&Ln(n.core(),(function(){return c+":"+o}),(function(){l[r]=!0;try{var e=i?i._id:"";e&&(l[e]=!1),u=t(n)}catch(e){var a=!i||l[i._id];a&&(u=!0),i&&a||On(n.diagLog(),1,73,"Plugin ["+c+"] failed during "+o+" - "+yn(e)+", run flags: "+yn(l))}}),a,s),u}return Be(s)}(e,n,t);i||(i=s),a&&a._setNext(s),a=s}}))}return r&&!i?rr([r],n,t):i}function ir(e,n,t){n&&be(n)&&n.length>0&&(xe(n=n.sort((function(e,n){return e.priority-n.priority})),(function(e){e.priority<500&&Ge("Channel has invalid priority - "+e.identifier)})),e.push({queue:Be(n),chain:rr(n,t.config,t)}))}function or(){var e=[];return{add:function(n){n&&e.push(n)},run:function(n,t){xe(e,(function(e){try{e(n,t)}catch(e){On(n.diagLog(),2,73,"Unexpected error calling unload handler - "+yn(e))}})),e=[]}}}var ar=function(){function e(){var n,t,r,i,o,a=this;function s(e){void 0===e&&(e=null);var n=e;if(!n){var i=t||er(null,{},a.core);n=r&&r.getPlugin?i.createNew(null,r.getPlugin):i.createNew(null,r)}return n}function u(e,n,i){e&&He(e,"extensionConfig",[],null,le),!i&&n&&(i=n.getProcessTelContext().getNext());var o=r;r&&r.getPlugin&&(o=r.getPlugin()),a.core=n,t=er(i,e,n,o)}function c(){n=!1,a.core=null,t=null,r=null,o=[],i=or()}c(),j(e,a,(function(e){e.initialize=function(e,t,r,i){u(e,t,i),n=!0},e.teardown=function(n,t){var a,s=e.core;if(s&&(!n||s===n.core())){var u,l=!1,f=n||nr(null,s,r&&r.getPlugin?r.getPlugin():r),d=t||((a={reason:0}).isAsync=!1,a);return e._doTeardown&&!0===e._doTeardown(f,d,v)?u=!0:v(),u}function v(){if(!l){l=!0,i.run(f,t);var e=o;o=[],xe(e,(function(e){e.rm()})),!0===u&&f.processNext(d),c()}}},e.update=function(n,t){var i=e.core;if(i&&(!n||i===n.core())){var o,a=!1,s=n||tr(null,i,r&&r.getPlugin?r.getPlugin():r),c=t||{reason:0};return e._doUpdate&&!0===e._doUpdate(s,c,l)?o=!0:l(),o}function l(){a||(a=!0,u(s.getCfg(),s.core(),s.getNext()))}},e._addHook=function(e){e&&(be(e)?o=o.concat(e):o.push(e))},We(e,"_addUnloadCb",(function(){return i}),"add")})),a.diagLog=function(e){return s(e).diagLog()},a.isInitialized=function(){return n},a.setInitialized=function(e){n=e},a.setNextPlugin=function(e){r=e},a.processNext=function(e,n){n?n.processNext(e):r&&pe(r.processTelemetry)&&r.processTelemetry(e,null)},a._getTelCtx=s}return e.__ieDyn=1,e}(),sr=function(e){function n(){var t,r,i=e.call(this)||this;function o(){t=0,r=[]}return i.identifier="TelemetryInitializerPlugin",i.priority=199,o(),j(n,i,(function(e,n){e.addTelemetryInitializer=function(e){var n={id:t++,fn:e};return r.push(n),{remove:function(){xe(r,(function(e,t){if(e.id===n.id)return r.splice(t,1),-1}))}}},e.processTelemetry=function(n,t){for(var i=!1,o=r.length,a=0;a<o;++a){var s=r[a];if(s)try{if(!1===s.fn.apply(null,[n])){i=!0;break}}catch(e){On(t.diagLog(),1,64,"One of telemetry initializers failed, telemetry item will not be sent: "+ze(e),{exception:yn(e)},!0)}}i||e.processNext(n,t)},e._doTeardown=function(){o()}})),i}return Object(P.a)(n,e),n.__ieDyn=1,n}(ar),ur={loggingLevelConsole:1};function cr(e,n){return new Un(n)}function lr(e,n){var t=!1;return xe(n,(function(n){if(n===e)return t=!0,-1})),t}var fr=function(){function e(){var n,t,r,i,o,a,s,u,c,l,f,d,v,p,h,g,y,m,C,T,b=0,S=!1;j(e,this,(function(e){function _(t){if(!b&&!S&&(t||e.logger&&e.logger.queue.length>0)){var r=qe(n.diagnosticLogInterval);r&&r>0||(r=1e4),b=setInterval((function(){clearInterval(b),b=0,A()}),r)}return b}function E(){t=!1,n=$e(!0,{},ur),e.config=n,e.logger=new Nn(n),e._extensions=[],h=new sr,r=[],i=null,o=null,a=null,s=null,u=null,l=null,c=[],f=null,d=null,v=null,p=!1,g=null,y=Yn("AIBaseCore",!0),m=or(),T=null}function w(){var t=er(I(),n,e);return t.onComplete(_),t}function k(t){var r=function(e,n,t){var r,i=[],o={};return xe(t,(function(t){(le(t)||le(t.initialize))&&Ge("Plugins must provide initialize method");var r=t.priority,a=t.identifier;t&&r&&(le(o[r])?o[r]=a:Mn(e,"Two extensions have same priority #"+r+" - "+o[r]+", "+a)),(!r||r<n)&&i.push(t)})),(r={all:t}).core=i,r}(e.logger,500,c);l=r.core,u=null;var i=r.all;if(v=Be(function(e,n,t){var r=[];if(e&&xe(e,(function(e){return ir(r,e,t)})),n){var i=[];xe(n,(function(e){e.priority>500&&i.push(e)})),ir(r,i,t)}return r}(d,i,e)),f){var o=Ie(i,f);-1!==o&&i.splice(o,1),-1!==(o=Ie(l,f))&&l.splice(o,1),f._setQueue(v)}else f=function(e,n){function t(){return er(null,n.config,n,null)}function r(e,n,t,r){var i=e?e.length+1:1;function o(){0===--i&&(r&&r(),r=null)}i>0&&xe(e,(function(e){if(e&&e.queue.length>0){var r=e.chain,a=n.createNew(r);a.onComplete(o),t(a)}else i--})),o()}var i=!1;return{identifier:"ChannelControllerPlugin",priority:500,initialize:function(n,t,r,o){i=!0,xe(e,(function(e){e&&e.queue.length>0&&Jt(er(e.chain,n,t),r)}))},isInitialized:function(){return i},processTelemetry:function(n,i){r(e,i||t(),(function(e){e.processNext(n)}),(function(){i.processNext(n)}))},update:function(n,t){var i=t||{reason:0};return r(e,n,(function(e){e.processNext(i)}),(function(){n.processNext(i)})),!0},pause:function(){r(e,t(),(function(e){e.iterate((function(e){e.pause&&e.pause()}))}),null)},resume:function(){r(e,t(),(function(e){e.iterate((function(e){e.resume&&e.resume()}))}),null)},teardown:function(n,t){var o=t||{reason:0,isAsync:!1};return r(e,n,(function(e){e.processNext(o)}),(function(){n.processNext(o),i=!1})),!0},getChannel:function(n){var t=null;return e&&e.length>0&&xe(e,(function(e){if(e&&e.queue.length>0&&(xe(e.queue,(function(e){if(e.identifier===n)return t=e,-1})),t))return-1})),t},flush:function(n,i,o,a){var s=1,u=!1,c=null;function l(){s--,u&&0===s&&(c&&(clearTimeout(c),c=null),i&&i(u),i=null)}return a=a||5e3,r(e,t(),(function(e){e.iterate((function(e){if(e.flush){s++;var t=!1;e.flush(n,(function(){t=!0,l()}),o)||t||(n&&null==c?c=setTimeout((function(){c=null,l()}),a):l())}}))}),(function(){u=!0,l()})),!0},_setQueue:function(n){e=n}}}(v,e);i.push(f),l.push(f),e._extensions=$t(i),f.initialize(n,e,i),Jt(w(),i),e._extensions=Be($t(l||[])).slice(),t&&function(n){var t=tr(I(),e);t.onComplete(_),e._updateHook&&!0===e._updateHook(t,n)||t.processNext(n)}(t)}function x(n){var t,r=null,i=null;return xe(e._extensions,(function(e){if(e.identifier===n&&e!==f&&e!==h)return i=e,-1})),!i&&f&&(i=f.getChannel(n)),i&&((t={plugin:i}).setEnabled=function(e){Qt(i).disabled=!e},t.isEnabled=function(){var e=Qt(i);return!e.teardown&&!e.disabled},t.remove=function(e,n){var t;void 0===e&&(e=!0);var r=[i],o=((t={reason:1}).isAsync=e,t);N(r,o,(function(e){e&&k({reason:32,removed:r}),n&&n(e)}))},r=t),r}function I(){if(!u){var t=(l||[]).slice();-1===Ie(t,h)&&t.push(h),u=rr($t(t),n,e)}return u}function N(t,r,i){if(t&&t.length>0){var o=nr(rr(t,n,e),e);o.onComplete((function(){var e=!1,n=[];xe(c,(function(r,i){lr(r,t)?e=!0:n.push(r)})),c=n;var r=[];d&&(xe(d,(function(n,i){var o=[];xe(n,(function(n){lr(n,t)?e=!0:o.push(n)})),r.push(o)})),d=r),i&&i(e),_()})),o.processNext(r)}else i(!1)}function A(){if(e.logger&&e.logger.queue){var t=e.logger.queue.slice(0);e.logger.queue.length=0,xe(t,(function(t){var r,i=((r={}).name=g||"InternalMessageId: "+t.messageId,r.iKey=qe(n.instrumentationKey),r.time=ke(new Date),r.baseType=In.dataType,r.baseData={message:t.message},r);e.track(i)}))}}function O(e,n,t,r){return f?f.flush(e,n,t||6,r):(n&&n(!1),!0)}function M(n){var t=e.logger;t?(On(t,2,73,n),_()):Ge(n)}E(),e.isInitialized=function(){return t},e.initialize=function(r,o,s,u){p&&Ge("SDK is still unloading..."),e.isInitialized()&&Ge("Core should not be initialized more than once"),n=r||{},e.config=n,le(r.instrumentationKey)&&Ge("Please provide instrumentation key"),i=u,e._notificationManager=u,function(){var e=qe(n.disableDbgExt);!0===e&&C&&(i.removeNotificationListener(C),C=null);i&&!C&&!0!==e&&(C=function(e){if(!Sn){Sn={};for(var n=0;n<_n.length;n++)Sn[_n[n]]=En(_n[n],e)}return Sn}(n),i.addNotificationListener(C))}(),function(){var e=qe(n.enablePerfMgr);!e&&a&&(a=null);e&&je(n,"createPerfMgr",cr)}(),je(n,"extensionConfig",{}).NotificationManager=i,s&&(e.logger=s);var l=je(n,"extensions",[]);(c=[]).push.apply(c,Object(P.b)(Object(P.b)([],o,!1),l,!1)),d=je(n,"channels",[]),k(null),v&&0!==v.length||Ge("No channels available"),t=!0,e.releaseQueue()},e.getTransmissionControls=function(){var e=[];return v&&xe(v,(function(n){e.push(n.queue)})),Be(e)},e.track=function(t){t.iKey=t.iKey||n.instrumentationKey,t.time=t.time||ke(new Date),t.ver=t.ver||"4.0",!p&&e.isInitialized()?w().processNext(t):r.push(t)},e.getProcessTelContext=w,e.getNotifyMgr=function(){var n;return i||(i=Object(V.b)(((n={}).addNotificationListener=function(e){},n.removeNotificationListener=function(e){},n.eventsSent=function(e){},n.eventsDiscarded=function(e,n){},n.eventsSendRequest=function(e,n){},n)),e._notificationManager=i),i},e.addNotificationListener=function(e){i&&i.addNotificationListener(e)},e.removeNotificationListener=function(e){i&&i.removeNotificationListener(e)},e.getCookieMgr=function(){return s||(s=lt(n,e.logger)),s},e.setCookieMgr=function(e){s=e},e.getPerfMgr=function(){if(!o&&!a&&qe(n.enablePerfMgr)){var t=qe(n.createPerfMgr);pe(t)&&(a=t(e,e.getNotifyMgr()))}return o||a||Dn},e.setPerfMgr=function(e){o=e},e.eventCnt=function(){return r.length},e.releaseQueue=function(){if(t&&r.length>0){var e=r;r=[],xe(e,(function(e){w().processNext(e)}))}},e.pollInternalLogs=function(e){return g=e||null,S=!1,b&&(clearInterval(b),b=null),_(!0)},e.stopPollingInternalLogs=function(){S=!0,b&&(clearInterval(b),b=0,A())},Qe(e,(function(){return h}),["addTelemetryInitializer"]),e.unload=function(n,r,i){var o;void 0===n&&(n=!0),t||Ge("SDK is not initialized"),p&&Ge("SDK is still unloading...");var a=((o={reason:50}).isAsync=n,o.flushComplete=!1,o),s=nr(I(),e);function u(n){a.flushComplete=n,p=!0,m.run(s,a),e.stopPollingInternalLogs(),s.processNext(a)}s.onComplete((function(){E(),r&&r(a)}),e),A(),O(n,u,6,i)||u(!1)},e.getPlugin=x,e.addPlugin=function(e,n,t,r){if(!e)return r&&r(!1),void M("Plugins must provide initialize method");var i=x(e.identifier);if(i&&!n)return r&&r(!1),void M("Plugin ["+e.identifier+"] is already loaded!");var o={reason:16};function a(n){c.push(e),o.added=[e],k(o),r&&r(!0)}if(i){var s=[i.plugin];N(s,{reason:2,isAsync:!!t},(function(e){e?(o.removed=s,o.reason|=32,a()):r&&r(!1)}))}else a()},e.evtNamespace=function(){return y},e.flush=O,e.getTraceCtx=function(e){var n,t;return T||(t={},T={getName:function(){return t.name},setName:function(e){n&&n.setName(e),t.name=e},getTraceId:function(){return t.traceId},setTraceId:function(e){n&&n.setTraceId(e),Gt(e)&&(t.traceId=e)},getSpanId:function(){return t.spanId},setSpanId:function(e){n&&n.setSpanId(e),Xt(e)&&(t.spanId=e)},getTraceFlags:function(){return t.traceFlags},setTraceFlags:function(e){n&&n.setTraceFlags(e),t.traceFlags=e}}),T},e.setTraceCtx=function(e){T=e||null},We(e,"addUnloadCb",(function(){return m}),"add")}))}return e.__ieDyn=1,e}();function dr(e,n,t,r){xe(e,(function(e){if(e&&e[n])if(t)setTimeout((function(){return r(e)}),0);else try{r(e)}catch(e){}}))}var vr,pr=function(){function e(n){this.listeners=[];var t=!!(n||{}).perfEvtsSendAll;j(e,this,(function(e){e.addNotificationListener=function(n){e.listeners.push(n)},e.removeNotificationListener=function(n){for(var t=Ie(e.listeners,n);t>-1;)e.listeners.splice(t,1),t=Ie(e.listeners,n)},e.eventsSent=function(n){dr(e.listeners,"eventsSent",!0,(function(e){e.eventsSent(n)}))},e.eventsDiscarded=function(n,t){dr(e.listeners,"eventsDiscarded",!0,(function(e){e.eventsDiscarded(n,t)}))},e.eventsSendRequest=function(n,t){dr(e.listeners,"eventsSendRequest",t,(function(e){e.eventsSendRequest(n,t)}))},e.perfEvent=function(n){n&&(!t&&n.isChildEvt()||dr(e.listeners,"perfEvent",!1,(function(e){n.isAsync?setTimeout((function(){return e.perfEvent(n)}),0):e.perfEvent(n)})))}}))}return e.__ieDyn=1,e}(),hr=function(e){function n(){var t=e.call(this)||this;return j(n,t,(function(e,n){function t(n){var t=e.getNotifyMgr();t&&t.eventsDiscarded([n],2)}e.initialize=function(e,t,r,i){n.initialize(e,t,r||new Nn(e),i||new pr(e))},e.track=function(r){Ln(e.getPerfMgr(),(function(){return"AppInsightsCore:track"}),(function(){null===r&&(t(r),Ge("Invalid telemetry item")),function(e){le(e.name)&&(t(e),Ge("telemetry name required"))}(r),n.track(r)}),(function(){return{item:r}}),!r.sync)}})),t}return Object(P.a)(n,e),n.__ieDyn=1,n}(fr),gr=((vr={})[0]=0,vr[2]=6,vr[1]=1,vr[3]=7,vr[4098]=6,vr[4097]=1,vr[4099]=7,vr);Boolean(un()),Boolean(sn());function yr(e){return!(""===e||le(e))}function mr(e){if(e){var n=e.indexOf("-");if(n>-1)return e.substring(0,n)}return""}function Cr(e){return!!(e&&Pe(e)&&e>=1&&e<=4)}function Tr(e,n,t){if(!n&&!yr(n)||"string"!=typeof e)return null;var r=typeof n;if("string"===r||"number"===r||"boolean"===r||be(n))n={value:n};else if("object"!==r||q.e.call(n,"value")){if(le(n.value)||""===n.value||!_e(n.value)&&!Pe(n.value)&&!Ee(n.value)&&!be(n.value))return null}else n={value:t?JSON.stringify(n):n};if(be(n.value)&&!Er(n.value))return null;if(!le(n.kind)){if(be(n.value)||!Pr(n.kind))return null;n.value=n.value.toString()}return n}function br(e,n,t){var r=-1;if(!ce(e))if(n>0&&(32===n?r=8192:n<=13&&(r=n<<5)),function(e){if(e>=0&&e<=9)return!0;return!1}(t))-1===r&&(r=0),r|=t;else{var i=gr[kr(e)]||-1;-1!==r&&-1!==i?r|=i:6===i&&(r=i)}return r}function Sr(e,n,t,r,i){var o={},a=!1,s=0,u=arguments.length,c=Object[q.k],l=arguments;for("[object Boolean]"===c.toString.call(l[0])&&(a=l[0],s++);s<u;s++){ge(e=l[s],(function(e,n){a&&n&&ve(n)?be(n)?(o[e]=o[e]||[],xe(n,(function(n,t){n&&ve(n)?o[e][t]=Sr(!0,o[e][t],n):o[e][t]=n}))):o[e]=Sr(!0,o[e],n):o[e]=n}))}return o}var _r=Kt;function Pr(e){return 0===e||e>0&&e<=13||32===e}function Er(e){return e.length>0}function wr(e,n){var t=e;t.timings=t.timings||{},t.timings.processTelemetryStart=t.timings.processTelemetryStart||{},t.timings.processTelemetryStart[n]=_r()}function kr(e){var n=0;if(null!=e){var t=typeof e;"string"===t?n=1:"number"===t?n=2:"boolean"===t?n=3:t===q.j&&(n=4,be(e)?(n=4096,e.length>0&&(n|=kr(e[0]))):q.e.call(e,"value")&&(n=8192|kr(e.value)))}return n}q.l,q.j,q.l,V.b;var xr=function(e){function n(){var t=e.call(this)||this;return t.pluginVersionStringArr=[],j(n,t,(function(e,n){e.logger&&e.logger.queue||(e.logger=new Nn({loggingLevelConsole:1})),e.initialize=function(t,r,i,o){Ln(e,(function(){return"AppInsightsCore.initialize"}),(function(){var a=e.pluginVersionStringArr;if(t){t.endpointUrl||(t.endpointUrl="https://browser.events.data.microsoft.com/OneCollector/1.0/");var s=t.propertyStorageOverride;!s||s.getProperty&&s.setProperty||Ge("Invalid property storage override passed."),t.channels&&xe(t.channels,(function(e){e&&xe(e,(function(e){if(e.identifier&&e.version){var n=e.identifier+"="+e.version;a.push(n)}}))}))}e.getWParam=function(){return"undefined"!=typeof document||t.enableWParam?0:-1},r&&xe(r,(function(e){if(e&&e.identifier&&e.version){var n=e.identifier+"="+e.version;a.push(n)}})),e.pluginVersionString=a.join(";"),e.pluginVersionStringArr=a;try{n.initialize(t,r,i,o),e.pollInternalLogs("InternalLog")}catch(n){var u=e.logger,c=yn(n);-1!==c.indexOf("channels")&&(c+="\n - Channels must be provided through config.channels only!"),On(u,1,514,"SDK Initialization Failed - no telemetry will be sent: "+c)}}),(function(){return{config:t,extensions:r,logger:i,notificationManager:o}}))},e.track=function(t){Ln(e,(function(){return"AppInsightsCore.track"}),(function(){var r=t;if(r){r.timings=r.timings||{},r.timings.trackStart=_r(),Cr(r.latency)||(r.latency=1);var i=r.ext=r.ext||{};i.sdk=i.sdk||{},i.sdk.ver="1DS-Web-JS-3.2.11";var o=r.baseData=r.baseData||{};o.properties=o.properties||{};var a=o.properties;a.version=a.version||e.pluginVersionString||""}n.track(r)}),(function(){return{item:t}}),!t.sync)}})),t}return Object(P.a)(n,e),n.__ieDyn=1,n}(hr);var Ir,Nr=(Ir={},ge({Unknown:0,NonRetryableStatus:1,InvalidEvent:2,SizeLimitExceeded:3,KillSwitch:4,QueueFull:5},(function(e,n){Ir[e]=n,Ir[n]=e})),Re(Ir));function Ar(e){var n=(e.ext||{}).intweb;return n&&yr(n.msfpc)?n.msfpc:null}function Or(e){for(var n=null,t=0;null===n&&t<e.length;t++)n=Ar(e[t]);return n}var Mr=function(){function e(n,t){var r=t?[].concat(t):[],i=Or(r);this.iKey=function(){return n},this.Msfpc=function(){return i||""},this.count=function(){return r.length},this.events=function(){return r},this.addEvent=function(e){return!!e&&(r.push(e),i||(i=Ar(e)),!0)},this.split=function(t,o){var a;if(t<r.length){var s=r.length-t;le(o)||(s=o<s?o:s),a=r.splice(t,s),i=Or(r)}return new e(n,a)}}return e.create=function(n,t){return new e(n,t)},e}(),Dr=function(){function e(){var n=!0,t=!0,r=!0,i="use-collector-delta",o=!1;j(e,this,(function(e){e.allowRequestSending=function(){return n},e.firstRequestSent=function(){r&&(r=!1,o||(n=!1))},e.shouldAddClockSkewHeaders=function(){return t},e.getClockSkewHeaderValue=function(){return i},e.setClockSkew=function(e){o||(e?(i=e,t=!0,o=!0):t=!1,n=!0)}}))}return e.__ieDyn=1,e}(),Fr=function(){function e(){var n={};j(e,this,(function(e){e.setKillSwitchTenants=function(e,t){if(e&&t)try{var r=function(e){var n=[];return e&&xe(e,(function(e){n.push(Oe(e))})),n}(e.split(","));if("this-request-only"===t)return r;for(var i=1e3*parseInt(t,10),o=0;o<r.length;++o)n[r[o]]=Ke()+i}catch(e){return[]}return[]},e.isTenantKilled=function(e){var t=n,r=Oe(e);return void 0!==t[r]&&t[r]>Ke()||(delete t[r],!1)}}))}return e.__ieDyn=1,e}();function Ur(e){var n,t=Math.floor(1200*Math.random())+2400;return n=Math.pow(2,e)*t,Math.min(n,6e5)}var Lr,Rr=Math.min(2e6,65e3),Br=/\./,Kr=function(){function e(n,t,r,i){var o=!!i,a=t,s={};j(e,this,(function(e){function t(e,n,i,u,c,l,f){ge(e,(function(e,d){var v=null;if(d||yr(d)){var p=i,h=e,g=c,y=n;if(o&&!u&&Br.test(e)){var m=e.split("."),C=m.length;if(C>1){g&&(g=g.slice());for(var T=0;T<C-1;T++){var b=m[T];y=y[b]=y[b]||{},p+="."+b,g&&g.push(b)}h=m[C-1]}}if(v=!(u&&function(e,n){var t=s[e];return void 0===t&&(e.length>=7&&(t=me(e,"ext.metadata")||me(e,"ext.web")),s[e]=t),t}(p))&&a&&a.handleField(p,h)?a.value(p,h,d,r):Tr(h,d,r)){var S=v.value;if(y[h]=S,l&&l(g,h,v),f&&"object"==typeof S&&!be(S)){var _=g;_&&(_=_.slice()).push(h),t(d,S,p+"."+h,u,_,l,f)}}}}))}e.createPayload=function(e,n,t,r,i,o){return{apiKeys:[],payloadBlob:"",overflow:null,sizeExceed:[],failedEvts:[],batches:[],numEvents:0,retryCnt:e,isTeardown:n,isSync:t,isBeacon:r,sendType:o,sendReason:i}},e.appendPayload=function(t,r,i){var o=t&&r&&!t.overflow;return o&&Ln(n,(function(){return"Serializer:appendPayload"}),(function(){for(var n=r.events(),o=t.payloadBlob,a=t.numEvents,s=!1,u=[],c=[],l=t.isBeacon,f=l?65e3:3984588,d=l?Rr:2e6,v=0,p=0;v<n.length;){var h=n[v];if(h){if(a>=i){t.overflow=r.split(v);break}var g=e.getEventBlob(h);if(g&&g.length<=d){var y=g.length;if(o.length+y>f){t.overflow=r.split(v);break}o&&(o+="\n"),o+=g,++p>20&&(o.substr(0,1),p=0),s=!0,a++}else g?u.push(h):c.push(h),n.splice(v,1),v--}v++}if(u&&u.length>0&&t.sizeExceed.push(Mr.create(r.iKey(),u)),c&&c.length>0&&t.failedEvts.push(Mr.create(r.iKey(),c)),s){t.batches.push(r),t.payloadBlob=o,t.numEvents=a;var m=r.iKey();-1===Ie(t.apiKeys,m)&&t.apiKeys.push(m)}}),(function(){return{payload:t,theBatch:{iKey:r.iKey(),evts:r.events()},max:i}})),o},e.getEventBlob=function(e){try{return Ln(n,(function(){return"Serializer.getEventBlob"}),(function(){var n={};n.name=e.name,n.time=e.time,n.ver=e.ver,n.iKey="o:"+mr(e.iKey);var r={},i=e.ext;i&&(n.ext=r,ge(i,(function(e,n){t(n,r[e]={},"ext."+e,!0,null,null,!0)})));var o=n.data={};o.baseType=e.baseType;var a=o.baseData={};return t(e.baseData,a,"baseData",!1,["baseData"],(function(e,n,t){zr(r,e,n,t)}),!0),t(e.data,o,"data",!1,[],(function(e,n,t){zr(r,e,n,t)}),!0),JSON.stringify(n)}),(function(){return{item:e}}))}catch(e){return null}}}))}return e.__ieDyn=1,e}();function zr(e,n,t,r){if(r&&e){var i=br(r.value,r.kind,r.propertyType);if(i>-1){var o=e.metadata;o||(o=e.metadata={f:{}});var a=o.f;if(a||(a=o.f={}),n)for(var s=0;s<n.length;s++){var u=n[s];a[u]||(a[u]={f:{}});var c=a[u].f;c||(c=a[u].f={}),a=c}a=a[t]={},be(r.value)?a.a={t:i}:a.t=i}}}var Hr=((Lr={})[1]="requeue",Lr[100]="requeue",Lr[200]="sent",Lr[8004]="drop",Lr[8003]="drop",Lr),jr={},qr={};function Vr(e,n,t){jr[e]=n,!1!==t&&(qr[n]=e)}function Gr(e){try{return e.responseText}catch(e){}return""}function Xr(e,n){var t=!1;if(e&&n){var r=Fe(e);if(r&&r.length>0)for(var i=n.toLowerCase(),o=0;o<r.length;o++){var a=r[o];if(a&&de(n,a)&&a.toLowerCase()===i){t=!0;break}}}return t}function Wr(e,n,t,r){n&&t&&t.length>0&&(r&&jr[n]?(e.hdrs[jr[n]]=t,e.useHdrs=!0):e.url+="&"+n+"="+t)}function Qr(e,n){return n&&(Pe(n)?e=[n].concat(e):be(n)&&(e=n.concat(e))),e}Vr("AuthMsaDeviceTicket","AuthMsaDeviceTicket",!1),Vr("client-version","client-version"),Vr("client-id","Client-Id"),Vr("apikey","apikey"),Vr("time-delta-to-apply-millis","time-delta-to-apply-millis"),Vr("upload-time","upload-time"),Vr("AuthXToken","AuthXToken");var Jr=function(){function e(n,t,r,i,o){this._responseHandlers=[];var a,s,u,c,l,f,d,v,p,h,g="?cors=true&"+"content-type".toLowerCase()+"=application/x-json-stream",y=new Fr,m=!1,C=new Dr,T=!1,b=0,S=!0,_=[],P={},E=[],w=null,k=!1,x=!1,I=!1;j(e,this,(function(e){var N=!0;function A(e,n){for(var t=0,r=null,i=0;null==r&&i<e.length;)1===(t=e[i])?Tn()?r=O:bn()&&(r=D):2===t&&Cn(n)&&(!n||n&&!v)?r=M:T&&3===t&&mn()&&(r=U),i++;return r?{_transport:t,_isSync:n,sendPOST:r}:null}function O(e,n,t){var r=new XDomainRequest;r.open("POST",e.urlString),e.timeout&&(r.timeout=e.timeout),r.onload=function(){var e=Gr(r);F(n,200,{},e),Q(e)},r.onerror=function(){F(n,400,{})},r.ontimeout=function(){F(n,500,{})},r.onprogress=function(){},t?r.send(e.data):o.set((function(){r.send(e.data)}),0)}function M(e,n,t){var r,i=e.urlString,a=!1,s=!1,u=((r={body:e.data,method:"POST"}).Microsoft_ApplicationInsights_BypassAjaxInstrumentation=!0,r);t&&(u.keepalive=!0,2===e._sendReason&&(a=!0,h&&(i+="&NoResponseBody=true"))),N&&(u.credentials="include"),e.headers&&Fe(e.headers).length>0&&(u.headers=e.headers),fetch(i,u).then((function(e){var t={},r="",i=e.headers;i&&i.forEach((function(e,n){t[n]=e})),e.body&&e.text().then((function(e){r=e})),s||(s=!0,F(n,e.status,t,r),Q(r))})).catch((function(e){s||(s=!0,F(n,0,{}))})),a&&!s&&(s=!0,F(n,200,{})),!s&&e.timeout>0&&o.set((function(){s||(s=!0,F(n,500,{}))}),e.timeout)}function D(e,n,t){var r=e.urlString;function i(e,n,t){if(!e[t]&&n&&n.getResponseHeader){var r=n.getResponseHeader(t);r&&(e[t]=Oe(r))}return e}function o(e){var n={};return e.getAllResponseHeaders?n=function(e){var n={};if(_e(e)){xe(Oe(e).split(/[\r\n]+/),(function(e){if(e){var t=e.indexOf(": ");if(-1!==t){var r=Oe(e.substring(0,t)).toLowerCase(),i=Oe(e.substring(t+1));n[r]=i}else n[Oe(e)]=1}}))}return n}(e.getAllResponseHeaders()):(n=i(n,e,"time-delta-millis"),n=i(n,e,"kill-duration"),n=i(n,e,"kill-duration-seconds")),n}function a(e,t){F(n,e.status,o(e),t)}t&&e.disableXhrSync&&(t=!1);var s=function(e,n,t,r,i,o){function a(e,n,t){try{e[n]=t}catch(e){}}void 0===r&&(r=!1),void 0===i&&(i=!1);var s=new XMLHttpRequest;return r&&a(s,"Microsoft_ApplicationInsights_BypassAjaxInstrumentation",r),t&&a(s,"withCredentials",t),s.open(e,n,!i),t&&a(s,"withCredentials",t),!i&&o&&a(s,"timeout",o),s}("POST",r,N,!0,t,e.timeout);ge(e.headers,(function(e,n){s.setRequestHeader(e,n)})),s.onload=function(){var e=Gr(s);a(s,e),Q(e)},s.onerror=function(){a(s)},s.ontimeout=function(){a(s)},s.send(e.data)}function F(e,n,t,r){try{e(n,t,r)}catch(e){On(s,2,518,yn(e))}}function U(e,n,t){var r=200,i=e._thePayload,o=e.urlString+(h?"&NoResponseBody=true":"");try{var a=ln();if(!a.sendBeacon(o,e.data))if(i){var u=[];xe(i.batches,(function(e){if(u&&e&&e.count()>0){for(var n=e.events(),t=0;t<n.length;t++)if(!a.sendBeacon(o,w.getEventBlob(n[t]))){u.push(e.split(t));break}}else u.push(e.split(0))})),J(u,8003,i.sendType,!0)}else r=0}catch(e){Mn(s,"Failed to send telemetry using sendBeacon API. Ex:"+yn(e)),r=0}finally{F(n,r,{},"")}}function L(e){return 2===e||3===e}function R(e){return x&&L(e)&&(e=2),e}function B(){return!m&&b<t}function K(){var e=E;return E=[],e}function z(e,n,t){var r=!1;return e&&e.length>0&&!m&&u[n]&&w&&(r=0!==n||B()&&(t>0||C.allowRequestSending())),r}function H(e){var n={};return e&&xe(e,(function(e,t){n[t]={iKey:e.iKey(),evts:e.events()}})),n}function j(e,t,r,i,o){if(e&&0!==e.length)if(m)J(e,1,i);else{i=R(i);try{var a=e,l=0!==i;Ln(c,(function(){return"HttpManager:_sendBatches"}),(function(a){a&&(e=e.slice(0));for(var s=[],c=null,f=_r(),d=u[i]||(l?u[1]:u[0]),v=d&&d._transport,h=p&&(x||L(i)||3===v||d._isSync&&2===v);z(e,i,t);){var g=e.shift();g&&g.count()>0&&(y.isTenantKilled(g.iKey())?s.push(g):(c=c||w.createPayload(t,r,l,h,o,i),w.appendPayload(c,g,n)?null!==c.overflow&&(e=[c.overflow].concat(e),c.overflow=null,X(c,f,_r(),o),f=_r(),c=null):(X(c,f,_r(),o),f=_r(),e=[g].concat(e),c=null)))}c&&X(c,f,_r(),o),e.length>0&&(E=e.concat(E)),J(s,8004,i)}),(function(){return{batches:H(a),retryCount:t,isTeardown:r,isSynchronous:l,sendReason:o,useSendBeacon:L(i),sendType:i}}),!l)}catch(e){On(s,2,48,"Unexpected Exception sending batch: "+yn(e))}}}function V(e,n){var t={url:g,hdrs:{},useHdrs:!1};n?(t.hdrs=Sr(t.hdrs,P),t.useHdrs=Fe(t.hdrs).length>0):ge(P,(function(e,n){qr[e]?Wr(t,qr[e],n,!1):(t.hdrs[e]=n,t.useHdrs=!0)})),Wr(t,"client-id","NO_AUTH",n),Wr(t,"client-version","1DS-Web-JS-3.2.11",n);var r="";xe(e.apiKeys,(function(e){r.length>0&&(r+=","),r+=e})),Wr(t,"apikey",r,n),Wr(t,"upload-time",Ke().toString(),n);var i=function(e){for(var n=0;n<e.batches.length;n++){var t=e.batches[n].Msfpc();if(t)return encodeURIComponent(t)}return""}(e);if(yr(i)&&(t.url+="&ext.intweb.msfpc="+i),C.shouldAddClockSkewHeaders()&&Wr(t,"time-delta-to-apply-millis",C.getClockSkewHeaderValue(),n),c.getWParam){var o=c.getWParam();o>=0&&(t.url+="&w="+o)}for(var a=0;a<_.length;a++)t.url+="&"+_[a].name+"="+_[a].value;return t}function G(e,n,t){e[n]=e[n]||{},e[n][a.identifier]=t}function X(n,t,i,o){if(n&&n.payloadBlob&&n.payloadBlob.length>0){var l=!!e.sendHook,p=u[n.sendType];!L(n.sendType)&&n.isBeacon&&2===n.sendReason&&(p=u[2]||u[3]||p);var h=I;(n.isBeacon||3===p._transport)&&(h=!1);var g=V(n,h);h=h||g.useHdrs;var m=_r();Ln(c,(function(){return"HttpManager:_doPayloadSend"}),(function(){for(var u=0;u<n.batches.length;u++)for(var T=n.batches[u].events(),_=0;_<T.length;_++){var P=T[_];if(k){var E=P.timings=P.timings||{};G(E,"sendEventStart",m),G(E,"serializationStart",t),G(E,"serializationCompleted",i)}P.sendAttempt>0?P.sendAttempt++:P.sendAttempt=1}J(n.batches,1e3+(o||0),n.sendType,!0);var w={data:n.payloadBlob,urlString:g.url,headers:g.hdrs,_thePayload:n,_sendReason:o,timeout:f,disableXhrSync:d,disableFetchKeepAlive:v};h&&(Xr(w.headers,"cache-control")||(w.headers["cache-control"]="no-cache, no-store"),Xr(w.headers,"content-type")||(w.headers["content-type"]="application/x-json-stream"));var I=null;p&&(I=function(t){C.firstRequestSent();var i=function(t,i){!function(n,t,i,o){var s=9e3,u=null,c=!1,l=!1;try{var f=!0;if(typeof n!==q.l){if(t){C.setClockSkew(t["time-delta-millis"]);var d=t["kill-duration"]||t["kill-duration-seconds"];xe(y.setKillSwitchTenants(t["kill-tokens"],d),(function(e){xe(i.batches,(function(n){if(n.iKey()===e){u=u||[];var t=n.split(0);i.numEvents-=t.count(),u.push(t)}}))}))}if(200==n||204==n)return void(s=200);((p=n)>=300&&p<500&&408!=p&&429!=p||501==p||505==p||i.numEvents<=0)&&(f=!1),s=9e3+n%1e3}if(f){s=100;var v=i.retryCnt;0===i.sendType&&(v<r?(c=!0,W((function(){0===i.sendType&&b--,j(i.batches,v+1,i.isTeardown,x?2:i.sendType,5)}),x,Ur(v))):(l=!0,x&&(s=8001)))}}finally{c||(C.setClockSkew(),function(n,t,r,i){try{i&&a._backOffTransmission(),200===t&&(i||n.isSync||a._clearBackOff(),function(e){if(k){var n=_r();xe(e,(function(e){var t,r;e&&e.count()>0&&(t=e.events(),r=n,k&&xe(t,(function(e){G(e.timings=e.timings||{},"sendEventCompleted",r)})))}))}}(n.batches)),J(n.batches,t,n.sendType,!0)}finally{0===n.sendType&&(b--,5!==r&&e.sendQueuedRequests(n.sendType,r))}}(i,s,o,l)),J(u,8004,i.sendType)}var p}(t,i,n,o)},u=n.isTeardown||n.isSync;try{p.sendPOST(t,i,u),e.sendListener&&e.sendListener(w,t,u,n.isBeacon)}catch(e){Mn(s,"Unexpected exception sending payload. Ex:"+yn(e)),F(i,0,{})}}),Ln(c,(function(){return"HttpManager:_doPayloadSend.sender"}),(function(){if(I)if(0===n.sendType&&b++,l&&!n.isBeacon&&3!==p._transport){var t={data:w.data,urlString:w.urlString,headers:Sr({},w.headers),timeout:w.timeout,disableXhrSync:w.disableXhrSync,disableFetchKeepAlive:w.disableFetchKeepAlive},r=!1;Ln(c,(function(){return"HttpManager:_doPayloadSend.sendHook"}),(function(){try{e.sendHook(t,(function(e){r=!0,S||e._thePayload||(e._thePayload=e._thePayload||w._thePayload,e._sendReason=e._sendReason||w._sendReason),I(e)}),n.isSync||n.isTeardown)}catch(e){r||I(w)}}))}else I(w)}))}),(function(){return{thePayload:n,serializationStart:t,serializationCompleted:i,sendReason:o}}),n.isSync)}n.sizeExceed&&n.sizeExceed.length>0&&J(n.sizeExceed,8003,n.sendType),n.failedEvts&&n.failedEvts.length>0&&J(n.failedEvts,8002,n.sendType)}function W(e,n,t){n?e():o.set(e,t)}function Q(n){var t=e._responseHandlers;try{for(var r=0;r<t.length;r++)try{t[r](n)}catch(e){On(s,1,519,"Response handler failed: "+e)}if(n){var i=JSON.parse(n);yr(i.webResult)&&yr(i.webResult.msfpc)&&l.set("MSFPC",i.webResult.msfpc,31536e3)}}catch(e){}}function J(e,n,t,r){if(e&&e.length>0&&i){var o=i[function(e){var n=Hr[e];yr(n)||(n="oth",e>=9e3&&e<=9999?n="rspFail":e>=8e3&&e<=8999?n="drop":e>=1e3&&e<=1999&&(n="send"));return n}(n)];if(o){var a=0!==t;Ln(c,(function(){return"HttpManager:_sendBatchesNotification"}),(function(){W((function(){try{o.call(i,e,n,a,t)}catch(e){On(s,1,74,"send request notification failed: "+e)}}),r||a,0)}),(function(){return{batches:H(e),reason:n,isSync:a,sendSync:r,sendType:t}}),!a)}}}e.initialize=function(e,n,t,r,i){var o;i||(i={}),g=e+g,I=!!ce(i.avoidOptions)||!i.avoidOptions,c=n,l=n.getCookieMgr(),k=!c.config.disableEventTimings;var y=!!c.config.enableCompoundKey;s=(a=t).diagLog();var m=i.valueSanitizer,C=i.stringifyObjects;ce(i.enableCompoundKey)||(y=!!i.enableCompoundKey),f=i.xhrTimeout,d=!!i.disableXhrSync,v=!!i.disableFetchKeepAlive,h=!1!==i.addNoResponse,T=!hn(),w=new Kr(c,m,C,y),le(i.useSendBeacon)||(T=!!i.useSendBeacon);var b=r,_=i.alwaysUseXhrOverride?r:null,P=i.alwaysUseXhrOverride?r:null,E=[3,2];if(!r){S=!1;var x=fn();x&&x.protocol&&"file:"===x.protocol.toLowerCase()&&(N=!1);var O=[];hn()?(O=[2,1],E=[2,1,3]):O=[1,2,3],(r=A(O=Qr(O,i.transports),!1))||Mn(s,"No available transport to send events"),b=A(O,!0)}_||(_=A(E=Qr(E,i.unloadTransports),!0)),p=!S&&(T&&mn()||!v&&Cn(!0)),(o={})[0]=r,o[1]=b||A([1,2,3],!0),o[2]=_||b||A([1],!0),o[3]=P||A([2,3],!0)||b||A([1],!0),u=o},e._getDbgPlgTargets=function(){return[u[0],y,w,u]},e.addQueryStringParameter=function(e,n){for(var t=0;t<_.length;t++)if(_[t].name===e)return void(_[t].value=n);_.push({name:e,value:n})},e.addHeader=function(e,n){P[e]=n},e.canSendRequest=function(){return B()&&C.allowRequestSending()},e.sendQueuedRequests=function(e,n){ce(e)&&(e=0),x&&(e=R(e),n=2),z(E,e,0)&&j(K(),0,!1,e,n||0)},e.isCompletelyIdle=function(){return!m&&0===b&&0===E.length},e.setUnloading=function(e){x=e},e.addBatch=function(e){if(e&&e.count()>0){if(y.isTenantKilled(e.iKey()))return!1;E.push(e)}return!0},e.teardown=function(){E.length>0&&j(K(),0,!0,2,2)},e.pause=function(){m=!0},e.resume=function(){m=!1,e.sendQueuedRequests(0,4)},e.sendSynchronousBatch=function(e,n,t){e&&e.count()>0&&(le(n)&&(n=1),x&&(n=R(n),t=2),j([e],0,!1,n,t||0))}}))}return e.__ieDyn=1,e}();function $r(e,n){for(var t=[],r=2;r<arguments.length;r++)t[r-2]=arguments[r];return setTimeout(e,n,t)}function Zr(e){clearTimeout(e)}function Yr(e,n){return{set:e||$r,clear:n||Zr}}var ei=function(e){function n(){var t,r=e.call(this)||this;r.identifier="PostChannel",r.priority=1011,r.version="3.2.11";var i,o,a,s,u,c,l,f=!1,d=[],v=null,p=!1,h=0,g=500,y=0,m=1e4,C={},T="REAL_TIME",b=null,S=null,_=0,P=0,E={},w=-1,k=!0,x=!1,I=6,N=2;return j(n,r,(function(e,n){function r(e){"beforeunload"!==(e||sn().event).type&&(x=!0,o.setUnloading(x)),B(2,2)}function A(e){x=!1,o.setUnloading(x)}function O(e,n){if(e.sendAttempt||(e.sendAttempt=0),e.latency||(e.latency=1),e.ext&&e.ext.trace&&delete e.ext.trace,e.ext&&e.ext.user&&e.ext.user.id&&delete e.ext.user.id,k&&(e.ext=Je(e.ext),e.baseData&&(e.baseData=Je(e.baseData)),e.data&&(e.data=Je(e.data))),e.sync)if(_||p)e.latency=3,e.sync=!1;else if(o)return k&&(e=Je(e)),void o.sendSynchronousBatch(Mr.create(e.iKey,[e]),!0===e.sync?1:e.sync,3);var t=e.latency,r=y,i=m;4===t&&(r=h,i=g);var a=!1;if(r<i)a=!H(e,n);else{var s=1,u=20;4===t&&(s=4,u=1),a=!0,function(e,n,t,r){for(;t<=n;){var i=K(e,n,!0);if(i&&i.count()>0){var o=i.split(0,r),a=o.count();if(a>0)return 4===t?h-=a:y-=a,Q("eventsDiscarded",[o],Nr.QueueFull),!0}t++}return j(),!1}(e.iKey,e.latency,s,u)&&(a=!H(e,n))}a&&W("eventsDiscarded",[e],Nr.QueueFull)}function M(e,n,t){var r=q(e,n,t);return o.sendQueuedRequests(n,t),r}function D(){return y>0}function F(){if(w>=0&&q(w,0,u)&&o.sendQueuedRequests(0,u),h>0&&!S&&!p){var e=C[T][2];e>=0&&(S=L((function(){S=null,M(4,0,1),F()}),e))}var n=C[T][1];!b&&!v&&n>=0&&!p&&(D()?b=L((function(){b=null,M(0===P?3:1,0,1),P++,P%=2,F()}),n):P=0)}function U(){t=null,f=!1,d=[],v=null,p=!1,h=0,g=500,y=0,m=1e4,C={},T="REAL_TIME",b=null,S=null,_=0,P=0,i=null,E={},a=void 0,s=0,w=-1,u=null,k=!0,x=!1,I=6,N=2,c=null,l=Yr(),o=new Jr(500,2,1,{requeue:G,send:J,sent:$,drop:Z,rspFail:Y,oth:ee},l),V(),E[4]={batches:[],iKeyMap:{}},E[3]={batches:[],iKeyMap:{}},E[2]={batches:[],iKeyMap:{}},E[1]={batches:[],iKeyMap:{}},ne()}function L(e,n){0===n&&_&&(n=1);var t=1e3;return _&&(t=Ur(_-1)),l.set(e,n*t)}function R(){return null!==b&&(l.clear(b),b=null,P=0,!0)}function B(e,n){R(),v&&(l.clear(v),v=null),p||M(1,e,n)}function K(e,n,t){var r=E[n];r||(r=E[n=1]);var i=r.iKeyMap[e];return!i&&t&&(i=Mr.create(e),r.batches.push(i),r.iKeyMap[e]=i),i}function z(n,t){o.canSendRequest()&&!_&&(a>0&&y>a&&(t=!0),t&&null==v&&e.flush(n,null,20))}function H(e,n){k&&(e=Je(e));var t=e.latency,r=K(e.iKey,t,!0);return!!r.addEvent(e)&&(4!==t?(y++,n&&0===e.sendAttempt&&z(!e.sync,s>0&&r.count()>=s)):h++,!0)}function j(){for(var e=0,n=0,t=function(t){var r=E[t];r&&r.batches&&xe(r.batches,(function(r){4===t?e+=r.count():n+=r.count()}))},r=1;r<=4;r++)t(r);y=n,h=e}function q(n,t,r){var i=!1,a=0===t;return!a||o.canSendRequest()?Ln(e.core,(function(){return"PostChannel._queueBatches"}),(function(){for(var e=[],t=4;t>=n;){var r=E[t];r&&r.batches&&r.batches.length>0&&(xe(r.batches,(function(n){o.addBatch(n)?i=i||n&&n.count()>0:e=e.concat(n.events()),4===t?h-=n.count():y-=n.count()})),r.batches=[],r.iKeyMap={}),t--}e.length>0&&W("eventsDiscarded",e,Nr.KillSwitch),i&&w>=n&&(w=-1,u=0)}),(function(){return{latency:n,sendType:t,sendReason:r}}),!a):(w=w>=0?Math.min(w,n):n,u=Math.max(u,r)),i}function V(){(C={}).REAL_TIME=[2,1,0],C.NEAR_REAL_TIME=[6,3,0],C.BEST_EFFORT=[18,9,0]}function G(n,t){var r=[],i=I;x&&(i=N),xe(n,(function(n){n&&n.count()>0&&xe(n.events(),(function(n){n&&(n.sync&&(n.latency=4,n.sync=!1),n.sendAttempt<i?(wr(n,e.identifier),O(n,!1)):r.push(n))}))})),r.length>0&&W("eventsDiscarded",r,Nr.NonRetryableStatus),x&&B(2,2)}function X(n,t){var r=e._notificationManager||{},i=r[n];if(i)try{i.apply(r,t)}catch(t){On(e.diagLog(),1,74,n+" notification failed: "+t)}}function W(e,n){for(var t=[],r=2;r<arguments.length;r++)t[r-2]=arguments[r];n&&n.length>0&&X(e,[n].concat(t))}function Q(e,n){for(var t=[],r=2;r<arguments.length;r++)t[r-2]=arguments[r];n&&n.length>0&&xe(n,(function(n){n&&n.count()>0&&X(e,[n.events()].concat(t))}))}function J(e,n,t){e&&e.length>0&&X("eventsSendRequest",[n>=1e3&&n<=1999?n-1e3:0,!0!==t])}function $(e,n){Q("eventsSent",e,n),F()}function Z(e,n){Q("eventsDiscarded",e,n>=8e3&&n<=8999?n-8e3:Nr.Unknown)}function Y(e){Q("eventsDiscarded",e,Nr.NonRetryableStatus),F()}function ee(e,n){Q("eventsDiscarded",e,Nr.Unknown),F()}function ne(){s=t&&t.disableAutoBatchFlushLimit?0:Math.max(1500,m/6)}U(),e._getDbgPlgTargets=function(){return[o]},e.initialize=function(s,u,f){Ln(u,(function(){return"PostChannel:initialize"}),(function(){var d=u;n.initialize(s,u,f);try{u.addUnloadCb;c=Nt(Yn(e.identifier),u.evtNamespace&&u.evtNamespace());var v=e._getTelCtx();s.extensionConfig[e.identifier]=s.extensionConfig[e.identifier]||{},t=v.getExtCfg(e.identifier),l=Yr(t.setTimeoutOverride,t.clearTimeoutOverride),k=!t.disableOptimizeObj&&!!on("chrome"),function(e){var n=e.getWParam;e.getWParam=function(){var e=0;return t.ignoreMc1Ms0CookieProcessing&&(e|=2),e|n()}}(d),t.eventsLimitInMem>0&&(m=t.eventsLimitInMem),t.immediateEventLimit>0&&(g=t.immediateEventLimit),t.autoFlushEventsLimit>0&&(a=t.autoFlushEventsLimit),Pe(t.maxEventRetryAttempts)&&(I=t.maxEventRetryAttempts),Pe(t.maxUnloadEventRetryAttempts)&&(N=t.maxUnloadEventRetryAttempts),ne(),t.httpXHROverride&&t.httpXHROverride.sendPOST&&(i=t.httpXHROverride),yr(s.anonCookieName)&&o.addQueryStringParameter("anoncknm",s.anonCookieName),o.sendHook=t.payloadPreprocessor,o.sendListener=t.payloadListener;var p=t.overrideEndpointUrl?t.overrideEndpointUrl:s.endpointUrl;e._notificationManager=u.getNotifyMgr(),o.initialize(p,e.core,e,i,t);var h=s.disablePageUnloadEvents||[];Ut(r,h,c),function e(n,t,r){var i=Nt(mt,r),o=Dt(["pagehide"],n,t,i);return t&&-1!==Ie(t,"visibilitychange")||(o=Dt(["visibilitychange"],(function(e){var t=un();n&&t&&"hidden"===t.visibilityState&&n(e)}),t,i)||o),!o&&t&&(o=e(n,null,r)),o}(r,h,c),function e(n,t,r){var i=Nt(Ct,r),o=Dt(["pageshow"],n,t,i);return!(o=Dt(["visibilitychange"],(function(e){var t=un();n&&t&&"visible"===t.visibilityState&&n(e)}),t,i)||o)&&t&&(o=e(n,null,r)),o}(A,s.disablePageShowEvents,c)}catch(n){throw e.setInitialized(!1),n}}),(function(){return{coreConfig:s,core:u,extensions:f}}))},e.processTelemetry=function(n,r){wr(n,e.identifier);var i=(r=e._getTelCtx(r)).getExtCfg(e.identifier),o=!!t.disableTelemetry;i&&(o=o||!!i.disableTelemetry);var a=n;o||f||(t.overrideInstrumentationKey&&(a.iKey=t.overrideInstrumentationKey),i&&i.overrideInstrumentationKey&&(a.iKey=i.overrideInstrumentationKey),O(a,!0),x?B(2,2):F()),e.processNext(a,r)},e._doTeardown=function(e,n){B(2,2),f=!0,o.teardown(),Ft(["beforeunload","unload","pagehide"],null,c),function(e,n){var t=Nt(mt,n);Ft(["pagehide"],e,t),Ft(["visibilitychange"],null,t)}(null,c),function(e,n){var t=Nt(Ct,n);Ft(["pageshow"],e,t),Ft(["visibilitychange"],null,t)}(null,c),U()},e.setEventQueueLimits=function(e,n){m=e>0?e:1e4,a=n>0?n:0,ne();var t=y>e;if(!t&&s>0)for(var r=1;!t&&r<=3;r++){var i=E[r];i&&i.batches&&xe(i.batches,(function(e){e&&e.count()>=s&&(t=!0)}))}z(!0,t)},e.pause=function(){R(),p=!0,o.pause()},e.resume=function(){p=!1,o.resume(),F()},e.addResponseHandler=function(e){o._responseHandlers.push(e)},e._loadTransmitProfiles=function(e){R(),V(),T="REAL_TIME",F(),ge(e,(function(e,n){var t=n.length;if(t>=2){var r=t>2?n[2]:0;if(n.splice(0,t-2),n[1]<0&&(n[0]=-1),n[1]>0&&n[0]>0){var i=n[0]/n[1];n[0]=Math.ceil(i)*n[1]}r>=0&&n[1]>=0&&r>n[1]&&(r=n[1]),n.push(r),C[e]=n}}))},e.flush=function(e,n,t){if(void 0===e&&(e=!0),!p)if(t=t||1,e)null==v?(R(),q(1,0,t),v=L((function(){v=null,function e(n,t){M(1,0,t),j(),function e(n){o.isCompletelyIdle()?n():v=L((function(){v=null,e(n)}),.25)}((function(){n&&n(),d.length>0?v=L((function(){v=null,e(d.shift(),t)}),0):(v=null,F())}))}(n,t)}),0)):d.push(n);else{var r=R();M(1,1,t),null!=n&&n(),r&&F()}},e.setMsaAuthTicket=function(e){o.addHeader("AuthMsaDeviceTicket",e)},e.hasEvents=D,e._setTransmitProfile=function(e){T!==e&&void 0!==C[e]&&(R(),T=e,F())},e._backOffTransmission=function(){_<4&&(_++,R(),F())},e._clearBackOff=function(){_&&(_=0,R(),F())},Ue(e,"_setTimeoutOverride",(function(){return l.set}),(function(e){l=Yr(e,l.clear)})),Ue(e,"_clearTimeoutOverride",(function(){return l.clear}),(function(e){l=Yr(l.set,e)}))})),r}return Object(P.a)(n,e),n.__ieDyn=1,n}(ar),ni=function(){function e(e,n,t){this.start=Date.now(),this.name=e,this.isAsync=!0===t,this.payload=n}return e.prototype.isChildEvt=function(){return!1},e.prototype.complete=function(){this.time=Date.now()-this.start,this.exTime=this.time},e}(),ti=function(){function e(e){this._callbacks=e}return e.prototype.create=function(e,n,t){return"HttpManager:_sendBatches"===e||"PrivacyGuard:_processTelemetry"===e?new ni(e,n,t):null},e.prototype.fire=function(e){if(e&&e.complete(),this._callbacks)switch(e.name){case"HttpManager:_sendBatches":this.handleSendBatches(e);break;case"PrivacyGuard:_processTelemetry":this.handlePrivacyGuardNotification(e)}},e.prototype.setCtx=function(e,n){},e.prototype.getCtx=function(e){},e.prototype.handleSendBatches=function(e){if(this._callbacks.requestProcessingStats){var n=0;if(e.payload){var t=e.payload();if(t.batches)for(var r in t.batches)n+=t.batches[r].evts.length}this._callbacks.requestProcessingStats(e.time||0,n)}},e.prototype.handlePrivacyGuardNotification=function(e){this._callbacks.privacyGuardStats&&e.time&&e.time>0&&this._callbacks.privacyGuardStats(e.time)},e}();function ri(e,n){var t=e.httpXHROverride,r={instrumentationKey:n,endpointUrl:e.endpointUrl,channelConfiguration:{eventsLimitInMem:e.eventsLimitInMem,httpXHROverride:t,setTimeoutOverride:e.setTimeoutOverride,clearTimeoutOverride:e.clearTimeoutOverride,ignoreMc1Ms0CookieProcessing:!0,disableOptimizeObj:!0},enableWParam:!t,disableCookiesUsage:!0,extensionConfig:o({},e.extensionConfig)};e.stats&&e.stats.networkStats&&r.channelConfiguration&&(r.channelConfiguration.payloadListener=function(n,t){var r,i=t||n;i.data&&(null===(r=e.stats)||void 0===r||r.networkStats(i.data.length))});var i=new oi;return i.initialize(r,e.plugins),i.setUploadFrequency(e.uploadFrequency),e.notificationListener&&i.addNotificationListener(e.notificationListener),e.stats&&i.setPerfMgr(new ti(e.stats)),i}var ii=function(e,n){n&&n.addNotificationListener({eventsSent:function(n){u(2,2,(function(){return"Successfully sent ".concat(n.length," event(s)")})),u(3,2,(function(){return"Sent event(s) details : ".concat(JSON.stringify(n,null,2))})),e.eventsSent+=n.length},eventsDiscarded:function(n,t){u(0,2,(function(){return"Discarded ".concat(n.length," event(s) because ").concat(t)})),u(3,2,(function(){return"Discarded event(s) details : ".concat(JSON.stringify(n,null,2))})),e.eventsDiscarded+=n.length}})},oi=function(e){function n(){return null!==e&&e.apply(this,arguments)||this}return i(n,e),n.prototype.initialize=function(n,t){this._postChannel=new ei;var r=null!=t?t:[];n.channels=[[this._postChannel]],n.extensionConfig=n.extensionConfig||[],n.extensionConfig[this._postChannel.identifier]=o(o({},n.channelConfiguration),n.extensionConfig[this._postChannel.identifier]);try{e.prototype.initialize.call(this,n,r)}catch(e){this.logger.warnToConsole("Failed to initialize SDK."+e)}},n.prototype.setUploadFrequency=function(e){if(this._postChannel&&e){var n=e/1e3,t=n/2,r={};r.OTelCustomTransmissionProfile=[n,t],this._postChannel._loadTransmitProfiles(r),this._postChannel._setTransmitProfile("OTelCustomTransmissionProfile")}},n.prototype.flush=function(e){this._postChannel&&this._postChannel.flush(e)},n.prototype.shutdown=function(){this._postChannel&&this._postChannel.teardown()},n}(xr);function ai(e,n,t,r){var i=!0;if(n)for(var o=function(n){var o=n.classification,a=n.dataType,s=n.name;if(o&&!(4===o||1===o||2===r&&32===o||3===r&&2048===o))return i=!1,"break";if(3===r&&t&&3!==a&&1!==a&&2!==a&&"OTelJS.Version"!==s&&"OTelJS.Sink"!==s)return u(0,1,(function(){return"DNM: Invalid field type "+s})),i=!1,"break";var c=void 0;c=t?"zC."===s.substr(0,3)?"zC.Data."+s.substr(3):"Data."+s:s;var l=void 0;switch(a){case 3:l=6;break;case 2:l=4;break;case 4:l=8;break;case 0:return e[c]="string"==typeof n.value?n.value.substr(0,25e3):n.value,"continue";case 1:default:return e[c]=n.value,"continue"}var f={value:n.value,propertyType:l};e[c]=f},a=0,s=n;a<s.length;a++){if("break"===o(s[a]))break}return i}function si(e,n){try{return e()}catch(e){return c(1,"1DS Sink",e),n}}function ui(e){return e.timestamp?new Date(e.timestamp):new Date}function ci(e,n){for(var t=function(t){var r=n[t];if(!r.processEvent(e))return u(2,1,(function(){return"".concat(e.eventName," suppressed by ").concat(r.name)})),{value:!1}},r=0;r<n.length;r++){var i=t(r);if("object"==typeof i)return i.value}return!0}function li(e){u(0,1,(function(){return"Invalid "+e}))}var fi,di=/^((0|[1-9]\d*)\.){0,3}(0|[1-9]\d*)([-+][-+0-9a-zA-Z\.]+)?$/;var vi,pi=((fi={})[3]="App.Name",fi[4]="App.Platform",fi[5]="App.Version",fi[2]="WAC.Ring",fi[1]="Release.AudienceGroup",fi),hi=function(e){var n,t,r=this;this.eventsProcessed=0;var i=function(e){var n,r=S(e),i=[];if(t.getPreprocessors().forEach((function(e){"EventThrottler"===e.name&&i.push(e)})),ci(r,i)){var o=ui(r);o.setMilliseconds(0),o.setSeconds(0),o.setMinutes(0),2===r.telemetryProperties.dnmInterval&&o.setHours(0);var a={"Event.Name":r.eventName,"Event.Source":"OTelJS","Event.Time":{value:o.toISOString(),propertyType:9}},s=function(e,n){var t={};return n&&n.forEach((function(n){var r=pi[n];t[r]=e[r]})),t}(t.getOneDSPersistentDataFields(),null===(n=null==e?void 0:e.telemetryProperties)||void 0===n?void 0:n.dnmAllowedPartA);for(var c in s)a[c]=s[c];if(!ai(a,r.dataFields,!0,3))return void u(0,1,(function(){return"Dropping Event: "+r.eventName}));var l=function(e){if(e.telemetryProperties&&e.telemetryProperties.dnmToken)return e.telemetryProperties.dnmToken;u(0,1,(function(){return"Missing DNM Token"}))}(r);if(!l)return;return{iKey:l,name:r.eventName,data:a,time:o.toISOString(),baseType:"custom",ext:{sdk:{seq:0},utc:{eventFlags:2097152}}}}};this.initialize=function(r,i){var a=o(o({},i),{endpointUrl:e.endpointUrl,extensionConfig:o(o({},i.extensionConfig),{PrivacyGuardPlugin:{}}),plugins:[],nonStandardEventHandlers:[]});n=ri(a,"67074e509c164bcaaf85b53c0ad0cde2-13c1c869-7901-4e72-b536-9e754e3b7413-6518"),a.disableStatsTracking||ii(r,n),t=r},this.shutdown=function(){null==n||n.shutdown()},this.flush=function(e){null==n||n.flush(e)},this.canHandle=function(e){return 3===e},this.processEvent=function(e){return r.eventsProcessed++,si((function(){var t=i(e);t&&n&&(null==n||n.track(t))}),void 0)}};function gi(e,n){return e?e+"."+n:n}function yi(e,n,t,r,i){void 0===i&&(i=4),r&&e.push(T("".concat(gi(n,t)),r,i))}function mi(e,n,t,r){"boolean"==typeof r&&e.push(m("".concat(gi(n,t)),r))}!function(e){e.USGOV_DOD="https://pf.events.data.microsoft.com/OneCollector/1.0/",e.USGOV_DOJ="https://tb.events.data.microsoft.com/OneCollector/1.0/",e.PUBLIC="https://browser.events.data.microsoft.com/OneCollector/1.0/",e.CUSTOMER_CONTENT="",e.EUDB="https://eu-office.events.data.microsoft.com/OneCollector/1.0/"}(vi||(vi={}));var Ci,Ti,bi,Si,_i=function(e){var n=[];return yi(n,"User","PrimaryIdentityHash",e.primaryIdentityHash),yi(n,"User","PrimaryIdentitySpace",e.primaryIdentitySpace),yi(n,"User","TenantId",e.tenantId,1),yi(n,"User","TenantGroup",e.tenantGroup,1),mi(n,"User","IsAnonymous",e.isAnonymous),n},Pi=function(e){var n=[];return yi(n,"App","Name",e.name,1),yi(n,"App","Platform",e.platform,1),yi(n,"App","Version",e.version,1),n},Ei=function(e){var n=[];return yi(n,"Session","Id",e.id,1),yi(n,"Session","EcsETag",e.ecsETag,1),n},wi=function(e){var n=[];return yi(n,"Release","AudienceGroup",e.audienceGroup,1),n};Si=Ci||(Ci={}),(bi=Si.FeatureActionType||(Si.FeatureActionType={})).IsEnabled="IsEnabled",bi.IsSeen="IsSeen",bi.IsTried="IsTried",bi.IsKept="IsKept",bi.IsRejected="IsRejected",(Ti=Si.Capability||(Si.Capability={})).ContentGeneration="Content Generation",Ti.Commanding="Commanding",Ti.QAandSummaries="QA and Summaries",Ti.Collaboration="Collaboration",Ti.Suggestions="Suggestions",Si.getFields=function(e){var n=[];return void 0!==e.featureActionType&&n.push(T("".concat("Copilot",".FeatureActionType"),e.featureActionType)),void 0!==e.isUserInitiated&&n.push(m("".concat("Copilot",".IsUserInitiated"),e.isUserInitiated)),void 0!==e.featureName&&n.push(T("".concat("Copilot",".FeatureName"),e.featureName)),void 0!==e.capability&&n.push(T("".concat("Copilot",".Capability"),e.capability)),void 0!==e.isThumbsUp&&n.push(m("".concat("Copilot",".IsThumbsUp"),e.isThumbsUp)),n.push(T("zC.".concat("Copilot"),"Office.System.Copilot")),n};var ki=function(){var e,n,t=this;this.eventsProcessed=0,this.initialize=function(t,r){var i=function(e){switch(e){case vi.PUBLIC:return"https://office-c.events.data.microsoft.com/OneCollector/1.0/";case vi.EUDB:return"https://eu-office-c.events.data.microsoft.com/OneCollector/1.0/";default:return}}(r.endpointUrl);if(i){var a=o(o({},r),{endpointUrl:i,extensionConfig:o(o({},r.extensionConfig),{PrivacyGuardPlugin:{}}),nonStandardEventHandlers:[],plugins:[]});e=ri(a,"b22a201c3f1d41d28ccc399ba6cc9ca2-1972c77f-1f79-4283-a0f9-b4ddc4646f55-7121"),r.disableStatsTracking||ii(t,e),n=t}else u(0,1,(function(){return"Missing 1DS CCCO Endpoint"}))},this.shutdown=function(){null==e||e.shutdown()},this.flush=function(n){null==e||e.flush(n)},this.canHandle=function(e){return n&&2===e},this.processEvent=function(r){return t.eventsProcessed++,si((function(){var t=n.getOneDSCustomerContent(r);t&&e&&(null==e||e.track(t))}),void 0)}},xi=function(e){function n(n,t){var r,i=e.call(this,n,t)||this;i.sendTelemetryEvent=function(e){return si((function(){var n=i.getOneDSTelemetryEvent(e);n&&r&&r.track(n)}),void 0)},i.sendCustomerContent=function(e){},i.sendNonStandardEvent=function(e,n){var t=!1;o.forEach((function(r){r.canHandle(n)&&(r.processEvent(e),t=!0)})),t||u(0,1,(function(){return"Missing Handler for "+n+"to process"+e.eventName}))},i.flush=function(e){null==r||r.flush(e),o.forEach((function(n){n.flush(e)}))},i.shutdown=function(){try{null==r||r.shutdown(),o.forEach((function(e){e.shutdown()}))}catch(e){u(0,2,(function(){return"An error occurred on shutdown"}))}};var o=t.nonStandardEventHandlers||[];if(r=ri(t,"f998cc5ba4d448d6a1e8e913ff18be94-dd122e0a-fcf8-4dc5-9dbb-6afac5325183-7405"),o.forEach((function(e){e.initialize(i,t)})),!t.endpointUrl)throw new Error("Missing Endpoint Url");return t.disableStatsTracking||ii(i,r),i}return i(n,e),n}((function(e,n){var t=this;this.eventsProcessed=0,this.eventsSent=0,this.eventsDiscarded=0;var r=[],i=!1,o=!0,a={name:"DiagnosticLevel",processEvent:function(e){var n=e.eventFlags.diagnosticLevel;return i||10===n||110===n||120===n}},s={},c=Bt();this.init=function(){return o=o&&function(e){function n(n){return"string"==typeof e[n]||(li(n),!1)}var t=n("App.Name")&&n("App.Version")&&n("App.Platform")&&n("Session.Id"),r=e["User.IsAnonymous"];if(!1!==r&&void 0!==r||(t=t&&n("User.PrimaryIdentityHash")&&n("User.PrimaryIdentitySpace")),!t)return t;var i=e["App.Version"];di.test(i)||(li("App.Version"),t=!1);var o=/^[0-9a-fA-F]{8}-([0-9a-fA-F]{4}-){3}[0-9a-fA-F]{12}$/,a=e["User.TenantId"];return!a||n("User.TenantId")&&o.test(a)||(li("User.TenantId"),t=!1),o.test(e["Session.Id"])||(li("Session.Id"),t=!1),t}(s)},this.getOneDSTelemetryEvent=function(e){return l(e,{eventType:1})},this.getOneDSCustomerContent=function(e){var n=e.telemetryProperties.customerContentVersion;if(n&&Math.floor(n)<=2&&1===e.telemetryProperties.customerContentType)return l(e,{eventType:2})};var l=function(e,n){var i=S(e);if(ci(i,r)){var o=ui(i).toISOString(),a={"Event.Name":i.eventName,"Event.Source":"OTelJS","Event.Time":{value:o,propertyType:9}};for(var l in t.eventsProcessed++,a["Event.Sequence"]={value:t.eventsProcessed,propertyType:4},a["Event.Id"]=c+"."+t.eventsProcessed,s)a[l]=s[l];if(!ai(a,i.dataFields,!0,n.eventType))return void u(0,1,(function(){return"Dropping Event: "+i.eventName}));var f="custom";i.eventContract&&(i.eventContract.name&&(a["Event.Contract"]=i.eventContract.name,f+="."+i.eventContract.name.toLowerCase().replace(/\./g,"_")),ai(a,i.eventContract.dataFields,!1,n.eventType));var d=function(e,n){return 2===n?"b22a201c3f1d41d28ccc399ba6cc9ca2-1972c77f-1f79-4283-a0f9-b4ddc4646f55-7121":e.telemetryProperties&&(1!==n||e.telemetryProperties.ariaTenantToken)?1===n?e.telemetryProperties.ariaTenantToken:void 0:void u(0,1,(function(){return"Missing Aria Token"}))}(i,n.eventType);if(!d)return;return{iKey:d,name:i.eventName,data:a,time:o,baseType:f,ext:{sdk:{seq:t.eventsProcessed}}}}};this.addPreprocessor=function(e){r.push(e)},this.getOneDSPersistentDataFields=function(){return s},this.getPreprocessors=function(){return r};var f=function(e){ai(s,e,!1,1)};this.addPersistentDataFields=f,this.setOptionalEventsEnabled=function(e){i=e},this.setFullEventsEnabled=this.setOptionalEventsEnabled,n.enableOptionalEvents&&(i=!0),f(e);var d=n.coreFields;if(d){f(Pi(d.app)),f(_i(d.user)),f(Ei(d.session));var v=d.release;v&&f(wi(v))}this.addPreprocessor(a)})),Ii=function(){return Date.now()};"object"==typeof window&&"object"==typeof window.performance&&"function"==typeof window.performance.now&&(Ii=function(){return window.performance.now()});var Ni=function(){var e;return(e={}).md=0,e.mm=0,e.mn=0,e.q=0,e.po={},e.pw=0,e.wa=0,e.wp=0,e.wd=0,e.wr={},e.ws=0,e.pm=0,e.sp=0,e.ss=0,e.sd=0,e.wh=0,e.pd={},e.d=0,e.b=0,e.s=0,e},Ai=function(){function e(e){var n=this;this._handlerProps=e,this._stats=Ni(),this._oneDsStats={requestProcessingStats:function(e,t){n._stats.wp+=t,n._stats.d+=e,n.statsUpdated()},networkStats:function(e){n._stats.b+=e,n.statsUpdated()},privacyGuardStats:function(e){n._stats.pd.PrivacyGuardPlugin=n._stats.pd.PrivacyGuardPlugin+e||e,n.statsUpdated()}},this._listener={eventsSent:function(e){n._stats.ws+=e.length,n.statsUpdated()},eventsDiscarded:function(e,t){n._stats.wd+=e.length,n._stats.wr[t]=n._stats.wr[t]+e.length||e.length,n.statsUpdated()}}}return e.prototype.statsUpdated=function(){var e=this;void 0===this._statsTimer&&(this._statsTimer=setTimeout((function(){e.postMessage({d:e._stats,t:4}),e._stats=Ni(),e._statsTimer=void 0}),1e3))},e.prototype.postMessage=function(e){this._handlerProps.postMessage(e)},e.prototype.ensureInitialized=function(){return void 0!==this.oneDSSink},e.prototype.handleInitializeMessage=function(e){var n=o(o(o({stats:this._oneDsStats},this._handlerProps.oneDSSinkProps),e),{notificationListener:this._listener});if(n.endpointUrl)this._handlerProps.onInit&&this._handlerProps.onInit(n),this.oneDSSink=new xi(e.persistentDataFields,n);else{this.postMessage({d:21,t:5})}},e.prototype.handleTelemetryEventMessage=function(e){var n=this;if(this.ensureInitialized()){var t;e.d.forEach((function(e){n._stats.wa++;var t=Ii();switch(e.t){case 1:n.oneDSSink.sendTelemetryEvent(e.event);break;case 2:case 3:n.oneDSSink.sendNonStandardEvent(e.event,e.t);break;default:e.t}var r=Ii()-t;n._stats.wh+=r})),this.oneDSSink.flush(3===(t="3.2.11".split(".")).length&&parseInt(t[0])>=3&&parseInt(t[1])>=2&&parseInt(t[2])>=3)}else{this.postMessage({d:15,t:5})}},e.prototype.handleMessage=function(e){if(e&&e.data){var n=e.data;switch(n.t){case 2:this.handleInitializeMessage(n.d);break;case 3:this.handleTelemetryEventMessage(n);break;default:}}},e.prototype.postLoadedMessage=function(){this.postMessage({t:1})},e}();var Oi,Mi=["ACCDA","ACCDB","ACCDC","ACCDE","ACCDR","ACCDT","ACCDU","ACCDW","ACCFT","ADE","ADN","ADP","AVI","BMP","CSV","DOC","DOCX","DOT","DOTX","ERR","FON","GIF","HTML","ISO","JPEG","JPG","LACCDB","LDB","LOG","MAD","MAF","MAG","MAM","MAQ","MAR","MAS","MAT","MAU","MAV","MAW","MDA","MDBHTML","MDE","MDN","MDT","MDW","MOV","MP3","MPD","MPG","MPP","MPT","MPW","MPX","MSG","OLS","ONE","ONEPKG","ONETOC","ONETOC2","OST","PDF","PNG","POT","POTHTML","POTX","PPA","PPS","PPSX","PPT","PPTHTML","PPTMHTML","PPTX","PPTXML","PST","PUB","PWZ","RTF","SLDM","SLDX","SLK","THMX","TIF","TIFF","TSX","TTF","TXT","VDW","VDX","VHD","VSD","VSDM","VSDX","VSIX","VSL","VSS","VSSM","VSSX","VST","VSTM","VSTX","VSU","VSW","VSX","WAV","WIZHTML","WMA","WMV","WPL","XLS","XLSHTML","XLSMHTML","XLSX","XLTHTML","XLTM","XLTX","XLW","XLXML","XPS","ZIP"],Di=function(){function e(){this.map={},this.isWord=!1,this.isInitialized=!1}return e.prototype.search=function(e){return this.find(e,0,this)},e.prototype.init=function(){if(!this.isInitialized){for(var e=0,n=Mi;e<n.length;e++){var t=n[e];this.add(t,0,this)}this.isInitialized=!0}},e.prototype.add=function(n,t,r){if(t!==n.length)return r.map[n.charAt(t)]||(r.map[n.charAt(t)]=new e),this.add(n,t+1,r.map[n.charAt(t)]);r.isWord=!0},e.prototype.find=function(e,n,t){return n===e.length?!!t.isWord:!!t.map[e[n]]&&this.find(e,n+1,t.map[e.charAt(n)])},e}(),Fi=/([A-Z0-9_]|\.|%2E){1,50}(@|_AT_|%40)([A-Z0-9_]{1,50}(\.|_|%2E))+(COM|ORG|GOV|EDU)/,Ui=/([A-Z]:|\\)(\\\\{0,1}\w+)+/,Li=/((<HTML>)|(\{\\RTF)|(<\?XML)|(MIME-VERSION)|(<ASP:))/,Ri=function(){function e(){var n=[],t=!1,r=!0,i=!0,o=[],a=new Di;j(e,this,(function(e,s){function u(e){return e=(e=e.replace(/[.*+\-?^${}()|[\]\\]/g,"\\$&")).replace(/\-/g,"-?"),new RegExp(e)}function c(e,n){for(var t=0,r=e.split(" ");t<r.length;t++){var i=r[t];i.length>=4&&(!n||n&&-1===Ie(n,i))&&o.push(i)}}function l(e,n){if(!e||0===e.length||!n||0===n.length)return!1;var t=e.indexOf(n)-1,r=t+n.length+1;if(t>=-1&&r>=0){var i=e.charCodeAt(r);return t>-1?!f(e.charCodeAt(t))&&!f(i):!f(i)}return!1}function f(e){return e>=65&&e<=90||e>=97&&e<=122}function d(e){for(var n=0;n<e.length;n++)if(f(e.charCodeAt(n)))return!0;return!1}function v(e){return e.match(/MICROSOFT(\.|_|%2E)COM/)||e.match(/LINKEDIN(\.|_|%2E)COM/)?11:5}function p(e,n,t){if(t<0||t+n.length>=e.length)return!1;for(var r=0;r<n.length;r++)if(e[t+r]!==n[r])return!1;return!0}e.initialize=function(n){n?(i=!0!==n.disableAdvancedScans,void 0!==n.scanForUrls&&(r=!0===n.scanForUrls),n.context&&e.updateCommonContext(n.context)):Ge("PG:No Core"),a.init(),t=!0},e.isEnabled=function(){return t},e.setEnabled=function(e){return(t=e)===e},e.updateCommonContext=function(e){if(null===e&&Ge("PG:No Context"),e.UserName&&d(e.UserName)&&c(e.UserName,e.IgnoredNameParts),e.UserNames&&e.UserNames.length>0)for(var t=0,r=e.UserNames;t<r.length;t++){var o=r[t];d(o)&&c(o,e.IgnoredNameParts)}if(e.UserAlias&&d(e.UserAlias)&&n.push({stringIsolatedWord:e.UserAlias.replace(/[^a-zA-Z]/g,"").toUpperCase(),concern:19}),e.UserAliases&&e.UserAliases.length>0)for(var a=0,s=e.UserAliases;a<s.length;a++){var l=s[a];d(l)&&n.push({stringIsolatedWord:l.replace(/[^a-zA-Z]/g,"").toUpperCase(),concern:19})}if(e.MachineIds&&e.MachineIds.length>0)for(var f=0,v=e.MachineIds;f<v.length;f++){var p=v[f];n.push({stringValue:p.toUpperCase(),concern:14})}if(i&&e.OutOfScopeIdentifiers&&e.OutOfScopeIdentifiers.length>0)for(var h=0,g=e.OutOfScopeIdentifiers;h<g.length;h++){var y=g[h];n.push({regexpValue:u(y.toUpperCase()),concern:15})}},e.getAllPrivacyConcerns=function(e,t,s,u){var c=[];u.length>1e3&&(u=u.substring(0,1e3));var d,h=function(e){for(var n={hasAlphabets:!1,hasAtSign:!1,hasBackslash:!1,hasDash:!1,hasDot:!1,hasFileUrl:!1,hasFileSharingConcern:!1,hasFormatChars:!1,hasForwardSlash:!1,hasHttp:!1,hasPercentage:!1,hasSecurityAccessTokenConcern:!1,hasSecuritySignatureConcern:!1,hasUnderscore:!1,valueToCheck:e.toUpperCase()},t=n.valueToCheck,i=0;i<t.length;i++){var o=t.charAt(i);switch(n.hasAlphabets||(n.hasAlphabets=f(t.charCodeAt(i))),o){case"@":n.hasAtSign||(n.hasAtSign=i<t.length-3);break;case"\\":n.hasBackslash||(n.hasBackslash=!0);break;case"-":n.hasDash||(n.hasDash=!0);break;case".":n.hasDot||(n.hasDot=i<t.length-2);break;case"<":case"{":n.hasFormatChars||(n.hasFormatChars=!0);break;case"/":n.hasForwardSlash||(n.hasForwardSlash=!0),n.hasHttp&&r&&!n.hasFileSharingConcern&&(i<t.length-16&&(n.hasFileSharingConcern=p(t,"WOPI.ASHX/FILES",i+1),n.hasFileSharingConcern&&(i+=14)),!n.hasFileSharingConcern&&i<t.length-12&&(n.hasFileSharingConcern=p(t,"WOPI/FILES/",i+1),n.hasFileSharingConcern&&(i+=10)));break;case"_":n.hasUnderscore||(n.hasUnderscore=!0),!n.hasAtSign&&i<t.length-4&&(n.hasAtSign="A"===t.charAt(i+1)&&"T"===t.charAt(i+2)&&"_"===t.charAt(i+3),n.hasAtSign&&(i+=2));break;case"A":n.hasForwardSlash&&n.hasHttp&&!n.hasSecurityAccessTokenConcern&&(i<t.length-14&&(n.hasSecurityAccessTokenConcern=p(t,"WSACCESSKEYID",i+1),n.hasSecurityAccessTokenConcern&&(i+=12)),!n.hasSecurityAccessTokenConcern&&i<t.length-12&&(n.hasSecurityAccessTokenConcern=p(t,"CCESS_TOKEN",i+1),n.hasSecurityAccessTokenConcern&&(i+=10)));break;case"D":n.hasForwardSlash&&n.hasHttp&&r&&!n.hasFileSharingConcern&&i<t.length-12&&(n.hasFileSharingConcern=p(t,"ROPBOX.COM/",i+1),n.hasFileSharingConcern&&(i+=10));break;case"F":!n.hasFileUrl&&i<t.length-7&&(n.hasFileUrl=p(t,"ILE://",i+1),n.hasFileUrl&&(i+=5));break;case"%":n.hasPercentage||(n.hasPercentage=!0),!n.hasAtSign&&i<t.length-3&&(n.hasAtSign="4"===t.charAt(i+1)&&"0"===t.charAt(i+2),n.hasAtSign&&(i+=1));break;case"M":!n.hasFormatChars&&i<t.length-12&&(n.hasFormatChars=p(t,"IME-VERSION",i+1),n.hasFormatChars&&(i+=10));break;case"H":!n.hasHttp&&i<t.length-8&&(n.hasHttp=p(t,"TTP://",i+1)||p(t,"TTPS://",i+1),n.hasHttp&&(i+=5));break;case"S":n.hasForwardSlash&&n.hasHttp&&!n.hasSecuritySignatureConcern&&i<t.length-9&&(n.hasSecuritySignatureConcern=p(t,"IGNATURE",i+1),n.hasSecuritySignatureConcern&&(i+=7))}}return n}(u);if(!h.hasAlphabets)return c;(h.hasForwardSlash&&i&&r&&(h.hasHttp||h.hasFileUrl)&&c.push({Concern:18,EventName:e,BaseType:t,FieldName:s}),h.hasFileUrl&&r&&c.push({Concern:8,EventName:e,BaseType:t,FieldName:s}),h.hasFileSharingConcern&&c.push({Concern:8,EventName:e,BaseType:t,FieldName:s}),h.hasSecurityAccessTokenConcern&&c.push({Concern:22,EventName:e,BaseType:t,FieldName:s}),h.hasSecuritySignatureConcern&&c.push({Concern:23,EventName:e,BaseType:t,FieldName:s}),h.hasBackslash)&&((d=function(e,n,t,r){var i=r.match(Ui);if(!i)return null;var o=[],a=i[0];a.length>4&&-1===a.search(/:\\U00/)&&-1===a.search(/(\\)+SOFTWARE(\\)+MICROSOFT(\\)+/)&&o.push({Concern:4,EventName:e,BaseType:n,FieldName:t});return o}(e,t,s,h.valueToCheck))&&(c=c.concat(d)));(h.hasFormatChars&&Li.test(h.valueToCheck)&&c.push({Concern:1,EventName:e,BaseType:t,FieldName:s}),h.hasDot)&&((d=function(e,n,t,r){var i=r.indexOf(".");for(;-1!==i&&r.length>i;){var o=r.indexOf(".",i+1),s=r.indexOf("_",i+1),u=r.length;o>0&&s>0?u=Math.min(s,o):o>0?u=o:s>0&&(u=s);var c=u-i;if(c>=3&&c<=5&&a.search(r.substring(i+1,i+c)))return{Concern:7,EventName:e,BaseType:n,FieldName:t};i=o}return null}(e,t,s,h.valueToCheck))&&c.push(d));var g=!1;if(h.hasAtSign&&(h.hasDot||h.hasUnderscore||h.hasPercentage)&&(g=Fi.test(h.valueToCheck))){var y=h.valueToCheck.match(Fi)[0];g&&c.push({Concern:v(y),EventName:e,BaseType:t,FieldName:s})}var m=function(e,t,r,i){for(var o=[],a=!1,s=0;s<n.length;s++){var u=n[s],c=u.stringValue;if(c&&-1!==i.indexOf(c))o.push({Concern:u.concern,EventName:e,BaseType:t,FieldName:r});else{var f=u.stringIsolatedWord;if(f&&l(i,f))o.push({Concern:u.concern,EventName:e,BaseType:t,FieldName:r}),a=a||19===u.concern;else{var d=u.regexpValue;d&&d.test(i)&&o.push({Concern:u.concern,EventName:e,BaseType:t,FieldName:r})}}}return[o,a]}(e,t,s,h.valueToCheck);m[0]&&m[0].length>0&&(c=c.concat(m[0]));var C=m[1];if(!g){if(!C&&void 0!==o&&o.length>0){for(var T=!1,b=0;b<o.length;b++){if(l(u,o[b])){T=!0;break}}T&&c.push({Concern:21,EventName:e,BaseType:t,FieldName:s})}h.valueToCheck.length>10&&(ye(h.valueToCheck,"_SSPI")&&!ye(h.valueToCheck,"*_SSPI")||ye(h.valueToCheck,"_AD")&&!ye(h.valueToCheck,"*_AD"))&&c.push({Concern:v(h.valueToCheck),EventName:e,BaseType:t,FieldName:s})}return c}}))}return e.prototype.initialize=function(e){},e}(),Bi=function(e){function n(){var t=e.call(this)||this;t.identifier="PrivacyGuardPlugin",t.priority=499,t.version="3.2.11";var r,i,o,a,s,u,c,l,f,d,v,p=null,h=null,g=null;return j(n,t,(function(e,n){function t(e){(r=new Ri).initialize(e),e.notificationEventName&&_e(e.notificationEventName)&&(a=e.notificationEventName),e.summaryEventName&&_e(e.summaryEventName)&&(s=e.summaryEventName),e.iKey&&_e(e.iKey)&&(o=e.iKey),r.setEnabled(!1!==e.enabled),u=!1!==e.useEventFieldPrefix,c=!0===e.useAbsoluteFieldName}function y(e){return e?{PG_ConcernsNotified:l,PG_EventsIgnored:f,PG_EventsInspected:d,PG_FieldsInspected:v}:{ConcernsNotified:l,EventsIgnored:f,EventsInspected:d,FieldsInspected:v}}function m(){r=null,i=null,o=null,a="PrivacyConcern",s="PrivacyGuardSummary",u=!0,c=!1,l=0,f=0,d=0,v=0}function C(e){switch(e){case 0:return"None";case 6:return"FieldNameImpliesLocation";case 11:return"InternalEmailAddress";case 15:return"OutOfScopeIdentifier";case 14:return"MachineName";case 20:return"UserDomain";case 12:return"IPAddress";case 5:return"ExternalEmailAddress";case 21:return"UserName";case 19:return"UserAlias";case 4:return"Directory";case 18:return"Url";case 7:return"FileNameOrExtension";case 1:return"Content";case 8:return"FileSharingUrl";case 17:return"Security";case 22:return"AccessToken";case 23:return"Signature"}return"Missing String value for "+e}m(),e.initialize=function(r,o,a){n.initialize(r,o,a);var s=r.extensionConfig[e.identifier];s?(i=o,t(p||s),le(h)||e.setEnabled(h),le(g)||e.updateCommonContext(g)):(On(o.logger,1,73,"Configuration not provided, PrivacyGuard disabled."),n.setInitialized(!1))},e.reset=function(e){(p=e)&&t(p)},e.isEnabled=function(){return r&&r.isEnabled()},e.isPrivacyGuardEnabled=function(){return e.isEnabled()},e.setEnabled=function(e){return h=e,r&&r.setEnabled(e)},e.updateCommonContext=function(e){g=e,r&&r.updateCommonContext(g)},e.processTelemetry=function(n,t){Ln(i,(function(){return"PrivacyGuard:_processTelemetry"}),(function(){if(e.isEnabled()&&n.name!==a&&n.name!==s)if(n.data){var t;d++,_e(n.baseType)?t=n.baseType:n.data&&n.data.baseType&&_e(n.data.baseType)&&(t=n.data.baseType);var i=function n(t,i,o,a){if(!e.isEnabled())return[];var s=[];if(le(a))return s;return ge(a,(function(e,a){var u=e;c&&o&&o.length>0&&(u=o+"."+e),_e(a)?(v++,s=s.concat(r.getAllPrivacyConcerns(t,i,u,a))):a&&ve(a)&&(s=s.concat(n(t,i,u,a)))})),s}(n.name,t,"",n.data);i.length>0&&e.notifyConcerns(i)}else f++})),e.processNext(n,t)},e.sendSummaryEvent=function(e){var n={name:s,ext:{metadata:{privTags:33554432,privLevel:110}}};n.data=y(u),o&&(n.iKey=o),i.track(n),e&&(l=0,f=0,d=0,v=0)},e.notifyConcerns=function(e){for(var n=0,t=e;n<t.length;n++){var r=t[n],s={name:a,ext:{metadata:{privTags:33554432,privLevel:110}}};s.data=u?{PG_EventName:r.EventName,PG_FieldName:r.FieldName,PG_TypeAsText:C(r.Concern),PG_BaseType:r.BaseType}:{EventName:r.EventName,FieldName:r.FieldName,TypeAsText:C(r.Concern),BaseType:r.BaseType},o&&(s.iKey=o),i.track(s),l++}},e._doTeardown=function(e,n){m()},e.getStats=function(){return y(!1)}})),t}return Object(P.a)(n,e),n.prototype.initialize=function(e,n,t){},n}(ar);Oi=new Ai({oneDSSinkProps:{}||{},postMessage:function(e){self.postMessage(e)},onInit:function(e){var n,t,r,i=e.nonStandardEventHandlers||[],o=e.plugins||[];(null===(n=null==e?void 0:e.custom)||void 0===n?void 0:n.enableDNM)&&i.push(new hi({endpointUrl:vi.PUBLIC})),(null===(t=null==e?void 0:e.custom)||void 0===t?void 0:t.enableCustomerContent)&&i.push(new ki),e.nonStandardEventHandlers=i,(null===(r=null==e?void 0:e.custom)||void 0===r?void 0:r.enablePG)&&(o.push(new Bi),e.plugins=o)}}),self.addEventListener("message",Oi.handleMessage.bind(Oi)),Oi.postLoadedMessage()},,,,function(e,n,t){"use strict";t.d(n,"a",(function(){return a})),t.d(n,"b",(function(){return s}));var r=t(0),i=t(3),o=((Object(i.a)()||{}).Symbol,(Object(i.a)()||{}).Reflect,r.a,function(e,n){return(o=r.b.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var t in n)n[r.i](t)&&(e[t]=n[t])})(e,n)});function a(e,n){function t(){this.constructor=e}typeof n!==r.h&&null!==n&&Object(i.c)("Class extends value "+String(n)+" is not a constructor or null"),o(e,n),e[r.k]=null===n?Object(i.b)(n):(t[r.k]=n[r.k],new t)}function s(e,n){for(var t=0,r=n.length,i=e.length;t<r;t++,i++)e[i]=n[t];return e}}]);
//# sourceMappingURL=otelNext.worker.min.js.map