!function(){"use strict";const e="See https://go/pem/degradation-tracking-user-guide for instrumentation instructions",t="x-li-pop",n="x-msedge-ref";class r extends class{constructor(e,t,n){this._collectedFeatureMetrics=e,this._fireEventCallback=t,n(this.produceMetricEvent.bind(this),6e4)}}{produceMetricEvent(){this._collectedFeatureMetrics.flushMetrics().forEach((e=>{const t=[];e.featureCallCounts.forEach((e=>{t.push({featureProductName:e.featureMetricIdentifier.productName,featureKey:e.featureMetricIdentifier.featureKey,degradedDownstreamCallCount:e.failedApiCallCount,totalDownstreamCallCount:e.successfulApiCallCount+e.failedApiCallCount,pointOfPresenceId:e.featureMetricIdentifier.pointOfPresenceId,responseErrorType:e.featureMetricIdentifier.responseErrorType})}));const n={header:{},requestHeader:{},time:Date.now(),metrics:t};this._fireEventCallback("FeatureDegradationMetricEvent",n,e.pageInstance)}))}}function i(e){return JSON.stringify(e,Object.keys(e).sort())}class o 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.successfulApiCallCount++))}trackFailedFeatureApiCall(e){this.trackMetric(e,(e=>e.failedApiCallCount++))}trackMetric(e,t){const n=i(e);if(this.featureCallCounts.has(n))t(this.featureCallCounts.get(n));else{const r=new a(e);t(r),this.featureCallCounts.set(n,r)}}}class a extends class{constructor(e){this.featureMetricIdentifier=e}}{constructor(){super(...arguments),this.successfulApiCallCount=0,this.failedApiCallCount=0}}class s extends class{flushMetrics(){const e=[...this.metrics.values()];return this.metrics=new Map,e}}{constructor(){super(...arguments),this.metrics=new Map}incrementSuccessfulFeatureApiCall(e,t){this.incrementMetric(t,(t=>t.trackSuccessfulFeatureApiCall(e)))}incrementFailedFeatureApiCall(e,t){this.incrementMetric(t,(t=>t.trackFailedFeatureApiCall(e)))}incrementMetric(e,t){const n=i(e);if(this.metrics.has(n))t(this.metrics.get(n));else{const r=new o(e);t(r),this.metrics.set(n,r)}}}function c(e){return"number"==typeof e&&isFinite(e)&&Math.floor(e)===e}var u;!function(e){e.ProductName="productName",e.UntrackedResponseCodes="untrackedResponseCodes",e.TrackedResponseCodes="trackedResponseCodes",e.ClientSensorGroupName="clientSensorGroupName"}(u||(u={}));const l=new Set(Object.values(u));class d extends Error{constructor(e){super(e),Object.setPrototypeOf(this,d.prototype)}}function h(e){return 0===e.length||!e.trim()}function f(t){if("string"!=typeof t)throw new d("The product name must be a string. ".concat(e,"."));if(h(t))throw new d("No product name was specified. Please configure a defaultProductName or specify it per instrumented API "+"call. ".concat(e,"."));return t}function p(t){if("string"!=typeof t)throw new d("Keys must be strings. ".concat(e,"."));if(h(t))throw new d("Keys should not be blank. ".concat(e,"."));if(/[^a-z0-9-]/.test(t))throw new d("'".concat(t,"' can only contain lowercase alphanumeric characters and dashes (-). ").concat(e,"."));return t}class v{constructor(t,n,r){if(this._featureKey=p(t),this._degradationKey=p(n),!r)return this._untrackedResponseCodes=[],void(this._trackedResponseCodes=[]);if("object"!=typeof r)throw new d("DegradationTrackingMetadata options should be an object. ".concat(e,"."));const i=r.productName;i&&(this._productName=f(i));const o=r.untrackedResponseCodes,a=r.trackedResponseCodes;if(o&&a)throw new d("You may only specify one of the options: ".concat(u.UntrackedResponseCodes," or ")+"".concat(u.TrackedResponseCodes," to exclude or include response codes from counting ")+"as the degraded state. ".concat(e,"."));!function(t,n){const r=(t,n)=>{if(!c(t)||t<=0||t>999)throw new d("Please only specify positive integer response codes between 1 and 999 for the ".concat(n," option. ")+"".concat(t," was specified. ").concat(e,"."));if(429===t||999===t)throw new d("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 ".concat(n," options."));if(n===u.UntrackedResponseCodes&&(t<500||t>=600))throw new d("For server responses that have a status code, PEM does not consider non-5xx as degradations by default "+"anymore. ".concat(t," is not considered a degradation unless you explicitly add it to the ")+"".concat(u.TrackedResponseCodes," option. Please remove ").concat(t," from the ")+"".concat(u.UntrackedResponseCodes," option. ").concat(e,"."))};if(void 0!==t&&!Array.isArray(t))throw new d("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 ".concat(u.UntrackedResponseCodes," option. ")+"".concat(e,"."));if(void 0!==n&&!Array.isArray(n))throw new d("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 "+"".concat(u.TrackedResponseCodes," option. ").concat(e,"."));t&&t.forEach((e=>r(e,u.UntrackedResponseCodes)));n&&n.forEach((e=>r(e,u.TrackedResponseCodes)))}(o,a),this._untrackedResponseCodes=o||[],this._trackedResponseCodes=a||[],this._clientSensorGroupName=r.clientSensorGroupName,function(t){Object.keys(t).forEach((t=>{if(!l.has(t))throw new d("An unsupported degradation tracking option '".concat(t,"' was provided. Please fix or remove it. ")+"".concat(e))}))}(r)}static isDegradationTrackingMetadata(e){return null!=e&&Object.getOwnPropertyNames(v.prototype).every((t=>Object.hasOwnProperty.call(Object.getPrototypeOf(e),t)))}get featureKey(){return this._featureKey}get degradationKey(){return this._degradationKey}get productName(){return this._productName}get untrackedResponseCodes(){return this._untrackedResponseCodes}get trackedResponseCodes(){return this._trackedResponseCodes}get clientSensorGroupName(){return this._clientSensorGroupName}}function g(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],o=t.indexOf(n);o>=0?t.splice(o,1):i.push(n)}return i.reverse().join("/")}function m(e,r){if(e instanceof Error){if("AbortError"===e.name)return"CLIENT_ABORTED";if(e instanceof TypeError&&(e.message.indexOf("Network request failed")>=0||e.message.indexOf("NetworkError when attempting to fetch resource")>=0||e.message.indexOf("Failed to fetch")>=0))return"NETWORK_ERROR"}else{if("timeout"===e.statusText)return"CLIENT_TIMEOUT";if(0===e.status&&"abort"===e.statusText)return"CLIENT_ABORTED";if((i=e.status)>=500&&i<600)return function(e){if(e){if(e.has("x-li-fabric"))return"SERVER_ERROR";if(e.has(t))return"TRAFFIC_L0_TO_L1_ERROR";if(e.has(n))return"TRAFFIC_AFD_TO_L0_ERROR"}return"SERVER_ERROR"}(r);if("readyState"in e&&0===e.readyState)return"NETWORK_ERROR"}var i;return"UNCLASSIFIED"}var y;!function(e){e.ProductName="productName",e.CustomTrackingId="customTrackingId",e.ClientSensorGroupName="clientSensorGroupName",e.AdditionalDegradedResponseCodes="additionalDegradedResponseCodes",e.NonDegradedResponseCodes="nonDegradedResponseCodes",e.DegradationKeyOverrides="degradationKeyOverrides"}(y||(y={}));const b=new Set(Object.values(y));class E{constructor(t,n,r){if(this._featureKey=p(t),this._defaultDegradationKey=p(n),!r)return this._nonDegradedResponseCodes=new Set,this._additionalDegradedResponseCodes=new Set,void(this._degradationKeyOverrides=[]);if("object"!=typeof r)throw new d("FailureTrackingMetadata options should be an object. ".concat(e,"."));const i=r.additionalDegradedResponseCodes,o=r.nonDegradedResponseCodes;this.validateResponseCodes(i,o),this._nonDegradedResponseCodes=new Set(o),this._additionalDegradedResponseCodes=new Set(i),this._degradationKeyOverrides=r.degradationKeyOverrides||[],this._clientSensorGroupName=r.clientSensorGroupName,this._customTrackingId=r.customTrackingId;const a=r.productName;a&&(this._productName=f(a)),function(t){Object.keys(t).forEach((t=>{if(!b.has(t))throw new d("An unsupported failure tracking option '".concat(t,"' was provided. Please fix or remove it. ")+"".concat(e))}))}(r)}static isFailureTrackingMetadata(e){return null!=e&&Object.getOwnPropertyNames(E.prototype).every((t=>Object.hasOwnProperty.call(Object.getPrototypeOf(e),t)))}get featureKey(){return this._featureKey}get defaultDegradationKey(){return this._defaultDegradationKey}get productName(){return this._productName}get nonDegradedResponseCodes(){return this._nonDegradedResponseCodes}get additionalDegradedResponseCodes(){return this._additionalDegradedResponseCodes}get degradationKeyOverrides(){return this._degradationKeyOverrides}get customTrackingId(){return this._customTrackingId}get clientSensorGroupName(){return this._clientSensorGroupName}validateResponseCodes(t,n){const r=(t,n)=>{if(!c(t)||t<=0||t>999)throw new d("Please only specify positive integer response codes between 1 and 999 for the ".concat(n," option. ")+"".concat(t," was specified. ").concat(e,"."));if(429===t||999===t)throw new d("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 ".concat(n," options."));if(n===y.NonDegradedResponseCodes&&(t<500||t>=600))throw new d("For server responses that have a status code, PEM does not consider non-5xx as degradations by default "+"anymore. ".concat(t," is not considered a degradation unless you explicitly add it to the ")+"".concat(y.AdditionalDegradedResponseCodes," option. Please remove ").concat(t," from the ")+"".concat(y.NonDegradedResponseCodes," option. ").concat(e,"."))};if(void 0!==n&&!Array.isArray(n))throw new d("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 ".concat(y.NonDegradedResponseCodes," option. ")+"".concat(e,"."));if(void 0!==t&&!Array.isArray(t))throw new d("Please specify an array of positive integer response codes between 1 and 999 for the response codes that should also be considered as the degraded state(s) for the "+"".concat(y.AdditionalDegradedResponseCodes," option. ").concat(e,"."));null==n||n.forEach((e=>r(e,y.NonDegradedResponseCodes))),null==t||t.forEach((e=>r(e,y.AdditionalDegradedResponseCodes)));const i=new Set(t),o=new Set(n);if([...i].some((e=>o.has(e))))throw new d("Response codes can't be both degraded and non-degraded. Please ensure that your additionalDegradedResponseCodes and nonDegradedResponseCodes "+"don't have any overlapping response codes. ".concat(e,"."))}}class w{constructor(t,n){if(this._additionalDegradedResponseCodes=new Set,this._degradationKeyByResponseCode=new Map,!v.isDegradationTrackingMetadata(t)&&!E.isFailureTrackingMetadata(t))throw new d("We encountered a bug where we forgot to provide the tracking metadata as an argument. Please report it to the #pem team.");if(!n)throw new d("We encountered a bug where we forgot to provide the product name as an argument. Please report it to the #pem team.");this._featureKey=t.featureKey,this._productName=n,this._clientSensorGroupName=t.clientSensorGroupName,v.isDegradationTrackingMetadata(t)?(this._nonDegradedResponseCodes=new Set(t.untrackedResponseCodes),this.processTrackedResponseCodes(t.trackedResponseCodes,t.degradationKey),t.trackedResponseCodes.length||(this._defaultDegradationKey=t.degradationKey)):(this._nonDegradedResponseCodes=t.nonDegradedResponseCodes,this._defaultDegradationKey=t.defaultDegradationKey,this._customTrackingId=t.customTrackingId,t.additionalDegradedResponseCodes.forEach((t=>{if(this._nonDegradedResponseCodes.has(t))throw new d("You attempted to specify ".concat(t," as an additional degraded response code for the '").concat(this.featureKey,"' feature, ")+"however it is also specified in the non-degraded response codes for that feature. Please decide whether "+"you want to consider ".concat(t," responses a degraded state or not. ").concat(e,"."));this._additionalDegradedResponseCodes.add(t)})),this.initializeDegradationKeyOverrides(t.degradationKeyOverrides))}mergeTrackingMetadata(t){const{untrackedResponseCodes:n,trackedResponseCodes:r,degradationKey:i,featureKey:o}=t;if(n.length){if(this._nonDegradedResponseCodes.size)throw new d("The ".concat(o," has multiple DegradationTrackingMetadata with the ")+"".concat(u.UntrackedResponseCodes," option. Please combine the degradation keys and ")+"the response codes into one tracking metadata instead. ".concat(e,"."));this._nonDegradedResponseCodes=new Set(n)}if(this.processTrackedResponseCodes(t.trackedResponseCodes,i),!r.length){if(this._defaultDegradationKey)throw new d("'".concat(this._defaultDegradationKey,"' has already been set as the degradation key for the '").concat(o,"' ")+"feature, so we can't use '".concat(i,"' as well. Please combine the two degradation tracking ")+"metadata objects together. ".concat(e,"."));this._defaultDegradationKey=i}}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}isCountedAgainstAvailability(e,t){return null!==e&&("CLIENT_ABORTED"!==e&&(null==t||this.isDegradedResponseCode(t)))}isDegradedResponseCode(e){if(this._degradationKeyByResponseCode.has(e))return!0;if(!this._defaultDegradationKey)return!1;if(this._additionalDegradedResponseCodes.has(e))return!0;const t=e>=500&&e<600,n=this._nonDegradedResponseCodes.has(e);return t&&!n}processTrackedResponseCodes(t,n){t.forEach((t=>{if(this._nonDegradedResponseCodes.has(t))throw new d("You attempted to specify ".concat(t," as a tracked response code for the '").concat(this.featureKey,"' feature, ")+"however it is also specified in the untracked response codes for that feature. Please decide whether "+"you want to consider ".concat(t," responses a degraded state or not. ").concat(e,"."));if(this._degradationKeyByResponseCode.has(t))throw new d("".concat(t," was specified multiple times in ").concat(this.featureKey,"'s ")+"".concat(u.TrackedResponseCodes,". Each tracked status code should only be ")+"specified once per degradation key. ".concat(e,"."));this._degradationKeyByResponseCode.set(t,n)}))}initializeDegradationKeyOverrides(t){t.forEach((t=>{if(!t.responseCodesToOverride||!t.degradationKey||!Array.isArray(t.responseCodesToOverride)||"string"!=typeof t.degradationKey)throw new d("Degradation key overrides must consist of an array of responseCodesToOverride "+"and a string degradationKey. ".concat(e,"."));new Set(t.responseCodesToOverride).forEach((e=>{if(!this.isDegradedResponseCode(e))throw new d("A degradation key override was specified for ".concat(e,", 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(e,t.degradationKey)}))}))}}class C{constructor(e,t,n){this._featureMetricStore=new s,this._defaultProductName=e,this._fireEventCallback=t,this._jetErrorCallback=n;this._metricSender=new r(this._featureMetricStore,t,((e,t)=>{window.setInterval((()=>e()),t)})),window.addEventListener("beforeunload",(()=>this._metricSender.produceMetricEvent()))}trackFeatureDegradationsForFetch(e,t,n,r,i){let o,a=null;const s=new Map,c=this._createFailureProcessingMetadata(n);return t=this._getAndValidateUrlEntityIDs(t),r.then((e=>{a=e.status,!1===e.ok&&(e.headers.forEach(((e,t)=>s.set(t.toLowerCase(),e))),o=e)})).catch((e=>{throw o=e,e})).finally((()=>{this._trackResponse(e,a,t,c,i,s,o)}))}trackFeatureDegradationsForJQueryAjax(e,t,n,r,i,o){const a=t.status,s=t.getAllResponseHeaders(),c=new Map;s&&s.trim().split(/[\r\n]+/).forEach((e=>{const t=e.split(": "),n=t.shift();if(n){const e=t.join(": ");c.set(n.toLowerCase(),e)}}));const u=o?null:t,l=this._createFailureProcessingMetadata(r);n=this._getAndValidateUrlEntityIDs(n),this._trackResponse(e,a,n,l,i,c,u)}_trackResponse(e,r,i,o,a,s,c){if(429===r||999===r)return;const u=c?m(c,s):null,l=s.get(t)||null,d=s.get("x-li-uuid")||null,h=s.get(n)||null,f=new Set,p=new Set;if(o.forEach((e=>{f.add(e.productName),p.add(e.featureKey),e.isCountedAgainstAvailability(u,r)?this._featureMetricStore.incrementFailedFeatureApiCall({featureKey:e.featureKey,productName:e.productName,pointOfPresenceId:l,responseErrorType:u},a):this._featureMetricStore.incrementSuccessfulFeatureApiCall({featureKey:e.featureKey,productName:e.productName,pointOfPresenceId:l},a)})),c&&u){this._reportErrorIfUnclassified(c,u,r,f,p);const t=function(e,t,n,r,i,o,a,s){if(!(e&&e.trim()&&t&&Array.isArray(t)))return[];const c=g(e,o?o.map((e=>encodeURIComponent(e))):[]),u=[];return t.forEach((e=>{const t=e.getDegradationKey(r),o=e.isCountedAgainstAvailability(n,r),l={endpointPath:c,degradationKey:t,responseErrorType:n,isCountedAgainstAvailability:o};r&&(l.responseCode=r),i&&(l.responseCallTreeId=i),a&&(l.pointOfPresenceId=a),s&&(l.microsoftEdgeReference=s),u.push({header:{},requestHeader:{},productName:e.productName,featureKey:e.featureKey,failedDownstreamRequests:[l]})})),u}(e,o,u,r,d,i,l,h);t.forEach((e=>{this._fireEventCallback("FeatureDegradeEvent",e,a)}))}}_reportErrorIfUnclassified(e,t,n,r,i){var o;if((0===n||null==n)&&"UNCLASSIFIED"===t){const t=["noise","pem-unclassified-error"];let n;r.forEach((e=>t.push("pem-product-".concat(e)))),i.forEach((e=>t.push("pem-feature-".concat(e)))),n=e instanceof Error?e:new Error("Could not classify jQuery response: ".concat(JSON.stringify(e))),null===(o=this._jetErrorCallback)||void 0===o||o.call(this,n,t,!1)}}_createFailureProcessingMetadata(t){if(!t||!Array.isArray(t)||!t.length)throw new d("Please specify a non-empty array of degradation tracking metadata. ".concat(e,"."));const n=new Map;return t.forEach((t=>{if(!v.isDegradationTrackingMetadata(t))throw new d("Please use DegradationTrackingMetadata to specify the degradations. ".concat(e,"."));const r=f(t.productName||this._defaultProductName),i={productName:r,featureKey:t.featureKey},o=n.get(i);o?o.mergeTrackingMetadata(t):n.set(i,new w(t,r))})),[...n.values()]}_getAndValidateUrlEntityIDs(t){if(!Array.isArray(t))throw new d("Please specify the queried IDs to remove from the request URL, or use an empty array if there "+"are none. ".concat(e,"."));return t}}function k(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 I(e){"complete"===document.readyState?e():window.addEventListener("load",(()=>{setTimeout(e)}))}function T(e){return null==e||"object"!=typeof e?[]:Array.prototype.slice.call(e)}function S(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,o=t.left<=r&&t.left+t.width>=0;return i&&o}function _(e,t,n){const r=new RegExp("([\\?&])".concat(n?t:encodeURIComponent(t),"=([^&#]*)")).exec(e);return r&&(n?r[2]:decodeURIComponent(r[2]))}function A(e,t,n,r){if(!e||!t)throw new Error("Required param of addQueryParam missing: url = ".concat(e,",  key = ").concat(t));t=encodeURIComponent(t),n=encodeURIComponent(n);const i=_(e,t,!0);if(i)return r?e.replace(i,n):e;{const r=e.indexOf("?");let[i,o]=e.split("#"),a="&";return r<0?a="?":r===e.length-1&&(a=""),o&&(o="#".concat(o)),"".concat(i).concat(a).concat(t,"=").concat(n).concat(o||"")}}function N(e){const t=document.cookie.match(new RegExp("(^| )"+e+"=([^;]+)"));return t&&t[2]}function R(e){return void 0!==e.msHidden?e.msHidden:void 0!==e.hidden?e.hidden:void 0}function O(e){return e&&'"'===e.charAt(0)&&'"'===e.charAt(e.length-1)?e.slice(1,-1):e}function P(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 M=/ /g,L=/[\s\u0000<>"]|%00/,D=/\\/,x=/([.]|%2e){2}/i;let U=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 F(e){let t,n="invalid://";if("string"!=typeof e)return P("jSecure Warning: url must be a string","error"),n;if(t=e.trim(),t.indexOf(" ")>-1&&(P("jSecure Warning: url should not contain spaces: "+e,"warn"),t=t.replace(M,"+")),!U.test(t))return P("jSecure Error: URL should be absolute with allowed schemas, relative, a hash fragment or query string. "+e,"error"),n;if(L.test(t))return P("jSecure Error: not valid url character found in url: "+e,"error"),n;let r,i=t.split("?")[0],o=!1;try{r=decodeURI(i)}catch(e){o=!0}return o?(P("jSecure Error: malformed url path detected: "+i),n):D.test(i)||x.test(i)||x.test(r)?(P("jSecure Error: malicious data found in url path: "+i,"error"),n):e}const H={redirect(e){window&&(window.location.href=e)}};function B(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function K(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?B(Object(n),!0).forEach((function(t){q(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):B(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function q(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function j(e){let{method:t="GET",headers:n={},sendCookies:r=!0,skipCsrfToken:i=!1,postData:o,isPemEnabled:a=!1,pemDegradationTrackingMetadata:s=[],pemEntityIds:c=[]}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const u=new Promise(((a,s)=>{const c=new XMLHttpRequest;if(c.addEventListener("load",(function(){if(c.status>=200&&c.status<300||304===c.status)a({status:c.status,responseText:c.responseText});else{const n=new Error("".concat(t," request for ").concat(e," has failed with status code ").concat(c.status));n.response={status:c.status,responseText:c.responseText};const r=c.getAllResponseHeaders();r&&(n.response.rawHeaders=r),s(n)}})),c.addEventListener("error",(function(e){s(e)})),c.open(t,e,!0),c.withCredentials=r,Object.keys(n).forEach((e=>{c.setRequestHeader(e,n[e])})),!i){const e=N("JSESSIONID");e&&c.setRequestHeader("Csrf-Token",O(e))}c.send(o)}));return a&&(s.length?V(u,e,c,s):console.warn("Please set the value for the option pemDegradationTrackingMetadata when PEM is enabled.")),u}function V(e,t,n,r){try{const i=e.then((function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return new Response(e,{status:e.status})})).catch((function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return new Response(e.response,{status:e.response?e.response.status:500,headers:e.response&&e.response.rawHeaders?z(e.response.rawHeaders):new Headers})}));window.tracking.then((e=>{window.pemTracking.then((o=>{o.trackFeatureDegradationsForFetch(t,n,r,i,e.state.currentPageInstance)}))}))}catch(e){}}function z(e){const t=new Headers;return e&&e.trim().split(/[\r\n]+/).forEach((e=>{const n=e.trim().split(": "),r=n.shift();if(r){const e=n.join(": ");t.set(r.toLocaleLowerCase(),e)}})),t}const W={className:"class"},G="A path to the asset must be provided";function J(e){return(new DOMParser).parseFromString(e,"image/svg+xml").firstChild}function Q(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Object.keys(t).map((n=>{const r=W[n]||n;e.setAttribute(r,t[n])})),e}function X(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(G));const n=K({focusable:"false"},t);return j(e,{sendCookies:!1,skipCsrfToken:!0}).then((e=>J(e.responseText))).then((e=>Q(e,n)))}(t,n?{className:n}:{}).then((t=>(e.appendChild(t),e.setAttribute("aria-hidden","true"),t)))}const Y=["IMG","IFRAME","VIDEO","SCRIPT"],$="SCRIPT";class Z{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:o="data-ghost-url",lazyloadClassName:a="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=a,this.lazyloadedClassName=s,this.ghostUrlAttributeName=o,this.lazyloadElSelector="[".concat(this.delayedUrlAttributeName,"], [").concat(this.embeddedSrcAttributeName,"], .").concat(this.lazyloadClassName),this.boundLoadVisibleImages=this.loadVisibleImages.bind(this),this.boundEvents=!1,this.scriptLoadPromises={},this.ghostClassesAttributeName=i,this.disableElementInViewportCondition=l,I((()=>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=T(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===$){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",F(n));const t=e.getAttribute(this.ghostClassesAttributeName);t&&t.length&&t.split(" ").forEach((t=>{e.classList.add(t)})),this.updateBusyState(e)}if(e.tagName===$){const{moduleId:t}=e.dataset;this.getLazyLoadedJavascriptModule(t).reject(new Error("Could not lazy load JS with src ".concat(e.src)))}}loadVisibleImages(){let e=0;for(;e<this.elementCache.length;){let t=this.elementCache[e];if(t.tagName===$||t.classList.contains(this.onLoadClassName)||this.disableElementInViewportCondition||S(t)){const n=t.hasAttribute(this.embeddedSrcAttributeName)&&this._dropHttp(t.getAttribute(this.embeddedSrcAttributeName))||t.getAttribute(this.delayedUrlAttributeName);n&&"ICON"===t.tagName?X(t,n).then((e=>{this.lazyloadElOnload(e),this.lazyloadElOnload(t)})).catch((()=>this.lazyloadOnerror(t))):n&&-1!==Y.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=F(n)):n&&t.hasAttribute(this.delayedBackground)?(t.style.backgroundImage='url("'.concat(F(n),'")'),this.lazyloadElOnload(t)):this.lazyloadOnerror(t),"VIDEO"===t.tagName&&(t.poster=F(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!==$&&(null==e||e.setAttribute("aria-busy",t))}}let ee=null;const te=["binlar","ask\\ jeeves","mozilla\\/4\\.0\\ \\(compatible\\;\\ msie\\ 6\\.0\\;\\ windows\\ nt\\ 5\\.1\\;1813\\)","companydatatree","genieo","microsoft\\+scheduled\\+cache\\+content\\+download\\+service","liferea","superfeedr","ez\\ publish\\ link\\ validator","htmlparser","argclrint","linkwalker","webtool","ask\\+jeeves","stackrambler","paros","^fdm\\+3\\.x","ms\\ search","indy\\+library","seznam","sitevigil","intergator","freedom(?!from)","google\\+page\\+speed\\+insights","znajdzfoto\\/image","riddler\\.io","^java\\/","twiceler","httpunit","ktxn","webcopier","mna\\+digital\\+circonus\\+check","stuff(?!nz)","updatepatrol","feedburner","hp\\+sitescope","crawler","gigablastopensource\\/","rpt\\-http","^fdm\\ 3\\.x","libwww\\-perl","((?=pital)|ca(?=pital))pita","bingpreview","oia\\.owa","^ahc\\/","thunderstone","microsoft\\ bits","alertsite","^python\\-requests\\/","dts\\ agent","tangjiutao","^inmon","linkscan","alexa\\ site\\ audit","webtrends(?!clientlibrary)","chkd","joedog","daumoa","typhoeus","loadimpactpageanalyzer","google\\ news","coldfusion","mna\\ digital\\ circonus\\ check","alexa\\+site\\+audit","getright","appengine","(?=crawler)crawl","ibot(?!ta)","jobo","python\\-httplib","powermarks","site24x7","proximic","yahoo\\+pipes","((?=aporter)|oper(?=aportable))aport","web\\+downloader","check\\_http","grabber","topsy\\.com\\/butterfly\\/","harvest","^inagist\\+url\\+resolver","fast","crescent(?!\\ build|\\+build)","sohu(?!ennews|video|news)","favorg","bloglines","fetch(?!tv)","wapt","microsoft\\+url\\+control","urchin","ning\\/1\\.0","pluck","google\\+news","spider","\\(compatible\\;\\+optimizer\\)","moreover\\/5\\.1","js\\-kit","server\\ density\\ external\\ llama","facebookexternalhit","ultraseek","catchpoint","yandex(?!\\ browser|\\+browser|mail)","echo(?!arena|fon|star)","^worldwatch\\/","combine(?!d)","winhttprequest","ez\\+publish\\+link\\+validator","jakarta","^webnotifier\\/","webmetrics","teoma","nerdbynature","ms\\+frontpage","nielsen","sucker","engagebdr","yahoofeedseeker","dts\\+agent","googleapps","holmes","plumtree","www\\-mechanize","google\\-hoteladsverifier","pingdom","drupal","sina\\_weibo","google\\ page\\ speed\\ insights","lisa","w3c\\_validator","^scan","yeti","snoopy","khte","trovit","atomz","httpcomponents","ms\\+search","google\\-http\\-java\\-client","spi\\_der","bubing","websitepulse","microsoft\\+bits","http\\_request2","ieautodiscovery","siteimprove","curl(?!ings)","go\\+1\\.1\\+package\\+http","^crowsnest\\/","email\\ exractor","utorrent","yahoocachesystem","shopwiki","justview","googlesecurityscanner","msnptc","rkg\\+url\\+verifier","monitor","bitvouseragent","((?=wormgame))worm","talktalk","help\\.coccoc\\.com","yahoo\\ pipes","heritrix","nutch","argus","kulturarw3","checkurl","universalsearch","amazon\\ route\\ 53\\ health\\ check\\ service","slurp","mozilla\\/5\\.0\\ \\(compatible\\;\\ msie\\ 5\\.0\\)","ezooms","kimengi\\/nineconnections\\.com","applesyndication","python\\-urllib","internal\\+zero\\-knowledge\\+agent","system\\+center\\+operations\\+manager","riverglassscanner","imgsizer","changedetection","nutscrape","feedzilla","contype","^lwp","\\(compatible\\;\\ optimizer\\)","infolink","outbrain","^prerender","admantx","^inagist\\ url\\ resolver","amazon\\+route\\+53\\+health\\+check\\+service","neustar","a6\\-indexer","comodo\\+ssl\\+checker","linkchecker","viglink","patric","newsnow","wasalive","scrapy","(?=gruber)grub","ruxitsynthetic","rkg\\ url\\ verifier","ocelli","webcapture","^kraken\\/","t\\-h\\-u\\-n\\-d\\-e\\-r\\-s\\-t\\-o\\-n\\-e","spider(?!solitaire)","isearch","hp\\ sitescope","maxamine","\\(simulated\\_by\\_webserver\\_stress\\_tool\\)","((?=obotics)|ther(?=obotfree))obot","yacy","twibble\\.io","google\\+wireless\\+transcoder","wget","internal\\ zero\\-knowledge\\ agent","google\\ wireless\\ transcoder","xenu","yahooseeker","advanced\\ email\\ extractor","feed43","ptst","reconnoiter","go\\ 1\\.1\\ package\\ http","advanced\\+email\\+extractor","linkdex","panscient\\.com","webcheck","linktiger","scooter","flipboard\\.com\\/browserproxy","evidon","twisted\\ pagegetter","cosmos","adbeat","sherlock","web\\ downloader","cookiereports","siteexplorer","miva","twisted\\+pagegetter","mfc\\_tear\\_sample","indy\\ library","b2w(?!tenisnew)","orangebot(?!swana)","lockss\\+cache","mozilla\\/4\\.0\\+\\(compatible\\;\\+msie\\+6\\.0\\;\\+windows\\+nt\\+5\\.1\\;1813\\)","yahooexternalcache","apache\\-httpclient\\/4\\.","archive\\.org","wesee\\:search","hiscan","ms\\ frontpage","tagscanner","google\\ web\\ preview","special\\_archiver","d24y\\-aegis","scoutjet","larbin","adsense\\-snapshot\\-google","keynote","skypeuripreview","clickajob","download\\+ninja","internet\\ ninja","^ltx71","ukonline","eventmachine\\ httpclient","nomad","mediapartners","twikle","microsoft\\ scheduled\\ cache\\ content\\ download\\ service","internet\\+ninja","scanalert","metauri","agentname","adr\\)","squider","isilo","teleport","automationtest","bordermanager","linklint","bot","templeton","rssreader","ichiro","(?=dialer\\-mobileapp)dialer","atomic\\_email\\_hunter","google\\+web\\+preview","longurl\\+api","longurl\\ api","internetseer","server\\+density\\+external\\+llama","topix","iopus","download\\ ninja","mozilla\\/5\\.0\\+\\(compatible\\;\\+msie\\+5\\.0\\)","europarchive","avantgo","flamingo\\_searchengine","lockss\\ cache","jobrapido","wesee\\:ads\\/","frontier","newspaper\\/0\\.0\\.","apachebench","flamingosearch","lydia","microsoft\\ url\\ control","phantomjs","system\\ center\\ operations\\ manager","^econtext\\/","akamai","cfschedule","searchme\\.com\\/support\\/","fortimail","comodo\\ ssl\\ checker","gomezagent","sitecon","webauto","golem","swcd","spundge\\/0\\.1","findlinks","^sjn","yandex","ia\\_archive","vagabondo","watchmouse","simplepie","1job","goldfire"].join("|"),ne=new RegExp(te,"i");function re(e){return ne.test(e.trim())}var ie,oe,ae=function(){return"".concat(Date.now(),"-").concat(Math.floor(8999999999999*Math.random())+1e12)},se=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:-1;return{name:e,value:t,delta:0,entries:[],id:ae(),isFinal:!1}},ce=function(e,t){try{if(PerformanceObserver.supportedEntryTypes.includes(e)){var n=new PerformanceObserver((function(e){return e.getEntries().map(t)}));return n.observe({type:e,buffered:!0}),n}}catch(e){}},ue=!1,le=!1,de=function(e){ue=!e.persisted},he=function(){addEventListener("pagehide",de),addEventListener("beforeunload",(function(){}))},fe=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];le||(he(),le=!0),addEventListener("visibilitychange",(function(t){var n=t.timeStamp;"hidden"===document.visibilityState&&e({timeStamp:n,isUnloading:ue})}),{capture:!0,once:t})},pe=function(e,t,n,r){var i;return function(){n&&t.isFinal&&n.disconnect(),t.value>=0&&(r||t.isFinal||"hidden"===document.visibilityState)&&(t.delta=t.value-(i||0),(t.delta||t.isFinal||void 0===i)&&(e(t),i=t.value))}},ve=function(){return void 0===ie&&(ie="hidden"===document.visibilityState?0:1/0,fe((function(e){var t=e.timeStamp;return ie=t}),!0)),{get timeStamp(){return ie}}},ge=function(){return oe||(oe=new Promise((function(e){return["scroll","keydown","pointerdown"].map((function(t){addEventListener(t,e,{once:!0,passive:!0,capture:!0})}))}))),oe};class me{constructor(){let{gaugeMetricEndpoint:e,counterMetricEndpoint:t,pageKey:n,pageInstanceHeader:r=null}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(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(re(navigator.userAgent)||this._pageLoadTimeMetricFired||!this.perfData)return;const e=this._getPageLoadTime();this.fireGaugeIngraphMetric({metricsType:"pageLoadTime",metricsValue:e}),this._pageLoadTimeMetricFired=!0}attachWebVitalsMetrics(){re(navigator.userAgent)||this._webVitalsListenersAttached||(!function(e){var t,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=se("CLS",0),i=function(e){e.hadRecentInput||(r.value+=e.value,r.entries.push(e),t())},o=ce("layout-shift",i);o&&(t=pe(e,r,o,n),fe((function(e){var n=e.isUnloading;o.takeRecords().map(i),n&&(r.isFinal=!0),t()})))}(this._webVitalReportHandler.bind(this)),function(e){var t,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=se("LCP"),i=ve(),o=function(e){var n=e.startTime;n<i.timeStamp?(r.value=n,r.entries.push(e)):r.isFinal=!0,t()},a=ce("largest-contentful-paint",o);if(a){t=pe(e,r,a,n);var s=function(){r.isFinal||(a.takeRecords().map(o),r.isFinal=!0,t())};ge().then(s),fe(s,!0)}}(this._webVitalReportHandler.bind(this)),function(e){var t=se("FID"),n=ve(),r=function(e){e.startTime<n.timeStamp&&(t.value=e.processingStart-e.startTime,t.entries.push(e),t.isFinal=!0,o())},i=ce("first-input",r),o=pe(e,t,i);i?fe((function(){i.takeRecords().map(r),i.disconnect()}),!0):window.perfMetrics&&window.perfMetrics.onFirstInputDelay&&window.perfMetrics.onFirstInputDelay((function(e,r){r.timeStamp<n.timeStamp&&(t.value=e,t.isFinal=!0,t.entries=[{entryType:"first-input",name:r.type,target:r.target,cancelable:r.cancelable,startTime:r.timeStamp,processingStart:r.timeStamp+e}],o())}))}(this._webVitalReportHandler.bind(this)),this._webVitalsListenersAttached=!0)}_webVitalReportHandler(e){this.fireGaugeIngraphMetric({metricsType:"".concat(e.name.toLowerCase(),"Time"),metricsValue:e.value,sendBeacon:!0})}_beacon(e,t){e=A(e,"csrfToken",O(N("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 o={"Content-Type":"application/json"};this.pageInstanceHeader&&this.pageInstanceHeader.pageUrn&&this.pageInstanceHeader.trackingId&&(o["x-li-pageInstance"]=this.pageInstanceHeader.pageUrn+";"+this.pageInstanceHeader.trackingId),n?this._beacon(this.gaugeMetricEndpoint,i):j(this.gaugeMetricEndpoint,{method:"POST",headers:o,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):j(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!re(navigator.userAgent)&&r}}const ye="light",be="dark";function Ee(){const e=document.getElementById("config");let t;return e&&e.dataset&&(t=e.dataset.theme),t?document.documentElement.classList.contains("dark")?be:ye:void 0}var we;function Ce(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(o.push(r.value),!t||o.length!==t);a=!0);}catch(e){s=!0,i=e}finally{try{a||null==n.return||n.return()}finally{if(s)throw i}}return o}}(e,t)||Ne(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ke(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=Ne(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,o=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}function Ie(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Te(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Se(e,t,n){return t&&Te(e.prototype,t),n&&Te(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function _e(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ae(e){return function(e){if(Array.isArray(e))return Re(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||Ne(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 Ne(e,t){if(e){if("string"==typeof e)return Re(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)?Re(e,t):void 0}}function Re(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Oe(e){return(Oe="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var Pe,Me=new Uint8Array(16);function Le(){if(!Pe&&!(Pe="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto)))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return Pe(Me)}var De=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;function xe(e){return"string"==typeof e&&De.test(e)}for(var Ue=[],Fe=0;Fe<256;++Fe)Ue.push((Fe+256).toString(16).substr(1));function He(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=(Ue[e[t+0]]+Ue[e[t+1]]+Ue[e[t+2]]+Ue[e[t+3]]+"-"+Ue[e[t+4]]+Ue[e[t+5]]+"-"+Ue[e[t+6]]+Ue[e[t+7]]+"-"+Ue[e[t+8]]+Ue[e[t+9]]+"-"+Ue[e[t+10]]+Ue[e[t+11]]+Ue[e[t+12]]+Ue[e[t+13]]+Ue[e[t+14]]+Ue[e[t+15]]).toLowerCase();if(!xe(n))throw TypeError("Stringified UUID is invalid");return n}function Be(e){if(!xe(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 Ke(e,t,n){function r(e,r,i,o){if("string"==typeof e&&(e=function(e){e=unescape(encodeURIComponent(e));for(var t=[],n=0;n<e.length;++n)t.push(e.charCodeAt(n));return t}(e)),"string"==typeof r&&(r=Be(r)),16!==r.length)throw TypeError("Namespace must be array-like (16 iterable integer values, 0-255)");var a=new Uint8Array(16+e.length);if(a.set(r),a.set(e,r.length),(a=n(a))[6]=15&a[6]|t,a[8]=63&a[8]|128,i){o=o||0;for(var s=0;s<16;++s)i[o+s]=a[s];return i}return He(a)}try{r.name=e}catch(e){}return r.DNS="6ba7b810-9dad-11d1-80b4-00c04fd430c8",r.URL="6ba7b811-9dad-11d1-80b4-00c04fd430c8",r}function qe(e){return 14+(e+64>>>9<<4)+1}function je(e,t){var n=(65535&e)+(65535&t);return(e>>16)+(t>>16)+(n>>16)<<16|65535&n}function Ve(e,t,n,r,i,o){return je((a=je(je(t,e),je(r,o)))<<(s=i)|a>>>32-s,n);var a,s}function ze(e,t,n,r,i,o,a){return Ve(t&n|~t&r,e,t,i,o,a)}function We(e,t,n,r,i,o,a){return Ve(t&r|n&~r,e,t,i,o,a)}function Ge(e,t,n,r,i,o,a){return Ve(t^n^r,e,t,i,o,a)}function Je(e,t,n,r,i,o,a){return Ve(n^(t|~r),e,t,i,o,a)}function Qe(e,t,n){var r=(e=e||{}).random||(e.rng||Le)();if(r[6]=15&r[6]|64,r[8]=63&r[8]|128,t){n=n||0;for(var i=0;i<16;++i)t[n+i]=r[i];return t}return He(r)}function Xe(e,t,n,r){switch(e){case 0:return t&n^~t&r;case 1:case 3:return t^n^r;case 2:return t&n^t&r^n&r}}function Ye(e,t){return e<<t|e>>>32-t}Ke("v3",48,(function(e){if("string"==typeof e){var t=unescape(encodeURIComponent(e));e=new Uint8Array(t.length);for(var n=0;n<t.length;++n)e[n]=t.charCodeAt(n)}return function(e){for(var t=[],n=32*e.length,r="0123456789abcdef",i=0;i<n;i+=8){var o=e[i>>5]>>>i%32&255,a=parseInt(r.charAt(o>>>4&15)+r.charAt(15&o),16);t.push(a)}return t}(function(e,t){e[t>>5]|=128<<t%32,e[qe(t)-1]=t;for(var n=1732584193,r=-271733879,i=-1732584194,o=271733878,a=0;a<e.length;a+=16){var s=n,c=r,u=i,l=o;n=ze(n,r,i,o,e[a],7,-680876936),o=ze(o,n,r,i,e[a+1],12,-389564586),i=ze(i,o,n,r,e[a+2],17,606105819),r=ze(r,i,o,n,e[a+3],22,-1044525330),n=ze(n,r,i,o,e[a+4],7,-176418897),o=ze(o,n,r,i,e[a+5],12,1200080426),i=ze(i,o,n,r,e[a+6],17,-1473231341),r=ze(r,i,o,n,e[a+7],22,-45705983),n=ze(n,r,i,o,e[a+8],7,1770035416),o=ze(o,n,r,i,e[a+9],12,-1958414417),i=ze(i,o,n,r,e[a+10],17,-42063),r=ze(r,i,o,n,e[a+11],22,-1990404162),n=ze(n,r,i,o,e[a+12],7,1804603682),o=ze(o,n,r,i,e[a+13],12,-40341101),i=ze(i,o,n,r,e[a+14],17,-1502002290),n=We(n,r=ze(r,i,o,n,e[a+15],22,1236535329),i,o,e[a+1],5,-165796510),o=We(o,n,r,i,e[a+6],9,-1069501632),i=We(i,o,n,r,e[a+11],14,643717713),r=We(r,i,o,n,e[a],20,-373897302),n=We(n,r,i,o,e[a+5],5,-701558691),o=We(o,n,r,i,e[a+10],9,38016083),i=We(i,o,n,r,e[a+15],14,-660478335),r=We(r,i,o,n,e[a+4],20,-405537848),n=We(n,r,i,o,e[a+9],5,568446438),o=We(o,n,r,i,e[a+14],9,-1019803690),i=We(i,o,n,r,e[a+3],14,-187363961),r=We(r,i,o,n,e[a+8],20,1163531501),n=We(n,r,i,o,e[a+13],5,-1444681467),o=We(o,n,r,i,e[a+2],9,-51403784),i=We(i,o,n,r,e[a+7],14,1735328473),n=Ge(n,r=We(r,i,o,n,e[a+12],20,-1926607734),i,o,e[a+5],4,-378558),o=Ge(o,n,r,i,e[a+8],11,-2022574463),i=Ge(i,o,n,r,e[a+11],16,1839030562),r=Ge(r,i,o,n,e[a+14],23,-35309556),n=Ge(n,r,i,o,e[a+1],4,-1530992060),o=Ge(o,n,r,i,e[a+4],11,1272893353),i=Ge(i,o,n,r,e[a+7],16,-155497632),r=Ge(r,i,o,n,e[a+10],23,-1094730640),n=Ge(n,r,i,o,e[a+13],4,681279174),o=Ge(o,n,r,i,e[a],11,-358537222),i=Ge(i,o,n,r,e[a+3],16,-722521979),r=Ge(r,i,o,n,e[a+6],23,76029189),n=Ge(n,r,i,o,e[a+9],4,-640364487),o=Ge(o,n,r,i,e[a+12],11,-421815835),i=Ge(i,o,n,r,e[a+15],16,530742520),n=Je(n,r=Ge(r,i,o,n,e[a+2],23,-995338651),i,o,e[a],6,-198630844),o=Je(o,n,r,i,e[a+7],10,1126891415),i=Je(i,o,n,r,e[a+14],15,-1416354905),r=Je(r,i,o,n,e[a+5],21,-57434055),n=Je(n,r,i,o,e[a+12],6,1700485571),o=Je(o,n,r,i,e[a+3],10,-1894986606),i=Je(i,o,n,r,e[a+10],15,-1051523),r=Je(r,i,o,n,e[a+1],21,-2054922799),n=Je(n,r,i,o,e[a+8],6,1873313359),o=Je(o,n,r,i,e[a+15],10,-30611744),i=Je(i,o,n,r,e[a+6],15,-1560198380),r=Je(r,i,o,n,e[a+13],21,1309151649),n=Je(n,r,i,o,e[a+4],6,-145523070),o=Je(o,n,r,i,e[a+11],10,-1120210379),i=Je(i,o,n,r,e[a+2],15,718787259),r=Je(r,i,o,n,e[a+9],21,-343485551),n=je(n,s),r=je(r,c),i=je(i,u),o=je(o,l)}return[n,r,i,o]}(function(e){if(0===e.length)return[];for(var t=8*e.length,n=new Uint32Array(qe(t)),r=0;r<t;r+=8)n[r>>5]|=(255&e[r/8])<<r%32;return n}(e),8*e.length))})),Ke("v5",80,(function(e){var t=[1518500249,1859775393,2400959708,3395469782],n=[1732584193,4023233417,2562383102,271733878,3285377520];if("string"==typeof e){var r=unescape(encodeURIComponent(e));e=[];for(var i=0;i<r.length;++i)e.push(r.charCodeAt(i))}else Array.isArray(e)||(e=Array.prototype.slice.call(e));e.push(128);for(var o=e.length/4+2,a=Math.ceil(o/16),s=new Array(a),c=0;c<a;++c){for(var u=new Uint32Array(16),l=0;l<16;++l)u[l]=e[64*c+4*l]<<24|e[64*c+4*l+1]<<16|e[64*c+4*l+2]<<8|e[64*c+4*l+3];s[c]=u}s[a-1][14]=8*(e.length-1)/Math.pow(2,32),s[a-1][14]=Math.floor(s[a-1][14]),s[a-1][15]=8*(e.length-1)&4294967295;for(var d=0;d<a;++d){for(var h=new Uint32Array(80),f=0;f<16;++f)h[f]=s[d][f];for(var p=16;p<80;++p)h[p]=Ye(h[p-3]^h[p-8]^h[p-14]^h[p-16],1);for(var v=n[0],g=n[1],m=n[2],y=n[3],b=n[4],E=0;E<80;++E){var w=Math.floor(E/20),C=Ye(v,5)+Xe(w,g,m,y)+b+t[w]+h[E]>>>0;b=y,y=m,m=Ye(g,30)>>>0,g=v,v=C}n[0]=n[0]+v>>>0,n[1]=n[1]+g>>>0,n[2]=n[2]+m>>>0,n[3]=n[3]+y>>>0,n[4]=n[4]+b>>>0}return[n[0]>>24&255,n[0]>>16&255,n[0]>>8&255,255&n[0],n[1]>>24&255,n[1]>>16&255,n[1]>>8&255,255&n[1],n[2]>>24&255,n[2]>>16&255,n[2]>>8&255,255&n[2],n[3]>>24&255,n[3]>>16&255,n[3]>>8&255,255&n[3],n[4]>>24&255,n[4]>>16&255,n[4]>>8&255,255&n[4]]}));var $e=null;if(("undefined"==typeof crypto||!crypto.getRandomValues)&&"undefined"!=typeof require){var Ze=("undefined"!=typeof FastBoot?FastBoot.require:"function"==typeof __webpack_require__?__non_webpack_require__:require)("crypto");if(Ze){var et=new Uint8Array(256),tt=et.length;$e={rng:function(){return tt>et.length-16&&(Ze.randomFillSync(et),tt=0),et.slice(tt,tt+=16)}}}}var nt="object"===("undefined"==typeof crypto?"undefined":Oe(crypto))&&"function"==typeof crypto.randomUUID?function(){return crypto.randomUUID()}:function(){return function(e){return He(e)}(rt())};function rt(){return Qe($e,new Array(16),0)}function it(e){return Ae(e).map((function(e){return String.fromCharCode(e)})).join("")}function ot(){return it(rt())}var at=/^[a-zA-Z0-9/+]+[=]+$/;function st(){return function(e){for(var t,n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",r=[],i=0,o=e.length,a=o%3,s=o-a;i<s;)t=e[i]<<16,t|=e[i+1]<<8,t|=e[i+2],r.push(n.charAt(t>>>18&63)),r.push(n.charAt(t>>>12&63)),r.push(n.charAt(t>>>6&63)),r.push(n.charAt(63&t)),i+=3;switch(a){case 2:t=e[i]<<16,t|=e[i+1]<<8,r.push(n.charAt(t>>>18&63)),r.push(n.charAt(t>>>12&63)),r.push(n.charAt(t>>>6&63)),r.push("=");break;case 1:t=e[i]<<16,r.push(n.charAt(t>>>18&63)),r.push(n.charAt(t>>>12&63)),r.push("="),r.push("=")}return r.join("")}(rt())}function ct(){return nt()}function ut(e){return Be(e)}function lt(e,t){return{pageUrn:ht(e),trackingId:t||st()}}function dt(e,t){return"urn:li:control:".concat(e,"-").concat(t)}function ht(e){return"urn:li:page:".concat(e)}function ft(e,t){return{pageInstance:t.assign({},e.pageInstance),pageKey:e.pageKey,applicationInstance:e.applicationInstance}}function pt(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 vt(e){var t=[];return e.forEach((function(e){return t.push(e)})),t}function gt(e,t){if("undefined"!=typeof window&&window.indexedDB){var n="sequenceNumber",r=window.indexedDB.open(n);return new Promise((function(i,o){r.onupgradeneeded=function(){var e=r.result;e.objectStoreNames.contains(n)||e.createObjectStore(n,{autoIncrement:!0})},r.onsuccess=function(){var a=r.result,s=a.transaction(n,"readwrite"),c=s.objectStore(n),u=c.get(1);u.onsuccess=function(){var n=u.result;if(n){var r,a=null!==(r=n.sequenceNumber)&&void 0!==r?r:0;if("read"===e)return i(a);if(!("update"===e&&void 0!==t&&t>a))return i(null);var s=c.put({sequenceNumber:t},1);s.onsuccess=function(){return i(null)},s.onerror=function(){o(s.error)}}else{var l=c.add({sequenceNumber:0});l.onsuccess=function(){return i(0)},l.onerror=function(){o(l.error)}}},u.onerror=function(){return a.close(),o(new Error("Error: get sequence number from indexedDB ".concat(String(u.error))))},s.oncomplete=function(){return a.close()}},r.onerror=function(){return i(null)}}))}return Promise.resolve(null)}function mt(e,t,n){var r=e.get(t);r&&r.push(n)||e.set(t,[n])}function yt(e,t,n){var r=e.get(t);r&&r.splice(r.indexOf(n)>>>0,1)}var bt,Et,wt=(bt=new Map,Et=new Map,{on:function(e,t){mt(bt,e,t)},before:function(e,t){mt(Et,e,t)},off:function(e,t){yt(bt,e,t)},offBefore:function(e,t){yt(Et,e,t)},emit:function(e,t){(Et.get(e)||[]).concat(bt.get(e)||[]).slice().map((function(e){e(t)}))},clear:function(){Et.clear(),bt.clear()}});if("undefined"!=typeof document&&"undefined"!=typeof window){var Ct=function(e){"pagehide"!==e.type&&"hidden"!==document.visibilityState||wt.emit("internal:hide",e)};document.addEventListener("visibilitychange",Ct),window.addEventListener("pagehide",Ct)}var kt=Uint8Array,It=Uint16Array,Tt=Uint32Array,St=new kt([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]),_t=new kt([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]),At=new kt([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),Nt=function(e,t){for(var n=new It(31),r=0;r<31;++r)n[r]=t+=1<<e[r-1];var i=new Tt(n[30]);for(r=1;r<30;++r)for(var o=n[r];o<n[r+1];++o)i[o]=o-n[r]<<5|r;return[n,i]},Rt=Nt(St,2),Ot=Rt[0],Pt=Rt[1];Ot[28]=258,Pt[258]=28;for(var Mt=Nt(_t,0)[1],Lt=new It(32768),Dt=0;Dt<32768;++Dt){var xt=(43690&Dt)>>>1|(21845&Dt)<<1;xt=(61680&(xt=(52428&xt)>>>2|(13107&xt)<<2))>>>4|(3855&xt)<<4,Lt[Dt]=((65280&xt)>>>8|(255&xt)<<8)>>>1}var Ut=function(e,t,n){for(var r=e.length,i=0,o=new It(t);i<r;++i)e[i]&&++o[e[i]-1];var a,s=new It(t);for(i=0;i<t;++i)s[i]=s[i-1]+o[i-1]<<1;if(n){a=new It(1<<t);var c=15-t;for(i=0;i<r;++i)if(e[i])for(var u=i<<4|e[i],l=t-e[i],d=s[e[i]-1]++<<l,h=d|(1<<l)-1;d<=h;++d)a[Lt[d]>>>c]=u}else for(a=new It(r),i=0;i<r;++i)e[i]&&(a[i]=Lt[s[e[i]-1]++]>>>15-e[i]);return a},Ft=new kt(288);for(Dt=0;Dt<144;++Dt)Ft[Dt]=8;for(Dt=144;Dt<256;++Dt)Ft[Dt]=9;for(Dt=256;Dt<280;++Dt)Ft[Dt]=7;for(Dt=280;Dt<288;++Dt)Ft[Dt]=8;var Ht=new kt(32);for(Dt=0;Dt<32;++Dt)Ht[Dt]=5;var Bt=Ut(Ft,9,0),Kt=Ut(Ht,5,0),qt=function(e){return(e+7)/8|0},jt=function(e,t,n){n<<=7&t;var r=t/8|0;e[r]|=n,e[r+1]|=n>>>8},Vt=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},zt=function(e,t){for(var n=[],r=0;r<e.length;++r)e[r]&&n.push({s:r,f:e[r]});var i=n.length,o=n.slice();if(!i)return[$t,0];if(1==i){var a=new kt(n[0].s+1);return a[n[0].s]=1,[a,1]}n.sort((function(e,t){return e.f-t.f})),n.push({s:-1,f:25001});var s=n[0],c=n[1],u=0,l=1,d=2;for(n[0]={s:-1,f:s.f+c.f,l:s,r:c};l!=i-1;)s=n[n[u].f<n[d].f?u++:d++],c=n[u!=l&&n[u].f<n[d].f?u++:d++],n[l++]={s:-1,f:s.f+c.f,l:s,r:c};var h=o[0].s;for(r=1;r<i;++r)o[r].s>h&&(h=o[r].s);var f=new It(h+1),p=Wt(n[l-1],f,0);if(p>t){r=0;var v=0,g=p-t,m=1<<g;for(o.sort((function(e,t){return f[t.s]-f[e.s]||e.f-t.f}));r<i;++r){var y=o[r].s;if(!(f[y]>t))break;v+=m-(1<<p-f[y]),f[y]=t}for(v>>>=g;v>0;){var b=o[r].s;f[b]<t?v-=1<<t-f[b]++-1:++r}for(;r>=0&&v;--r){var E=o[r].s;f[E]==t&&(--f[E],++v)}p=t}return[new kt(f),p]},Wt=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},Gt=function(e){for(var t=e.length;t&&!e[--t];);for(var n=new It(++t),r=0,i=e[0],o=1,a=function(e){n[r++]=e},s=1;s<=t;++s)if(e[s]==i&&s!=t)++o;else{if(!i&&o>2){for(;o>138;o-=138)a(32754);o>2&&(a(o>10?o-11<<5|28690:o-3<<5|12305),o=0)}else if(o>3){for(a(i),--o;o>6;o-=6)a(8304);o>2&&(a(o-3<<5|8208),o=0)}for(;o--;)a(i);o=1,i=e[s]}return[n.subarray(0,r),t]},Jt=function(e,t){for(var n=0,r=0;r<t.length;++r)n+=e[r]*t[r];return n},Qt=function(e,t,n){var r=n.length,i=qt(t+2);e[i]=255&r,e[i+1]=r>>>8,e[i+2]=255^e[i],e[i+3]=255^e[i+1];for(var o=0;o<r;++o)e[i+o+4]=n[o];return 8*(i+4+r)},Xt=function(e,t,n,r,i,o,a,s,c,u,l){jt(t,l++,n),++i[256];for(var d=zt(i,15),h=d[0],f=d[1],p=zt(o,15),v=p[0],g=p[1],m=Gt(h),y=m[0],b=m[1],E=Gt(v),w=E[0],C=E[1],k=new It(19),I=0;I<y.length;++I)k[31&y[I]]++;for(I=0;I<w.length;++I)k[31&w[I]]++;for(var T=zt(k,7),S=T[0],_=T[1],A=19;A>4&&!S[At[A-1]];--A);var N,R,O,P,M=u+5<<3,L=Jt(i,Ft)+Jt(o,Ht)+a,D=Jt(i,h)+Jt(o,v)+a+14+3*A+Jt(k,S)+(2*k[16]+3*k[17]+7*k[18]);if(M<=L&&M<=D)return Qt(t,l,e.subarray(c,c+u));if(jt(t,l,1+(D<L)),l+=2,D<L){N=Ut(h,f,0),R=h,O=Ut(v,g,0),P=v;var x=Ut(S,_,0);for(jt(t,l,b-257),jt(t,l+5,C-1),jt(t,l+10,A-4),l+=14,I=0;I<A;++I)jt(t,l+3*I,S[At[I]]);l+=3*A;for(var U=[y,w],F=0;F<2;++F){var H=U[F];for(I=0;I<H.length;++I){var B=31&H[I];jt(t,l,x[B]),l+=S[B],B>15&&(jt(t,l,H[I]>>>5&127),l+=H[I]>>>12)}}}else N=Bt,R=Ft,O=Kt,P=Ht;for(I=0;I<s;++I)if(r[I]>255){B=r[I]>>>18&31,Vt(t,l,N[B+257]),l+=R[B+257],B>7&&(jt(t,l,r[I]>>>23&31),l+=St[B]);var K=31&r[I];Vt(t,l,O[K]),l+=P[K],K>3&&(Vt(t,l,r[I]>>>5&8191),l+=_t[K])}else Vt(t,l,N[r[I]]),l+=R[r[I]];return Vt(t,l,N[256]),l+R[256]},Yt=new Tt([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),$t=new kt(0),Zt=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}(),en=function(e,t,n){for(;n;++t)e[t]=n,n>>>=8};function tn(e,t){t||(t={});var n=function(){var e=-1;return{p:function(t){for(var n=e,r=0;r<t.length;++r)n=Zt[255&n^t[r]]^n>>>8;e=n},d:function(){return~e}}}(),r=e.length;n.p(e);var i,o,a,s=(i=e,o=t,a=function(e){return 10+(e.filename&&e.filename.length+1||0)}(t),8,function(e,t,n,r,i,o){var a=e.length,s=new kt(r+a+5*(1+Math.ceil(a/7e3))+i),c=s.subarray(r,s.length-i),u=0;if(!t||a<8)for(var l=0;l<=a;l+=65535){var d=l+65535;d>=a&&(c[u>>3]=o),u=Qt(c,u+1,e.subarray(l,d))}else{for(var h=Yt[t-1],f=h>>>13,p=8191&h,v=(1<<n)-1,g=new It(32768),m=new It(v+1),y=Math.ceil(n/3),b=2*y,E=function(t){return(e[t]^e[t+1]<<y^e[t+2]<<b)&v},w=new Tt(25e3),C=new It(288),k=new It(32),I=0,T=0,S=(l=0,0),_=0,A=0;l<a;++l){var N=E(l),R=32767&l,O=m[N];if(g[R]=O,m[N]=R,_<=l){var P=a-l;if((I>7e3||S>24576)&&P>423){u=Xt(e,c,0,w,C,k,T,S,A,l-A,u),S=I=T=0,A=l;for(var M=0;M<286;++M)C[M]=0;for(M=0;M<30;++M)k[M]=0}var L=2,D=0,x=p,U=R-O&32767;if(P>2&&N==E(l-U))for(var F=Math.min(f,P)-1,H=Math.min(32767,l),B=Math.min(258,P);U<=H&&--x&&R!=O;){if(e[l+L]==e[l+L-U]){for(var K=0;K<B&&e[l+K]==e[l+K-U];++K);if(K>L){if(L=K,D=U,K>F)break;var q=Math.min(U,K-2),j=0;for(M=0;M<q;++M){var V=l-U+M+32768&32767,z=V-g[V]+32768&32767;z>j&&(j=z,O=V)}}}U+=(R=O)-(O=g[R])+32768&32767}if(D){w[S++]=268435456|Pt[L]<<18|Mt[D];var W=31&Pt[L],G=31&Mt[D];T+=St[W]+_t[G],++C[257+W],++k[G],_=l+L,++I}else w[S++]=e[l],++C[e[l]]}}u=Xt(e,c,o,w,C,k,T,S,A,l-A,u),!o&&7&u&&(u=Qt(c,u+1,$t))}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?It:4==e.BYTES_PER_ELEMENT?Tt:kt)(n-t);return r.set(e.subarray(t,n)),r}(s,0,r+qt(u)+i)}(i,null==o.level?6:o.level,null==o.mem?Math.ceil(1.5*Math.max(8,Math.min(13,Math.log(i.length)))):12+o.mem,a,8,!0)),c=s.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&&en(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)}}(s,t),en(s,c-8,n.d()),en(s,c-4,r),s}var nn="undefined"!=typeof TextDecoder&&new TextDecoder;try{nn.decode($t,{stream:!0})}catch(Jr){}function rn(){return"undefined"!=typeof window&&"function"==typeof window.fetch}function on(){try{return rn()&&"keepalive"in new Request("")}catch(e){return!1}}function an(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if("undefined"!=typeof window&&void 0!==window.XMLHttpRequest){var r=new XMLHttpRequest;if(r.open("POST",e,!0),r.withCredentials=!0,n.headers)for(var i=0,o=Object.keys(n.headers);i<o.length;i++){var a=o[i];r.setRequestHeader(a,n.headers[a])}r.send(t)}}function sn(e){var t=e.body,n=e.keepalive,r=e.headers,i=e.compress;r["content-type"]||(r["content-type"]="text/plain;charset=UTF-8");var o=t;if(i&&"undefined"!=typeof TextEncoder)try{o=tn((new TextEncoder).encode(t)),r["content-encoding"]="gzip"}catch(e){}return{body:o,keepalive:n,credentials:"include",headers:r,method:"POST",mode:"cors"}}function cn(e){return e&&"message"in e?e.message:"UNKNOWN_ERROR"}var un,ln="undefined"!=typeof navigator&&"sendBeacon"in navigator,dn=on()?function(e,t,n,r){return new Promise((function(i){fetch(e,sn({body:t,keepalive:!0,headers:n,compress:r})).catch((function(){return fetch(e,sn({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:cn(e)})}))}))}:function(e,t,n,r){return new Promise((function(i){if(ln){var o=!1;try{o=navigator.sendBeacon(e,t)}catch(e){}if(o)return void i({type:"unknown",drop:!1})}fetch(e,sn({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:cn(e)})}))}))};function hn(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 fn(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"key",r=arguments.length>3?arguments[3]:void 0,i=indexedDB.open(e);i.onupgradeneeded=function(){try{i.result.createObjectStore(t,{keyPath:n})}catch(e){null==r||r.onError(e)}};var o=new Promise((function(e,t){i.onsuccess=function(){var t=i.result;t.onversionchange=function(){return t.close()},e(t),null==r||r.onSuccess()},i.onerror=function(){t(i.error),null==r||r.onError(i.error)}}));return function(e,n){return o.then((function(r){return n(r.transaction(t,e).objectStore(t))}))}}function pn(){return un||(un=fn("idb-queue","default")),un}function vn(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{maxNumber:1e3,batchEvictionNumber:300},n=0,r=null;return e.openKeyCursor().onsuccess=function(){var i=this.result;i&&n++<t.batchEvictionNumber?(r=i.key,i.continue()):null!=r&&e.delete(IDBKeyRange.upperBound(r))},hn(e.transaction)}function gn(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{maxNumber:1e3,batchEvictionNumber:300},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:pn();return t("readwrite",(function(t){return vn(t,e)}))}var mn=!1;function yn(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]:pn();return n("readwrite",(function(n){return n.put(e),hn(n.count()).then((function(e){if(!(e<=t.maxNumber))return vn(n,t)}))})).catch((function(e){if(e&&"QuotaExceededError"===e.name)return gn(t,n)}))}function bn(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]:pn();return mn?Promise.resolve():yn(e,t,n)}function En(e,t,n){return t("readwrite",(function(t){var r=[];return t.openCursor(null,n).onsuccess=function(){var t=this.result;t&&(r.push(t.value),t.delete(),(e<0||r.length<e)&&t.continue())},hn(t.transaction).then((function(){return r}))}))}function wn(e,t,n){return t("readonly",(function(t){var r=[];return t.openCursor(null,n).onsuccess=function(){var t=this.result;t&&(r.push(t.value),(e<0||r.length<e)&&t.continue())},hn(t.transaction).then((function(){return r}))}))}function Cn(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:pn();return wn(e,t,"next")}function kn(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:pn();return wn(e,t,"prev")}function In(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0,n=arguments.length>2?arguments[2]:void 0,r=arguments.length>3?arguments[3]:void 0;return!t||n<1||(e[t]=JSON.stringify({attempt:n,errorCode:r})),e}function Tn(e){"undefined"!=typeof window&&window.__DEBUG_BEACON_TRANSPORTER&&console.debug("[beacon-transporter] ",e())}function Sn(e){"undefined"!=typeof window&&window.__DEBUG_BEACON_TRANSPORTER&&console.error("[beacon-transporter] ",e())}function _n(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{timeRemaining:5,timeout:1e4};if("undefined"==typeof requestIdleCallback)setTimeout(e,t.fallbackTimeout||10);else{var n=function n(){requestIdleCallback((function(r){r.timeRemaining()>t.timeRemaining||r.didTimeout?e():n()}),{timeout:t.timeout})};n()}}function An(e,t){var n=0;return{throttledFn:function(){var r=Date.now();r-n>t&&(Tn((function(){return"[throttle] Run fn() at "+String(r)})),e(),n=r)},resetThrottle:function(){n=0}}}var Nn=function(){function e(t){var n=this,r=arguments.length>1&&void 0!==arguments[1]&&arguments[1];Ie(this,e),_e(this,"config",void 0),_e(this,"compress",void 0),_e(this,"throttleControl",void 0),_e(this,"withStore",void 0),_e(this,"disablePersistence",!1),this.config=t,this.compress=r;var i=t.measureIDB;i&&performance.mark(i.createStartMark),this.withStore=fn(t.idbName,"beacons","timestamp",{onSuccess:function(){i&&performance.measure(i.createSuccessMeasure,i.createStartMark)},onError:function(){i&&performance.measure(i.createFailMeasure,i.createStartMark),n.disablePersistence=!0}}),this.throttleControl=An(this.replayEntries.bind(this),t.throttleWait)}return Se(e,[{key:"onNotify",value:function(){this.disablePersistence||this.throttleControl.throttledFn()}},{key:"push",value:function(e){var t=this;if(!this.disablePersistence){var n=function(){Tn((function(){return"Persisting to DB "+e.url})),bn(e,t.config,t.withStore).then((function(){t.throttleControl.resetThrottle(),Tn((function(){return"push completed"}))})).catch((function(){t.disablePersistence=!0,Sn((function(){return"push failed"}))}))};this.config.useIdle?_n(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]:pn();return mn=!0,e("readwrite",(function(e){return e.clear(),hn(e.transaction).finally((function(){return mn=!1}))}))}(this.withStore).catch((function(){e.disablePersistence=!0,Sn((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([]):Cn(t,this.withStore).catch((function(){return e.disablePersistence=!0,Sn((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([]):kn(t,this.withStore).catch((function(){return e.disablePersistence=!0,Sn((function(){return"peekBack failed"})),[]}))}},{key:"replayEntries",value:function(){var e=this;if(!this.disablePersistence){var t=function(){Tn((function(){return"Replaying entry: shift from store"})),function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:pn();return En(e,t,"next")}(1,e.withStore).then((function(t){if(t.length>0){var n,r,i=t[0],o=i.url,a=i.body,s=i.headers,c=i.timestamp,u=i.statusCode,l=i.attemptCount;return Tn((function(){return"header: ".concat(String(e.config.headerName),"; attemptCount: ").concat(l)})),null===(n=(r=e.config).onBeforeRetry)||void 0===n||n.call(r,a),dn(o,a,In(s,e.config.headerName,l,u),e.compress).then((function(t){if("unknown"===t.type||"success"===t.type){var n,r;null===(n=(r=e.config).onResult)||void 0===n||n.call(r,t,a),e.replayEntries()}else{var i,s,d,h,f,p;if(l+1>e.config.attemptLimit)return Tn((function(){return"Exceeded attempt count, dropping the entry: "+JSON.stringify({url:o,timestamp:c,statusCode:u},null,2)})),t.drop=!0,void(null===(i=(s=e.config).onResult)||void 0===i||i.call(s,t,a));if("network"===t.type||e.config.statusCodes.includes(t.statusCode))return t.drop=!1,null===(d=(h=e.config).onResult)||void 0===d||d.call(h,t,a),Tn((function(){return"Replaying the entry failed, pushing back to IDB: "+JSON.stringify({url:o,timestamp:c,statusCode:u},null,2)})),bn({url:o,body:a,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,a)}}))}})).catch((function(t){e.disablePersistence=!0,t&&t.message&&Sn((function(){return"Replay entry failed: ".concat(t.message)}))}))};this.config.useIdle?_n(t):t()}}}]),e}(),Rn=function(){function e(){Ie(this,e)}return Se(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}(),On=function(){function e(t,n){Ie(this,e),_e(this,"queue",void 0),_e(this,"beaconListeners",new Set),this.queue=e.hasSupport&&!n.disablePersistenceRetry?new Nn(t,n.compress):new Rn}return Se(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}();_e(On,"hasSupport","undefined"!=typeof globalThis&&!!globalThis.indexedDB);var Pn=[502,504],Mn=[429,503],Ln=function(){function e(t,n,r,i){var o=this,a=arguments.length>4&&void 0!==arguments[4]&&arguments[4];Ie(this,e),_e(this,"url",void 0),_e(this,"body",void 0),_e(this,"config",void 0),_e(this,"persistenceConfig",void 0),_e(this,"compress",void 0),_e(this,"timestamp",void 0),_e(this,"isClearQueuePending",!1),_e(this,"onClearCallback",void 0),this.url=t,this.body=n,this.config=r,this.persistenceConfig=i,this.compress=a,this.timestamp=Date.now(),this.onClearCallback=function(){return o.isClearQueuePending=!0}}return Se(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 dn(e.url,e.body,t,e.compress)}),n,t).finally((function(){Tn((function(){return"beacon finished"})),e.persistenceConfig.db.removeOnClear(e.onClearCallback)}))}},{key:"retryLimit",get:function(){return this.config.attemptLimit}},{key:"getAttemptCount",value:function(e){return this.retryLimit-e+1}},{key:"retry",value:function(e,t,n,r){var i=this,o=this.getAttemptCount(t)-1;return e(In(n,this.config.headerName,o,r)).then((function(r){var o,a,s,c;if(r.drop=!1,"unknown"===r.type||"success"===r.type)i.isClearQueuePending||i.persistenceConfig.disabled||i.persistenceConfig.db.notifyQueue(),s=r;else if(Tn((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 Tn((function(){return"in memory retry in ".concat(d,"ms")})),(c=d,new Promise((function(e){return setTimeout(e,c)}))).then((function(){return i.retry(e,t-1,n,r.statusCode)}))}(s=r).drop=!0}return null===(o=(a=i.config).onIntermediateResult)||void 0===o||o.call(a,s,i.body),s}))}},{key:"isRetryableError",value:function(e){return!("network"!==e.type&&!this.config.statusCodes.includes(e.statusCode))}},{key:"shouldPersist",value:function(e,t){return!(this.isClearQueuePending||this.persistenceConfig.disabled||navigator.onLine&&(0!==e||"network"!==t.type)&&("response"!==t.type||!this.persistenceConfig.statusCodes.includes(t.statusCode)))}}]),e}();function Dn(e,t,n,r,i){"control"!==r&&e.retryConfig&&function(){if("undefined"==typeof Promise||"undefined"==typeof navigator)return!1;var e=navigator.userAgent.indexOf("Chrome")>-1,t=navigator.cookieEnabled,n=navigator.storage;return e&&on()&&t&&n}()&&navigator.storage.estimate().then((function(o){if(!((o.quota||0)-(o.usage||0)>52428800))return function(e){var t=window.indexedDB.deleteDatabase(e);return new Promise((function(e,n){t.onsuccess=function(){return e()},t.onerror=function(){return n(t.error)}}))}("beacons");var a,s,c=null!==(a=e.retryConfig.inMemory)&&void 0!==a?a:{attemptLimit:4,statusCodes:[502,504]},u=null!==(s=e.retryConfig.persist)&&void 0!==s?s:{attemptLimit:3,statusCodes:[429,503],maxNumber:1e3,batchEvictionNumber:300,throttleWait:3e5},l={compress:n,inMemoryRetry:{onIntermediateResult:null==i?void 0:i.onIntermediateResult,attemptLimit:c.attemptLimit,statusCodes:c.statusCodes,headerName:"x-li-retry-context",calculateRetryDelay:function(e){return 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:"beacons",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:Pn,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:Mn,maxNumber:1e3,batchEvictionNumber:300,throttleWait:3e5},t.persistenceRetry);i.headerName=i.headerName||r.headerName,e=new On(i,{compress:t.compress,disablePersistenceRetry:t.disablePersistenceRetry})}return{beacon:function(i,o,a){var s;return rn()?new Ln(i,o,r,{db:e,disabled:Boolean(t.disablePersistenceRetry),statusCodes:(null===(s=t.persistenceRetry)||void 0===s?void 0:s.statusCodes)||Mn},n).send(a):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){wt.emit("internal:error",{tags:["core-web-tracking:retry:idb"],reason:e})})):(e.retryBeacon.shouldRetry=!0,Promise.resolve())):void 0})).catch((function(e){wt.emit("internal:error",{tags:["core-web-tracking:retry:setup"],reason:e})}))}var xn=function(){function e(t){Ie(this,e),_e(this,"host",void 0),this.host=t}return Se(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&&Dn(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){wt.emit("internal:error",{tags:["core-web-tracking:retry:logout"],reason:e})}))}},{key:"sendPayload",value:function(e,t,n,r){var i,o=this.getRetryTreatment();on()&&"control"!==o&&null!==(i=this.host.retryBeacon)&&void 0!==i&&i.shouldRetry?this.sendPayloadWithRetry(e,t,n):this.sendPayloadFireForget(e,t,n,r)}},{key:"sendPayloadWithRetry",value:function(e,t,n){(!Array.isArray(t)||t.length>0)&&this.host.retryBeacon.beacon(e,JSON.stringify(t),n).catch((function(e){wt.emit("internal:error",{tags:["core-web-tracking:retry:beacon"],reason: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;if(!Array.isArray(t)||t.length>0){var i="undefined"!=typeof navigator&&navigator.userAgent.toLowerCase().indexOf("firefox")>-1;i||!rn()||"undefined"==typeof Promise?an(e,JSON.stringify(t),{headers:n}):dn(e,JSON.stringify(t),n,this.shouldCompressPayload()).then((function(e){null==r||r.onResult(e,t)}),(function(){}))}}},{key:"getRetryTreatment",value:function(){var e,t,n;if(!this.host.retryConfig)return"control";var r=this.host.retryConfig.lixKey;return r?null!==(e=null===(t=(n=this.host).__getLixTreatment)||void 0===t?void 0:t.call(n,r))&&void 0!==e?e:"control":"enabled"}},{key:"shouldCompressPayload",value:function(){return!0!==this.host.disableCompression}}]),e}(),Un="undefined"!=typeof window&&"undefined"!=typeof document,Fn=/JSESSIONID="?([^";]+)"?/,Hn="",Bn=0;function Kn(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.cacheLifeSpan,n=void 0===t?1e4:t,r=e.regex,i=void 0===r?Fn:r;if(!Hn||Date.now()-Bn>n){var o=Un&&document.cookie.match(i);Hn=o&&o[1]||"",Bn=Date.now()}return Hn}var qn=function(){function e(t){Ie(this,e),_e(this,"networkTransporter",void 0),_e(this,"inactive",void 0),_e(this,"mpName",void 0),_e(this,"endpoint",void 0),_e(this,"debug",void 0),this.networkTransporter=new xn(t),this.mpName=t.appId,this.inactive=t.inactive;var n=function(e){var t,n=!1;switch(e){case"https://www.linkedin.com/li/track":t=Vn;break;default:n=!0,t=jn;break;case"https://www.linkedin-ei.com/li/track":t=jn}return{endpoint:t,debug:n}}(t.endpoint);this.endpoint=n.endpoint,this.debug=n.debug}return Se(e,[{key:"fireFragment",value:function(e){if(!this.inactive){var t={"content-type":"application/json; charset=UTF-8","x-li-track":JSON.stringify({mpName:this.mpName}),"csrf-token":Kn(),"x-restli-protocol-version":"2.0.0"},n={fragmentEvent:e,debug:this.debug};this.networkTransporter.sendPayload(this.endpoint,n,t)}}}]),e}(),jn="https://www.linkedin-ei.com/trackingMonitoring/?action=saveClientFragment",Vn="https://www.linkedin.com/trackingMonitoring/?action=saveClientFragment";function zn(e){return"string"==typeof e}function Wn(e){return zn(e)?e:e.topicName||e.eventName}function Gn(e){return zn(e)?e:e.eventName}var Jn,Qn,Xn=function(){function e(t){var n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Ie(this,e),_e(this,"host",void 0),_e(this,"cmoTransporter",void 0),_e(this,"clientMonitoringInstanceId",ot()),_e(this,"currentContext",Zn()),_e(this,"appState",{}),_e(this,"estimatedFragmentSize",0),_e(this,"fragmentSizeLimit",void 0),_e(this,"activeFragmentEvent",void 0),_e(this,"debounceTimer",void 0),this.host=t,this.cmoTransporter=r.cmoTransporter||new qn(t),this.fragmentSizeLimit=(null===(n=t.clientMonitoringConfig)||void 0===n?void 0:n.fragmentSizeLimit)||10240,this.activeFragmentEvent=$n(this.clientMonitoringInstanceId,0,0,!1,this.getEventHeaders())}return Se(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=ke(this.activeFragmentEvent.stats.previousInstanceEventStats);try{for(r.s();!(n=r.n()).done;){var i=n.value;if(i.instanceId===e)return void t(i)}}catch(e){r.e(e)}finally{r.f()}var o=this.getEventHeaders(),a=o.header,s=o.requestHeader,c={header:Object.assign(a,{memberId:-1}),requestHeader:s,instanceId:e,eventsSent:0,eventTopics:[],networkResponseStats:{eventsWith2XXResponse:0,eventsWith400Response:0,eventsWith408Response:0,eventsWith429Response:0,eventsWith4XXResponse:0,eventsWith500Response:0,eventsWith502Response:0,eventsWith503Response:0,eventsWith504Response:0,eventsWith5XXResponse:0},failures:[]};t(c),this.activeFragmentEvent.stats.previousInstanceEventStats.push(c)}},{key:"logFailedEvent",value:function(e,t,n,r){var i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:this.getCurrentInstanceId(),o=this.getEventHeaders(),a=o.header,s=o.requestHeader,c={header:Object.assign(a,{memberId:-1}),requestHeader:s,instanceId:i,instanceEventNumber:r,reason:e,rawError:n,eventName:Gn(t),eventTopic:Wn(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(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(e||this.fragmentIsFull()){this.debounceTimer=void 0;var t=this.getEventHeaders(),n=t.header,r=t.requestHeader,i=this.activeFragmentEvent;i.header=n,i.requestHeader=r,this.cmoTransporter.fireFragment(i),this.estimatedFragmentSize=0,this.activeFragmentEvent=$n(this.clientMonitoringInstanceId,i.fragmentNumber+1,i.firstEventNumber+i.stats.eventsGenerated,!1,t)}}},{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=er(e.trackingId));var t=this.currentContext.pageInstance;return t.trackingId=er(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:"0000000000000000"}}}}]),e}();function Yn(e){return Jn||(Jn=new Xn(e)),{getCurrentInstanceId:function(){return Jn.getCurrentInstanceId()},logEventGenerated:function(e){return Jn.logEventGenerated(e)},logEventReadyToSend:function(e){Jn.logEventReadyToSend(e)},logEventSent:function(e){Jn.logEventSent(e)},logPersistedEventSent:function(e,t){Jn.logEventSent(t,e)},logNetworkResponseCode:function(e){Jn.logNetworkResponseCode(e)},logPersistedNetworkResponseCode:function(e,t){var n;null===(n=Jn)||void 0===n||n.logNetworkResponseCode(t,e)},logFailedEvent:function(e,t,n,r){Jn.logFailedEvent(e,t,n,r)},logPersistedFailedEvent:function(e,t,n,r,i){Jn.logFailedEvent(t,n,r,i,e)},flush:function(){Jn.flush()},destroy:function(){Jn=void 0},isDestroyed:function(){return void 0===Jn},setCurrentContext:function(e){Jn.setCurrentContext(e)},updateAppState:function(e){Jn.updateAppState(e)}}}function $n(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 Zn(){return{pageKey:"unknown",pageInstance:lt("unknown")}}function er(e){return Array.isArray(e)?it(e):16===e.length?e:function(e){return"string"==typeof e&&!!e.match(at)}(e)?atob(e):it(ut(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"}(Qn||(Qn={}));var tr="PageViewEvent",nr=function(){function e(t){var n=this;Ie(this,e),_e(this,"host",void 0),_e(this,"queue",void 0),_e(this,"preContextQueue",void 0),_e(this,"debounceTimer",void 0),_e(this,"unloadHandlers",void 0),_e(this,"maxQueueSize",void 0),_e(this,"flushDebounceTime",void 0),_e(this,"trackingEventListeners",[]),_e(this,"onHideHandler",(function(){n.forceFlush()})),_e(this,"networkTransporter",void 0),_e(this,"clientMonitoringConn",void 0),_e(this,"clientSequenceNumberCounter",void 0),_e(this,"isTimerRunning",void 0),_e(this,"enableSequenceNumberLix",void 0),this.host=t,this.queue=[],this.preContextQueue=[],this.unloadHandlers=[];var r=t.batching;this.maxQueueSize=r&&r.maxSize||1,this.flushDebounceTime=r&&r.debounceTime||0,wt.on("internal:hide",this.onHideHandler),this.networkTransporter=new xn(t),this.isLixEnabled("pemberly.tracking.monitoring")&&t.clientMonitoringConfig&&!t.inactive&&(this.clientMonitoringConn=Yn(t)),this.enableSequenceNumberLix=this.isLixEnabled("tracking.data-loss-web.sequence-number"),this.enableSequenceNumberLix&&(this.getSequenceNumberFromIDB(),this.updateSequenceNumberOnExit(),this.isTimerRunning=!1)}return Se(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,o=n.eventInfo.topicName||i,a="rawError"in e?e.rawError:"null",s=["type: ".concat(e.type),"statusCode: ".concat(e.statusCode||"null"),"drop: ".concat(String(e.drop)),"rawError: ".concat(a)].join(", ");t.logFailedEvent(Qn.UNKNOWN_EXECUTION_ERROR,{eventName:i,topicName:o},s,null!==(r=n.eventBody.header.clientMonitoringInstanceEventNumber)&&void 0!==r?r:-1)}))}catch(e){}},onBeforeRetry:function(e){var n;if(t&&!t.isDestroyed())try{if(n=JSON.parse(e),!Array.isArray(n)||0===n.length||!n[0].eventBody.header.clientMonitoringInstanceId)return;var r=n[0].eventBody.header.clientMonitoringInstanceId,i=n.length;t.logPersistedEventSent(r,i)}catch(e){}},onResult:function(e,n){var r;if(t)try{if(r=JSON.parse(n),!Array.isArray(r)||0===r.length||!r[0].eventBody.header.clientMonitoringInstanceId)return;var i=r[0].eventBody.header.clientMonitoringInstanceId;e.statusCode&&t.logPersistedNetworkResponseCode(i,e.statusCode),!0===e.drop&&r.forEach((function(n){var r=n.eventInfo.eventName,o=n.eventInfo.topicName||r,a="rawError"in e?e.rawError:"null",s=["type: ".concat(e.type),"statusCode: ".concat(e.statusCode||"null"),"drop: ".concat(String(e.drop)),"rawError: ".concat(a)].join(", ");t.logPersistedFailedEvent(i,Qn.UNKNOWN_EXECUTION_ERROR,{eventName:r,topicName:o},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(Wn(e.id)));var n,r=this.host,i=r.api.Promise,o=r.batching;return function(e){return!!e.meta.context}(t)?(this.prepareCompleteEnvelopeQueue(t),null===(n=this.clientMonitoringConn)||void 0===n||n.logEventReadyToSend(1),o?(this.batchFire(),i.resolve(!0)):(this.flush(!0),i.resolve(!0))):(this.preContextQueue.push(t),i.resolve(!0))}},{key:"callOnDestroy",value:function(e){this.unloadHandlers.push(e)}},{key:"destroy",value:function(){this.unloadHandlers.forEach((function(e){return e()})),this.forceFlush(),this.trackingEventListeners=[],this.clientMonitoringConn=void 0,wt.off("internal:hide",this.onHideHandler)}},{key:"forceFlush",value:function(){var e=this;this.populatePreContextQueue({pageInstance:lt("unknown"),pageKey:"unknown"}).forEach((function(t){return e.queue.push(t)})),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;gt("read").then((function(t){e.clientSequenceNumberCounter=t||0})).catch((function(e){wt.emit("internal:error",{tags:["core-web-tracking:sequence-number:idb-read"],reason:e})}))}},{key:"updateSequenceNumberToIDB",value:function(){gt("update",this.clientSequenceNumberCounter).catch((function(e){wt.emit("internal:error",{tags:["core-web-tracking:sequence-number:idb-update"],reason: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=ft(e.meta.context,this.host.api);"function"==typeof e.body&&(e.body=e.body(n)),this.preContextQueue.length>0&&this.populatePreContextQueue(n).forEach((function(e){return t.queue.push(e)})),this.queue.push(e)}},{key:"envelop",value:function(e,t,n){var r=this.host,i=r.appId,o=r.api,a={eventBody:t,eventInfo:"string"==typeof e?{appId:i,eventName:e,topicName:e}:o.assign({appId:i},e)};return n.length>0&&this.host.api.assign(a,{clientBreadcrumbs:n}),a}},{key:"getBreadcrumbs",value:function(e){return e.clientBreadcrumbs||[]}},{key:"getGenericEventBody",value:function(e){var t,n=this.host,r=n.appVersion,i=n.locale,o=n.api,a=o.location,s=o.document,c=o.assign,u=e.meta.context,l=u.pageKey,d=u.pageInstance,h=function(e){return"string"==typeof e?e===tr:e.eventName===tr}(e.id)&&(null===(t=e.body.requestHeader)||void 0===t?void 0:t.pageKey)||l,f=null;"string"!=typeof i&&null!==this.host.locale||(f=i);var p={interfaceLocale:f,pageKey:h,path:a.pathname+a.search,referer:s.referrer},v={pageInstance:d,time:e.meta.time,version:r};"number"==typeof this.clientSequenceNumberCounter&&c(v,{clientGlobalSequenceNumber:this.clientSequenceNumberCounter});var g={header:c(v,e.meta.header||{}),requestHeader:c(p,e.meta.requestHeader||{})},m=e.meta.clientMonitoringInstanceId,y=e.meta.clientMonitoringInstanceEventNumber;return m&&c(g.header,{clientMonitoringInstanceId:m,clientMonitoringInstanceEventNumber:y}),c(e.body,g)}},{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()}),{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():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(){var e=this,t=this.queue;if(0!==t.length){this.enableSequenceNumberLix&&"undefined"!=typeof window&&!1===this.isTimerRunning&&(this.isTimerRunning=!0,setInterval((function(){e.updateSequenceNumberToIDB()}),5e3)),this.queue=[];var n,r,i=[],o=[];t.forEach((function(t){var n=e.getGenericEventBody(t),r=e.getBreadcrumbs(t),a=e.envelop(t.id,n,r);e.trigger(a,t.meta);var s=a.eventInfo.eventName;"LixTreatmentsEvent"===s||"JavaScriptErrorEvent"===s?i.push(a):o.push(a),e.enableSequenceNumberLix&&"number"==typeof e.clientSequenceNumberCounter&&e.clientSequenceNumberCounter++})),this.host.inactive||(this.clientMonitoringConn&&(this.clientMonitoringConn.logEventSent(i.length+o.length),r=this.clientMonitoringConn,n={onResult:function(e,t){r&&!r.isDestroyed()&&(e.statusCode&&r.logNetworkResponseCode(e.statusCode),!0===e.drop&&t.forEach((function(t){var n=t.eventInfo.eventName,i=t.eventInfo.topicName||n,o="rawError"in e?e.rawError:"null",a=["type: ".concat(e.type),"statusCode: ".concat(e.statusCode||"null"),"drop: ".concat(String(e.drop)),"rawError: ".concat(o)].join(", ");null==r||r.logFailedEvent(Qn.UNKNOWN_EXECUTION_ERROR,{eventName:n,topicName:i},a,t.eventBody.header.clientMonitoringInstanceEventNumber||-1)})))}}),this.networkTransporter.sendPayloadFireForget(this.host.endpoint,i,void 0,n),this.networkTransporter.sendPayload(this.host.endpoint,o,void 0,n))}}}]),e}();var rr,ir=function(){function e(t,n){Ie(this,e),this.clientBreadcrumbType=t,this.id=n}return Se(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 or(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=e.lipi&&function(e){var t=decodeURIComponent(e).split(";");if(t.length>1)return{pageUrn:t[0],trackingId:t[1]}}(e.lipi),o=i&&{pageInstance:i,pageKey:t}||t&&{pageKey:t};if(e.external_page&&e.external_page_instance){var a=decodeURIComponent(e.external_page);o={pageInstance:{pageUrn:"urn:li:externalPage:".concat(a),trackingId:e.external_page_instance},pageKey:a},n=!0}var s=e.external_app&&e.external_app_instance?{applicationUrn:"urn:li:externalApplication:".concat(decodeURIComponent(e.external_app)),trackingId:e.external_app_instance,version:""}:void 0;return s&&((o=o||{}).applicationInstance=s),{fromExternalApp:n||!!s,previousApplicationInstance:s,previousContext:o,previousControlId:e.lici&&decodeURIComponent(e.lici),previousControlUrn:r}}function ar(e){return"retryConfig"in e.host}!function(e){e.UNKNOWN="UNKNOWN",e.ME_NOTIFICATION="ME_NOTIFICATION",e.ME_NOTIFICATION_ACTION="ME_NOTIFICATION_ACTION"}(rr||(rr={}));var sr=function(){function e(t,n){var r,i;if(Ie(this,e),_e(this,"transporter",void 0),_e(this,"delegate",void 0),_e(this,"currentContext",void 0),_e(this,"appState",void 0),_e(this,"previousAppContext",void 0),_e(this,"customTransporters",void 0),_e(this,"clientMonitoringConn",void 0),this.transporter=t,this.delegate=n,this.appState={},this.customTransporters={},n&&n.customTransporterHosts)for(var o in n.customTransporterHosts)if(Object.prototype.hasOwnProperty.call(n.customTransporterHosts,o)){var a=this.transporter.host.api.assign({},this.transporter.host);this.customTransporters[o]=new nr(this.transporter.host.api.assign(a,n.customTransporterHosts[o]))}"enabled"===(null===(r=(i=t.host).__getLixTreatment)||void 0===r?void 0:r.call(i,"pemberly.tracking.monitoring"))&&t.host.clientMonitoringConfig&&!t.host.inactive&&"location"in t.host.api&&(this.clientMonitoringConn=Yn(t.host))}return Se(e,[{key:"host",get:function(){return this.transporter.host}},{key:"checkAndEnablePersistentRetry",value:function(){ar(this.transporter)&&this.transporter.checkAndEnablePersistentRetry(this.delegate)}},{key:"flushAndClearPersistedEventsOnLogout",value:function(){this.forceFlush();var e=ar(this.transporter)?this.transporter.clearPersistedEventsOnLogout():null;return null!=e?e:this.host.api.Promise.resolve()}},{key:"getCurrentContext",value:function(){if(this.currentContext)return ft(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,or(t));if(this.setCurrentContext(r.to),!n.suppressEventsFiring)return this.fireNavEvents(r)}},{key:"setCurrentContext",value:function(e){var t;this.currentContext=ft(e,this.host.api),null===(t=this.clientMonitoringConn)||void 0===t||t.setCurrentContext(ft(e,this.host.api))}},{key:"updateAppState",value:function(e){var t;this.host.api.assign(this.appState,e),null===(t=this.clientMonitoringConn)||void 0===t||t.updateAppState(e)}},{key:"fireCIE",value:function(e,t,n,r,i){return this.fireEvent("ControlInteractionEvent",(function(n){var o=dt(n.pageKey,e),a={controlTrackingId:r,controlUrn:o,interactionType:t};return i&&i(o),a}),{context:n})}},{key:"fireEvent",value:function(e,t,n,r){if(!t){var i=Wn(e),o=void 0===t?"undefined":null===t?"null":Oe(t),a='Firing tracking event "'.concat(i,'" with invalid body, you fired "').concat(o,'"');if(this.clientMonitoringConn){var s=this.clientMonitoringConn.logEventGenerated(i);this.clientMonitoringConn.logFailedEvent(Qn.MISSING_REQUIRED_PROPERTIES,e,a,s)}throw new Error(a)}var c=r||[];if(c.length>0){var u=c.map((function(e){return ir.toPointer(e)}));this.host.api.assign(t,{clientBreadcrumbPointers:u})}var l=c.length>0?this.generateEnvelopeWithBreadcrumbs(e,t,n,c):this.generateEnvelope(e,t,n);return this.fireEnvelope(l)}},{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=this.generateEnvelope(e,t,n),o=r.length>0?this.addBreadcrumbsToEnvelope(i,r):i;return o}},{key:"addBreadcrumbsToEnvelope",value:function(e,t){var n=t.map((function(e){var t=e;return delete t.clientBreadcrumbType,t}));return this.host.api.assign(e,{clientBreadcrumbs:n}),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(zn(e.id)){var r=e.id;e.id={eventName:r,topicName:r,shouldAnonymizeMemberId:!0}}else e.id.shouldAnonymizeMemberId=!0;var i=this.delegate&&this.delegate.preTransporter?this.delegate.preTransporter(e):e;if(i){var o=i.meta.transporterKey,a=o?this.customTransporters[o]:this.transporter;if(!a&&o){var s=Wn(i.id),c="Could not find custom transporter: ".concat(o);if(this.clientMonitoringConn){var u=this.clientMonitoringConn.logEventGenerated(s);this.clientMonitoringConn.logFailedEvent(Qn.UNKNOWN_EXECUTION_ERROR,i.id,c,u)}throw new Error(c)}return a.fireEvent(i)}return this.host.api.Promise.resolve(!0)}},{key:"generatePageInstance",value:function(e,t){return lt(e,t)}},{key:"firePVE",value:function(e,t,n){var r={pageType:"full",totalTime:0,trackingCode:this.getTrackingCode(),trackingInfo:{}},i=this.host.api.assign(r,t),o=this.generateEnvelope("PageViewEvent",i,{context:n});return o.meta.requestHeader.pageKey=e,this.fireEnvelope(o)}},{key:"destroy",value:function(){for(var e in this.transporter.destroy(),this.customTransporters)this.customTransporters[e].destroy();this.clientMonitoringConn&&(this.clientMonitoringConn.flush(),this.clientMonitoringConn.destroy(),this.clientMonitoringConn=void 0),wt.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 dt((t||this.currentContext||{pageKey:"unknown"}).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){var n="NavigationEvent";this.previousAppContext=t.previousContext;var r=t.fromExternalApp?{eventName:n,topicName:"InboundNavigationEvent"}:n;return{from:t.previousContext,navEventId:r,to:{applicationInstance:t.applicationInstance,pageInstance:this.generatePageInstance(e,t.pageTrackingId),pageKey:e},triggerId:t.previousControlId,triggerUrn:t.previousControlUrn}}},{key:"fireNavEvents",value:function(e){var t=this.generateNavigationEvent(e),n=e.to,r=e.from,i=e.navEventId,o=this.generateEnvelope(i,t);o.meta.requestHeader.pageKey=n.pageKey;var a=r&&r.applicationInstance;return a&&(o.meta.header.clientApplicationInstance=a),this.host.api.Promise.all([this.firePVE(n.pageKey),this.fireEnvelope(o)])}},{key:"generateEnvelope",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r={directive:n.directive,transporterKey:n.transporterKey,context:n.context||this.currentContext&&ft(this.currentContext,this.host.api),requestHeader:this.host.api.assign({trackingCode:this.getTrackingCode()},n.requestHeader||{}),header:this.host.api.assign({applicationViewerUrn:this.appState.applicationViewerUrn,clientApplicationInstance:this.appState.clientApplicationInstance},n.header||{})};return{body:"function"==typeof t?t:function(){return t},id:e,meta:r}}}]),e}();function cr(e){return e.split("").reduce((function(e,t){return(e<<5)-e+t.charCodeAt(0)|0}),0)}var ur,lr,dr,hr=function(){function e(t,n){var r,i=this;Ie(this,e),_e(this,"core",void 0),_e(this,"protocol",void 0),_e(this,"throttleKeySet",new Set),_e(this,"config",void 0),_e(this,"reportTransporterError",(function(e){e.reason instanceof Error||(e.reason=new Error(e.reason||"An error occurred in the transporter")),i.reportError(e.reason,e.tags.concat(["info"])).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},wt.on("internal:error",this.reportTransporterError)}return Se(e,[{key:"reportError",value:function(e){var t,n=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=i.callTreeId,a=void 0===o?"":o,s=i.responseHeaders,c=void 0===s?{}:s,u=e.message,l=e.name,d=e.stack,h=void 0===d?"":d,f=e.fileName,p=void 0===f?"":f,v=e.lineNumber,g=void 0===v?0:v,m=e.columnNumber,y=void 0===m?0:m,b=this.core.host,E=b.appId,w=b.appVersion,C=b.service,k=b.serviceInstance,I=b.treeID,T=void 0===I?"":I,S=b.api,_=S.Promise,A=S.location,N=A.host,R=A.pathname,O=A.search,P=A.hash,M=void 0===P?"":P;if(c){t={};var L=new Map;Object.keys(c).forEach((function(e){L.set(e.toLowerCase(),c[e])})),t.callTreeId=L.get("x-li-uuid"),t.microsoftEdgeReference=L.get("x-msedge-ref"),t.pointOfPresenceId=L.get("x-li-pop"),t.fabric=L.get("x-li-fabric")}var D=function(){return n.core.fireEvent("JavaScriptErrorEvent",(function(e){return{appId:E,e:{c:y,l:g,m:u,s:h,t:l,u:p},h:M,l:n.protocol,o:N,p:R,pageKey:e.pageKey,q:O,service:C,serviceInstance:k,serviceVersion:w,t:r,trackingID:e.pageInstance.trackingId,treeID:T,callTreeId:a,responseTraceHeaders:t}}))};if(this.config.throttleTime<0)return D();var x=cr(l+u+h+r.join("")+a);return this.throttleKeySet.has(x)?_.resolve(!1):(this.throttleKeySet.add(x),setTimeout((function(){return n.throttleKeySet.delete(x)}),this.config.throttleTime),D())}},{key:"flush",value:function(){this.core.forceFlush()}},{key:"destroy",value:function(){this.core.destroy(),wt.off("internal:error",this.reportTransporterError)}}]),e}(),fr=function(){function e(){Ie(this,e),_e(this,"userTimingEntries",[]),_e(this,"longTasks",[]),_e(this,"resourceTimingEntries",[]),_e(this,"cdnData",void 0)}return Se(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(vr),cdnData:this.cdnData}}}]),e}(),pr=["resourceTreeId","name","entryType","startTime","duration","initiatorType","nextHopProtocol","redirectStart","redirectEnd","fetchStart","domainLookupStart","domainLookupEnd","connectStart","connectEnd","secureConnectionStart","requestStart","responseStart","responseEnd","transferSize","encodedBodySize","decodedBodySize","workerStart"];function vr(e){return pr.reduce((function(t,n){var r=e[n];return void 0!==r&&(t[n]=r),t}),{})}function gr(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};lr=Object.assign(Object.assign({},n),t),dr=function(e,t){return e.nodeType===Node.DOCUMENT_NODE?e:e===t.root?e.ownerDocument:e}(lr.root,n);var r=mr(e,ur.All,(function(){return mr(e,ur.Two,(function(){return mr(e,ur.One)}))}));if(r){var i=_r(Ar(r,e));return i.length>0&&(r=i[0]),br(r)}throw new Error("Selector was not found.")}function mr(e,t,n){for(var r=null,i=[],o=e,a=0,s=function(){var e=Ir(function(e){var t=e.getAttribute("id");return t&&lr.idName(t)?{name:"#"+Dr(t,{isIdentifier:!0}),penalty:0}:null}(o))||Ir.apply(void 0,Ae(function(e){return Array.from(e.attributes).filter((function(e){return lr.attr(e.name,e.value)})).map((function(e){return{name:"["+Dr(e.name,{isIdentifier:!0})+'="'+Dr(e.value)+'"]',penalty:.5}}))}(o)))||Ir.apply(void 0,Ae(function(e){return Array.from(e.classList).filter(lr.className).map((function(e){return{name:"."+Dr(e,{isIdentifier:!0}),penalty:1}}))}(o)))||Ir(function(e){var t=e.tagName.toLowerCase();return lr.tagName(t)?{name:t,penalty:2}:null}(o))||[{name:"*",penalty:3}],s=function(e){var t=e.parentNode;if(!t)return null;var n=t.firstChild;if(!n)return null;for(var r=0;n&&(n.nodeType===Node.ELEMENT_NODE&&r++,n!==e);)n=n.nextSibling;return r}(o);if(t===ur.All)s&&(e=e.concat(e.filter(kr).map((function(e){return Cr(e,s)}))));else if(t===ur.Two)e=e.slice(0,1),s&&(e=e.concat(e.filter(kr).map((function(e){return Cr(e,s)}))));else if(t===ur.One){var c=Ce(e=e.slice(0,1),1)[0];s&&kr(c)&&(e=[Cr(c,s)])}var u,l=ke(e);try{for(l.s();!(u=l.n()).done;)u.value.level=a}catch(e){l.e(e)}finally{l.f()}if(i.push(e),i.length>=lr.seedMinLength&&(r=yr(i,n)))return"break";o=o.parentElement,a++};o&&o!==lr.root.parentElement&&"break"!==s(););return r||(r=yr(i,n)),r}function yr(e,t){var n=_r(Sr(e));if(n.length>lr.threshold)return t?t():null;var r,i=ke(n);try{for(i.s();!(r=i.n()).done;){var o=r.value;if(wr(o))return o}}catch(e){i.e(e)}finally{i.f()}return null}function br(e){for(var t=e[0],n=t.name,r=1;r<e.length;r++){var i=e[r].level||0;n=t.level===i-1?"".concat(e[r].name," > ").concat(n):"".concat(e[r].name," ").concat(n),t=e[r]}return n}function Er(e){return e.map((function(e){return e.penalty})).reduce((function(e,t){return e+t}),0)}function wr(e){switch(dr.querySelectorAll(br(e)).length){case 0:throw new Error("Can't select any node with this selector: ".concat(br(e)));case 1:return!0;default:return!1}}function Cr(e,t){return{name:e.name+":nth-child(".concat(t,")"),penalty:e.penalty+1}}function kr(e){return"html"!==e.name&&!e.name.startsWith("#")}function Ir(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=t.filter(Tr);return r.length>0?r:null}function Tr(e){return null!=e}function Sr(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];if(e.length>0){var n,r=[],i=ke(e[0]);try{for(i.s();!(n=i.n()).done;){var o=n.value;r=r.concat(Sr(e.slice(1,e.length),t.concat(o)))}}catch(e){i.e(e)}finally{i.f()}return r}return[t]}function _r(e){return Array.from(e).sort((function(e,t){return Er(e)-Er(t)}))}function Ar(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>lr.optimizedMinLength)for(var i=1;i<e.length-1;i++){if(n.counter>lr.maxNumberOfTries)return r;n.counter+=1;var o=Ae(e);o.splice(i,1);var a=br(o);if(n.visited.has(a))return r;wr(o)&&Nr(o,t)&&(r.push(o),n.visited.set(a,!0),r=r.concat(Ar(o,t,n)))}return r}function Nr(e,t){return dr.querySelector(br(e))===t}!function(e){e[e.All=0]="All",e[e.Two=1]="Two",e[e.One=2]="One"}(ur||(ur={}));var Rr,Or=/[ -,\.\/:-@\[-\^`\{-~]/,Pr=/[ -,\.\/:-@\[\]\^`\{-~]/,Mr=/(^|\\+)?(\\[A-F0-9]{1,6})\x20(?![a-fA-F0-9\x20])/g,Lr={escapeEverything:!1,isIdentifier:!1,quotes:"single",wrap:!1};function Dr(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=Object.assign(Object.assign({},Lr),t);"single"!=n.quotes&&"double"!=n.quotes&&(n.quotes="single");for(var r="double"==n.quotes?'"':"'",i=n.isIdentifier,o=e.charAt(0),a="",s=0,c=e.length;s<c;){var u=e.charAt(s++),l=u.charCodeAt(0),d=void 0;if(l<32||l>126){if(l>=55296&&l<=56319&&s<c){var h=e.charCodeAt(s++);56320==(64512&h)?l=((1023&l)<<10)+(1023&h)+65536:s--}d="\\"+l.toString(16).toUpperCase()+" "}else d=n.escapeEverything?Or.test(u)?"\\"+u:"\\"+l.toString(16).toUpperCase()+" ":/[\t\n\f\r\x0B]/.test(u)?"\\"+l.toString(16).toUpperCase()+" ":"\\"==u||!i&&('"'==u&&r==u||"'"==u&&r==u)||i&&Pr.test(u)?"\\"+u:u;a+=d}return i&&(/^-[-\d]/.test(a)?a="\\-"+a.slice(1):/\d/.test(o)&&(a="\\3"+o+" "+a.slice(1))),a=a.replace(Mr,(function(e,t,n){return t&&t.length%2?e:(t||"")+n})),!i&&n.wrap?r+a+r:a}function xr(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(e&&"function"==typeof e.now&&(e.timeOrigin||e.timing)){var n,r=e.now();return n=!e.timing&&t?Math.floor(e.timeOrigin):e.timing.navigationStart,Math.round(r+n)}return Date.now()}function Ur(e){var t=e||performance;return Math.round(t.now())}function Fr(e){if(!e)return"null";if(e.nodeType===Node.ELEMENT_NODE)try{return gr(e,{idName:function(e){return 0!==e.indexOf("ember")}})}catch(e){return"serialization_error"}var t=Fr(e.parentElement||void 0);return"".concat(t," > nodeType(").concat(e.nodeType,")")}function Hr(e,t,n){var r=[];return e&&"function"==typeof e.getEntriesByType&&(t["user-timing-measure-enabled"]&&e.getEntriesByType("measure").forEach((function(e){r.push({entryType:"MEASURE",name:e.name,startTime:e.startTime,duration:e.duration})})),t["user-timing-mark-enabled"]&&e.getEntriesByType("mark").forEach((function(e){r.push({entryType:"MARK",name:e.name,startTime:e.startTime,duration:e.duration})})),n&&(e.clearMeasures(),e.clearMarks())),r}function Br(e){var t=[];return e.forEach((function(e){return t.push(e)})),t}var Kr,qr=function(){function e(t){Ie(this,e),_e(this,"hostApis",void 0),_e(this,"hostnameProperties",void 0),_e(this,"usedHostnames",void 0),_e(this,"abortController",void 0),_e(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 Se(e,[{key:"clearUsedHostnames",value:function(){this.usedHostnames=new Set}},{key:"getPresentData",value:function(){var e=this;return vt(this.usedHostnames).map((function(t){return e.hostnameProperties[t]||{hostname:t,provider:"",ipVersion:"",httpVersion:""}}))}},{key:"getDataWhenReady",value:function(e){var t=this,n=this.hostApis,r=n.AbortController,i=n.Promise,o=pt(vt(this.pendingPromises),i),a=setTimeout((function(){t.abortController.abort(),t.abortController=new r}),e);return o.then((function(){return clearTimeout(a),t.getPresentData()}))}},{key:"inspectEntryForCdnData",value:function(e){var t=this;if(!(e.name.indexOf(".licdn.")<0)){var n,r,i=this.hostApis.assign,o=(n=e.name,r=this.hostApis.document,(Rr=Rr||r.createElement("a")).href=n,Rr.hostname);if(this.usedHostnames.add(o),!this.hostnameProperties[o]&&!this.isResourcePossiblyFromCache(e)){var a=this.fetchCdnFromUrl(e.name).then((function(e){var n=i({hostname:o},e);return t.hostnameProperties[o]||(t.hostnameProperties[o]=n),t.pendingPromises.delete(a),n}));this.pendingPromises.add(a)}}}},{key:"fetchCdnFromUrl",value:function(e){return(0,this.hostApis.fetch)(e,{method:"HEAD",signal:this.abortController.signal}).then((function(e){return{provider:e.headers.get("X-CDN")||"",ipVersion:e.headers.get("X-CDN-CLIENT-IP-VERSION")||"",httpVersion:e.headers.get("X-CDN-Proto")||""}}))}},{key:"isResourcePossiblyFromCache",value:function(e){return void 0!==e.transferSize?0===e.transferSize:e.domainLookupStart===e.domainLookupEnd&&e.connectEnd===e.connectStart&&0===e.secureConnectionStart}}]),e}(),jr=function(){function e(t,n,r,i){Ie(this,e),_e(this,"hostApis",void 0),_e(this,"statics",void 0),_e(this,"options",void 0),_e(this,"allowTimingOrigin",void 0),_e(this,"collectResourceTimings",void 0),_e(this,"collectCdnData",void 0),_e(this,"perfObserver",void 0),_e(this,"renderTimings",new Map),_e(this,"urlToTreeId",new Map),_e(this,"cdnDataProvider",void 0),_e(this,"observables",new fr),this.hostApis=t,this.statics=n,this.options=r,this.allowTimingOrigin=i,this.collectResourceTimings=r["enable-rs-timing"],this.collectCdnData=r["enable-cdn-tracking"],this.collectCdnData&&(this.cdnDataProvider=new qr(t))}return Se(e,[{key:"recordTreeId",value:function(e,t){this.collectResourceTimings&&this.urlToTreeId.set(function(e,t){return(Rr=Rr||t.createElement("a")).href=e,Rr.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:xr(this.hostApis.performance,this.allowTimingOrigin)})}},{key:"recordRenderEnd",value:function(e){var t=this.renderTimings.get(e);t&&(t.renderEnd=t.renderEnd||xr(this.hostApis.performance,this.allowTimingOrigin))}},{key:"startObserving",value:function(){var e=this.hostApis,t=e.PerformanceObserver,n=e.performance;this.stopObserving(),t?this.setupPerformanceObserver(t):this.collectResourceTimings&&this.emulateResourceTimingObserver(n),this.collectResourceTimings&&this.processNewResourceTimings()}},{key:"stopObserving",value:function(){var e;null===(e=this.perfObserver)||void 0===e||e.disconnect(),this.reset()}},{key:"collect",value:function(e){var t=this,n=e.isInitial,r=e.immediate,i=this.collectSynchronousData(n);if(r)return i;var o=this.collectAsynchronousData();return"then"in o?o.then((function(e){return(0,t.hostApis.assign)(i,e),i})):i}},{key:"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=Hr(this.hostApis.performance,this.options,!0),this.collectResourceTimings&&this.processNewResourceTimings()),this.observables.attachTreeIds(this.urlToTreeId),this.urlToTreeId.clear(),n(i,this.observables.getData(),this.snapshot,this.statics),e&&n(i,function(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}(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?pt(i,Promise).then((function(){return n})):n}},{key:"setupPerformanceObserver",value:function(e){var t=this;this.perfObserver=new e((function(e){e.getEntries().forEach((function(e){var n=e.entryType,r=e.name,i=e.startTime,o=e.duration;"resource"===n?t.processSingleResourceTiming(e):"mark"===n?t.observables.userTimingEntries.push({entryType:"MARK",name:r,startTime:i,duration:o}):"measure"===n?t.observables.userTimingEntries.push({entryType:"MEASURE",name:r,startTime:i,duration:o}):"longtask"===n&&t.observables.longTasks.push({duration:o,name:r,startTime:i})}))})),this.observables.userTimingEntries=Hr(this.hostApis.performance,this.options,!1);var n=["longtask"];(this.collectResourceTimings||this.collectCdnData)&&n.push("resource"),this.options["user-timing-mark-enabled"]&&n.push("mark"),this.options["user-timing-measure-enabled"]&&n.push("measure"),this.perfObserver.observe({entryTypes:n})}},{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(t){return e.processSingleResourceTiming(t)})),t.clearResourceTimings())}},{key:"processSingleResourceTiming",value:function(e){this.collectResourceTimings&&this.observables.resourceTimingEntries.push(e),this.collectCdnData&&this.cdnDataProvider.inspectEntryForCdnData(e)}},{key:"extractUsedCDN",value:function(e){var t=e.filter((function(e){return e.hostname.indexOf("static")>=0})),n=t.length>0?t[0]:{hostname:"",provider:"",httpVersion:"",ipVersion:""};return{static_domain:n.provider,http_version:n.httpVersion,ip_version:n.ipVersion}}},{key:"snapshot",get:function(){var e={detailedRenderTimingEntries:Br(this.renderTimings),networkInformationMetrics:zr(this.hostApis.connection)};return this.renderTimings.clear(),e}}]),e}(),Vr=["loadEventEnd","loadEventStart","domComplete","domContentLoadedEventEnd","domContentLoadedEventStart","domInteractive","domLoading","responseEnd","responseStart","requestStart","secureConnectionStart","connectEnd","connectStart","domainLookupEnd","domainLookupStart","fetchStart","redirectEnd","redirectStart","unloadEventEnd","unloadEventStart","navigationStart"];function zr(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(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"}(Kr||(Kr={}));var Wr=(_e(we={},"web-ui-framework","EMBER"),_e(we,"app-id","linkedin.rum.tracking"),_e(we,"app-version","unknown"),_e(we,"is-single-page-app",!0),_e(we,"user-timing-mark-enabled",!1),_e(we,"user-timing-measure-enabled",!0),_e(we,"beacon-source","apps"),_e(we,"enable-rs-timing",!0),_e(we,"enable-cdn-tracking",!1),_e(we,"async-plugins-timeout",5e3),_e(we,"beacon-timeout",3e4),_e(we,"enable-memory-measurement",!1),_e(we,"pageKeyPrefix",""),we),Gr=function(){function e(t,n,r){Ie(this,e),_e(this,"featureName",void 0),_e(this,"trackingCore",void 0),_e(this,"rumConfig",void 0),_e(this,"observing",!1),_e(this,"basePageTreeId",void 0),_e(this,"startPageInstance",void 0),_e(this,"startMemory",void 0),_e(this,"reportTimeouts",[]),this.featureName=t,this.trackingCore=n,this.rumConfig=r}return Se(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)||lt("unknown"),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:Ur(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}();_e(Gr,"checkpoints",[1,3,10,30,90,180,300]);var Jr,Qr,Xr,Yr,$r,Zr=Se((function e(t,n,r){Ie(this,e),_e(this,"webUIFramework",void 0),_e(this,"timeSource",void 0),_e(this,"isSinglePageApp",void 0),_e(this,"appRenderMode",void 0),_e(this,"isAppRenderFailed",void 0),_e(this,"pageLoadMode","INITIAL"),_e(this,"isSSL",void 0),_e(this,"treeId",void 0),_e(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})),ei=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)}},ti=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){}},ni=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)},ri=function(e){addEventListener("pageshow",(function(t){t.persisted&&e(t)}),!0)},ii=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)))}},oi=-1,ai=function(){return"hidden"===document.visibilityState?0:1/0},si=function(){ni((function(e){var t=e.timeStamp;oi=t}),!0)},ci=function(){return oi<0&&(oi=ai(),si(),ri((function(){setTimeout((function(){oi=ai(),si()}),0)}))),{get firstHiddenTime(){return oi}}},ui=!1,li=-1,di=function(e,t){ui||(function(e,t){var n,r=ci(),i=ei("FCP"),o=function(e){"first-contentful-paint"===e.name&&(s&&s.disconnect(),e.startTime<r.firstHiddenTime&&(i.value=e.startTime,i.entries.push(e),n(!0)))},a=window.performance&&performance.getEntriesByName&&performance.getEntriesByName("first-contentful-paint")[0],s=a?null:ti("paint",o);(a||s)&&(n=ii(e,i,t),a&&o(a),ri((function(r){i=ei("FCP"),n=ii(e,i,t),requestAnimationFrame((function(){requestAnimationFrame((function(){i.value=performance.now()-r.timeStamp,n(!0)}))}))})))}((function(e){li=e.value})),ui=!0);var n,r=function(t){li>-1&&e(t)},i=ei("CLS",0),o=0,a=[],s=function(e){if(!e.hadRecentInput){var t=a[0],r=a[a.length-1];o&&e.startTime-r.startTime<1e3&&e.startTime-t.startTime<5e3?(o+=e.value,a.push(e)):(o=e.value,a=[e]),o>i.value&&(i.value=o,i.entries=a,n())}},c=ti("layout-shift",s);c&&(n=ii(r,i,t),ni((function(){c.takeRecords().map(s),n(!0)})),ri((function(){o=0,li=-1,i=ei("CLS",0),n=ii(r,i,t)})))},hi={passive:!0,capture:!0},fi=new Date,pi=function(e,t){Jr||(Jr=t,Qr=e,Xr=new Date,mi(removeEventListener),vi())},vi=function(){if(Qr>=0&&Qr<Xr-fi){var e={entryType:"first-input",name:Jr.type,target:Jr.target,cancelable:Jr.cancelable,startTime:Jr.timeStamp,processingStart:Jr.timeStamp+Qr};Yr.forEach((function(t){t(e)})),Yr=[]}},gi=function(e){if(e.cancelable){var t=(e.timeStamp>1e12?new Date:performance.now())-e.timeStamp;"pointerdown"==e.type?function(e,t){var n=function(){pi(e,t),i()},r=function(){i()},i=function(){removeEventListener("pointerup",n,hi),removeEventListener("pointercancel",r,hi)};addEventListener("pointerup",n,hi),addEventListener("pointercancel",r,hi)}(t,e):pi(t,e)}},mi=function(e){["mousedown","keydown","touchstart","pointerdown"].forEach((function(t){return e(t,gi,hi)}))},yi=function(e,t){var n,r=ci(),i=ei("FID"),o=function(e){e.startTime<r.firstHiddenTime&&(i.value=e.processingStart-e.startTime,i.entries.push(e),n(!0))},a=ti("first-input",o);n=ii(e,i,t),a&&ni((function(){a.takeRecords().map(o),a.disconnect()}),!0),a&&ri((function(){var r;i=ei("FID"),n=ii(e,i,t),Yr=[],Qr=-1,Jr=null,mi(addEventListener),r=o,Yr.push(r),vi()}))},bi={},Ei=function(e,t){var n,r=ci(),i=ei("LCP"),o=function(e){var t=e.startTime;t<r.firstHiddenTime&&(i.value=t,i.entries.push(e)),n()},a=ti("largest-contentful-paint",o);if(a){n=ii(e,i,t);var s=function(){bi[i.id]||(a.takeRecords().map(o),a.disconnect(),bi[i.id]=!0,n(!0))};["keydown","click"].forEach((function(e){addEventListener(e,s,{once:!0,capture:!0})})),ni(s,!0),ri((function(r){i=ei("LCP"),n=ii(e,i,t),requestAnimationFrame((function(){requestAnimationFrame((function(){i.value=performance.now()-r.timeStamp,bi[i.id]=!0,n(!0)}))}))}))}},wi=["LCP","FID","CLS"],Ci={LCP:"LargestContentfulPaint",FID:"FirstInputDelay",CLS:"CumulativeLayoutShift"},ki={},Ii=function(){var e;if(!Un)return"";var t=window.performance,n=void 0;if("function"==typeof(null==t?void 0:t.getEntriesByType)){var r,i=null===(r=window.performance)||void 0===r?void 0:r.getEntriesByType("navigation");(null==i?void 0:i.length)>0&&(n=i[0])}return(null===(e=n)||void 0===e?void 0:e.name)||window.location.href}(),Ti=!1,Si=[],_i={LCP:"largest-contentful-paint",FID:"first-input",CLS:"layout-shift"};function Ai(){var e=!0===window.__test__resetWebVitalsState;if(!Ti||e){e&&(Si=[]),wi.forEach(Ni);var t=Symbol();$r=t,[Ei,yi,di].forEach((function(e){return e(Ri.bind(null,t),!0)})),[Ei,yi,di].forEach((function(e){return e(Oi.bind(null,t))})),Ti=!0}}function Ni(e){ki[e]={name:e,value:-1,updateHistory:[]};var t=_i[e];"undefined"!=typeof PerformanceObserver&&void 0!==PerformanceObserver.supportedEntryTypes&&"string"==typeof t&&PerformanceObserver.supportedEntryTypes.indexOf(t)>-1||(ki[e].value=-2)}function Ri(e,t){if(e===$r){var n=ki[t.name],r=Ur();n&&(n.updateHistory.push({time:r,data:t}),n.value=t.value),Si.forEach((function(e){return e(t,r,!1)}))}}function Oi(e,t){e===$r&&Si.forEach((function(e){return e(t,Ur(),!0)}))}var Pi=function(){function e(t,n){Ie(this,e),_e(this,"basePageTreeId",void 0),_e(this,"basePageKey",void 0),_e(this,"observing",!1),_e(this,"appContextMap",new Map),_e(this,"rumConfig",void 0),_e(this,"trackingCore",void 0),this.trackingCore=t,this.rumConfig=n}return Se(e,[{key:"startObserving",value:function(){var e,t,n=this;Ai(),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",wi.forEach((function(e){var t;-2===(null===(t=ki[e])||void 0===t?void 0:t.value)&&n.reportMetric(e)})),t=this.onMetricUpdate.bind(this),Si.push(t))}},{key:"stopObserving",value:function(){this.observing=!1}},{key:"onMetricUpdate",value:function(e,t,n){var r;this.observing&&(n?this.reportMetric(e.name):this.appContextMap.set(t,{time:t,url:location.href,pageKey:null===(r=this.trackingCore.getCurrentContext())||void 0===r?void 0:r.pageKey}))}},{key:"reportMetric",value:function(e){var t=ki[e],n={name:Ci[e]||e};"CLS"===e?n.doubleValue=t.value:n.longValue=Math.round(t.value);var r=ki[e];if(r){var i=function(e,t,n,r,i){var o={basePageTreeId:e,basePageKey:t,basePageUrl:Ii},a=null;switch(n.name){case"LCP":a=function(e,t){var n;if(0===e.updateHistory.length)return null;var r=e.updateHistory[e.updateHistory.length-1],i=r.data.entries,o=i[i.length-1],a={pageKey:(null===(n=t.get(r.time))||void 0===n?void 0:n.pageKey)||"_unknown",element:Fr(o.element),renderTime:Math.round(o.renderTime),loadTime:Math.round(o.loadTime),size:Math.round(o.size)};return o.url&&(a.url=o.url),a}(n,r);break;case"FID":a=function(e,t){var n;if(0===e.updateHistory.length)return null;var r=e.updateHistory[e.updateHistory.length-1],i=r.data.entries,o=i[i.length-1];return{pageKey:(null===(n=t.get(r.time))||void 0===n?void 0:n.pageKey)||"_unknown",processingStart:Math.round(o.processingStart),processingEnd:Math.round(o.processingEnd),target:Fr(o.target)}}(n,r);break;case"CLS":a=function(e,t){if(0===e.updateHistory.length)return null;var n=e.updateHistory.map((function(e){return e.data.entries})).flat();if(0===n.length)return null;var r=n.reduce((function(e,t){return e&&e.value>t.value?e:t})),i=e.updateHistory.find((function(e){return e.data.entries.includes(r)})),o=null;r&&r.sources&&r.sources.length&&(o=r.sources.reduce((function(e,t){return e.node&&e.previousRect.width*e.previousRect.height>t.previousRect.width*t.previousRect.height?e:t})));var a,s=t.get(i.time);return o&&s?{shiftCount:n.length,"largestShift.value":r.value,"largestShift.hadRecentInput":r.hadRecentInput,"largestShift.largestSource.node":Fr(null===(a=o)||void 0===a?void 0:a.node),"largestShift.pageKey":s.pageKey||"_unknown","largestShift.url":s.url,"largestShift.startTime":Math.round(r.startTime)}:null}(n,r)}if(a){var s={};return i(s,o,a),s}return o}(this.basePageTreeId,this.basePageKey,r,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}(i)}var o={scope:{scopeType:"APPLICATION_INSTANCE",scopeKey:this.basePageTreeId},metrics:[n]};this.trackingCore.fireEvent({appId:this.rumConfig["app-id"],eventName:"ClientPerfMetricsEvent"},o)}}]),e}(),Mi=function(){function e(t,n,r){var i,o;Ie(this,e),_e(this,"core",void 0),_e(this,"config",void 0),_e(this,"collector",void 0),_e(this,"boomerangStart",-1),_e(this,"webVitalsObserver",void 0),_e(this,"appMemoryObserver",void 0),_e(this,"pageMemoryObserver",void 0),_e(this,"liveTokens",new Set),_e(this,"stateWM",new WeakMap),_e(this,"activeToken",void 0),_e(this,"isInitial",void 0),_e(this,"beforeHideHandlerBound",this.beforeHideHandler.bind(this)),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({},Wr),n);var a="enabled"===(null===(i=(o=this.core.host).__getLixTreatment)||void 0===i?void 0:i.call(o,"pemberly.tracking.time-origin-epoch-time"));this.collector=new jr(r.host.api,new Zr(t,this.config,r.host),this.config,a),this.collector.startObserving(),wt.before("internal:hide",this.beforeHideHandlerBound)}return Se(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){this.collector.recordRenderEnd(e)}},{key:"start",value:function(){var e,t,n,r;this.activeToken&&this.abort(this.activeToken),this.flushEndedSessions(),this.isInitial=void 0===this.isInitial,this.isInitial||this.collector.reset();var i,o=Object.create(null),a="enabled"===(null===(e=(t=this.core.host).__getLixTreatment)||void 0===e?void 0:e.call(t,"pemberly.tracking.time-origin-epoch-time"));return this.activeToken=o,this.liveTokens.add(o),this.stateWM.set(o,{isInitial:this.isInitial,startTime:xr(this.core.host.api.performance,a)}),(this.config["enable-memory-measurement"]||"enabled"===(null===(n=(r=this.core.host).__getLixTreatment)||void 0===n?void 0:n.call(r,"pemberly.tracking.rum-memory-measurement")))&&(null===(i=this.pageMemoryObserver)||void 0===i||i.stopObserving(),this.pageMemoryObserver=new Gr("page-memory",this.core,this.config),this.pageMemoryObserver.startObserving(),void 0===this.appMemoryObserver&&(this.appMemoryObserver=new Gr("application-memory",this.core,this.config),this.appMemoryObserver.startObserving())),o}},{key:"observeWebVitals",value:function(){void 0===this.webVitalsObserver&&(this.webVitalsObserver=new Pi(this.core,this.config),this.webVitalsObserver.startObserving())}},{key:"end",value:function(e){var t,n,r=this,i=arguments.length>1&&void 0!==arguments[1]&&arguments[1],o=arguments.length>2?arguments[2]:void 0;if(e&&this.activeToken&&this.activeToken===e){var a=this.stateWM.get(e),s="enabled"===(null===(t=(n=this.core.host).__getLixTreatment)||void 0===t?void 0:t.call(n,"pemberly.tracking.time-origin-epoch-time")),c=xr(this.core.host.api.performance,s);a.endProps={renderCompleteTime:c,isImpactedByHiddenWindow:i,rumKey:o};var u=this.activeToken;a.fireRumEventTimeout=setTimeout((function(){var e=r.collector.collect({isInitial:a.isInitial});"then"in e?e.then((function(e){r.fireRumEvent(e,u)})):r.fireRumEvent(e,u)}),this.config["beacon-timeout"]),this.activeToken=void 0}else wt.emit("internal:error",{tags:["core-web-tracking:rum:end"],reason:new Error("RUM end: rum token passed is invalid")})}},{key:"destroy",value:function(){var e,t,n;wt.offBefore("internal:hide",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.core.destroy()}},{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){var r=e.collector.collect({isInitial:n.isInitial,immediate:!0});e.fireRumEvent(r,t)}}))}},{key:"fireRumEvent",value:function(e,t){if(this.stateWM.get(t)){var n=this.core.host.api.assign,r=this.stateWM.get(t),i=r.startTime,o=r.endProps;if(o){var a=o.renderCompleteTime,s=o.isImpactedByHiddenWindow,c=o.rumKey,u=this.boomerangStart=e.navigationStart||this.boomerangStart,l=e.navigationStart||i,d=a-l,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:a},e)})),r.fireRumEventTimeout&&clearTimeout(r.fireRumEventTimeout),this.liveTokens.delete(t),this.stateWM.delete(t)}else this.abort(t)}}},{key:"beforeHideHandler",value:function(){this.flushEndedSessions()}}]),e}(),Li="undefined"!=typeof window&&"undefined"!=typeof performance,Di="undefined"!=typeof location&&-1!==location.search.indexOf("_LI_MEASURE_DEBUG");function xi(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const t=K({},e),n=_(window.location.href,"originalReferer")||_(window.location.href,"original_referer");return n&&(t.requestHeader=K(K({},t.requestHeader),{},{referer:n})),Ui(t)}function Ui(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const t=K({},e),n=Ee();return n&&(t.requestHeader=K(K({},t.requestHeader),{},{theme:n.toUpperCase()})),t}function Fi(e){let{browserId:t,memberId:n,isLoggedIn:r=!1}=e;return r?"urn:li:member:".concat(n):"urn:li:guest:".concat(t)}!function(){function e(t,n){Ie(this,e),_e(this,"featureKey",void 0),_e(this,"productName",void 0),_e(this,"endPageInstance",void 0),_e(this,"startPageInstance",void 0),_e(this,"isCanceled",!1),_e(this,"featureIdentifier",void 0),_e(this,"name",void 0),_e(this,"startTime",void 0),_e(this,"duration",void 0),_e(this,"marks",[]),_e(this,"spanStarts",new Map),_e(this,"spans",[]),_e(this,"isSpanContainer",!1),_e(this,"basePageTreeId",void 0),_e(this,"isClosed",!1),this.featureKey=t,this.productName=n;var r=n?"::".concat(n):"";this.featureIdentifier="".concat(t).concat(r),this.name=t}Se(e,[{key:"start",value:function(e){this.startPageInstance=e,Li&&(this.startTime=Ur(),Di&&performance.mark("LI:".concat(this.featureIdentifier,"-start")))}},{key:"mark",value:function(e){Li&&(this.marks.push({name:e,startTime:Ur()}),Di&&(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))))}},{key:"spanStart",value:function(e){Li&&(this.spanStarts.set(e,Ur()),Di&&performance.mark("LI:".concat(this.featureIdentifier,"-span-").concat(e,"-start")))}},{key:"spanEnd",value:function(e,t){if(Li&&this.spanStarts.has(e)){var n=this.spanStarts.get(e);this.spans.push({name:t||e,startTime:n,duration:Ur()-n}),Di&&(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")))}}},{key:"deleteSpan",value:function(e){if(this.isClosed)throw new Error("[rum measurement] spans can only be deleted before the feature performance measurement ends.");for(var t=this.spans.length-1;t>=0;t--)if(this.spans[t].name===e)return void this.spans.splice(t,1)}},{key:"end",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(!this.isClosed){if(this.isSpanContainer=t,this.isClosed=!0,this.isCanceled)throw new Error('[rum measurement] cannot end a canceled measurement "'.concat(this.featureIdentifier,'"'));this.endPageInstance=e,Li&&(this.duration=Ur()-this.startTime,Di&&!this.isSpanContainer&&(performance.mark("LI:".concat(this.featureIdentifier,"-end")),performance.measure("LI:".concat(this.featureIdentifier),"LI:".concat(this.featureIdentifier,"-start"),"LI:".concat(this.featureIdentifier,"-end"))),this.cleanUp())}}},{key:"cancel",value:function(){this.isCanceled||(this.isCanceled=!0)}},{key:"setBasePageTreeId",value:function(e){this.basePageTreeId=e}},{key:"toEventBody",value:function(){if(Li){var e={name:this.featureKey,startTime:this.startTime,duration:this.isSpanContainer?-1:this.duration,basePageTreeId:this.basePageTreeId,startPageInstance:this.startPageInstance||lt("unknown"),marks:this.marks,spans:this.spans};return this.productName&&(e.productName=this.productName),e}}},{key:"check",value:function(){if(Li){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'));if(this.isSpanContainer&&0===this.spans.length)throw new Error("The span container should have at least one span");for(var e=0,t=["startTime","duration","basePageTreeId"];e<t.length;e++){var n=t[e];if(void 0===this[n])throw new Error('[rum measurement] "'.concat(this.featureIdentifier,'" is missing "').concat(n,'"'))}}}},{key:"cleanUp",value:function(){this.spanStarts.clear()}}])}();const Hi={observeComponents:()=>{},unobserveComponents:()=>{},handleDynamicElements:()=>{}};class Bi{constructor(e,t){let{threshold:n=.9,root:r=null,rootMargin:i="0px",componentList:o=[],impressionEventCallback:a=(()=>{}),onImpression:s=(()=>{}),onObservation:c=(()=>{}),onUnobservation:u=(()=>{})}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(!("IntersectionObserver"in window))return Hi;this.root=r,this.threshold=n,this.rootMargin=i,this.trackingInstance=t,this.impressionEventCallback=a,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(o)}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 Ki(e){let{trackingInstance:t,visibleElements:n}=e;const r=n.map((e=>e.getAttribute("data-impression-id"))).filter((e=>e));r.length>0&&function(e,t){const n=function(e){let t=e.querySelector('meta[name="locale"]');return t&&t.content||""}(document),r={};n&&(r.interfaceLocale=n);const i={header:{},requestHeader:r,moduleNames:t};e.fireTrackingEvent("ViewModuleImpressionEvent",i)}(t,r)}function qi(e){e.removeAttribute("data-impression-id")}const ji="timezoneOffset",Vi="screenWidth",zi="screenHeight",Wi="devicePixelRatio",Gi="currentContext",Ji="/transactional-routing/createguestdeferreddeeplink",Qi="csrfToken",Xi=/iPad|iPhone|iPod/;function Yi(){var e;e=navigator.userAgent,Xi.test(e)&&T(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={[ji]:(new Date).getTimezoneOffset(),[Vi]:window.screen.width,[zi]:window.screen.height,[Wi]:window.devicePixelRatio,[Gi]:e};try{navigator.sendBeacon(A(Ji,Qi,O(N("JSESSIONID"))),JSON.stringify(t))}catch(e){}}(e.currentTarget.pathname)))}))}function $i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Zi(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var eo,to,no,ro,io={ADVERTISING:"ADVERTISING",ANALYTICS_AND_RESEARCH:"ANALYTICS_AND_RESEARCH",FUNCTIONAL:"FUNCTIONAL"},oo="GUEST",ao="MEMBER",so=0,co=1,uo=2,lo=(Zi(eo={},oo,"li_gc"),Zi(eo,ao,"li_mc"),eo),ho="liap",fo=function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;for(var o in $i(this,e),t=t||{},this.consentAvailable=!1,this.issuedAt=n,this.userMode=r,this.optedInConsentMap={},io)t[o]=t[o]||so,t[o]!==so&&(this.consentAvailable=!0),this.optedInConsentMap[o]=t[o]===co||t[o]===so&&i===co},po=(to=[io.ADVERTISING,io.ANALYTICS_AND_RESEARCH,io.FUNCTIONAL],no=[so,co,uo,so],ro=new RegExp(["^(\\d+)","(\\d+)","(\\d+)","((?:.|\\s)+)"].join(";")),{parseConsentBody:function(e,t){var n=e.match(ro);if(!n)return{error:"Invalid consent body encoding",consent:new fo};for(var r=parseInt(n[1],10),i={},o=0;o<to.length;o++)i[to[o]]=no[r>>2*o&3];var a=new Date(1e3*parseInt(n[2],10)),s=parseInt(n[3],10),c=so;return s>=0&&s<=3&&(c=no[s]),{error:null,consent:new fo(i,a,t,c)}}}),vo=new RegExp(["^(\\d+)","((?:.|\\s)+)"].join(";")),go=function(e,t){var n=t.match(new RegExp("(?:^|; *)".concat(e,"=([^;]*)")));return n&&n.length>1?n[1]:null},mo=function(e,t){var n=go(lo[e],t);return n?wo(n,e):go(lo[oo],t)||go(lo[ao],t)?yo(uo):yo(co)},yo=function(e){var t={};for(var n in io)t[n]=e;return{error:null,consent:new fo(t,null,null,e)}},bo=function(){var e=document.domain.match(/^(?:|.*\.)([^\.]+\.[^\.]+)$/);return e?e[1]:"linkedin-ei.com"},Eo=function(e){var t=e===ao?"settings/member-cookies":"mypreferences/g/guest-cookies";return"https://www.".concat(bo(),"/").concat(t)};var wo=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(vo)}catch(e){}if(!r)return{error:"Invalid consent encoding",consent:new fo};var i=parseInt(r[1],10),o=r[2];return 1===i?po.parseConsentBody(o,t):{error:"Invalid encoded consent version ".concat(i),consent:new fo}},Co=function(e){var t=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:document.cookie;return e||(e=go(ho,t)?go(lo[ao],t)?ao:oo:go(lo[oo],t)?oo:ao),mo(e,t)}(e),n=t.consent,r=e||n.userMode||oo;return{showBanner:!t.error&&!n.consentAvailable,userMode:r,managePreferenceUrl:Eo(r)}},ko=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 o=new XMLHttpRequest;o.open("POST","https://www.".concat(bo(),"/cookie-consent/")),o.setRequestHeader("Content-Type","application/json"),o.withCredentials=!0,o.onload=function(){200!==o.status?t("Request failed with status ".concat(o.status),null):t(null,o)},o.onerror=function(){t("Request failed with an error",o)};var a={UPDATE_SETTINGS:r,USER_MODE:i,CATEGORIES:{}};for(var s in io){var c=void 0;!0===n[s]?c=co:!1===n[s]&&(c=uo),a.CATEGORIES[s]=c}o.send(JSON.stringify(a))};function Io(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function To(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function So(e,t,n){return t&&To(e.prototype,t),n&&To(e,n),e}function _o(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}}),t&&No(e,t)}function Ao(e){return Ao=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Ao(e)}function No(e,t){return No=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},No(e,t)}function Ro(e,t){return!t||"object"!=typeof t&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function Oo(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Ao(e);if(t){var i=Ao(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return Ro(this,n)}}function Po(e,t,n){return Po="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var r=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=Ao(e)););return e}(e,t);if(r){var i=Object.getOwnPropertyDescriptor(r,t);return i.get?i.get.call(n):i.value}},Po(e,t,n||e)}function Mo(e){var t={header:{},requestHeader:{},alertUrn:e.getAlertId(),actionType:"DISMISS"};e.getTrackingOptions().trackingInstance.fireTrackingEvent("AlertActionEvent",t)}var Lo=100,Do=Object.freeze({TERMS_AND_CONDITIONS:0,COOKIE_POLICY:1,COOKIE_USAGE:2,MAINTENANCE:3,EMAIL_STATUS:4,SUBSCRIPTION:5,IE_DEPRECATION_BANNER:6,UNKNOWN:7,COOKIE_CONSENT:8});Object.freeze({TERMS_AND_CONDITIONS:501,COOKIE_POLICY:500,COOKIE_USAGE:500,MAINTENANCE:Lo,EMAIL_STATUS:300,SUBSCRIPTION:400,IE_DEPRECATION_BANNER:99,UNKNOWN:200});var xo=Object.freeze({alertType:"type",severity:"severity",alertId:"alert-id",actionType:"action-type",actionUrl:"action-url"}),Uo="AlertActionClick";function Fo(e,t){for(var n=e;null!=n;){if(n.classList&&n.classList.contains(t))return!0;n=n.parentNode}return!1}function Ho(e){var t=document.cookie.match("(?:^|;)\\s*".concat(e,"\\s*=\\s*([^;]+)"));return t?t[1]:void 0}function Bo(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"customEvent",t=document.createEvent("Event");return t.initEvent(e,!0,!0),t}var Ko=1,qo=2,jo=0,Vo="artdeco-global-alert__dismiss",zo="artdeco-global-alert-action",Wo="artdeco-global-alert__content";function Go(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,o=t.scrollHeight,a=t.scrollTop;if(o>i){var s=a+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===o&&n.classList.add("".concat(r,"-only-top"))}}}var Jo=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Io(this,e),this._el=t,this._state=jo,this._initialHeight=this._el.offsetHeight,this._alertType=this._el.getAttribute(xo.alertType),this._id=this._el.getAttribute(xo.alertId),this._elDismissBtn=this._el.querySelector(".".concat(Vo)),this._trackingOptions=n,this.init()}return So(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;Fo(n,Vo)?(e.dismissAction(),Mo(e)):Fo(n,zo)&&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===Ko||this._state===qo)}},{key:"visited",value:function(){this._state=Ko,this._makeAlertAccessible(!1)}},{key:"activate",value:function(){var e,t,n=this._trackingOptions,r=n.enableControlInteractionEvents,i=n.controlInteractionEventsPrefix;this._state=qo,t={header:{},requestHeader:{},alertUrn:(e=this).getAlertId()},e.getTrackingOptions().trackingInstance.fireTrackingEvent("AlertImpressionEvent",t),this._makeAlertAccessible(!0),this._el.focus();var o,a,s,c=this._el.querySelector(".".concat(Wo));if(c instanceof Element){var u=(o=Go,a=200,function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=function(){clearTimeout(s),o.apply(void 0,t)};clearTimeout(s),s=setTimeout(r,a)});c.addEventListener("scroll",u)}c.dispatchEvent(Bo("scroll")),r&&this._el.querySelectorAll("button, a").forEach((function(e){var t=e.tagName,n="data-tracking-control-name",r=e.getAttribute(n);if(r)r=r.replace("urn:li:control:",""),e.setAttribute(n,r),e.setAttribute("data-control-name",r);else{var o="a"===t.toLowerCase()?"alert-link-cta":"alert-dismiss-btn-cta";e.setAttribute(n,"".concat(i,"-").concat(o))}}))}},{key:"dismissAction",value:function(){}},{key:"handleAlertAction",value:function(e){var t=e.target,n=t.getAttribute(xo.actionType),r=t.getAttribute(xo.actionUrl);r=r&&F(r);var i=Bo(Uo);switch(n){case"LINK":r?window.location.assign(r):t.dispatchEvent(i);break;case"ACCEPT":r&&function(e){if(e){var t=document&&document.cookie.match(/(?:^|; *)JSESSIONID=([^;]*)(?:;|$)/),n=t?t[1]:null;if(n){var r=new XMLHttpRequest;r.open("POST",e),r.setRequestHeader("Content-Type","application/json"),r.setRequestHeader("Csrf-Token",n),r.withCredentials=!0,r.onload=function(){},r.send(JSON.stringify({action:"ACCEPT"}))}}}(r),t.dispatchEvent(i);break;case"DENY":this.dismissAction(),Mo(this),t.dispatchEvent(i)}}}]),e}();function Qo(){try{var e=Co();return e.isActive=!(!Ho("li_gc")&&!Ho("li_mc")),e}catch(e){return console.error("invalid domain",document.domain),{}}}function Xo(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t={},n=io;return Object.keys(n).forEach((function(n){t[n]=e})),{optedInConsentMap:t}}var Yo=function(e){_o(n,e);var t=Oo(n);function n(){return Io(this,n),t.apply(this,arguments)}return So(n,[{key:"init",value:function(){Po(Ao(n.prototype),"init",this).call(this),Qo().showBanner||this.visited()}},{key:"handleAlertAction",value:function(e){var t=e.target,n=t.getAttribute(xo.actionType),r=Qo().managePreferenceUrl,i=t.getAttribute(xo.actionUrl);i=i&&F(i)||r;var o=Bo(Uo);switch(n){case"LINK":i?ko(Xo(),(function(){window.location.assign(i)})):t.dispatchEvent(o);break;case"ACCEPT":ko(Xo(!0),(function(){})),t.dispatchEvent(o);break;case"DENY":ko(Xo(),(function(){})),Mo(this),t.dispatchEvent(o)}}}]),n}(Jo),$o="li_alerts";function Zo(){var e=function(e){var t=document.cookie.match("(?:^|;)\\s*".concat(e,"\\s*=\\s*([^;]+)"));return t?t[1]:void 0}($o),t=e&&atob(e),n={};try{n=JSON.parse(t)}catch(e){}return n}function ea(){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($o,"=").concat(t,";expires=").concat(n.toUTCString(),";path=/;secure;samesite=none")}function ta(e){if(!e)return 0;var t=e.toLowerCase(),n=Zo(),r=n&&n[t]||0;return r=parseInt(r,10)}function na(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;if(e&&t){var n=e.toLowerCase(),r=Math.min(ta(n)+t,3),i=Zo();i[n]=r,ea(i)}}var ra="LIcookiePolicyDisplays";function ia(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;try{window.localStorage.setItem(ra,e)}catch(e){}}var oa=function(e){_o(n,e);var t=Oo(n);function n(){return Io(this,n),t.apply(this,arguments)}return So(n,[{key:"init",value:function(){var e=Qo();Po(Ao(n.prototype),"init",this).call(this),function(e){var t=NaN;try{t=parseInt(window.localStorage.getItem(ra),10)}catch(e){}!isNaN(t)&&t>=0&&na(e,t)}(this._alertType),(e.isActive||ta(this._alertType)>=3)&&Po(Ao(n.prototype),"visited",this).call(this)}},{key:"activate",value:function(){Po(Ao(n.prototype),"activate",this).call(this),ia(ta(this._alertType)+1),na(this._alertType,1)}},{key:"dismissAction",value:function(){Po(Ao(n.prototype),"dismissAction",this).call(this),ia(3),na(this._alertType,3-ta(this._alertType))}}]),n}(Jo);var aa=function(){function e(t){Io(this,e),this._trackingOptions=t}return So(e,[{key:"getAlertInstance",value:function(e){switch(function(e){return Do[e.getAttribute(xo.alertType)]}(e)){case Do.COOKIE_USAGE:return new oa(e,this._trackingOptions);case Do.COOKIE_CONSENT:return new Yo(e,this._trackingOptions);default:return new Jo(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;n<this.length;n++)e.call(t,this[n],n,this)}),Element.prototype.matches||(Element.prototype.matches=Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector),Element.prototype.closest||(Element.prototype.closest=function(e){var t=this;do{if(t.matches(e))return t;t=t.parentElement||t.parentNode}while(null!==t&&1===t.nodeType);return null});var sa="artdeco-global-alert-container",ca="global-alert-offset",ua="artdeco-global-alert",la="artdeco-global-alert__dismiss",da="artdeco-global-alert-action",ha="artdeco-global-alerts-cls-offset",fa="transition-in",pa="transition-out",va=function(){function e(t){var n=t.trackingInstance,r=t.enableControlInteractionEvents,i=void 0!==r&&r,o=t.controlInteractionEventsPrefix,a=void 0===o?"global-alerts":o;if(Io(this,e),!n)throw new Error("Missing config - trackingInstance");if(this._el=document&&document.querySelector("#".concat(sa)),this._clsOffsetEl=document&&document.querySelector("#".concat(ha)),this._isSSR=!!this._clsOffsetEl,this._clsOffsetEl&&this._clsOffsetEl instanceof Element){var s=this._clsOffsetEl.offsetHeight;this._clsOffsetEl.style.setProperty("height",s),this._el.innerHTML=this._clsOffsetEl.innerHTML,this._clsOffsetEl.innerHTML=""}if(this._elOffsetList=document.querySelectorAll(".".concat(ca)),this._elAlertList=this._el&&this._el.querySelectorAll(".".concat(ua)),this._alertInstance=[],this._currentActiveAlert=void 0,this._alertFactoryInstance=new aa({trackingInstance:n,enableControlInteractionEvents:i,controlInteractionEventsPrefix:a}),this._initalBodyOffset=parseInt(document.body.style.getPropertyValue("padding-top"),10)||0,!this._el&&!this._elAlertList.length)return!1;this.init()}return So(e,[{key:"init",value:function(){var e=this;ea(Zo()),this._elAlertList.forEach((function(t){e._alertInstance.push(e._alertFactoryInstance.getAlertInstance(t))})),this._el.classList.add(fa),document.body.classList.add(fa),this._el.addEventListener("click",(function(t){var n=t.target;Fo(n,la)&&(e.dismissAlert(n),e.activateNextAlert())})),this._el.addEventListener(Uo,(function(t){var n=t.target;Fo(n,da)&&(e.dismissAlert(n),e.activateNextAlert())})),this.activateNextAlert()}},{key:"activateNextAlert",value:function(){var e;this._alertInstance.some((function(t){return!!t.isInactive()&&(e=t,!0)})),this._currentActiveAlert&&this._currentActiveAlert.visited(),e&&e.activate(),this._currentActiveAlert=e,this._currentActiveAlert?this.updateBodyOffset():this.destroy()}},{key:"updateBodyOffset",value:function(){var e=this._currentActiveAlert.getInitialHeight();this._isSSR?this._clsOffsetEl.style.setProperty("height","".concat(e+this._initalBodyOffset,"px")):document.body.style.setProperty("padding-top","".concat(e+this._initalBodyOffset,"px")),this._elOffsetList.forEach((function(t){t.style.setProperty("top","".concat(e,"px"))})),this._el.style.setProperty("height","".concat(e,"px")),this._currentActiveAlert.setHeight("".concat(e,"px"))}},{key:"dismissAlert",value:function(e){var t=e.closest(".".concat(ua));t.classList.add(pa),t.style.setProperty("height","0px")}},{key:"destroy",value:function(){var e=this._el;this._el.classList.add(pa),document.body.classList.add(pa),this._isSSR?this._clsOffsetEl.remove():document.body.style.setProperty("padding-top","".concat(this._initalBodyOffset,"px")),this._elOffsetList.forEach((function(e){e.style.setProperty("top","0px")})),this._el.style.setProperty("height","0px"),this._alertInstance=[],this._el=void 0,setTimeout((function(){e.remove(),document.body.classList.remove(fa),document.body.classList.remove(pa)}),500)}}]),e}();class ga{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;if(!e||"[object Function]"!=={}.toString.call(e))throw new Error("Please provide a valid tracking call back function");this.memberId=t,this.trackingCallback=e}getInstalledApps(){let e=arguments.length>0&&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:e.id.toUpperCase().replace(/\./g,"_"),appVersion:e.version,platform:e.platform}))),r={header:{memberId:this.memberId},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("([\\?&])".concat(n?t:encodeURIComponent(t),"=([^&#]*)")).exec(e);return r&&(n?r[2]:decodeURIComponent(r[2]))}}class ma{constructor(e){if(!e)throw new Error("JetCore missing required only parameter (`trackingCore`)");this.cwtJetCoreInstance=new hr(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={message:n.reason};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 ya="data-tracking-control-name";class ba{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=k(t,"[".concat(ya,"]"));if(null===n)return;const r=n.getAttribute(ya);n.hasAttribute("data-tracking-client-ingraph")&&this._fireClientIngraphMetric(r)}_fireClientIngraphMetric(e){this.ingraphs.fireCounterIngraphMetric({metricsType:"controlInteractionEvent-".concat(e),sendBeacon:!0})}}const Ea="li_trk_navigation",wa="undefined";function Ca(){if(typeof window!==wa&&typeof window.sessionStorage!==wa)try{return JSON.parse(window.sessionStorage.getItem(Ea))}catch(e){}}function ka(e){if(typeof window!==wa&&typeof window.sessionStorage!==wa)try{window.sessionStorage.setItem(Ea,JSON.stringify(e))}catch(e){}}const Ia="ExternalNavigationEvent",Ta="ControlInteractionEvent",Sa="PageVisibilityChangeEvent",_a="PageViewHeartbeatEvent",Aa="LinksterImpressionEvent",Na={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 Ra(e){return(t=e)?t.split(":").pop():null;var t}function Oa(e,t){return e&&t?"urn:li:control:".concat(t,"-").concat(e):null}class Pa{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=Ca();if(!r)return null;for(let i=0;i<r.length;i++){const o=r[i].href;if(o===e||o===t||o===n){const e=r.splice(i,1)[0];return ka(r),e}}return null}();if(t){const n=Ra(t.prevInstance.pageUrn);e.lipi="".concat(t.prevInstance.pageUrn,";").concat(t.prevInstance.trackingId),e.licu=Oa(t.controlName,n)}if(this.window){const t=_(this.window.location.href,"trk",!1);t&&(e.trk=t)}return e}navigate(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"full",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];const r=function(e){let t=e.querySelector('meta[name="linkedin:pageTag"]');return t&&t.content||""}(this.document),i={pageType:t,trackingInfo:{clientTimestamp:Date.now(),pageTag:r}};n&&(i.trackingInfo.liSugr=(this.document,N("li_sugr")));const o=this._trackingCore.navMetaFromSeed(e,or(this.getAppSeedQps()));return this._trackingCore.setCurrentContext(o.to),this.fireNavEvents(o,i)}fireNavEvents(e,t){const n=this._trackingCore.generateNavigationEvent(e),{to:r,from:i,navEventId:o}=e,a=this._trackingCore.generateEnvelope(o,n);a.meta.requestHeader.pageKey=r.pageKey;const s=i&&i.applicationInstance;return s&&(a.meta.header.clientApplicationInstance=s),this._trackingCore.host.api.Promise.all([this.firePVE(r.pageKey,t),this._trackingCore.fireEnvelope(a)])}firePVE(e,t,n){return this._trackingCore.firePVE(e,t,n)}_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=k(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=k(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=R(this.document);void 0!==e&&this.firePageVisibilityChangeEvent(e)}saveStateForPageDeparture(e){if(!e)return;!function(e){let t=Ca()||[];t.push(e),ka(t)}({controlName:e.controlName,href:e.href,prevInstance:this._trackingCore.getCurrentContext().pageInstance})}firePageVisibilityChangeEvent(e){this._trackingCore.fireEvent(Sa,{isVisible:!e})}fireControlInteractionEvent(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Na.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=Ra(this._trackingCore.getCurrentContext().pageInstance.pageUrn),i=n.uiControlPageKey||r;this._trackingCore.fireEvent(Ta,{controlUrn:Oa(e,i),interactionType:Na[t]},n)}fireExternalNavigationEvent(e){const t=Ra(this._trackingCore.getCurrentContext().pageInstance.pageUrn);this._trackingCore.fireEvent(Ia,{triggerControlUrn:Oa(e,t)},{},!0)}fireLinksterImpressionEvent(e,t,n){this._trackingCore.fireEvent(Aa,{moduleName:e,sourceEntity:t,destinationEntities:n})}convertUuidTrackingIdToBase64(e){try{const t=ut(e),n=String.fromCharCode.apply(null,t);return btoa(n)}catch(t){return e}}}const Ma=2e3;function La(e){const t=R(e);return void 0!==t&&!t}class Da{constructor(e){let{globalDocument:t=document,globalWindow:n=window,heartbeatDuration:r=Ma}=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",(()=>{La(this.document)&&this._firePageViewHeartbeatEvent()}),!0),La(this.document)&&this._startPageViewHeartbeatInterval()}_startPageViewHeartbeatInterval(){this._pageViewHeartbeatStartTime=Date.now(),this._pageViewHeartbeat=this.window.setInterval(this._firePageViewHeartbeatEvent,this.heartbeatDuration)}_documentVisibilityChangeHeartbeatHandler(){const e=R(this.document);void 0!==e&&(e?(this._firePageViewHeartbeatEvent(),clearInterval(this._pageViewHeartbeat)):this._startPageViewHeartbeatInterval())}_firePageViewHeartbeatEvent(){const e=Date.now();this.tracking.fireTrackingEvent(_a,{header:{},requestHeader:{},startTime:this._pageViewHeartbeatStartTime},{header:{time:e}}),this._pageViewHeartbeatStartTime=e}}var xa="aria-[a-z0-9_\\-]+|class|data-[a-z0-9_\\-]+|dir|id|role|tabindex",Ua=function(){if("undefined"==typeof document)return!0;return"textContent"in document.createElement("div")}()?"textContent":"innerText",Fa=["b","del","em","i","s","strong","sub","sup"],Ha=Fa.concat(["a","abbr","address","area","article","aside","audio","bdi","bdo","big","blockquote","br","button","center","cite","code","datalist","dd","details","dfn","div","dl","dt","fieldset","figcaption","figure","font","footer","h1","h2","h3","h4","h5","h6","header","hgroup","hr","img","ins","kbd","label","legend","li","map","mark","marquee","nav","nobr","ol","p","pre","q","rp","rt","ruby","samp","section","small","source","span","strike","table","tbody","td","tfoot","th","thead","time","tr","u","ul","var","video","wbr"]),Ba=[xa,"alt|checked|selected|colgroup|cols|colspan|disabled|height|hidden|maxlength|method|multiple|name|placeholder|readonly|rel|required|rows|rowspan|spellcheck|target|title|width","border|caption|color|controls|coords|hreflang|label|lang|loop|marginheight|marginwidth|preload|reversed|type|usemap|clear|headers|ismap|start|datetime|accept|max|min|size|step|style|cellspacing|cellpadding"].join("|");function Ka(){}var qa,ja,Va=(ja=/[&<>"'\u0000\\=]/g,qa={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","\0":"�","\\":"&#92;","=":"&#61;"},function(e){return null==e?null:e.toString().replace(ja,(function(e){return qa[e]}))}),za=function(){var e,t,n=/&(?:([a-z0-9]+)|#x([\da-f]{1,6})|#(\d{1,8}));/gi;if("undefined"==typeof document)return function(){throw new Error("document is undefined (i.e. you are probably in Node.js)")};e=document.createElement("div");var r={nbsp:" ",lt:"<",gt:">",amp:"&",quot:'"'};return t="function"==typeof String.fromCodePoint?function(e){return String.fromCodePoint(e)}:function(e){return e<=65535?String.fromCharCode(e):"�"},function(i){return null==i?null:(i+"").replace(n,(function(n,i,o,a){return i?(s=i,r.hasOwnProperty(s)?r[s]:(e.innerHTML="&"+s+";",c=e[Ua],r[s]=c,c)):o||a?t(parseInt(o||a,o?16:10)||65533):"�";var s,c}))}}();var Wa=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)};function Ga(e){return/[<&]/.test(e)}var Ja,Qa=Array.prototype.forEach?function(e,t){Array.prototype.forEach.call(e,t)}:function(e,t){for(var n=0,r=e.length;n<r;n++)t(e[n],n)},Xa="[ \t\r\n]*";function Ya(e){e=Wa(e)?e:[e];var t,n,r,i=0,o="<(?!/?";return o+="(?:",Qa(e,(function(e,a){t=e.tags||Ha,n=e.attrs||Ba,r=e.checkUrlAttrs||!1,0!==a&&(o+="|"),o+="(?:"+t.join("|")+")",o+="(?:",o+=Xa,o+="|[ \t\r\n]+",o+="(?:(?:",o+="(?:"+n+")(?:=([\"'])[^'\"<>]*\\"+ ++i+")?",r&&(o+="|(?:href|src)=([\"'])(?:(?:https?|ftp|mailto|invalid)(?::|&#(?:58|x3a);)|(?:data:image/(?:gif|jpg|jpeg|png);base64,)|[/.#?]|&#(?:35|4[67]|63|x(?:2[3ef]|3f));)[^'\"<>]*\\"+ ++i),o+=")[ \t\r\n]*)+",o+=")"})),o+=")",o+="/?>)",new RegExp(o,"i")}function $a(e){return Ya({tags:e=e||Ha,checkUrlAttrs:!0})}function Za(e,t){var n=(t=t||{}).allowTags,r=!1!==t.hasCustomElementMarkup;return n?!$a(n).test(e):r?!Za.R_UNSAFE_CUSTOM_ELEMENT.test(e):!Za.R_UNSAFE_HTML.test(e)}function es(e){return e.replace(/<[^>]*>|[<>'"&\\]/g,"")}function ts(e,t,n){if(null==e)return null;e=e.toString();var r=t?function(e,t){var n={};return e.replace(/\{([^}]+)\}/g,(function(e,r){var i,o=e;if(n.hasOwnProperty(r))return n[r];if(t.hasOwnProperty(r)){if(!((i="string"==typeof(o=t[r]))||o instanceof Ka||"number"==typeof o))throw new Error("Only strings, numbers, and jSecure types are allowed as placeholder replacements.");o=i?Va(o):o.toString()}return n[r]=o,o}))}(e,t):e,i=e;return Ga(r)&&!Za(r,n)&&(r=es(r),P("Content contains non-whitelisted tags or attributes:\nContent: "+i,"error")),r}function ns(e,t){for(var n=+t.length,r=0,i=e.length;r<n;r++)e[i++]=t[r];return e.length=i,e}Za.R_UNSAFE_HTML=$a(),Za.R_UNSAFE_CUSTOM_ELEMENT=Ya([{tags:Ha,checkUrlAttrs:!0},{tags:[(Ja={tag:"li-icon",attrs:"active|a11y-text|animate|color|size|type"}).tag],attrs:[xa,Ja.attrs].join("|"),checkUrlAttrs:!1}]);var rs={option:[1,'<select multiple="multiple">',"</select>"],thead:[1,"<table>","</table>"],col:[2,"<table><colgroup>","</colgroup></table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:[0,"",""]};rs.optgroup=rs.option,rs.tbody=rs.tfoot=rs.colgroup=rs.caption=rs.thead,rs.th=rs.td;var is=/<([\w:]+)/;function os(e,t){var n,r,i,o,a,s,c,u=t.createDocumentFragment(),l=[];for(a=0,c=e.length;a<c;a++)if((o=e[a])||0===o)if("string"==typeof o){for(i=i||u.appendChild(t.createElement("div")),n=(is.exec(o)||["",""])[1].toLowerCase(),cs(i,(r=rs[n]||rs._default)[1]+o+r[2]),s=r[0];s--;)i.lastChild&&i.lastChild.nodeType===Node.ELEMENT_NODE&&(i=i.lastChild);ns(l,i.childNodes),(i=u.firstChild).textContent=""}else ns(l,o.nodeType?[o]:o);for(u.textContent="",o=l[a=0];o;)u.appendChild(o),o=l[++a];return u}var as=ts,ss=ts;function cs(e,t,n){var r=ts(t,n);return Ga(r)?e.innerHTML=r:e[Ua]=r,r}function us(e,t){if(!(this instanceof us))return new us(e,t);(t=t||{}).allowTags=t.allowTags?t.allowTags.reduce((function(e,t){return e.concat(t)}),[]):null,this._string=e,this._options=t}us.prototype=function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);return e}(new Ka,{toString:function(){var e=this._string,t=this._stringVal,n=e;return void 0!==t?t:(Za(e,this._options)||(n=e,e=es(e),P("UnsafeString contains non-whitelisted tags or attributes.\nString: "+n,"error")),this._stringVal=e,e)}});var ls={ALLOWED_TAGS:Ha,FORMATTING_TAGS:Fa,htmlEncode:Va,htmlUnencode:za,log:P,mk:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];let i,o="",a=n.length;return e&&e.forEach((function(e,t){o+=e,t<a&&(i=n[t],o+=i instanceof us?i:Va(i))})),ss(o)},parseHTML:function(e,t){var n;if(t=t||document.implementation&&document.implementation.createHTMLDocument?document.implementation.createHTMLDocument(""):document,"string"==typeof e)n=os([e],t);else{if(!Wa(e))return e;n=os(e,t)}return ns([],n.childNodes)},parseSelector:function(e){return"string"==typeof e&&/^(?:\s*(<[\w\W]+>)[^>]*)$/.test(e)?[]:e},processTemplate:as,reEncode:function(e){return Va(za(e))},_redirector:H,redirect:function(e){const t=F(e);t===e&&H.redirect(t)},sanitizeHTML:ss,sanitizeUrl:F,setElementContent:cs,text:function(e){return P("jSecure.text() is deprecated. Please use jSecure.htmlEncode().","warn"),Va(e)},unsafe:function(e){return e},UnsafeString:us};let ds;function hs(){var e;(e="feed-sort")&&(document.cookie="".concat(e,"=; expires=Thu, 01-Jan-1970 00:00:01 GMT; path=/;"))}function fs(e){BroadcastChannel&&(ds=new BroadcastChannel("LI_LOGOUT"),window.BROADCAST_CHANNEL=ds,ds.addEventListener("message",(t=>{t&&"LOGOUT"===t.data.message&&(hs(),function(e){const t=A(e,"csrfToken",O(N("JSESSIONID")));window.tracking.then((e=>{null==e||e.flushAndClearPersistedEventsOnLogout(),ls.redirect(t)}))}(e))})))}class ps{constructor(e){this.el=e,this.init()}init(){const e=document.head.querySelector("title"),t=document.head.querySelector('meta[name="description"]'),n=document.body.querySelector("span[data-chameleon-id]");if(n){const r=n.getAttributeNames();r.push(">"),e&&(this.el.querySelector(".meta-title-chameleon-display").innerHTML="Title: ".concat(this.encodeChameleonAttributes(e.textContent,r))),t&&(this.el.querySelector(".meta-description-chameleon-display").innerHTML="Description: ".concat(this.encodeChameleonAttributes(t.content,r)))}}encodeChameleonAttributes(e,t){for(var n=0;n<t.length-1;n++){const r=new RegExp("(?<=".concat(t[n],'=").*(?="\\n\\s+').concat(t[n+1],")")),i=e.match(r)?e.match(r)[0]:null;i&&(e=e.replace(i,ls.htmlEncode(i)))}return e}}const vs={endpoint:"/li/tscp/sct",retryConfig:{}},gs=document.getElementById("config");let ms,ys,bs,Es,ws,Cs,ks,Is,Ts,Ss,_s,As,Ns,Rs,Os,Ps;function Ms(e,t){window[e]&&window[e].resolve?window[e].resolve(t):window[e]=Promise.resolve(t)}gs&&gs.dataset&&(ms=gs.dataset.appId||"seo",ys=gs.dataset.appVersion||"0.0.0",Es=gs.dataset.browserId,bs=gs.dataset.callTreeId||null,Ts=void 0!==gs.dataset.enablePageViewHeartbeatTracking,ws=gs.dataset.trackingPageType||void 0,Cs="string"==typeof gs.dataset.jetTags&&gs.dataset.jetTags.split(",")||[],ks=gs.dataset.multiproductName||"undefined-frontend-mpName",Is=gs.dataset.serviceName||"undefined-frontend-serviceName",Ss=gs.dataset.pageInstance||void 0,_s=gs.dataset.memberId,Ps=void 0!==gs.dataset.isLoggedIn,As=gs.dataset.logoutUrl,Ns=void 0!==gs.dataset.isTrackingRetryEnabled,Rs=void 0!==gs.dataset.disableElementInViewportConditionForLazyload,Os=void 0!==gs.dataset.isLiSugrTrackingEnabled);const Ls={};Rs&&(Ls.disableElementInViewportCondition=Rs),Ms("lazyloader",function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return ee=ee||new Z(e),ee}(Ls)),I((()=>{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?"".concat(n.content).concat(i||t.skipSuffix?"":"_jsbeacon"):""}(document),t=document.querySelector('meta[name="locale"]').content;let n;if(Ss&&Ss.split(";").length>=2)n=Uint8Array.from(window.atob(Ss.split(";")[1]),(e=>e.charCodeAt(0))),n=Array.from(n);else{n=[];for(let e=0;e<16;e++){let t=Is.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:o=null,endpoint:a="li/track",maxSize:s=10,debounceTime:c=50,disableCompression:u=!1,customDelegate:l={},retryConfig:d=null,isLoggedIn:h=!1,customTransporterHosts:f}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const p={appId:e,appVersion:t,locale:n,multiproduct:r,service:i,endpoint:a,disableCompression:u,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}};o&&(p.treeID=o);const v=new nr(p);return new sr(v,K({customTransporterHosts:f,preTransporter:e=>K(K({},e),{},{meta:xi(e.meta)}),shouldAnonymizeMemberId:()=>!!d&&!h},l))}({appId:ms,appVersion:ys,locale:t,multiproduct:ks,service:Is,callTreeId:bs,retryConfig:Ns?{}:null,endpoint:"/li/track",isLoggedIn:Ps,disableCompression:!1,customTransporterHosts:{sponsoredTransporter:vs}});r.fireTrackingEvent=r.fireEvent,r.generateTrackingId=ct,r.generateBase64UUID=st;const i={applicationUrn:"urn:li:application:(".concat(ks,",").concat(Is,")"),version:ys,trackingId:n};r.updateAppState({applicationViewerUrn:Fi({browserId:Es,isLoggedIn:Ps,memberId:_s}),clientApplicationInstance:i});const o=new Pa(r);r.fireControlInteractionEvent=o.fireControlInteractionEvent.bind(o),r.fireLinksterImpressionEvent=o.fireLinksterImpressionEvent.bind(o),r.convertUuidTrackingIdToBase64=o.convertUuidTrackingIdToBase64.bind(o),Ns&&r.checkAndEnablePersistentRetry(),o.navigate(e,ws,Os);const a=new Bi(window.IntersectionObserver,r,{componentList:[...document.querySelectorAll("[data-impression-id]")],onImpression:Ki,onUnobservation:qi});Ts&&new Da(r),Ms("tracking",r),Ms("impressionTracking",a),Ms("pemTracking",new C("Default - PEM Tracking Instance",((t,n,i)=>{r.fireEvent(t,n,{context:{pageKey:e,pageInstance:i}})})));const s=new Mi({"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 ma(r).bind(Cs,bs);const c=document.querySelector('meta[name="clientSideIngraphs"]');if(c){const{gaugeMetricEndpoint:t,counterMetricEndpoint:n}=c.dataset,i=r.getCurrentContext().pageInstance,o=new me({counterMetricEndpoint:n,gaugeMetricEndpoint:t,pageKey:e,pageInstanceHeader:i});new ba({ingraphs:o}),Ms("ingraphTracking",o),o.firePageLoadTimeMetric(),o.fireSeoPageViewMetric(),o.attachWebVitalsMetrics()}if(Yi(),document.querySelector(".global-alert-banner")){new va({enableControlInteractionEvents:!0,trackingInstance:r})}if(!!document.head.querySelector('link[rel="manifest"]')){Ms("appDetection",new ga(((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",F(n)),t.setAttribute("data-test-id","msafdf"),t.onload=()=>{window.mouselog.init()},e.appendChild(t)}}(),Ps&&As&&fs(As);const u=document.querySelector(".meta-tags-for-chameleon-display");u&&new ps(u)}))}();
