/*! For license information please see graphQLOverview.js.LICENSE.txt */
!function(e){var t={};function n(i){if(t[i])return t[i].exports;var r=t[i]={i,l:!1,exports:{}};return e[i].call(r.exports,r,r.exports,n),r.l=!0,r.exports}n.m=e,n.c=t,n.d=function(e,t,i){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:i})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var i=Object.create(null);if(n.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)n.d(i,r,function(t){return e[t]}.bind(null,r));return i},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=19)}([function(e,t,n){"use strict";(function(e,i){function r(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 o(e){"complete"===document.readyState?e():window.addEventListener("load",()=>{setTimeout(e)})}n.d(t,"a",(function(){return Sd})),n.d(t,"b",(function(){return dd})),n.d(t,"c",(function(){return Ia})),n.d(t,"d",(function(){return kd})),n.d(t,"e",(function(){return Qu})),n.d(t,"f",(function(){return Sv})),n.d(t,"g",(function(){return Td})),n.d(t,"h",(function(){return Ce})),n.d(t,"i",(function(){return re})),n.d(t,"j",(function(){return Fa})),n.d(t,"k",(function(){return Aa})),n.d(t,"l",(function(){return Cv})),n.d(t,"m",(function(){return Pd})),n.d(t,"n",(function(){return Nd})),n.d(t,"o",(function(){return yg})),n.d(t,"p",(function(){return Xr})),n.d(t,"q",(function(){return sc})),n.d(t,"r",(function(){return Uu})),n.d(t,"s",(function(){return Ru})),n.d(t,"t",(function(){return Fu})),n.d(t,"u",(function(){return ga})),n.d(t,"v",(function(){return ad})),n.d(t,"w",(function(){return K})),n.d(t,"x",(function(){return ya})),n.d(t,"y",(function(){return Sl})),n.d(t,"z",(function(){return ly})),n.d(t,"A",(function(){return P})),n.d(t,"B",(function(){return Ms})),n.d(t,"C",(function(){return wg})),n.d(t,"D",(function(){return od})),n.d(t,"E",(function(){return Po})),n.d(t,"F",(function(){return w})),n.d(t,"G",(function(){return L})),n.d(t,"H",(function(){return ne})),n.d(t,"I",(function(){return gg})),n.d(t,"J",(function(){return By}));class s{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 a=function(){let e;return{getInstance:function(){return e||(e=new s),e}}}();class c{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 l=function(){let e;return{getInstance:function(){return e||(e=new c),e}}}();function u(e){return null==e||"object"!=typeof e?[]:Array.prototype.slice.call(e)}function d(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 h(){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 p(e,t,n){const i=new RegExp("([\\?&])".concat(n?t:encodeURIComponent(t),"=([^&#]*)")).exec(e);return i&&(n?i[2]:decodeURIComponent(i[2]))}function f(e,t){return m(e,"trk",t)}function m(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=p(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 g(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 v(e){const t=document.cookie.match(new RegExp("(^| )"+e+"=([^;]+)"));return t&&t[2]}function y(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 b(){let e,t;const n=new Promise((n,i)=>{e=n,t=i});return n.resolve=e,n.reject=t,n}function E(e){return void 0!==e.msHidden?e.msHidden:void 0!==e.hidden?e.hidden:void 0}function _(e){return"string"!=typeof e?null:e.split("?")[0]}var w=Object.freeze({__proto__:null,closest:r,onload:o,UnloadHandler:a,PagehideHandler:l,makeArray:u,outerWidth:function(e){let t=e.offsetWidth,n=getComputedStyle(e);return t+=(parseInt(n.marginLeft,10)||0)+(parseInt(n.marginRight,10)||0),t},elementInViewport:d,hasElementScrolledToThreshold:h,getQueryParam:p,addTrackingCode:f,addQueryParam:m,debounce:g,getCookie:v,dispatchCustomEvent:y,getDeferredPromise:b,isDocumentHidden:E,stripQueryParams:_,getUrlWithQueryParamObject:function(e,t){if(!e||!t)return e;let n=e;for(const e of Object.keys(t))n=m(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 T(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 S(e){let t=e.querySelector('meta[name="linkedin:pageTag"]');return t&&t.content||""}function k(){var e,t;const n=null===(e=window.atob(v("li_gp")))||void 0===e||null===(t=e.split(";")[2])||void 0===t?void 0:t[0];return!!n&&!parseInt(n)}function C(e){let t=e.querySelector('meta[name="locale"]');return t&&t.content||""}function I(e){let t=e.domain;return t?t.split(".").slice(-2).join("."):""}function A(e){return e&&'"'===e.charAt(0)&&'"'===e.charAt(e.length-1)?e.slice(1,-1):e}var L=Object.freeze({__proto__:null,getPageKey:T,getPageTag:S,getLiSugrCookie:function(){return v("li_sugr")},getGuestRetargetingOptOut:k,getLocale:C,getDomain:I,trimDoubleQuotes:A});const O={ARROW_DOWN:"ArrowDown",ARROW_LEFT:"ArrowLeft",ARROW_RIGHT:"ArrowRight",ARROW_UP:"ArrowUp",ESCAPE:"Escape",ENTER:"Enter",SPACEBAR:" ",TAB:"Tab"},R={Down:O.ARROW_DOWN,Right:O.ARROW_RIGHT,Left:O.ARROW_LEFT,Up:O.ARROW_UP,Esc:O.ESCAPE,Spacebar:O.SPACEBAR,Tab:O.TAB};function N(e){return R[e]||e}var P=Object.freeze({__proto__:null,KEYS:O,normalizeKeyBoardEventKey:N});class x{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(N(e.key)){case O.ENTER:case O.SPACEBAR:e.preventDefault(),this.isOpen?this.close():this._open(e);break;case O.ARROW_UP:this.isOpen||this._open(e);break;case O.ARROW_DOWN:this.isOpen&&this.close()}}_onKeyUp(e){N(e.key)===O.SPACEBAR&&e.preventDefault()}_onKeyDown(e){const t=N(e.key);if(t===O.ESCAPE&&this.isOpen)this.close();else if(this._isList){let n;switch(t){case O.SPACEBAR:y(e.target,"click");break;case O.ARROW_LEFT:case O.ARROW_UP:n=r(e.target,"li");let t=n.previousElementSibling;t&&y(t,"focusEl");break;case O.ARROW_RIGHT:case O.ARROW_DOWN:n=r(e.target,"li");let i=n.nextElementSibling;i&&y(i,"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)),y(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)),y(this.el,"close"),e&&this.mainButton.focus())}}let M,D;const U=['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^="-"])'],B=[...U,'[tabindex]:not([tabindex^="-"]):not([disabled])'].join(","),F=[...U,"[tabindex]:not([disabled])"].join(",");function q(e){const t=window.getComputedStyle(e);return"hidden"===t.visibility||"none"===t.display}function H(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?!q(e):i&&i.get(e)?i.get(e):(q(e)?t=!1:e.parentNode&&(t=H(e.parentNode,n,i)),i&&i.set(e,t),t)}const j=["CODE","TEMPLATE","SCRIPT"],z={POLITE:"polite",ASSERTIVE:"assertive"};function G(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:z.POLITE;M&&(M.removeAttribute("aria-hidden"),M.setAttribute("aria-live",z.POLITE),M.textContent="",M.textContent=e,M.setAttribute("aria-live",t),clearTimeout(D),D=setTimeout(()=>{M.removeAttribute("aria-live"),M.setAttribute("aria-hidden","true")},1e4))}function W(){M=function(){let e=document.querySelector("#a11y-alert-container");return e||(e=document.createElement("div"),e.setAttribute("role","region"),e.setAttribute("aria-live","polite"),e.setAttribute("id","a11y-alert-container"),e.classList.add("visually-hidden"),document.body.appendChild(e)),e}()}var K=Object.freeze({__proto__:null,FOCUSABLE_ELEMS:B,FOCUSABLE_ELEMS_INCLUDING_NEGATIVE_TABINDEX:F,isElVisible:H,ARIA_NON_ACCESSIBLE_NODE_NAMES:j,ARIA_POLITENESS_SETTING:z,resetLiveContent:G,getLiveRegionEl:W});class V{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 Y=["class","disabled","style","tabindex","type"];class J{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 V(this._container)}init(){this._observer.observe(this._container,{attributeFilter:Y,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=N(t),r=i===O.TAB&&e.shiftKey;!r&&i===O.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(B)],n=new Map;let i,r,o=0,s=t.length-1;for(;(!i||!r)&&o<=s;){if(!i){const r=t[o];i=H(r,e,n)&&r,o++}if(!r){const i=t[s];r=H(i,e,n)&&i,s--}}return r=r||i,[i,r]}}const X=/.*(iPad|iPod|iPhone|Android|BB10|BlackBerry|IEMobile).*/;function Q(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:navigator.userAgent;return!!e&&X.test(e)}const Z=".".concat("collapsible-dropdown","__list"),$=".".concat("collapsible-dropdown","__button"),ee=".".concat("collapsible-dropdown","__close-button");class te{constructor(e){let{getFocusItemFromListItem:t=(e=>e.querySelector(B)),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(ee),this._isMobile=Q();const o=this.dropdownContentEl.closest(".".concat("collapsible-dropdown"));if(this._isMobile&&o&&(this._focusTrap=new J(o)),!n){const e=this.dropdownContentEl===this.dropdownContentEl.parentElement.querySelector(B),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($),this.hideClass="hidden",this.collapsible=new x(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 ne(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=v("JSESSIONID");e&&(l.headers["Csrf-Token"]=A(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?ie(u,e,c,a):console.warn("Please set the value for the option pemDegradationTrackingMetadata when PEM is enabled.")),d}function ie(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 re{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 te(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=A(v("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}(I(document));return ne("".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 oe="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==e?e:"undefined"!=typeof self?self:{},se=/^\s+|\s+$/g,ae=/^[-+]0x[0-9a-f]+$/i,ce=/^0b[01]+$/i,le=/^0o[0-7]+$/i,ue=parseInt,de="object"==typeof oe&&oe&&oe.Object===Object&&oe,he="object"==typeof self&&self&&self.Object===Object&&self,pe=de||he||Function("return this")(),fe=Object.prototype.toString,me=Math.max,ge=Math.min,ve=function(){return pe.Date.now()};function ye(e,t,n){var i,r,o,s,a,c,l=0,u=!1,d=!1,h=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function p(t){var n=i,o=r;return i=r=void 0,l=t,s=e.apply(o,n)}function f(e){return l=e,a=setTimeout(g,t),u?p(e):s}function m(e){var n=e-c;return void 0===c||n>=t||n<0||d&&e-l>=o}function g(){var e=ve();if(m(e))return v(e);a=setTimeout(g,function(e){var n=t-(e-c);return d?ge(n,o-(e-l)):n}(e))}function v(e){return a=void 0,h&&i?p(e):(i=r=void 0,s)}function y(){var e=ve(),n=m(e);if(i=arguments,r=this,c=e,n){if(void 0===a)return f(c);if(d)return a=setTimeout(g,t),p(c)}return void 0===a&&(a=setTimeout(g,t)),s}return t=Ee(t)||0,be(n)&&(u=!!n.leading,o=(d="maxWait"in n)?me(Ee(n.maxWait)||0,t):o,h="trailing"in n?!!n.trailing:h),y.cancel=function(){void 0!==a&&clearTimeout(a),l=0,i=c=r=a=void 0},y.flush=function(){return void 0===a?s:v(ve())},y}function be(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function Ee(e){if("number"==typeof e)return e;if(function(e){return"symbol"==typeof e||function(e){return!!e&&"object"==typeof e}(e)&&"[object Symbol]"==fe.call(e)}(e))return NaN;if(be(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=be(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(se,"");var n=ce.test(e);return n||le.test(e)?ue(e.slice(2),n?2:8):ae.test(e)?NaN:+e}var _e=function(e,t,n){var i=!0,r=!0;if("function"!=typeof e)throw new TypeError("Expected a function");return be(n)&&(i="leading"in n?!!n.leading:i,r="trailing"in n?!!n.trailing:r),ye(e,t,{leading:i,maxWait:t,trailing:r})};const we=".loader",Te=".infinite-scroller__show-more-button",Se=0,ke=10;class Ce{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:window,{threshold:t=Se,scrollLoadLimit:n=ke,useDebounce:i=!1,wait:r=1e3,loadResults:o,onLoading:s=this._defaultOnLoading,onDoneLoading:a=this._defaultOnDoneLoading,loaderEl:c=document.querySelector(we),showMoreButtonEl:l=document.querySelector(Te),isReverse:u=!1,listEl:d,getFocusItemFromListItem:h=(e=>e.querySelector(F))}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!o)throw new Error("loadResults should be passed to the component");if(n<=0)throw new Error("scrollLoadLimit should be greater than 0, if you only need the button and not the scroller do not use this module");l&&!d&&console.error("A list element is required for accessibility focus if a showMoreButtonEl is present"),this.el=e,this.threshold=t,this.scrollLoadLimit=n,this.useDebounce=i,this.wait=r,this.loaderEl=c,this.onLoading=s,this.onDoneLoading=a,this.loadResults=o,this.showMoreButtonEl=l,this.isReverse=u,this.listEl=d,this._getFocusItemFromListItem=h,this.isLoading=!1,this.loadNumber=0,this._onScroll=this._onScroll.bind(this),this._onClick=this._onClick.bind(this),this._scrollListener=this.useDebounce?g(this._onScroll,this.wait):_e(this._onScroll,this.wait),this._attachScrollEventListener(),this._onScroll()}_defaultOnLoading(){this.isShowMoreButtonTheTrigger?this.showMoreButtonEl.disabled=!0:this.loaderEl&&this.loaderEl.classList.add("loader--show")}_defaultOnDoneLoading(){this.isShowMoreButtonTheTrigger?this.showMoreButtonEl.disabled=!1:this.loaderEl&&this.loaderEl.classList.remove("loader--show")}_onScroll(){!this.isLoading&&h(this.el,this.threshold,this.isReverse)&&(this.isLoading=!0,this.onLoading(),this.loadResults().finally(()=>{this.onDoneLoading(),this.isLoading=!1,++this.loadNumber>=this.scrollLoadLimit&&(this.removeInfiniteScroller(),this.showMoreButtonEl&&this._switchToShowMoreButton())}))}_onClick(){var e,t;const n=(null===(e=this.listEl)||void 0===e||null===(t=e.children)||void 0===t?void 0:t.length)||0;this.onLoading(),this.loadResults().finally(()=>{var e,t;if(this.onDoneLoading(),(null===(e=this.listEl)||void 0===e||null===(t=e.children)||void 0===t?void 0:t.length)>n){var i,r;const e=null===(i=this.listEl)||void 0===i||null===(r=i.children)||void 0===r?void 0:r[n];let t=this._getFocusItemFromListItem(e);t&&t.focus()}})}_switchToShowMoreButton(){this.isShowMoreButtonTheTrigger=!0,this.showMoreButtonEl.classList.add("infinite-scroller__show-more-button--visible"),this.showMoreButtonEl.addEventListener("click",this._onClick)}removeInfiniteScroller(){this.isShowMoreButtonTheTrigger?(this.showMoreButtonEl.removeEventListener("click",this._onClick),this.showMoreButtonEl.classList.remove("infinite-scroller__show-more-button--visible")):this.el.removeEventListener("scroll",this._scrollListener),y(this.el,"infinite-scroller-removed")}_attachScrollEventListener(){this.el.addEventListener("scroll",this._scrollListener)}}function Ie(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 Ae(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ie(Object(n),!0).forEach((function(t){Le(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ie(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Le(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Oe(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 Re="light",Ne="dark";function Pe(){const e=document.getElementById("config");let t;return e&&e.dataset&&(t=e.dataset.theme),t?document.documentElement.classList.contains("dark")?Ne:Re:void 0}var xe;function Me(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)||je(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 De(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=je(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 Ue(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Be(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 Fe(e,t,n){return t&&Be(e.prototype,t),n&&Be(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function qe(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function He(e){return function(e){if(Array.isArray(e))return ze(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||je(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 je(e,t){if(e){if("string"==typeof e)return ze(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)?ze(e,t):void 0}}function ze(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 Ge(e){return(Ge="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 We,Ke=new Uint8Array(16);function Ve(){if(!We&&!(We="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 We(Ke)}var Ye=/^(?:[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 Je(e){return"string"==typeof e&&Ye.test(e)}for(var Xe=[],Qe=0;Qe<256;++Qe)Xe.push((Qe+256).toString(16).substr(1));function Ze(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=(Xe[e[t+0]]+Xe[e[t+1]]+Xe[e[t+2]]+Xe[e[t+3]]+"-"+Xe[e[t+4]]+Xe[e[t+5]]+"-"+Xe[e[t+6]]+Xe[e[t+7]]+"-"+Xe[e[t+8]]+Xe[e[t+9]]+"-"+Xe[e[t+10]]+Xe[e[t+11]]+Xe[e[t+12]]+Xe[e[t+13]]+Xe[e[t+14]]+Xe[e[t+15]]).toLowerCase();if(!Je(n))throw TypeError("Stringified UUID is invalid");return n}function $e(e){if(!Je(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 et(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=$e(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 Ze(s)}try{i.name=e}catch(e){}return i.DNS="6ba7b810-9dad-11d1-80b4-00c04fd430c8",i.URL="6ba7b811-9dad-11d1-80b4-00c04fd430c8",i}function tt(e){return 14+(e+64>>>9<<4)+1}function nt(e,t){var n=(65535&e)+(65535&t);return(e>>16)+(t>>16)+(n>>16)<<16|65535&n}function it(e,t,n,i,r,o){return nt((s=nt(nt(t,e),nt(i,o)))<<(a=r)|s>>>32-a,n);var s,a}function rt(e,t,n,i,r,o,s){return it(t&n|~t&i,e,t,r,o,s)}function ot(e,t,n,i,r,o,s){return it(t&i|n&~i,e,t,r,o,s)}function st(e,t,n,i,r,o,s){return it(t^n^i,e,t,r,o,s)}function at(e,t,n,i,r,o,s){return it(n^(t|~i),e,t,r,o,s)}function ct(e,t,n){var i=(e=e||{}).random||(e.rng||Ve)();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 Ze(i)}function lt(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 ut(e,t){return e<<t|e>>>32-t}et("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[tt(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=rt(n,i,r,o,e[s],7,-680876936),o=rt(o,n,i,r,e[s+1],12,-389564586),r=rt(r,o,n,i,e[s+2],17,606105819),i=rt(i,r,o,n,e[s+3],22,-1044525330),n=rt(n,i,r,o,e[s+4],7,-176418897),o=rt(o,n,i,r,e[s+5],12,1200080426),r=rt(r,o,n,i,e[s+6],17,-1473231341),i=rt(i,r,o,n,e[s+7],22,-45705983),n=rt(n,i,r,o,e[s+8],7,1770035416),o=rt(o,n,i,r,e[s+9],12,-1958414417),r=rt(r,o,n,i,e[s+10],17,-42063),i=rt(i,r,o,n,e[s+11],22,-1990404162),n=rt(n,i,r,o,e[s+12],7,1804603682),o=rt(o,n,i,r,e[s+13],12,-40341101),r=rt(r,o,n,i,e[s+14],17,-1502002290),n=ot(n,i=rt(i,r,o,n,e[s+15],22,1236535329),r,o,e[s+1],5,-165796510),o=ot(o,n,i,r,e[s+6],9,-1069501632),r=ot(r,o,n,i,e[s+11],14,643717713),i=ot(i,r,o,n,e[s],20,-373897302),n=ot(n,i,r,o,e[s+5],5,-701558691),o=ot(o,n,i,r,e[s+10],9,38016083),r=ot(r,o,n,i,e[s+15],14,-660478335),i=ot(i,r,o,n,e[s+4],20,-405537848),n=ot(n,i,r,o,e[s+9],5,568446438),o=ot(o,n,i,r,e[s+14],9,-1019803690),r=ot(r,o,n,i,e[s+3],14,-187363961),i=ot(i,r,o,n,e[s+8],20,1163531501),n=ot(n,i,r,o,e[s+13],5,-1444681467),o=ot(o,n,i,r,e[s+2],9,-51403784),r=ot(r,o,n,i,e[s+7],14,1735328473),n=st(n,i=ot(i,r,o,n,e[s+12],20,-1926607734),r,o,e[s+5],4,-378558),o=st(o,n,i,r,e[s+8],11,-2022574463),r=st(r,o,n,i,e[s+11],16,1839030562),i=st(i,r,o,n,e[s+14],23,-35309556),n=st(n,i,r,o,e[s+1],4,-1530992060),o=st(o,n,i,r,e[s+4],11,1272893353),r=st(r,o,n,i,e[s+7],16,-155497632),i=st(i,r,o,n,e[s+10],23,-1094730640),n=st(n,i,r,o,e[s+13],4,681279174),o=st(o,n,i,r,e[s],11,-358537222),r=st(r,o,n,i,e[s+3],16,-722521979),i=st(i,r,o,n,e[s+6],23,76029189),n=st(n,i,r,o,e[s+9],4,-640364487),o=st(o,n,i,r,e[s+12],11,-421815835),r=st(r,o,n,i,e[s+15],16,530742520),n=at(n,i=st(i,r,o,n,e[s+2],23,-995338651),r,o,e[s],6,-198630844),o=at(o,n,i,r,e[s+7],10,1126891415),r=at(r,o,n,i,e[s+14],15,-1416354905),i=at(i,r,o,n,e[s+5],21,-57434055),n=at(n,i,r,o,e[s+12],6,1700485571),o=at(o,n,i,r,e[s+3],10,-1894986606),r=at(r,o,n,i,e[s+10],15,-1051523),i=at(i,r,o,n,e[s+1],21,-2054922799),n=at(n,i,r,o,e[s+8],6,1873313359),o=at(o,n,i,r,e[s+15],10,-30611744),r=at(r,o,n,i,e[s+6],15,-1560198380),i=at(i,r,o,n,e[s+13],21,1309151649),n=at(n,i,r,o,e[s+4],6,-145523070),o=at(o,n,i,r,e[s+11],10,-1120210379),r=at(r,o,n,i,e[s+2],15,718787259),i=at(i,r,o,n,e[s+9],21,-343485551),n=nt(n,a),i=nt(i,c),r=nt(r,l),o=nt(o,u)}return[n,i,r,o]}(function(e){if(0===e.length)return[];for(var t=8*e.length,n=new Uint32Array(tt(t)),i=0;i<t;i+=8)n[i>>5]|=(255&e[i/8])<<i%32;return n}(e),8*e.length))})),et("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]=ut(h[f-3]^h[f-8]^h[f-14]^h[f-16],1);for(var m=n[0],g=n[1],v=n[2],y=n[3],b=n[4],E=0;E<80;++E){var _=Math.floor(E/20),w=ut(m,5)+lt(_,g,v,y)+b+t[_]+h[E]>>>0;b=y,y=v,v=ut(g,30)>>>0,g=m,m=w}n[0]=n[0]+m>>>0,n[1]=n[1]+g>>>0,n[2]=n[2]+v>>>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 dt=null;if("undefined"==typeof crypto||!crypto.getRandomValues){var ht=("undefined"!=typeof FastBoot?FastBoot.require:require)("crypto");if(ht){var pt=new Uint8Array(256),ft=pt.length;dt={rng:function(){return ft>pt.length-16&&(ht.randomFillSync(pt),ft=0),pt.slice(ft,ft+=16)}}}}"object"===("undefined"==typeof crypto?"undefined":Ge(crypto))&&crypto.randomUUID;function mt(){return ct(dt,new Array(16),0)}function gt(e){return He(e).map((function(e){return String.fromCharCode(e)})).join("")}function vt(){return gt(mt())}var yt=/^[a-zA-Z0-9/+]+[=]+$/;function bt(e,t){return{pageUrn:_t(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("")}(mt())}}function Et(e,t){return"urn:li:control:".concat(e,"-").concat(t)}function _t(e){return"urn:li:page:".concat(e)}function wt(e,t){return{pageInstance:t.assign({},e.pageInstance),pageKey:e.pageKey,applicationInstance:e.applicationInstance}}function Tt(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 St(e){var t=[];return e.forEach((function(e){return t.push(e)})),t}function kt(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 Ct(e,t,n){var i=e.get(t);i&&i.push(n)||e.set(t,[n])}function It(e,t,n){var i=e.get(t);i&&i.splice(i.indexOf(n)>>>0,1)}var At,Lt,Ot=(At=new Map,Lt=new Map,{on:function(e,t){Ct(At,e,t)},before:function(e,t){Ct(Lt,e,t)},off:function(e,t){It(At,e,t)},offBefore:function(e,t){It(Lt,e,t)},emit:function(e,t){(Lt.get(e)||[]).concat(At.get(e)||[]).slice().map((function(e){e(t)}))},clear:function(){Lt.clear(),At.clear()}});if("undefined"!=typeof document&&"undefined"!=typeof window){var Rt=function(e){"pagehide"!==e.type&&"hidden"!==document.visibilityState||Ot.emit("internal:hide",e)};document.addEventListener("visibilitychange",Rt),window.addEventListener("pagehide",Rt)}var Nt=Uint8Array,Pt=Uint16Array,xt=Uint32Array,Mt=new Nt([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]),Dt=new Nt([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]),Ut=new Nt([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),Bt=function(e,t){for(var n=new Pt(31),i=0;i<31;++i)n[i]=t+=1<<e[i-1];var r=new xt(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]},Ft=Bt(Mt,2),qt=Ft[0],Ht=Ft[1];qt[28]=258,Ht[258]=28;for(var jt=Bt(Dt,0)[1],zt=new Pt(32768),Gt=0;Gt<32768;++Gt){var Wt=(43690&Gt)>>>1|(21845&Gt)<<1;Wt=(61680&(Wt=(52428&Wt)>>>2|(13107&Wt)<<2))>>>4|(3855&Wt)<<4,zt[Gt]=((65280&Wt)>>>8|(255&Wt)<<8)>>>1}var Kt=function(e,t,n){for(var i=e.length,r=0,o=new Pt(t);r<i;++r)e[r]&&++o[e[r]-1];var s,a=new Pt(t);for(r=0;r<t;++r)a[r]=a[r-1]+o[r-1]<<1;if(n){s=new Pt(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[zt[d]>>>c]=l}else for(s=new Pt(i),r=0;r<i;++r)e[r]&&(s[r]=zt[a[e[r]-1]++]>>>15-e[r]);return s},Vt=new Nt(288);for(Gt=0;Gt<144;++Gt)Vt[Gt]=8;for(Gt=144;Gt<256;++Gt)Vt[Gt]=9;for(Gt=256;Gt<280;++Gt)Vt[Gt]=7;for(Gt=280;Gt<288;++Gt)Vt[Gt]=8;var Yt=new Nt(32);for(Gt=0;Gt<32;++Gt)Yt[Gt]=5;var Jt=Kt(Vt,9,0),Xt=Kt(Yt,5,0),Qt=function(e){return(e+7)/8|0},Zt=function(e,t,n){n<<=7&t;var i=t/8|0;e[i]|=n,e[i+1]|=n>>>8},$t=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},en=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[cn,0];if(1==r){var s=new Nt(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 Pt(h+1),f=tn(n[u-1],p,0);if(f>t){i=0;var m=0,g=f-t,v=1<<g;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+=v-(1<<f-p[y]),p[y]=t}for(m>>>=g;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 Nt(p),f]},tn=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},nn=function(e){for(var t=e.length;t&&!e[--t];);for(var n=new Pt(++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]},rn=function(e,t){for(var n=0,i=0;i<t.length;++i)n+=e[i]*t[i];return n},on=function(e,t,n){var i=n.length,r=Qt(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)},sn=function(e,t,n,i,r,o,s,a,c,l,u){Zt(t,u++,n),++r[256];for(var d=en(r,15),h=d[0],p=d[1],f=en(o,15),m=f[0],g=f[1],v=nn(h),y=v[0],b=v[1],E=nn(m),_=E[0],w=E[1],T=new Pt(19),S=0;S<y.length;++S)T[31&y[S]]++;for(S=0;S<_.length;++S)T[31&_[S]]++;for(var k=en(T,7),C=k[0],I=k[1],A=19;A>4&&!C[Ut[A-1]];--A);var L,O,R,N,P=l+5<<3,x=rn(r,Vt)+rn(o,Yt)+s,M=rn(r,h)+rn(o,m)+s+14+3*A+rn(T,C)+(2*T[16]+3*T[17]+7*T[18]);if(P<=x&&P<=M)return on(t,u,e.subarray(c,c+l));if(Zt(t,u,1+(M<x)),u+=2,M<x){L=Kt(h,p,0),O=h,R=Kt(m,g,0),N=m;var D=Kt(C,I,0);for(Zt(t,u,b-257),Zt(t,u+5,w-1),Zt(t,u+10,A-4),u+=14,S=0;S<A;++S)Zt(t,u+3*S,C[Ut[S]]);u+=3*A;for(var U=[y,_],B=0;B<2;++B){var F=U[B];for(S=0;S<F.length;++S){var q=31&F[S];Zt(t,u,D[q]),u+=C[q],q>15&&(Zt(t,u,F[S]>>>5&127),u+=F[S]>>>12)}}}else L=Jt,O=Vt,R=Xt,N=Yt;for(S=0;S<a;++S)if(i[S]>255){q=i[S]>>>18&31,$t(t,u,L[q+257]),u+=O[q+257],q>7&&(Zt(t,u,i[S]>>>23&31),u+=Mt[q]);var H=31&i[S];$t(t,u,R[H]),u+=N[H],H>3&&($t(t,u,i[S]>>>5&8191),u+=Dt[H])}else $t(t,u,L[i[S]]),u+=O[i[S]];return $t(t,u,L[256]),u+O[256]},an=new xt([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),cn=new Nt(0),ln=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}(),un=function(e,t,n){for(;n;++t)e[t]=n,n>>>=8};function dn(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=ln[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 Nt(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=on(c,l+1,e.subarray(u,d))}else{for(var h=an[t-1],p=h>>>13,f=8191&h,m=(1<<n)-1,g=new Pt(32768),v=new Pt(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 xt(25e3),w=new Pt(288),T=new Pt(32),S=0,k=0,C=(u=0,0),I=0,A=0;u<s;++u){var L=E(u),O=32767&u,R=v[L];if(g[O]=R,v[L]=O,I<=u){var N=s-u;if((S>7e3||C>24576)&&N>423){l=sn(e,c,0,_,w,T,k,C,A,u-A,l),C=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=O-R&32767;if(N>2&&L==E(u-U))for(var B=Math.min(p,N)-1,F=Math.min(32767,u),q=Math.min(258,N);U<=F&&--D&&O!=R;){if(e[u+x]==e[u+x-U]){for(var H=0;H<q&&e[u+H]==e[u+H-U];++H);if(H>x){if(x=H,M=U,H>B)break;var j=Math.min(U,H-2),z=0;for(P=0;P<j;++P){var G=u-U+P+32768&32767,W=G-g[G]+32768&32767;W>z&&(z=W,R=G)}}}U+=(O=R)-(R=g[O])+32768&32767}if(M){_[C++]=268435456|Ht[x]<<18|jt[M];var K=31&Ht[x],V=31&jt[M];k+=Mt[K]+Dt[V],++w[257+K],++T[V],I=u+x,++S}else _[C++]=e[u],++w[e[u]]}}l=sn(e,c,o,_,w,T,k,C,A,u-A,l),!o&&7&l&&(l=on(c,l+1,cn))}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?Pt:4==e.BYTES_PER_ELEMENT?xt:Nt)(n-t);return i.set(e.subarray(t,n)),i}(a,0,i+Qt(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&&un(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),un(a,c-8,n.d()),un(a,c-4,i),a}var hn="undefined"!=typeof TextDecoder&&new TextDecoder;try{hn.decode(cn,{stream:!0})}catch(er){}function pn(){return"undefined"!=typeof window&&"function"==typeof window.fetch}function fn(){try{return pn()&&"keepalive"in new Request("")}catch(e){return!1}}function mn(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 gn(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=dn((new TextEncoder).encode(t)),i["content-encoding"]="gzip"}catch(e){}return{body:o,keepalive:n,credentials:"include",headers:i,method:"POST",mode:"cors"}}function vn(e){return e&&"message"in e?e.message:"UNKNOWN_ERROR"}var yn,bn="undefined"!=typeof navigator&&"sendBeacon"in navigator,En=fn()?function(e,t,n,i){return new Promise((function(r){fetch(e,gn({body:t,keepalive:!0,headers:n,compress:i})).catch((function(){return fetch(e,gn({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:vn(e)})}))}))}:function(e,t,n,i){return new Promise((function(r){if(bn){var o=!1;try{o=navigator.sendBeacon(e,t)}catch(e){}if(o)return void r({type:"unknown",drop:!1})}fetch(e,gn({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:vn(e)})}))}))};function _n(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 wn(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 Tn(){return yn||(yn=wn("idb-queue","default")),yn}function Sn(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))},_n(e.transaction)}function kn(){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]:Tn();return t("readwrite",(function(t){return Sn(t,e)}))}var Cn=!1;function In(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]:Tn();return n("readwrite",(function(n){return n.put(e),_n(n.count()).then((function(e){if(!(e<=t.maxNumber))return Sn(n,t)}))})).catch((function(e){if(e&&"QuotaExceededError"===e.name)return kn(t,n)}))}function An(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]:Tn();return Cn?Promise.resolve():In(e,t,n)}function Ln(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())},_n(t.transaction).then((function(){return i}))}))}function On(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())},_n(t.transaction).then((function(){return i}))}))}function Rn(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Tn();return On(e,t,"next")}function Nn(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Tn();return On(e,t,"prev")}function Pn(){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 xn(e){"undefined"!=typeof window&&window.__DEBUG_BEACON_TRANSPORTER&&console.debug("[beacon-transporter] ",e())}function Mn(e){"undefined"!=typeof window&&window.__DEBUG_BEACON_TRANSPORTER&&console.error("[beacon-transporter] ",e())}function Dn(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 Un(e,t){var n=0;return{throttledFn:function(){var i=Date.now();i-n>t&&(xn((function(){return"[throttle] Run fn() at "+String(i)})),e(),n=i)},resetThrottle:function(){n=0}}}var Bn=function(){function e(t){var n=this,i=arguments.length>1&&void 0!==arguments[1]&&arguments[1];Ue(this,e),qe(this,"config",void 0),qe(this,"compress",void 0),qe(this,"throttleControl",void 0),qe(this,"withStore",void 0),qe(this,"disablePersistence",!1),this.config=t,this.compress=i;var r=t.measureIDB;r&&performance.mark(r.createStartMark),this.withStore=wn(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=Un(this.replayEntries.bind(this),t.throttleWait)}return Fe(e,[{key:"onNotify",value:function(){this.disablePersistence||this.throttleControl.throttledFn()}},{key:"push",value:function(e){var t=this;if(!this.disablePersistence){var n=function(){xn((function(){return"Persisting to DB "+e.url})),An(e,t.config,t.withStore).then((function(){t.throttleControl.resetThrottle(),xn((function(){return"push completed"}))})).catch((function(){t.disablePersistence=!0,Mn((function(){return"push failed"}))}))};this.config.useIdle?Dn(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]:Tn();return Cn=!0,e("readwrite",(function(e){return e.clear(),_n(e.transaction).finally((function(){return Cn=!1}))}))}(this.withStore).catch((function(){e.disablePersistence=!0,Mn((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([]):Rn(t,this.withStore).catch((function(){return e.disablePersistence=!0,Mn((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([]):Nn(t,this.withStore).catch((function(){return e.disablePersistence=!0,Mn((function(){return"peekBack failed"})),[]}))}},{key:"replayEntries",value:function(){var e=this;if(!this.disablePersistence){var t=function(){xn((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]:Tn();return Ln(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 xn((function(){return"header: ".concat(String(e.config.headerName),"; attemptCount: ").concat(u)})),null===(n=(i=e.config).onBeforeRetry)||void 0===n||n.call(i,s),En(o,s,Pn(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 xn((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),xn((function(){return"Replaying the entry failed, pushing back to IDB: "+JSON.stringify({url:o,timestamp:c,statusCode:l},null,2)})),An({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&&Mn((function(){return"Replay entry failed: ".concat(t.message)}))}))};this.config.useIdle?Dn(t):t()}}}]),e}(),Fn=function(){function e(){Ue(this,e)}return Fe(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}(),qn=function(){function e(t,n){Ue(this,e),qe(this,"queue",void 0),qe(this,"beaconListeners",new Set),this.queue=e.hasSupport&&!n.disablePersistenceRetry?new Bn(t,n.compress):new Fn}return Fe(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}();qe(qn,"hasSupport","undefined"!=typeof globalThis&&!!globalThis.indexedDB);var Hn=[502,504],jn=[429,503],zn=function(){function e(t,n,i,r){var o=this,s=arguments.length>4&&void 0!==arguments[4]&&arguments[4];Ue(this,e),qe(this,"url",void 0),qe(this,"body",void 0),qe(this,"config",void 0),qe(this,"persistenceConfig",void 0),qe(this,"compress",void 0),qe(this,"timestamp",void 0),qe(this,"isClearQueuePending",!1),qe(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 Fe(e,[{key:"send",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.persistenceConfig.db.onClear(this.onClearCallback);var n=this.retryLimit;return this.retry((function(t){return En(e.url,e.body,t,e.compress)}),n,t).finally((function(){xn((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(Pn(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(xn((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 xn((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 Gn(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&&fn()&&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:Hn,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:jn,maxNumber:1e3,batchEvictionNumber:300,throttleWait:3e5},t.persistenceRetry);r.headerName=r.headerName||i.headerName,e=new qn(r,{compress:t.compress,disablePersistenceRetry:t.disablePersistenceRetry})}return{beacon:function(r,o,s){var a;return pn()?new zn(r,o,i,{db:e,disabled:Boolean(t.disablePersistenceRetry),statusCodes:(null===(a=t.persistenceRetry)||void 0===a?void 0:a.statusCodes)||jn},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){Ot.emit("internal:error",{tags:["core-web-tracking:retry:idb"],reason:e})})):(e.retryBeacon.shouldRetry=!0,Promise.resolve())):void 0})).catch((function(e){Ot.emit("internal:error",{tags:["core-web-tracking:retry:setup"],reason:e})}))}var Wn=function(){function e(t){Ue(this,e),qe(this,"host",void 0),this.host=t}return Fe(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&&Gn(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){Ot.emit("internal:error",{tags:["core-web-tracking:retry:logout"],reason:e})}))}},{key:"sendPayload",value:function(e,t,n,i){var r,o=this.getRetryTreatment();fn()&&"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){Ot.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||!pn()||"undefined"==typeof Promise?mn(e,JSON.stringify(t),{headers:n}):En(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}(),Kn="undefined"!=typeof window&&"undefined"!=typeof document,Vn=/JSESSIONID="?([^";]+)"?/,Yn="",Jn=0;function Xn(){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?Vn:i;if(!Yn||Date.now()-Jn>n){var o=Kn&&document.cookie.match(r);Yn=o&&o[1]||"",Jn=Date.now()}return Yn}var Qn=function(){function e(t){Ue(this,e),qe(this,"networkTransporter",void 0),qe(this,"inactive",void 0),qe(this,"mpName",void 0),qe(this,"endpoint",void 0),qe(this,"debug",void 0),this.networkTransporter=new Wn(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=$n;break;case"https://www.linkedin-ei.com/li/track/validate":n=!0,t=Zn;break;case"https://www.linkedin-ei.com/li/track":t=Zn;break;default:n=!0,t=Zn}return{endpoint:t,debug:n}}(t.endpoint);this.endpoint=n.endpoint,this.debug=n.debug}return Fe(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":Xn(),"x-restli-protocol-version":"2.0.0"},n={fragmentEvent:e,debug:this.debug};this.networkTransporter.sendPayload(this.endpoint,n,t)}}}]),e}(),Zn="https://www.linkedin-ei.com/trackingMonitoring/?action=saveClientFragment",$n="https://www.linkedin.com/trackingMonitoring/?action=saveClientFragment";function ei(e){return"string"==typeof e}function ti(e){return ei(e)?e:e.topicName||e.eventName}function ni(e){return ei(e)?e:e.eventName}var ii,ri,oi=function(){function e(t){var n,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Ue(this,e),qe(this,"host",void 0),qe(this,"cmoTransporter",void 0),qe(this,"clientMonitoringInstanceId",vt()),qe(this,"currentContext",ci()),qe(this,"appState",{}),qe(this,"estimatedFragmentSize",0),qe(this,"fragmentSizeLimit",void 0),qe(this,"activeFragmentEvent",void 0),qe(this,"debounceTimer",void 0),this.host=t,this.cmoTransporter=i.cmoTransporter||new Qn(t),this.fragmentSizeLimit=(null===(n=t.clientMonitoringConfig)||void 0===n?void 0:n.fragmentSizeLimit)||10240,this.activeFragmentEvent=ai(this.clientMonitoringInstanceId,0,0,!1,this.getEventHeaders())}return Fe(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=De(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:ni(t),eventTopic:ti(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=ai(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=li(e.trackingId));var t=this.currentContext.pageInstance;return t.trackingId=li(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 si(e){return ii||(ii=new oi(e)),{getCurrentInstanceId:function(){return ii.getCurrentInstanceId()},logEventGenerated:function(e){return ii.logEventGenerated(e)},logEventReadyToSend:function(e){ii.logEventReadyToSend(e)},logEventSent:function(e){ii.logEventSent(e)},logPersistedEventSent:function(e,t){ii.logEventSent(t,e)},logNetworkResponseCode:function(e){ii.logNetworkResponseCode(e)},logPersistedNetworkResponseCode:function(e,t){var n;null===(n=ii)||void 0===n||n.logNetworkResponseCode(t,e)},logFailedEvent:function(e,t,n,i){ii.logFailedEvent(e,t,n,i)},logPersistedFailedEvent:function(e,t,n,i,r){ii.logFailedEvent(t,n,i,r,e)},flush:function(){ii.flush()},destroy:function(){ii=void 0},isDestroyed:function(){return void 0===ii},setCurrentContext:function(e){ii.setCurrentContext(e)},updateAppState:function(e){ii.updateAppState(e)}}}function ai(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 ci(){return{pageKey:"unknown",pageInstance:bt("unknown")}}function li(e){return Array.isArray(e)?gt(e):16===e.length?e:function(e){return"string"==typeof e&&!!e.match(yt)}(e)?atob(e):gt(function(e){return $e(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"}(ri||(ri={}));var ui="PageViewEvent",di=function(){function e(t){var n=this;Ue(this,e),qe(this,"host",void 0),qe(this,"queue",void 0),qe(this,"preContextQueue",void 0),qe(this,"debounceTimer",void 0),qe(this,"unloadHandlers",void 0),qe(this,"maxQueueSize",void 0),qe(this,"flushDebounceTime",void 0),qe(this,"trackingEventListeners",[]),qe(this,"onHideHandler",(function(){n.forceFlush()})),qe(this,"networkTransporter",void 0),qe(this,"clientMonitoringConn",void 0),qe(this,"clientSequenceNumberCounter",void 0),qe(this,"isTimerRunning",void 0),qe(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,Ot.on("internal:hide",this.onHideHandler),this.networkTransporter=new Wn(t),this.isLixEnabled("pemberly.tracking.monitoring")&&t.clientMonitoringConfig&&!t.inactive&&(this.clientMonitoringConn=si(t)),this.enableSequenceNumberLix=this.isLixEnabled("tracking.data-loss-web.sequence-number"),this.enableSequenceNumberLix&&(this.getSequenceNumberFromIDB(),this.updateSequenceNumberOnExit(),this.isTimerRunning=!1)}return Fe(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(ri.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,ri.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(ti(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,Ot.off("internal:hide",this.onHideHandler)}},{key:"forceFlush",value:function(){var e=this;this.populatePreContextQueue({pageInstance:bt("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;kt("read").then((function(t){e.clientSequenceNumberCounter=t||0})).catch((function(e){Ot.emit("internal:error",{tags:["core-web-tracking:sequence-number:idb-read"],reason:e})}))}},{key:"updateSequenceNumberToIDB",value:function(){kt("update",this.clientSequenceNumberCounter).catch((function(e){Ot.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=wt(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===ui:e.eventName===ui}(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 g={header:c(m,e.meta.header||{}),requestHeader:c(f,e.meta.requestHeader||{})},v=e.meta.clientMonitoringInstanceId,y=e.meta.clientMonitoringInstanceEventNumber;return v&&c(g.header,{clientMonitoringInstanceId:v,clientMonitoringInstanceEventNumber:y}),c(e.body,g)}},{key:"populatePreContextQueue",value:function(e){var t,n=this.preContextQueue;return this.preContextQueue=[],null===(t=this.clientMonitoringConn)||void 0===t||t.logEventReadyToSend(n.length),n.map((function(t){return t.meta.context=e,"function"==typeof t.body&&(t.body=t.body(e)),t}))}},{key:"trigger",value:function(e,t){this.trackingEventListeners.forEach((function(n){return n(e,t)}))}},{key:"requestFlush",value:function(e){var t=this;e((function(){t.forceFlush()}),{timeout:1e4})}},{key:"flush",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=this.host.api.requestIdleCallback;e||!t?this.sendPayload():this.requestFlush(t)}},{key:"batchFire",value:function(){var e=this;this.queue.length>this.maxQueueSize?this.flush():(this.debounceTimer&&clearTimeout(this.debounceTimer),this.debounceTimer=setTimeout((function(){return e.flush()}),this.flushDebounceTime))}},{key:"sendPayload",value:function(){var e=this,t=this.queue;if(0!==t.length){this.enableSequenceNumberLix&&"undefined"!=typeof window&&!1===this.isTimerRunning&&(this.isTimerRunning=!0,setInterval((function(){e.updateSequenceNumberToIDB()}),5e3)),this.queue=[];var n,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(ri.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 hi,pi=function(){function e(t,n){Ue(this,e),this.clientBreadcrumbType=t,this.id=n}return Fe(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 fi(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 mi(e){return"retryConfig"in e.host}!function(e){e.UNKNOWN="UNKNOWN",e.ME_NOTIFICATION="ME_NOTIFICATION",e.ME_NOTIFICATION_ACTION="ME_NOTIFICATION_ACTION"}(hi||(hi={}));var gi,vi,yi,bi=function(){function e(t,n){var i,r;if(Ue(this,e),qe(this,"transporter",void 0),qe(this,"delegate",void 0),qe(this,"currentContext",void 0),qe(this,"appState",void 0),qe(this,"previousAppContext",void 0),qe(this,"customTransporters",void 0),qe(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 di(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=si(t.host))}return Fe(e,[{key:"host",get:function(){return this.transporter.host}},{key:"checkAndEnablePersistentRetry",value:function(){mi(this.transporter)&&this.transporter.checkAndEnablePersistentRetry(this.delegate)}},{key:"flushAndClearPersistedEventsOnLogout",value:function(){this.forceFlush();var e=mi(this.transporter)?this.transporter.clearPersistedEventsOnLogout():null;return null!=e?e:this.host.api.Promise.resolve()}},{key:"getCurrentContext",value:function(){if(this.currentContext)return wt(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,fi(t));if(this.setCurrentContext(i.to),!n.suppressEventsFiring)return this.fireNavEvents(i)}},{key:"setCurrentContext",value:function(e){var t;this.currentContext=wt(e,this.host.api),null===(t=this.clientMonitoringConn)||void 0===t||t.setCurrentContext(wt(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=Et(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=ti(e),o=void 0===t?"undefined":null===t?"null":Ge(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(ri.MISSING_REQUIRED_PROPERTIES,e,s,a)}throw new Error(s)}var c=i||[];if(c.length>0){var l=c.map((function(e){return pi.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(ei(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=ti(r.id),c="Could not find custom transporter: ".concat(o);if(this.clientMonitoringConn){var l=this.clientMonitoringConn.logEventGenerated(a);this.clientMonitoringConn.logFailedEvent(ri.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 bt(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),Ot.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 Et((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&&wt(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}}}]),e}();function Ei(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;Ue(this,e),qe(this,"core",void 0),qe(this,"protocol",void 0),qe(this,"throttleKeySet",new Set),qe(this,"config",void 0),qe(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},Ot.on("internal:error",this.reportTransporterError)}Fe(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,g=void 0===m?0:m,v=e.columnNumber,y=void 0===v?0:v,b=this.core.host,E=b.appId,_=b.appVersion,w=b.service,T=b.serviceInstance,S=b.treeID,k=void 0===S?"":S,C=b.api,I=C.Promise,A=C.location,L=A.host,O=A.pathname,R=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:g,m:l,s:h,t:u,u:f},h:P,l:n.protocol,o:L,p:O,pageKey:e.pageKey,q:R,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=Ei(u+l+h+i.join("")+s);return this.throttleKeySet.has(D)?I.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(),Ot.off("internal:error",this.reportTransporterError)}}])}();var _i=function(){function e(){Ue(this,e),qe(this,"userTimingEntries",[]),qe(this,"longTasks",[]),qe(this,"resourceTimingEntries",[]),qe(this,"cdnData",void 0)}return Fe(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(Ti),cdnData:this.cdnData}}}]),e}(),wi=["resourceTreeId","name","entryType","startTime","duration","initiatorType","nextHopProtocol","redirectStart","redirectEnd","fetchStart","domainLookupStart","domainLookupEnd","connectStart","connectEnd","secureConnectionStart","requestStart","responseStart","responseEnd","transferSize","encodedBodySize","decodedBodySize","workerStart"];function Ti(e){return wi.reduce((function(t,n){var i=e[n];return void 0!==i&&(t[n]=i),t}),{})}function Si(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};vi=Object.assign(Object.assign({},n),t),yi=function(e,t){return e.nodeType===Node.DOCUMENT_NODE?e:e===t.root?e.ownerDocument:e}(vi.root,n);var i=ki(e,gi.All,(function(){return ki(e,gi.Two,(function(){return ki(e,gi.One)}))}));if(i){var r=xi(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>vi.optimizedMinLength)for(var o=1;o<t.length-1;o++){if(i.counter>vi.maxNumberOfTries)return r;i.counter+=1;var s=He(t);s.splice(o,1);var a=Ii(s);if(i.visited.has(a))return r;Li(s)&&Mi(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]),Ii(i)}throw new Error("Selector was not found.")}function ki(e,t,n){for(var i=null,r=[],o=e,s=0,a=function(){var e=Ni(function(e){var t=e.getAttribute("id");return t&&vi.idName(t)?{name:"#"+Hi(t,{isIdentifier:!0}),penalty:0}:null}(o))||Ni.apply(void 0,He(function(e){return Array.from(e.attributes).filter((function(e){return vi.attr(e.name,e.value)})).map((function(e){return{name:"["+Hi(e.name,{isIdentifier:!0})+'="'+Hi(e.value)+'"]',penalty:.5}}))}(o)))||Ni.apply(void 0,He(function(e){return Array.from(e.classList).filter(vi.className).map((function(e){return{name:"."+Hi(e,{isIdentifier:!0}),penalty:1}}))}(o)))||Ni(function(e){var t=e.tagName.toLowerCase();return vi.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===gi.All)a&&(e=e.concat(e.filter(Ri).map((function(e){return Oi(e,a)}))));else if(t===gi.Two)e=e.slice(0,1),a&&(e=e.concat(e.filter(Ri).map((function(e){return Oi(e,a)}))));else if(t===gi.One){var c=Me(e=e.slice(0,1),1)[0];a&&Ri(c)&&(e=[Oi(c,a)])}var l,u=De(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>=vi.seedMinLength&&(i=Ci(r,n)))return"break";o=o.parentElement,s++};o&&o!==vi.root.parentElement&&"break"!==a(););return i||(i=Ci(r,n)),i}function Ci(e,t){var n=xi(function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];if(t.length>0){var i,r=[],o=De(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>vi.threshold)return t?t():null;var i,r=De(n);try{for(r.s();!(i=r.n()).done;){var o=i.value;if(Li(o))return o}}catch(e){r.e(e)}finally{r.f()}return null}function Ii(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 Ai(e){return e.map((function(e){return e.penalty})).reduce((function(e,t){return e+t}),0)}function Li(e){switch(yi.querySelectorAll(Ii(e)).length){case 0:throw new Error("Can't select any node with this selector: ".concat(Ii(e)));case 1:return!0;default:return!1}}function Oi(e,t){return{name:e.name+":nth-child(".concat(t,")"),penalty:e.penalty+1}}function Ri(e){return"html"!==e.name&&!e.name.startsWith("#")}function Ni(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var i=t.filter(Pi);return i.length>0?i:null}function Pi(e){return null!=e}function xi(e){return Array.from(e).sort((function(e,t){return Ai(e)-Ai(t)}))}function Mi(e,t){return yi.querySelector(Ii(e))===t}!function(e){e[e.All=0]="All",e[e.Two=1]="Two",e[e.One=2]="One"}(gi||(gi={}));var Di,Ui=/[ -,\.\/:-@\[-\^`\{-~]/,Bi=/[ -,\.\/:-@\[\]\^`\{-~]/,Fi=/(^|\\+)?(\\[A-F0-9]{1,6})\x20(?![a-fA-F0-9\x20])/g,qi={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({},qi),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?Ui.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&&Bi.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(Fi,(function(e,t,n){return t&&t.length%2?e:(t||"")+n})),!r&&n.wrap?i+s+i:s}function ji(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 zi(e){var t=e||performance;return Math.round(t.now())}function Gi(e){if(!e)return"null";if(e.nodeType===Node.ELEMENT_NODE)try{return Si(e,{idName:function(e){return 0!==e.indexOf("ember")}})}catch(e){return"serialization_error"}var t=Gi(e.parentElement||void 0);return"".concat(t," > nodeType(").concat(e.nodeType,")")}function Wi(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 Ki(e){var t=[];return e.forEach((function(e){return t.push(e)})),t}var Vi,Yi=function(){function e(t){Ue(this,e),qe(this,"hostApis",void 0),qe(this,"hostnameProperties",void 0),qe(this,"usedHostnames",void 0),qe(this,"abortController",void 0),qe(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 Fe(e,[{key:"clearUsedHostnames",value:function(){this.usedHostnames=new Set}},{key:"getPresentData",value:function(){var e=this;return St(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=Tt(St(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,(Di=Di||i.createElement("a")).href=n,Di.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}(),Ji=function(){function e(t,n,i,r){Ue(this,e),qe(this,"hostApis",void 0),qe(this,"statics",void 0),qe(this,"options",void 0),qe(this,"allowTimingOrigin",void 0),qe(this,"collectResourceTimings",void 0),qe(this,"collectCdnData",void 0),qe(this,"perfObserver",void 0),qe(this,"renderTimings",new Map),qe(this,"urlToTreeId",new Map),qe(this,"cdnDataProvider",void 0),qe(this,"observables",new _i),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 Yi(t))}return Fe(e,[{key:"recordTreeId",value:function(e,t){this.collectResourceTimings&&this.urlToTreeId.set(function(e,t){return(Di=Di||t.createElement("a")).href=e,Di.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:ji(this.hostApis.performance,this.allowTimingOrigin)})}},{key:"recordRenderEnd",value:function(e){var t=this.renderTimings.get(e);t&&(t.renderEnd=t.renderEnd||ji(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=Wi(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,Xi.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?Tt(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=Wi(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:Ki(this.renderTimings),networkInformationMetrics:Qi(this.hostApis.connection)};return this.renderTimings.clear(),e}}]),e}(),Xi=["loadEventEnd","loadEventStart","domComplete","domContentLoadedEventEnd","domContentLoadedEventStart","domInteractive","domLoading","responseEnd","responseStart","requestStart","secureConnectionStart","connectEnd","connectStart","domainLookupEnd","domainLookupStart","fetchStart","redirectEnd","redirectStart","unloadEventEnd","unloadEventStart","navigationStart"];function Qi(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"}(Vi||(Vi={}));var Zi=(qe(xe={},"web-ui-framework","EMBER"),qe(xe,"app-id","linkedin.rum.tracking"),qe(xe,"app-version","unknown"),qe(xe,"is-single-page-app",!0),qe(xe,"user-timing-mark-enabled",!1),qe(xe,"user-timing-measure-enabled",!0),qe(xe,"beacon-source","apps"),qe(xe,"enable-rs-timing",!0),qe(xe,"enable-cdn-tracking",!1),qe(xe,"async-plugins-timeout",5e3),qe(xe,"beacon-timeout",3e4),qe(xe,"enable-memory-measurement",!1),qe(xe,"pageKeyPrefix",""),xe),$i=function(){function e(t,n,i){Ue(this,e),qe(this,"featureName",void 0),qe(this,"trackingCore",void 0),qe(this,"rumConfig",void 0),qe(this,"observing",!1),qe(this,"basePageTreeId",void 0),qe(this,"startPageInstance",void 0),qe(this,"startMemory",void 0),qe(this,"reportTimeouts",[]),this.featureName=t,this.trackingCore=n,this.rumConfig=i}return Fe(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)||bt("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:zi(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}();qe($i,"checkpoints",[1,3,10,30,90,180,300]);var er,tr,nr,ir,rr,or=Fe((function e(t,n,i){Ue(this,e),qe(this,"webUIFramework",void 0),qe(this,"timeSource",void 0),qe(this,"isSinglePageApp",void 0),qe(this,"appRenderMode",void 0),qe(this,"isAppRenderFailed",void 0),qe(this,"pageLoadMode","INITIAL"),qe(this,"isSSL",void 0),qe(this,"treeId",void 0),qe(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})),sr=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)}},ar=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){}},cr=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)},lr=function(e){addEventListener("pageshow",(function(t){t.persisted&&e(t)}),!0)},ur=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)))}},dr=-1,hr=function(){return"hidden"===document.visibilityState?0:1/0},pr=function(){cr((function(e){var t=e.timeStamp;dr=t}),!0)},fr=function(){return dr<0&&(dr=hr(),pr(),lr((function(){setTimeout((function(){dr=hr(),pr()}),0)}))),{get firstHiddenTime(){return dr}}},mr=!1,gr=-1,vr=function(e,t){mr||(function(e,t){var n,i=fr(),r=sr("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:ar("paint",o);(s||a)&&(n=ur(e,r,t),s&&o(s),lr((function(i){r=sr("FCP"),n=ur(e,r,t),requestAnimationFrame((function(){requestAnimationFrame((function(){r.value=performance.now()-i.timeStamp,n(!0)}))}))})))}((function(e){gr=e.value})),mr=!0);var n,i=function(t){gr>-1&&e(t)},r=sr("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=ar("layout-shift",a);c&&(n=ur(i,r,t),cr((function(){c.takeRecords().map(a),n(!0)})),lr((function(){o=0,gr=-1,r=sr("CLS",0),n=ur(i,r,t)})))},yr={passive:!0,capture:!0},br=new Date,Er=function(e,t){er||(er=t,tr=e,nr=new Date,Tr(removeEventListener),_r())},_r=function(){if(tr>=0&&tr<nr-br){var e={entryType:"first-input",name:er.type,target:er.target,cancelable:er.cancelable,startTime:er.timeStamp,processingStart:er.timeStamp+tr};ir.forEach((function(t){t(e)})),ir=[]}},wr=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(){Er(e,t),r()},i=function(){r()},r=function(){removeEventListener("pointerup",n,yr),removeEventListener("pointercancel",i,yr)};addEventListener("pointerup",n,yr),addEventListener("pointercancel",i,yr)}(t,e):Er(t,e)}},Tr=function(e){["mousedown","keydown","touchstart","pointerdown"].forEach((function(t){return e(t,wr,yr)}))},Sr=function(e,t){var n,i=fr(),r=sr("FID"),o=function(e){e.startTime<i.firstHiddenTime&&(r.value=e.processingStart-e.startTime,r.entries.push(e),n(!0))},s=ar("first-input",o);n=ur(e,r,t),s&&cr((function(){s.takeRecords().map(o),s.disconnect()}),!0),s&&lr((function(){var i;r=sr("FID"),n=ur(e,r,t),ir=[],tr=-1,er=null,Tr(addEventListener),i=o,ir.push(i),_r()}))},kr={},Cr=function(e,t){var n,i=fr(),r=sr("LCP"),o=function(e){var t=e.startTime;t<i.firstHiddenTime&&(r.value=t,r.entries.push(e)),n()},s=ar("largest-contentful-paint",o);if(s){n=ur(e,r,t);var a=function(){kr[r.id]||(s.takeRecords().map(o),s.disconnect(),kr[r.id]=!0,n(!0))};["keydown","click"].forEach((function(e){addEventListener(e,a,{once:!0,capture:!0})})),cr(a,!0),lr((function(i){r=sr("LCP"),n=ur(e,r,t),requestAnimationFrame((function(){requestAnimationFrame((function(){r.value=performance.now()-i.timeStamp,kr[r.id]=!0,n(!0)}))}))}))}},Ir=["LCP","FID","CLS"],Ar={LCP:"LargestContentfulPaint",FID:"FirstInputDelay",CLS:"CumulativeLayoutShift"},Lr={},Or=function(){var e;if(!Kn)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}(),Rr=!1,Nr=[],Pr={LCP:"largest-contentful-paint",FID:"first-input",CLS:"layout-shift"};function xr(){var e=!0===window.__test__resetWebVitalsState;if(!Rr||e){e&&(Nr=[]),Ir.forEach(Mr);var t=Symbol();rr=t,[Cr,Sr,vr].forEach((function(e){return e(Dr.bind(null,t),!0)})),[Cr,Sr,vr].forEach((function(e){return e(Ur.bind(null,t))})),Rr=!0}}function Mr(e){Lr[e]={name:e,value:-1,updateHistory:[]};var t=Pr[e];"undefined"!=typeof PerformanceObserver&&void 0!==PerformanceObserver.supportedEntryTypes&&"string"==typeof t&&PerformanceObserver.supportedEntryTypes.indexOf(t)>-1||(Lr[e].value=-2)}function Dr(e,t){if(e===rr){var n=Lr[t.name],i=zi();n&&(n.updateHistory.push({time:i,data:t}),n.value=t.value),Nr.forEach((function(e){return e(t,i,!1)}))}}function Ur(e,t){e===rr&&Nr.forEach((function(e){return e(t,zi(),!0)}))}var Br=function(){function e(t,n){Ue(this,e),qe(this,"basePageTreeId",void 0),qe(this,"basePageKey",void 0),qe(this,"observing",!1),qe(this,"appContextMap",new Map),qe(this,"rumConfig",void 0),qe(this,"trackingCore",void 0),this.trackingCore=t,this.rumConfig=n}return Fe(e,[{key:"startObserving",value:function(){var e,t,n=this;xr(),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",Ir.forEach((function(e){var t;-2===(null===(t=Lr[e])||void 0===t?void 0:t.value)&&n.reportMetric(e)})),t=this.onMetricUpdate.bind(this),Nr.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=Lr[e],n={name:Ar[e]||e};"CLS"===e?n.doubleValue=t.value:n.longValue=Math.round(t.value);var i=Lr[e];if(i){var r=function(e,t,n,i,r){var o={basePageTreeId:e,basePageKey:t,basePageUrl:Or},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:Gi(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:Gi(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":Gi(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;Ue(this,e),qe(this,"core",void 0),qe(this,"config",void 0),qe(this,"collector",void 0),qe(this,"boomerangStart",-1),qe(this,"webVitalsObserver",void 0),qe(this,"appMemoryObserver",void 0),qe(this,"pageMemoryObserver",void 0),qe(this,"liveTokens",new Set),qe(this,"stateWM",new WeakMap),qe(this,"activeToken",void 0),qe(this,"isInitial",void 0),qe(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({},Zi),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 Ji(i.host.api,new or(t,this.config,i.host),this.config,s),this.collector.startObserving(),Ot.before("internal:hide",this.beforeHideHandlerBound)}Fe(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:ji(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 $i("page-memory",this.core,this.config),this.pageMemoryObserver.startObserving(),void 0===this.appMemoryObserver&&(this.appMemoryObserver=new $i("application-memory",this.core,this.config),this.appMemoryObserver.startObserving())),o}},{key:"observeWebVitals",value:function(){void 0===this.webVitalsObserver&&(this.webVitalsObserver=new Br(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=ji(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 Ot.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;Ot.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 Fr="undefined"!=typeof window&&"undefined"!=typeof performance,qr="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",jr(n,t))}function jr(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"ajax";const n=S(document),i=C(document),r=Pe();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 zr(e,t){const n=C(document),i={};n&&(i.interfaceLocale=n);const r={header:{},requestHeader:i,moduleNames:t};e.fireTrackingEvent("ViewModuleImpressionEvent",r)}function Gr(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const t=e.state&&e.state.currentPageInstance||{};let{trackingId:n}=t;return n&&!Wr(n)&&e.convertUuidTrackingIdToBase64&&(n=e.convertUuidTrackingIdToBase64(n)),"".concat(t.pageUrn,";").concat(n)}function Wr(e){return"string"==typeof e&&"=="===e.slice(-2)}function Kr(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const t=Ae({},e),n=p(window.location.href,"originalReferer")||p(window.location.href,"original_referer");return n&&(t.requestHeader=Ae(Ae({},t.requestHeader),{},{referer:n})),Vr(t)}function Vr(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const t=Ae({},e),n=Pe();return n&&(t.requestHeader=Ae(Ae({},t.requestHeader),{},{theme:n.toUpperCase()})),t}!function(){function e(t,n){Ue(this,e),qe(this,"featureKey",void 0),qe(this,"productName",void 0),qe(this,"endPageInstance",void 0),qe(this,"startPageInstance",void 0),qe(this,"isCanceled",!1),qe(this,"featureIdentifier",void 0),qe(this,"name",void 0),qe(this,"startTime",void 0),qe(this,"duration",void 0),qe(this,"marks",[]),qe(this,"spanStarts",new Map),qe(this,"spans",[]),qe(this,"isSpanContainer",!1),qe(this,"basePageTreeId",void 0),qe(this,"isClosed",!1),this.featureKey=t,this.productName=n;var i=n?"::".concat(n):"";this.featureIdentifier="".concat(t).concat(i),this.name=t}Fe(e,[{key:"start",value:function(e){this.startPageInstance=e,Fr&&(this.startTime=zi(),qr&&performance.mark("LI:".concat(this.featureIdentifier,"-start")))}},{key:"mark",value:function(e){Fr&&(this.marks.push({name:e,startTime:zi()}),qr&&(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){Fr&&(this.spanStarts.set(e,zi()),qr&&performance.mark("LI:".concat(this.featureIdentifier,"-span-").concat(e,"-start")))}},{key:"spanEnd",value:function(e,t){if(Fr&&this.spanStarts.has(e)){var n=this.spanStarts.get(e);this.spans.push({name:t||e,startTime:n,duration:zi()-n}),qr&&(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,Fr&&(this.duration=zi()-this.startTime,qr&&!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(Fr){var e={name:this.featureKey,startTime:this.startTime,duration:this.isSpanContainer?-1:this.duration,basePageTreeId:this.basePageTreeId,startPageInstance:this.startPageInstance||bt("unknown"),marks:this.marks,spans:this.spans};return this.productName&&(e.productName=this.productName),e}}},{key:"check",value:function(){if(Fr){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:Yr,ESCAPE:Jr}=O;class Xr{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 J(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=N(e.key),n=t===Yr&&document.activeElement===this._exitButtonEl;(t===Jr||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),y(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))}):(y(this._wrapperEl,"afterOpen"),Promise.resolve());y(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),y(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 Qr(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 Zr=/ /g,$r=/[\s\u0000<>"]|%00/,eo=/\\/,to=/([.]|%2e){2}/i;let no=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 io(e){let t;if("string"!=typeof e)return Qr("jSecure Warning: url must be a string","error"),"invalid://";if(t=e.trim(),t.indexOf(" ")>-1&&(Qr("jSecure Warning: url should not contain spaces: "+e,"warn"),t=t.replace(Zr,"+")),!no.test(t))return Qr("jSecure Error: URL should be absolute with allowed schemas, relative, a hash fragment or query string. "+e,"error"),"invalid://";if($r.test(t))return Qr("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?(Qr("jSecure Error: malformed url path detected: "+i),"invalid://"):eo.test(i)||to.test(i)||to.test(n)?(Qr("jSecure Error: malicious data found in url path: "+i,"error"),"invalid://"):e}const ro={redirect(e){window&&(window.location.href=e)}};function oo(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:window;return e.innerWidth<=769}function so(e){return e.scrollHeight>e.offsetHeight}function ao(e,t){const n=u(e);for(let e=0;e<n.length;e++)n[e]&&1===n[e].nodeType&&t(n[e])}function co(e){return e.classList.contains("hidden")}function lo(e){ho([e])}function uo(e){po([e])}function ho(e){ao(e,e=>{e.classList.add("hidden"),e.setAttribute("aria-hidden","true")})}function po(e){ao(e,e=>{e.classList.remove("hidden"),e.setAttribute("aria-hidden","false")})}function fo(e){if(!e)return"";return e.split("").map(e=>String.fromCharCode(e.charCodeAt(0)+17)).join("")}function mo(e){null==e||e.setAttribute("disabled","disabled"),null==e||e.setAttribute("aria-disabled","true")}function go(e){null==e||e.removeAttribute("disabled"),null==e||e.removeAttribute("aria-disabled")}function vo(){return document.documentElement.classList.contains("safari")}function yo(){return document.documentElement.classList.contains("ios")}const bo={EFFECTIVE_CONNECTION_TYPE:"x-effective-connection-type"};function Eo(){const e=navigator.connection||navigator.mozConnection||navigator.webkitConnection;return e&&e.effectiveType}function _o(e){let t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const i=T(document),r=Eo();return window.tracking.then(o=>(t=o.generateTrackingId(),ne(e,Ae(Ae({},n),{},{method:n.method||"GET",postData:"POST"===n.method&&n.postData?JSON.stringify(n.postData):null,headers:{"content-type":"application/json",[bo.EFFECTIVE_CONNECTION_TYPE]:r,"X-Requested-With":"XMLHttpRequest","x-tracking-id":t,"x-referer-pagekey":i,"X-li-page-instance":"urn:li:page:".concat(i,";").concat(t)}}))))}function wo(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&&so(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")})}}function To(e,t){return e.replace(new RegExp("".concat(t,"=[^&]*&?")),"").replace(new RegExp("[&?]$"),"")}function So(){if(!p(window.location.href,"pwa"))return;const e=To(window.location.href,"pwa");window.history.replaceState({},document.title,e)}function ko(){let e=!1;try{if(window.matchMedia("(display-mode: standalone)").matches){null===sessionStorage.getItem("launchedFromHomeScreen")&&(e=!0,sessionStorage.setItem("launchedFromHomeScreen",""))}}catch(e){}return e}function Co(e){const t=window.location.hash;if(t&&0===t.indexOf(e)){const e=window.location.href.split("#")[0];window.history.replaceState({},document.title,e)}}function Io(e){e&&(document.cookie="".concat(e,"=; expires=Thu, 01-Jan-1970 00:00:01 GMT; path=/;"))}function Ao(e,t,n,i){let r="";if(n){const e=new Date;e.setTime(e.getTime()+n),r="expires=".concat(e.toUTCString())}v(e)&&Io(e);const o=i?"domain=.".concat(i):"",s="".concat(e,"=").concat(t,";").concat(r,";path=/;").concat(o),a="".concat(s,";").concat("secure;samesite=none");document.cookie=a,v(e)||(document.cookie=s)}function Lo(){const e=m(window.location.href,"pwa","noCache",!0);window.location.replace(e)}function Oo(){let e=!1;try{(null===sessionStorage.getItem("previousPage")||1===window.history.length)&&(e=!0)}catch(e){}return e}function Ro(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:document;const n=t.querySelector('meta[name="'.concat(e,'"]'));if(n)return n.getAttribute("content")}function No(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:document;const i=n.querySelector('meta[name="'.concat(e,'"]'));i&&i.setAttribute("content",t)}var Po=Object.freeze({__proto__:null,PREVIOUS_PAGE_KEY:"previousPage",NO_CACHE_PARAM_KEY:"pwa",NO_CACHE_PARAM_VALUE:"noCache",LAUNCHED_FROM_HOME_SCREEN:"launchedFromHomeScreen",isElementHidden:co,hideElement:lo,showElement:uo,hideElements:ho,showElements:po,conceal:fo,getCsrfToken:function(){let e=v("JSESSIONID");return e&&(e=e.replace(/(^"|"$)/g,"")),e||""},cloneWithRemovedElements:function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const i="string"==typeof e?document.querySelector(e):e,r=i.cloneNode(n.deep),o=Array.prototype.concat(t).reduce((e,t)=>{if("string"==typeof t){const n=r.querySelectorAll(t);for(const t of n)e.push(t)}return e},[]);for(const e of o)e.parentElement.removeChild(e);return r},disableButton:mo,enableButton:go,isSafari:vo,isIOS:yo,isMobile:function(){return document.documentElement.classList.contains("android")||yo()},getCurrentPage:function(){const e=document.querySelector('meta[name="pillar"]');return e?e.getAttribute("content"):""},HEADERS:bo,getEffectiveConnectionType:Eo,requestJSONWithDefaultHeaders:_o,initExpandButton:wo,removeQueryParameter:To,removeNoCacheParam:So,isLaunchedFromHomeScreen:ko,removeHashFromUrl:Co,deleteCookie:Io,setCookie:Ao,hardReloadPage:Lo,isFirstPageOfSession:Oo,getMetaTagContent:Ro,setMetaTagContent:No,convertIdToUrn:function(e,t){return Boolean(e)&&Boolean(t)&&"urn:li:".concat(t,":").concat(e)}});const xo="prev",Mo="next";class Do{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?(uo(this._indicatorElement),this._indicatorElement.isActive=!0,this._indicatorElement.addEventListener("click",this._indicatorClickHandler)):(lo(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(B).forEach(e=>{const t=e.getAttribute("tabindex");this._prevTabIndexMap.set(e,t),e.setAttribute("tabindex","-1")})}}_handleScrollAction(e){const t=r(e.target,".slide-list__nav-button"),n=t&&t.dataset.direction;n&&(this._listEl.addEventListener("transitionend",this._boundFireScrollEvent),n===xo?this.prev():n===Mo&&this.next())}_fireScrollEvent(){y(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(){y(this._el,"pagechange",{pageNumber:this._currentPage})}}var Uo=Object.hasOwnProperty,Bo=Object.setPrototypeOf,Fo=Object.isFrozen,qo=Object.getPrototypeOf,Ho=Object.getOwnPropertyDescriptor,jo=Object.freeze,zo=Object.seal,Go=Object.create,Wo="undefined"!=typeof Reflect&&Reflect,Ko=Wo.apply,Vo=Wo.construct;Ko||(Ko=function(e,t,n){return e.apply(t,n)}),jo||(jo=function(e){return e}),zo||(zo=function(e){return e}),Vo||(Vo=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 Yo,Jo=os(Array.prototype.forEach),Xo=os(Array.prototype.pop),Qo=os(Array.prototype.push),Zo=os(String.prototype.toLowerCase),$o=os(String.prototype.match),es=os(String.prototype.replace),ts=os(String.prototype.indexOf),ns=os(String.prototype.trim),is=os(RegExp.prototype.test),rs=(Yo=TypeError,function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return Vo(Yo,t)});function os(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 Ko(e,t,i)}}function ss(e,t){Bo&&Bo(e,null);for(var n=t.length;n--;){var i=t[n];if("string"==typeof i){var r=Zo(i);r!==i&&(Fo(t)||(t[n]=r),i=r)}e[i]=!0}return e}function as(e){var t=Go(null),n=void 0;for(n in e)Ko(Uo,e,[n])&&(t[n]=e[n]);return t}function cs(e,t){for(;null!==e;){var n=Ho(e,t);if(n){if(n.get)return os(n.get);if("function"==typeof n.value)return os(n.value)}e=qo(e)}return function(e){return console.warn("fallback value for",e),null}}var ls=jo(["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"]),us=jo(["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"]),ds=jo(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),hs=jo(["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"]),ps=jo(["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"]),fs=jo(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),ms=jo(["#text"]),gs=jo(["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"]),vs=jo(["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"]),ys=jo(["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"]),bs=jo(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),Es=zo(/\{\{[\s\S]*|[\s\S]*\}\}/gm),_s=zo(/<%[\s\S]*|[\s\S]*%>/gm),ws=zo(/^data-[\-\w.\u00B7-\uFFFF]/),Ts=zo(/^aria-[\-\w]+$/),Ss=zo(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),ks=zo(/^(?:\w+script|data):/i),Cs=zo(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),Is="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 As(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 Ls=function(){return"undefined"==typeof window?null:window},Os=function(e,t){if("object"!==(void 0===e?"undefined":Is(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 Rs=function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Ls(),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,g=cs(m,"cloneNode"),v=cs(m,"nextSibling"),y=cs(m,"childNodes"),b=cs(m,"parentNode");if("function"==typeof s){var E=r.createElement("template");E.content&&E.content.ownerDocument&&(r=E.content.ownerDocument)}var _=Os(f,i),w=_?_.createHTML(""):"",T=r,S=T.implementation,k=T.createNodeIterator,C=T.createDocumentFragment,I=T.getElementsByTagName,A=i.importNode,L={};try{L=as(r).documentMode?r.documentMode:{}}catch(e){}var O={};n.isSupported="function"==typeof b&&S&&void 0!==S.createHTMLDocument&&9!==L;var R=Es,N=_s,P=ws,x=Ts,M=ks,D=Cs,U=Ss,B=null,F=ss({},[].concat(As(ls),As(us),As(ds),As(ps),As(ms))),q=null,H=ss({},[].concat(As(gs),As(vs),As(ys),As(bs))),j=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,W=!0,K=!0,V=!1,Y=!1,J=!1,X=!1,Q=!1,Z=!1,$=!1,ee=!1,te=!0,ne=!0,ie=!1,re={},oe=null,se=ss({},["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=ss({},["audio","video","img","source","image","track"]),le=null,ue=ss({},["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,ge=void 0,ve=["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":Is(e))||(e={}),e=as(e),B="ALLOWED_TAGS"in e?ss({},e.ALLOWED_TAGS):F,q="ALLOWED_ATTR"in e?ss({},e.ALLOWED_ATTR):H,le="ADD_URI_SAFE_ATTR"in e?ss(as(ue),e.ADD_URI_SAFE_ATTR):ue,ae="ADD_DATA_URI_TAGS"in e?ss(as(ce),e.ADD_DATA_URI_TAGS):ce,oe="FORBID_CONTENTS"in e?ss({},e.FORBID_CONTENTS):se,z="FORBID_TAGS"in e?ss({},e.FORBID_TAGS):{},G="FORBID_ATTR"in e?ss({},e.FORBID_ATTR):{},re="USE_PROFILES"in e&&e.USE_PROFILES,W=!1!==e.ALLOW_ARIA_ATTR,K=!1!==e.ALLOW_DATA_ATTR,V=e.ALLOW_UNKNOWN_PROTOCOLS||!1,Y=e.SAFE_FOR_TEMPLATES||!1,J=e.WHOLE_DOCUMENT||!1,Z=e.RETURN_DOM||!1,$=e.RETURN_DOM_FRAGMENT||!1,ee=e.RETURN_TRUSTED_TYPE||!1,Q=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)&&(j.tagNameCheck=e.CUSTOM_ELEMENT_HANDLING.tagNameCheck),e.CUSTOM_ELEMENT_HANDLING&&we(e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(j.attributeNameCheck=e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),e.CUSTOM_ELEMENT_HANDLING&&"boolean"==typeof e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements&&(j.allowCustomizedBuiltInElements=e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),ge=ge=-1===ve.indexOf(e.PARSER_MEDIA_TYPE)?ye:e.PARSER_MEDIA_TYPE,be="application/xhtml+xml"===ge?function(e){return e}:Zo,Y&&(K=!1),$&&(Z=!0),re&&(B=ss({},[].concat(As(ms))),q=[],!0===re.html&&(ss(B,ls),ss(q,gs)),!0===re.svg&&(ss(B,us),ss(q,vs),ss(q,bs)),!0===re.svgFilters&&(ss(B,ds),ss(q,vs),ss(q,bs)),!0===re.mathMl&&(ss(B,ps),ss(q,ys),ss(q,bs))),e.ADD_TAGS&&(B===F&&(B=as(B)),ss(B,e.ADD_TAGS)),e.ADD_ATTR&&(q===H&&(q=as(q)),ss(q,e.ADD_ATTR)),e.ADD_URI_SAFE_ATTR&&ss(le,e.ADD_URI_SAFE_ATTR),e.FORBID_CONTENTS&&(oe===se&&(oe=as(oe)),ss(oe,e.FORBID_CONTENTS)),ne&&(B["#text"]=!0),J&&ss(B,["html","head","body"]),B.table&&(ss(B,["tbody"]),delete z.tbody),jo&&jo(e),Ee=e)},Se=ss({},["mi","mo","mn","ms","mtext"]),ke=ss({},["foreignobject","desc","title","annotation-xml"]),Ce=ss({},us);ss(Ce,ds),ss(Ce,hs);var Ie=ss({},ps);ss(Ie,fs);var Ae=function(e){var t=b(e);t&&t.tagName||(t={namespaceURI:pe,tagName:"template"});var n=Zo(e.tagName),i=Zo(t.tagName);if(e.namespaceURI===he)return t.namespaceURI===pe?"svg"===n:t.namespaceURI===de?"svg"===n&&("annotation-xml"===i||Se[i]):Boolean(Ce[n]);if(e.namespaceURI===de)return t.namespaceURI===pe?"math"===n:t.namespaceURI===he?"math"===n&&ke[i]:Boolean(Ie[n]);if(e.namespaceURI===pe){if(t.namespaceURI===he&&!ke[i])return!1;if(t.namespaceURI===de&&!Se[i])return!1;var r=ss({},["title","style","font","a","script"]);return!Ie[n]&&(r[n]||!Ce[n])}return!1},Le=function(e){Qo(n.removed,{element:e});try{e.parentNode.removeChild(e)}catch(t){try{e.outerHTML=w}catch(t){e.remove()}}},Oe=function(e,t){try{Qo(n.removed,{attribute:t.getAttributeNode(e),from:t})}catch(e){Qo(n.removed,{attribute:null,from:t})}if(t.removeAttribute(e),"is"===e&&!q[e])if(Z||$)try{Le(t)}catch(e){}else try{t.setAttribute(e,"")}catch(e){}},Re=function(e){var t=void 0,n=void 0;if(Q)e="<remove></remove>"+e;else{var i=$o(e,/^[\r\n\t ]+/);n=i&&i[0]}"application/xhtml+xml"===ge&&(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,ge)}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?I.call(t,J?"html":"body")[0]:J?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":Is(a))?e instanceof a:e&&"object"===(void 0===e?"undefined":Is(e))&&"number"==typeof e.nodeType&&"string"==typeof e.nodeName},Me=function(e,t,i){O[e]&&Jo(O[e],(function(e){e.call(n,t,i,Ee)}))},De=function(e){var t=void 0;if(Me("beforeSanitizeElements",e,null),Pe(e))return Le(e),!0;if($o(e.nodeName,/[\u0080-\uFFFF]/))return Le(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))&&is(/<[/\w]/g,e.innerHTML)&&is(/<[/\w]/g,e.textContent))return Le(e),!0;if("select"===i&&is(/<template/i,e.innerHTML))return Le(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(g(o[s],!0),v(e))}if(!z[i]&&Be(i)){if(j.tagNameCheck instanceof RegExp&&is(j.tagNameCheck,i))return!1;if(j.tagNameCheck instanceof Function&&j.tagNameCheck(i))return!1}return Le(e),!0}return e instanceof c&&!Ae(e)?(Le(e),!0):"noscript"!==i&&"noembed"!==i||!is(/<\/no(script|embed)/i,e.innerHTML)?(Y&&3===e.nodeType&&(t=e.textContent,t=es(t,R," "),t=es(t,N," "),e.textContent!==t&&(Qo(n.removed,{element:e.cloneNode()}),e.textContent=t)),Me("afterSanitizeElements",e,null),!1):(Le(e),!0)},Ue=function(e,t,n){if(te&&("id"===t||"name"===t)&&(n in r||n in _e))return!1;if(K&&!G[t]&&is(P,t));else if(W&&is(x,t));else if(!q[t]||G[t]){if(!(Be(e)&&(j.tagNameCheck instanceof RegExp&&is(j.tagNameCheck,e)||j.tagNameCheck instanceof Function&&j.tagNameCheck(e))&&(j.attributeNameCheck instanceof RegExp&&is(j.attributeNameCheck,t)||j.attributeNameCheck instanceof Function&&j.attributeNameCheck(t))||"is"===t&&j.allowCustomizedBuiltInElements&&(j.tagNameCheck instanceof RegExp&&is(j.tagNameCheck,n)||j.tagNameCheck instanceof Function&&j.tagNameCheck(n))))return!1}else if(le[t]);else if(is(U,es(n,D,"")));else if("src"!==t&&"xlink:href"!==t&&"href"!==t||"script"===e||0!==ts(n,"data:")||!ae[e]){if(V&&!is(M,es(n,D,"")));else if(n)return!1}else;return!0},Be=function(e){return e.indexOf("-")>0},Fe=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:q};for(o=s.length;o--;){var c=t=s[o],l=c.name,u=c.namespaceURI;if(i=ns(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&&(Oe(l,e),a.keepAttr))if(is(/\/>/i,i))Oe(l,e);else{Y&&(i=es(i,R," "),i=es(i,N," "));var d=be(e.nodeName);if(Ue(d,r,i))try{u?e.setAttributeNS(u,l,i):e.setAttribute(l,i),Xo(n.removed)}catch(e){}}}Me("afterSanitizeAttributes",e,null)}},qe=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),Fe(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 rs("toString is not a function");if("string"!=typeof(e=e.toString()))throw rs("dirty is not a string, aborting")}if(!n.isSupported){if("object"===Is(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 rs("root node is forbidden and cannot be sanitized in-place")}}else if(e instanceof a)1===(c=(s=Re("\x3c!----\x3e")).ownerDocument.importNode(e,!0)).nodeType&&"BODY"===c.nodeName||"HTML"===c.nodeName?s=c:s.appendChild(c);else{if(!Z&&!Y&&!J&&-1===e.indexOf("<"))return _&&ee?_.createHTML(e):e;if(!(s=Re(e)))return Z?null:ee?w:""}s&&Q&&Le(s.firstChild);for(var p=Ne(ie?e:s);l=p.nextNode();)3===l.nodeType&&l===u||De(l)||(l.content instanceof o&&qe(l.content),Fe(l),u=l);if(u=null,ie)return e;if(Z){if($)for(d=C.call(s.ownerDocument);s.firstChild;)d.appendChild(s.firstChild);else d=s;return q.shadowroot&&(d=A.call(i,d,!0)),d}var f=J?s.outerHTML:s.innerHTML;return Y&&(f=es(f,R," "),f=es(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&&(O[e]=O[e]||[],Qo(O[e],t))},n.removeHook=function(e){O[e]&&Xo(O[e])},n.removeHooks=function(e){O[e]&&(O[e]=[])},n.removeAllHooks=function(){O={}},n}();const Ns={ADD_TAGS:["#comment","li-icon","icon","iframe"],ADD_ATTR:["target"],FORCE_BODY:!0,RETURN_DOM:!0};function Ps(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n=xs(null,e,t);return n.innerHTML}function xs(e,t){let{ADD_TAGS:n=[],ADD_ATTR:i=[]}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const r=Ae({},Ns);r.ADD_TAGS=[...r.ADD_TAGS,...n],r.ADD_ATTR=[...r.ADD_ATTR,...i];const o=Rs.sanitize(t,r);return e&&e.nodeType===Node.ELEMENT_NODE&&(e.innerHTML="",e.append(...o.childNodes)),o}var Ms=Object.freeze({__proto__:null,sanitizedMarkupOptions:Ns,getSanitizedMarkup:Ps,setSanitizedMarkup:xs}),Ds="aria-[a-z0-9_\\-]+|class|data-[a-z0-9_\\-]+|dir|id|role|tabindex",Us=function(){if("undefined"==typeof document)return!0;return"textContent"in document.createElement("div")}()?"textContent":"innerText",Bs=["b","del","em","i","s","strong","sub","sup"],Fs=Bs.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"]),qs=[Ds,"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 Hs(){}var js,zs,Gs=(zs=/[&<>"'\u0000\\=]/g,js={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","\0":"�","\\":"&#92;","=":"&#61;"},function(e){return null==e?null:e.toString().replace(zs,(function(e){return js[e]}))}),Ws=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[Us],i[a]=c,c)):o||s?t(parseInt(o||s,o?16:10)||65533):"�";var a,c}))}}();var Ks=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)};function Vs(e){return/[<&]/.test(e)}var Ys,Js=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 Xs(e){e=Ks(e)?e:[e];var t,n,i,r=0,o="<(?!/?";return o+="(?:",Js(e,(function(e,s){t=e.tags||Fs,n=e.attrs||qs,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 Qs(e){return Xs({tags:e=e||Fs,checkUrlAttrs:!0})}function Zs(e,t){var n=(t=t||{}).allowTags,i=!1!==t.hasCustomElementMarkup;return n?!Qs(n).test(e):i?!Zs.R_UNSAFE_CUSTOM_ELEMENT.test(e):!Zs.R_UNSAFE_HTML.test(e)}function $s(e){return e.replace(/<[^>]*>|[<>'"&\\]/g,"")}function ea(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 Hs||"number"==typeof o))throw new Error("Only strings, numbers, and jSecure types are allowed as placeholder replacements.");o=r?Gs(o):o.toString()}return n[i]=o,o}))}(e,t):e,r=e;return Vs(i)&&!Zs(i,n)&&(i=$s(i),Qr("Content contains non-whitelisted tags or attributes:\nContent: "+r,"error")),i}function ta(e,t){for(var n=+t.length,i=0,r=e.length;i<n;i++)e[r++]=t[i];return e.length=r,e}Zs.R_UNSAFE_HTML=Qs(),Zs.R_UNSAFE_CUSTOM_ELEMENT=Xs([{tags:Fs,checkUrlAttrs:!0},{tags:[(Ys={tag:"li-icon",attrs:"active|a11y-text|animate|color|size|type"}).tag],attrs:[Ds,Ys.attrs].join("|"),checkUrlAttrs:!1}]);var na={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,"",""]};na.optgroup=na.option,na.tbody=na.tfoot=na.colgroup=na.caption=na.thead,na.th=na.td;var ia=/<([\w:]+)/;function ra(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=(ia.exec(o)||["",""])[1].toLowerCase(),aa(r,(i=na[n]||na._default)[1]+o+i[2]),a=i[0];a--;)r.lastChild&&r.lastChild.nodeType===Node.ELEMENT_NODE&&(r=r.lastChild);ta(u,r.childNodes),(r=l.firstChild).textContent=""}else ta(u,o.nodeType?[o]:o);for(l.textContent="",o=u[s=0];o;)l.appendChild(o),o=u[++s];return l}var oa=ea,sa=ea;function aa(e,t,n){var i=ea(t,n);return Vs(i)?e.innerHTML=i:e[Us]=i,i}function ca(e,t){if(!(this instanceof ca))return new ca(e,t);(t=t||{}).allowTags=t.allowTags?t.allowTags.reduce((function(e,t){return e.concat(t)}),[]):null,this._string=e,this._options=t}ca.prototype=function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);return e}(new Hs,{toString:function(){var e=this._string,t=this._stringVal,n=e;return void 0!==t?t:(Zs(e,this._options)||(n=e,e=$s(e),Qr("UnsafeString contains non-whitelisted tags or attributes.\nString: "+n,"error")),this._stringVal=e,e)}});var la={ALLOWED_TAGS:Fs,FORMATTING_TAGS:Bs,htmlEncode:Gs,htmlUnencode:Ws,log:Qr,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 ca?r:Gs(r))})),sa(o)},parseHTML:function(e,t){var n;if(t=t||document.implementation&&document.implementation.createHTMLDocument?document.implementation.createHTMLDocument(""):document,"string"==typeof e)n=ra([e],t);else{if(!Ks(e))return e;n=ra(e,t)}return ta([],n.childNodes)},parseSelector:function(e){return"string"==typeof e&&/^(?:\s*(<[\w\W]+>)[^>]*)$/.test(e)?[]:e},processTemplate:oa,reEncode:function(e){return Gs(Ws(e))},_redirector:ro,redirect:function(e){const t=io(e);t===e&&ro.redirect(t)},sanitizeHTML:sa,sanitizeUrl:io,setElementContent:aa,text:function(e){return Qr("jSecure.text() is deprecated. Please use jSecure.htmlEncode().","warn"),Gs(e)},unsafe:function(e){return e},UnsafeString:ca};const ua='a[href], area[href], input:not([disabled]):not([hidden]), select:not([disabled]), textarea:not([disabled]), img:not([alt=""]), button, iframe, object, [tabindex="0"], [contenteditable]';function da(e){if(!e)throw new Error("Could not initialize focus-trapping - Config Missing");const t=e.el,n=e.escCallback,i=e.focusElement,r=e.ariaHiddenElements||function e(t){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];if(!(t instanceof HTMLElement&&t.parentElement instanceof HTMLElement))return n;const i=Array.prototype.slice.call(t.parentElement.children).filter(e=>e!==t&&fa(e)),r=n.concat(i);return t.parentElement===document.body?r:e(t.parentElement,r)}(t);if(!t)throw new Error("Could not initialize focus-trapping - Element Missing");if(n&&!(n instanceof Function))throw new Error("Could not initialize focus-trapping - `config.escCallback` is not a function");G(function(e){let t="";const n=e.getAttribute("role"),i=e.getAttribute("aria-labelledby"),r=e.getAttribute("aria-describedby"),o=e.dataset.primaryActionLabel,s=e.dataset.secondaryActionLabel;if("dialog"===n&&(i||r)){const n=i&&e.querySelector("#".concat(i)),a=r&&e.querySelector("#".concat(r)),c=n&&n.textContent,l=a&&a.textContent;c&&(t+=c),l&&(t+=l),s&&(t="".concat(t," ").concat(s)),o&&(t="".concat(t," ").concat(o))}return t.trim()}(t),z.ASSERTIVE),ha(r,!0);const o=t.querySelectorAll(ua);let s;if(o.length>0){const e=o[0],r=o[o.length-1];pa(i||e),s=function(t){t.key===O.TAB?t.shiftKey&&document.activeElement===e?(t.preventDefault(),r.focus()):t.shiftKey||document.activeElement!==r||(t.preventDefault(),e.focus()):t.key===O.ESCAPE&&n&&n(t)},t.addEventListener("keydown",s)}return function(){s&&t.removeEventListener("keydown",s),G(),ha(r)}}function ha(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const n="aria-hidden";if(!Array.isArray(e))throw new Error("Incorrect argument: elements should be an array of HTMLElement");e.forEach(e=>t?e.setAttribute(n,t):e.removeAttribute(n))}function pa(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()}function fa(e){return j.indexOf(e.nodeName.toUpperCase())<0&&!e.getAttribute("aria-live")&&"true"!==e.getAttribute("aria-hidden")}const ma=Object.freeze({CAUTION:"caution",ERROR:"error",GDPR:"gdpr",NOTIFY:"notify",SUCCESS:"success"});class ga{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(ma).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=r(e.target,".toast__dismiss-btn");if(t){const e=r(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===ma.CAUTION?c="text-color-text-caution":e===ma.ERROR?c="text-color-text-negative":e===ma.SUCCESS&&(c="text-color-text-positive"),a.classList.add(c),xs(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",la.sanitizeUrl(f(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"),pa(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()})}}Le(ga,"TOAST_TYPES",ma);const va={};function ya(e){const t=document.getElementById(e);if(!t&&void 0!==va[e])return va[e];if(!t)return console.warn("Element with id: ".concat(e," not found")),va[e]=null,va[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):(va[e]=n,t.parentNode.removeChild(t),va[e])}const ba={COPY:"copy",LINKEDIN:"linkedin",TWITTER:"twitter",FACEBOOK:"facebook"},Ea=Object.keys(ba).map(e=>ba[e]);class _a{constructor(e){let{globalNavigator:t=navigator,globalWindow:n=window,globalDocument:i=document,shareTriggerElement:r}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!e)throw new Error("No element passed in");this.navigator=t,this.window=n,this.document=i,this.shareTriggerElement=r,this.el=e,this._encodedShareMessage=this.window.encodeURIComponent(this.el.getAttribute("data-share-message"))||"",this._nonEncodedShareUrl=this.el.getAttribute("data-share-url")||this.window.location.href,this._encodedShareUrl=this._nonEncodedShareUrl&&this.window.encodeURIComponent(this._nonEncodedShareUrl)}init(e,t){e.addEventListener("click",e=>{let{target:n}=e;const i=n.classList.contains(t)?n:r(n,".".concat(t));i&&this.share(i.dataset.shareService)})}_getServiceUrl(e){this.checkAndUpdateUtm(e);const t={linkedin:"https://www.".concat(I(this.document),"/shareArticle?mini=true&url=").concat(this._encodedShareUrl,"&title=").concat(this._encodedShareMessage),twitter:"https://twitter.com/intent/tweet?url=".concat(this._encodedShareUrl,"&text=").concat(this._encodedShareMessage),facebook:"https://www.facebook.com/sharer/sharer.php?u=".concat(this._encodedShareUrl)};return ya("disableLinkedinShareRedirectLink")&&"linkedin"===e?ya("isGuest")?(this.window.location.href=this._updateSignInUrlWithParams(ya("signInUrl")),""):"":t[e]||""}_updateSignInUrlWithParams(e){const t=new URL(e),n=t.searchParams,i=m(n.get("session_redirect"),"openShareModal",!0);return n.set("session_redirect",i),t.toString()}share(e){if(Ea.includes(e)){const r=this._nonEncodedShareUrl||this.window.location.href;if("copy"===e)try{this.navigator.clipboard?(this.checkAndUpdateUtm(e),this.navigator.clipboard.writeText(this._nonEncodedShareUrl),this.displayToast({url:r})):this.displayToast({showError:!0})}catch(e){this.displayToast({showError:!0})}finally{var t,n,i;null===(t=this.collapsibleDropdown)||void 0===t||null===(n=t.dropdownContentEl)||void 0===n||null===(i=n.classList)||void 0===i||i.add("hidden")}else{const t=this._getServiceUrl(e,r);if(!t)return;this.window.open(t,e,"height=600,width=1000")}}}displayToast(e){let{showError:t,url:n}=e;if(this.document.getElementById("toasts")){this.collapsibleDropdown.shouldReturnFocusToTrigger(!1),this.collapsibleDropdown.close();const e="social-share",i=new ga({removeToastCallback:this.removeToastCallback.bind(this)});i.clearAllToasts();const r=t?"error":"success";i.trigger(r,ya("i18n_copy_cta_message_".concat(r)),e,{text:"View",url:n||this.window.location.href,trk:e})}}checkAndUpdateUtm(e){if(this._nonEncodedShareUrl.includes("utm_campaign")||"linkedin"===e)return;["utm_source","utm_content","utm_medium"].some(e=>this._nonEncodedShareUrl.includes(e))&&(this._nonEncodedShareUrl="".concat(this._nonEncodedShareUrl,"&utm_campaign=").concat(e),this._encodedShareUrl=this.window.encodeURIComponent(this._nonEncodedShareUrl))}removeToastCallback(){var e;this.collapsibleDropdown.shouldReturnFocusToTrigger(),null===(e=this.shareTriggerElement)||void 0===e||e.focus()}}class wa extends _a{constructor(e){let{globalNavigator:t=navigator,globalWindow:n=window,globalDocument:i=document}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!e)throw new Error("No element passed in");const r=e.querySelector(".social-share__button");super(e,{globalNavigator:t,globalWindow:n,globalDocument:i,shareTriggerElement:r}),this.socialShareButton=r,this.dropdown=this.el.querySelector(".collapsible-dropdown__list"),this.itemClassName="".concat("social-share","__item"),this.collapsibleDropdown=new te(e,{dropdownTriggerEl:this.socialShareButton}),super.init(this.dropdown,this.itemClassName)}}const Ta=["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(Ta,"i");class Sa{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:window.tracking,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:window.lazyloader;const{sources:r,posterUrl:o,digitalmediaAssetUrn:s,trackingId:a,captionsUrl:c}=e.dataset,l=JSON.parse(r),u=parseFloat(e.getAttribute("currentTime"));if(!l.length)throw new Error("Please pass video sources in correct Array string format inside data-sources attribute");e.hasAttribute("autoplay")&&(t.autoplay=!0),this._mediaPlayerInstancePromise=this._createPlayer(e,a,s,t,i).then(e=>(o&&e.poster(o),e.src(l),c&&e.addRemoteTextTrack({kind:"captions",label:"English",srclang:"en",mode:"showing",src:c}),u&&e.currentTime(u),this._bindTracking(e,n),e))}_createPlayer(e,t,n,i,r){return r.then(e=>e.getLazyLoadedJavascriptModule("media-player")).then(r=>{const{createPlayer:o}=r,s=i.plugins&&i.plugins.rum&&i.plugins.rum.mediaHeader&&i.plugins.rum.mediaHeader.mediaSource||"ugc",a=Ae({errorDisplay:!1,controlBar:{fullscreenToggle:!0,backToStartButton:!0,captionsToggle:{selected:!0}},plugins:{posterBackground:!0}},i);return a.plugins.tracking={mediaUrn:n,trackingId:t},a.plugins.rum={mediaUrn:n,trackingId:t,mediaHeader:{mediaSource:s}},o(e,a)})}_bindTracking(e,t){t.then(t=>{const n=this._getMediaPlayerTrackingEventHandler(t);e.tracking().on("track",n),e.rum().on("track",n)})}_getMediaPlayerTrackingEventHandler(e){return function(t,n){let{eventName:i,eventData:r}=n,o=Ae({header:{},requestHeader:{}},r);delete o.name,delete o.plugin,delete o.instance,o.requestHeader.pageKey||(o.requestHeader.pageKey=T(document)),e.fireTrackingEvent(i,o)}}getPlayerPromise(){return this._mediaPlayerInstancePromise}}class ka{constructor(e){let{scrollThreshold:t=50,hideOnScrollBack:n=!1,hideOnScrollDown:i=!1,isBottom:r=!0,exposeStickyState:s=!1,marginApplied:a=!1,debounceDelay:c=100}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(n&&i)throw new Error("hideOnScrollBack & hideOnScrollDown cannot both be true at the same time");this.el=e,this.scrollThreshold=t,this.hideOnScrollBack=n,this.hideOnScrollDown=i,this.isBottom=r,this.exposeStickyState=s,this._scrollListener=g(this._onScroll.bind(this),c),this.marginApplied=a,this.previousScrollPosition=window.pageYOffset,this._setSpacingBound=this._setSpacing.bind(this),this._setupResizeListener(),o(()=>{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(){Q()||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"),y(this.el,"show")}hide(){this.el.classList.remove("show"),y(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 Ca=[];for(let e=0;e<256;++e)Ca.push((e+256).toString(16).slice(1));"undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto);"".concat("tooltip__popup","--show");class Ia{constructor(e){if(!e)throw new Error("No element passed in");this._el=e,this._imgEl=this._el.querySelector(".cover-img__image"),this._imgEl&&(this.cropInfo=ya(this._imgEl.dataset.embedId),this.ratio=0,this._imgEl.classList.contains(".lazy-loaded")&&this._initCalc(),this._bindEvents())}_bindEvents(){window.addEventListener("resize",this._handleWindowResize.bind(this)),this._imgEl.addEventListener("load",this._initCalc.bind(this))}_handleWindowResize(){this._isResizing||(this._isResizing=!0,window.requestAnimationFrame(this._initCalc.bind(this)))}_initCalc(){const e=this._el.clientWidth,t=this._el.clientHeight,n=this._imgEl.naturalWidth,i=this._imgEl.naturalHeight,r=this.cropInfo?this.cropInfo.y:0,o=this.cropInfo?this.cropInfo.x:0,s=n-o,a=i-r,c=e/s,l=t/a,u=s*l>=e,d=a*c>=t;let h=0;d&&u?h=Math.min(c,l):d?h=c:u&&(h=l);let p=Math.max(h*n,e),f=Math.max(h*i,t);h!==this.ratio&&(this.ratio=h,this._imgEl.style.width="".concat(p,"px"),this._imgEl.style.height="".concat(f,"px"),this._imgEl.style.top="-".concat(r*this.ratio,"px"),this._imgEl.style.left="-".concat(o*this.ratio,"px")),this._isResizing=!1}}var Aa={SKILL:"SKILL",CITY:"CITY",REGION:"REGION",INDUSTRY:"INDUSTRY",LANGUAGE:"LANGUAGE",DEGREE:"DEGREE",SCHOOL:"SCHOOL",FIELD_OF_STUDY:"FIELD_OF_STUDY",COMPANY:"COMPANY",TITLE:"TITLE",GEO:"GEO",PEOPLE:"PEOPLE",JOB:"JOB",JOB_TITLE:"JOB_TITLE",HASHTAG:"HASHTAG",MENTIONS:"MENTIONS",MENTIONS_IN_CONTAINER:"MENTIONS_IN_CONTAINER",BLENDED:"BLENDED"};const La=["endpoint","headers","queryId","variables"];function Oa(){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=Oe(e,La);const s=T(document);if(!s)throw new Error("Missing pageKey for graphQL request from browser");return ne(t,Ae({method:"POST",headers:n,postData:JSON.stringify({queryId:i,variables:r,pageKey:s})},o))}class Ra{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 Oa({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 Na extends Ra{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:Na.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})}}Le(Na,"query","2849bb08e3a3bbd23c96c0e758c018b7");class Pa extends Ra{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:Pa.query,variables:{url:e},successCallback:t,failureCallback:n})}}Le(Pa,"query","bece320b5f70fe4357082fe84eca6c56");const xa="loader--absolute",Ma="loader--show",Da="loader--full-screen",Ua="no-scroll",Ba="loader-wrapper";class Fa{constructor(e){let{wrapperEl:t}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!e)throw new Error("Loader el required");if(t&&!t.contains(e))throw new Error("Wrapper element is not a parent of the Loader el");this.el=e,this.wrapperEl=t,this.isAbsoluteVariant=this.wrapperEl&&this.el.classList.contains(xa),window.addEventListener("pagehide",e=>{let{persisted:t}=e;t&&this.hide()})}show(){this.el.classList.add(Ma),this.el.classList.contains(Da)&&document.body.classList.add(Ua),this.isAbsoluteVariant&&this.wrapperEl.classList.add(Ba)}hide(){this.el.classList.remove(Ma),document.body.classList.remove(Ua),this.isAbsoluteVariant&&this.wrapperEl.classList.remove(Ba)}}const qa="dismissable-input",Ha="dismissable-input--focus",ja="dismissable-input__button",za="dismissable-input__button--show",Ga="dismissable-input__input";class Wa{constructor(e){this.el=e,this._input=this.el.querySelector(".".concat(Ga)),this._dismissButtonEl=this.el.querySelector(".".concat(ja)),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(Ha),this._updateDismissButton(),y(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(za)}_showDismissButton(){this._dismissButtonEl.classList.add(za)}_onInputBlur(){this.el.classList.remove(Ha)}clear(){this._input.value="",this._updateDismissButton(""),this._input.focus(),y(this.el,"clear")}}const Ka={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"},Va="i18n_aria_live_text_no-suggestions",Ya="i18n_aria_live_text_one-suggestion",Ja="i18n_aria_live_text_multiple-suggestions",Xa=500;class Qa{constructor(e,t){let{createDismissableInput:n,elementClasses:i=Ka,generateApiUrl:r,liveTextEl:o,liveTextClearTime:s=Xa,onSelect:a,onInput:c=(()=>{}),inputEl:l,dropdownContainerEl:u,dropdownListEl:d,isFullPageTypeahead:h,closeOnEscape:p=!1}=t;this.el=e,this._liveTextClearTime=s,this._elementClasses=i,this._closeOnEscape=p,this._input=l||this.el.querySelector(".".concat(Ga)),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 Wa(this.el)),this.isFullPageTypeahead=h,this._getLiveTextOptions(),this._resetState(),this._attachEventListeners(),this._requestHandler=g(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(N(e.key)){case O.ARROW_DOWN:e.preventDefault(),this._moveToResult(1);break;case O.ARROW_UP:e.preventDefault(),this._moveToResult(-1);break;case O.ESCAPE:this._closeOnEscape&&this._hideList();break;case O.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 ne(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=u(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=ya(Va),this._liveTextOneSuggestion=ya(Ya),this._liveTextMultipleSuggestions=ya(Ja)}_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 Za{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 J(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:t}=e;r(t,".".concat(Ka.block))||document.activeElement.blur()}_userIsTabbedOut(){if(this.expandedEl.classList.contains("isExpanded")&&oo()){return!this.expandedEl.contains(document.activeElement)}return!1}}class $a extends Qa{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 ec={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"},tc="i18n_aria_live_text_recent-searches-one-suggestion",nc="i18n_aria_live_text_recent-searches-multiple-suggestions",ic="i18n_aria_live_text_recent-searches-cleared";class rc extends Qa{constructor(e,t){let{liveTextEl:n,clearRecentSearchApiBaseUrl:i}=t;if(super(e,{liveTextEl:n,elementClasses:ec,liveTextClearTime:1e3,closeOnEscape:!0}),!e)throw Error("An element must be provided to RecentSearches");if(this.dropdownContainerEl=e.querySelector(".".concat(ec.dropdown)),!this.dropdownContainerEl)throw Error("A RecentSearches container element must be in the RecentSearches parent element");this._clearRecentSearchApiBaseUrl=i,this._dropdownListItemEls=u(this.dropdownContainerEl.querySelectorAll(".".concat(ec.listItem))),this._clearBtnItem=e.querySelector(".".concat(ec.listItemClearButton)),this._dropdownListItemEls.push(this._clearBtnItem),this._dismissButtonEl=e.querySelector(".".concat(ja))}_attachEventListeners(){this._clearBtn=this.el.querySelector(".".concat(ec.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(ec.listItemLink));n?this._redirect(n):t.classList.contains(ec.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(ec.showList),document.body.removeEventListener("click",this._boundClickOutsideToCloseHandler),this._setExpandedState(!1),this._setHighlightedEl(null))}_getLiveTextOptions(){this._liveTextOneSuggestion=ya(tc),this._liveTextMultipleSuggestions=ya(nc),this._liveTextClearedSuggestions=ya(ic)}_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(){ne(this._clearRecentSearchApiBaseUrl,{method:"DELETE"}).then(()=>{this._removeEventListeners(),this._informUserThatSearchesAreCleared=!0,super._hideList(),super._setLiveText()}).catch(e=>{throw e})}}class oc{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 te(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 t=r(e.target,".".concat("switcher-tabs__tab")),n=t.querySelector(".".concat("switcher-tabs__button")).getAttribute("data-switcher-type");n&&t&&this.currentType!==n?(this.collapsibleSwitcher.collapsible.currentListItem=t,this._switchTo(n,t)):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 t=this.el.querySelector(".".concat("tab-selected"));if(r(t,".".concat("switcher-tabs__tab"))&&(t.setAttribute("aria-selected","false"),t.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 sc{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 a=!!this.el.querySelector(".".concat("search-bar__mobile-wrapper"));if(this.baseSearchBarsMap=u(this.el.querySelectorAll(".".concat("base-search-bar"))).reduce((e,t)=>{const n=new Za(t,this.el,this.placeholderEl,{onCloseExpandedSearch:r,isMobileDevice:a});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 $a(e,{generateApiUrl:this._generateKeywordsTypeaheadApiUrl.bind(this),liveTextEl:s,onSelect:this._onKeywordsTypeaheadSelect.bind(this)});e.querySelector(".".concat(ec.dropdown))&&new rc(e,{clearRecentSearchApiBaseUrl:n,liveTextEl:s}),new $a(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(qa,".search-input"))).forEach(e=>{new Wa(e);e.querySelector(".".concat(ec.dropdown))&&new rc(e,{clearRecentSearchApiBaseUrl:n,liveTextEl:s})}),this._addCustomErrorStateHandler()}else Array.from(this.el.querySelectorAll(".".concat(qa))).forEach(e=>new Wa(e));o&&(this.switcher=new oc(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(T(document),"-").concat(t)})})})}}class ac extends Xr{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()}}function cc(e){return ne(e,{skipCsrfToken:!0,sendCookies:!1}).then(e=>e&&e.responseText).then(t=>{if(!t)throw new Error("Empty response for resource "+e);return t})}function lc(e){let{jsUrl:t,cssUrl:n}=e;const i=[];return t&&i.push(function(e){return cc(e).then(()=>{const t=document.createElement("script");return t.setAttribute("type","text/javascript"),new Promise(n=>{t.onload=()=>n(),t.src=Ps(e),document.body.appendChild(t)})})}(t)),n&&i.push(function(e){return cc(e).then(e=>{if(e.length>0){const t=document.createElement("style");t.textContent=e,document.head.appendChild(t)}})}(n)),Promise.all(i)}function uc(e){return lc(e)}const dc={};function hc(e){return dc[e]?Promise.resolve(dc[e]):ne("/mwlite/typeahead/get-asset-urls/").then(e=>e&&e.responseText).then(t=>{const n=function(e){const t=document.createElement("template");return t.innerHTML=e,t.content}(t);n.querySelectorAll("meta").forEach(e=>{const[t,n]=e.id.split("_");dc[t]=Ae(Ae({},dc[t]),{},{[n]:e.getAttribute("content")})});const i=n.getElementById("".concat(e,"_jsUrl")),r=n.getElementById("".concat(e,"_cssUrl"));return{jsUrl:i&&i.getAttribute("content"),cssUrl:r&&r.getAttribute("content")}}).catch(e=>{throw e})}function pc(){const e=window["".concat("blendedTypeahead","Module")];return e?Promise.resolve(e):hc("blendedTypeahead").then(e=>{let{jsUrl:t,cssUrl:n}=e;return uc({jsUrl:t,cssUrl:n}).then(()=>window["".concat("blendedTypeahead","Module")])})}document.querySelector.bind(document);String.fromCharCode(32);T(document);String.fromCharCode(32);class fc{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),y(this.el,"show")}dismiss(e){this.el.classList.remove("show"),this.el.classList.add("dismiss"),y(this.el,"dismiss",e),this.dismissBtn.removeEventListener("click",this._dismissEvent)}}function mc(){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 gc(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 vc(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 yc={session_key:[mc(),gc(3),vc(128)],session_password:[mc(),gc(6),vc(400)]};function bc(e,t){const n=yc[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 Ec=window||e;const _c=/^((?!\.(stg|corp)).)*\.linkedin\.(com|cn)$/;function wc(){const e=Ec.location?Ec.location.hostname:"";return _c.test(e)}function Tc(){return wc()?Sc()?"platform.linkedin.cn":"platform.linkedin.com":Sc()?"platform.linkedin-ei.cn":"platform.linkedin-ei.com"}function Sc(){const e=Ec.location?Ec.location.hostname:"";return/\.cn$/.test(e)}function kc(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 Ec.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 Cc(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Ic(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Ac,Lc,Oc,Rc,Nc={ADVERTISING:"ADVERTISING",ANALYTICS_AND_RESEARCH:"ANALYTICS_AND_RESEARCH",FUNCTIONAL:"FUNCTIONAL"},Pc="GUEST",xc="MEMBER",Mc=0,Dc=1,Uc=2,Bc=(Ic(Ac={},Pc,"li_gc"),Ic(Ac,xc,"li_mc"),Ac),Fc=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 Cc(this,e),t=t||{},this.consentAvailable=!1,this.issuedAt=n,this.userMode=i,this.optedInConsentMap={},Nc)t[o]=t[o]||Mc,t[o]!==Mc&&(this.consentAvailable=!0),this.optedInConsentMap[o]=t[o]===Dc||t[o]===Mc&&r===Dc},qc=(Lc=[Nc.ADVERTISING,Nc.ANALYTICS_AND_RESEARCH,Nc.FUNCTIONAL],Oc=[Mc,Dc,Uc,Mc],Rc=new RegExp(["^(\\d+)","(\\d+)","(\\d+)","((?:.|\\s)+)"].join(";")),{parseConsentBody:function(e,t){var n=e.match(Rc);if(!n)return{error:"Invalid consent body encoding",consent:new Fc};for(var i=parseInt(n[1],10),r={},o=0;o<Lc.length;o++)r[Lc[o]]=Oc[i>>2*o&3];var s=new Date(1e3*parseInt(n[2],10)),a=parseInt(n[3],10),c=Mc;return a>=0&&a<=3&&(c=Oc[a]),{error:null,consent:new Fc(r,s,t,c)}}}),Hc=new RegExp(["^(\\d+)","((?:.|\\s)+)"].join(";")),jc=function(e,t){var n=t.match(new RegExp("(?:^|; *)".concat(e,"=([^;]*)")));return n&&n.length>1?n[1]:null},zc=function(e,t){var n=jc(Bc[e],t);return n?Wc(n,e):jc(Bc[Pc],t)||jc(Bc[xc],t)?Gc(Uc):Gc(Dc)},Gc=function(e){var t={};for(var n in Nc)t[n]=e;return{error:null,consent:new Fc(t,null,null,e)}};var Wc=function(e,t){e&&e.length>1&&'"'==e.charAt(0)&&'"'==e.charAt(e.length-1)&&(e=e.substring(1,e.length-1));var n,r=null;try{r=(n=e,"undefined"==typeof atob&&void 0!==i?i.from(n,"base64").toString("binary"):atob(n)).match(Hc)}catch(e){}if(!r)return{error:"Invalid consent encoding",consent:new Fc};var o=parseInt(r[1],10),s=r[2];switch(o){case 1:return qc.parseConsentBody(s,t);default:return{error:"Invalid encoded consent version ".concat(o),consent:new Fc}}},Kc=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:document.cookie;return e||(e=jc("liap",t)?jc(Bc[xc],t)?xc:Pc:jc(Bc[Pc],t)?Pc:xc),zc(e,t)};function Vc(e){return function(){let e=Kc();return!e||e.consent.optedInConsentMap.ADVERTISING}()&&function(e){return e["compliance.isGDPROptIn"]}(e)}function Yc(e){return function(){let e=Kc();return!e||e.consent.optedInConsentMap.ANALYTICS_AND_RESEARCH}()}function Jc(e){return function(){let e=Kc();return!e||e.consent.optedInConsentMap.FUNCTIONAL}()}function Xc(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 Qc(e){const t=new Ec.Date;t.setSeconds(0),t.setMilliseconds(0);const n=Math.floor(t.getMinutes()/e)*e;return t.setMinutes(n),t.getTime()}function Zc(){return/utagdb=[^;]+/.test(Ec.document.cookie)}let $c;const el={},tl={};function nl(){return"https://".concat(wc()?Sc()?"www.linkedin.cn":"www.linkedin.com":Sc()?"www.linkedin-ei.cn":"www.linkedin-ei.com").concat("/litms/api/metadata/user")}function il(){return function(e){let t=Xc({},e);return t["compliance.isAdvertisingOptIn"]=Vc(t),t["compliance.isAnalyticsAndResearchOptIn"]=Yc(),t["compliance.isFunctionalOptIn"]=Jc(),t}(el)}function rl(e){if(!tl[e]){const t=function(e){return"https://".concat(Tc(),"/litms/allowlist/").concat(encodeURIComponent(e))}(e),n=new Promise((e,n)=>{kc(t,t=>{e(JSON.parse(t))},e=>{n(e)},!1)});tl[e]=n}return tl[e]}Ec.utag_data||(Ec.utag_data={});const ol="undefined"!=typeof window&&window&&"node"!==window.appEnvironment;let sl;function al(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:5,n=null;return"string"==typeof e&&(n="https://".concat(Tc(),"/litms/utag/").concat(e,"/utag.js?cb=").concat(Qc(t))),n}function cl(){return function(){if(void 0===sl&&ol){const e=Ec.document.cookie.match(/litms_utag_override=([^;]+)/);sl=e?e[1]:""}return sl}().length>0}function ll(e,t,n,i){e.onLoadRulesRunOnce(n);let r=Xc({},t,il());e.view(r),Zc()&&Ec.trackingEventDebugData.push({profileName:i,eventType:"PV",trackingData:r})}function ul(e,t,n,i){e.onLoadRulesRunOnce(n);let r=Xc({},t,il());e.link(r),Zc()&&Ec.trackingEventDebugData.push({profileName:i,eventType:"CI",trackingData:r})}function dl(e,t,n){if(function(e){Ec.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?ul(e,i.data,i.callback,n):ll(e,i.data,i.callback,n)}}}function hl(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 pl(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 fl(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:pl(e,t)}}(e,t));if(0!==t.length)return{info:{name:"ExternalMarketingTagFireEvent"},body:{header:{},requestHeader:{},tags:t}}}Ec.utag_cfg_ovrd=Ec.utag_cfg_ovrd||{},Ec.trackingEventDebugData=Ec.trackingEventDebugData||[],Ec.utag_cfg_ovrd.noview=!0,Ec.utag_cfg_ovrd.nocookie=!0;const ml=ol&&new RegExp("bot|google|aolbuild|baidu|bing|msn|duckduckgo|teoma|slurp|yandex|sogou|facebook|alexa","i").test(Ec.navigator.userAgent),gl={};let vl,yl,bl,El={};class _l{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=rl(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&&(gl[this.profileName]=this),this.initializePromise):Promise.resolve()}_processAllowlistResult(e){Object.keys(e).forEach(t=>this.addValuesToAllowlist(t,e[t]))}_loadContainerTag(e,t){void 0!==Ec.utag&&(Ec.utag=void 0),void 0!==Ec.utag_data&&(Ec.utag_data=void 0);const n=function(){if(!$c){const e=nl();$c=new Promise((t,n)=>{kc(e,e=>{try{t(JSON.parse(e))}catch(e){console.error("Invalid JSON format of userSettings"),n(e)}},e=>{n(e)})})}return $c}().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=>{el[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 cl()?sl:al(e,t)}(this.profileName,this.cacheBusterInterval),new Promise(e=>{const t=Ec.document.createElement("script");t.type="text/javascript",t.src=r,t.async=!0,t.onload=e,Ec.document.getElementsByTagName("head")[0].appendChild(t)}));var r;Promise.all([n,i]).then(()=>{this.isContainerTagLoaded=!0,this._uTag=Ec.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&&hl(this.tracking2Instance,t),e(t)}).catch(e=>{console.error("Unable to complete loading container tag",e),t()})}_shouldInitialize(){return!ml}_shouldProcessEvent(e){return ml?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?dl(this._uTag,this._queue,this.profileName):this.isInitialized&&this.isAllowlistingEnabled&&this._loadContainerTag(this._onInitializeSuccessCallback,this._onInitializeFailureCallback)}_fireAuditEvent(){const e=fl(this._uTag);return void 0!==this.tracking2Instance&&void 0!==e&&hl(this.tracking2Instance,e),e}_createCallbackForAuditEvent(e){const t=this;return function(){const n=t._fireAuditEvent();"function"==typeof e&&e(n)}}_checkForCookieConsent(){Kc().consent.consentAvailable&&!yl?this._refireTracking():vl=setTimeout(()=>{this._checkForCookieConsent()},2e3)}_refireTracking(){El.payloads&&El.payloads.forEach(e=>{const{data:t,callback:n}=e;t.cookieConsentGiven=!0,this.trackPageView(t,n)})}_savePayloadForRefire(e,t){if(ol){yl=!1;const{payloads:n=[],url:i}=El,r=location.href,o={data:e,callback:t},s=r!==i?[]:n;s.push(o),El={url:r,payloads:s},vl||(vl=setTimeout(()=>{this._checkForCookieConsent()},2e3))}}trackPageView(e,t){return Kc().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 wl(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 Tl{constructor(e){if(this.trackingInstance=e,this.pageKey=T(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 _l({tracking2Instance:this.trackingInstance,profileName:this.litmsProfileName}),this.litmsInstance.initialize(),this.clickEventListener=e=>wl({event:e,litmsInstance:this.litmsInstance,pageKey:this.pageKey}),this.keydownEventListener=e=>{"Enter"!==e.key&&" "!==e.key&&"Spacebar"!==e.key||wl({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(Ae({pageKey:n},t))}}function Sl(e){if(!bl){if(!e)throw new Error("No trackingInstance passed in!");bl=new Tl(e)}return bl}function kl(){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 Cl='[data-js-module-id="guest-input"]';class Il{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=ya("i18n_sign_in_form_show_text"),this.showLabelText=ya("i18n_sign_in_form_show_label"),this.hideText=ya("i18n_sign_in_form_hide_text"),this.hideLabelText=ya("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",kl())),this.anonymousLoginToggleInput&&this.anonymousLoginToggleInput.checked){const t=this.sessionRedirectEl.value,n=m("/public-profile/settings/anonymousLogin","csrfToken",A(v("JSESSIONID")));this.sessionRedirectEl.value=m(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=T(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=Gr(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),Sl(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=bc(this.usernameEl.name,this.usernameEl.value);if(e){this.usernameEl.closest(Cl).classList.add("input-error"),this.usernameMsgEl.classList.remove("hidden");const t="".concat("i18n_username","_").concat(e);return this.usernameMsgEl.innerText=ya(t),this.usernameEl.focus(),!0}this.usernameEl.closest(Cl).classList.remove("input-error"),this.usernameMsgEl.classList.add("hidden");const t=bc(this.passwordEl.name,this.passwordEl.value);if(t){this.passwordEl.closest(Cl).classList.add("input-error"),this.passwordMsgEl.classList.remove("hidden");const e="".concat("i18n_password","_").concat(t);return this.passwordMsgEl.innerText=ya(e),this.passwordEl.focus(),!0}this.passwordEl.closest(Cl).classList.remove("input-error"),this.passwordMsgEl.classList.add("hidden")}}!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 Al={GOOGLE_ERROR:"googleError",GOOGLE_USER_FETCHED:"googleUserFetched",INITIALIZED:"initialized",PROMPT_MOMENT:"promptMomentNotification",TOKEN_FETCHED:"tokenFetched"},Ll={INITIALIZATION:"initialization",AUTHENTICATION:"authentication"},{GOOGLE_ERROR:Ol,GOOGLE_USER_FETCHED:Rl,INITIALIZED:Nl}=Al,{INITIALIZATION:Pl,AUTHENTICATION:xl}=Ll;EventTarget;var Ml={exports:{}};function Dl(e){this.message=e}Dl.prototype=new Error,Dl.prototype.name="InvalidCharacterError";var Ul="undefined"!=typeof window&&window.atob&&window.atob.bind(window)||function(e){var t=String(e).replace(/=+$/,"");if(t.length%4==1)throw new Dl("'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 Bl=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(Ul(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 Ul(t)}};function Fl(e){this.message=e}Fl.prototype=new Error,Fl.prototype.name="InvalidTokenError",Ml.exports=function(e,t){if("string"!=typeof e)throw new Fl("Invalid token specified");var n=!0===(t=t||{}).header?0:1;try{return JSON.parse(Bl(e.split(".")[n]))}catch(e){throw new Fl("Invalid token specified: "+e.message)}},Ml.exports.InvalidTokenError=Fl;const ql=Al,Hl=Ll,{GOOGLE_USER_FETCHED:jl,GOOGLE_ERROR:zl,INITIALIZED:Gl}=ql,{INITIALIZATION:Wl}=Hl;function Kl(e){var t=e.intersectionRect;return t.width>=0&&t.height>=0}function Vl(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 Yl(e,t){return Math.round(e-t)}var Jl,Xl=(Jl=function(e,t){return(Jl=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}Jl(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),Ql=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}(),Zl=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Xl(t,e),t.prototype.removePredicate=function(e,t){return"string"==typeof e?t.id===e:t.callback===e},t}(Ql),$l=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Xl(t,e),t.prototype.removePredicate=function(e,t){return t===e},t}(Ql),eu=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Xl(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}(Ql),tu=function(){return 0},nu=!("undefined"==typeof window||!window||"undefined"==typeof document||!document),iu=nu&&!!window.requestAnimationFrame,ru={hasDOM:nu,hasRAF:iu,getScrollTop:tu,getScrollLeft:tu,getHeight:tu,getWidth:tu,rAF:iu?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:tu,get isDirty(){return ru.version!==ru.lastVersion},document:window.document,IntersectionObserver:nu&&window.IntersectionObserver,performance:nu&&window.performance};function ou(){++ru.version}function su(){var e=null!=document.scrollingElement;ru.getScrollTop=e?function(){return document.scrollingElement.scrollTop}:function(){return window.scrollY},ru.getScrollLeft=e?function(){return document.scrollingElement.scrollLeft}:function(){return window.scrollX}}nu&&(ru.getHeight=function(){return window.innerHeight},ru.getWidth=function(){return window.innerWidth},ru.updateMeta=function(){ru.meta.height=ru.getHeight(),ru.meta.width=ru.getWidth(),ru.meta.scrollLeft=ru.getScrollLeft(),ru.meta.scrollTop=ru.getScrollTop(),ru.lastVersion=ru.version},ru.updateMeta(),"loading"!==document.readyState?su():document.addEventListener("DOMContentLoaded",su),window.addEventListener("resize",ou,!1),window.addEventListener("scroll",ou,!1));var au=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,ru.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}(),cu=null;var lu=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)}}(),uu="xxxx".replace(/[xy]/g,(function(e){var t=16*Math.random()|0;return("x"===e?t:3&t|8).toString(16)})),du=0,hu=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 ru.isDirty&&ru.updateMeta(),e===window||e===document?(n.height=ru.meta.height,n.width=ru.meta.width,n.scrollLeft=ru.meta.scrollLeft,n.scrollTop=ru.meta.scrollTop,n):(t=Vl(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 pu(){return du+++uu}var fu=function(){function e(e,t){this.isTicking=!1,this.toRemove=[],this.engine=e||(cu||(cu=new au)),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(hu.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=Vl(e),i=hu.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}(),mu=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.queue=new Zl,t}return lu(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=pu();return this.queue.push({callback:e,id:t}),t},t}(fu),gu=function(e){function t(t){var n=e.call(this,void 0,window)||this;return n.predicate=t,n}return lu(t,e),t.prototype.applyQueue=function(t){this.predicate(t)&&e.prototype.applyQueue.call(this,t)},t}(mu),vu=function(e){function t(t,n,i){void 0===i&&(i=!1);var r=e.call(this,t,n)||this;return r.lastVersion=ru.version,r.queue=new eu,r.ALLOW_CACHED_SCHEDULER=i,r}return lu(t,e),Object.defineProperty(t.prototype,"isDirty",{get:function(){return ru.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=Vl(r)),i(e,o,s)}this.lastVersion=ru.version},t.prototype.watch=function(e,t,n){this.startTicking(),n=n||pu();return this.queue.push({el:e,callback:t,id:n,clientRect:null}),n},t}(fu),yu=null;var bu=function(){function e(){this.queue=new $l}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}(),Eu=function(){function e(e){this.scheduler=new gu(e.bind(this))}return e.prototype.trigger=function(){},e.prototype.listen=function(e){this.state=hu.generate(),this.scheduler.watch(e)},e.prototype.unlisten=function(e){this.scheduler.unwatch(e)},e}(),_u=null;function wu(e,t){var n=(_u||(_u={scroll:new Eu((function(e){var t=this.state,n=t.scrollTop,i=t.scrollLeft;return this.state=e,n!==e.scrollTop||i!==e.scrollLeft})),resize:new Eu((function(e){var t=this.state,n=t.width,i=t.height;return this.state=e,i!==e.height||n!==e.width})),destroy:new bu,beforeunload:new bu,hide:new bu,show:new bu}))[e];n&&n.listen(t)}function Tu(e,t){if(_u){var n=_u[e];n&&n.unlisten(t)}}function Su(e,t){if(_u){var n=_u[e];n&&n.trigger(t)}}function ku(e){(yu||(yu=new mu)).scheduleWork(e)}function Cu(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}}ru.hasDOM&&(window.addEventListener("beforeunload",(function(){Su("beforeunload"),Su("destroy")})),document.addEventListener("visibilitychange",(function(){"visible"===document.visibilityState?Su("show"):Su("hide")})));var Iu=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 vu(void 0,this.root,t.ALLOW_CACHED_SCHEDULER)}return e.prototype.observe=function(e){var t=this,n=e,i=n.__spanielId=n.__spanielId||pu();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:Au(),intersectionRatio:0,intersectionRect:Au(),isIntersecting:!1,rootBounds:Au(),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:Kl({intersectionRect:o})}}({unixTime:e.dateNow,highResTime:e.highResTime,rootBounds:c,target:n,boundingClientRect:Cu(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 Au(){return{bottom:0,height:0,left:0,right:0,top:0,width:0,x:0,y:0}}var Lu={x:0,y:0,width:0,height:0,bottom:0,left:0,top:0,right:0};var Ou=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&&!!ru.IntersectionObserver;var h=this.usingNativeIo?ru.IntersectionObserver:Iu;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),ru.hasDOM&&(wu("beforeunload",this.onWindowClosed),wu("hide",this.onTabHidden),wu("show",this.onTabShown),c&&(this.paused="visible"!==ru.document.visibilityState))}return 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((ru.performance.timeOrigin||ru.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:Lu,boundingClientRect:o||Lu,intersectionRect:Lu,visibleTime:r.lastVisible.unixTime,duration:Yl(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=Yl(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:Kl(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=Yl(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(),ru.hasDOM&&(Tu("beforeunload",this.onWindowClosed),Tu("hide",this.onTabHidden),Tu("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),ku((function(){t.handleRecordExiting(n),t.flushQueuedEntries()})))},e.prototype.observe=function(e,t){var n=e,i=n.__spanielId=n.__spanielId||pu();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},e}();ru.IntersectionObserver&&ru.IntersectionObserver;class Ru{constructor(e){let{thresholds:t,root:n=null,rootMargin:i="0px",componentList:r=[],observeOnce:o=!1,trailingTrackingEnabled:s=!1,deferInitialTracking:a=!1,getElementPayload:c,onImpression:l=(()=>{}),onObservation:u=(()=>{}),onUnobservation:d=(()=>{})}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.root=n,this.thresholds=t||[{label:"impressed",time:1e3,ratio:.5}],this.rootMargin=i,this.trackingInstance=e,this.trailingTrackingEnabled=s,this._getElementPayload=c,this._onImpression=l,this._onObservation=u,this.observeOnce=o,this._onUnobservation=d;const h={root:this.root,rootMargin:this.rootMargin,threshold:this.thresholds};this.spanielObserverInstance=new Ou(this._handleObservedNodes.bind(this),h),!a&&this.observeComponents(r)}observeComponents(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];this.spanielObserverInstance&&e.forEach(e=>{const t=this._getElementPayload?this._getElementPayload(e):{};this.spanielObserverInstance.observe(e,t),this._onObservation(e)})}unobserveComponents(){(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]).forEach(e=>{this.spanielObserverInstance.unobserve(e),this._onUnobservation(e)})}_handleOnImpression(e){this._onImpression({trackingInstance:this.trackingInstance,visibleElements:e}),this.observeOnce&&this.unobserveComponents(e.map(e=>{let{target:t}=e;return t}))}_handleObservedNodes(e){if(this.spanielObserverInstance){const t=e.filter(e=>this.trailingTrackingEnabled?!e.entering:e.entering&&e.boundingClientRect.width>0&&e.boundingClientRect.height>0);t.length>0&&this._handleOnImpression(t)}}reset(){this.spanielObserverInstance.disconnect()}destroy(){this.spanielObserverInstance.destroy()}static fireImpressionEvent(e,t,n,i){let r=e.payload||{};r.visibleTime=e.time-e.duration,r.duration=e.duration,r.size={width:e.boundingClientRect.width,height:e.boundingClientRect.height},r=i?i(r):r,t.fireTrackingEvent(n,r)}}const Nu=".".concat("show-more-less","__list"),Pu=".".concat("show-more-less","__more-button"),xu=".".concat("show-more-less","__less-button"),Mu="".concat("show-more-less","__list--hide-after"),Du="".concat("show-more-less","__button--hide");class Uu{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e=>e.querySelector(F);if(!e)throw Error("An element must be provided to ShowMoreLess");this.el=e,this.listEl=this.el.querySelector(Nu),this._getFocusItemFromListItem=t,this.maxNumToShow=parseInt(this.listEl.getAttribute("data-max-num-to-show")),this.hideClass="".concat(Mu,"-").concat(this.maxNumToShow),this.showMoreButton=this.el.querySelector(Pu),this.showLessButton=this.el.querySelector(xu),this._attachEventListeners(),this.firstHiddenListItem=this.listEl.children[this.maxNumToShow],this.isExpanded=!this.listEl.classList.contains(this.hideClass),new x(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(Du),this.showMoreButton.classList.remove(Du)):(this.showLessButton.classList.remove(Du),this.showMoreButton.classList.add(Du))}}".".concat("accordion-item__trigger");const Bu=350;class Fu{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=Bu}=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(oo()){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(){!0===ya("isClsFixActive")||document.body.classList.add("body--sticky-header"),this.stickyElement=new ka(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())}}const qu=["options","optionsV2"];function Hu(e){return t=>t.type&&t.type.toLowerCase()===e.toLowerCase()}const ju=Hu("action"),zu=Hu("openpage"),Gu=Hu("openlink"),Wu=e=>ju(e)&&"BLOCK_PROFILE"===e.action.actionType;function Ku(e){const t=function(e){const t=(e.type?e.type:e).toLowerCase().split("_"),n=[];n.push(t.splice(0,1));for(const e of t)n.push(e[0].toUpperCase()+e.slice(1));return n.join("")}(e),n=t.toLowerCase();return{[n]:Ae({},e[t]),type:n}}class Vu{constructor(e){this.optionStack=[],this.semaphoreJson=e.constructor==={}.constructor?e:JSON.parse(e)}getNextStep(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=this.semaphoreJson,{options:n,optionsV2:i}=t,r=Oe(t,qu);if(n&&!(this.optionStack.length>=r.numberOfSteps)){if("BLOCK_PROFILE"===e){let e=n.find(e=>ju(e)&&"BLOCK_PROFILE"===e.action.type);if(!e)return;e=JSON.parse(JSON.stringify(e)),e.action.actionType="BLOCK_PROFILE";const t=[e];return this.optionStack.push(Ae({options:t.map(e=>Ku(e)),heading:r.blockConfirmationScreen.heading},r)),this.optionStack[this.optionStack.length-1]}if(e){const t=this.optionStack.length;if(0===t)return;const n=this.optionStack[t-1].options.find(t=>t[t.type].title===e);if(!n)return;if(zu(n))return Ae(Ae({},n),r);const i=Ae({options:n[n.type].options.map(e=>Ku(e))},r);n[n.type].heading&&(i.heading=n[n.type].heading),this.optionStack.push(i)}else n=[...n,...i],this.optionStack.push(Ae({options:n.map(e=>Ku(e))},r));return this.optionStack[this.optionStack.length-1]}}getPreviousStep(){if(this.optionStack.length>1)return this.optionStack.pop(),this.optionStack[this.optionStack.length-1]}hasPreviousStep(){return this.optionStack.length>1}getCurrentStep(){return this.optionStack[this.optionStack.length-1]}findAction(e){const t=this.optionStack[this.optionStack.length-1].options;if(!t)return;const n=t.find(t=>ju(t)&&t[t.type].title===e);return n&&n.action}}const Yu="hidden";class Ju extends Xr{constructor(e){super(e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}),this.titleEl=this._el.querySelector(".semaphore-modal__title"),this.contentEl=this._el.querySelector(".semaphore-modal__content"),this.footer=this._el.querySelector(".modal__footer"),this.submitBtn=this.footer.querySelector('[data-semaphore-action="submit"]')}setTitle(e){this.titleEl.textContent=e}setContent(e){this.contentEl.appendChild(e)}hideFooter(){this.footer.classList.add(Yu)}showFooter(){this.footer.classList.remove(Yu)}enableSubmit(){this.submitBtn.disabled=!1}disableSubmit(){this.submitBtn.disabled=!0}hideSubmit(){this.disableSubmit(),this.submitBtn.classList.add(Yu)}showSubmit(){this.enableSubmit(),this.submitBtn.classList.remove(Yu)}querySelector(e){return this._el.querySelector(e)}clearContent(){for(this.disableSubmit();this.contentEl.firstChild;)this.contentEl.removeChild(this.contentEl.firstChild)}close(){this.clearContent(),super.close()}}class Xu{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:'[data-item-type="semaphore"]',t=arguments.length>1?arguments[1]:void 0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:()=>{},i=arguments.length>3?arguments[3]:void 0;this.semaphoreSelector=e,this.parentContainer=t||document;const r=this.parentContainer.querySelector(e);if(r){this.semaphoreTrackingPrefix=r.dataset.semaphoreTrackingPrefix;const e=this.parentContainer.querySelector("#semaphore-modal");e&&(this.semaphoreModal=new Ju(e,{focusElement:i}),this.submitActionCallBack=n,this.parentContainer?(this.parentContainer.addEventListener("click",this.semaphoreClickHandler.bind(this)),e.addEventListener("click",this.clickHandler.bind(this))):(document.body.removeEventListener("click",this.clickHandler),document.body.addEventListener("click",this.clickHandler.bind(this))))}}clickHandler(e){const t=r(e.target,"[data-semaphore-input]");if(t){if(t.href)return e.preventDefault(),void window.open(t.href,"_blank");"semaphore-action"===t.name&&(this.semaphoreModal.showFooter(),this.semaphoreModal.showSubmit())}if("back"===e.target.dataset.semaphoreAction){const e=this.semaphoreConfigParser.getPreviousStep();return void(e?(this.renderSemaphoreOptions(e),this.refreshLazyLoader(),this.semaphoreModal.open()):this.semaphoreModal.close())}if("submit"===e.target.dataset.semaphoreAction){let t=this.semaphoreModal.querySelector("[data-semaphore-input]:checked");if(t){const n=this.semaphoreConfigParser.findAction(t.value);n&&this.sendAction(n).finally(()=>{this.renderThanks(this.semaphoreConfigParser.getCurrentStep().resultScreen),this.submitActionCallBack(e)})}}let n=r(e.target,"[data-semaphore-item]");if(n&&"action"!==n.dataset.semaphoreItem){const t=n.querySelector('[data-attr="title"]');if(t){const n=this.semaphoreConfigParser.getNextStep(t.textContent);n&&(zu(n)?(this.renderThanks(n.resultScreen),this.submitActionCallBack(e)):this.renderSemaphoreOptions(n),this.refreshLazyLoader(),this.semaphoreModal.open())}}else{if(n&&"BLOCK_PROFILE"===n.dataset.semaphoreType){const e=this.semaphoreConfigParser.getNextStep("BLOCK_PROFILE");e&&this.renderSemaphoreOptions(e)}this.parentContainer||this.semaphoreClickHandler(e)}}semaphoreClickHandler(e){let t=r(e.target,this.semaphoreSelector);t&&t.dataset.semaphoreContentType&&t.dataset.semaphoreContentUrn&&"true"===t.dataset.isLoggedIn&&(e.preventDefault(),this.makeSemaphoreRequest(t.dataset.semaphoreContentUrn,t.dataset.semaphoreContentType,t.dataset.semaphoreAuthorProfileId,t.dataset.semaphoreAuthorUrn).then(e=>{this.semaphoreConfigParser=new Vu(e);const t=this.semaphoreConfigParser.getNextStep();if(t){this.renderSemaphoreOptions(t),this.refreshLazyLoader(),this.semaphoreModal.open();const e=document.querySelector(".top-level-modal-container .modal__dismiss");null==e||e.focus()}}))}renderSemaphoreOptions(e){this.semaphoreModal.clearContent();const t=this.parentContainer.querySelector("#semaphore-container-template").content.firstElementChild.cloneNode(!0);let n=!1,i=!1,r=!1;e.options.forEach(o=>{let s=o.type;Gu(o)&&!i&&(i=!0),ju(o)&&(n||(n=!1===o[s].nonRadioOptionEnabled),s=Wu(o)?"block":o[s].nonRadioOptionEnabled?s:"".concat(s,"-radio"));const a=this.parentContainer.querySelector("#semaphore-".concat(s,"-template")).content.firstElementChild.cloneNode(!0),c=o[o.type],l=a.querySelector('[data-attr="title"]');if(l&&(l.textContent=c.title),c.type&&(a.dataset.semaphoreType=c.type),ju(o)){if(Wu(o)){r=!0;const t="".concat(e.blockConfirmationScreen.firstLine," \n ").concat(e.blockConfirmationScreen.secondLine);a.querySelector('[data-attr="block-content"]').textContent=t}a.querySelector("[data-semaphore-input]").value=c.title}const u=a.querySelector('[data-attr="body"]');u&&(c.body?u.textContent=c.body:u.remove()),c.url&&(a.querySelector("[data-semaphore-input]").href=c.url),a.querySelector("[data-semaphore-input]").dataset.trackingControlName=c.trackingId,t.appendChild(a)}),this.semaphoreModal.setContent(t),this.semaphoreModal.setTitle(e.heading||e.headings.whyReportingThis),this.semaphoreConfigParser.hasPreviousStep()?(this.semaphoreModal.showFooter(),r&&this.semaphoreModal.showSubmit()):this.semaphoreModal.hideFooter(),i&&this.semaphoreModal.hideSubmit()}renderThanks(e){this.semaphoreModal.hideFooter(),this.semaphoreModal.clearContent(),this.semaphoreModal.setTitle(e.title);const t=this.parentContainer.querySelector("#semaphore-result-template").content.firstElementChild.cloneNode(!0);t.querySelector('[data-attr="thanks-text-body"]').textContent=e.messageBody.body;let n=t.querySelector('[data-attr="thanks-help-center-link"]');n.textContent=e.messageBody.helpCenterText,n.href=this.addTrackingCode(e.messageBody.helpCenterLink);const i=document.createElement("div");i.appendChild(t),this.semaphoreModal.setContent(i)}addTrackingCode(e){return f(e,this.semaphoreTrackingPrefix)}sendAction(e){return ne(e.actionUrl,{method:e.actionUrlRequestType,postData:e.actionPostData})}makeSemaphoreRequest(e,t,n,i){let r=m("/psettings/flagging-menu","entityUrn",e);return r=m(r,"contentSource",t),n?r=m(r,"authorProfileId",n):i&&(r=m(r,"authorUrn",i)),ne(r).then(e=>200===e.status?e.responseText:"{}").catch(()=>"{}")}refreshLazyLoader(){window.lazyloader&&window.lazyloader.then(e=>{e.refreshLoader()})}}class Qu{constructor(e){if(!e)throw new Error("EllipsisMenu el required");this._el=e,this.currentMenuItem=this._el.querySelector(".ellipsis-menu__item-button");const t=this._el.querySelector(".collapsible-dropdown");if(!t)throw new Error("A collapsible dropdown is required to instantiate an EllipsisMenu");this.collapsibleDropdown=new te(t,{elementToFocus:this.currentMenuItem});this._el.querySelector(".ellipsis-menu__semaphore")&&(this._semaphore=new Xu('[data-item-type="semaphore"]',t))}}const Zu="See https://go/pem/degradation-tracking-user-guide for instrumentation instructions";var $u;!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"}($u||($u={}));const ed=new Set(Object.values($u));class td extends Error{constructor(e){super(e),Object.setPrototypeOf(this,td.prototype)}}function nd(e){return 0===e.length||!e.trim()}function id(e){if("string"!=typeof e)throw new td("Keys must be strings. ".concat(Zu,"."));if(nd(e))throw new td("Keys should not be blank. ".concat(Zu,"."));if(/[^a-z0-9-]/.test(e))throw new td("'".concat(e,"' can only contain lowercase alphanumeric characters and dashes (-). ").concat(Zu,"."));return e}class rd{constructor(e,t,n){var i,r,o;if(this._shouldEnablePerformanceMeasurement=!1,this._shouldDisableAvailabilityCalculation=!1,this._shouldRecordSession=!1,this._featureKey=id(e),this._defaultDegradationKey=id(t),!n)return this._additionalDegradedResponseCodes=[],this._nonDegradedResponseCodes=[],void(this._degradationKeyOverrides=[]);if("object"!=typeof n)throw new td("DegradationTrackingMetadata options should be an object. ".concat(Zu,"."));const s=n.productName;s&&(this._productName=function(e){if("string"!=typeof e)throw new td("The product name must be a string. ".concat(Zu,"."));if(nd(e))throw new td("No product name was specified. Please configure a defaultProductName or specify it per instrumented API "+"call. ".concat(Zu,"."));if(/[^a-zA-Z0-9-_ \\/]/.test(e))throw new td("Product name '".concat(e,"' can only contain alphanumeric, underscores (_), spaces ( ), dashes (-) and forward slashes (/). ").concat(Zu,"."));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 td("Please only specify positive integer response codes between 1 and 999 for the ".concat(t," option. ")+"".concat(e," was specified. ").concat(Zu,"."));var n;if(429===e||999===e)throw new td("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===$u.NonDegradedResponseCodes&&e>=400&&e<500)throw new td("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($u.AdditionalDegradedResponseCodes," option")+". Please remove ".concat(e," from the ").concat($u.NonDegradedResponseCodes," option. ")+"".concat(Zu,"."))};if(void 0!==e&&!Array.isArray(e))throw new td("Please specify an array of positive integer response codes between 1 and 999 for the response codes that "+"shouldn't be counted as degraded for the ".concat($u.NonDegradedResponseCodes," option. ")+"".concat(Zu,"."));if(void 0!==t&&!Array.isArray(t))throw new td("Please specify an array of positive integer response codes between 1 and 999 for the response codes that should only be considered as the degraded state(s) for the "+"".concat($u.AdditionalDegradedResponseCodes," option. ").concat(Zu,"."));null==e||e.forEach(e=>n(e,$u.NonDegradedResponseCodes)),null==t||t.forEach(e=>n(e,$u.AdditionalDegradedResponseCodes));const i=new Set(t),r=new Set(e);if([...i].some(e=>r.has(e)))throw new td("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(Zu,"."))}(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(!ed.has(e))throw new td("An unsupported degradation tracking option '".concat(e,"' was provided. Please fix or remove it. ")+"".concat(Zu))})}(n)}static isDegradationTrackingMetadata(e){return null!=e&&Object.getOwnPropertyNames(rd.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 od(e){var t;null===(t=window.lazyloader)||void 0===t||t.then(e=>e.getLazyLoadedJavascriptModule("mweb-gdpr-notice-manager-js")).then(()=>{window.GDPRNoticeManager?new window.GDPRNoticeManager(e):window.GDPRNoticesConfig=e})}function sd(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()})}class ad{constructor(e){let{isShown:t=!0}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!e)throw Error("An element must be provided to WindowsAppUpsell");this.el=e,this.dismissBtn=this.el.querySelector(".windows-app-upsell .cta-modal__dismiss-btn"),this.dismissable=new fc(this.el,this.dismissBtn,{isShown:t}),sd(this.updateDeeplink.bind(this))}updateDeeplink(){const e=this.el.querySelector(".windows-app-upsell .windows-app-upsell__cta");e&&e.setAttribute("href","linkedin://")}}const cd=10;class ld{constructor(e){let{minutesCoolOff:t=cd,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 Il(i,{fireTrackingOnInit:!1})),this.modal=new Xr(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""}}}const ud=10;class dd{constructor(e){let{minutesCoolOff:t=ud,triggerByOutletEl:n=!0}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!e)throw Error("An element must be provided to contextual sign in card");this.el=e,this.coolOffEnabled=this.el.hasAttribute("data-cool-off-enabled"),this.coolOffPeriod=60*t*1e3,this.signInModalEl=this.el.querySelector(".".concat("sign-in-modal")),this.signInModalEl&&(this.signInModal=new ld(this.signInModalEl)),this.contextualModalEl=this.el.querySelector(".".concat("modal--contextual-sign-in")),this.contextualModalEl&&(this.contextualModal=new Xr(this.contextualModalEl,{enablePageViewTracking:!0,shouldHideModal:this._shouldHideModal.bind(this),triggerByOutletEl:n})),this.anonymousLoginToggleInput=this.contextualModalEl.querySelector(".anonymous-login-toggle input"),this.signInModal.modalEl.addEventListener("open",()=>{this._syncToggleStates(this.signInModal.signInForm.anonymousLoginToggleInput,this.anonymousLoginToggleInput),this.contextualModal.close(),localStorage.removeItem("contextual-sign-in-modal-cool-off-hidden"),this.signInModal.modal.noScroll()}),this.signInModal.modalEl.addEventListener("close",()=>{this._syncToggleStates(this.anonymousLoginToggleInput,this.signInModal.signInForm.anonymousLoginToggleInput),this._setCoolOff()}),this.contextualModalEl.addEventListener("close",()=>{this._setCoolOff()})}_syncToggleStates(e,t){e&&t&&(e.checked=t.checked)}_shouldHideModal(){if(!this.coolOffEnabled)return!1;try{const e=localStorage.getItem("contextual-sign-in-modal-cool-off-hidden");if(e){return Date.now()-e<this.coolOffPeriod||(localStorage.removeItem("contextual-sign-in-modal-cool-off-hidden"),!1)}}catch(e){return!1}}_setCoolOff(){if(this.coolOffEnabled&&!this._shouldHideModal())try{localStorage.setItem("contextual-sign-in-modal-cool-off-hidden",Date.now())}catch(e){return""}}}var hd={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 g(e,t){var n=document.createElement("script");n.src=e,t&&(n.onload=t),document.head.appendChild(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 v="990339570472-k6nqn1tpmitg8pui82bfaun3jrpmiuhs.apps.googleusercontent.com",y={GOOGLE_ERROR:"googleError",GOOGLE_USER_FETCHED:"googleUserFetched",INITIALIZED:"initialized",PROMPT_MOMENT:"promptMomentNotification",TOKEN_FETCHED:"tokenFetched"},b={INITIALIZATION:"initialization",AUTHENTICATION:"authentication"},E={SIGN_IN:"signin",SIGN_UP:"signup",USE:"use"},_={DISPLAY:"display",SKIPPED:"skipped",DISMISSED:"dismissed"},w={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"}},T={DISMISSED:"DISMISSED",INITIALIZED:"INITIALIZED",SNAPPLE_USER_FETCHED:"SNAPPLE_USER_FETCHED"},S={signin:{GOT:"signin",GSI_BUTTON:"signin_with"},signup:{GOT:"signup",GSI_BUTTON:"signup_with"},use:{GOT:"use",GSI_BUTTON:"continue_with"}},k=y.GOOGLE_ERROR,C=y.GOOGLE_USER_FETCHED,I=y.INITIALIZED,A=b.INITIALIZATION,L=b.AUTHENTICATION,O=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?v: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(){g(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(I);e.dispatchEvent(n)})).catch((function(t){var n={type:A,message:t.error},i=new CustomEvent(k,{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:L,message:t.error},i=new CustomEvent(k,{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)),R=y.GOOGLE_USER_FETCHED,N=y.PROMPT_MOMENT,P=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?v: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(){g(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===E.SIGN_UP?this._getBasicProfile(t):{idToken:t};if(n){n.selectedBy=e.select_by;var i=new CustomEvent(R,{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:w.SKIPPED.ISSUING_FAILED,type:_.SKIPPED},n=new CustomEvent(N,{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(N,{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)),x={exports:{}};function M(e){this.message=e}M.prototype=new Error,M.prototype.name="InvalidCharacterError";var D="undefined"!=typeof window&&window.atob&&window.atob.bind(window)||function(e){var t=String(e).replace(/=+$/,"");if(t.length%4==1)throw new M("'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},U=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(D(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 D(t)}};function B(e){this.message=e}B.prototype=new Error,B.prototype.name="InvalidTokenError",x.exports=function(e,t){if("string"!=typeof e)throw new B("Invalid token specified");var n=!0===(t=t||{}).header?0:1;try{return JSON.parse(U(e.split(".")[n]))}catch(e){throw new B("Invalid token specified: "+e.message)}},x.exports.InvalidTokenError=B;var F=x.exports,q=y.GOOGLE_USER_FETCHED,H=y.PROMPT_MOMENT,j=function(e){s(a,e);var n=f(a);function a(e){var i,r,o,s,c=e.autoSelect,l=void 0!==c&&c,u=e.buttonParentEl,d=e.cancelOnTapOutside,p=void 0===d||d,f=e.clientId,y=void 0===f?v:f,b=e.context,E=void 0===b?"signin":b,_=e.gsiButtonConfig,w=void 0===_?{}:_,T=e.libSrcPath,S=e.hasContentAbove,k=void 0!==S&&S,C=e.promptParentId,I=e.showOneTap,A=void 0===I||I;if(t(this,a),(i=n.call(this)).autoSelect=l,i.buttonParentEl=u,i.cancelOnTapOutside=p,i.clientId=y,i.context=E,i.gsiButtonConfig=w,i.isLibraryLoaded=((s=new Promise((function(e,t){r=e,o=t}))).resolve=r,s.reject=o,s),i.libSrcPath=T,i.hasContentAbove=k,i.promptParentId=C,i.showOneTap=A,window.google&&window.google.accounts&&window.google.accounts.id)i._onGoogleApiLoad();else{if(!T)throw TypeError("GSI lib is not already loaded on the page. libSrcPath is required to load the library");m((function(){g(T,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:S[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||S[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(q,{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)),z=T.DISMISSED,G=T.INITIALIZED,W=T.SNAPPLE_USER_FETCHED,K=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(){g(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(G);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(W,{detail:t});e.dispatchEvent(n)})).catch((function(t){var n=new CustomEvent(z,{detail:{type:z,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)),V={CLIENT_ID:v,EVENTS:y,GOOGLE_ACCOUNT_URL:"https://accounts.google.com",GSI_ERROR_TYPES:b,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:E,GOT_PROMPT_MOMENT_REASONS:w,GOT_PROMPT_MOMENT_TYPES:_};e.GoogleGsi=j,e.GoogleOneTap=P,e.GoogleSignIn=O,e.GoogleSignInConstants=V,e.SnappleAuth=K,e.SnappleEvents=T,Object.defineProperty(e,"__esModule",{value:!0})})(hd.exports);const{EVENTS:pd,GOT_CONTEXTS:fd,GOT_PROMPT_MOMENT_REASONS:md,GOT_PROMPT_MOMENT_TYPES:gd}=hd.exports.GoogleSignInConstants,{GOOGLE_USER_FETCHED:vd,PROMPT_MOMENT:yd}=pd,{SIGN_IN:bd}=fd,Ed=[md.NOT_DISPLAYED.BROWSER_NOT_SUPPORTED,md.NOT_DISPLAYED.OPT_OUT_OR_NO_SESSION,md.NOT_DISPLAYED.SUPPRESSED_BY_USER],_d=[md.SKIPPED.AUTO_CANCEL,md.SKIPPED.TAP_OUTSIDE,md.SKIPPED.USER_CANCEL],wd=Object.freeze({ONE_TAP:"one_tap",ONE_TAP_AUTO_LOGIN:"one-tap-auto-login",BUTTON:"button"});class Td{constructor(e){let{clientId:t,globalWindow:n=window,onNotDisplayed:i,onSkipped:r}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.buttons=Array.from(document.querySelectorAll(".google-auth-button__placeholder")),this.clientId=t,this.isLinkedInAppWebView=!0===ya("isLinkedInAppWebView"),this.el=e,this.showOneTap=!this.isLinkedInAppWebView,(this.buttons.length||this.showOneTap&&this.el)&&(this.useAutoSelect=this._shouldAutologin(),this.isTermsAndConditionsSkipEnabledOneTap=ya("isTermsAndConditionsSkipEnabledOneTap"),this.isTermsAndConditionsSkipEnabledAuthButton=ya("isTermsAndConditionsSkipEnabledAuthButton"),this.window=n,this.onNotDisplayed=i,this.onSkipped=r,this.loader=new Fa(this.el.querySelector(".loader"),this.el),this._initGoogleAuth(),this._isMobile=Q())}_initGoogleAuth(){return this.window.lazyloader.then(e=>e.getLazyLoadedJavascriptModule("google-gsi-lib")).then(()=>{const e=ya("googleAuthLibraryPath");if(e)return this.googleGsiInstance=new hd.exports.GoogleGsi({autoSelect:this.useAutoSelect,cancelOnTapOutside:!1,clientId:this.clientId,context:bd,hasContentAbove:this.isTermsAndConditionsSkipEnabledOneTap,libSrcPath:la.sanitizeUrl(e),promptParentId:this.isTermsAndConditionsSkipEnabledOneTap?"google-one-tap__container":void 0,showOneTap:this.showOneTap}),this._initButtons(),this.googleGsiInstance.addEventListener(vd,e=>{let{detail:t}=e;const{email:n,familyName:i,givenName:r,idToken:o,imageUrl:s,selectedBy:a}=t;this.loader.show();const c=this._getRequestType(a);this._addGoogleFieldToForm("googleGivenName",r),this._addGoogleFieldToForm("googleIdToken",o),this._addGoogleFieldToForm("googleFamilyName",i),this._addGoogleFieldToForm("googleImageUrl",s),this._addGoogleFieldToForm("googleEmail",n),this._addGoogleFieldToForm("soogleLoginRequestType",c),this._addGoogleFieldToForm("apfc",kl());const l=c===wd.BUTTON?"google-sign-in--account-selected":"google-one-tap--account-selected";this._fireControlInteractionEvent(l),this._conditionalIncludeTermsAndConditionsSkip(l),this.el.submit()}),this.googleGsiInstance.addEventListener(yd,e=>{let{detail:t}=e;const{reason:n,type:i}=t;let r="google-one-tap-moment--".concat(i);r=n?"".concat(r,"-").concat(n):r,this._fireControlInteractionEvent(r);const o=this.el.querySelector(".google-one-tap__module");if(n){if(this._fireCounterIngraphMetric(i,n),i===gd.SKIPPED){if(n===md.SKIPPED.USER_CANCEL&&(null==o||o.classList.add("hidden"),this._fireControlInteractionEvent("google-one-tap--user-dismissed")),this.onSkipped)this.onSkipped(t);else if(-1===_d.indexOf(n))throw Error("GoogleOneTapError ".concat(i,": ").concat(n))}else if(i===gd.DISPLAY)if(this.onNotDisplayed)this.onNotDisplayed(t);else if(-1===Ed.indexOf(n))throw Error("GoogleOneTapError ".concat(i,": ").concat(n))}else if(i===gd.DISPLAY){if(this._isMobile){const e=document.querySelector("#credential_picker_iframe");if(e){new ResizeObserver(e=>{for(let t of e)o&&(0===t.contentRect.height?o.classList.add("hidden"):(o.classList.remove("hidden"),o.style.bottom="".concat(t.contentRect.height,"px")))}).observe(e)}}else null==o||o.classList.remove("hidden");this._fireViewModuleImpressionEvent("google-one-tap")}}),this.googleGsiInstance})}_fireCounterIngraphMetric(e,t){let n="";e===gd.DISPLAY&&t===md.NOT_DISPLAYED.OPT_OUT_OR_NO_SESSION?n="GoogleAuthDisabledOrNoSessionError":(_d.indexOf(t)>=0||Ed.indexOf(t)>=0)&&(n="GoogleAuthMiscError"),n&&this.window.ingraphTracking.then(e=>{e.fireCounterIngraphMetric({metricsType:n})})}_fireViewModuleImpressionEvent(e){this.window.tracking&&this.window.tracking.then(t=>{zr(t,[e])})}_fireControlInteractionEvent(e){this.window.tracking&&this.window.tracking.then(t=>{t.fireControlInteractionEvent(e)})}_initButtons(){var e,t;null!==(e=this.buttons)&&void 0!==e&&e.length&&(this._fireViewModuleImpressionEvent("google-button-view"),null===(t=this.buttons)||void 0===t||t.forEach(e=>{this.googleGsiInstance.renderGSIButton(e,this._getButtonConfig(e))}))}_getButtonConfig(e){if(e){const t=e.parentElement.offsetWidth-2;return{text:e.dataset.text||"continue_with",width:t}}return{}}_getRequestType(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";switch(!0){case"auto"===e:return wd.ONE_TAP_AUTO_LOGIN;case e.indexOf("user")>-1:return wd.ONE_TAP;default:return wd.BUTTON}}_addGoogleFieldToForm(e,t){const n=document.createElement("input");n.type="hidden",n.name=e,n.id=e,n.value=t,this.el.appendChild(n)}_shouldAutologin(){return!(null!==v("li_g_recent_logout"))}_conditionalIncludeTermsAndConditionsSkip(e){"google-one-tap--account-selected"===e?ya("termsAndConditionsRendered")&&this._addGoogleFieldToForm("termsAndConditionsSkip",!0):"google-sign-in--account-selected"===e&&this.isTermsAndConditionsSkipEnabledAuthButton&&this._addGoogleFieldToForm("termsAndConditionsSkip",!0)}}".".concat("filter-values-container__filter-value"," input"),".".concat("filter-values-container__filter-value"," input[type=radio]:checked");class Sd{constructor(e){var t;let{isShown:n=!1,bannerDismissedLocalStorageKey:i=""}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!e)throw Error("An element must be provided to the banner element");if(this.el=e,this.dismissBtnEl=this.el.querySelector(".banner__dismiss-button"),this.isBottom="true"===(null===(t=this.el.dataset)||void 0===t?void 0:t.isBottom),this.dismissBtnEl)if(i){let t;try{t=window.localStorage.getItem(i)}catch(e){t=!0}const n=!t;if(this.bannerDismissable=new fc(this.el,this.dismissBtnEl,{isShown:n}),n)try{e.addEventListener("dismiss",()=>{window.localStorage.setItem(i,"true")})}catch(e){}}else this.bannerDismissable=new fc(this.el,this.dismissBtnEl,{isShown:n});this.isBottom&&new ka(this.el)}}class kd{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 ac(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()}}class Cd{constructor(e){let{enablePageViewTracking:t=!0,shouldHideModal:n=(()=>!1),triggerByOutletEl:i=!1,shouldMoveToTopContainer:r=!0,focusElement:o,pageKey:s}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!e)throw new Error("No element passed into to image viewer modal");this.el=e,this.modal=new ac(this.el,{enablePageViewTracking:t,shouldHideModal:n,triggerByOutletEl:i,shouldMoveToTopContainer:r,focusElement:o,pageKey:s||"p_mwlite_image_viewer"});const a=this.el.querySelector(".slide-list");this.slideList=new Do(a),null==a||a.addEventListener("click",this._handleImageClick.bind(this))}open(e,t){e&&this.slideList.goToItem(e),this.modal.open(t)}_handleImageClick(e){e.target.closest(".main-image")&&this.el.classList.toggle("hide-components")}}const Id={LOAD_INFINITE_SCROLL:"load-infinite-scroll"};function Ad(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=Ae(Ae({},a),{},{trackedResponseCodes:r}):o&&(a=Ae(Ae({},a),{},{untrackedResponseCodes:o})),new rd(s,i,a)}(t,i,e))}const Ld={AJAX:"ajax",HALF:"half",FULL:"full",ERROR:"error"};let Od=e=>!e||!e.count||e.start+e.count>=e.total;function Rd(e){const{fetchUrl:t,parentListEl:n,pemDegradationTrackingMetadataParams:i,paginationPageKey:r}=e;return function(){const e=document.querySelector("#".concat("paginationMetaData"))&&ya("paginationMetaData"),o=t(e);if(e&&0!==e.count&&o&&((null==e||!e.total)&&!1!==this.hasMoreContent||!Od(e))){const e=ne(o,{isPemEnabled:!0,pemDegradationTrackingMetadata:Ad({featureName:Id.LOAD_INFINITE_SCROLL,featureMappingToDegradationConfig:i.featureMappingToDegradationConfig,productName:i.productName})});return e.then(e=>{var t;this.hasMoreContent=!!e.responseText;const i=xs(null,e.responseText,{ADD_ATTR:["category"]});n.append(...i.childNodes),null===(t=window.tracking)||void 0===t||t.then(e=>{window.lazyloader.then(e=>e.refreshLoader()),r&&Hr(e,Ld.AJAX,r)})}).catch(()=>{var e;r&&(null===(e=window.tracking)||void 0===e||e.then(e=>{Hr(e,Ld.ERROR,r)}));this.removeInfiniteScroller()}),e}return this.removeInfiniteScroller(),Promise.resolve()}}class Nd extends Ce{constructor(e){if(!e)throw new Error("options object needs to be passed");const t=[];if(e.loadResults||(e.fetchUrl||t.push("fetchUrl"),e.parentListEl||t.push("parentListEl")),t.length)throw new Error("".concat(t.join(",")," must be passed to the component"));Od=e.isLastPage||Od;const n=Ae(Ae({scrollLoadLimit:1e4,wait:300,loaderEl:document.querySelector(".loader--scroller")},e),{},{loadResults:e.loadResults||Rd(e)});super(e.el,n),this.hasMoreContent=!0}}class Pd{constructor(){this.backButton=document.querySelector("#full-page-header-back-button"),this._attachEventListeners()}_attachEventListeners(){this.backButton&&this.backButton.addEventListener("click",()=>history.back())}}class xd extends Ra{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:xd.query,variables:{digitalMediaRegisterUploadResponseDataFetcherInput:{imageUrl:e.imageUrl,owner:e.owner,uploadMechanisms:["SYNCHRONOUS_UPLOAD","SINGLE_REQUEST_UPLOAD"],uploadRecipes:[e.recipe]}},successCallback:t,failureCallback:n})}}Le(xd,"query","20f8e9934e7df62932fd167d87c19b27");var Md=function(){this.__data__=[],this.size=0};var Dd=function(e,t){return e===t||e!=e&&t!=t},Ud=Dd;var Bd=function(e,t){for(var n=e.length;n--;)if(Ud(e[n][0],t))return n;return-1},Fd=Bd,qd=Array.prototype.splice;var Hd=Bd;var jd=Bd;var zd=Bd;var Gd=Md,Wd=function(e){var t=this.__data__,n=Fd(t,e);return!(n<0)&&(n==t.length-1?t.pop():qd.call(t,n,1),--this.size,!0)},Kd=function(e){var t=this.__data__,n=Hd(t,e);return n<0?void 0:t[n][1]},Vd=function(e){return jd(this.__data__,e)>-1},Yd=function(e,t){var n=this.__data__,i=zd(n,e);return i<0?(++this.size,n.push([e,t])):n[i][1]=t,this};function Jd(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])}}Jd.prototype.clear=Gd,Jd.prototype.delete=Wd,Jd.prototype.get=Kd,Jd.prototype.has=Vd,Jd.prototype.set=Yd;var Xd=Jd,Qd=Xd;var Zd=function(){this.__data__=new Qd,this.size=0};var $d=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n};var eh=function(e){return this.__data__.get(e)};var th=function(e){return this.__data__.has(e)},nh="object"==typeof oe&&oe&&oe.Object===Object&&oe,ih=nh,rh="object"==typeof self&&self&&self.Object===Object&&self,oh=ih||rh||Function("return this")(),sh=oh.Symbol,ah=sh,ch=Object.prototype,lh=ch.hasOwnProperty,uh=ch.toString,dh=ah?ah.toStringTag:void 0;var hh=function(e){var t=lh.call(e,dh),n=e[dh];try{e[dh]=void 0;var i=!0}catch(e){}var r=uh.call(e);return i&&(t?e[dh]=n:delete e[dh]),r},ph=Object.prototype.toString;var fh=hh,mh=function(e){return ph.call(e)},gh=sh?sh.toStringTag:void 0;var vh=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":gh&&gh in Object(e)?fh(e):mh(e)};var yh=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)},bh=vh,Eh=yh;var _h,wh=function(e){if(!Eh(e))return!1;var t=bh(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t},Th=oh["__core-js_shared__"],Sh=(_h=/[^.]+$/.exec(Th&&Th.keys&&Th.keys.IE_PROTO||""))?"Symbol(src)_1."+_h:"";var kh=function(e){return!!Sh&&Sh in e},Ch=Function.prototype.toString;var Ih=wh,Ah=kh,Lh=yh,Oh=function(e){if(null!=e){try{return Ch.call(e)}catch(e){}try{return e+""}catch(e){}}return""},Rh=/^\[object .+?Constructor\]$/,Nh=Function.prototype,Ph=Object.prototype,xh=Nh.toString,Mh=Ph.hasOwnProperty,Dh=RegExp("^"+xh.call(Mh).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");var Uh=function(e){return!(!Lh(e)||Ah(e))&&(Ih(e)?Dh:Rh).test(Oh(e))},Bh=function(e,t){return null==e?void 0:e[t]};var Fh=function(e,t){var n=Bh(e,t);return Uh(n)?n:void 0},qh=Fh(oh,"Map"),Hh=Fh(Object,"create"),jh=Hh;var zh=function(){this.__data__=jh?jh(null):{},this.size=0};var Gh=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},Wh=Hh,Kh=Object.prototype.hasOwnProperty;var Vh=function(e){var t=this.__data__;if(Wh){var n=t[e];return"__lodash_hash_undefined__"===n?void 0:n}return Kh.call(t,e)?t[e]:void 0},Yh=Hh,Jh=Object.prototype.hasOwnProperty;var Xh=Hh;var Qh=zh,Zh=Gh,$h=Vh,ep=function(e){var t=this.__data__;return Yh?void 0!==t[e]:Jh.call(t,e)},tp=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=Xh&&void 0===t?"__lodash_hash_undefined__":t,this};function np(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])}}np.prototype.clear=Qh,np.prototype.delete=Zh,np.prototype.get=$h,np.prototype.has=ep,np.prototype.set=tp;var ip=np,rp=Xd,op=qh;var sp=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e};var ap=function(e,t){var n=e.__data__;return sp(t)?n["string"==typeof t?"string":"hash"]:n.map},cp=ap;var lp=ap;var up=ap;var dp=ap;var hp=function(){this.size=0,this.__data__={hash:new ip,map:new(op||rp),string:new ip}},pp=function(e){var t=cp(this,e).delete(e);return this.size-=t?1:0,t},fp=function(e){return lp(this,e).get(e)},mp=function(e){return up(this,e).has(e)},gp=function(e,t){var n=dp(this,e),i=n.size;return n.set(e,t),this.size+=n.size==i?0:1,this};function vp(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])}}vp.prototype.clear=hp,vp.prototype.delete=pp,vp.prototype.get=fp,vp.prototype.has=mp,vp.prototype.set=gp;var yp=Xd,bp=qh,Ep=vp;var _p=Xd,wp=Zd,Tp=$d,Sp=eh,kp=th,Cp=function(e,t){var n=this.__data__;if(n instanceof yp){var i=n.__data__;if(!bp||i.length<199)return i.push([e,t]),this.size=++n.size,this;n=this.__data__=new Ep(i)}return n.set(e,t),this.size=n.size,this};function Ip(e){var t=this.__data__=new _p(e);this.size=t.size}Ip.prototype.clear=wp,Ip.prototype.delete=Tp,Ip.prototype.get=Sp,Ip.prototype.has=kp,Ip.prototype.set=Cp;var Ap=Ip,Lp=Fh,Op=function(){try{var e=Lp(Object,"defineProperty");return e({},"",{}),e}catch(e){}}(),Rp=Op;var Np=function(e,t,n){"__proto__"==t&&Rp?Rp(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n},Pp=Np,xp=Dd;var Mp=function(e,t,n){(void 0!==n&&!xp(e[t],n)||void 0===n&&!(t in e))&&Pp(e,t,n)};var Dp=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}}(),Up={exports:{}};!function(e,t){var n=oh,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}}(Up,Up.exports);var Bp=oh.Uint8Array;var Fp=function(e){var t=new e.constructor(e.byteLength);return new Bp(t).set(new Bp(e)),t};var qp=function(e,t){var n=t?Fp(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)};var Hp=function(e,t){var n=-1,i=e.length;for(t||(t=Array(i));++n<i;)t[n]=e[n];return t},jp=yh,zp=Object.create,Gp=function(){function e(){}return function(t){if(!jp(t))return{};if(zp)return zp(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();var Wp=function(e,t){return function(n){return e(t(n))}}(Object.getPrototypeOf,Object),Kp=Object.prototype;var Vp=function(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||Kp)},Yp=Gp,Jp=Wp,Xp=Vp;var Qp=function(e){return"function"!=typeof e.constructor||Xp(e)?{}:Yp(Jp(e))};var Zp=function(e){return null!=e&&"object"==typeof e},$p=vh,ef=Zp;var tf=function(e){return ef(e)&&"[object Arguments]"==$p(e)},nf=Zp,rf=Object.prototype,of=rf.hasOwnProperty,sf=rf.propertyIsEnumerable,af=tf(function(){return arguments}())?tf:function(e){return nf(e)&&of.call(e,"callee")&&!sf.call(e,"callee")},cf=Array.isArray;var lf=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991},uf=wh,df=lf;var hf=function(e){return null!=e&&df(e.length)&&!uf(e)},pf=hf,ff=Zp;var mf=function(e){return ff(e)&&pf(e)},gf={exports:{}};var vf=function(){return!1};!function(e,t){var n=oh,i=vf,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}(gf,gf.exports);var yf=vh,bf=Wp,Ef=Zp,_f=Function.prototype,wf=Object.prototype,Tf=_f.toString,Sf=wf.hasOwnProperty,kf=Tf.call(Object);var Cf=function(e){if(!Ef(e)||"[object Object]"!=yf(e))return!1;var t=bf(e);if(null===t)return!0;var n=Sf.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&Tf.call(n)==kf},If=vh,Af=lf,Lf=Zp,Of={};Of["[object Float32Array]"]=Of["[object Float64Array]"]=Of["[object Int8Array]"]=Of["[object Int16Array]"]=Of["[object Int32Array]"]=Of["[object Uint8Array]"]=Of["[object Uint8ClampedArray]"]=Of["[object Uint16Array]"]=Of["[object Uint32Array]"]=!0,Of["[object Arguments]"]=Of["[object Array]"]=Of["[object ArrayBuffer]"]=Of["[object Boolean]"]=Of["[object DataView]"]=Of["[object Date]"]=Of["[object Error]"]=Of["[object Function]"]=Of["[object Map]"]=Of["[object Number]"]=Of["[object Object]"]=Of["[object RegExp]"]=Of["[object Set]"]=Of["[object String]"]=Of["[object WeakMap]"]=!1;var Rf=function(e){return Lf(e)&&Af(e.length)&&!!Of[If(e)]};var Nf=function(e){return function(t){return e(t)}},Pf={exports:{}};!function(e,t){var n=nh,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}(Pf,Pf.exports);var xf=Rf,Mf=Nf,Df=Pf.exports,Uf=Df&&Df.isTypedArray,Bf=Uf?Mf(Uf):xf;var Ff=function(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]},qf=Np,Hf=Dd,jf=Object.prototype.hasOwnProperty;var zf=function(e,t,n){var i=e[t];jf.call(e,t)&&Hf(i,n)&&(void 0!==n||t in e)||qf(e,t,n)},Gf=Np;var Wf=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?Gf(n,a,c):zf(n,a,c)}return n};var Kf=/^(?:0|[1-9]\d*)$/;var Vf=function(e,t){var n=typeof e;return!!(t=null==t?9007199254740991:t)&&("number"==n||"symbol"!=n&&Kf.test(e))&&e>-1&&e%1==0&&e<t},Yf=function(e,t){for(var n=-1,i=Array(e);++n<e;)i[n]=t(n);return i},Jf=af,Xf=cf,Qf=gf.exports,Zf=Vf,$f=Bf,em=Object.prototype.hasOwnProperty;var tm=function(e,t){var n=Xf(e),i=!n&&Jf(e),r=!n&&!i&&Qf(e),o=!n&&!i&&!r&&$f(e),s=n||i||r||o,a=s?Yf(e.length,String):[],c=a.length;for(var l in e)!t&&!em.call(e,l)||s&&("length"==l||r&&("offset"==l||"parent"==l)||o&&("buffer"==l||"byteLength"==l||"byteOffset"==l)||Zf(l,c))||a.push(l);return a};var nm=yh,im=Vp,rm=function(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t},om=Object.prototype.hasOwnProperty;var sm=tm,am=function(e){if(!nm(e))return rm(e);var t=im(e),n=[];for(var i in e)("constructor"!=i||!t&&om.call(e,i))&&n.push(i);return n},cm=hf;var lm=function(e){return cm(e)?sm(e,!0):am(e)},um=Wf,dm=lm;var hm=Mp,pm=Up.exports,fm=qp,mm=Hp,gm=Qp,vm=af,ym=cf,bm=mf,Em=gf.exports,_m=wh,wm=yh,Tm=Cf,Sm=Bf,km=Ff,Cm=function(e){return um(e,dm(e))};var Im=Ap,Am=Mp,Lm=Dp,Om=function(e,t,n,i,r,o,s){var a=km(e,n),c=km(t,n),l=s.get(c);if(l)hm(e,n,l);else{var u=o?o(a,c,n+"",e,t,s):void 0,d=void 0===u;if(d){var h=ym(c),p=!h&&Em(c),f=!h&&!p&&Sm(c);u=c,h||p||f?ym(a)?u=a:bm(a)?u=mm(a):p?(d=!1,u=pm(c,!0)):f?(d=!1,u=fm(c,!0)):u=[]:Tm(c)||vm(c)?(u=a,vm(a)?u=Cm(a):wm(a)&&!_m(a)||(u=gm(c))):d=!1}d&&(s.set(c,u),r(u,c,i,o,s),s.delete(c)),hm(e,n,u)}},Rm=yh,Nm=lm,Pm=Ff;var xm=function e(t,n,i,r,o){t!==n&&Lm(n,(function(s,a){if(o||(o=new Im),Rm(s))Om(t,n,a,i,e,r,o);else{var c=r?r(Pm(t,a),s,a+"",t,n,o):void 0;void 0===c&&(c=s),Am(t,a,c)}}),Nm)};var Mm=function(e){return e};var Dm=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)},Um=Math.max;var Bm=function(e,t,n){return t=Um(void 0===t?e.length-1:t,0),function(){for(var i=arguments,r=-1,o=Um(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),Dm(e,this,a)}};var Fm=function(e){return function(){return e}},qm=Op,Hm=qm?function(e,t){return qm(e,"toString",{configurable:!0,enumerable:!1,value:Fm(t),writable:!0})}:Mm,jm=Date.now;var zm=function(e){var t=0,n=0;return function(){var i=jm(),r=16-(i-n);if(n=i,r>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}(Hm),Gm=Mm,Wm=Bm,Km=zm;var Vm=Dd,Ym=hf,Jm=Vf,Xm=yh;var Qm=function(e,t){return Km(Wm(e,t,Gm),e+"")},Zm=function(e,t,n){if(!Xm(n))return!1;var i=typeof t;return!!("number"==i?Ym(n)&&Jm(t,n.length):"string"==i&&t in n)&&Vm(n[t],e)};var $m=xm;eg=function(e,t,n){$m(e,t,n)},Qm((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=eg.length>3&&"function"==typeof r?(i--,r):void 0,o&&Zm(t[0],t[1],o)&&(r=i<3?void 0:r,i=1),e=Object(e);++n<i;){var s=t[n];s&&eg(e,s,n,r)}return e}));var eg;function tg(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 ng(e,t,n){const i=tg(e),r=tg(t),o=tg(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 ig="data-draggable-initialized",rg="touchstart",og="touchmove",sg="touchend";class ag{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;ag.isDraggable(this.draggableElementEl)||this.draggableElementEl.addEventListener(rg,t),this.draggableElementEl.setAttribute(ig,!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=ng(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(og,t),document.addEventListener(sg,(function e(){document.removeEventListener(og,t),document.removeEventListener(sg,e)}))}moveTo(e,t){const n=ng(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)}}ag.isDraggable=function(e){return!!e.getAttribute(ig)};const cg="data-zoomable-initialized",lg="touchstart",ug="touchmove",dg="touchend";class hg{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;hg.isZoomable(this.zoomableElement)||(this.zoomableElement.addEventListener(lg,t),this.zoomableElement.setAttribute(cg,!0))}scaleElement(e,t){if(1===e)return;this.limits=ng(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(ug,t),document.addEventListener(dg,(function e(){document.removeEventListener(ug,t),document.removeEventListener(dg,e)}))}}let pg;hg.isZoomable=function(e){return!!e.getAttribute(cg)};function fg(e){var t;const n=ya("gdpr_notice_share"),i=ya("gdprLearnMoreLabel"),r=document.querySelector(".modal-spinner");uo(r),n&&i&&od({notices:[{name:"SHARING_POST_VISIBILITY_FOR_PERSONALIZATION",msg:n,lbl:i,href:"/help/linkedin/answer/85598"}]});const o=document.querySelector("#share-modal");null===(t=window.lazyloader)||void 0===t||t.then(e=>e.getLazyLoadedJavascriptModule("mweb-share-modal-js")).then(t=>{const{getShareModalInstance:n}=t;pg=n(o,{shouldHideModal:()=>!1,triggerByOutletEl:!1,pushState:!0,historyUpdateUrl:e.historyUpdateUrl}),lo(r),pg.open(e)}).catch(()=>{lo(r)})}function mg(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};e&&e.preventDefault(),fg(t)}a.getInstance().addUnloadCallback(()=>{pg&&pg.close(),lo(document.querySelector("#discard-post-modal")),lo(document.querySelector("#visibility-settings-modal")),lo(document.querySelector("#max-images-prompt-modal")),lo(document.querySelector("#retry-upload-modal"))});var gg=Object.freeze({__proto__:null,openShareModal:mg});let vg;class yg{constructor(e){if(!e)throw Error("An element must be provided to Nav");this.el=e,this.activeSearchType="",this.defaultSearchType="",this.activeTypeahead=null,this.registeredSearchTypes={},pc().then(e=>{vg=e,this.setupEventListeners()})}historyBackClickHandler(){this.activeTypeahead&&this.activeTypeahead.input.el.getAttribute("data-container")!==window.location.hash&&this.navBackEl.click()}onTypeaheadOpen(e){clearTimeout(this.collapseTimeoutID),this.activeTypeahead=this.typeaheadInstance.getTypeahead();const t=void 0!==this.collapseTimeoutID,n=e.target.getAttribute("data-container");window.location.hash!==n&&window.history[t?"replaceState":"pushState"]({},"search typeahead opened",n),window.addEventListener("popstate",this.historyBackClickHandler.bind(this)),this.collapseTimeoutID=void 0,this.expandSearchBar()}onTypeaheadClose(){this.activeTypeahead=null,window.removeEventListener("popstate",this.historyBackClickHandler.bind(this)),this.collapseTimeoutID=setTimeout(()=>{this.collapseTimeoutID=void 0,this.collapseSearchBar(),window.location.hash&&window.history.back()},0)}getSearchExpandedClass(){const e=this.getActiveSearchType(),t=this.registeredSearchTypes[e];return t?t.searchExpandClass:""}expandSearchBar(){document.body.classList.contains("search-expanded")||(document.body.classList.add("search-expanded"),this.typeaheadInstance.toggleClearEl(),this.getSearchExpandedClass()&&document.body.classList.add(this.getSearchExpandedClass()),y(this.navSearchEl,"navbar:expand"))}collapseSearchBar(){document.body.classList.remove("search-expanded"),this.typeaheadInstance.hideClearEl(),this.getSearchExpandedClass()&&document.body.classList.remove(this.getSearchExpandedClass()),y(this.navSearchEl,"navbar:collapse")}initializeBlendedTypeahead(){this.navSearchEl=this.el.querySelector("#nav-search"),this.typeaheadInstance=new vg(this.navSearchEl),this.typeaheadInstance.hideClearEl(),this.registerSearchType("people",{isDefault:!0})}initSecondaryNavScroll(e){new ka(e,{isBottom:!1,scrollThreshold:window.innerHeight/2,hideOnScrollDown:!0,marginApplied:!0,debounceDelay:10}),e.addEventListener("hide",()=>{document.body.classList.add("window-scroll-threshold-met")}),e.addEventListener("show",()=>{document.body.classList.remove("window-scroll-threshold-met")})}setupEventListeners(){const e=this.el.querySelector("[".concat("data-action-type","=").concat("OPEN_SHARE_MODAL","] a")),t=document.querySelector("#share-modal"),n=this.el.querySelector("#secondary-nav");e&&t&&e.addEventListener("click",(function(e){e.preventDefault(),mg(e)})),n&&(this.navBackEl=this.el.querySelector("#nav-back"),this.initializeBlendedTypeahead(),this.navBackEl&&this.navBackEl.addEventListener("click",()=>{this.typeaheadInstance.closeSearchTypeahead()}),this.navSearchEl&&(this.navSearchEl.addEventListener("typeahead:open",this.onTypeaheadOpen.bind(this)),this.navSearchEl.addEventListener("typeahead:close",this.onTypeaheadClose.bind(this))),this.initSecondaryNavScroll(n),a.getInstance().addUnloadCallback(()=>{this.activeTypeahead&&(this.typeaheadInstance.closeSearchTypeahead(),clearTimeout(this.collapseTimeoutID),this.collapseTimeoutID=null,this.collapseSearchBar(),window.location.hash&&window.history.back())}))}getActiveSearchType(){return this.activeSearchType||this.defaultSearchType}registerSearchType(e,t){this.registeredSearchTypes[e]||(this.registeredSearchTypes[e]=t||{},t&&t.isDefault&&(this.defaultSearchType=e))}}class bg{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")}}const Eg=function(){try{return bg.instance||(bg.instance=new bg(localStorage)),bg.instance}catch(e){}}(),_g=function(){try{return bg.sessionInstance||(bg.sessionInstance=new bg(sessionStorage)),bg.sessionInstance}catch(e){}}();var wg=Object.freeze({__proto__:null,default:bg,cache:Eg,sessionCache:_g});let Tg;function Sg(){return Tg||(Tg=new ga),Tg}function kg(){try{var e,t;const n=null===(e=window.sessionStorage)||void 0===e?void 0:e.getItem("MWEB_TOAST_MESSAGE"),i=null===(t=window.sessionStorage)||void 0===t?void 0:t.getItem("MWEB_TOAST_TYPE");n&&i&&(Sg().trigger(i,n),function(){try{var e,t;null===(e=window.sessionStorage)||void 0===e||e.removeItem("MWEB_TOAST_MESSAGE"),null===(t=window.sessionStorage)||void 0===t||t.removeItem("MWEB_TOAST_TYPE")}catch(e){}}())}catch(e){}}function Cg(e,t){return e&&t?"urn:li:control:".concat(t,"-").concat(e):null}class Ig extends Ra{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:Ig.query,variables:{successRedirectUrl:e},successCallback:t,failureCallback:n})}}Le(Ig,"query","5f93d1d6b933cfbfdf7b0a80dedfb3f4");class Ag extends Ra{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:Ag.query,successCallback:e,failureCallback:t})}}Le(Ag,"query","da4a9ce2de842c1abe01ca37ea9271ee");function Lg(e){const t=e.target.value;e.target.classList.toggle("selected",t),e.target.focus()}function Og(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",Lg),i.value&&i.classList.add("selected"))}else{document.querySelectorAll(".dropdown-container").forEach(Og)}}function Rg(e){const t=e.currentTarget.parentElement.querySelector("input");t.value="",t.classList.remove("selected"),t.focus(),y(t,"input:cleared"),y(t,"change")}function Ng(e){const t=e.currentTarget.parentElement,n=t.dataset.placeholder,i=t.querySelector("input");n&&i.setAttribute("placeholder",n),i.removeEventListener("focus",Ng)}function Pg(e){const t=e.target.value;e.target.classList.toggle("selected",t)}function xg(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",Pg),i.addEventListener("focus",Ng),r&&r.addEventListener("click",Rg)}else{document.querySelectorAll(".input-container").forEach(xg)}}const Mg="MinLength",Dg="MaxLength",Ug="Regex",Bg="Required",Fg="RegexAllow",qg="RegexAllowEmail",Hg={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"}},jg="EMAIL_ADDRESS",zg="PHONE_NUMBER",Gg="OTHER",Wg="consentUnchecked",Kg={INPUT:"INPUT",SELECT:"SELECT"},Vg="text",Yg="checkbox";function Jg(e){return Object.keys(Kg).includes(e.tagName)}function Xg(e){const t=function(e){const t=[],{minLength:n,maxLength:i,inputType:r}=e.dataset;let o;switch(r){case Gg:n&&t.push({type:Mg,MinLength:n}),i&&t.push({type:Dg,MaxLength:i});break;case jg:t.push({type:Fg,RegexAllow:[Hg.EMAIL]});break;case zg:o=e.value.replace(/ /g,""),t.push({type:Fg,RegexAllow:[Hg.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 Bg:if(0===n.length)return Bg;break;case Mg:if(n.length<e[Mg])return Mg;break;case Dg:if(n.length>e[Dg])return Dg;break;case Ug:for(let t=0;t<e[Ug].length;t++)if(e[Ug][t].pattern.test(n))return Ug+e[Ug][t].errorCode;break;case Fg:for(let t=0;t<e[Fg].length;t++)if(!e[Fg][t].pattern.test(n))return Fg+e[Fg][t].errorCode}})(e,n)).filter(e=>!!e)}function Qg(e,t){return t&&!e?Wg:null}const Zg=(e,t)=>parseInt(t.split(e)[1]),$g=(e,t)=>t.split(e)[1];function ev(e,t){return document.querySelector("#".concat(e.id,"-strings")).dataset["str".concat(t)]}const tv=(e,t)=>({questionId:e,textQuestionAnswer:{answer:t}}),nv=(e,t)=>({questionId:e,multipleChoiceAnswer:{options:[{index:t}]}}),iv=(e,t)=>({question:e,answerDetails:{options:[t]}});function rv(e){const t=e.id+"_",n=t+"q",i=t+"c",r=ya("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:ya("memberUrn")};return Array.from(e).filter(Jg).forEach(e=>{let t;if(e.tagName===Kg.SELECT)t=((e,t,n)=>{const i=n?$g(e,t.id):Zg(e,t.id),r=t.selectedIndex;return{response:n?iv(i,r):nv(i,r)}})(n,e,r),r?f.formResponse.answers.push(t.response):p.formResponse.answers.push(t.response);else if(e.type===Vg)if(t=((e,t,n)=>{const i=n?$g(e,t.id):Zg(e,t.id),r=Xg(t);return 0!==r.length?{errors:r}:{response:n?(o=i,s=t.value,{question:o,answerDetails:{answer:s}}):tv(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===Yg&&(t=((e,t,n,i,r)=>{const o=Zg(e,t),s=Qg(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)})}function ov(e){const t=this.formEl.querySelector('input[data-input-type="EMAIL_ADDRESS"]');let n=(null==t?void 0:t.value)||"";return function(i){this._isError(i.currentTarget)||n===i.currentTarget.value||(n=i.currentTarget.value,ne("".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,qg)}))}.bind(this)}class sv{constructor(e){let{isLivePreview:t=!1,triggerByOutletEl:n=!0,customEmailValidationFn:i,customEmailValidationPath:r}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!e)throw new Error("containerEl is not present");xg(),Og(),wo("form-modal-description__content-truncated",".form-modal-description__btn-truncation",e),this.containerEl=e,this.formEl=e.querySelector("form");const o=e.querySelector(".lead-gen-modal");if(this.modal=new ac(o,{triggerByOutletEl:n,shouldMoveToTopContainer:!1}),!i&&!r)throw new Error("customEmailValidationFn or customEmailValidationPath is not present");this.customEmailValidationFn=i||ov.bind(this)(r),t?this.showForm():this._bindEvents()}showForm(){this.modal.open()}hideForm(){this.modal.close()}_clearFormErrors(){Array.from(this.formEl).filter(Jg).map(e=>this._hideError(e))}_submitForm(){this._clearFormErrors(),rv(this.formEl).then(e=>{y(this.containerEl,this.constructor.LEAD_GEN_SUBMIT_EVENT,e),this.hideForm()}).catch(e=>{e.forEach(e=>this._setAndShowError(e.element,e.errorType));const t=e[0];if(t){t.element.focus();G(ev(t.element,t.errorType),z.ASSERTIVE)}})}_hideError(e){if(e){const t=e.closest(".lead-gen-input-container"),n=t.querySelector(".error-text");lo(n),t.classList.remove("input-error"),e.removeAttribute("aria-invalid"),n.removeAttribute("role")}}_isError(e){var t;return null==e||null===(t=e.closest(".lead-gen-input-container"))||void 0===t?void 0:t.classList.contains("input-error")}_setAndShowError(e,t){if(e){const n=ev(e,t),i=e.closest(".lead-gen-input-container"),r=i.querySelector(".error-text");r.innerText=n,uo(r),i.classList.add("input-error"),r.setAttribute("role","alert"),e.setAttribute("aria-invalid","true")}}_handleInputError(e){let t;if(this._hideError(e),e.type===Yg)t=Qg(e.checked,e.required);else if(e.type===Vg){const n=Xg(e);n&&n.length&&(t=n[0])}t&&this._setAndShowError(e,t)}_bindEvents(){const e=this.formEl.querySelector(".submit-btn"),t=this.formEl.querySelector('input[data-input-type="EMAIL_ADDRESS"]');this.formEl.addEventListener("click",e=>{e.target.classList.contains("checkbox-input")&&this._handleInputError(e.target)}),this.formEl.addEventListener("input:cleared",e=>{this._handleInputError(e.target)}),this.formEl.addEventListener("keyup",e=>{e.target.classList.contains("inputbox-input")&&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()})}}Le(sv,"LEAD_GEN_SUBMIT_EVENT","FormModal:LeadGen:submit");const av="[data-feed-control]",cv='[data-id="main-feed-card"]';function lv(e,t,n){var i,r;const o=null==e||null===(i=e.target)||void 0===i?void 0:i.closest(av),s=null==e||null===(r=e.target)||void 0===r?void 0:r.closest(cv),a=t||(null==s?void 0:s.dataset);if(!o&&!n||!a)return;const c=Ae(Ae({},null==o?void 0:o.dataset),n),{feedControl:l,feedActionCategory:u,feedActionType:d}=c,{activityUrn:h,feedItemTrackingId:p}=a;window.tracking&&window.tracking.then(e=>{let t;const n=ya("trackingModuleKey"),i=T(document),r=jr(i);t=Ae({actionCategory:(null==u?void 0:u.toUpperCase())||"",actionType:d,controlUrn:Cg(l,i),updateUrn:h,trackingId:p||e.generateBase64UUID(),moduleKey:n||"lite-feed:phone",requestId:""},r);try{var o,s;(null===(o=t)||void 0===o?void 0:o.actionCategory)&&(null===(s=t)||void 0===s?void 0:s.actionType)&&e.fireTrackingEvent("FeedActionEvent",t)}catch(e){}})}class uv{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:document,{onSelect:t=(()=>{}),onClipboardCopy:n=(()=>{})}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.onSelect=t,this.onClipboardCopy=n;const i=ya("share-via-text"),r=ya("share-via-url");if(this.shareData={url:r},i&&(this.shareData.text=i),this.shareViaActionEl=e.querySelector("[data-share-via-action]"),!this.shareViaActionEl)throw new Error('Element with "data-share-via-action" attribute cannot be found');this.shareViaModalEl=e.querySelector(".share-via-modal"),this.shareViaModalEl&&(this.shareViaModal=new Xr(this.shareViaModalEl)),this.bindEvents()}modalClickHandler(e){const t=r(e.target,"[data-action-copy-to-clipboard]");t?(this.onSelect(e,t),this.copyToClipboard.call(this,e)):this.onSelect(e,r(e.target,".share-via-action")),this.shareViaModal.close()}share(){navigator.canShare&&navigator.canShare(this.shareData)?navigator.share(this.shareData):this.shareViaModal&&this.shareViaModal.open()}copyToClipboard(){navigator.clipboard.writeText(this.shareData.url).then(()=>{this.onClipboardCopy(!0)}).catch(e=>{this.onClipboardCopy(!1,e)})}bindEvents(){this.shareViaActionEl.addEventListener("click",this.share.bind(this)),this.shareViaModalEl&&this.shareViaModalEl.addEventListener("click",this.modalClickHandler.bind(this))}}const dv="FOLLOW_ACTIVE",hv="UNFOLLOW";class pv{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 Oa({endpoint:this.endpoint,queryId:pv.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)}}Le(pv,"query","cbed571fffd8cea15209aed8d44e6759");class fv{constructor(e){var t,n;let{deleteEntity:i=(()=>{}),disableComment:r=(()=>{}),enableComment:o=(()=>{}),followConfig:s={},semaphoreConfig:a={}}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!e)throw new Error("Control menu element is required");this._el=e,this.followConfig=s,this.semaphoreConfig=a,this.ellipsisMenu=new Qu(e),this.feedCardEl=e.closest('[data-id="main-feed-card"]'),this.parentEl=null===(t=this.feedCardEl)||void 0===t?void 0:t.parentNode,this.ellipsisMenuTriggerEl=e.querySelector(".ellipsis-menu__trigger"),null!==(n=this.followConfig)&&void 0!==n&&n.endpoint&&(this._followMutationInstance=new pv(this.followConfig.endpoint)),this._enableComment=o,document.getElementById("toasts")&&(this.toasts=new ga);const c=e.querySelector(".collapsible-dropdown__list"),l=c.querySelector('[data-feed-action="control-menu-semaphore"]');l&&new Xu('[data-item-type="semaphore"]',l,this._handleSemaphoreSubmitAction.bind(this),this.ellipsisMenuTriggerEl);const u=c.querySelector('[data-feed-action="control-menu-share-via"]');var d;u&&(null===(d=this.toasts)||void 0===d||d.clearAllToasts(),new uv(u,{onClipboardCopy:e=>{var t,n;e?null===(t=this.toasts)||void 0===t||t.trigger("success",ya("i18n_copy_to_clipboard_success")):null===(n=this.toasts)||void 0===n||n.trigger("error",ya("i18n_copy_to_clipboard_error"))}}));if(c.querySelector('[data-feed-action="control-menu-delete"]')){const e=this.feedCardEl.querySelector("#modal-delete-confirmation-wrapper");this.deleteConfirmationModal=new kd(e,e=>i(e,this.feedCardEl),()=>{},{triggerByOutletEl:!1,focusElement:this.ellipsisMenuTriggerEl})}if(c.querySelector('[data-feed-action="control-menu-disable-comments"]')){const e=this.feedCardEl.querySelector("#modal-disable-comments-confirmation-wrapper");this.disableCommentsConfirmationModal=new kd(e,e=>r(e,this.feedCardEl),()=>{},{triggerByOutletEl:!1,focusElement:this.ellipsisMenuTriggerEl})}c.addEventListener("click",this.handleControlMenuActions.bind(this))}_showPostRemovedCard(e){const t=this.feedCardEl.parentNode,n=this.feedCardEl.querySelector("#post-removed-card-template"),i=document.importNode(n.content,!0);t.appendChild(i),this._initializeUndoButton(e);const r=t.querySelector(".imf-link");r&&r.focus()}_handleSemaphoreSubmitAction(){var e,t;lo(this.feedCardEl);const n=this.feedCardEl.querySelector("#post-reported-card-template"),i=document.importNode(n.content,!0);this.parentEl.appendChild(i),null===(e=this.semaphoreConfig)||void 0===e||null===(t=e.submitActionCallback)||void 0===t||t.call(e)}_initializeUndoButton(e){const t=this.parentEl.querySelector(".post-removed-card");t.querySelector(".undo-follow-button").addEventListener("click",n=>{var i,r,o;const{activityUrn:s,feedItemTrackingId:a}=this.feedCardEl.dataset;lv(n,{activityUrn:s,feedItemTrackingId:a}),null===(i=this.toasts)||void 0===i||i.clearAllToasts(),t.remove(),uo(this.feedCardEl),this.parentEl.querySelector(".ellipsis-menu__trigger").focus(),null===(r=this.followConfig)||void 0===r||null===(o=r.actionCallback)||void 0===o||o.call(r),this._followMutationInstance.execute(dv,e.getAttribute("data-entity-urn"),e=>{var t,n;null===(t=this.followConfig)||void 0===t||null===(n=t.successCallback)||void 0===n||n.call(t,e)},t=>{var n,i,r;null===(n=this.toasts)||void 0===n||n.trigger("error",e.getAttribute("data-failure-message")),null===(i=this.followConfig)||void 0===i||null===(r=i.errorCallback)||void 0===r||r.call(i,t)})})}_handleFollowAction(e){var t,n,i;const r=e.target.closest("[data-feed-action]");null===(t=this.toasts)||void 0===t||t.clearAllToasts();G(r.getAttribute("data-unfollow-ally-text")),lo(this.feedCardEl),this._showPostRemovedCard(r),null===(n=this.followConfig)||void 0===n||null===(i=n.actionCallback)||void 0===i||i.call(n),this._followMutationInstance.execute(hv,r.getAttribute("data-entity-urn"),e=>{var t,n;null===(t=this.followConfig)||void 0===t||null===(n=t.successCallback)||void 0===n||n.call(t,e)},e=>{var t,n,i;null===(t=this.toasts)||void 0===t||t.trigger("error",r.getAttribute("data-unfollow-failure-message")),null===(n=this.followConfig)||void 0===n||null===(i=n.errorCallback)||void 0===i||i.call(n,e)})}handleControlMenuActions(e){const t=e.target.closest("[data-feed-action]"),n=e.target.closest('[data-id="main-feed-card"]');if(t&&t.getAttribute("data-feed-action")&&n){switch(t.getAttribute("data-feed-action")){case"control-menu-unfollow":this._handleFollowAction(e);break;case"control-menu-delete":this.deleteConfirmationModal.modal.open();break;case"control-menu-disable-comments":this.disableCommentsConfirmationModal.modal.open();break;case"control-menu-enable-comments":this._enableComment(e,n)}y(this._el,"close")}}}const mv=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(mv));const gv="CREATE",vv="DELETE",yv="UPDATE";class bv{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:bv.query,variables:{entityUrn:t,action:n},pemDegradationTrackingMetadata:this.pemDegradationTrackingMetadata,isPemEnabled:this.isPemEnabled};return n!==gv&&n!==yv||(o.variables.reactionType=e),Oa(o).then(e=>{const{responseText:t}=e;i(JSON.parse(t).graphQL)}).catch(r)}}Le(bv,"query","070ee23fd6fb77f92ac08f964ae1df29");const Ev="REACT",_v="UNREACT";class wv{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"".concat(".reactions-menu","__trigger"),t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:document.body,{endpoint:n,beforeReaction:i,onReaction:r,pemDegradationTrackingMetadata:o,onReactionSuccess:s=(()=>{}),onReactionError:a=(()=>{}),shouldStopPropagation:c=!0,reactionsMenuPageViewEvent:l,fireLoggedInReactionTracking:u=!1,isContribution:d=!1}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(this.triggerSelector=e,this.a11yTriggerSelector="".concat(e,"--a11y"),this.parentContainerElement=t,this._mutationInstance=new bv(n,o),this.selectedReactionTemplate=t.querySelector("#selected-reaction"),!t.querySelector('[data-id="reactions-menu"]'))throw new Error("Cannot find ReactionsMenu template");this.beforeReaction=i,this.activeReactionMenuEl=null,this.onReaction=r,this.onReactionSuccess=s,this.onReactionError=a,this.shouldStopPropagation=c,this.reactionsMenuPageViewEvent=l,this.triggers=t.querySelectorAll(this.triggerSelector),this.reactionsMenuClickHandler=this.handleReactionsClick.bind(this),this.isTouchActive=!1,this.isA11yTriggerActive=!1,this.fireLoggedInReactionTracking=u,this.isContribution=d,this.bindEvents()}bindEvents(){this.triggers.forEach(e=>{Q()?(e.addEventListener("touchstart",e=>{this.longPressTimer=setTimeout(()=>{e.preventDefault(),this.showReactions(e),this.isA11yTriggerActive=!1},334)}),e.addEventListener("touchend",()=>{clearTimeout(this.longPressTimer)})):(e.addEventListener("mouseenter",g(this.showReactions.bind(this),300)),e.addEventListener("mouseleave",g(()=>{!e.parentElement.matches(":hover")&&this.hideReactions.call(this)},500)))}),this.parentContainerElement.addEventListener("click",e=>{if(e.target.closest(this.triggerSelector)){var t,n;const i=this.getContainerElement(e.target);null===(t=this.beforeReaction)||void 0===t||t.call(this,e),this.fireLoggedInReactionTracking&&this.fireReactionTracking(e),this.toggleReaction(i);const r=this.getCurrentReactionType(i);null===(n=this.onReaction)||void 0===n||n.call(this,e,r,this.getParentUrn(i)),this._mutationInstance.execute(r,this.getParentUrn(i),r?gv:vv,t=>{this.onReactionSuccess(t,e)},e=>{this.onReactionError(e)})}else e.target.closest(this.a11yTriggerSelector)&&(e.stopPropagation(),this.isA11yTriggerActive=!0,this.isReactionMenuVisible()?this.hideReactions(!1):this.showReactions(e))}),this.parentContainerElement.querySelectorAll(this.a11yTriggerSelector).forEach(e=>{e.addEventListener("focus",e=>{e.target.classList.remove("w-0")}),e.addEventListener("blur",e=>{!this.getContainerElement(e.target).querySelector('[data-id="reactions-menu"]')&&e.target.classList.add("w-0")})})}handleFocusForReactionEl(e){e?(e.focus(),e.classList.add("outline-none")):document.activeElement.blur()}getTouchEventTarget(e){const t=e.changedTouches[0];return r(document.elementFromPoint(t.clientX,t.clientY),"[data-reaction-type]")}showReactions(e){if(!this.isReactionMenuVisible()){var t,n;let i=e.target;if(!e.target.classList.contains("reaction-menu")&&(i=this.getContainerElement(e.target),!i))return;this.renderReactionsMenu(i),this.reactionsMenuPageViewEvent&&(null===(t=window.tracking)||void 0===t||t.then(e=>{Hr(e,"half",this.reactionsMenuPageViewEvent)})),Q()&&(this.isTouchActive=!0,this.isA11yTriggerActive||(document.body.classList.add("overflow-hidden"),this.handleFocusForReactionEl(this.getTouchEventTarget(e)),this.documentTouchStartHandlerFn=this.documentTouchStartHandlerFn||this.documentTouchStartHandler.bind(this),this.documentTouchEndHandlerFn=this.documentTouchEndHandlerFn||this.documentTouchEndHandler.bind(this),this.parentContainerElementTouchMoveHandlerFn=this.parentContainerElementTouchMoveHandlerFn||this.parentContainerElementTouchMoveHandler.bind(this),this.parentContainerElementTouchEndHandlerFn=this.parentContainerElementTouchEndHandlerFn||this.parentContainerElementTouchEndHandler.bind(this),document.addEventListener("touchstart",this.documentTouchStartHandlerFn),document.addEventListener("touchend",this.documentTouchEndHandlerFn),this.parentContainerElement.addEventListener("touchmove",this.parentContainerElementTouchMoveHandlerFn),this.parentContainerElement.addEventListener("touchend",this.parentContainerElementTouchEndHandlerFn))),this.documentClickHandlerFn=this.documentClickHandlerFn||this.hideReactions.bind(this),this.parentContainerEl!==document.body&&document.addEventListener("click",this.documentClickHandlerFn),null===(n=this.a11yTriggerElement())||void 0===n||n.setAttribute("aria-expanded","true")}}hideReactions(){var e;let t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];if(this.isReactionMenuVisible()){var n,i;if(this.activeReactionMenuEl.removeEventListener("click",this.reactionsMenuClickHandler),t)null===(n=this.getContainerElement(this.activeReactionMenuEl))||void 0===n||null===(i=n.querySelector(this.a11yTriggerSelector))||void 0===i||i.classList.add("w-0");this.activeReactionMenuEl.classList.add("hidden"),this.activeReactionMenuEl=null}Q()&&!this.isA11yTriggerActive&&(document.body.classList.remove("overflow-hidden"),document.removeEventListener("touchstart",this.documentTouchStartHandlerFn),document.removeEventListener("touchend",this.documentTouchEndHandlerFn),this.parentContainerElement.removeEventListener("touchmove",this.parentContainerElementTouchMoveHandlerFn),this.parentContainerElement.removeEventListener("touchend",this.parentContainerElementTouchEndHandlerFn)),this.isA11yTriggerActive=!1,this.parentContainerEl!==document.body&&document.removeEventListener("click",this.documentClickHandlerFn),null===(e=this.a11yTriggerElement())||void 0===e||e.setAttribute("aria-expanded","false")}isReactionMenuVisible(){return Boolean(this.activeReactionMenuEl&&!this.activeReactionMenuEl.classList.contains("hidden"))}getActionType(e,t){return e&&t?t!==e?yv:null:t?gv:vv}fireReactionTracking(e){let t=e.target;if("touchend"===e.type){const n={},i=e.changedTouches[0],r=document.elementFromPoint(i.clientX,i.clientY);t=null==r?void 0:r.closest("[data-reaction-type]"),n.target=t,lv(n)}else lv(e);e.stopPropagation()}handleReactionsClick(e){var t,n;let i;var r;"touchend"===e.type?i=this.getTouchEventTarget(e):i=null===(r=e.target)||void 0===r?void 0:r.closest("[data-reaction-type]");if(null===(t=i)||void 0===t||null===(n=t.dataset)||void 0===n||!n.reactionType)return;const o=this.getContainerElement(e.target),s=this.getCurrentReactionType(o),a=this.getParentUrn(o);let c,l;if(i){var u,d,h,p;if(null===(u=this.beforeReaction)||void 0===u||u.call(this,e),this.fireLoggedInReactionTracking&&this.fireReactionTracking(e),this.setReaction(i.dataset.reactionType,o),null===(d=this.getContainerElement(o))||void 0===d||null===(h=d.querySelector(this.triggerSelector))||void 0===h||h.focus(),c=this.getCurrentReactionType(o),l=this.getActionType(s,c),l)null===(p=this.onReaction)||void 0===p||p.call(this,e,c,a),this._mutationInstance.execute(c,this.getParentUrn(o),l,t=>{this.onReactionSuccess(t,e)},e=>{this.onReactionError(e)});this.shouldStopPropagation&&e.stopPropagation()}}documentTouchStartHandler(e){e.preventDefault(),e.target.closest('[data-id="reactions-menu"]')&&e.target.closest(this.triggerSelector)?this.isTouchActive=!0:this.isTouchActive=!1}documentTouchMoveHandler(e){e.preventDefault()}documentTouchEndHandler(e){e.preventDefault(),!this.isTouchActive&&this.isReactionMenuVisible()&&!this.isA11yTriggerActive&&this.hideReactions()}parentContainerElementTouchEndHandler(e){e.stopPropagation(),e.preventDefault(),this.reactionsMenuClickHandler(e),!this.isTouchActive&&this.isReactionMenuVisible()&&!this.isA11yTriggerActive&&this.hideReactions()}parentContainerElementTouchMoveHandler(e){e.stopPropagation(),e.preventDefault(),this.isTouchActive=!0,this.handleFocusForReactionEl(this.getTouchEventTarget(e))}renderReactionsMenu(e){if(!e)return;const t=e.querySelector('[data-id="reactions-menu"]');t.classList.remove("hidden"),t.addEventListener("click",this.reactionsMenuClickHandler),this.activeReactionMenuEl=t}maybeHideReactions(e){r(e.target,"[data-reaction-type]")||this.hideReactions()}setReaction(e,t){var n;const i="".concat(".selected-reaction","--").concat(e),r=this.selectedReactionTemplate.content.querySelector(i).cloneNode(!0),o=t.querySelector(".selected-reaction"),s=t.querySelector(".like-button-default");o?o.remove():s.classList.add("hidden"),t.querySelector(this.triggerSelector).setAttribute("aria-pressed","true"),r.classList.add("selected-reaction"),s.parentElement.insertBefore(r,s),null===(n=window.lazyloader)||void 0===n||n.then(e=>e.refreshLoader()),this.postReactionChangeCallback(e,t)}toggleReaction(e){const t=e.querySelector(".selected-reaction"),n=e.querySelector(".like-button-default");if(t)return t.remove(),e.querySelector(this.triggerSelector).setAttribute("aria-pressed","false"),n.classList.remove("hidden"),void this.postReactionChangeCallback("",e);this.setReaction(mv.LIKE,e)}postReactionChangeCallback(e,t){const n=(e?"un".concat(e):"".concat(mv.LIKE)).toLowerCase()+(this.isContribution?"Contribution":"Update");this.hideReactions(),t.querySelector(this.triggerSelector).setAttribute("data-social-reaction",e),t.querySelector(this.triggerSelector).setAttribute("data-feed-action-type",n),t.querySelector(this.triggerSelector).setAttribute("data-feed-action-category",e?_v:Ev)}getCurrentReactionType(e){return e.querySelector(this.triggerSelector).dataset.socialReaction}getParentUrn(e){return e.querySelector(this.triggerSelector).dataset.parentUrn}getContainerElement(e){return e.closest(".reactions-menu")}getContainerElementFromParentUrn(e){const t=this.parentContainerElement.querySelector("".concat(this.triggerSelector,'[data-parent-urn="').concat(e,'"]'));return null==t?void 0:t.closest(".reactions-menu")}a11yTriggerElement(){return this.parentContainerElement.querySelector(this.a11yTriggerSelector)}}class Tv{constructor(e){if(!e)throw new Error("No element passed to FeedAttributedTextSegmentList");this._el=e,this._containerEl=e.closest(".attributed-text-segment-list__container"),this._truncationButton=this._containerEl.querySelector(".attributed-text-segment-list__btn-truncation"),so(this._el)&&this._truncationButton&&(this._truncationButton.classList.remove("invisible"),this._truncationButton.addEventListener("click",this._handleSeeMoreAction.bind(this)))}_handleSeeMoreAction(){this._el.classList.remove("attributed-text-segment-list__content-truncated"),this._truncationButton.classList.add("hidden")}}class Sv{constructor(e){let{endpoint:t,errorCallback:n=(()=>{}),globalWindow:i=window,onFollowSuccess:r=(()=>{}),onUnfollowSuccess:o=(()=>{}),pemDegradationTrackingMetadata:s,unfollowPemDegradationTrackingMetadata:a,pageKey:c,unfollowPageKey:l}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!e)throw new Error("No element passed in");this._el=e,this._errorCallback=n,this._successCallbackForFollow=r,this._successCallbackForUnfollow=o,this._window=i,this._followButtonEl=e.querySelector(".follow-button__follow"),this._followingButtonEl=e.querySelector(".follow-button__following"),this._mutationInstance=new pv(t,s,c),this._unfollowMutationInstance=new pv(t,a,l),this._entityUrn=e.getAttribute("data-entity-urn"),this._initEventListeners()}_initEventListeners(){this._followButtonEl.addEventListener("click",e=>{e.preventDefault(),this._showFollowingButton(),this._mutationInstance.execute(dv,this._entityUrn,e=>{this._successCallbackForFollow(e)},e=>{this._hideFollowingButton(),this._errorCallback(e)})}),this._followingButtonEl.addEventListener("click",e=>{e.preventDefault(),this._hideFollowingButton(),this._unfollowMutationInstance.execute(hv,this._entityUrn,e=>{this._successCallbackForUnfollow(e)},e=>{this._showFollowingButton(),this._errorCallback(e)})})}_showFollowingButton(){var e,t,n,i;null===(e=this._followButtonEl)||void 0===e||null===(t=e.classList)||void 0===t||t.add("hidden"),null===(n=this._followingButtonEl)||void 0===n||null===(i=n.classList)||void 0===i||i.remove("hidden"),this._followingButtonEl.focus()}_hideFollowingButton(){var e,t,n,i;null===(e=this._followingButtonEl)||void 0===e||null===(t=e.classList)||void 0===t||t.add("hidden"),null===(n=this._followButtonEl)||void 0===n||null===(i=n.classList)||void 0===i||i.remove("hidden"),this._followButtonEl.focus()}}class kv{constructor(e){let{isLoggedIn:t=!1,reactionsMenuConfig:n={},newsletterConfig:i={},controlMenuConfig:r={},followButtonConfig:o={},customEmailValidationPath:s,customEmailValidationFn:a}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if((null==e?void 0:e.nodeType)!==Node.ELEMENT_NODE)throw new Error("Invalid element argument passed to MainFeedActivityCard");this._el=e,this._isLoggedIn=t,this._controlMenuConfig=r,this.customEmailValidationPath=s,this.customEmailValidationFn=a,this._controlMenu=this._initControlMenu(),this._nativeVideo=this._initNativeVideo(),this._reactionsMenuConfig=this._getReactionsMenuConfig(n),this._socialActionBar=this._initSocialActionBarMenu(),this._followButtons=this._initFollowButton(o),this._initPaginatedDocument(),this._socialShare=this._initSocialShare(),this._sponsoredContent=this._initSponsoredContent(),this._initImageViewer(),this._initFeedAttributedTextSegmentList(),this._initNewsletterSubscribe(i),this._handleShareAction(),this._handleFeedClick()}_initFeedAttributedTextSegmentList(){this._el.querySelectorAll(".attributed-text-segment-list__content").forEach(e=>new Tv(e))}_initControlMenu(){const e=this._el.querySelector(".ellipsis-menu");return e?this._isLoggedIn?void new fv(e,this._controlMenuConfig):new Qu(e):null}_handleShareAction(){this._isLoggedIn&&ya("is-mobile")&&this._el.addEventListener("click",e=>{e.target.closest('[data-feed-action="share"]')&&mg(e,{feedItemToShare:this._el.parentElement,removalElements:['[data-id="main-feed-card__ellipsis-menu"]',".main-feed-activity-card__header",".main-feed-activity-card__social-actions",".social-action-bar","#feed-image-viewer-modal",".main-feed-activity-card__single-comment"]})})}_initSocialActionBarMenu(){if(this._isLoggedIn&&this._el.querySelector('[data-id="reactions-menu"]'))return{reactionsMenu:new wv(".reactions-menu__trigger",this._el,this._reactionsMenuConfig)}}_initFollowButton(e){const t=this._el.querySelectorAll(".follow-button");if(this._isLoggedIn&&null!=t&&t.length)return Array.from(t).map(t=>new Sv(t,e))}_getReactionsMenuConfig(e){const t=this._synchronizeReactionState(null==e?void 0:e.onReaction),n=this._isLoggedIn;return Ae(Ae({},e),{},{onReaction:t,fireLoggedInReactionTracking:n})}_synchronizeReactionState(e){const t=this;return function(n,i){var r;null==e||e.call(this,...arguments);const o=null===(r=t._socialActionBar)||void 0===r?void 0:r.reactionsMenu,s=Array.from(t._el.querySelectorAll(".reactions-menu")).filter(e=>i?i!==this.getCurrentReactionType(e):Boolean(this.getCurrentReactionType(e)));s.forEach(e=>{i?o.setReaction(i,e):o.toggleReaction(e)})}}_initNativeVideo(){const e=this._el.querySelector(".share-native-video__node");return e&&new Sa(e)}_initImageViewer(){if(!this._isLoggedIn)return;const e=this._el.querySelector(".feed-images-content"),t=this._el.querySelector("#feed-image-viewer-modal");e&&t&&(this.imageViewerModal=new Cd(t,{shouldMoveToTopContainer:!1}),e.addEventListener("click",e=>{const t=e.target.closest("[data-position]");t&&this.imageViewerModal.open(t.dataset.position,{focusElement:t.querySelector("button")})}))}_initPaginatedDocument(){const e=this._el.querySelector('iframe[data-id="feed-paginated-document-content"]');e&&e.addEventListener("load",()=>{const{nativeDocumentConfig:t}=e.dataset;e.contentWindow.postMessage(t,"*")})}_initSponsoredContent(){if(!this._isLoggedIn)return;const e=this._el.querySelector(".lead-gen-container");return e&&new sv(e,{customEmailValidationPath:this.customEmailValidationPath,customEmailValidationFn:this.customEmailValidationFn})}_initSocialShare(){const e=this._el.querySelector(".social-share");return e&&new wa(e)}_initNewsletterSubscribe(e){if(!this._isLoggedIn||null==e||!e.endpoint)return;const t=this._el.querySelector(".newsletter-details__action .follow-button"),n=this._el.querySelector(".newsletter-content__action .follow-button");let i=t||n;return i&&new Sv(i,e)}_handleFeedClick(){this._isLoggedIn&&this._el.addEventListener("click",e=>{e.target.closest(".social-action-bar")||lv(e)})}}class Cv{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if((null==e?void 0:e.nodeType)!==Node.ELEMENT_NODE)throw new Error("Invalid element argument passed to MainFeedCard");this._el=e,this._options=t,this._mainFeedActivityCard=this._initMainFeedActivityCard()}_initMainFeedActivityCard(){if(this._el.classList.contains("main-feed-activity-card"))return new kv(this._el,this._options)}}Object.freeze({NEW_COMMENT_CREATE_EVENT:"Comment:newComment:create",NEW_COMMENT_SUCCESS_EVENT:"Comment:newComment:success",NEW_COMMENT_FAIL_EVENT:"Comment:newComment:fail"});const Iv="https://radar.cedexis.com/1/11326/radar.html",Av="https://platform.linkedin.com/js/thirdPartyJSDelegatorFrame.html?type=dyndns";function Lv(e){const t=document.createElement("iframe");t.style.display="none",t.setAttribute("sandbox","allow-scripts allow-same-origin"),t.src=e,document.body&&document.body.appendChild(t)}function Ov(){Lv(Av)}function Rv(){Lv(Iv)}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"});function Nv(e,t){const n=ya("offline-text");t.clearAllToasts(),e&&t.trigger(ma.NOTIFY,n,"offline")}function Pv(e){e&&(e.setAttribute("category","system-icons"),e.setAttribute("type","close-small"))}const xv=["category","type"];let Mv;const Dv=e=>{const t=e.getAttribute("type");t&&0===t.indexOf("large-")&&e.classList.add("large-icon")},Uv=(e,t,n)=>{for(;e.firstChild;)e.removeChild(e.firstChild);const i=t&&n&&((e,t)=>{const n=Mv.querySelector("#".concat(e," #").concat(t));if(n){const e=n.cloneNode(!0);return e.removeAttribute("id"),e.classList.add("icon"),e}return null})(t,n);i&&e.appendChild(i)};class Bv extends HTMLElement{connectedCallback(){this.update(),this.syncA11yCaption(),this.setAttribute("aria-hidden","true"),Dv(this)}disconnectedCallback(){this.removeA11yCaption()}static get observedAttributes(){return["a11y-text","type","class"]}attributeChangedCallback(e){xv.indexOf(e)>-1&&this.update(),"a11y-text"===e&&this.syncA11yCaption(),"type"!==e&&"class"!==e||Dv(this)}update(){const e=this.getAttribute("type"),t=this.getAttribute("category")||"ui",n="true"===this.dataset.inlineSvg;(e||t)&&(n||Uv(this,t,e))}installA11yCaption(){const{parentNode:e,a11yCaption:t}=this;e&&t&&!t.parentNode&&e.insertBefore(t,this)}removeA11yCaption(){const{a11yCaption:e}=this;e&&e.parentNode&&e.parentNode.removeChild(e),this.a11yCaption=null}syncA11yCaption(){const{a11yCaption:e}=this,t=this.getAttribute("a11y-text");t?e?e.textContent=t:(this.a11yCaption=(e=>{const t=document.createElement("span");return t.setAttribute("class","a11y-text"),t.textContent=e,t})(t),this.installA11yCaption()):this.removeA11yCaption()}}function Fv(){const e=document.getElementById("icons-svg").getAttribute("content");e&&ne(e,{skipCsrfToken:!0,sendCookies:!1}).then(e=>e.responseText).then(e=>{const t=(new DOMParser).parseFromString(e,"application/xml").firstChild;t&&(Mv=t,customElements.define("li-icon",Bv))})}const qv=["light","dark","system"],Hv=["app","user"];let jv="light".toUpperCase();function zv(e){document.documentElement.classList.toggle("dark",e),function(e){Array.prototype.slice.call(document.querySelectorAll("img[light-theme-url]")).forEach(t=>function(e,t){const n=t?e.getAttribute("dark-theme-url"):e.getAttribute("light-theme-url");e.setAttribute(e.hasAttribute("data-delayed-url")?"data-delayed-url":"src",n)}(t,e))}(e),jv=(e?"dark":"light").toUpperCase();No("theme-color",e?"#1b1f23":"#ffffff")}function Gv(e){localStorage.setItem("mobileWebTheme",e)}function Wv(){const e=ya("darkModeLixValue");if(!e||"control"===e)return;const t=p(window.location.href,"li_theme");if(t)return zv("dark"===t),void Gv("dark"===t?"dark":"light");const n="on"===e?"system":"light",i=v("li_theme"),r=i&&qv.includes(i)?i:n;"system"===r?function(){if(window.matchMedia){zv(window.matchMedia("(prefers-color-scheme:dark)").matches);try{window.matchMedia("(prefers-color-scheme:dark)").addEventListener("change",e=>zv(e.matches))}catch(e){window.matchMedia("(prefers-color-scheme:dark)").addListener(e=>zv(e.matches))}}}():zv("dark"===r),Gv(r),function(e,t){let n="app";const i=v("li_theme_set");i&&Hv.includes(i)?n=i:("on"===e&&"system"!==t||"enabled-light"===e&&"light"!==t)&&(n="user"),Ao("li_theme_set",n,15552e6)}(e,r)}const Kv=()=>{const e=window.location.href;window.addEventListener("popstate",t=>{if(t.state&&t.state.action&&"reload"===t.state.action){e===window.location.href||Lo()}})};function Vv(e){return{isVoyagerAndroidAppInstalled:e.indexOf("com.linkedin.android")>-1,appTypesInstalled:e}}function Yv(e){o(()=>{!function(e){const t=[],n=navigator.getInstalledRelatedApps&&"function"==typeof navigator.getInstalledRelatedApps;if(n)window.appDetection.then(i=>{i.forEach(e=>{t.push(e.id)});const r=Vv(t);e(n,r)});else{const i=Vv(t);e(n,i)}}(e)})}const Jv={PRIMARY_ACTION:"PRIMARY_ACTION",SECONDARY_ACTION:"SECONDARY_ACTION",SKIP:"SKIP",DISMISS:"DISMISS"},Xv={PAGE_IMPRESSION:"PAGE_IMPRESSION",WIDGET_IMPRESSION:"WIDGET_IMPRESSION",WIDGET_ACTION:"WIDGET_ACTION"},Qv={LEGO_PAGE_IMPRESSION_EVENT:"/mwlite/lego/sendPageImpressionEvent/",LEGO_WIDGET_IMPRESSION_EVENT:"/mwlite/lego/sendWidgetImpressionEvent/",LEGO_WIDGET_ACTION_EVENT:"/mwlite/lego/sendWidgetActionEvent/"};function Zv(e,t){ne(e,{method:"POST",postData:JSON.stringify(t),headers:{"Content-Type":"application/json"}}).catch(()=>{})}var $v=Object.freeze({__proto__:null,ACTION_CATEGORY:Jv,EVENT_TYPE:Xv,LEGO_TRACKING_URLS:Qv,fireLegoEvent:Zv});class ey extends Ra{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:ey.query,variables:{eventType:t,trackingToken:n,widgetActionCategory:i},successCallback:r,failureCallback:o})}}Le(ey,"query","48f4c814e38d5689b7c83a29c9676972");let ty,ny;function iy(e){const t=e.target.closest("[data-tracking-id]");if(t){var n,i;window.tracking.then(e=>{e.fireControlInteractionEvent(t.dataset.trackingId)});const e=null===(n=t.dataset)||void 0===n?void 0:n.action,r=document.querySelector("#app-upsell-container"),o=null==r||null===(i=r.dataset)||void 0===i?void 0:i.legoTrackingId;e&&(document.body.classList.remove("lock-screen"),!o||"upsell-app"!==e&&"custom-upsell-app"!==e?o&&"dismiss"===e&&(Zv(Qv.LEGO_WIDGET_ACTION_EVENT,{trackingToken:o,actionCategory:Jv.DISMISS}),window.tracking.then(e=>{e.fireControlInteractionEvent("app_upsell_dismiss")})):Zv(Qv.LEGO_WIDGET_ACTION_EVENT,{trackingToken:o,actionCategory:Jv.PRIMARY_ACTION})),ty(),r.remove()}}function ry(e){let{target:t,currentTarget:n}=e;const i=t.closest("[data-action]");if(i){var r,o;const e=null===(r=i.dataset)||void 0===r?void 0:r.action,t=null==n||null===(o=n.dataset)||void 0===o?void 0:o.legoTrackingId;e&&(document.body.classList.remove("no-scroll"),!t||"upsell-app"!==e&&"custom-upsell-app"!==e?t&&"dismiss"===e&&(ny.execute({eventType:Xv.WIDGET_ACTION,trackingToken:t,widgetActionCategory:Jv.DISMISS}),window.tracking.then(e=>{e.fireControlInteractionEvent("app_upsell_dismiss")})):ny.execute({eventType:Xv.WIDGET_ACTION,trackingToken:t,widgetActionCategory:Jv.PRIMARY_ACTION})),ty(),n.remove()}}function oy(){var e;const t=document.querySelector("#app-upsell-container");var n,i;ty=da({el:t,focusElement:document.querySelector("#app-upsell-container .primary")}),t&&t.addEventListener("click",iy),(n=null==t||null===(e=t.dataset)||void 0===e?void 0:e.legoTrackingId)&&(Zv(Qv.LEGO_PAGE_IMPRESSION_EVENT,{trackingToken:n}),Zv(Qv.LEGO_WIDGET_IMPRESSION_EVENT,{trackingToken:n})),null===(i=window.tracking)||void 0===i||i.then(e=>{Hr(e,"half","p_mwlite_app_upsell_lego")})}function sy(){ny=new ey(function(){const e=document.querySelector('meta[name="queryEndpoint"]');return null==e?void 0:e.getAttribute("content")}());const e=document.querySelector("#promo-upsell");var t,n;e&&(document.body.classList.add("no-scroll"),uo(e),ty=da({el:e,focusElement:document.querySelector("#promo-upsell .promo__action")}),e.addEventListener("click",ry),(t=e.dataset.legoTrackingId)&&(ny.execute({eventType:Xv.PAGE_IMPRESSION,trackingToken:t}),ny.execute({eventType:Xv.WIDGET_IMPRESSION,trackingToken:t})),null===(n=window.tracking)||void 0===n||n.then(e=>{Hr(e,"half","p_mwlite_app_upsell_lego")}))}function ay(e,t){if(ya("disableAppUpsellPrompt"))return;const{isVoyagerAndroidAppInstalled:n,appTypesInstalled:i}=t;if(e&&t&&n)return;if(ya("isSSRHalfPageUpsellEnabled"))return void sy();const r=ya("vanityName");let o="/mwlite/get-deep-link/";e&&(o=m(o,"isRelatedAppsApiAvailable",e,!0),i.length&&(o=m(o,"relatedAppId",i[0],!0))),r&&(o=m(o,"member",r,!0)),ne(o).then(e=>{if(e.responseText&&204!==e.status){const t=xs(null,e.responseText,{ADD_ATTR:["category"]});document.body.appendChild(t),document.body.classList.add("lock-screen"),oy()}})}function cy(){document.querySelectorAll("#app-upsell-container").forEach(e=>e.parentNode.removeChild(e)),Yv(ay)}function ly(){new Promise(e=>{window.addEventListener("DOMContentLoaded",()=>{var e;e=Sg(),window.addEventListener("offline",()=>Nv(!0,e)),window.addEventListener("online",()=>Nv(!1,e)),So()}),window.addEventListener("load",()=>{!function(){if(!ya("shouldLaunchHandleConfirmation"))return;const e=document.location.href;if(e.includes("startfrontend/onboarding"))return;const t="https://www.".concat(I(document),"/mwlite/startfrontend/onboarding/start/handle-confirmation/new?stepOverride=HANDLE_CONFIRMATION&session_redirect=").concat(e);la.redirect(t)}(),u(document.querySelectorAll("li-icon.artdeco-global-alert__icon--dismissed")).map(Pv),Fv(),Co("#overlay_"),Wv(),Rv(),Ov(),l.getInstance().addPagehideCallback(()=>{sessionStorage.setItem("previousPage",window.location.href)}),function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"/";const t=()=>{const t=document.location.href,n=document.title,i={action:"reload",landingPage:t};window.history.replaceState(i,"",e),window.history.pushState(i,n,t)};Oo()&&t(),Kv()}(),kg(),cy(),Co("#mobile-nav-search"),setTimeout(()=>{var t;null===(t=window.tracking)||void 0===t||t.then(t=>{ko()&&Hr(t,Ld.AJAX,"p_mwlite_launched_from_homescreen"),e()})})})})}Object.freeze({EVENT_FALLBACK_UI_SHOWN:"fallback-ui-shown"});const uy=document.querySelector("#share-modal .textarea"),dy=document.querySelector(".image-preview-wrapper"),hy=document.querySelector("#share-modal .modal-content .reshare-section"),py=document.querySelector(".post-button"),fy=document.querySelector("#comments-enabled"),my=document.querySelector("#share-with-public"),gy=document.querySelector(".post-settings-wrapper"),vy=document.querySelector('input[name="share-with"]:checked'),yy=document.querySelector("#share-modal .close-button"),by=document.querySelector("#visibility-settings-modal"),Ey=document.querySelector("#visibility-header-back .close-button"),_y=document.querySelector("#visibility-settings-modal .settings-list-wrapper"),wy=document.querySelector("#discard-post-modal-wrapper"),Ty=document.querySelector("#share-modal"),Sy=document.querySelector(".modal-spinner"),ky=document.querySelector("#share-modal .textarea"),Cy=document.querySelector("#share-with-groups");document.querySelector("#share-group-urn");const Iy=document.querySelector("#share-with-network");class Ay extends ac{updatePostButtonStatus(){var e;const t=null===(e=uy.innerText)||void 0===e?void 0:e.trim().length,n="loaded"===dy.getAttribute("data-image-load-state"),i=hy.children.length;t||n||i?go(py):mo(py)}clearModalContentBase(){hy&&(hy.textContent=""),uy&&(uy.textContent=""),fy&&(fy.checked=!0),my&&(my.checked=!0,gy.setAttribute("data-post-visibility",vy.value))}historyBackClickHandler(){"share-modal"!==window.history.state&&"typeahead"!==window.history.state&&(window.history.pushState("share-modal","show-share-modal","#share-modal"),yy.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"))})}by.addEventListener("close",()=>{gy.setAttribute("data-post-visibility",document.querySelector('input[name="share-with"]:checked').value)}),Ey.addEventListener("click",()=>window.history.back()),_y.addEventListener("click",t=>e(t)),_y.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}),vo()&&"discard-post-modal"===window.history.state&&setTimeout(()=>{window.history.back()},100)}postSettingsClickHandler(){window.tracking.then(e=>{e.fireControlInteractionEvent("post-settings")}),this.visibilitySettingsModal.open()}}class Ly extends Ay{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=ya("ugcPostUrn"),this.openShareModalByLink=this._checkIfOpenShareModalByLink(),this.bindPublishingShareEvents(),this.visibilitySettingsModal=new ac(by,{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=g(this.updatePostButtonStatus,300);ky.addEventListener("input",e)}bindShareModalEvents(){const e=new kd(wy,this.discardPostConfirmationModalPrimaryActionCallback.bind(this,{enableHistoryBack:!this.openShareModalByLink}),()=>{},{enablePageViewTracking:!0,pageKey:"article_discard_confirmation",triggerByOutletEl:!1});Ty.addEventListener("open",()=>{uy.focus()}),Ty.addEventListener("close",()=>{this.clearModalContentBase(),lo(Sy)}),py.addEventListener("click",()=>{this.processPostData()}),yy.addEventListener("click",()=>{py.disabled?this.close():e.modal.open()}),gy.addEventListener("click",this.postSettingsClickHandler.bind(this)),gy.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(),yo()&&window.scrollTo(0,0),n&&(ky.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=ky.textContent,this.shareData.visibility="PUBLIC",Cy&&(this.shareData.visibility="CONTAINER",this.shareData.containerEntity=Cy.value),Iy.checked&&(this.shareData.visibility="CONNECTIONS")}processPostData(){uo(Sy),this.composePostData(),Oa({endpoint:this.endpoint,queryId:Ly.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")}),Sg().trigger("success",ya("postSuccessMessage"),"post-success-toast-dismiss",{url:"/feed/update/"+i,trk:"share-post-success",text:ya("postSuccessViewPost"),target:"_self"}),this.close()}).catch(()=>{window.tracking.then(e=>{Hr(e,"ajax","post_failure_page_key")}),Sg().trigger("error",ya("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())}}Le(Ly,"query","971e319c05beaf333e94125db8c4f942");const Oy={"send-connection-invite":[{degradationKey:"failed-to-invite"}],follow:[{degradationKey:"failed-to-follow"}],unfollow:[{degradationKey:"failed-to-unfollow"}]};Ad({featureName:"send-connection-invite",productName:"Lite-feed",featureMappingToDegradationConfig:Oy}),Ad({featureName:"follow",productName:"Lite-feed",featureMappingToDegradationConfig:Oy}),Ad({featureName:"unfollow",productName:"Lite-feed",featureMappingToDegradationConfig:Oy});class Ry extends Ra{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:Ry.query,variables:{inviteeVanityName:e},successCallback:t,failureCallback:n})}}Le(Ry,"query","71a5ef30bcb1e84ab5a2b77850d4bb1e");class Ny extends Ra{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:Ny.query,variables:{skills:e},successCallback:t,failureCallback:n})}}Le(Ny,"query","a628cd3be2c138c07fc69c2413b23fb6");class Py extends Ra{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:Py.query,variables:{skills:e},successCallback:t,failureCallback:n})}}Le(Py,"query","a0ff03a6b1cbe44862cb2054f0612078");class xy extends Ra{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:xy.query,variables:{alertChannel:e.alertChannel||"EMAIL",alertFrequency:e.alertFrequency||"DAILY",creationChannel:e.creationChannel||"ONBOARD",searchParams:e.searchParams},successCallback:t,failureCallback:n})}}Le(xy,"query","ad184ece0303620a9753eca249efd99f");class My extends Ra{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:My.query,variables:{updateProfilePictureInput:e},successCallback:t,failureCallback:n})}}Le(My,"query","7edd5b8a4513caf8180a64ecde871630");class Dy extends Ra{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:Dy.query,variables:{updateSettingsResponseDataFetcherInput:{type:"SHOW_PICTURE_SETTING",valueString:e}},successCallback:t,failureCallback:n})}}Le(Dy,"query","97ceca0bcbbf3fd6d744083b4de0a202");document.querySelector.bind(document);class Uy extends Ra{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:Uy.query,variables:{digitalmediaAssetUrn:e},successCallback:t,failureCallback:n})}}Le(Uy,"query","85c85c121bf7eaabd2388b9143f94546");const By={legoTrackingUtils:$v,getPageInstance:Gr,getEventBody:jr,firePageViewEvent:Hr,fireViewModuleImpressionEvent:zr,getTrackingInstance:function(){let{appId:e="seo",appVersion:t="0.0.0",locale:n,multiproduct:i="undefined-frontend-mpName",service:r="undefined-frontend-serviceName",callTreeId:o=null,endpoint:s="li/track",maxSize:a=10,debounceTime:c=50,disableCompression:l=!1,customDelegate:u={},retryConfig:d=null,isLoggedIn:h=!1,customTransporterHosts:p}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const f={appId:e,appVersion:t,locale:n,multiproduct:i,service:r,endpoint:s,disableCompression:l,retryConfig:d,api:{AbortController,location:window.location,document,performance,PerformanceObserver,Promise,assign:Object.assign,fetch,sendBeacon:navigator.sendBeacon.bind(navigator)},batching:{maxSize:a,debounceTime:c}};o&&(f.treeID=o);const m=new di(f),g=new bi(m,Ae({customTransporterHosts:p,preTransporter:e=>Ae(Ae({},e),{},{meta:Kr(e.meta)}),shouldAnonymizeMemberId:()=>!!d&&!h},u));return g}}}).call(this,n(1),n(2).Buffer)},function(e,t){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(e){"object"==typeof window&&(n=window)}e.exports=n},function(e,t,n){"use strict";(function(e){var i=n(4),r=n(5),o=n(6);function s(){return c.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function a(e,t){if(s()<t)throw new RangeError("Invalid typed array length");return c.TYPED_ARRAY_SUPPORT?(e=new Uint8Array(t)).__proto__=c.prototype:(null===e&&(e=new c(t)),e.length=t),e}function c(e,t,n){if(!(c.TYPED_ARRAY_SUPPORT||this instanceof c))return new c(e,t,n);if("number"==typeof e){if("string"==typeof t)throw new Error("If encoding is specified then the first argument must be a string");return d(this,e)}return l(this,e,t,n)}function l(e,t,n,i){if("number"==typeof t)throw new TypeError('"value" argument must not be a number');return"undefined"!=typeof ArrayBuffer&&t instanceof ArrayBuffer?function(e,t,n,i){if(t.byteLength,n<0||t.byteLength<n)throw new RangeError("'offset' is out of bounds");if(t.byteLength<n+(i||0))throw new RangeError("'length' is out of bounds");t=void 0===n&&void 0===i?new Uint8Array(t):void 0===i?new Uint8Array(t,n):new Uint8Array(t,n,i);c.TYPED_ARRAY_SUPPORT?(e=t).__proto__=c.prototype:e=h(e,t);return e}(e,t,n,i):"string"==typeof t?function(e,t,n){"string"==typeof n&&""!==n||(n="utf8");if(!c.isEncoding(n))throw new TypeError('"encoding" must be a valid string encoding');var i=0|f(t,n),r=(e=a(e,i)).write(t,n);r!==i&&(e=e.slice(0,r));return e}(e,t,n):function(e,t){if(c.isBuffer(t)){var n=0|p(t.length);return 0===(e=a(e,n)).length||t.copy(e,0,0,n),e}if(t){if("undefined"!=typeof ArrayBuffer&&t.buffer instanceof ArrayBuffer||"length"in t)return"number"!=typeof t.length||(i=t.length)!=i?a(e,0):h(e,t);if("Buffer"===t.type&&o(t.data))return h(e,t.data)}var i;throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}(e,t)}function u(e){if("number"!=typeof e)throw new TypeError('"size" argument must be a number');if(e<0)throw new RangeError('"size" argument must not be negative')}function d(e,t){if(u(t),e=a(e,t<0?0:0|p(t)),!c.TYPED_ARRAY_SUPPORT)for(var n=0;n<t;++n)e[n]=0;return e}function h(e,t){var n=t.length<0?0:0|p(t.length);e=a(e,n);for(var i=0;i<n;i+=1)e[i]=255&t[i];return e}function p(e){if(e>=s())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+s().toString(16)+" bytes");return 0|e}function f(e,t){if(c.isBuffer(e))return e.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(e)||e instanceof ArrayBuffer))return e.byteLength;"string"!=typeof e&&(e=""+e);var n=e.length;if(0===n)return 0;for(var i=!1;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":case void 0:return q(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return H(e).length;default:if(i)return q(e).length;t=(""+t).toLowerCase(),i=!0}}function m(e,t,n){var i=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if((n>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return L(this,t,n);case"utf8":case"utf-8":return C(this,t,n);case"ascii":return I(this,t,n);case"latin1":case"binary":return A(this,t,n);case"base64":return k(this,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return O(this,t,n);default:if(i)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),i=!0}}function g(e,t,n){var i=e[t];e[t]=e[n],e[n]=i}function v(e,t,n,i,r){if(0===e.length)return-1;if("string"==typeof n?(i=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,isNaN(n)&&(n=r?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(r)return-1;n=e.length-1}else if(n<0){if(!r)return-1;n=0}if("string"==typeof t&&(t=c.from(t,i)),c.isBuffer(t))return 0===t.length?-1:y(e,t,n,i,r);if("number"==typeof t)return t&=255,c.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?r?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):y(e,[t],n,i,r);throw new TypeError("val must be string, number or Buffer")}function y(e,t,n,i,r){var o,s=1,a=e.length,c=t.length;if(void 0!==i&&("ucs2"===(i=String(i).toLowerCase())||"ucs-2"===i||"utf16le"===i||"utf-16le"===i)){if(e.length<2||t.length<2)return-1;s=2,a/=2,c/=2,n/=2}function l(e,t){return 1===s?e[t]:e.readUInt16BE(t*s)}if(r){var u=-1;for(o=n;o<a;o++)if(l(e,o)===l(t,-1===u?0:o-u)){if(-1===u&&(u=o),o-u+1===c)return u*s}else-1!==u&&(o-=o-u),u=-1}else for(n+c>a&&(n=a-c),o=n;o>=0;o--){for(var d=!0,h=0;h<c;h++)if(l(e,o+h)!==l(t,h)){d=!1;break}if(d)return o}return-1}function b(e,t,n,i){n=Number(n)||0;var r=e.length-n;i?(i=Number(i))>r&&(i=r):i=r;var o=t.length;if(o%2!=0)throw new TypeError("Invalid hex string");i>o/2&&(i=o/2);for(var s=0;s<i;++s){var a=parseInt(t.substr(2*s,2),16);if(isNaN(a))return s;e[n+s]=a}return s}function E(e,t,n,i){return j(q(t,e.length-n),e,n,i)}function _(e,t,n,i){return j(function(e){for(var t=[],n=0;n<e.length;++n)t.push(255&e.charCodeAt(n));return t}(t),e,n,i)}function w(e,t,n,i){return _(e,t,n,i)}function T(e,t,n,i){return j(H(t),e,n,i)}function S(e,t,n,i){return j(function(e,t){for(var n,i,r,o=[],s=0;s<e.length&&!((t-=2)<0);++s)n=e.charCodeAt(s),i=n>>8,r=n%256,o.push(r),o.push(i);return o}(t,e.length-n),e,n,i)}function k(e,t,n){return 0===t&&n===e.length?i.fromByteArray(e):i.fromByteArray(e.slice(t,n))}function C(e,t,n){n=Math.min(e.length,n);for(var i=[],r=t;r<n;){var o,s,a,c,l=e[r],u=null,d=l>239?4:l>223?3:l>191?2:1;if(r+d<=n)switch(d){case 1:l<128&&(u=l);break;case 2:128==(192&(o=e[r+1]))&&(c=(31&l)<<6|63&o)>127&&(u=c);break;case 3:o=e[r+1],s=e[r+2],128==(192&o)&&128==(192&s)&&(c=(15&l)<<12|(63&o)<<6|63&s)>2047&&(c<55296||c>57343)&&(u=c);break;case 4:o=e[r+1],s=e[r+2],a=e[r+3],128==(192&o)&&128==(192&s)&&128==(192&a)&&(c=(15&l)<<18|(63&o)<<12|(63&s)<<6|63&a)>65535&&c<1114112&&(u=c)}null===u?(u=65533,d=1):u>65535&&(u-=65536,i.push(u>>>10&1023|55296),u=56320|1023&u),i.push(u),r+=d}return function(e){var t=e.length;if(t<=4096)return String.fromCharCode.apply(String,e);var n="",i=0;for(;i<t;)n+=String.fromCharCode.apply(String,e.slice(i,i+=4096));return n}(i)}t.Buffer=c,t.SlowBuffer=function(e){+e!=e&&(e=0);return c.alloc(+e)},t.INSPECT_MAX_BYTES=50,c.TYPED_ARRAY_SUPPORT=void 0!==e.TYPED_ARRAY_SUPPORT?e.TYPED_ARRAY_SUPPORT:function(){try{var e=new Uint8Array(1);return e.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===e.foo()&&"function"==typeof e.subarray&&0===e.subarray(1,1).byteLength}catch(e){return!1}}(),t.kMaxLength=s(),c.poolSize=8192,c._augment=function(e){return e.__proto__=c.prototype,e},c.from=function(e,t,n){return l(null,e,t,n)},c.TYPED_ARRAY_SUPPORT&&(c.prototype.__proto__=Uint8Array.prototype,c.__proto__=Uint8Array,"undefined"!=typeof Symbol&&Symbol.species&&c[Symbol.species]===c&&Object.defineProperty(c,Symbol.species,{value:null,configurable:!0})),c.alloc=function(e,t,n){return function(e,t,n,i){return u(t),t<=0?a(e,t):void 0!==n?"string"==typeof i?a(e,t).fill(n,i):a(e,t).fill(n):a(e,t)}(null,e,t,n)},c.allocUnsafe=function(e){return d(null,e)},c.allocUnsafeSlow=function(e){return d(null,e)},c.isBuffer=function(e){return!(null==e||!e._isBuffer)},c.compare=function(e,t){if(!c.isBuffer(e)||!c.isBuffer(t))throw new TypeError("Arguments must be Buffers");if(e===t)return 0;for(var n=e.length,i=t.length,r=0,o=Math.min(n,i);r<o;++r)if(e[r]!==t[r]){n=e[r],i=t[r];break}return n<i?-1:i<n?1:0},c.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},c.concat=function(e,t){if(!o(e))throw new TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return c.alloc(0);var n;if(void 0===t)for(t=0,n=0;n<e.length;++n)t+=e[n].length;var i=c.allocUnsafe(t),r=0;for(n=0;n<e.length;++n){var s=e[n];if(!c.isBuffer(s))throw new TypeError('"list" argument must be an Array of Buffers');s.copy(i,r),r+=s.length}return i},c.byteLength=f,c.prototype._isBuffer=!0,c.prototype.swap16=function(){var e=this.length;if(e%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var t=0;t<e;t+=2)g(this,t,t+1);return this},c.prototype.swap32=function(){var e=this.length;if(e%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var t=0;t<e;t+=4)g(this,t,t+3),g(this,t+1,t+2);return this},c.prototype.swap64=function(){var e=this.length;if(e%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var t=0;t<e;t+=8)g(this,t,t+7),g(this,t+1,t+6),g(this,t+2,t+5),g(this,t+3,t+4);return this},c.prototype.toString=function(){var e=0|this.length;return 0===e?"":0===arguments.length?C(this,0,e):m.apply(this,arguments)},c.prototype.equals=function(e){if(!c.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e||0===c.compare(this,e)},c.prototype.inspect=function(){var e="",n=t.INSPECT_MAX_BYTES;return this.length>0&&(e=this.toString("hex",0,n).match(/.{2}/g).join(" "),this.length>n&&(e+=" ... ")),"<Buffer "+e+">"},c.prototype.compare=function(e,t,n,i,r){if(!c.isBuffer(e))throw new TypeError("Argument must be a Buffer");if(void 0===t&&(t=0),void 0===n&&(n=e?e.length:0),void 0===i&&(i=0),void 0===r&&(r=this.length),t<0||n>e.length||i<0||r>this.length)throw new RangeError("out of range index");if(i>=r&&t>=n)return 0;if(i>=r)return-1;if(t>=n)return 1;if(this===e)return 0;for(var o=(r>>>=0)-(i>>>=0),s=(n>>>=0)-(t>>>=0),a=Math.min(o,s),l=this.slice(i,r),u=e.slice(t,n),d=0;d<a;++d)if(l[d]!==u[d]){o=l[d],s=u[d];break}return o<s?-1:s<o?1:0},c.prototype.includes=function(e,t,n){return-1!==this.indexOf(e,t,n)},c.prototype.indexOf=function(e,t,n){return v(this,e,t,n,!0)},c.prototype.lastIndexOf=function(e,t,n){return v(this,e,t,n,!1)},c.prototype.write=function(e,t,n,i){if(void 0===t)i="utf8",n=this.length,t=0;else if(void 0===n&&"string"==typeof t)i=t,n=this.length,t=0;else{if(!isFinite(t))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");t|=0,isFinite(n)?(n|=0,void 0===i&&(i="utf8")):(i=n,n=void 0)}var r=this.length-t;if((void 0===n||n>r)&&(n=r),e.length>0&&(n<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");i||(i="utf8");for(var o=!1;;)switch(i){case"hex":return b(this,e,t,n);case"utf8":case"utf-8":return E(this,e,t,n);case"ascii":return _(this,e,t,n);case"latin1":case"binary":return w(this,e,t,n);case"base64":return T(this,e,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return S(this,e,t,n);default:if(o)throw new TypeError("Unknown encoding: "+i);i=(""+i).toLowerCase(),o=!0}},c.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function I(e,t,n){var i="";n=Math.min(e.length,n);for(var r=t;r<n;++r)i+=String.fromCharCode(127&e[r]);return i}function A(e,t,n){var i="";n=Math.min(e.length,n);for(var r=t;r<n;++r)i+=String.fromCharCode(e[r]);return i}function L(e,t,n){var i=e.length;(!t||t<0)&&(t=0),(!n||n<0||n>i)&&(n=i);for(var r="",o=t;o<n;++o)r+=F(e[o]);return r}function O(e,t,n){for(var i=e.slice(t,n),r="",o=0;o<i.length;o+=2)r+=String.fromCharCode(i[o]+256*i[o+1]);return r}function R(e,t,n){if(e%1!=0||e<0)throw new RangeError("offset is not uint");if(e+t>n)throw new RangeError("Trying to access beyond buffer length")}function N(e,t,n,i,r,o){if(!c.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>r||t<o)throw new RangeError('"value" argument is out of bounds');if(n+i>e.length)throw new RangeError("Index out of range")}function P(e,t,n,i){t<0&&(t=65535+t+1);for(var r=0,o=Math.min(e.length-n,2);r<o;++r)e[n+r]=(t&255<<8*(i?r:1-r))>>>8*(i?r:1-r)}function x(e,t,n,i){t<0&&(t=4294967295+t+1);for(var r=0,o=Math.min(e.length-n,4);r<o;++r)e[n+r]=t>>>8*(i?r:3-r)&255}function M(e,t,n,i,r,o){if(n+i>e.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function D(e,t,n,i,o){return o||M(e,0,n,4),r.write(e,t,n,i,23,4),n+4}function U(e,t,n,i,o){return o||M(e,0,n,8),r.write(e,t,n,i,52,8),n+8}c.prototype.slice=function(e,t){var n,i=this.length;if((e=~~e)<0?(e+=i)<0&&(e=0):e>i&&(e=i),(t=void 0===t?i:~~t)<0?(t+=i)<0&&(t=0):t>i&&(t=i),t<e&&(t=e),c.TYPED_ARRAY_SUPPORT)(n=this.subarray(e,t)).__proto__=c.prototype;else{var r=t-e;n=new c(r,void 0);for(var o=0;o<r;++o)n[o]=this[o+e]}return n},c.prototype.readUIntLE=function(e,t,n){e|=0,t|=0,n||R(e,t,this.length);for(var i=this[e],r=1,o=0;++o<t&&(r*=256);)i+=this[e+o]*r;return i},c.prototype.readUIntBE=function(e,t,n){e|=0,t|=0,n||R(e,t,this.length);for(var i=this[e+--t],r=1;t>0&&(r*=256);)i+=this[e+--t]*r;return i},c.prototype.readUInt8=function(e,t){return t||R(e,1,this.length),this[e]},c.prototype.readUInt16LE=function(e,t){return t||R(e,2,this.length),this[e]|this[e+1]<<8},c.prototype.readUInt16BE=function(e,t){return t||R(e,2,this.length),this[e]<<8|this[e+1]},c.prototype.readUInt32LE=function(e,t){return t||R(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},c.prototype.readUInt32BE=function(e,t){return t||R(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},c.prototype.readIntLE=function(e,t,n){e|=0,t|=0,n||R(e,t,this.length);for(var i=this[e],r=1,o=0;++o<t&&(r*=256);)i+=this[e+o]*r;return i>=(r*=128)&&(i-=Math.pow(2,8*t)),i},c.prototype.readIntBE=function(e,t,n){e|=0,t|=0,n||R(e,t,this.length);for(var i=t,r=1,o=this[e+--i];i>0&&(r*=256);)o+=this[e+--i]*r;return o>=(r*=128)&&(o-=Math.pow(2,8*t)),o},c.prototype.readInt8=function(e,t){return t||R(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},c.prototype.readInt16LE=function(e,t){t||R(e,2,this.length);var n=this[e]|this[e+1]<<8;return 32768&n?4294901760|n:n},c.prototype.readInt16BE=function(e,t){t||R(e,2,this.length);var n=this[e+1]|this[e]<<8;return 32768&n?4294901760|n:n},c.prototype.readInt32LE=function(e,t){return t||R(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},c.prototype.readInt32BE=function(e,t){return t||R(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},c.prototype.readFloatLE=function(e,t){return t||R(e,4,this.length),r.read(this,e,!0,23,4)},c.prototype.readFloatBE=function(e,t){return t||R(e,4,this.length),r.read(this,e,!1,23,4)},c.prototype.readDoubleLE=function(e,t){return t||R(e,8,this.length),r.read(this,e,!0,52,8)},c.prototype.readDoubleBE=function(e,t){return t||R(e,8,this.length),r.read(this,e,!1,52,8)},c.prototype.writeUIntLE=function(e,t,n,i){(e=+e,t|=0,n|=0,i)||N(this,e,t,n,Math.pow(2,8*n)-1,0);var r=1,o=0;for(this[t]=255&e;++o<n&&(r*=256);)this[t+o]=e/r&255;return t+n},c.prototype.writeUIntBE=function(e,t,n,i){(e=+e,t|=0,n|=0,i)||N(this,e,t,n,Math.pow(2,8*n)-1,0);var r=n-1,o=1;for(this[t+r]=255&e;--r>=0&&(o*=256);)this[t+r]=e/o&255;return t+n},c.prototype.writeUInt8=function(e,t,n){return e=+e,t|=0,n||N(this,e,t,1,255,0),c.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[t]=255&e,t+1},c.prototype.writeUInt16LE=function(e,t,n){return e=+e,t|=0,n||N(this,e,t,2,65535,0),c.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):P(this,e,t,!0),t+2},c.prototype.writeUInt16BE=function(e,t,n){return e=+e,t|=0,n||N(this,e,t,2,65535,0),c.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):P(this,e,t,!1),t+2},c.prototype.writeUInt32LE=function(e,t,n){return e=+e,t|=0,n||N(this,e,t,4,4294967295,0),c.TYPED_ARRAY_SUPPORT?(this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e):x(this,e,t,!0),t+4},c.prototype.writeUInt32BE=function(e,t,n){return e=+e,t|=0,n||N(this,e,t,4,4294967295,0),c.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):x(this,e,t,!1),t+4},c.prototype.writeIntLE=function(e,t,n,i){if(e=+e,t|=0,!i){var r=Math.pow(2,8*n-1);N(this,e,t,n,r-1,-r)}var o=0,s=1,a=0;for(this[t]=255&e;++o<n&&(s*=256);)e<0&&0===a&&0!==this[t+o-1]&&(a=1),this[t+o]=(e/s>>0)-a&255;return t+n},c.prototype.writeIntBE=function(e,t,n,i){if(e=+e,t|=0,!i){var r=Math.pow(2,8*n-1);N(this,e,t,n,r-1,-r)}var o=n-1,s=1,a=0;for(this[t+o]=255&e;--o>=0&&(s*=256);)e<0&&0===a&&0!==this[t+o+1]&&(a=1),this[t+o]=(e/s>>0)-a&255;return t+n},c.prototype.writeInt8=function(e,t,n){return e=+e,t|=0,n||N(this,e,t,1,127,-128),c.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[t]=255&e,t+1},c.prototype.writeInt16LE=function(e,t,n){return e=+e,t|=0,n||N(this,e,t,2,32767,-32768),c.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):P(this,e,t,!0),t+2},c.prototype.writeInt16BE=function(e,t,n){return e=+e,t|=0,n||N(this,e,t,2,32767,-32768),c.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):P(this,e,t,!1),t+2},c.prototype.writeInt32LE=function(e,t,n){return e=+e,t|=0,n||N(this,e,t,4,2147483647,-2147483648),c.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24):x(this,e,t,!0),t+4},c.prototype.writeInt32BE=function(e,t,n){return e=+e,t|=0,n||N(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),c.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):x(this,e,t,!1),t+4},c.prototype.writeFloatLE=function(e,t,n){return D(this,e,t,!0,n)},c.prototype.writeFloatBE=function(e,t,n){return D(this,e,t,!1,n)},c.prototype.writeDoubleLE=function(e,t,n){return U(this,e,t,!0,n)},c.prototype.writeDoubleBE=function(e,t,n){return U(this,e,t,!1,n)},c.prototype.copy=function(e,t,n,i){if(n||(n=0),i||0===i||(i=this.length),t>=e.length&&(t=e.length),t||(t=0),i>0&&i<n&&(i=n),i===n)return 0;if(0===e.length||0===this.length)return 0;if(t<0)throw new RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw new RangeError("sourceStart out of bounds");if(i<0)throw new RangeError("sourceEnd out of bounds");i>this.length&&(i=this.length),e.length-t<i-n&&(i=e.length-t+n);var r,o=i-n;if(this===e&&n<t&&t<i)for(r=o-1;r>=0;--r)e[r+t]=this[r+n];else if(o<1e3||!c.TYPED_ARRAY_SUPPORT)for(r=0;r<o;++r)e[r+t]=this[r+n];else Uint8Array.prototype.set.call(e,this.subarray(n,n+o),t);return o},c.prototype.fill=function(e,t,n,i){if("string"==typeof e){if("string"==typeof t?(i=t,t=0,n=this.length):"string"==typeof n&&(i=n,n=this.length),1===e.length){var r=e.charCodeAt(0);r<256&&(e=r)}if(void 0!==i&&"string"!=typeof i)throw new TypeError("encoding must be a string");if("string"==typeof i&&!c.isEncoding(i))throw new TypeError("Unknown encoding: "+i)}else"number"==typeof e&&(e&=255);if(t<0||this.length<t||this.length<n)throw new RangeError("Out of range index");if(n<=t)return this;var o;if(t>>>=0,n=void 0===n?this.length:n>>>0,e||(e=0),"number"==typeof e)for(o=t;o<n;++o)this[o]=e;else{var s=c.isBuffer(e)?e:q(new c(e,i).toString()),a=s.length;for(o=0;o<n-t;++o)this[o+t]=s[o%a]}return this};var B=/[^+\/0-9A-Za-z-_]/g;function F(e){return e<16?"0"+e.toString(16):e.toString(16)}function q(e,t){var n;t=t||1/0;for(var i=e.length,r=null,o=[],s=0;s<i;++s){if((n=e.charCodeAt(s))>55295&&n<57344){if(!r){if(n>56319){(t-=3)>-1&&o.push(239,191,189);continue}if(s+1===i){(t-=3)>-1&&o.push(239,191,189);continue}r=n;continue}if(n<56320){(t-=3)>-1&&o.push(239,191,189),r=n;continue}n=65536+(r-55296<<10|n-56320)}else r&&(t-=3)>-1&&o.push(239,191,189);if(r=null,n<128){if((t-=1)<0)break;o.push(n)}else if(n<2048){if((t-=2)<0)break;o.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;o.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;o.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return o}function H(e){return i.toByteArray(function(e){if((e=function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}(e).replace(B,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function j(e,t,n,i){for(var r=0;r<i&&!(r+n>=t.length||r>=e.length);++r)t[r+n]=e[r];return r}}).call(this,n(1))},function(e,t,n){"use strict";n.d(t,"b",(function(){return i})),n.d(t,"a",(function(){return r}));var i={AJAX:"ajax",HALF:"half",FULL:"full"},r={SEARCH:"p_mwlite_blended_search_typeahead",PEOPLE_SEARCH:"p_mwlite_typeahead_people",RECENT_PEOPLE_SEARCHES:"p_mwlite_search_history",RECENT_JOBS_SEARCHES:"p_mwlite_jobs_search_history"}},function(e,t,n){"use strict";t.byteLength=function(e){var t=l(e),n=t[0],i=t[1];return 3*(n+i)/4-i},t.toByteArray=function(e){var t,n,i=l(e),s=i[0],a=i[1],c=new o(function(e,t,n){return 3*(t+n)/4-n}(0,s,a)),u=0,d=a>0?s-4:s;for(n=0;n<d;n+=4)t=r[e.charCodeAt(n)]<<18|r[e.charCodeAt(n+1)]<<12|r[e.charCodeAt(n+2)]<<6|r[e.charCodeAt(n+3)],c[u++]=t>>16&255,c[u++]=t>>8&255,c[u++]=255&t;2===a&&(t=r[e.charCodeAt(n)]<<2|r[e.charCodeAt(n+1)]>>4,c[u++]=255&t);1===a&&(t=r[e.charCodeAt(n)]<<10|r[e.charCodeAt(n+1)]<<4|r[e.charCodeAt(n+2)]>>2,c[u++]=t>>8&255,c[u++]=255&t);return c},t.fromByteArray=function(e){for(var t,n=e.length,r=n%3,o=[],s=0,a=n-r;s<a;s+=16383)o.push(u(e,s,s+16383>a?a:s+16383));1===r?(t=e[n-1],o.push(i[t>>2]+i[t<<4&63]+"==")):2===r&&(t=(e[n-2]<<8)+e[n-1],o.push(i[t>>10]+i[t>>4&63]+i[t<<2&63]+"="));return o.join("")};for(var i=[],r=[],o="undefined"!=typeof Uint8Array?Uint8Array:Array,s="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",a=0,c=s.length;a<c;++a)i[a]=s[a],r[s.charCodeAt(a)]=a;function l(e){var t=e.length;if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var n=e.indexOf("=");return-1===n&&(n=t),[n,n===t?0:4-n%4]}function u(e,t,n){for(var r,o,s=[],a=t;a<n;a+=3)r=(e[a]<<16&16711680)+(e[a+1]<<8&65280)+(255&e[a+2]),s.push(i[(o=r)>>18&63]+i[o>>12&63]+i[o>>6&63]+i[63&o]);return s.join("")}r["-".charCodeAt(0)]=62,r["_".charCodeAt(0)]=63},function(e,t){t.read=function(e,t,n,i,r){var o,s,a=8*r-i-1,c=(1<<a)-1,l=c>>1,u=-7,d=n?r-1:0,h=n?-1:1,p=e[t+d];for(d+=h,o=p&(1<<-u)-1,p>>=-u,u+=a;u>0;o=256*o+e[t+d],d+=h,u-=8);for(s=o&(1<<-u)-1,o>>=-u,u+=i;u>0;s=256*s+e[t+d],d+=h,u-=8);if(0===o)o=1-l;else{if(o===c)return s?NaN:1/0*(p?-1:1);s+=Math.pow(2,i),o-=l}return(p?-1:1)*s*Math.pow(2,o-i)},t.write=function(e,t,n,i,r,o){var s,a,c,l=8*o-r-1,u=(1<<l)-1,d=u>>1,h=23===r?Math.pow(2,-24)-Math.pow(2,-77):0,p=i?0:o-1,f=i?1:-1,m=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(a=isNaN(t)?1:0,s=u):(s=Math.floor(Math.log(t)/Math.LN2),t*(c=Math.pow(2,-s))<1&&(s--,c*=2),(t+=s+d>=1?h/c:h*Math.pow(2,1-d))*c>=2&&(s++,c/=2),s+d>=u?(a=0,s=u):s+d>=1?(a=(t*c-1)*Math.pow(2,r),s+=d):(a=t*Math.pow(2,d-1)*Math.pow(2,r),s=0));r>=8;e[n+p]=255&a,p+=f,a/=256,r-=8);for(s=s<<r|a,l+=r;l>0;e[n+p]=255&s,p+=f,s/=256,l-=8);e[n+p-f]|=128*m}},function(e,t){var n={}.toString;e.exports=Array.isArray||function(e){return"[object Array]"==n.call(e)}},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var i=n(0),r="/organization-guest/api/runQuery";function o(e){var t=e?{endpoint:r}:{},n=e?{deleteEntity:null,disableComment:null,enableComment:null,followConfig:{endpoint:r}}:{},o=e?{endpoint:r}:{};Array.from(document.querySelectorAll('[data-id="main-feed-card"]')).forEach((r,s)=>{r.getAttribute("data-is-initialized-feed-item")||(new i.l(r,{isLoggedIn:e,reactionsMenuConfig:t,controlMenuConfig:n,followButtonConfig:o}),r.setAttribute("data-is-initialized-feed-item","true")),r.dataset.feedItemListPosition=s+1})}},function(e,t,n){"use strict";(function(e,i){function r(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 o(e){"complete"===document.readyState?e():window.addEventListener("load",()=>{setTimeout(e)})}n.d(t,"a",(function(){return pc})),n.d(t,"b",(function(){return za})),n.d(t,"c",(function(){return ps})),n.d(t,"d",(function(){return Pr})),n.d(t,"e",(function(){return us})),n.d(t,"f",(function(){return w}));class s{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 a=function(){let e;return{getInstance:function(){return e||(e=new s),e}}}();class c{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 l=function(){let e;return{getInstance:function(){return e||(e=new c),e}}}();function u(e){return null==e||"object"!=typeof e?[]:Array.prototype.slice.call(e)}function d(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 h(){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 p(e,t,n){const i=new RegExp("([\\?&])".concat(n?t:encodeURIComponent(t),"=([^&#]*)")).exec(e);return i&&(n?i[2]:decodeURIComponent(i[2]))}function f(e,t){return m(e,"trk",t)}function m(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=p(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 g(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 v(e){const t=document.cookie.match(new RegExp("(^| )"+e+"=([^;]+)"));return t&&t[2]}function y(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 b(){let e,t;const n=new Promise((n,i)=>{e=n,t=i});return n.resolve=e,n.reject=t,n}function E(e){return void 0!==e.msHidden?e.msHidden:void 0!==e.hidden?e.hidden:void 0}function _(e){return"string"!=typeof e?null:e.split("?")[0]}var w=Object.freeze({__proto__:null,closest:r,onload:o,UnloadHandler:a,PagehideHandler:l,makeArray:u,outerWidth:function(e){let t=e.offsetWidth,n=getComputedStyle(e);return t+=(parseInt(n.marginLeft,10)||0)+(parseInt(n.marginRight,10)||0),t},elementInViewport:d,hasElementScrolledToThreshold:h,getQueryParam:p,addTrackingCode:f,addQueryParam:m,debounce:g,getCookie:v,dispatchCustomEvent:y,getDeferredPromise:b,isDocumentHidden:E,stripQueryParams:_,getUrlWithQueryParamObject:function(e,t){if(!e||!t)return e;let n=e;for(const e of Object.keys(t))n=m(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 T(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 S(e){let t=e.querySelector('meta[name="linkedin:pageTag"]');return t&&t.content||""}function k(e){let t=e.querySelector('meta[name="locale"]');return t&&t.content||""}function C(e){return e&&'"'===e.charAt(0)&&'"'===e.charAt(e.length-1)?e.slice(1,-1):e}const I={ARROW_DOWN:"ArrowDown",ARROW_LEFT:"ArrowLeft",ARROW_RIGHT:"ArrowRight",ARROW_UP:"ArrowUp",ESCAPE:"Escape",ENTER:"Enter",SPACEBAR:" ",TAB:"Tab"},A={Down:I.ARROW_DOWN,Right:I.ARROW_RIGHT,Left:I.ARROW_LEFT,Up:I.ARROW_UP,Esc:I.ESCAPE,Spacebar:I.SPACEBAR,Tab:I.TAB};function L(e){return A[e]||e}class O{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(L(e.key)){case I.ENTER:case I.SPACEBAR:e.preventDefault(),this.isOpen?this.close():this._open(e);break;case I.ARROW_UP:this.isOpen||this._open(e);break;case I.ARROW_DOWN:this.isOpen&&this.close()}}_onKeyUp(e){L(e.key)===I.SPACEBAR&&e.preventDefault()}_onKeyDown(e){const t=L(e.key);if(t===I.ESCAPE&&this.isOpen)this.close();else if(this._isList){let n;switch(t){case I.SPACEBAR:y(e.target,"click");break;case I.ARROW_LEFT:case I.ARROW_UP:n=r(e.target,"li");let t=n.previousElementSibling;t&&y(t,"focusEl");break;case I.ARROW_RIGHT:case I.ARROW_DOWN:n=r(e.target,"li");let i=n.nextElementSibling;i&&y(i,"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)),y(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)),y(this.el,"close"),e&&this.mainButton.focus())}}let R,N;const P=['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^="-"])'],x=[...P,'[tabindex]:not([tabindex^="-"]):not([disabled])'].join(","),M=[...P,"[tabindex]:not([disabled])"].join(",");function D(e){const t=window.getComputedStyle(e);return"hidden"===t.visibility||"none"===t.display}function U(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?!D(e):i&&i.get(e)?i.get(e):(D(e)?t=!1:e.parentNode&&(t=U(e.parentNode,n,i)),i&&i.set(e,t),t)}const B={POLITE:"polite",ASSERTIVE:"assertive"};function F(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:B.POLITE;R&&(R.removeAttribute("aria-hidden"),R.setAttribute("aria-live",B.POLITE),R.textContent="",R.textContent=e,R.setAttribute("aria-live",t),clearTimeout(N),N=setTimeout(()=>{R.removeAttribute("aria-live"),R.setAttribute("aria-hidden","true")},1e4))}class q{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 H=["class","disabled","style","tabindex","type"];class j{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 q(this._container)}init(){this._observer.observe(this._container,{attributeFilter:H,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=L(t),r=i===I.TAB&&e.shiftKey;!r&&i===I.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(x)],n=new Map;let i,r,o=0,s=t.length-1;for(;(!i||!r)&&o<=s;){if(!i){const r=t[o];i=U(r,e,n)&&r,o++}if(!r){const i=t[s];r=U(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 z(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=v("JSESSIONID");e&&(l.headers["Csrf-Token"]=C(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?G(u,e,c,a):console.warn("Please set the value for the option pemDegradationTrackingMetadata when PEM is enabled.")),d}function G(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 W="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==e?e:"undefined"!=typeof self?self:{},K=(parseInt,"object"==typeof W&&W&&W.Object===Object&&W),V="object"==typeof self&&self&&self.Object===Object&&self;K||V||Function("return this")(),Object.prototype.toString,Math.max,Math.min;function Y(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 J(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Y(Object(n),!0).forEach((function(t){X(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Y(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function X(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Q(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 Z="light",$="dark";function ee(){const e=document.getElementById("config");let t;return e&&e.dataset&&(t=e.dataset.theme),t?document.documentElement.classList.contains("dark")?$:Z:void 0}var te;function ne(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)||le(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 ie(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=le(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 re(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function oe(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 se(e,t,n){return t&&oe(e.prototype,t),n&&oe(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function ae(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ce(e){return function(e){if(Array.isArray(e))return ue(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||le(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 le(e,t){if(e){if("string"==typeof e)return ue(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)?ue(e,t):void 0}}function ue(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 de(e){return(de="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 he,pe=new Uint8Array(16);function fe(){if(!he&&!(he="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 he(pe)}var me=/^(?:[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 ge(e){return"string"==typeof e&&me.test(e)}for(var ve=[],ye=0;ye<256;++ye)ve.push((ye+256).toString(16).substr(1));function be(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=(ve[e[t+0]]+ve[e[t+1]]+ve[e[t+2]]+ve[e[t+3]]+"-"+ve[e[t+4]]+ve[e[t+5]]+"-"+ve[e[t+6]]+ve[e[t+7]]+"-"+ve[e[t+8]]+ve[e[t+9]]+"-"+ve[e[t+10]]+ve[e[t+11]]+ve[e[t+12]]+ve[e[t+13]]+ve[e[t+14]]+ve[e[t+15]]).toLowerCase();if(!ge(n))throw TypeError("Stringified UUID is invalid");return n}function Ee(e){if(!ge(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 _e(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=Ee(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 be(s)}try{i.name=e}catch(e){}return i.DNS="6ba7b810-9dad-11d1-80b4-00c04fd430c8",i.URL="6ba7b811-9dad-11d1-80b4-00c04fd430c8",i}function we(e){return 14+(e+64>>>9<<4)+1}function Te(e,t){var n=(65535&e)+(65535&t);return(e>>16)+(t>>16)+(n>>16)<<16|65535&n}function Se(e,t,n,i,r,o){return Te((s=Te(Te(t,e),Te(i,o)))<<(a=r)|s>>>32-a,n);var s,a}function ke(e,t,n,i,r,o,s){return Se(t&n|~t&i,e,t,r,o,s)}function Ce(e,t,n,i,r,o,s){return Se(t&i|n&~i,e,t,r,o,s)}function Ie(e,t,n,i,r,o,s){return Se(t^n^i,e,t,r,o,s)}function Ae(e,t,n,i,r,o,s){return Se(n^(t|~i),e,t,r,o,s)}function Le(e,t,n){var i=(e=e||{}).random||(e.rng||fe)();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 be(i)}function Oe(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 Re(e,t){return e<<t|e>>>32-t}_e("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[we(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=ke(n,i,r,o,e[s],7,-680876936),o=ke(o,n,i,r,e[s+1],12,-389564586),r=ke(r,o,n,i,e[s+2],17,606105819),i=ke(i,r,o,n,e[s+3],22,-1044525330),n=ke(n,i,r,o,e[s+4],7,-176418897),o=ke(o,n,i,r,e[s+5],12,1200080426),r=ke(r,o,n,i,e[s+6],17,-1473231341),i=ke(i,r,o,n,e[s+7],22,-45705983),n=ke(n,i,r,o,e[s+8],7,1770035416),o=ke(o,n,i,r,e[s+9],12,-1958414417),r=ke(r,o,n,i,e[s+10],17,-42063),i=ke(i,r,o,n,e[s+11],22,-1990404162),n=ke(n,i,r,o,e[s+12],7,1804603682),o=ke(o,n,i,r,e[s+13],12,-40341101),r=ke(r,o,n,i,e[s+14],17,-1502002290),n=Ce(n,i=ke(i,r,o,n,e[s+15],22,1236535329),r,o,e[s+1],5,-165796510),o=Ce(o,n,i,r,e[s+6],9,-1069501632),r=Ce(r,o,n,i,e[s+11],14,643717713),i=Ce(i,r,o,n,e[s],20,-373897302),n=Ce(n,i,r,o,e[s+5],5,-701558691),o=Ce(o,n,i,r,e[s+10],9,38016083),r=Ce(r,o,n,i,e[s+15],14,-660478335),i=Ce(i,r,o,n,e[s+4],20,-405537848),n=Ce(n,i,r,o,e[s+9],5,568446438),o=Ce(o,n,i,r,e[s+14],9,-1019803690),r=Ce(r,o,n,i,e[s+3],14,-187363961),i=Ce(i,r,o,n,e[s+8],20,1163531501),n=Ce(n,i,r,o,e[s+13],5,-1444681467),o=Ce(o,n,i,r,e[s+2],9,-51403784),r=Ce(r,o,n,i,e[s+7],14,1735328473),n=Ie(n,i=Ce(i,r,o,n,e[s+12],20,-1926607734),r,o,e[s+5],4,-378558),o=Ie(o,n,i,r,e[s+8],11,-2022574463),r=Ie(r,o,n,i,e[s+11],16,1839030562),i=Ie(i,r,o,n,e[s+14],23,-35309556),n=Ie(n,i,r,o,e[s+1],4,-1530992060),o=Ie(o,n,i,r,e[s+4],11,1272893353),r=Ie(r,o,n,i,e[s+7],16,-155497632),i=Ie(i,r,o,n,e[s+10],23,-1094730640),n=Ie(n,i,r,o,e[s+13],4,681279174),o=Ie(o,n,i,r,e[s],11,-358537222),r=Ie(r,o,n,i,e[s+3],16,-722521979),i=Ie(i,r,o,n,e[s+6],23,76029189),n=Ie(n,i,r,o,e[s+9],4,-640364487),o=Ie(o,n,i,r,e[s+12],11,-421815835),r=Ie(r,o,n,i,e[s+15],16,530742520),n=Ae(n,i=Ie(i,r,o,n,e[s+2],23,-995338651),r,o,e[s],6,-198630844),o=Ae(o,n,i,r,e[s+7],10,1126891415),r=Ae(r,o,n,i,e[s+14],15,-1416354905),i=Ae(i,r,o,n,e[s+5],21,-57434055),n=Ae(n,i,r,o,e[s+12],6,1700485571),o=Ae(o,n,i,r,e[s+3],10,-1894986606),r=Ae(r,o,n,i,e[s+10],15,-1051523),i=Ae(i,r,o,n,e[s+1],21,-2054922799),n=Ae(n,i,r,o,e[s+8],6,1873313359),o=Ae(o,n,i,r,e[s+15],10,-30611744),r=Ae(r,o,n,i,e[s+6],15,-1560198380),i=Ae(i,r,o,n,e[s+13],21,1309151649),n=Ae(n,i,r,o,e[s+4],6,-145523070),o=Ae(o,n,i,r,e[s+11],10,-1120210379),r=Ae(r,o,n,i,e[s+2],15,718787259),i=Ae(i,r,o,n,e[s+9],21,-343485551),n=Te(n,a),i=Te(i,c),r=Te(r,l),o=Te(o,u)}return[n,i,r,o]}(function(e){if(0===e.length)return[];for(var t=8*e.length,n=new Uint32Array(we(t)),i=0;i<t;i+=8)n[i>>5]|=(255&e[i/8])<<i%32;return n}(e),8*e.length))})),_e("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]=Re(h[f-3]^h[f-8]^h[f-14]^h[f-16],1);for(var m=n[0],g=n[1],v=n[2],y=n[3],b=n[4],E=0;E<80;++E){var _=Math.floor(E/20),w=Re(m,5)+Oe(_,g,v,y)+b+t[_]+h[E]>>>0;b=y,y=v,v=Re(g,30)>>>0,g=m,m=w}n[0]=n[0]+m>>>0,n[1]=n[1]+g>>>0,n[2]=n[2]+v>>>0,n[3]=n[3]+y>>>0,n[4]=n[4]+b>>>0}return[n[0]>>24&255,n[0]>>16&255,n[0]>>8&255,255&n[0],n[1]>>24&255,n[1]>>16&255,n[1]>>8&255,255&n[1],n[2]>>24&255,n[2]>>16&255,n[2]>>8&255,255&n[2],n[3]>>24&255,n[3]>>16&255,n[3]>>8&255,255&n[3],n[4]>>24&255,n[4]>>16&255,n[4]>>8&255,255&n[4]]}));var Ne=null;if("undefined"==typeof crypto||!crypto.getRandomValues){var Pe=("undefined"!=typeof FastBoot?FastBoot.require:require)("crypto");if(Pe){var xe=new Uint8Array(256),Me=xe.length;Ne={rng:function(){return Me>xe.length-16&&(Pe.randomFillSync(xe),Me=0),xe.slice(Me,Me+=16)}}}}"object"===("undefined"==typeof crypto?"undefined":de(crypto))&&crypto.randomUUID;function De(){return Le(Ne,new Array(16),0)}function Ue(e){return ce(e).map((function(e){return String.fromCharCode(e)})).join("")}function Be(){return Ue(De())}var Fe=/^[a-zA-Z0-9/+]+[=]+$/;function qe(e,t){return{pageUrn:je(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("")}(De())}}function He(e,t){return"urn:li:control:".concat(e,"-").concat(t)}function je(e){return"urn:li:page:".concat(e)}function ze(e,t){return{pageInstance:t.assign({},e.pageInstance),pageKey:e.pageKey,applicationInstance:e.applicationInstance}}function Ge(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 We(e){var t=[];return e.forEach((function(e){return t.push(e)})),t}function Ke(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 Ve(e,t,n){var i=e.get(t);i&&i.push(n)||e.set(t,[n])}function Ye(e,t,n){var i=e.get(t);i&&i.splice(i.indexOf(n)>>>0,1)}var Je,Xe,Qe=(Je=new Map,Xe=new Map,{on:function(e,t){Ve(Je,e,t)},before:function(e,t){Ve(Xe,e,t)},off:function(e,t){Ye(Je,e,t)},offBefore:function(e,t){Ye(Xe,e,t)},emit:function(e,t){(Xe.get(e)||[]).concat(Je.get(e)||[]).slice().map((function(e){e(t)}))},clear:function(){Xe.clear(),Je.clear()}});if("undefined"!=typeof document&&"undefined"!=typeof window){var Ze=function(e){"pagehide"!==e.type&&"hidden"!==document.visibilityState||Qe.emit("internal:hide",e)};document.addEventListener("visibilitychange",Ze),window.addEventListener("pagehide",Ze)}var $e=Uint8Array,et=Uint16Array,tt=Uint32Array,nt=new $e([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]),it=new $e([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]),rt=new $e([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),ot=function(e,t){for(var n=new et(31),i=0;i<31;++i)n[i]=t+=1<<e[i-1];var r=new tt(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]},st=ot(nt,2),at=st[0],ct=st[1];at[28]=258,ct[258]=28;for(var lt=ot(it,0)[1],ut=new et(32768),dt=0;dt<32768;++dt){var ht=(43690&dt)>>>1|(21845&dt)<<1;ht=(61680&(ht=(52428&ht)>>>2|(13107&ht)<<2))>>>4|(3855&ht)<<4,ut[dt]=((65280&ht)>>>8|(255&ht)<<8)>>>1}var pt=function(e,t,n){for(var i=e.length,r=0,o=new et(t);r<i;++r)e[r]&&++o[e[r]-1];var s,a=new et(t);for(r=0;r<t;++r)a[r]=a[r-1]+o[r-1]<<1;if(n){s=new et(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[ut[d]>>>c]=l}else for(s=new et(i),r=0;r<i;++r)e[r]&&(s[r]=ut[a[e[r]-1]++]>>>15-e[r]);return s},ft=new $e(288);for(dt=0;dt<144;++dt)ft[dt]=8;for(dt=144;dt<256;++dt)ft[dt]=9;for(dt=256;dt<280;++dt)ft[dt]=7;for(dt=280;dt<288;++dt)ft[dt]=8;var mt=new $e(32);for(dt=0;dt<32;++dt)mt[dt]=5;var gt=pt(ft,9,0),vt=pt(mt,5,0),yt=function(e){return(e+7)/8|0},bt=function(e,t,n){n<<=7&t;var i=t/8|0;e[i]|=n,e[i+1]|=n>>>8},Et=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},_t=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[At,0];if(1==r){var s=new $e(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 et(h+1),f=wt(n[u-1],p,0);if(f>t){i=0;var m=0,g=f-t,v=1<<g;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+=v-(1<<f-p[y]),p[y]=t}for(m>>>=g;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 $e(p),f]},wt=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},Tt=function(e){for(var t=e.length;t&&!e[--t];);for(var n=new et(++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]},St=function(e,t){for(var n=0,i=0;i<t.length;++i)n+=e[i]*t[i];return n},kt=function(e,t,n){var i=n.length,r=yt(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)},Ct=function(e,t,n,i,r,o,s,a,c,l,u){bt(t,u++,n),++r[256];for(var d=_t(r,15),h=d[0],p=d[1],f=_t(o,15),m=f[0],g=f[1],v=Tt(h),y=v[0],b=v[1],E=Tt(m),_=E[0],w=E[1],T=new et(19),S=0;S<y.length;++S)T[31&y[S]]++;for(S=0;S<_.length;++S)T[31&_[S]]++;for(var k=_t(T,7),C=k[0],I=k[1],A=19;A>4&&!C[rt[A-1]];--A);var L,O,R,N,P=l+5<<3,x=St(r,ft)+St(o,mt)+s,M=St(r,h)+St(o,m)+s+14+3*A+St(T,C)+(2*T[16]+3*T[17]+7*T[18]);if(P<=x&&P<=M)return kt(t,u,e.subarray(c,c+l));if(bt(t,u,1+(M<x)),u+=2,M<x){L=pt(h,p,0),O=h,R=pt(m,g,0),N=m;var D=pt(C,I,0);for(bt(t,u,b-257),bt(t,u+5,w-1),bt(t,u+10,A-4),u+=14,S=0;S<A;++S)bt(t,u+3*S,C[rt[S]]);u+=3*A;for(var U=[y,_],B=0;B<2;++B){var F=U[B];for(S=0;S<F.length;++S){var q=31&F[S];bt(t,u,D[q]),u+=C[q],q>15&&(bt(t,u,F[S]>>>5&127),u+=F[S]>>>12)}}}else L=gt,O=ft,R=vt,N=mt;for(S=0;S<a;++S)if(i[S]>255){q=i[S]>>>18&31,Et(t,u,L[q+257]),u+=O[q+257],q>7&&(bt(t,u,i[S]>>>23&31),u+=nt[q]);var H=31&i[S];Et(t,u,R[H]),u+=N[H],H>3&&(Et(t,u,i[S]>>>5&8191),u+=it[H])}else Et(t,u,L[i[S]]),u+=O[i[S]];return Et(t,u,L[256]),u+O[256]},It=new tt([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),At=new $e(0),Lt=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}(),Ot=function(e,t,n){for(;n;++t)e[t]=n,n>>>=8};function Rt(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=Lt[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 $e(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=kt(c,l+1,e.subarray(u,d))}else{for(var h=It[t-1],p=h>>>13,f=8191&h,m=(1<<n)-1,g=new et(32768),v=new et(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 tt(25e3),w=new et(288),T=new et(32),S=0,k=0,C=(u=0,0),I=0,A=0;u<s;++u){var L=E(u),O=32767&u,R=v[L];if(g[O]=R,v[L]=O,I<=u){var N=s-u;if((S>7e3||C>24576)&&N>423){l=Ct(e,c,0,_,w,T,k,C,A,u-A,l),C=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=O-R&32767;if(N>2&&L==E(u-U))for(var B=Math.min(p,N)-1,F=Math.min(32767,u),q=Math.min(258,N);U<=F&&--D&&O!=R;){if(e[u+x]==e[u+x-U]){for(var H=0;H<q&&e[u+H]==e[u+H-U];++H);if(H>x){if(x=H,M=U,H>B)break;var j=Math.min(U,H-2),z=0;for(P=0;P<j;++P){var G=u-U+P+32768&32767,W=G-g[G]+32768&32767;W>z&&(z=W,R=G)}}}U+=(O=R)-(R=g[O])+32768&32767}if(M){_[C++]=268435456|ct[x]<<18|lt[M];var K=31&ct[x],V=31&lt[M];k+=nt[K]+it[V],++w[257+K],++T[V],I=u+x,++S}else _[C++]=e[u],++w[e[u]]}}l=Ct(e,c,o,_,w,T,k,C,A,u-A,l),!o&&7&l&&(l=kt(c,l+1,At))}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?et:4==e.BYTES_PER_ELEMENT?tt:$e)(n-t);return i.set(e.subarray(t,n)),i}(a,0,i+yt(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&&Ot(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),Ot(a,c-8,n.d()),Ot(a,c-4,i),a}var Nt="undefined"!=typeof TextDecoder&&new TextDecoder;try{Nt.decode(At,{stream:!0})}catch(Ei){}function Pt(){return"undefined"!=typeof window&&"function"==typeof window.fetch}function xt(){try{return Pt()&&"keepalive"in new Request("")}catch(e){return!1}}function Mt(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 Dt(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=Rt((new TextEncoder).encode(t)),i["content-encoding"]="gzip"}catch(e){}return{body:o,keepalive:n,credentials:"include",headers:i,method:"POST",mode:"cors"}}function Ut(e){return e&&"message"in e?e.message:"UNKNOWN_ERROR"}var Bt,Ft="undefined"!=typeof navigator&&"sendBeacon"in navigator,qt=xt()?function(e,t,n,i){return new Promise((function(r){fetch(e,Dt({body:t,keepalive:!0,headers:n,compress:i})).catch((function(){return fetch(e,Dt({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:Ut(e)})}))}))}:function(e,t,n,i){return new Promise((function(r){if(Ft){var o=!1;try{o=navigator.sendBeacon(e,t)}catch(e){}if(o)return void r({type:"unknown",drop:!1})}fetch(e,Dt({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:Ut(e)})}))}))};function Ht(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 jt(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 zt(){return Bt||(Bt=jt("idb-queue","default")),Bt}function Gt(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))},Ht(e.transaction)}function Wt(){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]:zt();return t("readwrite",(function(t){return Gt(t,e)}))}var Kt=!1;function Vt(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]:zt();return n("readwrite",(function(n){return n.put(e),Ht(n.count()).then((function(e){if(!(e<=t.maxNumber))return Gt(n,t)}))})).catch((function(e){if(e&&"QuotaExceededError"===e.name)return Wt(t,n)}))}function Yt(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]:zt();return Kt?Promise.resolve():Vt(e,t,n)}function Jt(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())},Ht(t.transaction).then((function(){return i}))}))}function Xt(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())},Ht(t.transaction).then((function(){return i}))}))}function Qt(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:zt();return Xt(e,t,"next")}function Zt(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:zt();return Xt(e,t,"prev")}function $t(){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 en(e){"undefined"!=typeof window&&window.__DEBUG_BEACON_TRANSPORTER&&console.debug("[beacon-transporter] ",e())}function tn(e){"undefined"!=typeof window&&window.__DEBUG_BEACON_TRANSPORTER&&console.error("[beacon-transporter] ",e())}function nn(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 rn(e,t){var n=0;return{throttledFn:function(){var i=Date.now();i-n>t&&(en((function(){return"[throttle] Run fn() at "+String(i)})),e(),n=i)},resetThrottle:function(){n=0}}}var on=function(){function e(t){var n=this,i=arguments.length>1&&void 0!==arguments[1]&&arguments[1];re(this,e),ae(this,"config",void 0),ae(this,"compress",void 0),ae(this,"throttleControl",void 0),ae(this,"withStore",void 0),ae(this,"disablePersistence",!1),this.config=t,this.compress=i;var r=t.measureIDB;r&&performance.mark(r.createStartMark),this.withStore=jt(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=rn(this.replayEntries.bind(this),t.throttleWait)}return se(e,[{key:"onNotify",value:function(){this.disablePersistence||this.throttleControl.throttledFn()}},{key:"push",value:function(e){var t=this;if(!this.disablePersistence){var n=function(){en((function(){return"Persisting to DB "+e.url})),Yt(e,t.config,t.withStore).then((function(){t.throttleControl.resetThrottle(),en((function(){return"push completed"}))})).catch((function(){t.disablePersistence=!0,tn((function(){return"push failed"}))}))};this.config.useIdle?nn(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]:zt();return Kt=!0,e("readwrite",(function(e){return e.clear(),Ht(e.transaction).finally((function(){return Kt=!1}))}))}(this.withStore).catch((function(){e.disablePersistence=!0,tn((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([]):Qt(t,this.withStore).catch((function(){return e.disablePersistence=!0,tn((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([]):Zt(t,this.withStore).catch((function(){return e.disablePersistence=!0,tn((function(){return"peekBack failed"})),[]}))}},{key:"replayEntries",value:function(){var e=this;if(!this.disablePersistence){var t=function(){en((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]:zt();return Jt(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 en((function(){return"header: ".concat(String(e.config.headerName),"; attemptCount: ").concat(u)})),null===(n=(i=e.config).onBeforeRetry)||void 0===n||n.call(i,s),qt(o,s,$t(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 en((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),en((function(){return"Replaying the entry failed, pushing back to IDB: "+JSON.stringify({url:o,timestamp:c,statusCode:l},null,2)})),Yt({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&&tn((function(){return"Replay entry failed: ".concat(t.message)}))}))};this.config.useIdle?nn(t):t()}}}]),e}(),sn=function(){function e(){re(this,e)}return se(e,[{key:"onNotify",value:function(){}},{key:"push",value:function(){}},{key:"clear",value:function(){return Promise.resolve()}},{key:"peek",value:function(){return Promise.resolve([])}},{key:"peekBack",value:function(){return Promise.resolve([])}}]),e}(),an=function(){function e(t,n){re(this,e),ae(this,"queue",void 0),ae(this,"beaconListeners",new Set),this.queue=e.hasSupport&&!n.disablePersistenceRetry?new on(t,n.compress):new sn}return se(e,[{key:"pushToQueue",value:function(e){this.queue.push(e)}},{key:"notifyQueue",value:function(){this.queue.onNotify()}},{key:"clearQueue",value:function(){return this.beaconListeners.forEach((function(e){return e()})),this.queue.clear()}},{key:"peekQueue",value:function(e){return this.queue.peek(e)}},{key:"peekBackQueue",value:function(e){return this.queue.peekBack(e)}},{key:"onClear",value:function(e){this.beaconListeners.add(e)}},{key:"removeOnClear",value:function(e){this.beaconListeners.delete(e)}}]),e}();ae(an,"hasSupport","undefined"!=typeof globalThis&&!!globalThis.indexedDB);var cn=[502,504],ln=[429,503],un=function(){function e(t,n,i,r){var o=this,s=arguments.length>4&&void 0!==arguments[4]&&arguments[4];re(this,e),ae(this,"url",void 0),ae(this,"body",void 0),ae(this,"config",void 0),ae(this,"persistenceConfig",void 0),ae(this,"compress",void 0),ae(this,"timestamp",void 0),ae(this,"isClearQueuePending",!1),ae(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 se(e,[{key:"send",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.persistenceConfig.db.onClear(this.onClearCallback);var n=this.retryLimit;return this.retry((function(t){return qt(e.url,e.body,t,e.compress)}),n,t).finally((function(){en((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($t(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(en((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 en((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 dn(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&&xt()&&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:cn,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:ln,maxNumber:1e3,batchEvictionNumber:300,throttleWait:3e5},t.persistenceRetry);r.headerName=r.headerName||i.headerName,e=new an(r,{compress:t.compress,disablePersistenceRetry:t.disablePersistenceRetry})}return{beacon:function(r,o,s){var a;return Pt()?new un(r,o,i,{db:e,disabled:Boolean(t.disablePersistenceRetry),statusCodes:(null===(a=t.persistenceRetry)||void 0===a?void 0:a.statusCodes)||ln},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){Qe.emit("internal:error",{tags:["core-web-tracking:retry:idb"],reason:e})})):(e.retryBeacon.shouldRetry=!0,Promise.resolve())):void 0})).catch((function(e){Qe.emit("internal:error",{tags:["core-web-tracking:retry:setup"],reason:e})}))}var hn=function(){function e(t){re(this,e),ae(this,"host",void 0),this.host=t}return se(e,[{key:"checkAndEnablePersistentRetry",value:function(e,t){if("function"==typeof(null==e?void 0:e.shouldAnonymizeMemberId)&&!this.host.retryBeacon){var n=this.getRetryTreatment();this.host.retryConfig&&dn(this.host,e,this.shouldCompressPayload(),n,t)}}},{key:"clearPersistedEventsOnLogout",value:function(){var e=this.host.retryBeacon;if(e&&e.shouldRetry)return e.shouldRetry=!1,e.database.clearQueue().catch((function(e){Qe.emit("internal:error",{tags:["core-web-tracking:retry:logout"],reason:e})}))}},{key:"sendPayload",value:function(e,t,n,i){var r,o=this.getRetryTreatment();xt()&&"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){Qe.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||!Pt()||"undefined"==typeof Promise?Mt(e,JSON.stringify(t),{headers:n}):qt(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}(),pn="undefined"!=typeof window&&"undefined"!=typeof document,fn=/JSESSIONID="?([^";]+)"?/,mn="",gn=0;function vn(){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?fn:i;if(!mn||Date.now()-gn>n){var o=pn&&document.cookie.match(r);mn=o&&o[1]||"",gn=Date.now()}return mn}var yn=function(){function e(t){re(this,e),ae(this,"networkTransporter",void 0),ae(this,"inactive",void 0),ae(this,"mpName",void 0),ae(this,"endpoint",void 0),ae(this,"debug",void 0),this.networkTransporter=new hn(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=En;break;case"https://www.linkedin-ei.com/li/track/validate":n=!0,t=bn;break;case"https://www.linkedin-ei.com/li/track":t=bn;break;default:n=!0,t=bn}return{endpoint:t,debug:n}}(t.endpoint);this.endpoint=n.endpoint,this.debug=n.debug}return se(e,[{key:"fireFragment",value:function(e){if(!this.inactive){var t={"content-type":"application/json; charset=UTF-8","x-li-track":JSON.stringify({mpName:this.mpName}),"csrf-token":vn(),"x-restli-protocol-version":"2.0.0"},n={fragmentEvent:e,debug:this.debug};this.networkTransporter.sendPayload(this.endpoint,n,t)}}}]),e}(),bn="https://www.linkedin-ei.com/trackingMonitoring/?action=saveClientFragment",En="https://www.linkedin.com/trackingMonitoring/?action=saveClientFragment";function _n(e){return"string"==typeof e}function wn(e){return _n(e)?e:e.topicName||e.eventName}function Tn(e){return _n(e)?e:e.eventName}var Sn,kn,Cn=function(){function e(t){var n,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};re(this,e),ae(this,"host",void 0),ae(this,"cmoTransporter",void 0),ae(this,"clientMonitoringInstanceId",Be()),ae(this,"currentContext",Ln()),ae(this,"appState",{}),ae(this,"estimatedFragmentSize",0),ae(this,"fragmentSizeLimit",void 0),ae(this,"activeFragmentEvent",void 0),ae(this,"debounceTimer",void 0),this.host=t,this.cmoTransporter=i.cmoTransporter||new yn(t),this.fragmentSizeLimit=(null===(n=t.clientMonitoringConfig)||void 0===n?void 0:n.fragmentSizeLimit)||10240,this.activeFragmentEvent=An(this.clientMonitoringInstanceId,0,0,!1,this.getEventHeaders())}return se(e,[{key:"getCurrentInstanceId",value:function(){return this.clientMonitoringInstanceId}},{key:"scheduleDebouncedFiring",value:function(){var e,t,n=this;void 0!==this.debounceTimer&&(clearTimeout(this.debounceTimer),this.debounceTimer=void 0),this.fragmentIsFull()&&this.fireFragmentEventIfFull(!0),this.debounceTimer=setTimeout((function(){n.fireFragmentEventIfFull()}),null!==(e=null===(t=this.host.batching)||void 0===t?void 0:t.debounceTime)&&void 0!==e?e:1)}},{key:"logEventGenerated",value:function(e){this.scheduleDebouncedFiring();var t=this.activeFragmentEvent.stats,n=this.activeFragmentEvent.firstEventNumber+t.eventsGenerated;return t.eventTopics.push(e),t.eventsGenerated++,this.estimatedFragmentSize+=e.length,n}},{key:"logEventReadyToSend",value:function(e){this.activeFragmentEvent.stats.eventsReadyToSend+=e}},{key:"logEventSent",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.getCurrentInstanceId();t===this.getCurrentInstanceId()?this.activeFragmentEvent.stats.eventsSent+=e:this.findPreviousInstanceStat(t,(function(t){t.eventsSent+=e}))}},{key:"logNetworkResponseCode",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.getCurrentInstanceId(),n=this.activeFragmentEvent.stats.networkResponseStats;t!==this.getCurrentInstanceId()&&this.findPreviousInstanceStat(t,(function(e){n=e.networkResponseStats})),e>=200&&e<300?n.eventsWith2XXResponse++:400===e?n.eventsWith400Response++:408===e?n.eventsWith408Response++:429===e?n.eventsWith429Response++:e>400&&e<500?n.eventsWith4XXResponse++:500===e?n.eventsWith500Response++:502===e?n.eventsWith502Response++:503===e?n.eventsWith503Response++:504===e?n.eventsWith504Response++:e>500&&e<600&&n.eventsWith5XXResponse++}},{key:"findPreviousInstanceStat",value:function(e,t){var n,i=ie(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:Tn(t),eventTopic:wn(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=An(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=On(e.trackingId));var t=this.currentContext.pageInstance;return t.trackingId=On(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 In(e){return Sn||(Sn=new Cn(e)),{getCurrentInstanceId:function(){return Sn.getCurrentInstanceId()},logEventGenerated:function(e){return Sn.logEventGenerated(e)},logEventReadyToSend:function(e){Sn.logEventReadyToSend(e)},logEventSent:function(e){Sn.logEventSent(e)},logPersistedEventSent:function(e,t){Sn.logEventSent(t,e)},logNetworkResponseCode:function(e){Sn.logNetworkResponseCode(e)},logPersistedNetworkResponseCode:function(e,t){var n;null===(n=Sn)||void 0===n||n.logNetworkResponseCode(t,e)},logFailedEvent:function(e,t,n,i){Sn.logFailedEvent(e,t,n,i)},logPersistedFailedEvent:function(e,t,n,i,r){Sn.logFailedEvent(t,n,i,r,e)},flush:function(){Sn.flush()},destroy:function(){Sn=void 0},isDestroyed:function(){return void 0===Sn},setCurrentContext:function(e){Sn.setCurrentContext(e)},updateAppState:function(e){Sn.updateAppState(e)}}}function An(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 Ln(){return{pageKey:"unknown",pageInstance:qe("unknown")}}function On(e){return Array.isArray(e)?Ue(e):16===e.length?e:function(e){return"string"==typeof e&&!!e.match(Fe)}(e)?atob(e):Ue(function(e){return Ee(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"}(kn||(kn={}));var Rn="PageViewEvent",Nn=function(){function e(t){var n=this;re(this,e),ae(this,"host",void 0),ae(this,"queue",void 0),ae(this,"preContextQueue",void 0),ae(this,"debounceTimer",void 0),ae(this,"unloadHandlers",void 0),ae(this,"maxQueueSize",void 0),ae(this,"flushDebounceTime",void 0),ae(this,"trackingEventListeners",[]),ae(this,"onHideHandler",(function(){n.forceFlush()})),ae(this,"networkTransporter",void 0),ae(this,"clientMonitoringConn",void 0),ae(this,"clientSequenceNumberCounter",void 0),ae(this,"isTimerRunning",void 0),ae(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,Qe.on("internal:hide",this.onHideHandler),this.networkTransporter=new hn(t),this.isLixEnabled("pemberly.tracking.monitoring")&&t.clientMonitoringConfig&&!t.inactive&&(this.clientMonitoringConn=In(t)),this.enableSequenceNumberLix=this.isLixEnabled("tracking.data-loss-web.sequence-number"),this.enableSequenceNumberLix&&(this.getSequenceNumberFromIDB(),this.updateSequenceNumberOnExit(),this.isTimerRunning=!1)}return se(e,[{key:"checkAndEnablePersistentRetry",value:function(e){var t,n=(t=this.clientMonitoringConn,{onIntermediateResult:function(e,n){var 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(kn.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,kn.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(wn(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,Qe.off("internal:hide",this.onHideHandler)}},{key:"forceFlush",value:function(){var e=this;this.populatePreContextQueue({pageInstance:qe("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;Ke("read").then((function(t){e.clientSequenceNumberCounter=t||0})).catch((function(e){Qe.emit("internal:error",{tags:["core-web-tracking:sequence-number:idb-read"],reason:e})}))}},{key:"updateSequenceNumberToIDB",value:function(){Ke("update",this.clientSequenceNumberCounter).catch((function(e){Qe.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=ze(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===Rn:e.eventName===Rn}(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 g={header:c(m,e.meta.header||{}),requestHeader:c(f,e.meta.requestHeader||{})},v=e.meta.clientMonitoringInstanceId,y=e.meta.clientMonitoringInstanceEventNumber;return v&&c(g.header,{clientMonitoringInstanceId:v,clientMonitoringInstanceEventNumber:y}),c(e.body,g)}},{key:"populatePreContextQueue",value:function(e){var t,n=this.preContextQueue;return this.preContextQueue=[],null===(t=this.clientMonitoringConn)||void 0===t||t.logEventReadyToSend(n.length),n.map((function(t){return t.meta.context=e,"function"==typeof t.body&&(t.body=t.body(e)),t}))}},{key:"trigger",value:function(e,t){this.trackingEventListeners.forEach((function(n){return n(e,t)}))}},{key:"requestFlush",value:function(e){var t=this;e((function(){t.forceFlush()}),{timeout:1e4})}},{key:"flush",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=this.host.api.requestIdleCallback;e||!t?this.sendPayload():this.requestFlush(t)}},{key:"batchFire",value:function(){var e=this;this.queue.length>this.maxQueueSize?this.flush():(this.debounceTimer&&clearTimeout(this.debounceTimer),this.debounceTimer=setTimeout((function(){return e.flush()}),this.flushDebounceTime))}},{key:"sendPayload",value:function(){var e=this,t=this.queue;if(0!==t.length){this.enableSequenceNumberLix&&"undefined"!=typeof window&&!1===this.isTimerRunning&&(this.isTimerRunning=!0,setInterval((function(){e.updateSequenceNumberToIDB()}),5e3)),this.queue=[];var n,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(kn.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 Pn,xn=function(){function e(t,n){re(this,e),this.clientBreadcrumbType=t,this.id=n}return se(e,[{key:"builder",get:function(){return function(){var e={},t=new Proxy({},{get:function(n,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 Mn(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 Dn(e){return"retryConfig"in e.host}!function(e){e.UNKNOWN="UNKNOWN",e.ME_NOTIFICATION="ME_NOTIFICATION",e.ME_NOTIFICATION_ACTION="ME_NOTIFICATION_ACTION"}(Pn||(Pn={}));var Un,Bn,Fn;!function(){function e(t,n){var i,r;if(re(this,e),ae(this,"transporter",void 0),ae(this,"delegate",void 0),ae(this,"currentContext",void 0),ae(this,"appState",void 0),ae(this,"previousAppContext",void 0),ae(this,"customTransporters",void 0),ae(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 Nn(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=In(t.host))}se(e,[{key:"host",get:function(){return this.transporter.host}},{key:"checkAndEnablePersistentRetry",value:function(){Dn(this.transporter)&&this.transporter.checkAndEnablePersistentRetry(this.delegate)}},{key:"flushAndClearPersistedEventsOnLogout",value:function(){this.forceFlush();var e=Dn(this.transporter)?this.transporter.clearPersistedEventsOnLogout():null;return null!=e?e:this.host.api.Promise.resolve()}},{key:"getCurrentContext",value:function(){if(this.currentContext)return ze(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,Mn(t));if(this.setCurrentContext(i.to),!n.suppressEventsFiring)return this.fireNavEvents(i)}},{key:"setCurrentContext",value:function(e){var t;this.currentContext=ze(e,this.host.api),null===(t=this.clientMonitoringConn)||void 0===t||t.setCurrentContext(ze(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=He(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=wn(e),o=void 0===t?"undefined":null===t?"null":de(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(kn.MISSING_REQUIRED_PROPERTIES,e,s,a)}throw new Error(s)}var c=i||[];if(c.length>0){var l=c.map((function(e){return xn.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(_n(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=wn(r.id),c="Could not find custom transporter: ".concat(o);if(this.clientMonitoringConn){var l=this.clientMonitoringConn.logEventGenerated(a);this.clientMonitoringConn.logFailedEvent(kn.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 qe(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),Qe.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 He((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&&ze(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 qn(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;re(this,e),ae(this,"core",void 0),ae(this,"protocol",void 0),ae(this,"throttleKeySet",new Set),ae(this,"config",void 0),ae(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},Qe.on("internal:error",this.reportTransporterError)}se(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,g=void 0===m?0:m,v=e.columnNumber,y=void 0===v?0:v,b=this.core.host,E=b.appId,_=b.appVersion,w=b.service,T=b.serviceInstance,S=b.treeID,k=void 0===S?"":S,C=b.api,I=C.Promise,A=C.location,L=A.host,O=A.pathname,R=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:g,m:l,s:h,t:u,u:f},h:P,l:n.protocol,o:L,p:O,pageKey:e.pageKey,q:R,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=qn(u+l+h+i.join("")+s);return this.throttleKeySet.has(D)?I.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(),Qe.off("internal:error",this.reportTransporterError)}}])}();var Hn=function(){function e(){re(this,e),ae(this,"userTimingEntries",[]),ae(this,"longTasks",[]),ae(this,"resourceTimingEntries",[]),ae(this,"cdnData",void 0)}return se(e,[{key:"reset",value:function(){this.userTimingEntries=[],this.longTasks=[],this.resourceTimingEntries=[]}},{key:"attachTreeIds",value:function(e){this.resourceTimingEntries.forEach((function(t){var n=e.get(t.name);n&&(t.resourceTreeId=n)}))}},{key:"getData",value:function(){return{userTimingEntries:this.userTimingEntries,longTasks:this.longTasks,resourceTimingEntries:this.resourceTimingEntries.map(zn),cdnData:this.cdnData}}}]),e}(),jn=["resourceTreeId","name","entryType","startTime","duration","initiatorType","nextHopProtocol","redirectStart","redirectEnd","fetchStart","domainLookupStart","domainLookupEnd","connectStart","connectEnd","secureConnectionStart","requestStart","responseStart","responseEnd","transferSize","encodedBodySize","decodedBodySize","workerStart"];function zn(e){return jn.reduce((function(t,n){var i=e[n];return void 0!==i&&(t[n]=i),t}),{})}function Gn(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};Bn=Object.assign(Object.assign({},n),t),Fn=function(e,t){return e.nodeType===Node.DOCUMENT_NODE?e:e===t.root?e.ownerDocument:e}(Bn.root,n);var i=Wn(e,Un.All,(function(){return Wn(e,Un.Two,(function(){return Wn(e,Un.One)}))}));if(i){var r=ei(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>Bn.optimizedMinLength)for(var o=1;o<t.length-1;o++){if(i.counter>Bn.maxNumberOfTries)return r;i.counter+=1;var s=ce(t);s.splice(o,1);var a=Vn(s);if(i.visited.has(a))return r;Jn(s)&&ti(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]),Vn(i)}throw new Error("Selector was not found.")}function Wn(e,t,n){for(var i=null,r=[],o=e,s=0,a=function(){var e=Zn(function(e){var t=e.getAttribute("id");return t&&Bn.idName(t)?{name:"#"+ai(t,{isIdentifier:!0}),penalty:0}:null}(o))||Zn.apply(void 0,ce(function(e){return Array.from(e.attributes).filter((function(e){return Bn.attr(e.name,e.value)})).map((function(e){return{name:"["+ai(e.name,{isIdentifier:!0})+'="'+ai(e.value)+'"]',penalty:.5}}))}(o)))||Zn.apply(void 0,ce(function(e){return Array.from(e.classList).filter(Bn.className).map((function(e){return{name:"."+ai(e,{isIdentifier:!0}),penalty:1}}))}(o)))||Zn(function(e){var t=e.tagName.toLowerCase();return Bn.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===Un.All)a&&(e=e.concat(e.filter(Qn).map((function(e){return Xn(e,a)}))));else if(t===Un.Two)e=e.slice(0,1),a&&(e=e.concat(e.filter(Qn).map((function(e){return Xn(e,a)}))));else if(t===Un.One){var c=ne(e=e.slice(0,1),1)[0];a&&Qn(c)&&(e=[Xn(c,a)])}var l,u=ie(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>=Bn.seedMinLength&&(i=Kn(r,n)))return"break";o=o.parentElement,s++};o&&o!==Bn.root.parentElement&&"break"!==a(););return i||(i=Kn(r,n)),i}function Kn(e,t){var n=ei(function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];if(t.length>0){var i,r=[],o=ie(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>Bn.threshold)return t?t():null;var i,r=ie(n);try{for(r.s();!(i=r.n()).done;){var o=i.value;if(Jn(o))return o}}catch(e){r.e(e)}finally{r.f()}return null}function Vn(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 Yn(e){return e.map((function(e){return e.penalty})).reduce((function(e,t){return e+t}),0)}function Jn(e){switch(Fn.querySelectorAll(Vn(e)).length){case 0:throw new Error("Can't select any node with this selector: ".concat(Vn(e)));case 1:return!0;default:return!1}}function Xn(e,t){return{name:e.name+":nth-child(".concat(t,")"),penalty:e.penalty+1}}function Qn(e){return"html"!==e.name&&!e.name.startsWith("#")}function Zn(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var i=t.filter($n);return i.length>0?i:null}function $n(e){return null!=e}function ei(e){return Array.from(e).sort((function(e,t){return Yn(e)-Yn(t)}))}function ti(e,t){return Fn.querySelector(Vn(e))===t}!function(e){e[e.All=0]="All",e[e.Two=1]="Two",e[e.One=2]="One"}(Un||(Un={}));var ni,ii=/[ -,\.\/:-@\[-\^`\{-~]/,ri=/[ -,\.\/:-@\[\]\^`\{-~]/,oi=/(^|\\+)?(\\[A-F0-9]{1,6})\x20(?![a-fA-F0-9\x20])/g,si={escapeEverything:!1,isIdentifier:!1,quotes:"single",wrap:!1};function ai(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=Object.assign(Object.assign({},si),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?ii.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&&ri.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(oi,(function(e,t,n){return t&&t.length%2?e:(t||"")+n})),!r&&n.wrap?i+s+i:s}function ci(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 li(e){var t=e||performance;return Math.round(t.now())}function ui(e){if(!e)return"null";if(e.nodeType===Node.ELEMENT_NODE)try{return Gn(e,{idName:function(e){return 0!==e.indexOf("ember")}})}catch(e){return"serialization_error"}var t=ui(e.parentElement||void 0);return"".concat(t," > nodeType(").concat(e.nodeType,")")}function di(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 hi(e){var t=[];return e.forEach((function(e){return t.push(e)})),t}var pi,fi=function(){function e(t){re(this,e),ae(this,"hostApis",void 0),ae(this,"hostnameProperties",void 0),ae(this,"usedHostnames",void 0),ae(this,"abortController",void 0),ae(this,"pendingPromises",void 0),this.hostApis=t;var n=t.AbortController;this.hostnameProperties={},this.usedHostnames=new Set,this.abortController=new n,this.pendingPromises=new Set}return se(e,[{key:"clearUsedHostnames",value:function(){this.usedHostnames=new Set}},{key:"getPresentData",value:function(){var e=this;return We(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=Ge(We(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,(ni=ni||i.createElement("a")).href=n,ni.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}(),mi=function(){function e(t,n,i,r){re(this,e),ae(this,"hostApis",void 0),ae(this,"statics",void 0),ae(this,"options",void 0),ae(this,"allowTimingOrigin",void 0),ae(this,"collectResourceTimings",void 0),ae(this,"collectCdnData",void 0),ae(this,"perfObserver",void 0),ae(this,"renderTimings",new Map),ae(this,"urlToTreeId",new Map),ae(this,"cdnDataProvider",void 0),ae(this,"observables",new Hn),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 fi(t))}return se(e,[{key:"recordTreeId",value:function(e,t){this.collectResourceTimings&&this.urlToTreeId.set(function(e,t){return(ni=ni||t.createElement("a")).href=e,ni.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:ci(this.hostApis.performance,this.allowTimingOrigin)})}},{key:"recordRenderEnd",value:function(e){var t=this.renderTimings.get(e);t&&(t.renderEnd=t.renderEnd||ci(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=di(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,gi.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?Ge(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=di(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:hi(this.renderTimings),networkInformationMetrics:vi(this.hostApis.connection)};return this.renderTimings.clear(),e}}]),e}(),gi=["loadEventEnd","loadEventStart","domComplete","domContentLoadedEventEnd","domContentLoadedEventStart","domInteractive","domLoading","responseEnd","responseStart","requestStart","secureConnectionStart","connectEnd","connectStart","domainLookupEnd","domainLookupStart","fetchStart","redirectEnd","redirectStart","unloadEventEnd","unloadEventStart","navigationStart"];function vi(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"}(pi||(pi={}));var yi=(ae(te={},"web-ui-framework","EMBER"),ae(te,"app-id","linkedin.rum.tracking"),ae(te,"app-version","unknown"),ae(te,"is-single-page-app",!0),ae(te,"user-timing-mark-enabled",!1),ae(te,"user-timing-measure-enabled",!0),ae(te,"beacon-source","apps"),ae(te,"enable-rs-timing",!0),ae(te,"enable-cdn-tracking",!1),ae(te,"async-plugins-timeout",5e3),ae(te,"beacon-timeout",3e4),ae(te,"enable-memory-measurement",!1),ae(te,"pageKeyPrefix",""),te),bi=function(){function e(t,n,i){re(this,e),ae(this,"featureName",void 0),ae(this,"trackingCore",void 0),ae(this,"rumConfig",void 0),ae(this,"observing",!1),ae(this,"basePageTreeId",void 0),ae(this,"startPageInstance",void 0),ae(this,"startMemory",void 0),ae(this,"reportTimeouts",[]),this.featureName=t,this.trackingCore=n,this.rumConfig=i}return se(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)||qe("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:li(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}();ae(bi,"checkpoints",[1,3,10,30,90,180,300]);var Ei,_i,wi,Ti,Si,ki=se((function e(t,n,i){re(this,e),ae(this,"webUIFramework",void 0),ae(this,"timeSource",void 0),ae(this,"isSinglePageApp",void 0),ae(this,"appRenderMode",void 0),ae(this,"isAppRenderFailed",void 0),ae(this,"pageLoadMode","INITIAL"),ae(this,"isSSL",void 0),ae(this,"treeId",void 0),ae(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})),Ci=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)}},Ii=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){}},Ai=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)},Li=function(e){addEventListener("pageshow",(function(t){t.persisted&&e(t)}),!0)},Oi=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)))}},Ri=-1,Ni=function(){return"hidden"===document.visibilityState?0:1/0},Pi=function(){Ai((function(e){var t=e.timeStamp;Ri=t}),!0)},xi=function(){return Ri<0&&(Ri=Ni(),Pi(),Li((function(){setTimeout((function(){Ri=Ni(),Pi()}),0)}))),{get firstHiddenTime(){return Ri}}},Mi=!1,Di=-1,Ui=function(e,t){Mi||(function(e,t){var n,i=xi(),r=Ci("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:Ii("paint",o);(s||a)&&(n=Oi(e,r,t),s&&o(s),Li((function(i){r=Ci("FCP"),n=Oi(e,r,t),requestAnimationFrame((function(){requestAnimationFrame((function(){r.value=performance.now()-i.timeStamp,n(!0)}))}))})))}((function(e){Di=e.value})),Mi=!0);var n,i=function(t){Di>-1&&e(t)},r=Ci("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=Ii("layout-shift",a);c&&(n=Oi(i,r,t),Ai((function(){c.takeRecords().map(a),n(!0)})),Li((function(){o=0,Di=-1,r=Ci("CLS",0),n=Oi(i,r,t)})))},Bi={passive:!0,capture:!0},Fi=new Date,qi=function(e,t){Ei||(Ei=t,_i=e,wi=new Date,zi(removeEventListener),Hi())},Hi=function(){if(_i>=0&&_i<wi-Fi){var e={entryType:"first-input",name:Ei.type,target:Ei.target,cancelable:Ei.cancelable,startTime:Ei.timeStamp,processingStart:Ei.timeStamp+_i};Ti.forEach((function(t){t(e)})),Ti=[]}},ji=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(){qi(e,t),r()},i=function(){r()},r=function(){removeEventListener("pointerup",n,Bi),removeEventListener("pointercancel",i,Bi)};addEventListener("pointerup",n,Bi),addEventListener("pointercancel",i,Bi)}(t,e):qi(t,e)}},zi=function(e){["mousedown","keydown","touchstart","pointerdown"].forEach((function(t){return e(t,ji,Bi)}))},Gi=function(e,t){var n,i=xi(),r=Ci("FID"),o=function(e){e.startTime<i.firstHiddenTime&&(r.value=e.processingStart-e.startTime,r.entries.push(e),n(!0))},s=Ii("first-input",o);n=Oi(e,r,t),s&&Ai((function(){s.takeRecords().map(o),s.disconnect()}),!0),s&&Li((function(){var i;r=Ci("FID"),n=Oi(e,r,t),Ti=[],_i=-1,Ei=null,zi(addEventListener),i=o,Ti.push(i),Hi()}))},Wi={},Ki=function(e,t){var n,i=xi(),r=Ci("LCP"),o=function(e){var t=e.startTime;t<i.firstHiddenTime&&(r.value=t,r.entries.push(e)),n()},s=Ii("largest-contentful-paint",o);if(s){n=Oi(e,r,t);var a=function(){Wi[r.id]||(s.takeRecords().map(o),s.disconnect(),Wi[r.id]=!0,n(!0))};["keydown","click"].forEach((function(e){addEventListener(e,a,{once:!0,capture:!0})})),Ai(a,!0),Li((function(i){r=Ci("LCP"),n=Oi(e,r,t),requestAnimationFrame((function(){requestAnimationFrame((function(){r.value=performance.now()-i.timeStamp,Wi[r.id]=!0,n(!0)}))}))}))}},Vi=["LCP","FID","CLS"],Yi={LCP:"LargestContentfulPaint",FID:"FirstInputDelay",CLS:"CumulativeLayoutShift"},Ji={},Xi=function(){var e;if(!pn)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}(),Qi=!1,Zi=[],$i={LCP:"largest-contentful-paint",FID:"first-input",CLS:"layout-shift"};function er(){var e=!0===window.__test__resetWebVitalsState;if(!Qi||e){e&&(Zi=[]),Vi.forEach(tr);var t=Symbol();Si=t,[Ki,Gi,Ui].forEach((function(e){return e(nr.bind(null,t),!0)})),[Ki,Gi,Ui].forEach((function(e){return e(ir.bind(null,t))})),Qi=!0}}function tr(e){Ji[e]={name:e,value:-1,updateHistory:[]};var t=$i[e];"undefined"!=typeof PerformanceObserver&&void 0!==PerformanceObserver.supportedEntryTypes&&"string"==typeof t&&PerformanceObserver.supportedEntryTypes.indexOf(t)>-1||(Ji[e].value=-2)}function nr(e,t){if(e===Si){var n=Ji[t.name],i=li();n&&(n.updateHistory.push({time:i,data:t}),n.value=t.value),Zi.forEach((function(e){return e(t,i,!1)}))}}function ir(e,t){e===Si&&Zi.forEach((function(e){return e(t,li(),!0)}))}var rr=function(){function e(t,n){re(this,e),ae(this,"basePageTreeId",void 0),ae(this,"basePageKey",void 0),ae(this,"observing",!1),ae(this,"appContextMap",new Map),ae(this,"rumConfig",void 0),ae(this,"trackingCore",void 0),this.trackingCore=t,this.rumConfig=n}return se(e,[{key:"startObserving",value:function(){var e,t,n=this;er(),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",Vi.forEach((function(e){var t;-2===(null===(t=Ji[e])||void 0===t?void 0:t.value)&&n.reportMetric(e)})),t=this.onMetricUpdate.bind(this),Zi.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=Ji[e],n={name:Yi[e]||e};"CLS"===e?n.doubleValue=t.value:n.longValue=Math.round(t.value);var i=Ji[e];if(i){var r=function(e,t,n,i,r){var o={basePageTreeId:e,basePageKey:t,basePageUrl:Xi},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:ui(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:ui(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":ui(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;re(this,e),ae(this,"core",void 0),ae(this,"config",void 0),ae(this,"collector",void 0),ae(this,"boomerangStart",-1),ae(this,"webVitalsObserver",void 0),ae(this,"appMemoryObserver",void 0),ae(this,"pageMemoryObserver",void 0),ae(this,"liveTokens",new Set),ae(this,"stateWM",new WeakMap),ae(this,"activeToken",void 0),ae(this,"isInitial",void 0),ae(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({},yi),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 mi(i.host.api,new ki(t,this.config,i.host),this.config,s),this.collector.startObserving(),Qe.before("internal:hide",this.beforeHideHandlerBound)}se(e,[{key:"pingCDN",value:function(){}},{key:"recordTreeId",value:function(e,t){e&&this.collector.recordTreeId(e,t)}},{key:"recordRenderStart",value:function(e,t){this.collector.recordRenderStart(e,t||e)}},{key:"recordRenderEnd",value:function(e){this.collector.recordRenderEnd(e)}},{key:"start",value:function(){var e,t,n,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:ci(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 bi("page-memory",this.core,this.config),this.pageMemoryObserver.startObserving(),void 0===this.appMemoryObserver&&(this.appMemoryObserver=new bi("application-memory",this.core,this.config),this.appMemoryObserver.startObserving())),o}},{key:"observeWebVitals",value:function(){void 0===this.webVitalsObserver&&(this.webVitalsObserver=new rr(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=ci(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 Qe.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;Qe.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 or="undefined"!=typeof window&&"undefined"!=typeof performance,sr="undefined"!=typeof location&&-1!==location.search.indexOf("_LI_MEASURE_DEBUG");function ar(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"ajax",n=arguments.length>2?arguments[2]:void 0;e.fireTrackingEvent("PageViewEvent",cr(n,t))}function cr(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"ajax";const n=S(document),i=k(document),r=ee();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){re(this,e),ae(this,"featureKey",void 0),ae(this,"productName",void 0),ae(this,"endPageInstance",void 0),ae(this,"startPageInstance",void 0),ae(this,"isCanceled",!1),ae(this,"featureIdentifier",void 0),ae(this,"name",void 0),ae(this,"startTime",void 0),ae(this,"duration",void 0),ae(this,"marks",[]),ae(this,"spanStarts",new Map),ae(this,"spans",[]),ae(this,"isSpanContainer",!1),ae(this,"basePageTreeId",void 0),ae(this,"isClosed",!1),this.featureKey=t,this.productName=n;var i=n?"::".concat(n):"";this.featureIdentifier="".concat(t).concat(i),this.name=t}se(e,[{key:"start",value:function(e){this.startPageInstance=e,or&&(this.startTime=li(),sr&&performance.mark("LI:".concat(this.featureIdentifier,"-start")))}},{key:"mark",value:function(e){or&&(this.marks.push({name:e,startTime:li()}),sr&&(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){or&&(this.spanStarts.set(e,li()),sr&&performance.mark("LI:".concat(this.featureIdentifier,"-span-").concat(e,"-start")))}},{key:"spanEnd",value:function(e,t){if(or&&this.spanStarts.has(e)){var n=this.spanStarts.get(e);this.spans.push({name:t||e,startTime:n,duration:li()-n}),sr&&(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,or&&(this.duration=li()-this.startTime,sr&&!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(or){var e={name:this.featureKey,startTime:this.startTime,duration:this.isSpanContainer?-1:this.duration,basePageTreeId:this.basePageTreeId,startPageInstance:this.startPageInstance||qe("unknown"),marks:this.marks,spans:this.spans};return this.productName&&(e.productName=this.productName),e}}},{key:"check",value:function(){if(or){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:lr,ESCAPE:ur}=I;class dr{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 j(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=L(e.key),n=t===lr&&document.activeElement===this._exitButtonEl;(t===ur||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),y(this._el,"open"),this._wrapperEl&&this._wrapperEl.focus(),this._focusTrap.init(),this._enablePageViewTracking&&window.tracking?window.tracking.then(e=>{ar(e,"ajax",this._pageKey||"".concat(this._el.id))}):(y(this._wrapperEl,"afterOpen"),Promise.resolve());y(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),y(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 hr(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 pr=/ /g,fr=/[\s\u0000<>"]|%00/,mr=/\\/,gr=/([.]|%2e){2}/i;let vr=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 yr(e){let t;if("string"!=typeof e)return hr("jSecure Warning: url must be a string","error"),"invalid://";if(t=e.trim(),t.indexOf(" ")>-1&&(hr("jSecure Warning: url should not contain spaces: "+e,"warn"),t=t.replace(pr,"+")),!vr.test(t))return hr("jSecure Error: URL should be absolute with allowed schemas, relative, a hash fragment or query string. "+e,"error"),"invalid://";if(fr.test(t))return hr("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?(hr("jSecure Error: malformed url path detected: "+i),"invalid://"):mr.test(i)||gr.test(i)||gr.test(n)?(hr("jSecure Error: malicious data found in url path: "+i,"error"),"invalid://"):e}const br={redirect(e){window&&(window.location.href=e)}};function Er(e){return e.scrollHeight>e.offsetHeight}function _r(e,t){const n=u(e);for(let e=0;e<n.length;e++)n[e]&&1===n[e].nodeType&&t(n[e])}function wr(e){Sr([e])}function Tr(e){kr([e])}function Sr(e){_r(e,e=>{e.classList.add("hidden"),e.setAttribute("aria-hidden","true")})}function kr(e){_r(e,e=>{e.classList.remove("hidden"),e.setAttribute("aria-hidden","false")})}function Cr(e){null==e||e.setAttribute("disabled","disabled"),null==e||e.setAttribute("aria-disabled","true")}function Ir(e){null==e||e.removeAttribute("disabled"),null==e||e.removeAttribute("aria-disabled")}function Ar(){return document.documentElement.classList.contains("safari")}function Lr(){return document.documentElement.classList.contains("ios")}function Or(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&&Er(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 Rr="prev",Nr="next";class Pr{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?(Tr(this._indicatorElement),this._indicatorElement.isActive=!0,this._indicatorElement.addEventListener("click",this._indicatorClickHandler)):(wr(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(x).forEach(e=>{const t=e.getAttribute("tabindex");this._prevTabIndexMap.set(e,t),e.setAttribute("tabindex","-1")})}}_handleScrollAction(e){const t=r(e.target,".slide-list__nav-button"),n=t&&t.dataset.direction;n&&(this._listEl.addEventListener("transitionend",this._boundFireScrollEvent),n===Rr?this.prev():n===Nr&&this.next())}_fireScrollEvent(){y(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(){y(this._el,"pagechange",{pageNumber:this._currentPage})}}var xr=Object.hasOwnProperty,Mr=Object.setPrototypeOf,Dr=Object.isFrozen,Ur=Object.getPrototypeOf,Br=Object.getOwnPropertyDescriptor,Fr=Object.freeze,qr=Object.seal,Hr=Object.create,jr="undefined"!=typeof Reflect&&Reflect,zr=jr.apply,Gr=jr.construct;zr||(zr=function(e,t,n){return e.apply(t,n)}),Fr||(Fr=function(e){return e}),qr||(qr=function(e){return e}),Gr||(Gr=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 Wr,Kr=no(Array.prototype.forEach),Vr=no(Array.prototype.pop),Yr=no(Array.prototype.push),Jr=no(String.prototype.toLowerCase),Xr=no(String.prototype.match),Qr=no(String.prototype.replace),Zr=no(String.prototype.indexOf),$r=no(String.prototype.trim),eo=no(RegExp.prototype.test),to=(Wr=TypeError,function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return Gr(Wr,t)});function no(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 zr(e,t,i)}}function io(e,t){Mr&&Mr(e,null);for(var n=t.length;n--;){var i=t[n];if("string"==typeof i){var r=Jr(i);r!==i&&(Dr(t)||(t[n]=r),i=r)}e[i]=!0}return e}function ro(e){var t=Hr(null),n=void 0;for(n in e)zr(xr,e,[n])&&(t[n]=e[n]);return t}function oo(e,t){for(;null!==e;){var n=Br(e,t);if(n){if(n.get)return no(n.get);if("function"==typeof n.value)return no(n.value)}e=Ur(e)}return function(e){return console.warn("fallback value for",e),null}}var so=Fr(["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"]),ao=Fr(["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"]),co=Fr(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),lo=Fr(["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"]),uo=Fr(["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"]),ho=Fr(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),po=Fr(["#text"]),fo=Fr(["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"]),mo=Fr(["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"]),go=Fr(["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"]),vo=Fr(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),yo=qr(/\{\{[\s\S]*|[\s\S]*\}\}/gm),bo=qr(/<%[\s\S]*|[\s\S]*%>/gm),Eo=qr(/^data-[\-\w.\u00B7-\uFFFF]/),_o=qr(/^aria-[\-\w]+$/),wo=qr(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),To=qr(/^(?:\w+script|data):/i),So=qr(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),ko="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 Co(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 Io=function(){return"undefined"==typeof window?null:window},Ao=function(e,t){if("object"!==(void 0===e?"undefined":ko(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 Lo=function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Io(),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,g=oo(m,"cloneNode"),v=oo(m,"nextSibling"),y=oo(m,"childNodes"),b=oo(m,"parentNode");if("function"==typeof s){var E=r.createElement("template");E.content&&E.content.ownerDocument&&(r=E.content.ownerDocument)}var _=Ao(f,i),w=_?_.createHTML(""):"",T=r,S=T.implementation,k=T.createNodeIterator,C=T.createDocumentFragment,I=T.getElementsByTagName,A=i.importNode,L={};try{L=ro(r).documentMode?r.documentMode:{}}catch(e){}var O={};n.isSupported="function"==typeof b&&S&&void 0!==S.createHTMLDocument&&9!==L;var R=yo,N=bo,P=Eo,x=_o,M=To,D=So,U=wo,B=null,F=io({},[].concat(Co(so),Co(ao),Co(co),Co(uo),Co(po))),q=null,H=io({},[].concat(Co(fo),Co(mo),Co(go),Co(vo))),j=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,W=!0,K=!0,V=!1,Y=!1,J=!1,X=!1,Q=!1,Z=!1,$=!1,ee=!1,te=!0,ne=!0,ie=!1,re={},oe=null,se=io({},["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=io({},["audio","video","img","source","image","track"]),le=null,ue=io({},["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,ge=void 0,ve=["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":ko(e))||(e={}),e=ro(e),B="ALLOWED_TAGS"in e?io({},e.ALLOWED_TAGS):F,q="ALLOWED_ATTR"in e?io({},e.ALLOWED_ATTR):H,le="ADD_URI_SAFE_ATTR"in e?io(ro(ue),e.ADD_URI_SAFE_ATTR):ue,ae="ADD_DATA_URI_TAGS"in e?io(ro(ce),e.ADD_DATA_URI_TAGS):ce,oe="FORBID_CONTENTS"in e?io({},e.FORBID_CONTENTS):se,z="FORBID_TAGS"in e?io({},e.FORBID_TAGS):{},G="FORBID_ATTR"in e?io({},e.FORBID_ATTR):{},re="USE_PROFILES"in e&&e.USE_PROFILES,W=!1!==e.ALLOW_ARIA_ATTR,K=!1!==e.ALLOW_DATA_ATTR,V=e.ALLOW_UNKNOWN_PROTOCOLS||!1,Y=e.SAFE_FOR_TEMPLATES||!1,J=e.WHOLE_DOCUMENT||!1,Z=e.RETURN_DOM||!1,$=e.RETURN_DOM_FRAGMENT||!1,ee=e.RETURN_TRUSTED_TYPE||!1,Q=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)&&(j.tagNameCheck=e.CUSTOM_ELEMENT_HANDLING.tagNameCheck),e.CUSTOM_ELEMENT_HANDLING&&we(e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(j.attributeNameCheck=e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),e.CUSTOM_ELEMENT_HANDLING&&"boolean"==typeof e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements&&(j.allowCustomizedBuiltInElements=e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),ge=ge=-1===ve.indexOf(e.PARSER_MEDIA_TYPE)?ye:e.PARSER_MEDIA_TYPE,be="application/xhtml+xml"===ge?function(e){return e}:Jr,Y&&(K=!1),$&&(Z=!0),re&&(B=io({},[].concat(Co(po))),q=[],!0===re.html&&(io(B,so),io(q,fo)),!0===re.svg&&(io(B,ao),io(q,mo),io(q,vo)),!0===re.svgFilters&&(io(B,co),io(q,mo),io(q,vo)),!0===re.mathMl&&(io(B,uo),io(q,go),io(q,vo))),e.ADD_TAGS&&(B===F&&(B=ro(B)),io(B,e.ADD_TAGS)),e.ADD_ATTR&&(q===H&&(q=ro(q)),io(q,e.ADD_ATTR)),e.ADD_URI_SAFE_ATTR&&io(le,e.ADD_URI_SAFE_ATTR),e.FORBID_CONTENTS&&(oe===se&&(oe=ro(oe)),io(oe,e.FORBID_CONTENTS)),ne&&(B["#text"]=!0),J&&io(B,["html","head","body"]),B.table&&(io(B,["tbody"]),delete z.tbody),Fr&&Fr(e),Ee=e)},Se=io({},["mi","mo","mn","ms","mtext"]),ke=io({},["foreignobject","desc","title","annotation-xml"]),Ce=io({},ao);io(Ce,co),io(Ce,lo);var Ie=io({},uo);io(Ie,ho);var Ae=function(e){var t=b(e);t&&t.tagName||(t={namespaceURI:pe,tagName:"template"});var n=Jr(e.tagName),i=Jr(t.tagName);if(e.namespaceURI===he)return t.namespaceURI===pe?"svg"===n:t.namespaceURI===de?"svg"===n&&("annotation-xml"===i||Se[i]):Boolean(Ce[n]);if(e.namespaceURI===de)return t.namespaceURI===pe?"math"===n:t.namespaceURI===he?"math"===n&&ke[i]:Boolean(Ie[n]);if(e.namespaceURI===pe){if(t.namespaceURI===he&&!ke[i])return!1;if(t.namespaceURI===de&&!Se[i])return!1;var r=io({},["title","style","font","a","script"]);return!Ie[n]&&(r[n]||!Ce[n])}return!1},Le=function(e){Yr(n.removed,{element:e});try{e.parentNode.removeChild(e)}catch(t){try{e.outerHTML=w}catch(t){e.remove()}}},Oe=function(e,t){try{Yr(n.removed,{attribute:t.getAttributeNode(e),from:t})}catch(e){Yr(n.removed,{attribute:null,from:t})}if(t.removeAttribute(e),"is"===e&&!q[e])if(Z||$)try{Le(t)}catch(e){}else try{t.setAttribute(e,"")}catch(e){}},Re=function(e){var t=void 0,n=void 0;if(Q)e="<remove></remove>"+e;else{var i=Xr(e,/^[\r\n\t ]+/);n=i&&i[0]}"application/xhtml+xml"===ge&&(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,ge)}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?I.call(t,J?"html":"body")[0]:J?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":ko(a))?e instanceof a:e&&"object"===(void 0===e?"undefined":ko(e))&&"number"==typeof e.nodeType&&"string"==typeof e.nodeName},Me=function(e,t,i){O[e]&&Kr(O[e],(function(e){e.call(n,t,i,Ee)}))},De=function(e){var t=void 0;if(Me("beforeSanitizeElements",e,null),Pe(e))return Le(e),!0;if(Xr(e.nodeName,/[\u0080-\uFFFF]/))return Le(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))&&eo(/<[/\w]/g,e.innerHTML)&&eo(/<[/\w]/g,e.textContent))return Le(e),!0;if("select"===i&&eo(/<template/i,e.innerHTML))return Le(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(g(o[s],!0),v(e))}if(!z[i]&&Be(i)){if(j.tagNameCheck instanceof RegExp&&eo(j.tagNameCheck,i))return!1;if(j.tagNameCheck instanceof Function&&j.tagNameCheck(i))return!1}return Le(e),!0}return e instanceof c&&!Ae(e)?(Le(e),!0):"noscript"!==i&&"noembed"!==i||!eo(/<\/no(script|embed)/i,e.innerHTML)?(Y&&3===e.nodeType&&(t=e.textContent,t=Qr(t,R," "),t=Qr(t,N," "),e.textContent!==t&&(Yr(n.removed,{element:e.cloneNode()}),e.textContent=t)),Me("afterSanitizeElements",e,null),!1):(Le(e),!0)},Ue=function(e,t,n){if(te&&("id"===t||"name"===t)&&(n in r||n in _e))return!1;if(K&&!G[t]&&eo(P,t));else if(W&&eo(x,t));else if(!q[t]||G[t]){if(!(Be(e)&&(j.tagNameCheck instanceof RegExp&&eo(j.tagNameCheck,e)||j.tagNameCheck instanceof Function&&j.tagNameCheck(e))&&(j.attributeNameCheck instanceof RegExp&&eo(j.attributeNameCheck,t)||j.attributeNameCheck instanceof Function&&j.attributeNameCheck(t))||"is"===t&&j.allowCustomizedBuiltInElements&&(j.tagNameCheck instanceof RegExp&&eo(j.tagNameCheck,n)||j.tagNameCheck instanceof Function&&j.tagNameCheck(n))))return!1}else if(le[t]);else if(eo(U,Qr(n,D,"")));else if("src"!==t&&"xlink:href"!==t&&"href"!==t||"script"===e||0!==Zr(n,"data:")||!ae[e]){if(V&&!eo(M,Qr(n,D,"")));else if(n)return!1}else;return!0},Be=function(e){return e.indexOf("-")>0},Fe=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:q};for(o=s.length;o--;){var c=t=s[o],l=c.name,u=c.namespaceURI;if(i=$r(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&&(Oe(l,e),a.keepAttr))if(eo(/\/>/i,i))Oe(l,e);else{Y&&(i=Qr(i,R," "),i=Qr(i,N," "));var d=be(e.nodeName);if(Ue(d,r,i))try{u?e.setAttributeNS(u,l,i):e.setAttribute(l,i),Vr(n.removed)}catch(e){}}}Me("afterSanitizeAttributes",e,null)}},qe=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),Fe(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 to("toString is not a function");if("string"!=typeof(e=e.toString()))throw to("dirty is not a string, aborting")}if(!n.isSupported){if("object"===ko(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 to("root node is forbidden and cannot be sanitized in-place")}}else if(e instanceof a)1===(c=(s=Re("\x3c!----\x3e")).ownerDocument.importNode(e,!0)).nodeType&&"BODY"===c.nodeName||"HTML"===c.nodeName?s=c:s.appendChild(c);else{if(!Z&&!Y&&!J&&-1===e.indexOf("<"))return _&&ee?_.createHTML(e):e;if(!(s=Re(e)))return Z?null:ee?w:""}s&&Q&&Le(s.firstChild);for(var p=Ne(ie?e:s);l=p.nextNode();)3===l.nodeType&&l===u||De(l)||(l.content instanceof o&&qe(l.content),Fe(l),u=l);if(u=null,ie)return e;if(Z){if($)for(d=C.call(s.ownerDocument);s.firstChild;)d.appendChild(s.firstChild);else d=s;return q.shadowroot&&(d=A.call(i,d,!0)),d}var f=J?s.outerHTML:s.innerHTML;return Y&&(f=Qr(f,R," "),f=Qr(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&&(O[e]=O[e]||[],Yr(O[e],t))},n.removeHook=function(e){O[e]&&Vr(O[e])},n.removeHooks=function(e){O[e]&&(O[e]=[])},n.removeAllHooks=function(){O={}},n}();const Oo={ADD_TAGS:["#comment","li-icon","icon","iframe"],ADD_ATTR:["target"],FORCE_BODY:!0,RETURN_DOM:!0};function Ro(e,t){let{ADD_TAGS:n=[],ADD_ATTR:i=[]}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const r=J({},Oo);r.ADD_TAGS=[...r.ADD_TAGS,...n],r.ADD_ATTR=[...r.ADD_ATTR,...i];const o=Lo.sanitize(t,r);return e&&e.nodeType===Node.ELEMENT_NODE&&(e.innerHTML="",e.append(...o.childNodes)),o}var No="aria-[a-z0-9_\\-]+|class|data-[a-z0-9_\\-]+|dir|id|role|tabindex",Po=function(){if("undefined"==typeof document)return!0;return"textContent"in document.createElement("div")}()?"textContent":"innerText",xo=["b","del","em","i","s","strong","sub","sup"],Mo=xo.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"]),Do=[No,"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 Uo(){}var Bo,Fo,qo=(Fo=/[&<>"'\u0000\\=]/g,Bo={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","\0":"�","\\":"&#92;","=":"&#61;"},function(e){return null==e?null:e.toString().replace(Fo,(function(e){return Bo[e]}))}),Ho=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[Po],i[a]=c,c)):o||s?t(parseInt(o||s,o?16:10)||65533):"�";var a,c}))}}();var jo=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)};function zo(e){return/[<&]/.test(e)}var Go,Wo=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 Ko(e){e=jo(e)?e:[e];var t,n,i,r=0,o="<(?!/?";return o+="(?:",Wo(e,(function(e,s){t=e.tags||Mo,n=e.attrs||Do,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 Vo(e){return Ko({tags:e=e||Mo,checkUrlAttrs:!0})}function Yo(e,t){var n=(t=t||{}).allowTags,i=!1!==t.hasCustomElementMarkup;return n?!Vo(n).test(e):i?!Yo.R_UNSAFE_CUSTOM_ELEMENT.test(e):!Yo.R_UNSAFE_HTML.test(e)}function Jo(e){return e.replace(/<[^>]*>|[<>'"&\\]/g,"")}function Xo(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 Uo||"number"==typeof o))throw new Error("Only strings, numbers, and jSecure types are allowed as placeholder replacements.");o=r?qo(o):o.toString()}return n[i]=o,o}))}(e,t):e,r=e;return zo(i)&&!Yo(i,n)&&(i=Jo(i),hr("Content contains non-whitelisted tags or attributes:\nContent: "+r,"error")),i}function Qo(e,t){for(var n=+t.length,i=0,r=e.length;i<n;i++)e[r++]=t[i];return e.length=r,e}Yo.R_UNSAFE_HTML=Vo(),Yo.R_UNSAFE_CUSTOM_ELEMENT=Ko([{tags:Mo,checkUrlAttrs:!0},{tags:[(Go={tag:"li-icon",attrs:"active|a11y-text|animate|color|size|type"}).tag],attrs:[No,Go.attrs].join("|"),checkUrlAttrs:!1}]);var Zo={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,"",""]};Zo.optgroup=Zo.option,Zo.tbody=Zo.tfoot=Zo.colgroup=Zo.caption=Zo.thead,Zo.th=Zo.td;var $o=/<([\w:]+)/;function es(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=($o.exec(o)||["",""])[1].toLowerCase(),is(r,(i=Zo[n]||Zo._default)[1]+o+i[2]),a=i[0];a--;)r.lastChild&&r.lastChild.nodeType===Node.ELEMENT_NODE&&(r=r.lastChild);Qo(u,r.childNodes),(r=l.firstChild).textContent=""}else Qo(u,o.nodeType?[o]:o);for(l.textContent="",o=u[s=0];o;)l.appendChild(o),o=u[++s];return l}var ts=Xo,ns=Xo;function is(e,t,n){var i=Xo(t,n);return zo(i)?e.innerHTML=i:e[Po]=i,i}function rs(e,t){if(!(this instanceof rs))return new rs(e,t);(t=t||{}).allowTags=t.allowTags?t.allowTags.reduce((function(e,t){return e.concat(t)}),[]):null,this._string=e,this._options=t}rs.prototype=function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);return e}(new Uo,{toString:function(){var e=this._string,t=this._stringVal,n=e;return void 0!==t?t:(Yo(e,this._options)||(n=e,e=Jo(e),hr("UnsafeString contains non-whitelisted tags or attributes.\nString: "+n,"error")),this._stringVal=e,e)}});var os={ALLOWED_TAGS:Mo,FORMATTING_TAGS:xo,htmlEncode:qo,htmlUnencode:Ho,log:hr,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 rs?r:qo(r))})),ns(o)},parseHTML:function(e,t){var n;if(t=t||document.implementation&&document.implementation.createHTMLDocument?document.implementation.createHTMLDocument(""):document,"string"==typeof e)n=es([e],t);else{if(!jo(e))return e;n=es(e,t)}return Qo([],n.childNodes)},parseSelector:function(e){return"string"==typeof e&&/^(?:\s*(<[\w\W]+>)[^>]*)$/.test(e)?[]:e},processTemplate:ts,reEncode:function(e){return qo(Ho(e))},_redirector:br,redirect:function(e){const t=yr(e);t===e&&br.redirect(t)},sanitizeHTML:ns,sanitizeUrl:yr,setElementContent:is,text:function(e){return hr("jSecure.text() is deprecated. Please use jSecure.htmlEncode().","warn"),qo(e)},unsafe:function(e){return e},UnsafeString:rs};function ss(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 as=Object.freeze({CAUTION:"caution",ERROR:"error",GDPR:"gdpr",NOTIFY:"notify",SUCCESS:"success"});class cs{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(as).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=r(e.target,".toast__dismiss-btn");if(t){const e=r(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===as.CAUTION?c="text-color-text-caution":e===as.ERROR?c="text-color-text-negative":e===as.SUCCESS&&(c="text-color-text-positive"),a.classList.add(c),Ro(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",os.sanitizeUrl(f(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"),ss(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()})}}X(cs,"TOAST_TYPES",as);const ls={};function us(e){const t=document.getElementById(e);if(!t&&void 0!==ls[e])return ls[e];if(!t)return console.warn("Element with id: ".concat(e," not found")),ls[e]=null,ls[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):(ls[e]=n,t.parentNode.removeChild(t),ls[e])}const ds={COPY:"copy",LINKEDIN:"linkedin",TWITTER:"twitter",FACEBOOK:"facebook"};Object.keys(ds).map(e=>ds[e]);const hs=["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(hs,"i");class ps{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:window.tracking,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:window.lazyloader;const{sources:r,posterUrl:o,digitalmediaAssetUrn:s,trackingId:a,captionsUrl:c}=e.dataset,l=JSON.parse(r),u=parseFloat(e.getAttribute("currentTime"));if(!l.length)throw new Error("Please pass video sources in correct Array string format inside data-sources attribute");e.hasAttribute("autoplay")&&(t.autoplay=!0),this._mediaPlayerInstancePromise=this._createPlayer(e,a,s,t,i).then(e=>(o&&e.poster(o),e.src(l),c&&e.addRemoteTextTrack({kind:"captions",label:"English",srclang:"en",mode:"showing",src:c}),u&&e.currentTime(u),this._bindTracking(e,n),e))}_createPlayer(e,t,n,i,r){return r.then(e=>e.getLazyLoadedJavascriptModule("media-player")).then(r=>{const{createPlayer:o}=r,s=i.plugins&&i.plugins.rum&&i.plugins.rum.mediaHeader&&i.plugins.rum.mediaHeader.mediaSource||"ugc",a=J({errorDisplay:!1,controlBar:{fullscreenToggle:!0,backToStartButton:!0,captionsToggle:{selected:!0}},plugins:{posterBackground:!0}},i);return a.plugins.tracking={mediaUrn:n,trackingId:t},a.plugins.rum={mediaUrn:n,trackingId:t,mediaHeader:{mediaSource:s}},o(e,a)})}_bindTracking(e,t){t.then(t=>{const n=this._getMediaPlayerTrackingEventHandler(t);e.tracking().on("track",n),e.rum().on("track",n)})}_getMediaPlayerTrackingEventHandler(e){return function(t,n){let{eventName:i,eventData:r}=n,o=J({header:{},requestHeader:{}},r);delete o.name,delete o.plugin,delete o.instance,o.requestHeader.pageKey||(o.requestHeader.pageKey=T(document)),e.fireTrackingEvent(i,o)}}getPlayerPromise(){return this._mediaPlayerInstancePromise}}new Uint8Array(16);const fs=[];for(let e=0;e<256;++e)fs.push((e+256).toString(16).slice(1));"undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto);"".concat("tooltip__popup","--show");const ms=["endpoint","headers","queryId","variables"];function gs(){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=Q(e,ms);const s=T(document);if(!s)throw new Error("Missing pageKey for graphQL request from browser");return z(t,J({method:"POST",headers:n,postData:JSON.stringify({queryId:i,variables:r,pageKey:s})},o))}class vs{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 gs({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 ys extends vs{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:ys.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})}}X(ys,"query","2849bb08e3a3bbd23c96c0e758c018b7");class bs extends vs{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:bs.query,variables:{url:e},successCallback:t,failureCallback:n})}}X(bs,"query","bece320b5f70fe4357082fe84eca6c56");class Es extends dr{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);T(document);String.fromCharCode(32);function _s(){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 ws(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 Ts(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}_s(),ws(3),Ts(128),_s(),ws(6),Ts(400);var Ss=window||e;function ks(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Cs(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Is,As,Ls,Os,Rs={ADVERTISING:"ADVERTISING",ANALYTICS_AND_RESEARCH:"ANALYTICS_AND_RESEARCH",FUNCTIONAL:"FUNCTIONAL"},Ns="GUEST",Ps="MEMBER",xs=0,Ms=1,Ds=2,Us=(Cs(Is={},Ns,"li_gc"),Cs(Is,Ps,"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 ks(this,e),t=t||{},this.consentAvailable=!1,this.issuedAt=n,this.userMode=i,this.optedInConsentMap={},Rs)t[o]=t[o]||xs,t[o]!==xs&&(this.consentAvailable=!0),this.optedInConsentMap[o]=t[o]===Ms||t[o]===xs&&r===Ms});As=[Rs.ADVERTISING,Rs.ANALYTICS_AND_RESEARCH,Rs.FUNCTIONAL],Ls=[xs,Ms,Ds,xs],Os=new RegExp(["^(\\d+)","(\\d+)","(\\d+)","((?:.|\\s)+)"].join(";")),new RegExp(["^(\\d+)","((?:.|\\s)+)"].join(";"));Ss.utag_data||(Ss.utag_data={});const Bs="undefined"!=typeof window&&window&&"node"!==window.appEnvironment;Ss.utag_cfg_ovrd=Ss.utag_cfg_ovrd||{},Ss.trackingEventDebugData=Ss.trackingEventDebugData||[],Ss.utag_cfg_ovrd.noview=!0,Ss.utag_cfg_ovrd.nocookie=!0;Bs&&new RegExp("bot|google|aolbuild|baidu|bing|msn|duckduckgo|teoma|slurp|yandex|sogou|facebook|alexa","i").test(Ss.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 Fs={GOOGLE_ERROR:"googleError",GOOGLE_USER_FETCHED:"googleUserFetched",INITIALIZED:"initialized",PROMPT_MOMENT:"promptMomentNotification",TOKEN_FETCHED:"tokenFetched"},qs={INITIALIZATION:"initialization",AUTHENTICATION:"authentication"},{GOOGLE_ERROR:Hs,GOOGLE_USER_FETCHED:js,INITIALIZED:zs}=Fs,{INITIALIZATION:Gs,AUTHENTICATION:Ws}=qs;EventTarget;var Ks={exports:{}};function Vs(e){this.message=e}Vs.prototype=new Error,Vs.prototype.name="InvalidCharacterError";var Ys="undefined"!=typeof window&&window.atob&&window.atob.bind(window)||function(e){var t=String(e).replace(/=+$/,"");if(t.length%4==1)throw new Vs("'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 Js=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(Ys(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 Ys(t)}};function Xs(e){this.message=e}Xs.prototype=new Error,Xs.prototype.name="InvalidTokenError",Ks.exports=function(e,t){if("string"!=typeof e)throw new Xs("Invalid token specified");var n=!0===(t=t||{}).header?0:1;try{return JSON.parse(Js(e.split(".")[n]))}catch(e){throw new Xs("Invalid token specified: "+e.message)}},Ks.exports.InvalidTokenError=Xs;const Qs=Fs,Zs=qs,{GOOGLE_USER_FETCHED:$s,GOOGLE_ERROR:ea,INITIALIZED:ta}=Qs,{INITIALIZATION:na}=Zs;const ia={observeComponents:()=>{},unobserveComponents:()=>{},handleDynamicElements:()=>{}};class ra{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 ia;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 oa(e){var t=e.intersectionRect;return t.width>=0&&t.height>=0}function sa(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 aa(e,t){return Math.round(e-t)}var ca,la=(ca=function(e,t){return(ca=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}ca(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),ua=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}(),da=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return la(t,e),t.prototype.removePredicate=function(e,t){return"string"==typeof e?t.id===e:t.callback===e},t}(ua),ha=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return la(t,e),t.prototype.removePredicate=function(e,t){return t===e},t}(ua),pa=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return la(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}(ua),fa=function(){return 0},ma=!("undefined"==typeof window||!window||"undefined"==typeof document||!document),ga=ma&&!!window.requestAnimationFrame,va={hasDOM:ma,hasRAF:ga,getScrollTop:fa,getScrollLeft:fa,getHeight:fa,getWidth:fa,rAF:ga?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:fa,get isDirty(){return va.version!==va.lastVersion},document:window.document,IntersectionObserver:ma&&window.IntersectionObserver,performance:ma&&window.performance};function ya(){++va.version}function ba(){var e=null!=document.scrollingElement;va.getScrollTop=e?function(){return document.scrollingElement.scrollTop}:function(){return window.scrollY},va.getScrollLeft=e?function(){return document.scrollingElement.scrollLeft}:function(){return window.scrollX}}ma&&(va.getHeight=function(){return window.innerHeight},va.getWidth=function(){return window.innerWidth},va.updateMeta=function(){va.meta.height=va.getHeight(),va.meta.width=va.getWidth(),va.meta.scrollLeft=va.getScrollLeft(),va.meta.scrollTop=va.getScrollTop(),va.lastVersion=va.version},va.updateMeta(),"loading"!==document.readyState?ba():document.addEventListener("DOMContentLoaded",ba),window.addEventListener("resize",ya,!1),window.addEventListener("scroll",ya,!1));var Ea=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,va.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}(),_a=null;var wa=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)}}(),Ta="xxxx".replace(/[xy]/g,(function(e){var t=16*Math.random()|0;return("x"===e?t:3&t|8).toString(16)})),Sa=0,ka=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 va.isDirty&&va.updateMeta(),e===window||e===document?(n.height=va.meta.height,n.width=va.meta.width,n.scrollLeft=va.meta.scrollLeft,n.scrollTop=va.meta.scrollTop,n):(t=sa(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 Ca(){return Sa+++Ta}var Ia=function(){function e(e,t){this.isTicking=!1,this.toRemove=[],this.engine=e||(_a||(_a=new Ea)),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(ka.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=sa(e),i=ka.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}(),Aa=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.queue=new da,t}return wa(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=Ca();return this.queue.push({callback:e,id:t}),t},t}(Ia),La=function(e){function t(t){var n=e.call(this,void 0,window)||this;return n.predicate=t,n}return wa(t,e),t.prototype.applyQueue=function(t){this.predicate(t)&&e.prototype.applyQueue.call(this,t)},t}(Aa),Oa=function(e){function t(t,n,i){void 0===i&&(i=!1);var r=e.call(this,t,n)||this;return r.lastVersion=va.version,r.queue=new pa,r.ALLOW_CACHED_SCHEDULER=i,r}return wa(t,e),Object.defineProperty(t.prototype,"isDirty",{get:function(){return va.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=sa(r)),i(e,o,s)}this.lastVersion=va.version},t.prototype.watch=function(e,t,n){this.startTicking(),n=n||Ca();return this.queue.push({el:e,callback:t,id:n,clientRect:null}),n},t}(Ia),Ra=null;var Na=function(){function e(){this.queue=new ha}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}(),Pa=function(){function e(e){this.scheduler=new La(e.bind(this))}return e.prototype.trigger=function(){},e.prototype.listen=function(e){this.state=ka.generate(),this.scheduler.watch(e)},e.prototype.unlisten=function(e){this.scheduler.unwatch(e)},e}(),xa=null;function Ma(e,t){var n=(xa||(xa={scroll:new Pa((function(e){var t=this.state,n=t.scrollTop,i=t.scrollLeft;return this.state=e,n!==e.scrollTop||i!==e.scrollLeft})),resize:new Pa((function(e){var t=this.state,n=t.width,i=t.height;return this.state=e,i!==e.height||n!==e.width})),destroy:new Na,beforeunload:new Na,hide:new Na,show:new Na}))[e];n&&n.listen(t)}function Da(e,t){if(xa){var n=xa[e];n&&n.unlisten(t)}}function Ua(e,t){if(xa){var n=xa[e];n&&n.trigger(t)}}function Ba(e){(Ra||(Ra=new Aa)).scheduleWork(e)}function Fa(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}}va.hasDOM&&(window.addEventListener("beforeunload",(function(){Ua("beforeunload"),Ua("destroy")})),document.addEventListener("visibilitychange",(function(){"visible"===document.visibilityState?Ua("show"):Ua("hide")})));var qa=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 Oa(void 0,this.root,t.ALLOW_CACHED_SCHEDULER)}return e.prototype.observe=function(e){var t=this,n=e,i=n.__spanielId=n.__spanielId||Ca();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:Ha(),intersectionRatio:0,intersectionRect:Ha(),isIntersecting:!1,rootBounds:Ha(),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:oa({intersectionRect:o})}}({unixTime:e.dateNow,highResTime:e.highResTime,rootBounds:c,target:n,boundingClientRect:Fa(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 Ha(){return{bottom:0,height:0,left:0,right:0,top:0,width:0,x:0,y:0}}var ja={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&&!!va.IntersectionObserver;var h=this.usingNativeIo?va.IntersectionObserver:qa;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),va.hasDOM&&(Ma("beforeunload",this.onWindowClosed),Ma("hide",this.onTabHidden),Ma("show",this.onTabShown),c&&(this.paused="visible"!==va.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((va.performance.timeOrigin||va.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:ja,boundingClientRect:o||ja,intersectionRect:ja,visibleTime:r.lastVisible.unixTime,duration:aa(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=aa(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:oa(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=aa(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(),va.hasDOM&&(Da("beforeunload",this.onWindowClosed),Da("hide",this.onTabHidden),Da("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),Ba((function(){t.handleRecordExiting(n),t.flushQueuedEntries()})))},e.prototype.observe=function(e,t){var n=e,i=n.__spanielId=n.__spanielId||Ca();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}}();va.IntersectionObserver&&va.IntersectionObserver;class za{constructor(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};this._impressionTracking=new ra(e,t,J({componentList:this._componentList,onImpression:this._onImpression.bind(this)},n))}get _componentList(){return[...document.querySelectorAll(".main-job-card, .aside-job-card")]}_onImpression(e){let{trackingInstance:t,visibleElements:n}=e;const i=n.filter(e=>{const{entityUrn:t,referenceId:n,trackingId:i}=e.dataset;return Boolean(t&&n&&i)}).map(e=>{const{entityUrn:t,referenceId:n,trackingId:i}=e.dataset;return{jobPostingUrn:t,referenceId:n,trackingId:i}});i.length>0&&function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];if(0===t.length)return;const n=T(document),{header:i,requestHeader:r}=cr(n),{referenceId:o}=t[0],s=t.map((function(){let{jobPostingUrn:e}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return e})),a=t.map((function(){let{jobPostingUrn:e,trackingId:t}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{objectUrn:e,trackingId:t}})),c={header:i,requestHeader:r,referenceId:o,jobPostingUrns:s,impressedJobPostings:a};e.fireTrackingEvent("JobViewportImpressionEvent",c)}(t,i)}handleDynamicElements(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];this._impressionTracking.handleDynamicElements(e)}}const Ga=".".concat("show-more-less","__list"),Wa=".".concat("show-more-less","__more-button"),Ka=".".concat("show-more-less","__less-button"),Va="".concat("show-more-less","__list--hide-after"),Ya="".concat("show-more-less","__button--hide");class Ja{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e=>e.querySelector(M);if(!e)throw Error("An element must be provided to ShowMoreLess");this.el=e,this.listEl=this.el.querySelector(Ga),this._getFocusItemFromListItem=t,this.maxNumToShow=parseInt(this.listEl.getAttribute("data-max-num-to-show")),this.hideClass="".concat(Va,"-").concat(this.maxNumToShow),this.showMoreButton=this.el.querySelector(Wa),this.showLessButton=this.el.querySelector(Ka),this._attachEventListeners(),this.firstHiddenListItem=this.listEl.children[this.maxNumToShow],this.isExpanded=!this.listEl.classList.contains(this.hideClass),new O(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(Ya),this.showMoreButton.classList.remove(Ya)):(this.showLessButton.classList.remove(Ya),this.showMoreButton.classList.add(Ya))}}".".concat("accordion-item__trigger");function Xa(e){return t=>t.type&&t.type.toLowerCase()===e.toLowerCase()}Xa("action"),Xa("openpage"),Xa("openlink");const Qa="See https://go/pem/degradation-tracking-user-guide for instrumentation instructions";var Za;!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"}(Za||(Za={}));const $a=new Set(Object.values(Za));class ec extends Error{constructor(e){super(e),Object.setPrototypeOf(this,ec.prototype)}}function tc(e){return 0===e.length||!e.trim()}function nc(e){if("string"!=typeof e)throw new ec("Keys must be strings. ".concat(Qa,"."));if(tc(e))throw new ec("Keys should not be blank. ".concat(Qa,"."));if(/[^a-z0-9-]/.test(e))throw new ec("'".concat(e,"' can only contain lowercase alphanumeric characters and dashes (-). ").concat(Qa,"."));return e}class ic{constructor(e,t,n){var i,r,o;if(this._shouldEnablePerformanceMeasurement=!1,this._shouldDisableAvailabilityCalculation=!1,this._shouldRecordSession=!1,this._featureKey=nc(e),this._defaultDegradationKey=nc(t),!n)return this._additionalDegradedResponseCodes=[],this._nonDegradedResponseCodes=[],void(this._degradationKeyOverrides=[]);if("object"!=typeof n)throw new ec("DegradationTrackingMetadata options should be an object. ".concat(Qa,"."));const s=n.productName;s&&(this._productName=function(e){if("string"!=typeof e)throw new ec("The product name must be a string. ".concat(Qa,"."));if(tc(e))throw new ec("No product name was specified. Please configure a defaultProductName or specify it per instrumented API "+"call. ".concat(Qa,"."));if(/[^a-zA-Z0-9-_ \\/]/.test(e))throw new ec("Product name '".concat(e,"' can only contain alphanumeric, underscores (_), spaces ( ), dashes (-) and forward slashes (/). ").concat(Qa,"."));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 ec("Please only specify positive integer response codes between 1 and 999 for the ".concat(t," option. ")+"".concat(e," was specified. ").concat(Qa,"."));var n;if(429===e||999===e)throw new ec("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===Za.NonDegradedResponseCodes&&e>=400&&e<500)throw new ec("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(Za.AdditionalDegradedResponseCodes," option")+". Please remove ".concat(e," from the ").concat(Za.NonDegradedResponseCodes," option. ")+"".concat(Qa,"."))};if(void 0!==e&&!Array.isArray(e))throw new ec("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(Za.NonDegradedResponseCodes," option. ")+"".concat(Qa,"."));if(void 0!==t&&!Array.isArray(t))throw new ec("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(Za.AdditionalDegradedResponseCodes," option. ").concat(Qa,"."));null==e||e.forEach(e=>n(e,Za.NonDegradedResponseCodes)),null==t||t.forEach(e=>n(e,Za.AdditionalDegradedResponseCodes));const i=new Set(t),r=new Set(e);if([...i].some(e=>r.has(e)))throw new ec("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(Qa,"."))}(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(!$a.has(e))throw new ec("An unsupported degradation tracking option '".concat(e,"' was provided. Please fix or remove it. ")+"".concat(Qa))})}(n)}static isDegradationTrackingMetadata(e){return null!=e&&Object.getOwnPropertyNames(ic.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 rc={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 g(e,t){var n=document.createElement("script");n.src=e,t&&(n.onload=t),document.head.appendChild(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 v="990339570472-k6nqn1tpmitg8pui82bfaun3jrpmiuhs.apps.googleusercontent.com",y={GOOGLE_ERROR:"googleError",GOOGLE_USER_FETCHED:"googleUserFetched",INITIALIZED:"initialized",PROMPT_MOMENT:"promptMomentNotification",TOKEN_FETCHED:"tokenFetched"},b={INITIALIZATION:"initialization",AUTHENTICATION:"authentication"},E={SIGN_IN:"signin",SIGN_UP:"signup",USE:"use"},_={DISPLAY:"display",SKIPPED:"skipped",DISMISSED:"dismissed"},w={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"}},T={DISMISSED:"DISMISSED",INITIALIZED:"INITIALIZED",SNAPPLE_USER_FETCHED:"SNAPPLE_USER_FETCHED"},S={signin:{GOT:"signin",GSI_BUTTON:"signin_with"},signup:{GOT:"signup",GSI_BUTTON:"signup_with"},use:{GOT:"use",GSI_BUTTON:"continue_with"}},k=y.GOOGLE_ERROR,C=y.GOOGLE_USER_FETCHED,I=y.INITIALIZED,A=b.INITIALIZATION,L=b.AUTHENTICATION,O=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?v: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(){g(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(I);e.dispatchEvent(n)})).catch((function(t){var n={type:A,message:t.error},i=new CustomEvent(k,{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:L,message:t.error},i=new CustomEvent(k,{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)),R=y.GOOGLE_USER_FETCHED,N=y.PROMPT_MOMENT,P=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?v: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(){g(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===E.SIGN_UP?this._getBasicProfile(t):{idToken:t};if(n){n.selectedBy=e.select_by;var i=new CustomEvent(R,{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:w.SKIPPED.ISSUING_FAILED,type:_.SKIPPED},n=new CustomEvent(N,{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(N,{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)),x={exports:{}};function M(e){this.message=e}M.prototype=new Error,M.prototype.name="InvalidCharacterError";var D="undefined"!=typeof window&&window.atob&&window.atob.bind(window)||function(e){var t=String(e).replace(/=+$/,"");if(t.length%4==1)throw new M("'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},U=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(D(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 D(t)}};function B(e){this.message=e}B.prototype=new Error,B.prototype.name="InvalidTokenError",x.exports=function(e,t){if("string"!=typeof e)throw new B("Invalid token specified");var n=!0===(t=t||{}).header?0:1;try{return JSON.parse(U(e.split(".")[n]))}catch(e){throw new B("Invalid token specified: "+e.message)}},x.exports.InvalidTokenError=B;var F=x.exports,q=y.GOOGLE_USER_FETCHED,H=y.PROMPT_MOMENT,j=function(e){s(a,e);var n=f(a);function a(e){var i,r,o,s,c=e.autoSelect,l=void 0!==c&&c,u=e.buttonParentEl,d=e.cancelOnTapOutside,p=void 0===d||d,f=e.clientId,y=void 0===f?v:f,b=e.context,E=void 0===b?"signin":b,_=e.gsiButtonConfig,w=void 0===_?{}:_,T=e.libSrcPath,S=e.hasContentAbove,k=void 0!==S&&S,C=e.promptParentId,I=e.showOneTap,A=void 0===I||I;if(t(this,a),(i=n.call(this)).autoSelect=l,i.buttonParentEl=u,i.cancelOnTapOutside=p,i.clientId=y,i.context=E,i.gsiButtonConfig=w,i.isLibraryLoaded=((s=new Promise((function(e,t){r=e,o=t}))).resolve=r,s.reject=o,s),i.libSrcPath=T,i.hasContentAbove=k,i.promptParentId=C,i.showOneTap=A,window.google&&window.google.accounts&&window.google.accounts.id)i._onGoogleApiLoad();else{if(!T)throw TypeError("GSI lib is not already loaded on the page. libSrcPath is required to load the library");m((function(){g(T,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:S[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||S[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(q,{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)),z=T.DISMISSED,G=T.INITIALIZED,W=T.SNAPPLE_USER_FETCHED,K=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(){g(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(G);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(W,{detail:t});e.dispatchEvent(n)})).catch((function(t){var n=new CustomEvent(z,{detail:{type:z,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)),V={CLIENT_ID:v,EVENTS:y,GOOGLE_ACCOUNT_URL:"https://accounts.google.com",GSI_ERROR_TYPES:b,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:E,GOT_PROMPT_MOMENT_REASONS:w,GOT_PROMPT_MOMENT_TYPES:_};e.GoogleGsi=j,e.GoogleOneTap=P,e.GoogleSignIn=O,e.GoogleSignInConstants=V,e.SnappleAuth=K,e.SnappleEvents=T,Object.defineProperty(e,"__esModule",{value:!0})})(rc.exports);const{EVENTS:oc,GOT_CONTEXTS:sc,GOT_PROMPT_MOMENT_REASONS:ac,GOT_PROMPT_MOMENT_TYPES:cc}=rc.exports.GoogleSignInConstants,{GOOGLE_USER_FETCHED:lc,PROMPT_MOMENT:uc}=oc,{SIGN_IN:dc}=sc;ac.NOT_DISPLAYED.BROWSER_NOT_SUPPORTED,ac.NOT_DISPLAYED.OPT_OUT_OR_NO_SESSION,ac.NOT_DISPLAYED.SUPPRESSED_BY_USER,ac.SKIPPED.AUTO_CANCEL,ac.SKIPPED.TAP_OUTSIDE,ac.SKIPPED.USER_CANCEL,Object.freeze({ONE_TAP:"one_tap",ONE_TAP_AUTO_LOGIN:"one-tap-auto-login",BUTTON:"button"});".".concat("filter-values-container__filter-value"," input"),".".concat("filter-values-container__filter-value"," input[type=radio]:checked");class hc{constructor(e,t){if(!e)throw new Error("Linkster el required");this._el=e,this._trackingInstance=t,this._entityId=e.dataset.entityId,this._moduleName=e.dataset.moduleName,this._crossLinks=this._getCrossLinks(),this._crossLinks.length&&this.fireLinksterImpressionEvent(this._crossLinks)}_getCrossLinks(){return[...this._el.querySelectorAll('[data-js-module-id="link-column-link"]')].map(e=>({url:_(e.getAttribute("href"))}))}fireLinksterImpressionEvent(e){this._trackingInstance.fireLinksterImpressionEvent&&this._trackingInstance.fireLinksterImpressionEvent(this._moduleName,this._entityId,e)}}class pc{constructor(e,t){if(!e)throw new Error("ExpandableLinkster el required");this._showMoreLessEl=e.querySelector(".show-more-less"),new Ja(this._showMoreLessEl),this._linksterForTrackingEl=e.querySelector('[data-js-module-id="linkster"][data-entity-id][data-module-name]'),this._linksterForTrackingEl&&t&&new hc(this._linksterForTrackingEl,t)}}class fc{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 Es(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 mc(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=J(J({},a),{},{trackedResponseCodes:r}):o&&(a=J(J({},a),{},{untrackedResponseCodes:o})),new ic(s,i,a)}(t,i,e))}class gc extends vs{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:gc.query,variables:{digitalMediaRegisterUploadResponseDataFetcherInput:{imageUrl:e.imageUrl,owner:e.owner,uploadMechanisms:["SYNCHRONOUS_UPLOAD","SINGLE_REQUEST_UPLOAD"],uploadRecipes:[e.recipe]}},successCallback:t,failureCallback:n})}}X(gc,"query","20f8e9934e7df62932fd167d87c19b27");var vc=function(){this.__data__=[],this.size=0};var yc=function(e,t){return e===t||e!=e&&t!=t},bc=yc;var Ec=function(e,t){for(var n=e.length;n--;)if(bc(e[n][0],t))return n;return-1},_c=Ec,wc=Array.prototype.splice;var Tc=Ec;var Sc=Ec;var kc=Ec;var Cc=vc,Ic=function(e){var t=this.__data__,n=_c(t,e);return!(n<0)&&(n==t.length-1?t.pop():wc.call(t,n,1),--this.size,!0)},Ac=function(e){var t=this.__data__,n=Tc(t,e);return n<0?void 0:t[n][1]},Lc=function(e){return Sc(this.__data__,e)>-1},Oc=function(e,t){var n=this.__data__,i=kc(n,e);return i<0?(++this.size,n.push([e,t])):n[i][1]=t,this};function Rc(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])}}Rc.prototype.clear=Cc,Rc.prototype.delete=Ic,Rc.prototype.get=Ac,Rc.prototype.has=Lc,Rc.prototype.set=Oc;var Nc=Rc,Pc=Nc;var xc=function(){this.__data__=new Pc,this.size=0};var Mc=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n};var Dc=function(e){return this.__data__.get(e)};var Uc=function(e){return this.__data__.has(e)},Bc="object"==typeof W&&W&&W.Object===Object&&W,Fc=Bc,qc="object"==typeof self&&self&&self.Object===Object&&self,Hc=Fc||qc||Function("return this")(),jc=Hc.Symbol,zc=jc,Gc=Object.prototype,Wc=Gc.hasOwnProperty,Kc=Gc.toString,Vc=zc?zc.toStringTag:void 0;var Yc=function(e){var t=Wc.call(e,Vc),n=e[Vc];try{e[Vc]=void 0;var i=!0}catch(e){}var r=Kc.call(e);return i&&(t?e[Vc]=n:delete e[Vc]),r},Jc=Object.prototype.toString;var Xc=Yc,Qc=function(e){return Jc.call(e)},Zc=jc?jc.toStringTag:void 0;var $c=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":Zc&&Zc in Object(e)?Xc(e):Qc(e)};var el=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)},tl=$c,nl=el;var il,rl=function(e){if(!nl(e))return!1;var t=tl(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t},ol=Hc["__core-js_shared__"],sl=(il=/[^.]+$/.exec(ol&&ol.keys&&ol.keys.IE_PROTO||""))?"Symbol(src)_1."+il:"";var al=function(e){return!!sl&&sl in e},cl=Function.prototype.toString;var ll=rl,ul=al,dl=el,hl=function(e){if(null!=e){try{return cl.call(e)}catch(e){}try{return e+""}catch(e){}}return""},pl=/^\[object .+?Constructor\]$/,fl=Function.prototype,ml=Object.prototype,gl=fl.toString,vl=ml.hasOwnProperty,yl=RegExp("^"+gl.call(vl).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");var bl=function(e){return!(!dl(e)||ul(e))&&(ll(e)?yl:pl).test(hl(e))},El=function(e,t){return null==e?void 0:e[t]};var _l=function(e,t){var n=El(e,t);return bl(n)?n:void 0},wl=_l(Hc,"Map"),Tl=_l(Object,"create"),Sl=Tl;var kl=function(){this.__data__=Sl?Sl(null):{},this.size=0};var Cl=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},Il=Tl,Al=Object.prototype.hasOwnProperty;var Ll=function(e){var t=this.__data__;if(Il){var n=t[e];return"__lodash_hash_undefined__"===n?void 0:n}return Al.call(t,e)?t[e]:void 0},Ol=Tl,Rl=Object.prototype.hasOwnProperty;var Nl=Tl;var Pl=kl,xl=Cl,Ml=Ll,Dl=function(e){var t=this.__data__;return Ol?void 0!==t[e]:Rl.call(t,e)},Ul=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=Nl&&void 0===t?"__lodash_hash_undefined__":t,this};function Bl(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])}}Bl.prototype.clear=Pl,Bl.prototype.delete=xl,Bl.prototype.get=Ml,Bl.prototype.has=Dl,Bl.prototype.set=Ul;var Fl=Bl,ql=Nc,Hl=wl;var jl=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e};var zl=function(e,t){var n=e.__data__;return jl(t)?n["string"==typeof t?"string":"hash"]:n.map},Gl=zl;var Wl=zl;var Kl=zl;var Vl=zl;var Yl=function(){this.size=0,this.__data__={hash:new Fl,map:new(Hl||ql),string:new Fl}},Jl=function(e){var t=Gl(this,e).delete(e);return this.size-=t?1:0,t},Xl=function(e){return Wl(this,e).get(e)},Ql=function(e){return Kl(this,e).has(e)},Zl=function(e,t){var n=Vl(this,e),i=n.size;return n.set(e,t),this.size+=n.size==i?0:1,this};function $l(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])}}$l.prototype.clear=Yl,$l.prototype.delete=Jl,$l.prototype.get=Xl,$l.prototype.has=Ql,$l.prototype.set=Zl;var eu=Nc,tu=wl,nu=$l;var iu=Nc,ru=xc,ou=Mc,su=Dc,au=Uc,cu=function(e,t){var n=this.__data__;if(n instanceof eu){var i=n.__data__;if(!tu||i.length<199)return i.push([e,t]),this.size=++n.size,this;n=this.__data__=new nu(i)}return n.set(e,t),this.size=n.size,this};function lu(e){var t=this.__data__=new iu(e);this.size=t.size}lu.prototype.clear=ru,lu.prototype.delete=ou,lu.prototype.get=su,lu.prototype.has=au,lu.prototype.set=cu;var uu=lu,du=_l,hu=function(){try{var e=du(Object,"defineProperty");return e({},"",{}),e}catch(e){}}(),pu=hu;var fu=function(e,t,n){"__proto__"==t&&pu?pu(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n},mu=fu,gu=yc;var vu=function(e,t,n){(void 0!==n&&!gu(e[t],n)||void 0===n&&!(t in e))&&mu(e,t,n)};var yu=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}}(),bu={exports:{}};!function(e,t){var n=Hc,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}}(bu,bu.exports);var Eu=Hc.Uint8Array;var _u=function(e){var t=new e.constructor(e.byteLength);return new Eu(t).set(new Eu(e)),t};var wu=function(e,t){var n=t?_u(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)};var Tu=function(e,t){var n=-1,i=e.length;for(t||(t=Array(i));++n<i;)t[n]=e[n];return t},Su=el,ku=Object.create,Cu=function(){function e(){}return function(t){if(!Su(t))return{};if(ku)return ku(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();var Iu=function(e,t){return function(n){return e(t(n))}}(Object.getPrototypeOf,Object),Au=Object.prototype;var Lu=function(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||Au)},Ou=Cu,Ru=Iu,Nu=Lu;var Pu=function(e){return"function"!=typeof e.constructor||Nu(e)?{}:Ou(Ru(e))};var xu=function(e){return null!=e&&"object"==typeof e},Mu=$c,Du=xu;var Uu=function(e){return Du(e)&&"[object Arguments]"==Mu(e)},Bu=xu,Fu=Object.prototype,qu=Fu.hasOwnProperty,Hu=Fu.propertyIsEnumerable,ju=Uu(function(){return arguments}())?Uu:function(e){return Bu(e)&&qu.call(e,"callee")&&!Hu.call(e,"callee")},zu=Array.isArray;var Gu=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991},Wu=rl,Ku=Gu;var Vu=function(e){return null!=e&&Ku(e.length)&&!Wu(e)},Yu=Vu,Ju=xu;var Xu=function(e){return Ju(e)&&Yu(e)},Qu={exports:{}};var Zu=function(){return!1};!function(e,t){var n=Hc,i=Zu,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}(Qu,Qu.exports);var $u=$c,ed=Iu,td=xu,nd=Function.prototype,id=Object.prototype,rd=nd.toString,od=id.hasOwnProperty,sd=rd.call(Object);var ad=function(e){if(!td(e)||"[object Object]"!=$u(e))return!1;var t=ed(e);if(null===t)return!0;var n=od.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&rd.call(n)==sd},cd=$c,ld=Gu,ud=xu,dd={};dd["[object Float32Array]"]=dd["[object Float64Array]"]=dd["[object Int8Array]"]=dd["[object Int16Array]"]=dd["[object Int32Array]"]=dd["[object Uint8Array]"]=dd["[object Uint8ClampedArray]"]=dd["[object Uint16Array]"]=dd["[object Uint32Array]"]=!0,dd["[object Arguments]"]=dd["[object Array]"]=dd["[object ArrayBuffer]"]=dd["[object Boolean]"]=dd["[object DataView]"]=dd["[object Date]"]=dd["[object Error]"]=dd["[object Function]"]=dd["[object Map]"]=dd["[object Number]"]=dd["[object Object]"]=dd["[object RegExp]"]=dd["[object Set]"]=dd["[object String]"]=dd["[object WeakMap]"]=!1;var hd=function(e){return ud(e)&&ld(e.length)&&!!dd[cd(e)]};var pd=function(e){return function(t){return e(t)}},fd={exports:{}};!function(e,t){var n=Bc,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}(fd,fd.exports);var md=hd,gd=pd,vd=fd.exports,yd=vd&&vd.isTypedArray,bd=yd?gd(yd):md;var Ed=function(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]},_d=fu,wd=yc,Td=Object.prototype.hasOwnProperty;var Sd=function(e,t,n){var i=e[t];Td.call(e,t)&&wd(i,n)&&(void 0!==n||t in e)||_d(e,t,n)},kd=fu;var Cd=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?kd(n,a,c):Sd(n,a,c)}return n};var Id=/^(?:0|[1-9]\d*)$/;var Ad=function(e,t){var n=typeof e;return!!(t=null==t?9007199254740991:t)&&("number"==n||"symbol"!=n&&Id.test(e))&&e>-1&&e%1==0&&e<t},Ld=function(e,t){for(var n=-1,i=Array(e);++n<e;)i[n]=t(n);return i},Od=ju,Rd=zu,Nd=Qu.exports,Pd=Ad,xd=bd,Md=Object.prototype.hasOwnProperty;var Dd=function(e,t){var n=Rd(e),i=!n&&Od(e),r=!n&&!i&&Nd(e),o=!n&&!i&&!r&&xd(e),s=n||i||r||o,a=s?Ld(e.length,String):[],c=a.length;for(var l in e)!t&&!Md.call(e,l)||s&&("length"==l||r&&("offset"==l||"parent"==l)||o&&("buffer"==l||"byteLength"==l||"byteOffset"==l)||Pd(l,c))||a.push(l);return a};var Ud=el,Bd=Lu,Fd=function(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t},qd=Object.prototype.hasOwnProperty;var Hd=Dd,jd=function(e){if(!Ud(e))return Fd(e);var t=Bd(e),n=[];for(var i in e)("constructor"!=i||!t&&qd.call(e,i))&&n.push(i);return n},zd=Vu;var Gd=function(e){return zd(e)?Hd(e,!0):jd(e)},Wd=Cd,Kd=Gd;var Vd=vu,Yd=bu.exports,Jd=wu,Xd=Tu,Qd=Pu,Zd=ju,$d=zu,eh=Xu,th=Qu.exports,nh=rl,ih=el,rh=ad,oh=bd,sh=Ed,ah=function(e){return Wd(e,Kd(e))};var ch=uu,lh=vu,uh=yu,dh=function(e,t,n,i,r,o,s){var a=sh(e,n),c=sh(t,n),l=s.get(c);if(l)Vd(e,n,l);else{var u=o?o(a,c,n+"",e,t,s):void 0,d=void 0===u;if(d){var h=$d(c),p=!h&&th(c),f=!h&&!p&&oh(c);u=c,h||p||f?$d(a)?u=a:eh(a)?u=Xd(a):p?(d=!1,u=Yd(c,!0)):f?(d=!1,u=Jd(c,!0)):u=[]:rh(c)||Zd(c)?(u=a,Zd(a)?u=ah(a):ih(a)&&!nh(a)||(u=Qd(c))):d=!1}d&&(s.set(c,u),r(u,c,i,o,s),s.delete(c)),Vd(e,n,u)}},hh=el,ph=Gd,fh=Ed;var mh=function e(t,n,i,r,o){t!==n&&uh(n,(function(s,a){if(o||(o=new ch),hh(s))dh(t,n,a,i,e,r,o);else{var c=r?r(fh(t,a),s,a+"",t,n,o):void 0;void 0===c&&(c=s),lh(t,a,c)}}),ph)};var gh=function(e){return e};var vh=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)},yh=Math.max;var bh=function(e,t,n){return t=yh(void 0===t?e.length-1:t,0),function(){for(var i=arguments,r=-1,o=yh(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),vh(e,this,a)}};var Eh=function(e){return function(){return e}},_h=hu,wh=_h?function(e,t){return _h(e,"toString",{configurable:!0,enumerable:!1,value:Eh(t),writable:!0})}:gh,Th=Date.now;var Sh=function(e){var t=0,n=0;return function(){var i=Th(),r=16-(i-n);if(n=i,r>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}(wh),kh=gh,Ch=bh,Ih=Sh;var Ah=yc,Lh=Vu,Oh=Ad,Rh=el;var Nh=function(e,t){return Ih(Ch(e,t,kh),e+"")},Ph=function(e,t,n){if(!Rh(n))return!1;var i=typeof t;return!!("number"==i?Lh(n)&&Oh(t,n.length):"string"==i&&t in n)&&Ah(n[t],e)};var xh=mh;Mh=function(e,t,n){xh(e,t,n)},Nh((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=Mh.length>3&&"function"==typeof r?(i--,r):void 0,o&&Ph(t[0],t[1],o)&&(r=i<3?void 0:r,i=1),e=Object(e);++n<i;){var s=t[n];s&&Mh(e,s,n,r)}return e}));var Mh;function Dh(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 Uh(e,t,n){const i=Dh(e),r=Dh(t),o=Dh(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 Bh="data-draggable-initialized",Fh="touchstart",qh="touchmove",Hh="touchend";class jh{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;jh.isDraggable(this.draggableElementEl)||this.draggableElementEl.addEventListener(Fh,t),this.draggableElementEl.setAttribute(Bh,!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=Uh(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(qh,t),document.addEventListener(Hh,(function e(){document.removeEventListener(qh,t),document.removeEventListener(Hh,e)}))}moveTo(e,t){const n=Uh(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)}}jh.isDraggable=function(e){return!!e.getAttribute(Bh)};const zh="data-zoomable-initialized",Gh="touchstart",Wh="touchmove",Kh="touchend";class Vh{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;Vh.isZoomable(this.zoomableElement)||(this.zoomableElement.addEventListener(Gh,t),this.zoomableElement.setAttribute(zh,!0))}scaleElement(e,t){if(1===e)return;this.limits=Uh(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(Wh,t),document.addEventListener(Kh,(function e(){document.removeEventListener(Wh,t),document.removeEventListener(Kh,e)}))}}let Yh;Vh.isZoomable=function(e){return!!e.getAttribute(zh)};a.getInstance().addUnloadCallback(()=>{Yh&&Yh.close(),wr(document.querySelector("#discard-post-modal")),wr(document.querySelector("#visibility-settings-modal")),wr(document.querySelector("#max-images-prompt-modal")),wr(document.querySelector("#retry-upload-modal"))});class Jh{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{Jh.instance||(Jh.instance=new Jh(localStorage)),Jh.instance}catch(e){}})(),function(){try{Jh.sessionInstance||(Jh.sessionInstance=new Jh(sessionStorage)),Jh.sessionInstance}catch(e){}}();let Xh;function Qh(){return Xh||(Xh=new cs),Xh}class Zh extends vs{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:Zh.query,variables:{successRedirectUrl:e},successCallback:t,failureCallback:n})}}X(Zh,"query","5f93d1d6b933cfbfdf7b0a80dedfb3f4");class $h extends vs{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:$h.query,successCallback:e,failureCallback:t})}}X($h,"query","da4a9ce2de842c1abe01ca37ea9271ee");function ep(e){const t=e.target.value;e.target.classList.toggle("selected",t),e.target.focus()}function tp(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",ep),i.value&&i.classList.add("selected"))}else{document.querySelectorAll(".dropdown-container").forEach(tp)}}function np(e){const t=e.currentTarget.parentElement.querySelector("input");t.value="",t.classList.remove("selected"),t.focus(),y(t,"input:cleared"),y(t,"change")}function ip(e){const t=e.currentTarget.parentElement,n=t.dataset.placeholder,i=t.querySelector("input");n&&i.setAttribute("placeholder",n),i.removeEventListener("focus",ip)}function rp(e){const t=e.target.value;e.target.classList.toggle("selected",t)}function op(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",rp),i.addEventListener("focus",ip),r&&r.addEventListener("click",np)}else{document.querySelectorAll(".input-container").forEach(op)}}const sp="MinLength",ap="MaxLength",cp="Regex",lp="Required",up="RegexAllow",dp="RegexAllowEmail",hp={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"}},pp="EMAIL_ADDRESS",fp="PHONE_NUMBER",mp="OTHER",gp="consentUnchecked",vp={INPUT:"INPUT",SELECT:"SELECT"},yp="text",bp="checkbox";function Ep(e){return Object.keys(vp).includes(e.tagName)}function _p(e){const t=function(e){const t=[],{minLength:n,maxLength:i,inputType:r}=e.dataset;let o;switch(r){case mp:n&&t.push({type:sp,MinLength:n}),i&&t.push({type:ap,MaxLength:i});break;case pp:t.push({type:up,RegexAllow:[hp.EMAIL]});break;case fp:o=e.value.replace(/ /g,""),t.push({type:up,RegexAllow:[hp.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 lp:if(0===n.length)return lp;break;case sp:if(n.length<e[sp])return sp;break;case ap:if(n.length>e[ap])return ap;break;case cp:for(let t=0;t<e[cp].length;t++)if(e[cp][t].pattern.test(n))return cp+e[cp][t].errorCode;break;case up:for(let t=0;t<e[up].length;t++)if(!e[up][t].pattern.test(n))return up+e[up][t].errorCode}})(e,n)).filter(e=>!!e)}function wp(e,t){return t&&!e?gp:null}const Tp=(e,t)=>parseInt(t.split(e)[1]),Sp=(e,t)=>t.split(e)[1];function kp(e,t){return document.querySelector("#".concat(e.id,"-strings")).dataset["str".concat(t)]}const Cp=(e,t)=>({questionId:e,textQuestionAnswer:{answer:t}}),Ip=(e,t)=>({questionId:e,multipleChoiceAnswer:{options:[{index:t}]}}),Ap=(e,t)=>({question:e,answerDetails:{options:[t]}});function Lp(e){const t=e.id+"_",n=t+"q",i=t+"c",r=us("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:us("memberUrn")};return Array.from(e).filter(Ep).forEach(e=>{let t;if(e.tagName===vp.SELECT)t=((e,t,n)=>{const i=n?Sp(e,t.id):Tp(e,t.id),r=t.selectedIndex;return{response:n?Ap(i,r):Ip(i,r)}})(n,e,r),r?f.formResponse.answers.push(t.response):p.formResponse.answers.push(t.response);else if(e.type===yp)if(t=((e,t,n)=>{const i=n?Sp(e,t.id):Tp(e,t.id),r=_p(t);return 0!==r.length?{errors:r}:{response:n?(o=i,s=t.value,{question:o,answerDetails:{answer:s}}):Cp(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===bp&&(t=((e,t,n,i,r)=>{const o=Tp(e,t),s=wp(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)})}function Op(e){const t=this.formEl.querySelector('input[data-input-type="EMAIL_ADDRESS"]');let n=(null==t?void 0:t.value)||"";return function(i){this._isError(i.currentTarget)||n===i.currentTarget.value||(n=i.currentTarget.value,z("".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,dp)}))}.bind(this)}class Rp{constructor(e){let{isLivePreview:t=!1,triggerByOutletEl:n=!0,customEmailValidationFn:i,customEmailValidationPath:r}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!e)throw new Error("containerEl is not present");op(),tp(),Or("form-modal-description__content-truncated",".form-modal-description__btn-truncation",e),this.containerEl=e,this.formEl=e.querySelector("form");const o=e.querySelector(".lead-gen-modal");if(this.modal=new Es(o,{triggerByOutletEl:n,shouldMoveToTopContainer:!1}),!i&&!r)throw new Error("customEmailValidationFn or customEmailValidationPath is not present");this.customEmailValidationFn=i||Op.bind(this)(r),t?this.showForm():this._bindEvents()}showForm(){this.modal.open()}hideForm(){this.modal.close()}_clearFormErrors(){Array.from(this.formEl).filter(Ep).map(e=>this._hideError(e))}_submitForm(){this._clearFormErrors(),Lp(this.formEl).then(e=>{y(this.containerEl,this.constructor.LEAD_GEN_SUBMIT_EVENT,e),this.hideForm()}).catch(e=>{e.forEach(e=>this._setAndShowError(e.element,e.errorType));const t=e[0];if(t){t.element.focus();F(kp(t.element,t.errorType),B.ASSERTIVE)}})}_hideError(e){if(e){const t=e.closest(".lead-gen-input-container"),n=t.querySelector(".error-text");wr(n),t.classList.remove("input-error"),e.removeAttribute("aria-invalid"),n.removeAttribute("role")}}_isError(e){var t;return null==e||null===(t=e.closest(".lead-gen-input-container"))||void 0===t?void 0:t.classList.contains("input-error")}_setAndShowError(e,t){if(e){const n=kp(e,t),i=e.closest(".lead-gen-input-container"),r=i.querySelector(".error-text");r.innerText=n,Tr(r),i.classList.add("input-error"),r.setAttribute("role","alert"),e.setAttribute("aria-invalid","true")}}_handleInputError(e){let t;if(this._hideError(e),e.type===bp)t=wp(e.checked,e.required);else if(e.type===yp){const n=_p(e);n&&n.length&&(t=n[0])}t&&this._setAndShowError(e,t)}_bindEvents(){const e=this.formEl.querySelector(".submit-btn"),t=this.formEl.querySelector('input[data-input-type="EMAIL_ADDRESS"]');this.formEl.addEventListener("click",e=>{e.target.classList.contains("checkbox-input")&&this._handleInputError(e.target)}),this.formEl.addEventListener("input:cleared",e=>{this._handleInputError(e.target)}),this.formEl.addEventListener("keyup",e=>{e.target.classList.contains("inputbox-input")&&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()})}}X(Rp,"LEAD_GEN_SUBMIT_EVENT","FormModal:LeadGen:submit");class Np{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 gs({endpoint:this.endpoint,queryId:Np.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)}}X(Np,"query","cbed571fffd8cea15209aed8d44e6759");const Pp=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(Pp));const xp="CREATE",Mp="UPDATE";class Dp{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:Dp.query,variables:{entityUrn:t,action:n},pemDegradationTrackingMetadata:this.pemDegradationTrackingMetadata,isPemEnabled:this.isPemEnabled};return n!==xp&&n!==Mp||(o.variables.reactionType=e),gs(o).then(e=>{const{responseText:t}=e;i(JSON.parse(t).graphQL)}).catch(r)}}X(Dp,"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 Up extends vs{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:Up.query,variables:{eventType:t,trackingToken:n,widgetActionCategory:i},successCallback:r,failureCallback:o})}}X(Up,"query","48f4c814e38d5689b7c83a29c9676972");Object.freeze({EVENT_FALLBACK_UI_SHOWN:"fallback-ui-shown"});const Bp=document.querySelector("#share-modal .textarea"),Fp=document.querySelector(".image-preview-wrapper"),qp=document.querySelector("#share-modal .modal-content .reshare-section"),Hp=document.querySelector(".post-button"),jp=document.querySelector("#comments-enabled"),zp=document.querySelector("#share-with-public"),Gp=document.querySelector(".post-settings-wrapper"),Wp=document.querySelector('input[name="share-with"]:checked'),Kp=document.querySelector("#share-modal .close-button"),Vp=document.querySelector("#visibility-settings-modal"),Yp=document.querySelector("#visibility-header-back .close-button"),Jp=document.querySelector("#visibility-settings-modal .settings-list-wrapper"),Xp=document.querySelector("#discard-post-modal-wrapper"),Qp=document.querySelector("#share-modal"),Zp=document.querySelector(".modal-spinner"),$p=document.querySelector("#share-modal .textarea"),ef=document.querySelector("#share-with-groups");document.querySelector("#share-group-urn");const tf=document.querySelector("#share-with-network");class nf extends Es{updatePostButtonStatus(){var e;const t=null===(e=Bp.innerText)||void 0===e?void 0:e.trim().length,n="loaded"===Fp.getAttribute("data-image-load-state"),i=qp.children.length;t||n||i?Ir(Hp):Cr(Hp)}clearModalContentBase(){qp&&(qp.textContent=""),Bp&&(Bp.textContent=""),jp&&(jp.checked=!0),zp&&(zp.checked=!0,Gp.setAttribute("data-post-visibility",Wp.value))}historyBackClickHandler(){"share-modal"!==window.history.state&&"typeahead"!==window.history.state&&(window.history.pushState("share-modal","show-share-modal","#share-modal"),Kp.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"))})}Vp.addEventListener("close",()=>{Gp.setAttribute("data-post-visibility",document.querySelector('input[name="share-with"]:checked').value)}),Yp.addEventListener("click",()=>window.history.back()),Jp.addEventListener("click",t=>e(t)),Jp.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}),Ar()&&"discard-post-modal"===window.history.state&&setTimeout(()=>{window.history.back()},100)}postSettingsClickHandler(){window.tracking.then(e=>{e.fireControlInteractionEvent("post-settings")}),this.visibilitySettingsModal.open()}}class rf extends nf{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=us("ugcPostUrn"),this.openShareModalByLink=this._checkIfOpenShareModalByLink(),this.bindPublishingShareEvents(),this.visibilitySettingsModal=new Es(Vp,{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=g(this.updatePostButtonStatus,300);$p.addEventListener("input",e)}bindShareModalEvents(){const e=new fc(Xp,this.discardPostConfirmationModalPrimaryActionCallback.bind(this,{enableHistoryBack:!this.openShareModalByLink}),()=>{},{enablePageViewTracking:!0,pageKey:"article_discard_confirmation",triggerByOutletEl:!1});Qp.addEventListener("open",()=>{Bp.focus()}),Qp.addEventListener("close",()=>{this.clearModalContentBase(),wr(Zp)}),Hp.addEventListener("click",()=>{this.processPostData()}),Kp.addEventListener("click",()=>{Hp.disabled?this.close():e.modal.open()}),Gp.addEventListener("click",this.postSettingsClickHandler.bind(this)),Gp.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(),Lr()&&window.scrollTo(0,0),n&&($p.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=$p.textContent,this.shareData.visibility="PUBLIC",ef&&(this.shareData.visibility="CONTAINER",this.shareData.containerEntity=ef.value),tf.checked&&(this.shareData.visibility="CONNECTIONS")}processPostData(){Tr(Zp),this.composePostData(),gs({endpoint:this.endpoint,queryId:rf.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=>{ar(e,"ajax","post_success_page_key")}),Qh().trigger("success",us("postSuccessMessage"),"post-success-toast-dismiss",{url:"/feed/update/"+i,trk:"share-post-success",text:us("postSuccessViewPost"),target:"_self"}),this.close()}).catch(()=>{window.tracking.then(e=>{ar(e,"ajax","post_failure_page_key")}),Qh().trigger("error",us("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())}}X(rf,"query","971e319c05beaf333e94125db8c4f942");const of={"send-connection-invite":[{degradationKey:"failed-to-invite"}],follow:[{degradationKey:"failed-to-follow"}],unfollow:[{degradationKey:"failed-to-unfollow"}]};mc({featureName:"send-connection-invite",productName:"Lite-feed",featureMappingToDegradationConfig:of}),mc({featureName:"follow",productName:"Lite-feed",featureMappingToDegradationConfig:of}),mc({featureName:"unfollow",productName:"Lite-feed",featureMappingToDegradationConfig:of});class sf extends vs{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:sf.query,variables:{inviteeVanityName:e},successCallback:t,failureCallback:n})}}X(sf,"query","71a5ef30bcb1e84ab5a2b77850d4bb1e");class af extends vs{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:af.query,variables:{skills:e},successCallback:t,failureCallback:n})}}X(af,"query","a628cd3be2c138c07fc69c2413b23fb6");class cf extends vs{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:cf.query,variables:{skills:e},successCallback:t,failureCallback:n})}}X(cf,"query","a0ff03a6b1cbe44862cb2054f0612078");class lf extends vs{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:lf.query,variables:{alertChannel:e.alertChannel||"EMAIL",alertFrequency:e.alertFrequency||"DAILY",creationChannel:e.creationChannel||"ONBOARD",searchParams:e.searchParams},successCallback:t,failureCallback:n})}}X(lf,"query","ad184ece0303620a9753eca249efd99f");class uf extends vs{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:uf.query,variables:{updateProfilePictureInput:e},successCallback:t,failureCallback:n})}}X(uf,"query","7edd5b8a4513caf8180a64ecde871630");class df extends vs{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:df.query,variables:{updateSettingsResponseDataFetcherInput:{type:"SHOW_PICTURE_SETTING",valueString:e}},successCallback:t,failureCallback:n})}}X(df,"query","97ceca0bcbbf3fd6d744083b4de0a202");document.querySelector.bind(document);class hf extends vs{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:hf.query,variables:{digitalmediaAssetUrn:e},successCallback:t,failureCallback:n})}}X(hf,"query","85c85c121bf7eaabd2388b9143f94546")}).call(this,n(1),n(2).Buffer)},function(e,t,n){e.exports=function(){"use strict";function e(t){return(e="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})(t)}function t(e,n){return(t=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,n)}function n(){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}}function i(e,r,o){return(i=n()?Reflect.construct:function(e,n,i){var r=[null];r.push.apply(r,n);var o=new(Function.bind.apply(e,r));return i&&t(o,i.prototype),o}).apply(null,arguments)}function r(e){return function(e){if(Array.isArray(e))return o(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return o(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)?o(e,t):void 0}}(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 o(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 s=Object.hasOwnProperty,a=Object.setPrototypeOf,c=Object.isFrozen,l=Object.getPrototypeOf,u=Object.getOwnPropertyDescriptor,d=Object.freeze,h=Object.seal,p=Object.create,f="undefined"!=typeof Reflect&&Reflect,m=f.apply,g=f.construct;m||(m=function(e,t,n){return e.apply(t,n)}),d||(d=function(e){return e}),h||(h=function(e){return e}),g||(g=function(e,t){return i(e,r(t))});var v,y=L(Array.prototype.forEach),b=L(Array.prototype.pop),E=L(Array.prototype.push),_=L(String.prototype.toLowerCase),w=L(String.prototype.toString),T=L(String.prototype.match),S=L(String.prototype.replace),k=L(String.prototype.indexOf),C=L(String.prototype.trim),I=L(RegExp.prototype.test),A=(v=TypeError,function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return g(v,t)});function L(e){return function(t){for(var n=arguments.length,i=new Array(n>1?n-1:0),r=1;r<n;r++)i[r-1]=arguments[r];return m(e,t,i)}}function O(e,t,n){var i;n=null!==(i=n)&&void 0!==i?i:_,a&&a(e,null);for(var r=t.length;r--;){var o=t[r];if("string"==typeof o){var s=n(o);s!==o&&(c(t)||(t[r]=s),o=s)}e[o]=!0}return e}function R(e){var t,n=p(null);for(t in e)!0===m(s,e,[t])&&(n[t]=e[t]);return n}function N(e,t){for(;null!==e;){var n=u(e,t);if(n){if(n.get)return L(n.get);if("function"==typeof n.value)return L(n.value)}e=l(e)}return function(e){return console.warn("fallback value for",e),null}}var P=d(["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"]),x=d(["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"]),M=d(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),D=d(["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"]),U=d(["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"]),B=d(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),F=d(["#text"]),q=d(["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"]),H=d(["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"]),j=d(["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"]),z=d(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),G=h(/\{\{[\w\W]*|[\w\W]*\}\}/gm),W=h(/<%[\w\W]*|[\w\W]*%>/gm),K=h(/\${[\w\W]*}/gm),V=h(/^data-[\-\w.\u00B7-\uFFFF]/),Y=h(/^aria-[\-\w]+$/),J=h(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),X=h(/^(?:\w+script|data):/i),Q=h(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),Z=h(/^html$/i),$=function(){return"undefined"==typeof window?null:window},ee=function(t,n){if("object"!==e(t)||"function"!=typeof t.createPolicy)return null;var i=null;n.currentScript&&n.currentScript.hasAttribute("data-tt-policy-suffix")&&(i=n.currentScript.getAttribute("data-tt-policy-suffix"));var r="dompurify"+(i?"#"+i:"");try{return t.createPolicy(r,{createHTML:function(e){return e},createScriptURL:function(e){return e}})}catch(e){return console.warn("TrustedTypes policy "+r+" could not be created."),null}};return function t(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:$(),i=function(e){return t(e)};if(i.version="2.4.7",i.removed=[],!n||!n.document||9!==n.document.nodeType)return i.isSupported=!1,i;var o=n.document,s=n.document,a=n.DocumentFragment,c=n.HTMLTemplateElement,l=n.Node,u=n.Element,h=n.NodeFilter,p=n.NamedNodeMap,f=void 0===p?n.NamedNodeMap||n.MozNamedAttrMap:p,m=n.HTMLFormElement,g=n.DOMParser,v=n.trustedTypes,L=u.prototype,te=N(L,"cloneNode"),ne=N(L,"nextSibling"),ie=N(L,"childNodes"),re=N(L,"parentNode");if("function"==typeof c){var oe=s.createElement("template");oe.content&&oe.content.ownerDocument&&(s=oe.content.ownerDocument)}var se=ee(v,o),ae=se?se.createHTML(""):"",ce=s,le=ce.implementation,ue=ce.createNodeIterator,de=ce.createDocumentFragment,he=ce.getElementsByTagName,pe=o.importNode,fe={};try{fe=R(s).documentMode?s.documentMode:{}}catch(e){}var me={};i.isSupported="function"==typeof re&&le&&void 0!==le.createHTMLDocument&&9!==fe;var ge,ve,ye=G,be=W,Ee=K,_e=V,we=Y,Te=X,Se=Q,ke=J,Ce=null,Ie=O({},[].concat(r(P),r(x),r(M),r(U),r(F))),Ae=null,Le=O({},[].concat(r(q),r(H),r(j),r(z))),Oe=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}})),Re=null,Ne=null,Pe=!0,xe=!0,Me=!1,De=!0,Ue=!1,Be=!1,Fe=!1,qe=!1,He=!1,je=!1,ze=!1,Ge=!0,We=!1,Ke="user-content-",Ve=!0,Ye=!1,Je={},Xe=null,Qe=O({},["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"]),Ze=null,$e=O({},["audio","video","img","source","image","track"]),et=null,tt=O({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),nt="http://www.w3.org/1998/Math/MathML",it="http://www.w3.org/2000/svg",rt="http://www.w3.org/1999/xhtml",ot=rt,st=!1,at=null,ct=O({},[nt,it,rt],w),lt=["application/xhtml+xml","text/html"],ut="text/html",dt=null,ht=s.createElement("form"),pt=function(e){return e instanceof RegExp||e instanceof Function},ft=function(t){dt&&dt===t||(t&&"object"===e(t)||(t={}),t=R(t),ge=ge=-1===lt.indexOf(t.PARSER_MEDIA_TYPE)?ut:t.PARSER_MEDIA_TYPE,ve="application/xhtml+xml"===ge?w:_,Ce="ALLOWED_TAGS"in t?O({},t.ALLOWED_TAGS,ve):Ie,Ae="ALLOWED_ATTR"in t?O({},t.ALLOWED_ATTR,ve):Le,at="ALLOWED_NAMESPACES"in t?O({},t.ALLOWED_NAMESPACES,w):ct,et="ADD_URI_SAFE_ATTR"in t?O(R(tt),t.ADD_URI_SAFE_ATTR,ve):tt,Ze="ADD_DATA_URI_TAGS"in t?O(R($e),t.ADD_DATA_URI_TAGS,ve):$e,Xe="FORBID_CONTENTS"in t?O({},t.FORBID_CONTENTS,ve):Qe,Re="FORBID_TAGS"in t?O({},t.FORBID_TAGS,ve):{},Ne="FORBID_ATTR"in t?O({},t.FORBID_ATTR,ve):{},Je="USE_PROFILES"in t&&t.USE_PROFILES,Pe=!1!==t.ALLOW_ARIA_ATTR,xe=!1!==t.ALLOW_DATA_ATTR,Me=t.ALLOW_UNKNOWN_PROTOCOLS||!1,De=!1!==t.ALLOW_SELF_CLOSE_IN_ATTR,Ue=t.SAFE_FOR_TEMPLATES||!1,Be=t.WHOLE_DOCUMENT||!1,He=t.RETURN_DOM||!1,je=t.RETURN_DOM_FRAGMENT||!1,ze=t.RETURN_TRUSTED_TYPE||!1,qe=t.FORCE_BODY||!1,Ge=!1!==t.SANITIZE_DOM,We=t.SANITIZE_NAMED_PROPS||!1,Ve=!1!==t.KEEP_CONTENT,Ye=t.IN_PLACE||!1,ke=t.ALLOWED_URI_REGEXP||ke,ot=t.NAMESPACE||rt,Oe=t.CUSTOM_ELEMENT_HANDLING||{},t.CUSTOM_ELEMENT_HANDLING&&pt(t.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(Oe.tagNameCheck=t.CUSTOM_ELEMENT_HANDLING.tagNameCheck),t.CUSTOM_ELEMENT_HANDLING&&pt(t.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(Oe.attributeNameCheck=t.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),t.CUSTOM_ELEMENT_HANDLING&&"boolean"==typeof t.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements&&(Oe.allowCustomizedBuiltInElements=t.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),Ue&&(xe=!1),je&&(He=!0),Je&&(Ce=O({},r(F)),Ae=[],!0===Je.html&&(O(Ce,P),O(Ae,q)),!0===Je.svg&&(O(Ce,x),O(Ae,H),O(Ae,z)),!0===Je.svgFilters&&(O(Ce,M),O(Ae,H),O(Ae,z)),!0===Je.mathMl&&(O(Ce,U),O(Ae,j),O(Ae,z))),t.ADD_TAGS&&(Ce===Ie&&(Ce=R(Ce)),O(Ce,t.ADD_TAGS,ve)),t.ADD_ATTR&&(Ae===Le&&(Ae=R(Ae)),O(Ae,t.ADD_ATTR,ve)),t.ADD_URI_SAFE_ATTR&&O(et,t.ADD_URI_SAFE_ATTR,ve),t.FORBID_CONTENTS&&(Xe===Qe&&(Xe=R(Xe)),O(Xe,t.FORBID_CONTENTS,ve)),Ve&&(Ce["#text"]=!0),Be&&O(Ce,["html","head","body"]),Ce.table&&(O(Ce,["tbody"]),delete Re.tbody),d&&d(t),dt=t)},mt=O({},["mi","mo","mn","ms","mtext"]),gt=O({},["foreignobject","desc","title","annotation-xml"]),vt=O({},["title","style","font","a","script"]),yt=O({},x);O(yt,M),O(yt,D);var bt=O({},U);O(bt,B);var Et=function(e){var t=re(e);t&&t.tagName||(t={namespaceURI:ot,tagName:"template"});var n=_(e.tagName),i=_(t.tagName);return!!at[e.namespaceURI]&&(e.namespaceURI===it?t.namespaceURI===rt?"svg"===n:t.namespaceURI===nt?"svg"===n&&("annotation-xml"===i||mt[i]):Boolean(yt[n]):e.namespaceURI===nt?t.namespaceURI===rt?"math"===n:t.namespaceURI===it?"math"===n&&gt[i]:Boolean(bt[n]):e.namespaceURI===rt?!(t.namespaceURI===it&&!gt[i])&&!(t.namespaceURI===nt&&!mt[i])&&!bt[n]&&(vt[n]||!yt[n]):!("application/xhtml+xml"!==ge||!at[e.namespaceURI]))},_t=function(e){E(i.removed,{element:e});try{e.parentNode.removeChild(e)}catch(t){try{e.outerHTML=ae}catch(t){e.remove()}}},wt=function(e,t){try{E(i.removed,{attribute:t.getAttributeNode(e),from:t})}catch(e){E(i.removed,{attribute:null,from:t})}if(t.removeAttribute(e),"is"===e&&!Ae[e])if(He||je)try{_t(t)}catch(e){}else try{t.setAttribute(e,"")}catch(e){}},Tt=function(e){var t,n;if(qe)e="<remove></remove>"+e;else{var i=T(e,/^[\r\n\t ]+/);n=i&&i[0]}"application/xhtml+xml"===ge&&ot===rt&&(e='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+e+"</body></html>");var r=se?se.createHTML(e):e;if(ot===rt)try{t=(new g).parseFromString(r,ge)}catch(e){}if(!t||!t.documentElement){t=le.createDocument(ot,"template",null);try{t.documentElement.innerHTML=st?ae:r}catch(e){}}var o=t.body||t.documentElement;return e&&n&&o.insertBefore(s.createTextNode(n),o.childNodes[0]||null),ot===rt?he.call(t,Be?"html":"body")[0]:Be?t.documentElement:o},St=function(e){return ue.call(e.ownerDocument||e,e,h.SHOW_ELEMENT|h.SHOW_COMMENT|h.SHOW_TEXT,null,!1)},kt=function(e){return e instanceof m&&("string"!=typeof e.nodeName||"string"!=typeof e.textContent||"function"!=typeof e.removeChild||!(e.attributes instanceof f)||"function"!=typeof e.removeAttribute||"function"!=typeof e.setAttribute||"string"!=typeof e.namespaceURI||"function"!=typeof e.insertBefore||"function"!=typeof e.hasChildNodes)},Ct=function(t){return"object"===e(l)?t instanceof l:t&&"object"===e(t)&&"number"==typeof t.nodeType&&"string"==typeof t.nodeName},It=function(e,t,n){me[e]&&y(me[e],(function(e){e.call(i,t,n,dt)}))},At=function(e){var t;if(It("beforeSanitizeElements",e,null),kt(e))return _t(e),!0;if(I(/[\u0080-\uFFFF]/,e.nodeName))return _t(e),!0;var n=ve(e.nodeName);if(It("uponSanitizeElement",e,{tagName:n,allowedTags:Ce}),e.hasChildNodes()&&!Ct(e.firstElementChild)&&(!Ct(e.content)||!Ct(e.content.firstElementChild))&&I(/<[/\w]/g,e.innerHTML)&&I(/<[/\w]/g,e.textContent))return _t(e),!0;if("select"===n&&I(/<template/i,e.innerHTML))return _t(e),!0;if(!Ce[n]||Re[n]){if(!Re[n]&&Ot(n)){if(Oe.tagNameCheck instanceof RegExp&&I(Oe.tagNameCheck,n))return!1;if(Oe.tagNameCheck instanceof Function&&Oe.tagNameCheck(n))return!1}if(Ve&&!Xe[n]){var r=re(e)||e.parentNode,o=ie(e)||e.childNodes;if(o&&r)for(var s=o.length-1;s>=0;--s)r.insertBefore(te(o[s],!0),ne(e))}return _t(e),!0}return e instanceof u&&!Et(e)?(_t(e),!0):"noscript"!==n&&"noembed"!==n&&"noframes"!==n||!I(/<\/no(script|embed|frames)/i,e.innerHTML)?(Ue&&3===e.nodeType&&(t=e.textContent,t=S(t,ye," "),t=S(t,be," "),t=S(t,Ee," "),e.textContent!==t&&(E(i.removed,{element:e.cloneNode()}),e.textContent=t)),It("afterSanitizeElements",e,null),!1):(_t(e),!0)},Lt=function(e,t,n){if(Ge&&("id"===t||"name"===t)&&(n in s||n in ht))return!1;if(xe&&!Ne[t]&&I(_e,t));else if(Pe&&I(we,t));else if(!Ae[t]||Ne[t]){if(!(Ot(e)&&(Oe.tagNameCheck instanceof RegExp&&I(Oe.tagNameCheck,e)||Oe.tagNameCheck instanceof Function&&Oe.tagNameCheck(e))&&(Oe.attributeNameCheck instanceof RegExp&&I(Oe.attributeNameCheck,t)||Oe.attributeNameCheck instanceof Function&&Oe.attributeNameCheck(t))||"is"===t&&Oe.allowCustomizedBuiltInElements&&(Oe.tagNameCheck instanceof RegExp&&I(Oe.tagNameCheck,n)||Oe.tagNameCheck instanceof Function&&Oe.tagNameCheck(n))))return!1}else if(et[t]);else if(I(ke,S(n,Se,"")));else if("src"!==t&&"xlink:href"!==t&&"href"!==t||"script"===e||0!==k(n,"data:")||!Ze[e])if(Me&&!I(Te,S(n,Se,"")));else if(n)return!1;return!0},Ot=function(e){return e.indexOf("-")>0},Rt=function(t){var n,r,o,s;It("beforeSanitizeAttributes",t,null);var a=t.attributes;if(a){var c={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:Ae};for(s=a.length;s--;){var l=n=a[s],u=l.name,d=l.namespaceURI;if(r="value"===u?n.value:C(n.value),o=ve(u),c.attrName=o,c.attrValue=r,c.keepAttr=!0,c.forceKeepAttr=void 0,It("uponSanitizeAttribute",t,c),r=c.attrValue,!c.forceKeepAttr&&(wt(u,t),c.keepAttr))if(De||!I(/\/>/i,r)){Ue&&(r=S(r,ye," "),r=S(r,be," "),r=S(r,Ee," "));var h=ve(t.nodeName);if(Lt(h,o,r)){if(!We||"id"!==o&&"name"!==o||(wt(u,t),r=Ke+r),se&&"object"===e(v)&&"function"==typeof v.getAttributeType)if(d);else switch(v.getAttributeType(h,o)){case"TrustedHTML":r=se.createHTML(r);break;case"TrustedScriptURL":r=se.createScriptURL(r)}try{d?t.setAttributeNS(d,u,r):t.setAttribute(u,r),b(i.removed)}catch(e){}}}else wt(u,t)}It("afterSanitizeAttributes",t,null)}},Nt=function e(t){var n,i=St(t);for(It("beforeSanitizeShadowDOM",t,null);n=i.nextNode();)It("uponSanitizeShadowNode",n,null),At(n)||(n.content instanceof a&&e(n.content),Rt(n));It("afterSanitizeShadowDOM",t,null)};return i.sanitize=function(t){var r,s,c,u,d,h=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if((st=!t)&&(t="\x3c!--\x3e"),"string"!=typeof t&&!Ct(t)){if("function"!=typeof t.toString)throw A("toString is not a function");if("string"!=typeof(t=t.toString()))throw A("dirty is not a string, aborting")}if(!i.isSupported){if("object"===e(n.toStaticHTML)||"function"==typeof n.toStaticHTML){if("string"==typeof t)return n.toStaticHTML(t);if(Ct(t))return n.toStaticHTML(t.outerHTML)}return t}if(Fe||ft(h),i.removed=[],"string"==typeof t&&(Ye=!1),Ye){if(t.nodeName){var p=ve(t.nodeName);if(!Ce[p]||Re[p])throw A("root node is forbidden and cannot be sanitized in-place")}}else if(t instanceof l)1===(s=(r=Tt("\x3c!----\x3e")).ownerDocument.importNode(t,!0)).nodeType&&"BODY"===s.nodeName||"HTML"===s.nodeName?r=s:r.appendChild(s);else{if(!He&&!Ue&&!Be&&-1===t.indexOf("<"))return se&&ze?se.createHTML(t):t;if(!(r=Tt(t)))return He?null:ze?ae:""}r&&qe&&_t(r.firstChild);for(var f=St(Ye?t:r);c=f.nextNode();)3===c.nodeType&&c===u||At(c)||(c.content instanceof a&&Nt(c.content),Rt(c),u=c);if(u=null,Ye)return t;if(He){if(je)for(d=de.call(r.ownerDocument);r.firstChild;)d.appendChild(r.firstChild);else d=r;return(Ae.shadowroot||Ae.shadowrootmod)&&(d=pe.call(o,d,!0)),d}var m=Be?r.outerHTML:r.innerHTML;return Be&&Ce["!doctype"]&&r.ownerDocument&&r.ownerDocument.doctype&&r.ownerDocument.doctype.name&&I(Z,r.ownerDocument.doctype.name)&&(m="<!DOCTYPE "+r.ownerDocument.doctype.name+">\n"+m),Ue&&(m=S(m,ye," "),m=S(m,be," "),m=S(m,Ee," ")),se&&ze?se.createHTML(m):m},i.setConfig=function(e){ft(e),Fe=!0},i.clearConfig=function(){dt=null,Fe=!1},i.isValidAttribute=function(e,t,n){dt||ft({});var i=ve(e),r=ve(t);return Lt(i,r,n)},i.addHook=function(e,t){"function"==typeof t&&(me[e]=me[e]||[],E(me[e],t))},i.removeHook=function(e){if(me[e])return b(me[e])},i.removeHooks=function(e){me[e]&&(me[e]=[])},i.removeAllHooks=function(){me={}},i}()}()},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var i=n(0),r=n(11);class o{constructor(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:window;new i.i(document.querySelector(".language-selector"));var t=document.querySelector(".search-bar");t&&new i.q(t,{typeaheadApiBaseUrl:"/organization-guest/api/typeaheadHits"});var n=document.querySelector(".banner");n&&new i.a(n);var o=document.querySelector(".sticky-header");o&&new i.t(o);var s=document.querySelector(".cover-img");s&&new i.c(s);var a=document.querySelector(".windows-app-upsell");a&&new i.v(a),(()=>{var e=document.querySelector(".strong-conversion-modal");if(e&&("true"===e.dataset.shouldShow||"true"===e.dataset.aggressiveUpsell)){var t,n=new i.b(e,{triggerByOutletEl:!1});null==n||null===(t=n.contextualModal)||void 0===t||t.open()}})();(e=>{var t=document.querySelector(".google-one-tap");if(t){var n=null===i.F.getCookie("li_g_recent_logout");new r.a(t,{onNotDisplayed:e,isAutoSelectEnabled:n})}})();var c=document.querySelector(".google-auth");new i.g(c);var l=e=>e.querySelector("a");Array.from(document.querySelectorAll(".show-more-less")).forEach(e=>new i.r(e,l)),Array.from(document.querySelectorAll(".ellipsis-menu")).forEach(e=>new i.e(e)),Array.from(document.querySelectorAll(".modal:not(.modal--contextual-sign-in)")).forEach(e=>new i.p(e)),i.F.onload(()=>{var t,n=Object(i.x)("flagshipOrganizationTracking");n&&(null===(t=e.tracking)||void 0===t||t.then(e=>{n.organization.trackingId=e.generateBase64UUID(),e.fireEnvelope(e.generateEnvelope("FlagshipOrganizationViewEvent",n,{header:{viewerUrn:n.viewerUrn}}))}))})}}},function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return G}));var i=n(0);const r="one_tap",o="one-tap-auto-login";function s(e){"complete"===document.readyState?e():window.addEventListener("load",()=>{e()})}function a(e,t){const n=document.createElement("script");n.src=e,t&&(n.onload=t),document.head.appendChild(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){}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 c="990339570472-k6nqn1tpmitg8pui82bfaun3jrpmiuhs.apps.googleusercontent.com",l={GOOGLE_ERROR:"googleError",GOOGLE_USER_FETCHED:"googleUserFetched",INITIALIZED:"initialized",PROMPT_MOMENT:"promptMomentNotification",TOKEN_FETCHED:"tokenFetched"},u={INITIALIZATION:"initialization",AUTHENTICATION:"authentication"},d={SIGN_IN:"signin",SIGN_UP:"signup",USE:"use"},h={DISPLAY:"display",SKIPPED:"skipped",DISMISSED:"dismissed"},p={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"}},{GOOGLE_ERROR:f,GOOGLE_USER_FETCHED:m,INITIALIZED:g}=l,{INITIALIZATION:v,AUTHENTICATION:y}=u;EventTarget;const{GOOGLE_USER_FETCHED:b,PROMPT_MOMENT:E}=l;class _ extends EventTarget{constructor({autoSelect:e=!1,libSrcPath:t,containerId:n,context:i,clientId:r=c,cancelOnTapOutside:o=!0}){if(super(),!i)throw TypeError("context param is required to determine the message to show in Google One Tap");if(this.autoSelect=e,this.libSrcPath=t,this.containerId=n,this.cancelOnTapOutside=o,this.clientId=r,this.context=i,window.google&&window.google.accounts&&window.google.accounts.id)this._onGoogleApiLoad();else{if(!t)throw TypeError("Google One Tap lib is not already loaded on the page. libSrcPath is required to load the library");s(()=>{a(t,this._onGoogleApiLoad.bind(this))})}}_onGoogleApiLoad(){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(()=>this.promptOneTap())}_handleCredentialResponse(e){const t=e.credential;let n=this.context===d.SIGN_UP?this._getBasicProfile(t):{idToken:t};if(n){n.selectedBy=e.select_by;const t=new CustomEvent(b,{detail:n});this.dispatchEvent(t)}}_getBasicProfile(e){try{const 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}}_dispatchSkippedEvent(e){const t={message:e,reason:p.SKIPPED.ISSUING_FAILED,type:h.SKIPPED},n=new CustomEvent(E,{detail:t});this.dispatchEvent(n)}promptOneTap(){google.accounts.id.prompt(e=>{const t={type:e.getMomentType(),reason:e.getNotDisplayedReason()||e.getSkippedReason()||e.getDismissedReason()},n=new CustomEvent(E,{detail:t});this.dispatchEvent(n),this.checkIfDesktopAndApplyClass()})}hideOneTap(){google.accounts.id.cancel()}checkIfDesktopAndApplyClass(){if(!/.*(iPad|iPod|iPhone|Android|BlackBerry).*/.test(navigator.userAgent)){const e=document.getElementById("credential_picker_container");e&&e.classList.add("credential_picker_container--desktop")}}}var w={exports:{}};function T(e){this.message=e}T.prototype=new Error,T.prototype.name="InvalidCharacterError";var S="undefined"!=typeof window&&window.atob&&window.atob.bind(window)||function(e){var t=String(e).replace(/=+$/,"");if(t.length%4==1)throw new T("'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 k=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(S(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 S(t)}};function C(e){this.message=e}C.prototype=new Error,C.prototype.name="InvalidTokenError",w.exports=function(e,t){if("string"!=typeof e)throw new C("Invalid token specified");var n=!0===(t=t||{}).header?0:1;try{return JSON.parse(k(e.split(".")[n]))}catch(e){throw new C("Invalid token specified: "+e.message)}},w.exports.InvalidTokenError=C;w.exports;const{GOOGLE_USER_FETCHED:I,PROMPT_MOMENT:A}=l;EventTarget;const L={CLIENT_ID:c,EVENTS:l,GOOGLE_ACCOUNT_URL:"https://accounts.google.com",GSI_ERROR_TYPES:u,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:d,GOT_PROMPT_MOMENT_REASONS:p,GOT_PROMPT_MOMENT_TYPES:h};function O(e,t){const n=document.createElement("input");return n.setAttribute("type","hidden"),n.setAttribute("name",e),n.setAttribute("value",t),n}const R=i.G.getPageKey(document).replace("_jsbeacon","");function N(e,t,n){window.tracking&&window.tracking.then(r=>{if(t&&e.appendChild(function(e){return O("controlId","".concat(R,"-").concat(e.dataset.trackingControlName))}(t)),e.appendChild(function(e){return O("pageInstance",i.J.getPageInstance(e))}(r)),n){const e="".concat(R,"_").concat(n);i.J.firePageViewEvent(r,"ajax",e),Object(i.y)(r).trackPageView({pageKey:e})}})}function P(e){window.tracking&&window.tracking.then(t=>{t.fireControlInteractionEvent(e)})}function x(e){window.tracking&&window.tracking.then(t=>{i.J.fireViewModuleImpressionEvent(t,[e])})}const{EVENTS:M,GOT_CONTEXTS:D,GOT_PROMPT_MOMENT_REASONS:U,GOT_PROMPT_MOMENT_TYPES:B}=L,{GOOGLE_USER_FETCHED:F,PROMPT_MOMENT:q}=M,{SIGN_IN:H}=D,j=[U.NOT_DISPLAYED.BROWSER_NOT_SUPPORTED,U.NOT_DISPLAYED.OPT_OUT_OR_NO_SESSION,U.NOT_DISPLAYED.SUPPRESSED_BY_USER],z=[U.SKIPPED.AUTO_CANCEL,U.SKIPPED.TAP_OUTSIDE,U.SKIPPED.USER_CANCEL];class G{constructor(e,{onNotDisplayed:t,onSkipped:n,isAutoSelectEnabled:r=!1}={}){if(!e)throw Error("Google one tap form element must be provided");this.el=e,this.onNotDisplayed="function"==typeof t&&t,this.onSkipped="function"==typeof n&&n,this.isAutoSelectEnabled=r,this.containerEl=this.el.querySelector(".google-one-tap__container"),this.loaderEl=this.el.querySelector(".loader"),this.loader=this.loaderEl&&new i.j(this.loaderEl),N(this.el,this.containerEl),this.googleOneTapPromise=this._createGoogleOneTap()}_createGoogleOneTap(){return window.lazyloader.then(e=>e.getLazyLoadedJavascriptModule("google-one-tap-lib")).then(()=>(this.googleOneTapInstance=new _({autoSelect:this.isAutoSelectEnabled,cancelOnTapOutside:!1,context:H}),this.googleOneTapInstance.addEventListener(F,({detail:e})=>{const{idToken:t,selectedBy:n}=e;P("google-one-tap--account-selected");const i=this.googleOneTapInstance._getBasicProfile(t);this._submitWithGoogle(n,i)}),this.googleOneTapInstance.addEventListener(q,({detail:e})=>{const{reason:t,type:n}=e;if(t){if(this._fireCounterIngraphMetric(n,t),n===B.SKIPPED){if(t===U.SKIPPED.USER_CANCEL&&P("google-one-tap--user-dismissed"),this.onSkipped)this.onSkipped(e);else if(-1===z.indexOf(t))throw Error("GoogleOneTapError ".concat(n,": ").concat(t))}else if(n===B.DISPLAY)if(this.onNotDisplayed)this.onNotDisplayed(e);else if(-1===j.indexOf(t))throw Error("GoogleOneTapError ".concat(n,": ").concat(t))}else n===B.DISPLAY&&x("google-one-tap")}),this.googleOneTapInstance))}_fireCounterIngraphMetric(e,t){let n="";e===B.DISPLAY&&t===U.NOT_DISPLAYED.OPT_OUT_OR_NO_SESSION?n="GoogleAuthDisabledOrNoSessionError":(z.indexOf(t)>=0||j.indexOf(t)>=0)&&(n="GoogleAuthMiscError"),n&&window.ingraphTracking.then(e=>{e.fireCounterIngraphMetric({metricsType:n})})}_submitWithGoogle(e,t={}){const{email:n,idToken:i,imageUrl:s,familyName:a,givenName:c}=t;this.googleIdTokenInput&&this.el.removeChild(this.googleIdTokenInput),this.googleIdTokenInput=O("googleIdToken",i),this.el.appendChild(O("googleGivenName",c)),this.el.appendChild(O("googleFamilyName",a)),this.el.appendChild(O("googleImageUrl",s)),this.el.appendChild(O("googleEmail",n));const l="auto"===e?o:r;this.el.appendChild(O("soogleLoginRequestType",l)),this.el.appendChild(O("googleImageUrl",s)),this.el.appendChild(O("googleEmail",n)),this.el.appendChild(this.googleIdTokenInput),this.loader&&this.loader.show(),this.el.submit()}}const{GOOGLE_USER_FETCHED:W,GOOGLE_ERROR:K,INITIALIZED:V}=L.EVENTS,{INITIALIZATION:Y,AUTHENTICATION:J}=L.GSI_ERROR_TYPES,{INIT_FAILED:X,POPUP_CLOSED_BY_USER:Q}=L.GSI_ERROR_MESSAGES;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==e||"undefined"!=typeof self&&self;!function(e,t,n){e(n={path:t,exports:{},require:function(e,t){return function(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}(null==t&&n.path)}},n.exports),n.exports}((function(e,t){e.exports=function(){var e="aria-[a-z0-9_\\-]+|class|data-[a-z0-9_\\-]+|dir|id|role|tabindex",t="undefined"==typeof document||"textContent"in document.createElement("div")?"textContent":"innerText",n=["b","del","em","i","s","strong","sub","sup"],i=n.concat(["a","abbr","address","area","article","aside","audio","bdi","bdo","big","blockquote","br","button","center","cite","code","datalist","dd","details","dfn","div","dl","dt","fieldset","figcaption","figure","font","footer","h1","h2","h3","h4","h5","h6","header","hgroup","hr","img","ins","kbd","label","legend","li","map","mark","marquee","nav","nobr","ol","p","pre","q","rp","rt","ruby","samp","section","small","source","span","strike","table","tbody","td","tfoot","th","thead","time","tr","u","ul","var","video","wbr"]),r=[e,"alt|checked|colgroup|cols|colspan|disabled|height|hidden|maxlength|method|multiple|name|placeholder|readonly|rel|required|rows|rowspan|spellcheck|target|title|width","border|caption|color|controls|coords|hreflang|label|lang|loop|marginheight|marginwidth|preload|reversed|type|usemap|clear|headers|ismap|start|datetime|accept|max|min|size|step|style|cellspacing|cellpadding"].join("|");function o(){}function s(e,t){if(t=t||"log",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)}var a,c,l=(c=/[&<>"'\u0000\\=]/g,a={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","\0":"�","\\":"&#92;","=":"&#61;"},function(e){return null==e?null:e.toString().replace(c,(function(e){return a[e]}))}),u=function(){var e,n,i=/&(?:([a-z0-9]+)|#x([\da-f]{1,6})|#(\d{1,8}));/gi;if("undefined"==typeof document)return function(){throw new Error("document is undefined (i.e. you are probably in Node.js)")};e=document.createElement("div");var r={nbsp:" ",lt:"<",gt:">",amp:"&",quot:'"'};return n="function"==typeof String.fromCodePoint?function(e){return String.fromCodePoint(e)}:function(e){return e<=65535?String.fromCharCode(e):"�"},function(o){return null==o?null:(o+"").replace(i,(function(i,o,s,a){return o?(c=o,r.hasOwnProperty(c)?r[c]:(e.innerHTML="&"+c+";",l=e[t],r[c]=l,l)):s||a?n(parseInt(s||a,s?16:10)||65533):"�";var c,l}))}}(),d=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)};function h(e){return/[<&]/.test(e)}var p,f=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 m(e){e=d(e)?e:[e];var t,n,o,s=0,a="<(?!/?";return a+="(?:",f(e,(function(e,c){t=e.tags||i,n=e.attrs||r,o=e.checkUrlAttrs||!1,0!==c&&(a+="|"),a+="(?:"+t.join("|")+")",a+="(?:",a+="[ \t\r\n]*",a+="|[ \t\r\n]+",a+="(?:(?:",a+="(?:"+n+")(?:=([\"'])[^'\"<>]*\\"+ ++s+")?",o&&(a+="|(?:href|src)=([\"'])(?:(?:https?|ftp|mailto|invalid)(?::|&#(?:58|x3a);)|(?:data:image/(?:gif|jpg|jpeg|png);base64,)|[/.#?]|&#(?:35|4[67]|63|x(?:2[3ef]|3f));)[^'\"<>]*\\"+ ++s),a+=")[ \t\r\n]*)+",a+=")"})),a+=")",a+="/?>)",new RegExp(a,"i")}function g(e){return m({tags:e=e||i,checkUrlAttrs:!0})}function v(e,t){var n=(t=t||{}).allowTags,i=!1!==t.hasCustomElementMarkup;return n?!g(n).test(e):i?!v.R_UNSAFE_CUSTOM_ELEMENT.test(e):!v.R_UNSAFE_HTML.test(e)}function y(e){return e.replace(/<[^>]*>|[<>'"&\\]/g,"")}function b(e,t,n){if(null==e)return null;e=e.toString();var i=t?function(e,t){var n={};return e.replace(/\{([^}]+)\}/g,(function(e,i){var r,s=e;if(n.hasOwnProperty(i))return n[i];if(t.hasOwnProperty(i)){if(!((r="string"==typeof(s=t[i]))||s instanceof o||"number"==typeof s))throw new Error("Only strings, numbers, and jSecure types are allowed as placeholder replacements.");s=r?l(s):s.toString()}return n[i]=s,s}))}(e,t):e,r=e;return h(i)&&!v(i,n)&&(i=y(i),s("Content contains non-whitelisted tags or attributes:\nContent: "+r,"error")),i}function E(e,t){for(var n=+t.length,i=0,r=e.length;i<n;i++)e[r++]=t[i];return e.length=r,e}v.R_UNSAFE_HTML=g(),v.R_UNSAFE_CUSTOM_ELEMENT=m([{tags:i,checkUrlAttrs:!0},{tags:[(p={tag:"li-icon",attrs:"active|a11y-text|animate|color|size|type"}).tag],attrs:[e,p.attrs].join("|"),checkUrlAttrs:!1}]);var _={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,"",""]};_.optgroup=_.option,_.tbody=_.tfoot=_.colgroup=_.caption=_.thead,_.th=_.td;var w=/<([\w:]+)/;function T(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=(w.exec(o)||["",""])[1].toLowerCase(),C(r,(i=_[n]||_._default)[1]+o+i[2]),a=i[0];a--;)r.lastChild&&r.lastChild.nodeType===Node.ELEMENT_NODE&&(r=r.lastChild);E(u,r.childNodes),(r=l.firstChild).textContent=""}else E(u,o.nodeType?[o]:o);for(l.textContent="",o=u[s=0];o;)l.appendChild(o),o=u[++s];return l}var S=b,k=b;function C(e,n,i){var r=b(n,i);return h(r)?e.innerHTML=r:e[t]=r,r}function I(e,t){if(!(this instanceof I))return new I(e,t);(t=t||{}).allowTags=t.allowTags?t.allowTags.reduce((function(e,t){return e.concat(t)}),[]):null,this._string=e,this._options=t}I.prototype=function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);return e}(new o,{toString:function(){var e=this._string,t=this._stringVal,n=e;return void 0!==t?t:(v(e,this._options)||(n=e,e=y(e),s("UnsafeString contains non-whitelisted tags or attributes.\nString: "+n,"error")),this._stringVal=e,e)}});var A=/ /g,L=/[\s\u0000<>"]|%00/,O=/\\/,R=/([.]|%2e){2}/i,N=new RegExp("^(?:https?|ftp|mailto|tel|sms|blob|voyager|android-app|linkedin|chrome-extension|invalid|data:(?:(?:image/(?:gif|jpe?g|png))|(?:application/x-font-woff)|(?:font/(?:opentype|ttf)))[;,]|[/.#?])");function P(e){var t=void 0;if("string"!=typeof e)return s("jSecure Warning: url must be a string","error"),"invalid://";if((t=e.trim()).indexOf(" ")>-1&&(s("jSecure Warning: url should not contain spaces: "+e,"warn"),t=t.replace(A,"+")),!N.test(t))return s("jSecure Error: URL should be absolute with allowed schemas, relative, a hash fragment or query string. "+e,"error"),"invalid://";if(L.test(t))return s("jSecure Error: not valid url character found in url: "+e,"error"),"invalid://";var n=t.split("?")[0];return O.test(n)||R.test(n)||R.test(decodeURI(n))?(s("jSecure Error: malicious data found in url path: "+n,"error"),"invalid://"):e}var x={redirect:function(e){window&&(window.location.href=e)}};return{ALLOWED_TAGS:i,FORMATTING_TAGS:n,htmlEncode:l,htmlUnencode:u,log:s,mk:function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];var r="",o=void 0,s=n.length;return e&&e.forEach((function(e,t){r+=e,t<s&&(o=n[t],r+=o instanceof I?o:l(o))})),k(r)},parseHTML:function(e,t){var n;if(t=t||document.implementation&&document.implementation.createHTMLDocument?document.implementation.createHTMLDocument(""):document,"string"==typeof e)n=T([e],t);else{if(!d(e))return e;n=T(e,t)}return E([],n.childNodes)},parseSelector:function(e){return"string"==typeof e&&/^(?:\s*(<[\w\W]+>)[^>]*)$/.test(e)?[]:e},processTemplate:S,reEncode:function(e){return l(u(e))},_redirector:x,redirect:function(e){var t=P(e);t===e&&x.redirect(t)},sanitizeHTML:k,sanitizeUrl:P,setElementContent:C,text:function(e){return s("jSecure.text() is deprecated. Please use jSecure.htmlEncode().","warn"),l(e)},unsafe:function(e){return e},UnsafeString:I}}()}));const Z=/\!|\@|\#|\$|\%|\^|\&|\*|\+|\=|\||<|\>|\?|\:|\;/,$=/(.)\1{3}/,ee=/linkedin/i,te=/\d\d/,ne=new RegExp("([a-zA-Z0-9]+://)?([a-zA-Z0-9_]+:[a-zA-Z0-9_]+@)?([a-zA-Z0-9.-]+\\.[A-Za-z]{2,4})(:[0-9]+)?(/.*)?"),ie=/^(([^<>()\[\]\.,;:\s@\"]+(\.[^<>()\[\]\.,;:\s@\"]+)*)|(\".+\"))@(([^<>()[\]\.,;:\s@\"]+\.)+[^<>()[\]\.,;:\s@\"]{2,})$/i,re=/^[\u4E00-\u9FFF|\u3400-\u4DBF|\uF900-\uFAFF]*$/,oe=/^[ぁ-ゔゞ゛゜ー]*$/,se=/^[+]?[\s./0-9]*[(]?[0-9]{1,4}[)]?[-\s./0-9]*$/,ae=e=>{const t=(t="")=>t.length<=e;return t.errorMessagePrefix="i18n_tooLong_",t},ce=e=>{const t=(t="")=>t.length>=e;return t.errorMessagePrefix="i18n_tooShort_",t},le=(e="")=>!te.test(e);le.errorMessagePrefix="i18n_noConsecutiveDigits_";const ue=(e="")=>!Z.test(e);ue.errorMessagePrefix="i18n_noForbiddenCharacters_";const de=(e="")=>!$.test(e);de.errorMessagePrefix="i18n_noFourConsecutiveDuplicates_";const he=(e="")=>!ee.test(e);he.errorMessagePrefix="i18n_noLinkedIn_";const pe=(e="")=>!ne.test(e);pe.errorMessagePrefix="i18n_noUrl_";const fe=(e="")=>re.test(e);fe.errorMessagePrefix="i18n_onlyChinese_";const me=(e="")=>oe.test(e);me.errorMessagePrefix="i18n_onlyPhonetic_";const ge=(e="")=>""!==e.trim();ge.errorMessagePrefix="i18n_required_";const ve=(e="")=>ie.test(e);ve.errorMessagePrefix="i18n_invalidFormat_";const ye=(e="")=>se.test(e);ye.errorMessagePrefix="i18n_invalidFormat_";const be=(e="")=>ie.test(e)||se.test(e);be.errorMessagePrefix="i18n_invalidFormat_";const Ee=[ae(50),ue,le,de,he,pe],_e=[ge].concat(Ee),we=[me,ae(50),de];ae(4),ce(2),ae(128),ae(128),ae(128),(e=>{const t=(t="")=>""===t||e(t);t.errorMessagePrefix=e.errorMessagePrefix})(ve),ce(8),ae(200);const{GOT_PROMPT_MOMENT_REASONS:Te,GOT_PROMPT_MOMENT_TYPES:Se}=L;const{GOOGLE_ERROR:ke,GOOGLE_USER_FETCHED:Ce,INITIALIZED:Ie}=L.EVENTS;new Set(["百里","淳于","第五","東方 ","东方","東閣 ","东阁","東郭 ","东郭","東門 ","东门","端木","獨孤 ","独孤","公孫 ","公孙","公羊","公冶","公西","毌丘","穀梁 ","谷梁","賀蘭 ","贺兰","赫連 ","赫连","賀若 ","贺若","皇甫","黄斯","呼延","兰向","令狐","甪里","閭丘 ","闾丘","万俟","慕容","納蘭 ","纳兰","南宮 ","南宫","歐陽 ","欧阳","沙吒","上官","申屠","司馬 ","司马","司徒","司空","司寇","太史","澹臺 ","澹台","拓跋","完顏 ","完颜","聞人 ","闻人","巫馬 ","巫马","夏侯","鮮于 ","鲜于","西門 ","西门","軒轅 ","轩辕","楊子 ","杨子","耶律","樂正 ","乐正","尉遲 ","尉迟","宇文","長孫 ","长孙","鍾離 ","钟离","諸葛 ","诸葛","祝融","子車 ","子车","左人"]);var Ae;!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"}(Ae||(Ae={}));new Set(Object.values(Ae));Error;var Le;!function(e){e.ProductName="productName",e.CustomTrackingId="customTrackingId",e.ClientSensorGroupName="clientSensorGroupName",e.AdditionalDegradedResponseCodes="additionalDegradedResponseCodes",e.NonDegradedResponseCodes="nonDegradedResponseCodes",e.DegradationKeyOverrides="degradationKeyOverrides",e.ShouldDisableDegradationTracking="shouldDisableDegradationTracking",e.EnablePerformanceMeasurement="enablePerformanceMeasurement"}(Le||(Le={}));new Set(Object.values(Le));const{EVENTS:Oe,GOT_CONTEXTS:Re,GOT_PROMPT_MOMENT_TYPES:Ne}=L,{GOOGLE_USER_FETCHED:Pe,PROMPT_MOMENT:xe}=Oe}).call(this,n(1))},function(e,t,n){"use strict";n.d(t,"a",(function(){return l}));var i=n(0),r=n(9),o=n.n(r),s={ADD_TAGS:["#comment","li-icon","icon","iframe"],ADD_ATTR:["target"]};var a=n(7),c=n(3);class l{constructor(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.globalWindow,r=void 0===n?window:n,o=t.paginationToken,s=t.requestUrl,a=t.feedLoadLimit,c=void 0===a?6:a,l=t.threshold,u=void 0===l?2:l,d=t.isLoggedIn,h=void 0!==d&&d,p=t.onStopCallback,f=void 0===p?()=>{}:p;if(!e)throw new Error("No element passed in");if(!o)throw new Error("No paginationToken passed in");if(!s)throw new Error("No requestUrl passed in");this.el=e,this.loaderEl=document.querySelector(".updates-loader"),this.window=r,this.threshold=u,this.feedLoadLimit=c,this.requestUrl=s,this.paginationToken=o,this.paginationStart=10,this.areAllFeedUpdatesLoaded=!1,this.isLoggedIn=h,this.onStopCallback=f,this.loadResults=()=>{if(!this.areAllFeedUpdatesLoaded)return this.requestUrl.searchParams.set("paginationStart",this.paginationStart),this.requestUrl.searchParams.set("paginationToken",this.paginationToken),Object(i.H)(this.requestUrl,{sendCookies:!1}).then(e=>{var t=e.status,n=e.responseText;200===t?this.onSuccess(n):this.onFail()}).catch(()=>{this.onFail()}).finally(()=>{this.paginationStart+=10,this.isLoggedIn&&this.fireFeedPageViewEvent(),!this.isLoggedIn&&this.paginationStart>10*this.feedLoadLimit&&this._stopFeedUpdatesLoader()})},this.infiniteScroller=new i.h(this.window,{loaderEl:this.loaderEl,threshold:this.threshold,loadResults:this.loadResults,scrollLoadLimit:9999,useDebounce:!0,listEl:this.el})}fireFeedPageViewEvent(){var e;null===(e=this.window.tracking)||void 0===e||e.then(e=>{i.J.firePageViewEvent(e,c.b.AJAX,"p_mwlite_feed_updates")})}onSuccess(e){var t=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return o.a.sanitize(e,Object.assign({},s,t))}(e);t?(this.el.insertAdjacentHTML("beforeend",t),Object(a.a)(this.isLoggedIn),this.window.lazyloader.then(e=>e.refreshLoader())):this._stopFeedUpdatesLoader()}onFail(){this._stopFeedUpdatesLoader()}_stopFeedUpdatesLoader(){this.onStopCallback(),this.infiniteScroller.removeInfiniteScroller(),this.areAllFeedUpdatesLoaded=!0}}},,,,,,,function(e,t,n){"use strict";n.r(t);var i=n(10),r=n(8),o=n(12);if(new i.a,Array.from(document.querySelectorAll(".share-native-video__node")).forEach(e=>new r.c(e)),document.querySelector(".updates-loader")){var s=document.querySelector(".updates__list"),a=Object(r.e)("feedUpdatesBaseUrl"),c=Object(r.e)("isMobile"),l=Object(r.e)("paginationToken");new o.a(s,{feedLoadLimit:c?3:6,onStopCallback:()=>{var e=document.querySelector('[data-id="conversion-prompt"]');null==e||e.classList.remove("hidden")},paginationToken:l,requestUrl:new URL("".concat(window.location.origin).concat(a)),threshold:c?4:2})}var u=document.querySelector('[data-js-module-id="products__slide-list"]');u&&new r.d(u);var d=document.querySelector('[data-js-module-id="more-searches"]');d&&window.tracking&&window.tracking.then(e=>{new r.a(d,e)})}]);