!function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=121)}({0:function(e,t,n){"use strict";n.d(t,"k",(function(){return l})),n.d(t,"D",(function(){return d})),n.d(t,"n",(function(){return f})),n.d(t,"o",(function(){return h})),n.d(t,"g",(function(){return p})),n.d(t,"j",(function(){return v})),n.d(t,"c",(function(){return g})),n.d(t,"C",(function(){return m})),n.d(t,"i",(function(){return y})),n.d(t,"s",(function(){return E})),n.d(t,"p",(function(){return T})),n.d(t,"t",(function(){return b})),n.d(t,"u",(function(){return _})),n.d(t,"B",(function(){return w})),n.d(t,"z",(function(){return I})),n.d(t,"a",(function(){return k})),n.d(t,"q",(function(){return N})),n.d(t,"f",(function(){return C})),n.d(t,"E",(function(){return A})),n.d(t,"h",(function(){return D})),n.d(t,"r",(function(){return M})),n.d(t,"F",(function(){return L})),n.d(t,"b",(function(){return P})),n.d(t,"d",(function(){return x})),n.d(t,"l",(function(){return B})),n.d(t,"G",(function(){return U})),n.d(t,"v",(function(){return F})),n.d(t,"A",(function(){return H})),n.d(t,"m",(function(){return V})),n.d(t,"w",(function(){return W})),n.d(t,"x",(function(){return q})),n.d(t,"y",(function(){return z})),n.d(t,"e",(function(){return X}));var r=n(2),i=n(1);function a(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */var e,t,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",i=n.toStringTag||"@@toStringTag";function s(n,r,i,a){var s=r&&r.prototype instanceof u?r:u,l=Object.create(s.prototype);return o(l,"_invoke",function(n,r,i){var a,o,s,u=0,l=i||[],d=!1,f={p:0,n:0,v:e,a:h,f:h.bind(e,4),d:function(t,n){return a=t,o=0,s=e,f.n=n,c}};function h(n,r){for(o=n,s=r,t=0;!d&&u&&!i&&t3?(i=p===r)&&(s=a[(o=a[4])?5:(o=3,3)],a[4]=a[5]=e):a[0]<=h&&((i=n<2&&hr||r>p)&&(a[4]=n,a[5]=r,f.n=p,o=0))}if(i||n>1)return c;throw d=!0,r}return function(i,l,p){if(u>1)throw TypeError("Generator is already running");for(d&&1===l&&h(l,p),o=l,s=p;(t=o<2?e:s)||!d;){a||(o?o<3?(o>1&&(f.n=-1),h(o,s)):f.n=s:f.v=s);try{if(u=2,a){if(o||(i="next"),t=a[i]){if(!(t=t.call(a,s)))throw TypeError("iterator result is not an object");if(!t.done)return t;s=t.value,o<2&&(o=0)}else 1===o&&(t=a.return)&&t.call(a),o<2&&(s=TypeError("The iterator does not provide a '"+i+"' method"),o=1);a=e}else if((t=(d=f.n<0)?s:n.call(r,f))!==c)break}catch(t){a=e,o=1,s=t}finally{u=1}}return{value:t,done:d}}}(n,i,a),!0),l}var c={};function u(){}function l(){}function d(){}t=Object.getPrototypeOf;var f=[][r]?t(t([][r]())):(o(t={},r,(function(){return this})),t),h=d.prototype=u.prototype=Object.create(f);function p(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,d):(e.__proto__=d,o(e,i,"GeneratorFunction")),e.prototype=Object.create(h),e}return l.prototype=d,o(h,"constructor",d),o(d,"constructor",l),l.displayName="GeneratorFunction",o(d,i,"GeneratorFunction"),o(h),o(h,i,"Generator"),o(h,r,(function(){return this})),o(h,"toString",(function(){return"[object Generator]"})),(a=function(){return{w:s,m:p}})()}function o(e,t,n,r){var i=Object.defineProperty;try{i({},"",{})}catch(e){i=0}(o=function(e,t,n,r){function a(t,n){o(e,t,(function(e){return this._invoke(t,n,e)}))}t?i?i(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(a("next",0),a("throw",1),a("return",2))})(e,t,n,r)}function s(e,t,n,r,i,a,o){try{var s=e[a](o),c=s.value}catch(e){return void n(e)}s.done?t(c):Promise.resolve(c).then(r,i)}function c(e){return function(){var t=this,n=arguments;return new Promise((function(r,i){var a=e.apply(t,n);function o(e){s(a,r,i,o,c,"next",e)}function c(e){s(a,r,i,o,c,"throw",e)}o(void 0)}))}}function u(e){return(u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function l(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2?arguments[2]:void 0,r=n?n.querySelector("#"+e):document.getElementById(e);if(r){var i=r.firstChild.nodeValue;return t&&r.parentNode.removeChild(r),i&&JSON.parse(i)}}var d=function(){var e={37:1,38:1,39:1,40:1};function t(e){var t=e||window.event;t.preventDefault&&t.preventDefault(),t.returnValue=!1}function n(n){if(e[n.keyCode])return t(n),!1}return{disableScroll:function(){window.addEventListener&&window.addEventListener("DOMMouseScroll",t,!1),window.onwheel=t,window.onmousewheel=document.onmousewheel=t,window.ontouchmove=t,document.onkeydown=n},enableScroll:function(){window.removeEventListener&&window.removeEventListener("DOMMouseScroll",t,!1),window.onmousewheel=document.onmousewheel=null,window.onwheel=null,window.ontouchmove=null,document.onkeydown=null}}}();function f(){var e=document.querySelector('meta[name="pageInstance"]');if(e){var t=e.getAttribute("content");if(t&&2===t.split(";").length){var n=t.split(";");return{pageUrn:n[0],trackingId:n[1]}}}return null}function h(){var e=document.querySelector('meta[name="pageKey"]');return e?e.getAttribute("content"):null}function p(){var e=document.querySelector('meta[name="appName"]');return e?e.getAttribute("content"):null}function v(e){var t=e.body,n=e.documentElement;return{height:Math.max(t.scrollHeight,t.offsetHeight,n.clientHeight,n.scrollHeight,n.offsetHeight),width:Math.max(t.scrollWidth,t.offsetWidth,n.clientWidth,n.scrollWidth,n.offsetWidth)}}function g(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],r=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];if("function"==typeof(t?CustomEvent:Event))return new(t?CustomEvent:Event)(e,{detail:t,bubbles:n,cancelable:r});var i=document.createEvent("Event");return i.initEvent(e,n,r),null!==t&&(i.detail=t),i}function m(e){if(!(!e instanceof Node)){e&&e.addEventListener("focusin",(function(t){window.requestAnimationFrame((function(){window.scrollBy(0,e.getBoundingClientRect().top-64)}))}))}}function y(e,t){return null===e?null:e.closest(t)}function E(e){return e instanceof Element}function T(){return document.defaultView.location.origin||location.protocol+"//"+location.hostname}function b(){var e=window.navigator.userAgent.toLowerCase(),t=/safari/.test(e),n=/iphone|ipod|ipad/.test(e),r=!0===window.navigator.standalone;return n&&!r&&!t}function _(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:window.navigator.userAgent,t=/Safari/.test(e)&&!/Chrome/.test(e),n=/Firefox/.test(e);return t||n}function w(e){E(e)&&b()&&(I(e),e.blur())}function I(e){e.hasAttribute("autofocus")&&e.removeAttribute("autofocus")}function k(e){var t=window.location.search;return Object(r.sanitizeUrl)(t?"".concat(e).concat(t):"".concat(e))}function N(e,t){var n=t,r=new RegExp("[?&]"+e+"=([^&#]*)","i").exec(n);return r?r[1]:null}function C(e){window.addEventListener("beforeunload",(function(){"function"==typeof e&&e()}))}function A(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=!0,r=["funCaptchaInternal"];return r.forEach((function(t){-1!==e.indexOf(t)&&(n=!1)})),-1!==e.indexOf("captchaV2Challenge")&&"GUEST_SCORING"===t.funCaptchaChallengeSource&&(n=!1),n}var S,R=/JSESSIONID="?([^";]+)"?/,O=Date.now();function D(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.cacheLifeSpan,n=void 0===t?1e4:t,r=e.regex,i=void 0===r?R:r;if(!S||Date.now()-O>n){var a=document.cookie.match(i);S=a&&a[1]||"",O=Date.now()}return S}function M(e){u(e)!==i.g.UNDEFINED&&null!==e&&e.classList.add(i.g.HIDDEN_CLASS)}function L(e){u(e)!==i.g.UNDEFINED&&null!==e&&e.classList.remove(i.g.HIDDEN_CLASS)}function P(e,t,n){u(e)!==i.g.UNDEFINED&&null!==e&&e.addEventListener(t,n)}function x(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];u(e)!==i.g.UNDEFINED&&null!==e&&(t?e.disabled=!0:e.removeAttribute("disabled"))}function B(){return l("funcaptchaChallengeSource")}function U(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"_self";b()&&Array.from(document.getElementsByTagName("a")).forEach((function(t){return"_blank"===t.getAttribute("target")&&t.setAttribute("target",e)}))}function F(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:navigator.userAgent,t=/.*(iPad|iPod|iPhone|Android|BB10|BlackBerry|IEMobile).*/;return!!e&&t.test(e)}function H(e){return JSON.parse(e.replace("","").trim())}function V(){var e=navigator.userAgent||navigator.vendor||window.opera;return/windows phone/i.test(e)?i.e.WINDOW_PHONE:/android/i.test(e)?i.e.ANDROID:/iPad|iPhone|iPod/.test(e)&&!window.MSStream?i.e.IOS:i.e.UNKNOWN}function K(){return"undefined"!=typeof window&&window&&"node"!==window.appEnvironment}function W(){var e,t;return K()&&(void 0!==(null===(e=window)||void 0===e||null===(e=e.webkit)||void 0===e||null===(e=e.messageHandlers)||void 0===e?void 0:e.jsMessenger)||void 0!==(null===(t=window)||void 0===t||null===(t=t.Android)||void 0===t?void 0:t.sendWebMessage))}function G(e){var t;return!(!K()||void 0===(null===(t=window)||void 0===t||null===(t=t.webkit)||void 0===t||null===(t=t.messageHandlers)||void 0===t?void 0:t.jsMessenger))&&(window.webkit.messageHandlers.jsMessenger.postMessage(e),!0)}function j(e){var t;return!(!K()||void 0===(null===(t=window)||void 0===t||null===(t=t.Android)||void 0===t?void 0:t.sendWebMessage))&&(window.Android.sendWebMessage(JSON.stringify(e)),!0)}function q(e){return G(e)||j(e)}function z(){var e={closeWebView:""};return G(e)||j(e)}function X(e){return J.apply(this,arguments)}function J(){return(J=c(a().m((function e(t){var n,r;return a().w((function(e){for(;;)switch(e.p=e.n){case 0:return e.p=0,e.n=1,fetch(t);case 1:if(200!==(n=e.v).status){e.n=3;break}return e.n=2,n.text();case 2:return r=e.v,e.a(2,r);case 3:throw new Error("Request failed with status ".concat(n.status));case 4:e.n=6;break;case 5:throw e.p=5,e.v;case 6:return e.a(2)}}),e,null,[[0,5]])})))).apply(this,arguments)}},1:function(e,t,n){"use strict";n.d(t,"i",(function(){return r})),n.d(t,"h",(function(){return i})),n.d(t,"e",(function(){return a})),n.d(t,"f",(function(){return o})),n.d(t,"c",(function(){return s})),n.d(t,"a",(function(){return c})),n.d(t,"b",(function(){return u})),n.d(t,"d",(function(){return l})),t.g={SIGN_IN:"SIGN_IN",JOIN_NOW:"JOIN_NOW",HIDDEN_CLASS:"hidden__imp",UNDEFINED:"undefined",LOCALE_EN_US:"en-US"};var r=Object.freeze({ONE_TAP:"one_tap",ONE_TAP_AUTO_LOGIN:"one-tap-auto-login",BUTTON:"button"}),i="soogleLoginRequestType",a=Object.freeze({ANDROID:"android",WINDOW_PHONE:"window_phone",IOS:"ios",UNKNOWN:"unknown"}),o={QR_LINK_INVALID:"QR_LINK_INVALID",PASSWORD_RESET:"PASSWORD_RESET",SETTINGS_CHANGE:"SETTINGS_CHANGE"},s={COMPLETED:"COMPLETED",CANCELLED:"CANCELLED"},c={DISPLAY:"DISPLAY"},u={EXPANDED:"expanded",COLLAPSED:"collapsed"},l="login:form:username"},11:function(e,t,n){"use strict";var r;n.d(t,"a",(function(){return O})),n.d(t,"b",(function(){return F}));var i=new Uint8Array(16);function a(){if(!r&&!(r="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto)))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return r(i)}var o=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;for(var s=function(e){return"string"==typeof e&&o.test(e)},c=[],u=0;u<256;++u)c.push((u+256).toString(16).substr(1));var l=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=(c[e[t+0]]+c[e[t+1]]+c[e[t+2]]+c[e[t+3]]+"-"+c[e[t+4]]+c[e[t+5]]+"-"+c[e[t+6]]+c[e[t+7]]+"-"+c[e[t+8]]+c[e[t+9]]+"-"+c[e[t+10]]+c[e[t+11]]+c[e[t+12]]+c[e[t+13]]+c[e[t+14]]+c[e[t+15]]).toLowerCase();if(!s(n))throw TypeError("Stringified UUID is invalid");return n};var d=function(e,t,n){var r=(e=e||{}).random||(e.rng||a)();if(r[6]=15&r[6]|64,r[8]=63&r[8]|128,t){n=n||0;for(var i=0;i<16;++i)t[n+i]=r[i];return t}return l(r)};const f="See https://go/pem/degradation-tracking-user-guide for instrumentation instructions",h="x-li-uuid",p="x-li-pop",v="x-msedge-ref",g="x-li-fabric",m="x-li-pem-resp-meta",y="content-type",E="x-cache";class T extends class{constructor(e,t){this._collectedFeatureMetrics=e,this._fireEventCallback=t}}{produceMetricEvent(e){this._collectedFeatureMetrics.flushMetrics().forEach(t=>{const n=[];t.featureCallCounts.forEach(e=>{n.push({featureProductName:e.featureMetricIdentifier.productName,featureKey:e.featureMetricIdentifier.featureKey,degradedDownstreamCallCount:0,totalDownstreamCallCount:e.totalApiCallCount,retriedDownstreamCallCount:e.retriedApiCallCount,retriedSuccessfulDownstreamCallsRatio:e.retriedSuccessfulCallsRatio,pointOfPresenceId:e.featureMetricIdentifier.pointOfPresenceId,responseErrorTypeV2:e.featureMetricIdentifier.responseErrorType,successfulDownstreamCallsRatio:e.successfulApiCallsRatio,metricKey:{featureProductName:e.featureMetricIdentifier.productName,featureKey:e.featureMetricIdentifier.featureKey,pointOfPresenceId:e.featureMetricIdentifier.pointOfPresenceId,responseErrorTypeV2:e.featureMetricIdentifier.responseErrorType,responseFabric:e.featureMetricIdentifier.responseFabric}})});const r={header:{},requestHeader:{},time:Date.now(),metrics:n};this._fireEventCallback("FeatureDegradationMetricEvent",r,t.pageInstance,e)})}}function b(e){return JSON.stringify(e,Object.keys(e).sort())}class _ extends class{constructor(e){this._featureCallCounts=new Map,this._pageInstance=e}get pageInstance(){return this._pageInstance}get featureCallCounts(){return this._featureCallCounts}}{trackSuccessfulFeatureApiCall(e){this.trackMetric(e,e=>{e.successfulApiCallsRatio+=1,e.totalApiCallCount++})}trackFailedFeatureApiCall(e,t){this.trackMetric(e,e=>{e.successfulApiCallsRatio+=t,e.totalApiCallCount++})}trackRetriedFeatureApiCall(e,t){this.trackMetric(e,e=>{e.retriedApiCallCount++,e.retriedSuccessfulCallsRatio+=t})}trackRetriedSuccessfulFeatureApiCall(e){this.trackMetric(e,e=>{e.successfulApiCallsRatio++,e.totalApiCallCount++})}changeRetriedMetricsToTotal(){this.featureCallCounts.forEach(e=>e.changeCallCountsFromRetriedToTotal())}trackMetric(e,t){const n=b(e);if(this.featureCallCounts.has(n))t(this.featureCallCounts.get(n));else{const r=new w(e);t(r),this.featureCallCounts.set(n,r)}}}class w extends class{constructor(e){this.featureMetricIdentifier=e}}{constructor(){super(...arguments),this.successfulApiCallsRatio=0,this.totalApiCallCount=0,this.retriedApiCallCount=0,this.retriedSuccessfulCallsRatio=0}mergeCallCounts(e){return this.successfulApiCallsRatio+=e.successfulApiCallsRatio,this.totalApiCallCount+=e.totalApiCallCount,this.retriedApiCallCount+=e.retriedApiCallCount,this.retriedSuccessfulCallsRatio+=e.retriedSuccessfulCallsRatio,this}changeCallCountsFromRetriedToTotal(){this.totalApiCallCount+=this.retriedApiCallCount,this.successfulApiCallsRatio+=this.retriedSuccessfulCallsRatio,this.retriedApiCallCount=0,this.retriedSuccessfulCallsRatio=0}}class I extends class{flushMetrics(){const e=[...this.metrics.values()];return this.metrics=new Map,e}}{constructor(){super(...arguments),this.metrics=new Map}incrementSuccessfulFeatureApiCall(e,t){this.incrementMetric(t,t=>t.trackSuccessfulFeatureApiCall(e))}incrementFailedFeatureApiCall(e,t,n=0){this.incrementMetric(t,t=>t.trackFailedFeatureApiCall(e,n))}incrementRetriedFeatureApiCall(e,t,n=0){this.incrementMetric(t,t=>t.trackRetriedFeatureApiCall(e,n))}incrementRetriedSuccessfulApiCall(e,t){this.incrementMetric(t,t=>t.trackRetriedSuccessfulFeatureApiCall(e))}mergeMetricsFrom(e){e.metrics.forEach((e,t)=>{const n=this.metrics.get(t);void 0!==n?e.featureCallCounts.forEach((e,r)=>{var i;let a=n.featureCallCounts.get(r);void 0!==a?a=a.mergeCallCounts(e):null===(i=this.metrics.get(t))||void 0===i||i.featureCallCounts.set(t,e)}):this.metrics.set(t,e)})}changeRetriedMetricsToTotal(){this.metrics.forEach(e=>e.changeRetriedMetricsToTotal())}incrementMetric(e,t){const n=b(e);if(this.metrics.has(n))t(this.metrics.get(n));else{const r=new _(e);t(r),this.metrics.set(n,r)}}}var k;!function(e){e.ProductName="productName",e.AdditionalDegradedResponseCodes="additionalDegradedResponseCodes",e.NonDegradedResponseCodes="nonDegradedResponseCodes",e.DegradationKeyOverrides="degradationKeyOverrides",e.ClientSensorGroupName="clientSensorGroupName",e.EnablePerformanceMeasurement="enablePerformanceMeasurement",e.CustomTrackingId="customTrackingId",e.DisableAvailabilityCalculation="disableAvailabilityCalculation",e.EnableSessionRecording="enableSessionRecording"}(k||(k={}));const N=new Set(Object.values(k));class C extends Error{constructor(e){super(e),Object.setPrototypeOf(this,C.prototype)}}function A(e){return 0===e.length||!e.trim()}function S(e){if("string"!=typeof e)throw new C(`The product name must be a string. ${f}.`);if(A(e))throw new C(`No product name was specified. Please configure a defaultProductName or specify it per instrumented API call. ${f}.`);if(/[^a-zA-Z0-9-_ \\/]/.test(e))throw new C(`Product name '${e}' can only contain alphanumeric, underscores (_), spaces ( ), dashes (-) and forward slashes (/). ${f}.`);return e}function R(e){if("string"!=typeof e)throw new C(`Keys must be strings. ${f}.`);if(A(e))throw new C(`Keys should not be blank. ${f}.`);if(/[^a-z0-9-]/.test(e))throw new C(`'${e}' can only contain lowercase alphanumeric characters and dashes (-). ${f}.`);return e}class O{constructor(e,t,n){var r,i,a;if(this._shouldEnablePerformanceMeasurement=!1,this._shouldDisableAvailabilityCalculation=!1,this._shouldRecordSession=!1,this._featureKey=R(e),this._defaultDegradationKey=R(t),!n)return this._additionalDegradedResponseCodes=[],this._nonDegradedResponseCodes=[],void(this._degradationKeyOverrides=[]);if("object"!=typeof n)throw new C(`DegradationTrackingMetadata options should be an object. ${f}.`);const o=n.productName;o&&(this._productName=S(o));const s=n.additionalDegradedResponseCodes,c=n.nonDegradedResponseCodes;!function(e,t){const n=(e,t)=>{if("number"!=typeof(n=e)||!isFinite(n)||Math.floor(n)!==n||e<=0||e>999)throw new C(`Please only specify positive integer response codes between 1 and 999 for the ${t} option. ${e} was specified. ${f}.`);var n;if(429===e||999===e)throw new C(`PEM does not consider 429 and 999 API responses indications of the real member experience because it represents LinkedIn throttling abusive requests. We drop 429s and 999s by default, so please remove them from your ${t} options.`);if(t===k.NonDegradedResponseCodes&&e>=400&&e<500)throw new C(`For server responses that have a status code, PEM does not consider 4xx as degraded. ${e} is not considered a degradation unless you explicitly add it to the ${k.AdditionalDegradedResponseCodes} option. Please remove ${e} from the ${k.NonDegradedResponseCodes} option. See https://go/pem/degradation-tracking-user-guide for instrumentation instructions.`)};if(void 0!==e&&!Array.isArray(e))throw new C(`Please specify an array of positive integer response codes between 1 and 999 for the response codes that shouldn't be counted as degraded for the ${k.NonDegradedResponseCodes} option. See https://go/pem/degradation-tracking-user-guide for instrumentation instructions.`);if(void 0!==t&&!Array.isArray(t))throw new C(`Please specify an array of positive integer response codes between 1 and 999 for the response codes that should only be considered as the degraded state(s) for the ${k.AdditionalDegradedResponseCodes} option. ${f}.`);null==e||e.forEach(e=>n(e,k.NonDegradedResponseCodes)),null==t||t.forEach(e=>n(e,k.AdditionalDegradedResponseCodes));const r=new Set(t),i=new Set(e);if([...r].some(e=>i.has(e)))throw new C(`Response codes can't be both degraded and non-degraded. Please ensure that your additionalDegradedResponseCodes and nonDegradedResponseCodes don't have any overlapping response codes. ${f}.`)}(c,s),this._nonDegradedResponseCodes=c||[],this._additionalDegradedResponseCodes=s||[],this._degradationKeyOverrides=n.degradationKeyOverrides||[],this._clientSensorGroupName=n.clientSensorGroupName,this._shouldEnablePerformanceMeasurement=null!==(r=n.enablePerformanceMeasurement)&&void 0!==r&&r,this._customTrackingId=n.customTrackingId,this._shouldDisableAvailabilityCalculation=null!==(i=n.disableAvailabilityCalculation)&&void 0!==i&&i,this._shouldRecordSession=null!==(a=n.enableSessionRecording)&&void 0!==a&&a,function(e){Object.keys(e).forEach(e=>{if(!N.has(e))throw new C(`An unsupported degradation tracking option '${e}' was provided. Please fix or remove it. See https://go/pem/degradation-tracking-user-guide for instrumentation instructions`)})}(n)}static isDegradationTrackingMetadata(e){return null!=e&&Object.getOwnPropertyNames(O.prototype).every(t=>Object.hasOwnProperty.call(Object.getPrototypeOf(e),t))}get featureKey(){return this._featureKey}get defaultDegradationKey(){return this._defaultDegradationKey}get degradationKey(){return this._defaultDegradationKey}get productName(){return this._productName}get additionalDegradedResponseCodes(){return this._additionalDegradedResponseCodes}get nonDegradedResponseCodes(){return this._nonDegradedResponseCodes}get degradationKeyOverrides(){return this._degradationKeyOverrides}get clientSensorGroupName(){return this._clientSensorGroupName}get shouldEnablePerformanceMeasurement(){return this._shouldEnablePerformanceMeasurement}get customTrackingId(){return this._customTrackingId}get shouldDisableAvailabilityCalculation(){return this._shouldDisableAvailabilityCalculation}get shouldRecordSession(){return this._shouldRecordSession}}class D{constructor(e){this._degradationTrackingMetadata=e,this._featureMetricStore=new I,this._lastRequestMetricStore=new I,this._requestsMade=0,this._trackingId=d()}static isRetryableDegradationTrackingMetadata(e){return null!=e&&Object.getOwnPropertyNames(D.prototype).every(t=>Object.hasOwnProperty.call(Object.getPrototypeOf(e),t))}get degradationTrackingMetadata(){return this._degradationTrackingMetadata}get featureMetricStore(){return this._featureMetricStore}get currentRequestSequenceId(){return this._requestsMade-1}get flowTrackingId(){return this._trackingId}get shouldDisableAvailabilityCalculation(){return this._degradationTrackingMetadata.shouldDisableAvailabilityCalculation}get featureKey(){return this._degradationTrackingMetadata.featureKey}get defaultDegradationKey(){return this._degradationTrackingMetadata.defaultDegradationKey}get productName(){return this._degradationTrackingMetadata.productName}get nonDegradedResponseCodes(){return new Set(this._degradationTrackingMetadata.nonDegradedResponseCodes)}get additionalDegradedResponseCodes(){return this._degradationTrackingMetadata.additionalDegradedResponseCodes}get degradationKeyOverrides(){return this._degradationTrackingMetadata.degradationKeyOverrides}get customTrackingId(){return this._degradationTrackingMetadata.customTrackingId}get clientSensorGroupName(){return this._degradationTrackingMetadata.clientSensorGroupName}get shouldEnablePerformanceMeasurement(){return this._degradationTrackingMetadata.shouldEnablePerformanceMeasurement}incrementRetriedFeatureApiCall(e,t,n=0){this._requestsMade++,this._featureMetricStore.mergeMetricsFrom(this._lastRequestMetricStore),this._lastRequestMetricStore.flushMetrics(),this._lastRequestMetricStore.incrementRetriedFeatureApiCall(e,t,n)}incrementRetriedSuccessfulApiCall(e,t){this._requestsMade++,this._featureMetricStore.mergeMetricsFrom(this._lastRequestMetricStore),this._lastRequestMetricStore.flushMetrics(),this._lastRequestMetricStore.incrementRetriedSuccessfulApiCall(e,t)}flushMetricStoreToServiceStore(e){this._lastRequestMetricStore.changeRetriedMetricsToTotal(),this._featureMetricStore.mergeMetricsFrom(this._lastRequestMetricStore),e.mergeMetricsFrom(this._featureMetricStore),this._featureMetricStore.flushMetrics(),this._lastRequestMetricStore.flushMetrics()}}function M(e,t){if(!e.includes("/"))return e;const n=function(e){const t=document.createElement("a");return t.href=e,t.pathname}(e).split("/").filter(e=>e.length);if(!t.length)return n.join("/");const r=[];for(let e=n.length-1;e>=0;e--){const i=n[e],a=t.indexOf(i);a>=0?t.splice(a,1):r.push(i)}return r.reverse().join("/")}class L extends O{static isFailureTrackingMetadata(e){return"object"==typeof e&&(null==e?void 0:e.constructor.name)===L.name}}class P{constructor(e,t){if(this._additionalDegradedResponseCodes=new Set,this._degradationKeyByResponseCode=new Map,this._shouldDisableAvailabilityCalculation=!1,this._shouldRecordSession=!1,this._retryableTrackingMetadata=null,!D.isRetryableDegradationTrackingMetadata(e)&&!O.isDegradationTrackingMetadata(e)&&!L.isFailureTrackingMetadata(e))throw new C("We encountered a bug where we forgot to provide the tracking metadata as an argument. Please report it to the #pem team.");if(!t)throw new C("We encountered a bug where we forgot to provide the product name as an argument. Please report it to the #pem team.");this._featureKey=e.featureKey,this._productName=t,this._clientSensorGroupName=e.clientSensorGroupName,this._defaultDegradationKey=e.defaultDegradationKey;let n=O.isDegradationTrackingMetadata(e)?e:void 0;D.isRetryableDegradationTrackingMetadata(e)&&(n=e.degradationTrackingMetadata,this._retryableTrackingMetadata=e),void 0!==n?(this._nonDegradedResponseCodes=new Set(n.nonDegradedResponseCodes),this._customTrackingId=n.customTrackingId,this._shouldDisableAvailabilityCalculation=n.shouldDisableAvailabilityCalculation,this._shouldRecordSession=n.shouldRecordSession,n.additionalDegradedResponseCodes.length&&(this.processAdditionalDegradedResponseCodes(e.additionalDegradedResponseCodes),this.initializeDegradationKeyOverrides(e.degradationKeyOverrides))):(this._nonDegradedResponseCodes=new Set(e.nonDegradedResponseCodes),this._customTrackingId=e.customTrackingId,this.processAdditionalDegradedResponseCodes(e.additionalDegradedResponseCodes),this.initializeDegradationKeyOverrides(e.degradationKeyOverrides))}getDegradationKey(e){return this._degradationKeyByResponseCode.has(e)?this._degradationKeyByResponseCode.get(e):this._defaultDegradationKey}get featureKey(){return this._featureKey}get productName(){return this._productName}get customTrackingId(){return this._customTrackingId}get clientSensorGroupName(){return this._clientSensorGroupName}get shouldDisableAvailabilityCalculation(){return this._shouldDisableAvailabilityCalculation}get shouldRecordSession(){return this._shouldRecordSession}get retryableTrackingMetadata(){return this._retryableTrackingMetadata}get retryMetricStore(){var e,t;return void 0!==(null===(e=this._retryableTrackingMetadata)||void 0===e?void 0:e.featureMetricStore)?null===(t=this._retryableTrackingMetadata)||void 0===t?void 0:t.featureMetricStore:null}isCountedAgainstAvailability(e,t){return null!==e&&(null==t||this.canResponseCodeCountAgainstAvailability(t))}canResponseCodeCountAgainstAvailability(e){if(this._degradationKeyByResponseCode.has(e))return!0;if(this._additionalDegradedResponseCodes.has(e))return!0;const t=e>=400&&e<500,n=e>=300&&e<400,r=this._nonDegradedResponseCodes.has(e);return!n&&!t&&!r}shouldImpactAvailability(e,t,n){return(!e||"CLIENT_ABORTED"!==e)&&("BLOCKED_BY_CLIENT_PROXY"!==e&&(!(!(null==n?void 0:n.hasAnyLinkedInHeaders())&&t&&t>=400&&t<600)&&("TOO_MANY_REQUESTS"!==e&&"CLIENT_EXTENSION_ERROR"!==e)))}processAdditionalDegradedResponseCodes(e){e.forEach(e=>{if(this._nonDegradedResponseCodes.has(e))throw new C(`You attempted to specify ${e} as an additional degraded response code for the '${this.featureKey}' feature, however it is also specified in the non-degraded response codes for that feature. Please decide whether you want to consider ${e} responses a degraded state or not. ${f}.`);this._additionalDegradedResponseCodes.add(e)})}initializeDegradationKeyOverrides(e){e.forEach(e=>{if(!e.responseCodesToOverride||!e.degradationKey||!Array.isArray(e.responseCodesToOverride)||"string"!=typeof e.degradationKey)throw new C(`Degradation key overrides must consist of an array of responseCodesToOverride and a string degradationKey. ${f}.`);new Set(e.responseCodesToOverride).forEach(t=>{if(!this.canResponseCodeCountAgainstAvailability(t))throw new C(`A degradation key override was specified for ${t}, but that response code isn't considered degraded. Please add it to additionalDegradedResponseCodes if you want it to count against your availability.`);this._degradationKeyByResponseCode.set(t,e.degradationKey)})})}}class x{constructor(e){const t=new Map;let n=null;if(e instanceof Map)n=e;else if(e&&"object"==typeof e){n=new Map;for(const[t,r]of Object.entries(e))"string"==typeof t&&"string"==typeof r&&n.set(t,r)}null==n||n.forEach((e,n)=>{t.set(n.toLowerCase(),e)}),this._callTreeId=t.get(h)||null,this._pointOfPresenceId=t.get(p)||null,this._msEdgeRef=t.get(v)||null,this._fabric=t.get(g)||null,this._responseMetadata=t.get(m)||null,this._downstreamAvailability=function(e){if(null==e)return 1;const t=e.split(",");for(const e of t){const t=e.split("=",2);if(2===t.length&&"availability"===t[0]){const e=parseFloat(t[1]);if(e>=0&&e<=1)return e}}return 1}(this._responseMetadata),this._contentType=t.get(y)||null,this._cdnCacheMetadata=t.get(E)||null,this._rawHeaders=n||null}get callTreeId(){return this._callTreeId}get pointOfPresenceId(){return this._pointOfPresenceId}get microsoftEdgeReference(){return this._msEdgeRef}get fabric(){return this._fabric}get downstreamAvailability(){return this._downstreamAvailability}get contentType(){return this._contentType}get cdnCacheMetadata(){return this._cdnCacheMetadata}get responseMetadata(){return this._responseMetadata}hasAnyLinkedInHeaders(){return!!(this._fabric||this._pointOfPresenceId||this._msEdgeRef||this._callTreeId)}get rawHeaders(){return this._rawHeaders}}class B{constructor(e,t,n,r){this._responseCode=void 0!==e?e:null,this._parsedResponseHeaders=t?new x(t):new x,this._responseError=n||null,this._downstreamServiceErrorCode=r}get responseCode(){return this._responseCode}get parsedHeaders(){return this._parsedResponseHeaders}get responseError(){return this._responseError}set responseError(e){this._responseError=e}get downstreamServiceErrorCode(){return this._downstreamServiceErrorCode}set downstreamServiceErrorCode(e){this._downstreamServiceErrorCode=e}}const U="undefined"==typeof FastBoot;class F{constructor(e,t,n){this._featureMetricStore=new I,this._visibilityListener=()=>{"hidden"===document.visibilityState&&this._metricSender.produceMetricEvent(!0)},this._defaultProductName=e,this._fireEventCallback=t,this._jetErrorCallback=n,this._metricSender=new T(this._featureMetricStore,t),U&&(this._metricsInterval=window.setInterval(()=>this._metricSender.produceMetricEvent(),6e4),window.addEventListener("visibilitychange",this._visibilityListener))}trackFeatureDegradationsForFetch(e,t,n,r,i){let a,o=null;const s=new Map,c=this._createFailureProcessingMetadata(n);return t=this._getAndValidateUrlEntityIDs(t),r.then(e=>{o=e.status,e.headers.forEach((e,t)=>s.set(t.toLowerCase(),e)),(!1===e.ok||e.status<200||o>=300)&&(a=e)}).catch(e=>{throw a=e,e}).finally(()=>{this._trackResponse(e,o,t,c,i,s,a)})}trackFeatureDegradationsForJQueryAjax(e,t,n,r,i,a){const o=t.status,s=t.getAllResponseHeaders(),c=new Map;s&&s.trim().split(/[\r\n]+/).forEach(e=>{const t=e.split(": "),n=t.shift();if(n){const e=t.join(": ");c.set(n.toLowerCase(),e)}});const u=a?null:t,l=this._createFailureProcessingMetadata(r);n=this._getAndValidateUrlEntityIDs(n),this._trackResponse(e,o,n,l,i,c,u)}startRetryFlow(e){return F.startRetryFlow(e)}static startRetryFlow(e){return new D(e)}completeRetryFlow(e){if(!D.isRetryableDegradationTrackingMetadata(e))throw new C("retryFlowMetadata must be an instance of RetryableDegradationTrackingMetadata");e.flushMetricStoreToServiceStore(this._featureMetricStore)}_trackResponse(e,t,n,r,i,a,o){const s=new B(t,a,o),c=s.parsedHeaders,u=function(e){const t=e.responseError,n=e.parsedHeaders,r=e.responseCode;if(null!==r){if(429===r||999===r)return"TOO_MANY_REQUESTS";if(n&&!n.hasAnyLinkedInHeaders()&&r&&r>=400&&r<600)return"BLOCKED_BY_CLIENT_PROXY";if((i=r)>=400&&i<500)return function(e){return 429===e?"TOO_MANY_REQUESTS":"CLIENT_ERROR"}(r);if(function(e){return e>=500&&e<600}(r))return function(e){if(e){if(e.fabric)return"SERVER_ERROR";if(e.pointOfPresenceId)return"TRAFFIC_LI_POP_TO_DC_ERROR";if(e.microsoftEdgeReference)return"TRAFFIC_AFD_TO_LI_POP_ERROR"}return"SERVER_ERROR"}(n);if(function(e,t){return!!(e>=200&&e<300&&t&&t.downstreamAvailability<1)}(r,n))return"DOWNSTREAM_GRACEFUL_DEGRADATION"}var i,a;if(!t)return null;if(t instanceof Error){if("AbortError"===t.name)return"CLIENT_ABORTED";if(t instanceof TypeError&&(t.message.indexOf("Network request failed")>=0||t.message.indexOf("NetworkError when attempting to fetch resource")>=0||t.message.indexOf("Failed to fetch")>=0))return"NETWORK_ERROR";if(t instanceof TypeError&&t.message.includes("Network request timed out"))return"CLIENT_TIMEOUT";if(t.message.indexOf('Unexpected identifier "NotReadableError"')>=0)return"NOT_READABLE_ERROR";if(t instanceof RangeError&&(a=t).message.indexOf("Maximum call stack size exceeded")>=0&&a.stack&&a.stack.indexOf("eval at executeScript")>=0)return"CLIENT_EXTENSION_ERROR"}else{if("timeout"===t.statusText)return"CLIENT_TIMEOUT";if(0===t.status&&"abort"===t.statusText)return"CLIENT_ABORTED";if("readyState"in t&&0===t.readyState)return"NETWORK_ERROR"}return"UNCLASSIFIED"}(s),l=M(e,n),d=new Set,f=new Set;if(r.forEach(e=>{d.add(e.productName),f.add(e.featureKey);const n=null!==e.retryableTrackingMetadata&&null!==e.retryMetricStore;if(!e.shouldDisableAvailabilityCalculation&&e.shouldImpactAvailability(u))if(e.isCountedAgainstAvailability(u,t)){(n?e.retryableTrackingMetadata.incrementRetriedFeatureApiCall.bind(e.retryableTrackingMetadata):this._featureMetricStore.incrementFailedFeatureApiCall.bind(this._featureMetricStore))({featureKey:e.featureKey,productName:e.productName,pointOfPresenceId:c.pointOfPresenceId,responseErrorType:u,responseFabric:c.fabric},i,function(e,t){return"DOWNSTREAM_GRACEFUL_DEGRADATION"===e?t.downstreamAvailability:0}(u,c))}else{(n?e.retryableTrackingMetadata.incrementRetriedSuccessfulApiCall.bind(e.retryableTrackingMetadata):this._featureMetricStore.incrementSuccessfulFeatureApiCall.bind(this._featureMetricStore))({featureKey:e.featureKey,productName:e.productName,pointOfPresenceId:c.pointOfPresenceId,responseFabric:c.fabric},i)}}),u){this._reportErrorIfUnclassified(o,u,t,d,f);(function(e,t,n,r){if(!(null==e?void 0:e.trim())||!t||!Array.isArray(t))return[];const i=[],a=r.responseCode;return t.forEach(t=>{const o=t.getDegradationKey(a),s=t.shouldImpactAvailability(n)&&t.isCountedAgainstAvailability(n,a),c={endpointPath:e,degradationKey:o,responseErrorTypeV2:n,isCountedAgainstAvailability:s,downstreamServiceErrorCode:r.downstreamServiceErrorCode};a&&(c.responseCode=a);const u=r.parsedHeaders;u.callTreeId&&(c.responseCallTreeId=u.callTreeId),(null==u?void 0:u.pointOfPresenceId)&&(c.pointOfPresenceId=u.pointOfPresenceId),(null==u?void 0:u.microsoftEdgeReference)&&(c.microsoftEdgeReference=u.microsoftEdgeReference),(null==u?void 0:u.fabric)&&(c.fabric=u.fabric),D.isRetryableDegradationTrackingMetadata(t.retryableTrackingMetadata)&&(c.retryDetails={trackingId:t.retryableTrackingMetadata.flowTrackingId,sequenceId:t.retryableTrackingMetadata.currentRequestSequenceId}),i.push({header:{},requestHeader:{},productName:t.productName,featureKey:t.featureKey,failedDownstreamRequests:[c],customTrackingId:t.customTrackingId})}),i})(l,r,u,s).forEach(e=>{this._fireEventCallback("FeatureDegradeEvent",e,i)})}}_reportErrorIfUnclassified(e,t,n,r,i){var a;if((0===n||null==n)&&"UNCLASSIFIED"===t){const t=["pem-unclassified-error"];let n;r.forEach(e=>t.push("pem-product-"+e)),i.forEach(e=>t.push("pem-feature-"+e)),n=e instanceof Error?e:new Error("Could not classify jQuery response: "+JSON.stringify(e)),null===(a=this._jetErrorCallback)||void 0===a||a.call(this,n,t,!1)}}_createFailureProcessingMetadata(e){if(!e||!Array.isArray(e)||!e.length)throw new C(`Please specify a non-empty array of degradation tracking metadata. ${f}.`);const t=new Set;return e.map(e=>{if(!O.isDegradationTrackingMetadata(e)&&!D.isRetryableDegradationTrackingMetadata(e))throw new C(`Please use DegradationTrackingMetadata or RetryableDegradationTrackingMetadata to specify the degradations. ${f}.`);const n=S(e.productName||this._defaultProductName),r=`${n}!!${e.featureKey}`;if(t.has(r))throw new C("More than one degradation tracking metadata has the same productName/featureKey combination. Please merge them together");return t.add(r),new P(e,n)})}_getAndValidateUrlEntityIDs(e){if(!Array.isArray(e))throw new C(`Please specify the queried IDs to remove from the request URL, or use an empty array if there are none. ${f}.`);return e}}},121:function(e,t,n){"use strict";n.r(t);n(69),n(78);var r,i,a=["transporterKeys"],o=["breadcrumb"],s=["$type"],c=["requestStart"],u=["requestTime","viewNames","requestType","requestTag"],l=["requestStart"],d=["requestStart"],f=["requestTime","viewNames","requestType"];function h(e,t,n){if(g())return Reflect.construct.apply(null,arguments);var r=[null];r.push.apply(r,t);var i=new(e.bind.apply(e,r));return n&&E(i,n.prototype),i}function p(e,t,n){return t=m(t),function(e,t){if(t&&("object"===A(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return v(e)}(e,g()?Reflect.construct(t,n||[],m(e).constructor):t.apply(e,n))}function v(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function g(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(g=function(){return!!e})()}function m(e){return(m=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function y(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&E(e,t)}function E(e,t){return(E=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function T(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,a,o,s=[],c=!0,u=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(e){u=!0,i=e}finally{try{if(!c&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(u)throw i}}return s}}(e,t)||N(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function b(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function _(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function I(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=N(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,o=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return o=e.done,e},e:function(e){s=!0,a=e},f:function(){try{o||null==n.return||n.return()}finally{if(s)throw a}}}}function k(e){return function(e){if(Array.isArray(e))return C(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||N(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function N(e,t){if(e){if("string"==typeof e)return C(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?C(e,t):void 0}}function C(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n=0;--a){var o=this.tryEntries[a],s=o.completion;if("root"===o.tryLoc)return i("end");if(o.tryLoc<=this.prev){var c=r.call(o,"catchLoc"),u=r.call(o,"finallyLoc");if(c&&u){if(this.prev=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),S(n),v}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var i=r.arg;S(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(t,n,r){return this.delegate={iterator:O(t),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=e),v}},t}function P(e,t,n,r,i,a,o){try{var s=e[a](o),c=s.value}catch(e){return void n(e)}s.done?t(c):Promise.resolve(c).then(r,i)}function x(e){return function(){var t=this,n=arguments;return new Promise((function(r,i){var a=e.apply(t,n);function o(e){P(a,r,i,o,s,"next",e)}function s(e){P(a,r,i,o,s,"throw",e)}o(void 0)}))}}var B,U="unknown",F=new Uint8Array(16);function H(){if(!B&&!(B="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return B(F)}var V=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;function K(e){return"string"==typeof e&&V.test(e)}for(var W=[],G=0;G<256;++G)W.push((G+256).toString(16).slice(1));function j(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return(W[e[t+0]]+W[e[t+1]]+W[e[t+2]]+W[e[t+3]]+"-"+W[e[t+4]]+W[e[t+5]]+"-"+W[e[t+6]]+W[e[t+7]]+"-"+W[e[t+8]]+W[e[t+9]]+"-"+W[e[t+10]]+W[e[t+11]]+W[e[t+12]]+W[e[t+13]]+W[e[t+14]]+W[e[t+15]]).toLowerCase()}function q(e){if(!K(e))throw TypeError("Invalid UUID");var t,n=new Uint8Array(16);return n[0]=(t=parseInt(e.slice(0,8),16))>>>24,n[1]=t>>>16&255,n[2]=t>>>8&255,n[3]=255&t,n[4]=(t=parseInt(e.slice(9,13),16))>>>8,n[5]=255&t,n[6]=(t=parseInt(e.slice(14,18),16))>>>8,n[7]=255&t,n[8]=(t=parseInt(e.slice(19,23),16))>>>8,n[9]=255&t,n[10]=(t=parseInt(e.slice(24,36),16))/1099511627776&255,n[11]=t/4294967296&255,n[12]=t>>>24&255,n[13]=t>>>16&255,n[14]=t>>>8&255,n[15]=255&t,n}function z(e,t,n){function r(e,r,i,a){var o;if("string"==typeof e&&(e=function(e){e=unescape(encodeURIComponent(e));for(var t=[],n=0;n>>9<<4)+1}function J(e,t){var n=(65535&e)+(65535&t);return(e>>16)+(t>>16)+(n>>16)<<16|65535&n}function Y(e,t,n,r,i,a){return J((o=J(J(t,e),J(r,a)))<<(s=i)|o>>>32-s,n);var o,s}function Q(e,t,n,r,i,a,o){return Y(t&n|~t&r,e,t,i,a,o)}function Z(e,t,n,r,i,a,o){return Y(t&r|n&~r,e,t,i,a,o)}function $(e,t,n,r,i,a,o){return Y(t^n^r,e,t,i,a,o)}function ee(e,t,n,r,i,a,o){return Y(n^(t|~r),e,t,i,a,o)}z("v3",48,(function(e){if("string"==typeof e){var t=unescape(encodeURIComponent(e));e=new Uint8Array(t.length);for(var n=0;n>5]>>>i%32&255,o=parseInt(r.charAt(a>>>4&15)+r.charAt(15&a),16);t.push(o)}return t}(function(e,t){e[t>>5]|=128<>5]|=(255&e[r/8])<>>32-t}z("v5",80,(function(e){var t=[1518500249,1859775393,2400959708,3395469782],n=[1732584193,4023233417,2562383102,271733878,3285377520];if("string"==typeof e){var r=unescape(encodeURIComponent(e));e=[];for(var i=0;i>>0;E=y,y=m,m=ie(g,30)>>>0,g=v,v=_}n[0]=n[0]+v>>>0,n[1]=n[1]+g>>>0,n[2]=n[2]+m>>>0,n[3]=n[3]+y>>>0,n[4]=n[4]+E>>>0}return[n[0]>>24&255,n[0]>>16&255,n[0]>>8&255,255&n[0],n[1]>>24&255,n[1]>>16&255,n[1]>>8&255,255&n[1],n[2]>>24&255,n[2]>>16&255,n[2]>>8&255,255&n[2],n[3]>>24&255,n[3]>>16&255,n[3]>>8&255,255&n[3],n[4]>>24&255,n[4]>>16&255,n[4]>>8&255,255&n[4]]}));var ae=Uint8Array,oe=Uint16Array,se=Int32Array,ce=new ae([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0]),ue=new ae([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0]),le=new ae([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),de=function(e,t){for(var n=new oe(31),r=0;r<31;++r)n[r]=t+=1<>1|(21845&me)<<1;ye=(61680&(ye=(52428&ye)>>2|(13107&ye)<<2))>>4|(3855&ye)<<4,ge[me]=((65280&ye)>>8|(255&ye)<<8)>>1}var Ee=function(e,t,n){for(var r=e.length,i=0,a=new oe(t);i>c]=u}else for(o=new oe(r),i=0;i>15-e[i]);return o},Te=new ae(288);for(me=0;me<144;++me)Te[me]=8;for(me=144;me<256;++me)Te[me]=9;for(me=256;me<280;++me)Te[me]=7;for(me=280;me<288;++me)Te[me]=8;var be=new ae(32);for(me=0;me<32;++me)be[me]=5;var _e=Ee(Te,9,0),we=Ee(be,5,0),Ie=function(e){return(e+7)/8|0},ke=function(e,t,n){n<<=7&t;var r=t/8|0;e[r]|=n,e[r+1]|=n>>8},Ne=function(e,t,n){n<<=7&t;var r=t/8|0;e[r]|=n,e[r+1]|=n>>8,e[r+2]|=n>>16},Ce=function(e,t){for(var n=[],r=0;rf&&(f=a[r].s);var h=new oe(f+1),p=Ae(n[l-1],h,0);if(p>t){r=0;var v=0,g=p-t,m=1<t))break;v+=m-(1<>=g;v>0;){var E=a[r].s;h[E]=0&&v;--r){var T=a[r].s;h[T]==t&&(--h[T],++v)}p=t}return{t:new ae(h),l:p}},Ae=function e(t,n,r){return-1==t.s?Math.max(e(t.l,n,r+1),e(t.r,n,r+1)):n[t.s]=r},Se=function(e){for(var t=e.length;t&&!e[--t];);for(var n=new oe(++t),r=0,i=e[0],a=1,o=function(e){n[r++]=e},s=1;s<=t;++s)if(e[s]==i&&s!=t)++a;else{if(!i&&a>2){for(;a>138;a-=138)o(32754);a>2&&(o(a>10?a-11<<5|28690:a-3<<5|12305),a=0)}else if(a>3){for(o(i),--a;a>6;a-=6)o(8304);a>2&&(o(a-3<<5|8208),a=0)}for(;a--;)o(i);a=1,i=e[s]}return{c:n.subarray(0,r),n:t}},Re=function(e,t){for(var n=0,r=0;r>8,e[i+2]=255^e[i],e[i+3]=255^e[i+1];for(var a=0;a4&&!N[le[A-1]];--A);var S,R,O,D,M=u+5<<3,L=Re(i,Te)+Re(a,be)+o,P=Re(i,f)+Re(a,v)+o+14+3*A+Re(w,N)+2*w[16]+3*w[17]+7*w[18];if(c>=0&&M<=L&&M<=P)return Oe(t,l,e.subarray(c,c+u));if(ke(t,l,1+(P15&&(ke(t,l,F[I]>>5&127),l+=F[I]>>12)}}}else S=_e,R=Te,O=we,D=be;for(I=0;I255){Ne(t,l,S[257+(H=V>>18&31)]),l+=R[H+257],H>7&&(ke(t,l,V>>23&31),l+=ce[H]);var K=31&V;Ne(t,l,O[K]),l+=D[K],K>3&&(Ne(t,l,V>>5&8191),l+=ue[K])}else Ne(t,l,S[V]),l+=R[V]}return Ne(t,l,S[256]),l+R[256]},Me=new se([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),Le=new ae(0),Pe=function(){for(var e=new Int32Array(256),t=0;t<256;++t){for(var n=t,r=9;--r;)n=(1&n&&-306674912)^n>>>1;e[t]=n}return e}(),xe=function(e,t,n,r,i){if(!i&&(i={l:1},t.dictionary)){var a=t.dictionary.subarray(-32768),o=new ae(a.length+e.length);o.set(a),o.set(e,a.length),e=o,i.w=a.length}return function(e,t,n,r,i,a){var o=a.z||e.length,s=new ae(r+o+5*(1+Math.ceil(o/7e3))+i),c=s.subarray(r,s.length-i),u=a.l,l=7&(a.r||0);if(t){l&&(c[0]=a.r>>3);for(var d=Me[t-1],f=d>>13,h=8191&d,p=(1<7e3||N>24576)&&(D>423||!u)){l=De(e,c,0,T,b,_,I,N,A,k-A,l),N=w=I=0,A=k;for(var M=0;M<286;++M)b[M]=0;for(M=0;M<30;++M)_[M]=0}var L=2,P=0,x=h,B=R-O&32767;if(D>2&&S==E(k-B))for(var U=Math.min(f,D)-1,F=Math.min(32767,k),H=Math.min(258,D);B<=F&&--x&&R!=O;){if(e[k+L]==e[k+L-B]){for(var V=0;VL){if(L=V,P=B,V>U)break;var K=Math.min(B,V-2),W=0;for(M=0;MW&&(W=j,O=G)}}}B+=(R=O)-(O=v[R])&32767}if(P){T[N++]=268435456|pe[L]<<18|ve[P];var q=31&pe[L],z=31&ve[P];I+=ce[q]+ue[z],++b[257+q],++_[z],C=k+L,++w}else T[N++]=e[k],++b[e[k]]}}for(k=Math.max(k,C);k=o&&(c[l/8|0]=u,X=o),l=Oe(c,l+1,e.subarray(k,X))}a.i=o}return function(e,t,n){return(null==t||t<0)&&(t=0),(null==n||n>e.length)&&(n=e.length),new ae(e.subarray(t,n))}(s,0,r+Ie(l)+i)}(e,null==t.level?6:t.level,null==t.mem?i.l?Math.ceil(1.5*Math.max(8,Math.min(13,Math.log(e.length)))):20:12+t.mem,n,r,i)},Be=function(e,t,n){for(;n;++t)e[t]=n,n>>>=8},Ue="undefined"!=typeof TextDecoder&&new TextDecoder;try{Ue.decode(Le,{stream:!0})}catch(Eo){}function Fe(){return"undefined"!=typeof window&&"function"==typeof window.fetch}function He(){try{return Fe()&&"keepalive"in new Request("")}catch(e){return!1}}function Ve(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if("undefined"!=typeof window&&void 0!==window.XMLHttpRequest){var r=new XMLHttpRequest;if(r.open("POST",e,!0),r.withCredentials=!0,n.headers)for(var i=0,a=Object.keys(n.headers);i>>8;e=n},d:function(){return~e}}}(),r=e.length;n.p(e);var i=xe(e,t,function(e){return 10+(e.filename?e.filename.length+1:0)}(t),8),a=i.length;return function(e,t){var n=t.filename;if(e[0]=31,e[1]=139,e[2]=8,e[8]=t.level<2?4:9==t.level?2:0,e[9]=3,0!=t.mtime&&Be(e,4,Math.floor(new Date(t.mtime||Date.now())/1e3)),n){e[3]=8;for(var r=0;r<=n.length;++r)e[r+10]=n.charCodeAt(r)}}(i,t),Be(i,a-8,n.d()),Be(i,a-4,r),i}((new TextEncoder).encode(t)),r["content-encoding"]="gzip"}catch(e){}return{body:a,keepalive:n,credentials:"include",headers:r,method:"POST",mode:"cors"}}function Qe(e){return e&&"message"in e?e.message:"UNKNOWN_ERROR"}var Ze,$e="undefined"!=typeof navigator&&"sendBeacon"in navigator,et=He()?function(e,t,n,r){return new Promise((function(i){fetch(e,Ye({body:t,keepalive:!0,headers:n,compress:r})).then((function(e){return e}),x(L().mark((function i(){return L().wrap((function(i){for(;;)switch(i.prev=i.next){case 0:return i.next=2,fetch(e,Ye({body:t,keepalive:!1,headers:n,compress:r}));case 2:return i.abrupt("return",i.sent);case 3:case"end":return i.stop()}}),i)})))).then(function(){var e=x(L().mark((function e(t){return L().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!t.ok){e.next=8;break}return e.t0=i,e.next=4,je(t);case 4:e.t1=e.sent,(0,e.t0)(e.t1),e.next=13;break;case 8:return e.t2=i,e.next=11,ze(t);case 11:e.t3=e.sent,(0,e.t2)(e.t3);case 13:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),(function(e){return i(Je(e))}))}))}:function(e,t,n,r){return new Promise((function(i){if($e){var a=!1;try{a=navigator.sendBeacon(e,t)}catch(e){}if(a)return void i({type:"unknown",drop:!1})}fetch(e,Ye({body:t,keepalive:!1,headers:n,compress:r})).then(function(){var e=x(L().mark((function e(t){return L().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!t.ok){e.next=8;break}return e.t0=i,e.next=4,je(t);case 4:e.t1=e.sent,(0,e.t0)(e.t1),e.next=13;break;case 8:return e.t2=i,e.next=11,ze(t);case 11:e.t3=e.sent,(0,e.t2)(e.t3);case 13:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),(function(e){return i(Je(e))}))}))};function tt(e){return new Promise((function(t,n){e.oncomplete=e.onsuccess=function(){return t(e.result)},e.onabort=e.onerror=function(){return n(e.error)}}))}function nt(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"key",r=arguments.length>3?arguments[3]:void 0,i=indexedDB.open(e);i.onupgradeneeded=function(){try{i.result.createObjectStore(t,{keyPath:n})}catch(e){null==r||r.onError(e)}};var a=new Promise((function(e,t){i.onsuccess=function(){var t=i.result;t.onversionchange=function(){return t.close()},e(t),null==r||r.onSuccess()},i.onerror=function(){t(i.error),null==r||r.onError(i.error)}}));return function(e,n){return a.then((function(r){return n(r.transaction(t,e).objectStore(t))}))}}function rt(){return Ze||(Ze=nt("idb-queue","default")),Ze}function it(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{maxNumber:1e3,batchEvictionNumber:300},n=0,r=null;return e.openKeyCursor().onsuccess=function(){var i=this.result;i&&n++1&&void 0!==arguments[1]?arguments[1]:{maxNumber:1e3,batchEvictionNumber:300},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:rt();return n("readwrite",(function(n){return n.put(e),tt(n.count()).then((function(e){if(!(e<=t.maxNumber))return it(n,t)}))})).catch((function(e){if(e&&"QuotaExceededError"===e.name)return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{maxNumber:1e3,batchEvictionNumber:300};return(arguments.length>1&&void 0!==arguments[1]?arguments[1]:rt())("readwrite",(function(t){return it(t,e)}))}(t,n)}))}function st(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{maxNumber:1e3,batchEvictionNumber:300},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:rt();return at?Promise.resolve():ot(e,t,n)}function ct(e,t,n){return t("readonly",(function(t){var r=[];return t.openCursor(null,n).onsuccess=function(){var t=this.result;t&&(r.push(t.value),(e<0||r.length0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0,n=arguments.length>2?arguments[2]:void 0,r=arguments.length>3?arguments[3]:void 0;return!t||n<1||(e[t]=JSON.stringify({attempt:n,errorCode:r})),e}function lt(e){return new Promise((function(t){return setTimeout(t,e)}))}function dt(e){"undefined"!=typeof window&&window.__DEBUG_BEACON_TRANSPORTER&&console.error("[beacon-transporter] ",e())}function ft(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{timeRemaining:5,timeout:1e4};"undefined"==typeof requestIdleCallback?setTimeout(e,t.fallbackTimeout||10):function n(){requestIdleCallback((function(r){r.timeRemaining()>t.timeRemaining||r.didTimeout?e():n()}),{timeout:t.timeout})}()}var ht=function(){function e(t){var n=this,r=arguments.length>1&&void 0!==arguments[1]&&arguments[1];S(this,e),D(this,"config",void 0),D(this,"compress",void 0),D(this,"throttleControl",void 0),D(this,"withStore",void 0),D(this,"disablePersistence",!1),this.config=t,this.compress=r;var i,a,o,s=t.measureIDB;s&&performance.mark(s.createStartMark),this.withStore=nt(t.idbName,"beacons","timestamp",{onSuccess:function(){s&&performance.measure(s.createSuccessMeasure,s.createStartMark)},onError:function(){s&&performance.measure(s.createFailMeasure,s.createStartMark),n.disablePersistence=!0}}),this.throttleControl=(i=this.replayEntries.bind(this),a=t.throttleWait,o=0,{throttledFn:function(){var e=Date.now();e-o>a&&(i(),o=e)},resetThrottle:function(){o=0}})}var t,n,r,i,a;return O(e,[{key:"onNotify",value:function(){this.disablePersistence||this.throttleControl.throttledFn()}},{key:"push",value:function(e){var t=this;if(!this.disablePersistence){var n=function(){st(e,t.config,t.withStore).then((function(){t.throttleControl.resetThrottle()})).catch((function(){t.disablePersistence=!0,dt((function(){return"push failed"}))}))};this.config.useIdle?ft(n):n()}}},{key:"clear",value:function(){var e=this;return this.disablePersistence?Promise.resolve():function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:rt();return at=!0,e("readwrite",(function(e){return e.clear(),tt(e.transaction).finally((function(){return at=!1}))}))}(this.withStore).catch((function(){e.disablePersistence=!0,dt((function(){return"clear failed"}))}))}},{key:"peek",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;return this.disablePersistence?Promise.resolve([]):function(){return ct(arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,arguments.length>1&&void 0!==arguments[1]?arguments[1]:rt(),"next")}(t,this.withStore).catch((function(){return e.disablePersistence=!0,dt((function(){return"peek failed"})),[]}))}},{key:"peekBack",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;return this.disablePersistence?Promise.resolve([]):function(){return ct(arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,arguments.length>1&&void 0!==arguments[1]?arguments[1]:rt(),"prev")}(t,this.withStore).catch((function(){return e.disablePersistence=!0,dt((function(){return"peekBack failed"})),[]}))}},{key:"processRetryEntry",value:(a=x(L().mark((function e(t){var n,r,i,a,o,s,c;return L().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.url,r=t.headers,i=t.statusCode,a=t.attemptCount,o=t.body,this.config.onBeforeRetry&&void 0!==(s=this.config.onBeforeRetry(o,a))&&(o=s),e.next=5,et(n,o,ut(r,this.config.headerName,a,i),this.compress);case 5:if("unknown"!==(c=e.sent).type&&"success"!==c.type){e.next=11;break}return e.next=9,this.handleSuccessfulReplay(c,t);case 9:e.next=13;break;case 11:return e.next=13,this.handleFailedReplay(c,t);case 13:case"end":return e.stop()}}),e,this)}))),function(e){return a.apply(this,arguments)})},{key:"handleSuccessfulReplay",value:(i=x(L().mark((function e(t,n){var r,i,a,o;return L().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(a=n.body,o="success"===t.type||"unknown"===t.type?t.responseBody:void 0,!this.config.parseResponseForRetry||!o){e.next=8;break}return e.next=5,this.handlePartialFailureInReplay(t,n);case 5:if(!e.sent){e.next=8;break}return e.abrupt("return");case 8:null===(r=(i=this.config).onResult)||void 0===r||r.call(i,t,a),this.replayEntries();case 10:case"end":return e.stop()}}),e,this)}))),function(e,t){return i.apply(this,arguments)})},{key:"handleExceededAttemptLimit",value:function(e,t){var n,r,i=t.body;return t.attemptCount>=this.config.attemptLimit&&(e.drop=!0,null===(n=(r=this.config).onResult)||void 0===n||n.call(r,e,i),this.replayEntries(),!0)}},{key:"restoreEntryForRetry",value:(r=x(L().mark((function e(t,n,r){var i,a,o,s,c;return L().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return i=t.url,a=t.headers,o=t.timestamp,s=t.attemptCount,c={url:i,body:n,headers:a,statusCode:null!=r?r:t.statusCode,timestamp:o,attemptCount:s+1},e.next=4,st(c,this.config,this.withStore).catch((function(){}));case 4:case"end":return e.stop()}}),e,this)}))),function(e,t,n){return r.apply(this,arguments)})},{key:"handlePartialFailureInReplay",value:(n=x(L().mark((function e(t,n){var r,i,a,o,s;return L().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=n.body,i="success"===t.type||"unknown"===t.type?t.responseBody:void 0){e.next=4;break}return e.abrupt("return",!1);case 4:if(a="success"===t.type?t.responseHeaders:void 0,o=t.statusCode,e.prev=6,!(s=this.config.parseResponseForRetry(i,r,a,o))||!s.trim()){e.next=14;break}if(!this.handleExceededAttemptLimit(t,n)){e.next=11;break}return e.abrupt("return",!0);case 11:return e.next=13,this.restoreEntryForRetry(n,s,t.statusCode);case 13:return e.abrupt("return",!0);case 14:e.next=18;break;case 16:e.prev=16,e.t0=e.catch(6);case 18:return e.abrupt("return",!1);case 19:case"end":return e.stop()}}),e,this,[[6,16]])}))),function(e,t){return n.apply(this,arguments)})},{key:"handleFailedReplay",value:(t=x(L().mark((function e(t,n){var r,i,a,o,s;return L().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=n.body,!this.handleExceededAttemptLimit(t,n)){e.next=3;break}return e.abrupt("return");case 3:if(!("network"===t.type||void 0!==t.statusCode&&this.config.statusCodes.includes(t.statusCode))){e.next=10;break}return t.drop=!1,null===(i=(a=this.config).onResult)||void 0===i||i.call(a,t,r),e.next=8,this.restoreEntryForRetry(n,r,void 0);case 8:e.next=12;break;case 10:t.drop=!0,null===(o=(s=this.config).onResult)||void 0===o||o.call(s,t,r);case 12:case"end":return e.stop()}}),e,this)}))),function(e,n){return t.apply(this,arguments)})},{key:"replayEntries",value:function(){var e=this;if(!this.disablePersistence){var t=function(){(function(){return function(e,t,n){return t("readwrite",(function(t){var n=[];return t.openCursor(null,"next").onsuccess=function(){var t=this.result;t&&(n.push(t.value),t.delete(),(e<0||n.length0&&void 0!==arguments[0]?arguments[0]:1,arguments.length>1&&void 0!==arguments[1]?arguments[1]:rt())})(1,e.withStore).then(function(){var t=x(L().mark((function t(n){return L().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!(n.length>0)){t.next=3;break}return t.next=3,e.processRetryEntry(n[0]);case 3:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()).catch((function(t){e.disablePersistence=!0,t&&t.message&&dt((function(){return"Replay entry failed: ".concat(t.message)}))}))};this.config.useIdle?ft(t):t()}}}]),e}(),pt=function(){function e(){S(this,e)}return O(e,[{key:"onNotify",value:function(){}},{key:"push",value:function(){}},{key:"clear",value:function(){return Promise.resolve()}},{key:"peek",value:function(){return Promise.resolve([])}},{key:"peekBack",value:function(){return Promise.resolve([])}}]),e}(),vt=function(){function e(t,n){S(this,e),D(this,"queue",void 0),D(this,"beaconListeners",new Set),this.queue=e.hasSupport&&!n.disablePersistenceRetry?new ht(t,n.compress):new pt}return O(e,[{key:"pushToQueue",value:function(e){this.queue.push(e)}},{key:"notifyQueue",value:function(){this.queue.onNotify()}},{key:"clearQueue",value:function(){return this.beaconListeners.forEach((function(e){return e()})),this.queue.clear()}},{key:"peekQueue",value:function(e){return this.queue.peek(e)}},{key:"peekBackQueue",value:function(e){return this.queue.peekBack(e)}},{key:"onClear",value:function(e){this.beaconListeners.add(e)}},{key:"removeOnClear",value:function(e){this.beaconListeners.delete(e)}}]),e}();D(vt,"hasSupport","undefined"!=typeof globalThis&&!!globalThis.indexedDB);var gt="parseResponseForRetry exhausted retries",mt=[502,504],yt=[429,503],Et=function(){function e(t,n,r,i){var a=this,o=arguments.length>4&&void 0!==arguments[4]&&arguments[4],s=arguments.length>5?arguments[5]:void 0;S(this,e),D(this,"url",void 0),D(this,"body",void 0),D(this,"config",void 0),D(this,"persistenceConfig",void 0),D(this,"compress",void 0),D(this,"parseResponseForRetry",void 0),D(this,"timestamp",void 0),D(this,"isClearQueuePending",!1),D(this,"onClearCallback",void 0),this.url=t,this.body=n,this.config=r,this.persistenceConfig=i,this.compress=o,this.parseResponseForRetry=s,this.timestamp=Date.now(),this.onClearCallback=function(){return a.isClearQueuePending=!0}}var t,n,r;return O(e,[{key:"send",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.persistenceConfig.db.onClear(this.onClearCallback);var n=this.retryLimit;return this.retry((function(t){return et(e.url,e.body,t,e.compress)}),n,t).finally((function(){e.persistenceConfig.db.removeOnClear(e.onClearCallback)}))}},{key:"retryLimit",get:function(){return this.config.attemptLimit}},{key:"getAttemptCount",value:function(e){return this.retryLimit-e+1}},{key:"checkForPartialFailure",value:(r=x(L().mark((function e(t){var n,r,i,a;return L().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(this.parseResponseForRetry){e.next=2;break}return e.abrupt("return",null);case 2:if(n="success"===t.type||"unknown"===t.type?t.responseBody:void 0){e.next=5;break}return e.abrupt("return",null);case 5:return r="success"===t.type?t.responseHeaders:void 0,i=t.statusCode,e.prev=7,a=this.parseResponseForRetry(n,this.body,r,i),e.abrupt("return",(null==a?void 0:a.trim())||null);case 12:return e.prev=12,e.t0=e.catch(7),e.abrupt("return",null);case 15:case"end":return e.stop()}}),e,this,[[7,12]])}))),function(e){return r.apply(this,arguments)})},{key:"createPersistedResult",value:function(e,t,n){var r={type:"persisted",drop:!1,statusCode:e.statusCode};return this.persistenceConfig.db.pushToQueue({url:this.url,body:t,headers:n,statusCode:e.statusCode,timestamp:this.timestamp,attemptCount:1}),r}},{key:"shouldRetryInMemory",value:function(e,t){return e>0&&this.isRetryableError(t)}},{key:"handleCompleteSuccess",value:function(e){var t,n;this.isClearQueuePending||this.persistenceConfig.disabled||this.persistenceConfig.db.notifyQueue(),null===(t=(n=this.config).onIntermediateResult)||void 0===t||t.call(n,e,this.body)}},{key:"executeRetryDelay",value:(n=x(L().mark((function e(t,n){var r;return L().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=this.config.calculateRetryDelay(this.getAttemptCount(t),t),e.next=3,lt(r);case 3:return e.abrupt("return",{newRetryCount:t-1,newErrorCode:n.statusCode});case 4:case"end":return e.stop()}}),e,this)}))),function(e,t){return n.apply(this,arguments)})},{key:"retry",value:(t=x(L().mark((function e(t,n,r,i){var a,o,s,c,u,l,d,f=this;return L().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:a=n,o=t,s=i,c=this.retryLimit+1,u=L().mark((function e(){var t,n,i,c,u,l,d,h,p,v,g,m,y,E,T,b,_,w,I;return L().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=f.getAttemptCount(a)-1,e.next=3,o(ut(r,f.config.headerName,t,s));case 3:if((n=e.sent).drop=!1,"unknown"!==n.type&&"success"!==n.type){e.next=34;break}return e.next=8,f.checkForPartialFailure(n);case 8:if(!(i=e.sent)){e.next=30;break}if(c={type:"response",drop:!0,statusCode:n.statusCode,rawError:gt},!f.shouldPersist(a,c)){e.next=17;break}return d=f.createPersistedResult(n,i,r),null===(u=(l=f.config).onIntermediateResult)||void 0===u||u.call(l,d,i),e.abrupt("return",{v:d});case 17:if(!f.shouldRetryInMemory(a,n)){e.next=27;break}return o=function(e){return et(f.url,i,e,f.compress)},e.next=21,f.executeRetryDelay(a,n);case 21:return h=e.sent,a=h.newRetryCount,s=h.newErrorCode,e.abrupt("return",0);case 27:return n.drop=!0,null===(p=(v=f.config).onIntermediateResult)||void 0===p||p.call(v,n,f.body),e.abrupt("return",{v:n});case 30:return f.handleCompleteSuccess(n),e.abrupt("return",{v:n});case 34:if(g=n,!f.shouldPersist(a,g)){e.next=41;break}return E=f.createPersistedResult(n,f.body,r),null===(m=(y=f.config).onIntermediateResult)||void 0===m||m.call(y,E,f.body),e.abrupt("return",{v:E});case 41:if(!f.shouldRetryInMemory(a,n)){e.next=51;break}return null===(T=(b=f.config).onIntermediateResult)||void 0===T||T.call(b,n,f.body),e.next=45,f.executeRetryDelay(a,n);case 45:return _=e.sent,a=_.newRetryCount,s=_.newErrorCode,e.abrupt("return",0);case 51:return n.drop=!0,null===(w=(I=f.config).onIntermediateResult)||void 0===w||w.call(I,n,f.body),e.abrupt("return",{v:n});case 54:case"end":return e.stop()}}),e)})),d=0;case 6:if(!(d0&&void 0!==arguments[0]?arguments[0]:{},n=Boolean(t.compress),r=Object.assign({attemptLimit:0,statusCodes:mt,calculateRetryDelay:function(e,t){return 2e3*t}},t.inMemoryRetry);if(t.retryDB)e=t.retryDB;else{var i=Object.assign({idbName:"beacon-transporter",attemptLimit:3,statusCodes:yt,maxNumber:1e3,batchEvictionNumber:300,throttleWait:3e5},t.persistenceRetry);i.headerName=i.headerName||r.headerName,i.parseResponseForRetry=t.parseResponseForRetry,e=new vt(i,{compress:t.compress,disablePersistenceRetry:t.disablePersistenceRetry})}return{beacon:function(i,a,o){var s;return Fe()?new Et(i,a,r,{db:e,disabled:Boolean(t.disablePersistenceRetry),statusCodes:(null===(s=t.persistenceRetry)||void 0===s?void 0:s.statusCodes)||yt},n,t.parseResponseForRetry).send(o):Promise.resolve({type:"unknown",drop:!0})},database:e}}var bt="internal:hide",_t="internal:error";function wt(e,t,n){var r=e.get(t);r&&r.push(n)||e.set(t,[n])}function It(e,t,n){var r=e.get(t);r&&r.splice(r.indexOf(n)>>>0,1)}var kt,Nt,Ct=(kt=new Map,Nt=new Map,{on:function(e,t){wt(kt,e,t)},before:function(e,t){wt(Nt,e,t)},off:function(e,t){It(kt,e,t)},offBefore:function(e,t){It(Nt,e,t)},emit:function(e,t){(Nt.get(e)||[]).concat(kt.get(e)||[]).slice().map((function(e){e(t)}))},clear:function(){Nt.clear(),kt.clear()}});if("undefined"!=typeof document&&"undefined"!=typeof window){var At=function(e){"pagehide"!==e.type&&"hidden"!==document.visibilityState||Ct.emit(bt,e)};document.addEventListener("visibilitychange",At),window.addEventListener("pagehide",At)}var St="https://www.linkedin.com/",Rt="https://www.linkedin-ei.com/",Ot="voyager.web.tracking-enable-observability",Dt="enabled",Mt="high-priority",Lt="normal-priority",Pt=null;if(("undefined"==typeof crypto||!crypto.getRandomValues)&&"undefined"!=typeof require){var xt=("undefined"!=typeof FastBoot?FastBoot.require:require)("crypto");if(xt){var Bt=new Uint8Array(256),Ut=Bt.length;Pt={rng:function(){return Ut>Bt.length-16&&(xt.randomFillSync(Bt),Ut=0),Bt.slice(Ut,Ut+=16)}}}}"object"===("undefined"==typeof crypto?"undefined":A(crypto))&&crypto.randomUUID;function Ft(){return ne(Pt,new Array(16),0)}function Ht(e){return k(e).map((function(e){return String.fromCharCode(e)})).join("")}function Vt(){return Ht(Ft())}var Kt=/^[a-zA-Z0-9/+]+[=]+$/;function Wt(e){return"string"==typeof e&&!!e.match(Kt)}function Gt(){return function(e){for(var t,n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",r=[],i=0,a=e.length,o=a%3,s=a-o;i>>18&63)),r.push(n.charAt(t>>>12&63)),r.push(n.charAt(t>>>6&63)),r.push(n.charAt(63&t)),i+=3;switch(o){case 2:t=e[i]<<16,t|=e[i+1]<<8,r.push(n.charAt(t>>>18&63)),r.push(n.charAt(t>>>12&63)),r.push(n.charAt(t>>>6&63)),r.push("=");break;case 1:t=e[i]<<16,r.push(n.charAt(t>>>18&63)),r.push(n.charAt(t>>>12&63)),r.push("="),r.push("=")}return r.join("")}(Ft())}function jt(e,t){return{pageUrn:zt(e),trackingId:t||Gt()}}function qt(e,t){return"urn:li:control:".concat(e,"-").concat(t)}function zt(e){return"urn:li:page:".concat(e)}function Xt(e){var t=decodeURIComponent(e).split(";");if(t.length>1)return{pageUrn:t[0],trackingId:t[1]}}function Jt(e,t){return{pageInstance:t.assign({},e.pageInstance),pageKey:e.pageKey,applicationInstance:e.applicationInstance}}new RegExp("[?&]lipi=([^&#]*)"),new RegExp("[?&]licu=([^&#]*)");function Yt(e,t){return void 0!==t.allSettled?t.allSettled(e):function(e){return new Promise((function(t){var n=new Set,r=function(e){n.delete(e),0===n.size&&t()};0===e.length?t():e.map((function(e){return e.then((function(){return r(e)})).catch((function(){return r(e)}))}))}))}(e)}function Qt(e){var t=[];return e.forEach((function(e){return t.push(e)})),t}function Zt(e,t,n){if("undefined"!=typeof window&&window.indexedDB){var r,i="sequenceNumber";try{r=window.indexedDB.open(i)}catch(e){return Promise.resolve(null)}return new Promise((function(a,o){r.onupgradeneeded=function(){var e=r.result;e.objectStoreNames.contains(i)||e.createObjectStore(i,{autoIncrement:!0})},r.onsuccess=function(){var s=r.result,c=s.transaction(i,"readwrite"),u=c.objectStore(i),l=u.get(1);l.onsuccess=function(){var r=l.result;if(r){if("read"===e)return a(r);if("update"!==e)return a(null);var i,s=Object.assign({},r),c=!1,d=null!==(i=s.sequenceNumber)&&void 0!==i?i:0;if(void 0!==t&&t>d&&(s.sequenceNumber=t,c=!0),n&&Object.keys(n).forEach((function(e){var t,r=null!==(t=s[e])&&void 0!==t?t:0,i=n[e];i>r&&(s[e]=i,c=!0)})),c){var f=u.put(s,1);f.onsuccess=function(){return a(null)},f.onerror=function(){o(f.error)}}}else{var h={sequenceNumber:0};n&&Object.keys(n).forEach((function(e){h[e]=0}));var p=u.add(h);p.onsuccess=function(){return a(0)},p.onerror=function(){o(p.error)}}},l.onerror=function(){return s.close(),o(new Error("Error: get sequence number from indexedDB ".concat(String(l.error))))},c.oncomplete=function(){return s.close()}},r.onerror=function(){return a(null)}}))}return Promise.resolve(null)}function $t(){return"undefined"!=typeof navigator&&navigator.userAgent.toLowerCase().indexOf("firefox")>-1||!Fe()||"undefined"==typeof Promise}function en(e,t,n,r){var i=["core-web-tracking:".concat(e)];null==r||r.forEach((function(e){return i.push(e)})),Ct.emit(_t,{tags:i,reason:t instanceof Error?t:new Error("".concat(e,": ").concat(t)),responseHeaders:n})}function tn(e){try{var t=window.structuredClone;return t?t(e):JSON.parse(JSON.stringify(e))}catch(t){if(t instanceof TypeError&&t.message.includes("circular")||t instanceof DOMException&&"DataCloneError"===t.name)return ln(e,{removeUndefined:!0,removeNull:!0});throw t}}var nn=function(){function e(t){S(this,e),D(this,"heap",void 0),D(this,"comparator",void 0),this.comparator=t,this.heap=[]}return O(e,[{key:"heapsize",value:function(){return this.heap.length}},{key:"peak",value:function(){return this.heap[0]}},{key:"heapArray",get:function(){return this.heap}},{key:"heapClear",value:function(){var e=k(this.heap);return this.heap=[],e}},{key:"heappop",value:function(){var e=this.heap.length,t=[this.heap[e-1],this.heap[0]];this.heap[0]=t[0],this.heap[e-1]=t[1];for(var n=this.heap.pop(),r=0;2*r+10;){var n=Math.floor((t-1)/2);if(!this.comparator(this.heap[t],this.heap[n]))break;var r=[this.heap[n],this.heap[t]];this.heap[t]=r[0],this.heap[n]=r[1],t=n}}}]),e}();var rn=function(e){if(!sn(e))return[];for(var t=[],n=0,r=Object.keys(e);n0){var l,d=I(c);try{for(d.s();!(l=d.n()).done;){var f,h=l.value;t.includes(h)?(null!==(f=n[h])&&void 0!==f||(n[h]=[]),n[h].push(u)):r.push(u)}}catch(e){d.e(e)}finally{d.f()}}else r.push(u)}}catch(e){o.e(e)}finally{o.f()}return[n,r]};function on(e){return!(!e||"control"===e)}var sn=function(e){return e&&void 0!==e&&Object.keys(e).length>0},cn=function(e,t){return(e.endsWith("/")?e:"".concat(e,"/"))+(t.startsWith("/")?t.slice(1):t)};function un(e){try{var t=atob(e);return Uint8Array.from(t,(function(e){return e.charCodeAt(0)}))}catch(e){throw new Error("Invalid base64 string")}}function ln(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.processField,r=t.removeUndefined,i=void 0===r||r,a=t.removeNull,o=void 0===a||a,s=t.currentPath,c=void 0===s?"":s,u=t.filterArrayUndefined,l=void 0===u||u;if(null===e)return o?void 0:e;if(void 0===e)return i?void 0:e;if("object"!==A(e))return e;if(Array.isArray(e)){var d=e.map((function(e,n){var r=c?"".concat(c,".").concat(n):"".concat(n);return ln(e,_(_({},t),{},{currentPath:r}))}));return l?d.filter((function(e){return void 0!==e})):d}for(var f={},h=0,p=Object.entries(e);h-1,t=navigator.cookieEnabled,n=navigator.storage;return e&&He()&&t&&n}var gn=function(){function e(t){S(this,e),D(this,"host",void 0),this.host=t}return O(e,[{key:"checkAndEnablePersistentRetry",value:function(e,t){if("function"==typeof(null==e?void 0:e.shouldAnonymizeMemberId)&&!this.host.retryBeacon){var n=this.getRetryTreatment();this.host.retryConfig&&function(e,t,n,r,i){"control"!==r&&e.retryConfig&&vn()&&navigator.storage.estimate().then((function(a){if(!((a.quota||0)-(a.usage||0)>52428800))return function(e){var t=window.indexedDB.deleteDatabase(e);return new Promise((function(e,n){t.onsuccess=function(){return e()},t.onerror=function(){return n(t.error)}}))}(hn);var o,s,c=null!==(o=e.retryConfig.inMemory)&&void 0!==o?o:{attemptLimit:4,statusCodes:[502,504]},u=null!==(s=e.retryConfig.persist)&&void 0!==s?s:{attemptLimit:3,statusCodes:[429,503],maxNumber:1e3,batchEvictionNumber:300,throttleWait:3e5},l={compress:n,inMemoryRetry:{onIntermediateResult:null==i?void 0:i.onIntermediateResult,attemptLimit:c.attemptLimit,statusCodes:c.statusCodes,headerName:"x-li-retry-context",calculateRetryDelay:function(e){return pn(e)}},disablePersistenceRetry:e.retryConfig.disablePersistence,persistenceRetry:{onBeforeRetry:null==i?void 0:i.onBeforeRetry,onResult:null==i?void 0:i.onResult,idbName:hn,attemptLimit:u.attemptLimit,statusCodes:u.statusCodes,maxNumber:u.maxNumber,batchEvictionNumber:u.batchEvictionNumber,throttleWait:u.throttleWait,useIdle:!0,measureIDB:{createStartMark:"idb_open_start",createSuccessMeasure:"idb_open_success_phase",createFailMeasure:"idb_open_fail_phase"}}},d=Tt(l),f=d.beacon,h=d.database;return e.retryBeacon={shouldRetry:!0,beacon:f,database:h},"enabled"===r?(e.retryBeacon.shouldRetry=!1,!l.disablePersistenceRetry&&t.shouldAnonymizeMemberId()?h.peekQueue(1).then((function(e){if(Array.isArray(e)&&e[0]){var t=JSON.parse(e[0].body);if(Array.isArray(t)&&t.some((function(e){return!e.eventInfo.shouldAnonymizeMemberId})))return h.clearQueue()}}),(function(){return h.clearQueue()})).then((function(){e.retryBeacon.shouldRetry=!0})).catch((function(e){en("retry:idb",e)})):(e.retryBeacon.shouldRetry=!0,Promise.resolve())):void 0})).catch((function(e){en("retry:setup",e)}))}(this.host,e,this.shouldCompressPayload(),n,t)}}},{key:"clearPersistedEventsOnLogout",value:function(){var e=this.host.retryBeacon;if(e&&e.shouldRetry)return e.shouldRetry=!1,e.database.clearQueue().catch((function(e){en("retry:logout",e)}))}},{key:"sendPayload",value:function(e,t,n,r){var i,a=this.getRetryTreatment();He()&&"control"!==a&&null!==(i=this.host.retryBeacon)&&void 0!==i&&i.shouldRetry?this.sendPayloadWithRetry(e,t,n):this.sendPayloadFireForget(e,t,n,r)}},{key:"sendPayloadWithRetry",value:function(e,t,n){(!Array.isArray(t)||t.length>0)&&this.host.retryBeacon.beacon(e,JSON.stringify(t),n).catch((function(e){en("retry:beacon",e)}))}},{key:"sendPayloadFireForget",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=arguments.length>3?arguments[3]:void 0;(!Array.isArray(t)||t.length>0)&&($t()?(Ve(e,JSON.stringify(t),{headers:n}),null==r||r.onResult({statusCode:200,type:"success",drop:!1},t)):et(e,JSON.stringify(t),n,this.shouldCompressPayload()).then((function(e){null==r||r.onResult(e,t)}),(function(){})))}},{key:"getRetryTreatment",value:function(){var e,t,n;if(!this.host.retryConfig)return"control";var r=this.host.retryConfig.lixKey;return r?null!==(e=null===(t=(n=this.host).__getLixTreatment)||void 0===t?void 0:t.call(n,r))&&void 0!==e?e:"control":"enabled"}},{key:"shouldCompressPayload",value:function(){return!0!==this.host.disableCompression}},{key:"isBrowserPersistentRetryEnabled",value:function(){var e,t;return"control"!==this.getRetryTreatment()&&null!==(e=null===(t=this.host.retryBeacon)||void 0===t?void 0:t.shouldRetry)&&void 0!==e&&e&&vn()&&"undefined"!=typeof globalThis&&!!globalThis.indexedDB}}]),e}(),mn="undefined"!=typeof window&&"undefined"!=typeof document,yn=/JSESSIONID="?([^";]+)"?/,En="",Tn=0;function bn(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.cacheLifeSpan,n=void 0===t?1e4:t,r=e.regex,i=void 0===r?yn:r;if(!En||Date.now()-Tn>n){var a=mn&&document.cookie.match(i);En=a&&a[1]||"",Tn=Date.now()}return En}var _n={prod:{pattern:new RegExp(/https: \/\/www.linkedin.com\/.+|https:\/\/www.linkedin.com\/li\/track$/),monitorEndpoint:"https://www.linkedin.com/trackingMonitoring/?action=reportClientFailures"},ei:{pattern:new RegExp(/https: \/\/www.linkedin-ei.com\/.+|https:\/\/www.linkedin-ei.com\/li\/track$/),monitorEndpoint:"https://www.linkedin-ei.com/trackingMonitoring/?action=reportClientFailures"},eiValidate:{pattern:new RegExp(/https:\/\/www\.linkedin-ei\.com\/.+\/validate$/),monitorEndpoint:"https://www.linkedin-ei.com/trackingMonitoring/?action=reportClientFailures"}},wn=function(){function e(t){S(this,e),D(this,"networkTransporter",void 0),D(this,"inactive",void 0),D(this,"mpName",void 0),D(this,"endpoint",void 0),D(this,"debug",void 0),this.networkTransporter=new gn(t),this.mpName=t.appId,this.inactive=t.inactive;var n=function(e){var t,n=!1;return _n.prod.pattern.test(e)?t=_n.prod.monitorEndpoint:_n.eiValidate.pattern.test(e)?(n=!0,t=_n.eiValidate.monitorEndpoint):_n.ei.pattern.test(e)?t=_n.ei.monitorEndpoint:(t=_n.ei.monitorEndpoint,n=!0),{endpoint:t,debug:n}}(t.endpoint);this.endpoint=n.endpoint,this.debug=n.debug}return O(e,[{key:"fireFragment",value:function(e){var t;if(!this.inactive){var n={"content-type":"application/json; charset=UTF-8","x-li-track":JSON.stringify({mpName:this.mpName}),"csrf-token":bn(),"x-restli-protocol-version":"2.0.0"},r=[],i=null!==(t=null==e?void 0:e.stats)&&void 0!==t?t:{},a=i.failures,o=i.previousInstanceEventStats.reduce((function(e,t){return e.push.apply(e,k(t.failures)),e}),[]);[].concat(k(a),k(o)).forEach((function(e){var t=e.reason,n=e.rawError,i=e.eventTopic,a=e.header,o=e.requestHeader;r.push({reason:t,rawError:n,failedTopicName:i,header:a,requestHeader:o})}));var s={clientTrackingFailures:r,debug:this.debug};this.networkTransporter.sendPayload(this.endpoint,s,n)}}}]),e}();function In(e){return"string"==typeof e}function kn(e){return In(e)?e:e.topicName||e.eventName}function Nn(e){return In(e)?e:e.eventName}var Cn,An,Sn=function(){function e(t){var n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};S(this,e),D(this,"host",void 0),D(this,"cmoTransporter",void 0),D(this,"clientMonitoringInstanceId",Vt()),D(this,"currentContext",{pageKey:U,pageInstance:jt(U)}),D(this,"appState",{}),D(this,"estimatedFragmentSize",0),D(this,"fragmentSizeLimit",void 0),D(this,"activeFragmentEvent",void 0),D(this,"debounceTimer",void 0),this.host=t,this.cmoTransporter=r.cmoTransporter||new wn(t),this.fragmentSizeLimit=(null===(n=t.clientMonitoringConfig)||void 0===n?void 0:n.fragmentSizeLimit)||10240,this.activeFragmentEvent=On(this.clientMonitoringInstanceId,0,0,!1,this.getEventHeaders())}return O(e,[{key:"getCurrentInstanceId",value:function(){return this.clientMonitoringInstanceId}},{key:"scheduleDebouncedFiring",value:function(){var e,t,n=this;void 0!==this.debounceTimer&&(clearTimeout(this.debounceTimer),this.debounceTimer=void 0),this.fragmentIsFull()&&this.fireFragmentEventIfFull(!0),this.debounceTimer=setTimeout((function(){n.fireFragmentEventIfFull()}),null!==(e=null===(t=this.host.batching)||void 0===t?void 0:t.debounceTime)&&void 0!==e?e:1)}},{key:"logEventGenerated",value:function(e){this.scheduleDebouncedFiring();var t=this.activeFragmentEvent.stats,n=this.activeFragmentEvent.firstEventNumber+t.eventsGenerated;return t.eventTopics.push(e),t.eventsGenerated++,this.estimatedFragmentSize+=e.length,n}},{key:"logEventReadyToSend",value:function(e){this.activeFragmentEvent.stats.eventsReadyToSend+=e}},{key:"logEventSent",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.getCurrentInstanceId();t===this.getCurrentInstanceId()?this.activeFragmentEvent.stats.eventsSent+=e:this.findPreviousInstanceStat(t,(function(t){t.eventsSent+=e}))}},{key:"logNetworkResponseCode",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.getCurrentInstanceId(),n=this.activeFragmentEvent.stats.networkResponseStats;t!==this.getCurrentInstanceId()&&this.findPreviousInstanceStat(t,(function(e){n=e.networkResponseStats})),e>=200&&e<300?n.eventsWith2XXResponse++:400===e?n.eventsWith400Response++:408===e?n.eventsWith408Response++:429===e?n.eventsWith429Response++:e>400&&e<500?n.eventsWith4XXResponse++:500===e?n.eventsWith500Response++:502===e?n.eventsWith502Response++:503===e?n.eventsWith503Response++:504===e?n.eventsWith504Response++:e>500&&e<600&&n.eventsWith5XXResponse++}},{key:"findPreviousInstanceStat",value:function(e,t){var n,r=I(this.activeFragmentEvent.stats.previousInstanceEventStats);try{for(r.s();!(n=r.n()).done;){var i=n.value;if(i.instanceId===e)return void t(i)}}catch(e){r.e(e)}finally{r.f()}var a=this.getEventHeaders(),o=a.header,s=a.requestHeader,c={header:Object.assign(o,{memberId:-1}),requestHeader:s,instanceId:e,eventsSent:0,eventTopics:[],networkResponseStats:{eventsWith2XXResponse:0,eventsWith400Response:0,eventsWith408Response:0,eventsWith429Response:0,eventsWith4XXResponse:0,eventsWith500Response:0,eventsWith502Response:0,eventsWith503Response:0,eventsWith504Response:0,eventsWith5XXResponse:0},failures:[]};t(c),this.activeFragmentEvent.stats.previousInstanceEventStats.push(c)}},{key:"logFailedEvent",value:function(e,t,n,r){var i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:this.getCurrentInstanceId(),a=this.getEventHeaders(),o=a.header,s=a.requestHeader,c={header:Object.assign(o,{memberId:-1}),requestHeader:s,instanceId:i,instanceEventNumber:r,reason:e,rawError:n,eventName:Nn(t),eventTopic:kn(t)};this.estimatedFragmentSize+=JSON.stringify(c).length,i===this.getCurrentInstanceId()?this.activeFragmentEvent.stats.failures.push(c):this.findPreviousInstanceStat(i,(function(e){e.failures.push(c)})),this.fireFragmentEventIfFull()}},{key:"flush",value:function(){this.activeFragmentEvent.isLastFragment=!0,this.fireFragmentEventIfFull(!0)}},{key:"fragmentIsFull",value:function(){return this.activeFragmentEvent.stats.eventsGenerated>=100||this.estimatedFragmentSize>=this.fragmentSizeLimit}},{key:"fireFragmentEventIfFull",value:function(){if(arguments.length>0&&void 0!==arguments[0]&&arguments[0]||this.fragmentIsFull()){this.debounceTimer=void 0;var e=this.getEventHeaders(),t=e.header,n=e.requestHeader,r=this.activeFragmentEvent;r.header=t,r.requestHeader=n,this.cmoTransporter.fireFragment(r),this.estimatedFragmentSize=0,this.activeFragmentEvent=On(this.clientMonitoringInstanceId,r.fragmentNumber+1,r.firstEventNumber+r.stats.eventsGenerated,!1,e)}}},{key:"setCurrentContext",value:function(e){this.currentContext=e}},{key:"updateAppState",value:function(e){this.host.api.assign(this.appState,e)}},{key:"getEventHeaders",value:function(){var e=void 0;this.appState.clientApplicationInstance&&((e=this.appState.clientApplicationInstance).trackingId=Dn(e.trackingId));var t=this.currentContext.pageInstance;return t.trackingId=Dn(t.trackingId),{requestHeader:{interfaceLocale:this.host.locale,pageKey:this.currentContext.pageKey,path:this.host.api.location.pathname+this.host.api.location.search,referer:this.host.api.document.referrer},header:{applicationViewerUrn:this.appState.applicationViewerUrn,clientApplicationInstance:e,pageInstance:t,time:Date.now(),version:this.host.appVersion,server:"",service:"",guid:Vt(),memberId:0}}}}]),e}();function Rn(e){return Cn||(Cn=new Sn(e)),{getCurrentInstanceId:function(){return Cn.getCurrentInstanceId()},logEventGenerated:function(e){return Cn.logEventGenerated(e)},logEventReadyToSend:function(e){Cn.logEventReadyToSend(e)},logEventSent:function(e){Cn.logEventSent(e)},logPersistedEventSent:function(e,t){Cn.logEventSent(t,e)},logNetworkResponseCode:function(e){Cn.logNetworkResponseCode(e)},logPersistedNetworkResponseCode:function(e,t){var n;null===(n=Cn)||void 0===n||n.logNetworkResponseCode(t,e)},logFailedEvent:function(e,t,n,r){Cn.logFailedEvent(e,t,n,r)},logPersistedFailedEvent:function(e,t,n,r,i){Cn.logFailedEvent(t,n,r,i,e)},flush:function(){Cn.flush()},destroy:function(){Cn=void 0},isDestroyed:function(){return void 0===Cn},setCurrentContext:function(e){Cn.setCurrentContext(e)},updateAppState:function(e){Cn.updateAppState(e)}}}function On(e,t,n,r,i){return{fragmentNumber:t,firstEventNumber:n,isLastFragment:r,stats:{instanceId:e,eventsGenerated:0,eventsReadyToSend:0,eventsSent:0,networkResponseStats:{eventsWith2XXResponse:0,eventsWith400Response:0,eventsWith408Response:0,eventsWith429Response:0,eventsWith4XXResponse:0,eventsWith500Response:0,eventsWith502Response:0,eventsWith503Response:0,eventsWith504Response:0,eventsWith5XXResponse:0},eventTopics:[],failures:[],previousInstanceEventStats:[]},requestHeader:i.requestHeader,header:i.header}}function Dn(e){return Array.isArray(e)?Ht(e):16===e.length?e:Wt(e)?atob(e):Ht(function(e){return q(e)}(e))}function Mn(e){console.error("An error occurred in the `".concat(e,"` method of the callback multiplexer."))}!function(e){e.NONE="NONE",e.UNKNOWN_EXECUTION_ERROR="UNKNOWN_EXECUTION_ERROR",e.MISSING_REQUIRED_PROPERTIES="MISSING_REQUIRED_PROPERITES",e.STORAGE_WRITE_FAILURE="STORAGE_WRITE_FAILURE",e.RETRIES_EXCEEDED="RETRIES_EXCEEDED",e.EVENT_EVICTED_FROM_STORAGE="EVENT_EVICTED_FROM_STORAGE",e.STORAGE_UNAVAILABLE="STORAGE_UNAVAILABLE",e.SERIALIZATION_FAILURE="SERIALIZATION_FAILURE"}(An||(An={}));var Ln,Pn="default",xn="-",Bn="-",Un="-",Fn="-",Hn="receivedCount";!function(e){e.MISSING_REQUIRED_PROPERTIES="MISSING_REQUIRED_PROPERTIES",e.TRANSPORTER_FAILURE="TRANSPORTER_FAILURE",e.BEACON_TRANSPORTER_FAILURE="BEACON_TRANSPORTER_FAILURE"}(Ln||(Ln={}));var Vn=function(){function e(){S(this,e),D(this,"TelemetryRetryIDB","metricsBeacons"),D(this,"beaconFunc",void 0)}return O(e,[{key:"getOrCreateBeaconFunc",value:function(){return this.beaconFunc||(this.beaconFunc=this.createTelemetryMetricsBeacon()),this.beaconFunc}},{key:"getDefaultInMemoryConfig",value:function(){return{attemptLimit:4,statusCodes:[502,504]}}},{key:"getDefaultPersistConfig",value:function(){return{attemptLimit:3,statusCodes:[408,429,500,502,503,504,507,509],maxNumber:1e3,batchEvictionNumber:300,throttleWait:3e5}}},{key:"createTelemetryMetricsBeacon",value:function(){var e=this.getDefaultInMemoryConfig(),t=this.getDefaultPersistConfig();return Tt({compress:!0,inMemoryRetry:{attemptLimit:e.attemptLimit,statusCodes:e.statusCodes,calculateRetryDelay:function(e){return pn(e)}},disablePersistenceRetry:!1,persistenceRetry:{idbName:this.TelemetryRetryIDB,attemptLimit:t.attemptLimit,statusCodes:t.statusCodes,maxNumber:t.maxNumber,batchEvictionNumber:t.batchEvictionNumber,throttleWait:t.throttleWait,useIdle:!0}}).beacon}}],[{key:"getInstance",value:function(){return e.instance||(e.instance=new e),e.instance}}]),e}();D(Vn,"instance",null);var Kn=function(){function e(){S(this,e),D(this,"config",void 0),D(this,"observePath","rest/trackObserveApi/trackObserve"),this.config={endpoint:"".concat(St).concat(this.observePath),platform:"Web"}}return O(e,[{key:"getConfig",value:function(){return this.config}},{key:"setAppId",value:function(e){this.config.appId=e}},{key:"setEnvironment",value:function(){var e="development"===(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"production")?Rt:St;this.config.endpoint="".concat(e).concat(this.observePath)}}],[{key:"getInstance",value:function(){return e.instance||(e.instance=new e),e.instance}}]),e}();D(Kn,"instance",void 0);var Wn=function(){function e(){S(this,e)}return O(e,null,[{key:"buildTrackingSdkEventMetric",value:function(e,t,n){var r=[{key:"EventName",value:{value:{stringValue:e.eventName}}},{key:"ViewHierarchy",value:{value:{stringValue:e.viewHierarchy}}},{key:"Platform",value:{value:{stringValue:n}}},{key:"TransportKey",value:{value:{stringValue:e.transportKey}}},{key:"AppId",value:{value:{stringValue:t}}},{key:"PageKey",value:{value:{stringValue:e.pageKey}}},{key:"HasContentTrackingID",value:{value:{boolValue:e.hasContentTrackingID}}}];return e.breadcrumbType!==Un&&r.push({key:"BreadcrumbType",value:{value:{stringValue:e.breadcrumbType}}}),e.dropReason!==Fn&&r.push({key:"DropReason",value:{value:{stringValue:e.dropReason}}}),{attributes:r,metrics:{eventsReceived:e.receivedCount,eventsDropped:e.droppedCount,eventsSynced:e.syncedCount,queueLatencies:e.latencies,totalRetries:e.retries.reduce((function(e,t){return e+t}),0)},observedTimestamp:Date.now()}}},{key:"transformToSimplifiedFormat",value:function(e){var t,n,r,i,a,o;return{attributes:(null===(t=e.attributes)||void 0===t?void 0:t.map((function(e){var t,n;return{key:e.key||"",value:_(_({},void 0!==(null===(t=e.value)||void 0===t||null===(t=t.value)||void 0===t?void 0:t.stringValue)&&{stringValue:e.value.value.stringValue}),void 0!==(null===(n=e.value)||void 0===n||null===(n=n.value)||void 0===n?void 0:n.boolValue)&&{boolValue:e.value.value.boolValue})}})))||[],metrics:{eventsReceived:null===(n=e.metrics)||void 0===n?void 0:n.eventsReceived,eventsDropped:null===(r=e.metrics)||void 0===r?void 0:r.eventsDropped,eventsSynced:null===(i=e.metrics)||void 0===i?void 0:i.eventsSynced,queueLatencies:null===(a=e.metrics)||void 0===a?void 0:a.queueLatencies,totalRetries:null===(o=e.metrics)||void 0===o?void 0:o.totalRetries},observedTimestamp:e.observedTimestamp}}},{key:"wrapInEventMetricsPayload",value:function(e){return{eventMetrics:e}}}]),e}(),Gn=function(){function e(){S(this,e),D(this,"beaconFunc",void 0),D(this,"endpoint",void 0),D(this,"flushDebounceTimer",void 0),D(this,"localCounterMap",new Map),D(this,"flushPromise",Promise.resolve());var t=Kn.getInstance().getConfig();this.endpoint=t.endpoint,this.beaconFunc=Vn.getInstance().getOrCreateBeaconFunc()}return O(e,[{key:"generateId",value:function(e,t,n,r,i,a,o){return"".concat(e,"_").concat(t,"_").concat(n,"_").concat(r,"_").concat(i,"_").concat(a,"_").concat(o)}},{key:"incrementEventReceived",value:function(e,t,n,r,i,a){var o=arguments.length>6&&void 0!==arguments[6]?arguments[6]:Fn;this.mutate(e,t,n,r,i,a,o,Hn)}},{key:"incrementEventDropped",value:function(e,t,n,r,i,a,o,s){var c=this.calculateLatency(s);this.mutate(e,t,n,r,i,a,o,"droppedCount",c,void 0)}},{key:"incrementEventSynced",value:function(e,t,n,r,i,a,o){var s=this.calculateLatency(o);this.mutate(e,t,n,r,i,a,Fn,"syncedCount",s,void 0)}},{key:"incrementEventRetried",value:function(e,t,n,r,i,a){this.mutate(e,t,n,r,i,a,Fn,void 0,void 0,1)}},{key:"calculateLatency",value:function(e){var t=void 0;return null!=e&&0!==e&&(t=Date.now()-e),t}},{key:"mutate",value:function(e,t,n,r,i,a,o,s,c,u){var l=this.generateId(e,t,n,r,i,String(a),o),d=this.localCounterMap.get(l);d||(d={eventName:e,transportKey:t,pageKey:n,viewHierarchy:r,breadcrumbType:i,hasContentTrackingID:a,dropReason:o,receivedCount:0,droppedCount:0,syncedCount:0,latencies:[],retries:[]},this.localCounterMap.set(l,d)),null!=s&&(d[s]+=1),void 0!==c&&d.latencies.push(c),void 0!==u&&d.retries.push(u),this.attemptToFlush()}},{key:"buildMetricsPayload",value:function(e){var t,n=[],r=Kn.getInstance().getConfig(),i=r.appId,a=r.platform,o=I(e);try{for(o.s();!(t=o.n()).done;){var s=t.value;try{var c=Wn.buildTrackingSdkEventMetric(s,i,a);n.push(c)}catch(e){console.error("Error converting metric [".concat(JSON.stringify(s),"] - [").concat("EC101","]:"),e)}}}catch(e){o.e(e)}finally{o.f()}var u=n.map((function(e){return Wn.transformToSimplifiedFormat(e)}));return Wn.wrapInEventMetricsPayload(u)}},{key:"attemptToFlush",value:function(){var e=this;this.localCounterMap.size>=20?this.flushMetrics():(this.flushDebounceTimer&&clearTimeout(this.flushDebounceTimer),this.flushDebounceTimer=setTimeout((function(){return e.flushMetrics()}),3e3))}},{key:"flushMetrics",value:function(){var e=this;this.flushPromise=this.flushPromise.then(x(L().mark((function t(){var n,r,i;return L().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(0!==e.localCounterMap.size){t.next=2;break}return t.abrupt("return");case 2:return n=Array.from(e.localCounterMap.values()),e.localCounterMap.clear(),r=e.buildMetricsPayload(n),i={"content-type":"application/json; charset=UTF-8"},t.prev=6,t.next=9,e.beaconFunc(e.endpoint,JSON.stringify(r),i);case 9:t.next=14;break;case 11:t.prev=11,t.t0=t.catch(6),console.error("Error - [".concat("EC102","]"));case 14:case"end":return t.stop()}}),t,null,[[6,11]])}))))}},{key:"forceFlush",value:function(){this.flushMetrics()}}]),e}(),jn=new Set(["GenericImpressionEvent","GenericActionEvent","GenericMultipleImpressionEvent","GenericMediaStateChangeEvent"]);function qn(e){try{return JSON.parse(e||"[]").map(zn)}catch(e){return[]}}function zn(e){var t,n,r,i,a,o,s=e.eventInfo,c=null!==(t=null===(n=e.eventBody)||void 0===n||null===(n=n.header)||void 0===n?void 0:n.time)&&void 0!==t?t:Date.now(),u=null!==(r=null===(i=e.eventBody)||void 0===i||null===(i=i.requestHeader)||void 0===i?void 0:i.pageKey)&&void 0!==r?r:xn,l=function(e){return e&&0!==e.length?e.join("|"):Bn}(null===(a=e.eventBody)||void 0===a||null===(a=a.header)||void 0===a?void 0:a.viewHierarchy),d=function(e){if(null!=e&&e.clientBreadcrumbPointers&&Array.isArray(e.clientBreadcrumbPointers)){var t=e.clientBreadcrumbPointers.map((function(e){return null==e?void 0:e.type})).filter((function(e){return e})).map((function(e){return String(e)}));return t.length>0?t.sort().join("|"):Un}return Un}(e.eventBody),f=!(null==(o=e.eventBody)||!o.contentTrackingId||""===o.contentTrackingId);return{eventName:s.eventName,enqueuedTime:c,pageKey:u,viewHierarchy:l,breadcrumbType:d,hasContentTrackingID:f,dropReason:Fn}}var Xn,Jn=function(){function e(){S(this,e),D(this,"metricsManager",void 0),this.metricsManager=new Gn}return O(e,[{key:"onEventReceived",value:function(e){var t=this;this.executeWithTryCatch((function(){var n,r,i,a,o=Nn(e.id);if(t.isTelemetryEnabledForEventName(o)){var s=e.meta.transporterKey||Pn,c=(null===(n=e.meta.requestHeader)||void 0===n?void 0:n.pageKey)||(null===(r=e.meta.context)||void 0===r?void 0:r.pageKey)||xn,u=t.formatViewHierarchy(null===(i=e.meta.header)||void 0===i?void 0:i.viewHierarchy),l=Un;if("function"==typeof e.body)try{var d=e.body(e.meta.context||{});l=t.extractBreadcrumbTypeFromBody(d)}catch(n){l=t.formatBreadcrumbType(e.clientBreadcrumbs)}else(l=t.extractBreadcrumbTypeFromBody(e.body))===Un&&(l=t.formatBreadcrumbType(e.clientBreadcrumbs));var f=t.checkHasContentTrackingID(e);null===(a=t.metricsManager)||void 0===a||a.incrementEventReceived(o,s,c,u,l,f)}}))}},{key:"onEventRetried",value:function(e,t,n,r,i,a){var o=this;this.executeWithTryCatch((function(){var s;o.isTelemetryEnabledForEventName(e)&&(null===(s=o.metricsManager)||void 0===s||s.incrementEventRetried(e,t||Pn,n||xn,r||Bn,i||Un,null!=a&&a))}))}},{key:"onEventSynced",value:function(e,t,n,r,i,a,o){var s=this;this.executeWithTryCatch((function(){var c;s.isTelemetryEnabledForEventName(e)&&(null===(c=s.metricsManager)||void 0===c||c.incrementEventSynced(e,t||Pn,r||xn,i||Bn,a||Un,null!=o&&o,n))}))}},{key:"onEventDropped",value:function(e,t,n,r,i,a,o,s){var c=this,u=arguments.length>8&&void 0!==arguments[8]&&arguments[8];this.executeWithTryCatch((function(){var l,d;c.isTelemetryEnabledForEventName(e)&&(u&&(null===(d=c.metricsManager)||void 0===d||d.incrementEventReceived(e,t||Pn,r||xn,i||Bn,a||Un,null!=o&&o,s||Fn)),null===(l=c.metricsManager)||void 0===l||l.incrementEventDropped(e,t||Pn,r||xn,i||Bn,a||Un,null!=o&&o,s||Fn,n))}))}},{key:"forceFlush",value:function(){var e;null===(e=this.metricsManager)||void 0===e||e.forceFlush()}},{key:"onDestroy",value:function(){this.metricsManager=void 0}},{key:"onResultCallbackHook",value:function(e){var t=this;return{onIntermediateResult:function(n,r){var i=qn(r);t.handleResult(n,i,e)},onBeforeRetry:function(n){qn(n).forEach((function(n){var r=n.eventName,i=n.pageKey,a=n.viewHierarchy,o=n.breadcrumbType,s=n.hasContentTrackingID;t.onEventRetried(r,e,i,a,o,s)}))},onResult:function(n,r){var i=qn(r);t.handleResult(n,i,e)}}}},{key:"clientMonitoringCallbackHook",value:function(e){var t=this;return{onResult:function(n,r){var i=r.map(zn);t.handleResult(n,i,e)}}}},{key:"handleResult",value:function(e,t,n){var r=this;200===e.statusCode||400===e.statusCode?t.forEach((function(e){var t=e.eventName,i=e.enqueuedTime,a=e.pageKey,o=e.viewHierarchy,s=e.breadcrumbType,c=e.hasContentTrackingID;r.onEventSynced(t,n,i,a,o,s,c)})):e.drop&&t.forEach((function(e){var t=e.eventName,i=e.enqueuedTime,a=e.pageKey,o=e.viewHierarchy,s=e.breadcrumbType,c=e.hasContentTrackingID;r.onEventDropped(t,n,i,a,o,s,c,Ln.BEACON_TRANSPORTER_FAILURE)}))}},{key:"isTelemetryEnabledForEventName",value:function(e){return!!e&&function(e){return jn.has(e)}(e)}},{key:"executeWithTryCatch",value:function(e){try{return e()}catch(e){return}}},{key:"formatViewHierarchy",value:function(e){return e&&0!==e.length?e.join("|"):Bn}},{key:"formatBreadcrumbType",value:function(e){if(!e||0===e.length)return Un;var t=e.map((function(e){return null!=e&&e.clientBreadcrumbType?e.clientBreadcrumbType:null})).filter((function(e){return e})).map((function(e){return String(e)}));return t.length>0?t.sort().join("|"):Un}},{key:"extractBreadcrumbTypeFromBody",value:function(e){if(null!=e&&e.clientBreadcrumbPointers&&Array.isArray(e.clientBreadcrumbPointers)){var t=e.clientBreadcrumbPointers.map((function(e){return null==e?void 0:e.type})).filter((function(e){return e})).map((function(e){return String(e)}));return t.length>0?t.sort().join("|"):Un}return Un}},{key:"checkHasContentTrackingID",value:function(e){if("function"==typeof e.body)try{var t=e.body(e.meta.context||{});return this.hasContentTrackingIdInBody(t)}catch(e){return!1}return this.hasContentTrackingIdInBody(e.body)}},{key:"hasContentTrackingIdInBody",value:function(e){return!(null==e||!e.contentTrackingId||""===e.contentTrackingId)}}],[{key:"getInstance",value:function(t){if(!e.instance){var n=Kn.getInstance();n.setAppId(t.appId),n.setEnvironment(t.environment),e.instance=new e}return e.instance}}]),e}();D(Jn,"instance",void 0),function(e){e.Enabled="Enabled",e.Dual="Dual",e.Control="Control"}(Xn||(Xn={}));var Yn,Qn=function(){function e(){S(this,e),D(this,"config",null),D(this,"eventBreadcrumbModeIndex",{})}return O(e,[{key:"configure",value:function(e){this.config=this.parseEncodedConfiguration(e),this.buildEventBreadcrumbIndex()}},{key:"parseEncodedConfiguration",value:function(t){try{return this.decodeConfigBase64url(t)}catch(t){return{e:[],d:[],hp:[],t:e.DEFAULT_HIGH_PRIORITY_TIMEOUT}}}},{key:"buildEventBreadcrumbIndex",value:function(){this.eventBreadcrumbModeIndex={},this.config&&(this.indexEventGroups(this.config.e,Xn.Enabled),this.indexEventGroups(this.config.d,Xn.Dual))}},{key:"indexEventGroups",value:function(e,t){if(e){var n,r=I(e);try{for(r.s();!(n=r.n()).done;){var i=n.value;this.isEmptyGroup(i)||this.indexSingleGroup(i,t)}}catch(e){r.e(e)}finally{r.f()}}}},{key:"isEmptyGroup",value:function(e){return!e||0===e.length}},{key:"indexSingleGroup",value:function(e,t){var n=this.filterEventIds(e),r=this.filterBreadcrumbIds(e);this.hasEventsWithoutBreadcrumbs(n,r)?this.indexEventsWithoutBreadcrumbs(n,t):this.hasInvalidGroup(n,r)||this.indexEventBreadcrumbPairs(n,r,t)}},{key:"filterEventIds",value:function(t){return t.filter((function(t){return!e.BREADCRUMB_IDS.has(t)}))}},{key:"filterBreadcrumbIds",value:function(t){return t.filter((function(t){return e.BREADCRUMB_IDS.has(t)}))}},{key:"hasEventsWithoutBreadcrumbs",value:function(e,t){return e.length>0&&0===t.length}},{key:"hasInvalidGroup",value:function(e,t){return 0===e.length||0===t.length}},{key:"indexEventsWithoutBreadcrumbs",value:function(t,n){var r,i=I(t);try{for(i.s();!(r=i.n()).done;){var a=r.value,o=e.ID_TO_NAME[a];if(o){var s=this.compositeKey(o,"EMPTY");this.eventBreadcrumbModeIndex[s]=n}}}catch(e){i.e(e)}finally{i.f()}}},{key:"indexEventBreadcrumbPairs",value:function(t,n,r){var i,a=I(t);try{for(a.s();!(i=a.n()).done;){var o=i.value,s=e.ID_TO_NAME[o];s&&(this.hasAllBreadcrumb(n)?this.indexEventWithAllBreadcrumb(s,r):this.indexEventWithIndividualBreadcrumbs(s,n,r))}}catch(e){a.e(e)}finally{a.f()}}},{key:"hasAllBreadcrumb",value:function(t){return t.includes(e.ALL_BREADCRUMB_ID)}},{key:"indexEventWithAllBreadcrumb",value:function(t,n){var r=e.ID_TO_NAME[e.ALL_BREADCRUMB_ID];if(r){var i=this.compositeKey(t,r);this.eventBreadcrumbModeIndex[i]=n}}},{key:"indexEventWithIndividualBreadcrumbs",value:function(t,n,r){var i,a=I(n);try{for(a.s();!(i=a.n()).done;){var o=i.value,s=e.ID_TO_NAME[o];if(s){var c=this.compositeKey(t,s);this.eventBreadcrumbModeIndex[c]=r}}}catch(e){a.e(e)}finally{a.f()}}},{key:"getHighPriorityTimeout",value:function(){var t,n;return null!==(t=null===(n=this.config)||void 0===n?void 0:n.t)&&void 0!==t?t:e.DEFAULT_HIGH_PRIORITY_TIMEOUT}},{key:"getNormalPriorityTimeout",value:function(){var t,n;return null!==(t=null===(n=this.config)||void 0===n?void 0:n.nt)&&void 0!==t?t:e.DEFAULT_NORMAL_PRIORITY_TIMEOUT}},{key:"isHighPriorityEvent",value:function(t){if(!this.config)return!1;var n=e.NAME_TO_ID[t];return void 0!==n&&this.config.hp.includes(n)}},{key:"getEventLixMode",value:function(e,t){var n=this;if(!this.config)return Xn.Control;if(!t||0===t.length){var r,i=this.compositeKey(e,"EMPTY");return null!==(r=this.eventBreadcrumbModeIndex[i])&&void 0!==r?r:Xn.Control}var a=this.compositeKey(e,"ALL");if(this.eventBreadcrumbModeIndex[a])return this.eventBreadcrumbModeIndex[a];var o,s=[],c=I(t);try{for(c.s();!(o=c.n()).done;){var u,l=o.value,d=this.compositeKey(e,l),f=null!==(u=this.eventBreadcrumbModeIndex[d])&&void 0!==u?u:Xn.Control;s.push(f)}}catch(e){c.e(e)}finally{c.f()}return s.reduce((function(e,t){return n.modeRank(t)e.length)throw new Error("Truncated hp bitmap");return{hp:this.extractBitmapIds(e,i,a),position:a}}},{key:"extractBitmapIds",value:function(t,n,r){for(var i=[],a=0,o=n;o0&&void 0!==arguments[0]?arguments[0]:{};S(this,e),D(this,"eventConfigurations",{}),this.eventConfigurations=_({},t)}return O(e,[{key:"getEventConfig",value:function(e){return this.eventConfigurations[e]||null}},{key:"resolveFieldRule",value:function(e,t,n){var r=this.getEventConfig(n);if(!r)return{rule:null,source:"none",resolvedPath:this.buildPath(t,e)};if(t){var i=this.buildPath(t,e);if(r.rootFields[i])return{rule:r.rootFields[i],source:"root",resolvedPath:i}}if(r.rootFields[e])return{rule:r.rootFields[e],source:"root",resolvedPath:e};throw new Error("No field rule configuration found for field '".concat(e,"' at path '").concat(t,"' in event '").concat(n,"'."))}},{key:"buildPath",value:function(e,t){return e?"".concat(e,".").concat(t):t}}]),e}(),hr=function(){function e(){S(this,e)}return O(e,[{key:"convert",value:function(t){if(this.isValidTrackingIdObject(t))return t;if(this.isTrackingIdObjectWithConversion(t))return this.convertTrackingIdObject(t);if(Array.isArray(t)&&t.every((function(e){return"number"==typeof e}))){if(t.length!==e.FIXED_16_BYTES_LENGTH)return;var n=t.map((function(e){return 255&e}));return{fixedValue:new Uint8Array(n)}}return"string"==typeof t&&t.length>0?{fixedValue:this.convertStringToBytes(t)}:void 0}},{key:"isValidTrackingIdObject",value:function(t){return"object"===A(t)&&null!==t&&t.fixedValue instanceof Uint8Array&&t.fixedValue.length===e.FIXED_16_BYTES_LENGTH}},{key:"isTrackingIdObjectWithConversion",value:function(e){return"object"===A(e)&&null!==e&&"fixedValue"in e&&!(e.fixedValue instanceof Uint8Array)}},{key:"convertTrackingIdObject",value:function(t){var n=t.fixedValue;if(Array.isArray(n)&&n.every((function(e){return"number"==typeof e}))){if(n.length!==e.FIXED_16_BYTES_LENGTH)return;var r=n.map((function(e){return 255&e}));return{fixedValue:new Uint8Array(r)}}if("string"==typeof n&&n.length>0)return{fixedValue:this.convertStringToBytes(n)}}},{key:"convertStringToBytes",value:function(e){var t,n,r;return null!==(t=null!==(n=null!==(r=this.tryBase64Decode(e))&&void 0!==r?r:this.tryUuidDecode(e))&&void 0!==n?n:this.tryLatin1Decode(e))&&void 0!==t?t:(new TextEncoder).encode(e)}},{key:"tryBase64Decode",value:function(t){if(t.length!==e.BASE64_16_BYTES_LENGTH)return null;try{var n=un(t);return n.length===e.FIXED_16_BYTES_LENGTH?n:null}catch(e){return null}}},{key:"tryUuidDecode",value:function(t){if(t.length!==e.UUID_STRING_LENGTH)return null;try{var n=this.convertUuidStringToBytes(t);return n.length===e.FIXED_16_BYTES_LENGTH?n:null}catch(e){return null}}},{key:"tryLatin1Decode",value:function(t){if(t.length!==e.LATIN1_BYTES_LENGTH)return null;for(var n=new Uint8Array(e.LATIN1_BYTES_LENGTH),r=0;r255)return null;n[r]=i}return n}},{key:"convertUuidStringToBytes",value:function(t){var n=t.replace(/-/g,"");if(n.length!==e.UUID_HEX_LENGTH)throw new Error("Invalid UUID format: ".concat(t," (expected ").concat(e.UUID_HEX_LENGTH," hex chars, got ").concat(n.length,")"));for(var r=new Uint8Array(e.FIXED_16_BYTES_LENGTH),i=0;i=0&&e<=255})))throw new Error("Array must contain only integers between 0-255");return new Uint8Array(e)}if("string"==typeof e)return(new TextEncoder).encode(e);throw new Error("Cannot convert ".concat(A(e)," to bytes"))}}]),e}(),Tr=function(){function e(t){S(this,e),D(this,"eventName",void 0),D(this,"sanitizedData",void 0),D(this,"errors",[]),D(this,"trackingIdConverter",void 0),D(this,"enumConverter",void 0),D(this,"arrayWrapperConverter",void 0),D(this,"fieldTypeConverter",void 0),D(this,"fieldRuleEngine",void 0),D(this,"structuralRuleEngine",void 0),this.eventName=t,this.trackingIdConverter=new hr,this.enumConverter=new pr,this.arrayWrapperConverter=new yr,this.fieldTypeConverter=new Er,this.fieldRuleEngine=new fr(lr),this.structuralRuleEngine=new fr(dr)}return O(e,[{key:"fromJson",value:function(e){return this.sanitizedData=tn(e),this}},{key:"sanitize",value:function(){var e=this;try{this.sanitizedData=ln(this.sanitizedData,{processField:function(t,n,r){return e.processField(t,n,r)},removeUndefined:!0,removeNull:!0})}catch(e){en("[ProtoMessageBuilder] Sanitization error for ".concat(this.eventName),e)}return this}},{key:"build",value:function(){return{sanitizedData:this.sanitizedData,errors:k(this.errors)}}},{key:"processField",value:function(e,t,n){var r=this.processStructuralTransformations(e,t,n);r.processed&&(t=r.result);var i=this.processFieldTransformations(e,t,n);return i.processed?i:{processed:!1}}},{key:"processFieldTransformations",value:function(e,t,n){var r=this.extractParentPath(n),i=this.getConfiguredRule(e,r,this.fieldRuleEngine);return i?this.applyRuleWithErrorHandling(t,i,n):t&&"object"===A(t)&&!Array.isArray(t)?(this.applyFieldTransformationsToObject(t,n),{processed:!0,result:t}):{processed:!1}}},{key:"processStructuralTransformations",value:function(e,t,n){var r=this.extractParentPath(n),i=this.getConfiguredRule(e,r,this.structuralRuleEngine);if(i)return this.applyRuleWithErrorHandling(t,i,n);if(t&&"object"===A(t)&&!Array.isArray(t)){var a=_({},t);return this.applyStructuralTransformationsToObject(a,n),{processed:!0,result:a}}return{processed:!1}}},{key:"applyStructuralTransformationsToObject",value:function(e,t){for(var n=0,r=Object.entries(e);n>4,0==(128&i))return this.assertBounds(),[e,t];for(var a=3;a<=31;a+=7){var o=this.buf[this.pos++];if(t|=(127&o)<>>r,a=!(i>>>7==0&&0==t),o=255&(a?128|i:i);if(n.push(o),!a)return}var s=e>>>28&15|(7&t)<<4,c=!(t>>3==0);if(n.push(255&(c?128|s:s)),c){for(var u=3;u<31;u+=7){var l=t>>>u,d=!(l>>>7==0),f=255&(d?128|l:l);if(n.push(f),!d)return}n.push(t>>>31&1)}}kr["-".charCodeAt(0)]=Ir.indexOf("+"),kr["_".charCodeAt(0)]=Ir.indexOf("/"),function(e){e.symbol=Symbol.for("protobuf-ts/unknown"),e.onRead=function(n,r,i,a,o){(t(r)?r[e.symbol]:r[e.symbol]=[]).push({no:i,wireType:a,data:o})},e.onWrite=function(t,n,r){var i,a=I(e.list(n));try{for(a.s();!(i=a.n()).done;){var o=i.value,s=o.no,c=o.wireType,u=o.data;r.tag(s,c).raw(u)}}catch(e){a.e(e)}finally{a.f()}},e.list=function(n,r){if(t(n)){var i=n[e.symbol];return r?i.filter((function(e){return e.no==r})):i}return[]},e.last=function(t,n){return e.list(t,n).slice(-1)[0]};var t=function(t){return t&&Array.isArray(t[e.symbol])}}(_r||(_r={})),function(e){e[e.Varint=0]="Varint",e[e.Bit64=1]="Bit64",e[e.LengthDelimited=2]="LengthDelimited",e[e.StartGroup=3]="StartGroup",e[e.EndGroup=4]="EndGroup",e[e.Bit32=5]="Bit32"}(wr||(wr={}));var Sr,Rr,Or,Dr=4294967296;function Mr(e){var t="-"==e[0];t&&(e=e.slice(1));var n=1e6,r=0,i=0;function a(t,a){var o=Number(e.slice(t,a));i*=n,(r=r*n+o)>=Dr&&(i+=r/Dr|0,r%=Dr)}return a(-24,-18),a(-18,-12),a(-12,-6),a(-6),[t,r,i]}function Lr(e,t){if(t>>>0<=2097151)return""+(Dr*t+(e>>>0));var n=(e>>>24|t<<8)>>>0&16777215,r=t>>16&65535,i=(16777215&e)+6777216*n+6710656*r,a=n+8147497*r,o=2*r,s=1e7;function c(e,t){var n=e?String(e):"";return t?"0000000".slice(n.length)+n:n}return i>=s&&(a+=Math.floor(i/s),i%=s),a>=s&&(o+=Math.floor(a/s),a%=s),c(o,0)+c(a,o)+c(i,1)}function Pr(e,t){if(e>=0){for(;e>127;)t.push(127&e|128),e>>>=7;t.push(e)}else{for(var n=0;n<9;n++)t.push(127&e|128),e>>=7;t.push(1)}}function xr(){var e=this.buf[this.pos++],t=127&e;if(0==(128&e))return this.assertBounds(),t;if(t|=(127&(e=this.buf[this.pos++]))<<7,0==(128&e))return this.assertBounds(),t;if(t|=(127&(e=this.buf[this.pos++]))<<14,0==(128&e))return this.assertBounds(),t;if(t|=(127&(e=this.buf[this.pos++]))<<21,0==(128&e))return this.assertBounds(),t;t|=(15&(e=this.buf[this.pos++]))<<28;for(var n=5;0!=(128&e)&&n<10;n++)e=this.buf[this.pos++];if(0!=(128&e))throw new Error("invalid varint");return this.assertBounds(),t>>>0}function Br(e){if(!e)throw new Error("BigInt unavailable, see https://github.com/timostamm/protobuf-ts/blob/v1.0.8/MANUAL.md#bigint-support")}Rr=new DataView(new ArrayBuffer(8)),Or=void 0!==globalThis.BigInt&&"function"==typeof Rr.getBigInt64&&"function"==typeof Rr.getBigUint64&&"function"==typeof Rr.setBigInt64&&"function"==typeof Rr.setBigUint64,Sr=Or?{MIN:BigInt("-9223372036854775808"),MAX:BigInt("9223372036854775807"),UMIN:BigInt("0"),UMAX:BigInt("18446744073709551615"),C:BigInt,V:Rr}:void 0;var Ur=/^-?[0-9]+$/,Fr=4294967296,Hr=2147483648,Vr=function(){function e(t,n){S(this,e),this.lo=0|t,this.hi=0|n}return O(e,[{key:"isZero",value:function(){return 0==this.lo&&0==this.hi}},{key:"toNumber",value:function(){var e=this.hi*Fr+(this.lo>>>0);if(!Number.isSafeInteger(e))throw new Error("cannot convert to safe number");return e}}]),e}(),Kr=function(e){function t(){return S(this,t),p(this,t,arguments)}return y(t,Vr),O(t,[{key:"toString",value:function(){return Sr?this.toBigInt().toString():Lr(this.lo,this.hi)}},{key:"toBigInt",value:function(){return Br(Sr),Sr.V.setInt32(0,this.lo,!0),Sr.V.setInt32(4,this.hi,!0),Sr.V.getBigUint64(0,!0)}}],[{key:"from",value:function(e){if(Sr)switch(A(e)){case"string":if("0"==e)return this.ZERO;if(""==e)throw new Error("string is no integer");e=Sr.C(e);case"number":if(0===e)return this.ZERO;e=Sr.C(e);case"bigint":if(!e)return this.ZERO;if(eSr.UMAX)throw new Error("ulong too large");return Sr.V.setBigUint64(0,e,!0),new t(Sr.V.getInt32(0,!0),Sr.V.getInt32(4,!0))}else switch(A(e)){case"string":if("0"==e)return this.ZERO;if(e=e.trim(),!Ur.test(e))throw new Error("string is no integer");var n=T(Mr(e),3),r=n[0],i=n[1],a=n[2];if(r)throw new Error("signed value for ulong");return new t(i,a);case"number":if(0==e)return this.ZERO;if(!Number.isSafeInteger(e))throw new Error("number is no integer");if(e<0)throw new Error("signed value for ulong");return new t(e,e/Fr)}throw new Error("unknown value "+A(e))}}]),t}();Kr.ZERO=new Kr(0,0);var Wr=function(e){function t(){return S(this,t),p(this,t,arguments)}return y(t,Vr),O(t,[{key:"isNegative",value:function(){return 0!=(this.hi&Hr)}},{key:"negate",value:function(){var e=~this.hi,n=this.lo;return n?n=1+~n:e+=1,new t(n,e)}},{key:"toString",value:function(){if(Sr)return this.toBigInt().toString();if(this.isNegative()){var e=this.negate();return"-"+Lr(e.lo,e.hi)}return Lr(this.lo,this.hi)}},{key:"toBigInt",value:function(){return Br(Sr),Sr.V.setInt32(0,this.lo,!0),Sr.V.setInt32(4,this.hi,!0),Sr.V.getBigInt64(0,!0)}}],[{key:"from",value:function(e){if(Sr)switch(A(e)){case"string":if("0"==e)return this.ZERO;if(""==e)throw new Error("string is no integer");e=Sr.C(e);case"number":if(0===e)return this.ZERO;e=Sr.C(e);case"bigint":if(!e)return this.ZERO;if(eSr.MAX)throw new Error("signed long too large");return Sr.V.setBigInt64(0,e,!0),new t(Sr.V.getInt32(0,!0),Sr.V.getInt32(4,!0))}else switch(A(e)){case"string":if("0"==e)return this.ZERO;if(e=e.trim(),!Ur.test(e))throw new Error("string is no integer");var n=T(Mr(e),3),r=n[0],i=n[1],a=n[2];if(r){if(a>Hr||a==Hr&&0!=i)throw new Error("signed long too small")}else if(a>=Hr)throw new Error("signed long too large");var o=new t(i,a);return r?o.negate():o;case"number":if(0==e)return this.ZERO;if(!Number.isSafeInteger(e))throw new Error("number is no integer");return e>0?new t(e,e/Fr):new t(-e,-e/Fr).negate()}throw new Error("unknown value "+A(e))}}]),t}();Wr.ZERO=new Wr(0,0);var Gr={readUnknownField:!0,readerFactory:function(e){return new jr(e)}},jr=function(){function e(t,n){S(this,e),this.varint64=Cr,this.uint32=xr,this.buf=t,this.len=t.length,this.pos=0,this.view=new DataView(t.buffer,t.byteOffset,t.byteLength),this.textDecoder=null!=n?n:new TextDecoder("utf-8",{fatal:!0,ignoreBOM:!0})}return O(e,[{key:"tag",value:function(){var e=this.uint32(),t=e>>>3,n=7&e;if(t<=0||n<0||n>5)throw new Error("illegal tag: field no "+t+" wire type "+n);return[t,n]}},{key:"skip",value:function(e){var t=this.pos;switch(e){case wr.Varint:for(;128&this.buf[this.pos++];);break;case wr.Bit64:this.pos+=4;case wr.Bit32:this.pos+=4;break;case wr.LengthDelimited:var n=this.uint32();this.pos+=n;break;case wr.StartGroup:for(var r;(r=this.tag()[1])!==wr.EndGroup;)this.skip(r);break;default:throw new Error("cant skip wire type "+e)}return this.assertBounds(),this.buf.subarray(t,this.pos)}},{key:"assertBounds",value:function(){if(this.pos>this.len)throw new RangeError("premature EOF")}},{key:"int32",value:function(){return 0|this.uint32()}},{key:"sint32",value:function(){var e=this.uint32();return e>>>1^-(1&e)}},{key:"int64",value:function(){return h(Wr,k(this.varint64()))}},{key:"uint64",value:function(){return h(Kr,k(this.varint64()))}},{key:"sint64",value:function(){var e=T(this.varint64(),2),t=e[0],n=e[1],r=-(1&t);return new Wr(t=(t>>>1|(1&n)<<31)^r,n=n>>>1^r)}},{key:"bool",value:function(){var e=T(this.varint64(),2),t=e[0],n=e[1];return 0!==t||0!==n}},{key:"fixed32",value:function(){return this.view.getUint32((this.pos+=4)-4,!0)}},{key:"sfixed32",value:function(){return this.view.getInt32((this.pos+=4)-4,!0)}},{key:"fixed64",value:function(){return new Kr(this.sfixed32(),this.sfixed32())}},{key:"sfixed64",value:function(){return new Wr(this.sfixed32(),this.sfixed32())}},{key:"float",value:function(){return this.view.getFloat32((this.pos+=4)-4,!0)}},{key:"double",value:function(){return this.view.getFloat64((this.pos+=8)-8,!0)}},{key:"bytes",value:function(){var e=this.uint32(),t=this.pos;return this.pos+=e,this.assertBounds(),this.buf.subarray(t,t+e)}},{key:"string",value:function(){return this.textDecoder.decode(this.bytes())}}]),e}();function qr(e,t){if(!e)throw new Error(t)}function zr(e){if("number"!=typeof e)throw new Error("invalid int 32: "+A(e));if(!Number.isInteger(e)||e>2147483647||e<-2147483648)throw new Error("invalid int 32: "+e)}function Xr(e){if("number"!=typeof e)throw new Error("invalid uint 32: "+A(e));if(!Number.isInteger(e)||e>4294967295||e<0)throw new Error("invalid uint 32: "+e)}function Jr(e){if("number"!=typeof e)throw new Error("invalid float 32: "+A(e));if(Number.isFinite(e)&&(e>34028234663852886e22||e<-34028234663852886e22))throw new Error("invalid float 32: "+e)}var Yr,Qr,Zr,$r={writeUnknownFields:!0,writerFactory:function(){return new ei}},ei=function(){function e(t){S(this,e),this.stack=[],this.textEncoder=null!=t?t:new TextEncoder,this.chunks=[],this.buf=[]}return O(e,[{key:"finish",value:function(){this.chunks.push(new Uint8Array(this.buf));for(var e=0,t=0;t>>0)}},{key:"raw",value:function(e){return this.buf.length&&(this.chunks.push(new Uint8Array(this.buf)),this.buf=[]),this.chunks.push(e),this}},{key:"uint32",value:function(e){for(Xr(e);e>127;)this.buf.push(127&e|128),e>>>=7;return this.buf.push(e),this}},{key:"int32",value:function(e){return zr(e),Pr(e,this.buf),this}},{key:"bool",value:function(e){return this.buf.push(e?1:0),this}},{key:"bytes",value:function(e){return this.uint32(e.byteLength),this.raw(e)}},{key:"string",value:function(e){var t=this.textEncoder.encode(e);return this.uint32(t.byteLength),this.raw(t)}},{key:"float",value:function(e){Jr(e);var t=new Uint8Array(4);return new DataView(t.buffer).setFloat32(0,e,!0),this.raw(t)}},{key:"double",value:function(e){var t=new Uint8Array(8);return new DataView(t.buffer).setFloat64(0,e,!0),this.raw(t)}},{key:"fixed32",value:function(e){Xr(e);var t=new Uint8Array(4);return new DataView(t.buffer).setUint32(0,e,!0),this.raw(t)}},{key:"sfixed32",value:function(e){zr(e);var t=new Uint8Array(4);return new DataView(t.buffer).setInt32(0,e,!0),this.raw(t)}},{key:"sint32",value:function(e){return zr(e),Pr(e=(e<<1^e>>31)>>>0,this.buf),this}},{key:"sfixed64",value:function(e){var t=new Uint8Array(8),n=new DataView(t.buffer),r=Wr.from(e);return n.setInt32(0,r.lo,!0),n.setInt32(4,r.hi,!0),this.raw(t)}},{key:"fixed64",value:function(e){var t=new Uint8Array(8),n=new DataView(t.buffer),r=Kr.from(e);return n.setInt32(0,r.lo,!0),n.setInt32(4,r.hi,!0),this.raw(t)}},{key:"int64",value:function(e){var t=Wr.from(e);return Ar(t.lo,t.hi,this.buf),this}},{key:"sint64",value:function(e){var t=Wr.from(e),n=t.hi>>31;return Ar(t.lo<<1^n,(t.hi<<1|t.lo>>>31)^n,this.buf),this}},{key:"uint64",value:function(e){var t=Kr.from(e);return Ar(t.lo,t.hi,this.buf),this}}]),e}(),ti={emitDefaultValues:!1,enumAsInteger:!1,useProtoFieldName:!1,prettySpaces:0},ni={ignoreUnknownFields:!1},ri=Symbol.for("protobuf-ts/message-type");function ii(e){for(var t=!1,n=[],r=0;r2&&void 0!==arguments[2]&&arguments[2];if(t<0)return!0;if(null==e||"object"!=A(e))return!1;this.prepare();var i=Object.keys(e),a=this.data;if(i.length>4,o=n,a=2;break;case 2:r[i++]=(15&o)<<4|(60&n)>>2,o=n,a=3;break;case 3:r[i++]=(3&o)<<6|n,a=0}}if(1==a)throw Error("invalid base64 string.");return r.subarray(0,i)}(e)}}catch(e){i=e.message}this.assert(!1,r+(i?" - "+i:""),e)}}]),e}(),ui=function(){function e(t){var n;S(this,e),this.fields=null!==(n=t.fields)&&void 0!==n?n:[]}return O(e,[{key:"write",value:function(e,t){var n,r={},i=e,a=I(this.fields);try{for(a.s();!(n=a.n()).done;){var o=n.value;if(o.oneof){var s=i[o.oneof];if(s.oneofKind===o.localName){var c="scalar"==o.kind||"enum"==o.kind?Object.assign(Object.assign({},t),{emitDefaultValues:!0}):t,u=this.field(o,s[o.localName],c);qr(void 0!==u),r[t.useProtoFieldName?o.name:o.jsonName]=u}}else{var l=this.field(o,i[o.localName],t);void 0!==l&&(r[t.useProtoFieldName?o.name:o.jsonName]=l)}}}catch(e){a.e(e)}finally{a.f()}return r}},{key:"field",value:function(e,t,n){var r=void 0;if("map"==e.kind){qr("object"==A(t)&&null!==t);var i={};switch(e.V.kind){case"scalar":for(var a=0,o=Object.entries(t);a0)&&(r=i)}else if(e.repeat){qr(Array.isArray(t));var N=[];switch(e.kind){case"scalar":for(var C=0;C0||n.emitDefaultValues)&&(r=N)}else switch(e.kind){case"scalar":r=this.scalar(e.T,t,e.name,e.opt,n.emitDefaultValues);break;case"enum":r=this.enum(e.T(),t,e.name,e.opt,n.emitDefaultValues,n.enumAsInteger);break;case"message":r=this.message(e.T(),t,e.name,n)}return r}},{key:"enum",value:function(e,t,n,r,i,a){if("google.protobuf.NullValue"==e[0])return i||r?null:void 0;if(void 0!==t){if(0!==t||i||r)return qr("number"==typeof t),qr(Number.isInteger(t)),a||!e[1].hasOwnProperty(t)?t:e[2]?e[2]+e[1][t]:e[1][t]}else qr(r)}},{key:"message",value:function(e,t,n,r){return void 0===t?r.emitDefaultValues?null:void 0:e.internalJsonWrite(t,r)}},{key:"scalar",value:function(e,t,n,r,i){if(void 0!==t){var a=i||r;switch(e){case Yr.INT32:case Yr.SFIXED32:case Yr.SINT32:return 0===t?a?0:void 0:(zr(t),t);case Yr.FIXED32:case Yr.UINT32:return 0===t?a?0:void 0:(Xr(t),t);case Yr.FLOAT:Jr(t);case Yr.DOUBLE:return 0===t?a?0:void 0:(qr("number"==typeof t),Number.isNaN(t)?"NaN":t===Number.POSITIVE_INFINITY?"Infinity":t===Number.NEGATIVE_INFINITY?"-Infinity":t);case Yr.STRING:return""===t?a?"":void 0:(qr("string"==typeof t),t);case Yr.BOOL:return!1===t?!a&&void 0:(qr("boolean"==typeof t),t);case Yr.UINT64:case Yr.FIXED64:qr("number"==typeof t||"string"==typeof t||"bigint"==typeof t);var o=Kr.from(t);if(o.isZero()&&!a)return;return o.toString();case Yr.INT64:case Yr.SFIXED64:case Yr.SINT64:qr("number"==typeof t||"string"==typeof t||"bigint"==typeof t);var s=Wr.from(t);if(s.isZero()&&!a)return;return s.toString();case Yr.BYTES:return qr(t instanceof Uint8Array),t.byteLength?function(e){for(var t,n="",r=0,i=0,a=0;a>2],i=(3&t)<<4,r=1;break;case 1:n+=Ir[i|t>>4],i=(15&t)<<2,r=2;break;case 2:n+=Ir[i|t>>6],n+=Ir[63&t],r=0}return r&&(n+=Ir[i],n+="=",1==r&&(n+="=")),n}(t):a?"":void 0}}else qr(r)}}]),e}();function li(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Qr.STRING;switch(e){case Yr.BOOL:return!1;case Yr.UINT64:case Yr.FIXED64:return si(Kr.ZERO,t);case Yr.INT64:case Yr.SFIXED64:case Yr.SINT64:return si(Wr.ZERO,t);case Yr.DOUBLE:case Yr.FLOAT:return 0;case Yr.BYTES:return new Uint8Array(0);case Yr.STRING:return"";default:return 0}}var di=function(){function e(t){S(this,e),this.info=t}return O(e,[{key:"prepare",value:function(){var e;if(!this.fieldNoToField){var t=null!==(e=this.info.fields)&&void 0!==e?e:[];this.fieldNoToField=new Map(t.map((function(e){return[e.no,e]})))}}},{key:"read",value:function(e,t,n,r){this.prepare();for(var i=void 0===r?e.len:e.pos+r;e.pos1&&void 0!==arguments[1]?arguments[1]:this.defaultCheckDepth;return this.refTypeCheck.is(e,t,!1)}},{key:"isAssignable",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.defaultCheckDepth;return this.refTypeCheck.is(e,t,!0)}},{key:"mergePartial",value:function(e,t){hi(this,e,t)}},{key:"fromBinary",value:function(e,t){var n=function(e){return e?Object.assign(Object.assign({},Gr),e):Gr}(t);return this.internalBinaryRead(n.readerFactory(e),e.byteLength,n)}},{key:"fromJson",value:function(e,t){return this.internalJsonRead(e,function(e){return e?Object.assign(Object.assign({},ni),e):ni}(t))}},{key:"fromJsonString",value:function(e,t){var n=JSON.parse(e);return this.fromJson(n,t)}},{key:"toJson",value:function(e,t){return this.internalJsonWrite(e,function(e){return e?Object.assign(Object.assign({},ti),e):ti}(t))}},{key:"toJsonString",value:function(e,t){var n,r=this.toJson(e,t);return JSON.stringify(r,null,null!==(n=null==t?void 0:t.prettySpaces)&&void 0!==n?n:0)}},{key:"toBinary",value:function(e,t){var n=function(e){return e?Object.assign(Object.assign({},$r),e):$r}(t);return this.internalBinaryWrite(e,n.writerFactory(),n).finish()}},{key:"internalJsonRead",value:function(e,t,n){if(null!==e&&"object"==A(e)&&!Array.isArray(e)){var r=null!=n?n:this.create();return this.refJsonReader.read(e,r,t),r}throw new Error("Unable to parse message ".concat(this.typeName," from JSON ").concat(br(e),"."))}},{key:"internalJsonWrite",value:function(e,t){return this.refJsonWriter.write(e,t)}},{key:"internalBinaryWrite",value:function(e,t,n){return this.refBinWriter.write(e,t,n),t}},{key:"internalBinaryRead",value:function(e,t,n,r){var i=null!=r?r:this.create();return this.refBinReader.read(e,i,n,t),i}}]),e}(),Ii=new(function(e){function t(){return S(this,t),p(this,t,["proto.com.linkedin.events.common.TrackingId",[{no:1,name:"fixedValue",kind:"scalar",T:12}],{"avro.translatedFieldCount":1,"avro.fixedSize":16}])}return y(t,wi),O(t,[{key:"create",value:function(e){var t=globalThis.Object.create(this.messagePrototype);return t.fixedValue=new Uint8Array(0),void 0!==e&&hi(this,t,e),t}},{key:"internalBinaryRead",value:function(e,t,n,r){for(var i=null!=r?r:this.create(),a=e.pos+t;e.pos0?r.join(", "):"unknown (no testIds extracted)"}catch(e){var s=e instanceof Error?e.message:String(e);return"unknown (payload parse error: ".concat(s,")")}}},{key:"parseGrpcResponseForRetry",value:function(e,t,n,r){try{var i=JSON.parse(e);if(!i||!i.responses||0===i.responses.length)return null;var a=i.responses.reduce((function(e,t){return"ResponseStatus_RETRYABLE_FAILURE"===t.responseStatus&&e.add(String(t.id)),e}),new Set);return 0===a.size?null:this.filterPayloadByIds(t,a)}catch(i){var o=i instanceof Error?i.message:String(i);return en("[RetryBeaconManager] parseGrpcResponseForRetry - Parse failed",new Error("Failed to parse gRPC response. Error: ".concat(o,". StatusCode: ").concat(r,". ResponseSize: ").concat(e.length," bytes. PayloadSize: ").concat(t.length," bytes\n TestIds: ").concat(this.extractTestIdFromPayload(t))),n),null}}},{key:"filterPayloadByIds",value:function(e,t){try{var n=JSON.parse(e);if(!n.requests||!Array.isArray(n.requests))return en('[RetryBeaconManager] Payload missing "requests" array',JSON.stringify(n)),null;var r=n.requests.filter((function(e){return e.id&&t.has(String(e.id))}));return 0===r.length?null:JSON.stringify(_(_({},n),{},{requests:r}))}catch(e){return en("[RetryBeaconManager] Error filtering payload by IDs",e),null}}}],[{key:"getInstance",value:function(){return e.instance||(e.instance=new e),e.instance}}]),e}();D(Qi,"instance",null);var Zi=function(){function e(){S(this,e),D(this,"clientContext",void 0),D(this,"enumConverter",void 0),this.enumConverter=new pr}return O(e,[{key:"getOrCreateClientContext",value:function(e,t){return this.clientContext||(this.clientContext=this.createClientContext(e,t)),this.clientContext}},{key:"getEventHeaderContext",value:function(e){var t,n=e.clientApplicationInstance,r=e.applicationViewerUrn,i=e.server,a=e.service,o=e.version,s=e.appName;try{if(n){var c=Array.isArray(n.trackingId)&&16===n.trackingId.length?function(e){if(!Array.isArray(e))throw new Error("[CWT] Input must be an array");if(e.length<16)throw new Error("[CWT] Input array must have at least 16 elements");var t=e.filter((function(e){return"number"==typeof e&&Number.isFinite(e)}));if(t.length<16)throw new Error("[CWT] Array must contain at least 16 valid numbers");var n=Uint8Array.from(t.slice(0,16),(function(e){return(e+256)%256})),r=String.fromCharCode.apply(String,k(n));return btoa(r)}(n.trackingId):n.trackingId;t={applicationUrn:null==n?void 0:n.applicationUrn,version:null==n?void 0:n.version,trackingId:{fixedValue:c}}}return{server:i,serviceName:a,publicAppVersion:o,clientApplicationInstance:t,applicationViewerUrn:r,appName:s}}catch(t){en("[GRPC] getEventHeaderContext version ".concat(null==e?void 0:e.version,", appName ").concat(null==e?void 0:e.appName," and clientApplicationInstance.trackingId for ").concat(null==n?void 0:n.trackingId," "),t)}}},{key:"getUserRequestHeaderContext",value:function(e){var t,n,r=e.theme,i=e.interfaceLocale,a=e.isBrowserPersistentRetryEnabled,o=e.isFlushOnCloseBrowserTabEnabled,s=e.clientDeviceType,c=e.timeZoneOffsetMinutes;try{r&&(t=this.enumConverter.convert(r,"Theme","theme")),s&&(n=this.enumConverter.convert(s,"ClientDeviceType","clientDeviceType"))}catch(e){en('[ClientContextFactory] Failed to convert enum values - theme: "'.concat(r,'", clientDeviceType: "').concat(s,'"'),e),t=void 0,n=void 0}return{theme:t,interfaceLocale:i,isBrowserPersistentRetryEnabled:a,isFlushOnCloseBrowserTabEnabled:o,clientDeviceType:n,timeZoneOffsetMinutes:c}}},{key:"createClientContext",value:function(e,t){return{eventHeaderContext:this.getEventHeaderContext(e),userRequestHeaderContext:this.getUserRequestHeaderContext(t)}}}],[{key:"getInstance",value:function(){return e.instance||(e.instance=new e),e.instance}}]),e}();D(Zi,"instance",void 0);var $i=function(){function e(t,n){S(this,e),D(this,"endpoint",void 0),D(this,"flushTimerId",void 0),D(this,"queue",[]),D(this,"flushPromise",Promise.resolve()),D(this,"clientContext",void 0),D(this,"requestId",1),D(this,"beaconFunc",void 0),D(this,"protoModelCache",{}),D(this,"flushDebounceDelayMs",void 0),D(this,"appId",void 0),this.endpoint=(null==t?void 0:t.endpoint)||"https://www.linkedin.com/rest/trackingApiService/track",this.beaconFunc=Qi.getInstance().getOrCreateBeaconFunc(),this.flushDebounceDelayMs=null==t?void 0:t.flushDebounceTimer,this.appId=n}var t,n,r;return O(e,[{key:"getProtoTSModel",value:function(e){if(void 0!==this.protoModelCache[e])return this.protoModelCache[e];var t=null;switch(e){case"GenericImpressionEvent":t=Xi;break;case"GenericActionEvent":t=ji}return t?(this.protoModelCache[e]=t,t):(this.protoModelCache[e]=null,null)}},{key:"removeClientContextDuplicateFields",value:function(e){if(!e)return e;for(var t=0,n=ur;t0&&en("[GRPC] Sanitization errors for ".concat(n),a.errors.join("; ")),o=r.create(a.sanitizedData),"function"==typeof r.toBinary){e.next=10;break}throw new Error("Proto model ".concat(n," does not support binary encoding"));case 10:return e.abrupt("return",r.toBinary(o));case 13:e.prev=13,e.t0=e.catch(0),en("[GRPC] Proto serialization failed for ".concat(n),e.t0 instanceof Error?e.t0.message:String(e.t0));case 16:case"end":return e.stop()}}),e,this,[[0,13]])}))),function(e,t){return r.apply(this,arguments)})},{key:"convertJsonToBytes",value:function(e){var t=JSON.stringify(e);return(new TextEncoder).encode(t)}},{key:"convertBytesToBase64",value:function(e,t){if(!e||0===e.length)return"";try{for(var n=1024,r=Math.ceil(e.length/n),i=new Array(r),a=0;a1&&void 0!==T[1]&&T[1],e.prev=1,r=t.eventBody,i=t.eventInfo,a=t.clientBreadcrumbs,o=void 0===a?[]:a,this.clientContext||(s=Object.assign({},r.header,{appName:this.appId}),c=Object.assign({},r.requestHeader),this.clientContext=Zi.getInstance().getOrCreateClientContext(s,c)),!((u=i.eventName)in Yn)){e.next=11;break}return e.next=8,this.convertJsonToProtoBytes(r,u);case 8:e.t0=e.sent,e.next=12;break;case 11:e.t0=this.convertJsonToBytes(r);case 12:if(l=e.t0){e.next=15;break}return e.abrupt("return");case 15:return d=this.convertBytesToBase64(l,"Event:".concat(u)),f={name:u,payload:d,isPegasusEncoded:!(u in Yn)},h=this.packageClientBreadcrumbs(o),p={id:this.requestId++,payload:f,clientBreadCrumbs:h||[],isShadowEvent:n},e.abrupt("return",p);case 22:e.prev=22,e.t1=e.catch(1),m=e.t1 instanceof Error?e.t1.message:String(e.t1),y=(null==t||null===(v=t.eventInfo)||void 0===v?void 0:v.eventName)||"unknown",E=(null==t||null===(g=t.clientBreadcrumbs)||void 0===g?void 0:g.length)||0,en("[GRPC] packageEventBody failed for ".concat(y),new Error("Failed to package event. Event: ".concat(y,". Error: ").concat(m,". BreadcrumbCount: ").concat(E)));case 28:case"end":return e.stop()}}),e,this,[[1,22]])}))),function(e){return n.apply(this,arguments)})},{key:"packageRequest",value:(t=x(L().mark((function e(t){var n,r,i=arguments;return L().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=i.length>1&&void 0!==i[1]&&i[1],e.next=3,this.packageEventBody(t,n);case 3:if((r=e.sent)&&sn(r)){e.next=6;break}return e.abrupt("return");case 6:this.queue.push(r),this.attemptToFlush();case 8:case"end":return e.stop()}}),e,this)}))),function(e){return t.apply(this,arguments)})},{key:"buildRequestPayload",value:function(e){var t={clientContext:this.clientContext,requests:e};return JSON.stringify(t)}},{key:"attemptToFlush",value:function(){var e=this;if(this.queue.length>=20)this.flushEvents();else{this.flushTimerId&&clearTimeout(this.flushTimerId);var t=this.flushDebounceDelayMs||3;this.flushTimerId=setTimeout((function(){return e.flushEvents()}),t)}}},{key:"getRequestHeaders",value:function(){return{"content-type":"application/json",Accept:"application/json"}}},{key:"flushEvents",value:function(){var e=this;this.flushTimerId&&(clearTimeout(this.flushTimerId),this.flushTimerId=void 0),this.flushPromise=this.flushPromise.then(x(L().mark((function t(){var n,r,i,a,o,s,c;return L().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(0!==e.queue.length){t.next=2;break}return t.abrupt("return");case 2:n=k(e.queue),e.queue=[];try{r=e.buildRequestPayload(n),i=e.getRequestHeaders(),$t()?Ve(e.endpoint,r,{headers:i}):He()&&e.beaconFunc(e.endpoint,r,i)}catch(e){s=e instanceof Error?e.message:String(e),c={message:s,queueSize:n.length,payloadSize:(null===(a=r)||void 0===a?void 0:a.length)||0,errorType:(null==e||null===(o=e.constructor)||void 0===o?void 0:o.name)||"Unknown"},en("[GRPC] flushEvents failed",new Error("Failed to flush events. Error: ".concat(s,". QueueSize: ").concat(c.queueSize," events. PayloadSize: ").concat(c.payloadSize," bytes. ErrorType: ").concat(c.errorType)))}case 5:case"end":return t.stop()}}),t)}))))}},{key:"forceFlush",value:function(){this.flushTimerId&&(clearTimeout(this.flushTimerId),this.flushTimerId=void 0),this.flushEvents()}}]),e}(),ea=function(){function e(t,n,r){S(this,e),D(this,"requestManager",void 0),D(this,"transporterKey",void 0),this.transporterKey=t,this.requestManager=new $i(n,r)}return O(e,[{key:"onEventReceived",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];this.executeWithTryCatch((function(){var r;null===(r=t.requestManager)||void 0===r||r.packageRequest(e,n)}))}},{key:"forceFlush",value:function(){var e;null===(e=this.requestManager)||void 0===e||e.forceFlush()}},{key:"onDestroy",value:function(){this.requestManager=void 0,e.transporterMap.delete(this.transporterKey)}},{key:"executeWithTryCatch",value:function(e){try{return e()}catch(e){en("[GRPC-CWT] Rest transporter [".concat(this.transporterKey,"] failed"),JSON.stringify(e))}}}],[{key:"getInstance",value:function(t,n,r){var i=this.transporterMap.get(t);return i||(i=new e(t,n,r),this.transporterMap.set(t,i),i)}}]),e}();D(ea,"transporterMap",new Map);var ta=function(){function e(){S(this,e)}return O(e,null,[{key:"createConfig",value:function(){var e,t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=null!==(e=n.timeoutSeconds)&&void 0!==e?e:3;return{endpoint:n.endpoint||this.createEndpoint(n.environment),batchSize:null!==(t=n.batchSize)&&void 0!==t?t:20,flushDebounceTimer:1e3*r}}},{key:"createEndpoint",value:function(e){return"".concat("development"===e?Rt:St).concat("rest/trackingApiService/track")}}]),e}(),na=function(){function e(){S(this,e),D(this,"decoder",void 0),D(this,"isConfigured",!1),D(this,"transporters",new Map),D(this,"appId",void 0),this.decoder=new Qn}return O(e,[{key:"configure",value:function(e,t){try{this.appId=t.appId,this.decoder.configure(e),this.isConfigured=!0;var n=this.decoder.getHighPriorityTimeout(),r=this.decoder.getNormalPriorityTimeout();if(this.clearTransporters(),n){var i=ta.createConfig({timeoutSeconds:n,environment:t.environment,batchSize:1});this.initializeTransporter(Mt,i)}if(r){var a=ta.createConfig({timeoutSeconds:r,environment:t.environment,batchSize:20});this.initializeTransporter(Lt,a)}}catch(e){console.warn("Failed to configure event routing:",e),this.isConfigured=!1}}},{key:"clearTransporters",value:function(){this.transporters.forEach((function(e){e.forceFlush(),e.onDestroy()})),this.transporters.clear()}},{key:"initializeTransporter",value:function(e,t){var n=ea.getInstance(e,t,this.appId);this.transporters.set(e,n)}},{key:"routeEvent",value:function(e){var t=this.getRoutingDecision(e);t.shouldSendToTrackingApi&&this.performRouting(e,t)}},{key:"getRoutingDecision",value:function(e){var t,n=Nn(null==e||null===(t=e.eventInfo)||void 0===t?void 0:t.eventName);if(!n)return en("[EventRoutingService] Invalid or missing event name","EventInfo: ".concat(JSON.stringify(null==e?void 0:e.eventInfo))),{shouldSendToTrackingApi:!1,eventName:"",lixMode:Xn.Control,isDualModeEvent:!1};var r=this.extractBreadcrumbNames(e)||[],i=this.getLixMode(n,r);return i===Xn.Control?{shouldSendToTrackingApi:!1,eventName:n,lixMode:i,isDualModeEvent:!1}:{shouldSendToTrackingApi:!0,eventName:n,lixMode:i,isDualModeEvent:i===Xn.Dual}}},{key:"performRouting",value:function(e,t){var n=this.getTransporterForEvent(t.eventName);n?n.onEventReceived(e,t.isDualModeEvent):en("[EventRoutingService] No transporter available for event","Event: ".concat(t.eventName))}},{key:"getTransporterForEvent",value:function(e){return this.isConfigured?this.decoder.isHighPriorityEvent(e)&&this.transporters.has(Mt)?this.transporters.get(Mt):this.transporters.get(Lt)||null:null}},{key:"extractBreadcrumbNames",value:function(e){var t,n=[],r=null==e||null===(t=e.eventBody)||void 0===t?void 0:t.clientBreadcrumbPointers;if(Array.isArray(r)){var i,a=I(r);try{for(a.s();!(i=a.n()).done;){var o=i.value;if(o&&void 0!==o.type&&null!==o.type){var s=this.convertToBreadcrumbName(o.type);s&&n.push(s)}}}catch(e){a.e(e)}finally{a.f()}}return n}},{key:"convertToBreadcrumbName",value:function(e){if(!e)return en("[EventRoutingService] Invalid breadcrumb type value","Received null/undefined typeValue in convertToBreadcrumbName"),null;var t=String(e),n=this.convertToPascal(t);return"".concat(n,"Breadcrumb")}},{key:"convertToPascal",value:function(e){return e.toLowerCase().split("_").map((function(e){return e.charAt(0).toUpperCase()+e.slice(1)})).join("")}},{key:"getLixMode",value:function(e,t){return this.isConfigured?this.decoder.getEventLixMode(e,t):Xn.Control}},{key:"forceFlush",value:function(){this.transporters.forEach((function(e){e.forceFlush()}))}},{key:"destroy",value:function(){this.clearTransporters(),this.isConfigured=!1}}],[{key:"getInstance",value:function(){return e.instance||(e.instance=new e),e.instance}}]),e}();D(na,"instance",void 0);var ra=["PageViewEvent","SponsoredImpressionEvent","JobViewEvent"],ia="PageViewEvent",aa=function(){function e(t){var n,r,i,a,o=this;S(this,e),D(this,"host",void 0),D(this,"queue",void 0),D(this,"preContextQueue",void 0),D(this,"debounceTimer",void 0),D(this,"unloadHandlers",void 0),D(this,"maxQueueSize",void 0),D(this,"flushDebounceTime",void 0),D(this,"trackingEventListeners",[]),D(this,"onHideHandler",(function(){o.forceFlush()})),D(this,"networkTransporter",void 0),D(this,"clientMonitoringConn",void 0),D(this,"clientGlobalSequenceNumberCounter",void 0),D(this,"clientTopicLocalSequenceNumberCountersMap",{}),D(this,"isTimerRunning",void 0),D(this,"trackingEndpoint",void 0),D(this,"isEvenBatchEnabled",void 0),D(this,"transportKey",void 0),D(this,"telemetry",void 0),D(this,"_eventRoutingService",void 0),this.host=t,this.queue=[],this.preContextQueue=[],this.unloadHandlers=[];var s=t.batching,c=null!==(n=null==s?void 0:s.evenBatchEnabled)&&void 0!==n&&n,u="development"===t.environment||(null===(r=t.api)||void 0===r||null===(r=r.location)||void 0===r||null===(r=r.host)||void 0===r?void 0:r.indexOf("-ei."))>-1?"https://www.linkedin-ei.com/li/track/validate":t.endpoint||"https://www.linkedin.com/li/track";this.trackingEndpoint=function(e,t){return/linkedin(?:-ei)?\.cn/.test(t)?e.replace(/\/\/(\S+?)\.linkedin(-ei)?\.com/,"//$1.linkedin$2.cn"):e}(u,null===(i=t.api)||void 0===i||null===(i=i.location)||void 0===i?void 0:i.host),this.maxQueueSize=s&&s.maxSize||1,this.flushDebounceTime=s&&s.debounceTime||0,Ct.on(bt,this.onHideHandler),this.networkTransporter=new gn(t),this.isLixEnabled("pemberly.tracking.monitoring")&&t.clientMonitoringConfig&&!t.inactive&&(this.clientMonitoringConn=Rn(t)),this.getSequenceNumberFromIDB(),this.updateSequenceNumberOnExit(),this.isTimerRunning=!1,this.isEvenBatchEnabled=this.isLixEnabled("pemberly.tracking.even-batch")||c,(t.observabilityEnabled||(null===(a=t.__getLixTreatment)||void 0===a?void 0:a.call(t,Ot))===Dt)&&(this.telemetry=Jn.getInstance(t))}return O(e,[{key:"checkAndEnablePersistentRetry",value:function(e){var t,n,r=(t=this.clientMonitoringConn,{onIntermediateResult:function(e,n){var r;if(t&&!t.isDestroyed())try{if(r=JSON.parse(n),!Array.isArray(r)||0===r.length)return;e.statusCode&&t.logNetworkResponseCode(e.statusCode),!0===e.drop&&r.forEach((function(n){var r,i=n.eventInfo.eventName,a=n.eventInfo.topicName||i,o="rawError"in e?e.rawError:"null",s=["type: ".concat(e.type),"statusCode: ".concat(e.statusCode||"null"),"drop: ".concat(String(e.drop)),"rawError: ".concat(o)].join(", ");t.logFailedEvent(An.UNKNOWN_EXECUTION_ERROR,{eventName:i,topicName:a},s,null!==(r=n.eventBody.header.clientMonitoringInstanceEventNumber)&&void 0!==r?r:-1)}))}catch(e){}},onBeforeRetry:function(e){var n;if(t&&!t.isDestroyed())try{if(n=JSON.parse(e),!Array.isArray(n)||0===n.length||!n[0].eventBody.header.clientMonitoringInstanceId)return;var r=n[0].eventBody.header.clientMonitoringInstanceId,i=n.length;t.logPersistedEventSent(r,i)}catch(e){}},onResult:function(e,n){var r;if(t)try{if(r=JSON.parse(n),!Array.isArray(r)||0===r.length||!r[0].eventBody.header.clientMonitoringInstanceId)return;var i=r[0].eventBody.header.clientMonitoringInstanceId;e.statusCode&&t.logPersistedNetworkResponseCode(i,e.statusCode),!0===e.drop&&r.forEach((function(n){var r=n.eventInfo.eventName,a=n.eventInfo.topicName||r,o="rawError"in e?e.rawError:"null",s=["type: ".concat(e.type),"statusCode: ".concat(e.statusCode||"null"),"drop: ".concat(String(e.drop)),"rawError: ".concat(o)].join(", ");t.logPersistedFailedEvent(i,An.UNKNOWN_EXECUTION_ERROR,{eventName:r,topicName:a},s,n.eventBody.header.clientMonitoringInstanceEventNumber)}))}catch(e){}}});this.telemetry&&(r=function(){for(var e=arguments.length,t=new Array(e),n=0;n0&&void 0!==arguments[0]?arguments[0]:1;this.populatePreContextQueue({pageInstance:jt(U),pageKey:U}).forEach((function(e){var n;t.queue.push(e),null===(n=t.telemetry)||void 0===n||n.onEventReceived(e)})),this.isEvenBatchEnabled?1===n?this.sendPayload(void 0,!0):this.sendPayload():this.flush(!0),1===n&&(null===(e=this.telemetry)||void 0===e||e.forceFlush(),this.eventRoutingService.forceFlush())}},{key:"isLixEnabled",value:function(e){var t,n;return"enabled"===(null===(t=(n=this.host).__getLixTreatment)||void 0===t?void 0:t.call(n,e))}},{key:"getSequenceNumberFromIDB",value:function(){var e=this;Zt("read").then((function(t){var n;e.clientGlobalSequenceNumberCounter=null!==(n=null==t?void 0:t.sequenceNumber)&&void 0!==n?n:0,ra.forEach((function(n){var r;e.clientTopicLocalSequenceNumberCountersMap[n]=null!==(r=null==t?void 0:t[n])&&void 0!==r?r:0}))})).catch((function(e){en("sequence-number:idb-read",e)}))}},{key:"updateSequenceNumberToIDB",value:function(){Zt("update",this.clientGlobalSequenceNumberCounter,this.clientTopicLocalSequenceNumberCountersMap).catch((function(e){en("sequence-number:idb-update",e)}))}},{key:"updateSequenceNumberOnExit",value:function(){var e=this;"undefined"!=typeof window&&"undefined"!=typeof document&&window.addEventListener("beforeunload",(function t(){e.updateSequenceNumberToIDB(),window.removeEventListener("beforeunload",t)}))}},{key:"prepareCompleteEnvelopeQueue",value:function(e){var t=this,n=e.meta.context=Jt(e.meta.context,this.host.api);return"function"==typeof e.body&&(e.body=e.body(n)),this.preContextQueue.length>0&&this.populatePreContextQueue(n).forEach((function(e){var n;t.queue.push(e),null===(n=t.telemetry)||void 0===n||n.onEventReceived(e)})),e}},{key:"envelop",value:function(e,t,n){var r=this.host,i=r.appId,a=r.api,o={eventBody:t,eventInfo:"string"==typeof e?{appId:i,eventName:e,topicName:e}:a.assign({appId:i},e)};return n.length>0&&this.host.api.assign(o,{clientBreadcrumbs:n}),o}},{key:"getBreadcrumbs",value:function(e){return e.clientBreadcrumbs||[]}},{key:"getGenericEventBody",value:function(e){var t,n=this.host,r=n.appVersion,i=n.theme,a=n.locale,o=n.api,s=o.location,c=o.document,u=o.assign,l=e.meta.context,d=l.pageKey,f=l.pageInstance,h=function(e){return"string"==typeof e?e===ia:e.eventName===ia}(e.id)&&(null===(t=e.body.requestHeader)||void 0===t?void 0:t.pageKey)||d,p=e.meta.requestHeader||{referer:c.referrer,path:"".concat(s.pathname).concat(s.search)},v=p.referer,g=p.path,m=null;"string"!=typeof a&&null!==this.host.locale||(m=a);var y={interfaceLocale:m,pageKey:h,referer:v,path:g,isFlushOnCloseBrowserTabEnabled:!$t()&&(He()||"undefined"!=typeof navigator&&"sendBeacon"in navigator),isBrowserPersistentRetryEnabled:this.networkTransporter.isBrowserPersistentRetryEnabled(),clientDeviceType:"DESKTOP",timeZoneOffsetMinutes:-1*(new Date).getTimezoneOffset(),theme:i},E={pageInstance:f,time:e.meta.time,version:r,server:"",service:"",guid:Gt(),memberId:0};"number"==typeof this.clientGlobalSequenceNumberCounter&&u(E,{clientGlobalSequenceNumber:this.clientGlobalSequenceNumberCounter});var T=kn(e.id);if(ra.includes(T)){var b=this.clientTopicLocalSequenceNumberCountersMap[T];"number"==typeof b&&u(E,{clientTopicLocalSequenceNumber:b})}var _={header:u(E,e.meta.header||{}),requestHeader:u(y,e.meta.requestHeader||{})},w=e.meta.clientMonitoringInstanceId,I=e.meta.clientMonitoringInstanceEventNumber;return w&&u(_.header,{clientMonitoringInstanceId:w,clientMonitoringInstanceEventNumber:I}),u(e.body,_)}},{key:"addTestIdInHeader",value:function(e){var t;null!==(t=e.eventBody)&&void 0!==t&&t.header&&function(e){return null==e||""===e||"0"===e||"false"===e||0===e||!1===e||"string"==typeof e&&""===e.trim()}(e.eventBody.header.testId)&&(e.eventBody.header.testId=Gt())}},{key:"populatePreContextQueue",value:function(e){var t,n=this.preContextQueue;return this.preContextQueue=[],null===(t=this.clientMonitoringConn)||void 0===t||t.logEventReadyToSend(n.length),n.map((function(t){return t.meta.context=e,"function"==typeof t.body&&(t.body=t.body(e)),t}))}},{key:"trigger",value:function(e,t){this.trackingEventListeners.forEach((function(n){return n(e,t)}))}},{key:"requestFlush",value:function(e){var t=this;e((function(){t.forceFlush(0)}),{timeout:1e4})}},{key:"flush",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=this.host.api.requestIdleCallback;e||!t?this.sendPayload(void 0,!0):this.requestFlush(t)}},{key:"batchFire",value:function(){var e=this;this.queue.length>this.maxQueueSize?this.flush():(this.debounceTimer&&clearTimeout(this.debounceTimer),this.debounceTimer=setTimeout((function(){return e.flush()}),this.flushDebounceTime))}},{key:"sendPayload",value:function(e){var t,n=this,r=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(this.isEvenBatchEnabled)if(Array.isArray(e)&&e.length>0)t=e;else{var i=this.maxQueueSize+1;this.queue.length>0&&(this.queue.length<=i||r)?(t=this.queue,this.queue=[]):t=this.queue.splice(0,i)}else Array.isArray(e)&&e.length>0?t=e:(t=this.queue,this.queue=[]);if(0!==t.length){"undefined"!=typeof window&&!1===this.isTimerRunning&&(this.isTimerRunning=!0,setInterval((function(){n.updateSequenceNumberToIDB()}),5e3));var a,o,s,c=[],u=[];if(t.forEach((function(e){var t=n.getGenericEventBody(e),r=n.getBreadcrumbs(e),i=n.envelop(e.id,t,r);n.trigger(i,e.meta);var a=n.getEventRoutingDecision(i);if(a&&a.shouldSendToTrackingApi)if(a.lixMode===Xn.Dual){n.addTestIdInHeader(i);var o=tn(i);n.eventRoutingService.routeEvent(o)}else n.eventRoutingService.routeEvent(i);var s=i.eventInfo.eventName;a&&a.lixMode===Xn.Enabled||("LixTreatmentsEvent"===s||"JavaScriptErrorEvent"===s?c.push(i):u.push(i)),"number"==typeof n.clientGlobalSequenceNumberCounter&&n.clientGlobalSequenceNumberCounter++;var l=kn(e.id);ra.includes(l)&&"number"==typeof n.clientTopicLocalSequenceNumberCountersMap[l]&&n.clientTopicLocalSequenceNumberCountersMap[l]++})),!this.host.inactive)this.clientMonitoringConn&&(this.clientMonitoringConn.logEventSent(c.length+u.length),a=this.clientMonitoringConn,o={onResult:function(e,t){a&&!a.isDestroyed()&&(e.statusCode&&a.logNetworkResponseCode(e.statusCode),!0===e.drop&&t.forEach((function(t){var n=t.eventInfo.eventName,r=t.eventInfo.topicName||n,i="rawError"in e?e.rawError:"null",o=["type: ".concat(e.type),"statusCode: ".concat(e.statusCode||"null"),"drop: ".concat(String(e.drop)),"rawError: ".concat(i)].join(", ");null==a||a.logFailedEvent(An.UNKNOWN_EXECUTION_ERROR,{eventName:n,topicName:r},o,t.eventBody.header.clientMonitoringInstanceEventNumber||-1)})))}}),this.telemetry&&(o=function(){for(var e=arguments.length,t=new Array(e),n=0;n8&&void 0!==arguments[8]&&arguments[8],g=arguments.length>9?arguments[9]:void 0;if(S(this,e),D(this,"transporter",void 0),D(this,"delegate",void 0),D(this,"viewSpecs",void 0),D(this,"transportConfig",void 0),D(this,"dynamicTransporterSupportLixKey",void 0),D(this,"domain",void 0),D(this,"trackingAppName",void 0),D(this,"dynamicTransporterSupportLixValue",void 0),D(this,"observabilityEnabled",void 0),D(this,"grpcRestSupportLixVariant",void 0),D(this,"currentContext",void 0),D(this,"appState",void 0),D(this,"referrer",void 0),D(this,"previousAppContext",void 0),D(this,"customTransporters",void 0),D(this,"clientMonitoringConn",void 0),D(this,"dynamicTransporterSupportEnabled",void 0),D(this,"telemetry",void 0),D(this,"eventRoutingService",void 0),this.transporter=t,this.delegate=n,this.viewSpecs=r,this.transportConfig=i,this.dynamicTransporterSupportLixKey=a,this.domain=o,this.trackingAppName=s,this.dynamicTransporterSupportLixValue=c,this.observabilityEnabled=v,this.grpcRestSupportLixVariant=g,this.appState={},this.customTransporters={},this.transportConfig={},this.dynamicTransporterSupportEnabled=!1,a?this.dynamicTransporterSupportEnabled=on(null===(h=(p=t.host).__getLixTreatment)||void 0===h?void 0:h.call(p,a)):c&&(this.dynamicTransporterSupportEnabled=!!s&&c),this.dynamicTransporterSupportEnabled){var m=null==va?void 0:va["".concat(null==s?void 0:s.toLowerCase(),"TransporterConfig")];sn(m)?this.transportConfig=m:this.transportConfig=i}(v||(null===(u=(l=t.host).__getLixTreatment)||void 0===u?void 0:u.call(l,Ot))===Dt)&&(this.telemetry=Jn.getInstance(t.host)),dn(g)&&(fn(g)||(this.eventRoutingService=na.getInstance(),this.eventRoutingService.configure(g,t.host)));var y={observabilityEnabled:!!this.telemetry},E={eventRoutingService:this.eventRoutingService};if(n&&n.customTransporterHosts)for(var b in n.customTransporterHosts)if(Object.prototype.hasOwnProperty.call(n.customTransporterHosts,b)){var w=this.transporter.host.api.assign({},this.transporter.host);this.customTransporters[b]=new aa(this.transporter.host.api.assign(w,n.customTransporterHosts[b],y,E))}if(this.dynamicTransporterSupportEnabled&&sn(this.transportConfig))for(var I=0,k=Object.entries(this.transportConfig);I1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=this.navMetaFromSeed(e,pa(t),null==n?void 0:n.pageInstanceTrackingId);if(this.setCurrentContext(r.to),!n.suppressEventsFiring)return this.fireNavEvents(r)}},{key:"setCurrentContext",value:function(e){var t;this.currentContext=Jt(e,this.host.api),null===(t=this.clientMonitoringConn)||void 0===t||t.setCurrentContext(Jt(e,this.host.api))}},{key:"updateAppState",value:function(e){var t;this.host.api.assign(this.appState,e),null===(t=this.clientMonitoringConn)||void 0===t||t.updateAppState(e)}},{key:"fireCIE",value:function(e,t,n,r,i){return this.fireEvent("ControlInteractionEvent",(function(n){var a=qt(n.pageKey,e),o={controlTrackingId:r,controlUrn:a,interactionType:t};return i&&i(a),o}),{context:n})}},{key:"getViewHierarchy",value:function(e){for(var t=[],n=e;n instanceof Element&&"body"!==n.tagName.toLowerCase();){var r=n.closest("[data-view-name]");if(r){var i=r.getAttribute("data-view-name");i&&t.push(i)}n=null==r?void 0:r.parentElement}return t}},{key:"getViewTrackingScope",value:function(e){for(var t=[],n=e;n instanceof Element&&"body"!==n.tagName.toLowerCase();){var r=n.closest("[data-view-tracking-scope]");if(r){var i=r.getAttribute("data-view-tracking-scope");if(i)try{var a=JSON.parse(i);a&&a.length&&t.push.apply(t,k(a))}catch(e){en("getViewTrackingScope","Error parsing trackingScope ".concat(i))}}n=null==r?void 0:r.parentElement}return t}},{key:"fireInteraction",value:function(e,t){var n,r=e.manualFireReason,i=e.interactionType,a=e.targetView,o=e.viewHierarchy,s=void 0===o?[]:o,c=e.viewTrackingScope,u=void 0===c?[]:c,l=e.verticalPosition,d=e.horizontalPosition,f=e.controlUrn,h=void 0===f?"":f,p=e.actionType,v=e.contentTrackingId,g=void 0===v?void 0:v,m=e.clientBreadcrumbs,y=void 0===m?[]:m,E=e.isShadowEvent,b=e.cooloffToken,w=e.testId,I=e.mediaStateInfo,N=e.entityUrn,C=e.actorType,A=void 0===C?"USER":C,S=a?this.getViewHierarchy(a):[],R=S.length>0?S:s;0!==R.length&&(!this.viewSpecs||null!==(n=this.viewSpecs)&&void 0!==n&&n.some((function(e){return e.viewName==R[0]})))||console.warn("No viewHierarchy provided or found from element.");var O=u.length>0?u:this.getViewTrackingScope(a),D={header:{viewHierarchy:R,testId:w},context:null==t?void 0:t.context,requestHeader:null==t?void 0:t.requestHeader};if(this.dynamicTransporterSupportEnabled){var M=rn(this.transportConfig),L=T(an(O,M),2),P=L[0],x=L[1],B="GenericActionEvent",U={verticalPosition:l,horizontalPosition:d,controlUrn:h,interactionType:i,actionType:p,contentTrackingId:""===g?void 0:g,manualFireReason:r,cooloffToken:b,mediaStateInfo:I,actorType:A,entityUrn:N};if(sn(P)){for(var F=0,H=Object.entries(P);F0?O:o;0!==D.length&&(!this.viewSpecs||null!==(n=this.viewSpecs)&&void 0!==n&&n.some((function(e){return e.viewName==D[0]})))||console.warn("No viewHierarchy provided or found from element.");var M=c.length>0?c:this.getViewTrackingScope(i);if(this.dynamicTransporterSupportEnabled){var L=rn(this.transportConfig),P=T(an(M,L),2),x=P[0],B=P[1],U="GenericImpressionEvent",F={viewDurationInMilliseconds:l,contentViewFraction:f,width:p,height:g,verticalPosition:m,horizontalPosition:y,impressionTime:E,contentTrackingId:""===b?void 0:b,manualFireReason:r,cooloffToken:C,mediaStateInfo:S,entityUrn:R},H={header:{viewHierarchy:D,testId:A},context:null==t?void 0:t.context,requestHeader:null==t?void 0:t.requestHeader};if(sn(x)){for(var V=0,K=Object.entries(x);V0?I:a;0!==N.length&&(!this.viewSpecs||null!==(n=this.viewSpecs)&&void 0!==n&&n.some((function(e){return e.viewName==N[0]})))||console.warn("No viewHierarchy provided or found from element.");var C=s.length>0?s:this.getViewTrackingScope(r);if(this.dynamicTransporterSupportEnabled){var A=rn(this.transportConfig),S=T(an(C,A),2),R=S[0],O=S[1],D="GenericMultipleImpressionEvent",M={width:u,height:d,verticalPosition:f,horizontalPosition:h,cooloffToken:w,hasAllImpressionThresholds:m,impressionThresholdsWrapper:{entries:v}},L={header:{viewHierarchy:N},context:null==t?void 0:t.context};if(sn(R)){for(var P=0,x=Object.entries(R);P0){var v=(p=p.map((function(e){return a.transformBreadcrumb(e)}))).map((function(e){return sa.toPointer(e)}));this.host.api.assign(t,{clientBreadcrumbPointers:v})}var g=p.length>0?this.generateEnvelopeWithBreadcrumbs(e,t,n,p,i):this.generateEnvelope(e,t,n,i);return this.fireEnvelope(g)}},{key:"generateEnvelopeWithBreadcrumbs",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:[],i=arguments.length>4&&void 0!==arguments[4]&&arguments[4],a=this.generateEnvelope(e,t,n,i);return r.length>0?this.addBreadcrumbsToEnvelope(a,r):a}},{key:"transformBreadcrumb",value:function(e){try{if(sn(e.content))return _({id:e.id,clientBreadcrumbType:e.breadcrumbType},e.content)}catch(e){console.error("Error transforming breadcrumb:",e)}return e}},{key:"addBreadcrumbsToEnvelope",value:function(e,t){return this.host.api.assign(e,{clientBreadcrumbs:t}),e}},{key:"fireEnvelope",value:function(e){var t,n;if(null!==(t=this.delegate)&&void 0!==t&&null!==(n=t.shouldAnonymizeMemberId)&&void 0!==n&&n.call(t))if(In(e.id)){var r=e.id;e.id={eventName:r,topicName:r,shouldAnonymizeMemberId:!0}}else e.id.shouldAnonymizeMemberId=!0;var i=this.delegate&&this.delegate.preTransporter?this.delegate.preTransporter(e):e;if(i){var a=i.meta.transporterKey,o=a?this.customTransporters[a]:this.transporter;if(!o&&a){var s,c,u,l=kn(i.id),d="Could not find custom transporter: ".concat(a);if(this.clientMonitoringConn){var f=this.clientMonitoringConn.logEventGenerated(l);this.clientMonitoringConn.logFailedEvent(An.UNKNOWN_EXECUTION_ERROR,i.id,d,f)}var h=(null===(s=i.meta.header)||void 0===s||null===(s=s.viewHierarchy)||void 0===s?void 0:s.join("|"))||"-";throw null===(c=this.telemetry)||void 0===c||c.onEventDropped(l,a,void 0,null===(u=i.meta.requestHeader)||void 0===u?void 0:u.pageKey,h,"-",!1,Ln.TRANSPORTER_FAILURE,!0),new Error(d)}return o.fireEvent(i)}return this.host.api.Promise.resolve(!0)}},{key:"generatePageInstance",value:function(e,t){return jt(e,t)}},{key:"firePVE",value:function(e,t,n){return this._firePVE(e,t,n)}},{key:"_firePVE",value:function(e,t,n){var r={pageType:"full",totalTime:0,trackingCode:this.getTrackingCode(),trackingInfo:{}},i=this.host.api.assign(r,t),a=this.generateEnvelope("PageViewEvent",i,{context:n});return a.meta.requestHeader.pageKey=e,this.fireEnvelope(a)}},{key:"destroy",value:function(){for(var e in this.transporter.destroy(),this.customTransporters)this.customTransporters[e].destroy();this.clientMonitoringConn&&(this.clientMonitoringConn.flush(),this.clientMonitoringConn.destroy(),this.clientMonitoringConn=void 0),Ct.clear(),this.telemetry&&(this.telemetry.forceFlush(),this.telemetry.onDestroy(),this.telemetry=void 0),this.eventRoutingService&&(this.eventRoutingService.forceFlush(),this.eventRoutingService.destroy())}},{key:"forceFlush",value:function(){var e;for(var t in this.transporter.forceFlush(),null===(e=this.eventRoutingService)||void 0===e||e.forceFlush(),this.customTransporters)this.customTransporters[t].forceFlush()}},{key:"generateControlUrn",value:function(e,t){return qt((t||this.currentContext||{pageKey:U}).pageKey,e)}},{key:"fireRawCIE",value:function(e,t,n,r){var i={controlTrackingId:r,controlUrn:e,interactionType:t};return{beacon:this.fireEvent("ControlInteractionEvent",i,{context:n}),controlUrn:e}}},{key:"generateNavigationEvent",value:function(e){var t=e.triggerId,n=e.triggerUrn,r=e.from;return{previousPageInstance:r&&r.pageInstance,triggerControlTrackingId:t,triggerControlUrn:n}}},{key:"getTrackingCode",value:function(){return this.previousAppContext&&this.previousAppContext.pageKey}},{key:"navMetaFromSeed",value:function(e,t,n){var r="NavigationEvent";this.previousAppContext=t.previousContext;var i=t.fromExternalApp?{eventName:r,topicName:"InboundNavigationEvent"}:r;return t.fromExternalApp||(this.referrer="https://www.linkedin.com"),{from:t.previousContext,navEventId:i,to:{applicationInstance:t.applicationInstance,pageInstance:this.generatePageInstance(e,n||t.pageTrackingId),pageKey:e},triggerId:t.previousControlId,triggerUrn:t.previousControlUrn}}},{key:"fireNavEvents",value:function(e){var t=this.generateNavigationEvent(e),n=e.to,r=e.from,i=e.navEventId,a=this.generateEnvelope(i,t);a.meta.requestHeader.pageKey=n.pageKey;var o=r&&r.applicationInstance;return o&&(a.meta.header.clientApplicationInstance=o),this.host.api.Promise.all([this._firePVE(n.pageKey),this.fireEnvelope(a)])}},{key:"generateEnvelope",value:function(e,t){var n,r,i,a,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},s=arguments.length>3&&void 0!==arguments[3]&&arguments[3],c={directive:o.directive,transporterKey:o.transporterKey,context:o.context||this.currentContext&&Jt(this.currentContext,this.host.api),requestHeader:this.host.api.assign({trackingCode:this.getTrackingCode()},o.requestHeader||{},ma(this.host)?{path:"".concat(this.host.api.location.pathname).concat(this.host.api.location.search),referer:"enabled"===(null===(n=(r=this.host).__getLixTreatment)||void 0===n?void 0:n.call(r,"pai.referrer.fix.subsquent"))?this.referrer?this.referrer:null===(i=this.host.api.document)||void 0===i?void 0:i.referrer:null===(a=this.host.api.document)||void 0===a?void 0:a.referrer}:{}),header:this.host.api.assign({applicationViewerUrn:this.appState.applicationViewerUrn,clientApplicationInstance:this.appState.clientApplicationInstance,isShadowEvent:s},o.header||{})};return{body:"function"==typeof t?t:function(){return t},id:e,meta:c}}}]),e}();!function(e){e.INTERNAL_OTEL_JET_EVENT="internal:otel:jet",e.INTERNAL_OTEL_RESOURCE="internal:otel:resource",e.INTERNAL_OTEL_LARGEST_CONTENTFUL_PAINT="internal:otel:lcp",e.INTERNAL_OTEL_CUMULATIVE_LAYOUT_SHIFT="internal:otel:cls",e.INTERNAL_OTEL_FIRST_INPUT_DELAY="internal:otel:fid"}(ya||(ya={}));var Ta="otel-origin-jet-tag";var ba,_a;!function(){function e(t,n){var r,i,a=this;S(this,e),D(this,"core",void 0),D(this,"protocol",void 0),D(this,"throttleKeySet",new Set),D(this,"config",void 0),D(this,"reportTransporterError",(function(e){e.reason instanceof Error||(e.reason=new Error(e.reason||"An error occurred in the transporter")),a.reportError(e.reason,e.tags.concat(["info"]),{responseHeaders:e.responseHeaders}).catch((function(){}))})),this.core=t;var o=this.core.host.api.location.protocol;this.protocol=o.substring(0,o.length-1),this.config={throttleTime:null!==(r=null==n?void 0:n.throttleTime)&&void 0!==r?r:100,useOTel:null!==(i=null==n?void 0:n.useOTel)&&void 0!==i&&i},Ct.on(_t,this.reportTransporterError)}O(e,[{key:"reportError",value:function(e){var t,n=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},a=i.callTreeId,o=void 0===a?"":a,s=i.responseHeaders,c=void 0===s?{}:s,u=i.sduiScreenId,l=i.componentKey,d=i.targetViewNames,f=e.message,h=e.name,p=e.stack,v=void 0===p?"":p,g=e.fileName,m=void 0===g?"":g,y=e.lineNumber,E=void 0===y?0:y,T=e.columnNumber,b=void 0===T?0:T,_=this.core.host,w=_.appId,I=_.appVersion,k=_.service,N=_.serviceInstance,C=_.treeID,A=void 0===C?"":C,S=_.api,R=S.Promise,O=S.location,D=O.host,M=O.pathname,L=O.search,P=O.hash,x=void 0===P?"":P;if(this.config.useOTel&&!r.includes(Ta)&&Ct.emit(ya.INTERNAL_OTEL_JET_EVENT,{error:e,tags:r,callTreeId:o,responseHeaders:c}),c){t={};var B=new Map;Object.keys(c).forEach((function(e){B.set(e.toLowerCase(),c[e])})),t.callTreeId=B.get("x-li-uuid"),t.microsoftEdgeReference=B.get("x-msedge-ref"),t.pointOfPresenceId=B.get("x-li-pop"),t.fabric=B.get("x-li-fabric")}var U=function(){return n.core.fireEvent("JavaScriptErrorEvent",(function(e){return{appId:w,e:{c:b,l:E,m:f,s:v,t:h,u:m},h:x,l:n.protocol,o:D,p:M,pageKey:e.pageKey,q:L,service:k,serviceInstance:N,serviceVersion:I,t:r,trackingID:e.pageInstance.trackingId,treeID:A,callTreeId:o,responseTraceHeaders:t,sduiScreenId:u,componentKey:l,targetViewNames:d}}))};if(this.config.throttleTime<0)return U();var F=(h+f+v+r.join("")+o).split("").reduce((function(e,t){return(e<<5)-e+t.charCodeAt(0)|0}),0);return this.throttleKeySet.has(F)?R.resolve(!1):(this.throttleKeySet.add(F),setTimeout((function(){return n.throttleKeySet.delete(F)}),this.config.throttleTime),U())}},{key:"flush",value:function(){this.core.forceFlush()}},{key:"destroy",value:function(){this.core.destroy(),Ct.off(_t,this.reportTransporterError)}}])}();!function(e){e.RealUserMonitoringEvent="RealUserMonitoringEvent",e.FeaturePerformanceMeasurementEvent="FeaturePerformanceMeasurementEvent",e.ClientPerfMetricsEvent="ClientPerfMetricsEvent",e.WEB_UI_FRAMEWORK="web-ui-framework",e.APP_ID="app-id",e.APP_VERSION="app-version",e.IS_SINGLE_PAGE_APP="is-single-page-app",e.IS_APP_RENDER_FAILED="is-app-render-failed",e.APP_RENDER_MODE="app-render-mode",e.USER_TIMING_MARK_ENABLED="user-timing-mark-enabled",e.USER_TIMING_MEASURE_ENABLED="user-timing-measure-enabled",e.BEACON_SOURCE="beacon-source",e.BEACON_TIMEOUT="beacon-timeout",e.ENABLE_RS_TIMING="enable-rs-timing",e.ENABLE_CDN_TRACKING="enable-cdn-tracking",e.ASYNC_PLUGINS_TIMEOUT="async-plugins-timeout",e.ENABLE_MEMORY_MEASUREMENT="enable-memory-measurement",e.PAGE_KEY_PREFIX="pageKeyPrefix",e.ENABLE_T_3="enable-tracking-3",e.ENABLE_PEM_T_3="enable-pem-tracking-3",e.ENABLE_OTEL="enable-otel"}(ba||(ba={})),function(e){e.PageLoadStartEvent="PageLoadStartEvent",e.PageLoadEndEvent="PageLoadEndEvent",e.ResourceLoadEvent="ResourceLoadEvent",e.ViewLoadEvent="ViewLoadEvent",e.PEMTracer="PEMTracer"}(_a||(_a={}));var wa,Ia,ka,Na,Ca,Aa,Sa,Ra=(D(D(D(D(D(D(D(D(D(D(i={},"web-ui-framework","EMBER"),"app-id","linkedin.rum.tracking"),"app-version","unknown"),"is-single-page-app",!0),"user-timing-mark-enabled",!1),"user-timing-measure-enabled",!0),"beacon-source","apps"),"enable-rs-timing",!0),"enable-cdn-tracking",!1),"async-plugins-timeout",5e3),D(D(D(D(D(D(i,"beacon-timeout",3e4),"enable-memory-measurement",!1),"pageKeyPrefix",""),"enable-pem-tracking-3",!1),"enable-tracking-3",!1),"enable-otel",!1)),Oa=-1,Da=-2,Ma=["loadEventEnd","loadEventStart","domComplete","domContentLoadedEventEnd","domContentLoadedEventStart","domInteractive","domLoading","responseEnd","responseStart","requestStart","secureConnectionStart","connectEnd","connectStart","domainLookupEnd","domainLookupStart","fetchStart","redirectEnd","redirectStart","unloadEventEnd","unloadEventStart","navigationStart"],La={redirectStart:"REDIRECT_START",redirectEnd:"REDIRECT_END",fetchStart:"FETCH_START",domainLookupStart:"DOMAIN_LOOKUP_START",domainLookupEnd:"DOMAIN_LOOKUP_END",connectStart:"CONNECT_START",connectEnd:"CONNECT_END",secureConnectionStart:"SECURE_CONNECTION_START",requestStart:"REQUEST_START",responseStart:"RESPONSE_START",responseEnd:"RESPONSE_END",workerStart:"WORKER_START"},Pa={"http/0.9":"HTTP0_9","http/1.0":"HTTP1_0","http/1.1":"HTTP1_1",h2:"HTTP2"},xa="pageLoadId does not exist",Ba="rum token passed is invalid",Ua=new RegExp(/batch-(\d+)$|enabled$/),Fa=function(){function e(){S(this,e),D(this,"userTimingEntries",[]),D(this,"longTasks",[]),D(this,"resourceTimingEntries",[]),D(this,"cdnData",void 0)}return O(e,[{key:"reset",value:function(){this.userTimingEntries=[],this.longTasks=[],this.resourceTimingEntries=[]}},{key:"attachTreeIds",value:function(e){this.resourceTimingEntries.forEach((function(t){var n=e.get(t.name);n&&(t.resourceTreeId=n)}))}},{key:"getData",value:function(){return{userTimingEntries:this.userTimingEntries,longTasks:this.longTasks,resourceTimingEntries:this.resourceTimingEntries.map(Va),cdnData:this.cdnData}}}]),e}(),Ha=["resourceTreeId","name","entryType","startTime","duration","initiatorType","nextHopProtocol","redirectStart","redirectEnd","fetchStart","domainLookupStart","domainLookupEnd","connectStart","connectEnd","secureConnectionStart","requestStart","responseStart","responseEnd","transferSize","encodedBodySize","decodedBodySize","workerStart"];function Va(e){return Ha.reduce((function(t,n){var r=e[n];return void 0!==r&&(t[n]=r),t}),{})}function Ka(e,t){if(e.nodeType!==Node.ELEMENT_NODE)throw new Error("Can't generate CSS selector for non-element node type.");if("html"===e.tagName.toLowerCase())return"html";var n={root:document.body,idName:function(e){return!0},className:function(e){return!0},tagName:function(e){return!0},attr:function(e,t){return!1},seedMinLength:1,optimizedMinLength:2,threshold:1e3,maxNumberOfTries:1e4};Aa=Object.assign(Object.assign({},n),t),Sa=function(e,t){return e.nodeType===Node.DOCUMENT_NODE?e:e===t.root?e.ownerDocument:e}(Aa.root,n);var r=Wa(e,Ca.All,(function(){return Wa(e,Ca.Two,(function(){return Wa(e,Ca.One)}))}));if(r){var i=Za(function e(t,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{counter:0,visited:new Map},i=[];if(t.length>2&&t.length>Aa.optimizedMinLength)for(var a=1;aAa.maxNumberOfTries)return i;r.counter+=1;var o=k(t);o.splice(a,1);var s=ja(o);if(r.visited.has(s))return i;za(o)&&$a(o,n)&&(i.push(o),r.visited.set(s,!0),i=i.concat(e(o,n,r)))}return i}(r,e));return i.length>0&&(r=i[0]),ja(r)}throw new Error("Selector was not found.")}function Wa(e,t,n){for(var r=null,i=[],a=e,o=0,s=function(){var e=Ya(function(e){var t=e.getAttribute("id");return t&&Aa.idName(t)?{name:"#"+io(t,{isIdentifier:!0}),penalty:0}:null}(a))||Ya.apply(void 0,k(function(e){return Array.from(e.attributes).filter((function(e){return Aa.attr(e.name,e.value)})).map((function(e){return{name:"["+io(e.name,{isIdentifier:!0})+'="'+io(e.value)+'"]',penalty:.5}}))}(a)))||Ya.apply(void 0,k(function(e){return Array.from(e.classList).filter(Aa.className).map((function(e){return{name:"."+io(e,{isIdentifier:!0}),penalty:1}}))}(a)))||Ya(function(e){var t=e.tagName.toLowerCase();return Aa.tagName(t)?{name:t,penalty:2}:null}(a))||[{name:"*",penalty:3}],s=function(e){var t=e.parentNode;if(!t)return null;var n=t.firstChild;if(!n)return null;for(var r=0;n&&(n.nodeType===Node.ELEMENT_NODE&&r++,n!==e);)n=n.nextSibling;return r}(a);if(t===Ca.All)s&&(e=e.concat(e.filter(Ja).map((function(e){return Xa(e,s)}))));else if(t===Ca.Two)e=e.slice(0,1),s&&(e=e.concat(e.filter(Ja).map((function(e){return Xa(e,s)}))));else if(t===Ca.One){var c=T(e=e.slice(0,1),1)[0];s&&Ja(c)&&(e=[Xa(c,s)])}var u,l=I(e);try{for(l.s();!(u=l.n()).done;)u.value.level=o}catch(e){l.e(e)}finally{l.f()}if(i.push(e),i.length>=Aa.seedMinLength&&(r=Ga(i,n)))return 1;a=a.parentElement,o++};a&&a!==Aa.root.parentElement&&!s(););return r||(r=Ga(i,n)),r}function Ga(e,t){var n=Za(function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];if(t.length>0){var r,i=[],a=I(t[0]);try{for(a.s();!(r=a.n()).done;){var o=r.value;i=i.concat(e(t.slice(1,t.length),n.concat(o)))}}catch(t){a.e(t)}finally{a.f()}return i}return[n]}(e));if(n.length>Aa.threshold)return t?t():null;var r,i=I(n);try{for(i.s();!(r=i.n()).done;){var a=r.value;if(za(a))return a}}catch(e){i.e(e)}finally{i.f()}return null}function ja(e){for(var t=e[0],n=t.name,r=1;r ").concat(n):"".concat(e[r].name," ").concat(n),t=e[r]}return n}function qa(e){return e.map((function(e){return e.penalty})).reduce((function(e,t){return e+t}),0)}function za(e){switch(Sa.querySelectorAll(ja(e)).length){case 0:throw new Error("Can't select any node with this selector: ".concat(ja(e)));case 1:return!0;default:return!1}}function Xa(e,t){return{name:e.name+":nth-child(".concat(t,")"),penalty:e.penalty+1}}function Ja(e){return"html"!==e.name&&!e.name.startsWith("#")}function Ya(){for(var e=arguments.length,t=new Array(e),n=0;n0?r:null}function Qa(e){return null!=e}function Za(e){return Array.from(e).sort((function(e,t){return qa(e)-qa(t)}))}function $a(e,t){return Sa.querySelector(ja(e))===t}!function(e){e.HTTP0_9="HTTP0_9",e.HTTP1_0="HTTP1_0",e.HTTP1_1="HTTP1_1",e.HTTP2="HTTP2",e.UNKNOWN="UNKNOWN"}(wa||(wa={})),function(e){e.REDIRECT_START="REDIRECT_START",e.REDIRECT_END="REDIRECT_END",e.FETCH_START="FETCH_START",e.DOMAIN_LOOKUP_START="DOMAIN_LOOKUP_START",e.DOMAIN_LOOKUP_END="DOMAIN_LOOKUP_END",e.CONNECT_START="CONNECT_START",e.CONNECT_END="CONNECT_END",e.SECURE_CONNECTION_START="SECURE_CONNECTION_START",e.REQUEST_START="REQUEST_START",e.RESPONSE_START="RESPONSE_START",e.RESPONSE_END="RESPONSE_END",e.WORKER_START="WORKER_START"}(Ia||(Ia={})),function(e){e.redirectStart="redirectStart",e.redirectEnd="redirectEnd",e.fetchStart="fetchStart",e.domainLookupStart="domainLookupStart",e.domainLookupEnd="domainLookupEnd",e.connectStart="connectStart",e.connectEnd="connectEnd",e.secureConnectionStart="secureConnectionStart",e.requestStart="requestStart",e.responseStart="responseStart",e.responseEnd="responseEnd",e.workerStart="workerStart"}(ka||(ka={})),function(e){e.DEFAULT="DEFAULT",e.INITIAL="INITIAL",e.SUBSEQUENT="SUBSEQUENT",e.PAGINATED="PAGINATED"}(Na||(Na={})),function(e){e[e.All=0]="All",e[e.Two=1]="Two",e[e.One=2]="One"}(Ca||(Ca={}));var eo=/[ -,\.\/:-@\[-\^`\{-~]/,to=/[ -,\.\/:-@\[\]\^`\{-~]/,no=/(^|\\+)?(\\[A-F0-9]{1,6})\x20(?![a-fA-F0-9\x20])/g,ro={escapeEverything:!1,isIdentifier:!1,quotes:"single",wrap:!1};function io(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=Object.assign(Object.assign({},ro),t);"single"!=n.quotes&&"double"!=n.quotes&&(n.quotes="single");for(var r="double"==n.quotes?'"':"'",i=n.isIdentifier,a=e.charAt(0),o="",s=0,c=e.length;s126){if(l>=55296&&l<=56319&&s1&&void 0!==arguments[1]&&arguments[1];if(e&&"function"==typeof e.now&&(e.timeOrigin||e.timing)){var n,r=e.now();return n=!e.timing&&t?Math.floor(e.timeOrigin):e.timing.navigationStart,Math.round(r+n)}return Date.now()}function co(e){var t=e||performance;return Math.round(t.now())}function uo(e){if(!e)return"null";if(e.nodeType===Node.ELEMENT_NODE)try{return Ka(e,{idName:function(e){return 0!==e.indexOf("ember")}})}catch(e){return"serialization_error"}var t=uo(e.parentElement||void 0);return"".concat(t," > nodeType(").concat(e.nodeType,")")}function lo(e,t,n){var r=[];return e&&"function"==typeof e.getEntriesByType&&(t["user-timing-measure-enabled"]&&e.getEntriesByType("measure").forEach((function(e){var t=e.name,n=e.startTime,i=e.duration;r.push({entryType:"MEASURE",name:t,startTime:n,duration:i})})),t["user-timing-mark-enabled"]&&e.getEntriesByType("mark").forEach((function(e){var t=e.name,n=e.startTime,i=e.duration;r.push({entryType:"MARK",name:t,startTime:n,duration:i})})),n&&(e.clearMeasures(),e.clearMarks())),r}function fo(e){var t=[];return e.forEach((function(e){return t.push(e)})),t}var ho=function(){function e(t){S(this,e),D(this,"hostApis",void 0),D(this,"hostnameProperties",void 0),D(this,"usedHostnames",void 0),D(this,"abortController",void 0),D(this,"pendingPromises",void 0),this.hostApis=t;var n=t.AbortController;this.hostnameProperties={},this.usedHostnames=new Set,this.abortController=new n,this.pendingPromises=new Set}return O(e,[{key:"clearUsedHostnames",value:function(){this.usedHostnames=new Set}},{key:"getPresentData",value:function(){var e=this;return Qt(this.usedHostnames).map((function(t){return e.hostnameProperties[t]||{hostname:t,provider:"",ipVersion:"",httpVersion:""}}))}},{key:"getDataWhenReady",value:function(e){var t=this,n=this.hostApis,r=n.AbortController,i=n.Promise,a=Yt(Qt(this.pendingPromises),i),o=setTimeout((function(){t.abortController.abort(),t.abortController=new r}),e);return a.then((function(){return clearTimeout(o),t.getPresentData()}))}},{key:"inspectEntryForCdnData",value:function(e){var t=this;if(!(e.name.indexOf(".licdn.")<0)){var n,r,i=this.hostApis.assign,a=(n=e.name,r=this.hostApis.document,(ao=ao||r.createElement("a")).href=n,ao.hostname);if(this.usedHostnames.add(a),!this.hostnameProperties[a]&&!this.isResourcePossiblyFromCache(e)){var o=this.fetchCdnFromUrl(e.name).then((function(e){var n=i({hostname:a},e);return t.hostnameProperties[a]||(t.hostnameProperties[a]=n),t.pendingPromises.delete(o),n}));this.pendingPromises.add(o)}}}},{key:"fetchCdnFromUrl",value:function(e){return(0,this.hostApis.fetch)(e,{method:"HEAD",signal:this.abortController.signal}).then((function(e){return{provider:e.headers.get("X-CDN")||"",ipVersion:e.headers.get("X-CDN-CLIENT-IP-VERSION")||"",httpVersion:e.headers.get("X-CDN-Proto")||""}}))}},{key:"isResourcePossiblyFromCache",value:function(e){return void 0!==e.transferSize?0===e.transferSize:e.domainLookupStart===e.domainLookupEnd&&e.connectEnd===e.connectStart&&0===e.secureConnectionStart}}]),e}();!function(){var e=function(){function e(){S(this,e)}return O(e,null,[{key:"x64Add",value:function(e,t){e=[e[0]>>>16,65535&e[0],e[1]>>>16,65535&e[1]],t=[t[0]>>>16,65535&t[0],t[1]>>>16,65535&t[1]];var n=[0,0,0,0];return n[3]+=e[3]+t[3],n[2]+=n[3]>>>16,n[3]&=65535,n[2]+=e[2]+t[2],n[1]+=n[2]>>>16,n[2]&=65535,n[1]+=e[1]+t[1],n[0]+=n[1]>>>16,n[1]&=65535,n[0]+=e[0]+t[0],n[0]&=65535,[n[0]<<16|n[1],n[2]<<16|n[3]]}},{key:"x64Multiply",value:function(e,t){e=[e[0]>>>16,65535&e[0],e[1]>>>16,65535&e[1]],t=[t[0]>>>16,65535&t[0],t[1]>>>16,65535&t[1]];var n=[0,0,0,0];return n[3]+=e[3]*t[3],n[2]+=n[3]>>>16,n[3]&=65535,n[2]+=e[2]*t[3],n[1]+=n[2]>>>16,n[2]&=65535,n[2]+=e[3]*t[2],n[1]+=n[2]>>>16,n[2]&=65535,n[1]+=e[1]*t[3],n[0]+=n[1]>>>16,n[1]&=65535,n[1]+=e[2]*t[2],n[0]+=n[1]>>>16,n[1]&=65535,n[1]+=e[3]*t[1],n[0]+=n[1]>>>16,n[1]&=65535,n[0]+=e[0]*t[3]+e[1]*t[2]+e[2]*t[1]+e[3]*t[0],n[0]&=65535,[n[0]<<16|n[1],n[2]<<16|n[3]]}},{key:"x64Rotl",value:function(e,t){return 32==(t%=64)?[e[1],e[0]]:t<32?[e[0]<>>32-t,e[1]<>>32-t]:(t-=32,[e[1]<>>32-t,e[0]<>>32-t])}},{key:"x64LeftShift",value:function(e,t){return 0==(t%=64)?e:t<32?[e[0]<>>32-t,e[1]<>>1]),t=e.x64Multiply(t,[4283543511,3981806797]),t=e.x64Xor(t,[0,t[0]>>>1]),t=e.x64Multiply(t,[3301882366,444984403]),e.x64Xor(t,[0,t[0]>>>1])}},{key:"x64hash128",value:function(t,n){n=n||0;var r,i=(t=t||"").length%16,a=t.length-i,o=[0,n],s=[0,n],c=[0,0],u=[0,0],l=[2277735313,289559509],d=[1291169091,658871167];for(r=0;r>>0).toString(16)).slice(-8)+("00000000"+(o[1]>>>0).toString(16)).slice(-8)+("00000000"+(s[0]>>>0).toString(16)).slice(-8)+("00000000"+(s[1]>>>0).toString(16)).slice(-8)}}]),e}(),t=function(){function t(){S(this,t),this.components=[{key:"webrtc",getData:t.webRtcKey,shouldEnforceDataLimit:!0,dataLimit:1e3},{key:"enumerateDevices",getData:t.enumerateDevicesKey,shouldEnforceDataLimit:!0,dataLimit:22e3},{key:"appName",getData:t.appNameKey,shouldEnforceDataLimit:!0,dataLimit:100},{key:"tsSeed",getData:t.seedKey,shouldEnforceDataLimit:!0,dataLimit:100},{key:"appVersion",getData:t.appVersionKey,shouldEnforceDataLimit:!0,dataLimit:300},{key:"appCodeName",getData:t.appCodeNameKey,shouldEnforceDataLimit:!0,dataLimit:100},{key:"location",getData:t.locationKey,shouldEnforceDataLimit:!0,dataLimit:1500},{key:"javascripts",getData:t.javascriptsKey,shouldEnforceDataLimit:!0,dataLimit:2200},{key:"platform",getData:t.platformKey,shouldEnforceDataLimit:!0,dataLimit:100},{key:"product",getData:t.productKey,shouldEnforceDataLimit:!0,dataLimit:100},{key:"productSub",getData:t.productSubKey,shouldEnforceDataLimit:!0,dataLimit:100},{key:"cpuClass",getData:t.cpuClassKey,shouldEnforceDataLimit:!0,dataLimit:100},{key:"oscpu",getData:t.oscpuKey,shouldEnforceDataLimit:!0,dataLimit:100},{key:"hardwareConcurrency",getData:t.hardwareConcurrencyKey,alias:"numOfCores",shouldEnforceDataLimit:!0,dataLimit:100},{key:"deviceMemory",getData:t.deviceMemoryKey,shouldEnforceDataLimit:!0,dataLimit:100},{key:"vendor",getData:t.vendorKey,shouldEnforceDataLimit:!0,dataLimit:100},{key:"vendorSub",getData:t.vendorSubKey,shouldEnforceDataLimit:!0,dataLimit:100},{key:"language",getData:t.languageKey,shouldEnforceDataLimit:!0,dataLimit:100},{key:"timezoneOffset",getData:t.timezoneOffset,shouldEnforceDataLimit:!0,dataLimit:100},{key:"timezone",getData:t.timezone,shouldEnforceDataLimit:!0,dataLimit:100},{key:"userAgent",getData:t.UserAgent,shouldEnforceDataLimit:!0,dataLimit:1500},{key:"webdriver",getData:t.webdriver,shouldEnforceDataLimit:!0,dataLimit:100},{key:"doNotTrack",getData:t.doNotTrackKey,shouldEnforceDataLimit:!0,dataLimit:100},{key:"incognito",getData:t.incognitoKey,shouldEnforceDataLimit:!0,dataLimit:100},{key:"colorDepth",getData:t.colorDepthKey,shouldEnforceDataLimit:!0,dataLimit:100},{key:"pixelDepth",getData:t.pixelDepthKey,shouldEnforceDataLimit:!0,dataLimit:100},{key:"pixelRatio",getData:t.pixelRatioKey,shouldEnforceDataLimit:!0,dataLimit:100},{key:"screenResolution",getData:t.screenResolutionKey,shouldEnforceDataLimit:!0,dataLimit:100},{key:"screenOrientation",getData:t.screenOrientationKey,shouldEnforceDataLimit:!0,dataLimit:100},{key:"availableScreenResolution",getData:t.availableScreenResolutionKey,shouldEnforceDataLimit:!0,dataLimit:100},{key:"sessionStorage",getData:t.sessionStorageKey,shouldEnforceDataLimit:!0,dataLimit:100},{key:"localStorage",getData:t.localStorageKey,shouldEnforceDataLimit:!0,dataLimit:100},{key:"indexedDb",getData:t.indexedDbKey,shouldEnforceDataLimit:!0,dataLimit:100},{key:"addBehavior",getData:t.addBehaviorKey,shouldEnforceDataLimit:!0,dataLimit:100},{key:"openDatabase",getData:t.openDatabaseKey,shouldEnforceDataLimit:!0,dataLimit:100},{key:"canvas",getData:t.canvasKey,shouldEnforceDataLimit:!0,dataLimit:100},{key:"webgl",getData:t.webglKey,shouldEnforceDataLimit:!0,dataLimit:6e3},{key:"signals",getData:t.signalsKey,shouldEnforceDataLimit:!0,dataLimit:150},{key:"touchSupport",getData:t.touchSupportKey,shouldEnforceDataLimit:!0,dataLimit:100},{key:"networkInfo",getData:t.networkInfoKey,shouldEnforceDataLimit:!0,dataLimit:150},{key:"battery",getData:t.batteryKey,shouldEnforceDataLimit:!0,dataLimit:100},{key:"audio",getData:t.audioKey,shouldEnforceDataLimit:!0,dataLimit:100},{key:"automation",getData:t.automationKey,shouldEnforceDataLimit:!0,dataLimit:100},{key:"plugins",getData:t.pluginsComponent,shouldEnforceDataLimit:!0,dataLimit:17e3},{key:"mimetyps",getData:t.mimetypesComponent,shouldEnforceDataLimit:!0,dataLimit:27e3},{key:"fonts",getData:t.jsFontsKey,shouldEnforceDataLimit:!0,dataLimit:1500},{key:"fontsFlash",getData:t.flashFontsKey,shouldEnforceDataLimit:!0,dataLimit:100}]}return O(t,[{key:"getFeatures",value:function(e,t){if("function"==typeof e){if(!t)return e({error:"Options not provided"});var n={data:{latency:{acq_time:{}},errors:{}}},r=Date.now(),i={},a=0,o=0;this.components.forEach((function(s){if(!t.excludes[s.key]){var c=s.key;void 0!==s.alias&&null!==s.alias&&s.alias.length>0&&(c=s.alias),a++;var u=function(){i[c]=Date.now();try{s.getData((function(t){if(!1!==s.shouldEnforceDataLimit){var u=s.hasOwnProperty("dataLimit")&&"number"==typeof s.dataLimit?s.dataLimit:1e3,l=JSON.stringify(t).length;l>u&&(n.data.errors[c]="Exceeded current data limit:"+u+" Data length for:"+c+" was found to be:"+l,t={})}n.data[c]=t,n.data.latency.acq_time[c]=Date.now()-i[c],++o>=a&&(n.data.latency.acq_time.allFeatures=Date.now()-r,n.data.allFeaturesCollectionAt=Date.now(),e(n.data,!0))}),t)}catch(e){n.data.errors[c]=String(e)}};"function"==typeof window.requestIdleCallback&&!1!==t.useRequestIdleCallBack?window.requestIdleCallback(u):u()}})),n.data.latency.acq_time.allFeatures=Date.now()-r,e(n.data,!1)}}}],[{key:"each",value:function(e,t){if(Array.prototype.forEach&&e.forEach===Array.prototype.forEach)e.forEach(t);else if(e.length===+e.length)for(var n=0,r=e.length;n0&&t.pluginsShouldBeSorted(e)&&(n=n.sort((function(e,t){return e.name>t.name?1:e.name=0?"Windows Phone":t.indexOf("win")>=0?"Windows":t.indexOf("android")>=0?"Android":t.indexOf("linux")>=0||t.indexOf("cros")>=0?"Linux":t.indexOf("iphone")>=0||t.indexOf("ipad")>=0?"iOS":t.indexOf("mac")>=0?"Mac":"Other",("ontouchstart"in window||navigator.maxTouchPoints>0||navigator.msMaxTouchPoints>0)&&"Windows Phone"!==e&&"Android"!==e&&"iOS"!==e&&"Other"!==e)return!0;if(void 0!==n){if((n=n.toLowerCase()).indexOf("win")>=0&&"Windows"!==e&&"Windows Phone"!==e)return!0;if(n.indexOf("linux")>=0&&"Linux"!==e&&"Android"!==e)return!0;if(n.indexOf("mac")>=0&&"Mac"!==e&&"iOS"!==e)return!0;if((-1===n.indexOf("win")&&-1===n.indexOf("linux")&&-1===n.indexOf("mac"))!=("Other"===e))return!0}return r.indexOf("win")>=0&&"Windows"!==e&&"Windows Phone"!==e||(r.indexOf("linux")>=0||r.indexOf("android")>=0||r.indexOf("pike")>=0)&&"Linux"!==e&&"Android"!==e||(r.indexOf("mac")>=0||r.indexOf("ipad")>=0||r.indexOf("ipod")>=0||r.indexOf("iphone")>=0)&&"Mac"!==e&&"iOS"!==e||(r.indexOf("win")<0&&r.indexOf("linux")<0&&r.indexOf("mac")<0&&r.indexOf("iphone")<0&&r.indexOf("ipad")<0)!=("Other"===e)||void 0===navigator.plugins&&"Windows"!==e&&"Windows Phone"!==e}},{key:"getHasLiedBrowser",value:function(){var e,t=navigator.userAgent.toLowerCase(),n=navigator.productSub;if(("Chrome"==(e=t.indexOf("firefox")>=0?"Firefox":t.indexOf("opera")>=0||t.indexOf("opr")>=0?"Opera":t.indexOf("chrome")>=0?"Chrome":t.indexOf("safari")>=0?"Safari":t.indexOf("trident")>=0?"Internet Explorer":"Other")||"Safari"===e||"Opera"===e)&&"20030107"!==n)return!0;var r,i=eval.toString().length;if(37===i&&"Safari"!==e&&"Firefox"!==e&&"Other"!==e)return!0;if(39===i&&"Internet Explorer"!==e&&"Other"!==e)return!0;if(33===i&&"Chrome"!==e&&"Opera"!==e&&"Other"!==e)return!0;try{throw"a"}catch(t){try{t.toSource(),r=!0}catch(t){r=!1}}return r&&"Firefox"!==e&&"Other"!==e}},{key:"isCanvasSupported",value:function(){var e=document.createElement("canvas");return!(!e.getContext||!e.getContext("2d"))}},{key:"isWebGlSupported",value:function(){if(!t.isCanvasSupported())return!1;var e=t.getWebglCanvas();return!!window.WebGLRenderingContext&&!!e}},{key:"isIE",value:function(){return"Microsoft Internet Explorer"===navigator.appName||!("Netscape"!==navigator.appName||!/Trident/.test(navigator.userAgent))}},{key:"hasSwfObjectLoaded",value:function(){return void 0!==window.swfobject}},{key:"hasMinFlashInstalled",value:function(){return window.swfobject.hasFlashPlayerVersion("9.0.0")}},{key:"addFlashDivNode",value:function(e){var t=document.createElement("div");t.setAttribute("id",e.fonts.swfContainerId),document.body.appendChild(t)}},{key:"loadSwfAndDetectFonts",value:function(e,n){window.___fp_swf_loaded=function(t){e(t)};var r=n.fonts.swfContainerId;t.addFlashDivNode(),window.swfobject.embedSWF(n.fonts.swfPath,r,"1","1","9.0.0",!1,{onReady:"___fp_swf_loaded"},{allowScriptAccess:"always",menu:"false"},{})}},{key:"getWebglCanvas",value:function(){var e=document.createElement("canvas"),t=null;try{t=e.getContext("webgl")||e.getContext("experimental-webgl")}catch(e){}return t||(t=null),t}}]),t}(),n={getItem:function(e){var t=this.getCookieString().match(this._cookieRegEx(e));return t?t[1].replace(/^"(.*)"$/,"$1"):""},getBcookie:function(){try{for(var e=document.cookie.split(/\s*;\s*/),t=0;t1&&"bcookie"===n[0]){var r=n[n.length-1];return r.substring(2,r.length-1)}}}catch(e){return""}return""},setItem:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:this.getDomain(),i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"/";if(n){var a=["".concat(e,"=").concat(t,"; path=").concat(i,"; secure=true")];"string"==typeof r&&r.length>0&&a.push("domain="+r),a.push("expires="+(n instanceof Date?n.toUTCString():n)),document.cookie=a.join("; ")}},deleteItem:function(e){this.setItem(e,"",new Date(0)),this.setItem(e,"",new Date(0),"");var t=this.getDomain().split(".");t.length>2&&(t=t.slice(t.length-2));var n=t.join(".");this.setItem(e,"",new Date(0),n)},_cookieRegEx:function(e){return new RegExp(e+"=([^;]*)")},getCookieString:function(){return document.cookie},getDomain:function(){return window.location?window.location.hostname:""}},r="HUMAN",i="DFP_WEB",a="RECAPTCHA_V3_WEB",o="HUMAN_SECURITY_ENFORCER";function s(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2?arguments[2]:void 0,r=n?n.querySelector("#"+e):document.getElementById(e);if(r){var i=r.firstChild.nodeValue;if(t&&r.parentNode.removeChild(r),i)try{return JSON.parse(i)}catch(e){return}}}function c(e,t,n){var r=new XMLHttpRequest,i=n?"https://www.linkedin.com":"https://www.linkedin-ei.com";i+=String(t),r.open("POST",i),r.setRequestHeader("Content-Type","application/json"),r.send(e)}function u(e){var t=document.getElementsByClassName(e);return void 0!==t&&t.length>=1}function l(){var e=location&&location.host;return e&&e.indexOf(".linkedin.com")>-1&&!e.startsWith("pemberly")}var d=function(){function e(){S(this,e)}return O(e,null,[{key:"str2ab",value:function(e){for(var t=new ArrayBuffer(e.length),n=new Uint8Array(t),r=0,i=e.length;r>e/4).toString(16)}))}},{key:"generateSha256HashOrDefault",value:function(e){var t=(new TextEncoder).encode(e);return crypto.subtle.digest("SHA-256",t).then((function(e){return Array.from(new Uint8Array(e)).map((function(e){return("00"+e.toString(16)).slice(-2)})).join("")})).catch((function(){return""}))}}]),e}(),f=function(){var e={compressToBase64:function(t){if(null==t)return"";var n=e._compress(t,6,(function(e){return"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".charAt(e)}));switch(n.length%4){default:case 0:return n;case 1:return n+"===";case 2:return n+"==";case 3:return n+"="}},_compress:function(e,t,n){if(null==e)return"";var r,i,a,o={},s={},c="",u="",l="",d=2,f=3,h=2,p=[],v=0,g=0;for(a=0;a>=1}else{for(i=1,r=0;r>=1}0==--d&&(d=Math.pow(2,h),h++),delete s[l]}else for(i=o[l],r=0;r>=1;0==--d&&(d=Math.pow(2,h),h++),o[u]=f++,l=String(c)}if(""!==l){if(Object.prototype.hasOwnProperty.call(s,l)){if(l.charCodeAt(0)<256){for(r=0;r>=1}else{for(i=1,r=0;r>=1}0==--d&&(d=Math.pow(2,h),h++),delete s[l]}else for(i=o[l],r=0;r>=1;0==--d&&(d=Math.pow(2,h),h++)}for(i=2,r=0;r>=1;for(;;){if(v<<=1,g==t-1){p.push(n(v));break}g++}return p.join("")}};return e}(),h={apfcTypes:1,collectionType:2,trackingId:3},p={protocol:1,hostname:2,port:3,origin:4,host:5,href:6,hash:7,pathname:8},v={saveData:1,effectiveType:2,rtt:3,downlink:4,downlinkMax:5,type:6},g={liedOS:1,liedBrowser:2,liedResolution:3,adBlockInstalled:4,liedLanguages:5},m={type:1,description:2,suffixes:3},y={canvasHash:1,canvasWinding:2},E={label:1,gid:2,id:3,kind:4},b={fontsHash:2},_={Orientation:1,Enabled:2},w={charging:1,dischargingTime:2,level:3,chargingTime:4},I={touchStart:1,touchEvent:2,maxTouchPoints:3},k={"webgl stencil bits":1,"webgl vertex shader high float precision rangeMax":2,"webgl antialiasing":3,"webgl max vertex texture image units":4,"webgl fragment shader medium int precision rangeMax":5,"webgl fragment shader low int precision rangeMin":6,"webgl max vertex uniform vectors":7,"webgl renderer":8,"webgl vertex shader high float precision":9,"webgl green bits":10,"webgl fragment shader medium int precision rangeMin":11,"webgl fragment shader low int precision rangeMax":12,"webgl fragment shader medium int precision":13,"webgl blue bits":14,"webgl max viewport dims":15,"webgl unmasked vendor":16,"webgl vertex shader medium float precision":17,"webgl fragment shader low int precision":18,"webgl vertex shader high int precision":19,"webgl vertex shader medium int precision rangeMax":20,"webgl unmasked renderer":21,"webgl fragment shader high int precision":22,"webgl aliased point size range":23,"webgl vertex shader medium float precision rangeMax":24,"webgl vertex shader low int precision rangeMax":25,"webgl fragment shader low float precision":26,"webgl fragment shader high int precision rangeMin":27,"webgl vertex shader high float precision rangeMin":28,"webgl red bits":29,vendorAndRenderer:30,"webgl vertex shader medium int precision rangeMin":31,"webgl vertex shader low float precision":32,"webgl vertex shader medium int precision":33,"webgl fragment shader medium float precision rangeMax":34,"webgl max texture image units":35,"webgl vertex shader medium float precision rangeMin":36,"webgl fragment shader high float precision rangeMin":37,"webgl fragment shader high int precision rangeMax":38,"webgl vertex shader high int precision rangeMax":39,webglHash:40,"webgl max varying vectors":41,"webgl fragment shader medium float precision rangeMin":42,"webgl vertex shader low int precision":43,"webgl fragment shader low float precision rangeMin":44,"webgl aliased line width range":45,"webgl max combined texture image units":46,"webgl shading language version":47,"webgl vertex shader high int precision rangeMin":48,"webgl max anisotropy":49,"webgl max render buffer size":50,"webgl vendor":51,"webgl vertex shader low int precision rangeMin":52,"webgl max fragment uniform vectors":53,"webgl fragment shader high float precision rangeMax":54,"webgl version":55,"webgl fragment shader high float precision":56,"webgl max texture size":57,"webgl max cube map texture size":58,"webgl fragment shader medium float precision":59,"webgl vertex shader low float precision rangeMin":60,"webgl max vertex attribs":61,"webgl alpha bits":62,"webgl vertex shader low float precision rangeMax":63,"webgl fragment shader low float precision rangeMax":64,"webgl depth bits":65},N={ANGLE_instanced_arrays:67,EXT_blend_minmax:68,EXT_clip_control:69,EXT_color_buffer_float:70,EXT_color_buffer_half_float:71,EXT_conservative_depth:72,EXT_depth_clamp:73,EXT_disjoint_timer_query:74,EXT_disjoint_timer_query_webgl2:75,EXT_float_blend:76,EXT_frag_depth:77,EXT_polygon_offset_clamp:78,EXT_render_snorm:79,EXT_shader_texture_lod:80,EXT_texture_compression_bptc:81,EXT_texture_compression_rgtc:82,EXT_texture_filter_anisotropic:83,EXT_texture_mirror_clamp_to_edge:84,EXT_texture_norm16:85,EXT_sRGB:86,KHR_parallel_shader_compile:87,NV_shader_noperspective_interpolation:88,OES_draw_buffers_indexed:89,OES_element_index_uint:90,OES_fbo_render_mipmap:91,OES_sample_variables:92,OES_shader_multisample_interpolation:93,OVR_multiview2:94,OES_standard_derivatives:95,OES_texture_float:96,OES_texture_float_linear:97,OES_texture_half_float:98,OES_texture_half_float_linear:99,OES_vertex_array_object:100,WEBGL_blend_func_extended:101,WEBGL_clip_cull_distance:102,WEBGL_color_buffer_float:103,WEBGL_compressed_texture_astc:104,WEBGL_compressed_texture_etc:105,WEBGL_compressed_texture_etc1:106,WEBGL_compressed_texture_pvrtc:107,WEBGL_compressed_texture_s3tc:108,WEBGL_compressed_texture_s3tc_srgb:109,WEBGL_debug_renderer_info:110,WEBGL_debug_shaders:111,WEBGL_depth_texture:112,WEBGL_draw_buffers:113,WEBGL_lose_context:114,WEBGL_multi_draw:115,WEBGL_polygon_mode:116,WEBGL_provoking_vertex:117,WEBGL_render_shared_exponent:118,WEBGL_stencil_texturing:119},C={"American Typewriter":1,"Andale Mono":2,Arial:3,"Arial Black":4,"Arial Hebrew":5,"Arial Narrow":6,"Arial Rounded MT Bold":7,"Arial Unicode MS":8,Avenir:9,"Avenir Next":10,"Avenir Next Condensed":11,Bahnschrift:12,Baskerville:13,"Big Caslon":14,"Bodoni 72":15,"Bodoni 72 Oldstyle":16,"Bodoni 72 Smallcaps":17,"Bradley Hand":18,"Brush Script MT":19,Calibri:20,Cambria:21,"Cambria Math":22,Candara:23,Chalkboard:24,"Chalkboard SE":25,Chalkduster:26,Charter:27,Cochin:28,"Comic Sans MS":29,Consolas:30,Constantia:31,Corbel:32,Copperplate:33,Courier:34,"Courier New":35,Didot:36,"DIN Alternate":37,"DIN Condensed":38,Ebrima:39,"Franklin Gothic Medium":40,Futura:41,Gabriola:42,Gadugi:43,Geneva:44,Georgia:45,"Gill Sans":46,Helvetica:47,"Helvetica Neue":48,Herculanum:49,"Hoefler Text":50,"HoloLens MDL2 Assets":51,Impact:52,"Ink Free":53,"Javanese Text":54,"Leelawadee UI":55,"Lucida Console":56,"LUCIDA GRANDE":57,"Lucida Grande":58,"Lucida Sans Unicode":59,Luminari:60,"Malgun Gothic":61,"Marker Felt":62,Marlett:63,Menlo:64,"Microsoft Himalaya":65,"Microsoft JhengHei":66,"Microsoft New Tai Lue":67,"Microsoft PhagsPa":68,"Microsoft Sans Serif":69,"Microsoft Tai Le":70,"Microsoft YaHei":71,"Microsoft Yi Baiti":72,"MingLiU-ExtB":73,Monaco:74,"Mongolian Baiti":75,"MS Gothic":76,"MV Boli":77,"Myanmar Text":78,"Nirmala UI":79,Noteworthy:80,Optima:81,Palatino:82,"Palatino Linotype":83,Papyrus:84,Phosphate:85,Rockwell:86,"Savoye LET":87,"Segoe MDL2 Assets":88,"Segoe Print":89,"Segoe Script":90,"Segoe UI":91,"Segoe UI Historic":92,"Segoe UI Emoji":93,"Segoe UI Symbol":94,SignPainter:95,SimSun:96,Sitka:97,Skia:98,"Snell Roundhand":99,Sylfaen:100,Symbol:101,Tahoma:102,Times:103,"Times New Roman":104,Trattatello:105,"Trebuchet MS":106,Verdana:107,Webdings:108,Wingdings:109,"Wingdings 2":110,"Wingdings 3":111,"Yu Gothic":112,Zapfino:113},R={appVersion:1,numOfCores:2,webrtc:3,timezone:6,plugins:7,localStorage:8,incognito:9,language:10,appCodeName:11,platform:13,javascripts:14,automation:15,pixelDepth:16,availableScreenResolution:18,timezoneOffset:19,oscpu:20,vendor:22,sessionStorage:23,webdriver:24,audio:25,openDatabase:26,screenResolution:27,vendorSub:28,product:30,appName:32,cpuClass:34,indexedDb:35,userAgent:36,deviceMemory:37,productSub:38,addBehavior:39,colorDepth:43,tsSeed:45,errors:46,pixelRatio:47};function D(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function M(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n1?n[1]:null},V={ADVERTISING:"ADVERTISING",ANALYTICS_AND_RESEARCH:"ANALYTICS_AND_RESEARCH",FUNCTIONAL:"FUNCTIONAL"},K="GUEST",W="MEMBER",G="ENTERPRISE_UNBOUND",j=(D(x={},K,"li_gc"),D(x,W,"li_mc"),D(x,G,"li_ec"),x);D(B={},K,"mypreferences/g/guest-cookies"),D(B,W,"settings/member-cookies"),D(B,G,"mypreferences/e/enterprise-cookies");var q,z,X,J,Y=function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;for(var a in function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),t=t||{},this.consentAvailable=!1,this.issuedAt=n,this.userMode=r,this.optedInConsentMap={},V)t[a]=t[a]||0,0!==t[a]&&(this.consentAvailable=!0),this.optedInConsentMap[a]=1===t[a]||0===t[a]&&1===i},Q=(q=[V.ADVERTISING,V.ANALYTICS_AND_RESEARCH,V.FUNCTIONAL],z=[0,1,2,0],X=function(e){for(var t={},n=0;n>2*n&3];return t},J=function(e){var t=0;return e>=0&&e<=3&&(t=z[e]),t},{parseConsentBody:function(e,t){var n=new RegExp(["^(\\d+)","(\\d+)","(\\d+)","((?:.|\\s)+)"].join(";")),r=e.match(n);if(!r)return{error:"Invalid consent body encoding",consent:new Y};var i=X(parseInt(r[1],10)),a=new Date(1e3*parseInt(r[2],10)),o=J(parseInt(r[3],10));return{error:null,consent:new Y(i,a,t,o)}},parseConsentBodyEnterpriseUnbound:function(e,t,n){var r=function(e){try{var t=F(e);if(t&&t.enterpriseProfile&&t.enterpriseProfile.length>=2&&t.enterpriseProfile[0].enterpriseAccount)return{enterpriseAccountId:parseInt(t.enterpriseProfile[0].enterpriseAccount,10),enterpriseProfileId:parseInt(t.enterpriseProfile[1],10)}}catch(e){return null}return null}(t);if(!r)return{error:"Invalid enterprise profile urn provided",consent:new Y};var i=r.enterpriseAccountId,a=r.enterpriseProfileId,o=new RegExp(["^((?:\\d+,\\d+,\\d+,\\d+,\\d+)(?:\\|(?:\\d+,\\d+,\\d+,\\d+,\\d+))*)","(\\d+)","(\\d+)","(?:(?:.|\\s)+)$"].join(";")),s=e.match(o);if(!s)return{error:"Invalid consent body encoding",consent:new Y};var c=s[1].split("|").map((function(e){return e.split(",").map((function(e){return parseInt(e,10)}))})).filter((function(e){var t=function(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var n=[],r=!0,i=!1,a=void 0;try{for(var o,s=e[Symbol.iterator]();!(r=(o=s.next()).done)&&(n.push(o.value),4!==n.length);r=!0);}catch(e){i=!0,a=e}finally{try{r||null==s.return||s.return()}finally{if(i)throw a}}return n}}(e)||function(e,t){if(e){if("string"==typeof e)return M(e,4);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?M(e,4):void 0}}(e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(e),r=t[1],o=t[2],s=t[3];return r===i&&o===a&&s===n}))[0];if(!c)return{error:null,consent:new Y};var u=X(c[0]),l=new Date(1e3*parseInt(s[2],10)),d=J(parseInt(s[3],10));return{error:null,consent:new Y(u,l,G,d)}}}),Z=new RegExp(["^(\\d+)","((?:.|\\s)+)"].join(";")),$=function(e){var t={};for(var n in V)t[n]=e;return{error:null,consent:new Y(t,null,null,e)}},ee=function(e,t,n,r){e&&e.length>1&&'"'==e.charAt(0)&&'"'==e.charAt(e.length-1)&&(e=e.substring(1,e.length-1));var i,a=null;try{a=(i=e,"undefined"==typeof atob&&"undefined"!=typeof Buffer?Buffer.from(i,"base64").toString("binary"):atob(i)).match(Z)}catch(e){}if(!a)return{error:"Invalid consent encoding",consent:new Y};var o=parseInt(a[1],10),s=a[2];return 1===o?t===G?Q.parseConsentBodyEnterpriseUnbound(s,n,r):Q.parseConsentBody(s,t):{error:"Invalid encoded consent version ".concat(o),consent:new Y}},te=new Map([["/voyager/api/voyagerSocialDashNormComments","createComment"],["/signup/cold-join","createAccount"],["/signup/api/createAccount","createAccount"],["/signup/api/cors/createAccount","createAccount"]]),ne=new Map([["/voyager/api/voyagerSearchDashSearchHome","searchHome"]]),re=new Map([["/signup/cold-join","createAccount"],["/signup/api/createAccount","createAccount"],["/signup/api/cors/createAccount","createAccount"]]);function ie(e){var t;try{t=new URL(e)}catch(n){t=new URL(e,window.location.origin)}return t.pathname}var ae=function(){function e(t,n){S(this,e),this.callback=t,this.config=n,this.networkInterceptorRampingActionTypes=n&&n.networkInterceptorActionTypes?new Set(n.networkInterceptorActionTypes):new Set,this.setupInterceptorForFetch(),this.setupInterceptorForOpen()}return O(e,[{key:"setupInterceptorForFetch",value:function(){var e=window.fetch,t=this;window.fetch=function(n,r){try{var i=ie(n);t.runActionInterceptorLogic(i);var a=new Headers(r.headers||{});t.runHeaderInjectionInterceptorLogic(i,a,t.config),r.headers=a}catch(e){}return e(n,r)}}},{key:"setupInterceptorForOpen",value:function(){var e=XMLHttpRequest.prototype.open,t=XMLHttpRequest.prototype.send,n=this;XMLHttpRequest.prototype.open=function(t,n){try{this._sanitizedPath=ie(n)}catch(e){}e.apply(this,arguments)},XMLHttpRequest.prototype.send=function(e){var r=this;try{if(this._sanitizedPath){var i=new Map;i.set=function(e,t){return r.setRequestHeader(e,t)},n.runHeaderInjectionInterceptorLogic(this._sanitizedPath,i,n.config)}n.runActionInterceptorLogic(this._sanitizedPath)}catch(e){}t.apply(this,arguments)}}},{key:"runActionInterceptorLogic",value:function(e){if(e){var t=this.callback,n=te.get(e),r=ne.get(e);(function(e,t,n){return(void 0!==e||void 0!==t&&n&&n.has(t))&&window.grecaptcha&&window.grecaptcha.enterprise&&window.grecaptcha.enterprise.ready&&window.grecaptcha.enterprise.execute})(n,r,this.networkInterceptorRampingActionTypes)&&function(e,t,n){window.grecaptcha.enterprise.ready((function(){var e=t||"default";window.grecaptcha.enterprise.execute("6LcIy_MqAAAAAMKiupFSbmzW3xjGSlIfRzNWYMjC",{action:e}).then((function(t){var r={token:t,expectedAction:e};n(a,JSON.stringify(r))})).catch((function(e){var t={error:e};n(a,JSON.stringify(t))}))}))}(0,void 0!==n?n:r,t)}}},{key:"runHeaderInjectionInterceptorLogic",value:function(e,t,n){if(n&&n.isSyncEnabledWithHeaders&&e&&t&&void 0!==re.get(e)&&globalThis.apfcDfAllH)try{var r=JSON.stringify(globalThis.apfcDfAllH);r.length>6e3&&(r=r.substring(0,6e3)),t.set("X-Li-Apfc-Data",r)}catch(e){}}}]),e}(),oe=function(){function e(t,n){S(this,e),this.config=t,this.featureCollectionOptions=n,this.payloads={},globalThis.apfcDfAllH={},this.intervalId=null,this.dirtyBit=!1,this.maxAttempts=30,this.attemptCount=0,this.intervalInMillis=200,this.overwriteFromConfigIfNeeded(this.config)}return O(e,[{key:"setEncryptedDNAPayload",value:function(e){this.payloads[btoa("DNA_ENCRYPTED")]=e,this.dirtyBit=!0}},{key:"setDfpJsPayload",value:function(e){this.payloads[btoa("DFP_JS_PLAINTEXT")]=e,globalThis.apfcDfAllH[btoa("DFP_JS_PLAINTEXT")]=e,this.dirtyBit=!0}},{key:"setHumanJsPayload",value:function(e){this.payloads[btoa("HUMAN_JS_PLAINTEXT")]=e,globalThis.apfcDfAllH[btoa("HUMAN_JS_PLAINTEXT")]=e,this.dirtyBit=!0}},{key:"setHumanSecurityEnforcerJsPayload",value:function(e){this.payloads[btoa("HUMAN_SECURITY_ENFORCER_PLAINTEXT")]=e,globalThis.apfcDfAllH[btoa("HUMAN_SECURITY_ENFORCER_PLAINTEXT")]=e,this.dirtyBit=!0}},{key:"setReCaptchaV3Payload",value:function(e){this.payloads[btoa("RECAPTCHA_V3_PLAINTEXT")]=e,globalThis.apfcDfAllH[btoa("RECAPTCHA_V3_PLAINTEXT")]=e,this.dirtyBit=!0}},{key:"setEncodedDNAPayload",value:function(e){globalThis.apfcDfAllH[btoa("DNA_ENCODED")]=e}},{key:"startPeriodicSending",value:function(){var e=this;this.config.isSyncEnabledWithCb&&(this.intervalId&&clearInterval(this.intervalId),this.attemptCount=0,this.intervalId=setInterval((function(){e.attemptCount++,e.dirtyBit&&(e.triggerSyncCollectionWithCb(e.featureCollectionOptions),e.dirtyBit=!1),(e.areAllPayloadsCollected()&&!1===e.dirtyBit||e.attemptCount>=e.maxAttempts)&&e.stopPeriodicSending()}),this.intervalInMillis))}},{key:"stopPeriodicSending",value:function(){this.intervalId&&(clearInterval(this.intervalId),this.intervalId=null)}},{key:"triggerSyncCollectionWithCb",value:function(e){var t=l(),n=this.constructApfcEndpointRequestBody(this.payloads);c(JSON.stringify(n),e.gloablIntegrationDataCollectionPath,t)}},{key:"areAllPayloadsCollected",value:function(){return 4===Object.keys(this.payloads).length}},{key:"constructApfcEndpointRequestBody",value:function(e){var t={};return t.payload=e,t.browserId=n.getBcookie(),t}},{key:"overwriteFromConfigIfNeeded",value:function(e){if("string"==typeof e.syncHandlerConfig&&e.syncHandlerConfig.includes(":")){var t=T(e.syncHandlerConfig.split(":"),2),n=t[0],r=t[1],i=parseInt(n,10),a=parseInt(r,10);this.maxAttempts=Number.isInteger(i)?i:this.maxAttempts,this.intervalInMillis=Number.isInteger(a)?a:this.intervalInMillis}}}]),e}(),se={preprocessor:null,audio:{timeout:1e3,excludeIOS11:!0},fonts:{swfContainerId:"apfcDf",swfPath:"flash/compiled/FontList.swf",userDefinedFonts:[],extendedJsFonts:void 0,hashOnly:!1},screen:{detectScreenOrientation:!0},plugins:{sortPluginsFor:[/palemoon/i],excludeIE:!1},webgl:{hashOnly:!1},telemetryCollectPath:"/platform-telemetry/li/apfcDf",gloablIntegrationDataCollectionPath:"/apfc/collect",extraComponents:[],excludes:{pixelRatio:!0,doNotTrack:!0,fontsFlash:!0},debug:!1,NOT_AVAILABLE:"n/a",ERROR:"err",EXCLUDED:"excluded",useRequestIdleCallBack:!0},ce=!1;try{var ue=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1?arguments[1]:void 0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=n.enterpriseProfileUrn,i=n.enterpriseAppInstanceId;if("string"!=typeof t){if("undefined"==typeof document)return{error:"cookie string must be provided in SSR mode",consent:new Y};t=document.cookie}if(r&&!i||!r&&i)return{error:"enterpriseProfileUrn and enterpriseAppInstanceId must both be provided if at least one is provided",consent:new Y};if(!(e!==G||r&&i))return{error:"enterpriseProfileUrn and enterpriseAppInstanceId are required for unbound userMode",consent:new Y};if(!e){var a=H(j[G],t);if(a&&r&&i){var o=ee(a,G,r,i);if(o.consent.userMode===G||o.error)return o}e=H("liap",t)?H(j[W],t)?W:K:H(j[K],t)?K:W}return function(e,t,n,r){var i=H(j[e],t);return i?ee(i,e,n,r):H(j[K],t)||H(j[W],t)||H(j[G],t)?$(2):$(1)}(e,t,r,i)}().consent.optedInConsentMap;ce=ue[V.FUNCTIONAL]}catch(e){}var le=function(){function e(t,n,r){var i=this;if(S(this,e),void 0!==n&&void 0!==t&&"enabled"===t.globalIntegration)"complete"===document.readyState?this.initializeGlobalIntegration(n,r):window.addEventListener("load",(function(){i.initializeGlobalIntegration(n,r)}));else if(void 0!==t){var a=JSON.parse(JSON.stringify(se));u("settings-iframe")||u("setting-headline")||(a.useRequestIdleCallBack=!1),this.initialize(a,t)}else{var o=JSON.parse(JSON.stringify(se));u("settings-iframe")||u("setting-headline")||(o.useRequestIdleCallBack=!1),"complete"===document.readyState?this.initialize(o):window.addEventListener("load",(function(){i.initialize(o)}))}}return O(e,[{key:"initializeGlobalIntegration",value:function(e,t){t.enableNetworkInterceptor&&!globalThis.apfcInterceptorInitialized&&(new ae(e,t),globalThis.apfcInterceptorInitialized=!0),!0!==t.isSyncEnabledWithCb&&!0!==t.isSyncEnabledWithHeaders||globalThis.syncCollectionHandlerInitialized||(this.syncCollectionHandler=new oe(t,se),this.syncCollectionHandler.startPeriodicSending(),globalThis.syncCollectionHandlerInitialized=!0),this.checkConfigAndInitializeAllIntegration(e,t)}},{key:"isDfCollectionRequired",value:function(e){return"number"!=typeof e.samplingTimeWindowInMillis||e.samplingTimeWindowInMillis<=0||""===n.getItem("df_ts")}},{key:"checkConfigAndInitializeAllIntegration",value:function(e,t){!0!==globalThis.pauseApfc&&(globalThis.pauseApfc=!0,setTimeout((function(){globalThis.pauseApfc=!1}),3e4),!0===t.enableOnDemandMode?(this.checkConfigAndInitializeGlobalIntegration(e,t),this.checkConfigAndInitializeThirdPartyIntegration(e,t)):(this.deleteDfCookieIfRequired(t),this.isDfCollectionRequired(t)&&(this.checkConfigAndInitializeGlobalIntegration(e,t),this.checkConfigAndInitializeThirdPartyIntegration(e,t),this.addDfCookieIfRequired(t))))}},{key:"checkConfigAndInitializeGlobalIntegration",value:function(e,t){(!0===t.enableOnDemandMode&&t.fpDataCookie.apfcTypes.includes("DNA")||!0===t.dnaIntegrationEnabled&&!0!==globalThis.dnaIntegrationCompleted)&&this.intializeGlobalIntegration(se,e,t)}},{key:"checkConfigAndInitializeThirdPartyIntegration",value:function(e,t){(!0===t.enableOnDemandMode&&t.fpDataCookie.apfcTypes.includes(a)||!0===t.recaptchaV3IntegrationEnabled&&!0!==globalThis.reCaptchaV3InitializationComplete)&&(this.initializeReCaptchaV3Integration(e,t),globalThis.reCaptchaV3InitializationComplete=!0),(!0===t.enableOnDemandMode&&t.fpDataCookie.apfcTypes.includes(r)||!0===t.humanIntegrationEnabled&&!0!==globalThis.humanIntegrationCompleted)&&this.initializeHumanIntegration(e,t),(!0===t.enableOnDemandMode&&t.fpDataCookie.apfcTypes.includes(i)||!0===t.dfpIntegrationEnabled&&!0!==globalThis.dfpIntegrationCompleted)&&this.intializeDfpIntegration(e,t),(!0===t.enableOnDemandMode&&t.fpDataCookie.apfcTypes.includes(o)||!0===t.humanSecurityEnforcerIntegrationEnabled&&!0!==globalThis.humanSecurityEnforcerIntegrationCompleted)&&this.initializeHumanSecurityEnforcerIntegration(e,t)}},{key:"deleteDfCookieIfRequired",value:function(e){var t="number"!=typeof e.samplingTimeWindowInMillis?0:e.samplingTimeWindowInMillis;if(""!==n.getItem("df_ts")){var r=Date.now(),i=Number(n.getItem("df_ts"));(!1===ce||r-i>t)&&n.deleteItem("df_ts")}}},{key:"addDfCookieIfRequired",value:function(e){if(!0===ce&&"number"==typeof e.samplingTimeWindowInMillis&&e.samplingTimeWindowInMillis>0){var t=Date.now(),r=new Date;r.setTime(t+e.samplingTimeWindowInMillis),n.setItem("df_ts",t,r)}}},{key:"initialize",value:function(e,n){if(null!=n||null!=s("apfcDfPK")){var r=this.reqid,i=this.pageInstance,a=this.isProd();return(new t).getFeatures((function(t,o){t.reqid=r,t.pageInstance=i,t.fullFeatureCollection=o,d.encryptWithKeyFromDifferentSources(JSON.stringify(t),"apfcDfPK","apfcDfPKV",n,a).then((function(t){globalThis.apfcDf=t,!0===o&&c(JSON.stringify(t),e.telemetryCollectPath,a)}))}),e)}globalThis.triggerApfc=this.reentry}},{key:"intializeGlobalIntegration",value:function(n,r,i){var a=function(t,n){var a,o=this;if(!0===n){if(e.prototype.populateFpDataCookie(t,i),void 0!==this.syncCollectionHandler&&!0===i.isSyncEnabledWithHeaders){var s=JSON.stringify(function(e){try{var t={},n=Object.freeze(e);return function(e,t){var n=e.webgl,r={};if(void 0!==n&&void 0!==n.extensions&&null!==n&&null!==n.extensions){for(var i=n.extensions,a=[],o=0;o0&&n.forEach((function(e){if(e.name&&e.value&&e.expires)try{"_px3"===e.name&&(v.px3=e.value),"_pxhd"===e.name&&(v.pxhd=e.value),"_pxvid"===e.name&&(v.pxvid=e.value),"pxcts"===e.name&&(v.pxcts=e.value),document.cookie="".concat(e.name,"=").concat(e.value,"; expires=").concat(e.expires,"; path=/")}catch(e){console.error("Error setting cookie:",e)}})),window.removeEventListener("message",e),clearTimeout(h),g()}else"cookie"===t.data.type&&t.data.name&&t.data.value&&t.data.expires&&(document.cookie="".concat(t.data.name,"=").concat(t.data.value,"; expires=").concat(t.data.expires,"; path=/"),"_px3"===t.data.name&&(v.px3=t.data.value),"_pxhd"===t.data.name&&(v.pxhd=t.data.value),"_pxvid"===t.data.name&&(v.pxvid=t.data.value),"pxcts"===t.data.name&&(v.pxcts=t.data.value))};window.addEventListener("message",m),h=setTimeout((function(){window.removeEventListener("message",m),g()}),200),f.addEventListener("load",(function(){f.contentWindow.postMessage({type:"getHSCookies"},"*")}))}catch(e){var y={error:e.message||e.toString()||"Unknown error in Human Security Enforcer integration"};t(o,JSON.stringify(y))}})),globalThis.humanSecurityEnforcerIntegrationCompleted=!0}},{key:"initializeReCaptchaV3Integration",value:function(e,t){var n=this,r=new MutationObserver((function(){var e=document.querySelector(".grecaptcha-badge");e&&(e.style.display="none",r.disconnect())}));r.observe(document.body,{childList:!0,subtree:!0});var i="6LcIy_MqAAAAAMKiupFSbmzW3xjGSlIfRzNWYMjC",o=document.createElement("script");o.src="proxy.php?u=https://www.google.com/recaptcha/enterprise.js?render="+i,document.head.appendChild(o),!0===t.recaptchaV3OnPageLoadEnabled&&o.addEventListener("load",(function(){if(window.grecaptcha&&window.grecaptcha.enterprise&&window.grecaptcha.enterprise.ready){var t="onPageLoad";window.grecaptcha.enterprise.ready((function(){window.grecaptcha.enterprise.execute(i,{action:t}).then((function(r){var i={token:r,expectedAction:t};globalThis.apfcDfRV3=JSON.stringify(i),void 0!==n.syncCollectionHandler&&n.syncCollectionHandler.setReCaptchaV3Payload(globalThis.apfcDfRV3),e(a,globalThis.apfcDfRV3)})).catch((function(t){var n={error:t};e(a,JSON.stringify(n))}))}))}}))}}]),e}();le.prototype.reentry=function(e){globalThis.triggerApfc=null,new le(e)},le.prototype.reentryGlobalIntegration=function(e,t){globalThis.triggerDnaApfcEvent=null,new le({globalIntegration:"enabled"},e,t)},le.prototype.reentryGlobalIntegrationOnDemand=function(e,t){if(void 0!==t&&void 0!==e){var n=le.prototype.extractDataCookie();!0===t.onlyOnDemandFlow&&null===n||(t.fpDataCookie=n,null!==n&&(t.enableOnDemandMode=!0),le.prototype.reentryGlobalIntegration(e,t))}},le.prototype.extractDataCookie=function(){var e=n.getItem("li_apfcdc");if(n.deleteItem("li_apfcdc"),!e||""===e)return null;var t=(e=atob(e)).split(":::");if(t.length<5)return null;var r={};return r.trackingId=t[0],r.memberId=t[1],r.sessionUrn=t[2],r.collectionType=t[3],r.apfcTypes=t[4].split(","),r},le.prototype.populateFpDataCookie=function(e,t){"object"==A(e)&&"object"==A(t)&&(e.FPDataCookie=t.fpDataCookie)},le.prototype.isProd=function(){return l()},le.prototype.isEmpty=function(e){return e&&0===Object.keys(e).length},"undefined"!=typeof globalThis&&"undefined"!=typeof document&&"undefined"!=typeof window&&(void 0===globalThis.triggerDnaApfcEvent&&(globalThis.triggerDnaApfcEvent=le.prototype.reentryGlobalIntegration),void 0===globalThis.triggerDnaApfcEventOnDemand&&(globalThis.triggerDnaApfcEventOnDemand=le.prototype.reentryGlobalIntegrationOnDemand),(void 0===globalThis.maxApfcVersion||5>globalThis.maxApfcVersion)&&(globalThis.maxApfcVersion=5,globalThis.triggerDnaApfcEventOnDemandVersioned=le.prototype.reentryGlobalIntegrationOnDemand),new le)}();var po=function(){function e(){S(this,e)}return O(e,null,[{key:"collectFeatures",value:function(e,t){try{"undefined"!=typeof globalThis&&"undefined"!=typeof document&&"undefined"!=typeof window&&"undefined"!==globalThis.triggerDnaApfcEventOnDemandVersioned&&globalThis.triggerDnaApfcEventOnDemandVersioned(t,e)}catch(e){}}}]),e}(),vo=function(){function e(t,n,r,i,a,o,s,c,u,l){S(this,e),D(this,"hostApis",void 0),D(this,"statics",void 0),D(this,"options",void 0),D(this,"allowTimingOrigin",void 0),D(this,"fireResourceLoadEvent",void 0),D(this,"isTracerEnabled",void 0),D(this,"responseRleCache",void 0),D(this,"fireApfcEvent",void 0),D(this,"abuseDeviceSignalCollectionConfig",void 0),D(this,"trackingEndpoint",void 0),D(this,"collectResourceTimings",void 0),D(this,"collectCdnData",void 0),D(this,"perfObserver",void 0),D(this,"renderTimings",new Map),D(this,"urlToTreeId",new Map),D(this,"cdnDataProvider",void 0),D(this,"observables",new Fa),D(this,"trackingEndpointPattern",void 0),this.hostApis=t,this.statics=n,this.options=r,this.allowTimingOrigin=i,this.fireResourceLoadEvent=a,this.isTracerEnabled=o,this.responseRleCache=s,this.fireApfcEvent=c,this.abuseDeviceSignalCollectionConfig=u,this.trackingEndpoint=l,this.collectResourceTimings=r["enable-rs-timing"],this.collectCdnData=r["enable-cdn-tracking"],this.collectCdnData&&(this.cdnDataProvider=new ho(t)),this.trackingEndpointPattern=function(e){if(!e)return"/li/track";try{return new URL(e).pathname}catch(t){return e}}(this.trackingEndpoint)}return O(e,[{key:"recordTreeId",value:function(e,t){this.collectResourceTimings&&this.urlToTreeId.set(function(e,t){return(ao=ao||t.createElement("a")).href=e,ao.href}(t,this.hostApis.document),e)}},{key:"recordRenderStart",value:function(e,t){this.renderTimings.has(e)||this.renderTimings.set(e,{renderName:t,viewId:e,renderStart:so(this.hostApis.performance,this.allowTimingOrigin)})}},{key:"recordRenderEnd",value:function(e,t,n){var r=this.renderTimings.get(e);if(r&&(r.renderEnd=r.renderEnd||so(this.hostApis.performance,this.allowTimingOrigin),t))return n?this.collectViewLoadEventData(r,n):void en("ViewLoadEvent",xa)}},{key:"collectViewLoadEventData",value:function(e,t){var n=e.renderName,r=e.renderEnd,i=void 0===r?-1:r,a=e.renderStart,o=void 0===a?-1:a,s=[];return s.push({viewProgressType:"RENDER_START",timestamp:o}),s.push({viewProgressType:"RENDER_END",timestamp:i}),{parentPageLoadId:t,viewHierarchy:[n],viewProgressStates:s}}},{key:"startObserving",value:function(){var e=this.hostApis,t=e.PerformanceObserver,n=e.performance;this.stopObserving(),t?this.setupPerformanceObserver(t,n.timeOrigin):this.collectResourceTimings&&this.emulateResourceTimingObserver(n),this.collectResourceTimings&&this.processNewResourceTimings()}},{key:"stopObserving",value:function(){var e;null===(e=this.perfObserver)||void 0===e||e.disconnect(),this.reset()}},{key:"collect",value:function(e){var t=this,n=e.isInitial,r=e.immediate,i=this.collectSynchronousData(n);if(r)return i;var a=this.collectAsynchronousData();return"then"in a?a.then((function(e){return(0,t.hostApis.assign)(i,e),i})):i}},{key:"collectPageLoadStartData",value:function(e){var t=e.isInitial,n=e.rumKey,r=Object.create(null);r.pageKey=n,r.pageLoadType=t?"INITIAL_LOAD":"SUBSEQUENT_LOAD",r.networkInformationMetrics=this.snapshot.networkInformationMetrics;var i=this.statics,a=i.webUIFramework,o=i.timeSource,s=i.isSinglePageApp,c=i.appRenderMode,u=i.isAppRenderFailed,l=i.isFromServiceWorker,d=i.treeId;return r.treeId=d,r.browserPageLoadStartContext={webUIFramework:a,timeSource:o,isSinglePageApp:s,appRenderMode:c,isAppRenderFailed:u,isFromServiceWorker:l},r}},{key:"collectPageLoadEndData",value:function(e){var t=Object.create(null),n=Object.create(null);t.cdnData=[],t.browserPageLoadEndContext={},t.navigationTiming=Object.create(null);var r=e.isInitial,i=e.immediate,a=this.hostApis.assign;if(r){var o=mo(this.hostApis.performance),s=o.htmlMetrics,c=o.redirectCount,u=o.navigationType,l=o.workerStart;s&&(t.browserPageLoadEndContext.htmlMetrics=Object.create(null),a(t.browserPageLoadEndContext.htmlMetrics,s)),Object.prototype.hasOwnProperty.call(o,"redirectCount")&&(n.redirectCount=c),Object.prototype.hasOwnProperty.call(o,"navigationType")&&(n.navigationType=u),n.workerStart=null!=l?l:0,Ma.forEach((function(e){Object.prototype.hasOwnProperty.call(o,e)&&(n[e]=o[e])})),a(t.navigationTiming,n)}if(!i){var d=this.collectAsynchronousData();if("then"in d)return d.then((function(e){return a(t.cdnData,e.cdnData),t}))}var f=this.collectAsynchronousData(!0);return a(t.cdnData,f.cdnData),t}},{key:"collectResourceLoadEvent",value:function(e,t){var n=e.name,r=e.transferSize,i=e.initiatorType,a=e.nextHopProtocol,o=e.encodedBodySize,s=e.decodedBodySize,c=e.requestStart,u={};u.resourceKey=n,u.isNetwork=!!r&&0!==r,u.loadType=i||"unknown",u.timeOrigin=t;var l=[];Object.keys(La).forEach((function(t){var n;t in ka&&void 0!==e[t]&&l.push({resourceProgressType:La[t],duration:null!==(n=e[t])&&void 0!==n?n:-1})})),u.resourceProgressStates=l;var d={},f=Pa[a];d.nextHopProtocol=null!=f?f:"UNKNOWN",d.transferSize=r,d.encodedBodySize=o,d.decodedBodySize=s,u.resourceNetworkContext=d,u.requestStart=c;try{var h,p,v=new URL(n),g=v.pathname+v.search+v.hash;return null===(h=this.responseRleCache)||void 0===h||h.offerResourceLoadEvent(g,u),null===(p=this.responseRleCache)||void 0===p?void 0:p.flushCacheByUrl(g)}catch(e){var m,y="".concat("Invalid url from ResourceLoadEvent"," request url ").concat(n);return e instanceof Error?(e.message="".concat(y," ").concat(e.message),en("ResourceLoadEvent",e)):en("ResourceLoadEvent",y),null===(m=this.responseRleCache)||void 0===m?void 0:m.flushCacheByUrl()}}},{key:"reset",value:function(){var e;this.observables.reset(),null===(e=this.cdnDataProvider)||void 0===e||e.clearUsedHostnames()}},{key:"collectSynchronousData",value:function(e){var t=this.hostApis,n=t.assign,r=t.PerformanceObserver,i=Object.create(null);return this.statics.pageLoadMode=e?"INITIAL":"PARTIAL",r||(this.observables.userTimingEntries=lo(this.hostApis.performance,this.options,!0),this.collectResourceTimings&&this.processNewResourceTimings()),this.observables.attachTreeIds(this.urlToTreeId),this.urlToTreeId.clear(),n(i,this.observables.getData(),this.snapshot,this.statics),e&&n(i,mo(this.hostApis.performance)),n(i,this.collectAsynchronousData(!0)),i}},{key:"collectAsynchronousData",value:function(e){var t=this,n={cdnData:[],usedCDN:this.extractUsedCDN([])};if(e){if(this.collectCdnData){var r=this.cdnDataProvider.getPresentData();n.cdnData=r,n.usedCDN=this.extractUsedCDN(r)}return n}var i=[];return this.collectCdnData&&i.push(this.cdnDataProvider.getDataWhenReady(this.options["async-plugins-timeout"]).then((function(e){n.cdnData=e,n.usedCDN=t.extractUsedCDN(e)}))),i.length>0?Yt(i,Promise).then((function(){return n})):n}},{key:"triggerDeviceSignalCollection",value:function(e){var t=e.onlyTriggerOnDemandFlow;try{var n=this.abuseDeviceSignalCollectionConfig||{},r=n.isDnaIntegrationLixEnabled,i=n.isHumanIntegrationLixEnabled,a=n.isDfpIntegrationLixEnabled,o=n.samplingTimeWindowInMillis,s=n.isOnDemandFingerprintingEnabled,c=n.isSyncFingerprintingWithHeadersLixEnabled,u=n.isSyncFingerprintingWithCbLixEnabled,l=n.isRecaptchaV3IntegrationEnabled,d=n.isNetworkInterceptorEnabled,f=n.networkInterceptorActionTypes,h=n.isHumanSecurityEnforcerIntegrationLixEnabled,p=n.isRecaptchaV3OnPageLoadEnabled;if(i||a||r||c||u||l||d||h||p){var v,g,m={treeId:null!==(v=null===(g=this.statics.treeId)||void 0===g?void 0:g.toString())&&void 0!==v?v:"",humanIntegrationEnabled:i,dfpIntegrationEnabled:a,dnaIntegrationEnabled:r,samplingTimeWindowInMillis:o,onlyOnDemandFlow:t,isSyncEnabledWithHeaders:c,isSyncEnabledWithCb:u,recaptchaV3IntegrationEnabled:l,enableNetworkInterceptor:d,networkInterceptorActionTypes:f,humanSecurityEnforcerIntegrationEnabled:h,recaptchaV3OnPageLoadEnabled:p};(!t||t&&s||c||u)&&po.collectFeatures(m,this.fireApfcEvent)}}catch(e){}}},{key:"setupPerformanceObserver",value:function(e,t){var n=this;this.perfObserver=new e((function(e){var r=(n.abuseDeviceSignalCollectionConfig||{}).disablePerfMarkerOptimization;r&&n.triggerDeviceSignalCollection({onlyTriggerOnDemandFlow:!1}),e.getEntries().forEach((function(e){var i=e.entryType,a=e.name,o=e.startTime,s=e.duration;"resource"===i?n.processSingleResourceTiming(e,t):"mark"===i?(n.observables.userTimingEntries.push({entryType:"MARK",name:a,startTime:o,duration:s}),"mark_meaningful_paint_end"!==a||r||n.triggerDeviceSignalCollection({onlyTriggerOnDemandFlow:!1})):"measure"===i?n.observables.userTimingEntries.push({entryType:"MEASURE",name:a,startTime:o,duration:s}):"longtask"===i&&n.observables.longTasks.push({duration:s,name:a,startTime:o})}))})),this.observables.userTimingEntries=lo(this.hostApis.performance,this.options,!1);var r=["longtask"];(this.collectResourceTimings||this.collectCdnData)&&r.push("resource"),this.options["user-timing-mark-enabled"]&&r.push("mark"),this.options["user-timing-measure-enabled"]&&r.push("measure"),this.perfObserver.observe({entryTypes:r})}},{key:"emulateResourceTimingObserver",value:function(e){var t=this;e&&"function"==typeof e.setResourceTimingBufferSize&&"function"==typeof e.onresourcetimingbufferfull&&(e.setResourceTimingBufferSize(100),e.onresourcetimingbufferfull=function(){return t.processNewResourceTimings()})}},{key:"processNewResourceTimings",value:function(){var e=this,t=this.hostApis.performance;"function"==typeof t.getEntriesByType&&"function"==typeof t.clearResourceTimings&&(t.getEntriesByType("resource").forEach((function(n){return e.processSingleResourceTiming(n,t.timeOrigin)})),t.clearResourceTimings())}},{key:"processSingleResourceTiming",value:function(e,t){var n=this;if(this.collectResourceTimings){this.options["enable-otel"]&&Ct.emit(ya.INTERNAL_OTEL_RESOURCE,{resourceTiming:e}),this.observables.resourceTimingEntries.push(e);var r=-1!==e.name.indexOf(this.trackingEndpointPattern);if(this.isTracerEnabled&&!r&&!function(e){for(var t=0,n=oo;t=0})),n=t.length>0?t[0]:{hostname:"",provider:"",httpVersion:"",ipVersion:""};return{static_domain:n.provider,http_version:n.httpVersion,ip_version:n.ipVersion}}},{key:"snapshot",get:function(){var e={detailedRenderTimingEntries:fo(this.renderTimings),networkInformationMetrics:go(this.hostApis.connection)};return this.renderTimings.clear(),e}}]),e}();function go(e){return e?{connectionType:e.type&&e.type.toUpperCase()||"UNKNOWN",effectiveType:function(e){switch(e){case"2g":return"TWO_G";case"3g":return"THREE_G";case"4g":return"FOUR_G";default:return"SLOW_2G"}}(e.effectiveType),roundTripTime:e.rtt||-1,downlinkBandwidth:e.downlink||-1,downlinkMaxBandwidth:void 0===e.downlinkMax?-1:e.downlinkMax===1/0?0:e.downlinkMax}:void 0}function mo(e){if(!e)return{navigationTimingApi:!1};var t=Object.create({});if("function"==typeof e.getEntriesByType){var n=e.getEntriesByType("navigation")[0];n&&(["fetchStart","responseEnd","decodedBodySize","encodedBodySize","transferSize"].every((function(e){return"number"==typeof n[e]}))&&(t.htmlMetrics={htmlFetchStart:n.fetchStart,htmlResponseEnd:n.responseEnd,htmlDecodedBodySize:n.decodedBodySize,htmlEncodedBodySize:n.encodedBodySize,htmlTransferSize:n.transferSize}),t.workerStart=n.workerStart)}var r=e.timing,i=e.navigation;return r&&i?(t.navigationTimingApi=!0,Ma.forEach((function(e){e in r&&(t[e]=r[e])})),t.navigationType=i.type,t.redirectCount=i.redirectCount):t.navigationTimingApi=!1,t}var yo=function(){function e(t,n,r){S(this,e),D(this,"featureName",void 0),D(this,"trackingCore",void 0),D(this,"rumConfig",void 0),D(this,"observing",!1),D(this,"basePageTreeId",void 0),D(this,"startPageInstance",void 0),D(this,"startMemory",void 0),D(this,"reportTimeouts",[]),this.featureName=t,this.trackingCore=n,this.rumConfig=r}return O(e,[{key:"startObserving",value:function(){var t,n=this,r=this.getMemory();r&&!this.observing&&(this.basePageTreeId=this.trackingCore.host.treeID||"",this.startPageInstance=(null===(t=this.trackingCore.getCurrentContext())||void 0===t?void 0:t.pageInstance)||jt(U),this.startMemory=r,this.reportTimeouts=e.checkpoints.map((function(e){return setTimeout((function(){return n.reportMemory(e)}),60*e*1e3)})))}},{key:"stopObserving",value:function(){this.reportTimeouts.forEach((function(e){return clearTimeout(e)})),this.observing=!1}},{key:"reportMemory",value:function(e){var t={name:this.featureName,basePageTreeId:this.basePageTreeId,startTime:co(this.trackingCore.host.api.performance),duration:0,startPageInstance:this.startPageInstance,marks:this.createMemoryMarks("-".concat(e,"min")),spans:[]};this.trackingCore.fireEvent({appId:this.rumConfig["app-id"],eventName:"FeaturePerformanceMeasurementEvent"},t)}},{key:"createMemoryMarks",value:function(e){var t=this.getMemory(),n=["jsHeapSizeLimit","totalJSHeapSize","usedJSHeapSize"].map((function(n){return{name:n+e,startTime:t[n]}})),r=t.usedJSHeapSize-this.startMemory.usedJSHeapSize;return n.push({name:(r<0?"usedJSHeapSizeDecrease":"usedJSHeapSizeIncrease")+e,startTime:Math.abs(r)},{name:"utilization"+e,startTime:Math.round(t.usedJSHeapSize/t.totalJSHeapSize*100)}),n}},{key:"getMemory",value:function(){return this.trackingCore.host.api.performance.memory}}]),e}();D(yo,"checkpoints",[1,3,10,30,90,180,300]);var Eo,To,bo,_o,wo,Io=O((function e(t,n,r){S(this,e),D(this,"webUIFramework",void 0),D(this,"timeSource",void 0),D(this,"isSinglePageApp",void 0),D(this,"appRenderMode",void 0),D(this,"isAppRenderFailed",void 0),D(this,"pageLoadMode","INITIAL"),D(this,"isSSL",void 0),D(this,"treeId",void 0),D(this,"isFromServiceWorker",void 0),this.webUIFramework=n["web-ui-framework"],this.timeSource=n["beacon-source"],this.isSinglePageApp=n["is-single-page-app"],this.appRenderMode=t["app-render-mode"],this.isAppRenderFailed=t["is-app-render-failed"],this.isSSL="https:"===r.api.location.protocol?1:0,this.treeId=r.treeID,this.isFromServiceWorker=r.isFromServiceWorker})),ko=function(){function e(t){S(this,e),D(this,"isPEMTracerEnabled",void 0),D(this,"responseContextMap",new Map),D(this,"resourceLoadEventsMap",new Map),this.isPEMTracerEnabled=t}return O(e,[{key:"offerResponseContext",value:function(e,t){if(this.isPEMTracerEnabled)if(this.responseContextMap.has(e)){var n;null===(n=this.responseContextMap.get(e))||void 0===n||n.heapPush(t)}else{var r=new nn((function(e,t){return e.requestTime0&&n.heapsize()===t.heapsize()}},{key:"clear",value:function(){this.resourceLoadEventsMap.clear(),this.responseContextMap.clear()}},{key:"flushCache",value:function(){var e=this.responseContextMap.keys(),t=[];if(e){var n,r=I(e);try{for(r.s();!(n=r.n()).done;){var i=n.value;t=[].concat(k(t),k(this.flushCacheByUrl(i)))}}catch(e){r.e(e)}finally{r.f()}}var a=this.resourceLoadEventsMap.keys();if(a){var o,s=I(a);try{for(s.s();!(o=s.n()).done;){var c,u=o.value,d=null===(c=this.resourceLoadEventsMap.get(u))||void 0===c?void 0:c.heapClear();d&&(t=[].concat(k(t),k(d.map((function(e){return e.requestStart,tn(w(e,l))})))))}}catch(e){s.e(e)}finally{s.f()}}return t}},{key:"flushCacheByUrl",value:function(e){var t,n=[];if(!e)return n;if(!this.isPEMTracerEnabled)return(null===(t=this.resourceLoadEventsMap)||void 0===t||null===(t=t.get(e))||void 0===t||null===(t=t.heapClear())||void 0===t?void 0:t.map((function(e){return e.requestStart,tn(w(e,d))})))||n;if(this.canFlush(e)){for(var r=this.responseContextMap.get(e);r&&r.heapsize()>0;){var i=this.mergeAndConsume(e);i&&n.push(i)}this.deleteEntryByRequestUrl(e)}return n}}]),e}(),No=function(e,t){return{name:e,value:void 0===t?-1:t,delta:0,entries:[],id:"v2-".concat(Date.now(),"-").concat(Math.floor(8999999999999*Math.random())+1e12)}},Co=function(e,t){try{if(PerformanceObserver.supportedEntryTypes.includes(e)){if("first-input"===e&&!("PerformanceEventTiming"in self))return;var n=new PerformanceObserver((function(e){return e.getEntries().map(t)}));return n.observe({type:e,buffered:!0}),n}}catch(e){}},Ao=function(e,t){var n=function n(r){"pagehide"!==r.type&&"hidden"!==document.visibilityState||(e(r),t&&(removeEventListener("visibilitychange",n,!0),removeEventListener("pagehide",n,!0)))};addEventListener("visibilitychange",n,!0),addEventListener("pagehide",n,!0)},So=function(e){addEventListener("pageshow",(function(t){t.persisted&&e(t)}),!0)},Ro=function(e,t,n){var r;return function(i){t.value>=0&&(i||n)&&(t.delta=t.value-(r||0),(t.delta||void 0===r)&&(r=t.value,e(t)))}},Oo=-1,Do=function(){return"hidden"===document.visibilityState?0:1/0},Mo=function(){Ao((function(e){var t=e.timeStamp;Oo=t}),!0)},Lo=function(){return Oo<0&&(Oo=Do(),Mo(),So((function(){setTimeout((function(){Oo=Do(),Mo()}),0)}))),{get firstHiddenTime(){return Oo}}},Po=!1,xo=-1,Bo=function(e,t){Po||(function(e,t){var n,r=Lo(),i=No("FCP"),a=function(e){"first-contentful-paint"===e.name&&(s&&s.disconnect(),e.startTime-1&&e(t)},i=No("CLS",0),a=0,o=[],s=function(e){if(!e.hadRecentInput){var t=o[0],r=o[o.length-1];a&&e.startTime-r.startTime<1e3&&e.startTime-t.startTime<5e3?(a+=e.value,o.push(e)):(a=e.value,o=[e]),a>i.value&&(i.value=a,i.entries=o,n())}},c=Co("layout-shift",s);c&&(n=Ro(r,i,t),Ao((function(){c.takeRecords().map(s),n(!0)})),So((function(){a=0,xo=-1,i=No("CLS",0),n=Ro(r,i,t)})))},Uo={passive:!0,capture:!0},Fo=new Date,Ho=function(e,t){Eo||(Eo=t,To=e,bo=new Date,Wo(removeEventListener),Vo())},Vo=function(){if(To>=0&&To1e12?new Date:performance.now())-e.timeStamp;"pointerdown"==e.type?function(e,t){var n=function(){Ho(e,t),i()},r=function(){i()},i=function(){removeEventListener("pointerup",n,Uo),removeEventListener("pointercancel",r,Uo)};addEventListener("pointerup",n,Uo),addEventListener("pointercancel",r,Uo)}(t,e):Ho(t,e)}},Wo=function(e){["mousedown","keydown","touchstart","pointerdown"].forEach((function(t){return e(t,Ko,Uo)}))},Go=function(e,t){var n,r=Lo(),i=No("FID"),a=function(e){e.startTime0&&(n=i[0])}return(null===(e=n)||void 0===e?void 0:e.name)||window.location.href}(),Qo=!1,Zo=new Set,$o={LCP:"largest-contentful-paint",FID:"first-input",CLS:"layout-shift"};function es(){var e=!0===window.__test__resetWebVitalsState;if(!Qo||e){e&&(Zo=new Set),zo.forEach(ts);var t=Symbol();wo=t,[qo,Go,Bo].forEach((function(e){return e(ns.bind(null,t),!0)})),[qo,Go,Bo].forEach((function(e){return e(rs.bind(null,t))})),Qo=!0}}function ts(e){Jo[e]={name:e,verboseName:Xo[e]||e,value:Oa,updateHistory:[]};var t=$o[e];"undefined"!=typeof PerformanceObserver&&void 0!==PerformanceObserver.supportedEntryTypes&&"string"==typeof t&&PerformanceObserver.supportedEntryTypes.indexOf(t)>-1||(Jo[e].value=Da)}function ns(e,t){if(e===wo){var n=Jo[t.name],r=co();n&&(n.updateHistory.push({time:r,data:t}),n.value=t.value),Zo.forEach((function(e){return e(t,r,!1)}))}}function rs(e,t){e===wo&&Zo.forEach((function(e){return e(t,co(),!0)}))}var is,as=function(){function e(t,n){var r=this;S(this,e),D(this,"basePageTreeId",void 0),D(this,"basePageKey",void 0),D(this,"observing",!1),D(this,"appContextMap",new Map),D(this,"rumConfig",void 0),D(this,"trackingCore",void 0),D(this,"onMetricUpdate",(function(e,t,n){var i;r.observing&&(n?r.reportMetric(e.name):r.appContextMap.set(t,{time:t,url:location.href,pageKey:null===(i=r.trackingCore.getCurrentContext())||void 0===i?void 0:i.pageKey}))})),this.trackingCore=t,this.rumConfig=n}return O(e,[{key:"startObserving",value:function(){var e,t,n=this;es(),this.observing||(this.observing=!0,this.basePageTreeId=this.trackingCore.host.treeID||"_unknown",this.basePageKey=(null===(e=this.trackingCore.getCurrentContext())||void 0===e?void 0:e.pageKey)||"_unknown",zo.forEach((function(e){var t;(null===(t=Jo[e])||void 0===t?void 0:t.value)===Da&&n.reportMetric(e)})),t=this.onMetricUpdate,Zo.add(t))}},{key:"stopObserving",value:function(){var e;this.observing=!1,e=this.onMetricUpdate,Zo.delete(e)}},{key:"reportMetric",value:function(e){var t=Jo[e];if(t){var n={name:Xo[e]||e};"CLS"===e?n.doubleValue=t.value:n.longValue=Math.round(t.value);var r=function(e,t,n,r,i){var a={basePageTreeId:e,basePageKey:t,basePageUrl:Yo},o=null;switch(n.name){case"LCP":o=function(e,t){var n;if(0===e.updateHistory.length)return null;var r=e.updateHistory[e.updateHistory.length-1],i=r.data.entries,a=i[i.length-1],o={pageKey:(null===(n=t.get(r.time))||void 0===n?void 0:n.pageKey)||"_unknown",element:uo(a.element),renderTime:Math.round(a.renderTime),loadTime:Math.round(a.loadTime),size:Math.round(a.size)};return a.url&&(o.url=a.url),o}(n,r);break;case"FID":o=function(e,t){var n;if(0===e.updateHistory.length)return null;var r=e.updateHistory[e.updateHistory.length-1],i=r.data.entries,a=i[i.length-1];return{pageKey:(null===(n=t.get(r.time))||void 0===n?void 0:n.pageKey)||"_unknown",processingStart:Math.round(a.processingStart),processingEnd:Math.round(a.processingEnd),target:uo(a.target)}}(n,r);break;case"CLS":o=function(e,t){if(0===e.updateHistory.length)return null;var n=e.updateHistory.map((function(e){return e.data.entries})).flat();if(0===n.length)return null;var r=n.reduce((function(e,t){return e&&e.value>t.value?e:t})),i=e.updateHistory.find((function(e){return e.data.entries.includes(r)})),a=null;r&&r.sources&&r.sources.length&&(a=r.sources.reduce((function(e,t){return e.node&&e.previousRect.width*e.previousRect.height>t.previousRect.width*t.previousRect.height?e:t})));var o,s=t.get(i.time);return a&&s?{shiftCount:n.length,"largestShift.value":r.value,"largestShift.hadRecentInput":r.hadRecentInput,"largestShift.largestSource.node":uo(null===(o=a)||void 0===o?void 0:o.node),"largestShift.pageKey":s.pageKey||"_unknown","largestShift.url":s.url,"largestShift.startTime":Math.round(r.startTime)}:null}(n,r)}if(o){var s={};return i(s,a,o),s}return a}(this.basePageTreeId,this.basePageKey,t,this.appContextMap,this.trackingCore.host.api.assign);n.metadata=function(e){var t={};return Object.keys(e).forEach((function(n){var r=e[n];t[n]="string"==typeof r?r:JSON.stringify(r)})),t}(r);var i={scope:{scopeType:"APPLICATION_INSTANCE",scopeKey:this.basePageTreeId},metrics:[n]};if(this.trackingCore.fireEvent({appId:this.rumConfig["app-id"],eventName:"ClientPerfMetricsEvent"},i),this.rumConfig["enable-otel"])if("LCP"===e){var a={value:n.longValue,metadata:r};Ct.emit(ya.INTERNAL_OTEL_LARGEST_CONTENTFUL_PAINT,a)}else if("CLS"===e){var o={value:n.doubleValue,metadata:r};Ct.emit(ya.INTERNAL_OTEL_CUMULATIVE_LAYOUT_SHIFT,o)}else if("FID"===e){var s={value:n.longValue,metadata:r};Ct.emit(ya.INTERNAL_OTEL_FIRST_INPUT_DELAY,s)}}}}]),e}(),os="x-li-uuid",ss="x-li-pop",cs="x-msedge-ref",us="x-li-fabric",ls="x-li-pem-resp-meta",ds="content-type",fs="x-cache",hs=function(){function e(t){S(this,e),D(this,"_callTreeId",void 0),D(this,"_fabric",void 0),D(this,"_msEdgeRef",void 0),D(this,"_pointOfPresenceId",void 0),D(this,"_responseMetadata",void 0),D(this,"_contentType",void 0),D(this,"_cdnCacheMetadata",void 0),D(this,"_downstreamAvailability",void 0);var n=new Map;null==t||t.forEach((function(e,t){n.set(t.toLowerCase(),e)})),this._callTreeId=n.get(os)||null,this._pointOfPresenceId=n.get(ss)||null,this._msEdgeRef=n.get(cs)||null,this._fabric=n.get(us)||null,this._responseMetadata=n.get(ls)||null,this._contentType=n.get(ds)||null,this._cdnCacheMetadata=n.get(fs)||null,this._downstreamAvailability=function(e){if(null==e)return 1;var t,n=I(e.split(","));try{for(n.s();!(t=n.n()).done;){var r=t.value.split("=",2);if(2===r.length&&"availability"===r[0]){var i=parseFloat(r[1]);if(i>=0&&i<=1)return i}}}catch(e){n.e(e)}finally{n.f()}return 1}(this._responseMetadata)}return O(e,[{key:"callTreeId",get:function(){return this._callTreeId}},{key:"pointOfPresenceId",get:function(){return this._pointOfPresenceId}},{key:"microsoftEdgeReference",get:function(){return this._msEdgeRef}},{key:"fabric",get:function(){return this._fabric}},{key:"contentType",get:function(){return this._contentType}},{key:"cdnCacheMetadata",get:function(){return this._cdnCacheMetadata}},{key:"responseMetadata",get:function(){return this._responseMetadata}},{key:"downstreamAvailability",get:function(){return this._downstreamAvailability}},{key:"hasAnyLinkedInHeaders",value:function(){return!!(this._fabric||this._pointOfPresenceId||this._msEdgeRef||this._callTreeId)}}]),e}();!function(e){e.CLIENT_TIMEOUT="CLIENT_TIMEOUT",e.CLIENT_ABORTED="CLIENT_ABORTED",e.SERVER_ERROR="SERVER_ERROR",e.NETWORK_ERROR="NETWORK_ERROR",e.UNCLASSIFIED="UNCLASSIFIED",e.TOO_MANY_REQUESTS="TOO_MANY_REQUESTS",e.CLIENT_ERROR="CLIENT_ERROR",e.GRAPHQL_FULL_FAILURE="GRAPHQL_FULL_FAILURE",e.BLOCKED_BY_CLIENT_PROXY="BLOCKED_BY_CLIENT_PROXY",e.DOWNSTREAM_GRACEFUL_DEGRADATION="DOWNSTREAM_GRACEFUL_DEGRADATION",e.TRAFFIC_AFD_TO_LI_POP_ERROR="TRAFFIC_AFD_TO_LI_POP_ERROR",e.TRAFFIC_LI_POP_TO_DC_ERROR="TRAFFIC_LI_POP_TO_DC_ERROR"}(is||(is={}));function ps(e,t,n,r,i,a){var o=new hs(r),s=a||function(e,t,n){if(t){if(429===t||999===t)return is.TOO_MANY_REQUESTS;if(e&&!e.hasAnyLinkedInHeaders()&&t&&t>=400&&t<600)return is.BLOCKED_BY_CLIENT_PROXY;if((r=t)>=400&&r<500)return is.CLIENT_ERROR;if(function(e){return e>=500&&e<600}(t))return function(e){if(e){if(e.fabric)return is.SERVER_ERROR;if(e.pointOfPresenceId)return is.TRAFFIC_LI_POP_TO_DC_ERROR;if(e.microsoftEdgeReference)return is.TRAFFIC_AFD_TO_LI_POP_ERROR}return is.SERVER_ERROR}(e);if(function(e,t){return!!(e>=200&&e<300&&t&&t.downstreamAvailability<1)}(t,e))return is.DOWNSTREAM_GRACEFUL_DEGRADATION;if(!n)return null}var r;if(n instanceof Error){if("AbortError"===n.name)return is.CLIENT_ABORTED;if(n instanceof TypeError&&(n.message.indexOf("Network request failed")>=0||n.message.indexOf("NetworkError when attempting to fetch resource")>=0||n.message.indexOf("Failed to fetch")>=0))return is.NETWORK_ERROR}else if(function(e){return!!e&&("string"==typeof e.statusText||"number"==typeof e.status||"number"==typeof e.readyState)}(n)){if("timeout"===n.statusText)return is.CLIENT_TIMEOUT;if(0===n.status&&"abort"===n.statusText)return is.CLIENT_ABORTED;if("readyState"in n&&0===n.readyState)return is.NETWORK_ERROR}return is.UNCLASSIFIED}(o,n,i),c=null;return s&&(c={errorType:s},s===is.UNCLASSIFIED&&i&&(c.errorMessage=i.message,function(e,t,n){var r=["tracer-unclassified-error"];null==n||n.forEach((function(e){return r.push("target-view-name-".concat(e))})),en("resource-load-tracer",e instanceof Error||"string"==typeof e?e:JSON.stringify(e),Object.fromEntries(t||[]),r)}(i,r,t))),{cdnCache:o.cdnCacheMetadata||void 0,contentType:o.contentType||void 0,fabric:o.fabric||void 0,msEdgeReference:o.microsoftEdgeReference||void 0,pointOfPresenceId:o.pointOfPresenceId||void 0,resourceTreeId:o.callTreeId?o.callTreeId:void 0,responseStatusCode:n||void 0,networkResourceError:c||void 0,viewNames:t||[],requestTime:e,responseMetadata:o.responseMetadata||void 0}}var vs,gs=function(){function e(t,n,r){var i,a,o,s,c,u,l=this;S(this,e),D(this,"core",void 0),D(this,"config",void 0),D(this,"collector",void 0),D(this,"boomerangStart",-1),D(this,"webVitalsObserver",void 0),D(this,"appMemoryObserver",void 0),D(this,"pageMemoryObserver",void 0),D(this,"liveTokens",new Set),D(this,"stateWM",new WeakMap),D(this,"activeToken",void 0),D(this,"isInitial",void 0),D(this,"pageLoadId",void 0),D(this,"initialResourcesEvents",[]),D(this,"responseRleCache",void 0),D(this,"beforeHideHandlerBound",this.beforeHideHandler.bind(this)),D(this,"fireApfcEventBound",this.fireApfcEvent.bind(this)),D(this,"isTracerEnabled",void 0),D(this,"isPEMTracerEnabled",void 0),this.core=r,this.config=function(e,t){for(var n in e)void 0!==t[n]&&(e[n]=t[n]);return e}(r.host.api.assign({},Ra),n);var d="enabled"===(null===(i=(a=r.host).__getLixTreatment)||void 0===i?void 0:i.call(a,"pemberly.tracking.time-origin-epoch-time")),f=this.getAbuseDeviceSignalCollectionConfig(r),h=null===(o=(s=r.host).__getLixTreatment)||void 0===o?void 0:o.call(s,"pemberly.tracking.generic-tracers"),p=!!h&&Ua.test(h);this.isTracerEnabled=p||this.config["enable-tracking-3"];var v="enabled"===(null===(c=(u=r.host).__getLixTreatment)||void 0===c?void 0:c.call(u,"pemberly.tracking.pem-tracers"));this.isPEMTracerEnabled=v||this.config["enable-pem-tracking-3"],this.responseRleCache=new ko(this.isPEMTracerEnabled),this.collector=new vo(r.host.api,new Io(t,this.config,r.host),this.config,d,(function(e){return l.fireResourceLoadEvent(e,l.activeToken)}),this.isTracerEnabled,this.responseRleCache,this.fireApfcEventBound,f,r.host.endpoint),this.collector.startObserving(),Ct.before(bt,this.beforeHideHandlerBound)}return O(e,[{key:"pingCDN",value:function(){}},{key:"recordTreeId",value:function(e,t){e&&this.collector.recordTreeId(e,t)}},{key:"recordRenderStart",value:function(e,t){this.collector.recordRenderStart(e,t||e)}},{key:"recordRenderEnd",value:function(e){var t,n=null!==(t=this.getPageLoadIdFromState())&&void 0!==t?t:this.pageLoadId,r=this.collector.recordRenderEnd(e,this.isTracerEnabled,n);r&&this.isTracerEnabled&&this.core.fireEvent({appId:this.config["app-id"],eventName:"ViewLoadEvent"},r)}},{key:"provisionNetworkResponse",value:function(e,t){var n,r,i=this;null===(n=this.responseRleCache)||void 0===n||n.offerResponseContext(e,t);var a=null===(r=this.responseRleCache)||void 0===r?void 0:r.flushCacheByUrl(e);null==a||a.forEach((function(e){i.fireResourceLoadEvent(e,i.activeToken)}))}},{key:"start",value:function(e){var t,n;!this.isTracerEnabled&&this.activeToken&&this.abort(this.activeToken),this.flushEndedSessions(),this.isInitial=void 0===this.isInitial,this.isInitial||this.collector.reset();var r,i=Object.create(null),a="enabled"===(null===(t=(n=this.core.host).__getLixTreatment)||void 0===t?void 0:t.call(n,"pemberly.tracking.time-origin-epoch-time"));return this.activeToken=i,this.liveTokens.add(i),this.isTracerEnabled?(this.stateWM.set(i,{isInitial:this.isInitial,startTime:so(this.core.host.api.performance,a),pageKey:e}),this.firePageLoadStartEvent(i)):this.stateWM.set(i,{isInitial:this.isInitial,startTime:so(this.core.host.api.performance,a)}),this.config["enable-memory-measurement"]&&(null===(r=this.pageMemoryObserver)||void 0===r||r.stopObserving(),this.pageMemoryObserver=new yo("page-memory",this.core,this.config),this.pageMemoryObserver.startObserving(),void 0===this.appMemoryObserver&&(this.appMemoryObserver=new yo("application-memory",this.core,this.config),this.appMemoryObserver.startObserving())),i}},{key:"observeWebVitals",value:function(){void 0===this.webVitalsObserver&&(this.webVitalsObserver=new as(this.core,this.config),this.webVitalsObserver.startObserving())}},{key:"end",value:function(e){var t,n,r=this,i=arguments.length>1&&void 0!==arguments[1]&&arguments[1],a=arguments.length>2?arguments[2]:void 0;if(e&&this.activeToken&&this.activeToken===e){var o=this.stateWM.get(e),s="enabled"===(null===(t=(n=this.core.host).__getLixTreatment)||void 0===t?void 0:t.call(n,"pemberly.tracking.time-origin-epoch-time")),c=so(this.core.host.api.performance,s);o.endProps={renderCompleteTime:c,isImpactedByHiddenWindow:i,rumKey:a},this.isTracerEnabled&&a&&(o.pageKey=a);var u=this.activeToken,l=this.isTracerEnabled?5e3:this.config["beacon-timeout"];o.fireRumEventTimeout=setTimeout((function(){if(r.isTracerEnabled){r.flushResourceLoadEvents(u);var e=r.collector.collectPageLoadEndData({isInitial:o.isInitial});"then"in e?e.then((function(e){r.firePageLoadEndEvent(e,u)})):r.firePageLoadEndEvent(e,u)}var t=r.collector.collect({isInitial:o.isInitial});"then"in t?t.then((function(e){r.fireRumEvent(e,u)})):r.fireRumEvent(t,u)}),l),this.activeToken=void 0}else en("rum-end",Ba)}},{key:"onDataResponse",value:function(e,t,n,r,i,a,o){var s=ps(t,n,r,i,a,null==o?void 0:o.errorTypeOverride);if(null!=o&&o.serverSideResponse){var c=this.generateResourceLoadEventFromResponseContext(e,_({nextHopProtocol:wa.UNKNOWN},s));this.fireResourceLoadEvent(c,this.activeToken)}else this.provisionNetworkResponse(e,s)}},{key:"onOopsPage",value:function(e,t){en("rum-oops",e,Object.fromEntries(t||[]),["oops-page"])}},{key:"firePageLoadStartEvent",value:function(e){if(e&&this.activeToken&&this.activeToken===e){var t=this.stateWM.get(e);this.pageLoadId=Vt(),t.pageLoadId=this.pageLoadId;var n=this.collector.collectPageLoadStartData({isInitial:t.isInitial,rumKey:t.pageKey});n.pageLoadId=t.pageLoadId,this.core.fireEvent({appId:this.config["app-id"],eventName:"PageLoadStartEvent"},n)}else en("PageLoadStartEvent",Ba)}},{key:"destroy",value:function(){var e,t,n;Ct.offBefore(bt,this.beforeHideHandlerBound),this.activeToken&&this.abort(this.activeToken),this.flushEndedSessions(),this.collector.stopObserving(),null===(e=this.webVitalsObserver)||void 0===e||e.stopObserving(),null===(t=this.appMemoryObserver)||void 0===t||t.stopObserving(),null===(n=this.pageMemoryObserver)||void 0===n||n.stopObserving(),this.responseRleCache=void 0,this.core.destroy()}},{key:"getPageLoadIdFromState",value:function(e){var t,n=null!=e?e:this.activeToken;return n&&(t=this.stateWM.get(n).pageLoadId),t}},{key:"abort",value:function(e){var t;if(!e||this.activeToken!==e)throw new Error("RUM abort: rum token passed is invalid");if(null!==(t=this.stateWM.get(e))&&void 0!==t&&t.endProps)throw new Error("RUM abort: Can't abort a session that was already ended");this.activeToken=void 0,this.stateWM.delete(e),this.liveTokens.delete(e)}},{key:"flushEndedSessions",value:function(){var e=this;this.liveTokens.forEach((function(t){var n=e.stateWM.get(t);if(n.endProps){if(e.isTracerEnabled){var r=e.collector.collectPageLoadEndData({isInitial:n.isInitial,immediate:!0});e.firePageLoadEndEvent(r,t),e.flushResourceLoadEvents(t)}var i=e.collector.collect({isInitial:n.isInitial,immediate:!0});e.fireRumEvent(i,t)}}))}},{key:"flushResourceLoadEvents",value:function(e){var t,n,r=this,i=null===(t=this.responseRleCache)||void 0===t?void 0:t.flushCache();null==i||i.map((function(t){r.fireResourceLoadEvent(t,e)})),null===(n=this.responseRleCache)||void 0===n||n.clear()}},{key:"firePageLoadEndEvent",value:function(e,t){if(this.stateWM.get(t)){var n=this.core.host.api.assign,r=this.stateWM.get(t),i=r.startTime,a=r.endProps,o=r.pageLoadId,s=r.pageKey;if(a){var c=a.renderCompleteTime,u=a.isImpactedByHiddenWindow;if(o?e.pageLoadId=o:en("PageLoadEndEvent",xa),e.browserPageLoadEndContext&&(e.browserPageLoadEndContext.isImpactedByHiddenWindow=u),e.navigationTiming){var l,d=null===(l=e.navigationTiming)||void 0===l?void 0:l.navigationStart,f=this.boomerangStart=d||this.boomerangStart,h=d||i,p=c-h;e.navigationTiming.boomerangStart=f,e.navigationTiming.timeDone=p,e.navigationTiming.navigationStart=h,void 0===e.navigationTiming.workerStart&&(e.navigationTiming.workerStart=0)}this.core.fireEvent({appId:this.config["app-id"],eventName:"PageLoadEndEvent"},(function(t){return n({pageKey:s||t.pageKey},e)}))}else this.abort(t)}}},{key:"fireResourceLoadEvent",value:function(e,t){var n=this;if(this.isTracerEnabled){var r,i=null!==(r=this.getPageLoadIdFromState(t))&&void 0!==r?r:this.pageLoadId;if(!i)return void this.initialResourcesEvents.push(e);this.initialResourcesEvents.length>0&&(this.initialResourcesEvents.forEach((function(e){e.parentPageLoadId=i,n.core.fireEvent({appId:n.config["app-id"],eventName:"ResourceLoadEvent"},e)})),this.initialResourcesEvents=[]),e.parentPageLoadId=i,this.core.fireEvent({appId:this.config["app-id"],eventName:"ResourceLoadEvent"},e)}}},{key:"fireRumEvent",value:function(e,t){if(this.stateWM.get(t)){var n=this.core.host.api.assign,r=this.stateWM.get(t),i=r.startTime,a=r.endProps;if(a){var o=a.renderCompleteTime,s=a.isImpactedByHiddenWindow,c=a.rumKey,u=this.boomerangStart=e.navigationStart||this.boomerangStart,l=e.navigationStart||i,d=o-l,f=this.config["app-version"];this.core.fireEvent({appId:this.config["app-id"],eventName:"RealUserMonitoringEvent"},(function(t){return n({pageKey:c||t.pageKey,isImpactedByHiddenWindow:s,appVersion:f,timeDone:d,navigationStart:l,boomerangStart:u,renderCompleteTime:o},e)})),r.fireRumEventTimeout&&clearTimeout(r.fireRumEventTimeout),this.liveTokens.delete(t),this.stateWM.delete(t)}else this.abort(t)}}},{key:"beforeHideHandler",value:function(){this.flushEndedSessions()}},{key:"fireApfcEvent",value:function(e,t){var n,r=null===(n=document)||void 0===n||null===(n=n.cookie)||void 0===n?void 0:n.split(";"),i={issueTime:0,browserId:""};try{i=function(e){var t,n={issueTime:0,browserId:""},r=I(e);try{for(r.s();!(t=r.n()).done;){var i=t.value.split("=");if(i.length>1&&"bscookie"===i[0]){var a=decodeURIComponent(i[1]),o=Number(a.substring(4,18)),s=isNaN(o)?0:o,c=a.substring(18,50);return n.browserId=c,n.issueTime=s,n}}}catch(e){r.e(e)}finally{r.f()}return n}(r)}catch(e){}var a={type:e,bsCookieInfo:i,payload:t};this.core.fireEvent({appId:this.config["app-id"],eventName:"ApfcEvent"},a)}},{key:"generateResourceLoadEventFromResponseContext",value:function(e,t){var n=t.requestTime,r=t.viewNames,i=t.requestType,a={resourceKey:e,isNetwork:!0,targetViewNames:r||[],loadType:"serversideresponse",resourceNetworkContext:_({},w(t,f)),resourceProgressStates:[],timeOrigin:n};return i&&(a.loadType=i),a}},{key:"triggerDeviceSignalCollection",value:function(e){var t=e.onlyTriggerOnDemandFlow;this.collector.triggerDeviceSignalCollection({onlyTriggerOnDemandFlow:t})}},{key:"getAbuseDeviceSignalCollectionConfig",value:function(e){var t,n,r,i,a,o,s,c,u,l,d,f,h,p,v,g,m,y,E,T,b,_,w,k,N,C,A,S,R,O,D,M,L,P,x,B,U,F,H,V,K,W,G,j,q,z=(null===(t=(n=e.host).__getLixTreatment)||void 0===t?void 0:t.call(n,"pemberly.tracking.fireApfcEvent"))||(null===(r=e.host.abuseDeviceSignalCollectionConfig)||void 0===r?void 0:r.pemberlyFireApfcEventLixValue),X=!1,J=!1,Y=!1,Q=!1,Z=!1,$=!1,ee=new Set,te=!1;X=X||"enabled"===(null===(i=e.host.abuseDeviceSignalCollectionConfig)||void 0===i?void 0:i.webviewDnaMemberLixTreatment)||"enabled"===(null===(a=e.host.abuseDeviceSignalCollectionConfig)||void 0===a?void 0:a.dnaMemberLixTreatment)||"enabled"===(null===(o=e.host.abuseDeviceSignalCollectionConfig)||void 0===o?void 0:o.pemberlyFireApfcEventLixValue),J=J||"enabled"===(null===(s=(c=e.host).__getLixTreatment)||void 0===s?void 0:s.call(c,"pemberly.tracking.human.integration"))||"enabled"===(null===(u=e.host.abuseDeviceSignalCollectionConfig)||void 0===u?void 0:u.webviewHumanMemberLixTreatment)||"enabled"===(null===(l=e.host.abuseDeviceSignalCollectionConfig)||void 0===l?void 0:l.humanMemberLixTreatment)||"enabled"===(null===(d=e.host.abuseDeviceSignalCollectionConfig)||void 0===d?void 0:d.pemberlyHumanIntegrationLixValue),Y=Y||"enabled"===(null===(f=(h=e.host).__getLixTreatment)||void 0===f?void 0:f.call(h,"pemberly.tracking.dfp.integration"))||"enabled"===(null===(p=e.host.abuseDeviceSignalCollectionConfig)||void 0===p?void 0:p.webviewDfpMemberLixTreatment)||"enabled"===(null===(v=e.host.abuseDeviceSignalCollectionConfig)||void 0===v?void 0:v.dfpMemberLixTreatment)||"enabled"===(null===(g=e.host.abuseDeviceSignalCollectionConfig)||void 0===g?void 0:g.pemberlyDfpIntegrationLixValue);var ne=e.host.abuseDeviceSignalCollectionConfig&&e.host.abuseDeviceSignalCollectionConfig.disablePerfMarkerOptimization||"enabled"===(null===(m=(y=e.host).__getLixTreatment)||void 0===m?void 0:m.call(y,"fingerprinting.collection.skip.performance.marker.check"))||"enabled"===(null===(E=e.host.abuseDeviceSignalCollectionConfig)||void 0===E?void 0:E.pemberlyDisablePerfMarkerForSignalCollectionLixValue),re=null===(T=e.host.abuseDeviceSignalCollectionConfig)||void 0===T?void 0:T.samplingTimeWindowInMillis;$=$||"enabled"===(null===(b=(_=e.host).__getLixTreatment)||void 0===b?void 0:b.call(_,"pemberly.web.ondemand"))||"enabled"===(null===(w=e.host.abuseDeviceSignalCollectionConfig)||void 0===w?void 0:w.pemberlyOnDemandIntegrationLixValue);var ie="enabled"===(null===(k=(N=e.host).__getLixTreatment)||void 0===k?void 0:k.call(N,"sync.apfc.headers"))||"enabled"===(null===(C=e.host.abuseDeviceSignalCollectionConfig)||void 0===C?void 0:C.syncFingerprintingEnabledWithHeadersLixTreatment)||"enabled"===(null===(A=e.host.abuseDeviceSignalCollectionConfig)||void 0===A?void 0:A.pemberlySyncFingerprintingWithHeadersLixValue),ae="enabled"===(null===(S=(R=e.host).__getLixTreatment)||void 0===S?void 0:S.call(R,"sync.apfc.couchbase"))||"enabled"===(null===(O=e.host.abuseDeviceSignalCollectionConfig)||void 0===O?void 0:O.syncFingerprintingEnabledWithCbLixTreatment)||"enabled"===(null===(D=e.host.abuseDeviceSignalCollectionConfig)||void 0===D?void 0:D.pemberlySyncFingerprintingWithCbLixValue);Q=Q||"enabled"===(null===(M=(L=e.host).__getLixTreatment)||void 0===M?void 0:M.call(L,"pemberly.tracking.recaptcha.v3"))||"enabled"===(null===(P=e.host.abuseDeviceSignalCollectionConfig)||void 0===P?void 0:P.recaptchaV3IntegrationLixValue)||"enabled"===(null===(x=e.host.abuseDeviceSignalCollectionConfig)||void 0===x?void 0:x.pemberlyRecaptchaV3IntegrationLixValue),Z=Z||"enabled"===(null===(B=(U=e.host).__getLixTreatment)||void 0===B?void 0:B.call(U,"pemberly.tracking.apfc.network.interceptor"))||"enabled"===(null===(F=e.host.abuseDeviceSignalCollectionConfig)||void 0===F?void 0:F.networkInterceptorLixValue)||"enabled"===(null===(H=e.host.abuseDeviceSignalCollectionConfig)||void 0===H?void 0:H.pemberlyNetworkInterceptorLixValue),te=te||"enabledV2"===(null===(V=(K=e.host).__getLixTreatment)||void 0===V?void 0:V.call(K,"pemberly.tracking.human.integration"))||"enabledV2"===(null===(W=e.host.abuseDeviceSignalCollectionConfig)||void 0===W?void 0:W.webviewHumanMemberLixTreatment)||"enabledV2"===(null===(G=e.host.abuseDeviceSignalCollectionConfig)||void 0===G?void 0:G.humanMemberLixTreatment)||"enabledV2"===(null===(j=e.host.abuseDeviceSignalCollectionConfig)||void 0===j?void 0:j.pemberlyHumanIntegrationLixValue);var oe="enabled"===(null===(q=e.host.abuseDeviceSignalCollectionConfig)||void 0===q?void 0:q.recaptchaV3ExecuteOnPageLoadLixValue);if("enabled"===z)X=!0;else if(null!=z&&z.startsWith("v2:")){var se=z.split(":");if(2===se.length){var ce=new Set(se[1].split("."));X=X||ce.has("a"),Q=Q||ce.has("b"),Z=Z||ce.has("c"),J=J||ce.has("d"),Y=Y||ce.has("e"),$=$||ce.has("f");var ue,le=I(ce);try{for(le.s();!(ue=le.n()).done;){var de=ue.value;if(de.startsWith("g-")){var fe=de.slice(2);fe&&ee.add(fe)}}}catch(e){le.e(e)}finally{le.f()}te=J||ce.has("h")}}return{isDnaIntegrationLixEnabled:X,isHumanIntegrationLixEnabled:J,isDfpIntegrationLixEnabled:Y,disablePerfMarkerOptimization:ne,samplingTimeWindowInMillis:re,isOnDemandFingerprintingEnabled:$,isSyncFingerprintingWithHeadersLixEnabled:ie,isSyncFingerprintingWithCbLixEnabled:ae,isRecaptchaV3IntegrationEnabled:Q,isNetworkInterceptorEnabled:Z,networkInterceptorActionTypes:ee,isHumanSecurityEnforcerIntegrationLixEnabled:te,isRecaptchaV3OnPageLoadEnabled:oe}}}]),e}(),ms="undefined"!=typeof window&&"undefined"!=typeof performance,ys="undefined"!=typeof location&&-1!==location.search.indexOf("_LI_MEASURE_DEBUG");!function(){function e(t,n){S(this,e),D(this,"trackingCore",void 0),D(this,"endPageInstance",void 0),D(this,"startPageInstance",void 0),D(this,"featureIdentifier",void 0),D(this,"marks",[]),D(this,"spans",[]),D(this,"spanStarts",new Map),D(this,"started",!1),D(this,"ended",!1),D(this,"featureKey",void 0),D(this,"productName",void 0),D(this,"flushOnEnd",void 0),D(this,"basePageTreeId",void 0),D(this,"debounceFlush",void 0),D(this,"disableAutoFlush",void 0),D(this,"isCanceled",!1),D(this,"isClosed",!1),this.trackingCore=t;var r=n.featureKey,i=n.productName,a=n.flushDebounceMilliseconds,o=n.flushOnEnd;this.featureKey=r,this.productName=i,this.flushOnEnd=o;var s=i?"::".concat(i):"";this.featureIdentifier="".concat(r).concat(s);var c=void 0!==a?a:3e3;c>0&&(this.debounceFlush=function(e,t,n){var r,i,a;void 0===t&&(t=50),void 0===n&&(n={});var o=null!=(r=n.isImmediate)&&r,s=null!=(i=n.callback)&&i,c=n.maxWait,u=Date.now(),l=[];function d(){if(void 0!==c){var e=Date.now()-u;if(e+t>=c)return c-e}return t}var f=function(){var t=[].slice.call(arguments),n=this;return new Promise((function(r,i){var c=o&&void 0===a;if(void 0!==a&&clearTimeout(a),a=setTimeout((function(){if(a=void 0,u=Date.now(),!o){var r=e.apply(n,t);s&&s(r),l.forEach((function(e){return(0,e.resolve)(r)})),l=[]}}),d()),c){var f=e.apply(n,t);return s&&s(f),r(f)}l.push({resolve:r,reject:i})}))};return f.cancel=function(e){void 0!==a&&clearTimeout(a),l.forEach((function(t){return(0,t.reject)(e)})),l=[]},f}(this.flush.bind(this),c)),this.disableAutoFlush=c<0}O(e,[{key:"start",value:function(e){var t;if(ms){if(this.started)throw new Error("Same PerfMeasurement (".concat(this.featureIdentifier,") cannot be started twice"));this.startPageInstance=e||(null===(t=this.trackingCore.getCurrentContext())||void 0===t?void 0:t.pageInstance),this.spanStart("load"),this.started=!0}}},{key:"end",value:function(e){var t;if(!this.isClosed){if(this.isClosed=!0,this.isCanceled)throw new Error('[rum measurement] cannot end a canceled measurement "'.concat(this.featureIdentifier,'"'));if(ms){if(this.ended)throw new Error("Same PerfMeasurement (".concat(this.featureIdentifier,") should not be ended twice"));this.endPageInstance=e||(null===(t=this.trackingCore.getCurrentContext())||void 0===t?void 0:t.pageInstance),this.spanEnd("load"),this.ended=!0,this.flushOnEnd&&this.flush()}}}},{key:"mark",value:function(e){ms&&(this.marks.push({name:e,startTime:co()}),ys&&(performance.mark("LI:".concat(this.featureIdentifier,"-mark-").concat(e)),performance.measure("LI:".concat(this.featureIdentifier,"-mark-").concat(e),"LI:".concat(this.featureIdentifier,"-start"),"LI:".concat(this.featureIdentifier,"-mark-").concat(e))),this.handleNewData())}},{key:"spanStart",value:function(e){ms&&(this.spanStarts.set(e,co()),ys&&performance.mark("LI:".concat(this.featureIdentifier,"-span-").concat(e,"-start")))}},{key:"spanEnd",value:function(e,t){if(ms&&this.spanStarts.has(e)){var n=this.spanStarts.get(e),r=t||e;this.spans.push({name:r,startTime:n,duration:co()-n}),ys&&(performance.mark("LI:".concat(this.featureIdentifier,"-span-").concat(e,"-end")),performance.measure("LI:".concat(this.featureIdentifier,"-span-").concat(t||e),"LI:".concat(this.featureIdentifier,"-span-").concat(e,"-start"),"LI:".concat(this.featureIdentifier,"-span-").concat(e,"-end"))),this.handleNewData()}}},{key:"clearSpan",value:function(e){ms&&this.spanStarts.has(e)&&this.spanStarts.delete(e)}},{key:"addSpan",value:function(e){this.spans.push(e),this.handleNewData()}},{key:"setBasePageTreeId",value:function(e){this.basePageTreeId=e}},{key:"getTimestamp",value:function(){return co()}},{key:"flush",value:function(){0===this.marks.length&&0===this.spans.length||(this.fireEvent(),this.marks=[],this.spans=[],this.debounceFlush&&this.debounceFlush.cancel())}},{key:"handleNewData",value:function(){this.debounceFlush?this.debounceFlush().catch((function(e){})):this.disableAutoFlush||this.flush()}},{key:"fireEvent",value:function(){var e=this,t=this.endPageInstance&&{header:{pageInstance:this.endPageInstance}};this.trackingCore.fireEvent("FeaturePerformanceMeasurementEvent",(function(t){var n=e.startPageInstance||t.pageInstance||jt(U),r={name:e.featureKey,startTime:-1,duration:-1,startPageInstance:n,marks:e.marks,spans:e.spans};return e.productName&&(r.productName=e.productName),e.basePageTreeId&&(r.basePageTreeId=e.basePageTreeId),r}),t)}},{key:"cancel",value:function(){this.isCanceled=!0}},{key:"check",value:function(){if(ms){if(this.isCanceled)throw new Error('[rum measurement] "'.concat(this.featureIdentifier,'" has been canceled'));if(!this.isClosed)throw new Error('[rum measurement] "'.concat(this.featureIdentifier,'" is still open'))}}}])}();!function(e){e[e.BATCH=0]="BATCH",e[e.FLUSH_ALL=1]="FLUSH_ALL"}(vs||(vs={}));var Es=n(0);window.addEventListener("load",(function(e){var t=new aa({appId:Object(Es.g)(),endpoint:"/li/track",__getLixTreatment:function(e){var t=e.replace(/\./g,"_"),n="lix_".concat(t),r=Object(Es.k)(n);return r||"control"},locale:navigator&&navigator.language||"en_US",api:{AbortController:AbortController,performance:window.performance,PerformanceObserver:window.PerformanceObserver,location:window.location,document:document,Promise:Promise,assign:Object.assign,fetch:fetch,sendBeacon:window.navigator.sendBeacon&&window.navigator.sendBeacon.bind(window.navigator),requestIdleCallback:window.requestIdleCallback}}),n=new Ea(t),r=Object(Es.o)(),i=Object(Es.n)(r);n.updateAppState({clientApplicationInstance:{applicationUrn:"urn:li:application:(checkpoint-frontend)",version:"0.0.0",trackingId:Vt()}}),n.setCurrentContext({pageKey:r,pageInstance:i});var a=new gs({"app-render-mode":"SSR","is-app-render-failed":!1},{"is-single-page-app":!1,"enable-rs-timing":!0,"beacon-timeout":500,"request-sampling-rate":1,"enable-cdn-tracking":!0,"enable-pop-tracking":!0,"user-timing-mark-enabled":!0,"web-ui-framework":"GLIMMER"},n);a.end(a.start()),a.observeWebVitals(),window.performance.mark("mark_meaningful_paint_end")}));var Ts=n(3);window.addEventListener("load",(function(e){var t=Object(Es.o)(),n=Object(Es.l)();Object(Es.E)(t,{funCaptchaChallengeSource:n})&&Object(Ts.d)(t,Ts.a.FULL)}))},14:function(e,t){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(e){"object"==typeof window&&(n=window)}e.exports=n},2:function(e,t,n){e.exports=function(){"use strict";var e="aria-[a-z0-9_\\-]+|class|data-[a-z0-9_\\-]+|dir|id|role|tabindex",t="undefined"==typeof document||"textContent"in document.createElement("div")?"textContent":"innerText",n=["b","del","em","i","s","strong","sub","sup"],r=n.concat(["a","abbr","address","area","article","aside","audio","bdi","bdo","big","blockquote","br","button","center","cite","code","datalist","dd","details","dfn","div","dl","dt","fieldset","figcaption","figure","font","footer","h1","h2","h3","h4","h5","h6","header","hgroup","hr","img","ins","kbd","label","legend","li","map","mark","marquee","nav","nobr","ol","p","pre","q","rp","rt","ruby","samp","section","small","source","span","strike","table","tbody","td","tfoot","th","thead","time","tr","u","ul","var","video","wbr"]),i=[e,"alt|checked|selected|colgroup|cols|colspan|disabled|height|hidden|maxlength|method|multiple|name|placeholder|readonly|rel|required|rows|rowspan|spellcheck|target|title|width","border|caption|color|controls|coords|hreflang|label|lang|loop|marginheight|marginwidth|preload|reversed|type|usemap|clear|headers|ismap|start|datetime|accept|max|min|size|step|style|cellspacing|cellpadding"].join("|");function a(){}function o(e,t){if(t=t||"log","undefined"!=typeof window&&window&&window.jet&&"error"===t.toLowerCase())try{throw new Error(e)}catch(e){try{window.jet.error(e)}catch(e){}}"undefined"!=typeof console&&"function"==typeof console[t]&&console[t](e)}new RegExp("&#?[a-zA-Z0-9]{1,10};");var s,c,u=(c=/[&<>"'\u0000\\=]/g,s={"&":"&","<":"<",">":">",'"':""","'":"'","\0":"�","\\":"\","=":"="},function(e){return null==e?null:e.toString().replace(c,(function(e){return s[e]}))}),l=function(){var e,n,r=/&(?:([a-z0-9]+)|#x([\da-f]{1,6})|#(\d{1,8}));/gi;if("undefined"==typeof document)return function(){throw new Error("document is undefined (i.e. you are probably in Node.js)")};e=document.createElement("div");var i={nbsp:" ",lt:"<",gt:">",amp:"&",quot:'"'};return n="function"==typeof String.fromCodePoint?function(e){return String.fromCodePoint(e)}:function(e){return e<=65535?String.fromCharCode(e):"�"},function(a){return null==a?null:(a+"").replace(r,(function(r,a,o,s){return a?(c=a,i.hasOwnProperty(c)?i[c]:(e.innerHTML="&"+c+";",u=e[t],i[c]=u,u)):o||s?n(parseInt(o||s,o?16:10)||65533):"�";var c,u}))}}(),d=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)};function f(e){return/[<&]/.test(e)}var h,p=Array.prototype.forEach?function(e,t){Array.prototype.forEach.call(e,t)}:function(e,t){for(var n=0,r=e.length;n]*\\"+ ++o+")?",a&&(s+="|(?:href|src)=([\"'])(?:(?:https?|ftp|mailto|invalid)(?::|&#(?:58|x3a);)|(?:data:image/(?:gif|jpg|jpeg|png);base64,)|[/.#?]|&#(?:35|4[67]|63|x(?:2[3ef]|3f));)[^'\"<>]*\\"+ ++o),s+=")[ \t\r\n]*)+",s+=")"})),s+=")",s+="/?>)",new RegExp(s,"i")}function g(e){return v({tags:e=e||r,checkUrlAttrs:!0})}function m(e,t){var n=(t=t||{}).allowTags,r=!1!==t.hasCustomElementMarkup;return n?!g(n).test(e):r?!m.R_UNSAFE_CUSTOM_ELEMENT.test(e):!m.R_UNSAFE_HTML.test(e)}function y(e){return e.replace(/<[^>]*>|[<>'"&\\]/g,"")}function E(e,t,n){if(null==e)return null;e=e.toString();var r=t?function(e,t){var n={};return e.replace(/\{([^}]+)\}/g,(function(e,r){var i,o=e;if(n.hasOwnProperty(r))return n[r];if(t.hasOwnProperty(r)){if(!((i="string"==typeof(o=t[r]))||o instanceof a||"number"==typeof o))throw new Error("Only strings, numbers, and jSecure types are allowed as placeholder replacements.");o=i?u(o):o.toString()}return n[r]=o,o}))}(e,t):e,i=e;return f(r)&&!m(r,n)&&(r=y(r),o("Content contains tags or attributes that are not allowed:\nContent: "+i,"error")),r}function T(e,t){for(var n=+t.length,r=0,i=e.length;r',""],thead:[1,"","
"],col:[2,"","
"],tr:[2,"","
"],td:[3,"","
"],_default:[0,"",""]};b.optgroup=b.option,b.tbody=b.tfoot=b.colgroup=b.caption=b.thead,b.th=b.td;var _=/<([\w:]+)/;function w(e,t){var n,r,i,a,o,s,c,u=t.createDocumentFragment(),l=[];for(o=0,c=e.length;o1?t-1:0),r=1;r"]|%00/,D=/\\/,M=/([.]|%2e){2}/i,L=new RegExp("^(?:HTTPS?|https?|ftp|mailto|tel|sms|blob|voyager|android-app|linkedin|chrome-extension|invalid|data:(?:(?:image/(?:gif|jpe?g|png|webp|bmp|tiff))|(?:application/x-font-woff)|(?:font/(?:opentype|ttf)))[;,]|[/.#?])");function P(e){var t=void 0;if("string"!=typeof e)return o("jSecure Warning: url must be a string","error"),"invalid://";if((t=e.trim()).indexOf(" ")>-1&&(o("jSecure Warning: url should not contain spaces: "+e,"warn"),t=t.replace(R,"+")),!L.test(t))return o("jSecure Error: URL should be absolute with allowed schemas, relative, a hash fragment or query string. "+e,"error"),"invalid://";if(O.test(t))return o("jSecure Error: not valid url character found in url: "+e,"error"),"invalid://";var n=t.split("?")[0],r=void 0,i=!1;try{r=decodeURI(n)}catch(e){i=!0}return i?(o("jSecure Error: malformed url path detected: "+n),"invalid://"):D.test(n)||M.test(n)||M.test(r)?(o("jSecure Error: malicious data found in url path: "+n,"error"),"invalid://"):e}var x={redirect:function(e){window&&(window.location.href=e)}};return{ALLOWED_TAGS:r,FORMATTING_TAGS:n,htmlEncode:u,htmlUnencode:l,log:o,mk:S,parseHTML:I,parseSelector:function(e){return"string"==typeof e&&/^(?:\s*(<[\w\W]+>)[^>]*)$/.test(e)?[]:e},processTemplate:k,reEncode:function(e){return u(l(e))},_redirector:x,redirect:function(e){var t=P(e);t===e&&x.redirect(t)},sanitizeHTML:N,sanitizeUrl:P,setElementContent:C,text:function(e){return o("jSecure.text() is deprecated. Please use jSecure.htmlEncode().","warn"),u(e)},unsafe:function(e){return e},UnsafeString:A}}()},3:function(e,t,n){"use strict";n.d(t,"a",(function(){return c})),n.d(t,"f",(function(){return u})),n.d(t,"d",(function(){return l})),n.d(t,"e",(function(){return d})),n.d(t,"b",(function(){return f})),n.d(t,"g",(function(){return h})),n.d(t,"c",(function(){return p}));var r=n(9),i=n.n(r),a=n(0),o=n(11),s={APP_NAME:Object(a.g)("appName")||"checkpoint-frontend",URL:"/li/track",QUEUE_SIZE:10,QUEUE_TIMEOUT:1e3,APP_ID:"com.linkedin.checkpoint"},c={AJAX:"ajax",FULL:"full"};function u(e,t,n,r){var o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:null,c=arguments.length>5&&void 0!==arguments[5]?arguments[5]:document.referrer;if(!e||!t||!n)throw new Error("eventName, body and topicName are required.");var u=Object(a.n)(),l=t;l.header={pageInstance:u,time:Date.now()},l.requestHeader={pageKey:(r||Object(a.o)())+"_jsbeacon",path:window.location.href,referer:c},o&&(l.requestHeader.trackingCode=o);var d={eventName:e,topicName:n,appId:s.APP_ID,appName:s.APP_NAME};i.a.sendEvent(d,l)}function l(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;u("PageViewEvent",{pageType:t||c.AJAX,trackingInfo:{},totalTime:1},"PageViewEvent",e,n)}function d(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:document.referrer;u("PageViewEvent",{pageType:t||c.AJAX,trackingInfo:r,totalTime:1},"PageViewEvent",e,n,i)}function f(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=Object(a.o)(),r={controlUrn:"urn:li:control:".concat(n,"-").concat(e),interactionType:"SHORT_PRESS"};u("ControlInteractionEvent",r,"ControlInteractionEvent",n,t)}function h(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=Object(a.o)(),r={moduleNames:e};u("ViewModuleImpressionEvent",r,"ViewModuleImpressionEvent",n,t)}function p(e,t,n,r){var i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:[],s=function(e,t,n,r){return u(e,t,"FeatureDegradeEvent",r,n)},c=Object(a.n)(),l=new o.b(n,s);try{l.trackFeatureDegradationsForFetch(e,i,[r],t,c)}catch(e){}}i.a.setProperty("globalTrackingUrl",s.URL),i.a.setProperty("globalTrackingAppId",s.APP_NAME),i.a.setProperty("maxQueueSize",s.QUEUE_SIZE),i.a.setProperty("queueTimeout",s.QUEUE_TIMEOUT)},56:function(e,t,n){e.exports=function(){"use strict";function e(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);return e}function t(e){return(e=e||window).performance&&e.performance.timing&&"function"==typeof e.performance.now?Math.round(e.performance.now())+e.performance.timing.navigationStart:(new Date).getTime()}var n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},i=function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)},a=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t},o=function(){function e(t){r(this,e),this._parent=t,this._config=t.getConfig(),this._complete=!1,this._window=t._window,this._doc=this._window.document,this.data={}}return e.prototype.isComplete=function(){return this._complete},e.prototype.markComplete=function(){this._complete=!0},e.prototype.done=function(){this._complete=!0,this.isAsync()&&this._parent.pluginDone()},e.prototype.resetState=function(){this._complete=!1,this.data={}},e.prototype.getData=function(){return this.data},e.prototype.collectData=function(){},e.prototype.isAsync=function(){return!1},e}(),s=function(e){function t(n){return r(this,t),a(this,e.call(this,n))}return i(t,e),t.prototype.collectData=function(){this._readLinkedinData()},t.prototype._readLinkedinData=function(){this.data.timeSource=this._config["beacon-source"],this.data.treeId=this._getTreeId(),this._config["commit-id"]&&(this.data.sessionID=this._config["commit-id"]),this.data.isFromServiceWorker=this._getFromServiceWorker(),this.done()},t.prototype._getTreeId=function(){var e=this._doc.querySelector('meta[name="treeID"]');return e&&e.getAttribute("content")},t.prototype._getFromServiceWorker=function(){var e=this._doc.querySelector('meta[name="fromServiceWorker"]');return e&&"true"===e.getAttribute("content")},t}(o),c=function(e){function t(n){r(this,t);var i=a(this,e.call(this,n));return i._navigationTimingRead=!1,i._navigationTimingFields=["loadEventEnd","loadEventStart","domComplete","domContentLoadedEventEnd","domContentLoadedEventStart","domInteractive","domLoading","responseEnd","responseStart","requestStart","secureConnectionStart","connectEnd","connectStart","domainLookupEnd","domainLookupStart","fetchStart","redirectEnd","redirectStart","unloadEventEnd","unloadEventStart","navigationStart"],i}return i(t,e),t.prototype.collectData=function(){this._readNavigationTiming(),this.done()},t.prototype._readNavigationTiming=function(){var e,t,n,r;if(!this._navigationTimingRead){if(this._window.performance&&this._window.performance.timing&&this._window.performance.navigation){for(this.data.navigationTimingApi=!0,e=this._window.performance.timing,t=0;t=0;n--)if(this._rsTimingUrlParser.href=this.data.resourceTimingEntries[n].name,this._treeIdUrlParser.protocol===this._rsTimingUrlParser.protocol&&this._treeIdUrlParser.host===this._rsTimingUrlParser.host&&this._treeIdUrlParser.pathname===this._rsTimingUrlParser.pathname&&(this._treeIdUrlParser.search===this._rsTimingUrlParser.search||""===this._treeIdUrlParser.search)){this.data.resourceTimingEntries[n].resourceTreeId=e;break}},t.prototype._isResourceTimingSupported=function(){return this._window.performance&&"function"==typeof this._window.performance.getEntriesByType},t.prototype._setupResourceTiming=function(){var e={default:.001,xmlhttprequest:1};if(null!==this._config["rs-sample-rate"]&&"object"===n(this._config["rs-sample-rate"]))for(var t in this._config["rs-sample-rate"])this._config["rs-sample-rate"].hasOwnProperty(t)&&(e[t]=this._config["rs-sample-rate"][t]);this._config["rs-sample-rate"]=e,this._isResourceTimingSupported()&&(this._readResourceTiming(),this._setBufferSize(100),null===this._window.performance.onresourcetimingbufferfull?this._window.performance.onresourcetimingbufferfull=this._readResourceTiming.bind(this):null===this._window.performance.onwebkitresourcetimingbufferfull&&(this._window.performance.onwebkitresourcetimingbufferfull=this._readResourceTiming.bind(this))),this._treeIdUrlParser=this._doc.createElement("a"),this._rsTimingUrlParser=this._doc.createElement("a")},t.prototype._clearBuffer=function(){this._isResourceTimingSupported()&&this._config["enable-rs-timing"]&&(this._window.performance.clearResourceTimings&&"function"==typeof this._window.performance.clearResourceTimings?this._window.performance.clearResourceTimings():this._window.performance.webkitClearResourceTimings&&"function"==typeof this._window.performance.webkitClearResourceTimings&&this._window.performance.webkitClearResourceTimings())},t.prototype._setBufferSize=function(e){this._isResourceTimingSupported()&&this._config["enable-rs-timing"]&&(this._window.performance.setResourceTimingBufferSize&&"function"==typeof this._window.performance.setResourceTimingBufferSize?this._window.performance.setResourceTimingBufferSize(e):this._window.performance.webkitSetResourceTimingBufferSize&&"function"==typeof this._window.performance.webkitSetResourceTimingBufferSize&&this._window.performance.webkitSetResourceTimingBufferSize(e))},t.prototype._readResourceTiming=function(){var e,t,n,r,i,a,o=!1,s=this.data&&this.data.resourceTimingEntries||[];if(this._isResourceTimingSupported()&&this._config["enable-rs-timing"]){for(e=this._window.performance.getEntriesByType("resource"),t=0;t0&&(this.data.resourceTimingEntries=s)}},t}(o),l=function(e){function t(n){return r(this,t),a(this,e.call(this,n))}return i(t,e),t.prototype.collectData=function(){this._readUserTimingEntries(),this.done()},t.prototype._clearUserTimings=function(){this._window.performance&&(this._window.performance.clearMarks&&this._window.performance.clearMarks(),this._window.performance.clearMeasures&&this._window.performance.clearMeasures())},t.prototype._getUserTimingEntries=function(e,t){var n,r,i,a=[];for(r=0;r=200&&e.status<400?(i.data.pointOfPresenceId=e.getResponseHeader("X-Li-Pop"),i.data.rawXLiFabricHeader=e.getResponseHeader("X-Li-Fabric"),i.data.httpVersion=e.getResponseHeader("X-Li-proto")):console.error("PoP request was not successful. Status: "+e.status),i.done())},r.open("get",n,!0),r.send()):this.done()},t}(o),h=function(e){function t(n){r(this,t);var i=a(this,e.call(this,n));i.data.longTasks=[],i._longTaskFields=["duration","name","startTime"],i._observer=new PerformanceObserver((function(e){e.getEntries().forEach((function(e){for(var t={},n=0;n-1)&&(this._config["beacon-service"]="tracking",this._config["beacon-url"]="https://tracking.corp.linkedin.com/li/track/")),this._onLoad=function(){setTimeout((function(){a._collectPluginData()}),500)},this._onUnload=function(){a._collectPluginData()},this._config["navigation-timing-only"]&&!this._config["non-spa-manual-send"]?"complete"===this._config.readyState?this._onLoad():this._window.addEventListener("load",this._onLoad):this._config["navigation-timing-only"]||(this._config["non-spa-manual-send"]?console.error("Manual send mode not supported for SPA apps"):this._window.addEventListener("unload",this._onUnload)))}return n.prototype.destroy=function(){this._config["navigation-timing-only"]&&!this._config["non-spa-manual-send"]?this._window.removeEventListener("load",this._onLoad):this._config["navigation-timing-only"]||(this._config["non-spa-manual-send"]?console.error("Manual send mode not supported for SPA apps"):(this._collectPluginData(),this._window.removeEventListener("unload",this._onUnload)))},n.prototype.setLixData=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this._lixData=e,this._applyLixData()},n.prototype._applyLixData=function(){isNaN(this._getTreatment("voyager-web.rum.beaconTimeout"))||(this._config["beacon-timeout"]=parseInt(this._getTreatment("voyager-web.rum.beaconTimeout")))},n.prototype._getTreatment=function(e){return this._lixData[e]||"control"},n.prototype.setPageKey=function(e){this._beaconData.pageKey=e},n.prototype.setCurrentUser=function(e){this._isInternalApp&&"string"==typeof e&&(this._beaconData.sessionID=e)},n.prototype.appTransitionStart=function(e){(e||this._renderCompleteCount>0)&&(this._collectPluginData(),this._beaconData.navigationStart=t(this._window),this._isInitialLoad=!1)},n.prototype.appRenderComplete=function(){var e=this;this._renderCompleteCount++,this._beaconData.renderCompleteTime=t(this._window),this._timeOutVal||(this._timeOutVal=setTimeout((function(){e._collectPluginData()}),this._config["beacon-timeout"]))},n.prototype.addTreeId=function(e,t){if(this._config.plugins&&this._config.plugins.length>2){var n=this._config.plugins[2];n&&n.addTreeId(e,t)}},n.prototype.appViewRenderStart=function(e,n){this._viewTimings[e]||(this._viewTimings[e]={renderName:n||e,viewId:e,renderStart:t(this._window)})},n.prototype.appViewRenderComplete=function(e,n){this._viewTimings[e]&&!this._viewTimings[e].renderEnd&&(this._viewTimings[e].renderEnd=t(this._window))},n.prototype.setDeepLinkTrackingId=function(e){this._shouldSendBeacon=!1},n.prototype.setWindowHiddenState=function(e){this._beaconData.isImpactedByHiddenWindow=e},n.prototype.setPageInstance=function(e){this._beaconData.pageInstance=e},n.prototype.setIsLazyRender=function(e){this._isLazyRender=e},n.prototype.getConfig=function(){return this._config},n.prototype.pluginDone=function(){for(var e,t=this,n=0;n0&&void 0!==this._allBeaconData[r-1].loadEventEnd&&(this._allBeaconData[r-1].loadEventEnd=e),this._checkAsyncPlugAndSend(n)},n.prototype._resetState=function(e){this._beaconData={},this._viewTimings={},this._scrollTime=void 0,this._shouldSendBeacon=!0,this._timeOutVal&&(clearTimeout(this._timeOutVal),this._timeOutVal=void 0),e&&this._config.plugins.map((function(e){e.resetState()}))},n.prototype._readRenderTimingEntries=function(){if(Object.keys(this._viewTimings).length>0)for(var e in this._beaconData.detailedRenderTimingEntries=[],this._viewTimings)this._viewTimings.hasOwnProperty(e)&&this._beaconData.detailedRenderTimingEntries.push(this._viewTimings[e])},n.prototype._collectPluginData=function(){var e=this._collectPlugin();this._checkAsyncPlugAndSend(e)},n.prototype._collectPlugin=function(){var e=!0;if(this._config.enabled)return this._config.plugins.map((function(t){t.collectData(),t.isComplete()||(e=!1)})),this._pushCurrentBeaconData(),e},n.prototype._checkAsyncPlugAndSend=function(e){var t=this;e?this._sendAllData():setTimeout((function(){t._markAllAsyncPluginComplete()}),this._config["async-plugins-timeout"]),this._resetState(!0)},n.prototype._markAllAsyncPluginComplete=function(){this._config.plugins.map((function(e){e.isAsync()&&e.markComplete()})),this._sendAllData()},n.prototype._doesNotHaveLazyImageClass=function(e){var t,n=!0,r=this._config["lazy-image-class-names"];if(e&&e.className&&r)for(t=r.length-1;t>=0;t--)e.className.indexOf(r[t])>-1&&(n=!1);return n},n.prototype._doesElementOverlapWithViewport=function(e){var t,n=e.getBoundingClientRect();return!((t={top:Math.max(n.top,0),left:Math.max(n.left,0),bottom:Math.min(n.bottom,this._window.innerHeight||this._doc.documentElement.clientHeight),right:Math.min(n.right,this._window.innerWidth||this._doc.documentElement.clientWidth)}).bottom<=t.top||t.right<=t.left)},n.prototype._getImgResourceEntries=function(){var e,t,n=[],r=this._beaconData.resourceTimingEntries;if(r)for(e=r.length-1;e>=0;e--)"img"===(t=r[e]).initiatorType&&n.push(t);return n},n.prototype._cleanUpResourceTimingEntries=function(){var e;if(this._beaconData.resourceTimingEntries)for(e=this._beaconData.resourceTimingEntries.length-1;e>=0;e--)this._beaconData.resourceTimingEntries[e].name&&(this._beaconData.resourceTimingEntries[e].name=this._beaconData.resourceTimingEntries[e].name.split(/[?#]/)[0])},n.prototype._readPageKey=function(){this._beaconData&&!this._beaconData.pageKey&&this._isInitialLoad&&(this._beaconData.pageKey=this._getPageKey()),this._isInternalApp&&("EMBER"===this._config["web-ui-framework"]&&void 0!==this._beaconData.pageKey?this._beaconData.pageKey=this._config["page-key-prefix"]+":"+this._beaconData.pageKey:this._doc.querySelector('meta[name="pageKey"]')||(this._beaconData.pageKey=this._config["page-key-prefix"]+":",this._config["pathname-depth"]>-1?this._beaconData.pageKey+=this._window.location.pathname.split(/[/#]/).slice(0,this._config["pathname-depth"]+1).join("/"):this._beaconData.pageKey+=this._window.location.pathname))},n.prototype._getPageKey=function(){var e=this._doc.querySelector('meta[name="pageKey"]');return e?e.getAttribute("content"):this._doc.body.id?this._doc.body.id.substring("pagekey-".length):""},n.prototype._getRenderingMode=function(){var e,t=this._doc.querySelector('meta[name="renderingMode"]');return t&&"BIGPIPE"===(e=t.getAttribute("data-mode"))&&(e="BIG_PIPE"),e},n.prototype._doesRenderErrorCodeBlockExists=function(){return null!=this._doc.querySelector("code#renderError")},n.prototype._readSinglePageAppData=function(){this._beaconData.isSinglePageApp=this._config["is-single-page-app"],this._beaconData.isSinglePageApp&&(this._beaconData.webUIFramework=this._config["web-ui-framework"],this._beaconData.appRenderMode=this._getRenderingMode(),this._isInitialLoad?(this._beaconData.pageLoadMode="INITIAL",this._doesRenderErrorCodeBlockExists()&&(this._beaconData.isAppRenderFailed=!0)):this._beaconData.pageLoadMode="PARTIAL")},n.prototype._sendAllData=function(){var t,n,r,i={};for(t=0;t>>0;if("function"!=typeof e)throw new TypeError(e+" is not a function");for(arguments.length>1&&(t=arguments[1]),n=0;n1)for(var n=1;n1)&&E(this)}}}),Pe(a,K,{value:function(e){-1>0,x="__"+L+P,B="addEventListener",U="attached",F="Callback",H="detached",V="extends",K="attributeChanged"+F,W=U+F,G="connected"+F,j="disconnected"+F,q="created"+F,z=H+F,X="ADDITION",J="REMOVAL",Y="DOMAttrModified",Q="DOMContentLoaded",Z="DOMSubtreeModified",$="<",ee="=",te=/^[A-Z][._A-Z0-9]*-[-._A-Z0-9]*$/,ne=["ANNOTATION-XML","COLOR-PROFILE","FONT-FACE","FONT-FACE-SRC","FONT-FACE-URI","FONT-FACE-FORMAT","FONT-FACE-NAME","MISSING-GLYPH"],re=[],ie=[],ae="",oe=_.documentElement,se=re.indexOf||function(e){for(var t=this.length;t--&&this[t]!==e;);return t},ce=w.prototype,ue=ce.hasOwnProperty,le=ce.isPrototypeOf,de=w.defineProperty,fe=[],he=w.getOwnPropertyDescriptor,pe=w.getOwnPropertyNames,ve=w.getPrototypeOf,ge=w.setPrototypeOf,me=!!w.__proto__,ye="__dreCEv1",Ee=e.customElements,Te=!/^force/.test(t.type)&&!!(Ee&&Ee.define&&Ee.get&&Ee.whenDefined),be=w.create||w,_e=e.Map||function(){var e,t=[],n=[];return{get:function(e){return n[se.call(t,e)]},set:function(r,i){(e=se.call(t,r))<0?n[t.push(r)-1]=i:n[e]=i}}},we=e.Promise||function(e){function t(e){for(r=!0;n.length;)n.shift()(e)}var n=[],r=!1,i={catch:function(){return i},then:function(e){return n.push(e),r&&setTimeout(t,1),i}};return e(t),i},Ie=!1,ke=be(null),Ne=be(null),Ce=new _e,Ae=function(e){return e.toLowerCase()},Se=w.create||function e(t){return t?(e.prototype=t,new e):this},Re=ge||(me?function(e,t){return e.__proto__=t,e}:pe&&he?function(){function e(e,t){for(var n,r=pe(t),i=0,a=r.length;i
",new Oe((function(e,t){if(e[0]&&"childList"==e[0].type&&!e[0].removedNodes[0].childNodes.length){var n=(M=he(Me,"innerHTML"))&&M.set;n&&de(Me,"innerHTML",{set:function(e){for(;this.lastChild;)this.removeChild(this.lastChild);n.call(this,e)}})}t.disconnect(),M=null})).observe(M,{childList:!0,subtree:!0}),M.innerHTML=""),Ze||(ge||me?(O=function(e,t){le.call(t,e)||f(e,t)},D=f):D=O=function(e,t){e[x]||(e[x]=w(!0),f(e,t))},Le?(tt=!1,function(){var e=he(Me,B),t=e.value,n=function(e){var t=new CustomEvent(Y,{bubbles:!0});t.attrName=e,t.prevValue=Ke.call(this,e),t.newValue=null,t[J]=t.attrChange=2,Ge.call(this,e),Ve.call(this,t)},r=function(e,t){var n=We.call(this,e),r=n&&Ke.call(this,e),i=new CustomEvent(Y,{bubbles:!0});je.call(this,e,t),i.attrName=e,i.prevValue=n?r:null,i.newValue=t,n?i.MODIFICATION=i.attrChange=1:i[X]=i.attrChange=0,Ve.call(this,i)},i=function(e){var t,n=e.currentTarget,r=n[x],i=e.propertyName;r.hasOwnProperty(i)&&(r=r[i],(t=new CustomEvent(Y,{bubbles:!0})).attrName=r.name,t.prevValue=r.value||null,t.newValue=r.value=n[i]||null,null==t.prevValue?t[X]=t.attrChange=0:t.MODIFICATION=t.attrChange=1,Ve.call(n,t))};e.value=function(e,a,o){e===Y&&this[K]&&this.setAttribute!==r&&(this[x]={className:{name:"class",value:this.className}},this.setAttribute=r,this.removeAttribute=n,t.call(this,"propertychange",i)),t.call(this,e,a,o)},de(Me,B,e)}()):Oe||(oe[B](Y,Ye),oe.setAttribute(x,1),oe.removeAttribute(x),tt&&(N=function(e){var t,n,r,i=this;if(i===e.target){for(r in t=i[x],i[x]=n=A(i),n){if(!(r in t))return C(0,i,r,t[r],n[r],X);if(n[r]!==t[r])return C(1,i,r,t[r],n[r],"MODIFICATION")}for(r in t)if(!(r in n))return C(2,i,r,t[r],n[r],J)}},C=function(e,t,n,r,i,a){var o={attrChange:e,currentTarget:t,attrName:n,prevValue:r,newValue:i};o[a]=e,s(o)},A=function(e){for(var t,n,r={},i=e.attributes,a=0,o=i.length;a$");if(n[V]="a",(t.prototype=Se(De.prototype)).constructor=t,e.customElements.define(r,t,n),!i.test(_.createElement("a",{is:r}).outerHTML)||!i.test((new t).outerHTML))throw n}((function e(){return Reflect.construct(De,[],e)}),{},"document-register-element-a"+P)}catch(e){b()}if(!t.noBuiltIn)try{if(qe.call(_,"a","a").outerHTML.indexOf("is")<0)throw{}}catch(e){Ae=function(e){return{is:e.toLowerCase()}}}}(window)},77:function(e,t){var n,r;n=function(){var e=window.navigator.userAgent,t=e.indexOf("MSIE ");if(t>0)return parseInt(e.substring(t+5,e.indexOf(".",t)),10);if(e.indexOf("Trident/")>0){var n=e.indexOf("rv:");return parseInt(e.substring(n+3,e.indexOf(".",n)),10)}var r=e.indexOf("Edg/");return r>0&&parseInt(e.substring(r+5,e.indexOf(".",r)),10)}(),r=document.querySelector("body"),n&&(r instanceof Element&&r.classList.add("browser-ie"),n<=10&&r instanceof Element&&r.classList.add("browser-ie--10"),n<=11&&r instanceof Element&&r.classList.add("browser-ie--11"))},78:function(e,t,n){"use strict";var r,i=n(56),a=n.n(i),o=n(0);(r=window).addEventListener("load",(function(e){if("function"==typeof a.a){r.rumTracking=new a.a({"web-ui-framework":"GLIMMER","is-single-page-app":!1,"navigation-timing-only":!0,"enable-rs-timing":!0,"request-sampling-rate":1,"beacon-service":"tracking","beacon-url":"/li/track","event-name":"RealUserMonitoringEvent"});var t=Object(o.n)();r.rumTracking.setPageInstance(t)}}))},9:function(e,t,n){var r,i,a;i=[t,e],void 0===(a="function"==typeof(r=function(e,t){"use strict";var n="undefined"!=typeof window&&window&&"node"!==window.appEnvironment,r=n&&!!window.requestIdleCallback,i={AJAX_METHOD:"POST",DEFAULT_PAGE_TYPE:"ajax",globalTrackingUrl:null,globalTrackingAppId:"no.app.id",queue:[],paused:!1,maxQueueSize:1,queueTimeout:1e3,timeoutId:null,csrfToken:"",testId:"",testSegId:"",setProperty:function(e,t){t&&(this[e]=t)},setTrackingUrl:function(e){this.setProperty("globalTrackingUrl",e)},setAppId:function(e){this.setProperty("globalTrackingAppId",e)},setCsrfToken:function(e){this.setProperty("csrfToken",e)},setTestId:function(e){this.setProperty("testId",e)},setTestSegId:function(e){this.setProperty("testSegId",e)},getCookieString:function(){return document.cookie},getCsrfToken:function(){for(var e=this.getCookieString().split(";"),t=0;t=this.maxQueueSize&&this.flush()},flush:function(){this.queue.length>0&&(this.ajax(JSON.stringify(this.queue),null,this.logError),this.queue=[]),r?cancelIdleCallback(this.timeoutId):clearTimeout(this.timeoutId),this.timeoutId=null,this.paused=!1},idleFlush:function(e){var t=this,n=Date.now();return requestIdleCallback((function(r){r.timeRemaining()>8||r.didTimeout?t.flush():t.timeoutId=t.idleFlush(e-(Date.now()-n))}),{timeout:e})},addToQueue:function(e){if(this.queue.push(e),this.queue.length>=this.maxQueueSize&&!this.paused)return this.flush();if(!this.timeoutId){var t=this;r&&!this.paused?this.timeoutId=this.idleFlush(this.queueTimeout):this.timeoutId=setTimeout((function(){t.flush()}),this.queueTimeout)}},validateEvent:function(e,t,n){this.ajax(JSON.stringify([{eventInfo:this.populateEventInfo(e),eventBody:this.populateEventHeaders(t)}]),(function(e){return n(null,e)}),(function(e){return n(e)}),this.globalTrackingUrl+"/validate")},sendEvent:function(e,t){this.addToQueue({eventInfo:this.populateEventInfo(e),eventBody:this.populateEventHeaders(t)})},getTimestamp:function(){return Math.round((new Date).getTime()/1e3)},populateEventInfo:function(e){return"string"==typeof e&&(e={eventName:e}),e&&"object"==typeof e?(e.appId||(e.appId=this.globalTrackingAppId),e):(this.logError("Event info must be object"),{})},populateEventHeaders:function(e){return e&&"object"==typeof e?e:(this.logError("Event body must be object"),{})},logError:function(e){var t=window.console;t&&t.error&&t.error(e)},init:function(){this.setTrackingUrl(),this.setAppId(),this.onBeforeUnload=this.onBeforeUnload.bind(this),n&&window.addEventListener("beforeunload",this.onBeforeUnload)},destroy:function(){n&&window.removeEventListener("beforeunload",this.onBeforeUnload)},onBeforeUnload:function(){this.flush()}};i.init(),t.exports=i})?r.apply(t,i):r)||(e.exports=a)}});