/*! For license information please see learning.js.LICENSE.txt */
(()=>{"use strict";var e,t={};function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}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}t.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}();var i,o,s,a={ADVERTISING:"ADVERTISING",ANALYTICS_AND_RESEARCH:"ANALYTICS_AND_RESEARCH",FUNCTIONAL:"FUNCTIONAL"},c="GUEST",l="MEMBER",u=0,d=1,h=2,p=(r(e={},c,"li_gc"),r(e,l,"li_mc"),e),f=function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;for(var s in n(this,e),t=t||{},this.consentAvailable=!1,this.issuedAt=r,this.userMode=i,this.optedInConsentMap={},a)t[s]=t[s]||u,t[s]!==u&&(this.consentAvailable=!0),this.optedInConsentMap[s]=t[s]===d||t[s]===u&&o===d},m=(i=[a.ADVERTISING,a.ANALYTICS_AND_RESEARCH,a.FUNCTIONAL],o=[u,d,h,u],s=new RegExp(["^(\\d+)","(\\d+)","(\\d+)","((?:.|\\s)+)"].join(";")),{parseConsentBody:function(e,t){var n=e.match(s);if(!n)return{error:"Invalid consent body encoding",consent:new f};for(var r=parseInt(n[1],10),a={},c=0;c<i.length;c++)a[i[c]]=o[r>>2*c&3];var l=new Date(1e3*parseInt(n[2],10)),d=parseInt(n[3],10),h=u;return d>=0&&d<=3&&(h=o[d]),{error:null,consent:new f(a,l,t,h)}}}),v=new RegExp(["^(\\d+)","((?:.|\\s)+)"].join(";")),g=function(e,t){var n=t.match(new RegExp("(?:^|; *)".concat(e,"=([^;]*)")));return n&&n.length>1?n[1]:null},y=function(e,t){var n=g(p[e],t);return n?E(n,e):g(p[c],t)||g(p[l],t)?b(h):b(d)},b=function(e){var t={};for(var n in a)t[n]=e;return{error:null,consent:new f(t,null,null,e)}};var E=function(e,t){e&&e.length>1&&'"'==e.charAt(0)&&'"'==e.charAt(e.length-1)&&(e=e.substring(1,e.length-1));var n,r=null;try{r=(n=e,"undefined"==typeof atob&&"undefined"!=typeof Buffer?Buffer.from(n,"base64").toString("binary"):atob(n)).match(v)}catch(e){}if(!r)return{error:"Invalid consent encoding",consent:new f};var i=parseInt(r[1],10),o=r[2];switch(i){case 1:return m.parseConsentBody(o,t);default:return{error:"Invalid encoded consent version ".concat(i),consent:new f}}},w=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:document.cookie;return e||(e=g("liap",t)?g(p[l],t)?l:c:g(p[c],t)?c:l),y(e,t)};window.encodeURIComponent;function _(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n=e.querySelector('meta[name="pageKey"]'),r=e.getElementById("config"),i=r&&"true"===r.dataset.disableJsbeaconPagekeySuffix;return n&&n.content?"".concat(n.content).concat(i||t.skipSuffix?"":"_jsbeacon"):""}function T(e){let t=e.querySelector('meta[name="linkedin:pageTag"]');return t&&t.content||""}function S(e){let t=e.querySelector('meta[name="locale"]');return t&&t.content||""}function k(e){let t=e.domain;return t?t.split(".").slice(-2).join("."):""}function I(e){return e&&'"'===e.charAt(0)&&'"'===e.charAt(e.length-1)?e.slice(1,-1):e}const C={ARROW_DOWN:"ArrowDown",ARROW_LEFT:"ArrowLeft",ARROW_RIGHT:"ArrowRight",ARROW_UP:"ArrowUp",ESCAPE:"Escape",ENTER:"Enter",SPACEBAR:" ",TAB:"Tab"},A={Down:C.ARROW_DOWN,Right:C.ARROW_RIGHT,Left:C.ARROW_LEFT,Up:C.ARROW_UP,Esc:C.ESCAPE,Spacebar:C.SPACEBAR,Tab:C.TAB};function R(e){return A[e]||e}function O(e,t){if(!e)return null;let n=e.matches||e.webkitMatchesSelector||e.mozMatchesSelector||e.msMatchesSelector;for(;e&&!n.call(e,t);)e=e.parentElement;return e}function N(e){"complete"===document.readyState?e():window.addEventListener("load",()=>{setTimeout(e)})}class L{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 x=function(){let e;return{getInstance:function(){return e||(e=new L),e}}}();class P{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 M=function(){let e;return{getInstance:function(){return e||(e=new P),e}}}();function D(e){return null==e||"object"!=typeof e?[]:Array.prototype.slice.call(e)}function U(e){const t=e.getBoundingClientRect(),n=window.innerHeight||document.documentElement.clientHeight,r=window.innerWidth||document.documentElement.clientWidth,i=t.top<=n&&t.top+t.height>=0,o=t.left<=r&&t.left+t.width>=0;return i&&o}function B(){let{scrollTop:e=scrollY,clientHeight:t=window.innerHeight,scrollHeight:n=document.body.scrollHeight}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return e>=n-(t+t*r)}function F(e,t,n){const r=new RegExp("([\\?&])".concat(n?t:encodeURIComponent(t),"=([^&#]*)")).exec(e);return r&&(n?r[2]:decodeURIComponent(r[2]))}function q(e,t){return j(e,"trk",t)}function j(e,t,n,r){if(!e||!t)throw new Error("Required param of addQueryParam missing: url = ".concat(e,",  key = ").concat(t));t=encodeURIComponent(t),n=encodeURIComponent(n);const i=F(e,t,!0);if(i)return r?e.replace(i,n):e;{const r=e.indexOf("?");let[i,o]=e.split("#"),s="&";return r<0?s="?":r===e.length-1&&(s=""),o&&(o="#".concat(o)),"".concat(i).concat(s).concat(t,"=").concat(n).concat(o||"")}}function H(e,t,n){var r=this;if("function"!=typeof e)throw new TypeError("Expected a function.");let i;return function(){for(var o=arguments.length,s=new Array(o),a=0;a<o;a++)s[a]=arguments[a];const c=()=>{i=null,n||e.apply(r,s)},l=n&&!i;clearTimeout(i),i=setTimeout(c,t),l&&e.apply(r,s)}}function z(e){const t=document.cookie.match(new RegExp("(^| )"+e+"=([^;]+)"));return t&&t[2]}function G(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const r=document.createEvent("CustomEvent");r.initCustomEvent(t,!0,!0,n),e.dispatchEvent(r)}function W(){let e,t;const n=new Promise((n,r)=>{e=n,t=r});return n.resolve=e,n.reject=t,n}function K(e){return"string"!=typeof e?null:e.split("?")[0]}var V=Object.freeze({__proto__:null,closest:O,onload:N,UnloadHandler:x,PagehideHandler:M,makeArray:D,outerWidth:function(e){let t=e.offsetWidth,n=getComputedStyle(e);return t+=(parseInt(n.marginLeft,10)||0)+(parseInt(n.marginRight,10)||0),t},elementInViewport:U,hasElementScrolledToThreshold:B,getQueryParam:F,addTrackingCode:q,addQueryParam:j,debounce:H,getCookie:z,dispatchCustomEvent:G,getDeferredPromise:W,isDocumentHidden:function(e){return void 0!==e.msHidden?e.msHidden:void 0!==e.hidden?e.hidden:void 0},stripQueryParams:K});class Q{constructor(e,t,n){let{mainButton:r,closeButton:i}=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(!r)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=r,this.closeButton=i,this.buttons=[r],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(R(e.key)){case C.ENTER:case C.SPACEBAR:e.preventDefault(),this.isOpen?this.close():this._open(e);break;case C.ARROW_UP:this.isOpen||this._open(e);break;case C.ARROW_DOWN:this.isOpen&&this.close()}}_onKeyUp(e){R(e.key)===C.SPACEBAR&&e.preventDefault()}_onKeyDown(e){const t=R(e.key);if(t===C.ESCAPE&&this.isOpen)this.close();else if(this._isList){let n;switch(t){case C.SPACEBAR:G(e.target,"click");break;case C.ARROW_LEFT:case C.ARROW_UP:n=O(e.target,"li");let t=n.previousElementSibling;t&&G(t,"focusEl");break;case C.ARROW_RIGHT:case C.ARROW_DOWN:n=O(e.target,"li");let r=n.nextElementSibling;r&&G(r,"focusEl")}}}_open(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!this.isOpen){const{key:t}=e;this.isOpen=!0,this.buttons.forEach(e=>e.setAttribute("aria-expanded",this.isOpen)),G(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)),G(this.el,"close"),e&&this.mainButton.focus())}}let X,J;const Y=['a[href]:not([tabindex^="-"])','area[href]:not([tabindex^="-"])','input:not([disabled]):not([tabindex^="-"]):not([type="hidden"])','select:not([disabled]):not([tabindex^="-"])','textarea:not([disabled]):not([tabindex^="-"])','button:not([disabled]):not([tabindex^="-"])','[tabindex]:not([tabindex^="-"]):not([disabled])'].join(",");function Z(e){const t=window.getComputedStyle(e);return"hidden"===t.visibility||"none"===t.display}function $(e){let t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:document.documentElement,r=arguments.length>2?arguments[2]:void 0;return e===n?!Z(e):r&&r.get(e)?r.get(e):(Z(e)?t=!1:e.parentNode&&(t=$(e.parentNode,n,r)),r&&r.set(e,t),t)}const ee={POLITE:"polite",ASSERTIVE:"assertive"};function te(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:ee.POLITE;X&&(X.removeAttribute("aria-hidden"),X.setAttribute("aria-live",ee.POLITE),X.textContent="",X.textContent=e,X.setAttribute("aria-live",t),clearTimeout(J),J=setTimeout(()=>{X.removeAttribute("aria-live"),X.setAttribute("aria-hidden","true")},1e4))}const ne=".".concat("collapsible-dropdown","__list"),re=".".concat("collapsible-dropdown","__button");class ie{constructor(e){let{getFocusItemFromListItem:t=(e=>e.querySelector(Y)),elementToFocus:n,dropdownTriggerEl:r,dropdownContentEl:i}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!e)throw Error("An element must be provided to CollapsibleDropdown");if(this.el=e,this.dropdownContentEl=i||this.el.querySelector(ne),!n){const e=this.dropdownContentEl===this.dropdownContentEl.parentElement.querySelector(Y),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=r||this.el.querySelector(re),this.hideClass="hidden",this.collapsible=new Q(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(){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))}_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})}_showDropdownList(e){this.el.addEventListener("focusout",this._focusOutsideDropdown),window.addEventListener("blur",this._leaveWindow),this.dropdownContentEl.classList.remove(this.hideClass),this.elementToFocus.focus();const{key:t}=e&&e.detail;t?this.elementToFocus.classList.remove("no-focus-ring"):this.elementToFocus.classList.add("no-focus-ring"),document.addEventListener("mousedown",this._handleBodyClick)}_hideDropdownList(){document.removeEventListener("mousedown",this._handleBodyClick),this.el.removeEventListener("focusout",this._focusOutsideDropdown),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()}_leaveWindow(){this.collapsible.isOpen&&this.collapsible.close()}}function oe(e){let{method:t="GET",headers:n={},sendCookies:r=!0,skipCsrfToken:i=!1,postData:o,isPemEnabled:s=!1,pemDegradationTrackingMetadata:a=[],pemEntityIds:c=[]}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const l=new Promise((s,a)=>{const c=new XMLHttpRequest;if(c.addEventListener("load",(function(){if(c.status>=200&&c.status<300||304===c.status)s({status:c.status,responseText:c.responseText});else{const n=new Error("".concat(t," request for ").concat(e," has failed with status code ").concat(c.status));n.response={status:c.status,responseText:c.responseText},c.response&&(n.response.rawHeaders=c.getAllResponseHeaders()),a(n)}})),c.addEventListener("error",(function(e){a(e)})),c.open(t,e,!0),c.withCredentials=r,Object.keys(n).forEach(e=>{c.setRequestHeader(e,n[e])}),!i){const e=z("JSESSIONID");e&&c.setRequestHeader("Csrf-Token",I(e))}c.send(o)});return s&&(a.length?se(l,e,c,a):console.warn("Please set the value for the option pemDegradationTrackingMetadata when PEM is enabled.")),l}function se(e,t,n,r){try{const i=e.then((function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return new Response(e,{status:e.status})})).catch((function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return new Response(e.response,{status:e.response?e.response.status:500,headers:e.response&&e.response.rawHeaders?ae(e.response.rawHeaders):new Headers})}));window.tracking.then(e=>{window.pemTracking.then(o=>{o.trackFeatureDegradationsForFetch(t,n,r,i,e.state.currentPageInstance)})})}catch(e){}}function ae(e){const t=new Headers;return e&&e.trim().split(/[\r\n]+/).forEach(e=>{const n=e.trim().split(": "),r=n.shift();if(r){const e=n.join(": ");t.set(r.toLocaleLowerCase(),e)}}),t}class ce{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 ie(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=I(z("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}(k(document));return oe("".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 le="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==t.g?t.g:"undefined"!=typeof self?self:{},ue=(parseInt,"object"==typeof le&&le&&le.Object===Object&&le),de="object"==typeof self&&self&&self.Object===Object&&self;ue||de||Function("return this")(),Object.prototype.toString,Math.max,Math.min;function he(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function pe(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?he(Object(n),!0).forEach((function(t){fe(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):he(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function fe(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const me="light",ve="dark";function ge(){const e=document.getElementById("config");let t;return e&&e.dataset&&(t=e.dataset.theme),t?document.documentElement.classList.contains("dark")?ve:me:void 0}var ye;function be(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o=[],s=!0,a=!1;try{for(n=n.call(e);!(s=(r=n.next()).done)&&(o.push(r.value),!t||o.length!==t);s=!0);}catch(e){a=!0,i=e}finally{try{s||null==n.return||n.return()}finally{if(a)throw i}}return o}}(e,t)||Ie(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 Ee(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=Ie(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,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 we(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function _e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Te(e,t,n){return t&&_e(e.prototype,t),n&&_e(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Se(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ke(e){return function(e){if(Array.isArray(e))return Ce(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||Ie(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 Ie(e,t){if(e){if("string"==typeof e)return Ce(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)?Ce(e,t):void 0}}function Ce(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Ae(e){return(Ae="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 Re,Oe=new Uint8Array(16);function Ne(){if(!Re&&!(Re="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 Re(Oe)}var Le=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;function xe(e){return"string"==typeof e&&Le.test(e)}for(var Pe=[],Me=0;Me<256;++Me)Pe.push((Me+256).toString(16).substr(1));function De(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=(Pe[e[t+0]]+Pe[e[t+1]]+Pe[e[t+2]]+Pe[e[t+3]]+"-"+Pe[e[t+4]]+Pe[e[t+5]]+"-"+Pe[e[t+6]]+Pe[e[t+7]]+"-"+Pe[e[t+8]]+Pe[e[t+9]]+"-"+Pe[e[t+10]]+Pe[e[t+11]]+Pe[e[t+12]]+Pe[e[t+13]]+Pe[e[t+14]]+Pe[e[t+15]]).toLowerCase();if(!xe(n))throw TypeError("Stringified UUID is invalid");return n}function Ue(e){if(!xe(e))throw TypeError("Invalid UUID");var t,n=new Uint8Array(16);return n[0]=(t=parseInt(e.slice(0,8),16))>>>24,n[1]=t>>>16&255,n[2]=t>>>8&255,n[3]=255&t,n[4]=(t=parseInt(e.slice(9,13),16))>>>8,n[5]=255&t,n[6]=(t=parseInt(e.slice(14,18),16))>>>8,n[7]=255&t,n[8]=(t=parseInt(e.slice(19,23),16))>>>8,n[9]=255&t,n[10]=(t=parseInt(e.slice(24,36),16))/1099511627776&255,n[11]=t/4294967296&255,n[12]=t>>>24&255,n[13]=t>>>16&255,n[14]=t>>>8&255,n[15]=255&t,n}function Be(e,t,n){function r(e,r,i,o){if("string"==typeof e&&(e=function(e){e=unescape(encodeURIComponent(e));for(var t=[],n=0;n<e.length;++n)t.push(e.charCodeAt(n));return t}(e)),"string"==typeof r&&(r=Ue(r)),16!==r.length)throw TypeError("Namespace must be array-like (16 iterable integer values, 0-255)");var s=new Uint8Array(16+e.length);if(s.set(r),s.set(e,r.length),(s=n(s))[6]=15&s[6]|t,s[8]=63&s[8]|128,i){o=o||0;for(var a=0;a<16;++a)i[o+a]=s[a];return i}return De(s)}try{r.name=e}catch(e){}return r.DNS="6ba7b810-9dad-11d1-80b4-00c04fd430c8",r.URL="6ba7b811-9dad-11d1-80b4-00c04fd430c8",r}function Fe(e){return 14+(e+64>>>9<<4)+1}function qe(e,t){var n=(65535&e)+(65535&t);return(e>>16)+(t>>16)+(n>>16)<<16|65535&n}function je(e,t,n,r,i,o){return qe((s=qe(qe(t,e),qe(r,o)))<<(a=i)|s>>>32-a,n);var s,a}function He(e,t,n,r,i,o,s){return je(t&n|~t&r,e,t,i,o,s)}function ze(e,t,n,r,i,o,s){return je(t&r|n&~r,e,t,i,o,s)}function Ge(e,t,n,r,i,o,s){return je(t^n^r,e,t,i,o,s)}function We(e,t,n,r,i,o,s){return je(n^(t|~r),e,t,i,o,s)}function Ke(e,t,n){var r=(e=e||{}).random||(e.rng||Ne)();if(r[6]=15&r[6]|64,r[8]=63&r[8]|128,t){n=n||0;for(var i=0;i<16;++i)t[n+i]=r[i];return t}return De(r)}function Ve(e,t,n,r){switch(e){case 0:return t&n^~t&r;case 1:return t^n^r;case 2:return t&n^t&r^n&r;case 3:return t^n^r}}function Qe(e,t){return e<<t|e>>>32-t}Be("v3",48,(function(e){if("string"==typeof e){var t=unescape(encodeURIComponent(e));e=new Uint8Array(t.length);for(var n=0;n<t.length;++n)e[n]=t.charCodeAt(n)}return function(e){for(var t=[],n=32*e.length,r="0123456789abcdef",i=0;i<n;i+=8){var o=e[i>>5]>>>i%32&255,s=parseInt(r.charAt(o>>>4&15)+r.charAt(15&o),16);t.push(s)}return t}(function(e,t){e[t>>5]|=128<<t%32,e[Fe(t)-1]=t;for(var n=1732584193,r=-271733879,i=-1732584194,o=271733878,s=0;s<e.length;s+=16){var a=n,c=r,l=i,u=o;n=He(n,r,i,o,e[s],7,-680876936),o=He(o,n,r,i,e[s+1],12,-389564586),i=He(i,o,n,r,e[s+2],17,606105819),r=He(r,i,o,n,e[s+3],22,-1044525330),n=He(n,r,i,o,e[s+4],7,-176418897),o=He(o,n,r,i,e[s+5],12,1200080426),i=He(i,o,n,r,e[s+6],17,-1473231341),r=He(r,i,o,n,e[s+7],22,-45705983),n=He(n,r,i,o,e[s+8],7,1770035416),o=He(o,n,r,i,e[s+9],12,-1958414417),i=He(i,o,n,r,e[s+10],17,-42063),r=He(r,i,o,n,e[s+11],22,-1990404162),n=He(n,r,i,o,e[s+12],7,1804603682),o=He(o,n,r,i,e[s+13],12,-40341101),i=He(i,o,n,r,e[s+14],17,-1502002290),n=ze(n,r=He(r,i,o,n,e[s+15],22,1236535329),i,o,e[s+1],5,-165796510),o=ze(o,n,r,i,e[s+6],9,-1069501632),i=ze(i,o,n,r,e[s+11],14,643717713),r=ze(r,i,o,n,e[s],20,-373897302),n=ze(n,r,i,o,e[s+5],5,-701558691),o=ze(o,n,r,i,e[s+10],9,38016083),i=ze(i,o,n,r,e[s+15],14,-660478335),r=ze(r,i,o,n,e[s+4],20,-405537848),n=ze(n,r,i,o,e[s+9],5,568446438),o=ze(o,n,r,i,e[s+14],9,-1019803690),i=ze(i,o,n,r,e[s+3],14,-187363961),r=ze(r,i,o,n,e[s+8],20,1163531501),n=ze(n,r,i,o,e[s+13],5,-1444681467),o=ze(o,n,r,i,e[s+2],9,-51403784),i=ze(i,o,n,r,e[s+7],14,1735328473),n=Ge(n,r=ze(r,i,o,n,e[s+12],20,-1926607734),i,o,e[s+5],4,-378558),o=Ge(o,n,r,i,e[s+8],11,-2022574463),i=Ge(i,o,n,r,e[s+11],16,1839030562),r=Ge(r,i,o,n,e[s+14],23,-35309556),n=Ge(n,r,i,o,e[s+1],4,-1530992060),o=Ge(o,n,r,i,e[s+4],11,1272893353),i=Ge(i,o,n,r,e[s+7],16,-155497632),r=Ge(r,i,o,n,e[s+10],23,-1094730640),n=Ge(n,r,i,o,e[s+13],4,681279174),o=Ge(o,n,r,i,e[s],11,-358537222),i=Ge(i,o,n,r,e[s+3],16,-722521979),r=Ge(r,i,o,n,e[s+6],23,76029189),n=Ge(n,r,i,o,e[s+9],4,-640364487),o=Ge(o,n,r,i,e[s+12],11,-421815835),i=Ge(i,o,n,r,e[s+15],16,530742520),n=We(n,r=Ge(r,i,o,n,e[s+2],23,-995338651),i,o,e[s],6,-198630844),o=We(o,n,r,i,e[s+7],10,1126891415),i=We(i,o,n,r,e[s+14],15,-1416354905),r=We(r,i,o,n,e[s+5],21,-57434055),n=We(n,r,i,o,e[s+12],6,1700485571),o=We(o,n,r,i,e[s+3],10,-1894986606),i=We(i,o,n,r,e[s+10],15,-1051523),r=We(r,i,o,n,e[s+1],21,-2054922799),n=We(n,r,i,o,e[s+8],6,1873313359),o=We(o,n,r,i,e[s+15],10,-30611744),i=We(i,o,n,r,e[s+6],15,-1560198380),r=We(r,i,o,n,e[s+13],21,1309151649),n=We(n,r,i,o,e[s+4],6,-145523070),o=We(o,n,r,i,e[s+11],10,-1120210379),i=We(i,o,n,r,e[s+2],15,718787259),r=We(r,i,o,n,e[s+9],21,-343485551),n=qe(n,a),r=qe(r,c),i=qe(i,l),o=qe(o,u)}return[n,r,i,o]}(function(e){if(0===e.length)return[];for(var t=8*e.length,n=new Uint32Array(Fe(t)),r=0;r<t;r+=8)n[r>>5]|=(255&e[r/8])<<r%32;return n}(e),8*e.length))})),Be("v5",80,(function(e){var t=[1518500249,1859775393,2400959708,3395469782],n=[1732584193,4023233417,2562383102,271733878,3285377520];if("string"==typeof e){var r=unescape(encodeURIComponent(e));e=[];for(var i=0;i<r.length;++i)e.push(r.charCodeAt(i))}else Array.isArray(e)||(e=Array.prototype.slice.call(e));e.push(128);for(var o=e.length/4+2,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]=Qe(h[f-3]^h[f-8]^h[f-14]^h[f-16],1);for(var m=n[0],v=n[1],g=n[2],y=n[3],b=n[4],E=0;E<80;++E){var w=Math.floor(E/20),_=Qe(m,5)+Ve(w,v,g,y)+b+t[w]+h[E]>>>0;b=y,y=g,g=Qe(v,30)>>>0,v=m,m=_}n[0]=n[0]+m>>>0,n[1]=n[1]+v>>>0,n[2]=n[2]+g>>>0,n[3]=n[3]+y>>>0,n[4]=n[4]+b>>>0}return[n[0]>>24&255,n[0]>>16&255,n[0]>>8&255,255&n[0],n[1]>>24&255,n[1]>>16&255,n[1]>>8&255,255&n[1],n[2]>>24&255,n[2]>>16&255,n[2]>>8&255,255&n[2],n[3]>>24&255,n[3]>>16&255,n[3]>>8&255,255&n[3],n[4]>>24&255,n[4]>>16&255,n[4]>>8&255,255&n[4]]}));var Xe=null;if("undefined"==typeof crypto||!crypto.getRandomValues){var Je=("undefined"!=typeof FastBoot?FastBoot.require:require)("crypto");if(Je){var Ye=new Uint8Array(256),Ze=Ye.length;Xe={rng:function(){return Ze>Ye.length-16&&(Je.randomFillSync(Ye),Ze=0),Ye.slice(Ze,Ze+=16)}}}}"object"===("undefined"==typeof crypto?"undefined":Ae(crypto))&&crypto.randomUUID;function $e(){return Ke(Xe,new Array(16),0)}function et(e){return ke(e).map((function(e){return String.fromCharCode(e)})).join("")}function tt(){return et($e())}var nt=/^[a-zA-Z0-9/+]+[=]+$/;function rt(e,t){return{pageUrn:ot(e),trackingId:t||function(e){for(var t,n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",r=[],i=0,o=e.length,s=o%3,a=o-s;i<a;)t=e[i]<<16,t|=e[i+1]<<8,t|=e[i+2],r.push(n.charAt(t>>>18&63)),r.push(n.charAt(t>>>12&63)),r.push(n.charAt(t>>>6&63)),r.push(n.charAt(63&t)),i+=3;switch(s){case 2:t=e[i]<<16,t|=e[i+1]<<8,r.push(n.charAt(t>>>18&63)),r.push(n.charAt(t>>>12&63)),r.push(n.charAt(t>>>6&63)),r.push("=");break;case 1:t=e[i]<<16,r.push(n.charAt(t>>>18&63)),r.push(n.charAt(t>>>12&63)),r.push("="),r.push("=")}return r.join("")}($e())}}function it(e,t){return"urn:li:control:".concat(e,"-").concat(t)}function ot(e){return"urn:li:page:".concat(e)}function st(e,t){return{pageInstance:t.assign({},e.pageInstance),pageKey:e.pageKey,applicationInstance:e.applicationInstance}}function at(e,t){return void 0!==t.allSettled?t.allSettled(e):function(e){return new Promise((function(t){var n=new Set,r=function(e){n.delete(e),0===n.size&&t()};0===e.length?t():e.map((function(e){return e.then((function(){return r(e)})).catch((function(){return r(e)}))}))}))}(e)}function ct(e){var t=[];return e.forEach((function(e){return t.push(e)})),t}function lt(e,t){if("undefined"!=typeof window&&window.indexedDB){var n="sequenceNumber",r=window.indexedDB.open(n);return new Promise((function(i,o){r.onupgradeneeded=function(){var e=r.result;e.objectStoreNames.contains(n)||e.createObjectStore(n,{autoIncrement:!0})},r.onsuccess=function(){var s=r.result,a=s.transaction(n,"readwrite"),c=a.objectStore(n),l=c.get(1);l.onsuccess=function(){var n=l.result;if(n){var r,s=null!==(r=n.sequenceNumber)&&void 0!==r?r:0;if("read"===e)return i(s);if(!("update"===e&&void 0!==t&&t>s))return i(null);var a=c.put({sequenceNumber:t},1);a.onsuccess=function(){return i(null)},a.onerror=function(){o(a.error)}}else{var u=c.add({sequenceNumber:0});u.onsuccess=function(){return i(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()}},r.onerror=function(){return i(null)}}))}return Promise.resolve(null)}function ut(e,t,n){var r=e.get(t);r&&r.push(n)||e.set(t,[n])}function dt(e,t,n){var r=e.get(t);r&&r.splice(r.indexOf(n)>>>0,1)}var ht,pt,ft=(ht=new Map,pt=new Map,{on:function(e,t){ut(ht,e,t)},before:function(e,t){ut(pt,e,t)},off:function(e,t){dt(ht,e,t)},offBefore:function(e,t){dt(pt,e,t)},emit:function(e,t){(pt.get(e)||[]).concat(ht.get(e)||[]).slice().map((function(e){e(t)}))},clear:function(){pt.clear(),ht.clear()}});if("undefined"!=typeof document&&"undefined"!=typeof window){var mt=function(e){"pagehide"!==e.type&&"hidden"!==document.visibilityState||ft.emit("internal:hide",e)};document.addEventListener("visibilitychange",mt),window.addEventListener("pagehide",mt)}var vt=Uint8Array,gt=Uint16Array,yt=Uint32Array,bt=new vt([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]),Et=new vt([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]),wt=new vt([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),_t=function(e,t){for(var n=new gt(31),r=0;r<31;++r)n[r]=t+=1<<e[r-1];var i=new yt(n[30]);for(r=1;r<30;++r)for(var o=n[r];o<n[r+1];++o)i[o]=o-n[r]<<5|r;return[n,i]},Tt=_t(bt,2),St=Tt[0],kt=Tt[1];St[28]=258,kt[258]=28;for(var It=_t(Et,0)[1],Ct=new gt(32768),At=0;At<32768;++At){var Rt=(43690&At)>>>1|(21845&At)<<1;Rt=(61680&(Rt=(52428&Rt)>>>2|(13107&Rt)<<2))>>>4|(3855&Rt)<<4,Ct[At]=((65280&Rt)>>>8|(255&Rt)<<8)>>>1}var Ot=function(e,t,n){for(var r=e.length,i=0,o=new gt(t);i<r;++i)e[i]&&++o[e[i]-1];var s,a=new gt(t);for(i=0;i<t;++i)a[i]=a[i-1]+o[i-1]<<1;if(n){s=new gt(1<<t);var c=15-t;for(i=0;i<r;++i)if(e[i])for(var l=i<<4|e[i],u=t-e[i],d=a[e[i]-1]++<<u,h=d|(1<<u)-1;d<=h;++d)s[Ct[d]>>>c]=l}else for(s=new gt(r),i=0;i<r;++i)e[i]&&(s[i]=Ct[a[e[i]-1]++]>>>15-e[i]);return s},Nt=new vt(288);for(At=0;At<144;++At)Nt[At]=8;for(At=144;At<256;++At)Nt[At]=9;for(At=256;At<280;++At)Nt[At]=7;for(At=280;At<288;++At)Nt[At]=8;var Lt=new vt(32);for(At=0;At<32;++At)Lt[At]=5;var xt=Ot(Nt,9,0),Pt=Ot(Lt,5,0),Mt=function(e){return(e+7)/8|0},Dt=function(e,t,n){n<<=7&t;var r=t/8|0;e[r]|=n,e[r+1]|=n>>>8},Ut=function(e,t,n){n<<=7&t;var r=t/8|0;e[r]|=n,e[r+1]|=n>>>8,e[r+2]|=n>>>16},Bt=function(e,t){for(var n=[],r=0;r<e.length;++r)e[r]&&n.push({s:r,f:e[r]});var i=n.length,o=n.slice();if(!i)return[Wt,0];if(1==i){var s=new vt(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!=i-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(r=1;r<i;++r)o[r].s>h&&(h=o[r].s);var p=new gt(h+1),f=Ft(n[u-1],p,0);if(f>t){r=0;var m=0,v=f-t,g=1<<v;for(o.sort((function(e,t){return p[t.s]-p[e.s]||e.f-t.f}));r<i;++r){var y=o[r].s;if(!(p[y]>t))break;m+=g-(1<<f-p[y]),p[y]=t}for(m>>>=v;m>0;){var b=o[r].s;p[b]<t?m-=1<<t-p[b]++-1:++r}for(;r>=0&&m;--r){var E=o[r].s;p[E]==t&&(--p[E],++m)}f=t}return[new vt(p),f]},Ft=function e(t,n,r){return-1==t.s?Math.max(e(t.l,n,r+1),e(t.r,n,r+1)):n[t.s]=r},qt=function(e){for(var t=e.length;t&&!e[--t];);for(var n=new gt(++t),r=0,i=e[0],o=1,s=function(e){n[r++]=e},a=1;a<=t;++a)if(e[a]==i&&a!=t)++o;else{if(!i&&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(i),--o;o>6;o-=6)s(8304);o>2&&(s(o-3<<5|8208),o=0)}for(;o--;)s(i);o=1,i=e[a]}return[n.subarray(0,r),t]},jt=function(e,t){for(var n=0,r=0;r<t.length;++r)n+=e[r]*t[r];return n},Ht=function(e,t,n){var r=n.length,i=Mt(t+2);e[i]=255&r,e[i+1]=r>>>8,e[i+2]=255^e[i],e[i+3]=255^e[i+1];for(var o=0;o<r;++o)e[i+o+4]=n[o];return 8*(i+4+r)},zt=function(e,t,n,r,i,o,s,a,c,l,u){Dt(t,u++,n),++i[256];for(var d=Bt(i,15),h=d[0],p=d[1],f=Bt(o,15),m=f[0],v=f[1],g=qt(h),y=g[0],b=g[1],E=qt(m),w=E[0],_=E[1],T=new gt(19),S=0;S<y.length;++S)T[31&y[S]]++;for(S=0;S<w.length;++S)T[31&w[S]]++;for(var k=Bt(T,7),I=k[0],C=k[1],A=19;A>4&&!I[wt[A-1]];--A);var R,O,N,L,x=l+5<<3,P=jt(i,Nt)+jt(o,Lt)+s,M=jt(i,h)+jt(o,m)+s+14+3*A+jt(T,I)+(2*T[16]+3*T[17]+7*T[18]);if(x<=P&&x<=M)return Ht(t,u,e.subarray(c,c+l));if(Dt(t,u,1+(M<P)),u+=2,M<P){R=Ot(h,p,0),O=h,N=Ot(m,v,0),L=m;var D=Ot(I,C,0);for(Dt(t,u,b-257),Dt(t,u+5,_-1),Dt(t,u+10,A-4),u+=14,S=0;S<A;++S)Dt(t,u+3*S,I[wt[S]]);u+=3*A;for(var U=[y,w],B=0;B<2;++B){var F=U[B];for(S=0;S<F.length;++S){var q=31&F[S];Dt(t,u,D[q]),u+=I[q],q>15&&(Dt(t,u,F[S]>>>5&127),u+=F[S]>>>12)}}}else R=xt,O=Nt,N=Pt,L=Lt;for(S=0;S<a;++S)if(r[S]>255){q=r[S]>>>18&31,Ut(t,u,R[q+257]),u+=O[q+257],q>7&&(Dt(t,u,r[S]>>>23&31),u+=bt[q]);var j=31&r[S];Ut(t,u,N[j]),u+=L[j],j>3&&(Ut(t,u,r[S]>>>5&8191),u+=Et[j])}else Ut(t,u,R[r[S]]),u+=O[r[S]];return Ut(t,u,R[256]),u+O[256]},Gt=new yt([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),Wt=new vt(0),Kt=function(){for(var e=new Int32Array(256),t=0;t<256;++t){for(var n=t,r=9;--r;)n=(1&n&&-306674912)^n>>>1;e[t]=n}return e}(),Vt=function(e,t,n){for(;n;++t)e[t]=n,n>>>=8};function Qt(e,t){t||(t={});var n=function(){var e=-1;return{p:function(t){for(var n=e,r=0;r<t.length;++r)n=Kt[255&n^t[r]]^n>>>8;e=n},d:function(){return~e}}}(),r=e.length;n.p(e);var i,o,s,a=(i=e,o=t,s=function(e){return 10+(e.filename&&e.filename.length+1||0)}(t),8,function(e,t,n,r,i,o){var s=e.length,a=new vt(r+s+5*(1+Math.ceil(s/7e3))+i),c=a.subarray(r,a.length-i),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=Ht(c,l+1,e.subarray(u,d))}else{for(var h=Gt[t-1],p=h>>>13,f=8191&h,m=(1<<n)-1,v=new gt(32768),g=new gt(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},w=new yt(25e3),_=new gt(288),T=new gt(32),S=0,k=0,I=(u=0,0),C=0,A=0;u<s;++u){var R=E(u),O=32767&u,N=g[R];if(v[O]=N,g[R]=O,C<=u){var L=s-u;if((S>7e3||I>24576)&&L>423){l=zt(e,c,0,w,_,T,k,I,A,u-A,l),I=S=k=0,A=u;for(var x=0;x<286;++x)_[x]=0;for(x=0;x<30;++x)T[x]=0}var P=2,M=0,D=f,U=O-N&32767;if(L>2&&R==E(u-U))for(var B=Math.min(p,L)-1,F=Math.min(32767,u),q=Math.min(258,L);U<=F&&--D&&O!=N;){if(e[u+P]==e[u+P-U]){for(var j=0;j<q&&e[u+j]==e[u+j-U];++j);if(j>P){if(P=j,M=U,j>B)break;var H=Math.min(U,j-2),z=0;for(x=0;x<H;++x){var G=u-U+x+32768&32767,W=G-v[G]+32768&32767;W>z&&(z=W,N=G)}}}U+=(O=N)-(N=v[O])+32768&32767}if(M){w[I++]=268435456|kt[P]<<18|It[M];var K=31&kt[P],V=31&It[M];k+=bt[K]+Et[V],++_[257+K],++T[V],C=u+P,++S}else w[I++]=e[u],++_[e[u]]}}l=zt(e,c,o,w,_,T,k,I,A,u-A,l),!o&&7&l&&(l=Ht(c,l+1,Wt))}return function(e,t,n){(null==t||t<0)&&(t=0),(null==n||n>e.length)&&(n=e.length);var r=new(2==e.BYTES_PER_ELEMENT?gt:4==e.BYTES_PER_ELEMENT?yt:vt)(n-t);return r.set(e.subarray(t,n)),r}(a,0,r+Mt(l)+i)}(i,null==o.level?6:o.level,null==o.mem?Math.ceil(1.5*Math.max(8,Math.min(13,Math.log(i.length)))):12+o.mem,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&&Vt(e,4,Math.floor(new Date(t.mtime||Date.now())/1e3)),n){e[3]=8;for(var r=0;r<=n.length;++r)e[r+10]=n.charCodeAt(r)}}(a,t),Vt(a,c-8,n.d()),Vt(a,c-4,r),a}var Xt="undefined"!=typeof TextDecoder&&new TextDecoder;try{Xt.decode(Wt,{stream:!0})}catch(Ur){}function Jt(){return"undefined"!=typeof window&&"function"==typeof window.fetch}function Yt(){try{return Jt()&&"keepalive"in new Request("")}catch(e){return!1}}function Zt(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if("undefined"!=typeof window&&void 0!==window.XMLHttpRequest){var r=new XMLHttpRequest;if(r.open("POST",e,!0),r.withCredentials=!0,n.headers)for(var i=0,o=Object.keys(n.headers);i<o.length;i++){var s=o[i];r.setRequestHeader(s,n.headers[s])}r.send(t)}}function $t(e){var t=e.body,n=e.keepalive,r=e.headers,i=e.compress;r["content-type"]||(r["content-type"]="text/plain;charset=UTF-8");var o=t;if(i&&"undefined"!=typeof TextEncoder)try{o=Qt((new TextEncoder).encode(t)),r["content-encoding"]="gzip"}catch(e){}return{body:o,keepalive:n,credentials:"include",headers:r,method:"POST",mode:"cors"}}function en(e){return e&&"message"in e?e.message:"UNKNOWN_ERROR"}var tn,nn="undefined"!=typeof navigator&&"sendBeacon"in navigator,rn=Yt()?function(e,t,n,r){return new Promise((function(i){fetch(e,$t({body:t,keepalive:!0,headers:n,compress:r})).catch((function(){return fetch(e,$t({body:t,keepalive:!1,headers:n,compress:r}))})).then((function(e){e.ok?i({type:"success",drop:!1,statusCode:e.status}):i({type:"response",drop:!0,statusCode:e.status,rawError:e.statusText})}),(function(e){return i({type:"network",drop:!0,rawError:en(e)})}))}))}:function(e,t,n,r){return new Promise((function(i){if(nn){var o=!1;try{o=navigator.sendBeacon(e,t)}catch(e){}if(o)return void i({type:"unknown",drop:!1})}fetch(e,$t({body:t,keepalive:!1,headers:n,compress:r})).then((function(e){e.ok?i({type:"success",drop:!1,statusCode:200}):i({type:"response",drop:!0,statusCode:e.status,rawError:e.statusText})}),(function(e){return i({type:"network",drop:!0,rawError:en(e)})}))}))};function on(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 sn(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"key",r=arguments.length>3?arguments[3]:void 0,i=indexedDB.open(e);i.onupgradeneeded=function(){try{i.result.createObjectStore(t,{keyPath:n})}catch(e){null==r||r.onError(e)}};var o=new Promise((function(e,t){i.onsuccess=function(){var t=i.result;t.onversionchange=function(){return t.close()},e(t),null==r||r.onSuccess()},i.onerror=function(){t(i.error),null==r||r.onError(i.error)}}));return function(e,n){return o.then((function(r){return n(r.transaction(t,e).objectStore(t))}))}}function an(){return tn||(tn=sn("idb-queue","default")),tn}function cn(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{maxNumber:1e3,batchEvictionNumber:300},n=0,r=null;return e.openKeyCursor().onsuccess=function(){var i=this.result;i&&n++<t.batchEvictionNumber?(r=i.key,i.continue()):null!=r&&e.delete(IDBKeyRange.upperBound(r))},on(e.transaction)}function ln(){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]:an();return t("readwrite",(function(t){return cn(t,e)}))}var un=!1;function dn(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]:an();return n("readwrite",(function(n){return n.put(e),on(n.count()).then((function(e){if(!(e<=t.maxNumber))return cn(n,t)}))})).catch((function(e){if(e&&"QuotaExceededError"===e.name)return ln(t,n)}))}function hn(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]:an();return un?Promise.resolve():dn(e,t,n)}function pn(e,t,n){return t("readwrite",(function(t){var r=[];return t.openCursor(null,n).onsuccess=function(){var t=this.result;t&&(r.push(t.value),t.delete(),(e<0||r.length<e)&&t.continue())},on(t.transaction).then((function(){return r}))}))}function fn(e,t,n){return t("readonly",(function(t){var r=[];return t.openCursor(null,n).onsuccess=function(){var t=this.result;t&&(r.push(t.value),(e<0||r.length<e)&&t.continue())},on(t.transaction).then((function(){return r}))}))}function mn(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:an();return fn(e,t,"next")}function vn(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:an();return fn(e,t,"prev")}function gn(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0,n=arguments.length>2?arguments[2]:void 0,r=arguments.length>3?arguments[3]:void 0;return!t||n<1||(e[t]=JSON.stringify({attempt:n,errorCode:r})),e}function yn(e){"undefined"!=typeof window&&window.__DEBUG_BEACON_TRANSPORTER&&console.debug("[beacon-transporter] ",e())}function bn(e){"undefined"!=typeof window&&window.__DEBUG_BEACON_TRANSPORTER&&console.error("[beacon-transporter] ",e())}function En(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{timeRemaining:5,timeout:1e4};if("undefined"==typeof requestIdleCallback)setTimeout(e,t.fallbackTimeout||10);else{var n=function n(){requestIdleCallback((function(r){r.timeRemaining()>t.timeRemaining||r.didTimeout?e():n()}),{timeout:t.timeout})};n()}}function wn(e,t){var n=0;return{throttledFn:function(){var r=Date.now();r-n>t&&(yn((function(){return"[throttle] Run fn() at "+String(r)})),e(),n=r)},resetThrottle:function(){n=0}}}var _n=function(){function e(t){var n=this,r=arguments.length>1&&void 0!==arguments[1]&&arguments[1];we(this,e),Se(this,"config",void 0),Se(this,"compress",void 0),Se(this,"throttleControl",void 0),Se(this,"withStore",void 0),Se(this,"disablePersistence",!1),this.config=t,this.compress=r;var i=t.measureIDB;i&&performance.mark(i.createStartMark),this.withStore=sn(t.idbName,"beacons","timestamp",{onSuccess:function(){i&&performance.measure(i.createSuccessMeasure,i.createStartMark)},onError:function(){i&&performance.measure(i.createFailMeasure,i.createStartMark),n.disablePersistence=!0}}),this.throttleControl=wn(this.replayEntries.bind(this),t.throttleWait)}return Te(e,[{key:"onNotify",value:function(){this.disablePersistence||this.throttleControl.throttledFn()}},{key:"push",value:function(e){var t=this;if(!this.disablePersistence){var n=function(){yn((function(){return"Persisting to DB "+e.url})),hn(e,t.config,t.withStore).then((function(){t.throttleControl.resetThrottle(),yn((function(){return"push completed"}))})).catch((function(){t.disablePersistence=!0,bn((function(){return"push failed"}))}))};this.config.useIdle?En(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]:an();return un=!0,e("readwrite",(function(e){return e.clear(),on(e.transaction).finally((function(){return un=!1}))}))}(this.withStore).catch((function(){e.disablePersistence=!0,bn((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([]):mn(t,this.withStore).catch((function(){return e.disablePersistence=!0,bn((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([]):vn(t,this.withStore).catch((function(){return e.disablePersistence=!0,bn((function(){return"peekBack failed"})),[]}))}},{key:"replayEntries",value:function(){var e=this;if(!this.disablePersistence){var t=function(){yn((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]:an();return pn(e,t,"next")}(1,e.withStore).then((function(t){if(t.length>0){var n,r,i=t[0],o=i.url,s=i.body,a=i.headers,c=i.timestamp,l=i.statusCode,u=i.attemptCount;return yn((function(){return"header: ".concat(String(e.config.headerName),"; attemptCount: ").concat(u)})),null===(n=(r=e.config).onBeforeRetry)||void 0===n||n.call(r,s),rn(o,s,gn(a,e.config.headerName,u,l),e.compress).then((function(t){if("unknown"===t.type||"success"===t.type){var n,r;null===(n=(r=e.config).onResult)||void 0===n||n.call(r,t,s),e.replayEntries()}else{var i,a,d,h,p,f;if(u+1>e.config.attemptLimit)return yn((function(){return"Exceeded attempt count, dropping the entry: "+JSON.stringify({url:o,timestamp:c,statusCode:l},null,2)})),t.drop=!0,void(null===(i=(a=e.config).onResult)||void 0===i||i.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),yn((function(){return"Replaying the entry failed, pushing back to IDB: "+JSON.stringify({url:o,timestamp:c,statusCode:l},null,2)})),hn({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&&bn((function(){return"Replay entry failed: ".concat(t.message)}))}))};this.config.useIdle?En(t):t()}}}]),e}(),Tn=function(){function e(){we(this,e)}return Te(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}(),Sn=function(){function e(t,n){we(this,e),Se(this,"queue",void 0),Se(this,"beaconListeners",new Set),this.queue=e.hasSupport&&!n.disablePersistenceRetry?new _n(t,n.compress):new Tn}return Te(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}();Se(Sn,"hasSupport","undefined"!=typeof globalThis&&!!globalThis.indexedDB);var kn=[502,504],In=[429,503],Cn=function(){function e(t,n,r,i){var o=this,s=arguments.length>4&&void 0!==arguments[4]&&arguments[4];we(this,e),Se(this,"url",void 0),Se(this,"body",void 0),Se(this,"config",void 0),Se(this,"persistenceConfig",void 0),Se(this,"compress",void 0),Se(this,"timestamp",void 0),Se(this,"isClearQueuePending",!1),Se(this,"onClearCallback",void 0),this.url=t,this.body=n,this.config=r,this.persistenceConfig=i,this.compress=s,this.timestamp=Date.now(),this.onClearCallback=function(){return o.isClearQueuePending=!0}}return Te(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 rn(e.url,e.body,t,e.compress)}),n,t).finally((function(){yn((function(){return"beacon finished"})),e.persistenceConfig.db.removeOnClear(e.onClearCallback)}))}},{key:"retryLimit",get:function(){return this.config.attemptLimit}},{key:"getAttemptCount",value:function(e){return this.retryLimit-e+1}},{key:"retry",value:function(e,t,n,r){var i=this,o=this.getAttemptCount(t)-1;return e(gn(n,this.config.headerName,o,r)).then((function(r){var o,s,a,c;if(r.drop=!1,"unknown"===r.type||"success"===r.type)i.isClearQueuePending||i.persistenceConfig.disabled||i.persistenceConfig.db.notifyQueue(),a=r;else if(yn((function(){return"retry rejected "+JSON.stringify(r)})),i.shouldPersist(t,r))i.persistenceConfig.db.pushToQueue({url:i.url,body:i.body,headers:n,statusCode:r.statusCode,timestamp:i.timestamp,attemptCount:i.getAttemptCount(t)}),a={type:"persisted",drop:!1,statusCode:r.statusCode};else{if(t>0&&i.isRetryableError(r)){var l,u;null===(l=(u=i.config).onIntermediateResult)||void 0===l||l.call(u,r,i.body);var d=i.config.calculateRetryDelay(i.getAttemptCount(t),t);return yn((function(){return"in memory retry in ".concat(d,"ms")})),(c=d,new Promise((function(e){return setTimeout(e,c)}))).then((function(){return i.retry(e,t-1,n,r.statusCode)}))}(a=r).drop=!0}return null===(o=(s=i.config).onIntermediateResult)||void 0===o||o.call(s,a,i.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 An(e,t,n,r,i){"control"!==r&&e.retryConfig&&function(){if("undefined"==typeof Promise||"undefined"==typeof navigator)return!1;var e=navigator.userAgent.indexOf("Chrome")>-1,t=navigator.cookieEnabled,n=navigator.storage;return e&&Yt()&&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==i?void 0:i.onIntermediateResult,attemptLimit:c.attemptLimit,statusCodes:c.statusCodes,headerName:"x-li-retry-context",calculateRetryDelay:function(e){return function(e){return 1e3*Math.pow(2,e)}(e)}},disablePersistenceRetry:e.retryConfig.disablePersistence,persistenceRetry:{onBeforeRetry:null==i?void 0:i.onBeforeRetry,onResult:null==i?void 0:i.onResult,idbName:"beacons",attemptLimit: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),r=Object.assign({attemptLimit:0,statusCodes:kn,calculateRetryDelay:function(e,t){return 2e3*t}},t.inMemoryRetry);if(t.retryDB)e=t.retryDB;else{var i=Object.assign({idbName:"beacon-transporter",attemptLimit:3,statusCodes:In,maxNumber:1e3,batchEvictionNumber:300,throttleWait:3e5},t.persistenceRetry);i.headerName=i.headerName||r.headerName,e=new Sn(i,{compress:t.compress,disablePersistenceRetry:t.disablePersistenceRetry})}return{beacon:function(i,o,s){var a;return Jt()?new Cn(i,o,r,{db:e,disabled:Boolean(t.disablePersistenceRetry),statusCodes:(null===(a=t.persistenceRetry)||void 0===a?void 0:a.statusCodes)||In},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"===r?(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){ft.emit("internal:error",{tags:["core-web-tracking:retry:idb"],reason:e})})):(e.retryBeacon.shouldRetry=!0,Promise.resolve())):void 0})).catch((function(e){ft.emit("internal:error",{tags:["core-web-tracking:retry:setup"],reason:e})}))}var Rn=function(){function e(t){we(this,e),Se(this,"host",void 0),this.host=t}return Te(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&&An(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){ft.emit("internal:error",{tags:["core-web-tracking:retry:logout"],reason:e})}))}},{key:"sendPayload",value:function(e,t,n,r){var i,o=this.getRetryTreatment();Yt()&&"control"!==o&&null!==(i=this.host.retryBeacon)&&void 0!==i&&i.shouldRetry?this.sendPayloadWithRetry(e,t,n):this.sendPayloadFireForget(e,t,n,r)}},{key:"sendPayloadWithRetry",value:function(e,t,n){(!Array.isArray(t)||t.length>0)&&this.host.retryBeacon.beacon(e,JSON.stringify(t),n).catch((function(e){ft.emit("internal:error",{tags:["core-web-tracking:retry:beacon"],reason:e})}))}},{key:"sendPayloadFireForget",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=arguments.length>3?arguments[3]:void 0;if(!Array.isArray(t)||t.length>0){var i="undefined"!=typeof navigator&&navigator.userAgent.toLowerCase().indexOf("firefox")>-1;i||!Jt()||"undefined"==typeof Promise?Zt(e,JSON.stringify(t),{headers:n}):rn(e,JSON.stringify(t),n,this.shouldCompressPayload()).then((function(e){null==r||r.onResult(e,t)}),(function(){}))}}},{key:"getRetryTreatment",value:function(){var e,t,n;if(!this.host.retryConfig)return"control";var r=this.host.retryConfig.lixKey;return r?null!==(e=null===(t=(n=this.host).__getLixTreatment)||void 0===t?void 0:t.call(n,r))&&void 0!==e?e:"control":"enabled"}},{key:"shouldCompressPayload",value:function(){return!0!==this.host.disableCompression}}]),e}(),On="undefined"!=typeof window&&"undefined"!=typeof document,Nn=/JSESSIONID="?([^";]+)"?/,Ln="",xn=0;function Pn(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.cacheLifeSpan,n=void 0===t?1e4:t,r=e.regex,i=void 0===r?Nn:r;if(!Ln||Date.now()-xn>n){var o=On&&document.cookie.match(i);Ln=o&&o[1]||"",xn=Date.now()}return Ln}var Mn=function(){function e(t){we(this,e),Se(this,"networkTransporter",void 0),Se(this,"inactive",void 0),Se(this,"mpName",void 0),Se(this,"endpoint",void 0),Se(this,"debug",void 0),this.networkTransporter=new Rn(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=Un;break;case"https://www.linkedin-ei.com/li/track/validate":n=!0,t=Dn;break;case"https://www.linkedin-ei.com/li/track":t=Dn;break;default:n=!0,t=Dn}return{endpoint:t,debug:n}}(t.endpoint);this.endpoint=n.endpoint,this.debug=n.debug}return Te(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":Pn(),"x-restli-protocol-version":"2.0.0"},n={fragmentEvent:e,debug:this.debug};this.networkTransporter.sendPayload(this.endpoint,n,t)}}}]),e}(),Dn="https://www.linkedin-ei.com/trackingMonitoring/?action=saveClientFragment",Un="https://www.linkedin.com/trackingMonitoring/?action=saveClientFragment";function Bn(e){return"string"==typeof e}function Fn(e){return Bn(e)?e:e.topicName||e.eventName}function qn(e){return Bn(e)?e:e.eventName}var jn,Hn,zn=function(){function e(t){var n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};we(this,e),Se(this,"host",void 0),Se(this,"cmoTransporter",void 0),Se(this,"clientMonitoringInstanceId",tt()),Se(this,"currentContext",Kn()),Se(this,"appState",{}),Se(this,"estimatedFragmentSize",0),Se(this,"fragmentSizeLimit",void 0),Se(this,"activeFragmentEvent",void 0),Se(this,"debounceTimer",void 0),this.host=t,this.cmoTransporter=r.cmoTransporter||new Mn(t),this.fragmentSizeLimit=(null===(n=t.clientMonitoringConfig)||void 0===n?void 0:n.fragmentSizeLimit)||10240,this.activeFragmentEvent=Wn(this.clientMonitoringInstanceId,0,0,!1,this.getEventHeaders())}return Te(e,[{key:"getCurrentInstanceId",value:function(){return this.clientMonitoringInstanceId}},{key:"scheduleDebouncedFiring",value:function(){var e,t,n=this;void 0!==this.debounceTimer&&(clearTimeout(this.debounceTimer),this.debounceTimer=void 0),this.fragmentIsFull()&&this.fireFragmentEventIfFull(!0),this.debounceTimer=setTimeout((function(){n.fireFragmentEventIfFull()}),null!==(e=null===(t=this.host.batching)||void 0===t?void 0:t.debounceTime)&&void 0!==e?e:1)}},{key:"logEventGenerated",value:function(e){this.scheduleDebouncedFiring();var t=this.activeFragmentEvent.stats,n=this.activeFragmentEvent.firstEventNumber+t.eventsGenerated;return t.eventTopics.push(e),t.eventsGenerated++,this.estimatedFragmentSize+=e.length,n}},{key:"logEventReadyToSend",value:function(e){this.activeFragmentEvent.stats.eventsReadyToSend+=e}},{key:"logEventSent",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.getCurrentInstanceId();t===this.getCurrentInstanceId()?this.activeFragmentEvent.stats.eventsSent+=e:this.findPreviousInstanceStat(t,(function(t){t.eventsSent+=e}))}},{key:"logNetworkResponseCode",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.getCurrentInstanceId(),n=this.activeFragmentEvent.stats.networkResponseStats;t!==this.getCurrentInstanceId()&&this.findPreviousInstanceStat(t,(function(e){n=e.networkResponseStats})),e>=200&&e<300?n.eventsWith2XXResponse++:400===e?n.eventsWith400Response++:408===e?n.eventsWith408Response++:429===e?n.eventsWith429Response++:e>400&&e<500?n.eventsWith4XXResponse++:500===e?n.eventsWith500Response++:502===e?n.eventsWith502Response++:503===e?n.eventsWith503Response++:504===e?n.eventsWith504Response++:e>500&&e<600&&n.eventsWith5XXResponse++}},{key:"findPreviousInstanceStat",value:function(e,t){var n,r=Ee(this.activeFragmentEvent.stats.previousInstanceEventStats);try{for(r.s();!(n=r.n()).done;){var i=n.value;if(i.instanceId===e)return void t(i)}}catch(e){r.e(e)}finally{r.f()}var o=this.getEventHeaders(),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,r){var i=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:i,instanceEventNumber:r,reason:e,rawError:n,eventName:qn(t),eventTopic:Fn(t)};this.estimatedFragmentSize+=JSON.stringify(c).length,i===this.getCurrentInstanceId()?this.activeFragmentEvent.stats.failures.push(c):this.findPreviousInstanceStat(i,(function(e){e.failures.push(c)})),this.fireFragmentEventIfFull()}},{key:"flush",value:function(){this.activeFragmentEvent.isLastFragment=!0,this.fireFragmentEventIfFull(!0)}},{key:"fragmentIsFull",value:function(){return this.activeFragmentEvent.stats.eventsGenerated>=100||this.estimatedFragmentSize>=this.fragmentSizeLimit}},{key:"fireFragmentEventIfFull",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(e||this.fragmentIsFull()){this.debounceTimer=void 0;var t=this.getEventHeaders(),n=t.header,r=t.requestHeader,i=this.activeFragmentEvent;i.header=n,i.requestHeader=r,this.cmoTransporter.fireFragment(i),this.estimatedFragmentSize=0,this.activeFragmentEvent=Wn(this.clientMonitoringInstanceId,i.fragmentNumber+1,i.firstEventNumber+i.stats.eventsGenerated,!1,t)}}},{key:"setCurrentContext",value:function(e){this.currentContext=e}},{key:"updateAppState",value:function(e){this.host.api.assign(this.appState,e)}},{key:"getEventHeaders",value:function(){var e=void 0;this.appState.clientApplicationInstance&&((e=this.appState.clientApplicationInstance).trackingId=Vn(e.trackingId));var t=this.currentContext.pageInstance;return t.trackingId=Vn(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 Gn(e){return jn||(jn=new zn(e)),{getCurrentInstanceId:function(){return jn.getCurrentInstanceId()},logEventGenerated:function(e){return jn.logEventGenerated(e)},logEventReadyToSend:function(e){jn.logEventReadyToSend(e)},logEventSent:function(e){jn.logEventSent(e)},logPersistedEventSent:function(e,t){jn.logEventSent(t,e)},logNetworkResponseCode:function(e){jn.logNetworkResponseCode(e)},logPersistedNetworkResponseCode:function(e,t){var n;null===(n=jn)||void 0===n||n.logNetworkResponseCode(t,e)},logFailedEvent:function(e,t,n,r){jn.logFailedEvent(e,t,n,r)},logPersistedFailedEvent:function(e,t,n,r,i){jn.logFailedEvent(t,n,r,i,e)},flush:function(){jn.flush()},destroy:function(){jn=void 0},isDestroyed:function(){return void 0===jn},setCurrentContext:function(e){jn.setCurrentContext(e)},updateAppState:function(e){jn.updateAppState(e)}}}function Wn(e,t,n,r,i){return{fragmentNumber:t,firstEventNumber:n,isLastFragment:r,stats:{instanceId:e,eventsGenerated:0,eventsReadyToSend:0,eventsSent:0,networkResponseStats:{eventsWith2XXResponse:0,eventsWith400Response:0,eventsWith408Response:0,eventsWith429Response:0,eventsWith4XXResponse:0,eventsWith500Response:0,eventsWith502Response:0,eventsWith503Response:0,eventsWith504Response:0,eventsWith5XXResponse:0},eventTopics:[],failures:[],previousInstanceEventStats:[]},requestHeader:i.requestHeader,header:i.header}}function Kn(){return{pageKey:"unknown",pageInstance:rt("unknown")}}function Vn(e){return Array.isArray(e)?et(e):16===e.length?e:function(e){return"string"==typeof e&&!!e.match(nt)}(e)?atob(e):et(function(e){return Ue(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"}(Hn||(Hn={}));var Qn="PageViewEvent",Xn=function(){function e(t){var n=this;we(this,e),Se(this,"host",void 0),Se(this,"queue",void 0),Se(this,"preContextQueue",void 0),Se(this,"debounceTimer",void 0),Se(this,"unloadHandlers",void 0),Se(this,"maxQueueSize",void 0),Se(this,"flushDebounceTime",void 0),Se(this,"trackingEventListeners",[]),Se(this,"onHideHandler",(function(){n.forceFlush()})),Se(this,"networkTransporter",void 0),Se(this,"clientMonitoringConn",void 0),Se(this,"clientSequenceNumberCounter",void 0),Se(this,"isTimerRunning",void 0),Se(this,"enableSequenceNumberLix",void 0),this.host=t,this.queue=[],this.preContextQueue=[],this.unloadHandlers=[];var r=t.batching;this.maxQueueSize=r&&r.maxSize||1,this.flushDebounceTime=r&&r.debounceTime||0,ft.on("internal:hide",this.onHideHandler),this.networkTransporter=new Rn(t),this.isLixEnabled("pemberly.tracking.monitoring")&&t.clientMonitoringConfig&&!t.inactive&&(this.clientMonitoringConn=Gn(t)),this.enableSequenceNumberLix=this.isLixEnabled("tracking.data-loss-web.sequence-number"),this.enableSequenceNumberLix&&(this.getSequenceNumberFromIDB(),this.updateSequenceNumberOnExit(),this.isTimerRunning=!1)}return Te(e,[{key:"checkAndEnablePersistentRetry",value:function(e){var t,n=(t=this.clientMonitoringConn,{onIntermediateResult:function(e,n){var r;if(t&&!t.isDestroyed())try{if(r=JSON.parse(n),!Array.isArray(r)||0===r.length)return;e.statusCode&&t.logNetworkResponseCode(e.statusCode),!0===e.drop&&r.forEach((function(n){var r,i=n.eventInfo.eventName,o=n.eventInfo.topicName||i,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(Hn.UNKNOWN_EXECUTION_ERROR,{eventName:i,topicName:o},a,null!==(r=n.eventBody.header.clientMonitoringInstanceEventNumber)&&void 0!==r?r:-1)}))}catch(e){}},onBeforeRetry:function(e){var n;if(t&&!t.isDestroyed())try{if(n=JSON.parse(e),!Array.isArray(n)||0===n.length||!n[0].eventBody.header.clientMonitoringInstanceId)return;var r=n[0].eventBody.header.clientMonitoringInstanceId,i=n.length;t.logPersistedEventSent(r,i)}catch(e){}},onResult:function(e,n){var r;if(t)try{if(r=JSON.parse(n),!Array.isArray(r)||0===r.length||!r[0].eventBody.header.clientMonitoringInstanceId)return;var i=r[0].eventBody.header.clientMonitoringInstanceId;e.statusCode&&t.logPersistedNetworkResponseCode(i,e.statusCode),!0===e.drop&&r.forEach((function(n){var r=n.eventInfo.eventName,o=n.eventInfo.topicName||r,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(i,Hn.UNKNOWN_EXECUTION_ERROR,{eventName:r,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(Fn(e.id)));var n,r=this.host,i=r.api.Promise,o=r.batching;return function(e){return!!e.meta.context}(t)?(this.prepareCompleteEnvelopeQueue(t),null===(n=this.clientMonitoringConn)||void 0===n||n.logEventReadyToSend(1),o?(this.batchFire(),i.resolve(!0)):(this.flush(!0),i.resolve(!0))):(this.preContextQueue.push(t),i.resolve(!0))}},{key:"callOnDestroy",value:function(e){this.unloadHandlers.push(e)}},{key:"destroy",value:function(){this.unloadHandlers.forEach((function(e){return e()})),this.forceFlush(),this.trackingEventListeners=[],this.clientMonitoringConn=void 0,ft.off("internal:hide",this.onHideHandler)}},{key:"forceFlush",value:function(){var e=this;this.populatePreContextQueue({pageInstance:rt("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;lt("read").then((function(t){e.clientSequenceNumberCounter=t||0})).catch((function(e){ft.emit("internal:error",{tags:["core-web-tracking:sequence-number:idb-read"],reason:e})}))}},{key:"updateSequenceNumberToIDB",value:function(){lt("update",this.clientSequenceNumberCounter).catch((function(e){ft.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=st(e.meta.context,this.host.api);"function"==typeof e.body&&(e.body=e.body(n)),this.preContextQueue.length>0&&this.populatePreContextQueue(n).forEach((function(e){return t.queue.push(e)})),this.queue.push(e)}},{key:"envelop",value:function(e,t,n){var r=this.host,i=r.appId,o=r.api,s={eventBody:t,eventInfo:"string"==typeof e?{appId:i,eventName:e,topicName:e}:o.assign({appId:i},e)};return n.length>0&&this.host.api.assign(s,{clientBreadcrumbs:n}),s}},{key:"getBreadcrumbs",value:function(e){return e.clientBreadcrumbs||[]}},{key:"getGenericEventBody",value:function(e){var t,n=this.host,r=n.appVersion,i=n.locale,o=n.api,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===Qn:e.eventName===Qn}(e.id)&&(null===(t=e.body.requestHeader)||void 0===t?void 0:t.pageKey)||u,p=null;"string"!=typeof i&&null!==this.host.locale||(p=i);var f={interfaceLocale:p,pageKey:h,path:s.pathname+s.search,referer:a.referrer},m={pageInstance:d,time:e.meta.time,version:r};"number"==typeof this.clientSequenceNumberCounter&&c(m,{clientGlobalSequenceNumber:this.clientSequenceNumberCounter});var v={header:c(m,e.meta.header||{}),requestHeader:c(f,e.meta.requestHeader||{})},g=e.meta.clientMonitoringInstanceId,y=e.meta.clientMonitoringInstanceEventNumber;return g&&c(v.header,{clientMonitoringInstanceId:g,clientMonitoringInstanceEventNumber:y}),c(e.body,v)}},{key:"populatePreContextQueue",value:function(e){var t,n=this.preContextQueue;return this.preContextQueue=[],null===(t=this.clientMonitoringConn)||void 0===t||t.logEventReadyToSend(n.length),n.map((function(t){return t.meta.context=e,"function"==typeof t.body&&(t.body=t.body(e)),t}))}},{key:"trigger",value:function(e,t){this.trackingEventListeners.forEach((function(n){return n(e,t)}))}},{key:"requestFlush",value:function(e){var t=this;e((function(){t.forceFlush()}),{timeout:1e4})}},{key:"flush",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=this.host.api.requestIdleCallback;e||!t?this.sendPayload():this.requestFlush(t)}},{key:"batchFire",value:function(){var e=this;this.queue.length>this.maxQueueSize?this.flush():(this.debounceTimer&&clearTimeout(this.debounceTimer),this.debounceTimer=setTimeout((function(){return e.flush()}),this.flushDebounceTime))}},{key:"sendPayload",value:function(){var e=this,t=this.queue;if(0!==t.length){this.enableSequenceNumberLix&&"undefined"!=typeof window&&!1===this.isTimerRunning&&(this.isTimerRunning=!0,setInterval((function(){e.updateSequenceNumberToIDB()}),5e3)),this.queue=[];var n,r,i=[],o=[];t.forEach((function(t){var n=e.getGenericEventBody(t),r=e.getBreadcrumbs(t),s=e.envelop(t.id,n,r);e.trigger(s,t.meta);var a=s.eventInfo.eventName;"LixTreatmentsEvent"===a||"JavaScriptErrorEvent"===a?i.push(s):o.push(s),e.enableSequenceNumberLix&&"number"==typeof e.clientSequenceNumberCounter&&e.clientSequenceNumberCounter++})),this.host.inactive||(this.clientMonitoringConn&&(this.clientMonitoringConn.logEventSent(i.length+o.length),r=this.clientMonitoringConn,n={onResult:function(e,t){r&&!r.isDestroyed()&&(e.statusCode&&r.logNetworkResponseCode(e.statusCode),!0===e.drop&&t.forEach((function(t){var n=t.eventInfo.eventName,i=t.eventInfo.topicName||n,o="rawError"in e?e.rawError:"null",s=["type: ".concat(e.type),"statusCode: ".concat(e.statusCode||"null"),"drop: ".concat(String(e.drop)),"rawError: ".concat(o)].join(", ");null==r||r.logFailedEvent(Hn.UNKNOWN_EXECUTION_ERROR,{eventName:n,topicName:i},s,t.eventBody.header.clientMonitoringInstanceEventNumber||-1)})))}}),this.networkTransporter.sendPayloadFireForget(this.host.endpoint,i,void 0,n),this.networkTransporter.sendPayload(this.host.endpoint,o,void 0,n))}}}]),e}();var Jn,Yn,Zn,$n,er=function(){function e(t,n){we(this,e),this.clientBreadcrumbType=t,this.id=n}return Te(e,[{key:"builder",get:function(){return function(){var e={},t=new Proxy({},{get:function(n,r){return"build"===r?function(){return e}:function(n){return e[r.toString()]=n,t}}});return t}().id(this.id).clientBreadcrumbType(this.clientBreadcrumbType)}}],[{key:"toPointer",value:function(e){return{id:e.id,type:e.clientBreadcrumbType}}}]),e}();function tr(e){if(!e)return{};var t=e.trk,n=!1,r=e.licu&&decodeURIComponent(e.licu);e.external_control&&(r="urn:li:externalControl:".concat(decodeURIComponent(e.external_control)),n=!0);var i=e.lipi&&function(e){var t=decodeURIComponent(e).split(";");if(t.length>1)return{pageUrn:t[0],trackingId:t[1]}}(e.lipi),o=i&&{pageInstance:i,pageKey:t}||t&&{pageKey:t};if(e.external_page&&e.external_page_instance){var 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:r}}function nr(e){return"retryConfig"in e.host}function rr(e){return e.split("").reduce((function(e,t){return(e<<5)-e+t.charCodeAt(0)|0}),0)}!function(e){e.UNKNOWN="UNKNOWN",e.ME_NOTIFICATION="ME_NOTIFICATION",e.ME_NOTIFICATION_ACTION="ME_NOTIFICATION_ACTION"}(Jn||(Jn={})),function(){function e(t,n){var r,i;if(we(this,e),Se(this,"transporter",void 0),Se(this,"delegate",void 0),Se(this,"currentContext",void 0),Se(this,"appState",void 0),Se(this,"previousAppContext",void 0),Se(this,"customTransporters",void 0),Se(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 Xn(this.transporter.host.api.assign(s,n.customTransporterHosts[o]))}"enabled"===(null===(r=(i=t.host).__getLixTreatment)||void 0===r?void 0:r.call(i,"pemberly.tracking.monitoring"))&&t.host.clientMonitoringConfig&&!t.host.inactive&&"location"in t.host.api&&(this.clientMonitoringConn=Gn(t.host))}Te(e,[{key:"host",get:function(){return this.transporter.host}},{key:"checkAndEnablePersistentRetry",value:function(){nr(this.transporter)&&this.transporter.checkAndEnablePersistentRetry(this.delegate)}},{key:"flushAndClearPersistedEventsOnLogout",value:function(){this.forceFlush();var e=nr(this.transporter)?this.transporter.clearPersistedEventsOnLogout():null;return null!=e?e:this.host.api.Promise.resolve()}},{key:"getCurrentContext",value:function(){if(this.currentContext)return st(this.currentContext,this.host.api)}},{key:"navigate",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=this.navMetaFromSeed(e,tr(t));if(this.setCurrentContext(r.to),!n.suppressEventsFiring)return this.fireNavEvents(r)}},{key:"setCurrentContext",value:function(e){var t;this.currentContext=st(e,this.host.api),null===(t=this.clientMonitoringConn)||void 0===t||t.setCurrentContext(st(e,this.host.api))}},{key:"updateAppState",value:function(e){var t;this.host.api.assign(this.appState,e),null===(t=this.clientMonitoringConn)||void 0===t||t.updateAppState(e)}},{key:"fireCIE",value:function(e,t,n,r,i){return this.fireEvent("ControlInteractionEvent",(function(n){var o=it(n.pageKey,e),s={controlTrackingId:r,controlUrn:o,interactionType:t};return i&&i(o),s}),{context:n})}},{key:"fireEvent",value:function(e,t,n,r){if(!t){var i=Fn(e),o=void 0===t?"undefined":null===t?"null":Ae(t),s='Firing tracking event "'.concat(i,'" with invalid body, you fired "').concat(o,'"');if(this.clientMonitoringConn){var a=this.clientMonitoringConn.logEventGenerated(i);this.clientMonitoringConn.logFailedEvent(Hn.MISSING_REQUIRED_PROPERTIES,e,s,a)}throw new Error(s)}var c=r||[];if(c.length>0){var l=c.map((function(e){return er.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]:{},r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:[],i=this.generateEnvelope(e,t,n),o=r.length>0?this.addBreadcrumbsToEnvelope(i,r):i;return o}},{key:"addBreadcrumbsToEnvelope",value:function(e,t){var n=t.map((function(e){var t=e;return delete t.clientBreadcrumbType,t}));return this.host.api.assign(e,{clientBreadcrumbs:n}),e}},{key:"fireEnvelope",value:function(e){var t,n;if(null!==(t=this.delegate)&&void 0!==t&&null!==(n=t.shouldAnonymizeMemberId)&&void 0!==n&&n.call(t))if(Bn(e.id)){var r=e.id;e.id={eventName:r,topicName:r,shouldAnonymizeMemberId:!0}}else e.id.shouldAnonymizeMemberId=!0;var i=this.delegate&&this.delegate.preTransporter?this.delegate.preTransporter(e):e;if(i){var o=i.meta.transporterKey,s=o?this.customTransporters[o]:this.transporter;if(!s&&o){var a=Fn(i.id),c="Could not find custom transporter: ".concat(o);if(this.clientMonitoringConn){var l=this.clientMonitoringConn.logEventGenerated(a);this.clientMonitoringConn.logFailedEvent(Hn.UNKNOWN_EXECUTION_ERROR,i.id,c,l)}throw new Error(c)}return s.fireEvent(i)}return this.host.api.Promise.resolve(!0)}},{key:"generatePageInstance",value:function(e,t){return rt(e,t)}},{key:"firePVE",value:function(e,t,n){var r={pageType:"full",totalTime:0,trackingCode:this.getTrackingCode(),trackingInfo:{}},i=this.host.api.assign(r,t),o=this.generateEnvelope("PageViewEvent",i,{context:n});return o.meta.requestHeader.pageKey=e,this.fireEnvelope(o)}},{key:"destroy",value:function(){for(var e in this.transporter.destroy(),this.customTransporters)this.customTransporters[e].destroy();this.clientMonitoringConn&&(this.clientMonitoringConn.flush(),this.clientMonitoringConn.destroy(),this.clientMonitoringConn=void 0),ft.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 it((t||this.currentContext||{pageKey:"unknown"}).pageKey,e)}},{key:"fireRawCIE",value:function(e,t,n,r){var i={controlTrackingId:r,controlUrn:e,interactionType:t};return{beacon:this.fireEvent("ControlInteractionEvent",i,{context:n}),controlUrn:e}}},{key:"generateNavigationEvent",value:function(e){var t=e.triggerId,n=e.triggerUrn,r=e.from;return{previousPageInstance:r&&r.pageInstance,triggerControlTrackingId:t,triggerControlUrn:n}}},{key:"getTrackingCode",value:function(){return this.previousAppContext&&this.previousAppContext.pageKey}},{key:"navMetaFromSeed",value:function(e,t){var n="NavigationEvent";this.previousAppContext=t.previousContext;var r=t.fromExternalApp?{eventName:n,topicName:"InboundNavigationEvent"}:n;return{from:t.previousContext,navEventId:r,to:{applicationInstance:t.applicationInstance,pageInstance:this.generatePageInstance(e,t.pageTrackingId),pageKey:e},triggerId:t.previousControlId,triggerUrn:t.previousControlUrn}}},{key:"fireNavEvents",value:function(e){var t=this.generateNavigationEvent(e),n=e.to,r=e.from,i=e.navEventId,o=this.generateEnvelope(i,t);o.meta.requestHeader.pageKey=n.pageKey;var s=r&&r.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]:{},r={directive:n.directive,transporterKey:n.transporterKey,context:n.context||this.currentContext&&st(this.currentContext,this.host.api),requestHeader:this.host.api.assign({trackingCode:this.getTrackingCode()},n.requestHeader||{}),header:this.host.api.assign({applicationViewerUrn:this.appState.applicationViewerUrn,clientApplicationInstance:this.appState.clientApplicationInstance},n.header||{})};return{body:"function"==typeof t?t:function(){return t},id:e,meta:r}}}])}(),function(){function e(t,n){var r,i=this;we(this,e),Se(this,"core",void 0),Se(this,"protocol",void 0),Se(this,"throttleKeySet",new Set),Se(this,"config",void 0),Se(this,"reportTransporterError",(function(e){e.reason instanceof Error||(e.reason=new Error(e.reason||"An error occurred in the transporter")),i.reportError(e.reason,e.tags.concat(["info"])).catch((function(){}))})),this.core=t;var o=this.core.host.api.location.protocol;this.protocol=o.substring(0,o.length-1),this.config={throttleTime:null!==(r=null==n?void 0:n.throttleTime)&&void 0!==r?r:100},ft.on("internal:error",this.reportTransporterError)}Te(e,[{key:"reportError",value:function(e){var t,n=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=i.callTreeId,s=void 0===o?"":o,a=i.responseHeaders,c=void 0===a?{}:a,l=e.message,u=e.name,d=e.stack,h=void 0===d?"":d,p=e.fileName,f=void 0===p?"":p,m=e.lineNumber,v=void 0===m?0:m,g=e.columnNumber,y=void 0===g?0:g,b=this.core.host,E=b.appId,w=b.appVersion,_=b.service,T=b.serviceInstance,S=b.treeID,k=void 0===S?"":S,I=b.api,C=I.Promise,A=I.location,R=A.host,O=A.pathname,N=A.search,L=A.hash,x=void 0===L?"":L;if(c){t={};var P=new Map;Object.keys(c).forEach((function(e){P.set(e.toLowerCase(),c[e])})),t.callTreeId=P.get("x-li-uuid"),t.microsoftEdgeReference=P.get("x-msedge-ref"),t.pointOfPresenceId=P.get("x-li-pop"),t.fabric=P.get("x-li-fabric")}var M=function(){return n.core.fireEvent("JavaScriptErrorEvent",(function(e){return{appId:E,e:{c:y,l:v,m:l,s:h,t:u,u:f},h:x,l:n.protocol,o:R,p:O,pageKey:e.pageKey,q:N,service:_,serviceInstance:T,serviceVersion:w,t:r,trackingID:e.pageInstance.trackingId,treeID:k,callTreeId:s,responseTraceHeaders:t}}))};if(this.config.throttleTime<0)return M();var D=rr(u+l+h+r.join("")+s);return this.throttleKeySet.has(D)?C.resolve(!1):(this.throttleKeySet.add(D),setTimeout((function(){return n.throttleKeySet.delete(D)}),this.config.throttleTime),M())}},{key:"flush",value:function(){this.core.forceFlush()}},{key:"destroy",value:function(){this.core.destroy(),ft.off("internal:error",this.reportTransporterError)}}])}();var ir=function(){function e(){we(this,e),Se(this,"userTimingEntries",[]),Se(this,"longTasks",[]),Se(this,"resourceTimingEntries",[]),Se(this,"cdnData",void 0)}return Te(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(sr),cdnData:this.cdnData}}}]),e}(),or=["resourceTreeId","name","entryType","startTime","duration","initiatorType","nextHopProtocol","redirectStart","redirectEnd","fetchStart","domainLookupStart","domainLookupEnd","connectStart","connectEnd","secureConnectionStart","requestStart","responseStart","responseEnd","transferSize","encodedBodySize","decodedBodySize","workerStart"];function sr(e){return or.reduce((function(t,n){var r=e[n];return void 0!==r&&(t[n]=r),t}),{})}function ar(e,t){if(e.nodeType!==Node.ELEMENT_NODE)throw new Error("Can't generate CSS selector for non-element node type.");if("html"===e.tagName.toLowerCase())return"html";var n={root:document.body,idName:function(e){return!0},className:function(e){return!0},tagName:function(e){return!0},attr:function(e,t){return!1},seedMinLength:1,optimizedMinLength:2,threshold:1e3,maxNumberOfTries:1e4};Zn=Object.assign(Object.assign({},n),t),$n=function(e,t){return e.nodeType===Node.DOCUMENT_NODE?e:e===t.root?e.ownerDocument:e}(Zn.root,n);var r=cr(e,Yn.All,(function(){return cr(e,Yn.Two,(function(){return cr(e,Yn.One)}))}));if(r){var i=gr(function e(t,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{counter:0,visited:new Map},i=[];if(t.length>2&&t.length>Zn.optimizedMinLength)for(var o=1;o<t.length-1;o++){if(r.counter>Zn.maxNumberOfTries)return i;r.counter+=1;var s=ke(t);s.splice(o,1);var a=ur(s);if(r.visited.has(a))return i;hr(s)&&yr(s,n)&&(i.push(s),r.visited.set(a,!0),i=i.concat(e(s,n,r)))}return i}(r,e));return i.length>0&&(r=i[0]),ur(r)}throw new Error("Selector was not found.")}function cr(e,t,n){for(var r=null,i=[],o=e,s=0,a=function(){var e=mr(function(e){var t=e.getAttribute("id");return t&&Zn.idName(t)?{name:"#"+Sr(t,{isIdentifier:!0}),penalty:0}:null}(o))||mr.apply(void 0,ke(function(e){return Array.from(e.attributes).filter((function(e){return Zn.attr(e.name,e.value)})).map((function(e){return{name:"["+Sr(e.name,{isIdentifier:!0})+'="'+Sr(e.value)+'"]',penalty:.5}}))}(o)))||mr.apply(void 0,ke(function(e){return Array.from(e.classList).filter(Zn.className).map((function(e){return{name:"."+Sr(e,{isIdentifier:!0}),penalty:1}}))}(o)))||mr(function(e){var t=e.tagName.toLowerCase();return Zn.tagName(t)?{name:t,penalty:2}:null}(o))||[{name:"*",penalty:3}],a=function(e){var t=e.parentNode;if(!t)return null;var n=t.firstChild;if(!n)return null;for(var r=0;n&&(n.nodeType===Node.ELEMENT_NODE&&r++,n!==e);)n=n.nextSibling;return r}(o);if(t===Yn.All)a&&(e=e.concat(e.filter(fr).map((function(e){return pr(e,a)}))));else if(t===Yn.Two)e=e.slice(0,1),a&&(e=e.concat(e.filter(fr).map((function(e){return pr(e,a)}))));else if(t===Yn.One){var c=be(e=e.slice(0,1),1)[0];a&&fr(c)&&(e=[pr(c,a)])}var l,u=Ee(e);try{for(u.s();!(l=u.n()).done;)l.value.level=s}catch(e){u.e(e)}finally{u.f()}if(i.push(e),i.length>=Zn.seedMinLength&&(r=lr(i,n)))return"break";o=o.parentElement,s++};o&&o!==Zn.root.parentElement&&"break"!==a(););return r||(r=lr(i,n)),r}function lr(e,t){var n=gr(function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];if(t.length>0){var r,i=[],o=Ee(t[0]);try{for(o.s();!(r=o.n()).done;){var s=r.value;i=i.concat(e(t.slice(1,t.length),n.concat(s)))}}catch(t){o.e(t)}finally{o.f()}return i}return[n]}(e));if(n.length>Zn.threshold)return t?t():null;var r,i=Ee(n);try{for(i.s();!(r=i.n()).done;){var o=r.value;if(hr(o))return o}}catch(e){i.e(e)}finally{i.f()}return null}function ur(e){for(var t=e[0],n=t.name,r=1;r<e.length;r++){var i=e[r].level||0;n=t.level===i-1?"".concat(e[r].name," > ").concat(n):"".concat(e[r].name," ").concat(n),t=e[r]}return n}function dr(e){return e.map((function(e){return e.penalty})).reduce((function(e,t){return e+t}),0)}function hr(e){switch($n.querySelectorAll(ur(e)).length){case 0:throw new Error("Can't select any node with this selector: ".concat(ur(e)));case 1:return!0;default:return!1}}function pr(e,t){return{name:e.name+":nth-child(".concat(t,")"),penalty:e.penalty+1}}function fr(e){return"html"!==e.name&&!e.name.startsWith("#")}function mr(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=t.filter(vr);return r.length>0?r:null}function vr(e){return null!=e}function gr(e){return Array.from(e).sort((function(e,t){return dr(e)-dr(t)}))}function yr(e,t){return $n.querySelector(ur(e))===t}!function(e){e[e.All=0]="All",e[e.Two=1]="Two",e[e.One=2]="One"}(Yn||(Yn={}));var br,Er=/[ -,\.\/:-@\[-\^`\{-~]/,wr=/[ -,\.\/:-@\[\]\^`\{-~]/,_r=/(^|\\+)?(\\[A-F0-9]{1,6})\x20(?![a-fA-F0-9\x20])/g,Tr={escapeEverything:!1,isIdentifier:!1,quotes:"single",wrap:!1};function Sr(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=Object.assign(Object.assign({},Tr),t);"single"!=n.quotes&&"double"!=n.quotes&&(n.quotes="single");for(var r="double"==n.quotes?'"':"'",i=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?Er.test(l)?"\\"+l:"\\"+u.toString(16).toUpperCase()+" ":/[\t\n\f\r\x0B]/.test(l)?"\\"+u.toString(16).toUpperCase()+" ":"\\"==l||!i&&('"'==l&&r==l||"'"==l&&r==l)||i&&wr.test(l)?"\\"+l:l;s+=d}return i&&(/^-[-\d]/.test(s)?s="\\-"+s.slice(1):/\d/.test(o)&&(s="\\3"+o+" "+s.slice(1))),s=s.replace(_r,(function(e,t,n){return t&&t.length%2?e:(t||"")+n})),!i&&n.wrap?r+s+r:s}function kr(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(e&&"function"==typeof e.now&&(e.timeOrigin||e.timing)){var n,r=e.now();return n=!e.timing&&t?Math.floor(e.timeOrigin):e.timing.navigationStart,Math.round(r+n)}return Date.now()}function Ir(e){var t=e||performance;return Math.round(t.now())}function Cr(e){if(!e)return"null";if(e.nodeType===Node.ELEMENT_NODE)try{return ar(e,{idName:function(e){return 0!==e.indexOf("ember")}})}catch(e){return"serialization_error"}var t=Cr(e.parentElement||void 0);return"".concat(t," > nodeType(").concat(e.nodeType,")")}function Ar(e,t,n){var r=[];return e&&"function"==typeof e.getEntriesByType&&(t["user-timing-measure-enabled"]&&e.getEntriesByType("measure").forEach((function(e){r.push({entryType:"MEASURE",name:e.name,startTime:e.startTime,duration:e.duration})})),t["user-timing-mark-enabled"]&&e.getEntriesByType("mark").forEach((function(e){r.push({entryType:"MARK",name:e.name,startTime:e.startTime,duration:e.duration})})),n&&(e.clearMeasures(),e.clearMarks())),r}function Rr(e){var t=[];return e.forEach((function(e){return t.push(e)})),t}var Or,Nr=function(){function e(t){we(this,e),Se(this,"hostApis",void 0),Se(this,"hostnameProperties",void 0),Se(this,"usedHostnames",void 0),Se(this,"abortController",void 0),Se(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 Te(e,[{key:"clearUsedHostnames",value:function(){this.usedHostnames=new Set}},{key:"getPresentData",value:function(){var e=this;return ct(this.usedHostnames).map((function(t){return e.hostnameProperties[t]||{hostname:t,provider:"",ipVersion:"",httpVersion:""}}))}},{key:"getDataWhenReady",value:function(e){var t=this,n=this.hostApis,r=n.AbortController,i=n.Promise,o=at(ct(this.pendingPromises),i),s=setTimeout((function(){t.abortController.abort(),t.abortController=new r}),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,r,i=this.hostApis.assign,o=(n=e.name,r=this.hostApis.document,(br=br||r.createElement("a")).href=n,br.hostname);if(this.usedHostnames.add(o),!this.hostnameProperties[o]&&!this.isResourcePossiblyFromCache(e)){var s=this.fetchCdnFromUrl(e.name).then((function(e){var n=i({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}(),Lr=function(){function e(t,n,r,i){we(this,e),Se(this,"hostApis",void 0),Se(this,"statics",void 0),Se(this,"options",void 0),Se(this,"allowTimingOrigin",void 0),Se(this,"collectResourceTimings",void 0),Se(this,"collectCdnData",void 0),Se(this,"perfObserver",void 0),Se(this,"renderTimings",new Map),Se(this,"urlToTreeId",new Map),Se(this,"cdnDataProvider",void 0),Se(this,"observables",new ir),this.hostApis=t,this.statics=n,this.options=r,this.allowTimingOrigin=i,this.collectResourceTimings=r["enable-rs-timing"],this.collectCdnData=r["enable-cdn-tracking"],this.collectCdnData&&(this.cdnDataProvider=new Nr(t))}return Te(e,[{key:"recordTreeId",value:function(e,t){this.collectResourceTimings&&this.urlToTreeId.set(function(e,t){return(br=br||t.createElement("a")).href=e,br.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:kr(this.hostApis.performance,this.allowTimingOrigin)})}},{key:"recordRenderEnd",value:function(e){var t=this.renderTimings.get(e);t&&(t.renderEnd=t.renderEnd||kr(this.hostApis.performance,this.allowTimingOrigin))}},{key:"startObserving",value:function(){var e=this.hostApis,t=e.PerformanceObserver,n=e.performance;this.stopObserving(),t?this.setupPerformanceObserver(t):this.collectResourceTimings&&this.emulateResourceTimingObserver(n),this.collectResourceTimings&&this.processNewResourceTimings()}},{key:"stopObserving",value:function(){var e;null===(e=this.perfObserver)||void 0===e||e.disconnect(),this.reset()}},{key:"collect",value:function(e){var t=this,n=e.isInitial,r=e.immediate,i=this.collectSynchronousData(n);if(r)return i;var o=this.collectAsynchronousData();return"then"in o?o.then((function(e){return(0,t.hostApis.assign)(i,e),i})):i}},{key:"reset",value:function(){var e;this.observables.reset(),null===(e=this.cdnDataProvider)||void 0===e||e.clearUsedHostnames()}},{key:"collectSynchronousData",value:function(e){var t=this.hostApis,n=t.assign,r=t.PerformanceObserver,i=Object.create(null);return this.statics.pageLoadMode=e?"INITIAL":"PARTIAL",r||(this.observables.userTimingEntries=Ar(this.hostApis.performance,this.options,!0),this.collectResourceTimings&&this.processNewResourceTimings()),this.observables.attachTreeIds(this.urlToTreeId),this.urlToTreeId.clear(),n(i,this.observables.getData(),this.snapshot,this.statics),e&&n(i,function(e){if(!e)return{navigationTimingApi:!1};var t=Object.create({});if("function"==typeof e.getEntriesByType){var n=e.getEntriesByType("navigation")[0];n&&(["fetchStart","responseEnd","decodedBodySize","encodedBodySize","transferSize"].every((function(e){return"number"==typeof n[e]}))&&(t.htmlMetrics={htmlFetchStart:n.fetchStart,htmlResponseEnd:n.responseEnd,htmlDecodedBodySize:n.decodedBodySize,htmlEncodedBodySize:n.encodedBodySize,htmlTransferSize:n.transferSize}),t.workerStart=n.workerStart)}var r=e.timing,i=e.navigation;return r&&i?(t.navigationTimingApi=!0,xr.forEach((function(e){e in r&&(t[e]=r[e])})),t.navigationType=i.type,t.redirectCount=i.redirectCount):t.navigationTimingApi=!1,t}(this.hostApis.performance)),n(i,this.collectAsynchronousData(!0)),i}},{key:"collectAsynchronousData",value:function(e){var t=this,n={cdnData:[],usedCDN:this.extractUsedCDN([])};if(e){if(this.collectCdnData){var r=this.cdnDataProvider.getPresentData();n.cdnData=r,n.usedCDN=this.extractUsedCDN(r)}return n}var i=[];return this.collectCdnData&&i.push(this.cdnDataProvider.getDataWhenReady(this.options["async-plugins-timeout"]).then((function(e){n.cdnData=e,n.usedCDN=t.extractUsedCDN(e)}))),i.length>0?at(i,Promise).then((function(){return n})):n}},{key:"setupPerformanceObserver",value:function(e){var t=this;this.perfObserver=new e((function(e){e.getEntries().forEach((function(e){var n=e.entryType,r=e.name,i=e.startTime,o=e.duration;"resource"===n?t.processSingleResourceTiming(e):"mark"===n?t.observables.userTimingEntries.push({entryType:"MARK",name:r,startTime:i,duration:o}):"measure"===n?t.observables.userTimingEntries.push({entryType:"MEASURE",name:r,startTime:i,duration:o}):"longtask"===n&&t.observables.longTasks.push({duration:o,name:r,startTime:i})}))})),this.observables.userTimingEntries=Ar(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:Rr(this.renderTimings),networkInformationMetrics:Pr(this.hostApis.connection)};return this.renderTimings.clear(),e}}]),e}(),xr=["loadEventEnd","loadEventStart","domComplete","domContentLoadedEventEnd","domContentLoadedEventStart","domInteractive","domLoading","responseEnd","responseStart","requestStart","secureConnectionStart","connectEnd","connectStart","domainLookupEnd","domainLookupStart","fetchStart","redirectEnd","redirectStart","unloadEventEnd","unloadEventStart","navigationStart"];function Pr(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"}(Or||(Or={}));var Mr=(Se(ye={},"web-ui-framework","EMBER"),Se(ye,"app-id","linkedin.rum.tracking"),Se(ye,"app-version","unknown"),Se(ye,"is-single-page-app",!0),Se(ye,"user-timing-mark-enabled",!1),Se(ye,"user-timing-measure-enabled",!0),Se(ye,"beacon-source","apps"),Se(ye,"enable-rs-timing",!0),Se(ye,"enable-cdn-tracking",!1),Se(ye,"async-plugins-timeout",5e3),Se(ye,"beacon-timeout",3e4),Se(ye,"enable-memory-measurement",!1),Se(ye,"pageKeyPrefix",""),ye),Dr=function(){function e(t,n,r){we(this,e),Se(this,"featureName",void 0),Se(this,"trackingCore",void 0),Se(this,"rumConfig",void 0),Se(this,"observing",!1),Se(this,"basePageTreeId",void 0),Se(this,"startPageInstance",void 0),Se(this,"startMemory",void 0),Se(this,"reportTimeouts",[]),this.featureName=t,this.trackingCore=n,this.rumConfig=r}return Te(e,[{key:"startObserving",value:function(){var t,n=this,r=this.getMemory();r&&!this.observing&&(this.basePageTreeId=this.trackingCore.host.treeID||"",this.startPageInstance=(null===(t=this.trackingCore.getCurrentContext())||void 0===t?void 0:t.pageInstance)||rt("unknown"),this.startMemory=r,this.reportTimeouts=e.checkpoints.map((function(e){return setTimeout((function(){return n.reportMemory(e)}),60*e*1e3)})))}},{key:"stopObserving",value:function(){this.reportTimeouts.forEach((function(e){return clearTimeout(e)})),this.observing=!1}},{key:"reportMemory",value:function(e){var t={name:this.featureName,basePageTreeId:this.basePageTreeId,startTime:Ir(this.trackingCore.host.api.performance),duration:0,startPageInstance:this.startPageInstance,marks:this.createMemoryMarks("-".concat(e,"min")),spans:[]};this.trackingCore.fireEvent({appId:this.rumConfig["app-id"],eventName:"FeaturePerformanceMeasurementEvent"},t)}},{key:"createMemoryMarks",value:function(e){var t=this.getMemory(),n=["jsHeapSizeLimit","totalJSHeapSize","usedJSHeapSize"].map((function(n){return{name:n+e,startTime:t[n]}})),r=t.usedJSHeapSize-this.startMemory.usedJSHeapSize;return n.push({name:(r<0?"usedJSHeapSizeDecrease":"usedJSHeapSizeIncrease")+e,startTime:Math.abs(r)},{name:"utilization"+e,startTime:Math.round(t.usedJSHeapSize/t.totalJSHeapSize*100)}),n}},{key:"getMemory",value:function(){return this.trackingCore.host.api.performance.memory}}]),e}();Se(Dr,"checkpoints",[1,3,10,30,90,180,300]);var Ur,Br,Fr,qr,jr,Hr=Te((function e(t,n,r){we(this,e),Se(this,"webUIFramework",void 0),Se(this,"timeSource",void 0),Se(this,"isSinglePageApp",void 0),Se(this,"appRenderMode",void 0),Se(this,"isAppRenderFailed",void 0),Se(this,"pageLoadMode","INITIAL"),Se(this,"isSSL",void 0),Se(this,"treeId",void 0),Se(this,"isFromServiceWorker",void 0),this.webUIFramework=n["web-ui-framework"],this.timeSource=n["beacon-source"],this.isSinglePageApp=n["is-single-page-app"],this.appRenderMode=t["app-render-mode"],this.isAppRenderFailed=t["is-app-render-failed"],this.isSSL="https:"===r.api.location.protocol?1:0,this.treeId=r.treeID,this.isFromServiceWorker=r.isFromServiceWorker})),zr=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)}},Gr=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){}},Wr=function(e,t){var n=function n(r){"pagehide"!==r.type&&"hidden"!==document.visibilityState||(e(r),t&&(removeEventListener("visibilitychange",n,!0),removeEventListener("pagehide",n,!0)))};addEventListener("visibilitychange",n,!0),addEventListener("pagehide",n,!0)},Kr=function(e){addEventListener("pageshow",(function(t){t.persisted&&e(t)}),!0)},Vr=function(e,t,n){var r;return function(i){t.value>=0&&(i||n)&&(t.delta=t.value-(r||0),(t.delta||void 0===r)&&(r=t.value,e(t)))}},Qr=-1,Xr=function(){return"hidden"===document.visibilityState?0:1/0},Jr=function(){Wr((function(e){var t=e.timeStamp;Qr=t}),!0)},Yr=function(){return Qr<0&&(Qr=Xr(),Jr(),Kr((function(){setTimeout((function(){Qr=Xr(),Jr()}),0)}))),{get firstHiddenTime(){return Qr}}},Zr=!1,$r=-1,ei=function(e,t){Zr||(function(e,t){var n,r=Yr(),i=zr("FCP"),o=function(e){"first-contentful-paint"===e.name&&(a&&a.disconnect(),e.startTime<r.firstHiddenTime&&(i.value=e.startTime,i.entries.push(e),n(!0)))},s=window.performance&&performance.getEntriesByName&&performance.getEntriesByName("first-contentful-paint")[0],a=s?null:Gr("paint",o);(s||a)&&(n=Vr(e,i,t),s&&o(s),Kr((function(r){i=zr("FCP"),n=Vr(e,i,t),requestAnimationFrame((function(){requestAnimationFrame((function(){i.value=performance.now()-r.timeStamp,n(!0)}))}))})))}((function(e){$r=e.value})),Zr=!0);var n,r=function(t){$r>-1&&e(t)},i=zr("CLS",0),o=0,s=[],a=function(e){if(!e.hadRecentInput){var t=s[0],r=s[s.length-1];o&&e.startTime-r.startTime<1e3&&e.startTime-t.startTime<5e3?(o+=e.value,s.push(e)):(o=e.value,s=[e]),o>i.value&&(i.value=o,i.entries=s,n())}},c=Gr("layout-shift",a);c&&(n=Vr(r,i,t),Wr((function(){c.takeRecords().map(a),n(!0)})),Kr((function(){o=0,$r=-1,i=zr("CLS",0),n=Vr(r,i,t)})))},ti={passive:!0,capture:!0},ni=new Date,ri=function(e,t){Ur||(Ur=t,Br=e,Fr=new Date,si(removeEventListener),ii())},ii=function(){if(Br>=0&&Br<Fr-ni){var e={entryType:"first-input",name:Ur.type,target:Ur.target,cancelable:Ur.cancelable,startTime:Ur.timeStamp,processingStart:Ur.timeStamp+Br};qr.forEach((function(t){t(e)})),qr=[]}},oi=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(){ri(e,t),i()},r=function(){i()},i=function(){removeEventListener("pointerup",n,ti),removeEventListener("pointercancel",r,ti)};addEventListener("pointerup",n,ti),addEventListener("pointercancel",r,ti)}(t,e):ri(t,e)}},si=function(e){["mousedown","keydown","touchstart","pointerdown"].forEach((function(t){return e(t,oi,ti)}))},ai=function(e,t){var n,r=Yr(),i=zr("FID"),o=function(e){e.startTime<r.firstHiddenTime&&(i.value=e.processingStart-e.startTime,i.entries.push(e),n(!0))},s=Gr("first-input",o);n=Vr(e,i,t),s&&Wr((function(){s.takeRecords().map(o),s.disconnect()}),!0),s&&Kr((function(){var r;i=zr("FID"),n=Vr(e,i,t),qr=[],Br=-1,Ur=null,si(addEventListener),r=o,qr.push(r),ii()}))},ci={},li=function(e,t){var n,r=Yr(),i=zr("LCP"),o=function(e){var t=e.startTime;t<r.firstHiddenTime&&(i.value=t,i.entries.push(e)),n()},s=Gr("largest-contentful-paint",o);if(s){n=Vr(e,i,t);var a=function(){ci[i.id]||(s.takeRecords().map(o),s.disconnect(),ci[i.id]=!0,n(!0))};["keydown","click"].forEach((function(e){addEventListener(e,a,{once:!0,capture:!0})})),Wr(a,!0),Kr((function(r){i=zr("LCP"),n=Vr(e,i,t),requestAnimationFrame((function(){requestAnimationFrame((function(){i.value=performance.now()-r.timeStamp,ci[i.id]=!0,n(!0)}))}))}))}},ui=["LCP","FID","CLS"],di={LCP:"LargestContentfulPaint",FID:"FirstInputDelay",CLS:"CumulativeLayoutShift"},hi={},pi=function(){var e;if(!On)return"";var t=window.performance,n=void 0;if("function"==typeof(null==t?void 0:t.getEntriesByType)){var r,i=null===(r=window.performance)||void 0===r?void 0:r.getEntriesByType("navigation");(null==i?void 0:i.length)>0&&(n=i[0])}return(null===(e=n)||void 0===e?void 0:e.name)||window.location.href}(),fi=!1,mi=[],vi={LCP:"largest-contentful-paint",FID:"first-input",CLS:"layout-shift"};function gi(){var e=!0===window.__test__resetWebVitalsState;if(!fi||e){e&&(mi=[]),ui.forEach(yi);var t=Symbol();jr=t,[li,ai,ei].forEach((function(e){return e(bi.bind(null,t),!0)})),[li,ai,ei].forEach((function(e){return e(Ei.bind(null,t))})),fi=!0}}function yi(e){hi[e]={name:e,value:-1,updateHistory:[]};var t=vi[e];"undefined"!=typeof PerformanceObserver&&void 0!==PerformanceObserver.supportedEntryTypes&&"string"==typeof t&&PerformanceObserver.supportedEntryTypes.indexOf(t)>-1||(hi[e].value=-2)}function bi(e,t){if(e===jr){var n=hi[t.name],r=Ir();n&&(n.updateHistory.push({time:r,data:t}),n.value=t.value),mi.forEach((function(e){return e(t,r,!1)}))}}function Ei(e,t){e===jr&&mi.forEach((function(e){return e(t,Ir(),!0)}))}var wi=function(){function e(t,n){we(this,e),Se(this,"basePageTreeId",void 0),Se(this,"basePageKey",void 0),Se(this,"observing",!1),Se(this,"appContextMap",new Map),Se(this,"rumConfig",void 0),Se(this,"trackingCore",void 0),this.trackingCore=t,this.rumConfig=n}return Te(e,[{key:"startObserving",value:function(){var e,t,n=this;gi(),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",ui.forEach((function(e){var t;-2===(null===(t=hi[e])||void 0===t?void 0:t.value)&&n.reportMetric(e)})),t=this.onMetricUpdate.bind(this),mi.push(t))}},{key:"stopObserving",value:function(){this.observing=!1}},{key:"onMetricUpdate",value:function(e,t,n){var r;this.observing&&(n?this.reportMetric(e.name):this.appContextMap.set(t,{time:t,url:location.href,pageKey:null===(r=this.trackingCore.getCurrentContext())||void 0===r?void 0:r.pageKey}))}},{key:"reportMetric",value:function(e){var t=hi[e],n={name:di[e]||e};"CLS"===e?n.doubleValue=t.value:n.longValue=Math.round(t.value);var r=hi[e];if(r){var i=function(e,t,n,r,i){var o={basePageTreeId:e,basePageKey:t,basePageUrl:pi},s=null;switch(n.name){case"LCP":s=function(e,t){var n;if(0===e.updateHistory.length)return null;var r=e.updateHistory[e.updateHistory.length-1],i=r.data.entries,o=i[i.length-1],s={pageKey:(null===(n=t.get(r.time))||void 0===n?void 0:n.pageKey)||"_unknown",element:Cr(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,r);break;case"FID":s=function(e,t){var n;if(0===e.updateHistory.length)return null;var r=e.updateHistory[e.updateHistory.length-1],i=r.data.entries,o=i[i.length-1];return{pageKey:(null===(n=t.get(r.time))||void 0===n?void 0:n.pageKey)||"_unknown",processingStart:Math.round(o.processingStart),processingEnd:Math.round(o.processingEnd),target:Cr(o.target)}}(n,r);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 r=n.reduce((function(e,t){return e&&e.value>t.value?e:t})),i=e.updateHistory.find((function(e){return e.data.entries.includes(r)})),o=null;r&&r.sources&&r.sources.length&&(o=r.sources.reduce((function(e,t){return e.node&&e.previousRect.width*e.previousRect.height>t.previousRect.width*t.previousRect.height?e:t})));var s,a=t.get(i.time);return o&&a?{shiftCount:n.length,"largestShift.value":r.value,"largestShift.hadRecentInput":r.hadRecentInput,"largestShift.largestSource.node":Cr(null===(s=o)||void 0===s?void 0:s.node),"largestShift.pageKey":a.pageKey||"_unknown","largestShift.url":a.url,"largestShift.startTime":Math.round(r.startTime)}:null}(n,r)}if(s){var a={};return i(a,o,s),a}return o}(this.basePageTreeId,this.basePageKey,r,this.appContextMap,this.trackingCore.host.api.assign);n.metadata=function(e){var t={};return Object.keys(e).forEach((function(n){var r=e[n];t[n]="string"==typeof r?r:JSON.stringify(r)})),t}(i)}var o={scope:{scopeType:"APPLICATION_INSTANCE",scopeKey:this.basePageTreeId},metrics:[n]};this.trackingCore.fireEvent({appId:this.rumConfig["app-id"],eventName:"ClientPerfMetricsEvent"},o)}}]),e}();!function(){function e(t,n,r){var i,o;we(this,e),Se(this,"core",void 0),Se(this,"config",void 0),Se(this,"collector",void 0),Se(this,"boomerangStart",-1),Se(this,"webVitalsObserver",void 0),Se(this,"appMemoryObserver",void 0),Se(this,"pageMemoryObserver",void 0),Se(this,"liveTokens",new Set),Se(this,"stateWM",new WeakMap),Se(this,"activeToken",void 0),Se(this,"isInitial",void 0),Se(this,"beforeHideHandlerBound",this.beforeHideHandler.bind(this)),this.core=r,this.config=function(e,t){for(var n in e)void 0!==t[n]&&(e[n]=t[n]);return e}(r.host.api.assign({},Mr),n);var s="enabled"===(null===(i=(o=this.core.host).__getLixTreatment)||void 0===i?void 0:i.call(o,"pemberly.tracking.time-origin-epoch-time"));this.collector=new Lr(r.host.api,new Hr(t,this.config,r.host),this.config,s),this.collector.startObserving(),ft.before("internal:hide",this.beforeHideHandlerBound)}Te(e,[{key:"pingCDN",value:function(){}},{key:"recordTreeId",value:function(e,t){e&&this.collector.recordTreeId(e,t)}},{key:"recordRenderStart",value:function(e,t){this.collector.recordRenderStart(e,t||e)}},{key:"recordRenderEnd",value:function(e){this.collector.recordRenderEnd(e)}},{key:"start",value:function(){var e,t,n,r;this.activeToken&&this.abort(this.activeToken),this.flushEndedSessions(),this.isInitial=void 0===this.isInitial,this.isInitial||this.collector.reset();var i,o=Object.create(null),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:kr(this.core.host.api.performance,s)}),(this.config["enable-memory-measurement"]||"enabled"===(null===(n=(r=this.core.host).__getLixTreatment)||void 0===n?void 0:n.call(r,"pemberly.tracking.rum-memory-measurement")))&&(null===(i=this.pageMemoryObserver)||void 0===i||i.stopObserving(),this.pageMemoryObserver=new Dr("page-memory",this.core,this.config),this.pageMemoryObserver.startObserving(),void 0===this.appMemoryObserver&&(this.appMemoryObserver=new Dr("application-memory",this.core,this.config),this.appMemoryObserver.startObserving())),o}},{key:"observeWebVitals",value:function(){void 0===this.webVitalsObserver&&(this.webVitalsObserver=new wi(this.core,this.config),this.webVitalsObserver.startObserving())}},{key:"end",value:function(e){var t,n,r=this,i=arguments.length>1&&void 0!==arguments[1]&&arguments[1],o=arguments.length>2?arguments[2]:void 0;if(e&&this.activeToken&&this.activeToken===e){var 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=kr(this.core.host.api.performance,a);s.endProps={renderCompleteTime:c,isImpactedByHiddenWindow:i,rumKey:o};var l=this.activeToken;s.fireRumEventTimeout=setTimeout((function(){var e=r.collector.collect({isInitial:s.isInitial});"then"in e?e.then((function(e){r.fireRumEvent(e,l)})):r.fireRumEvent(e,l)}),this.config["beacon-timeout"]),this.activeToken=void 0}else ft.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;ft.offBefore("internal:hide",this.beforeHideHandlerBound),this.activeToken&&this.abort(this.activeToken),this.flushEndedSessions(),this.collector.stopObserving(),null===(e=this.webVitalsObserver)||void 0===e||e.stopObserving(),null===(t=this.appMemoryObserver)||void 0===t||t.stopObserving(),null===(n=this.pageMemoryObserver)||void 0===n||n.stopObserving(),this.core.destroy()}},{key:"abort",value:function(e){var t;if(!e||this.activeToken!==e)throw new Error("RUM abort: rum token passed is invalid");if(null!==(t=this.stateWM.get(e))&&void 0!==t&&t.endProps)throw new Error("RUM abort: Can't abort a session that was already ended");this.activeToken=void 0,this.stateWM.delete(e),this.liveTokens.delete(e)}},{key:"flushEndedSessions",value:function(){var e=this;this.liveTokens.forEach((function(t){var n=e.stateWM.get(t);if(n.endProps){var r=e.collector.collect({isInitial:n.isInitial,immediate:!0});e.fireRumEvent(r,t)}}))}},{key:"fireRumEvent",value:function(e,t){if(this.stateWM.get(t)){var n=this.core.host.api.assign,r=this.stateWM.get(t),i=r.startTime,o=r.endProps;if(o){var s=o.renderCompleteTime,a=o.isImpactedByHiddenWindow,c=o.rumKey,l=this.boomerangStart=e.navigationStart||this.boomerangStart,u=e.navigationStart||i,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)})),r.fireRumEventTimeout&&clearTimeout(r.fireRumEventTimeout),this.liveTokens.delete(t),this.stateWM.delete(t)}else this.abort(t)}}},{key:"beforeHideHandler",value:function(){this.flushEndedSessions()}}])}();var _i="undefined"!=typeof window&&"undefined"!=typeof performance,Ti="undefined"!=typeof location&&-1!==location.search.indexOf("_LI_MEASURE_DEBUG");function Si(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"ajax",n=arguments.length>2?arguments[2]:void 0;e.fireTrackingEvent("PageViewEvent",ki(n,t))}function ki(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"ajax";const n=T(document),r=S(document),i=ge();let o={};return i&&(o.theme=i.toUpperCase()),r&&(o.interfaceLocale=r),e&&(o.pageKey=e),{header:{},requestHeader:o,pageType:t,trackingInfo:{clientTimestamp:Date.now(),pageTag:n}}}function Ii(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)}!function(){function e(t,n){we(this,e),Se(this,"featureKey",void 0),Se(this,"productName",void 0),Se(this,"endPageInstance",void 0),Se(this,"startPageInstance",void 0),Se(this,"isCanceled",!1),Se(this,"featureIdentifier",void 0),Se(this,"name",void 0),Se(this,"startTime",void 0),Se(this,"duration",void 0),Se(this,"marks",[]),Se(this,"spanStarts",new Map),Se(this,"spans",[]),Se(this,"isSpanContainer",!1),Se(this,"basePageTreeId",void 0),Se(this,"isClosed",!1),this.featureKey=t,this.productName=n;var r=n?"::".concat(n):"";this.featureIdentifier="".concat(t).concat(r),this.name=t}Te(e,[{key:"start",value:function(e){this.startPageInstance=e,_i&&(this.startTime=Ir(),Ti&&performance.mark("LI:".concat(this.featureIdentifier,"-start")))}},{key:"mark",value:function(e){_i&&(this.marks.push({name:e,startTime:Ir()}),Ti&&(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){_i&&(this.spanStarts.set(e,Ir()),Ti&&performance.mark("LI:".concat(this.featureIdentifier,"-span-").concat(e,"-start")))}},{key:"spanEnd",value:function(e,t){if(_i&&this.spanStarts.has(e)){var n=this.spanStarts.get(e);this.spans.push({name:t||e,startTime:n,duration:Ir()-n}),Ti&&(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,_i&&(this.duration=Ir()-this.startTime,Ti&&!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(_i){var e={name:this.featureKey,startTime:this.startTime,duration:this.isSpanContainer?-1:this.duration,basePageTreeId:this.basePageTreeId,startPageInstance:this.startPageInstance||rt("unknown"),marks:this.marks,spans:this.spans};return this.productName&&(e.productName=this.productName),e}}},{key:"check",value:function(){if(_i){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()}}])}();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 Ci(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:window;return e.innerWidth<=769}function Ai(e){return e.scrollHeight>e.offsetHeight}function Ri(e,t){const n=D(e);for(let e=0;e<n.length;e++)n[e]&&1===n[e].nodeType&&t(n[e])}function Oi(e){Li([e])}function Ni(e){xi([e])}function Li(e){Ri(e,e=>{e.classList.add("hidden"),e.setAttribute("aria-hidden","true")})}function xi(e){Ri(e,e=>{e.classList.remove("hidden"),e.setAttribute("aria-hidden","false")})}function Pi(e){null==e||e.setAttribute("disabled","disabled"),null==e||e.setAttribute("aria-disabled","true")}function Mi(e){null==e||e.removeAttribute("disabled"),null==e||e.removeAttribute("aria-disabled")}function Di(){const e=document.querySelector('meta[name="pillar"]');return e?e.getAttribute("content"):""}const Ui={EFFECTIVE_CONNECTION_TYPE:"x-effective-connection-type"};function Bi(){const e=navigator.connection||navigator.mozConnection||navigator.webkitConnection;return e&&e.effectiveType}function Fi(e){let t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const r=_(document),i=Bi();return window.tracking.then(o=>(t=o.generateTrackingId(),oe(e,pe(pe({},n),{},{method:n.method||"GET",postData:"POST"===n.method&&n.postData?JSON.stringify(n.postData):null,headers:{"content-type":"application/json",[Ui.EFFECTIVE_CONNECTION_TYPE]:i,"X-Requested-With":"XMLHttpRequest","x-tracking-id":t,"x-referer-pagekey":r,"X-li-page-instance":"urn:li:page:".concat(r,";").concat(t)}}))))}function qi(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:document;const r=null==n?void 0:n.querySelector(".".concat(e));if(r&&Ai(r)){const i=n.querySelector(t);null==i||i.classList.remove("invisible"),null==i||i.addEventListener("click",()=>{r.classList.remove(e),i.classList.add("invisible")})}}const ji="prev",Hi="next";class zi{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._slideNavDisabled="true"===this._el.dataset.disabled,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),!("ontouchstart"in window)&&this._slideNavDisabled||(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__header-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?(Ni(this._indicatorElement),this._indicatorElement.isActive=!0,this._indicatorElement.addEventListener("click",this._indicatorClickHandler)):(Oi(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(),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,r=t-e;let i=[0];const o=[new Set],s=[];let a=0;for(let t=0;t<this._items.length;t+=1){const c=i[i.length-1],l=o[i.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>=r){o.push(new Set(this._items.slice(t)));break}i.push((this._isRtl?a:h)-n),o.push(new Set([this._items[t]]))}else l.add(this._items[t]);a=p}}return i.push(r),s.forEach((e,t)=>{e>=r&&o[o.length-1].add(this._items[t])}),this._pageItems=o,i}_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(Y).forEach(e=>{const t=e.getAttribute("tabindex");this._prevTabIndexMap.set(e,t),e.setAttribute("tabindex","-1")})}}_handleScrollAction(e){const t=O(e.target,".slide-list__nav-button"),n=t&&t.dataset.direction;n&&(this._listEl.addEventListener("transitionend",this._boundFireScrollEvent),n===ji?this.prev():n===Hi&&this.next())}_fireScrollEvent(){G(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(){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._currentPage!==this._pageTranslates.length-1&&0!==this._pageTranslates.length||(this._nextButton.disabled=!0)}this._updateIndicatorButtons()}_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(){G(this._el,"pagechange",{pageNumber:this._currentPage})}}const Gi=".tabs__list",Wi=".tab-button",Ki=".tab__panel";class Vi{constructor(e){if(!(e&&e instanceof Node))throw new Error("No tabs element passed in");this._el=e,this._tabList=this._el.querySelector(Gi),this._tabButtonList=this._el.querySelectorAll(Wi),this._tabPanelList=this._el.querySelectorAll(Ki),this._initializeTabs(),this._tabList.addEventListener("keydown",e=>this._onTabButtonKeyDown(e)),this._tabList.addEventListener("click",e=>{let{target:t}=e;return this._onTabClick(t)})}_initializeTabs(){this._addAttributes(),[this._tabActive,this._tabPanelActive]=this._getActiveElements(),this._checkActivePanel()}_addAttributes(){const e=this._generateIds();this._tabButtonList.forEach((t,n)=>{const r=this._tabPanelList[n],{tabId:i,tabPanelId:o}=e(n);t.id=i,t.setAttribute("aria-controls",o),r.id=o,r.setAttribute("aria-labelledby",i)})}_generateIds(){const e=this._el.dataset.tabId?"".concat(this._el.dataset.tabId,"_"):"";return function(t){return{tabPanelId:"".concat(e,"tab-panel_").concat(t),tabId:"".concat(e,"tab_").concat(t)}}}_getActiveElements(){const e=this._el.querySelector('[aria-selected="true"]')||this._tabButtonList[0],t=e.getAttribute("aria-controls");return[e,document.getElementById(t)]}_checkActivePanel(){this._tabPanelActive.removeAttribute("hidden"),this._tabPanelList.forEach(e=>{e!==this._tabPanelActive&&e.setAttribute("hidden","")})}_onTabButtonKeyDown(e){switch(R(e.key)){case C.ENTER:case C.SPACEBAR:e.target!==this._tabActive&&this._activateTab(e.target);break;case C.ARROW_LEFT:this._focusTabOnArrowPress(-1,e.target);break;case C.ARROW_RIGHT:this._focusTabOnArrowPress(1,e.target)}}_onTabClick(e){const t=O(e,Wi);t&&[...this._tabButtonList].includes(t)&&t!==this._tabActive&&this._activateTab(t)}_focusTabOnArrowPress(e,t){const n=[...this._tabButtonList].indexOf(t),r=this._tabButtonList[n+(1===e?1:-1)];r?r.focus():-1===e?this._focusLastTab():this._focusFirstTab()}_focusFirstTab(){this._tabButtonList[0].focus()}_focusLastTab(){this._tabButtonList[this._tabButtonList.length-1].focus()}_activateTab(e){this._deactivateActiveTab(),this._tabActive=e,this._tabActive.removeAttribute("tabIndex"),this._tabActive.setAttribute("aria-selected","true"),this._tabActive.classList.add("tab-selected");const t=this._tabActive.getAttribute("aria-controls");this._tabPanelActive=document.getElementById(t),this._tabPanelActive.removeAttribute("hidden")}_deactivateActiveTab(){this._tabActive.setAttribute("tabIndex","-1"),this._tabActive.setAttribute("aria-selected","false"),this._tabActive.classList.remove("tab-selected"),this._tabActive=null,this._tabPanelActive.setAttribute("hidden",""),this._tabPanelActive=null}}class Qi{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 Xi=["class","disabled","style","tabindex","type"];class Ji{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 Qi(this._container)}init(){this._observer.observe(this._container,{attributeFilter:Xi,attributes:!0,childList:!0,subtree:!0}),this._setFirstAndLastFocusableEls(this._container),this._container.addEventListener("keydown",this._handleKeyDown),this._backgroundNavigationDisabler.disableBackground()}tearDown(){this._observer.disconnect(),this._container.removeEventListener("keydown",this._handleKeyDown),this._backgroundNavigationDisabler.enableBackground()}_focusTrap(e){const{key:t,target:n}=e,r=R(t),i=r===C.TAB&&e.shiftKey;!i&&r===C.TAB&&n===this.lastFocusableEl?(this.firstFocusableEl.focus(),e.preventDefault()):i&&n===this.firstFocusableEl&&(this.lastFocusableEl.focus(),e.preventDefault())}_setFirstAndLastFocusableEls(e){const[t,n]=this._getFirstAndLastFocusableEls(e);this.firstFocusableEl=t,this.lastFocusableEl=n,setTimeout(()=>{this._hasFocusBeenDropped()&&("-1"===e.getAttribute("tabindex")?e.focus():this.firstFocusableEl.focus())},100)}_hasFocusBeenDropped(){const e=document.activeElement;return!e||e===document.body}_getFirstAndLastFocusableEls(e){const t=[...e.querySelectorAll(Y)],n=new Map;let r,i,o=0,s=t.length-1;for(;(!r||!i)&&o<=s;){if(!r){const i=t[o];r=$(i,e,n)&&i,o++}if(!i){const r=t[s];i=$(r,e,n)&&r,s--}}return i=i||r,[r,i]}}const{ENTER:Yi,ESCAPE:Zi}=C;class $i{constructor(e){let{enablePageViewTracking:t=!1,shouldHideModal:n=(()=>!1),triggerByOutletEl:r=!0,shouldMoveToTopContainer:i=!0}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!e)throw new Error("No modal element passed in");this._el=e,this._parentNode=this._el.parentNode,i&&(this._topLevelContainer=this._getTopLevelContainer()),this._wrapperEl=this._el.querySelector(".".concat("modal__wrapper")),this._overlayEl=this._el.querySelector(".".concat("modal__overlay")),r&&(this._outletEls=this._getOutletEls()),this._exitButtonEl=this._el.querySelector(".".concat("modal__dismiss")),this._onKeyDownEvent=e=>this._onKeyDown(e),this._enablePageViewTracking=t,this._shouldHideModal=n,this._shouldMoveToTopContainer=i,r&&this._outletEls.forEach(e=>{e.addEventListener("click",()=>this.open())}),this._exitButtonEl&&this._exitButtonEl.addEventListener("click",()=>this.close()),this._overlayEl.addEventListener("click",this._handleOverlayClick.bind(this)),this._focusTrap=new Ji(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=R(e.key),n=t===Yi&&document.activeElement===this._exitButtonEl;(t===Zi||n)&&(this.close(),e.preventDefault())}open(){if(!this._shouldHideModal())return 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),G(this._el,"open"),this._wrapperEl&&this._wrapperEl.focus(),this._focusTrap.init(),this._enablePageViewTracking&&window.tracking?window.tracking.then(e=>{const t=_(document,{skipSuffix:!0});Si(e,"ajax","".concat(t,"_").concat(this._el.id))}):Promise.resolve();G(this._el,"didNotOpen")}close(){this._overlayEl.classList.remove("modal__overlay--visible"),this._shouldMoveToTopContainer&&this._parentNode.appendChild(this._el),this.removeNoScroll(),document.removeEventListener("keydown",this._onKeyDownEvent),G(this._el,"close"),this._previouslyFocusedEl&&this._previouslyFocusedEl.focus(),this._focusTrap.tearDown()}noScroll(){document.body.classList.add("no-scroll")}removeNoScroll(){document.body.classList.remove("no-scroll")}}var eo=Object.hasOwnProperty,to=Object.setPrototypeOf,no=Object.isFrozen,ro=Object.getPrototypeOf,io=Object.getOwnPropertyDescriptor,oo=Object.freeze,so=Object.seal,ao=Object.create,co="undefined"!=typeof Reflect&&Reflect,lo=co.apply,uo=co.construct;lo||(lo=function(e,t,n){return e.apply(t,n)}),oo||(oo=function(e){return e}),so||(so=function(e){return e}),uo||(uo=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 ho,po=To(Array.prototype.forEach),fo=To(Array.prototype.pop),mo=To(Array.prototype.push),vo=To(String.prototype.toLowerCase),go=To(String.prototype.match),yo=To(String.prototype.replace),bo=To(String.prototype.indexOf),Eo=To(String.prototype.trim),wo=To(RegExp.prototype.test),_o=(ho=TypeError,function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return uo(ho,t)});function To(e){return function(t){for(var n=arguments.length,r=Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];return lo(e,t,r)}}function So(e,t){to&&to(e,null);for(var n=t.length;n--;){var r=t[n];if("string"==typeof r){var i=vo(r);i!==r&&(no(t)||(t[n]=i),r=i)}e[r]=!0}return e}function ko(e){var t=ao(null),n=void 0;for(n in e)lo(eo,e,[n])&&(t[n]=e[n]);return t}function Io(e,t){for(;null!==e;){var n=io(e,t);if(n){if(n.get)return To(n.get);if("function"==typeof n.value)return To(n.value)}e=ro(e)}return function(e){return console.warn("fallback value for",e),null}}var Co=oo(["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=oo(["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"]),Ro=oo(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),Oo=oo(["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"]),No=oo(["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"]),Lo=oo(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),xo=oo(["#text"]),Po=oo(["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=oo(["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"]),Do=oo(["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"]),Uo=oo(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),Bo=so(/\{\{[\s\S]*|[\s\S]*\}\}/gm),Fo=so(/<%[\s\S]*|[\s\S]*%>/gm),qo=so(/^data-[\-\w.\u00B7-\uFFFF]/),jo=so(/^aria-[\-\w]+$/),Ho=so(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),zo=so(/^(?:\w+script|data):/i),Go=so(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),Wo="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 Ko(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 Vo=function(){return"undefined"==typeof window?null:window},Qo=function(e,t){if("object"!==(void 0===e?"undefined":Wo(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 r="dompurify"+(n?"#"+n:"");try{return e.createPolicy(r,{createHTML:function(e){return e}})}catch(e){return console.warn("TrustedTypes policy "+r+" could not be created."),null}};var Xo=function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Vo(),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 r=t.document,i=t.document,o=t.DocumentFragment,s=t.HTMLTemplateElement,a=t.Node,c=t.Element,l=t.NodeFilter,u=t.NamedNodeMap,d=void 0===u?t.NamedNodeMap||t.MozNamedAttrMap:u,h=t.HTMLFormElement,p=t.DOMParser,f=t.trustedTypes,m=c.prototype,v=Io(m,"cloneNode"),g=Io(m,"nextSibling"),y=Io(m,"childNodes"),b=Io(m,"parentNode");if("function"==typeof s){var E=i.createElement("template");E.content&&E.content.ownerDocument&&(i=E.content.ownerDocument)}var w=Qo(f,r),_=w?w.createHTML(""):"",T=i,S=T.implementation,k=T.createNodeIterator,I=T.createDocumentFragment,C=T.getElementsByTagName,A=r.importNode,R={};try{R=ko(i).documentMode?i.documentMode:{}}catch(e){}var O={};n.isSupported="function"==typeof b&&S&&void 0!==S.createHTMLDocument&&9!==R;var N=Bo,L=Fo,x=qo,P=jo,M=zo,D=Go,U=Ho,B=null,F=So({},[].concat(Ko(Co),Ko(Ao),Ko(Ro),Ko(No),Ko(xo))),q=null,j=So({},[].concat(Ko(Po),Ko(Mo),Ko(Do),Ko(Uo))),H=Object.seal(Object.create(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),z=null,G=null,W=!0,K=!0,V=!1,Q=!1,X=!1,J=!1,Y=!1,Z=!1,$=!1,ee=!1,te=!0,ne=!0,re=!1,ie={},oe=null,se=So({},["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=So({},["audio","video","img","source","image","track"]),le=null,ue=So({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),de="http://www.w3.org/1998/Math/MathML",he="http://www.w3.org/2000/svg",pe="http://www.w3.org/1999/xhtml",fe=pe,me=!1,ve=void 0,ge=["application/xhtml+xml","text/html"],ye="text/html",be=void 0,Ee=null,we=i.createElement("form"),_e=function(e){return e instanceof RegExp||e instanceof Function},Te=function(e){Ee&&Ee===e||(e&&"object"===(void 0===e?"undefined":Wo(e))||(e={}),e=ko(e),B="ALLOWED_TAGS"in e?So({},e.ALLOWED_TAGS):F,q="ALLOWED_ATTR"in e?So({},e.ALLOWED_ATTR):j,le="ADD_URI_SAFE_ATTR"in e?So(ko(ue),e.ADD_URI_SAFE_ATTR):ue,ae="ADD_DATA_URI_TAGS"in e?So(ko(ce),e.ADD_DATA_URI_TAGS):ce,oe="FORBID_CONTENTS"in e?So({},e.FORBID_CONTENTS):se,z="FORBID_TAGS"in e?So({},e.FORBID_TAGS):{},G="FORBID_ATTR"in e?So({},e.FORBID_ATTR):{},ie="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,Q=e.SAFE_FOR_TEMPLATES||!1,X=e.WHOLE_DOCUMENT||!1,Z=e.RETURN_DOM||!1,$=e.RETURN_DOM_FRAGMENT||!1,ee=e.RETURN_TRUSTED_TYPE||!1,Y=e.FORCE_BODY||!1,te=!1!==e.SANITIZE_DOM,ne=!1!==e.KEEP_CONTENT,re=e.IN_PLACE||!1,U=e.ALLOWED_URI_REGEXP||U,fe=e.NAMESPACE||pe,e.CUSTOM_ELEMENT_HANDLING&&_e(e.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(H.tagNameCheck=e.CUSTOM_ELEMENT_HANDLING.tagNameCheck),e.CUSTOM_ELEMENT_HANDLING&&_e(e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(H.attributeNameCheck=e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),e.CUSTOM_ELEMENT_HANDLING&&"boolean"==typeof e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements&&(H.allowCustomizedBuiltInElements=e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),ve=ve=-1===ge.indexOf(e.PARSER_MEDIA_TYPE)?ye:e.PARSER_MEDIA_TYPE,be="application/xhtml+xml"===ve?function(e){return e}:vo,Q&&(K=!1),$&&(Z=!0),ie&&(B=So({},[].concat(Ko(xo))),q=[],!0===ie.html&&(So(B,Co),So(q,Po)),!0===ie.svg&&(So(B,Ao),So(q,Mo),So(q,Uo)),!0===ie.svgFilters&&(So(B,Ro),So(q,Mo),So(q,Uo)),!0===ie.mathMl&&(So(B,No),So(q,Do),So(q,Uo))),e.ADD_TAGS&&(B===F&&(B=ko(B)),So(B,e.ADD_TAGS)),e.ADD_ATTR&&(q===j&&(q=ko(q)),So(q,e.ADD_ATTR)),e.ADD_URI_SAFE_ATTR&&So(le,e.ADD_URI_SAFE_ATTR),e.FORBID_CONTENTS&&(oe===se&&(oe=ko(oe)),So(oe,e.FORBID_CONTENTS)),ne&&(B["#text"]=!0),X&&So(B,["html","head","body"]),B.table&&(So(B,["tbody"]),delete z.tbody),oo&&oo(e),Ee=e)},Se=So({},["mi","mo","mn","ms","mtext"]),ke=So({},["foreignobject","desc","title","annotation-xml"]),Ie=So({},Ao);So(Ie,Ro),So(Ie,Oo);var Ce=So({},No);So(Ce,Lo);var Ae=function(e){var t=b(e);t&&t.tagName||(t={namespaceURI:pe,tagName:"template"});var n=vo(e.tagName),r=vo(t.tagName);if(e.namespaceURI===he)return t.namespaceURI===pe?"svg"===n:t.namespaceURI===de?"svg"===n&&("annotation-xml"===r||Se[r]):Boolean(Ie[n]);if(e.namespaceURI===de)return t.namespaceURI===pe?"math"===n:t.namespaceURI===he?"math"===n&&ke[r]:Boolean(Ce[n]);if(e.namespaceURI===pe){if(t.namespaceURI===he&&!ke[r])return!1;if(t.namespaceURI===de&&!Se[r])return!1;var i=So({},["title","style","font","a","script"]);return!Ce[n]&&(i[n]||!Ie[n])}return!1},Re=function(e){mo(n.removed,{element:e});try{e.parentNode.removeChild(e)}catch(t){try{e.outerHTML=_}catch(t){e.remove()}}},Oe=function(e,t){try{mo(n.removed,{attribute:t.getAttributeNode(e),from:t})}catch(e){mo(n.removed,{attribute:null,from:t})}if(t.removeAttribute(e),"is"===e&&!q[e])if(Z||$)try{Re(t)}catch(e){}else try{t.setAttribute(e,"")}catch(e){}},Ne=function(e){var t=void 0,n=void 0;if(Y)e="<remove></remove>"+e;else{var r=go(e,/^[\r\n\t ]+/);n=r&&r[0]}"application/xhtml+xml"===ve&&(e='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+e+"</body></html>");var o=w?w.createHTML(e):e;if(fe===pe)try{t=(new p).parseFromString(o,ve)}catch(e){}if(!t||!t.documentElement){t=S.createDocument(fe,"template",null);try{t.documentElement.innerHTML=me?"":o}catch(e){}}var s=t.body||t.documentElement;return e&&n&&s.insertBefore(i.createTextNode(n),s.childNodes[0]||null),fe===pe?C.call(t,X?"html":"body")[0]:X?t.documentElement:s},Le=function(e){return k.call(e.ownerDocument||e,e,l.SHOW_ELEMENT|l.SHOW_COMMENT|l.SHOW_TEXT,null,!1)},xe=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)},Pe=function(e){return"object"===(void 0===a?"undefined":Wo(a))?e instanceof a:e&&"object"===(void 0===e?"undefined":Wo(e))&&"number"==typeof e.nodeType&&"string"==typeof e.nodeName},Me=function(e,t,r){O[e]&&po(O[e],(function(e){e.call(n,t,r,Ee)}))},De=function(e){var t=void 0;if(Me("beforeSanitizeElements",e,null),xe(e))return Re(e),!0;if(go(e.nodeName,/[\u0080-\uFFFF]/))return Re(e),!0;var r=be(e.nodeName);if(Me("uponSanitizeElement",e,{tagName:r,allowedTags:B}),!Pe(e.firstElementChild)&&(!Pe(e.content)||!Pe(e.content.firstElementChild))&&wo(/<[/\w]/g,e.innerHTML)&&wo(/<[/\w]/g,e.textContent))return Re(e),!0;if("select"===r&&wo(/<template/i,e.innerHTML))return Re(e),!0;if(!B[r]||z[r]){if(ne&&!oe[r]){var i=b(e)||e.parentNode,o=y(e)||e.childNodes;if(o&&i)for(var s=o.length-1;s>=0;--s)i.insertBefore(v(o[s],!0),g(e))}if(!z[r]&&Be(r)){if(H.tagNameCheck instanceof RegExp&&wo(H.tagNameCheck,r))return!1;if(H.tagNameCheck instanceof Function&&H.tagNameCheck(r))return!1}return Re(e),!0}return e instanceof c&&!Ae(e)?(Re(e),!0):"noscript"!==r&&"noembed"!==r||!wo(/<\/no(script|embed)/i,e.innerHTML)?(Q&&3===e.nodeType&&(t=e.textContent,t=yo(t,N," "),t=yo(t,L," "),e.textContent!==t&&(mo(n.removed,{element:e.cloneNode()}),e.textContent=t)),Me("afterSanitizeElements",e,null),!1):(Re(e),!0)},Ue=function(e,t,n){if(te&&("id"===t||"name"===t)&&(n in i||n in we))return!1;if(K&&!G[t]&&wo(x,t));else if(W&&wo(P,t));else if(!q[t]||G[t]){if(!(Be(e)&&(H.tagNameCheck instanceof RegExp&&wo(H.tagNameCheck,e)||H.tagNameCheck instanceof Function&&H.tagNameCheck(e))&&(H.attributeNameCheck instanceof RegExp&&wo(H.attributeNameCheck,t)||H.attributeNameCheck instanceof Function&&H.attributeNameCheck(t))||"is"===t&&H.allowCustomizedBuiltInElements&&(H.tagNameCheck instanceof RegExp&&wo(H.tagNameCheck,n)||H.tagNameCheck instanceof Function&&H.tagNameCheck(n))))return!1}else if(le[t]);else if(wo(U,yo(n,D,"")));else if("src"!==t&&"xlink:href"!==t&&"href"!==t||"script"===e||0!==bo(n,"data:")||!ae[e]){if(V&&!wo(M,yo(n,D,"")));else if(n)return!1}else;return!0},Be=function(e){return e.indexOf("-")>0},Fe=function(e){var t=void 0,r=void 0,i=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(r=Eo(t.value),i=be(l),a.attrName=i,a.attrValue=r,a.keepAttr=!0,a.forceKeepAttr=void 0,Me("uponSanitizeAttribute",e,a),r=a.attrValue,!a.forceKeepAttr&&(Oe(l,e),a.keepAttr))if(wo(/\/>/i,r))Oe(l,e);else{Q&&(r=yo(r,N," "),r=yo(r,L," "));var d=be(e.nodeName);if(Ue(d,i,r))try{u?e.setAttributeNS(u,l,r):e.setAttribute(l,r),fo(n.removed)}catch(e){}}}Me("afterSanitizeAttributes",e,null)}},qe=function e(t){var n=void 0,r=Le(t);for(Me("beforeSanitizeShadowDOM",t,null);n=r.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,i){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&&!Pe(e)){if("function"!=typeof e.toString)throw _o("toString is not a function");if("string"!=typeof(e=e.toString()))throw _o("dirty is not a string, aborting")}if(!n.isSupported){if("object"===Wo(t.toStaticHTML)||"function"==typeof t.toStaticHTML){if("string"==typeof e)return t.toStaticHTML(e);if(Pe(e))return t.toStaticHTML(e.outerHTML)}return e}if(J||Te(i),n.removed=[],"string"==typeof e&&(re=!1),re){if(e.nodeName){var h=be(e.nodeName);if(!B[h]||z[h])throw _o("root node is forbidden and cannot be sanitized in-place")}}else if(e instanceof a)1===(c=(s=Ne("\x3c!----\x3e")).ownerDocument.importNode(e,!0)).nodeType&&"BODY"===c.nodeName||"HTML"===c.nodeName?s=c:s.appendChild(c);else{if(!Z&&!Q&&!X&&-1===e.indexOf("<"))return w&&ee?w.createHTML(e):e;if(!(s=Ne(e)))return Z?null:ee?_:""}s&&Y&&Re(s.firstChild);for(var p=Le(re?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,re)return e;if(Z){if($)for(d=I.call(s.ownerDocument);s.firstChild;)d.appendChild(s.firstChild);else d=s;return q.shadowroot&&(d=A.call(r,d,!0)),d}var f=X?s.outerHTML:s.innerHTML;return Q&&(f=yo(f,N," "),f=yo(f,L," ")),w&&ee?w.createHTML(f):f},n.setConfig=function(e){Te(e),J=!0},n.clearConfig=function(){Ee=null,J=!1},n.isValidAttribute=function(e,t,n){Ee||Te({});var r=be(e),i=be(t);return Ue(r,i,n)},n.addHook=function(e,t){"function"==typeof t&&(O[e]=O[e]||[],mo(O[e],t))},n.removeHook=function(e){O[e]&&fo(O[e])},n.removeHooks=function(e){O[e]&&(O[e]=[])},n.removeAllHooks=function(){O={}},n}();const Jo={ADD_TAGS:["#comment","li-icon","icon","iframe"],ADD_ATTR:["target"],FORCE_BODY:!0,RETURN_DOM:!0};function Yo(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n=Zo(null,e,t);return n.innerHTML}function Zo(e,t){let{ADD_TAGS:n=[],ADD_ATTR:r=[]}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const i=pe({},Jo);i.ADD_TAGS=[...i.ADD_TAGS,...n],i.ADD_ATTR=[...i.ADD_ATTR,...r];const o=Xo.sanitize(t,i);return e&&e.nodeType===Node.ELEMENT_NODE&&(e.innerHTML="",e.append(...o.childNodes)),o}var $o="aria-[a-z0-9_\\-]+|class|data-[a-z0-9_\\-]+|dir|id|role|tabindex",es=function(){if("undefined"==typeof document)return!0;return"textContent"in document.createElement("div")}()?"textContent":"innerText",ts=["b","del","em","i","s","strong","sub","sup"],ns=ts.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"]),rs=[$o,"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 is(){}var os,ss;ss=/[&<>"'\u0000\\=]/g,os={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","\0":"�","\\":"&#92;","=":"&#61;"},function(){var e,t,n=/&(?:([a-z0-9]+)|#x([\da-f]{1,6})|#(\d{1,8}));/gi;if("undefined"==typeof document)return function(){throw new Error("document is undefined (i.e. you are probably in Node.js)")};e=document.createElement("div");var r={nbsp:" ",lt:"<",gt:">",amp:"&",quot:'"'};t="function"==typeof String.fromCodePoint?function(e){return String.fromCodePoint(e)}:function(e){return e<=65535?String.fromCharCode(e):"�"}}();var as=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)};var cs,ls=Array.prototype.forEach?function(e,t){Array.prototype.forEach.call(e,t)}:function(e,t){for(var n=0,r=e.length;n<r;n++)t(e[n],n)};function us(e){e=as(e)?e:[e];var t,n,r,i=0,o="<(?!/?";return o+="(?:",ls(e,(function(e,s){t=e.tags||ns,n=e.attrs||rs,r=e.checkUrlAttrs||!1,0!==s&&(o+="|"),o+="(?:"+t.join("|")+")",o+="(?:",o+="[ \t\r\n]*",o+="|[ \t\r\n]+",o+="(?:(?:",o+="(?:"+n+")(?:=([\"'])[^'\"<>]*\\"+ ++i+")?",r&&(o+="|(?:href|src)=([\"'])(?:(?:https?|ftp|mailto|invalid)(?::|&#(?:58|x3a);)|(?:data:image/(?:gif|jpg|jpeg|png);base64,)|[/.#?]|&#(?:35|4[67]|63|x(?:2[3ef]|3f));)[^'\"<>]*\\"+ ++i),o+=")[ \t\r\n]*)+",o+=")"})),o+=")",o+="/?>)",new RegExp(o,"i")}function ds(e){return us({tags:e=e||ns,checkUrlAttrs:!0})}function hs(e,t){var n=(t=t||{}).allowTags,r=!1!==t.hasCustomElementMarkup;return n?!ds(n).test(e):r?!hs.R_UNSAFE_CUSTOM_ELEMENT.test(e):!hs.R_UNSAFE_HTML.test(e)}function ps(e){return e.replace(/<[^>]*>|[<>'"&\\]/g,"")}hs.R_UNSAFE_HTML=ds(),hs.R_UNSAFE_CUSTOM_ELEMENT=us([{tags:ns,checkUrlAttrs:!0},{tags:[(cs={tag:"li-icon",attrs:"active|a11y-text|animate|color|size|type"}).tag],attrs:[$o,cs.attrs].join("|"),checkUrlAttrs:!1}]);var fs={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,"",""]};fs.optgroup=fs.option,fs.tbody=fs.tfoot=fs.colgroup=fs.caption=fs.thead,fs.th=fs.td;function ms(e,t){if(!(this instanceof ms))return new ms(e,t);(t=t||{}).allowTags=t.allowTags?t.allowTags.reduce((function(e,t){return e.concat(t)}),[]):null,this._string=e,this._options=t}ms.prototype=function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);return e}(new is,{toString:function(){var e=this._string,t=this._stringVal,n=e;return void 0!==t?t:(hs(e,this._options)||(n=e,e=ps(e),Ii("UnsafeString contains non-whitelisted tags or attributes.\nString: "+n,"error")),this._stringVal=e,e)}});Object.freeze({CAUTION:"caution",ERROR:"error",GDPR:"gdpr",NOTIFY:"notify",SUCCESS:"success"});const vs={};function gs(e){const t=document.getElementById(e);if(!t&&void 0!==vs[e])return vs[e];if(!t)return console.warn("Element with id: ".concat(e," not found")),vs[e]=null,vs[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):(vs[e]=n,t.parentNode.removeChild(t),vs[e])}const ys={COPY:"copy",LINKEDIN:"linkedin",TWITTER:"twitter",FACEBOOK:"facebook"};Object.keys(ys).map(e=>ys[e]);const bs=["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(bs,"i");const Es=/.*(iPad|iPod|iPhone|Android|BB10|BlackBerry|IEMobile).*/;function ws(e){return!!e&&Es.test(e)}class _s{constructor(e){let{scrollThreshold:t=50,hideOnScrollBack:n=!1,hideOnScrollDown:r=!1,isBottom:i=!0,exposeStickyState:o=!1,marginApplied:s=!1,debounceDelay:a=100}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(n&&r)throw new Error("hideOnScrollBack & hideOnScrollDown cannot both be true at the same time");this.el=e,this.scrollThreshold=t,this.hideOnScrollBack=n,this.hideOnScrollDown=r,this.isBottom=i,this.exposeStickyState=o,this._scrollListener=H(this._onScroll.bind(this),a),this.marginApplied=s,this.previousScrollPosition=window.pageYOffset,this._setSpacingBound=this._setSpacing.bind(this),this._setupResizeListener(),N(()=>{this.originalMarginTop=parseInt(window.getComputedStyle(document.body).marginTop)||0,this.originalMarginBottom=parseInt(window.getComputedStyle(document.body).marginBottom)||0,this._setSpacing(!0),this._doesPageHaveEnoughScroll()?window.addEventListener("scroll",this._scrollListener):this.hideOnScrollBack||this.show()})}reactivate(){this._setupResizeListener(),this._setSpacing()}deactivate(){this._removeResizeListener(),this._resetSpacing()}_setupResizeListener(){ws(navigator.userAgent)||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"),G(this.el,"show")}hide(){this.el.classList.remove("show"),G(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}}"".concat("tooltip__popup","--show");const Ts="dismissable-input",Ss="dismissable-input--focus",ks="dismissable-input__button",Is="dismissable-input__button--show",Cs="dismissable-input__input";class As{constructor(e){this.el=e,this._input=this.el.querySelector(".".concat(Cs)),this._dismissButtonEl=this.el.querySelector(".".concat(ks)),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(Ss),this._updateDismissButton(),G(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(Is)}_showDismissButton(){this._dismissButtonEl.classList.add(Is)}_onInputBlur(){this.el.classList.remove(Ss)}clear(){this._input.value="",this._updateDismissButton(""),this._input.focus(),G(this.el,"clear")}}const Rs={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"},Os="i18n_aria_live_text_no-suggestions",Ns="i18n_aria_live_text_one-suggestion",Ls="i18n_aria_live_text_multiple-suggestions",xs=500;class Ps{constructor(e,t){let{createDismissableInput:n,elementClasses:r=Rs,generateApiUrl:i,liveTextEl:o,liveTextClearTime:s=xs,onSelect:a,onInput:c=(()=>{}),inputEl:l,dropdownContainerEl:u,dropdownListEl:d,isFullPageTypeahead:h}=t;this.el=e,this._liveTextClearTime=s,this._elementClasses=r,this._input=l||this.el.querySelector(".".concat(Cs)),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=i,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 As(this.el)),this.isFullPageTypeahead=h,this._getLiveTextOptions(),this._resetState(),this._attachEventListeners(),this._requestHandler=H(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(R(e.key)){case C.ARROW_DOWN:e.preventDefault(),this._moveToResult(1);break;case C.ARROW_UP:e.preventDefault(),this._moveToResult(-1);break;case C.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 oe(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(),r=n.querySelector(".".concat(this._elementClasses.listItem)),i=r.querySelector(".".concat(this._elementClasses.dropdownText));r.id="".concat(this._input.name,"-").concat(t+1),i.textContent=e.displayName,i.dataset.id=e.id,this._dropdownListEl.appendChild(n)}),this._dropdownListItemEls=D(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=gs(Os),this._liveTextOneSuggestion=gs(Ns),this._liveTextMultipleSuggestions=gs(Ls)}_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 Ms{constructor(e,t,n){let{onCloseExpandedSearch:r=(e=>e),isMobileDevice:i=!1}=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};if(this.el=e,this.expandedEl=t,this.placeholderEl=n,this.isMobileDevice=i,!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=r,i&&(this.focusTrap=new Ji(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,r="Escape"===t,i="INPUT"===n.tagName;r&&!i?(e.preventDefault(),this.hideExpandedSearch()):"Tab"===t&&this._userIsTabbedOut()&&this.hideExpandedSearch()}_onIOSTouchStartEvent(e){const{target:t}=e;O(t,".".concat(Rs.block))||document.activeElement.blur()}_userIsTabbedOut(){if(this.expandedEl.classList.contains("isExpanded")&&Ci()){return!this.expandedEl.contains(document.activeElement)}return!1}}class Ds extends Ps{constructor(e,t){let{generateApiUrl:n,liveTextEl:r,onSelect:i,onInput:o,isFullPageTypeahead:s}=t;super(e,{createDismissableInput:!0,generateApiUrl:n,liveTextEl:r,onSelect:i,onInput:o,isFullPageTypeahead:s})}}const Us={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"},Bs="i18n_aria_live_text_recent-searches-one-suggestion",Fs="i18n_aria_live_text_recent-searches-multiple-suggestions",qs="i18n_aria_live_text_recent-searches-cleared";class js extends Ps{constructor(e,t){let{liveTextEl:n,clearRecentSearchApiBaseUrl:r}=t;if(super(e,{liveTextEl:n,elementClasses:Us,liveTextClearTime:1e3}),!e)throw Error("An element must be provided to RecentSearches");if(this.dropdownContainerEl=e.querySelector(".".concat(Us.dropdown)),!this.dropdownContainerEl)throw Error("A RecentSearches container element must be in the RecentSearches parent element");this._clearRecentSearchApiBaseUrl=r,this._dropdownListItemEls=D(this.dropdownContainerEl.querySelectorAll(".".concat(Us.listItem))),this._clearBtnItem=e.querySelector(".".concat(Us.listItemClearButton)),this._dropdownListItemEls.push(this._clearBtnItem),this._dismissButtonEl=e.querySelector(".".concat(ks))}_attachEventListeners(){this._clearBtn=this.el.querySelector(".".concat(Us.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(Us.listItemLink));n?this._redirect(n):t.classList.contains(Us.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(Us.showList),document.body.removeEventListener("click",this._boundClickOutsideToCloseHandler),this._setExpandedState(!1),this._setHighlightedEl(null))}_getLiveTextOptions(){this._liveTextOneSuggestion=gs(Bs),this._liveTextMultipleSuggestions=gs(Fs),this._liveTextClearedSuggestions=gs(qs)}_getLiveText(){let e;switch(this._informUserThatSearchesAreCleared?0:this._dropdownListItemEls.length){case 0:e=this._liveTextClearedSuggestions,this._informUserThatSearchesAreCleared=!1;break;case 2:e=this._liveTextOneSuggestion;break;default:e=this._liveTextMultipleSuggestions}return e}_clearRecentSearches(){oe(this._clearRecentSearchApiBaseUrl,{method:"DELETE"}).then(()=>{this._removeEventListeners(),this._informUserThatSearchesAreCleared=!0,super._hideList(),super._setLiveText()}).catch(e=>{throw e})}}class Hs{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 ie(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=O(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")),n=O(t,".".concat("switcher-tabs__tab"));n&&(n.setAttribute("aria-selected","false"),t.classList.remove("tab-selected")),e.classList.contains("switcher-tabs__tab")&&(e.querySelector(".".concat("switcher-tabs__button")).classList.add("tab-selected"),e.setAttribute("aria-selected","true"))}_updatePlaceholderText(){let e=this.el.querySelector(".".concat("tab-selected"));e&&(this.dropdownPlaceholderText.textContent=e.textContent)}}class zs{constructor(e){let{typeaheadApiBaseUrl:t,clearRecentSearchApiBaseUrl:n,shouldSearchOnSelect:r=!0,onCloseExpandedSearch:i,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=r,this.placeholderEl=this.el.querySelector(".".concat("search-bar__placeholder"));const a=!!this.el.querySelector(".".concat("search-bar__mobile-wrapper"));if(this.baseSearchBarsMap=D(this.el.querySelectorAll(".".concat("base-search-bar"))).reduce((e,t)=>{const n=new Ms(t,this.el,this.placeholderEl,{onCloseExpandedSearch:i,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 Ds(e,{generateApiUrl:this._generateKeywordsTypeaheadApiUrl.bind(this),liveTextEl:s,onSelect:this._onKeywordsTypeaheadSelect.bind(this)});e.querySelector(".".concat(Us.dropdown))&&new js(e,{clearRecentSearchApiBaseUrl:n,liveTextEl:s}),new Ds(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(Ts,".search-input"))).forEach(e=>{new As(e);e.querySelector(".".concat(Us.dropdown))&&new js(e,{clearRecentSearchApiBaseUrl:n,liveTextEl:s})}),this._addCustomErrorStateHandler()}else Array.from(this.el.querySelectorAll(".".concat(Ts))).forEach(e=>new As(e));o&&(this.switcher=new Hs(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(_(document),"-").concat(t)})})})}}class Gs extends $i{constructor(e){let{enablePageViewTracking:t=!1,shouldHideModal:n=(()=>!1),triggerByOutletEl:r=!0,pushState:i=!0,shouldMoveToTopContainer:o=!0}=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:r,shouldMoveToTopContainer:o}),this.pushState=i,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(){super.open(),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);_(document);String.fromCharCode(32);function Ws(){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 Ks(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 Vs(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}Ws(),Ks(3),Vs(128),Ws(),Ks(6),Vs(400);var Qs=window||t.g;const Xs=/^((?!\.(stg|corp)).)*\.linkedin\.(com|cn)$/;function Js(){const e=Qs.location?Qs.location.hostname:"";return Xs.test(e)}function Ys(){return Js()?Zs()?"platform.linkedin.cn":"platform.linkedin.com":Zs()?"platform.linkedin-ei.cn":"platform.linkedin-ei.com"}function Zs(){const e=Qs.location?Qs.location.hostname:"";return/\.cn$/.test(e)}function $s(e,t,n){let r=!(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 i=new Qs.XMLHttpRequest;i.withCredentials=r,i.open("GET",e,!0),i.onreadystatechange=function(){this.readyState===this.DONE&&(200===this.status&&"function"==typeof t?t(this.responseText):n(this))},i.send()}function ea(e){return function(){let e=w();return!e||e.consent.optedInConsentMap.ADVERTISING}()&&function(e){return e["compliance.isGDPROptIn"]}(e)}function ta(e){return function(){let e=w();return!e||e.consent.optedInConsentMap.ANALYTICS_AND_RESEARCH}()}function na(e){return function(){let e=w();return!e||e.consent.optedInConsentMap.FUNCTIONAL}()}function ra(e){for(let t=1;t<arguments.length;t++){const n=arguments[t];if(n){const t=Object.keys(n);for(let r=0;r<t.length;r++){const i=t[r];e[i]=n[i]}}}return e}function ia(e){const t=new Qs.Date;t.setSeconds(0),t.setMilliseconds(0);const n=Math.floor(t.getMinutes()/e)*e;return t.setMinutes(n),t.getTime()}function oa(){return/utagdb=[^;]+/.test(Qs.document.cookie)}let sa;const aa={},ca={};function la(){return"https://".concat(Js()?Zs()?"www.linkedin.cn":"www.linkedin.com":Zs()?"www.linkedin-ei.cn":"www.linkedin-ei.com").concat("/litms/api/metadata/user")}function ua(){return function(e){let t=ra({},e);return t["compliance.isAdvertisingOptIn"]=ea(t),t["compliance.isAnalyticsAndResearchOptIn"]=ta(),t["compliance.isFunctionalOptIn"]=na(),t}(aa)}function da(e){if(!ca[e]){const t=function(e){return"https://".concat(Ys(),"/litms/allowlist/").concat(encodeURIComponent(e))}(e),n=new Promise((e,n)=>{$s(t,t=>{e(JSON.parse(t))},e=>{n(e)},!1)});ca[e]=n}return ca[e]}Qs.utag_data||(Qs.utag_data={});const ha="undefined"!=typeof window&&window&&"node"!==window.appEnvironment;let pa;function fa(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:5,n=null;return"string"==typeof e&&(n="https://".concat(Ys(),"/litms/utag/").concat(e,"/utag.js?cb=").concat(ia(t))),n}function ma(){return function(){if(void 0===pa&&ha){const e=Qs.document.cookie.match(/litms_utag_override=([^;]+)/);pa=e?e[1]:""}return pa}().length>0}function va(e,t,n,r){e.onLoadRulesRunOnce(n);let i=ra({},t,ua());e.view(i),oa()&&Qs.trackingEventDebugData.push({profileName:r,eventType:"PV",trackingData:i})}function ga(e,t,n,r){e.onLoadRulesRunOnce(n);let i=ra({},t,ua());e.link(i),oa()&&Qs.trackingEventDebugData.push({profileName:r,eventType:"CI",trackingData:i})}function ya(e,t,n){if(function(e){Qs.utag=e}(e),t instanceof Array&&t.length>0){const r=t.length;for(let i=0;i<r;i++){const r=t.shift();r.isControlInteraction?ga(e,r.data,r.callback,n):va(e,r.data,r.callback,n)}}}function ba(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 Ea(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 wa(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:Ea(e,t)}}(e,t));if(0!==t.length)return{info:{name:"ExternalMarketingTagFireEvent"},body:{header:{},requestHeader:{},tags:t}}}Qs.utag_cfg_ovrd=Qs.utag_cfg_ovrd||{},Qs.trackingEventDebugData=Qs.trackingEventDebugData||[],Qs.utag_cfg_ovrd.noview=!0,Qs.utag_cfg_ovrd.nocookie=!0;const _a=ha&&new RegExp("bot|google|aolbuild|baidu|bing|msn|duckduckgo|teoma|slurp|yandex|sogou|facebook|alexa","i").test(Qs.navigator.userAgent),Ta={};let Sa,ka,Ia,Ca={};class Aa{constructor(){let{profileName:e,tracking2Instance:t,enableAllowlisting:n=!1,cacheBusterInterval:r}=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=r}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=da(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&&(Ta[this.profileName]=this),this.initializePromise):Promise.resolve()}_processAllowlistResult(e){Object.keys(e).forEach(t=>this.addValuesToAllowlist(t,e[t]))}_loadContainerTag(e,t){void 0!==Qs.utag&&(Qs.utag=void 0),void 0!==Qs.utag_data&&(Qs.utag_data=void 0);const n=function(){if(!sa){const e=la();sa=new Promise((t,n)=>{$s(e,e=>{try{t(JSON.parse(e))}catch(e){console.error("Invalid JSON format of userSettings"),n(e)}},e=>{n(e)})})}return sa}().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=>{aa[n+t]=e[t]})}(e[t],t)})}).catch(e=>{console.error("Unable to get user settings while calling loading container tag",e)}),r=(i=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"main",t=arguments.length>1?arguments[1]:void 0;return ma()?pa:fa(e,t)}(this.profileName,this.cacheBusterInterval),new Promise(e=>{const t=Qs.document.createElement("script");t.type="text/javascript",t.src=i,t.async=!0,t.onload=e,Qs.document.getElementsByTagName("head")[0].appendChild(t)}));var i;Promise.all([n,r]).then(()=>{this.isContainerTagLoaded=!0,this._uTag=Qs.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&&ba(this.tracking2Instance,t),e(t)}).catch(e=>{console.error("Unable to complete loading container tag",e),t()})}_shouldInitialize(){return!_a}_shouldProcessEvent(e){return _a?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?ya(this._uTag,this._queue,this.profileName):this.isInitialized&&this.isAllowlistingEnabled&&this._loadContainerTag(this._onInitializeSuccessCallback,this._onInitializeFailureCallback)}_fireAuditEvent(){const e=wa(this._uTag);return void 0!==this.tracking2Instance&&void 0!==e&&ba(this.tracking2Instance,e),e}_createCallbackForAuditEvent(e){const t=this;return function(){const n=t._fireAuditEvent();"function"==typeof e&&e(n)}}_checkForCookieConsent(){w().consent.consentAvailable&&!ka?this._refireTracking():Sa=setTimeout(()=>{this._checkForCookieConsent()},2e3)}_refireTracking(){Ca.payloads&&Ca.payloads.forEach(e=>{const{data:t,callback:n}=e;t.cookieConsentGiven=!0,this.trackPageView(t,n)})}_savePayloadForRefire(e,t){if(ha){ka=!1;const{payloads:n=[],url:r}=Ca,i=location.href,o={data:e,callback:t},s=i!==r?[]:n;s.push(o),Ca={url:i,payloads:s},Sa||(Sa=setTimeout(()=>{this._checkForCookieConsent()},2e3))}}trackPageView(e,t){return w().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 Ra(e){let{event:t,litmsInstance:n,pageKey:r}=e;const i=t.target.getAttribute("data-tracking-control-name"),o=t.target.hasAttribute("data-tracking-litms");i&&o&&n.trackControlInteraction({controlUrn:"urn:li:control:".concat(r,"-").concat(i)})}class Oa{constructor(e){if(this.trackingInstance=e,this.pageKey=_(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 Aa({tracking2Instance:this.trackingInstance,profileName:this.litmsProfileName}),this.litmsInstance.initialize(),this.clickEventListener=e=>Ra({event:e,litmsInstance:this.litmsInstance,pageKey:this.pageKey}),this.keydownEventListener=e=>{"Enter"!==e.key&&" "!==e.key&&"Spacebar"!==e.key||Ra({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(pe({pageKey:n},t))}}function Na(e){if(!Ia){if(!e)throw new Error("No trackingInstance passed in!");Ia=new Oa(e)}return Ia}!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],r=0,i=n.length;r<i;r++)if(n[r]===t)return void n.splice(r,1)},e.prototype.dispatchEvent=function(e){if(!(e.type in this.listeners))return!0;for(var t=this.listeners[e.type].slice(),n=0,r=t.length;n<r;n++)t[n].call(this,e);return!e.defaultPrevented},window.EventTarget=e}();const La={GOOGLE_ERROR:"googleError",GOOGLE_USER_FETCHED:"googleUserFetched",INITIALIZED:"initialized",PROMPT_MOMENT:"promptMomentNotification",TOKEN_FETCHED:"tokenFetched"},xa={INITIALIZATION:"initialization",AUTHENTICATION:"authentication"},{GOOGLE_ERROR:Pa,GOOGLE_USER_FETCHED:Ma,INITIALIZED:Da}=La,{INITIALIZATION:Ua,AUTHENTICATION:Ba}=xa;EventTarget;var Fa={exports:{}};function qa(e){this.message=e}qa.prototype=new Error,qa.prototype.name="InvalidCharacterError";var ja="undefined"!=typeof window&&window.atob&&window.atob.bind(window)||function(e){var t=String(e).replace(/=+$/,"");if(t.length%4==1)throw new qa("'atob' failed: The string to be decoded is not correctly encoded.");for(var n,r,i=0,o=0,s="";r=t.charAt(o++);~r&&(n=i%4?64*n+r:r,i++%4)?s+=String.fromCharCode(255&n>>(-2*i&6)):0)r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(r);return s};var Ha=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(ja(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 ja(t)}};function za(e){this.message=e}za.prototype=new Error,za.prototype.name="InvalidTokenError",Fa.exports=function(e,t){if("string"!=typeof e)throw new za("Invalid token specified");var n=!0===(t=t||{}).header?0:1;try{return JSON.parse(Ha(e.split(".")[n]))}catch(e){throw new za("Invalid token specified: "+e.message)}},Fa.exports.InvalidTokenError=za;const Ga=La,Wa=xa,{GOOGLE_USER_FETCHED:Ka,GOOGLE_ERROR:Va,INITIALIZED:Qa}=Ga,{INITIALIZATION:Xa}=Wa;function Ja(e){var t=e.intersectionRect;return t.width>=0&&t.height>=0}function Ya(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 Za(e,t){return Math.round(e-t)}var $a,ec=($a=function(e,t){return($a=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}$a(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),tc=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}(),nc=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return ec(t,e),t.prototype.removePredicate=function(e,t){return"string"==typeof e?t.id===e:t.callback===e},t}(tc),rc=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return ec(t,e),t.prototype.removePredicate=function(e,t){return t===e},t}(tc),ic=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return ec(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}(tc),oc=function(){return 0},sc=!("undefined"==typeof window||!window||"undefined"==typeof document||!document),ac=sc&&!!window.requestAnimationFrame,cc={hasDOM:sc,hasRAF:ac,getScrollTop:oc,getScrollLeft:oc,getHeight:oc,getWidth:oc,rAF:ac?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:oc,get isDirty(){return cc.version!==cc.lastVersion},document:window.document,IntersectionObserver:sc&&window.IntersectionObserver,performance:sc&&window.performance};function lc(){++cc.version}function uc(){var e=null!=document.scrollingElement;cc.getScrollTop=e?function(){return document.scrollingElement.scrollTop}:function(){return window.scrollY},cc.getScrollLeft=e?function(){return document.scrollingElement.scrollLeft}:function(){return window.scrollX}}sc&&(cc.getHeight=function(){return window.innerHeight},cc.getWidth=function(){return window.innerWidth},cc.updateMeta=function(){cc.meta.height=cc.getHeight(),cc.meta.width=cc.getWidth(),cc.meta.scrollLeft=cc.getScrollLeft(),cc.meta.scrollTop=cc.getScrollTop(),cc.lastVersion=cc.version},cc.updateMeta(),"loading"!==document.readyState?uc():document.addEventListener("DOMContentLoaded",uc),window.addEventListener("resize",lc,!1),window.addEventListener("scroll",lc,!1));var dc=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,cc.rAF((function(){e.running=!1;for(var t=0,n=e.reads.length;t<n;t++)e.reads.pop()();t=0;for(var r=e.work.length;t<r;t++)e.work.pop()();(e.work.length>0||e.reads.length>0)&&e.run()})))},e}(),hc=null;var pc=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 r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),fc="xxxx".replace(/[xy]/g,(function(e){var t=16*Math.random()|0;return("x"===e?t:3&t|8).toString(16)})),mc=0,vc=function(){function e(e,t,n,r,i,o,s,a,c,l){this.dateNow=e,this.highResTime=t,this.scrollTop=n,this.scrollLeft=r,this.width=i,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 cc.isDirty&&cc.updateMeta(),e===window||e===document?(n.height=cc.meta.height,n.width=cc.meta.width,n.scrollLeft=cc.meta.scrollLeft,n.scrollTop=cc.meta.scrollTop,n):(t=Ya(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 gc(){return mc+++fc}var yc=function(){function e(e,t){this.isTicking=!1,this.toRemove=[],this.engine=e||(hc||(hc=new dc)),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(vc.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,r,i=this;this.engine.scheduleRead((function(){n=Ya(e),r=vc.generate(i.root)})),this.engine.scheduleWork((function(){t(n,r)}))},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}(),bc=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.queue=new nc,t}return pc(t,e),t.prototype.applyQueue=function(e){for(var t=0;t<this.queue.items.length;t++){var n=this.queue.items[t],r=n.id;(0,n.callback)(e,r)}},t.prototype.watch=function(e){this.startTicking();var t=gc();return this.queue.push({callback:e,id:t}),t},t}(yc),Ec=function(e){function t(t){var n=e.call(this,void 0,window)||this;return n.predicate=t,n}return pc(t,e),t.prototype.applyQueue=function(t){this.predicate(t)&&e.prototype.applyQueue.call(this,t)},t}(bc),wc=function(e){function t(t,n,r){void 0===r&&(r=!1);var i=e.call(this,t,n)||this;return i.lastVersion=cc.version,i.queue=new ic,i.ALLOW_CACHED_SCHEDULER=r,i}return pc(t,e),Object.defineProperty(t.prototype,"isDirty",{get:function(){return cc.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],r=n.callback,i=n.el,o=n.id,s=n.clientRect;!this.isDirty&&s&&this.ALLOW_CACHED_SCHEDULER||(s=this.queue.items[t].clientRect=Ya(i)),r(e,o,s)}this.lastVersion=cc.version},t.prototype.watch=function(e,t,n){this.startTicking(),n=n||gc();return this.queue.push({el:e,callback:t,id:n,clientRect:null}),n},t}(yc),_c=null;var Tc=function(){function e(){this.queue=new rc}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}(),Sc=function(){function e(e){this.scheduler=new Ec(e.bind(this))}return e.prototype.trigger=function(){},e.prototype.listen=function(e){this.state=vc.generate(),this.scheduler.watch(e)},e.prototype.unlisten=function(e){this.scheduler.unwatch(e)},e}(),kc=null;function Ic(e,t){var n=(kc||(kc={scroll:new Sc((function(e){var t=this.state,n=t.scrollTop,r=t.scrollLeft;return this.state=e,n!==e.scrollTop||r!==e.scrollLeft})),resize:new Sc((function(e){var t=this.state,n=t.width,r=t.height;return this.state=e,r!==e.height||n!==e.width})),destroy:new Tc,beforeunload:new Tc,hide:new Tc,show:new Tc}))[e];n&&n.listen(t)}function Cc(e,t){if(kc){var n=kc[e];n&&n.unlisten(t)}}function Ac(e,t){if(kc){var n=kc[e];n&&n.trigger(t)}}function Rc(e){(_c||(_c=new bc)).scheduleWork(e)}function Oc(e){var t=e.left,n=e.right,r=e.top,i=e.bottom;return{left:t,x:t,top:r,y:r,bottom:i,right:n,width:n-t,height:i-r}}cc.hasDOM&&(window.addEventListener("beforeunload",(function(){Ac("beforeunload"),Ac("destroy")})),document.addEventListener("visibilitychange",(function(){"visible"===document.visibilityState?Ac("show"):Ac("hide")})));var Nc=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 wc(void 0,this.root,t.ALLOW_CACHED_SCHEDULER)}return e.prototype.observe=function(e){var t=this,n=e,r=n.__spanielId=n.__spanielId||gc();return this.scheduler.watch(e,(function(e,r,i){t.onTick(e,r,i,n)}),n.__spanielId),r},e.prototype.onTick=function(e,t,n,r){var i=this,o=this.generateEntryEvent(e,n,r),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(){i.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 r=0,i=function(e,t,n,r){if("none"===n.style.display)return{time:e.dateNow,highResTime:e.highResTime,boundingClientRect:Lc(),intersectionRatio:0,intersectionRect:Lc(),isIntersecting:!1,rootBounds:Lc(),target:n};var i=t.bottom,o=t.right,s=e.left+r.left,a=e.top+r.top,c={left:s,top:a,bottom:r.bottom,right:r.right,width:e.width-(r.right+r.left),height:e.height-(r.bottom+r.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:i};return function(e){var t=e.unixTime,n=e.highResTime,r=e.rootBounds,i=e.boundingClientRect,o=e.intersectionRect,s=e.target,a=i.height*i.width,c=a>0?o.width*o.height/a:0;return{time:t,highResTime:n,rootBounds:r,boundingClientRect:i,intersectionRect:o,target:s,intersectionRatio:c,isIntersecting:Ja({intersectionRect:o})}}({unixTime:e.dateNow,highResTime:e.highResTime,rootBounds:c,target:n,boundingClientRect:Oc(t),intersectionRect:m})}(e,t,n,this.rootMarginObj),o=0;o<this.thresholds.length;o++){var s=this.thresholds[o];i.intersectionRatio>=s&&r++}return{numSatisfiedThresholds:r,entry:i}},e}();function Lc(){return{bottom:0,height:0,left:0,right:0,top:0,width:0,x:0,y:0}}var xc={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 r=t||{threshold:[]},i=r.root,o=r.rootMargin,s=r.threshold,a=r.ALLOW_CACHED_SCHEDULER,c=r.BACKGROUND_TAB_FIX,l=r.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:i,rootMargin:u,threshold:this.thresholds.map((function(e){return e.ratio})),ALLOW_CACHED_SCHEDULER:a};this.usingNativeIo=!!l&&!!cc.IntersectionObserver;var h=this.usingNativeIo?cc.IntersectionObserver:Nc;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),cc.hasDOM&&(Ic("beforeunload",this.onWindowClosed),Ic("hide",this.onTabHidden),Ic("show",this.onTabShown),c&&(this.paused="visible"!==cc.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(),r=0;r<e.length;r++){var i=this.recordStore[e[r]].lastSeenEntry;if(i){var o=i.intersectionRatio,s=i.boundingClientRect,a=i.rootBounds,c=i.intersectionRect,l=i.isIntersecting,u=i.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,r=e.rootBounds,i=e.boundingClientRect,o=e.intersectionRect,s=e.isIntersecting,a=e.time,c=e.target,l=this.recordStore[c.__spanielId],u=this.usingNativeIo?Math.floor((cc.performance.timeOrigin||cc.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:r,boundingClientRect:i,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(),r=performance.now();e.thresholdStates.forEach((function(i){var o=e.lastSeenEntry&&e.lastSeenEntry.boundingClientRect;t.handleThresholdExiting({intersectionRatio:-1,isIntersecting:!1,unixTime:n,time:n,highResTime:r,payload:e.payload,label:i.threshold.label,threshold:i.threshold,entering:!1,rootBounds:xc,boundingClientRect:o||xc,intersectionRect:xc,visibleTime:i.lastVisible.unixTime,duration:Za(r,i.lastVisible.highResTime),target:e.target},i),i.lastSatisfied=!1,i.visible=!1,i.lastEntry=null}))},e.prototype.handleThresholdExiting=function(e,t){var n=e.highResTime,r=!!t.threshold.time;t.lastSatisfied&&(!r||r&&t.visible)&&(e.duration=Za(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,r=this.recordStore[n.__spanielId];r&&(r.lastSeenEntry=e,this.paused||(r.thresholdStates.forEach((function(n){var r=!!n.threshold.time,i=t.generateSpanielEntry(e,n),o=e.intersectionRatio>=n.threshold.ratio,s="boolean"==typeof i.isIntersecting?i.isIntersecting:Ja(e),a=o&&s;if(a!=n.lastSatisfied){if(a)if(i.entering=!0,n.lastVisible={highResTime:i.highResTime,unixTime:i.unixTime},r){var c=Number(setTimeout((function(){n.visible=!0,i.duration=Za(performance.now(),n.lastVisible.highResTime),i.visibleTime=n.lastVisible.unixTime,t.callback([i])}),n.threshold.time));n.timeoutId=c}else n.visible=!0,i.duration=Date.now()-n.lastVisible.unixTime,t.queuedEntries.push(i);else t.handleThresholdExiting(i,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(),cc.hasDOM&&(Cc("beforeunload",this.onWindowClosed),Cc("hide",this.onTabHidden),Cc("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),Rc((function(){t.handleRecordExiting(n),t.flushQueuedEntries()})))},e.prototype.observe=function(e,t){var n=e,r=n.__spanielId=n.__spanielId||gc();return this.recordStore[r]={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),r}}();cc.IntersectionObserver&&cc.IntersectionObserver;const Pc=".".concat("show-more-less","__list"),Mc=".".concat("show-more-less","__more-button"),Dc=".".concat("show-more-less","__less-button"),Uc="".concat("show-more-less","__list--hide-after"),Bc="".concat("show-more-less","__button--hide");class Fc{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e=>e.querySelector(Y);if(!e)throw Error("An element must be provided to ShowMoreLess");this.el=e,this.listEl=this.el.querySelector(Pc),this._getFocusItemFromListItem=t,this.maxNumToShow=parseInt(this.listEl.getAttribute("data-max-num-to-show")),this.hideClass="".concat(Uc,"-").concat(this.maxNumToShow),this.showMoreButton=this.el.querySelector(Mc),this.showLessButton=this.el.querySelector(Dc),this._attachEventListeners(),this.firstHiddenListItem=this.listEl.children[this.maxNumToShow],this.isExpanded=!this.listEl.classList.contains(this.hideClass),new Q(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(Bc),this.showMoreButton.classList.remove(Bc)):(this.showLessButton.classList.remove(Bc),this.showMoreButton.classList.add(Bc))}}const qc="roo:event:close",jc="roo:event:ready",Hc="roo:event:nodeRendered",zc="roo:event:noTargetMatch",Gc="roo:showSurvey";class Wc{constructor(e){let{isDev:t=!1,customTriggerFn:n,triggerTime:r=7e3}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!e)throw new Error("You must pass an element to initialize qualaroo");if(this.el=e,this.isDev=t,this.qualarooIframe=this.el.querySelector(".qualaroo__iframe"),this.surveyId=this.qualarooIframe.getAttribute("data-survey-id"),this.channelId=this.qualarooIframe.getAttribute("data-channel-id"),!this.surveyId||!this.channelId)throw new Error("Channel Id and Survery Id must be present on iframe element");n?n.call(this):this._setupTrigger(r),window.addEventListener("message",e=>{this._handleQualarooMessage(e)})}_setupTrigger(e){let t,n=!1;const r=()=>{clearTimeout(t),t=setTimeout(()=>{this.showSurvey(),n=!0},e)},i=H(function(){n?window.removeEventListener("scroll",i):r()}.bind(this),250);window.addEventListener("scroll",i),r()}_handleQualarooMessage(e){let{origin:t,data:n}=e;const[r,i,,,o,s]=n;if("https://linkedin.cdn.qualaroo.com"===t&&(r||i)){if(r!==this.channelId)throw new Error("Qualaroo channelId does not match");switch(i){case qc:this.isRendered=!1;break;case Hc:s&&o&&(this.isRendered=!0,this.height=s,this.width=o);break;case zc:console.log("No Target Match");break;case jc:this.isDev?this.qualarooIframe.contentWindow.postMessage([Gc,this.surveyId,!0],"https://linkedin.cdn.qualaroo.com"):this.qualarooIframe.contentWindow.postMessage([Gc,this.surveyId,!1],"https://linkedin.cdn.qualaroo.com")}}}set height(e){this.qualarooIframe.height=e}set width(e){this.qualarooIframe.width=e}showSurvey(){this.el.classList.add("show")}}".".concat("accordion-item__trigger");const Kc=350;class Vc{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:document.querySelector(".sticky-header"),{marginApplied:t=!0,disableUnderMinimumViewportHeight:n=!1,minimumViewportHeight:r=Kc}=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 i=8;if(Ci()){const t=e.querySelector(".search-bar");t&&(i=t.getBoundingClientRect().height)}return this.stickyHeader=e,this.stickyElementOptions={exposeStickyState:!0,isBottom:!1,marginApplied:t,scrollThreshold:i},n&&r>0?this.setupDisableUnderMinimumViewportHeight(r):this.instantiateStickyElement(),this.stickyElement}instantiateStickyElement(){this.stickyElement=new _s(this.stickyHeader,this.stickyElementOptions)}setupDisableUnderMinimumViewportHeight(e){const t="(min-height: ".concat(e,"px)"),n=window.matchMedia(t);n.addEventListener("change",this.handleMediaQueryChange.bind(this)),this.handleMediaQueryChange(n)}handleMediaQueryChange(e){var t;e.matches?(this.stickyHeader.classList.remove("sticky-header--disabled"),document.body.classList.remove("body--sticky-header-disabled"),this.stickyElement?this.stickyElement.reactivate():this.instantiateStickyElement()):(this.stickyHeader.classList.add("sticky-header--disabled"),document.body.classList.add("body--sticky-header-disabled"),null===(t=this.stickyElement)||void 0===t||t.deactivate())}}function Qc(e){return t=>t.type&&t.type.toLowerCase()===e.toLowerCase()}Qc("action"),Qc("openpage"),Qc("openlink");var Xc;!function(e){e.ProductName="productName",e.UntrackedResponseCodes="untrackedResponseCodes",e.TrackedResponseCodes="trackedResponseCodes",e.ClientSensorGroupName="clientSensorGroupName"}(Xc||(Xc={}));new Set(Object.values(Xc));Error;var Jc;!function(e){e.ProductName="productName",e.CustomTrackingId="customTrackingId",e.ClientSensorGroupName="clientSensorGroupName",e.AdditionalDegradedResponseCodes="additionalDegradedResponseCodes",e.NonDegradedResponseCodes="nonDegradedResponseCodes",e.DegradationKeyOverrides="degradationKeyOverrides"}(Jc||(Jc={})),new Set(Object.values(Jc));var Yc={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 r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function r(e,t,r){return t&&n(e.prototype,t),r&&n(e,r),e}function i(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 r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}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 r=[null];r.push.apply(r,t);var i=new(Function.bind.apply(e,r));return n&&c(i,n.prototype),i}).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 r=a(this).constructor;t=Reflect.construct(n,arguments,r)}else t=n.apply(this,arguments);return p(this,t)}}function m(e){"complete"===document.readyState?e():window.addEventListener("load",(function(){e()}))}function v(e,t){var n=document.createElement("script");n.src=e,t&&(n.onload=t),document.head.appendChild(n)}(function(){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],r=0,i=n.length;r<i;r++)if(n[r]===t)return void n.splice(r,1)},e.prototype.dispatchEvent=function(e){if(!(e.type in this.listeners))return!0;for(var t=this.listeners[e.type].slice(),n=0,r=t.length;n<r;n++)t[n].call(this,e);return!e.defaultPrevented},window.EventTarget=e}();var g="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"},w={DISPLAY:"display",SKIPPED:"skipped",DISMISSED:"dismissed"},_={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,I=y.GOOGLE_USER_FETCHED,C=y.INITIALIZED,A=b.INITIALIZATION,R=b.AUTHENTICATION,O=function(e){s(i,e);var n=f(i);function i(e){var r,o=e.libSrcPath,s=e.el,a=e.clientId,c=void 0===a?g:a;if(t(this,i),r=n.call(this),!s)throw TypeError("DOM element for Sign In button is required");if(r.libSrcPath=o,r.el=s,r.clientId=c,window.gapi)r._initializeGoogleAuth();else{if(!o)throw TypeError("Google Sign In lib not already loaded on the page. libSrcPath is required to load the lib.");m((function(){v(o,r._initializeGoogleAuth.bind(h(r)))}))}return r}return r(i,[{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(C);e.dispatchEvent(n)})).catch((function(t){var n={type:A,message:t.error},r=new CustomEvent(k,{detail:n});e.dispatchEvent(r)}))}},{key:"_attachSignIn",value:function(){var e=this;this.auth2.attachClickHandler(this.el,{},(function(t){var n=new CustomEvent(I,{detail:e._getGoogleUserInformation(t)});e.dispatchEvent(n)}),(function(t){var n={type:R,message:t.error},r=new CustomEvent(k,{detail:n});e.dispatchEvent(r)}))}},{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()}}}]),i}(d(EventTarget)),N=y.GOOGLE_USER_FETCHED,L=y.PROMPT_MOMENT,x=function(e){s(i,e);var n=f(i);function i(e){var r,o=e.autoSelect,s=void 0!==o&&o,a=e.libSrcPath,c=e.containerId,l=e.context,u=e.clientId,d=void 0===u?g:u,p=e.cancelOnTapOutside,f=void 0===p||p;if(t(this,i),r=n.call(this),!l)throw TypeError("context param is required to determine the message to show in Google One Tap");if(r.autoSelect=s,r.libSrcPath=a,r.containerId=c,r.cancelOnTapOutside=f,r.clientId=d,r.context=l,window.google&&window.google.accounts&&window.google.accounts.id)r._onGoogleApiLoad();else{if(!a)throw TypeError("Google One Tap lib is not already loaded on the page. libSrcPath is required to load the library");m((function(){v(a,r._onGoogleApiLoad.bind(h(r)))}))}return r}return r(i,[{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 r=new CustomEvent(N,{detail:n});this.dispatchEvent(r)}}},{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:_.SKIPPED.ISSUING_FAILED,type:w.SKIPPED},n=new CustomEvent(L,{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()},r=new CustomEvent(L,{detail:n});e.dispatchEvent(r),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")}}}]),i}(d(EventTarget)),P={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,r,i=0,o=0,s="";r=t.charAt(o++);~r&&(n=i%4?64*n+r:r,i++%4)?s+=String.fromCharCode(255&n>>(-2*i&6)):0)r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(r);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",P.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)}},P.exports.InvalidTokenError=B;var F=P.exports,q=y.GOOGLE_USER_FETCHED,j=y.PROMPT_MOMENT,H=function(e){s(a,e);var n=f(a);function a(e){var r,i,o,s,c=e.autoSelect,l=void 0!==c&&c,u=e.libSrcPath,d=e.clientId,p=void 0===d?g:d,f=e.showOneTap,y=void 0===f||f,b=e.promptParentId,E=e.buttonParentEl,w=e.gsiButtonConfig,_=void 0===w?{}:w,T=e.context,S=void 0===T?"signin":T,k=e.cancelOnTapOutside,I=void 0===k||k;if(t(this,a),(r=n.call(this)).autoSelect=l,r.libSrcPath=u,r.clientId=p,r.showOneTap=y,r.promptParentId=b,r.buttonParentEl=E,r.gsiButtonConfig=_,r.cancelOnTapOutside=I,r.context=S,r.isLibraryLoaded=((s=new Promise((function(e,t){i=e,o=t}))).resolve=i,s.reject=o,s),window.google&&window.google.accounts&&window.google.accounts.id)r._onGoogleApiLoad();else{if(!u)throw TypeError("GSI lib is not already loaded on the page. libSrcPath is required to load the library");m((function(){v(u,r._onGoogleApiLoad.bind(h(r)))}))}return r}return r(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,r=t.logo_alignment,i=void 0===r?"center":r,o=t.shape,s=void 0===o?"pill":o,a=t.size,c=void 0===a?"large":a,l=t.text,u=t.theme,d=t.type,h=t.width,p=void 0===h?"400px":h;return this.isLibraryLoaded.then((function(){var t=l||S[n.context].GSI_BUTTON;window.google.accounts.id.renderButton(e,{logo_alignment:i,shape:s,size:c,text:t,theme:u,type:d,width:p})}))}},{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()},r=new CustomEvent(j,{detail:n});e.dispatchEvent(r),e.checkIfDesktopAndApplyClass()}))}))}},{key:"_handleCredentialResponse",value:function(e){var t=e.credential,n=e.select_by,r=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){i(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(r),{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(i,e);var n=f(i);function i(e){var r,o=e.libSrcPath,s=e.snappleCTA,a=e.clientId,c=void 0===a?"com.linkedin.LinkedIn.service":a,l=e.redirectURI;if(t(this,i),r=n.call(this),!s)throw TypeError("snappleCTA is required. Please pass the correct CTA element to this Snapple Constructor");if(r.libSrcPath=o,r.clientId=c,r.redirectURI=r._getRedirectURL(l),r.snappleCTA=s,window.AppleID&&window.AppleID.auth&&window.AppleID.auth.init)r._onSnappleLibLoad();else{if(!o)throw TypeError("Snapple lib is not already loaded on the page. libSrcPath is required to load the library");m((function(){v(o,r._onSnappleLibLoad.bind(h(r)))}))}return r}return r(i,[{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"}}]),i}(d(EventTarget)),V={CLIENT_ID:g,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:_,GOT_PROMPT_MOMENT_TYPES:w};e.GoogleGsi=H,e.GoogleOneTap=x,e.GoogleSignIn=O,e.GoogleSignInConstants=V,e.SnappleAuth=K,e.SnappleEvents=T,Object.defineProperty(e,"__esModule",{value:!0})})(Yc.exports);const{EVENTS:Zc,GOT_CONTEXTS:$c,GOT_PROMPT_MOMENT_REASONS:el,GOT_PROMPT_MOMENT_TYPES:tl}=Yc.exports.GoogleSignInConstants,{GOOGLE_USER_FETCHED:nl,PROMPT_MOMENT:rl}=Zc,{SIGN_IN:il}=$c;el.NOT_DISPLAYED.BROWSER_NOT_SUPPORTED,el.NOT_DISPLAYED.OPT_OUT_OR_NO_SESSION,el.NOT_DISPLAYED.SUPPRESSED_BY_USER,el.SKIPPED.AUTO_CANCEL,el.SKIPPED.TAP_OUTSIDE,el.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 ol{constructor(){let{badgeSel:e="[data-badge-without-count-source]",badgeCountSel:t="[data-badge-source]",cacheBustHrefSel:n='[data-update-cache-bust-url="true"]'}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this._counts={},this.badgeCountEls=document.querySelectorAll(t),this.badgeWithoutCountEls=document.querySelectorAll(e),this.cacheBustHrefEls=document.querySelectorAll(n),this.feedLastUpdatedTimeInDom=gs("feedLastUpdatedTime")}resetBadges(){Li(this.badgeCountEls),Li(this.badgeWithoutCountEls)}getBadges(){const e=this.feedLastUpdatedTimeInDom||"";return oe(e?j("/mwlite/badge-counts","feedQueryAfterTime",e):"/mwlite/badge-counts").then(t=>{const n=JSON.parse(t.responseText);G(window,"badgesreceived",{feedsCount:n.feedsCount}),this._counts=n;const r=Di();return"messaging"===r&&(this._counts.messagingCount=0),"feed"===r||e||(this._counts.feedsCount=2),this._counts.feedsCount=this._counts.feedsCount>=2?1:0,this._counts.lastUpdatedAt=(new Date).getTime(),this._updateCacheBustUrl(this._counts.feedsCount>0),this._renderBadges(),this}).catch(()=>{G(window,"badgesreceived",{feedsCount:0})})}_renderBadges(){this.badgeCountEls.forEach(e=>{this._setBadgeCount(e,this._counts[e.dataset.badgeSource])}),this.badgeWithoutCountEls.forEach(e=>{this._setBadge(e,this._counts[e.dataset.badgeWithoutCountSource])})}_setBadgeCount(e,t){if(!e)return;const n=e.innerHTML;null==n&&t>0?(e.textContent=t,Ni(e)):t!==n&&(t>0?(e.textContent=t,Ni(e),e.classList.toggle("singular",t<=1)):Oi(e))}_setBadge(e,t){e&&(t>0?(Ni(e),e.classList.add("badge-with-no-count")):Oi(e))}_updateCacheBustUrl(e){gs("isSWCacheEnabled")&&this.cacheBustHrefEls&&this.cacheBustHrefEls.forEach(t=>{t.href=Yo(e?j(t.href,"pwa","noCache"):K(t.href))})}}!function(){let e}();const sl=/\s+/,al=/,$/;function cl(){const e=["^","(?:(?:https?)?:?//)?","(?:","(?!(?:10|127)(?:\\.\\d{1,3}){3})","(?!(?:169\\.254|192\\.168)(?:\\.\\d{1,3}){2})","(?!172\\.(?:1[6-9]|2\\d|3[0-1])(?:\\.\\d{1,3}){2})","(?:[1-9]\\d?|1\\d\\d|2[01]\\d|22[0-3])","(?:\\.(?:1?\\d{1,2}|2[0-4]\\d|25[0-5])){2}","(?:\\.(?:[1-9]\\d?|1\\d\\d|2[0-4]\\d|25[0-4]))","|","(?:(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)","(?:\\.(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)*","(?:\\.(?:[a-z\\u00a1-\\uffff]{2,}))",")","(?::\\d{2,5})?","(?:(?:/|\\?)\\S*)?","$"].join("");return new RegExp(e,"i")}var ll=function(){this.__data__=[],this.size=0};var ul=function(e,t){return e===t||e!=e&&t!=t},dl=ul;var hl=function(e,t){for(var n=e.length;n--;)if(dl(e[n][0],t))return n;return-1},pl=hl,fl=Array.prototype.splice;var ml=hl;var vl=hl;var gl=hl;var yl=ll,bl=function(e){var t=this.__data__,n=pl(t,e);return!(n<0)&&(n==t.length-1?t.pop():fl.call(t,n,1),--this.size,!0)},El=function(e){var t=this.__data__,n=ml(t,e);return n<0?void 0:t[n][1]},wl=function(e){return vl(this.__data__,e)>-1},_l=function(e,t){var n=this.__data__,r=gl(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this};function Tl(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}Tl.prototype.clear=yl,Tl.prototype.delete=bl,Tl.prototype.get=El,Tl.prototype.has=wl,Tl.prototype.set=_l;var Sl=Tl,kl=Sl;var Il=function(){this.__data__=new kl,this.size=0};var Cl=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n};var Al=function(e){return this.__data__.get(e)};var Rl=function(e){return this.__data__.has(e)},Ol="object"==typeof le&&le&&le.Object===Object&&le,Nl=Ol,Ll="object"==typeof self&&self&&self.Object===Object&&self,xl=Nl||Ll||Function("return this")(),Pl=xl.Symbol,Ml=Pl,Dl=Object.prototype,Ul=Dl.hasOwnProperty,Bl=Dl.toString,Fl=Ml?Ml.toStringTag:void 0;var ql=function(e){var t=Ul.call(e,Fl),n=e[Fl];try{e[Fl]=void 0;var r=!0}catch(e){}var i=Bl.call(e);return r&&(t?e[Fl]=n:delete e[Fl]),i},jl=Object.prototype.toString;var Hl=ql,zl=function(e){return jl.call(e)},Gl=Pl?Pl.toStringTag:void 0;var Wl=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":Gl&&Gl in Object(e)?Hl(e):zl(e)};var Kl=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)},Vl=Wl,Ql=Kl;var Xl,Jl=function(e){if(!Ql(e))return!1;var t=Vl(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t},Yl=xl["__core-js_shared__"],Zl=(Xl=/[^.]+$/.exec(Yl&&Yl.keys&&Yl.keys.IE_PROTO||""))?"Symbol(src)_1."+Xl:"";var $l=function(e){return!!Zl&&Zl in e},eu=Function.prototype.toString;var tu=Jl,nu=$l,ru=Kl,iu=function(e){if(null!=e){try{return eu.call(e)}catch(e){}try{return e+""}catch(e){}}return""},ou=/^\[object .+?Constructor\]$/,su=Function.prototype,au=Object.prototype,cu=su.toString,lu=au.hasOwnProperty,uu=RegExp("^"+cu.call(lu).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");var du=function(e){return!(!ru(e)||nu(e))&&(tu(e)?uu:ou).test(iu(e))},hu=function(e,t){return null==e?void 0:e[t]};var pu=function(e,t){var n=hu(e,t);return du(n)?n:void 0},fu=pu(xl,"Map"),mu=pu(Object,"create"),vu=mu;var gu=function(){this.__data__=vu?vu(null):{},this.size=0};var yu=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},bu=mu,Eu=Object.prototype.hasOwnProperty;var wu=function(e){var t=this.__data__;if(bu){var n=t[e];return"__lodash_hash_undefined__"===n?void 0:n}return Eu.call(t,e)?t[e]:void 0},_u=mu,Tu=Object.prototype.hasOwnProperty;var Su=mu;var ku=gu,Iu=yu,Cu=wu,Au=function(e){var t=this.__data__;return _u?void 0!==t[e]:Tu.call(t,e)},Ru=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=Su&&void 0===t?"__lodash_hash_undefined__":t,this};function Ou(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}Ou.prototype.clear=ku,Ou.prototype.delete=Iu,Ou.prototype.get=Cu,Ou.prototype.has=Au,Ou.prototype.set=Ru;var Nu=Ou,Lu=Sl,xu=fu;var Pu=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e};var Mu=function(e,t){var n=e.__data__;return Pu(t)?n["string"==typeof t?"string":"hash"]:n.map},Du=Mu;var Uu=Mu;var Bu=Mu;var Fu=Mu;var qu=function(){this.size=0,this.__data__={hash:new Nu,map:new(xu||Lu),string:new Nu}},ju=function(e){var t=Du(this,e).delete(e);return this.size-=t?1:0,t},Hu=function(e){return Uu(this,e).get(e)},zu=function(e){return Bu(this,e).has(e)},Gu=function(e,t){var n=Fu(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this};function Wu(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}Wu.prototype.clear=qu,Wu.prototype.delete=ju,Wu.prototype.get=Hu,Wu.prototype.has=zu,Wu.prototype.set=Gu;var Ku=Sl,Vu=fu,Qu=Wu;var Xu=Sl,Ju=Il,Yu=Cl,Zu=Al,$u=Rl,ed=function(e,t){var n=this.__data__;if(n instanceof Ku){var r=n.__data__;if(!Vu||r.length<199)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new Qu(r)}return n.set(e,t),this.size=n.size,this};function td(e){var t=this.__data__=new Xu(e);this.size=t.size}td.prototype.clear=Ju,td.prototype.delete=Yu,td.prototype.get=Zu,td.prototype.has=$u,td.prototype.set=ed;var nd=td,rd=pu,id=function(){try{var e=rd(Object,"defineProperty");return e({},"",{}),e}catch(e){}}(),od=id;var sd=function(e,t,n){"__proto__"==t&&od?od(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n},ad=sd,cd=ul;var ld=function(e,t,n){(void 0!==n&&!cd(e[t],n)||void 0===n&&!(t in e))&&ad(e,t,n)};var ud=function(e){return function(t,n,r){for(var i=-1,o=Object(t),s=r(t),a=s.length;a--;){var c=s[e?a:++i];if(!1===n(o[c],c,o))break}return t}}(),dd={exports:{}};!function(e,t){var n=xl,r=t&&!t.nodeType&&t,i=r&&e&&!e.nodeType&&e,o=i&&i.exports===r?n.Buffer:void 0,s=o?o.allocUnsafe:void 0;e.exports=function(e,t){if(t)return e.slice();var n=e.length,r=s?s(n):new e.constructor(n);return e.copy(r),r}}(dd,dd.exports);var hd=xl.Uint8Array;var pd=function(e){var t=new e.constructor(e.byteLength);return new hd(t).set(new hd(e)),t};var fd=function(e,t){var n=t?pd(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)};var md=function(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t},vd=Kl,gd=Object.create,yd=function(){function e(){}return function(t){if(!vd(t))return{};if(gd)return gd(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();var bd=function(e,t){return function(n){return e(t(n))}}(Object.getPrototypeOf,Object),Ed=Object.prototype;var wd=function(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||Ed)},_d=yd,Td=bd,Sd=wd;var kd=function(e){return"function"!=typeof e.constructor||Sd(e)?{}:_d(Td(e))};var Id=function(e){return null!=e&&"object"==typeof e},Cd=Wl,Ad=Id;var Rd=function(e){return Ad(e)&&"[object Arguments]"==Cd(e)},Od=Id,Nd=Object.prototype,Ld=Nd.hasOwnProperty,xd=Nd.propertyIsEnumerable,Pd=Rd(function(){return arguments}())?Rd:function(e){return Od(e)&&Ld.call(e,"callee")&&!xd.call(e,"callee")},Md=Array.isArray;var Dd=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991},Ud=Jl,Bd=Dd;var Fd=function(e){return null!=e&&Bd(e.length)&&!Ud(e)},qd=Fd,jd=Id;var Hd=function(e){return jd(e)&&qd(e)},zd={exports:{}};var Gd=function(){return!1};!function(e,t){var n=xl,r=Gd,i=t&&!t.nodeType&&t,o=i&&e&&!e.nodeType&&e,s=o&&o.exports===i?n.Buffer:void 0,a=(s?s.isBuffer:void 0)||r;e.exports=a}(zd,zd.exports);var Wd=Wl,Kd=bd,Vd=Id,Qd=Function.prototype,Xd=Object.prototype,Jd=Qd.toString,Yd=Xd.hasOwnProperty,Zd=Jd.call(Object);var $d=function(e){if(!Vd(e)||"[object Object]"!=Wd(e))return!1;var t=Kd(e);if(null===t)return!0;var n=Yd.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&Jd.call(n)==Zd},eh=Wl,th=Dd,nh=Id,rh={};rh["[object Float32Array]"]=rh["[object Float64Array]"]=rh["[object Int8Array]"]=rh["[object Int16Array]"]=rh["[object Int32Array]"]=rh["[object Uint8Array]"]=rh["[object Uint8ClampedArray]"]=rh["[object Uint16Array]"]=rh["[object Uint32Array]"]=!0,rh["[object Arguments]"]=rh["[object Array]"]=rh["[object ArrayBuffer]"]=rh["[object Boolean]"]=rh["[object DataView]"]=rh["[object Date]"]=rh["[object Error]"]=rh["[object Function]"]=rh["[object Map]"]=rh["[object Number]"]=rh["[object Object]"]=rh["[object RegExp]"]=rh["[object Set]"]=rh["[object String]"]=rh["[object WeakMap]"]=!1;var ih=function(e){return nh(e)&&th(e.length)&&!!rh[eh(e)]};var oh=function(e){return function(t){return e(t)}},sh={exports:{}};!function(e,t){var n=Ol,r=t&&!t.nodeType&&t,i=r&&e&&!e.nodeType&&e,o=i&&i.exports===r&&n.process,s=function(){try{var e=i&&i.require&&i.require("util").types;return e||o&&o.binding&&o.binding("util")}catch(e){}}();e.exports=s}(sh,sh.exports);var ah=ih,ch=oh,lh=sh.exports,uh=lh&&lh.isTypedArray,dh=uh?ch(uh):ah;var hh=function(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]},ph=sd,fh=ul,mh=Object.prototype.hasOwnProperty;var vh=function(e,t,n){var r=e[t];mh.call(e,t)&&fh(r,n)&&(void 0!==n||t in e)||ph(e,t,n)},gh=sd;var yh=function(e,t,n,r){var i=!n;n||(n={});for(var o=-1,s=t.length;++o<s;){var a=t[o],c=r?r(n[a],e[a],a,n,e):void 0;void 0===c&&(c=e[a]),i?gh(n,a,c):vh(n,a,c)}return n};var bh=/^(?:0|[1-9]\d*)$/;var Eh=function(e,t){var n=typeof e;return!!(t=null==t?9007199254740991:t)&&("number"==n||"symbol"!=n&&bh.test(e))&&e>-1&&e%1==0&&e<t},wh=function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r},_h=Pd,Th=Md,Sh=zd.exports,kh=Eh,Ih=dh,Ch=Object.prototype.hasOwnProperty;var Ah=function(e,t){var n=Th(e),r=!n&&_h(e),i=!n&&!r&&Sh(e),o=!n&&!r&&!i&&Ih(e),s=n||r||i||o,a=s?wh(e.length,String):[],c=a.length;for(var l in e)!t&&!Ch.call(e,l)||s&&("length"==l||i&&("offset"==l||"parent"==l)||o&&("buffer"==l||"byteLength"==l||"byteOffset"==l)||kh(l,c))||a.push(l);return a};var Rh=Kl,Oh=wd,Nh=function(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t},Lh=Object.prototype.hasOwnProperty;var xh=Ah,Ph=function(e){if(!Rh(e))return Nh(e);var t=Oh(e),n=[];for(var r in e)("constructor"!=r||!t&&Lh.call(e,r))&&n.push(r);return n},Mh=Fd;var Dh=function(e){return Mh(e)?xh(e,!0):Ph(e)},Uh=yh,Bh=Dh;var Fh=ld,qh=dd.exports,jh=fd,Hh=md,zh=kd,Gh=Pd,Wh=Md,Kh=Hd,Vh=zd.exports,Qh=Jl,Xh=Kl,Jh=$d,Yh=dh,Zh=hh,$h=function(e){return Uh(e,Bh(e))};var ep=nd,tp=ld,np=ud,rp=function(e,t,n,r,i,o,s){var a=Zh(e,n),c=Zh(t,n),l=s.get(c);if(l)Fh(e,n,l);else{var u=o?o(a,c,n+"",e,t,s):void 0,d=void 0===u;if(d){var h=Wh(c),p=!h&&Vh(c),f=!h&&!p&&Yh(c);u=c,h||p||f?Wh(a)?u=a:Kh(a)?u=Hh(a):p?(d=!1,u=qh(c,!0)):f?(d=!1,u=jh(c,!0)):u=[]:Jh(c)||Gh(c)?(u=a,Gh(a)?u=$h(a):Xh(a)&&!Qh(a)||(u=zh(c))):d=!1}d&&(s.set(c,u),i(u,c,r,o,s),s.delete(c)),Fh(e,n,u)}},ip=Kl,op=Dh,sp=hh;var ap=function e(t,n,r,i,o){t!==n&&np(n,(function(s,a){if(o||(o=new ep),ip(s))rp(t,n,a,r,e,i,o);else{var c=i?i(sp(t,a),s,a+"",t,n,o):void 0;void 0===c&&(c=s),tp(t,a,c)}}),op)};var cp=function(e){return e};var lp=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)},up=Math.max;var dp=function(e,t,n){return t=up(void 0===t?e.length-1:t,0),function(){for(var r=arguments,i=-1,o=up(r.length-t,0),s=Array(o);++i<o;)s[i]=r[t+i];i=-1;for(var a=Array(t+1);++i<t;)a[i]=r[i];return a[t]=n(s),lp(e,this,a)}};var hp=function(e){return function(){return e}},pp=id,fp=pp?function(e,t){return pp(e,"toString",{configurable:!0,enumerable:!1,value:hp(t),writable:!0})}:cp,mp=Date.now;var vp=function(e){var t=0,n=0;return function(){var r=mp(),i=16-(r-n);if(n=r,i>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}(fp),gp=cp,yp=dp,bp=vp;var Ep=ul,wp=Fd,_p=Eh,Tp=Kl;var Sp=function(e,t){return bp(yp(e,t,gp),e+"")},kp=function(e,t,n){if(!Tp(n))return!1;var r=typeof t;return!!("number"==r?wp(n)&&_p(t,n.length):"string"==r&&t in n)&&Ep(n[t],e)};var Ip=ap;Cp=function(e,t,n){Ip(e,t,n)},Sp((function(e,t){var n=-1,r=t.length,i=r>1?t[r-1]:void 0,o=r>2?t[2]:void 0;for(i=Cp.length>3&&"function"==typeof i?(r--,i):void 0,o&&kp(t[0],t[1],o)&&(i=r<3?void 0:i,r=1),e=Object(e);++n<r;){var s=t[n];s&&Cp(e,s,n,i)}return e}));var Cp;document.querySelector(".upload-progress"),document.querySelector("#progressVal");document.querySelector("#share-modal .progress-overlay");let Ap={};document.querySelector("#share-modal"),document.querySelector("#share-modal .textarea"),document.querySelector("#share-modal .recommendations"),document.querySelector("#share-modal .full-page-header-share");const Rp=document.querySelector("#image-upload-label"),Op=document.querySelector("#image-upload"),Np=document.querySelector("#image-upload-label .image-upload-btn"),Lp=document.querySelector("#share-modal .post-title"),xp=document.querySelector("#post-provider-info"),Pp=document.querySelector("#post-link"),Mp=document.querySelector("#post-image"),Dp=document.querySelector("#share-modal .textarea"),Up=document.querySelector(".image-preview-wrapper"),Bp=document.querySelector("#share-modal .modal-content .reshare-section"),Fp=document.querySelector(".post-button"),qp=(document.querySelector("#share-modal .modal-content"),document.querySelector("#image-preview"),document.querySelector("#share-modal .upload-progress-header"),document.querySelector("#share-with-group"),document.querySelector("#share-with-network"),document.querySelector(".remove-image-preview"),document.querySelector("#share-modal .share-actions"),document.querySelector("#share-modal .close-button"),document.querySelector(".post-settings-wrapper"),document.querySelector("#visibility-settings-modal"),document.querySelector('input[name="share-with"]:checked'),document.querySelector("#visibility-header-back .close-button"),document.querySelector("#visibility-settings-modal .settings-list-wrapper"),document.querySelector("#discard-post-modal-wrapper"),document.querySelector("#retry-upload-modal-wrapper"),document.querySelector("#max-images-prompt-modal-wrapper"),document.querySelector("#comments-enabled"),document.querySelector("#comments-disabled"),document.querySelector("#share-with-public"),document.querySelector(".modal-spinner"),gs("loadingDescription"),gs("loadedDescription"),gs("i18n_file_load_error"),()=>{Rp&&Rp.classList.add("disabled"),Pi(Op),Pi(Np)}),jp=()=>{Rp&&Rp.classList.remove("disabled"),Mi(Op),Mi(Np)},Hp=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};Lp.textContent=e.title||"",xp.textContent=e.providerInfo||"",e.resolvedUrl?Pp.href=Yo(e.resolvedUrl):Pp.removeAttribute("href");const t=e.imageUrl;t&&""!==t?(Mp.src=Yo(t),Ni(Mp)):Oi(Mp)},zp=e=>{Ap=e?{shareMediaContent:{article:e}}:{}};function Gp(){var e;const t=null===(e=Dp.innerText)||void 0===e?void 0:e.trim().length,n="loaded"===Up.getAttribute("data-image-load-state"),r=Bp.children.length;t||n||r?Mi(Fp):Pi(Fp)}H(e=>{const t=function(e){const t=e.split(sl),n=[];for(let e=0;e<t.length;e++)t[e].match(cl())&&n.push(t[e].replace(al,""));return n}(e.target.innerText);t.length>0?Fi("".concat("/mwlite/url-preview/","?url=").concat(t[0],"&ingestionReason=").concat("SHARE")).then(e=>e&&JSON.parse(e.responseText)).then(e=>{Hp(e),zp(e),qp()}).catch(()=>{Hp(),jp(),zp()}):(Hp(),zp(),jp()),Gp()},300);class Wp{constructor(e){this.storage=void 0===e?localStorage:e}read(e){const t=this.storage.getItem(e);if(t)try{return JSON.parse(t)}catch(e){console.error(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")}}Wp.instance||(Wp.instance=new Wp(localStorage)),Wp.instance,Wp.sessionInstance||(Wp.sessionInstance=new Wp(sessionStorage)),Wp.sessionInstance;let Kp;x.getInstance().addUnloadCallback(()=>{Kp&&Kp.close(),Oi(document.querySelector("#discard-post-modal")),Oi(document.querySelector("#visibility-settings-modal")),Oi(document.querySelector("#max-images-prompt-modal")),Oi(document.querySelector("#retry-upload-modal"))});function Vp(e){const t=e.target.value;e.target.classList.toggle("selected",t),e.target.focus()}function Qp(e){if(e){const{id:t,labelText:n}=e.dataset;if(!t||!n)throw new Error("mandatory fields missing.");const r=e.querySelector("select");r&&(r.addEventListener("change",Vp),r.value&&r.classList.add("selected"))}else{document.querySelectorAll(".dropdown-container").forEach(Qp)}}function Xp(e){const t=e.currentTarget.parentElement.querySelector("input");t.value="",t.classList.remove("selected"),t.focus(),G(t,"input:cleared"),G(t,"change")}function Jp(e){const t=e.currentTarget.parentElement,n=t.dataset.placeholder,r=t.querySelector("input");n&&r.setAttribute("placeholder",n),r.removeEventListener("focus",Jp)}function Yp(e){const t=e.target.value;e.target.classList.toggle("selected",t)}function Zp(e){if(e){const{id:t,labelText:n}=e.dataset;if(!t||!n)throw new Error("mandatory fields missing.");const r=e.querySelector("input"),i=e.querySelector(".right");r.addEventListener("change",Yp),r.addEventListener("focus",Jp),i&&i.addEventListener("click",Xp)}else{document.querySelectorAll(".input-container").forEach(Zp)}}const $p="MinLength",ef="MaxLength",tf="Regex",nf="Required",rf="RegexAllow",of={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"}},sf="EMAIL_ADDRESS",af="PHONE_NUMBER",cf="OTHER",lf="consentUnchecked",uf={INPUT:"INPUT",SELECT:"SELECT"},df="text",hf="checkbox";function pf(e){return Object.keys(uf).includes(e.tagName)}function ff(e){const t=function(e){const t=[],{minLength:n,maxLength:r,inputType:i}=e.dataset;let o;switch(i){case cf:n&&t.push({type:$p,MinLength:n}),r&&t.push({type:ef,MaxLength:r});break;case sf:t.push({type:rf,RegexAllow:[of.EMAIL]});break;case af:o=e.value.replace(/ /g,""),t.push({type:rf,RegexAllow:[of.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 nf:if(0===n.length)return nf;break;case $p:if(n.length<e[$p])return $p;break;case ef:if(n.length>e[ef])return ef;break;case tf:for(let t=0;t<e[tf].length;t++)if(e[tf][t].pattern.test(n))return tf+e[tf][t].errorCode;break;case rf:for(let t=0;t<e[rf].length;t++)if(!e[rf][t].pattern.test(n))return rf+e[rf][t].errorCode}})(e,n)).filter(e=>!!e)}function mf(e,t){return t&&!e?lf:null}const vf=(e,t)=>parseInt(t.split(e)[1]);function gf(e,t){return document.querySelector("#".concat(e.id,"-strings")).dataset["str".concat(t)]}const yf=(e,t)=>({questionId:e,textQuestionAnswer:{answer:t}}),bf=(e,t)=>({questionId:e,multipleChoiceAnswer:{options:[{index:t}]}});function Ef(e){const t=e.id+"_",n=t+"q",r=t+"c";return new Promise((t,i)=>{const o=[],{urn:s,leadTrackingParams:a}=e.dataset,c={formResponse:{adFormUrn:s,submittedAt:Date.now(),answers:[],consentResponses:[]},trackingUrl:a,trackingAction:"LEAD_FORM_CLICK"};return Array.from(e).filter(pf).forEach(e=>{let t;if(e.tagName===uf.SELECT)t=((e,t)=>{const n=vf(e,t.id),r=t.selectedIndex;return{response:bf(n,r)}})(n,e),c.formResponse.answers.push(t.response);else if(e.type===df)if(t=((e,t)=>{const n=vf(e,t.id),r=ff(t);return 0!==r.length?{errors:r}:{response:yf(n,t.value)}})(n,e),t.response)c.formResponse.answers.push(t.response);else{const n=t.errors[0];o.push({element:e,errorType:n})}else e.type===hf&&(t=((e,t,n,r)=>{const i=vf(e,t),o=mf(n,r);return o?{errors:o}:{response:{consentId:i,accepted:n}}})(r,e.id,e.checked,e.required),t.response?c.formResponse.consentResponses.push(t.response):o.push({element:e,errorType:t.errors}))}),0===o.length?t(c):i(o)})}class wf{constructor(e){let{isLivePreview:t=!1}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!e)throw new Error("containerEl is not present");Zp(),Qp(),qi("form-modal-description__content-truncated",".form-modal-description__btn-truncation",e),this.containerEl=e,this.formEl=e.querySelector("form");const n=e.querySelector(".lead-gen-modal");this.modal=new Gs(n,{triggerByOutletEl:!t,shouldMoveToTopContainer:!1}),t?this.showForm():this._bindEvents()}showForm(){this.modal.open()}hideForm(){this.modal.close()}_clearFormErrors(){Array.from(this.formEl).filter(pf).map(e=>this._hideError(e))}_submitForm(){this._clearFormErrors(),Ef(this.formEl).then(e=>{G(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();te(gf(t.element,t.errorType),ee.ASSERTIVE)}})}_hideError(e){if(e){const t=e.closest(".lead-gen-input-container"),n=t.querySelector(".error-text");Oi(n),t.classList.remove("input-error"),e.removeAttribute("aria-invalid"),n.removeAttribute("role")}}_setAndShowError(e,t){if(e){const n=gf(e,t),r=e.closest(".lead-gen-input-container"),i=r.querySelector(".error-text");i.innerText=n,Ni(i),r.classList.add("input-error"),i.setAttribute("role","alert"),e.setAttribute("aria-invalid","true")}}_handleInputError(e){let t;if(this._hideError(e),e.type===hf)t=mf(e.checked,e.required);else if(e.type===df){const n=ff(e);n&&n.length&&(t=n[0])}t&&this._setAndShowError(e,t)}_bindEvents(){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.formEl.querySelector(".submit-btn").addEventListener("click",e=>{e.preventDefault(),e.stopPropagation(),this._submitForm()})}}fe(wf,"LEAD_GEN_SUBMIT_EVENT","FormModal:LeadGen:submit");function _f(){let{endpoint:e,headers:t={"Content-Type":"application/json"},queryId:n,variables:r={}}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return oe(e,{method:"POST",headers:t,postData:JSON.stringify({queryId:n,variables:r})})}class Tf{constructor(e){if(!e)throw Error("Missing FollowMutation endpoint");this.endpoint=e}execute(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:()=>{},r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:()=>{};_f({endpoint:this.endpoint,queryId:Tf.query,variables:{followState:e,to:t}}).then(e=>{const{responseText:t}=e;n(JSON.parse(t).graphQL)}).catch(r)}}fe(Tf,"query","cbed571fffd8cea15209aed8d44e6759");const Sf=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(Sf));const kf="CREATE",If="UPDATE";class Cf{constructor(e){if(!e)throw Error("Missing ReactionMutation endpoint");this.endpoint=e}execute(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:()=>{},i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:()=>{};const o={endpoint:this.endpoint,queryId:Cf.query,variables:{entityUrn:t,action:n}};n!==kf&&n!==If||(o.variables.reactionType=e),_f(o).then(e=>{const{responseText:t}=e;r(JSON.parse(t).graphQL)}).catch(i)}}fe(Cf,"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({HTML:"html",TEXT:"text",DATA:"data"}),Object.freeze({DESKTOP:"desktop",IOS:"ios",ANDROID:"android"});HTMLElement;function Af(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Rf(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Of,Nf={ADVERTISING:"ADVERTISING",ANALYTICS_AND_RESEARCH:"ANALYTICS_AND_RESEARCH",FUNCTIONAL:"FUNCTIONAL"},Lf="GUEST",xf="MEMBER",Pf=0,Mf=1,Df=2,Uf=(Rf(Of={},Lf,"li_gc"),Rf(Of,xf,"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,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;for(var o in Af(this,e),t=t||{},this.consentAvailable=!1,this.issuedAt=n,this.userMode=r,this.optedInConsentMap={},Nf)t[o]=t[o]||Pf,t[o]!==Pf&&(this.consentAvailable=!0),this.optedInConsentMap[o]=t[o]===Mf||t[o]===Pf&&i===Mf});(function(){var e=[Nf.ADVERTISING,Nf.ANALYTICS_AND_RESEARCH,Nf.FUNCTIONAL],t=[Pf,Mf,Df,Pf],n=new RegExp(["^(\\d+)","(\\d+)","(\\d+)","((?:.|\\s)+)"].join(";"))})(),new RegExp(["^(\\d+)","((?:.|\\s)+)"].join(";"));window.encodeURIComponent;function Bf(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n=e.querySelector('meta[name="pageKey"]'),r=e.getElementById("config"),i=r&&"true"===r.dataset.disableJsbeaconPagekeySuffix;return n&&n.content?"".concat(n.content).concat(i||t.skipSuffix?"":"_jsbeacon"):""}function Ff(e){let t=e.querySelector('meta[name="linkedin:pageTag"]');return t&&t.content||""}function qf(e){let t=e.querySelector('meta[name="locale"]');return t&&t.content||""}function jf(e){return e&&'"'===e.charAt(0)&&'"'===e.charAt(e.length-1)?e.slice(1,-1):e}const Hf={ARROW_DOWN:"ArrowDown",ARROW_LEFT:"ArrowLeft",ARROW_RIGHT:"ArrowRight",ARROW_UP:"ArrowUp",ESCAPE:"Escape",ENTER:"Enter",SPACEBAR:" ",TAB:"Tab"},zf={Down:Hf.ARROW_DOWN,Right:Hf.ARROW_RIGHT,Left:Hf.ARROW_LEFT,Up:Hf.ARROW_UP,Esc:Hf.ESCAPE,Spacebar:Hf.SPACEBAR,Tab:Hf.TAB};function Gf(e){return zf[e]||e}class Wf{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 Kf=function(){let e;return{getInstance:function(){return e||(e=new Wf),e}}}();class Vf{constructor(){this._pagehideCallbacks=[],this._initEventListener()}_initEventListener(){window.addEventListener("pagehide",e=>{for(let t=0;t<this._pagehideCallbacks.length;t++)this._pagehideCallbacks[t].call(null,e)})}addPagehideCallback(e){e instanceof Function&&this._pagehideCallbacks.push(e)}}!function(){let e}();function Qf(e){return null==e||"object"!=typeof e?[]:Array.prototype.slice.call(e)}function Xf(e,t,n){const r=new RegExp("([\\?&])".concat(n?t:encodeURIComponent(t),"=([^&#]*)")).exec(e);return r&&(n?r[2]:decodeURIComponent(r[2]))}function Jf(e,t,n,r){if(!e||!t)throw new Error("Required param of addQueryParam missing: url = ".concat(e,",  key = ").concat(t));t=encodeURIComponent(t),n=encodeURIComponent(n);const i=Xf(e,t,!0);if(i)return r?e.replace(i,n):e;{const r=e.indexOf("?");let[i,o]=e.split("#"),s="&";return r<0?s="?":r===e.length-1&&(s=""),o&&(o="#".concat(o)),"".concat(i).concat(s).concat(t,"=").concat(n).concat(o||"")}}function Yf(e,t,n){var r=this;if("function"!=typeof e)throw new TypeError("Expected a function.");let i;return function(){for(var o=arguments.length,s=new Array(o),a=0;a<o;a++)s[a]=arguments[a];const c=()=>{i=null,n||e.apply(r,s)},l=n&&!i;clearTimeout(i),i=setTimeout(c,t),l&&e.apply(r,s)}}function Zf(e){const t=document.cookie.match(new RegExp("(^| )"+e+"=([^;]+)"));return t&&t[2]}function $f(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const r=document.createEvent("CustomEvent");r.initCustomEvent(t,!0,!0,n),e.dispatchEvent(r)}function em(e){return"string"!=typeof e?null:e.split("?")[0]}let tm,nm;const rm=['a[href]:not([tabindex^="-"])','area[href]:not([tabindex^="-"])','input:not([disabled]):not([tabindex^="-"]):not([type="hidden"])','select:not([disabled]):not([tabindex^="-"])','textarea:not([disabled]):not([tabindex^="-"])','button:not([disabled]):not([tabindex^="-"])','[tabindex]:not([tabindex^="-"]):not([disabled])'].join(",");function im(e){const t=window.getComputedStyle(e);return"hidden"===t.visibility||"none"===t.display}function om(e){let t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:document.documentElement,r=arguments.length>2?arguments[2]:void 0;return e===n?!im(e):r&&r.get(e)?r.get(e):(im(e)?t=!1:e.parentNode&&(t=om(e.parentNode,n,r)),r&&r.set(e,t),t)}const sm={POLITE:"polite",ASSERTIVE:"assertive"};function am(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:sm.POLITE;tm&&(tm.removeAttribute("aria-hidden"),tm.setAttribute("aria-live",sm.POLITE),tm.textContent="",tm.textContent=e,tm.setAttribute("aria-live",t),clearTimeout(nm),nm=setTimeout(()=>{tm.removeAttribute("aria-live"),tm.setAttribute("aria-hidden","true")},1e4))}".".concat("collapsible-dropdown","__list"),".".concat("collapsible-dropdown","__button");function cm(e){let{method:t="GET",headers:n={},sendCookies:r=!0,skipCsrfToken:i=!1,postData:o,isPemEnabled:s=!1,pemDegradationTrackingMetadata:a=[],pemEntityIds:c=[]}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const l=new Promise((s,a)=>{const c=new XMLHttpRequest;if(c.addEventListener("load",(function(){if(c.status>=200&&c.status<300||304===c.status)s({status:c.status,responseText:c.responseText});else{const n=new Error("".concat(t," request for ").concat(e," has failed with status code ").concat(c.status));n.response={status:c.status,responseText:c.responseText},c.response&&(n.response.rawHeaders=c.getAllResponseHeaders()),a(n)}})),c.addEventListener("error",(function(e){a(e)})),c.open(t,e,!0),c.withCredentials=r,Object.keys(n).forEach(e=>{c.setRequestHeader(e,n[e])}),!i){const e=Zf("JSESSIONID");e&&c.setRequestHeader("Csrf-Token",jf(e))}c.send(o)});return s&&(a.length?lm(l,e,c,a):console.warn("Please set the value for the option pemDegradationTrackingMetadata when PEM is enabled.")),l}function lm(e,t,n,r){try{const i=e.then((function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return new Response(e,{status:e.status})})).catch((function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return new Response(e.response,{status:e.response?e.response.status:500,headers:e.response&&e.response.rawHeaders?um(e.response.rawHeaders):new Headers})}));window.tracking.then(e=>{window.pemTracking.then(o=>{o.trackFeatureDegradationsForFetch(t,n,r,i,e.state.currentPageInstance)})})}catch(e){}}function um(e){const t=new Headers;return e&&e.trim().split(/[\r\n]+/).forEach(e=>{const n=e.trim().split(": "),r=n.shift();if(r){const e=n.join(": ");t.set(r.toLocaleLowerCase(),e)}}),t}var dm="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==t.g?t.g:"undefined"!=typeof self?self:{},hm=(parseInt,"object"==typeof dm&&dm&&dm.Object===Object&&dm),pm="object"==typeof self&&self&&self.Object===Object&&self;hm||pm||Function("return this")(),Object.prototype.toString,Math.max,Math.min;function fm(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function mm(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?fm(Object(n),!0).forEach((function(t){vm(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):fm(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function vm(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const gm="light",ym="dark";function bm(){const e=document.getElementById("config");let t;return e&&e.dataset&&(t=e.dataset.theme),t?document.documentElement.classList.contains("dark")?ym:gm:void 0}var Em;function wm(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=Cm(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,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 _m(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Tm(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Sm(e,t,n){return t&&Tm(e.prototype,t),n&&Tm(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function km(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Im(e){return function(e){if(Array.isArray(e))return Am(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||Cm(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 Cm(e,t){if(e){if("string"==typeof e)return Am(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)?Am(e,t):void 0}}function Am(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Rm(e){return(Rm="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 Om,Nm=new Uint8Array(16);function Lm(){if(!Om&&!(Om="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 Om(Nm)}var xm=/^(?:[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 Pm(e){return"string"==typeof e&&xm.test(e)}for(var Mm=[],Dm=0;Dm<256;++Dm)Mm.push((Dm+256).toString(16).substr(1));function Um(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=(Mm[e[t+0]]+Mm[e[t+1]]+Mm[e[t+2]]+Mm[e[t+3]]+"-"+Mm[e[t+4]]+Mm[e[t+5]]+"-"+Mm[e[t+6]]+Mm[e[t+7]]+"-"+Mm[e[t+8]]+Mm[e[t+9]]+"-"+Mm[e[t+10]]+Mm[e[t+11]]+Mm[e[t+12]]+Mm[e[t+13]]+Mm[e[t+14]]+Mm[e[t+15]]).toLowerCase();if(!Pm(n))throw TypeError("Stringified UUID is invalid");return n}function Bm(e){if(!Pm(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 Fm(e,t,n){function r(e,r,i,o){if("string"==typeof e&&(e=function(e){e=unescape(encodeURIComponent(e));for(var t=[],n=0;n<e.length;++n)t.push(e.charCodeAt(n));return t}(e)),"string"==typeof r&&(r=Bm(r)),16!==r.length)throw TypeError("Namespace must be array-like (16 iterable integer values, 0-255)");var s=new Uint8Array(16+e.length);if(s.set(r),s.set(e,r.length),(s=n(s))[6]=15&s[6]|t,s[8]=63&s[8]|128,i){o=o||0;for(var a=0;a<16;++a)i[o+a]=s[a];return i}return Um(s)}try{r.name=e}catch(e){}return r.DNS="6ba7b810-9dad-11d1-80b4-00c04fd430c8",r.URL="6ba7b811-9dad-11d1-80b4-00c04fd430c8",r}function qm(e){return 14+(e+64>>>9<<4)+1}function jm(e,t){var n=(65535&e)+(65535&t);return(e>>16)+(t>>16)+(n>>16)<<16|65535&n}function Hm(e,t,n,r,i,o){return jm((s=jm(jm(t,e),jm(r,o)))<<(a=i)|s>>>32-a,n);var s,a}function zm(e,t,n,r,i,o,s){return Hm(t&n|~t&r,e,t,i,o,s)}function Gm(e,t,n,r,i,o,s){return Hm(t&r|n&~r,e,t,i,o,s)}function Wm(e,t,n,r,i,o,s){return Hm(t^n^r,e,t,i,o,s)}function Km(e,t,n,r,i,o,s){return Hm(n^(t|~r),e,t,i,o,s)}function Vm(e,t,n){var r=(e=e||{}).random||(e.rng||Lm)();if(r[6]=15&r[6]|64,r[8]=63&r[8]|128,t){n=n||0;for(var i=0;i<16;++i)t[n+i]=r[i];return t}return Um(r)}function Qm(e,t,n,r){switch(e){case 0:return t&n^~t&r;case 1:return t^n^r;case 2:return t&n^t&r^n&r;case 3:return t^n^r}}function Xm(e,t){return e<<t|e>>>32-t}Fm("v3",48,(function(e){if("string"==typeof e){var t=unescape(encodeURIComponent(e));e=new Uint8Array(t.length);for(var n=0;n<t.length;++n)e[n]=t.charCodeAt(n)}return function(e){for(var t=[],n=32*e.length,r="0123456789abcdef",i=0;i<n;i+=8){var o=e[i>>5]>>>i%32&255,s=parseInt(r.charAt(o>>>4&15)+r.charAt(15&o),16);t.push(s)}return t}(function(e,t){e[t>>5]|=128<<t%32,e[qm(t)-1]=t;for(var n=1732584193,r=-271733879,i=-1732584194,o=271733878,s=0;s<e.length;s+=16){var a=n,c=r,l=i,u=o;n=zm(n,r,i,o,e[s],7,-680876936),o=zm(o,n,r,i,e[s+1],12,-389564586),i=zm(i,o,n,r,e[s+2],17,606105819),r=zm(r,i,o,n,e[s+3],22,-1044525330),n=zm(n,r,i,o,e[s+4],7,-176418897),o=zm(o,n,r,i,e[s+5],12,1200080426),i=zm(i,o,n,r,e[s+6],17,-1473231341),r=zm(r,i,o,n,e[s+7],22,-45705983),n=zm(n,r,i,o,e[s+8],7,1770035416),o=zm(o,n,r,i,e[s+9],12,-1958414417),i=zm(i,o,n,r,e[s+10],17,-42063),r=zm(r,i,o,n,e[s+11],22,-1990404162),n=zm(n,r,i,o,e[s+12],7,1804603682),o=zm(o,n,r,i,e[s+13],12,-40341101),i=zm(i,o,n,r,e[s+14],17,-1502002290),n=Gm(n,r=zm(r,i,o,n,e[s+15],22,1236535329),i,o,e[s+1],5,-165796510),o=Gm(o,n,r,i,e[s+6],9,-1069501632),i=Gm(i,o,n,r,e[s+11],14,643717713),r=Gm(r,i,o,n,e[s],20,-373897302),n=Gm(n,r,i,o,e[s+5],5,-701558691),o=Gm(o,n,r,i,e[s+10],9,38016083),i=Gm(i,o,n,r,e[s+15],14,-660478335),r=Gm(r,i,o,n,e[s+4],20,-405537848),n=Gm(n,r,i,o,e[s+9],5,568446438),o=Gm(o,n,r,i,e[s+14],9,-1019803690),i=Gm(i,o,n,r,e[s+3],14,-187363961),r=Gm(r,i,o,n,e[s+8],20,1163531501),n=Gm(n,r,i,o,e[s+13],5,-1444681467),o=Gm(o,n,r,i,e[s+2],9,-51403784),i=Gm(i,o,n,r,e[s+7],14,1735328473),n=Wm(n,r=Gm(r,i,o,n,e[s+12],20,-1926607734),i,o,e[s+5],4,-378558),o=Wm(o,n,r,i,e[s+8],11,-2022574463),i=Wm(i,o,n,r,e[s+11],16,1839030562),r=Wm(r,i,o,n,e[s+14],23,-35309556),n=Wm(n,r,i,o,e[s+1],4,-1530992060),o=Wm(o,n,r,i,e[s+4],11,1272893353),i=Wm(i,o,n,r,e[s+7],16,-155497632),r=Wm(r,i,o,n,e[s+10],23,-1094730640),n=Wm(n,r,i,o,e[s+13],4,681279174),o=Wm(o,n,r,i,e[s],11,-358537222),i=Wm(i,o,n,r,e[s+3],16,-722521979),r=Wm(r,i,o,n,e[s+6],23,76029189),n=Wm(n,r,i,o,e[s+9],4,-640364487),o=Wm(o,n,r,i,e[s+12],11,-421815835),i=Wm(i,o,n,r,e[s+15],16,530742520),n=Km(n,r=Wm(r,i,o,n,e[s+2],23,-995338651),i,o,e[s],6,-198630844),o=Km(o,n,r,i,e[s+7],10,1126891415),i=Km(i,o,n,r,e[s+14],15,-1416354905),r=Km(r,i,o,n,e[s+5],21,-57434055),n=Km(n,r,i,o,e[s+12],6,1700485571),o=Km(o,n,r,i,e[s+3],10,-1894986606),i=Km(i,o,n,r,e[s+10],15,-1051523),r=Km(r,i,o,n,e[s+1],21,-2054922799),n=Km(n,r,i,o,e[s+8],6,1873313359),o=Km(o,n,r,i,e[s+15],10,-30611744),i=Km(i,o,n,r,e[s+6],15,-1560198380),r=Km(r,i,o,n,e[s+13],21,1309151649),n=Km(n,r,i,o,e[s+4],6,-145523070),o=Km(o,n,r,i,e[s+11],10,-1120210379),i=Km(i,o,n,r,e[s+2],15,718787259),r=Km(r,i,o,n,e[s+9],21,-343485551),n=jm(n,a),r=jm(r,c),i=jm(i,l),o=jm(o,u)}return[n,r,i,o]}(function(e){if(0===e.length)return[];for(var t=8*e.length,n=new Uint32Array(qm(t)),r=0;r<t;r+=8)n[r>>5]|=(255&e[r/8])<<r%32;return n}(e),8*e.length))})),Fm("v5",80,(function(e){var t=[1518500249,1859775393,2400959708,3395469782],n=[1732584193,4023233417,2562383102,271733878,3285377520];if("string"==typeof e){var r=unescape(encodeURIComponent(e));e=[];for(var i=0;i<r.length;++i)e.push(r.charCodeAt(i))}else Array.isArray(e)||(e=Array.prototype.slice.call(e));e.push(128);for(var o=e.length/4+2,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]=Xm(h[f-3]^h[f-8]^h[f-14]^h[f-16],1);for(var m=n[0],v=n[1],g=n[2],y=n[3],b=n[4],E=0;E<80;++E){var w=Math.floor(E/20),_=Xm(m,5)+Qm(w,v,g,y)+b+t[w]+h[E]>>>0;b=y,y=g,g=Xm(v,30)>>>0,v=m,m=_}n[0]=n[0]+m>>>0,n[1]=n[1]+v>>>0,n[2]=n[2]+g>>>0,n[3]=n[3]+y>>>0,n[4]=n[4]+b>>>0}return[n[0]>>24&255,n[0]>>16&255,n[0]>>8&255,255&n[0],n[1]>>24&255,n[1]>>16&255,n[1]>>8&255,255&n[1],n[2]>>24&255,n[2]>>16&255,n[2]>>8&255,255&n[2],n[3]>>24&255,n[3]>>16&255,n[3]>>8&255,255&n[3],n[4]>>24&255,n[4]>>16&255,n[4]>>8&255,255&n[4]]}));var Jm=null;if("undefined"==typeof crypto||!crypto.getRandomValues){var Ym=("undefined"!=typeof FastBoot?FastBoot.require:require)("crypto");if(Ym){var Zm=new Uint8Array(256),$m=Zm.length;Jm={rng:function(){return $m>Zm.length-16&&(Ym.randomFillSync(Zm),$m=0),Zm.slice($m,$m+=16)}}}}"object"===("undefined"==typeof crypto?"undefined":Rm(crypto))&&crypto.randomUUID;function ev(){return Vm(Jm,new Array(16),0)}function tv(e){return Im(e).map((function(e){return String.fromCharCode(e)})).join("")}function nv(){return tv(ev())}var rv=/^[a-zA-Z0-9/+]+[=]+$/;function iv(e,t){return{pageUrn:sv(e),trackingId:t||function(e){for(var t,n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",r=[],i=0,o=e.length,s=o%3,a=o-s;i<a;)t=e[i]<<16,t|=e[i+1]<<8,t|=e[i+2],r.push(n.charAt(t>>>18&63)),r.push(n.charAt(t>>>12&63)),r.push(n.charAt(t>>>6&63)),r.push(n.charAt(63&t)),i+=3;switch(s){case 2:t=e[i]<<16,t|=e[i+1]<<8,r.push(n.charAt(t>>>18&63)),r.push(n.charAt(t>>>12&63)),r.push(n.charAt(t>>>6&63)),r.push("=");break;case 1:t=e[i]<<16,r.push(n.charAt(t>>>18&63)),r.push(n.charAt(t>>>12&63)),r.push("="),r.push("=")}return r.join("")}(ev())}}function ov(e,t){return"urn:li:control:".concat(e,"-").concat(t)}function sv(e){return"urn:li:page:".concat(e)}function av(e,t){return{pageInstance:t.assign({},e.pageInstance),pageKey:e.pageKey,applicationInstance:e.applicationInstance}}function cv(e,t){return void 0!==t.allSettled?t.allSettled(e):function(e){return new Promise((function(t){var n=new Set,r=function(e){n.delete(e),0===n.size&&t()};0===e.length?t():e.map((function(e){return e.then((function(){return r(e)})).catch((function(){return r(e)}))}))}))}(e)}function lv(e){var t=[];return e.forEach((function(e){return t.push(e)})),t}function uv(e,t){if("undefined"!=typeof window&&window.indexedDB){var n="sequenceNumber",r=window.indexedDB.open(n);return new Promise((function(i,o){r.onupgradeneeded=function(){var e=r.result;e.objectStoreNames.contains(n)||e.createObjectStore(n,{autoIncrement:!0})},r.onsuccess=function(){var s=r.result,a=s.transaction(n,"readwrite"),c=a.objectStore(n),l=c.get(1);l.onsuccess=function(){var n=l.result;if(n){var r,s=null!==(r=n.sequenceNumber)&&void 0!==r?r:0;if("read"===e)return i(s);if(!("update"===e&&void 0!==t&&t>s))return i(null);var a=c.put({sequenceNumber:t},1);a.onsuccess=function(){return i(null)},a.onerror=function(){o(a.error)}}else{var u=c.add({sequenceNumber:0});u.onsuccess=function(){return i(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()}},r.onerror=function(){return i(null)}}))}return Promise.resolve(null)}function dv(e,t,n){var r=e.get(t);r&&r.push(n)||e.set(t,[n])}function hv(e,t,n){var r=e.get(t);r&&r.splice(r.indexOf(n)>>>0,1)}var pv,fv,mv=(pv=new Map,fv=new Map,{on:function(e,t){dv(pv,e,t)},before:function(e,t){dv(fv,e,t)},off:function(e,t){hv(pv,e,t)},offBefore:function(e,t){hv(fv,e,t)},emit:function(e,t){(fv.get(e)||[]).concat(pv.get(e)||[]).slice().map((function(e){e(t)}))},clear:function(){fv.clear(),pv.clear()}});if("undefined"!=typeof document&&"undefined"!=typeof window){var vv=function(e){"pagehide"!==e.type&&"hidden"!==document.visibilityState||mv.emit("internal:hide",e)};document.addEventListener("visibilitychange",vv),window.addEventListener("pagehide",vv)}var gv=Uint8Array,yv=Uint16Array,bv=Uint32Array,Ev=new gv([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]),wv=new gv([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]),_v=new gv([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),Tv=function(e,t){for(var n=new yv(31),r=0;r<31;++r)n[r]=t+=1<<e[r-1];var i=new bv(n[30]);for(r=1;r<30;++r)for(var o=n[r];o<n[r+1];++o)i[o]=o-n[r]<<5|r;return[n,i]},Sv=Tv(Ev,2),kv=Sv[0],Iv=Sv[1];kv[28]=258,Iv[258]=28;for(var Cv=Tv(wv,0)[1],Av=new yv(32768),Rv=0;Rv<32768;++Rv){var Ov=(43690&Rv)>>>1|(21845&Rv)<<1;Ov=(61680&(Ov=(52428&Ov)>>>2|(13107&Ov)<<2))>>>4|(3855&Ov)<<4,Av[Rv]=((65280&Ov)>>>8|(255&Ov)<<8)>>>1}var Nv=function(e,t,n){for(var r=e.length,i=0,o=new yv(t);i<r;++i)e[i]&&++o[e[i]-1];var s,a=new yv(t);for(i=0;i<t;++i)a[i]=a[i-1]+o[i-1]<<1;if(n){s=new yv(1<<t);var c=15-t;for(i=0;i<r;++i)if(e[i])for(var l=i<<4|e[i],u=t-e[i],d=a[e[i]-1]++<<u,h=d|(1<<u)-1;d<=h;++d)s[Av[d]>>>c]=l}else for(s=new yv(r),i=0;i<r;++i)e[i]&&(s[i]=Av[a[e[i]-1]++]>>>15-e[i]);return s},Lv=new gv(288);for(Rv=0;Rv<144;++Rv)Lv[Rv]=8;for(Rv=144;Rv<256;++Rv)Lv[Rv]=9;for(Rv=256;Rv<280;++Rv)Lv[Rv]=7;for(Rv=280;Rv<288;++Rv)Lv[Rv]=8;var xv=new gv(32);for(Rv=0;Rv<32;++Rv)xv[Rv]=5;var Pv=Nv(Lv,9,0),Mv=Nv(xv,5,0),Dv=function(e){return(e+7)/8|0},Uv=function(e,t,n){n<<=7&t;var r=t/8|0;e[r]|=n,e[r+1]|=n>>>8},Bv=function(e,t,n){n<<=7&t;var r=t/8|0;e[r]|=n,e[r+1]|=n>>>8,e[r+2]|=n>>>16},Fv=function(e,t){for(var n=[],r=0;r<e.length;++r)e[r]&&n.push({s:r,f:e[r]});var i=n.length,o=n.slice();if(!i)return[Kv,0];if(1==i){var s=new gv(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!=i-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(r=1;r<i;++r)o[r].s>h&&(h=o[r].s);var p=new yv(h+1),f=qv(n[u-1],p,0);if(f>t){r=0;var m=0,v=f-t,g=1<<v;for(o.sort((function(e,t){return p[t.s]-p[e.s]||e.f-t.f}));r<i;++r){var y=o[r].s;if(!(p[y]>t))break;m+=g-(1<<f-p[y]),p[y]=t}for(m>>>=v;m>0;){var b=o[r].s;p[b]<t?m-=1<<t-p[b]++-1:++r}for(;r>=0&&m;--r){var E=o[r].s;p[E]==t&&(--p[E],++m)}f=t}return[new gv(p),f]},qv=function e(t,n,r){return-1==t.s?Math.max(e(t.l,n,r+1),e(t.r,n,r+1)):n[t.s]=r},jv=function(e){for(var t=e.length;t&&!e[--t];);for(var n=new yv(++t),r=0,i=e[0],o=1,s=function(e){n[r++]=e},a=1;a<=t;++a)if(e[a]==i&&a!=t)++o;else{if(!i&&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(i),--o;o>6;o-=6)s(8304);o>2&&(s(o-3<<5|8208),o=0)}for(;o--;)s(i);o=1,i=e[a]}return[n.subarray(0,r),t]},Hv=function(e,t){for(var n=0,r=0;r<t.length;++r)n+=e[r]*t[r];return n},zv=function(e,t,n){var r=n.length,i=Dv(t+2);e[i]=255&r,e[i+1]=r>>>8,e[i+2]=255^e[i],e[i+3]=255^e[i+1];for(var o=0;o<r;++o)e[i+o+4]=n[o];return 8*(i+4+r)},Gv=function(e,t,n,r,i,o,s,a,c,l,u){Uv(t,u++,n),++i[256];for(var d=Fv(i,15),h=d[0],p=d[1],f=Fv(o,15),m=f[0],v=f[1],g=jv(h),y=g[0],b=g[1],E=jv(m),w=E[0],_=E[1],T=new yv(19),S=0;S<y.length;++S)T[31&y[S]]++;for(S=0;S<w.length;++S)T[31&w[S]]++;for(var k=Fv(T,7),I=k[0],C=k[1],A=19;A>4&&!I[_v[A-1]];--A);var R,O,N,L,x=l+5<<3,P=Hv(i,Lv)+Hv(o,xv)+s,M=Hv(i,h)+Hv(o,m)+s+14+3*A+Hv(T,I)+(2*T[16]+3*T[17]+7*T[18]);if(x<=P&&x<=M)return zv(t,u,e.subarray(c,c+l));if(Uv(t,u,1+(M<P)),u+=2,M<P){R=Nv(h,p,0),O=h,N=Nv(m,v,0),L=m;var D=Nv(I,C,0);for(Uv(t,u,b-257),Uv(t,u+5,_-1),Uv(t,u+10,A-4),u+=14,S=0;S<A;++S)Uv(t,u+3*S,I[_v[S]]);u+=3*A;for(var U=[y,w],B=0;B<2;++B){var F=U[B];for(S=0;S<F.length;++S){var q=31&F[S];Uv(t,u,D[q]),u+=I[q],q>15&&(Uv(t,u,F[S]>>>5&127),u+=F[S]>>>12)}}}else R=Pv,O=Lv,N=Mv,L=xv;for(S=0;S<a;++S)if(r[S]>255){q=r[S]>>>18&31,Bv(t,u,R[q+257]),u+=O[q+257],q>7&&(Uv(t,u,r[S]>>>23&31),u+=Ev[q]);var j=31&r[S];Bv(t,u,N[j]),u+=L[j],j>3&&(Bv(t,u,r[S]>>>5&8191),u+=wv[j])}else Bv(t,u,R[r[S]]),u+=O[r[S]];return Bv(t,u,R[256]),u+O[256]},Wv=new bv([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),Kv=new gv(0),Vv=function(){for(var e=new Int32Array(256),t=0;t<256;++t){for(var n=t,r=9;--r;)n=(1&n&&-306674912)^n>>>1;e[t]=n}return e}(),Qv=function(e,t,n){for(;n;++t)e[t]=n,n>>>=8};function Xv(e,t){t||(t={});var n=function(){var e=-1;return{p:function(t){for(var n=e,r=0;r<t.length;++r)n=Vv[255&n^t[r]]^n>>>8;e=n},d:function(){return~e}}}(),r=e.length;n.p(e);var i,o,s,a=(i=e,o=t,s=function(e){return 10+(e.filename&&e.filename.length+1||0)}(t),8,function(e,t,n,r,i,o){var s=e.length,a=new gv(r+s+5*(1+Math.ceil(s/7e3))+i),c=a.subarray(r,a.length-i),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=zv(c,l+1,e.subarray(u,d))}else{for(var h=Wv[t-1],p=h>>>13,f=8191&h,m=(1<<n)-1,v=new yv(32768),g=new yv(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},w=new bv(25e3),_=new yv(288),T=new yv(32),S=0,k=0,I=(u=0,0),C=0,A=0;u<s;++u){var R=E(u),O=32767&u,N=g[R];if(v[O]=N,g[R]=O,C<=u){var L=s-u;if((S>7e3||I>24576)&&L>423){l=Gv(e,c,0,w,_,T,k,I,A,u-A,l),I=S=k=0,A=u;for(var x=0;x<286;++x)_[x]=0;for(x=0;x<30;++x)T[x]=0}var P=2,M=0,D=f,U=O-N&32767;if(L>2&&R==E(u-U))for(var B=Math.min(p,L)-1,F=Math.min(32767,u),q=Math.min(258,L);U<=F&&--D&&O!=N;){if(e[u+P]==e[u+P-U]){for(var j=0;j<q&&e[u+j]==e[u+j-U];++j);if(j>P){if(P=j,M=U,j>B)break;var H=Math.min(U,j-2),z=0;for(x=0;x<H;++x){var G=u-U+x+32768&32767,W=G-v[G]+32768&32767;W>z&&(z=W,N=G)}}}U+=(O=N)-(N=v[O])+32768&32767}if(M){w[I++]=268435456|Iv[P]<<18|Cv[M];var K=31&Iv[P],V=31&Cv[M];k+=Ev[K]+wv[V],++_[257+K],++T[V],C=u+P,++S}else w[I++]=e[u],++_[e[u]]}}l=Gv(e,c,o,w,_,T,k,I,A,u-A,l),!o&&7&l&&(l=zv(c,l+1,Kv))}return function(e,t,n){(null==t||t<0)&&(t=0),(null==n||n>e.length)&&(n=e.length);var r=new(2==e.BYTES_PER_ELEMENT?yv:4==e.BYTES_PER_ELEMENT?bv:gv)(n-t);return r.set(e.subarray(t,n)),r}(a,0,r+Dv(l)+i)}(i,null==o.level?6:o.level,null==o.mem?Math.ceil(1.5*Math.max(8,Math.min(13,Math.log(i.length)))):12+o.mem,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&&Qv(e,4,Math.floor(new Date(t.mtime||Date.now())/1e3)),n){e[3]=8;for(var r=0;r<=n.length;++r)e[r+10]=n.charCodeAt(r)}}(a,t),Qv(a,c-8,n.d()),Qv(a,c-4,r),a}var Jv="undefined"!=typeof TextDecoder&&new TextDecoder;try{Jv.decode(Kv,{stream:!0})}catch(Ur){}function Yv(){return"undefined"!=typeof window&&"function"==typeof window.fetch}function Zv(){try{return Yv()&&"keepalive"in new Request("")}catch(e){return!1}}function $v(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if("undefined"!=typeof window&&void 0!==window.XMLHttpRequest){var r=new XMLHttpRequest;if(r.open("POST",e,!0),r.withCredentials=!0,n.headers)for(var i=0,o=Object.keys(n.headers);i<o.length;i++){var s=o[i];r.setRequestHeader(s,n.headers[s])}r.send(t)}}function eg(e){var t=e.body,n=e.keepalive,r=e.headers,i=e.compress;r["content-type"]||(r["content-type"]="text/plain;charset=UTF-8");var o=t;if(i&&"undefined"!=typeof TextEncoder)try{o=Xv((new TextEncoder).encode(t)),r["content-encoding"]="gzip"}catch(e){}return{body:o,keepalive:n,credentials:"include",headers:r,method:"POST",mode:"cors"}}function tg(e){return e&&"message"in e?e.message:"UNKNOWN_ERROR"}var ng,rg="undefined"!=typeof navigator&&"sendBeacon"in navigator,ig=Zv()?function(e,t,n,r){return new Promise((function(i){fetch(e,eg({body:t,keepalive:!0,headers:n,compress:r})).catch((function(){return fetch(e,eg({body:t,keepalive:!1,headers:n,compress:r}))})).then((function(e){e.ok?i({type:"success",drop:!1,statusCode:e.status}):i({type:"response",drop:!0,statusCode:e.status,rawError:e.statusText})}),(function(e){return i({type:"network",drop:!0,rawError:tg(e)})}))}))}:function(e,t,n,r){return new Promise((function(i){if(rg){var o=!1;try{o=navigator.sendBeacon(e,t)}catch(e){}if(o)return void i({type:"unknown",drop:!1})}fetch(e,eg({body:t,keepalive:!1,headers:n,compress:r})).then((function(e){e.ok?i({type:"success",drop:!1,statusCode:200}):i({type:"response",drop:!0,statusCode:e.status,rawError:e.statusText})}),(function(e){return i({type:"network",drop:!0,rawError:tg(e)})}))}))};function og(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 sg(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"key",r=arguments.length>3?arguments[3]:void 0,i=indexedDB.open(e);i.onupgradeneeded=function(){try{i.result.createObjectStore(t,{keyPath:n})}catch(e){null==r||r.onError(e)}};var o=new Promise((function(e,t){i.onsuccess=function(){var t=i.result;t.onversionchange=function(){return t.close()},e(t),null==r||r.onSuccess()},i.onerror=function(){t(i.error),null==r||r.onError(i.error)}}));return function(e,n){return o.then((function(r){return n(r.transaction(t,e).objectStore(t))}))}}function ag(){return ng||(ng=sg("idb-queue","default")),ng}function cg(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{maxNumber:1e3,batchEvictionNumber:300},n=0,r=null;return e.openKeyCursor().onsuccess=function(){var i=this.result;i&&n++<t.batchEvictionNumber?(r=i.key,i.continue()):null!=r&&e.delete(IDBKeyRange.upperBound(r))},og(e.transaction)}function lg(){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]:ag();return t("readwrite",(function(t){return cg(t,e)}))}var ug=!1;function dg(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]:ag();return n("readwrite",(function(n){return n.put(e),og(n.count()).then((function(e){if(!(e<=t.maxNumber))return cg(n,t)}))})).catch((function(e){if(e&&"QuotaExceededError"===e.name)return lg(t,n)}))}function hg(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]:ag();return ug?Promise.resolve():dg(e,t,n)}function pg(e,t,n){return t("readwrite",(function(t){var r=[];return t.openCursor(null,n).onsuccess=function(){var t=this.result;t&&(r.push(t.value),t.delete(),(e<0||r.length<e)&&t.continue())},og(t.transaction).then((function(){return r}))}))}function fg(e,t,n){return t("readonly",(function(t){var r=[];return t.openCursor(null,n).onsuccess=function(){var t=this.result;t&&(r.push(t.value),(e<0||r.length<e)&&t.continue())},og(t.transaction).then((function(){return r}))}))}function mg(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:ag();return fg(e,t,"next")}function vg(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:ag();return fg(e,t,"prev")}function gg(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0,n=arguments.length>2?arguments[2]:void 0,r=arguments.length>3?arguments[3]:void 0;return!t||n<1||(e[t]=JSON.stringify({attempt:n,errorCode:r})),e}function yg(e){"undefined"!=typeof window&&window.__DEBUG_BEACON_TRANSPORTER&&console.debug("[beacon-transporter] ",e())}function bg(e){"undefined"!=typeof window&&window.__DEBUG_BEACON_TRANSPORTER&&console.error("[beacon-transporter] ",e())}function Eg(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{timeRemaining:5,timeout:1e4};if("undefined"==typeof requestIdleCallback)setTimeout(e,t.fallbackTimeout||10);else{var n=function n(){requestIdleCallback((function(r){r.timeRemaining()>t.timeRemaining||r.didTimeout?e():n()}),{timeout:t.timeout})};n()}}function wg(e,t){var n=0;return{throttledFn:function(){var r=Date.now();r-n>t&&(yg((function(){return"[throttle] Run fn() at "+String(r)})),e(),n=r)},resetThrottle:function(){n=0}}}var _g=function(){function e(t){var n=this,r=arguments.length>1&&void 0!==arguments[1]&&arguments[1];_m(this,e),km(this,"config",void 0),km(this,"compress",void 0),km(this,"throttleControl",void 0),km(this,"withStore",void 0),km(this,"disablePersistence",!1),this.config=t,this.compress=r;var i=t.measureIDB;i&&performance.mark(i.createStartMark),this.withStore=sg(t.idbName,"beacons","timestamp",{onSuccess:function(){i&&performance.measure(i.createSuccessMeasure,i.createStartMark)},onError:function(){i&&performance.measure(i.createFailMeasure,i.createStartMark),n.disablePersistence=!0}}),this.throttleControl=wg(this.replayEntries.bind(this),t.throttleWait)}return Sm(e,[{key:"onNotify",value:function(){this.disablePersistence||this.throttleControl.throttledFn()}},{key:"push",value:function(e){var t=this;if(!this.disablePersistence){var n=function(){yg((function(){return"Persisting to DB "+e.url})),hg(e,t.config,t.withStore).then((function(){t.throttleControl.resetThrottle(),yg((function(){return"push completed"}))})).catch((function(){t.disablePersistence=!0,bg((function(){return"push failed"}))}))};this.config.useIdle?Eg(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]:ag();return ug=!0,e("readwrite",(function(e){return e.clear(),og(e.transaction).finally((function(){return ug=!1}))}))}(this.withStore).catch((function(){e.disablePersistence=!0,bg((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([]):mg(t,this.withStore).catch((function(){return e.disablePersistence=!0,bg((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([]):vg(t,this.withStore).catch((function(){return e.disablePersistence=!0,bg((function(){return"peekBack failed"})),[]}))}},{key:"replayEntries",value:function(){var e=this;if(!this.disablePersistence){var t=function(){yg((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]:ag();return pg(e,t,"next")}(1,e.withStore).then((function(t){if(t.length>0){var n,r,i=t[0],o=i.url,s=i.body,a=i.headers,c=i.timestamp,l=i.statusCode,u=i.attemptCount;return yg((function(){return"header: ".concat(String(e.config.headerName),"; attemptCount: ").concat(u)})),null===(n=(r=e.config).onBeforeRetry)||void 0===n||n.call(r,s),ig(o,s,gg(a,e.config.headerName,u,l),e.compress).then((function(t){if("unknown"===t.type||"success"===t.type){var n,r;null===(n=(r=e.config).onResult)||void 0===n||n.call(r,t,s),e.replayEntries()}else{var i,a,d,h,p,f;if(u+1>e.config.attemptLimit)return yg((function(){return"Exceeded attempt count, dropping the entry: "+JSON.stringify({url:o,timestamp:c,statusCode:l},null,2)})),t.drop=!0,void(null===(i=(a=e.config).onResult)||void 0===i||i.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),yg((function(){return"Replaying the entry failed, pushing back to IDB: "+JSON.stringify({url:o,timestamp:c,statusCode:l},null,2)})),hg({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&&bg((function(){return"Replay entry failed: ".concat(t.message)}))}))};this.config.useIdle?Eg(t):t()}}}]),e}(),Tg=function(){function e(){_m(this,e)}return Sm(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}(),Sg=function(){function e(t,n){_m(this,e),km(this,"queue",void 0),km(this,"beaconListeners",new Set),this.queue=e.hasSupport&&!n.disablePersistenceRetry?new _g(t,n.compress):new Tg}return Sm(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}();km(Sg,"hasSupport","undefined"!=typeof globalThis&&!!globalThis.indexedDB);var kg=[502,504],Ig=[429,503],Cg=function(){function e(t,n,r,i){var o=this,s=arguments.length>4&&void 0!==arguments[4]&&arguments[4];_m(this,e),km(this,"url",void 0),km(this,"body",void 0),km(this,"config",void 0),km(this,"persistenceConfig",void 0),km(this,"compress",void 0),km(this,"timestamp",void 0),km(this,"isClearQueuePending",!1),km(this,"onClearCallback",void 0),this.url=t,this.body=n,this.config=r,this.persistenceConfig=i,this.compress=s,this.timestamp=Date.now(),this.onClearCallback=function(){return o.isClearQueuePending=!0}}return Sm(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 ig(e.url,e.body,t,e.compress)}),n,t).finally((function(){yg((function(){return"beacon finished"})),e.persistenceConfig.db.removeOnClear(e.onClearCallback)}))}},{key:"retryLimit",get:function(){return this.config.attemptLimit}},{key:"getAttemptCount",value:function(e){return this.retryLimit-e+1}},{key:"retry",value:function(e,t,n,r){var i=this,o=this.getAttemptCount(t)-1;return e(gg(n,this.config.headerName,o,r)).then((function(r){var o,s,a,c;if(r.drop=!1,"unknown"===r.type||"success"===r.type)i.isClearQueuePending||i.persistenceConfig.disabled||i.persistenceConfig.db.notifyQueue(),a=r;else if(yg((function(){return"retry rejected "+JSON.stringify(r)})),i.shouldPersist(t,r))i.persistenceConfig.db.pushToQueue({url:i.url,body:i.body,headers:n,statusCode:r.statusCode,timestamp:i.timestamp,attemptCount:i.getAttemptCount(t)}),a={type:"persisted",drop:!1,statusCode:r.statusCode};else{if(t>0&&i.isRetryableError(r)){var l,u;null===(l=(u=i.config).onIntermediateResult)||void 0===l||l.call(u,r,i.body);var d=i.config.calculateRetryDelay(i.getAttemptCount(t),t);return yg((function(){return"in memory retry in ".concat(d,"ms")})),(c=d,new Promise((function(e){return setTimeout(e,c)}))).then((function(){return i.retry(e,t-1,n,r.statusCode)}))}(a=r).drop=!0}return null===(o=(s=i.config).onIntermediateResult)||void 0===o||o.call(s,a,i.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 Ag(e,t,n,r,i){"control"!==r&&e.retryConfig&&function(){if("undefined"==typeof Promise||"undefined"==typeof navigator)return!1;var e=navigator.userAgent.indexOf("Chrome")>-1,t=navigator.cookieEnabled,n=navigator.storage;return e&&Zv()&&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==i?void 0:i.onIntermediateResult,attemptLimit:c.attemptLimit,statusCodes:c.statusCodes,headerName:"x-li-retry-context",calculateRetryDelay:function(e){return function(e){return 1e3*Math.pow(2,e)}(e)}},disablePersistenceRetry:e.retryConfig.disablePersistence,persistenceRetry:{onBeforeRetry:null==i?void 0:i.onBeforeRetry,onResult:null==i?void 0:i.onResult,idbName:"beacons",attemptLimit: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),r=Object.assign({attemptLimit:0,statusCodes:kg,calculateRetryDelay:function(e,t){return 2e3*t}},t.inMemoryRetry);if(t.retryDB)e=t.retryDB;else{var i=Object.assign({idbName:"beacon-transporter",attemptLimit:3,statusCodes:Ig,maxNumber:1e3,batchEvictionNumber:300,throttleWait:3e5},t.persistenceRetry);i.headerName=i.headerName||r.headerName,e=new Sg(i,{compress:t.compress,disablePersistenceRetry:t.disablePersistenceRetry})}return{beacon:function(i,o,s){var a;return Yv()?new Cg(i,o,r,{db:e,disabled:Boolean(t.disablePersistenceRetry),statusCodes:(null===(a=t.persistenceRetry)||void 0===a?void 0:a.statusCodes)||Ig},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"===r?(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){mv.emit("internal:error",{tags:["core-web-tracking:retry:idb"],reason:e})})):(e.retryBeacon.shouldRetry=!0,Promise.resolve())):void 0})).catch((function(e){mv.emit("internal:error",{tags:["core-web-tracking:retry:setup"],reason:e})}))}var Rg=function(){function e(t){_m(this,e),km(this,"host",void 0),this.host=t}return Sm(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&&Ag(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){mv.emit("internal:error",{tags:["core-web-tracking:retry:logout"],reason:e})}))}},{key:"sendPayload",value:function(e,t,n,r){var i,o=this.getRetryTreatment();Zv()&&"control"!==o&&null!==(i=this.host.retryBeacon)&&void 0!==i&&i.shouldRetry?this.sendPayloadWithRetry(e,t,n):this.sendPayloadFireForget(e,t,n,r)}},{key:"sendPayloadWithRetry",value:function(e,t,n){(!Array.isArray(t)||t.length>0)&&this.host.retryBeacon.beacon(e,JSON.stringify(t),n).catch((function(e){mv.emit("internal:error",{tags:["core-web-tracking:retry:beacon"],reason:e})}))}},{key:"sendPayloadFireForget",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=arguments.length>3?arguments[3]:void 0;if(!Array.isArray(t)||t.length>0){var i="undefined"!=typeof navigator&&navigator.userAgent.toLowerCase().indexOf("firefox")>-1;i||!Yv()||"undefined"==typeof Promise?$v(e,JSON.stringify(t),{headers:n}):ig(e,JSON.stringify(t),n,this.shouldCompressPayload()).then((function(e){null==r||r.onResult(e,t)}),(function(){}))}}},{key:"getRetryTreatment",value:function(){var e,t,n;if(!this.host.retryConfig)return"control";var r=this.host.retryConfig.lixKey;return r?null!==(e=null===(t=(n=this.host).__getLixTreatment)||void 0===t?void 0:t.call(n,r))&&void 0!==e?e:"control":"enabled"}},{key:"shouldCompressPayload",value:function(){return!0!==this.host.disableCompression}}]),e}(),Og="undefined"!=typeof window&&"undefined"!=typeof document,Ng=/JSESSIONID="?([^";]+)"?/,Lg="",xg=0;function Pg(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.cacheLifeSpan,n=void 0===t?1e4:t,r=e.regex,i=void 0===r?Ng:r;if(!Lg||Date.now()-xg>n){var o=Og&&document.cookie.match(i);Lg=o&&o[1]||"",xg=Date.now()}return Lg}var Mg=function(){function e(t){_m(this,e),km(this,"networkTransporter",void 0),km(this,"inactive",void 0),km(this,"mpName",void 0),km(this,"endpoint",void 0),km(this,"debug",void 0),this.networkTransporter=new Rg(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=Ug;break;case"https://www.linkedin-ei.com/li/track/validate":n=!0,t=Dg;break;case"https://www.linkedin-ei.com/li/track":t=Dg;break;default:n=!0,t=Dg}return{endpoint:t,debug:n}}(t.endpoint);this.endpoint=n.endpoint,this.debug=n.debug}return Sm(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":Pg(),"x-restli-protocol-version":"2.0.0"},n={fragmentEvent:e,debug:this.debug};this.networkTransporter.sendPayload(this.endpoint,n,t)}}}]),e}(),Dg="https://www.linkedin-ei.com/trackingMonitoring/?action=saveClientFragment",Ug="https://www.linkedin.com/trackingMonitoring/?action=saveClientFragment";function Bg(e){return"string"==typeof e}function Fg(e){return Bg(e)?e:e.topicName||e.eventName}function qg(e){return Bg(e)?e:e.eventName}var jg,Hg,zg=function(){function e(t){var n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};_m(this,e),km(this,"host",void 0),km(this,"cmoTransporter",void 0),km(this,"clientMonitoringInstanceId",nv()),km(this,"currentContext",Kg()),km(this,"appState",{}),km(this,"estimatedFragmentSize",0),km(this,"fragmentSizeLimit",void 0),km(this,"activeFragmentEvent",void 0),km(this,"debounceTimer",void 0),this.host=t,this.cmoTransporter=r.cmoTransporter||new Mg(t),this.fragmentSizeLimit=(null===(n=t.clientMonitoringConfig)||void 0===n?void 0:n.fragmentSizeLimit)||10240,this.activeFragmentEvent=Wg(this.clientMonitoringInstanceId,0,0,!1,this.getEventHeaders())}return Sm(e,[{key:"getCurrentInstanceId",value:function(){return this.clientMonitoringInstanceId}},{key:"scheduleDebouncedFiring",value:function(){var e,t,n=this;void 0!==this.debounceTimer&&(clearTimeout(this.debounceTimer),this.debounceTimer=void 0),this.fragmentIsFull()&&this.fireFragmentEventIfFull(!0),this.debounceTimer=setTimeout((function(){n.fireFragmentEventIfFull()}),null!==(e=null===(t=this.host.batching)||void 0===t?void 0:t.debounceTime)&&void 0!==e?e:1)}},{key:"logEventGenerated",value:function(e){this.scheduleDebouncedFiring();var t=this.activeFragmentEvent.stats,n=this.activeFragmentEvent.firstEventNumber+t.eventsGenerated;return t.eventTopics.push(e),t.eventsGenerated++,this.estimatedFragmentSize+=e.length,n}},{key:"logEventReadyToSend",value:function(e){this.activeFragmentEvent.stats.eventsReadyToSend+=e}},{key:"logEventSent",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.getCurrentInstanceId();t===this.getCurrentInstanceId()?this.activeFragmentEvent.stats.eventsSent+=e:this.findPreviousInstanceStat(t,(function(t){t.eventsSent+=e}))}},{key:"logNetworkResponseCode",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.getCurrentInstanceId(),n=this.activeFragmentEvent.stats.networkResponseStats;t!==this.getCurrentInstanceId()&&this.findPreviousInstanceStat(t,(function(e){n=e.networkResponseStats})),e>=200&&e<300?n.eventsWith2XXResponse++:400===e?n.eventsWith400Response++:408===e?n.eventsWith408Response++:429===e?n.eventsWith429Response++:e>400&&e<500?n.eventsWith4XXResponse++:500===e?n.eventsWith500Response++:502===e?n.eventsWith502Response++:503===e?n.eventsWith503Response++:504===e?n.eventsWith504Response++:e>500&&e<600&&n.eventsWith5XXResponse++}},{key:"findPreviousInstanceStat",value:function(e,t){var n,r=wm(this.activeFragmentEvent.stats.previousInstanceEventStats);try{for(r.s();!(n=r.n()).done;){var i=n.value;if(i.instanceId===e)return void t(i)}}catch(e){r.e(e)}finally{r.f()}var o=this.getEventHeaders(),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,r){var i=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:i,instanceEventNumber:r,reason:e,rawError:n,eventName:qg(t),eventTopic:Fg(t)};this.estimatedFragmentSize+=JSON.stringify(c).length,i===this.getCurrentInstanceId()?this.activeFragmentEvent.stats.failures.push(c):this.findPreviousInstanceStat(i,(function(e){e.failures.push(c)})),this.fireFragmentEventIfFull()}},{key:"flush",value:function(){this.activeFragmentEvent.isLastFragment=!0,this.fireFragmentEventIfFull(!0)}},{key:"fragmentIsFull",value:function(){return this.activeFragmentEvent.stats.eventsGenerated>=100||this.estimatedFragmentSize>=this.fragmentSizeLimit}},{key:"fireFragmentEventIfFull",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(e||this.fragmentIsFull()){this.debounceTimer=void 0;var t=this.getEventHeaders(),n=t.header,r=t.requestHeader,i=this.activeFragmentEvent;i.header=n,i.requestHeader=r,this.cmoTransporter.fireFragment(i),this.estimatedFragmentSize=0,this.activeFragmentEvent=Wg(this.clientMonitoringInstanceId,i.fragmentNumber+1,i.firstEventNumber+i.stats.eventsGenerated,!1,t)}}},{key:"setCurrentContext",value:function(e){this.currentContext=e}},{key:"updateAppState",value:function(e){this.host.api.assign(this.appState,e)}},{key:"getEventHeaders",value:function(){var e=void 0;this.appState.clientApplicationInstance&&((e=this.appState.clientApplicationInstance).trackingId=Vg(e.trackingId));var t=this.currentContext.pageInstance;return t.trackingId=Vg(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 Gg(e){return jg||(jg=new zg(e)),{getCurrentInstanceId:function(){return jg.getCurrentInstanceId()},logEventGenerated:function(e){return jg.logEventGenerated(e)},logEventReadyToSend:function(e){jg.logEventReadyToSend(e)},logEventSent:function(e){jg.logEventSent(e)},logPersistedEventSent:function(e,t){jg.logEventSent(t,e)},logNetworkResponseCode:function(e){jg.logNetworkResponseCode(e)},logPersistedNetworkResponseCode:function(e,t){var n;null===(n=jg)||void 0===n||n.logNetworkResponseCode(t,e)},logFailedEvent:function(e,t,n,r){jg.logFailedEvent(e,t,n,r)},logPersistedFailedEvent:function(e,t,n,r,i){jg.logFailedEvent(t,n,r,i,e)},flush:function(){jg.flush()},destroy:function(){jg=void 0},isDestroyed:function(){return void 0===jg},setCurrentContext:function(e){jg.setCurrentContext(e)},updateAppState:function(e){jg.updateAppState(e)}}}function Wg(e,t,n,r,i){return{fragmentNumber:t,firstEventNumber:n,isLastFragment:r,stats:{instanceId:e,eventsGenerated:0,eventsReadyToSend:0,eventsSent:0,networkResponseStats:{eventsWith2XXResponse:0,eventsWith400Response:0,eventsWith408Response:0,eventsWith429Response:0,eventsWith4XXResponse:0,eventsWith500Response:0,eventsWith502Response:0,eventsWith503Response:0,eventsWith504Response:0,eventsWith5XXResponse:0},eventTopics:[],failures:[],previousInstanceEventStats:[]},requestHeader:i.requestHeader,header:i.header}}function Kg(){return{pageKey:"unknown",pageInstance:iv("unknown")}}function Vg(e){return Array.isArray(e)?tv(e):16===e.length?e:function(e){return"string"==typeof e&&!!e.match(rv)}(e)?atob(e):tv(function(e){return Bm(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"}(Hg||(Hg={}));var Qg=function(){function e(t){var n=this;_m(this,e),km(this,"host",void 0),km(this,"queue",void 0),km(this,"preContextQueue",void 0),km(this,"debounceTimer",void 0),km(this,"unloadHandlers",void 0),km(this,"maxQueueSize",void 0),km(this,"flushDebounceTime",void 0),km(this,"trackingEventListeners",[]),km(this,"onHideHandler",(function(){n.forceFlush()})),km(this,"networkTransporter",void 0),km(this,"clientMonitoringConn",void 0),km(this,"clientSequenceNumberCounter",void 0),km(this,"isTimerRunning",void 0),km(this,"enableSequenceNumberLix",void 0),this.host=t,this.queue=[],this.preContextQueue=[],this.unloadHandlers=[];var r=t.batching;this.maxQueueSize=r&&r.maxSize||1,this.flushDebounceTime=r&&r.debounceTime||0,mv.on("internal:hide",this.onHideHandler),this.networkTransporter=new Rg(t),this.isLixEnabled("pemberly.tracking.monitoring")&&t.clientMonitoringConfig&&!t.inactive&&(this.clientMonitoringConn=Gg(t)),this.enableSequenceNumberLix=this.isLixEnabled("tracking.data-loss-web.sequence-number"),this.enableSequenceNumberLix&&(this.getSequenceNumberFromIDB(),this.updateSequenceNumberOnExit(),this.isTimerRunning=!1)}return Sm(e,[{key:"checkAndEnablePersistentRetry",value:function(e){var t,n=(t=this.clientMonitoringConn,{onIntermediateResult:function(e,n){var r;if(t&&!t.isDestroyed())try{if(r=JSON.parse(n),!Array.isArray(r)||0===r.length)return;e.statusCode&&t.logNetworkResponseCode(e.statusCode),!0===e.drop&&r.forEach((function(n){var r,i=n.eventInfo.eventName,o=n.eventInfo.topicName||i,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(Hg.UNKNOWN_EXECUTION_ERROR,{eventName:i,topicName:o},a,null!==(r=n.eventBody.header.clientMonitoringInstanceEventNumber)&&void 0!==r?r:-1)}))}catch(e){}},onBeforeRetry:function(e){var n;if(t&&!t.isDestroyed())try{if(n=JSON.parse(e),!Array.isArray(n)||0===n.length||!n[0].eventBody.header.clientMonitoringInstanceId)return;var r=n[0].eventBody.header.clientMonitoringInstanceId,i=n.length;t.logPersistedEventSent(r,i)}catch(e){}},onResult:function(e,n){var r;if(t)try{if(r=JSON.parse(n),!Array.isArray(r)||0===r.length||!r[0].eventBody.header.clientMonitoringInstanceId)return;var i=r[0].eventBody.header.clientMonitoringInstanceId;e.statusCode&&t.logPersistedNetworkResponseCode(i,e.statusCode),!0===e.drop&&r.forEach((function(n){var r=n.eventInfo.eventName,o=n.eventInfo.topicName||r,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(i,Hg.UNKNOWN_EXECUTION_ERROR,{eventName:r,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(Fg(e.id)));var n,r=this.host,i=r.api.Promise,o=r.batching;return function(e){return!!e.meta.context}(t)?(this.prepareCompleteEnvelopeQueue(t),null===(n=this.clientMonitoringConn)||void 0===n||n.logEventReadyToSend(1),o?(this.batchFire(),i.resolve(!0)):(this.flush(!0),i.resolve(!0))):(this.preContextQueue.push(t),i.resolve(!0))}},{key:"callOnDestroy",value:function(e){this.unloadHandlers.push(e)}},{key:"destroy",value:function(){this.unloadHandlers.forEach((function(e){return e()})),this.forceFlush(),this.trackingEventListeners=[],this.clientMonitoringConn=void 0,mv.off("internal:hide",this.onHideHandler)}},{key:"forceFlush",value:function(){var e=this;this.populatePreContextQueue({pageInstance:iv("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;uv("read").then((function(t){e.clientSequenceNumberCounter=t||0})).catch((function(e){mv.emit("internal:error",{tags:["core-web-tracking:sequence-number:idb-read"],reason:e})}))}},{key:"updateSequenceNumberToIDB",value:function(){uv("update",this.clientSequenceNumberCounter).catch((function(e){mv.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=av(e.meta.context,this.host.api);"function"==typeof e.body&&(e.body=e.body(n)),this.preContextQueue.length>0&&this.populatePreContextQueue(n).forEach((function(e){return t.queue.push(e)})),this.queue.push(e)}},{key:"envelop",value:function(e,t,n){var r=this.host,i=r.appId,o=r.api,s={eventBody:t,eventInfo:"string"==typeof e?{appId:i,eventName:e,topicName:e}:o.assign({appId:i},e)};return n.length>0&&this.host.api.assign(s,{clientBreadcrumbs:n}),s}},{key:"getBreadcrumbs",value:function(e){return e.clientBreadcrumbs||[]}},{key:"getGenericEventBody",value:function(e){var t,n=this.host,r=n.appVersion,i=n.locale,o=n.api,s=o.location,a=o.document,c=o.assign,l=e.meta.context,u=l.pageKey,d=l.pageInstance,h=function(e){return"string"==typeof e?"PageViewEvent"===e:"PageViewEvent"===e.eventName}(e.id)&&(null===(t=e.body.requestHeader)||void 0===t?void 0:t.pageKey)||u,p=null;"string"!=typeof i&&null!==this.host.locale||(p=i);var f={interfaceLocale:p,pageKey:h,path:s.pathname+s.search,referer:a.referrer},m={pageInstance:d,time:e.meta.time,version:r};"number"==typeof this.clientSequenceNumberCounter&&c(m,{clientGlobalSequenceNumber:this.clientSequenceNumberCounter});var v={header:c(m,e.meta.header||{}),requestHeader:c(f,e.meta.requestHeader||{})},g=e.meta.clientMonitoringInstanceId,y=e.meta.clientMonitoringInstanceEventNumber;return g&&c(v.header,{clientMonitoringInstanceId:g,clientMonitoringInstanceEventNumber:y}),c(e.body,v)}},{key:"populatePreContextQueue",value:function(e){var t,n=this.preContextQueue;return this.preContextQueue=[],null===(t=this.clientMonitoringConn)||void 0===t||t.logEventReadyToSend(n.length),n.map((function(t){return t.meta.context=e,"function"==typeof t.body&&(t.body=t.body(e)),t}))}},{key:"trigger",value:function(e,t){this.trackingEventListeners.forEach((function(n){return n(e,t)}))}},{key:"requestFlush",value:function(e){var t=this;e((function(){t.forceFlush()}),{timeout:1e4})}},{key:"flush",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=this.host.api.requestIdleCallback;e||!t?this.sendPayload():this.requestFlush(t)}},{key:"batchFire",value:function(){var e=this;this.queue.length>this.maxQueueSize?this.flush():(this.debounceTimer&&clearTimeout(this.debounceTimer),this.debounceTimer=setTimeout((function(){return e.flush()}),this.flushDebounceTime))}},{key:"sendPayload",value:function(){var e=this,t=this.queue;if(0!==t.length){this.enableSequenceNumberLix&&"undefined"!=typeof window&&!1===this.isTimerRunning&&(this.isTimerRunning=!0,setInterval((function(){e.updateSequenceNumberToIDB()}),5e3)),this.queue=[];var n,r,i=[],o=[];t.forEach((function(t){var n=e.getGenericEventBody(t),r=e.getBreadcrumbs(t),s=e.envelop(t.id,n,r);e.trigger(s,t.meta);var a=s.eventInfo.eventName;"LixTreatmentsEvent"===a||"JavaScriptErrorEvent"===a?i.push(s):o.push(s),e.enableSequenceNumberLix&&"number"==typeof e.clientSequenceNumberCounter&&e.clientSequenceNumberCounter++})),this.host.inactive||(this.clientMonitoringConn&&(this.clientMonitoringConn.logEventSent(i.length+o.length),r=this.clientMonitoringConn,n={onResult:function(e,t){r&&!r.isDestroyed()&&(e.statusCode&&r.logNetworkResponseCode(e.statusCode),!0===e.drop&&t.forEach((function(t){var n=t.eventInfo.eventName,i=t.eventInfo.topicName||n,o="rawError"in e?e.rawError:"null",s=["type: ".concat(e.type),"statusCode: ".concat(e.statusCode||"null"),"drop: ".concat(String(e.drop)),"rawError: ".concat(o)].join(", ");null==r||r.logFailedEvent(Hg.UNKNOWN_EXECUTION_ERROR,{eventName:n,topicName:i},s,t.eventBody.header.clientMonitoringInstanceEventNumber||-1)})))}}),this.networkTransporter.sendPayloadFireForget(this.host.endpoint,i,void 0,n),this.networkTransporter.sendPayload(this.host.endpoint,o,void 0,n))}}}]),e}();var Xg,Jg,Yg,Zg,$g=function(){function e(t,n){_m(this,e),this.clientBreadcrumbType=t,this.id=n}return Sm(e,[{key:"builder",get:function(){return function(){var e={},t=new Proxy({},{get:function(n,r){return"build"===r?function(){return e}:function(n){return e[r.toString()]=n,t}}});return t}().id(this.id).clientBreadcrumbType(this.clientBreadcrumbType)}}],[{key:"toPointer",value:function(e){return{id:e.id,type:e.clientBreadcrumbType}}}]),e}();function ey(e){if(!e)return{};var t=e.trk,n=!1,r=e.licu&&decodeURIComponent(e.licu);e.external_control&&(r="urn:li:externalControl:".concat(decodeURIComponent(e.external_control)),n=!0);var i=e.lipi&&function(e){var t=decodeURIComponent(e).split(";");if(t.length>1)return{pageUrn:t[0],trackingId:t[1]}}(e.lipi),o=i&&{pageInstance:i,pageKey:t}||t&&{pageKey:t};if(e.external_page&&e.external_page_instance){var 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:r}}function ty(e){return"retryConfig"in e.host}function ny(e){return e.split("").reduce((function(e,t){return(e<<5)-e+t.charCodeAt(0)|0}),0)}!function(e){e.UNKNOWN="UNKNOWN",e.ME_NOTIFICATION="ME_NOTIFICATION",e.ME_NOTIFICATION_ACTION="ME_NOTIFICATION_ACTION"}(Xg||(Xg={})),function(){function e(t,n){var r,i;if(_m(this,e),km(this,"transporter",void 0),km(this,"delegate",void 0),km(this,"currentContext",void 0),km(this,"appState",void 0),km(this,"previousAppContext",void 0),km(this,"customTransporters",void 0),km(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 Qg(this.transporter.host.api.assign(s,n.customTransporterHosts[o]))}"enabled"===(null===(r=(i=t.host).__getLixTreatment)||void 0===r?void 0:r.call(i,"pemberly.tracking.monitoring"))&&t.host.clientMonitoringConfig&&!t.host.inactive&&"location"in t.host.api&&(this.clientMonitoringConn=Gg(t.host))}Sm(e,[{key:"host",get:function(){return this.transporter.host}},{key:"checkAndEnablePersistentRetry",value:function(){ty(this.transporter)&&this.transporter.checkAndEnablePersistentRetry(this.delegate)}},{key:"flushAndClearPersistedEventsOnLogout",value:function(){this.forceFlush();var e=ty(this.transporter)?this.transporter.clearPersistedEventsOnLogout():null;return null!=e?e:this.host.api.Promise.resolve()}},{key:"getCurrentContext",value:function(){if(this.currentContext)return av(this.currentContext,this.host.api)}},{key:"navigate",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=this.navMetaFromSeed(e,ey(t));if(this.setCurrentContext(r.to),!n.suppressEventsFiring)return this.fireNavEvents(r)}},{key:"setCurrentContext",value:function(e){var t;this.currentContext=av(e,this.host.api),null===(t=this.clientMonitoringConn)||void 0===t||t.setCurrentContext(av(e,this.host.api))}},{key:"updateAppState",value:function(e){var t;this.host.api.assign(this.appState,e),null===(t=this.clientMonitoringConn)||void 0===t||t.updateAppState(e)}},{key:"fireCIE",value:function(e,t,n,r,i){return this.fireEvent("ControlInteractionEvent",(function(n){var o=ov(n.pageKey,e),s={controlTrackingId:r,controlUrn:o,interactionType:t};return i&&i(o),s}),{context:n})}},{key:"fireEvent",value:function(e,t,n,r){if(!t){var i=Fg(e),o=void 0===t?"undefined":null===t?"null":Rm(t),s='Firing tracking event "'.concat(i,'" with invalid body, you fired "').concat(o,'"');if(this.clientMonitoringConn){var a=this.clientMonitoringConn.logEventGenerated(i);this.clientMonitoringConn.logFailedEvent(Hg.MISSING_REQUIRED_PROPERTIES,e,s,a)}throw new Error(s)}var c=r||[];if(c.length>0){var l=c.map((function(e){return $g.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]:{},r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:[],i=this.generateEnvelope(e,t,n),o=r.length>0?this.addBreadcrumbsToEnvelope(i,r):i;return o}},{key:"addBreadcrumbsToEnvelope",value:function(e,t){var n=t.map((function(e){var t=e;return delete t.clientBreadcrumbType,t}));return this.host.api.assign(e,{clientBreadcrumbs:n}),e}},{key:"fireEnvelope",value:function(e){var t,n;if(null!==(t=this.delegate)&&void 0!==t&&null!==(n=t.shouldAnonymizeMemberId)&&void 0!==n&&n.call(t))if(Bg(e.id)){var r=e.id;e.id={eventName:r,topicName:r,shouldAnonymizeMemberId:!0}}else e.id.shouldAnonymizeMemberId=!0;var i=this.delegate&&this.delegate.preTransporter?this.delegate.preTransporter(e):e;if(i){var o=i.meta.transporterKey,s=o?this.customTransporters[o]:this.transporter;if(!s&&o){var a=Fg(i.id),c="Could not find custom transporter: ".concat(o);if(this.clientMonitoringConn){var l=this.clientMonitoringConn.logEventGenerated(a);this.clientMonitoringConn.logFailedEvent(Hg.UNKNOWN_EXECUTION_ERROR,i.id,c,l)}throw new Error(c)}return s.fireEvent(i)}return this.host.api.Promise.resolve(!0)}},{key:"generatePageInstance",value:function(e,t){return iv(e,t)}},{key:"firePVE",value:function(e,t,n){var r={pageType:"full",totalTime:0,trackingCode:this.getTrackingCode(),trackingInfo:{}},i=this.host.api.assign(r,t),o=this.generateEnvelope("PageViewEvent",i,{context:n});return o.meta.requestHeader.pageKey=e,this.fireEnvelope(o)}},{key:"destroy",value:function(){for(var e in this.transporter.destroy(),this.customTransporters)this.customTransporters[e].destroy();this.clientMonitoringConn&&(this.clientMonitoringConn.flush(),this.clientMonitoringConn.destroy(),this.clientMonitoringConn=void 0),mv.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 ov((t||this.currentContext||{pageKey:"unknown"}).pageKey,e)}},{key:"fireRawCIE",value:function(e,t,n,r){var i={controlTrackingId:r,controlUrn:e,interactionType:t};return{beacon:this.fireEvent("ControlInteractionEvent",i,{context:n}),controlUrn:e}}},{key:"generateNavigationEvent",value:function(e){var t=e.triggerId,n=e.triggerUrn,r=e.from;return{previousPageInstance:r&&r.pageInstance,triggerControlTrackingId:t,triggerControlUrn:n}}},{key:"getTrackingCode",value:function(){return this.previousAppContext&&this.previousAppContext.pageKey}},{key:"navMetaFromSeed",value:function(e,t){var n="NavigationEvent";this.previousAppContext=t.previousContext;var r=t.fromExternalApp?{eventName:n,topicName:"InboundNavigationEvent"}:n;return{from:t.previousContext,navEventId:r,to:{applicationInstance:t.applicationInstance,pageInstance:this.generatePageInstance(e,t.pageTrackingId),pageKey:e},triggerId:t.previousControlId,triggerUrn:t.previousControlUrn}}},{key:"fireNavEvents",value:function(e){var t=this.generateNavigationEvent(e),n=e.to,r=e.from,i=e.navEventId,o=this.generateEnvelope(i,t);o.meta.requestHeader.pageKey=n.pageKey;var s=r&&r.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]:{},r={directive:n.directive,transporterKey:n.transporterKey,context:n.context||this.currentContext&&av(this.currentContext,this.host.api),requestHeader:this.host.api.assign({trackingCode:this.getTrackingCode()},n.requestHeader||{}),header:this.host.api.assign({applicationViewerUrn:this.appState.applicationViewerUrn,clientApplicationInstance:this.appState.clientApplicationInstance},n.header||{})};return{body:"function"==typeof t?t:function(){return t},id:e,meta:r}}}])}(),function(){function e(t,n){var r,i=this;_m(this,e),km(this,"core",void 0),km(this,"protocol",void 0),km(this,"throttleKeySet",new Set),km(this,"config",void 0),km(this,"reportTransporterError",(function(e){e.reason instanceof Error||(e.reason=new Error(e.reason||"An error occurred in the transporter")),i.reportError(e.reason,e.tags.concat(["info"])).catch((function(){}))})),this.core=t;var o=this.core.host.api.location.protocol;this.protocol=o.substring(0,o.length-1),this.config={throttleTime:null!==(r=null==n?void 0:n.throttleTime)&&void 0!==r?r:100},mv.on("internal:error",this.reportTransporterError)}Sm(e,[{key:"reportError",value:function(e){var t,n=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=i.callTreeId,s=void 0===o?"":o,a=i.responseHeaders,c=void 0===a?{}:a,l=e.message,u=e.name,d=e.stack,h=void 0===d?"":d,p=e.fileName,f=void 0===p?"":p,m=e.lineNumber,v=void 0===m?0:m,g=e.columnNumber,y=void 0===g?0:g,b=this.core.host,E=b.appId,w=b.appVersion,_=b.service,T=b.serviceInstance,S=b.treeID,k=void 0===S?"":S,I=b.api,C=I.Promise,A=I.location,R=A.host,O=A.pathname,N=A.search,L=A.hash,x=void 0===L?"":L;if(c){t={};var P=new Map;Object.keys(c).forEach((function(e){P.set(e.toLowerCase(),c[e])})),t.callTreeId=P.get("x-li-uuid"),t.microsoftEdgeReference=P.get("x-msedge-ref"),t.pointOfPresenceId=P.get("x-li-pop"),t.fabric=P.get("x-li-fabric")}var M=function(){return n.core.fireEvent("JavaScriptErrorEvent",(function(e){return{appId:E,e:{c:y,l:v,m:l,s:h,t:u,u:f},h:x,l:n.protocol,o:R,p:O,pageKey:e.pageKey,q:N,service:_,serviceInstance:T,serviceVersion:w,t:r,trackingID:e.pageInstance.trackingId,treeID:k,callTreeId:s,responseTraceHeaders:t}}))};if(this.config.throttleTime<0)return M();var D=ny(u+l+h+r.join("")+s);return this.throttleKeySet.has(D)?C.resolve(!1):(this.throttleKeySet.add(D),setTimeout((function(){return n.throttleKeySet.delete(D)}),this.config.throttleTime),M())}},{key:"flush",value:function(){this.core.forceFlush()}},{key:"destroy",value:function(){this.core.destroy(),mv.off("internal:error",this.reportTransporterError)}}])}();var ry=function(){function e(){_m(this,e),km(this,"userTimingEntries",[]),km(this,"longTasks",[]),km(this,"resourceTimingEntries",[]),km(this,"cdnData",void 0)}return Sm(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(oy),cdnData:this.cdnData}}}]),e}(),iy=["resourceTreeId","name","entryType","startTime","duration","initiatorType","nextHopProtocol","redirectStart","redirectEnd","fetchStart","domainLookupStart","domainLookupEnd","connectStart","connectEnd","secureConnectionStart","requestStart","responseStart","responseEnd","transferSize","encodedBodySize","decodedBodySize","workerStart"];function oy(e){return iy.reduce((function(t,n){var r=e[n];return void 0!==r&&(t[n]=r),t}),{})}function sy(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};Yg=Object.assign(Object.assign({},n),t),Zg=function(e,t){return e.nodeType===Node.DOCUMENT_NODE?e:e===t.root?e.ownerDocument:e}(Yg.root,n);var r=ay(e,Jg.All,(function(){return ay(e,Jg.Two,(function(){return ay(e,Jg.One)}))}));if(r){var i=vy(function e(t,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{counter:0,visited:new Map},i=[];if(t.length>2&&t.length>Yg.optimizedMinLength)for(var o=1;o<t.length-1;o++){if(r.counter>Yg.maxNumberOfTries)return i;r.counter+=1;var s=Im(t);s.splice(o,1);var a=ly(s);if(r.visited.has(a))return i;dy(s)&&gy(s,n)&&(i.push(s),r.visited.set(a,!0),i=i.concat(e(s,n,r)))}return i}(r,e));return i.length>0&&(r=i[0]),ly(r)}throw new Error("Selector was not found.")}function ay(e,t,n){for(var r=null,i=[],o=e,s=0,a=function(){var e=fy(function(e){var t=e.getAttribute("id");return t&&Yg.idName(t)?{name:"#"+Ty(t,{isIdentifier:!0}),penalty:0}:null}(o))||fy.apply(void 0,Im(function(e){return Array.from(e.attributes).filter((function(e){return Yg.attr(e.name,e.value)})).map((function(e){return{name:"["+Ty(e.name,{isIdentifier:!0})+'="'+Ty(e.value)+'"]',penalty:.5}}))}(o)))||fy.apply(void 0,Im(function(e){return Array.from(e.classList).filter(Yg.className).map((function(e){return{name:"."+Ty(e,{isIdentifier:!0}),penalty:1}}))}(o)))||fy(function(e){var t=e.tagName.toLowerCase();return Yg.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 r=0;n&&(n.nodeType===Node.ELEMENT_NODE&&r++,n!==e);)n=n.nextSibling;return r}(o);if(t===Jg.All)a&&(e=e.concat(e.filter(py).map((function(e){return hy(e,a)}))));else if(t===Jg.Two)e=e.slice(0,1),a&&(e=e.concat(e.filter(py).map((function(e){return hy(e,a)}))));else if(t===Jg.One){var c=function(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o=[],s=!0,a=!1;try{for(n=n.call(e);!(s=(r=n.next()).done)&&(o.push(r.value),!t||o.length!==t);s=!0);}catch(e){a=!0,i=e}finally{try{s||null==n.return||n.return()}finally{if(a)throw i}}return o}}(e,t)||Cm(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(e=e.slice(0,1),1)[0];a&&py(c)&&(e=[hy(c,a)])}var l,u=wm(e);try{for(u.s();!(l=u.n()).done;)l.value.level=s}catch(e){u.e(e)}finally{u.f()}if(i.push(e),i.length>=Yg.seedMinLength&&(r=cy(i,n)))return"break";o=o.parentElement,s++};o&&o!==Yg.root.parentElement&&"break"!==a(););return r||(r=cy(i,n)),r}function cy(e,t){var n=vy(function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];if(t.length>0){var r,i=[],o=wm(t[0]);try{for(o.s();!(r=o.n()).done;){var s=r.value;i=i.concat(e(t.slice(1,t.length),n.concat(s)))}}catch(t){o.e(t)}finally{o.f()}return i}return[n]}(e));if(n.length>Yg.threshold)return t?t():null;var r,i=wm(n);try{for(i.s();!(r=i.n()).done;){var o=r.value;if(dy(o))return o}}catch(e){i.e(e)}finally{i.f()}return null}function ly(e){for(var t=e[0],n=t.name,r=1;r<e.length;r++){var i=e[r].level||0;n=t.level===i-1?"".concat(e[r].name," > ").concat(n):"".concat(e[r].name," ").concat(n),t=e[r]}return n}function uy(e){return e.map((function(e){return e.penalty})).reduce((function(e,t){return e+t}),0)}function dy(e){switch(Zg.querySelectorAll(ly(e)).length){case 0:throw new Error("Can't select any node with this selector: ".concat(ly(e)));case 1:return!0;default:return!1}}function hy(e,t){return{name:e.name+":nth-child(".concat(t,")"),penalty:e.penalty+1}}function py(e){return"html"!==e.name&&!e.name.startsWith("#")}function fy(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=t.filter(my);return r.length>0?r:null}function my(e){return null!=e}function vy(e){return Array.from(e).sort((function(e,t){return uy(e)-uy(t)}))}function gy(e,t){return Zg.querySelector(ly(e))===t}!function(e){e[e.All=0]="All",e[e.Two=1]="Two",e[e.One=2]="One"}(Jg||(Jg={}));var yy,by=/[ -,\.\/:-@\[-\^`\{-~]/,Ey=/[ -,\.\/:-@\[\]\^`\{-~]/,wy=/(^|\\+)?(\\[A-F0-9]{1,6})\x20(?![a-fA-F0-9\x20])/g,_y={escapeEverything:!1,isIdentifier:!1,quotes:"single",wrap:!1};function Ty(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=Object.assign(Object.assign({},_y),t);"single"!=n.quotes&&"double"!=n.quotes&&(n.quotes="single");for(var r="double"==n.quotes?'"':"'",i=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?by.test(l)?"\\"+l:"\\"+u.toString(16).toUpperCase()+" ":/[\t\n\f\r\x0B]/.test(l)?"\\"+u.toString(16).toUpperCase()+" ":"\\"==l||!i&&('"'==l&&r==l||"'"==l&&r==l)||i&&Ey.test(l)?"\\"+l:l;s+=d}return i&&(/^-[-\d]/.test(s)?s="\\-"+s.slice(1):/\d/.test(o)&&(s="\\3"+o+" "+s.slice(1))),s=s.replace(wy,(function(e,t,n){return t&&t.length%2?e:(t||"")+n})),!i&&n.wrap?r+s+r:s}function Sy(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(e&&"function"==typeof e.now&&(e.timeOrigin||e.timing)){var n,r=e.now();return n=!e.timing&&t?Math.floor(e.timeOrigin):e.timing.navigationStart,Math.round(r+n)}return Date.now()}function ky(e){var t=e||performance;return Math.round(t.now())}function Iy(e){if(!e)return"null";if(e.nodeType===Node.ELEMENT_NODE)try{return sy(e,{idName:function(e){return 0!==e.indexOf("ember")}})}catch(e){return"serialization_error"}var t=Iy(e.parentElement||void 0);return"".concat(t," > nodeType(").concat(e.nodeType,")")}function Cy(e,t,n){var r=[];return e&&"function"==typeof e.getEntriesByType&&(t["user-timing-measure-enabled"]&&e.getEntriesByType("measure").forEach((function(e){r.push({entryType:"MEASURE",name:e.name,startTime:e.startTime,duration:e.duration})})),t["user-timing-mark-enabled"]&&e.getEntriesByType("mark").forEach((function(e){r.push({entryType:"MARK",name:e.name,startTime:e.startTime,duration:e.duration})})),n&&(e.clearMeasures(),e.clearMarks())),r}function Ay(e){var t=[];return e.forEach((function(e){return t.push(e)})),t}var Ry,Oy=function(){function e(t){_m(this,e),km(this,"hostApis",void 0),km(this,"hostnameProperties",void 0),km(this,"usedHostnames",void 0),km(this,"abortController",void 0),km(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 Sm(e,[{key:"clearUsedHostnames",value:function(){this.usedHostnames=new Set}},{key:"getPresentData",value:function(){var e=this;return lv(this.usedHostnames).map((function(t){return e.hostnameProperties[t]||{hostname:t,provider:"",ipVersion:"",httpVersion:""}}))}},{key:"getDataWhenReady",value:function(e){var t=this,n=this.hostApis,r=n.AbortController,i=n.Promise,o=cv(lv(this.pendingPromises),i),s=setTimeout((function(){t.abortController.abort(),t.abortController=new r}),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,r,i=this.hostApis.assign,o=(n=e.name,r=this.hostApis.document,(yy=yy||r.createElement("a")).href=n,yy.hostname);if(this.usedHostnames.add(o),!this.hostnameProperties[o]&&!this.isResourcePossiblyFromCache(e)){var s=this.fetchCdnFromUrl(e.name).then((function(e){var n=i({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}(),Ny=function(){function e(t,n,r,i){_m(this,e),km(this,"hostApis",void 0),km(this,"statics",void 0),km(this,"options",void 0),km(this,"allowTimingOrigin",void 0),km(this,"collectResourceTimings",void 0),km(this,"collectCdnData",void 0),km(this,"perfObserver",void 0),km(this,"renderTimings",new Map),km(this,"urlToTreeId",new Map),km(this,"cdnDataProvider",void 0),km(this,"observables",new ry),this.hostApis=t,this.statics=n,this.options=r,this.allowTimingOrigin=i,this.collectResourceTimings=r["enable-rs-timing"],this.collectCdnData=r["enable-cdn-tracking"],this.collectCdnData&&(this.cdnDataProvider=new Oy(t))}return Sm(e,[{key:"recordTreeId",value:function(e,t){this.collectResourceTimings&&this.urlToTreeId.set(function(e,t){return(yy=yy||t.createElement("a")).href=e,yy.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:Sy(this.hostApis.performance,this.allowTimingOrigin)})}},{key:"recordRenderEnd",value:function(e){var t=this.renderTimings.get(e);t&&(t.renderEnd=t.renderEnd||Sy(this.hostApis.performance,this.allowTimingOrigin))}},{key:"startObserving",value:function(){var e=this.hostApis,t=e.PerformanceObserver,n=e.performance;this.stopObserving(),t?this.setupPerformanceObserver(t):this.collectResourceTimings&&this.emulateResourceTimingObserver(n),this.collectResourceTimings&&this.processNewResourceTimings()}},{key:"stopObserving",value:function(){var e;null===(e=this.perfObserver)||void 0===e||e.disconnect(),this.reset()}},{key:"collect",value:function(e){var t=this,n=e.isInitial,r=e.immediate,i=this.collectSynchronousData(n);if(r)return i;var o=this.collectAsynchronousData();return"then"in o?o.then((function(e){return(0,t.hostApis.assign)(i,e),i})):i}},{key:"reset",value:function(){var e;this.observables.reset(),null===(e=this.cdnDataProvider)||void 0===e||e.clearUsedHostnames()}},{key:"collectSynchronousData",value:function(e){var t=this.hostApis,n=t.assign,r=t.PerformanceObserver,i=Object.create(null);return this.statics.pageLoadMode=e?"INITIAL":"PARTIAL",r||(this.observables.userTimingEntries=Cy(this.hostApis.performance,this.options,!0),this.collectResourceTimings&&this.processNewResourceTimings()),this.observables.attachTreeIds(this.urlToTreeId),this.urlToTreeId.clear(),n(i,this.observables.getData(),this.snapshot,this.statics),e&&n(i,function(e){if(!e)return{navigationTimingApi:!1};var t=Object.create({});if("function"==typeof e.getEntriesByType){var n=e.getEntriesByType("navigation")[0];n&&(["fetchStart","responseEnd","decodedBodySize","encodedBodySize","transferSize"].every((function(e){return"number"==typeof n[e]}))&&(t.htmlMetrics={htmlFetchStart:n.fetchStart,htmlResponseEnd:n.responseEnd,htmlDecodedBodySize:n.decodedBodySize,htmlEncodedBodySize:n.encodedBodySize,htmlTransferSize:n.transferSize}),t.workerStart=n.workerStart)}var r=e.timing,i=e.navigation;return r&&i?(t.navigationTimingApi=!0,Ly.forEach((function(e){e in r&&(t[e]=r[e])})),t.navigationType=i.type,t.redirectCount=i.redirectCount):t.navigationTimingApi=!1,t}(this.hostApis.performance)),n(i,this.collectAsynchronousData(!0)),i}},{key:"collectAsynchronousData",value:function(e){var t=this,n={cdnData:[],usedCDN:this.extractUsedCDN([])};if(e){if(this.collectCdnData){var r=this.cdnDataProvider.getPresentData();n.cdnData=r,n.usedCDN=this.extractUsedCDN(r)}return n}var i=[];return this.collectCdnData&&i.push(this.cdnDataProvider.getDataWhenReady(this.options["async-plugins-timeout"]).then((function(e){n.cdnData=e,n.usedCDN=t.extractUsedCDN(e)}))),i.length>0?cv(i,Promise).then((function(){return n})):n}},{key:"setupPerformanceObserver",value:function(e){var t=this;this.perfObserver=new e((function(e){e.getEntries().forEach((function(e){var n=e.entryType,r=e.name,i=e.startTime,o=e.duration;"resource"===n?t.processSingleResourceTiming(e):"mark"===n?t.observables.userTimingEntries.push({entryType:"MARK",name:r,startTime:i,duration:o}):"measure"===n?t.observables.userTimingEntries.push({entryType:"MEASURE",name:r,startTime:i,duration:o}):"longtask"===n&&t.observables.longTasks.push({duration:o,name:r,startTime:i})}))})),this.observables.userTimingEntries=Cy(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:Ay(this.renderTimings),networkInformationMetrics:xy(this.hostApis.connection)};return this.renderTimings.clear(),e}}]),e}(),Ly=["loadEventEnd","loadEventStart","domComplete","domContentLoadedEventEnd","domContentLoadedEventStart","domInteractive","domLoading","responseEnd","responseStart","requestStart","secureConnectionStart","connectEnd","connectStart","domainLookupEnd","domainLookupStart","fetchStart","redirectEnd","redirectStart","unloadEventEnd","unloadEventStart","navigationStart"];function xy(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"}(Ry||(Ry={}));var Py=(km(Em={},"web-ui-framework","EMBER"),km(Em,"app-id","linkedin.rum.tracking"),km(Em,"app-version","unknown"),km(Em,"is-single-page-app",!0),km(Em,"user-timing-mark-enabled",!1),km(Em,"user-timing-measure-enabled",!0),km(Em,"beacon-source","apps"),km(Em,"enable-rs-timing",!0),km(Em,"enable-cdn-tracking",!1),km(Em,"async-plugins-timeout",5e3),km(Em,"beacon-timeout",3e4),km(Em,"enable-memory-measurement",!1),km(Em,"pageKeyPrefix",""),Em),My=function(){function e(t,n,r){_m(this,e),km(this,"featureName",void 0),km(this,"trackingCore",void 0),km(this,"rumConfig",void 0),km(this,"observing",!1),km(this,"basePageTreeId",void 0),km(this,"startPageInstance",void 0),km(this,"startMemory",void 0),km(this,"reportTimeouts",[]),this.featureName=t,this.trackingCore=n,this.rumConfig=r}return Sm(e,[{key:"startObserving",value:function(){var t,n=this,r=this.getMemory();r&&!this.observing&&(this.basePageTreeId=this.trackingCore.host.treeID||"",this.startPageInstance=(null===(t=this.trackingCore.getCurrentContext())||void 0===t?void 0:t.pageInstance)||iv("unknown"),this.startMemory=r,this.reportTimeouts=e.checkpoints.map((function(e){return setTimeout((function(){return n.reportMemory(e)}),60*e*1e3)})))}},{key:"stopObserving",value:function(){this.reportTimeouts.forEach((function(e){return clearTimeout(e)})),this.observing=!1}},{key:"reportMemory",value:function(e){var t={name:this.featureName,basePageTreeId:this.basePageTreeId,startTime:ky(this.trackingCore.host.api.performance),duration:0,startPageInstance:this.startPageInstance,marks:this.createMemoryMarks("-".concat(e,"min")),spans:[]};this.trackingCore.fireEvent({appId:this.rumConfig["app-id"],eventName:"FeaturePerformanceMeasurementEvent"},t)}},{key:"createMemoryMarks",value:function(e){var t=this.getMemory(),n=["jsHeapSizeLimit","totalJSHeapSize","usedJSHeapSize"].map((function(n){return{name:n+e,startTime:t[n]}})),r=t.usedJSHeapSize-this.startMemory.usedJSHeapSize;return n.push({name:(r<0?"usedJSHeapSizeDecrease":"usedJSHeapSizeIncrease")+e,startTime:Math.abs(r)},{name:"utilization"+e,startTime:Math.round(t.usedJSHeapSize/t.totalJSHeapSize*100)}),n}},{key:"getMemory",value:function(){return this.trackingCore.host.api.performance.memory}}]),e}();km(My,"checkpoints",[1,3,10,30,90,180,300]);var Dy,Uy,By,Fy,qy,jy=Sm((function e(t,n,r){_m(this,e),km(this,"webUIFramework",void 0),km(this,"timeSource",void 0),km(this,"isSinglePageApp",void 0),km(this,"appRenderMode",void 0),km(this,"isAppRenderFailed",void 0),km(this,"pageLoadMode","INITIAL"),km(this,"isSSL",void 0),km(this,"treeId",void 0),km(this,"isFromServiceWorker",void 0),this.webUIFramework=n["web-ui-framework"],this.timeSource=n["beacon-source"],this.isSinglePageApp=n["is-single-page-app"],this.appRenderMode=t["app-render-mode"],this.isAppRenderFailed=t["is-app-render-failed"],this.isSSL="https:"===r.api.location.protocol?1:0,this.treeId=r.treeID,this.isFromServiceWorker=r.isFromServiceWorker})),Hy=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)}},zy=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){}},Gy=function(e,t){var n=function n(r){"pagehide"!==r.type&&"hidden"!==document.visibilityState||(e(r),t&&(removeEventListener("visibilitychange",n,!0),removeEventListener("pagehide",n,!0)))};addEventListener("visibilitychange",n,!0),addEventListener("pagehide",n,!0)},Wy=function(e){addEventListener("pageshow",(function(t){t.persisted&&e(t)}),!0)},Ky=function(e,t,n){var r;return function(i){t.value>=0&&(i||n)&&(t.delta=t.value-(r||0),(t.delta||void 0===r)&&(r=t.value,e(t)))}},Vy=-1,Qy=function(){return"hidden"===document.visibilityState?0:1/0},Xy=function(){Gy((function(e){var t=e.timeStamp;Vy=t}),!0)},Jy=function(){return Vy<0&&(Vy=Qy(),Xy(),Wy((function(){setTimeout((function(){Vy=Qy(),Xy()}),0)}))),{get firstHiddenTime(){return Vy}}},Yy=!1,Zy=-1,$y=function(e,t){Yy||(function(e,t){var n,r=Jy(),i=Hy("FCP"),o=function(e){"first-contentful-paint"===e.name&&(a&&a.disconnect(),e.startTime<r.firstHiddenTime&&(i.value=e.startTime,i.entries.push(e),n(!0)))},s=window.performance&&performance.getEntriesByName&&performance.getEntriesByName("first-contentful-paint")[0],a=s?null:zy("paint",o);(s||a)&&(n=Ky(e,i,t),s&&o(s),Wy((function(r){i=Hy("FCP"),n=Ky(e,i,t),requestAnimationFrame((function(){requestAnimationFrame((function(){i.value=performance.now()-r.timeStamp,n(!0)}))}))})))}((function(e){Zy=e.value})),Yy=!0);var n,r=function(t){Zy>-1&&e(t)},i=Hy("CLS",0),o=0,s=[],a=function(e){if(!e.hadRecentInput){var t=s[0],r=s[s.length-1];o&&e.startTime-r.startTime<1e3&&e.startTime-t.startTime<5e3?(o+=e.value,s.push(e)):(o=e.value,s=[e]),o>i.value&&(i.value=o,i.entries=s,n())}},c=zy("layout-shift",a);c&&(n=Ky(r,i,t),Gy((function(){c.takeRecords().map(a),n(!0)})),Wy((function(){o=0,Zy=-1,i=Hy("CLS",0),n=Ky(r,i,t)})))},eb={passive:!0,capture:!0},tb=new Date,nb=function(e,t){Dy||(Dy=t,Uy=e,By=new Date,ob(removeEventListener),rb())},rb=function(){if(Uy>=0&&Uy<By-tb){var e={entryType:"first-input",name:Dy.type,target:Dy.target,cancelable:Dy.cancelable,startTime:Dy.timeStamp,processingStart:Dy.timeStamp+Uy};Fy.forEach((function(t){t(e)})),Fy=[]}},ib=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(){nb(e,t),i()},r=function(){i()},i=function(){removeEventListener("pointerup",n,eb),removeEventListener("pointercancel",r,eb)};addEventListener("pointerup",n,eb),addEventListener("pointercancel",r,eb)}(t,e):nb(t,e)}},ob=function(e){["mousedown","keydown","touchstart","pointerdown"].forEach((function(t){return e(t,ib,eb)}))},sb=function(e,t){var n,r=Jy(),i=Hy("FID"),o=function(e){e.startTime<r.firstHiddenTime&&(i.value=e.processingStart-e.startTime,i.entries.push(e),n(!0))},s=zy("first-input",o);n=Ky(e,i,t),s&&Gy((function(){s.takeRecords().map(o),s.disconnect()}),!0),s&&Wy((function(){var r;i=Hy("FID"),n=Ky(e,i,t),Fy=[],Uy=-1,Dy=null,ob(addEventListener),r=o,Fy.push(r),rb()}))},ab={},cb=function(e,t){var n,r=Jy(),i=Hy("LCP"),o=function(e){var t=e.startTime;t<r.firstHiddenTime&&(i.value=t,i.entries.push(e)),n()},s=zy("largest-contentful-paint",o);if(s){n=Ky(e,i,t);var a=function(){ab[i.id]||(s.takeRecords().map(o),s.disconnect(),ab[i.id]=!0,n(!0))};["keydown","click"].forEach((function(e){addEventListener(e,a,{once:!0,capture:!0})})),Gy(a,!0),Wy((function(r){i=Hy("LCP"),n=Ky(e,i,t),requestAnimationFrame((function(){requestAnimationFrame((function(){i.value=performance.now()-r.timeStamp,ab[i.id]=!0,n(!0)}))}))}))}},lb=["LCP","FID","CLS"],ub={LCP:"LargestContentfulPaint",FID:"FirstInputDelay",CLS:"CumulativeLayoutShift"},db={},hb=function(){var e;if(!Og)return"";var t=window.performance,n=void 0;if("function"==typeof(null==t?void 0:t.getEntriesByType)){var r,i=null===(r=window.performance)||void 0===r?void 0:r.getEntriesByType("navigation");(null==i?void 0:i.length)>0&&(n=i[0])}return(null===(e=n)||void 0===e?void 0:e.name)||window.location.href}(),pb=!1,fb=[],mb={LCP:"largest-contentful-paint",FID:"first-input",CLS:"layout-shift"};function vb(){var e=!0===window.__test__resetWebVitalsState;if(!pb||e){e&&(fb=[]),lb.forEach(gb);var t=Symbol();qy=t,[cb,sb,$y].forEach((function(e){return e(yb.bind(null,t),!0)})),[cb,sb,$y].forEach((function(e){return e(bb.bind(null,t))})),pb=!0}}function gb(e){db[e]={name:e,value:-1,updateHistory:[]};var t=mb[e];"undefined"!=typeof PerformanceObserver&&void 0!==PerformanceObserver.supportedEntryTypes&&"string"==typeof t&&PerformanceObserver.supportedEntryTypes.indexOf(t)>-1||(db[e].value=-2)}function yb(e,t){if(e===qy){var n=db[t.name],r=ky();n&&(n.updateHistory.push({time:r,data:t}),n.value=t.value),fb.forEach((function(e){return e(t,r,!1)}))}}function bb(e,t){e===qy&&fb.forEach((function(e){return e(t,ky(),!0)}))}var Eb=function(){function e(t,n){_m(this,e),km(this,"basePageTreeId",void 0),km(this,"basePageKey",void 0),km(this,"observing",!1),km(this,"appContextMap",new Map),km(this,"rumConfig",void 0),km(this,"trackingCore",void 0),this.trackingCore=t,this.rumConfig=n}return Sm(e,[{key:"startObserving",value:function(){var e,t,n=this;vb(),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",lb.forEach((function(e){var t;-2===(null===(t=db[e])||void 0===t?void 0:t.value)&&n.reportMetric(e)})),t=this.onMetricUpdate.bind(this),fb.push(t))}},{key:"stopObserving",value:function(){this.observing=!1}},{key:"onMetricUpdate",value:function(e,t,n){var r;this.observing&&(n?this.reportMetric(e.name):this.appContextMap.set(t,{time:t,url:location.href,pageKey:null===(r=this.trackingCore.getCurrentContext())||void 0===r?void 0:r.pageKey}))}},{key:"reportMetric",value:function(e){var t=db[e],n={name:ub[e]||e};"CLS"===e?n.doubleValue=t.value:n.longValue=Math.round(t.value);var r=db[e];if(r){var i=function(e,t,n,r,i){var o={basePageTreeId:e,basePageKey:t,basePageUrl:hb},s=null;switch(n.name){case"LCP":s=function(e,t){var n;if(0===e.updateHistory.length)return null;var r=e.updateHistory[e.updateHistory.length-1],i=r.data.entries,o=i[i.length-1],s={pageKey:(null===(n=t.get(r.time))||void 0===n?void 0:n.pageKey)||"_unknown",element:Iy(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,r);break;case"FID":s=function(e,t){var n;if(0===e.updateHistory.length)return null;var r=e.updateHistory[e.updateHistory.length-1],i=r.data.entries,o=i[i.length-1];return{pageKey:(null===(n=t.get(r.time))||void 0===n?void 0:n.pageKey)||"_unknown",processingStart:Math.round(o.processingStart),processingEnd:Math.round(o.processingEnd),target:Iy(o.target)}}(n,r);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 r=n.reduce((function(e,t){return e&&e.value>t.value?e:t})),i=e.updateHistory.find((function(e){return e.data.entries.includes(r)})),o=null;r&&r.sources&&r.sources.length&&(o=r.sources.reduce((function(e,t){return e.node&&e.previousRect.width*e.previousRect.height>t.previousRect.width*t.previousRect.height?e:t})));var s,a=t.get(i.time);return o&&a?{shiftCount:n.length,"largestShift.value":r.value,"largestShift.hadRecentInput":r.hadRecentInput,"largestShift.largestSource.node":Iy(null===(s=o)||void 0===s?void 0:s.node),"largestShift.pageKey":a.pageKey||"_unknown","largestShift.url":a.url,"largestShift.startTime":Math.round(r.startTime)}:null}(n,r)}if(s){var a={};return i(a,o,s),a}return o}(this.basePageTreeId,this.basePageKey,r,this.appContextMap,this.trackingCore.host.api.assign);n.metadata=function(e){var t={};return Object.keys(e).forEach((function(n){var r=e[n];t[n]="string"==typeof r?r:JSON.stringify(r)})),t}(i)}var o={scope:{scopeType:"APPLICATION_INSTANCE",scopeKey:this.basePageTreeId},metrics:[n]};this.trackingCore.fireEvent({appId:this.rumConfig["app-id"],eventName:"ClientPerfMetricsEvent"},o)}}]),e}();!function(){function e(t,n,r){var i,o;_m(this,e),km(this,"core",void 0),km(this,"config",void 0),km(this,"collector",void 0),km(this,"boomerangStart",-1),km(this,"webVitalsObserver",void 0),km(this,"appMemoryObserver",void 0),km(this,"pageMemoryObserver",void 0),km(this,"liveTokens",new Set),km(this,"stateWM",new WeakMap),km(this,"activeToken",void 0),km(this,"isInitial",void 0),km(this,"beforeHideHandlerBound",this.beforeHideHandler.bind(this)),this.core=r,this.config=function(e,t){for(var n in e)void 0!==t[n]&&(e[n]=t[n]);return e}(r.host.api.assign({},Py),n);var s="enabled"===(null===(i=(o=this.core.host).__getLixTreatment)||void 0===i?void 0:i.call(o,"pemberly.tracking.time-origin-epoch-time"));this.collector=new Ny(r.host.api,new jy(t,this.config,r.host),this.config,s),this.collector.startObserving(),mv.before("internal:hide",this.beforeHideHandlerBound)}Sm(e,[{key:"pingCDN",value:function(){}},{key:"recordTreeId",value:function(e,t){e&&this.collector.recordTreeId(e,t)}},{key:"recordRenderStart",value:function(e,t){this.collector.recordRenderStart(e,t||e)}},{key:"recordRenderEnd",value:function(e){this.collector.recordRenderEnd(e)}},{key:"start",value:function(){var e,t,n,r;this.activeToken&&this.abort(this.activeToken),this.flushEndedSessions(),this.isInitial=void 0===this.isInitial,this.isInitial||this.collector.reset();var i,o=Object.create(null),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:Sy(this.core.host.api.performance,s)}),(this.config["enable-memory-measurement"]||"enabled"===(null===(n=(r=this.core.host).__getLixTreatment)||void 0===n?void 0:n.call(r,"pemberly.tracking.rum-memory-measurement")))&&(null===(i=this.pageMemoryObserver)||void 0===i||i.stopObserving(),this.pageMemoryObserver=new My("page-memory",this.core,this.config),this.pageMemoryObserver.startObserving(),void 0===this.appMemoryObserver&&(this.appMemoryObserver=new My("application-memory",this.core,this.config),this.appMemoryObserver.startObserving())),o}},{key:"observeWebVitals",value:function(){void 0===this.webVitalsObserver&&(this.webVitalsObserver=new Eb(this.core,this.config),this.webVitalsObserver.startObserving())}},{key:"end",value:function(e){var t,n,r=this,i=arguments.length>1&&void 0!==arguments[1]&&arguments[1],o=arguments.length>2?arguments[2]:void 0;if(e&&this.activeToken&&this.activeToken===e){var 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=Sy(this.core.host.api.performance,a);s.endProps={renderCompleteTime:c,isImpactedByHiddenWindow:i,rumKey:o};var l=this.activeToken;s.fireRumEventTimeout=setTimeout((function(){var e=r.collector.collect({isInitial:s.isInitial});"then"in e?e.then((function(e){r.fireRumEvent(e,l)})):r.fireRumEvent(e,l)}),this.config["beacon-timeout"]),this.activeToken=void 0}else mv.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;mv.offBefore("internal:hide",this.beforeHideHandlerBound),this.activeToken&&this.abort(this.activeToken),this.flushEndedSessions(),this.collector.stopObserving(),null===(e=this.webVitalsObserver)||void 0===e||e.stopObserving(),null===(t=this.appMemoryObserver)||void 0===t||t.stopObserving(),null===(n=this.pageMemoryObserver)||void 0===n||n.stopObserving(),this.core.destroy()}},{key:"abort",value:function(e){var t;if(!e||this.activeToken!==e)throw new Error("RUM abort: rum token passed is invalid");if(null!==(t=this.stateWM.get(e))&&void 0!==t&&t.endProps)throw new Error("RUM abort: Can't abort a session that was already ended");this.activeToken=void 0,this.stateWM.delete(e),this.liveTokens.delete(e)}},{key:"flushEndedSessions",value:function(){var e=this;this.liveTokens.forEach((function(t){var n=e.stateWM.get(t);if(n.endProps){var r=e.collector.collect({isInitial:n.isInitial,immediate:!0});e.fireRumEvent(r,t)}}))}},{key:"fireRumEvent",value:function(e,t){if(this.stateWM.get(t)){var n=this.core.host.api.assign,r=this.stateWM.get(t),i=r.startTime,o=r.endProps;if(o){var s=o.renderCompleteTime,a=o.isImpactedByHiddenWindow,c=o.rumKey,l=this.boomerangStart=e.navigationStart||this.boomerangStart,u=e.navigationStart||i,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)})),r.fireRumEventTimeout&&clearTimeout(r.fireRumEventTimeout),this.liveTokens.delete(t),this.stateWM.delete(t)}else this.abort(t)}}},{key:"beforeHideHandler",value:function(){this.flushEndedSessions()}}])}();var wb="undefined"!=typeof window&&"undefined"!=typeof performance,_b="undefined"!=typeof location&&-1!==location.search.indexOf("_LI_MEASURE_DEBUG");function Tb(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"ajax",n=arguments.length>2?arguments[2]:void 0;e.fireTrackingEvent("PageViewEvent",Sb(n,t))}function Sb(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"ajax";const n=Ff(document),r=qf(document),i=bm();let o={};return i&&(o.theme=i.toUpperCase()),r&&(o.interfaceLocale=r),e&&(o.pageKey=e),{header:{},requestHeader:o,pageType:t,trackingInfo:{clientTimestamp:Date.now(),pageTag:n}}}function kb(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)}!function(){function e(t,n){_m(this,e),km(this,"featureKey",void 0),km(this,"productName",void 0),km(this,"endPageInstance",void 0),km(this,"startPageInstance",void 0),km(this,"isCanceled",!1),km(this,"featureIdentifier",void 0),km(this,"name",void 0),km(this,"startTime",void 0),km(this,"duration",void 0),km(this,"marks",[]),km(this,"spanStarts",new Map),km(this,"spans",[]),km(this,"isSpanContainer",!1),km(this,"basePageTreeId",void 0),km(this,"isClosed",!1),this.featureKey=t,this.productName=n;var r=n?"::".concat(n):"";this.featureIdentifier="".concat(t).concat(r),this.name=t}Sm(e,[{key:"start",value:function(e){this.startPageInstance=e,wb&&(this.startTime=ky(),_b&&performance.mark("LI:".concat(this.featureIdentifier,"-start")))}},{key:"mark",value:function(e){wb&&(this.marks.push({name:e,startTime:ky()}),_b&&(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){wb&&(this.spanStarts.set(e,ky()),_b&&performance.mark("LI:".concat(this.featureIdentifier,"-span-").concat(e,"-start")))}},{key:"spanEnd",value:function(e,t){if(wb&&this.spanStarts.has(e)){var n=this.spanStarts.get(e);this.spans.push({name:t||e,startTime:n,duration:ky()-n}),_b&&(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,wb&&(this.duration=ky()-this.startTime,_b&&!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(wb){var e={name:this.featureKey,startTime:this.startTime,duration:this.isSpanContainer?-1:this.duration,basePageTreeId:this.basePageTreeId,startPageInstance:this.startPageInstance||iv("unknown"),marks:this.marks,spans:this.spans};return this.productName&&(e.productName=this.productName),e}}},{key:"check",value:function(){if(wb){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()}}])}();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 Ib(e){return e.scrollHeight>e.offsetHeight}function Cb(e,t){const n=Qf(e);for(let e=0;e<n.length;e++)n[e]&&1===n[e].nodeType&&t(n[e])}function Ab(e){Ob([e])}function Rb(e){Nb([e])}function Ob(e){Cb(e,e=>{e.classList.add("hidden"),e.setAttribute("aria-hidden","true")})}function Nb(e){Cb(e,e=>{e.classList.remove("hidden"),e.setAttribute("aria-hidden","false")})}function Lb(e){null==e||e.setAttribute("disabled","disabled"),null==e||e.setAttribute("aria-disabled","true")}function xb(e){null==e||e.removeAttribute("disabled"),null==e||e.removeAttribute("aria-disabled")}function Pb(){const e=document.querySelector('meta[name="pillar"]');return e?e.getAttribute("content"):""}const Mb={EFFECTIVE_CONNECTION_TYPE:"x-effective-connection-type"};function Db(){const e=navigator.connection||navigator.mozConnection||navigator.webkitConnection;return e&&e.effectiveType}function Ub(e){let t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const r=Bf(document),i=Db();return window.tracking.then(o=>(t=o.generateTrackingId(),cm(e,mm(mm({},n),{},{method:n.method||"GET",postData:"POST"===n.method&&n.postData?JSON.stringify(n.postData):null,headers:{"content-type":"application/json",[Mb.EFFECTIVE_CONNECTION_TYPE]:i,"X-Requested-With":"XMLHttpRequest","x-tracking-id":t,"x-referer-pagekey":r,"X-li-page-instance":"urn:li:page:".concat(r,";").concat(t)}}))))}function Bb(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:document;const r=null==n?void 0:n.querySelector(".".concat(e));if(r&&Ib(r)){const i=n.querySelector(t);null==i||i.classList.remove("invisible"),null==i||i.addEventListener("click",()=>{r.classList.remove(e),i.classList.add("invisible")})}}class Fb{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 qb=["class","disabled","style","tabindex","type"];class jb{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 Fb(this._container)}init(){this._observer.observe(this._container,{attributeFilter:qb,attributes:!0,childList:!0,subtree:!0}),this._setFirstAndLastFocusableEls(this._container),this._container.addEventListener("keydown",this._handleKeyDown),this._backgroundNavigationDisabler.disableBackground()}tearDown(){this._observer.disconnect(),this._container.removeEventListener("keydown",this._handleKeyDown),this._backgroundNavigationDisabler.enableBackground()}_focusTrap(e){const{key:t,target:n}=e,r=Gf(t),i=r===Hf.TAB&&e.shiftKey;!i&&r===Hf.TAB&&n===this.lastFocusableEl?(this.firstFocusableEl.focus(),e.preventDefault()):i&&n===this.firstFocusableEl&&(this.lastFocusableEl.focus(),e.preventDefault())}_setFirstAndLastFocusableEls(e){const[t,n]=this._getFirstAndLastFocusableEls(e);this.firstFocusableEl=t,this.lastFocusableEl=n,setTimeout(()=>{this._hasFocusBeenDropped()&&("-1"===e.getAttribute("tabindex")?e.focus():this.firstFocusableEl.focus())},100)}_hasFocusBeenDropped(){const e=document.activeElement;return!e||e===document.body}_getFirstAndLastFocusableEls(e){const t=[...e.querySelectorAll(rm)],n=new Map;let r,i,o=0,s=t.length-1;for(;(!r||!i)&&o<=s;){if(!r){const i=t[o];r=om(i,e,n)&&i,o++}if(!i){const r=t[s];i=om(r,e,n)&&r,s--}}return i=i||r,[r,i]}}const{ENTER:Hb,ESCAPE:zb}=Hf;class Gb{constructor(e){let{enablePageViewTracking:t=!1,shouldHideModal:n=(()=>!1),triggerByOutletEl:r=!0,shouldMoveToTopContainer:i=!0}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!e)throw new Error("No modal element passed in");this._el=e,this._parentNode=this._el.parentNode,i&&(this._topLevelContainer=this._getTopLevelContainer()),this._wrapperEl=this._el.querySelector(".".concat("modal__wrapper")),this._overlayEl=this._el.querySelector(".".concat("modal__overlay")),r&&(this._outletEls=this._getOutletEls()),this._exitButtonEl=this._el.querySelector(".".concat("modal__dismiss")),this._onKeyDownEvent=e=>this._onKeyDown(e),this._enablePageViewTracking=t,this._shouldHideModal=n,this._shouldMoveToTopContainer=i,r&&this._outletEls.forEach(e=>{e.addEventListener("click",()=>this.open())}),this._exitButtonEl&&this._exitButtonEl.addEventListener("click",()=>this.close()),this._overlayEl.addEventListener("click",this._handleOverlayClick.bind(this)),this._focusTrap=new jb(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=Gf(e.key),n=t===Hb&&document.activeElement===this._exitButtonEl;(t===zb||n)&&(this.close(),e.preventDefault())}open(){if(!this._shouldHideModal())return 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),$f(this._el,"open"),this._wrapperEl&&this._wrapperEl.focus(),this._focusTrap.init(),this._enablePageViewTracking&&window.tracking?window.tracking.then(e=>{const t=Bf(document,{skipSuffix:!0});Tb(e,"ajax","".concat(t,"_").concat(this._el.id))}):Promise.resolve();$f(this._el,"didNotOpen")}close(){this._overlayEl.classList.remove("modal__overlay--visible"),this._shouldMoveToTopContainer&&this._parentNode.appendChild(this._el),this.removeNoScroll(),document.removeEventListener("keydown",this._onKeyDownEvent),$f(this._el,"close"),this._previouslyFocusedEl&&this._previouslyFocusedEl.focus(),this._focusTrap.tearDown()}noScroll(){document.body.classList.add("no-scroll")}removeNoScroll(){document.body.classList.remove("no-scroll")}}var Wb=Object.hasOwnProperty,Kb=Object.setPrototypeOf,Vb=Object.isFrozen,Qb=Object.getPrototypeOf,Xb=Object.getOwnPropertyDescriptor,Jb=Object.freeze,Yb=Object.seal,Zb=Object.create,$b="undefined"!=typeof Reflect&&Reflect,eE=$b.apply,tE=$b.construct;eE||(eE=function(e,t,n){return e.apply(t,n)}),Jb||(Jb=function(e){return e}),Yb||(Yb=function(e){return e}),tE||(tE=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 nE=hE(Array.prototype.forEach),rE=hE(Array.prototype.pop),iE=hE(Array.prototype.push),oE=hE(String.prototype.toLowerCase),sE=hE(String.prototype.match),aE=hE(String.prototype.replace),cE=hE(String.prototype.indexOf),lE=hE(String.prototype.trim),uE=hE(RegExp.prototype.test),dE=function(e){return function(){for(var t=arguments.length,n=Array(t),r=0;r<t;r++)n[r]=arguments[r];return tE(e,n)}}(TypeError);function hE(e){return function(t){for(var n=arguments.length,r=Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];return eE(e,t,r)}}function pE(e,t){Kb&&Kb(e,null);for(var n=t.length;n--;){var r=t[n];if("string"==typeof r){var i=oE(r);i!==r&&(Vb(t)||(t[n]=i),r=i)}e[r]=!0}return e}function fE(e){var t=Zb(null),n=void 0;for(n in e)eE(Wb,e,[n])&&(t[n]=e[n]);return t}function mE(e,t){for(;null!==e;){var n=Xb(e,t);if(n){if(n.get)return hE(n.get);if("function"==typeof n.value)return hE(n.value)}e=Qb(e)}return function(e){return console.warn("fallback value for",e),null}}var vE=Jb(["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"]),gE=Jb(["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"]),yE=Jb(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),bE=Jb(["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"]),EE=Jb(["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"]),wE=Jb(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),_E=Jb(["#text"]),TE=Jb(["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"]),SE=Jb(["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"]),kE=Jb(["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"]),IE=Jb(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),CE=Yb(/\{\{[\s\S]*|[\s\S]*\}\}/gm),AE=Yb(/<%[\s\S]*|[\s\S]*%>/gm),RE=Yb(/^data-[\-\w.\u00B7-\uFFFF]/),OE=Yb(/^aria-[\-\w]+$/),NE=Yb(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),LE=Yb(/^(?:\w+script|data):/i),xE=Yb(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),PE="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 ME(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 DE=function(){return"undefined"==typeof window?null:window},UE=function(e,t){if("object"!==(void 0===e?"undefined":PE(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 r="dompurify"+(n?"#"+n:"");try{return e.createPolicy(r,{createHTML:function(e){return e}})}catch(e){return console.warn("TrustedTypes policy "+r+" could not be created."),null}};var BE=function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:DE(),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 r=t.document,i=t.document,o=t.DocumentFragment,s=t.HTMLTemplateElement,a=t.Node,c=t.Element,l=t.NodeFilter,u=t.NamedNodeMap,d=void 0===u?t.NamedNodeMap||t.MozNamedAttrMap:u,h=t.HTMLFormElement,p=t.DOMParser,f=t.trustedTypes,m=c.prototype,v=mE(m,"cloneNode"),g=mE(m,"nextSibling"),y=mE(m,"childNodes"),b=mE(m,"parentNode");if("function"==typeof s){var E=i.createElement("template");E.content&&E.content.ownerDocument&&(i=E.content.ownerDocument)}var w=UE(f,r),_=w?w.createHTML(""):"",T=i,S=T.implementation,k=T.createNodeIterator,I=T.createDocumentFragment,C=T.getElementsByTagName,A=r.importNode,R={};try{R=fE(i).documentMode?i.documentMode:{}}catch(e){}var O={};n.isSupported="function"==typeof b&&S&&void 0!==S.createHTMLDocument&&9!==R;var N=CE,L=AE,x=RE,P=OE,M=LE,D=xE,U=NE,B=null,F=pE({},[].concat(ME(vE),ME(gE),ME(yE),ME(EE),ME(_E))),q=null,j=pE({},[].concat(ME(TE),ME(SE),ME(kE),ME(IE))),H=Object.seal(Object.create(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),z=null,G=null,W=!0,K=!0,V=!1,Q=!1,X=!1,J=!1,Y=!1,Z=!1,$=!1,ee=!1,te=!0,ne=!0,re=!1,ie={},oe=null,se=pE({},["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=pE({},["audio","video","img","source","image","track"]),le=null,ue=pE({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),de="http://www.w3.org/1998/Math/MathML",he="http://www.w3.org/2000/svg",pe="http://www.w3.org/1999/xhtml",fe=pe,me=!1,ve=void 0,ge=["application/xhtml+xml","text/html"],ye="text/html",be=void 0,Ee=null,we=i.createElement("form"),_e=function(e){return e instanceof RegExp||e instanceof Function},Te=function(e){Ee&&Ee===e||(e&&"object"===(void 0===e?"undefined":PE(e))||(e={}),e=fE(e),B="ALLOWED_TAGS"in e?pE({},e.ALLOWED_TAGS):F,q="ALLOWED_ATTR"in e?pE({},e.ALLOWED_ATTR):j,le="ADD_URI_SAFE_ATTR"in e?pE(fE(ue),e.ADD_URI_SAFE_ATTR):ue,ae="ADD_DATA_URI_TAGS"in e?pE(fE(ce),e.ADD_DATA_URI_TAGS):ce,oe="FORBID_CONTENTS"in e?pE({},e.FORBID_CONTENTS):se,z="FORBID_TAGS"in e?pE({},e.FORBID_TAGS):{},G="FORBID_ATTR"in e?pE({},e.FORBID_ATTR):{},ie="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,Q=e.SAFE_FOR_TEMPLATES||!1,X=e.WHOLE_DOCUMENT||!1,Z=e.RETURN_DOM||!1,$=e.RETURN_DOM_FRAGMENT||!1,ee=e.RETURN_TRUSTED_TYPE||!1,Y=e.FORCE_BODY||!1,te=!1!==e.SANITIZE_DOM,ne=!1!==e.KEEP_CONTENT,re=e.IN_PLACE||!1,U=e.ALLOWED_URI_REGEXP||U,fe=e.NAMESPACE||pe,e.CUSTOM_ELEMENT_HANDLING&&_e(e.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(H.tagNameCheck=e.CUSTOM_ELEMENT_HANDLING.tagNameCheck),e.CUSTOM_ELEMENT_HANDLING&&_e(e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(H.attributeNameCheck=e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),e.CUSTOM_ELEMENT_HANDLING&&"boolean"==typeof e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements&&(H.allowCustomizedBuiltInElements=e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),ve=ve=-1===ge.indexOf(e.PARSER_MEDIA_TYPE)?ye:e.PARSER_MEDIA_TYPE,be="application/xhtml+xml"===ve?function(e){return e}:oE,Q&&(K=!1),$&&(Z=!0),ie&&(B=pE({},[].concat(ME(_E))),q=[],!0===ie.html&&(pE(B,vE),pE(q,TE)),!0===ie.svg&&(pE(B,gE),pE(q,SE),pE(q,IE)),!0===ie.svgFilters&&(pE(B,yE),pE(q,SE),pE(q,IE)),!0===ie.mathMl&&(pE(B,EE),pE(q,kE),pE(q,IE))),e.ADD_TAGS&&(B===F&&(B=fE(B)),pE(B,e.ADD_TAGS)),e.ADD_ATTR&&(q===j&&(q=fE(q)),pE(q,e.ADD_ATTR)),e.ADD_URI_SAFE_ATTR&&pE(le,e.ADD_URI_SAFE_ATTR),e.FORBID_CONTENTS&&(oe===se&&(oe=fE(oe)),pE(oe,e.FORBID_CONTENTS)),ne&&(B["#text"]=!0),X&&pE(B,["html","head","body"]),B.table&&(pE(B,["tbody"]),delete z.tbody),Jb&&Jb(e),Ee=e)},Se=pE({},["mi","mo","mn","ms","mtext"]),ke=pE({},["foreignobject","desc","title","annotation-xml"]),Ie=pE({},gE);pE(Ie,yE),pE(Ie,bE);var Ce=pE({},EE);pE(Ce,wE);var Ae=function(e){var t=b(e);t&&t.tagName||(t={namespaceURI:pe,tagName:"template"});var n=oE(e.tagName),r=oE(t.tagName);if(e.namespaceURI===he)return t.namespaceURI===pe?"svg"===n:t.namespaceURI===de?"svg"===n&&("annotation-xml"===r||Se[r]):Boolean(Ie[n]);if(e.namespaceURI===de)return t.namespaceURI===pe?"math"===n:t.namespaceURI===he?"math"===n&&ke[r]:Boolean(Ce[n]);if(e.namespaceURI===pe){if(t.namespaceURI===he&&!ke[r])return!1;if(t.namespaceURI===de&&!Se[r])return!1;var i=pE({},["title","style","font","a","script"]);return!Ce[n]&&(i[n]||!Ie[n])}return!1},Re=function(e){iE(n.removed,{element:e});try{e.parentNode.removeChild(e)}catch(t){try{e.outerHTML=_}catch(t){e.remove()}}},Oe=function(e,t){try{iE(n.removed,{attribute:t.getAttributeNode(e),from:t})}catch(e){iE(n.removed,{attribute:null,from:t})}if(t.removeAttribute(e),"is"===e&&!q[e])if(Z||$)try{Re(t)}catch(e){}else try{t.setAttribute(e,"")}catch(e){}},Ne=function(e){var t=void 0,n=void 0;if(Y)e="<remove></remove>"+e;else{var r=sE(e,/^[\r\n\t ]+/);n=r&&r[0]}"application/xhtml+xml"===ve&&(e='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+e+"</body></html>");var o=w?w.createHTML(e):e;if(fe===pe)try{t=(new p).parseFromString(o,ve)}catch(e){}if(!t||!t.documentElement){t=S.createDocument(fe,"template",null);try{t.documentElement.innerHTML=me?"":o}catch(e){}}var s=t.body||t.documentElement;return e&&n&&s.insertBefore(i.createTextNode(n),s.childNodes[0]||null),fe===pe?C.call(t,X?"html":"body")[0]:X?t.documentElement:s},Le=function(e){return k.call(e.ownerDocument||e,e,l.SHOW_ELEMENT|l.SHOW_COMMENT|l.SHOW_TEXT,null,!1)},xe=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)},Pe=function(e){return"object"===(void 0===a?"undefined":PE(a))?e instanceof a:e&&"object"===(void 0===e?"undefined":PE(e))&&"number"==typeof e.nodeType&&"string"==typeof e.nodeName},Me=function(e,t,r){O[e]&&nE(O[e],(function(e){e.call(n,t,r,Ee)}))},De=function(e){var t=void 0;if(Me("beforeSanitizeElements",e,null),xe(e))return Re(e),!0;if(sE(e.nodeName,/[\u0080-\uFFFF]/))return Re(e),!0;var r=be(e.nodeName);if(Me("uponSanitizeElement",e,{tagName:r,allowedTags:B}),!Pe(e.firstElementChild)&&(!Pe(e.content)||!Pe(e.content.firstElementChild))&&uE(/<[/\w]/g,e.innerHTML)&&uE(/<[/\w]/g,e.textContent))return Re(e),!0;if("select"===r&&uE(/<template/i,e.innerHTML))return Re(e),!0;if(!B[r]||z[r]){if(ne&&!oe[r]){var i=b(e)||e.parentNode,o=y(e)||e.childNodes;if(o&&i)for(var s=o.length-1;s>=0;--s)i.insertBefore(v(o[s],!0),g(e))}if(!z[r]&&Be(r)){if(H.tagNameCheck instanceof RegExp&&uE(H.tagNameCheck,r))return!1;if(H.tagNameCheck instanceof Function&&H.tagNameCheck(r))return!1}return Re(e),!0}return e instanceof c&&!Ae(e)?(Re(e),!0):"noscript"!==r&&"noembed"!==r||!uE(/<\/no(script|embed)/i,e.innerHTML)?(Q&&3===e.nodeType&&(t=e.textContent,t=aE(t,N," "),t=aE(t,L," "),e.textContent!==t&&(iE(n.removed,{element:e.cloneNode()}),e.textContent=t)),Me("afterSanitizeElements",e,null),!1):(Re(e),!0)},Ue=function(e,t,n){if(te&&("id"===t||"name"===t)&&(n in i||n in we))return!1;if(K&&!G[t]&&uE(x,t));else if(W&&uE(P,t));else if(!q[t]||G[t]){if(!(Be(e)&&(H.tagNameCheck instanceof RegExp&&uE(H.tagNameCheck,e)||H.tagNameCheck instanceof Function&&H.tagNameCheck(e))&&(H.attributeNameCheck instanceof RegExp&&uE(H.attributeNameCheck,t)||H.attributeNameCheck instanceof Function&&H.attributeNameCheck(t))||"is"===t&&H.allowCustomizedBuiltInElements&&(H.tagNameCheck instanceof RegExp&&uE(H.tagNameCheck,n)||H.tagNameCheck instanceof Function&&H.tagNameCheck(n))))return!1}else if(le[t]);else if(uE(U,aE(n,D,"")));else if("src"!==t&&"xlink:href"!==t&&"href"!==t||"script"===e||0!==cE(n,"data:")||!ae[e]){if(V&&!uE(M,aE(n,D,"")));else if(n)return!1}else;return!0},Be=function(e){return e.indexOf("-")>0},Fe=function(e){var t=void 0,r=void 0,i=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(r=lE(t.value),i=be(l),a.attrName=i,a.attrValue=r,a.keepAttr=!0,a.forceKeepAttr=void 0,Me("uponSanitizeAttribute",e,a),r=a.attrValue,!a.forceKeepAttr&&(Oe(l,e),a.keepAttr))if(uE(/\/>/i,r))Oe(l,e);else{Q&&(r=aE(r,N," "),r=aE(r,L," "));var d=be(e.nodeName);if(Ue(d,i,r))try{u?e.setAttributeNS(u,l,r):e.setAttribute(l,r),rE(n.removed)}catch(e){}}}Me("afterSanitizeAttributes",e,null)}},qe=function e(t){var n=void 0,r=Le(t);for(Me("beforeSanitizeShadowDOM",t,null);n=r.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,i){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&&!Pe(e)){if("function"!=typeof e.toString)throw dE("toString is not a function");if("string"!=typeof(e=e.toString()))throw dE("dirty is not a string, aborting")}if(!n.isSupported){if("object"===PE(t.toStaticHTML)||"function"==typeof t.toStaticHTML){if("string"==typeof e)return t.toStaticHTML(e);if(Pe(e))return t.toStaticHTML(e.outerHTML)}return e}if(J||Te(i),n.removed=[],"string"==typeof e&&(re=!1),re){if(e.nodeName){var h=be(e.nodeName);if(!B[h]||z[h])throw dE("root node is forbidden and cannot be sanitized in-place")}}else if(e instanceof a)1===(c=(s=Ne("\x3c!----\x3e")).ownerDocument.importNode(e,!0)).nodeType&&"BODY"===c.nodeName||"HTML"===c.nodeName?s=c:s.appendChild(c);else{if(!Z&&!Q&&!X&&-1===e.indexOf("<"))return w&&ee?w.createHTML(e):e;if(!(s=Ne(e)))return Z?null:ee?_:""}s&&Y&&Re(s.firstChild);for(var p=Le(re?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,re)return e;if(Z){if($)for(d=I.call(s.ownerDocument);s.firstChild;)d.appendChild(s.firstChild);else d=s;return q.shadowroot&&(d=A.call(r,d,!0)),d}var f=X?s.outerHTML:s.innerHTML;return Q&&(f=aE(f,N," "),f=aE(f,L," ")),w&&ee?w.createHTML(f):f},n.setConfig=function(e){Te(e),J=!0},n.clearConfig=function(){Ee=null,J=!1},n.isValidAttribute=function(e,t,n){Ee||Te({});var r=be(e),i=be(t);return Ue(r,i,n)},n.addHook=function(e,t){"function"==typeof t&&(O[e]=O[e]||[],iE(O[e],t))},n.removeHook=function(e){O[e]&&rE(O[e])},n.removeHooks=function(e){O[e]&&(O[e]=[])},n.removeAllHooks=function(){O={}},n}();const FE={ADD_TAGS:["#comment","li-icon","icon","iframe"],ADD_ATTR:["target"],FORCE_BODY:!0,RETURN_DOM:!0};function qE(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n=jE(null,e,t);return n.innerHTML}function jE(e,t){let{ADD_TAGS:n=[],ADD_ATTR:r=[]}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const i=mm({},FE);i.ADD_TAGS=[...i.ADD_TAGS,...n],i.ADD_ATTR=[...i.ADD_ATTR,...r];const o=BE.sanitize(t,i);return e&&e.nodeType===Node.ELEMENT_NODE&&(e.innerHTML="",e.append(...o.childNodes)),o}var HE="aria-[a-z0-9_\\-]+|class|data-[a-z0-9_\\-]+|dir|id|role|tabindex",zE=function(){if("undefined"==typeof document)return!0;return"textContent"in document.createElement("div")}()?"textContent":"innerText",GE=["b","del","em","i","s","strong","sub","sup"],WE=GE.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"]),KE=[HE,"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 VE(){}(function(){var e,t=/[&<>"'\u0000\\=]/g;e={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","\0":"�","\\":"&#92;","=":"&#61;"}})(),function(){var e,t,n=/&(?:([a-z0-9]+)|#x([\da-f]{1,6})|#(\d{1,8}));/gi;if("undefined"==typeof document)return function(){throw new Error("document is undefined (i.e. you are probably in Node.js)")};e=document.createElement("div");var r={nbsp:" ",lt:"<",gt:">",amp:"&",quot:'"'};t="function"==typeof String.fromCodePoint?function(e){return String.fromCodePoint(e)}:function(e){return e<=65535?String.fromCharCode(e):"�"}}();var QE=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)};var XE=Array.prototype.forEach?function(e,t){Array.prototype.forEach.call(e,t)}:function(e,t){for(var n=0,r=e.length;n<r;n++)t(e[n],n)};function JE(e){e=QE(e)?e:[e];var t,n,r,i=0,o="<(?!/?";return o+="(?:",XE(e,(function(e,s){t=e.tags||WE,n=e.attrs||KE,r=e.checkUrlAttrs||!1,0!==s&&(o+="|"),o+="(?:"+t.join("|")+")",o+="(?:",o+="[ \t\r\n]*",o+="|[ \t\r\n]+",o+="(?:(?:",o+="(?:"+n+")(?:=([\"'])[^'\"<>]*\\"+ ++i+")?",r&&(o+="|(?:href|src)=([\"'])(?:(?:https?|ftp|mailto|invalid)(?::|&#(?:58|x3a);)|(?:data:image/(?:gif|jpg|jpeg|png);base64,)|[/.#?]|&#(?:35|4[67]|63|x(?:2[3ef]|3f));)[^'\"<>]*\\"+ ++i),o+=")[ \t\r\n]*)+",o+=")"})),o+=")",o+="/?>)",new RegExp(o,"i")}function YE(e){return JE({tags:e=e||WE,checkUrlAttrs:!0})}function ZE(e,t){var n=(t=t||{}).allowTags,r=!1!==t.hasCustomElementMarkup;return n?!YE(n).test(e):r?!ZE.R_UNSAFE_CUSTOM_ELEMENT.test(e):!ZE.R_UNSAFE_HTML.test(e)}function $E(e){return e.replace(/<[^>]*>|[<>'"&\\]/g,"")}ZE.R_UNSAFE_HTML=YE(),ZE.R_UNSAFE_CUSTOM_ELEMENT=function(){var e={tag:"li-icon",attrs:"active|a11y-text|animate|color|size|type"};return JE([{tags:WE,checkUrlAttrs:!0},{tags:[e.tag],attrs:[HE,e.attrs].join("|"),checkUrlAttrs:!1}])}();var ew={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,"",""]};ew.optgroup=ew.option,ew.tbody=ew.tfoot=ew.colgroup=ew.caption=ew.thead,ew.th=ew.td;function tw(e,t){if(!(this instanceof tw))return new tw(e,t);(t=t||{}).allowTags=t.allowTags?t.allowTags.reduce((function(e,t){return e.concat(t)}),[]):null,this._string=e,this._options=t}tw.prototype=function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);return e}(new VE,{toString:function(){var e=this._string,t=this._stringVal,n=e;return void 0!==t?t:(ZE(e,this._options)||(n=e,e=$E(e),kb("UnsafeString contains non-whitelisted tags or attributes.\nString: "+n,"error")),this._stringVal=e,e)}});Object.freeze({CAUTION:"caution",ERROR:"error",GDPR:"gdpr",NOTIFY:"notify",SUCCESS:"success"});const nw={};function rw(e){const t=document.getElementById(e);if(!t&&void 0!==nw[e])return nw[e];if(!t)return console.warn("Element with id: ".concat(e," not found")),nw[e]=null,nw[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):(nw[e]=n,t.parentNode.removeChild(t),nw[e])}const iw={COPY:"copy",LINKEDIN:"linkedin",TWITTER:"twitter",FACEBOOK:"facebook"};Object.keys(iw).map(e=>iw[e]);const ow=["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(ow,"i");"".concat("tooltip__popup","--show");class sw extends Gb{constructor(e){let{enablePageViewTracking:t=!1,shouldHideModal:n=(()=>!1),triggerByOutletEl:r=!0,pushState:i=!0,shouldMoveToTopContainer:o=!0}=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:r,shouldMoveToTopContainer:o}),this.pushState=i,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(){super.open(),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);Bf(document);String.fromCharCode(32);function aw(){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 cw(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 lw(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}aw(),cw(3),lw(128),aw(),cw(6),lw(400);var uw=window||t.g;uw.utag_data||(uw.utag_data={});const dw="undefined"!=typeof window&&window&&"node"!==window.appEnvironment;uw.utag_cfg_ovrd=uw.utag_cfg_ovrd||{},uw.trackingEventDebugData=uw.trackingEventDebugData||[],uw.utag_cfg_ovrd.noview=!0,uw.utag_cfg_ovrd.nocookie=!0;dw&&new RegExp("bot|google|aolbuild|baidu|bing|msn|duckduckgo|teoma|slurp|yandex|sogou|facebook|alexa","i").test(uw.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],r=0,i=n.length;r<i;r++)if(n[r]===t)return void n.splice(r,1)},e.prototype.dispatchEvent=function(e){if(!(e.type in this.listeners))return!0;for(var t=this.listeners[e.type].slice(),n=0,r=t.length;n<r;n++)t[n].call(this,e);return!e.defaultPrevented},window.EventTarget=e}();const hw={GOOGLE_ERROR:"googleError",GOOGLE_USER_FETCHED:"googleUserFetched",INITIALIZED:"initialized",PROMPT_MOMENT:"promptMomentNotification",TOKEN_FETCHED:"tokenFetched"},pw={INITIALIZATION:"initialization",AUTHENTICATION:"authentication"},{GOOGLE_ERROR:fw,GOOGLE_USER_FETCHED:mw,INITIALIZED:vw}=hw,{INITIALIZATION:gw,AUTHENTICATION:yw}=pw;EventTarget;var bw={exports:{}};function Ew(e){this.message=e}Ew.prototype=new Error,Ew.prototype.name="InvalidCharacterError";var ww="undefined"!=typeof window&&window.atob&&window.atob.bind(window)||function(e){var t=String(e).replace(/=+$/,"");if(t.length%4==1)throw new Ew("'atob' failed: The string to be decoded is not correctly encoded.");for(var n,r,i=0,o=0,s="";r=t.charAt(o++);~r&&(n=i%4?64*n+r:r,i++%4)?s+=String.fromCharCode(255&n>>(-2*i&6)):0)r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(r);return s};var _w=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(ww(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 ww(t)}};function Tw(e){this.message=e}Tw.prototype=new Error,Tw.prototype.name="InvalidTokenError",bw.exports=function(e,t){if("string"!=typeof e)throw new Tw("Invalid token specified");var n=!0===(t=t||{}).header?0:1;try{return JSON.parse(_w(e.split(".")[n]))}catch(e){throw new Tw("Invalid token specified: "+e.message)}},bw.exports.InvalidTokenError=Tw;const Sw=hw,kw=pw,{GOOGLE_USER_FETCHED:Iw,GOOGLE_ERROR:Cw,INITIALIZED:Aw}=Sw,{INITIALIZATION:Rw}=kw;const Ow={observeComponents:()=>{},unobserveComponents:()=>{},handleDynamicElements:()=>{}};class Nw{constructor(e,t){let{threshold:n=.9,root:r=null,rootMargin:i="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 Ow;this.root=r,this.threshold=n,this.rootMargin=i,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 Lw(e){var t=e.intersectionRect;return t.width>=0&&t.height>=0}function xw(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 Pw(e,t){return Math.round(e-t)}var Mw=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 r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Dw=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}(),Uw=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Mw(t,e),t.prototype.removePredicate=function(e,t){return"string"==typeof e?t.id===e:t.callback===e},t}(Dw),Bw=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Mw(t,e),t.prototype.removePredicate=function(e,t){return t===e},t}(Dw),Fw=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Mw(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}(Dw),qw=function(){return 0},jw=!("undefined"==typeof window||!window||"undefined"==typeof document||!document),Hw=jw&&!!window.requestAnimationFrame,zw={hasDOM:jw,hasRAF:Hw,getScrollTop:qw,getScrollLeft:qw,getHeight:qw,getWidth:qw,rAF:Hw?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:qw,get isDirty(){return zw.version!==zw.lastVersion},document:window.document,IntersectionObserver:jw&&window.IntersectionObserver,performance:jw&&window.performance};function Gw(){++zw.version}function Ww(){var e=null!=document.scrollingElement;zw.getScrollTop=e?function(){return document.scrollingElement.scrollTop}:function(){return window.scrollY},zw.getScrollLeft=e?function(){return document.scrollingElement.scrollLeft}:function(){return window.scrollX}}jw&&(zw.getHeight=function(){return window.innerHeight},zw.getWidth=function(){return window.innerWidth},zw.updateMeta=function(){zw.meta.height=zw.getHeight(),zw.meta.width=zw.getWidth(),zw.meta.scrollLeft=zw.getScrollLeft(),zw.meta.scrollTop=zw.getScrollTop(),zw.lastVersion=zw.version},zw.updateMeta(),"loading"!==document.readyState?Ww():document.addEventListener("DOMContentLoaded",Ww),window.addEventListener("resize",Gw,!1),window.addEventListener("scroll",Gw,!1));var Kw=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,zw.rAF((function(){e.running=!1;for(var t=0,n=e.reads.length;t<n;t++)e.reads.pop()();t=0;for(var r=e.work.length;t<r;t++)e.work.pop()();(e.work.length>0||e.reads.length>0)&&e.run()})))},e}(),Vw=null;var Qw=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 r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Xw="xxxx".replace(/[xy]/g,(function(e){var t=16*Math.random()|0;return("x"===e?t:3&t|8).toString(16)})),Jw=0,Yw=function(){function e(e,t,n,r,i,o,s,a,c,l){this.dateNow=e,this.highResTime=t,this.scrollTop=n,this.scrollLeft=r,this.width=i,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 zw.isDirty&&zw.updateMeta(),e===window||e===document?(n.height=zw.meta.height,n.width=zw.meta.width,n.scrollLeft=zw.meta.scrollLeft,n.scrollTop=zw.meta.scrollTop,n):(t=xw(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 Zw(){return Jw+++Xw}var $w=function(){function e(e,t){this.isTicking=!1,this.toRemove=[],this.engine=e||(Vw||(Vw=new Kw)),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(Yw.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,r,i=this;this.engine.scheduleRead((function(){n=xw(e),r=Yw.generate(i.root)})),this.engine.scheduleWork((function(){t(n,r)}))},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}(),e_=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.queue=new Uw,t}return Qw(t,e),t.prototype.applyQueue=function(e){for(var t=0;t<this.queue.items.length;t++){var n=this.queue.items[t],r=n.id;(0,n.callback)(e,r)}},t.prototype.watch=function(e){this.startTicking();var t=Zw();return this.queue.push({callback:e,id:t}),t},t}($w),t_=function(e){function t(t){var n=e.call(this,void 0,window)||this;return n.predicate=t,n}return Qw(t,e),t.prototype.applyQueue=function(t){this.predicate(t)&&e.prototype.applyQueue.call(this,t)},t}(e_),n_=function(e){function t(t,n,r){void 0===r&&(r=!1);var i=e.call(this,t,n)||this;return i.lastVersion=zw.version,i.queue=new Fw,i.ALLOW_CACHED_SCHEDULER=r,i}return Qw(t,e),Object.defineProperty(t.prototype,"isDirty",{get:function(){return zw.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],r=n.callback,i=n.el,o=n.id,s=n.clientRect;!this.isDirty&&s&&this.ALLOW_CACHED_SCHEDULER||(s=this.queue.items[t].clientRect=xw(i)),r(e,o,s)}this.lastVersion=zw.version},t.prototype.watch=function(e,t,n){this.startTicking(),n=n||Zw();return this.queue.push({el:e,callback:t,id:n,clientRect:null}),n},t}($w),r_=null;var i_=function(){function e(){this.queue=new Bw}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}(),o_=function(){function e(e){this.scheduler=new t_(e.bind(this))}return e.prototype.trigger=function(){},e.prototype.listen=function(e){this.state=Yw.generate(),this.scheduler.watch(e)},e.prototype.unlisten=function(e){this.scheduler.unwatch(e)},e}(),s_=null;function a_(e,t){var n=(s_||(s_={scroll:new o_((function(e){var t=this.state,n=t.scrollTop,r=t.scrollLeft;return this.state=e,n!==e.scrollTop||r!==e.scrollLeft})),resize:new o_((function(e){var t=this.state,n=t.width,r=t.height;return this.state=e,r!==e.height||n!==e.width})),destroy:new i_,beforeunload:new i_,hide:new i_,show:new i_}))[e];n&&n.listen(t)}function c_(e,t){if(s_){var n=s_[e];n&&n.unlisten(t)}}function l_(e,t){if(s_){var n=s_[e];n&&n.trigger(t)}}function u_(e){(r_||(r_=new e_)).scheduleWork(e)}function d_(e){var t=e.left,n=e.right,r=e.top,i=e.bottom;return{left:t,x:t,top:r,y:r,bottom:i,right:n,width:n-t,height:i-r}}zw.hasDOM&&(window.addEventListener("beforeunload",(function(){l_("beforeunload"),l_("destroy")})),document.addEventListener("visibilitychange",(function(){"visible"===document.visibilityState?l_("show"):l_("hide")})));var h_=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 n_(void 0,this.root,t.ALLOW_CACHED_SCHEDULER)}return e.prototype.observe=function(e){var t=this,n=e,r=n.__spanielId=n.__spanielId||Zw();return this.scheduler.watch(e,(function(e,r,i){t.onTick(e,r,i,n)}),n.__spanielId),r},e.prototype.onTick=function(e,t,n,r){var i=this,o=this.generateEntryEvent(e,n,r),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(){i.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 r=0,i=function(e,t,n,r){if("none"===n.style.display)return{time:e.dateNow,highResTime:e.highResTime,boundingClientRect:p_(),intersectionRatio:0,intersectionRect:p_(),isIntersecting:!1,rootBounds:p_(),target:n};var i=t.bottom,o=t.right,s=e.left+r.left,a=e.top+r.top,c={left:s,top:a,bottom:r.bottom,right:r.right,width:e.width-(r.right+r.left),height:e.height-(r.bottom+r.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:i};return function(e){var t=e.unixTime,n=e.highResTime,r=e.rootBounds,i=e.boundingClientRect,o=e.intersectionRect,s=e.target,a=i.height*i.width,c=a>0?o.width*o.height/a:0;return{time:t,highResTime:n,rootBounds:r,boundingClientRect:i,intersectionRect:o,target:s,intersectionRatio:c,isIntersecting:Lw({intersectionRect:o})}}({unixTime:e.dateNow,highResTime:e.highResTime,rootBounds:c,target:n,boundingClientRect:d_(t),intersectionRect:m})}(e,t,n,this.rootMarginObj),o=0;o<this.thresholds.length;o++){var s=this.thresholds[o];i.intersectionRatio>=s&&r++}return{numSatisfiedThresholds:r,entry:i}},e}();function p_(){return{bottom:0,height:0,left:0,right:0,top:0,width:0,x:0,y:0}}var f_={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 r=t||{threshold:[]},i=r.root,o=r.rootMargin,s=r.threshold,a=r.ALLOW_CACHED_SCHEDULER,c=r.BACKGROUND_TAB_FIX,l=r.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:i,rootMargin:u,threshold:this.thresholds.map((function(e){return e.ratio})),ALLOW_CACHED_SCHEDULER:a};this.usingNativeIo=!!l&&!!zw.IntersectionObserver;var h=this.usingNativeIo?zw.IntersectionObserver:h_;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),zw.hasDOM&&(a_("beforeunload",this.onWindowClosed),a_("hide",this.onTabHidden),a_("show",this.onTabShown),c&&(this.paused="visible"!==zw.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(),r=0;r<e.length;r++){var i=this.recordStore[e[r]].lastSeenEntry;if(i){var o=i.intersectionRatio,s=i.boundingClientRect,a=i.rootBounds,c=i.intersectionRect,l=i.isIntersecting,u=i.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,r=e.rootBounds,i=e.boundingClientRect,o=e.intersectionRect,s=e.isIntersecting,a=e.time,c=e.target,l=this.recordStore[c.__spanielId],u=this.usingNativeIo?Math.floor((zw.performance.timeOrigin||zw.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:r,boundingClientRect:i,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(),r=performance.now();e.thresholdStates.forEach((function(i){var o=e.lastSeenEntry&&e.lastSeenEntry.boundingClientRect;t.handleThresholdExiting({intersectionRatio:-1,isIntersecting:!1,unixTime:n,time:n,highResTime:r,payload:e.payload,label:i.threshold.label,threshold:i.threshold,entering:!1,rootBounds:f_,boundingClientRect:o||f_,intersectionRect:f_,visibleTime:i.lastVisible.unixTime,duration:Pw(r,i.lastVisible.highResTime),target:e.target},i),i.lastSatisfied=!1,i.visible=!1,i.lastEntry=null}))},e.prototype.handleThresholdExiting=function(e,t){var n=e.highResTime,r=!!t.threshold.time;t.lastSatisfied&&(!r||r&&t.visible)&&(e.duration=Pw(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,r=this.recordStore[n.__spanielId];r&&(r.lastSeenEntry=e,this.paused||(r.thresholdStates.forEach((function(n){var r=!!n.threshold.time,i=t.generateSpanielEntry(e,n),o=e.intersectionRatio>=n.threshold.ratio,s="boolean"==typeof i.isIntersecting?i.isIntersecting:Lw(e),a=o&&s;if(a!=n.lastSatisfied){if(a)if(i.entering=!0,n.lastVisible={highResTime:i.highResTime,unixTime:i.unixTime},r){var c=Number(setTimeout((function(){n.visible=!0,i.duration=Pw(performance.now(),n.lastVisible.highResTime),i.visibleTime=n.lastVisible.unixTime,t.callback([i])}),n.threshold.time));n.timeoutId=c}else n.visible=!0,i.duration=Date.now()-n.lastVisible.unixTime,t.queuedEntries.push(i);else t.handleThresholdExiting(i,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(),zw.hasDOM&&(c_("beforeunload",this.onWindowClosed),c_("hide",this.onTabHidden),c_("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),u_((function(){t.handleRecordExiting(n),t.flushQueuedEntries()})))},e.prototype.observe=function(e,t){var n=e,r=n.__spanielId=n.__spanielId||Zw();return this.recordStore[r]={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),r}}();zw.IntersectionObserver&&zw.IntersectionObserver;".".concat("show-more-less","__list"),".".concat("show-more-less","__more-button"),".".concat("show-more-less","__less-button"),"".concat("show-more-less","__list--hide-after"),"".concat("show-more-less","__button--hide");".".concat("accordion-item__trigger");function m_(e){return t=>t.type&&t.type.toLowerCase()===e.toLowerCase()}m_("action"),m_("openpage"),m_("openlink");var v_;!function(e){e.ProductName="productName",e.UntrackedResponseCodes="untrackedResponseCodes",e.TrackedResponseCodes="trackedResponseCodes",e.ClientSensorGroupName="clientSensorGroupName"}(v_||(v_={}));new Set(Object.values(v_));Error;var g_;!function(e){e.ProductName="productName",e.CustomTrackingId="customTrackingId",e.ClientSensorGroupName="clientSensorGroupName",e.AdditionalDegradedResponseCodes="additionalDegradedResponseCodes",e.NonDegradedResponseCodes="nonDegradedResponseCodes",e.DegradationKeyOverrides="degradationKeyOverrides"}(g_||(g_={})),new Set(Object.values(g_));var y_={exports:{}};!function(e,t){!function(e){function t(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function n(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function r(e,t,r){return t&&n(e.prototype,t),r&&n(e,r),e}function i(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 r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}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 r=[null];r.push.apply(r,t);var i=new(Function.bind.apply(e,r));return n&&c(i,n.prototype),i}).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 r=a(this).constructor;t=Reflect.construct(n,arguments,r)}else t=n.apply(this,arguments);return p(this,t)}}function m(e){"complete"===document.readyState?e():window.addEventListener("load",(function(){e()}))}function v(e,t){var n=document.createElement("script");n.src=e,t&&(n.onload=t),document.head.appendChild(n)}(function(){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],r=0,i=n.length;r<i;r++)if(n[r]===t)return void n.splice(r,1)},e.prototype.dispatchEvent=function(e){if(!(e.type in this.listeners))return!0;for(var t=this.listeners[e.type].slice(),n=0,r=t.length;n<r;n++)t[n].call(this,e);return!e.defaultPrevented},window.EventTarget=e}();var g="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"},w={DISPLAY:"display",SKIPPED:"skipped",DISMISSED:"dismissed"},_={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,I=y.GOOGLE_USER_FETCHED,C=y.INITIALIZED,A=b.INITIALIZATION,R=b.AUTHENTICATION,O=function(e){s(i,e);var n=f(i);function i(e){var r,o=e.libSrcPath,s=e.el,a=e.clientId,c=void 0===a?g:a;if(t(this,i),r=n.call(this),!s)throw TypeError("DOM element for Sign In button is required");if(r.libSrcPath=o,r.el=s,r.clientId=c,window.gapi)r._initializeGoogleAuth();else{if(!o)throw TypeError("Google Sign In lib not already loaded on the page. libSrcPath is required to load the lib.");m((function(){v(o,r._initializeGoogleAuth.bind(h(r)))}))}return r}return r(i,[{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(C);e.dispatchEvent(n)})).catch((function(t){var n={type:A,message:t.error},r=new CustomEvent(k,{detail:n});e.dispatchEvent(r)}))}},{key:"_attachSignIn",value:function(){var e=this;this.auth2.attachClickHandler(this.el,{},(function(t){var n=new CustomEvent(I,{detail:e._getGoogleUserInformation(t)});e.dispatchEvent(n)}),(function(t){var n={type:R,message:t.error},r=new CustomEvent(k,{detail:n});e.dispatchEvent(r)}))}},{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()}}}]),i}(d(EventTarget)),N=y.GOOGLE_USER_FETCHED,L=y.PROMPT_MOMENT,x=function(e){s(i,e);var n=f(i);function i(e){var r,o=e.autoSelect,s=void 0!==o&&o,a=e.libSrcPath,c=e.containerId,l=e.context,u=e.clientId,d=void 0===u?g:u,p=e.cancelOnTapOutside,f=void 0===p||p;if(t(this,i),r=n.call(this),!l)throw TypeError("context param is required to determine the message to show in Google One Tap");if(r.autoSelect=s,r.libSrcPath=a,r.containerId=c,r.cancelOnTapOutside=f,r.clientId=d,r.context=l,window.google&&window.google.accounts&&window.google.accounts.id)r._onGoogleApiLoad();else{if(!a)throw TypeError("Google One Tap lib is not already loaded on the page. libSrcPath is required to load the library");m((function(){v(a,r._onGoogleApiLoad.bind(h(r)))}))}return r}return r(i,[{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 r=new CustomEvent(N,{detail:n});this.dispatchEvent(r)}}},{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:_.SKIPPED.ISSUING_FAILED,type:w.SKIPPED},n=new CustomEvent(L,{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()},r=new CustomEvent(L,{detail:n});e.dispatchEvent(r),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")}}}]),i}(d(EventTarget)),P={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,r,i=0,o=0,s="";r=t.charAt(o++);~r&&(n=i%4?64*n+r:r,i++%4)?s+=String.fromCharCode(255&n>>(-2*i&6)):0)r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(r);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",P.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)}},P.exports.InvalidTokenError=B;var F=P.exports,q=y.GOOGLE_USER_FETCHED,j=y.PROMPT_MOMENT,H=function(e){s(a,e);var n=f(a);function a(e){var r,i,o,s,c=e.autoSelect,l=void 0!==c&&c,u=e.libSrcPath,d=e.clientId,p=void 0===d?g:d,f=e.showOneTap,y=void 0===f||f,b=e.promptParentId,E=e.buttonParentEl,w=e.gsiButtonConfig,_=void 0===w?{}:w,T=e.context,S=void 0===T?"signin":T,k=e.cancelOnTapOutside,I=void 0===k||k;if(t(this,a),(r=n.call(this)).autoSelect=l,r.libSrcPath=u,r.clientId=p,r.showOneTap=y,r.promptParentId=b,r.buttonParentEl=E,r.gsiButtonConfig=_,r.cancelOnTapOutside=I,r.context=S,r.isLibraryLoaded=((s=new Promise((function(e,t){i=e,o=t}))).resolve=i,s.reject=o,s),window.google&&window.google.accounts&&window.google.accounts.id)r._onGoogleApiLoad();else{if(!u)throw TypeError("GSI lib is not already loaded on the page. libSrcPath is required to load the library");m((function(){v(u,r._onGoogleApiLoad.bind(h(r)))}))}return r}return r(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,r=t.logo_alignment,i=void 0===r?"center":r,o=t.shape,s=void 0===o?"pill":o,a=t.size,c=void 0===a?"large":a,l=t.text,u=t.theme,d=t.type,h=t.width,p=void 0===h?"400px":h;return this.isLibraryLoaded.then((function(){var t=l||S[n.context].GSI_BUTTON;window.google.accounts.id.renderButton(e,{logo_alignment:i,shape:s,size:c,text:t,theme:u,type:d,width:p})}))}},{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()},r=new CustomEvent(j,{detail:n});e.dispatchEvent(r),e.checkIfDesktopAndApplyClass()}))}))}},{key:"_handleCredentialResponse",value:function(e){var t=e.credential,n=e.select_by,r=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){i(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(r),{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(i,e);var n=f(i);function i(e){var r,o=e.libSrcPath,s=e.snappleCTA,a=e.clientId,c=void 0===a?"com.linkedin.LinkedIn.service":a,l=e.redirectURI;if(t(this,i),r=n.call(this),!s)throw TypeError("snappleCTA is required. Please pass the correct CTA element to this Snapple Constructor");if(r.libSrcPath=o,r.clientId=c,r.redirectURI=r._getRedirectURL(l),r.snappleCTA=s,window.AppleID&&window.AppleID.auth&&window.AppleID.auth.init)r._onSnappleLibLoad();else{if(!o)throw TypeError("Snapple lib is not already loaded on the page. libSrcPath is required to load the library");m((function(){v(o,r._onSnappleLibLoad.bind(h(r)))}))}return r}return r(i,[{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"}}]),i}(d(EventTarget)),V={CLIENT_ID:g,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:_,GOT_PROMPT_MOMENT_TYPES:w};e.GoogleGsi=H,e.GoogleOneTap=x,e.GoogleSignIn=O,e.GoogleSignInConstants=V,e.SnappleAuth=K,e.SnappleEvents=T,Object.defineProperty(e,"__esModule",{value:!0})}(t)}(0,y_.exports);const{EVENTS:b_,GOT_CONTEXTS:E_,GOT_PROMPT_MOMENT_REASONS:w_,GOT_PROMPT_MOMENT_TYPES:__}=y_.exports.GoogleSignInConstants,{GOOGLE_USER_FETCHED:T_,PROMPT_MOMENT:S_}=b_,{SIGN_IN:k_}=E_;w_.NOT_DISPLAYED.BROWSER_NOT_SUPPORTED,w_.NOT_DISPLAYED.OPT_OUT_OR_NO_SESSION,w_.NOT_DISPLAYED.SUPPRESSED_BY_USER,w_.SKIPPED.AUTO_CANCEL,w_.SKIPPED.TAP_OUTSIDE,w_.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 I_{constructor(){let{badgeSel:e="[data-badge-without-count-source]",badgeCountSel:t="[data-badge-source]",cacheBustHrefSel:n='[data-update-cache-bust-url="true"]'}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this._counts={},this.badgeCountEls=document.querySelectorAll(t),this.badgeWithoutCountEls=document.querySelectorAll(e),this.cacheBustHrefEls=document.querySelectorAll(n),this.feedLastUpdatedTimeInDom=rw("feedLastUpdatedTime")}resetBadges(){Ob(this.badgeCountEls),Ob(this.badgeWithoutCountEls)}getBadges(){const e=this.feedLastUpdatedTimeInDom||"";return cm(e?Jf("/mwlite/badge-counts","feedQueryAfterTime",e):"/mwlite/badge-counts").then(t=>{const n=JSON.parse(t.responseText);$f(window,"badgesreceived",{feedsCount:n.feedsCount}),this._counts=n;const r=Pb();return"messaging"===r&&(this._counts.messagingCount=0),"feed"===r||e||(this._counts.feedsCount=2),this._counts.feedsCount=this._counts.feedsCount>=2?1:0,this._counts.lastUpdatedAt=(new Date).getTime(),this._updateCacheBustUrl(this._counts.feedsCount>0),this._renderBadges(),this}).catch(()=>{$f(window,"badgesreceived",{feedsCount:0})})}_renderBadges(){this.badgeCountEls.forEach(e=>{this._setBadgeCount(e,this._counts[e.dataset.badgeSource])}),this.badgeWithoutCountEls.forEach(e=>{this._setBadge(e,this._counts[e.dataset.badgeWithoutCountSource])})}_setBadgeCount(e,t){if(!e)return;const n=e.innerHTML;null==n&&t>0?(e.textContent=t,Rb(e)):t!==n&&(t>0?(e.textContent=t,Rb(e),e.classList.toggle("singular",t<=1)):Ab(e))}_setBadge(e,t){e&&(t>0?(Rb(e),e.classList.add("badge-with-no-count")):Ab(e))}_updateCacheBustUrl(e){rw("isSWCacheEnabled")&&this.cacheBustHrefEls&&this.cacheBustHrefEls.forEach(t=>{t.href=qE(e?Jf(t.href,"pwa","noCache"):em(t.href))})}}!function(){let e}();const C_=/\s+/,A_=/,$/;function R_(){const e=["^","(?:(?:https?)?:?//)?","(?:","(?!(?:10|127)(?:\\.\\d{1,3}){3})","(?!(?:169\\.254|192\\.168)(?:\\.\\d{1,3}){2})","(?!172\\.(?:1[6-9]|2\\d|3[0-1])(?:\\.\\d{1,3}){2})","(?:[1-9]\\d?|1\\d\\d|2[01]\\d|22[0-3])","(?:\\.(?:1?\\d{1,2}|2[0-4]\\d|25[0-5])){2}","(?:\\.(?:[1-9]\\d?|1\\d\\d|2[0-4]\\d|25[0-4]))","|","(?:(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)","(?:\\.(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)*","(?:\\.(?:[a-z\\u00a1-\\uffff]{2,}))",")","(?::\\d{2,5})?","(?:(?:/|\\?)\\S*)?","$"].join("");return new RegExp(e,"i")}var O_=function(){this.__data__=[],this.size=0};var N_=function(e,t){return e===t||e!=e&&t!=t},L_=N_;var x_=function(e,t){for(var n=e.length;n--;)if(L_(e[n][0],t))return n;return-1},P_=x_,M_=Array.prototype.splice;var D_=x_;var U_=x_;var B_=x_;var F_=O_,q_=function(e){var t=this.__data__,n=P_(t,e);return!(n<0)&&(n==t.length-1?t.pop():M_.call(t,n,1),--this.size,!0)},j_=function(e){var t=this.__data__,n=D_(t,e);return n<0?void 0:t[n][1]},H_=function(e){return U_(this.__data__,e)>-1},z_=function(e,t){var n=this.__data__,r=B_(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this};function G_(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}G_.prototype.clear=F_,G_.prototype.delete=q_,G_.prototype.get=j_,G_.prototype.has=H_,G_.prototype.set=z_;var W_=G_,K_=W_;var V_=function(){this.__data__=new K_,this.size=0};var Q_=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n};var X_=function(e){return this.__data__.get(e)};var J_=function(e){return this.__data__.has(e)},Y_="object"==typeof dm&&dm&&dm.Object===Object&&dm,Z_=Y_,$_="object"==typeof self&&self&&self.Object===Object&&self,eT=Z_||$_||Function("return this")(),tT=eT.Symbol,nT=tT,rT=Object.prototype,iT=rT.hasOwnProperty,oT=rT.toString,sT=nT?nT.toStringTag:void 0;var aT=function(e){var t=iT.call(e,sT),n=e[sT];try{e[sT]=void 0;var r=!0}catch(e){}var i=oT.call(e);return r&&(t?e[sT]=n:delete e[sT]),i},cT=Object.prototype.toString;var lT=aT,uT=function(e){return cT.call(e)},dT=tT?tT.toStringTag:void 0;var hT=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":dT&&dT in Object(e)?lT(e):uT(e)};var pT=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)},fT=hT,mT=pT;var vT=function(e){if(!mT(e))return!1;var t=fT(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t},gT=eT["__core-js_shared__"],yT=function(){var e=/[^.]+$/.exec(gT&&gT.keys&&gT.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();var bT=function(e){return!!yT&&yT in e},ET=Function.prototype.toString;var wT=vT,_T=bT,TT=pT,ST=function(e){if(null!=e){try{return ET.call(e)}catch(e){}try{return e+""}catch(e){}}return""},kT=/^\[object .+?Constructor\]$/,IT=Function.prototype,CT=Object.prototype,AT=IT.toString,RT=CT.hasOwnProperty,OT=RegExp("^"+AT.call(RT).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");var NT=function(e){return!(!TT(e)||_T(e))&&(wT(e)?OT:kT).test(ST(e))},LT=function(e,t){return null==e?void 0:e[t]};var xT=function(e,t){var n=LT(e,t);return NT(n)?n:void 0},PT=xT(eT,"Map"),MT=xT(Object,"create"),DT=MT;var UT=function(){this.__data__=DT?DT(null):{},this.size=0};var BT=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},FT=MT,qT=Object.prototype.hasOwnProperty;var jT=function(e){var t=this.__data__;if(FT){var n=t[e];return"__lodash_hash_undefined__"===n?void 0:n}return qT.call(t,e)?t[e]:void 0},HT=MT,zT=Object.prototype.hasOwnProperty;var GT=MT;var WT=UT,KT=BT,VT=jT,QT=function(e){var t=this.__data__;return HT?void 0!==t[e]:zT.call(t,e)},XT=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=GT&&void 0===t?"__lodash_hash_undefined__":t,this};function JT(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}JT.prototype.clear=WT,JT.prototype.delete=KT,JT.prototype.get=VT,JT.prototype.has=QT,JT.prototype.set=XT;var YT=JT,ZT=W_,$T=PT;var eS=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e};var tS=function(e,t){var n=e.__data__;return eS(t)?n["string"==typeof t?"string":"hash"]:n.map},nS=tS;var rS=tS;var iS=tS;var oS=tS;var sS=function(){this.size=0,this.__data__={hash:new YT,map:new($T||ZT),string:new YT}},aS=function(e){var t=nS(this,e).delete(e);return this.size-=t?1:0,t},cS=function(e){return rS(this,e).get(e)},lS=function(e){return iS(this,e).has(e)},uS=function(e,t){var n=oS(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this};function dS(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}dS.prototype.clear=sS,dS.prototype.delete=aS,dS.prototype.get=cS,dS.prototype.has=lS,dS.prototype.set=uS;var hS=W_,pS=PT,fS=dS;var mS=W_,vS=V_,gS=Q_,yS=X_,bS=J_,ES=function(e,t){var n=this.__data__;if(n instanceof hS){var r=n.__data__;if(!pS||r.length<199)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new fS(r)}return n.set(e,t),this.size=n.size,this};function wS(e){var t=this.__data__=new mS(e);this.size=t.size}wS.prototype.clear=vS,wS.prototype.delete=gS,wS.prototype.get=yS,wS.prototype.has=bS,wS.prototype.set=ES;var _S=wS,TS=xT,SS=function(){try{var e=TS(Object,"defineProperty");return e({},"",{}),e}catch(e){}}(),kS=SS;var IS=function(e,t,n){"__proto__"==t&&kS?kS(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n},CS=IS,AS=N_;var RS=function(e,t,n){(void 0!==n&&!AS(e[t],n)||void 0===n&&!(t in e))&&CS(e,t,n)};var OS=function(e){return function(t,n,r){for(var i=-1,o=Object(t),s=r(t),a=s.length;a--;){var c=s[e?a:++i];if(!1===n(o[c],c,o))break}return t}}(),NS={exports:{}};!function(e,t){var n=eT,r=t&&!t.nodeType&&t,i=r&&e&&!e.nodeType&&e,o=i&&i.exports===r?n.Buffer:void 0,s=o?o.allocUnsafe:void 0;e.exports=function(e,t){if(t)return e.slice();var n=e.length,r=s?s(n):new e.constructor(n);return e.copy(r),r}}(NS,NS.exports);var LS=eT.Uint8Array;var xS=function(e){var t=new e.constructor(e.byteLength);return new LS(t).set(new LS(e)),t};var PS=function(e,t){var n=t?xS(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)};var MS=function(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t},DS=pT,US=Object.create,BS=function(){function e(){}return function(t){if(!DS(t))return{};if(US)return US(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();var FS=function(e,t){return function(n){return e(t(n))}}(Object.getPrototypeOf,Object),qS=Object.prototype;var jS=function(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||qS)},HS=BS,zS=FS,GS=jS;var WS=function(e){return"function"!=typeof e.constructor||GS(e)?{}:HS(zS(e))};var KS=function(e){return null!=e&&"object"==typeof e},VS=hT,QS=KS;var XS=function(e){return QS(e)&&"[object Arguments]"==VS(e)},JS=KS,YS=Object.prototype,ZS=YS.hasOwnProperty,$S=YS.propertyIsEnumerable,ek=XS(function(){return arguments}())?XS:function(e){return JS(e)&&ZS.call(e,"callee")&&!$S.call(e,"callee")},tk=Array.isArray;var nk=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991},rk=vT,ik=nk;var ok=function(e){return null!=e&&ik(e.length)&&!rk(e)},sk=ok,ak=KS;var ck=function(e){return ak(e)&&sk(e)},lk={exports:{}};var uk=function(){return!1};!function(e,t){var n=eT,r=uk,i=t&&!t.nodeType&&t,o=i&&e&&!e.nodeType&&e,s=o&&o.exports===i?n.Buffer:void 0,a=(s?s.isBuffer:void 0)||r;e.exports=a}(lk,lk.exports);var dk=hT,hk=FS,pk=KS,fk=Function.prototype,mk=Object.prototype,vk=fk.toString,gk=mk.hasOwnProperty,yk=vk.call(Object);var bk=function(e){if(!pk(e)||"[object Object]"!=dk(e))return!1;var t=hk(e);if(null===t)return!0;var n=gk.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&vk.call(n)==yk},Ek=hT,wk=nk,_k=KS,Tk={};Tk["[object Float32Array]"]=Tk["[object Float64Array]"]=Tk["[object Int8Array]"]=Tk["[object Int16Array]"]=Tk["[object Int32Array]"]=Tk["[object Uint8Array]"]=Tk["[object Uint8ClampedArray]"]=Tk["[object Uint16Array]"]=Tk["[object Uint32Array]"]=!0,Tk["[object Arguments]"]=Tk["[object Array]"]=Tk["[object ArrayBuffer]"]=Tk["[object Boolean]"]=Tk["[object DataView]"]=Tk["[object Date]"]=Tk["[object Error]"]=Tk["[object Function]"]=Tk["[object Map]"]=Tk["[object Number]"]=Tk["[object Object]"]=Tk["[object RegExp]"]=Tk["[object Set]"]=Tk["[object String]"]=Tk["[object WeakMap]"]=!1;var Sk=function(e){return _k(e)&&wk(e.length)&&!!Tk[Ek(e)]};var kk=function(e){return function(t){return e(t)}},Ik={exports:{}};!function(e,t){var n=Y_,r=t&&!t.nodeType&&t,i=r&&e&&!e.nodeType&&e,o=i&&i.exports===r&&n.process,s=function(){try{var e=i&&i.require&&i.require("util").types;return e||o&&o.binding&&o.binding("util")}catch(e){}}();e.exports=s}(Ik,Ik.exports);var Ck=Sk,Ak=kk,Rk=Ik.exports,Ok=Rk&&Rk.isTypedArray,Nk=Ok?Ak(Ok):Ck;var Lk=function(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]},xk=IS,Pk=N_,Mk=Object.prototype.hasOwnProperty;var Dk=function(e,t,n){var r=e[t];Mk.call(e,t)&&Pk(r,n)&&(void 0!==n||t in e)||xk(e,t,n)},Uk=IS;var Bk=function(e,t,n,r){var i=!n;n||(n={});for(var o=-1,s=t.length;++o<s;){var a=t[o],c=r?r(n[a],e[a],a,n,e):void 0;void 0===c&&(c=e[a]),i?Uk(n,a,c):Dk(n,a,c)}return n};var Fk=/^(?:0|[1-9]\d*)$/;var qk=function(e,t){var n=typeof e;return!!(t=null==t?9007199254740991:t)&&("number"==n||"symbol"!=n&&Fk.test(e))&&e>-1&&e%1==0&&e<t},jk=function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r},Hk=ek,zk=tk,Gk=lk.exports,Wk=qk,Kk=Nk,Vk=Object.prototype.hasOwnProperty;var Qk=function(e,t){var n=zk(e),r=!n&&Hk(e),i=!n&&!r&&Gk(e),o=!n&&!r&&!i&&Kk(e),s=n||r||i||o,a=s?jk(e.length,String):[],c=a.length;for(var l in e)!t&&!Vk.call(e,l)||s&&("length"==l||i&&("offset"==l||"parent"==l)||o&&("buffer"==l||"byteLength"==l||"byteOffset"==l)||Wk(l,c))||a.push(l);return a};var Xk=pT,Jk=jS,Yk=function(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t},Zk=Object.prototype.hasOwnProperty;var $k=Qk,eI=function(e){if(!Xk(e))return Yk(e);var t=Jk(e),n=[];for(var r in e)("constructor"!=r||!t&&Zk.call(e,r))&&n.push(r);return n},tI=ok;var nI=function(e){return tI(e)?$k(e,!0):eI(e)},rI=Bk,iI=nI;var oI=RS,sI=NS.exports,aI=PS,cI=MS,lI=WS,uI=ek,dI=tk,hI=ck,pI=lk.exports,fI=vT,mI=pT,vI=bk,gI=Nk,yI=Lk,bI=function(e){return rI(e,iI(e))};var EI=_S,wI=RS,_I=OS,TI=function(e,t,n,r,i,o,s){var a=yI(e,n),c=yI(t,n),l=s.get(c);if(l)oI(e,n,l);else{var u=o?o(a,c,n+"",e,t,s):void 0,d=void 0===u;if(d){var h=dI(c),p=!h&&pI(c),f=!h&&!p&&gI(c);u=c,h||p||f?dI(a)?u=a:hI(a)?u=cI(a):p?(d=!1,u=sI(c,!0)):f?(d=!1,u=aI(c,!0)):u=[]:vI(c)||uI(c)?(u=a,uI(a)?u=bI(a):mI(a)&&!fI(a)||(u=lI(c))):d=!1}d&&(s.set(c,u),i(u,c,r,o,s),s.delete(c)),oI(e,n,u)}},SI=pT,kI=nI,II=Lk;var CI=function e(t,n,r,i,o){t!==n&&_I(n,(function(s,a){if(o||(o=new EI),SI(s))TI(t,n,a,r,e,i,o);else{var c=i?i(II(t,a),s,a+"",t,n,o):void 0;void 0===c&&(c=s),wI(t,a,c)}}),kI)};var AI=function(e){return e};var RI=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)},OI=Math.max;var NI=function(e,t,n){return t=OI(void 0===t?e.length-1:t,0),function(){for(var r=arguments,i=-1,o=OI(r.length-t,0),s=Array(o);++i<o;)s[i]=r[t+i];i=-1;for(var a=Array(t+1);++i<t;)a[i]=r[i];return a[t]=n(s),RI(e,this,a)}};var LI=function(e){return function(){return e}},xI=SS,PI=xI?function(e,t){return xI(e,"toString",{configurable:!0,enumerable:!1,value:LI(t),writable:!0})}:AI,MI=Date.now;var DI=function(e){var t=0,n=0;return function(){var r=MI(),i=16-(r-n);if(n=r,i>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}(PI),UI=AI,BI=NI,FI=DI;var qI=N_,jI=ok,HI=qk,zI=pT;var GI=function(e,t){return FI(BI(e,t,UI),e+"")},WI=function(e,t,n){if(!zI(n))return!1;var r=typeof t;return!!("number"==r?jI(n)&&HI(t,n.length):"string"==r&&t in n)&&qI(n[t],e)};var KI=CI;!function(e){GI((function(t,n){var r=-1,i=n.length,o=i>1?n[i-1]:void 0,s=i>2?n[2]:void 0;for(o=e.length>3&&"function"==typeof o?(i--,o):void 0,s&&WI(n[0],n[1],s)&&(o=i<3?void 0:o,i=1),t=Object(t);++r<i;){var a=n[r];a&&e(t,a,r,o)}return t}))}((function(e,t,n){KI(e,t,n)}));document.querySelector(".upload-progress"),document.querySelector("#progressVal");document.querySelector("#share-modal .progress-overlay");let VI={};document.querySelector("#share-modal"),document.querySelector("#share-modal .textarea"),document.querySelector("#share-modal .recommendations"),document.querySelector("#share-modal .full-page-header-share");const QI=document.querySelector("#image-upload-label"),XI=document.querySelector("#image-upload"),JI=document.querySelector("#image-upload-label .image-upload-btn"),YI=document.querySelector("#share-modal .post-title"),ZI=document.querySelector("#post-provider-info"),$I=document.querySelector("#post-link"),eC=document.querySelector("#post-image"),tC=document.querySelector("#share-modal .textarea"),nC=document.querySelector(".image-preview-wrapper"),rC=document.querySelector("#share-modal .modal-content .reshare-section"),iC=document.querySelector(".post-button"),oC=(document.querySelector("#share-modal .modal-content"),document.querySelector("#image-preview"),document.querySelector("#share-modal .upload-progress-header"),document.querySelector("#share-with-group"),document.querySelector("#share-with-network"),document.querySelector(".remove-image-preview"),document.querySelector("#share-modal .share-actions"),document.querySelector("#share-modal .close-button"),document.querySelector(".post-settings-wrapper"),document.querySelector("#visibility-settings-modal"),document.querySelector('input[name="share-with"]:checked'),document.querySelector("#visibility-header-back .close-button"),document.querySelector("#visibility-settings-modal .settings-list-wrapper"),document.querySelector("#discard-post-modal-wrapper"),document.querySelector("#retry-upload-modal-wrapper"),document.querySelector("#max-images-prompt-modal-wrapper"),document.querySelector("#comments-enabled"),document.querySelector("#comments-disabled"),document.querySelector("#share-with-public"),document.querySelector(".modal-spinner"),rw("loadingDescription"),rw("loadedDescription"),rw("i18n_file_load_error"),()=>{QI&&QI.classList.add("disabled"),Lb(XI),Lb(JI)}),sC=()=>{QI&&QI.classList.remove("disabled"),xb(XI),xb(JI)},aC=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};YI.textContent=e.title||"",ZI.textContent=e.providerInfo||"",e.resolvedUrl?$I.href=qE(e.resolvedUrl):$I.removeAttribute("href");const t=e.imageUrl;t&&""!==t?(eC.src=qE(t),Rb(eC)):Ab(eC)},cC=e=>{VI=e?{shareMediaContent:{article:e}}:{}};function lC(){var e;const t=null===(e=tC.innerText)||void 0===e?void 0:e.trim().length,n="loaded"===nC.getAttribute("data-image-load-state"),r=rC.children.length;t||n||r?xb(iC):Lb(iC)}Yf(e=>{const t=function(e){const t=e.split(C_),n=[];for(let e=0;e<t.length;e++)t[e].match(R_())&&n.push(t[e].replace(A_,""));return n}(e.target.innerText);t.length>0?Ub("".concat("/mwlite/url-preview/","?url=").concat(t[0],"&ingestionReason=").concat("SHARE")).then(e=>e&&JSON.parse(e.responseText)).then(e=>{aC(e),cC(e),oC()}).catch(()=>{aC(),sC(),cC()}):(aC(),cC(),sC()),lC()},300);class uC{constructor(e){this.storage=void 0===e?localStorage:e}read(e){const t=this.storage.getItem(e);if(t)try{return JSON.parse(t)}catch(e){console.error(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")}}uC.instance||(uC.instance=new uC(localStorage)),uC.instance,uC.sessionInstance||(uC.sessionInstance=new uC(sessionStorage)),uC.sessionInstance;let dC;Kf.getInstance().addUnloadCallback(()=>{dC&&dC.close(),Ab(document.querySelector("#discard-post-modal")),Ab(document.querySelector("#visibility-settings-modal")),Ab(document.querySelector("#max-images-prompt-modal")),Ab(document.querySelector("#retry-upload-modal"))});function hC(e){const t=e.target.value;e.target.classList.toggle("selected",t),e.target.focus()}function pC(e){if(e){const{id:t,labelText:n}=e.dataset;if(!t||!n)throw new Error("mandatory fields missing.");const r=e.querySelector("select");r&&(r.addEventListener("change",hC),r.value&&r.classList.add("selected"))}else{document.querySelectorAll(".dropdown-container").forEach(pC)}}function fC(e){const t=e.currentTarget.parentElement.querySelector("input");t.value="",t.classList.remove("selected"),t.focus(),$f(t,"input:cleared"),$f(t,"change")}function mC(e){const t=e.currentTarget.parentElement,n=t.dataset.placeholder,r=t.querySelector("input");n&&r.setAttribute("placeholder",n),r.removeEventListener("focus",mC)}function vC(e){const t=e.target.value;e.target.classList.toggle("selected",t)}function gC(e){if(e){const{id:t,labelText:n}=e.dataset;if(!t||!n)throw new Error("mandatory fields missing.");const r=e.querySelector("input"),i=e.querySelector(".right");r.addEventListener("change",vC),r.addEventListener("focus",mC),i&&i.addEventListener("click",fC)}else{document.querySelectorAll(".input-container").forEach(gC)}}const yC="MinLength",bC="MaxLength",EC="Regex",wC="Required",_C="RegexAllow",TC={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"}},SC="EMAIL_ADDRESS",kC="PHONE_NUMBER",IC="OTHER",CC="consentUnchecked",AC={INPUT:"INPUT",SELECT:"SELECT"},RC="text",OC="checkbox";function NC(e){return Object.keys(AC).includes(e.tagName)}function LC(e){const t=function(e){const t=[],{minLength:n,maxLength:r,inputType:i}=e.dataset;let o;switch(i){case IC:n&&t.push({type:yC,MinLength:n}),r&&t.push({type:bC,MaxLength:r});break;case SC:t.push({type:_C,RegexAllow:[TC.EMAIL]});break;case kC:o=e.value.replace(/ /g,""),t.push({type:_C,RegexAllow:[TC.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 wC:if(0===n.length)return wC;break;case yC:if(n.length<e[yC])return yC;break;case bC:if(n.length>e[bC])return bC;break;case EC:for(let t=0;t<e[EC].length;t++)if(e[EC][t].pattern.test(n))return EC+e[EC][t].errorCode;break;case _C:for(let t=0;t<e[_C].length;t++)if(!e[_C][t].pattern.test(n))return _C+e[_C][t].errorCode}})(e,n)).filter(e=>!!e)}function xC(e,t){return t&&!e?CC:null}const PC=(e,t)=>parseInt(t.split(e)[1]);function MC(e,t){return document.querySelector("#".concat(e.id,"-strings")).dataset["str".concat(t)]}const DC=(e,t)=>({questionId:e,textQuestionAnswer:{answer:t}}),UC=(e,t)=>({questionId:e,multipleChoiceAnswer:{options:[{index:t}]}});function BC(e){const t=e.id+"_",n=t+"q",r=t+"c";return new Promise((t,i)=>{const o=[],{urn:s,leadTrackingParams:a}=e.dataset,c={formResponse:{adFormUrn:s,submittedAt:Date.now(),answers:[],consentResponses:[]},trackingUrl:a,trackingAction:"LEAD_FORM_CLICK"};return Array.from(e).filter(NC).forEach(e=>{let t;if(e.tagName===AC.SELECT)t=((e,t)=>{const n=PC(e,t.id),r=t.selectedIndex;return{response:UC(n,r)}})(n,e),c.formResponse.answers.push(t.response);else if(e.type===RC)if(t=((e,t)=>{const n=PC(e,t.id),r=LC(t);return 0!==r.length?{errors:r}:{response:DC(n,t.value)}})(n,e),t.response)c.formResponse.answers.push(t.response);else{const n=t.errors[0];o.push({element:e,errorType:n})}else e.type===OC&&(t=((e,t,n,r)=>{const i=PC(e,t),o=xC(n,r);return o?{errors:o}:{response:{consentId:i,accepted:n}}})(r,e.id,e.checked,e.required),t.response?c.formResponse.consentResponses.push(t.response):o.push({element:e,errorType:t.errors}))}),0===o.length?t(c):i(o)})}class FC{constructor(e){let{isLivePreview:t=!1}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!e)throw new Error("containerEl is not present");gC(),pC(),Bb("form-modal-description__content-truncated",".form-modal-description__btn-truncation",e),this.containerEl=e,this.formEl=e.querySelector("form");const n=e.querySelector(".lead-gen-modal");this.modal=new sw(n,{triggerByOutletEl:!t,shouldMoveToTopContainer:!1}),t?this.showForm():this._bindEvents()}showForm(){this.modal.open()}hideForm(){this.modal.close()}_clearFormErrors(){Array.from(this.formEl).filter(NC).map(e=>this._hideError(e))}_submitForm(){this._clearFormErrors(),BC(this.formEl).then(e=>{$f(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();am(MC(t.element,t.errorType),sm.ASSERTIVE)}})}_hideError(e){if(e){const t=e.closest(".lead-gen-input-container"),n=t.querySelector(".error-text");Ab(n),t.classList.remove("input-error"),e.removeAttribute("aria-invalid"),n.removeAttribute("role")}}_setAndShowError(e,t){if(e){const n=MC(e,t),r=e.closest(".lead-gen-input-container"),i=r.querySelector(".error-text");i.innerText=n,Rb(i),r.classList.add("input-error"),i.setAttribute("role","alert"),e.setAttribute("aria-invalid","true")}}_handleInputError(e){let t;if(this._hideError(e),e.type===OC)t=xC(e.checked,e.required);else if(e.type===RC){const n=LC(e);n&&n.length&&(t=n[0])}t&&this._setAndShowError(e,t)}_bindEvents(){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.formEl.querySelector(".submit-btn").addEventListener("click",e=>{e.preventDefault(),e.stopPropagation(),this._submitForm()})}}vm(FC,"LEAD_GEN_SUBMIT_EVENT","FormModal:LeadGen:submit");function qC(){let{endpoint:e,headers:t={"Content-Type":"application/json"},queryId:n,variables:r={}}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return cm(e,{method:"POST",headers:t,postData:JSON.stringify({queryId:n,variables:r})})}class jC{constructor(e){if(!e)throw Error("Missing FollowMutation endpoint");this.endpoint=e}execute(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:()=>{},r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:()=>{};qC({endpoint:this.endpoint,queryId:jC.query,variables:{followState:e,to:t}}).then(e=>{const{responseText:t}=e;n(JSON.parse(t).graphQL)}).catch(r)}}vm(jC,"query","cbed571fffd8cea15209aed8d44e6759");const HC=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(HC));const zC="CREATE",GC="UPDATE";class WC{constructor(e){if(!e)throw Error("Missing ReactionMutation endpoint");this.endpoint=e}execute(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:()=>{},i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:()=>{};const o={endpoint:this.endpoint,queryId:WC.query,variables:{entityUrn:t,action:n}};n!==zC&&n!==GC||(o.variables.reactionType=e),qC(o).then(e=>{const{responseText:t}=e;r(JSON.parse(t).graphQL)}).catch(i)}}vm(WC,"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({HTML:"html",TEXT:"text",DATA:"data"}),Object.freeze({DESKTOP:"desktop",IOS:"ios",ANDROID:"android"});HTMLElement;const KC="learning-".concat("search__button"),VC=".".concat("base-search-bar","[").concat('data-searchbar-type="LEARNING"',"] .").concat("base-search-bar__form"),QC="".concat(VC,' .search-input input[name="keywords"]'),XC="".concat(VC,' input[name="sortBy"]'),JC=".".concat(KC,"[").concat('data-searchbar-type="LEARNING"',"]");class YC{constructor(e){if(!e)throw Error("An element must be provided to LearningSearch");this.el=e;const t=this.el.querySelector(VC),n=this.el.querySelector(QC),r=this.el.querySelector(XC),i=this.el.querySelector(JC);t&&i&&(i.addEventListener("click",()=>{t.dispatchEvent(new Event("submit"))}),t.addEventListener("submit",()=>{n.value.length&&r.remove(),t.submit()}))}}function ZC(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function $C(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function eA(e,t,n){return t&&$C(e.prototype,t),n&&$C(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function tA(e){return(tA=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function nA(e,t){return(nA=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function rA(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function iA(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=tA(e);if(t){var i=tA(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return rA(this,n)}}function oA(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,i,o=[],s=!0,a=!1;try{for(n=n.call(e);!(s=(r=n.next()).done)&&(o.push(r.value),!t||o.length!==t);s=!0);}catch(e){a=!0,i=e}finally{try{s||null==n.return||n.return()}finally{if(a)throw i}}return o}(e,t)||aA(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 sA(e){return function(e){if(Array.isArray(e))return cA(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||aA(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 aA(e,t){if(e){if("string"==typeof e)return cA(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)?cA(e,t):void 0}}function cA(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var lA="aria-[a-z0-9_\\-]+|class|data-[a-z0-9_\\-]+|dir|id|role|tabindex",uA=function(){if("undefined"==typeof document)return!0;return"textContent"in document.createElement("div")}()?"textContent":"innerText",dA=["b","del","em","i","s","strong","sub","sup"],hA=dA.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"]),pA=[lA,"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("|"),fA=eA((function e(){ZC(this,e)}));function mA(e,t){return Object.prototype.hasOwnProperty.call(e,t)}var vA=function(){var e=/[&<>"'\u0000\\=]/g,t={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","\0":"�","\\":"&#92;","=":"&#61;"};return function(n){return null==n?null:n.toString().replace(e,(function(e){return function(e){return e in t}(e)?t[e]:e}))}}(),gA=function(){if("undefined"==typeof document)return function(){throw new Error("document is undefined (i.e. you are probably in Node.js)")};var e,t=document.createElement("div"),n=/&(?:([a-z0-9]+)|#x([\da-f]{1,6})|#(\d{1,8}));/gi,r={nbsp:" ",lt:"<",gt:">",amp:"&",quot:'"'};function i(e){if(function(e){return mA(r,e)}(e))return r[e];t.innerHTML="&".concat(e,";");var n=t[uA];return r[e]=n,n}return e="function"==typeof String.fromCodePoint?function(e){return String.fromCodePoint(e)}:function(e){return e<=65535?String.fromCharCode(e):"�"},function(t){return null==t?null:(t+"").replace(n,(function(t,n,r,o){return n?i(n):r||o?e(parseInt(r||o,r?16:10)||65533):"�"}))}}();function yA(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"log",n="undefined"!=typeof window;if(n&&window&&window.jet&&"error"===t.toLowerCase())try{throw new Error(e)}catch(e){try{window.jet.error(e)}catch(e){}}"undefined"!=typeof console&&"function"==typeof console[t]&&console[t](e)}function bA(e){return/[<&]/.test(e)}function EA(e){e=Array.isArray(e)?e:[e];var t,n,r,i=0,o="<(?!/?";return o+="(?:",e.forEach((function(e,s){t=e.tags||hA,n=e.attrs||pA,r=e.checkUrlAttrs||!1,0!==s&&(o+="|"),o+="(?:"+t.join("|")+")",o+="(?:",o+="[ \t\r\n]*",o+="|[ \t\r\n]+",o+="(?:(?:",o+="(?:".concat(n,")(?:=([\"'])[^'\"<>]*\\").concat(++i,")?"),r&&(o+="|(?:".concat("href|src",")=([\"'])(?:(?:").concat("https?|ftp|mailto|invalid",")(?::|&#(?:58|x3a);)|(?:").concat("data:image/(?:gif|jpg|jpeg|png);base64,",")|[/.#?]|&#(?:35|4[67]|63|x(?:2[3ef]|3f));)[^'\"<>]*\\").concat(++i)),o+=")[ \t\r\n]*)+",o+=")"})),o+=")",o+="/?>)",new RegExp(o,"i")}function wA(e){return EA({tags:e=e||hA,checkUrlAttrs:!0})}function _A(e,t){var n=(t=t||{}).allowTags,r=!1!==t.hasCustomElementMarkup;return n&&n.length>0?!wA(n).test(e):r?!_A.R_UNSAFE_CUSTOM_ELEMENT.test(e):!_A.R_UNSAFE_HTML.test(e)}function TA(e){return e.replace(/<[^>]*>|[<>'"&\\]/g,"")}_A.R_UNSAFE_HTML=wA(),_A.R_UNSAFE_CUSTOM_ELEMENT=function(){var e={tag:"li-icon",attrs:"active|a11y-text|animate|color|size|type"};return EA([{tags:hA,checkUrlAttrs:!0},{tags:[e.tag],attrs:[lA,e.attrs].join("|"),checkUrlAttrs:!1}])}();var SA={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,"",""]},kA=/<([\w:]+)/;function IA(e,t){var n,r,i,o,s,a=t.createDocumentFragment(),c=[];for(i=0,s=e.length;i<s;i++)if(r=e[i])if("string"==typeof r){n=n||a.appendChild(t.createElement("div"));var l=oA(kA.exec(r)||["",""],2)[1];if(void 0!==l){var u=l.toLowerCase(),d=u in SA&&SA[u]||SA._default;for(OA(n,d[1]+r+d[2]),o=d[0];o--;)n&&n.lastChild&&n.lastChild.nodeType===Node.ELEMENT_NODE&&(n=n.lastChild);c.push.apply(c,sA(Array.from(n.childNodes))),(n=a.firstChild)&&(n.textContent="")}}else r instanceof Node&&c.push(r);for(a.textContent="",r=c[i=0];r;)a.appendChild(r),r=c[++i];return a}function CA(e,t,n){e=e.toString();var r=t?function(e,t){var n={};return e.replace(/\{([^}]+)\}/g,(function(e,r){if(mA(n,r))return n[r];if(mA(t,r)){var i=t[r],o="string"==typeof i;if(!o&&!(i instanceof fA)&&!("number"==typeof i))throw new Error("Only strings, numbers, and jSecure types are allowed as placeholder replacements.");return i?(i=o?"".concat(vA(i)):i.toString(),n[r]=i,i):e}return e}))}(e,t):e,i=e;return bA(r)&&!_A(r,n)&&(r=TA(r),yA("Content contains tags or attributes that are not allowed:\nContent: "+i,"error")),r}var AA=CA,RA=CA;function OA(e,t,n){var r=CA(t,n);return r&&bA(r)?e.innerHTML=r:r&&(e[uA]=r),r}var NA=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&nA(e,t)}(n,e);var t=iA(n);function n(e){var r,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return ZC(this,n),(r=t.call(this)).options=i,r.tags=r.options.allowTags?r.options.allowTags.flat():[],r.str=e,r}return eA(n,[{key:"toString",value:function(){var e=this.str,t=this.strValue,n=e;return void 0!==t?t:(_A(e,{allowTags:this.tags,hasCustomElementMarkup:this.options.hasCustomElementMarkup})||(n=e,e=TA(e),yA("UnsafeString contains tags or attributes that are not allowed.\nString: "+n,"error")),this.strValue=e,e)}}]),n}(fA);var LA=/ /g,xA=/[\s\u0000<>"]|%00/,PA=/\\/,MA=/([.]|%2e){2}/i,DA=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 UA(e){var t;if("string"!=typeof e)return yA("jSecure Warning: url must be a string","error"),"invalid://";if((t=e.trim()).indexOf(" ")>-1&&(yA("jSecure Warning: url should not contain spaces: "+e,"warn"),t=t.replace(LA,"+")),!DA.test(t))return yA("jSecure Error: URL should be absolute with allowed schemas, relative, a hash fragment or query string. "+e,"error"),"invalid://";if(xA.test(t))return yA("jSecure Error: not valid url character found in url: "+e,"error"),"invalid://";var n,r=t.split("?")[0],i=!1;if(r){try{if(n=decodeURI(r),MA.test(n))return yA("jSecure Error: malicious data found in url path: "+r,"error"),"invalid://"}catch(e){i=!0}if(i)return yA("jSecure Error: malformed url path detected: "+r),"invalid://";if(PA.test(r)||MA.test(r))return yA("jSecure Error: malicious data found in url path: "+r,"error"),"invalid://"}return e}var BA={redirect:function(e){window&&(window.location.href=e)}};var FA={ALLOWED_TAGS:hA,FORMATTING_TAGS:dA,htmlEncode:vA,htmlUnencode:gA,log:yA,mk:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var i,o="",s=n.length;return e&&e.forEach((function(e,t){o+=e,t<s&&(i=n[t],o+=i instanceof NA?i:vA(i))})),"".concat(RA(o))},parseHTML:function(e,t){var n;if(t=t||document.implementation&&document.implementation.createHTMLDocument?document.implementation.createHTMLDocument(""):document,"string"==typeof e)n=IA([e],t);else{if(!Array.isArray(e))return e;n=IA(e,t)}return Array.from(n.childNodes)},parseSelector:function(e){return"string"==typeof e&&/^(?:\s*(<[\w\W]+>)[^>]*)$/.test(e)?[]:e},processTemplate:AA,reEncode:function(e){return vA(gA(e))},_redirector:BA,redirect:function(e){var t=UA(e);t===e&&BA.redirect(t)},sanitizeHTML:RA,sanitizeUrl:UA,setElementContent:OA,unsafe:function(e){return e},UnsafeString:function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this instanceof e||console.warn("Calling 'UnsafeString' without the 'new' keword is deprecated"),new NA(t,n)}};const{addQueryParam:qA}=V,jA="[".concat("data-upsell-impression-id","]");function HA(){let{trackingInstance:e,visibleElements:t=[]}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const n="lil_upsell",r="_teambuy";for(const i of t){const t=i.getAttribute("data-upsell-impression-id"),o=t&&t.startsWith(n),s=t&&t.endsWith(r)?"TEAM_BUY":"CONSUMER_SUBSCRIPTION";if(o){const n=e.generateTrackingId(),r=document.querySelector("[data-tracking-control-name=".concat(t,"]"));r.href=zA(n,r);const i={header:{pageInstance:e},trackingId:n,upsellType:s,upsellTrackingCode:t};e.fireTrackingEvent("LearningUpsellImpressionV2Event",i)}}}function zA(e,t){const n=qA(t.href,"upsellTrackingId",e,!0);return FA.sanitizeUrl(n)}new class{constructor(){window.tracking&&window.tracking.then(e=>{Na(e).trackPageView()}),new zs(document.querySelector(".search-bar"),{typeaheadApiBaseUrl:"/homepage-guest/api/typeaheadHits"}),new ce(document.querySelector(".language-selector"));const e=document.querySelector(".qualaroo");e&&new Wc(e)}},window.tracking.then(e=>{window.upsellImpressionTracking=new Nw(window.IntersectionObserver,e,{componentList:[...document.querySelectorAll(jA)],onImpression:HA})});const GA=document.querySelector(".learning-search");GA&&new YC(GA);const WA=[...document.querySelectorAll('[data-test-id="popular-topics"]')],KA=e=>e.querySelector("a");WA.forEach(e=>{e.querySelector(".show-more-less")&&new Fc(e.querySelector(".show-more-less"),KA)});const VA=[...document.querySelectorAll(".slide-list")].map(e=>new zi(e)),QA=document.querySelector(".tabs");QA&&(new Vi(QA),QA.addEventListener("click",()=>{!function(e){e.forEach(e=>{const t=e._el;t&&null!==t.offsetParent&&e._initCalc()})}(VA)})),new Vc})();