!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 b})),n.d(t,"p",(function(){return E})),n.d(t,"t",(function(){return w})),n.d(t,"u",(function(){return T})),n.d(t,"B",(function(){return _})),n.d(t,"z",(function(){return S})),n.d(t,"a",(function(){return C})),n.d(t,"q",(function(){return k})),n.d(t,"f",(function(){return I})),n.d(t,"E",(function(){return A})),n.d(t,"h",(function(){return D})),n.d(t,"r",(function(){return N})),n.d(t,"F",(function(){return M})),n.d(t,"b",(function(){return P})),n.d(t,"d",(function(){return x})),n.d(t,"l",(function(){return F})),n.d(t,"G",(function(){return B})),n.d(t,"v",(function(){return U})),n.d(t,"A",(function(){return H})),n.d(t,"m",(function(){return K})),n.d(t,"w",(function(){return q})),n.d(t,"x",(function(){return G})),n.d(t,"y",(function(){return z})),n.d(t,"e",(function(){return X}));var r=n(2),i=n(1);function o(){/*! 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,o){var s=r&&r.prototype instanceof u?r:u,l=Object.create(s.prototype);return a(l,"_invoke",function(n,r,i){var o,a,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 o=t,a=0,s=e,f.n=n,c}};function h(n,r){for(a=n,s=r,t=0;!d&&u&&!i&&t<l.length;t++){var i,o=l[t],h=f.p,p=o[2];n>3?(i=p===r)&&(s=o[(a=o[4])?5:(a=3,3)],o[4]=o[5]=e):o[0]<=h&&((i=n<2&&h<o[1])?(a=0,f.v=r,f.n=o[1]):h<p&&(i=n<3||o[0]>r||r>p)&&(o[4]=n,o[5]=r,f.n=p,a=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),a=l,s=p;(t=a<2?e:s)||!d;){o||(a?a<3?(a>1&&(f.n=-1),h(a,s)):f.n=s:f.v=s);try{if(u=2,o){if(a||(i="next"),t=o[i]){if(!(t=t.call(o,s)))throw TypeError("iterator result is not an object");if(!t.done)return t;s=t.value,a<2&&(a=0)}else 1===a&&(t=o.return)&&t.call(o),a<2&&(s=TypeError("The iterator does not provide a '"+i+"' method"),a=1);o=e}else if((t=(d=f.n<0)?s:n.call(r,f))!==c)break}catch(t){o=e,a=1,s=t}finally{u=1}}return{value:t,done:d}}}(n,i,o),!0),l}var c={};function u(){}function l(){}function d(){}t=Object.getPrototypeOf;var f=[][r]?t(t([][r]())):(a(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,a(e,i,"GeneratorFunction")),e.prototype=Object.create(h),e}return l.prototype=d,a(h,"constructor",d),a(d,"constructor",l),l.displayName="GeneratorFunction",a(d,i,"GeneratorFunction"),a(h),a(h,i,"Generator"),a(h,r,(function(){return this})),a(h,"toString",(function(){return"[object Generator]"})),(o=function(){return{w:s,m:p}})()}function a(e,t,n,r){var i=Object.defineProperty;try{i({},"",{})}catch(e){i=0}(a=function(e,t,n,r){function o(t,n){a(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:(o("next",0),o("throw",1),o("return",2))})(e,t,n,r)}function s(e,t,n,r,i,o,a){try{var s=e[o](a),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 o=e.apply(t,n);function a(e){s(o,r,i,a,c,"next",e)}function c(e){s(o,r,i,a,c,"throw",e)}a(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 b(e){return e instanceof Element}function E(){return document.defaultView.location.origin||location.protocol+"//"+location.hostname}function w(){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 T(){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 _(e){b(e)&&w()&&(S(e),e.blur())}function S(e){e.hasAttribute("autofocus")&&e.removeAttribute("autofocus")}function C(e){var t=window.location.search;return Object(r.sanitizeUrl)(t?"".concat(e).concat(t):"".concat(e))}function k(e,t){var n=t,r=new RegExp("[?&]"+e+"=([^&#]*)","i").exec(n);return r?r[1]:null}function I(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 R,L=/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?L:r;if(!R||Date.now()-O>n){var o=document.cookie.match(i);R=o&&o[1]||"",O=Date.now()}return R}function N(e){u(e)!==i.g.UNDEFINED&&null!==e&&e.classList.add(i.g.HIDDEN_CLASS)}function M(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 F(){return l("funcaptchaChallengeSource")}function B(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"_self";w()&&Array.from(document.getElementsByTagName("a")).forEach((function(t){return"_blank"===t.getAttribute("target")&&t.setAttribute("target",e)}))}function U(){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("<!DOCTYPE html>","").trim())}function K(){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 j(){return"undefined"!=typeof window&&window&&"node"!==window.appEnvironment}function q(){var e,t;return j()&&(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 V(e){var t;return!(!j()||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 W(e){var t;return!(!j()||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 G(e){return V(e)||W(e)}function z(){var e={closeWebView:""};return V(e)||W(e)}function X(e){return J.apply(this,arguments)}function J(){return(J=c(o().m((function e(t){var n,r;return o().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 o})),n.d(t,"f",(function(){return a})),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",o=Object.freeze({ANDROID:"android",WINDOW_PHONE:"window_phone",IOS:"ios",UNKNOWN:"unknown"}),a={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 U}));var i=new Uint8Array(16);function o(){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 a=/^(?:[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&&a.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||o)();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",b="x-cache";class E 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 w(e){return JSON.stringify(e,Object.keys(e).sort())}class T 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=w(e);if(this.featureCallCounts.has(n))t(this.featureCallCounts.get(n));else{const r=new _(e);t(r),this.featureCallCounts.set(n,r)}}}class _ 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 S 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 o=n.featureCallCounts.get(r);void 0!==o?o=o.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=w(e);if(this.metrics.has(n))t(this.metrics.get(n));else{const r=new T(e);t(r),this.metrics.set(n,r)}}}var C;!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"}(C||(C={}));const k=new Set(Object.values(C));class I extends Error{constructor(e){super(e),Object.setPrototypeOf(this,I.prototype)}}function A(e){return 0===e.length||!e.trim()}function R(e){if("string"!=typeof e)throw new I(`The product name must be a string. ${f}.`);if(A(e))throw new I(`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 I(`Product name '${e}' can only contain alphanumeric, underscores (_), spaces ( ), dashes (-) and forward slashes (/). ${f}.`);return e}function L(e){if("string"!=typeof e)throw new I(`Keys must be strings. ${f}.`);if(A(e))throw new I(`Keys should not be blank. ${f}.`);if(/[^a-z0-9-]/.test(e))throw new I(`'${e}' can only contain lowercase alphanumeric characters and dashes (-). ${f}.`);return e}class O{constructor(e,t,n){var r,i,o;if(this._shouldEnablePerformanceMeasurement=!1,this._shouldDisableAvailabilityCalculation=!1,this._shouldRecordSession=!1,this._featureKey=L(e),this._defaultDegradationKey=L(t),!n)return this._additionalDegradedResponseCodes=[],this._nonDegradedResponseCodes=[],void(this._degradationKeyOverrides=[]);if("object"!=typeof n)throw new I(`DegradationTrackingMetadata options should be an object. ${f}.`);const a=n.productName;a&&(this._productName=R(a));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 I(`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 I(`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===C.NonDegradedResponseCodes&&e>=400&&e<500)throw new I(`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 ${C.AdditionalDegradedResponseCodes} option. Please remove ${e} from the ${C.NonDegradedResponseCodes} option. See https://go/pem/degradation-tracking-user-guide for instrumentation instructions.`)};if(void 0!==e&&!Array.isArray(e))throw new I(`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 ${C.NonDegradedResponseCodes} option. See https://go/pem/degradation-tracking-user-guide for instrumentation instructions.`);if(void 0!==t&&!Array.isArray(t))throw new I(`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 ${C.AdditionalDegradedResponseCodes} option. ${f}.`);null==e||e.forEach(e=>n(e,C.NonDegradedResponseCodes)),null==t||t.forEach(e=>n(e,C.AdditionalDegradedResponseCodes));const r=new Set(t),i=new Set(e);if([...r].some(e=>i.has(e)))throw new I(`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!==(o=n.enableSessionRecording)&&void 0!==o&&o,function(e){Object.keys(e).forEach(e=>{if(!k.has(e))throw new I(`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 S,this._lastRequestMetricStore=new S,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 N(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],o=t.indexOf(i);o>=0?t.splice(o,1):r.push(i)}return r.reverse().join("/")}class M extends O{static isFailureTrackingMetadata(e){return"object"==typeof e&&(null==e?void 0:e.constructor.name)===M.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)&&!M.isFailureTrackingMetadata(e))throw new I("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 I("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 I(`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 I(`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 I(`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(b)||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 F{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 B="undefined"==typeof FastBoot;class U{constructor(e,t,n){this._featureMetricStore=new S,this._visibilityListener=()=>{"hidden"===document.visibilityState&&this._metricSender.produceMetricEvent(!0)},this._defaultProductName=e,this._fireEventCallback=t,this._jetErrorCallback=n,this._metricSender=new E(this._featureMetricStore,t),B&&(this._metricsInterval=window.setInterval(()=>this._metricSender.produceMetricEvent(),6e4),window.addEventListener("visibilitychange",this._visibilityListener))}trackFeatureDegradationsForFetch(e,t,n,r,i){let o,a=null;const s=new Map,c=this._createFailureProcessingMetadata(n);return t=this._getAndValidateUrlEntityIDs(t),r.then(e=>{a=e.status,e.headers.forEach((e,t)=>s.set(t.toLowerCase(),e)),(!1===e.ok||e.status<200||a>=300)&&(o=e)}).catch(e=>{throw o=e,e}).finally(()=>{this._trackResponse(e,a,t,c,i,s,o)})}trackFeatureDegradationsForJQueryAjax(e,t,n,r,i,o){const a=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=o?null:t,l=this._createFailureProcessingMetadata(r);n=this._getAndValidateUrlEntityIDs(n),this._trackResponse(e,a,n,l,i,c,u)}startRetryFlow(e){return U.startRetryFlow(e)}static startRetryFlow(e){return new D(e)}completeRetryFlow(e){if(!D.isRetryableDegradationTrackingMetadata(e))throw new I("retryFlowMetadata must be an instance of RetryableDegradationTrackingMetadata");e.flushMetricStoreToServiceStore(this._featureMetricStore)}_trackResponse(e,t,n,r,i,o,a){const s=new F(t,o,a),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,o;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&&(o=t).message.indexOf("Maximum call stack size exceeded")>=0&&o.stack&&o.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=N(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(a,u,t,d,f);(function(e,t,n,r){if(!(null==e?void 0:e.trim())||!t||!Array.isArray(t))return[];const i=[],o=r.responseCode;return t.forEach(t=>{const a=t.getDegradationKey(o),s=t.shouldImpactAvailability(n)&&t.isCountedAgainstAvailability(n,o),c={endpointPath:e,degradationKey:a,responseErrorTypeV2:n,isCountedAgainstAvailability:s,downstreamServiceErrorCode:r.downstreamServiceErrorCode};o&&(c.responseCode=o);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 o;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===(o=this._jetErrorCallback)||void 0===o||o.call(this,n,t,!1)}}_createFailureProcessingMetadata(e){if(!e||!Array.isArray(e)||!e.length)throw new I(`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 I(`Please use DegradationTrackingMetadata or RetryableDegradationTrackingMetadata to specify the degradations. ${f}.`);const n=R(e.productName||this._defaultProductName),r=`${n}!!${e.featureKey}`;if(t.has(r))throw new I("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 I(`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=["transporterKeys"],o=["breadcrumb"],a=["$type"],s=["requestStart"],c=["requestTime","viewNames","requestType","requestTag"],u=["requestStart"],l=["requestStart"],d=["requestTime","viewNames","requestType"];function f(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 h(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?f(Object(n),!0).forEach((function(t){D(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):f(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function p(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,o,a,s=[],c=!0,u=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=o.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&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw i}}return s}}(e,t)||k(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 v(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 g(e)}(e,function(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return function(){return!!e}()}()?Reflect.construct(t,n||[],m(e).constructor):t.apply(e,n))}function g(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");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&&b(e,t)}function b(e,t){return(b=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function E(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */E=function(){return t};var e,t={},n=Object.prototype,r=n.hasOwnProperty,i=Object.defineProperty||function(e,t,n){e[t]=n.value},o="function"==typeof Symbol?Symbol:{},a=o.iterator||"@@iterator",s=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function u(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{u({},"")}catch(e){u=function(e,t,n){return e[t]=n}}function l(e,t,n,r){var o=t&&t.prototype instanceof g?t:g,a=Object.create(o.prototype),s=new O(r||[]);return i(a,"_invoke",{value:k(e,n,s)}),a}function d(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}t.wrap=l;var f="suspendedStart",h="executing",p="completed",v={};function g(){}function m(){}function y(){}var b={};u(b,a,(function(){return this}));var w=Object.getPrototypeOf,T=w&&w(w(D([])));T&&T!==n&&r.call(T,a)&&(b=T);var _=y.prototype=g.prototype=Object.create(b);function S(e){["next","throw","return"].forEach((function(t){u(e,t,(function(e){return this._invoke(t,e)}))}))}function C(e,t){function n(i,o,a,s){var c=d(e[i],e,o);if("throw"!==c.type){var u=c.arg,l=u.value;return l&&"object"==A(l)&&r.call(l,"__await")?t.resolve(l.__await).then((function(e){n("next",e,a,s)}),(function(e){n("throw",e,a,s)})):t.resolve(l).then((function(e){u.value=e,a(u)}),(function(e){return n("throw",e,a,s)}))}s(c.arg)}var o;i(this,"_invoke",{value:function(e,r){function i(){return new t((function(t,i){n(e,r,t,i)}))}return o=o?o.then(i,i):i()}})}function k(t,n,r){var i=f;return function(o,a){if(i===h)throw new Error("Generator is already running");if(i===p){if("throw"===o)throw a;return{value:e,done:!0}}for(r.method=o,r.arg=a;;){var s=r.delegate;if(s){var c=I(s,r);if(c){if(c===v)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(i===f)throw i=p,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);i=h;var u=d(t,n,r);if("normal"===u.type){if(i=r.done?p:"suspendedYield",u.arg===v)continue;return{value:u.arg,done:r.done}}"throw"===u.type&&(i=p,r.method="throw",r.arg=u.arg)}}}function I(t,n){var r=n.method,i=t.iterator[r];if(i===e)return n.delegate=null,"throw"===r&&t.iterator.return&&(n.method="return",n.arg=e,I(t,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),v;var o=d(i,t.iterator,n.arg);if("throw"===o.type)return n.method="throw",n.arg=o.arg,n.delegate=null,v;var a=o.arg;return a?a.done?(n[t.resultName]=a.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=e),n.delegate=null,v):a:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,v)}function R(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function L(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function O(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(R,this),this.reset(!0)}function D(t){if(t||""===t){var n=t[a];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var i=-1,o=function n(){for(;++i<t.length;)if(r.call(t,i))return n.value=t[i],n.done=!1,n;return n.value=e,n.done=!0,n};return o.next=o}}throw new TypeError(A(t)+" is not iterable")}return m.prototype=y,i(_,"constructor",{value:y,configurable:!0}),i(y,"constructor",{value:m,configurable:!0}),m.displayName=u(y,c,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===m||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,y):(e.__proto__=y,u(e,c,"GeneratorFunction")),e.prototype=Object.create(_),e},t.awrap=function(e){return{__await:e}},S(C.prototype),u(C.prototype,s,(function(){return this})),t.AsyncIterator=C,t.async=function(e,n,r,i,o){void 0===o&&(o=Promise);var a=new C(l(e,n,r,i),o);return t.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},S(_),u(_,c,"Generator"),u(_,a,(function(){return this})),u(_,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},t.values=D,O.prototype={constructor:O,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(L),!t)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var n=this;function i(r,i){return s.type="throw",s.arg=t,n.next=r,i&&(n.method="next",n.arg=e),!!i}for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o],s=a.completion;if("root"===a.tryLoc)return i("end");if(a.tryLoc<=this.prev){var c=r.call(a,"catchLoc"),u=r.call(a,"finallyLoc");if(c&&u){if(this.prev<a.catchLoc)return i(a.catchLoc,!0);if(this.prev<a.finallyLoc)return i(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return i(a.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return i(a.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,v):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),v},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),L(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;L(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(t,n,r){return this.delegate={iterator:D(t),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=e),v}},t}function w(e,t,n,r,i,o,a){try{var s=e[o](a),c=s.value}catch(e){return void n(e)}s.done?t(c):Promise.resolve(c).then(r,i)}function T(e){return function(){var t=this,n=arguments;return new Promise((function(r,i){var o=e.apply(t,n);function a(e){w(o,r,i,a,s,"next",e)}function s(e){w(o,r,i,a,s,"throw",e)}a(void 0)}))}}function _(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function S(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=k(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 o,a=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,o=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}function C(e){return function(e){if(Array.isArray(e))return I(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||k(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 k(e,t){if(e){if("string"==typeof e)return I(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)?I(e,t):void 0}}function I(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function A(e){return(A="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 R(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function L(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,N(r.key),r)}}function O(e,t,n){return t&&L(e.prototype,t),n&&L(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function D(e,t,n){return(t=N(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function N(e){var t=function(e,t){if("object"!=A(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t);if("object"!=A(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"==A(t)?t:String(t)}var M,P="unknown",x=new Uint8Array(16);function F(){if(!M&&!(M="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 M(x)}var B=/^(?:[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 U(e){return"string"==typeof e&&B.test(e)}for(var H=[],K=0;K<256;++K)H.push((K+256).toString(16).slice(1));function j(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return(H[e[t+0]]+H[e[t+1]]+H[e[t+2]]+H[e[t+3]]+"-"+H[e[t+4]]+H[e[t+5]]+"-"+H[e[t+6]]+H[e[t+7]]+"-"+H[e[t+8]]+H[e[t+9]]+"-"+H[e[t+10]]+H[e[t+11]]+H[e[t+12]]+H[e[t+13]]+H[e[t+14]]+H[e[t+15]]).toLowerCase()}function q(e){if(!U(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 V(e,t,n){function r(e,r,i,o){var a;if("string"==typeof e&&(e=function(e){e=unescape(encodeURIComponent(e));for(var t=[],n=0;n<e.length;++n)t.push(e.charCodeAt(n));return t}(e)),"string"==typeof r&&(r=q(r)),16!==(null===(a=r)||void 0===a?void 0:a.length))throw TypeError("Namespace must be array-like (16 iterable integer values, 0-255)");var s=new Uint8Array(16+e.length);if(s.set(r),s.set(e,r.length),(s=n(s))[6]=15&s[6]|t,s[8]=63&s[8]|128,i){o=o||0;for(var c=0;c<16;++c)i[o+c]=s[c];return i}return j(s)}try{r.name=e}catch(e){}return r.DNS="6ba7b810-9dad-11d1-80b4-00c04fd430c8",r.URL="6ba7b811-9dad-11d1-80b4-00c04fd430c8",r}function W(e){return 14+(e+64>>>9<<4)+1}function G(e,t){var n=(65535&e)+(65535&t);return(e>>16)+(t>>16)+(n>>16)<<16|65535&n}function z(e,t,n,r,i,o){return G((a=G(G(t,e),G(r,o)))<<(s=i)|a>>>32-s,n);var a,s}function X(e,t,n,r,i,o,a){return z(t&n|~t&r,e,t,i,o,a)}function J(e,t,n,r,i,o,a){return z(t&r|n&~r,e,t,i,o,a)}function Q(e,t,n,r,i,o,a){return z(t^n^r,e,t,i,o,a)}function Y(e,t,n,r,i,o,a){return z(n^(t|~r),e,t,i,o,a)}V("v3",48,(function(e){if("string"==typeof e){var t=unescape(encodeURIComponent(e));e=new Uint8Array(t.length);for(var n=0;n<t.length;++n)e[n]=t.charCodeAt(n)}return function(e){for(var t=[],n=32*e.length,r="0123456789abcdef",i=0;i<n;i+=8){var o=e[i>>5]>>>i%32&255,a=parseInt(r.charAt(o>>>4&15)+r.charAt(15&o),16);t.push(a)}return t}(function(e,t){e[t>>5]|=128<<t%32,e[W(t)-1]=t;for(var n=1732584193,r=-271733879,i=-1732584194,o=271733878,a=0;a<e.length;a+=16){var s=n,c=r,u=i,l=o;n=X(n,r,i,o,e[a],7,-680876936),o=X(o,n,r,i,e[a+1],12,-389564586),i=X(i,o,n,r,e[a+2],17,606105819),r=X(r,i,o,n,e[a+3],22,-1044525330),n=X(n,r,i,o,e[a+4],7,-176418897),o=X(o,n,r,i,e[a+5],12,1200080426),i=X(i,o,n,r,e[a+6],17,-1473231341),r=X(r,i,o,n,e[a+7],22,-45705983),n=X(n,r,i,o,e[a+8],7,1770035416),o=X(o,n,r,i,e[a+9],12,-1958414417),i=X(i,o,n,r,e[a+10],17,-42063),r=X(r,i,o,n,e[a+11],22,-1990404162),n=X(n,r,i,o,e[a+12],7,1804603682),o=X(o,n,r,i,e[a+13],12,-40341101),i=X(i,o,n,r,e[a+14],17,-1502002290),n=J(n,r=X(r,i,o,n,e[a+15],22,1236535329),i,o,e[a+1],5,-165796510),o=J(o,n,r,i,e[a+6],9,-1069501632),i=J(i,o,n,r,e[a+11],14,643717713),r=J(r,i,o,n,e[a],20,-373897302),n=J(n,r,i,o,e[a+5],5,-701558691),o=J(o,n,r,i,e[a+10],9,38016083),i=J(i,o,n,r,e[a+15],14,-660478335),r=J(r,i,o,n,e[a+4],20,-405537848),n=J(n,r,i,o,e[a+9],5,568446438),o=J(o,n,r,i,e[a+14],9,-1019803690),i=J(i,o,n,r,e[a+3],14,-187363961),r=J(r,i,o,n,e[a+8],20,1163531501),n=J(n,r,i,o,e[a+13],5,-1444681467),o=J(o,n,r,i,e[a+2],9,-51403784),i=J(i,o,n,r,e[a+7],14,1735328473),n=Q(n,r=J(r,i,o,n,e[a+12],20,-1926607734),i,o,e[a+5],4,-378558),o=Q(o,n,r,i,e[a+8],11,-2022574463),i=Q(i,o,n,r,e[a+11],16,1839030562),r=Q(r,i,o,n,e[a+14],23,-35309556),n=Q(n,r,i,o,e[a+1],4,-1530992060),o=Q(o,n,r,i,e[a+4],11,1272893353),i=Q(i,o,n,r,e[a+7],16,-155497632),r=Q(r,i,o,n,e[a+10],23,-1094730640),n=Q(n,r,i,o,e[a+13],4,681279174),o=Q(o,n,r,i,e[a],11,-358537222),i=Q(i,o,n,r,e[a+3],16,-722521979),r=Q(r,i,o,n,e[a+6],23,76029189),n=Q(n,r,i,o,e[a+9],4,-640364487),o=Q(o,n,r,i,e[a+12],11,-421815835),i=Q(i,o,n,r,e[a+15],16,530742520),n=Y(n,r=Q(r,i,o,n,e[a+2],23,-995338651),i,o,e[a],6,-198630844),o=Y(o,n,r,i,e[a+7],10,1126891415),i=Y(i,o,n,r,e[a+14],15,-1416354905),r=Y(r,i,o,n,e[a+5],21,-57434055),n=Y(n,r,i,o,e[a+12],6,1700485571),o=Y(o,n,r,i,e[a+3],10,-1894986606),i=Y(i,o,n,r,e[a+10],15,-1051523),r=Y(r,i,o,n,e[a+1],21,-2054922799),n=Y(n,r,i,o,e[a+8],6,1873313359),o=Y(o,n,r,i,e[a+15],10,-30611744),i=Y(i,o,n,r,e[a+6],15,-1560198380),r=Y(r,i,o,n,e[a+13],21,1309151649),n=Y(n,r,i,o,e[a+4],6,-145523070),o=Y(o,n,r,i,e[a+11],10,-1120210379),i=Y(i,o,n,r,e[a+2],15,718787259),r=Y(r,i,o,n,e[a+9],21,-343485551),n=G(n,s),r=G(r,c),i=G(i,u),o=G(o,l)}return[n,r,i,o]}(function(e){if(0===e.length)return[];for(var t=8*e.length,n=new Uint32Array(W(t)),r=0;r<t;r+=8)n[r>>5]|=(255&e[r/8])<<r%32;return n}(e),8*e.length))}));var $={randomUUID:"undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};function Z(e,t,n){if($.randomUUID&&!t&&!e)return $.randomUUID();var r=(e=e||{}).random||(e.rng||F)();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 j(r)}function ee(e,t,n,r){switch(e){case 0:return t&n^~t&r;case 1:case 3:return t^n^r;case 2:return t&n^t&r^n&r}}function te(e,t){return e<<t|e>>>32-t}V("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<r.length;++i)e.push(r.charCodeAt(i))}else Array.isArray(e)||(e=Array.prototype.slice.call(e));e.push(128);for(var o=e.length/4+2,a=Math.ceil(o/16),s=new Array(a),c=0;c<a;++c){for(var u=new Uint32Array(16),l=0;l<16;++l)u[l]=e[64*c+4*l]<<24|e[64*c+4*l+1]<<16|e[64*c+4*l+2]<<8|e[64*c+4*l+3];s[c]=u}s[a-1][14]=8*(e.length-1)/Math.pow(2,32),s[a-1][14]=Math.floor(s[a-1][14]),s[a-1][15]=8*(e.length-1)&4294967295;for(var d=0;d<a;++d){for(var f=new Uint32Array(80),h=0;h<16;++h)f[h]=s[d][h];for(var p=16;p<80;++p)f[p]=te(f[p-3]^f[p-8]^f[p-14]^f[p-16],1);for(var v=n[0],g=n[1],m=n[2],y=n[3],b=n[4],E=0;E<80;++E){var w=Math.floor(E/20),T=te(v,5)+ee(w,g,m,y)+b+t[w]+f[E]>>>0;b=y,y=m,m=te(g,30)>>>0,g=v,v=T}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]+b>>>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 ne=Uint8Array,re=Uint16Array,ie=Uint32Array,oe=new ne([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]),ae=new ne([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]),se=new ne([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),ce=function(e,t){for(var n=new re(31),r=0;r<31;++r)n[r]=t+=1<<e[r-1];var i=new ie(n[30]);for(r=1;r<30;++r)for(var o=n[r];o<n[r+1];++o)i[o]=o-n[r]<<5|r;return[n,i]},ue=ce(oe,2),le=ue[0],de=ue[1];le[28]=258,de[258]=28;for(var fe=ce(ae,0)[1],he=new re(32768),pe=0;pe<32768;++pe){var ve=(43690&pe)>>>1|(21845&pe)<<1;ve=(61680&(ve=(52428&ve)>>>2|(13107&ve)<<2))>>>4|(3855&ve)<<4,he[pe]=((65280&ve)>>>8|(255&ve)<<8)>>>1}var ge=function(e,t,n){for(var r=e.length,i=0,o=new re(t);i<r;++i)e[i]&&++o[e[i]-1];var a,s=new re(t);for(i=0;i<t;++i)s[i]=s[i-1]+o[i-1]<<1;if(n){a=new re(1<<t);var c=15-t;for(i=0;i<r;++i)if(e[i])for(var u=i<<4|e[i],l=t-e[i],d=s[e[i]-1]++<<l,f=d|(1<<l)-1;d<=f;++d)a[he[d]>>>c]=u}else for(a=new re(r),i=0;i<r;++i)e[i]&&(a[i]=he[s[e[i]-1]++]>>>15-e[i]);return a},me=new ne(288);for(pe=0;pe<144;++pe)me[pe]=8;for(pe=144;pe<256;++pe)me[pe]=9;for(pe=256;pe<280;++pe)me[pe]=7;for(pe=280;pe<288;++pe)me[pe]=8;var ye=new ne(32);for(pe=0;pe<32;++pe)ye[pe]=5;var be=ge(me,9,0),Ee=ge(ye,5,0),we=function(e){return(e+7)/8|0},Te=function(e,t,n){n<<=7&t;var r=t/8|0;e[r]|=n,e[r+1]|=n>>>8},_e=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},Se=function(e,t){for(var n=[],r=0;r<e.length;++r)e[r]&&n.push({s:r,f:e[r]});var i=n.length,o=n.slice();if(!i)return[Oe,0];if(1==i){var a=new ne(n[0].s+1);return a[n[0].s]=1,[a,1]}n.sort((function(e,t){return e.f-t.f})),n.push({s:-1,f:25001});var s=n[0],c=n[1],u=0,l=1,d=2;for(n[0]={s:-1,f:s.f+c.f,l:s,r:c};l!=i-1;)s=n[n[u].f<n[d].f?u++:d++],c=n[u!=l&&n[u].f<n[d].f?u++:d++],n[l++]={s:-1,f:s.f+c.f,l:s,r:c};var f=o[0].s;for(r=1;r<i;++r)o[r].s>f&&(f=o[r].s);var h=new re(f+1),p=Ce(n[l-1],h,0);if(p>t){r=0;var v=0,g=p-t,m=1<<g;for(o.sort((function(e,t){return h[t.s]-h[e.s]||e.f-t.f}));r<i;++r){var y=o[r].s;if(!(h[y]>t))break;v+=m-(1<<p-h[y]),h[y]=t}for(v>>>=g;v>0;){var b=o[r].s;h[b]<t?v-=1<<t-h[b]++-1:++r}for(;r>=0&&v;--r){var E=o[r].s;h[E]==t&&(--h[E],++v)}p=t}return[new ne(h),p]},Ce=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},ke=function(e){for(var t=e.length;t&&!e[--t];);for(var n=new re(++t),r=0,i=e[0],o=1,a=function(e){n[r++]=e},s=1;s<=t;++s)if(e[s]==i&&s!=t)++o;else{if(!i&&o>2){for(;o>138;o-=138)a(32754);o>2&&(a(o>10?o-11<<5|28690:o-3<<5|12305),o=0)}else if(o>3){for(a(i),--o;o>6;o-=6)a(8304);o>2&&(a(o-3<<5|8208),o=0)}for(;o--;)a(i);o=1,i=e[s]}return[n.subarray(0,r),t]},Ie=function(e,t){for(var n=0,r=0;r<t.length;++r)n+=e[r]*t[r];return n},Ae=function(e,t,n){var r=n.length,i=we(t+2);e[i]=255&r,e[i+1]=r>>>8,e[i+2]=255^e[i],e[i+3]=255^e[i+1];for(var o=0;o<r;++o)e[i+o+4]=n[o];return 8*(i+4+r)},Re=function(e,t,n,r,i,o,a,s,c,u,l){Te(t,l++,n),++i[256];for(var d=Se(i,15),f=d[0],h=d[1],p=Se(o,15),v=p[0],g=p[1],m=ke(f),y=m[0],b=m[1],E=ke(v),w=E[0],T=E[1],_=new re(19),S=0;S<y.length;++S)_[31&y[S]]++;for(S=0;S<w.length;++S)_[31&w[S]]++;for(var C=Se(_,7),k=C[0],I=C[1],A=19;A>4&&!k[se[A-1]];--A);var R,L,O,D,N=u+5<<3,M=Ie(i,me)+Ie(o,ye)+a,P=Ie(i,f)+Ie(o,v)+a+14+3*A+Ie(_,k)+(2*_[16]+3*_[17]+7*_[18]);if(N<=M&&N<=P)return Ae(t,l,e.subarray(c,c+u));if(Te(t,l,1+(P<M)),l+=2,P<M){R=ge(f,h,0),L=f,O=ge(v,g,0),D=v;var x=ge(k,I,0);for(Te(t,l,b-257),Te(t,l+5,T-1),Te(t,l+10,A-4),l+=14,S=0;S<A;++S)Te(t,l+3*S,k[se[S]]);l+=3*A;for(var F=[y,w],B=0;B<2;++B){var U=F[B];for(S=0;S<U.length;++S){var H=31&U[S];Te(t,l,x[H]),l+=k[H],H>15&&(Te(t,l,U[S]>>>5&127),l+=U[S]>>>12)}}}else R=be,L=me,O=Ee,D=ye;for(S=0;S<s;++S)if(r[S]>255){H=r[S]>>>18&31,_e(t,l,R[H+257]),l+=L[H+257],H>7&&(Te(t,l,r[S]>>>23&31),l+=oe[H]);var K=31&r[S];_e(t,l,O[K]),l+=D[K],K>3&&(_e(t,l,r[S]>>>5&8191),l+=ae[K])}else _e(t,l,R[r[S]]),l+=L[r[S]];return _e(t,l,R[256]),l+L[256]},Le=new ie([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),Oe=new ne(0),De=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}(),Ne=function(e,t,n,r,i){return function(e,t,n,r,i,o){var a=e.length,s=new ne(r+a+5*(1+Math.ceil(a/7e3))+i),c=s.subarray(r,s.length-i),u=0;if(!t||a<8)for(var l=0;l<=a;l+=65535){var d=l+65535;d>=a&&(c[u>>3]=o),u=Ae(c,u+1,e.subarray(l,d))}else{for(var f=Le[t-1],h=f>>>13,p=8191&f,v=(1<<n)-1,g=new re(32768),m=new re(v+1),y=Math.ceil(n/3),b=2*y,E=function(t){return(e[t]^e[t+1]<<y^e[t+2]<<b)&v},w=new ie(25e3),T=new re(288),_=new re(32),S=0,C=0,k=(l=0,0),I=0,A=0;l<a;++l){var R=E(l),L=32767&l,O=m[R];if(g[L]=O,m[R]=L,I<=l){var D=a-l;if((S>7e3||k>24576)&&D>423){u=Re(e,c,0,w,T,_,C,k,A,l-A,u),k=S=C=0,A=l;for(var N=0;N<286;++N)T[N]=0;for(N=0;N<30;++N)_[N]=0}var M=2,P=0,x=p,F=L-O&32767;if(D>2&&R==E(l-F))for(var B=Math.min(h,D)-1,U=Math.min(32767,l),H=Math.min(258,D);F<=U&&--x&&L!=O;){if(e[l+M]==e[l+M-F]){for(var K=0;K<H&&e[l+K]==e[l+K-F];++K);if(K>M){if(M=K,P=F,K>B)break;var j=Math.min(F,K-2),q=0;for(N=0;N<j;++N){var V=l-F+N+32768&32767,W=V-g[V]+32768&32767;W>q&&(q=W,O=V)}}}F+=(L=O)-(O=g[L])+32768&32767}if(P){w[k++]=268435456|de[M]<<18|fe[P];var G=31&de[M],z=31&fe[P];C+=oe[G]+ae[z],++T[257+G],++_[z],I=l+M,++S}else w[k++]=e[l],++T[e[l]]}}u=Re(e,c,o,w,T,_,C,k,A,l-A,u),!o&&7&u&&(u=Ae(c,u+1,Oe))}return function(e,t,n){(null==t||t<0)&&(t=0),(null==n||n>e.length)&&(n=e.length);var r=new(2==e.BYTES_PER_ELEMENT?re:4==e.BYTES_PER_ELEMENT?ie:ne)(n-t);return r.set(e.subarray(t,n)),r}(s,0,r+we(u)+i)}(e,null==t.level?6:t.level,null==t.mem?Math.ceil(1.5*Math.max(8,Math.min(13,Math.log(e.length)))):12+t.mem,n,r,!i)},Me=function(e,t,n){for(;n;++t)e[t]=n,n>>>=8},Pe="undefined"!=typeof TextDecoder&&new TextDecoder;try{Pe.decode(Oe,{stream:!0})}catch(Zr){}function xe(){return"undefined"!=typeof window&&"function"==typeof window.fetch}function Fe(){try{return xe()&&"keepalive"in new Request("")}catch(e){return!1}}function Be(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,o=Object.keys(n.headers);i<o.length;i++){var a=o[i];r.setRequestHeader(a,n.headers[a])}r.send(t)}}function Ue(e){var t=e.body,n=e.keepalive,r=e.headers,i=e.compress;r["content-type"]||(r["content-type"]="text/plain;charset=UTF-8");var o=t;if(i&&"undefined"!=typeof TextEncoder)try{o=function(e,t){t||(t={});var n=function(){var e=-1;return{p:function(t){for(var n=e,r=0;r<t.length;++r)n=De[255&n^t[r]]^n>>>8;e=n},d:function(){return~e}}}(),r=e.length;n.p(e);var i=Ne(e,t,function(e){return 10+(e.filename&&e.filename.length+1||0)}(t),8),o=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&&Me(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),Me(i,o-8,n.d()),Me(i,o-4,r),i}((new TextEncoder).encode(t)),r["content-encoding"]="gzip"}catch(e){}return{body:o,keepalive:n,credentials:"include",headers:r,method:"POST",mode:"cors"}}function He(e){return e&&"message"in e?e.message:"UNKNOWN_ERROR"}var Ke,je="undefined"!=typeof navigator&&"sendBeacon"in navigator,qe=Fe()?function(e,t,n,r){return new Promise((function(i){fetch(e,Ue({body:t,keepalive:!0,headers:n,compress:r})).catch((function(){return fetch(e,Ue({body:t,keepalive:!1,headers:n,compress:r}))})).then((function(e){e.ok?i({type:"success",drop:!1,statusCode:e.status}):i({type:"response",drop:!0,statusCode:e.status,rawError:e.statusText})}),(function(e){return i({type:"network",drop:!0,rawError:He(e)})}))}))}:function(e,t,n,r){return new Promise((function(i){if(je){var o=!1;try{o=navigator.sendBeacon(e,t)}catch(e){}if(o)return void i({type:"unknown",drop:!1})}fetch(e,Ue({body:t,keepalive:!1,headers:n,compress:r})).then((function(e){e.ok?i({type:"success",drop:!1,statusCode:200}):i({type:"response",drop:!0,statusCode:e.status,rawError:e.statusText})}),(function(e){return i({type:"network",drop:!0,rawError:He(e)})}))}))};function Ve(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 We(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 o=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 o.then((function(r){return n(r.transaction(t,e).objectStore(t))}))}}function Ge(){return Ke||(Ke=We("idb-queue","default")),Ke}function ze(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++<t.batchEvictionNumber?(r=i.key,i.continue()):null!=r&&e.delete(IDBKeyRange.upperBound(r))},Ve(e.transaction)}var Xe=!1;function Je(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]:Ge();return n("readwrite",(function(n){return n.put(e),Ve(n.count()).then((function(e){if(!(e<=t.maxNumber))return ze(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]:Ge())("readwrite",(function(t){return ze(t,e)}))}(t,n)}))}function Qe(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]:Ge();return Xe?Promise.resolve():Je(e,t,n)}function Ye(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.length<e)&&t.continue())},Ve(t.transaction).then((function(){return r}))}))}function $e(){var e=arguments.length>0&&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 Ze(e){"undefined"!=typeof window&&window.__DEBUG_BEACON_TRANSPORTER&&console.debug("[beacon-transporter] ",e())}function et(e){"undefined"!=typeof window&&window.__DEBUG_BEACON_TRANSPORTER&&console.error("[beacon-transporter] ",e())}function tt(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 nt=function(){function e(t){var n=this,r=arguments.length>1&&void 0!==arguments[1]&&arguments[1];R(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,o,a,s=t.measureIDB;s&&performance.mark(s.createStartMark),this.withStore=We(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),o=t.throttleWait,a=0,{throttledFn:function(){var e=Date.now();e-a>o&&(Ze((function(){return"[throttle] Run fn() at "+String(e)})),i(),a=e)},resetThrottle:function(){a=0}})}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(){Ze((function(){return"Persisting to DB "+e.url})),Qe(e,t.config,t.withStore).then((function(){t.throttleControl.resetThrottle(),Ze((function(){return"push completed"}))})).catch((function(){t.disablePersistence=!0,et((function(){return"push failed"}))}))};this.config.useIdle?tt(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]:Ge();return Xe=!0,e("readwrite",(function(e){return e.clear(),Ve(e.transaction).finally((function(){return Xe=!1}))}))}(this.withStore).catch((function(){e.disablePersistence=!0,et((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 Ye(arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,arguments.length>1&&void 0!==arguments[1]?arguments[1]:Ge(),"next")}(t,this.withStore).catch((function(){return e.disablePersistence=!0,et((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 Ye(arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,arguments.length>1&&void 0!==arguments[1]?arguments[1]:Ge(),"prev")}(t,this.withStore).catch((function(){return e.disablePersistence=!0,et((function(){return"peekBack failed"})),[]}))}},{key:"replayEntries",value:function(){var e=this;if(!this.disablePersistence){var t=function(){Ze((function(){return"Replaying entry: shift from store"})),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.length<e)&&t.continue())},Ve(t.transaction).then((function(){return n}))}))}(arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,arguments.length>1&&void 0!==arguments[1]?arguments[1]:Ge())}(1,e.withStore).then((function(t){if(t.length>0){var n,r,i=t[0],o=i.url,a=i.body,s=i.headers,c=i.timestamp,u=i.statusCode,l=i.attemptCount;return Ze((function(){return"header: ".concat(String(e.config.headerName),"; attemptCount: ").concat(l)})),null===(n=(r=e.config).onBeforeRetry)||void 0===n||n.call(r,a),qe(o,a,$e(s,e.config.headerName,l,u),e.compress).then((function(t){if("unknown"===t.type||"success"===t.type){var n,r;null===(n=(r=e.config).onResult)||void 0===n||n.call(r,t,a),e.replayEntries()}else{var i,s,d,f,h,p;if(l+1>e.config.attemptLimit)return Ze((function(){return"Exceeded attempt count, dropping the entry: "+JSON.stringify({url:o,timestamp:c,statusCode:u},null,2)})),t.drop=!0,void(null===(i=(s=e.config).onResult)||void 0===i||i.call(s,t,a));if("network"===t.type||e.config.statusCodes.includes(t.statusCode))return t.drop=!1,null===(d=(f=e.config).onResult)||void 0===d||d.call(f,t,a),Ze((function(){return"Replaying the entry failed, pushing back to IDB: "+JSON.stringify({url:o,timestamp:c,statusCode:u},null,2)})),Qe({url:o,body:a,timestamp:c,statusCode:u,attemptCount:l+1},e.config,e.withStore);t.drop=!0,null===(h=(p=e.config).onResult)||void 0===h||h.call(p,t,a)}}))}})).catch((function(t){e.disablePersistence=!0,t&&t.message&&et((function(){return"Replay entry failed: ".concat(t.message)}))}))};this.config.useIdle?tt(t):t()}}}]),e}(),rt=function(){function e(){R(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}(),it=function(){function e(t,n){R(this,e),D(this,"queue",void 0),D(this,"beaconListeners",new Set),this.queue=e.hasSupport&&!n.disablePersistenceRetry?new nt(t,n.compress):new rt}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(it,"hasSupport","undefined"!=typeof globalThis&&!!globalThis.indexedDB);var ot=[502,504],at=[429,503],st=function(){function e(t,n,r,i){var o=this,a=arguments.length>4&&void 0!==arguments[4]&&arguments[4];R(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,"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=a,this.timestamp=Date.now(),this.onClearCallback=function(){return o.isClearQueuePending=!0}}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 qe(e.url,e.body,t,e.compress)}),n,t).finally((function(){Ze((function(){return"beacon finished"})),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:"retry",value:function(e,t,n,r){var i=this,o=this.getAttemptCount(t)-1;return e($e(n,this.config.headerName,o,r)).then((function(r){var o,a,s,c;if(r.drop=!1,"unknown"===r.type||"success"===r.type)i.isClearQueuePending||i.persistenceConfig.disabled||i.persistenceConfig.db.notifyQueue(),s=r;else if(Ze((function(){return"retry rejected "+JSON.stringify(r)})),i.shouldPersist(t,r))i.persistenceConfig.db.pushToQueue({url:i.url,body:i.body,headers:n,statusCode:r.statusCode,timestamp:i.timestamp,attemptCount:i.getAttemptCount(t)}),s={type:"persisted",drop:!1,statusCode:r.statusCode};else{if(t>0&&i.isRetryableError(r)){var u,l;null===(u=(l=i.config).onIntermediateResult)||void 0===u||u.call(l,r,i.body);var d=i.config.calculateRetryDelay(i.getAttemptCount(t),t);return Ze((function(){return"in memory retry in ".concat(d,"ms")})),(c=d,new Promise((function(e){return setTimeout(e,c)}))).then((function(){return i.retry(e,t-1,n,r.statusCode)}))}(s=r).drop=!0}return null===(o=(a=i.config).onIntermediateResult)||void 0===o||o.call(a,s,i.body),s}))}},{key:"isRetryableError",value:function(e){return!("network"!==e.type&&!this.config.statusCodes.includes(e.statusCode))}},{key:"shouldPersist",value:function(e,t){return!(this.isClearQueuePending||this.persistenceConfig.disabled||navigator.onLine&&(0!==e||"network"!==t.type)&&("response"!==t.type||!this.persistenceConfig.statusCodes.includes(t.statusCode)))}}]),e}();function ct(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=Boolean(t.compress),r=Object.assign({attemptLimit:0,statusCodes:ot,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:at,maxNumber:1e3,batchEvictionNumber:300,throttleWait:3e5},t.persistenceRetry);i.headerName=i.headerName||r.headerName,e=new it(i,{compress:t.compress,disablePersistenceRetry:t.disablePersistenceRetry})}return{beacon:function(i,o,a){var s;return xe()?new st(i,o,r,{db:e,disabled:Boolean(t.disablePersistenceRetry),statusCodes:(null===(s=t.persistenceRetry)||void 0===s?void 0:s.statusCodes)||at},n).send(a):Promise.resolve({type:"unknown",drop:!0})},database:e}}var ut="internal:hide",lt="internal:error";function dt(e,t,n){var r=e.get(t);r&&r.push(n)||e.set(t,[n])}function ft(e,t,n){var r=e.get(t);r&&r.splice(r.indexOf(n)>>>0,1)}var ht,pt,vt=(ht=new Map,pt=new Map,{on:function(e,t){dt(ht,e,t)},before:function(e,t){dt(pt,e,t)},off:function(e,t){ft(ht,e,t)},offBefore:function(e,t){ft(pt,e,t)},emit:function(e,t){(pt.get(e)||[]).concat(ht.get(e)||[]).slice().map((function(e){e(t)}))},clear:function(){pt.clear(),ht.clear()}});if("undefined"!=typeof document&&"undefined"!=typeof window){var gt=function(e){"pagehide"!==e.type&&"hidden"!==document.visibilityState||vt.emit(ut,e)};document.addEventListener("visibilitychange",gt),window.addEventListener("pagehide",gt)}var mt,yt="https://www.linkedin.com/",bt="https://www.linkedin-ei.com/",Et="voyager.web.tracking-enable-observability",wt="enabled",Tt="rest/trackingApiService/track",_t="voyager.web.tracking-grpc-rest-integration";!function(e){e.HighPriorityTransporter="hp",e.DefaultPriorityTransporter="dp"}(mt||(mt={}));var St={hp:2,dp:30},Ct=null;if(("undefined"==typeof crypto||!crypto.getRandomValues)&&"undefined"!=typeof require){var kt=("undefined"!=typeof FastBoot?FastBoot.require:require)("crypto");if(kt){var It=new Uint8Array(256),At=It.length;Ct={rng:function(){return At>It.length-16&&(kt.randomFillSync(It),At=0),It.slice(At,At+=16)}}}}"object"===("undefined"==typeof crypto?"undefined":A(crypto))&&crypto.randomUUID;function Rt(){return Z(Ct,new Array(16),0)}function Lt(e){return C(e).map((function(e){return String.fromCharCode(e)})).join("")}function Ot(){return Lt(Rt())}var Dt=/^[a-zA-Z0-9/+]+[=]+$/;function Nt(){return function(e){for(var t,n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",r=[],i=0,o=e.length,a=o%3,s=o-a;i<s;)t=e[i]<<16,t|=e[i+1]<<8,t|=e[i+2],r.push(n.charAt(t>>>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(a){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("")}(Rt())}function Mt(e,t){return{pageUrn:xt(e),trackingId:t||Nt()}}function Pt(e,t){return"urn:li:control:".concat(e,"-").concat(t)}function xt(e){return"urn:li:page:".concat(e)}function Ft(e){var t=decodeURIComponent(e).split(";");if(t.length>1)return{pageUrn:t[0],trackingId:t[1]}}function Bt(e,t){return{pageInstance:t.assign({},e.pageInstance),pageKey:e.pageKey,applicationInstance:e.applicationInstance}}new RegExp("[?&]lipi=([^&#]*)"),new RegExp("[?&]licu=([^&#]*)");function Ut(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 Ht(e){var t=[];return e.forEach((function(e){return t.push(e)})),t}function Kt(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(o,a){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 o(r);if("update"!==e)return o(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 o(null)},f.onerror=function(){a(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 o(0)},p.onerror=function(){a(p.error)}}},l.onerror=function(){return s.close(),a(new Error("Error: get sequence number from indexedDB ".concat(String(l.error))))},c.oncomplete=function(){return s.close()}},r.onerror=function(){return o(null)}}))}return Promise.resolve(null)}function jt(){return"undefined"!=typeof navigator&&navigator.userAgent.toLowerCase().indexOf("firefox")>-1||!xe()||"undefined"==typeof Promise}function qt(e,t,n,r){var i=["core-web-tracking:".concat(e)];null==r||r.forEach((function(e){return i.push(e)})),vt.emit(lt,{tags:i,reason:t instanceof Error?t:new Error("".concat(e,": ").concat(t)),responseHeaders:n})}function Vt(e){var t=window.structuredClone;return t?t(e):JSON.parse(JSON.stringify(e))}var Wt=function(){function e(t){R(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=C(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+1<this.heap.length;){var i=2*r+1,o=2*r+2,a=o<this.heap.length&&this.comparator(this.heap[o],this.heap[i])?o:i;if(!this.comparator(this.heap[a],this.heap[r]))break;var s=[this.heap[r],this.heap[a]];this.heap[a]=s[0],this.heap[r]=s[1],r=a}return n}},{key:"heapPush",value:function(e){this.heap.push(e);for(var t=this.heap.length-1;t>0;){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 Gt=function(e){if(!Jt(e))return[];for(var t=[],n=0,r=Object.keys(e);n<r.length;n++){var i=r[n];"default"!==i&&t.push(i)}return t},zt=function(e,t){var n={},r=[];if(0===e.length)return[n,e];if(0===t.length)return[n,e];var o,a=S(e);try{for(a.s();!(o=a.n()).done;){var s=o.value,c=s.transporterKeys,u=_(s,i);if(c&&c.length>0){var l,d=S(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){a.e(e)}finally{a.f()}return[n,r]};function Xt(e){return!(!e||"control"===e)}var Jt=function(e){return e&&void 0!==e&&Object.keys(e).length>0},Qt=function(e,t){return(e.endsWith("/")?e:"".concat(e,"/"))+(t.startsWith("/")?t.slice(1):t)},Yt="beacons";function $t(e){return 1e3*Math.pow(2,e)}function Zt(){if("undefined"==typeof Promise||"undefined"==typeof navigator)return!1;var e=navigator.userAgent.indexOf("Chrome")>-1,t=navigator.cookieEnabled,n=navigator.storage;return e&&Fe()&&t&&n}var en=function(){function e(t){R(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&&Zt()&&navigator.storage.estimate().then((function(o){if(!((o.quota||0)-(o.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)}}))}(Yt);var a,s,c=null!==(a=e.retryConfig.inMemory)&&void 0!==a?a:{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 $t(e)}},disablePersistenceRetry:e.retryConfig.disablePersistence,persistenceRetry:{onBeforeRetry:null==i?void 0:i.onBeforeRetry,onResult:null==i?void 0:i.onResult,idbName:Yt,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=ct(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){qt("retry:idb",e)})):(e.retryBeacon.shouldRetry=!0,Promise.resolve())):void 0})).catch((function(e){qt("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){qt("retry:logout",e)}))}},{key:"sendPayload",value:function(e,t,n,r){var i,o=this.getRetryTreatment();Fe()&&"control"!==o&&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){qt("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)&&(jt()?Be(e,JSON.stringify(t),{headers:n}):qe(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&&Zt()&&"undefined"!=typeof globalThis&&!!globalThis.indexedDB}}]),e}(),tn="undefined"!=typeof window&&"undefined"!=typeof document,nn=/JSESSIONID="?([^";]+)"?/,rn="",on=0;function an(){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?nn:r;if(!rn||Date.now()-on>n){var o=tn&&document.cookie.match(i);rn=o&&o[1]||"",on=Date.now()}return rn}var sn={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"}},cn=function(){function e(t){R(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 en(t),this.mpName=t.appId,this.inactive=t.inactive;var n=function(e){var t,n=!1;return sn.prod.pattern.test(e)?t=sn.prod.monitorEndpoint:sn.eiValidate.pattern.test(e)?(n=!0,t=sn.eiValidate.monitorEndpoint):sn.ei.pattern.test(e)?t=sn.ei.monitorEndpoint:(t=sn.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":an(),"x-restli-protocol-version":"2.0.0"},r=[],i=null!==(t=null==e?void 0:e.stats)&&void 0!==t?t:{},o=i.failures,a=i.previousInstanceEventStats.reduce((function(e,t){return e.push.apply(e,C(t.failures)),e}),[]);[].concat(C(o),C(a)).forEach((function(e){var t=e.reason,n=e.rawError,i=e.eventTopic,o=e.header,a=e.requestHeader;r.push({reason:t,rawError:n,failedTopicName:i,header:o,requestHeader:a})}));var s={clientTrackingFailures:r,debug:this.debug};this.networkTransporter.sendPayload(this.endpoint,s,n)}}}]),e}();function un(e){return"string"==typeof e}function ln(e){return un(e)?e:e.topicName||e.eventName}function dn(e){return un(e)?e:e.eventName}var fn,hn,pn=function(){function e(t){var n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};R(this,e),D(this,"host",void 0),D(this,"cmoTransporter",void 0),D(this,"clientMonitoringInstanceId",Ot()),D(this,"currentContext",{pageKey:P,pageInstance:Mt(P)}),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 cn(t),this.fragmentSizeLimit=(null===(n=t.clientMonitoringConfig)||void 0===n?void 0:n.fragmentSizeLimit)||10240,this.activeFragmentEvent=gn(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=S(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 o=this.getEventHeaders(),a=o.header,s=o.requestHeader,c={header:Object.assign(a,{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(),o=this.getEventHeaders(),a=o.header,s=o.requestHeader,c={header:Object.assign(a,{memberId:-1}),requestHeader:s,instanceId:i,instanceEventNumber:r,reason:e,rawError:n,eventName:dn(t),eventTopic:ln(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=gn(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=mn(e.trackingId));var t=this.currentContext.pageInstance;return t.trackingId=mn(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:Ot(),memberId:0}}}}]),e}();function vn(e){return fn||(fn=new pn(e)),{getCurrentInstanceId:function(){return fn.getCurrentInstanceId()},logEventGenerated:function(e){return fn.logEventGenerated(e)},logEventReadyToSend:function(e){fn.logEventReadyToSend(e)},logEventSent:function(e){fn.logEventSent(e)},logPersistedEventSent:function(e,t){fn.logEventSent(t,e)},logNetworkResponseCode:function(e){fn.logNetworkResponseCode(e)},logPersistedNetworkResponseCode:function(e,t){var n;null===(n=fn)||void 0===n||n.logNetworkResponseCode(t,e)},logFailedEvent:function(e,t,n,r){fn.logFailedEvent(e,t,n,r)},logPersistedFailedEvent:function(e,t,n,r,i){fn.logFailedEvent(t,n,r,i,e)},flush:function(){fn.flush()},destroy:function(){fn=void 0},isDestroyed:function(){return void 0===fn},setCurrentContext:function(e){fn.setCurrentContext(e)},updateAppState:function(e){fn.updateAppState(e)}}}function gn(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 mn(e){return Array.isArray(e)?Lt(e):16===e.length?e:function(e){return"string"==typeof e&&!!e.match(Dt)}(e)?atob(e):Lt(function(e){return q(e)}(e))}function yn(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"}(hn||(hn={}));var bn="default",En=function(){function e(){R(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:[500]}}},{key:"getDefaultPersistConfig",value:function(){return{attemptLimit:3,statusCodes:[500],maxNumber:1e3,batchEvictionNumber:300,throttleWait:3e5}}},{key:"createTelemetryMetricsBeacon",value:function(){var e=this.getDefaultInMemoryConfig(),t=this.getDefaultPersistConfig();return ct({compress:!0,inMemoryRetry:{attemptLimit:e.attemptLimit,statusCodes:e.statusCodes,calculateRetryDelay:function(e){return $t(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(En,"instance",null);var wn=function(){function e(){R(this,e),D(this,"config",void 0),D(this,"observePath","li/observe"),this.config={endpoint:"".concat(yt,"li/observe"),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(e){var t=e||"development"===e?bt:yt;this.config.endpoint="".concat(t).concat(this.observePath)}}],[{key:"getInstance",value:function(){return e.instance||(e.instance=new e),e.instance}}]),e}();D(wn,"instance",void 0);var Tn=function(){function e(){R(this,e)}return O(e,null,[{key:"buildTrackingSdkEventMetric",value:function(e,t,n){return{attributes:[{key:"EventName",value:{value:{stringValue:e.eventName}}},{key:"ViewName",value:{value:{stringValue:e.viewName}}},{key:"Platform",value:{value:{stringValue:n}}},{key:"TransportKey",value:{value:{stringValue:e.transportKey}}},{key:"AppId",value:{value:{stringValue:t}}}],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()}}}]),e}(),_n=function(){function e(){R(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=wn.getInstance().getConfig();this.endpoint=t.endpoint,this.beaconFunc=En.getInstance().getOrCreateBeaconFunc()}return O(e,[{key:"generateId",value:function(e,t,n){return"".concat(e,"_").concat(t,"_").concat(n)}},{key:"incrementEventReceived",value:function(e,t,n){this.mutate(e,t,n,"receivedCount")}},{key:"incrementEventDropped",value:function(e,t,n,r){var i=this.calculateLatency(r);this.mutate(e,t,n,"droppedCount",i,void 0)}},{key:"incrementEventSynced",value:function(e,t,n,r){var i=this.calculateLatency(r);this.mutate(e,t,n,"syncedCount",i,void 0)}},{key:"calculateLatency",value:function(e){var t=void 0;return null!=e&&0!==e&&(t=Date.now()-e),t}},{key:"incrementEventRetried",value:function(e,t,n){this.mutate(e,t,n,void 0,void 0,1)}},{key:"mutate",value:function(e,t,n,r,i,o){var a=this.generateId(e,t,n),s=this.localCounterMap.get(a);s||(s={eventName:e,viewName:t,transportKey:n,receivedCount:0,droppedCount:0,syncedCount:0,latencies:[],retries:[]},this.localCounterMap.set(a,s)),null!=r&&(s[r]+=1),void 0!==i&&s.latencies.push(i),void 0!==o&&s.retries.push(o),this.attemptToFlush()}},{key:"buildMetricsPayload",value:function(e){var t,n=[],r=wn.getInstance().getConfig(),i=r.appId,o=r.platform,a=S(e);try{for(a.s();!(t=a.n()).done;){var s=t.value;try{var c=Tn.buildTrackingSdkEventMetric(s,i,o);n.push(c)}catch(e){console.error("Error converting metric [".concat(JSON.stringify(s),"] - [").concat("EC101","]:"),e)}}}catch(e){a.e(e)}finally{a.f()}return n}},{key:"attemptToFlush",value:function(){var e=this;this.localCounterMap.size>=10?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(T(E().mark((function t(){var n,r;return E().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),t.prev=5,t.next=8,e.beaconFunc(e.endpoint,JSON.stringify(r));case 8:t.next=13;break;case 10:t.prev=10,t.t0=t.catch(5),console.error("Error - [".concat("EC102","]"));case 13:case"end":return t.stop()}}),t,null,[[5,10]])}))))}},{key:"forceFlush",value:function(){this.flushMetrics()}}]),e}(),Sn=new Set(["GenericImpressionEvent","GenericActionEvent","GenericMultipleImpressionEvent","GenericMediaStateChangeEvent"]);function Cn(e){try{return JSON.parse(e||"[]").map(kn)}catch(e){return[]}}function kn(e){var t,n,r,i,o=e.eventInfo,a=null!==(t=null===(n=e.eventBody)||void 0===n||null===(n=n.header)||void 0===n||null===(n=n.viewHierarchy)||void 0===n?void 0:n[0])&&void 0!==t?t:"-",s=null!==(r=null===(i=e.eventBody)||void 0===i||null===(i=i.header)||void 0===i?void 0:i.time)&&void 0!==r?r:Date.now();return{eventName:o.eventName,viewName:a,enqueuedTime:s}}var In=function(){function e(){R(this,e),D(this,"metricsManager",void 0),this.metricsManager=new _n}return O(e,[{key:"onEventReceived",value:function(e){var t=this;this.executeWithTryCatch((function(){var n,r,i=dn(e.id);if(t.isTelemetryEnabledForEventName(i)){var o=(null===(n=e.meta.header)||void 0===n||null===(n=n.viewHierarchy)||void 0===n?void 0:n[0])||"-",a=e.meta.transporterKey||bn;null===(r=t.metricsManager)||void 0===r||r.incrementEventReceived(i,o,a)}}))}},{key:"onEventRetried",value:function(e,t,n){var r=this;this.executeWithTryCatch((function(){var i;r.isTelemetryEnabledForEventName(e)&&(null===(i=r.metricsManager)||void 0===i||i.incrementEventRetried(e,t||"-",n||bn))}))}},{key:"onEventSynced",value:function(e,t,n,r){var i=this;this.executeWithTryCatch((function(){var o;i.isTelemetryEnabledForEventName(e)&&(null===(o=i.metricsManager)||void 0===o||o.incrementEventSynced(e,t||"-",n||bn,r))}))}},{key:"onEventDropped",value:function(e,t,n,r){var i=this;this.executeWithTryCatch((function(){var o;i.isTelemetryEnabledForEventName(e)&&(null===(o=i.metricsManager)||void 0===o||o.incrementEventDropped(e,t||"-",n||bn,r))}))}},{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=Cn(r);t.handleResult(n,i,e)},onBeforeRetry:function(n){Cn(n).forEach((function(n){var r=n.eventName,i=n.viewName;t.onEventRetried(r,i,e)}))},onResult:function(n,r){var i=Cn(r);t.handleResult(n,i,e)}}}},{key:"clientMonitoringCallbackHook",value:function(e){var t=this;return{onResult:function(n,r){var i=r.map(kn);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.viewName,o=e.enqueuedTime;r.onEventSynced(t,i,n,o)})):e.drop&&t.forEach((function(e){var t=e.eventName,i=e.viewName,o=e.enqueuedTime;r.onEventDropped(t,i,n,o)}))}},{key:"isTelemetryEnabledForEventName",value:function(e){return!!e&&function(e){return Sn.has(e)}(e)}},{key:"executeWithTryCatch",value:function(e){try{return e()}catch(e){return}}}],[{key:"getInstance",value:function(t){if(!e.instance){var n=wn.getInstance();n.setAppId(t.appId),n.setEnvironment(t.environment),e.instance=new e}return e.instance}}]),e}();D(In,"instance",void 0);var An=function(){function e(){R(this,e),D(this,"config",void 0),this.config={endpoint:"".concat(yt).concat(Tt),batchSize:6,flushDebounceTimer:3e3}}return O(e,[{key:"getConfig",value:function(){return this.config}},{key:"setBatchSize",value:function(e){this.config.batchSize=e}},{key:"setFlushDebounceTimer",value:function(e){this.config.flushDebounceTimer=e}},{key:"setEndpoint",value:function(e){var t=e.environment,n=e.path,r=t||"development"===t?bt:yt;this.config.endpoint="".concat(r).concat(n)}}],[{key:"getInstance",value:function(){return e.instance||(e.instance=new e),e.instance}}]),e}();D(An,"instance",void 0);var Rn=function(){function e(){R(this,e),D(this,"clientContext",void 0)}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,o=e.service,a=e.version;try{if(n){var s=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,C(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:s}}}return{server:i,serviceName:o,publicAppVersion:a,clientApplicationInstance:t,applicationViewerUrn:r}}catch(t){qt("Server Name ".concat(e.server," and trackingId for same ").concat(null==n?void 0:n.trackingId," "),t)}}},{key:"getUserRequestHeaderContext",value:function(e){var t=e.theme,n=e.interfaceLocale,r=e.isBrowserPersistentRetryEnabled,i=e.isFlushOnCloseBrowserTabEnabled;return{theme:t?"Theme_".concat(t):void 0,interfaceLocale:n,isBrowserPersistentRetryEnabled:r,isFlushOnCloseBrowserTabEnabled:i}}},{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(Rn,"instance",void 0);var Ln,On=new Set(["FeedImpressionEvent","FeedActionEvent"]);function Dn(e){return On.has(e)}function Nn(e,t){return!(!e||"enabled"!==(null==t?void 0:t(e)))}function Mn(e,t){return!(!e||"dual"!==(null==t?void 0:t(e)))}!function(e){e.FeedActionEvent="com.linkedin.events.feed.FeedActionEvent",e.FeedImpressionEvent="com.linkedin.events.feed.FeedImpressionEvent"}(Ln||(Ln={}));var Pn=function(){function e(){R(this,e),D(this,"GrpcRestRetryIDB","grpcRestBeacons"),D(this,"beaconFunc",void 0)}return O(e,[{key:"getOrCreateBeaconFunc",value:function(){return this.beaconFunc||(this.beaconFunc=this.createGrpcRestBeacon()),this.beaconFunc}},{key:"getDefaultInMemoryConfig",value:function(){return{attemptLimit:4,statusCodes:[502,504]}}},{key:"getDefaultPersistConfig",value:function(){return{attemptLimit:3,statusCodes:[401,403,404,405,406,407,408,409,413,429,431,500,501,502,503,504,505,506,507,508,509,510,511],maxNumber:1e3,batchEvictionNumber:300,throttleWait:3e5}}},{key:"createGrpcRestBeacon",value:function(){var e=this.getDefaultInMemoryConfig(),t=this.getDefaultPersistConfig();return ct({compress:!0,inMemoryRetry:{attemptLimit:e.attemptLimit,statusCodes:e.statusCodes,calculateRetryDelay:function(e){return $t(e)}},disablePersistenceRetry:!1,persistenceRetry:{idbName:this.GrpcRestRetryIDB,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(Pn,"instance",null);var xn=function(){function e(t){R(this,e),D(this,"endpoint",void 0),D(this,"flushDebounceTimer",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,"inDualMode",void 0);var n=An.getInstance().getConfig();this.endpoint=n.endpoint,this.beaconFunc=Pn.getInstance().getOrCreateBeaconFunc(),this.inDualMode=t}return O(e,[{key:"convertJsonToBytes",value:function(e){var t=JSON.stringify(e);return(new TextEncoder).encode(t)}},{key:"convertBytesToBase64",value:function(e){var t=String.fromCharCode.apply(String,C(e));return btoa(t)}},{key:"packageEventBody",value:function(e){try{var t=e.eventBody,n=e.eventInfo;if(!this.clientContext){var r=Object.assign({},t.header),i=Object.assign({},t.requestHeader);this.clientContext=Rn.getInstance().getOrCreateClientContext(r,i)}var o=n.eventName,a=this.convertJsonToBytes(t),s=this.convertBytesToBase64(a),c={name:Ln[o],payload:s};return{id:this.requestId++,payload:c,topicOverride:this.inDualMode?"".concat(o,"_GRPC_Shadow"):o}}catch(e){qt("Error while packing the event with requestId ".concat(this.requestId),e)}}},{key:"packageRequest",value:function(e){var t=this.packageEventBody(e);t&&Jt(t)&&(this.queue.push(t),this.attemptToFlush())}},{key:"buildRequestPayload",value:function(e){var t={clientContext:this.clientContext,requests:e};return JSON.stringify(t)}},{key:"attemptToFlush",value:function(){var e=this;this.queue.length>=6?this.flushEvents():(this.flushDebounceTimer&&clearTimeout(this.flushDebounceTimer),this.flushDebounceTimer=setTimeout((function(){return e.flushEvents()}),3e3))}},{key:"flushEvents",value:function(){var e=this;this.flushPromise=this.flushPromise.then(T(E().mark((function t(){var n,r,i;return E().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=C(e.queue),e.queue=[],r={"content-type":"application/json",Accept:"application/json"};try{i=e.buildRequestPayload(n),jt()?Be(e.endpoint,i,{headers:r}):Fe()&&e.beaconFunc(e.endpoint,i,r)}catch(e){qt("Server Error while flushing events in rest-transporter:",JSON.stringify(e))}case 6:case"end":return t.stop()}}),t)}))))}},{key:"forceFlush",value:function(){this.flushEvents()}}]),e}(),Fn=function(){function e(t,n,r){R(this,e),D(this,"requestManager",void 0);var i=An.getInstance();i.setEndpoint({environment:t.environment,path:Tt}),i.setBatchSize(St[n]||6),this.requestManager=new xn(r)}return O(e,[{key:"onEventReceived",value:function(e){var t=this;this.executeWithTryCatch((function(){var n,r=dn(null==e?void 0:e.eventInfo.eventName);r&&t.isGrpcRestEnabledForEventName(r)&&(null===(n=t.requestManager)||void 0===n||n.packageRequest(e))}))}},{key:"forceFlush",value:function(){var e;null===(e=this.requestManager)||void 0===e||e.forceFlush()}},{key:"onDestroy",value:function(){this.requestManager=void 0}},{key:"isGrpcRestEnabledForEventName",value:function(e){return!!e&&Dn(e)}},{key:"executeWithTryCatch",value:function(e){try{return e()}catch(e){qt("Rest transporter failed",JSON.stringify(e))}}}],[{key:"getInstance",value:function(t,n,r){var i=this.transporterMap.get(n);return i||(i=new e(t,n,r),this.transporterMap.set(n,i),i)}}]),e}();D(Fn,"transporterMap",new Map);var Bn=["PageViewEvent","SponsoredImpressionEvent","JobViewEvent"],Un="PageViewEvent",Hn=function(){function e(t){var n,r,i,o,a=this;R(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(){a.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,"defaultPriorityTransporter",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";if(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,vt.on(ut,this.onHideHandler),this.networkTransporter=new en(t),this.isLixEnabled("pemberly.tracking.monitoring")&&t.clientMonitoringConfig&&!t.inactive&&(this.clientMonitoringConn=vn(t)),this.getSequenceNumberFromIDB(),this.updateSequenceNumberOnExit(),this.isTimerRunning=!1,this.isEvenBatchEnabled=this.isLixEnabled("pemberly.tracking.even-batch")||c,(t.observabilityEnabled||(null===(o=t.__getLixTreatment)||void 0===o?void 0:o.call(t,Et))===wt)&&(this.telemetry=In.getInstance(t)),Nn(_t,t.__getLixTreatment)||Mn(_t,t.__getLixTreatment)){var l=Mn(_t,t.__getLixTreatment);this.defaultPriorityTransporter=Fn.getInstance(t,mt.DefaultPriorityTransporter,l)}}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,o=n.eventInfo.topicName||i,a="rawError"in e?e.rawError:"null",s=["type: ".concat(e.type),"statusCode: ".concat(e.statusCode||"null"),"drop: ".concat(String(e.drop)),"rawError: ".concat(a)].join(", ");t.logFailedEvent(hn.UNKNOWN_EXECUTION_ERROR,{eventName:i,topicName:o},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,o=n.eventInfo.topicName||r,a="rawError"in e?e.rawError:"null",s=["type: ".concat(e.type),"statusCode: ".concat(e.statusCode||"null"),"drop: ".concat(String(e.drop)),"rawError: ".concat(a)].join(", ");t.logPersistedFailedEvent(i,hn.UNKNOWN_EXECUTION_ERROR,{eventName:r,topicName:o},s,n.eventBody.header.clientMonitoringInstanceEventNumber)}))}catch(e){}}});this.telemetry&&(r=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return{onIntermediateResult:function(e,n){for(var r=0,i=t;r<i.length;r++){var o=i[r];try{var a;null==o||null===(a=o.onIntermediateResult)||void 0===a||a.call(o,e,n)}catch(e){yn("onIntermediateResult")}}},onBeforeRetry:function(e){for(var n=0,r=t;n<r.length;n++){var i=r[n];try{var o;null==i||null===(o=i.onBeforeRetry)||void 0===o||o.call(i,e)}catch(e){yn("onBeforeRetry")}}},onResult:function(e,n){for(var r=0,i=t;r<i.length;r++){var o=i[r];try{var a;null==o||null===(a=o.onResult)||void 0===a||a.call(o,e,n)}catch(e){yn("onResult")}}}}}(r,null===(n=this.telemetry)||void 0===n?void 0:n.onResultCallbackHook(this.transportKey))),this.networkTransporter.checkAndEnablePersistentRetry(e,r)}},{key:"setTransportKey",value:function(e){this.transportKey=e}},{key:"clearPersistedEventsOnLogout",value:function(){return this.networkTransporter.clearPersistedEventsOnLogout()}},{key:"on",value:function(e){this.trackingEventListeners.push(e)}},{key:"fireEvent",value:function(e){var t=function(e){return e.meta.time=Date.now(),e}(e);this.clientMonitoringConn&&(t.meta.clientMonitoringInstanceId=this.clientMonitoringConn.getCurrentInstanceId(),t.meta.clientMonitoringInstanceEventNumber=this.clientMonitoringConn.logEventGenerated(ln(e.id)));var n=this.host,r=n.api.Promise,i=n.batching;if(function(e){return!!e.meta.context}(t)){var o,a,s=this.prepareCompleteEnvelopeQueue(t);return null===(o=this.clientMonitoringConn)||void 0===o||o.logEventReadyToSend(1),null===(a=this.telemetry)||void 0===a||a.onEventReceived(s),this.queue.push(s),i?(this.batchFire(),r.resolve(!0)):(this.flush(!0),r.resolve(!0))}return this.preContextQueue.push(t),r.resolve(!0)}},{key:"callOnDestroy",value:function(e){this.unloadHandlers.push(e)}},{key:"destroy",value:function(){var e,t,n;this.unloadHandlers.forEach((function(e){return e()})),this.forceFlush(),this.trackingEventListeners=[],this.clientMonitoringConn=void 0,vt.off(ut,this.onHideHandler),null!==(e=this.host)&&void 0!==e&&e.__getLixTreatment&&(this.host.__getLixTreatment=void 0),null!==(t=this.host)&&void 0!==t&&null!==(t=t.api)&&void 0!==t&&t.location&&(this.host.api.location=null===(n=window)||void 0===n?void 0:n.location)}},{key:"forceFlush",value:function(){var e,t,n=this,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;this.populatePreContextQueue({pageInstance:Mt(P),pageKey:P}).forEach((function(e){var t;n.queue.push(e),null===(t=n.telemetry)||void 0===t||t.onEventReceived(e)})),this.isEvenBatchEnabled?1===r?this.sendPayload(void 0,!0):this.sendPayload():this.flush(!0),1===r&&(null===(e=this.telemetry)||void 0===e||e.forceFlush(),null===(t=this.defaultPriorityTransporter)||void 0===t||t.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;Kt("read").then((function(t){var n;e.clientGlobalSequenceNumberCounter=null!==(n=null==t?void 0:t.sequenceNumber)&&void 0!==n?n:0,Bn.forEach((function(n){var r;e.clientTopicLocalSequenceNumberCountersMap[n]=null!==(r=null==t?void 0:t[n])&&void 0!==r?r:0}))})).catch((function(e){qt("sequence-number:idb-read",e)}))}},{key:"updateSequenceNumberToIDB",value:function(){Kt("update",this.clientGlobalSequenceNumberCounter,this.clientTopicLocalSequenceNumberCountersMap).catch((function(e){qt("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=Bt(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,o=r.api,a={eventBody:t,eventInfo:"string"==typeof e?{appId:i,eventName:e,topicName:e}:o.assign({appId:i},e)};return n.length>0&&this.host.api.assign(a,{clientBreadcrumbs:n}),a}},{key:"getBreadcrumbs",value:function(e){return e.clientBreadcrumbs||[]}},{key:"getGenericEventBody",value:function(e){var t,n=this.host,r=n.appVersion,i=n.locale,o=n.api,a=o.location,s=o.document,c=o.assign,u=e.meta.context,l=u.pageKey,d=u.pageInstance,f=function(e){return"string"==typeof e?e===Un:e.eventName===Un}(e.id)&&(null===(t=e.body.requestHeader)||void 0===t?void 0:t.pageKey)||l,h=e.meta.requestHeader||{referer:s.referrer,path:"".concat(a.pathname).concat(a.search)},p=h.referer,v=h.path,g=null;"string"!=typeof i&&null!==this.host.locale||(g=i);var m,y={interfaceLocale:g,pageKey:f,referer:p,path:v,isFlushOnCloseBrowserTabEnabled:!jt()&&(Fe()||"undefined"!=typeof navigator&&"sendBeacon"in navigator),isBrowserPersistentRetryEnabled:this.networkTransporter.isBrowserPersistentRetryEnabled(),clientDeviceType:"DESKTOP",timeZoneOffsetMinutes:-1*(new Date).getTimezoneOffset()};Mn(_t,this.host.__getLixTreatment)&&Dn(dn(null==e?void 0:e.id))&&(m=Nt());var b={pageInstance:d,time:e.meta.time,version:r,server:"",service:"",guid:Nt(),memberId:0};"number"==typeof this.clientGlobalSequenceNumberCounter&&c(b,{clientGlobalSequenceNumber:this.clientGlobalSequenceNumberCounter});var E=ln(e.id);if(Bn.includes(E)){var w=this.clientTopicLocalSequenceNumberCountersMap[E];"number"==typeof w&&c(b,{clientTopicLocalSequenceNumber:w})}var T=e.meta.header||{},_={header:c(b,T,{testId:T.testId||m}),requestHeader:c(y,e.meta.requestHeader||{})},S=e.meta.clientMonitoringInstanceId,C=e.meta.clientMonitoringInstanceEventNumber;return S&&c(_.header,{clientMonitoringInstanceId:S,clientMonitoringInstanceEventNumber:C}),c(e.body,_)}},{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 o,a,s,c=[],u=[];if(t.forEach((function(e){var t,r=n.getGenericEventBody(e),i=n.getBreadcrumbs(e),o=n.envelop(e.id,r,i);n.trigger(o,e.meta),n.defaultPriorityTransporter&&(null===(t=n.defaultPriorityTransporter)||void 0===t||t.onEventReceived(o));var a=o.eventInfo.eventName;Nn(_t,n.host.__getLixTreatment)&&Dn(e.id)||("LixTreatmentsEvent"===a||"JavaScriptErrorEvent"===a?c.push(o):u.push(o)),"number"==typeof n.clientGlobalSequenceNumberCounter&&n.clientGlobalSequenceNumberCounter++;var s=ln(e.id);Bn.includes(s)&&"number"==typeof n.clientTopicLocalSequenceNumberCountersMap[s]&&n.clientTopicLocalSequenceNumberCountersMap[s]++})),!this.host.inactive)this.clientMonitoringConn&&(this.clientMonitoringConn.logEventSent(c.length+u.length),o=this.clientMonitoringConn,a={onResult:function(e,t){o&&!o.isDestroyed()&&(e.statusCode&&o.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",a=["type: ".concat(e.type),"statusCode: ".concat(e.statusCode||"null"),"drop: ".concat(String(e.drop)),"rawError: ".concat(i)].join(", ");null==o||o.logFailedEvent(hn.UNKNOWN_EXECUTION_ERROR,{eventName:n,topicName:r},a,t.eventBody.header.clientMonitoringInstanceEventNumber||-1)})))}}),this.telemetry&&(a=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return{onResult:function(e,n){t.forEach((function(t){try{null==t||t.onResult(e,n)}catch(e){yn("onResult")}}))}}}(a,null===(s=this.telemetry)||void 0===s?void 0:s.clientMonitoringCallbackHook(this.transportKey))),this.networkTransporter.sendPayloadFireForget(this.trackingEndpoint,c,void 0,a),this.networkTransporter.sendPayload(this.trackingEndpoint,u,void 0,a)}}},{key:"getTrackingEndpoint",value:function(){return this.trackingEndpoint}}]),e}();var Kn,jn=function(){function e(t,n){R(this,e),this.clientBreadcrumbType=t,this.id=n}return O(e,[{key:"builder",get:function(){return function(){var e={},t=new Proxy({},{get:function(n,r){return"build"===r?function(){return e}:function(n){return e[r.toString()]=n,t}}});return t}().id(this.id).clientBreadcrumbType(this.clientBreadcrumbType)}}],[{key:"toPointer",value:function(e){return{id:e.id,type:e.clientBreadcrumbType}}}]),e}();!function(e){e.FEED_UPDATE_SERVED="FEED_UPDATE_SERVED",e.GUIDE_ENTRYPOINT="GUIDE_ENTRYPOINT",e.GUIDE_FEEDBACK="GUIDE_FEEDBACK",e.JOB_VIEW="JOB_VIEW",e.MEDIA="MEDIA",e.MESSAGE_SEND_CLIENT_FAILURE="MESSAGE_SEND_CLIENT_FAILURE",e.MESSAGE_SEND_CLIENT_SUCCESS="MESSAGE_SEND_CLIENT_SUCCESS",e.MESSAGE_SEND_FUNNEL="MESSAGE_SEND_FUNNEL",e.ME_NOTIFICATION="ME_NOTIFICATION",e.ME_NOTIFICATION_ACTION="ME_NOTIFICATION_ACTION",e.SPONSORED_DOCUMENT_PAGE_SERVED="SPONSORED_DOCUMENT_PAGE_SERVED",e.SPONSORED_UPDATE_SERVED="SPONSORED_UPDATE_SERVED",e.SPONSORED_VIDEO_VIEW="SPONSORED_VIDEO_VIEW",e.UNKNOWN="UNKNOWN"}(Kn||(Kn={}));var qn=function(e){function t(){return R(this,t),v(this,t,[Kn.FEED_UPDATE_SERVED,Ot()])}return y(t,jn),O(t)}(),Vn=function(e){function t(){var e;return R(this,t),D(g(e=v(this,t,[Kn.UNKNOWN,Ot()])),"content",void 0),D(g(e),"featureBreadcrumbType",void 0),e}return y(t,jn),O(t)}(),Wn=function(e){function t(){return R(this,t),v(this,t,[Kn.SPONSORED_UPDATE_SERVED,Ot()])}return y(t,jn),O(t)}();function Gn(e,t){var n;switch(t){case"proto.sdui.breadcrumbs.feed.FeedUpdateServedBreadcrumb":n=(new qn).builder;break;case"proto.sdui.breadcrumbs.feed.SponsoredUpdateServedBreadcrumb":n=(new Wn).builder;break;case"proto.sdui.tracking.TrackingBreadcrumb":n=(new Vn).builder;var r,i=e;try{if(void 0!==i.content.type)r=(new TextDecoder).decode(new Uint8Array(i.content.data));else{if(!(i.content instanceof Uint8Array))throw new Error("Invalid breadcrumb content type");r=(new TextDecoder).decode(i.content)}for(var o=null==e?void 0:e.breadcrumbType,a={content:JSON.parse(r),breadcrumbType:o},s=0,c=Object.entries(a);s<c.length;s++){var u=p(c[s],2),l=u[0],d=u[1];Jt(d)&&n[l](d)}return n.build()}catch(e){throw new Error("Error parsing breadcrumb content: ".concat(e))}default:throw new Error("breadcrumb class ".concat(t," needs to be defined in core-web-tracking."))}if(!n)throw new Error("breadcrumb class ".concat(t," needs to be defined in core-web-tracking."));for(var f in e){var h=e[f];null!=h&&n[f](h)}return n.build()}function zn(e){var t,n=[],r=[],i=S(e);try{for(i.s();!(t=i.n()).done;){var s=t.value,c=s.breadcrumb,u=_(s,o);if(r.push(u),c){var l=void 0;if(c&&"$type"in c){var d=c.$type;l=Gn(_(c,a),d)}else{if(!c.id)throw new Error("Missing breadcrumb id");if(!c.clientBreadcrumbType)throw new Error("clientBreadcrumbType is a mandatory field in ClientBreadcrumbObject");if(!Object.values(Kn).includes(c.clientBreadcrumbType))throw new Error("Invalid breadcrumb type: ".concat(c.clientBreadcrumbType));if(!c.data||!Jt(c.data))throw new Error("Missing breadcrumb data");l=h({id:c.id,clientBreadcrumbType:c.clientBreadcrumbType},c.data)}n.push(l)}}}catch(e){i.e(e)}finally{i.f()}return{extractedBreadcrumbs:n,trackingScopesWithoutBreadcrumbs:r}}function Xn(e){var t,n=new Set,r=[],i=S(e);try{for(i.s();!(t=i.n()).done;){var o=t.value,a="".concat(o.contentTrackingId,"-").concat(o.topicName);n.has(a)||(n.add(a),r.push(o))}}catch(e){i.e(e)}finally{i.f()}var s=zn(r);return{breadcrumbs:s.extractedBreadcrumbs,trackingScopes:s.trackingScopesWithoutBreadcrumbs}}function Jn(e){if(!e)return{};var t=e.trk,n=!1,r=e.licu&&decodeURIComponent(e.licu);e.external_control&&(r="urn:li:externalControl:".concat(decodeURIComponent(e.external_control)),n=!0);var i,o=e.lipi&&Ft(e.lipi);if(o?i={pageInstance:o,pageKey:t}:t&&(i={pageKey:t}),e.external_page&&e.external_page_instance){var a=decodeURIComponent(e.external_page);i={pageInstance:{pageUrn:"urn:li:externalPage:".concat(a),trackingId:e.external_page_instance},pageKey:a},n=!0}var s=e.external_app&&e.external_app_instance?{applicationUrn:"urn:li:externalApplication:".concat(decodeURIComponent(e.external_app)),trackingId:e.external_app_instance,version:""}:void 0;return s&&((i=i||{}).applicationInstance=s),{fromExternalApp:n||!!s,previousApplicationInstance:s,previousContext:i,previousControlId:e.lici&&decodeURIComponent(e.lici),previousControlUrn:r}}var Qn=Object.freeze({__proto__:null,voyagerTransporterConfig:{sponsored:{endpoint:"li/tscp/sct",batching:!1,disableCompression:!1,retryConfig:{persist:{attemptLimit:4,statusCodes:[429,431,401,403,404,500,405,501,406,502,407,503,408,504,409,505,506,507,508,413,509,510,511]},inMemory:{attemptLimit:4,statusCodes:[429,431,401,403,404,500,405,501,406,502,407,503,408,504,409,505,506,507,508,413,509,510,511]}}},default:{endpoint:"li/track",batching:{evenBatchEnabled:!0,maxSize:29},disableCompression:!1,retryConfig:{persist:{attemptLimit:4,statusCodes:[429,431,401,403,404,500,405,501,406,502,407,503,408,504,409,505,506,507,508,413,509,510,511]},inMemory:{attemptLimit:4,statusCodes:[429,431,401,403,404,500,405,501,406,502,407,503,408,504,409,505,506,507,508,413,509,510,511]}}}}});function Yn(e){return"retryConfig"in e.host}function $n(e){return"location"in e.api}var Zn,er=function(){function e(t,n,r,i,o,a,s,c){var u,l,d,f,v,g,m,y,b=arguments.length>8&&void 0!==arguments[8]&&arguments[8],E=arguments.length>9?arguments[9]:void 0;if(R(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,"GrpcRestSupportLixKey",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,"defaultPriorityTransporter",void 0),this.transporter=t,this.delegate=n,this.viewSpecs=r,this.transportConfig=i,this.dynamicTransporterSupportLixKey=o,this.domain=a,this.trackingAppName=s,this.dynamicTransporterSupportLixValue=c,this.observabilityEnabled=b,this.GrpcRestSupportLixKey=E,this.appState={},this.customTransporters={},this.transportConfig={},this.dynamicTransporterSupportEnabled=!1,o?this.dynamicTransporterSupportEnabled=Xt(null===(m=(y=t.host).__getLixTreatment)||void 0===m?void 0:m.call(y,o)):c&&(this.dynamicTransporterSupportEnabled=!!s&&c),this.dynamicTransporterSupportEnabled){var w=null==Qn?void 0:Qn["".concat(null==s?void 0:s.toLowerCase(),"TransporterConfig")];Jt(w)?this.transportConfig=w:this.transportConfig=i}if((b||(null===(u=(l=t.host).__getLixTreatment)||void 0===u?void 0:u.call(l,Et))===wt)&&(this.telemetry=In.getInstance(t.host)),Nn(_t,null===(d=t.host)||void 0===d?void 0:d.__getLixTreatment)||Mn(_t,null===(f=t.host)||void 0===f?void 0:f.__getLixTreatment)){var T,_=Mn(_t,null===(T=t.host)||void 0===T?void 0:T.__getLixTreatment),S=t.host.api.assign({},t.host);this.defaultPriorityTransporter=Fn.getInstance(S,mt.DefaultPriorityTransporter,_)}var C={observabilityEnabled:!!this.telemetry};if(n&&n.customTransporterHosts)for(var k in n.customTransporterHosts)if(Object.prototype.hasOwnProperty.call(n.customTransporterHosts,k)){var I=this.transporter.host.api.assign({},this.transporter.host);this.customTransporters[k]=new Hn(this.transporter.host.api.assign(I,n.customTransporterHosts[k],C))}if(this.dynamicTransporterSupportEnabled&&Jt(this.transportConfig))for(var A=0,L=Object.entries(this.transportConfig);A<L.length;A++){var O,N,M=p(L[A],2),P=M[0],x=M[1];x=h(h({},x),{},{endpoint:a&&null!==(O=x)&&void 0!==O&&O.endpoint?"".concat(Qt(a,null===(N=x)||void 0===N?void 0:N.endpoint)):"https://linkedin.com/li/track"});var F=this.transporter.host.api.assign({},this.transporter.host);this.customTransporters[P]=new Hn(this.transporter.host.api.assign(F,x,C)),this.telemetry&&this.customTransporters[P].setTransportKey(P)}"enabled"===(null===(v=(g=t.host).__getLixTreatment)||void 0===v?void 0:v.call(g,"pemberly.tracking.monitoring"))&&t.host.clientMonitoringConfig&&!t.host.inactive&&$n(t.host)&&(this.clientMonitoringConn=vn(t.host)),Jt(r)&&(this.viewSpecs=r)}return O(e,[{key:"host",get:function(){return this.transporter.host}},{key:"addBeforeHandlerToHideEvent",value:function(e){vt.before(ut,e)}},{key:"removeBeforeHandlerToHideEvent",value:function(e){vt.offBefore(ut,e)}},{key:"checkAndEnablePersistentRetry",value:function(){Yn(this.transporter)&&this.transporter.checkAndEnablePersistentRetry(this.delegate)}},{key:"flushAndClearPersistedEventsOnLogout",value:function(){this.forceFlush();var e=Yn(this.transporter)?this.transporter.clearPersistedEventsOnLogout():null;return null!=e?e:this.host.api.Promise.resolve()}},{key:"getCurrentContext",value:function(){if(this.currentContext)return Bt(this.currentContext,this.host.api)}},{key:"navigate",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=this.navMetaFromSeed(e,Jn(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=Bt(e,this.host.api),null===(t=this.clientMonitoringConn)||void 0===t||t.setCurrentContext(Bt(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 o=Pt(n.pageKey,e),a={controlTrackingId:r,controlUrn:o,interactionType:t};return i&&i(o),a}),{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 o=JSON.parse(i);o&&o.length&&t.push.apply(t,C(o))}catch(e){qt("getViewTrackingScope","Error parsing trackingScope ".concat(i))}}n=null==r?void 0:r.parentElement}return t}},{key:"fireInteraction",value:function(e){var t,n=e.manualFireReason,r=e.interactionType,i=e.targetView,o=e.viewHierarchy,a=void 0===o?[]:o,s=e.viewTrackingScope,c=void 0===s?[]:s,u=e.verticalPosition,l=e.horizontalPosition,d=e.controlUrn,f=void 0===d?"":d,v=e.actionType,g=e.contentTrackingId,m=void 0===g?void 0:g,y=e.clientBreadcrumbs,b=void 0===y?[]:y,E=e.isShadowEvent,w=e.cooloffToken,T=e.testId,_=e.mediaStateInfo,S=e.entityUrn,k=e.actorType,I=void 0===k?"USER":k,A=i?this.getViewHierarchy(i):[],R=A.length>0?A:a;0!==R.length&&(!this.viewSpecs||null!==(t=this.viewSpecs)&&void 0!==t&&t.some((function(e){return e.viewName==R[0]})))||console.warn("No viewHierarchy provided or found from element.");var L=c.length>0?c:this.getViewTrackingScope(i);if(this.dynamicTransporterSupportEnabled){var O=Gt(this.transportConfig),D=p(zt(L,O),2),N=D[0],M=D[1],P="GenericActionEvent",x={verticalPosition:u,horizontalPosition:l,controlUrn:f,interactionType:r,actionType:v,contentTrackingId:""===m?void 0:m,manualFireReason:n,cooloffToken:w,mediaStateInfo:_,actorType:I,entityUrn:S};if(Jt(N)){for(var F=0,B=Object.entries(N);F<B.length;F++){var U=p(B[F],2),H=U[0],K=Xn(U[1]),j=K.breadcrumbs,q=K.trackingScopes;this.fireEvent(P,h(h({},x),{},{trackingScopeHierarchy:{entries:q}}),{header:{viewHierarchy:R,testId:T},transporterKey:H},j,E)}if(0===M.length)return Promise.resolve(!0)}var V=Xn(M),W=V.breadcrumbs,G=V.trackingScopes;return this.fireEvent(P,{verticalPosition:u,horizontalPosition:l,controlUrn:f,interactionType:r,actionType:v,contentTrackingId:""===m?void 0:m,manualFireReason:n,cooloffToken:w,trackingScopeHierarchy:{entries:G},mediaStateInfo:_,entityUrn:S},{header:{viewHierarchy:R,testId:T}},[].concat(C(b),C(W)),E)}var z=Xn(L),X=z.breadcrumbs,J=z.trackingScopes;return this.fireEvent("GenericActionEvent",{verticalPosition:u,horizontalPosition:l,controlUrn:f||"",interactionType:r,actionType:v,contentTrackingId:""===m?void 0:m,manualFireReason:n,cooloffToken:w,trackingScopeHierarchy:{entries:J},mediaStateInfo:_,entityUrn:S,actorType:I},{header:{viewHierarchy:R,testId:T}},[].concat(C(b),C(X)),E)}},{key:"fireImpression",value:function(e,t){var n,r=e.manualFireReason,i=e.targetView,o=e.viewHierarchy,a=void 0===o?[]:o,s=e.viewTrackingScope,c=void 0===s?[]:s,u=e.viewDurationInMilliseconds,l=void 0===u?0:u,d=e.contentViewFraction,f=void 0===d?1:d,v=e.width,g=void 0===v?-1:v,m=e.height,y=void 0===m?-1:m,b=e.verticalPosition,E=e.horizontalPosition,w=e.impressionTime,T=e.contentTrackingId,_=e.clientBreadcrumbs,S=void 0===_?[]:_,k=e.isShadowEvent,I=e.cooloffToken,A=e.testId,R=e.mediaStateInfo,L=e.entityUrn,O=i?this.getViewHierarchy(i):[],D=O.length>0?O:a;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 N=c.length>0?c:this.getViewTrackingScope(i);if(this.dynamicTransporterSupportEnabled){var M=Gt(this.transportConfig),P=p(zt(N,M),2),x=P[0],F=P[1],B="GenericImpressionEvent",U={viewDurationInMilliseconds:l,contentViewFraction:f,width:g,height:y,verticalPosition:b,horizontalPosition:E,impressionTime:w,contentTrackingId:""===T?void 0:T,manualFireReason:r,cooloffToken:I,mediaStateInfo:R,entityUrn:L},H={header:{viewHierarchy:D,testId:A},context:null==t?void 0:t.context};if(Jt(x)){for(var K=0,j=Object.entries(x);K<j.length;K++){var q=p(j[K],2),V=q[0],W=Xn(q[1]),G=W.breadcrumbs,z=W.trackingScopes;this.fireEvent(B,h(h({},U),{},{trackingScopeHierarchy:{entries:z}}),h(h({},H),{},{transporterKey:V}),G,k)}if(0===F.length)return Promise.resolve(!0)}var X=Xn(F),J=X.breadcrumbs,Q=X.trackingScopes;return this.fireEvent(B,{viewDurationInMilliseconds:l,contentViewFraction:f,width:g,height:y,verticalPosition:b,horizontalPosition:E,impressionTime:w,contentTrackingId:""===T?void 0:T,manualFireReason:r,cooloffToken:I,trackingScopeHierarchy:{entries:Q},mediaStateInfo:R,entityUrn:L},H,[].concat(C(S),C(J)),k)}var Y=Xn(N),$=Y.breadcrumbs,Z=Y.trackingScopes,ee={header:{viewHierarchy:D,testId:A},context:null==t?void 0:t.context};return this.fireEvent("GenericImpressionEvent",{viewDurationInMilliseconds:l,contentViewFraction:f,width:g,height:y,verticalPosition:b,horizontalPosition:E,impressionTime:w,contentTrackingId:""===T?void 0:T,manualFireReason:r,cooloffToken:I,trackingScopeHierarchy:{entries:Z},mediaStateInfo:R,entityUrn:L},ee,[].concat(C(S),C($)),k)}},{key:"fireMediaStateChangeEvent",value:function(e){var t=e.trackingScopeHierarchyData,n=void 0===t?[]:t,r=e.objectUrn,i=e.trackingId,o=e.playableMediaState,a=e.clientBreadcrumbs,s=void 0===a?[]:a;if(this.dynamicTransporterSupportEnabled){var c=Gt(this.transportConfig),u=p(zt(n,c),2),l=u[0],d=u[1],f="GenericMediaStateChangeEvent",v={trackingObject:{trackingId:i,objectUrn:r},playableMediaState:o};if(Jt(l)){for(var g=0,m=Object.entries(l);g<m.length;g++){var y=p(m[g],2),b=y[0],E=Xn(y[1]),w=E.breadcrumbs,T=E.trackingScopes;this.fireEvent(f,h(h({},v),{},{trackingScopeHierarchy:{entries:T}}),{transporterKey:b},w)}if(0===d.length)return Promise.resolve(!0)}var _=Xn(d),S=_.breadcrumbs,k=_.trackingScopes;return this.fireEvent(f,{trackingObject:{trackingId:i,objectUrn:r},playableMediaState:o,trackingScopeHierarchy:{entries:k}},void 0,[].concat(C(s),C(S)))}var I=Xn(n),A=I.breadcrumbs,R=I.trackingScopes;return this.fireEvent("GenericMediaStateChangeEvent",{trackingObject:{trackingId:i,objectUrn:r},playableMediaState:o,trackingScopeHierarchy:{entries:R}},void 0,[].concat(C(s),C(A)))}},{key:"fireMultipleImpression",value:function(e,t){var n,r=e.targetView,i=e.viewHierarchy,o=void 0===i?[]:i,a=e.viewTrackingScope,s=void 0===a?[]:a,c=e.width,u=void 0===c?-1:c,l=e.height,d=void 0===l?-1:l,f=e.verticalPosition,v=e.horizontalPosition,g=e.impressionThresholds,m=void 0===g?[]:g,y=e.hasAllImpressionThresholds,b=void 0===y||y,E=e.clientBreadcrumbs,w=void 0===E?[]:E,T=e.isShadowEvent,_=e.cooloffToken,S=r?this.getViewHierarchy(r):[],k=S.length>0?S:o;0!==k.length&&(!this.viewSpecs||null!==(n=this.viewSpecs)&&void 0!==n&&n.some((function(e){return e.viewName==k[0]})))||console.warn("No viewHierarchy provided or found from element.");var I=s.length>0?s:this.getViewTrackingScope(r);if(this.dynamicTransporterSupportEnabled){var A=Gt(this.transportConfig),R=p(zt(I,A),2),L=R[0],O=R[1],D="GenericMultipleImpressionEvent",N={width:u,height:d,verticalPosition:f,horizontalPosition:v,cooloffToken:_,hasAllImpressionThresholds:b,impressionThresholdsWrapper:{entries:m}},M={header:{viewHierarchy:k},context:null==t?void 0:t.context};if(Jt(L)){for(var P=0,x=Object.entries(L);P<x.length;P++){var F=p(x[P],2),B=F[0],U=Xn(F[1]),H=U.breadcrumbs,K=U.trackingScopes;this.fireEvent(D,h(h({},N),{},{trackingScopeHierarchy:{entries:K}}),h(h({},M),{},{transporterKey:B}),H,T)}if(0===O.length)return Promise.resolve(!0)}var j=Xn(O),q=j.breadcrumbs,V=j.trackingScopes;return this.fireEvent(D,{width:u,height:d,verticalPosition:f,horizontalPosition:v,cooloffToken:_,hasAllImpressionThresholds:b,impressionThresholdsWrapper:{entries:m},trackingScopeHierarchy:{entries:V}},M,[].concat(C(w),C(q)),T)}var W=Xn(I),G=W.breadcrumbs,z=W.trackingScopes,X={header:{viewHierarchy:k},context:null==t?void 0:t.context};return this.fireEvent("GenericMultipleImpressionEvent",{width:u,height:d,verticalPosition:f,horizontalPosition:v,cooloffToken:_,hasAllImpressionThresholds:b,impressionThresholdsWrapper:{entries:m},trackingScopeHierarchy:{entries:z}},X,[].concat(C(w),C(G)),T)}},{key:"fireEvent",value:function(e,t,n,r,i){var o=this;if(!t){var a,s=ln(e),c=void 0===t?"undefined":null===t?"null":A(t),u='Firing tracking event "'.concat(s,'" with invalid body, you fired "').concat(c,'"');if(this.clientMonitoringConn){var l=this.clientMonitoringConn.logEventGenerated(s);this.clientMonitoringConn.logFailedEvent(hn.MISSING_REQUIRED_PROPERTIES,e,u,l)}throw null===(a=this.telemetry)||void 0===a||a.onEventDropped(s,void 0,null==n?void 0:n.transporterKey,void 0),new Error(u)}var d=r||[];if(d.length>0){var f=(d=d.map((function(e){return o.transformBreadcrumb(e)}))).map((function(e){return jn.toPointer(e)}));this.host.api.assign(t,{clientBreadcrumbPointers:f})}var h=d.length>0?this.generateEnvelopeWithBreadcrumbs(e,t,n,d,i):this.generateEnvelope(e,t,n,i);return this.fireEnvelope(h)}},{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],o=this.generateEnvelope(e,t,n,i);return r.length>0?this.addBreadcrumbsToEnvelope(o,r):o}},{key:"transformBreadcrumb",value:function(e){try{if(Jt(e.content))return h({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(un(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 o=i.meta.transporterKey,a=o?this.customTransporters[o]:this.transporter;if(!a&&o){var s,c=ln(i.id),u="Could not find custom transporter: ".concat(o);if(this.clientMonitoringConn){var l=this.clientMonitoringConn.logEventGenerated(c);this.clientMonitoringConn.logFailedEvent(hn.UNKNOWN_EXECUTION_ERROR,i.id,u,l)}throw null===(s=this.telemetry)||void 0===s||s.onEventDropped(c,void 0,o,void 0),new Error(u)}return a.fireEvent(i)}return this.host.api.Promise.resolve(!0)}},{key:"generatePageInstance",value:function(e,t){return Mt(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),o=this.generateEnvelope("PageViewEvent",i,{context:n});return o.meta.requestHeader.pageKey=e,this.fireEnvelope(o)}},{key:"destroy",value:function(){for(var e in this.transporter.destroy(),this.customTransporters)this.customTransporters[e].destroy();var t,n;this.clientMonitoringConn&&(this.clientMonitoringConn.flush(),this.clientMonitoringConn.destroy(),this.clientMonitoringConn=void 0),vt.clear(),this.telemetry&&(this.telemetry.forceFlush(),this.telemetry.onDestroy(),this.telemetry=void 0),this.defaultPriorityTransporter&&(null===(t=this.defaultPriorityTransporter)||void 0===t||t.forceFlush(),null===(n=this.defaultPriorityTransporter)||void 0===n||n.onDestroy())}},{key:"forceFlush",value:function(){var e;for(var t in this.transporter.forceFlush(),null===(e=this.defaultPriorityTransporter)||void 0===e||e.forceFlush(),this.customTransporters)this.customTransporters[t].forceFlush()}},{key:"generateControlUrn",value:function(e,t){return Pt((t||this.currentContext||{pageKey:P}).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,o=this.generateEnvelope(i,t);o.meta.requestHeader.pageKey=n.pageKey;var a=r&&r.applicationInstance;return a&&(o.meta.header.clientApplicationInstance=a),this.host.api.Promise.all([this._firePVE(n.pageKey),this.fireEnvelope(o)])}},{key:"generateEnvelope",value:function(e,t){var n,r,i,o,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},s=arguments.length>3&&void 0!==arguments[3]&&arguments[3],c={directive:a.directive,transporterKey:a.transporterKey,context:a.context||this.currentContext&&Bt(this.currentContext,this.host.api),requestHeader:this.host.api.assign({trackingCode:this.getTrackingCode()},a.requestHeader||{},$n(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===(o=this.host.api.document)||void 0===o?void 0:o.referrer}:{}),header:this.host.api.assign({applicationViewerUrn:this.appState.applicationViewerUrn,clientApplicationInstance:this.appState.clientApplicationInstance,isShadowEvent:s},a.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"}(Zn||(Zn={}));var tr="otel-origin-jet-tag";var nr,rr;!function(){function e(t,n){var r,i,o=this;R(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")),o.reportError(e.reason,e.tags.concat(["info"]),{responseHeaders:e.responseHeaders}).catch((function(){}))})),this.core=t;var a=this.core.host.api.location.protocol;this.protocol=a.substring(0,a.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},vt.on(lt,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]:{},o=i.callTreeId,a=void 0===o?"":o,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,b=void 0===y?0:y,E=e.columnNumber,w=void 0===E?0:E,T=this.core.host,_=T.appId,S=T.appVersion,C=T.service,k=T.serviceInstance,I=T.treeID,A=void 0===I?"":I,R=T.api,L=R.Promise,O=R.location,D=O.host,N=O.pathname,M=O.search,P=O.hash,x=void 0===P?"":P;if(this.config.useOTel&&!r.includes(tr)&&vt.emit(Zn.INTERNAL_OTEL_JET_EVENT,{error:e,tags:r,callTreeId:a,responseHeaders:c}),c){t={};var F=new Map;Object.keys(c).forEach((function(e){F.set(e.toLowerCase(),c[e])})),t.callTreeId=F.get("x-li-uuid"),t.microsoftEdgeReference=F.get("x-msedge-ref"),t.pointOfPresenceId=F.get("x-li-pop"),t.fabric=F.get("x-li-fabric")}var B=function(){return n.core.fireEvent("JavaScriptErrorEvent",(function(e){return{appId:_,e:{c:w,l:b,m:f,s:v,t:h,u:m},h:x,l:n.protocol,o:D,p:N,pageKey:e.pageKey,q:M,service:C,serviceInstance:k,serviceVersion:S,t:r,trackingID:e.pageInstance.trackingId,treeID:A,callTreeId:a,responseTraceHeaders:t,sduiScreenId:u,componentKey:l,targetViewNames:d}}))};if(this.config.throttleTime<0)return B();var U=(h+f+v+r.join("")+a).split("").reduce((function(e,t){return(e<<5)-e+t.charCodeAt(0)|0}),0);return this.throttleKeySet.has(U)?L.resolve(!1):(this.throttleKeySet.add(U),setTimeout((function(){return n.throttleKeySet.delete(U)}),this.config.throttleTime),B())}},{key:"flush",value:function(){this.core.forceFlush()}},{key:"destroy",value:function(){this.core.destroy(),vt.off(lt,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"}(nr||(nr={})),function(e){e.PageLoadStartEvent="PageLoadStartEvent",e.PageLoadEndEvent="PageLoadEndEvent",e.ResourceLoadEvent="ResourceLoadEvent",e.ViewLoadEvent="ViewLoadEvent",e.PEMTracer="PEMTracer"}(rr||(rr={}));var ir,or,ar,sr,cr,ur,lr,dr=(D(D(D(D(D(D(D(D(D(D(r={},"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(r,"beacon-timeout",3e4),"enable-memory-measurement",!1),"pageKeyPrefix",""),"enable-pem-tracking-3",!1),"enable-tracking-3",!1),"enable-otel",!1)),fr=-1,hr=-2,pr=["loadEventEnd","loadEventStart","domComplete","domContentLoadedEventEnd","domContentLoadedEventStart","domInteractive","domLoading","responseEnd","responseStart","requestStart","secureConnectionStart","connectEnd","connectStart","domainLookupEnd","domainLookupStart","fetchStart","redirectEnd","redirectStart","unloadEventEnd","unloadEventStart","navigationStart"],vr={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"},gr={"http/0.9":"HTTP0_9","http/1.0":"HTTP1_0","http/1.1":"HTTP1_1",h2:"HTTP2"},mr="pageLoadId does not exist",yr="rum token passed is invalid",br=new RegExp(/batch-(\d+)$|enabled$/),Er=function(){function e(){R(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(Tr),cdnData:this.cdnData}}}]),e}(),wr=["resourceTreeId","name","entryType","startTime","duration","initiatorType","nextHopProtocol","redirectStart","redirectEnd","fetchStart","domainLookupStart","domainLookupEnd","connectStart","connectEnd","secureConnectionStart","requestStart","responseStart","responseEnd","transferSize","encodedBodySize","decodedBodySize","workerStart"];function Tr(e){return wr.reduce((function(t,n){var r=e[n];return void 0!==r&&(t[n]=r),t}),{})}function _r(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};ur=Object.assign(Object.assign({},n),t),lr=function(e,t){return e.nodeType===Node.DOCUMENT_NODE?e:e===t.root?e.ownerDocument:e}(ur.root,n);var r=Sr(e,cr.All,(function(){return Sr(e,cr.Two,(function(){return Sr(e,cr.One)}))}));if(r){var i=Nr(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>ur.optimizedMinLength)for(var o=1;o<t.length-1;o++){if(r.counter>ur.maxNumberOfTries)return i;r.counter+=1;var a=C(t);a.splice(o,1);var s=kr(a);if(r.visited.has(s))return i;Ar(a)&&Mr(a,n)&&(i.push(a),r.visited.set(s,!0),i=i.concat(e(a,n,r)))}return i}(r,e));return i.length>0&&(r=i[0]),kr(r)}throw new Error("Selector was not found.")}function Sr(e,t,n){for(var r=null,i=[],o=e,a=0,s=function(){var e=Or(function(e){var t=e.getAttribute("id");return t&&ur.idName(t)?{name:"#"+Ur(t,{isIdentifier:!0}),penalty:0}:null}(o))||Or.apply(void 0,C(function(e){return Array.from(e.attributes).filter((function(e){return ur.attr(e.name,e.value)})).map((function(e){return{name:"["+Ur(e.name,{isIdentifier:!0})+'="'+Ur(e.value)+'"]',penalty:.5}}))}(o)))||Or.apply(void 0,C(function(e){return Array.from(e.classList).filter(ur.className).map((function(e){return{name:"."+Ur(e,{isIdentifier:!0}),penalty:1}}))}(o)))||Or(function(e){var t=e.tagName.toLowerCase();return ur.tagName(t)?{name:t,penalty:2}:null}(o))||[{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}(o);if(t===cr.All)s&&(e=e.concat(e.filter(Lr).map((function(e){return Rr(e,s)}))));else if(t===cr.Two)e=e.slice(0,1),s&&(e=e.concat(e.filter(Lr).map((function(e){return Rr(e,s)}))));else if(t===cr.One){var c=p(e=e.slice(0,1),1)[0];s&&Lr(c)&&(e=[Rr(c,s)])}var u,l=S(e);try{for(l.s();!(u=l.n()).done;)u.value.level=a}catch(e){l.e(e)}finally{l.f()}if(i.push(e),i.length>=ur.seedMinLength&&(r=Cr(i,n)))return 1;o=o.parentElement,a++};o&&o!==ur.root.parentElement&&!s(););return r||(r=Cr(i,n)),r}function Cr(e,t){var n=Nr(function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];if(t.length>0){var r,i=[],o=S(t[0]);try{for(o.s();!(r=o.n()).done;){var a=r.value;i=i.concat(e(t.slice(1,t.length),n.concat(a)))}}catch(t){o.e(t)}finally{o.f()}return i}return[n]}(e));if(n.length>ur.threshold)return t?t():null;var r,i=S(n);try{for(i.s();!(r=i.n()).done;){var o=r.value;if(Ar(o))return o}}catch(e){i.e(e)}finally{i.f()}return null}function kr(e){for(var t=e[0],n=t.name,r=1;r<e.length;r++){var i=e[r].level||0;n=t.level===i-1?"".concat(e[r].name," > ").concat(n):"".concat(e[r].name," ").concat(n),t=e[r]}return n}function Ir(e){return e.map((function(e){return e.penalty})).reduce((function(e,t){return e+t}),0)}function Ar(e){switch(lr.querySelectorAll(kr(e)).length){case 0:throw new Error("Can't select any node with this selector: ".concat(kr(e)));case 1:return!0;default:return!1}}function Rr(e,t){return{name:e.name+":nth-child(".concat(t,")"),penalty:e.penalty+1}}function Lr(e){return"html"!==e.name&&!e.name.startsWith("#")}function Or(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=t.filter(Dr);return r.length>0?r:null}function Dr(e){return null!=e}function Nr(e){return Array.from(e).sort((function(e,t){return Ir(e)-Ir(t)}))}function Mr(e,t){return lr.querySelector(kr(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"}(ir||(ir={})),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"}(or||(or={})),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"}(ar||(ar={})),function(e){e.DEFAULT="DEFAULT",e.INITIAL="INITIAL",e.SUBSEQUENT="SUBSEQUENT",e.PAGINATED="PAGINATED"}(sr||(sr={})),function(e){e[e.All=0]="All",e[e.Two=1]="Two",e[e.One=2]="One"}(cr||(cr={}));var Pr=/[ -,\.\/:-@\[-\^`\{-~]/,xr=/[ -,\.\/:-@\[\]\^`\{-~]/,Fr=/(^|\\+)?(\\[A-F0-9]{1,6})\x20(?![a-fA-F0-9\x20])/g,Br={escapeEverything:!1,isIdentifier:!1,quotes:"single",wrap:!1};function Ur(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=Object.assign(Object.assign({},Br),t);"single"!=n.quotes&&"double"!=n.quotes&&(n.quotes="single");for(var r="double"==n.quotes?'"':"'",i=n.isIdentifier,o=e.charAt(0),a="",s=0,c=e.length;s<c;){var u=e.charAt(s++),l=u.charCodeAt(0),d=void 0;if(l<32||l>126){if(l>=55296&&l<=56319&&s<c){var f=e.charCodeAt(s++);56320==(64512&f)?l=((1023&l)<<10)+(1023&f)+65536:s--}d="\\"+l.toString(16).toUpperCase()+" "}else d=n.escapeEverything?Pr.test(u)?"\\"+u:"\\"+l.toString(16).toUpperCase()+" ":/[\t\n\f\r\x0B]/.test(u)?"\\"+l.toString(16).toUpperCase()+" ":"\\"==u||!i&&('"'==u&&r==u||"'"==u&&r==u)||i&&xr.test(u)?"\\"+u:u;a+=d}return i&&(/^-[-\d]/.test(a)?a="\\-"+a.slice(1):/\d/.test(o)&&(a="\\3"+o+" "+a.slice(1))),a=a.replace(Fr,(function(e,t,n){return t&&t.length%2?e:(t||"")+n})),!i&&n.wrap?r+a+r:a}var Hr,Kr=[{strToFilter:"https://dms.licdn.com/playlist",excludeUrl:["https://dms.licdn.com/playlist/C4D05AQGiUFPvMk-NyQ/mp4-720p-30fp-crf28/0/1670518159491?e=1683741600&v=beta&t=3Wr_tdLLkQDX1kBQKEZW6NERypEqTi2mgZDDxFStjuI"],includeUrl:["https://media.licdn.com/dms/image/C4E0DAQF2IPL6XzFxlw/learning-public-crop_288_512/0/1593208644948?e=1681236000&v=beta&t=YpZr5ZaVoveJv_I6JKHTTZMsysttvKnT364PwDvjJHU"]},{strToFilter:"/sensorCollect/?action=reportMetrics",excludeUrl:["https://www.linkedin.com/sensorCollect/?action=reportMetrics","https://www.linkedin-ei.com/sensorCollect/?action=reportMetrics"],includeUrl:["https://www.linkedin.com/voyager/api/relationships/connectionsSummary/"]},{strToFilter:"/voyager/api/voyagerContentcreationDashGuiderPrompts",excludeUrl:["https://www.linkedin.com/voyager/api/voyagerContentcreationDashGuiderPrompts?decorationId=com.linkedin.voyager.dash.deco.contentcreation.GuiderPrompt-10&commentary=test&disableGoldGuider=true&hasAttachment=false&q=highestPriorityTriggeredPrompt&shareBoxSessionId=%C2%90b%C2%A9%C2%87%C3%A8%C3%A2By%C2%8798x%C2%B0%03%C2%9Ft","https://www.linkedin.com/voyager/api/voyagerContentcreationDashGuiderPrompts?decorationId=com.linkedin.voyager.dash.deco.contentcreation.GuiderPrompt-10&commentary=Subestimar%20la%20necesidad%20de%20la%20estrategia%20de%20comunicaci%C3%B3n%20es%20un%20peligroso%20error%20que%20comenten%20constantemente%20las%20empresas&disableGoldGuider=true&hasAttachment=false&q=highestPriorityTriggeredPrompt&shareBoxSessionId=%5C%C3%99t%C2%A2%1EZIM%C2%A4%09%13%27%C2%B91C%15"],includeUrl:["https://www.linkedin.com/voyager/api/voyager","https://www.linkedin.com/voyager/api/voyagerContentcreationDashSharebox?action=fetchShareboxWithDraft&decorationId=com.linkedin.voyager.dash.deco.contentcreation.sharebox-26"]},{strToFilter:"/realtime/realtimeFrontendClientConnectivityTracking?action=sendHeartbeat",excludeUrl:["https://www.linkedin.com/realtime/realtimeFrontendClientConnectivityTracking?action=sendHeartbeat"],includeUrl:["https://www.linkedin.com/realtime/realtimeFrontendTimestamp","https://www.linkedin.com/realtime/realtimeFrontendSubscriptions?ids=List((clientConnectionId:8d5bf314-1345-416e-9ec3-013bf22ec8a6,topic:urn%3Ali-realtime%3ApresenceStatusTopic%3Aurn%3Ali%3Afsd_profile%3AACoAAD5YWGUB4hwl054jtklqpx2VjPbbVo7Gh74),(clientConnectionId:8d5bf314-1345-416e-9ec3-013bf22ec8a6,topic:urn%3Ali-realtime%3ApresenceStatusTopic%3Aurn%3Ali%3Afsd_profile%3AACoAACdkULEBbkw8xk4H_KA5SxqK3TCxyxk9_Wk),(clientConnectionId:8d5bf314-1345-416e-9ec3-013bf22ec8a6,topic:urn%3Ali-realtime%3ApresenceStatusTopic%3Aurn%3Ali%3Afsd_profile%3AACoAAD5g-3IBNIABcinpNPrjErVw8282O5xXDVA),(clientConnectionId:8d5bf314-1345-416e-9ec3-013bf22ec8a6,topic:urn%3Ali-realtime%3ApresenceStatusTopic%3Aurn%3Ali%3Afsd_profile%3AACoAADUWTR8BJhjL3YT-_tt80GpZ-7AHUlrE6qA))"]},{strToFilter:"/realtime/connect?rc=1",excludeUrl:["https://www.linkedin.com/realtime/connect?rc=1"],includeUrl:["https://www.linkedin.com/realtime/realtimeFrontendTimestamp","https://www.linkedin.com/realtime/realtimeFrontendSubscriptions?ids=List((clientConnectionId:8d5bf314-1345-416e-9ec3-013bf22ec8a6,topic:urn%3Ali-realtime%3ApresenceStatusTopic%3Aurn%3Ali%3Afsd_profile%3AACoAAD5YWGUB4hwl054jtklqpx2VjPbbVo7Gh74),(clientConnectionId:8d5bf314-1345-416e-9ec3-013bf22ec8a6,topic:urn%3Ali-realtime%3ApresenceStatusTopic%3Aurn%3Ali%3Afsd_profile%3AACoAACdkULEBbkw8xk4H_KA5SxqK3TCxyxk9_Wk),(clientConnectionId:8d5bf314-1345-416e-9ec3-013bf22ec8a6,topic:urn%3Ali-realtime%3ApresenceStatusTopic%3Aurn%3Ali%3Afsd_profile%3AACoAAD5g-3IBNIABcinpNPrjErVw8282O5xXDVA),(clientConnectionId:8d5bf314-1345-416e-9ec3-013bf22ec8a6,topic:urn%3Ali-realtime%3ApresenceStatusTopic%3Aurn%3Ali%3Afsd_profile%3AACoAADUWTR8BJhjL3YT-_tt80GpZ-7AHUlrE6qA))"]},{strToFilter:"li/tscp/sct",excludeUrl:["https://www.linkedin.com/li/tscp/sct"]}];function jr(e){var t=arguments.length>1&&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 qr(e){var t=e||performance;return Math.round(t.now())}function Vr(e){if(!e)return"null";if(e.nodeType===Node.ELEMENT_NODE)try{return _r(e,{idName:function(e){return 0!==e.indexOf("ember")}})}catch(e){return"serialization_error"}var t=Vr(e.parentElement||void 0);return"".concat(t," > nodeType(").concat(e.nodeType,")")}function Wr(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 Gr(e){var t=[];return e.forEach((function(e){return t.push(e)})),t}var zr=function(){function e(t){R(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 Ht(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,o=Ut(Ht(this.pendingPromises),i),a=setTimeout((function(){t.abortController.abort(),t.abortController=new r}),e);return o.then((function(){return clearTimeout(a),t.getPresentData()}))}},{key:"inspectEntryForCdnData",value:function(e){var t=this;if(!(e.name.indexOf(".licdn.")<0)){var n,r,i=this.hostApis.assign,o=(n=e.name,r=this.hostApis.document,(Hr=Hr||r.createElement("a")).href=n,Hr.hostname);if(this.usedHostnames.add(o),!this.hostnameProperties[o]&&!this.isResourcePossiblyFromCache(e)){var a=this.fetchCdnFromUrl(e.name).then((function(e){var n=i({hostname:o},e);return t.hostnameProperties[o]||(t.hostnameProperties[o]=n),t.pendingPromises.delete(a),n}));this.pendingPromises.add(a)}}}},{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(){R(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]<<t|e[1]>>>32-t,e[1]<<t|e[0]>>>32-t]:(t-=32,[e[1]<<t|e[0]>>>32-t,e[0]<<t|e[1]>>>32-t])}},{key:"x64LeftShift",value:function(e,t){return 0==(t%=64)?e:t<32?[e[0]<<t|e[1]>>>32-t,e[1]<<t]:[e[1]<<t-32,0]}},{key:"x64Xor",value:function(e,t){return[e[0]^t[0],e[1]^t[1]]}},{key:"x64Fmix",value:function(t){return t=e.x64Xor(t,[0,t[0]>>>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,o=t.length-i,a=[0,n],s=[0,n],c=[0,0],u=[0,0],l=[2277735313,289559509],d=[1291169091,658871167];for(r=0;r<o;r+=16)c=[255&t.charCodeAt(r+4)|(255&t.charCodeAt(r+5))<<8|(255&t.charCodeAt(r+6))<<16|(255&t.charCodeAt(r+7))<<24,255&t.charCodeAt(r)|(255&t.charCodeAt(r+1))<<8|(255&t.charCodeAt(r+2))<<16|(255&t.charCodeAt(r+3))<<24],u=[255&t.charCodeAt(r+12)|(255&t.charCodeAt(r+13))<<8|(255&t.charCodeAt(r+14))<<16|(255&t.charCodeAt(r+15))<<24,255&t.charCodeAt(r+8)|(255&t.charCodeAt(r+9))<<8|(255&t.charCodeAt(r+10))<<16|(255&t.charCodeAt(r+11))<<24],c=e.x64Multiply(c,l),c=e.x64Rotl(c,31),c=e.x64Multiply(c,d),a=e.x64Xor(a,c),a=e.x64Rotl(a,27),a=e.x64Add(a,s),a=e.x64Add(e.x64Multiply(a,[0,5]),[0,1390208809]),u=e.x64Multiply(u,d),u=e.x64Rotl(u,33),u=e.x64Multiply(u,l),s=e.x64Xor(s,u),s=e.x64Rotl(s,31),s=e.x64Add(s,a),s=e.x64Add(e.x64Multiply(s,[0,5]),[0,944331445]);switch(c=[0,0],u=[0,0],i){case 15:u=e.x64Xor(u,e.x64LeftShift([0,t.charCodeAt(r+14)],48));case 14:u=e.x64Xor(u,e.x64LeftShift([0,t.charCodeAt(r+13)],40));case 13:u=e.x64Xor(u,e.x64LeftShift([0,t.charCodeAt(r+12)],32));case 12:u=e.x64Xor(u,e.x64LeftShift([0,t.charCodeAt(r+11)],24));case 11:u=e.x64Xor(u,e.x64LeftShift([0,t.charCodeAt(r+10)],16));case 10:u=e.x64Xor(u,e.x64LeftShift([0,t.charCodeAt(r+9)],8));case 9:u=e.x64Xor(u,[0,t.charCodeAt(r+8)]),u=e.x64Multiply(u,d),u=e.x64Rotl(u,33),u=e.x64Multiply(u,l),s=e.x64Xor(s,u);case 8:c=e.x64Xor(c,e.x64LeftShift([0,t.charCodeAt(r+7)],56));case 7:c=e.x64Xor(c,e.x64LeftShift([0,t.charCodeAt(r+6)],48));case 6:c=e.x64Xor(c,e.x64LeftShift([0,t.charCodeAt(r+5)],40));case 5:c=e.x64Xor(c,e.x64LeftShift([0,t.charCodeAt(r+4)],32));case 4:c=e.x64Xor(c,e.x64LeftShift([0,t.charCodeAt(r+3)],24));case 3:c=e.x64Xor(c,e.x64LeftShift([0,t.charCodeAt(r+2)],16));case 2:c=e.x64Xor(c,e.x64LeftShift([0,t.charCodeAt(r+1)],8));case 1:c=e.x64Xor(c,[0,t.charCodeAt(r)]),c=e.x64Multiply(c,l),c=e.x64Rotl(c,31),c=e.x64Multiply(c,d),a=e.x64Xor(a,c)}return a=e.x64Xor(a,[0,t.length]),s=e.x64Xor(s,[0,t.length]),a=e.x64Add(a,s),s=e.x64Add(s,a),a=e.x64Fmix(a),s=e.x64Fmix(s),a=e.x64Add(a,s),s=e.x64Add(s,a),("00000000"+(a[0]>>>0).toString(16)).slice(-8)+("00000000"+(a[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(){R(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={},o=0,a=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),o++;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],++a>=o&&(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;n<r;n++)t(e[n],n,e);else for(var i in e)e.hasOwnProperty(i)&&t(e[i],i,e)}},{key:"map",value:function(e,n){var r=[];return null==e?r:Array.prototype.map&&e.map===Array.prototype.map?e.map(n):(t.each(e,(function(e,t,i){r.push(n(e,t,i))})),r)}},{key:"getIPs",value:function(e,t){var n={},r=new(window.RTCPeerConnection||window.webkitRTCPeerConnection||window.mozRTCPeerConnection||window.msRTCPeerConnection)({iceServers:[{urls:"stun:stun.l.google.com:19302"}]},{optional:[{RtpDataChannels:!0}]}),i=function(e){if(null!==e)try{var t=/([0-9]{1,3}(\.[0-9]{1,3}){3}|[a-f0-9]{1,4}(:[a-f0-9]{1,4}){7})/.exec(e)[1];n[t]=!0}catch(e){}},o=!1,a=function(){if(!0!==o){o=!0;var e=r.localDescription;null!==e&&e.sdp.split("\n").forEach((function(e){0!==e.indexOf("a=candidate:")&&0!==e.indexOf("c=IN")||i(e)})),t(Object.keys(n))}};r.onicecandidate=function(e){e.candidate&&i(e.candidate.candidate)},r.onicegatheringstatechange=function(e){"complete"===r.iceGatheringState&&a()},r.createDataChannel("bl");try{r.createOffer().then((function(e){r.setLocalDescription(e)}))}catch(e){r.createOffer((function(e){r.setLocalDescription(e,(function(){}),(function(){}))}),(function(){}))}setTimeout((function(){a()}),2e3)}},{key:"automationKey",value:function(e,n){if(t.getHasLiedBrowser())e("undetected, fake browser");else{var r=t.getBrowserNameAndVersion().split(" ")[0];"Chrome"!==r||!0!==navigator.webdriver?"Firefox"===r&&window.document.documentElement.getAttribute("webdriver")||"_Selenium_IDE_Recorder"in window||"__webdriver_script_fn"in document?e("Selenium"):window.callPhantom||window._phantom?e("PhantomJS"):e(n.NOT_AVAILABLE):e("Selenium")}}},{key:"webRtcKey",value:function(e,n){try{t.getIPs(n,(function(t){e({ips:t})}))}catch(t){e({exception:{name:t.name,message:t.message}})}}},{key:"enumerateDevicesKey",value:function(e,n){if(!t.isEnumerateDevicesSupported())return e(n.NOT_AVAILABLE);navigator.mediaDevices.enumerateDevices().then((function(t){e(t.map((function(e){var t={};return t.id=e.deviceId,t.gid=e.groupId,t.kind=e.kind,t.label=e.label,t})))})).catch((function(t){e(t)}))}},{key:"isEnumerateDevicesSupported",value:function(){return navigator.mediaDevices&&navigator.mediaDevices.enumerateDevices}},{key:"audioKey",value:function(e,n){var r=n.audio;if(r.excludeIOS11&&navigator.userAgent.match(/OS 11.+Version\/11.+Safari/))return e(n.EXCLUDED);var i=window.OfflineAudioContext||window.webkitOfflineAudioContext;if(null==i)return e(n.NOT_AVAILABLE);var o=new i(1,44100,44100),a=o.createOscillator();a.type="triangle",a.frequency.setValueAtTime(1e4,o.currentTime);var s=o.createDynamicsCompressor();t.each([["threshold",-50],["knee",40],["ratio",12],["reduction",-20],["attack",0],["release",.25]],(function(e){void 0!==s[e[0]]&&"function"==typeof s[e[0]].setValueAtTime&&s[e[0]].setValueAtTime(e[1],o.currentTime)})),a.connect(s),s.connect(o.destination),a.start(0),o.startRendering();var c=setTimeout((function(){return o.oncomplete=function(){},o=null,e("audioTimeout")}),r.timeout);o.oncomplete=function(t){var n;try{clearTimeout(c),n=t.renderedBuffer.getChannelData(0).slice(4500,5e3).reduce((function(e,t){return e+Math.abs(t)}),0).toString(),a.disconnect(),s.disconnect()}catch(t){return void e(t)}e(n)}}},{key:"UserAgent",value:function(e){e(navigator.userAgent)}},{key:"webdriver",value:function(e,t){e(void 0===navigator.webdriver||null===navigator.webdriver?t.NOT_AVAILABLE:navigator.webdriver)}},{key:"languageKey",value:function(e,t){e(navigator.language||navigator.userLanguage||navigator.browserLanguage||navigator.systemLanguage||t.NOT_AVAILABLE)}},{key:"colorDepthKey",value:function(e,t){e(window.screen.colorDepth||t.NOT_AVAILABLE)}},{key:"deviceMemoryKey",value:function(e,t){var n=navigator.deviceMemory||t.NOT_AVAILABLE;n!==t.NOT_AVAILABLE&&(n+=" GB"),e(n)}},{key:"pixelDepthKey",value:function(e,t){e(window.screen.pixelDepth||t.NOT_AVAILABLE)}},{key:"pixelRatioKey",value:function(e,t){e(window.devicePixelRatio||t.NOT_AVAILABLE)}},{key:"screenResolutionKey",value:function(e,n){e(t.getScreenResolution(n))}},{key:"screenOrientationKey",value:function(e,t){if(t.screen.detectScreenOrientation){var n={};n.Enabled=void 0!==screen.orientation,n.Orientation=screen.msOrientation||screen.mozOrientation||(screen.orientation||{}).type,e(n)}else e(t.EXCLUDED)}},{key:"getScreenResolution",value:function(){return{w:window.screen.width,h:window.screen.height}}},{key:"availableScreenResolutionKey",value:function(e,n){e(t.getAvailableScreenResolution(n))}},{key:"getAvailableScreenResolution",value:function(e){return window.screen.availWidth&&window.screen.availHeight?{w:window.screen.availWidth,h:window.screen.availHeight}:e.NOT_AVAILABLE}},{key:"timezoneOffset",value:function(e){e((new Date).getTimezoneOffset()/60)}},{key:"timezone",value:function(e,t){window.Intl&&window.Intl.DateTimeFormat?e((new window.Intl.DateTimeFormat).resolvedOptions().timeZone):e(t.NOT_AVAILABLE)}},{key:"sessionStorageKey",value:function(e,n){e(t.hasSessionStorage(n))}},{key:"localStorageKey",value:function(e,n){e(t.hasLocalStorage(n))}},{key:"indexedDbKey",value:function(e,n){e(t.hasIndexedDB(n))}},{key:"addBehaviorKey",value:function(e){e(!(!document.body||!document.body.addBehavior))}},{key:"openDatabaseKey",value:function(e){e(!!window.openDatabase)}},{key:"cpuClassKey",value:function(e,n){e(t.getNavigatorCpuClass(n))}},{key:"oscpuKey",value:function(e,t){e(navigator.oscpu||t.NOT_AVAILABLE)}},{key:"appNameKey",value:function(e,t){e(navigator.appName||t.NOT_AVAILABLE)}},{key:"appVersionKey",value:function(e,t){e(navigator.appVersion||t.NOT_AVAILABLE)}},{key:"appCodeNameKey",value:function(e,t){e(navigator.appCodeName||t.NOT_AVAILABLE)}},{key:"seedKey",value:function(e,t){e(Date.now())}},{key:"platformKey",value:function(e,n){e(t.getNavigatorPlatform(n))}},{key:"productKey",value:function(e,t){e(navigator.product||t.NOT_AVAILABLE)}},{key:"productSubKey",value:function(e,t){e(navigator.productSub||t.NOT_AVAILABLE)}},{key:"vendorKey",value:function(e,t){e(navigator.vendor||t.NOT_AVAILABLE)}},{key:"vendorSubKey",value:function(e,t){e(navigator.vendorSub||t.NOT_AVAILABLE)}},{key:"doNotTrackKey",value:function(e,n){e(t.getDoNotTrack(n))}},{key:"incognitoKey",value:function(e,n){var r=t.getBrowserNameAndVersion().split(" "),i=r[0],o=r[1],a=n.NOT_AVAILABLE;if("Chrome"===i)if(parseInt(o)<=74){var s=window.RequestFileSystem||window.webkitRequestFileSystem;s?s(window.TEMPORARY,100,(function(t){e(!1)}),(function(t){e(!0)})):e(a)}else"storage"in navigator&&"estimate"in navigator.storage?navigator.storage.estimate().then((function(t){var n=t.quota;e(a=n<125829120)})):e(a);else if("Safari"===i){if(a=!1,window.safariIncognito)a=!0;else{try{window.openDatabase(null,null,null,null)}catch(e){a=!0}try{window.localStorage.setItem("test",1)}catch(e){a=!0}}void 0===a&&(a=!1,window.localStorage.removeItem("test")),e(a)}else if("Firefox"===i){var c=indexedDB.open("test");c.onerror=function(){e(!0)},c.onsuccess=function(){e(!1)}}else e("IE"===i||"EDGE"===i?!window.indexedDB&&(window.PointerEvent||window.MSPointerEvent):a)}},{key:"getBrowserNameAndVersion",value:function(){var e,t=navigator.userAgent,n=t.match(/(opera|chrome|safari|firefox|msie|trident(?=\/))\/?\s*(\d+)/i)||[];return/trident/i.test(n[1])?"IE "+((e=/\brv[ :]+(\d+)/g.exec(t)||[])[1]||""):"Chrome"===n[1]&&null!=(e=t.match(/\b(OPR|Edge)\/(\d+)/))?e.slice(1).join(" ").replace("OPR","Opera"):(n=n[2]?[n[1],n[2]]:[navigator.appName,navigator.appVersion,"-?"],null!=(e=t.match(/version\/(\d+)/i))&&n.splice(1,1,e[1]),n.join(" "))}},{key:"canvasKey",value:function(e,n){t.isCanvasSupported()?e(t.getCanvasFp(n)):e(n.NOT_AVAILABLE)}},{key:"webglKey",value:function(e,n){t.isWebGlSupported()?e(t.getWebglFp(n)):e(n.NOT_AVAILABLE)}},{key:"javascriptsKey",value:function(e,t){if(void 0===document.scripts||null===document.scripts)return e(t.NOT_AVAILABLE);e([])}},{key:"locationKey",value:function(e,t){e({hash:location.hash||t.NOT_AVAILABLE,host:location.host||t.NOT_AVAILABLE,hostname:location.hostname||t.NOT_AVAILABLE,href:location.href||t.NOT_AVAILABLE,origin:location.origin||t.NOT_AVAILABLE,pathname:location.pathname||t.NOT_AVAILABLE,port:location.port||t.NOT_AVAILABLE,protocol:location.protocol||t.NOT_AVAILABLE})}},{key:"signalsKey",value:function(e){e(t.getSignals())}},{key:"getSignals",value:function(){var e={adBlockInstalled:function(){return t.getAdBlock()},liedLanguages:function(){return t.getHasLiedLanguages()},liedResolution:function(){return t.getHasLiedResolution()},liedOS:function(){return t.getHasLiedOs()},liedBrowser:function(){return t.getHasLiedBrowser()}},n={};for(var r in e)if(e.hasOwnProperty(r)){var i=e[r];n[r]=i(r)}return n}},{key:"flashFontsKey",value:function(e,n){return t.hasSwfObjectLoaded()?t.hasMinFlashInstalled()?n.fonts.swfPath?void t.loadSwfAndDetectFonts((function(t){e(t)}),n):e("missing options.fonts.swfPath"):e("flash not installed"):e("swf object not loaded")}},{key:"jsFontsKey",value:function(t,n){var r=["monospace","sans-serif","serif"],i=["Andale Mono","Arial","Arial Black","Arial Hebrew","Arial MT","Arial Narrow","Arial Rounded MT Bold","Arial Unicode MS","Bitstream Vera Sans Mono","Book Antiqua","Bookman Old Style","Calibri","Cambria","Cambria Math","Century","Century Gothic","Century Schoolbook","Comic Sans","Comic Sans MS","Consolas","Courier","Courier New","Geneva","Georgia","Helvetica","Helvetica Neue","Impact","Lucida Bright","Lucida Calligraphy","Lucida Console","Lucida Fax","LUCIDA GRANDE","Lucida Handwriting","Lucida Sans","Lucida Sans Typewriter","Lucida Sans Unicode","Microsoft Sans Serif","Monaco","Monotype Corsiva","MS Gothic","MS Outlook","MS PGothic","MS Reference Sans Serif","MS Sans Serif","MS Serif","MYRIAD","MYRIAD PRO","Palatino","Palatino Linotype","Segoe Print","Segoe Script","Segoe UI","Segoe UI Light","Segoe UI Semibold","Segoe UI Symbol","Tahoma","Times","Times New Roman","Times New Roman PS","Trebuchet MS","Verdana","Wingdings","Wingdings 2","Wingdings 3"];void 0!==n.fonts&&void 0!==n.fonts.extendedJsFonts&&(i=i.concat(n.fonts.extendedJsFonts)),void 0!==n.fonts&&void 0!==n.fonts.userDefinedFonts&&(i=i.concat(n.fonts.userDefinedFonts)),i=i.filter((function(e,t){return i.indexOf(e)===t}));var o=document.getElementsByTagName("body")[0],a=document.createElement("div"),s=document.createElement("div"),c={},u={},l=function(){var e=document.createElement("span");return e.style.position="absolute",e.style.left="-9999px",e.style.fontSize="72px",e.style.fontStyle="normal",e.style.fontWeight="normal",e.style.letterSpacing="normal",e.style.lineBreak="auto",e.style.lineHeight="normal",e.style.textTransform="none",e.style.textAlign="left",e.style.textDecoration="none",e.style.textShadow="none",e.style.whiteSpace="normal",e.style.wordBreak="normal",e.style.wordSpacing="normal",e.textContent="mmmmmmmmmmlli",e},d=function(e,t){var n=l();return n.style.fontFamily="'"+e+"',"+t,n},f=function(e){for(var t=!1,n=0;n<r.length;n++)if(t=e[n].offsetWidth!==c[r[n]]||e[n].offsetHeight!==u[r[n]])return t;return t},h=function(){for(var e=[],t=0,n=r.length;t<n;t++){var i=l();i.style.fontFamily=r[t],a.appendChild(i),e.push(i)}return e}();o.appendChild(a);for(var p=0,v=r.length;p<v;p++)c[r[p]]=h[p].offsetWidth,u[r[p]]=h[p].offsetHeight;var g=function(){for(var e={},t=0,n=i.length;t<n;t++){for(var o=[],a=0,c=r.length;a<c;a++){var u=d(i[t],r[a]);s.appendChild(u),o.push(u)}e[i[t]]=o}return e}();o.appendChild(s);for(var m=[],y=0,b=i.length;y<b;y++)f(g[i[y]])&&m.push(i[y]);o.removeChild(s),o.removeChild(a);var E={};E.fontsHash=e.x64hash128(m.join(),23),n.fonts.hashOnly||(E.lists=m),t(E)}},{key:"mimetypesComponent",value:function(e,t){if(void 0!==navigator.mimeTypes&&null!==navigator.mimeTypes){for(var n=navigator.mimeTypes,r=[],i=0;i<n.length;i++){var o={};o.type=n[i].type,o.suffixes=n[i].suffixes,o.description=n[i].description,r.push(o)}e(r)}else e(t.NOT_AVAILABLE)}},{key:"pluginsComponent",value:function(e,n){t.isIE()?n.plugins.excludeIE?e(n.EXCLUDED):e(t.getIEPlugins(n)):e(t.getRegularPlugins(n))}},{key:"getRegularPlugins",value:function(e){if(void 0===navigator.plugins||null===navigator.plugins)return e.NOT_AVAILABLE;for(var n=[],r=0,i=navigator.plugins.length;r<i;r++)navigator.plugins[r]&&n.push(navigator.plugins[r]);return n.length>0&&t.pluginsShouldBeSorted(e)&&(n=n.sort((function(e,t){return e.name>t.name?1:e.name<t.name?-1:0}))),t.map(n,(function(e){var n=t.map(e,(function(e){return[e.type,e.suffixes]}));return[e.name,e.description,n]}))}},{key:"getIEPlugins",value:function(e){var n=[];return Object.getOwnPropertyDescriptor&&Object.getOwnPropertyDescriptor(window,"ActiveXObject")||"ActiveXObject"in window?n=t.map(["AcroPDF.PDF","Adodb.Stream","AgControl.AgControl","DevalVRXCtrl.DevalVRXCtrl.1","MacromediaFlashPaper.MacromediaFlashPaper","Msxml2.DOMDocument","Msxml2.XMLHTTP","PDF.PdfCtrl","QuickTime.QuickTime","QuickTimeCheckObject.QuickTimeCheck.1","RealPlayer","RealPlayer.RealPlayer(tm) ActiveX Control (32-bit)","RealVideo.RealVideo(tm) ActiveX Control (32-bit)","Scripting.Dictionary","SWCtl.SWCtl","Shell.UIHelper","ShockwaveFlash.ShockwaveFlash","Skype.Detection","TDCCtl.TDCCtl","WMPlayer.OCX","rmocx.RealPlayer G2 Control","rmocx.RealPlayer G2 Control.1"],(function(t){try{return new window.ActiveXObject(t),t}catch(t){return e.ERROR}})):n.push(e.NOT_AVAILABLE),navigator.plugins&&(n=n.concat(t.getRegularPlugins(e))),n}},{key:"pluginsShouldBeSorted",value:function(e){for(var t=!1,n=0,r=e.plugins.sortPluginsFor.length;n<r;n++){var i=e.plugins.sortPluginsFor[n];if(navigator.userAgent.match(i)){t=!0;break}}return t}},{key:"batteryKey",value:function(e,t){void 0!==navigator.getBattery?navigator.getBattery().then((function(t){var n={};n.level=t.level,n.charging=t.charging,n.chargingTime=t.chargingTime,n.dischargingTime=t.dischargingTime,e(n)})):e(t.NOT_AVAILABLE)}},{key:"networkInfoKey",value:function(e,t){var n=navigator.connection;e(void 0!==n?{downlink:n.downlink,downlinkMax:n.downlinkMax,type:n.type,effectiveType:n.effectiveType,rtt:n.rtt,saveData:n.saveData}:t.NOT_AVAILABLE)}},{key:"touchSupportKey",value:function(e){e(t.getTouchSupport())}},{key:"hardwareConcurrencyKey",value:function(e,n){e(t.getHardwareConcurrency(n))}},{key:"hasSessionStorage",value:function(e){try{return!!window.sessionStorage}catch(t){return e.ERROR}}},{key:"hasLocalStorage",value:function(e){try{return!!window.localStorage}catch(t){return e.ERROR}}},{key:"hasIndexedDB",value:function(e){try{return!!window.indexedDB}catch(t){return e.ERROR}}},{key:"getHardwareConcurrency",value:function(e){return navigator.hardwareConcurrency?navigator.hardwareConcurrency:e.NOT_AVAILABLE}},{key:"getNavigatorCpuClass",value:function(e){return navigator.cpuClass||e.NOT_AVAILABLE}},{key:"getNavigatorPlatform",value:function(e){return navigator.platform?navigator.platform:e.NOT_AVAILABLE}},{key:"getDoNotTrack",value:function(e){return navigator.doNotTrack?navigator.doNotTrack:navigator.msDoNotTrack?navigator.msDoNotTrack:window.doNotTrack?window.doNotTrack:e.NOT_AVAILABLE}},{key:"getTouchSupport",value:function(){var e,t=0;void 0!==navigator.maxTouchPoints?t=navigator.maxTouchPoints:void 0!==navigator.msMaxTouchPoints&&(t=navigator.msMaxTouchPoints);try{document.createEvent("TouchEvent"),e=!0}catch(t){e=!1}return{maxTouchPoints:t,touchEvent:e,touchStart:"ontouchstart"in window}}},{key:"getCanvasFp",value:function(t){var n={},r=document.createElement("canvas");r.width=2e3,r.height=200,r.style.display="inline";var i=r.getContext("2d");return i.rect(0,0,10,10),i.rect(2,2,6,6),n.canvasWinding=!1===i.isPointInPath(5,5,"evenodd")?"yes":"no",i.textBaseline="alphabetic",i.fillStyle="#f60",i.fillRect(125,1,62,20),i.fillStyle="#069",t.dontUseFakeFontInCanvas?i.font="11pt Arial":i.font="11pt no-real-font-123",i.fillText("Cwm fjordbank glyphs vext quiz, 😃",2,15),i.fillStyle="rgba(102, 204, 0, 0.2)",i.font="18pt Arial",i.fillText("Cwm fjordbank glyphs vext quiz, 😃",4,45),i.globalCompositeOperation="multiply",i.fillStyle="rgb(255,0,255)",i.beginPath(),i.arc(50,50,50,0,2*Math.PI,!0),i.closePath(),i.fill(),i.fillStyle="rgb(0,255,255)",i.beginPath(),i.arc(100,50,50,0,2*Math.PI,!0),i.closePath(),i.fill(),i.fillStyle="rgb(255,255,0)",i.beginPath(),i.arc(75,100,50,0,2*Math.PI,!0),i.closePath(),i.fill(),i.fillStyle="rgb(255,0,255)",i.arc(75,75,75,0,2*Math.PI,!0),i.arc(75,75,25,0,2*Math.PI,!0),i.fill("evenodd"),r.toDataURL&&(n.canvasHash=e.x64hash128(r.toDataURL(),23)),n}},{key:"getWebglFp",value:function(n){var r,i=function(e){return r.clearColor(0,0,0,1),r.enable(r.DEPTH_TEST),r.depthFunc(r.LEQUAL),r.clear(r.COLOR_BUFFER_BIT|r.DEPTH_BUFFER_BIT),"["+e[0]+", "+e[1]+"]"};if(!(r=t.getWebglCanvas()))return null;var o={},a=r.createBuffer();r.bindBuffer(r.ARRAY_BUFFER,a);var s=new Float32Array([-.2,-.9,0,.4,-.26,0,0,.732134444,0]);r.bufferData(r.ARRAY_BUFFER,s,r.STATIC_DRAW),a.itemSize=3,a.numItems=3;var c=r.createProgram(),u=r.createShader(r.VERTEX_SHADER);r.shaderSource(u,"attribute vec2 attrVertex;varying vec2 varyinTexCoordinate;uniform vec2 uniformOffset;void main(){varyinTexCoordinate=attrVertex+uniformOffset;gl_Position=vec4(attrVertex,0,1);}"),r.compileShader(u);var l=r.createShader(r.FRAGMENT_SHADER);r.shaderSource(l,"precision mediump float;varying vec2 varyinTexCoordinate;void main() {gl_FragColor=vec4(varyinTexCoordinate,0,1);}"),r.compileShader(l),r.attachShader(c,u),r.attachShader(c,l),r.linkProgram(c),r.useProgram(c),c.vertexPosAttrib=r.getAttribLocation(c,"attrVertex"),c.offsetUniform=r.getUniformLocation(c,"uniformOffset"),r.enableVertexAttribArray(c.vertexPosArray),r.vertexAttribPointer(c.vertexPosAttrib,a.itemSize,r.FLOAT,!1,0,0),r.uniform2f(c.offsetUniform,1,1),r.drawArrays(r.TRIANGLE_STRIP,0,a.numItems);try{o.webglHash=e.x64hash128(r.canvas.toDataURL(),23)}catch(e){}if(n.webgl.hashOnly)return o;o.vendorAndRenderer=t.getWebglVendorAndRenderer(),o.extensions=r.getSupportedExtensions()||[],o["webgl aliased line width range"]=i(r.getParameter(r.ALIASED_LINE_WIDTH_RANGE)),o["webgl aliased point size range"]=i(r.getParameter(r.ALIASED_POINT_SIZE_RANGE)),o["webgl alpha bits"]=r.getParameter(r.ALPHA_BITS),o["webgl antialiasing"]=r.getContextAttributes().antialias?"yes":"no",o["webgl blue bits"]=r.getParameter(r.BLUE_BITS),o["webgl depth bits"]=r.getParameter(r.DEPTH_BITS),o["webgl green bits"]=r.getParameter(r.GREEN_BITS),o["webgl max anisotropy"]=function(e){var t=e.getExtension("EXT_texture_filter_anisotropic")||e.getExtension("WEBKIT_EXT_texture_filter_anisotropic")||e.getExtension("MOZ_EXT_texture_filter_anisotropic");if(t){var n=e.getParameter(t.MAX_TEXTURE_MAX_ANISOTROPY_EXT);return 0===n&&(n=2),n}return null}(r),o["webgl max combined texture image units"]=r.getParameter(r.MAX_COMBINED_TEXTURE_IMAGE_UNITS),o["webgl max cube map texture size"]=r.getParameter(r.MAX_CUBE_MAP_TEXTURE_SIZE),o["webgl max fragment uniform vectors"]=r.getParameter(r.MAX_FRAGMENT_UNIFORM_VECTORS),o["webgl max render buffer size"]=r.getParameter(r.MAX_RENDERBUFFER_SIZE),o["webgl max texture image units"]=r.getParameter(r.MAX_TEXTURE_IMAGE_UNITS),o["webgl max texture size"]=r.getParameter(r.MAX_TEXTURE_SIZE),o["webgl max varying vectors"]=r.getParameter(r.MAX_VARYING_VECTORS),o["webgl max vertex attribs"]=r.getParameter(r.MAX_VERTEX_ATTRIBS),o["webgl max vertex texture image units"]=r.getParameter(r.MAX_VERTEX_TEXTURE_IMAGE_UNITS),o["webgl max vertex uniform vectors"]=r.getParameter(r.MAX_VERTEX_UNIFORM_VECTORS),o["webgl max viewport dims"]=i(r.getParameter(r.MAX_VIEWPORT_DIMS)),o["webgl red bits"]=r.getParameter(r.RED_BITS),o["webgl renderer"]=r.getParameter(r.RENDERER),o["webgl shading language version"]=r.getParameter(r.SHADING_LANGUAGE_VERSION),o["webgl stencil bits"]=r.getParameter(r.STENCIL_BITS),o["webgl vendor"]=r.getParameter(r.VENDOR),o["webgl version"]=r.getParameter(r.VERSION);try{var d=r.getExtension("WEBGL_debug_renderer_info");d&&(o["webgl unmasked vendor"]=r.getParameter(d.UNMASKED_VENDOR_WEBGL),o["webgl unmasked renderer"]=r.getParameter(d.UNMASKED_RENDERER_WEBGL))}catch(e){}return r.getShaderPrecisionFormat?(t.each(["FLOAT","INT"],(function(e){t.each(["VERTEX","FRAGMENT"],(function(n){t.each(["HIGH","MEDIUM","LOW"],(function(i){t.each(["precision","rangeMin","rangeMax"],(function(t){var a=r.getShaderPrecisionFormat(r[n+"_SHADER"],r[i+"_"+e])[t];"precision"!==t&&(t="precision "+t);var s=["webgl ",n.toLowerCase()," shader ",i.toLowerCase()," ",e.toLowerCase()," ",t].join("");o[s]=a}))}))}))})),o):o}},{key:"getWebglVendorAndRenderer",value:function(){try{var e=t.getWebglCanvas(),n=e.getExtension("WEBGL_debug_renderer_info");return e.getParameter(n.UNMASKED_VENDOR_WEBGL)+"~"+e.getParameter(n.UNMASKED_RENDERER_WEBGL)}catch(e){return null}}},{key:"getAdBlock",value:function(){var e=document.createElement("div");e.innerHTML="&nbsp;",e.className="adsbox";var t=!1;try{document.body.appendChild(e),t=0===document.getElementsByClassName("adsbox")[0].offsetHeight,document.body.removeChild(e)}catch(e){t=!1}return t}},{key:"getHasLiedLanguages",value:function(){if(void 0!==navigator.languages)try{if(navigator.languages[0].substr(0,2)!==navigator.language.substr(0,2))return!0}catch(e){return!0}return!1}},{key:"getHasLiedResolution",value:function(){return window.screen.width<window.screen.availWidth||window.screen.height<window.screen.availHeight}},{key:"getHasLiedOs",value:function(){var e,t=navigator.userAgent.toLowerCase(),n=navigator.oscpu,r=navigator.platform.toLowerCase();if(e=t.indexOf("windows phone")>=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;t<e.length;t++){var n=e[t].split("=");if(n.length>1&&"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 o=["".concat(e,"=").concat(t,"; path=").concat(i,"; secure=true")];"string"==typeof r&&r.length>0&&o.push("domain="+r),o.push("expires="+(n instanceof Date?n.toUTCString():n)),document.cookie=o.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",o="RECAPTCHA_V3_WEB";function a(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 s(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 c(e){var t=document.getElementsByClassName(e);return void 0!==t&&t.length>=1}var u=function(){function e(){R(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<i;r++)n[r]=e.charCodeAt(r);return t}},{key:"encode",value:function(e){return window.btoa(String.fromCharCode.apply(null,e))}},{key:"importPk",value:function(t,n,r){var i=window.atob(n),o=e.str2ab(i);return window.crypto.subtle.importKey(t,o,{name:"RSA-OAEP",hash:"SHA-256"},!0,r)}},{key:"wrap",value:function(t,n){return e.importPk("spki",n,["wrapKey"]).then((function(e){return window.crypto.subtle.wrapKey("raw",t,e,{name:"RSA-OAEP"})})).then((function(t){return e.encode(new Uint8Array(t))}))}},{key:"wrapErrorResult",value:function(e){var t={a:null,b:null,c:null};return t.error=e,t}},{key:"encryptWithKey",value:function(t,n,r){var i={a:null,b:null,c:null};try{var o=Date.now();if("string"!=typeof n||"number"!=typeof r)throw new Error("ec1");var a=window.crypto.getRandomValues(new Uint8Array(16));i.a=e.encode(a);var s=(new TextEncoder).encode(t),c="AES-CBC";return window.crypto.subtle.generateKey({name:c,length:256},!0,["encrypt","decrypt"]).then((function(t){return window.crypto.subtle.encrypt({name:c,iv:a},t,s).then((function(a){return e.wrap(t,n).then((function(t){return i.b=t,i.c=e.encode(new Uint8Array(a)),i.d=Date.now()-o,i.e=r,i}))}))})).catch((function(e){return i.error=String(e),i}))}catch(t){return i.error=String(t),Promise.resolve(i)}}},{key:"encryptWithKeyIds",value:function(t,n,r,i){if("string"!=typeof n||"string"!=typeof r)return Promise.resolve(e.wrapErrorResult("Error: ec2"));var o=a(n),s=parseInt(a(r));return(""===o||"string"!=typeof o||"number"!=typeof s||Number.isNaN(s))&&(o=i?"MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAqyVTa3Pi5twlDxHc34nl3MlTHOweIenIid6hDqVlh5/wcHzIxvB9nZjObW3HWfwqejGM+n2ZGbo9x8R7ByS3/V4qRgAs1z4aB6F5+HcXsx8uVrQfwigK0+u7d3g1s7H8qUaguMPHxNnyj5EisTJBh2jf9ODp8TpWnhAQHCCSZcDM4JIoIlsVdGmv+dGlzZzmf1if26U4KJqFdrqS83r3nGWcEpXWiQB+mx/EX4brbrhOFCvfPovvsLEjMTm0UC68Bvki3UsB/vkkMPW9cxNiiJJdnDkOEEdQPuFmPug+sqhACl3IIHLVBFM7vO0ca14rcCNSbSDaaKOY6BQoW1A30wIDAQAB":"MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAtw/ArJ9dD6hi+jrX6ZpRqwk2Mm5v3EElQGhzSngYHAm7gvdcAEj6sbU4HhrXs3+TZamDV+RHwL+rDT+TtD8ZJBaVbA+wRDdIezECZT+WNZw2SMkjAsX0OynAT/wowGfE72zMhYc4byGfQmtAQrUL2iJ19KIJj0aZ4m41kvnBHMZbwO52+ceyQhqAzB7bn6U//QHJySHgjaOsgkpPnuxZUz6ly+FrKveQp+bNIfh8R5GO2ABRoeBL4c3jip/UjmmnfYE3xdzubni1a6WQ6YTTb6ZEJSgQTp/Rc+o/btcKkTIqDcXvGbO0iAxev8EXV7GtkRguqgfwaURAaps9Nes5NwIDAQAB",s=i?2:1),e.encryptWithKey(t,o,s)}},{key:"encryptWithKeyFromDifferentSources",value:function(t,n,r,i,o){return null!=i&&"string"==typeof i.publicKey&&"number"==typeof i.publicKeyVersion?e.encryptWithKey(t,i.publicKey,i.publicKeyVersion):e.encryptWithKeyIds(t,n,r,o)}},{key:"uuidv4",value:function(){return([1e7]+-1e3+-4e3+-8e3+-1e11).replace(/[018]/g,(function(e){return(e^window.crypto.getRandomValues(new Uint8Array(1))[0]&15>>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}(),l=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,o,a={},s={},c="",u="",l="",d=2,f=3,h=2,p=[],v=0,g=0;for(o=0;o<e.length;o+=1)if(c=e.charAt(o),Object.prototype.hasOwnProperty.call(a,c)||(a[c]=f++,s[c]=!0),u=l+c,Object.prototype.hasOwnProperty.call(a,u))l=u;else{if(Object.prototype.hasOwnProperty.call(s,l)){if(l.charCodeAt(0)<256){for(r=0;r<h;r++)v<<=1,g==t-1?(g=0,p.push(n(v)),v=0):g++;for(i=l.charCodeAt(0),r=0;r<8;r++)v=v<<1|1&i,g==t-1?(g=0,p.push(n(v)),v=0):g++,i>>=1}else{for(i=1,r=0;r<h;r++)v=v<<1|i,g==t-1?(g=0,p.push(n(v)),v=0):g++,i=0;for(i=l.charCodeAt(0),r=0;r<16;r++)v=v<<1|1&i,g==t-1?(g=0,p.push(n(v)),v=0):g++,i>>=1}0==--d&&(d=Math.pow(2,h),h++),delete s[l]}else for(i=a[l],r=0;r<h;r++)v=v<<1|1&i,g==t-1?(g=0,p.push(n(v)),v=0):g++,i>>=1;0==--d&&(d=Math.pow(2,h),h++),a[u]=f++,l=String(c)}if(""!==l){if(Object.prototype.hasOwnProperty.call(s,l)){if(l.charCodeAt(0)<256){for(r=0;r<h;r++)v<<=1,g==t-1?(g=0,p.push(n(v)),v=0):g++;for(i=l.charCodeAt(0),r=0;r<8;r++)v=v<<1|1&i,g==t-1?(g=0,p.push(n(v)),v=0):g++,i>>=1}else{for(i=1,r=0;r<h;r++)v=v<<1|i,g==t-1?(g=0,p.push(n(v)),v=0):g++,i=0;for(i=l.charCodeAt(0),r=0;r<16;r++)v=v<<1|1&i,g==t-1?(g=0,p.push(n(v)),v=0):g++,i>>=1}0==--d&&(d=Math.pow(2,h),h++),delete s[l]}else for(i=a[l],r=0;r<h;r++)v=v<<1|1&i,g==t-1?(g=0,p.push(n(v)),v=0):g++,i>>=1;0==--d&&(d=Math.pow(2,h),h++)}for(i=2,r=0;r<h;r++)v=v<<1|1&i,g==t-1?(g=0,p.push(n(v)),v=0):g++,i>>=1;for(;;){if(v<<=1,g==t-1){p.push(n(v));break}g++}return p.join("")}};return e}(),d={apfcTypes:1,collectionType:2,trackingId:3},f={protocol:1,hostname:2,port:3,origin:4,host:5,href:6,hash:7,pathname:8},h={saveData:1,effectiveType:2,rtt:3,downlink:4,downlinkMax:5,type:6},p={liedOS:1,liedBrowser:2,liedResolution:3,adBlockInstalled:4,liedLanguages:5},v={type:1,description:2,suffixes:3},g={canvasHash:1,canvasWinding:2},m={label:1,gid:2,id:3,kind:4},y={lists:1,fontsHash:2},b={Orientation:1,Enabled:2},E={charging:1,dischargingTime:2,level:3,chargingTime:4},w={touchStart:1,touchEvent:2,maxTouchPoints:3},T={"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,extensions:66},_={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},S={"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},C={appVersion:1,numOfCores:2,webrtc:3,touchSupport:4,webgl:5,timezone:6,plugins:7,localStorage:8,incognito:9,language:10,appCodeName:11,battery:12,platform:13,javascripts:14,automation:15,pixelDepth:16,screenOrientation:17,availableScreenResolution:18,timezoneOffset:19,oscpu:20,fonts:21,vendor:22,sessionStorage:23,webdriver:24,audio:25,openDatabase:26,screenResolution:27,vendorSub:28,enumerateDevices:29,product:30,canvas:31,appName:32,mimetyps:33,cpuClass:34,indexedDb:35,userAgent:36,deviceMemory:37,productSub:38,addBehavior:39,signals:40,networkInfo:41,location:42,colorDepth:43,FPDataCookie:44,tsSeed:45,errors:46,pixelRatio:47};function k(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function I(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var L=new RegExp("urn:[^:]+:([a-z]\\w*)(?::(.+))?"),D=/^fs_/;var N,M,P=/(?![^(]*\)),/,x=function e(t){var n=function(e){if("string"!=typeof e)throw new TypeError("URNs must be of type string, but the parameter passed to extractEntityInfoFromUrn was of type "+A(e)+".");var t,n,r=L.exec(e);return r&&(t=r[1].replace(D,""),n=r[2]),{id:n,type:t}}(t),r=n.id,i=n.type,o={};if("("===r.charAt(0)){for(var a,s=r.substring(1,r.length-1).split(P),c=0;a=s[c];++c)0===a.indexOf("urn")&&(s[c]=e(a));r=s}return o[i]=r,o},F=function(e,t){var n=t.match(new RegExp("(?:^|; *)".concat(e,"=([^;]*)")));return n&&n.length>1?n[1]:null},B={ADVERTISING:"ADVERTISING",ANALYTICS_AND_RESEARCH:"ANALYTICS_AND_RESEARCH",FUNCTIONAL:"FUNCTIONAL"},U="GUEST",H="MEMBER",K="ENTERPRISE_UNBOUND",j=(k(N={},U,"li_gc"),k(N,H,"li_mc"),k(N,K,"li_ec"),N);k(M={},U,"mypreferences/g/guest-cookies"),k(M,H,"settings/member-cookies"),k(M,K,"mypreferences/e/enterprise-cookies");var q,V,W,G,z=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 o 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={},B)t[o]=t[o]||0,0!==t[o]&&(this.consentAvailable=!0),this.optedInConsentMap[o]=1===t[o]||0===t[o]&&1===i},X=(q=[B.ADVERTISING,B.ANALYTICS_AND_RESEARCH,B.FUNCTIONAL],V=[0,1,2,0],W=function(e){for(var t={},n=0;n<q.length;n++)t[q[n]]=V[e>>2*n&3];return t},G=function(e){var t=0;return e>=0&&e<=3&&(t=V[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 z};var i=W(parseInt(r[1],10)),o=new Date(1e3*parseInt(r[2],10)),a=G(parseInt(r[3],10));return{error:null,consent:new z(i,o,t,a)}},parseConsentBodyEnterpriseUnbound:function(e,t,n){var r=function(e){try{var t=x(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 z};var i=r.enterpriseAccountId,o=r.enterpriseProfileId,a=new RegExp(["^((?:\\d+,\\d+,\\d+,\\d+,\\d+)(?:\\|(?:\\d+,\\d+,\\d+,\\d+,\\d+))*)","(\\d+)","(\\d+)","(?:(?:.|\\s)+)$"].join(";")),s=e.match(a);if(!s)return{error:"Invalid consent body encoding",consent:new z};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,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),4!==n.length);r=!0);}catch(e){i=!0,o=e}finally{try{r||null==s.return||s.return()}finally{if(i)throw o}}return n}}(e)||function(e,t){if(e){if("string"==typeof e)return I(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)?I(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],a=t[2],s=t[3];return r===i&&a===o&&s===n}))[0];if(!c)return{error:null,consent:new z};var u=W(c[0]),l=new Date(1e3*parseInt(s[2],10)),d=G(parseInt(s[3],10));return{error:null,consent:new z(u,l,K,d)}}}),J=new RegExp(["^(\\d+)","((?:.|\\s)+)"].join(";")),Q=function(e){var t={};for(var n in B)t[n]=e;return{error:null,consent:new z(t,null,null,e)}},Y=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,o=null;try{o=(i=e,"undefined"==typeof atob&&"undefined"!=typeof Buffer?Buffer.from(i,"base64").toString("binary"):atob(i)).match(J)}catch(e){}if(!o)return{error:"Invalid consent encoding",consent:new z};var a=parseInt(o[1],10),s=o[2];return 1===a?t===K?X.parseConsentBodyEnterpriseUnbound(s,n,r):X.parseConsentBody(s,t):{error:"Invalid encoded consent version ".concat(a),consent:new z}},$=new Map([["/voyager/api/voyagerSocialDashNormComments","createComment"],["/signup/cold-join","createAccount"],["/signup/api/createAccount","createAccount"],["/signup/api/cors/createAccount","createAccount"]]);function Z(e){var t;try{t=new URL(e)}catch(n){t=new URL(e,window.location.origin)}return t.pathname}var ee=function(){function e(t,n){R(this,e),this.callback=t,this.config=n,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=Z(n);t.runActionInterceptorLogic(i)}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=Z(n)}catch(e){}e.apply(this,arguments)},XMLHttpRequest.prototype.send=function(e){try{n.runActionInterceptorLogic(this._sanitizedPath)}catch(e){}t.apply(this,arguments)}}},{key:"runActionInterceptorLogic",value:function(e){if(e){var t=$.get(e),n=this.callback;void 0!==t&&window.grecaptcha&&window.grecaptcha.enterprise&&window.grecaptcha.enterprise.ready&&window.grecaptcha.enterprise.execute&&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(o,JSON.stringify(r))})).catch((function(e){var t={error:e};n(o,JSON.stringify(t))}))}))}}}]),e}(),te={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},ne=!1;try{var re=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 z};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 z};if(!(e!==K||r&&i))return{error:"enterpriseProfileUrn and enterpriseAppInstanceId are required for unbound userMode",consent:new z};if(!e){var o=F(j[K],t);if(o&&r&&i){var a=Y(o,K,r,i);if(a.consent.userMode===K||a.error)return a}e=F("liap",t)?F(j[H],t)?H:U:F(j[U],t)?U:H}return function(e,t,n,r){var i=F(j[e],t);return i?Y(i,e,n,r):F(j[U],t)||F(j[H],t)||F(j[K],t)?Q(2):Q(1)}(e,t,r,i)}().consent.optedInConsentMap;ne=re[B.FUNCTIONAL]}catch(e){}var ie=function(){function e(t,n,r){var i=this;if(R(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 o=JSON.parse(JSON.stringify(te));c("settings-iframe")||c("setting-headline")||(o.useRequestIdleCallBack=!1),this.initialize(o,t)}else{var a=JSON.parse(JSON.stringify(te));c("settings-iframe")||c("setting-headline")||(a.useRequestIdleCallBack=!1),"complete"===document.readyState?this.initialize(a):window.addEventListener("load",(function(){i.initialize(a)}))}}return O(e,[{key:"initializeGlobalIntegration",value:function(e,t){t.enableNetworkInterceptor&&!globalThis.apfcInterceptorInitialized&&(new ee(e,t),globalThis.apfcInterceptorInitialized=!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(te,e,t)}},{key:"checkConfigAndInitializeThirdPartyIntegration",value:function(e,t){(!0===t.enableOnDemandMode&&t.fpDataCookie.apfcTypes.includes(o)||!0===t.recaptchaV3IntegrationEnabled&&!0!==globalThis.reCaptchaV3InitializationComplete)&&(this.initializeReCaptchaV3Integration(),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)}},{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===ne||r-i>t)&&n.deleteItem("df_ts")}}},{key:"addDfCookieIfRequired",value:function(e){if(!0===ne&&"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!=a("apfcDfPK")){var r=this.reqid,i=this.pageInstance,o=this.isProd();return(new t).getFeatures((function(t,a){t.reqid=r,t.pageInstance=i,t.fullFeatureCollection=a,u.encryptWithKeyFromDifferentSources(JSON.stringify(t),"apfcDfPK","apfcDfPKV",n,o).then((function(t){globalThis.apfcDf=t,!0===a&&s(JSON.stringify(t),e.telemetryCollectPath,o)}))}),e)}globalThis.triggerApfc=this.reentry}},{key:"intializeGlobalIntegration",value:function(r,i,o){var a=this.isProd();return(new t).getFeatures((function(t,c){if(!0===c){if(e.prototype.populateFpDataCookie(t,o),!0===o.isSyncEnabledWithHeaders){var k=JSON.stringify(function(e){var t={};return function(e){var t=e.webgl,n={};if(void 0!==t&&void 0!==t.extensions&&null!==t&&null!==t.extensions){for(var r=t.extensions,i=[],o=0;o<r.length;o++){var a=r[o];i[o]=_.hasOwnProperty(a)?_[a]:a}t.extensions=i}null!=t&&(Object.keys(T).forEach((function(e){n[T[e]]=t[e]})),e.webgl=n)}(e),function(e){var t=e.touchSupport,n={};null!=t&&(Object.keys(w).forEach((function(e){n[w[e]]=t[e]})),e.touchSupport=n)}(e),function(e){var t=e.battery,n={};null!=t&&(Object.keys(E).forEach((function(e){n[E[e]]=t[e]})),e.battery=n)}(e),function(e){var t=e.screenOrientation,n={};null!=t&&(Object.keys(b).forEach((function(e){n[b[e]]=t[e]})),e.screenOrientation=n)}(e),function(e){var t=e.fonts,n={};if(void 0!==t&&void 0!==t.lists&&null!==t&&null!==t.lists){for(var r=t.lists,i=[],o=0;o<r.length;o++){var a=r[o];i[o]=S.hasOwnProperty(a)?S[a]:a}t.lists=i}null!=t&&(Object.keys(y).forEach((function(e){n[y[e]]=t[e]})),e.fonts=n)}(e),function(e){var t=e.enumerateDevices,n=[];if(null!=t){for(var r=function(){var e=t[i],r={};Object.keys(m).forEach((function(t){r[m[t]]=e[t]})),n[i]=r},i=0;i<t.length;i++)r();e.enumerateDevices=n}}(e),function(e){var t=e.canvas,n={};null!=t&&(Object.keys(g).forEach((function(e){n[g[e]]=t[e]})),e.canvas=n)}(e),function(e){var t=e.mimetyps,n=[];if(null!=t){for(var r=function(){var e=t[i],r={};Object.keys(v).forEach((function(t){r[v[t]]=e[t]})),n[i]=r},i=0;i<t.length;i++)r();e.mimetyps=n}}(e),function(e){var t=e.signals,n={};null!=t&&(Object.keys(p).forEach((function(e){n[p[e]]=t[e]})),e.signals=n)}(e),function(e){var t=e.networkInfo,n={};null!=t&&(Object.keys(h).forEach((function(e){n[h[e]]=t[e]})),e.networkInfo=n)}(e),function(e){var t=e.location,n={};null!=t&&(Object.keys(f).forEach((function(e){n[f[e]]=t[e]})),e.location=n)}(e),function(e){var t=e.FPDataCookie,n={};null!=t&&(Object.keys(d).forEach((function(e){n[d[e]]=t[e]})),e.FPDataCookie=n)}(e),Object.keys(C).forEach((function(n){t[C[n]]=e[n]})),t}(t));globalThis.apfcDfH=(I=k,l.compressToBase64(I))}u.encryptWithKeyIds(JSON.stringify(t),"apfcDfPK","apfcDfPKV").then((function(e){if(globalThis.apfcDf=e,!0===o.isSyncEnabledWithHeaders||!0===o.isSyncEnabledWithCb){var t=function(e){var t={};t[btoa("DNA_ENCRYPTED")]=e;var r={};return r.payload=t,r.browserId=n.getBcookie(),r}(e);s(JSON.stringify(t),r.gloablIntegrationDataCollectionPath,a)}i("DNA",JSON.stringify(e))})),globalThis.dnaIntegrationCompleted=!0}var I}),r)}},{key:"intializeDfpIntegration",value:function(t,r){var o=n.getBcookie(),a=this.isProd()?"fb6bbd47-fa7c-4264-b4e9-b25948407586":"ee078acd-0704-4344-9e5b-6b84b480c30a";try{if(RegExp("^[\\w-]*$").test(o)){var s="https://merchantpool1.linkedin.com/mdt.js?session_id=".concat(o,"&instanceId=").concat(a),c=document.createElement("script");c.setAttribute("src",s),c.setAttribute("id","dfpIframeScript"),c.addEventListener("load",(function(){return window.dfp.doFpt(document)})),document.getElementsByTagName("head")[0].appendChild(c);var u={sessionId:o,instanceId:a};e.prototype.populateFpDataCookie(u,r),t(i,JSON.stringify(u))}else{var l={error:"Invalid session_id: "+o};t(i,JSON.stringify(l))}}catch(r){var d={error:r};t(i,JSON.stringify(d))}globalThis.dfpIntegrationCompleted=!0}},{key:"initializeHumanIntegration",value:function(t,i){var o=i.treeId,a=Date.now(),s=this.isProd()?"PXdOjV695v":"PXgoH0hfKu",c=n.getBcookie(),l="https://li.protechts.net/index.html?ts="+a+"&r_id="+encodeURIComponent(o)+"&app_id="+s+"&uc=scraping";u.generateSha256HashOrDefault(c).then((function(n){""!==(c=n)&&(l+="&d_id="+c);try{var u=document.createElement("iframe");u.setAttribute("id","humanThirdPartyIframe"),u.setAttribute("src",l),u.setAttribute("sandbox","allow-same-origin allow-scripts"),u.setAttribute("aria-hidden","true"),u.style.height="0px",u.style.width="0px",u.style.border="none",u.style.position="absolute",u.style.left="-9999px",document.body.appendChild(u);var d={app_id:s,ts:a,d_id:c,r_id:o,uc:"scraping"};e.prototype.populateFpDataCookie(d,i),t(r,JSON.stringify(d))}catch(e){var f={error:e};t(r,JSON.stringify(f))}})),globalThis.humanIntegrationCompleted=!0}},{key:"initializeReCaptchaV3Integration",value:function(){var e=new MutationObserver((function(){var t=document.querySelector(".grecaptcha-badge");t&&(t.style.display="none",e.disconnect())}));e.observe(document.body,{childList:!0,subtree:!0});var t=document.createElement("script");t.src="https://www.google.com/recaptcha/enterprise.js?render=6LcIy_MqAAAAAMKiupFSbmzW3xjGSlIfRzNWYMjC",document.head.appendChild(t)}}]),e}();ie.prototype.reentry=function(e){globalThis.triggerApfc=null,new ie(e)},ie.prototype.reentryGlobalIntegration=function(e,t){globalThis.triggerDnaApfcEvent=null,new ie({globalIntegration:"enabled"},e,t)},ie.prototype.reentryGlobalIntegrationOnDemand=function(e,t){if(void 0!==t&&void 0!==e){var n=ie.prototype.extractDataCookie();!0===t.onlyOnDemandFlow&&null===n||(t.fpDataCookie=n,null!==n&&(t.enableOnDemandMode=!0),ie.prototype.reentryGlobalIntegration(e,t))}},ie.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},ie.prototype.populateFpDataCookie=function(e,t){"object"==A(e)&&"object"==A(t)&&(e.FPDataCookie=t.fpDataCookie)},ie.prototype.isProd=function(){var e=location&&location.host;return e&&e.indexOf(".linkedin.com")>-1&&!e.startsWith("pemberly")},ie.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=ie.prototype.reentryGlobalIntegration),void 0===globalThis.triggerDnaApfcEventOnDemand&&(globalThis.triggerDnaApfcEventOnDemand=ie.prototype.reentryGlobalIntegrationOnDemand),(void 0===globalThis.maxApfcVersion||2>globalThis.maxApfcVersion)&&(globalThis.maxApfcVersion=2,globalThis.triggerDnaApfcEventOnDemandVersioned=ie.prototype.reentryGlobalIntegrationOnDemand),new ie)}();var Xr=function(){function e(){R(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}(),Jr=function(){function e(t,n,r,i,o,a,s,c,u,l){R(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 Er),D(this,"trackingEndpointPattern",void 0),this.hostApis=t,this.statics=n,this.options=r,this.allowTimingOrigin=i,this.fireResourceLoadEvent=o,this.isTracerEnabled=a,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 zr(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(Hr=Hr||t.createElement("a")).href=e,Hr.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:jr(this.hostApis.performance,this.allowTimingOrigin)})}},{key:"recordRenderEnd",value:function(e,t,n){var r=this.renderTimings.get(e);if(r&&(r.renderEnd=r.renderEnd||jr(this.hostApis.performance,this.allowTimingOrigin),t))return n?this.collectViewLoadEventData(r,n):void qt("ViewLoadEvent",mr)}},{key:"collectViewLoadEventData",value:function(e,t){var n=e.renderName,r=e.renderEnd,i=void 0===r?-1:r,o=e.renderStart,a=void 0===o?-1:o,s=[];return s.push({viewProgressType:"RENDER_START",timestamp:a}),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 o=this.collectAsynchronousData();return"then"in o?o.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,o=i.webUIFramework,a=i.timeSource,s=i.isSinglePageApp,c=i.appRenderMode,u=i.isAppRenderFailed,l=i.isFromServiceWorker,d=i.treeId;return r.treeId=d,r.browserPageLoadStartContext={webUIFramework:o,timeSource:a,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,o=this.hostApis.assign;if(r){var a=Yr(this.hostApis.performance),s=a.htmlMetrics,c=a.redirectCount,u=a.navigationType,l=a.workerStart;s&&(t.browserPageLoadEndContext.htmlMetrics=Object.create(null),o(t.browserPageLoadEndContext.htmlMetrics,s)),Object.prototype.hasOwnProperty.call(a,"redirectCount")&&(n.redirectCount=c),Object.prototype.hasOwnProperty.call(a,"navigationType")&&(n.navigationType=u),n.workerStart=null!=l?l:0,pr.forEach((function(e){Object.prototype.hasOwnProperty.call(a,e)&&(n[e]=a[e])})),o(t.navigationTiming,n)}if(!i){var d=this.collectAsynchronousData();if("then"in d)return d.then((function(e){return o(t.cdnData,e.cdnData),t}))}var f=this.collectAsynchronousData(!0);return o(t.cdnData,f.cdnData),t}},{key:"collectResourceLoadEvent",value:function(e,t){var n=e.name,r=e.transferSize,i=e.initiatorType,o=e.nextHopProtocol,a=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(vr).forEach((function(t){var n;t in ar&&void 0!==e[t]&&l.push({resourceProgressType:vr[t],duration:null!==(n=e[t])&&void 0!==n?n:-1})})),u.resourceProgressStates=l;var d={},f=gr[o];d.nextHopProtocol=null!=f?f:"UNKNOWN",d.transferSize=r,d.encodedBodySize=a,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),qt("ResourceLoadEvent",e)):qt("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=Wr(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,Yr(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?Ut(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,o=n.isDfpIntegrationLixEnabled,a=n.samplingTimeWindowInMillis,s=n.isOnDemandFingerprintingEnabled,c=n.isSyncFingerprintingWithHeadersLixEnabled,u=n.isSyncFingerprintingWithCbLixEnabled,l=n.isRecaptchaV3IntegrationEnabled,d=n.isNetworkInterceptorEnabled;if(i||o||r||c||u||l||d){var f,h,p={treeId:null!==(f=null===(h=this.statics.treeId)||void 0===h?void 0:h.toString())&&void 0!==f?f:"",humanIntegrationEnabled:i,dfpIntegrationEnabled:o,dnaIntegrationEnabled:r,samplingTimeWindowInMillis:a,onlyOnDemandFlow:t,isSyncEnabledWithHeaders:c,isSyncEnabledWithCb:u,recaptchaV3IntegrationEnabled:l,enableNetworkInterceptor:d};(!t||t&&s||c||u)&&Xr.collectFeatures(p,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,o=e.name,a=e.startTime,s=e.duration;"resource"===i?n.processSingleResourceTiming(e,t):"mark"===i?(n.observables.userTimingEntries.push({entryType:"MARK",name:o,startTime:a,duration:s}),"mark_meaningful_paint_end"!==o||r||n.triggerDeviceSignalCollection({onlyTriggerOnDemandFlow:!1})):"measure"===i?n.observables.userTimingEntries.push({entryType:"MEASURE",name:o,startTime:a,duration:s}):"longtask"===i&&n.observables.longTasks.push({duration:s,name:o,startTime:a})}))})),this.observables.userTimingEntries=Wr(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"]&&vt.emit(Zn.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=Kr;t<n.length;t++){var r=n[t];if(r.strToFilter&&-1!==e.indexOf(r.strToFilter))return!0;if(r.pattern&&r.pattern.test(e))return!0}return!1}(e.name)){var i=this.collectResourceLoadEvent(e,t);i&&i.forEach((function(e){return n.fireResourceLoadEvent(e)}))}}this.collectCdnData&&this.cdnDataProvider.inspectEntryForCdnData(e)}},{key:"extractUsedCDN",value:function(e){var t=e.filter((function(e){return e.hostname.indexOf("static")>=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:Gr(this.renderTimings),networkInformationMetrics:Qr(this.hostApis.connection)};return this.renderTimings.clear(),e}}]),e}();function Qr(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 Yr(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,pr.forEach((function(e){e in r&&(t[e]=r[e])})),t.navigationType=i.type,t.redirectCount=i.redirectCount):t.navigationTimingApi=!1,t}var $r=function(){function e(t,n,r){R(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)||Mt(P),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:qr(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($r,"checkpoints",[1,3,10,30,90,180,300]);var Zr,ei,ti,ni,ri,ii=O((function e(t,n,r){R(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})),oi=function(){function e(t){R(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 Wt((function(e,t){return e.requestTime<t.requestTime}));r.heapPush(t),this.responseContextMap.set(e,r)}}},{key:"offerResourceLoadEvent",value:function(e,t){if(this.resourceLoadEventsMap.has(e)){var n;null===(n=this.resourceLoadEventsMap.get(e))||void 0===n||n.heapPush(t)}else{var r=new Wt((function(e,t){return e.requestStart<t.requestStart}));r.heapPush(t),this.resourceLoadEventsMap.set(e,r)}}},{key:"mergeAndConsume",value:function(e){var t=this.resourceLoadEventsMap.get(e),n=this.responseContextMap.get(e),r=null==t?void 0:t.heappop(),i=null==n?void 0:n.heappop();return this.mergeRleAndRes(r,i)}},{key:"mergeRleAndRes",value:function(e,t){if(e&&t){e.requestStart;var n=_(e,s),r=(t.requestTime,t.viewNames),i=t.requestType,o=t.requestTag,a=_(t,c);return n.targetViewNames=r||[],i&&(n.requestType=i),o&&(n.requestTag=o),n.resourceNetworkContext=h(h({},n.resourceNetworkContext),a),Vt(n)}}},{key:"deleteEntryByRequestUrl",value:function(e){this.resourceLoadEventsMap.delete(e),this.responseContextMap.delete(e)}},{key:"canFlush",value:function(e){var t=this.resourceLoadEventsMap.get(e),n=this.responseContextMap.get(e);return n&&t&&n.heapsize()>0&&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=S(e);try{for(r.s();!(n=r.n()).done;){var i=n.value;t=[].concat(C(t),C(this.flushCacheByUrl(i)))}}catch(e){r.e(e)}finally{r.f()}}var o=this.resourceLoadEventsMap.keys();if(o){var a,s=S(o);try{for(s.s();!(a=s.n()).done;){var c,l=a.value,d=null===(c=this.resourceLoadEventsMap.get(l))||void 0===c?void 0:c.heapClear();d&&(t=[].concat(C(t),C(d.map((function(e){return e.requestStart,Vt(_(e,u))})))))}}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,Vt(_(e,l))})))||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}(),ai=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)}},si=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){}},ci=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)},ui=function(e){addEventListener("pageshow",(function(t){t.persisted&&e(t)}),!0)},li=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)))}},di=-1,fi=function(){return"hidden"===document.visibilityState?0:1/0},hi=function(){ci((function(e){var t=e.timeStamp;di=t}),!0)},pi=function(){return di<0&&(di=fi(),hi(),ui((function(){setTimeout((function(){di=fi(),hi()}),0)}))),{get firstHiddenTime(){return di}}},vi=!1,gi=-1,mi=function(e,t){vi||(function(e,t){var n,r=pi(),i=ai("FCP"),o=function(e){"first-contentful-paint"===e.name&&(s&&s.disconnect(),e.startTime<r.firstHiddenTime&&(i.value=e.startTime,i.entries.push(e),n(!0)))},a=window.performance&&performance.getEntriesByName&&performance.getEntriesByName("first-contentful-paint")[0],s=a?null:si("paint",o);(a||s)&&(n=li(e,i,t),a&&o(a),ui((function(r){i=ai("FCP"),n=li(e,i,t),requestAnimationFrame((function(){requestAnimationFrame((function(){i.value=performance.now()-r.timeStamp,n(!0)}))}))})))}((function(e){gi=e.value})),vi=!0);var n,r=function(t){gi>-1&&e(t)},i=ai("CLS",0),o=0,a=[],s=function(e){if(!e.hadRecentInput){var t=a[0],r=a[a.length-1];o&&e.startTime-r.startTime<1e3&&e.startTime-t.startTime<5e3?(o+=e.value,a.push(e)):(o=e.value,a=[e]),o>i.value&&(i.value=o,i.entries=a,n())}},c=si("layout-shift",s);c&&(n=li(r,i,t),ci((function(){c.takeRecords().map(s),n(!0)})),ui((function(){o=0,gi=-1,i=ai("CLS",0),n=li(r,i,t)})))},yi={passive:!0,capture:!0},bi=new Date,Ei=function(e,t){Zr||(Zr=t,ei=e,ti=new Date,_i(removeEventListener),wi())},wi=function(){if(ei>=0&&ei<ti-bi){var e={entryType:"first-input",name:Zr.type,target:Zr.target,cancelable:Zr.cancelable,startTime:Zr.timeStamp,processingStart:Zr.timeStamp+ei};ni.forEach((function(t){t(e)})),ni=[]}},Ti=function(e){if(e.cancelable){var t=(e.timeStamp>1e12?new Date:performance.now())-e.timeStamp;"pointerdown"==e.type?function(e,t){var n=function(){Ei(e,t),i()},r=function(){i()},i=function(){removeEventListener("pointerup",n,yi),removeEventListener("pointercancel",r,yi)};addEventListener("pointerup",n,yi),addEventListener("pointercancel",r,yi)}(t,e):Ei(t,e)}},_i=function(e){["mousedown","keydown","touchstart","pointerdown"].forEach((function(t){return e(t,Ti,yi)}))},Si=function(e,t){var n,r=pi(),i=ai("FID"),o=function(e){e.startTime<r.firstHiddenTime&&(i.value=e.processingStart-e.startTime,i.entries.push(e),n(!0))},a=si("first-input",o);n=li(e,i,t),a&&ci((function(){a.takeRecords().map(o),a.disconnect()}),!0),a&&ui((function(){var r;i=ai("FID"),n=li(e,i,t),ni=[],ei=-1,Zr=null,_i(addEventListener),r=o,ni.push(r),wi()}))},Ci={},ki=function(e,t){var n,r=pi(),i=ai("LCP"),o=function(e){var t=e.startTime;t<r.firstHiddenTime&&(i.value=t,i.entries.push(e),n())},a=si("largest-contentful-paint",o);if(a){n=li(e,i,t);var s=function(){Ci[i.id]||(a.takeRecords().map(o),a.disconnect(),Ci[i.id]=!0,n(!0))};["keydown","click"].forEach((function(e){addEventListener(e,s,{once:!0,capture:!0})})),ci(s,!0),ui((function(r){i=ai("LCP"),n=li(e,i,t),requestAnimationFrame((function(){requestAnimationFrame((function(){i.value=performance.now()-r.timeStamp,Ci[i.id]=!0,n(!0)}))}))}))}},Ii=["LCP","FID","CLS"],Ai={LCP:"LargestContentfulPaint",FID:"FirstInputDelay",CLS:"CumulativeLayoutShift"},Ri={},Li=function(){var e;if(!tn)return"";var t=window.performance,n=void 0;if("function"==typeof(null==t?void 0:t.getEntriesByType)){var r,i=null===(r=window.performance)||void 0===r?void 0:r.getEntriesByType("navigation");(null==i?void 0:i.length)>0&&(n=i[0])}return(null===(e=n)||void 0===e?void 0:e.name)||window.location.href}(),Oi=!1,Di=new Set,Ni={LCP:"largest-contentful-paint",FID:"first-input",CLS:"layout-shift"};function Mi(){var e=!0===window.__test__resetWebVitalsState;if(!Oi||e){e&&(Di=new Set),Ii.forEach(Pi);var t=Symbol();ri=t,[ki,Si,mi].forEach((function(e){return e(xi.bind(null,t),!0)})),[ki,Si,mi].forEach((function(e){return e(Fi.bind(null,t))})),Oi=!0}}function Pi(e){Ri[e]={name:e,verboseName:Ai[e]||e,value:fr,updateHistory:[]};var t=Ni[e];"undefined"!=typeof PerformanceObserver&&void 0!==PerformanceObserver.supportedEntryTypes&&"string"==typeof t&&PerformanceObserver.supportedEntryTypes.indexOf(t)>-1||(Ri[e].value=hr)}function xi(e,t){if(e===ri){var n=Ri[t.name],r=qr();n&&(n.updateHistory.push({time:r,data:t}),n.value=t.value),Di.forEach((function(e){return e(t,r,!1)}))}}function Fi(e,t){e===ri&&Di.forEach((function(e){return e(t,qr(),!0)}))}var Bi,Ui=function(){function e(t,n){var r=this;R(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;Mi(),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",Ii.forEach((function(e){var t;(null===(t=Ri[e])||void 0===t?void 0:t.value)===hr&&n.reportMetric(e)})),t=this.onMetricUpdate,Di.add(t))}},{key:"stopObserving",value:function(){var e;this.observing=!1,e=this.onMetricUpdate,Di.delete(e)}},{key:"reportMetric",value:function(e){var t=Ri[e];if(t){var n={name:Ai[e]||e};"CLS"===e?n.doubleValue=t.value:n.longValue=Math.round(t.value);var r=function(e,t,n,r,i){var o={basePageTreeId:e,basePageKey:t,basePageUrl:Li},a=null;switch(n.name){case"LCP":a=function(e,t){var n;if(0===e.updateHistory.length)return null;var r=e.updateHistory[e.updateHistory.length-1],i=r.data.entries,o=i[i.length-1],a={pageKey:(null===(n=t.get(r.time))||void 0===n?void 0:n.pageKey)||"_unknown",element:Vr(o.element),renderTime:Math.round(o.renderTime),loadTime:Math.round(o.loadTime),size:Math.round(o.size)};return o.url&&(a.url=o.url),a}(n,r);break;case"FID":a=function(e,t){var n;if(0===e.updateHistory.length)return null;var r=e.updateHistory[e.updateHistory.length-1],i=r.data.entries,o=i[i.length-1];return{pageKey:(null===(n=t.get(r.time))||void 0===n?void 0:n.pageKey)||"_unknown",processingStart:Math.round(o.processingStart),processingEnd:Math.round(o.processingEnd),target:Vr(o.target)}}(n,r);break;case"CLS":a=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)})),o=null;r&&r.sources&&r.sources.length&&(o=r.sources.reduce((function(e,t){return e.node&&e.previousRect.width*e.previousRect.height>t.previousRect.width*t.previousRect.height?e:t})));var a,s=t.get(i.time);return o&&s?{shiftCount:n.length,"largestShift.value":r.value,"largestShift.hadRecentInput":r.hadRecentInput,"largestShift.largestSource.node":Vr(null===(a=o)||void 0===a?void 0:a.node),"largestShift.pageKey":s.pageKey||"_unknown","largestShift.url":s.url,"largestShift.startTime":Math.round(r.startTime)}:null}(n,r)}if(a){var s={};return i(s,o,a),s}return o}(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 o={value:n.longValue,metadata:r};vt.emit(Zn.INTERNAL_OTEL_LARGEST_CONTENTFUL_PAINT,o)}else if("CLS"===e){var a={value:n.doubleValue,metadata:r};vt.emit(Zn.INTERNAL_OTEL_CUMULATIVE_LAYOUT_SHIFT,a)}else if("FID"===e){var s={value:n.longValue,metadata:r};vt.emit(Zn.INTERNAL_OTEL_FIRST_INPUT_DELAY,s)}}}}]),e}(),Hi="x-li-uuid",Ki="x-li-pop",ji="x-msedge-ref",qi="x-li-fabric",Vi="x-li-pem-resp-meta",Wi="content-type",Gi="x-cache",zi=function(){function e(t){R(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(Hi)||null,this._pointOfPresenceId=n.get(Ki)||null,this._msEdgeRef=n.get(ji)||null,this._fabric=n.get(qi)||null,this._responseMetadata=n.get(Vi)||null,this._contentType=n.get(Wi)||null,this._cdnCacheMetadata=n.get(Gi)||null,this._downstreamAvailability=function(e){if(null==e)return 1;var t,n=S(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"}(Bi||(Bi={}));function Xi(e,t,n,r,i){var o=new zi(r),a=function(e,t,n){if(t){if(429===t||999===t)return Bi.TOO_MANY_REQUESTS;if(e&&!e.hasAnyLinkedInHeaders()&&t&&t>=400&&t<600)return Bi.BLOCKED_BY_CLIENT_PROXY;if((r=t)>=400&&r<500)return Bi.CLIENT_ERROR;if(function(e){return e>=500&&e<600}(t))return function(e){if(e){if(e.fabric)return Bi.SERVER_ERROR;if(e.pointOfPresenceId)return Bi.TRAFFIC_LI_POP_TO_DC_ERROR;if(e.microsoftEdgeReference)return Bi.TRAFFIC_AFD_TO_LI_POP_ERROR}return Bi.SERVER_ERROR}(e);if(function(e,t){return!!(e>=200&&e<300&&t&&t.downstreamAvailability<1)}(t,e))return Bi.DOWNSTREAM_GRACEFUL_DEGRADATION;if(!n)return null}var r;if(n instanceof Error){if("AbortError"===n.name)return Bi.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 Bi.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 Bi.CLIENT_TIMEOUT;if(0===n.status&&"abort"===n.statusText)return Bi.CLIENT_ABORTED;if("readyState"in n&&0===n.readyState)return Bi.NETWORK_ERROR}return Bi.UNCLASSIFIED}(o,n,i),s=null;return a&&(s={errorType:a},a===Bi.UNCLASSIFIED&&i&&(s.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))})),qt("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:s||void 0,viewNames:t||[],requestTime:e,responseMetadata:o.responseMetadata||void 0}}var Ji,Qi=function(){function e(t,n,r){var i,o,a,s,c,u,l=this;R(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({},dr),n);var d="enabled"===(null===(i=(o=r.host).__getLixTreatment)||void 0===i?void 0:i.call(o,"pemberly.tracking.time-origin-epoch-time")),f=this.getAbuseDeviceSignalCollectionConfig(r),h=null===(a=(s=r.host).__getLixTreatment)||void 0===a?void 0:a.call(s,"pemberly.tracking.generic-tracers"),p=!!h&&br.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 oi(this.isPEMTracerEnabled),this.collector=new Jr(r.host.api,new ii(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(),vt.before(ut,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 o=null===(r=this.responseRleCache)||void 0===r?void 0:r.flushCacheByUrl(e);null==o||o.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),o="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:jr(this.core.host.api.performance,o),pageKey:e}),this.firePageLoadStartEvent(i)):this.stateWM.set(i,{isInitial:this.isInitial,startTime:jr(this.core.host.api.performance,o)}),this.config["enable-memory-measurement"]&&(null===(r=this.pageMemoryObserver)||void 0===r||r.stopObserving(),this.pageMemoryObserver=new $r("page-memory",this.core,this.config),this.pageMemoryObserver.startObserving(),void 0===this.appMemoryObserver&&(this.appMemoryObserver=new $r("application-memory",this.core,this.config),this.appMemoryObserver.startObserving())),i}},{key:"observeWebVitals",value:function(){void 0===this.webVitalsObserver&&(this.webVitalsObserver=new Ui(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],o=arguments.length>2?arguments[2]:void 0;if(e&&this.activeToken&&this.activeToken===e){var a=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=jr(this.core.host.api.performance,s);a.endProps={renderCompleteTime:c,isImpactedByHiddenWindow:i,rumKey:o},this.isTracerEnabled&&o&&(a.pageKey=o);var u=this.activeToken,l=this.isTracerEnabled?5e3:this.config["beacon-timeout"];a.fireRumEventTimeout=setTimeout((function(){if(r.isTracerEnabled){r.flushResourceLoadEvents(u);var e=r.collector.collectPageLoadEndData({isInitial:a.isInitial});"then"in e?e.then((function(e){r.firePageLoadEndEvent(e,u)})):r.firePageLoadEndEvent(e,u)}var t=r.collector.collect({isInitial:a.isInitial});"then"in t?t.then((function(e){r.fireRumEvent(e,u)})):r.fireRumEvent(t,u)}),l),this.activeToken=void 0}else qt("rum-end",yr)}},{key:"onDataResponse",value:function(e,t,n,r,i,o,a){var s=Xi(t,n,r,i,o);if(null!=a&&a.serverSideResponse){var c=this.generateResourceLoadEventFromResponseContext(e,h({nextHopProtocol:ir.UNKNOWN},s));this.fireResourceLoadEvent(c,this.activeToken)}else this.provisionNetworkResponse(e,s)}},{key:"onOopsPage",value:function(e,t){qt("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=Ot(),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 qt("PageLoadStartEvent",yr)}},{key:"destroy",value:function(){var e,t,n;vt.offBefore(ut,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,o=r.endProps,a=r.pageLoadId,s=r.pageKey;if(o){var c=o.renderCompleteTime,u=o.isImpactedByHiddenWindow;if(a?e.pageLoadId=a:qt("PageLoadEndEvent",mr),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,o=r.endProps;if(o){var a=o.renderCompleteTime,s=o.isImpactedByHiddenWindow,c=o.rumKey,u=this.boomerangStart=e.navigationStart||this.boomerangStart,l=e.navigationStart||i,d=a-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:a},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=S(e);try{for(r.s();!(t=r.n()).done;){var i=t.value.split("=");if(i.length>1&&"bscookie"===i[0]){var o=decodeURIComponent(i[1]),a=Number(o.substring(4,18)),s=isNaN(a)?0:a,c=o.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 o={type:e,bsCookieInfo:i,payload:t};this.core.fireEvent({appId:this.config["app-id"],eventName:"ApfcEvent"},o)}},{key:"generateResourceLoadEventFromResponseContext",value:function(e,t){var n=t.requestTime,r=t.viewNames,i=t.requestType,o={resourceKey:e,isNetwork:!0,targetViewNames:r||[],loadType:"serversideresponse",resourceNetworkContext:h({},_(t,d)),resourceProgressStates:[],timeOrigin:n};return i&&(o.loadType=i),o}},{key:"triggerDeviceSignalCollection",value:function(e){var t=e.onlyTriggerOnDemandFlow;this.collector.triggerDeviceSignalCollection({onlyTriggerOnDemandFlow:t})}},{key:"getAbuseDeviceSignalCollectionConfig",value:function(e){var t,n,r,i,o,a,s,c,u,l,d,f,h,p,v,g,m,y,b,E,w,T,_,S,C,k,I,A,R,L=null===(t=(n=e.host).__getLixTreatment)||void 0===t?void 0:t.call(n,"pemberly.tracking.fireApfcEvent"),O=!1,D=!1,N=!1,M=!1,P=!1,x=!1;if("enabled"===L)O=!0;else if(null!=L&&L.startsWith("v2:")){var F=L.split(":");if(2===F.length){var B=new Set(F[1].split(","));O=B.has("a"),M=B.has("b"),P=B.has("c"),D=B.has("d"),N=B.has("e"),x=B.has("f")}}return{isDnaIntegrationLixEnabled:O=O||"enabled"===(null===(r=e.host.abuseDeviceSignalCollectionConfig)||void 0===r?void 0:r.webviewDnaMemberLixTreatment)||"enabled"===(null===(i=e.host.abuseDeviceSignalCollectionConfig)||void 0===i?void 0:i.dnaMemberLixTreatment),isHumanIntegrationLixEnabled:D=D||"enabled"===(null===(o=(a=e.host).__getLixTreatment)||void 0===o?void 0:o.call(a,"pemberly.tracking.human.integration"))||"enabled"===(null===(s=e.host.abuseDeviceSignalCollectionConfig)||void 0===s?void 0:s.webviewHumanMemberLixTreatment)||"enabled"===(null===(c=e.host.abuseDeviceSignalCollectionConfig)||void 0===c?void 0:c.humanMemberLixTreatment),isDfpIntegrationLixEnabled:N=N||"enabled"===(null===(u=(l=e.host).__getLixTreatment)||void 0===u?void 0:u.call(l,"pemberly.tracking.dfp.integration"))||"enabled"===(null===(d=e.host.abuseDeviceSignalCollectionConfig)||void 0===d?void 0:d.webviewDfpMemberLixTreatment)||"enabled"===(null===(f=e.host.abuseDeviceSignalCollectionConfig)||void 0===f?void 0:f.dfpMemberLixTreatment),disablePerfMarkerOptimization:e.host.abuseDeviceSignalCollectionConfig&&e.host.abuseDeviceSignalCollectionConfig.disablePerfMarkerOptimization||"enabled"===(null===(h=(p=e.host).__getLixTreatment)||void 0===h?void 0:h.call(p,"fingerprinting.collection.skip.performance.marker.check")),samplingTimeWindowInMillis:null===(v=e.host.abuseDeviceSignalCollectionConfig)||void 0===v?void 0:v.samplingTimeWindowInMillis,isOnDemandFingerprintingEnabled:x=x||"enabled"===(null===(g=(m=e.host).__getLixTreatment)||void 0===g?void 0:g.call(m,"pemberly.web.ondemand")),isSyncFingerprintingWithHeadersLixEnabled:"enabled"===(null===(y=(b=e.host).__getLixTreatment)||void 0===y?void 0:y.call(b,"sync.apfc.headers"))||"enabled"===(null===(E=e.host.abuseDeviceSignalCollectionConfig)||void 0===E?void 0:E.syncFingerprintingEnabledWithHeadersLixTreatment),isSyncFingerprintingWithCbLixEnabled:"enabled"===(null===(w=(T=e.host).__getLixTreatment)||void 0===w?void 0:w.call(T,"sync.apfc.couchbase"))||"enabled"===(null===(_=e.host.abuseDeviceSignalCollectionConfig)||void 0===_?void 0:_.syncFingerprintingEnabledWithCbLixTreatment),isRecaptchaV3IntegrationEnabled:M=M||"enabled"===(null===(S=(C=e.host).__getLixTreatment)||void 0===S?void 0:S.call(C,"pemberly.tracking.recaptcha.v3"))||"enabled"===(null===(k=e.host.abuseDeviceSignalCollectionConfig)||void 0===k?void 0:k.recaptchaV3IntegrationLixValue),isNetworkInterceptorEnabled:P=P||"enabled"===(null===(I=(A=e.host).__getLixTreatment)||void 0===I?void 0:I.call(A,"pemberly.tracking.apfc.network.interceptor"))||"enabled"===(null===(R=e.host.abuseDeviceSignalCollectionConfig)||void 0===R?void 0:R.networkInterceptorLixValue)}}}]),e}(),Yi="undefined"!=typeof window&&"undefined"!=typeof performance,$i="undefined"!=typeof location&&-1!==location.search.indexOf("_LI_MEASURE_DEBUG");!function(){function e(t,n){R(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,o=n.flushDebounceMilliseconds,a=n.flushOnEnd;this.featureKey=r,this.productName=i,this.flushOnEnd=a;var s=i?"::".concat(i):"";this.featureIdentifier="".concat(r).concat(s);var c=void 0!==o?o:3e3;c>0&&(this.debounceFlush=function(e,t,n){var r,i,o;void 0===t&&(t=50),void 0===n&&(n={});var a=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=a&&void 0===o;if(void 0!==o&&clearTimeout(o),o=setTimeout((function(){if(o=void 0,u=Date.now(),!a){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!==o&&clearTimeout(o),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(Yi){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(Yi){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){Yi&&(this.marks.push({name:e,startTime:qr()}),$i&&(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){Yi&&(this.spanStarts.set(e,qr()),$i&&performance.mark("LI:".concat(this.featureIdentifier,"-span-").concat(e,"-start")))}},{key:"spanEnd",value:function(e,t){if(Yi&&this.spanStarts.has(e)){var n=this.spanStarts.get(e),r=t||e;this.spans.push({name:r,startTime:n,duration:qr()-n}),$i&&(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){Yi&&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 qr()}},{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||Mt(P),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(Yi){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"}(Ji||(Ji={}));var Zi=n(0);window.addEventListener("load",(function(e){var t=new Hn({appId:Object(Zi.g)(),endpoint:"/li/track",__getLixTreatment:function(e){var t=e.replace(/\./g,"_"),n="lix_".concat(t),r=Object(Zi.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 er(t),r=Object(Zi.o)(),i=Object(Zi.n)(r);n.updateAppState({clientApplicationInstance:{applicationUrn:"urn:li:application:(checkpoint-frontend)",version:"0.0.0",trackingId:Ot()}}),n.setCurrentContext({pageKey:r,pageInstance:i});var o=new Qi({"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);o.end(o.start()),o.observeWebVitals(),window.performance.mark("mark_meaningful_paint_end")}));var eo=n(3);window.addEventListener("load",(function(e){var t=Object(Zi.o)(),n=Object(Zi.l)();Object(Zi.E)(t,{funCaptchaChallengeSource:n})&&Object(eo.d)(t,eo.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 o(){}function a(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={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","\0":"�","\\":"&#92;","=":"&#61;"},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(o){return null==o?null:(o+"").replace(r,(function(r,o,a,s){return o?(c=o,i.hasOwnProperty(c)?i[c]:(e.innerHTML="&"+c+";",u=e[t],i[c]=u,u)):a||s?n(parseInt(a||s,a?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<r;n++)t(e[n],n)};function v(e){e=d(e)?e:[e];var t,n,o,a=0,s="<(?!/?";return s+="(?:",p(e,(function(e,c){t=e.tags||r,n=e.attrs||i,o=e.checkUrlAttrs||!1,0!==c&&(s+="|"),s+="(?:"+t.join("|")+")",s+="(?:",s+="[ \t\r\n]*",s+="|[ \t\r\n]+",s+="(?:(?:",s+="(?:"+n+")(?:=([\"'])[^'\"<>]*\\"+ ++a+")?",o&&(s+="|(?:href|src)=([\"'])(?:(?:https?|ftp|mailto|invalid)(?::|&#(?:58|x3a);)|(?:data:image/(?:gif|jpg|jpeg|png);base64,)|[/.#?]|&#(?:35|4[67]|63|x(?:2[3ef]|3f));)[^'\"<>]*\\"+ ++a),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 b(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,a=e;if(n.hasOwnProperty(r))return n[r];if(t.hasOwnProperty(r)){if(!((i="string"==typeof(a=t[r]))||a instanceof o||"number"==typeof a))throw new Error("Only strings, numbers, and jSecure types are allowed as placeholder replacements.");a=i?u(a):a.toString()}return n[r]=a,a}))}(e,t):e,i=e;return f(r)&&!m(r,n)&&(r=y(r),a("Content contains tags or attributes that are not allowed:\nContent: "+i,"error")),r}function E(e,t){for(var n=+t.length,r=0,i=e.length;r<n;r++)e[i++]=t[r];return e.length=i,e}m.R_UNSAFE_HTML=g(),m.R_UNSAFE_CUSTOM_ELEMENT=v([{tags:r,checkUrlAttrs:!0},{tags:[(h={tag:"li-icon",attrs:"active|a11y-text|animate|color|size|type"}).tag],attrs:[e,h.attrs].join("|"),checkUrlAttrs:!1}]);var w={option:[1,'<select multiple="multiple">',"</select>"],thead:[1,"<table>","</table>"],col:[2,"<table><colgroup>","</colgroup></table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:[0,"",""]};w.optgroup=w.option,w.tbody=w.tfoot=w.colgroup=w.caption=w.thead,w.th=w.td;var T=/<([\w:]+)/;function _(e,t){var n,r,i,o,a,s,c,u=t.createDocumentFragment(),l=[];for(a=0,c=e.length;a<c;a++)if((o=e[a])||0===o)if("string"==typeof o){for(i=i||u.appendChild(t.createElement("div")),n=(T.exec(o)||["",""])[1].toLowerCase(),I(i,(r=w[n]||w._default)[1]+o+r[2]),s=r[0];s--;)i.lastChild&&i.lastChild.nodeType===Node.ELEMENT_NODE&&(i=i.lastChild);E(l,i.childNodes),(i=u.firstChild).textContent=""}else E(l,o.nodeType?[o]:o);for(u.textContent="",o=l[a=0];o;)u.appendChild(o),o=l[++a];return u}function S(e,t){var n;if(t=t||document.implementation&&document.implementation.createHTMLDocument?document.implementation.createHTMLDocument(""):document,"string"==typeof e)n=_([e],t);else{if(!d(e))return e;n=_(e,t)}return E([],n.childNodes)}var C=b,k=b;function I(e,n,r){var i=b(n,r);return f(i)?e.innerHTML=i:e[t]=i,i}function A(e,t){if(!(this instanceof A))return new A(e,t);(t=t||{}).allowTags=t.allowTags?t.allowTags.reduce((function(e,t){return e.concat(t)}),[]):null,this._string=e,this._options=t}function R(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var i="",o=void 0,a=n.length;return e&&e.forEach((function(e,t){i+=e,t<a&&(o=n[t],i+=o instanceof A?o:u(o))})),k(i)}A.prototype=function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);return e}(new o,{toString:function(){var e=this._string,t=this._stringVal,n=e;return void 0!==t?t:(m(e,this._options)||(n=e,e=y(e),a("UnsafeString contains tags or attributes that are not allowed.\nString: "+n,"error")),this._stringVal=e,e)}});var L=/ /g,O=/[\s\u0000<>"]|%00/,D=/\\/,N=/([.]|%2e){2}/i,M=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 a("jSecure Warning: url must be a string","error"),"invalid://";if((t=e.trim()).indexOf(" ")>-1&&(a("jSecure Warning: url should not contain spaces: "+e,"warn"),t=t.replace(L,"+")),!M.test(t))return a("jSecure Error: URL should be absolute with allowed schemas, relative, a hash fragment or query string. "+e,"error"),"invalid://";if(O.test(t))return a("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?(a("jSecure Error: malformed url path detected: "+n),"invalid://"):D.test(n)||N.test(n)||N.test(r)?(a("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:a,mk:R,parseHTML:S,parseSelector:function(e){return"string"==typeof e&&/^(?:\s*(<[\w\W]+>)[^>]*)$/.test(e)?[]:e},processTemplate:C,reEncode:function(e){return u(l(e))},_redirector:x,redirect:function(e){var t=P(e);t===e&&x.redirect(t)},sanitizeHTML:k,sanitizeUrl:P,setElementContent:I,text:function(e){return a("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),o=n(0),a=n(11),s={APP_NAME:Object(o.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 a=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(o.n)(),l=t;l.header={pageInstance:u,time:Date.now()},l.requestHeader={pageKey:(r||Object(o.o)())+"_jsbeacon",path:window.location.href,referer:c},a&&(l.requestHeader.trackingCode=a);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(o.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(o.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(o.n)(),l=new a.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)},o=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},a=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),o(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}(a),c=function(e){function t(n){r(this,t);var i=o(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<this._navigationTimingFields.length;t++)e[n=this._navigationTimingFields[t]]&&(this.data[n]=e[n]);this.data.redirectCount=this._window.performance.navigation.redirectCount,this.data.navigationType=this._window.performance.navigation.type}else this.data.navigationTimingApi=!1;if(this._window.performance&&this._window.performance.getEntriesByType&&void 0!==(r=this._window.performance.getEntriesByType("navigation")[0])&&(this.data.workerStart=r.workerStart,"number"==typeof r.fetchStart&&"number"==typeof r.responseEnd&&"number"==typeof r.decodedBodySize&&"number"==typeof r.encodedBodySize&&"number"==typeof r.transferSize)){var i={};i.htmlFetchStart=r.fetchStart,i.htmlResponseEnd=r.responseEnd,i.htmlDecodedBodySize=r.decodedBodySize,i.htmlEncodedBodySize=r.encodedBodySize,i.htmlTransferSize=r.transferSize,this.data.htmlMetrics=i}this._navigationTimingRead=!0}},t}(a),u=function(e){function t(n){r(this,t);var i=o(this,e.call(this,n));return i._imgEntries=[],i._resourceTimingFields={name:!0,entryType:!1,duration:!0,initiatorType:!0,fetchStart:!0,responseEnd:!0,startTime:!0,connectEnd:!0,connectStart:!0,domainLookupEnd:!0,domainLookupStart:!0,redirectEnd:!0,redirectStart:!0,requestStart:!0,responseStart:!0,secureConnectionStart:!0,nextHopProtocol:!0,transferSize:!0,decodedBodySize:!0,encodedBodySize:!0,workerStart:!0},i._requestSamplingRandVal=Math.random(),i._setupResourceTiming(),i}return i(t,e),t.prototype.resetState=function(){e.prototype.resetState.call(this),this._requestSamplingRandVal=Math.random()},t.prototype.collectData=function(){this._readResourceTiming(),this.done()},t.prototype.addTreeId=function(e,t){var n;if(this._treeIdUrlParser&&this._rsTimingUrlParser&&(this._treeIdUrlParser.href=t,this._readResourceTiming(),this.data.resourceTimingEntries))for(n=this.data.resourceTimingEntries.length-1;n>=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,o,a=!1,s=this.data&&this.data.resourceTimingEntries||[];if(this._isResourceTimingSupported()&&this._config["enable-rs-timing"]){for(e=this._window.performance.getEntriesByType("resource"),t=0;t<e.length;t++){for(n in r={},e[t])!0===this._resourceTimingFields[n]&&(r[n]=e[t][n]);"img"===r.initiatorType&&this._imgEntries.push(r),null===this._parent._config.xcndUrl&&"script"===r.initiatorType&&(this._parent._config.xcndUrl=r.name),i=Math.random(),o=this._config["rs-sample-rate"][e[t].initiatorType]||this._config["rs-sample-rate"].default,((a=this._requestSamplingRandVal<=this._config["request-sampling-rate"])||i<=o)&&(s.push(r),r.sampleMode="",a&&(r.sampleMode="requestSampled,"),i<=o&&(r.sampleMode+="rand"+o.toString()))}this._clearBuffer(),s.length>0&&(this.data.resourceTimingEntries=s)}},t}(a),l=function(e){function t(n){return r(this,t),o(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,o=[];for(r=0;r<e.length;r++)(n=e[r])&&((i={}).entryType=t,i.name=n.name,i.startTime=n.startTime,i.duration=n.duration,o.push(i));return o},t.prototype._readUserTimingEntries=function(){var e,t=[];this._window.performance&&"function"==typeof this._window.performance.getEntriesByType&&(this._config["user-timing-measure-enabled"]&&(e=this._window.performance.getEntriesByType("measure"),t=t.concat(this._getUserTimingEntries(e,"MEASURE"))),this._config["user-timing-mark-enabled"]&&(e=this._window.performance.getEntriesByType("mark"),t=t.concat(this._getUserTimingEntries(e,"MARK")))),this.data.userTimingEntries=t,this._clearUserTimings()},t}(a),d=function(e){function t(n){r(this,t);var i=o(this,e.call(this,n));return i._started=!1,i}return i(t,e),t.prototype.resetState=function(){},t.prototype.isAsync=function(){return!0},t.prototype.collectData=function(){this._started||(this._started=!0,this._getCDNData())},t.prototype._getCDNData=function(){var e=this._window.location.protocol,t=this._parent._config.xcndUrl,n=new XMLHttpRequest,r=this,i="",o="",a="";this.data.usedCDN={static_domain:i,ip_version:a,http_version:a},0===e.lastIndexOf("http",0)&&null!==t?(n.onreadystatechange=function(){var e=this.readyState?this:n;if(4===e.readyState){if(200===e.status){try{i=e.getResponseHeader("X-CDN"),o=e.getResponseHeader("X-CDN-CLIENT-IP-VERSION"),a=e.getResponseHeader("X-CDN-Proto")}catch(e){console.warn("Can't read the X-CDN header, possibly because of CORS restrictions")}r.data.usedCDN.static_domain=null===i?"":i,r.data.usedCDN.ip_version=null===o?"":o.toLowerCase(),r.data.usedCDN.http_version=null===a?"":a.toLowerCase()}else console.error("CDN request did not return a HTTP 200. Status: "+e.status);r.done()}},n.open("HEAD",t,!0),n.send()):this.done()},t}(a),f=function(e){function t(n){r(this,t);var i=o(this,e.call(this,n));return i._started=!1,i}return i(t,e),t.prototype.resetState=function(){},t.prototype.isAsync=function(){return!0},t.prototype.collectData=function(){this._started||(this._started=!0,this._getPoPData())},t.prototype._getPoPData=function(){var e=this._window.location,t=e.protocol,n=t+"//"+e.host+"/fizzy/admin?"+(new Date).getTime(),r=new XMLHttpRequest,i=this;0===t.lastIndexOf("http",0)?(r.onreadystatechange=function(){var e=this.readyState?this:r;4===e.readyState&&(e.status>=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}(a),h=function(e){function t(n){r(this,t);var i=o(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<i._longTaskFields.length;n++){var r=i._longTaskFields[n];void 0!==e[r]&&(t[r]=e[r])}i.data.longTasks.push(t)}))}));try{i._observer.observe({entryTypes:["longtask"]})}catch(e){console.warn("Longtask api is not supported")}return i}return i(t,e),t.prototype.resetState=function(){this._complete=!1,this.data={},this.data.longTasks=[]},t.prototype.collectData=function(){this.done()},t}(a),p=function(e){function t(n){return r(this,t),o(this,e.call(this,n))}return i(t,e),t.prototype.collectData=function(){this._readNetworkInformation(),this.done()},t.prototype._readNetworkInformation=function(){if(navigator&&navigator.connection){var e={},t=navigator.connection.downlinkMax;e.connectionType=void 0===navigator.connection.type?"UNKNOWN":navigator.connection.type.toUpperCase(),e.effectiveType=this._formatEffectiveType(navigator.connection.effectiveType),e.roundTripTime=void 0===navigator.connection.rtt?-1:navigator.connection.rtt,e.downlinkBandwidth=void 0===navigator.connection.downlink?-1:navigator.connection.downlink,e.downlinkMaxBandwidth=void 0===t?-1:t===1/0?0:navigator.connection.downlinkMax,this.data.networkInformationMetrics=e}},t.prototype._formatEffectiveType=function(e){return"2g"===e?"TWO_G":"3g"===e?"THREE_G":"4g"===e?"FOUR_G":"SLOW_2G"},t}(a),v=["https://www.linkedin-ei.com/lite/rum-track","/li/track","https://lca1-mobile-tracking-frontend-vip-1.corp.linkedin.com/li/track"];return function(){function n(t,i){var o=this;r(this,n),this._resetState(!1),this._defaults={enabled:!0,"beacon-url":"/li/track","beacon-service":"tracking","event-name":"RealUserMonitoringEvent","topic-name":"RealUserMonitoringEvent","app-id":"linkedin.rum.tracking","is-single-page-app":!0,"cross-origin":!1,"beacon-timeout":3e4,"request-sampling-rate":.01,"user-timing-mark-enabled":!1,"user-timing-measure-enabled":!0,"beacon-source":"apps","page-key-prefix":"","navigation-timing-only":!1,"pathname-depth":-1,"lazy-image-class-names":["lazy-image"],"enable-cdn-tracking":!1,"enable-pop-tracking":!1,"async-plugins-timeout":5e3,"non-spa-manual-send":!1},this._config=e(this._defaults,t),this._window=i||window,this._config.enabled&&this._canAccessContext(this._window)&&(this._doc=this._window.document,this._config.readyState||(this._config.readyState=this._doc.readyState),this._config.xcndUrl=null,this._config["navigation-timing-only"]?this._config["enable-rs-timing"]=this._config["enable-rs-timing"]||!1:this._config["enable-rs-timing"]=!1!==this._config["enable-rs-timing"],this._config.plugins=[new s(this),new c(this),new u(this),new l(this),new p(this)],this._config["enable-cdn-tracking"]&&this._config.plugins.push(new d(this)),this._config["enable-pop-tracking"]&&this._config.plugins.push(new f(this)),"function"==typeof PerformanceObserver&&"function"==typeof PerformanceLongTaskTiming&&this._config.plugins.push(new h(this)),this._isInitialLoad=!0,this._initialStartTime=void 0,this._renderCompleteCount=0,this._isLazyRender=!1,this._allBeaconData=[],this._csrfToken="",this._isInternalApp=!1,this._config["beacon-source"]&&"internal-apps"===this._config["beacon-source"]&&(this._isInternalApp=!0,("lite"===this._config["beacon-service"]||v.indexOf(this._config["beacon-url"])>-1)&&(this._config["beacon-service"]="tracking",this._config["beacon-url"]="https://tracking.corp.linkedin.com/li/track/")),this._onLoad=function(){setTimeout((function(){o._collectPluginData()}),500)},this._onUnload=function(){o._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;n<this._config.plugins.length;n++)if((e=this._config.plugins[n]).isAsync()&&!e.isComplete())return!1;setTimeout((function(){t._sendAllData()}),500)},n.prototype.manuallySetNonSpaPLTSendBeacon=function(){var e=t(this._window),n=this._collectPlugin(),r=this._allBeaconData.length;r>0&&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<this._config.plugins.length;t++)(n=this._config.plugins[t]).isAsync()&&(i=e(i,n.getData()));for(t=0;t<this._allBeaconData.length;t++)r=e(this._allBeaconData[t],i),this._sendBeacon(r);this._allBeaconData=[]},n.prototype._pushCurrentBeaconData=function(){var t;(t=this._getBeaconAndPluginData())&&this._allBeaconData.push(e({},t))},n.prototype._readIsSSL=function(){this._window&&this._window.location&&(this._beaconData.isSSL="https:"===this._window.location.protocol?1:0)},n.prototype._getBeaconAndPluginData=function(){var t=this;if(this._readPageKey(),this._readSinglePageAppData(),this._readRenderTimingEntries(),this._readIsSSL(),this._config["app-version"]&&(this._beaconData.appVersion=this._config["app-version"]),this._config.plugins.map((function(n){t._beaconData=e(t._beaconData,n.getData())})),"navigationStart"in this._beaconData&&this._shouldSendBeacon){if(this._initialStartTime||(this._initialStartTime=this._beaconData.navigationStart),this._beaconData.boomerangStart=this._initialStartTime,this._cleanUpResourceTimingEntries(),this._beaconData.isSinglePageApp)if("renderCompleteTime"in this._beaconData)this._beaconData.timeDone=this._beaconData.renderCompleteTime-this._beaconData.navigationStart;else if(!this._config["navigation-timing-only"])return;return this._beaconData}},n.prototype._sendBeacon=function(e){if(this._config.enabled)try{if(this._fireTrackingBeacon(e),"undefined"!=typeof CustomEvent){var t=new CustomEvent("RUMEvent",{detail:e});this._doc.dispatchEvent(t)}}catch(e){}},n.prototype._fireTrackingBeacon=function(e){var t,n={eventInfo:{eventName:this._config["event-name"],topicName:this._config["topic-name"],appId:this._config["app-id"]},eventBody:e};e.header={pageInstance:e.pageInstance},e.requestHeader={pageKey:e.pageKey},n.eventBody.trackingTime=-1,(t=new XMLHttpRequest).open("POST",this._config["beacon-url"],!0),t.setRequestHeader("content-type","application/json"),this._csrfToken||(this._csrfToken=this._getCsrfToken()),t.setRequestHeader("Csrf-Token",this._csrfToken),t.send(JSON.stringify([n]))},n.prototype._getCookieString=function(){return this._doc.cookie},n.prototype._getCsrfToken=function(){for(var e=this._getCookieString().split(";"),t=0;t<e.length;t++){for(var n=e[t];" "===n.charAt(0);)n=n.substring(1);if(-1!==n.indexOf("JSESSIONID=")){var r=n.substring("JSESSIONID=".length,n.length);return'"'===r[0]&&'"'===r[r.length-1]&&(r=r.substring(1,r.length-1)),r}}return""},n.prototype._canAccessContext=function(e){var t=null;try{t=e&&e.document}catch(e){}return null!==t},n}()}()},58:function(e,t,n){(function(t,n){
/*!
 * @overview es6-promise - a tiny implementation of Promises/A+.
 * @copyright Copyright (c) 2014 Yehuda Katz, Tom Dale, Stefan Penner and contributors (Conversion to ES6 API by Jake Archibald)
 * @license   Licensed under MIT license
 *            See https://raw.githubusercontent.com/stefanpenner/es6-promise/master/LICENSE
 * @version   v4.2.8+1e68dce6
 */var r;r=function(){"use strict";function e(e){return"function"==typeof e}var r=Array.isArray?Array.isArray:function(e){return"[object Array]"===Object.prototype.toString.call(e)},i=0,o=void 0,a=void 0,s=function(e,t){p[i]=e,p[i+1]=t,2===(i+=2)&&(a?a(v):E())},c="undefined"!=typeof window?window:void 0,u=c||{},l=u.MutationObserver||u.WebKitMutationObserver,d="undefined"==typeof self&&void 0!==t&&"[object process]"==={}.toString.call(t),f="undefined"!=typeof Uint8ClampedArray&&"undefined"!=typeof importScripts&&"undefined"!=typeof MessageChannel;function h(){var e=setTimeout;return function(){return e(v,1)}}var p=new Array(1e3);function v(){for(var e=0;e<i;e+=2)(0,p[e])(p[e+1]),p[e]=void 0,p[e+1]=void 0;i=0}var g,m,y,b,E=void 0;function w(e,t){var n=this,r=new this.constructor(S);void 0===r[_]&&M(r);var i=n._state;if(i){var o=arguments[i-1];s((function(){return D(i,r,o,n._result)}))}else L(n,r,e,t);return r}function T(e){if(e&&"object"==typeof e&&e.constructor===this)return e;var t=new this(S);return k(t,e),t}d?E=function(){return t.nextTick(v)}:l?(m=0,y=new l(v),b=document.createTextNode(""),y.observe(b,{characterData:!0}),E=function(){b.data=m=++m%2}):f?((g=new MessageChannel).port1.onmessage=v,E=function(){return g.port2.postMessage(0)}):E=void 0===c?function(){try{var e=Function("return this")().require("vertx");return void 0!==(o=e.runOnLoop||e.runOnContext)?function(){o(v)}:h()}catch(e){return h()}}():h();var _=Math.random().toString(36).substring(2);function S(){}function C(t,n,r){n.constructor===t.constructor&&r===w&&n.constructor.resolve===T?function(e,t){1===t._state?A(e,t._result):2===t._state?R(e,t._result):L(t,void 0,(function(t){return k(e,t)}),(function(t){return R(e,t)}))}(t,n):void 0===r?A(t,n):e(r)?function(e,t,n){s((function(e){var r=!1,i=function(e,t,n,r){try{e.call(t,n,r)}catch(e){return e}}(n,t,(function(n){r||(r=!0,t!==n?k(e,n):A(e,n))}),(function(t){r||(r=!0,R(e,t))}),e._label);!r&&i&&(r=!0,R(e,i))}),e)}(t,n,r):A(t,n)}function k(e,t){if(e===t)R(e,new TypeError("You cannot resolve a promise with itself"));else if(i=typeof(r=t),null===r||"object"!==i&&"function"!==i)A(e,t);else{var n=void 0;try{n=t.then}catch(t){return void R(e,t)}C(e,t,n)}var r,i}function I(e){e._onerror&&e._onerror(e._result),O(e)}function A(e,t){void 0===e._state&&(e._result=t,e._state=1,0!==e._subscribers.length&&s(O,e))}function R(e,t){void 0===e._state&&(e._state=2,e._result=t,s(I,e))}function L(e,t,n,r){var i=e._subscribers,o=i.length;e._onerror=null,i[o]=t,i[o+1]=n,i[o+2]=r,0===o&&e._state&&s(O,e)}function O(e){var t=e._subscribers,n=e._state;if(0!==t.length){for(var r=void 0,i=void 0,o=e._result,a=0;a<t.length;a+=3)r=t[a],i=t[a+n],r?D(n,r,i,o):i(o);e._subscribers.length=0}}function D(t,n,r,i){var o=e(r),a=void 0,s=void 0,c=!0;if(o){try{a=r(i)}catch(e){c=!1,s=e}if(n===a)return void R(n,new TypeError("A promises callback cannot return that same promise."))}else a=i;void 0!==n._state||(o&&c?k(n,a):!1===c?R(n,s):1===t?A(n,a):2===t&&R(n,a))}var N=0;function M(e){e[_]=N++,e._state=void 0,e._result=void 0,e._subscribers=[]}var P=function(){function e(e,t){this._instanceConstructor=e,this.promise=new e(S),this.promise[_]||M(this.promise),r(t)?(this.length=t.length,this._remaining=t.length,this._result=new Array(this.length),0===this.length?A(this.promise,this._result):(this.length=this.length||0,this._enumerate(t),0===this._remaining&&A(this.promise,this._result))):R(this.promise,new Error("Array Methods must be provided an Array"))}return e.prototype._enumerate=function(e){for(var t=0;void 0===this._state&&t<e.length;t++)this._eachEntry(e[t],t)},e.prototype._eachEntry=function(e,t){var n=this._instanceConstructor,r=n.resolve;if(r===T){var i=void 0,o=void 0,a=!1;try{i=e.then}catch(e){a=!0,o=e}if(i===w&&void 0!==e._state)this._settledAt(e._state,t,e._result);else if("function"!=typeof i)this._remaining--,this._result[t]=e;else if(n===x){var s=new n(S);a?R(s,o):C(s,e,i),this._willSettleAt(s,t)}else this._willSettleAt(new n((function(t){return t(e)})),t)}else this._willSettleAt(r(e),t)},e.prototype._settledAt=function(e,t,n){var r=this.promise;void 0===r._state&&(this._remaining--,2===e?R(r,n):this._result[t]=n),0===this._remaining&&A(r,this._result)},e.prototype._willSettleAt=function(e,t){var n=this;L(e,void 0,(function(e){return n._settledAt(1,t,e)}),(function(e){return n._settledAt(2,t,e)}))},e}(),x=function(){function t(e){this[_]=N++,this._result=this._state=void 0,this._subscribers=[],S!==e&&("function"!=typeof e&&function(){throw new TypeError("You must pass a resolver function as the first argument to the promise constructor")}(),this instanceof t?function(e,t){try{t((function(t){k(e,t)}),(function(t){R(e,t)}))}catch(t){R(e,t)}}(this,e):function(){throw new TypeError("Failed to construct 'Promise': Please use the 'new' operator, this object constructor cannot be called as a function.")}())}return t.prototype.catch=function(e){return this.then(null,e)},t.prototype.finally=function(t){var n=this.constructor;return e(t)?this.then((function(e){return n.resolve(t()).then((function(){return e}))}),(function(e){return n.resolve(t()).then((function(){throw e}))})):this.then(t,t)},t}();return x.prototype.then=w,x.all=function(e){return new P(this,e).promise},x.race=function(e){var t=this;return r(e)?new t((function(n,r){for(var i=e.length,o=0;o<i;o++)t.resolve(e[o]).then(n,r)})):new t((function(e,t){return t(new TypeError("You must pass an array to race."))}))},x.resolve=T,x.reject=function(e){var t=new this(S);return R(t,e),t},x._setScheduler=function(e){a=e},x._setAsap=function(e){s=e},x._asap=s,x.polyfill=function(){var e=void 0;if(void 0!==n)e=n;else if("undefined"!=typeof self)e=self;else try{e=Function("return this")()}catch(e){throw new Error("polyfill failed because global object is unavailable in this environment")}var t=e.Promise;if(t){var r=null;try{r=Object.prototype.toString.call(t.resolve())}catch(e){}if("[object Promise]"===r&&!t.cast)return}e.Promise=x},x.Promise=x,x},e.exports=r()}).call(this,n(74),n(14))},59:function(e,t,n){"use strict";n.r(t);var r="function"==typeof fetch?fetch.bind():function(e,t){return t=t||{},new Promise((function(n,r){var i=new XMLHttpRequest;for(var o in i.open(t.method||"get",e,!0),t.headers)i.setRequestHeader(o,t.headers[o]);function a(){var e,t=[],n=[],r={};return i.getAllResponseHeaders().replace(/^(.*?):[^\S\n]*([\s\S]*?)$/gm,(function(i,o,a){t.push(o=o.toLowerCase()),n.push([o,a]),e=r[o],r[o]=e?e+","+a:a})),{ok:2==(i.status/100|0),status:i.status,statusText:i.statusText,url:i.responseURL,clone:a,text:function(){return Promise.resolve(i.responseText)},json:function(){return Promise.resolve(i.responseText).then(JSON.parse)},blob:function(){return Promise.resolve(new Blob([i.response]))},headers:{keys:function(){return t},entries:function(){return n},get:function(e){return r[e.toLowerCase()]},has:function(e){return e.toLowerCase()in r}}}}i.withCredentials="include"==t.credentials,i.onload=function(){n(a())},i.onerror=r,i.send(t.body)}))};t.default=r},69:function(e,t,n){"use strict";n(70),n(71),n(72),n(73),n(58),n(75),n(76),n(77);window.Promise=window.Promise||n(58).Promise;var r=window.LI||{};window.LI=r},70:function(e,t){Array.prototype.forEach||(Array.prototype.forEach=function(e){var t,n;if(null==this)throw new TypeError("this is null or not defined");var r=Object(this),i=r.length>>>0;if("function"!=typeof e)throw new TypeError(e+" is not a function");for(arguments.length>1&&(t=arguments[1]),n=0;n<i;){var o;n in r&&(o=r[n],e.call(t,o,n,r)),n++}})},71:function(e,t){window.NodeList&&!NodeList.prototype.forEach&&(NodeList.prototype.forEach=function(e,t){t=t||window;for(var n=0;n<this.length;n++)e.call(t,this[n],n,this)})},72:function(e,t){String.prototype.trim||(String.prototype.trim=function(){return this.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")})},73:function(e,t){Element.prototype.matches||(Element.prototype.matches=Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector),Element.prototype.closest||(Element.prototype.closest=function(e){var t=this;do{if(t.matches(e))return t;t=t.parentElement||t.parentNode}while(null!==t&&1===t.nodeType);return null})},74:function(e,t){var n,r,i=e.exports={};function o(){throw new Error("setTimeout has not been defined")}function a(){throw new Error("clearTimeout has not been defined")}function s(e){if(n===setTimeout)return setTimeout(e,0);if((n===o||!n)&&setTimeout)return n=setTimeout,setTimeout(e,0);try{return n(e,0)}catch(t){try{return n.call(null,e,0)}catch(t){return n.call(this,e,0)}}}!function(){try{n="function"==typeof setTimeout?setTimeout:o}catch(e){n=o}try{r="function"==typeof clearTimeout?clearTimeout:a}catch(e){r=a}}();var c,u=[],l=!1,d=-1;function f(){l&&c&&(l=!1,c.length?u=c.concat(u):d=-1,u.length&&h())}function h(){if(!l){var e=s(f);l=!0;for(var t=u.length;t;){for(c=u,u=[];++d<t;)c&&c[d].run();d=-1,t=u.length}c=null,l=!1,function(e){if(r===clearTimeout)return clearTimeout(e);if((r===a||!r)&&clearTimeout)return r=clearTimeout,clearTimeout(e);try{r(e)}catch(t){try{return r.call(null,e)}catch(t){return r.call(this,e)}}}(e)}}function p(e,t){this.fun=e,this.array=t}function v(){}i.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];u.push(new p(e,t)),1!==u.length||l||s(h)},p.prototype.run=function(){this.fun.apply(null,this.array)},i.title="browser",i.browser=!0,i.env={},i.argv=[],i.version="",i.versions={},i.on=v,i.addListener=v,i.once=v,i.off=v,i.removeListener=v,i.removeAllListeners=v,i.emit=v,i.prependListener=v,i.prependOnceListener=v,i.listeners=function(e){return[]},i.binding=function(e){throw new Error("process.binding is not supported")},i.cwd=function(){return"/"},i.chdir=function(e){throw new Error("process.chdir is not supported")},i.umask=function(){return 0}},75:function(e,t,n){window.fetch||(window.fetch=n(59).default||n(59))},76:function(e,t){
/*! (C) Andrea Giammarchi - @WebReflection - ISC Style License */
!function(e,t){"use strict";function n(){var e=C.splice(0,C.length);for(Ye=0;e.length;)e.shift().call(null,e.shift())}function r(e,t){for(var n=0,r=e.length;n<r;n++)p(e[n],t)}function i(e){return function(t){xe(t)&&(p(t,e),oe.length&&r(t.querySelectorAll(oe),e))}}function o(e){var t=je.call(e,"is"),n=e.nodeName.toUpperCase(),r=se.call(re,t?ee+t.toUpperCase():Z+n);return t&&-1<r&&!a(n,t)?-1:r}function a(e,t){return-1<oe.indexOf(e+'[is="'+t+'"]')}function s(e){var t=e.currentTarget,n=e.attrChange,r=e.attrName,i=e.target,o=e[X]||2,a=e[J]||3;!rt||i&&i!==t||!t[j]||"style"===r||e.prevValue===e.newValue&&(""!==e.newValue||n!==o&&n!==a)||t[j](r,n===o?null:e.prevValue,n===a?null:e.newValue)}function c(e){var t=i(e);return function(e){C.push(t,e.target),Ye&&clearTimeout(Ye),Ye=setTimeout(n,1)}}function u(e){nt&&(nt=!1,e.currentTarget.removeEventListener(Y,u)),oe.length&&r((e.target||T).querySelectorAll(oe),e.detail===H?H:B),Me&&function(){for(var e,t=0,n=Fe.length;t<n;t++)e=Fe[t],ae.contains(e)||(n--,Fe.splice(t--,1),p(e,H))}()}function l(e,t){var n=this;We.call(n,e,t),k.call(n,{target:n})}function d(e,t,n){var r=t.apply(e,n),i=o(r);return-1<i&&D(r,ie[i]),n.pop()&&oe.length&&function(e){for(var t,n=0,r=e.length;n<r;n++)t=e[n],D(t,ie[o(t)])}(r.querySelectorAll(oe)),r}function f(e,t){Le(e,t),R?R.observe(e,Je):(tt&&(e.setAttribute=l,e[x]=A(e),e[F]($,k)),e[F](Q,s)),e[G]&&rt&&(e.created=!0,e[G](),e.created=!1)}function h(e){throw new Error("A "+e+" type is already registered")}function p(e,t){var n,r,i=o(e);-1<i&&!He.call(e,"TEMPLATE")&&(O(e,ie[i]),i=0,t!==B||e[B]?t!==H||e[H]||(e[B]=!1,e[H]=!0,r="disconnected",i=1):(e[H]=!1,e[B]=!0,r="connected",i=1,Me&&se.call(Fe,e)<0&&Fe.push(e)),i&&(n=e[t+U]||e[r+U])&&n.call(e))}function v(){}function g(e,t,n){var r=n&&n[K]||"",i=t.prototype,o=Re(i),a=t.observedAttributes||fe,s={prototype:o};Pe(o,G,{value:function(){if(Se)Se=!1;else if(!this[ye]){this[ye]=!0,new t(this),i[G]&&i[G].call(this);var e=Ce[Ie.get(t)];(!Ee||e.create.length>1)&&b(this)}}}),Pe(o,j,{value:function(e){-1<se.call(a,e)&&i[j]&&i[j].apply(this,arguments)}}),i[V]&&Pe(o,q,{value:i[V]}),i[W]&&Pe(o,z,{value:i[W]}),r&&(s[K]=r),e=e.toUpperCase(),Ce[e]={constructor:t,create:r?[r,Ae(e)]:[e]},Ie.set(t,e),T[M](e.toLowerCase(),s),E(e),ke[e].r()}function m(e){var t=Ce[e.toUpperCase()];return t&&t.constructor}function y(e){return"string"==typeof e?e:e&&e.is||""}function b(e){for(var t,n=e[j],r=n?e.attributes:fe,i=r.length;i--;)t=r[i],n.call(e,t.name||t.nodeName,null,t.value||t.nodeValue)}function E(e){return(e=e.toUpperCase())in ke||(ke[e]={},ke[e].p=new _e((function(t){ke[e].r=t}))),ke[e].p}function w(){be&&delete e.customElements,de(e,"customElements",{configurable:!0,value:new v}),de(e,"CustomElementRegistry",{configurable:!0,value:v});for(var t=S.get(/^HTML[A-Z]*[a-z]/),n=t.length;n--;function(t){var n=e[t];if(n){e[t]=function(e){var t,r;return e||(e=this),e[ye]||(Se=!0,t=Ce[Ie.get(e.constructor)],(e=(r=Ee&&1===t.create.length)?Reflect.construct(n,fe,t.constructor):T.createElement.apply(T,t.create))[ye]=!0,Se=!1,r||b(e)),e},e[t].prototype=n.prototype;try{n.prototype.constructor=e[t]}catch(r){!0,de(n,ye,{value:e[t]})}}}(t[n]));T.createElement=function(e,t){var n=y(t);return n?Xe.call(this,e,Ae(n)):Xe.call(this,e)},$e||(et=!0,T[M](""))}var T=e.document,_=e.Object,S=function(e){var t,n,r,i,o=/^[A-Z]+[a-z]/,a=function(e,t){(t=t.toLowerCase())in s||(s[e]=(s[e]||[]).concat(t),s[t]=s[t.toUpperCase()]=e)},s=(_.create||_)(null),c={};for(n in e)for(i in e[n])for(r=e[n][i],s[i]=r,t=0;t<r.length;t++)s[r[t].toLowerCase()]=s[r[t].toUpperCase()]=i;return c.get=function(e){return"string"==typeof e?s[e]||(o.test(e)?[]:""):function(e){var t,n=[];for(t in s)e.test(t)&&n.push(t);return n}(e)},c.set=function(e,t){return o.test(e)?a(e,t):a(t,e),c},c}({collections:{HTMLAllCollection:["all"],HTMLCollection:["forms"],HTMLFormControlsCollection:["elements"],HTMLOptionsCollection:["options"]},elements:{Element:["element"],HTMLAnchorElement:["a"],HTMLAppletElement:["applet"],HTMLAreaElement:["area"],HTMLAttachmentElement:["attachment"],HTMLAudioElement:["audio"],HTMLBRElement:["br"],HTMLBaseElement:["base"],HTMLBodyElement:["body"],HTMLButtonElement:["button"],HTMLCanvasElement:["canvas"],HTMLContentElement:["content"],HTMLDListElement:["dl"],HTMLDataElement:["data"],HTMLDataListElement:["datalist"],HTMLDetailsElement:["details"],HTMLDialogElement:["dialog"],HTMLDirectoryElement:["dir"],HTMLDivElement:["div"],HTMLDocument:["document"],HTMLElement:["element","abbr","address","article","aside","b","bdi","bdo","cite","code","command","dd","dfn","dt","em","figcaption","figure","footer","header","i","kbd","mark","nav","noscript","rp","rt","ruby","s","samp","section","small","strong","sub","summary","sup","u","var","wbr"],HTMLEmbedElement:["embed"],HTMLFieldSetElement:["fieldset"],HTMLFontElement:["font"],HTMLFormElement:["form"],HTMLFrameElement:["frame"],HTMLFrameSetElement:["frameset"],HTMLHRElement:["hr"],HTMLHeadElement:["head"],HTMLHeadingElement:["h1","h2","h3","h4","h5","h6"],HTMLHtmlElement:["html"],HTMLIFrameElement:["iframe"],HTMLImageElement:["img"],HTMLInputElement:["input"],HTMLKeygenElement:["keygen"],HTMLLIElement:["li"],HTMLLabelElement:["label"],HTMLLegendElement:["legend"],HTMLLinkElement:["link"],HTMLMapElement:["map"],HTMLMarqueeElement:["marquee"],HTMLMediaElement:["media"],HTMLMenuElement:["menu"],HTMLMenuItemElement:["menuitem"],HTMLMetaElement:["meta"],HTMLMeterElement:["meter"],HTMLModElement:["del","ins"],HTMLOListElement:["ol"],HTMLObjectElement:["object"],HTMLOptGroupElement:["optgroup"],HTMLOptionElement:["option"],HTMLOutputElement:["output"],HTMLParagraphElement:["p"],HTMLParamElement:["param"],HTMLPictureElement:["picture"],HTMLPreElement:["pre"],HTMLProgressElement:["progress"],HTMLQuoteElement:["blockquote","q","quote"],HTMLScriptElement:["script"],HTMLSelectElement:["select"],HTMLShadowElement:["shadow"],HTMLSlotElement:["slot"],HTMLSourceElement:["source"],HTMLSpanElement:["span"],HTMLStyleElement:["style"],HTMLTableCaptionElement:["caption"],HTMLTableCellElement:["td","th"],HTMLTableColElement:["col","colgroup"],HTMLTableElement:["table"],HTMLTableRowElement:["tr"],HTMLTableSectionElement:["thead","tbody","tfoot"],HTMLTemplateElement:["template"],HTMLTextAreaElement:["textarea"],HTMLTimeElement:["time"],HTMLTitleElement:["title"],HTMLTrackElement:["track"],HTMLUListElement:["ul"],HTMLUnknownElement:["unknown","vhgroupv","vkeygen"],HTMLVideoElement:["video"]},nodes:{Attr:["node"],Audio:["audio"],CDATASection:["node"],CharacterData:["node"],Comment:["#comment"],Document:["#document"],DocumentFragment:["#document-fragment"],DocumentType:["node"],HTMLDocument:["#document"],Image:["img"],Option:["option"],ProcessingInstruction:["node"],ShadowRoot:["#shadow-root"],Text:["#text"],XMLDocument:["xml"]}});"object"!=typeof t&&(t={type:t||"auto"});var C,k,I,A,R,L,O,D,N,M="registerElement",P=1e5*e.Math.random()>>0,x="__"+M+P,F="addEventListener",B="attached",U="Callback",H="detached",K="extends",j="attributeChanged"+U,q=B+U,V="connected"+U,W="disconnected"+U,G="created"+U,z=H+U,X="ADDITION",J="REMOVAL",Q="DOMAttrModified",Y="DOMContentLoaded",$="DOMSubtreeModified",Z="<",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=[],oe="",ae=T.documentElement,se=re.indexOf||function(e){for(var t=this.length;t--&&this[t]!==e;);return t},ce=_.prototype,ue=ce.hasOwnProperty,le=ce.isPrototypeOf,de=_.defineProperty,fe=[],he=_.getOwnPropertyDescriptor,pe=_.getOwnPropertyNames,ve=_.getPrototypeOf,ge=_.setPrototypeOf,me=!!_.__proto__,ye="__dreCEv1",be=e.customElements,Ee=!/^force/.test(t.type)&&!!(be&&be.define&&be.get&&be.whenDefined),we=_.create||_,Te=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}}},_e=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},Se=!1,Ce=we(null),ke=we(null),Ie=new Te,Ae=function(e){return e.toLowerCase()},Re=_.create||function e(t){return t?(e.prototype=t,new e):this},Le=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,o=r.length;i<o;i++)n=r[i],ue.call(e,n)||de(e,n,he(t,n))}return function(t,n){do{e(t,n)}while((n=ve(n))&&!le.call(n,t));return t}}():function(e,t){for(var n in t)e[n]=t[n];return e}),Oe=e.MutationObserver||e.WebKitMutationObserver,De=e.HTMLAnchorElement,Ne=(e.HTMLElement||e.Element||e.Node).prototype,Me=!le.call(Ne,ae),Pe=Me?function(e,t,n){return e[t]=n.value,e}:de,xe=Me?function(e){return 1===e.nodeType}:function(e){return le.call(Ne,e)},Fe=Me&&[],Be=Ne.attachShadow,Ue=Ne.cloneNode,He=Ne.closest||function(e){for(var t=this;t&&t.nodeName!==e;)t=t.parentNode;return t},Ke=Ne.dispatchEvent,je=Ne.getAttribute,qe=Ne.hasAttribute,Ve=Ne.removeAttribute,We=Ne.setAttribute,Ge=T.createElement,ze=T.importNode,Xe=Ge,Je=Oe&&{attributes:!0,characterData:!0,attributeOldValue:!0},Qe=Oe||function(e){tt=!1,ae.removeEventListener(Q,Qe)},Ye=0,$e=M in T&&!/^force-all/.test(t.type),Ze=!0,et=!1,tt=!0,nt=!0,rt=!0;if(Oe&&((N=T.createElement("div")).innerHTML="<div><div></div></div>",new Oe((function(e,t){if(e[0]&&"childList"==e[0].type&&!e[0].removedNodes[0].childNodes.length){var n=(N=he(Ne,"innerHTML"))&&N.set;n&&de(Ne,"innerHTML",{set:function(e){for(;this.lastChild;)this.removeChild(this.lastChild);n.call(this,e)}})}t.disconnect(),N=null})).observe(N,{childList:!0,subtree:!0}),N.innerHTML=""),$e||(ge||me?(O=function(e,t){le.call(t,e)||f(e,t)},D=f):D=O=function(e,t){e[x]||(e[x]=_(!0),f(e,t))},Me?(tt=!1,function(){var e=he(Ne,F),t=e.value,n=function(e){var t=new CustomEvent(Q,{bubbles:!0});t.attrName=e,t.prevValue=je.call(this,e),t.newValue=null,t[J]=t.attrChange=2,Ve.call(this,e),Ke.call(this,t)},r=function(e,t){var n=qe.call(this,e),r=n&&je.call(this,e),i=new CustomEvent(Q,{bubbles:!0});We.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,Ke.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(Q,{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,Ke.call(n,t))};e.value=function(e,o,a){e===Q&&this[j]&&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,o,a)},de(Ne,F,e)}()):Oe||(ae[F](Q,Qe),ae.setAttribute(x,1),ae.removeAttribute(x),tt&&(k=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 I(0,i,r,t[r],n[r],X);if(n[r]!==t[r])return I(1,i,r,t[r],n[r],"MODIFICATION")}for(r in t)if(!(r in n))return I(2,i,r,t[r],n[r],J)}},I=function(e,t,n,r,i,o){var a={attrChange:e,currentTarget:t,attrName:n,prevValue:r,newValue:i};a[o]=e,s(a)},A=function(e){for(var t,n,r={},i=e.attributes,o=0,a=i.length;o<a;o++)"setAttribute"!==(n=(t=i[o]).name)&&(r[n]=t.value);return r})),T[M]=function(e,t){if(n=e.toUpperCase(),Ze&&(Ze=!1,Oe?(R=function(e,t){function n(e,t){for(var n=0,r=e.length;n<r;t(e[n++]));}return new Oe((function(r){for(var i,o,a,s=0,c=r.length;s<c;s++)"childList"===(i=r[s]).type?(n(i.addedNodes,e),n(i.removedNodes,t)):(o=i.target,rt&&o[j]&&"style"!==i.attributeName&&(a=je.call(o,i.attributeName))!==i.oldValue&&o[j](i.attributeName,i.oldValue,a))}))}(i(B),i(H)),(L=function(e){return R.observe(e,{childList:!0,subtree:!0}),e})(T),Be&&(Ne.attachShadow=function(){return L(Be.apply(this,arguments))})):(C=[],T[F]("DOMNodeInserted",c(B)),T[F]("DOMNodeRemoved",c(H))),T[F](Y,u),T[F]("readystatechange",u),T.importNode=function(e,t){switch(e.nodeType){case 1:return d(T,ze,[e,!!t]);case 11:for(var n=T.createDocumentFragment(),r=e.childNodes,i=r.length,o=0;o<i;o++)n.appendChild(T.importNode(r[o],!!t));return n;default:return Ue.call(e,!!t)}},Ne.cloneNode=function(e){return d(this,Ue,[!!e])}),et)return et=!1;if(-2<se.call(re,ee+n)+se.call(re,Z+n)&&h(e),!te.test(n)||-1<se.call(ne,n))throw new Error("The type "+e+" is invalid");var n,o,a=function(){return l?T.createElement(f,n):T.createElement(f)},s=t||ce,l=ue.call(s,K),f=l?t[K].toUpperCase():n;return l&&-1<se.call(re,Z+f)&&h(f),o=re.push((l?ee:Z)+n)-1,oe=oe.concat(oe.length?",":"",l?f+'[is="'+e.toLowerCase()+'"]':f),a.prototype=ie[o]=ue.call(s,"prototype")?s.prototype:Re(Ne),oe.length&&r(T.querySelectorAll(oe),B),a},T.createElement=Xe=function(e,t){var n=y(t),r=n?Ge.call(T,e,Ae(n)):Ge.call(T,e),i=""+e,o=se.call(re,(n?ee:Z)+(n||i).toUpperCase()),s=-1<o;return n&&(r.setAttribute("is",n=n.toLowerCase()),s&&(s=a(i.toUpperCase(),n))),rt=!T.createElement.innerHTMLHelper,s&&D(r,ie[o]),r}),addEventListener("beforeunload",(function(){delete T.createElement,delete T.importNode,delete T[M]}),!1),v.prototype={constructor:v,define:Ee?function(e,t,n){if(n)g(e,t,n);else{var r=e.toUpperCase();Ce[r]={constructor:t,create:[r]},Ie.set(t,r),be.define(e,t)}}:g,get:Ee?function(e){return be.get(e)||m(e)}:m,whenDefined:Ee?function(e){return _e.race([be.whenDefined(e),E(e)])}:E},!be||/^force/.test(t.type))w();else if(!t.noBuiltIn)try{!function(t,n,r){var i=new RegExp("^<a\\s+is=('|\")"+r+"\\1></a>$");if(n[K]="a",(t.prototype=Re(De.prototype)).constructor=t,e.customElements.define(r,t,n),!i.test(T.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){w()}if(!t.noBuiltIn)try{if(Ge.call(T,"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),o=n.n(i),a=n(0);(r=window).addEventListener("load",(function(e){if("function"==typeof o.a){r.rumTracking=new o.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(a.n)();r.rumTracking.setPageInstance(t)}}))},9:function(e,t,n){var r,i,o;i=[t,e],void 0===(o="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<e.length;t++){for(var n=e[t];" "===n.charAt(0);)n=n.substring(1);if(-1!==n.indexOf("JSESSIONID=")){var r=n.substring("JSESSIONID=".length,n.length);return'"'===r[0]&&'"'===r[r.length-1]&&(r=r.substring(1,r.length-1)),r}}return""},createXmlHttpObject:function(){return n&&window.XMLHttpRequest?new XMLHttpRequest:null},ajax:function(e,t,n,r){var i;(r=r||this.globalTrackingUrl)?(i=this.createXmlHttpObject())&&(i.open(this.AJAX_METHOD,r,!0),i.withCredentials=!0,i.setRequestHeader("Content-type","application/json"),this.csrfToken?i.setRequestHeader("Csrf-Token",this.csrfToken):i.setRequestHeader("Csrf-Token",this.getCsrfToken()),this.testId&&i.setRequestHeader("X-LinkedIn-traceDataContext-ENG_TEST_ID",this.testId),this.testSegId&&i.setRequestHeader("X-LinkedIn-traceDataContext-ENG_TEST_SEGMENT_ID",this.testSegId),i.onreadystatechange=function(){4===i.readyState&&(200===i.status||304===i.status?"function"==typeof t&&t(i):n&&n(i))},4!==i.readyState&&i.send(e)):n&&n("Tracking url is not defined")},pause:function(){this.paused=!0},unpause:function(){this.paused=!1,this.queue.length>=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=o)}});