!function(){"use strict";let e;const t=new Uint8Array(16);function n(){if(!e&&(e="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!e))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return e(t)}const r=[];for(let e=0;e<256;++e)r.push((e+256).toString(16).slice(1));var i={randomUUID:"undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};function a(e,t,a){if(i.randomUUID&&!t&&!e)return i.randomUUID();const o=(e=e||{}).random||(e.rng||n)();if(o[6]=15&o[6]|64,o[8]=63&o[8]|128,t){a=a||0;for(let e=0;e<16;++e)t[a+e]=o[e];return t}return function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return(r[e[t+0]]+r[e[t+1]]+r[e[t+2]]+r[e[t+3]]+"-"+r[e[t+4]]+r[e[t+5]]+"-"+r[e[t+6]]+r[e[t+7]]+"-"+r[e[t+8]]+r[e[t+9]]+"-"+r[e[t+10]]+r[e[t+11]]+r[e[t+12]]+r[e[t+13]]+r[e[t+14]]+r[e[t+15]]).toLowerCase()}(o)}const o="See https://go/pem/degradation-tracking-user-guide for instrumentation instructions",s="x-li-uuid",c="x-li-pop",u="x-msedge-ref",l="x-li-fabric",d="x-li-pem-resp-meta",h="content-type",f="x-cache";class p 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 v(e){return JSON.stringify(e,Object.keys(e).sort())}class g 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=v(e);if(this.featureCallCounts.has(n))t(this.featureCallCounts.get(n));else{const r=new m(e);t(r),this.featureCallCounts.set(n,r)}}}class m 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 y 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){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;this.incrementMetric(t,(t=>t.trackFailedFeatureApiCall(e,n)))}incrementRetriedFeatureApiCall(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;this.incrementMetric(t,(t=>t.trackRetriedFeatureApiCall(e,n)))}incrementRetriedSuccessfulApiCall(e,t){this.incrementMetric(t,(t=>t.trackRetriedSuccessfulFeatureApiCall(e)))}mergeMetricsFrom(e){e.metrics.forEach(((e,t)=>{const n=this.metrics.get(t);void 0!==n?e.featureCallCounts.forEach(((e,r)=>{var i;let a=n.featureCallCounts.get(r);void 0!==a?a=a.mergeCallCounts(e):null===(i=this.metrics.get(t))||void 0===i||i.featureCallCounts.set(t,e)})):this.metrics.set(t,e)}))}changeRetriedMetricsToTotal(){this.metrics.forEach((e=>e.changeRetriedMetricsToTotal()))}incrementMetric(e,t){const n=v(e);if(this.metrics.has(n))t(this.metrics.get(n));else{const r=new g(e);t(r),this.metrics.set(n,r)}}}var x;!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"}(x||(x={}));const E=new Set(Object.values(x));class b extends Error{constructor(e){super(e),Object.setPrototypeOf(this,b.prototype)}}function w(e){return 0===e.length||!e.trim()}function T(e){if("string"!=typeof e)throw new b(`The product name must be a string. ${o}.`);if(w(e))throw new b(`No product name was specified. Please configure a defaultProductName or specify it per instrumented API call. ${o}.`);if(/[^a-zA-Z0-9-_ \\/]/.test(e))throw new b(`Product name '${e}' can only contain alphanumeric, underscores (_), spaces ( ), dashes (-) and forward slashes (/). ${o}.`);return e}function C(e){if("string"!=typeof e)throw new b(`Keys must be strings. ${o}.`);if(w(e))throw new b(`Keys should not be blank. ${o}.`);if(/[^a-z0-9-]/.test(e))throw new b(`'${e}' can only contain lowercase alphanumeric characters and dashes (-). ${o}.`);return e}class k{constructor(e,t,n){var r,i,a;if(this._shouldEnablePerformanceMeasurement=!1,this._shouldDisableAvailabilityCalculation=!1,this._shouldRecordSession=!1,this._featureKey=C(e),this._defaultDegradationKey=C(t),!n)return this._additionalDegradedResponseCodes=[],this._nonDegradedResponseCodes=[],void(this._degradationKeyOverrides=[]);if("object"!=typeof n)throw new b(`DegradationTrackingMetadata options should be an object. ${o}.`);const s=n.productName;s&&(this._productName=T(s));const c=n.additionalDegradedResponseCodes,u=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 b(`Please only specify positive integer response codes between 1 and 999 for the ${t} option. ${e} was specified. ${o}.`);var n;if(429===e||999===e)throw new b(`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===x.NonDegradedResponseCodes&&e>=400&&e<500)throw new b(`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 ${x.AdditionalDegradedResponseCodes} option. Please remove ${e} from the ${x.NonDegradedResponseCodes} option. ${o}.`)};if(void 0!==e&&!Array.isArray(e))throw new b(`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 ${x.NonDegradedResponseCodes} option. ${o}.`);if(void 0!==t&&!Array.isArray(t))throw new b(`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 ${x.AdditionalDegradedResponseCodes} option. ${o}.`);null==e||e.forEach((e=>n(e,x.NonDegradedResponseCodes))),null==t||t.forEach((e=>n(e,x.AdditionalDegradedResponseCodes)));const r=new Set(t),i=new Set(e);if([...r].some((e=>i.has(e))))throw new b(`Response codes can't be both degraded and non-degraded. Please ensure that your additionalDegradedResponseCodes and nonDegradedResponseCodes don't have any overlapping response codes. ${o}.`)}(u,c),this._nonDegradedResponseCodes=u||[],this._additionalDegradedResponseCodes=c||[],this._degradationKeyOverrides=n.degradationKeyOverrides||[],this._clientSensorGroupName=n.clientSensorGroupName,this._shouldEnablePerformanceMeasurement=null!==(r=n.enablePerformanceMeasurement)&&void 0!==r&&r,this._customTrackingId=n.customTrackingId,this._shouldDisableAvailabilityCalculation=null!==(i=n.disableAvailabilityCalculation)&&void 0!==i&&i,this._shouldRecordSession=null!==(a=n.enableSessionRecording)&&void 0!==a&&a,function(e){Object.keys(e).forEach((e=>{if(!E.has(e))throw new b(`An unsupported degradation tracking option '${e}' was provided. Please fix or remove it. ${o}`)}))}(n)}static isDegradationTrackingMetadata(e){return null!=e&&Object.getOwnPropertyNames(k.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 S{constructor(e){this._degradationTrackingMetadata=e,this._featureMetricStore=new y,this._lastRequestMetricStore=new y,this._requestsMade=0,this._trackingId=a()}static isRetryableDegradationTrackingMetadata(e){return null!=e&&Object.getOwnPropertyNames(S.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){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]: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 I(e,t){if(!e.includes("/"))return e;const n=function(e){const t=document.createElement("a");return t.href=e,t.pathname}(e),r=n.split("/").filter((e=>e.length));if(!t.length)return r.join("/");const i=[];for(let e=r.length-1;e>=0;e--){const n=r[e],a=t.indexOf(n);a>=0?t.splice(a,1):i.push(n)}return i.reverse().join("/")}class _ extends k{static isFailureTrackingMetadata(e){return"object"==typeof e&&(null==e?void 0:e.constructor.name)===_.name}}class A{constructor(e,t){if(this._additionalDegradedResponseCodes=new Set,this._degradationKeyByResponseCode=new Map,this._shouldDisableAvailabilityCalculation=!1,this._shouldRecordSession=!1,this._retryableTrackingMetadata=null,!S.isRetryableDegradationTrackingMetadata(e)&&!k.isDegradationTrackingMetadata(e)&&!_.isFailureTrackingMetadata(e))throw new b("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 b("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=k.isDegradationTrackingMetadata(e)?e:void 0;S.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))}processAdditionalDegradedResponseCodes(e){e.forEach((e=>{if(this._nonDegradedResponseCodes.has(e))throw new b(`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. ${o}.`);this._additionalDegradedResponseCodes.add(e)}))}initializeDegradationKeyOverrides(e){e.forEach((e=>{if(!e.responseCodesToOverride||!e.degradationKey||!Array.isArray(e.responseCodesToOverride)||"string"!=typeof e.degradationKey)throw new b(`Degradation key overrides must consist of an array of responseCodesToOverride and a string degradationKey. ${o}.`);new Set(e.responseCodesToOverride).forEach((t=>{if(!this.canResponseCodeCountAgainstAvailability(t))throw new b(`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 R{constructor(e){const t=new Map;null==e||e.forEach(((e,n)=>{t.set(n.toLowerCase(),e)})),this._callTreeId=t.get(s)||null,this._pointOfPresenceId=t.get(c)||null,this._msEdgeRef=t.get(u)||null,this._fabric=t.get(l)||null,this._responseMetadata=t.get(d)||null,this._downstreamAvailability=function(e){if(null==e)return null;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 null}(this._responseMetadata)||1,this._contentType=t.get(h)||null,this._cdnCacheMetadata=t.get(f)||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)}}class N{constructor(e,t,n,r){this._responseCode=e||null,this._parsedResponseHeaders=t?new R(t):new R,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 L="undefined"==typeof FastBoot;class O{constructor(e,t,n){this._featureMetricStore=new y,this._visibilityListener=()=>{"hidden"===document.visibilityState&&this._metricSender.produceMetricEvent(!0)},this._defaultProductName=e,this._fireEventCallback=t,this._jetErrorCallback=n,this._metricSender=new p(this._featureMetricStore,t),L&&(this._metricsInterval=window.setInterval((()=>this._metricSender.produceMetricEvent()),6e4),window.addEventListener("visibilitychange",this._visibilityListener))}trackFeatureDegradationsForFetch(e,t,n,r,i){let a,o=null;const s=new Map,c=this._createFailureProcessingMetadata(n);return t=this._getAndValidateUrlEntityIDs(t),r.then((e=>{o=e.status,e.headers.forEach(((e,t)=>s.set(t.toLowerCase(),e))),!1===e.ok&&(a=e)})).catch((e=>{throw a=e,e})).finally((()=>{this._trackResponse(e,o,t,c,i,s,a)}))}trackFeatureDegradationsForJQueryAjax(e,t,n,r,i,a){const o=t.status,s=t.getAllResponseHeaders(),c=new Map;s&&s.trim().split(/[\r\n]+/).forEach((e=>{const t=e.split(": "),n=t.shift();if(n){const e=t.join(": ");c.set(n.toLowerCase(),e)}}));const u=a?null:t,l=this._createFailureProcessingMetadata(r);n=this._getAndValidateUrlEntityIDs(n),this._trackResponse(e,o,n,l,i,c,u)}startRetryFlow(e){return O.startRetryFlow(e)}static startRetryFlow(e){return new S(e)}completeRetryFlow(e){if(!S.isRetryableDegradationTrackingMetadata(e))throw new b("retryFlowMetadata must be an instance of RetryableDegradationTrackingMetadata");e.flushMetricStoreToServiceStore(this._featureMetricStore)}_trackResponse(e,t,n,r,i,a,o){const s=new N(t,a,o),c=s.parsedHeaders,u=function(e){const t=e.responseError,n=e.parsedHeaders,r=e.responseCode;if(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;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"}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=I(e,n),d=new Set,h=new Set;if(r.forEach((e=>{d.add(e.productName),h.add(e.featureKey);const n=null!==e.retryableTrackingMetadata&&null!==e.retryMetricStore;if(!e.shouldDisableAvailabilityCalculation&&e.shouldImpactAvailability(u))if(e.isCountedAgainstAvailability(u,t)){(n?e.retryableTrackingMetadata.incrementRetriedFeatureApiCall.bind(e.retryableTrackingMetadata):this._featureMetricStore.incrementFailedFeatureApiCall.bind(this._featureMetricStore))({featureKey:e.featureKey,productName:e.productName,pointOfPresenceId:c.pointOfPresenceId,responseErrorType:u,responseFabric:c.fabric},i,function(e,t){return"DOWNSTREAM_GRACEFUL_DEGRADATION"===e?t.downstreamAvailability:0}(u,c))}else{(n?e.retryableTrackingMetadata.incrementRetriedSuccessfulApiCall.bind(e.retryableTrackingMetadata):this._featureMetricStore.incrementSuccessfulFeatureApiCall.bind(this._featureMetricStore))({featureKey:e.featureKey,productName:e.productName,pointOfPresenceId:c.pointOfPresenceId,responseFabric:c.fabric},i)}})),u){this._reportErrorIfUnclassified(o,u,t,d,h);const e=function(e,t,n,r){if(!(null==e?void 0:e.trim())||!t||!Array.isArray(t))return[];const i=[],a=r.responseCode;return t.forEach((t=>{const o=t.getDegradationKey(a),s=t.shouldImpactAvailability(n)&&t.isCountedAgainstAvailability(n,a),c={endpointPath:e,degradationKey:o,responseErrorTypeV2:n,isCountedAgainstAvailability:s,downstreamServiceErrorCode:r.downstreamServiceErrorCode};a&&(c.responseCode=a);const u=r.parsedHeaders;u.callTreeId&&(c.responseCallTreeId=u.callTreeId),(null==u?void 0:u.pointOfPresenceId)&&(c.pointOfPresenceId=u.pointOfPresenceId),(null==u?void 0:u.microsoftEdgeReference)&&(c.microsoftEdgeReference=u.microsoftEdgeReference),(null==u?void 0:u.fabric)&&(c.fabric=u.fabric),S.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);e.forEach((e=>{this._fireEventCallback("FeatureDegradeEvent",e,i)}))}}_reportErrorIfUnclassified(e,t,n,r,i){var a;if((0===n||null==n)&&"UNCLASSIFIED"===t){const t=["pem-unclassified-error"];let n;r.forEach((e=>t.push(`pem-product-${e}`))),i.forEach((e=>t.push(`pem-feature-${e}`))),n=e instanceof Error?e:new Error(`Could not classify jQuery response: ${JSON.stringify(e)}`),null===(a=this._jetErrorCallback)||void 0===a||a.call(this,n,t,!1)}}_createFailureProcessingMetadata(e){if(!e||!Array.isArray(e)||!e.length)throw new b(`Please specify a non-empty array of degradation tracking metadata. ${o}.`);const t=new Set;return e.map((e=>{if(!k.isDegradationTrackingMetadata(e)&&!S.isRetryableDegradationTrackingMetadata(e))throw new b(`Please use DegradationTrackingMetadata or RetryableDegradationTrackingMetadata to specify the degradations. ${o}.`);const n=T(e.productName||this._defaultProductName),r=`${n}!!${e.featureKey}`;if(t.has(r))throw new b("More than one degradation tracking metadata has the same productName/featureKey combination. Please merge them together");return t.add(r),new A(e,n)}))}_getAndValidateUrlEntityIDs(e){if(!Array.isArray(e))throw new b(`Please specify the queried IDs to remove from the request URL, or use an empty array if there are none. ${o}.`);return e}}function P(e,t){if(!e)return null;let n=e.matches||e.webkitMatchesSelector||e.mozMatchesSelector||e.msMatchesSelector;for(;e&&!n.call(e,t);)e=e.parentElement;return e}function D(e){"complete"===document.readyState?e():window.addEventListener("load",(()=>{setTimeout(e)}))}function M(e){return null==e||"object"!=typeof e?[]:Array.prototype.slice.call(e)}function F(e){const t=e.getBoundingClientRect(),n=window.innerHeight||document.documentElement.clientHeight,r=window.innerWidth||document.documentElement.clientWidth,i=t.top<=n&&t.top+t.height>=0,a=t.left<=r&&t.left+t.width>=0;return i&&a}function U(e,t,n){const r=new RegExp(`([\\?&])${n?t:encodeURIComponent(t)}=([^&#]*)`).exec(e);return r&&(n?r[2]:decodeURIComponent(r[2]))}function B(e,t,n,r){if(!e||!t)throw new Error(`Required param of addQueryParam missing: url = ${e}, key = ${t}`);t=encodeURIComponent(t),n=encodeURIComponent(n);const i=U(e,t,!0);if(i)return r?e.replace(i,n):e;{const r=e.indexOf("?");let[i,a]=e.split("#"),o="&";return r<0?o="?":r===e.length-1&&(o=""),a&&(a=`#${a}`),`${i}${o}${t}=${n}${a||""}`}}function H(e){const t=document.cookie.match(new RegExp("(^| )"+e+"=([^;]+)"));return t&&t[2]}function K(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const r=document.createEvent("CustomEvent");r.initCustomEvent(t,!0,!0,n),e.dispatchEvent(r)}function W(e){return void 0!==e.msHidden?e.msHidden:void 0!==e.hidden?e.hidden:void 0}function q(e){let t=e.querySelector('meta[name="linkedin:pageTag"]');return t&&t.content||""}function V(e){let t=e.querySelector('meta[name="locale"]');return t&&t.content||""}function j(e){return e&&'"'===e.charAt(0)&&'"'===e.charAt(e.length-1)?e.slice(1,-1):e}function G(e,t){t=t||"log";if("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)}const z=/ /g,X=/[\s\u0000<>"]|%00/,J=/\\/,Q=/([.]|%2e){2}/i;let $=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 Y(e){let t,n="invalid://";if("string"!=typeof e)return G("jSecure Warning: url must be a string","error"),n;if(t=e.trim(),t.indexOf(" ")>-1&&(G("jSecure Warning: url should not contain spaces: "+e,"warn"),t=t.replace(z,"+")),!$.test(t))return G("jSecure Error: URL should be absolute with allowed schemas, relative, a hash fragment or query string. "+e,"error"),n;if(X.test(t))return G("jSecure Error: not valid url character found in url: "+e,"error"),n;let r,i=t.split("?")[0],a=!1;try{r=decodeURI(i)}catch(e){a=!0}return a?(G("jSecure Error: malformed url path detected: "+i),n):J.test(i)||Q.test(i)||Q.test(r)?(G("jSecure Error: malicious data found in url path: "+i,"error"),n):e}const Z={redirect(e){window&&(window.location.href=e)}};function ee(e){let{method:t="GET",headers:n={},sendCookies:r=!0,skipCsrfToken:i=!1,postData:a,isPemEnabled:o=!1,pemDegradationTrackingMetadata:s=[],pemEntityIds:c=[]}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const u={method:t,headers:n,body:null};if(!i){const e=H("JSESSIONID");e&&(u.headers["Csrf-Token"]=j(e))}r&&(u.credentials="include"),"POST"!==u.method&&"PUT"!==u.method||(u.body=a);const l=fetch(e,u),d=l.then((n=>n.ok||304===n.status?n.text().then((e=>(n.responseText=e,n))):n.text().then((r=>{const i=new Error(`${t} request for ${e} has failed with status code ${n.status}`);return n.responseText=r,i.response=n,Promise.reject(i)}))));return o&&(s.length?te(l,e,c,s):console.warn("Please set the value for the option pemDegradationTrackingMetadata when PEM is enabled.")),d}function te(e,t,n,r){try{window.tracking.then((i=>{window.pemTracking.then((a=>{a.trackFeatureDegradationsForFetch(t,n,r,e,i.state.currentPageInstance)}))}))}catch(e){}}const ne={className:"class"},re="A path to the asset must be provided";function ie(e){return(new DOMParser).parseFromString(e,"image/svg+xml").firstChild}function ae(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Object.keys(t).map((n=>{const r=ne[n]||n;e.setAttribute(r,t[n])})),e}function oe(e,t){if(!e)return Promise.reject(new Error("An icon tag must be provided to inlineIcon"));const n=e.getAttribute("data-svg-class-name");return function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!e)return Promise.reject(new Error(re));const n={focusable:"false",...t};return ee(e,{sendCookies:!1,skipCsrfToken:!0}).then((e=>ie(e.responseText))).then((e=>ae(e,n)))}(t,n?{className:n}:{}).then((t=>(e.appendChild(t),e.setAttribute("aria-hidden","true"),t)))}const se=["IMG","IFRAME","VIDEO","SCRIPT"],ce="SCRIPT";class ue{constructor(){let{delayedUrlAttributeName:e="data-delayed-url",delayedPosterAttributeName:t="data-delayed-poster",delayedBackground:n="data-delayed-background",embeddedSrcAttributeName:r="data-li-src",ghostClassesAttributeName:i="data-ghost-classes",ghostUrlAttributeName:a="data-ghost-url",lazyloadClassName:o="lazy-load",lazyloadedClassName:s="lazy-loaded",onLoadClassName:c="onload",onErrorClassName:u="onerror",disableElementInViewportCondition:l=!1}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.elementCache=[],this.onLoadClassName=c,this.onErrorClassName=u,this.delayedUrlAttributeName=e,this.delayedPosterAttributeName=t,this.delayedBackground=n,this.embeddedSrcAttributeName=r,this.lazyloadClassName=o,this.lazyloadedClassName=s,this.ghostUrlAttributeName=a,this.lazyloadElSelector=`[${this.delayedUrlAttributeName}], [${this.embeddedSrcAttributeName}], .${this.lazyloadClassName}`,this.boundLoadVisibleImages=this.loadVisibleImages.bind(this),this.boundEvents=!1,this.scriptLoadPromises={},this.ghostClassesAttributeName=i,this.disableElementInViewportCondition=l,D((()=>this.refreshLoader()))}getLazyLoadedJavascriptModule(e){return this.scriptLoadPromises[e]=this.scriptLoadPromises[e]||function(){let e,t;const n=new Promise(((n,r)=>{e=n,t=r}));return n.resolve=e,n.reject=t,n}(),this.scriptLoadPromises[e]}refreshLoader(){this.elementCache=M(document.querySelectorAll(this.lazyloadElSelector)),this.loadVisibleImages(),this.elementCache.length&&!this.boundEvents&&this._attachEvents()}_attachEvents(){window.addEventListener("scroll",this.boundLoadVisibleImages,!0),window.addEventListener("touchmove",this.boundLoadVisibleImages,!0),window.addEventListener("resize",this.boundLoadVisibleImages,!0),this.boundEvents=!0}_detachEvents(){window.removeEventListener("scroll",this.boundLoadVisibleImages,!0),window.removeEventListener("touchmove",this.boundLoadVisibleImages,!0),window.removeEventListener("resize",this.boundLoadVisibleImages,!0),this.boundEvents=!1}_dropHttp(e){return e&&e.replace(/^http:\/\//i,"//")}lazyloadElOnload(e){if(e.classList.add(this.lazyloadedClassName),this.updateBusyState(e),e.tagName===ce){const{moduleId:t}=e.dataset;this.getLazyLoadedJavascriptModule(t).resolve(window[t])}}lazyloadOnerror(e){const t=e.classList.contains(this.onErrorClassName),n=e.getAttribute(this.ghostUrlAttributeName);if(e.classList.add(this.lazyloadedClassName),e.classList.add(this.onErrorClassName),n&&!t){e.setAttribute("src",Y(n));const t=e.getAttribute(this.ghostClassesAttributeName);t&&t.length&&t.split(" ").forEach((t=>{e.classList.add(t)})),this.updateBusyState(e)}if(e.tagName===ce){const{moduleId:t}=e.dataset;this.getLazyLoadedJavascriptModule(t).reject(new Error(`Could not lazy load JS with src ${e.src}`))}}loadVisibleImages(){let e=0;for(;e{this.lazyloadElOnload(e),this.lazyloadElOnload(t)})).catch((()=>this.lazyloadOnerror(t))):n&&-1!==se.indexOf(t.tagName)?(this.updateBusyState(t,!0),t.onerror=this.lazyloadOnerror.bind(this,t),t.onload=t.oncanplay=this.lazyloadElOnload.bind(this,t),t.src=Y(n)):n&&t.hasAttribute(this.delayedBackground)?(t.style.backgroundImage=`url("${Y(n)}")`,this.lazyloadElOnload(t)):this.lazyloadOnerror(t),"VIDEO"===t.tagName&&(t.poster=Y(t.getAttribute(this.delayedPosterAttributeName))),t.removeAttribute(this.delayedUrlAttributeName),t.removeAttribute(this.embeddedSrcAttributeName),t.classList.remove(this.lazyloadClassName),this.elementCache.splice(e,1)}else e++}this.elementCache.length||this._detachEvents()}updateBusyState(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];e.tagName!==ce&&(null==e||e.setAttribute("aria-busy",t))}}let le=null;class de{constructor(){let{gaugeMetricEndpoint:e,counterMetricEndpoint:t,pageKey:n,pageInstanceHeader:r=null}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const i=document.getElementById("config");if(i&&i.dataset&&(this.isBot="true"===i.dataset.isBot),this.gaugeMetricEndpoint=e,this.counterMetricEndpoint=t,this.perfData=window.performance.timing,this.pageInstanceHeader=r,this.pageKey=n,!this.pageKey||!this.gaugeMetricEndpoint||!this.counterMetricEndpoint)throw new Error("Please pass a valid pageKey, counterMetricEndpoint & gaugeMetricEndpoint");window.gaugeEndpoint="guestGauge"}_getPageLoadTime(){return this.perfData.loadEventEnd-this.perfData.navigationStart}firePageLoadTimeMetric(){if(this.isBot||this._pageLoadTimeMetricFired||!this.perfData)return;const e=this._getPageLoadTime();this.fireGaugeIngraphMetric({metricsType:"pageLoadTime",metricsValue:e}),this._pageLoadTimeMetricFired=!0}_beacon(e,t){e=B(e,"csrfToken",j(H("JSESSIONID")));const n=new Blob([t],{type:"application/json"});return navigator.sendBeacon(e,n)}fireGaugeIngraphMetric(){let{metricsType:e,metricsValue:t,sendBeacon:n=!1}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const r="number"==typeof t&&!isNaN(t);if(!e||!r)throw new Error("valid metricsType & metricsValue are required");const i=JSON.stringify({pageKey:this.pageKey,metricsType:e,metricsValue:t});let a={"Content-Type":"application/json"};this.pageInstanceHeader&&this.pageInstanceHeader.pageUrn&&this.pageInstanceHeader.trackingId&&(a["x-li-pageInstance"]=this.pageInstanceHeader.pageUrn+";"+this.pageInstanceHeader.trackingId),n?this._beacon(this.gaugeMetricEndpoint,i):ee(this.gaugeMetricEndpoint,{method:"POST",headers:a,postData:i})}fireSeoPageViewMetric(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:document;!this._seoPageViewMetricFired&&this._isSEOPageView(e)&&(this.fireCounterIngraphMetric({metricsType:"seoPageView"}),this._seoPageViewMetricFired=!0)}fireCounterIngraphMetric(){let{metricsType:e,sendBeacon:t=!1}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!e)throw new Error("metricsType is required");const n=JSON.stringify({pageKey:this.pageKey,metricsType:e});t?this._beacon(this.counterMetricEndpoint,n):ee(this.counterMetricEndpoint,{method:"POST",headers:{"Content-Type":"application/json"},postData:n})}_isSEOPageView(){const e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:document).referrer||"",t=e.indexOf("mail.google.com")>-1,n=e.indexOf(".google.com")>-1,r=!t&&n;return!this.isBot&&r}fireModuleImpressionMetric(e){e&&this.fireCounterIngraphMetric({metricsType:`moduleImpressionEvent-${e}`})}}const he="light",fe="dark";function pe(){const e=document.getElementById("config");let t;return e&&e.dataset&&(t=e.dataset.theme),t?document.documentElement.classList.contains("dark")?fe:he:void 0}var ve,ge=["breadcrumb"],me=["$type"],ye=["requestStart"],xe=["requestTime","viewNames","requestType","requestTag"],Ee=["requestStart"],be=["requestStart"],we=["requestTime","viewNames","requestType"],Te=["basePageTreeId"];function Ce(){return Ce="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,n){var r=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=Oe(e)););return e}(e,t);if(r){var i=Object.getOwnPropertyDescriptor(r,t);return i.get?i.get.call(arguments.length<3?e:n):i.value}},Ce.apply(this,arguments)}function ke(){ke=function(){return t};var e,t={},n=Object.prototype,r=n.hasOwnProperty,i=Object.defineProperty||function(e,t,n){e[t]=n.value},a="function"==typeof Symbol?Symbol:{},o=a.iterator||"@@iterator",s=a.asyncIterator||"@@asyncIterator",c=a.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 a=t&&t.prototype instanceof g?t:g,o=Object.create(a.prototype),s=new A(r||[]);return i(o,"_invoke",{value:k(e,n,s)}),o}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 h="suspendedStart",f="executing",p="completed",v={};function g(){}function m(){}function y(){}var x={};u(x,o,(function(){return this}));var E=Object.getPrototypeOf,b=E&&E(E(R([])));b&&b!==n&&r.call(b,o)&&(x=b);var w=y.prototype=g.prototype=Object.create(x);function T(e){["next","throw","return"].forEach((function(t){u(e,t,(function(e){return this._invoke(t,e)}))}))}function C(e,t){function n(i,a,o,s){var c=d(e[i],e,a);if("throw"!==c.type){var u=c.arg,l=u.value;return l&&"object"==He(l)&&r.call(l,"__await")?t.resolve(l.__await).then((function(e){n("next",e,o,s)}),(function(e){n("throw",e,o,s)})):t.resolve(l).then((function(e){u.value=e,o(u)}),(function(e){return n("throw",e,o,s)}))}s(c.arg)}var a;i(this,"_invoke",{value:function(e,r){function i(){return new t((function(t,i){n(e,r,t,i)}))}return a=a?a.then(i,i):i()}})}function k(t,n,r){var i=h;return function(a,o){if(i===f)throw new Error("Generator is already running");if(i===p){if("throw"===a)throw o;return{value:e,done:!0}}for(r.method=a,r.arg=o;;){var s=r.delegate;if(s){var c=S(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===h)throw i=p,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);i=f;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 S(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,S(t,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),v;var a=d(i,t.iterator,n.arg);if("throw"===a.type)return n.method="throw",n.arg=a.arg,n.delegate=null,v;var o=a.arg;return o?o.done?(n[t.resultName]=o.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=e),n.delegate=null,v):o:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,v)}function I(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 _(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function A(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(I,this),this.reset(!0)}function R(t){if(t||""===t){var n=t[o];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var i=-1,a=function n(){for(;++i=0;--a){var o=this.tryEntries[a],s=o.completion;if("root"===o.tryLoc)return i("end");if(o.tryLoc<=this.prev){var c=r.call(o,"catchLoc"),u=r.call(o,"finallyLoc");if(c&&u){if(this.prev=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),_(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;_(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(t,n,r){return this.delegate={iterator:R(t),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=e),v}},t}function Se(e,t,n,r,i,a,o){try{var s=e[a](o),c=s.value}catch(e){return void n(e)}s.done?t(c):Promise.resolve(c).then(r,i)}function Ie(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function _e(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function Re(e,t,n){return t=Oe(t),function(e,t){if(t&&("object"===He(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return Ne(e)}(e,Le()?Reflect.construct(t,n||[],Oe(e).constructor):t.apply(e,n))}function Ne(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Le(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Le=function(){return!!e})()}function Oe(e){return Oe=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Oe(e)}function Pe(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&&De(e,t)}function De(e,t){return De=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},De(e,t)}function Me(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=Ue(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,o=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return o=e.done,e},e:function(e){s=!0,a=e},f:function(){try{o||null==n.return||n.return()}finally{if(s)throw a}}}}function Fe(e){return function(e){if(Array.isArray(e))return Be(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||Ue(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 Ue(e,t){if(e){if("string"==typeof e)return Be(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)?Be(e,t):void 0}}function Be(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n1&&void 0!==arguments[1]?arguments[1]:0;return(Ye[e[t+0]]+Ye[e[t+1]]+Ye[e[t+2]]+Ye[e[t+3]]+"-"+Ye[e[t+4]]+Ye[e[t+5]]+"-"+Ye[e[t+6]]+Ye[e[t+7]]+"-"+Ye[e[t+8]]+Ye[e[t+9]]+"-"+Ye[e[t+10]]+Ye[e[t+11]]+Ye[e[t+12]]+Ye[e[t+13]]+Ye[e[t+14]]+Ye[e[t+15]]).toLowerCase()}function tt(e){if(!$e(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 nt(e,t,n){function r(e,r,i,a){var o;if("string"==typeof e&&(e=function(e){e=unescape(encodeURIComponent(e));for(var t=[],n=0;n>>9<<4)+1}function it(e,t){var n=(65535&e)+(65535&t);return(e>>16)+(t>>16)+(n>>16)<<16|65535&n}function at(e,t,n,r,i,a){return it((o=it(it(t,e),it(r,a)))<<(s=i)|o>>>32-s,n);var o,s}function ot(e,t,n,r,i,a,o){return at(t&n|~t&r,e,t,i,a,o)}function st(e,t,n,r,i,a,o){return at(t&r|n&~r,e,t,i,a,o)}function ct(e,t,n,r,i,a,o){return at(t^n^r,e,t,i,a,o)}function ut(e,t,n,r,i,a,o){return at(n^(t|~r),e,t,i,a,o)}nt("v3",48,(function(e){if("string"==typeof e){var t=unescape(encodeURIComponent(e));e=new Uint8Array(t.length);for(var n=0;n>5]>>>i%32&255,o=parseInt(r.charAt(a>>>4&15)+r.charAt(15&a),16);t.push(o)}return t}(function(e,t){e[t>>5]|=128<>5]|=(255&e[r/8])<>>32-t}nt("v5",80,(function(e){var t=[1518500249,1859775393,2400959708,3395469782],n=[1732584193,4023233417,2562383102,271733878,3285377520];if("string"==typeof e){var r=unescape(encodeURIComponent(e));e=[];for(var i=0;i>>0;x=y,y=m,m=ft(g,30)>>>0,g=v,v=w}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]+x>>>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 pt=Uint8Array,vt=Uint16Array,gt=Uint32Array,mt=new pt([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]),yt=new pt([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]),xt=new pt([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),Et=function(e,t){for(var n=new vt(31),r=0;r<31;++r)n[r]=t+=1<>>1|(21845&St)<<1;It=(61680&(It=(52428&It)>>>2|(13107&It)<<2))>>>4|(3855&It)<<4,kt[St]=((65280&It)>>>8|(255&It)<<8)>>>1}var _t=function(e,t,n){for(var r=e.length,i=0,a=new vt(t);i>>c]=u}else for(o=new vt(r),i=0;i>>15-e[i]);return o},At=new pt(288);for(St=0;St<144;++St)At[St]=8;for(St=144;St<256;++St)At[St]=9;for(St=256;St<280;++St)At[St]=7;for(St=280;St<288;++St)At[St]=8;var Rt=new pt(32);for(St=0;St<32;++St)Rt[St]=5;var Nt=_t(At,9,0),Lt=_t(Rt,5,0),Ot=function(e){return(e+7)/8|0},Pt=function(e,t,n){n<<=7&t;var r=t/8|0;e[r]|=n,e[r+1]|=n>>>8},Dt=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},Mt=function(e,t){for(var n=[],r=0;rh&&(h=a[r].s);var f=new vt(h+1),p=Ft(n[l-1],f,0);if(p>t){r=0;var v=0,g=p-t,m=1<t))break;v+=m-(1<>>=g;v>0;){var x=a[r].s;f[x]=0&&v;--r){var E=a[r].s;f[E]==t&&(--f[E],++v)}p=t}return[new pt(f),p]},Ft=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},Ut=function(e){for(var t=e.length;t&&!e[--t];);for(var n=new vt(++t),r=0,i=e[0],a=1,o=function(e){n[r++]=e},s=1;s<=t;++s)if(e[s]==i&&s!=t)++a;else{if(!i&&a>2){for(;a>138;a-=138)o(32754);a>2&&(o(a>10?a-11<<5|28690:a-3<<5|12305),a=0)}else if(a>3){for(o(i),--a;a>6;a-=6)o(8304);a>2&&(o(a-3<<5|8208),a=0)}for(;a--;)o(i);a=1,i=e[s]}return[n.subarray(0,r),t]},Bt=function(e,t){for(var n=0,r=0;r>>8,e[i+2]=255^e[i],e[i+3]=255^e[i+1];for(var a=0;a4&&!S[xt[_-1]];--_);var A,R,N,L,O=u+5<<3,P=Bt(i,At)+Bt(a,Rt)+o,D=Bt(i,h)+Bt(a,v)+o+14+3*_+Bt(T,S)+(2*T[16]+3*T[17]+7*T[18]);if(O<=P&&O<=D)return Ht(t,l,e.subarray(c,c+u));if(Pt(t,l,1+(D15&&(Pt(t,l,B[C]>>>5&127),l+=B[C]>>>12)}}}else A=Nt,R=At,N=Lt,L=Rt;for(C=0;C255){H=r[C]>>>18&31,Dt(t,l,A[H+257]),l+=R[H+257],H>7&&(Pt(t,l,r[C]>>>23&31),l+=mt[H]);var K=31&r[C];Dt(t,l,N[K]),l+=L[K],K>3&&(Dt(t,l,r[C]>>>5&8191),l+=yt[K])}else Dt(t,l,A[r[C]]),l+=R[r[C]];return Dt(t,l,A[256]),l+R[256]},Wt=new gt([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),qt=new pt(0),Vt=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}(),jt=function(e,t,n,r,i){return function(e,t,n,r,i,a){var o=e.length,s=new pt(r+o+5*(1+Math.ceil(o/7e3))+i),c=s.subarray(r,s.length-i),u=0;if(!t||o<8)for(var l=0;l<=o;l+=65535){var d=l+65535;d>=o&&(c[u>>3]=a),u=Ht(c,u+1,e.subarray(l,d))}else{for(var h=Wt[t-1],f=h>>>13,p=8191&h,v=(1<7e3||S>24576)&&L>423){u=Kt(e,c,0,b,w,T,k,S,_,l-_,u),S=C=k=0,_=l;for(var O=0;O<286;++O)w[O]=0;for(O=0;O<30;++O)T[O]=0}var P=2,D=0,M=p,F=R-N&32767;if(L>2&&A==E(l-F))for(var U=Math.min(f,L)-1,B=Math.min(32767,l),H=Math.min(258,L);F<=B&&--M&&R!=N;){if(e[l+P]==e[l+P-F]){for(var K=0;KP){if(P=K,D=F,K>U)break;var W=Math.min(F,K-2),q=0;for(O=0;Oq&&(q=j,N=V)}}}F+=(R=N)-(N=g[R])+32768&32767}if(D){b[S++]=268435456|Tt[P]<<18|Ct[D];var G=31&Tt[P],z=31&Ct[D];k+=mt[G]+yt[z],++w[257+G],++T[z],I=l+P,++C}else b[S++]=e[l],++w[e[l]]}}u=Kt(e,c,a,b,w,T,k,S,_,l-_,u),!a&&7&u&&(u=Ht(c,u+1,qt))}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?vt:4==e.BYTES_PER_ELEMENT?gt:pt)(n-t);return r.set(e.subarray(t,n)),r}(s,0,r+Ot(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)},Gt=function(e,t,n){for(;n;++t)e[t]=n,n>>>=8},zt="undefined"!=typeof TextDecoder&&new TextDecoder;try{zt.decode(qt,{stream:!0})}catch(Di){}function Xt(){return"undefined"!=typeof window&&"function"==typeof window.fetch}function Jt(){try{return Xt()&&"keepalive"in new Request("")}catch(e){return!1}}function Qt(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 a=t;if(i&&"undefined"!=typeof TextEncoder)try{a=function(e,t){t||(t={});var n=function(){var e=-1;return{p:function(t){for(var n=e,r=0;r>>8;e=n},d:function(){return~e}}}(),r=e.length;n.p(e);var i=jt(e,t,function(e){return 10+(e.filename&&e.filename.length+1||0)}(t),8),a=i.length;return function(e,t){var n=t.filename;if(e[0]=31,e[1]=139,e[2]=8,e[8]=t.level<2?4:9==t.level?2:0,e[9]=3,0!=t.mtime&&Gt(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),Gt(i,a-8,n.d()),Gt(i,a-4,r),i}((new TextEncoder).encode(t)),r["content-encoding"]="gzip"}catch(e){}return{body:a,keepalive:n,credentials:"include",headers:r,method:"POST",mode:"cors"}}function $t(e){return e&&"message"in e?e.message:"UNKNOWN_ERROR"}var Yt,Zt="undefined"!=typeof navigator&&"sendBeacon"in navigator,en=Jt()?function(e,t,n,r){return new Promise((function(i){fetch(e,Qt({body:t,keepalive:!0,headers:n,compress:r})).catch((function(){return fetch(e,Qt({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:$t(e)})}))}))}:function(e,t,n,r){return new Promise((function(i){if(Zt){var a=!1;try{a=navigator.sendBeacon(e,t)}catch(e){}if(a)return void i({type:"unknown",drop:!1})}fetch(e,Qt({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:$t(e)})}))}))};function tn(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 nn(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"key",r=arguments.length>3?arguments[3]:void 0,i=indexedDB.open(e);i.onupgradeneeded=function(){try{i.result.createObjectStore(t,{keyPath:n})}catch(e){null==r||r.onError(e)}};var a=new Promise((function(e,t){i.onsuccess=function(){var t=i.result;t.onversionchange=function(){return t.close()},e(t),null==r||r.onSuccess()},i.onerror=function(){t(i.error),null==r||r.onError(i.error)}}));return function(e,n){return a.then((function(r){return n(r.transaction(t,e).objectStore(t))}))}}function rn(){return Yt||(Yt=nn("idb-queue","default")),Yt}function an(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{maxNumber:1e3,batchEvictionNumber:300},n=0,r=null;return e.openKeyCursor().onsuccess=function(){var i=this.result;i&&n++1&&void 0!==arguments[1]?arguments[1]:{maxNumber:1e3,batchEvictionNumber:300},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:rn();return n("readwrite",(function(n){return n.put(e),tn(n.count()).then((function(e){if(!(e<=t.maxNumber))return an(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]:rn())("readwrite",(function(t){return an(t,e)}))}(t,n)}))}function cn(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]:rn();return on?Promise.resolve():sn(e,t,n)}function un(e,t,n){return t("readonly",(function(t){var r=[];return t.openCursor(null,n).onsuccess=function(){var t=this.result;t&&(r.push(t.value),(e<0||r.length0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0,n=arguments.length>2?arguments[2]:void 0,r=arguments.length>3?arguments[3]:void 0;return!t||n<1||(e[t]=JSON.stringify({attempt:n,errorCode:r})),e}function dn(e){"undefined"!=typeof window&&window.__DEBUG_BEACON_TRANSPORTER&&console.debug("[beacon-transporter] ",e())}function hn(e){"undefined"!=typeof window&&window.__DEBUG_BEACON_TRANSPORTER&&console.error("[beacon-transporter] ",e())}function fn(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 pn=function(){function e(t){var n=this,r=arguments.length>1&&void 0!==arguments[1]&&arguments[1];Ke(this,e),Ve(this,"config",void 0),Ve(this,"compress",void 0),Ve(this,"throttleControl",void 0),Ve(this,"withStore",void 0),Ve(this,"disablePersistence",!1),this.config=t,this.compress=r;var i,a,o,s=t.measureIDB;s&&performance.mark(s.createStartMark),this.withStore=nn(t.idbName,"beacons","timestamp",{onSuccess:function(){s&&performance.measure(s.createSuccessMeasure,s.createStartMark)},onError:function(){s&&performance.measure(s.createFailMeasure,s.createStartMark),n.disablePersistence=!0}}),this.throttleControl=(i=this.replayEntries.bind(this),a=t.throttleWait,o=0,{throttledFn:function(){var e=Date.now();e-o>a&&(dn((function(){return"[throttle] Run fn() at "+String(e)})),i(),o=e)},resetThrottle:function(){o=0}})}return qe(e,[{key:"onNotify",value:function(){this.disablePersistence||this.throttleControl.throttledFn()}},{key:"push",value:function(e){var t=this;if(!this.disablePersistence){var n=function(){dn((function(){return"Persisting to DB "+e.url})),cn(e,t.config,t.withStore).then((function(){t.throttleControl.resetThrottle(),dn((function(){return"push completed"}))})).catch((function(){t.disablePersistence=!0,hn((function(){return"push failed"}))}))};this.config.useIdle?fn(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]:rn();return on=!0,e("readwrite",(function(e){return e.clear(),tn(e.transaction).finally((function(){return on=!1}))}))}(this.withStore).catch((function(){e.disablePersistence=!0,hn((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 un(arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,arguments.length>1&&void 0!==arguments[1]?arguments[1]:rn(),"next")}(t,this.withStore).catch((function(){return e.disablePersistence=!0,hn((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 un(arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,arguments.length>1&&void 0!==arguments[1]?arguments[1]:rn(),"prev")}(t,this.withStore).catch((function(){return e.disablePersistence=!0,hn((function(){return"peekBack failed"})),[]}))}},{key:"replayEntries",value:function(){var e=this;if(!this.disablePersistence){var t=function(){dn((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.length0&&void 0!==arguments[0]?arguments[0]:1,arguments.length>1&&void 0!==arguments[1]?arguments[1]:rn())}(1,e.withStore).then((function(t){if(t.length>0){var n,r,i=t[0],a=i.url,o=i.body,s=i.headers,c=i.timestamp,u=i.statusCode,l=i.attemptCount;return dn((function(){return"header: ".concat(String(e.config.headerName),"; attemptCount: ").concat(l)})),null===(n=(r=e.config).onBeforeRetry)||void 0===n||n.call(r,o),en(a,o,ln(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,o),e.replayEntries()}else{var i,s,d,h,f,p;if(l+1>e.config.attemptLimit)return dn((function(){return"Exceeded attempt count, dropping the entry: "+JSON.stringify({url:a,timestamp:c,statusCode:u},null,2)})),t.drop=!0,void(null===(i=(s=e.config).onResult)||void 0===i||i.call(s,t,o));if("network"===t.type||e.config.statusCodes.includes(t.statusCode))return t.drop=!1,null===(d=(h=e.config).onResult)||void 0===d||d.call(h,t,o),dn((function(){return"Replaying the entry failed, pushing back to IDB: "+JSON.stringify({url:a,timestamp:c,statusCode:u},null,2)})),cn({url:a,body:o,timestamp:c,statusCode:u,attemptCount:l+1},e.config,e.withStore);t.drop=!0,null===(f=(p=e.config).onResult)||void 0===f||f.call(p,t,o)}}))}})).catch((function(t){e.disablePersistence=!0,t&&t.message&&hn((function(){return"Replay entry failed: ".concat(t.message)}))}))};this.config.useIdle?fn(t):t()}}}]),e}(),vn=function(){function e(){Ke(this,e)}return qe(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}(),gn=function(){function e(t,n){Ke(this,e),Ve(this,"queue",void 0),Ve(this,"beaconListeners",new Set),this.queue=e.hasSupport&&!n.disablePersistenceRetry?new pn(t,n.compress):new vn}return qe(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}();Ve(gn,"hasSupport","undefined"!=typeof globalThis&&!!globalThis.indexedDB);var mn=[502,504],yn=[429,503],xn=function(){function e(t,n,r,i){var a=this,o=arguments.length>4&&void 0!==arguments[4]&&arguments[4];Ke(this,e),Ve(this,"url",void 0),Ve(this,"body",void 0),Ve(this,"config",void 0),Ve(this,"persistenceConfig",void 0),Ve(this,"compress",void 0),Ve(this,"timestamp",void 0),Ve(this,"isClearQueuePending",!1),Ve(this,"onClearCallback",void 0),this.url=t,this.body=n,this.config=r,this.persistenceConfig=i,this.compress=o,this.timestamp=Date.now(),this.onClearCallback=function(){return a.isClearQueuePending=!0}}return qe(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 en(e.url,e.body,t,e.compress)}),n,t).finally((function(){dn((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,a=this.getAttemptCount(t)-1;return e(ln(n,this.config.headerName,a,r)).then((function(r){var a,o,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(dn((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 dn((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===(a=(o=i.config).onIntermediateResult)||void 0===a||a.call(o,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}(),En="internal:hide",bn="internal:error";function wn(e,t,n){var r=e.get(t);r&&r.push(n)||e.set(t,[n])}function Tn(e,t,n){var r=e.get(t);r&&r.splice(r.indexOf(n)>>>0,1)}var Cn,kn,Sn=(Cn=new Map,kn=new Map,{on:function(e,t){wn(Cn,e,t)},before:function(e,t){wn(kn,e,t)},off:function(e,t){Tn(Cn,e,t)},offBefore:function(e,t){Tn(kn,e,t)},emit:function(e,t){(kn.get(e)||[]).concat(Cn.get(e)||[]).slice().map((function(e){e(t)}))},clear:function(){kn.clear(),Cn.clear()}});if("undefined"!=typeof document&&"undefined"!=typeof window){var In=function(e){"pagehide"!==e.type&&"hidden"!==document.visibilityState||Sn.emit(En,e)};document.addEventListener("visibilitychange",In),window.addEventListener("pagehide",In)}var _n=null;if(("undefined"==typeof crypto||!crypto.getRandomValues)&&"undefined"!=typeof require){var An=("undefined"!=typeof FastBoot?FastBoot.require:"function"==typeof __webpack_require__?__non_webpack_require__:require)("crypto");if(An){var Rn=new Uint8Array(256),Nn=Rn.length;_n={rng:function(){return Nn>Rn.length-16&&(An.randomFillSync(Rn),Nn=0),Rn.slice(Nn,Nn+=16)}}}}var Ln="object"===("undefined"==typeof crypto?"undefined":He(crypto))&&"function"==typeof crypto.randomUUID?function(){return crypto.randomUUID()}:function(){return function(e){return function(e){var t=et(e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:0);if(!$e(t))throw TypeError("Stringified UUID is invalid");return t}(e)}(On())};function On(){return dt(_n,new Array(16),0)}function Pn(e){return Fe(e).map((function(e){return String.fromCharCode(e)})).join("")}function Dn(){return Pn(On())}var Mn=/^[a-zA-Z0-9/+]+[=]+$/;function Fn(){return function(e){for(var t,n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",r=[],i=0,a=e.length,o=a%3,s=a-o;i>>18&63)),r.push(n.charAt(t>>>12&63)),r.push(n.charAt(t>>>6&63)),r.push(n.charAt(63&t)),i+=3;switch(o){case 2:t=e[i]<<16,t|=e[i+1]<<8,r.push(n.charAt(t>>>18&63)),r.push(n.charAt(t>>>12&63)),r.push(n.charAt(t>>>6&63)),r.push("=");break;case 1:t=e[i]<<16,r.push(n.charAt(t>>>18&63)),r.push(n.charAt(t>>>12&63)),r.push("="),r.push("=")}return r.join("")}(On())}function Un(){return Ln()}function Bn(e){return tt(e)}function Hn(e,t){return{pageUrn:Wn(e),trackingId:t||Fn()}}function Kn(e,t){return"urn:li:control:".concat(e,"-").concat(t)}function Wn(e){return"urn:li:page:".concat(e)}function qn(e,t){return{pageInstance:t.assign({},e.pageInstance),pageKey:e.pageKey,applicationInstance:e.applicationInstance}}function Vn(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 jn(e){var t=[];return e.forEach((function(e){return t.push(e)})),t}function Gn(e,t,n){if("undefined"!=typeof window&&window.indexedDB){var r,i="sequenceNumber";try{r=window.indexedDB.open(i)}catch(e){return Promise.resolve(null)}return new Promise((function(a,o){r.onupgradeneeded=function(){var e=r.result;e.objectStoreNames.contains(i)||e.createObjectStore(i,{autoIncrement:!0})},r.onsuccess=function(){var s=r.result,c=s.transaction(i,"readwrite"),u=c.objectStore(i),l=u.get(1);l.onsuccess=function(){var r=l.result;if(r){if("read"===e)return a(r);if("update"!==e)return a(null);var i,s=Object.assign({},r),c=!1,d=null!==(i=s.sequenceNumber)&&void 0!==i?i:0;if(void 0!==t&&t>d&&(s.sequenceNumber=t,c=!0),n&&Object.keys(n).forEach((function(e){var t,r=null!==(t=s[e])&&void 0!==t?t:0,i=n[e];i>r&&(s[e]=i,c=!0)})),c){var h=u.put(s,1);h.onsuccess=function(){return a(null)},h.onerror=function(){o(h.error)}}}else{var f={sequenceNumber:0};n&&Object.keys(n).forEach((function(e){f[e]=0}));var p=u.add(f);p.onsuccess=function(){return a(0)},p.onerror=function(){o(p.error)}}},l.onerror=function(){return s.close(),o(new Error("Error: get sequence number from indexedDB ".concat(String(l.error))))},c.oncomplete=function(){return s.close()}},r.onerror=function(){return a(null)}}))}return Promise.resolve(null)}function zn(){return"undefined"!=typeof navigator&&navigator.userAgent.toLowerCase().indexOf("firefox")>-1||!Xt()||"undefined"==typeof Promise}function Xn(e,t,n,r){var i=["core-web-tracking:".concat(e)];null==r||r.forEach((function(e){return i.push(e)})),Sn.emit(bn,{tags:i,reason:t instanceof Error?t:new Error("".concat(e,": ").concat(t)),responseHeaders:n})}var Jn=function(e){var t=window.structuredClone;return t?t(e):JSON.parse(JSON.stringify(e))},Qn=function(){function e(t){Ke(this,e),Ve(this,"heap",void 0),Ve(this,"comparator",void 0),this.comparator=t,this.heap=[]}return qe(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=Fe(this.heap);return this.heap=[],e}},{key:"heappop",value:function(){var e=this.heap.length,t=[this.heap[e-1],this.heap[0]];this.heap[0]=t[0],this.heap[e-1]=t[1];for(var n=this.heap.pop(),r=0;2*r+10;){var n=Math.floor((t-1)/2);if(!this.comparator(this.heap[t],this.heap[n]))break;var r=[this.heap[n],this.heap[t]];this.heap[t]=r[0],this.heap[n]=r[1],t=n}}}]),e}();var $n="beacons";function Yn(){if("undefined"==typeof Promise||"undefined"==typeof navigator)return!1;var e=navigator.userAgent.indexOf("Chrome")>-1,t=navigator.cookieEnabled,n=navigator.storage;return e&&Jt()&&t&&n}function Zn(e,t,n,r,i){"control"!==r&&e.retryConfig&&Yn()&&navigator.storage.estimate().then((function(a){if(!((a.quota||0)-(a.usage||0)>52428800))return function(e){var t=window.indexedDB.deleteDatabase(e);return new Promise((function(e,n){t.onsuccess=function(){return e()},t.onerror=function(){return n(t.error)}}))}($n);var o,s,c=null!==(o=e.retryConfig.inMemory)&&void 0!==o?o:{attemptLimit:4,statusCodes:[502,504]},u=null!==(s=e.retryConfig.persist)&&void 0!==s?s:{attemptLimit:3,statusCodes:[429,503],maxNumber:1e3,batchEvictionNumber:300,throttleWait:3e5},l={compress:n,inMemoryRetry:{onIntermediateResult:null==i?void 0:i.onIntermediateResult,attemptLimit:c.attemptLimit,statusCodes:c.statusCodes,headerName:"x-li-retry-context",calculateRetryDelay:function(e){return function(e){return 1e3*Math.pow(2,e)}(e)}},disablePersistenceRetry:e.retryConfig.disablePersistence,persistenceRetry:{onBeforeRetry:null==i?void 0:i.onBeforeRetry,onResult:null==i?void 0:i.onResult,idbName:$n,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=function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=Boolean(t.compress),r=Object.assign({attemptLimit:0,statusCodes:mn,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:yn,maxNumber:1e3,batchEvictionNumber:300,throttleWait:3e5},t.persistenceRetry);i.headerName=i.headerName||r.headerName,e=new gn(i,{compress:t.compress,disablePersistenceRetry:t.disablePersistenceRetry})}return{beacon:function(i,a,o){var s;return Xt()?new xn(i,a,r,{db:e,disabled:Boolean(t.disablePersistenceRetry),statusCodes:(null===(s=t.persistenceRetry)||void 0===s?void 0:s.statusCodes)||yn},n).send(o):Promise.resolve({type:"unknown",drop:!0})},database:e}}(l),h=d.beacon,f=d.database;return e.retryBeacon={shouldRetry:!0,beacon:h,database:f},"enabled"===r?(e.retryBeacon.shouldRetry=!1,!l.disablePersistenceRetry&&t.shouldAnonymizeMemberId()?f.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 f.clearQueue()}}),(function(){return f.clearQueue()})).then((function(){e.retryBeacon.shouldRetry=!0})).catch((function(e){Xn("retry:idb",e)})):(e.retryBeacon.shouldRetry=!0,Promise.resolve())):void 0})).catch((function(e){Xn("retry:setup",e)}))}var er=function(){function e(t){Ke(this,e),Ve(this,"host",void 0),this.host=t}return qe(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&&Zn(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){Xn("retry:logout",e)}))}},{key:"sendPayload",value:function(e,t,n,r){var i,a=this.getRetryTreatment();Jt()&&"control"!==a&&null!==(i=this.host.retryBeacon)&&void 0!==i&&i.shouldRetry?this.sendPayloadWithRetry(e,t,n):this.sendPayloadFireForget(e,t,n,r)}},{key:"sendPayloadWithRetry",value:function(e,t,n){(!Array.isArray(t)||t.length>0)&&this.host.retryBeacon.beacon(e,JSON.stringify(t),n).catch((function(e){Xn("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)&&(zn()?function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if("undefined"!=typeof window&&void 0!==window.XMLHttpRequest){var r=new XMLHttpRequest;if(r.open("POST",e,!0),r.withCredentials=!0,n.headers)for(var i=0,a=Object.keys(n.headers);i0&&void 0!==arguments[0]?arguments[0]:{},t=e.cacheLifeSpan,n=void 0===t?1e4:t,r=e.regex,i=void 0===r?nr:r;if(!rr||Date.now()-ir>n){var a=tr&&document.cookie.match(i);rr=a&&a[1]||"",ir=Date.now()}return rr}var or={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"}},sr=function(){function e(t){Ke(this,e),Ve(this,"networkTransporter",void 0),Ve(this,"inactive",void 0),Ve(this,"mpName",void 0),Ve(this,"endpoint",void 0),Ve(this,"debug",void 0),this.networkTransporter=new er(t),this.mpName=t.appId,this.inactive=t.inactive;var n=function(e){var t,n=!1;return or.prod.pattern.test(e)?t=or.prod.monitorEndpoint:or.eiValidate.pattern.test(e)?(n=!0,t=or.eiValidate.monitorEndpoint):or.ei.pattern.test(e)?t=or.ei.monitorEndpoint:(t=or.ei.monitorEndpoint,n=!0),{endpoint:t,debug:n}}(t.endpoint);this.endpoint=n.endpoint,this.debug=n.debug}return qe(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":ar(),"x-restli-protocol-version":"2.0.0"},r=[],i=null!==(t=null==e?void 0:e.stats)&&void 0!==t?t:{},a=i.failures,o=i.previousInstanceEventStats.reduce((function(e,t){return e.push.apply(e,Fe(t.failures)),e}),[]);[].concat(Fe(a),Fe(o)).forEach((function(e){var t=e.reason,n=e.rawError,i=e.eventTopic,a=e.header,o=e.requestHeader;r.push({reason:t,rawError:n,failedTopicName:i,header:a,requestHeader:o})}));var s={clientTrackingFailures:r,debug:this.debug};this.networkTransporter.sendPayload(this.endpoint,s,n)}}}]),e}();function cr(e){return"string"==typeof e}function ur(e){return cr(e)?e:e.topicName||e.eventName}function lr(e){return cr(e)?e:e.eventName}var dr,hr,fr=function(){function e(t){var n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Ke(this,e),Ve(this,"host",void 0),Ve(this,"cmoTransporter",void 0),Ve(this,"clientMonitoringInstanceId",Dn()),Ve(this,"currentContext",{pageKey:ze,pageInstance:Hn(ze)}),Ve(this,"appState",{}),Ve(this,"estimatedFragmentSize",0),Ve(this,"fragmentSizeLimit",void 0),Ve(this,"activeFragmentEvent",void 0),Ve(this,"debounceTimer",void 0),this.host=t,this.cmoTransporter=r.cmoTransporter||new sr(t),this.fragmentSizeLimit=(null===(n=t.clientMonitoringConfig)||void 0===n?void 0:n.fragmentSizeLimit)||10240,this.activeFragmentEvent=vr(this.clientMonitoringInstanceId,0,0,!1,this.getEventHeaders())}return qe(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=Me(this.activeFragmentEvent.stats.previousInstanceEventStats);try{for(r.s();!(n=r.n()).done;){var i=n.value;if(i.instanceId===e)return void t(i)}}catch(e){r.e(e)}finally{r.f()}var a=this.getEventHeaders(),o=a.header,s=a.requestHeader,c={header:Object.assign(o,{memberId:-1}),requestHeader:s,instanceId:e,eventsSent:0,eventTopics:[],networkResponseStats:{eventsWith2XXResponse:0,eventsWith400Response:0,eventsWith408Response:0,eventsWith429Response:0,eventsWith4XXResponse:0,eventsWith500Response:0,eventsWith502Response:0,eventsWith503Response:0,eventsWith504Response:0,eventsWith5XXResponse:0},failures:[]};t(c),this.activeFragmentEvent.stats.previousInstanceEventStats.push(c)}},{key:"logFailedEvent",value:function(e,t,n,r){var i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:this.getCurrentInstanceId(),a=this.getEventHeaders(),o=a.header,s=a.requestHeader,c={header:Object.assign(o,{memberId:-1}),requestHeader:s,instanceId:i,instanceEventNumber:r,reason:e,rawError:n,eventName:lr(t),eventTopic:ur(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=vr(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=gr(e.trackingId));var t=this.currentContext.pageInstance;return t.trackingId=gr(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:Dn(),memberId:0}}}}]),e}();function pr(e){return dr||(dr=new fr(e)),{getCurrentInstanceId:function(){return dr.getCurrentInstanceId()},logEventGenerated:function(e){return dr.logEventGenerated(e)},logEventReadyToSend:function(e){dr.logEventReadyToSend(e)},logEventSent:function(e){dr.logEventSent(e)},logPersistedEventSent:function(e,t){dr.logEventSent(t,e)},logNetworkResponseCode:function(e){dr.logNetworkResponseCode(e)},logPersistedNetworkResponseCode:function(e,t){var n;null===(n=dr)||void 0===n||n.logNetworkResponseCode(t,e)},logFailedEvent:function(e,t,n,r){dr.logFailedEvent(e,t,n,r)},logPersistedFailedEvent:function(e,t,n,r,i){dr.logFailedEvent(t,n,r,i,e)},flush:function(){dr.flush()},destroy:function(){dr=void 0},isDestroyed:function(){return void 0===dr},setCurrentContext:function(e){dr.setCurrentContext(e)},updateAppState:function(e){dr.updateAppState(e)}}}function vr(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 gr(e){return Array.isArray(e)?Pn(e):16===e.length?e:function(e){return"string"==typeof e&&!!e.match(Mn)}(e)?atob(e):Pn(Bn(e))}!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"}(hr||(hr={}));var mr=["PageViewEvent","SponsoredImpressionEvent","JobViewEvent"],yr="PageViewEvent",xr=function(){function e(t){var n,r,i,a=this;Ke(this,e),Ve(this,"host",void 0),Ve(this,"queue",void 0),Ve(this,"preContextQueue",void 0),Ve(this,"debounceTimer",void 0),Ve(this,"unloadHandlers",void 0),Ve(this,"maxQueueSize",void 0),Ve(this,"flushDebounceTime",void 0),Ve(this,"trackingEventListeners",[]),Ve(this,"onHideHandler",(function(){a.forceFlush()})),Ve(this,"networkTransporter",void 0),Ve(this,"clientMonitoringConn",void 0),Ve(this,"clientGlobalSequenceNumberCounter",void 0),Ve(this,"clientTopicLocalSequenceNumberCountersMap",{}),Ve(this,"isTimerRunning",void 0),Ve(this,"trackingEndpoint",void 0),Ve(this,"isEvenBatchEnabled",void 0),this.host=t,this.queue=[],this.preContextQueue=[],this.unloadHandlers=[];var o=t.batching,s=null!==(n=null==o?void 0:o.evenBatchEnabled)&&void 0!==n&&n,c="development"===t.environment||(null===(r=t.api)||void 0===r||null===(r=r.location)||void 0===r||null===(r=r.host)||void 0===r?void 0:r.indexOf("-ei."))>-1?"https://www.linkedin-ei.com/li/track/validate":t.endpoint||"https://www.linkedin.com/li/track";this.trackingEndpoint=function(e,t){return/linkedin(?:-ei)?\.cn/.test(t)?e.replace(/\/\/(\S+?)\.linkedin(-ei)?\.com/,"//$1.linkedin$2.cn"):e}(c,null===(i=t.api)||void 0===i||null===(i=i.location)||void 0===i?void 0:i.host),this.maxQueueSize=o&&o.maxSize||1,this.flushDebounceTime=o&&o.debounceTime||0,Sn.on(En,this.onHideHandler),this.networkTransporter=new er(t),this.isLixEnabled("pemberly.tracking.monitoring")&&t.clientMonitoringConfig&&!t.inactive&&(this.clientMonitoringConn=pr(t)),this.getSequenceNumberFromIDB(),this.updateSequenceNumberOnExit(),this.isTimerRunning=!1,this.isEvenBatchEnabled=this.isLixEnabled("pemberly.tracking.even-batch")||s}return qe(e,[{key:"checkAndEnablePersistentRetry",value:function(e){var t,n=(t=this.clientMonitoringConn,{onIntermediateResult:function(e,n){var r;if(t&&!t.isDestroyed())try{if(r=JSON.parse(n),!Array.isArray(r)||0===r.length)return;e.statusCode&&t.logNetworkResponseCode(e.statusCode),!0===e.drop&&r.forEach((function(n){var r,i=n.eventInfo.eventName,a=n.eventInfo.topicName||i,o="rawError"in e?e.rawError:"null",s=["type: ".concat(e.type),"statusCode: ".concat(e.statusCode||"null"),"drop: ".concat(String(e.drop)),"rawError: ".concat(o)].join(", ");t.logFailedEvent(hr.UNKNOWN_EXECUTION_ERROR,{eventName:i,topicName:a},s,null!==(r=n.eventBody.header.clientMonitoringInstanceEventNumber)&&void 0!==r?r:-1)}))}catch(e){}},onBeforeRetry:function(e){var n;if(t&&!t.isDestroyed())try{if(n=JSON.parse(e),!Array.isArray(n)||0===n.length||!n[0].eventBody.header.clientMonitoringInstanceId)return;var r=n[0].eventBody.header.clientMonitoringInstanceId,i=n.length;t.logPersistedEventSent(r,i)}catch(e){}},onResult:function(e,n){var r;if(t)try{if(r=JSON.parse(n),!Array.isArray(r)||0===r.length||!r[0].eventBody.header.clientMonitoringInstanceId)return;var i=r[0].eventBody.header.clientMonitoringInstanceId;e.statusCode&&t.logPersistedNetworkResponseCode(i,e.statusCode),!0===e.drop&&r.forEach((function(n){var r=n.eventInfo.eventName,a=n.eventInfo.topicName||r,o="rawError"in e?e.rawError:"null",s=["type: ".concat(e.type),"statusCode: ".concat(e.statusCode||"null"),"drop: ".concat(String(e.drop)),"rawError: ".concat(o)].join(", ");t.logPersistedFailedEvent(i,hr.UNKNOWN_EXECUTION_ERROR,{eventName:r,topicName:a},s,n.eventBody.header.clientMonitoringInstanceEventNumber)}))}catch(e){}}});this.networkTransporter.checkAndEnablePersistentRetry(e,n)}},{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(ur(e.id)));var n=this.host,r=n.api.Promise,i=n.batching;if(function(e){return!!e.meta.context}(t)){var a,o=this.prepareCompleteEnvelopeQueue(t);return null===(a=this.clientMonitoringConn)||void 0===a||a.logEventReadyToSend(1),this.queue.push(o),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,Sn.off(En,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=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;this.populatePreContextQueue({pageInstance:Hn(ze),pageKey:ze}).forEach((function(t){e.queue.push(t)})),this.isEvenBatchEnabled?1===t?this.sendPayload(void 0,!0):this.sendPayload():this.flush(!0)}},{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;Gn("read").then((function(t){var n;e.clientGlobalSequenceNumberCounter=null!==(n=null==t?void 0:t.sequenceNumber)&&void 0!==n?n:0,mr.forEach((function(n){var r;e.clientTopicLocalSequenceNumberCountersMap[n]=null!==(r=null==t?void 0:t[n])&&void 0!==r?r:0}))})).catch((function(e){Xn("sequence-number:idb-read",e)}))}},{key:"updateSequenceNumberToIDB",value:function(){Gn("update",this.clientGlobalSequenceNumberCounter,this.clientTopicLocalSequenceNumberCountersMap).catch((function(e){Xn("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=qn(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){return t.queue.push(e)})),e}},{key:"envelop",value:function(e,t,n){var r=this.host,i=r.appId,a=r.api,o={eventBody:t,eventInfo:"string"==typeof e?{appId:i,eventName:e,topicName:e}:a.assign({appId:i},e)};return n.length>0&&this.host.api.assign(o,{clientBreadcrumbs:n}),o}},{key:"getBreadcrumbs",value:function(e){return e.clientBreadcrumbs||[]}},{key:"getGenericEventBody",value:function(e){var t,n=this.host,r=n.appVersion,i=n.locale,a=n.api,o=a.location,s=a.document,c=a.assign,u=e.meta.context,l=u.pageKey,d=u.pageInstance,h=function(e){return"string"==typeof e?e===yr:e.eventName===yr}(e.id)&&(null===(t=e.body.requestHeader)||void 0===t?void 0:t.pageKey)||l,f=e.meta.requestHeader||{referer:s.referrer,path:"".concat(o.pathname).concat(o.search)},p=f.referer,v=f.path,g=null;"string"!=typeof i&&null!==this.host.locale||(g=i);var m={interfaceLocale:g,pageKey:h,referer:p,path:v,isFlushOnCloseBrowserTabEnabled:!zn()&&(Jt()||"undefined"!=typeof navigator&&"sendBeacon"in navigator),isBrowserPersistentRetryEnabled:this.networkTransporter.isBrowserPersistentRetryEnabled()},y={pageInstance:d,time:e.meta.time,version:r,server:"",service:"",guid:Dn(),memberId:0};"number"==typeof this.clientGlobalSequenceNumberCounter&&c(y,{clientGlobalSequenceNumber:this.clientGlobalSequenceNumberCounter});var x=ur(e.id);if(mr.includes(x)){var E=this.clientTopicLocalSequenceNumberCountersMap[x];"number"==typeof E&&c(y,{clientTopicLocalSequenceNumber:E})}var b={header:c(y,e.meta.header||{}),requestHeader:c(m,e.meta.requestHeader||{})},w=e.meta.clientMonitoringInstanceId,T=e.meta.clientMonitoringInstanceEventNumber;return w&&c(b.header,{clientMonitoringInstanceId:w,clientMonitoringInstanceEventNumber:T}),c(e.body,b)}},{key:"populatePreContextQueue",value:function(e){var t,n=this.preContextQueue;return this.preContextQueue=[],null===(t=this.clientMonitoringConn)||void 0===t||t.logEventReadyToSend(n.length),n.map((function(t){return t.meta.context=e,"function"==typeof t.body&&(t.body=t.body(e)),t}))}},{key:"trigger",value:function(e,t){this.trackingEventListeners.forEach((function(n){return n(e,t)}))}},{key:"requestFlush",value:function(e){var t=this;e((function(){t.forceFlush(0)}),{timeout:1e4})}},{key:"flush",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=this.host.api.requestIdleCallback;e||!t?this.sendPayload(void 0,!0):this.requestFlush(t)}},{key:"batchFire",value:function(){var e=this;this.queue.length>this.maxQueueSize?this.flush():(this.debounceTimer&&clearTimeout(this.debounceTimer),this.debounceTimer=setTimeout((function(){return e.flush()}),this.flushDebounceTime))}},{key:"sendPayload",value:function(e){var t,n=this,r=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(this.isEvenBatchEnabled)if(Array.isArray(e)&&e.length>0)t=e;else{var i=this.maxQueueSize+1;this.queue.length>0&&(this.queue.length<=i||r)?(t=this.queue,this.queue=[]):t=this.queue.splice(0,i)}else Array.isArray(e)&&e.length>0?t=e:(t=this.queue,this.queue=[]);if(0!==t.length){"undefined"!=typeof window&&!1===this.isTimerRunning&&(this.isTimerRunning=!0,setInterval((function(){n.updateSequenceNumberToIDB()}),5e3));var a,o,s=[],c=[];t.forEach((function(e){var t=n.getGenericEventBody(e),r=n.getBreadcrumbs(e),i=n.envelop(e.id,t,r);n.trigger(i,e.meta);var a=i.eventInfo.eventName;"LixTreatmentsEvent"===a||"JavaScriptErrorEvent"===a?s.push(i):c.push(i),"number"==typeof n.clientGlobalSequenceNumberCounter&&n.clientGlobalSequenceNumberCounter++;var o=ur(e.id);mr.includes(o)&&"number"==typeof n.clientTopicLocalSequenceNumberCountersMap[o]&&n.clientTopicLocalSequenceNumberCountersMap[o]++})),this.host.inactive||(this.clientMonitoringConn&&(this.clientMonitoringConn.logEventSent(s.length+c.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(hr.UNKNOWN_EXECUTION_ERROR,{eventName:n,topicName:r},a,t.eventBody.header.clientMonitoringInstanceEventNumber||-1)})))}}),this.networkTransporter.sendPayloadFireForget(this.trackingEndpoint,s,void 0,a),this.networkTransporter.sendPayload(this.trackingEndpoint,c,void 0,a))}}},{key:"getTrackingEndpoint",value:function(){return this.trackingEndpoint}}]),e}();var Er,br=function(){function e(t,n){Ke(this,e),this.clientBreadcrumbType=t,this.id=n}return qe(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.UNKNOWN="UNKNOWN",e.ME_NOTIFICATION="ME_NOTIFICATION",e.ME_NOTIFICATION_ACTION="ME_NOTIFICATION_ACTION",e.JOB_VIEW="JOB_VIEW",e.MEDIA="MEDIA",e.FEED_UPDATE_SERVED="FEED_UPDATE_SERVED",e.MESSAGE_SEND_CLIENT_SUCCESS="MESSAGE_SEND_CLIENT_SUCCESS",e.MESSAGE_SEND_CLIENT_FAILURE="MESSAGE_SEND_CLIENT_FAILURE",e.MESSAGE_SEND_FUNNEL="MESSAGE_SEND_FUNNEL"}(Er||(Er={}));var wr=function(e){function t(){return Ke(this,t),Re(this,t,[Er.FEED_UPDATE_SERVED,Dn()])}return Pe(t,br),qe(t)}();function Tr(e,t){var n;if("proto.sdui.breadcrumbs.feed.FeedUpdateServedBreadcrumb"!==t)throw new Error("breadcrumb class ".concat(t," needs to be defined in core-web-tracking."));if(!(n=(new wr).builder))throw new Error("breadcrumb class ".concat(t," needs to be defined in core-web-tracking."));for(var r in e){var i=e[r];null!=i&&n[r](i)}return n.build()}function Cr(e){var t,n=[],r=[],i=Me(e);try{for(i.s();!(t=i.n()).done;){var a=t.value,o=a.breadcrumb,s=Ae(a,ge);if(r.push(s),o){var c=o.$type,u=Tr(Ae(o,me),c);n.push(u)}}}catch(e){i.e(e)}finally{i.f()}return{extractedBreadcrumbs:n,trackingScopesWithoutBreadcrumbs:r}}function kr(e){var t,n=new Set,r=[],i=Me(e);try{for(i.s();!(t=i.n()).done;){var a=t.value,o="".concat(a.contentTrackingId,"-").concat(a.topicName);n.has(o)||(n.add(o),r.push(a))}}catch(e){i.e(e)}finally{i.f()}var s=Cr(r);return{breadcrumbs:s.extractedBreadcrumbs,trackingScopes:s.trackingScopesWithoutBreadcrumbs}}function Sr(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,a=e.lipi&&function(e){var t=decodeURIComponent(e).split(";");if(t.length>1)return{pageUrn:t[0],trackingId:t[1]}}(e.lipi);if(a?i={pageInstance:a,pageKey:t}:t&&(i={pageKey:t}),e.external_page&&e.external_page_instance){var o=decodeURIComponent(e.external_page);i={pageInstance:{pageUrn:"urn:li:externalPage:".concat(o),trackingId:e.external_page_instance},pageKey:o},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}}function Ir(e){return"retryConfig"in e.host}function _r(e){return"location"in e.api}var Ar,Rr=function(){function e(t,n){var r,i;if(Ke(this,e),Ve(this,"transporter",void 0),Ve(this,"delegate",void 0),Ve(this,"currentContext",void 0),Ve(this,"appState",void 0),Ve(this,"referrer",void 0),Ve(this,"previousAppContext",void 0),Ve(this,"customTransporters",void 0),Ve(this,"clientMonitoringConn",void 0),this.transporter=t,this.delegate=n,this.appState={},this.customTransporters={},n&&n.customTransporterHosts)for(var a in n.customTransporterHosts)if(Object.prototype.hasOwnProperty.call(n.customTransporterHosts,a)){var o=this.transporter.host.api.assign({},this.transporter.host);this.customTransporters[a]=new xr(this.transporter.host.api.assign(o,n.customTransporterHosts[a]))}"enabled"===(null===(r=(i=t.host).__getLixTreatment)||void 0===r?void 0:r.call(i,"pemberly.tracking.monitoring"))&&t.host.clientMonitoringConfig&&!t.host.inactive&&_r(t.host)&&(this.clientMonitoringConn=pr(t.host))}return qe(e,[{key:"host",get:function(){return this.transporter.host}},{key:"addBeforeHandlerToHideEvent",value:function(e){Sn.before(En,e)}},{key:"removeBeforeHandlerToHideEvent",value:function(e){Sn.offBefore(En,e)}},{key:"checkAndEnablePersistentRetry",value:function(){Ir(this.transporter)&&this.transporter.checkAndEnablePersistentRetry(this.delegate)}},{key:"flushAndClearPersistedEventsOnLogout",value:function(){this.forceFlush();var e=Ir(this.transporter)?this.transporter.clearPersistedEventsOnLogout():null;return null!=e?e:this.host.api.Promise.resolve()}},{key:"getCurrentContext",value:function(){if(this.currentContext)return qn(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,Sr(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=qn(e,this.host.api),null===(t=this.clientMonitoringConn)||void 0===t||t.setCurrentContext(qn(e,this.host.api))}},{key:"updateAppState",value:function(e){var t;this.host.api.assign(this.appState,e),null===(t=this.clientMonitoringConn)||void 0===t||t.updateAppState(e)}},{key:"fireCIE",value:function(e,t,n,r,i){return this.fireEvent("ControlInteractionEvent",(function(n){var a=Kn(n.pageKey,e),o={controlTrackingId:r,controlUrn:a,interactionType:t};return i&&i(a),o}),{context:n})}},{key:"getViewHierarchy",value:function(e){for(var t=[],n=e;n instanceof Element&&"body"!==n.tagName.toLowerCase();){var r=n.closest("[data-view-name]");if(r){var i=r.getAttribute("data-view-name");i&&t.push(i)}n=null==r?void 0:r.parentElement}return t}},{key:"getViewTrackingScope",value:function(e){for(var t=[],n=e;n instanceof Element&&"body"!==n.tagName.toLowerCase();){var r=n.closest("[data-view-tracking-scope]");if(r){var i=r.getAttribute("data-view-tracking-scope");if(i)try{var a=JSON.parse(i);a&&a.length&&t.push.apply(t,Fe(a))}catch(e){Xn("getViewTrackingScope","Error parsing trackingScope ".concat(i))}}n=null==r?void 0:r.parentElement}return t}},{key:"fireInteraction",value:function(e){var t=e.manualFireReason,n=e.interactionType,r=e.targetView,i=e.viewHierarchy,a=e.viewTrackingScope,o=e.verticalPosition,s=e.horizontalPosition,c=e.controlUrn,u=e.actionType,l=e.contentTrackingId,d=e.clientBreadcrumbs,h=void 0===d?[]:d,f=e.isShadowEvent,p=e.cooloffToken,v=r?this.getViewHierarchy(r):[],g=v.length>0?v:i||[],m=a||this.getViewTrackingScope(r);0===g.length&&console.warn("No viewHierarchy provided or found from element.");var y=kr(m),x=y.breadcrumbs,E=y.trackingScopes;return this.fireEvent("GenericActionEvent",{verticalPosition:o,horizontalPosition:s,controlUrn:c||"",interactionType:n,actionType:u,contentTrackingId:""===l?void 0:l,manualFireReason:t,cooloffToken:p,trackingScopeHierarchy:{entries:E}},{header:{viewHierarchy:g}},[].concat(Fe(h),Fe(x)),f)}},{key:"fireImpression",value:function(e,t){var n=e.manualFireReason,r=e.targetView,i=e.viewHierarchy,a=e.viewTrackingScope,o=e.viewDurationInMilliseconds,s=void 0===o?0:o,c=e.contentViewFraction,u=void 0===c?1:c,l=e.width,d=void 0===l?-1:l,h=e.height,f=void 0===h?-1:h,p=e.verticalPosition,v=e.horizontalPosition,g=e.impressionTime,m=e.contentTrackingId,y=e.clientBreadcrumbs,x=void 0===y?[]:y,E=e.isShadowEvent,b=e.cooloffToken,w=r?this.getViewHierarchy(r):[],T=w.length>0?w:i||[],C=a||this.getViewTrackingScope(r);0===T.length&&console.warn("No viewHierarchy provided or found from element.");var k=kr(C),S=k.breadcrumbs,I=k.trackingScopes,_={header:{viewHierarchy:T},context:null==t?void 0:t.context};return this.fireEvent("GenericImpressionEvent",{viewDurationInMilliseconds:s,contentViewFraction:u,width:d,height:f,verticalPosition:p,horizontalPosition:v,impressionTime:g,contentTrackingId:""===m?void 0:m,manualFireReason:n,cooloffToken:b,trackingScopeHierarchy:{entries:I}},_,[].concat(Fe(x),Fe(S)),E)}},{key:"fireEvent",value:function(e,t,n,r,i){if(!t){var a=ur(e),o=void 0===t?"undefined":null===t?"null":He(t),s='Firing tracking event "'.concat(a,'" with invalid body, you fired "').concat(o,'"');if(this.clientMonitoringConn){var c=this.clientMonitoringConn.logEventGenerated(a);this.clientMonitoringConn.logFailedEvent(hr.MISSING_REQUIRED_PROPERTIES,e,s,c)}throw new Error(s)}var u=r||[];if(u.length>0){var l=u.map((function(e){return br.toPointer(e)}));this.host.api.assign(t,{clientBreadcrumbPointers:l})}var d=u.length>0?this.generateEnvelopeWithBreadcrumbs(e,t,n,u,i):this.generateEnvelope(e,t,n,i);return this.fireEnvelope(d)}},{key:"generateEnvelopeWithBreadcrumbs",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:[],i=arguments.length>4&&void 0!==arguments[4]&&arguments[4],a=this.generateEnvelope(e,t,n,i);return r.length>0?this.addBreadcrumbsToEnvelope(a,r):a}},{key:"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(cr(e.id)){var r=e.id;e.id={eventName:r,topicName:r,shouldAnonymizeMemberId:!0}}else e.id.shouldAnonymizeMemberId=!0;var i=this.delegate&&this.delegate.preTransporter?this.delegate.preTransporter(e):e;if(i){var a=i.meta.transporterKey,o=a?this.customTransporters[a]:this.transporter;if(!o&&a){var s=ur(i.id),c="Could not find custom transporter: ".concat(a);if(this.clientMonitoringConn){var u=this.clientMonitoringConn.logEventGenerated(s);this.clientMonitoringConn.logFailedEvent(hr.UNKNOWN_EXECUTION_ERROR,i.id,c,u)}throw new Error(c)}return o.fireEvent(i)}return this.host.api.Promise.resolve(!0)}},{key:"generatePageInstance",value:function(e,t){return Hn(e,t)}},{key:"firePVE",value:function(e,t,n){return this._firePVE(e,t,n)}},{key:"_firePVE",value:function(e,t,n){var r={pageType:"full",totalTime:0,trackingCode:this.getTrackingCode(),trackingInfo:{}},i=this.host.api.assign(r,t),a=this.generateEnvelope("PageViewEvent",i,{context:n});return a.meta.requestHeader.pageKey=e,this.fireEnvelope(a)}},{key:"destroy",value:function(){for(var e in this.transporter.destroy(),this.customTransporters)this.customTransporters[e].destroy();this.clientMonitoringConn&&(this.clientMonitoringConn.flush(),this.clientMonitoringConn.destroy(),this.clientMonitoringConn=void 0),Sn.clear()}},{key:"forceFlush",value:function(){for(var e in this.transporter.forceFlush(),this.customTransporters)this.customTransporters[e].forceFlush()}},{key:"generateControlUrn",value:function(e,t){return Kn((t||this.currentContext||{pageKey:ze}).pageKey,e)}},{key:"fireRawCIE",value:function(e,t,n,r){var i={controlTrackingId:r,controlUrn:e,interactionType:t};return{beacon:this.fireEvent("ControlInteractionEvent",i,{context:n}),controlUrn:e}}},{key:"generateNavigationEvent",value:function(e){var t=e.triggerId,n=e.triggerUrn,r=e.from;return{previousPageInstance:r&&r.pageInstance,triggerControlTrackingId:t,triggerControlUrn:n}}},{key:"getTrackingCode",value:function(){return this.previousAppContext&&this.previousAppContext.pageKey}},{key:"navMetaFromSeed",value:function(e,t,n){var r="NavigationEvent";this.previousAppContext=t.previousContext;var i=t.fromExternalApp?{eventName:r,topicName:"InboundNavigationEvent"}:r;return t.fromExternalApp||(this.referrer="https://www.linkedin.com"),{from:t.previousContext,navEventId:i,to:{applicationInstance:t.applicationInstance,pageInstance:this.generatePageInstance(e,n||t.pageTrackingId),pageKey:e},triggerId:t.previousControlId,triggerUrn:t.previousControlUrn}}},{key:"fireNavEvents",value:function(e){var t=this.generateNavigationEvent(e),n=e.to,r=e.from,i=e.navEventId,a=this.generateEnvelope(i,t);a.meta.requestHeader.pageKey=n.pageKey;var o=r&&r.applicationInstance;return o&&(a.meta.header.clientApplicationInstance=o),this.host.api.Promise.all([this._firePVE(n.pageKey),this.fireEnvelope(a)])}},{key:"generateEnvelope",value:function(e,t){var n,r,i,a,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},s=arguments.length>3&&void 0!==arguments[3]&&arguments[3],c={directive:o.directive,transporterKey:o.transporterKey,context:o.context||this.currentContext&&qn(this.currentContext,this.host.api),requestHeader:this.host.api.assign({trackingCode:this.getTrackingCode()},o.requestHeader||{},_r(this.host)?{path:"".concat(this.host.api.location.pathname).concat(this.host.api.location.search),referer:"enabled"===(null===(n=(r=this.host).__getLixTreatment)||void 0===n?void 0:n.call(r,"pai.referrer.fix.subsquent"))?this.referrer?this.referrer:null===(i=this.host.api.document)||void 0===i?void 0:i.referrer:null===(a=this.host.api.document)||void 0===a?void 0:a.referrer}:{}),header:this.host.api.assign({applicationViewerUrn:this.appState.applicationViewerUrn,clientApplicationInstance:this.appState.clientApplicationInstance,isShadowEvent:s},o.header||{})};return{body:"function"==typeof t?t:function(){return t},id:e,meta:c}}}]),e}();!function(e){e.INTERNAL_OTEL_JET_EVENT="internal:otel:jet",e.INTERNAL_OTEL_RESOURCE="internal:otel:resource",e.INTERNAL_OTEL_LARGEST_CONTENTFUL_PAINT="internal:otel:lcp",e.INTERNAL_OTEL_CUMULATIVE_LAYOUT_SHIFT="internal:otel:cls",e.INTERNAL_OTEL_FIRST_INPUT_DELAY="internal:otel:fid"}(Ar||(Ar={}));var Nr,Lr,Or=function(){function e(t,n){var r,i,a=this;Ke(this,e),Ve(this,"core",void 0),Ve(this,"protocol",void 0),Ve(this,"throttleKeySet",new Set),Ve(this,"config",void 0),Ve(this,"reportTransporterError",(function(e){e.reason instanceof Error||(e.reason=new Error(e.reason||"An error occurred in the transporter")),a.reportError(e.reason,e.tags.concat(["info"]),{responseHeaders:e.responseHeaders}).catch((function(){}))})),this.core=t;var o=this.core.host.api.location.protocol;this.protocol=o.substring(0,o.length-1),this.config={throttleTime:null!==(r=null==n?void 0:n.throttleTime)&&void 0!==r?r:100,useOTel:null!==(i=null==n?void 0:n.useOTel)&&void 0!==i&&i},Sn.on(bn,this.reportTransporterError)}return qe(e,[{key:"reportError",value:function(e){var t,n=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},a=i.callTreeId,o=void 0===a?"":a,s=i.responseHeaders,c=void 0===s?{}:s,u=i.sduiScreenId,l=i.componentKey,d=e.message,h=e.name,f=e.stack,p=void 0===f?"":f,v=e.fileName,g=void 0===v?"":v,m=e.lineNumber,y=void 0===m?0:m,x=e.columnNumber,E=void 0===x?0:x,b=this.core.host,w=b.appId,T=b.appVersion,C=b.service,k=b.serviceInstance,S=b.treeID,I=void 0===S?"":S,_=b.api,A=_.Promise,R=_.location,N=R.host,L=R.pathname,O=R.search,P=R.hash,D=void 0===P?"":P;if(this.config.useOTel&&Sn.emit(Ar.INTERNAL_OTEL_JET_EVENT,{error:e,tags:r,callTreeId:o,responseHeaders:c}),c){t={};var M=new Map;Object.keys(c).forEach((function(e){M.set(e.toLowerCase(),c[e])})),t.callTreeId=M.get("x-li-uuid"),t.microsoftEdgeReference=M.get("x-msedge-ref"),t.pointOfPresenceId=M.get("x-li-pop"),t.fabric=M.get("x-li-fabric")}var F=function(){return n.core.fireEvent("JavaScriptErrorEvent",(function(e){return{appId:w,e:{c:E,l:y,m:d,s:p,t:h,u:g},h:D,l:n.protocol,o:N,p:L,pageKey:e.pageKey,q:O,service:C,serviceInstance:k,serviceVersion:T,t:r,trackingID:e.pageInstance.trackingId,treeID:I,callTreeId:o,responseTraceHeaders:t,sduiScreenId:u,componentKey:l}}))};if(this.config.throttleTime<0)return F();var U=(h+d+p+r.join("")+o).split("").reduce((function(e,t){return(e<<5)-e+t.charCodeAt(0)|0}),0);return this.throttleKeySet.has(U)?A.resolve(!1):(this.throttleKeySet.add(U),setTimeout((function(){return n.throttleKeySet.delete(U)}),this.config.throttleTime),F())}},{key:"flush",value:function(){this.core.forceFlush()}},{key:"destroy",value:function(){this.core.destroy(),Sn.off(bn,this.reportTransporterError)}}]),e}();!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.CustomMeasureEvent="CustomMeasureEvent",e.ViewLoadEvent="ViewLoadEvent",e.PEMTracer="PEMTracer"}(Lr||(Lr={}));var Pr,Dr,Mr,Fr,Ur,Br,Hr,Kr=(Ve(Ve(Ve(Ve(Ve(Ve(Ve(Ve(Ve(Ve(ve={},"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),Ve(Ve(Ve(Ve(Ve(Ve(ve,"beacon-timeout",3e4),"enable-memory-measurement",!1),"pageKeyPrefix",""),"enable-pem-tracking-3",!1),"enable-tracking-3",!1),"enable-otel",!1)),Wr=-1,qr=-2,Vr=["loadEventEnd","loadEventStart","domComplete","domContentLoadedEventEnd","domContentLoadedEventStart","domInteractive","domLoading","responseEnd","responseStart","requestStart","secureConnectionStart","connectEnd","connectStart","domainLookupEnd","domainLookupStart","fetchStart","redirectEnd","redirectStart","unloadEventEnd","unloadEventStart","navigationStart"],jr={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"},zr="pageLoadId does not exist",Xr="rum token passed is invalid",Jr=new RegExp(/batch-(\d+)$|enabled$/),Qr=function(){function e(){Ke(this,e),Ve(this,"userTimingEntries",[]),Ve(this,"longTasks",[]),Ve(this,"resourceTimingEntries",[]),Ve(this,"cdnData",void 0)}return qe(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(Yr),cdnData:this.cdnData}}}]),e}(),$r=["resourceTreeId","name","entryType","startTime","duration","initiatorType","nextHopProtocol","redirectStart","redirectEnd","fetchStart","domainLookupStart","domainLookupEnd","connectStart","connectEnd","secureConnectionStart","requestStart","responseStart","responseEnd","transferSize","encodedBodySize","decodedBodySize","workerStart"];function Yr(e){return $r.reduce((function(t,n){var r=e[n];return void 0!==r&&(t[n]=r),t}),{})}function Zr(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};Br=Object.assign(Object.assign({},n),t),Hr=function(e,t){return e.nodeType===Node.DOCUMENT_NODE?e:e===t.root?e.ownerDocument:e}(Br.root,n);var r=ei(e,Ur.All,(function(){return ei(e,Ur.Two,(function(){return ei(e,Ur.One)}))}));if(r){var i=li(di(r,e));return i.length>0&&(r=i[0]),ni(r)}throw new Error("Selector was not found.")}function ei(e,t,n){for(var r=null,i=[],a=e,o=0,s=function(){var e=si(function(e){var t=e.getAttribute("id");return t&&Br.idName(t)?{name:"#"+mi(t,{isIdentifier:!0}),penalty:0}:null}(a))||si.apply(void 0,Fe(function(e){return Array.from(e.attributes).filter((function(e){return Br.attr(e.name,e.value)})).map((function(e){return{name:"["+mi(e.name,{isIdentifier:!0})+'="'+mi(e.value)+'"]',penalty:.5}}))}(a)))||si.apply(void 0,Fe(function(e){return Array.from(e.classList).filter(Br.className).map((function(e){return{name:"."+mi(e,{isIdentifier:!0}),penalty:1}}))}(a)))||si(function(e){var t=e.tagName.toLowerCase();return Br.tagName(t)?{name:t,penalty:2}:null}(a))||[{name:"*",penalty:3}],s=function(e){var t=e.parentNode;if(!t)return null;var n=t.firstChild;if(!n)return null;for(var r=0;n&&(n.nodeType===Node.ELEMENT_NODE&&r++,n!==e);)n=n.nextSibling;return r}(a);if(t===Ur.All)s&&(e=e.concat(e.filter(oi).map((function(e){return ai(e,s)}))));else if(t===Ur.Two)e=e.slice(0,1),s&&(e=e.concat(e.filter(oi).map((function(e){return ai(e,s)}))));else if(t===Ur.One){var c=function(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,a,o,s=[],c=!0,u=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(e){u=!0,i=e}finally{try{if(!c&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(u)throw i}}return s}}(e,t)||Ue(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.")}()}(e=e.slice(0,1),1)[0];s&&oi(c)&&(e=[ai(c,s)])}var u,l=Me(e);try{for(l.s();!(u=l.n()).done;)u.value.level=o}catch(e){l.e(e)}finally{l.f()}if(i.push(e),i.length>=Br.seedMinLength&&(r=ti(i,n)))return 1;a=a.parentElement,o++};a&&a!==Br.root.parentElement&&!s(););return r||(r=ti(i,n)),r}function ti(e,t){var n=li(ui(e));if(n.length>Br.threshold)return t?t():null;var r,i=Me(n);try{for(i.s();!(r=i.n()).done;){var a=r.value;if(ii(a))return a}}catch(e){i.e(e)}finally{i.f()}return null}function ni(e){for(var t=e[0],n=t.name,r=1;r ").concat(n):"".concat(e[r].name," ").concat(n),t=e[r]}return n}function ri(e){return e.map((function(e){return e.penalty})).reduce((function(e,t){return e+t}),0)}function ii(e){switch(Hr.querySelectorAll(ni(e)).length){case 0:throw new Error("Can't select any node with this selector: ".concat(ni(e)));case 1:return!0;default:return!1}}function ai(e,t){return{name:e.name+":nth-child(".concat(t,")"),penalty:e.penalty+1}}function oi(e){return"html"!==e.name&&!e.name.startsWith("#")}function si(){for(var e=arguments.length,t=new Array(e),n=0;n0?r:null}function ci(e){return null!=e}function ui(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];if(e.length>0){var n,r=[],i=Me(e[0]);try{for(i.s();!(n=i.n()).done;){var a=n.value;r=r.concat(ui(e.slice(1,e.length),t.concat(a)))}}catch(e){i.e(e)}finally{i.f()}return r}return[t]}function li(e){return Array.from(e).sort((function(e,t){return ri(e)-ri(t)}))}function di(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{counter:0,visited:new Map},r=[];if(e.length>2&&e.length>Br.optimizedMinLength)for(var i=1;iBr.maxNumberOfTries)return r;n.counter+=1;var a=Fe(e);a.splice(i,1);var o=ni(a);if(n.visited.has(o))return r;ii(a)&&hi(a,t)&&(r.push(a),n.visited.set(o,!0),r=r.concat(di(a,t,n)))}return r}function hi(e,t){return Hr.querySelector(ni(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"}(Pr||(Pr={})),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"}(Dr||(Dr={})),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"}(Mr||(Mr={})),function(e){e.DEFAULT="DEFAULT",e.INITIAL="INITIAL",e.SUBSEQUENT="SUBSEQUENT",e.PAGINATED="PAGINATED"}(Fr||(Fr={})),function(e){e[e.All=0]="All",e[e.Two=1]="Two",e[e.One=2]="One"}(Ur||(Ur={}));var fi=/[ -,\.\/:-@\[-\^`\{-~]/,pi=/[ -,\.\/:-@\[\]\^`\{-~]/,vi=/(^|\\+)?(\\[A-F0-9]{1,6})\x20(?![a-fA-F0-9\x20])/g,gi={escapeEverything:!1,isIdentifier:!1,quotes:"single",wrap:!1};function mi(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=Object.assign(Object.assign({},gi),t);"single"!=n.quotes&&"double"!=n.quotes&&(n.quotes="single");for(var r="double"==n.quotes?'"':"'",i=n.isIdentifier,a=e.charAt(0),o="",s=0,c=e.length;s126){if(l>=55296&&l<=56319&&s1&&void 0!==arguments[1]&&arguments[1];if(e&&"function"==typeof e.now&&(e.timeOrigin||e.timing)){var n,r=e.now();return n=!e.timing&&t?Math.floor(e.timeOrigin):e.timing.navigationStart,Math.round(r+n)}return Date.now()}function bi(e){var t=e||performance;return Math.round(t.now())}function wi(e){if(!e)return"null";if(e.nodeType===Node.ELEMENT_NODE)try{return Zr(e,{idName:function(e){return 0!==e.indexOf("ember")}})}catch(e){return"serialization_error"}var t=wi(e.parentElement||void 0);return"".concat(t," > nodeType(").concat(e.nodeType,")")}function Ti(e,t,n,r){var i=[];return e&&"function"==typeof e.getEntriesByType&&(t["user-timing-measure-enabled"]&&e.getEntriesByType("measure").forEach((function(e){var t=e.name,n=e.startTime,a=e.duration;i.push({entryType:"MEASURE",name:t,startTime:n,duration:a}),null==r||r({measurementName:t,measurementType:"MEASURE",measureProgressStates:[{measureProgressName:t,timestamp:n,duration:a}]})})),t["user-timing-mark-enabled"]&&e.getEntriesByType("mark").forEach((function(e){var t=e.name,n=e.startTime,a=e.duration;i.push({entryType:"MARK",name:t,startTime:n,duration:a}),null==r||r({measurementName:t,measurementType:"MARK",measureProgressStates:[{measureProgressName:t,timestamp:n}]})})),n&&(e.clearMeasures(),e.clearMarks())),i}function Ci(e){var t=[];return e.forEach((function(e){return t.push(e)})),t}var ki,Si,Ii=function(){function e(t){Ke(this,e),Ve(this,"hostApis",void 0),Ve(this,"hostnameProperties",void 0),Ve(this,"usedHostnames",void 0),Ve(this,"abortController",void 0),Ve(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 qe(e,[{key:"clearUsedHostnames",value:function(){this.usedHostnames=new Set}},{key:"getPresentData",value:function(){var e=this;return jn(this.usedHostnames).map((function(t){return e.hostnameProperties[t]||{hostname:t,provider:"",ipVersion:"",httpVersion:""}}))}},{key:"getDataWhenReady",value:function(e){var t=this,n=this.hostApis,r=n.AbortController,i=n.Promise,a=Vn(jn(this.pendingPromises),i),o=setTimeout((function(){t.abortController.abort(),t.abortController=new r}),e);return a.then((function(){return clearTimeout(o),t.getPresentData()}))}},{key:"inspectEntryForCdnData",value:function(e){var t=this;if(!(e.name.indexOf(".licdn.")<0)){var n,r,i=this.hostApis.assign,a=(n=e.name,r=this.hostApis.document,(yi=yi||r.createElement("a")).href=n,yi.hostname);if(this.usedHostnames.add(a),!this.hostnameProperties[a]&&!this.isResourcePossiblyFromCache(e)){var o=this.fetchCdnFromUrl(e.name).then((function(e){var n=i({hostname:a},e);return t.hostnameProperties[a]||(t.hostnameProperties[a]=n),t.pendingPromises.delete(o),n}));this.pendingPromises.add(o)}}}},{key:"fetchCdnFromUrl",value:function(e){return(0,this.hostApis.fetch)(e,{method:"HEAD",signal:this.abortController.signal}).then((function(e){return{provider:e.headers.get("X-CDN")||"",ipVersion:e.headers.get("X-CDN-CLIENT-IP-VERSION")||"",httpVersion:e.headers.get("X-CDN-Proto")||""}}))}},{key:"isResourcePossiblyFromCache",value:function(e){return void 0!==e.transferSize?0===e.transferSize:e.domainLookupStart===e.domainLookupEnd&&e.connectEnd===e.connectStart&&0===e.secureConnectionStart}}]),e}(),_i=["latency","acq_time","allFeatures","requestIdleCallback","getCookieString","_cookieRegEx","bcookie","substring","getDomain","; path=","string","domain=","expires=","toUTCString","cookie","=([^;]*)","DNA","HUMAN","DFP_WEB","querySelector","nodeValue","https://www.linkedin.com","https://www.linkedin-ei.com","POST","setRequestHeader","application/json","send","getElementsByClassName","str2ab","btoa","fromCharCode","importPk","atob","crypto","subtle","importKey","RSA-OAEP","SHA-256","wrap","spki","wrapKey","raw","encode","wrapErrorResult","error","encryptWithKey","number","getRandomValues","AES-CBC","generateKey","encrypt","decrypt","resolve","encryptWithKeyIds","Error: ec2","isNaN","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","encryptWithKeyFromDifferentSources","publicKey","publicKeyVersion","uuidv4","from","_compress","ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=","charAt","===","call","pow","battery","signals","FPDataCookie","apfcDf","flash/compiled/FontList.swf","/platform-telemetry/li/apfcDf","/apfc/collect","n/a","err","excluded","enabled","globalIntegration","complete","checkConfigAndInitializeAllIntegration","load","parse","useRequestIdleCallBack","settings-iframe","setting-headline","addEventListener","samplingTimeWindowInMillis","getItem","df_ts","enableOnDemandMode","pauseApfc","checkConfigAndInitializeGlobalIntegration","checkConfigAndInitializeThirdPartyIntegration","deleteItem","li_apfcdc","deleteDfCookieIfRequired","addDfCookieIfRequired","fpDataCookie","apfcTypes","dnaIntegrationEnabled","dnaIntegrationCompleted","intializeGlobalIntegration","includes","humanIntegrationEnabled","humanIntegrationCompleted","initializeHumanIntegration","dfpIntegrationEnabled","dfpIntegrationCompleted","intializeDfpIntegration","initialize","apfcDfPK","reentry","placePonfBeacon","reqid","pageInstance","isProd","fullFeatureCollection","populateFpDataCookie","apfcDfH","compressToBase64","apfcDfPKV","isSyncEnabledWithCb","payload","getBcookie","fb6bbd47-fa7c-4264-b4e9-b25948407586","ee078acd-0704-4344-9e5b-6b84b480c30a","https://merchantpool1.linkedin.com/mdt.js?session_id=","setAttribute","src","dfpIframeScript","doFpt","getElementsByTagName","PXdOjV695v","PXgoH0hfKu","https://li.protechts.net/index.html?ts=","&app_id=","&uc=scraping","generateSha256HashOrDefault","iframe","humanThirdPartyIframe","allow-same-origin allow-scripts","aria-hidden","true","0px","border","scraping","triggerApfc","reentryGlobalIntegration","reentryGlobalIntegrationOnDemand","extractDataCookie","onlyOnDemandFlow",":::","trackingId","memberId","sessionUrn","object","pemberly","isEmpty","div_bc","noscript","parseFromString","text/html","getAttribute","class","ponfUrl","searchParams","get","getElementById","bc_context",".linkedin-ei.com","undefined","triggerDnaApfcEvent","triggerDnaApfcEventOnDemand","x64Add","x64Multiply","x64Rotl","x64LeftShift","x64Fmix","x64Xor","x64hash128","length","charCodeAt","slice","00000000","toString","each","prototype","forEach","hasOwnProperty","map","push","getIPs","webkitRTCPeerConnection","stun:stun.l.google.com:19302","localDescription","sdp","split","indexOf","a=candidate:","c=IN","keys","candidate","iceGatheringState","createOffer","then","setLocalDescription","automationKey","undetected, fake browser","getBrowserNameAndVersion","webdriver","Firefox","document","documentElement","__webdriver_script_fn","Selenium","callPhantom","_phantom","NOT_AVAILABLE","webRtcKey","enumerateDevicesKey","isEnumerateDevicesSupported","mediaDevices","enumerateDevices","gid","groupId","kind","label","catch","audioKey","audio","excludeIOS11","userAgent","webkitOfflineAudioContext","type","triangle","frequency","setValueAtTime","currentTime","createDynamicsCompressor","threshold","knee","reduction","attack","release","function","connect","destination","startRendering","oncomplete","audioTimeout","timeout","renderedBuffer","getChannelData","reduce","abs","disconnect","UserAgent","language","userLanguage","systemLanguage","colorDepthKey","screen","colorDepth","deviceMemoryKey","deviceMemory"," GB","pixelDepthKey","pixelDepth","pixelRatioKey","devicePixelRatio","getScreenResolution","screenOrientationKey","detectScreenOrientation","Enabled","orientation","Orientation","msOrientation","mozOrientation","width","height","getAvailableScreenResolution","availWidth","availHeight","getTimezoneOffset","timezone","Intl","DateTimeFormat","resolvedOptions","sessionStorageKey","hasSessionStorage","localStorageKey","hasLocalStorage","indexedDbKey","addBehaviorKey","body","addBehavior","openDatabaseKey","openDatabase","cpuClassKey","getNavigatorCpuClass","oscpuKey","appNameKey","appName","appVersionKey","appVersion","appCodeNameKey","appCodeName","now","platformKey","getNavigatorPlatform","productKey","productSubKey","vendorKey","vendorSubKey","vendorSub","doNotTrackKey","incognitoKey","Chrome","RequestFileSystem","webkitRequestFileSystem","TEMPORARY","storage","estimate","Safari","localStorage","setItem","test","removeItem","open","onsuccess","EDGE","PointerEvent","MSPointerEvent","match","IE ","join","replace","OPR","splice","getWebglFp","javascriptsKey","scripts","locationKey","hash","host","hostname","href","origin","pathname","port","protocol","getSignals","getAdBlock","getHasLiedResolution","getHasLiedOs","getHasLiedBrowser","flashFontsKey","hasSwfObjectLoaded","hasMinFlashInstalled","swfPath","loadSwfAndDetectFonts","flash not installed","jsFontsKey","sans-serif","Andale Mono","Arial Hebrew","Arial MT","Arial Narrow","Arial Rounded MT Bold","Arial Unicode MS","Bitstream Vera Sans Mono","Book Antiqua","Bookman Old Style","Cambria","Cambria Math","Century","Century Gothic","Century Schoolbook","Comic Sans","Comic Sans MS","Consolas","Courier New","Helvetica","Helvetica Neue","Impact","Lucida Bright","Lucida Console","LUCIDA GRANDE","Lucida Handwriting","Lucida Sans","Lucida Sans Typewriter","Lucida Sans Unicode","Microsoft Sans Serif","Monaco","Monotype Corsiva","MS Outlook","MS PGothic","MS Reference Sans Serif","MS Sans Serif","MYRIAD","Palatino","Palatino Linotype","Segoe Print","Segoe Script","Segoe UI","Segoe UI Light","Segoe UI Semibold","Segoe UI Symbol","Tahoma","Times","Times New Roman","Trebuchet MS","Verdana","Wingdings","Wingdings 3","fonts","extendedJsFonts","concat","userDefinedFonts","filter","createElement","div","style","position","absolute","left","-9999px","fontSize","72px","normal","fontWeight","letterSpacing","lineBreak","lineHeight","textTransform","none","textAlign","textDecoration","textShadow","wordBreak","wordSpacing","textContent","mmmmmmmmmmlli","offsetWidth","offsetHeight","fontFamily","appendChild","removeChild","fontsHash","lists","mimetypesComponent","mimeTypes","suffixes","description","pluginsComponent","isIE","excludeIE","getIEPlugins","getRegularPlugins","plugins","pluginsShouldBeSorted","sort","name","getOwnPropertyDescriptor","ActiveXObject","AcroPDF.PDF","Adodb.Stream","AgControl.AgControl","DevalVRXCtrl.DevalVRXCtrl.1","MacromediaFlashPaper.MacromediaFlashPaper","Msxml2.DOMDocument","Msxml2.XMLHTTP","PDF.PdfCtrl","QuickTime.QuickTime","RealPlayer","RealPlayer.RealPlayer(tm) ActiveX Control (32-bit)","RealVideo.RealVideo(tm) ActiveX Control (32-bit)","Scripting.Dictionary","Shell.UIHelper","ShockwaveFlash.ShockwaveFlash","Skype.Detection","TDCCtl.TDCCtl","WMPlayer.OCX","rmocx.RealPlayer G2 Control.1","ERROR","batteryKey","getBattery","level","charging","chargingTime","connection","downlink","downlinkMax","effectiveType","rtt","saveData","touchSupportKey","getTouchSupport","hardwareConcurrencyKey","getHardwareConcurrency","hasIndexedDB","hardwareConcurrency","cpuClass","getDoNotTrack","doNotTrack","msDoNotTrack","maxTouchPoints","msMaxTouchPoints","createEvent","TouchEvent","ontouchstart","canvas","inline","getContext","rect","canvasWinding","yes","textBaseline","fillStyle","#f60","dontUseFakeFontInCanvas","11pt Arial","font","fillText","Cwm fjordbank glyphs vext quiz, 😃","18pt Arial","multiply","beginPath","closePath","fill","arc","rgb(255,0,255)","evenodd","toDataURL","canvasHash","clearColor","enable","DEPTH_TEST","depthFunc","LEQUAL","clear","DEPTH_BUFFER_BIT","getWebglCanvas","createBuffer","bindBuffer","ARRAY_BUFFER","STATIC_DRAW","itemSize","numItems","createProgram","createShader","attribute vec2 attrVertex;varying vec2 varyinTexCoordinate;uniform vec2 uniformOffset;void main(){varyinTexCoordinate=attrVertex+uniformOffset;gl_Position=vec4(attrVertex,0,1);}","shaderSource","precision mediump float;varying vec2 varyinTexCoordinate;void main() {gl_FragColor=vec4(varyinTexCoordinate,0,1);}","compileShader","attachShader","useProgram","vertexPosAttrib","getAttribLocation","attrVertex","offsetUniform","getUniformLocation","enableVertexAttribArray","vertexPosArray","vertexAttribPointer","FLOAT","uniform2f","drawArrays","TRIANGLE_STRIP","webgl","hashOnly","vendorAndRenderer","getWebglVendorAndRenderer","extensions","getSupportedExtensions","webgl aliased line width range","getParameter","ALIASED_LINE_WIDTH_RANGE","webgl aliased point size range","webgl alpha bits","antialias","BLUE_BITS","webgl depth bits","DEPTH_BITS","webgl green bits","GREEN_BITS","webgl max anisotropy","getExtension","EXT_texture_filter_anisotropic","MOZ_EXT_texture_filter_anisotropic","MAX_TEXTURE_MAX_ANISOTROPY_EXT","webgl max combined texture image units","MAX_COMBINED_TEXTURE_IMAGE_UNITS","webgl max cube map texture size","webgl max fragment uniform vectors","MAX_FRAGMENT_UNIFORM_VECTORS","webgl max render buffer size","MAX_RENDERBUFFER_SIZE","webgl max texture image units","MAX_TEXTURE_IMAGE_UNITS","webgl max varying vectors","MAX_VARYING_VECTORS","webgl max vertex texture image units","MAX_VERTEX_TEXTURE_IMAGE_UNITS","MAX_VERTEX_UNIFORM_VECTORS","webgl max viewport dims","MAX_VIEWPORT_DIMS","webgl red bits","RED_BITS","webgl renderer","webgl shading language version","SHADING_LANGUAGE_VERSION","webgl stencil bits","STENCIL_BITS","webgl vendor","VENDOR","WEBGL_debug_renderer_info","UNMASKED_VENDOR_WEBGL","webgl unmasked renderer","UNMASKED_RENDERER_WEBGL","getShaderPrecisionFormat","INT","VERTEX","FRAGMENT","HIGH","LOW","precision","rangeMax","_SHADER","precision ","webgl ","toLowerCase"," shader ","innerHTML"," ","className","adsbox","getHasLiedLanguages","languages","substr","platform","windows phone","win","Windows","Android","linux","cros","Linux","iphone","ipad","mac","Other","Windows Phone","iOS","pike","ipod","Mac","productSub","opr","Opera","chrome","safari","trident","Internet Explorer","20030107","toSource","isCanvasSupported","Microsoft Internet Explorer","Netscape","swfobject","hasFlashPlayerVersion","9.0.0","addFlashDivNode","swfContainerId","embedSWF","always","false","components","webrtc","tsSeed","location","javascripts","oscpu","numOfCores","vendor","languageKey","timezoneOffset","screenResolution","screenOrientation","availableScreenResolution","availableScreenResolutionKey","sessionStorage","indexedDb","webglKey","signalsKey","touchSupport","networkInfo","networkInfoKey","automation","mimetyps","fontsFlash","getFeatures","excludes","key","alias","getData","shouldEnforceDataLimit","dataLimit","stringify","data","errors"," Data length for:"," was found to be:"];ki=_i,Si=176,function(e){for(;--e;)ki.push(ki.shift())}(++Si);var Ai=function(e,t){return _i[e-=0]};!function(){var e=function(e,t,n,r,i,a){function o(){Ke(this,o)}return qe(o,null,[{key:Ai("0x0"),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:Ai("0x1"),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:Ai("0x2"),value:function(e,t){return 32==(t%=64)?[e[1],e[0]]:t<32?[e[0]<>>32-t,e[1]<>>32-t]:(t-=32,[e[1]<>>32-t,e[0]<>>32-t])}},{key:Ai("0x3"),value:function(e,t){return 0==(t%=64)?e:t<32?[e[0]<>>32-t,e[1]<>>1]),e=o[Ai("0x1")](e,[4283543511,3981806797]),e=o[Ai("0x5")](e,[0,e[0]>>>1]),e=o[Ai("0x1")](e,[3301882366,444984403]),o[Ai("0x5")](e,[0,e[0]>>>1])}},{key:Ai("0x6"),value:function(e,t){t=t||0;var n,r=(e=e||"")[Ai("0x7")]%16,i=e[Ai("0x7")]-r,a=[0,t],s=[0,t],c=[0,0],u=[0,0],l=[2277735313,289559509],d=[1291169091,658871167];for(n=0;n>>0).toString(16))[Ai("0x9")](-8)+(Ai("0xa")+(a[1]>>>0)[Ai("0xb")](16)).slice(-8)+("00000000"+(s[0]>>>0)[Ai("0xb")](16)).slice(-8)+(Ai("0xa")+(s[1]>>>0)[Ai("0xb")](16))[Ai("0x9")](-8)}}]),o}(),t=function(t,n,r,i,a,o,s,c,u,l,d,h,f,p,v,g,m,y,x,E,b,w,T,C,k,S,I,_,A,R,N,L,O,P,D,M,F,U,B,H,K,W,q,V,j,G,z,X,J,Q,$,Y,Z,ee,te,ne,re,ie,ae,oe,se,ce,ue,le){function de(){Ke(this,de),this[Ai("0x1f8")]=[{key:Ai("0x1f9"),getData:de[Ai("0x2d")],shouldEnforceDataLimit:!0,dataLimit:1e3},{key:Ai("0x31"),getData:de.enumerateDevicesKey,shouldEnforceDataLimit:!0,dataLimit:22e3},{key:Ai("0x81"),getData:de[Ai("0x80")],shouldEnforceDataLimit:!0,dataLimit:100},{key:Ai("0x1fa"),getData:de.seedKey,shouldEnforceDataLimit:!0,dataLimit:100},{key:Ai("0x83"),getData:de[Ai("0x82")],shouldEnforceDataLimit:!0,dataLimit:300},{key:Ai("0x85"),getData:de[Ai("0x84")],shouldEnforceDataLimit:!0,dataLimit:100},{key:Ai("0x1fb"),getData:de.locationKey,shouldEnforceDataLimit:!0,dataLimit:1500},{key:Ai("0x1fc"),getData:de.javascriptsKey,shouldEnforceDataLimit:!0,dataLimit:2200},{key:Ai("0x1d3"),getData:de.platformKey,shouldEnforceDataLimit:!0,dataLimit:100},{key:"product",getData:de[Ai("0x89")],shouldEnforceDataLimit:!0,dataLimit:100},{key:Ai("0x1e4"),getData:de[Ai("0x8a")],shouldEnforceDataLimit:!0,dataLimit:100},{key:Ai("0x149"),getData:de[Ai("0x7d")],shouldEnforceDataLimit:!0,dataLimit:100},{key:Ai("0x1fd"),getData:de[Ai("0x7f")],shouldEnforceDataLimit:!0,dataLimit:100},{key:Ai("0x148"),getData:de[Ai("0x145")],alias:Ai("0x1fe"),shouldEnforceDataLimit:!0,dataLimit:100},{key:Ai("0x5b"),getData:de.deviceMemoryKey,shouldEnforceDataLimit:!0,dataLimit:100},{key:Ai("0x1ff"),getData:de.vendorKey,shouldEnforceDataLimit:!0,dataLimit:100},{key:Ai("0x8d"),getData:de.vendorSubKey,shouldEnforceDataLimit:!0,dataLimit:100},{key:Ai("0x54"),getData:de[Ai("0x200")],shouldEnforceDataLimit:!0,dataLimit:100},{key:Ai("0x201"),getData:de[Ai("0x201")],shouldEnforceDataLimit:!0,dataLimit:100},{key:Ai("0x6f"),getData:de.timezone,shouldEnforceDataLimit:!0,dataLimit:100},{key:"userAgent",getData:de[Ai("0x53")],shouldEnforceDataLimit:!0,dataLimit:1500},{key:Ai("0x24"),getData:de.webdriver,shouldEnforceDataLimit:!0,dataLimit:100},{key:Ai("0x14b"),getData:de.doNotTrackKey,shouldEnforceDataLimit:!0,dataLimit:100},{key:"incognito",getData:de.incognitoKey,shouldEnforceDataLimit:!0,dataLimit:100},{key:Ai("0x59"),getData:de[Ai("0x57")],shouldEnforceDataLimit:!0,dataLimit:100},{key:Ai("0x5e"),getData:de[Ai("0x5d")],shouldEnforceDataLimit:!0,dataLimit:100},{key:"pixelRatio",getData:de.pixelRatioKey,shouldEnforceDataLimit:!0,dataLimit:100},{key:Ai("0x202"),getData:de.screenResolutionKey,shouldEnforceDataLimit:!0,dataLimit:100},{key:Ai("0x203"),getData:de[Ai("0x62")],shouldEnforceDataLimit:!0,dataLimit:100},{key:Ai("0x204"),getData:de[Ai("0x205")],shouldEnforceDataLimit:!0,dataLimit:100},{key:Ai("0x206"),getData:de.sessionStorageKey,shouldEnforceDataLimit:!0,dataLimit:100},{key:Ai("0x97"),getData:de[Ai("0x75")],shouldEnforceDataLimit:!0,dataLimit:100},{key:Ai("0x207"),getData:de.indexedDbKey,shouldEnforceDataLimit:!0,dataLimit:100},{key:Ai("0x7a"),getData:de[Ai("0x78")],shouldEnforceDataLimit:!0,dataLimit:100},{key:"openDatabase",getData:de[Ai("0x7b")],shouldEnforceDataLimit:!0,dataLimit:100},{key:Ai("0x152"),getData:de.canvasKey,shouldEnforceDataLimit:!0,dataLimit:100},{key:Ai("0x18c"),getData:de[Ai("0x208")],shouldEnforceDataLimit:!0,dataLimit:6e3},{key:"signals",getData:de[Ai("0x209")],shouldEnforceDataLimit:!0,dataLimit:150},{key:Ai("0x20a"),getData:de[Ai("0x143")],shouldEnforceDataLimit:!0,dataLimit:100},{key:Ai("0x20b"),getData:de[Ai("0x20c")],shouldEnforceDataLimit:!0,dataLimit:150},{key:"battery",getData:de[Ai("0x138")],shouldEnforceDataLimit:!0,dataLimit:100},{key:Ai("0x38"),getData:de[Ai("0x37")],shouldEnforceDataLimit:!0,dataLimit:100},{key:Ai("0x20d"),getData:de[Ai("0x21")],shouldEnforceDataLimit:!0,dataLimit:100},{key:"plugins",getData:de[Ai("0x119")],shouldEnforceDataLimit:!0,dataLimit:17e3},{key:Ai("0x20e"),getData:de[Ai("0x115")],shouldEnforceDataLimit:!0,dataLimit:27e3},{key:"fonts",getData:de[Ai("0xbd")],shouldEnforceDataLimit:!0,dataLimit:1500},{key:Ai("0x20f"),getData:de[Ai("0xb7")],shouldEnforceDataLimit:!0,dataLimit:100}]}return qe(de,[{key:Ai("0x210"),value:function(e,t){if(Ai("0x47")==He(e)){if(!t)return e({error:"Options not provided"});var n={data:{latency:{acq_time:{}},errors:{}}},r=Date[Ai("0x86")](),i={},a=0,o=0;this[Ai("0x1f8")][Ai("0xe")]((function(s){if(!t[Ai("0x211")][s[Ai("0x212")]]){var c=s[Ai("0x212")];void 0!==s.alias&&null!==s[Ai("0x213")]&&s[Ai("0x213")][Ai("0x7")]>0&&(c=s.alias),a++;var u=function(){i[c]=Date[Ai("0x86")]();try{s[Ai("0x214")]((function(t){if(!1!==s[Ai("0x215")]){var u=s[Ai("0xf")](Ai("0x216"))&&"number"==typeof s.dataLimit?s[Ai("0x216")]:1e3,l=JSON[Ai("0x217")](t)[Ai("0x7")];l>u&&(n[Ai("0x218")][Ai("0x219")][c]="Exceeded current data limit:"+u+Ai("0x21a")+c+Ai("0x21b")+l,t={})}n.data[c]=t,n[Ai("0x218")][Ai("0x21c")].acq_time[c]=Date[Ai("0x86")]()-i[c],++o>=a&&(n.data.latency[Ai("0x21d")][Ai("0x21e")]=Date.now()-r,n[Ai("0x218")].allFeaturesCollectionAt=Date.now(),e(n[Ai("0x218")],!0))}),t)}catch(e){n[Ai("0x218")][Ai("0x219")][c]=String(e)}};"function"==typeof window[Ai("0x21f")]&&!1!==t.useRequestIdleCallBack?window[Ai("0x21f")](u):u()}})),n[Ai("0x218")][Ai("0x21c")][Ai("0x21d")][Ai("0x21e")]=Date[Ai("0x86")]()-r,e(n[Ai("0x218")],!1)}}}],[{key:t,value:function(e,t){if(Array[Ai("0xd")][Ai("0xe")]&&e[Ai("0xe")]===Array[Ai("0xd")][Ai("0xe")])e[Ai("0xe")](t);else if(e[Ai("0x7")]===+e[Ai("0x7")])for(var n=0,r=e.length;n0&&de[Ai("0x11f")](e)&&(t=t[Ai("0x120")]((function(e,t){return e[Ai("0x121")]>t.name?1:e.name=0?"Windows Phone":t[Ai("0x18")](Ai("0x1d5"))>=0?Ai("0x1d6"):t[Ai("0x18")]("android")>=0?Ai("0x1d7"):t.indexOf(Ai("0x1d8"))>=0||t[Ai("0x18")](Ai("0x1d9"))>=0?Ai("0x1da"):t[Ai("0x18")](Ai("0x1db"))>=0||t.indexOf(Ai("0x1dc"))>=0?"iOS":t[Ai("0x18")](Ai("0x1dd"))>=0?"Mac":Ai("0x1de"),("ontouchstart"in window||navigator.maxTouchPoints>0||navigator[Ai("0x14e")]>0)&&Ai("0x1df")!==e&&Ai("0x1d7")!==e&&Ai("0x1e0")!==e&&"Other"!==e)return!0;if(void 0!==n){if((n=n.toLowerCase())[Ai("0x18")]("win")>=0&&"Windows"!==e&&Ai("0x1df")!==e)return!0;if(n[Ai("0x18")](Ai("0x1d8"))>=0&&Ai("0x1da")!==e&&Ai("0x1d7")!==e)return!0;if(n.indexOf(Ai("0x1dd"))>=0&&"Mac"!==e&&Ai("0x1e0")!==e)return!0;if((-1===n[Ai("0x18")](Ai("0x1d5"))&&-1===n[Ai("0x18")](Ai("0x1d8"))&&-1===n[Ai("0x18")](Ai("0x1dd")))!=("Other"===e))return!0}return r[Ai("0x18")](Ai("0x1d5"))>=0&&Ai("0x1d6")!==e&&Ai("0x1df")!==e||(r.indexOf(Ai("0x1d8"))>=0||r[Ai("0x18")]("android")>=0||r.indexOf(Ai("0x1e1"))>=0)&&Ai("0x1da")!==e&&"Android"!==e||(r[Ai("0x18")](Ai("0x1dd"))>=0||r[Ai("0x18")](Ai("0x1dc"))>=0||r[Ai("0x18")](Ai("0x1e2"))>=0||r.indexOf(Ai("0x1db"))>=0)&&Ai("0x1e3")!==e&&Ai("0x1e0")!==e||(r[Ai("0x18")]("win")<0&&r[Ai("0x18")](Ai("0x1d8"))<0&&r[Ai("0x18")](Ai("0x1dd"))<0&&r[Ai("0x18")](Ai("0x1db"))<0&&r[Ai("0x18")](Ai("0x1dc"))<0)!=(Ai("0x1de")===e)||void 0===navigator[Ai("0x11e")]&&Ai("0x1d6")!==e&&"Windows Phone"!==e}},{key:re,value:function(){var e,t=navigator[Ai("0x3a")][Ai("0x1ca")](),n=navigator[Ai("0x1e4")];if(e=t[Ai("0x18")]("firefox")>=0?Ai("0x25"):t[Ai("0x18")]("opera")>=0||t[Ai("0x18")](Ai("0x1e5"))>=0?Ai("0x1e6"):t[Ai("0x18")](Ai("0x1e7"))>=0?"Chrome":t[Ai("0x18")](Ai("0x1e8"))>=0?Ai("0x96"):t[Ai("0x18")](Ai("0x1e9"))>=0?Ai("0x1ea"):Ai("0x1de"),(Ai("0x90")===e||"Safari"===e||Ai("0x1e6")===e)&&Ai("0x1eb")!==n)return!0;var r,i=eval[Ai("0xb")]()[Ai("0x7")];if(37===i&&Ai("0x96")!==e&&"Firefox"!==e&&Ai("0x1de")!==e)return!0;if(39===i&&"Internet Explorer"!==e&&Ai("0x1de")!==e)return!0;if(33===i&&Ai("0x90")!==e&&Ai("0x1e6")!==e&&Ai("0x1de")!==e)return!0;try{throw"a"}catch(e){try{e[Ai("0x1ec")](),r=!0}catch(e){r=!1}}return r&&Ai("0x25")!==e&&"Other"!==e}},{key:ie,value:function(){var e=document[Ai("0xf7")](Ai("0x152"));return!(!e.getContext||!e[Ai("0x154")]("2d"))}},{key:"isWebGlSupported",value:function(){if(!de[Ai("0x1ed")]())return!1;var e=de.getWebglCanvas();return!!window.WebGLRenderingContext&&!!e}},{key:ae,value:function(){return Ai("0x1ee")===navigator[Ai("0x81")]||!(Ai("0x1ef")!==navigator[Ai("0x81")]||!/Trident/[Ai("0x99")](navigator.userAgent))}},{key:oe,value:function(){return void 0!==window[Ai("0x1f0")]}},{key:se,value:function(){return window[Ai("0x1f0")][Ai("0x1f1")](Ai("0x1f2"))}},{key:ce,value:function(e){var t=document.createElement(Ai("0xf8"));t.setAttribute("id",e[Ai("0xf2")][Ai("0x1f4")]),document.body.appendChild(t)}},{key:"loadSwfAndDetectFonts",value:function(e,t){window.___fp_swf_loaded=function(t){e(t)};var n=t[Ai("0xf2")].swfContainerId;de[Ai("0x1f3")](),window[Ai("0x1f0")][Ai("0x1f5")](t[Ai("0xf2")].swfPath,n,"1","1",Ai("0x1f2"),!1,{onReady:"___fp_swf_loaded"},{allowScriptAccess:Ai("0x1f6"),menu:Ai("0x1f7")},{})}},{key:ue,value:function(){var e=document[Ai("0xf7")](Ai("0x152")),t=null;try{t=e.getContext(Ai("0x18c"))||e[Ai("0x154")]("experimental-webgl")}catch(e){}return t||(t=null),t}}]),de}(Ai("0xc"),Ai("0x10"),Ai("0x12"),Ai("0x21"),Ai("0x2d"),Ai("0x2e"),Ai("0x37"),Ai("0x53"),Ai("0x24"),Ai("0x57"),Ai("0x5a"),Ai("0x5d"),Ai("0x5f"),Ai("0x62"),Ai("0x6b"),Ai("0x6f"),Ai("0x73"),Ai("0x75"),Ai("0x77"),Ai("0x78"),Ai("0x7b"),Ai("0x7d"),Ai("0x7f"),Ai("0x80"),Ai("0x82"),Ai("0x84"),Ai("0x87"),Ai("0x89"),Ai("0x8a"),Ai("0x8b"),Ai("0x8c"),Ai("0x8e"),Ai("0x8f"),Ai("0xa7"),Ai("0xa9"),Ai("0xb2"),Ai("0xb7"),Ai("0xbd"),Ai("0x115"),Ai("0x119"),Ai("0x11f"),Ai("0x138"),Ai("0x143"),Ai("0x145"),Ai("0x74"),Ai("0x76"),Ai("0x147"),Ai("0x7e"),Ai("0x14a"),Ai("0x144"),Ai("0xa6"),Ai("0x18f"),Ai("0xb3"),Ai("0x1d0"),Ai("0xb4"),Ai("0xb5"),Ai("0xb6"),Ai("0x1ed"),Ai("0x11a"),Ai("0xb8"),Ai("0xb9"),Ai("0x1f3"),Ai("0x171")),n={getItem:function(e){var t=this[Ai("0x220")]().match(this[Ai("0x221")](e));return t?t[1][Ai("0xa3")](/^"(.*)"$/,"$1"):""},getBcookie:function(){try{for(var e=document.cookie.split(/\s*;\s*/),t=0;t1&&Ai("0x222")===n[0]){var r=n[n[Ai("0x7")]-1];return r[Ai("0x223")](2,r[Ai("0x7")]-1)}}}catch(e){return""}return""},setItem:function(e,t,n){var r=arguments[Ai("0x7")]>3&&void 0!==arguments[3]?arguments[3]:this[Ai("0x224")]();if(n){var i=[e+"="+t+Ai("0x225")+(arguments[Ai("0x7")]>4&&void 0!==arguments[4]?arguments[4]:"/")+"; secure=true"];Ai("0x226")==He(r)&&r.length>0&&i[Ai("0x11")](Ai("0x227")+r),i.push(Ai("0x228")+(n instanceof Date?n[Ai("0x229")]():n)),document[Ai("0x22a")]=i.join("; ")}},deleteItem:function(e){this.setItem(e,"",new Date(0))},_cookieRegEx:function(e){return new RegExp(e+Ai("0x22b"))},getCookieString:function(){return document[Ai("0x22a")]},getDomain:function(){return window[Ai("0x1fb")]?window.location.hostname:""}},r=Ai("0x22c"),i=Ai("0x22d"),a=Ai("0x22e");function o(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments[2],r=n?n[Ai("0x22f")]("#"+e):document.getElementById(e);if(r){var i=r.firstChild[Ai("0x230")];if(t&&r.parentNode[Ai("0x112")](r),i)try{return JSON.parse(i)}catch(e){return}}}function s(e,t,n){var r=new XMLHttpRequest,i=Ai(n?"0x231":"0x232");i+=String(t),r[Ai("0x9b")](Ai("0x233"),i),r[Ai("0x234")]("Content-Type",Ai("0x235")),r[Ai("0x236")](e)}function c(e){var t=document[Ai("0x237")](e);return void 0!==t&&t[Ai("0x7")]>=1}var u=function(e,t,n,r,i,a,s,c){function u(){Ke(this,u)}return qe(u,null,[{key:Ai("0x238"),value:function(e){for(var t=new ArrayBuffer(e[Ai("0x7")]),n=new Uint8Array(t),r=0,i=e[Ai("0x7")];r>e/4)[Ai("0xb")](16)}))}},{key:"generateSha256HashOrDefault",value:function(e){var t=(new TextEncoder)[Ai("0x246")](e);return crypto.subtle.digest(Ai("0x241"),t)[Ai("0x1f")]((function(e){return Array[Ai("0x25a")](new Uint8Array(e)).map((function(e){return("00"+e[Ai("0xb")](16))[Ai("0x9")](-2)})).join("")}))[Ai("0x36")]((function(){return""}))}}]),u}(),l=function(){var e={compressToBase64:function(t){if(null==t)return"";var n=e[Ai("0x25b")](t,6,(function(e){return Ai("0x25c")[Ai("0x25d")](e)}));switch(n[Ai("0x7")]%4){default:return n;case 1:return n+Ai("0x25e");case 2:return n+"==";case 3:return n+"="}},_compress:function(e,t,n){if(null==e)return"";var r,i,a,o={},s={},c="",u="",l="",d=2,h=3,f=2,p=[],v=0,g=0;for(a=0;a>=1}else{for(i=1,r=0;r>=1}0==--d&&(d=Math[Ai("0x260")](2,f),f++),delete s[l]}else for(i=o[l],r=0;r>=1;0==--d&&(d=Math[Ai("0x260")](2,f),f++),o[u]=h++,l=String(c)}if(""!==l){if(Object[Ai("0xd")][Ai("0xf")][Ai("0x25f")](s,l)){if(l[Ai("0x8")](0)<256){for(r=0;r>=1}else{for(i=1,r=0;r>=1}0==--d&&(d=Math.pow(2,f),f++),delete s[l]}else for(i=o[l],r=0;r>=1;0==--d&&(d=Math[Ai("0x260")](2,f),f++)}for(i=2,r=0;r>=1;for(;;){if(v<<=1,g==t-1){p.push(n(v));break}g++}return p[Ai("0xa2")]("")}};return e}(),d={apfcTypes:1,collectionType:2,trackingId:3},h={protocol:1,hostname:2,port:3,origin:4,host:5,href:6,hash:7,pathname:8},f={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},x={Orientation:1,Enabled:2},E={charging:1,dischargingTime:2,level:3,chargingTime:4},b={touchStart:1,touchEvent:2,maxTouchPoints:3},w={"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},T={ANGLE_instanced_arrays:67,EXT_blend_minmax:68,EXT_clip_control:69,EXT_color_buffer_float:70,EXT_color_buffer_half_float:71,EXT_conservative_depth:72,EXT_depth_clamp:73,EXT_disjoint_timer_query:74,EXT_disjoint_timer_query_webgl2:75,EXT_float_blend:76,EXT_frag_depth:77,EXT_polygon_offset_clamp:78,EXT_render_snorm:79,EXT_shader_texture_lod:80,EXT_texture_compression_bptc:81,EXT_texture_compression_rgtc:82,EXT_texture_filter_anisotropic:83,EXT_texture_mirror_clamp_to_edge:84,EXT_texture_norm16:85,EXT_sRGB:86,KHR_parallel_shader_compile:87,NV_shader_noperspective_interpolation:88,OES_draw_buffers_indexed:89,OES_element_index_uint:90,OES_fbo_render_mipmap:91,OES_sample_variables:92,OES_shader_multisample_interpolation:93,OVR_multiview2:94,OES_standard_derivatives:95,OES_texture_float:96,OES_texture_float_linear:97,OES_texture_half_float:98,OES_texture_half_float_linear:99,OES_vertex_array_object:100,WEBGL_blend_func_extended:101,WEBGL_clip_cull_distance:102,WEBGL_color_buffer_float:103,WEBGL_compressed_texture_astc:104,WEBGL_compressed_texture_etc:105,WEBGL_compressed_texture_etc1:106,WEBGL_compressed_texture_pvrtc:107,WEBGL_compressed_texture_s3tc:108,WEBGL_compressed_texture_s3tc_srgb:109,WEBGL_debug_renderer_info:110,WEBGL_debug_shaders:111,WEBGL_depth_texture:112,WEBGL_draw_buffers:113,WEBGL_lose_context:114,WEBGL_multi_draw:115,WEBGL_polygon_mode:116,WEBGL_provoking_vertex:117,WEBGL_render_shared_exponent:118,WEBGL_stencil_texturing:119},C={"American Typewriter":1,"Andale Mono":2,Arial:3,"Arial Black":4,"Arial Hebrew":5,"Arial Narrow":6,"Arial Rounded MT Bold":7,"Arial Unicode MS":8,Avenir:9,"Avenir Next":10,"Avenir Next Condensed":11,Bahnschrift:12,Baskerville:13,"Big Caslon":14,"Bodoni 72":15,"Bodoni 72 Oldstyle":16,"Bodoni 72 Smallcaps":17,"Bradley Hand":18,"Brush Script MT":19,Calibri:20,Cambria:21,"Cambria Math":22,Candara:23,Chalkboard:24,"Chalkboard SE":25,Chalkduster:26,Charter:27,Cochin:28,"Comic Sans MS":29,Consolas:30,Constantia:31,Corbel:32,Copperplate:33,Courier:34,"Courier New":35,Didot:36,"DIN Alternate":37,"DIN Condensed":38,Ebrima:39,"Franklin Gothic Medium":40,Futura:41,Gabriola:42,Gadugi:43,Geneva:44,Georgia:45,"Gill Sans":46,Helvetica:47,"Helvetica Neue":48,Herculanum:49,"Hoefler Text":50,"HoloLens MDL2 Assets":51,Impact:52,"Ink Free":53,"Javanese Text":54,"Leelawadee UI":55,"Lucida Console":56,"LUCIDA GRANDE":57,"Lucida Grande":58,"Lucida Sans Unicode":59,Luminari:60,"Malgun Gothic":61,"Marker Felt":62,Marlett:63,Menlo:64,"Microsoft Himalaya":65,"Microsoft JhengHei":66,"Microsoft New Tai Lue":67,"Microsoft PhagsPa":68,"Microsoft Sans Serif":69,"Microsoft Tai Le":70,"Microsoft YaHei":71,"Microsoft Yi Baiti":72,"MingLiU-ExtB":73,Monaco:74,"Mongolian Baiti":75,"MS Gothic":76,"MV Boli":77,"Myanmar Text":78,"Nirmala UI":79,Noteworthy:80,Optima:81,Palatino:82,"Palatino Linotype":83,Papyrus:84,Phosphate:85,Rockwell:86,"Savoye LET":87,"Segoe MDL2 Assets":88,"Segoe Print":89,"Segoe Script":90,"Segoe UI":91,"Segoe UI Historic":92,"Segoe UI Emoji":93,"Segoe UI Symbol":94,SignPainter:95,SimSun:96,Sitka:97,Skia:98,"Snell Roundhand":99,Sylfaen:100,Symbol:101,Tahoma:102,Times:103,"Times New Roman":104,Trattatello:105,"Trebuchet MS":106,Verdana:107,Webdings:108,Wingdings:109,"Wingdings 2":110,"Wingdings 3":111,"Yu Gothic":112,Zapfino:113},k={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 S(e){var t={};return function(e){var t=e[Ai("0x18c")],n={};if(void 0!==t&&void 0!==t[Ai("0x190")]){for(var r=t[Ai("0x190")],i=[],a=0;at&&n[Ai("0x27c")](Ai("0x277"))}},{key:Ai("0x27f"),value:function(e){if("number"==typeof e[Ai("0x275")]&&e.samplingTimeWindowInMillis>0){var t=Date[Ai("0x86")](),r=new Date;r.setTime(t+e[Ai("0x275")]),n[Ai("0x98")](Ai("0x277"),t,r)}}},{key:Ai("0x28c"),value:function(e,n){if(null!=n||null!=o(Ai("0x28d"))){this[Ai("0x28f")](e,n);var r=this[Ai("0x290")],i=this[Ai("0x291")],a=this[Ai("0x292")]();return(new t)[Ai("0x210")]((function(t,o){t.reqid=r,t[Ai("0x291")]=i,t[Ai("0x293")]=o,u[Ai("0x256")](JSON[Ai("0x217")](t),"apfcDfPK","apfcDfPKV",n,a)[Ai("0x1f")]((function(t){globalThis.apfcDf=t,!0===o&&s(JSON[Ai("0x217")](t),e.telemetryCollectPath,a)}))}),e)}globalThis.triggerApfc=this[Ai("0x28e")]}},{key:"intializeGlobalIntegration",value:function(e,i,a){var o=this.isProd();return(new t).getFeatures((function(t,c){var d;!0===c&&(m[Ai("0xd")][Ai("0x294")](t,a),!0===a.isSyncEnabledWithHeaders&&(globalThis[Ai("0x295")]=(d=S(t),l[Ai("0x296")](d))),u[Ai("0x251")](JSON[Ai("0x217")](t),Ai("0x28d"),Ai("0x297"))[Ai("0x1f")]((function(t){if(globalThis.apfcDf=t,!0===a.isSyncEnabledWithHeaders||!0===a[Ai("0x298")]){var c=function(e){var t={};t[btoa("DNA_ENCRYPTED")]=e;var r={};return r[Ai("0x299")]=t,r.browserId=n[Ai("0x29a")](),r}(t);s(JSON[Ai("0x217")](c),e.gloablIntegrationDataCollectionPath,o)}i(r,JSON.stringify(t))})),globalThis[Ai("0x283")]=!0)}),e)}},{key:Ai("0x28b"),value:function(e,t){var r=n[Ai("0x29a")](),i=this.isProd()?Ai("0x29b"):Ai("0x29c");try{if(RegExp("^[\\w-]*$")[Ai("0x99")](r)){var o=Ai("0x29d")+r+"&instanceId="+i,s=document[Ai("0xf7")]("script");s[Ai("0x29e")](Ai("0x29f"),o),s[Ai("0x29e")]("id",Ai("0x2a0")),s[Ai("0x274")](Ai("0x26f"),(function(){return window.dfp[Ai("0x2a1")](document)})),document[Ai("0x2a2")]("head")[0][Ai("0x111")](s);var c={sessionId:r,instanceId:i};m[Ai("0xd")][Ai("0x294")](c,t),e(a,JSON[Ai("0x217")](c))}else{var u={error:"Invalid session_id: "+r};e(a,JSON.stringify(u))}}catch(t){var l={error:t};e(a,JSON.stringify(l))}globalThis[Ai("0x28a")]=!0}},{key:Ai("0x288"),value:function(e,t){var r=t.treeId,a=Date.now(),o=this.isProd()?Ai("0x2a3"):Ai("0x2a4"),s=n[Ai("0x29a")](),c=Ai("0x2a5")+a+"&r_id="+encodeURIComponent(r)+Ai("0x2a6")+o+Ai("0x2a7");u[Ai("0x2a8")](s)[Ai("0x1f")]((function(n){""!==(s=n)&&(c+="&d_id="+s);try{var u=document.createElement(Ai("0x2a9"));u.setAttribute("id",Ai("0x2aa")),u[Ai("0x29e")](Ai("0x29f"),c),u[Ai("0x29e")]("sandbox",Ai("0x2ab")),u[Ai("0x29e")](Ai("0x2ac"),Ai("0x2ad")),u.style.height=Ai("0x2ae"),u.style[Ai("0x69")]="0px",u[Ai("0xf9")][Ai("0x2af")]=Ai("0x106"),u[Ai("0xf9")][Ai("0xfa")]=Ai("0xfb"),u[Ai("0xf9")].left=Ai("0xfd"),document[Ai("0x79")][Ai("0x111")](u);var l={app_id:o,ts:a,d_id:s,r_id:r,uc:Ai("0x2b0")};m[Ai("0xd")][Ai("0x294")](l,t),e(i,JSON.stringify(l))}catch(t){var d={error:t};e(i,JSON[Ai("0x217")](d))}})),globalThis[Ai("0x287")]=!0}}]),m}();_[Ai("0xd")][Ai("0x28e")]=function(e){globalThis[Ai("0x2b1")]=null,new _(e)},_[Ai("0xd")][Ai("0x2b2")]=function(e,t){globalThis.triggerDnaApfcEvent=null,new _({globalIntegration:Ai("0x26b")},e,t)},_[Ai("0xd")][Ai("0x2b3")]=function(e,t){if(void 0!==t&&void 0!==e){var n=_[Ai("0xd")][Ai("0x2b4")]();!0===t[Ai("0x2b5")]&&null===n||(t[Ai("0x280")]=n,null!==n&&(t[Ai("0x278")]=!0),_[Ai("0xd")][Ai("0x2b2")](e,t))}},_[Ai("0xd")].extractDataCookie=function(){var e=n[Ai("0x276")](Ai("0x27d"));if(!e||""===e)return null;var t=(e=atob(e))[Ai("0x17")](Ai("0x2b6"));if(t[Ai("0x7")]<5)return null;var r={};return r[Ai("0x2b7")]=t[0],r[Ai("0x2b8")]=t[1],r[Ai("0x2b9")]=t[2],r.collectionType=t[3],r.apfcTypes=t[4][Ai("0x17")](","),r},_[Ai("0xd")][Ai("0x294")]=function(e,t){Ai("0x2ba")==He(e)&&Ai("0x2ba")==He(t)&&(e[Ai("0x263")]=t.fpDataCookie)},_[Ai("0xd")].isProd=function(){var e=location&&location.host;return e&&e[Ai("0x18")](".linkedin.com")>-1&&!e.startsWith(Ai("0x2bb"))},_[Ai("0xd")][Ai("0x2bc")]=function(e){return e&&0===Object[Ai("0x1b")](e).length},_[Ai("0xd")].getUrlFromNoscriptBeacon=function(){var e=[];return Fe(document[Ai("0x237")](Ai("0x2bd")))[Ai("0xe")]((function(t){Fe(t[Ai("0x2a2")](Ai("0x2be")))[Ai("0xe")]((function(t){var n=t.innerHTML;if(n){var r=(new DOMParser)[Ai("0x2bf")](n,Ai("0x2c0"));r&&Fe(r.getElementsByClassName("bc")).forEach((function(t){e[Ai("0x11")]({src:t[Ai("0x2c1")](Ai("0x29f")),style:t[Ai("0x2c1")](Ai("0xf9")),class:t.getAttribute(Ai("0x2c2")),width:t[Ai("0x2c1")](Ai("0x69")),height:t[Ai("0x2c1")](Ai("0x6a"))})}))}}))})),0===e[Ai("0x7")]?null:e[0]},_[Ai("0xd")][Ai("0x28f")]=function(e,t){if(null!=e){var n,r,i="bc",a="display:none;",o="1",s="1",c=e[Ai("0x2c3")];if(this.reqid=null,this[Ai("0x291")]=null,null!==(n=this.getUrlFromNoscriptBeacon())){i=n[Ai("0x2c2")],a=n.style,o=n[Ai("0x69")],s=n[Ai("0x6a")];var l=new URL(n.src);c=l[Ai("0xb1")]+"//"+l[Ai("0xab")]+l[Ai("0xaf")],this[Ai("0x290")]=l[Ai("0x2c4")][Ai("0x2c5")](Ai("0x290")),this[Ai("0x291")]=l[Ai("0x2c4")][Ai("0x2c5")](Ai("0x291"))}else if(void 0!==(r=function(e){var t=arguments[Ai("0x7")]>1&&void 0!==arguments[1]&&arguments[1],n=arguments[2],r=n?n[Ai("0x22f")]("#"+e):document[Ai("0x2c6")](e);if(r){var i=r.firstChild.nodeValue;if(t&&r.parentNode[Ai("0x112")](r),i)try{var a=i;return"'"!==a[Ai("0x25d")](0)&&'"'!==a[Ai("0x25d")](0)||(a=a[Ai("0x223")](1,a.length-1)),JSON.parse(a)}catch(e){return}}}(Ai("0x2c7"))))this[Ai("0x290")]=void 0===r[Ai("0x290")]?null:r.reqid,this[Ai("0x291")]=r[Ai("0x291")];else{if(void 0===t)return;this[Ai("0x291")]=t[Ai("0x291")]}this.isProd()||(c=c.replace(/\.linkedin\.com/,Ai("0x2c8"))),null===this[Ai("0x290")]&&(this[Ai("0x290")]=u[Ai("0x259")]());var d=c+"?"+new URLSearchParams({reqid:this[Ai("0x290")],pageInstance:this[Ai("0x291")],js:Ai("0x26b")}).toString(),h=document[Ai("0x237")](Ai("0x2bd"))[0];null==h&&((h=document[Ai("0xf7")]("div")).setAttribute("id",this[Ai("0x290")]),document[Ai("0x79")][Ai("0x111")](h));var f=document[Ai("0xf7")]("img");f[Ai("0x29f")]=d,f[Ai("0xf9")]=a,f[Ai("0x1ce")]=i,f.width=o,f[Ai("0x6a")]=s,h[Ai("0x111")](f)}},Ai("0x2c9")!=("undefined"==typeof globalThis?"undefined":He(globalThis))&&Ai("0x2c9")!=("undefined"==typeof document?"undefined":He(document))&&Ai("0x2c9")!=("undefined"==typeof window?"undefined":He(window))&&(globalThis[Ai("0x2ca")]=_[Ai("0xd")][Ai("0x2b2")],globalThis[Ai("0x2cb")]=_[Ai("0xd")][Ai("0x2b3")],new _)}();var Ri=function(){function e(){Ke(this,e)}return qe(e,null,[{key:"collectFeatures",value:function(e,t){try{"undefined"!=typeof globalThis&&"undefined"!=typeof document&&"undefined"!=typeof window&&"undefined"!==globalThis.triggerDnaApfcEventOnDemand&&globalThis.triggerDnaApfcEventOnDemand(t,e)}catch(e){}}}]),e}(),Ni=function(){function e(t,n,r,i,a,o,s,c,u,l,d){Ke(this,e),Ve(this,"hostApis",void 0),Ve(this,"statics",void 0),Ve(this,"options",void 0),Ve(this,"allowTimingOrigin",void 0),Ve(this,"fireCustomMeasureEvent",void 0),Ve(this,"fireResourceLoadEvent",void 0),Ve(this,"isTracerEnabled",void 0),Ve(this,"responseRleCache",void 0),Ve(this,"fireApfcEvent",void 0),Ve(this,"abuseDeviceSignalCollectionConfig",void 0),Ve(this,"trackingEndpoint",void 0),Ve(this,"collectResourceTimings",void 0),Ve(this,"collectCdnData",void 0),Ve(this,"perfObserver",void 0),Ve(this,"renderTimings",new Map),Ve(this,"urlToTreeId",new Map),Ve(this,"cdnDataProvider",void 0),Ve(this,"observables",new Qr),Ve(this,"trackingEndpointPattern",void 0),this.hostApis=t,this.statics=n,this.options=r,this.allowTimingOrigin=i,this.fireCustomMeasureEvent=a,this.fireResourceLoadEvent=o,this.isTracerEnabled=s,this.responseRleCache=c,this.fireApfcEvent=u,this.abuseDeviceSignalCollectionConfig=l,this.trackingEndpoint=d,this.collectResourceTimings=r["enable-rs-timing"],this.collectCdnData=r["enable-cdn-tracking"],this.collectCdnData&&(this.cdnDataProvider=new Ii(t)),this.trackingEndpointPattern=function(e){if(!e)return"/li/track";try{return new URL(e).pathname}catch(t){return e}}(this.trackingEndpoint)}return qe(e,[{key:"recordTreeId",value:function(e,t){this.collectResourceTimings&&this.urlToTreeId.set(function(e,t){return(yi=yi||t.createElement("a")).href=e,yi.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:Ei(this.hostApis.performance,this.allowTimingOrigin)})}},{key:"recordRenderEnd",value:function(e,t,n){var r=this.renderTimings.get(e);if(r&&(r.renderEnd=r.renderEnd||Ei(this.hostApis.performance,this.allowTimingOrigin),t))return n?this.collectViewLoadEventData(r,n):void Xn("ViewLoadEvent",zr)}},{key:"collectViewLoadEventData",value:function(e,t){var n=e.renderName,r=e.renderEnd,i=void 0===r?-1:r,a=e.renderStart,o=void 0===a?-1:a,s=[];return s.push({viewProgressType:"RENDER_START",timestamp:o}),s.push({viewProgressType:"RENDER_END",timestamp:i}),{parentPageLoadId:t,viewHierarchy:[n],viewProgressStates:s}}},{key:"startObserving",value:function(){var e=this.hostApis,t=e.PerformanceObserver,n=e.performance;this.stopObserving(),t?this.setupPerformanceObserver(t,n.timeOrigin):this.collectResourceTimings&&this.emulateResourceTimingObserver(n),this.collectResourceTimings&&this.processNewResourceTimings()}},{key:"stopObserving",value:function(){var e;null===(e=this.perfObserver)||void 0===e||e.disconnect(),this.reset()}},{key:"collect",value:function(e){var t=this,n=e.isInitial,r=e.immediate,i=this.collectSynchronousData(n);if(r)return i;var a=this.collectAsynchronousData();return"then"in a?a.then((function(e){return(0,t.hostApis.assign)(i,e),i})):i}},{key:"collectPageLoadStartData",value:function(e){var t=e.isInitial,n=e.rumKey,r=Object.create(null);r.pageKey=n,r.pageLoadType=t?"INITIAL_LOAD":"SUBSEQUENT_LOAD",r.networkInformationMetrics=this.snapshot.networkInformationMetrics;var i=this.statics,a=i.webUIFramework,o=i.timeSource,s=i.isSinglePageApp,c=i.appRenderMode,u=i.isAppRenderFailed,l=i.isFromServiceWorker,d=i.treeId;return r.treeId=d,r.browserPageLoadStartContext={webUIFramework:a,timeSource:o,isSinglePageApp:s,appRenderMode:c,isAppRenderFailed:u,isFromServiceWorker:l},r}},{key:"collectPageLoadEndData",value:function(e){var t=Object.create(null),n=Object.create(null);t.cdnData=[],t.browserPageLoadEndContext={},t.navigationTiming=Object.create(null);var r=e.isInitial,i=e.immediate,a=this.hostApis.assign;if(r){var o=Oi(this.hostApis.performance),s=o.htmlMetrics,c=o.redirectCount,u=o.navigationType,l=o.workerStart;s&&(t.browserPageLoadEndContext.htmlMetrics=Object.create(null),a(t.browserPageLoadEndContext.htmlMetrics,s)),Object.prototype.hasOwnProperty.call(o,"redirectCount")&&(n.redirectCount=c),Object.prototype.hasOwnProperty.call(o,"navigationType")&&(n.navigationType=u),n.workerStart=null!=l?l:0,Vr.forEach((function(e){Object.prototype.hasOwnProperty.call(o,e)&&(n[e]=o[e])})),a(t.navigationTiming,n)}if(!i){var d=this.collectAsynchronousData();if("then"in d)return d.then((function(e){return a(t.cdnData,e.cdnData),t}))}var h=this.collectAsynchronousData(!0);return a(t.cdnData,h.cdnData),t}},{key:"collectResourceLoadEvent",value:function(e,t){var n=e.name,r=e.transferSize,i=e.initiatorType,a=e.nextHopProtocol,o=e.encodedBodySize,s=e.decodedBodySize,c=e.requestStart,u={};u.resourceKey=n,u.isNetwork=!!r&&0!==r,u.loadType=i||"unknown",u.timeOrigin=t;var l=[];Object.keys(jr).forEach((function(t){var n;t in Mr&&void 0!==e[t]&&l.push({resourceProgressType:jr[t],duration:null!==(n=e[t])&&void 0!==n?n:-1})})),u.resourceProgressStates=l;var d={},h=Gr[a];d.nextHopProtocol=null!=h?h:"UNKNOWN",d.transferSize=r,d.encodedBodySize=o,d.decodedBodySize=s,u.resourceNetworkContext=d,u.requestStart=c;try{var f,p,v=new URL(n),g=v.pathname+v.search+v.hash;return null===(f=this.responseRleCache)||void 0===f||f.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),Xn("ResourceLoadEvent",e)):Xn("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=Ti(this.hostApis.performance,this.options,!0,this.fireCustomMeasureEvent),this.collectResourceTimings&&this.processNewResourceTimings()),this.observables.attachTreeIds(this.urlToTreeId),this.urlToTreeId.clear(),n(i,this.observables.getData(),this.snapshot,this.statics),e&&n(i,Oi(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?Vn(i,Promise).then((function(){return n})):n}},{key:"triggerDeviceSignalCollection",value:function(e){var t=e.onlyTriggerOnDemandFlow;try{var n=this.abuseDeviceSignalCollectionConfig||{},r=n.isDnaIntegrationLixEnabled,i=n.isHumanIntegrationLixEnabled,a=n.isDfpIntegrationLixEnabled,o=n.samplingTimeWindowInMillis,s=n.isOnDemandFingerprintingEnabled,c=n.isSyncFingerprintingWithHeadersLixEnabled,u=n.isSyncFingerprintingWithCbLixEnabled;if(i||a||r||c||u){var l,d,h={treeId:null!==(l=null===(d=this.statics.treeId)||void 0===d?void 0:d.toString())&&void 0!==l?l:"",humanIntegrationEnabled:i,dfpIntegrationEnabled:a,dnaIntegrationEnabled:r,samplingTimeWindowInMillis:o,onlyOnDemandFlow:t,isSyncEnabledWithHeaders:c,isSyncEnabledWithCb:u};(!t||t&&s||c||u)&&Ri.collectFeatures(h,this.fireApfcEvent)}}catch(e){}}},{key:"setupPerformanceObserver",value:function(e,t){var n=this;this.perfObserver=new e((function(e){var r=(n.abuseDeviceSignalCollectionConfig||{}).disablePerfMarkerOptimization;r&&n.triggerDeviceSignalCollection({onlyTriggerOnDemandFlow:!1}),e.getEntries().forEach((function(e){var i=e.entryType,a=e.name,o=e.startTime,s=e.duration;"resource"===i?n.processSingleResourceTiming(e,t):"mark"===i?(n.observables.userTimingEntries.push({entryType:"MARK",name:a,startTime:o,duration:s}),n.fireCustomMeasureEvent({measurementName:a,measurementType:"MARK",measureProgressStates:[{measureProgressName:a,timestamp:o}]}),"mark_meaningful_paint_end"!==a||r||n.triggerDeviceSignalCollection({onlyTriggerOnDemandFlow:!1})):"measure"===i?(n.observables.userTimingEntries.push({entryType:"MEASURE",name:a,startTime:o,duration:s}),n.fireCustomMeasureEvent({measurementName:a,measurementType:"MEASURE",measureProgressStates:[{measureProgressName:a,timestamp:o,duration:s}]})):"longtask"===i&&(n.observables.longTasks.push({duration:s,name:a,startTime:o}),n.fireCustomMeasureEvent({measurementName:a,measurementType:"LONG_TASK",measureProgressStates:[{measureProgressName:a,timestamp:o,duration:s}]}))}))})),this.observables.userTimingEntries=Ti(this.hostApis.performance,this.options,!1,this.fireCustomMeasureEvent);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)if(this.options["enable-otel"])Sn.emit(Ar.INTERNAL_OTEL_RESOURCE,{resourceTiming:e});else{this.observables.resourceTimingEntries.push(e);var r=-1!==e.name.indexOf(this.trackingEndpointPattern);if(this.isTracerEnabled&&!r&&!function(e){for(var t=0,n=xi;t=0})),n=t.length>0?t[0]:{hostname:"",provider:"",httpVersion:"",ipVersion:""};return{static_domain:n.provider,http_version:n.httpVersion,ip_version:n.ipVersion}}},{key:"snapshot",get:function(){var e={detailedRenderTimingEntries:Ci(this.renderTimings),networkInformationMetrics:Li(this.hostApis.connection)};return this.renderTimings.clear(),e}}]),e}();function Li(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 Oi(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,Vr.forEach((function(e){e in r&&(t[e]=r[e])})),t.navigationType=i.type,t.redirectCount=i.redirectCount):t.navigationTimingApi=!1,t}var Pi=function(){function e(t,n,r){Ke(this,e),Ve(this,"featureName",void 0),Ve(this,"trackingCore",void 0),Ve(this,"rumConfig",void 0),Ve(this,"observing",!1),Ve(this,"basePageTreeId",void 0),Ve(this,"startPageInstance",void 0),Ve(this,"startMemory",void 0),Ve(this,"reportTimeouts",[]),this.featureName=t,this.trackingCore=n,this.rumConfig=r}return qe(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)||Hn(ze),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:bi(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}();Ve(Pi,"checkpoints",[1,3,10,30,90,180,300]);var Di,Mi,Fi,Ui,Bi,Hi=qe((function e(t,n,r){Ke(this,e),Ve(this,"webUIFramework",void 0),Ve(this,"timeSource",void 0),Ve(this,"isSinglePageApp",void 0),Ve(this,"appRenderMode",void 0),Ve(this,"isAppRenderFailed",void 0),Ve(this,"pageLoadMode","INITIAL"),Ve(this,"isSSL",void 0),Ve(this,"treeId",void 0),Ve(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})),Ki=function(){function e(t){Ke(this,e),Ve(this,"isPEMTracerEnabled",void 0),Ve(this,"responseContextMap",new Map),Ve(this,"resourceLoadEventsMap",new Map),this.isPEMTracerEnabled=t}return qe(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 Qn((function(e,t){return e.requestTime0&&n.heapsize()===t.heapsize()}},{key:"clear",value:function(){this.resourceLoadEventsMap.clear(),this.responseContextMap.clear()}},{key:"flushCache",value:function(){var e=this.responseContextMap.keys(),t=[];if(e){var n,r=Me(e);try{for(r.s();!(n=r.n()).done;){var i=n.value;t=[].concat(Fe(t),Fe(this.flushCacheByUrl(i)))}}catch(e){r.e(e)}finally{r.f()}}var a=this.resourceLoadEventsMap.keys();if(a){var o,s=Me(a);try{for(s.s();!(o=s.n()).done;){var c,u=o.value,l=null===(c=this.resourceLoadEventsMap.get(u))||void 0===c?void 0:c.heapClear();l&&(t=[].concat(Fe(t),Fe(l.map((function(e){e.requestStart;var t=Ae(e,Ee);return Jn(t)})))))}}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){e.requestStart;var t=Ae(e,be);return Jn(t)})))||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}(),Wi=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)}},qi=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){}},Vi=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)},ji=function(e){addEventListener("pageshow",(function(t){t.persisted&&e(t)}),!0)},Gi=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)))}},zi=-1,Xi=function(){return"hidden"===document.visibilityState?0:1/0},Ji=function(){Vi((function(e){var t=e.timeStamp;zi=t}),!0)},Qi=function(){return zi<0&&(zi=Xi(),Ji(),ji((function(){setTimeout((function(){zi=Xi(),Ji()}),0)}))),{get firstHiddenTime(){return zi}}},$i=!1,Yi=-1,Zi=function(e,t){$i||(function(e,t){var n,r=Qi(),i=Wi("FCP"),a=function(e){"first-contentful-paint"===e.name&&(s&&s.disconnect(),e.startTime-1&&e(t)},i=Wi("CLS",0),a=0,o=[],s=function(e){if(!e.hadRecentInput){var t=o[0],r=o[o.length-1];a&&e.startTime-r.startTime<1e3&&e.startTime-t.startTime<5e3?(a+=e.value,o.push(e)):(a=e.value,o=[e]),a>i.value&&(i.value=a,i.entries=o,n())}},c=qi("layout-shift",s);c&&(n=Gi(r,i,t),Vi((function(){c.takeRecords().map(s),n(!0)})),ji((function(){a=0,Yi=-1,i=Wi("CLS",0),n=Gi(r,i,t)})))},ea={passive:!0,capture:!0},ta=new Date,na=function(e,t){Di||(Di=t,Mi=e,Fi=new Date,aa(removeEventListener),ra())},ra=function(){if(Mi>=0&&Mi1e12?new Date:performance.now())-e.timeStamp;"pointerdown"==e.type?function(e,t){var n=function(){na(e,t),i()},r=function(){i()},i=function(){removeEventListener("pointerup",n,ea),removeEventListener("pointercancel",r,ea)};addEventListener("pointerup",n,ea),addEventListener("pointercancel",r,ea)}(t,e):na(t,e)}},aa=function(e){["mousedown","keydown","touchstart","pointerdown"].forEach((function(t){return e(t,ia,ea)}))},oa=function(e,t){var n,r=Qi(),i=Wi("FID"),a=function(e){e.startTime0&&(n=i[0])}return(null===(e=n)||void 0===e?void 0:e.name)||window.location.href}(),fa=!1,pa=new Set,va={LCP:"largest-contentful-paint",FID:"first-input",CLS:"layout-shift"};function ga(){var e=!0===window.__test__resetWebVitalsState;if(!fa||e){e&&(pa=new Set),ua.forEach(ma);var t=Symbol();Bi=t,[ca,oa,Zi].forEach((function(e){return e(ya.bind(null,t),!0)})),[ca,oa,Zi].forEach((function(e){return e(xa.bind(null,t))})),fa=!0}}function ma(e){da[e]={name:e,verboseName:la[e]||e,value:Wr,updateHistory:[]};var t=va[e];"undefined"!=typeof PerformanceObserver&&void 0!==PerformanceObserver.supportedEntryTypes&&"string"==typeof t&&PerformanceObserver.supportedEntryTypes.indexOf(t)>-1||(da[e].value=qr)}function ya(e,t){if(e===Bi){var n=da[t.name],r=bi();n&&(n.updateHistory.push({time:r,data:t}),n.value=t.value),pa.forEach((function(e){return e(t,r,!1)}))}}function xa(e,t){e===Bi&&pa.forEach((function(e){return e(t,bi(),!0)}))}var Ea,ba=function(){function e(t,n){var r=this;Ke(this,e),Ve(this,"basePageTreeId",void 0),Ve(this,"basePageKey",void 0),Ve(this,"observing",!1),Ve(this,"appContextMap",new Map),Ve(this,"rumConfig",void 0),Ve(this,"trackingCore",void 0),Ve(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 qe(e,[{key:"startObserving",value:function(){var e,t,n=this;ga(),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",ua.forEach((function(e){var t;(null===(t=da[e])||void 0===t?void 0:t.value)===qr&&n.reportMetric(e)})),t=this.onMetricUpdate,pa.add(t))}},{key:"stopObserving",value:function(){var e;this.observing=!1,e=this.onMetricUpdate,pa.delete(e)}},{key:"reportMetric",value:function(e){var t=da[e];if(t){var n={name:la[e]||e};"CLS"===e?n.doubleValue=t.value:n.longValue=Math.round(t.value);var r=function(e,t,n,r,i){var a={basePageTreeId:e,basePageKey:t,basePageUrl:ha},o=null;switch(n.name){case"LCP":o=function(e,t){var n;if(0===e.updateHistory.length)return null;var r=e.updateHistory[e.updateHistory.length-1],i=r.data.entries,a=i[i.length-1],o={pageKey:(null===(n=t.get(r.time))||void 0===n?void 0:n.pageKey)||"_unknown",element:wi(a.element),renderTime:Math.round(a.renderTime),loadTime:Math.round(a.loadTime),size:Math.round(a.size)};return a.url&&(o.url=a.url),o}(n,r);break;case"FID":o=function(e,t){var n;if(0===e.updateHistory.length)return null;var r=e.updateHistory[e.updateHistory.length-1],i=r.data.entries,a=i[i.length-1];return{pageKey:(null===(n=t.get(r.time))||void 0===n?void 0:n.pageKey)||"_unknown",processingStart:Math.round(a.processingStart),processingEnd:Math.round(a.processingEnd),target:wi(a.target)}}(n,r);break;case"CLS":o=function(e,t){if(0===e.updateHistory.length)return null;var n=e.updateHistory.map((function(e){return e.data.entries})).flat();if(0===n.length)return null;var r=n.reduce((function(e,t){return e&&e.value>t.value?e:t})),i=e.updateHistory.find((function(e){return e.data.entries.includes(r)})),a=null;r&&r.sources&&r.sources.length&&(a=r.sources.reduce((function(e,t){return e.node&&e.previousRect.width*e.previousRect.height>t.previousRect.width*t.previousRect.height?e:t})));var o,s=t.get(i.time);return a&&s?{shiftCount:n.length,"largestShift.value":r.value,"largestShift.hadRecentInput":r.hadRecentInput,"largestShift.largestSource.node":wi(null===(o=a)||void 0===o?void 0:o.node),"largestShift.pageKey":s.pageKey||"_unknown","largestShift.url":s.url,"largestShift.startTime":Math.round(r.startTime)}:null}(n,r)}if(o){var s={};return i(s,a,o),s}return a}(this.basePageTreeId,this.basePageKey,t,this.appContextMap,this.trackingCore.host.api.assign);n.metadata=function(e){var t={};return Object.keys(e).forEach((function(n){var r=e[n];t[n]="string"==typeof r?r:JSON.stringify(r)})),t}(r);var i={scope:{scopeType:"APPLICATION_INSTANCE",scopeKey:this.basePageTreeId},metrics:[n]};if(this.trackingCore.fireEvent({appId:this.rumConfig["app-id"],eventName:"ClientPerfMetricsEvent"},i),this.rumConfig["enable-otel"])if("LCP"===e){var a={value:n.longValue,metadata:r};Sn.emit(Ar.INTERNAL_OTEL_LARGEST_CONTENTFUL_PAINT,a)}else if("CLS"===e){var o={value:n.doubleValue,metadata:r};Sn.emit(Ar.INTERNAL_OTEL_CUMULATIVE_LAYOUT_SHIFT,o)}else if("FID"===e){var s={value:n.longValue,metadata:r};Sn.emit(Ar.INTERNAL_OTEL_FIRST_INPUT_DELAY,s)}}}}]),e}(),wa="x-li-uuid",Ta="x-li-pop",Ca="x-msedge-ref",ka="x-li-fabric",Sa="x-li-pem-resp-meta",Ia="content-type",_a="x-cache",Aa=function(){function e(t){Ke(this,e),Ve(this,"_callTreeId",void 0),Ve(this,"_fabric",void 0),Ve(this,"_msEdgeRef",void 0),Ve(this,"_pointOfPresenceId",void 0),Ve(this,"_responseMetadata",void 0),Ve(this,"_contentType",void 0),Ve(this,"_cdnCacheMetadata",void 0),Ve(this,"_downstreamAvailability",void 0);var n=new Map;null==t||t.forEach((function(e,t){n.set(t.toLowerCase(),e)})),this._callTreeId=n.get(wa)||null,this._pointOfPresenceId=n.get(Ta)||null,this._msEdgeRef=n.get(Ca)||null,this._fabric=n.get(ka)||null,this._responseMetadata=n.get(Sa)||null,this._contentType=n.get(Ia)||null,this._cdnCacheMetadata=n.get(_a)||null,this._downstreamAvailability=function(e){if(null==e)return 1;var t,n=Me(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 qe(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"}(Ea||(Ea={}));function Ra(e,t,n,r,i){var a=new Aa(r),o=function(e,t,n){if(t){if(429===t||999===t)return Ea.TOO_MANY_REQUESTS;if(e&&!e.hasAnyLinkedInHeaders()&&t&&t>=400&&t<600)return Ea.BLOCKED_BY_CLIENT_PROXY;if((r=t)>=400&&r<500)return Ea.CLIENT_ERROR;if(function(e){return e>=500&&e<600}(t))return function(e){if(e){if(e.fabric)return Ea.SERVER_ERROR;if(e.pointOfPresenceId)return Ea.TRAFFIC_LI_POP_TO_DC_ERROR;if(e.microsoftEdgeReference)return Ea.TRAFFIC_AFD_TO_LI_POP_ERROR}return Ea.SERVER_ERROR}(e);if(function(e,t){return!!(e>=200&&e<300&&t&&t.downstreamAvailability<1)}(t,e))return Ea.DOWNSTREAM_GRACEFUL_DEGRADATION;if(!n)return null}var r;if(n instanceof Error){if("AbortError"===n.name)return Ea.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 Ea.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 Ea.CLIENT_TIMEOUT;if(0===n.status&&"abort"===n.statusText)return Ea.CLIENT_ABORTED;if("readyState"in n&&0===n.readyState)return Ea.NETWORK_ERROR}return Ea.UNCLASSIFIED}(a,n,i),s=null;return o&&(s={errorType:o},o===Ea.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))})),Xn("resource-load-tracer",e instanceof Error||"string"==typeof e?e:JSON.stringify(e),Object.fromEntries(t||[]),r)}(i,r,t))),{cdnCache:a.cdnCacheMetadata||void 0,contentType:a.contentType||void 0,fabric:a.fabric||void 0,msEdgeReference:a.microsoftEdgeReference||void 0,pointOfPresenceId:a.pointOfPresenceId||void 0,resourceTreeId:a.callTreeId?a.callTreeId:void 0,responseStatusCode:n||void 0,networkResourceError:s||void 0,viewNames:t||[],requestTime:e,responseMetadata:a.responseMetadata||void 0}}var Na,La=function(){function e(t,n,r){var i,a,o,s,c,u,l,d,h,f,p,v,g,m,y,x,E,b,w,T,C,k,S,I,_,A,R,N,L,O=this;Ke(this,e),Ve(this,"core",void 0),Ve(this,"config",void 0),Ve(this,"collector",void 0),Ve(this,"boomerangStart",-1),Ve(this,"webVitalsObserver",void 0),Ve(this,"appMemoryObserver",void 0),Ve(this,"pageMemoryObserver",void 0),Ve(this,"liveTokens",new Set),Ve(this,"stateWM",new WeakMap),Ve(this,"activeToken",void 0),Ve(this,"isInitial",void 0),Ve(this,"shouldTrackCustomMeasureEvent",void 0),Ve(this,"pageLoadId",void 0),Ve(this,"initialResourcesEvents",[]),Ve(this,"initialCustomMeasureEvents",[]),Ve(this,"responseRleCache",void 0),Ve(this,"beforeHideHandlerBound",this.beforeHideHandler.bind(this)),Ve(this,"fireApfcEventBound",this.fireApfcEvent.bind(this)),Ve(this,"isTracerEnabled",void 0),Ve(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({},Kr),n);var P="enabled"===(null===(i=(a=r.host).__getLixTreatment)||void 0===i?void 0:i.call(a,"pemberly.tracking.time-origin-epoch-time")),D={isDnaIntegrationLixEnabled:"enabled"===(null===(o=(s=r.host).__getLixTreatment)||void 0===o?void 0:o.call(s,"pemberly.tracking.fireApfcEvent"))||"enabled"===(null===(c=r.host.abuseDeviceSignalCollectionConfig)||void 0===c?void 0:c.webviewDnaMemberLixTreatment)||"enabled"===(null===(u=r.host.abuseDeviceSignalCollectionConfig)||void 0===u?void 0:u.dnaMemberLixTreatment),isHumanIntegrationLixEnabled:"enabled"===(null===(l=(d=r.host).__getLixTreatment)||void 0===l?void 0:l.call(d,"pemberly.tracking.human.integration"))||"enabled"===(null===(h=r.host.abuseDeviceSignalCollectionConfig)||void 0===h?void 0:h.webviewHumanMemberLixTreatment)||"enabled"===(null===(f=r.host.abuseDeviceSignalCollectionConfig)||void 0===f?void 0:f.humanMemberLixTreatment),isDfpIntegrationLixEnabled:"enabled"===(null===(p=(v=r.host).__getLixTreatment)||void 0===p?void 0:p.call(v,"pemberly.tracking.dfp.integration"))||"enabled"===(null===(g=r.host.abuseDeviceSignalCollectionConfig)||void 0===g?void 0:g.webviewDfpMemberLixTreatment)||"enabled"===(null===(m=r.host.abuseDeviceSignalCollectionConfig)||void 0===m?void 0:m.dfpMemberLixTreatment),disablePerfMarkerOptimization:r.host.abuseDeviceSignalCollectionConfig&&r.host.abuseDeviceSignalCollectionConfig.disablePerfMarkerOptimization||"enabled"===(null===(y=(x=r.host).__getLixTreatment)||void 0===y?void 0:y.call(x,"fingerprinting.collection.skip.performance.marker.check")),samplingTimeWindowInMillis:null===(E=r.host.abuseDeviceSignalCollectionConfig)||void 0===E?void 0:E.samplingTimeWindowInMillis,isOnDemandFingerprintingEnabled:"enabled"===(null===(b=(w=r.host).__getLixTreatment)||void 0===b?void 0:b.call(w,"pemberly.web.ondemand")),isSyncFingerprintingWithHeadersLixEnabled:"enabled"===(null===(T=(C=r.host).__getLixTreatment)||void 0===T?void 0:T.call(C,"sync.apfc.headers"))||"enabled"===(null===(k=r.host.abuseDeviceSignalCollectionConfig)||void 0===k?void 0:k.syncFingerprintingEnabledWithHeadersLixTreatment),isSyncFingerprintingWithCbLixEnabled:"enabled"===(null===(S=(I=r.host).__getLixTreatment)||void 0===S?void 0:S.call(I,"sync.apfc.couchbase"))||"enabled"===(null===(_=r.host.abuseDeviceSignalCollectionConfig)||void 0===_?void 0:_.syncFingerprintingEnabledWithCbLixTreatment)},M=null===(A=(R=r.host).__getLixTreatment)||void 0===A?void 0:A.call(R,"pemberly.tracking.generic-tracers"),F=!!M&&Jr.test(M);this.isTracerEnabled=F||this.config["enable-tracking-3"];var U="enabled"===(null===(N=(L=r.host).__getLixTreatment)||void 0===N?void 0:N.call(L,"pemberly.tracking.pem-tracers"));this.isPEMTracerEnabled=U||this.config["enable-pem-tracking-3"],this.responseRleCache=new Ki(this.isPEMTracerEnabled),this.collector=new Ni(r.host.api,new Hi(t,this.config,r.host),this.config,P,(function(e){return O.fireCustomMeasureEvent(e)}),(function(e){return O.fireResourceLoadEvent(e,O.activeToken)}),this.isTracerEnabled,this.responseRleCache,this.fireApfcEventBound,D,r.host.endpoint),this.collector.startObserving(),Sn.before(En,this.beforeHideHandlerBound)}return qe(e,[{key:"pingCDN",value:function(){}},{key:"recordTreeId",value:function(e,t){e&&this.collector.recordTreeId(e,t)}},{key:"recordRenderStart",value:function(e,t){this.collector.recordRenderStart(e,t||e)}},{key:"recordRenderEnd",value:function(e){var t,n=null!==(t=this.getPageLoadIdFromState())&&void 0!==t?t:this.pageLoadId,r=this.collector.recordRenderEnd(e,this.isTracerEnabled,n);r&&this.isTracerEnabled&&this.core.fireEvent({appId:this.config["app-id"],eventName:"ViewLoadEvent"},r)}},{key:"provisionNetworkResponse",value:function(e,t){var n,r,i=this;null===(n=this.responseRleCache)||void 0===n||n.offerResponseContext(e,t);var a=null===(r=this.responseRleCache)||void 0===r?void 0:r.flushCacheByUrl(e);null==a||a.forEach((function(e){i.fireResourceLoadEvent(e,i.activeToken)}))}},{key:"start",value:function(e){var t,n;!this.isTracerEnabled&&this.activeToken&&this.abort(this.activeToken),this.flushEndedSessions(),this.isInitial=void 0===this.isInitial,this.isInitial||this.collector.reset();var r,i=Object.create(null),a="enabled"===(null===(t=(n=this.core.host).__getLixTreatment)||void 0===t?void 0:t.call(n,"pemberly.tracking.time-origin-epoch-time"));return this.activeToken=i,this.liveTokens.add(i),this.isTracerEnabled?(this.stateWM.set(i,{isInitial:this.isInitial,startTime:Ei(this.core.host.api.performance,a),pageKey:e}),this.firePageLoadStartEvent(i)):this.stateWM.set(i,{isInitial:this.isInitial,startTime:Ei(this.core.host.api.performance,a)}),this.config["enable-memory-measurement"]&&(null===(r=this.pageMemoryObserver)||void 0===r||r.stopObserving(),this.pageMemoryObserver=new Pi("page-memory",this.core,this.config),this.pageMemoryObserver.startObserving(),void 0===this.appMemoryObserver&&(this.appMemoryObserver=new Pi("application-memory",this.core,this.config),this.appMemoryObserver.startObserving())),i}},{key:"observeWebVitals",value:function(){void 0===this.webVitalsObserver&&(this.webVitalsObserver=new ba(this.core,this.config),this.webVitalsObserver.startObserving())}},{key:"end",value:function(e){var t,n,r=this,i=arguments.length>1&&void 0!==arguments[1]&&arguments[1],a=arguments.length>2?arguments[2]:void 0;if(e&&this.activeToken&&this.activeToken===e){var o=this.stateWM.get(e),s="enabled"===(null===(t=(n=this.core.host).__getLixTreatment)||void 0===t?void 0:t.call(n,"pemberly.tracking.time-origin-epoch-time")),c=Ei(this.core.host.api.performance,s);o.endProps={renderCompleteTime:c,isImpactedByHiddenWindow:i,rumKey:a},this.isTracerEnabled&&a&&(o.pageKey=a);var u=this.activeToken,l=this.isTracerEnabled?5e3:this.config["beacon-timeout"];o.fireRumEventTimeout=setTimeout((function(){if(r.isTracerEnabled){r.flushResourceLoadEvents(u);var e=r.collector.collectPageLoadEndData({isInitial:o.isInitial});"then"in e?e.then((function(e){r.firePageLoadEndEvent(e,u)})):r.firePageLoadEndEvent(e,u)}var t=r.collector.collect({isInitial:o.isInitial});"then"in t?t.then((function(e){r.fireRumEvent(e,u)})):r.fireRumEvent(t,u)}),l),this.activeToken=void 0}else Xn("rum-end",Xr)}},{key:"onDataResponse",value:function(e,t,n,r,i,a,o){var s=Ra(t,n,r,i,a);if(null!=o&&o.serverSideResponse){var c=this.generateResourceLoadEventFromResponseContext(e,_e({nextHopProtocol:Pr.UNKNOWN},s));this.fireResourceLoadEvent(c,this.activeToken)}else this.provisionNetworkResponse(e,s)}},{key:"onOopsPage",value:function(e,t){Xn("rum-oops",e,Object.fromEntries(t||[]),["oops-page"])}},{key:"firePageLoadStartEvent",value:function(e){if(e&&this.activeToken&&this.activeToken===e){this.shouldTrackCustomMeasureEvent=!0;var t=this.stateWM.get(e);this.pageLoadId=Dn(),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 Xn("PageLoadStartEvent",Xr)}},{key:"destroy",value:function(){var e,t,n;Sn.offBefore(En,this.beforeHideHandlerBound),this.activeToken&&this.abort(this.activeToken),this.flushEndedSessions(),this.collector.stopObserving(),null===(e=this.webVitalsObserver)||void 0===e||e.stopObserving(),null===(t=this.appMemoryObserver)||void 0===t||t.stopObserving(),null===(n=this.pageMemoryObserver)||void 0===n||n.stopObserving(),this.responseRleCache=void 0,this.core.destroy()}},{key:"getPageLoadIdFromState",value:function(e){var t,n=null!=e?e:this.activeToken;return n&&(t=this.stateWM.get(n).pageLoadId),t}},{key:"abort",value:function(e){var t;if(!e||this.activeToken!==e)throw new Error("RUM abort: rum token passed is invalid");if(null!==(t=this.stateWM.get(e))&&void 0!==t&&t.endProps)throw new Error("RUM abort: Can't abort a session that was already ended");this.activeToken=void 0,this.stateWM.delete(e),this.liveTokens.delete(e)}},{key:"flushEndedSessions",value:function(){var e=this;this.liveTokens.forEach((function(t){var n=e.stateWM.get(t);if(n.endProps){if(e.isTracerEnabled){var r=e.collector.collectPageLoadEndData({isInitial:n.isInitial,immediate:!0});e.firePageLoadEndEvent(r,t),e.flushResourceLoadEvents(t)}var i=e.collector.collect({isInitial:n.isInitial,immediate:!0});e.fireRumEvent(i,t)}}))}},{key:"flushResourceLoadEvents",value:function(e){var t,n,r=this,i=null===(t=this.responseRleCache)||void 0===t?void 0:t.flushCache();null==i||i.map((function(t){r.fireResourceLoadEvent(t,e)})),null===(n=this.responseRleCache)||void 0===n||n.clear()}},{key:"firePageLoadEndEvent",value:function(e,t){if(this.stateWM.get(t)){var n=this.core.host.api.assign,r=this.stateWM.get(t),i=r.startTime,a=r.endProps,o=r.pageLoadId,s=r.pageKey;if(a){var c=a.renderCompleteTime,u=a.isImpactedByHiddenWindow;if(o?e.pageLoadId=o:Xn("PageLoadEndEvent",zr),e.browserPageLoadEndContext&&(e.browserPageLoadEndContext.isImpactedByHiddenWindow=u),e.navigationTiming){var l,d=null===(l=e.navigationTiming)||void 0===l?void 0:l.navigationStart,h=this.boomerangStart=d||this.boomerangStart,f=d||i,p=c-f;e.navigationTiming.boomerangStart=h,e.navigationTiming.timeDone=p,e.navigationTiming.navigationStart=f,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)})),this.shouldTrackCustomMeasureEvent=!1}else this.abort(t)}}},{key:"fireCustomMeasureEvent",value:function(e){var t=this;if(this.isTracerEnabled&&this.shouldTrackCustomMeasureEvent){var n,r=null!==(n=this.getPageLoadIdFromState())&&void 0!==n?n:this.pageLoadId;if(!r)return void this.initialCustomMeasureEvents.push(e);this.initialCustomMeasureEvents.length>0&&(this.initialCustomMeasureEvents.forEach((function(e){e.parentPageLoadId=r,t.core.fireEvent({appId:t.config["app-id"],eventName:"CustomMeasureEvent"},e)})),this.initialCustomMeasureEvents=[]),e.parentPageLoadId=r,this.core.fireEvent({appId:this.config["app-id"],eventName:"CustomMeasureEvent"},e)}}},{key:"fireResourceLoadEvent",value:function(e,t){var n=this;if(this.isTracerEnabled){var r,i=null!==(r=this.getPageLoadIdFromState(t))&&void 0!==r?r:this.pageLoadId;if(!i)return void this.initialResourcesEvents.push(e);this.initialResourcesEvents.length>0&&(this.initialResourcesEvents.forEach((function(e){e.parentPageLoadId=i,n.core.fireEvent({appId:n.config["app-id"],eventName:"ResourceLoadEvent"},e)})),this.initialResourcesEvents=[]),e.parentPageLoadId=i,this.core.fireEvent({appId:this.config["app-id"],eventName:"ResourceLoadEvent"},e)}}},{key:"fireRumEvent",value:function(e,t){if(this.stateWM.get(t)){var n=this.core.host.api.assign,r=this.stateWM.get(t),i=r.startTime,a=r.endProps;if(a){var o=a.renderCompleteTime,s=a.isImpactedByHiddenWindow,c=a.rumKey,u=this.boomerangStart=e.navigationStart||this.boomerangStart,l=e.navigationStart||i,d=o-l,h=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:h,timeDone:d,navigationStart:l,boomerangStart:u,renderCompleteTime:o},e)})),r.fireRumEventTimeout&&clearTimeout(r.fireRumEventTimeout),this.liveTokens.delete(t),this.stateWM.delete(t)}else this.abort(t)}}},{key:"beforeHideHandler",value:function(){this.flushEndedSessions()}},{key:"fireApfcEvent",value:function(e,t){var n,r=null===(n=document)||void 0===n||null===(n=n.cookie)||void 0===n?void 0:n.split(";"),i={issueTime:0,browserId:""};try{i=function(e){var t,n={issueTime:0,browserId:""},r=Me(e);try{for(r.s();!(t=r.n()).done;){var i=t.value.split("=");if(i.length>1&&"bscookie"===i[0]){var a=decodeURIComponent(i[1]),o=Number(a.substring(4,18)),s=isNaN(o)?0:o,c=a.substring(18,50);return n.browserId=c,n.issueTime=s,n}}}catch(e){r.e(e)}finally{r.f()}return n}(r)}catch(e){}var a={type:e,bsCookieInfo:i,payload:t};this.core.fireEvent({appId:this.config["app-id"],eventName:"ApfcEvent"},a)}},{key:"generateResourceLoadEventFromResponseContext",value:function(e,t){var n=t.requestTime,r=t.viewNames,i=t.requestType,a={resourceKey:e,isNetwork:!0,targetViewNames:r||[],loadType:"serversideresponse",resourceNetworkContext:_e({},Ae(t,we)),resourceProgressStates:[],timeOrigin:n};return i&&(a.loadType=i),a}},{key:"triggerDeviceSignalCollection",value:function(e){var t=e.onlyTriggerOnDemandFlow;this.collector.triggerDeviceSignalCollection({onlyTriggerOnDemandFlow:t})}}]),e}(),Oa="undefined"!=typeof window&&"undefined"!=typeof performance,Pa="undefined"!=typeof location&&-1!==location.search.indexOf("_LI_MEASURE_DEBUG");!function(){function e(t,n){Ke(this,e),Ve(this,"trackingCore",void 0),Ve(this,"endPageInstance",void 0),Ve(this,"startPageInstance",void 0),Ve(this,"featureIdentifier",void 0),Ve(this,"marks",[]),Ve(this,"spans",[]),Ve(this,"spanStarts",new Map),Ve(this,"started",!1),Ve(this,"ended",!1),Ve(this,"featureKey",void 0),Ve(this,"productName",void 0),Ve(this,"flushOnEnd",void 0),Ve(this,"basePageTreeId",void 0),Ve(this,"debounceFlush",void 0),Ve(this,"disableAutoFlush",void 0),Ve(this,"isCanceled",!1),Ve(this,"isClosed",!1),this.trackingCore=t;var r=n.featureKey,i=n.productName,a=n.flushDebounceMilliseconds,o=n.flushOnEnd;this.featureKey=r,this.productName=i,this.flushOnEnd=o;var s=i?"::".concat(i):"";this.featureIdentifier="".concat(r).concat(s);var c=void 0!==a?a:3e3;c>0&&(this.debounceFlush=function(e,t,n){var r,i,a;void 0===t&&(t=50),void 0===n&&(n={});var o=null!=(r=n.isImmediate)&&r,s=null!=(i=n.callback)&&i,c=n.maxWait,u=Date.now(),l=[];function d(){if(void 0!==c){var e=Date.now()-u;if(e+t>=c)return c-e}return t}var h=function(){var t=[].slice.call(arguments),n=this;return new Promise((function(r,i){var c=o&&void 0===a;if(void 0!==a&&clearTimeout(a),a=setTimeout((function(){if(a=void 0,u=Date.now(),!o){var r=e.apply(n,t);s&&s(r),l.forEach((function(e){return(0,e.resolve)(r)})),l=[]}}),d()),c){var h=e.apply(n,t);return s&&s(h),r(h)}l.push({resolve:r,reject:i})}))};return h.cancel=function(e){void 0!==a&&clearTimeout(a),l.forEach((function(t){return(0,t.reject)(e)})),l=[]},h}(this.flush.bind(this),c)),this.disableAutoFlush=c<0}qe(e,[{key:"start",value:function(e){var t;if(Oa){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(Oa){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){Oa&&(this.marks.push({name:e,startTime:bi()}),Pa&&(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){Oa&&(this.spanStarts.set(e,bi()),Pa&&performance.mark("LI:".concat(this.featureIdentifier,"-span-").concat(e,"-start")))}},{key:"spanEnd",value:function(e,t){if(Oa&&this.spanStarts.has(e)){var n=this.spanStarts.get(e),r=t||e;this.spans.push({name:r,startTime:n,duration:bi()-n}),Pa&&(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){Oa&&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 bi()}},{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||Hn(ze),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(Oa){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"}(Na||(Na={}));var Da,Ma,Fa="http.response.",Ua="lifespan";!function(e){e._SPAN_TYPE="li.mo.spanType",e.HTTP_RESPONSE_STATUS_CODE="http.response.status_code"}(Da||(Da={})),function(e){e.DEFAULT="DEFAULT",e.APPLICATION="APPLICATION",e.PAGE="PAGE"}(Ma||(Ma={}));var Ba,Ha,Ka,Wa,qa=function(){function e(t,n){var r=this;Ke(this,e),Ve(this,"syncAttributes",void 0),Ve(this,"resourceType",Ma.DEFAULT),Ve(this,"asyncAttributes",void 0),Ve(this,"asyncAttributesPending",void 0),Ve(this,"asyncAttributesResolvedPromise",void 0),Ve(this,"resolveAsyncAttributesPromise",void 0),this.syncAttributes=t,null!=n&&n.waitForAsyncAttributes?(this.asyncAttributesPending=!0,this.asyncAttributesResolvedPromise=new Promise((function(e){r.resolveAsyncAttributesPromise=e}))):(this.asyncAttributesPending=!1,this.resolveAsyncAttributesPromise=function(){})}var t,n;return qe(e,[{key:"resolveAsyncAttributes",value:function(e){this.asyncAttributesPending&&(this.asyncAttributes=e,this.asyncAttributesPending=!1,this.resolveAsyncAttributesPromise())}},{key:"waitForAsyncAttributes",value:(t=ke().mark((function e(){return ke().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!this.asyncAttributesPending){e.next=3;break}return e.next=3,this.asyncAttributesResolvedPromise;case 3:case"end":return e.stop()}}),e,this)})),n=function(){var e=this,n=arguments;return new Promise((function(r,i){var a=t.apply(e,n);function o(e){Se(a,r,i,o,s,"next",e)}function s(e){Se(a,r,i,o,s,"throw",e)}o(void 0)}))},function(){return n.apply(this,arguments)})},{key:"attributes",get:function(){if(this.asyncAttributesPending)throw new Error("Resource attributes are not ready yet - async attributes still pending.");var e={resourceType:this.resourceType};return Object.assign({},e,this.syncAttributes,this.asyncAttributes)}}]),e}(),Va=qe((function e(){Ke(this,e)})),ja={string:"stringValue",boolean:"boolValue",int:"intValue",double:"doubleValue"},Ga=new(function(e){function t(){return Ke(this,t),Re(this,t,arguments)}return Pe(t,Va),qe(t,[{key:"adapt",value:function(e){var t=[];for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var r=e[n],i=this.getFieldName(r);i?t.push({key:n,value:{value:Ve({},i,r)}}):console.warn("Attribute '".concat(n,"' of type '").concat(He(r),"' could not be converted to a proto attribute."))}return t}},{key:"getFieldName",value:function(e){var t=He(e);return"number"==typeof e&&(t=Number.isInteger(e)?"int":"double"),t in ja?ja[t]:void 0}}]),t}()),za=new(function(e){function t(){return Ke(this,t),Re(this,t,arguments)}return Pe(t,Va),qe(t,[{key:"adapt",value:function(e){var t=1e3*(window.performance.timeOrigin+e);return Math.round(t)}}]),t}()),Xa=new(function(e){function t(){return Ke(this,t),Re(this,t,arguments)}return Pe(t,Va),qe(t,[{key:"adapt",value:function(e){return{timeUnixNano:za.adapt(e.time),name:e.name,attributes:Ga.adapt(e.attributes)}}}]),t}()),Ja=new(function(e){function t(){return Ke(this,t),Re(this,t,arguments)}return Pe(t,Va),qe(t,[{key:"adapt",value:function(e){return{traceId:e.traceId,spanId:e.spanId,traceState:e.traceState,attributes:Ga.adapt(e.attributes),flags:e.flags}}}]),t}()),Qa=new(function(){function e(){Ke(this,e)}return qe(e,[{key:"adapt",value:function(e){var t;return{traceId:e.spanContext.traceId,spanId:e.spanContext.spanId,traceState:e.spanContext.traceState,parentSpanId:null===(t=e.parentSpan)||void 0===t?void 0:t.spanContext.spanId,flags:e.spanContext.traceFlags,name:e.name,kind:e.kind,startTimeUnixNano:za.adapt(e.startTime),endTimeUnixNano:za.adapt(e.endTime),attributes:Ga.adapt(e.attributes),events:e.events.map(Xa.adapt),links:e.links.map(Ja.adapt),status:e.status}}}]),e}()),$a=function(){function e(t){Ke(this,e),Ve(this,"trackingCore",void 0),this.trackingCore=t}return qe(e,[{key:"export",value:function(e){var t=Qa.adapt(e),n={attributes:Ga.adapt(e.parentTracer.parentTracerProvider.resource.attributes)},r={traceId:e.spanContext.traceId,pageForestId:e.spanContext.traceId,resourceSpans:{resource:n,scopeSpans:[{scope:e.parentTracer.scope,spans:[t]}]}};this.trackingCore.fireEvent("OtelPilotClientTraceEvent",r)}}]),e}(),Ya=function(){function e(t){Ke(this,e),Ve(this,"DEBUG_QUERY_PARAM","__LI_OTEL_DEBUG"),Ve(this,"enabled",!1),Ve(this,"globalWindow",void 0),Ve(this,"exportedSpans",void 0);var n=t;if(void 0!==n.location){var r=new URLSearchParams(n.location.search);this.enabled=null!==r.get(this.DEBUG_QUERY_PARAM)}this.enabled&&(this.globalWindow="undefined"!=typeof window?window:{},this.exportedSpans=this.globalWindow.__li_otelSpans||[],this.globalWindow.__li_otelSpans=this.exportedSpans)}return qe(e,[{key:"export",value:function(e){this.exportedSpans&&this.exportedSpans.push(e)}}]),e}(),Za=new(function(e){function t(){return Ke(this,t),Re(this,t,arguments)}return Pe(t,Va),qe(t,[{key:"adapt",value:function(e,t){var n={"pageInstance.pageUrn":e.pageInstance.pageUrn,"pageInstance.trackingId":e.pageInstance.trackingId,pageKey:e.pageKey};e.applicationInstance&&(n["applicationInstance.version"]=e.applicationInstance.version,n["applicationInstance.applicationUrn"]=e.applicationInstance.applicationUrn,n["applicationInstance.trackingId"]=JSON.stringify(e.applicationInstance.trackingId));var r=(null==t?void 0:t.prefix)||"";return Object.keys(n).reduce((function(e,t){return e[r+t]=n[t],e}),{})}}]),t}()),eo=function(){function e(t){Ke(this,e),Ve(this,"trackingCore",void 0),this.trackingCore=t}return qe(e,[{key:"onStart",value:function(e){if(e.startTrackingContext){var t=e.startTrackingContext||this.trackingCore.getCurrentContext(),n=Za.adapt(t,{prefix:"trackingCtx.start."});Object.assign(e.attributes,n)}}},{key:"onEnd",value:function(e){if(e.endTrackingContext){var t=e.endTrackingContext||this.trackingCore.getCurrentContext(),n=Za.adapt(t,{prefix:"trackingCtx.end."});Object.assign(e.attributes,n)}}}]),e}(),to=function(){function e(){Ke(this,e)}return qe(e,[{key:"onStart",value:function(e){}},{key:"onEnd",value:function(e){e.attributes[Da._SPAN_TYPE]=e.spanType}}]),e}();function no(e){for(var t="",n=0;n=r?this.warn("Can't add event, because span event limit (".concat(r,") has been reached")):(this.events.push(n),this.state!==Ba.STARTED&&this.warn("Added a span event to a span that either has not been started or has already ended."),n.time=r)this.warn("Can't add event, because span event limit (".concat(r,") has been reached"));else{Ce(Oe(t.prototype),"addEvent",this).call(this,e,n);var i={parentSpan:this};new ao(e,this.parentTracer,i,n)}}}]),t}(),so=function(){function e(t,n){Ke(this,e),Ve(this,"scope",void 0),Ve(this,"parentTracerProvider",void 0),this.scope=t,this.parentTracerProvider=n}return qe(e,[{key:"createSpan",value:function(e,t,n){var r=null==t?void 0:t.parentSpan;if((null==r?void 0:r.spanType)!==Wa.EVENT_WRAPPER)return((null==n?void 0:n.spanType)||Wa.DEFAULT)===Wa.INFINITE?new oo(e,this,t):new io(e,this,t);this.parentTracerProvider.warn("Can't create span with parentSpan of type EventWrapperSpan.")}},{key:"handleSpanStart",value:function(e){this.parentTracerProvider.handleSpanStart(e)}},{key:"handleSpanEnd",value:function(e){this.parentTracerProvider.handleSpanEnd(e)}}]),e}(),co=function(){function e(){Ke(this,e),Ve(this,"endedSpanCount",0)}return qe(e,[{key:"onStart",value:function(){}},{key:"onEnd",value:function(e){e.attributes["li.globalSequenceNumber"]=this.endedSpanCount,this.endedSpanCount++}}]),e}(),uo={spanCountLimit:500,spanEventCountLimit:128},lo=function(){function e(t,n){var r=this;Ke(this,e),Ve(this,"resource",void 0),Ve(this,"config",void 0),Ve(this,"tracers",{}),Ve(this,"spanExporters",[]),Ve(this,"spanProcessors",[]),Ve(this,"spanExportQueue",[]),Ve(this,"waitForResourceAsyncAttributes",!0),Ve(this,"spanCount",0),this.resource=t,this.config=Object.assign({},uo,n),this.addSpanProcessor(new co),t.waitForAsyncAttributes().then((function(){r.waitForResourceAsyncAttributes=!1,r.flushSpanQueue()}))}return qe(e,[{key:"getTracer",value:function(e){var t=this.getScopeKey(e);return void 0===this.tracers[t]&&(this.tracers[t]=new so(e,this)),this.tracers[t]}},{key:"addSpanExporter",value:function(e){this.spanExporters.push(e)}},{key:"addSpanProcessor",value:function(e){this.spanProcessors.push(e)}},{key:"handleSpanStart",value:function(e){this.spanProcessors.forEach((function(t){t.onStart(e)}))}},{key:"handleSpanEnd",value:function(e){this.spanProcessors.forEach((function(t){t.onEnd(e)})),this.spanExportQueue.push(e),this.waitForResourceAsyncAttributes||this.flushSpanQueue()}},{key:"warn",value:function(e){this.config.logger&&this.config.logger.warn(e)}},{key:"getScopeKey",value:function(e){return"".concat(e.name,"@").concat(e.version||"")}},{key:"flushSpanQueue",value:function(){var e=this;this.spanExportQueue.forEach((function(t){e.spanCount++,e.spanCount>e.config.spanCountLimit?e.spanCount===e.config.spanCountLimit+1&&e.warn("Resource reached span count limit (".concat(e.config.spanCountLimit,") and won't export any more spans.")):e.spanExporters.forEach((function(e){e.export(t)}))})),this.spanExportQueue=[]}}]),e}(),ho=function(e){function t(){var e;Ke(this,t);for(var n=arguments.length,r=new Array(n),i=0;i0&&i>r&&(t.addEvent("redirectStart",{time:r}),t.addEvent("redirectEnd",{time:i})),a>0&&t.addEvent("workerStart",{time:a}),t.addEvent("fetchStart",{time:o}),s>0&&c>s&&(t.addEvent("domainLookupStart",{time:s}),t.addEvent("domainLookupEnd",{time:c})),u>0&&d>u&&(t.addEvent("connectStart",{time:u}),l>0&&t.addEvent("secureConnectionStart",{time:l}),t.addEvent("connectEnd",{time:d})),function(e){return e.requestStart>0&&e.responseEnd>e.requestStart}(e)&&(t.addEvent("requestStart",{time:h}),t.addEvent("responseStart",{time:f}),t.addEvent("responseEnd",{time:p}));var C={decodedBodySize:v,encodedBodySize:g,initiatorType:m,nextHopProtocol:y,transferSize:x,deliveryType:E,firstInterimResponseStart:b,renderBlockingStatus:w,responseStatus:T},k=yo({entryType:n},"performance.entry."),S=yo(C,"performance.resource.timing.");Object.assign(t.attributes,k,S)}!function(){function e(){Ke(this,e),Ve(this,"handleErrorBound",this.handleError.bind(this))}qe(e,[{key:"enable",value:function(){Sn.on(Ar.INTERNAL_OTEL_JET_EVENT,this.handleErrorBound)}},{key:"disable",value:function(){Sn.off(Ar.INTERNAL_OTEL_JET_EVENT,this.handleErrorBound)}},{key:"handleError",value:function(e){if(e){var t=go.adapt(e);vo.getInstance().getCurrentPageSpan().addEvent("error",{attributes:t})}}}])}();var Eo="X-Li-Traceparent",bo="X-Li-Tracestate";function wo(e){var t={};return e instanceof Headers?e.forEach((function(e,n){return t[n]=e})):Array.isArray(e)?e.forEach((function(e){if(Array.isArray(e)){var n=e.length>0?e[0]:String(void 0),r=e.length>1?e[1]:String(void 0);t[n]=r}})):"object"===He(e)&&(t=_e({},e)),t}function To(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"ajax";const n=q(document),r=V(document),i=pe();let a={};return i&&(a.theme=i.toUpperCase()),r&&(a.interfaceLocale=r),e&&(a.pageKey=e),{header:{},requestHeader:a,pageType:t,trackingInfo:{clientTimestamp:Date.now(),pageTag:n}}}function Co(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];if(!e||null==t||!t.length)throw new Error("Invalid input to fireViewModuleImpressionEvent");const n=V(document),r={};n&&(r.interfaceLocale=n);const i={header:{},requestHeader:r,moduleNames:t};e.fireTrackingEvent("ViewModuleImpressionEvent",i)}function ko(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const t={...e},n=U(window.location.href,"originalReferer")||U(window.location.href,"original_referer");return n&&(t.requestHeader={...t.requestHeader,referer:n}),So(t)}function So(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const t={...e},n=pe();return n&&(t.requestHeader={...t.requestHeader,theme:n.toUpperCase()}),t}function Io(e){let{browserId:t,memberId:n,isLoggedIn:r=!1}=e;return r?`urn:li:member:${n}`:`urn:li:guest:${t}`}!function(){function e(t){Ke(this,e),Ve(this,"transporter",void 0),Ve(this,"handleResourceTimingBound",this.handleResourceTiming.bind(this)),Ve(this,"resourceInfoMap",new Map),Ve(this,"locationApi",void 0),Ve(this,"trackingEndpoint",void 0),this.transporter=t,this.transporter instanceof xr?(this.trackingEndpoint=this.transporter.getTrackingEndpoint(),this.locationApi=this.transporter.host.api.location):this.trackingEndpoint=this.transporter.host.endpoint}qe(e,[{key:"enable",value:function(){this.wrapFetch(),this.wrapXmlHttpRequest(),Sn.on(Ar.INTERNAL_OTEL_RESOURCE,this.handleResourceTimingBound)}},{key:"disable",value:function(){Sn.off(Ar.INTERNAL_OTEL_RESOURCE,this.handleResourceTimingBound)}},{key:"wrapFetch",value:function(){var e=this;!function(e,t,n){var r=void 0;try{r=e[t]}catch(e){}if("function"!=typeof r)throw new Error("Property ".concat(t," of the provided object is not a function"));var i=n(r);mo(e,t,i),mo(i,"__wrapped",!0),mo(i,"__original",r)}(window,"fetch",(function(t){return e.fetchWrapper.bind(e,t)}))}},{key:"wrapXmlHttpRequest",value:function(){}},{key:"fetchWrapper",value:function(e,t,n){var r=this,i=function(e){var t="__default";if(e instanceof Request)t=e.url;else if(e instanceof URL)t=e.href;else if("string"==typeof e)try{t=new URL(e,location.origin).href}catch(e){}return t}(t);if(!this.shouldWrapFetch(i))return e.apply(window,[t,n]);var a=vo.getInstance().getCurrentPageSpan(),o=ro(),s=n,c=null==n?void 0:n.headers;try{c=function(e,t,n){var r,i=function(e,t){return"".concat("00","-").concat(e,"-").concat(t,"-").concat("00")}(t,n),a=function(e){return"".concat("LinkedIn","=").concat(e)}(n);if((e=null!==(r=e)&&void 0!==r?r:{})instanceof Headers){var o=new Headers(e);return o.append(Eo,i),o.append(bo,a),o}return Array.isArray(e)?[].concat(Fe(e),[[Eo,i],[bo,a]]):"object"===He(e)?_e(_e({},e),{},Ve(Ve({},Eo,i),bo,a)):e}(null==n?void 0:n.headers,a.spanContext.traceId,o),s=_e(_e({},n),{},{headers:c})}catch(e){}var u={spanId:o,parentSpan:a,startTime:performance.now(),endTime:performance.now(),request:{url:i,headers:wo(c)}};return e.apply(window,[t,s]).then((function(e){var t={headers:{},ok:e.ok,redirected:e.redirected,status:e.status,statusText:e.statusText,type:e.type,url:e.url};return e.headers.forEach((function(e,n){t.headers[n]=e})),u.response=t,e})).catch((function(e){throw u.error={name:e.name,message:e.message,stack:e.stack},e})).finally((function(){u.endTime=performance.now();var e=r.resourceInfoMap.get(i)||[];e.push(u),r.resourceInfoMap.set(i,e)}))}},{key:"handleResourceTiming",value:function(e){if(e&&this.shouldTraceResourceTiming(e.resourceTiming.name)){var t,n=this.resourceInfoMap.get(e.resourceTiming.name);n&&(t=n[0],n.length>1?(console.warn("Multiple wrapped request info objects found for URL '".concat(e.resourceTiming.name,"'.")),n.shift()):this.resourceInfoMap.delete(e.resourceTiming.name)),this.traceResource(e.resourceTiming,t)}}},{key:"traceResource",value:function(e,t){var n=e.name,r=e.startTime,i=r+e.duration,a=(null==t?void 0:t.parentSpan)||vo.getInstance().getCurrentPageSpan(),o=a.parentTracer.parentTracerProvider.getTracer({name:"w3c-resource-instrumentation"}),s=void 0;t&&(s={traceId:t.parentSpan.spanContext.traceId,spanId:t.spanId,traceState:""});var c={parentSpan:a};s&&(c.spanContext=s);var u=o.createSpan(n,c).start({startTime:r});xo(e,u),t&&this.addWrappedRequestInfoAttributes(u,t),u.end({endTime:i})}},{key:"addWrappedRequestInfoAttributes",value:function(e,t){var n=yo(wo(t.request.headers),"http.request.header.");if(Object.assign(e.attributes,n),t.response){var r=yo(wo(t.response.headers),"http.response.header."),i=yo({status:t.response.status,statusText:t.response.statusText,ok:t.response.ok,redirected:t.response.redirected,type:t.response.type,url:t.response.url},Fa);Object.assign(e.attributes,r,i)}}},{key:"isTrackingEndpoint",value:function(e,t){return function(e,t,n){var r=new URL(e,n.href),i=new URL(t,n.href);return r.href===i.href}(e,this.trackingEndpoint,t)}},{key:"isRealtimeTelemetryRequest",value:function(e,t){return new URL(e,t.href).pathname.indexOf("/realtime/")>-1}},{key:"isSameOriginRequest",value:function(e,t){var n=new URL(e,t.href);return n.protocol===t.protocol&&n.host===t.host}},{key:"shouldWrapFetch",value:function(e){return!!this.locationApi&&this.isSameOriginRequest(e,this.locationApi)&&!this.isTrackingEndpoint(e,this.locationApi)&&!this.isRealtimeTelemetryRequest(e,this.locationApi)}},{key:"shouldTraceResourceTiming",value:function(e){return!!this.locationApi&&!this.isTrackingEndpoint(e,this.locationApi)&&!this.isRealtimeTelemetryRequest(e,this.locationApi)}}])}(),function(){function e(t){Ke(this,e),Ve(this,"handleLoadEventBound",this.handleLoadEvent.bind(this)),Ve(this,"navigationSpanId",void 0),Ve(this,"globalWindow",void 0),this.navigationSpanId=null==t?void 0:t.navigationSpanId,"undefined"!=typeof window&&(this.globalWindow=window)}qe(e,[{key:"enable",value:function(){var e;"complete"===document.readyState?this.handleLoadEventEnd():null===(e=this.globalWindow)||void 0===e||e.addEventListener("load",this.handleLoadEventBound)}},{key:"disable",value:function(){var e;null===(e=this.globalWindow)||void 0===e||e.removeEventListener("load",this.handleLoadEventBound)}},{key:"handleLoadEvent",value:function(){var e,t=this;setTimeout((function(){t.handleLoadEventEnd()}),0),null===(e=this.globalWindow)||void 0===e||e.removeEventListener("load",this.handleLoadEventBound)}},{key:"handleLoadEventEnd",value:function(){var e=performance.getEntriesByType("navigation");if(!(e.length<1)){var t=e[0],n=vo.getInstance().getCurrentPageSpan();this.traceNavigation(t,n)}}},{key:"traceNavigation",value:function(e,t){var n=e.name,r=e.startTime,i=r+e.duration,a=t.parentTracer.parentTracerProvider.getTracer({name:"w3c-navigation-instrumentation"}),o=e.toJSON(),s=o.domComplete,c=o.domContentLoadedEventEnd,u=o.domContentLoadedEventStart,l=o.domInteractive,d=o.loadEventEnd,h=o.loadEventStart,f=o.redirectCount,p=o.type,v=o.unloadEventEnd,g=o.unloadEventStart,m={parentSpan:t,spanContext:this.navigationSpanId?{spanId:this.navigationSpanId}:void 0},y=a.createSpan(n,m).start({startTime:r});xo(e,y),g>0&&v>g&&a.createSpan("unloadEvent",{parentSpan:y}).start({startTime:g}).end({endTime:v});var x=a.createSpan("dom-processing",{parentSpan:y}).start({startTime:l});a.createSpan("domContentLoadedEvent",{parentSpan:x}).start({startTime:u}).end({endTime:c}),x.end({endTime:s}),a.createSpan("loadEvent",{parentSpan:y}).start({startTime:h}).end({endTime:d});var E=yo({type:p,redirectCount:f},"performance.navigation.timing.");Object.assign(y.attributes,E),y.end({endTime:i})}}])}(),function(){function e(){Ke(this,e),Ve(this,"handleLCPUpdateBound",this.handleWebVitalsMetricUpdate.bind(this,"LargestContentfulPaint")),Ve(this,"handleCLSUpdateBound",this.handleWebVitalsMetricUpdate.bind(this,"CumulativeLayoutShift")),Ve(this,"handleFIDUpdateBound",this.handleWebVitalsMetricUpdate.bind(this,"FirstInputDelay"))}qe(e,[{key:"enable",value:function(){Sn.on(Ar.INTERNAL_OTEL_LARGEST_CONTENTFUL_PAINT,this.handleLCPUpdateBound),Sn.on(Ar.INTERNAL_OTEL_CUMULATIVE_LAYOUT_SHIFT,this.handleCLSUpdateBound),Sn.on(Ar.INTERNAL_OTEL_FIRST_INPUT_DELAY,this.handleFIDUpdateBound)}},{key:"disable",value:function(){Sn.off(Ar.INTERNAL_OTEL_LARGEST_CONTENTFUL_PAINT,this.handleLCPUpdateBound),Sn.off(Ar.INTERNAL_OTEL_CUMULATIVE_LAYOUT_SHIFT,this.handleCLSUpdateBound),Sn.off(Ar.INTERNAL_OTEL_FIRST_INPUT_DELAY,this.handleFIDUpdateBound)}},{key:"handleWebVitalsMetricUpdate",value:function(e,t){if(t){var n=t.value,r=t.metadata,i=r.basePageTreeId,a=Ae(r,Te);vo.getInstance().getCurrentPageSpan().addEvent(e,{attributes:_e({value:n,basePageTreeId:"string"==typeof i?i:JSON.stringify(i)},a)})}}}])}();const _o={observeComponents:()=>{},unobserveComponents:()=>{},handleDynamicElements:()=>{}};class Ao{constructor(e,t){let{threshold:n=.9,root:r=null,rootMargin:i="0px",componentList:a=[],impressionEventCallback:o=(()=>{}),onImpression:s=(()=>{}),onObservation:c=(()=>{}),onUnobservation:u=(()=>{})}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(!("IntersectionObserver"in window))return _o;this.root=r,this.threshold=n,this.rootMargin=i,this.trackingInstance=t,this.impressionEventCallback=o,this._onImpression=s,this._onObservation=c,this._onUnobservation=u;const l={root:this.root,rootMargin:this.rootMargin,threshold:this.threshold};this.intersectionObserverInstance=new e(this._handleObservedNodes.bind(this),l),this.observeComponents(a)}observeComponents(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];this.intersectionObserverInstance&&e.forEach((e=>{this.intersectionObserverInstance.observe(e),this._onObservation(e)}))}unobserveComponents(){(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]).forEach((e=>{this.intersectionObserverInstance.unobserve(e),this._onUnobservation(e)}))}_isNodeVisible(e){return e.intersectionRatio>=this.threshold}_handleObservedNodes(e){if(this.intersectionObserverInstance){const t=e.filter((e=>this._isNodeVisible(e))).map((e=>{let{target:t}=e;return t}));t.length>0&&(this._onImpression({trackingInstance:this.trackingInstance,visibleElements:t}),this.impressionEventCallback({trackingInstance:this.trackingInstance,queuedImpressions:t}),this.unobserveComponents(t))}}handleDynamicElements(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];this.intersectionObserverInstance&&e.length>0&&this.observeComponents(e)}}function Ro(e){let{trackingInstance:t,visibleElements:n}=e;const r=n.map((e=>e.getAttribute("data-impression-id"))).filter((e=>e));r.length>0&&Co(t,r)}function No(e){e.removeAttribute("data-impression-id")}const Lo="timezoneOffset",Oo="screenWidth",Po="screenHeight",Do="devicePixelRatio",Mo="currentContext",Fo="/transactional-routing/createguestdeferreddeeplink",Uo="csrfToken",Bo=/iPad|iPhone|iPod/;function Ho(){var e;e=navigator.userAgent,Bo.test(e)&&M(document.querySelectorAll(".app-store-link")).forEach((e=>{e.href&&e.addEventListener("click",(e=>function(e){if(!e)throw Error("The given context is not valid");const t={[Lo]:(new Date).getTimezoneOffset(),[Oo]:window.screen.width,[Po]:window.screen.height,[Do]:window.devicePixelRatio,[Mo]:e};try{navigator.sendBeacon(B(Fo,Uo,j(H("JSESSIONID"))),JSON.stringify(t))}catch(e){}}(e.currentTarget.pathname)))}))}function Ko(e,t,n){if(!t.has(e))throw new TypeError("attempted to get private field on non-instance");return n}function Wo(e,t){!function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(e,t),t.add(e)}const qo={ARROW_DOWN:"ArrowDown",ARROW_LEFT:"ArrowLeft",ARROW_RIGHT:"ArrowRight",ARROW_UP:"ArrowUp",ESCAPE:"Escape",ENTER:"Enter",SPACEBAR:" ",TAB:"Tab"},Vo={Down:qo.ARROW_DOWN,Right:qo.ARROW_RIGHT,Left:qo.ARROW_LEFT,Up:qo.ARROW_UP,Esc:qo.ESCAPE,Spacebar:qo.SPACEBAR,Tab:qo.TAB};function jo(e){return Vo[e]||e}const Go=['a[href]:not([tabindex^="-"])','area[href]:not([tabindex^="-"])','input:not([disabled]):not([tabindex^="-"]):not([type="hidden"])','select:not([disabled]):not([tabindex^="-"])','textarea:not([disabled]):not([tabindex^="-"])','button:not([disabled]):not([tabindex^="-"])','[tabindex]:not([tabindex^="-"]):not([disabled])'].join(",");function zo(e){const t=window.getComputedStyle(e);return"hidden"===t.visibility||"none"===t.display}function Xo(e){let t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:document.documentElement,r=arguments.length>2?arguments[2]:void 0;return e===n?!zo(e):r&&r.get(e)?r.get(e):(zo(e)?t=!1:e.parentNode&&(t=Xo(e.parentNode,n,r)),r&&r.set(e,t),t)}class Jo{constructor(e){if(!e)throw new Error("An element must be passed in to Disable Background Navigation");this._container=e,this._hiddenElements=[]}disableBackground(){let e=this._container;for(;e&&e!==document.body&&e.parentElement;)this._hiddenElements=this._hiddenElements.concat([...e.parentElement.children].filter((t=>t!==e&&"true"!==t.getAttribute("aria-hidden")&&!t.classList.contains("top-level-modal-container")&&(t.setAttribute("aria-hidden",!0),!0)))),e=e.parentElement}enableBackground(){this._hiddenElements.forEach((e=>{e.removeAttribute("aria-hidden")})),this._hiddenElements=[]}}const Qo=["class","disabled","style","tabindex","type"];class $o{constructor(e){if(!e)throw new Error("FocusTrap: No focus trap container passed in");this._container=e,this._observer=new MutationObserver((()=>this._setFirstAndLastFocusableEls(this._container))),this._handleKeyDown=this._focusTrap.bind(this),this._backgroundNavigationDisabler=new Jo(this._container)}init(){this._observer.observe(this._container,{attributeFilter:Qo,attributes:!0,childList:!0,subtree:!0}),this._setFirstAndLastFocusableEls(this._container),this._container.addEventListener("keydown",this._handleKeyDown),this._backgroundNavigationDisabler.disableBackground()}tearDown(){this._observer.disconnect(),this._container.removeEventListener("keydown",this._handleKeyDown),this._backgroundNavigationDisabler.enableBackground()}_focusTrap(e){const{key:t,target:n}=e,r=jo(t),i=r===qo.TAB&&e.shiftKey;!i&&r===qo.TAB&&n===this.lastFocusableEl?(this.firstFocusableEl.focus(),e.preventDefault()):i&&n===this.firstFocusableEl&&(this.lastFocusableEl.focus(),e.preventDefault())}_setFirstAndLastFocusableEls(e){const[t,n]=this._getFirstAndLastFocusableEls(e);this.firstFocusableEl=t,this.lastFocusableEl=n,setTimeout((()=>{this._hasFocusBeenDropped()&&("-1"===e.getAttribute("tabindex")?e.focus():this.firstFocusableEl.focus())}),100)}_hasFocusBeenDropped(){const e=document.activeElement;return!e||e===document.body}_getFirstAndLastFocusableEls(e){const t=[...e.querySelectorAll(Go)],n=new Map;let r,i,a=0,o=t.length-1;for(;(!r||!i)&&a<=o;){if(!r){const i=t[a];r=Xo(i,e,n)&&i,a++}if(!i){const r=t[o];i=Xo(r,e,n)&&r,o--}}return i=i||r,[r,i]}}const{ENTER:Yo,ESCAPE:Zo}=qo,es="modal__overlay--visible",ts="overflow-hidden",ns="top-level-modal-container";class rs{constructor(e){let{enablePageViewTracking:t=!1,shouldHideModal:n=(()=>!1),triggerByOutletEl:r=!0,shouldMoveToTopContainer:i=!0,events:a={},focusElement:o,pageKey:s,onClose:c}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!e)throw new Error("No modal element passed in");this._el=e,this._parentNode=this._el.parentNode,i&&(this._topLevelContainer=this._getTopLevelContainer()),this._wrapperEl=this._el.querySelector(".modal__wrapper"),this._overlayEl=this._el.querySelector(".modal__overlay"),a&&(this._events=a),r&&(this._outletEls=this._getOutletEls()),this._exitButtonEl=this._el.querySelector(".modal__dismiss"),this._onKeyDownEvent=e=>this._onKeyDown(e),this._enablePageViewTracking=t,this._pageKey=s,this._shouldHideModal=n,this._shouldMoveToTopContainer=i,this.onClose=c;this._el.querySelector("[id='modalNoDismiss']")&&(this._isModalNonDismissible=!0),this._focusElement=o,r&&this._outletEls.forEach((e=>{e.addEventListener("click",(e=>{var t;const n=null===(t=e.target)||void 0===t?void 0:t.getAttribute("data-no-cool-off");this.open({noCoolOff:n})}))})),this._isModalNonDismissible||(this._exitButtonEl&&this._exitButtonEl.addEventListener("click",(()=>this.close())),this._overlayEl.addEventListener("click",this._handleOverlayClick.bind(this))),this._focusTrap=new $o(this._wrapperEl)}_getOutletEls(){const e=this._el.dataset.outlet,t=[...("default-outlet"===e?this._parentNode:document).querySelectorAll(`[data-modal="${e}"]`)];return t.length||console.warn(`No outlet was found with a data-modal attribute equal to the provided dataCustomOutlet param ${e}`),t}_getTopLevelContainer(){const e=document.querySelector(".top-level-modal-container");if(!e){const e=document.createElement("div");return e.className=ns,document.body.appendChild(e)}return e}_handleOverlayClick(e){e.target===this._wrapperEl||this._wrapperEl.contains(e.target)||this.close()}_onKeyDown(e){const t=jo(e.key),n=t===Yo&&document.activeElement===this._exitButtonEl;(t===Zo||n)&&(this._isModalNonDismissible||this.close(),e.preventDefault())}open(){let{focusElement:e,noCoolOff:t}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(t||!this._shouldHideModal())return this._focusElement=e||this._focusElement,this._previouslyFocusedEl=document.activeElement,this._overlayEl.classList.add(es),this._overlayEl.setAttribute("aria-hidden","false"),this._shouldMoveToTopContainer&&this._topLevelContainer.appendChild(this._el),this.noScroll(),document.addEventListener("keydown",this._onKeyDownEvent),K(this._el,"open"),this._wrapperEl&&this._wrapperEl.focus(),this._focusTrap.init(),this._enablePageViewTracking&&window.tracking?window.tracking.then((e=>{!function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"ajax",n=arguments.length>2?arguments[2]:void 0;e.fireTrackingEvent("PageViewEvent",To(n,t))}(e,"ajax",this._pageKey||`${this._el.id}`)})):(K(this._wrapperEl,"afterOpen"),Promise.resolve());K(this._el,"didNotOpen")}async close(){var e,t,n,r,i;this._events.onBeforeClose&&await(null===(n=this._events)||void 0===n||null===(r=n.onBeforeClose)||void 0===r?void 0:r.call(n,this._wrapperEl));this.isOpen&&(null===(i=this.onClose)||void 0===i||i.call(this));this._overlayEl.classList.remove(es),this._overlayEl.setAttribute("aria-hidden","true"),this._shouldMoveToTopContainer&&(this.setFocus(),this._parentNode.appendChild(this._el)),this.removeNoScroll(),document.removeEventListener("keydown",this._onKeyDownEvent),K(this._el,"close"),null!==(e=this._focusElement)&&void 0!==e&&null!==(t=e.classList)&&void 0!==t&&t.contains("ellipsis-menu__trigger")?(this.setFocus(),this._focusTrap.tearDown()):setTimeout((()=>{this.setFocus(),this._focusTrap.tearDown()}),150)}setFocus(){const e=this._focusElement||this._previouslyFocusedEl;null==e||e.focus()}noScroll(){document.body.classList.add(ts)}removeNoScroll(){document.body.classList.remove(ts)}get isOpen(){return this._overlayEl.classList.contains(es)}}class is{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:10;if(!e)throw new Error('"propName" is a required param for CooloffManager');this.propName=e,this.coolOffTime=60*t*1e3}isCooled(){try{const e=localStorage.getItem(this.propName);if(e){return!(Date.now()-e0&&void 0!==arguments[0]?arguments[0]:null,{globalWindow:n=window}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(Wo(this,xs),Wo(this,ys),Wo(this,ms),Wo(this,gs),Wo(this,vs),Wo(this,ps),Wo(this,fs),Wo(this,hs),Wo(this,ds),Wo(this,ls),this.el=t||document.querySelector(".full-screen-redirect"),this.globalWindow=n,!this.el)throw new Error("No element passed into to full screen redirect component");if(this.isMember="true"===this.el.dataset.isMember,this.impressionTrackingName=this.isMember?"member_full_screen_redirect_modal":"guest_full_screen_redirect_modal",this.sourceTrk=this.el.dataset.sourceTrk||"",this.trafficType=this.el.dataset.type,this.enableForceDestTypeForUrl="true"===this.el.dataset.enableForceDestTypeForUrl,this.isIos="true"===this.el.dataset.isIos,this.trafficType===as?this.redirectUrl=Ko(this,vs,Ss).call(this):this.redirectUrl=Ko(this,fs,Cs).call(this,this.trafficType===ss),!this.redirectUrl)return;this.cooloffPropName=this.el.dataset.cooloffName;const r=this.el.dataset.cooloffInMinutes||60;null!==(e=this.cooloffPropName)&&void 0!==e&&e.length&&(this.redirectCooloffManager=new is(this.cooloffPropName,r)),this.init()}init(){if(this.isCooled()){if(this.isIos)return void Ko(this,ls,bs).call(this);Ko(this,ds,ws).call(this)}}isCooled(){var e;return!this.redirectCooloffManager||(null===(e=this.redirectCooloffManager)||void 0===e?void 0:e.isCooled())}startCooling(){var e;null===(e=this.redirectCooloffManager)||void 0===e||e.setCooloff()}cancel(){Ko(this,ms,_s).call(this),this.startCooling(),this.modal.close()}}function bs(){Ko(this,hs,Ts).call(this)}function ws(){var e;null===(e=this.globalWindow.appDetection)||void 0===e||e.then((e=>{if(null!=e&&e.length){e.find((e=>"com.linkedin.android"===(null==e?void 0:e.id)))&&Ko(this,hs,Ts).call(this)}}))}function Ts(){var e,t;null===(e=this.el.querySelector(".full-screen-redirect__cancel-button"))||void 0===e||e.addEventListener("click",(()=>{this.cancel()})),null===(t=this.el.querySelector(".full-screen-redirect__open-btn"))||void 0===t||t.addEventListener("click",(()=>{Ko(this,ys,As).call(this)})),this.modal=new rs(this.el),this.modal.open(),Ko(this,gs,Is).call(this),Ko(this,xs,Rs).call(this)}function Cs(e){const t=Ko(this,ps,ks).call(this,e);return this.baseUrl.search=t.toString(),this.baseUrl.toString()}function ks(e){var t;const n=(null===(t=this.globalWindow.location)||void 0===t?void 0:t.pathname)||"";this.baseUrl=new URL("https://www.linkedinmobileapp.com"+n);const r=`appupsell_${this.isMember?"m":"g"}_autoredirect_instant${this.sourceTrk}`,i=new URLSearchParams(this.baseUrl.search);if(i.append("appType","FLAGSHIP"),i.append("trk",r),e){const e=new URLSearchParams(this.globalWindow.location.search);e.delete("trk");for(const[t,n]of e.entries())i.append(t,n)}return(this.isIos||this.enableForceDestTypeForUrl)&&i.append("destType","forced_app"),i}function Ss(){const e=new URLSearchParams(this.globalWindow.location.search),t=e.get("session_redirect"),n=t?new URLSearchParams(new URL(t).search):e,r=e.get(cs)||n.get(cs);if(!(!!r||!!n.get("trkEmail")))return;e.delete("trk");const i=Ko(this,ps,ks).call(this);r&&!e.get(cs)&&i.append("midToken",r);for(const[t,n]of e.entries())i.append(t,n);return this.baseUrl.search=i.toString(),this.baseUrl.toString()}function Is(){this.trafficType!==os&&(this.redirectTimeout=setTimeout((()=>{Ko(this,ys,As).call(this),this.isIos&&this.modal.close()}),3e3))}function _s(){this.redirectTimeout&&clearTimeout(this.redirectTimeout)}function As(){this.startCooling(),this.globalWindow.open(this.redirectUrl,"_self")}function Rs(){var e;null===(e=this.globalWindow.tracking)||void 0===e||e.then((e=>{Co(e,[this.impressionTrackingName])}))}function Ns(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Ls(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Os,Ps,Ds,Ms={ADVERTISING:"ADVERTISING",ANALYTICS_AND_RESEARCH:"ANALYTICS_AND_RESEARCH",FUNCTIONAL:"FUNCTIONAL"},Fs="GUEST",Us="MEMBER",Bs=0,Hs=1,Ks=2,Ws=(Ls(us={},Fs,"li_gc"),Ls(us,Us,"li_mc"),us),qs="liap",Vs=function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;for(var a in Ns(this,e),t=t||{},this.consentAvailable=!1,this.issuedAt=n,this.userMode=r,this.optedInConsentMap={},Ms)t[a]=t[a]||Bs,t[a]!==Bs&&(this.consentAvailable=!0),this.optedInConsentMap[a]=t[a]===Hs||t[a]===Bs&&i===Hs},js=(Os=[Ms.ADVERTISING,Ms.ANALYTICS_AND_RESEARCH,Ms.FUNCTIONAL],Ps=[Bs,Hs,Ks,Bs],Ds=new RegExp(["^(\\d+)","(\\d+)","(\\d+)","((?:.|\\s)+)"].join(";")),{parseConsentBody:function(e,t){var n=e.match(Ds);if(!n)return{error:"Invalid consent body encoding",consent:new Vs};for(var r=parseInt(n[1],10),i={},a=0;a>2*a&3];var o=new Date(1e3*parseInt(n[2],10)),s=parseInt(n[3],10),c=Bs;return s>=0&&s<=3&&(c=Ps[s]),{error:null,consent:new Vs(i,o,t,c)}}}),Gs=new RegExp(["^(\\d+)","((?:.|\\s)+)"].join(";")),zs=function(e,t){var n=t.match(new RegExp("(?:^|; *)".concat(e,"=([^;]*)")));return n&&n.length>1?n[1]:null},Xs=function(e,t){var n=zs(Ws[e],t);return n?Ys(n,e):zs(Ws[Fs],t)||zs(Ws[Us],t)?Js(Ks):Js(Hs)},Js=function(e){var t={};for(var n in Ms)t[n]=e;return{error:null,consent:new Vs(t,null,null,e)}},Qs=function(){var e=document.domain.match(/^(?:|.*\.)([^\.]+\.[^\.]+)$/);return e?e[1]:"linkedin-ei.com"},$s=function(e){var t=e===Us?"settings/member-cookies":"mypreferences/g/guest-cookies";return"https://www.".concat(Qs(),"/").concat(t)};var Ys=function(e,t){e&&e.length>1&&'"'==e.charAt(0)&&'"'==e.charAt(e.length-1)&&(e=e.substring(1,e.length-1));var n,r=null;try{r=(n=e,"undefined"==typeof atob&&"undefined"!=typeof Buffer?Buffer.from(n,"base64").toString("binary"):atob(n)).match(Gs)}catch(e){}if(!r)return{error:"Invalid consent encoding",consent:new Vs};var i=parseInt(r[1],10),a=r[2];return 1===i?js.parseConsentBody(a,t):{error:"Invalid encoded consent version ".concat(i),consent:new Vs}},Zs=function(e){var t=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:document.cookie;return e||(e=zs(qs,t)?zs(Ws[Us],t)?Us:Fs:zs(Ws[Fs],t)?Fs:Us),Xs(e,t)}(e),n=t.consent,r=e||n.userMode||Fs;return{showBanner:!t.error&&!n.consentAvailable,userMode:r,managePreferenceUrl:$s(r)}},ec=function(e,t){var n=e.optedInConsentMap,r=e.updateSettings,i=e.userMode;t=t||function(e,t){},e.optedInConsentMap||t("optedInConsentMap is a required option",null);var a=new XMLHttpRequest;a.open("POST","https://www.".concat(Qs(),"/cookie-consent/")),a.setRequestHeader("Content-Type","application/json"),a.withCredentials=!0,a.onload=function(){200!==a.status?t("Request failed with status ".concat(a.status),null):t(null,a)},a.onerror=function(){t("Request failed with an error",a)};var o={UPDATE_SETTINGS:r,USER_MODE:i,CATEGORIES:{}};for(var s in Ms){var c=void 0;!0===n[s]?c=Hs:!1===n[s]&&(c=Ks),o.CATEGORIES[s]=c}a.send(JSON.stringify(o))};function tc(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function nc(e,t){for(var n=0;n0&&void 0!==arguments[0]?arguments[0]:"customEvent",t=document.createEvent("Event");return t.initEvent(e,!0,!0),t}var yc=1,xc=2,Ec=0,bc="artdeco-global-alert__dismiss",wc="artdeco-global-alert-action",Tc="artdeco-global-alert__content";function Cc(e){var t=e.target,n=t instanceof Element&&t.parentNode,r="artdeco-global-alert__responsive-content-container--scrollable-effect";if(n instanceof Element&&t instanceof Element){var i=t.offsetHeight,a=t.scrollHeight,o=t.scrollTop;if(a>i){var s=o+i;n.classList.add("".concat(r)),n.classList.remove("".concat(r,"-only-top")),n.classList.remove("".concat(r,"-only-bottom")),s===i&&n.classList.add("".concat(r,"-only-bottom")),s===a&&n.classList.add("".concat(r,"-only-top"))}}}var kc=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};tc(this,e),this._el=t,this._state=Ec,this._initialHeight=this._el.offsetHeight,this._alertType=this._el.getAttribute(fc.alertType),this._id=this._el.getAttribute(fc.alertId),this._elDismissBtn=this._el.querySelector(".".concat(bc)),this._trackingOptions=n,this.init()}return rc(e,[{key:"_makeAlertAccessible",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];this._el.setAttribute("aria-hidden",!e),this._el.style.setProperty("visibility",e?"visible":"hidden")}},{key:"init",value:function(){var e=this;this._el.style.setProperty("height","0px"),this._makeAlertAccessible(!1),this._el.addEventListener("click",(function(t){var n=t.target;vc(n,bc)?(e.dismissAction(),lc(e)):vc(n,wc)&&e.handleAlertAction(t)}))}},{key:"getTrackingOptions",value:function(){return this._trackingOptions}},{key:"getAlertNode",value:function(){return this._el}},{key:"setHeight",value:function(e){this._el.style.setProperty("height",e),this._el.style.setProperty("visibility","visible")}},{key:"getInitialHeight",value:function(){return this._initialHeight}},{key:"getAlertType",value:function(){return this._alertType}},{key:"getAlertId",value:function(){return this._id}},{key:"isInactive",value:function(){return!(this._state===yc||this._state===xc)}},{key:"visited",value:function(){this._state=yc,this._makeAlertAccessible(!1)}},{key:"activate",value:function(){var e,t,n=this._trackingOptions,r=n.enableControlInteractionEvents,i=n.controlInteractionEventsPrefix;this._state=xc,t={header:{},requestHeader:{},alertUrn:(e=this).getAlertId()},e.getTrackingOptions().trackingInstance.fireTrackingEvent("AlertImpressionEvent",t),this._makeAlertAccessible(!0),this._el.focus();var a,o,s,c=this._el.querySelector(".".concat(Tc));if(c instanceof Element){var u=(a=Cc,o=200,function(){for(var e=arguments.length,t=new Array(e),n=0;n0&&void 0!==arguments[0]&&arguments[0],t={},n=Ms;return Object.keys(n).forEach((function(n){t[n]=e})),{optedInConsentMap:t}}var _c=function(e){ic(n,e);var t=cc(n);function n(){return tc(this,n),t.apply(this,arguments)}return rc(n,[{key:"init",value:function(){uc(ac(n.prototype),"init",this).call(this),Sc().showBanner||this.visited()}},{key:"handleAlertAction",value:function(e){var t=e.target,n=t.getAttribute(fc.actionType),r=Sc().managePreferenceUrl,i=t.getAttribute(fc.actionUrl);i=i&&Y(i)||r;var a=mc(pc);switch(n){case"LINK":i?ec(Ic(),(function(){window.location.assign(i)})):t.dispatchEvent(a);break;case"ACCEPT":ec(Ic(!0),(function(){})),t.dispatchEvent(a);break;case"DENY":ec(Ic(),(function(){})),lc(this),t.dispatchEvent(a)}}}]),n}(kc),Ac="li_alerts";function Rc(){var e=function(e){var t=document.cookie.match("(?:^|;)\\s*".concat(e,"\\s*=\\s*([^;]+)"));return t?t[1]:void 0}(Ac),t=e&&atob(e),n={};try{n=JSON.parse(t)}catch(e){}return n}function Nc(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=btoa(JSON.stringify(e)),n=new Date;n.setTime(n.getTime()+31536e6),document.cookie="".concat(Ac,"=").concat(t,";expires=").concat(n.toUTCString(),";path=/;secure;samesite=none")}function Lc(e){if(!e)return 0;var t=e.toLowerCase(),n=Rc(),r=n&&n[t]||0;return r=parseInt(r,10)}function Oc(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;if(e&&t){var n=e.toLowerCase(),r=Math.min(Lc(n)+t,3),i=Rc();i[n]=r,Nc(i)}}var Pc="LIcookiePolicyDisplays";function Dc(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;try{window.localStorage.setItem(Pc,e)}catch(e){}}var Mc=function(e){ic(n,e);var t=cc(n);function n(){return tc(this,n),t.apply(this,arguments)}return rc(n,[{key:"init",value:function(){var e=Sc();uc(ac(n.prototype),"init",this).call(this),function(e){var t=NaN;try{t=parseInt(window.localStorage.getItem(Pc),10)}catch(e){}!isNaN(t)&&t>=0&&Oc(e,t)}(this._alertType),(e.isActive||Lc(this._alertType)>=3)&&uc(ac(n.prototype),"visited",this).call(this)}},{key:"activate",value:function(){uc(ac(n.prototype),"activate",this).call(this),Dc(Lc(this._alertType)+1),Oc(this._alertType,1)}},{key:"dismissAction",value:function(){uc(ac(n.prototype),"dismissAction",this).call(this),Dc(3),Oc(this._alertType,3-Lc(this._alertType))}}]),n}(kc);var Fc=function(){function e(t){tc(this,e),this._trackingOptions=t}return rc(e,[{key:"getAlertInstance",value:function(e){switch(function(e){return hc[e.getAttribute(fc.alertType)]}(e)){case hc.COOKIE_USAGE:return new Mc(e,this._trackingOptions);case hc.COOKIE_CONSENT:return new _c(e,this._trackingOptions);default:return new kc(e,this._trackingOptions)}}}]),e}();"undefined"!=typeof window&&"undefined"!=typeof document&&window.NodeList&&!NodeList.prototype.forEach&&(NodeList.prototype.forEach=function(e,t){t=t||window;for(var n=0;n0&&void 0!==arguments[0]?arguments[0]:navigator;return"getInstalledRelatedApps"in e?e.getInstalledRelatedApps().then((t=>(this._fireAppDetectionEvent(t,e),t))):Promise.resolve([])}_fireAppDetectionEvent(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:navigator;const n=e.map((e=>({appId:this._formatAppId(e.id),appVersion:this._formatAppVersion(e.id,e.version),platform:e.platform}))),r={requestHeader:{browserId:this._getBrowserId(),userAgent:t.userAgent||""},installedAppList:n},i=this._getQueryParam(window.location.href,"originalReferer");i&&(r.requestHeader.referer=i),this.trackingCallback("AppDetectionEvent",r)}_getBrowserId(){const e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:document).cookie.match(/bcookie=([^;]*)/),t=e?e[1].replace(/^"(.*)"$/,"$1"):"";return t&&t.includes("&")&&t.split("&")[1]||""}_getQueryParam(e,t,n){const r=new RegExp(`([\\?&])${n?t:encodeURIComponent(t)}=([^&#]*)`).exec(e);return r&&(n?r[2]:decodeURIComponent(r[2]))}_formatAppVersion(e,t){return e===zc?"3.*":t}_formatAppId(e){return e===zc?"COM_LINKEDIN_WINDOWS_NEPTUNE":e.toUpperCase().replace(/\./g,"_")}}class Jc{constructor(e){if(!e)throw new Error("JetCore missing required only parameter (`trackingCore`)");this.cwtJetCoreInstance=new Or(e),this.seenErrors=new Set}bind(e,t){e||(e=[]),e.push("guest-seo"),window.addEventListener("error",(n=>{const r={name:n.error.name,message:n.error.message,stack:n.error.stack,fileName:n.filename,lineNumber:n.lineno,columnNumber:n.colno};this.reportError(r,e,t)})),window.addEventListener("unhandledrejection",(n=>{const r={name:n.type,message:n.reason.message,stack:n.reason.stack};this.reportError(r,e,t)}))}reportError(e,t,n){if(!this.seenErrors.has(e.stack))return this.seenErrors.add(e.stack),this.cwtJetCoreInstance.reportError(e,t,{callTreeId:n})}}const Qc="data-tracking-control-name";class $c{constructor(){let{ingraphs:e}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(this.ingraphs=e,!e)throw new Error("ControlInteractionTracking requires an Ingraphs instance");document.body.addEventListener("click",this._handleBodyClicks.bind(this),!0)}_handleBodyClicks(e){const{target:t}=e,n=P(t,"[data-tracking-control-name]");if(null===n)return;const r=n.getAttribute(Qc);n.hasAttribute("data-tracking-client-ingraph")&&this._fireClientIngraphMetric(r)}_fireClientIngraphMetric(e){this.ingraphs.fireCounterIngraphMetric({metricsType:`controlInteractionEvent-${e}`,sendBeacon:!0})}}const Yc="li_trk_navigation",Zc="undefined";function eu(){try{if(typeof window!==Zc&&typeof window.sessionStorage!==Zc)return JSON.parse(window.sessionStorage.getItem(Yc))}catch(e){}}function tu(e){try{typeof window!==Zc&&typeof window.sessionStorage!==Zc&&window.sessionStorage.setItem(Yc,JSON.stringify(e))}catch(e){}}const nu="ExternalNavigationEvent",ru="ControlInteractionEvent",iu="PageVisibilityChangeEvent",au="PageViewHeartbeatEvent",ou="LinksterImpressionEvent",su={FOCUS:"FOCUS",UNFOCUS:"UNFOCUS",KEYBOARD_SUBMIT:"KEYBOARD_SUBMIT",DRAG:"DRAG",PINCH_OPEN:"PINCH_OPEN",PINCH_CLOSE:"PINCH_CLOSE",DOUBLE_PRESS:"DOUBLE_PRESS",LONG_PRESS:"LONG_PRESS",SHORT_PRESS:"SHORT_PRESS",SWIPE_UP:"SWIPE_UP",SWIPE_DOWN:"SWIPE_DOWN",SWIPE_LEFT:"SWIPE_LEFT",SWIPE_RIGHT:"SWIPE_RIGHT",FLICK_UP:"FLICK_UP",FLICK_DOWN:"FLICK_DOWN",FLICK_LEFT:"FLICK_LEFT",FLICK_RIGHT:"FLICK_RIGHT",SHAKE:"SHAKE",KEYBOARD_NEXT:"KEYBOARD_NEXT",HOVER:"HOVER"};function cu(e){return(t=e)?t.split(":").pop():null;var t}function uu(e,t){return e&&t?`urn:li:control:${t}-${e}`:null}class lu{constructor(e){let{globalWindow:t=window,globalDocument:n=document}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(this.window=t,this.document=n,this._trackingCore=e,Object.defineProperty(this._trackingCore,"state",{get:function(){return{currentPageInstance:this.getCurrentContext().pageInstance,previousPageInstance:this.previousAppContext&&this.previousAppContext.pageInstance}}}),this.document){this.document.body.addEventListener("click",(e=>this._handleDocumentClicks(e)),!0),this.document.body.addEventListener("click",(e=>this._handleDocumentClicksBubble(e)),!1);let e="visibilitychange";void 0!==this.document.msHidden&&(e="msvisibilitychange"),this.document.addEventListener(e,(e=>this._handleDocumentVisibilityChange(e)),!0)}this.window&&this.window.addEventListener("beforeunload",(e=>this._handleWindowBeforeUnload(e)),!0)}getAppSeedQps(){let e={};const t=function(){const e=window.location.pathname,t=e+window.location.search,n=window.location.href;let r=eu();if(!r)return null;for(let i=0;i1&&void 0!==arguments[1]?arguments[1]:"full",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];const i=q(this.document),a={pageType:t,trackingInfo:{clientTimestamp:Date.now(),pageTag:i}};n&&(a.trackingInfo.liSugr=(this.document,H("li_sugr")));const o=this._trackingCore.navMetaFromSeed(e,Sr(this.getAppSeedQps()));return this._trackingCore.setCurrentContext(o.to),this.fireNavEvents(o,a,r)}fireNavEvents(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];const r=this._trackingCore.generateNavigationEvent(e),{to:i,from:a,navEventId:o}=e,s=this._trackingCore.generateEnvelope(o,r);s.meta.requestHeader.pageKey=i.pageKey;const c=a&&a.applicationInstance;let u;return c&&(s.meta.header.clientApplicationInstance=c),u=n?this.firePveWithUrlAsPath(i.pageKey,t):this.firePVE(i.pageKey,t),this._trackingCore.host.api.Promise.all([u,this._trackingCore.fireEnvelope(s)])}firePVE(e,t,n){return this._trackingCore.firePVE(e,t,n)}firePveWithUrlAsPath(e,t,n){const r={pageType:"full",totalTime:0,trackingCode:this._trackingCore.getTrackingCode(),trackingInfo:{}},i=this._trackingCore.host.api.assign(r,t),a=this._trackingCore.generateEnvelope("PageViewEvent",i,{context:n});return a.meta.requestHeader.pageKey=e,a.meta.requestHeader.path=this.window.location.href,this._trackingCore.fireEnvelope(a)}_handleWindowBeforeUnload(e){const t=e.target.activeElement;let n=t,r=null,i=!1;if(t){for(;n!==e.currentTarget&&("function"!=typeof n.hasAttribute||!n.hasAttribute("data-tracking-control-name"))&&n.parentElement;)n=n.parentElement;n!==e.currentTarget&&("getAttribute"in n&&(r=n.getAttribute("data-tracking-control-name")),"hasAttribute"in n&&(i=n.hasAttribute("data-tracking-will-navigate")))}i||this.fireExternalNavigationEvent(r)}_handleDocumentClicks(e){let t=P(e.target,"[data-tracking-control-name]");if(!t)return;const n=t.getAttribute("data-tracking-control-name");!t.hasAttribute("data-tracking-no-cie")&&this.fireControlInteractionEvent(n)}_handleDocumentClicksBubble(e){let t=P(e.target,"[data-tracking-control-name]");if(!t)return;const n=t.getAttribute("data-tracking-control-name"),r=t.hasAttribute("data-tracking-will-navigate"),i=t.getAttribute("data-tracking-href")||t.getAttribute("href");r&&!e.defaultPrevented&&this.saveStateForPageDeparture({controlName:n,href:i})}_handleDocumentVisibilityChange(){const e=W(this.document);void 0!==e&&this.firePageVisibilityChangeEvent(e)}saveStateForPageDeparture(e){if(!e)return;!function(e){let t=eu()||[];t.push(e),tu(t)}({controlName:e.controlName,href:e.href,prevInstance:this._trackingCore.getCurrentContext().pageInstance})}firePageVisibilityChangeEvent(e){this._trackingCore.fireEvent(iu,{isVisible:!e})}fireControlInteractionEvent(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:su.SHORT_PRESS,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(!e)throw new Error("controlName is required in TrackingEvents.fireControlInteractionEvent");const r=cu(this._trackingCore.getCurrentContext().pageInstance.pageUrn),i=n.uiControlPageKey||r;this._trackingCore.fireEvent(ru,{controlUrn:uu(e,i),interactionType:su[t]},n)}fireExternalNavigationEvent(e){const t=cu(this._trackingCore.getCurrentContext().pageInstance.pageUrn);this._trackingCore.fireEvent(nu,{triggerControlUrn:uu(e,t)},{},!0)}fireLinksterImpressionEvent(e,t,n){this._trackingCore.fireEvent(ou,{moduleName:e,sourceEntity:t,destinationEntities:n})}convertUuidTrackingIdToBase64(e){try{const t=Bn(e),n=String.fromCharCode.apply(null,t);return btoa(n)}catch(t){return e}}}const du=2e3;function hu(e){const t=W(e);return void 0!==t&&!t}class fu{constructor(e){let{globalDocument:t=document,globalWindow:n=window,heartbeatDuration:r=du}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!t||!n)return;this.tracking=e,this.document=t,this.window=n,this.heartbeatDuration=r,this._firePageViewHeartbeatEvent=this._firePageViewHeartbeatEvent.bind(this);const i=void 0!==this.document.msHidden?"msvisibilitychange":"visibilitychange";this.document.addEventListener(i,(()=>this._documentVisibilityChangeHeartbeatHandler()),!0),this.window.addEventListener("beforeunload",(()=>{hu(this.document)&&this._firePageViewHeartbeatEvent()}),!0),hu(this.document)&&this._startPageViewHeartbeatInterval()}_startPageViewHeartbeatInterval(){this._pageViewHeartbeatStartTime=Date.now(),this._pageViewHeartbeat=this.window.setInterval(this._firePageViewHeartbeatEvent,this.heartbeatDuration)}_documentVisibilityChangeHeartbeatHandler(){const e=W(this.document);void 0!==e&&(e?(this._firePageViewHeartbeatEvent(),clearInterval(this._pageViewHeartbeat)):this._startPageViewHeartbeatInterval())}_firePageViewHeartbeatEvent(){const e=Date.now();this.tracking.fireTrackingEvent(au,{header:{},requestHeader:{},startTime:this._pageViewHeartbeatStartTime},{header:{time:e}}),this._pageViewHeartbeatStartTime=e}}let pu;function vu(){var e;(e="feed-sort")&&(document.cookie=`${e}=; expires=Thu, 01-Jan-1970 00:00:01 GMT; path=/;`)}function gu(e){const t=B(e,"csrfToken",j(H("JSESSIONID")));window.tracking.then((e=>{null==e||e.flushAndClearPersistedEventsOnLogout(),function(e){const t=Y(e);t===e&&Z.redirect(t)}(t)}))}const mu={endpoint:"/li/tscp/sct",retryConfig:{}},yu=document.getElementById("config");let xu,Eu,bu,wu,Tu,Cu,ku,Su,Iu,_u,Au,Ru,Nu,Lu,Ou,Pu,Du,Mu,Fu,Uu,Bu,Hu,Ku,Wu,qu,Vu;function ju(e,t){window[e]&&window[e].resolve?window[e].resolve(t):window[e]=Promise.resolve(t)}yu&&yu.dataset&&(xu=yu.dataset.appId||"seo",Eu=yu.dataset.appVersion||"0.0.0",wu=yu.dataset.browserId,bu=yu.dataset.callTreeId||null,Iu=void 0!==yu.dataset.enablePageViewHeartbeatTracking,Tu=yu.dataset.trackingPageType||void 0,Cu="string"==typeof yu.dataset.jetTags&&yu.dataset.jetTags.split(",")||[],ku=yu.dataset.multiproductName||"undefined-frontend-mpName",Su=yu.dataset.serviceName||"undefined-frontend-serviceName",_u=yu.dataset.pageInstance||void 0,Au=yu.dataset.memberId,Du=void 0!==yu.dataset.isLoggedIn,Ru=yu.dataset.logoutUrl,Nu=void 0!==yu.dataset.isTrackingRetryEnabled,Lu=void 0!==yu.dataset.disableElementInViewportConditionForLazyload,Ou=void 0!==yu.dataset.isLiSugrTrackingEnabled,Pu="true"===yu.dataset.shouldUseFullUrlInPvePath,Mu=yu.dataset.dnaMemberLixTreatment,Fu=yu.dataset.humanMemberLixTreatment,Uu=yu.dataset.dfpMemberLixTreatment,Bu=yu.dataset.webviewDnaMemberLixTreatment,Hu=yu.dataset.webviewHumanMemberLixTreatment,Ku=yu.dataset.webviewDfpMemberLixTreatment,Wu=!isNaN(parseInt(yu.dataset.samplingTimeWindowInMillis))&&parseInt(yu.dataset.samplingTimeWindowInMillis),qu=yu.dataset.syncApfcHeadersLixTreatment,Vu=yu.dataset.syncApfcCbLixTreatment);const Gu={};Lu&&(Gu.disableElementInViewportCondition=Lu),ju("lazyloader",function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return le=le||new ue(e),le}(Gu)),D((()=>{const e=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n=e.querySelector('meta[name="pageKey"]'),r=e.getElementById("config"),i=r&&"true"===r.dataset.disableJsbeaconPagekeySuffix;return n&&n.content?`${n.content}${i||t.skipSuffix?"":"_jsbeacon"}`:""}(document),t=document.querySelector('meta[name="locale"]').content;let n;if(_u&&_u.split(";").length>=2)n=Uint8Array.from(window.atob(_u.split(";")[1]),(e=>e.charCodeAt(0))),n=Array.from(n);else{n=[];for(let e=0;e<16;e++){let t=Su.charCodeAt(e);isNaN(t)&&(t=0),n.push(t)}}const r=function(){let{appId:e="seo",appVersion:t="0.0.0",locale:n,multiproduct:r="undefined-frontend-mpName",service:i="undefined-frontend-serviceName",callTreeId:a=null,endpoint:o="li/track",maxSize:s=10,debounceTime:c=50,disableCompression:u=!1,customDelegate:l={},retryConfig:d=null,isLoggedIn:h=!1,abuseDeviceSignalCollectionConfig:f={},customTransporterHosts:p}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const v={appId:e,appVersion:t,locale:n,multiproduct:r,service:i,endpoint:o,disableCompression:u,abuseDeviceSignalCollectionConfig:f,retryConfig:d,api:{AbortController:AbortController,location:window.location,document:document,performance:performance,PerformanceObserver:PerformanceObserver,Promise:Promise,assign:Object.assign,fetch:fetch,sendBeacon:navigator.sendBeacon.bind(navigator)},batching:{maxSize:s,debounceTime:c}};v.abuseDeviceSignalCollectionConfig.disablePerfMarkerOptimization=!0,a&&(v.treeID=a);const g=new xr(v);return new Rr(g,{customTransporterHosts:p,preTransporter:e=>({...e,meta:ko(e.meta)}),shouldAnonymizeMemberId:()=>!!d&&!h,...l})}({appId:xu,appVersion:Eu,locale:t,multiproduct:ku,service:Su,callTreeId:bu,retryConfig:Nu?{}:null,endpoint:"/li/track",abuseDeviceSignalCollectionConfig:{dnaMemberLixTreatment:Mu,humanMemberLixTreatment:Fu,dfpMemberLixTreatment:Uu,webviewDnaMemberLixTreatment:Bu,webviewHumanMemberLixTreatment:Hu,webviewDfpMemberLixTreatment:Ku,samplingTimeWindowInMillis:Wu,syncFingerprintingEnabledWithHeadersLixTreatment:qu,syncFingerprintingEnabledWithCbLixTreatment:Vu},isLoggedIn:Du,disableCompression:!1,customTransporterHosts:{sponsoredTransporter:mu}});r.fireTrackingEvent=r.fireEvent,r.generateTrackingId=Un,r.generateBase64UUID=Fn,r.generateByteUUID=Dn;const i={applicationUrn:`urn:li:application:(${ku},${Su})`,version:Eu,trackingId:n};r.updateAppState({applicationViewerUrn:Io({browserId:wu,isLoggedIn:Du,memberId:Au}),clientApplicationInstance:i});const a=new lu(r);r.fireControlInteractionEvent=a.fireControlInteractionEvent.bind(a),r.fireLinksterImpressionEvent=a.fireLinksterImpressionEvent.bind(a),r.convertUuidTrackingIdToBase64=a.convertUuidTrackingIdToBase64.bind(a),Nu&&r.checkAndEnablePersistentRetry(),a.navigate(e,Tu,Ou,Pu);const o=new Ao(window.IntersectionObserver,r,{componentList:[...document.querySelectorAll("[data-impression-id]")],onImpression:Ro,onUnobservation:No});Iu&&new fu(r),ju("tracking",r),ju("impressionTracking",o),ju("pemTracking",new O("Default - PEM Tracking Instance",((t,n,i)=>{r.fireEvent(t,n,{context:{pageKey:e,pageInstance:i}})})));const s=new La({"app-render-mode":"SSRSEO","is-app-render-failed":!1},{"is-single-page-app":!1,"navigation-timing-only":!0,"enable-rs-timing":!0,"enable-cdn-tracking":!0,"enable-pop-tracking":!0,"request-sampling-rate":1,"beacon-timeout":500,"web-ui-framework":"DUST"},r);s.end(s.start()),s.observeWebVitals();new Jc(r).bind(Cu,bu);const c=document.querySelector('meta[name="clientSideIngraphs"]');if(c){const{gaugeMetricEndpoint:t,counterMetricEndpoint:n}=c.dataset,i=r.getCurrentContext().pageInstance,a=new de({counterMetricEndpoint:n,gaugeMetricEndpoint:t,pageKey:e,pageInstanceHeader:i});new $c({ingraphs:a}),ju("ingraphTracking",a),a.firePageLoadTimeMetric(),a.fireSeoPageViewMetric()}if(Ho(),document.querySelector(".global-alert-banner")){new Gc({enableControlInteractionEvents:!0,trackingInstance:r})}if(!!document.head.querySelector('link[rel="manifest"]')){ju("appDetection",new Xc(((e,t)=>{r.fireTrackingEvent(e,t)})).getInstalledApps())}!function(){const e=document.head,t=document.getElementById("config"),n=t&&t.getAttribute("data-msafdf-lib");if(n){const t=document.createElement("script");t.setAttribute("type","text/javascript"),t.setAttribute("src",Y(n)),t.setAttribute("data-test-id","msafdf"),t.onload=()=>{window.mouselog.init()},e.appendChild(t)}}(),Du&&Ru&&function(e){BroadcastChannel&&(pu=new BroadcastChannel("LI_LOGOUT"),window.BROADCAST_CHANNEL=pu,pu.addEventListener("message",(t=>{t&&"LOGOUT"===t.data.message&&(vu(),gu(e))})))}(Ru);const u=document.querySelector(".full-screen-redirect");u&&new Es(u)}))}();