/*! For license information please see productDetailsPage.js.LICENSE.txt */
!function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=20)}([function(e,t,n){"use strict";(function(e,r){function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var s;n.d(t,"a",(function(){return $})),n.d(t,"b",(function(){return ls})),n.d(t,"c",(function(){return cc})),n.d(t,"d",(function(){return re})),n.d(t,"e",(function(){return ms})),n.d(t,"f",(function(){return ae})),n.d(t,"g",(function(){return Hi})),n.d(t,"h",(function(){return cs})),n.d(t,"i",(function(){return Ds})),n.d(t,"j",(function(){return fc})),n.d(t,"k",(function(){return Ja})),n.d(t,"l",(function(){return Mi})),n.d(t,"m",(function(){return Ls})),n.d(t,"n",(function(){return os})),n.d(t,"o",(function(){return P})),n.d(t,"p",(function(){return ee})),n.d(t,"q",(function(){return pc}));var a,c,l,u={ADVERTISING:"ADVERTISING",ANALYTICS_AND_RESEARCH:"ANALYTICS_AND_RESEARCH",FUNCTIONAL:"FUNCTIONAL"},h="GUEST",d="MEMBER",p=0,f=1,m=2,g=(o(s={},h,"li_gc"),o(s,d,"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,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;for(var s in i(this,e),t=t||{},this.consentAvailable=!1,this.issuedAt=n,this.userMode=r,this.optedInConsentMap={},u)t[s]=t[s]||p,t[s]!==p&&(this.consentAvailable=!0),this.optedInConsentMap[s]=t[s]===f||t[s]===p&&o===f});a=[u.ADVERTISING,u.ANALYTICS_AND_RESEARCH,u.FUNCTIONAL],c=[p,f,m,p],l=new RegExp(["^(\\d+)","(\\d+)","(\\d+)","((?:.|\\s)+)"].join(";")),new RegExp(["^(\\d+)","((?:.|\\s)+)"].join(";"));window.encodeURIComponent;function v(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 y(e){"complete"===document.readyState?e():window.addEventListener("load",()=>{setTimeout(e)})}class b{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 E=function(){let e;return{getInstance:function(){return e||(e=new b),e}}}();class _{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 w=function(){let e;return{getInstance:function(){return e||(e=new _),e}}}();function T(e){return null==e||"object"!=typeof e?[]:Array.prototype.slice.call(e)}function S(e){const t=e.getBoundingClientRect(),n=window.innerHeight||document.documentElement.clientHeight,r=window.innerWidth||document.documentElement.clientWidth,i=t.top<=n&&t.top+t.height>=0,o=t.left<=r&&t.left+t.width>=0;return i&&o}function I(){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,i=arguments.length>2?arguments[2]:void 0;return i?e<=t*r:e>=n-(t+t*r)}function k(e,t,n){const r=new RegExp("([\\?&])".concat(n?t:encodeURIComponent(t),"=([^&#]*)")).exec(e);return r&&(n?r[2]:decodeURIComponent(r[2]))}function C(e,t){return A(e,"trk",t)}function A(e,t,n,r){if(!e||!t)throw new Error("Required param of addQueryParam missing: url = ".concat(e,",  key = ").concat(t));t=encodeURIComponent(t),n=encodeURIComponent(n);const i=k(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 L(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 R(e){const t=document.cookie.match(new RegExp("(^| )"+e+"=([^;]+)"));return t&&t[2]}function O(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 N(){let e,t;const n=new Promise((n,r)=>{e=n,t=r});return n.resolve=e,n.reject=t,n}function x(e){return"string"!=typeof e?null:e.split("?")[0]}var P=Object.freeze({__proto__:null,closest:v,onload:y,UnloadHandler:E,PagehideHandler:w,makeArray:T,outerWidth:function(e){let t=e.offsetWidth,n=getComputedStyle(e);return t+=(parseInt(n.marginLeft,10)||0)+(parseInt(n.marginRight,10)||0),t},elementInViewport:S,hasElementScrolledToThreshold:I,getQueryParam:k,addTrackingCode:C,addQueryParam:A,debounce:L,getCookie:R,dispatchCustomEvent:O,getDeferredPromise:N,isDocumentHidden:function(e){return void 0!==e.msHidden?e.msHidden:void 0!==e.hidden?e.hidden:void 0},stripQueryParams:x});function M(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 D(e){let t=e.querySelector('meta[name="linkedin:pageTag"]');return t&&t.content||""}function B(e){let t=e.querySelector('meta[name="locale"]');return t&&t.content||""}function U(e){let t=e.domain;return t?t.split(".").slice(-2).join("."):""}function F(e){return e&&'"'===e.charAt(0)&&'"'===e.charAt(e.length-1)?e.slice(1,-1):e}const q={ARROW_DOWN:"ArrowDown",ARROW_LEFT:"ArrowLeft",ARROW_RIGHT:"ArrowRight",ARROW_UP:"ArrowUp",ESCAPE:"Escape",ENTER:"Enter",SPACEBAR:" ",TAB:"Tab"},H={Down:q.ARROW_DOWN,Right:q.ARROW_RIGHT,Left:q.ARROW_LEFT,Up:q.ARROW_UP,Esc:q.ESCAPE,Spacebar:q.SPACEBAR,Tab:q.TAB};function j(e){return H[e]||e}class z{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(j(e.key)){case q.ENTER:case q.SPACEBAR:e.preventDefault(),this.isOpen?this.close():this._open(e);break;case q.ARROW_UP:this.isOpen||this._open(e);break;case q.ARROW_DOWN:this.isOpen&&this.close()}}_onKeyUp(e){j(e.key)===q.SPACEBAR&&e.preventDefault()}_onKeyDown(e){const t=j(e.key);if(t===q.ESCAPE&&this.isOpen)this.close();else if(this._isList){let n;switch(t){case q.SPACEBAR:O(e.target,"click");break;case q.ARROW_LEFT:case q.ARROW_UP:n=v(e.target,"li");let t=n.previousElementSibling;t&&O(t,"focusEl");break;case q.ARROW_RIGHT:case q.ARROW_DOWN:n=v(e.target,"li");let r=n.nextElementSibling;r&&O(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)),O(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)),O(this.el,"close"),e&&this.mainButton.focus())}}let W,G;const K=['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 V(e){const t=window.getComputedStyle(e);return"hidden"===t.visibility||"none"===t.display}function Y(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?!V(e):r&&r.get(e)?r.get(e):(V(e)?t=!1:e.parentNode&&(t=Y(e.parentNode,n,r)),r&&r.set(e,t),t)}const Q={POLITE:"polite",ASSERTIVE:"assertive"};function J(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Q.POLITE;W&&(W.removeAttribute("aria-hidden"),W.setAttribute("aria-live",Q.POLITE),W.textContent="",W.textContent=e,W.setAttribute("aria-live",t),clearTimeout(G),G=setTimeout(()=>{W.removeAttribute("aria-live"),W.setAttribute("aria-hidden","true")},1e4))}const X=".".concat("collapsible-dropdown","__list"),Z=".".concat("collapsible-dropdown","__button");class ${constructor(e){let{getFocusItemFromListItem:t=(e=>e.querySelector(K)),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(X),!n){const e=this.dropdownContentEl===this.dropdownContentEl.parentElement.querySelector(K),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(Z),this.hideClass="hidden",this.collapsible=new z(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 ee(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=R("JSESSIONID");e&&c.setRequestHeader("Csrf-Token",F(e))}c.send(o)});return s&&(a.length?te(l,e,c,a):console.warn("Please set the value for the option pemDegradationTrackingMetadata when PEM is enabled.")),l}function te(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?ne(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 ne(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 re{constructor(e){if(!e)throw Error("An element must be provided to LanguageSelector");this._el=e,this.listEl=this._el.querySelector(".collapsible-dropdown__list"),this.dropdownTriggerEl=this._el.querySelector(".language-selector__button"),this.currentListItem=this.listEl.querySelector(".language-selector__link--selected"),this.collapsibleDropdown=new $(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=F(R("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}(U(document));return ee("".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 ie="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==r?r:"undefined"!=typeof self?self:{},oe=(parseInt,"object"==typeof ie&&ie&&ie.Object===Object&&ie),se="object"==typeof self&&self&&self.Object===Object&&self;oe||se||Function("return this")(),Object.prototype.toString,Math.max,Math.min;class ae{constructor(){const e=document.querySelector(".member-nav-menu");if(!e)throw Error("The member header should have a dropdown element");const t=document.querySelector('[data-id="member-nav-header__link-item-me"]');this.collapsibleDropdown=new $(e,{dropdownTriggerEl:t}),this.searchEl=document.querySelector('[data-id="member-nav-header__search"]'),this.searchEl&&(this.searchEl.addEventListener("focusin",()=>this.searchEl.classList.add("member-nav-header__search--focused")),this.searchEl.addEventListener("focusout",()=>this.searchEl.classList.remove("member-nav-header__search--focused")))}}function ce(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 le(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ce(Object(n),!0).forEach((function(t){ue(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ce(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function ue(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function he(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}const de="light",pe="dark";function fe(){const e=document.getElementById("config");let t;return e&&e.dataset&&(t=e.dataset.theme),t?document.documentElement.classList.contains("dark")?pe:de:void 0}var me;function ge(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)||Te(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 ve(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=Te(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 ye(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function be(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Ee(e,t,n){return t&&be(e.prototype,t),n&&be(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function _e(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function we(e){return function(e){if(Array.isArray(e))return Se(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||Te(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 Te(e,t){if(e){if("string"==typeof e)return Se(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)?Se(e,t):void 0}}function Se(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 Ie(e){return(Ie="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 ke,Ce=new Uint8Array(16);function Ae(){if(!ke&&!(ke="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 ke(Ce)}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 Re(e){return"string"==typeof e&&Le.test(e)}for(var Oe=[],Ne=0;Ne<256;++Ne)Oe.push((Ne+256).toString(16).substr(1));function xe(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=(Oe[e[t+0]]+Oe[e[t+1]]+Oe[e[t+2]]+Oe[e[t+3]]+"-"+Oe[e[t+4]]+Oe[e[t+5]]+"-"+Oe[e[t+6]]+Oe[e[t+7]]+"-"+Oe[e[t+8]]+Oe[e[t+9]]+"-"+Oe[e[t+10]]+Oe[e[t+11]]+Oe[e[t+12]]+Oe[e[t+13]]+Oe[e[t+14]]+Oe[e[t+15]]).toLowerCase();if(!Re(n))throw TypeError("Stringified UUID is invalid");return n}function Pe(e){if(!Re(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 Me(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=Pe(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 xe(s)}try{r.name=e}catch(e){}return r.DNS="6ba7b810-9dad-11d1-80b4-00c04fd430c8",r.URL="6ba7b811-9dad-11d1-80b4-00c04fd430c8",r}function De(e){return 14+(e+64>>>9<<4)+1}function Be(e,t){var n=(65535&e)+(65535&t);return(e>>16)+(t>>16)+(n>>16)<<16|65535&n}function Ue(e,t,n,r,i,o){return Be((s=Be(Be(t,e),Be(r,o)))<<(a=i)|s>>>32-a,n);var s,a}function Fe(e,t,n,r,i,o,s){return Ue(t&n|~t&r,e,t,i,o,s)}function qe(e,t,n,r,i,o,s){return Ue(t&r|n&~r,e,t,i,o,s)}function He(e,t,n,r,i,o,s){return Ue(t^n^r,e,t,i,o,s)}function je(e,t,n,r,i,o,s){return Ue(n^(t|~r),e,t,i,o,s)}function ze(e,t,n){var r=(e=e||{}).random||(e.rng||Ae)();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 xe(r)}function We(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 Ge(e,t){return e<<t|e>>>32-t}Me("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[De(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=Fe(n,r,i,o,e[s],7,-680876936),o=Fe(o,n,r,i,e[s+1],12,-389564586),i=Fe(i,o,n,r,e[s+2],17,606105819),r=Fe(r,i,o,n,e[s+3],22,-1044525330),n=Fe(n,r,i,o,e[s+4],7,-176418897),o=Fe(o,n,r,i,e[s+5],12,1200080426),i=Fe(i,o,n,r,e[s+6],17,-1473231341),r=Fe(r,i,o,n,e[s+7],22,-45705983),n=Fe(n,r,i,o,e[s+8],7,1770035416),o=Fe(o,n,r,i,e[s+9],12,-1958414417),i=Fe(i,o,n,r,e[s+10],17,-42063),r=Fe(r,i,o,n,e[s+11],22,-1990404162),n=Fe(n,r,i,o,e[s+12],7,1804603682),o=Fe(o,n,r,i,e[s+13],12,-40341101),i=Fe(i,o,n,r,e[s+14],17,-1502002290),n=qe(n,r=Fe(r,i,o,n,e[s+15],22,1236535329),i,o,e[s+1],5,-165796510),o=qe(o,n,r,i,e[s+6],9,-1069501632),i=qe(i,o,n,r,e[s+11],14,643717713),r=qe(r,i,o,n,e[s],20,-373897302),n=qe(n,r,i,o,e[s+5],5,-701558691),o=qe(o,n,r,i,e[s+10],9,38016083),i=qe(i,o,n,r,e[s+15],14,-660478335),r=qe(r,i,o,n,e[s+4],20,-405537848),n=qe(n,r,i,o,e[s+9],5,568446438),o=qe(o,n,r,i,e[s+14],9,-1019803690),i=qe(i,o,n,r,e[s+3],14,-187363961),r=qe(r,i,o,n,e[s+8],20,1163531501),n=qe(n,r,i,o,e[s+13],5,-1444681467),o=qe(o,n,r,i,e[s+2],9,-51403784),i=qe(i,o,n,r,e[s+7],14,1735328473),n=He(n,r=qe(r,i,o,n,e[s+12],20,-1926607734),i,o,e[s+5],4,-378558),o=He(o,n,r,i,e[s+8],11,-2022574463),i=He(i,o,n,r,e[s+11],16,1839030562),r=He(r,i,o,n,e[s+14],23,-35309556),n=He(n,r,i,o,e[s+1],4,-1530992060),o=He(o,n,r,i,e[s+4],11,1272893353),i=He(i,o,n,r,e[s+7],16,-155497632),r=He(r,i,o,n,e[s+10],23,-1094730640),n=He(n,r,i,o,e[s+13],4,681279174),o=He(o,n,r,i,e[s],11,-358537222),i=He(i,o,n,r,e[s+3],16,-722521979),r=He(r,i,o,n,e[s+6],23,76029189),n=He(n,r,i,o,e[s+9],4,-640364487),o=He(o,n,r,i,e[s+12],11,-421815835),i=He(i,o,n,r,e[s+15],16,530742520),n=je(n,r=He(r,i,o,n,e[s+2],23,-995338651),i,o,e[s],6,-198630844),o=je(o,n,r,i,e[s+7],10,1126891415),i=je(i,o,n,r,e[s+14],15,-1416354905),r=je(r,i,o,n,e[s+5],21,-57434055),n=je(n,r,i,o,e[s+12],6,1700485571),o=je(o,n,r,i,e[s+3],10,-1894986606),i=je(i,o,n,r,e[s+10],15,-1051523),r=je(r,i,o,n,e[s+1],21,-2054922799),n=je(n,r,i,o,e[s+8],6,1873313359),o=je(o,n,r,i,e[s+15],10,-30611744),i=je(i,o,n,r,e[s+6],15,-1560198380),r=je(r,i,o,n,e[s+13],21,1309151649),n=je(n,r,i,o,e[s+4],6,-145523070),o=je(o,n,r,i,e[s+11],10,-1120210379),i=je(i,o,n,r,e[s+2],15,718787259),r=je(r,i,o,n,e[s+9],21,-343485551),n=Be(n,a),r=Be(r,c),i=Be(i,l),o=Be(o,u)}return[n,r,i,o]}(function(e){if(0===e.length)return[];for(var t=8*e.length,n=new Uint32Array(De(t)),r=0;r<t;r+=8)n[r>>5]|=(255&e[r/8])<<r%32;return n}(e),8*e.length))})),Me("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 h=0;h<s;++h){for(var d=new Uint32Array(80),p=0;p<16;++p)d[p]=a[h][p];for(var f=16;f<80;++f)d[f]=Ge(d[f-3]^d[f-8]^d[f-14]^d[f-16],1);for(var m=n[0],g=n[1],v=n[2],y=n[3],b=n[4],E=0;E<80;++E){var _=Math.floor(E/20),w=Ge(m,5)+We(_,g,v,y)+b+t[_]+d[E]>>>0;b=y,y=v,v=Ge(g,30)>>>0,g=m,m=w}n[0]=n[0]+m>>>0,n[1]=n[1]+g>>>0,n[2]=n[2]+v>>>0,n[3]=n[3]+y>>>0,n[4]=n[4]+b>>>0}return[n[0]>>24&255,n[0]>>16&255,n[0]>>8&255,255&n[0],n[1]>>24&255,n[1]>>16&255,n[1]>>8&255,255&n[1],n[2]>>24&255,n[2]>>16&255,n[2]>>8&255,255&n[2],n[3]>>24&255,n[3]>>16&255,n[3]>>8&255,255&n[3],n[4]>>24&255,n[4]>>16&255,n[4]>>8&255,255&n[4]]}));var Ke=null;if("undefined"==typeof crypto||!crypto.getRandomValues){var Ve=("undefined"!=typeof FastBoot?FastBoot.require:require)("crypto");if(Ve){var Ye=new Uint8Array(256),Qe=Ye.length;Ke={rng:function(){return Qe>Ye.length-16&&(Ve.randomFillSync(Ye),Qe=0),Ye.slice(Qe,Qe+=16)}}}}"object"===("undefined"==typeof crypto?"undefined":Ie(crypto))&&crypto.randomUUID;function Je(){return ze(Ke,new Array(16),0)}function Xe(e){return we(e).map((function(e){return String.fromCharCode(e)})).join("")}function Ze(){return Xe(Je())}var $e=/^[a-zA-Z0-9/+]+[=]+$/;function et(e,t){return{pageUrn:nt(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("")}(Je())}}function tt(e,t){return"urn:li:control:".concat(e,"-").concat(t)}function nt(e){return"urn:li:page:".concat(e)}function rt(e,t){return{pageInstance:t.assign({},e.pageInstance),pageKey:e.pageKey,applicationInstance:e.applicationInstance}}function it(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 ot(e){var t=[];return e.forEach((function(e){return t.push(e)})),t}function st(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 at(e,t,n){var r=e.get(t);r&&r.push(n)||e.set(t,[n])}function ct(e,t,n){var r=e.get(t);r&&r.splice(r.indexOf(n)>>>0,1)}var lt,ut,ht=(lt=new Map,ut=new Map,{on:function(e,t){at(lt,e,t)},before:function(e,t){at(ut,e,t)},off:function(e,t){ct(lt,e,t)},offBefore:function(e,t){ct(ut,e,t)},emit:function(e,t){(ut.get(e)||[]).concat(lt.get(e)||[]).slice().map((function(e){e(t)}))},clear:function(){ut.clear(),lt.clear()}});if("undefined"!=typeof document&&"undefined"!=typeof window){var dt=function(e){"pagehide"!==e.type&&"hidden"!==document.visibilityState||ht.emit("internal:hide",e)};document.addEventListener("visibilitychange",dt),window.addEventListener("pagehide",dt)}var pt=Uint8Array,ft=Uint16Array,mt=Uint32Array,gt=new pt([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0]),vt=new pt([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0]),yt=new pt([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),bt=function(e,t){for(var n=new ft(31),r=0;r<31;++r)n[r]=t+=1<<e[r-1];var i=new mt(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]},Et=bt(gt,2),_t=Et[0],wt=Et[1];_t[28]=258,wt[258]=28;for(var Tt=bt(vt,0)[1],St=new ft(32768),It=0;It<32768;++It){var kt=(43690&It)>>>1|(21845&It)<<1;kt=(61680&(kt=(52428&kt)>>>2|(13107&kt)<<2))>>>4|(3855&kt)<<4,St[It]=((65280&kt)>>>8|(255&kt)<<8)>>>1}var Ct=function(e,t,n){for(var r=e.length,i=0,o=new ft(t);i<r;++i)e[i]&&++o[e[i]-1];var s,a=new ft(t);for(i=0;i<t;++i)a[i]=a[i-1]+o[i-1]<<1;if(n){s=new ft(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],h=a[e[i]-1]++<<u,d=h|(1<<u)-1;h<=d;++h)s[St[h]>>>c]=l}else for(s=new ft(r),i=0;i<r;++i)e[i]&&(s[i]=St[a[e[i]-1]++]>>>15-e[i]);return s},At=new pt(288);for(It=0;It<144;++It)At[It]=8;for(It=144;It<256;++It)At[It]=9;for(It=256;It<280;++It)At[It]=7;for(It=280;It<288;++It)At[It]=8;var Lt=new pt(32);for(It=0;It<32;++It)Lt[It]=5;var Rt=Ct(At,9,0),Ot=Ct(Lt,5,0),Nt=function(e){return(e+7)/8|0},xt=function(e,t,n){n<<=7&t;var r=t/8|0;e[r]|=n,e[r+1]|=n>>>8},Pt=function(e,t,n){n<<=7&t;var r=t/8|0;e[r]|=n,e[r+1]|=n>>>8,e[r+2]|=n>>>16},Mt=function(e,t){for(var n=[],r=0;r<e.length;++r)e[r]&&n.push({s:r,f:e[r]});var i=n.length,o=n.slice();if(!i)return[jt,0];if(1==i){var s=new pt(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,h=2;for(n[0]={s:-1,f:a.f+c.f,l:a,r:c};u!=i-1;)a=n[n[l].f<n[h].f?l++:h++],c=n[l!=u&&n[l].f<n[h].f?l++:h++],n[u++]={s:-1,f:a.f+c.f,l:a,r:c};var d=o[0].s;for(r=1;r<i;++r)o[r].s>d&&(d=o[r].s);var p=new ft(d+1),f=Dt(n[u-1],p,0);if(f>t){r=0;var m=0,g=f-t,v=1<<g;for(o.sort((function(e,t){return p[t.s]-p[e.s]||e.f-t.f}));r<i;++r){var y=o[r].s;if(!(p[y]>t))break;m+=v-(1<<f-p[y]),p[y]=t}for(m>>>=g;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 pt(p),f]},Dt=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},Bt=function(e){for(var t=e.length;t&&!e[--t];);for(var n=new ft(++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]},Ut=function(e,t){for(var n=0,r=0;r<t.length;++r)n+=e[r]*t[r];return n},Ft=function(e,t,n){var r=n.length,i=Nt(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)},qt=function(e,t,n,r,i,o,s,a,c,l,u){xt(t,u++,n),++i[256];for(var h=Mt(i,15),d=h[0],p=h[1],f=Mt(o,15),m=f[0],g=f[1],v=Bt(d),y=v[0],b=v[1],E=Bt(m),_=E[0],w=E[1],T=new ft(19),S=0;S<y.length;++S)T[31&y[S]]++;for(S=0;S<_.length;++S)T[31&_[S]]++;for(var I=Mt(T,7),k=I[0],C=I[1],A=19;A>4&&!k[yt[A-1]];--A);var L,R,O,N,x=l+5<<3,P=Ut(i,At)+Ut(o,Lt)+s,M=Ut(i,d)+Ut(o,m)+s+14+3*A+Ut(T,k)+(2*T[16]+3*T[17]+7*T[18]);if(x<=P&&x<=M)return Ft(t,u,e.subarray(c,c+l));if(xt(t,u,1+(M<P)),u+=2,M<P){L=Ct(d,p,0),R=d,O=Ct(m,g,0),N=m;var D=Ct(k,C,0);for(xt(t,u,b-257),xt(t,u+5,w-1),xt(t,u+10,A-4),u+=14,S=0;S<A;++S)xt(t,u+3*S,k[yt[S]]);u+=3*A;for(var B=[y,_],U=0;U<2;++U){var F=B[U];for(S=0;S<F.length;++S){var q=31&F[S];xt(t,u,D[q]),u+=k[q],q>15&&(xt(t,u,F[S]>>>5&127),u+=F[S]>>>12)}}}else L=Rt,R=At,O=Ot,N=Lt;for(S=0;S<a;++S)if(r[S]>255){q=r[S]>>>18&31,Pt(t,u,L[q+257]),u+=R[q+257],q>7&&(xt(t,u,r[S]>>>23&31),u+=gt[q]);var H=31&r[S];Pt(t,u,O[H]),u+=N[H],H>3&&(Pt(t,u,r[S]>>>5&8191),u+=vt[H])}else Pt(t,u,L[r[S]]),u+=R[r[S]];return Pt(t,u,L[256]),u+R[256]},Ht=new mt([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),jt=new pt(0),zt=function(){for(var e=new Int32Array(256),t=0;t<256;++t){for(var n=t,r=9;--r;)n=(1&n&&-306674912)^n>>>1;e[t]=n}return e}(),Wt=function(e,t,n){for(;n;++t)e[t]=n,n>>>=8};function Gt(e,t){t||(t={});var n=function(){var e=-1;return{p:function(t){for(var n=e,r=0;r<t.length;++r)n=zt[255&n^t[r]]^n>>>8;e=n},d:function(){return~e}}}(),r=e.length;n.p(e);var i,o,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 pt(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 h=u+65535;h>=s&&(c[l>>3]=o),l=Ft(c,l+1,e.subarray(u,h))}else{for(var d=Ht[t-1],p=d>>>13,f=8191&d,m=(1<<n)-1,g=new ft(32768),v=new ft(m+1),y=Math.ceil(n/3),b=2*y,E=function(t){return(e[t]^e[t+1]<<y^e[t+2]<<b)&m},_=new mt(25e3),w=new ft(288),T=new ft(32),S=0,I=0,k=(u=0,0),C=0,A=0;u<s;++u){var L=E(u),R=32767&u,O=v[L];if(g[R]=O,v[L]=R,C<=u){var N=s-u;if((S>7e3||k>24576)&&N>423){l=qt(e,c,0,_,w,T,I,k,A,u-A,l),k=S=I=0,A=u;for(var x=0;x<286;++x)w[x]=0;for(x=0;x<30;++x)T[x]=0}var P=2,M=0,D=f,B=R-O&32767;if(N>2&&L==E(u-B))for(var U=Math.min(p,N)-1,F=Math.min(32767,u),q=Math.min(258,N);B<=F&&--D&&R!=O;){if(e[u+P]==e[u+P-B]){for(var H=0;H<q&&e[u+H]==e[u+H-B];++H);if(H>P){if(P=H,M=B,H>U)break;var j=Math.min(B,H-2),z=0;for(x=0;x<j;++x){var W=u-B+x+32768&32767,G=W-g[W]+32768&32767;G>z&&(z=G,O=W)}}}B+=(R=O)-(O=g[R])+32768&32767}if(M){_[k++]=268435456|wt[P]<<18|Tt[M];var K=31&wt[P],V=31&Tt[M];I+=gt[K]+vt[V],++w[257+K],++T[V],C=u+P,++S}else _[k++]=e[u],++w[e[u]]}}l=qt(e,c,o,_,w,T,I,k,A,u-A,l),!o&&7&l&&(l=Ft(c,l+1,jt))}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?ft:4==e.BYTES_PER_ELEMENT?mt:pt)(n-t);return r.set(e.subarray(t,n)),r}(a,0,r+Nt(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&&Wt(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),Wt(a,c-8,n.d()),Wt(a,c-4,r),a}var Kt="undefined"!=typeof TextDecoder&&new TextDecoder;try{Kt.decode(jt,{stream:!0})}catch(Pr){}function Vt(){return"undefined"!=typeof window&&"function"==typeof window.fetch}function Yt(){try{return Vt()&&"keepalive"in new Request("")}catch(e){return!1}}function Qt(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 Jt(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=Gt((new TextEncoder).encode(t)),r["content-encoding"]="gzip"}catch(e){}return{body:o,keepalive:n,credentials:"include",headers:r,method:"POST",mode:"cors"}}function Xt(e){return e&&"message"in e?e.message:"UNKNOWN_ERROR"}var Zt,$t="undefined"!=typeof navigator&&"sendBeacon"in navigator,en=Yt()?function(e,t,n,r){return new Promise((function(i){fetch(e,Jt({body:t,keepalive:!0,headers:n,compress:r})).catch((function(){return fetch(e,Jt({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:Xt(e)})}))}))}:function(e,t,n,r){return new Promise((function(i){if($t){var o=!1;try{o=navigator.sendBeacon(e,t)}catch(e){}if(o)return void i({type:"unknown",drop:!1})}fetch(e,Jt({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:Xt(e)})}))}))};function tn(e){return new Promise((function(t,n){e.oncomplete=e.onsuccess=function(){return t(e.result)},e.onabort=e.onerror=function(){return n(e.error)}}))}function nn(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"key",r=arguments.length>3?arguments[3]:void 0,i=indexedDB.open(e);i.onupgradeneeded=function(){try{i.result.createObjectStore(t,{keyPath:n})}catch(e){null==r||r.onError(e)}};var 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 rn(){return Zt||(Zt=nn("idb-queue","default")),Zt}function on(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))},tn(e.transaction)}function sn(){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]:rn();return t("readwrite",(function(t){return on(t,e)}))}var an=!1;function cn(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{maxNumber:1e3,batchEvictionNumber:300},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:rn();return n("readwrite",(function(n){return n.put(e),tn(n.count()).then((function(e){if(!(e<=t.maxNumber))return on(n,t)}))})).catch((function(e){if(e&&"QuotaExceededError"===e.name)return sn(t,n)}))}function ln(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{maxNumber:1e3,batchEvictionNumber:300},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:rn();return an?Promise.resolve():cn(e,t,n)}function un(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())},tn(t.transaction).then((function(){return r}))}))}function hn(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())},tn(t.transaction).then((function(){return r}))}))}function dn(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:rn();return hn(e,t,"next")}function pn(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:rn();return hn(e,t,"prev")}function fn(){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 mn(e){"undefined"!=typeof window&&window.__DEBUG_BEACON_TRANSPORTER&&console.debug("[beacon-transporter] ",e())}function gn(e){"undefined"!=typeof window&&window.__DEBUG_BEACON_TRANSPORTER&&console.error("[beacon-transporter] ",e())}function vn(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 yn(e,t){var n=0;return{throttledFn:function(){var r=Date.now();r-n>t&&(mn((function(){return"[throttle] Run fn() at "+String(r)})),e(),n=r)},resetThrottle:function(){n=0}}}var bn=function(){function e(t){var n=this,r=arguments.length>1&&void 0!==arguments[1]&&arguments[1];ye(this,e),_e(this,"config",void 0),_e(this,"compress",void 0),_e(this,"throttleControl",void 0),_e(this,"withStore",void 0),_e(this,"disablePersistence",!1),this.config=t,this.compress=r;var i=t.measureIDB;i&&performance.mark(i.createStartMark),this.withStore=nn(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=yn(this.replayEntries.bind(this),t.throttleWait)}return Ee(e,[{key:"onNotify",value:function(){this.disablePersistence||this.throttleControl.throttledFn()}},{key:"push",value:function(e){var t=this;if(!this.disablePersistence){var n=function(){mn((function(){return"Persisting to DB "+e.url})),ln(e,t.config,t.withStore).then((function(){t.throttleControl.resetThrottle(),mn((function(){return"push completed"}))})).catch((function(){t.disablePersistence=!0,gn((function(){return"push failed"}))}))};this.config.useIdle?vn(n):n()}}},{key:"clear",value:function(){var e=this;return this.disablePersistence?Promise.resolve():function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:rn();return an=!0,e("readwrite",(function(e){return e.clear(),tn(e.transaction).finally((function(){return an=!1}))}))}(this.withStore).catch((function(){e.disablePersistence=!0,gn((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([]):dn(t,this.withStore).catch((function(){return e.disablePersistence=!0,gn((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([]):pn(t,this.withStore).catch((function(){return e.disablePersistence=!0,gn((function(){return"peekBack failed"})),[]}))}},{key:"replayEntries",value:function(){var e=this;if(!this.disablePersistence){var t=function(){mn((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]:rn();return un(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 mn((function(){return"header: ".concat(String(e.config.headerName),"; attemptCount: ").concat(u)})),null===(n=(r=e.config).onBeforeRetry)||void 0===n||n.call(r,s),en(o,s,fn(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,h,d,p,f;if(u+1>e.config.attemptLimit)return mn((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===(h=(d=e.config).onResult)||void 0===h||h.call(d,t,s),mn((function(){return"Replaying the entry failed, pushing back to IDB: "+JSON.stringify({url:o,timestamp:c,statusCode:l},null,2)})),ln({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&&gn((function(){return"Replay entry failed: ".concat(t.message)}))}))};this.config.useIdle?vn(t):t()}}}]),e}(),En=function(){function e(){ye(this,e)}return Ee(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}(),_n=function(){function e(t,n){ye(this,e),_e(this,"queue",void 0),_e(this,"beaconListeners",new Set),this.queue=e.hasSupport&&!n.disablePersistenceRetry?new bn(t,n.compress):new En}return Ee(e,[{key:"pushToQueue",value:function(e){this.queue.push(e)}},{key:"notifyQueue",value:function(){this.queue.onNotify()}},{key:"clearQueue",value:function(){return this.beaconListeners.forEach((function(e){return e()})),this.queue.clear()}},{key:"peekQueue",value:function(e){return this.queue.peek(e)}},{key:"peekBackQueue",value:function(e){return this.queue.peekBack(e)}},{key:"onClear",value:function(e){this.beaconListeners.add(e)}},{key:"removeOnClear",value:function(e){this.beaconListeners.delete(e)}}]),e}();_e(_n,"hasSupport","undefined"!=typeof globalThis&&!!globalThis.indexedDB);var wn=[502,504],Tn=[429,503],Sn=function(){function e(t,n,r,i){var o=this,s=arguments.length>4&&void 0!==arguments[4]&&arguments[4];ye(this,e),_e(this,"url",void 0),_e(this,"body",void 0),_e(this,"config",void 0),_e(this,"persistenceConfig",void 0),_e(this,"compress",void 0),_e(this,"timestamp",void 0),_e(this,"isClearQueuePending",!1),_e(this,"onClearCallback",void 0),this.url=t,this.body=n,this.config=r,this.persistenceConfig=i,this.compress=s,this.timestamp=Date.now(),this.onClearCallback=function(){return o.isClearQueuePending=!0}}return Ee(e,[{key:"send",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.persistenceConfig.db.onClear(this.onClearCallback);var n=this.retryLimit;return this.retry((function(t){return en(e.url,e.body,t,e.compress)}),n,t).finally((function(){mn((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(fn(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(mn((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 h=i.config.calculateRetryDelay(i.getAttemptCount(t),t);return mn((function(){return"in memory retry in ".concat(h,"ms")})),(c=h,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 In(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"}}},h=function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=Boolean(t.compress),r=Object.assign({attemptLimit:0,statusCodes:wn,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:Tn,maxNumber:1e3,batchEvictionNumber:300,throttleWait:3e5},t.persistenceRetry);i.headerName=i.headerName||r.headerName,e=new _n(i,{compress:t.compress,disablePersistenceRetry:t.disablePersistenceRetry})}return{beacon:function(i,o,s){var a;return Vt()?new Sn(i,o,r,{db:e,disabled:Boolean(t.disablePersistenceRetry),statusCodes:(null===(a=t.persistenceRetry)||void 0===a?void 0:a.statusCodes)||Tn},n).send(s):Promise.resolve({type:"unknown",drop:!0})},database:e}}(u),d=h.beacon,p=h.database;return e.retryBeacon={shouldRetry:!0,beacon:d,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){ht.emit("internal:error",{tags:["core-web-tracking:retry:idb"],reason:e})})):(e.retryBeacon.shouldRetry=!0,Promise.resolve())):void 0})).catch((function(e){ht.emit("internal:error",{tags:["core-web-tracking:retry:setup"],reason:e})}))}var kn=function(){function e(t){ye(this,e),_e(this,"host",void 0),this.host=t}return Ee(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&&In(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){ht.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){ht.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||!Vt()||"undefined"==typeof Promise?Qt(e,JSON.stringify(t),{headers:n}):en(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}(),Cn="undefined"!=typeof window&&"undefined"!=typeof document,An=/JSESSIONID="?([^";]+)"?/,Ln="",Rn=0;function On(){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?An:r;if(!Ln||Date.now()-Rn>n){var o=Cn&&document.cookie.match(i);Ln=o&&o[1]||"",Rn=Date.now()}return Ln}var Nn=function(){function e(t){ye(this,e),_e(this,"networkTransporter",void 0),_e(this,"inactive",void 0),_e(this,"mpName",void 0),_e(this,"endpoint",void 0),_e(this,"debug",void 0),this.networkTransporter=new kn(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=Pn;break;case"https://www.linkedin-ei.com/li/track/validate":n=!0,t=xn;break;case"https://www.linkedin-ei.com/li/track":t=xn;break;default:n=!0,t=xn}return{endpoint:t,debug:n}}(t.endpoint);this.endpoint=n.endpoint,this.debug=n.debug}return Ee(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":On(),"x-restli-protocol-version":"2.0.0"},n={fragmentEvent:e,debug:this.debug};this.networkTransporter.sendPayload(this.endpoint,n,t)}}}]),e}(),xn="https://www.linkedin-ei.com/trackingMonitoring/?action=saveClientFragment",Pn="https://www.linkedin.com/trackingMonitoring/?action=saveClientFragment";function Mn(e){return"string"==typeof e}function Dn(e){return Mn(e)?e:e.topicName||e.eventName}function Bn(e){return Mn(e)?e:e.eventName}var Un,Fn,qn=function(){function e(t){var n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};ye(this,e),_e(this,"host",void 0),_e(this,"cmoTransporter",void 0),_e(this,"clientMonitoringInstanceId",Ze()),_e(this,"currentContext",zn()),_e(this,"appState",{}),_e(this,"estimatedFragmentSize",0),_e(this,"fragmentSizeLimit",void 0),_e(this,"activeFragmentEvent",void 0),_e(this,"debounceTimer",void 0),this.host=t,this.cmoTransporter=r.cmoTransporter||new Nn(t),this.fragmentSizeLimit=(null===(n=t.clientMonitoringConfig)||void 0===n?void 0:n.fragmentSizeLimit)||10240,this.activeFragmentEvent=jn(this.clientMonitoringInstanceId,0,0,!1,this.getEventHeaders())}return Ee(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=ve(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:Bn(t),eventTopic:Dn(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=jn(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=Wn(e.trackingId));var t=this.currentContext.pageInstance;return t.trackingId=Wn(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 Hn(e){return Un||(Un=new qn(e)),{getCurrentInstanceId:function(){return Un.getCurrentInstanceId()},logEventGenerated:function(e){return Un.logEventGenerated(e)},logEventReadyToSend:function(e){Un.logEventReadyToSend(e)},logEventSent:function(e){Un.logEventSent(e)},logPersistedEventSent:function(e,t){Un.logEventSent(t,e)},logNetworkResponseCode:function(e){Un.logNetworkResponseCode(e)},logPersistedNetworkResponseCode:function(e,t){var n;null===(n=Un)||void 0===n||n.logNetworkResponseCode(t,e)},logFailedEvent:function(e,t,n,r){Un.logFailedEvent(e,t,n,r)},logPersistedFailedEvent:function(e,t,n,r,i){Un.logFailedEvent(t,n,r,i,e)},flush:function(){Un.flush()},destroy:function(){Un=void 0},isDestroyed:function(){return void 0===Un},setCurrentContext:function(e){Un.setCurrentContext(e)},updateAppState:function(e){Un.updateAppState(e)}}}function jn(e,t,n,r,i){return{fragmentNumber:t,firstEventNumber:n,isLastFragment:r,stats:{instanceId:e,eventsGenerated:0,eventsReadyToSend:0,eventsSent:0,networkResponseStats:{eventsWith2XXResponse:0,eventsWith400Response:0,eventsWith408Response:0,eventsWith429Response:0,eventsWith4XXResponse:0,eventsWith500Response:0,eventsWith502Response:0,eventsWith503Response:0,eventsWith504Response:0,eventsWith5XXResponse:0},eventTopics:[],failures:[],previousInstanceEventStats:[]},requestHeader:i.requestHeader,header:i.header}}function zn(){return{pageKey:"unknown",pageInstance:et("unknown")}}function Wn(e){return Array.isArray(e)?Xe(e):16===e.length?e:function(e){return"string"==typeof e&&!!e.match($e)}(e)?atob(e):Xe(function(e){return Pe(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"}(Fn||(Fn={}));var Gn="PageViewEvent",Kn=function(){function e(t){var n=this;ye(this,e),_e(this,"host",void 0),_e(this,"queue",void 0),_e(this,"preContextQueue",void 0),_e(this,"debounceTimer",void 0),_e(this,"unloadHandlers",void 0),_e(this,"maxQueueSize",void 0),_e(this,"flushDebounceTime",void 0),_e(this,"trackingEventListeners",[]),_e(this,"onHideHandler",(function(){n.forceFlush()})),_e(this,"networkTransporter",void 0),_e(this,"clientMonitoringConn",void 0),_e(this,"clientSequenceNumberCounter",void 0),_e(this,"isTimerRunning",void 0),_e(this,"enableSequenceNumberLix",void 0),this.host=t,this.queue=[],this.preContextQueue=[],this.unloadHandlers=[];var r=t.batching;this.maxQueueSize=r&&r.maxSize||1,this.flushDebounceTime=r&&r.debounceTime||0,ht.on("internal:hide",this.onHideHandler),this.networkTransporter=new kn(t),this.isLixEnabled("pemberly.tracking.monitoring")&&t.clientMonitoringConfig&&!t.inactive&&(this.clientMonitoringConn=Hn(t)),this.enableSequenceNumberLix=this.isLixEnabled("tracking.data-loss-web.sequence-number"),this.enableSequenceNumberLix&&(this.getSequenceNumberFromIDB(),this.updateSequenceNumberOnExit(),this.isTimerRunning=!1)}return Ee(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(Fn.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,Fn.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(Dn(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,ht.off("internal:hide",this.onHideHandler)}},{key:"forceFlush",value:function(){var e=this;this.populatePreContextQueue({pageInstance:et("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;st("read").then((function(t){e.clientSequenceNumberCounter=t||0})).catch((function(e){ht.emit("internal:error",{tags:["core-web-tracking:sequence-number:idb-read"],reason:e})}))}},{key:"updateSequenceNumberToIDB",value:function(){st("update",this.clientSequenceNumberCounter).catch((function(e){ht.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=rt(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,h=l.pageInstance,d=function(e){return"string"==typeof e?e===Gn:e.eventName===Gn}(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:d,path:s.pathname+s.search,referer:a.referrer},m={pageInstance:h,time:e.meta.time,version:r};"number"==typeof this.clientSequenceNumberCounter&&c(m,{clientGlobalSequenceNumber:this.clientSequenceNumberCounter});var g={header:c(m,e.meta.header||{}),requestHeader:c(f,e.meta.requestHeader||{})},v=e.meta.clientMonitoringInstanceId,y=e.meta.clientMonitoringInstanceEventNumber;return v&&c(g.header,{clientMonitoringInstanceId:v,clientMonitoringInstanceEventNumber:y}),c(e.body,g)}},{key:"populatePreContextQueue",value:function(e){var t,n=this.preContextQueue;return this.preContextQueue=[],null===(t=this.clientMonitoringConn)||void 0===t||t.logEventReadyToSend(n.length),n.map((function(t){return t.meta.context=e,"function"==typeof t.body&&(t.body=t.body(e)),t}))}},{key:"trigger",value:function(e,t){this.trackingEventListeners.forEach((function(n){return n(e,t)}))}},{key:"requestFlush",value:function(e){var t=this;e((function(){t.forceFlush()}),{timeout:1e4})}},{key:"flush",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=this.host.api.requestIdleCallback;e||!t?this.sendPayload():this.requestFlush(t)}},{key:"batchFire",value:function(){var e=this;this.queue.length>this.maxQueueSize?this.flush():(this.debounceTimer&&clearTimeout(this.debounceTimer),this.debounceTimer=setTimeout((function(){return e.flush()}),this.flushDebounceTime))}},{key:"sendPayload",value:function(){var e=this,t=this.queue;if(0!==t.length){this.enableSequenceNumberLix&&"undefined"!=typeof window&&!1===this.isTimerRunning&&(this.isTimerRunning=!0,setInterval((function(){e.updateSequenceNumberToIDB()}),5e3)),this.queue=[];var n,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(Fn.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 Vn,Yn,Qn,Jn,Xn=function(){function e(t,n){ye(this,e),this.clientBreadcrumbType=t,this.id=n}return Ee(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 Zn(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 $n(e){return"retryConfig"in e.host}function er(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"}(Vn||(Vn={})),function(){function e(t,n){var r,i;if(ye(this,e),_e(this,"transporter",void 0),_e(this,"delegate",void 0),_e(this,"currentContext",void 0),_e(this,"appState",void 0),_e(this,"previousAppContext",void 0),_e(this,"customTransporters",void 0),_e(this,"clientMonitoringConn",void 0),this.transporter=t,this.delegate=n,this.appState={},this.customTransporters={},n&&n.customTransporterHosts)for(var o in n.customTransporterHosts)if(Object.prototype.hasOwnProperty.call(n.customTransporterHosts,o)){var s=this.transporter.host.api.assign({},this.transporter.host);this.customTransporters[o]=new Kn(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=Hn(t.host))}Ee(e,[{key:"host",get:function(){return this.transporter.host}},{key:"checkAndEnablePersistentRetry",value:function(){$n(this.transporter)&&this.transporter.checkAndEnablePersistentRetry(this.delegate)}},{key:"flushAndClearPersistedEventsOnLogout",value:function(){this.forceFlush();var e=$n(this.transporter)?this.transporter.clearPersistedEventsOnLogout():null;return null!=e?e:this.host.api.Promise.resolve()}},{key:"getCurrentContext",value:function(){if(this.currentContext)return rt(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,Zn(t));if(this.setCurrentContext(r.to),!n.suppressEventsFiring)return this.fireNavEvents(r)}},{key:"setCurrentContext",value:function(e){var t;this.currentContext=rt(e,this.host.api),null===(t=this.clientMonitoringConn)||void 0===t||t.setCurrentContext(rt(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=tt(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=Dn(e),o=void 0===t?"undefined":null===t?"null":Ie(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(Fn.MISSING_REQUIRED_PROPERTIES,e,s,a)}throw new Error(s)}var c=r||[];if(c.length>0){var l=c.map((function(e){return Xn.toPointer(e)}));this.host.api.assign(t,{clientBreadcrumbPointers:l})}var u=c.length>0?this.generateEnvelopeWithBreadcrumbs(e,t,n,c):this.generateEnvelope(e,t,n);return this.fireEnvelope(u)}},{key:"generateEnvelopeWithBreadcrumbs",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},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(Mn(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=Dn(i.id),c="Could not find custom transporter: ".concat(o);if(this.clientMonitoringConn){var l=this.clientMonitoringConn.logEventGenerated(a);this.clientMonitoringConn.logFailedEvent(Fn.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 et(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),ht.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 tt((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&&rt(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;ye(this,e),_e(this,"core",void 0),_e(this,"protocol",void 0),_e(this,"throttleKeySet",new Set),_e(this,"config",void 0),_e(this,"reportTransporterError",(function(e){e.reason instanceof Error||(e.reason=new Error(e.reason||"An error occurred in the transporter")),i.reportError(e.reason,e.tags.concat(["info"])).catch((function(){}))})),this.core=t;var o=this.core.host.api.location.protocol;this.protocol=o.substring(0,o.length-1),this.config={throttleTime:null!==(r=null==n?void 0:n.throttleTime)&&void 0!==r?r:100},ht.on("internal:error",this.reportTransporterError)}Ee(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,h=e.stack,d=void 0===h?"":h,p=e.fileName,f=void 0===p?"":p,m=e.lineNumber,g=void 0===m?0:m,v=e.columnNumber,y=void 0===v?0:v,b=this.core.host,E=b.appId,_=b.appVersion,w=b.service,T=b.serviceInstance,S=b.treeID,I=void 0===S?"":S,k=b.api,C=k.Promise,A=k.location,L=A.host,R=A.pathname,O=A.search,N=A.hash,x=void 0===N?"":N;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:g,m:l,s:d,t:u,u:f},h:x,l:n.protocol,o:L,p:R,pageKey:e.pageKey,q:O,service:w,serviceInstance:T,serviceVersion:_,t:r,trackingID:e.pageInstance.trackingId,treeID:I,callTreeId:s,responseTraceHeaders:t}}))};if(this.config.throttleTime<0)return M();var D=er(u+l+d+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(),ht.off("internal:error",this.reportTransporterError)}}])}();var tr=function(){function e(){ye(this,e),_e(this,"userTimingEntries",[]),_e(this,"longTasks",[]),_e(this,"resourceTimingEntries",[]),_e(this,"cdnData",void 0)}return Ee(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(rr),cdnData:this.cdnData}}}]),e}(),nr=["resourceTreeId","name","entryType","startTime","duration","initiatorType","nextHopProtocol","redirectStart","redirectEnd","fetchStart","domainLookupStart","domainLookupEnd","connectStart","connectEnd","secureConnectionStart","requestStart","responseStart","responseEnd","transferSize","encodedBodySize","decodedBodySize","workerStart"];function rr(e){return nr.reduce((function(t,n){var r=e[n];return void 0!==r&&(t[n]=r),t}),{})}function ir(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};Qn=Object.assign(Object.assign({},n),t),Jn=function(e,t){return e.nodeType===Node.DOCUMENT_NODE?e:e===t.root?e.ownerDocument:e}(Qn.root,n);var r=or(e,Yn.All,(function(){return or(e,Yn.Two,(function(){return or(e,Yn.One)}))}));if(r){var i=fr(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>Qn.optimizedMinLength)for(var o=1;o<t.length-1;o++){if(r.counter>Qn.maxNumberOfTries)return i;r.counter+=1;var s=we(t);s.splice(o,1);var a=ar(s);if(r.visited.has(a))return i;lr(s)&&mr(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]),ar(r)}throw new Error("Selector was not found.")}function or(e,t,n){for(var r=null,i=[],o=e,s=0,a=function(){var e=dr(function(e){var t=e.getAttribute("id");return t&&Qn.idName(t)?{name:"#"+_r(t,{isIdentifier:!0}),penalty:0}:null}(o))||dr.apply(void 0,we(function(e){return Array.from(e.attributes).filter((function(e){return Qn.attr(e.name,e.value)})).map((function(e){return{name:"["+_r(e.name,{isIdentifier:!0})+'="'+_r(e.value)+'"]',penalty:.5}}))}(o)))||dr.apply(void 0,we(function(e){return Array.from(e.classList).filter(Qn.className).map((function(e){return{name:"."+_r(e,{isIdentifier:!0}),penalty:1}}))}(o)))||dr(function(e){var t=e.tagName.toLowerCase();return Qn.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(hr).map((function(e){return ur(e,a)}))));else if(t===Yn.Two)e=e.slice(0,1),a&&(e=e.concat(e.filter(hr).map((function(e){return ur(e,a)}))));else if(t===Yn.One){var c=ge(e=e.slice(0,1),1)[0];a&&hr(c)&&(e=[ur(c,a)])}var l,u=ve(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>=Qn.seedMinLength&&(r=sr(i,n)))return"break";o=o.parentElement,s++};o&&o!==Qn.root.parentElement&&"break"!==a(););return r||(r=sr(i,n)),r}function sr(e,t){var n=fr(function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];if(t.length>0){var r,i=[],o=ve(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>Qn.threshold)return t?t():null;var r,i=ve(n);try{for(i.s();!(r=i.n()).done;){var o=r.value;if(lr(o))return o}}catch(e){i.e(e)}finally{i.f()}return null}function ar(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 cr(e){return e.map((function(e){return e.penalty})).reduce((function(e,t){return e+t}),0)}function lr(e){switch(Jn.querySelectorAll(ar(e)).length){case 0:throw new Error("Can't select any node with this selector: ".concat(ar(e)));case 1:return!0;default:return!1}}function ur(e,t){return{name:e.name+":nth-child(".concat(t,")"),penalty:e.penalty+1}}function hr(e){return"html"!==e.name&&!e.name.startsWith("#")}function dr(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=t.filter(pr);return r.length>0?r:null}function pr(e){return null!=e}function fr(e){return Array.from(e).sort((function(e,t){return cr(e)-cr(t)}))}function mr(e,t){return Jn.querySelector(ar(e))===t}!function(e){e[e.All=0]="All",e[e.Two=1]="Two",e[e.One=2]="One"}(Yn||(Yn={}));var gr,vr=/[ -,\.\/:-@\[-\^`\{-~]/,yr=/[ -,\.\/:-@\[\]\^`\{-~]/,br=/(^|\\+)?(\\[A-F0-9]{1,6})\x20(?![a-fA-F0-9\x20])/g,Er={escapeEverything:!1,isIdentifier:!1,quotes:"single",wrap:!1};function _r(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=Object.assign(Object.assign({},Er),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),h=void 0;if(u<32||u>126){if(u>=55296&&u<=56319&&a<c){var d=e.charCodeAt(a++);56320==(64512&d)?u=((1023&u)<<10)+(1023&d)+65536:a--}h="\\"+u.toString(16).toUpperCase()+" "}else h=n.escapeEverything?vr.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&&yr.test(l)?"\\"+l:l;s+=h}return i&&(/^-[-\d]/.test(s)?s="\\-"+s.slice(1):/\d/.test(o)&&(s="\\3"+o+" "+s.slice(1))),s=s.replace(br,(function(e,t,n){return t&&t.length%2?e:(t||"")+n})),!i&&n.wrap?r+s+r:s}function wr(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 Tr(e){var t=e||performance;return Math.round(t.now())}function Sr(e){if(!e)return"null";if(e.nodeType===Node.ELEMENT_NODE)try{return ir(e,{idName:function(e){return 0!==e.indexOf("ember")}})}catch(e){return"serialization_error"}var t=Sr(e.parentElement||void 0);return"".concat(t," > nodeType(").concat(e.nodeType,")")}function Ir(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 kr(e){var t=[];return e.forEach((function(e){return t.push(e)})),t}var Cr,Ar=function(){function e(t){ye(this,e),_e(this,"hostApis",void 0),_e(this,"hostnameProperties",void 0),_e(this,"usedHostnames",void 0),_e(this,"abortController",void 0),_e(this,"pendingPromises",void 0),this.hostApis=t;var n=t.AbortController;this.hostnameProperties={},this.usedHostnames=new Set,this.abortController=new n,this.pendingPromises=new Set}return Ee(e,[{key:"clearUsedHostnames",value:function(){this.usedHostnames=new Set}},{key:"getPresentData",value:function(){var e=this;return ot(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=it(ot(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,(gr=gr||r.createElement("a")).href=n,gr.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){ye(this,e),_e(this,"hostApis",void 0),_e(this,"statics",void 0),_e(this,"options",void 0),_e(this,"allowTimingOrigin",void 0),_e(this,"collectResourceTimings",void 0),_e(this,"collectCdnData",void 0),_e(this,"perfObserver",void 0),_e(this,"renderTimings",new Map),_e(this,"urlToTreeId",new Map),_e(this,"cdnDataProvider",void 0),_e(this,"observables",new tr),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 Ar(t))}return Ee(e,[{key:"recordTreeId",value:function(e,t){this.collectResourceTimings&&this.urlToTreeId.set(function(e,t){return(gr=gr||t.createElement("a")).href=e,gr.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:wr(this.hostApis.performance,this.allowTimingOrigin)})}},{key:"recordRenderEnd",value:function(e){var t=this.renderTimings.get(e);t&&(t.renderEnd=t.renderEnd||wr(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=Ir(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,Rr.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?it(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=Ir(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:kr(this.renderTimings),networkInformationMetrics:Or(this.hostApis.connection)};return this.renderTimings.clear(),e}}]),e}(),Rr=["loadEventEnd","loadEventStart","domComplete","domContentLoadedEventEnd","domContentLoadedEventStart","domInteractive","domLoading","responseEnd","responseStart","requestStart","secureConnectionStart","connectEnd","connectStart","domainLookupEnd","domainLookupStart","fetchStart","redirectEnd","redirectStart","unloadEventEnd","unloadEventStart","navigationStart"];function Or(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"}(Cr||(Cr={}));var Nr=(_e(me={},"web-ui-framework","EMBER"),_e(me,"app-id","linkedin.rum.tracking"),_e(me,"app-version","unknown"),_e(me,"is-single-page-app",!0),_e(me,"user-timing-mark-enabled",!1),_e(me,"user-timing-measure-enabled",!0),_e(me,"beacon-source","apps"),_e(me,"enable-rs-timing",!0),_e(me,"enable-cdn-tracking",!1),_e(me,"async-plugins-timeout",5e3),_e(me,"beacon-timeout",3e4),_e(me,"enable-memory-measurement",!1),_e(me,"pageKeyPrefix",""),me),xr=function(){function e(t,n,r){ye(this,e),_e(this,"featureName",void 0),_e(this,"trackingCore",void 0),_e(this,"rumConfig",void 0),_e(this,"observing",!1),_e(this,"basePageTreeId",void 0),_e(this,"startPageInstance",void 0),_e(this,"startMemory",void 0),_e(this,"reportTimeouts",[]),this.featureName=t,this.trackingCore=n,this.rumConfig=r}return Ee(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)||et("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:Tr(this.trackingCore.host.api.performance),duration:0,startPageInstance:this.startPageInstance,marks:this.createMemoryMarks("-".concat(e,"min")),spans:[]};this.trackingCore.fireEvent({appId:this.rumConfig["app-id"],eventName:"FeaturePerformanceMeasurementEvent"},t)}},{key:"createMemoryMarks",value:function(e){var t=this.getMemory(),n=["jsHeapSizeLimit","totalJSHeapSize","usedJSHeapSize"].map((function(n){return{name:n+e,startTime:t[n]}})),r=t.usedJSHeapSize-this.startMemory.usedJSHeapSize;return n.push({name:(r<0?"usedJSHeapSizeDecrease":"usedJSHeapSizeIncrease")+e,startTime:Math.abs(r)},{name:"utilization"+e,startTime:Math.round(t.usedJSHeapSize/t.totalJSHeapSize*100)}),n}},{key:"getMemory",value:function(){return this.trackingCore.host.api.performance.memory}}]),e}();_e(xr,"checkpoints",[1,3,10,30,90,180,300]);var Pr,Mr,Dr,Br,Ur,Fr=Ee((function e(t,n,r){ye(this,e),_e(this,"webUIFramework",void 0),_e(this,"timeSource",void 0),_e(this,"isSinglePageApp",void 0),_e(this,"appRenderMode",void 0),_e(this,"isAppRenderFailed",void 0),_e(this,"pageLoadMode","INITIAL"),_e(this,"isSSL",void 0),_e(this,"treeId",void 0),_e(this,"isFromServiceWorker",void 0),this.webUIFramework=n["web-ui-framework"],this.timeSource=n["beacon-source"],this.isSinglePageApp=n["is-single-page-app"],this.appRenderMode=t["app-render-mode"],this.isAppRenderFailed=t["is-app-render-failed"],this.isSSL="https:"===r.api.location.protocol?1:0,this.treeId=r.treeID,this.isFromServiceWorker=r.isFromServiceWorker})),qr=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)}},Hr=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){}},jr=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)},zr=function(e){addEventListener("pageshow",(function(t){t.persisted&&e(t)}),!0)},Wr=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)))}},Gr=-1,Kr=function(){return"hidden"===document.visibilityState?0:1/0},Vr=function(){jr((function(e){var t=e.timeStamp;Gr=t}),!0)},Yr=function(){return Gr<0&&(Gr=Kr(),Vr(),zr((function(){setTimeout((function(){Gr=Kr(),Vr()}),0)}))),{get firstHiddenTime(){return Gr}}},Qr=!1,Jr=-1,Xr=function(e,t){Qr||(function(e,t){var n,r=Yr(),i=qr("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:Hr("paint",o);(s||a)&&(n=Wr(e,i,t),s&&o(s),zr((function(r){i=qr("FCP"),n=Wr(e,i,t),requestAnimationFrame((function(){requestAnimationFrame((function(){i.value=performance.now()-r.timeStamp,n(!0)}))}))})))}((function(e){Jr=e.value})),Qr=!0);var n,r=function(t){Jr>-1&&e(t)},i=qr("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=Hr("layout-shift",a);c&&(n=Wr(r,i,t),jr((function(){c.takeRecords().map(a),n(!0)})),zr((function(){o=0,Jr=-1,i=qr("CLS",0),n=Wr(r,i,t)})))},Zr={passive:!0,capture:!0},$r=new Date,ei=function(e,t){Pr||(Pr=t,Mr=e,Dr=new Date,ri(removeEventListener),ti())},ti=function(){if(Mr>=0&&Mr<Dr-$r){var e={entryType:"first-input",name:Pr.type,target:Pr.target,cancelable:Pr.cancelable,startTime:Pr.timeStamp,processingStart:Pr.timeStamp+Mr};Br.forEach((function(t){t(e)})),Br=[]}},ni=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(){ei(e,t),i()},r=function(){i()},i=function(){removeEventListener("pointerup",n,Zr),removeEventListener("pointercancel",r,Zr)};addEventListener("pointerup",n,Zr),addEventListener("pointercancel",r,Zr)}(t,e):ei(t,e)}},ri=function(e){["mousedown","keydown","touchstart","pointerdown"].forEach((function(t){return e(t,ni,Zr)}))},ii=function(e,t){var n,r=Yr(),i=qr("FID"),o=function(e){e.startTime<r.firstHiddenTime&&(i.value=e.processingStart-e.startTime,i.entries.push(e),n(!0))},s=Hr("first-input",o);n=Wr(e,i,t),s&&jr((function(){s.takeRecords().map(o),s.disconnect()}),!0),s&&zr((function(){var r;i=qr("FID"),n=Wr(e,i,t),Br=[],Mr=-1,Pr=null,ri(addEventListener),r=o,Br.push(r),ti()}))},oi={},si=function(e,t){var n,r=Yr(),i=qr("LCP"),o=function(e){var t=e.startTime;t<r.firstHiddenTime&&(i.value=t,i.entries.push(e)),n()},s=Hr("largest-contentful-paint",o);if(s){n=Wr(e,i,t);var a=function(){oi[i.id]||(s.takeRecords().map(o),s.disconnect(),oi[i.id]=!0,n(!0))};["keydown","click"].forEach((function(e){addEventListener(e,a,{once:!0,capture:!0})})),jr(a,!0),zr((function(r){i=qr("LCP"),n=Wr(e,i,t),requestAnimationFrame((function(){requestAnimationFrame((function(){i.value=performance.now()-r.timeStamp,oi[i.id]=!0,n(!0)}))}))}))}},ai=["LCP","FID","CLS"],ci={LCP:"LargestContentfulPaint",FID:"FirstInputDelay",CLS:"CumulativeLayoutShift"},li={},ui=function(){var e;if(!Cn)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}(),hi=!1,di=[],pi={LCP:"largest-contentful-paint",FID:"first-input",CLS:"layout-shift"};function fi(){var e=!0===window.__test__resetWebVitalsState;if(!hi||e){e&&(di=[]),ai.forEach(mi);var t=Symbol();Ur=t,[si,ii,Xr].forEach((function(e){return e(gi.bind(null,t),!0)})),[si,ii,Xr].forEach((function(e){return e(vi.bind(null,t))})),hi=!0}}function mi(e){li[e]={name:e,value:-1,updateHistory:[]};var t=pi[e];"undefined"!=typeof PerformanceObserver&&void 0!==PerformanceObserver.supportedEntryTypes&&"string"==typeof t&&PerformanceObserver.supportedEntryTypes.indexOf(t)>-1||(li[e].value=-2)}function gi(e,t){if(e===Ur){var n=li[t.name],r=Tr();n&&(n.updateHistory.push({time:r,data:t}),n.value=t.value),di.forEach((function(e){return e(t,r,!1)}))}}function vi(e,t){e===Ur&&di.forEach((function(e){return e(t,Tr(),!0)}))}var yi=function(){function e(t,n){ye(this,e),_e(this,"basePageTreeId",void 0),_e(this,"basePageKey",void 0),_e(this,"observing",!1),_e(this,"appContextMap",new Map),_e(this,"rumConfig",void 0),_e(this,"trackingCore",void 0),this.trackingCore=t,this.rumConfig=n}return Ee(e,[{key:"startObserving",value:function(){var e,t,n=this;fi(),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",ai.forEach((function(e){var t;-2===(null===(t=li[e])||void 0===t?void 0:t.value)&&n.reportMetric(e)})),t=this.onMetricUpdate.bind(this),di.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=li[e],n={name:ci[e]||e};"CLS"===e?n.doubleValue=t.value:n.longValue=Math.round(t.value);var r=li[e];if(r){var i=function(e,t,n,r,i){var o={basePageTreeId:e,basePageKey:t,basePageUrl:ui},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:Sr(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:Sr(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":Sr(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;ye(this,e),_e(this,"core",void 0),_e(this,"config",void 0),_e(this,"collector",void 0),_e(this,"boomerangStart",-1),_e(this,"webVitalsObserver",void 0),_e(this,"appMemoryObserver",void 0),_e(this,"pageMemoryObserver",void 0),_e(this,"liveTokens",new Set),_e(this,"stateWM",new WeakMap),_e(this,"activeToken",void 0),_e(this,"isInitial",void 0),_e(this,"beforeHideHandlerBound",this.beforeHideHandler.bind(this)),this.core=r,this.config=function(e,t){for(var n in e)void 0!==t[n]&&(e[n]=t[n]);return e}(r.host.api.assign({},Nr),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 Fr(t,this.config,r.host),this.config,s),this.collector.startObserving(),ht.before("internal:hide",this.beforeHideHandlerBound)}Ee(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:wr(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 xr("page-memory",this.core,this.config),this.pageMemoryObserver.startObserving(),void 0===this.appMemoryObserver&&(this.appMemoryObserver=new xr("application-memory",this.core,this.config),this.appMemoryObserver.startObserving())),o}},{key:"observeWebVitals",value:function(){void 0===this.webVitalsObserver&&(this.webVitalsObserver=new yi(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=wr(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 ht.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;ht.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,h=s-u,d=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:d,timeDone:h,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 bi="undefined"!=typeof window&&"undefined"!=typeof performance,Ei="undefined"!=typeof location&&-1!==location.search.indexOf("_LI_MEASURE_DEBUG");function _i(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"ajax",n=arguments.length>2?arguments[2]:void 0;e.fireTrackingEvent("PageViewEvent",wi(n,t))}function wi(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"ajax";const n=D(document),r=B(document),i=fe();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 Ti(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){ye(this,e),_e(this,"featureKey",void 0),_e(this,"productName",void 0),_e(this,"endPageInstance",void 0),_e(this,"startPageInstance",void 0),_e(this,"isCanceled",!1),_e(this,"featureIdentifier",void 0),_e(this,"name",void 0),_e(this,"startTime",void 0),_e(this,"duration",void 0),_e(this,"marks",[]),_e(this,"spanStarts",new Map),_e(this,"spans",[]),_e(this,"isSpanContainer",!1),_e(this,"basePageTreeId",void 0),_e(this,"isClosed",!1),this.featureKey=t,this.productName=n;var r=n?"::".concat(n):"";this.featureIdentifier="".concat(t).concat(r),this.name=t}Ee(e,[{key:"start",value:function(e){this.startPageInstance=e,bi&&(this.startTime=Tr(),Ei&&performance.mark("LI:".concat(this.featureIdentifier,"-start")))}},{key:"mark",value:function(e){bi&&(this.marks.push({name:e,startTime:Tr()}),Ei&&(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){bi&&(this.spanStarts.set(e,Tr()),Ei&&performance.mark("LI:".concat(this.featureIdentifier,"-span-").concat(e,"-start")))}},{key:"spanEnd",value:function(e,t){if(bi&&this.spanStarts.has(e)){var n=this.spanStarts.get(e);this.spans.push({name:t||e,startTime:n,duration:Tr()-n}),Ei&&(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,bi&&(this.duration=Tr()-this.startTime,Ei&&!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(bi){var e={name:this.featureKey,startTime:this.startTime,duration:this.isSpanContainer?-1:this.duration,basePageTreeId:this.basePageTreeId,startPageInstance:this.startPageInstance||et("unknown"),marks:this.marks,spans:this.spans};return this.productName&&(e.productName=this.productName),e}}},{key:"check",value:function(){if(bi){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 Si(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:window;return e.innerWidth<=769}function Ii(e){return e.scrollHeight>e.offsetHeight}function ki(e,t){const n=T(e);for(let e=0;e<n.length;e++)n[e]&&1===n[e].nodeType&&t(n[e])}function Ci(e){Li([e])}function Ai(e){Ri([e])}function Li(e){ki(e,e=>{e.classList.add("hidden"),e.setAttribute("aria-hidden","true")})}function Ri(e){ki(e,e=>{e.classList.remove("hidden"),e.setAttribute("aria-hidden","false")})}function Oi(){const e=document.querySelector('meta[name="pillar"]');return e?e.getAttribute("content"):""}function Ni(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&&Ii(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 xi="prev",Pi="next";class Mi{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?(Ai(this._indicatorElement),this._indicatorElement.isActive=!0,this._indicatorElement.addEventListener("click",this._indicatorClickHandler)):(Ci(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,h=this._items[t].offsetWidth;let d=Math.abs(this._isRtl?u+h:u),p=Math.abs(this._isRtl?u:u+h);if(s.push(d),this._isRtl&&u>=0)l.add(this._items[t]);else if(0===d&&0===n||0===a)a=p,l.add(this._items[t]);else{if(p>c+e){if(d>=r){o.push(new Set(this._items.slice(t)));break}i.push((this._isRtl?a:d)-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(K).forEach(e=>{const t=e.getAttribute("tabindex");this._prevTabIndexMap.set(e,t),e.setAttribute("tabindex","-1")})}}_handleScrollAction(e){const t=v(e.target,".slide-list__nav-button"),n=t&&t.dataset.direction;n&&(this._listEl.addEventListener("transitionend",this._boundFireScrollEvent),n===xi?this.prev():n===Pi&&this.next())}_fireScrollEvent(){O(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(){O(this._el,"pagechange",{pageNumber:this._currentPage})}}class Di{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 Bi=["class","disabled","style","tabindex","type"];class Ui{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 Di(this._container)}init(){this._observer.observe(this._container,{attributeFilter:Bi,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=j(t),i=r===q.TAB&&e.shiftKey;!i&&r===q.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(K)],n=new Map;let r,i,o=0,s=t.length-1;for(;(!r||!i)&&o<=s;){if(!r){const i=t[o];r=Y(i,e,n)&&i,o++}if(!i){const r=t[s];i=Y(r,e,n)&&r,s--}}return i=i||r,[r,i]}}const{ENTER:Fi,ESCAPE:qi}=q;class Hi{constructor(e){let{enablePageViewTracking:t=!1,shouldHideModal:n=(()=>!1),triggerByOutletEl:r=!0,shouldMoveToTopContainer:i=!0,focusElement:o}=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;this._el.querySelector("[id='".concat("modalNoDismiss","']"))&&(this._isModalNonDismissible=!0),this._focusElement=o,r&&this._outletEls.forEach(e=>{e.addEventListener("click",()=>this.open())}),this._isModalNonDismissible||(this._exitButtonEl&&this._exitButtonEl.addEventListener("click",()=>this.close()),this._overlayEl.addEventListener("click",this._handleOverlayClick.bind(this))),this._focusTrap=new Ui(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=j(e.key),n=t===Fi&&document.activeElement===this._exitButtonEl;(t===qi||n)&&(this._isModalNonDismissible||this.close(),e.preventDefault())}open(){let{focusElement:e}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!this._shouldHideModal())return this._focusElement=e||this._focusElement,this._previouslyFocusedEl=document.activeElement,this._overlayEl.classList.add("modal__overlay--visible"),this._shouldMoveToTopContainer&&this._topLevelContainer.appendChild(this._el),this.noScroll(),document.addEventListener("keydown",this._onKeyDownEvent),O(this._el,"open"),this._wrapperEl&&this._wrapperEl.focus(),this._focusTrap.init(),this._enablePageViewTracking&&window.tracking?window.tracking.then(e=>{_i(e,"ajax","".concat(this._el.id))}):Promise.resolve();O(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),O(this._el,"close"),setTimeout(()=>{var e;(null===(e=this._focusElement)||void 0===e?void 0:e.focus())||this._previouslyFocusedEl.focus()},50),this._focusTrap.tearDown()}noScroll(){document.body.classList.add("no-scroll")}removeNoScroll(){document.body.classList.remove("no-scroll")}}var ji=Object.hasOwnProperty,zi=Object.setPrototypeOf,Wi=Object.isFrozen,Gi=Object.getPrototypeOf,Ki=Object.getOwnPropertyDescriptor,Vi=Object.freeze,Yi=Object.seal,Qi=Object.create,Ji="undefined"!=typeof Reflect&&Reflect,Xi=Ji.apply,Zi=Ji.construct;Xi||(Xi=function(e,t,n){return e.apply(t,n)}),Vi||(Vi=function(e){return e}),Yi||(Yi=function(e){return e}),Zi||(Zi=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 $i,eo=uo(Array.prototype.forEach),to=uo(Array.prototype.pop),no=uo(Array.prototype.push),ro=uo(String.prototype.toLowerCase),io=uo(String.prototype.match),oo=uo(String.prototype.replace),so=uo(String.prototype.indexOf),ao=uo(String.prototype.trim),co=uo(RegExp.prototype.test),lo=($i=TypeError,function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return Zi($i,t)});function uo(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 Xi(e,t,r)}}function ho(e,t){zi&&zi(e,null);for(var n=t.length;n--;){var r=t[n];if("string"==typeof r){var i=ro(r);i!==r&&(Wi(t)||(t[n]=i),r=i)}e[r]=!0}return e}function po(e){var t=Qi(null),n=void 0;for(n in e)Xi(ji,e,[n])&&(t[n]=e[n]);return t}function fo(e,t){for(;null!==e;){var n=Ki(e,t);if(n){if(n.get)return uo(n.get);if("function"==typeof n.value)return uo(n.value)}e=Gi(e)}return function(e){return console.warn("fallback value for",e),null}}var mo=Vi(["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"]),go=Vi(["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"]),vo=Vi(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),yo=Vi(["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"]),bo=Vi(["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"]),Eo=Vi(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),_o=Vi(["#text"]),wo=Vi(["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"]),To=Vi(["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"]),So=Vi(["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"]),Io=Vi(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),ko=Yi(/\{\{[\s\S]*|[\s\S]*\}\}/gm),Co=Yi(/<%[\s\S]*|[\s\S]*%>/gm),Ao=Yi(/^data-[\-\w.\u00B7-\uFFFF]/),Lo=Yi(/^aria-[\-\w]+$/),Ro=Yi(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),Oo=Yi(/^(?:\w+script|data):/i),No=Yi(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),xo="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 Po(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 Mo=function(){return"undefined"==typeof window?null:window},Do=function(e,t){if("object"!==(void 0===e?"undefined":xo(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 Bo=function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Mo(),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,h=void 0===u?t.NamedNodeMap||t.MozNamedAttrMap:u,d=t.HTMLFormElement,p=t.DOMParser,f=t.trustedTypes,m=c.prototype,g=fo(m,"cloneNode"),v=fo(m,"nextSibling"),y=fo(m,"childNodes"),b=fo(m,"parentNode");if("function"==typeof s){var E=i.createElement("template");E.content&&E.content.ownerDocument&&(i=E.content.ownerDocument)}var _=Do(f,r),w=_?_.createHTML(""):"",T=i,S=T.implementation,I=T.createNodeIterator,k=T.createDocumentFragment,C=T.getElementsByTagName,A=r.importNode,L={};try{L=po(i).documentMode?i.documentMode:{}}catch(e){}var R={};n.isSupported="function"==typeof b&&S&&void 0!==S.createHTMLDocument&&9!==L;var O=ko,N=Co,x=Ao,P=Lo,M=Oo,D=No,B=Ro,U=null,F=ho({},[].concat(Po(mo),Po(go),Po(vo),Po(bo),Po(_o))),q=null,H=ho({},[].concat(Po(wo),Po(To),Po(So),Po(Io))),j=Object.seal(Object.create(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),z=null,W=null,G=!0,K=!0,V=!1,Y=!1,Q=!1,J=!1,X=!1,Z=!1,$=!1,ee=!1,te=!0,ne=!0,re=!1,ie={},oe=null,se=ho({},["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=ho({},["audio","video","img","source","image","track"]),le=null,ue=ho({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),he="http://www.w3.org/1998/Math/MathML",de="http://www.w3.org/2000/svg",pe="http://www.w3.org/1999/xhtml",fe=pe,me=!1,ge=void 0,ve=["application/xhtml+xml","text/html"],ye="text/html",be=void 0,Ee=null,_e=i.createElement("form"),we=function(e){return e instanceof RegExp||e instanceof Function},Te=function(e){Ee&&Ee===e||(e&&"object"===(void 0===e?"undefined":xo(e))||(e={}),e=po(e),U="ALLOWED_TAGS"in e?ho({},e.ALLOWED_TAGS):F,q="ALLOWED_ATTR"in e?ho({},e.ALLOWED_ATTR):H,le="ADD_URI_SAFE_ATTR"in e?ho(po(ue),e.ADD_URI_SAFE_ATTR):ue,ae="ADD_DATA_URI_TAGS"in e?ho(po(ce),e.ADD_DATA_URI_TAGS):ce,oe="FORBID_CONTENTS"in e?ho({},e.FORBID_CONTENTS):se,z="FORBID_TAGS"in e?ho({},e.FORBID_TAGS):{},W="FORBID_ATTR"in e?ho({},e.FORBID_ATTR):{},ie="USE_PROFILES"in e&&e.USE_PROFILES,G=!1!==e.ALLOW_ARIA_ATTR,K=!1!==e.ALLOW_DATA_ATTR,V=e.ALLOW_UNKNOWN_PROTOCOLS||!1,Y=e.SAFE_FOR_TEMPLATES||!1,Q=e.WHOLE_DOCUMENT||!1,Z=e.RETURN_DOM||!1,$=e.RETURN_DOM_FRAGMENT||!1,ee=e.RETURN_TRUSTED_TYPE||!1,X=e.FORCE_BODY||!1,te=!1!==e.SANITIZE_DOM,ne=!1!==e.KEEP_CONTENT,re=e.IN_PLACE||!1,B=e.ALLOWED_URI_REGEXP||B,fe=e.NAMESPACE||pe,e.CUSTOM_ELEMENT_HANDLING&&we(e.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(j.tagNameCheck=e.CUSTOM_ELEMENT_HANDLING.tagNameCheck),e.CUSTOM_ELEMENT_HANDLING&&we(e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(j.attributeNameCheck=e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),e.CUSTOM_ELEMENT_HANDLING&&"boolean"==typeof e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements&&(j.allowCustomizedBuiltInElements=e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),ge=ge=-1===ve.indexOf(e.PARSER_MEDIA_TYPE)?ye:e.PARSER_MEDIA_TYPE,be="application/xhtml+xml"===ge?function(e){return e}:ro,Y&&(K=!1),$&&(Z=!0),ie&&(U=ho({},[].concat(Po(_o))),q=[],!0===ie.html&&(ho(U,mo),ho(q,wo)),!0===ie.svg&&(ho(U,go),ho(q,To),ho(q,Io)),!0===ie.svgFilters&&(ho(U,vo),ho(q,To),ho(q,Io)),!0===ie.mathMl&&(ho(U,bo),ho(q,So),ho(q,Io))),e.ADD_TAGS&&(U===F&&(U=po(U)),ho(U,e.ADD_TAGS)),e.ADD_ATTR&&(q===H&&(q=po(q)),ho(q,e.ADD_ATTR)),e.ADD_URI_SAFE_ATTR&&ho(le,e.ADD_URI_SAFE_ATTR),e.FORBID_CONTENTS&&(oe===se&&(oe=po(oe)),ho(oe,e.FORBID_CONTENTS)),ne&&(U["#text"]=!0),Q&&ho(U,["html","head","body"]),U.table&&(ho(U,["tbody"]),delete z.tbody),Vi&&Vi(e),Ee=e)},Se=ho({},["mi","mo","mn","ms","mtext"]),Ie=ho({},["foreignobject","desc","title","annotation-xml"]),ke=ho({},go);ho(ke,vo),ho(ke,yo);var Ce=ho({},bo);ho(Ce,Eo);var Ae=function(e){var t=b(e);t&&t.tagName||(t={namespaceURI:pe,tagName:"template"});var n=ro(e.tagName),r=ro(t.tagName);if(e.namespaceURI===de)return t.namespaceURI===pe?"svg"===n:t.namespaceURI===he?"svg"===n&&("annotation-xml"===r||Se[r]):Boolean(ke[n]);if(e.namespaceURI===he)return t.namespaceURI===pe?"math"===n:t.namespaceURI===de?"math"===n&&Ie[r]:Boolean(Ce[n]);if(e.namespaceURI===pe){if(t.namespaceURI===de&&!Ie[r])return!1;if(t.namespaceURI===he&&!Se[r])return!1;var i=ho({},["title","style","font","a","script"]);return!Ce[n]&&(i[n]||!ke[n])}return!1},Le=function(e){no(n.removed,{element:e});try{e.parentNode.removeChild(e)}catch(t){try{e.outerHTML=w}catch(t){e.remove()}}},Re=function(e,t){try{no(n.removed,{attribute:t.getAttributeNode(e),from:t})}catch(e){no(n.removed,{attribute:null,from:t})}if(t.removeAttribute(e),"is"===e&&!q[e])if(Z||$)try{Le(t)}catch(e){}else try{t.setAttribute(e,"")}catch(e){}},Oe=function(e){var t=void 0,n=void 0;if(X)e="<remove></remove>"+e;else{var r=io(e,/^[\r\n\t ]+/);n=r&&r[0]}"application/xhtml+xml"===ge&&(e='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+e+"</body></html>");var o=_?_.createHTML(e):e;if(fe===pe)try{t=(new p).parseFromString(o,ge)}catch(e){}if(!t||!t.documentElement){t=S.createDocument(fe,"template",null);try{t.documentElement.innerHTML=me?"":o}catch(e){}}var s=t.body||t.documentElement;return e&&n&&s.insertBefore(i.createTextNode(n),s.childNodes[0]||null),fe===pe?C.call(t,Q?"html":"body")[0]:Q?t.documentElement:s},Ne=function(e){return I.call(e.ownerDocument||e,e,l.SHOW_ELEMENT|l.SHOW_COMMENT|l.SHOW_TEXT,null,!1)},xe=function(e){return e instanceof d&&("string"!=typeof e.nodeName||"string"!=typeof e.textContent||"function"!=typeof e.removeChild||!(e.attributes instanceof h)||"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":xo(a))?e instanceof a:e&&"object"===(void 0===e?"undefined":xo(e))&&"number"==typeof e.nodeType&&"string"==typeof e.nodeName},Me=function(e,t,r){R[e]&&eo(R[e],(function(e){e.call(n,t,r,Ee)}))},De=function(e){var t=void 0;if(Me("beforeSanitizeElements",e,null),xe(e))return Le(e),!0;if(io(e.nodeName,/[\u0080-\uFFFF]/))return Le(e),!0;var r=be(e.nodeName);if(Me("uponSanitizeElement",e,{tagName:r,allowedTags:U}),!Pe(e.firstElementChild)&&(!Pe(e.content)||!Pe(e.content.firstElementChild))&&co(/<[/\w]/g,e.innerHTML)&&co(/<[/\w]/g,e.textContent))return Le(e),!0;if("select"===r&&co(/<template/i,e.innerHTML))return Le(e),!0;if(!U[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(g(o[s],!0),v(e))}if(!z[r]&&Ue(r)){if(j.tagNameCheck instanceof RegExp&&co(j.tagNameCheck,r))return!1;if(j.tagNameCheck instanceof Function&&j.tagNameCheck(r))return!1}return Le(e),!0}return e instanceof c&&!Ae(e)?(Le(e),!0):"noscript"!==r&&"noembed"!==r||!co(/<\/no(script|embed)/i,e.innerHTML)?(Y&&3===e.nodeType&&(t=e.textContent,t=oo(t,O," "),t=oo(t,N," "),e.textContent!==t&&(no(n.removed,{element:e.cloneNode()}),e.textContent=t)),Me("afterSanitizeElements",e,null),!1):(Le(e),!0)},Be=function(e,t,n){if(te&&("id"===t||"name"===t)&&(n in i||n in _e))return!1;if(K&&!W[t]&&co(x,t));else if(G&&co(P,t));else if(!q[t]||W[t]){if(!(Ue(e)&&(j.tagNameCheck instanceof RegExp&&co(j.tagNameCheck,e)||j.tagNameCheck instanceof Function&&j.tagNameCheck(e))&&(j.attributeNameCheck instanceof RegExp&&co(j.attributeNameCheck,t)||j.attributeNameCheck instanceof Function&&j.attributeNameCheck(t))||"is"===t&&j.allowCustomizedBuiltInElements&&(j.tagNameCheck instanceof RegExp&&co(j.tagNameCheck,n)||j.tagNameCheck instanceof Function&&j.tagNameCheck(n))))return!1}else if(le[t]);else if(co(B,oo(n,D,"")));else if("src"!==t&&"xlink:href"!==t&&"href"!==t||"script"===e||0!==so(n,"data:")||!ae[e]){if(V&&!co(M,oo(n,D,"")));else if(n)return!1}else;return!0},Ue=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=ao(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&&(Re(l,e),a.keepAttr))if(co(/\/>/i,r))Re(l,e);else{Y&&(r=oo(r,O," "),r=oo(r,N," "));var h=be(e.nodeName);if(Be(h,i,r))try{u?e.setAttributeNS(u,l,r):e.setAttribute(l,r),to(n.removed)}catch(e){}}}Me("afterSanitizeAttributes",e,null)}},qe=function e(t){var n=void 0,r=Ne(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,h=void 0;if((me=!e)&&(e="\x3c!--\x3e"),"string"!=typeof e&&!Pe(e)){if("function"!=typeof e.toString)throw lo("toString is not a function");if("string"!=typeof(e=e.toString()))throw lo("dirty is not a string, aborting")}if(!n.isSupported){if("object"===xo(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 d=be(e.nodeName);if(!U[d]||z[d])throw lo("root node is forbidden and cannot be sanitized in-place")}}else if(e instanceof a)1===(c=(s=Oe("\x3c!----\x3e")).ownerDocument.importNode(e,!0)).nodeType&&"BODY"===c.nodeName||"HTML"===c.nodeName?s=c:s.appendChild(c);else{if(!Z&&!Y&&!Q&&-1===e.indexOf("<"))return _&&ee?_.createHTML(e):e;if(!(s=Oe(e)))return Z?null:ee?w:""}s&&X&&Le(s.firstChild);for(var p=Ne(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(h=k.call(s.ownerDocument);s.firstChild;)h.appendChild(s.firstChild);else h=s;return q.shadowroot&&(h=A.call(r,h,!0)),h}var f=Q?s.outerHTML:s.innerHTML;return Y&&(f=oo(f,O," "),f=oo(f,N," ")),_&&ee?_.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 Be(r,i,n)},n.addHook=function(e,t){"function"==typeof t&&(R[e]=R[e]||[],no(R[e],t))},n.removeHook=function(e){R[e]&&to(R[e])},n.removeHooks=function(e){R[e]&&(R[e]=[])},n.removeAllHooks=function(){R={}},n}();const Uo={ADD_TAGS:["#comment","li-icon","icon","iframe"],ADD_ATTR:["target"],FORCE_BODY:!0,RETURN_DOM:!0};function Fo(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n=qo(null,e,t);return n.innerHTML}function qo(e,t){let{ADD_TAGS:n=[],ADD_ATTR:r=[]}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const i=le({},Uo);i.ADD_TAGS=[...i.ADD_TAGS,...n],i.ADD_ATTR=[...i.ADD_ATTR,...r];const o=Bo.sanitize(t,i);return e&&e.nodeType===Node.ELEMENT_NODE&&(e.innerHTML="",e.append(...o.childNodes)),o}var Ho="aria-[a-z0-9_\\-]+|class|data-[a-z0-9_\\-]+|dir|id|role|tabindex",jo=function(){if("undefined"==typeof document)return!0;return"textContent"in document.createElement("div")}()?"textContent":"innerText",zo=["b","del","em","i","s","strong","sub","sup"],Wo=zo.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"]),Go=[Ho,"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 Ko(){}var Vo,Yo;Yo=/[&<>"'\u0000\\=]/g,Vo={"&":"&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 Qo=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)};var Jo,Xo=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 Zo(e){e=Qo(e)?e:[e];var t,n,r,i=0,o="<(?!/?";return o+="(?:",Xo(e,(function(e,s){t=e.tags||Wo,n=e.attrs||Go,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 $o(e){return Zo({tags:e=e||Wo,checkUrlAttrs:!0})}function es(e,t){var n=(t=t||{}).allowTags,r=!1!==t.hasCustomElementMarkup;return n?!$o(n).test(e):r?!es.R_UNSAFE_CUSTOM_ELEMENT.test(e):!es.R_UNSAFE_HTML.test(e)}function ts(e){return e.replace(/<[^>]*>|[<>'"&\\]/g,"")}es.R_UNSAFE_HTML=$o(),es.R_UNSAFE_CUSTOM_ELEMENT=Zo([{tags:Wo,checkUrlAttrs:!0},{tags:[(Jo={tag:"li-icon",attrs:"active|a11y-text|animate|color|size|type"}).tag],attrs:[Ho,Jo.attrs].join("|"),checkUrlAttrs:!1}]);var ns={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,"",""]};ns.optgroup=ns.option,ns.tbody=ns.tfoot=ns.colgroup=ns.caption=ns.thead,ns.th=ns.td;function rs(e,t){if(!(this instanceof rs))return new rs(e,t);(t=t||{}).allowTags=t.allowTags?t.allowTags.reduce((function(e,t){return e.concat(t)}),[]):null,this._string=e,this._options=t}rs.prototype=function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);return e}(new Ko,{toString:function(){var e=this._string,t=this._stringVal,n=e;return void 0!==t?t:(es(e,this._options)||(n=e,e=ts(e),Ti("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 is={};function os(e){const t=document.getElementById(e);if(!t&&void 0!==is[e])return is[e];if(!t)return console.warn("Element with id: ".concat(e," not found")),is[e]=null,is[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):(is[e]=n,t.parentNode.removeChild(t),is[e])}const ss={COPY:"copy",LINKEDIN:"linkedin",TWITTER:"twitter",FACEBOOK:"facebook"};Object.keys(ss).map(e=>ss[e]);const as=["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(as,"i");class cs{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:window.tracking,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:window.lazyloader;const{sources:i,posterUrl:o,digitalmediaAssetUrn:s,trackingId:a,captionsUrl:c}=e.dataset,l=JSON.parse(i);if(!l.length)throw new Error("Please pass video sources in correct Array string format inside data-sources attribute");e.hasAttribute("autoplay")&&(t.autoplay=!0),this._mediaPlayerInstancePromise=this._createPlayer(e,a,s,t,r).then(e=>(o&&e.poster(o),e.src(l),c&&e.addRemoteTextTrack({kind:"captions",label:"English",srclang:"en",mode:"showing",src:c}),this._bindTracking(e,n),e))}_createPlayer(e,t,n,r,i){return i.then(e=>e.getLazyLoadedJavascriptModule("media-player")).then(i=>{const{createPlayer:o}=i,s=r.plugins&&r.plugins.rum&&r.plugins.rum.mediaHeader&&r.plugins.rum.mediaHeader.mediaSource||"ugc",a=le({errorDisplay:!1,controlBar:{fullscreenToggle:!0,backToStartButton:!0,captionsToggle:{selected:!0}},plugins:{}},r);return a.plugins.tracking={mediaUrn:n,trackingId:t},a.plugins.rum={mediaUrn:n,trackingId:t,mediaHeader:{mediaSource:s}},o(e,a)})}_bindTracking(e,t){t.then(t=>{const n=this._getMediaPlayerTrackingEventHandler(t);e.tracking().on("track",n),e.rum().on("track",n)})}_getMediaPlayerTrackingEventHandler(e){return function(t,n){let{eventName:r,eventData:i}=n,o=le({header:{},requestHeader:{}},i);delete o.name,delete o.plugin,delete o.instance,o.requestHeader.pageKey||(o.requestHeader.pageKey=M(document)),e.fireTrackingEvent(r,o)}}getPlayerPromise(){return this._mediaPlayerInstancePromise}}"".concat("tooltip__popup","--show");class ls{constructor(e){if(!e)throw new Error("No element passed in");this._el=e,this._imgEl=this._el.querySelector(".cover-img__image"),this._imgEl&&(this.cropInfo=os(this._imgEl.dataset.embedId),this.ratio=0,this._imgEl.classList.contains(".lazy-loaded")&&this._initCalc(),this._bindEvents())}_bindEvents(){window.addEventListener("resize",this._handleWindowResize.bind(this)),this._imgEl.addEventListener("load",this._initCalc.bind(this))}_handleWindowResize(){this._isResizing||(this._isResizing=!0,window.requestAnimationFrame(this._initCalc.bind(this)))}_initCalc(){const e=this._el.clientWidth,t=this._el.clientHeight,n=this._imgEl.naturalWidth,r=this._imgEl.naturalHeight,i=this.cropInfo?this.cropInfo.y:0,o=this.cropInfo?this.cropInfo.x:0,s=n-o,a=r-i,c=e/s,l=t/a,u=s*l>=e,h=a*c>=t;let d=0;h&&u?d=Math.min(c,l):h?d=c:u&&(d=l);let p=Math.max(d*n,e),f=Math.max(d*r,t);d!==this.ratio&&(this.ratio=d,this._imgEl.style.width="".concat(p,"px"),this._imgEl.style.height="".concat(f,"px"),this._imgEl.style.top="-".concat(i*this.ratio,"px"),this._imgEl.style.left="-".concat(o*this.ratio,"px")),this._isResizing=!1}}const us="loader--absolute",hs="loader--show",ds="loader--full-screen",ps="no-scroll",fs="loader-wrapper";class ms{constructor(e){let{wrapperEl:t}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!e)throw new Error("Loader el required");if(t&&!t.contains(e))throw new Error("Wrapper element is not a parent of the Loader el");this.el=e,this.wrapperEl=t,this.isAbsoluteVariant=this.wrapperEl&&this.el.classList.contains(us),window.addEventListener("pagehide",e=>{let{persisted:t}=e;t&&this.hide()})}show(){this.el.classList.add(hs),this.el.classList.contains(ds)&&document.body.classList.add(ps),this.isAbsoluteVariant&&this.wrapperEl.classList.add(fs)}hide(){this.el.classList.remove(hs),document.body.classList.remove(ps),this.isAbsoluteVariant&&this.wrapperEl.classList.remove(fs)}}const gs="dismissable-input",vs="dismissable-input--focus",ys="dismissable-input__button",bs="dismissable-input__button--show",Es="dismissable-input__input";class _s{constructor(e){this.el=e,this._input=this.el.querySelector(".".concat(Es)),this._dismissButtonEl=this.el.querySelector(".".concat(ys)),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(vs),this._updateDismissButton(),O(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(bs)}_showDismissButton(){this._dismissButtonEl.classList.add(bs)}_onInputBlur(){this.el.classList.remove(vs)}clear(){this._input.value="",this._updateDismissButton(""),this._input.focus(),O(this.el,"clear")}}const ws={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"},Ts="i18n_aria_live_text_no-suggestions",Ss="i18n_aria_live_text_one-suggestion",Is="i18n_aria_live_text_multiple-suggestions",ks=500;class Cs{constructor(e,t){let{createDismissableInput:n,elementClasses:r=ws,generateApiUrl:i,liveTextEl:o,liveTextClearTime:s=ks,onSelect:a,onInput:c=(()=>{}),inputEl:l,dropdownContainerEl:u,dropdownListEl:h,isFullPageTypeahead:d}=t;this.el=e,this._liveTextClearTime=s,this._elementClasses=r,this._input=l||this.el.querySelector(".".concat(Es)),this._dropdownContainerEl=u||this.el.querySelector(".".concat(this._elementClasses.dropdown)),this._dropdownListEl=h||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 _s(this.el)),this.isFullPageTypeahead=d,this._getLiveTextOptions(),this._resetState(),this._attachEventListeners(),this._requestHandler=L(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(j(e.key)){case q.ARROW_DOWN:e.preventDefault(),this._moveToResult(1);break;case q.ARROW_UP:e.preventDefault(),this._moveToResult(-1);break;case q.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 ee(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=T(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=os(Ts),this._liveTextOneSuggestion=os(Ss),this._liveTextMultipleSuggestions=os(Is)}_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 As{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 Ui(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;v(t,".".concat(ws.block))||document.activeElement.blur()}_userIsTabbedOut(){if(this.expandedEl.classList.contains("isExpanded")&&Si()){return!this.expandedEl.contains(document.activeElement)}return!1}}class Ls extends Cs{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 Rs={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"},Os="i18n_aria_live_text_recent-searches-one-suggestion",Ns="i18n_aria_live_text_recent-searches-multiple-suggestions",xs="i18n_aria_live_text_recent-searches-cleared";class Ps extends Cs{constructor(e,t){let{liveTextEl:n,clearRecentSearchApiBaseUrl:r}=t;if(super(e,{liveTextEl:n,elementClasses:Rs,liveTextClearTime:1e3}),!e)throw Error("An element must be provided to RecentSearches");if(this.dropdownContainerEl=e.querySelector(".".concat(Rs.dropdown)),!this.dropdownContainerEl)throw Error("A RecentSearches container element must be in the RecentSearches parent element");this._clearRecentSearchApiBaseUrl=r,this._dropdownListItemEls=T(this.dropdownContainerEl.querySelectorAll(".".concat(Rs.listItem))),this._clearBtnItem=e.querySelector(".".concat(Rs.listItemClearButton)),this._dropdownListItemEls.push(this._clearBtnItem),this._dismissButtonEl=e.querySelector(".".concat(ys))}_attachEventListeners(){this._clearBtn=this.el.querySelector(".".concat(Rs.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(Rs.listItemLink));n?this._redirect(n):t.classList.contains(Rs.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(Rs.showList),document.body.removeEventListener("click",this._boundClickOutsideToCloseHandler),this._setExpandedState(!1),this._setHighlightedEl(null))}_getLiveTextOptions(){this._liveTextOneSuggestion=os(Os),this._liveTextMultipleSuggestions=os(Ns),this._liveTextClearedSuggestions=os(xs)}_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(){ee(this._clearRecentSearchApiBaseUrl,{method:"DELETE"}).then(()=>{this._removeEventListeners(),this._informUserThatSearchesAreCleared=!0,super._hideList(),super._setLiveText()}).catch(e=>{throw e})}}class Ms{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 $(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=v(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=v(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 Ds{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=T(this.el.querySelectorAll(".".concat("base-search-bar"))).reduce((e,t)=>{const n=new As(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 Ls(e,{generateApiUrl:this._generateKeywordsTypeaheadApiUrl.bind(this),liveTextEl:s,onSelect:this._onKeywordsTypeaheadSelect.bind(this)});e.querySelector(".".concat(Rs.dropdown))&&new Ps(e,{clearRecentSearchApiBaseUrl:n,liveTextEl:s}),new Ls(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(gs,".search-input"))).forEach(e=>{new _s(e);e.querySelector(".".concat(Rs.dropdown))&&new Ps(e,{clearRecentSearchApiBaseUrl:n,liveTextEl:s})}),this._addCustomErrorStateHandler()}else Array.from(this.el.querySelectorAll(".".concat(gs))).forEach(e=>new _s(e));o&&(this.switcher=new Ms(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(M(document),"-").concat(t)})})})}}class Bs extends Hi{constructor(e){let{enablePageViewTracking:t=!1,shouldHideModal:n=(()=>!1),triggerByOutletEl:r=!0,pushState:i=!0,shouldMoveToTopContainer:o=!0,focusElement:s}=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,focusElement:s}),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(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};super.open(e),this._shouldHideModal()||(this.pushState&&history.pushState(this._el.id,"show modal","#".concat("overlay_").concat(this._el.id)),window.addEventListener("hashchange",this.hashChangeHandlerRef))}close(){let{enableHistoryBack:e=!0}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};window.removeEventListener("hashchange",this.hashChangeHandlerRef),this.pushState&&e&&(window.history.replaceState({},document.title,window.location.href.split("#")[0]),history.back()),super.close()}}document.querySelector.bind(document);String.fromCharCode(32);M(document);String.fromCharCode(32);function Us(){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 Fs(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 qs(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}Us(),Fs(3),qs(128),Us(),Fs(6),qs(400);var Hs=window||r;Hs.utag_data||(Hs.utag_data={});const js="undefined"!=typeof window&&window&&"node"!==window.appEnvironment;Hs.utag_cfg_ovrd=Hs.utag_cfg_ovrd||{},Hs.trackingEventDebugData=Hs.trackingEventDebugData||[],Hs.utag_cfg_ovrd.noview=!0,Hs.utag_cfg_ovrd.nocookie=!0;js&&new RegExp("bot|google|aolbuild|baidu|bing|msn|duckduckgo|teoma|slurp|yandex|sogou|facebook|alexa","i").test(Hs.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 zs={GOOGLE_ERROR:"googleError",GOOGLE_USER_FETCHED:"googleUserFetched",INITIALIZED:"initialized",PROMPT_MOMENT:"promptMomentNotification",TOKEN_FETCHED:"tokenFetched"},Ws={INITIALIZATION:"initialization",AUTHENTICATION:"authentication"},{GOOGLE_ERROR:Gs,GOOGLE_USER_FETCHED:Ks,INITIALIZED:Vs}=zs,{INITIALIZATION:Ys,AUTHENTICATION:Qs}=Ws;EventTarget;var Js={exports:{}};function Xs(e){this.message=e}Xs.prototype=new Error,Xs.prototype.name="InvalidCharacterError";var Zs="undefined"!=typeof window&&window.atob&&window.atob.bind(window)||function(e){var t=String(e).replace(/=+$/,"");if(t.length%4==1)throw new Xs("'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 $s=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(Zs(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 Zs(t)}};function ea(e){this.message=e}ea.prototype=new Error,ea.prototype.name="InvalidTokenError",Js.exports=function(e,t){if("string"!=typeof e)throw new ea("Invalid token specified");var n=!0===(t=t||{}).header?0:1;try{return JSON.parse($s(e.split(".")[n]))}catch(e){throw new ea("Invalid token specified: "+e.message)}},Js.exports.InvalidTokenError=ea;const ta=zs,na=Ws,{GOOGLE_USER_FETCHED:ra,GOOGLE_ERROR:ia,INITIALIZED:oa}=ta,{INITIALIZATION:sa}=na;function aa(e){var t=e.intersectionRect;return t.width>=0&&t.height>=0}function ca(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 la(e,t){return Math.round(e-t)}var ua,ha=(ua=function(e,t){return(ua=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}ua(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),da=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}(),pa=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return ha(t,e),t.prototype.removePredicate=function(e,t){return"string"==typeof e?t.id===e:t.callback===e},t}(da),fa=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return ha(t,e),t.prototype.removePredicate=function(e,t){return t===e},t}(da),ma=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return ha(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}(da),ga=function(){return 0},va=!("undefined"==typeof window||!window||"undefined"==typeof document||!document),ya=va&&!!window.requestAnimationFrame,ba={hasDOM:va,hasRAF:ya,getScrollTop:ga,getScrollLeft:ga,getHeight:ga,getWidth:ga,rAF:ya?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:ga,get isDirty(){return ba.version!==ba.lastVersion},document:window.document,IntersectionObserver:va&&window.IntersectionObserver,performance:va&&window.performance};function Ea(){++ba.version}function _a(){var e=null!=document.scrollingElement;ba.getScrollTop=e?function(){return document.scrollingElement.scrollTop}:function(){return window.scrollY},ba.getScrollLeft=e?function(){return document.scrollingElement.scrollLeft}:function(){return window.scrollX}}va&&(ba.getHeight=function(){return window.innerHeight},ba.getWidth=function(){return window.innerWidth},ba.updateMeta=function(){ba.meta.height=ba.getHeight(),ba.meta.width=ba.getWidth(),ba.meta.scrollLeft=ba.getScrollLeft(),ba.meta.scrollTop=ba.getScrollTop(),ba.lastVersion=ba.version},ba.updateMeta(),"loading"!==document.readyState?_a():document.addEventListener("DOMContentLoaded",_a),window.addEventListener("resize",Ea,!1),window.addEventListener("scroll",Ea,!1));var wa=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,ba.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}(),Ta=null;var Sa=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)}}(),Ia="xxxx".replace(/[xy]/g,(function(e){var t=16*Math.random()|0;return("x"===e?t:3&t|8).toString(16)})),ka=0,Ca=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 ba.isDirty&&ba.updateMeta(),e===window||e===document?(n.height=ba.meta.height,n.width=ba.meta.width,n.scrollLeft=ba.meta.scrollLeft,n.scrollTop=ba.meta.scrollTop,n):(t=ca(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 Aa(){return ka+++Ia}var La=function(){function e(e,t){this.isTicking=!1,this.toRemove=[],this.engine=e||(Ta||(Ta=new wa)),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(Ca.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=ca(e),r=Ca.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}(),Ra=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.queue=new pa,t}return Sa(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=Aa();return this.queue.push({callback:e,id:t}),t},t}(La),Oa=function(e){function t(t){var n=e.call(this,void 0,window)||this;return n.predicate=t,n}return Sa(t,e),t.prototype.applyQueue=function(t){this.predicate(t)&&e.prototype.applyQueue.call(this,t)},t}(Ra),Na=function(e){function t(t,n,r){void 0===r&&(r=!1);var i=e.call(this,t,n)||this;return i.lastVersion=ba.version,i.queue=new ma,i.ALLOW_CACHED_SCHEDULER=r,i}return Sa(t,e),Object.defineProperty(t.prototype,"isDirty",{get:function(){return ba.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=ca(i)),r(e,o,s)}this.lastVersion=ba.version},t.prototype.watch=function(e,t,n){this.startTicking(),n=n||Aa();return this.queue.push({el:e,callback:t,id:n,clientRect:null}),n},t}(La),xa=null;var Pa=function(){function e(){this.queue=new fa}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}(),Ma=function(){function e(e){this.scheduler=new Oa(e.bind(this))}return e.prototype.trigger=function(){},e.prototype.listen=function(e){this.state=Ca.generate(),this.scheduler.watch(e)},e.prototype.unlisten=function(e){this.scheduler.unwatch(e)},e}(),Da=null;function Ba(e,t){var n=(Da||(Da={scroll:new Ma((function(e){var t=this.state,n=t.scrollTop,r=t.scrollLeft;return this.state=e,n!==e.scrollTop||r!==e.scrollLeft})),resize:new Ma((function(e){var t=this.state,n=t.width,r=t.height;return this.state=e,r!==e.height||n!==e.width})),destroy:new Pa,beforeunload:new Pa,hide:new Pa,show:new Pa}))[e];n&&n.listen(t)}function Ua(e,t){if(Da){var n=Da[e];n&&n.unlisten(t)}}function Fa(e,t){if(Da){var n=Da[e];n&&n.trigger(t)}}function qa(e){(xa||(xa=new Ra)).scheduleWork(e)}function Ha(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}}ba.hasDOM&&(window.addEventListener("beforeunload",(function(){Fa("beforeunload"),Fa("destroy")})),document.addEventListener("visibilitychange",(function(){"visible"===document.visibilityState?Fa("show"):Fa("hide")})));var ja=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 Na(void 0,this.root,t.ALLOW_CACHED_SCHEDULER)}return e.prototype.observe=function(e){var t=this,n=e,r=n.__spanielId=n.__spanielId||Aa();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:za(),intersectionRatio:0,intersectionRect:za(),isIntersecting:!1,rootBounds:za(),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),h=Math.min(c.left+c.width,t.right)-l,d=Math.min(c.top+c.height,t.bottom)-u,p=h>=0?l:0,f=u>=0?u:0,m={left:p,top:f,x:p,y:f,width:h,height:d,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:aa({intersectionRect:o})}}({unixTime:e.dateNow,highResTime:e.highResTime,rootBounds:c,target:n,boundingClientRect:Ha(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 za(){return{bottom:0,height:0,left:0,right:0,top:0,width:0,x:0,y:0}}var Wa={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 h={root:i,rootMargin:u,threshold:this.thresholds.map((function(e){return e.ratio})),ALLOW_CACHED_SCHEDULER:a};this.usingNativeIo=!!l&&!!ba.IntersectionObserver;var d=this.usingNativeIo?ba.IntersectionObserver:ja;this.observer=new d((function(e){return n.internalCallback(e)}),h),this.onTabHidden=this._onTabHidden.bind(this),this.onWindowClosed=this._onWindowClosed.bind(this),this.onTabShown=this._onTabShown.bind(this),ba.hasDOM&&(Ba("beforeunload",this.onWindowClosed),Ba("hide",this.onTabHidden),Ba("show",this.onTabShown),c&&(this.paused="visible"!==ba.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((ba.performance.timeOrigin||ba.performance.timing.navigationStart)+a):a,h=this.usingNativeIo?a:e.highResTime;if(!h)throw new Error("Missing intersection entry timestamp");return{intersectionRatio:n,isIntersecting:s,unixTime:u,time:u,highResTime:h,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:Wa,boundingClientRect:o||Wa,intersectionRect:Wa,visibleTime:i.lastVisible.unixTime,duration:la(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=la(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:aa(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=la(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(),ba.hasDOM&&(Ua("beforeunload",this.onWindowClosed),Ua("hide",this.onTabHidden),Ua("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),qa((function(){t.handleRecordExiting(n),t.flushQueuedEntries()})))},e.prototype.observe=function(e,t){var n=e,r=n.__spanielId=n.__spanielId||Aa();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}}();ba.IntersectionObserver&&ba.IntersectionObserver;const Ga=".".concat("show-more-less","__list"),Ka=".".concat("show-more-less","__more-button"),Va=".".concat("show-more-less","__less-button"),Ya="".concat("show-more-less","__list--hide-after"),Qa="".concat("show-more-less","__button--hide");class Ja{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e=>e.querySelector(K);if(!e)throw Error("An element must be provided to ShowMoreLess");this.el=e,this.listEl=this.el.querySelector(Ga),this._getFocusItemFromListItem=t,this.maxNumToShow=parseInt(this.listEl.getAttribute("data-max-num-to-show")),this.hideClass="".concat(Ya,"-").concat(this.maxNumToShow),this.showMoreButton=this.el.querySelector(Ka),this.showLessButton=this.el.querySelector(Va),this._attachEventListeners(),this.firstHiddenListItem=this.listEl.children[this.maxNumToShow],this.isExpanded=!this.listEl.classList.contains(this.hideClass),new z(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(Qa),this.showMoreButton.classList.remove(Qa)):(this.showLessButton.classList.remove(Qa),this.showMoreButton.classList.add(Qa))}}".".concat("accordion-item__trigger");const Xa=["options","optionsV2"];function Za(e){return t=>t.type&&t.type.toLowerCase()===e.toLowerCase()}const $a=Za("action"),ec=Za("openpage"),tc=Za("openlink"),nc=e=>$a(e)&&"BLOCK_PROFILE"===e.action.actionType;function rc(e){const t=function(e){const t=(e.type?e.type:e).toLowerCase().split("_"),n=[];n.push(t.splice(0,1));for(const e of t)n.push(e[0].toUpperCase()+e.slice(1));return n.join("")}(e),n=t.toLowerCase();return{[n]:le({},e[t]),type:n}}class ic{constructor(e){this.optionStack=[],this.semaphoreJson=e.constructor==={}.constructor?e:JSON.parse(e)}getNextStep(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=this.semaphoreJson,{options:n,optionsV2:r}=t,i=he(t,Xa);if(n&&!(this.optionStack.length>=i.numberOfSteps)){if("BLOCK_PROFILE"===e){let e=n.find(e=>$a(e)&&"BLOCK_PROFILE"===e.action.type);if(!e)return;e=JSON.parse(JSON.stringify(e)),e.action.actionType="BLOCK_PROFILE";const t=[e];return this.optionStack.push(le({options:t.map(e=>rc(e)),heading:i.blockConfirmationScreen.heading},i)),this.optionStack[this.optionStack.length-1]}if(e){const t=this.optionStack.length;if(0===t)return;const n=this.optionStack[t-1].options.find(t=>t[t.type].title===e);if(!n)return;if(ec(n))return le(le({},n),i);const r=le({options:n[n.type].options.map(e=>rc(e))},i);n[n.type].heading&&(r.heading=n[n.type].heading),this.optionStack.push(r)}else n=[...n,...r],this.optionStack.push(le({options:n.map(e=>rc(e))},i));return this.optionStack[this.optionStack.length-1]}}getPreviousStep(){if(this.optionStack.length>1)return this.optionStack.pop(),this.optionStack[this.optionStack.length-1]}hasPreviousStep(){return this.optionStack.length>1}getCurrentStep(){return this.optionStack[this.optionStack.length-1]}findAction(e){const t=this.optionStack[this.optionStack.length-1].options;if(!t)return;const n=t.find(t=>$a(t)&&t[t.type].title===e);return n&&n.action}}const oc="hidden";class sc extends Hi{constructor(e){super(e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}),this.titleEl=this._el.querySelector(".semaphore-modal__title"),this.contentEl=this._el.querySelector(".semaphore-modal__content"),this.footer=this._el.querySelector(".modal__footer"),this.submitBtn=this.footer.querySelector('[data-semaphore-action="submit"]')}setTitle(e){this.titleEl.textContent=e}setContent(e){this.contentEl.appendChild(e)}hideFooter(){this.footer.classList.add(oc)}showFooter(){this.footer.classList.remove(oc)}enableSubmit(){this.submitBtn.disabled=!1}disableSubmit(){this.submitBtn.disabled=!0}hideSubmit(){this.disableSubmit(),this.submitBtn.classList.add(oc)}showSubmit(){this.enableSubmit(),this.submitBtn.classList.remove(oc)}querySelector(e){return this._el.querySelector(e)}clearContent(){for(this.disableSubmit();this.contentEl.firstChild;)this.contentEl.removeChild(this.contentEl.firstChild)}close(){this.clearContent(),super.close()}}class ac{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:'[data-item-type="semaphore"]',t=arguments.length>1?arguments[1]:void 0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:()=>{},r=arguments.length>3?arguments[3]:void 0;this.semaphoreSelector=e,this.parentContainer=t||document;const i=this.parentContainer.querySelector(e);if(i){this.semaphoreTrackingPrefix=i.dataset.semaphoreTrackingPrefix;const e=this.parentContainer.querySelector("#semaphore-modal");this.semaphoreModal=new sc(e,{focusElement:r}),this.submitActionCallBack=n,this.parentContainer?(this.parentContainer.addEventListener("click",this.semaphoreClickHandler.bind(this)),e.addEventListener("click",this.clickHandler.bind(this))):(document.body.removeEventListener("click",this.clickHandler),document.body.addEventListener("click",this.clickHandler.bind(this)))}}clickHandler(e){const t=v(e.target,"[data-semaphore-input]");if(t){if(t.href)return e.preventDefault(),void window.open(t.href,"_blank");"semaphore-action"===t.name&&(this.semaphoreModal.showFooter(),this.semaphoreModal.showSubmit())}if("back"===e.target.dataset.semaphoreAction){const e=this.semaphoreConfigParser.getPreviousStep();return void(e?(this.renderSemaphoreOptions(e),this.refreshLazyLoader(),this.semaphoreModal.open()):this.semaphoreModal.close())}if("submit"===e.target.dataset.semaphoreAction){let t=this.semaphoreModal.querySelector("[data-semaphore-input]:checked");if(t){const n=this.semaphoreConfigParser.findAction(t.value);n&&this.sendAction(n).finally(()=>{this.renderThanks(this.semaphoreConfigParser.getCurrentStep().resultScreen),this.submitActionCallBack(e)})}}let n=v(e.target,"[data-semaphore-item]");if(n&&"action"!==n.dataset.semaphoreItem){const t=n.querySelector('[data-attr="title"]');if(t){const n=this.semaphoreConfigParser.getNextStep(t.textContent);n&&(ec(n)?(this.renderThanks(n.resultScreen),this.submitActionCallBack(e)):this.renderSemaphoreOptions(n),this.refreshLazyLoader(),this.semaphoreModal.open())}}else{if(n&&"BLOCK_PROFILE"===n.dataset.semaphoreType){const e=this.semaphoreConfigParser.getNextStep("BLOCK_PROFILE");e&&this.renderSemaphoreOptions(e)}this.parentContainer||this.semaphoreClickHandler(e)}}semaphoreClickHandler(e){let t=v(e.target,this.semaphoreSelector);t&&t.dataset.semaphoreContentType&&t.dataset.semaphoreContentUrn&&"true"===t.dataset.isLoggedIn&&(e.preventDefault(),this.makeSemaphoreRequest(t.dataset.semaphoreContentUrn,t.dataset.semaphoreContentType,t.dataset.semaphoreAuthorProfileId,t.dataset.semaphoreAuthorUrn).then(e=>{this.semaphoreConfigParser=new ic(e);const t=this.semaphoreConfigParser.getNextStep();t&&(this.renderSemaphoreOptions(t),this.refreshLazyLoader(),this.semaphoreModal.open())}))}renderSemaphoreOptions(e){this.semaphoreModal.clearContent();const t=this.parentContainer.querySelector("#semaphore-container-template").content.firstElementChild.cloneNode(!0);let n=!1,r=!1,i=!1;e.options.forEach(o=>{let s=o.type;tc(o)&&!r&&(r=!0),$a(o)&&(n||(n=!1===o[s].nonRadioOptionEnabled),s=nc(o)?"block":o[s].nonRadioOptionEnabled?s:"".concat(s,"-radio"));const a=this.parentContainer.querySelector("#semaphore-".concat(s,"-template")).content.firstElementChild.cloneNode(!0),c=o[o.type],l=a.querySelector('[data-attr="title"]');if(l&&(l.textContent=c.title),c.type&&(a.dataset.semaphoreType=c.type),$a(o)){if(nc(o)){i=!0;const t="".concat(e.blockConfirmationScreen.firstLine," \n ").concat(e.blockConfirmationScreen.secondLine);a.querySelector('[data-attr="block-content"]').textContent=t}a.querySelector("[data-semaphore-input]").value=c.title}const u=a.querySelector('[data-attr="body"]');u&&(c.body?u.textContent=c.body:u.remove()),c.url&&(a.querySelector("[data-semaphore-input]").href=c.url),a.querySelector("[data-semaphore-input]").dataset.trackingControlName=c.trackingId,t.appendChild(a)}),this.semaphoreModal.setContent(t),this.semaphoreModal.setTitle(e.heading||e.headings.whyReportingThis),this.semaphoreConfigParser.hasPreviousStep()?(this.semaphoreModal.showFooter(),i&&this.semaphoreModal.showSubmit()):this.semaphoreModal.hideFooter(),r&&this.semaphoreModal.hideSubmit()}renderThanks(e){this.semaphoreModal.hideFooter(),this.semaphoreModal.clearContent(),this.semaphoreModal.setTitle(e.title);const t=this.parentContainer.querySelector("#semaphore-result-template").content.firstElementChild.cloneNode(!0);t.querySelector('[data-attr="thanks-text-body"]').textContent=e.messageBody.body;let n=t.querySelector('[data-attr="thanks-help-center-link"]');n.textContent=e.messageBody.helpCenterText,n.href=this.addTrackingCode(e.messageBody.helpCenterLink);const r=document.createElement("div");r.appendChild(t),this.semaphoreModal.setContent(r)}addTrackingCode(e){return C(e,this.semaphoreTrackingPrefix)}sendAction(e){return ee(e.actionUrl,{method:e.actionUrlRequestType,postData:e.actionPostData})}makeSemaphoreRequest(e,t,n,r){let i=A("/psettings/flagging-menu","entityUrn",e);return i=A(i,"contentSource",t),n?i=A(i,"authorProfileId",n):r&&(i=A(i,"authorUrn",r)),ee(i).then(e=>200===e.status?e.responseText:"{}").catch(()=>"{}")}refreshLazyLoader(){window.lazyloader&&window.lazyloader.then(e=>{e.refreshLoader()})}}class cc{constructor(e){if(!e)throw new Error("EllipsisMenu el required");this._el=e,this.currentMenuItem=this._el.querySelector(".ellipsis-menu__item-button");const t=this._el.querySelector(".collapsible-dropdown");if(!t)throw new Error("A collapsible dropdown is required to instantiate an EllipsisMenu");this.collapsibleDropdown=new $(t,{elementToFocus:this.currentMenuItem});this._el.querySelector(".ellipsis-menu__semaphore")&&(this._semaphore=new ac('[data-item-type="semaphore"]',t))}}var lc;!function(e){e.ProductName="productName",e.UntrackedResponseCodes="untrackedResponseCodes",e.TrackedResponseCodes="trackedResponseCodes",e.ClientSensorGroupName="clientSensorGroupName"}(lc||(lc={}));new Set(Object.values(lc));Error;var uc;!function(e){e.ProductName="productName",e.CustomTrackingId="customTrackingId",e.ClientSensorGroupName="clientSensorGroupName",e.AdditionalDegradedResponseCodes="additionalDegradedResponseCodes",e.NonDegradedResponseCodes="nonDegradedResponseCodes",e.DegradationKeyOverrides="degradationKeyOverrides"}(uc||(uc={})),new Set(Object.values(uc));function hc(e,t,n){let{entityUrn:r,isNameMatch:i,memberNetworkDistance:o,searchId:s,trackingId:a}=n;const c=B(document),l={header:{},requestHeader:c?{interfaceLocale:c}:{},entityActionType:t,entityUrn:r,isNameMatch:i,memberNetworkDistance:o,rawSearchId:s,trackingId:a};e.fireTrackingEvent("SearchActionV2Event",l)}function dc(e,t,n){let{entityUrn:r,searchId:i,trackingId:o,gridPosition:s}=t,{duration:a,resultSize:c,visibleHeight:l,visibleTime:u}=n;const h=B(document),d={header:{},requestHeader:h?{interfaceLocale:h}:{},results:[{entityUrn:r,gridPosition:s,searchId:i,trackingId:o,duration:a,resultSize:c,visibleHeight:l,visibleTime:u}]};e.fireTrackingEvent("SearchImpressionV2Event",d)}var pc=Object.freeze({__proto__:null,fireSearchActionV2Event:hc,fireSearchImpressionV2Event:dc});class fc{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];this.tracking=e,this.searchCards=[],n&&document.addEventListener("click",this._handleClickEvent.bind(this),!0),t&&document.addEventListener("keydown",this._handleKeydownEvent.bind(this),!0),document.addEventListener("visibilitychange",this._handleVisibilityChangeEvent.bind(this)),window.addEventListener("beforeunload",this._handleBeforeUnloadEvent.bind(this)),window.IntersectionObserver&&(this.intersectionObserver=new IntersectionObserver(this._handleObserverIntersectionChange.bind(this)))}observe(){(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[...document.querySelectorAll(".base-search-card")]).filter(e=>!this.searchCards.includes(e)).filter(e=>e.dataset.entityUrn).filter(e=>e.dataset.searchId).filter(e=>e.dataset.trackingId).filter(e=>e.dataset.column).filter(e=>e.dataset.row).forEach(e=>{this.searchCards.push(e),this.intersectionObserver&&this.intersectionObserver.observe(e)})}unobserve(){(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]).forEach(e=>{const t=this.searchCards.indexOf(e);t>=0&&this.searchCards.splice(t,1),this.intersectionObserver&&this.intersectionObserver.unobserve(e)})}unobserveAll(){this.intersectionObserver&&this.searchCards.forEach(e=>this.intersectionObserver.unobserve(e)),this.searchCards=[]}_handleClickEvent(e){const t=v(e.target,".base-search-card");t&&this.searchCards.includes(t)&&this._fireSearchActionV2Event(t)}_handleKeydownEvent(e){" "!==e.key&&"Spacebar"!==e.key||this._handleClickEvent(e)}_handleBeforeUnloadEvent(){this._flushSearchImpressionV2Events()}_handleVisibilityChangeEvent(){document.hidden&&this._flushSearchImpressionV2Events()}_flushSearchImpressionV2Events(){const e=Date.now();this.searchCards.forEach(t=>{t.dataset.visibleTime&&(this._fireSearchImpressionV2Event(t,e-t.dataset.visibleTime),this._cleanupIntersectionObserverData(t))})}_handleObserverIntersectionChange(e){const t=Date.now();e.forEach(e=>{const n=e.target;if(e.isIntersecting){n.dataset.visibleTime||(n.dataset.visibleTime=t);const r=n.dataset.largestIntersectionRatio;(!r||r<e.intersectionRatio)&&(n.dataset.largestIntersectionRatio=e.intersectionRatio)}else n.dataset.visibleTime&&(this._fireSearchImpressionV2Event(n,t-n.dataset.visibleTime),this._cleanupIntersectionObserverData(n))})}_cleanupIntersectionObserverData(e){delete e.dataset.largestIntersectionRatio,delete e.dataset.visibleTime}_fireSearchActionV2Event(e){const{entityUrn:t,isNameMatch:n,memberNetworkDistance:r,searchId:i,trackingId:o}=e.dataset;hc(this.tracking,"VIEW_ENTITY",{entityUrn:t,isNameMatch:n&&"true"===n,memberNetworkDistance:r,searchId:i,trackingId:o})}_fireSearchImpressionV2Event(e,t){const{entityUrn:n,searchId:r,trackingId:i,column:o,row:s,largestIntersectionRatio:a,visibleTime:c}=e.dataset,{offsetHeight:l,offsetWidth:u}=e,h=Math.round(a*l);dc(this.tracking,{entityUrn:n,searchId:r,trackingId:i,gridPosition:{column:parseInt(o),row:parseInt(s)}},{duration:t,resultSize:{height:l,width:u},visibleHeight:h,visibleTime:parseInt(c)})}}var mc={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 h(e){var t="function"==typeof Map?new Map:void 0;return(h=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 d(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?d(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 g(e,t){var n=document.createElement("script");n.src=e,t&&(n.onload=t),document.head.appendChild(n)}(function(){if("function"==typeof window.CustomEvent)return!1;window.CustomEvent=function(e,t){t=t||{bubbles:!1,cancelable:!1,detail:null};var n=document.createEvent("CustomEvent");return n.initCustomEvent(e,t.bubbles,t.cancelable,t.detail),n}})(),function(){if("function"==typeof window.EventTarget)try{return!new e}catch(e){}var e=function(){this.listeners={}};e.prototype.listeners=null,e.prototype.addEventListener=function(e,t){e in this.listeners||(this.listeners[e]=[]),this.listeners[e].push(t)},e.prototype.removeEventListener=function(e,t){if(e in this.listeners)for(var n=this.listeners[e],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 v="990339570472-k6nqn1tpmitg8pui82bfaun3jrpmiuhs.apps.googleusercontent.com",y={GOOGLE_ERROR:"googleError",GOOGLE_USER_FETCHED:"googleUserFetched",INITIALIZED:"initialized",PROMPT_MOMENT:"promptMomentNotification",TOKEN_FETCHED:"tokenFetched"},b={INITIALIZATION:"initialization",AUTHENTICATION:"authentication"},E={SIGN_IN:"signin",SIGN_UP:"signup",USE:"use"},_={DISPLAY:"display",SKIPPED:"skipped",DISMISSED:"dismissed"},w={NOT_DISPLAYED:{BROWSER_NOT_SUPPORTED:"browser_not_supported",INVALID_CLIENT:"invalid_client",MISSING_CLIENT_ID:"missing_client_id",OPT_OUT_OR_NO_SESSION:"opt_out_or_no_session",SECURE_HTTP_REQUIRED:"secure_http_required",SUPPRESSED_BY_USER:"suppressed_by_user",UNREGISTERED_ORIGIN:"unregistered_origin",UNKNOWN_REASON:"unknown_reason"},SKIPPED:{AUTO_CANCEL:"auto_cancel",USER_CANCEL:"user_cancel",TAP_OUTSIDE:"tap_outside",ISSUING_FAILED:"issuing_failed"},DISMISSED:{CREDENTIAL_RETURNED:"credential_returned",CANCEL_CALLED:"cancel_called",FLOW_RESTARTED:"flow_restarted"}},T={DISMISSED:"DISMISSED",INITIALIZED:"INITIALIZED",SNAPPLE_USER_FETCHED:"SNAPPLE_USER_FETCHED"},S={signin:{GOT:"signin",GSI_BUTTON:"signin_with"},signup:{GOT:"signup",GSI_BUTTON:"signup_with"},use:{GOT:"use",GSI_BUTTON:"continue_with"}},I=y.GOOGLE_ERROR,k=y.GOOGLE_USER_FETCHED,C=y.INITIALIZED,A=b.INITIALIZATION,L=b.AUTHENTICATION,R=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?v: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(){g(o,r._initializeGoogleAuth.bind(d(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(I,{detail:n});e.dispatchEvent(r)}))}},{key:"_attachSignIn",value:function(){var e=this;this.auth2.attachClickHandler(this.el,{},(function(t){var n=new CustomEvent(k,{detail:e._getGoogleUserInformation(t)});e.dispatchEvent(n)}),(function(t){var n={type:L,message:t.error},r=new CustomEvent(I,{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}(h(EventTarget)),O=y.GOOGLE_USER_FETCHED,N=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,h=void 0===u?v: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=h,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(){g(a,r._onGoogleApiLoad.bind(d(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(O,{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:w.SKIPPED.ISSUING_FAILED,type:_.SKIPPED},n=new CustomEvent(N,{detail:t});this.dispatchEvent(n)}},{key:"promptOneTap",value:function(){var e=this;google.accounts.id.prompt((function(t){var n={type:t.getMomentType(),reason:t.getNotDisplayedReason()||t.getSkippedReason()||t.getDismissedReason()},r=new CustomEvent(N,{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}(h(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},B=function(e){var t=e.replace(/-/g,"+").replace(/_/g,"/");switch(t.length%4){case 0:break;case 2:t+="==";break;case 3:t+="=";break;default:throw"Illegal base64url string!"}try{return function(e){return decodeURIComponent(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 U(e){this.message=e}U.prototype=new Error,U.prototype.name="InvalidTokenError",P.exports=function(e,t){if("string"!=typeof e)throw new U("Invalid token specified");var n=!0===(t=t||{}).header?0:1;try{return JSON.parse(B(e.split(".")[n]))}catch(e){throw new U("Invalid token specified: "+e.message)}},P.exports.InvalidTokenError=U;var F=P.exports,q=y.GOOGLE_USER_FETCHED,H=y.PROMPT_MOMENT,j=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,h=e.clientId,p=void 0===h?v:h,f=e.showOneTap,y=void 0===f||f,b=e.promptParentId,E=e.buttonParentEl,_=e.gsiButtonConfig,w=void 0===_?{}:_,T=e.context,S=void 0===T?"signin":T,I=e.cancelOnTapOutside,k=void 0===I||I;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=w,r.cancelOnTapOutside=k,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(){g(u,r._onGoogleApiLoad.bind(d(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,h=t.type,d=t.width,p=void 0===d?"400px":d;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:h,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(H,{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}(h(EventTarget)),z=T.DISMISSED,W=T.INITIALIZED,G=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(){g(o,r._onSnappleLibLoad.bind(d(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(W);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(G,{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}(h(EventTarget)),V={CLIENT_ID:v,EVENTS:y,GOOGLE_ACCOUNT_URL:"https://accounts.google.com",GSI_ERROR_TYPES:b,GSI_ERROR_MESSAGES:{INIT_FAILED:"idpiframe_initialization_failed",POPUP_CLOSED_BY_USER:"popup_closed_by_user",ACCESS_DENIED:"access_denied",IMMEDIATE_FAILED:"immediate_failed"},GOT_CONTEXTS:E,GOT_PROMPT_MOMENT_REASONS:w,GOT_PROMPT_MOMENT_TYPES:_};e.GoogleGsi=j,e.GoogleOneTap=x,e.GoogleSignIn=R,e.GoogleSignInConstants=V,e.SnappleAuth=K,e.SnappleEvents=T,Object.defineProperty(e,"__esModule",{value:!0})})(mc.exports);const{EVENTS:gc,GOT_CONTEXTS:vc,GOT_PROMPT_MOMENT_REASONS:yc,GOT_PROMPT_MOMENT_TYPES:bc}=mc.exports.GoogleSignInConstants,{GOOGLE_USER_FETCHED:Ec,PROMPT_MOMENT:_c}=gc,{SIGN_IN:wc}=vc;yc.NOT_DISPLAYED.BROWSER_NOT_SUPPORTED,yc.NOT_DISPLAYED.OPT_OUT_OR_NO_SESSION,yc.NOT_DISPLAYED.SUPPRESSED_BY_USER,yc.SKIPPED.AUTO_CANCEL,yc.SKIPPED.TAP_OUTSIDE,yc.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 Tc{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=os("feedLastUpdatedTime")}resetBadges(){Li(this.badgeCountEls),Li(this.badgeWithoutCountEls)}getBadges(){const e=this.feedLastUpdatedTimeInDom||"";return ee(e?A("/mwlite/badge-counts","feedQueryAfterTime",e):"/mwlite/badge-counts").then(t=>{const n=JSON.parse(t.responseText);O(window,"badgesreceived",{feedsCount:n.feedsCount}),this._counts=n;const r=Oi();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(()=>{O(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,Ai(e)):t!==n&&(t>0?(e.textContent=t,Ai(e),e.classList.toggle("singular",t<=1)):Ci(e))}_setBadge(e,t){e&&(t>0?(Ai(e),e.classList.add("badge-with-no-count")):Ci(e))}_updateCacheBustUrl(e){os("isSWCacheEnabled")&&this.cacheBustHrefEls&&this.cacheBustHrefEls.forEach(t=>{t.href=Fo(e?A(t.href,"pwa","noCache"):x(t.href))})}}!function(){let e}();class Sc{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")}}Sc.instance||(Sc.instance=new Sc(localStorage)),Sc.instance,Sc.sessionInstance||(Sc.sessionInstance=new Sc(sessionStorage)),Sc.sessionInstance;let Ic;E.getInstance().addUnloadCallback(()=>{Ic&&Ic.close(),Ci(document.querySelector("#discard-post-modal")),Ci(document.querySelector("#visibility-settings-modal")),Ci(document.querySelector("#max-images-prompt-modal")),Ci(document.querySelector("#retry-upload-modal"))});function kc(){var e,t;null===(e=window.lazyloader)||void 0===e||null===(t=e.then)||void 0===t||t.call(e,e=>{e.refreshLoader()})}function Cc(e){const t=e.target.value;e.target.classList.toggle("selected",t),e.target.focus()}function Ac(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",Cc),r.value&&r.classList.add("selected"))}else{document.querySelectorAll(".dropdown-container").forEach(Ac)}kc()}function Lc(e){const t=e.currentTarget.parentElement.querySelector("input");t.value="",t.classList.remove("selected"),t.focus(),O(t,"input:cleared"),O(t,"change")}function Rc(e){const t=e.currentTarget.parentElement,n=t.dataset.placeholder,r=t.querySelector("input");n&&r.setAttribute("placeholder",n),r.removeEventListener("focus",Rc)}function Oc(e){const t=e.target.value;e.target.classList.toggle("selected",t)}function Nc(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",Oc),r.addEventListener("focus",Rc),i&&i.addEventListener("click",Lc)}else{document.querySelectorAll(".input-container").forEach(Nc)}kc()}const xc="MinLength",Pc="MaxLength",Mc="Regex",Dc="Required",Bc="RegexAllow",Uc={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"}},Fc="EMAIL_ADDRESS",qc="PHONE_NUMBER",Hc="OTHER",jc="consentUnchecked",zc={INPUT:"INPUT",SELECT:"SELECT"},Wc="text",Gc="checkbox";function Kc(e){return Object.keys(zc).includes(e.tagName)}function Vc(e){const t=function(e){const t=[],{minLength:n,maxLength:r,inputType:i}=e.dataset;let o;switch(i){case Hc:n&&t.push({type:xc,MinLength:n}),r&&t.push({type:Pc,MaxLength:r});break;case Fc:t.push({type:Bc,RegexAllow:[Uc.EMAIL]});break;case qc:o=e.value.replace(/ /g,""),t.push({type:Bc,RegexAllow:[Uc.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 Dc:if(0===n.length)return Dc;break;case xc:if(n.length<e[xc])return xc;break;case Pc:if(n.length>e[Pc])return Pc;break;case Mc:for(let t=0;t<e[Mc].length;t++)if(e[Mc][t].pattern.test(n))return Mc+e[Mc][t].errorCode;break;case Bc:for(let t=0;t<e[Bc].length;t++)if(!e[Bc][t].pattern.test(n))return Bc+e[Bc][t].errorCode}})(e,n)).filter(e=>!!e)}function Yc(e,t){return t&&!e?jc:null}const Qc=(e,t)=>parseInt(t.split(e)[1]);function Jc(e,t){return document.querySelector("#".concat(e.id,"-strings")).dataset["str".concat(t)]}const Xc=(e,t)=>({questionId:e,textQuestionAnswer:{answer:t}}),Zc=(e,t)=>({questionId:e,multipleChoiceAnswer:{options:[{index:t}]}});function $c(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(Kc).forEach(e=>{let t;if(e.tagName===zc.SELECT)t=((e,t)=>{const n=Qc(e,t.id),r=t.selectedIndex;return{response:Zc(n,r)}})(n,e),c.formResponse.answers.push(t.response);else if(e.type===Wc)if(t=((e,t)=>{const n=Qc(e,t.id),r=Vc(t);return 0!==r.length?{errors:r}:{response:Xc(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===Gc&&(t=((e,t,n,r)=>{const i=Qc(e,t),o=Yc(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 el{constructor(e){let{isLivePreview:t=!1}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!e)throw new Error("containerEl is not present");Nc(),Ac(),Ni("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 Bs(n,{triggerByOutletEl:!t,shouldMoveToTopContainer:!1}),t?this.showForm():this._bindEvents()}showForm(){this.modal.open()}hideForm(){this.modal.close()}_clearFormErrors(){Array.from(this.formEl).filter(Kc).map(e=>this._hideError(e))}_submitForm(){this._clearFormErrors(),$c(this.formEl).then(e=>{O(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();J(Jc(t.element,t.errorType),Q.ASSERTIVE)}})}_hideError(e){if(e){const t=e.closest(".lead-gen-input-container"),n=t.querySelector(".error-text");Ci(n),t.classList.remove("input-error"),e.removeAttribute("aria-invalid"),n.removeAttribute("role")}}_setAndShowError(e,t){if(e){const n=Jc(e,t),r=e.closest(".lead-gen-input-container"),i=r.querySelector(".error-text");i.innerText=n,Ai(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===Gc)t=Yc(e.checked,e.required);else if(e.type===Wc){const n=Vc(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()})}}ue(el,"LEAD_GEN_SUBMIT_EVENT","FormModal:LeadGen:submit");function tl(){let{endpoint:e,headers:t={"Content-Type":"application/json"},queryId:n,variables:r={}}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return ee(e,{method:"POST",headers:t,postData:JSON.stringify({queryId:n,variables:r})})}class nl{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]:()=>{};return tl({endpoint:this.endpoint,queryId:nl.query,variables:{followState:e,to:t}}).then(e=>{const{responseText:t}=e;n(JSON.parse(t).graphQL)}).catch(r)}}ue(nl,"query","cbed571fffd8cea15209aed8d44e6759");const rl=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(rl));const il="CREATE",ol="UPDATE";class sl{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:sl.query,variables:{entityUrn:t,action:n}};return n!==il&&n!==ol||(o.variables.reactionType=e),tl(o).then(e=>{const{responseText:t}=e;r(JSON.parse(t).graphQL)}).catch(i)}}ue(sl,"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}).call(this,n(3).Buffer,n(2))},function(e,t,n){e.exports=function(){"use strict";function e(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function t(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 n(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function r(e){return(r=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function i(e,t){return(i=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function o(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 s(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,i=r(e);if(t){var s=r(this).constructor;n=Reflect.construct(i,arguments,s)}else n=i.apply(this,arguments);return o(this,n)}}function a(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)||l(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 c(e){return function(e){if(Array.isArray(e))return u(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||l(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 l(e,t){if(e){if("string"==typeof e)return u(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)?u(e,t):void 0}}function u(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 h="aria-[a-z0-9_\\-]+|class|data-[a-z0-9_\\-]+|dir|id|role|tabindex",d="undefined"==typeof document||"textContent"in document.createElement("div")?"textContent":"innerText",p=["b","del","em","i","s","strong","sub","sup"],f=p.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"]),m=[h,"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|attributionsrc"].join("|"),g=n((function t(){e(this,t)}));function v(e,t){return Object.prototype.hasOwnProperty.call(e,t)}var y,b,E,_=(y=/[&<>"'\u0000\\=]/g,b={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","\0":"�","\\":"&#92;","=":"&#61;"},function(e){return null==e?null:e.toString().replace(y,(function(e){return function(e){return e in b}(e)?b[e]:e}))}),w=function(){var e,t="undefined"!=typeof document?document.createElement("div"):null,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 v(r,e)}(e))return r[e];if(!t)return e;t.innerHTML="&".concat(e,";");var n=t[d];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 T(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 S(e){return/[<&]/.test(e)}function I(e){e=Array.isArray(e)?e:[e];var t,n,r,i=0,o="<(?!/?";return o+="(?:",e.forEach((function(e,s){t=e.tags||f,n=e.attrs||m,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 k(e){return I({tags:e=e||f,checkUrlAttrs:!0})}function C(e,t){var n=(t=t||{}).allowTags,r=!1!==t.hasCustomElementMarkup;return n&&n.length>0?!k(n).test(e):r?!C.R_UNSAFE_CUSTOM_ELEMENT.test(e):!C.R_UNSAFE_HTML.test(e)}function A(e){return e.replace(/<[^>]*>|[<>'"&\\]/g,"")}C.R_UNSAFE_HTML=k(),C.R_UNSAFE_CUSTOM_ELEMENT=I([{tags:f,checkUrlAttrs:!0},{tags:[(E={tag:"li-icon",attrs:"active|a11y-text|animate|color|size|type"}).tag],attrs:[h,E.attrs].join("|"),checkUrlAttrs:!1}]);var L={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,"",""]},R=/<([\w:]+)/;function O(e,t){var n,r,i,o,s,l=t.createDocumentFragment(),u=[];for(i=0,s=e.length;i<s;i++)if(r=e[i])if("string"==typeof r){n=n||l.appendChild(t.createElement("div"));var h=a(R.exec(r)||["",""],2)[1];if(void 0!==h){var d=h.toLowerCase(),p=d in L&&L[d]||L._default;for(M(n,p[1]+r+p[2]),o=p[0];o--;)n&&n.lastChild&&n.lastChild.nodeType===Node.ELEMENT_NODE&&(n=n.lastChild);u.push.apply(u,c(Array.from(n.childNodes))),(n=l.firstChild)&&(n.textContent="")}}else r instanceof Node&&u.push(r);for(l.textContent="",r=u[i=0];r;)l.appendChild(r),r=u[++i];return l}function N(e,t,n){e=e.toString();var r=t?function(e,t){var n={};return e.replace(/\{([^}]+)\}/g,(function(e,r){if(v(n,r))return n[r];if(v(t,r)){var i=t[r],o="string"==typeof i;if(!(o||i instanceof g||"number"==typeof i))throw new Error("Only strings, numbers, and jSecure types are allowed as placeholder replacements.");return i?(i=o?"".concat(_(i)):i.toString(),n[r]=i,i):e}return e}))}(e,t):e,i=e;return S(r)&&!C(r,n)&&(r=A(r),T("Content contains tags or attributes that are not allowed:\nContent: "+i,"error")),r}var x=N,P=N;function M(e,t,n){var r=N(t,n);return r&&S(r)?e.innerHTML=r:r&&(e[d]=r),r}var D=function(t){!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&&i(e,t)}(o,t);var r=s(o);function o(t){var n,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return e(this,o),(n=r.call(this)).options=i,n.tags=n.options.allowTags?n.options.allowTags.flat():[],n.str=t,n}return n(o,[{key:"toString",value:function(){var e=this.str,t=this.strValue,n=e;return void 0!==t?t:(C(e,{allowTags:this.tags,hasCustomElementMarkup:this.options.hasCustomElementMarkup})||(n=e,e=A(e),T("UnsafeString contains tags or attributes that are not allowed.\nString: "+n,"error")),this.strValue=e,e)}}]),o}(g),B=/ /g,U=/[\s\u0000<>"]|%00/,F=/\\/,q=/([.]|%2e){2}/i,H=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 j(e){var t;if("string"!=typeof e)return T("jSecure Warning: url must be a string","error"),"invalid://";if((t=e.trim()).indexOf(" ")>-1&&(T("jSecure Warning: url should not contain spaces: "+e,"warn"),t=t.replace(B,"+")),!H.test(t))return T("jSecure Error: URL should be absolute with allowed schemas, relative, a hash fragment or query string. "+e,"error"),"invalid://";if(U.test(t))return T("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),q.test(n))return T("jSecure Error: malicious data found in url path: "+r,"error"),"invalid://"}catch(e){i=!0}if(i)return T("jSecure Error: malformed url path detected: "+r),"invalid://";if(F.test(r)||q.test(r))return T("jSecure Error: malicious data found in url path: "+r,"error"),"invalid://"}return e}var z={redirect:function(e){window&&(window.location.href=e)}};return{ALLOWED_TAGS:f,FORMATTING_TAGS:p,htmlEncode:_,htmlUnencode:w,log:T,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 D?i:_(i))})),"".concat(P(o))},parseHTML:function(e,t){var n;if(t=t||document.implementation&&document.implementation.createHTMLDocument?document.implementation.createHTMLDocument(""):document,"string"==typeof e)n=O([e],t);else{if(!Array.isArray(e))return e;n=O(e,t)}return Array.from(n.childNodes)},parseSelector:function(e){return"string"==typeof e&&/^(?:\s*(<[\w\W]+>)[^>]*)$/.test(e)?[]:e},processTemplate:x,reEncode:function(e){return _(w(e))},_redirector:z,redirect:function(e){var t=j(e);t===e&&z.redirect(t)},sanitizeHTML:P,sanitizeUrl:j,setElementContent:M,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 D(t,n)}}}()},function(e,t){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(e){"object"==typeof window&&(n=window)}e.exports=n},function(e,t,n){"use strict";(function(e){var r=n(4),i=n(5),o=n(6);function s(){return c.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function a(e,t){if(s()<t)throw new RangeError("Invalid typed array length");return c.TYPED_ARRAY_SUPPORT?(e=new Uint8Array(t)).__proto__=c.prototype:(null===e&&(e=new c(t)),e.length=t),e}function c(e,t,n){if(!(c.TYPED_ARRAY_SUPPORT||this instanceof c))return new c(e,t,n);if("number"==typeof e){if("string"==typeof t)throw new Error("If encoding is specified then the first argument must be a string");return h(this,e)}return l(this,e,t,n)}function l(e,t,n,r){if("number"==typeof t)throw new TypeError('"value" argument must not be a number');return"undefined"!=typeof ArrayBuffer&&t instanceof ArrayBuffer?function(e,t,n,r){if(t.byteLength,n<0||t.byteLength<n)throw new RangeError("'offset' is out of bounds");if(t.byteLength<n+(r||0))throw new RangeError("'length' is out of bounds");t=void 0===n&&void 0===r?new Uint8Array(t):void 0===r?new Uint8Array(t,n):new Uint8Array(t,n,r);c.TYPED_ARRAY_SUPPORT?(e=t).__proto__=c.prototype:e=d(e,t);return e}(e,t,n,r):"string"==typeof t?function(e,t,n){"string"==typeof n&&""!==n||(n="utf8");if(!c.isEncoding(n))throw new TypeError('"encoding" must be a valid string encoding');var r=0|f(t,n),i=(e=a(e,r)).write(t,n);i!==r&&(e=e.slice(0,i));return e}(e,t,n):function(e,t){if(c.isBuffer(t)){var n=0|p(t.length);return 0===(e=a(e,n)).length||t.copy(e,0,0,n),e}if(t){if("undefined"!=typeof ArrayBuffer&&t.buffer instanceof ArrayBuffer||"length"in t)return"number"!=typeof t.length||(r=t.length)!=r?a(e,0):d(e,t);if("Buffer"===t.type&&o(t.data))return d(e,t.data)}var r;throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}(e,t)}function u(e){if("number"!=typeof e)throw new TypeError('"size" argument must be a number');if(e<0)throw new RangeError('"size" argument must not be negative')}function h(e,t){if(u(t),e=a(e,t<0?0:0|p(t)),!c.TYPED_ARRAY_SUPPORT)for(var n=0;n<t;++n)e[n]=0;return e}function d(e,t){var n=t.length<0?0:0|p(t.length);e=a(e,n);for(var r=0;r<n;r+=1)e[r]=255&t[r];return e}function p(e){if(e>=s())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+s().toString(16)+" bytes");return 0|e}function f(e,t){if(c.isBuffer(e))return e.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(e)||e instanceof ArrayBuffer))return e.byteLength;"string"!=typeof e&&(e=""+e);var n=e.length;if(0===n)return 0;for(var r=!1;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":case void 0:return q(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return H(e).length;default:if(r)return q(e).length;t=(""+t).toLowerCase(),r=!0}}function m(e,t,n){var r=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if((n>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return L(this,t,n);case"utf8":case"utf-8":return k(this,t,n);case"ascii":return C(this,t,n);case"latin1":case"binary":return A(this,t,n);case"base64":return I(this,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return R(this,t,n);default:if(r)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),r=!0}}function g(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}function v(e,t,n,r,i){if(0===e.length)return-1;if("string"==typeof n?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,isNaN(n)&&(n=i?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(i)return-1;n=e.length-1}else if(n<0){if(!i)return-1;n=0}if("string"==typeof t&&(t=c.from(t,r)),c.isBuffer(t))return 0===t.length?-1:y(e,t,n,r,i);if("number"==typeof t)return t&=255,c.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):y(e,[t],n,r,i);throw new TypeError("val must be string, number or Buffer")}function y(e,t,n,r,i){var o,s=1,a=e.length,c=t.length;if(void 0!==r&&("ucs2"===(r=String(r).toLowerCase())||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(e.length<2||t.length<2)return-1;s=2,a/=2,c/=2,n/=2}function l(e,t){return 1===s?e[t]:e.readUInt16BE(t*s)}if(i){var u=-1;for(o=n;o<a;o++)if(l(e,o)===l(t,-1===u?0:o-u)){if(-1===u&&(u=o),o-u+1===c)return u*s}else-1!==u&&(o-=o-u),u=-1}else for(n+c>a&&(n=a-c),o=n;o>=0;o--){for(var h=!0,d=0;d<c;d++)if(l(e,o+d)!==l(t,d)){h=!1;break}if(h)return o}return-1}function b(e,t,n,r){n=Number(n)||0;var i=e.length-n;r?(r=Number(r))>i&&(r=i):r=i;var o=t.length;if(o%2!=0)throw new TypeError("Invalid hex string");r>o/2&&(r=o/2);for(var s=0;s<r;++s){var a=parseInt(t.substr(2*s,2),16);if(isNaN(a))return s;e[n+s]=a}return s}function E(e,t,n,r){return j(q(t,e.length-n),e,n,r)}function _(e,t,n,r){return j(function(e){for(var t=[],n=0;n<e.length;++n)t.push(255&e.charCodeAt(n));return t}(t),e,n,r)}function w(e,t,n,r){return _(e,t,n,r)}function T(e,t,n,r){return j(H(t),e,n,r)}function S(e,t,n,r){return j(function(e,t){for(var n,r,i,o=[],s=0;s<e.length&&!((t-=2)<0);++s)n=e.charCodeAt(s),r=n>>8,i=n%256,o.push(i),o.push(r);return o}(t,e.length-n),e,n,r)}function I(e,t,n){return 0===t&&n===e.length?r.fromByteArray(e):r.fromByteArray(e.slice(t,n))}function k(e,t,n){n=Math.min(e.length,n);for(var r=[],i=t;i<n;){var o,s,a,c,l=e[i],u=null,h=l>239?4:l>223?3:l>191?2:1;if(i+h<=n)switch(h){case 1:l<128&&(u=l);break;case 2:128==(192&(o=e[i+1]))&&(c=(31&l)<<6|63&o)>127&&(u=c);break;case 3:o=e[i+1],s=e[i+2],128==(192&o)&&128==(192&s)&&(c=(15&l)<<12|(63&o)<<6|63&s)>2047&&(c<55296||c>57343)&&(u=c);break;case 4:o=e[i+1],s=e[i+2],a=e[i+3],128==(192&o)&&128==(192&s)&&128==(192&a)&&(c=(15&l)<<18|(63&o)<<12|(63&s)<<6|63&a)>65535&&c<1114112&&(u=c)}null===u?(u=65533,h=1):u>65535&&(u-=65536,r.push(u>>>10&1023|55296),u=56320|1023&u),r.push(u),i+=h}return function(e){var t=e.length;if(t<=4096)return String.fromCharCode.apply(String,e);var n="",r=0;for(;r<t;)n+=String.fromCharCode.apply(String,e.slice(r,r+=4096));return n}(r)}t.Buffer=c,t.SlowBuffer=function(e){+e!=e&&(e=0);return c.alloc(+e)},t.INSPECT_MAX_BYTES=50,c.TYPED_ARRAY_SUPPORT=void 0!==e.TYPED_ARRAY_SUPPORT?e.TYPED_ARRAY_SUPPORT:function(){try{var e=new Uint8Array(1);return e.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===e.foo()&&"function"==typeof e.subarray&&0===e.subarray(1,1).byteLength}catch(e){return!1}}(),t.kMaxLength=s(),c.poolSize=8192,c._augment=function(e){return e.__proto__=c.prototype,e},c.from=function(e,t,n){return l(null,e,t,n)},c.TYPED_ARRAY_SUPPORT&&(c.prototype.__proto__=Uint8Array.prototype,c.__proto__=Uint8Array,"undefined"!=typeof Symbol&&Symbol.species&&c[Symbol.species]===c&&Object.defineProperty(c,Symbol.species,{value:null,configurable:!0})),c.alloc=function(e,t,n){return function(e,t,n,r){return u(t),t<=0?a(e,t):void 0!==n?"string"==typeof r?a(e,t).fill(n,r):a(e,t).fill(n):a(e,t)}(null,e,t,n)},c.allocUnsafe=function(e){return h(null,e)},c.allocUnsafeSlow=function(e){return h(null,e)},c.isBuffer=function(e){return!(null==e||!e._isBuffer)},c.compare=function(e,t){if(!c.isBuffer(e)||!c.isBuffer(t))throw new TypeError("Arguments must be Buffers");if(e===t)return 0;for(var n=e.length,r=t.length,i=0,o=Math.min(n,r);i<o;++i)if(e[i]!==t[i]){n=e[i],r=t[i];break}return n<r?-1:r<n?1:0},c.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},c.concat=function(e,t){if(!o(e))throw new TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return c.alloc(0);var n;if(void 0===t)for(t=0,n=0;n<e.length;++n)t+=e[n].length;var r=c.allocUnsafe(t),i=0;for(n=0;n<e.length;++n){var s=e[n];if(!c.isBuffer(s))throw new TypeError('"list" argument must be an Array of Buffers');s.copy(r,i),i+=s.length}return r},c.byteLength=f,c.prototype._isBuffer=!0,c.prototype.swap16=function(){var e=this.length;if(e%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var t=0;t<e;t+=2)g(this,t,t+1);return this},c.prototype.swap32=function(){var e=this.length;if(e%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var t=0;t<e;t+=4)g(this,t,t+3),g(this,t+1,t+2);return this},c.prototype.swap64=function(){var e=this.length;if(e%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var t=0;t<e;t+=8)g(this,t,t+7),g(this,t+1,t+6),g(this,t+2,t+5),g(this,t+3,t+4);return this},c.prototype.toString=function(){var e=0|this.length;return 0===e?"":0===arguments.length?k(this,0,e):m.apply(this,arguments)},c.prototype.equals=function(e){if(!c.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e||0===c.compare(this,e)},c.prototype.inspect=function(){var e="",n=t.INSPECT_MAX_BYTES;return this.length>0&&(e=this.toString("hex",0,n).match(/.{2}/g).join(" "),this.length>n&&(e+=" ... ")),"<Buffer "+e+">"},c.prototype.compare=function(e,t,n,r,i){if(!c.isBuffer(e))throw new TypeError("Argument must be a Buffer");if(void 0===t&&(t=0),void 0===n&&(n=e?e.length:0),void 0===r&&(r=0),void 0===i&&(i=this.length),t<0||n>e.length||r<0||i>this.length)throw new RangeError("out of range index");if(r>=i&&t>=n)return 0;if(r>=i)return-1;if(t>=n)return 1;if(this===e)return 0;for(var o=(i>>>=0)-(r>>>=0),s=(n>>>=0)-(t>>>=0),a=Math.min(o,s),l=this.slice(r,i),u=e.slice(t,n),h=0;h<a;++h)if(l[h]!==u[h]){o=l[h],s=u[h];break}return o<s?-1:s<o?1:0},c.prototype.includes=function(e,t,n){return-1!==this.indexOf(e,t,n)},c.prototype.indexOf=function(e,t,n){return v(this,e,t,n,!0)},c.prototype.lastIndexOf=function(e,t,n){return v(this,e,t,n,!1)},c.prototype.write=function(e,t,n,r){if(void 0===t)r="utf8",n=this.length,t=0;else if(void 0===n&&"string"==typeof t)r=t,n=this.length,t=0;else{if(!isFinite(t))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");t|=0,isFinite(n)?(n|=0,void 0===r&&(r="utf8")):(r=n,n=void 0)}var i=this.length-t;if((void 0===n||n>i)&&(n=i),e.length>0&&(n<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");for(var o=!1;;)switch(r){case"hex":return b(this,e,t,n);case"utf8":case"utf-8":return E(this,e,t,n);case"ascii":return _(this,e,t,n);case"latin1":case"binary":return w(this,e,t,n);case"base64":return T(this,e,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return S(this,e,t,n);default:if(o)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),o=!0}},c.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function C(e,t,n){var r="";n=Math.min(e.length,n);for(var i=t;i<n;++i)r+=String.fromCharCode(127&e[i]);return r}function A(e,t,n){var r="";n=Math.min(e.length,n);for(var i=t;i<n;++i)r+=String.fromCharCode(e[i]);return r}function L(e,t,n){var r=e.length;(!t||t<0)&&(t=0),(!n||n<0||n>r)&&(n=r);for(var i="",o=t;o<n;++o)i+=F(e[o]);return i}function R(e,t,n){for(var r=e.slice(t,n),i="",o=0;o<r.length;o+=2)i+=String.fromCharCode(r[o]+256*r[o+1]);return i}function O(e,t,n){if(e%1!=0||e<0)throw new RangeError("offset is not uint");if(e+t>n)throw new RangeError("Trying to access beyond buffer length")}function N(e,t,n,r,i,o){if(!c.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>i||t<o)throw new RangeError('"value" argument is out of bounds');if(n+r>e.length)throw new RangeError("Index out of range")}function x(e,t,n,r){t<0&&(t=65535+t+1);for(var i=0,o=Math.min(e.length-n,2);i<o;++i)e[n+i]=(t&255<<8*(r?i:1-i))>>>8*(r?i:1-i)}function P(e,t,n,r){t<0&&(t=4294967295+t+1);for(var i=0,o=Math.min(e.length-n,4);i<o;++i)e[n+i]=t>>>8*(r?i:3-i)&255}function M(e,t,n,r,i,o){if(n+r>e.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function D(e,t,n,r,o){return o||M(e,0,n,4),i.write(e,t,n,r,23,4),n+4}function B(e,t,n,r,o){return o||M(e,0,n,8),i.write(e,t,n,r,52,8),n+8}c.prototype.slice=function(e,t){var n,r=this.length;if((e=~~e)<0?(e+=r)<0&&(e=0):e>r&&(e=r),(t=void 0===t?r:~~t)<0?(t+=r)<0&&(t=0):t>r&&(t=r),t<e&&(t=e),c.TYPED_ARRAY_SUPPORT)(n=this.subarray(e,t)).__proto__=c.prototype;else{var i=t-e;n=new c(i,void 0);for(var o=0;o<i;++o)n[o]=this[o+e]}return n},c.prototype.readUIntLE=function(e,t,n){e|=0,t|=0,n||O(e,t,this.length);for(var r=this[e],i=1,o=0;++o<t&&(i*=256);)r+=this[e+o]*i;return r},c.prototype.readUIntBE=function(e,t,n){e|=0,t|=0,n||O(e,t,this.length);for(var r=this[e+--t],i=1;t>0&&(i*=256);)r+=this[e+--t]*i;return r},c.prototype.readUInt8=function(e,t){return t||O(e,1,this.length),this[e]},c.prototype.readUInt16LE=function(e,t){return t||O(e,2,this.length),this[e]|this[e+1]<<8},c.prototype.readUInt16BE=function(e,t){return t||O(e,2,this.length),this[e]<<8|this[e+1]},c.prototype.readUInt32LE=function(e,t){return t||O(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},c.prototype.readUInt32BE=function(e,t){return t||O(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},c.prototype.readIntLE=function(e,t,n){e|=0,t|=0,n||O(e,t,this.length);for(var r=this[e],i=1,o=0;++o<t&&(i*=256);)r+=this[e+o]*i;return r>=(i*=128)&&(r-=Math.pow(2,8*t)),r},c.prototype.readIntBE=function(e,t,n){e|=0,t|=0,n||O(e,t,this.length);for(var r=t,i=1,o=this[e+--r];r>0&&(i*=256);)o+=this[e+--r]*i;return o>=(i*=128)&&(o-=Math.pow(2,8*t)),o},c.prototype.readInt8=function(e,t){return t||O(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},c.prototype.readInt16LE=function(e,t){t||O(e,2,this.length);var n=this[e]|this[e+1]<<8;return 32768&n?4294901760|n:n},c.prototype.readInt16BE=function(e,t){t||O(e,2,this.length);var n=this[e+1]|this[e]<<8;return 32768&n?4294901760|n:n},c.prototype.readInt32LE=function(e,t){return t||O(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},c.prototype.readInt32BE=function(e,t){return t||O(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},c.prototype.readFloatLE=function(e,t){return t||O(e,4,this.length),i.read(this,e,!0,23,4)},c.prototype.readFloatBE=function(e,t){return t||O(e,4,this.length),i.read(this,e,!1,23,4)},c.prototype.readDoubleLE=function(e,t){return t||O(e,8,this.length),i.read(this,e,!0,52,8)},c.prototype.readDoubleBE=function(e,t){return t||O(e,8,this.length),i.read(this,e,!1,52,8)},c.prototype.writeUIntLE=function(e,t,n,r){(e=+e,t|=0,n|=0,r)||N(this,e,t,n,Math.pow(2,8*n)-1,0);var i=1,o=0;for(this[t]=255&e;++o<n&&(i*=256);)this[t+o]=e/i&255;return t+n},c.prototype.writeUIntBE=function(e,t,n,r){(e=+e,t|=0,n|=0,r)||N(this,e,t,n,Math.pow(2,8*n)-1,0);var i=n-1,o=1;for(this[t+i]=255&e;--i>=0&&(o*=256);)this[t+i]=e/o&255;return t+n},c.prototype.writeUInt8=function(e,t,n){return e=+e,t|=0,n||N(this,e,t,1,255,0),c.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[t]=255&e,t+1},c.prototype.writeUInt16LE=function(e,t,n){return e=+e,t|=0,n||N(this,e,t,2,65535,0),c.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):x(this,e,t,!0),t+2},c.prototype.writeUInt16BE=function(e,t,n){return e=+e,t|=0,n||N(this,e,t,2,65535,0),c.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):x(this,e,t,!1),t+2},c.prototype.writeUInt32LE=function(e,t,n){return e=+e,t|=0,n||N(this,e,t,4,4294967295,0),c.TYPED_ARRAY_SUPPORT?(this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e):P(this,e,t,!0),t+4},c.prototype.writeUInt32BE=function(e,t,n){return e=+e,t|=0,n||N(this,e,t,4,4294967295,0),c.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):P(this,e,t,!1),t+4},c.prototype.writeIntLE=function(e,t,n,r){if(e=+e,t|=0,!r){var i=Math.pow(2,8*n-1);N(this,e,t,n,i-1,-i)}var o=0,s=1,a=0;for(this[t]=255&e;++o<n&&(s*=256);)e<0&&0===a&&0!==this[t+o-1]&&(a=1),this[t+o]=(e/s>>0)-a&255;return t+n},c.prototype.writeIntBE=function(e,t,n,r){if(e=+e,t|=0,!r){var i=Math.pow(2,8*n-1);N(this,e,t,n,i-1,-i)}var o=n-1,s=1,a=0;for(this[t+o]=255&e;--o>=0&&(s*=256);)e<0&&0===a&&0!==this[t+o+1]&&(a=1),this[t+o]=(e/s>>0)-a&255;return t+n},c.prototype.writeInt8=function(e,t,n){return e=+e,t|=0,n||N(this,e,t,1,127,-128),c.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[t]=255&e,t+1},c.prototype.writeInt16LE=function(e,t,n){return e=+e,t|=0,n||N(this,e,t,2,32767,-32768),c.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):x(this,e,t,!0),t+2},c.prototype.writeInt16BE=function(e,t,n){return e=+e,t|=0,n||N(this,e,t,2,32767,-32768),c.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):x(this,e,t,!1),t+2},c.prototype.writeInt32LE=function(e,t,n){return e=+e,t|=0,n||N(this,e,t,4,2147483647,-2147483648),c.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24):P(this,e,t,!0),t+4},c.prototype.writeInt32BE=function(e,t,n){return e=+e,t|=0,n||N(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),c.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):P(this,e,t,!1),t+4},c.prototype.writeFloatLE=function(e,t,n){return D(this,e,t,!0,n)},c.prototype.writeFloatBE=function(e,t,n){return D(this,e,t,!1,n)},c.prototype.writeDoubleLE=function(e,t,n){return B(this,e,t,!0,n)},c.prototype.writeDoubleBE=function(e,t,n){return B(this,e,t,!1,n)},c.prototype.copy=function(e,t,n,r){if(n||(n=0),r||0===r||(r=this.length),t>=e.length&&(t=e.length),t||(t=0),r>0&&r<n&&(r=n),r===n)return 0;if(0===e.length||0===this.length)return 0;if(t<0)throw new RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw new RangeError("sourceStart out of bounds");if(r<0)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),e.length-t<r-n&&(r=e.length-t+n);var i,o=r-n;if(this===e&&n<t&&t<r)for(i=o-1;i>=0;--i)e[i+t]=this[i+n];else if(o<1e3||!c.TYPED_ARRAY_SUPPORT)for(i=0;i<o;++i)e[i+t]=this[i+n];else Uint8Array.prototype.set.call(e,this.subarray(n,n+o),t);return o},c.prototype.fill=function(e,t,n,r){if("string"==typeof e){if("string"==typeof t?(r=t,t=0,n=this.length):"string"==typeof n&&(r=n,n=this.length),1===e.length){var i=e.charCodeAt(0);i<256&&(e=i)}if(void 0!==r&&"string"!=typeof r)throw new TypeError("encoding must be a string");if("string"==typeof r&&!c.isEncoding(r))throw new TypeError("Unknown encoding: "+r)}else"number"==typeof e&&(e&=255);if(t<0||this.length<t||this.length<n)throw new RangeError("Out of range index");if(n<=t)return this;var o;if(t>>>=0,n=void 0===n?this.length:n>>>0,e||(e=0),"number"==typeof e)for(o=t;o<n;++o)this[o]=e;else{var s=c.isBuffer(e)?e:q(new c(e,r).toString()),a=s.length;for(o=0;o<n-t;++o)this[o+t]=s[o%a]}return this};var U=/[^+\/0-9A-Za-z-_]/g;function F(e){return e<16?"0"+e.toString(16):e.toString(16)}function q(e,t){var n;t=t||1/0;for(var r=e.length,i=null,o=[],s=0;s<r;++s){if((n=e.charCodeAt(s))>55295&&n<57344){if(!i){if(n>56319){(t-=3)>-1&&o.push(239,191,189);continue}if(s+1===r){(t-=3)>-1&&o.push(239,191,189);continue}i=n;continue}if(n<56320){(t-=3)>-1&&o.push(239,191,189),i=n;continue}n=65536+(i-55296<<10|n-56320)}else i&&(t-=3)>-1&&o.push(239,191,189);if(i=null,n<128){if((t-=1)<0)break;o.push(n)}else if(n<2048){if((t-=2)<0)break;o.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;o.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;o.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return o}function H(e){return r.toByteArray(function(e){if((e=function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}(e).replace(U,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function j(e,t,n,r){for(var i=0;i<r&&!(i+n>=t.length||i>=e.length);++i)t[i+n]=e[i];return i}}).call(this,n(2))},function(e,t,n){"use strict";t.byteLength=function(e){var t=l(e),n=t[0],r=t[1];return 3*(n+r)/4-r},t.toByteArray=function(e){var t,n,r=l(e),s=r[0],a=r[1],c=new o(function(e,t,n){return 3*(t+n)/4-n}(0,s,a)),u=0,h=a>0?s-4:s;for(n=0;n<h;n+=4)t=i[e.charCodeAt(n)]<<18|i[e.charCodeAt(n+1)]<<12|i[e.charCodeAt(n+2)]<<6|i[e.charCodeAt(n+3)],c[u++]=t>>16&255,c[u++]=t>>8&255,c[u++]=255&t;2===a&&(t=i[e.charCodeAt(n)]<<2|i[e.charCodeAt(n+1)]>>4,c[u++]=255&t);1===a&&(t=i[e.charCodeAt(n)]<<10|i[e.charCodeAt(n+1)]<<4|i[e.charCodeAt(n+2)]>>2,c[u++]=t>>8&255,c[u++]=255&t);return c},t.fromByteArray=function(e){for(var t,n=e.length,i=n%3,o=[],s=0,a=n-i;s<a;s+=16383)o.push(u(e,s,s+16383>a?a:s+16383));1===i?(t=e[n-1],o.push(r[t>>2]+r[t<<4&63]+"==")):2===i&&(t=(e[n-2]<<8)+e[n-1],o.push(r[t>>10]+r[t>>4&63]+r[t<<2&63]+"="));return o.join("")};for(var r=[],i=[],o="undefined"!=typeof Uint8Array?Uint8Array:Array,s="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",a=0,c=s.length;a<c;++a)r[a]=s[a],i[s.charCodeAt(a)]=a;function l(e){var t=e.length;if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var n=e.indexOf("=");return-1===n&&(n=t),[n,n===t?0:4-n%4]}function u(e,t,n){for(var i,o,s=[],a=t;a<n;a+=3)i=(e[a]<<16&16711680)+(e[a+1]<<8&65280)+(255&e[a+2]),s.push(r[(o=i)>>18&63]+r[o>>12&63]+r[o>>6&63]+r[63&o]);return s.join("")}i["-".charCodeAt(0)]=62,i["_".charCodeAt(0)]=63},function(e,t){t.read=function(e,t,n,r,i){var o,s,a=8*i-r-1,c=(1<<a)-1,l=c>>1,u=-7,h=n?i-1:0,d=n?-1:1,p=e[t+h];for(h+=d,o=p&(1<<-u)-1,p>>=-u,u+=a;u>0;o=256*o+e[t+h],h+=d,u-=8);for(s=o&(1<<-u)-1,o>>=-u,u+=r;u>0;s=256*s+e[t+h],h+=d,u-=8);if(0===o)o=1-l;else{if(o===c)return s?NaN:1/0*(p?-1:1);s+=Math.pow(2,r),o-=l}return(p?-1:1)*s*Math.pow(2,o-r)},t.write=function(e,t,n,r,i,o){var s,a,c,l=8*o-i-1,u=(1<<l)-1,h=u>>1,d=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,p=r?0:o-1,f=r?1:-1,m=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(a=isNaN(t)?1:0,s=u):(s=Math.floor(Math.log(t)/Math.LN2),t*(c=Math.pow(2,-s))<1&&(s--,c*=2),(t+=s+h>=1?d/c:d*Math.pow(2,1-h))*c>=2&&(s++,c/=2),s+h>=u?(a=0,s=u):s+h>=1?(a=(t*c-1)*Math.pow(2,i),s+=h):(a=t*Math.pow(2,h-1)*Math.pow(2,i),s=0));i>=8;e[n+p]=255&a,p+=f,a/=256,i-=8);for(s=s<<i|a,l+=i;l>0;e[n+p]=255&s,p+=f,s/=256,l-=8);e[n+p-f]|=128*m}},function(e,t){var n={}.toString;e.exports=Array.isArray||function(e){return"[object Array]"==n.call(e)}},,,,,,,,,,,,,,function(e,t,n){"use strict";n.r(t);var r=n(0),i=n(1),o=n.n(i);class s{constructor(e){this._el=e,this.modal=new r.g(e),this.slideListInstance=new r.l(e.querySelector(".slide-list")),this.total=e.querySelectorAll("[data-media-item]").length,this._assignEventListeners()}setCurrentPage(e){var t=this.slideListInstance;t._currentPage=e,t._initCalc(),this._toggleActiveItem(e)}open(){this.modal.open()}_assignEventListeners(){document.querySelectorAll(".share-native-video__node").forEach(e=>new r.h(e)),this._el.querySelector(".media-modal__prev-button").addEventListener("click",()=>{var e=0===this.currentPage?this.total-1:this.currentPage-1;this.setCurrentPage(e)}),this._el.querySelector(".media-modal__next-button").addEventListener("click",()=>{var e=this.currentPage===this.total-1?0:this.currentPage+1;this.setCurrentPage(e)}),this.slideListInstance._el.addEventListener("pagechange",()=>this._toggleActiveItem(this.currentPage)),this._el.addEventListener("close",()=>this._closeMediaModal())}_closeMediaModal(){this._previousPageNumber=null,this._pauseActiveItem()}_pauseActiveItem(){if(this._currentMediaItem)switch(this._currentMediaItem.tagName){case"IFRAME":this._currentMediaItem.src="about:blank";break;case"VIDEO":this._currentMediaItem.pause()}}_toggleActiveItem(e){e!==this._previousPageNumber&&(e>=this.total||(this._pauseActiveItem(),this._playMediaItem(e),this._previousPageNumber=e))}_playMediaItem(e){var t=document.querySelector('[data-media-item="'.concat(e,'"]')),n=null==t?void 0:t.querySelector("iframe, video");if(n){switch(n.tagName){case"IFRAME":n.src=o.a.sanitizeUrl(n.getAttribute("data-src"));break;case"VIDEO":n.currentTime=0,n.play()}this._currentMediaItem=n}}get currentPage(){return this.slideListInstance._currentPage}}var a=document.querySelector(".search-bar");new r.i(a,{typeaheadApiBaseUrl:"/services/api/searchHits"}),document.querySelectorAll(".show-more-less").forEach(e=>new r.k(e,e=>e.querySelector("a"))),new r.b(document.querySelector(".cover-img")),new r.c(document.querySelector(".top-card-layout__ellipsis-menu"));var c=document.querySelectorAll(".media-section__media-item-button"),l=document.querySelector(".media-modal");if(l){var u=new s(l);c.forEach((e,t)=>{e.addEventListener("click",()=>{u.setCurrentPage(t)})})}}]);