/*! For license information please see learning.js.LICENSE.txt */
(()=>{"use strict";var e={};function t(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 n(e){"complete"===document.readyState?e():window.addEventListener("load",()=>{setTimeout(e)})}e.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}();class i{constructor(){this._unloadCallbacks=[],this._initEventListener()}_initEventListener(){window.addEventListener("beforeunload",e=>{for(let t=0;t<this._unloadCallbacks.length;t++){if(!1===this._unloadCallbacks[t].call(null,e))break}})}addUnloadCallback(e){e instanceof Function&&this._unloadCallbacks.push(e)}}const r=function(){let e;return{getInstance:function(){return e||(e=new i),e}}}();class o{constructor(){this._pagehideCallbacks=[],this._initEventListener()}_initEventListener(){window.addEventListener("pagehide",e=>{for(let t=0;t<this._pagehideCallbacks.length;t++)this._pagehideCallbacks[t].call(null,e)})}addPagehideCallback(e){e instanceof Function&&this._pagehideCallbacks.push(e)}}const s=function(){let e;return{getInstance:function(){return e||(e=new o),e}}}();function a(e){return null==e||"object"!=typeof e?[]:Array.prototype.slice.call(e)}function c(e){const t=e.getBoundingClientRect(),n=window.innerHeight||document.documentElement.clientHeight,i=window.innerWidth||document.documentElement.clientWidth,r=t.top<=n&&t.top+t.height>=0,o=t.left<=i&&t.left+t.width>=0;return r&&o}function l(){let{scrollTop:e=scrollY,clientHeight:t=window.innerHeight,scrollHeight:n=document.body.scrollHeight}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=arguments.length>2?arguments[2]:void 0;return r?e<=t*i:e>=n-(t+t*i)}function u(e,t,n){const i=new RegExp("([\\?&])".concat(n?t:encodeURIComponent(t),"=([^&#]*)")).exec(e);return i&&(n?i[2]:decodeURIComponent(i[2]))}function d(e,t){return h(e,"trk",t)}function h(e,t,n,i){if(!e||!t)throw new Error("Required param of addQueryParam missing: url = ".concat(e,",  key = ").concat(t));t=encodeURIComponent(t),n=encodeURIComponent(n);const r=u(e,t,!0);if(r)return i?e.replace(r,n):e;{const i=e.indexOf("?");let[r,o]=e.split("#"),s="&";return i<0?s="?":i===e.length-1&&(s=""),o&&(o="#".concat(o)),"".concat(r).concat(s).concat(t,"=").concat(n).concat(o||"")}}function p(e,t,n){var i=this;if("function"!=typeof e)throw new TypeError("Expected a function.");let r;return function(){for(var o=arguments.length,s=new Array(o),a=0;a<o;a++)s[a]=arguments[a];const c=()=>{r=null,n||e.apply(i,s)},l=n&&!r;clearTimeout(r),r=setTimeout(c,t),l&&e.apply(i,s)}}function f(e){const t=document.cookie.match(new RegExp("(^| )"+e+"=([^;]+)"));return t&&t[2]}function m(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const i=document.createEvent("CustomEvent");i.initCustomEvent(t,!0,!0,n),e.dispatchEvent(i)}function v(){let e,t;const n=new Promise((n,i)=>{e=n,t=i});return n.resolve=e,n.reject=t,n}function g(e){return void 0!==e.msHidden?e.msHidden:void 0!==e.hidden?e.hidden:void 0}function y(e){return"string"!=typeof e?null:e.split("?")[0]}var b=Object.freeze({__proto__:null,closest:t,onload:n,UnloadHandler:r,PagehideHandler:s,makeArray:a,outerWidth:function(e){let t=e.offsetWidth,n=getComputedStyle(e);return t+=(parseInt(n.marginLeft,10)||0)+(parseInt(n.marginRight,10)||0),t},elementInViewport:c,hasElementScrolledToThreshold:l,getQueryParam:u,addTrackingCode:d,addQueryParam:h,debounce:p,getCookie:f,dispatchCustomEvent:m,getDeferredPromise:v,isDocumentHidden:g,stripQueryParams:y,getUrlWithQueryParamObject:function(e,t){if(!e||!t)return e;let n=e;for(const e of Object.keys(t))n=h(n,e,t[e],!0);return n},getQueryParameters:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:window.location.href;const t={};if(e){const n=e.split("?")[1],i=n&&n.split("&");i&&i.forEach(e=>{const n=e.split("=");t[n[0]]=decodeURIComponent(n[1])})}return t}});function E(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n=e.querySelector('meta[name="pageKey"]'),i=e.getElementById("config"),r=i&&"true"===i.dataset.disableJsbeaconPagekeySuffix;return n&&n.content?"".concat(n.content).concat(r||t.skipSuffix?"":"_jsbeacon"):""}function _(e){let t=e.querySelector('meta[name="linkedin:pageTag"]');return t&&t.content||""}function w(e){let t=e.querySelector('meta[name="locale"]');return t&&t.content||""}function T(e){let t=e.domain;return t?t.split(".").slice(-2).join("."):""}function S(e){return e&&'"'===e.charAt(0)&&'"'===e.charAt(e.length-1)?e.slice(1,-1):e}const k={ARROW_DOWN:"ArrowDown",ARROW_LEFT:"ArrowLeft",ARROW_RIGHT:"ArrowRight",ARROW_UP:"ArrowUp",ESCAPE:"Escape",ENTER:"Enter",SPACEBAR:" ",TAB:"Tab"},I={Down:k.ARROW_DOWN,Right:k.ARROW_RIGHT,Left:k.ARROW_LEFT,Up:k.ARROW_UP,Esc:k.ESCAPE,Spacebar:k.SPACEBAR,Tab:k.TAB};function C(e){return I[e]||e}class A{constructor(e,t,n){let{mainButton:i,closeButton:r}=n,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};if(!e)throw Error("An element must be provided to Collapsible");if(!t)throw Error("An expandable element must be provided to Collapsible");if(!i)throw Error("A main button element must be provided to Collapsible");this.el=e,this.expandableEl=t,this._isList=["UL","OL","DL"].includes(this.expandableEl.tagName);const{isOpen:s=!1}=o;this.isOpen=s,this.mainButton=i,this.closeButton=r,this.buttons=[i],this._isList&&this.el.addEventListener("keyup",e=>this._onKeyUp(e)),this.expandableEl.addEventListener("keydown",e=>this._onKeyDown(e)),this.mainButton.addEventListener("click",e=>this.closeButton?this._open(e):this._toggle(e)),this.mainButton.addEventListener("keydown",e=>this._onButtonKeyDown(e)),this.closeButton&&(this.closeButton.addEventListener("click",()=>this.close()),this.closeButton.addEventListener("keydown",e=>this._onButtonKeyDown(e)),this.buttons.push(this.closeButton))}get isList(){return this._isList}_toggle(e){this.isOpen?this.close():this._open(e)}_onButtonKeyDown(e){switch(C(e.key)){case k.ENTER:case k.SPACEBAR:e.preventDefault(),this.isOpen?this.close():this._open(e);break;case k.ARROW_UP:this.isOpen||this._open(e);break;case k.ARROW_DOWN:this.isOpen&&this.close()}}_onKeyUp(e){C(e.key)===k.SPACEBAR&&e.preventDefault()}_onKeyDown(e){const n=C(e.key);if(n===k.ESCAPE&&this.isOpen)this.close();else if(this._isList){let i;switch(n){case k.SPACEBAR:m(e.target,"click");break;case k.ARROW_LEFT:case k.ARROW_UP:i=t(e.target,"li");let n=i.previousElementSibling;n&&m(n,"focusEl");break;case k.ARROW_RIGHT:case k.ARROW_DOWN:i=t(e.target,"li");let r=i.nextElementSibling;r&&m(r,"focusEl")}}}_open(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!this.isOpen){const{key:t}=e;this.isOpen=!0,this.buttons.forEach(e=>e.setAttribute("aria-expanded",this.isOpen)),m(this.el,"open",{key:t})}}close(){let{shouldReturnFocusToTrigger:e=!0}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.isOpen&&(this.isOpen=!1,this.buttons.forEach(e=>e.setAttribute("aria-expanded",this.isOpen)),m(this.el,"close"),e&&this.mainButton.focus())}}let O,R;const L=['a[href]:not([tabindex^="-"])','area[href]:not([tabindex^="-"])','input:not([disabled]):not([tabindex^="-"]):not([type="hidden"])','select:not([disabled]):not([tabindex^="-"])','textarea:not([disabled]):not([tabindex^="-"])','button:not([disabled]):not([tabindex^="-"])'],N=[...L,'[tabindex]:not([tabindex^="-"]):not([disabled])'].join(","),P=[...L,"[tabindex]:not([disabled])"].join(",");function x(e){const t=window.getComputedStyle(e);return"hidden"===t.visibility||"none"===t.display}function M(e){let t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:document.documentElement,i=arguments.length>2?arguments[2]:void 0;return e===n?!x(e):i&&i.get(e)?i.get(e):(x(e)?t=!1:e.parentNode&&(t=M(e.parentNode,n,i)),i&&i.set(e,t),t)}const D={POLITE:"polite",ASSERTIVE:"assertive"};function U(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:D.POLITE;O&&(O.removeAttribute("aria-hidden"),O.setAttribute("aria-live",D.POLITE),O.textContent="",O.textContent=e,O.setAttribute("aria-live",t),clearTimeout(R),R=setTimeout(()=>{O.removeAttribute("aria-live"),O.setAttribute("aria-hidden","true")},1e4))}class B{constructor(e){if(!e)throw new Error("An element must be passed in to Disable Background Navigation");this._container=e,this._hiddenElements=[]}disableBackground(){let e=this._container;for(;e&&e!==document.body&&e.parentElement;)this._hiddenElements=this._hiddenElements.concat([...e.parentElement.children].filter(t=>t!==e&&"true"!==t.getAttribute("aria-hidden")&&(t.setAttribute("aria-hidden",!0),!0))),e=e.parentElement}enableBackground(){this._hiddenElements.forEach(e=>{e.removeAttribute("aria-hidden")}),this._hiddenElements=[]}}const q=["class","disabled","style","tabindex","type"];class F{constructor(e){if(!e)throw new Error("FocusTrap: No focus trap container passed in");this._container=e,this._observer=new MutationObserver(()=>this._setFirstAndLastFocusableEls(this._container)),this._handleKeyDown=this._focusTrap.bind(this),this._backgroundNavigationDisabler=new B(this._container)}init(){this._observer.observe(this._container,{attributeFilter:q,attributes:!0,childList:!0,subtree:!0}),this._setFirstAndLastFocusableEls(this._container),this._container.addEventListener("keydown",this._handleKeyDown),this._backgroundNavigationDisabler.disableBackground()}tearDown(){this._observer.disconnect(),this._container.removeEventListener("keydown",this._handleKeyDown),this._backgroundNavigationDisabler.enableBackground()}_focusTrap(e){const{key:t,target:n}=e,i=C(t),r=i===k.TAB&&e.shiftKey;!r&&i===k.TAB&&n===this.lastFocusableEl?(this.firstFocusableEl.focus(),e.preventDefault()):r&&n===this.firstFocusableEl&&(this.lastFocusableEl.focus(),e.preventDefault())}_setFirstAndLastFocusableEls(e){const[t,n]=this._getFirstAndLastFocusableEls(e);this.firstFocusableEl=t,this.lastFocusableEl=n,setTimeout(()=>{this._hasFocusBeenDropped()&&("-1"===e.getAttribute("tabindex")?e.focus():this.firstFocusableEl.focus())},100)}_hasFocusBeenDropped(){const e=document.activeElement;return!e||e===document.body}_getFirstAndLastFocusableEls(e){const t=[...e.querySelectorAll(N)],n=new Map;let i,r,o=0,s=t.length-1;for(;(!i||!r)&&o<=s;){if(!i){const r=t[o];i=M(r,e,n)&&r,o++}if(!r){const i=t[s];r=M(i,e,n)&&i,s--}}return r=r||i,[i,r]}}const j=/.*(iPad|iPod|iPhone|Android|BB10|BlackBerry|IEMobile).*/;function H(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:navigator.userAgent;return!!e&&j.test(e)}const z=".".concat("collapsible-dropdown","__list"),G=".".concat("collapsible-dropdown","__button"),K=".".concat("collapsible-dropdown","__close-button");class W{constructor(e){let{getFocusItemFromListItem:t=(e=>e.querySelector(N)),elementToFocus:n,dropdownTriggerEl:i,dropdownContentEl:r}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!e)throw Error("An element must be provided to CollapsibleDropdown");this.el=e,this.dropdownContentEl=r||this.el.querySelector(z),this._closeButton=this.el.querySelector(K),this._isMobile=H();const o=this.dropdownContentEl.closest(".".concat("collapsible-dropdown"));if(this._isMobile&&o&&(this._focusTrap=new F(o)),!n){const e=this.dropdownContentEl===this.dropdownContentEl.parentElement.querySelector(N),t="-1"===this.dropdownContentEl.getAttribute("tabIndex");e||t||console.warn('elementToFocus not provided and the dropdown container is not focusable. Consider adding tabindex="-1" to:',this.dropdownContentEl)}this.elementToFocus=n||this.dropdownContentEl,this.dropdownTriggerEl=i||this.el.querySelector(G),this.hideClass="hidden",this.collapsible=new A(e,this.dropdownContentEl,{mainButton:this.dropdownTriggerEl}),this._handleBodyClick=this._handleBodyClick.bind(this),this._focusOutsideDropdown=this._focusOutsideDropdown.bind(this),this._leaveWindow=this._leaveWindow.bind(this),this._attachEventListeners(),this.collapsible.isList&&(this._getFocusItemFromListItem=t)}_attachEventListeners(){var e;this.el.addEventListener("open",e=>this._showDropdownList(e)),this.el.addEventListener("close",()=>this._hideDropdownList()),this.collapsible.isList&&this.dropdownContentEl.addEventListener("focusEl",e=>this._manageFocus(e)),null===(e=this._closeButton)||void 0===e||e.addEventListener("click",e=>this._handleCloseButtonClick(e))}_manageFocus(e){const{target:t}=e;if(t&&this._getFocusItemFromListItem){const e=this._getFocusItemFromListItem(t);e&&e.focus()}}_handleBodyClick(e){this.el.contains(e.target)||this.collapsible.close({shouldReturnFocusToTrigger:!1})}_handleCloseButtonClick(e){var t;null===(t=e.stopPropagation)||void 0===t||t.call(e),this.collapsible.close({shouldReturnFocusToTrigger:!0})}_showDropdownList(e){window.addEventListener("blur",this._leaveWindow),this.dropdownContentEl.classList.remove(this.hideClass),this.elementToFocus.focus();const{key:t}=e&&e.detail;var n;(t?this.elementToFocus.classList.remove("no-focus-ring"):this.elementToFocus.classList.add("no-focus-ring"),document.addEventListener("mousedown",this._handleBodyClick),this._isMobile)?null===(n=this._focusTrap)||void 0===n||n.init():this.el.addEventListener("focusout",this._focusOutsideDropdown)}_hideDropdownList(){var e;this._isMobile?null===(e=this._focusTrap)||void 0===e||e.tearDown():this.el.removeEventListener("focusout",this._focusOutsideDropdown);document.removeEventListener("mousedown",this._handleBodyClick),window.removeEventListener("blur",this._leaveWindow),this.dropdownContentEl.classList.add(this.hideClass)}_focusOutsideDropdown(e){e.relatedTarget&&!this.el.contains(e.relatedTarget)&&this.collapsible.isOpen&&this.collapsible.close({shouldReturnFocusToTrigger:this._shouldReturnFocusToTrigger})}_leaveWindow(){this.collapsible.isOpen&&this.collapsible.close({shouldReturnFocusToTrigger:this._shouldReturnFocusToTrigger})}shouldReturnFocusToTrigger(e){this._shouldReturnFocusToTrigger=e}close(){this.collapsible.close({shouldReturnFocusToTrigger:this._shouldReturnFocusToTrigger})}}function V(e){let{method:t="GET",headers:n={},sendCookies:i=!0,skipCsrfToken:r=!1,postData:o,isPemEnabled:s=!1,pemDegradationTrackingMetadata:a=[],pemEntityIds:c=[]}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const l={method:t,headers:n,body:null};if(!r){const e=f("JSESSIONID");e&&(l.headers["Csrf-Token"]=S(e))}i&&(l.credentials="include"),"POST"!==l.method&&"PUT"!==l.method||(l.body=o);const u=fetch(e,l),d=u.then(n=>n.ok||304===n.status?n.text().then(e=>(n.responseText=e,n)):n.text().then(i=>{const r=new Error("".concat(t," request for ").concat(e," has failed with status code ").concat(n.status));return n.responseText=i,r.response=n,Promise.reject(r)}));return s&&(a.length?Y(u,e,c,a):console.warn("Please set the value for the option pemDegradationTrackingMetadata when PEM is enabled.")),d}function Y(e,t,n,i){try{window.tracking.then(r=>{window.pemTracking.then(o=>{o.trackFeatureDegradationsForFetch(t,n,i,e,r.state.currentPageInstance)})})}catch(e){}}class Q{constructor(e){if(!e)throw Error("An element must be provided to LanguageSelector");this._el=e,this.listEl=this._el.querySelector(".collapsible-dropdown__list"),this.dropdownTriggerEl=this._el.querySelector(".language-selector__button"),this.currentListItem=this.listEl.querySelector(".language-selector__link--selected"),this.collapsibleDropdown=new W(e,{dropdownTriggerEl:this.dropdownTriggerEl,elementToFocus:this.currentListItem}),this._attachCustomEventListeners()}_attachCustomEventListeners(){this.listEl.addEventListener("click",this._handleLocaleButtonClick.bind(this))}_handleLocaleButtonClick(e){return function(e){const t=S(f("bcookie")||""),n=function(e){let t="";return e.indexOf("linkedin.cn")>-1?t="https://www.linkedin.cn":e.indexOf("linkedin-ei.cn")>-1?t="https://www.linkedin-ei.cn":e.indexOf("linkedin-ei.com")>-1?t="https://www.linkedin-ei.com":e.indexOf("linkedin.com")>-1&&(t="https://www.linkedin.com"),t}(T(document));return V("".concat(n,"/psettings/update-language/cors?csrfToken=").concat(encodeURIComponent(t)),{method:"POST",headers:{"Content-Type":"application/json"},postData:JSON.stringify({locale:e}),skipCsrfToken:!0})}(e.target.getAttribute("data-locale")).then(()=>{location.reload()})}}var X="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==e.g?e.g:"undefined"!=typeof self?self:{},J=(parseInt,"object"==typeof X&&X&&X.Object===Object&&X),Z="object"==typeof self&&self&&self.Object===Object&&self;J||Z||Function("return this")(),Object.prototype.toString,Math.max,Math.min;function $(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function ee(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?$(Object(n),!0).forEach((function(t){te(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):$(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function te(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ne(e,t){if(null==e)return{};var n,i,r=function(e,t){if(null==e)return{};var n,i,r={},o=Object.keys(e);for(i=0;i<o.length;i++)n=o[i],t.indexOf(n)>=0||(r[n]=e[n]);return r}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)n=o[i],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}const ie="light",re="dark";function oe(){const e=document.getElementById("config");let t;return e&&e.dataset&&(t=e.dataset.theme),t?document.documentElement.classList.contains("dark")?re:ie:void 0}var se;function ae(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 i,r,o=[],s=!0,a=!1;try{for(n=n.call(e);!(s=(i=n.next()).done)&&(o.push(i.value),!t||o.length!==t);s=!0);}catch(e){a=!0,r=e}finally{try{s||null==n.return||n.return()}finally{if(a)throw r}}return o}}(e,t)||fe(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 ce(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=fe(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var i=0,r=function(){};return{s:r,n:function(){return i>=e.length?{done:!0}:{done:!1,value:e[i++]}},e:function(e){throw e},f:r}}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,s=!0,a=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return s=e.done,e},e:function(e){a=!0,o=e},f:function(){try{s||null==n.return||n.return()}finally{if(a)throw o}}}}function le(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ue(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function de(e,t,n){return t&&ue(e.prototype,t),n&&ue(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function he(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function pe(e){return function(e){if(Array.isArray(e))return me(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||fe(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 fe(e,t){if(e){if("string"==typeof e)return me(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)?me(e,t):void 0}}function me(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}function ve(e){return(ve="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 ge,ye=new Uint8Array(16);function be(){if(!ge&&!(ge="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 ge(ye)}var Ee=/^(?:[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 _e(e){return"string"==typeof e&&Ee.test(e)}for(var we=[],Te=0;Te<256;++Te)we.push((Te+256).toString(16).substr(1));function Se(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=(we[e[t+0]]+we[e[t+1]]+we[e[t+2]]+we[e[t+3]]+"-"+we[e[t+4]]+we[e[t+5]]+"-"+we[e[t+6]]+we[e[t+7]]+"-"+we[e[t+8]]+we[e[t+9]]+"-"+we[e[t+10]]+we[e[t+11]]+we[e[t+12]]+we[e[t+13]]+we[e[t+14]]+we[e[t+15]]).toLowerCase();if(!_e(n))throw TypeError("Stringified UUID is invalid");return n}function ke(e){if(!_e(e))throw TypeError("Invalid UUID");var t,n=new Uint8Array(16);return n[0]=(t=parseInt(e.slice(0,8),16))>>>24,n[1]=t>>>16&255,n[2]=t>>>8&255,n[3]=255&t,n[4]=(t=parseInt(e.slice(9,13),16))>>>8,n[5]=255&t,n[6]=(t=parseInt(e.slice(14,18),16))>>>8,n[7]=255&t,n[8]=(t=parseInt(e.slice(19,23),16))>>>8,n[9]=255&t,n[10]=(t=parseInt(e.slice(24,36),16))/1099511627776&255,n[11]=t/4294967296&255,n[12]=t>>>24&255,n[13]=t>>>16&255,n[14]=t>>>8&255,n[15]=255&t,n}function Ie(e,t,n){function i(e,i,r,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 i&&(i=ke(i)),16!==i.length)throw TypeError("Namespace must be array-like (16 iterable integer values, 0-255)");var s=new Uint8Array(16+e.length);if(s.set(i),s.set(e,i.length),(s=n(s))[6]=15&s[6]|t,s[8]=63&s[8]|128,r){o=o||0;for(var a=0;a<16;++a)r[o+a]=s[a];return r}return Se(s)}try{i.name=e}catch(e){}return i.DNS="6ba7b810-9dad-11d1-80b4-00c04fd430c8",i.URL="6ba7b811-9dad-11d1-80b4-00c04fd430c8",i}function Ce(e){return 14+(e+64>>>9<<4)+1}function Ae(e,t){var n=(65535&e)+(65535&t);return(e>>16)+(t>>16)+(n>>16)<<16|65535&n}function Oe(e,t,n,i,r,o){return Ae((s=Ae(Ae(t,e),Ae(i,o)))<<(a=r)|s>>>32-a,n);var s,a}function Re(e,t,n,i,r,o,s){return Oe(t&n|~t&i,e,t,r,o,s)}function Le(e,t,n,i,r,o,s){return Oe(t&i|n&~i,e,t,r,o,s)}function Ne(e,t,n,i,r,o,s){return Oe(t^n^i,e,t,r,o,s)}function Pe(e,t,n,i,r,o,s){return Oe(n^(t|~i),e,t,r,o,s)}function xe(e,t,n){var i=(e=e||{}).random||(e.rng||be)();if(i[6]=15&i[6]|64,i[8]=63&i[8]|128,t){n=n||0;for(var r=0;r<16;++r)t[n+r]=i[r];return t}return Se(i)}function Me(e,t,n,i){switch(e){case 0:return t&n^~t&i;case 1:return t^n^i;case 2:return t&n^t&i^n&i;case 3:return t^n^i}}function De(e,t){return e<<t|e>>>32-t}Ie("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,i="0123456789abcdef",r=0;r<n;r+=8){var o=e[r>>5]>>>r%32&255,s=parseInt(i.charAt(o>>>4&15)+i.charAt(15&o),16);t.push(s)}return t}(function(e,t){e[t>>5]|=128<<t%32,e[Ce(t)-1]=t;for(var n=1732584193,i=-271733879,r=-1732584194,o=271733878,s=0;s<e.length;s+=16){var a=n,c=i,l=r,u=o;n=Re(n,i,r,o,e[s],7,-680876936),o=Re(o,n,i,r,e[s+1],12,-389564586),r=Re(r,o,n,i,e[s+2],17,606105819),i=Re(i,r,o,n,e[s+3],22,-1044525330),n=Re(n,i,r,o,e[s+4],7,-176418897),o=Re(o,n,i,r,e[s+5],12,1200080426),r=Re(r,o,n,i,e[s+6],17,-1473231341),i=Re(i,r,o,n,e[s+7],22,-45705983),n=Re(n,i,r,o,e[s+8],7,1770035416),o=Re(o,n,i,r,e[s+9],12,-1958414417),r=Re(r,o,n,i,e[s+10],17,-42063),i=Re(i,r,o,n,e[s+11],22,-1990404162),n=Re(n,i,r,o,e[s+12],7,1804603682),o=Re(o,n,i,r,e[s+13],12,-40341101),r=Re(r,o,n,i,e[s+14],17,-1502002290),n=Le(n,i=Re(i,r,o,n,e[s+15],22,1236535329),r,o,e[s+1],5,-165796510),o=Le(o,n,i,r,e[s+6],9,-1069501632),r=Le(r,o,n,i,e[s+11],14,643717713),i=Le(i,r,o,n,e[s],20,-373897302),n=Le(n,i,r,o,e[s+5],5,-701558691),o=Le(o,n,i,r,e[s+10],9,38016083),r=Le(r,o,n,i,e[s+15],14,-660478335),i=Le(i,r,o,n,e[s+4],20,-405537848),n=Le(n,i,r,o,e[s+9],5,568446438),o=Le(o,n,i,r,e[s+14],9,-1019803690),r=Le(r,o,n,i,e[s+3],14,-187363961),i=Le(i,r,o,n,e[s+8],20,1163531501),n=Le(n,i,r,o,e[s+13],5,-1444681467),o=Le(o,n,i,r,e[s+2],9,-51403784),r=Le(r,o,n,i,e[s+7],14,1735328473),n=Ne(n,i=Le(i,r,o,n,e[s+12],20,-1926607734),r,o,e[s+5],4,-378558),o=Ne(o,n,i,r,e[s+8],11,-2022574463),r=Ne(r,o,n,i,e[s+11],16,1839030562),i=Ne(i,r,o,n,e[s+14],23,-35309556),n=Ne(n,i,r,o,e[s+1],4,-1530992060),o=Ne(o,n,i,r,e[s+4],11,1272893353),r=Ne(r,o,n,i,e[s+7],16,-155497632),i=Ne(i,r,o,n,e[s+10],23,-1094730640),n=Ne(n,i,r,o,e[s+13],4,681279174),o=Ne(o,n,i,r,e[s],11,-358537222),r=Ne(r,o,n,i,e[s+3],16,-722521979),i=Ne(i,r,o,n,e[s+6],23,76029189),n=Ne(n,i,r,o,e[s+9],4,-640364487),o=Ne(o,n,i,r,e[s+12],11,-421815835),r=Ne(r,o,n,i,e[s+15],16,530742520),n=Pe(n,i=Ne(i,r,o,n,e[s+2],23,-995338651),r,o,e[s],6,-198630844),o=Pe(o,n,i,r,e[s+7],10,1126891415),r=Pe(r,o,n,i,e[s+14],15,-1416354905),i=Pe(i,r,o,n,e[s+5],21,-57434055),n=Pe(n,i,r,o,e[s+12],6,1700485571),o=Pe(o,n,i,r,e[s+3],10,-1894986606),r=Pe(r,o,n,i,e[s+10],15,-1051523),i=Pe(i,r,o,n,e[s+1],21,-2054922799),n=Pe(n,i,r,o,e[s+8],6,1873313359),o=Pe(o,n,i,r,e[s+15],10,-30611744),r=Pe(r,o,n,i,e[s+6],15,-1560198380),i=Pe(i,r,o,n,e[s+13],21,1309151649),n=Pe(n,i,r,o,e[s+4],6,-145523070),o=Pe(o,n,i,r,e[s+11],10,-1120210379),r=Pe(r,o,n,i,e[s+2],15,718787259),i=Pe(i,r,o,n,e[s+9],21,-343485551),n=Ae(n,a),i=Ae(i,c),r=Ae(r,l),o=Ae(o,u)}return[n,i,r,o]}(function(e){if(0===e.length)return[];for(var t=8*e.length,n=new Uint32Array(Ce(t)),i=0;i<t;i+=8)n[i>>5]|=(255&e[i/8])<<i%32;return n}(e),8*e.length))})),Ie("v5",80,(function(e){var t=[1518500249,1859775393,2400959708,3395469782],n=[1732584193,4023233417,2562383102,271733878,3285377520];if("string"==typeof e){var i=unescape(encodeURIComponent(e));e=[];for(var r=0;r<i.length;++r)e.push(i.charCodeAt(r))}else Array.isArray(e)||(e=Array.prototype.slice.call(e));e.push(128);for(var o=e.length/4+2,s=Math.ceil(o/16),a=new Array(s),c=0;c<s;++c){for(var l=new Uint32Array(16),u=0;u<16;++u)l[u]=e[64*c+4*u]<<24|e[64*c+4*u+1]<<16|e[64*c+4*u+2]<<8|e[64*c+4*u+3];a[c]=l}a[s-1][14]=8*(e.length-1)/Math.pow(2,32),a[s-1][14]=Math.floor(a[s-1][14]),a[s-1][15]=8*(e.length-1)&4294967295;for(var d=0;d<s;++d){for(var h=new Uint32Array(80),p=0;p<16;++p)h[p]=a[d][p];for(var f=16;f<80;++f)h[f]=De(h[f-3]^h[f-8]^h[f-14]^h[f-16],1);for(var m=n[0],v=n[1],g=n[2],y=n[3],b=n[4],E=0;E<80;++E){var _=Math.floor(E/20),w=De(m,5)+Me(_,v,g,y)+b+t[_]+h[E]>>>0;b=y,y=g,g=De(v,30)>>>0,v=m,m=w}n[0]=n[0]+m>>>0,n[1]=n[1]+v>>>0,n[2]=n[2]+g>>>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 Ue=null;if("undefined"==typeof crypto||!crypto.getRandomValues){var Be=("undefined"!=typeof FastBoot?FastBoot.require:require)("crypto");if(Be){var qe=new Uint8Array(256),Fe=qe.length;Ue={rng:function(){return Fe>qe.length-16&&(Be.randomFillSync(qe),Fe=0),qe.slice(Fe,Fe+=16)}}}}"object"===("undefined"==typeof crypto?"undefined":ve(crypto))&&crypto.randomUUID;function je(){return xe(Ue,new Array(16),0)}function He(e){return pe(e).map((function(e){return String.fromCharCode(e)})).join("")}function ze(){return He(je())}var Ge=/^[a-zA-Z0-9/+]+[=]+$/;function Ke(e,t){return{pageUrn:Ve(e),trackingId:t||function(e){for(var t,n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",i=[],r=0,o=e.length,s=o%3,a=o-s;r<a;)t=e[r]<<16,t|=e[r+1]<<8,t|=e[r+2],i.push(n.charAt(t>>>18&63)),i.push(n.charAt(t>>>12&63)),i.push(n.charAt(t>>>6&63)),i.push(n.charAt(63&t)),r+=3;switch(s){case 2:t=e[r]<<16,t|=e[r+1]<<8,i.push(n.charAt(t>>>18&63)),i.push(n.charAt(t>>>12&63)),i.push(n.charAt(t>>>6&63)),i.push("=");break;case 1:t=e[r]<<16,i.push(n.charAt(t>>>18&63)),i.push(n.charAt(t>>>12&63)),i.push("="),i.push("=")}return i.join("")}(je())}}function We(e,t){return"urn:li:control:".concat(e,"-").concat(t)}function Ve(e){return"urn:li:page:".concat(e)}function Ye(e,t){return{pageInstance:t.assign({},e.pageInstance),pageKey:e.pageKey,applicationInstance:e.applicationInstance}}function Qe(e,t){return void 0!==t.allSettled?t.allSettled(e):function(e){return new Promise((function(t){var n=new Set,i=function(e){n.delete(e),0===n.size&&t()};0===e.length?t():e.map((function(e){return e.then((function(){return i(e)})).catch((function(){return i(e)}))}))}))}(e)}function Xe(e){var t=[];return e.forEach((function(e){return t.push(e)})),t}function Je(e,t){if("undefined"!=typeof window&&window.indexedDB){var n="sequenceNumber",i=window.indexedDB.open(n);return new Promise((function(r,o){i.onupgradeneeded=function(){var e=i.result;e.objectStoreNames.contains(n)||e.createObjectStore(n,{autoIncrement:!0})},i.onsuccess=function(){var s=i.result,a=s.transaction(n,"readwrite"),c=a.objectStore(n),l=c.get(1);l.onsuccess=function(){var n=l.result;if(n){var i,s=null!==(i=n.sequenceNumber)&&void 0!==i?i:0;if("read"===e)return r(s);if(!("update"===e&&void 0!==t&&t>s))return r(null);var a=c.put({sequenceNumber:t},1);a.onsuccess=function(){return r(null)},a.onerror=function(){o(a.error)}}else{var u=c.add({sequenceNumber:0});u.onsuccess=function(){return r(0)},u.onerror=function(){o(u.error)}}},l.onerror=function(){return s.close(),o(new Error("Error: get sequence number from indexedDB ".concat(String(l.error))))},a.oncomplete=function(){return s.close()}},i.onerror=function(){return r(null)}}))}return Promise.resolve(null)}function Ze(e,t,n){var i=e.get(t);i&&i.push(n)||e.set(t,[n])}function $e(e,t,n){var i=e.get(t);i&&i.splice(i.indexOf(n)>>>0,1)}var et,tt,nt=(et=new Map,tt=new Map,{on:function(e,t){Ze(et,e,t)},before:function(e,t){Ze(tt,e,t)},off:function(e,t){$e(et,e,t)},offBefore:function(e,t){$e(tt,e,t)},emit:function(e,t){(tt.get(e)||[]).concat(et.get(e)||[]).slice().map((function(e){e(t)}))},clear:function(){tt.clear(),et.clear()}});if("undefined"!=typeof document&&"undefined"!=typeof window){var it=function(e){"pagehide"!==e.type&&"hidden"!==document.visibilityState||nt.emit("internal:hide",e)};document.addEventListener("visibilitychange",it),window.addEventListener("pagehide",it)}var rt=Uint8Array,ot=Uint16Array,st=Uint32Array,at=new rt([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]),ct=new rt([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]),lt=new rt([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),ut=function(e,t){for(var n=new ot(31),i=0;i<31;++i)n[i]=t+=1<<e[i-1];var r=new st(n[30]);for(i=1;i<30;++i)for(var o=n[i];o<n[i+1];++o)r[o]=o-n[i]<<5|i;return[n,r]},dt=ut(at,2),ht=dt[0],pt=dt[1];ht[28]=258,pt[258]=28;for(var ft=ut(ct,0)[1],mt=new ot(32768),vt=0;vt<32768;++vt){var gt=(43690&vt)>>>1|(21845&vt)<<1;gt=(61680&(gt=(52428&gt)>>>2|(13107&gt)<<2))>>>4|(3855&gt)<<4,mt[vt]=((65280&gt)>>>8|(255&gt)<<8)>>>1}var yt=function(e,t,n){for(var i=e.length,r=0,o=new ot(t);r<i;++r)e[r]&&++o[e[r]-1];var s,a=new ot(t);for(r=0;r<t;++r)a[r]=a[r-1]+o[r-1]<<1;if(n){s=new ot(1<<t);var c=15-t;for(r=0;r<i;++r)if(e[r])for(var l=r<<4|e[r],u=t-e[r],d=a[e[r]-1]++<<u,h=d|(1<<u)-1;d<=h;++d)s[mt[d]>>>c]=l}else for(s=new ot(i),r=0;r<i;++r)e[r]&&(s[r]=mt[a[e[r]-1]++]>>>15-e[r]);return s},bt=new rt(288);for(vt=0;vt<144;++vt)bt[vt]=8;for(vt=144;vt<256;++vt)bt[vt]=9;for(vt=256;vt<280;++vt)bt[vt]=7;for(vt=280;vt<288;++vt)bt[vt]=8;var Et=new rt(32);for(vt=0;vt<32;++vt)Et[vt]=5;var _t=yt(bt,9,0),wt=yt(Et,5,0),Tt=function(e){return(e+7)/8|0},St=function(e,t,n){n<<=7&t;var i=t/8|0;e[i]|=n,e[i+1]|=n>>>8},kt=function(e,t,n){n<<=7&t;var i=t/8|0;e[i]|=n,e[i+1]|=n>>>8,e[i+2]|=n>>>16},It=function(e,t){for(var n=[],i=0;i<e.length;++i)e[i]&&n.push({s:i,f:e[i]});var r=n.length,o=n.slice();if(!r)return[Pt,0];if(1==r){var s=new rt(n[0].s+1);return s[n[0].s]=1,[s,1]}n.sort((function(e,t){return e.f-t.f})),n.push({s:-1,f:25001});var a=n[0],c=n[1],l=0,u=1,d=2;for(n[0]={s:-1,f:a.f+c.f,l:a,r:c};u!=r-1;)a=n[n[l].f<n[d].f?l++:d++],c=n[l!=u&&n[l].f<n[d].f?l++:d++],n[u++]={s:-1,f:a.f+c.f,l:a,r:c};var h=o[0].s;for(i=1;i<r;++i)o[i].s>h&&(h=o[i].s);var p=new ot(h+1),f=Ct(n[u-1],p,0);if(f>t){i=0;var m=0,v=f-t,g=1<<v;for(o.sort((function(e,t){return p[t.s]-p[e.s]||e.f-t.f}));i<r;++i){var y=o[i].s;if(!(p[y]>t))break;m+=g-(1<<f-p[y]),p[y]=t}for(m>>>=v;m>0;){var b=o[i].s;p[b]<t?m-=1<<t-p[b]++-1:++i}for(;i>=0&&m;--i){var E=o[i].s;p[E]==t&&(--p[E],++m)}f=t}return[new rt(p),f]},Ct=function e(t,n,i){return-1==t.s?Math.max(e(t.l,n,i+1),e(t.r,n,i+1)):n[t.s]=i},At=function(e){for(var t=e.length;t&&!e[--t];);for(var n=new ot(++t),i=0,r=e[0],o=1,s=function(e){n[i++]=e},a=1;a<=t;++a)if(e[a]==r&&a!=t)++o;else{if(!r&&o>2){for(;o>138;o-=138)s(32754);o>2&&(s(o>10?o-11<<5|28690:o-3<<5|12305),o=0)}else if(o>3){for(s(r),--o;o>6;o-=6)s(8304);o>2&&(s(o-3<<5|8208),o=0)}for(;o--;)s(r);o=1,r=e[a]}return[n.subarray(0,i),t]},Ot=function(e,t){for(var n=0,i=0;i<t.length;++i)n+=e[i]*t[i];return n},Rt=function(e,t,n){var i=n.length,r=Tt(t+2);e[r]=255&i,e[r+1]=i>>>8,e[r+2]=255^e[r],e[r+3]=255^e[r+1];for(var o=0;o<i;++o)e[r+o+4]=n[o];return 8*(r+4+i)},Lt=function(e,t,n,i,r,o,s,a,c,l,u){St(t,u++,n),++r[256];for(var d=It(r,15),h=d[0],p=d[1],f=It(o,15),m=f[0],v=f[1],g=At(h),y=g[0],b=g[1],E=At(m),_=E[0],w=E[1],T=new ot(19),S=0;S<y.length;++S)T[31&y[S]]++;for(S=0;S<_.length;++S)T[31&_[S]]++;for(var k=It(T,7),I=k[0],C=k[1],A=19;A>4&&!I[lt[A-1]];--A);var O,R,L,N,P=l+5<<3,x=Ot(r,bt)+Ot(o,Et)+s,M=Ot(r,h)+Ot(o,m)+s+14+3*A+Ot(T,I)+(2*T[16]+3*T[17]+7*T[18]);if(P<=x&&P<=M)return Rt(t,u,e.subarray(c,c+l));if(St(t,u,1+(M<x)),u+=2,M<x){O=yt(h,p,0),R=h,L=yt(m,v,0),N=m;var D=yt(I,C,0);for(St(t,u,b-257),St(t,u+5,w-1),St(t,u+10,A-4),u+=14,S=0;S<A;++S)St(t,u+3*S,I[lt[S]]);u+=3*A;for(var U=[y,_],B=0;B<2;++B){var q=U[B];for(S=0;S<q.length;++S){var F=31&q[S];St(t,u,D[F]),u+=I[F],F>15&&(St(t,u,q[S]>>>5&127),u+=q[S]>>>12)}}}else O=_t,R=bt,L=wt,N=Et;for(S=0;S<a;++S)if(i[S]>255){F=i[S]>>>18&31,kt(t,u,O[F+257]),u+=R[F+257],F>7&&(St(t,u,i[S]>>>23&31),u+=at[F]);var j=31&i[S];kt(t,u,L[j]),u+=N[j],j>3&&(kt(t,u,i[S]>>>5&8191),u+=ct[j])}else kt(t,u,O[i[S]]),u+=R[i[S]];return kt(t,u,O[256]),u+R[256]},Nt=new st([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),Pt=new rt(0),xt=function(){for(var e=new Int32Array(256),t=0;t<256;++t){for(var n=t,i=9;--i;)n=(1&n&&-306674912)^n>>>1;e[t]=n}return e}(),Mt=function(e,t,n){for(;n;++t)e[t]=n,n>>>=8};function Dt(e,t){t||(t={});var n=function(){var e=-1;return{p:function(t){for(var n=e,i=0;i<t.length;++i)n=xt[255&n^t[i]]^n>>>8;e=n},d:function(){return~e}}}(),i=e.length;n.p(e);var r,o,s,a=(r=e,o=t,s=function(e){return 10+(e.filename&&e.filename.length+1||0)}(t),8,function(e,t,n,i,r,o){var s=e.length,a=new rt(i+s+5*(1+Math.ceil(s/7e3))+r),c=a.subarray(i,a.length-r),l=0;if(!t||s<8)for(var u=0;u<=s;u+=65535){var d=u+65535;d>=s&&(c[l>>3]=o),l=Rt(c,l+1,e.subarray(u,d))}else{for(var h=Nt[t-1],p=h>>>13,f=8191&h,m=(1<<n)-1,v=new ot(32768),g=new ot(m+1),y=Math.ceil(n/3),b=2*y,E=function(t){return(e[t]^e[t+1]<<y^e[t+2]<<b)&m},_=new st(25e3),w=new ot(288),T=new ot(32),S=0,k=0,I=(u=0,0),C=0,A=0;u<s;++u){var O=E(u),R=32767&u,L=g[O];if(v[R]=L,g[O]=R,C<=u){var N=s-u;if((S>7e3||I>24576)&&N>423){l=Lt(e,c,0,_,w,T,k,I,A,u-A,l),I=S=k=0,A=u;for(var P=0;P<286;++P)w[P]=0;for(P=0;P<30;++P)T[P]=0}var x=2,M=0,D=f,U=R-L&32767;if(N>2&&O==E(u-U))for(var B=Math.min(p,N)-1,q=Math.min(32767,u),F=Math.min(258,N);U<=q&&--D&&R!=L;){if(e[u+x]==e[u+x-U]){for(var j=0;j<F&&e[u+j]==e[u+j-U];++j);if(j>x){if(x=j,M=U,j>B)break;var H=Math.min(U,j-2),z=0;for(P=0;P<H;++P){var G=u-U+P+32768&32767,K=G-v[G]+32768&32767;K>z&&(z=K,L=G)}}}U+=(R=L)-(L=v[R])+32768&32767}if(M){_[I++]=268435456|pt[x]<<18|ft[M];var W=31&pt[x],V=31&ft[M];k+=at[W]+ct[V],++w[257+W],++T[V],C=u+x,++S}else _[I++]=e[u],++w[e[u]]}}l=Lt(e,c,o,_,w,T,k,I,A,u-A,l),!o&&7&l&&(l=Rt(c,l+1,Pt))}return function(e,t,n){(null==t||t<0)&&(t=0),(null==n||n>e.length)&&(n=e.length);var i=new(2==e.BYTES_PER_ELEMENT?ot:4==e.BYTES_PER_ELEMENT?st:rt)(n-t);return i.set(e.subarray(t,n)),i}(a,0,i+Tt(l)+r)}(r,null==o.level?6:o.level,null==o.mem?Math.ceil(1.5*Math.max(8,Math.min(13,Math.log(r.length)))):12+o.mem,s,8,!0)),c=a.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&&Mt(e,4,Math.floor(new Date(t.mtime||Date.now())/1e3)),n){e[3]=8;for(var i=0;i<=n.length;++i)e[i+10]=n.charCodeAt(i)}}(a,t),Mt(a,c-8,n.d()),Mt(a,c-4,i),a}var Ut="undefined"!=typeof TextDecoder&&new TextDecoder;try{Ut.decode(Pt,{stream:!0})}catch(ki){}function Bt(){return"undefined"!=typeof window&&"function"==typeof window.fetch}function qt(){try{return Bt()&&"keepalive"in new Request("")}catch(e){return!1}}function Ft(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if("undefined"!=typeof window&&void 0!==window.XMLHttpRequest){var i=new XMLHttpRequest;if(i.open("POST",e,!0),i.withCredentials=!0,n.headers)for(var r=0,o=Object.keys(n.headers);r<o.length;r++){var s=o[r];i.setRequestHeader(s,n.headers[s])}i.send(t)}}function jt(e){var t=e.body,n=e.keepalive,i=e.headers,r=e.compress;i["content-type"]||(i["content-type"]="text/plain;charset=UTF-8");var o=t;if(r&&"undefined"!=typeof TextEncoder)try{o=Dt((new TextEncoder).encode(t)),i["content-encoding"]="gzip"}catch(e){}return{body:o,keepalive:n,credentials:"include",headers:i,method:"POST",mode:"cors"}}function Ht(e){return e&&"message"in e?e.message:"UNKNOWN_ERROR"}var zt,Gt="undefined"!=typeof navigator&&"sendBeacon"in navigator,Kt=qt()?function(e,t,n,i){return new Promise((function(r){fetch(e,jt({body:t,keepalive:!0,headers:n,compress:i})).catch((function(){return fetch(e,jt({body:t,keepalive:!1,headers:n,compress:i}))})).then((function(e){e.ok?r({type:"success",drop:!1,statusCode:e.status}):r({type:"response",drop:!0,statusCode:e.status,rawError:e.statusText})}),(function(e){return r({type:"network",drop:!0,rawError:Ht(e)})}))}))}:function(e,t,n,i){return new Promise((function(r){if(Gt){var o=!1;try{o=navigator.sendBeacon(e,t)}catch(e){}if(o)return void r({type:"unknown",drop:!1})}fetch(e,jt({body:t,keepalive:!1,headers:n,compress:i})).then((function(e){e.ok?r({type:"success",drop:!1,statusCode:200}):r({type:"response",drop:!0,statusCode:e.status,rawError:e.statusText})}),(function(e){return r({type:"network",drop:!0,rawError:Ht(e)})}))}))};function Wt(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 Vt(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"key",i=arguments.length>3?arguments[3]:void 0,r=indexedDB.open(e);r.onupgradeneeded=function(){try{r.result.createObjectStore(t,{keyPath:n})}catch(e){null==i||i.onError(e)}};var o=new Promise((function(e,t){r.onsuccess=function(){var t=r.result;t.onversionchange=function(){return t.close()},e(t),null==i||i.onSuccess()},r.onerror=function(){t(r.error),null==i||i.onError(r.error)}}));return function(e,n){return o.then((function(i){return n(i.transaction(t,e).objectStore(t))}))}}function Yt(){return zt||(zt=Vt("idb-queue","default")),zt}function Qt(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{maxNumber:1e3,batchEvictionNumber:300},n=0,i=null;return e.openKeyCursor().onsuccess=function(){var r=this.result;r&&n++<t.batchEvictionNumber?(i=r.key,r.continue()):null!=i&&e.delete(IDBKeyRange.upperBound(i))},Wt(e.transaction)}function Xt(){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]:Yt();return t("readwrite",(function(t){return Qt(t,e)}))}var Jt=!1;function Zt(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]:Yt();return n("readwrite",(function(n){return n.put(e),Wt(n.count()).then((function(e){if(!(e<=t.maxNumber))return Qt(n,t)}))})).catch((function(e){if(e&&"QuotaExceededError"===e.name)return Xt(t,n)}))}function $t(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]:Yt();return Jt?Promise.resolve():Zt(e,t,n)}function en(e,t,n){return t("readwrite",(function(t){var i=[];return t.openCursor(null,n).onsuccess=function(){var t=this.result;t&&(i.push(t.value),t.delete(),(e<0||i.length<e)&&t.continue())},Wt(t.transaction).then((function(){return i}))}))}function tn(e,t,n){return t("readonly",(function(t){var i=[];return t.openCursor(null,n).onsuccess=function(){var t=this.result;t&&(i.push(t.value),(e<0||i.length<e)&&t.continue())},Wt(t.transaction).then((function(){return i}))}))}function nn(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Yt();return tn(e,t,"next")}function rn(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Yt();return tn(e,t,"prev")}function on(){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,i=arguments.length>3?arguments[3]:void 0;return!t||n<1||(e[t]=JSON.stringify({attempt:n,errorCode:i})),e}function sn(e){"undefined"!=typeof window&&window.__DEBUG_BEACON_TRANSPORTER&&console.debug("[beacon-transporter] ",e())}function an(e){"undefined"!=typeof window&&window.__DEBUG_BEACON_TRANSPORTER&&console.error("[beacon-transporter] ",e())}function cn(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(i){i.timeRemaining()>t.timeRemaining||i.didTimeout?e():n()}),{timeout:t.timeout})};n()}}function ln(e,t){var n=0;return{throttledFn:function(){var i=Date.now();i-n>t&&(sn((function(){return"[throttle] Run fn() at "+String(i)})),e(),n=i)},resetThrottle:function(){n=0}}}var un=function(){function e(t){var n=this,i=arguments.length>1&&void 0!==arguments[1]&&arguments[1];le(this,e),he(this,"config",void 0),he(this,"compress",void 0),he(this,"throttleControl",void 0),he(this,"withStore",void 0),he(this,"disablePersistence",!1),this.config=t,this.compress=i;var r=t.measureIDB;r&&performance.mark(r.createStartMark),this.withStore=Vt(t.idbName,"beacons","timestamp",{onSuccess:function(){r&&performance.measure(r.createSuccessMeasure,r.createStartMark)},onError:function(){r&&performance.measure(r.createFailMeasure,r.createStartMark),n.disablePersistence=!0}}),this.throttleControl=ln(this.replayEntries.bind(this),t.throttleWait)}return de(e,[{key:"onNotify",value:function(){this.disablePersistence||this.throttleControl.throttledFn()}},{key:"push",value:function(e){var t=this;if(!this.disablePersistence){var n=function(){sn((function(){return"Persisting to DB "+e.url})),$t(e,t.config,t.withStore).then((function(){t.throttleControl.resetThrottle(),sn((function(){return"push completed"}))})).catch((function(){t.disablePersistence=!0,an((function(){return"push failed"}))}))};this.config.useIdle?cn(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]:Yt();return Jt=!0,e("readwrite",(function(e){return e.clear(),Wt(e.transaction).finally((function(){return Jt=!1}))}))}(this.withStore).catch((function(){e.disablePersistence=!0,an((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([]):nn(t,this.withStore).catch((function(){return e.disablePersistence=!0,an((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([]):rn(t,this.withStore).catch((function(){return e.disablePersistence=!0,an((function(){return"peekBack failed"})),[]}))}},{key:"replayEntries",value:function(){var e=this;if(!this.disablePersistence){var t=function(){sn((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]:Yt();return en(e,t,"next")}(1,e.withStore).then((function(t){if(t.length>0){var n,i,r=t[0],o=r.url,s=r.body,a=r.headers,c=r.timestamp,l=r.statusCode,u=r.attemptCount;return sn((function(){return"header: ".concat(String(e.config.headerName),"; attemptCount: ").concat(u)})),null===(n=(i=e.config).onBeforeRetry)||void 0===n||n.call(i,s),Kt(o,s,on(a,e.config.headerName,u,l),e.compress).then((function(t){if("unknown"===t.type||"success"===t.type){var n,i;null===(n=(i=e.config).onResult)||void 0===n||n.call(i,t,s),e.replayEntries()}else{var r,a,d,h,p,f;if(u+1>e.config.attemptLimit)return sn((function(){return"Exceeded attempt count, dropping the entry: "+JSON.stringify({url:o,timestamp:c,statusCode:l},null,2)})),t.drop=!0,void(null===(r=(a=e.config).onResult)||void 0===r||r.call(a,t,s));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,s),sn((function(){return"Replaying the entry failed, pushing back to IDB: "+JSON.stringify({url:o,timestamp:c,statusCode:l},null,2)})),$t({url:o,body:s,timestamp:c,statusCode:l,attemptCount:u+1},e.config,e.withStore);t.drop=!0,null===(p=(f=e.config).onResult)||void 0===p||p.call(f,t,s)}}))}})).catch((function(t){e.disablePersistence=!0,t&&t.message&&an((function(){return"Replay entry failed: ".concat(t.message)}))}))};this.config.useIdle?cn(t):t()}}}]),e}(),dn=function(){function e(){le(this,e)}return de(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}(),hn=function(){function e(t,n){le(this,e),he(this,"queue",void 0),he(this,"beaconListeners",new Set),this.queue=e.hasSupport&&!n.disablePersistenceRetry?new un(t,n.compress):new dn}return de(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}();he(hn,"hasSupport","undefined"!=typeof globalThis&&!!globalThis.indexedDB);var pn=[502,504],fn=[429,503],mn=function(){function e(t,n,i,r){var o=this,s=arguments.length>4&&void 0!==arguments[4]&&arguments[4];le(this,e),he(this,"url",void 0),he(this,"body",void 0),he(this,"config",void 0),he(this,"persistenceConfig",void 0),he(this,"compress",void 0),he(this,"timestamp",void 0),he(this,"isClearQueuePending",!1),he(this,"onClearCallback",void 0),this.url=t,this.body=n,this.config=i,this.persistenceConfig=r,this.compress=s,this.timestamp=Date.now(),this.onClearCallback=function(){return o.isClearQueuePending=!0}}return de(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 Kt(e.url,e.body,t,e.compress)}),n,t).finally((function(){sn((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,i){var r=this,o=this.getAttemptCount(t)-1;return e(on(n,this.config.headerName,o,i)).then((function(i){var o,s,a,c;if(i.drop=!1,"unknown"===i.type||"success"===i.type)r.isClearQueuePending||r.persistenceConfig.disabled||r.persistenceConfig.db.notifyQueue(),a=i;else if(sn((function(){return"retry rejected "+JSON.stringify(i)})),r.shouldPersist(t,i))r.persistenceConfig.db.pushToQueue({url:r.url,body:r.body,headers:n,statusCode:i.statusCode,timestamp:r.timestamp,attemptCount:r.getAttemptCount(t)}),a={type:"persisted",drop:!1,statusCode:i.statusCode};else{if(t>0&&r.isRetryableError(i)){var l,u;null===(l=(u=r.config).onIntermediateResult)||void 0===l||l.call(u,i,r.body);var d=r.config.calculateRetryDelay(r.getAttemptCount(t),t);return sn((function(){return"in memory retry in ".concat(d,"ms")})),(c=d,new Promise((function(e){return setTimeout(e,c)}))).then((function(){return r.retry(e,t-1,n,i.statusCode)}))}(a=i).drop=!0}return null===(o=(s=r.config).onIntermediateResult)||void 0===o||o.call(s,a,r.body),a}))}},{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 vn(e,t,n,i,r){"control"!==i&&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&&qt()&&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 s,a,c=null!==(s=e.retryConfig.inMemory)&&void 0!==s?s:{attemptLimit:4,statusCodes:[502,504]},l=null!==(a=e.retryConfig.persist)&&void 0!==a?a:{attemptLimit:3,statusCodes:[429,503],maxNumber:1e3,batchEvictionNumber:300,throttleWait:3e5},u={compress:n,inMemoryRetry:{onIntermediateResult:null==r?void 0:r.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==r?void 0:r.onBeforeRetry,onResult:null==r?void 0:r.onResult,idbName:"beacons",attemptLimit:l.attemptLimit,statusCodes:l.statusCodes,maxNumber:l.maxNumber,batchEvictionNumber:l.batchEvictionNumber,throttleWait:l.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),i=Object.assign({attemptLimit:0,statusCodes:pn,calculateRetryDelay:function(e,t){return 2e3*t}},t.inMemoryRetry);if(t.retryDB)e=t.retryDB;else{var r=Object.assign({idbName:"beacon-transporter",attemptLimit:3,statusCodes:fn,maxNumber:1e3,batchEvictionNumber:300,throttleWait:3e5},t.persistenceRetry);r.headerName=r.headerName||i.headerName,e=new hn(r,{compress:t.compress,disablePersistenceRetry:t.disablePersistenceRetry})}return{beacon:function(r,o,s){var a;return Bt()?new mn(r,o,i,{db:e,disabled:Boolean(t.disablePersistenceRetry),statusCodes:(null===(a=t.persistenceRetry)||void 0===a?void 0:a.statusCodes)||fn},n).send(s):Promise.resolve({type:"unknown",drop:!0})},database:e}}(u),h=d.beacon,p=d.database;return e.retryBeacon={shouldRetry:!0,beacon:h,database:p},"enabled"===i?(e.retryBeacon.shouldRetry=!1,!u.disablePersistenceRetry&&t.shouldAnonymizeMemberId()?p.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 p.clearQueue()}}),(function(){return p.clearQueue()})).then((function(){e.retryBeacon.shouldRetry=!0})).catch((function(e){nt.emit("internal:error",{tags:["core-web-tracking:retry:idb"],reason:e})})):(e.retryBeacon.shouldRetry=!0,Promise.resolve())):void 0})).catch((function(e){nt.emit("internal:error",{tags:["core-web-tracking:retry:setup"],reason:e})}))}var gn=function(){function e(t){le(this,e),he(this,"host",void 0),this.host=t}return de(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&&vn(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){nt.emit("internal:error",{tags:["core-web-tracking:retry:logout"],reason:e})}))}},{key:"sendPayload",value:function(e,t,n,i){var r,o=this.getRetryTreatment();qt()&&"control"!==o&&null!==(r=this.host.retryBeacon)&&void 0!==r&&r.shouldRetry?this.sendPayloadWithRetry(e,t,n):this.sendPayloadFireForget(e,t,n,i)}},{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){nt.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]:{},i=arguments.length>3?arguments[3]:void 0;if(!Array.isArray(t)||t.length>0){var r="undefined"!=typeof navigator&&navigator.userAgent.toLowerCase().indexOf("firefox")>-1;r||!Bt()||"undefined"==typeof Promise?Ft(e,JSON.stringify(t),{headers:n}):Kt(e,JSON.stringify(t),n,this.shouldCompressPayload()).then((function(e){null==i||i.onResult(e,t)}),(function(){}))}}},{key:"getRetryTreatment",value:function(){var e,t,n;if(!this.host.retryConfig)return"control";var i=this.host.retryConfig.lixKey;return i?null!==(e=null===(t=(n=this.host).__getLixTreatment)||void 0===t?void 0:t.call(n,i))&&void 0!==e?e:"control":"enabled"}},{key:"shouldCompressPayload",value:function(){return!0!==this.host.disableCompression}}]),e}(),yn="undefined"!=typeof window&&"undefined"!=typeof document,bn=/JSESSIONID="?([^";]+)"?/,En="",_n=0;function wn(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.cacheLifeSpan,n=void 0===t?1e4:t,i=e.regex,r=void 0===i?bn:i;if(!En||Date.now()-_n>n){var o=yn&&document.cookie.match(r);En=o&&o[1]||"",_n=Date.now()}return En}var Tn=function(){function e(t){le(this,e),he(this,"networkTransporter",void 0),he(this,"inactive",void 0),he(this,"mpName",void 0),he(this,"endpoint",void 0),he(this,"debug",void 0),this.networkTransporter=new gn(t),this.mpName=t.appId,this.inactive=t.inactive;var n=function(e){var t,n=!1;switch(e){case"https://www.linkedin.com/li/track":t=kn;break;case"https://www.linkedin-ei.com/li/track/validate":n=!0,t=Sn;break;case"https://www.linkedin-ei.com/li/track":t=Sn;break;default:n=!0,t=Sn}return{endpoint:t,debug:n}}(t.endpoint);this.endpoint=n.endpoint,this.debug=n.debug}return de(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":wn(),"x-restli-protocol-version":"2.0.0"},n={fragmentEvent:e,debug:this.debug};this.networkTransporter.sendPayload(this.endpoint,n,t)}}}]),e}(),Sn="https://www.linkedin-ei.com/trackingMonitoring/?action=saveClientFragment",kn="https://www.linkedin.com/trackingMonitoring/?action=saveClientFragment";function In(e){return"string"==typeof e}function Cn(e){return In(e)?e:e.topicName||e.eventName}function An(e){return In(e)?e:e.eventName}var On,Rn,Ln=function(){function e(t){var n,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};le(this,e),he(this,"host",void 0),he(this,"cmoTransporter",void 0),he(this,"clientMonitoringInstanceId",ze()),he(this,"currentContext",xn()),he(this,"appState",{}),he(this,"estimatedFragmentSize",0),he(this,"fragmentSizeLimit",void 0),he(this,"activeFragmentEvent",void 0),he(this,"debounceTimer",void 0),this.host=t,this.cmoTransporter=i.cmoTransporter||new Tn(t),this.fragmentSizeLimit=(null===(n=t.clientMonitoringConfig)||void 0===n?void 0:n.fragmentSizeLimit)||10240,this.activeFragmentEvent=Pn(this.clientMonitoringInstanceId,0,0,!1,this.getEventHeaders())}return de(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,i=ce(this.activeFragmentEvent.stats.previousInstanceEventStats);try{for(i.s();!(n=i.n()).done;){var r=n.value;if(r.instanceId===e)return void t(r)}}catch(e){i.e(e)}finally{i.f()}var o=this.getEventHeaders(),s=o.header,a=o.requestHeader,c={header:Object.assign(s,{memberId:-1}),requestHeader:a,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,i){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:this.getCurrentInstanceId(),o=this.getEventHeaders(),s=o.header,a=o.requestHeader,c={header:Object.assign(s,{memberId:-1}),requestHeader:a,instanceId:r,instanceEventNumber:i,reason:e,rawError:n,eventName:An(t),eventTopic:Cn(t)};this.estimatedFragmentSize+=JSON.stringify(c).length,r===this.getCurrentInstanceId()?this.activeFragmentEvent.stats.failures.push(c):this.findPreviousInstanceStat(r,(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,i=t.requestHeader,r=this.activeFragmentEvent;r.header=n,r.requestHeader=i,this.cmoTransporter.fireFragment(r),this.estimatedFragmentSize=0,this.activeFragmentEvent=Pn(this.clientMonitoringInstanceId,r.fragmentNumber+1,r.firstEventNumber+r.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=Mn(e.trackingId));var t=this.currentContext.pageInstance;return t.trackingId=Mn(t.trackingId),{requestHeader:{interfaceLocale:this.host.locale,pageKey:this.currentContext.pageKey,path:this.host.api.location.pathname+this.host.api.location.search,referer:this.host.api.document.referrer},header:{applicationViewerUrn:this.appState.applicationViewerUrn,clientApplicationInstance:e,pageInstance:t,time:Date.now(),version:this.host.appVersion,server:"",service:"",guid:"0000000000000000"}}}}]),e}();function Nn(e){return On||(On=new Ln(e)),{getCurrentInstanceId:function(){return On.getCurrentInstanceId()},logEventGenerated:function(e){return On.logEventGenerated(e)},logEventReadyToSend:function(e){On.logEventReadyToSend(e)},logEventSent:function(e){On.logEventSent(e)},logPersistedEventSent:function(e,t){On.logEventSent(t,e)},logNetworkResponseCode:function(e){On.logNetworkResponseCode(e)},logPersistedNetworkResponseCode:function(e,t){var n;null===(n=On)||void 0===n||n.logNetworkResponseCode(t,e)},logFailedEvent:function(e,t,n,i){On.logFailedEvent(e,t,n,i)},logPersistedFailedEvent:function(e,t,n,i,r){On.logFailedEvent(t,n,i,r,e)},flush:function(){On.flush()},destroy:function(){On=void 0},isDestroyed:function(){return void 0===On},setCurrentContext:function(e){On.setCurrentContext(e)},updateAppState:function(e){On.updateAppState(e)}}}function Pn(e,t,n,i,r){return{fragmentNumber:t,firstEventNumber:n,isLastFragment:i,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:r.requestHeader,header:r.header}}function xn(){return{pageKey:"unknown",pageInstance:Ke("unknown")}}function Mn(e){return Array.isArray(e)?He(e):16===e.length?e:function(e){return"string"==typeof e&&!!e.match(Ge)}(e)?atob(e):He(function(e){return ke(e)}(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"}(Rn||(Rn={}));var Dn="PageViewEvent",Un=function(){function e(t){var n=this;le(this,e),he(this,"host",void 0),he(this,"queue",void 0),he(this,"preContextQueue",void 0),he(this,"debounceTimer",void 0),he(this,"unloadHandlers",void 0),he(this,"maxQueueSize",void 0),he(this,"flushDebounceTime",void 0),he(this,"trackingEventListeners",[]),he(this,"onHideHandler",(function(){n.forceFlush()})),he(this,"networkTransporter",void 0),he(this,"clientMonitoringConn",void 0),he(this,"clientSequenceNumberCounter",void 0),he(this,"isTimerRunning",void 0),he(this,"enableSequenceNumberLix",void 0),this.host=t,this.queue=[],this.preContextQueue=[],this.unloadHandlers=[];var i=t.batching;this.maxQueueSize=i&&i.maxSize||1,this.flushDebounceTime=i&&i.debounceTime||0,nt.on("internal:hide",this.onHideHandler),this.networkTransporter=new gn(t),this.isLixEnabled("pemberly.tracking.monitoring")&&t.clientMonitoringConfig&&!t.inactive&&(this.clientMonitoringConn=Nn(t)),this.enableSequenceNumberLix=this.isLixEnabled("tracking.data-loss-web.sequence-number"),this.enableSequenceNumberLix&&(this.getSequenceNumberFromIDB(),this.updateSequenceNumberOnExit(),this.isTimerRunning=!1)}return de(e,[{key:"checkAndEnablePersistentRetry",value:function(e){var t,n=(t=this.clientMonitoringConn,{onIntermediateResult:function(e,n){var i;if(t&&!t.isDestroyed())try{if(i=JSON.parse(n),!Array.isArray(i)||0===i.length)return;e.statusCode&&t.logNetworkResponseCode(e.statusCode),!0===e.drop&&i.forEach((function(n){var i,r=n.eventInfo.eventName,o=n.eventInfo.topicName||r,s="rawError"in e?e.rawError:"null",a=["type: ".concat(e.type),"statusCode: ".concat(e.statusCode||"null"),"drop: ".concat(String(e.drop)),"rawError: ".concat(s)].join(", ");t.logFailedEvent(Rn.UNKNOWN_EXECUTION_ERROR,{eventName:r,topicName:o},a,null!==(i=n.eventBody.header.clientMonitoringInstanceEventNumber)&&void 0!==i?i:-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 i=n[0].eventBody.header.clientMonitoringInstanceId,r=n.length;t.logPersistedEventSent(i,r)}catch(e){}},onResult:function(e,n){var i;if(t)try{if(i=JSON.parse(n),!Array.isArray(i)||0===i.length||!i[0].eventBody.header.clientMonitoringInstanceId)return;var r=i[0].eventBody.header.clientMonitoringInstanceId;e.statusCode&&t.logPersistedNetworkResponseCode(r,e.statusCode),!0===e.drop&&i.forEach((function(n){var i=n.eventInfo.eventName,o=n.eventInfo.topicName||i,s="rawError"in e?e.rawError:"null",a=["type: ".concat(e.type),"statusCode: ".concat(e.statusCode||"null"),"drop: ".concat(String(e.drop)),"rawError: ".concat(s)].join(", ");t.logPersistedFailedEvent(r,Rn.UNKNOWN_EXECUTION_ERROR,{eventName:i,topicName:o},a,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(Cn(e.id)));var n,i=this.host,r=i.api.Promise,o=i.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(),r.resolve(!0)):(this.flush(!0),r.resolve(!0))):(this.preContextQueue.push(t),r.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,nt.off("internal:hide",this.onHideHandler)}},{key:"forceFlush",value:function(){var e=this;this.populatePreContextQueue({pageInstance:Ke("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;Je("read").then((function(t){e.clientSequenceNumberCounter=t||0})).catch((function(e){nt.emit("internal:error",{tags:["core-web-tracking:sequence-number:idb-read"],reason:e})}))}},{key:"updateSequenceNumberToIDB",value:function(){Je("update",this.clientSequenceNumberCounter).catch((function(e){nt.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=Ye(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 i=this.host,r=i.appId,o=i.api,s={eventBody:t,eventInfo:"string"==typeof e?{appId:r,eventName:e,topicName:e}:o.assign({appId:r},e)};return n.length>0&&this.host.api.assign(s,{clientBreadcrumbs:n}),s}},{key:"getBreadcrumbs",value:function(e){return e.clientBreadcrumbs||[]}},{key:"getGenericEventBody",value:function(e){var t,n=this.host,i=n.appVersion,r=n.locale,o=n.api,s=o.location,a=o.document,c=o.assign,l=e.meta.context,u=l.pageKey,d=l.pageInstance,h=function(e){return"string"==typeof e?e===Dn:e.eventName===Dn}(e.id)&&(null===(t=e.body.requestHeader)||void 0===t?void 0:t.pageKey)||u,p=null;"string"!=typeof r&&null!==this.host.locale||(p=r);var f={interfaceLocale:p,pageKey:h,path:s.pathname+s.search,referer:a.referrer},m={pageInstance:d,time:e.meta.time,version:i};"number"==typeof this.clientSequenceNumberCounter&&c(m,{clientGlobalSequenceNumber:this.clientSequenceNumberCounter});var v={header:c(m,e.meta.header||{}),requestHeader:c(f,e.meta.requestHeader||{})},g=e.meta.clientMonitoringInstanceId,y=e.meta.clientMonitoringInstanceEventNumber;return g&&c(v.header,{clientMonitoringInstanceId:g,clientMonitoringInstanceEventNumber:y}),c(e.body,v)}},{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,i,r=[],o=[];t.forEach((function(t){var n=e.getGenericEventBody(t),i=e.getBreadcrumbs(t),s=e.envelop(t.id,n,i);e.trigger(s,t.meta);var a=s.eventInfo.eventName;"LixTreatmentsEvent"===a||"JavaScriptErrorEvent"===a?r.push(s):o.push(s),e.enableSequenceNumberLix&&"number"==typeof e.clientSequenceNumberCounter&&e.clientSequenceNumberCounter++})),this.host.inactive||(this.clientMonitoringConn&&(this.clientMonitoringConn.logEventSent(r.length+o.length),i=this.clientMonitoringConn,n={onResult:function(e,t){i&&!i.isDestroyed()&&(e.statusCode&&i.logNetworkResponseCode(e.statusCode),!0===e.drop&&t.forEach((function(t){var n=t.eventInfo.eventName,r=t.eventInfo.topicName||n,o="rawError"in e?e.rawError:"null",s=["type: ".concat(e.type),"statusCode: ".concat(e.statusCode||"null"),"drop: ".concat(String(e.drop)),"rawError: ".concat(o)].join(", ");null==i||i.logFailedEvent(Rn.UNKNOWN_EXECUTION_ERROR,{eventName:n,topicName:r},s,t.eventBody.header.clientMonitoringInstanceEventNumber||-1)})))}}),this.networkTransporter.sendPayloadFireForget(this.host.endpoint,r,void 0,n),this.networkTransporter.sendPayload(this.host.endpoint,o,void 0,n))}}}]),e}();var Bn,qn=function(){function e(t,n){le(this,e),this.clientBreadcrumbType=t,this.id=n}return de(e,[{key:"builder",get:function(){return function(){var e={},t=new Proxy({},{get:function(n,i){return"build"===i?function(){return e}:function(n){return e[i.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 Fn(e){if(!e)return{};var t=e.trk,n=!1,i=e.licu&&decodeURIComponent(e.licu);e.external_control&&(i="urn:li:externalControl:".concat(decodeURIComponent(e.external_control)),n=!0);var r=e.lipi&&function(e){var t=decodeURIComponent(e).split(";");if(t.length>1)return{pageUrn:t[0],trackingId:t[1]}}(e.lipi),o=r&&{pageInstance:r,pageKey:t}||t&&{pageKey:t};if(e.external_page&&e.external_page_instance){var s=decodeURIComponent(e.external_page);o={pageInstance:{pageUrn:"urn:li:externalPage:".concat(s),trackingId:e.external_page_instance},pageKey:s},n=!0}var a=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 a&&((o=o||{}).applicationInstance=a),{fromExternalApp:n||!!a,previousApplicationInstance:a,previousContext:o,previousControlId:e.lici&&decodeURIComponent(e.lici),previousControlUrn:i}}function jn(e){return"retryConfig"in e.host}!function(e){e.UNKNOWN="UNKNOWN",e.ME_NOTIFICATION="ME_NOTIFICATION",e.ME_NOTIFICATION_ACTION="ME_NOTIFICATION_ACTION"}(Bn||(Bn={}));var Hn,zn,Gn;!function(){function e(t,n){var i,r;if(le(this,e),he(this,"transporter",void 0),he(this,"delegate",void 0),he(this,"currentContext",void 0),he(this,"appState",void 0),he(this,"previousAppContext",void 0),he(this,"customTransporters",void 0),he(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 s=this.transporter.host.api.assign({},this.transporter.host);this.customTransporters[o]=new Un(this.transporter.host.api.assign(s,n.customTransporterHosts[o]))}"enabled"===(null===(i=(r=t.host).__getLixTreatment)||void 0===i?void 0:i.call(r,"pemberly.tracking.monitoring"))&&t.host.clientMonitoringConfig&&!t.host.inactive&&"location"in t.host.api&&(this.clientMonitoringConn=Nn(t.host))}de(e,[{key:"host",get:function(){return this.transporter.host}},{key:"checkAndEnablePersistentRetry",value:function(){jn(this.transporter)&&this.transporter.checkAndEnablePersistentRetry(this.delegate)}},{key:"flushAndClearPersistedEventsOnLogout",value:function(){this.forceFlush();var e=jn(this.transporter)?this.transporter.clearPersistedEventsOnLogout():null;return null!=e?e:this.host.api.Promise.resolve()}},{key:"getCurrentContext",value:function(){if(this.currentContext)return Ye(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]:{},i=this.navMetaFromSeed(e,Fn(t));if(this.setCurrentContext(i.to),!n.suppressEventsFiring)return this.fireNavEvents(i)}},{key:"setCurrentContext",value:function(e){var t;this.currentContext=Ye(e,this.host.api),null===(t=this.clientMonitoringConn)||void 0===t||t.setCurrentContext(Ye(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,i,r){return this.fireEvent("ControlInteractionEvent",(function(n){var o=We(n.pageKey,e),s={controlTrackingId:i,controlUrn:o,interactionType:t};return r&&r(o),s}),{context:n})}},{key:"fireEvent",value:function(e,t,n,i){if(!t){var r=Cn(e),o=void 0===t?"undefined":null===t?"null":ve(t),s='Firing tracking event "'.concat(r,'" with invalid body, you fired "').concat(o,'"');if(this.clientMonitoringConn){var a=this.clientMonitoringConn.logEventGenerated(r);this.clientMonitoringConn.logFailedEvent(Rn.MISSING_REQUIRED_PROPERTIES,e,s,a)}throw new Error(s)}var c=i||[];if(c.length>0){var l=c.map((function(e){return qn.toPointer(e)}));this.host.api.assign(t,{clientBreadcrumbPointers:l})}var u=c.length>0?this.generateEnvelopeWithBreadcrumbs(e,t,n,c):this.generateEnvelope(e,t,n);return this.fireEnvelope(u)}},{key:"generateEnvelopeWithBreadcrumbs",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:[],r=this.generateEnvelope(e,t,n),o=i.length>0?this.addBreadcrumbsToEnvelope(r,i):r;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(In(e.id)){var i=e.id;e.id={eventName:i,topicName:i,shouldAnonymizeMemberId:!0}}else e.id.shouldAnonymizeMemberId=!0;var r=this.delegate&&this.delegate.preTransporter?this.delegate.preTransporter(e):e;if(r){var o=r.meta.transporterKey,s=o?this.customTransporters[o]:this.transporter;if(!s&&o){var a=Cn(r.id),c="Could not find custom transporter: ".concat(o);if(this.clientMonitoringConn){var l=this.clientMonitoringConn.logEventGenerated(a);this.clientMonitoringConn.logFailedEvent(Rn.UNKNOWN_EXECUTION_ERROR,r.id,c,l)}throw new Error(c)}return s.fireEvent(r)}return this.host.api.Promise.resolve(!0)}},{key:"generatePageInstance",value:function(e,t){return Ke(e,t)}},{key:"firePVE",value:function(e,t,n){var i={pageType:"full",totalTime:0,trackingCode:this.getTrackingCode(),trackingInfo:{}},r=this.host.api.assign(i,t),o=this.generateEnvelope("PageViewEvent",r,{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),nt.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 We((t||this.currentContext||{pageKey:"unknown"}).pageKey,e)}},{key:"fireRawCIE",value:function(e,t,n,i){var r={controlTrackingId:i,controlUrn:e,interactionType:t};return{beacon:this.fireEvent("ControlInteractionEvent",r,{context:n}),controlUrn:e}}},{key:"generateNavigationEvent",value:function(e){var t=e.triggerId,n=e.triggerUrn,i=e.from;return{previousPageInstance:i&&i.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 i=t.fromExternalApp?{eventName:n,topicName:"InboundNavigationEvent"}:n;return{from:t.previousContext,navEventId:i,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,i=e.from,r=e.navEventId,o=this.generateEnvelope(r,t);o.meta.requestHeader.pageKey=n.pageKey;var s=i&&i.applicationInstance;return s&&(o.meta.header.clientApplicationInstance=s),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]:{},i={directive:n.directive,transporterKey:n.transporterKey,context:n.context||this.currentContext&&Ye(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:i}}}])}();function Kn(e){return e.split("").reduce((function(e,t){return(e<<5)-e+t.charCodeAt(0)|0}),0)}!function(){function e(t,n){var i,r=this;le(this,e),he(this,"core",void 0),he(this,"protocol",void 0),he(this,"throttleKeySet",new Set),he(this,"config",void 0),he(this,"reportTransporterError",(function(e){e.reason instanceof Error||(e.reason=new Error(e.reason||"An error occurred in the transporter")),r.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!==(i=null==n?void 0:n.throttleTime)&&void 0!==i?i:100},nt.on("internal:error",this.reportTransporterError)}de(e,[{key:"reportError",value:function(e){var t,n=this,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=r.callTreeId,s=void 0===o?"":o,a=r.responseHeaders,c=void 0===a?{}:a,l=e.message,u=e.name,d=e.stack,h=void 0===d?"":d,p=e.fileName,f=void 0===p?"":p,m=e.lineNumber,v=void 0===m?0:m,g=e.columnNumber,y=void 0===g?0:g,b=this.core.host,E=b.appId,_=b.appVersion,w=b.service,T=b.serviceInstance,S=b.treeID,k=void 0===S?"":S,I=b.api,C=I.Promise,A=I.location,O=A.host,R=A.pathname,L=A.search,N=A.hash,P=void 0===N?"":N;if(c){t={};var x=new Map;Object.keys(c).forEach((function(e){x.set(e.toLowerCase(),c[e])})),t.callTreeId=x.get("x-li-uuid"),t.microsoftEdgeReference=x.get("x-msedge-ref"),t.pointOfPresenceId=x.get("x-li-pop"),t.fabric=x.get("x-li-fabric")}var M=function(){return n.core.fireEvent("JavaScriptErrorEvent",(function(e){return{appId:E,e:{c:y,l:v,m:l,s:h,t:u,u:f},h:P,l:n.protocol,o:O,p:R,pageKey:e.pageKey,q:L,service:w,serviceInstance:T,serviceVersion:_,t:i,trackingID:e.pageInstance.trackingId,treeID:k,callTreeId:s,responseTraceHeaders:t}}))};if(this.config.throttleTime<0)return M();var D=Kn(u+l+h+i.join("")+s);return this.throttleKeySet.has(D)?C.resolve(!1):(this.throttleKeySet.add(D),setTimeout((function(){return n.throttleKeySet.delete(D)}),this.config.throttleTime),M())}},{key:"flush",value:function(){this.core.forceFlush()}},{key:"destroy",value:function(){this.core.destroy(),nt.off("internal:error",this.reportTransporterError)}}])}();var Wn=function(){function e(){le(this,e),he(this,"userTimingEntries",[]),he(this,"longTasks",[]),he(this,"resourceTimingEntries",[]),he(this,"cdnData",void 0)}return de(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(Yn),cdnData:this.cdnData}}}]),e}(),Vn=["resourceTreeId","name","entryType","startTime","duration","initiatorType","nextHopProtocol","redirectStart","redirectEnd","fetchStart","domainLookupStart","domainLookupEnd","connectStart","connectEnd","secureConnectionStart","requestStart","responseStart","responseEnd","transferSize","encodedBodySize","decodedBodySize","workerStart"];function Yn(e){return Vn.reduce((function(t,n){var i=e[n];return void 0!==i&&(t[n]=i),t}),{})}function Qn(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};zn=Object.assign(Object.assign({},n),t),Gn=function(e,t){return e.nodeType===Node.DOCUMENT_NODE?e:e===t.root?e.ownerDocument:e}(zn.root,n);var i=Xn(e,Hn.All,(function(){return Xn(e,Hn.Two,(function(){return Xn(e,Hn.One)}))}));if(i){var r=oi(function e(t,n){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{counter:0,visited:new Map},r=[];if(t.length>2&&t.length>zn.optimizedMinLength)for(var o=1;o<t.length-1;o++){if(i.counter>zn.maxNumberOfTries)return r;i.counter+=1;var s=pe(t);s.splice(o,1);var a=Zn(s);if(i.visited.has(a))return r;ei(s)&&si(s,n)&&(r.push(s),i.visited.set(a,!0),r=r.concat(e(s,n,i)))}return r}(i,e));return r.length>0&&(i=r[0]),Zn(i)}throw new Error("Selector was not found.")}function Xn(e,t,n){for(var i=null,r=[],o=e,s=0,a=function(){var e=ii(function(e){var t=e.getAttribute("id");return t&&zn.idName(t)?{name:"#"+hi(t,{isIdentifier:!0}),penalty:0}:null}(o))||ii.apply(void 0,pe(function(e){return Array.from(e.attributes).filter((function(e){return zn.attr(e.name,e.value)})).map((function(e){return{name:"["+hi(e.name,{isIdentifier:!0})+'="'+hi(e.value)+'"]',penalty:.5}}))}(o)))||ii.apply(void 0,pe(function(e){return Array.from(e.classList).filter(zn.className).map((function(e){return{name:"."+hi(e,{isIdentifier:!0}),penalty:1}}))}(o)))||ii(function(e){var t=e.tagName.toLowerCase();return zn.tagName(t)?{name:t,penalty:2}:null}(o))||[{name:"*",penalty:3}],a=function(e){var t=e.parentNode;if(!t)return null;var n=t.firstChild;if(!n)return null;for(var i=0;n&&(n.nodeType===Node.ELEMENT_NODE&&i++,n!==e);)n=n.nextSibling;return i}(o);if(t===Hn.All)a&&(e=e.concat(e.filter(ni).map((function(e){return ti(e,a)}))));else if(t===Hn.Two)e=e.slice(0,1),a&&(e=e.concat(e.filter(ni).map((function(e){return ti(e,a)}))));else if(t===Hn.One){var c=ae(e=e.slice(0,1),1)[0];a&&ni(c)&&(e=[ti(c,a)])}var l,u=ce(e);try{for(u.s();!(l=u.n()).done;)l.value.level=s}catch(e){u.e(e)}finally{u.f()}if(r.push(e),r.length>=zn.seedMinLength&&(i=Jn(r,n)))return"break";o=o.parentElement,s++};o&&o!==zn.root.parentElement&&"break"!==a(););return i||(i=Jn(r,n)),i}function Jn(e,t){var n=oi(function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];if(t.length>0){var i,r=[],o=ce(t[0]);try{for(o.s();!(i=o.n()).done;){var s=i.value;r=r.concat(e(t.slice(1,t.length),n.concat(s)))}}catch(t){o.e(t)}finally{o.f()}return r}return[n]}(e));if(n.length>zn.threshold)return t?t():null;var i,r=ce(n);try{for(r.s();!(i=r.n()).done;){var o=i.value;if(ei(o))return o}}catch(e){r.e(e)}finally{r.f()}return null}function Zn(e){for(var t=e[0],n=t.name,i=1;i<e.length;i++){var r=e[i].level||0;n=t.level===r-1?"".concat(e[i].name," > ").concat(n):"".concat(e[i].name," ").concat(n),t=e[i]}return n}function $n(e){return e.map((function(e){return e.penalty})).reduce((function(e,t){return e+t}),0)}function ei(e){switch(Gn.querySelectorAll(Zn(e)).length){case 0:throw new Error("Can't select any node with this selector: ".concat(Zn(e)));case 1:return!0;default:return!1}}function ti(e,t){return{name:e.name+":nth-child(".concat(t,")"),penalty:e.penalty+1}}function ni(e){return"html"!==e.name&&!e.name.startsWith("#")}function ii(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var i=t.filter(ri);return i.length>0?i:null}function ri(e){return null!=e}function oi(e){return Array.from(e).sort((function(e,t){return $n(e)-$n(t)}))}function si(e,t){return Gn.querySelector(Zn(e))===t}!function(e){e[e.All=0]="All",e[e.Two=1]="Two",e[e.One=2]="One"}(Hn||(Hn={}));var ai,ci=/[ -,\.\/:-@\[-\^`\{-~]/,li=/[ -,\.\/:-@\[\]\^`\{-~]/,ui=/(^|\\+)?(\\[A-F0-9]{1,6})\x20(?![a-fA-F0-9\x20])/g,di={escapeEverything:!1,isIdentifier:!1,quotes:"single",wrap:!1};function hi(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=Object.assign(Object.assign({},di),t);"single"!=n.quotes&&"double"!=n.quotes&&(n.quotes="single");for(var i="double"==n.quotes?'"':"'",r=n.isIdentifier,o=e.charAt(0),s="",a=0,c=e.length;a<c;){var l=e.charAt(a++),u=l.charCodeAt(0),d=void 0;if(u<32||u>126){if(u>=55296&&u<=56319&&a<c){var h=e.charCodeAt(a++);56320==(64512&h)?u=((1023&u)<<10)+(1023&h)+65536:a--}d="\\"+u.toString(16).toUpperCase()+" "}else d=n.escapeEverything?ci.test(l)?"\\"+l:"\\"+u.toString(16).toUpperCase()+" ":/[\t\n\f\r\x0B]/.test(l)?"\\"+u.toString(16).toUpperCase()+" ":"\\"==l||!r&&('"'==l&&i==l||"'"==l&&i==l)||r&&li.test(l)?"\\"+l:l;s+=d}return r&&(/^-[-\d]/.test(s)?s="\\-"+s.slice(1):/\d/.test(o)&&(s="\\3"+o+" "+s.slice(1))),s=s.replace(ui,(function(e,t,n){return t&&t.length%2?e:(t||"")+n})),!r&&n.wrap?i+s+i:s}function pi(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(e&&"function"==typeof e.now&&(e.timeOrigin||e.timing)){var n,i=e.now();return n=!e.timing&&t?Math.floor(e.timeOrigin):e.timing.navigationStart,Math.round(i+n)}return Date.now()}function fi(e){var t=e||performance;return Math.round(t.now())}function mi(e){if(!e)return"null";if(e.nodeType===Node.ELEMENT_NODE)try{return Qn(e,{idName:function(e){return 0!==e.indexOf("ember")}})}catch(e){return"serialization_error"}var t=mi(e.parentElement||void 0);return"".concat(t," > nodeType(").concat(e.nodeType,")")}function vi(e,t,n){var i=[];return e&&"function"==typeof e.getEntriesByType&&(t["user-timing-measure-enabled"]&&e.getEntriesByType("measure").forEach((function(e){i.push({entryType:"MEASURE",name:e.name,startTime:e.startTime,duration:e.duration})})),t["user-timing-mark-enabled"]&&e.getEntriesByType("mark").forEach((function(e){i.push({entryType:"MARK",name:e.name,startTime:e.startTime,duration:e.duration})})),n&&(e.clearMeasures(),e.clearMarks())),i}function gi(e){var t=[];return e.forEach((function(e){return t.push(e)})),t}var yi,bi=function(){function e(t){le(this,e),he(this,"hostApis",void 0),he(this,"hostnameProperties",void 0),he(this,"usedHostnames",void 0),he(this,"abortController",void 0),he(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 de(e,[{key:"clearUsedHostnames",value:function(){this.usedHostnames=new Set}},{key:"getPresentData",value:function(){var e=this;return Xe(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,i=n.AbortController,r=n.Promise,o=Qe(Xe(this.pendingPromises),r),s=setTimeout((function(){t.abortController.abort(),t.abortController=new i}),e);return o.then((function(){return clearTimeout(s),t.getPresentData()}))}},{key:"inspectEntryForCdnData",value:function(e){var t=this;if(!(e.name.indexOf(".licdn.")<0)){var n,i,r=this.hostApis.assign,o=(n=e.name,i=this.hostApis.document,(ai=ai||i.createElement("a")).href=n,ai.hostname);if(this.usedHostnames.add(o),!this.hostnameProperties[o]&&!this.isResourcePossiblyFromCache(e)){var s=this.fetchCdnFromUrl(e.name).then((function(e){var n=r({hostname:o},e);return t.hostnameProperties[o]||(t.hostnameProperties[o]=n),t.pendingPromises.delete(s),n}));this.pendingPromises.add(s)}}}},{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}(),Ei=function(){function e(t,n,i,r){le(this,e),he(this,"hostApis",void 0),he(this,"statics",void 0),he(this,"options",void 0),he(this,"allowTimingOrigin",void 0),he(this,"collectResourceTimings",void 0),he(this,"collectCdnData",void 0),he(this,"perfObserver",void 0),he(this,"renderTimings",new Map),he(this,"urlToTreeId",new Map),he(this,"cdnDataProvider",void 0),he(this,"observables",new Wn),this.hostApis=t,this.statics=n,this.options=i,this.allowTimingOrigin=r,this.collectResourceTimings=i["enable-rs-timing"],this.collectCdnData=i["enable-cdn-tracking"],this.collectCdnData&&(this.cdnDataProvider=new bi(t))}return de(e,[{key:"recordTreeId",value:function(e,t){this.collectResourceTimings&&this.urlToTreeId.set(function(e,t){return(ai=ai||t.createElement("a")).href=e,ai.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:pi(this.hostApis.performance,this.allowTimingOrigin)})}},{key:"recordRenderEnd",value:function(e){var t=this.renderTimings.get(e);t&&(t.renderEnd=t.renderEnd||pi(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,i=e.immediate,r=this.collectSynchronousData(n);if(i)return r;var o=this.collectAsynchronousData();return"then"in o?o.then((function(e){return(0,t.hostApis.assign)(r,e),r})):r}},{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,i=t.PerformanceObserver,r=Object.create(null);return this.statics.pageLoadMode=e?"INITIAL":"PARTIAL",i||(this.observables.userTimingEntries=vi(this.hostApis.performance,this.options,!0),this.collectResourceTimings&&this.processNewResourceTimings()),this.observables.attachTreeIds(this.urlToTreeId),this.urlToTreeId.clear(),n(r,this.observables.getData(),this.snapshot,this.statics),e&&n(r,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 i=e.timing,r=e.navigation;return i&&r?(t.navigationTimingApi=!0,_i.forEach((function(e){e in i&&(t[e]=i[e])})),t.navigationType=r.type,t.redirectCount=r.redirectCount):t.navigationTimingApi=!1,t}(this.hostApis.performance)),n(r,this.collectAsynchronousData(!0)),r}},{key:"collectAsynchronousData",value:function(e){var t=this,n={cdnData:[],usedCDN:this.extractUsedCDN([])};if(e){if(this.collectCdnData){var i=this.cdnDataProvider.getPresentData();n.cdnData=i,n.usedCDN=this.extractUsedCDN(i)}return n}var r=[];return this.collectCdnData&&r.push(this.cdnDataProvider.getDataWhenReady(this.options["async-plugins-timeout"]).then((function(e){n.cdnData=e,n.usedCDN=t.extractUsedCDN(e)}))),r.length>0?Qe(r,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,i=e.name,r=e.startTime,o=e.duration;"resource"===n?t.processSingleResourceTiming(e):"mark"===n?t.observables.userTimingEntries.push({entryType:"MARK",name:i,startTime:r,duration:o}):"measure"===n?t.observables.userTimingEntries.push({entryType:"MEASURE",name:i,startTime:r,duration:o}):"longtask"===n&&t.observables.longTasks.push({duration:o,name:i,startTime:r})}))})),this.observables.userTimingEntries=vi(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:gi(this.renderTimings),networkInformationMetrics:wi(this.hostApis.connection)};return this.renderTimings.clear(),e}}]),e}(),_i=["loadEventEnd","loadEventStart","domComplete","domContentLoadedEventEnd","domContentLoadedEventStart","domInteractive","domLoading","responseEnd","responseStart","requestStart","secureConnectionStart","connectEnd","connectStart","domainLookupEnd","domainLookupStart","fetchStart","redirectEnd","redirectStart","unloadEventEnd","unloadEventStart","navigationStart"];function wi(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"}(yi||(yi={}));var Ti=(he(se={},"web-ui-framework","EMBER"),he(se,"app-id","linkedin.rum.tracking"),he(se,"app-version","unknown"),he(se,"is-single-page-app",!0),he(se,"user-timing-mark-enabled",!1),he(se,"user-timing-measure-enabled",!0),he(se,"beacon-source","apps"),he(se,"enable-rs-timing",!0),he(se,"enable-cdn-tracking",!1),he(se,"async-plugins-timeout",5e3),he(se,"beacon-timeout",3e4),he(se,"enable-memory-measurement",!1),he(se,"pageKeyPrefix",""),se),Si=function(){function e(t,n,i){le(this,e),he(this,"featureName",void 0),he(this,"trackingCore",void 0),he(this,"rumConfig",void 0),he(this,"observing",!1),he(this,"basePageTreeId",void 0),he(this,"startPageInstance",void 0),he(this,"startMemory",void 0),he(this,"reportTimeouts",[]),this.featureName=t,this.trackingCore=n,this.rumConfig=i}return de(e,[{key:"startObserving",value:function(){var t,n=this,i=this.getMemory();i&&!this.observing&&(this.basePageTreeId=this.trackingCore.host.treeID||"",this.startPageInstance=(null===(t=this.trackingCore.getCurrentContext())||void 0===t?void 0:t.pageInstance)||Ke("unknown"),this.startMemory=i,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:fi(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]}})),i=t.usedJSHeapSize-this.startMemory.usedJSHeapSize;return n.push({name:(i<0?"usedJSHeapSizeDecrease":"usedJSHeapSizeIncrease")+e,startTime:Math.abs(i)},{name:"utilization"+e,startTime:Math.round(t.usedJSHeapSize/t.totalJSHeapSize*100)}),n}},{key:"getMemory",value:function(){return this.trackingCore.host.api.performance.memory}}]),e}();he(Si,"checkpoints",[1,3,10,30,90,180,300]);var ki,Ii,Ci,Ai,Oi,Ri=de((function e(t,n,i){le(this,e),he(this,"webUIFramework",void 0),he(this,"timeSource",void 0),he(this,"isSinglePageApp",void 0),he(this,"appRenderMode",void 0),he(this,"isAppRenderFailed",void 0),he(this,"pageLoadMode","INITIAL"),he(this,"isSSL",void 0),he(this,"treeId",void 0),he(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:"===i.api.location.protocol?1:0,this.treeId=i.treeID,this.isFromServiceWorker=i.isFromServiceWorker})),Li=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)}},Ni=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){}},Pi=function(e,t){var n=function n(i){"pagehide"!==i.type&&"hidden"!==document.visibilityState||(e(i),t&&(removeEventListener("visibilitychange",n,!0),removeEventListener("pagehide",n,!0)))};addEventListener("visibilitychange",n,!0),addEventListener("pagehide",n,!0)},xi=function(e){addEventListener("pageshow",(function(t){t.persisted&&e(t)}),!0)},Mi=function(e,t,n){var i;return function(r){t.value>=0&&(r||n)&&(t.delta=t.value-(i||0),(t.delta||void 0===i)&&(i=t.value,e(t)))}},Di=-1,Ui=function(){return"hidden"===document.visibilityState?0:1/0},Bi=function(){Pi((function(e){var t=e.timeStamp;Di=t}),!0)},qi=function(){return Di<0&&(Di=Ui(),Bi(),xi((function(){setTimeout((function(){Di=Ui(),Bi()}),0)}))),{get firstHiddenTime(){return Di}}},Fi=!1,ji=-1,Hi=function(e,t){Fi||(function(e,t){var n,i=qi(),r=Li("FCP"),o=function(e){"first-contentful-paint"===e.name&&(a&&a.disconnect(),e.startTime<i.firstHiddenTime&&(r.value=e.startTime,r.entries.push(e),n(!0)))},s=window.performance&&performance.getEntriesByName&&performance.getEntriesByName("first-contentful-paint")[0],a=s?null:Ni("paint",o);(s||a)&&(n=Mi(e,r,t),s&&o(s),xi((function(i){r=Li("FCP"),n=Mi(e,r,t),requestAnimationFrame((function(){requestAnimationFrame((function(){r.value=performance.now()-i.timeStamp,n(!0)}))}))})))}((function(e){ji=e.value})),Fi=!0);var n,i=function(t){ji>-1&&e(t)},r=Li("CLS",0),o=0,s=[],a=function(e){if(!e.hadRecentInput){var t=s[0],i=s[s.length-1];o&&e.startTime-i.startTime<1e3&&e.startTime-t.startTime<5e3?(o+=e.value,s.push(e)):(o=e.value,s=[e]),o>r.value&&(r.value=o,r.entries=s,n())}},c=Ni("layout-shift",a);c&&(n=Mi(i,r,t),Pi((function(){c.takeRecords().map(a),n(!0)})),xi((function(){o=0,ji=-1,r=Li("CLS",0),n=Mi(i,r,t)})))},zi={passive:!0,capture:!0},Gi=new Date,Ki=function(e,t){ki||(ki=t,Ii=e,Ci=new Date,Yi(removeEventListener),Wi())},Wi=function(){if(Ii>=0&&Ii<Ci-Gi){var e={entryType:"first-input",name:ki.type,target:ki.target,cancelable:ki.cancelable,startTime:ki.timeStamp,processingStart:ki.timeStamp+Ii};Ai.forEach((function(t){t(e)})),Ai=[]}},Vi=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(){Ki(e,t),r()},i=function(){r()},r=function(){removeEventListener("pointerup",n,zi),removeEventListener("pointercancel",i,zi)};addEventListener("pointerup",n,zi),addEventListener("pointercancel",i,zi)}(t,e):Ki(t,e)}},Yi=function(e){["mousedown","keydown","touchstart","pointerdown"].forEach((function(t){return e(t,Vi,zi)}))},Qi=function(e,t){var n,i=qi(),r=Li("FID"),o=function(e){e.startTime<i.firstHiddenTime&&(r.value=e.processingStart-e.startTime,r.entries.push(e),n(!0))},s=Ni("first-input",o);n=Mi(e,r,t),s&&Pi((function(){s.takeRecords().map(o),s.disconnect()}),!0),s&&xi((function(){var i;r=Li("FID"),n=Mi(e,r,t),Ai=[],Ii=-1,ki=null,Yi(addEventListener),i=o,Ai.push(i),Wi()}))},Xi={},Ji=function(e,t){var n,i=qi(),r=Li("LCP"),o=function(e){var t=e.startTime;t<i.firstHiddenTime&&(r.value=t,r.entries.push(e)),n()},s=Ni("largest-contentful-paint",o);if(s){n=Mi(e,r,t);var a=function(){Xi[r.id]||(s.takeRecords().map(o),s.disconnect(),Xi[r.id]=!0,n(!0))};["keydown","click"].forEach((function(e){addEventListener(e,a,{once:!0,capture:!0})})),Pi(a,!0),xi((function(i){r=Li("LCP"),n=Mi(e,r,t),requestAnimationFrame((function(){requestAnimationFrame((function(){r.value=performance.now()-i.timeStamp,Xi[r.id]=!0,n(!0)}))}))}))}},Zi=["LCP","FID","CLS"],$i={LCP:"LargestContentfulPaint",FID:"FirstInputDelay",CLS:"CumulativeLayoutShift"},er={},tr=function(){var e;if(!yn)return"";var t=window.performance,n=void 0;if("function"==typeof(null==t?void 0:t.getEntriesByType)){var i,r=null===(i=window.performance)||void 0===i?void 0:i.getEntriesByType("navigation");(null==r?void 0:r.length)>0&&(n=r[0])}return(null===(e=n)||void 0===e?void 0:e.name)||window.location.href}(),nr=!1,ir=[],rr={LCP:"largest-contentful-paint",FID:"first-input",CLS:"layout-shift"};function or(){var e=!0===window.__test__resetWebVitalsState;if(!nr||e){e&&(ir=[]),Zi.forEach(sr);var t=Symbol();Oi=t,[Ji,Qi,Hi].forEach((function(e){return e(ar.bind(null,t),!0)})),[Ji,Qi,Hi].forEach((function(e){return e(cr.bind(null,t))})),nr=!0}}function sr(e){er[e]={name:e,value:-1,updateHistory:[]};var t=rr[e];"undefined"!=typeof PerformanceObserver&&void 0!==PerformanceObserver.supportedEntryTypes&&"string"==typeof t&&PerformanceObserver.supportedEntryTypes.indexOf(t)>-1||(er[e].value=-2)}function ar(e,t){if(e===Oi){var n=er[t.name],i=fi();n&&(n.updateHistory.push({time:i,data:t}),n.value=t.value),ir.forEach((function(e){return e(t,i,!1)}))}}function cr(e,t){e===Oi&&ir.forEach((function(e){return e(t,fi(),!0)}))}var lr=function(){function e(t,n){le(this,e),he(this,"basePageTreeId",void 0),he(this,"basePageKey",void 0),he(this,"observing",!1),he(this,"appContextMap",new Map),he(this,"rumConfig",void 0),he(this,"trackingCore",void 0),this.trackingCore=t,this.rumConfig=n}return de(e,[{key:"startObserving",value:function(){var e,t,n=this;or(),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",Zi.forEach((function(e){var t;-2===(null===(t=er[e])||void 0===t?void 0:t.value)&&n.reportMetric(e)})),t=this.onMetricUpdate.bind(this),ir.push(t))}},{key:"stopObserving",value:function(){this.observing=!1}},{key:"onMetricUpdate",value:function(e,t,n){var i;this.observing&&(n?this.reportMetric(e.name):this.appContextMap.set(t,{time:t,url:location.href,pageKey:null===(i=this.trackingCore.getCurrentContext())||void 0===i?void 0:i.pageKey}))}},{key:"reportMetric",value:function(e){var t=er[e],n={name:$i[e]||e};"CLS"===e?n.doubleValue=t.value:n.longValue=Math.round(t.value);var i=er[e];if(i){var r=function(e,t,n,i,r){var o={basePageTreeId:e,basePageKey:t,basePageUrl:tr},s=null;switch(n.name){case"LCP":s=function(e,t){var n;if(0===e.updateHistory.length)return null;var i=e.updateHistory[e.updateHistory.length-1],r=i.data.entries,o=r[r.length-1],s={pageKey:(null===(n=t.get(i.time))||void 0===n?void 0:n.pageKey)||"_unknown",element:mi(o.element),renderTime:Math.round(o.renderTime),loadTime:Math.round(o.loadTime),size:Math.round(o.size)};return o.url&&(s.url=o.url),s}(n,i);break;case"FID":s=function(e,t){var n;if(0===e.updateHistory.length)return null;var i=e.updateHistory[e.updateHistory.length-1],r=i.data.entries,o=r[r.length-1];return{pageKey:(null===(n=t.get(i.time))||void 0===n?void 0:n.pageKey)||"_unknown",processingStart:Math.round(o.processingStart),processingEnd:Math.round(o.processingEnd),target:mi(o.target)}}(n,i);break;case"CLS":s=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 i=n.reduce((function(e,t){return e&&e.value>t.value?e:t})),r=e.updateHistory.find((function(e){return e.data.entries.includes(i)})),o=null;i&&i.sources&&i.sources.length&&(o=i.sources.reduce((function(e,t){return e.node&&e.previousRect.width*e.previousRect.height>t.previousRect.width*t.previousRect.height?e:t})));var s,a=t.get(r.time);return o&&a?{shiftCount:n.length,"largestShift.value":i.value,"largestShift.hadRecentInput":i.hadRecentInput,"largestShift.largestSource.node":mi(null===(s=o)||void 0===s?void 0:s.node),"largestShift.pageKey":a.pageKey||"_unknown","largestShift.url":a.url,"largestShift.startTime":Math.round(i.startTime)}:null}(n,i)}if(s){var a={};return r(a,o,s),a}return o}(this.basePageTreeId,this.basePageKey,i,this.appContextMap,this.trackingCore.host.api.assign);n.metadata=function(e){var t={};return Object.keys(e).forEach((function(n){var i=e[n];t[n]="string"==typeof i?i:JSON.stringify(i)})),t}(r)}var o={scope:{scopeType:"APPLICATION_INSTANCE",scopeKey:this.basePageTreeId},metrics:[n]};this.trackingCore.fireEvent({appId:this.rumConfig["app-id"],eventName:"ClientPerfMetricsEvent"},o)}}]),e}();!function(){function e(t,n,i){var r,o;le(this,e),he(this,"core",void 0),he(this,"config",void 0),he(this,"collector",void 0),he(this,"boomerangStart",-1),he(this,"webVitalsObserver",void 0),he(this,"appMemoryObserver",void 0),he(this,"pageMemoryObserver",void 0),he(this,"liveTokens",new Set),he(this,"stateWM",new WeakMap),he(this,"activeToken",void 0),he(this,"isInitial",void 0),he(this,"beforeHideHandlerBound",this.beforeHideHandler.bind(this)),this.core=i,this.config=function(e,t){for(var n in e)void 0!==t[n]&&(e[n]=t[n]);return e}(i.host.api.assign({},Ti),n);var s="enabled"===(null===(r=(o=this.core.host).__getLixTreatment)||void 0===r?void 0:r.call(o,"pemberly.tracking.time-origin-epoch-time"));this.collector=new Ei(i.host.api,new Ri(t,this.config,i.host),this.config,s),this.collector.startObserving(),nt.before("internal:hide",this.beforeHideHandlerBound)}de(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,i;this.activeToken&&this.abort(this.activeToken),this.flushEndedSessions(),this.isInitial=void 0===this.isInitial,this.isInitial||this.collector.reset();var r,o=Object.create(null),s="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:pi(this.core.host.api.performance,s)}),(this.config["enable-memory-measurement"]||"enabled"===(null===(n=(i=this.core.host).__getLixTreatment)||void 0===n?void 0:n.call(i,"pemberly.tracking.rum-memory-measurement")))&&(null===(r=this.pageMemoryObserver)||void 0===r||r.stopObserving(),this.pageMemoryObserver=new Si("page-memory",this.core,this.config),this.pageMemoryObserver.startObserving(),void 0===this.appMemoryObserver&&(this.appMemoryObserver=new Si("application-memory",this.core,this.config),this.appMemoryObserver.startObserving())),o}},{key:"observeWebVitals",value:function(){void 0===this.webVitalsObserver&&(this.webVitalsObserver=new lr(this.core,this.config),this.webVitalsObserver.startObserving())}},{key:"end",value:function(e){var t,n,i=this,r=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 s=this.stateWM.get(e),a="enabled"===(null===(t=(n=this.core.host).__getLixTreatment)||void 0===t?void 0:t.call(n,"pemberly.tracking.time-origin-epoch-time")),c=pi(this.core.host.api.performance,a);s.endProps={renderCompleteTime:c,isImpactedByHiddenWindow:r,rumKey:o};var l=this.activeToken;s.fireRumEventTimeout=setTimeout((function(){var e=i.collector.collect({isInitial:s.isInitial});"then"in e?e.then((function(e){i.fireRumEvent(e,l)})):i.fireRumEvent(e,l)}),this.config["beacon-timeout"]),this.activeToken=void 0}else nt.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;nt.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 i=e.collector.collect({isInitial:n.isInitial,immediate:!0});e.fireRumEvent(i,t)}}))}},{key:"fireRumEvent",value:function(e,t){if(this.stateWM.get(t)){var n=this.core.host.api.assign,i=this.stateWM.get(t),r=i.startTime,o=i.endProps;if(o){var s=o.renderCompleteTime,a=o.isImpactedByHiddenWindow,c=o.rumKey,l=this.boomerangStart=e.navigationStart||this.boomerangStart,u=e.navigationStart||r,d=s-u,h=this.config["app-version"];this.core.fireEvent({appId:this.config["app-id"],eventName:"RealUserMonitoringEvent"},(function(t){return n({pageKey:c||t.pageKey,isImpactedByHiddenWindow:a,appVersion:h,timeDone:d,navigationStart:u,boomerangStart:l,renderCompleteTime:s},e)})),i.fireRumEventTimeout&&clearTimeout(i.fireRumEventTimeout),this.liveTokens.delete(t),this.stateWM.delete(t)}else this.abort(t)}}},{key:"beforeHideHandler",value:function(){this.flushEndedSessions()}}])}();var ur="undefined"!=typeof window&&"undefined"!=typeof performance,dr="undefined"!=typeof location&&-1!==location.search.indexOf("_LI_MEASURE_DEBUG");function hr(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"ajax",n=arguments.length>2?arguments[2]:void 0;e.fireTrackingEvent("PageViewEvent",pr(n,t))}function pr(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"ajax";const n=_(document),i=w(document),r=oe();let o={};return r&&(o.theme=r.toUpperCase()),i&&(o.interfaceLocale=i),e&&(o.pageKey=e),{header:{},requestHeader:o,pageType:t,trackingInfo:{clientTimestamp:Date.now(),pageTag:n}}}function fr(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const t=e.state&&e.state.currentPageInstance||{};let{trackingId:n}=t;return n&&!mr(n)&&e.convertUuidTrackingIdToBase64&&(n=e.convertUuidTrackingIdToBase64(n)),"".concat(t.pageUrn,";").concat(n)}function mr(e){return"string"==typeof e&&"=="===e.slice(-2)}!function(){function e(t,n){le(this,e),he(this,"featureKey",void 0),he(this,"productName",void 0),he(this,"endPageInstance",void 0),he(this,"startPageInstance",void 0),he(this,"isCanceled",!1),he(this,"featureIdentifier",void 0),he(this,"name",void 0),he(this,"startTime",void 0),he(this,"duration",void 0),he(this,"marks",[]),he(this,"spanStarts",new Map),he(this,"spans",[]),he(this,"isSpanContainer",!1),he(this,"basePageTreeId",void 0),he(this,"isClosed",!1),this.featureKey=t,this.productName=n;var i=n?"::".concat(n):"";this.featureIdentifier="".concat(t).concat(i),this.name=t}de(e,[{key:"start",value:function(e){this.startPageInstance=e,ur&&(this.startTime=fi(),dr&&performance.mark("LI:".concat(this.featureIdentifier,"-start")))}},{key:"mark",value:function(e){ur&&(this.marks.push({name:e,startTime:fi()}),dr&&(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){ur&&(this.spanStarts.set(e,fi()),dr&&performance.mark("LI:".concat(this.featureIdentifier,"-span-").concat(e,"-start")))}},{key:"spanEnd",value:function(e,t){if(ur&&this.spanStarts.has(e)){var n=this.spanStarts.get(e);this.spans.push({name:t||e,startTime:n,duration:fi()-n}),dr&&(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,ur&&(this.duration=fi()-this.startTime,dr&&!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(ur){var e={name:this.featureKey,startTime:this.startTime,duration:this.isSpanContainer?-1:this.duration,basePageTreeId:this.basePageTreeId,startPageInstance:this.startPageInstance||Ke("unknown"),marks:this.marks,spans:this.spans};return this.productName&&(e.productName=this.productName),e}}},{key:"check",value:function(){if(ur){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{ENTER:vr,ESCAPE:gr}=k;class yr{constructor(e){let{enablePageViewTracking:t=!1,shouldHideModal:n=(()=>!1),triggerByOutletEl:i=!0,shouldMoveToTopContainer:r=!0,events:o={},focusElement:s,pageKey:a}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!e)throw new Error("No modal element passed in");this._el=e,this._parentNode=this._el.parentNode,r&&(this._topLevelContainer=this._getTopLevelContainer()),this._wrapperEl=this._el.querySelector(".".concat("modal__wrapper")),this._overlayEl=this._el.querySelector(".".concat("modal__overlay")),o&&(this._events=o),i&&(this._outletEls=this._getOutletEls()),this._exitButtonEl=this._el.querySelector(".".concat("modal__dismiss")),this._onKeyDownEvent=e=>this._onKeyDown(e),this._enablePageViewTracking=t,this._pageKey=a,this._shouldHideModal=n,this._shouldMoveToTopContainer=r;this._el.querySelector("[id='".concat("modalNoDismiss","']"))&&(this._isModalNonDismissible=!0),this._focusElement=s,i&&this._outletEls.forEach(e=>{e.addEventListener("click",()=>this.open())}),this._isModalNonDismissible||(this._exitButtonEl&&this._exitButtonEl.addEventListener("click",()=>this.close()),this._overlayEl.addEventListener("click",this._handleOverlayClick.bind(this))),this._focusTrap=new F(this._wrapperEl)}_getOutletEls(){const e=this._el.dataset.outlet,t=[...("default-outlet"===e?this._parentNode:document).querySelectorAll('[data-modal="'.concat(e,'"]'))];if(!t.length)throw new Error("No outlet was found with a data-modal attribute equal to the provided dataCustomOutlet param ".concat(e));return t}_getTopLevelContainer(){const e=document.querySelector(".".concat("top-level-modal-container"));if(!e){const e=document.createElement("div");return e.className="top-level-modal-container",document.body.appendChild(e)}return e}_handleOverlayClick(e){e.target===this._wrapperEl||this._wrapperEl.contains(e.target)||this.close()}_onKeyDown(e){const t=C(e.key),n=t===vr&&document.activeElement===this._exitButtonEl;(t===gr||n)&&(this._isModalNonDismissible||this.close(),e.preventDefault())}open(){let{focusElement:e}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!this._shouldHideModal())return this._focusElement=e||this._focusElement,this._previouslyFocusedEl=document.activeElement,this._overlayEl.classList.add("modal__overlay--visible"),this._shouldMoveToTopContainer&&this._topLevelContainer.appendChild(this._el),this.noScroll(),document.addEventListener("keydown",this._onKeyDownEvent),m(this._el,"open"),this._wrapperEl&&this._wrapperEl.focus(),this._focusTrap.init(),this._enablePageViewTracking&&window.tracking?window.tracking.then(e=>{hr(e,"ajax",this._pageKey||"".concat(this._el.id))}):(m(this._wrapperEl,"afterOpen"),Promise.resolve());m(this._el,"didNotOpen")}async close(){var e,t;this._events.onBeforeClose&&await(null===(e=this._events)||void 0===e||null===(t=e.onBeforeClose)||void 0===t?void 0:t.call(e,this._wrapperEl));this._overlayEl.classList.remove("modal__overlay--visible"),this._shouldMoveToTopContainer&&this._parentNode.appendChild(this._el),this.removeNoScroll(),document.removeEventListener("keydown",this._onKeyDownEvent),m(this._el,"close"),setTimeout(()=>{var e;(null===(e=this._focusElement)||void 0===e?void 0:e.focus())||this._previouslyFocusedEl.focus()},50),this._focusTrap.tearDown()}noScroll(){document.body.classList.add("overflow-hidden")}removeNoScroll(){document.body.classList.remove("overflow-hidden")}}function br(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 Er=/ /g,_r=/[\s\u0000<>"]|%00/,wr=/\\/,Tr=/([.]|%2e){2}/i;let Sr=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 kr(e){let t;if("string"!=typeof e)return br("jSecure Warning: url must be a string","error"),"invalid://";if(t=e.trim(),t.indexOf(" ")>-1&&(br("jSecure Warning: url should not contain spaces: "+e,"warn"),t=t.replace(Er,"+")),!Sr.test(t))return br("jSecure Error: URL should be absolute with allowed schemas, relative, a hash fragment or query string. "+e,"error"),"invalid://";if(_r.test(t))return br("jSecure Error: not valid url character found in url: "+e,"error"),"invalid://";let n,i=t.split("?")[0],r=!1;try{n=decodeURI(i)}catch(e){r=!0}return r?(br("jSecure Error: malformed url path detected: "+i),"invalid://"):wr.test(i)||Tr.test(i)||Tr.test(n)?(br("jSecure Error: malicious data found in url path: "+i,"error"),"invalid://"):e}const Ir={redirect(e){window&&(window.location.href=e)}};function Cr(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:window;return e.innerWidth<=769}function Ar(e){return e.scrollHeight>e.offsetHeight}function Or(e,t){const n=a(e);for(let e=0;e<n.length;e++)n[e]&&1===n[e].nodeType&&t(n[e])}function Rr(e){Nr([e])}function Lr(e){Pr([e])}function Nr(e){Or(e,e=>{e.classList.add("hidden"),e.setAttribute("aria-hidden","true")})}function Pr(e){Or(e,e=>{e.classList.remove("hidden"),e.setAttribute("aria-hidden","false")})}function xr(e){null==e||e.setAttribute("disabled","disabled"),null==e||e.setAttribute("aria-disabled","true")}function Mr(e){null==e||e.removeAttribute("disabled"),null==e||e.removeAttribute("aria-disabled")}function Dr(){return document.documentElement.classList.contains("safari")}function Ur(){return document.documentElement.classList.contains("ios")}function Br(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:document;const i=null==n?void 0:n.querySelector(".".concat(e));if(i&&Ar(i)){const r=n.querySelector(t);null==r||r.classList.remove("invisible"),null==r||r.addEventListener("click",()=>{i.classList.remove(e),r.classList.add("invisible")})}}const qr="prev",Fr="next";class jr{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;if(!e)throw new Error("No element passed in");this._el=e,this._previousButton=e.querySelector(".".concat('slide-list__nav-button[data-direction="prev"]')),this._nextButton=e.querySelector(".".concat('slide-list__nav-button[data-direction="next"]')),this._listEl=e.querySelector(".slide-list__list"),this._dragLimit=this._listEl.offsetWidth,this._items=[...this._listEl.children],this._lock={},this._currentPage=t,this._isRtl="rtl"===document.body.dir,this._isMinimalNav=e.querySelector(".".concat("slide-list__header-nav--minimal")),this._prevTabIndexMap=new Map,this._boundFireScrollEvent=this._fireScrollEvent.bind(this),this._indicatorElement=e.querySelector(".".concat("slide-list__indicator-button-container")),this._indicatorClickHandler=this._handleIndicatorClick.bind(this),this._noMorePreviousContentAlert=this._el.querySelector(".previous-slide-list__a11y-notification"),this._noMoreNextContentAlert=this._el.querySelector(".next-slide-list__a11y-notification"),this._initCalc(),window.addEventListener("resize",this._handleWindowResize.bind(this)),"ontouchstart"in window&&(this._el.addEventListener("touchstart",this._handleTouchStart.bind(this)),this._el.addEventListener("touchmove",this._handleTouchMove.bind(this)),this._el.addEventListener("touchend",this._handleTouchEnd.bind(this))),e.querySelector(".slide-list__nav")&&this._el.addEventListener("click",this._handleScrollAction.bind(this))}next(e){return e=e||1,this._currentPage+e<=this._pageTranslates.length-1&&(this._currentPage+=e,this._updateSlideButtons(),this._updateListPosition(),this._updateFocusableElements(),this._dispatchPageChangeEvent()),this._currentPage}prev(e){return e=e||1,this._currentPage-e>=0&&(this._currentPage-=e,this._updateSlideButtons(),this._updateListPosition(),this._updateFocusableElements(),this._dispatchPageChangeEvent()),this._currentPage}goToItem(e){const t=Number(e)-this._currentPage;if(0===t)return this._currentPage;t<0?this.prev(Math.abs(t)):this.next(t)}_handleIndicatorClick(e){const t=e.target.closest("[data-position]");t&&this.goToItem(t.dataset.position)}_handleWindowResize(){this._isResizing||(this._isResizing=!0,window.requestAnimationFrame(this._initCalc.bind(this)))}_updateIndicator(){this._indicatorElement&&(this._pageItems.length===this._items.length?(Lr(this._indicatorElement),this._indicatorElement.isActive=!0,this._indicatorElement.addEventListener("click",this._indicatorClickHandler)):(Rr(this._indicatorElement),this._indicatorElement.isActive=!1,this._indicatorElement.removeEventListener("click",this._indicatorClickHandler)))}_initCalc(){this._pageTranslates=this._getPageTranslates(),this._pageTranslates[this._currentPage]||(this._currentPage=0),this._updateIndicator(),this._updateSlideButtons(!0),this._updateListPosition(),this._isResizing=!1,this._updateFocusableElements()}_getPageTranslates(){const e=this._listEl.offsetWidth,t=this._listEl.scrollWidth,n=this._isRtl?e-this._items[0].offsetLeft-this._items[0].offsetWidth:this._items[0].offsetLeft,i=t-e;let r=[0];const o=[new Set],s=[];let a=0;for(let t=0;t<this._items.length;t+=1){const c=r[r.length-1],l=o[r.length-1],u=this._items[t].offsetLeft,d=this._items[t].offsetWidth;let h=Math.abs(this._isRtl?u+d:u),p=Math.abs(this._isRtl?u:u+d);if(s.push(h),this._isRtl&&u>=0)l.add(this._items[t]);else if(0===h&&0===n||0===a)a=p,l.add(this._items[t]);else{if(p>c+e){if(h>=i){o.push(new Set(this._items.slice(t)));break}r.push((this._isRtl?a:h)-n),o.push(new Set([this._items[t]]))}else l.add(this._items[t]);a=p}}return r.push(i),s.forEach((e,t)=>{e>=i&&o[o.length-1].add(this._items[t])}),this._pageItems=o,r}_updateFocusableElements(){const e=this._pageItems[this._currentPage],t=this._items.filter(t=>!e.has(t));for(const e of this._items)e.removeAttribute("aria-hidden");for(const[e,t]of this._prevTabIndexMap)null===t?e.removeAttribute("tabindex"):e.setAttribute("tabindex",t);for(const e of t){e.setAttribute("aria-hidden","true");e.querySelectorAll(N).forEach(e=>{const t=e.getAttribute("tabindex");this._prevTabIndexMap.set(e,t),e.setAttribute("tabindex","-1")})}}_handleScrollAction(e){const n=t(e.target,".slide-list__nav-button"),i=n&&n.dataset.direction;i&&(this._listEl.addEventListener("transitionend",this._boundFireScrollEvent),i===qr?this.prev():i===Fr&&this.next())}_fireScrollEvent(){m(window,"scroll"),this._listEl.removeEventListener("transitionend",this._boundFireScrollEvent)}_updateListPosition(){this._updateTranslateXY(this._isRtl?this._pageTranslates[this._currentPage]:-this._pageTranslates[this._currentPage],0)}_updateIndicatorButtons(){if(this._indicatorElement&&this._indicatorElement.isActive){const e=this._el.querySelector(".slide-list__indicator-button-container > .slide-list__indicator--selected");e&&(e.classList.remove("slide-list__indicator--selected"),e.setAttribute("aria-current",!1));const t=this._el.querySelector(".".concat("slide-list__indicator-button-container"," > :nth-child(").concat(this._currentPage+1,")"));t.classList.add("slide-list__indicator--selected"),t.setAttribute("aria-current",!0)}}_updateSlideButtons(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(this._previousButton&&this._nextButton){if(this._previousButton.disabled=!1,this._nextButton.disabled=!1,!this._pageTranslates[1]||this._pageTranslates[1]<0)return this._previousButton.disabled=!0,void(this._nextButton.disabled=!0);0===this._currentPage&&(this._previousButton.disabled=!0,this._setNoMoreContentAlert(this._noMorePreviousContentAlert,e)),this._currentPage!==this._pageTranslates.length-1&&0!==this._pageTranslates.length||(this._nextButton.disabled=!0,this._setNoMoreContentAlert(this._noMoreNextContentAlert,e))}this._updateIndicatorButtons()}_setNoMoreContentAlert(e){!(arguments.length>1&&void 0!==arguments[1]&&arguments[1])&&e&&(e.classList.remove("hidden"),setTimeout(()=>{e.classList.add("hidden")},1e3))}_resetTouchEvents(){this._dragging=!1,this._dragCanceled=!1,this._listEl.classList.remove("slide-list__list--dragging"),this._lock.left=this._isRtl?this._currentPage===this._pageTranslates.length-1:0===this._currentPage,this._lock.right=this._isRtl?0===this._currentPage:this._currentPage===this._pageTranslates.length-1,this._dragThresholdMet=!1,this._t={current:{x:0,y:0}}}_handleTouchStart(e){this._resetTouchEvents(),this._t.start=this._getEventPosition(e),this._dragging=!0,this._listEl.classList.add("slide-list__list--dragging")}_handleTouchMove(e){if(!this._dragging||this._dragCanceled)return;let t=this._getEventPosition(e);this._t.current={x:this._t.start.x-t.x,y:this._t.start.y-t.y},this._canDrag()?(this._dragThresholdMet=!0,e.preventDefault(),this._lock.left&&this._t.current.x<0?this._t.current.x=this._t.current.x*-this._dragLimit/(this._t.current.x-this._dragLimit):this._lock.right&&this._t.current.x>0&&(this._t.current.x=this._t.current.x*this._dragLimit/(this._t.current.x+this._dragLimit)),this._updateTranslateXY((this._isRtl?this._pageTranslates[this._currentPage]:-this._pageTranslates[this._currentPage])-this._t.current.x)):this._isVerticalScrolling()&&(this._dragCanceled=!0)}_handleTouchEnd(){this._dragging&&(!this._dragCanceled&&Math.abs(this._t.current.x)>20&&(this._t.current.x>0&&!this._lock.right?this._isRtl?this._currentPage--:this._currentPage++:this._t.current.x<0&&!this._lock.left&&(this._isRtl?this._currentPage++:this._currentPage--),this._dispatchPageChangeEvent()),this._resetTouchEvents(),this._updateSlideButtons(),this._updateListPosition())}_getEventPosition(e){return{x:e.touches[0].clientX,y:e.touches[0].clientY}}_isVerticalScrolling(){return Math.abs(this._t.current.x)<Math.abs(this._t.current.y)&&Math.abs(this._t.current.y)>10}_canDrag(){return this._dragThresholdMet||Math.abs(this._t.current.x)>Math.abs(this._t.current.y)&&Math.abs(this._t.current.x)>10}_updateTranslateXY(e,t){this._listEl.style.transform="translate3d(".concat(e||0,"px, ").concat(t||0,"px, 0px)")}_dispatchPageChangeEvent(){m(this._el,"pagechange",{pageNumber:this._currentPage})}}const Hr=".tabs__list",zr=".tab-button",Gr=".tab__panel";class Kr{constructor(e){if(!(e&&e instanceof Node))throw new Error("No tabs element passed in");this._el=e,this._tabList=this._el.querySelector(Hr),this._tabButtonList=this._el.querySelectorAll(zr),this._tabPanelList=this._el.querySelectorAll(Gr),this._initializeTabs(),this._tabList.addEventListener("keydown",e=>this._onTabButtonKeyDown(e)),this._tabList.addEventListener("click",e=>{let{target:t}=e;return this._onTabClick(t)})}_initializeTabs(){this._addAttributes(),[this._tabActive,this._tabPanelActive]=this._getActiveElements(),this._checkActivePanel()}_addAttributes(){const e=this._generateIds();this._tabButtonList.forEach((t,n)=>{const i=this._tabPanelList[n],{tabId:r,tabPanelId:o}=e(n);t.id=r,t.setAttribute("aria-controls",o),i.id=o,i.setAttribute("aria-labelledby",r)})}_generateIds(){const e=this._el.dataset.tabId?"".concat(this._el.dataset.tabId,"_"):"";return function(t){return{tabPanelId:"".concat(e,"tab-panel_").concat(t),tabId:"".concat(e,"tab_").concat(t)}}}_getActiveElements(){const e=this._el.querySelector('[aria-selected="true"]')||this._tabButtonList[0],t=e.getAttribute("aria-controls");return[e,document.getElementById(t)]}_checkActivePanel(){this._tabPanelActive.removeAttribute("hidden"),this._tabPanelList.forEach(e=>{e!==this._tabPanelActive&&e.setAttribute("hidden","")})}_onTabButtonKeyDown(e){switch(C(e.key)){case k.ENTER:case k.SPACEBAR:e.target!==this._tabActive&&this._activateTab(e.target);break;case k.ARROW_LEFT:this._focusTabOnArrowPress(-1,e.target);break;case k.ARROW_RIGHT:this._focusTabOnArrowPress(1,e.target)}}_onTabClick(e){const n=t(e,zr);n&&[...this._tabButtonList].includes(n)&&n!==this._tabActive&&this._activateTab(n)}_focusTabOnArrowPress(e,t){const n=[...this._tabButtonList].indexOf(t),i=this._tabButtonList[n+(1===e?1:-1)];i?i.focus():-1===e?this._focusLastTab():this._focusFirstTab()}_focusFirstTab(){this._tabButtonList[0].focus()}_focusLastTab(){this._tabButtonList[this._tabButtonList.length-1].focus()}_activateTab(e){this._deactivateActiveTab(),this._tabActive=e,this._tabActive.removeAttribute("tabIndex"),this._tabActive.setAttribute("aria-selected","true"),this._tabActive.classList.add("tab-selected");const t=this._tabActive.getAttribute("aria-controls");this._tabPanelActive=document.getElementById(t),this._tabPanelActive.removeAttribute("hidden")}_deactivateActiveTab(){this._tabActive.setAttribute("tabIndex","-1"),this._tabActive.setAttribute("aria-selected","false"),this._tabActive.classList.remove("tab-selected"),this._tabActive=null,this._tabPanelActive.setAttribute("hidden",""),this._tabPanelActive=null}}var Wr=Object.hasOwnProperty,Vr=Object.setPrototypeOf,Yr=Object.isFrozen,Qr=Object.getPrototypeOf,Xr=Object.getOwnPropertyDescriptor,Jr=Object.freeze,Zr=Object.seal,$r=Object.create,eo="undefined"!=typeof Reflect&&Reflect,to=eo.apply,no=eo.construct;to||(to=function(e,t,n){return e.apply(t,n)}),Jr||(Jr=function(e){return e}),Zr||(Zr=function(e){return e}),no||(no=function(e,t){return new(Function.prototype.bind.apply(e,[null].concat(function(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}(t))))});var io,ro=mo(Array.prototype.forEach),oo=mo(Array.prototype.pop),so=mo(Array.prototype.push),ao=mo(String.prototype.toLowerCase),co=mo(String.prototype.match),lo=mo(String.prototype.replace),uo=mo(String.prototype.indexOf),ho=mo(String.prototype.trim),po=mo(RegExp.prototype.test),fo=(io=TypeError,function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return no(io,t)});function mo(e){return function(t){for(var n=arguments.length,i=Array(n>1?n-1:0),r=1;r<n;r++)i[r-1]=arguments[r];return to(e,t,i)}}function vo(e,t){Vr&&Vr(e,null);for(var n=t.length;n--;){var i=t[n];if("string"==typeof i){var r=ao(i);r!==i&&(Yr(t)||(t[n]=r),i=r)}e[i]=!0}return e}function go(e){var t=$r(null),n=void 0;for(n in e)to(Wr,e,[n])&&(t[n]=e[n]);return t}function yo(e,t){for(;null!==e;){var n=Xr(e,t);if(n){if(n.get)return mo(n.get);if("function"==typeof n.value)return mo(n.value)}e=Qr(e)}return function(e){return console.warn("fallback value for",e),null}}var bo=Jr(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","section","select","shadow","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),Eo=Jr(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","filter","font","g","glyph","glyphref","hkern","image","line","lineargradient","marker","mask","metadata","mpath","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),_o=Jr(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),wo=Jr(["animate","color-profile","cursor","discard","fedropshadow","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),To=Jr(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover"]),So=Jr(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),ko=Jr(["#text"]),Io=Jr(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","face","for","headers","height","hidden","high","href","hreflang","id","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","pattern","placeholder","playsinline","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","xmlns","slot"]),Co=Jr(["accent-height","accumulate","additive","alignment-baseline","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),Ao=Jr(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),Oo=Jr(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),Ro=Zr(/\{\{[\s\S]*|[\s\S]*\}\}/gm),Lo=Zr(/<%[\s\S]*|[\s\S]*%>/gm),No=Zr(/^data-[\-\w.\u00B7-\uFFFF]/),Po=Zr(/^aria-[\-\w]+$/),xo=Zr(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),Mo=Zr(/^(?:\w+script|data):/i),Do=Zr(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),Uo="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};function Bo(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}var qo=function(){return"undefined"==typeof window?null:window},Fo=function(e,t){if("object"!==(void 0===e?"undefined":Uo(e))||"function"!=typeof e.createPolicy)return null;var n=null;t.currentScript&&t.currentScript.hasAttribute("data-tt-policy-suffix")&&(n=t.currentScript.getAttribute("data-tt-policy-suffix"));var i="dompurify"+(n?"#"+n:"");try{return e.createPolicy(i,{createHTML:function(e){return e}})}catch(e){return console.warn("TrustedTypes policy "+i+" could not be created."),null}};var jo=function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:qo(),n=function(t){return e(t)};if(n.version="2.3.5",n.removed=[],!t||!t.document||9!==t.document.nodeType)return n.isSupported=!1,n;var i=t.document,r=t.document,o=t.DocumentFragment,s=t.HTMLTemplateElement,a=t.Node,c=t.Element,l=t.NodeFilter,u=t.NamedNodeMap,d=void 0===u?t.NamedNodeMap||t.MozNamedAttrMap:u,h=t.HTMLFormElement,p=t.DOMParser,f=t.trustedTypes,m=c.prototype,v=yo(m,"cloneNode"),g=yo(m,"nextSibling"),y=yo(m,"childNodes"),b=yo(m,"parentNode");if("function"==typeof s){var E=r.createElement("template");E.content&&E.content.ownerDocument&&(r=E.content.ownerDocument)}var _=Fo(f,i),w=_?_.createHTML(""):"",T=r,S=T.implementation,k=T.createNodeIterator,I=T.createDocumentFragment,C=T.getElementsByTagName,A=i.importNode,O={};try{O=go(r).documentMode?r.documentMode:{}}catch(e){}var R={};n.isSupported="function"==typeof b&&S&&void 0!==S.createHTMLDocument&&9!==O;var L=Ro,N=Lo,P=No,x=Po,M=Mo,D=Do,U=xo,B=null,q=vo({},[].concat(Bo(bo),Bo(Eo),Bo(_o),Bo(To),Bo(ko))),F=null,j=vo({},[].concat(Bo(Io),Bo(Co),Bo(Ao),Bo(Oo))),H=Object.seal(Object.create(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),z=null,G=null,K=!0,W=!0,V=!1,Y=!1,Q=!1,X=!1,J=!1,Z=!1,$=!1,ee=!1,te=!0,ne=!0,ie=!1,re={},oe=null,se=vo({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]),ae=null,ce=vo({},["audio","video","img","source","image","track"]),le=null,ue=vo({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),de="http://www.w3.org/1998/Math/MathML",he="http://www.w3.org/2000/svg",pe="http://www.w3.org/1999/xhtml",fe=pe,me=!1,ve=void 0,ge=["application/xhtml+xml","text/html"],ye="text/html",be=void 0,Ee=null,_e=r.createElement("form"),we=function(e){return e instanceof RegExp||e instanceof Function},Te=function(e){Ee&&Ee===e||(e&&"object"===(void 0===e?"undefined":Uo(e))||(e={}),e=go(e),B="ALLOWED_TAGS"in e?vo({},e.ALLOWED_TAGS):q,F="ALLOWED_ATTR"in e?vo({},e.ALLOWED_ATTR):j,le="ADD_URI_SAFE_ATTR"in e?vo(go(ue),e.ADD_URI_SAFE_ATTR):ue,ae="ADD_DATA_URI_TAGS"in e?vo(go(ce),e.ADD_DATA_URI_TAGS):ce,oe="FORBID_CONTENTS"in e?vo({},e.FORBID_CONTENTS):se,z="FORBID_TAGS"in e?vo({},e.FORBID_TAGS):{},G="FORBID_ATTR"in e?vo({},e.FORBID_ATTR):{},re="USE_PROFILES"in e&&e.USE_PROFILES,K=!1!==e.ALLOW_ARIA_ATTR,W=!1!==e.ALLOW_DATA_ATTR,V=e.ALLOW_UNKNOWN_PROTOCOLS||!1,Y=e.SAFE_FOR_TEMPLATES||!1,Q=e.WHOLE_DOCUMENT||!1,Z=e.RETURN_DOM||!1,$=e.RETURN_DOM_FRAGMENT||!1,ee=e.RETURN_TRUSTED_TYPE||!1,J=e.FORCE_BODY||!1,te=!1!==e.SANITIZE_DOM,ne=!1!==e.KEEP_CONTENT,ie=e.IN_PLACE||!1,U=e.ALLOWED_URI_REGEXP||U,fe=e.NAMESPACE||pe,e.CUSTOM_ELEMENT_HANDLING&&we(e.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(H.tagNameCheck=e.CUSTOM_ELEMENT_HANDLING.tagNameCheck),e.CUSTOM_ELEMENT_HANDLING&&we(e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(H.attributeNameCheck=e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),e.CUSTOM_ELEMENT_HANDLING&&"boolean"==typeof e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements&&(H.allowCustomizedBuiltInElements=e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),ve=ve=-1===ge.indexOf(e.PARSER_MEDIA_TYPE)?ye:e.PARSER_MEDIA_TYPE,be="application/xhtml+xml"===ve?function(e){return e}:ao,Y&&(W=!1),$&&(Z=!0),re&&(B=vo({},[].concat(Bo(ko))),F=[],!0===re.html&&(vo(B,bo),vo(F,Io)),!0===re.svg&&(vo(B,Eo),vo(F,Co),vo(F,Oo)),!0===re.svgFilters&&(vo(B,_o),vo(F,Co),vo(F,Oo)),!0===re.mathMl&&(vo(B,To),vo(F,Ao),vo(F,Oo))),e.ADD_TAGS&&(B===q&&(B=go(B)),vo(B,e.ADD_TAGS)),e.ADD_ATTR&&(F===j&&(F=go(F)),vo(F,e.ADD_ATTR)),e.ADD_URI_SAFE_ATTR&&vo(le,e.ADD_URI_SAFE_ATTR),e.FORBID_CONTENTS&&(oe===se&&(oe=go(oe)),vo(oe,e.FORBID_CONTENTS)),ne&&(B["#text"]=!0),Q&&vo(B,["html","head","body"]),B.table&&(vo(B,["tbody"]),delete z.tbody),Jr&&Jr(e),Ee=e)},Se=vo({},["mi","mo","mn","ms","mtext"]),ke=vo({},["foreignobject","desc","title","annotation-xml"]),Ie=vo({},Eo);vo(Ie,_o),vo(Ie,wo);var Ce=vo({},To);vo(Ce,So);var Ae=function(e){var t=b(e);t&&t.tagName||(t={namespaceURI:pe,tagName:"template"});var n=ao(e.tagName),i=ao(t.tagName);if(e.namespaceURI===he)return t.namespaceURI===pe?"svg"===n:t.namespaceURI===de?"svg"===n&&("annotation-xml"===i||Se[i]):Boolean(Ie[n]);if(e.namespaceURI===de)return t.namespaceURI===pe?"math"===n:t.namespaceURI===he?"math"===n&&ke[i]:Boolean(Ce[n]);if(e.namespaceURI===pe){if(t.namespaceURI===he&&!ke[i])return!1;if(t.namespaceURI===de&&!Se[i])return!1;var r=vo({},["title","style","font","a","script"]);return!Ce[n]&&(r[n]||!Ie[n])}return!1},Oe=function(e){so(n.removed,{element:e});try{e.parentNode.removeChild(e)}catch(t){try{e.outerHTML=w}catch(t){e.remove()}}},Re=function(e,t){try{so(n.removed,{attribute:t.getAttributeNode(e),from:t})}catch(e){so(n.removed,{attribute:null,from:t})}if(t.removeAttribute(e),"is"===e&&!F[e])if(Z||$)try{Oe(t)}catch(e){}else try{t.setAttribute(e,"")}catch(e){}},Le=function(e){var t=void 0,n=void 0;if(J)e="<remove></remove>"+e;else{var i=co(e,/^[\r\n\t ]+/);n=i&&i[0]}"application/xhtml+xml"===ve&&(e='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+e+"</body></html>");var o=_?_.createHTML(e):e;if(fe===pe)try{t=(new p).parseFromString(o,ve)}catch(e){}if(!t||!t.documentElement){t=S.createDocument(fe,"template",null);try{t.documentElement.innerHTML=me?"":o}catch(e){}}var s=t.body||t.documentElement;return e&&n&&s.insertBefore(r.createTextNode(n),s.childNodes[0]||null),fe===pe?C.call(t,Q?"html":"body")[0]:Q?t.documentElement:s},Ne=function(e){return k.call(e.ownerDocument||e,e,l.SHOW_ELEMENT|l.SHOW_COMMENT|l.SHOW_TEXT,null,!1)},Pe=function(e){return e instanceof h&&("string"!=typeof e.nodeName||"string"!=typeof e.textContent||"function"!=typeof e.removeChild||!(e.attributes instanceof d)||"function"!=typeof e.removeAttribute||"function"!=typeof e.setAttribute||"string"!=typeof e.namespaceURI||"function"!=typeof e.insertBefore)},xe=function(e){return"object"===(void 0===a?"undefined":Uo(a))?e instanceof a:e&&"object"===(void 0===e?"undefined":Uo(e))&&"number"==typeof e.nodeType&&"string"==typeof e.nodeName},Me=function(e,t,i){R[e]&&ro(R[e],(function(e){e.call(n,t,i,Ee)}))},De=function(e){var t=void 0;if(Me("beforeSanitizeElements",e,null),Pe(e))return Oe(e),!0;if(co(e.nodeName,/[\u0080-\uFFFF]/))return Oe(e),!0;var i=be(e.nodeName);if(Me("uponSanitizeElement",e,{tagName:i,allowedTags:B}),!xe(e.firstElementChild)&&(!xe(e.content)||!xe(e.content.firstElementChild))&&po(/<[/\w]/g,e.innerHTML)&&po(/<[/\w]/g,e.textContent))return Oe(e),!0;if("select"===i&&po(/<template/i,e.innerHTML))return Oe(e),!0;if(!B[i]||z[i]){if(ne&&!oe[i]){var r=b(e)||e.parentNode,o=y(e)||e.childNodes;if(o&&r)for(var s=o.length-1;s>=0;--s)r.insertBefore(v(o[s],!0),g(e))}if(!z[i]&&Be(i)){if(H.tagNameCheck instanceof RegExp&&po(H.tagNameCheck,i))return!1;if(H.tagNameCheck instanceof Function&&H.tagNameCheck(i))return!1}return Oe(e),!0}return e instanceof c&&!Ae(e)?(Oe(e),!0):"noscript"!==i&&"noembed"!==i||!po(/<\/no(script|embed)/i,e.innerHTML)?(Y&&3===e.nodeType&&(t=e.textContent,t=lo(t,L," "),t=lo(t,N," "),e.textContent!==t&&(so(n.removed,{element:e.cloneNode()}),e.textContent=t)),Me("afterSanitizeElements",e,null),!1):(Oe(e),!0)},Ue=function(e,t,n){if(te&&("id"===t||"name"===t)&&(n in r||n in _e))return!1;if(W&&!G[t]&&po(P,t));else if(K&&po(x,t));else if(!F[t]||G[t]){if(!(Be(e)&&(H.tagNameCheck instanceof RegExp&&po(H.tagNameCheck,e)||H.tagNameCheck instanceof Function&&H.tagNameCheck(e))&&(H.attributeNameCheck instanceof RegExp&&po(H.attributeNameCheck,t)||H.attributeNameCheck instanceof Function&&H.attributeNameCheck(t))||"is"===t&&H.allowCustomizedBuiltInElements&&(H.tagNameCheck instanceof RegExp&&po(H.tagNameCheck,n)||H.tagNameCheck instanceof Function&&H.tagNameCheck(n))))return!1}else if(le[t]);else if(po(U,lo(n,D,"")));else if("src"!==t&&"xlink:href"!==t&&"href"!==t||"script"===e||0!==uo(n,"data:")||!ae[e]){if(V&&!po(M,lo(n,D,"")));else if(n)return!1}else;return!0},Be=function(e){return e.indexOf("-")>0},qe=function(e){var t=void 0,i=void 0,r=void 0,o=void 0;Me("beforeSanitizeAttributes",e,null);var s=e.attributes;if(s){var a={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:F};for(o=s.length;o--;){var c=t=s[o],l=c.name,u=c.namespaceURI;if(i=ho(t.value),r=be(l),a.attrName=r,a.attrValue=i,a.keepAttr=!0,a.forceKeepAttr=void 0,Me("uponSanitizeAttribute",e,a),i=a.attrValue,!a.forceKeepAttr&&(Re(l,e),a.keepAttr))if(po(/\/>/i,i))Re(l,e);else{Y&&(i=lo(i,L," "),i=lo(i,N," "));var d=be(e.nodeName);if(Ue(d,r,i))try{u?e.setAttributeNS(u,l,i):e.setAttribute(l,i),oo(n.removed)}catch(e){}}}Me("afterSanitizeAttributes",e,null)}},Fe=function e(t){var n=void 0,i=Ne(t);for(Me("beforeSanitizeShadowDOM",t,null);n=i.nextNode();)Me("uponSanitizeShadowNode",n,null),De(n)||(n.content instanceof o&&e(n.content),qe(n));Me("afterSanitizeShadowDOM",t,null)};return n.sanitize=function(e,r){var s=void 0,c=void 0,l=void 0,u=void 0,d=void 0;if((me=!e)&&(e="\x3c!--\x3e"),"string"!=typeof e&&!xe(e)){if("function"!=typeof e.toString)throw fo("toString is not a function");if("string"!=typeof(e=e.toString()))throw fo("dirty is not a string, aborting")}if(!n.isSupported){if("object"===Uo(t.toStaticHTML)||"function"==typeof t.toStaticHTML){if("string"==typeof e)return t.toStaticHTML(e);if(xe(e))return t.toStaticHTML(e.outerHTML)}return e}if(X||Te(r),n.removed=[],"string"==typeof e&&(ie=!1),ie){if(e.nodeName){var h=be(e.nodeName);if(!B[h]||z[h])throw fo("root node is forbidden and cannot be sanitized in-place")}}else if(e instanceof a)1===(c=(s=Le("\x3c!----\x3e")).ownerDocument.importNode(e,!0)).nodeType&&"BODY"===c.nodeName||"HTML"===c.nodeName?s=c:s.appendChild(c);else{if(!Z&&!Y&&!Q&&-1===e.indexOf("<"))return _&&ee?_.createHTML(e):e;if(!(s=Le(e)))return Z?null:ee?w:""}s&&J&&Oe(s.firstChild);for(var p=Ne(ie?e:s);l=p.nextNode();)3===l.nodeType&&l===u||De(l)||(l.content instanceof o&&Fe(l.content),qe(l),u=l);if(u=null,ie)return e;if(Z){if($)for(d=I.call(s.ownerDocument);s.firstChild;)d.appendChild(s.firstChild);else d=s;return F.shadowroot&&(d=A.call(i,d,!0)),d}var f=Q?s.outerHTML:s.innerHTML;return Y&&(f=lo(f,L," "),f=lo(f,N," ")),_&&ee?_.createHTML(f):f},n.setConfig=function(e){Te(e),X=!0},n.clearConfig=function(){Ee=null,X=!1},n.isValidAttribute=function(e,t,n){Ee||Te({});var i=be(e),r=be(t);return Ue(i,r,n)},n.addHook=function(e,t){"function"==typeof t&&(R[e]=R[e]||[],so(R[e],t))},n.removeHook=function(e){R[e]&&oo(R[e])},n.removeHooks=function(e){R[e]&&(R[e]=[])},n.removeAllHooks=function(){R={}},n}();const Ho={ADD_TAGS:["#comment","li-icon","icon","iframe"],ADD_ATTR:["target"],FORCE_BODY:!0,RETURN_DOM:!0};function zo(e,t){let{ADD_TAGS:n=[],ADD_ATTR:i=[]}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const r=ee({},Ho);r.ADD_TAGS=[...r.ADD_TAGS,...n],r.ADD_ATTR=[...r.ADD_ATTR,...i];const o=jo.sanitize(t,r);return e&&e.nodeType===Node.ELEMENT_NODE&&(e.innerHTML="",e.append(...o.childNodes)),o}var Go="aria-[a-z0-9_\\-]+|class|data-[a-z0-9_\\-]+|dir|id|role|tabindex",Ko=function(){if("undefined"==typeof document)return!0;return"textContent"in document.createElement("div")}()?"textContent":"innerText",Wo=["b","del","em","i","s","strong","sub","sup"],Vo=Wo.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"]),Yo=[Go,"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 Qo(){}var Xo,Jo,Zo=(Jo=/[&<>"'\u0000\\=]/g,Xo={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","\0":"�","\\":"&#92;","=":"&#61;"},function(e){return null==e?null:e.toString().replace(Jo,(function(e){return Xo[e]}))}),$o=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 i={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(r){return null==r?null:(r+"").replace(n,(function(n,r,o,s){return r?(a=r,i.hasOwnProperty(a)?i[a]:(e.innerHTML="&"+a+";",c=e[Ko],i[a]=c,c)):o||s?t(parseInt(o||s,o?16:10)||65533):"�";var a,c}))}}();var es=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)};function ts(e){return/[<&]/.test(e)}var ns,is=Array.prototype.forEach?function(e,t){Array.prototype.forEach.call(e,t)}:function(e,t){for(var n=0,i=e.length;n<i;n++)t(e[n],n)};function rs(e){e=es(e)?e:[e];var t,n,i,r=0,o="<(?!/?";return o+="(?:",is(e,(function(e,s){t=e.tags||Vo,n=e.attrs||Yo,i=e.checkUrlAttrs||!1,0!==s&&(o+="|"),o+="(?:"+t.join("|")+")",o+="(?:",o+="[ \t\r\n]*",o+="|[ \t\r\n]+",o+="(?:(?:",o+="(?:"+n+")(?:=([\"'])[^'\"<>]*\\"+ ++r+")?",i&&(o+="|(?:href|src)=([\"'])(?:(?:https?|ftp|mailto|invalid)(?::|&#(?:58|x3a);)|(?:data:image/(?:gif|jpg|jpeg|png);base64,)|[/.#?]|&#(?:35|4[67]|63|x(?:2[3ef]|3f));)[^'\"<>]*\\"+ ++r),o+=")[ \t\r\n]*)+",o+=")"})),o+=")",o+="/?>)",new RegExp(o,"i")}function os(e){return rs({tags:e=e||Vo,checkUrlAttrs:!0})}function ss(e,t){var n=(t=t||{}).allowTags,i=!1!==t.hasCustomElementMarkup;return n?!os(n).test(e):i?!ss.R_UNSAFE_CUSTOM_ELEMENT.test(e):!ss.R_UNSAFE_HTML.test(e)}function as(e){return e.replace(/<[^>]*>|[<>'"&\\]/g,"")}function cs(e,t,n){if(null==e)return null;e=e.toString();var i=t?function(e,t){var n={};return e.replace(/\{([^}]+)\}/g,(function(e,i){var r,o=e;if(n.hasOwnProperty(i))return n[i];if(t.hasOwnProperty(i)){if(!((r="string"==typeof(o=t[i]))||o instanceof Qo||"number"==typeof o))throw new Error("Only strings, numbers, and jSecure types are allowed as placeholder replacements.");o=r?Zo(o):o.toString()}return n[i]=o,o}))}(e,t):e,r=e;return ts(i)&&!ss(i,n)&&(i=as(i),br("Content contains non-whitelisted tags or attributes:\nContent: "+r,"error")),i}function ls(e,t){for(var n=+t.length,i=0,r=e.length;i<n;i++)e[r++]=t[i];return e.length=r,e}ss.R_UNSAFE_HTML=os(),ss.R_UNSAFE_CUSTOM_ELEMENT=rs([{tags:Vo,checkUrlAttrs:!0},{tags:[(ns={tag:"li-icon",attrs:"active|a11y-text|animate|color|size|type"}).tag],attrs:[Go,ns.attrs].join("|"),checkUrlAttrs:!1}]);var us={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,"",""]};us.optgroup=us.option,us.tbody=us.tfoot=us.colgroup=us.caption=us.thead,us.th=us.td;var ds=/<([\w:]+)/;function hs(e,t){var n,i,r,o,s,a,c,l=t.createDocumentFragment(),u=[];for(s=0,c=e.length;s<c;s++)if((o=e[s])||0===o)if("string"==typeof o){for(r=r||l.appendChild(t.createElement("div")),n=(ds.exec(o)||["",""])[1].toLowerCase(),ms(r,(i=us[n]||us._default)[1]+o+i[2]),a=i[0];a--;)r.lastChild&&r.lastChild.nodeType===Node.ELEMENT_NODE&&(r=r.lastChild);ls(u,r.childNodes),(r=l.firstChild).textContent=""}else ls(u,o.nodeType?[o]:o);for(l.textContent="",o=u[s=0];o;)l.appendChild(o),o=u[++s];return l}var ps=cs,fs=cs;function ms(e,t,n){var i=cs(t,n);return ts(i)?e.innerHTML=i:e[Ko]=i,i}function vs(e,t){if(!(this instanceof vs))return new vs(e,t);(t=t||{}).allowTags=t.allowTags?t.allowTags.reduce((function(e,t){return e.concat(t)}),[]):null,this._string=e,this._options=t}vs.prototype=function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);return e}(new Qo,{toString:function(){var e=this._string,t=this._stringVal,n=e;return void 0!==t?t:(ss(e,this._options)||(n=e,e=as(e),br("UnsafeString contains non-whitelisted tags or attributes.\nString: "+n,"error")),this._stringVal=e,e)}});var gs={ALLOWED_TAGS:Vo,FORMATTING_TAGS:Wo,htmlEncode:Zo,htmlUnencode:$o,log:br,mk:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];let r,o="",s=n.length;return e&&e.forEach((function(e,t){o+=e,t<s&&(r=n[t],o+=r instanceof vs?r:Zo(r))})),fs(o)},parseHTML:function(e,t){var n;if(t=t||document.implementation&&document.implementation.createHTMLDocument?document.implementation.createHTMLDocument(""):document,"string"==typeof e)n=hs([e],t);else{if(!es(e))return e;n=hs(e,t)}return ls([],n.childNodes)},parseSelector:function(e){return"string"==typeof e&&/^(?:\s*(<[\w\W]+>)[^>]*)$/.test(e)?[]:e},processTemplate:ps,reEncode:function(e){return Zo($o(e))},_redirector:Ir,redirect:function(e){const t=kr(e);t===e&&Ir.redirect(t)},sanitizeHTML:fs,sanitizeUrl:kr,setElementContent:ms,text:function(e){return br("jSecure.text() is deprecated. Please use jSecure.htmlEncode().","warn"),Zo(e)},unsafe:function(e){return e},UnsafeString:vs};function ys(e){if(e instanceof HTMLElement)if(document.documentElement.classList.contains("ios")){const t=10,n=10;e.blur();let i=0;const r=window.setInterval((function(){e.focus(),i>=n&&window.clearInterval(r),i++}),t)}else e.focus()}const bs=Object.freeze({CAUTION:"caution",ERROR:"error",GDPR:"gdpr",NOTIFY:"notify",SUCCESS:"success"});class Es{constructor(){let{removeToastCallback:e=(()=>{})}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=document.getElementById("toasts");if(!t)throw new Error("No toasts element");this._el=t,this._position=t.getAttribute("type"),this.removeToastCallback=e,this.bindEvents()}trigger(e,t,n,i){if(!e||!Object.values(bs).includes(e))throw new Error("Valid type not specified: type must be caution, error, gdpr, notify or success");if(!t)throw new Error("No message specified");const r=n?"".concat(n,"_toast-").concat(e):"toast-".concat(e),o=this._createToastEl(e,t,r,i);return this._addToast(o)}clearAllToasts(){let e=this._el.querySelectorAll(".toast");Array.from(e).forEach(e=>{this._removeToast(e)})}bindEvents(){this._el.addEventListener("click",e=>{const n=t(e.target,".toast__dismiss-btn");if(n){const e=t(n,".toast");e&&this._removeToast(e)}})}_isValidCtaMetadata(e){return["url","trk","text"].every(t=>e.hasOwnProperty(t))}_createToastEl(e,t,n,i){const r=document.querySelector("#toast-template").content.firstElementChild.cloneNode(!0),o=document.querySelector("#toast-icon-".concat(e)).content.firstElementChild.cloneNode(!0);if(!r||!o)throw new Error("Toast templates are missing");r.classList.add("toast--".concat(e)),r.setAttribute("type",e);const s=r.querySelector(".toast__message");s.insertBefore(o,s.firstElementChild);r.querySelector(".toast__dismiss-btn").setAttribute("data-tracking-control-name","".concat(n,"_dismiss"));const a=r.querySelector(".toast__message-content");let c="text-color-text-neutral";if(e===bs.CAUTION?c="text-color-text-caution":e===bs.ERROR?c="text-color-text-negative":e===bs.SUCCESS&&(c="text-color-text-positive"),a.classList.add(c),zo(a,t),i&&this._isValidCtaMetadata(i)){const e=r.querySelector(".toast__message-content-container"),t=document.querySelector("#toast-cta").content.firstElementChild.cloneNode(!0),n=i.target||"_blank";t.setAttribute("href",gs.sanitizeUrl(d(i.url,i.trk))),t.setAttribute("target",n),t.textContent=i.text,e.classList.add(c),e.append(t)}return r}_addToast(e){this._el.appendChild(e);const t=this._el.querySelector(".toast__message");return this._hasToast()&&this._el.classList.remove("invisible"),this._refreshLazyLoader(),setTimeout((function(){e.classList.remove("toast--hidden"),ys(t)}),500),e}_removeToast(e){let t=this._el;e.classList.add("toast--hidden"),setTimeout(()=>{e.remove(),this._hasToast()||t.classList.add("invisible"),this.removeToastCallback()},500)}_hasToast(){return[...this._el.children].some(e=>"template"!==e.tagName.toLowerCase())}_refreshLazyLoader(){var e,t;null===(e=window.lazyloader)||void 0===e||null===(t=e.then)||void 0===t||t.call(e,e=>{e.refreshLoader()})}}te(Es,"TOAST_TYPES",bs);const _s={};function ws(e){const t=document.getElementById(e);if(!t&&void 0!==_s[e])return _s[e];if(!t)return console.warn("Element with id: ".concat(e," not found")),_s[e]=null,_s[e];let n;for(const e of t.childNodes)try{if(e.nodeType===Node.COMMENT_NODE){n=JSON.parse(e.nodeValue);break}}catch(e){}return void 0===n?(console.warn("Error retrieving content with id: ".concat(e,". Use embedJson helper to embed this content")),null):(_s[e]=n,t.parentNode.removeChild(t),_s[e])}const Ts={COPY:"copy",LINKEDIN:"linkedin",TWITTER:"twitter",FACEBOOK:"facebook"};Object.keys(Ts).map(e=>Ts[e]);const Ss=["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("|");new RegExp(Ss,"i");class ks{constructor(e){let{scrollThreshold:t=50,hideOnScrollBack:i=!1,hideOnScrollDown:r=!1,isBottom:o=!0,exposeStickyState:s=!1,marginApplied:a=!1,debounceDelay:c=100}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(i&&r)throw new Error("hideOnScrollBack & hideOnScrollDown cannot both be true at the same time");this.el=e,this.scrollThreshold=t,this.hideOnScrollBack=i,this.hideOnScrollDown=r,this.isBottom=o,this.exposeStickyState=s,this._scrollListener=p(this._onScroll.bind(this),c),this.marginApplied=a,this.previousScrollPosition=window.pageYOffset,this._setSpacingBound=this._setSpacing.bind(this),this._setupResizeListener(),n(()=>{this.originalMarginTop=parseInt(window.getComputedStyle(document.body).marginTop)||0,this.originalMarginBottom=parseInt(window.getComputedStyle(document.body).marginBottom)||0,this._setSpacing(!0),this._doesPageHaveEnoughScroll()?window.addEventListener("scroll",this._scrollListener):this.hideOnScrollBack||this.show()})}reactivate(){this._setupResizeListener(),this._setSpacing()}deactivate(){this._removeResizeListener(),this._resetSpacing()}_setupResizeListener(){H()||window.addEventListener("resize",this._setSpacingBound)}_removeResizeListener(){window.removeEventListener("resize",this._setSpacingBound)}_doesPageHaveEnoughScroll(){return document.body.scrollHeight>window.innerHeight+this.scrollThreshold}_setSpacing(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.isBottom?this._setBottomSpacing():this.hideOnScrollBack||this.hideOnScrollDown||(this._setTopSpacing(),e&&this.show())}_resetSpacing(){this.marginApplied?(document.body.style.marginTop="0px",document.body.style.marginBottom="0px"):(document.body.style.marginTop="".concat(this.originalMarginTop,"px"),document.body.style.marginBottom="".concat(this.originalMarginBottom,"px"))}_setBottomSpacing(){let e=this.el.clientHeight;document.body.style.marginBottom&&!this.marginApplied&&(e+=this.originalMarginBottom),document.body.style.marginBottom="".concat(e,"px")}_setTopSpacing(){let e=this.el.clientHeight;document.body.style.marginTop&&!this.marginApplied&&(e+=this.originalMarginTop),document.body.style.marginTop="".concat(e,"px")}show(){this.el.classList.add("show"),m(this.el,"show")}hide(){this.el.classList.remove("show"),m(this.el,"hide")}_onScroll(){const e=window.pageYOffset;e>this.scrollThreshold?(this.hideOnScrollBack||this.hideOnScrollDown||this.exposeStickyState||window.removeEventListener("scroll",this._scrollListener),this.hideOnScrollDown?this.hide():this.show(),this.exposeStickyState&&this.el.classList.add("stuck")):(this.hideOnScrollBack&&this.hide(),this.exposeStickyState&&this.el.classList.remove("stuck")),this.previousScrollPosition>e&&this.hideOnScrollDown&&this.show(),this.previousScrollPosition=e}}new Uint8Array(16);const Is=[];for(let e=0;e<256;++e)Is.push((e+256).toString(16).slice(1));"undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto);"".concat("tooltip__popup","--show");const Cs=["endpoint","headers","queryId","variables"];function As(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{endpoint:t,headers:n={"Content-Type":"application/json"},queryId:i,variables:r={}}=e,o=ne(e,Cs);const s=E(document);if(!s)throw new Error("Missing pageKey for graphQL request from browser");return V(t,ee({method:"POST",headers:n,postData:JSON.stringify({queryId:i,variables:r,pageKey:s})},o))}class Os{constructor(e,t){if(!e)throw Error("Missing endpoint");t&&(this.pemDegradationTrackingMetadata=t,this.isPemEnabled=!0),this.endpoint=e}executeAction(e){let{variables:t,queryId:n,successCallback:i=(()=>{}),failureCallback:r=(()=>{})}=e;return As({endpoint:this.endpoint,queryId:n,variables:t,pemDegradationTrackingMetadata:this.pemDegradationTrackingMetadata,isPemEnabled:this.isPemEnabled}).then(e=>{const{responseText:t}=e;return i(JSON.parse(t).graphQL)}).catch(r)}}class Rs extends Os{constructor(){super(...arguments)}execute(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:()=>{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:()=>{};return this.executeAction({queryId:Rs.query,variables:{allowedCommentersScope:e.allowedCommentersScope,text:e.text,visibility:e.visibility||"PUBLIC",reshareUrn:e.reshareUrn,attributedShareUrn:e.attributedShareUrn,articleInput:e.articleInput,imagePostInput:e.imagePostInput,attributes:e.attributes,containerEntity:e.containerEntity},successCallback:t,failureCallback:n})}}te(Rs,"query","2849bb08e3a3bbd23c96c0e758c018b7");class Ls extends Os{constructor(){super(...arguments)}execute(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:()=>{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:()=>{};return this.executeAction({queryId:Ls.query,variables:{url:e},successCallback:t,failureCallback:n})}}te(Ls,"query","bece320b5f70fe4357082fe84eca6c56");const Ns="dismissable-input",Ps="dismissable-input--focus",xs="dismissable-input__button",Ms="dismissable-input__button--show",Ds="dismissable-input__input";class Us{constructor(e){this.el=e,this._input=this.el.querySelector(".".concat(Ds)),this._dismissButtonEl=this.el.querySelector(".".concat(xs)),this._isDismissable=!!this._dismissButtonEl,this._attachEventListeners()}_attachEventListeners(){this._input.addEventListener("focus",this._onInputFocus.bind(this)),this._input.addEventListener("input",this._updateDismissButton.bind(this)),this._input.addEventListener("blur",this._onInputBlur.bind(this)),this._isDismissable&&(this._dismissButtonEl.addEventListener("click",this.clear.bind(this)),this._updateDismissButton())}_onInputFocus(){this.el.classList.add(Ps),this._updateDismissButton(),m(this._input,"dismissableInputFocused")}_updateDismissButton(){this._isDismissable&&(this._input.value.length?(this._showDismissButton(),this._dismissButtonEl.disabled=!1):(this._hideDismissButton(),this._dismissButtonEl.disabled=!0))}_hideDismissButton(){this._dismissButtonEl.classList.remove(Ms)}_showDismissButton(){this._dismissButtonEl.classList.add(Ms)}_onInputBlur(){this.el.classList.remove(Ps)}clear(){this._input.value="",this._updateDismissButton(""),this._input.focus(),m(this.el,"clear")}}const Bs={block:"typeahead-input",showList:"typeahead-input__dropdown--show",dropdown:"typeahead-input__dropdown",dropdownList:"typeahead-input__dropdown-list",dropdownText:"typeahead-input__dropdown-text",listItemFocus:"typeahead-input__dropdown-item--highlighted",listItem:"typeahead-input__dropdown-item",liveText:"typeahead-live-text",template:"typeahead-item-template"},qs="i18n_aria_live_text_no-suggestions",Fs="i18n_aria_live_text_one-suggestion",js="i18n_aria_live_text_multiple-suggestions",Hs=500;class zs{constructor(e,t){let{createDismissableInput:n,elementClasses:i=Bs,generateApiUrl:r,liveTextEl:o,liveTextClearTime:s=Hs,onSelect:a,onInput:c=(()=>{}),inputEl:l,dropdownContainerEl:u,dropdownListEl:d,isFullPageTypeahead:h,closeOnEscape:f=!1}=t;this.el=e,this._liveTextClearTime=s,this._elementClasses=i,this._closeOnEscape=f,this._input=l||this.el.querySelector(".".concat(Ds)),this._dropdownContainerEl=u||this.el.querySelector(".".concat(this._elementClasses.dropdown)),this._dropdownListEl=d||this.el.querySelector(".".concat(this._elementClasses.dropdownList)),this._listId=this._dropdownListEl.id,this._generateApiUrl=r,this._onSelect=a,this._onInput=c,this._typeaheadItemTemplate=this.el.querySelector(".".concat(this._elementClasses.template)),this._boundClickOutsideToCloseHandler=this._clickOutsideToCloseHandler.bind(this),this._liveTextEl=o||this.el.querySelector(".".concat(this._elementClasses.liveText)),n&&(this.dismissableInput=new Us(this.el)),this.isFullPageTypeahead=h,this._getLiveTextOptions(),this._resetState(),this._attachEventListeners(),this._requestHandler=p(this._getAndApplyResults.bind(this),500)}_resetState(){this._dropdownListItemEls=[],this._setHighlightedEl(null),this._setExpandedState(!1)}_attachEventListeners(){this.checkForListItemSelectHandler=this._checkForListItemSelect.bind(this),this.hideListHandler=this._hideList.bind(this),this.onKeyDownHandler=this._onKeyDown.bind(this),this.onUserInputHandler=this._onUserInput.bind(this),this.onClearHandler=this._onClear.bind(this),this._input.addEventListener("keydown",this.onKeyDownHandler),this._input.addEventListener("input",this.onUserInputHandler),this._input.addEventListener("focus",this.onUserInputHandler),!this.isFullPageTypeahead&&this._input.addEventListener("blur",this.hideListHandler),this._dropdownListEl.addEventListener("mousedown",this.checkForListItemSelectHandler),this._isDismissable&&this.el.addEventListener("clear",this.onClearHandler)}_removeEventListeners(){this._input.removeEventListener("keydown",this.onKeyDownHandler),this._input.removeEventListener("input",this.onUserInputHandler),this._input.removeEventListener("focus",this.onUserInputHandler),!this.isFullPageTypeahead&&this._input.removeEventListener("blur",this.hideListHandler),this._dropdownListEl.addEventListener("mousedown",this.checkForListItemSelectHandler)}_isListActive(){return this._input.getAttribute("aria-owns")===this._listId&&Boolean(this._input.getAttribute("aria-expanded"))}_clickOutsideToCloseHandler(e){e.target!==this._input&&this._hideList()}_onKeyDown(e){if(!this._isListActive())return;switch(C(e.key)){case k.ARROW_DOWN:e.preventDefault(),this._moveToResult(1);break;case k.ARROW_UP:e.preventDefault(),this._moveToResult(-1);break;case k.ESCAPE:this._closeOnEscape&&this._hideList();break;case k.ENTER:this._checkForListItemSelect(e)}}_moveToResult(e){if(0===this._dropdownListItemEls.length)return;const t=-1===e?-1:0;let n=null===this._highlighted.index?t:this._highlighted.index+e;n<0&&(n=this._dropdownListItemEls.length-1),n>=this._dropdownListItemEls.length&&(n=0),this._setHighlightedEl(n)}_setHighlightedEl(e){this._highlighted&&this._highlighted.el&&(this._highlighted.el.classList.remove(this._elementClasses.listItemFocus),this._highlighted.el.setAttribute("aria-selected",!1)),null===e?(this._highlighted={el:null,index:null},this._input.removeAttribute("aria-activedescendant")):(this._highlighted.el=this._dropdownListItemEls[e],this._highlighted.index=e,this._highlighted.el.setAttribute("aria-selected",!0),this._highlighted.el.classList.add(this._elementClasses.listItemFocus),this._input.setAttribute("aria-activedescendant",this._highlighted.el.id))}_isInputValid(){return this._input.value.length>0}_onUserInput(e){this._onInput(e),this._isInputValid()?this._requestHandler():this._hideList()}_getAndApplyResults(){if(this._isInputValid()){const e=this._input.value;this._makeTypeaheadRequest(e).then(e=>this._appendResults(e)).then(()=>this._showList())}}_makeTypeaheadRequest(e){return V(this._generateApiUrl(e),{sendCookies:!1}).then(e=>e&&JSON.parse(e.responseText)||[])}_getItemEl(){return document.importNode(this._typeaheadItemTemplate.content,!0)}_appendResults(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];this._hideList(),e.forEach((e,t)=>{const n=this._getItemEl(),i=n.querySelector(".".concat(this._elementClasses.listItem)),r=i.querySelector(".".concat(this._elementClasses.dropdownText));i.id="".concat(this._input.name,"-").concat(t+1),r.textContent=e.displayName,r.dataset.id=e.id,this._dropdownListEl.appendChild(n)}),this._dropdownListItemEls=a(this._dropdownListEl.children)}_shouldShowList(){return this._dropdownListItemEls.length>0&&this._isInputValid()}_showList(){this._shouldShowList()?(this._dropdownContainerEl.classList.add(this._elementClasses.showList),document.body.addEventListener("click",this._boundClickOutsideToCloseHandler),this._setExpandedState(!0)):(this._hideList(),this._setExpandedState(!1)),this._setLiveText()}_hideList(){if(this._isListActive()){for(;this._dropdownListEl.firstChild;)this._dropdownListEl.removeChild(this._dropdownListEl.firstChild);this._resetState(),this._dropdownContainerEl.classList.remove(this._elementClasses.showList),document.body.removeEventListener("click",this._boundClickOutsideToCloseHandler)}}_onClear(){this.hideListHandler()}_checkForListItemSelect(e){if(!this._isListActive())return;const t="mousedown"===e.type?e.target:this._highlighted.el;if(!t)return;e.preventDefault();const n=t.classList.contains(this._elementClasses.dropdownText)?t:t.querySelector(".".concat(this._elementClasses.dropdownText))||t.closest(".".concat(this._elementClasses.dropdownText));n&&this.el.contains(n)&&this._updateInputTo(n,e)}_updateInputTo(e,t){this._input.value=e.textContent.trim(),this._input.focus(),"function"==typeof this._onSelect&&this._onSelect(e,t),this._hideList()}_getLiveTextOptions(){this._liveTextNoSuggestions=ws(qs),this._liveTextOneSuggestion=ws(Fs),this._liveTextMultipleSuggestions=ws(js)}_getLiveText(){let e;switch((this._dropdownListItemEls||[]).length){case 0:e=this._liveTextNoSuggestions;break;case 1:e=this._liveTextOneSuggestion;break;default:e=this._liveTextMultipleSuggestions}return e}_setLiveText(){const e=this._getLiveText(),t=document.createElement("p");t.textContent=e,this._liveTextEl.children.length&&(this._liveTextEl.removeChild(this._liveTextEl.firstChild),clearTimeout(this._liveTextTimeout)),this._liveTextEl.appendChild(t),this._liveTextTimeout=setTimeout(()=>{this._liveTextEl.firstChild&&this._liveTextEl.removeChild(this._liveTextEl.firstChild)},this._liveTextClearTime)}_setExpandedState(e){this._input.setAttribute("aria-expanded",e),e&&(this._input.setAttribute("aria-owns",this._listId),this._input.setAttribute("aria-controls",this._listId))}}class Gs{constructor(e,t,n){let{onCloseExpandedSearch:i=(e=>e),isMobileDevice:r=!1}=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};if(this.el=e,this.expandedEl=t,this.placeholderEl=n,this.isMobileDevice=r,!this.el)throw new Error("No element passed in to BaseSearchBar");this.isExpanded=!1,this.type=this.el.getAttribute("data-searchbar-type"),this.firstInput=this.el.querySelector("input:first-of-type"),this.isIOSDevice="iPhone"===navigator.platform||"iPad"===navigator.platform||"iPod"===navigator.platform,this.onCloseExpandedSearch=i,r&&(this.focusTrap=new F(this.expandedEl))}showExpandedSearch(){this.isExpanded=!0,this.isMobileDevice&&(this.focusTrap.init(),this.placeholderEl.classList.add("hidden")),this.placeholderEl.classList.remove("show-on-mobile"),this.placeholderEl.classList.add("hide-on-mobile"),this.expandedEl.classList.add("isExpanded"),document.body.classList.add("no-scroll"),this.isIOSDevice&&(document.body.classList.add("fixed"),this.expandedEl.addEventListener("touchstart",this._onIOSTouchStartEvent)),document.addEventListener("keyup",this._onKeyUpEvent.bind(this)),this.firstInput.focus()}hideExpandedSearch(){this.firstInput.blur(),this.isExpanded=!1,this.isMobileDevice&&(this.focusTrap.tearDown(),this.placeholderEl.classList.remove("hidden")),this.expandedEl.classList.remove("isExpanded"),this.placeholderEl.classList.remove("hide-on-mobile"),this.placeholderEl.classList.add("show-on-mobile"),document.body.classList.remove("no-scroll"),this.isIOSDevice&&(document.body.classList.remove("fixed"),this.expandedEl.removeEventListener("touchstart",this._onIOSTouchStartEvent)),document.removeEventListener("keyup",this._onKeyUpEvent),this.placeholderEl.focus(),this.onCloseExpandedSearch()}_onKeyUpEvent(e){const{key:t,target:n}=e,i="Escape"===t,r="INPUT"===n.tagName;i&&!r?(e.preventDefault(),this.hideExpandedSearch()):"Tab"===t&&this._userIsTabbedOut()&&this.hideExpandedSearch()}_onIOSTouchStartEvent(e){const{target:n}=e;t(n,".".concat(Bs.block))||document.activeElement.blur()}_userIsTabbedOut(){if(this.expandedEl.classList.contains("isExpanded")&&Cr()){return!this.expandedEl.contains(document.activeElement)}return!1}}class Ks extends zs{constructor(e,t){let{generateApiUrl:n,liveTextEl:i,onSelect:r,onInput:o,isFullPageTypeahead:s}=t;super(e,{createDismissableInput:!0,generateApiUrl:n,liveTextEl:i,onSelect:r,onInput:o,isFullPageTypeahead:s})}}const Ws={clearButton:"recent-searches__clear-btn",dropdown:"recent-searches",dropdownList:"recent-searches__list",listItem:"recent-searches__item",listItemClearButton:"recent-searches__item--clear",listItemLink:"recent-searches__item-link",listItemFocus:"recent-searches__item--highlighted",showList:"recent-searches--show"},Vs="i18n_aria_live_text_recent-searches-one-suggestion",Ys="i18n_aria_live_text_recent-searches-multiple-suggestions",Qs="i18n_aria_live_text_recent-searches-cleared";class Xs extends zs{constructor(e,t){let{liveTextEl:n,clearRecentSearchApiBaseUrl:i}=t;if(super(e,{liveTextEl:n,elementClasses:Ws,liveTextClearTime:1e3,closeOnEscape:!0}),!e)throw Error("An element must be provided to RecentSearches");if(this.dropdownContainerEl=e.querySelector(".".concat(Ws.dropdown)),!this.dropdownContainerEl)throw Error("A RecentSearches container element must be in the RecentSearches parent element");this._clearRecentSearchApiBaseUrl=i,this._dropdownListItemEls=a(this.dropdownContainerEl.querySelectorAll(".".concat(Ws.listItem))),this._clearBtnItem=e.querySelector(".".concat(Ws.listItemClearButton)),this._dropdownListItemEls.push(this._clearBtnItem),this._dismissButtonEl=e.querySelector(".".concat(xs))}_attachEventListeners(){this._clearBtn=this.el.querySelector(".".concat(Ws.clearButton)),this._clearRecentSearchesHandler=this._clearRecentSearches.bind(this),this._clearBtn.addEventListener("mousedown",this._clearRecentSearchesHandler),super._attachEventListeners()}_removeEventListeners(){this._clearBtn.removeEventListener("mousedown",this._clearRecentSearchesHandler),super._removeEventListeners()}_onUserInput(){this._shouldShowList()?this._showList():this._hideList()}_redirect(e){e.click()}_clickOutsideToCloseHandler(e){e.target===this._input||this._dismissButtonEl.contains(e.target)||this._hideList()}_checkForListItemSelect(e){if(!this._isListActive())return;const t="mousedown"===e.type?e.target:this._highlighted.el;if(!t)return;e.preventDefault();const n=t.querySelector(".".concat(Ws.listItemLink));n?this._redirect(n):t.classList.contains(Ws.listItemLink)?this._redirect(t):t===this._clearBtnItem&&this._clearRecentSearches()}_shouldShowList(){return this._dropdownListItemEls.length>1&&0===this._input.value.length}_onClear(){this.onUserInputHandler()}_hideList(){this._isListActive()&&(this.dropdownContainerEl.classList.remove(Ws.showList),document.body.removeEventListener("click",this._boundClickOutsideToCloseHandler),this._setExpandedState(!1),this._setHighlightedEl(null))}_getLiveTextOptions(){this._liveTextOneSuggestion=ws(Vs),this._liveTextMultipleSuggestions=ws(Ys),this._liveTextClearedSuggestions=ws(Qs)}_getLiveText(){let e;switch(this._informUserThatSearchesAreCleared?0:this._dropdownListItemEls.length){case 0:e=this._liveTextClearedSuggestions,this._informUserThatSearchesAreCleared=!1;break;case 2:e=this._liveTextOneSuggestion;break;default:e=this._liveTextMultipleSuggestions}return e}_clearRecentSearches(){V(this._clearRecentSearchApiBaseUrl,{method:"DELETE"}).then(()=>{this._removeEventListeners(),this._informUserThatSearchesAreCleared=!0,super._hideList(),super._setLiveText()}).catch(e=>{throw e})}}class Js{constructor(e,t,n){this.el=e,this.mobileTriggerEl=n,this.baseSearchBarsMap=t,this.currentType=this.el.getAttribute("data-current-search-type"),this.switcherTriggerAndTabs=this.el.querySelector(".".concat("switcher-tabs__trigger-and-tabs")),this.switcherTabs=this.el.querySelector(".".concat("switcher-tabs")),this.dropdownList=this.el.querySelector(".".concat("switcher-tabs__list")),this.dropdownTrigger=this.el.querySelector(".".concat("switcher-tabs__placeholder")),this.dropdownPlaceholderText=this.el.querySelector(".".concat("switcher-tabs__placeholder-text")),this._handleSwitcherClick=this._handleSwitcherClick.bind(this),this._initMobileExpandedSwitcher(),this._initCollapsibleSwitcher()}_initMobileExpandedSwitcher(){this.el.addEventListener("click",this._handleSwitcherClick),this.mobileTriggerEl.addEventListener("click",e=>{e.preventDefault(),this.baseSearchBarsMap[this.currentType].showExpandedSearch()}),this.cancelBtn=this.el.querySelector(".".concat("switcher-tabs__cancel-btn")),this.cancelBtn.addEventListener("click",e=>{e.preventDefault(),this.baseSearchBarsMap[this.currentType].hideExpandedSearch()})}_initCollapsibleSwitcher(){this.collapsibleSwitcher=new W(this.switcherTriggerAndTabs,{dropdownContentEl:this.dropdownList,dropdownTriggerEl:this.dropdownTrigger}),this.switcherTriggerAndTabs.addEventListener("open",()=>this._openSwitcher()),this.switcherTriggerAndTabs.addEventListener("close",()=>this._closeSwitcher()),this._updatePlaceholderText()}_openSwitcher(){this.dropdownList.addEventListener("click",this._handleSwitcherClick),this.switcherTabs.classList.remove("hidden"),this.dropdownList.querySelector("button").focus()}_closeSwitcher(){this.dropdownList.removeEventListener("click",this._handleSwitcherClick),this.switcherTabs.classList.add("hidden")}_handleSwitcherClick(e){if(!e.target.classList.contains("switcher-tabs__button")&&!e.target.classList.contains("switcher-tabs__tab"))return;const n=t(e.target,".".concat("switcher-tabs__tab")),i=n.querySelector(".".concat("switcher-tabs__button")).getAttribute("data-switcher-type");i&&n&&this.currentType!==i?(this.collapsibleSwitcher.collapsible.currentListItem=n,this._switchTo(i,n)):this.collapsibleSwitcher.collapsible.close()}_switchTo(e,t){this._updateActiveTab(t),this._updatePlaceholderText(),this.el.setAttribute("data-current-search-type",e),this.collapsibleSwitcher.collapsible.close(),this.baseSearchBarsMap[this.currentType].isExpanded?this.baseSearchBarsMap[e].showExpandedSearch():this.baseSearchBarsMap[e].hideExpandedSearch(),this.currentType=e}_updateActiveTab(e){const n=this.el.querySelector(".".concat("tab-selected"));if(t(n,".".concat("switcher-tabs__tab"))&&(n.setAttribute("aria-selected","false"),n.classList.remove("tab-selected")),e.classList.contains("switcher-tabs__tab")){const t=e.querySelector(".".concat("switcher-tabs__button"));t.classList.add("tab-selected"),t.setAttribute("aria-selected","true")}}_updatePlaceholderText(){let e=this.el.querySelector(".".concat("tab-selected"));e&&(this.dropdownPlaceholderText.textContent=e.textContent)}}class Zs{constructor(e){let{typeaheadApiBaseUrl:t,clearRecentSearchApiBaseUrl:n,shouldSearchOnSelect:i=!0,onCloseExpandedSearch:r,includeSwitcher:o=!0}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(this.el=e,!this.el)throw new Error("No element passed into SearchBar");this.typeaheadApiBaseUrl=t;const s=this.el.querySelector(".".concat("search-bar__live-text"));this.shouldSearchOnSelect=i,this.placeholderEl=this.el.querySelector(".".concat("search-bar__placeholder"));const c=!!this.el.querySelector(".".concat("search-bar__mobile-wrapper"));if(this.baseSearchBarsMap=a(this.el.querySelectorAll(".".concat("base-search-bar"))).reduce((e,t)=>{const n=new Gs(t,this.el,this.placeholderEl,{onCloseExpandedSearch:r,isMobileDevice:c});return e[n.type]=n,e},{}),t){this.baseSearchBarFormEl=this.baseSearchBarsMap.JOBS.el.querySelector(".base-search-bar__form"),this.geoIdInputEl=this.el.querySelector('input[name="geoId"]');const e=this.el.querySelector(".keywords-typeahead-input");new Ks(e,{generateApiUrl:this._generateKeywordsTypeaheadApiUrl.bind(this),liveTextEl:s,onSelect:this._onKeywordsTypeaheadSelect.bind(this)});e.querySelector(".".concat(Ws.dropdown))&&new Xs(e,{clearRecentSearchApiBaseUrl:n,liveTextEl:s}),new Ks(this.el.querySelector(".location-typeahead-input"),{generateApiUrl:this._generateLocationTypeaheadApiUrl.bind(this),liveTextEl:s,onSelect:this._onLocationTypeaheadSelect.bind(this),onInput:this._onLocationTypeaheadInput.bind(this)}),Array.from(this.el.querySelectorAll(".".concat(Ns,".search-input"))).forEach(e=>{new Us(e);e.querySelector(".".concat(Ws.dropdown))&&new Xs(e,{clearRecentSearchApiBaseUrl:n,liveTextEl:s})}),this._addCustomErrorStateHandler()}else Array.from(this.el.querySelectorAll(".".concat(Ns))).forEach(e=>new Us(e));o&&(this.switcher=new Js(e,this.baseSearchBarsMap,this.placeholderEl)),this.setupSearchInputFocusTracking()}_generateKeywordsTypeaheadApiUrl(e){return"".concat(this.typeaheadApiBaseUrl,"?query=").concat(window.encodeURIComponent(e))}_generateLocationTypeaheadApiUrl(e){return"".concat(this.typeaheadApiBaseUrl,"?query=").concat(window.encodeURIComponent(e),"&typeaheadType=GEO&geoTypes=POPULATED_PLACE,ADMIN_DIVISION_2,MARKET_AREA,COUNTRY_REGION")}_onKeywordsTypeaheadSelect(){this.shouldSearchOnSelect&&this._submitForm()}_onLocationTypeaheadSelect(e){this.geoIdInputEl&&(this.geoIdInputEl.value=e.dataset.id),this.shouldSearchOnSelect&&this._submitForm()}_onLocationTypeaheadInput(){this.geoIdInputEl&&(this.geoIdInputEl.value="")}_submitForm(){const e=this.el.querySelector(".keywords-typeahead-input input");null!=e&&e.validity.valueMissing?e.reportValidity():this.baseSearchBarFormEl&&this.baseSearchBarFormEl.submit()}_addCustomErrorStateHandler(){const e=this.el.querySelector(".keywords-typeahead-input input"),t=this.el.querySelector(".keywords-typeahead-input-helper");null==e||e.addEventListener("invalid",n=>{n.preventDefault(),this.baseSearchBarFormEl.classList.add("input-error"),null==t||t.classList.remove("hidden"),e.focus()})}setupSearchInputFocusTracking(){this.el.addEventListener("dismissableInputFocused",e=>{const t=e.target.getAttribute("data-tracking-control-name");t&&window.tracking&&window.tracking.then(e=>{e.fireTrackingEvent("SearchInputFocusEvent",{header:{},controlUrn:"urn:li:control:".concat(E(document),"-").concat(t)})})})}}class $s extends yr{constructor(e){let{enablePageViewTracking:t=!1,shouldHideModal:n=(()=>!1),triggerByOutletEl:i=!0,pushState:r=!0,shouldMoveToTopContainer:o=!0,focusElement:s,pageKey:a}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!e)throw new Error("No element passed into mobile web modal");super(e,{enablePageViewTracking:t,shouldHideModal:n,triggerByOutletEl:i,shouldMoveToTopContainer:o,focusElement:s,pageKey:a}),this.pushState=r,this.hashChangeHandlerRef=this._hashChangeHandler.bind(this)}historyBackClickHandler(){this.close({enableHistoryBack:!1})}_hashChangeHandler(e){const t=e.oldURL&&e.oldURL.split("#")[1];t&&t==="".concat("overlay_").concat(this._el.id)&&this.historyBackClickHandler()}open(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};super.open(e),this._shouldHideModal()||(this.pushState&&history.pushState(this._el.id,"show modal","#".concat("overlay_").concat(this._el.id)),window.addEventListener("hashchange",this.hashChangeHandlerRef))}close(){let{enableHistoryBack:e=!0}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};window.removeEventListener("hashchange",this.hashChangeHandlerRef),this.pushState&&e&&(window.history.replaceState({},document.title,window.location.href.split("#")[0]),history.back()),super.close()}}document.querySelector.bind(document);String.fromCharCode(32);E(document);String.fromCharCode(32);class ea{constructor(e,t){let{isShown:n=!0}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(!e)throw Error("An element must be provided to the dismissable element");if(!t)throw Error("A dismiss button must be provided to the dismissable element");this.el=e,this.dismissBtn=t,this._dismissEvent=e=>this.dismiss(e),n&&this.show()}show(){this.el.classList.add("show"),this.el.classList.remove("dismiss"),this.dismissBtn.addEventListener("click",this._dismissEvent),m(this.el,"show")}dismiss(e){this.el.classList.remove("show"),this.el.classList.add("dismiss"),m(this.el,"dismiss",e),this.dismissBtn.removeEventListener("click",this._dismissEvent)}}function ta(){const e=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return!e||0===e.trim().length};return e.errorMessageSuffix="error_empty",e}function na(e){const t=function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return t.length<e};return t.errorMessageSuffix="error_too_short",t}function ia(e){const t=function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return t.length>e};return t.errorMessageSuffix="error_too_long",t}const ra={session_key:[ta(),na(3),ia(128)],session_password:[ta(),na(6),ia(400)]};function oa(e,t){const n=ra[e];if(!n)throw new Error("No validation rules for element named ".concat(e));for(let e=0;e<n.length;e++)if(n[e](t))return n[e].errorMessageSuffix}var sa=window||e.g;const aa=/^((?!\.(stg|corp)).)*\.linkedin\.(com|cn)$/;function ca(){const e=sa.location?sa.location.hostname:"";return aa.test(e)}function la(){return ca()?ua()?"platform.linkedin.cn":"platform.linkedin.com":ua()?"platform.linkedin-ei.cn":"platform.linkedin-ei.com"}function ua(){const e=sa.location?sa.location.hostname:"";return/\.cn$/.test(e)}function da(e,t,n){let i=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];if("function"!=typeof t||"function"!=typeof n)throw new TypeError("One of the specified callbacks is not a function.");const r=new sa.XMLHttpRequest;r.withCredentials=i,r.open("GET",e,!0),r.onreadystatechange=function(){this.readyState===this.DONE&&(200===this.status&&"function"==typeof t?t(this.responseText):n(this))},r.send()}function ha(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function pa(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var fa,ma,va,ga,ya={ADVERTISING:"ADVERTISING",ANALYTICS_AND_RESEARCH:"ANALYTICS_AND_RESEARCH",FUNCTIONAL:"FUNCTIONAL"},ba="GUEST",Ea="MEMBER",_a=0,wa=1,Ta=2,Sa=(pa(fa={},ba,"li_gc"),pa(fa,Ea,"li_mc"),fa),ka=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,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;for(var o in ha(this,e),t=t||{},this.consentAvailable=!1,this.issuedAt=n,this.userMode=i,this.optedInConsentMap={},ya)t[o]=t[o]||_a,t[o]!==_a&&(this.consentAvailable=!0),this.optedInConsentMap[o]=t[o]===wa||t[o]===_a&&r===wa},Ia=(ma=[ya.ADVERTISING,ya.ANALYTICS_AND_RESEARCH,ya.FUNCTIONAL],va=[_a,wa,Ta,_a],ga=new RegExp(["^(\\d+)","(\\d+)","(\\d+)","((?:.|\\s)+)"].join(";")),{parseConsentBody:function(e,t){var n=e.match(ga);if(!n)return{error:"Invalid consent body encoding",consent:new ka};for(var i=parseInt(n[1],10),r={},o=0;o<ma.length;o++)r[ma[o]]=va[i>>2*o&3];var s=new Date(1e3*parseInt(n[2],10)),a=parseInt(n[3],10),c=_a;return a>=0&&a<=3&&(c=va[a]),{error:null,consent:new ka(r,s,t,c)}}}),Ca=new RegExp(["^(\\d+)","((?:.|\\s)+)"].join(";")),Aa=function(e,t){var n=t.match(new RegExp("(?:^|; *)".concat(e,"=([^;]*)")));return n&&n.length>1?n[1]:null},Oa=function(e,t){var n=Aa(Sa[e],t);return n?La(n,e):Aa(Sa[ba],t)||Aa(Sa[Ea],t)?Ra(Ta):Ra(wa)},Ra=function(e){var t={};for(var n in ya)t[n]=e;return{error:null,consent:new ka(t,null,null,e)}};var La=function(e,t){e&&e.length>1&&'"'==e.charAt(0)&&'"'==e.charAt(e.length-1)&&(e=e.substring(1,e.length-1));var n,i=null;try{i=(n=e,"undefined"==typeof atob&&"undefined"!=typeof Buffer?Buffer.from(n,"base64").toString("binary"):atob(n)).match(Ca)}catch(e){}if(!i)return{error:"Invalid consent encoding",consent:new ka};var r=parseInt(i[1],10),o=i[2];switch(r){case 1:return Ia.parseConsentBody(o,t);default:return{error:"Invalid encoded consent version ".concat(r),consent:new ka}}},Na=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:document.cookie;return e||(e=Aa("liap",t)?Aa(Sa[Ea],t)?Ea:ba:Aa(Sa[ba],t)?ba:Ea),Oa(e,t)};function Pa(e){return function(){let e=Na();return!e||e.consent.optedInConsentMap.ADVERTISING}()&&function(e){return e["compliance.isGDPROptIn"]}(e)}function xa(e){return function(){let e=Na();return!e||e.consent.optedInConsentMap.ANALYTICS_AND_RESEARCH}()}function Ma(e){return function(){let e=Na();return!e||e.consent.optedInConsentMap.FUNCTIONAL}()}function Da(e){for(let t=1;t<arguments.length;t++){const n=arguments[t];if(n){const t=Object.keys(n);for(let i=0;i<t.length;i++){const r=t[i];e[r]=n[r]}}}return e}function Ua(e){const t=new sa.Date;t.setSeconds(0),t.setMilliseconds(0);const n=Math.floor(t.getMinutes()/e)*e;return t.setMinutes(n),t.getTime()}function Ba(){return/utagdb=[^;]+/.test(sa.document.cookie)}let qa;const Fa={},ja={};function Ha(){return"https://".concat(ca()?ua()?"www.linkedin.cn":"www.linkedin.com":ua()?"www.linkedin-ei.cn":"www.linkedin-ei.com").concat("/litms/api/metadata/user")}function za(){return function(e){let t=Da({},e);return t["compliance.isAdvertisingOptIn"]=Pa(t),t["compliance.isAnalyticsAndResearchOptIn"]=xa(),t["compliance.isFunctionalOptIn"]=Ma(),t}(Fa)}function Ga(e){if(!ja[e]){const t=function(e){return"https://".concat(la(),"/litms/allowlist/").concat(encodeURIComponent(e))}(e),n=new Promise((e,n)=>{da(t,t=>{e(JSON.parse(t))},e=>{n(e)},!1)});ja[e]=n}return ja[e]}sa.utag_data||(sa.utag_data={});const Ka="undefined"!=typeof window&&window&&"node"!==window.appEnvironment;let Wa;function Va(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:5,n=null;return"string"==typeof e&&(n="https://".concat(la(),"/litms/utag/").concat(e,"/utag.js?cb=").concat(Ua(t))),n}function Ya(){return function(){if(void 0===Wa&&Ka){const e=sa.document.cookie.match(/litms_utag_override=([^;]+)/);Wa=e?e[1]:""}return Wa}().length>0}function Qa(e,t,n,i){e.onLoadRulesRunOnce(n);let r=Da({},t,za());e.view(r),Ba()&&sa.trackingEventDebugData.push({profileName:i,eventType:"PV",trackingData:r})}function Xa(e,t,n,i){e.onLoadRulesRunOnce(n);let r=Da({},t,za());e.link(r),Ba()&&sa.trackingEventDebugData.push({profileName:i,eventType:"CI",trackingData:r})}function Ja(e,t,n){if(function(e){sa.utag=e}(e),t instanceof Array&&t.length>0){const i=t.length;for(let r=0;r<i;r++){const i=t.shift();i.isControlInteraction?Xa(e,i.data,i.callback,n):Qa(e,i.data,i.callback,n)}}}function Za(e,t){!function(e){return"object"==typeof e&&"function"==typeof e.fireTrackingEvent}(e)?console.error("Unable to fire tracking event"):e.fireTrackingEvent(t.info.name,t.body)}function $a(e,t){return"urn:li:externalMarketingTag:(".concat(function(e){const t=e.data["ut.profile"],n=e.cfg.v;return"urn:li:tagManagementSystemProfile:(".concat("tealium",",").concat(t,",").concat(n,")")}(e),",").concat(parseInt(t),")")}function ec(e){const t=function(e){return Object.keys(e.loader.cfg).filter(t=>1===e.loader.cfg[t].send&&0!==e.loader.cfg[t].load)}(e).map(t=>function(e,t){return{tagUrn:$a(e,t)}}(e,t));if(0!==t.length)return{info:{name:"ExternalMarketingTagFireEvent"},body:{header:{},requestHeader:{},tags:t}}}sa.utag_cfg_ovrd=sa.utag_cfg_ovrd||{},sa.trackingEventDebugData=sa.trackingEventDebugData||[],sa.utag_cfg_ovrd.noview=!0,sa.utag_cfg_ovrd.nocookie=!0;const tc=Ka&&new RegExp("bot|google|aolbuild|baidu|bing|msn|duckduckgo|teoma|slurp|yandex|sogou|facebook|alexa","i").test(sa.navigator.userAgent),nc={};let ic,rc,oc,sc={};class ac{constructor(){let{profileName:e,tracking2Instance:t,enableAllowlisting:n=!1,cacheBusterInterval:i}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.isInitialized=!1,this.isAllowlistingEnabled=!1,this._allowlistReadyPromise=Promise.resolve({}),this.isContainerTagLoaded=!1,this._queue=[],this.allowlist={pageKey:{},controlUrn:{}},this.tracking2Instance=t,this.profileName=e,this.enableAllowlisting=n,this.cacheBusterInterval=i}initialize(){return this._shouldInitialize()?this.isInitialized?(console.warn("Initialize should not be called more that once"),this.initializePromise.then()):(this.isInitialized=!0,this.initializePromise=new Promise((e,t)=>{this.enableAllowlisting?(this.isAllowlistingEnabled=!0,this._onInitializeSuccessCallback=e,this._onInitializeFailureCallback=t,this._allowlistReadyPromise=Ga(this.profileName).then(e=>this._processAllowlistResult(e)).catch(e=>console.error("Unable to retrieve allowlists for profile : ".concat(this.profileName),e))):this._loadContainerTag(e,t)}),this.profileName&&(nc[this.profileName]=this),this.initializePromise):Promise.resolve()}_processAllowlistResult(e){Object.keys(e).forEach(t=>this.addValuesToAllowlist(t,e[t]))}_loadContainerTag(e,t){void 0!==sa.utag&&(sa.utag=void 0),void 0!==sa.utag_data&&(sa.utag_data=void 0);const n=function(){if(!qa){const e=Ha();qa=new Promise((t,n)=>{da(e,e=>{try{t(JSON.parse(e))}catch(e){console.error("Invalid JSON format of userSettings"),n(e)}},e=>{n(e)})})}return qa}().then(e=>{Object.keys(e).forEach(t=>{!function(e,t){const n="string"!=typeof t?"":"".concat(t,".");"object"==typeof e&&Object.keys(e).forEach(t=>{Fa[n+t]=e[t]})}(e[t],t)})}).catch(e=>{console.error("Unable to get user settings while calling loading container tag",e)}),i=(r=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"main",t=arguments.length>1?arguments[1]:void 0;return Ya()?Wa:Va(e,t)}(this.profileName,this.cacheBusterInterval),new Promise(e=>{const t=sa.document.createElement("script");t.type="text/javascript",t.src=r,t.async=!0,t.onload=e,sa.document.getElementsByTagName("head")[0].appendChild(t)}));var r;Promise.all([n,i]).then(()=>{this.isContainerTagLoaded=!0,this._uTag=sa.utag,function(e){const t=[];e.onLoadRulesRunOnce=function(e){t.push(e)};const n=e.loader.initcfg;e.loader.initcfg=function(){if(n.call(this,arguments),t.length>0){t.shift()()}}}(this._uTag),this._processQueuedEvents();const t={info:{name:"TagManagementSystemLoadEvent"},body:{header:{},requestHeader:{}}};"object"==typeof this.tracking2Instance&&Za(this.tracking2Instance,t),e(t)}).catch(e=>{console.error("Unable to complete loading container tag",e),t()})}_shouldInitialize(){return!tc}_shouldProcessEvent(e){return tc?Promise.resolve(!1):this.isAllowlistingEnabled?new Promise(t=>{this._allowlistReadyPromise.then(()=>{t(this._isEventAllowlisted(e))})}):Promise.resolve(!0)}_isEventAllowlisted(e){return void 0!==e.controlUrn?this._isEventAllowlistedByControlUrn(e):this._isEventAllowlistedByPageKey(e)}_isEventAllowlistedByPageKey(e){return void 0!==this.allowlist.pageKey[e.pageKey]}_isEventAllowlistedByControlUrn(e){return void 0!==this.allowlist.controlUrn[e.controlUrn]}addValuesToAllowlist(e,t){"string"==typeof e&&Array.isArray(t)&&void 0!==this.allowlist[e]&&t.forEach(t=>{this.allowlist[e][t]=!0})}_processQueuedEvents(){this.isContainerTagLoaded?Ja(this._uTag,this._queue,this.profileName):this.isInitialized&&this.isAllowlistingEnabled&&this._loadContainerTag(this._onInitializeSuccessCallback,this._onInitializeFailureCallback)}_fireAuditEvent(){const e=ec(this._uTag);return void 0!==this.tracking2Instance&&void 0!==e&&Za(this.tracking2Instance,e),e}_createCallbackForAuditEvent(e){const t=this;return function(){const n=t._fireAuditEvent();"function"==typeof e&&e(n)}}_checkForCookieConsent(){Na().consent.consentAvailable&&!rc?this._refireTracking():ic=setTimeout(()=>{this._checkForCookieConsent()},2e3)}_refireTracking(){sc.payloads&&sc.payloads.forEach(e=>{const{data:t,callback:n}=e;t.cookieConsentGiven=!0,this.trackPageView(t,n)})}_savePayloadForRefire(e,t){if(Ka){rc=!1;const{payloads:n=[],url:i}=sc,r=location.href,o={data:e,callback:t},s=r!==i?[]:n;s.push(o),sc={url:r,payloads:s},ic||(ic=setTimeout(()=>{this._checkForCookieConsent()},2e3))}}trackPageView(e,t){return Na().consent.consentAvailable||this._savePayloadForRefire(e,t),this._shouldProcessEvent(e).then(n=>{n&&(this._queue.push({isControlInteraction:!1,data:e,callback:this._createCallbackForAuditEvent(t)}),this._processQueuedEvents())})}trackControlInteraction(e,t){return this._shouldProcessEvent(e).then(n=>{n&&(this._queue.push({isControlInteraction:!0,data:e,callback:this._createCallbackForAuditEvent(t)}),this._processQueuedEvents())})}}function cc(e){let{event:t,litmsInstance:n,pageKey:i}=e;const r=t.target.getAttribute("data-tracking-control-name"),o=t.target.hasAttribute("data-tracking-litms");r&&o&&n.trackControlInteraction({controlUrn:"urn:li:control:".concat(i,"-").concat(r)})}class lc{constructor(e){if(this.trackingInstance=e,this.pageKey=E(document),this.litmsProfileName=function(e){const t=e.querySelector('meta[name="litmsProfileName"]');return t?t.content:""}(document),!this.litmsProfileName)throw Error('Page missing "litmsProfileName" meta tag.');this.litmsInstance=new ac({tracking2Instance:this.trackingInstance,profileName:this.litmsProfileName}),this.litmsInstance.initialize(),this.clickEventListener=e=>cc({event:e,litmsInstance:this.litmsInstance,pageKey:this.pageKey}),this.keydownEventListener=e=>{"Enter"!==e.key&&" "!==e.key&&"Spacebar"!==e.key||cc({event:e,litmsInstance:this.litmsInstance,pageKey:this.pageKey})},document.body.addEventListener("click",this.clickEventListener,!0),document.body.addEventListener("keydown",this.keydownEventListener,!0)}trackPageView(){let{pageKey:e="",customParameters:t={}}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!("string"==typeof e||e instanceof String))throw new Error("The pageKey is not a string!");if(!("object"==typeof t||t instanceof Object))throw new Error("CustomParamteres is expected to be an object.");const n=e||this.pageKey;this.litmsInstance&&this.litmsInstance.trackPageView(ee({pageKey:n},t))}}function uc(e){if(!oc){if(!e)throw new Error("No trackingInstance passed in!");oc=new lc(e)}return oc}function dc(){try{const e={};return void 0!==window.globalThis.apfcDf&&(e.df=window.globalThis.apfcDf),JSON.stringify(e)}catch(e){return JSON.stringify({error:e.message})}}const hc='[data-js-module-id="guest-input"]';class pc{constructor(e){let{customValidate:t,fireTrackingOnInit:n=!0,initSuccess:i,initFailure:r}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!e)throw Error("An element must be provided to sign in form");this.el=e,this._customValidate=t,this._fireTrackingOnInit=n,this.initSuccess=i,this.initFailure=r,this.showText=ws("i18n_sign_in_form_show_text"),this.showLabelText=ws("i18n_sign_in_form_show_label"),this.hideText=ws("i18n_sign_in_form_hide_text"),this.hideLabelText=ws("i18n_sign_in_form_hide_label"),this.usernameEl=this.el.querySelector("input[name=".concat("session_key","]")),this.passwordEl=this.el.querySelector("input[name=".concat("session_password","]")),this.usernameElId=this.usernameEl.id,this.passwordElId=this.passwordEl.id,this.usernameMsgEl=this.el.querySelector("".concat('[data-js-module-id="guest-input__message"]','[for="').concat(this.usernameElId,'"]')),this.passwordMsgEl=this.el.querySelector("".concat('[data-js-module-id="guest-input__message"]','[for="').concat(this.passwordElId,'"]')),this.sessionRedirectEl=this.el.querySelector("input[name=".concat("session_redirect","]")),this.passwordVisibilityToggle=this.el.querySelector("".concat('[data-id="sign-in-form__password-visibility-toggle"]')),this.anonymousLoginToggleInput=this.el.querySelector(".anonymous-login-toggle input"),this.passwordVisibilityToggle.addEventListener("click",this._togglePasswordVisibility.bind(this)),this.el.addEventListener("submit",e=>{if(e.preventDefault(),!this._validate()){if(this._customValidate)return this._customValidate(this.el);if(this.el.appendChild(this._createHiddenInputElement("apfc",dc())),this.anonymousLoginToggleInput&&this.anonymousLoginToggleInput.checked){const t=this.sessionRedirectEl.value,n=h("/public-profile/settings/anonymousLogin","csrfToken",S(f("JSESSIONID")));this.sessionRedirectEl.value=h(n,"originalSessionRedirect",t);try{localStorage.setItem("voyager-web:anonymous-login",Date.now())}catch(e){}}this.el.submit()}}),window.tracking&&window.tracking.then(e=>{const t=E(document,{skipSuffix:!0}),n=t+"_login-form",i=this.el.querySelector('[data-id="sign-in-form__submit-btn"]'),r="".concat(t,"-").concat(i.dataset.trackingControlName),o=fr(e),s=this._createHiddenInputElement("pageInstance",o),a=this._createHiddenInputElement("controlId",r);this.el.appendChild(a),this.el.appendChild(s),this._fireTrackingOnInit&&this.fireTracking(e,n)})}fireTracking(e,t){hr(e,"ajax",t),uc(e).trackPageView({pageKey:t})}setUsernameInputValue(e){this.usernameEl.value=e}resetFormState(){this.usernameEl.value="",this.passwordEl.value="","text"===this.passwordEl.getAttribute("type")&&this._togglePasswordVisibility()}_createHiddenInputElement(e,t){const n=document.createElement("input");return n.setAttribute("type","hidden"),n.setAttribute("name",e),n.setAttribute("value",t),n}_togglePasswordVisibility(){"password"===this.passwordEl.getAttribute("type")?(this.passwordEl.setAttribute("type","text"),this.passwordVisibilityToggle.innerText=this.hideText,this.passwordVisibilityToggle.setAttribute("aria-label",this.hideLabelText)):(this.passwordEl.setAttribute("type","password"),this.passwordVisibilityToggle.innerText=this.showText,this.passwordVisibilityToggle.setAttribute("aria-label",this.showLabelText))}_validate(){const e=oa(this.usernameEl.name,this.usernameEl.value);if(e){this.usernameEl.closest(hc).classList.add("input-error"),this.usernameMsgEl.classList.remove("hidden");const t="".concat("i18n_username","_").concat(e);return this.usernameMsgEl.innerText=ws(t),this.usernameEl.focus(),!0}this.usernameEl.closest(hc).classList.remove("input-error"),this.usernameMsgEl.classList.add("hidden");const t=oa(this.passwordEl.name,this.passwordEl.value);if(t){this.passwordEl.closest(hc).classList.add("input-error"),this.passwordMsgEl.classList.remove("hidden");const e="".concat("i18n_password","_").concat(t);return this.passwordMsgEl.innerText=ws(e),this.passwordEl.focus(),!0}this.passwordEl.closest(hc).classList.remove("input-error"),this.passwordMsgEl.classList.add("hidden")}}const fc=30,mc="cta-modal";class vc{constructor(e){let{daysCoolOff:t=fc,dismissOnOutsideClick:n=!0,dismissOnScroll:i=!1,dismissBtnEl:r,coolOffKey:o=mc}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!e)throw Error("An element must be provided to cta modal");this.el=e,this.coolOffPeriod=24*t*60*60*1e3,this.coolOffKey=o,this.dismissBtnEl=r||this.el.querySelector(".cta-modal__dismiss-btn"),this._dismissEvent=e=>this._dismiss(e),this._interactionEvent=e=>this._interactionListener(e),this.dismissOnOutsideClick=n,this.dismissOnScroll=i,this._hideModal()?m(this.el,"didNotOpen"):(this.dismissable=new ea(this.el,this.dismissBtnEl,{isShown:!1}),this.dismissable.show(),this._addEventListeners())}_addEventListeners(){this.el.addEventListener("dismiss",this._dismissEvent),this.dismissOnOutsideClick&&document.body.addEventListener("click",this._interactionEvent),this.dismissOnScroll&&window.addEventListener("scroll",this._interactionEvent)}_dismiss(e){this._hardDismissal(e)&&this._setCoolOff(e),this._removeEventListeners()}_removeEventListeners(){this.el.removeEventListener("dismiss",this._dismissEvent),this.dismissOnOutsideClick&&document.body.removeEventListener("click",this._interactionEvent),this.dismissOnScroll&&window.removeEventListener("scroll",this._interactionEvent)}_interactionListener(e){this.el.contains(e.target)||this.dismissable.dismiss()}_setCoolOff(){try{localStorage.setItem(this.coolOffKey,Date.now())}catch(e){return""}}_hideModal(){try{const e=localStorage.getItem(this.coolOffKey);if(e){return Date.now()-e<this.coolOffPeriod||(localStorage.removeItem(this.coolOffKey),!1)}}catch(e){return!1}}_hardDismissal(e){return e.detail&&this.dismissBtnEl.contains(e.detail.target)}}const gc="sign-in-card";class yc{constructor(e){let{daysCoolOff:t,dismissOnOutsideClick:n,dismissOnScroll:i,dismissBtnEl:r,coolOffKey:o=gc}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!e)throw Error("An element must be provided to sign in card");this.el=e,this.dismissBtnEl=r;const s=this.el.querySelector('[data-id="sign-in-form"]');s&&new pc(s),this.ctaModal=new vc(this.el,{daysCoolOff:t,dismissOnOutsideClick:n,dismissOnScroll:i,dismissBtnEl:this.dismissBtnEl,coolOffKey:o})}}!function(){if("function"==typeof window.CustomEvent)return!1;window.CustomEvent=function(e,t){t=t||{bubbles:!1,cancelable:!1,detail:null};var n=document.createEvent("CustomEvent");return n.initCustomEvent(e,t.bubbles,t.cancelable,t.detail),n}}(),function(){if("function"==typeof window.EventTarget)try{return!new e}catch(e){}const e=function(){this.listeners={}};e.prototype.listeners=null,e.prototype.addEventListener=function(e,t){e in this.listeners||(this.listeners[e]=[]),this.listeners[e].push(t)},e.prototype.removeEventListener=function(e,t){if(e in this.listeners)for(var n=this.listeners[e],i=0,r=n.length;i<r;i++)if(n[i]===t)return void n.splice(i,1)},e.prototype.dispatchEvent=function(e){if(!(e.type in this.listeners))return!0;for(var t=this.listeners[e.type].slice(),n=0,i=t.length;n<i;n++)t[n].call(this,e);return!e.defaultPrevented},window.EventTarget=e}();const bc={GOOGLE_ERROR:"googleError",GOOGLE_USER_FETCHED:"googleUserFetched",INITIALIZED:"initialized",PROMPT_MOMENT:"promptMomentNotification",TOKEN_FETCHED:"tokenFetched"},Ec={INITIALIZATION:"initialization",AUTHENTICATION:"authentication"},{GOOGLE_ERROR:_c,GOOGLE_USER_FETCHED:wc,INITIALIZED:Tc}=bc,{INITIALIZATION:Sc,AUTHENTICATION:kc}=Ec;EventTarget;var Ic={exports:{}};function Cc(e){this.message=e}Cc.prototype=new Error,Cc.prototype.name="InvalidCharacterError";var Ac="undefined"!=typeof window&&window.atob&&window.atob.bind(window)||function(e){var t=String(e).replace(/=+$/,"");if(t.length%4==1)throw new Cc("'atob' failed: The string to be decoded is not correctly encoded.");for(var n,i,r=0,o=0,s="";i=t.charAt(o++);~i&&(n=r%4?64*n+i:i,r++%4)?s+=String.fromCharCode(255&n>>(-2*r&6)):0)i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(i);return s};var Oc=function(e){var t=e.replace(/-/g,"+").replace(/_/g,"/");switch(t.length%4){case 0:break;case 2:t+="==";break;case 3:t+="=";break;default:throw"Illegal base64url string!"}try{return function(e){return decodeURIComponent(Ac(e).replace(/(.)/g,(function(e,t){var n=t.charCodeAt(0).toString(16).toUpperCase();return n.length<2&&(n="0"+n),"%"+n})))}(t)}catch(e){return Ac(t)}};function Rc(e){this.message=e}Rc.prototype=new Error,Rc.prototype.name="InvalidTokenError",Ic.exports=function(e,t){if("string"!=typeof e)throw new Rc("Invalid token specified");var n=!0===(t=t||{}).header?0:1;try{return JSON.parse(Oc(e.split(".")[n]))}catch(e){throw new Rc("Invalid token specified: "+e.message)}},Ic.exports.InvalidTokenError=Rc;const Lc=bc,Nc=Ec,{GOOGLE_USER_FETCHED:Pc,GOOGLE_ERROR:xc,INITIALIZED:Mc}=Lc,{INITIALIZATION:Dc}=Nc;function Uc(e){var t=e.intersectionRect;return t.width>=0&&t.height>=0}function Bc(e){try{return e.getBoundingClientRect()}catch(e){if("object"==typeof e&&null!==e&&16389==(65535&e.number))return{top:0,bottom:0,left:0,width:0,height:0,right:0,x:0,y:0};throw e}}function qc(e,t){return Math.round(e-t)}var Fc,jc=(Fc=function(e,t){return(Fc=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}Fc(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),Hc=function(){function e(){this.items=[]}return e.prototype.remove=function(e){for(var t=this.items.length,n=0;n<t;n++)this.removePredicate(e,this.items[n])&&(this.items.splice(n,1),n--,t--)},e.prototype.clear=function(){this.items=[]},e.prototype.push=function(e){this.items.push(e)},e.prototype.isEmpty=function(){return 0===this.items.length},e}(),zc=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return jc(t,e),t.prototype.removePredicate=function(e,t){return"string"==typeof e?t.id===e:t.callback===e},t}(Hc),Gc=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return jc(t,e),t.prototype.removePredicate=function(e,t){return t===e},t}(Hc),Kc=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return jc(t,e),t.prototype.removePredicate=function(e,t){return"string"==typeof e?t.id===e:"function"==typeof e?t.callback===e:t.el===e},t}(Hc),Wc=function(){return 0},Vc=!("undefined"==typeof window||!window||"undefined"==typeof document||!document),Yc=Vc&&!!window.requestAnimationFrame,Qc={hasDOM:Vc,hasRAF:Yc,getScrollTop:Wc,getScrollLeft:Wc,getHeight:Wc,getWidth:Wc,rAF:Yc?window.requestAnimationFrame.bind(window):function(e){e()},meta:{width:0,height:0,scrollTop:0,scrollLeft:0,x:0,y:0,top:0,left:0},version:0,lastVersion:0,updateMeta:Wc,get isDirty(){return Qc.version!==Qc.lastVersion},document:window.document,IntersectionObserver:Vc&&window.IntersectionObserver,performance:Vc&&window.performance};function Xc(){++Qc.version}function Jc(){var e=null!=document.scrollingElement;Qc.getScrollTop=e?function(){return document.scrollingElement.scrollTop}:function(){return window.scrollY},Qc.getScrollLeft=e?function(){return document.scrollingElement.scrollLeft}:function(){return window.scrollX}}Vc&&(Qc.getHeight=function(){return window.innerHeight},Qc.getWidth=function(){return window.innerWidth},Qc.updateMeta=function(){Qc.meta.height=Qc.getHeight(),Qc.meta.width=Qc.getWidth(),Qc.meta.scrollLeft=Qc.getScrollLeft(),Qc.meta.scrollTop=Qc.getScrollTop(),Qc.lastVersion=Qc.version},Qc.updateMeta(),"loading"!==document.readyState?Jc():document.addEventListener("DOMContentLoaded",Jc),window.addEventListener("resize",Xc,!1),window.addEventListener("scroll",Xc,!1));var Zc=function(){function e(){this.reads=[],this.work=[],this.running=!1}return e.prototype.scheduleRead=function(e){this.reads.unshift(e),this.run()},e.prototype.scheduleWork=function(e){this.work.unshift(e),this.run()},e.prototype.run=function(){var e=this;this.running||(this.running=!0,Qc.rAF((function(){e.running=!1;for(var t=0,n=e.reads.length;t<n;t++)e.reads.pop()();t=0;for(var i=e.work.length;t<i;t++)e.work.pop()();(e.work.length>0||e.reads.length>0)&&e.run()})))},e}(),$c=null;var el=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),tl="xxxx".replace(/[xy]/g,(function(e){var t=16*Math.random()|0;return("x"===e?t:3&t|8).toString(16)})),nl=0,il=function(){function e(e,t,n,i,r,o,s,a,c,l){this.dateNow=e,this.highResTime=t,this.scrollTop=n,this.scrollLeft=i,this.width=r,this.height=o,this.x=s,this.y=a,this.top=c,this.left=l}return e.generate=function(t){void 0===t&&(t=window);var n=this.revalidateRootMeta(t);return new e(Date.now(),performance.now(),n.scrollTop,n.scrollLeft,n.width,n.height,n.x,n.y,n.top,n.left)},e.revalidateRootMeta=function(e){void 0===e&&(e=document);var t,n={width:0,height:0,scrollTop:0,scrollLeft:0,x:0,y:0,top:0,left:0};return Qc.isDirty&&Qc.updateMeta(),e===window||e===document?(n.height=Qc.meta.height,n.width=Qc.meta.width,n.scrollLeft=Qc.meta.scrollLeft,n.scrollTop=Qc.meta.scrollTop,n):(t=Bc(e),n.scrollTop=e.scrollTop,n.scrollLeft=e.scrollLeft,n.width=t.width,n.height=t.height,n.x=t.x,n.y=t.y,n.top=t.top,n.left=t.left,n)},e}();function rl(){return nl+++tl}var ol=function(){function e(e,t){this.isTicking=!1,this.toRemove=[],this.engine=e||($c||($c=new Zc)),this.root=t||window}return e.prototype.tick=function(){if(this.queue.isEmpty())this.isTicking=!1;else{if(this.toRemove.length>0){for(var e=0;e<this.toRemove.length;e++)this.queue.remove(this.toRemove[e]);this.toRemove=[]}this.applyQueue(il.generate(this.root)),this.engine.scheduleRead(this.tick.bind(this))}},e.prototype.scheduleWork=function(e){this.engine.scheduleWork(e)},e.prototype.scheduleRead=function(e){this.engine.scheduleRead(e)},e.prototype.queryElement=function(e,t){var n,i,r=this;this.engine.scheduleRead((function(){n=Bc(e),i=il.generate(r.root)})),this.engine.scheduleWork((function(){t(n,i)}))},e.prototype.unwatch=function(e){this.toRemove.push(e)},e.prototype.unwatchAll=function(){this.queue.clear()},e.prototype.startTicking=function(){this.isTicking||(this.isTicking=!0,this.engine.scheduleRead(this.tick.bind(this)))},e}(),sl=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.queue=new zc,t}return el(t,e),t.prototype.applyQueue=function(e){for(var t=0;t<this.queue.items.length;t++){var n=this.queue.items[t],i=n.id;(0,n.callback)(e,i)}},t.prototype.watch=function(e){this.startTicking();var t=rl();return this.queue.push({callback:e,id:t}),t},t}(ol),al=function(e){function t(t){var n=e.call(this,void 0,window)||this;return n.predicate=t,n}return el(t,e),t.prototype.applyQueue=function(t){this.predicate(t)&&e.prototype.applyQueue.call(this,t)},t}(sl),cl=function(e){function t(t,n,i){void 0===i&&(i=!1);var r=e.call(this,t,n)||this;return r.lastVersion=Qc.version,r.queue=new Kc,r.ALLOW_CACHED_SCHEDULER=i,r}return el(t,e),Object.defineProperty(t.prototype,"isDirty",{get:function(){return Qc.version!==this.lastVersion},enumerable:!1,configurable:!0}),t.prototype.applyQueue=function(e){for(var t=0;t<this.queue.items.length;t++){var n=this.queue.items[t],i=n.callback,r=n.el,o=n.id,s=n.clientRect;!this.isDirty&&s&&this.ALLOW_CACHED_SCHEDULER||(s=this.queue.items[t].clientRect=Bc(r)),i(e,o,s)}this.lastVersion=Qc.version},t.prototype.watch=function(e,t,n){this.startTicking(),n=n||rl();return this.queue.push({el:e,callback:t,id:n,clientRect:null}),n},t}(ol),ll=null;var ul=function(){function e(){this.queue=new Gc}return e.prototype.listen=function(e){this.queue.push(e)},e.prototype.unlisten=function(e){this.queue.remove(e)},e.prototype.trigger=function(e){for(var t=0;t<this.queue.items.length;t++)this.queue.items[t](e)},e}(),dl=function(){function e(e){this.scheduler=new al(e.bind(this))}return e.prototype.trigger=function(){},e.prototype.listen=function(e){this.state=il.generate(),this.scheduler.watch(e)},e.prototype.unlisten=function(e){this.scheduler.unwatch(e)},e}(),hl=null;function pl(e,t){var n=(hl||(hl={scroll:new dl((function(e){var t=this.state,n=t.scrollTop,i=t.scrollLeft;return this.state=e,n!==e.scrollTop||i!==e.scrollLeft})),resize:new dl((function(e){var t=this.state,n=t.width,i=t.height;return this.state=e,i!==e.height||n!==e.width})),destroy:new ul,beforeunload:new ul,hide:new ul,show:new ul}))[e];n&&n.listen(t)}function fl(e,t){if(hl){var n=hl[e];n&&n.unlisten(t)}}function ml(e,t){if(hl){var n=hl[e];n&&n.trigger(t)}}function vl(e){(ll||(ll=new sl)).scheduleWork(e)}function gl(e){var t=e.left,n=e.right,i=e.top,r=e.bottom;return{left:t,x:t,top:i,y:i,bottom:r,right:n,width:n-t,height:r-i}}Qc.hasDOM&&(window.addEventListener("beforeunload",(function(){ml("beforeunload"),ml("destroy")})),document.addEventListener("visibilitychange",(function(){"visible"===document.visibilityState?ml("show"):ml("hide")})));var yl=function(){function e(e,t){void 0===t&&(t={}),this.records={},this.callback=e,t.threshold=t.threshold||0,this.rootMarginObj=function(e){var t=e.split(" ").map((function(e){return parseInt(e,10)}));switch(t.length){case 2:return{top:t[0],left:t[1],bottom:t[0],right:t[1]};case 3:return{top:t[0],left:t[1],bottom:t[2],right:t[1]};case 4:return{top:t[0],left:t[1],bottom:t[2],right:t[3]};default:return{top:0,left:0,bottom:0,right:0}}}(t.rootMargin||"0px"),this.root=t.root||null,Array.isArray(t.threshold)?this.thresholds=t.threshold:this.thresholds=[t.threshold],this.scheduler=new cl(void 0,this.root,t.ALLOW_CACHED_SCHEDULER)}return e.prototype.observe=function(e){var t=this,n=e,i=n.__spanielId=n.__spanielId||rl();return this.scheduler.watch(e,(function(e,i,r){t.onTick(e,i,r,n)}),n.__spanielId),i},e.prototype.onTick=function(e,t,n,i){var r=this,o=this.generateEntryEvent(e,n,i),s=o.numSatisfiedThresholds,a=o.entry,c=this.records[t]||(this.records[t]={entry:a,numSatisfiedThresholds:0});s===c.numSatisfiedThresholds&&a.isIntersecting===c.entry.isIntersecting||(c.numSatisfiedThresholds=s,c.entry=a,this.scheduler.scheduleWork((function(){r.callback([a])})))},e.prototype.unobserve=function(e){this.scheduler.unwatch(e.__spanielId),delete this.records[e.__spanielId]},e.prototype.disconnect=function(){this.scheduler.unwatchAll(),this.records={}},e.prototype.takeRecords=function(){return[]},e.prototype.generateEntryEvent=function(e,t,n){for(var i=0,r=function(e,t,n,i){if("none"===n.style.display)return{time:e.dateNow,highResTime:e.highResTime,boundingClientRect:bl(),intersectionRatio:0,intersectionRect:bl(),isIntersecting:!1,rootBounds:bl(),target:n};var r=t.bottom,o=t.right,s=e.left+i.left,a=e.top+i.top,c={left:s,top:a,bottom:i.bottom,right:i.right,width:e.width-(i.right+i.left),height:e.height-(i.bottom+i.top),y:a,x:s},l=Math.max(c.left,t.left),u=Math.max(c.top,t.top),d=Math.min(c.left+c.width,t.right)-l,h=Math.min(c.top+c.height,t.bottom)-u,p=d>=0?l:0,f=u>=0?u:0,m={left:p,top:f,x:p,y:f,width:d,height:h,right:o,bottom:r};return function(e){var t=e.unixTime,n=e.highResTime,i=e.rootBounds,r=e.boundingClientRect,o=e.intersectionRect,s=e.target,a=r.height*r.width,c=a>0?o.width*o.height/a:0;return{time:t,highResTime:n,rootBounds:i,boundingClientRect:r,intersectionRect:o,target:s,intersectionRatio:c,isIntersecting:Uc({intersectionRect:o})}}({unixTime:e.dateNow,highResTime:e.highResTime,rootBounds:c,target:n,boundingClientRect:gl(t),intersectionRect:m})}(e,t,n,this.rootMarginObj),o=0;o<this.thresholds.length;o++){var s=this.thresholds[o];r.intersectionRatio>=s&&i++}return{numSatisfiedThresholds:i,entry:r}},e}();function bl(){return{bottom:0,height:0,left:0,right:0,top:0,width:0,x:0,y:0}}var El={x:0,y:0,width:0,height:0,bottom:0,left:0,top:0,right:0};!function(){function e(e,t){var n=this;this.paused=!1,this.queuedEntries=[],this.recordStore={},this.callback=e;var i=t||{threshold:[]},r=i.root,o=i.rootMargin,s=i.threshold,a=i.ALLOW_CACHED_SCHEDULER,c=i.BACKGROUND_TAB_FIX,l=i.USE_NATIVE_IO,u="string"!=typeof(o=o||"0px")?function(e){return e.top+"px "+e.right+"px "+e.bottom+"px "+e.left+"px"}(o):o;this.thresholds=s.sort((function(e){return e.ratio}));var d={root:r,rootMargin:u,threshold:this.thresholds.map((function(e){return e.ratio})),ALLOW_CACHED_SCHEDULER:a};this.usingNativeIo=!!l&&!!Qc.IntersectionObserver;var h=this.usingNativeIo?Qc.IntersectionObserver:yl;this.observer=new h((function(e){return n.internalCallback(e)}),d),this.onTabHidden=this._onTabHidden.bind(this),this.onWindowClosed=this._onWindowClosed.bind(this),this.onTabShown=this._onTabShown.bind(this),Qc.hasDOM&&(pl("beforeunload",this.onWindowClosed),pl("hide",this.onTabHidden),pl("show",this.onTabShown),c&&(this.paused="visible"!==Qc.document.visibilityState))}e.prototype._onWindowClosed=function(){this.onTabHidden()},e.prototype.setAllHidden=function(){for(var e=Object.keys(this.recordStore),t=0;t<e.length;t++)this.handleRecordExiting(this.recordStore[e[t]]);this.flushQueuedEntries()},e.prototype._onTabHidden=function(){this.paused=!0,this.setAllHidden()},e.prototype.generateObserverTimestamp=function(){return this.usingNativeIo?Math.floor(performance.now()):Date.now()},e.prototype._onTabShown=function(){this.paused=!1;for(var e=Object.keys(this.recordStore),t=performance.now(),n=this.generateObserverTimestamp(),i=0;i<e.length;i++){var r=this.recordStore[e[i]].lastSeenEntry;if(r){var o=r.intersectionRatio,s=r.boundingClientRect,a=r.rootBounds,c=r.intersectionRect,l=r.isIntersecting,u=r.target;this.handleObserverEntry({intersectionRatio:o,boundingClientRect:s,time:n,highResTime:t,isIntersecting:l,rootBounds:a,intersectionRect:c,target:u})}}},e.prototype.internalCallback=function(e){e.forEach(this.handleObserverEntry.bind(this))},e.prototype.flushQueuedEntries=function(){this.queuedEntries.length>0&&(this.callback(this.queuedEntries),this.queuedEntries=[])},e.prototype.generateSpanielEntry=function(e,t){var n=e.intersectionRatio,i=e.rootBounds,r=e.boundingClientRect,o=e.intersectionRect,s=e.isIntersecting,a=e.time,c=e.target,l=this.recordStore[c.__spanielId],u=this.usingNativeIo?Math.floor((Qc.performance.timeOrigin||Qc.performance.timing.navigationStart)+a):a,d=this.usingNativeIo?a:e.highResTime;if(!d)throw new Error("Missing intersection entry timestamp");return{intersectionRatio:n,isIntersecting:s,unixTime:u,time:u,highResTime:d,rootBounds:i,boundingClientRect:r,intersectionRect:o,target:c,duration:0,visibleTime:s?u:-1,entering:!1,payload:l.payload,label:t.threshold.label,threshold:t.threshold}},e.prototype.handleRecordExiting=function(e){var t=this,n=Date.now(),i=performance.now();e.thresholdStates.forEach((function(r){var o=e.lastSeenEntry&&e.lastSeenEntry.boundingClientRect;t.handleThresholdExiting({intersectionRatio:-1,isIntersecting:!1,unixTime:n,time:n,highResTime:i,payload:e.payload,label:r.threshold.label,threshold:r.threshold,entering:!1,rootBounds:El,boundingClientRect:o||El,intersectionRect:El,visibleTime:r.lastVisible.unixTime,duration:qc(i,r.lastVisible.highResTime),target:e.target},r),r.lastSatisfied=!1,r.visible=!1,r.lastEntry=null}))},e.prototype.handleThresholdExiting=function(e,t){var n=e.highResTime,i=!!t.threshold.time;t.lastSatisfied&&(!i||i&&t.visible)&&(e.duration=qc(n,t.lastVisible.highResTime),e.visibleTime=t.lastVisible.unixTime,e.entering=!1,t.visible=!1,this.queuedEntries.push(e)),clearTimeout(t.timeoutId)},e.prototype.handleObserverEntry=function(e){var t=this,n=e.target,i=this.recordStore[n.__spanielId];i&&(i.lastSeenEntry=e,this.paused||(i.thresholdStates.forEach((function(n){var i=!!n.threshold.time,r=t.generateSpanielEntry(e,n),o=e.intersectionRatio>=n.threshold.ratio,s="boolean"==typeof r.isIntersecting?r.isIntersecting:Uc(e),a=o&&s;if(a!=n.lastSatisfied){if(a)if(r.entering=!0,n.lastVisible={highResTime:r.highResTime,unixTime:r.unixTime},i){var c=Number(setTimeout((function(){n.visible=!0,r.duration=qc(performance.now(),n.lastVisible.highResTime),r.visibleTime=n.lastVisible.unixTime,t.callback([r])}),n.threshold.time));n.timeoutId=c}else n.visible=!0,r.duration=Date.now()-n.lastVisible.unixTime,t.queuedEntries.push(r);else t.handleThresholdExiting(r,n);n.lastEntry=e,n.lastSatisfied=a}})),this.flushQueuedEntries()))},e.prototype.disconnect=function(){this.setAllHidden(),this.observer.disconnect(),this.recordStore={}},e.prototype.destroy=function(){this.disconnect(),Qc.hasDOM&&(fl("beforeunload",this.onWindowClosed),fl("hide",this.onTabHidden),fl("show",this.onTabShown))},e.prototype.unobserve=function(e){var t=this,n=this.recordStore[e.__spanielId];n&&(delete this.recordStore[e.__spanielId],this.observer.unobserve(e),vl((function(){t.handleRecordExiting(n),t.flushQueuedEntries()})))},e.prototype.observe=function(e,t){var n=e,i=n.__spanielId=n.__spanielId||rl();return this.recordStore[i]={target:n,payload:t,lastSeenEntry:null,thresholdStates:this.thresholds.map((function(e){return{lastSatisfied:!1,lastEntry:null,threshold:e,visible:!1,lastVisible:{unixTime:0,highResTime:-1}}}))},this.observer.observe(n),i}}();Qc.IntersectionObserver&&Qc.IntersectionObserver;const _l=".".concat("show-more-less","__list"),wl=".".concat("show-more-less","__more-button"),Tl=".".concat("show-more-less","__less-button"),Sl="".concat("show-more-less","__list--hide-after"),kl="".concat("show-more-less","__button--hide");class Il{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e=>e.querySelector(P);if(!e)throw Error("An element must be provided to ShowMoreLess");this.el=e,this.listEl=this.el.querySelector(_l),this._getFocusItemFromListItem=t,this.maxNumToShow=parseInt(this.listEl.getAttribute("data-max-num-to-show")),this.hideClass="".concat(Sl,"-").concat(this.maxNumToShow),this.showMoreButton=this.el.querySelector(wl),this.showLessButton=this.el.querySelector(Tl),this._attachEventListeners(),this.firstHiddenListItem=this.listEl.children[this.maxNumToShow],this.isExpanded=!this.listEl.classList.contains(this.hideClass),new A(e,this.listEl,{mainButton:this.showMoreButton,closeButton:this.showLessButton},{isOpen:this.isExpanded})}_attachEventListeners(){this.el.addEventListener("open",()=>this._showElements()),this.el.addEventListener("close",()=>this._hideElements()),this.listEl.addEventListener("focus",e=>this._focusItem(e))}_focusItem(e){let{target:t}=e;if(t){let e=this._getFocusItemFromListItem(t);e&&e.focus()}}_showElements(){this.listEl.classList.remove(this.hideClass),this._toggleButtons(!1),this._focusItem({target:this.firstHiddenListItem})}_hideElements(){this.listEl.classList.add(this.hideClass),this._toggleButtons(!0)}_toggleButtons(e){e?(this.showLessButton.classList.add(kl),this.showMoreButton.classList.remove(kl)):(this.showLessButton.classList.remove(kl),this.showMoreButton.classList.add(kl))}}const Cl="roo:event:close",Al="roo:event:ready",Ol="roo:event:nodeRendered",Rl="roo:event:noTargetMatch",Ll="roo:showSurvey";class Nl{constructor(e){let{isDev:t=!1,customTriggerFn:n,triggerTime:i=7e3}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!e)throw new Error("You must pass an element to initialize qualaroo");if(this.el=e,this.isDev=t,this.qualarooIframe=this.el.querySelector(".qualaroo__iframe"),this.surveyId=this.qualarooIframe.getAttribute("data-survey-id"),this.channelId=this.qualarooIframe.getAttribute("data-channel-id"),!this.surveyId||!this.channelId)throw new Error("Channel Id and Survery Id must be present on iframe element");n?n.call(this):this._setupTrigger(i),window.addEventListener("message",e=>{this._handleQualarooMessage(e)})}_setupTrigger(e){let t,n=!1;const i=()=>{clearTimeout(t),t=setTimeout(()=>{this.showSurvey(),n=!0},e)},r=p(function(){n?window.removeEventListener("scroll",r):i()}.bind(this),250);window.addEventListener("scroll",r),i()}_handleQualarooMessage(e){let{origin:t,data:n}=e;const[i,r,,,o,s]=n;if("https://linkedin.cdn.qualaroo.com"===t&&(i||r)){if(i!==this.channelId)throw new Error("Qualaroo channelId does not match");switch(r){case Cl:this.isRendered=!1;break;case Ol:s&&o&&(this.isRendered=!0,this.height=s,this.width=o);break;case Rl:console.log("No Target Match");break;case Al:this.isDev?this.qualarooIframe.contentWindow.postMessage([Ll,this.surveyId,!0],"https://linkedin.cdn.qualaroo.com"):this.qualarooIframe.contentWindow.postMessage([Ll,this.surveyId,!1],"https://linkedin.cdn.qualaroo.com")}}}set height(e){this.qualarooIframe.height=e}set width(e){this.qualarooIframe.width=e}showSurvey(){this.el.classList.add("show")}}".".concat("accordion-item__trigger");const Pl=350;class xl{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:document.querySelector(".".concat("sticky-header")),{marginApplied:t=!0,disableUnderMinimumViewportHeight:n=!1,minimumViewportHeight:i=Pl}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!e)throw Error("A header element is required to instantiate a StickyHeader");if(!e.querySelector("nav"))throw Error("The header must contain a 'nav' element in order to instantiate a StickyHeader");let r=8;if(Cr()){const t=e.querySelector(".search-bar");t&&(r=t.getBoundingClientRect().height)}return this.stickyHeader=e,this.stickyElementOptions={exposeStickyState:!0,isBottom:!1,marginApplied:t,scrollThreshold:r},n&&i>0?this.setupDisableUnderMinimumViewportHeight(i):this.instantiateStickyElement(),this.stickyElement}instantiateStickyElement(){this.stickyElement=new ks(this.stickyHeader,this.stickyElementOptions)}setupDisableUnderMinimumViewportHeight(e){const t="(min-height: ".concat(e,"px)"),n=window.matchMedia(t);n.addEventListener("change",this.handleMediaQueryChange.bind(this)),this.handleMediaQueryChange(n)}handleMediaQueryChange(e){var t;e.matches?(this.stickyHeader.classList.remove("sticky-header--disabled"),document.body.classList.remove("body--sticky-header-disabled"),this.stickyElement?this.stickyElement.reactivate():this.instantiateStickyElement()):(this.stickyHeader.classList.add("sticky-header--disabled"),document.body.classList.add("body--sticky-header-disabled"),null===(t=this.stickyElement)||void 0===t||t.deactivate())}}function Ml(e){return t=>t.type&&t.type.toLowerCase()===e.toLowerCase()}Ml("action"),Ml("openpage"),Ml("openlink");const Dl="See https://go/pem/degradation-tracking-user-guide for instrumentation instructions";var Ul;!function(e){e.ProductName="productName",e.AdditionalDegradedResponseCodes="additionalDegradedResponseCodes",e.NonDegradedResponseCodes="nonDegradedResponseCodes",e.DegradationKeyOverrides="degradationKeyOverrides",e.ClientSensorGroupName="clientSensorGroupName",e.EnablePerformanceMeasurement="enablePerformanceMeasurement",e.CustomTrackingId="customTrackingId",e.DisableAvailabilityCalculation="disableAvailabilityCalculation",e.EnableSessionRecording="enableSessionRecording"}(Ul||(Ul={}));const Bl=new Set(Object.values(Ul));class ql extends Error{constructor(e){super(e),Object.setPrototypeOf(this,ql.prototype)}}function Fl(e){return 0===e.length||!e.trim()}function jl(e){if("string"!=typeof e)throw new ql("Keys must be strings. ".concat(Dl,"."));if(Fl(e))throw new ql("Keys should not be blank. ".concat(Dl,"."));if(/[^a-z0-9-]/.test(e))throw new ql("'".concat(e,"' can only contain lowercase alphanumeric characters and dashes (-). ").concat(Dl,"."));return e}class Hl{constructor(e,t,n){var i,r,o;if(this._shouldEnablePerformanceMeasurement=!1,this._shouldDisableAvailabilityCalculation=!1,this._shouldRecordSession=!1,this._featureKey=jl(e),this._defaultDegradationKey=jl(t),!n)return this._additionalDegradedResponseCodes=[],this._nonDegradedResponseCodes=[],void(this._degradationKeyOverrides=[]);if("object"!=typeof n)throw new ql("DegradationTrackingMetadata options should be an object. ".concat(Dl,"."));const s=n.productName;s&&(this._productName=function(e){if("string"!=typeof e)throw new ql("The product name must be a string. ".concat(Dl,"."));if(Fl(e))throw new ql("No product name was specified. Please configure a defaultProductName or specify it per instrumented API "+"call. ".concat(Dl,"."));if(/[^a-zA-Z0-9-_ \\/]/.test(e))throw new ql("Product name '".concat(e,"' can only contain alphanumeric, underscores (_), spaces ( ), dashes (-) and forward slashes (/). ").concat(Dl,"."));return e}(s));const a=n.additionalDegradedResponseCodes,c=n.nonDegradedResponseCodes;!function(e,t){const n=(e,t)=>{if("number"!=typeof(n=e)||!isFinite(n)||Math.floor(n)!==n||e<=0||e>999)throw new ql("Please only specify positive integer response codes between 1 and 999 for the ".concat(t," option. ")+"".concat(e," was specified. ").concat(Dl,"."));var n;if(429===e||999===e)throw new ql("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(t," options."));if(t===Ul.NonDegradedResponseCodes&&e>=400&&e<500)throw new ql("For server responses that have a status code, PEM does not consider 4xx as degraded. ".concat(e," is not ")+"considered a degradation unless you explicitly add it to the ".concat(Ul.AdditionalDegradedResponseCodes," option")+". Please remove ".concat(e," from the ").concat(Ul.NonDegradedResponseCodes," option. ")+"".concat(Dl,"."))};if(void 0!==e&&!Array.isArray(e))throw new ql("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(Ul.NonDegradedResponseCodes," option. ")+"".concat(Dl,"."));if(void 0!==t&&!Array.isArray(t))throw new ql("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(Ul.AdditionalDegradedResponseCodes," option. ").concat(Dl,"."));null==e||e.forEach(e=>n(e,Ul.NonDegradedResponseCodes)),null==t||t.forEach(e=>n(e,Ul.AdditionalDegradedResponseCodes));const i=new Set(t),r=new Set(e);if([...i].some(e=>r.has(e)))throw new ql("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(Dl,"."))}(c,a),this._nonDegradedResponseCodes=c||[],this._additionalDegradedResponseCodes=a||[],this._degradationKeyOverrides=n.degradationKeyOverrides||[],this._clientSensorGroupName=n.clientSensorGroupName,this._shouldEnablePerformanceMeasurement=null!==(i=n.enablePerformanceMeasurement)&&void 0!==i&&i,this._customTrackingId=n.customTrackingId,this._shouldDisableAvailabilityCalculation=null!==(r=n.disableAvailabilityCalculation)&&void 0!==r&&r,this._shouldRecordSession=null!==(o=n.enableSessionRecording)&&void 0!==o&&o,function(e){Object.keys(e).forEach(e=>{if(!Bl.has(e))throw new ql("An unsupported degradation tracking option '".concat(e,"' was provided. Please fix or remove it. ")+"".concat(Dl))})}(n)}static isDegradationTrackingMetadata(e){return null!=e&&Object.getOwnPropertyNames(Hl.prototype).every(t=>Object.hasOwnProperty.call(Object.getPrototypeOf(e),t))}get featureKey(){return this._featureKey}get defaultDegradationKey(){return this._defaultDegradationKey}get degradationKey(){return this._defaultDegradationKey}get productName(){return this._productName}get additionalDegradedResponseCodes(){return this._additionalDegradedResponseCodes}get nonDegradedResponseCodes(){return this._nonDegradedResponseCodes}get degradationKeyOverrides(){return this._degradationKeyOverrides}get clientSensorGroupName(){return this._clientSensorGroupName}get shouldEnablePerformanceMeasurement(){return this._shouldEnablePerformanceMeasurement}get customTrackingId(){return this._customTrackingId}get shouldDisableAvailabilityCalculation(){return this._shouldDisableAvailabilityCalculation}get shouldRecordSession(){return this._shouldRecordSession}}function zl(e){var t;null===(t=window.appDetection)||void 0===t||t.then(t=>{t.some(e=>"windows"===(null==e?void 0:e.platform)&&"7EE7776C.LinkedInforWindows_w1wdnht996qgy!App"===(null==e?void 0:e.id))&&e()})}const Gl=10;class Kl{constructor(e){let{minutesCoolOff:t=Gl,triggerByOutletEl:n=!0}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!e)throw new Error("No element passed into to sign in modal");this.el=e,this.coolOffEnabled=this.el.hasAttribute("data-cool-off-enabled"),this.coolOffPeriod=60*t*1e3,this.modalEl=this.el.querySelector(".".concat("modal"));const i=this.el.querySelector('[data-id="sign-in-form"]');i&&(this.signInForm=new pc(i,{fireTrackingOnInit:!1})),this.modal=new yr(this.modalEl,{enablePageViewTracking:!0,shouldHideModal:this._shouldHideModal.bind(this),triggerByOutletEl:n}),this.modalEl.addEventListener("close",()=>{this._setCoolOff()})}_shouldHideModal(){if(!this.coolOffEnabled)return!1;try{const e=localStorage.getItem("sign-in-modal-cool-off-hidden");if(e){return Date.now()-e<this.coolOffPeriod||(localStorage.removeItem("sign-in-modal-cool-off-hidden"),!1)}}catch(e){return!1}}_setCoolOff(){if(this.coolOffEnabled&&!this._shouldHideModal())try{localStorage.setItem("sign-in-modal-cool-off-hidden",Date.now())}catch(e){return""}}}var Wl={exports:{}};(function(e){function t(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function n(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function i(e,t,i){return t&&n(e.prototype,t),i&&n(e,i),e}function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function o(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function s(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&&c(e,t)}function a(e){return(a=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function c(e,t){return(c=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function l(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}function u(e,t,n){return(u=l()?Reflect.construct:function(e,t,n){var i=[null];i.push.apply(i,t);var r=new(Function.bind.apply(e,i));return n&&c(r,n.prototype),r}).apply(null,arguments)}function d(e){var t="function"==typeof Map?new Map:void 0;return(d=function(e){if(null===e||!function(e){return-1!==Function.toString.call(e).indexOf("[native code]")}(e))return e;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,n)}function n(){return u(e,arguments,a(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),c(n,e)})(e)}function h(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function p(e,t){return!t||"object"!=typeof t&&"function"!=typeof t?h(e):t}function f(e){return function(){var t,n=a(e);if(l()){var i=a(this).constructor;t=Reflect.construct(n,arguments,i)}else t=n.apply(this,arguments);return p(this,t)}}function m(e){"complete"===document.readyState?e():window.addEventListener("load",(function(){e()}))}function v(e,t){var n=document.createElement("script");n.src=e,t&&(n.onload=t),document.head.appendChild(n)}function g(){var e,t,n=new Promise((function(n,i){e=n,t=i}));return n.resolve=e,n.reject=t,n}(function(){if("function"==typeof window.CustomEvent)return!1;window.CustomEvent=function(e,t){t=t||{bubbles:!1,cancelable:!1,detail:null};var n=document.createEvent("CustomEvent");return n.initCustomEvent(e,t.bubbles,t.cancelable,t.detail),n}})(),function(){if("function"==typeof window.EventTarget)try{return!new e}catch(e){}var e=function(){this.listeners={}};e.prototype.listeners=null,e.prototype.addEventListener=function(e,t){e in this.listeners||(this.listeners[e]=[]),this.listeners[e].push(t)},e.prototype.removeEventListener=function(e,t){if(e in this.listeners)for(var n=this.listeners[e],i=0,r=n.length;i<r;i++)if(n[i]===t)return void n.splice(i,1)},e.prototype.dispatchEvent=function(e){if(!(e.type in this.listeners))return!0;for(var t=this.listeners[e.type].slice(),n=0,i=t.length;n<i;n++)t[n].call(this,e);return!e.defaultPrevented},window.EventTarget=e}();var y="990339570472-k6nqn1tpmitg8pui82bfaun3jrpmiuhs.apps.googleusercontent.com",b={GOOGLE_ERROR:"googleError",GOOGLE_USER_FETCHED:"googleUserFetched",INITIALIZED:"initialized",PROMPT_MOMENT:"promptMomentNotification",TOKEN_FETCHED:"tokenFetched"},E={INITIALIZATION:"initialization",AUTHENTICATION:"authentication"},_={SIGN_IN:"signin",SIGN_UP:"signup",USE:"use"},w={DISPLAY:"display",SKIPPED:"skipped",DISMISSED:"dismissed"},T={NOT_DISPLAYED:{BROWSER_NOT_SUPPORTED:"browser_not_supported",INVALID_CLIENT:"invalid_client",MISSING_CLIENT_ID:"missing_client_id",OPT_OUT_OR_NO_SESSION:"opt_out_or_no_session",SECURE_HTTP_REQUIRED:"secure_http_required",SUPPRESSED_BY_USER:"suppressed_by_user",UNREGISTERED_ORIGIN:"unregistered_origin",UNKNOWN_REASON:"unknown_reason"},SKIPPED:{AUTO_CANCEL:"auto_cancel",USER_CANCEL:"user_cancel",TAP_OUTSIDE:"tap_outside",ISSUING_FAILED:"issuing_failed"},DISMISSED:{CREDENTIAL_RETURNED:"credential_returned",CANCEL_CALLED:"cancel_called",FLOW_RESTARTED:"flow_restarted"}},S={DISMISSED:"DISMISSED",INITIALIZED:"INITIALIZED",SNAPPLE_USER_FETCHED:"SNAPPLE_USER_FETCHED"},k={signin:{GOT:"signin",GSI_BUTTON:"signin_with"},signup:{GOT:"signup",GSI_BUTTON:"signup_with"},use:{GOT:"use",GSI_BUTTON:"continue_with"}},I=b.GOOGLE_ERROR,C=b.GOOGLE_USER_FETCHED,A=b.INITIALIZED,O=E.INITIALIZATION,R=E.AUTHENTICATION,L=function(e){s(r,e);var n=f(r);function r(e){var i,o=e.libSrcPath,s=e.el,a=e.clientId,c=void 0===a?y:a;if(t(this,r),i=n.call(this),!s)throw TypeError("DOM element for Sign In button is required");if(i.libSrcPath=o,i.el=s,i.clientId=c,window.gapi)i._initializeGoogleAuth();else{if(!o)throw TypeError("Google Sign In lib not already loaded on the page. libSrcPath is required to load the lib.");m((function(){v(o,i._initializeGoogleAuth.bind(h(i)))}))}return i}return i(r,[{key:"_initializeGoogleAuth",value:function(){var e=this;return gapi.auth2.init({client_id:this.clientId}).then((function(t){e.auth2=t,e._attachSignIn();var n=new CustomEvent(A);e.dispatchEvent(n)})).catch((function(t){var n={type:O,message:t.error},i=new CustomEvent(I,{detail:n});e.dispatchEvent(i)}))}},{key:"_attachSignIn",value:function(){var e=this;this.auth2.attachClickHandler(this.el,{},(function(t){var n=new CustomEvent(C,{detail:e._getGoogleUserInformation(t)});e.dispatchEvent(n)}),(function(t){var n={type:R,message:t.error},i=new CustomEvent(I,{detail:n});e.dispatchEvent(i)}))}},{key:"_getGoogleUserInformation",value:function(e){var t=e.getBasicProfile(),n=e.getAuthResponse().id_token;return{email:t.getEmail(),familyName:t.getFamilyName(),givenName:t.getGivenName(),id:t.getId(),idToken:n,imageUrl:t.getImageUrl()}}}]),r}(d(EventTarget)),N=b.GOOGLE_USER_FETCHED,P=b.PROMPT_MOMENT,x=function(e){s(r,e);var n=f(r);function r(e){var i,o=e.autoSelect,s=void 0!==o&&o,a=e.libSrcPath,c=e.containerId,l=e.context,u=e.clientId,d=void 0===u?y:u,p=e.cancelOnTapOutside,f=void 0===p||p;if(t(this,r),i=n.call(this),!l)throw TypeError("context param is required to determine the message to show in Google One Tap");if(i.autoSelect=s,i.libSrcPath=a,i.containerId=c,i.cancelOnTapOutside=f,i.clientId=d,i.context=l,window.google&&window.google.accounts&&window.google.accounts.id)i._onGoogleApiLoad();else{if(!a)throw TypeError("Google One Tap lib is not already loaded on the page. libSrcPath is required to load the library");m((function(){v(a,i._onGoogleApiLoad.bind(h(i)))}))}return i}return i(r,[{key:"_onGoogleApiLoad",value:function(){var e=this;return google.accounts.id.initialize({auto_select:this.autoSelect,client_id:this.clientId,prompt_parent_id:this.containerId,callback:this._handleCredentialResponse.bind(this),cancel_on_tap_outside:this.cancelOnTapOutside,context:this.context}),Promise.resolve().then((function(){return e.promptOneTap()}))}},{key:"_handleCredentialResponse",value:function(e){var t=e.credential,n=this.context===_.SIGN_UP?this._getBasicProfile(t):{idToken:t};if(n){n.selectedBy=e.select_by;var i=new CustomEvent(N,{detail:n});this.dispatchEvent(i)}}},{key:"_getBasicProfile",value:function(e){try{var t=new gapi.auth2.BasicProfile({id_token:e});return{email:t.getEmail(),familyName:t.getFamilyName(),givenName:t.getGivenName(),id:t.getId(),idToken:e,imageUrl:t.getImageUrl()}}catch(e){return this._dispatchSkippedEvent(e.message),null}}},{key:"_dispatchSkippedEvent",value:function(e){var t={message:e,reason:T.SKIPPED.ISSUING_FAILED,type:w.SKIPPED},n=new CustomEvent(P,{detail:t});this.dispatchEvent(n)}},{key:"promptOneTap",value:function(){var e=this;google.accounts.id.prompt((function(t){var n={type:t.getMomentType(),reason:t.getNotDisplayedReason()||t.getSkippedReason()||t.getDismissedReason()},i=new CustomEvent(P,{detail:n});e.dispatchEvent(i),e.checkIfDesktopAndApplyClass()}))}},{key:"hideOneTap",value:function(){google.accounts.id.cancel()}},{key:"checkIfDesktopAndApplyClass",value:function(){if(!/.*(iPad|iPod|iPhone|Android|BlackBerry).*/.test(navigator.userAgent)){var e=document.getElementById("credential_picker_container");e&&e.classList.add("credential_picker_container--desktop")}}}]),r}(d(EventTarget)),M={exports:{}};function D(e){this.message=e}D.prototype=new Error,D.prototype.name="InvalidCharacterError";var U="undefined"!=typeof window&&window.atob&&window.atob.bind(window)||function(e){var t=String(e).replace(/=+$/,"");if(t.length%4==1)throw new D("'atob' failed: The string to be decoded is not correctly encoded.");for(var n,i,r=0,o=0,s="";i=t.charAt(o++);~i&&(n=r%4?64*n+i:i,r++%4)?s+=String.fromCharCode(255&n>>(-2*r&6)):0)i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(i);return s},B=function(e){var t=e.replace(/-/g,"+").replace(/_/g,"/");switch(t.length%4){case 0:break;case 2:t+="==";break;case 3:t+="=";break;default:throw"Illegal base64url string!"}try{return function(e){return decodeURIComponent(U(e).replace(/(.)/g,(function(e,t){var n=t.charCodeAt(0).toString(16).toUpperCase();return n.length<2&&(n="0"+n),"%"+n})))}(t)}catch(e){return U(t)}};function q(e){this.message=e}q.prototype=new Error,q.prototype.name="InvalidTokenError",M.exports=function(e,t){if("string"!=typeof e)throw new q("Invalid token specified");var n=!0===(t=t||{}).header?0:1;try{return JSON.parse(B(e.split(".")[n]))}catch(e){throw new q("Invalid token specified: "+e.message)}},M.exports.InvalidTokenError=q;var F=M.exports,j=b.GOOGLE_USER_FETCHED,H=b.PROMPT_MOMENT,z=function(e){s(a,e);var n=f(a);function a(e){var i,r=e.autoSelect,o=void 0!==r&&r,s=e.buttonParentEl,c=e.cancelOnTapOutside,l=void 0===c||c,u=e.clientId,d=void 0===u?y:u,p=e.context,f=void 0===p?"signin":p,b=e.gsiButtonConfig,E=void 0===b?{}:b,_=e.libSrcPath,w=e.hasContentAbove,T=void 0!==w&&w,S=e.promptParentId,k=e.showOneTap,I=void 0===k||k;if(t(this,a),(i=n.call(this)).autoSelect=o,i.buttonParentEl=s,i.cancelOnTapOutside=l,i.clientId=d,i.context=f,i.gsiButtonConfig=E,i.isLibraryLoaded=g(),i.libSrcPath=_,i.hasContentAbove=T,i.promptParentId=S,i.showOneTap=I,window.google&&window.google.accounts&&window.google.accounts.id)i._onGoogleApiLoad();else{if(!_)throw TypeError("GSI lib is not already loaded on the page. libSrcPath is required to load the library");m((function(){v(_,i._onGoogleApiLoad.bind(h(i)))}))}return i}return i(a,[{key:"_onGoogleApiLoad",value:function(){var e=this;return this.isLibraryLoaded.resolve(),window.google.accounts.id.initialize({auto_select:this.autoSelect,client_id:this.clientId,prompt_parent_id:this.promptParentId,callback:this._handleCredentialResponse.bind(this),cancel_on_tap_outside:this.cancelOnTapOutside,context:k[this.context].GOT}),Promise.resolve().then((function(){return e.showGsiUI()}))}},{key:"showGsiUI",value:function(){this.buttonParentEl&&this.renderGSIButton(this.buttonParentEl,this.gsiButtonConfig),this.showOneTap&&this.promptOneTap()}},{key:"renderGSIButton",value:function(e,t){var n=this,i=t.locale,r=void 0===i?"en_US":i,o=t.logo_alignment,s=void 0===o?"center":o,a=t.shape,c=void 0===a?"pill":a,l=t.size,u=void 0===l?"large":l,d=t.text,h=t.theme,p=t.type,f=t.width,m=void 0===f?"400px":f;return this.isLibraryLoaded.then((function(){var t=d||k[n.context].GSI_BUTTON;window.google.accounts.id.renderButton(e,{locale:r,logo_alignment:s,shape:c,size:u,text:t,theme:h,type:p,width:m})}))}},{key:"promptOneTap",value:function(){var e=this;return this.isLibraryLoaded.then((function(){window.google.accounts.id.prompt((function(t){var n={type:t.getMomentType(),reason:t.getNotDisplayedReason()||t.getSkippedReason()||t.getDismissedReason()},i=new CustomEvent(H,{detail:n});e.dispatchEvent(i),e.hasContentAbove||e.checkIfDesktopAndApplyClass()}))}))}},{key:"_handleCredentialResponse",value:function(e){var t=e.credential,n=e.select_by,i=F(t),s=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?o(Object(n),!0).forEach((function(t){r(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):o(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},this._getBasicProfile(i),{idToken:t,selectedBy:n});if(s){var a=new CustomEvent(j,{detail:s});this.dispatchEvent(a)}}},{key:"_getBasicProfile",value:function(e){return{email:e.email,familyName:e.family_name,givenName:e.given_name,id:e.sub,imageUrl:e.picture}}},{key:"hideOneTap",value:function(){window.google.accounts.id.cancel()}},{key:"checkIfDesktopAndApplyClass",value:function(){if(!/.*(iPad|iPod|iPhone|Android|BlackBerry).*/.test(navigator.userAgent)){var e=document.getElementById("credential_picker_container");e&&e.classList.add("credential_picker_container--desktop")}}}]),a}(d(EventTarget)),G={PROD:"3fa91358-6f74-4525-b5df-da149652be36",LOCAL:"e5078fe9-f96f-4177-a256-a13b9bda6b1c"},K={MICROSOFT_ERROR:"microsoftError",USER_FETCHED:"microsoftUserFetched",PROMPT_MOMENT:"promptMomentNotification"},W={signin:{MS_OT:"signin",MS_BUTTON:"signin_with"},signup:{MS_OT:"signup",MS_BUTTON:"signup_with"},use:{MS_OT:"use",MS_BUTTON:"continue_with"}},V=K.MICROSOFT_ERROR,Y=K.PROMPT_MOMENT,Q=K.USER_FETCHED,X=function(e){s(r,e);var n=f(r);function r(e){var i,o,s,a=e.buttonParentEl,c=e.cancelOnTapOutside,l=void 0===c||c,u=e.clientId,d=void 0===u?G.PROD:u,p=e.context,f=void 0===p?"use":p,y=e.libSrcPath,b=e.locale,E=e.malButtonConfig,_=void 0===E?{}:E,w=e.oneTapPosition,T=void 0===w?"right":w,S=e.showOneTap,k=void 0!==S&&S;if(t(this,r),(s=n.call(this)).buttonParentEl=a,s.cancelOnTapOutside=l,s.clientId=d,s.context=f,s.libSrcPath=y,s.locale=(b||"en-US").replace("_","-"),s.malButtonConfig=_,s.oneTapPosition=T,s.showOneTap=k,s.isLibraryLoaded=g(),null===(i=window.ms)||void 0===i||null===(o=i.auth)||void 0===o?void 0:o.initialize)s._onMicrosoftAuthLibLoad();else{if(!y)throw TypeError("MAL lib is not already loaded on the page. libSrcPath is required to load the library");m((function(){v(y,s._onMicrosoftAuthLibLoad.bind(h(s)))}))}return s}return i(r,[{key:"_onMicrosoftAuthLibLoad",value:function(){var e=this;this.isLibraryLoaded.resolve();var t=window.ms.auth.initialize({auto_prompt:this.showOneTap,client_id:this.clientId,callback:this._handleCredentialResponse.bind(this),cancel_on_tap_outside:this.cancelOnTapOutside,context:this.context,locale:this.locale});if("success"===t.result)return Promise.resolve().then((function(){return e.showMALUI()}));console.error("MAL failed to init",t.result)}},{key:"showMALUI",value:function(){this.buttonParentEl&&this.renderMALButton(this.buttonParentEl,this.malButtonConfig),this.showOneTap&&this.promptMSOneTap()}},{key:"renderMALButton",value:function(e,t){var n=this,i=t.logo_alignment,r=void 0===i?"center":i,o=t.height,s=void 0===o?42:o,a=t.shape,c=void 0===a?"pill":a,l=t.size,u=void 0===l?"large":l,d=t.text,h=t.theme,p=void 0===h?"light":h,f=t.type,m=t.width,v=void 0===m?600:m;return this.isLibraryLoaded.then((function(){var t=d||W[n.context].MS_BUTTON;window.ms.auth.renderSignInButton(e,{logo_alignment:r,height:s,shape:c,size:u,text:t,theme:p,type:f,width:v})}))}},{key:"promptMSOneTap",value:function(){var e=this;return this.isLibraryLoaded.then((function(){window.ms.auth.prompt(e.oneTapPosition,(function(t){var n={type:t.type,reason:t.reason},i=new CustomEvent(Y,{detail:n});e.dispatchEvent(i)}))}))}},{key:"_handleCredentialResponse",value:function(e,t){if(e){var n=e.email,i=e.givenName,r=e.surname,o=e.id,s=e.idToken,a=e.photoUrl,c=new CustomEvent(Q,{detail:{email:n,familyName:r,givenName:i,id:o,idToken:s,imageUrl:a}});this.dispatchEvent(c)}else if(t){var l=new CustomEvent(V,{detail:t});this.dispatchEvent(l)}}},{key:"hideOneTap",value:function(){window.ms.auth.cancel()}}]),r}(d(EventTarget)),J=S.DISMISSED,Z=S.INITIALIZED,$=S.SNAPPLE_USER_FETCHED,ee=function(e){s(r,e);var n=f(r);function r(e){var i,o=e.libSrcPath,s=e.snappleCTA,a=e.clientId,c=void 0===a?"com.linkedin.LinkedIn.service":a,l=e.redirectURI;if(t(this,r),i=n.call(this),!s)throw TypeError("snappleCTA is required. Please pass the correct CTA element to this Snapple Constructor");if(i.libSrcPath=o,i.clientId=c,i.redirectURI=i._getRedirectURL(l),i.snappleCTA=s,window.AppleID&&window.AppleID.auth&&window.AppleID.auth.init)i._onSnappleLibLoad();else{if(!o)throw TypeError("Snapple lib is not already loaded on the page. libSrcPath is required to load the library");m((function(){v(o,i._onSnappleLibLoad.bind(h(i)))}))}return i}return i(r,[{key:"_onSnappleLibLoad",value:function(){window.AppleID.auth.init({clientId:this.clientId,scope:"name email",redirectURI:this.redirectURI,usePopup:!0});var e=new CustomEvent(Z);return this.dispatchEvent(e),Promise.resolve(this._attachEvents())}},{key:"_attachEvents",value:function(){var e=this;this.snappleCTA.addEventListener("click",(function(){return window.AppleID.auth.signIn().then((function(t){var n=new CustomEvent($,{detail:t});e.dispatchEvent(n)})).catch((function(t){var n=new CustomEvent(J,{detail:{type:J,message:t}});e.dispatchEvent(n)}))}))}},{key:"_getRedirectURL",value:function(e){var t=window.location.host.indexOf("linkedin.com")>-1;return this.redirectURI?e:t?"https://www.linkedin.com/redirect":"https://www.linkedin-ei.com/redirect"}}]),r}(d(EventTarget)),te={CLIENT_ID:y,EVENTS:b,GOOGLE_ACCOUNT_URL:"https://accounts.google.com",GSI_ERROR_TYPES:E,GSI_ERROR_MESSAGES:{INIT_FAILED:"idpiframe_initialization_failed",POPUP_CLOSED_BY_USER:"popup_closed_by_user",ACCESS_DENIED:"access_denied",IMMEDIATE_FAILED:"immediate_failed"},GOT_CONTEXTS:_,GOT_PROMPT_MOMENT_REASONS:T,GOT_PROMPT_MOMENT_TYPES:w},ne={CLIENT_IDS:G,CONTEXTS:W,EVENTS:K,PROMPT_MOMENT_TYPES:{DISPLAY:"display",SKIPPED:"skipped",DISMISSED:"dismissed"},PROMPT_MOMENT_REASONS:{DISPLAY:{ANOTHER_PROMPT_RUNNING:"another_prompt_running",BROWSER_NOT_SUPPORTED:"browser_not_supported",IN_COOLDOWN_PERIOD:"in_cooldown_period",NON_MSA_PROFILE:"non_msa_profile",UNKNOWN:"unknown"},SKIPPED:{TAP_OUTSIDE:"tap_outside",UNKNOWN:"unknown",USER_CANCELLED:"user_canceled"},DISMISSED:{CANCEL_CALLED:"cancel_called",CREDENTIAL_RETURNED:"credential_returned",CREDENTIAL_OBTAINED_FAILED:"credential_obtained_failed",FLOW_RESTARTED:"flow_restarted"}}};e.GoogleGsi=z,e.GoogleOneTap=x,e.GoogleSignIn=L,e.GoogleSignInConstants=te,e.MicrosoftAuth=X,e.MicrosoftSignInConstants=ne,e.SnappleAuth=ee,e.SnappleEvents=S,Object.defineProperty(e,"__esModule",{value:!0})})(Wl.exports);const{EVENTS:Vl,GOT_CONTEXTS:Yl,GOT_PROMPT_MOMENT_REASONS:Ql,GOT_PROMPT_MOMENT_TYPES:Xl}=Wl.exports.GoogleSignInConstants,{GOOGLE_USER_FETCHED:Jl,PROMPT_MOMENT:Zl}=Vl,{SIGN_IN:$l}=Yl;Ql.NOT_DISPLAYED.BROWSER_NOT_SUPPORTED,Ql.NOT_DISPLAYED.OPT_OUT_OR_NO_SESSION,Ql.NOT_DISPLAYED.SUPPRESSED_BY_USER,Ql.SKIPPED.AUTO_CANCEL,Ql.SKIPPED.TAP_OUTSIDE,Ql.SKIPPED.USER_CANCEL,Object.freeze({ONE_TAP:"one_tap",ONE_TAP_AUTO_LOGIN:"one-tap-auto-login",BUTTON:"button"});const{EVENTS:eu,PROMPT_MOMENT_REASONS:tu,PROMPT_MOMENT_TYPES:nu}=Wl.exports.MicrosoftSignInConstants,{USER_FETCHED:iu,PROMPT_MOMENT:ru}=eu;tu.DISPLAY.ANOTHER_PROMPT_RUNNING,tu.DISPLAY.BROWSER_NOT_SUPPORTED,tu.DISPLAY.IN_COOLDOWN_PERIOD,tu.DISPLAY.NON_MSA_PROFILE,tu.SKIPPED.TAP_OUTSIDE,tu.SKIPPED.USER_CANCELLED,Object.freeze({ONE_TAP:"one_tap",BUTTON:"button"});class ou{constructor(e){if(!e)throw Error("An element must be provided to TopNavMenu");this.el=e,zl(this.updateDeeplink.bind(this))}updateDeeplink(){const e=this.el.querySelector(".top-nav-link[data-tracking-control-name$=_windows]");e&&e.setAttribute("href","linkedin://")}}class su{constructor(e){let{searchBarOptions:t,signInCardOptions:n,signInModalOptions:i}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!e)throw Error("An element must be provided to Nav");this.el=e;const r=this.el.querySelector(".search-bar");r&&new Zs(r,t);const o=this.el.querySelector(".sign-in-card");o&&new yc(o,n);const s=this.el.querySelector(".sign-in-modal");s&&new Kl(s,i);const a=this.el.querySelector(".top-nav-menu");a&&new ou(a)}}".".concat("filter-values-container__filter-value"," input"),".".concat("filter-values-container__filter-value"," input[type=radio]:checked");class au{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:()=>{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:()=>{},{enablePageViewTracking:i=!1,shouldHideModal:r=(()=>!1),triggerByOutletEl:o=!0,focusElement:s,pageKey:a}=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};if(!e)throw new Error("No element passed into to dialog modal");this.el=e,this.modalEl=this.el.querySelector(".".concat("modal")),this.modal=new $s(this.modalEl,{enablePageViewTracking:i,shouldHideModal:r,triggerByOutletEl:o,focusElement:s,pageKey:a}),this._onPrimaryActionClick=t,this.primaryActionBtn=this.el.querySelector(".primary-action"),this.secondaryActionBtn=this.el.querySelector(".secondary-action"),n&&(this._onSecondaryActionClick=n),this.el.querySelector(".dialog-actions").addEventListener("click",this._actionHandler.bind(this))}_actionHandler(e){const t=e.target;if(this.primaryActionBtn&&this.primaryActionBtn.contains(t)){if(this.primaryActionBtn.disabled)return;this._onPrimaryActionClick&&this._onPrimaryActionClick(e)}else this.secondaryActionBtn&&this.secondaryActionBtn.contains(t)&&this._onSecondaryActionClick&&this._onSecondaryActionClick(e);this.modal.close()}}function cu(e,t){zo(e,t,{ADD_TAGS:["link"]})}class lu{constructor(){let{bottomSheetEl:e,pushState:t=!0,enablePageViewTracking:n,pageKey:i,shouldHideModal:r}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(this.bottomSheetEl=e||document.querySelector("#bottom-sheet"),!this.bottomSheetEl)throw new Error("Cannot instantiate bottom sheet without container");this._headerEl=this.bottomSheetEl.querySelector(".header-section"),this._titleEl=this.bottomSheetEl.querySelector(".title"),this._contentEl=this.bottomSheetEl.querySelector(".content"),this._footerEl=this.bottomSheetEl.querySelector(".footer"),this.modalInstance=new $s(this.bottomSheetEl,{enablePageViewTracking:n,pageKey:i,shouldHideModal:r,pushState:t,triggerByOutletEl:!1}),this._hideBottomSheet=this._hideBottomSheet.bind(this),this._attachEventListeners()}_hideBottomSheet(){Rr(this.bottomSheetEl),this.bottomSheetEl.removeEventListener("transitionend",this._hideBottomSheet)}_attachEventListeners(){this.bottomSheetEl.addEventListener("click",e=>{const t=e.target.closest("[data-action]");"close-bottom-sheet"===(t&&t.dataset.action)&&this.close()}),this.bottomSheetEl.addEventListener("close",()=>{this.isOpen()&&setTimeout(()=>{this.bottomSheetEl.setAttribute("aria-hidden",!0),this.bottomSheetEl.addEventListener("transitionend",this._hideBottomSheet),this.bottomSheetEl.classList.remove("bottom-sheet-open")},0)}),this.bottomSheetEl.addEventListener("open",()=>{this.bottomSheetEl.setAttribute("aria-hidden",!1),Lr(this.bottomSheetEl),window.requestAnimationFrame(()=>this.bottomSheetEl.classList.add("bottom-sheet-open"))}),r.getInstance().addUnloadCallback(()=>{this.close()})}setHeader(e){this._headerEl&&cu(this._headerEl,e)}setTitle(e){this._titleEl&&(this._titleEl.textContent=e)}setContent(e){cu(this._contentEl,e)}setFooter(e){this._footerEl&&cu(this._footerEl,e)}isOpen(){return this.bottomSheetEl.classList.contains("bottom-sheet-open")}open(){!this.isOpen()&&this.modalInstance.open()}close(){this.isOpen()&&this.modalInstance.close()}}function uu(e){let{featureName:t,featureMappingToDegradationConfig:n,productName:i}=e;return n[t].map(e=>function(e,t,n){const{degradationKey:i,trackedResponseCodes:r,untrackedResponseCodes:o}=n,s=e;let a={productName:t};return r?a=ee(ee({},a),{},{trackedResponseCodes:r}):o&&(a=ee(ee({},a),{},{untrackedResponseCodes:o})),new Hl(s,i,a)}(t,i,e))}class du extends Os{constructor(){super(...arguments)}execute(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:()=>{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:()=>{};return this.executeAction({queryId:du.query,variables:{digitalMediaRegisterUploadResponseDataFetcherInput:{imageUrl:e.imageUrl,owner:e.owner,uploadMechanisms:["SYNCHRONOUS_UPLOAD","SINGLE_REQUEST_UPLOAD"],uploadRecipes:[e.recipe]}},successCallback:t,failureCallback:n})}}te(du,"query","20f8e9934e7df62932fd167d87c19b27");var hu=function(){this.__data__=[],this.size=0};var pu=function(e,t){return e===t||e!=e&&t!=t},fu=pu;var mu=function(e,t){for(var n=e.length;n--;)if(fu(e[n][0],t))return n;return-1},vu=mu,gu=Array.prototype.splice;var yu=mu;var bu=mu;var Eu=mu;var _u=hu,wu=function(e){var t=this.__data__,n=vu(t,e);return!(n<0)&&(n==t.length-1?t.pop():gu.call(t,n,1),--this.size,!0)},Tu=function(e){var t=this.__data__,n=yu(t,e);return n<0?void 0:t[n][1]},Su=function(e){return bu(this.__data__,e)>-1},ku=function(e,t){var n=this.__data__,i=Eu(n,e);return i<0?(++this.size,n.push([e,t])):n[i][1]=t,this};function Iu(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var i=e[t];this.set(i[0],i[1])}}Iu.prototype.clear=_u,Iu.prototype.delete=wu,Iu.prototype.get=Tu,Iu.prototype.has=Su,Iu.prototype.set=ku;var Cu=Iu,Au=Cu;var Ou=function(){this.__data__=new Au,this.size=0};var Ru=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n};var Lu=function(e){return this.__data__.get(e)};var Nu=function(e){return this.__data__.has(e)},Pu="object"==typeof X&&X&&X.Object===Object&&X,xu=Pu,Mu="object"==typeof self&&self&&self.Object===Object&&self,Du=xu||Mu||Function("return this")(),Uu=Du.Symbol,Bu=Uu,qu=Object.prototype,Fu=qu.hasOwnProperty,ju=qu.toString,Hu=Bu?Bu.toStringTag:void 0;var zu=function(e){var t=Fu.call(e,Hu),n=e[Hu];try{e[Hu]=void 0;var i=!0}catch(e){}var r=ju.call(e);return i&&(t?e[Hu]=n:delete e[Hu]),r},Gu=Object.prototype.toString;var Ku=zu,Wu=function(e){return Gu.call(e)},Vu=Uu?Uu.toStringTag:void 0;var Yu=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":Vu&&Vu in Object(e)?Ku(e):Wu(e)};var Qu=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)},Xu=Yu,Ju=Qu;var Zu,$u=function(e){if(!Ju(e))return!1;var t=Xu(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t},ed=Du["__core-js_shared__"],td=(Zu=/[^.]+$/.exec(ed&&ed.keys&&ed.keys.IE_PROTO||""))?"Symbol(src)_1."+Zu:"";var nd=function(e){return!!td&&td in e},id=Function.prototype.toString;var rd=$u,od=nd,sd=Qu,ad=function(e){if(null!=e){try{return id.call(e)}catch(e){}try{return e+""}catch(e){}}return""},cd=/^\[object .+?Constructor\]$/,ld=Function.prototype,ud=Object.prototype,dd=ld.toString,hd=ud.hasOwnProperty,pd=RegExp("^"+dd.call(hd).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");var fd=function(e){return!(!sd(e)||od(e))&&(rd(e)?pd:cd).test(ad(e))},md=function(e,t){return null==e?void 0:e[t]};var vd=function(e,t){var n=md(e,t);return fd(n)?n:void 0},gd=vd(Du,"Map"),yd=vd(Object,"create"),bd=yd;var Ed=function(){this.__data__=bd?bd(null):{},this.size=0};var _d=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},wd=yd,Td=Object.prototype.hasOwnProperty;var Sd=function(e){var t=this.__data__;if(wd){var n=t[e];return"__lodash_hash_undefined__"===n?void 0:n}return Td.call(t,e)?t[e]:void 0},kd=yd,Id=Object.prototype.hasOwnProperty;var Cd=yd;var Ad=Ed,Od=_d,Rd=Sd,Ld=function(e){var t=this.__data__;return kd?void 0!==t[e]:Id.call(t,e)},Nd=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=Cd&&void 0===t?"__lodash_hash_undefined__":t,this};function Pd(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var i=e[t];this.set(i[0],i[1])}}Pd.prototype.clear=Ad,Pd.prototype.delete=Od,Pd.prototype.get=Rd,Pd.prototype.has=Ld,Pd.prototype.set=Nd;var xd=Pd,Md=Cu,Dd=gd;var Ud=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e};var Bd=function(e,t){var n=e.__data__;return Ud(t)?n["string"==typeof t?"string":"hash"]:n.map},qd=Bd;var Fd=Bd;var jd=Bd;var Hd=Bd;var zd=function(){this.size=0,this.__data__={hash:new xd,map:new(Dd||Md),string:new xd}},Gd=function(e){var t=qd(this,e).delete(e);return this.size-=t?1:0,t},Kd=function(e){return Fd(this,e).get(e)},Wd=function(e){return jd(this,e).has(e)},Vd=function(e,t){var n=Hd(this,e),i=n.size;return n.set(e,t),this.size+=n.size==i?0:1,this};function Yd(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var i=e[t];this.set(i[0],i[1])}}Yd.prototype.clear=zd,Yd.prototype.delete=Gd,Yd.prototype.get=Kd,Yd.prototype.has=Wd,Yd.prototype.set=Vd;var Qd=Cu,Xd=gd,Jd=Yd;var Zd=Cu,$d=Ou,eh=Ru,th=Lu,nh=Nu,ih=function(e,t){var n=this.__data__;if(n instanceof Qd){var i=n.__data__;if(!Xd||i.length<199)return i.push([e,t]),this.size=++n.size,this;n=this.__data__=new Jd(i)}return n.set(e,t),this.size=n.size,this};function rh(e){var t=this.__data__=new Zd(e);this.size=t.size}rh.prototype.clear=$d,rh.prototype.delete=eh,rh.prototype.get=th,rh.prototype.has=nh,rh.prototype.set=ih;var oh=rh,sh=vd,ah=function(){try{var e=sh(Object,"defineProperty");return e({},"",{}),e}catch(e){}}(),ch=ah;var lh=function(e,t,n){"__proto__"==t&&ch?ch(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n},uh=lh,dh=pu;var hh=function(e,t,n){(void 0!==n&&!dh(e[t],n)||void 0===n&&!(t in e))&&uh(e,t,n)};var ph=function(e){return function(t,n,i){for(var r=-1,o=Object(t),s=i(t),a=s.length;a--;){var c=s[e?a:++r];if(!1===n(o[c],c,o))break}return t}}(),fh={exports:{}};!function(e,t){var n=Du,i=t&&!t.nodeType&&t,r=i&&e&&!e.nodeType&&e,o=r&&r.exports===i?n.Buffer:void 0,s=o?o.allocUnsafe:void 0;e.exports=function(e,t){if(t)return e.slice();var n=e.length,i=s?s(n):new e.constructor(n);return e.copy(i),i}}(fh,fh.exports);var mh=Du.Uint8Array;var vh=function(e){var t=new e.constructor(e.byteLength);return new mh(t).set(new mh(e)),t};var gh=function(e,t){var n=t?vh(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)};var yh=function(e,t){var n=-1,i=e.length;for(t||(t=Array(i));++n<i;)t[n]=e[n];return t},bh=Qu,Eh=Object.create,_h=function(){function e(){}return function(t){if(!bh(t))return{};if(Eh)return Eh(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();var wh=function(e,t){return function(n){return e(t(n))}}(Object.getPrototypeOf,Object),Th=Object.prototype;var Sh=function(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||Th)},kh=_h,Ih=wh,Ch=Sh;var Ah=function(e){return"function"!=typeof e.constructor||Ch(e)?{}:kh(Ih(e))};var Oh=function(e){return null!=e&&"object"==typeof e},Rh=Yu,Lh=Oh;var Nh=function(e){return Lh(e)&&"[object Arguments]"==Rh(e)},Ph=Oh,xh=Object.prototype,Mh=xh.hasOwnProperty,Dh=xh.propertyIsEnumerable,Uh=Nh(function(){return arguments}())?Nh:function(e){return Ph(e)&&Mh.call(e,"callee")&&!Dh.call(e,"callee")},Bh=Array.isArray;var qh=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991},Fh=$u,jh=qh;var Hh=function(e){return null!=e&&jh(e.length)&&!Fh(e)},zh=Hh,Gh=Oh;var Kh=function(e){return Gh(e)&&zh(e)},Wh={exports:{}};var Vh=function(){return!1};!function(e,t){var n=Du,i=Vh,r=t&&!t.nodeType&&t,o=r&&e&&!e.nodeType&&e,s=o&&o.exports===r?n.Buffer:void 0,a=(s?s.isBuffer:void 0)||i;e.exports=a}(Wh,Wh.exports);var Yh=Yu,Qh=wh,Xh=Oh,Jh=Function.prototype,Zh=Object.prototype,$h=Jh.toString,ep=Zh.hasOwnProperty,tp=$h.call(Object);var np=function(e){if(!Xh(e)||"[object Object]"!=Yh(e))return!1;var t=Qh(e);if(null===t)return!0;var n=ep.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&$h.call(n)==tp},ip=Yu,rp=qh,op=Oh,sp={};sp["[object Float32Array]"]=sp["[object Float64Array]"]=sp["[object Int8Array]"]=sp["[object Int16Array]"]=sp["[object Int32Array]"]=sp["[object Uint8Array]"]=sp["[object Uint8ClampedArray]"]=sp["[object Uint16Array]"]=sp["[object Uint32Array]"]=!0,sp["[object Arguments]"]=sp["[object Array]"]=sp["[object ArrayBuffer]"]=sp["[object Boolean]"]=sp["[object DataView]"]=sp["[object Date]"]=sp["[object Error]"]=sp["[object Function]"]=sp["[object Map]"]=sp["[object Number]"]=sp["[object Object]"]=sp["[object RegExp]"]=sp["[object Set]"]=sp["[object String]"]=sp["[object WeakMap]"]=!1;var ap=function(e){return op(e)&&rp(e.length)&&!!sp[ip(e)]};var cp=function(e){return function(t){return e(t)}},lp={exports:{}};!function(e,t){var n=Pu,i=t&&!t.nodeType&&t,r=i&&e&&!e.nodeType&&e,o=r&&r.exports===i&&n.process,s=function(){try{var e=r&&r.require&&r.require("util").types;return e||o&&o.binding&&o.binding("util")}catch(e){}}();e.exports=s}(lp,lp.exports);var up=ap,dp=cp,hp=lp.exports,pp=hp&&hp.isTypedArray,fp=pp?dp(pp):up;var mp=function(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]},vp=lh,gp=pu,yp=Object.prototype.hasOwnProperty;var bp=function(e,t,n){var i=e[t];yp.call(e,t)&&gp(i,n)&&(void 0!==n||t in e)||vp(e,t,n)},Ep=lh;var _p=function(e,t,n,i){var r=!n;n||(n={});for(var o=-1,s=t.length;++o<s;){var a=t[o],c=i?i(n[a],e[a],a,n,e):void 0;void 0===c&&(c=e[a]),r?Ep(n,a,c):bp(n,a,c)}return n};var wp=/^(?:0|[1-9]\d*)$/;var Tp=function(e,t){var n=typeof e;return!!(t=null==t?9007199254740991:t)&&("number"==n||"symbol"!=n&&wp.test(e))&&e>-1&&e%1==0&&e<t},Sp=function(e,t){for(var n=-1,i=Array(e);++n<e;)i[n]=t(n);return i},kp=Uh,Ip=Bh,Cp=Wh.exports,Ap=Tp,Op=fp,Rp=Object.prototype.hasOwnProperty;var Lp=function(e,t){var n=Ip(e),i=!n&&kp(e),r=!n&&!i&&Cp(e),o=!n&&!i&&!r&&Op(e),s=n||i||r||o,a=s?Sp(e.length,String):[],c=a.length;for(var l in e)!t&&!Rp.call(e,l)||s&&("length"==l||r&&("offset"==l||"parent"==l)||o&&("buffer"==l||"byteLength"==l||"byteOffset"==l)||Ap(l,c))||a.push(l);return a};var Np=Qu,Pp=Sh,xp=function(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t},Mp=Object.prototype.hasOwnProperty;var Dp=Lp,Up=function(e){if(!Np(e))return xp(e);var t=Pp(e),n=[];for(var i in e)("constructor"!=i||!t&&Mp.call(e,i))&&n.push(i);return n},Bp=Hh;var qp=function(e){return Bp(e)?Dp(e,!0):Up(e)},Fp=_p,jp=qp;var Hp=hh,zp=fh.exports,Gp=gh,Kp=yh,Wp=Ah,Vp=Uh,Yp=Bh,Qp=Kh,Xp=Wh.exports,Jp=$u,Zp=Qu,$p=np,ef=fp,tf=mp,nf=function(e){return Fp(e,jp(e))};var rf=oh,of=hh,sf=ph,af=function(e,t,n,i,r,o,s){var a=tf(e,n),c=tf(t,n),l=s.get(c);if(l)Hp(e,n,l);else{var u=o?o(a,c,n+"",e,t,s):void 0,d=void 0===u;if(d){var h=Yp(c),p=!h&&Xp(c),f=!h&&!p&&ef(c);u=c,h||p||f?Yp(a)?u=a:Qp(a)?u=Kp(a):p?(d=!1,u=zp(c,!0)):f?(d=!1,u=Gp(c,!0)):u=[]:$p(c)||Vp(c)?(u=a,Vp(a)?u=nf(a):Zp(a)&&!Jp(a)||(u=Wp(c))):d=!1}d&&(s.set(c,u),r(u,c,i,o,s),s.delete(c)),Hp(e,n,u)}},cf=Qu,lf=qp,uf=mp;var df=function e(t,n,i,r,o){t!==n&&sf(n,(function(s,a){if(o||(o=new rf),cf(s))af(t,n,a,i,e,r,o);else{var c=r?r(uf(t,a),s,a+"",t,n,o):void 0;void 0===c&&(c=s),of(t,a,c)}}),lf)};var hf=function(e){return e};var pf=function(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)},ff=Math.max;var mf=function(e,t,n){return t=ff(void 0===t?e.length-1:t,0),function(){for(var i=arguments,r=-1,o=ff(i.length-t,0),s=Array(o);++r<o;)s[r]=i[t+r];r=-1;for(var a=Array(t+1);++r<t;)a[r]=i[r];return a[t]=n(s),pf(e,this,a)}};var vf=function(e){return function(){return e}},gf=ah,yf=gf?function(e,t){return gf(e,"toString",{configurable:!0,enumerable:!1,value:vf(t),writable:!0})}:hf,bf=Date.now;var Ef=function(e){var t=0,n=0;return function(){var i=bf(),r=16-(i-n);if(n=i,r>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}(yf),_f=hf,wf=mf,Tf=Ef;var Sf=pu,kf=Hh,If=Tp,Cf=Qu;var Af=function(e,t){return Tf(wf(e,t,_f),e+"")},Of=function(e,t,n){if(!Cf(n))return!1;var i=typeof t;return!!("number"==i?kf(n)&&If(t,n.length):"string"==i&&t in n)&&Sf(n[t],e)};var Rf=df;Lf=function(e,t,n){Rf(e,t,n)},Af((function(e,t){var n=-1,i=t.length,r=i>1?t[i-1]:void 0,o=i>2?t[2]:void 0;for(r=Lf.length>3&&"function"==typeof r?(i--,r):void 0,o&&Of(t[0],t[1],o)&&(r=i<3?void 0:r,i=1),e=Object(e);++n<i;){var s=t[n];s&&Lf(e,s,n,r)}return e}));var Lf;function Nf(e){const t=e.getBoundingClientRect();let{top:n,left:i}=t;const{right:r,bottom:o,width:s,height:a,x:c,y:l}=t;return n+=document.documentElement.scrollTop||document.body.scrollTop,i+=document.documentElement.scrollLeft||document.body.scrollLeft,{top:n,right:r,bottom:o,left:i,width:s,height:a,x:c,y:l}}function Pf(e,t,n){const i=Nf(e),r=Nf(t),o=Nf(n),s=i.top-o.top-n.clientTop-r.height+i.height,a=i.left-o.left-n.clientLeft-r.width+i.width;return{boundingCoordinates:i,elementCoordinates:r,elemOffsetParentCoordinates:o,topMinLimit:s,leftMinLimit:a,elemTop:r.top-o.top,elemLeft:r.left-o.left,topMaxLimit:s-i.height+r.height,leftMaxLimit:a-i.width+r.width}}document.querySelector(".upload-progress"),document.querySelector("#progressVal");const xf="data-draggable-initialized",Mf="touchstart",Df="touchmove",Uf="touchend";class Bf{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const t=this.onTouchStart.bind(this);if(this.options=e,!e.element||1!==e.element.nodeType)throw new Error("pass valid draggable element");if(this.draggableElementEl=e.element,e.boundingParent&&1===e.boundingParent.nodeType){if(!e.boundingParent.contains(e.element))throw new Error("pass a proper ancestor element");this.boundingParentEl=e.boundingParent}else this.boundingParentEl=document.body;Bf.isDraggable(this.draggableElementEl)||this.draggableElementEl.addEventListener(Mf,t),this.draggableElementEl.setAttribute(xf,!0)}dragElement(e,t,n){let i=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];const r={top:n>0?Math.min(e.topMaxLimit,e.elemTop+n):Math.max(e.topMinLimit,e.elemTop+n),left:t>0?Math.min(e.leftMaxLimit,e.elemLeft+t):Math.max(e.leftMinLimit,e.elemLeft+t)};this.draggableElementEl.style.left="".concat(r.left,"px"),this.draggableElementEl.style.top="".concat(r.top,"px"),this.options.onDrag instanceof Function&&this.options.onDrag(e.boundingCoordinates.left-r.left-e.elemOffsetParentCoordinates.left,e.boundingCoordinates.top-r.top-e.elemOffsetParentCoordinates.top,i)}onTouchMove(e){const t=!!e.touches;if(e.preventDefault(),this.isMoving||(this.isMoving=!0),t&&1===e.touches.length){const t=e.touches[0].clientX-this._startClientX,n=e.touches[0].clientY-this._startClientY;this.dragElement.call(this,this.limits,t,n)}}onTouchStart(e){this.limits=Pf(this.boundingParentEl,this.draggableElementEl,this.draggableElementEl.offsetParent),this.isMoving=!1;const t=this.onTouchMove.bind(this),n=!!e.touches;this._startClientX=n?e.touches[0].clientX:e.clientX,this._startClientY=n?e.touches[0].clientY:e.clientY,e.preventDefault(),document.addEventListener(Df,t),document.addEventListener(Uf,(function e(){document.removeEventListener(Df,t),document.removeEventListener(Uf,e)}))}moveTo(e,t){const n=Pf(this.boundingParentEl,this.draggableElementEl,this.draggableElementEl.offsetParent),i=e+n.boundingCoordinates.left-n.elementCoordinates.left,r=t+n.boundingCoordinates.top-n.elementCoordinates.top;this.dragElement.call(this,n,i,r,!1)}}Bf.isDraggable=function(e){return!!e.getAttribute(xf)};const qf="data-zoomable-initialized",Ff="touchstart",jf="touchmove",Hf="touchend";class zf{constructor(e){const t=this.onTouchStart.bind(this);if(this.options=e,!e.element||1!==e.element.nodeType)throw new Error("pass valid zoomable element");if(!(e.scaleElement&&e.scaleElement instanceof Function))throw new Error("pass valid function to scale element");if(!(e.getMinDimensions&&e.getMinDimensions instanceof Function))throw new Error("pass valid function to get minimum dimensions");if(this.zoomableElement=e.element,e.boundingParent&&1===e.boundingParent.nodeType){if(!e.boundingParent.contains(e.element))throw new Error("pass a proper ancestor element");this.boundingParent=e.boundingParent}else this.boundingParent=document.body;zf.isZoomable(this.zoomableElement)||(this.zoomableElement.addEventListener(Ff,t),this.zoomableElement.setAttribute(qf,!0))}scaleElement(e,t){if(1===e)return;this.limits=Pf(this.boundingParent,this.zoomableElement,this.zoomableElement.offsetParent);let n=this.limits.elementCoordinates.width*e,i=this.limits.elementCoordinates.height*e;if(n<this.limits.boundingCoordinates.width||i<this.limits.boundingCoordinates.height){const t=this.options.getMinDimensions();i=t.height,n=t.width,e=i/this.limits.elementCoordinates.height}let r=this.limits.elemLeft-(t.clientX-this.limits.elementCoordinates.left)*(e-1),o=this.limits.elemTop-(t.clientY-this.limits.elementCoordinates.top)*(e-1);const s=this.limits.leftMinLimit-this.zoomableElement.offsetWidth*(e-1),a=this.limits.leftMaxLimit,c=this.limits.topMinLimit-this.zoomableElement.offsetHeight*(e-1),l=this.limits.topMaxLimit;r<s?r=s:r>a&&(r=a),o<c?o=c:o>l&&(o=l),this.options.scaleElement(n,i,this.limits.boundingCoordinates.left-r-this.limits.elemOffsetParentCoordinates.left,this.limits.boundingCoordinates.top-o-this.limits.elemOffsetParentCoordinates.top),this.zoomableElement.style.left="".concat(r,"px"),this.zoomableElement.style.top="".concat(o,"px")}onTouchMove(e){if(e.preventDefault(),2===e.touches.length){const t=Math.sqrt((e.touches[0].clientX-e.touches[1].clientX)*(e.touches[0].clientX-e.touches[1].clientX)+(e.touches[0].clientY-e.touches[1].clientY)*(e.touches[0].clientY-e.touches[1].clientY));if(this._startDistance>0){const n=t/this._startDistance,i=e.touches[0];this.scaleElement.call(this,n,i)}this._startDistance=t}}onTouchStart(e){e.preventDefault();const t=this.onTouchMove.bind(this);2===e.touches.length?this._startDistance=Math.sqrt((e.touches[0].x-e.touches[1].x)*(e.touches[0].x-e.touches[1].x)+(e.touches[0].y-e.touches[1].y)*(e.touches[0].y-e.touches[1].y)):this._startDistance=0,document.addEventListener(jf,t),document.addEventListener(Hf,(function e(){document.removeEventListener(jf,t),document.removeEventListener(Hf,e)}))}}let Gf;zf.isZoomable=function(e){return!!e.getAttribute(qf)};r.getInstance().addUnloadCallback(()=>{Gf&&Gf.close(),Rr(document.querySelector("#discard-post-modal")),Rr(document.querySelector("#visibility-settings-modal")),Rr(document.querySelector("#max-images-prompt-modal")),Rr(document.querySelector("#retry-upload-modal"))});class Kf{constructor(e){this.storage=void 0===e?localStorage:e}read(e){try{const t=this.storage.getItem(e);if(t)return JSON.parse(t)}catch(e){}return null}write(e,t){try{this.storage.setItem(e,JSON.stringify(t))}catch(e){console.error(e)}}remove(e){try{this.storage.removeItem(e)}catch(e){console.error(e)}}readWithExpiry(e,t){const n=this.read(e+"_lastUpdatedAt");return n&&(new Date).getTime()-n<t?this.read(e):(this.removeWithExpiry(e),null)}writeWithExpiry(e,t){this.write(e,t),this.write(e+"_lastUpdatedAt",(new Date).getTime())}removeWithExpiry(e){this.remove(e),this.remove(e+"_lastUpdatedAt")}}(function(){try{Kf.instance||(Kf.instance=new Kf(localStorage)),Kf.instance}catch(e){}})(),function(){try{Kf.sessionInstance||(Kf.sessionInstance=new Kf(sessionStorage)),Kf.sessionInstance}catch(e){}}();let Wf;function Vf(){return Wf||(Wf=new Es),Wf}class Yf extends Os{constructor(){super(...arguments)}execute(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:()=>{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:()=>{};return this.executeAction({queryId:Yf.query,variables:{successRedirectUrl:e},successCallback:t,failureCallback:n})}}te(Yf,"query","5f93d1d6b933cfbfdf7b0a80dedfb3f4");class Qf extends Os{constructor(){super(...arguments)}execute(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:()=>{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:()=>{};return this.executeAction({queryId:Qf.query,successCallback:e,failureCallback:t})}}te(Qf,"query","da4a9ce2de842c1abe01ca37ea9271ee");function Xf(e){const t=e.target.value;e.target.classList.toggle("selected",t),e.target.focus()}function Jf(e){if(e){const{id:t,labelText:n}=e.dataset;if(!t||!n)throw new Error("mandatory fields missing.");const i=e.querySelector("select");i&&(i.addEventListener("change",Xf),i.value&&i.classList.add("selected"))}else{document.querySelectorAll(".dropdown-container").forEach(Jf)}}function Zf(e){const t=e.currentTarget.parentElement.querySelector("input");t.value="",t.classList.remove("selected"),t.focus(),m(t,"input:cleared"),m(t,"change")}function $f(e){const t=e.currentTarget.parentElement,n=t.dataset.placeholder,i=t.querySelector("input");n&&i.setAttribute("placeholder",n),i.removeEventListener("focus",$f)}function em(e){const t=e.target.value;e.target.classList.toggle("selected",t)}function tm(e){if(e){const{id:t,labelText:n}=e.dataset;if(!t||!n)throw new Error("mandatory fields missing.");const i=e.querySelector("input"),r=e.querySelector(".right");i.addEventListener("change",em),i.addEventListener("focus",$f),r&&r.addEventListener("click",Zf)}else{document.querySelectorAll(".input-container").forEach(tm)}}const nm="MinLength",im="MaxLength",rm="Regex",om="Required",sm="RegexAllow",am="RegexAllowEmail",cm={SPECIAL_CHARS:{pattern:/([!@#$%^&*+=|<>?:;\\])/,errorCode:"SpecialChars"},URL_KEYWORDS:{pattern:/(https?(:\/\/)?|www\.)/i,errorCode:"UrlKeywords"},EMAIL:{pattern:new RegExp('^(([^<>()\\[\\]\\\\.,;:\\s@"]+(\\.[^<>()\\[\\]\\\\.,;:\\s@"]+)*)|(".+"))@((\\[[0-9]{1,3}\\.[0-9]{1,3}\\.[0-9]{1,3}\\.[0-9]{1,3}])|(([a-zA-Z\\-0-9]+\\.)+[a-zA-Z]{2,}))$'),errorCode:"Email"},PHONE_NUMBER:{pattern:/(?:^((\+(?=[0-9]{1,4}))?))[0-9]{5,14}$/,errorCode:"PhoneNumber"}},lm="EMAIL_ADDRESS",um="PHONE_NUMBER",dm="OTHER",hm="consentUnchecked",pm={INPUT:"INPUT",SELECT:"SELECT"},fm="text",mm="checkbox";function vm(e){return Object.keys(pm).includes(e.tagName)}function gm(e){const t=function(e){const t=[],{minLength:n,maxLength:i,inputType:r}=e.dataset;let o;switch(r){case dm:n&&t.push({type:nm,MinLength:n}),i&&t.push({type:im,MaxLength:i});break;case lm:t.push({type:sm,RegexAllow:[cm.EMAIL]});break;case um:o=e.value.replace(/ /g,""),t.push({type:sm,RegexAllow:[cm.PHONE_NUMBER]})}return{value:o||e.value,ruleSet:t}}(e),n=t.value;return t.ruleSet.map(e=>((e,t)=>{const n=t.trim();if(e)switch(e.type){case om:if(0===n.length)return om;break;case nm:if(n.length<e[nm])return nm;break;case im:if(n.length>e[im])return im;break;case rm:for(let t=0;t<e[rm].length;t++)if(e[rm][t].pattern.test(n))return rm+e[rm][t].errorCode;break;case sm:for(let t=0;t<e[sm].length;t++)if(!e[sm][t].pattern.test(n))return sm+e[sm][t].errorCode}})(e,n)).filter(e=>!!e)}function ym(e,t){return t&&!e?hm:null}const bm=(e,t)=>parseInt(t.split(e)[1]),Em=(e,t)=>t.split(e)[1];function _m(e,t){return document.querySelector("#".concat(e.id,"-strings")).dataset["str".concat(t)]}const wm=(e,t)=>({questionId:e,textQuestionAnswer:{answer:t}}),Tm=(e,t)=>({questionId:e,multipleChoiceAnswer:{options:[{index:t}]}}),Sm=(e,t)=>({question:e,answerDetails:{options:[t]}});function km(e){const t=e.id+"_",n=t+"q",i=t+"c",r=ws("hasDecoratedLeadGenFormData");return new Promise((t,o)=>{const s=[];let a,c;const{urn:l,legalInfoUrn:u,leadType:d,associatedEntityUrn:h}=e.dataset;c=e.dataset.leadTrackingParams,c||(a=e.closest("[data-lead-tracking-params]"),c=a.dataset.leadTrackingParams);const p={formResponse:{adFormUrn:l,submittedAt:Date.now(),answers:[],consentResponses:[]},trackingUrl:c,trackingAction:"LEAD_FORM_CLICK"},f={associatedEntity:h,form:l,legalInfoUrn:u,leadType:d,formResponse:{answers:[],consentResponses:[]},leadTrackingParams:c,submittedAt:Date.now(),submitter:ws("memberUrn")};return Array.from(e).filter(vm).forEach(e=>{let t;if(e.tagName===pm.SELECT)t=((e,t,n)=>{const i=n?Em(e,t.id):bm(e,t.id),r=t.selectedIndex;return{response:n?Sm(i,r):Tm(i,r)}})(n,e,r),r?f.formResponse.answers.push(t.response):p.formResponse.answers.push(t.response);else if(e.type===fm)if(t=((e,t,n)=>{const i=n?Em(e,t.id):bm(e,t.id),r=gm(t);return 0!==r.length?{errors:r}:{response:n?(o=i,s=t.value,{question:o,answerDetails:{answer:s}}):wm(i,t.value)};var o,s})(n,e,r),t.response)r?f.formResponse.answers.push(t.response):p.formResponse.answers.push(t.response);else{const n=t.errors[0];s.push({element:e,errorType:n})}else e.type===mm&&(t=((e,t,n,i,r)=>{const o=bm(e,t),s=ym(n,i);return s?{errors:s}:{response:{[r?"consent":"consentId"]:o,accepted:n}}})(i,e.id,e.checked,e.required,r),t.response?r?f.formResponse.consentResponses.push(t.response):p.formResponse.consentResponses.push(t.response):s.push({element:e,errorType:t.errors}))}),0===s.length?t(r?f:p):o(s)})}const Im=".lead-gen-input-container",Cm='input[data-input-type="EMAIL_ADDRESS"]',Am=".error-text",Om=".bottom-sheet",Rm="input-error",Lm="checkbox-input",Nm="inputbox-input",Pm="hidden";function xm(e){const t=this.formEl.querySelector(Cm);let n=(null==t?void 0:t.value)||"";return function(i){this._isError(i.currentTarget)||n===i.currentTarget.value||(n=i.currentTarget.value,V("".concat(e,"?email=").concat(n)).then(e=>{let n;try{var i;n=null===(i=JSON.parse(e.responseText))||void 0===i?void 0:i.isEmailValid}catch(e){}n?this._hideError(t):this._setAndShowError(t,am)}))}.bind(this)}class Mm{constructor(e){let{isLivePreview:t=!1,triggerByOutletEl:n=!0,customEmailValidationFn:i,customEmailValidationPath:r,persistFormOnSubmit:o}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!e)throw new Error("containerEl is not present");tm(),Jf(),Br("form-modal-description__content-truncated",".form-modal-description__btn-truncation",e),this.containerEl=e,this.formEl=e.querySelector("form");const s=e.querySelector(".lead-gen-modal");this.formContentEl=e.querySelector(".lead-gen-form-modal-content"),this.postSubmissionInfoEl=e.querySelector(".lead-gen-form-modal-post-subimssion"),this.submitBtn=this.formEl.querySelector(".submit-btn"),this.persistFormOnSubmit=o,this.modal=new $s(s,{triggerByOutletEl:n,shouldMoveToTopContainer:!1});const a=document.querySelector(Om);if(a&&(this.bottomSheet=new lu({bottomSheetEl:a,pushState:!1})),!i&&!r)throw new Error("customEmailValidationFn or customEmailValidationPath is not present");this.customEmailValidationFn=i||xm.bind(this)(r),t?this.showForm():this._bindEvents()}showForm(){this.modal.open()}hideForm(){this.modal.close()}showPostSubmissionInfo(){this.bottomSheet?(this.modal.close(),this.bottomSheet.open()):(this.formContentEl.classList.add(Pm),this.postSubmissionInfoEl.classList.remove(Pm))}enableSubmit(){this.submitBtn.removeAttribute("disabled")}_clearFormErrors(){Array.from(this.formEl).filter(vm).map(e=>this._hideError(e))}_submitForm(){this._clearFormErrors(),km(this.formEl).then(e=>{m(this.containerEl,this.constructor.LEAD_GEN_SUBMIT_EVENT,e),this.submitBtn.disabled=!0,this.persistFormOnSubmit?this.showPostSubmissionInfo():this.hideForm()}).catch(e=>{e.forEach(e=>this._setAndShowError(e.element,e.errorType));const t=e[0];if(t){t.element.focus();U(_m(t.element,t.errorType),D.ASSERTIVE)}})}_hideError(e){if(e){const t=e.closest(Im),n=t.querySelector(Am);Rr(n),t.classList.remove(Rm),e.removeAttribute("aria-invalid"),n.removeAttribute("role")}}_isError(e){var t;return null==e||null===(t=e.closest(Im))||void 0===t?void 0:t.classList.contains(Rm)}_setAndShowError(e,t){if(e){const n=_m(e,t),i=e.closest(Im),r=i.querySelector(Am);r.innerText=n,Lr(r),i.classList.add(Rm),r.setAttribute("role","alert"),e.setAttribute("aria-invalid","true")}}_handleInputError(e){let t;if(this._hideError(e),e.type===mm)t=ym(e.checked,e.required);else if(e.type===fm){const n=gm(e);n&&n.length&&(t=n[0])}t&&this._setAndShowError(e,t)}_bindEvents(){const e=this.formEl.querySelector(".submit-btn"),t=this.formEl.querySelector(Cm);this.formEl.addEventListener("click",e=>{e.target.classList.contains(Lm)&&this._handleInputError(e.target)}),this.formEl.addEventListener("input:cleared",e=>{this._handleInputError(e.target)}),this.formEl.addEventListener("keyup",e=>{e.target.classList.contains(Nm)&&this._handleInputError(e.target)}),this.customEmailValidationFn&&null!=t&&t.dataset.freemiumValidationRequired&&t.addEventListener("focusout",this.customEmailValidationFn),e.addEventListener("click",e=>{e.preventDefault(),e.stopPropagation(),this._submitForm()})}}te(Mm,"LEAD_GEN_SUBMIT_EVENT","FormModal:LeadGen:submit");class Dm{constructor(e,t){if(!e)throw Error("Missing FollowMutation endpoint");t&&(this.pemDegradationTrackingMetadata=t,this.isPemEnabled=!0),this.endpoint=e}execute(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:()=>{},i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:()=>{};return As({endpoint:this.endpoint,queryId:Dm.query,variables:{followState:e,to:t},pemDegradationTrackingMetadata:this.pemDegradationTrackingMetadata,isPemEnabled:this.isPemEnabled}).then(e=>{const{responseText:t}=e;n(JSON.parse(t).graphQL)}).catch(i)}}te(Dm,"query","cbed571fffd8cea15209aed8d44e6759");const Um=Object.freeze({APPRECIATION:"APPRECIATION",ASSENT:"ASSENT",CELEBRATION:"CELEBRATION",EMPATHY:"EMPATHY",ENTERTAINMENT:"ENTERTAINMENT",INSPIRATION:"INSPIRATION",INTEREST:"INTEREST",LIKE:"LIKE",MAYBE:"MAYBE",PRAISE:"PRAISE",UNKNOWN:"UNKNOWN",USEFULNESS:"USEFULNESS"});Object.freeze(Object.values(Um));const Bm="CREATE",qm="UPDATE";class Fm{constructor(e,t){if(!e)throw Error("Missing ReactionMutation endpoint");t&&(this.pemDegradationTrackingMetadata=t,this.isPemEnabled=!0),this.endpoint=e}execute(e,t,n){let i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:()=>{},r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:()=>{};const o={endpoint:this.endpoint,queryId:Fm.query,variables:{entityUrn:t,action:n},pemDegradationTrackingMetadata:this.pemDegradationTrackingMetadata,isPemEnabled:this.isPemEnabled};return n!==Bm&&n!==qm||(o.variables.reactionType=e),As(o).then(e=>{const{responseText:t}=e;i(JSON.parse(t).graphQL)}).catch(r)}}te(Fm,"query","070ee23fd6fb77f92ac08f964ae1df29");Object.freeze({NEW_COMMENT_CREATE_EVENT:"Comment:newComment:create",NEW_COMMENT_SUCCESS_EVENT:"Comment:newComment:success",NEW_COMMENT_FAIL_EVENT:"Comment:newComment:fail"});Object.freeze({ANDROID:"com.linkedin.android",IOS:"com.linkedin.LinkedIn"});Object.freeze({HTML:"html",TEXT:"text",DATA:"data"}),Object.freeze({DESKTOP:"desktop",IOS:"ios",ANDROID:"android"});HTMLElement;"light".toUpperCase();class jm extends Os{constructor(){super(...arguments)}execute(e){let{eventType:t,trackingToken:n,widgetActionCategory:i}=e,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:()=>{},o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:()=>{};return this.executeAction({queryId:jm.query,variables:{eventType:t,trackingToken:n,widgetActionCategory:i},successCallback:r,failureCallback:o})}}te(jm,"query","48f4c814e38d5689b7c83a29c9676972");Object.freeze({EVENT_FALLBACK_UI_SHOWN:"fallback-ui-shown"});const Hm=document.querySelector("#share-modal .textarea"),zm=document.querySelector(".image-preview-wrapper"),Gm=document.querySelector("#share-modal .modal-content .reshare-section"),Km=document.querySelector(".post-button"),Wm=document.querySelector("#comments-enabled"),Vm=document.querySelector("#share-with-public"),Ym=document.querySelector(".post-settings-wrapper"),Qm=document.querySelector('input[name="share-with"]:checked'),Xm=document.querySelector("#share-modal .close-button"),Jm=document.querySelector("#visibility-settings-modal"),Zm=document.querySelector("#visibility-header-back .close-button"),$m=document.querySelector("#visibility-settings-modal .settings-list-wrapper"),ev=document.querySelector("#discard-post-modal-wrapper"),tv=document.querySelector("#share-modal"),nv=document.querySelector(".modal-spinner"),iv=document.querySelector("#share-modal .textarea"),rv=document.querySelector("#share-with-groups");document.querySelector("#share-group-urn");const ov=document.querySelector("#share-with-network");class sv extends $s{updatePostButtonStatus(){var e;const t=null===(e=Hm.innerText)||void 0===e?void 0:e.trim().length,n="loaded"===zm.getAttribute("data-image-load-state"),i=Gm.children.length;t||n||i?Mr(Km):xr(Km)}clearModalContentBase(){Gm&&(Gm.textContent=""),Hm&&(Hm.textContent=""),Wm&&(Wm.checked=!0),Vm&&(Vm.checked=!0,Ym.setAttribute("data-post-visibility",Qm.value))}historyBackClickHandler(){"share-modal"!==window.history.state&&"typeahead"!==window.history.state&&(window.history.pushState("share-modal","show-share-modal","#share-modal"),Xm.click())}bindVisibilityModalEvents(){function e(e){const t=e.target,n=t.closest("[".concat("data-control-action","]"))||t.querySelector("[".concat("data-control-action","]"));n&&window.tracking.then(e=>{e.fireControlInteractionEvent(n.getAttribute("data-control-action"))})}Jm.addEventListener("close",()=>{Ym.setAttribute("data-post-visibility",document.querySelector('input[name="share-with"]:checked').value)}),Zm.addEventListener("click",()=>window.history.back()),$m.addEventListener("click",t=>e(t)),$m.addEventListener("keydown",t=>{if(13===t.keyCode){const n=t.target.querySelector("input[type=radio]");n&&(n.checked=!0,e(t))}})}discardPostConfirmationModalPrimaryActionCallback(e){let{enableHistoryBack:t}=e;this.close({enableHistoryBack:t}),Dr()&&"discard-post-modal"===window.history.state&&setTimeout(()=>{window.history.back()},100)}postSettingsClickHandler(){window.tracking.then(e=>{e.fireControlInteractionEvent("post-settings")}),this.visibilitySettingsModal.open()}}class av extends sv{constructor(e,t){let{endpoint:n="",enablePageViewTracking:i=!1,shouldHideModal:r=(()=>!1),triggerByOutletEl:o=!1,pushState:s=!1,historyUpdateUrl:a}=t;super(e,{enablePageViewTracking:i,shouldHideModal:r,triggerByOutletEl:o,pushState:s}),this.el=e,this.postData={},this.endpoint=n,this.historyUpdateUrl=a,this.postUrn=ws("ugcPostUrn"),this.openShareModalByLink=this._checkIfOpenShareModalByLink(),this.bindPublishingShareEvents(),this.visibilitySettingsModal=new $s(Jm,{triggerByOutletEl:!1}),this.handleOpenByUrl()}bindPublishingShareEvents(){this.shareTextEvents(),this.bindShareModalEvents(),this.bindVisibilityModalEvents()}_checkIfOpenShareModalByLink(){const e=new URL(location.href);return!0===Boolean(e.searchParams.get("openShareModal"))}handleOpenByUrl(){this.openShareModalByLink&&this.open()}shareTextEvents(){const e=p(this.updatePostButtonStatus,300);iv.addEventListener("input",e)}bindShareModalEvents(){const e=new au(ev,this.discardPostConfirmationModalPrimaryActionCallback.bind(this,{enableHistoryBack:!this.openShareModalByLink}),()=>{},{enablePageViewTracking:!0,pageKey:"article_discard_confirmation",triggerByOutletEl:!1});tv.addEventListener("open",()=>{Hm.focus()}),tv.addEventListener("close",()=>{this.clearModalContentBase(),Rr(nv)}),Km.addEventListener("click",()=>{this.processPostData()}),Xm.addEventListener("click",()=>{Km.disabled?this.close():e.modal.open()}),Ym.addEventListener("click",this.postSettingsClickHandler.bind(this)),Ym.addEventListener("keydown",e=>{13===e.keyCode&&this.postSettingsClickHandler.apply(this)})}open(){var e;let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{defaultText:n}=t;this.historyUpdateUrl&&window.history.replaceState({},document.title,this.historyUpdateUrl),super.open(),this._checkIfOpenShareModalByLink()&&this._removeShareParams(),this.renderShareArticleShareSection(),Ur()&&window.scrollTo(0,0),n&&(iv.textContent=n),this.shareData={},this.historyUpdateUrl&&window.history.replaceState({},document.title,this.historyUpdateUrl),this.isNewPost=!1,this.postUrn&&(this.shareData.reshareUrn=this.postUrn,this.shareData.attributedShareUrn=this.postUrn),null===(e=window.lazyloader)||void 0===e||e.then(e=>{e.refreshLoader()}),this.updatePostButtonStatus()}renderShareArticleShareSection(){const e=this.el.querySelector("#share-modal .modal-content .reshare-section");e.children.length?this.shareArticleNodeChild=e.children[0].cloneNode(!0):e.appendChild(this.shareArticleNodeChild)}composePostData(){this.shareData.text=iv.textContent,this.shareData.visibility="PUBLIC",rv&&(this.shareData.visibility="CONTAINER",this.shareData.containerEntity=rv.value),ov.checked&&(this.shareData.visibility="CONNECTIONS")}processPostData(){Lr(nv),this.composePostData(),As({endpoint:this.endpoint,queryId:av.query,variables:this.shareData}).then(e=>{var t,n;200!==e.status&&Promise.reject();const i=(null===(t=JSON.parse(null==e?void 0:e.responseText).graphQL)||void 0===t||null===(n=t.createPost)||void 0===n?void 0:n.activityUrn)||Promise.reject();window.tracking.then(e=>{hr(e,"ajax","post_success_page_key")}),Vf().trigger("success",ws("postSuccessMessage"),"post-success-toast-dismiss",{url:"/feed/update/"+i,trk:"share-post-success",text:ws("postSuccessViewPost"),target:"_self"}),this.close()}).catch(()=>{window.tracking.then(e=>{hr(e,"ajax","post_failure_page_key")}),Vf().trigger("error",ws("postFailureMessage"),"post-error-toast-dismiss"),this.close()})}close(){super.close({enableHistoryBack:!this.openShareModalByLink})}_removeShareParams(){var e;const t=new URL(window.location.href);null===(e=t.searchParams)||void 0===e||e.delete("openShareModal"),window.history.pushState({},document.title,t.toString())}}te(av,"query","971e319c05beaf333e94125db8c4f942");const cv={"send-connection-invite":[{degradationKey:"failed-to-invite"}],follow:[{degradationKey:"failed-to-follow"}],unfollow:[{degradationKey:"failed-to-unfollow"}]};uu({featureName:"send-connection-invite",productName:"Lite-feed",featureMappingToDegradationConfig:cv}),uu({featureName:"follow",productName:"Lite-feed",featureMappingToDegradationConfig:cv}),uu({featureName:"unfollow",productName:"Lite-feed",featureMappingToDegradationConfig:cv});class lv extends Os{constructor(){super(...arguments)}execute(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:()=>{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:()=>{};return this.executeAction({queryId:lv.query,variables:{inviteeVanityName:e},successCallback:t,failureCallback:n})}}te(lv,"query","71a5ef30bcb1e84ab5a2b77850d4bb1e");class uv extends Os{constructor(){super(...arguments)}execute(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:()=>{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:()=>{};return this.executeAction({queryId:uv.query,variables:{skills:e},successCallback:t,failureCallback:n})}}te(uv,"query","a628cd3be2c138c07fc69c2413b23fb6");class dv extends Os{constructor(){super(...arguments)}execute(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:()=>{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:()=>{};return this.executeAction({queryId:dv.query,variables:{skills:e},successCallback:t,failureCallback:n})}}te(dv,"query","a0ff03a6b1cbe44862cb2054f0612078");class hv extends Os{constructor(){super(...arguments)}execute(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:()=>{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:()=>{};return this.executeAction({queryId:hv.query,variables:{alertChannel:e.alertChannel||"EMAIL",alertFrequency:e.alertFrequency||"DAILY",creationChannel:e.creationChannel||"ONBOARD",searchParams:e.searchParams},successCallback:t,failureCallback:n})}}te(hv,"query","ad184ece0303620a9753eca249efd99f");class pv extends Os{constructor(){super(...arguments)}execute(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:()=>{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:()=>{};return this.executeAction({queryId:pv.query,variables:{updateProfilePictureInput:e},successCallback:t,failureCallback:n})}}te(pv,"query","7edd5b8a4513caf8180a64ecde871630");class fv extends Os{constructor(){super(...arguments)}execute(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:()=>{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:()=>{};return this.executeAction({queryId:fv.query,variables:{updateSettingsResponseDataFetcherInput:{type:"SHOW_PICTURE_SETTING",valueString:e}},successCallback:t,failureCallback:n})}}te(fv,"query","97ceca0bcbbf3fd6d744083b4de0a202");document.querySelector.bind(document);class mv extends Os{constructor(){super(...arguments)}execute(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:()=>{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:()=>{};return this.executeAction({queryId:mv.query,variables:{digitalmediaAssetUrn:e},successCallback:t,failureCallback:n})}}te(mv,"query","85c85c121bf7eaabd2388b9143f94546");function vv(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}class gv{constructor(){this._unloadCallbacks=[],this._initEventListener()}_initEventListener(){window.addEventListener("beforeunload",e=>{for(let t=0;t<this._unloadCallbacks.length;t++){if(!1===this._unloadCallbacks[t].call(null,e))break}})}addUnloadCallback(e){e instanceof Function&&this._unloadCallbacks.push(e)}}const yv=function(){let e;return{getInstance:function(){return e||(e=new gv),e}}}();class bv{constructor(){this._pagehideCallbacks=[],this._initEventListener()}_initEventListener(){window.addEventListener("pagehide",e=>{for(let t=0;t<this._pagehideCallbacks.length;t++)this._pagehideCallbacks[t].call(null,e)})}addPagehideCallback(e){e instanceof Function&&this._pagehideCallbacks.push(e)}}!function(){let e}();function Ev(e){return null==e||"object"!=typeof e?[]:Array.prototype.slice.call(e)}function _v(e,t,n){const i=new RegExp("([\\?&])".concat(n?t:encodeURIComponent(t),"=([^&#]*)")).exec(e);return i&&(n?i[2]:decodeURIComponent(i[2]))}function wv(e,t){return Tv(e,"trk",t)}function Tv(e,t,n,i){if(!e||!t)throw new Error("Required param of addQueryParam missing: url = ".concat(e,",  key = ").concat(t));t=encodeURIComponent(t),n=encodeURIComponent(n);const r=_v(e,t,!0);if(r)return i?e.replace(r,n):e;{const i=e.indexOf("?");let[r,o]=e.split("#"),s="&";return i<0?s="?":i===e.length-1&&(s=""),o&&(o="#".concat(o)),"".concat(r).concat(s).concat(t,"=").concat(n).concat(o||"")}}function Sv(e,t,n){var i=this;if("function"!=typeof e)throw new TypeError("Expected a function.");let r;return function(){for(var o=arguments.length,s=new Array(o),a=0;a<o;a++)s[a]=arguments[a];const c=()=>{r=null,n||e.apply(i,s)},l=n&&!r;clearTimeout(r),r=setTimeout(c,t),l&&e.apply(i,s)}}function kv(e){const t=document.cookie.match(new RegExp("(^| )"+e+"=([^;]+)"));return t&&t[2]}function Iv(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const i=document.createEvent("CustomEvent");i.initCustomEvent(t,!0,!0,n),e.dispatchEvent(i)}function Cv(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n=e.querySelector('meta[name="pageKey"]'),i=e.getElementById("config"),r=i&&"true"===i.dataset.disableJsbeaconPagekeySuffix;return n&&n.content?"".concat(n.content).concat(r||t.skipSuffix?"":"_jsbeacon"):""}function Av(e){let t=e.querySelector('meta[name="linkedin:pageTag"]');return t&&t.content||""}function Ov(e){let t=e.querySelector('meta[name="locale"]');return t&&t.content||""}function Rv(e){return e&&'"'===e.charAt(0)&&'"'===e.charAt(e.length-1)?e.slice(1,-1):e}const Lv={ARROW_DOWN:"ArrowDown",ARROW_LEFT:"ArrowLeft",ARROW_RIGHT:"ArrowRight",ARROW_UP:"ArrowUp",ESCAPE:"Escape",ENTER:"Enter",SPACEBAR:" ",TAB:"Tab"},Nv={Down:Lv.ARROW_DOWN,Right:Lv.ARROW_RIGHT,Left:Lv.ARROW_LEFT,Up:Lv.ARROW_UP,Esc:Lv.ESCAPE,Spacebar:Lv.SPACEBAR,Tab:Lv.TAB};function Pv(e){return Nv[e]||e}let xv,Mv;const Dv=['a[href]:not([tabindex^="-"])','area[href]:not([tabindex^="-"])','input:not([disabled]):not([tabindex^="-"]):not([type="hidden"])','select:not([disabled]):not([tabindex^="-"])','textarea:not([disabled]):not([tabindex^="-"])','button:not([disabled]):not([tabindex^="-"])'],Uv=[...Dv,'[tabindex]:not([tabindex^="-"]):not([disabled])'].join(",");[...Dv,"[tabindex]:not([disabled])"].join(",");function Bv(e){const t=window.getComputedStyle(e);return"hidden"===t.visibility||"none"===t.display}function qv(e){let t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:document.documentElement,i=arguments.length>2?arguments[2]:void 0;return e===n?!Bv(e):i&&i.get(e)?i.get(e):(Bv(e)?t=!1:e.parentNode&&(t=qv(e.parentNode,n,i)),i&&i.set(e,t),t)}const Fv={POLITE:"polite",ASSERTIVE:"assertive"};function jv(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Fv.POLITE;xv&&(xv.removeAttribute("aria-hidden"),xv.setAttribute("aria-live",Fv.POLITE),xv.textContent="",xv.textContent=e,xv.setAttribute("aria-live",t),clearTimeout(Mv),Mv=setTimeout(()=>{xv.removeAttribute("aria-live"),xv.setAttribute("aria-hidden","true")},1e4))}class Hv{constructor(e){if(!e)throw new Error("An element must be passed in to Disable Background Navigation");this._container=e,this._hiddenElements=[]}disableBackground(){let e=this._container;for(;e&&e!==document.body&&e.parentElement;)this._hiddenElements=this._hiddenElements.concat([...e.parentElement.children].filter(t=>t!==e&&"true"!==t.getAttribute("aria-hidden")&&(t.setAttribute("aria-hidden",!0),!0))),e=e.parentElement}enableBackground(){this._hiddenElements.forEach(e=>{e.removeAttribute("aria-hidden")}),this._hiddenElements=[]}}const zv=["class","disabled","style","tabindex","type"];class Gv{constructor(e){if(!e)throw new Error("FocusTrap: No focus trap container passed in");this._container=e,this._observer=new MutationObserver(()=>this._setFirstAndLastFocusableEls(this._container)),this._handleKeyDown=this._focusTrap.bind(this),this._backgroundNavigationDisabler=new Hv(this._container)}init(){this._observer.observe(this._container,{attributeFilter:zv,attributes:!0,childList:!0,subtree:!0}),this._setFirstAndLastFocusableEls(this._container),this._container.addEventListener("keydown",this._handleKeyDown),this._backgroundNavigationDisabler.disableBackground()}tearDown(){this._observer.disconnect(),this._container.removeEventListener("keydown",this._handleKeyDown),this._backgroundNavigationDisabler.enableBackground()}_focusTrap(e){const{key:t,target:n}=e,i=Pv(t),r=i===Lv.TAB&&e.shiftKey;!r&&i===Lv.TAB&&n===this.lastFocusableEl?(this.firstFocusableEl.focus(),e.preventDefault()):r&&n===this.firstFocusableEl&&(this.lastFocusableEl.focus(),e.preventDefault())}_setFirstAndLastFocusableEls(e){const[t,n]=this._getFirstAndLastFocusableEls(e);this.firstFocusableEl=t,this.lastFocusableEl=n,setTimeout(()=>{this._hasFocusBeenDropped()&&("-1"===e.getAttribute("tabindex")?e.focus():this.firstFocusableEl.focus())},100)}_hasFocusBeenDropped(){const e=document.activeElement;return!e||e===document.body}_getFirstAndLastFocusableEls(e){const t=[...e.querySelectorAll(Uv)],n=new Map;let i,r,o=0,s=t.length-1;for(;(!i||!r)&&o<=s;){if(!i){const r=t[o];i=qv(r,e,n)&&r,o++}if(!r){const i=t[s];r=qv(i,e,n)&&i,s--}}return r=r||i,[i,r]}}".".concat("collapsible-dropdown","__list"),".".concat("collapsible-dropdown","__button"),".".concat("collapsible-dropdown","__close-button");function Kv(e){let{method:t="GET",headers:n={},sendCookies:i=!0,skipCsrfToken:r=!1,postData:o,isPemEnabled:s=!1,pemDegradationTrackingMetadata:a=[],pemEntityIds:c=[]}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const l={method:t,headers:n,body:null};if(!r){const e=kv("JSESSIONID");e&&(l.headers["Csrf-Token"]=Rv(e))}i&&(l.credentials="include"),"POST"!==l.method&&"PUT"!==l.method||(l.body=o);const u=fetch(e,l),d=u.then(n=>n.ok||304===n.status?n.text().then(e=>(n.responseText=e,n)):n.text().then(i=>{const r=new Error("".concat(t," request for ").concat(e," has failed with status code ").concat(n.status));return n.responseText=i,r.response=n,Promise.reject(r)}));return s&&(a.length?Wv(u,e,c,a):console.warn("Please set the value for the option pemDegradationTrackingMetadata when PEM is enabled.")),d}function Wv(e,t,n,i){try{window.tracking.then(r=>{window.pemTracking.then(o=>{o.trackFeatureDegradationsForFetch(t,n,i,e,r.state.currentPageInstance)})})}catch(e){}}var Vv="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==e.g?e.g:"undefined"!=typeof self?self:{},Yv=(parseInt,"object"==typeof Vv&&Vv&&Vv.Object===Object&&Vv),Qv="object"==typeof self&&self&&self.Object===Object&&self;Yv||Qv||Function("return this")(),Object.prototype.toString,Math.max,Math.min;function Xv(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function Jv(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Xv(Object(n),!0).forEach((function(t){Zv(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Xv(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Zv(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function $v(e,t){if(null==e)return{};var n,i,r=function(e,t){if(null==e)return{};var n,i,r={},o=Object.keys(e);for(i=0;i<o.length;i++)n=o[i],t.indexOf(n)>=0||(r[n]=e[n]);return r}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)n=o[i],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}const eg="light",tg="dark";function ng(){const e=document.getElementById("config");let t;return e&&e.dataset&&(t=e.dataset.theme),t?document.documentElement.classList.contains("dark")?tg:eg:void 0}var ig;function rg(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=ug(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var i=0,r=function(){};return{s:r,n:function(){return i>=e.length?{done:!0}:{done:!1,value:e[i++]}},e:function(e){throw e},f:r}}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,s=!0,a=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return s=e.done,e},e:function(e){a=!0,o=e},f:function(){try{s||null==n.return||n.return()}finally{if(a)throw o}}}}function og(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function sg(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function ag(e,t,n){return t&&sg(e.prototype,t),n&&sg(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function cg(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function lg(e){return function(e){if(Array.isArray(e))return dg(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||ug(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 ug(e,t){if(e){if("string"==typeof e)return dg(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)?dg(e,t):void 0}}function dg(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}function hg(e){return(hg="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 pg,fg=new Uint8Array(16);function mg(){if(!pg&&!(pg="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 pg(fg)}var vg=/^(?:[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 gg(e){return"string"==typeof e&&vg.test(e)}for(var yg=[],bg=0;bg<256;++bg)yg.push((bg+256).toString(16).substr(1));function Eg(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=(yg[e[t+0]]+yg[e[t+1]]+yg[e[t+2]]+yg[e[t+3]]+"-"+yg[e[t+4]]+yg[e[t+5]]+"-"+yg[e[t+6]]+yg[e[t+7]]+"-"+yg[e[t+8]]+yg[e[t+9]]+"-"+yg[e[t+10]]+yg[e[t+11]]+yg[e[t+12]]+yg[e[t+13]]+yg[e[t+14]]+yg[e[t+15]]).toLowerCase();if(!gg(n))throw TypeError("Stringified UUID is invalid");return n}function _g(e){if(!gg(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 wg(e,t,n){function i(e,i,r,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 i&&(i=_g(i)),16!==i.length)throw TypeError("Namespace must be array-like (16 iterable integer values, 0-255)");var s=new Uint8Array(16+e.length);if(s.set(i),s.set(e,i.length),(s=n(s))[6]=15&s[6]|t,s[8]=63&s[8]|128,r){o=o||0;for(var a=0;a<16;++a)r[o+a]=s[a];return r}return Eg(s)}try{i.name=e}catch(e){}return i.DNS="6ba7b810-9dad-11d1-80b4-00c04fd430c8",i.URL="6ba7b811-9dad-11d1-80b4-00c04fd430c8",i}function Tg(e){return 14+(e+64>>>9<<4)+1}function Sg(e,t){var n=(65535&e)+(65535&t);return(e>>16)+(t>>16)+(n>>16)<<16|65535&n}function kg(e,t,n,i,r,o){return Sg((s=Sg(Sg(t,e),Sg(i,o)))<<(a=r)|s>>>32-a,n);var s,a}function Ig(e,t,n,i,r,o,s){return kg(t&n|~t&i,e,t,r,o,s)}function Cg(e,t,n,i,r,o,s){return kg(t&i|n&~i,e,t,r,o,s)}function Ag(e,t,n,i,r,o,s){return kg(t^n^i,e,t,r,o,s)}function Og(e,t,n,i,r,o,s){return kg(n^(t|~i),e,t,r,o,s)}function Rg(e,t,n){var i=(e=e||{}).random||(e.rng||mg)();if(i[6]=15&i[6]|64,i[8]=63&i[8]|128,t){n=n||0;for(var r=0;r<16;++r)t[n+r]=i[r];return t}return Eg(i)}function Lg(e,t,n,i){switch(e){case 0:return t&n^~t&i;case 1:return t^n^i;case 2:return t&n^t&i^n&i;case 3:return t^n^i}}function Ng(e,t){return e<<t|e>>>32-t}wg("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,i="0123456789abcdef",r=0;r<n;r+=8){var o=e[r>>5]>>>r%32&255,s=parseInt(i.charAt(o>>>4&15)+i.charAt(15&o),16);t.push(s)}return t}(function(e,t){e[t>>5]|=128<<t%32,e[Tg(t)-1]=t;for(var n=1732584193,i=-271733879,r=-1732584194,o=271733878,s=0;s<e.length;s+=16){var a=n,c=i,l=r,u=o;n=Ig(n,i,r,o,e[s],7,-680876936),o=Ig(o,n,i,r,e[s+1],12,-389564586),r=Ig(r,o,n,i,e[s+2],17,606105819),i=Ig(i,r,o,n,e[s+3],22,-1044525330),n=Ig(n,i,r,o,e[s+4],7,-176418897),o=Ig(o,n,i,r,e[s+5],12,1200080426),r=Ig(r,o,n,i,e[s+6],17,-1473231341),i=Ig(i,r,o,n,e[s+7],22,-45705983),n=Ig(n,i,r,o,e[s+8],7,1770035416),o=Ig(o,n,i,r,e[s+9],12,-1958414417),r=Ig(r,o,n,i,e[s+10],17,-42063),i=Ig(i,r,o,n,e[s+11],22,-1990404162),n=Ig(n,i,r,o,e[s+12],7,1804603682),o=Ig(o,n,i,r,e[s+13],12,-40341101),r=Ig(r,o,n,i,e[s+14],17,-1502002290),n=Cg(n,i=Ig(i,r,o,n,e[s+15],22,1236535329),r,o,e[s+1],5,-165796510),o=Cg(o,n,i,r,e[s+6],9,-1069501632),r=Cg(r,o,n,i,e[s+11],14,643717713),i=Cg(i,r,o,n,e[s],20,-373897302),n=Cg(n,i,r,o,e[s+5],5,-701558691),o=Cg(o,n,i,r,e[s+10],9,38016083),r=Cg(r,o,n,i,e[s+15],14,-660478335),i=Cg(i,r,o,n,e[s+4],20,-405537848),n=Cg(n,i,r,o,e[s+9],5,568446438),o=Cg(o,n,i,r,e[s+14],9,-1019803690),r=Cg(r,o,n,i,e[s+3],14,-187363961),i=Cg(i,r,o,n,e[s+8],20,1163531501),n=Cg(n,i,r,o,e[s+13],5,-1444681467),o=Cg(o,n,i,r,e[s+2],9,-51403784),r=Cg(r,o,n,i,e[s+7],14,1735328473),n=Ag(n,i=Cg(i,r,o,n,e[s+12],20,-1926607734),r,o,e[s+5],4,-378558),o=Ag(o,n,i,r,e[s+8],11,-2022574463),r=Ag(r,o,n,i,e[s+11],16,1839030562),i=Ag(i,r,o,n,e[s+14],23,-35309556),n=Ag(n,i,r,o,e[s+1],4,-1530992060),o=Ag(o,n,i,r,e[s+4],11,1272893353),r=Ag(r,o,n,i,e[s+7],16,-155497632),i=Ag(i,r,o,n,e[s+10],23,-1094730640),n=Ag(n,i,r,o,e[s+13],4,681279174),o=Ag(o,n,i,r,e[s],11,-358537222),r=Ag(r,o,n,i,e[s+3],16,-722521979),i=Ag(i,r,o,n,e[s+6],23,76029189),n=Ag(n,i,r,o,e[s+9],4,-640364487),o=Ag(o,n,i,r,e[s+12],11,-421815835),r=Ag(r,o,n,i,e[s+15],16,530742520),n=Og(n,i=Ag(i,r,o,n,e[s+2],23,-995338651),r,o,e[s],6,-198630844),o=Og(o,n,i,r,e[s+7],10,1126891415),r=Og(r,o,n,i,e[s+14],15,-1416354905),i=Og(i,r,o,n,e[s+5],21,-57434055),n=Og(n,i,r,o,e[s+12],6,1700485571),o=Og(o,n,i,r,e[s+3],10,-1894986606),r=Og(r,o,n,i,e[s+10],15,-1051523),i=Og(i,r,o,n,e[s+1],21,-2054922799),n=Og(n,i,r,o,e[s+8],6,1873313359),o=Og(o,n,i,r,e[s+15],10,-30611744),r=Og(r,o,n,i,e[s+6],15,-1560198380),i=Og(i,r,o,n,e[s+13],21,1309151649),n=Og(n,i,r,o,e[s+4],6,-145523070),o=Og(o,n,i,r,e[s+11],10,-1120210379),r=Og(r,o,n,i,e[s+2],15,718787259),i=Og(i,r,o,n,e[s+9],21,-343485551),n=Sg(n,a),i=Sg(i,c),r=Sg(r,l),o=Sg(o,u)}return[n,i,r,o]}(function(e){if(0===e.length)return[];for(var t=8*e.length,n=new Uint32Array(Tg(t)),i=0;i<t;i+=8)n[i>>5]|=(255&e[i/8])<<i%32;return n}(e),8*e.length))})),wg("v5",80,(function(e){var t=[1518500249,1859775393,2400959708,3395469782],n=[1732584193,4023233417,2562383102,271733878,3285377520];if("string"==typeof e){var i=unescape(encodeURIComponent(e));e=[];for(var r=0;r<i.length;++r)e.push(i.charCodeAt(r))}else Array.isArray(e)||(e=Array.prototype.slice.call(e));e.push(128);for(var o=e.length/4+2,s=Math.ceil(o/16),a=new Array(s),c=0;c<s;++c){for(var l=new Uint32Array(16),u=0;u<16;++u)l[u]=e[64*c+4*u]<<24|e[64*c+4*u+1]<<16|e[64*c+4*u+2]<<8|e[64*c+4*u+3];a[c]=l}a[s-1][14]=8*(e.length-1)/Math.pow(2,32),a[s-1][14]=Math.floor(a[s-1][14]),a[s-1][15]=8*(e.length-1)&4294967295;for(var d=0;d<s;++d){for(var h=new Uint32Array(80),p=0;p<16;++p)h[p]=a[d][p];for(var f=16;f<80;++f)h[f]=Ng(h[f-3]^h[f-8]^h[f-14]^h[f-16],1);for(var m=n[0],v=n[1],g=n[2],y=n[3],b=n[4],E=0;E<80;++E){var _=Math.floor(E/20),w=Ng(m,5)+Lg(_,v,g,y)+b+t[_]+h[E]>>>0;b=y,y=g,g=Ng(v,30)>>>0,v=m,m=w}n[0]=n[0]+m>>>0,n[1]=n[1]+v>>>0,n[2]=n[2]+g>>>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 Pg=null;if("undefined"==typeof crypto||!crypto.getRandomValues){var xg=("undefined"!=typeof FastBoot?FastBoot.require:require)("crypto");if(xg){var Mg=new Uint8Array(256),Dg=Mg.length;Pg={rng:function(){return Dg>Mg.length-16&&(xg.randomFillSync(Mg),Dg=0),Mg.slice(Dg,Dg+=16)}}}}"object"===("undefined"==typeof crypto?"undefined":hg(crypto))&&crypto.randomUUID;function Ug(){return Rg(Pg,new Array(16),0)}function Bg(e){return lg(e).map((function(e){return String.fromCharCode(e)})).join("")}function qg(){return Bg(Ug())}var Fg=/^[a-zA-Z0-9/+]+[=]+$/;function jg(e,t){return{pageUrn:zg(e),trackingId:t||function(e){for(var t,n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",i=[],r=0,o=e.length,s=o%3,a=o-s;r<a;)t=e[r]<<16,t|=e[r+1]<<8,t|=e[r+2],i.push(n.charAt(t>>>18&63)),i.push(n.charAt(t>>>12&63)),i.push(n.charAt(t>>>6&63)),i.push(n.charAt(63&t)),r+=3;switch(s){case 2:t=e[r]<<16,t|=e[r+1]<<8,i.push(n.charAt(t>>>18&63)),i.push(n.charAt(t>>>12&63)),i.push(n.charAt(t>>>6&63)),i.push("=");break;case 1:t=e[r]<<16,i.push(n.charAt(t>>>18&63)),i.push(n.charAt(t>>>12&63)),i.push("="),i.push("=")}return i.join("")}(Ug())}}function Hg(e,t){return"urn:li:control:".concat(e,"-").concat(t)}function zg(e){return"urn:li:page:".concat(e)}function Gg(e,t){return{pageInstance:t.assign({},e.pageInstance),pageKey:e.pageKey,applicationInstance:e.applicationInstance}}function Kg(e,t){return void 0!==t.allSettled?t.allSettled(e):function(e){return new Promise((function(t){var n=new Set,i=function(e){n.delete(e),0===n.size&&t()};0===e.length?t():e.map((function(e){return e.then((function(){return i(e)})).catch((function(){return i(e)}))}))}))}(e)}function Wg(e){var t=[];return e.forEach((function(e){return t.push(e)})),t}function Vg(e,t){if("undefined"!=typeof window&&window.indexedDB){var n="sequenceNumber",i=window.indexedDB.open(n);return new Promise((function(r,o){i.onupgradeneeded=function(){var e=i.result;e.objectStoreNames.contains(n)||e.createObjectStore(n,{autoIncrement:!0})},i.onsuccess=function(){var s=i.result,a=s.transaction(n,"readwrite"),c=a.objectStore(n),l=c.get(1);l.onsuccess=function(){var n=l.result;if(n){var i,s=null!==(i=n.sequenceNumber)&&void 0!==i?i:0;if("read"===e)return r(s);if(!("update"===e&&void 0!==t&&t>s))return r(null);var a=c.put({sequenceNumber:t},1);a.onsuccess=function(){return r(null)},a.onerror=function(){o(a.error)}}else{var u=c.add({sequenceNumber:0});u.onsuccess=function(){return r(0)},u.onerror=function(){o(u.error)}}},l.onerror=function(){return s.close(),o(new Error("Error: get sequence number from indexedDB ".concat(String(l.error))))},a.oncomplete=function(){return s.close()}},i.onerror=function(){return r(null)}}))}return Promise.resolve(null)}function Yg(e,t,n){var i=e.get(t);i&&i.push(n)||e.set(t,[n])}function Qg(e,t,n){var i=e.get(t);i&&i.splice(i.indexOf(n)>>>0,1)}var Xg,Jg,Zg=(Xg=new Map,Jg=new Map,{on:function(e,t){Yg(Xg,e,t)},before:function(e,t){Yg(Jg,e,t)},off:function(e,t){Qg(Xg,e,t)},offBefore:function(e,t){Qg(Jg,e,t)},emit:function(e,t){(Jg.get(e)||[]).concat(Xg.get(e)||[]).slice().map((function(e){e(t)}))},clear:function(){Jg.clear(),Xg.clear()}});if("undefined"!=typeof document&&"undefined"!=typeof window){var $g=function(e){"pagehide"!==e.type&&"hidden"!==document.visibilityState||Zg.emit("internal:hide",e)};document.addEventListener("visibilitychange",$g),window.addEventListener("pagehide",$g)}var ey=Uint8Array,ty=Uint16Array,ny=Uint32Array,iy=new ey([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]),ry=new ey([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]),oy=new ey([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),sy=function(e,t){for(var n=new ty(31),i=0;i<31;++i)n[i]=t+=1<<e[i-1];var r=new ny(n[30]);for(i=1;i<30;++i)for(var o=n[i];o<n[i+1];++o)r[o]=o-n[i]<<5|i;return[n,r]},ay=sy(iy,2),cy=ay[0],ly=ay[1];cy[28]=258,ly[258]=28;for(var uy=sy(ry,0)[1],dy=new ty(32768),hy=0;hy<32768;++hy){var py=(43690&hy)>>>1|(21845&hy)<<1;py=(61680&(py=(52428&py)>>>2|(13107&py)<<2))>>>4|(3855&py)<<4,dy[hy]=((65280&py)>>>8|(255&py)<<8)>>>1}var fy=function(e,t,n){for(var i=e.length,r=0,o=new ty(t);r<i;++r)e[r]&&++o[e[r]-1];var s,a=new ty(t);for(r=0;r<t;++r)a[r]=a[r-1]+o[r-1]<<1;if(n){s=new ty(1<<t);var c=15-t;for(r=0;r<i;++r)if(e[r])for(var l=r<<4|e[r],u=t-e[r],d=a[e[r]-1]++<<u,h=d|(1<<u)-1;d<=h;++d)s[dy[d]>>>c]=l}else for(s=new ty(i),r=0;r<i;++r)e[r]&&(s[r]=dy[a[e[r]-1]++]>>>15-e[r]);return s},my=new ey(288);for(hy=0;hy<144;++hy)my[hy]=8;for(hy=144;hy<256;++hy)my[hy]=9;for(hy=256;hy<280;++hy)my[hy]=7;for(hy=280;hy<288;++hy)my[hy]=8;var vy=new ey(32);for(hy=0;hy<32;++hy)vy[hy]=5;var gy=fy(my,9,0),yy=fy(vy,5,0),by=function(e){return(e+7)/8|0},Ey=function(e,t,n){n<<=7&t;var i=t/8|0;e[i]|=n,e[i+1]|=n>>>8},_y=function(e,t,n){n<<=7&t;var i=t/8|0;e[i]|=n,e[i+1]|=n>>>8,e[i+2]|=n>>>16},wy=function(e,t){for(var n=[],i=0;i<e.length;++i)e[i]&&n.push({s:i,f:e[i]});var r=n.length,o=n.slice();if(!r)return[Oy,0];if(1==r){var s=new ey(n[0].s+1);return s[n[0].s]=1,[s,1]}n.sort((function(e,t){return e.f-t.f})),n.push({s:-1,f:25001});var a=n[0],c=n[1],l=0,u=1,d=2;for(n[0]={s:-1,f:a.f+c.f,l:a,r:c};u!=r-1;)a=n[n[l].f<n[d].f?l++:d++],c=n[l!=u&&n[l].f<n[d].f?l++:d++],n[u++]={s:-1,f:a.f+c.f,l:a,r:c};var h=o[0].s;for(i=1;i<r;++i)o[i].s>h&&(h=o[i].s);var p=new ty(h+1),f=Ty(n[u-1],p,0);if(f>t){i=0;var m=0,v=f-t,g=1<<v;for(o.sort((function(e,t){return p[t.s]-p[e.s]||e.f-t.f}));i<r;++i){var y=o[i].s;if(!(p[y]>t))break;m+=g-(1<<f-p[y]),p[y]=t}for(m>>>=v;m>0;){var b=o[i].s;p[b]<t?m-=1<<t-p[b]++-1:++i}for(;i>=0&&m;--i){var E=o[i].s;p[E]==t&&(--p[E],++m)}f=t}return[new ey(p),f]},Ty=function e(t,n,i){return-1==t.s?Math.max(e(t.l,n,i+1),e(t.r,n,i+1)):n[t.s]=i},Sy=function(e){for(var t=e.length;t&&!e[--t];);for(var n=new ty(++t),i=0,r=e[0],o=1,s=function(e){n[i++]=e},a=1;a<=t;++a)if(e[a]==r&&a!=t)++o;else{if(!r&&o>2){for(;o>138;o-=138)s(32754);o>2&&(s(o>10?o-11<<5|28690:o-3<<5|12305),o=0)}else if(o>3){for(s(r),--o;o>6;o-=6)s(8304);o>2&&(s(o-3<<5|8208),o=0)}for(;o--;)s(r);o=1,r=e[a]}return[n.subarray(0,i),t]},ky=function(e,t){for(var n=0,i=0;i<t.length;++i)n+=e[i]*t[i];return n},Iy=function(e,t,n){var i=n.length,r=by(t+2);e[r]=255&i,e[r+1]=i>>>8,e[r+2]=255^e[r],e[r+3]=255^e[r+1];for(var o=0;o<i;++o)e[r+o+4]=n[o];return 8*(r+4+i)},Cy=function(e,t,n,i,r,o,s,a,c,l,u){Ey(t,u++,n),++r[256];for(var d=wy(r,15),h=d[0],p=d[1],f=wy(o,15),m=f[0],v=f[1],g=Sy(h),y=g[0],b=g[1],E=Sy(m),_=E[0],w=E[1],T=new ty(19),S=0;S<y.length;++S)T[31&y[S]]++;for(S=0;S<_.length;++S)T[31&_[S]]++;for(var k=wy(T,7),I=k[0],C=k[1],A=19;A>4&&!I[oy[A-1]];--A);var O,R,L,N,P=l+5<<3,x=ky(r,my)+ky(o,vy)+s,M=ky(r,h)+ky(o,m)+s+14+3*A+ky(T,I)+(2*T[16]+3*T[17]+7*T[18]);if(P<=x&&P<=M)return Iy(t,u,e.subarray(c,c+l));if(Ey(t,u,1+(M<x)),u+=2,M<x){O=fy(h,p,0),R=h,L=fy(m,v,0),N=m;var D=fy(I,C,0);for(Ey(t,u,b-257),Ey(t,u+5,w-1),Ey(t,u+10,A-4),u+=14,S=0;S<A;++S)Ey(t,u+3*S,I[oy[S]]);u+=3*A;for(var U=[y,_],B=0;B<2;++B){var q=U[B];for(S=0;S<q.length;++S){var F=31&q[S];Ey(t,u,D[F]),u+=I[F],F>15&&(Ey(t,u,q[S]>>>5&127),u+=q[S]>>>12)}}}else O=gy,R=my,L=yy,N=vy;for(S=0;S<a;++S)if(i[S]>255){F=i[S]>>>18&31,_y(t,u,O[F+257]),u+=R[F+257],F>7&&(Ey(t,u,i[S]>>>23&31),u+=iy[F]);var j=31&i[S];_y(t,u,L[j]),u+=N[j],j>3&&(_y(t,u,i[S]>>>5&8191),u+=ry[j])}else _y(t,u,O[i[S]]),u+=R[i[S]];return _y(t,u,O[256]),u+R[256]},Ay=new ny([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),Oy=new ey(0),Ry=function(){for(var e=new Int32Array(256),t=0;t<256;++t){for(var n=t,i=9;--i;)n=(1&n&&-306674912)^n>>>1;e[t]=n}return e}(),Ly=function(e,t,n){for(;n;++t)e[t]=n,n>>>=8};function Ny(e,t){t||(t={});var n=function(){var e=-1;return{p:function(t){for(var n=e,i=0;i<t.length;++i)n=Ry[255&n^t[i]]^n>>>8;e=n},d:function(){return~e}}}(),i=e.length;n.p(e);var r,o,s,a=(r=e,o=t,s=function(e){return 10+(e.filename&&e.filename.length+1||0)}(t),8,function(e,t,n,i,r,o){var s=e.length,a=new ey(i+s+5*(1+Math.ceil(s/7e3))+r),c=a.subarray(i,a.length-r),l=0;if(!t||s<8)for(var u=0;u<=s;u+=65535){var d=u+65535;d>=s&&(c[l>>3]=o),l=Iy(c,l+1,e.subarray(u,d))}else{for(var h=Ay[t-1],p=h>>>13,f=8191&h,m=(1<<n)-1,v=new ty(32768),g=new ty(m+1),y=Math.ceil(n/3),b=2*y,E=function(t){return(e[t]^e[t+1]<<y^e[t+2]<<b)&m},_=new ny(25e3),w=new ty(288),T=new ty(32),S=0,k=0,I=(u=0,0),C=0,A=0;u<s;++u){var O=E(u),R=32767&u,L=g[O];if(v[R]=L,g[O]=R,C<=u){var N=s-u;if((S>7e3||I>24576)&&N>423){l=Cy(e,c,0,_,w,T,k,I,A,u-A,l),I=S=k=0,A=u;for(var P=0;P<286;++P)w[P]=0;for(P=0;P<30;++P)T[P]=0}var x=2,M=0,D=f,U=R-L&32767;if(N>2&&O==E(u-U))for(var B=Math.min(p,N)-1,q=Math.min(32767,u),F=Math.min(258,N);U<=q&&--D&&R!=L;){if(e[u+x]==e[u+x-U]){for(var j=0;j<F&&e[u+j]==e[u+j-U];++j);if(j>x){if(x=j,M=U,j>B)break;var H=Math.min(U,j-2),z=0;for(P=0;P<H;++P){var G=u-U+P+32768&32767,K=G-v[G]+32768&32767;K>z&&(z=K,L=G)}}}U+=(R=L)-(L=v[R])+32768&32767}if(M){_[I++]=268435456|ly[x]<<18|uy[M];var W=31&ly[x],V=31&uy[M];k+=iy[W]+ry[V],++w[257+W],++T[V],C=u+x,++S}else _[I++]=e[u],++w[e[u]]}}l=Cy(e,c,o,_,w,T,k,I,A,u-A,l),!o&&7&l&&(l=Iy(c,l+1,Oy))}return function(e,t,n){(null==t||t<0)&&(t=0),(null==n||n>e.length)&&(n=e.length);var i=new(2==e.BYTES_PER_ELEMENT?ty:4==e.BYTES_PER_ELEMENT?ny:ey)(n-t);return i.set(e.subarray(t,n)),i}(a,0,i+by(l)+r)}(r,null==o.level?6:o.level,null==o.mem?Math.ceil(1.5*Math.max(8,Math.min(13,Math.log(r.length)))):12+o.mem,s,8,!0)),c=a.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&&Ly(e,4,Math.floor(new Date(t.mtime||Date.now())/1e3)),n){e[3]=8;for(var i=0;i<=n.length;++i)e[i+10]=n.charCodeAt(i)}}(a,t),Ly(a,c-8,n.d()),Ly(a,c-4,i),a}var Py="undefined"!=typeof TextDecoder&&new TextDecoder;try{Py.decode(Oy,{stream:!0})}catch(ki){}function xy(){return"undefined"!=typeof window&&"function"==typeof window.fetch}function My(){try{return xy()&&"keepalive"in new Request("")}catch(e){return!1}}function Dy(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if("undefined"!=typeof window&&void 0!==window.XMLHttpRequest){var i=new XMLHttpRequest;if(i.open("POST",e,!0),i.withCredentials=!0,n.headers)for(var r=0,o=Object.keys(n.headers);r<o.length;r++){var s=o[r];i.setRequestHeader(s,n.headers[s])}i.send(t)}}function Uy(e){var t=e.body,n=e.keepalive,i=e.headers,r=e.compress;i["content-type"]||(i["content-type"]="text/plain;charset=UTF-8");var o=t;if(r&&"undefined"!=typeof TextEncoder)try{o=Ny((new TextEncoder).encode(t)),i["content-encoding"]="gzip"}catch(e){}return{body:o,keepalive:n,credentials:"include",headers:i,method:"POST",mode:"cors"}}function By(e){return e&&"message"in e?e.message:"UNKNOWN_ERROR"}var qy,Fy="undefined"!=typeof navigator&&"sendBeacon"in navigator,jy=My()?function(e,t,n,i){return new Promise((function(r){fetch(e,Uy({body:t,keepalive:!0,headers:n,compress:i})).catch((function(){return fetch(e,Uy({body:t,keepalive:!1,headers:n,compress:i}))})).then((function(e){e.ok?r({type:"success",drop:!1,statusCode:e.status}):r({type:"response",drop:!0,statusCode:e.status,rawError:e.statusText})}),(function(e){return r({type:"network",drop:!0,rawError:By(e)})}))}))}:function(e,t,n,i){return new Promise((function(r){if(Fy){var o=!1;try{o=navigator.sendBeacon(e,t)}catch(e){}if(o)return void r({type:"unknown",drop:!1})}fetch(e,Uy({body:t,keepalive:!1,headers:n,compress:i})).then((function(e){e.ok?r({type:"success",drop:!1,statusCode:200}):r({type:"response",drop:!0,statusCode:e.status,rawError:e.statusText})}),(function(e){return r({type:"network",drop:!0,rawError:By(e)})}))}))};function Hy(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 zy(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"key",i=arguments.length>3?arguments[3]:void 0,r=indexedDB.open(e);r.onupgradeneeded=function(){try{r.result.createObjectStore(t,{keyPath:n})}catch(e){null==i||i.onError(e)}};var o=new Promise((function(e,t){r.onsuccess=function(){var t=r.result;t.onversionchange=function(){return t.close()},e(t),null==i||i.onSuccess()},r.onerror=function(){t(r.error),null==i||i.onError(r.error)}}));return function(e,n){return o.then((function(i){return n(i.transaction(t,e).objectStore(t))}))}}function Gy(){return qy||(qy=zy("idb-queue","default")),qy}function Ky(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{maxNumber:1e3,batchEvictionNumber:300},n=0,i=null;return e.openKeyCursor().onsuccess=function(){var r=this.result;r&&n++<t.batchEvictionNumber?(i=r.key,r.continue()):null!=i&&e.delete(IDBKeyRange.upperBound(i))},Hy(e.transaction)}function Wy(){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]:Gy();return t("readwrite",(function(t){return Ky(t,e)}))}var Vy=!1;function Yy(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]:Gy();return n("readwrite",(function(n){return n.put(e),Hy(n.count()).then((function(e){if(!(e<=t.maxNumber))return Ky(n,t)}))})).catch((function(e){if(e&&"QuotaExceededError"===e.name)return Wy(t,n)}))}function Qy(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]:Gy();return Vy?Promise.resolve():Yy(e,t,n)}function Xy(e,t,n){return t("readwrite",(function(t){var i=[];return t.openCursor(null,n).onsuccess=function(){var t=this.result;t&&(i.push(t.value),t.delete(),(e<0||i.length<e)&&t.continue())},Hy(t.transaction).then((function(){return i}))}))}function Jy(e,t,n){return t("readonly",(function(t){var i=[];return t.openCursor(null,n).onsuccess=function(){var t=this.result;t&&(i.push(t.value),(e<0||i.length<e)&&t.continue())},Hy(t.transaction).then((function(){return i}))}))}function Zy(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Gy();return Jy(e,t,"next")}function $y(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Gy();return Jy(e,t,"prev")}function eb(){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,i=arguments.length>3?arguments[3]:void 0;return!t||n<1||(e[t]=JSON.stringify({attempt:n,errorCode:i})),e}function tb(e){"undefined"!=typeof window&&window.__DEBUG_BEACON_TRANSPORTER&&console.debug("[beacon-transporter] ",e())}function nb(e){"undefined"!=typeof window&&window.__DEBUG_BEACON_TRANSPORTER&&console.error("[beacon-transporter] ",e())}function ib(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(i){i.timeRemaining()>t.timeRemaining||i.didTimeout?e():n()}),{timeout:t.timeout})};n()}}function rb(e,t){var n=0;return{throttledFn:function(){var i=Date.now();i-n>t&&(tb((function(){return"[throttle] Run fn() at "+String(i)})),e(),n=i)},resetThrottle:function(){n=0}}}var ob=function(){function e(t){var n=this,i=arguments.length>1&&void 0!==arguments[1]&&arguments[1];og(this,e),cg(this,"config",void 0),cg(this,"compress",void 0),cg(this,"throttleControl",void 0),cg(this,"withStore",void 0),cg(this,"disablePersistence",!1),this.config=t,this.compress=i;var r=t.measureIDB;r&&performance.mark(r.createStartMark),this.withStore=zy(t.idbName,"beacons","timestamp",{onSuccess:function(){r&&performance.measure(r.createSuccessMeasure,r.createStartMark)},onError:function(){r&&performance.measure(r.createFailMeasure,r.createStartMark),n.disablePersistence=!0}}),this.throttleControl=rb(this.replayEntries.bind(this),t.throttleWait)}return ag(e,[{key:"onNotify",value:function(){this.disablePersistence||this.throttleControl.throttledFn()}},{key:"push",value:function(e){var t=this;if(!this.disablePersistence){var n=function(){tb((function(){return"Persisting to DB "+e.url})),Qy(e,t.config,t.withStore).then((function(){t.throttleControl.resetThrottle(),tb((function(){return"push completed"}))})).catch((function(){t.disablePersistence=!0,nb((function(){return"push failed"}))}))};this.config.useIdle?ib(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]:Gy();return Vy=!0,e("readwrite",(function(e){return e.clear(),Hy(e.transaction).finally((function(){return Vy=!1}))}))}(this.withStore).catch((function(){e.disablePersistence=!0,nb((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([]):Zy(t,this.withStore).catch((function(){return e.disablePersistence=!0,nb((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([]):$y(t,this.withStore).catch((function(){return e.disablePersistence=!0,nb((function(){return"peekBack failed"})),[]}))}},{key:"replayEntries",value:function(){var e=this;if(!this.disablePersistence){var t=function(){tb((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]:Gy();return Xy(e,t,"next")}(1,e.withStore).then((function(t){if(t.length>0){var n,i,r=t[0],o=r.url,s=r.body,a=r.headers,c=r.timestamp,l=r.statusCode,u=r.attemptCount;return tb((function(){return"header: ".concat(String(e.config.headerName),"; attemptCount: ").concat(u)})),null===(n=(i=e.config).onBeforeRetry)||void 0===n||n.call(i,s),jy(o,s,eb(a,e.config.headerName,u,l),e.compress).then((function(t){if("unknown"===t.type||"success"===t.type){var n,i;null===(n=(i=e.config).onResult)||void 0===n||n.call(i,t,s),e.replayEntries()}else{var r,a,d,h,p,f;if(u+1>e.config.attemptLimit)return tb((function(){return"Exceeded attempt count, dropping the entry: "+JSON.stringify({url:o,timestamp:c,statusCode:l},null,2)})),t.drop=!0,void(null===(r=(a=e.config).onResult)||void 0===r||r.call(a,t,s));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,s),tb((function(){return"Replaying the entry failed, pushing back to IDB: "+JSON.stringify({url:o,timestamp:c,statusCode:l},null,2)})),Qy({url:o,body:s,timestamp:c,statusCode:l,attemptCount:u+1},e.config,e.withStore);t.drop=!0,null===(p=(f=e.config).onResult)||void 0===p||p.call(f,t,s)}}))}})).catch((function(t){e.disablePersistence=!0,t&&t.message&&nb((function(){return"Replay entry failed: ".concat(t.message)}))}))};this.config.useIdle?ib(t):t()}}}]),e}(),sb=function(){function e(){og(this,e)}return ag(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}(),ab=function(){function e(t,n){og(this,e),cg(this,"queue",void 0),cg(this,"beaconListeners",new Set),this.queue=e.hasSupport&&!n.disablePersistenceRetry?new ob(t,n.compress):new sb}return ag(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}();cg(ab,"hasSupport","undefined"!=typeof globalThis&&!!globalThis.indexedDB);var cb=[502,504],lb=[429,503],ub=function(){function e(t,n,i,r){var o=this,s=arguments.length>4&&void 0!==arguments[4]&&arguments[4];og(this,e),cg(this,"url",void 0),cg(this,"body",void 0),cg(this,"config",void 0),cg(this,"persistenceConfig",void 0),cg(this,"compress",void 0),cg(this,"timestamp",void 0),cg(this,"isClearQueuePending",!1),cg(this,"onClearCallback",void 0),this.url=t,this.body=n,this.config=i,this.persistenceConfig=r,this.compress=s,this.timestamp=Date.now(),this.onClearCallback=function(){return o.isClearQueuePending=!0}}return ag(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 jy(e.url,e.body,t,e.compress)}),n,t).finally((function(){tb((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,i){var r=this,o=this.getAttemptCount(t)-1;return e(eb(n,this.config.headerName,o,i)).then((function(i){var o,s,a,c;if(i.drop=!1,"unknown"===i.type||"success"===i.type)r.isClearQueuePending||r.persistenceConfig.disabled||r.persistenceConfig.db.notifyQueue(),a=i;else if(tb((function(){return"retry rejected "+JSON.stringify(i)})),r.shouldPersist(t,i))r.persistenceConfig.db.pushToQueue({url:r.url,body:r.body,headers:n,statusCode:i.statusCode,timestamp:r.timestamp,attemptCount:r.getAttemptCount(t)}),a={type:"persisted",drop:!1,statusCode:i.statusCode};else{if(t>0&&r.isRetryableError(i)){var l,u;null===(l=(u=r.config).onIntermediateResult)||void 0===l||l.call(u,i,r.body);var d=r.config.calculateRetryDelay(r.getAttemptCount(t),t);return tb((function(){return"in memory retry in ".concat(d,"ms")})),(c=d,new Promise((function(e){return setTimeout(e,c)}))).then((function(){return r.retry(e,t-1,n,i.statusCode)}))}(a=i).drop=!0}return null===(o=(s=r.config).onIntermediateResult)||void 0===o||o.call(s,a,r.body),a}))}},{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 db(e,t,n,i,r){"control"!==i&&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&&My()&&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 s,a,c=null!==(s=e.retryConfig.inMemory)&&void 0!==s?s:{attemptLimit:4,statusCodes:[502,504]},l=null!==(a=e.retryConfig.persist)&&void 0!==a?a:{attemptLimit:3,statusCodes:[429,503],maxNumber:1e3,batchEvictionNumber:300,throttleWait:3e5},u={compress:n,inMemoryRetry:{onIntermediateResult:null==r?void 0:r.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==r?void 0:r.onBeforeRetry,onResult:null==r?void 0:r.onResult,idbName:"beacons",attemptLimit:l.attemptLimit,statusCodes:l.statusCodes,maxNumber:l.maxNumber,batchEvictionNumber:l.batchEvictionNumber,throttleWait:l.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),i=Object.assign({attemptLimit:0,statusCodes:cb,calculateRetryDelay:function(e,t){return 2e3*t}},t.inMemoryRetry);if(t.retryDB)e=t.retryDB;else{var r=Object.assign({idbName:"beacon-transporter",attemptLimit:3,statusCodes:lb,maxNumber:1e3,batchEvictionNumber:300,throttleWait:3e5},t.persistenceRetry);r.headerName=r.headerName||i.headerName,e=new ab(r,{compress:t.compress,disablePersistenceRetry:t.disablePersistenceRetry})}return{beacon:function(r,o,s){var a;return xy()?new ub(r,o,i,{db:e,disabled:Boolean(t.disablePersistenceRetry),statusCodes:(null===(a=t.persistenceRetry)||void 0===a?void 0:a.statusCodes)||lb},n).send(s):Promise.resolve({type:"unknown",drop:!0})},database:e}}(u),h=d.beacon,p=d.database;return e.retryBeacon={shouldRetry:!0,beacon:h,database:p},"enabled"===i?(e.retryBeacon.shouldRetry=!1,!u.disablePersistenceRetry&&t.shouldAnonymizeMemberId()?p.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 p.clearQueue()}}),(function(){return p.clearQueue()})).then((function(){e.retryBeacon.shouldRetry=!0})).catch((function(e){Zg.emit("internal:error",{tags:["core-web-tracking:retry:idb"],reason:e})})):(e.retryBeacon.shouldRetry=!0,Promise.resolve())):void 0})).catch((function(e){Zg.emit("internal:error",{tags:["core-web-tracking:retry:setup"],reason:e})}))}var hb=function(){function e(t){og(this,e),cg(this,"host",void 0),this.host=t}return ag(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&&db(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){Zg.emit("internal:error",{tags:["core-web-tracking:retry:logout"],reason:e})}))}},{key:"sendPayload",value:function(e,t,n,i){var r,o=this.getRetryTreatment();My()&&"control"!==o&&null!==(r=this.host.retryBeacon)&&void 0!==r&&r.shouldRetry?this.sendPayloadWithRetry(e,t,n):this.sendPayloadFireForget(e,t,n,i)}},{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){Zg.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]:{},i=arguments.length>3?arguments[3]:void 0;if(!Array.isArray(t)||t.length>0){var r="undefined"!=typeof navigator&&navigator.userAgent.toLowerCase().indexOf("firefox")>-1;r||!xy()||"undefined"==typeof Promise?Dy(e,JSON.stringify(t),{headers:n}):jy(e,JSON.stringify(t),n,this.shouldCompressPayload()).then((function(e){null==i||i.onResult(e,t)}),(function(){}))}}},{key:"getRetryTreatment",value:function(){var e,t,n;if(!this.host.retryConfig)return"control";var i=this.host.retryConfig.lixKey;return i?null!==(e=null===(t=(n=this.host).__getLixTreatment)||void 0===t?void 0:t.call(n,i))&&void 0!==e?e:"control":"enabled"}},{key:"shouldCompressPayload",value:function(){return!0!==this.host.disableCompression}}]),e}(),pb="undefined"!=typeof window&&"undefined"!=typeof document,fb=/JSESSIONID="?([^";]+)"?/,mb="",vb=0;function gb(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.cacheLifeSpan,n=void 0===t?1e4:t,i=e.regex,r=void 0===i?fb:i;if(!mb||Date.now()-vb>n){var o=pb&&document.cookie.match(r);mb=o&&o[1]||"",vb=Date.now()}return mb}var yb=function(){function e(t){og(this,e),cg(this,"networkTransporter",void 0),cg(this,"inactive",void 0),cg(this,"mpName",void 0),cg(this,"endpoint",void 0),cg(this,"debug",void 0),this.networkTransporter=new hb(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=Eb;break;case"https://www.linkedin-ei.com/li/track/validate":n=!0,t=bb;break;case"https://www.linkedin-ei.com/li/track":t=bb;break;default:n=!0,t=bb}return{endpoint:t,debug:n}}(t.endpoint);this.endpoint=n.endpoint,this.debug=n.debug}return ag(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":gb(),"x-restli-protocol-version":"2.0.0"},n={fragmentEvent:e,debug:this.debug};this.networkTransporter.sendPayload(this.endpoint,n,t)}}}]),e}(),bb="https://www.linkedin-ei.com/trackingMonitoring/?action=saveClientFragment",Eb="https://www.linkedin.com/trackingMonitoring/?action=saveClientFragment";function _b(e){return"string"==typeof e}function wb(e){return _b(e)?e:e.topicName||e.eventName}function Tb(e){return _b(e)?e:e.eventName}var Sb,kb,Ib=function(){function e(t){var n,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};og(this,e),cg(this,"host",void 0),cg(this,"cmoTransporter",void 0),cg(this,"clientMonitoringInstanceId",qg()),cg(this,"currentContext",Ob()),cg(this,"appState",{}),cg(this,"estimatedFragmentSize",0),cg(this,"fragmentSizeLimit",void 0),cg(this,"activeFragmentEvent",void 0),cg(this,"debounceTimer",void 0),this.host=t,this.cmoTransporter=i.cmoTransporter||new yb(t),this.fragmentSizeLimit=(null===(n=t.clientMonitoringConfig)||void 0===n?void 0:n.fragmentSizeLimit)||10240,this.activeFragmentEvent=Ab(this.clientMonitoringInstanceId,0,0,!1,this.getEventHeaders())}return ag(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,i=rg(this.activeFragmentEvent.stats.previousInstanceEventStats);try{for(i.s();!(n=i.n()).done;){var r=n.value;if(r.instanceId===e)return void t(r)}}catch(e){i.e(e)}finally{i.f()}var o=this.getEventHeaders(),s=o.header,a=o.requestHeader,c={header:Object.assign(s,{memberId:-1}),requestHeader:a,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,i){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:this.getCurrentInstanceId(),o=this.getEventHeaders(),s=o.header,a=o.requestHeader,c={header:Object.assign(s,{memberId:-1}),requestHeader:a,instanceId:r,instanceEventNumber:i,reason:e,rawError:n,eventName:Tb(t),eventTopic:wb(t)};this.estimatedFragmentSize+=JSON.stringify(c).length,r===this.getCurrentInstanceId()?this.activeFragmentEvent.stats.failures.push(c):this.findPreviousInstanceStat(r,(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,i=t.requestHeader,r=this.activeFragmentEvent;r.header=n,r.requestHeader=i,this.cmoTransporter.fireFragment(r),this.estimatedFragmentSize=0,this.activeFragmentEvent=Ab(this.clientMonitoringInstanceId,r.fragmentNumber+1,r.firstEventNumber+r.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=Rb(e.trackingId));var t=this.currentContext.pageInstance;return t.trackingId=Rb(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 Cb(e){return Sb||(Sb=new Ib(e)),{getCurrentInstanceId:function(){return Sb.getCurrentInstanceId()},logEventGenerated:function(e){return Sb.logEventGenerated(e)},logEventReadyToSend:function(e){Sb.logEventReadyToSend(e)},logEventSent:function(e){Sb.logEventSent(e)},logPersistedEventSent:function(e,t){Sb.logEventSent(t,e)},logNetworkResponseCode:function(e){Sb.logNetworkResponseCode(e)},logPersistedNetworkResponseCode:function(e,t){var n;null===(n=Sb)||void 0===n||n.logNetworkResponseCode(t,e)},logFailedEvent:function(e,t,n,i){Sb.logFailedEvent(e,t,n,i)},logPersistedFailedEvent:function(e,t,n,i,r){Sb.logFailedEvent(t,n,i,r,e)},flush:function(){Sb.flush()},destroy:function(){Sb=void 0},isDestroyed:function(){return void 0===Sb},setCurrentContext:function(e){Sb.setCurrentContext(e)},updateAppState:function(e){Sb.updateAppState(e)}}}function Ab(e,t,n,i,r){return{fragmentNumber:t,firstEventNumber:n,isLastFragment:i,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:r.requestHeader,header:r.header}}function Ob(){return{pageKey:"unknown",pageInstance:jg("unknown")}}function Rb(e){return Array.isArray(e)?Bg(e):16===e.length?e:function(e){return"string"==typeof e&&!!e.match(Fg)}(e)?atob(e):Bg(function(e){return _g(e)}(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"}(kb||(kb={}));var Lb=function(){function e(t){var n=this;og(this,e),cg(this,"host",void 0),cg(this,"queue",void 0),cg(this,"preContextQueue",void 0),cg(this,"debounceTimer",void 0),cg(this,"unloadHandlers",void 0),cg(this,"maxQueueSize",void 0),cg(this,"flushDebounceTime",void 0),cg(this,"trackingEventListeners",[]),cg(this,"onHideHandler",(function(){n.forceFlush()})),cg(this,"networkTransporter",void 0),cg(this,"clientMonitoringConn",void 0),cg(this,"clientSequenceNumberCounter",void 0),cg(this,"isTimerRunning",void 0),cg(this,"enableSequenceNumberLix",void 0),this.host=t,this.queue=[],this.preContextQueue=[],this.unloadHandlers=[];var i=t.batching;this.maxQueueSize=i&&i.maxSize||1,this.flushDebounceTime=i&&i.debounceTime||0,Zg.on("internal:hide",this.onHideHandler),this.networkTransporter=new hb(t),this.isLixEnabled("pemberly.tracking.monitoring")&&t.clientMonitoringConfig&&!t.inactive&&(this.clientMonitoringConn=Cb(t)),this.enableSequenceNumberLix=this.isLixEnabled("tracking.data-loss-web.sequence-number"),this.enableSequenceNumberLix&&(this.getSequenceNumberFromIDB(),this.updateSequenceNumberOnExit(),this.isTimerRunning=!1)}return ag(e,[{key:"checkAndEnablePersistentRetry",value:function(e){var t,n=(t=this.clientMonitoringConn,{onIntermediateResult:function(e,n){var i;if(t&&!t.isDestroyed())try{if(i=JSON.parse(n),!Array.isArray(i)||0===i.length)return;e.statusCode&&t.logNetworkResponseCode(e.statusCode),!0===e.drop&&i.forEach((function(n){var i,r=n.eventInfo.eventName,o=n.eventInfo.topicName||r,s="rawError"in e?e.rawError:"null",a=["type: ".concat(e.type),"statusCode: ".concat(e.statusCode||"null"),"drop: ".concat(String(e.drop)),"rawError: ".concat(s)].join(", ");t.logFailedEvent(kb.UNKNOWN_EXECUTION_ERROR,{eventName:r,topicName:o},a,null!==(i=n.eventBody.header.clientMonitoringInstanceEventNumber)&&void 0!==i?i:-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 i=n[0].eventBody.header.clientMonitoringInstanceId,r=n.length;t.logPersistedEventSent(i,r)}catch(e){}},onResult:function(e,n){var i;if(t)try{if(i=JSON.parse(n),!Array.isArray(i)||0===i.length||!i[0].eventBody.header.clientMonitoringInstanceId)return;var r=i[0].eventBody.header.clientMonitoringInstanceId;e.statusCode&&t.logPersistedNetworkResponseCode(r,e.statusCode),!0===e.drop&&i.forEach((function(n){var i=n.eventInfo.eventName,o=n.eventInfo.topicName||i,s="rawError"in e?e.rawError:"null",a=["type: ".concat(e.type),"statusCode: ".concat(e.statusCode||"null"),"drop: ".concat(String(e.drop)),"rawError: ".concat(s)].join(", ");t.logPersistedFailedEvent(r,kb.UNKNOWN_EXECUTION_ERROR,{eventName:i,topicName:o},a,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(wb(e.id)));var n,i=this.host,r=i.api.Promise,o=i.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(),r.resolve(!0)):(this.flush(!0),r.resolve(!0))):(this.preContextQueue.push(t),r.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,Zg.off("internal:hide",this.onHideHandler)}},{key:"forceFlush",value:function(){var e=this;this.populatePreContextQueue({pageInstance:jg("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;Vg("read").then((function(t){e.clientSequenceNumberCounter=t||0})).catch((function(e){Zg.emit("internal:error",{tags:["core-web-tracking:sequence-number:idb-read"],reason:e})}))}},{key:"updateSequenceNumberToIDB",value:function(){Vg("update",this.clientSequenceNumberCounter).catch((function(e){Zg.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=Gg(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 i=this.host,r=i.appId,o=i.api,s={eventBody:t,eventInfo:"string"==typeof e?{appId:r,eventName:e,topicName:e}:o.assign({appId:r},e)};return n.length>0&&this.host.api.assign(s,{clientBreadcrumbs:n}),s}},{key:"getBreadcrumbs",value:function(e){return e.clientBreadcrumbs||[]}},{key:"getGenericEventBody",value:function(e){var t,n=this.host,i=n.appVersion,r=n.locale,o=n.api,s=o.location,a=o.document,c=o.assign,l=e.meta.context,u=l.pageKey,d=l.pageInstance,h=function(e){return"string"==typeof e?"PageViewEvent"===e:"PageViewEvent"===e.eventName}(e.id)&&(null===(t=e.body.requestHeader)||void 0===t?void 0:t.pageKey)||u,p=null;"string"!=typeof r&&null!==this.host.locale||(p=r);var f={interfaceLocale:p,pageKey:h,path:s.pathname+s.search,referer:a.referrer},m={pageInstance:d,time:e.meta.time,version:i};"number"==typeof this.clientSequenceNumberCounter&&c(m,{clientGlobalSequenceNumber:this.clientSequenceNumberCounter});var v={header:c(m,e.meta.header||{}),requestHeader:c(f,e.meta.requestHeader||{})},g=e.meta.clientMonitoringInstanceId,y=e.meta.clientMonitoringInstanceEventNumber;return g&&c(v.header,{clientMonitoringInstanceId:g,clientMonitoringInstanceEventNumber:y}),c(e.body,v)}},{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,i,r=[],o=[];t.forEach((function(t){var n=e.getGenericEventBody(t),i=e.getBreadcrumbs(t),s=e.envelop(t.id,n,i);e.trigger(s,t.meta);var a=s.eventInfo.eventName;"LixTreatmentsEvent"===a||"JavaScriptErrorEvent"===a?r.push(s):o.push(s),e.enableSequenceNumberLix&&"number"==typeof e.clientSequenceNumberCounter&&e.clientSequenceNumberCounter++})),this.host.inactive||(this.clientMonitoringConn&&(this.clientMonitoringConn.logEventSent(r.length+o.length),i=this.clientMonitoringConn,n={onResult:function(e,t){i&&!i.isDestroyed()&&(e.statusCode&&i.logNetworkResponseCode(e.statusCode),!0===e.drop&&t.forEach((function(t){var n=t.eventInfo.eventName,r=t.eventInfo.topicName||n,o="rawError"in e?e.rawError:"null",s=["type: ".concat(e.type),"statusCode: ".concat(e.statusCode||"null"),"drop: ".concat(String(e.drop)),"rawError: ".concat(o)].join(", ");null==i||i.logFailedEvent(kb.UNKNOWN_EXECUTION_ERROR,{eventName:n,topicName:r},s,t.eventBody.header.clientMonitoringInstanceEventNumber||-1)})))}}),this.networkTransporter.sendPayloadFireForget(this.host.endpoint,r,void 0,n),this.networkTransporter.sendPayload(this.host.endpoint,o,void 0,n))}}}]),e}();var Nb,Pb=function(){function e(t,n){og(this,e),this.clientBreadcrumbType=t,this.id=n}return ag(e,[{key:"builder",get:function(){return function(){var e={},t=new Proxy({},{get:function(n,i){return"build"===i?function(){return e}:function(n){return e[i.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 xb(e){if(!e)return{};var t=e.trk,n=!1,i=e.licu&&decodeURIComponent(e.licu);e.external_control&&(i="urn:li:externalControl:".concat(decodeURIComponent(e.external_control)),n=!0);var r=e.lipi&&function(e){var t=decodeURIComponent(e).split(";");if(t.length>1)return{pageUrn:t[0],trackingId:t[1]}}(e.lipi),o=r&&{pageInstance:r,pageKey:t}||t&&{pageKey:t};if(e.external_page&&e.external_page_instance){var s=decodeURIComponent(e.external_page);o={pageInstance:{pageUrn:"urn:li:externalPage:".concat(s),trackingId:e.external_page_instance},pageKey:s},n=!0}var a=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 a&&((o=o||{}).applicationInstance=a),{fromExternalApp:n||!!a,previousApplicationInstance:a,previousContext:o,previousControlId:e.lici&&decodeURIComponent(e.lici),previousControlUrn:i}}function Mb(e){return"retryConfig"in e.host}!function(e){e.UNKNOWN="UNKNOWN",e.ME_NOTIFICATION="ME_NOTIFICATION",e.ME_NOTIFICATION_ACTION="ME_NOTIFICATION_ACTION"}(Nb||(Nb={}));var Db,Ub,Bb;!function(){function e(t,n){var i,r;if(og(this,e),cg(this,"transporter",void 0),cg(this,"delegate",void 0),cg(this,"currentContext",void 0),cg(this,"appState",void 0),cg(this,"previousAppContext",void 0),cg(this,"customTransporters",void 0),cg(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 s=this.transporter.host.api.assign({},this.transporter.host);this.customTransporters[o]=new Lb(this.transporter.host.api.assign(s,n.customTransporterHosts[o]))}"enabled"===(null===(i=(r=t.host).__getLixTreatment)||void 0===i?void 0:i.call(r,"pemberly.tracking.monitoring"))&&t.host.clientMonitoringConfig&&!t.host.inactive&&"location"in t.host.api&&(this.clientMonitoringConn=Cb(t.host))}ag(e,[{key:"host",get:function(){return this.transporter.host}},{key:"checkAndEnablePersistentRetry",value:function(){Mb(this.transporter)&&this.transporter.checkAndEnablePersistentRetry(this.delegate)}},{key:"flushAndClearPersistedEventsOnLogout",value:function(){this.forceFlush();var e=Mb(this.transporter)?this.transporter.clearPersistedEventsOnLogout():null;return null!=e?e:this.host.api.Promise.resolve()}},{key:"getCurrentContext",value:function(){if(this.currentContext)return Gg(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]:{},i=this.navMetaFromSeed(e,xb(t));if(this.setCurrentContext(i.to),!n.suppressEventsFiring)return this.fireNavEvents(i)}},{key:"setCurrentContext",value:function(e){var t;this.currentContext=Gg(e,this.host.api),null===(t=this.clientMonitoringConn)||void 0===t||t.setCurrentContext(Gg(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,i,r){return this.fireEvent("ControlInteractionEvent",(function(n){var o=Hg(n.pageKey,e),s={controlTrackingId:i,controlUrn:o,interactionType:t};return r&&r(o),s}),{context:n})}},{key:"fireEvent",value:function(e,t,n,i){if(!t){var r=wb(e),o=void 0===t?"undefined":null===t?"null":hg(t),s='Firing tracking event "'.concat(r,'" with invalid body, you fired "').concat(o,'"');if(this.clientMonitoringConn){var a=this.clientMonitoringConn.logEventGenerated(r);this.clientMonitoringConn.logFailedEvent(kb.MISSING_REQUIRED_PROPERTIES,e,s,a)}throw new Error(s)}var c=i||[];if(c.length>0){var l=c.map((function(e){return Pb.toPointer(e)}));this.host.api.assign(t,{clientBreadcrumbPointers:l})}var u=c.length>0?this.generateEnvelopeWithBreadcrumbs(e,t,n,c):this.generateEnvelope(e,t,n);return this.fireEnvelope(u)}},{key:"generateEnvelopeWithBreadcrumbs",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:[],r=this.generateEnvelope(e,t,n),o=i.length>0?this.addBreadcrumbsToEnvelope(r,i):r;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(_b(e.id)){var i=e.id;e.id={eventName:i,topicName:i,shouldAnonymizeMemberId:!0}}else e.id.shouldAnonymizeMemberId=!0;var r=this.delegate&&this.delegate.preTransporter?this.delegate.preTransporter(e):e;if(r){var o=r.meta.transporterKey,s=o?this.customTransporters[o]:this.transporter;if(!s&&o){var a=wb(r.id),c="Could not find custom transporter: ".concat(o);if(this.clientMonitoringConn){var l=this.clientMonitoringConn.logEventGenerated(a);this.clientMonitoringConn.logFailedEvent(kb.UNKNOWN_EXECUTION_ERROR,r.id,c,l)}throw new Error(c)}return s.fireEvent(r)}return this.host.api.Promise.resolve(!0)}},{key:"generatePageInstance",value:function(e,t){return jg(e,t)}},{key:"firePVE",value:function(e,t,n){var i={pageType:"full",totalTime:0,trackingCode:this.getTrackingCode(),trackingInfo:{}},r=this.host.api.assign(i,t),o=this.generateEnvelope("PageViewEvent",r,{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),Zg.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 Hg((t||this.currentContext||{pageKey:"unknown"}).pageKey,e)}},{key:"fireRawCIE",value:function(e,t,n,i){var r={controlTrackingId:i,controlUrn:e,interactionType:t};return{beacon:this.fireEvent("ControlInteractionEvent",r,{context:n}),controlUrn:e}}},{key:"generateNavigationEvent",value:function(e){var t=e.triggerId,n=e.triggerUrn,i=e.from;return{previousPageInstance:i&&i.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 i=t.fromExternalApp?{eventName:n,topicName:"InboundNavigationEvent"}:n;return{from:t.previousContext,navEventId:i,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,i=e.from,r=e.navEventId,o=this.generateEnvelope(r,t);o.meta.requestHeader.pageKey=n.pageKey;var s=i&&i.applicationInstance;return s&&(o.meta.header.clientApplicationInstance=s),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]:{},i={directive:n.directive,transporterKey:n.transporterKey,context:n.context||this.currentContext&&Gg(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:i}}}])}();function qb(e){return e.split("").reduce((function(e,t){return(e<<5)-e+t.charCodeAt(0)|0}),0)}!function(){function e(t,n){var i,r=this;og(this,e),cg(this,"core",void 0),cg(this,"protocol",void 0),cg(this,"throttleKeySet",new Set),cg(this,"config",void 0),cg(this,"reportTransporterError",(function(e){e.reason instanceof Error||(e.reason=new Error(e.reason||"An error occurred in the transporter")),r.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!==(i=null==n?void 0:n.throttleTime)&&void 0!==i?i:100},Zg.on("internal:error",this.reportTransporterError)}ag(e,[{key:"reportError",value:function(e){var t,n=this,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=r.callTreeId,s=void 0===o?"":o,a=r.responseHeaders,c=void 0===a?{}:a,l=e.message,u=e.name,d=e.stack,h=void 0===d?"":d,p=e.fileName,f=void 0===p?"":p,m=e.lineNumber,v=void 0===m?0:m,g=e.columnNumber,y=void 0===g?0:g,b=this.core.host,E=b.appId,_=b.appVersion,w=b.service,T=b.serviceInstance,S=b.treeID,k=void 0===S?"":S,I=b.api,C=I.Promise,A=I.location,O=A.host,R=A.pathname,L=A.search,N=A.hash,P=void 0===N?"":N;if(c){t={};var x=new Map;Object.keys(c).forEach((function(e){x.set(e.toLowerCase(),c[e])})),t.callTreeId=x.get("x-li-uuid"),t.microsoftEdgeReference=x.get("x-msedge-ref"),t.pointOfPresenceId=x.get("x-li-pop"),t.fabric=x.get("x-li-fabric")}var M=function(){return n.core.fireEvent("JavaScriptErrorEvent",(function(e){return{appId:E,e:{c:y,l:v,m:l,s:h,t:u,u:f},h:P,l:n.protocol,o:O,p:R,pageKey:e.pageKey,q:L,service:w,serviceInstance:T,serviceVersion:_,t:i,trackingID:e.pageInstance.trackingId,treeID:k,callTreeId:s,responseTraceHeaders:t}}))};if(this.config.throttleTime<0)return M();var D=qb(u+l+h+i.join("")+s);return this.throttleKeySet.has(D)?C.resolve(!1):(this.throttleKeySet.add(D),setTimeout((function(){return n.throttleKeySet.delete(D)}),this.config.throttleTime),M())}},{key:"flush",value:function(){this.core.forceFlush()}},{key:"destroy",value:function(){this.core.destroy(),Zg.off("internal:error",this.reportTransporterError)}}])}();var Fb=function(){function e(){og(this,e),cg(this,"userTimingEntries",[]),cg(this,"longTasks",[]),cg(this,"resourceTimingEntries",[]),cg(this,"cdnData",void 0)}return ag(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(Hb),cdnData:this.cdnData}}}]),e}(),jb=["resourceTreeId","name","entryType","startTime","duration","initiatorType","nextHopProtocol","redirectStart","redirectEnd","fetchStart","domainLookupStart","domainLookupEnd","connectStart","connectEnd","secureConnectionStart","requestStart","responseStart","responseEnd","transferSize","encodedBodySize","decodedBodySize","workerStart"];function Hb(e){return jb.reduce((function(t,n){var i=e[n];return void 0!==i&&(t[n]=i),t}),{})}function zb(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};Ub=Object.assign(Object.assign({},n),t),Bb=function(e,t){return e.nodeType===Node.DOCUMENT_NODE?e:e===t.root?e.ownerDocument:e}(Ub.root,n);var i=Gb(e,Db.All,(function(){return Gb(e,Db.Two,(function(){return Gb(e,Db.One)}))}));if(i){var r=$b(function e(t,n){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{counter:0,visited:new Map},r=[];if(t.length>2&&t.length>Ub.optimizedMinLength)for(var o=1;o<t.length-1;o++){if(i.counter>Ub.maxNumberOfTries)return r;i.counter+=1;var s=lg(t);s.splice(o,1);var a=Wb(s);if(i.visited.has(a))return r;Yb(s)&&eE(s,n)&&(r.push(s),i.visited.set(a,!0),r=r.concat(e(s,n,i)))}return r}(i,e));return r.length>0&&(i=r[0]),Wb(i)}throw new Error("Selector was not found.")}function Gb(e,t,n){for(var i=null,r=[],o=e,s=0,a=function(){var e=Jb(function(e){var t=e.getAttribute("id");return t&&Ub.idName(t)?{name:"#"+sE(t,{isIdentifier:!0}),penalty:0}:null}(o))||Jb.apply(void 0,lg(function(e){return Array.from(e.attributes).filter((function(e){return Ub.attr(e.name,e.value)})).map((function(e){return{name:"["+sE(e.name,{isIdentifier:!0})+'="'+sE(e.value)+'"]',penalty:.5}}))}(o)))||Jb.apply(void 0,lg(function(e){return Array.from(e.classList).filter(Ub.className).map((function(e){return{name:"."+sE(e,{isIdentifier:!0}),penalty:1}}))}(o)))||Jb(function(e){var t=e.tagName.toLowerCase();return Ub.tagName(t)?{name:t,penalty:2}:null}(o))||[{name:"*",penalty:3}],a=function(e){var t=e.parentNode;if(!t)return null;var n=t.firstChild;if(!n)return null;for(var i=0;n&&(n.nodeType===Node.ELEMENT_NODE&&i++,n!==e);)n=n.nextSibling;return i}(o);if(t===Db.All)a&&(e=e.concat(e.filter(Xb).map((function(e){return Qb(e,a)}))));else if(t===Db.Two)e=e.slice(0,1),a&&(e=e.concat(e.filter(Xb).map((function(e){return Qb(e,a)}))));else if(t===Db.One){var c=function(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var i,r,o=[],s=!0,a=!1;try{for(n=n.call(e);!(s=(i=n.next()).done)&&(o.push(i.value),!t||o.length!==t);s=!0);}catch(e){a=!0,r=e}finally{try{s||null==n.return||n.return()}finally{if(a)throw r}}return o}}(e,t)||ug(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(e=e.slice(0,1),1)[0];a&&Xb(c)&&(e=[Qb(c,a)])}var l,u=rg(e);try{for(u.s();!(l=u.n()).done;)l.value.level=s}catch(e){u.e(e)}finally{u.f()}if(r.push(e),r.length>=Ub.seedMinLength&&(i=Kb(r,n)))return"break";o=o.parentElement,s++};o&&o!==Ub.root.parentElement&&"break"!==a(););return i||(i=Kb(r,n)),i}function Kb(e,t){var n=$b(function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];if(t.length>0){var i,r=[],o=rg(t[0]);try{for(o.s();!(i=o.n()).done;){var s=i.value;r=r.concat(e(t.slice(1,t.length),n.concat(s)))}}catch(t){o.e(t)}finally{o.f()}return r}return[n]}(e));if(n.length>Ub.threshold)return t?t():null;var i,r=rg(n);try{for(r.s();!(i=r.n()).done;){var o=i.value;if(Yb(o))return o}}catch(e){r.e(e)}finally{r.f()}return null}function Wb(e){for(var t=e[0],n=t.name,i=1;i<e.length;i++){var r=e[i].level||0;n=t.level===r-1?"".concat(e[i].name," > ").concat(n):"".concat(e[i].name," ").concat(n),t=e[i]}return n}function Vb(e){return e.map((function(e){return e.penalty})).reduce((function(e,t){return e+t}),0)}function Yb(e){switch(Bb.querySelectorAll(Wb(e)).length){case 0:throw new Error("Can't select any node with this selector: ".concat(Wb(e)));case 1:return!0;default:return!1}}function Qb(e,t){return{name:e.name+":nth-child(".concat(t,")"),penalty:e.penalty+1}}function Xb(e){return"html"!==e.name&&!e.name.startsWith("#")}function Jb(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var i=t.filter(Zb);return i.length>0?i:null}function Zb(e){return null!=e}function $b(e){return Array.from(e).sort((function(e,t){return Vb(e)-Vb(t)}))}function eE(e,t){return Bb.querySelector(Wb(e))===t}!function(e){e[e.All=0]="All",e[e.Two=1]="Two",e[e.One=2]="One"}(Db||(Db={}));var tE,nE=/[ -,\.\/:-@\[-\^`\{-~]/,iE=/[ -,\.\/:-@\[\]\^`\{-~]/,rE=/(^|\\+)?(\\[A-F0-9]{1,6})\x20(?![a-fA-F0-9\x20])/g,oE={escapeEverything:!1,isIdentifier:!1,quotes:"single",wrap:!1};function sE(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=Object.assign(Object.assign({},oE),t);"single"!=n.quotes&&"double"!=n.quotes&&(n.quotes="single");for(var i="double"==n.quotes?'"':"'",r=n.isIdentifier,o=e.charAt(0),s="",a=0,c=e.length;a<c;){var l=e.charAt(a++),u=l.charCodeAt(0),d=void 0;if(u<32||u>126){if(u>=55296&&u<=56319&&a<c){var h=e.charCodeAt(a++);56320==(64512&h)?u=((1023&u)<<10)+(1023&h)+65536:a--}d="\\"+u.toString(16).toUpperCase()+" "}else d=n.escapeEverything?nE.test(l)?"\\"+l:"\\"+u.toString(16).toUpperCase()+" ":/[\t\n\f\r\x0B]/.test(l)?"\\"+u.toString(16).toUpperCase()+" ":"\\"==l||!r&&('"'==l&&i==l||"'"==l&&i==l)||r&&iE.test(l)?"\\"+l:l;s+=d}return r&&(/^-[-\d]/.test(s)?s="\\-"+s.slice(1):/\d/.test(o)&&(s="\\3"+o+" "+s.slice(1))),s=s.replace(rE,(function(e,t,n){return t&&t.length%2?e:(t||"")+n})),!r&&n.wrap?i+s+i:s}function aE(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(e&&"function"==typeof e.now&&(e.timeOrigin||e.timing)){var n,i=e.now();return n=!e.timing&&t?Math.floor(e.timeOrigin):e.timing.navigationStart,Math.round(i+n)}return Date.now()}function cE(e){var t=e||performance;return Math.round(t.now())}function lE(e){if(!e)return"null";if(e.nodeType===Node.ELEMENT_NODE)try{return zb(e,{idName:function(e){return 0!==e.indexOf("ember")}})}catch(e){return"serialization_error"}var t=lE(e.parentElement||void 0);return"".concat(t," > nodeType(").concat(e.nodeType,")")}function uE(e,t,n){var i=[];return e&&"function"==typeof e.getEntriesByType&&(t["user-timing-measure-enabled"]&&e.getEntriesByType("measure").forEach((function(e){i.push({entryType:"MEASURE",name:e.name,startTime:e.startTime,duration:e.duration})})),t["user-timing-mark-enabled"]&&e.getEntriesByType("mark").forEach((function(e){i.push({entryType:"MARK",name:e.name,startTime:e.startTime,duration:e.duration})})),n&&(e.clearMeasures(),e.clearMarks())),i}function dE(e){var t=[];return e.forEach((function(e){return t.push(e)})),t}var hE,pE=function(){function e(t){og(this,e),cg(this,"hostApis",void 0),cg(this,"hostnameProperties",void 0),cg(this,"usedHostnames",void 0),cg(this,"abortController",void 0),cg(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 ag(e,[{key:"clearUsedHostnames",value:function(){this.usedHostnames=new Set}},{key:"getPresentData",value:function(){var e=this;return Wg(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,i=n.AbortController,r=n.Promise,o=Kg(Wg(this.pendingPromises),r),s=setTimeout((function(){t.abortController.abort(),t.abortController=new i}),e);return o.then((function(){return clearTimeout(s),t.getPresentData()}))}},{key:"inspectEntryForCdnData",value:function(e){var t=this;if(!(e.name.indexOf(".licdn.")<0)){var n,i,r=this.hostApis.assign,o=(n=e.name,i=this.hostApis.document,(tE=tE||i.createElement("a")).href=n,tE.hostname);if(this.usedHostnames.add(o),!this.hostnameProperties[o]&&!this.isResourcePossiblyFromCache(e)){var s=this.fetchCdnFromUrl(e.name).then((function(e){var n=r({hostname:o},e);return t.hostnameProperties[o]||(t.hostnameProperties[o]=n),t.pendingPromises.delete(s),n}));this.pendingPromises.add(s)}}}},{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}(),fE=function(){function e(t,n,i,r){og(this,e),cg(this,"hostApis",void 0),cg(this,"statics",void 0),cg(this,"options",void 0),cg(this,"allowTimingOrigin",void 0),cg(this,"collectResourceTimings",void 0),cg(this,"collectCdnData",void 0),cg(this,"perfObserver",void 0),cg(this,"renderTimings",new Map),cg(this,"urlToTreeId",new Map),cg(this,"cdnDataProvider",void 0),cg(this,"observables",new Fb),this.hostApis=t,this.statics=n,this.options=i,this.allowTimingOrigin=r,this.collectResourceTimings=i["enable-rs-timing"],this.collectCdnData=i["enable-cdn-tracking"],this.collectCdnData&&(this.cdnDataProvider=new pE(t))}return ag(e,[{key:"recordTreeId",value:function(e,t){this.collectResourceTimings&&this.urlToTreeId.set(function(e,t){return(tE=tE||t.createElement("a")).href=e,tE.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:aE(this.hostApis.performance,this.allowTimingOrigin)})}},{key:"recordRenderEnd",value:function(e){var t=this.renderTimings.get(e);t&&(t.renderEnd=t.renderEnd||aE(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,i=e.immediate,r=this.collectSynchronousData(n);if(i)return r;var o=this.collectAsynchronousData();return"then"in o?o.then((function(e){return(0,t.hostApis.assign)(r,e),r})):r}},{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,i=t.PerformanceObserver,r=Object.create(null);return this.statics.pageLoadMode=e?"INITIAL":"PARTIAL",i||(this.observables.userTimingEntries=uE(this.hostApis.performance,this.options,!0),this.collectResourceTimings&&this.processNewResourceTimings()),this.observables.attachTreeIds(this.urlToTreeId),this.urlToTreeId.clear(),n(r,this.observables.getData(),this.snapshot,this.statics),e&&n(r,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 i=e.timing,r=e.navigation;return i&&r?(t.navigationTimingApi=!0,mE.forEach((function(e){e in i&&(t[e]=i[e])})),t.navigationType=r.type,t.redirectCount=r.redirectCount):t.navigationTimingApi=!1,t}(this.hostApis.performance)),n(r,this.collectAsynchronousData(!0)),r}},{key:"collectAsynchronousData",value:function(e){var t=this,n={cdnData:[],usedCDN:this.extractUsedCDN([])};if(e){if(this.collectCdnData){var i=this.cdnDataProvider.getPresentData();n.cdnData=i,n.usedCDN=this.extractUsedCDN(i)}return n}var r=[];return this.collectCdnData&&r.push(this.cdnDataProvider.getDataWhenReady(this.options["async-plugins-timeout"]).then((function(e){n.cdnData=e,n.usedCDN=t.extractUsedCDN(e)}))),r.length>0?Kg(r,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,i=e.name,r=e.startTime,o=e.duration;"resource"===n?t.processSingleResourceTiming(e):"mark"===n?t.observables.userTimingEntries.push({entryType:"MARK",name:i,startTime:r,duration:o}):"measure"===n?t.observables.userTimingEntries.push({entryType:"MEASURE",name:i,startTime:r,duration:o}):"longtask"===n&&t.observables.longTasks.push({duration:o,name:i,startTime:r})}))})),this.observables.userTimingEntries=uE(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:dE(this.renderTimings),networkInformationMetrics:vE(this.hostApis.connection)};return this.renderTimings.clear(),e}}]),e}(),mE=["loadEventEnd","loadEventStart","domComplete","domContentLoadedEventEnd","domContentLoadedEventStart","domInteractive","domLoading","responseEnd","responseStart","requestStart","secureConnectionStart","connectEnd","connectStart","domainLookupEnd","domainLookupStart","fetchStart","redirectEnd","redirectStart","unloadEventEnd","unloadEventStart","navigationStart"];function vE(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"}(hE||(hE={}));var gE=(cg(ig={},"web-ui-framework","EMBER"),cg(ig,"app-id","linkedin.rum.tracking"),cg(ig,"app-version","unknown"),cg(ig,"is-single-page-app",!0),cg(ig,"user-timing-mark-enabled",!1),cg(ig,"user-timing-measure-enabled",!0),cg(ig,"beacon-source","apps"),cg(ig,"enable-rs-timing",!0),cg(ig,"enable-cdn-tracking",!1),cg(ig,"async-plugins-timeout",5e3),cg(ig,"beacon-timeout",3e4),cg(ig,"enable-memory-measurement",!1),cg(ig,"pageKeyPrefix",""),ig),yE=function(){function e(t,n,i){og(this,e),cg(this,"featureName",void 0),cg(this,"trackingCore",void 0),cg(this,"rumConfig",void 0),cg(this,"observing",!1),cg(this,"basePageTreeId",void 0),cg(this,"startPageInstance",void 0),cg(this,"startMemory",void 0),cg(this,"reportTimeouts",[]),this.featureName=t,this.trackingCore=n,this.rumConfig=i}return ag(e,[{key:"startObserving",value:function(){var t,n=this,i=this.getMemory();i&&!this.observing&&(this.basePageTreeId=this.trackingCore.host.treeID||"",this.startPageInstance=(null===(t=this.trackingCore.getCurrentContext())||void 0===t?void 0:t.pageInstance)||jg("unknown"),this.startMemory=i,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:cE(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]}})),i=t.usedJSHeapSize-this.startMemory.usedJSHeapSize;return n.push({name:(i<0?"usedJSHeapSizeDecrease":"usedJSHeapSizeIncrease")+e,startTime:Math.abs(i)},{name:"utilization"+e,startTime:Math.round(t.usedJSHeapSize/t.totalJSHeapSize*100)}),n}},{key:"getMemory",value:function(){return this.trackingCore.host.api.performance.memory}}]),e}();cg(yE,"checkpoints",[1,3,10,30,90,180,300]);var bE,EE,_E,wE,TE,SE=ag((function e(t,n,i){og(this,e),cg(this,"webUIFramework",void 0),cg(this,"timeSource",void 0),cg(this,"isSinglePageApp",void 0),cg(this,"appRenderMode",void 0),cg(this,"isAppRenderFailed",void 0),cg(this,"pageLoadMode","INITIAL"),cg(this,"isSSL",void 0),cg(this,"treeId",void 0),cg(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:"===i.api.location.protocol?1:0,this.treeId=i.treeID,this.isFromServiceWorker=i.isFromServiceWorker})),kE=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)}},IE=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){}},CE=function(e,t){var n=function n(i){"pagehide"!==i.type&&"hidden"!==document.visibilityState||(e(i),t&&(removeEventListener("visibilitychange",n,!0),removeEventListener("pagehide",n,!0)))};addEventListener("visibilitychange",n,!0),addEventListener("pagehide",n,!0)},AE=function(e){addEventListener("pageshow",(function(t){t.persisted&&e(t)}),!0)},OE=function(e,t,n){var i;return function(r){t.value>=0&&(r||n)&&(t.delta=t.value-(i||0),(t.delta||void 0===i)&&(i=t.value,e(t)))}},RE=-1,LE=function(){return"hidden"===document.visibilityState?0:1/0},NE=function(){CE((function(e){var t=e.timeStamp;RE=t}),!0)},PE=function(){return RE<0&&(RE=LE(),NE(),AE((function(){setTimeout((function(){RE=LE(),NE()}),0)}))),{get firstHiddenTime(){return RE}}},xE=!1,ME=-1,DE=function(e,t){xE||(function(e,t){var n,i=PE(),r=kE("FCP"),o=function(e){"first-contentful-paint"===e.name&&(a&&a.disconnect(),e.startTime<i.firstHiddenTime&&(r.value=e.startTime,r.entries.push(e),n(!0)))},s=window.performance&&performance.getEntriesByName&&performance.getEntriesByName("first-contentful-paint")[0],a=s?null:IE("paint",o);(s||a)&&(n=OE(e,r,t),s&&o(s),AE((function(i){r=kE("FCP"),n=OE(e,r,t),requestAnimationFrame((function(){requestAnimationFrame((function(){r.value=performance.now()-i.timeStamp,n(!0)}))}))})))}((function(e){ME=e.value})),xE=!0);var n,i=function(t){ME>-1&&e(t)},r=kE("CLS",0),o=0,s=[],a=function(e){if(!e.hadRecentInput){var t=s[0],i=s[s.length-1];o&&e.startTime-i.startTime<1e3&&e.startTime-t.startTime<5e3?(o+=e.value,s.push(e)):(o=e.value,s=[e]),o>r.value&&(r.value=o,r.entries=s,n())}},c=IE("layout-shift",a);c&&(n=OE(i,r,t),CE((function(){c.takeRecords().map(a),n(!0)})),AE((function(){o=0,ME=-1,r=kE("CLS",0),n=OE(i,r,t)})))},UE={passive:!0,capture:!0},BE=new Date,qE=function(e,t){bE||(bE=t,EE=e,_E=new Date,HE(removeEventListener),FE())},FE=function(){if(EE>=0&&EE<_E-BE){var e={entryType:"first-input",name:bE.type,target:bE.target,cancelable:bE.cancelable,startTime:bE.timeStamp,processingStart:bE.timeStamp+EE};wE.forEach((function(t){t(e)})),wE=[]}},jE=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(){qE(e,t),r()},i=function(){r()},r=function(){removeEventListener("pointerup",n,UE),removeEventListener("pointercancel",i,UE)};addEventListener("pointerup",n,UE),addEventListener("pointercancel",i,UE)}(t,e):qE(t,e)}},HE=function(e){["mousedown","keydown","touchstart","pointerdown"].forEach((function(t){return e(t,jE,UE)}))},zE=function(e,t){var n,i=PE(),r=kE("FID"),o=function(e){e.startTime<i.firstHiddenTime&&(r.value=e.processingStart-e.startTime,r.entries.push(e),n(!0))},s=IE("first-input",o);n=OE(e,r,t),s&&CE((function(){s.takeRecords().map(o),s.disconnect()}),!0),s&&AE((function(){var i;r=kE("FID"),n=OE(e,r,t),wE=[],EE=-1,bE=null,HE(addEventListener),i=o,wE.push(i),FE()}))},GE={},KE=function(e,t){var n,i=PE(),r=kE("LCP"),o=function(e){var t=e.startTime;t<i.firstHiddenTime&&(r.value=t,r.entries.push(e)),n()},s=IE("largest-contentful-paint",o);if(s){n=OE(e,r,t);var a=function(){GE[r.id]||(s.takeRecords().map(o),s.disconnect(),GE[r.id]=!0,n(!0))};["keydown","click"].forEach((function(e){addEventListener(e,a,{once:!0,capture:!0})})),CE(a,!0),AE((function(i){r=kE("LCP"),n=OE(e,r,t),requestAnimationFrame((function(){requestAnimationFrame((function(){r.value=performance.now()-i.timeStamp,GE[r.id]=!0,n(!0)}))}))}))}},WE=["LCP","FID","CLS"],VE={LCP:"LargestContentfulPaint",FID:"FirstInputDelay",CLS:"CumulativeLayoutShift"},YE={},QE=function(){var e;if(!pb)return"";var t=window.performance,n=void 0;if("function"==typeof(null==t?void 0:t.getEntriesByType)){var i,r=null===(i=window.performance)||void 0===i?void 0:i.getEntriesByType("navigation");(null==r?void 0:r.length)>0&&(n=r[0])}return(null===(e=n)||void 0===e?void 0:e.name)||window.location.href}(),XE=!1,JE=[],ZE={LCP:"largest-contentful-paint",FID:"first-input",CLS:"layout-shift"};function $E(){var e=!0===window.__test__resetWebVitalsState;if(!XE||e){e&&(JE=[]),WE.forEach(e_);var t=Symbol();TE=t,[KE,zE,DE].forEach((function(e){return e(t_.bind(null,t),!0)})),[KE,zE,DE].forEach((function(e){return e(n_.bind(null,t))})),XE=!0}}function e_(e){YE[e]={name:e,value:-1,updateHistory:[]};var t=ZE[e];"undefined"!=typeof PerformanceObserver&&void 0!==PerformanceObserver.supportedEntryTypes&&"string"==typeof t&&PerformanceObserver.supportedEntryTypes.indexOf(t)>-1||(YE[e].value=-2)}function t_(e,t){if(e===TE){var n=YE[t.name],i=cE();n&&(n.updateHistory.push({time:i,data:t}),n.value=t.value),JE.forEach((function(e){return e(t,i,!1)}))}}function n_(e,t){e===TE&&JE.forEach((function(e){return e(t,cE(),!0)}))}var i_=function(){function e(t,n){og(this,e),cg(this,"basePageTreeId",void 0),cg(this,"basePageKey",void 0),cg(this,"observing",!1),cg(this,"appContextMap",new Map),cg(this,"rumConfig",void 0),cg(this,"trackingCore",void 0),this.trackingCore=t,this.rumConfig=n}return ag(e,[{key:"startObserving",value:function(){var e,t,n=this;$E(),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",WE.forEach((function(e){var t;-2===(null===(t=YE[e])||void 0===t?void 0:t.value)&&n.reportMetric(e)})),t=this.onMetricUpdate.bind(this),JE.push(t))}},{key:"stopObserving",value:function(){this.observing=!1}},{key:"onMetricUpdate",value:function(e,t,n){var i;this.observing&&(n?this.reportMetric(e.name):this.appContextMap.set(t,{time:t,url:location.href,pageKey:null===(i=this.trackingCore.getCurrentContext())||void 0===i?void 0:i.pageKey}))}},{key:"reportMetric",value:function(e){var t=YE[e],n={name:VE[e]||e};"CLS"===e?n.doubleValue=t.value:n.longValue=Math.round(t.value);var i=YE[e];if(i){var r=function(e,t,n,i,r){var o={basePageTreeId:e,basePageKey:t,basePageUrl:QE},s=null;switch(n.name){case"LCP":s=function(e,t){var n;if(0===e.updateHistory.length)return null;var i=e.updateHistory[e.updateHistory.length-1],r=i.data.entries,o=r[r.length-1],s={pageKey:(null===(n=t.get(i.time))||void 0===n?void 0:n.pageKey)||"_unknown",element:lE(o.element),renderTime:Math.round(o.renderTime),loadTime:Math.round(o.loadTime),size:Math.round(o.size)};return o.url&&(s.url=o.url),s}(n,i);break;case"FID":s=function(e,t){var n;if(0===e.updateHistory.length)return null;var i=e.updateHistory[e.updateHistory.length-1],r=i.data.entries,o=r[r.length-1];return{pageKey:(null===(n=t.get(i.time))||void 0===n?void 0:n.pageKey)||"_unknown",processingStart:Math.round(o.processingStart),processingEnd:Math.round(o.processingEnd),target:lE(o.target)}}(n,i);break;case"CLS":s=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 i=n.reduce((function(e,t){return e&&e.value>t.value?e:t})),r=e.updateHistory.find((function(e){return e.data.entries.includes(i)})),o=null;i&&i.sources&&i.sources.length&&(o=i.sources.reduce((function(e,t){return e.node&&e.previousRect.width*e.previousRect.height>t.previousRect.width*t.previousRect.height?e:t})));var s,a=t.get(r.time);return o&&a?{shiftCount:n.length,"largestShift.value":i.value,"largestShift.hadRecentInput":i.hadRecentInput,"largestShift.largestSource.node":lE(null===(s=o)||void 0===s?void 0:s.node),"largestShift.pageKey":a.pageKey||"_unknown","largestShift.url":a.url,"largestShift.startTime":Math.round(i.startTime)}:null}(n,i)}if(s){var a={};return r(a,o,s),a}return o}(this.basePageTreeId,this.basePageKey,i,this.appContextMap,this.trackingCore.host.api.assign);n.metadata=function(e){var t={};return Object.keys(e).forEach((function(n){var i=e[n];t[n]="string"==typeof i?i:JSON.stringify(i)})),t}(r)}var o={scope:{scopeType:"APPLICATION_INSTANCE",scopeKey:this.basePageTreeId},metrics:[n]};this.trackingCore.fireEvent({appId:this.rumConfig["app-id"],eventName:"ClientPerfMetricsEvent"},o)}}]),e}();!function(){function e(t,n,i){var r,o;og(this,e),cg(this,"core",void 0),cg(this,"config",void 0),cg(this,"collector",void 0),cg(this,"boomerangStart",-1),cg(this,"webVitalsObserver",void 0),cg(this,"appMemoryObserver",void 0),cg(this,"pageMemoryObserver",void 0),cg(this,"liveTokens",new Set),cg(this,"stateWM",new WeakMap),cg(this,"activeToken",void 0),cg(this,"isInitial",void 0),cg(this,"beforeHideHandlerBound",this.beforeHideHandler.bind(this)),this.core=i,this.config=function(e,t){for(var n in e)void 0!==t[n]&&(e[n]=t[n]);return e}(i.host.api.assign({},gE),n);var s="enabled"===(null===(r=(o=this.core.host).__getLixTreatment)||void 0===r?void 0:r.call(o,"pemberly.tracking.time-origin-epoch-time"));this.collector=new fE(i.host.api,new SE(t,this.config,i.host),this.config,s),this.collector.startObserving(),Zg.before("internal:hide",this.beforeHideHandlerBound)}ag(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,i;this.activeToken&&this.abort(this.activeToken),this.flushEndedSessions(),this.isInitial=void 0===this.isInitial,this.isInitial||this.collector.reset();var r,o=Object.create(null),s="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:aE(this.core.host.api.performance,s)}),(this.config["enable-memory-measurement"]||"enabled"===(null===(n=(i=this.core.host).__getLixTreatment)||void 0===n?void 0:n.call(i,"pemberly.tracking.rum-memory-measurement")))&&(null===(r=this.pageMemoryObserver)||void 0===r||r.stopObserving(),this.pageMemoryObserver=new yE("page-memory",this.core,this.config),this.pageMemoryObserver.startObserving(),void 0===this.appMemoryObserver&&(this.appMemoryObserver=new yE("application-memory",this.core,this.config),this.appMemoryObserver.startObserving())),o}},{key:"observeWebVitals",value:function(){void 0===this.webVitalsObserver&&(this.webVitalsObserver=new i_(this.core,this.config),this.webVitalsObserver.startObserving())}},{key:"end",value:function(e){var t,n,i=this,r=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 s=this.stateWM.get(e),a="enabled"===(null===(t=(n=this.core.host).__getLixTreatment)||void 0===t?void 0:t.call(n,"pemberly.tracking.time-origin-epoch-time")),c=aE(this.core.host.api.performance,a);s.endProps={renderCompleteTime:c,isImpactedByHiddenWindow:r,rumKey:o};var l=this.activeToken;s.fireRumEventTimeout=setTimeout((function(){var e=i.collector.collect({isInitial:s.isInitial});"then"in e?e.then((function(e){i.fireRumEvent(e,l)})):i.fireRumEvent(e,l)}),this.config["beacon-timeout"]),this.activeToken=void 0}else Zg.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;Zg.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 i=e.collector.collect({isInitial:n.isInitial,immediate:!0});e.fireRumEvent(i,t)}}))}},{key:"fireRumEvent",value:function(e,t){if(this.stateWM.get(t)){var n=this.core.host.api.assign,i=this.stateWM.get(t),r=i.startTime,o=i.endProps;if(o){var s=o.renderCompleteTime,a=o.isImpactedByHiddenWindow,c=o.rumKey,l=this.boomerangStart=e.navigationStart||this.boomerangStart,u=e.navigationStart||r,d=s-u,h=this.config["app-version"];this.core.fireEvent({appId:this.config["app-id"],eventName:"RealUserMonitoringEvent"},(function(t){return n({pageKey:c||t.pageKey,isImpactedByHiddenWindow:a,appVersion:h,timeDone:d,navigationStart:u,boomerangStart:l,renderCompleteTime:s},e)})),i.fireRumEventTimeout&&clearTimeout(i.fireRumEventTimeout),this.liveTokens.delete(t),this.stateWM.delete(t)}else this.abort(t)}}},{key:"beforeHideHandler",value:function(){this.flushEndedSessions()}}])}();var r_="undefined"!=typeof window&&"undefined"!=typeof performance,o_="undefined"!=typeof location&&-1!==location.search.indexOf("_LI_MEASURE_DEBUG");function s_(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"ajax",n=arguments.length>2?arguments[2]:void 0;e.fireTrackingEvent("PageViewEvent",a_(n,t))}function a_(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"ajax";const n=Av(document),i=Ov(document),r=ng();let o={};return r&&(o.theme=r.toUpperCase()),i&&(o.interfaceLocale=i),e&&(o.pageKey=e),{header:{},requestHeader:o,pageType:t,trackingInfo:{clientTimestamp:Date.now(),pageTag:n}}}!function(){function e(t,n){og(this,e),cg(this,"featureKey",void 0),cg(this,"productName",void 0),cg(this,"endPageInstance",void 0),cg(this,"startPageInstance",void 0),cg(this,"isCanceled",!1),cg(this,"featureIdentifier",void 0),cg(this,"name",void 0),cg(this,"startTime",void 0),cg(this,"duration",void 0),cg(this,"marks",[]),cg(this,"spanStarts",new Map),cg(this,"spans",[]),cg(this,"isSpanContainer",!1),cg(this,"basePageTreeId",void 0),cg(this,"isClosed",!1),this.featureKey=t,this.productName=n;var i=n?"::".concat(n):"";this.featureIdentifier="".concat(t).concat(i),this.name=t}ag(e,[{key:"start",value:function(e){this.startPageInstance=e,r_&&(this.startTime=cE(),o_&&performance.mark("LI:".concat(this.featureIdentifier,"-start")))}},{key:"mark",value:function(e){r_&&(this.marks.push({name:e,startTime:cE()}),o_&&(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){r_&&(this.spanStarts.set(e,cE()),o_&&performance.mark("LI:".concat(this.featureIdentifier,"-span-").concat(e,"-start")))}},{key:"spanEnd",value:function(e,t){if(r_&&this.spanStarts.has(e)){var n=this.spanStarts.get(e);this.spans.push({name:t||e,startTime:n,duration:cE()-n}),o_&&(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,r_&&(this.duration=cE()-this.startTime,o_&&!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(r_){var e={name:this.featureKey,startTime:this.startTime,duration:this.isSpanContainer?-1:this.duration,basePageTreeId:this.basePageTreeId,startPageInstance:this.startPageInstance||jg("unknown"),marks:this.marks,spans:this.spans};return this.productName&&(e.productName=this.productName),e}}},{key:"check",value:function(){if(r_){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{ENTER:c_,ESCAPE:l_}=Lv;class u_{constructor(e){let{enablePageViewTracking:t=!1,shouldHideModal:n=(()=>!1),triggerByOutletEl:i=!0,shouldMoveToTopContainer:r=!0,events:o={},focusElement:s,pageKey:a}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!e)throw new Error("No modal element passed in");this._el=e,this._parentNode=this._el.parentNode,r&&(this._topLevelContainer=this._getTopLevelContainer()),this._wrapperEl=this._el.querySelector(".".concat("modal__wrapper")),this._overlayEl=this._el.querySelector(".".concat("modal__overlay")),o&&(this._events=o),i&&(this._outletEls=this._getOutletEls()),this._exitButtonEl=this._el.querySelector(".".concat("modal__dismiss")),this._onKeyDownEvent=e=>this._onKeyDown(e),this._enablePageViewTracking=t,this._pageKey=a,this._shouldHideModal=n,this._shouldMoveToTopContainer=r;this._el.querySelector("[id='".concat("modalNoDismiss","']"))&&(this._isModalNonDismissible=!0),this._focusElement=s,i&&this._outletEls.forEach(e=>{e.addEventListener("click",()=>this.open())}),this._isModalNonDismissible||(this._exitButtonEl&&this._exitButtonEl.addEventListener("click",()=>this.close()),this._overlayEl.addEventListener("click",this._handleOverlayClick.bind(this))),this._focusTrap=new Gv(this._wrapperEl)}_getOutletEls(){const e=this._el.dataset.outlet,t=[...("default-outlet"===e?this._parentNode:document).querySelectorAll('[data-modal="'.concat(e,'"]'))];if(!t.length)throw new Error("No outlet was found with a data-modal attribute equal to the provided dataCustomOutlet param ".concat(e));return t}_getTopLevelContainer(){const e=document.querySelector(".".concat("top-level-modal-container"));if(!e){const e=document.createElement("div");return e.className="top-level-modal-container",document.body.appendChild(e)}return e}_handleOverlayClick(e){e.target===this._wrapperEl||this._wrapperEl.contains(e.target)||this.close()}_onKeyDown(e){const t=Pv(e.key),n=t===c_&&document.activeElement===this._exitButtonEl;(t===l_||n)&&(this._isModalNonDismissible||this.close(),e.preventDefault())}open(){let{focusElement:e}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!this._shouldHideModal())return this._focusElement=e||this._focusElement,this._previouslyFocusedEl=document.activeElement,this._overlayEl.classList.add("modal__overlay--visible"),this._shouldMoveToTopContainer&&this._topLevelContainer.appendChild(this._el),this.noScroll(),document.addEventListener("keydown",this._onKeyDownEvent),Iv(this._el,"open"),this._wrapperEl&&this._wrapperEl.focus(),this._focusTrap.init(),this._enablePageViewTracking&&window.tracking?window.tracking.then(e=>{s_(e,"ajax",this._pageKey||"".concat(this._el.id))}):(Iv(this._wrapperEl,"afterOpen"),Promise.resolve());Iv(this._el,"didNotOpen")}async close(){var e,t;this._events.onBeforeClose&&await(null===(e=this._events)||void 0===e||null===(t=e.onBeforeClose)||void 0===t?void 0:t.call(e,this._wrapperEl));this._overlayEl.classList.remove("modal__overlay--visible"),this._shouldMoveToTopContainer&&this._parentNode.appendChild(this._el),this.removeNoScroll(),document.removeEventListener("keydown",this._onKeyDownEvent),Iv(this._el,"close"),setTimeout(()=>{var e;(null===(e=this._focusElement)||void 0===e?void 0:e.focus())||this._previouslyFocusedEl.focus()},50),this._focusTrap.tearDown()}noScroll(){document.body.classList.add("overflow-hidden")}removeNoScroll(){document.body.classList.remove("overflow-hidden")}}function d_(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 h_=/ /g,p_=/[\s\u0000<>"]|%00/,f_=/\\/,m_=/([.]|%2e){2}/i;let v_=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 g_(e){let t;if("string"!=typeof e)return d_("jSecure Warning: url must be a string","error"),"invalid://";if(t=e.trim(),t.indexOf(" ")>-1&&(d_("jSecure Warning: url should not contain spaces: "+e,"warn"),t=t.replace(h_,"+")),!v_.test(t))return d_("jSecure Error: URL should be absolute with allowed schemas, relative, a hash fragment or query string. "+e,"error"),"invalid://";if(p_.test(t))return d_("jSecure Error: not valid url character found in url: "+e,"error"),"invalid://";let n,i=t.split("?")[0],r=!1;try{n=decodeURI(i)}catch(e){r=!0}return r?(d_("jSecure Error: malformed url path detected: "+i),"invalid://"):f_.test(i)||m_.test(i)||m_.test(n)?(d_("jSecure Error: malicious data found in url path: "+i,"error"),"invalid://"):e}const y_={redirect(e){window&&(window.location.href=e)}};function b_(e){return e.scrollHeight>e.offsetHeight}function E_(e,t){const n=Ev(e);for(let e=0;e<n.length;e++)n[e]&&1===n[e].nodeType&&t(n[e])}function __(e){T_([e])}function w_(e){S_([e])}function T_(e){E_(e,e=>{e.classList.add("hidden"),e.setAttribute("aria-hidden","true")})}function S_(e){E_(e,e=>{e.classList.remove("hidden"),e.setAttribute("aria-hidden","false")})}function k_(e){null==e||e.setAttribute("disabled","disabled"),null==e||e.setAttribute("aria-disabled","true")}function I_(e){null==e||e.removeAttribute("disabled"),null==e||e.removeAttribute("aria-disabled")}function C_(){return document.documentElement.classList.contains("safari")}function A_(){return document.documentElement.classList.contains("ios")}function O_(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:document;const i=null==n?void 0:n.querySelector(".".concat(e));if(i&&b_(i)){const r=n.querySelector(t);null==r||r.classList.remove("invisible"),null==r||r.addEventListener("click",()=>{i.classList.remove(e),r.classList.add("invisible")})}}var R_=Object.hasOwnProperty,L_=Object.setPrototypeOf,N_=Object.isFrozen,P_=Object.getPrototypeOf,x_=Object.getOwnPropertyDescriptor,M_=Object.freeze,D_=Object.seal,U_=Object.create,B_="undefined"!=typeof Reflect&&Reflect,q_=B_.apply,F_=B_.construct;q_||(q_=function(e,t,n){return e.apply(t,n)}),M_||(M_=function(e){return e}),D_||(D_=function(e){return e}),F_||(F_=function(e,t){return new(Function.prototype.bind.apply(e,[null].concat(function(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}(t))))});var j_=J_(Array.prototype.forEach),H_=J_(Array.prototype.pop),z_=J_(Array.prototype.push),G_=J_(String.prototype.toLowerCase),K_=J_(String.prototype.match),W_=J_(String.prototype.replace),V_=J_(String.prototype.indexOf),Y_=J_(String.prototype.trim),Q_=J_(RegExp.prototype.test),X_=function(e){return function(){for(var t=arguments.length,n=Array(t),i=0;i<t;i++)n[i]=arguments[i];return F_(e,n)}}(TypeError);function J_(e){return function(t){for(var n=arguments.length,i=Array(n>1?n-1:0),r=1;r<n;r++)i[r-1]=arguments[r];return q_(e,t,i)}}function Z_(e,t){L_&&L_(e,null);for(var n=t.length;n--;){var i=t[n];if("string"==typeof i){var r=G_(i);r!==i&&(N_(t)||(t[n]=r),i=r)}e[i]=!0}return e}function $_(e){var t=U_(null),n=void 0;for(n in e)q_(R_,e,[n])&&(t[n]=e[n]);return t}function ew(e,t){for(;null!==e;){var n=x_(e,t);if(n){if(n.get)return J_(n.get);if("function"==typeof n.value)return J_(n.value)}e=P_(e)}return function(e){return console.warn("fallback value for",e),null}}var tw=M_(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","section","select","shadow","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),nw=M_(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","filter","font","g","glyph","glyphref","hkern","image","line","lineargradient","marker","mask","metadata","mpath","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),iw=M_(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),rw=M_(["animate","color-profile","cursor","discard","fedropshadow","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),ow=M_(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover"]),sw=M_(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),aw=M_(["#text"]),cw=M_(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","face","for","headers","height","hidden","high","href","hreflang","id","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","pattern","placeholder","playsinline","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","xmlns","slot"]),lw=M_(["accent-height","accumulate","additive","alignment-baseline","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),uw=M_(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),dw=M_(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),hw=D_(/\{\{[\s\S]*|[\s\S]*\}\}/gm),pw=D_(/<%[\s\S]*|[\s\S]*%>/gm),fw=D_(/^data-[\-\w.\u00B7-\uFFFF]/),mw=D_(/^aria-[\-\w]+$/),vw=D_(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),gw=D_(/^(?:\w+script|data):/i),yw=D_(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),bw="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};function Ew(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}var _w=function(){return"undefined"==typeof window?null:window},ww=function(e,t){if("object"!==(void 0===e?"undefined":bw(e))||"function"!=typeof e.createPolicy)return null;var n=null;t.currentScript&&t.currentScript.hasAttribute("data-tt-policy-suffix")&&(n=t.currentScript.getAttribute("data-tt-policy-suffix"));var i="dompurify"+(n?"#"+n:"");try{return e.createPolicy(i,{createHTML:function(e){return e}})}catch(e){return console.warn("TrustedTypes policy "+i+" could not be created."),null}};var Tw=function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:_w(),n=function(t){return e(t)};if(n.version="2.3.5",n.removed=[],!t||!t.document||9!==t.document.nodeType)return n.isSupported=!1,n;var i=t.document,r=t.document,o=t.DocumentFragment,s=t.HTMLTemplateElement,a=t.Node,c=t.Element,l=t.NodeFilter,u=t.NamedNodeMap,d=void 0===u?t.NamedNodeMap||t.MozNamedAttrMap:u,h=t.HTMLFormElement,p=t.DOMParser,f=t.trustedTypes,m=c.prototype,v=ew(m,"cloneNode"),g=ew(m,"nextSibling"),y=ew(m,"childNodes"),b=ew(m,"parentNode");if("function"==typeof s){var E=r.createElement("template");E.content&&E.content.ownerDocument&&(r=E.content.ownerDocument)}var _=ww(f,i),w=_?_.createHTML(""):"",T=r,S=T.implementation,k=T.createNodeIterator,I=T.createDocumentFragment,C=T.getElementsByTagName,A=i.importNode,O={};try{O=$_(r).documentMode?r.documentMode:{}}catch(e){}var R={};n.isSupported="function"==typeof b&&S&&void 0!==S.createHTMLDocument&&9!==O;var L=hw,N=pw,P=fw,x=mw,M=gw,D=yw,U=vw,B=null,q=Z_({},[].concat(Ew(tw),Ew(nw),Ew(iw),Ew(ow),Ew(aw))),F=null,j=Z_({},[].concat(Ew(cw),Ew(lw),Ew(uw),Ew(dw))),H=Object.seal(Object.create(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),z=null,G=null,K=!0,W=!0,V=!1,Y=!1,Q=!1,X=!1,J=!1,Z=!1,$=!1,ee=!1,te=!0,ne=!0,ie=!1,re={},oe=null,se=Z_({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]),ae=null,ce=Z_({},["audio","video","img","source","image","track"]),le=null,ue=Z_({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),de="http://www.w3.org/1998/Math/MathML",he="http://www.w3.org/2000/svg",pe="http://www.w3.org/1999/xhtml",fe=pe,me=!1,ve=void 0,ge=["application/xhtml+xml","text/html"],ye="text/html",be=void 0,Ee=null,_e=r.createElement("form"),we=function(e){return e instanceof RegExp||e instanceof Function},Te=function(e){Ee&&Ee===e||(e&&"object"===(void 0===e?"undefined":bw(e))||(e={}),e=$_(e),B="ALLOWED_TAGS"in e?Z_({},e.ALLOWED_TAGS):q,F="ALLOWED_ATTR"in e?Z_({},e.ALLOWED_ATTR):j,le="ADD_URI_SAFE_ATTR"in e?Z_($_(ue),e.ADD_URI_SAFE_ATTR):ue,ae="ADD_DATA_URI_TAGS"in e?Z_($_(ce),e.ADD_DATA_URI_TAGS):ce,oe="FORBID_CONTENTS"in e?Z_({},e.FORBID_CONTENTS):se,z="FORBID_TAGS"in e?Z_({},e.FORBID_TAGS):{},G="FORBID_ATTR"in e?Z_({},e.FORBID_ATTR):{},re="USE_PROFILES"in e&&e.USE_PROFILES,K=!1!==e.ALLOW_ARIA_ATTR,W=!1!==e.ALLOW_DATA_ATTR,V=e.ALLOW_UNKNOWN_PROTOCOLS||!1,Y=e.SAFE_FOR_TEMPLATES||!1,Q=e.WHOLE_DOCUMENT||!1,Z=e.RETURN_DOM||!1,$=e.RETURN_DOM_FRAGMENT||!1,ee=e.RETURN_TRUSTED_TYPE||!1,J=e.FORCE_BODY||!1,te=!1!==e.SANITIZE_DOM,ne=!1!==e.KEEP_CONTENT,ie=e.IN_PLACE||!1,U=e.ALLOWED_URI_REGEXP||U,fe=e.NAMESPACE||pe,e.CUSTOM_ELEMENT_HANDLING&&we(e.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(H.tagNameCheck=e.CUSTOM_ELEMENT_HANDLING.tagNameCheck),e.CUSTOM_ELEMENT_HANDLING&&we(e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(H.attributeNameCheck=e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),e.CUSTOM_ELEMENT_HANDLING&&"boolean"==typeof e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements&&(H.allowCustomizedBuiltInElements=e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),ve=ve=-1===ge.indexOf(e.PARSER_MEDIA_TYPE)?ye:e.PARSER_MEDIA_TYPE,be="application/xhtml+xml"===ve?function(e){return e}:G_,Y&&(W=!1),$&&(Z=!0),re&&(B=Z_({},[].concat(Ew(aw))),F=[],!0===re.html&&(Z_(B,tw),Z_(F,cw)),!0===re.svg&&(Z_(B,nw),Z_(F,lw),Z_(F,dw)),!0===re.svgFilters&&(Z_(B,iw),Z_(F,lw),Z_(F,dw)),!0===re.mathMl&&(Z_(B,ow),Z_(F,uw),Z_(F,dw))),e.ADD_TAGS&&(B===q&&(B=$_(B)),Z_(B,e.ADD_TAGS)),e.ADD_ATTR&&(F===j&&(F=$_(F)),Z_(F,e.ADD_ATTR)),e.ADD_URI_SAFE_ATTR&&Z_(le,e.ADD_URI_SAFE_ATTR),e.FORBID_CONTENTS&&(oe===se&&(oe=$_(oe)),Z_(oe,e.FORBID_CONTENTS)),ne&&(B["#text"]=!0),Q&&Z_(B,["html","head","body"]),B.table&&(Z_(B,["tbody"]),delete z.tbody),M_&&M_(e),Ee=e)},Se=Z_({},["mi","mo","mn","ms","mtext"]),ke=Z_({},["foreignobject","desc","title","annotation-xml"]),Ie=Z_({},nw);Z_(Ie,iw),Z_(Ie,rw);var Ce=Z_({},ow);Z_(Ce,sw);var Ae=function(e){var t=b(e);t&&t.tagName||(t={namespaceURI:pe,tagName:"template"});var n=G_(e.tagName),i=G_(t.tagName);if(e.namespaceURI===he)return t.namespaceURI===pe?"svg"===n:t.namespaceURI===de?"svg"===n&&("annotation-xml"===i||Se[i]):Boolean(Ie[n]);if(e.namespaceURI===de)return t.namespaceURI===pe?"math"===n:t.namespaceURI===he?"math"===n&&ke[i]:Boolean(Ce[n]);if(e.namespaceURI===pe){if(t.namespaceURI===he&&!ke[i])return!1;if(t.namespaceURI===de&&!Se[i])return!1;var r=Z_({},["title","style","font","a","script"]);return!Ce[n]&&(r[n]||!Ie[n])}return!1},Oe=function(e){z_(n.removed,{element:e});try{e.parentNode.removeChild(e)}catch(t){try{e.outerHTML=w}catch(t){e.remove()}}},Re=function(e,t){try{z_(n.removed,{attribute:t.getAttributeNode(e),from:t})}catch(e){z_(n.removed,{attribute:null,from:t})}if(t.removeAttribute(e),"is"===e&&!F[e])if(Z||$)try{Oe(t)}catch(e){}else try{t.setAttribute(e,"")}catch(e){}},Le=function(e){var t=void 0,n=void 0;if(J)e="<remove></remove>"+e;else{var i=K_(e,/^[\r\n\t ]+/);n=i&&i[0]}"application/xhtml+xml"===ve&&(e='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+e+"</body></html>");var o=_?_.createHTML(e):e;if(fe===pe)try{t=(new p).parseFromString(o,ve)}catch(e){}if(!t||!t.documentElement){t=S.createDocument(fe,"template",null);try{t.documentElement.innerHTML=me?"":o}catch(e){}}var s=t.body||t.documentElement;return e&&n&&s.insertBefore(r.createTextNode(n),s.childNodes[0]||null),fe===pe?C.call(t,Q?"html":"body")[0]:Q?t.documentElement:s},Ne=function(e){return k.call(e.ownerDocument||e,e,l.SHOW_ELEMENT|l.SHOW_COMMENT|l.SHOW_TEXT,null,!1)},Pe=function(e){return e instanceof h&&("string"!=typeof e.nodeName||"string"!=typeof e.textContent||"function"!=typeof e.removeChild||!(e.attributes instanceof d)||"function"!=typeof e.removeAttribute||"function"!=typeof e.setAttribute||"string"!=typeof e.namespaceURI||"function"!=typeof e.insertBefore)},xe=function(e){return"object"===(void 0===a?"undefined":bw(a))?e instanceof a:e&&"object"===(void 0===e?"undefined":bw(e))&&"number"==typeof e.nodeType&&"string"==typeof e.nodeName},Me=function(e,t,i){R[e]&&j_(R[e],(function(e){e.call(n,t,i,Ee)}))},De=function(e){var t=void 0;if(Me("beforeSanitizeElements",e,null),Pe(e))return Oe(e),!0;if(K_(e.nodeName,/[\u0080-\uFFFF]/))return Oe(e),!0;var i=be(e.nodeName);if(Me("uponSanitizeElement",e,{tagName:i,allowedTags:B}),!xe(e.firstElementChild)&&(!xe(e.content)||!xe(e.content.firstElementChild))&&Q_(/<[/\w]/g,e.innerHTML)&&Q_(/<[/\w]/g,e.textContent))return Oe(e),!0;if("select"===i&&Q_(/<template/i,e.innerHTML))return Oe(e),!0;if(!B[i]||z[i]){if(ne&&!oe[i]){var r=b(e)||e.parentNode,o=y(e)||e.childNodes;if(o&&r)for(var s=o.length-1;s>=0;--s)r.insertBefore(v(o[s],!0),g(e))}if(!z[i]&&Be(i)){if(H.tagNameCheck instanceof RegExp&&Q_(H.tagNameCheck,i))return!1;if(H.tagNameCheck instanceof Function&&H.tagNameCheck(i))return!1}return Oe(e),!0}return e instanceof c&&!Ae(e)?(Oe(e),!0):"noscript"!==i&&"noembed"!==i||!Q_(/<\/no(script|embed)/i,e.innerHTML)?(Y&&3===e.nodeType&&(t=e.textContent,t=W_(t,L," "),t=W_(t,N," "),e.textContent!==t&&(z_(n.removed,{element:e.cloneNode()}),e.textContent=t)),Me("afterSanitizeElements",e,null),!1):(Oe(e),!0)},Ue=function(e,t,n){if(te&&("id"===t||"name"===t)&&(n in r||n in _e))return!1;if(W&&!G[t]&&Q_(P,t));else if(K&&Q_(x,t));else if(!F[t]||G[t]){if(!(Be(e)&&(H.tagNameCheck instanceof RegExp&&Q_(H.tagNameCheck,e)||H.tagNameCheck instanceof Function&&H.tagNameCheck(e))&&(H.attributeNameCheck instanceof RegExp&&Q_(H.attributeNameCheck,t)||H.attributeNameCheck instanceof Function&&H.attributeNameCheck(t))||"is"===t&&H.allowCustomizedBuiltInElements&&(H.tagNameCheck instanceof RegExp&&Q_(H.tagNameCheck,n)||H.tagNameCheck instanceof Function&&H.tagNameCheck(n))))return!1}else if(le[t]);else if(Q_(U,W_(n,D,"")));else if("src"!==t&&"xlink:href"!==t&&"href"!==t||"script"===e||0!==V_(n,"data:")||!ae[e]){if(V&&!Q_(M,W_(n,D,"")));else if(n)return!1}else;return!0},Be=function(e){return e.indexOf("-")>0},qe=function(e){var t=void 0,i=void 0,r=void 0,o=void 0;Me("beforeSanitizeAttributes",e,null);var s=e.attributes;if(s){var a={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:F};for(o=s.length;o--;){var c=t=s[o],l=c.name,u=c.namespaceURI;if(i=Y_(t.value),r=be(l),a.attrName=r,a.attrValue=i,a.keepAttr=!0,a.forceKeepAttr=void 0,Me("uponSanitizeAttribute",e,a),i=a.attrValue,!a.forceKeepAttr&&(Re(l,e),a.keepAttr))if(Q_(/\/>/i,i))Re(l,e);else{Y&&(i=W_(i,L," "),i=W_(i,N," "));var d=be(e.nodeName);if(Ue(d,r,i))try{u?e.setAttributeNS(u,l,i):e.setAttribute(l,i),H_(n.removed)}catch(e){}}}Me("afterSanitizeAttributes",e,null)}},Fe=function e(t){var n=void 0,i=Ne(t);for(Me("beforeSanitizeShadowDOM",t,null);n=i.nextNode();)Me("uponSanitizeShadowNode",n,null),De(n)||(n.content instanceof o&&e(n.content),qe(n));Me("afterSanitizeShadowDOM",t,null)};return n.sanitize=function(e,r){var s=void 0,c=void 0,l=void 0,u=void 0,d=void 0;if((me=!e)&&(e="\x3c!--\x3e"),"string"!=typeof e&&!xe(e)){if("function"!=typeof e.toString)throw X_("toString is not a function");if("string"!=typeof(e=e.toString()))throw X_("dirty is not a string, aborting")}if(!n.isSupported){if("object"===bw(t.toStaticHTML)||"function"==typeof t.toStaticHTML){if("string"==typeof e)return t.toStaticHTML(e);if(xe(e))return t.toStaticHTML(e.outerHTML)}return e}if(X||Te(r),n.removed=[],"string"==typeof e&&(ie=!1),ie){if(e.nodeName){var h=be(e.nodeName);if(!B[h]||z[h])throw X_("root node is forbidden and cannot be sanitized in-place")}}else if(e instanceof a)1===(c=(s=Le("\x3c!----\x3e")).ownerDocument.importNode(e,!0)).nodeType&&"BODY"===c.nodeName||"HTML"===c.nodeName?s=c:s.appendChild(c);else{if(!Z&&!Y&&!Q&&-1===e.indexOf("<"))return _&&ee?_.createHTML(e):e;if(!(s=Le(e)))return Z?null:ee?w:""}s&&J&&Oe(s.firstChild);for(var p=Ne(ie?e:s);l=p.nextNode();)3===l.nodeType&&l===u||De(l)||(l.content instanceof o&&Fe(l.content),qe(l),u=l);if(u=null,ie)return e;if(Z){if($)for(d=I.call(s.ownerDocument);s.firstChild;)d.appendChild(s.firstChild);else d=s;return F.shadowroot&&(d=A.call(i,d,!0)),d}var f=Q?s.outerHTML:s.innerHTML;return Y&&(f=W_(f,L," "),f=W_(f,N," ")),_&&ee?_.createHTML(f):f},n.setConfig=function(e){Te(e),X=!0},n.clearConfig=function(){Ee=null,X=!1},n.isValidAttribute=function(e,t,n){Ee||Te({});var i=be(e),r=be(t);return Ue(i,r,n)},n.addHook=function(e,t){"function"==typeof t&&(R[e]=R[e]||[],z_(R[e],t))},n.removeHook=function(e){R[e]&&H_(R[e])},n.removeHooks=function(e){R[e]&&(R[e]=[])},n.removeAllHooks=function(){R={}},n}();const Sw={ADD_TAGS:["#comment","li-icon","icon","iframe"],ADD_ATTR:["target"],FORCE_BODY:!0,RETURN_DOM:!0};function kw(e,t){let{ADD_TAGS:n=[],ADD_ATTR:i=[]}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const r=Jv({},Sw);r.ADD_TAGS=[...r.ADD_TAGS,...n],r.ADD_ATTR=[...r.ADD_ATTR,...i];const o=Tw.sanitize(t,r);return e&&e.nodeType===Node.ELEMENT_NODE&&(e.innerHTML="",e.append(...o.childNodes)),o}var Iw="aria-[a-z0-9_\\-]+|class|data-[a-z0-9_\\-]+|dir|id|role|tabindex",Cw=function(){if("undefined"==typeof document)return!0;return"textContent"in document.createElement("div")}()?"textContent":"innerText",Aw=["b","del","em","i","s","strong","sub","sup"],Ow=Aw.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"]),Rw=[Iw,"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 Lw(){}var Nw=function(){var e,t=/[&<>"'\u0000\\=]/g;return e={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","\0":"�","\\":"&#92;","=":"&#61;"},function(n){return null==n?null:n.toString().replace(t,(function(t){return e[t]}))}}(),Pw=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 i={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(r){return null==r?null:(r+"").replace(n,(function(n,r,o,s){return r?(a=r,i.hasOwnProperty(a)?i[a]:(e.innerHTML="&"+a+";",c=e[Cw],i[a]=c,c)):o||s?t(parseInt(o||s,o?16:10)||65533):"�";var a,c}))}}();var xw=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)};function Mw(e){return/[<&]/.test(e)}var Dw=Array.prototype.forEach?function(e,t){Array.prototype.forEach.call(e,t)}:function(e,t){for(var n=0,i=e.length;n<i;n++)t(e[n],n)};function Uw(e){e=xw(e)?e:[e];var t,n,i,r=0,o="<(?!/?";return o+="(?:",Dw(e,(function(e,s){t=e.tags||Ow,n=e.attrs||Rw,i=e.checkUrlAttrs||!1,0!==s&&(o+="|"),o+="(?:"+t.join("|")+")",o+="(?:",o+="[ \t\r\n]*",o+="|[ \t\r\n]+",o+="(?:(?:",o+="(?:"+n+")(?:=([\"'])[^'\"<>]*\\"+ ++r+")?",i&&(o+="|(?:href|src)=([\"'])(?:(?:https?|ftp|mailto|invalid)(?::|&#(?:58|x3a);)|(?:data:image/(?:gif|jpg|jpeg|png);base64,)|[/.#?]|&#(?:35|4[67]|63|x(?:2[3ef]|3f));)[^'\"<>]*\\"+ ++r),o+=")[ \t\r\n]*)+",o+=")"})),o+=")",o+="/?>)",new RegExp(o,"i")}function Bw(e){return Uw({tags:e=e||Ow,checkUrlAttrs:!0})}function qw(e,t){var n=(t=t||{}).allowTags,i=!1!==t.hasCustomElementMarkup;return n?!Bw(n).test(e):i?!qw.R_UNSAFE_CUSTOM_ELEMENT.test(e):!qw.R_UNSAFE_HTML.test(e)}function Fw(e){return e.replace(/<[^>]*>|[<>'"&\\]/g,"")}function jw(e,t,n){if(null==e)return null;e=e.toString();var i=t?function(e,t){var n={};return e.replace(/\{([^}]+)\}/g,(function(e,i){var r,o=e;if(n.hasOwnProperty(i))return n[i];if(t.hasOwnProperty(i)){if(!((r="string"==typeof(o=t[i]))||o instanceof Lw||"number"==typeof o))throw new Error("Only strings, numbers, and jSecure types are allowed as placeholder replacements.");o=r?Nw(o):o.toString()}return n[i]=o,o}))}(e,t):e,r=e;return Mw(i)&&!qw(i,n)&&(i=Fw(i),d_("Content contains non-whitelisted tags or attributes:\nContent: "+r,"error")),i}function Hw(e,t){for(var n=+t.length,i=0,r=e.length;i<n;i++)e[r++]=t[i];return e.length=r,e}qw.R_UNSAFE_HTML=Bw(),qw.R_UNSAFE_CUSTOM_ELEMENT=function(){var e={tag:"li-icon",attrs:"active|a11y-text|animate|color|size|type"};return Uw([{tags:Ow,checkUrlAttrs:!0},{tags:[e.tag],attrs:[Iw,e.attrs].join("|"),checkUrlAttrs:!1}])}();var zw={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,"",""]};zw.optgroup=zw.option,zw.tbody=zw.tfoot=zw.colgroup=zw.caption=zw.thead,zw.th=zw.td;var Gw=/<([\w:]+)/;function Kw(e,t){var n,i,r,o,s,a,c,l=t.createDocumentFragment(),u=[];for(s=0,c=e.length;s<c;s++)if((o=e[s])||0===o)if("string"==typeof o){for(r=r||l.appendChild(t.createElement("div")),n=(Gw.exec(o)||["",""])[1].toLowerCase(),Yw(r,(i=zw[n]||zw._default)[1]+o+i[2]),a=i[0];a--;)r.lastChild&&r.lastChild.nodeType===Node.ELEMENT_NODE&&(r=r.lastChild);Hw(u,r.childNodes),(r=l.firstChild).textContent=""}else Hw(u,o.nodeType?[o]:o);for(l.textContent="",o=u[s=0];o;)l.appendChild(o),o=u[++s];return l}var Ww=jw,Vw=jw;function Yw(e,t,n){var i=jw(t,n);return Mw(i)?e.innerHTML=i:e[Cw]=i,i}function Qw(e,t){if(!(this instanceof Qw))return new Qw(e,t);(t=t||{}).allowTags=t.allowTags?t.allowTags.reduce((function(e,t){return e.concat(t)}),[]):null,this._string=e,this._options=t}Qw.prototype=function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);return e}(new Lw,{toString:function(){var e=this._string,t=this._stringVal,n=e;return void 0!==t?t:(qw(e,this._options)||(n=e,e=Fw(e),d_("UnsafeString contains non-whitelisted tags or attributes.\nString: "+n,"error")),this._stringVal=e,e)}});var Xw={ALLOWED_TAGS:Ow,FORMATTING_TAGS:Aw,htmlEncode:Nw,htmlUnencode:Pw,log:d_,mk:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];let r,o="",s=n.length;return e&&e.forEach((function(e,t){o+=e,t<s&&(r=n[t],o+=r instanceof Qw?r:Nw(r))})),Vw(o)},parseHTML:function(e,t){var n;if(t=t||document.implementation&&document.implementation.createHTMLDocument?document.implementation.createHTMLDocument(""):document,"string"==typeof e)n=Kw([e],t);else{if(!xw(e))return e;n=Kw(e,t)}return Hw([],n.childNodes)},parseSelector:function(e){return"string"==typeof e&&/^(?:\s*(<[\w\W]+>)[^>]*)$/.test(e)?[]:e},processTemplate:Ww,reEncode:function(e){return Nw(Pw(e))},_redirector:y_,redirect:function(e){const t=g_(e);t===e&&y_.redirect(t)},sanitizeHTML:Vw,sanitizeUrl:g_,setElementContent:Yw,text:function(e){return d_("jSecure.text() is deprecated. Please use jSecure.htmlEncode().","warn"),Nw(e)},unsafe:function(e){return e},UnsafeString:Qw};function Jw(e){if(e instanceof HTMLElement)if(document.documentElement.classList.contains("ios")){const t=10,n=10;e.blur();let i=0;const r=window.setInterval((function(){e.focus(),i>=n&&window.clearInterval(r),i++}),t)}else e.focus()}const Zw=Object.freeze({CAUTION:"caution",ERROR:"error",GDPR:"gdpr",NOTIFY:"notify",SUCCESS:"success"});class $w{constructor(){let{removeToastCallback:e=(()=>{})}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=document.getElementById("toasts");if(!t)throw new Error("No toasts element");this._el=t,this._position=t.getAttribute("type"),this.removeToastCallback=e,this.bindEvents()}trigger(e,t,n,i){if(!e||!Object.values(Zw).includes(e))throw new Error("Valid type not specified: type must be caution, error, gdpr, notify or success");if(!t)throw new Error("No message specified");const r=n?"".concat(n,"_toast-").concat(e):"toast-".concat(e),o=this._createToastEl(e,t,r,i);return this._addToast(o)}clearAllToasts(){let e=this._el.querySelectorAll(".toast");Array.from(e).forEach(e=>{this._removeToast(e)})}bindEvents(){this._el.addEventListener("click",e=>{const t=vv(e.target,".toast__dismiss-btn");if(t){const e=vv(t,".toast");e&&this._removeToast(e)}})}_isValidCtaMetadata(e){return["url","trk","text"].every(t=>e.hasOwnProperty(t))}_createToastEl(e,t,n,i){const r=document.querySelector("#toast-template").content.firstElementChild.cloneNode(!0),o=document.querySelector("#toast-icon-".concat(e)).content.firstElementChild.cloneNode(!0);if(!r||!o)throw new Error("Toast templates are missing");r.classList.add("toast--".concat(e)),r.setAttribute("type",e);const s=r.querySelector(".toast__message");s.insertBefore(o,s.firstElementChild);r.querySelector(".toast__dismiss-btn").setAttribute("data-tracking-control-name","".concat(n,"_dismiss"));const a=r.querySelector(".toast__message-content");let c="text-color-text-neutral";if(e===Zw.CAUTION?c="text-color-text-caution":e===Zw.ERROR?c="text-color-text-negative":e===Zw.SUCCESS&&(c="text-color-text-positive"),a.classList.add(c),kw(a,t),i&&this._isValidCtaMetadata(i)){const e=r.querySelector(".toast__message-content-container"),t=document.querySelector("#toast-cta").content.firstElementChild.cloneNode(!0),n=i.target||"_blank";t.setAttribute("href",Xw.sanitizeUrl(wv(i.url,i.trk))),t.setAttribute("target",n),t.textContent=i.text,e.classList.add(c),e.append(t)}return r}_addToast(e){this._el.appendChild(e);const t=this._el.querySelector(".toast__message");return this._hasToast()&&this._el.classList.remove("invisible"),this._refreshLazyLoader(),setTimeout((function(){e.classList.remove("toast--hidden"),Jw(t)}),500),e}_removeToast(e){let t=this._el;e.classList.add("toast--hidden"),setTimeout(()=>{e.remove(),this._hasToast()||t.classList.add("invisible"),this.removeToastCallback()},500)}_hasToast(){return[...this._el.children].some(e=>"template"!==e.tagName.toLowerCase())}_refreshLazyLoader(){var e,t;null===(e=window.lazyloader)||void 0===e||null===(t=e.then)||void 0===t||t.call(e,e=>{e.refreshLoader()})}}Zv($w,"TOAST_TYPES",Zw);const eT={};function tT(e){const t=document.getElementById(e);if(!t&&void 0!==eT[e])return eT[e];if(!t)return console.warn("Element with id: ".concat(e," not found")),eT[e]=null,eT[e];let n;for(const e of t.childNodes)try{if(e.nodeType===Node.COMMENT_NODE){n=JSON.parse(e.nodeValue);break}}catch(e){}return void 0===n?(console.warn("Error retrieving content with id: ".concat(e,". Use embedJson helper to embed this content")),null):(eT[e]=n,t.parentNode.removeChild(t),eT[e])}const nT={COPY:"copy",LINKEDIN:"linkedin",TWITTER:"twitter",FACEBOOK:"facebook"};Object.keys(nT).map(e=>nT[e]);const iT=["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("|");new RegExp(iT,"i");new Uint8Array(16);const rT=[];for(let e=0;e<256;++e)rT.push((e+256).toString(16).slice(1));"undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto);"".concat("tooltip__popup","--show");const oT=["endpoint","headers","queryId","variables"];function sT(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{endpoint:t,headers:n={"Content-Type":"application/json"},queryId:i,variables:r={}}=e,o=$v(e,oT);const s=Cv(document);if(!s)throw new Error("Missing pageKey for graphQL request from browser");return Kv(t,Jv({method:"POST",headers:n,postData:JSON.stringify({queryId:i,variables:r,pageKey:s})},o))}class aT{constructor(e,t){if(!e)throw Error("Missing endpoint");t&&(this.pemDegradationTrackingMetadata=t,this.isPemEnabled=!0),this.endpoint=e}executeAction(e){let{variables:t,queryId:n,successCallback:i=(()=>{}),failureCallback:r=(()=>{})}=e;return sT({endpoint:this.endpoint,queryId:n,variables:t,pemDegradationTrackingMetadata:this.pemDegradationTrackingMetadata,isPemEnabled:this.isPemEnabled}).then(e=>{const{responseText:t}=e;return i(JSON.parse(t).graphQL)}).catch(r)}}class cT extends aT{constructor(){super(...arguments)}execute(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:()=>{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:()=>{};return this.executeAction({queryId:cT.query,variables:{allowedCommentersScope:e.allowedCommentersScope,text:e.text,visibility:e.visibility||"PUBLIC",reshareUrn:e.reshareUrn,attributedShareUrn:e.attributedShareUrn,articleInput:e.articleInput,imagePostInput:e.imagePostInput,attributes:e.attributes,containerEntity:e.containerEntity},successCallback:t,failureCallback:n})}}Zv(cT,"query","2849bb08e3a3bbd23c96c0e758c018b7");class lT extends aT{constructor(){super(...arguments)}execute(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:()=>{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:()=>{};return this.executeAction({queryId:lT.query,variables:{url:e},successCallback:t,failureCallback:n})}}Zv(lT,"query","bece320b5f70fe4357082fe84eca6c56");class uT extends u_{constructor(e){let{enablePageViewTracking:t=!1,shouldHideModal:n=(()=>!1),triggerByOutletEl:i=!0,pushState:r=!0,shouldMoveToTopContainer:o=!0,focusElement:s,pageKey:a}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!e)throw new Error("No element passed into mobile web modal");super(e,{enablePageViewTracking:t,shouldHideModal:n,triggerByOutletEl:i,shouldMoveToTopContainer:o,focusElement:s,pageKey:a}),this.pushState=r,this.hashChangeHandlerRef=this._hashChangeHandler.bind(this)}historyBackClickHandler(){this.close({enableHistoryBack:!1})}_hashChangeHandler(e){const t=e.oldURL&&e.oldURL.split("#")[1];t&&t==="".concat("overlay_").concat(this._el.id)&&this.historyBackClickHandler()}open(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};super.open(e),this._shouldHideModal()||(this.pushState&&history.pushState(this._el.id,"show modal","#".concat("overlay_").concat(this._el.id)),window.addEventListener("hashchange",this.hashChangeHandlerRef))}close(){let{enableHistoryBack:e=!0}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};window.removeEventListener("hashchange",this.hashChangeHandlerRef),this.pushState&&e&&(window.history.replaceState({},document.title,window.location.href.split("#")[0]),history.back()),super.close()}}document.querySelector.bind(document);String.fromCharCode(32);Cv(document);String.fromCharCode(32);function dT(){const e=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return!e||0===e.trim().length};return e.errorMessageSuffix="error_empty",e}function hT(e){const t=function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return t.length<e};return t.errorMessageSuffix="error_too_short",t}function pT(e){const t=function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return t.length>e};return t.errorMessageSuffix="error_too_long",t}dT(),hT(3),pT(128),dT(),hT(6),pT(400);var fT=window||e.g;function mT(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function vT(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var gT,yT={ADVERTISING:"ADVERTISING",ANALYTICS_AND_RESEARCH:"ANALYTICS_AND_RESEARCH",FUNCTIONAL:"FUNCTIONAL"},bT="GUEST",ET="MEMBER",_T=0,wT=1,TT=2,ST=(vT(gT={},bT,"li_gc"),vT(gT,ET,"li_mc"),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,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;for(var o in mT(this,e),t=t||{},this.consentAvailable=!1,this.issuedAt=n,this.userMode=i,this.optedInConsentMap={},yT)t[o]=t[o]||_T,t[o]!==_T&&(this.consentAvailable=!0),this.optedInConsentMap[o]=t[o]===wT||t[o]===_T&&r===wT});(function(){var e=[yT.ADVERTISING,yT.ANALYTICS_AND_RESEARCH,yT.FUNCTIONAL],t=[_T,wT,TT,_T],n=new RegExp(["^(\\d+)","(\\d+)","(\\d+)","((?:.|\\s)+)"].join(";"))})(),new RegExp(["^(\\d+)","((?:.|\\s)+)"].join(";"));fT.utag_data||(fT.utag_data={});const kT="undefined"!=typeof window&&window&&"node"!==window.appEnvironment;fT.utag_cfg_ovrd=fT.utag_cfg_ovrd||{},fT.trackingEventDebugData=fT.trackingEventDebugData||[],fT.utag_cfg_ovrd.noview=!0,fT.utag_cfg_ovrd.nocookie=!0;kT&&new RegExp("bot|google|aolbuild|baidu|bing|msn|duckduckgo|teoma|slurp|yandex|sogou|facebook|alexa","i").test(fT.navigator.userAgent);!function(){if("function"==typeof window.CustomEvent)return!1;window.CustomEvent=function(e,t){t=t||{bubbles:!1,cancelable:!1,detail:null};var n=document.createEvent("CustomEvent");return n.initCustomEvent(e,t.bubbles,t.cancelable,t.detail),n}}(),function(){if("function"==typeof window.EventTarget)try{return!new e}catch(e){}const e=function(){this.listeners={}};e.prototype.listeners=null,e.prototype.addEventListener=function(e,t){e in this.listeners||(this.listeners[e]=[]),this.listeners[e].push(t)},e.prototype.removeEventListener=function(e,t){if(e in this.listeners)for(var n=this.listeners[e],i=0,r=n.length;i<r;i++)if(n[i]===t)return void n.splice(i,1)},e.prototype.dispatchEvent=function(e){if(!(e.type in this.listeners))return!0;for(var t=this.listeners[e.type].slice(),n=0,i=t.length;n<i;n++)t[n].call(this,e);return!e.defaultPrevented},window.EventTarget=e}();const IT={GOOGLE_ERROR:"googleError",GOOGLE_USER_FETCHED:"googleUserFetched",INITIALIZED:"initialized",PROMPT_MOMENT:"promptMomentNotification",TOKEN_FETCHED:"tokenFetched"},CT={INITIALIZATION:"initialization",AUTHENTICATION:"authentication"},{GOOGLE_ERROR:AT,GOOGLE_USER_FETCHED:OT,INITIALIZED:RT}=IT,{INITIALIZATION:LT,AUTHENTICATION:NT}=CT;EventTarget;var PT={exports:{}};function xT(e){this.message=e}xT.prototype=new Error,xT.prototype.name="InvalidCharacterError";var MT="undefined"!=typeof window&&window.atob&&window.atob.bind(window)||function(e){var t=String(e).replace(/=+$/,"");if(t.length%4==1)throw new xT("'atob' failed: The string to be decoded is not correctly encoded.");for(var n,i,r=0,o=0,s="";i=t.charAt(o++);~i&&(n=r%4?64*n+i:i,r++%4)?s+=String.fromCharCode(255&n>>(-2*r&6)):0)i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(i);return s};var DT=function(e){var t=e.replace(/-/g,"+").replace(/_/g,"/");switch(t.length%4){case 0:break;case 2:t+="==";break;case 3:t+="=";break;default:throw"Illegal base64url string!"}try{return function(e){return decodeURIComponent(MT(e).replace(/(.)/g,(function(e,t){var n=t.charCodeAt(0).toString(16).toUpperCase();return n.length<2&&(n="0"+n),"%"+n})))}(t)}catch(e){return MT(t)}};function UT(e){this.message=e}UT.prototype=new Error,UT.prototype.name="InvalidTokenError",PT.exports=function(e,t){if("string"!=typeof e)throw new UT("Invalid token specified");var n=!0===(t=t||{}).header?0:1;try{return JSON.parse(DT(e.split(".")[n]))}catch(e){throw new UT("Invalid token specified: "+e.message)}},PT.exports.InvalidTokenError=UT;const BT=IT,qT=CT,{GOOGLE_USER_FETCHED:FT,GOOGLE_ERROR:jT,INITIALIZED:HT}=BT,{INITIALIZATION:zT}=qT;const GT={observeComponents:()=>{},unobserveComponents:()=>{},handleDynamicElements:()=>{}};class KT{constructor(e,t){let{threshold:n=.9,root:i=null,rootMargin:r="0px",componentList:o=[],impressionEventCallback:s=(()=>{}),onImpression:a=(()=>{}),onObservation:c=(()=>{}),onUnobservation:l=(()=>{})}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(!("IntersectionObserver"in window))return GT;this.root=i,this.threshold=n,this.rootMargin=r,this.trackingInstance=t,this.impressionEventCallback=s,this._onImpression=a,this._onObservation=c,this._onUnobservation=l;const u={root:this.root,rootMargin:this.rootMargin,threshold:this.threshold};this.intersectionObserverInstance=new e(this._handleObservedNodes.bind(this),u),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 WT(e){var t=e.intersectionRect;return t.width>=0&&t.height>=0}function VT(e){try{return e.getBoundingClientRect()}catch(e){if("object"==typeof e&&null!==e&&16389==(65535&e.number))return{top:0,bottom:0,left:0,width:0,height:0,right:0,x:0,y:0};throw e}}function YT(e,t){return Math.round(e-t)}var QT=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),XT=function(){function e(){this.items=[]}return e.prototype.remove=function(e){for(var t=this.items.length,n=0;n<t;n++)this.removePredicate(e,this.items[n])&&(this.items.splice(n,1),n--,t--)},e.prototype.clear=function(){this.items=[]},e.prototype.push=function(e){this.items.push(e)},e.prototype.isEmpty=function(){return 0===this.items.length},e}(),JT=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return QT(t,e),t.prototype.removePredicate=function(e,t){return"string"==typeof e?t.id===e:t.callback===e},t}(XT),ZT=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return QT(t,e),t.prototype.removePredicate=function(e,t){return t===e},t}(XT),$T=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return QT(t,e),t.prototype.removePredicate=function(e,t){return"string"==typeof e?t.id===e:"function"==typeof e?t.callback===e:t.el===e},t}(XT),eS=function(){return 0},tS=!("undefined"==typeof window||!window||"undefined"==typeof document||!document),nS=tS&&!!window.requestAnimationFrame,iS={hasDOM:tS,hasRAF:nS,getScrollTop:eS,getScrollLeft:eS,getHeight:eS,getWidth:eS,rAF:nS?window.requestAnimationFrame.bind(window):function(e){e()},meta:{width:0,height:0,scrollTop:0,scrollLeft:0,x:0,y:0,top:0,left:0},version:0,lastVersion:0,updateMeta:eS,get isDirty(){return iS.version!==iS.lastVersion},document:window.document,IntersectionObserver:tS&&window.IntersectionObserver,performance:tS&&window.performance};function rS(){++iS.version}function oS(){var e=null!=document.scrollingElement;iS.getScrollTop=e?function(){return document.scrollingElement.scrollTop}:function(){return window.scrollY},iS.getScrollLeft=e?function(){return document.scrollingElement.scrollLeft}:function(){return window.scrollX}}tS&&(iS.getHeight=function(){return window.innerHeight},iS.getWidth=function(){return window.innerWidth},iS.updateMeta=function(){iS.meta.height=iS.getHeight(),iS.meta.width=iS.getWidth(),iS.meta.scrollLeft=iS.getScrollLeft(),iS.meta.scrollTop=iS.getScrollTop(),iS.lastVersion=iS.version},iS.updateMeta(),"loading"!==document.readyState?oS():document.addEventListener("DOMContentLoaded",oS),window.addEventListener("resize",rS,!1),window.addEventListener("scroll",rS,!1));var sS=function(){function e(){this.reads=[],this.work=[],this.running=!1}return e.prototype.scheduleRead=function(e){this.reads.unshift(e),this.run()},e.prototype.scheduleWork=function(e){this.work.unshift(e),this.run()},e.prototype.run=function(){var e=this;this.running||(this.running=!0,iS.rAF((function(){e.running=!1;for(var t=0,n=e.reads.length;t<n;t++)e.reads.pop()();t=0;for(var i=e.work.length;t<i;t++)e.work.pop()();(e.work.length>0||e.reads.length>0)&&e.run()})))},e}(),aS=null;var cS=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),lS="xxxx".replace(/[xy]/g,(function(e){var t=16*Math.random()|0;return("x"===e?t:3&t|8).toString(16)})),uS=0,dS=function(){function e(e,t,n,i,r,o,s,a,c,l){this.dateNow=e,this.highResTime=t,this.scrollTop=n,this.scrollLeft=i,this.width=r,this.height=o,this.x=s,this.y=a,this.top=c,this.left=l}return e.generate=function(t){void 0===t&&(t=window);var n=this.revalidateRootMeta(t);return new e(Date.now(),performance.now(),n.scrollTop,n.scrollLeft,n.width,n.height,n.x,n.y,n.top,n.left)},e.revalidateRootMeta=function(e){void 0===e&&(e=document);var t,n={width:0,height:0,scrollTop:0,scrollLeft:0,x:0,y:0,top:0,left:0};return iS.isDirty&&iS.updateMeta(),e===window||e===document?(n.height=iS.meta.height,n.width=iS.meta.width,n.scrollLeft=iS.meta.scrollLeft,n.scrollTop=iS.meta.scrollTop,n):(t=VT(e),n.scrollTop=e.scrollTop,n.scrollLeft=e.scrollLeft,n.width=t.width,n.height=t.height,n.x=t.x,n.y=t.y,n.top=t.top,n.left=t.left,n)},e}();function hS(){return uS+++lS}var pS=function(){function e(e,t){this.isTicking=!1,this.toRemove=[],this.engine=e||(aS||(aS=new sS)),this.root=t||window}return e.prototype.tick=function(){if(this.queue.isEmpty())this.isTicking=!1;else{if(this.toRemove.length>0){for(var e=0;e<this.toRemove.length;e++)this.queue.remove(this.toRemove[e]);this.toRemove=[]}this.applyQueue(dS.generate(this.root)),this.engine.scheduleRead(this.tick.bind(this))}},e.prototype.scheduleWork=function(e){this.engine.scheduleWork(e)},e.prototype.scheduleRead=function(e){this.engine.scheduleRead(e)},e.prototype.queryElement=function(e,t){var n,i,r=this;this.engine.scheduleRead((function(){n=VT(e),i=dS.generate(r.root)})),this.engine.scheduleWork((function(){t(n,i)}))},e.prototype.unwatch=function(e){this.toRemove.push(e)},e.prototype.unwatchAll=function(){this.queue.clear()},e.prototype.startTicking=function(){this.isTicking||(this.isTicking=!0,this.engine.scheduleRead(this.tick.bind(this)))},e}(),fS=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.queue=new JT,t}return cS(t,e),t.prototype.applyQueue=function(e){for(var t=0;t<this.queue.items.length;t++){var n=this.queue.items[t],i=n.id;(0,n.callback)(e,i)}},t.prototype.watch=function(e){this.startTicking();var t=hS();return this.queue.push({callback:e,id:t}),t},t}(pS),mS=function(e){function t(t){var n=e.call(this,void 0,window)||this;return n.predicate=t,n}return cS(t,e),t.prototype.applyQueue=function(t){this.predicate(t)&&e.prototype.applyQueue.call(this,t)},t}(fS),vS=function(e){function t(t,n,i){void 0===i&&(i=!1);var r=e.call(this,t,n)||this;return r.lastVersion=iS.version,r.queue=new $T,r.ALLOW_CACHED_SCHEDULER=i,r}return cS(t,e),Object.defineProperty(t.prototype,"isDirty",{get:function(){return iS.version!==this.lastVersion},enumerable:!1,configurable:!0}),t.prototype.applyQueue=function(e){for(var t=0;t<this.queue.items.length;t++){var n=this.queue.items[t],i=n.callback,r=n.el,o=n.id,s=n.clientRect;!this.isDirty&&s&&this.ALLOW_CACHED_SCHEDULER||(s=this.queue.items[t].clientRect=VT(r)),i(e,o,s)}this.lastVersion=iS.version},t.prototype.watch=function(e,t,n){this.startTicking(),n=n||hS();return this.queue.push({el:e,callback:t,id:n,clientRect:null}),n},t}(pS),gS=null;var yS=function(){function e(){this.queue=new ZT}return e.prototype.listen=function(e){this.queue.push(e)},e.prototype.unlisten=function(e){this.queue.remove(e)},e.prototype.trigger=function(e){for(var t=0;t<this.queue.items.length;t++)this.queue.items[t](e)},e}(),bS=function(){function e(e){this.scheduler=new mS(e.bind(this))}return e.prototype.trigger=function(){},e.prototype.listen=function(e){this.state=dS.generate(),this.scheduler.watch(e)},e.prototype.unlisten=function(e){this.scheduler.unwatch(e)},e}(),ES=null;function _S(e,t){var n=(ES||(ES={scroll:new bS((function(e){var t=this.state,n=t.scrollTop,i=t.scrollLeft;return this.state=e,n!==e.scrollTop||i!==e.scrollLeft})),resize:new bS((function(e){var t=this.state,n=t.width,i=t.height;return this.state=e,i!==e.height||n!==e.width})),destroy:new yS,beforeunload:new yS,hide:new yS,show:new yS}))[e];n&&n.listen(t)}function wS(e,t){if(ES){var n=ES[e];n&&n.unlisten(t)}}function TS(e,t){if(ES){var n=ES[e];n&&n.trigger(t)}}function SS(e){(gS||(gS=new fS)).scheduleWork(e)}function kS(e){var t=e.left,n=e.right,i=e.top,r=e.bottom;return{left:t,x:t,top:i,y:i,bottom:r,right:n,width:n-t,height:r-i}}iS.hasDOM&&(window.addEventListener("beforeunload",(function(){TS("beforeunload"),TS("destroy")})),document.addEventListener("visibilitychange",(function(){"visible"===document.visibilityState?TS("show"):TS("hide")})));var IS=function(){function e(e,t){void 0===t&&(t={}),this.records={},this.callback=e,t.threshold=t.threshold||0,this.rootMarginObj=function(e){var t=e.split(" ").map((function(e){return parseInt(e,10)}));switch(t.length){case 2:return{top:t[0],left:t[1],bottom:t[0],right:t[1]};case 3:return{top:t[0],left:t[1],bottom:t[2],right:t[1]};case 4:return{top:t[0],left:t[1],bottom:t[2],right:t[3]};default:return{top:0,left:0,bottom:0,right:0}}}(t.rootMargin||"0px"),this.root=t.root||null,Array.isArray(t.threshold)?this.thresholds=t.threshold:this.thresholds=[t.threshold],this.scheduler=new vS(void 0,this.root,t.ALLOW_CACHED_SCHEDULER)}return e.prototype.observe=function(e){var t=this,n=e,i=n.__spanielId=n.__spanielId||hS();return this.scheduler.watch(e,(function(e,i,r){t.onTick(e,i,r,n)}),n.__spanielId),i},e.prototype.onTick=function(e,t,n,i){var r=this,o=this.generateEntryEvent(e,n,i),s=o.numSatisfiedThresholds,a=o.entry,c=this.records[t]||(this.records[t]={entry:a,numSatisfiedThresholds:0});s===c.numSatisfiedThresholds&&a.isIntersecting===c.entry.isIntersecting||(c.numSatisfiedThresholds=s,c.entry=a,this.scheduler.scheduleWork((function(){r.callback([a])})))},e.prototype.unobserve=function(e){this.scheduler.unwatch(e.__spanielId),delete this.records[e.__spanielId]},e.prototype.disconnect=function(){this.scheduler.unwatchAll(),this.records={}},e.prototype.takeRecords=function(){return[]},e.prototype.generateEntryEvent=function(e,t,n){for(var i=0,r=function(e,t,n,i){if("none"===n.style.display)return{time:e.dateNow,highResTime:e.highResTime,boundingClientRect:CS(),intersectionRatio:0,intersectionRect:CS(),isIntersecting:!1,rootBounds:CS(),target:n};var r=t.bottom,o=t.right,s=e.left+i.left,a=e.top+i.top,c={left:s,top:a,bottom:i.bottom,right:i.right,width:e.width-(i.right+i.left),height:e.height-(i.bottom+i.top),y:a,x:s},l=Math.max(c.left,t.left),u=Math.max(c.top,t.top),d=Math.min(c.left+c.width,t.right)-l,h=Math.min(c.top+c.height,t.bottom)-u,p=d>=0?l:0,f=u>=0?u:0,m={left:p,top:f,x:p,y:f,width:d,height:h,right:o,bottom:r};return function(e){var t=e.unixTime,n=e.highResTime,i=e.rootBounds,r=e.boundingClientRect,o=e.intersectionRect,s=e.target,a=r.height*r.width,c=a>0?o.width*o.height/a:0;return{time:t,highResTime:n,rootBounds:i,boundingClientRect:r,intersectionRect:o,target:s,intersectionRatio:c,isIntersecting:WT({intersectionRect:o})}}({unixTime:e.dateNow,highResTime:e.highResTime,rootBounds:c,target:n,boundingClientRect:kS(t),intersectionRect:m})}(e,t,n,this.rootMarginObj),o=0;o<this.thresholds.length;o++){var s=this.thresholds[o];r.intersectionRatio>=s&&i++}return{numSatisfiedThresholds:i,entry:r}},e}();function CS(){return{bottom:0,height:0,left:0,right:0,top:0,width:0,x:0,y:0}}var AS={x:0,y:0,width:0,height:0,bottom:0,left:0,top:0,right:0};!function(){function e(e,t){var n=this;this.paused=!1,this.queuedEntries=[],this.recordStore={},this.callback=e;var i=t||{threshold:[]},r=i.root,o=i.rootMargin,s=i.threshold,a=i.ALLOW_CACHED_SCHEDULER,c=i.BACKGROUND_TAB_FIX,l=i.USE_NATIVE_IO,u="string"!=typeof(o=o||"0px")?function(e){return e.top+"px "+e.right+"px "+e.bottom+"px "+e.left+"px"}(o):o;this.thresholds=s.sort((function(e){return e.ratio}));var d={root:r,rootMargin:u,threshold:this.thresholds.map((function(e){return e.ratio})),ALLOW_CACHED_SCHEDULER:a};this.usingNativeIo=!!l&&!!iS.IntersectionObserver;var h=this.usingNativeIo?iS.IntersectionObserver:IS;this.observer=new h((function(e){return n.internalCallback(e)}),d),this.onTabHidden=this._onTabHidden.bind(this),this.onWindowClosed=this._onWindowClosed.bind(this),this.onTabShown=this._onTabShown.bind(this),iS.hasDOM&&(_S("beforeunload",this.onWindowClosed),_S("hide",this.onTabHidden),_S("show",this.onTabShown),c&&(this.paused="visible"!==iS.document.visibilityState))}e.prototype._onWindowClosed=function(){this.onTabHidden()},e.prototype.setAllHidden=function(){for(var e=Object.keys(this.recordStore),t=0;t<e.length;t++)this.handleRecordExiting(this.recordStore[e[t]]);this.flushQueuedEntries()},e.prototype._onTabHidden=function(){this.paused=!0,this.setAllHidden()},e.prototype.generateObserverTimestamp=function(){return this.usingNativeIo?Math.floor(performance.now()):Date.now()},e.prototype._onTabShown=function(){this.paused=!1;for(var e=Object.keys(this.recordStore),t=performance.now(),n=this.generateObserverTimestamp(),i=0;i<e.length;i++){var r=this.recordStore[e[i]].lastSeenEntry;if(r){var o=r.intersectionRatio,s=r.boundingClientRect,a=r.rootBounds,c=r.intersectionRect,l=r.isIntersecting,u=r.target;this.handleObserverEntry({intersectionRatio:o,boundingClientRect:s,time:n,highResTime:t,isIntersecting:l,rootBounds:a,intersectionRect:c,target:u})}}},e.prototype.internalCallback=function(e){e.forEach(this.handleObserverEntry.bind(this))},e.prototype.flushQueuedEntries=function(){this.queuedEntries.length>0&&(this.callback(this.queuedEntries),this.queuedEntries=[])},e.prototype.generateSpanielEntry=function(e,t){var n=e.intersectionRatio,i=e.rootBounds,r=e.boundingClientRect,o=e.intersectionRect,s=e.isIntersecting,a=e.time,c=e.target,l=this.recordStore[c.__spanielId],u=this.usingNativeIo?Math.floor((iS.performance.timeOrigin||iS.performance.timing.navigationStart)+a):a,d=this.usingNativeIo?a:e.highResTime;if(!d)throw new Error("Missing intersection entry timestamp");return{intersectionRatio:n,isIntersecting:s,unixTime:u,time:u,highResTime:d,rootBounds:i,boundingClientRect:r,intersectionRect:o,target:c,duration:0,visibleTime:s?u:-1,entering:!1,payload:l.payload,label:t.threshold.label,threshold:t.threshold}},e.prototype.handleRecordExiting=function(e){var t=this,n=Date.now(),i=performance.now();e.thresholdStates.forEach((function(r){var o=e.lastSeenEntry&&e.lastSeenEntry.boundingClientRect;t.handleThresholdExiting({intersectionRatio:-1,isIntersecting:!1,unixTime:n,time:n,highResTime:i,payload:e.payload,label:r.threshold.label,threshold:r.threshold,entering:!1,rootBounds:AS,boundingClientRect:o||AS,intersectionRect:AS,visibleTime:r.lastVisible.unixTime,duration:YT(i,r.lastVisible.highResTime),target:e.target},r),r.lastSatisfied=!1,r.visible=!1,r.lastEntry=null}))},e.prototype.handleThresholdExiting=function(e,t){var n=e.highResTime,i=!!t.threshold.time;t.lastSatisfied&&(!i||i&&t.visible)&&(e.duration=YT(n,t.lastVisible.highResTime),e.visibleTime=t.lastVisible.unixTime,e.entering=!1,t.visible=!1,this.queuedEntries.push(e)),clearTimeout(t.timeoutId)},e.prototype.handleObserverEntry=function(e){var t=this,n=e.target,i=this.recordStore[n.__spanielId];i&&(i.lastSeenEntry=e,this.paused||(i.thresholdStates.forEach((function(n){var i=!!n.threshold.time,r=t.generateSpanielEntry(e,n),o=e.intersectionRatio>=n.threshold.ratio,s="boolean"==typeof r.isIntersecting?r.isIntersecting:WT(e),a=o&&s;if(a!=n.lastSatisfied){if(a)if(r.entering=!0,n.lastVisible={highResTime:r.highResTime,unixTime:r.unixTime},i){var c=Number(setTimeout((function(){n.visible=!0,r.duration=YT(performance.now(),n.lastVisible.highResTime),r.visibleTime=n.lastVisible.unixTime,t.callback([r])}),n.threshold.time));n.timeoutId=c}else n.visible=!0,r.duration=Date.now()-n.lastVisible.unixTime,t.queuedEntries.push(r);else t.handleThresholdExiting(r,n);n.lastEntry=e,n.lastSatisfied=a}})),this.flushQueuedEntries()))},e.prototype.disconnect=function(){this.setAllHidden(),this.observer.disconnect(),this.recordStore={}},e.prototype.destroy=function(){this.disconnect(),iS.hasDOM&&(wS("beforeunload",this.onWindowClosed),wS("hide",this.onTabHidden),wS("show",this.onTabShown))},e.prototype.unobserve=function(e){var t=this,n=this.recordStore[e.__spanielId];n&&(delete this.recordStore[e.__spanielId],this.observer.unobserve(e),SS((function(){t.handleRecordExiting(n),t.flushQueuedEntries()})))},e.prototype.observe=function(e,t){var n=e,i=n.__spanielId=n.__spanielId||hS();return this.recordStore[i]={target:n,payload:t,lastSeenEntry:null,thresholdStates:this.thresholds.map((function(e){return{lastSatisfied:!1,lastEntry:null,threshold:e,visible:!1,lastVisible:{unixTime:0,highResTime:-1}}}))},this.observer.observe(n),i}}();iS.IntersectionObserver&&iS.IntersectionObserver;".".concat("show-more-less","__list"),".".concat("show-more-less","__more-button"),".".concat("show-more-less","__less-button"),"".concat("show-more-less","__list--hide-after"),"".concat("show-more-less","__button--hide");".".concat("accordion-item__trigger");function OS(e){return t=>t.type&&t.type.toLowerCase()===e.toLowerCase()}OS("action"),OS("openpage"),OS("openlink");const RS="See https://go/pem/degradation-tracking-user-guide for instrumentation instructions";var LS;!function(e){e.ProductName="productName",e.AdditionalDegradedResponseCodes="additionalDegradedResponseCodes",e.NonDegradedResponseCodes="nonDegradedResponseCodes",e.DegradationKeyOverrides="degradationKeyOverrides",e.ClientSensorGroupName="clientSensorGroupName",e.EnablePerformanceMeasurement="enablePerformanceMeasurement",e.CustomTrackingId="customTrackingId",e.DisableAvailabilityCalculation="disableAvailabilityCalculation",e.EnableSessionRecording="enableSessionRecording"}(LS||(LS={}));const NS=new Set(Object.values(LS));class PS extends Error{constructor(e){super(e),Object.setPrototypeOf(this,PS.prototype)}}function xS(e){return 0===e.length||!e.trim()}function MS(e){if("string"!=typeof e)throw new PS("Keys must be strings. ".concat(RS,"."));if(xS(e))throw new PS("Keys should not be blank. ".concat(RS,"."));if(/[^a-z0-9-]/.test(e))throw new PS("'".concat(e,"' can only contain lowercase alphanumeric characters and dashes (-). ").concat(RS,"."));return e}class DS{constructor(e,t,n){var i,r,o;if(this._shouldEnablePerformanceMeasurement=!1,this._shouldDisableAvailabilityCalculation=!1,this._shouldRecordSession=!1,this._featureKey=MS(e),this._defaultDegradationKey=MS(t),!n)return this._additionalDegradedResponseCodes=[],this._nonDegradedResponseCodes=[],void(this._degradationKeyOverrides=[]);if("object"!=typeof n)throw new PS("DegradationTrackingMetadata options should be an object. ".concat(RS,"."));const s=n.productName;s&&(this._productName=function(e){if("string"!=typeof e)throw new PS("The product name must be a string. ".concat(RS,"."));if(xS(e))throw new PS("No product name was specified. Please configure a defaultProductName or specify it per instrumented API "+"call. ".concat(RS,"."));if(/[^a-zA-Z0-9-_ \\/]/.test(e))throw new PS("Product name '".concat(e,"' can only contain alphanumeric, underscores (_), spaces ( ), dashes (-) and forward slashes (/). ").concat(RS,"."));return e}(s));const a=n.additionalDegradedResponseCodes,c=n.nonDegradedResponseCodes;!function(e,t){const n=(e,t)=>{if("number"!=typeof(n=e)||!isFinite(n)||Math.floor(n)!==n||e<=0||e>999)throw new PS("Please only specify positive integer response codes between 1 and 999 for the ".concat(t," option. ")+"".concat(e," was specified. ").concat(RS,"."));var n;if(429===e||999===e)throw new PS("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(t," options."));if(t===LS.NonDegradedResponseCodes&&e>=400&&e<500)throw new PS("For server responses that have a status code, PEM does not consider 4xx as degraded. ".concat(e," is not ")+"considered a degradation unless you explicitly add it to the ".concat(LS.AdditionalDegradedResponseCodes," option")+". Please remove ".concat(e," from the ").concat(LS.NonDegradedResponseCodes," option. ")+"".concat(RS,"."))};if(void 0!==e&&!Array.isArray(e))throw new PS("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(LS.NonDegradedResponseCodes," option. ")+"".concat(RS,"."));if(void 0!==t&&!Array.isArray(t))throw new PS("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(LS.AdditionalDegradedResponseCodes," option. ").concat(RS,"."));null==e||e.forEach(e=>n(e,LS.NonDegradedResponseCodes)),null==t||t.forEach(e=>n(e,LS.AdditionalDegradedResponseCodes));const i=new Set(t),r=new Set(e);if([...i].some(e=>r.has(e)))throw new PS("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(RS,"."))}(c,a),this._nonDegradedResponseCodes=c||[],this._additionalDegradedResponseCodes=a||[],this._degradationKeyOverrides=n.degradationKeyOverrides||[],this._clientSensorGroupName=n.clientSensorGroupName,this._shouldEnablePerformanceMeasurement=null!==(i=n.enablePerformanceMeasurement)&&void 0!==i&&i,this._customTrackingId=n.customTrackingId,this._shouldDisableAvailabilityCalculation=null!==(r=n.disableAvailabilityCalculation)&&void 0!==r&&r,this._shouldRecordSession=null!==(o=n.enableSessionRecording)&&void 0!==o&&o,function(e){Object.keys(e).forEach(e=>{if(!NS.has(e))throw new PS("An unsupported degradation tracking option '".concat(e,"' was provided. Please fix or remove it. ")+"".concat(RS))})}(n)}static isDegradationTrackingMetadata(e){return null!=e&&Object.getOwnPropertyNames(DS.prototype).every(t=>Object.hasOwnProperty.call(Object.getPrototypeOf(e),t))}get featureKey(){return this._featureKey}get defaultDegradationKey(){return this._defaultDegradationKey}get degradationKey(){return this._defaultDegradationKey}get productName(){return this._productName}get additionalDegradedResponseCodes(){return this._additionalDegradedResponseCodes}get nonDegradedResponseCodes(){return this._nonDegradedResponseCodes}get degradationKeyOverrides(){return this._degradationKeyOverrides}get clientSensorGroupName(){return this._clientSensorGroupName}get shouldEnablePerformanceMeasurement(){return this._shouldEnablePerformanceMeasurement}get customTrackingId(){return this._customTrackingId}get shouldDisableAvailabilityCalculation(){return this._shouldDisableAvailabilityCalculation}get shouldRecordSession(){return this._shouldRecordSession}}var US={exports:{}};!function(e,t){!function(e){function t(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function n(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function i(e,t,i){return t&&n(e.prototype,t),i&&n(e,i),e}function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function o(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function s(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&&c(e,t)}function a(e){return(a=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function c(e,t){return(c=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function l(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}function u(e,t,n){return(u=l()?Reflect.construct:function(e,t,n){var i=[null];i.push.apply(i,t);var r=new(Function.bind.apply(e,i));return n&&c(r,n.prototype),r}).apply(null,arguments)}function d(e){var t="function"==typeof Map?new Map:void 0;return(d=function(e){if(null===e||!function(e){return-1!==Function.toString.call(e).indexOf("[native code]")}(e))return e;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,n)}function n(){return u(e,arguments,a(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),c(n,e)})(e)}function h(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function p(e,t){return!t||"object"!=typeof t&&"function"!=typeof t?h(e):t}function f(e){return function(){var t,n=a(e);if(l()){var i=a(this).constructor;t=Reflect.construct(n,arguments,i)}else t=n.apply(this,arguments);return p(this,t)}}function m(e){"complete"===document.readyState?e():window.addEventListener("load",(function(){e()}))}function v(e,t){var n=document.createElement("script");n.src=e,t&&(n.onload=t),document.head.appendChild(n)}function g(){var e,t,n=new Promise((function(n,i){e=n,t=i}));return n.resolve=e,n.reject=t,n}(function(){if("function"==typeof window.CustomEvent)return!1;window.CustomEvent=function(e,t){t=t||{bubbles:!1,cancelable:!1,detail:null};var n=document.createEvent("CustomEvent");return n.initCustomEvent(e,t.bubbles,t.cancelable,t.detail),n}})(),function(){if("function"==typeof window.EventTarget)try{return!new e}catch(e){}var e=function(){this.listeners={}};e.prototype.listeners=null,e.prototype.addEventListener=function(e,t){e in this.listeners||(this.listeners[e]=[]),this.listeners[e].push(t)},e.prototype.removeEventListener=function(e,t){if(e in this.listeners)for(var n=this.listeners[e],i=0,r=n.length;i<r;i++)if(n[i]===t)return void n.splice(i,1)},e.prototype.dispatchEvent=function(e){if(!(e.type in this.listeners))return!0;for(var t=this.listeners[e.type].slice(),n=0,i=t.length;n<i;n++)t[n].call(this,e);return!e.defaultPrevented},window.EventTarget=e}();var y="990339570472-k6nqn1tpmitg8pui82bfaun3jrpmiuhs.apps.googleusercontent.com",b={GOOGLE_ERROR:"googleError",GOOGLE_USER_FETCHED:"googleUserFetched",INITIALIZED:"initialized",PROMPT_MOMENT:"promptMomentNotification",TOKEN_FETCHED:"tokenFetched"},E={INITIALIZATION:"initialization",AUTHENTICATION:"authentication"},_={SIGN_IN:"signin",SIGN_UP:"signup",USE:"use"},w={DISPLAY:"display",SKIPPED:"skipped",DISMISSED:"dismissed"},T={NOT_DISPLAYED:{BROWSER_NOT_SUPPORTED:"browser_not_supported",INVALID_CLIENT:"invalid_client",MISSING_CLIENT_ID:"missing_client_id",OPT_OUT_OR_NO_SESSION:"opt_out_or_no_session",SECURE_HTTP_REQUIRED:"secure_http_required",SUPPRESSED_BY_USER:"suppressed_by_user",UNREGISTERED_ORIGIN:"unregistered_origin",UNKNOWN_REASON:"unknown_reason"},SKIPPED:{AUTO_CANCEL:"auto_cancel",USER_CANCEL:"user_cancel",TAP_OUTSIDE:"tap_outside",ISSUING_FAILED:"issuing_failed"},DISMISSED:{CREDENTIAL_RETURNED:"credential_returned",CANCEL_CALLED:"cancel_called",FLOW_RESTARTED:"flow_restarted"}},S={DISMISSED:"DISMISSED",INITIALIZED:"INITIALIZED",SNAPPLE_USER_FETCHED:"SNAPPLE_USER_FETCHED"},k={signin:{GOT:"signin",GSI_BUTTON:"signin_with"},signup:{GOT:"signup",GSI_BUTTON:"signup_with"},use:{GOT:"use",GSI_BUTTON:"continue_with"}},I=b.GOOGLE_ERROR,C=b.GOOGLE_USER_FETCHED,A=b.INITIALIZED,O=E.INITIALIZATION,R=E.AUTHENTICATION,L=function(e){s(r,e);var n=f(r);function r(e){var i,o=e.libSrcPath,s=e.el,a=e.clientId,c=void 0===a?y:a;if(t(this,r),i=n.call(this),!s)throw TypeError("DOM element for Sign In button is required");if(i.libSrcPath=o,i.el=s,i.clientId=c,window.gapi)i._initializeGoogleAuth();else{if(!o)throw TypeError("Google Sign In lib not already loaded on the page. libSrcPath is required to load the lib.");m((function(){v(o,i._initializeGoogleAuth.bind(h(i)))}))}return i}return i(r,[{key:"_initializeGoogleAuth",value:function(){var e=this;return gapi.auth2.init({client_id:this.clientId}).then((function(t){e.auth2=t,e._attachSignIn();var n=new CustomEvent(A);e.dispatchEvent(n)})).catch((function(t){var n={type:O,message:t.error},i=new CustomEvent(I,{detail:n});e.dispatchEvent(i)}))}},{key:"_attachSignIn",value:function(){var e=this;this.auth2.attachClickHandler(this.el,{},(function(t){var n=new CustomEvent(C,{detail:e._getGoogleUserInformation(t)});e.dispatchEvent(n)}),(function(t){var n={type:R,message:t.error},i=new CustomEvent(I,{detail:n});e.dispatchEvent(i)}))}},{key:"_getGoogleUserInformation",value:function(e){var t=e.getBasicProfile(),n=e.getAuthResponse().id_token;return{email:t.getEmail(),familyName:t.getFamilyName(),givenName:t.getGivenName(),id:t.getId(),idToken:n,imageUrl:t.getImageUrl()}}}]),r}(d(EventTarget)),N=b.GOOGLE_USER_FETCHED,P=b.PROMPT_MOMENT,x=function(e){s(r,e);var n=f(r);function r(e){var i,o=e.autoSelect,s=void 0!==o&&o,a=e.libSrcPath,c=e.containerId,l=e.context,u=e.clientId,d=void 0===u?y:u,p=e.cancelOnTapOutside,f=void 0===p||p;if(t(this,r),i=n.call(this),!l)throw TypeError("context param is required to determine the message to show in Google One Tap");if(i.autoSelect=s,i.libSrcPath=a,i.containerId=c,i.cancelOnTapOutside=f,i.clientId=d,i.context=l,window.google&&window.google.accounts&&window.google.accounts.id)i._onGoogleApiLoad();else{if(!a)throw TypeError("Google One Tap lib is not already loaded on the page. libSrcPath is required to load the library");m((function(){v(a,i._onGoogleApiLoad.bind(h(i)))}))}return i}return i(r,[{key:"_onGoogleApiLoad",value:function(){var e=this;return google.accounts.id.initialize({auto_select:this.autoSelect,client_id:this.clientId,prompt_parent_id:this.containerId,callback:this._handleCredentialResponse.bind(this),cancel_on_tap_outside:this.cancelOnTapOutside,context:this.context}),Promise.resolve().then((function(){return e.promptOneTap()}))}},{key:"_handleCredentialResponse",value:function(e){var t=e.credential,n=this.context===_.SIGN_UP?this._getBasicProfile(t):{idToken:t};if(n){n.selectedBy=e.select_by;var i=new CustomEvent(N,{detail:n});this.dispatchEvent(i)}}},{key:"_getBasicProfile",value:function(e){try{var t=new gapi.auth2.BasicProfile({id_token:e});return{email:t.getEmail(),familyName:t.getFamilyName(),givenName:t.getGivenName(),id:t.getId(),idToken:e,imageUrl:t.getImageUrl()}}catch(e){return this._dispatchSkippedEvent(e.message),null}}},{key:"_dispatchSkippedEvent",value:function(e){var t={message:e,reason:T.SKIPPED.ISSUING_FAILED,type:w.SKIPPED},n=new CustomEvent(P,{detail:t});this.dispatchEvent(n)}},{key:"promptOneTap",value:function(){var e=this;google.accounts.id.prompt((function(t){var n={type:t.getMomentType(),reason:t.getNotDisplayedReason()||t.getSkippedReason()||t.getDismissedReason()},i=new CustomEvent(P,{detail:n});e.dispatchEvent(i),e.checkIfDesktopAndApplyClass()}))}},{key:"hideOneTap",value:function(){google.accounts.id.cancel()}},{key:"checkIfDesktopAndApplyClass",value:function(){if(!/.*(iPad|iPod|iPhone|Android|BlackBerry).*/.test(navigator.userAgent)){var e=document.getElementById("credential_picker_container");e&&e.classList.add("credential_picker_container--desktop")}}}]),r}(d(EventTarget)),M={exports:{}};function D(e){this.message=e}D.prototype=new Error,D.prototype.name="InvalidCharacterError";var U="undefined"!=typeof window&&window.atob&&window.atob.bind(window)||function(e){var t=String(e).replace(/=+$/,"");if(t.length%4==1)throw new D("'atob' failed: The string to be decoded is not correctly encoded.");for(var n,i,r=0,o=0,s="";i=t.charAt(o++);~i&&(n=r%4?64*n+i:i,r++%4)?s+=String.fromCharCode(255&n>>(-2*r&6)):0)i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(i);return s},B=function(e){var t=e.replace(/-/g,"+").replace(/_/g,"/");switch(t.length%4){case 0:break;case 2:t+="==";break;case 3:t+="=";break;default:throw"Illegal base64url string!"}try{return function(e){return decodeURIComponent(U(e).replace(/(.)/g,(function(e,t){var n=t.charCodeAt(0).toString(16).toUpperCase();return n.length<2&&(n="0"+n),"%"+n})))}(t)}catch(e){return U(t)}};function q(e){this.message=e}q.prototype=new Error,q.prototype.name="InvalidTokenError",M.exports=function(e,t){if("string"!=typeof e)throw new q("Invalid token specified");var n=!0===(t=t||{}).header?0:1;try{return JSON.parse(B(e.split(".")[n]))}catch(e){throw new q("Invalid token specified: "+e.message)}},M.exports.InvalidTokenError=q;var F=M.exports,j=b.GOOGLE_USER_FETCHED,H=b.PROMPT_MOMENT,z=function(e){s(a,e);var n=f(a);function a(e){var i,r=e.autoSelect,o=void 0!==r&&r,s=e.buttonParentEl,c=e.cancelOnTapOutside,l=void 0===c||c,u=e.clientId,d=void 0===u?y:u,p=e.context,f=void 0===p?"signin":p,b=e.gsiButtonConfig,E=void 0===b?{}:b,_=e.libSrcPath,w=e.hasContentAbove,T=void 0!==w&&w,S=e.promptParentId,k=e.showOneTap,I=void 0===k||k;if(t(this,a),(i=n.call(this)).autoSelect=o,i.buttonParentEl=s,i.cancelOnTapOutside=l,i.clientId=d,i.context=f,i.gsiButtonConfig=E,i.isLibraryLoaded=g(),i.libSrcPath=_,i.hasContentAbove=T,i.promptParentId=S,i.showOneTap=I,window.google&&window.google.accounts&&window.google.accounts.id)i._onGoogleApiLoad();else{if(!_)throw TypeError("GSI lib is not already loaded on the page. libSrcPath is required to load the library");m((function(){v(_,i._onGoogleApiLoad.bind(h(i)))}))}return i}return i(a,[{key:"_onGoogleApiLoad",value:function(){var e=this;return this.isLibraryLoaded.resolve(),window.google.accounts.id.initialize({auto_select:this.autoSelect,client_id:this.clientId,prompt_parent_id:this.promptParentId,callback:this._handleCredentialResponse.bind(this),cancel_on_tap_outside:this.cancelOnTapOutside,context:k[this.context].GOT}),Promise.resolve().then((function(){return e.showGsiUI()}))}},{key:"showGsiUI",value:function(){this.buttonParentEl&&this.renderGSIButton(this.buttonParentEl,this.gsiButtonConfig),this.showOneTap&&this.promptOneTap()}},{key:"renderGSIButton",value:function(e,t){var n=this,i=t.locale,r=void 0===i?"en_US":i,o=t.logo_alignment,s=void 0===o?"center":o,a=t.shape,c=void 0===a?"pill":a,l=t.size,u=void 0===l?"large":l,d=t.text,h=t.theme,p=t.type,f=t.width,m=void 0===f?"400px":f;return this.isLibraryLoaded.then((function(){var t=d||k[n.context].GSI_BUTTON;window.google.accounts.id.renderButton(e,{locale:r,logo_alignment:s,shape:c,size:u,text:t,theme:h,type:p,width:m})}))}},{key:"promptOneTap",value:function(){var e=this;return this.isLibraryLoaded.then((function(){window.google.accounts.id.prompt((function(t){var n={type:t.getMomentType(),reason:t.getNotDisplayedReason()||t.getSkippedReason()||t.getDismissedReason()},i=new CustomEvent(H,{detail:n});e.dispatchEvent(i),e.hasContentAbove||e.checkIfDesktopAndApplyClass()}))}))}},{key:"_handleCredentialResponse",value:function(e){var t=e.credential,n=e.select_by,i=F(t),s=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?o(Object(n),!0).forEach((function(t){r(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):o(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},this._getBasicProfile(i),{idToken:t,selectedBy:n});if(s){var a=new CustomEvent(j,{detail:s});this.dispatchEvent(a)}}},{key:"_getBasicProfile",value:function(e){return{email:e.email,familyName:e.family_name,givenName:e.given_name,id:e.sub,imageUrl:e.picture}}},{key:"hideOneTap",value:function(){window.google.accounts.id.cancel()}},{key:"checkIfDesktopAndApplyClass",value:function(){if(!/.*(iPad|iPod|iPhone|Android|BlackBerry).*/.test(navigator.userAgent)){var e=document.getElementById("credential_picker_container");e&&e.classList.add("credential_picker_container--desktop")}}}]),a}(d(EventTarget)),G={PROD:"3fa91358-6f74-4525-b5df-da149652be36",LOCAL:"e5078fe9-f96f-4177-a256-a13b9bda6b1c"},K={MICROSOFT_ERROR:"microsoftError",USER_FETCHED:"microsoftUserFetched",PROMPT_MOMENT:"promptMomentNotification"},W={signin:{MS_OT:"signin",MS_BUTTON:"signin_with"},signup:{MS_OT:"signup",MS_BUTTON:"signup_with"},use:{MS_OT:"use",MS_BUTTON:"continue_with"}},V=K.MICROSOFT_ERROR,Y=K.PROMPT_MOMENT,Q=K.USER_FETCHED,X=function(e){s(r,e);var n=f(r);function r(e){var i,o,s,a=e.buttonParentEl,c=e.cancelOnTapOutside,l=void 0===c||c,u=e.clientId,d=void 0===u?G.PROD:u,p=e.context,f=void 0===p?"use":p,y=e.libSrcPath,b=e.locale,E=e.malButtonConfig,_=void 0===E?{}:E,w=e.oneTapPosition,T=void 0===w?"right":w,S=e.showOneTap,k=void 0!==S&&S;if(t(this,r),(s=n.call(this)).buttonParentEl=a,s.cancelOnTapOutside=l,s.clientId=d,s.context=f,s.libSrcPath=y,s.locale=(b||"en-US").replace("_","-"),s.malButtonConfig=_,s.oneTapPosition=T,s.showOneTap=k,s.isLibraryLoaded=g(),null===(i=window.ms)||void 0===i||null===(o=i.auth)||void 0===o?void 0:o.initialize)s._onMicrosoftAuthLibLoad();else{if(!y)throw TypeError("MAL lib is not already loaded on the page. libSrcPath is required to load the library");m((function(){v(y,s._onMicrosoftAuthLibLoad.bind(h(s)))}))}return s}return i(r,[{key:"_onMicrosoftAuthLibLoad",value:function(){var e=this;this.isLibraryLoaded.resolve();var t=window.ms.auth.initialize({auto_prompt:this.showOneTap,client_id:this.clientId,callback:this._handleCredentialResponse.bind(this),cancel_on_tap_outside:this.cancelOnTapOutside,context:this.context,locale:this.locale});if("success"===t.result)return Promise.resolve().then((function(){return e.showMALUI()}));console.error("MAL failed to init",t.result)}},{key:"showMALUI",value:function(){this.buttonParentEl&&this.renderMALButton(this.buttonParentEl,this.malButtonConfig),this.showOneTap&&this.promptMSOneTap()}},{key:"renderMALButton",value:function(e,t){var n=this,i=t.logo_alignment,r=void 0===i?"center":i,o=t.height,s=void 0===o?42:o,a=t.shape,c=void 0===a?"pill":a,l=t.size,u=void 0===l?"large":l,d=t.text,h=t.theme,p=void 0===h?"light":h,f=t.type,m=t.width,v=void 0===m?600:m;return this.isLibraryLoaded.then((function(){var t=d||W[n.context].MS_BUTTON;window.ms.auth.renderSignInButton(e,{logo_alignment:r,height:s,shape:c,size:u,text:t,theme:p,type:f,width:v})}))}},{key:"promptMSOneTap",value:function(){var e=this;return this.isLibraryLoaded.then((function(){window.ms.auth.prompt(e.oneTapPosition,(function(t){var n={type:t.type,reason:t.reason},i=new CustomEvent(Y,{detail:n});e.dispatchEvent(i)}))}))}},{key:"_handleCredentialResponse",value:function(e,t){if(e){var n=e.email,i=e.givenName,r=e.surname,o=e.id,s=e.idToken,a=e.photoUrl,c=new CustomEvent(Q,{detail:{email:n,familyName:r,givenName:i,id:o,idToken:s,imageUrl:a}});this.dispatchEvent(c)}else if(t){var l=new CustomEvent(V,{detail:t});this.dispatchEvent(l)}}},{key:"hideOneTap",value:function(){window.ms.auth.cancel()}}]),r}(d(EventTarget)),J=S.DISMISSED,Z=S.INITIALIZED,$=S.SNAPPLE_USER_FETCHED,ee=function(e){s(r,e);var n=f(r);function r(e){var i,o=e.libSrcPath,s=e.snappleCTA,a=e.clientId,c=void 0===a?"com.linkedin.LinkedIn.service":a,l=e.redirectURI;if(t(this,r),i=n.call(this),!s)throw TypeError("snappleCTA is required. Please pass the correct CTA element to this Snapple Constructor");if(i.libSrcPath=o,i.clientId=c,i.redirectURI=i._getRedirectURL(l),i.snappleCTA=s,window.AppleID&&window.AppleID.auth&&window.AppleID.auth.init)i._onSnappleLibLoad();else{if(!o)throw TypeError("Snapple lib is not already loaded on the page. libSrcPath is required to load the library");m((function(){v(o,i._onSnappleLibLoad.bind(h(i)))}))}return i}return i(r,[{key:"_onSnappleLibLoad",value:function(){window.AppleID.auth.init({clientId:this.clientId,scope:"name email",redirectURI:this.redirectURI,usePopup:!0});var e=new CustomEvent(Z);return this.dispatchEvent(e),Promise.resolve(this._attachEvents())}},{key:"_attachEvents",value:function(){var e=this;this.snappleCTA.addEventListener("click",(function(){return window.AppleID.auth.signIn().then((function(t){var n=new CustomEvent($,{detail:t});e.dispatchEvent(n)})).catch((function(t){var n=new CustomEvent(J,{detail:{type:J,message:t}});e.dispatchEvent(n)}))}))}},{key:"_getRedirectURL",value:function(e){var t=window.location.host.indexOf("linkedin.com")>-1;return this.redirectURI?e:t?"https://www.linkedin.com/redirect":"https://www.linkedin-ei.com/redirect"}}]),r}(d(EventTarget)),te={CLIENT_ID:y,EVENTS:b,GOOGLE_ACCOUNT_URL:"https://accounts.google.com",GSI_ERROR_TYPES:E,GSI_ERROR_MESSAGES:{INIT_FAILED:"idpiframe_initialization_failed",POPUP_CLOSED_BY_USER:"popup_closed_by_user",ACCESS_DENIED:"access_denied",IMMEDIATE_FAILED:"immediate_failed"},GOT_CONTEXTS:_,GOT_PROMPT_MOMENT_REASONS:T,GOT_PROMPT_MOMENT_TYPES:w},ne={CLIENT_IDS:G,CONTEXTS:W,EVENTS:K,PROMPT_MOMENT_TYPES:{DISPLAY:"display",SKIPPED:"skipped",DISMISSED:"dismissed"},PROMPT_MOMENT_REASONS:{DISPLAY:{ANOTHER_PROMPT_RUNNING:"another_prompt_running",BROWSER_NOT_SUPPORTED:"browser_not_supported",IN_COOLDOWN_PERIOD:"in_cooldown_period",NON_MSA_PROFILE:"non_msa_profile",UNKNOWN:"unknown"},SKIPPED:{TAP_OUTSIDE:"tap_outside",UNKNOWN:"unknown",USER_CANCELLED:"user_canceled"},DISMISSED:{CANCEL_CALLED:"cancel_called",CREDENTIAL_RETURNED:"credential_returned",CREDENTIAL_OBTAINED_FAILED:"credential_obtained_failed",FLOW_RESTARTED:"flow_restarted"}}};e.GoogleGsi=z,e.GoogleOneTap=x,e.GoogleSignIn=L,e.GoogleSignInConstants=te,e.MicrosoftAuth=X,e.MicrosoftSignInConstants=ne,e.SnappleAuth=ee,e.SnappleEvents=S,Object.defineProperty(e,"__esModule",{value:!0})}(t)}(0,US.exports);const{EVENTS:BS,GOT_CONTEXTS:qS,GOT_PROMPT_MOMENT_REASONS:FS,GOT_PROMPT_MOMENT_TYPES:jS}=US.exports.GoogleSignInConstants,{GOOGLE_USER_FETCHED:HS,PROMPT_MOMENT:zS}=BS,{SIGN_IN:GS}=qS;FS.NOT_DISPLAYED.BROWSER_NOT_SUPPORTED,FS.NOT_DISPLAYED.OPT_OUT_OR_NO_SESSION,FS.NOT_DISPLAYED.SUPPRESSED_BY_USER,FS.SKIPPED.AUTO_CANCEL,FS.SKIPPED.TAP_OUTSIDE,FS.SKIPPED.USER_CANCEL,Object.freeze({ONE_TAP:"one_tap",ONE_TAP_AUTO_LOGIN:"one-tap-auto-login",BUTTON:"button"});const{EVENTS:KS,PROMPT_MOMENT_REASONS:WS,PROMPT_MOMENT_TYPES:VS}=US.exports.MicrosoftSignInConstants,{USER_FETCHED:YS,PROMPT_MOMENT:QS}=KS;WS.DISPLAY.ANOTHER_PROMPT_RUNNING,WS.DISPLAY.BROWSER_NOT_SUPPORTED,WS.DISPLAY.IN_COOLDOWN_PERIOD,WS.DISPLAY.NON_MSA_PROFILE,WS.SKIPPED.TAP_OUTSIDE,WS.SKIPPED.USER_CANCELLED,Object.freeze({ONE_TAP:"one_tap",BUTTON:"button"});".".concat("filter-values-container__filter-value"," input"),".".concat("filter-values-container__filter-value"," input[type=radio]:checked");class XS{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:()=>{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:()=>{},{enablePageViewTracking:i=!1,shouldHideModal:r=(()=>!1),triggerByOutletEl:o=!0,focusElement:s,pageKey:a}=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};if(!e)throw new Error("No element passed into to dialog modal");this.el=e,this.modalEl=this.el.querySelector(".".concat("modal")),this.modal=new uT(this.modalEl,{enablePageViewTracking:i,shouldHideModal:r,triggerByOutletEl:o,focusElement:s,pageKey:a}),this._onPrimaryActionClick=t,this.primaryActionBtn=this.el.querySelector(".primary-action"),this.secondaryActionBtn=this.el.querySelector(".secondary-action"),n&&(this._onSecondaryActionClick=n),this.el.querySelector(".dialog-actions").addEventListener("click",this._actionHandler.bind(this))}_actionHandler(e){const t=e.target;if(this.primaryActionBtn&&this.primaryActionBtn.contains(t)){if(this.primaryActionBtn.disabled)return;this._onPrimaryActionClick&&this._onPrimaryActionClick(e)}else this.secondaryActionBtn&&this.secondaryActionBtn.contains(t)&&this._onSecondaryActionClick&&this._onSecondaryActionClick(e);this.modal.close()}}function JS(e,t){kw(e,t,{ADD_TAGS:["link"]})}class ZS{constructor(){let{bottomSheetEl:e,pushState:t=!0,enablePageViewTracking:n,pageKey:i,shouldHideModal:r}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(this.bottomSheetEl=e||document.querySelector("#bottom-sheet"),!this.bottomSheetEl)throw new Error("Cannot instantiate bottom sheet without container");this._headerEl=this.bottomSheetEl.querySelector(".header-section"),this._titleEl=this.bottomSheetEl.querySelector(".title"),this._contentEl=this.bottomSheetEl.querySelector(".content"),this._footerEl=this.bottomSheetEl.querySelector(".footer"),this.modalInstance=new uT(this.bottomSheetEl,{enablePageViewTracking:n,pageKey:i,shouldHideModal:r,pushState:t,triggerByOutletEl:!1}),this._hideBottomSheet=this._hideBottomSheet.bind(this),this._attachEventListeners()}_hideBottomSheet(){__(this.bottomSheetEl),this.bottomSheetEl.removeEventListener("transitionend",this._hideBottomSheet)}_attachEventListeners(){this.bottomSheetEl.addEventListener("click",e=>{const t=e.target.closest("[data-action]");"close-bottom-sheet"===(t&&t.dataset.action)&&this.close()}),this.bottomSheetEl.addEventListener("close",()=>{this.isOpen()&&setTimeout(()=>{this.bottomSheetEl.setAttribute("aria-hidden",!0),this.bottomSheetEl.addEventListener("transitionend",this._hideBottomSheet),this.bottomSheetEl.classList.remove("bottom-sheet-open")},0)}),this.bottomSheetEl.addEventListener("open",()=>{this.bottomSheetEl.setAttribute("aria-hidden",!1),w_(this.bottomSheetEl),window.requestAnimationFrame(()=>this.bottomSheetEl.classList.add("bottom-sheet-open"))}),yv.getInstance().addUnloadCallback(()=>{this.close()})}setHeader(e){this._headerEl&&JS(this._headerEl,e)}setTitle(e){this._titleEl&&(this._titleEl.textContent=e)}setContent(e){JS(this._contentEl,e)}setFooter(e){this._footerEl&&JS(this._footerEl,e)}isOpen(){return this.bottomSheetEl.classList.contains("bottom-sheet-open")}open(){!this.isOpen()&&this.modalInstance.open()}close(){this.isOpen()&&this.modalInstance.close()}}function $S(e){let{featureName:t,featureMappingToDegradationConfig:n,productName:i}=e;return n[t].map(e=>function(e,t,n){const{degradationKey:i,trackedResponseCodes:r,untrackedResponseCodes:o}=n,s=e;let a={productName:t};return r?a=Jv(Jv({},a),{},{trackedResponseCodes:r}):o&&(a=Jv(Jv({},a),{},{untrackedResponseCodes:o})),new DS(s,i,a)}(t,i,e))}class ek extends aT{constructor(){super(...arguments)}execute(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:()=>{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:()=>{};return this.executeAction({queryId:ek.query,variables:{digitalMediaRegisterUploadResponseDataFetcherInput:{imageUrl:e.imageUrl,owner:e.owner,uploadMechanisms:["SYNCHRONOUS_UPLOAD","SINGLE_REQUEST_UPLOAD"],uploadRecipes:[e.recipe]}},successCallback:t,failureCallback:n})}}Zv(ek,"query","20f8e9934e7df62932fd167d87c19b27");var tk=function(){this.__data__=[],this.size=0};var nk=function(e,t){return e===t||e!=e&&t!=t},ik=nk;var rk=function(e,t){for(var n=e.length;n--;)if(ik(e[n][0],t))return n;return-1},ok=rk,sk=Array.prototype.splice;var ak=rk;var ck=rk;var lk=rk;var uk=tk,dk=function(e){var t=this.__data__,n=ok(t,e);return!(n<0)&&(n==t.length-1?t.pop():sk.call(t,n,1),--this.size,!0)},hk=function(e){var t=this.__data__,n=ak(t,e);return n<0?void 0:t[n][1]},pk=function(e){return ck(this.__data__,e)>-1},fk=function(e,t){var n=this.__data__,i=lk(n,e);return i<0?(++this.size,n.push([e,t])):n[i][1]=t,this};function mk(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var i=e[t];this.set(i[0],i[1])}}mk.prototype.clear=uk,mk.prototype.delete=dk,mk.prototype.get=hk,mk.prototype.has=pk,mk.prototype.set=fk;var vk=mk,gk=vk;var yk=function(){this.__data__=new gk,this.size=0};var bk=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n};var Ek=function(e){return this.__data__.get(e)};var _k=function(e){return this.__data__.has(e)},wk="object"==typeof Vv&&Vv&&Vv.Object===Object&&Vv,Tk=wk,Sk="object"==typeof self&&self&&self.Object===Object&&self,kk=Tk||Sk||Function("return this")(),Ik=kk.Symbol,Ck=Ik,Ak=Object.prototype,Ok=Ak.hasOwnProperty,Rk=Ak.toString,Lk=Ck?Ck.toStringTag:void 0;var Nk=function(e){var t=Ok.call(e,Lk),n=e[Lk];try{e[Lk]=void 0;var i=!0}catch(e){}var r=Rk.call(e);return i&&(t?e[Lk]=n:delete e[Lk]),r},Pk=Object.prototype.toString;var xk=Nk,Mk=function(e){return Pk.call(e)},Dk=Ik?Ik.toStringTag:void 0;var Uk=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":Dk&&Dk in Object(e)?xk(e):Mk(e)};var Bk=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)},qk=Uk,Fk=Bk;var jk=function(e){if(!Fk(e))return!1;var t=qk(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t},Hk=kk["__core-js_shared__"],zk=function(){var e=/[^.]+$/.exec(Hk&&Hk.keys&&Hk.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();var Gk=function(e){return!!zk&&zk in e},Kk=Function.prototype.toString;var Wk=jk,Vk=Gk,Yk=Bk,Qk=function(e){if(null!=e){try{return Kk.call(e)}catch(e){}try{return e+""}catch(e){}}return""},Xk=/^\[object .+?Constructor\]$/,Jk=Function.prototype,Zk=Object.prototype,$k=Jk.toString,eI=Zk.hasOwnProperty,tI=RegExp("^"+$k.call(eI).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");var nI=function(e){return!(!Yk(e)||Vk(e))&&(Wk(e)?tI:Xk).test(Qk(e))},iI=function(e,t){return null==e?void 0:e[t]};var rI=function(e,t){var n=iI(e,t);return nI(n)?n:void 0},oI=rI(kk,"Map"),sI=rI(Object,"create"),aI=sI;var cI=function(){this.__data__=aI?aI(null):{},this.size=0};var lI=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},uI=sI,dI=Object.prototype.hasOwnProperty;var hI=function(e){var t=this.__data__;if(uI){var n=t[e];return"__lodash_hash_undefined__"===n?void 0:n}return dI.call(t,e)?t[e]:void 0},pI=sI,fI=Object.prototype.hasOwnProperty;var mI=sI;var vI=cI,gI=lI,yI=hI,bI=function(e){var t=this.__data__;return pI?void 0!==t[e]:fI.call(t,e)},EI=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=mI&&void 0===t?"__lodash_hash_undefined__":t,this};function _I(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var i=e[t];this.set(i[0],i[1])}}_I.prototype.clear=vI,_I.prototype.delete=gI,_I.prototype.get=yI,_I.prototype.has=bI,_I.prototype.set=EI;var wI=_I,TI=vk,SI=oI;var kI=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e};var II=function(e,t){var n=e.__data__;return kI(t)?n["string"==typeof t?"string":"hash"]:n.map},CI=II;var AI=II;var OI=II;var RI=II;var LI=function(){this.size=0,this.__data__={hash:new wI,map:new(SI||TI),string:new wI}},NI=function(e){var t=CI(this,e).delete(e);return this.size-=t?1:0,t},PI=function(e){return AI(this,e).get(e)},xI=function(e){return OI(this,e).has(e)},MI=function(e,t){var n=RI(this,e),i=n.size;return n.set(e,t),this.size+=n.size==i?0:1,this};function DI(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var i=e[t];this.set(i[0],i[1])}}DI.prototype.clear=LI,DI.prototype.delete=NI,DI.prototype.get=PI,DI.prototype.has=xI,DI.prototype.set=MI;var UI=vk,BI=oI,qI=DI;var FI=vk,jI=yk,HI=bk,zI=Ek,GI=_k,KI=function(e,t){var n=this.__data__;if(n instanceof UI){var i=n.__data__;if(!BI||i.length<199)return i.push([e,t]),this.size=++n.size,this;n=this.__data__=new qI(i)}return n.set(e,t),this.size=n.size,this};function WI(e){var t=this.__data__=new FI(e);this.size=t.size}WI.prototype.clear=jI,WI.prototype.delete=HI,WI.prototype.get=zI,WI.prototype.has=GI,WI.prototype.set=KI;var VI=WI,YI=rI,QI=function(){try{var e=YI(Object,"defineProperty");return e({},"",{}),e}catch(e){}}(),XI=QI;var JI=function(e,t,n){"__proto__"==t&&XI?XI(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n},ZI=JI,$I=nk;var eC=function(e,t,n){(void 0!==n&&!$I(e[t],n)||void 0===n&&!(t in e))&&ZI(e,t,n)};var tC=function(e){return function(t,n,i){for(var r=-1,o=Object(t),s=i(t),a=s.length;a--;){var c=s[e?a:++r];if(!1===n(o[c],c,o))break}return t}}(),nC={exports:{}};!function(e,t){var n=kk,i=t&&!t.nodeType&&t,r=i&&e&&!e.nodeType&&e,o=r&&r.exports===i?n.Buffer:void 0,s=o?o.allocUnsafe:void 0;e.exports=function(e,t){if(t)return e.slice();var n=e.length,i=s?s(n):new e.constructor(n);return e.copy(i),i}}(nC,nC.exports);var iC=kk.Uint8Array;var rC=function(e){var t=new e.constructor(e.byteLength);return new iC(t).set(new iC(e)),t};var oC=function(e,t){var n=t?rC(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)};var sC=function(e,t){var n=-1,i=e.length;for(t||(t=Array(i));++n<i;)t[n]=e[n];return t},aC=Bk,cC=Object.create,lC=function(){function e(){}return function(t){if(!aC(t))return{};if(cC)return cC(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();var uC=function(e,t){return function(n){return e(t(n))}}(Object.getPrototypeOf,Object),dC=Object.prototype;var hC=function(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||dC)},pC=lC,fC=uC,mC=hC;var vC=function(e){return"function"!=typeof e.constructor||mC(e)?{}:pC(fC(e))};var gC=function(e){return null!=e&&"object"==typeof e},yC=Uk,bC=gC;var EC=function(e){return bC(e)&&"[object Arguments]"==yC(e)},_C=gC,wC=Object.prototype,TC=wC.hasOwnProperty,SC=wC.propertyIsEnumerable,kC=EC(function(){return arguments}())?EC:function(e){return _C(e)&&TC.call(e,"callee")&&!SC.call(e,"callee")},IC=Array.isArray;var CC=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991},AC=jk,OC=CC;var RC=function(e){return null!=e&&OC(e.length)&&!AC(e)},LC=RC,NC=gC;var PC=function(e){return NC(e)&&LC(e)},xC={exports:{}};var MC=function(){return!1};!function(e,t){var n=kk,i=MC,r=t&&!t.nodeType&&t,o=r&&e&&!e.nodeType&&e,s=o&&o.exports===r?n.Buffer:void 0,a=(s?s.isBuffer:void 0)||i;e.exports=a}(xC,xC.exports);var DC=Uk,UC=uC,BC=gC,qC=Function.prototype,FC=Object.prototype,jC=qC.toString,HC=FC.hasOwnProperty,zC=jC.call(Object);var GC=function(e){if(!BC(e)||"[object Object]"!=DC(e))return!1;var t=UC(e);if(null===t)return!0;var n=HC.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&jC.call(n)==zC},KC=Uk,WC=CC,VC=gC,YC={};YC["[object Float32Array]"]=YC["[object Float64Array]"]=YC["[object Int8Array]"]=YC["[object Int16Array]"]=YC["[object Int32Array]"]=YC["[object Uint8Array]"]=YC["[object Uint8ClampedArray]"]=YC["[object Uint16Array]"]=YC["[object Uint32Array]"]=!0,YC["[object Arguments]"]=YC["[object Array]"]=YC["[object ArrayBuffer]"]=YC["[object Boolean]"]=YC["[object DataView]"]=YC["[object Date]"]=YC["[object Error]"]=YC["[object Function]"]=YC["[object Map]"]=YC["[object Number]"]=YC["[object Object]"]=YC["[object RegExp]"]=YC["[object Set]"]=YC["[object String]"]=YC["[object WeakMap]"]=!1;var QC=function(e){return VC(e)&&WC(e.length)&&!!YC[KC(e)]};var XC=function(e){return function(t){return e(t)}},JC={exports:{}};!function(e,t){var n=wk,i=t&&!t.nodeType&&t,r=i&&e&&!e.nodeType&&e,o=r&&r.exports===i&&n.process,s=function(){try{var e=r&&r.require&&r.require("util").types;return e||o&&o.binding&&o.binding("util")}catch(e){}}();e.exports=s}(JC,JC.exports);var ZC=QC,$C=XC,eA=JC.exports,tA=eA&&eA.isTypedArray,nA=tA?$C(tA):ZC;var iA=function(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]},rA=JI,oA=nk,sA=Object.prototype.hasOwnProperty;var aA=function(e,t,n){var i=e[t];sA.call(e,t)&&oA(i,n)&&(void 0!==n||t in e)||rA(e,t,n)},cA=JI;var lA=function(e,t,n,i){var r=!n;n||(n={});for(var o=-1,s=t.length;++o<s;){var a=t[o],c=i?i(n[a],e[a],a,n,e):void 0;void 0===c&&(c=e[a]),r?cA(n,a,c):aA(n,a,c)}return n};var uA=/^(?:0|[1-9]\d*)$/;var dA=function(e,t){var n=typeof e;return!!(t=null==t?9007199254740991:t)&&("number"==n||"symbol"!=n&&uA.test(e))&&e>-1&&e%1==0&&e<t},hA=function(e,t){for(var n=-1,i=Array(e);++n<e;)i[n]=t(n);return i},pA=kC,fA=IC,mA=xC.exports,vA=dA,gA=nA,yA=Object.prototype.hasOwnProperty;var bA=function(e,t){var n=fA(e),i=!n&&pA(e),r=!n&&!i&&mA(e),o=!n&&!i&&!r&&gA(e),s=n||i||r||o,a=s?hA(e.length,String):[],c=a.length;for(var l in e)!t&&!yA.call(e,l)||s&&("length"==l||r&&("offset"==l||"parent"==l)||o&&("buffer"==l||"byteLength"==l||"byteOffset"==l)||vA(l,c))||a.push(l);return a};var EA=Bk,_A=hC,wA=function(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t},TA=Object.prototype.hasOwnProperty;var SA=bA,kA=function(e){if(!EA(e))return wA(e);var t=_A(e),n=[];for(var i in e)("constructor"!=i||!t&&TA.call(e,i))&&n.push(i);return n},IA=RC;var CA=function(e){return IA(e)?SA(e,!0):kA(e)},AA=lA,OA=CA;var RA=eC,LA=nC.exports,NA=oC,PA=sC,xA=vC,MA=kC,DA=IC,UA=PC,BA=xC.exports,qA=jk,FA=Bk,jA=GC,HA=nA,zA=iA,GA=function(e){return AA(e,OA(e))};var KA=VI,WA=eC,VA=tC,YA=function(e,t,n,i,r,o,s){var a=zA(e,n),c=zA(t,n),l=s.get(c);if(l)RA(e,n,l);else{var u=o?o(a,c,n+"",e,t,s):void 0,d=void 0===u;if(d){var h=DA(c),p=!h&&BA(c),f=!h&&!p&&HA(c);u=c,h||p||f?DA(a)?u=a:UA(a)?u=PA(a):p?(d=!1,u=LA(c,!0)):f?(d=!1,u=NA(c,!0)):u=[]:jA(c)||MA(c)?(u=a,MA(a)?u=GA(a):FA(a)&&!qA(a)||(u=xA(c))):d=!1}d&&(s.set(c,u),r(u,c,i,o,s),s.delete(c)),RA(e,n,u)}},QA=Bk,XA=CA,JA=iA;var ZA=function e(t,n,i,r,o){t!==n&&VA(n,(function(s,a){if(o||(o=new KA),QA(s))YA(t,n,a,i,e,r,o);else{var c=r?r(JA(t,a),s,a+"",t,n,o):void 0;void 0===c&&(c=s),WA(t,a,c)}}),XA)};var $A=function(e){return e};var eO=function(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)},tO=Math.max;var nO=function(e,t,n){return t=tO(void 0===t?e.length-1:t,0),function(){for(var i=arguments,r=-1,o=tO(i.length-t,0),s=Array(o);++r<o;)s[r]=i[t+r];r=-1;for(var a=Array(t+1);++r<t;)a[r]=i[r];return a[t]=n(s),eO(e,this,a)}};var iO=function(e){return function(){return e}},rO=QI,oO=rO?function(e,t){return rO(e,"toString",{configurable:!0,enumerable:!1,value:iO(t),writable:!0})}:$A,sO=Date.now;var aO=function(e){var t=0,n=0;return function(){var i=sO(),r=16-(i-n);if(n=i,r>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}(oO),cO=$A,lO=nO,uO=aO;var dO=nk,hO=RC,pO=dA,fO=Bk;var mO=function(e,t){return uO(lO(e,t,cO),e+"")},vO=function(e,t,n){if(!fO(n))return!1;var i=typeof t;return!!("number"==i?hO(n)&&pO(t,n.length):"string"==i&&t in n)&&dO(n[t],e)};var gO=ZA;!function(e){mO((function(t,n){var i=-1,r=n.length,o=r>1?n[r-1]:void 0,s=r>2?n[2]:void 0;for(o=e.length>3&&"function"==typeof o?(r--,o):void 0,s&&vO(n[0],n[1],s)&&(o=r<3?void 0:o,r=1),t=Object(t);++i<r;){var a=n[i];a&&e(t,a,i,o)}return t}))}((function(e,t,n){gO(e,t,n)}));function yO(e){const t=e.getBoundingClientRect();let{top:n,left:i}=t;const{right:r,bottom:o,width:s,height:a,x:c,y:l}=t;return n+=document.documentElement.scrollTop||document.body.scrollTop,i+=document.documentElement.scrollLeft||document.body.scrollLeft,{top:n,right:r,bottom:o,left:i,width:s,height:a,x:c,y:l}}function bO(e,t,n){const i=yO(e),r=yO(t),o=yO(n),s=i.top-o.top-n.clientTop-r.height+i.height,a=i.left-o.left-n.clientLeft-r.width+i.width;return{boundingCoordinates:i,elementCoordinates:r,elemOffsetParentCoordinates:o,topMinLimit:s,leftMinLimit:a,elemTop:r.top-o.top,elemLeft:r.left-o.left,topMaxLimit:s-i.height+r.height,leftMaxLimit:a-i.width+r.width}}document.querySelector(".upload-progress"),document.querySelector("#progressVal");const EO="data-draggable-initialized",_O="touchstart",wO="touchmove",TO="touchend";class SO{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const t=this.onTouchStart.bind(this);if(this.options=e,!e.element||1!==e.element.nodeType)throw new Error("pass valid draggable element");if(this.draggableElementEl=e.element,e.boundingParent&&1===e.boundingParent.nodeType){if(!e.boundingParent.contains(e.element))throw new Error("pass a proper ancestor element");this.boundingParentEl=e.boundingParent}else this.boundingParentEl=document.body;SO.isDraggable(this.draggableElementEl)||this.draggableElementEl.addEventListener(_O,t),this.draggableElementEl.setAttribute(EO,!0)}dragElement(e,t,n){let i=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];const r={top:n>0?Math.min(e.topMaxLimit,e.elemTop+n):Math.max(e.topMinLimit,e.elemTop+n),left:t>0?Math.min(e.leftMaxLimit,e.elemLeft+t):Math.max(e.leftMinLimit,e.elemLeft+t)};this.draggableElementEl.style.left="".concat(r.left,"px"),this.draggableElementEl.style.top="".concat(r.top,"px"),this.options.onDrag instanceof Function&&this.options.onDrag(e.boundingCoordinates.left-r.left-e.elemOffsetParentCoordinates.left,e.boundingCoordinates.top-r.top-e.elemOffsetParentCoordinates.top,i)}onTouchMove(e){const t=!!e.touches;if(e.preventDefault(),this.isMoving||(this.isMoving=!0),t&&1===e.touches.length){const t=e.touches[0].clientX-this._startClientX,n=e.touches[0].clientY-this._startClientY;this.dragElement.call(this,this.limits,t,n)}}onTouchStart(e){this.limits=bO(this.boundingParentEl,this.draggableElementEl,this.draggableElementEl.offsetParent),this.isMoving=!1;const t=this.onTouchMove.bind(this),n=!!e.touches;this._startClientX=n?e.touches[0].clientX:e.clientX,this._startClientY=n?e.touches[0].clientY:e.clientY,e.preventDefault(),document.addEventListener(wO,t),document.addEventListener(TO,(function e(){document.removeEventListener(wO,t),document.removeEventListener(TO,e)}))}moveTo(e,t){const n=bO(this.boundingParentEl,this.draggableElementEl,this.draggableElementEl.offsetParent),i=e+n.boundingCoordinates.left-n.elementCoordinates.left,r=t+n.boundingCoordinates.top-n.elementCoordinates.top;this.dragElement.call(this,n,i,r,!1)}}SO.isDraggable=function(e){return!!e.getAttribute(EO)};const kO="data-zoomable-initialized",IO="touchstart",CO="touchmove",AO="touchend";class OO{constructor(e){const t=this.onTouchStart.bind(this);if(this.options=e,!e.element||1!==e.element.nodeType)throw new Error("pass valid zoomable element");if(!(e.scaleElement&&e.scaleElement instanceof Function))throw new Error("pass valid function to scale element");if(!(e.getMinDimensions&&e.getMinDimensions instanceof Function))throw new Error("pass valid function to get minimum dimensions");if(this.zoomableElement=e.element,e.boundingParent&&1===e.boundingParent.nodeType){if(!e.boundingParent.contains(e.element))throw new Error("pass a proper ancestor element");this.boundingParent=e.boundingParent}else this.boundingParent=document.body;OO.isZoomable(this.zoomableElement)||(this.zoomableElement.addEventListener(IO,t),this.zoomableElement.setAttribute(kO,!0))}scaleElement(e,t){if(1===e)return;this.limits=bO(this.boundingParent,this.zoomableElement,this.zoomableElement.offsetParent);let n=this.limits.elementCoordinates.width*e,i=this.limits.elementCoordinates.height*e;if(n<this.limits.boundingCoordinates.width||i<this.limits.boundingCoordinates.height){const t=this.options.getMinDimensions();i=t.height,n=t.width,e=i/this.limits.elementCoordinates.height}let r=this.limits.elemLeft-(t.clientX-this.limits.elementCoordinates.left)*(e-1),o=this.limits.elemTop-(t.clientY-this.limits.elementCoordinates.top)*(e-1);const s=this.limits.leftMinLimit-this.zoomableElement.offsetWidth*(e-1),a=this.limits.leftMaxLimit,c=this.limits.topMinLimit-this.zoomableElement.offsetHeight*(e-1),l=this.limits.topMaxLimit;r<s?r=s:r>a&&(r=a),o<c?o=c:o>l&&(o=l),this.options.scaleElement(n,i,this.limits.boundingCoordinates.left-r-this.limits.elemOffsetParentCoordinates.left,this.limits.boundingCoordinates.top-o-this.limits.elemOffsetParentCoordinates.top),this.zoomableElement.style.left="".concat(r,"px"),this.zoomableElement.style.top="".concat(o,"px")}onTouchMove(e){if(e.preventDefault(),2===e.touches.length){const t=Math.sqrt((e.touches[0].clientX-e.touches[1].clientX)*(e.touches[0].clientX-e.touches[1].clientX)+(e.touches[0].clientY-e.touches[1].clientY)*(e.touches[0].clientY-e.touches[1].clientY));if(this._startDistance>0){const n=t/this._startDistance,i=e.touches[0];this.scaleElement.call(this,n,i)}this._startDistance=t}}onTouchStart(e){e.preventDefault();const t=this.onTouchMove.bind(this);2===e.touches.length?this._startDistance=Math.sqrt((e.touches[0].x-e.touches[1].x)*(e.touches[0].x-e.touches[1].x)+(e.touches[0].y-e.touches[1].y)*(e.touches[0].y-e.touches[1].y)):this._startDistance=0,document.addEventListener(CO,t),document.addEventListener(AO,(function e(){document.removeEventListener(CO,t),document.removeEventListener(AO,e)}))}}let RO;OO.isZoomable=function(e){return!!e.getAttribute(kO)};yv.getInstance().addUnloadCallback(()=>{RO&&RO.close(),__(document.querySelector("#discard-post-modal")),__(document.querySelector("#visibility-settings-modal")),__(document.querySelector("#max-images-prompt-modal")),__(document.querySelector("#retry-upload-modal"))});class LO{constructor(e){this.storage=void 0===e?localStorage:e}read(e){try{const t=this.storage.getItem(e);if(t)return JSON.parse(t)}catch(e){}return null}write(e,t){try{this.storage.setItem(e,JSON.stringify(t))}catch(e){console.error(e)}}remove(e){try{this.storage.removeItem(e)}catch(e){console.error(e)}}readWithExpiry(e,t){const n=this.read(e+"_lastUpdatedAt");return n&&(new Date).getTime()-n<t?this.read(e):(this.removeWithExpiry(e),null)}writeWithExpiry(e,t){this.write(e,t),this.write(e+"_lastUpdatedAt",(new Date).getTime())}removeWithExpiry(e){this.remove(e),this.remove(e+"_lastUpdatedAt")}}(function(){try{LO.instance||(LO.instance=new LO(localStorage)),LO.instance}catch(e){}})(),function(){try{LO.sessionInstance||(LO.sessionInstance=new LO(sessionStorage)),LO.sessionInstance}catch(e){}}();let NO;function PO(){return NO||(NO=new $w),NO}class xO extends aT{constructor(){super(...arguments)}execute(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:()=>{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:()=>{};return this.executeAction({queryId:xO.query,variables:{successRedirectUrl:e},successCallback:t,failureCallback:n})}}Zv(xO,"query","5f93d1d6b933cfbfdf7b0a80dedfb3f4");class MO extends aT{constructor(){super(...arguments)}execute(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:()=>{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:()=>{};return this.executeAction({queryId:MO.query,successCallback:e,failureCallback:t})}}Zv(MO,"query","da4a9ce2de842c1abe01ca37ea9271ee");function DO(e){const t=e.target.value;e.target.classList.toggle("selected",t),e.target.focus()}function UO(e){if(e){const{id:t,labelText:n}=e.dataset;if(!t||!n)throw new Error("mandatory fields missing.");const i=e.querySelector("select");i&&(i.addEventListener("change",DO),i.value&&i.classList.add("selected"))}else{document.querySelectorAll(".dropdown-container").forEach(UO)}}function BO(e){const t=e.currentTarget.parentElement.querySelector("input");t.value="",t.classList.remove("selected"),t.focus(),Iv(t,"input:cleared"),Iv(t,"change")}function qO(e){const t=e.currentTarget.parentElement,n=t.dataset.placeholder,i=t.querySelector("input");n&&i.setAttribute("placeholder",n),i.removeEventListener("focus",qO)}function FO(e){const t=e.target.value;e.target.classList.toggle("selected",t)}function jO(e){if(e){const{id:t,labelText:n}=e.dataset;if(!t||!n)throw new Error("mandatory fields missing.");const i=e.querySelector("input"),r=e.querySelector(".right");i.addEventListener("change",FO),i.addEventListener("focus",qO),r&&r.addEventListener("click",BO)}else{document.querySelectorAll(".input-container").forEach(jO)}}const HO="MinLength",zO="MaxLength",GO="Regex",KO="Required",WO="RegexAllow",VO="RegexAllowEmail",YO={SPECIAL_CHARS:{pattern:/([!@#$%^&*+=|<>?:;\\])/,errorCode:"SpecialChars"},URL_KEYWORDS:{pattern:/(https?(:\/\/)?|www\.)/i,errorCode:"UrlKeywords"},EMAIL:{pattern:new RegExp('^(([^<>()\\[\\]\\\\.,;:\\s@"]+(\\.[^<>()\\[\\]\\\\.,;:\\s@"]+)*)|(".+"))@((\\[[0-9]{1,3}\\.[0-9]{1,3}\\.[0-9]{1,3}\\.[0-9]{1,3}])|(([a-zA-Z\\-0-9]+\\.)+[a-zA-Z]{2,}))$'),errorCode:"Email"},PHONE_NUMBER:{pattern:/(?:^((\+(?=[0-9]{1,4}))?))[0-9]{5,14}$/,errorCode:"PhoneNumber"}},QO="EMAIL_ADDRESS",XO="PHONE_NUMBER",JO="OTHER",ZO="consentUnchecked",$O={INPUT:"INPUT",SELECT:"SELECT"},eR="text",tR="checkbox";function nR(e){return Object.keys($O).includes(e.tagName)}function iR(e){const t=function(e){const t=[],{minLength:n,maxLength:i,inputType:r}=e.dataset;let o;switch(r){case JO:n&&t.push({type:HO,MinLength:n}),i&&t.push({type:zO,MaxLength:i});break;case QO:t.push({type:WO,RegexAllow:[YO.EMAIL]});break;case XO:o=e.value.replace(/ /g,""),t.push({type:WO,RegexAllow:[YO.PHONE_NUMBER]})}return{value:o||e.value,ruleSet:t}}(e),n=t.value;return t.ruleSet.map(e=>((e,t)=>{const n=t.trim();if(e)switch(e.type){case KO:if(0===n.length)return KO;break;case HO:if(n.length<e[HO])return HO;break;case zO:if(n.length>e[zO])return zO;break;case GO:for(let t=0;t<e[GO].length;t++)if(e[GO][t].pattern.test(n))return GO+e[GO][t].errorCode;break;case WO:for(let t=0;t<e[WO].length;t++)if(!e[WO][t].pattern.test(n))return WO+e[WO][t].errorCode}})(e,n)).filter(e=>!!e)}function rR(e,t){return t&&!e?ZO:null}const oR=(e,t)=>parseInt(t.split(e)[1]),sR=(e,t)=>t.split(e)[1];function aR(e,t){return document.querySelector("#".concat(e.id,"-strings")).dataset["str".concat(t)]}const cR=(e,t)=>({questionId:e,textQuestionAnswer:{answer:t}}),lR=(e,t)=>({questionId:e,multipleChoiceAnswer:{options:[{index:t}]}}),uR=(e,t)=>({question:e,answerDetails:{options:[t]}});function dR(e){const t=e.id+"_",n=t+"q",i=t+"c",r=tT("hasDecoratedLeadGenFormData");return new Promise((t,o)=>{const s=[];let a,c;const{urn:l,legalInfoUrn:u,leadType:d,associatedEntityUrn:h}=e.dataset;c=e.dataset.leadTrackingParams,c||(a=e.closest("[data-lead-tracking-params]"),c=a.dataset.leadTrackingParams);const p={formResponse:{adFormUrn:l,submittedAt:Date.now(),answers:[],consentResponses:[]},trackingUrl:c,trackingAction:"LEAD_FORM_CLICK"},f={associatedEntity:h,form:l,legalInfoUrn:u,leadType:d,formResponse:{answers:[],consentResponses:[]},leadTrackingParams:c,submittedAt:Date.now(),submitter:tT("memberUrn")};return Array.from(e).filter(nR).forEach(e=>{let t;if(e.tagName===$O.SELECT)t=((e,t,n)=>{const i=n?sR(e,t.id):oR(e,t.id),r=t.selectedIndex;return{response:n?uR(i,r):lR(i,r)}})(n,e,r),r?f.formResponse.answers.push(t.response):p.formResponse.answers.push(t.response);else if(e.type===eR)if(t=((e,t,n)=>{const i=n?sR(e,t.id):oR(e,t.id),r=iR(t);return 0!==r.length?{errors:r}:{response:n?(o=i,s=t.value,{question:o,answerDetails:{answer:s}}):cR(i,t.value)};var o,s})(n,e,r),t.response)r?f.formResponse.answers.push(t.response):p.formResponse.answers.push(t.response);else{const n=t.errors[0];s.push({element:e,errorType:n})}else e.type===tR&&(t=((e,t,n,i,r)=>{const o=oR(e,t),s=rR(n,i);return s?{errors:s}:{response:{[r?"consent":"consentId"]:o,accepted:n}}})(i,e.id,e.checked,e.required,r),t.response?r?f.formResponse.consentResponses.push(t.response):p.formResponse.consentResponses.push(t.response):s.push({element:e,errorType:t.errors}))}),0===s.length?t(r?f:p):o(s)})}const hR=".lead-gen-input-container",pR='input[data-input-type="EMAIL_ADDRESS"]',fR=".error-text",mR=".bottom-sheet",vR="input-error",gR="checkbox-input",yR="inputbox-input",bR="hidden";function ER(e){const t=this.formEl.querySelector(pR);let n=(null==t?void 0:t.value)||"";return function(i){this._isError(i.currentTarget)||n===i.currentTarget.value||(n=i.currentTarget.value,Kv("".concat(e,"?email=").concat(n)).then(e=>{let n;try{var i;n=null===(i=JSON.parse(e.responseText))||void 0===i?void 0:i.isEmailValid}catch(e){}n?this._hideError(t):this._setAndShowError(t,VO)}))}.bind(this)}class _R{constructor(e){let{isLivePreview:t=!1,triggerByOutletEl:n=!0,customEmailValidationFn:i,customEmailValidationPath:r,persistFormOnSubmit:o}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!e)throw new Error("containerEl is not present");jO(),UO(),O_("form-modal-description__content-truncated",".form-modal-description__btn-truncation",e),this.containerEl=e,this.formEl=e.querySelector("form");const s=e.querySelector(".lead-gen-modal");this.formContentEl=e.querySelector(".lead-gen-form-modal-content"),this.postSubmissionInfoEl=e.querySelector(".lead-gen-form-modal-post-subimssion"),this.submitBtn=this.formEl.querySelector(".submit-btn"),this.persistFormOnSubmit=o,this.modal=new uT(s,{triggerByOutletEl:n,shouldMoveToTopContainer:!1});const a=document.querySelector(mR);if(a&&(this.bottomSheet=new ZS({bottomSheetEl:a,pushState:!1})),!i&&!r)throw new Error("customEmailValidationFn or customEmailValidationPath is not present");this.customEmailValidationFn=i||ER.bind(this)(r),t?this.showForm():this._bindEvents()}showForm(){this.modal.open()}hideForm(){this.modal.close()}showPostSubmissionInfo(){this.bottomSheet?(this.modal.close(),this.bottomSheet.open()):(this.formContentEl.classList.add(bR),this.postSubmissionInfoEl.classList.remove(bR))}enableSubmit(){this.submitBtn.removeAttribute("disabled")}_clearFormErrors(){Array.from(this.formEl).filter(nR).map(e=>this._hideError(e))}_submitForm(){this._clearFormErrors(),dR(this.formEl).then(e=>{Iv(this.containerEl,this.constructor.LEAD_GEN_SUBMIT_EVENT,e),this.submitBtn.disabled=!0,this.persistFormOnSubmit?this.showPostSubmissionInfo():this.hideForm()}).catch(e=>{e.forEach(e=>this._setAndShowError(e.element,e.errorType));const t=e[0];if(t){t.element.focus();jv(aR(t.element,t.errorType),Fv.ASSERTIVE)}})}_hideError(e){if(e){const t=e.closest(hR),n=t.querySelector(fR);__(n),t.classList.remove(vR),e.removeAttribute("aria-invalid"),n.removeAttribute("role")}}_isError(e){var t;return null==e||null===(t=e.closest(hR))||void 0===t?void 0:t.classList.contains(vR)}_setAndShowError(e,t){if(e){const n=aR(e,t),i=e.closest(hR),r=i.querySelector(fR);r.innerText=n,w_(r),i.classList.add(vR),r.setAttribute("role","alert"),e.setAttribute("aria-invalid","true")}}_handleInputError(e){let t;if(this._hideError(e),e.type===tR)t=rR(e.checked,e.required);else if(e.type===eR){const n=iR(e);n&&n.length&&(t=n[0])}t&&this._setAndShowError(e,t)}_bindEvents(){const e=this.formEl.querySelector(".submit-btn"),t=this.formEl.querySelector(pR);this.formEl.addEventListener("click",e=>{e.target.classList.contains(gR)&&this._handleInputError(e.target)}),this.formEl.addEventListener("input:cleared",e=>{this._handleInputError(e.target)}),this.formEl.addEventListener("keyup",e=>{e.target.classList.contains(yR)&&this._handleInputError(e.target)}),this.customEmailValidationFn&&null!=t&&t.dataset.freemiumValidationRequired&&t.addEventListener("focusout",this.customEmailValidationFn),e.addEventListener("click",e=>{e.preventDefault(),e.stopPropagation(),this._submitForm()})}}Zv(_R,"LEAD_GEN_SUBMIT_EVENT","FormModal:LeadGen:submit");class wR{constructor(e,t){if(!e)throw Error("Missing FollowMutation endpoint");t&&(this.pemDegradationTrackingMetadata=t,this.isPemEnabled=!0),this.endpoint=e}execute(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:()=>{},i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:()=>{};return sT({endpoint:this.endpoint,queryId:wR.query,variables:{followState:e,to:t},pemDegradationTrackingMetadata:this.pemDegradationTrackingMetadata,isPemEnabled:this.isPemEnabled}).then(e=>{const{responseText:t}=e;n(JSON.parse(t).graphQL)}).catch(i)}}Zv(wR,"query","cbed571fffd8cea15209aed8d44e6759");const TR=Object.freeze({APPRECIATION:"APPRECIATION",ASSENT:"ASSENT",CELEBRATION:"CELEBRATION",EMPATHY:"EMPATHY",ENTERTAINMENT:"ENTERTAINMENT",INSPIRATION:"INSPIRATION",INTEREST:"INTEREST",LIKE:"LIKE",MAYBE:"MAYBE",PRAISE:"PRAISE",UNKNOWN:"UNKNOWN",USEFULNESS:"USEFULNESS"});Object.freeze(Object.values(TR));const SR="CREATE",kR="UPDATE";class IR{constructor(e,t){if(!e)throw Error("Missing ReactionMutation endpoint");t&&(this.pemDegradationTrackingMetadata=t,this.isPemEnabled=!0),this.endpoint=e}execute(e,t,n){let i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:()=>{},r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:()=>{};const o={endpoint:this.endpoint,queryId:IR.query,variables:{entityUrn:t,action:n},pemDegradationTrackingMetadata:this.pemDegradationTrackingMetadata,isPemEnabled:this.isPemEnabled};return n!==SR&&n!==kR||(o.variables.reactionType=e),sT(o).then(e=>{const{responseText:t}=e;i(JSON.parse(t).graphQL)}).catch(r)}}Zv(IR,"query","070ee23fd6fb77f92ac08f964ae1df29");Object.freeze({NEW_COMMENT_CREATE_EVENT:"Comment:newComment:create",NEW_COMMENT_SUCCESS_EVENT:"Comment:newComment:success",NEW_COMMENT_FAIL_EVENT:"Comment:newComment:fail"});Object.freeze({ANDROID:"com.linkedin.android",IOS:"com.linkedin.LinkedIn"});Object.freeze({HTML:"html",TEXT:"text",DATA:"data"}),Object.freeze({DESKTOP:"desktop",IOS:"ios",ANDROID:"android"});HTMLElement;"light".toUpperCase();class CR extends aT{constructor(){super(...arguments)}execute(e){let{eventType:t,trackingToken:n,widgetActionCategory:i}=e,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:()=>{},o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:()=>{};return this.executeAction({queryId:CR.query,variables:{eventType:t,trackingToken:n,widgetActionCategory:i},successCallback:r,failureCallback:o})}}Zv(CR,"query","48f4c814e38d5689b7c83a29c9676972");Object.freeze({EVENT_FALLBACK_UI_SHOWN:"fallback-ui-shown"});const AR=document.querySelector("#share-modal .textarea"),OR=document.querySelector(".image-preview-wrapper"),RR=document.querySelector("#share-modal .modal-content .reshare-section"),LR=document.querySelector(".post-button"),NR=document.querySelector("#comments-enabled"),PR=document.querySelector("#share-with-public"),xR=document.querySelector(".post-settings-wrapper"),MR=document.querySelector('input[name="share-with"]:checked'),DR=document.querySelector("#share-modal .close-button"),UR=document.querySelector("#visibility-settings-modal"),BR=document.querySelector("#visibility-header-back .close-button"),qR=document.querySelector("#visibility-settings-modal .settings-list-wrapper"),FR=document.querySelector("#discard-post-modal-wrapper"),jR=document.querySelector("#share-modal"),HR=document.querySelector(".modal-spinner"),zR=document.querySelector("#share-modal .textarea"),GR=document.querySelector("#share-with-groups");document.querySelector("#share-group-urn");const KR=document.querySelector("#share-with-network");class WR extends uT{updatePostButtonStatus(){var e;const t=null===(e=AR.innerText)||void 0===e?void 0:e.trim().length,n="loaded"===OR.getAttribute("data-image-load-state"),i=RR.children.length;t||n||i?I_(LR):k_(LR)}clearModalContentBase(){RR&&(RR.textContent=""),AR&&(AR.textContent=""),NR&&(NR.checked=!0),PR&&(PR.checked=!0,xR.setAttribute("data-post-visibility",MR.value))}historyBackClickHandler(){"share-modal"!==window.history.state&&"typeahead"!==window.history.state&&(window.history.pushState("share-modal","show-share-modal","#share-modal"),DR.click())}bindVisibilityModalEvents(){function e(e){const t=e.target,n=t.closest("[".concat("data-control-action","]"))||t.querySelector("[".concat("data-control-action","]"));n&&window.tracking.then(e=>{e.fireControlInteractionEvent(n.getAttribute("data-control-action"))})}UR.addEventListener("close",()=>{xR.setAttribute("data-post-visibility",document.querySelector('input[name="share-with"]:checked').value)}),BR.addEventListener("click",()=>window.history.back()),qR.addEventListener("click",t=>e(t)),qR.addEventListener("keydown",t=>{if(13===t.keyCode){const n=t.target.querySelector("input[type=radio]");n&&(n.checked=!0,e(t))}})}discardPostConfirmationModalPrimaryActionCallback(e){let{enableHistoryBack:t}=e;this.close({enableHistoryBack:t}),C_()&&"discard-post-modal"===window.history.state&&setTimeout(()=>{window.history.back()},100)}postSettingsClickHandler(){window.tracking.then(e=>{e.fireControlInteractionEvent("post-settings")}),this.visibilitySettingsModal.open()}}class VR extends WR{constructor(e,t){let{endpoint:n="",enablePageViewTracking:i=!1,shouldHideModal:r=(()=>!1),triggerByOutletEl:o=!1,pushState:s=!1,historyUpdateUrl:a}=t;super(e,{enablePageViewTracking:i,shouldHideModal:r,triggerByOutletEl:o,pushState:s}),this.el=e,this.postData={},this.endpoint=n,this.historyUpdateUrl=a,this.postUrn=tT("ugcPostUrn"),this.openShareModalByLink=this._checkIfOpenShareModalByLink(),this.bindPublishingShareEvents(),this.visibilitySettingsModal=new uT(UR,{triggerByOutletEl:!1}),this.handleOpenByUrl()}bindPublishingShareEvents(){this.shareTextEvents(),this.bindShareModalEvents(),this.bindVisibilityModalEvents()}_checkIfOpenShareModalByLink(){const e=new URL(location.href);return!0===Boolean(e.searchParams.get("openShareModal"))}handleOpenByUrl(){this.openShareModalByLink&&this.open()}shareTextEvents(){const e=Sv(this.updatePostButtonStatus,300);zR.addEventListener("input",e)}bindShareModalEvents(){const e=new XS(FR,this.discardPostConfirmationModalPrimaryActionCallback.bind(this,{enableHistoryBack:!this.openShareModalByLink}),()=>{},{enablePageViewTracking:!0,pageKey:"article_discard_confirmation",triggerByOutletEl:!1});jR.addEventListener("open",()=>{AR.focus()}),jR.addEventListener("close",()=>{this.clearModalContentBase(),__(HR)}),LR.addEventListener("click",()=>{this.processPostData()}),DR.addEventListener("click",()=>{LR.disabled?this.close():e.modal.open()}),xR.addEventListener("click",this.postSettingsClickHandler.bind(this)),xR.addEventListener("keydown",e=>{13===e.keyCode&&this.postSettingsClickHandler.apply(this)})}open(){var e;let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{defaultText:n}=t;this.historyUpdateUrl&&window.history.replaceState({},document.title,this.historyUpdateUrl),super.open(),this._checkIfOpenShareModalByLink()&&this._removeShareParams(),this.renderShareArticleShareSection(),A_()&&window.scrollTo(0,0),n&&(zR.textContent=n),this.shareData={},this.historyUpdateUrl&&window.history.replaceState({},document.title,this.historyUpdateUrl),this.isNewPost=!1,this.postUrn&&(this.shareData.reshareUrn=this.postUrn,this.shareData.attributedShareUrn=this.postUrn),null===(e=window.lazyloader)||void 0===e||e.then(e=>{e.refreshLoader()}),this.updatePostButtonStatus()}renderShareArticleShareSection(){const e=this.el.querySelector("#share-modal .modal-content .reshare-section");e.children.length?this.shareArticleNodeChild=e.children[0].cloneNode(!0):e.appendChild(this.shareArticleNodeChild)}composePostData(){this.shareData.text=zR.textContent,this.shareData.visibility="PUBLIC",GR&&(this.shareData.visibility="CONTAINER",this.shareData.containerEntity=GR.value),KR.checked&&(this.shareData.visibility="CONNECTIONS")}processPostData(){w_(HR),this.composePostData(),sT({endpoint:this.endpoint,queryId:VR.query,variables:this.shareData}).then(e=>{var t,n;200!==e.status&&Promise.reject();const i=(null===(t=JSON.parse(null==e?void 0:e.responseText).graphQL)||void 0===t||null===(n=t.createPost)||void 0===n?void 0:n.activityUrn)||Promise.reject();window.tracking.then(e=>{s_(e,"ajax","post_success_page_key")}),PO().trigger("success",tT("postSuccessMessage"),"post-success-toast-dismiss",{url:"/feed/update/"+i,trk:"share-post-success",text:tT("postSuccessViewPost"),target:"_self"}),this.close()}).catch(()=>{window.tracking.then(e=>{s_(e,"ajax","post_failure_page_key")}),PO().trigger("error",tT("postFailureMessage"),"post-error-toast-dismiss"),this.close()})}close(){super.close({enableHistoryBack:!this.openShareModalByLink})}_removeShareParams(){var e;const t=new URL(window.location.href);null===(e=t.searchParams)||void 0===e||e.delete("openShareModal"),window.history.pushState({},document.title,t.toString())}}Zv(VR,"query","971e319c05beaf333e94125db8c4f942");const YR={"send-connection-invite":[{degradationKey:"failed-to-invite"}],follow:[{degradationKey:"failed-to-follow"}],unfollow:[{degradationKey:"failed-to-unfollow"}]};$S({featureName:"send-connection-invite",productName:"Lite-feed",featureMappingToDegradationConfig:YR}),$S({featureName:"follow",productName:"Lite-feed",featureMappingToDegradationConfig:YR}),$S({featureName:"unfollow",productName:"Lite-feed",featureMappingToDegradationConfig:YR});class QR extends aT{constructor(){super(...arguments)}execute(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:()=>{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:()=>{};return this.executeAction({queryId:QR.query,variables:{inviteeVanityName:e},successCallback:t,failureCallback:n})}}Zv(QR,"query","71a5ef30bcb1e84ab5a2b77850d4bb1e");class XR extends aT{constructor(){super(...arguments)}execute(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:()=>{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:()=>{};return this.executeAction({queryId:XR.query,variables:{skills:e},successCallback:t,failureCallback:n})}}Zv(XR,"query","a628cd3be2c138c07fc69c2413b23fb6");class JR extends aT{constructor(){super(...arguments)}execute(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:()=>{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:()=>{};return this.executeAction({queryId:JR.query,variables:{skills:e},successCallback:t,failureCallback:n})}}Zv(JR,"query","a0ff03a6b1cbe44862cb2054f0612078");class ZR extends aT{constructor(){super(...arguments)}execute(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:()=>{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:()=>{};return this.executeAction({queryId:ZR.query,variables:{alertChannel:e.alertChannel||"EMAIL",alertFrequency:e.alertFrequency||"DAILY",creationChannel:e.creationChannel||"ONBOARD",searchParams:e.searchParams},successCallback:t,failureCallback:n})}}Zv(ZR,"query","ad184ece0303620a9753eca249efd99f");class $R extends aT{constructor(){super(...arguments)}execute(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:()=>{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:()=>{};return this.executeAction({queryId:$R.query,variables:{updateProfilePictureInput:e},successCallback:t,failureCallback:n})}}Zv($R,"query","7edd5b8a4513caf8180a64ecde871630");class eL extends aT{constructor(){super(...arguments)}execute(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:()=>{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:()=>{};return this.executeAction({queryId:eL.query,variables:{updateSettingsResponseDataFetcherInput:{type:"SHOW_PICTURE_SETTING",valueString:e}},successCallback:t,failureCallback:n})}}Zv(eL,"query","97ceca0bcbbf3fd6d744083b4de0a202");document.querySelector.bind(document);class tL extends aT{constructor(){super(...arguments)}execute(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:()=>{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:()=>{};return this.executeAction({queryId:tL.query,variables:{digitalmediaAssetUrn:e},successCallback:t,failureCallback:n})}}Zv(tL,"query","85c85c121bf7eaabd2388b9143f94546");const nL="learning-".concat("search__button"),iL=".".concat("base-search-bar","[").concat('data-searchbar-type="LEARNING"',"] .").concat("base-search-bar__form"),rL="".concat(iL,' .search-input input[name="keywords"]'),oL="".concat(iL,' input[name="sortBy"]'),sL=".".concat(nL,"[").concat('data-searchbar-type="LEARNING"',"]");class aL{constructor(e){if(!e)throw Error("An element must be provided to LearningSearch");this.el=e;const t=this.el.querySelector(iL),n=this.el.querySelector(rL),i=this.el.querySelector(oL),r=this.el.querySelector(sL);t&&r&&(r.addEventListener("click",()=>{t.dispatchEvent(new Event("submit"))}),t.addEventListener("submit",()=>{n.value.length&&i.remove(),t.submit()}))}}function cL(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function lL(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function uL(e,t,n){return t&&lL(e.prototype,t),n&&lL(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function dL(e){return(dL=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function hL(e,t){return(hL=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function pL(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function fL(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,i=dL(e);if(t){var r=dL(this).constructor;n=Reflect.construct(i,arguments,r)}else n=i.apply(this,arguments);return pL(this,n)}}function mL(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)return;var i,r,o=[],s=!0,a=!1;try{for(n=n.call(e);!(s=(i=n.next()).done)&&(o.push(i.value),!t||o.length!==t);s=!0);}catch(e){a=!0,r=e}finally{try{s||null==n.return||n.return()}finally{if(a)throw r}}return o}(e,t)||gL(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 vL(e){return function(e){if(Array.isArray(e))return yL(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||gL(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 gL(e,t){if(e){if("string"==typeof e)return yL(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)?yL(e,t):void 0}}function yL(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}var bL="aria-[a-z0-9_\\-]+|class|data-[a-z0-9_\\-]+|dir|id|role|tabindex",EL=function(){if("undefined"==typeof document)return!0;return"textContent"in document.createElement("div")}()?"textContent":"innerText",_L=["b","del","em","i","s","strong","sub","sup"],wL=_L.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"]),TL=[bL,"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("|"),SL=uL((function e(){cL(this,e)}));function kL(e,t){return Object.prototype.hasOwnProperty.call(e,t)}var IL=function(){var e=/[&<>"'\u0000\\=]/g,t={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","\0":"�","\\":"&#92;","=":"&#61;"};return function(n){return null==n?null:n.toString().replace(e,(function(e){return function(e){return e in t}(e)?t[e]:e}))}}(),CL=function(){var e,t="undefined"!=typeof document?document.createElement("div"):null,n=/&(?:([a-z0-9]+)|#x([\da-f]{1,6})|#(\d{1,8}));/gi,i={nbsp:" ",lt:"<",gt:">",amp:"&",quot:'"'};function r(e){if(function(e){return kL(i,e)}(e))return i[e];if(!t)return e;t.innerHTML="&".concat(e,";");var n=t[EL];return i[e]=n,n}return e="function"==typeof String.fromCodePoint?function(e){return String.fromCodePoint(e)}:function(e){return e<=65535?String.fromCharCode(e):"�"},function(t){return null==t?null:(t+"").replace(n,(function(t,n,i,o){return n?r(n):i||o?e(parseInt(i||o,i?16:10)||65533):"�"}))}}();function AL(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"log",n="undefined"!=typeof window;if(n&&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)}function OL(e){return/[<&]/.test(e)}function RL(e){e=Array.isArray(e)?e:[e];var t,n,i,r=0,o="<(?!/?";return o+="(?:",e.forEach((function(e,s){t=e.tags||wL,n=e.attrs||TL,i=e.checkUrlAttrs||!1,0!==s&&(o+="|"),o+="(?:"+t.join("|")+")",o+="(?:",o+="[ \t\r\n]*",o+="|[ \t\r\n]+",o+="(?:(?:",o+="(?:".concat(n,")(?:=([\"'])[^'\"<>]*\\").concat(++r,")?"),i&&(o+="|(?:".concat("href|src",")=([\"'])(?:(?:").concat("https?|ftp|mailto|invalid",")(?::|&#(?:58|x3a);)|(?:").concat("data:image/(?:gif|jpg|jpeg|png);base64,",")|[/.#?]|&#(?:35|4[67]|63|x(?:2[3ef]|3f));)[^'\"<>]*\\").concat(++r)),o+=")[ \t\r\n]*)+",o+=")"})),o+=")",o+="/?>)",new RegExp(o,"i")}function LL(e){return RL({tags:e=e||wL,checkUrlAttrs:!0})}function NL(e,t){var n=(t=t||{}).allowTags,i=!1!==t.hasCustomElementMarkup;return n&&n.length>0?!LL(n).test(e):i?!NL.R_UNSAFE_CUSTOM_ELEMENT.test(e):!NL.R_UNSAFE_HTML.test(e)}function PL(e){return e.replace(/<[^>]*>|[<>'"&\\]/g,"")}NL.R_UNSAFE_HTML=LL(),NL.R_UNSAFE_CUSTOM_ELEMENT=function(){var e={tag:"li-icon",attrs:"active|a11y-text|animate|color|size|type"};return RL([{tags:wL,checkUrlAttrs:!0},{tags:[e.tag],attrs:[bL,e.attrs].join("|"),checkUrlAttrs:!1}])}();var xL={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,"",""]},ML=/<([\w:]+)/;function DL(e,t){var n,i,r,o,s,a=t.createDocumentFragment(),c=[];for(r=0,s=e.length;r<s;r++)if(i=e[r])if("string"==typeof i){n=n||a.appendChild(t.createElement("div"));var l=mL(ML.exec(i)||["",""],2)[1];if(void 0!==l){var u=l.toLowerCase(),d=u in xL&&xL[u]||xL._default;for(FL(n,d[1]+i+d[2]),o=d[0];o--;)n&&n.lastChild&&n.lastChild.nodeType===Node.ELEMENT_NODE&&(n=n.lastChild);c.push.apply(c,vL(Array.from(n.childNodes))),(n=a.firstChild)&&(n.textContent="")}}else i instanceof Node&&c.push(i);for(a.textContent="",i=c[r=0];i;)a.appendChild(i),i=c[++r];return a}function UL(e,t,n){e=e.toString();var i=t?function(e,t){var n={};return e.replace(/\{([^}]+)\}/g,(function(e,i){if(kL(n,i))return n[i];if(kL(t,i)){var r=t[i],o="string"==typeof r;if(!o&&!(r instanceof SL)&&!("number"==typeof r))throw new Error("Only strings, numbers, and jSecure types are allowed as placeholder replacements.");return r?(r=o?"".concat(IL(r)):r.toString(),n[i]=r,r):e}return e}))}(e,t):e,r=e;return OL(i)&&!NL(i,n)&&(i=PL(i),AL("Content contains tags or attributes that are not allowed:\nContent: "+r,"error")),i}var BL=UL,qL=UL;function FL(e,t,n){var i=UL(t,n);return i&&OL(i)?e.innerHTML=i:i&&(e[EL]=i),i}var jL=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&hL(e,t)}(n,e);var t=fL(n);function n(e){var i,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return cL(this,n),(i=t.call(this)).options=r,i.tags=i.options.allowTags?i.options.allowTags.flat():[],i.str=e,i}return uL(n,[{key:"toString",value:function(){var e=this.str,t=this.strValue,n=e;return void 0!==t?t:(NL(e,{allowTags:this.tags,hasCustomElementMarkup:this.options.hasCustomElementMarkup})||(n=e,e=PL(e),AL("UnsafeString contains tags or attributes that are not allowed.\nString: "+n,"error")),this.strValue=e,e)}}]),n}(SL);var HL=/ /g,zL=/[\s\u0000<>"]|%00/,GL=/\\/,KL=/([.]|%2e){2}/i,WL=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 VL(e){var t;if("string"!=typeof e)return AL("jSecure Warning: url must be a string","error"),"invalid://";if((t=e.trim()).indexOf(" ")>-1&&(AL("jSecure Warning: url should not contain spaces: "+e,"warn"),t=t.replace(HL,"+")),!WL.test(t))return AL("jSecure Error: URL should be absolute with allowed schemas, relative, a hash fragment or query string. "+e,"error"),"invalid://";if(zL.test(t))return AL("jSecure Error: not valid url character found in url: "+e,"error"),"invalid://";var n,i=t.split("?")[0],r=!1;if(i){try{if(n=decodeURI(i),KL.test(n))return AL("jSecure Error: malicious data found in url path: "+i,"error"),"invalid://"}catch(e){r=!0}if(r)return AL("jSecure Error: malformed url path detected: "+i),"invalid://";if(GL.test(i)||KL.test(i))return AL("jSecure Error: malicious data found in url path: "+i,"error"),"invalid://"}return e}var YL={redirect:function(e){window&&(window.location.href=e)}};var QL={ALLOWED_TAGS:wL,FORMATTING_TAGS:_L,htmlEncode:IL,htmlUnencode:CL,log:AL,mk:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];var r,o="",s=n.length;return e&&e.forEach((function(e,t){o+=e,t<s&&(r=n[t],o+=r instanceof jL?r:IL(r))})),"".concat(qL(o))},parseHTML:function(e,t){var n;if(t=t||document.implementation&&document.implementation.createHTMLDocument?document.implementation.createHTMLDocument(""):document,"string"==typeof e)n=DL([e],t);else{if(!Array.isArray(e))return e;n=DL(e,t)}return Array.from(n.childNodes)},parseSelector:function(e){return"string"==typeof e&&/^(?:\s*(<[\w\W]+>)[^>]*)$/.test(e)?[]:e},processTemplate:BL,reEncode:function(e){return IL(CL(e))},_redirector:YL,redirect:function(e){var t=VL(e);t===e&&YL.redirect(t)},sanitizeHTML:qL,sanitizeUrl:VL,setElementContent:FL,unsafe:function(e){return e},UnsafeString:function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this instanceof e||console.warn("Calling 'UnsafeString' without the 'new' keword is deprecated"),new jL(t,n)}};const{addQueryParam:XL}=b,JL="[".concat("data-upsell-impression-id","]");function ZL(){let{trackingInstance:e,visibleElements:t=[]}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const n="lil_upsell",i="_teambuy";for(const r of t){const t=r.getAttribute("data-upsell-impression-id"),o=t&&t.startsWith(n),s=t&&t.endsWith(i)?"TEAM_BUY":"CONSUMER_SUBSCRIPTION";if(o){const n=e.generateTrackingId(),i=document.querySelector("[data-tracking-control-name=".concat(t,"]"));i.href=$L(n,i);const r={header:{pageInstance:e},trackingId:n,upsellType:s,upsellTrackingCode:t,premiumFunnelCommonHeader:{referenceId:e.generateBase64UUID()}};e.fireTrackingEvent("LearningUpsellImpressionV2Event",r)}}}function $L(e,t){const n=XL(t.href,"upsellTrackingId",e,!0);return QL.sanitizeUrl(n)}new class{constructor(){window.tracking&&window.tracking.then(e=>{uc(e).trackPageView()}),new su(document.querySelector(".nav"),{searchBarOptions:{typeaheadApiBaseUrl:"/homepage-guest/api/typeaheadHits"}}),new Q(document.querySelector(".language-selector"));const e=document.querySelector(".qualaroo");e&&new Nl(e)}},window.tracking.then(e=>{window.upsellImpressionTracking=new KT(window.IntersectionObserver,e,{componentList:[...document.querySelectorAll(JL)],onImpression:ZL})});const eN=document.querySelector(".learning-search");eN&&new aL(eN);const tN=[...document.querySelectorAll('[data-test-id="popular-topics"]')],nN=e=>e.querySelector("a");tN.forEach(e=>{e.querySelector(".show-more-less")&&new Il(e.querySelector(".show-more-less"),nN)});const iN=[...document.querySelectorAll(".slide-list")].map(e=>new jr(e)),rN=document.querySelector(".tabs");rN&&(new Kr(rN),rN.addEventListener("click",()=>{!function(e){e.forEach(e=>{const t=e._el;t&&null!==t.offsetParent&&e._initCalc()})}(iN)})),new xl})();