!function(t){var e={};function i(s){if(e[s])return e[s].exports;var n=e[s]={i:s,l:!1,exports:{}};return t[s].call(n.exports,n,n.exports,i),n.l=!0,n.exports}i.m=t,i.c=e,i.d=function(t,e,s){i.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:s})},i.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},i.t=function(t,e){if(1&e&&(t=i(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var s=Object.create(null);if(i.r(s),Object.defineProperty(s,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var n in t)i.d(s,n,function(e){return t[e]}.bind(null,n));return s},i.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return i.d(e,"a",e),e},i.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},i.p="",i(i.s=5)}([function(t,e,i){"use strict";(function(t){i.d(e,"a",(function(){return z})),i.d(e,"b",(function(){return p})),i.d(e,"c",(function(){return m})),i.d(e,"d",(function(){return ge})),i.d(e,"e",(function(){return wt})),i.d(e,"f",(function(){return _})),i.d(e,"g",(function(){return he})),i.d(e,"h",(function(){return ne})),i.d(e,"i",(function(){return B})),i.d(e,"j",(function(){return fe})),i.d(e,"k",(function(){return U})),i.d(e,"l",(function(){return D})),i.d(e,"m",(function(){return ie})),i.d(e,"n",(function(){return u})),i.d(e,"o",(function(){return k})),i.d(e,"p",(function(){return l})),i.d(e,"q",(function(){return N}));window.encodeURIComponent;function s(t){let e=t.querySelector('meta[name="pageKey"]');return e?e.content+"_jsbeacon":""}function n(t){let e=t.querySelector('meta[name="linkedin:pageTag"]');return e&&e.content||""}function r(t){let e=t.querySelector('meta[name="locale"]');return e&&e.content||""}function o(t){let e=t.domain;return e?e.split(".").slice(-2).join("."):""}function a(t){return'"'===t.charAt(0)&&'"'===t.charAt(t.length-1)?t.slice(1,-1):t}var l=Object.freeze({__proto__:null,getPageKey:s,getPageTag:n,getLocale:r,getDomain:o,trimDoubleQuotes:a});const c={ARROW_DOWN:"ArrowDown",ARROW_LEFT:"ArrowLeft",ARROW_RIGHT:"ArrowRight",ARROW_UP:"ArrowUp",ESCAPE:"Escape",ENTER:"Enter",SPACEBAR:" ",TAB:"Tab"},h={Down:c.ARROW_DOWN,Right:c.ARROW_RIGHT,Left:c.ARROW_LEFT,Up:c.ARROW_UP,Esc:c.ESCAPE,Spacebar:c.SPACEBAR,Tab:c.TAB};function d(t){return h[t]||t}var u=Object.freeze({__proto__:null,KEYS:c,normalizeKeyBoardEventKey:d});class _{constructor(t,e=".see-more-less-list__list",i="see-more-less-list__list-item",s){if(!t)throw Error("An element must be provided to SeeMoreLessList");this.el=t,this.listSelector=e,this.stateCheckbox=this.el.querySelector(".show-more-less-state"),this.listEl=this.el.querySelector(this.listSelector),this.stateLabels={showMore:this.el.querySelector(".show-more-less-state__label-more"),showLess:this.el.querySelector(".show-more-less-state__label-less")},this.currentItemEl,s&&(this.currentItemEl=this.listEl.querySelector(s)),this.listItemClass=i,this._attachEventListeners()}_attachEventListeners(){this.el.addEventListener("keydown",this._handleKeydownNavEvents.bind(this)),this.stateCheckbox.addEventListener("change",this._handleCheckboxStateChange.bind(this)),this.el.addEventListener("keyup",t=>{d(t.key)===c.SPACEBAR&&t.preventDefault()})}_handleCheckboxStateChange(){this.stateCheckbox.checked?this._handleFocusAtOpen():this._handleFocusAtCLose(),Object.keys(this.stateLabels).forEach(t=>{this.stateLabels[t].setAttribute("aria-expanded",this.stateCheckbox.checked)})}_handleFocusAtOpen(){this.currentItemEl?this.currentItemEl.focus():this.stateLabels.showLess.focus()}_handleFocusAtCLose(){this.stateLabels.showMore.focus()}_checkboxStateChange(t){this.stateCheckbox.checked=t,this._handleCheckboxStateChange()}_handleKeydownNavEvents(t){switch(d(t.key)){case c.ENTER:case c.SPACEBAR:t.target.classList.contains("show-more-less-state__label")&&(t.preventDefault(),this._checkboxStateChange(!this.stateCheckbox.checked));break;case c.ARROW_UP:this._checkboxStateChange(!0);break;case c.ARROW_DOWN:case c.ESCAPE:this._checkboxStateChange(!1);break;case c.ARROW_LEFT:if(this.stateCheckbox.checked&&t.target.classList.contains(this.listItemClass)){let e=t.target.parentNode.previousSibling;e&&e.firstChild.focus()}break;case c.ARROW_RIGHT:if(this.stateCheckbox.checked&&t.target.classList.contains(this.listItemClass)){let e=t.target.parentNode.nextSibling;e&&e.firstChild.focus()}}}}class p extends _{constructor(t,e="dropdown__link",i=".dropdown__link"){if(!t)throw Error("An element must be provided to Dropdown");super(t,".dropdown__list",e,i),this.listFirstChild=this.listEl.firstChild,this.listLastChild=this.listEl.lastChild,this._attachCustomDropdownEventListeners()}_attachCustomDropdownEventListeners(){document.addEventListener("click",this._handleBodyClick.bind(this)),this.el.addEventListener("keydown",t=>{"Tab"===t.key&&this._handleTab(t)})}_handleBodyClick(t){this.stateCheckbox.checked&&t.target!==this.el&&!this.el.contains(t.target)&&this._checkboxStateChange(!1)}_handleTab(t){(this.listLastChild.contains(t.target)&&!t.shiftKey||this.listFirstChild.contains(t.target)&&t.shiftKey)&&this._checkboxStateChange(!1)}}class m extends p{constructor(t){if(!t)throw Error("An element must be provided to LanguageSelector");super(t,"language-selector__link",".language-selector__link--selected"),this._attachCustomEventListeners()}_attachCustomEventListeners(){this.listEl.addEventListener("click",this._handleLocaleButtonClick.bind(this))}_handleLocaleButtonClick(t){const e=t.target.getAttribute("data-locale");if(e){const t=this.getLangCookieString(e);null!==t&&(document.cookie=t),location.reload()}}getLangCookieString(t){let e=null;if(null!==t){const i=t.toLocaleLowerCase().replace("_","-"),s=o(document);let n=new Date;n.setTime(n.getTime()+31536e6),e='lang="v=2&lang='.concat(i,'";path=/;domain=').concat(s,";expires=").concat(n.toUTCString())}return e}}function g(t,e){if(!t)return null;let i=t.matches||t.webkitMatchesSelector||t.mozMatchesSelector||t.msMatchesSelector;for(;t&&!i.call(t,e);)t=t.parentElement;return t}function f(t){"complete"===document.readyState?t():window.addEventListener("load",()=>{setTimeout(t)})}function E(t){return null==t||"object"!=typeof t?[]:Array.prototype.slice.call(t)}function b(t){const e=t.getBoundingClientRect(),i=window.innerHeight||document.documentElement.clientHeight,s=window.innerWidth||document.documentElement.clientWidth,n=e.top<=i&&e.top+e.height>=0,r=e.left<=s&&e.left+e.width>=0;return n&&r}function v({scrollTop:t=scrollY,clientHeight:e=window.innerHeight,scrollHeight:i=document.body.scrollHeight}={},s=0){return t>=i-(e+e*s)}function y(t,e,i){const s=new RegExp("([\\?&])".concat(i?e:encodeURIComponent(e),"=([^&#]*)")).exec(t);return s&&(i?s[2]:decodeURIComponent(s[2]))}function w(t,e,i,s){if(!t||!e)throw new Error("Required param of addQueryParam missing: url = ".concat(t,",  key = ").concat(e));e=encodeURIComponent(e),i=encodeURIComponent(i);const n=y(t,e,!0);if(n)return s?t.replace(n,i):t;{const s=t.indexOf("?");let[n,r]=t.split("#"),o="&";return s<0?o="?":s===t.length-1&&(o=""),r&&(r="#".concat(r)),"".concat(n).concat(o).concat(e,"=").concat(i).concat(r||"")}}function T(t,e,i){if("function"!=typeof t)throw new TypeError("Expected a function.");let s;return(...n)=>{const r=i&&!s;clearTimeout(s),s=setTimeout(()=>{s=null,i||t.apply(this,n)},e),r&&t.apply(this,n)}}function S(t){const e=document.cookie.match(new RegExp("(^| )"+t+"=([^;]+)"));return e&&e[2]}function L(t,e,i={}){const s=document.createEvent("CustomEvent");s.initCustomEvent(e,!0,!0,i),t.dispatchEvent(s)}function O(){let t,e;const i=new Promise((i,s)=>{t=i,e=s});return i.resolve=t,i.reject=e,i}var k=Object.freeze({__proto__:null,closest:g,onload:f,makeArray:E,outerWidth:function(t){let e=t.offsetWidth,i=getComputedStyle(t);return e+=(parseInt(i.marginLeft,10)||0)+(parseInt(i.marginRight,10)||0),e},elementInViewport:b,hasElementScrolledToThreshold:v,getQueryParam:y,addTrackingCode:function(t,e){return w(t,"trk",e)},addQueryParam:w,debounce:T,getCookie:S,dispatchCustomEvent:L,getDeferredPromise:O}),A="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==t?t:"undefined"!=typeof self?self:{};parseInt;var P="object"==typeof A&&A&&A.Object===Object&&A,I="object"==typeof self&&self&&self.Object===Object&&self;P||I||Function("return this")(),Object.prototype.toString,Math.max,Math.min;function C(t,e="ajax",i){const s=n(document),o=r(document);let a={clientTimestamp:Date.now(),pageTag:s},l={};o&&(l.interfaceLocale=o),i&&(l.pageKey=i);const c={header:{},requestHeader:l,pageType:e,trackingInfo:a};t.fireTrackingEvent("PageViewEvent",c)}function N(t,{method:e="GET",headers:i={},sendCookies:s=!0,skipCsrfToken:n=!1,postData:r}={}){return new Promise((o,l)=>{const c=new XMLHttpRequest;if(c.addEventListener("load",(function(){if(c.status>=200&&c.status<300||304===c.status)o({status:c.status,responseText:c.responseText});else{const i=new Error("".concat(e," request for ").concat(t," has failed with status code ").concat(c.status));i.response={status:c.status,responseText:c.responseText},l(i)}})),c.addEventListener("error",(function(t){l(t)})),c.open(e,t,!0),c.withCredentials=s,Object.keys(i).forEach(t=>{c.setRequestHeader(t,i[t])}),!n){const t=S("JSESSIONID");t&&c.setRequestHeader("Csrf-Token",a(t))}c.send(r)})}const R="prev",x="next";class B{constructor(t){if(!t)throw new Error("No element passed in");this._el=t,this._previousButton=t.querySelector(".".concat('slide-list__nav-button[data-direction="prev"]')),this._nextButton=t.querySelector(".".concat('slide-list__nav-button[data-direction="next"]')),this._listEl=t.querySelector(".slide-list__list"),this._slideNavDisabled=this._el.dataset.disabled,this._dragLimit=this._listEl.offsetWidth,this._items=this._listEl.children,this._lock={},this._currentPage=0,this._isRtl="rtl"===document.body.dir,this._isMinimalNav=t.querySelector(".".concat("slide-list__header-nav--minimal")),("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)),this._isMinimalNav&&this._el.addEventListener("click",this._handleScrollAction.bind(this))):this._el.addEventListener("click",this._handleScrollAction.bind(this)))}next(t){return t=t||1,this._currentPage+t<=this._pageTranslates.length-1&&(this._currentPage+=t,this._updateSlideButtons(),this._updateListPosition()),this._currentPage}prev(t){return t=t||1,this._currentPage-t>=0&&(this._currentPage-=t,this._updateSlideButtons(),this._updateListPosition()),this._currentPage}_handleWindowResize(){this._isResizing||(this._isResizing=!0,window.requestAnimationFrame(this._initCalc.bind(this)))}_initCalc(){this._pageTranslates=this._getPageTranslates(),this._updateSlideButtons(),this._updateListPosition(),this._isResizing=!1}_getPageTranslates(){const t=this._listEl.offsetWidth,e=this._listEl.scrollWidth,i=this._isRtl?t-this._items[0].offsetLeft-this._items[0].offsetWidth:this._items[0].offsetLeft,s=e-t;let n=[0];for(let e=0;e<this._items.length;e+=1){const r=n[n.length-1];if(this._isRtl&&this._items[e].offsetLeft>=0)continue;let o=Math.abs(this._isRtl?this._items[e].offsetLeft+this._items[e].offsetWidth:this._items[e].offsetLeft),a=Math.abs(this._isRtl?this._items[e].offsetLeft:this._items[e].offsetLeft+this._items[e].offsetWidth);if((0!==o||0!==i)&&a>r+t){if(o>=s)break;n.push(o-i)}}return n.push(s),n}_handleScrollAction(t){const e=t.target.dataset.direction||t.target.parentElement.dataset.direction;e&&(this._listEl.addEventListener("transitionend",this._fireScrollEvent.bind(this)),e===R?this.prev():e===x&&this.next())}_fireScrollEvent(){L(window,"scroll"),this._listEl.removeEventListener("transitionend",this._fireScrollEvent)}_updateListPosition(){this._updateTranslateXY(this._isRtl?this._pageTranslates[this._currentPage]:-this._pageTranslates[this._currentPage],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)}}_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(t){this._resetTouchEvents(),this._t.start=this._getEventPosition(t),this._dragging=!0,this._listEl.classList.add("slide-list__list--dragging")}_handleTouchMove(t){if(!this._dragging||this._dragCanceled)return;let e=this._getEventPosition(t);this._t.current={x:this._t.start.x-e.x,y:this._t.start.y-e.y},this._canDrag()?(this._dragThresholdMet=!0,t.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._resetTouchEvents(),this._updateListPosition())}_getEventPosition(t){return{x:t.touches[0].clientX,y:t.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(t,e){this._listEl.style.transform="translate3d(".concat(t||0,"px, ").concat(e||0,"px, 0px)")}}const F="".concat("tab-toggle","--active");class U{constructor(t,e="click"){if(!(t&&t instanceof Node))throw new Error("No element passed in");this._el=t,this._currentActive=this._el.querySelector(".".concat(F))||this._el.querySelector(".".concat("tab-toggle")),this._initializeTab(),this._el.addEventListener(e,({target:t})=>{const e=g(t,".".concat("tab-toggle"));this._updateTabTarget(e)}),this.makeKeyboardAccessible()}_initializeTab(){if(!this._el.nextElementSibling)return;const t=this._el.nextElementSibling.querySelector("input.tab__radio:checked");if(!t)return;const e=this._el.querySelector(".".concat(t.id,"-tab-toggle"));e&&(e.classList.contains(F)||this._updateActiveTab(e))}_updateActiveTab(t){this._currentActive.classList.remove(F),t.classList.add(F),this._currentActive=t}makeKeyboardAccessible(){this._el.addEventListener("keydown",({key:t,target:e})=>{const i=d(t);i!==c.SPACEBAR&&i!==c.ENTER||this._updateTabTarget(e)})}_updateTabTarget(t){t.classList.contains("tab-toggle")&&t!==this._currentActive&&(this._updateActiveTab(t),document.getElementById(t.querySelector("label").getAttribute("for")).checked=!0)}}const j={COPY:"copy",LINKEDIN:"linkedin",TWITTER:"twitter",FACEBOOK:"facebook"};Object.keys(j).map(t=>j[t]);const q={};function D(t){const e=document.getElementById(t);if(!e&&void 0!==q[t])return q[t];if(!e)return console.warn("Element with id: ".concat(t," not found")),q[t]=null,q[t];try{q[t]=JSON.parse(e.firstChild.nodeValue)}catch(e){console.warn("Error fetching embedded content with id: ".concat(t)),q[t]=null}return e.parentNode.removeChild(e),q[t]}class M{constructor(t,{scrollThreshold:e=50,hideOnScrollBack:i=!1,isBottom:s=!0,exposeStickyState:n=!1}={}){this.el=t,this.scrollThreshold=e,this.hideOnScrollBack=i,this.isBottom=s,this.exposeStickyState=n,this._scrollListener=this._onScroll.bind(this),this._doesPageHaveEnoughScroll()?window.addEventListener("scroll",this._scrollListener):this.hideOnScrollBack||this.show(),f(()=>{this.isBottom?this._addBottomSpacing():this.hideOnScrollBack||(this._addTopSpacing(),this.show())})}_doesPageHaveEnoughScroll(){return document.body.scrollHeight>window.innerHeight+this.scrollThreshold}_addBottomSpacing(){let t=this.el.clientHeight;document.body.style.marginBottom&&(t+=parseInt(document.body.style.marginBottom)),document.body.style.marginBottom="".concat(t,"px")}_addTopSpacing(){let t=this.el.clientHeight;document.body.style.marginTop&&(t+=parseInt(document.body.style.marginTop)),document.body.style.marginTop="".concat(t,"px")}show(){this.el.classList.add("show"),L(this.el,"show")}hide(){this.el.classList.remove("show"),L(this.el,"hide")}_onScroll(){window.pageYOffset>this.scrollThreshold?(this.hideOnScrollBack||this.exposeStickyState||window.removeEventListener("scroll",this._scrollListener),this.show(),this.exposeStickyState&&this.el.classList.add("stuck")):(this.hideOnScrollBack&&this.hide(),this.exposeStickyState&&this.el.classList.remove("stuck"))}}['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(",");const{ENTER:H,ESCAPE:G}=c;!function(t){const e=new RegExp("<(?!/?(?:"+t.allowedTags+")(?:[ \t\r\n]*/?>|[ \t\r\n]+(?:(?:(?:"+t.allowedAttributes+")(?:=([\"'])[^'\"<>]*\\1)?|(?:"+t.allowedURLAttributes+")=([\"'])(?:(?:"+t.allowedURLSchemes+")(?::|&#(?:58|x3a);)|[/.#?]|&#(?:35|4[67]|63|x(?:2[3ef]|3f));)[^'\"<>]*\\2)[ \t\r\n]*)+/?>))","i")}({allowedTags:"a|abbr|address|area|article|aside|audio|b|bdi|bdo|big|blockquote|br|button|center|cite|code|datalist|dd|del|details|dfn|div|dl|dt|em|fieldset|figcaption|figure|font|footer|h[1-6]|header|hgroup|hr|i|img|ins|kbd|label|legend|li|map|mark|marquee|nav|nobr|ol|p|pre|q|rp|rt|ruby|s|samp|section|small|source|span|strike|strong|sub|sup|table|tbody|td|tfoot|th|thead|time|tr|u|ul|var|video|wbr",allowedAttributes:"alt|aria-[a-z0-9_\\-]+|border|caption|checked|class|colgroup|color|cols|colspan|controls|coords|data-[a-z0-9_\\-]+|dir|disabled|height|hidden|hreflang|id|label|loop|marginheight|marginwidth|maxlength|method|multiple|name|preload|readonly|rel|required|reversed|role|rows|rowspan|spellcheck|tabindex|target|title|type|usemap|width|clear|headers|ismap|lang|start|datetime|accept|max|min|placeholder|size|step",allowedURLAttributes:"href|src",allowedURLSchemes:"https?|ftp|mailto"});const J="global-alert__button",W="global-alert-transition",K="global-alert--isExpanded";class V{constructor(t,{offsetEls:e=[],wait:i=1e3,firstVisitOnly:s=!1,showAlert:n,hideAlert:r}={}){if(!t)throw new Error("GlobalAlert el required");this._el=t,this._dismissButtonEl=this._el.querySelector(".".concat(J)),this.onShowAlert=n||this.showAlert,this.onHideAlert=r||this.hideAlert,this._offsetEls=e,this._firstVisitOnly=s,(!this._firstVisitOnly||this._firstVisitOnly&&!this._alreadyVisited())&&setTimeout(()=>this._init(),i),this._dismissButtonEl&&this._dismissButtonEl.addEventListener("click",this.dismiss.bind(this))}_init(){this.onShowAlert()}_alreadyVisited(){return localStorage.getItem("visited",!0)}showAlert(){this._el.classList.add(K);const{offsetHeight:t}=this._el;document.body.classList.add(W),document.body.style.setProperty("padding-top","".concat(t,"px")),this._offsetEls.forEach(e=>{e.classList.add(W),e.style.setProperty("top","".concat(t,"px"))})}hideAlert(){this._el.classList.remove(K),document.body.classList.remove(W),document.body.style.removeProperty("padding-top"),this._offsetEls.forEach(t=>{t.style.removeProperty("top")})}dismiss(){this.onHideAlert(),this._firstVisitOnly&&localStorage.setItem("visited",!0)}}class z{constructor(t){if(!t)throw new Error("CookiePolicy el required");this._el=t,new V(this._el,{firstVisitOnly:!0})}}const $="dismissable-input",Q="dismissable-input--focus",Y="dismissable-input__button",X="dismissable-input__button--show",Z="dismissable-input__input";class tt{constructor(t){this.el=t,this._input=this.el.querySelector(".".concat(Z)),this._dismissButtonEl=this.el.querySelector(".".concat(Y)),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(Q),this._updateDismissButton(),L(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(X)}_showDismissButton(){this._dismissButtonEl.classList.add(X)}_onInputBlur(){this.el.classList.remove(Q)}clear(){this._input.value="",this._updateDismissButton(""),this._input.focus(),L(this.el,"clear")}}const et="typeahead-input",it="typeahead-input__dropdown--show",st="typeahead-input__dropdown",nt="typeahead-input__dropdown-list",rt="typeahead-input__dropdown-text",ot="typeahead-input__dropdown-item--highlighted",at="typeahead-input__dropdown-item",lt="typeahead-live-text",ct="typeahead-item-template",ht="i18n_aria_live_text_no-suggestions",dt="i18n_aria_live_text_one-suggestion",ut="i18n_aria_live_text_multiple-suggestions";class _t{constructor(t,{generateApiUrl:e,onSelect:i}){this.el=t,this._input=this.el.querySelector(".".concat(Z)),this._dropdownContainerEl=this.el.querySelector(".".concat(st)),this._dropdownListEl=this.el.querySelector(".".concat(nt)),this._generateApiUrl=e,this._onSelect=i,this._typeaheadItemTemplate=this.el.querySelector(".".concat(ct)),this._boundClickOutsideToCloseHandler=this._clickOutsideToCloseHandler.bind(this),this._liveTextEl=this.el.querySelector(".".concat(lt)),this.dismissableInput=new tt(this.el),this._getLiveText(),this._resetState(),this._attachEventListeners()}_resetState(){this._resultEls=[],this._setHighlightedEl(null),this._setExpandedState(!1)}_attachEventListeners(){this._input.addEventListener("keydown",this._onKeyDown.bind(this)),this._input.addEventListener("input",this._onUserInput.bind(this)),this._input.addEventListener("focus",this._onUserInput.bind(this)),this._input.addEventListener("blur",this._resetResults.bind(this)),this._dropdownListEl.addEventListener("mousedown",this._typeaheadResultSelect.bind(this)),this._isDismissable&&this.el.addEventListener("clear",this._resetResults.bind(this))}_clickOutsideToCloseHandler(t){t.target!==this._input&&this._resetResults()}_onKeyDown(t){switch(d(t.key)){case c.ARROW_DOWN:t.preventDefault(),this._moveToResult(1);break;case c.ARROW_UP:t.preventDefault(),this._moveToResult(-1);break;case"Enter":this._typeaheadResultSelect(t)}}_moveToResult(t){if(0===this._resultEls.length)return;const e=-1===t?-1:0;let i=null===this._highlighted.index?e:this._highlighted.index+t;i<0&&(i=this._resultEls.length-1),i>=this._resultEls.length&&(i=0),this._setHighlightedEl(i)}_setHighlightedEl(t){null===t?(this._highlighted={el:null,index:null},this._input.removeAttribute("aria-activedescendant")):(this._highlighted.el&&(this._highlighted.el.classList.remove(ot),this._highlighted.el.setAttribute("aria-selected",!1)),this._highlighted.el=this._resultEls[t],this._highlighted.index=t,this._highlighted.el.setAttribute("aria-selected",!0),this._highlighted.el.classList.add(ot),this._input.setAttribute("aria-activedescendant",this._highlighted.el.id))}_onUserInput(){const t=this._input.value;t.length>2?this._makeTypeaheadRequest(t).then(t=>this._appendResults(t)).then(()=>this._showResults()):this._resetResults()}_makeTypeaheadRequest(t){return N(this._generateApiUrl(t),{sendCookies:!1}).then(t=>t&&JSON.parse(t.responseText)||[])}_appendResults(t=[]){this._resetResults(),t.forEach((t,e)=>{const i=document.importNode(this._typeaheadItemTemplate.content,!0);i.querySelector(".".concat(at)).id="".concat(this._input.name,"-").concat(e+1),i.querySelector(".".concat(rt)).textContent=t.displayName,this._dropdownListEl.appendChild(i)}),this._resultEls=E(this._dropdownListEl.children)}_showResults(){this._resultEls.length>0?(this._dropdownContainerEl.classList.add(it),document.body.addEventListener("click",this._boundClickOutsideToCloseHandler),this._setExpandedState(!0)):this._setExpandedState(!1),this._setLiveText()}_resetResults(){for(;this._dropdownListEl.firstChild;)this._dropdownListEl.removeChild(this._dropdownListEl.firstChild);this._resetState(),this._dropdownContainerEl.classList.remove(it),document.body.removeEventListener("click",this._boundClickOutsideToCloseHandler)}_typeaheadResultSelect(t){const e="mousedown"===t.type?t.target:this._highlighted.el;e&&t.preventDefault();const i=e.classList.contains(rt)?e:e.querySelector(".".concat(rt));i&&this.el.contains(i)&&(this._input.value=i.textContent.trim(),this._input.focus(),"function"==typeof this._onSelect&&this._onSelect(),this._resetResults())}_getLiveText(){this._liveTextNoSuggestions=D(ht),this._liveTextOneSuggestion=D(dt),this._liveTextMultipleSuggestions=D(ut)}_setLiveText(){let t;switch((this._resultEls||[]).length){case 0:t=this._liveTextNoSuggestions;break;case 1:t=this._liveTextOneSuggestion;break;default:t=this._liveTextMultipleSuggestions}const e=document.createElement("p");e.textContent=t,this._liveTextEl.children.length&&(this._liveTextEl.removeChild(this._liveTextEl.firstChild),clearTimeout(this._liveTextTimeout)),this._liveTextEl.appendChild(e),this._liveTextTimeout=setTimeout(()=>{this._liveTextEl.removeChild(this._liveTextEl.firstChild)},500)}_setExpandedState(t){this.el.setAttribute("aria-expanded",t)}}function pt(t=window){return t.innerWidth<769}class mt{constructor(t,e,i,{onCloseExpandedSearch:s=(t=>t)}={}){if(this.el=t,this.expandedEl=e,this.placeholderEl=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=s}showExpandedSearch(){this.isExpanded=!0,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.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(t){const{key:e,target:i}=t,s="Escape"===e,n="BODY"===i.tagName;s&&n?(t.preventDefault(),this.hideExpandedSearch()):"Tab"===e&&this._userIsTabbedOut()&&this.hideExpandedSearch()}_onIOSTouchStartEvent(t){const{target:e}=t;g(e,".".concat(et))||document.activeElement.blur()}_userIsTabbedOut(){if(this.expandedEl.classList.contains("isExpanded")&&pt()){return!this.expandedEl.contains(document.activeElement)}return!1}}class gt{constructor(t,e,{mainButton:i,closeButton:s},n={}){if(!t)throw Error("An element must be provided to Collapsible");if(!e)throw Error("An list element must be provided to Collapsible");if(!i)throw Error("A main button element must be provided to Collapsible");this.el=t,this.listEl=e;let{currentListItem:r=e.children[0],isOpen:o=!1}=n;this.currentListItem=r,this.isOpen=o,this.mainButton=i,this.closeButton=s,this.buttons=[i],this.mainButton.addEventListener("click",()=>this.closeButton?this._open():this._toggle()),this.mainButton.addEventListener("keydown",t=>this._onButtonKeyDown(t)),this.mainButton.addEventListener("keyup",t=>{d(t.key)===c.SPACEBAR&&t.preventDefault()}),this.closeButton&&(this.closeButton.addEventListener("click",()=>this.close()),this.closeButton.addEventListener("keydown",t=>this._onButtonKeyDown(t)),this.buttons.push(this.closeButton)),this.listEl.addEventListener("keydown",t=>this._onListKeyDown(t))}_toggle(){this.isOpen?this.close():this._open()}_onButtonKeyDown(t){switch(d(t.key)){case c.ENTER:case c.SPACEBAR:t.preventDefault(),this.isOpen?this.close():this._open();break;case c.ARROW_UP:this.isOpen||this._open();break;case c.ARROW_DOWN:this.isOpen&&this.close()}}_onListKeyDown(t){let e;switch(d(t.key)){case c.ESCAPE:this.isOpen&&this.close();break;case c.ARROW_LEFT:e=g(t.target,"li");let i=e.previousElementSibling;i&&L(i,"focus");break;case c.ARROW_RIGHT:e=g(t.target,"li");let s=e.nextElementSibling;s&&L(s,"focus")}}_open(){this.isOpen||(this.isOpen=!0,this.buttons.forEach(t=>t.setAttribute("aria-expanded",this.isOpen)),L(this.el,"open"),L(this.currentListItem,"focus"))}close({shouldReturnFocusToTrigger:t=!0}={}){this.isOpen&&(this.isOpen=!1,this.buttons.forEach(t=>t.setAttribute("aria-expanded",this.isOpen)),L(this.el,"close"),t&&this.mainButton.focus())}}const ft=".".concat("collapsible-dropdown","__list"),Et=".".concat("collapsible-dropdown","__button");class bt{constructor(t,e=(t=>t),{listEl:i,dropdownTriggerEl:s}={}){if(!t)throw Error("An element must be provided to CollapsibleDropdown");this.el=t,this.listEl=i||this.el.querySelector(ft),this.dropdownTriggerEl=s||this.el.querySelector(Et),this._getFocusItemFromListItem=e,this.hideClass="hidden",this.collapsible=new gt(t,this.listEl,{mainButton:this.dropdownTriggerEl}),this._handleBodyClick=this._handleBodyClick.bind(this),this._focusOutsideDropdown=this._focusOutsideDropdown.bind(this),this._attachEventListeners()}_attachEventListeners(){this.el.addEventListener("open",()=>this._showDropdownList()),this.el.addEventListener("close",()=>this._hideDropdownList()),this.listEl.addEventListener("focus",t=>this._focusItem(t))}_focusItem(t){const e=t.target;if(e){const t=this._getFocusItemFromListItem(e);t&&t.focus()}}_handleBodyClick(t){this.el.contains(t.target)||this.collapsible.close({shouldReturnFocusToTrigger:!1})}_showDropdownList(){document.addEventListener("click",this._handleBodyClick),document.addEventListener("keyup",this._focusOutsideDropdown),this.listEl.classList.remove(this.hideClass)}_hideDropdownList(){document.removeEventListener("click",this._handleBodyClick),document.removeEventListener("keyup",this._focusOutsideDropdown),this.listEl.classList.add(this.hideClass)}_focusOutsideDropdown(t){!this.listEl.contains(t.target)&&this.collapsible.isOpen&&this.collapsible.close()}}const vt="switcher-tabs__tab--active";class yt{constructor(t,e,i){this.el=t,this.mobileTriggerEl=i,this.baseSearchBarsMap=e,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",t=>{t.preventDefault(),this.baseSearchBarsMap[this.currentType].showExpandedSearch()}),this.cancelBtn=this.el.querySelector(".".concat("switcher-tabs__cancel-btn")),this.cancelBtn.addEventListener("click",t=>{t.preventDefault(),this.baseSearchBarsMap[this.currentType].hideExpandedSearch()})}_initCollapsibleSwitcher(){this.collapsibleSwitcher=new bt(this.switcherTriggerAndTabs,t=>t.querySelector("button"),{listEl: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("hide-on-desktop"),this.switcherTabs.classList.add("show-on-desktop")}_closeSwitcher(){this.dropdownList.removeEventListener("click",this._handleSwitcherClick),this.switcherTabs.classList.remove("show-on-desktop"),this.switcherTabs.classList.add("hide-on-desktop")}_handleSwitcherClick(t){if(!t.target.classList.contains("switcher-tabs__button"))return;const e=t.target.getAttribute("data-switcher-type"),i=t.target.parentNode;e&&i&&this.currentType!==e?this._switchTo(e,i):this.collapsibleSwitcher.collapsible.close()}_switchTo(t,e){this._updateActiveTab(e),this._updatePlaceholderText(),this.el.setAttribute("data-current-search-type",t),this.collapsibleSwitcher.collapsible.close(),this.baseSearchBarsMap[this.currentType].isExpanded?this.baseSearchBarsMap[t].showExpandedSearch():this.baseSearchBarsMap[t].hideExpandedSearch(),this.currentType=t}_updateActiveTab(t){const e=this.el.querySelector(".".concat(vt));e&&e.classList.remove(vt),t.classList.contains("switcher-tabs__tab")&&t.classList.add(vt)}_updatePlaceholderText(){let t=this.el.querySelector(".".concat(vt));if(t){let e=t.querySelector(".".concat("switcher-tabs__button"));this.dropdownPlaceholderText.textContent=e.textContent}}}class wt{constructor(t,{typeaheadApiBaseUrl:e,shouldSearchOnSelect:i=!0,onCloseExpandedSearch:s}={}){if(this.el=t,!this.el)throw new Error("No element passed into SearchBar");let n;if(this.shouldSearchOnSelect=i,this.placeholderEl=this.el.querySelector(".".concat("search-bar__placeholder")),this.baseSearchBarsMap=E(this.el.querySelectorAll(".".concat("base-search-bar"))).reduce((t,e)=>{const i=new mt(e,this.el,this.placeholderEl,{onCloseExpandedSearch:s});return t[i.type]=i,t},{}),e){const t=()=>{this.baseSearchBarsMap.JOBS.el.querySelector(".base-search-bar__form").submit()};new _t(this.el.querySelector(".keywords-typeahead-input"),{generateApiUrl:t=>"".concat(e,"?query=").concat(window.encodeURIComponent(t)),onSelect:this.shouldSearchOnSelect?t:void 0}),new _t(this.el.querySelector(".location-typeahead-input"),{generateApiUrl:t=>"".concat(e,"?query=").concat(window.encodeURIComponent(t),"&typeaheadType=GEO"),onSelect:this.shouldSearchOnSelect?t:void 0}),n=this.el.querySelectorAll(".".concat($,".search-input"))}else n=this.el.querySelectorAll(".".concat($));E(n).forEach(t=>new tt(t)),this.switcher=new yt(t,this.baseSearchBarsMap,this.placeholderEl),this.setupSearchInputFocusTracking()}setupSearchInputFocusTracking(){this.el.addEventListener("dismissableInputFocused",t=>{const e=t.target.getAttribute("data-tracking-control-name");e&&window.tracking&&window.tracking.then(t=>{t.fireTrackingEvent("SearchInputFocusEvent",{header:{},controlUrn:"urn:li:control:".concat(s(document),"-").concat(e)})})})}}class Tt{constructor(t,e,{isShown:i=!0}={}){if(!t)throw Error("An element must be provided to the dismissable element");if(!e)throw Error("A dismiss button must be provided to the dismissable element");this.el=t,this.dismissBtn=e,this._dismissEvent=t=>this.dismiss(t),i&&this.show()}show(){this.el.classList.add("show"),this.el.classList.remove("dismiss"),this.dismissBtn.addEventListener("click",this._dismissEvent),L(this.el,"show")}dismiss(t){this.el.classList.remove("show"),this.el.classList.add("dismiss"),L(this.el,"dismiss",t),this.dismissBtn.removeEventListener("click",this._dismissEvent)}}function St(){const t=(t="")=>!t||0===t.trim().length;return t.errorMessageSuffix="error_empty",t}function Lt(t){const e=(e="")=>e.length<t;return e.errorMessageSuffix="error_too_short",e}function Ot(t){const e=(e="")=>e.length>t;return e.errorMessageSuffix="error_too_long",e}const kt={session_key:[St(),Lt(3),Ot(128)],session_password:[St(),Lt(6),Ot(400)]};function At(t,e){const i=kt[t];if(!i)throw new Error("No validation rules for element named ".concat(t));for(let t=0;t<i.length;t++)if(i[t](e))return i[t].errorMessageSuffix}var Pt=window||t;const It=/^((?!\.(stg|corp)).)*\.linkedin\.(com|cn)$/;function Ct(){const t=Pt.location?Pt.location.hostname:"";return It.test(t)}function Nt(){return Ct()?"platform.linkedin.com":"platform.linkedin-ei.com"}function Rt(){const t=Pt.location?Pt.location.hostname:"";return/\.cn$/.test(t)}function xt(t,e,i,s=!0){if("function"!=typeof e||"function"!=typeof i)throw new TypeError("One of the specified callbacks is not a function.");const n=new Pt.XMLHttpRequest;n.withCredentials=s,n.open("GET",t,!0),n.onreadystatechange=function(){this.readyState===this.DONE&&(200===this.status&&"function"==typeof e?e(this.responseText):i(this))},n.send()}let Bt;const Ft={},Ut={};Pt.utag_data||(Pt.utag_data={});function jt(){return"https://".concat(Ct()?Rt()?"www.linkedin.cn":"www.linkedin.com":Rt()?"www.linkedin-ei.cn":"www.linkedin-ei.com").concat("/litms/api/metadata/user")}function qt(t){if(!Ut[t]){const e=function(t){return"https://".concat(Nt(),"/litms/whitelist/").concat(encodeURIComponent(t))}(t),i=new Promise((t,i)=>{xt(e,e=>{t(JSON.parse(e))},t=>{i(t)},!1)});Ut[t]=i}return Ut[t]}function Dt(t){for(let e=1;e<arguments.length;e++){const i=arguments[e];if(i){const e=Object.keys(i);for(let s=0;s<e.length;s++){const n=e[s];t[n]=i[n]}}}return t}const Mt="undefined"!=typeof window&&window&&"node"!==window.appEnvironment;let Ht;function Gt(t="main"){return function(){if(void 0===Ht&&Mt){const t=Pt.document.cookie.match(/litms_utag_override=([^;]+)/);Ht=t?t[1]:""}return Ht}().length>0?Ht:function(t){let e=null;"string"==typeof t&&(e="https://".concat(Nt(),"/litms/utag/").concat(t,"/utag.js?cb=").concat(function(t){const e=new Pt.Date;e.setSeconds(0),e.setMilliseconds(0);const i=Math.floor(e.getMinutes()/t)*t;return e.setMinutes(i),e.getTime()}(5)));return e}(t)}function Jt(t,e,i){t.onLoadRulesRunOnce(i),t.view(Dt({},e,Ft))}function Wt(t,e,i){t.onLoadRulesRunOnce(i),t.link(Dt({},e,Ft))}function Kt(t,e){if(function(t){Pt.utag=t}(t),e instanceof Array&&e.length>0){const i=e.length;for(let s=0;s<i;s++){const i=e.shift();i.isControlInteraction?Wt(t,i.data,i.callback):Jt(t,i.data,i.callback)}}}function Vt(t,e){!function(t){return"object"==typeof t&&"function"==typeof t.fireTrackingEvent}(t)?console.error("Unable to fire tracking event"):t.fireTrackingEvent(e.info.name,e.body)}function zt(t,e){return"urn:li:externalMarketingTag:(".concat(function(t){const e=t.data["ut.profile"],i=t.cfg.v;return"urn:li:tagManagementSystemProfile:(".concat("tealium",",").concat(e,",").concat(i,")")}(t),",").concat(parseInt(e),")")}function $t(t){const e=function(t){return Object.keys(t.loader.cfg).filter(e=>1===t.loader.cfg[e].send&&0!==t.loader.cfg[e].load)}(t).map(e=>function(t,e){return{tagUrn:zt(t,e)}}(t,e));if(0!==e.length)return{info:{name:"ExternalMarketingTagFireEvent"},body:{header:{},requestHeader:{},tags:e}}}Pt.utag_cfg_ovrd=Pt.utag_cfg_ovrd||{},Pt.utag_cfg_ovrd.noview=!0,Pt.utag_cfg_ovrd.nocookie=!0;const Qt=Mt&&new RegExp("bot|google|aolbuild|baidu|bing|msn|duckduckgo|teoma|slurp|yandex|sogou|facebook|alexa","i").test(Pt.navigator.userAgent),Yt={};class Xt{constructor({profileName:t,tracking2Instance:e,enableWhitelisting:i=!1}={}){this.isInitialized=!1,this.isWhitelistingEnabled=!1,this._whitelistReadyPromise=Promise.resolve({}),this.isContainerTagLoaded=!1,this._queue=[],this.whitelist={pageKey:{},controlUrn:{}},this.tracking2Instance=e,this.profileName=t,this.enableWhitelisting=i}initialize(){return this._shouldInitialize()?this.isInitialized?(console.warn("Initialize should not be called more that once"),this.initializePromise.then()):(this.isInitialized=!0,this.initializePromise=new Promise((t,e)=>{this.enableWhitelisting?(this.isWhitelistingEnabled=!0,this._onInitializeSuccessCallback=t,this._onInitializeFailureCallback=e,this._whitelistReadyPromise=qt(this.profileName).then(t=>this._processWhitelistResult(t)).catch(t=>console.error("Unable to retrieve whitelists for profile : ".concat(this.profileName),t))):this._loadContainerTag(t,e)}),this.profileName&&(Yt[this.profileName]=this),this.initializePromise):Promise.resolve()}_processWhitelistResult(t){Object.keys(t).forEach(e=>this.addValuesToWhitelist(e,t[e]))}_loadContainerTag(t,e){void 0!==Pt.utag&&(Pt.utag=void 0),void 0!==Pt.utag_data&&(Pt.utag_data=void 0);const i=function(){if(!Bt){const t=jt();Bt=new Promise((e,i)=>{xt(t,t=>{e(JSON.parse(t))},t=>{i(t)})})}return Bt}().then(t=>{Object.keys(t).forEach(e=>{!function(t,e){const i="string"!=typeof e?"":"".concat(e,".");"object"==typeof t&&Object.keys(t).forEach(e=>{Ft[i+e]=t[e]})}(t[e],e)})}).catch(t=>{console.error("Unable to get user settings",t)}),s=(n=Gt(this.profileName),new Promise(t=>{const e=Pt.document.createElement("script");e.type="text/javascript",e.src=n,e.async=!0,e.onload=t,Pt.document.getElementsByTagName("head")[0].appendChild(e)}));var n;Promise.all([i,s]).then(()=>{this.isContainerTagLoaded=!0,this._uTag=Pt.utag,function(t){const e=[];t.onLoadRulesRunOnce=function(t){e.push(t)};const i=t.loader.initcfg;t.loader.initcfg=function(){if(i.call(this,arguments),e.length>0){e.shift()()}}}(this._uTag),this._processQueuedEvents();const e={info:{name:"TagManagementSystemLoadEvent"},body:{header:{},requestHeader:{}}};"object"==typeof this.tracking2Instance&&Vt(this.tracking2Instance,e),t(e)}).catch(t=>{console.error("Unable to complete loading container tag",t),e()})}_shouldInitialize(){return!Qt}_shouldProcessEvent(t){return Qt?Promise.resolve(!1):this.isWhitelistingEnabled?new Promise(e=>{this._whitelistReadyPromise.then(()=>{e(this._isEventWhitelisted(t))})}):Promise.resolve(!0)}_isEventWhitelisted(t){return void 0!==t.controlUrn?this._isEventWhitelistedByControlUrn(t):this._isEventWhitelistedByPageKey(t)}_isEventWhitelistedByPageKey(t){return void 0!==this.whitelist.pageKey[t.pageKey]}_isEventWhitelistedByControlUrn(t){return void 0!==this.whitelist.controlUrn[t.controlUrn]}addValuesToWhitelist(t,e){"string"==typeof t&&Array.isArray(e)&&void 0!==this.whitelist[t]&&e.forEach(e=>{this.whitelist[t][e]=!0})}_processQueuedEvents(){this.isContainerTagLoaded?Kt(this._uTag,this._queue):this.isInitialized&&this.isWhitelistingEnabled&&this._loadContainerTag(this._onInitializeSuccessCallback,this._onInitializeFailureCallback)}_fireAuditEvent(){const t=$t(this._uTag);return void 0!==this.tracking2Instance&&void 0!==t&&Vt(this.tracking2Instance,t),t}_createCallbackForAuditEvent(t){const e=this;return function(){const i=e._fireAuditEvent();"function"==typeof t&&t(i)}}trackPageView(t,e){return this._shouldProcessEvent(t).then(i=>{i&&(this._queue.push({isControlInteraction:!1,data:t,callback:this._createCallbackForAuditEvent(e)}),this._processQueuedEvents())})}trackControlInteraction(t,e){return this._shouldProcessEvent(t).then(i=>{i&&(this._queue.push({isControlInteraction:!0,data:t,callback:this._createCallbackForAuditEvent(e)}),this._processQueuedEvents())})}}function Zt({event:t,litmsInstance:e,pageKey:i}){const s=t.target.getAttribute("data-tracking-control-name"),n=t.target.hasAttribute("data-tracking-litms");s&&n&&e.trackControlInteraction({controlUrn:"urn:li:control:".concat(i,"-").concat(s)})}class te{constructor(t){if(this.trackingInstance=t,this.pageKey=s(document),this.litmsProfileName=function(t){const e=t.querySelector('meta[name="litmsProfileName"]');return e?e.content:""}(document),!this.litmsProfileName)throw Error('Page missing "litmsProfileName" meta tag.');this.litmsInstance=new Xt({tracking2Instance:this.trackingInstance,profileName:this.litmsProfileName}),this.litmsInstance.initialize(),this.clickEventListener=t=>Zt({event:t,litmsInstance:this.litmsInstance,pageKey:this.pageKey}),this.keydownEventListener=t=>{"Enter"!==t.key&&" "!==t.key&&"Spacebar"!==t.key||Zt({event:t,litmsInstance:this.litmsInstance,pageKey:this.pageKey})},document.body.addEventListener("click",this.clickEventListener,!0),document.body.addEventListener("keydown",this.keydownEventListener,!0)}trackPageView({pageKey:t=""}={}){if(!("string"==typeof t||t instanceof String))throw new Error("The pageKey is not a string!");this.litmsInstance&&this.litmsInstance.trackPageView({pageKey:t||this.pageKey})}}let ee;function ie(t){if(!ee){if(!t)throw new Error("No trackingInstance passed in!");ee=new te(t)}return ee}class se{constructor(t,e){if(!t)throw Error("An element must be provided to sign in form");this.el=t,this._customValidate=e,this.showText=D("i18n_sign_in_form_show_text"),this.showLabelText=D("i18n_sign_in_form_show_label"),this.hideText=D("i18n_sign_in_form_hide_text"),this.hideLabelText=D("i18n_sign_in_form_hide_label"),this.usernameEl=this.el.querySelector("input[name=".concat("session_key","]")),this.passwordEl=this.el.querySelector("input[name=".concat("session_password","]")),this.usernameMsgEl=this.el.querySelector(".".concat("input__message","[for=").concat("session_key","]")),this.passwordMsgEl=this.el.querySelector(".".concat("input__message","[for=").concat("session_password","]")),this.passwordVisibilityToggle=this.el.querySelector(".".concat("sign-in-form__password-visibility-toggle")),this.passwordVisibilityToggle.addEventListener("click",this._togglePasswordVisibility.bind(this)),this.el.addEventListener("submit",t=>{if(t.preventDefault(),!this._validate()){if(this._customValidate)return this._customValidate(this.el);this.el.submit()}}),window.tracking&&window.tracking.then(t=>{const e=s(document).replace("_jsbeacon","")+"_login-form";C(t,"ajax",e),ie(t).trackPageView({pageKey:e})})}setUsernameInputValue(t){this.usernameEl.value=t}resetFormState(){this.usernameEl.value="",this.passwordEl.value="","text"===this.passwordEl.getAttribute("type")&&this._togglePasswordVisibility()}_togglePasswordVisibility(){"password"===this.passwordEl.getAttribute("type")?(this.passwordEl.setAttribute("type","text"),this.passwordVisibilityToggle.innerText=this.hideText,this.passwordVisibilityToggle.setAttribute("aria-label",this.hideLabelText)):(this.passwordEl.setAttribute("type","password"),this.passwordVisibilityToggle.innerText=this.showText,this.passwordVisibilityToggle.setAttribute("aria-label",this.showLabelText))}_validate(){const t=At(this.usernameEl.name,this.usernameEl.value);if(t){this.usernameEl.parentNode.classList.add("input--error"),this.usernameMsgEl.classList.remove("hidden");const e="".concat("i18n_username","_").concat(t);return this.usernameMsgEl.innerText=D(e),!0}this.usernameEl.parentNode.classList.remove("input--error"),this.usernameMsgEl.classList.add("hidden");const e=At(this.passwordEl.name,this.passwordEl.value);if(e){this.passwordEl.parentNode.classList.add("input--error"),this.passwordMsgEl.classList.remove("hidden");const t="".concat("i18n_password","_").concat(e);return this.passwordMsgEl.innerText=D(t),!0}this.passwordEl.parentNode.classList.remove("input--error"),this.passwordMsgEl.classList.add("hidden")}}class ne{constructor(t,{daysCoolOff:e=30,dismissOnOutsideClick:i=!0,dismissOnScroll:s=!1,dismissBtnEl:n}={}){if(!t)throw Error("An element must be provided to sign in card");if(this.el=t,this.coolOffPeriod=24*e*60*60*1e3,this.dismissBtn=n||this.el.querySelector(".".concat("sign-in-card__dismiss-btn")),this._dismissEvent=t=>this._dismiss(t),this._interactionEvent=t=>this._interactionListener(t),window.innerWidth<769||(this.dismissOnOutsideClick=i,this.dismissOnScroll=s),!this._hideCard()){this.dismissable=new Tt(this.el,this.dismissBtn);const t=this.el.querySelector(".sign-in-form");t&&new se(t),this._addEventListeners()}}_addEventListeners(){this.el.addEventListener("dismiss",this._dismissEvent),this.dismissOnOutsideClick&&document.body.addEventListener("click",this._interactionEvent),this.dismissOnScroll&&window.addEventListener("scroll",this._interactionEvent)}_dismiss(t){this._hardDismissal(t)&&this._setCoolOff(t),this._removeEventListeners()}_removeEventListeners(){this.el.removeEventListener("dismiss",this._dismissEvent),this.dismissOnOutsideClick&&document.body.removeEventListener("click",this._interactionEvent),this.dismissOnScroll&&window.removeEventListener("scroll",this._interactionEvent)}_interactionListener(t){this.el.contains(t.target)||this.dismissable.dismiss()}_setCoolOff(){try{localStorage.setItem("sign-in-hidden",Date.now())}catch(t){return""}}_hideCard(){try{const t=localStorage.getItem("sign-in-hidden");if(t){return Date.now()-t<this.coolOffPeriod||(localStorage.removeItem("sign-in-hidden"),!1)}}catch(t){return!1}}_hardDismissal(t){return t.detail&&this.dismissBtn.contains(t.detail.target)}}const re=".".concat("show-more-less","__list"),oe=".".concat("show-more-less","__more-button"),ae=".".concat("show-more-less","__less-button"),le="".concat("show-more-less","__list--hide-after"),ce="".concat("show-more-less","__button--hide");class he{constructor(t,e=(t=>t)){if(!t)throw Error("An element must be provided to ShowMoreLess");this.el=t,this.listEl=this.el.querySelector(re),this._getFocusItemFromListItem=e,this.maxNumToShow=parseInt(this.listEl.getAttribute("data-max-num-to-show")),this.hideClass="".concat(le,"-").concat(this.maxNumToShow),this.showMoreButton=this.el.querySelector(oe),this.showLessButton=this.el.querySelector(ae),this._attachEventListeners(),this.firstHiddenListItem=this.listEl.children[this.maxNumToShow],this.isExpanded=!this.listEl.classList.contains(this.hideClass),new gt(t,this.listEl,{mainButton:this.showMoreButton,closeButton:this.showLessButton},{currentListItem:this.firstHiddenListItem,isOpen:this.isExpanded})}_attachEventListeners(){this.el.addEventListener("open",()=>this._showElements()),this.el.addEventListener("close",()=>this._hideElements()),this.listEl.addEventListener("focus",t=>this._focusItem(t))}_focusItem(t){let e=t.target;if(e){let t=this._getFocusItemFromListItem(e);t&&t.focus()}}_showElements(){this.listEl.classList.remove(this.hideClass),this._toggleButtons(!1)}_hideElements(){this.listEl.classList.add(this.hideClass),this._toggleButtons(!0)}_toggleButtons(t){t?(this.showLessButton.classList.add(ce),this.showMoreButton.classList.remove(ce)):(this.showLessButton.classList.remove(ce),this.showMoreButton.classList.add(ce))}}const de="roo:event:close",ue="roo:event:ready",_e="roo:event:nodeRendered",pe="roo:event:noTargetMatch",me="roo:showSurvey";class ge{constructor(t,{isDev:e=!1,customTriggerFn:i,triggerTime:s=7e3}={}){if(!t)throw new Error("You must pass an element to initialize qualaroo");if(this.el=t,this.isDev=e,this.qualarooIframe=this.el.querySelector(".qualaroo__iframe"),this.surveyId=this.qualarooIframe.getAttribute("data-survey-id"),this.channelId=this.qualarooIframe.getAttribute("data-channel-id"),!this.surveyId||!this.channelId)throw new Error("Channel Id and Survery Id must be present on iframe element");i?i.call(this):this._setupTrigger(s),window.addEventListener("message",t=>{this._handleQualarooMessage(t)})}_setupTrigger(t){let e,i=!1;const s=()=>{clearTimeout(e),e=setTimeout(()=>{this.showSurvey(),i=!0},t)},n=T(function(){i?window.removeEventListener("scroll",n):s()}.bind(this),250);window.addEventListener("scroll",n),s()}_handleQualarooMessage({origin:t,data:e}){const[i,s,,,n,r]=e;if("https://linkedin.cdn.qualaroo.com"===t&&(i||s)){if(i!==this.channelId)throw new Error("Qualaroo channelId does not match");switch(s){case de:this.isRendered=!1;break;case _e:r&&n&&(this.isRendered=!0,this.height=r,this.width=n);break;case pe:console.log("No Target Match");break;case ue:this.isDev?this.qualarooIframe.contentWindow.postMessage([me,this.surveyId,!0],"https://linkedin.cdn.qualaroo.com"):this.qualarooIframe.contentWindow.postMessage([me,this.surveyId,!1],"https://linkedin.cdn.qualaroo.com")}}}set height(t){this.qualarooIframe.height=t}set width(t){this.qualarooIframe.width=t}showSurvey(){this.el.classList.add("show")}}class fe{constructor(t=document.querySelector("header")){if(!t)throw Error("A header element is required to instantiate a StickyNav");if(!t.querySelector("nav"))throw Error("The header must contain a 'nav' element in order to instantiate a StickyNav");t.classList.add("sticky-nav");let e=8;if(pt()){const i=t.querySelector(".search-bar");i&&(e=i.getBoundingClientRect().height)}return new M(t,{exposeStickyState:!0,isBottom:!1,scrollThreshold:e})}}}).call(this,i(1))},function(t,e){var i;i=function(){return this}();try{i=i||new Function("return this")()}catch(t){"object"==typeof window&&(i=window)}t.exports=i},,,,function(t,e,i){"use strict";i.r(e);var s=i(0);class n extends s.e{constructor(t){if(!t)throw Error("An element must be provided to HomepageSearch");super(t,{typeaheadApiBaseUrl:"/homepage-guest/api/typeaheadHits",onCloseExpandedSearch:()=>{this._closeSwitcher()}}),this.searchTabs=this.el.querySelector(".".concat("search__tabs")),this.jobsSubmitBtn=this.el.querySelector(".".concat("search__button","[").concat('data-searchbar-type="JOBS"',"]")),this.peopleSubmitBtn=this.el.querySelector(".".concat("search__button","[").concat('data-searchbar-type="PEOPLE"',"]")),this.jobsSearch=this.el.querySelector(".".concat("base-search-bar","[").concat('data-searchbar-type="JOBS"',"]")),this.peopleSearch=this.el.querySelector(".".concat("base-search-bar","[").concat('data-searchbar-type="PEOPLE"',"]")),this.searchBarPlaceholder=this.el.querySelector(".".concat("search-bar__placeholder")),this.searchBarPlaceholderButton=this.el.querySelector(".".concat("search__placeholder--search")),this.switcherElArray=[this.el.querySelector(".".concat("switcher-tabs")),this.searchTabs,this.el],[...this.el.querySelectorAll(".base-search-bar__submit-btn")].forEach(t=>t.setAttribute("tabindex","-1")),this._assignForm("PEOPLE",this.peopleSearch,this.peopleSubmitBtn),this._assignForm("JOBS",this.jobsSearch,this.jobsSubmitBtn),this.searchTabs.classList.contains("isExpanded")&&(this.el.querySelector(".".concat("switcher-tabs")).classList.add("isExpanded"),this.switcher.baseSearchBarsMap[this.switcher.currentType].showExpandedSearch(),this._removeNoScrollFromDesktop()),this.searchBarPlaceholder.addEventListener("click",this._openSwitcher.bind(this)),this.el.addEventListener("click",t=>{t.target.getAttribute("data-switcher-type")&&this._removeNoScrollFromDesktop()})}_openSwitcher(){this.switcherElArray.forEach(t=>t.classList.add("isExpanded")),this.searchBarPlaceholder.classList.remove("isExpanded"),this.switcher.baseSearchBarsMap[this.switcher.currentType].showExpandedSearch(),this._removeNoScrollFromDesktop()}_closeSwitcher(){this.switcherElArray.forEach(t=>t.classList.remove("isExpanded")),this.searchBarPlaceholder.classList.add("isExpanded"),this.searchBarPlaceholderButton.focus()}_removeNoScrollFromDesktop(){window.innerWidth>769&&document.body.classList.remove("no-scroll")}_assignForm(t,e,i){e.querySelector(".".concat("base-search-bar__form")).id=t,i.setAttribute("form",t)}}class r{constructor(t){if(!t)throw Error("An element must be provided to recent searches");this.recentSearches=t,this.clearBtn=this.recentSearches.querySelector(".recent-searches__clear"),this._clearRecentSearchesHandler=this._clearRecentSearches.bind(this),this.clearBtn.addEventListener("keydown",t=>{var e=t.key,i=s.n.KEYS,n=(0,s.n.normalizeKeyBoardEventKey)(e);n!==i.ENTER&&n!==i.SPACEBAR||this._clearRecentSearchesHandler()}),this.clearBtn.addEventListener("click",this._clearRecentSearchesHandler)}_clearRecentSearches(){Object(s.q)("/homepage-guest/clearSearchHistory/",{method:"POST"}),this.clearBtn.removeEventListener("click",this._clearRecentSearchesHandler),this.recentSearches.classList.add("hidden"),this.recentSearches.addEventListener("transitionend",()=>{this.recentSearches.parentNode.removeChild(this.recentSearches)})}}class o{constructor(t){if(!t)throw Error("An element must be provided to Mobile Dropdown");this.el=t,this.stateCheckbox=this.el.querySelector(".show-more-less-state"),this._attachEventListeners()}_attachEventListeners(){this.stateCheckbox.addEventListener("change",this._handleMobileStateChange.bind(this))}_handleMobileStateChange(){this.stateCheckbox.checked?document.body.classList.add("no-scroll"):document.body.classList.remove("no-scroll")}}var a="aria-[a-z0-9_\\-]+|class|data-[a-z0-9_\\-]+|dir|id|role|tabindex",l=function(){if("undefined"==typeof document)return!0;return"textContent"in document.createElement("div")}()?"textContent":"innerText",c=["b","del","em","i","s","strong","sub","sup"],h=c.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"]),d=[a,"alt|checked|colgroup|cols|colspan|disabled|height|hidden|maxlength|method|multiple|name|placeholder|readonly|rel|required|rows|rowspan|spellcheck|target|title|width","border|caption|color|controls|coords|hreflang|label|lang|loop|marginheight|marginwidth|preload|reversed|type|usemap|clear|headers|ismap|start|datetime|accept|max|min|size|step|style|cellspacing|cellpadding"].join("|");function u(){}function _(t,e){if(e=e||"log",window&&window.jet&&"error"===e.toLowerCase())try{throw new Error(t)}catch(t){try{window.jet.error(t)}catch(t){}}"undefined"!=typeof console&&"function"==typeof console[e]&&console[e](t)}var p,m,g=(m=/[&<>"'\u0000\\=]/g,p={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","\0":"�","\\":"&#92;","=":"&#61;"},function(t){return null==t?null:t.toString().replace(m,(function(t){return p[t]}))}),f=function(){var t,e,i=/&(?:([a-z0-9]+)|#x([\da-f]{1,6})|#(\d{1,8}));/gi;if("undefined"==typeof document)return function(){throw new Error("document is undefined (i.e. you are probably in Node.js)")};t=document.createElement("div");var s={nbsp:" ",lt:"<",gt:">",amp:"&",quot:'"'};return e="function"==typeof String.fromCodePoint?function(t){return String.fromCodePoint(t)}:function(t){return t<=65535?String.fromCharCode(t):"�"},function(n){return null==n?null:(n+"").replace(i,(function(i,n,r,o){return n?(a=n,s.hasOwnProperty(a)?s[a]:(t.innerHTML="&"+a+";",c=t[l],s[a]=c,c)):r||o?e(parseInt(r||o,r?16:10)||65533):"�";var a,c}))}}();var E=Array.isArray||function(t){return"[object Array]"===Object.prototype.toString.call(t)};function b(t){return/[<&]/.test(t)}var v,y=Array.prototype.forEach?function(t,e){Array.prototype.forEach.call(t,e)}:function(t,e){for(var i=0,s=t.length;i<s;i++)e(t[i],i)};function w(t){t=E(t)?t:[t];var e,i,s,n=0,r="<(?!/?";return r+="(?:",y(t,(function(t,o){e=t.tags||h,i=t.attrs||d,s=t.checkUrlAttrs||!1,0!==o&&(r+="|"),r+="(?:"+e.join("|")+")",r+="(?:",r+="[ \t\r\n]*",r+="|[ \t\r\n]+",r+="(?:(?:",r+="(?:"+i+")(?:=([\"'])[^'\"<>]*\\"+ ++n+")?",s&&(r+="|(?:href|src)=([\"'])(?:(?:https?|ftp|mailto|invalid)(?::|&#(?:58|x3a);)|(?:data:image/(?:gif|jpg|jpeg|png);base64,)|[/.#?]|&#(?:35|4[67]|63|x(?:2[3ef]|3f));)[^'\"<>]*\\"+ ++n),r+=")[ \t\r\n]*)+",r+=")"})),r+=")",r+="/?>)",new RegExp(r,"i")}function T(t){return w({tags:t=t||h,checkUrlAttrs:!0})}function S(t,e){var i=(e=e||{}).allowTags,s=!1!==e.hasCustomElementMarkup;return i?!T(i).test(t):s?!S.R_UNSAFE_CUSTOM_ELEMENT.test(t):!S.R_UNSAFE_HTML.test(t)}function L(t){return t.replace(/<[^>]*>|[<>'"&\\]/g,"")}function O(t,e,i){if(null==t)return null;t=t.toString();var s=e?function(t,e){var i={};return t.replace(/\{([^}]+)\}/g,(function(t,s){var n,r=t;if(i.hasOwnProperty(s))return i[s];if(e.hasOwnProperty(s)){if(!((n="string"==typeof(r=e[s]))||r instanceof u||"number"==typeof r))throw new Error("Only strings, numbers, and jSecure types are allowed as placeholder replacements.");r=n?g(r):r.toString()}return i[s]=r,r}))}(t,e):t,n=t;return b(s)&&!S(s,i)&&(s=L(s),_("Content contains non-whitelisted tags or attributes:\nContent: "+n,"error")),s}function k(t,e){for(var i=+e.length,s=0,n=t.length;s<i;s++)t[n++]=e[s];return t.length=n,t}S.R_UNSAFE_HTML=T(),S.R_UNSAFE_CUSTOM_ELEMENT=w([{tags:h,checkUrlAttrs:!0},{tags:[(v={tag:"li-icon",attrs:"active|a11y-text|animate|color|size|type"}).tag],attrs:[a,v.attrs].join("|"),checkUrlAttrs:!1}]);var A={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,"",""]};A.optgroup=A.option,A.tbody=A.tfoot=A.colgroup=A.caption=A.thead,A.th=A.td;var P=/<([\w:]+)/;function I(t,e){var i,s,n,r,o,a,l,c=e.createDocumentFragment(),h=[];for(o=0,l=t.length;o<l;o++)if((r=t[o])||0===r)if("string"==typeof r){for(n=n||c.appendChild(e.createElement("div")),i=(P.exec(r)||["",""])[1].toLowerCase(),R(n,(s=A[i]||A._default)[1]+r+s[2]),a=s[0];a--;)n.lastChild&&n.lastChild.nodeType===Node.ELEMENT_NODE&&(n=n.lastChild);k(h,n.childNodes),(n=c.firstChild).textContent=""}else k(h,r.nodeType?[r]:r);for(c.textContent="",r=h[o=0];r;)c.appendChild(r),r=h[++o];return c}var C=O,N=O;function R(t,e,i){var s=O(e,i);return b(s)?t.innerHTML=s:t[l]=s,s}function x(t,e){if(!(this instanceof x))return new x(t,e);(e=e||{}).allowTags=e.allowTags?e.allowTags.reduce((function(t,e){return t.concat(e)}),[]):null,this._string=t,this._options=e}x.prototype=function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);return t}(new u,{toString:function(){var t=this._string,e=this._stringVal,i=t;return void 0!==e?e:(S(t,this._options)||(i=t,t=L(t),_("UnsafeString contains non-whitelisted tags or attributes.\nString: "+i,"error")),this._stringVal=t,t)}});const B=/ /g,F=/[\s\u0000<>"]|%00/,U=/\\/,j=/([.]|%2e){2}/i;let q=new RegExp("^(?:https?|ftp|mailto|tel|sms|blob|voyager|android-app|linkedin|chrome-extension|invalid|data:(?:(?:image/(?:gif|jpe?g|png))|(?:application/x-font-woff)|(?:font/(?:opentype|ttf)))[;,]|[/.#?])");function D(t){let e;if("string"!=typeof t)return _("jSecure Warning: url must be a string","error"),"invalid://";if(e=t.trim(),e.indexOf(" ")>-1&&(_("jSecure Warning: url should not contain spaces: "+t,"warn"),e=e.replace(B,"+")),!q.test(e))return _("jSecure Error: URL should be absolute with allowed schemas, relative, a hash fragment or query string. "+t,"error"),"invalid://";if(F.test(e))return _("jSecure Error: not valid url character found in url: "+t,"error"),"invalid://";let i=e.split("?")[0];return U.test(i)||j.test(i)||j.test(decodeURI(i))?(_("jSecure Error: malicious data found in url path: "+i,"error"),"invalid://"):t}const M={redirect(t){window&&(window.location.href=t)}};var H={ALLOWED_TAGS:h,FORMATTING_TAGS:c,htmlEncode:g,htmlUnencode:f,log:_,mk:function(t){for(var e=arguments.length,i=Array(e>1?e-1:0),s=1;s<e;s++)i[s-1]=arguments[s];let n,r="",o=i.length;return t&&t.forEach((function(t,e){r+=t,e<o&&(n=i[e],r+=n instanceof x?n:g(n))})),N(r)},parseHTML:function(t,e){var i;if(e=e||document.implementation&&document.implementation.createHTMLDocument?document.implementation.createHTMLDocument(""):document,"string"==typeof t)i=I([t],e);else{if(!E(t))return t;i=I(t,e)}return k([],i.childNodes)},parseSelector:function(t){return"string"==typeof t&&/^(?:\s*(<[\w\W]+>)[^>]*)$/.test(t)?[]:t},processTemplate:C,reEncode:function(t){return g(f(t))},_redirector:M,redirect:function(t){const e=D(t);e===t&&M.redirect(e)},sanitizeHTML:N,sanitizeUrl:D,setElementContent:R,text:function(t){return _("jSecure.text() is deprecated. Please use jSecure.htmlEncode().","warn"),g(t)},unsafe:function(t){return t},UnsafeString:x};function G(t){t.querySelector("div.alert").classList.add("hidden")}const J=/^http[s]?:\/\/(qprod\.)?www\.linkedin(?:-ei)?\.(com|cn)$/,W={FIRST_NAME_INPUT:"#first-name",FIRST_NAME_LABEL:'[for="first-name"]',LAST_NAME_INPUT:"#last-name",LAST_NAME_LABEL:'[for="last-name"]',PHONETIC_FIRST_NAME_INPUT:"#phonetic-first-name",PHONETIC_LAST_NAME_INPUT:"#phonetic-last-name",EMAIL_INPUT:"#email-or-phone",EMAIL_LABEL:'[for="email-or-phone"]',PROFILE_CARD:".profile-card"},K={PHOTO:".profile-card__photo",NAME:".profile-card__info-name",NOT_YOU:".profile-card__not-you",EMAIL:".profile-card__info-email",EDIT_ICON:".profile-card__edit-icon",EDIT_PHOTO:{CANCEL_ICON:".profile-card__edit-photo-cancel-icon",MODAL:".profile-card__edit-photo-modal",TEXT:".profile-card__edit-photo-text"}},V="hidden",z="src",$="required",Q="FACEBOOK",Y="GOOGLE",X="WECHAT",Z="PageViewEvent",tt="EntityActivityEvent",et="ControlInteractionEvent",it="FOCUS",st="SHORT_PRESS",nt="click",rt="view",ot={ERROR_ALERT:"error-alert",ERROR_ALERT_DISMISS_BUTTON:"error-alert-dismiss-button",GOOGLE_ONE_TAP_SIGNUP_BUTTON:"google-one-tap-signup-button",GOOGLE_ONE_TAP_CLOSE_BUTTON:"google-one-tap-close-button",JOIN_WITH_GOOGLE_BUTTON:"join-with-google-button",JOIN_WITH_FACEBOOK_BUTTON:"join-with-facebook-button",AGREE_AND_JOIN_BUTTON:"agree-and-join-button",CONTINUE_BUTTON:"continue-button",CHALLENGE_DIALOG:"challenge-dialog",CHALLENGE_SOLVED:"challenge-solved",CHALLENGE_FAILED:"challenge-failed",PROFILE_CARD_NOT_YOU_BUTTON:"profile-card-not-you-button",DELETE_PHOTO_BUTTON:"delete-photo-button"},at={GOOLE_ONE_TAP:{GOOGLE_ONE_TAP_SIGNUP_IGNORED:"google-one-tap-signup-ignored",GOOGLE_ONE_TAP_IMPRESSION:"google-one-tap-impression-success",GOOGLE_ONE_TAP_NO_ACCOUNT:"google-one-tap-no-account",GOOGLE_ONE_TAP_ERROR:"google-one-tap-error",GOOGLE_ONE_TAP_REQUEST_FAIL_ERROR:"google-one-tap-request-fail-error",GOOGLE_ONE_TAP_ILLEGAL_REQUEST_ERROR:"google-one-tap-illegal-request-error",GOOGLE_ONE_TAP_INITIALIZATION_ERROR:"google-one-tap-initialization-error",GOOGLE_ONE_TAP_CONFIGURATION_ERROR:"google-one-tap-configuration-error"},THIRD_PARTY_JOIN_BUTTON:{FACEBOOK_IMPRESSION:"facebook-impression",FACEBOOK_ERROR:"facebook-error",GOOGLE_IMPRESSION:"google-impression",GOOGLE_ERROR:"google-error",GAAP_ERROR:"gaap-error"},JOIN_REQUEST:{JOIN_REQUEST_SUCCESS:"request-success",JOIN_REQUEST_FAILURE:"request-failure",JOIN_REQUEST_FAILURE_WITH_GOOGLE_ONE_TAP:"request-failure-with-google-one-tap",JOIN_REQUEST_FAILURE_WITH_FACEBOOK:"request-failure-with-facebook",JOIN_REQUEST_FAILURE_WITH_GOOGLE:"request-failure-with-google"},ALERT:{VALIDATION_FAILURE_ALERT:"validation-failure-alert"}};function lt(t,e){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;const s=10,n=i===s;n||(window.tracking?window.tracking.then(i=>{i.fireTrackingEvent(t,e)}):window.setTimeout(()=>{lt(t,e,i+1)},500))}function ct(t,e){t.forEach(t=>{const i=e?t.target:t,n={header:{},pageType:"form",requestHeader:{interfaceLocale:s.p.getLocale(document)||null},trackingInfo:{clientTimestamp:Date.now(),pageTag:s.p.getPageTag(document)||null,source:"registration-ui-lib",formId:i.id}};lt(Z,n),e&&e.unobserve(i)})}function ht(t){if(s.p.getPageKey(document)&&s.p.getPageKey)return`urn:li:control:${s.p.getPageKey(document)}-${t}`}function dt(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!s.p.getPageKey(document)||!t.controlName)return;const e={header:{},requestHeader:{},controlUrn:ht(t.controlName),interactionType:t.interactionType||it};lt(et,e)}function ut(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!s.p.getPageKey(document)||!t.trackingCode)return;const e={header:{},pageType:"form",requestHeader:{interfaceLocale:s.p.getLocale(document)||null},trackingCode:`${s.p.getPageKey(document)}-${t.trackingCode}`,activityType:t.activityType||nt,pageKey:s.p.getPageKey(document),attributes:t.customData||{}};lt(tt,e)}function _t(t,e){const i=t.querySelector("div.alert"),n=i.querySelector('p[class="alert-content"]');H.setElementContent(n,e||Object(s.l)("i18n_server_generic_error")),i.classList.remove("hidden"),dt({controlName:ot.ERROR_ALERT,interactionType:st})}const pt=/\!|\@|\#|\$|\%|\^|\&|\*|\+|\=|\||<|\>|\?|\:|\;/,mt=/(.)\1{3}/,gt=/linkedin/i,ft=/\d\d/,Et=new RegExp("([a-zA-Z0-9]+://)?([a-zA-Z0-9_]+:[a-zA-Z0-9_]+@)?([a-zA-Z0-9.-]+\\.[A-Za-z]{2,4})(:[0-9]+)?(/.*)?"),bt=/^(([^<>()\[\]\.,;:\s@\"]+(\.[^<>()\[\]\.,;:\s@\"]+)*)|(\".+\"))@(([^<>()[\]\.,;:\s@\"]+\.)+[^<>()[\]\.,;:\s@\"]{2,})$/i,vt=/^[\u4E00-\u9FFF|\u3400-\u4DBF|\uF900-\uFAFF]*$/,yt=/^[ぁ-ゔゞ゛゜ー]*$/,wt=/^[+]?[\s./0-9]*[(]?[0-9]{1,4}[)]?[-\s./0-9]*$/,Tt=t=>{const e=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return e.length<=t};return e.errorMessagePrefix="i18n_tooLong_",e},St=t=>{const e=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return e.length>=t};return e.errorMessagePrefix="i18n_tooShort_",e},Lt=function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return!ft.test(t)};Lt.errorMessagePrefix="i18n_noConsecutiveDigits_";const Ot=function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return!pt.test(t)};Ot.errorMessagePrefix="i18n_noForbiddenCharacters_";const kt=function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return!mt.test(t)};kt.errorMessagePrefix="i18n_noFourConsecutiveDuplicates_";const At=function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return!gt.test(t)};At.errorMessagePrefix="i18n_noLinkedIn_";const Pt=function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return!Et.test(t)};Pt.errorMessagePrefix="i18n_noUrl_";const It=function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return vt.test(t)};It.errorMessagePrefix="i18n_onlyChinese_";const Ct=function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return yt.test(t)};Ct.errorMessagePrefix="i18n_onlyPhonetic_";const Nt=function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return""!==t.trim()};Nt.errorMessagePrefix="i18n_required_";const Rt=function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return bt.test(t)};Rt.errorMessagePrefix="i18n_invalidFormat_";const xt=function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return wt.test(t)};xt.errorMessagePrefix="i18n_invalidFormat_";const Bt=function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return bt.test(t)||wt.test(t)};Bt.errorMessagePrefix="i18n_invalidFormat_";const Ft=[Tt(50),Ot,Lt,kt,At,Pt],Ut=[Nt].concat(Ft),jt=[Ct,Tt(50),kt],qt={"first-name":Ut,"last-name":Ut,"phonetic-first-name":jt,"phonetic-last-name":jt,"real-name":[Nt,It,Tt(4),St(2)],"email-or-phone":[Nt,Tt(128),Bt],"email-address":[Nt,Tt(128),Rt],"optional-email-address":[Tt(128),(t=>{const e=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return""===e||t(e)};return e.errorMessagePrefix=t.errorMessagePrefix,e})(Rt)],"phone-number":[Nt,xt],password:[Nt,St(6),Tt(200)]},Dt={button:!0,reset:!0,submit:!0,checkbox:!0},Mt=t=>!Dt[t.type],Ht={"email-or-phone":"emailOrPhoneNumber","optional-email-address":"emailAddress","phone-number":"phoneNumber","email-address":"emailAddress",password:"password","first-name":"firstName","last-name":"lastName","phonetic-first-name":"phoneticFirstName","phonetic-last-name":"phoneticLastName"};function Gt(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};let e=t.name,i=t.value;const s=qt[e];if(!s)throw new Error(`No validation rules for element named ${e}`);return s.reduce((t,s)=>(s(i)||t.push(s.errorMessagePrefix+e),t),[])}const Jt=790,Wt=580,Kt="auth_popup",Vt=".third-party-join__container",zt=".third-party-join__btn";class $t{constructor(t){if(!t)throw new Error("No element passed in.");let e;switch(this.element=t,this.provider=Object(s.l)("dust-var-provider"),this.show(),this._setupGaapCallback(),this._attachEventListeners(),this.provider){case Q:e=at.THIRD_PARTY_JOIN_BUTTON.FACEBOOK_IMPRESSION;break;case Y:e=at.THIRD_PARTY_JOIN_BUTTON.GOOGLE_IMPRESSION;break;case X:e=at.THIRD_PARTY_JOIN_BUTTON.WECHAT_IMPRESSION}ut({trackingCode:e,activityType:rt})}onUserInfoFetch(){}onError(){}hide(){this.element.classList.add(V)}show(){this.element.classList.remove(V)}_setupGaapCallback(){window.thirdPartyCallback=(t,e)=>{if(this.gaapAuthWindow.close(),""!==e||0!==Gt({name:"email-or-phone",value:t}).length)return this.onError(this.provider),ut({trackingCode:at.THIRD_PARTY_JOIN_BUTTON.GAAP_ERROR,activityType:nt,customData:{provider:this.provider,errorContent:e}}),Promise.reject(e);const i=function(t,e){return Object(s.q)(H.sanitizeUrl(`${Object(s.l)("dust-var-callbackUrl")}${t}?handle=${e}`)).then(t=>t.responseText)}(this.provider,t).then(e=>(this.element.classList.add(V),function(t,e){const i={id:e,phoneticFirstName:"",phoneticLastName:"",displayDigitalMediaAssetUrn:"",firstName:"",lastName:"",profilePictureUrl:""};if(!t)return i;return i.phoneticFirstName=t.phoneticFirstName,i.phoneticLastName=t.phoneticLastName,i.displayDigitalMediaAssetUrn=t.displayDigitalMediaAssetUrn,i.firstName=t.firstName,i.lastName=t.lastName,i.profilePictureUrl=t.profilePictureUrl,i}(e?JSON.parse(e):e,t))).catch(t=>{let e;switch(this.onError(this.provider),this.provider){case Q:e=at.THIRD_PARTY_JOIN_BUTTON.FACEBOOK_ERROR;break;case Y:e=at.THIRD_PARTY_JOIN_BUTTON.GOOGLE_ERROR;break;case X:e=at.THIRD_PARTY_JOIN_BUTTON.WECHAT_ERROR}throw ut({trackingCode:e,activityType:nt,customData:{errorContent:t}}),t});return this.onUserInfoFetch(i),i}}_attachEventListeners(){this.element.querySelector(zt).addEventListener("click",()=>{var t;let e;switch(this.gaapAuthWindow=(t=Object(s.l)("dust-var-authUrl"),window.open(H.sanitizeUrl(t),Kt,`width=${Jt},height=${Wt}`)),this.provider){case Q:e=ot.JOIN_WITH_FACEBOOK_BUTTON;break;case Y:e=ot.JOIN_WITH_GOOGLE_BUTTON;break;case X:e=ot.JOIN_WITH_WECHAT_BUTTON}dt({controlName:e,interactionType:st})})}}const Qt=new Set(["百里","淳于","第五","東方 ","东方","東閣 ","东阁","東郭 ","东郭","東門 ","东门","端木","獨孤 ","独孤","公孫 ","公孙","公羊","公冶","公西","毌丘","穀梁 ","谷梁","賀蘭 ","贺兰","赫連 ","赫连","賀若 ","贺若","皇甫","黄斯","呼延","兰向","令狐","甪里","閭丘 ","闾丘","万俟","慕容","納蘭 ","纳兰","南宮 ","南宫","歐陽 ","欧阳","沙吒","上官","申屠","司馬 ","司马","司徒","司空","司寇","太史","澹臺 ","澹台","拓跋","完顏 ","完颜","聞人 ","闻人","巫馬 ","巫马","夏侯","鮮于 ","鲜于","西門 ","西门","軒轅 ","轩辕","楊子 ","杨子","耶律","樂正 ","乐正","尉遲 ","尉迟","宇文","長孫 ","长孙","鍾離 ","钟离","諸葛 ","诸葛","祝融","子車 ","子车","左人"]);function Yt(t){let e,i;switch(t.length){case 2:i=t.substring(0,1),e=t.substring(1);break;case 3:const s=t.substring(0,2);Qt.has(s)?(i=s,e=t.substring(2)):(i=t.substring(0,1),e=t.substring(1));break;case 4:i=t.substring(0,2),e=t.substring(2);break;default:throw new Error("Expected Real Name to be between 2-4 characters.",name)}return{firstName:e,lastName:i}}class Xt{sendFingerprint(t,e,i){const s=this.getFingerprintData(),n=new XMLHttpRequest;s["x-f-uc"]=i,s.csrf_token=e,n.open("POST",t),n.setRequestHeader("Content-type","application/json"),n.send(JSON.stringify(s))}collectInitialFingerprint(t,e,i,s){setTimeout(()=>{this.sendFingerprint(t,e,i)},s)}collectFinalFingerprint(t,e,i){return()=>{if(navigator.sendBeacon&&"undefined"!=typeof FormData){let s=this.getFingerprintData();s.csrf_token=e;let n=new FormData;n.append("x-f-uc",i);for(let t in s)s.hasOwnProperty(t)&&n.append(t,s[t]);navigator.sendBeacon(t,n)}else this.sendFingerprint(t,e,i)}}getFingerprintData(){var t={};return"undefined"!=typeof Ubba_fetch&&(t=Ubba_fetch()),t}}var Zt=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var i=arguments[e];for(var s in i)Object.prototype.hasOwnProperty.call(i,s)&&(t[s]=i[s])}return t};function te(){return Object(s.l)("dust-var-source")||null}function ee(){const t=Object(s.l)("dust-var-postOnboardingRedirectUrl");return t?{postOnboardingRedirectUrl:t}:null}function ie(){const t=Object(s.l)("dust-var-invitationId"),e=Object(s.l)("dust-var-sharedKey");return t||e?{invitationId:t,sharedKey:e}:null}function se(){let t="default";const e=new Xt;try{t=JSON.stringify(e.getFingerprintData())}catch(e){t="error while fetching the fingerprinting data : "+e}return t}function ne(t,e){return Zt({},t,e)}var re="delete me",oe="v=2&",ae={FIRST_AND_LAST_QUOTES:/^\"(.+)\"$/};class le{constructor(){if(this.registrationUrl=Object(s.l)("registrationUrl"),!this.registrationUrl)throw new Error('Document missing embed with element ID === "registrationUrl"')}sendCreateAccountRequest(t){const e=t.emailOrPhoneNumber,i=t.emailAddress,n=t.phoneNumber;i||n||(e.includes("@")?t.emailAddress=e:t.phoneNumber=e),t.emailAddress&&(t.botDetectionInput=function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Date.now().toString();if(!t)throw new Error("emailAddress is a required field in botDetectionInput");const i=()=>Math.floor(9e8*Math.random())+1e8,s=`${i()}:${i()}:${i()}`;return{nonce:s,clientTimestampParamValue:e,clientOutput:"",jsVersion:"",email:t,requestId:`${t}:${s}`}}(t.emailAddress));const r={method:"POST",headers:{"Csrf-Token":this._getCsrfTokenFromBcookie(),Accept:"*/*","Content-Type":"application/json","X-NuxSupportsCp":"on"},sendCookies:!0,skipCsrfToken:!0,postData:JSON.stringify(t)};return Object(s.q)(this.registrationUrl,r).catch(t=>this._handleError(t)).then(t=>this._handleResponse(t))}_getCsrfTokenFromBcookie(){const t=(s.o.getCookie("bcookie")||"").trim();if(t!==re)return t.replace(ae.FIRST_AND_LAST_QUOTES,"$1").replace(oe,"")}_handleError(t){if(t.response&&t.response.responseText)try{t.response.responseObj=JSON.parse(t.response.responseText)}catch(t){}throw t}_handleResponse(t){if(t.responseObj=JSON.parse(t.responseText),t.responseObj.challengeUrl){const e=new Error(`Challenge Issued with Challenge URL: ${t.responseObj.challengeUrl}`);throw e.response=t,e}return t}}const ce=".challenge-dialog",he=".challenge-dialog__close",de=".challenge-dialog__iframe";class ue{constructor(t){if(!t)throw Error("Challenge URL is required");this.complete=!1,this.challengeDialogElem=document.querySelector(ce),this.challengeIframeElem=this.challengeDialogElem.querySelector(de),this.challengeIframeElem.src=H.sanitizeUrl(t)}showChallenge(){return new Promise((t,e)=>{const i=this._handleDialogClose.bind(this,e);this._setupEventListeners(i=>{J.test(i.origin)&&i.data||e();const s=JSON.parse(i.data);"CHALLENGE_SOLVED"===s.eventId?(dt({controlName:ot.CHALLENGE_SOLVED,interactionType:st}),t(s.payload)):"CHALLENGE_FAILED"===s.eventId&&(dt({controlName:ot.CHALLENGE_FAILED,interactionType:st}),e(s.payload))},i),this.challengeIframeElem.onload=()=>{this.challengeDialogElem.style.display="",this.challengeDialogElem.focus(),document.documentElement.style.overflow="hidden",dt({controlName:ot.CHALLENGE_DIALOG,interactionType:it})}}).then(t=>(this._tearDownEventListeners(),this._cleanup(),t)).catch(t=>{throw this._tearDownEventListeners(),this._cleanup(),t})}_setupEventListeners(t,e){const i=this.challengeDialogElem.querySelector(he);i.addEventListener("click",e),window.addEventListener("message",t,!1),this._tearDownEventListeners=()=>{i.removeEventListener("click",e),window.removeEventListener("message",t,!1)}}_tearDownEventListeners(){}_cleanup(){this.complete=!0,this.challengeIframeElem.onload=null,this.challengeDialogElem.style.display="none",this.challengeIframeElem.src="about:blank",document.documentElement.style.overflow=""}_handleDialogClose(t){this.complete||t("softFail")}_getCsrfTokenFromBcookie(){return(s.o.getCookie("bcookie")||"").trim().replace("v=2&","")}}var _e="validation-failed",pe="validation-succeeded",me="account-creation-challenged",ge="account-creation-failed",fe="account-creation-succeeded",Ee="challenge-closed",be="challenge-failed",ve="challenge-succeeded",ye="split-join-form-step-change",we="third-party-profile-card-toggled";function Te(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:document.body;const i=e.querySelectorAll(t);i.length&&Array.from(i).forEach(t=>t.classList.remove(V))}function Se(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:document.body;const i=e.querySelectorAll(t);i.length&&Array.from(i).forEach(t=>t.classList.add(V))}function Le(t,e){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:document.body;const n=Oe(t,s);n&&n.setAttribute(e,i)}function Oe(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:document.body;if(t)return e.querySelector(t);console.warn(`you attempted to get an element with a falsey selector: ${t}, this is probably a bug.`)}const ke="join-form__form-input-container",Ae="join-form__form-input-container--is-hidden",Pe=["userCanceled","operationCanceled"];class Ie{constructor(t){if(!t)throw new Error("No element passed in.");var e;this.joinForm=t,this.inputs=Array.from(this.joinForm.querySelectorAll("input")),this.inputNameToErrors={},this.registrationServerClient=new le,this.isSplitJoinForm=Object(s.l)("dust-var-isSplitJoinForm"),this.isSmartLockEnabled="true"===Object(s.l)("dust-var-isSmartLockEnabled"),this.isMobile=Object(s.l)("dust-var-isMobile"),this.joinBtnProvider=Object(s.l)("dust-var-joinBtnProvider"),this._attachEventListeners(),this._initThirdPartySignup(),this.isSplitJoinForm&&this._initSplitJoinForm(),e=[this.joinForm],s.o.onload(()=>{if(window.IntersectionObserver){const t=new IntersectionObserver(ct,{threshold:1});e.forEach(e=>t.observe(e))}else ct(e)})}get inputNameToElement(){return Object.defineProperty(this,"inputNameToElement",{value:this.inputs.reduce((t,e)=>(t[e.name]=e,t),{})}),this.inputNameToElement}get isThirdPartyJoinEnabled(){return this.isSmartLockEnabled||this.joinBtnProvider}get isThirdPartyProfileCardVisible(){const t=Oe(W.PROFILE_CARD,this.joinForm);return t&&!t.classList.contains(V)}get thirdPartyAccountFields(){return{id:"",profilePictureUrl:"",firstName:"",lastName:"",phoneticFirstName:"",phoneticLastName:"",displayDigitalMediaAssetUrn:"",thirdPartyCredentials:{googleUserIdToken:"",thirdPartyProvider:""}}}get emailHandle(){const t=this.inputNameToElement["email-or-phone"],e=this.inputNameToElement["email-address"],i=t||e;let s=null;return i&&(s={input:`#${i.id}`,label:`[for="${i.id}"]`}),Object.defineProperty(this,"emailHandle",{value:s}),this.emailHandle}get location(){return this._location||window.location}set location(t){this._location=t}_attachEventListeners(){var t;this.joinForm.addEventListener("change",t=>this._handleChange(t)),this.joinForm.addEventListener("submit",t=>this._handleSubmit(t)),this.joinForm.addEventListener("invalid",t=>{t.preventDefault(),this._handleInvalidSubmit(t)},!0),this.joinForm.querySelector("[type=submit]").addEventListener("click",t=>{dt({controlName:this.isLastSplitJoinSectionVisible?ot.CONTINUE_BUTTON:ot.AGREE_AND_JOIN_BUTTON,interactionType:st})}),this.joinForm.querySelector(W.PROFILE_CARD)?(this.joinForm.querySelector(K.EDIT_ICON).addEventListener("click",()=>this._showPhotoModal()),this.joinForm.querySelector(K.EDIT_PHOTO.CANCEL_ICON).addEventListener("click",()=>this._hidePhotoModal()),this.joinForm.querySelector(K.NOT_YOU).addEventListener("click",()=>{this.location.reload(),dt({controlName:ot.PROFILE_CARD_NOT_YOU_BUTTON,interactionType:st})}),this.joinForm.querySelector(K.EDIT_PHOTO.TEXT).addEventListener("click",()=>this._removePhoto())):console.warn("Profile card element not found"),(t=this.joinForm).querySelector("div.alert").querySelector("div.wrapper").addEventListener("click",()=>{G(t),dt({controlName:ot.ERROR_ALERT_DISMISS_BUTTON,interactionType:st})})}_thirdPartyJoinErrorAlert(t){switch(t){case Q:_t(this.joinForm,Object(s.l)("i18n_third_party_join_error-message-facebook"));break;case Y:_t(this.joinForm,Object(s.l)("i18n_third_party_join_error-message-google"));break;case X:_t(this.joinForm,Object(s.l)("i18n_third_party_join_error-message-wechat"))}}_handleInvalidSubmit(){const t=this.inputs.filter(t=>this._isValidInput(t)).map(t=>(this.inputNameToErrors[t.name]||(this.inputNameToErrors[t.name]=Gt(t)),{inputName:t.name,errorMessageKeys:this.inputNameToErrors[t.name]})).filter(t=>t.errorMessageKeys.length>0);return!!t.length&&(e=this.joinForm,i=t,s.o.dispatchCustomEvent(e,_e,i),_t(this.joinForm,Object(s.l)(t[0].errorMessageKeys[0])),t.map(t=>{let e=t.inputName;return this.inputNameToElement[e]}).forEach(t=>{!function(t){t.classList.add("error")}(t)}),ut({trackingCode:at.ALERT.VALIDATION_FAILURE_ALERT,activityType:nt,inputsWithErrors:t}),!0);var e,i}_handleChange(t){const e=t.target;Mt(e)&&(e.value?e.classList.add("join-form-input__input--has-text"):e.classList.remove("join-form-input__input--has-text"),this.inputNameToErrors[e.name]=Gt(e),0===this.inputNameToErrors[e.name].length&&e.classList.remove("error"))}_handleSubmit(t){if(t.preventDefault(),G(this.joinForm),this._handleInvalidSubmit())return;if(this.isSplitJoinForm&&!this.isLastSplitJoinSectionVisible&&!this.isThirdPartyProfileCardVisible)return this._handleSplitJoinSubmit();var e;e=this.joinForm,s.o.dispatchCustomEvent(e,pe);const i=function(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i={};return Array.from(t.elements).forEach(t=>{if(Mt(t)){const e=t.name,s=t.value;s&&("real-name"===e?i=Zt({},i,Yt(s)):i[Ht[e]]=s)}}),i.source=te(),i.redirectInfo=ee(),i.invitationInfo=ie(),"enabled"===Object(s.l)("dust-var-fpLixTreatment")&&(i.fpData=se()),i=ne(e,i),i}(this.joinForm,this.thirdPartyUserInfo);this._sendCreateAccountRequest(this.joinForm,i)}_handleSplitJoinSubmit(){this._hideGoogleSmartLock(),this._hideThirdPartyJoinContainer(),this._toggleSplitJoinSection(Object(s.l)("i18n_continue"))}_resetSplitJoinForm(){this._resetThirdPartyJoin(),this._toggleSplitJoinSection(this._lastSubmitBtnText)}_resetThirdPartyJoin(){this.isSmartLockEnabled?this._showGoogleSmartLock():this.joinBtnProvider&&this._showThirdPartyJoinContainer(),this.isThirdPartyProfileCardVisible&&this._toggleProfilecard()}_toggleSplitJoinSection(t){const e=!this.isLastSplitJoinSectionVisible,i=Oe(".join-form__form-body-submit-button",this.joinForm),n=Oe(`.${ke}:not(.${Ae})`,this.joinForm),r=Oe(`.${Ae}`,this.joinForm),o=Oe('.join-form__form-body-agreement[data-is-not-yielded="true"]',this.joinForm);var a,l;o&&(o.classList[e?"add":"remove"]("join-form__form-body-agreement--is-hidden"),this._lastSubmitBtnText=i.value,i.classList[e?"add":"remove"]("join-form__form-body-submit-button--no-agreement-text"),i.value=t,H.setElementContent(i,t)),n.classList.add(Ae),r.classList.remove(Ae),this.hiddenRequiredIdList.forEach(t=>Le(t,$,"required",this.joinForm)),r.querySelector("input").focus(),this.isLastSplitJoinSectionVisible=e,a=this.joinForm,l=e?1:0,s.o.dispatchCustomEvent(a,ye,{splitJoinStepNum:l})}_isValidInput(t){const e=Mt(t);if(!this.isSplitJoinForm)return e;let i=t.parentNode;for(;!i.classList.contains(ke);)i=i.parentNode;return e&&!i.classList.contains(Ae)}_getRequiredElemNames(){const t=["first-name","last-name"];let e=[];return this.inputs.forEach(i=>{i.hasAttribute("required")&&("real-name"===i.name?e=e.concat(t):e.push(i.name))}),e}_sendCreateAccountRequest(t,e){return function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};t.length&&t.forEach(t=>{const i=Ht[t];if(!i||!e[i])throw new Error(i?`Missing required field ${i}.`:`No mapping exists for inputs named ${t}`)})}(this._getRequiredElemNames(),e),this.registrationServerClient.sendCreateAccountRequest(e).then(e=>{!function(t,e){s.o.dispatchCustomEvent(t,fe,e)}(t,e.responseObj),Object(s.l)("dust-var-cancelOnboardingRedirect")||H.redirect(e.responseObj&&e.responseObj.redirectUrl||"/"),ut({trackingCode:at.JOIN_REQUEST.JOIN_REQUEST_SUCCESS,activityType:nt})}).catch(i=>{const n=(i.response||{}).responseObj||{};n.challengeUrl?(!function(t,e){s.o.dispatchCustomEvent(t,me,e)}(t,n),new ue(n.challengeUrl).showChallenge().then(i=>{!function(t){s.o.dispatchCustomEvent(t,ve)}(t),e.submissionId=n.submissionId,e.resolvedChallengeUrl=i,e.requestSignature=n.requestSignature,this._sendCreateAccountRequest(t,e)}).catch(e=>{"softFail"===e?function(t){s.o.dispatchCustomEvent(t,Ee)}(t):function(t,e){s.o.dispatchCustomEvent(t,be,e)}(t,e),_t(this.joinForm,Object(s.l)("i18n_server_generic_error"))})):(!function(t,e){s.o.dispatchCustomEvent(t,ge,e)}(t,n),_t(this.joinForm,n.translatedMessage),this.isSplitJoinForm&&!this.isThirdPartyProfileCardVisible?this._resetSplitJoinForm():this._resetThirdPartyJoin()),function(t,e){if(ut({trackingCode:at.JOIN_REQUEST.JOIN_REQUEST_FAILURE,activityType:nt,customData:t}),!e)return;const i=e.thirdPartyProvider;var s,n=nt;switch(i){case Q:s=at.JOIN_REQUEST.JOIN_REQUEST_FAILURE_WITH_FACEBOOK;break;case Y:s=at.JOIN_REQUEST.JOIN_REQUEST_FAILURE_WITH_GOOGLE;break;default:s=at.JOIN_REQUEST.JOIN_REQUEST_FAILURE_WITH_GOOGLE_ONE_TAP}ut({activityType:n,trackingCode:s})}(n,e.thirdPartyCredentials)})}_initThirdPartySignup(){this.isSmartLockEnabled?this._initSmartLock():this.joinBtnProvider&&(this.thirdPartyJoinButton=this._initThirdPartyJoinButton())}_initSmartLock(){return new Promise((t,e)=>{if(window.googleyolo)return t(window.googleyolo);const i=Object(s.l)("dust-var-smartLockScript");if(i){const s=document.createElement("script"),n=document.getElementsByTagName("script")[0];s.onerror=e,s.src=H.sanitizeUrl(i),n.parentNode.insertBefore(s,n),window.onGoogleYoloLoad=e=>(e.setTimeouts(15e3),this._renderGoogleSmartLock(e),t(e))}})}_renderGoogleSmartLock(t){t.hint({supportedAuthMethods:["https://accounts.google.com"],supportedIdTokenProviders:[{uri:"https://accounts.google.com",clientId:"990339570472-k6nqn1tpmitg8pui82bfaun3jrpmiuhs.apps.googleusercontent.com"}],context:"signUp"}).catch(t=>{this.joinBtnProvider&&!Pe.includes(t.type)&&(this.thirdPartyJoinButton=this._initThirdPartyJoinButton()),function(t){var e,i=rt;if("userCanceled"==t)dt({controlName:ot.GOOGLE_ONE_TAP_CLOSE_BUTTON,interactionType:st});else{switch(t){case"operationCanceled":i=nt,e=at.GOOLE_ONE_TAP.GOOGLE_ONE_TAP_SIGNUP_IGNORED;break;case"noCredentialsAvailable":e=at.GOOLE_ONE_TAP.GOOGLE_ONE_TAP_NO_ACCOUNT;break;case"requestFailed":e=at.GOOLE_ONE_TAP.GOOGLE_ONE_TAP_REQUEST_FAIL_ERROR;break;case"illegalConcurrentRequest":e=at.GOOLE_ONE_TAP.GOOGLE_ONE_TAP_ILLEGAL_REQUEST_ERROR;break;case"initializationError":e=at.GOOLE_ONE_TAP.GOOGLE_ONE_TAP_INITIALIZATION_ERROR;break;case"configurationError":e=at.GOOLE_ONE_TAP.GOOGLE_ONE_TAP_CONFIGURATION_ERROR;break;default:e=at.GOOLE_ONE_TAP.GOOGLE_ONE_TAP_ERROR}ut({activityType:i,trackingCode:e})}}(t.type)}).then(t=>{t&&(this._parseThirdPartyUserInfo(t),this.renderUserDetails(),dt({controlName:ot.GOOGLE_ONE_TAP_SIGNUP_BUTTON,interactionType:st}))})}_initSplitJoinForm(){const t=Array.from(this.joinForm.querySelectorAll(`.${Ae} input[required]`));this.hiddenRequiredIdList=t.map(t=>`#${t.id}`),t.forEach(t=>{t.removeAttribute("required")})}_initThirdPartyJoinButton(){if(this.isLastSplitJoinSectionVisible)return;const t=new $t(document.querySelector(Vt));return t.onError=t=>this._thirdPartyJoinErrorAlert(t),t.onUserInfoFetch=t=>{t.then(t=>{t&&(this._parseThirdPartyUserInfo(t),this.renderUserDetails())})},t}_parseThirdPartyUserInfo(t){if(this.thirdPartyUserInfo=this.thirdPartyAccountFields,t.displayName){const e=t.displayName.split(" ");t.firstName=e[0],t.lastName=e.length>1?e[1]:"",t.profilePictureUrl=t.profilePicture,t.thirdPartyCredentials={googleUserIdToken:t.idToken}}else t.thirdPartyCredentials={thirdPartyProvider:this.joinBtnProvider};Object.keys(this.thirdPartyAccountFields).forEach(e=>{t[e]&&(this.thirdPartyUserInfo[e]=t[e])})}renderUserDetails(){let t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];var e=this.thirdPartyUserInfo;const i=e.phoneticFirstName,s=e.phoneticLastName,n=e.firstName,r=e.lastName,o=e.id,a=e.profilePictureUrl;let l;this._setPropertyValue(W.FIRST_NAME_INPUT,n),this._setPropertyValue(W.LAST_NAME_INPUT,r),this._setPropertyValue(W.PHONETIC_FIRST_NAME_INPUT,i),this._setPropertyValue(W.PHONETIC_LAST_NAME_INPUT,s),this.emailHandle&&(this._setPropertyValue(this.emailHandle.input,o),l=Oe(this.emailHandle.input,this.joinForm),this.inputNameToErrors[l.name]=Gt(l)),(n&&r&&o&&l&&!this.inputNameToErrors[l.name].length||t&&a)&&(this._toggleProfilecard(),this.inputNameToElement.password.focus())}_renderProfilecard(){var t=this.thirdPartyUserInfo;const e=t.profilePictureUrl,i=t.firstName,s=t.lastName,n=t.id;Le(K.PHOTO,z,e,this.joinForm),e||(Se(K.PHOTO,this.joinForm),Se(K.EDIT_ICON,this.joinForm)),i&&s&&(Oe(K.NAME,this.joinForm).innerText=`${i} ${s}`),n&&(Oe(K.EMAIL,this.joinForm).innerText=n)}_toggleProfilecard(){var t,e;this.isThirdPartyProfileCardVisible?(Se(W.PROFILE_CARD,this.joinForm),this._showFieldsForThirdPartyProfileCard()):(G(this.joinForm),Te(W.PROFILE_CARD,this.joinForm),this._hideFieldsForThirdPartyProfileCard(),this._renderProfilecard()),t=this.joinForm,e=this.isThirdPartyProfileCardVisible,s.o.dispatchCustomEvent(t,we,{isProfileCardVisible:e})}_hideFieldsForThirdPartyProfileCard(){var t=this.thirdPartyUserInfo;const e=t.firstName,i=t.lastName,s=t.id;this.emailHandle&&s&&(Se(this.emailHandle.input,this.joinForm),Se(this.emailHandle.label,this.joinForm),function(t,e){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:document.body;const s=Oe(t,i);s&&s.removeAttribute(e)}(this.emailHandle.input,$,this.joinForm)),!this.isSplitJoinForm&e&&i&&(Se(W.FIRST_NAME_INPUT,this.joinForm),Se(W.FIRST_NAME_LABEL,this.joinForm),Se(W.LAST_NAME_INPUT,this.joinForm),Se(W.LAST_NAME_LABEL,this.joinForm))}_showFieldsForThirdPartyProfileCard(){this.emailHandle&&(Te(this.emailHandle.input,this.joinForm),Te(this.emailHandle.label,this.joinForm),Le(this.emailHandle.input,$,"required",this.joinForm)),this.isSplitJoinForm||(Te(W.FIRST_NAME_INPUT,this.joinForm),Te(W.FIRST_NAME_LABEL,this.joinForm),Te(W.LAST_NAME_INPUT,this.joinForm),Te(W.LAST_NAME_LABEL,this.joinForm))}_showGoogleSmartLock(){this.isSmartLockEnabled&&this._renderGoogleSmartLock(window.googleyolo)}_hideGoogleSmartLock(){this.isSmartLockEnabled&&window.googleyolo&&window.googleyolo.cancelLastOperation()}_showThirdPartyJoinContainer(){this.joinBtnProvider&&this.thirdPartyJoinButton&&this.thirdPartyJoinButton.show()}_hideThirdPartyJoinContainer(){this.joinBtnProvider&&this.thirdPartyJoinButton&&this.thirdPartyJoinButton.hide()}_setPropertyValue(t,e){const i=Oe(t,this.joinForm);i&&e&&(i.value=e)}_showPhotoModal(){Te(K.EDIT_PHOTO.MODAL,this.joinForm)}_hidePhotoModal(){Se(K.EDIT_PHOTO.MODAL,this.joinForm)}_removePhoto(){this._hidePhotoModal(),Le(K.PHOTO,z,"",this.joinForm),Se(K.PHOTO,this.joinForm),Se(K.EDIT_ICON,this.joinForm),this.thirdPartyUserInfo.profilePictureUrl="",dt({controlName:ot.DELETE_PHOTO_BUTTON,interactionType:st})}}window.tracking&&window.tracking.then(t=>{Object(s.m)(t).trackPageView()});var Ce=document.querySelector(".global-alert");Ce&&new s.a(Ce);var Ne=document.querySelector(".sign-in-card");Ne&&new s.h(Ne),new s.c(document.querySelector(".language-selector"));var Re=document.querySelector(".search");Re&&new n(Re);var xe=document.querySelector(".qualaroo");xe&&new s.d(xe),[...document.querySelectorAll(".etta-see-more-less-list")].forEach(t=>new s.f(t));var Be=document.querySelector(".recent-searches");Be&&new r(Be);var Fe=document.querySelector(".slide-list");Fe&&new s.i(Fe);var Ue=document.querySelector(".dropdown");if(Ue){new s.b(Ue);var je=document.querySelector(".dropdown--mobile");je&&new o(je)}var qe=document.querySelector(".join-form");qe&&new Ie(qe)}]);