!function(e){var t={};function i(n){if(t[n])return t[n].exports;var s=t[n]={i:n,l:!1,exports:{}};return e[n].call(s.exports,s,s.exports,i),s.l=!0,s.exports}i.m=e,i.c=t,i.d=function(e,t,n){i.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},i.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},i.t=function(e,t){if(1&t&&(e=i(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(i.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var s in e)i.d(n,s,function(t){return e[t]}.bind(null,s));return n},i.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return i.d(t,"a",t),t},i.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},i.p="",i(i.s=7)}([function(e,t,i){"use strict";(function(e){function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t,i){return t in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}var o;i.d(t,"a",(function(){return Pe})),i.d(t,"b",(function(){return Z})),i.d(t,"c",(function(){return se})),i.d(t,"d",(function(){return ie})),i.d(t,"e",(function(){return De})),i.d(t,"f",(function(){return bi})),i.d(t,"g",(function(){return ot})),i.d(t,"h",(function(){return ne})),i.d(t,"i",(function(){return pi})),i.d(t,"j",(function(){return ai})),i.d(t,"k",(function(){return _e})),i.d(t,"l",(function(){return vi})),i.d(t,"m",(function(){return ve})),i.d(t,"n",(function(){return ke})),i.d(t,"o",(function(){return Gt})),i.d(t,"p",(function(){return R})),i.d(t,"q",(function(){return K})),i.d(t,"r",(function(){return A})),i.d(t,"s",(function(){return $})),i.d(t,"t",(function(){return qi}));var r,a,l,c={ADVERTISING:"ADVERTISING",ANALYTICS_AND_RESEARCH:"ANALYTICS_AND_RESEARCH",FUNCTIONAL:"FUNCTIONAL"},h="GUEST",d="MEMBER",u=0,p=1,g=2,m=(s(o={},h,"li_gc"),s(o,d,"li_mc"),o),_=function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;for(var r in n(this,e),t=t||{},this.consentAvailable=!1,this.issuedAt=i,this.userMode=s,this.optedInConsentMap={},c)t[r]=t[r]||u,t[r]!==u&&(this.consentAvailable=!0),this.optedInConsentMap[r]=t[r]===p||t[r]===u&&o===p},f=(r=[c.ADVERTISING,c.ANALYTICS_AND_RESEARCH,c.FUNCTIONAL],a=[u,p,g,u],l=new RegExp(["^(\\d+)","(\\d+)","(\\d+)","((?:.|\\s)+)"].join(";")),{parseConsentBody:function(e,t){var i=e.match(l);if(!i)return{error:"Invalid consent body encoding",consent:new _};for(var n=parseInt(i[1],10),s={},o=0;o<r.length;o++)s[r[o]]=a[n>>2*o&3];var c=new Date(1e3*parseInt(i[2],10)),h=parseInt(i[3],10),d=u;return h>=0&&h<=3&&(d=a[h]),{error:null,consent:new _(s,c,t,d)}}}),E=new RegExp(["^(\\d+)","((?:.|\\s)+)"].join(";")),b=function(e,t){var i=t.match(new RegExp("(?:^|; *)".concat(e,"=([^;]*)")));if(i&&i.length>1)return i[1]},v=function(e,t){var i=b(m[e],t);return i?y(i,e):b(m[h],t)||b(m[d],t)?w(g):w(p)},w=function(e){var t={};for(var i in c)t[i]=e;return{error:null,consent:new _(t,null,null,e)}},y=function(e,t){var i=atob(e).match(E);if(!i)return{error:"Invalid consent encoding",consent:new _};var n=parseInt(i[1],10),s=i[2];switch(n){case 1:return f.parseConsentBody(s,t);default:return{error:"Invalid encoded consent version ".concat(n),consent:new _}}},T=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:document.cookie;return e||(e="true"===b("liap",t)?b(m[d],t)?d:h:b(m[h],t)?h:d),v(e,t)};window.encodeURIComponent;function S(e){let t=e.querySelector('meta[name="pageKey"]');return t?t.content+"_jsbeacon":""}function I(e){let t=e.querySelector('meta[name="linkedin:pageTag"]');return t&&t.content||""}function L(e){let t=e.querySelector('meta[name="locale"]');return t&&t.content||""}function O(e){let t=e.domain;return t?t.split(".").slice(-2).join("."):""}function k(e){return e&&'"'===e.charAt(0)&&'"'===e.charAt(e.length-1)?e.slice(1,-1):e}var A=Object.freeze({__proto__:null,getPageKey:S,getPageTag:I,getLocale:L,getDomain:O,trimDoubleQuotes:k});const C={ARROW_DOWN:"ArrowDown",ARROW_LEFT:"ArrowLeft",ARROW_RIGHT:"ArrowRight",ARROW_UP:"ArrowUp",ESCAPE:"Escape",ENTER:"Enter",SPACEBAR:" ",TAB:"Tab"},P={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 N(e){return P[e]||e}var R=Object.freeze({__proto__:null,KEYS:C,normalizeKeyBoardEventKey:N});function x(e,t){if(!e)return null;let i=e.matches||e.webkitMatchesSelector||e.mozMatchesSelector||e.msMatchesSelector;for(;e&&!i.call(e,t);)e=e.parentElement;return e}function F(e){"complete"===document.readyState?e():window.addEventListener("load",()=>{setTimeout(e)})}function U(e){return null==e||"object"!=typeof e?[]:Array.prototype.slice.call(e)}function D(e){const t=e.getBoundingClientRect(),i=window.innerHeight||document.documentElement.clientHeight,n=window.innerWidth||document.documentElement.clientWidth,s=t.top<=i&&t.top+t.height>=0,o=t.left<=n&&t.left+t.width>=0;return s&&o}function B({scrollTop:e=scrollY,clientHeight:t=window.innerHeight,scrollHeight:i=document.body.scrollHeight}={},n=0){return e>=i-(t+t*n)}function q(e,t,i){const n=new RegExp("([\\?&])".concat(i?t:encodeURIComponent(t),"=([^&#]*)")).exec(e);return n&&(i?n[2]:decodeURIComponent(n[2]))}function j(e,t,i,n){if(!e||!t)throw new Error("Required param of addQueryParam missing: url = ".concat(e,",  key = ").concat(t));t=encodeURIComponent(t),i=encodeURIComponent(i);const s=q(e,t,!0);if(s)return n?e.replace(s,i):e;{const n=e.indexOf("?");let[s,o]=e.split("#"),r="&";return n<0?r="?":n===e.length-1&&(r=""),o&&(o="#".concat(o)),"".concat(s).concat(r).concat(t,"=").concat(i).concat(o||"")}}function M(e,t,i){if("function"!=typeof e)throw new TypeError("Expected a function.");let n;return(...s)=>{const o=i&&!n;clearTimeout(n),n=setTimeout(()=>{n=null,i||e.apply(this,s)},t),o&&e.apply(this,s)}}function H(e){const t=document.cookie.match(new RegExp("(^| )"+e+"=([^;]+)"));return t&&t[2]}function G(e,t,i={}){const n=document.createEvent("CustomEvent");n.initCustomEvent(t,!0,!0,i),e.dispatchEvent(n)}function J(){let e,t;const i=new Promise((i,n)=>{e=i,t=n});return i.resolve=e,i.reject=t,i}var K=Object.freeze({__proto__:null,closest:x,onload:F,makeArray:U,outerWidth:function(e){let t=e.offsetWidth,i=getComputedStyle(e);return t+=(parseInt(i.marginLeft,10)||0)+(parseInt(i.marginRight,10)||0),t},elementInViewport:D,hasElementScrolledToThreshold:B,getQueryParam:q,addTrackingCode:function(e,t){return j(e,"trk",t)},addQueryParam:j,debounce:M,getCookie:H,dispatchCustomEvent:G,getDeferredPromise:J,isDocumentHidden:function(e){return void 0!==e.msHidden?e.msHidden:void 0!==e.hidden?e.hidden:void 0}});class V{constructor(e,t,{mainButton:i,closeButton:n},s={}){if(!e)throw Error("An element must be provided to Collapsible");if(!t)throw Error("An expandable element must be provided to Collapsible");if(!i)throw Error("A main button element must be provided to Collapsible");this.el=e,this.expandableEl=t,this._isList=["UL","OL","DL"].includes(this.expandableEl.tagName);const{isOpen:o=!1}=s;this.isOpen=o,this.mainButton=i,this.closeButton=n,this.buttons=[i],this._isList&&this.el.addEventListener("keyup",e=>this._onKeyUp(e)),this.expandableEl.addEventListener("keydown",e=>this._onKeyDown(e)),this.mainButton.addEventListener("click",e=>this.closeButton?this._open(e):this._toggle(e)),this.mainButton.addEventListener("keydown",e=>this._onButtonKeyDown(e)),this.closeButton&&(this.closeButton.addEventListener("click",()=>this.close()),this.closeButton.addEventListener("keydown",e=>this._onButtonKeyDown(e)),this.buttons.push(this.closeButton))}get isList(){return this._isList}_toggle(e){this.isOpen?this.close():this._open(e)}_onButtonKeyDown(e){switch(N(e.key)){case C.ENTER:case C.SPACEBAR:e.preventDefault(),this.isOpen?this.close():this._open(e);break;case C.ARROW_UP:this.isOpen||this._open(e);break;case C.ARROW_DOWN:this.isOpen&&this.close()}}_onKeyUp(e){N(e.key)===C.SPACEBAR&&e.preventDefault()}_onKeyDown(e){const t=N(e.key);if(t===C.ESCAPE&&this.isOpen)this.close();else if(this._isList){let i;switch(t){case C.SPACEBAR:G(e.target,"click");break;case C.ARROW_LEFT:case C.ARROW_UP:i=x(e.target,"li");let t=i.previousElementSibling;t&&G(t,"focusEl");break;case C.ARROW_RIGHT:case C.ARROW_DOWN:i=x(e.target,"li");let n=i.nextElementSibling;n&&G(n,"focusEl")}}}_open(e={}){if(!this.isOpen){const{key:t}=e;this.isOpen=!0,this.buttons.forEach(e=>e.setAttribute("aria-expanded",this.isOpen)),G(this.el,"open",{key:t})}}close({shouldReturnFocusToTrigger:e=!0}={}){this.isOpen&&(this.isOpen=!1,this.buttons.forEach(e=>e.setAttribute("aria-expanded",this.isOpen)),G(this.el,"close"),e&&this.mainButton.focus())}}const W=['a[href]:not([tabindex^="-"])','area[href]:not([tabindex^="-"])','input:not([disabled]):not([tabindex^="-"]):not([type="hidden"])','select:not([disabled]):not([tabindex^="-"])','textarea:not([disabled]):not([tabindex^="-"])','button:not([disabled]):not([tabindex^="-"])','[tabindex]:not([tabindex^="-"]):not([disabled])'].join(",");function z(e){const t=window.getComputedStyle(e);return"hidden"===t.visibility||"none"===t.display}function Y(e,t=document.documentElement,i){if(e===t)return!z(e);if(i&&i.get(e))return i.get(e);let n;return z(e)?n=!1:e.parentNode&&(n=Y(e.parentNode,t,i)),i&&i.set(e,n),n}const Q=".".concat("collapsible-dropdown","__list"),X=".".concat("collapsible-dropdown","__button");class Z{constructor(e,{getFocusItemFromListItem:t=(e=>e.querySelector(W)),elementToFocus:i,dropdownTriggerEl:n,dropdownContentEl:s}={}){if(!e)throw Error("An element must be provided to CollapsibleDropdown");if(this.el=e,this.dropdownContentEl=s||this.el.querySelector(Q),!i){const e=this.dropdownContentEl===this.dropdownContentEl.parentElement.querySelector(W),t="-1"===this.dropdownContentEl.getAttribute("tabIndex");e||t||console.warn('elementToFocus not provided and the dropdown container is not focusable. Consider adding tabindex="-1" to:',this.dropdownContentEl)}this.elementToFocus=i||this.dropdownContentEl,this.dropdownTriggerEl=n||this.el.querySelector(X),this.hideClass="hidden",this.collapsible=new V(e,this.dropdownContentEl,{mainButton:this.dropdownTriggerEl}),this._handleBodyClick=this._handleBodyClick.bind(this),this._focusOutsideDropdown=this._focusOutsideDropdown.bind(this),this._leaveWindow=this._leaveWindow.bind(this),this._attachEventListeners(),this.collapsible.isList&&(this._getFocusItemFromListItem=t)}_attachEventListeners(){this.el.addEventListener("open",e=>this._showDropdownList(e)),this.el.addEventListener("close",()=>this._hideDropdownList()),this.collapsible.isList&&this.dropdownContentEl.addEventListener("focusEl",e=>this._manageFocus(e))}_manageFocus(e){const{target:t}=e;if(t&&this._getFocusItemFromListItem){const e=this._getFocusItemFromListItem(t);e&&e.focus()}}_handleBodyClick(e){this.el.contains(e.target)||this.collapsible.close({shouldReturnFocusToTrigger:!1})}_showDropdownList(e){this.el.addEventListener("focusout",this._focusOutsideDropdown),window.addEventListener("blur",this._leaveWindow),this.dropdownContentEl.classList.remove(this.hideClass),this.elementToFocus.focus();const{key:t}=e&&e.detail;t?this.elementToFocus.classList.remove("no-focus-ring"):this.elementToFocus.classList.add("no-focus-ring"),document.addEventListener("mousedown",this._handleBodyClick)}_hideDropdownList(){document.removeEventListener("mousedown",this._handleBodyClick),this.el.removeEventListener("focusout",this._focusOutsideDropdown),window.removeEventListener("blur",this._leaveWindow),this.dropdownContentEl.classList.add(this.hideClass)}_focusOutsideDropdown(e){e.relatedTarget&&!this.el.contains(e.relatedTarget)&&this.collapsible.isOpen&&this.collapsible.close()}_leaveWindow(){this.collapsible.isOpen&&this.collapsible.close()}}function $(e,{method:t="GET",headers:i={},sendCookies:n=!0,skipCsrfToken:s=!1,postData:o}={}){return new Promise((r,a)=>{const l=new XMLHttpRequest;if(l.addEventListener("load",(function(){if(l.status>=200&&l.status<300||304===l.status)r({status:l.status,responseText:l.responseText});else{const i=new Error("".concat(t," request for ").concat(e," has failed with status code ").concat(l.status));i.response={status:l.status,responseText:l.responseText},a(i)}})),l.addEventListener("error",(function(e){a(e)})),l.open(t,e,!0),l.withCredentials=n,Object.keys(i).forEach(e=>{l.setRequestHeader(e,i[e])}),!s){const e=H("JSESSIONID");e&&l.setRequestHeader("Csrf-Token",k(e))}l.send(o)})}const ee=".".concat("language-selector__link"),te="".concat(ee,"--selected");class ie{constructor(e){if(!e)throw Error("An element must be provided to LanguageSelector");this._el=e,this.listEl=this._el.querySelector(".collapsible-dropdown__list"),this.dropdownTriggerEl=this._el.querySelector(".language-selector__button"),this.currentListItem=this.listEl.querySelector(te),this.collapsibleDropdown=new Z(e,{dropdownTriggerEl:this.dropdownTriggerEl,elementToFocus:this.currentListItem}),this._attachCustomEventListeners()}_attachCustomEventListeners(){this.listEl.addEventListener("click",this._handleLocaleButtonClick.bind(this))}_handleLocaleButtonClick(e){return function(e){const t=k(H("bcookie")||""),i=function(e){let t="";return e.indexOf("linkedin.cn")>-1?t="https://www.linkedin.cn":e.indexOf("linkedin-ei.cn")>-1?t="https://www.linkedin-ei.cn":e.indexOf("linkedin-ei.com")>-1?t="https://www.linkedin-ei.com":e.indexOf("linkedin.com")>-1&&(t="https://www.linkedin.com"),t}(O(document));return $("".concat(i,"/psettings/update-language/cors?csrfToken=").concat(encodeURIComponent(t)),{method:"POST",headers:{"Content-Type":"application/json"},postData:JSON.stringify({locale:e}),skipCsrfToken:!0})}(e.target.getAttribute("data-locale")).then(()=>{location.reload()})}}class ne{constructor(e,t=".see-more-less-list__list",i="see-more-less-list__list-item",n){if(!e)throw Error("An element must be provided to SeeMoreLessList");this.el=e,this.listSelector=t,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,n&&(this.currentItemEl=this.listEl.querySelector(n)),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",e=>{N(e.key)===C.SPACEBAR&&e.preventDefault()})}_handleCheckboxStateChange(){this.stateCheckbox.checked?this._handleFocusAtOpen():this._handleFocusAtCLose(),Object.keys(this.stateLabels).forEach(e=>{this.stateLabels[e].setAttribute("aria-expanded",this.stateCheckbox.checked)})}_handleFocusAtOpen(){this.currentItemEl?this.currentItemEl.focus():this.stateLabels.showLess.focus()}_handleFocusAtCLose(){this.stateLabels.showMore.focus()}_checkboxStateChange(e){this.stateCheckbox.checked=e,this._handleCheckboxStateChange()}_handleKeydownNavEvents(e){switch(N(e.key)){case C.ENTER:case C.SPACEBAR:e.target.classList.contains("show-more-less-state__label")&&(e.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&&e.target.classList.contains(this.listItemClass)){let t=e.target.parentNode.previousSibling;t&&t.firstChild.focus()}break;case C.ARROW_RIGHT:if(this.stateCheckbox.checked&&e.target.classList.contains(this.listItemClass)){let t=e.target.parentNode.nextSibling;t&&t.firstChild.focus()}}}}class se extends ne{constructor(e,t="dropdown__link",i=".dropdown__link"){if(!e)throw Error("An element must be provided to Dropdown");super(e,".dropdown__list",t,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",e=>{"Tab"===e.key&&this._handleTab(e)})}_handleBodyClick(e){this.stateCheckbox.checked&&e.target!==this.el&&!this.el.contains(e.target)&&this._checkboxStateChange(!1)}_handleTab(e){(this.listLastChild.contains(e.target)&&!e.shiftKey||this.listFirstChild.contains(e.target)&&e.shiftKey)&&this._checkboxStateChange(!1)}}var oe="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==e?e:"undefined"!=typeof self?self:{};function re(e,t){return e(t={exports:{}},t.exports),t.exports}parseInt;var ae="object"==typeof oe&&oe&&oe.Object===Object&&oe,le="object"==typeof self&&self&&self.Object===Object&&self;ae||le||Function("return this")(),Object.prototype.toString,Math.max,Math.min;"".concat(".member-nav-menu","__button");var ce=re((function(e,t){!function(e){"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==oe||"undefined"!=typeof self&&self;var t,i,n,s,o=function(e,t){return e(t={exports:{}},t.exports),t.exports}((function(e,t){!function(e,t){var i="undefined"!=typeof window&&window&&"node"!==window.appEnvironment,n=i&&!!window.requestIdleCallback,s={AJAX_METHOD:"POST",DEFAULT_PAGE_TYPE:"ajax",globalTrackingUrl:null,globalTrackingAppId:"no.app.id",queue:[],paused:!1,maxQueueSize:1,queueTimeout:1e3,timeoutId:null,disableSendBeacon:!0,csrfToken:"",testId:"",testSegId:"",setProperty:function(e,t){void 0!==t&&(this[e]=t)},setTrackingUrl:function(e){this.setProperty("globalTrackingUrl",e)},setAppId:function(e){this.setProperty("globalTrackingAppId",e)},setCsrfToken:function(e){this.setProperty("csrfToken",e)},setTestId:function(e){this.setProperty("testId",e)},setTestSegId:function(e){this.setProperty("testSegId",e)},getCookieString:function(){return document.cookie},getCsrfToken:function(){for(var e=this.getCookieString().split(";"),t=0;t<e.length;t++){for(var i=e[t];" "===i.charAt(0);)i=i.substring(1);if(-1!==i.indexOf("JSESSIONID=")){var n=i.substring("JSESSIONID=".length,i.length);return'"'===n[0]&&'"'===n[n.length-1]&&(n=n.substring(1,n.length-1)),n}}return""},createXmlHttpObject:function(){return i&&window.XMLHttpRequest?new XMLHttpRequest:null},beacon:function(e,t,n,s){this._beacon(e,t,n,s||this.globalTrackingUrl,this.disableSendBeacon?null:i&&navigator.sendBeacon&&navigator.sendBeacon.bind(navigator))},_beacon:function(e,t,i,n,s){if(s){var o=void 0;try{o=s(n,e)}catch(t){throw"object"==typeof t&&(t.message="Error sending ["+e+"] to "+n+" using sendBeacon:"+t.message,t.tags=["tracking"]),t}if(o)return void(t&&t(o))}this.ajax(e,t,i,n)},ajax:function(e,t,i,n){var s;n?(s=this.createXmlHttpObject())&&(s.open(this.AJAX_METHOD,n,!0),s.withCredentials=!0,s.setRequestHeader("Content-type","application/json"),this.csrfToken?s.setRequestHeader("Csrf-Token",this.csrfToken):s.setRequestHeader("Csrf-Token",this.getCsrfToken()),this.testId&&s.setRequestHeader("X-LinkedIn-traceDataContext-ENG_TEST_ID",this.testId),this.testSegId&&s.setRequestHeader("X-LinkedIn-traceDataContext-ENG_TEST_SEGMENT_ID",this.testSegId),s.onreadystatechange=function(){4===s.readyState&&(200===s.status||304===s.status?"function"==typeof t&&t(s):i&&i('Response is not "OK" or "Not Modified" for tracking request'))},4!==s.readyState&&s.send(e)):i&&i("Tracking url is not defined")},pause:function(){this.paused=!0},unpause:function(){this.paused=!1,this.queue.length>=this.maxQueueSize&&this.flush()},flush:function(){this.queue.length>0&&(this.beacon(JSON.stringify(this.queue),null,this.logError),this.queue=[]),n?cancelIdleCallback(this.timeoutId):clearTimeout(this.timeoutId),this.timeoutId=null,this.paused=!1},idleFlush:function(e){var t=this,i=Date.now();return requestIdleCallback((function(n){n.timeRemaining()>8||n.didTimeout?t.flush():t.timeoutId=t.idleFlush(e-(Date.now()-i))}),{timeout:e})},addToQueue:function(e){if(this.queue.push(e),this.queue.length>=this.maxQueueSize&&!this.paused)return this.flush();if(!this.timeoutId){var t=this;n&&!this.paused?this.timeoutId=this.idleFlush(this.queueTimeout):this.timeoutId=setTimeout((function(){t.flush()}),this.queueTimeout)}},validateEvent:function(e,t,i){this.beacon(JSON.stringify([{eventInfo:this.populateEventInfo(e),eventBody:this.populateEventHeaders(t)}]),(function(e){return i(null,e)}),(function(e){return i(e)}),this.globalTrackingUrl+"/validate")},sendEvent:function(e,t){this.addToQueue({eventInfo:this.populateEventInfo(e),eventBody:this.populateEventHeaders(t)})},getTimestamp:function(){return Math.round((new Date).getTime()/1e3)},populateEventInfo:function(e){return"string"==typeof e&&(e={eventName:e}),e&&"object"==typeof e?(e.appId||(e.appId=this.globalTrackingAppId),e):(this.logError("Event info must be object"),{})},populateEventHeaders:function(e){return e&&"object"==typeof e?e:(this.logError("Event body must be object"),{})},logError:function(e){var t=window.console;t&&t.error&&t.error(e)},init:function(){this.setTrackingUrl(),this.setAppId(),this.onBeforeUnload=this.onBeforeUnload.bind(this),i&&window.addEventListener("beforeunload",this.onBeforeUnload)},destroy:function(){this.flush(),i&&window.removeEventListener("beforeunload",this.onBeforeUnload)},onBeforeUnload:function(){this.flush()}};t.exports=s}(0,e)}));function r(){if("undefined"!=typeof window&&void 0!==window.sessionStorage)try{return JSON.parse(window.sessionStorage.getItem("li_trk_navigation"))}catch(e){}}function a(e){if("undefined"!=typeof window&&void 0!==window.sessionStorage)try{window.sessionStorage.setItem("li_trk_navigation",JSON.stringify(e))}catch(e){}}(s=e.ControlInteractionType||(e.ControlInteractionType={}))[s.FOCUS=0]="FOCUS",s[s.UNFOCUS=1]="UNFOCUS",s[s.KEYBOARD_SUBMIT=2]="KEYBOARD_SUBMIT",s[s.DRAG=3]="DRAG",s[s.PINCH_OPEN=4]="PINCH_OPEN",s[s.PINCH_CLOSE=5]="PINCH_CLOSE",s[s.DOUBLE_PRESS=6]="DOUBLE_PRESS",s[s.LONG_PRESS=7]="LONG_PRESS",s[s.SHORT_PRESS=8]="SHORT_PRESS",s[s.SWIPE_UP=9]="SWIPE_UP",s[s.SWIPE_DOWN=10]="SWIPE_DOWN",s[s.SWIPE_LEFT=11]="SWIPE_LEFT",s[s.SWIPE_RIGHT=12]="SWIPE_RIGHT",s[s.FLICK_UP=13]="FLICK_UP",s[s.FLICK_DOWN=14]="FLICK_DOWN",s[s.FLICK_LEFT=15]="FLICK_LEFT",s[s.FLICK_RIGHT=16]="FLICK_RIGHT",s[s.SHAKE=17]="SHAKE",s[s.KEYBOARD_NEXT=18]="KEYBOARD_NEXT",s[s.HOVER=19]="HOVER",(n=e.PageViewPageType||(e.PageViewPageType={}))[n.FULL=1]="FULL",n[n.AJAX=2]="AJAX",n[n.IFRAME=3]="IFRAME",n[n.REDIRECT=4]="REDIRECT",n[n.API=5]="API",n[n.FORM=6]="FORM",n[n.ROUTER=7]="ROUTER",n[n.ERROR=8]="ERROR",(i=e.EventTypes||(e.EventTypes={}))[i.PageViewEvent=0]="PageViewEvent",i[i.NavigationEvent=1]="NavigationEvent",i[i.ExternalNavigationEvent=2]="ExternalNavigationEvent",i[i.ControlInteractionEvent=3]="ControlInteractionEvent",i[i.PageVisibilityChangeEvent=4]="PageVisibilityChangeEvent";var l="undefined"!=typeof window?window:null;l?function(){var e=l.crypto||l.msCrypto;if(!t&&e&&e.getRandomValues){var i=new Uint8Array(16);(t=function(){return e.getRandomValues(i),i})()}if(!t){var n=new Uint8Array(16);t=function(){for(var e=0,t=void 0;e<16;e++)0==(3&e)&&(t=4294967296*Math.random()),n[e]=(t||0)>>>((3&e)<<3)&255;return n}}}():t=function(){return new Uint8Array(16).fill(Math.floor(256*Math.random()))};for(var c=[],h=0;h<256;h++)c[h]=(h+256).toString(16).substr(1);function d(){var e=new Uint8Array(16),i=t();i[6]=15&i[6]|64,i[8]=63&i[8]|128;for(var n=0;n<16;n++)e[0+n]=i[n];return e}function u(){return function(e){for(var t=[],i=0;i<e.length;i+=32768)t.push(String.fromCharCode.apply(null,e.subarray(i,i+32768)));return btoa(t.join(""))}(d())}function p(e){return e?"urn:li:page:"+e:null}function g(e,t){return e&&t?"urn:li:control:"+t+"-"+e:null}function m(e){return e?e.split(":").pop():null}function _(e,t){return e?{trackingId:t||u(),pageUrn:p(e)}:null}function f(e){if("string"!=typeof e)return null;var t=e.split(";");return 2===t.length?{pageUrn:t[0],trackingId:t[1]}:null}function E(e){return e&&e.referrer}function b(e){if(e&&e.URL){var t=e.URL.match(/trk=([^&]+)/);if(t&&2===t.length)return t[1]}return null}var v=Object.assign||function(e){for(var t=[],i=1;i<arguments.length;i++)t[i-1]=arguments[i];if(null==e)throw new TypeError("Cannot convert undefined or null to object");for(var n=Object(e),s=0;s<t.length;s++){var o=t[s];if(null!==o)for(var r in o)Object.prototype.hasOwnProperty.call(o,r)&&(n[r]=o[r])}return n},w=function(){function t(e){void 0===e&&(e={appId:null,initialPageInstance:null}),this.config=e;var t=this.config.disableInitialAnchorPageViewEvent||!1;if(!this.config.appId)throw new Error("TrackingTwo requires an appId.");if(!this.config.initialPageInstance){var i=document.querySelector('meta[name="trk-pageinstance"]');if(i&&(this.config.initialPageInstance=f(i.getAttribute("content"))),!this.config.initialPageInstance)throw new Error("TrackingTwo requires an initialPageInstance");t=!0}this.config.eventHeaderProperties?this.config.eventHeaderProperties.pageInstance&&delete this.config.eventHeaderProperties.pageInstance:this.config.eventHeaderProperties={},this.config.userRequestHeaderProperties?this.config.userRequestHeaderProperties.pageKey&&delete this.config.userRequestHeaderProperties.pageKey:this.config.userRequestHeaderProperties={},this.config.validationMode=!!this.config.validationMode||!1,this.config.trackingUrl=this.config.trackingUrl||"/li/track";var n=function(){var e=window.location.pathname,t=e+window.location.search,i=window.location.href,n=r();if(!n)return null;for(var s=0;s<n.length;s++){var o=n[s].href;if(o===e||o===t||o===i){var l=n.splice(s,1)[0];return a(n),l}}return null}();n&&(e.previousPageInstance=n.prevInstance),Object.freeze(this.config.eventHeaderProperties),Object.freeze(this.config.userRequestHeaderProperties),Object.freeze(this.config),o.init(),o.setProperty("disableSendBeacon",!1),o.setTrackingUrl(this.config.trackingUrl),o.setProperty("maxQueueSize",this.config.requestBatchingMaxQueueSize||10),o.setProperty("queueTimeout",1e3*(this.config.requestBatchingMaxWaitSeconds||10)),this.state={currentPageInstance:e.initialPageInstance,previousPageInstance:e.previousPageInstance||null};var s=this.config.prevControlName||(n?n.controlName:null);this.fireNavigationEvent(this.state.previousPageInstance,s),t||this.firePageViewEvent(),this._boundDocumentClickHandler=this._handleDocumentClicks.bind(this),document&&document.body.addEventListener("click",this._boundDocumentClickHandler,!0),this._boundDocumentClickBubbleHandler=this._handleDocumentClicksBubble.bind(this),document&&document.body.addEventListener("click",this._boundDocumentClickBubbleHandler,!1),this._boundWindowBeforeUnloadHandler=this._handleWindowBeforeUnload.bind(this),window&&window.addEventListener("beforeunload",this._boundWindowBeforeUnloadHandler,!0),this._boundDocumentVisibilityChangeHandler=this._handleDocumentVisibilityChange.bind(this);var l="visibilitychange";document&&(void 0!==document.msHidden&&(l="msvisibilitychange"),document.addEventListener(l,this._boundDocumentVisibilityChangeHandler,!0))}return t.prototype._handleDocumentClicks=function(e){for(var t=e.target;t!==e.currentTarget&&!t.hasAttribute("data-tracking-control-name");)t=t.parentElement;if(t!==e.currentTarget){var i=t.getAttribute("data-tracking-control-name");!t.hasAttribute("data-tracking-no-cie")&&this.fireControlInteractionEvent(i)}},t.prototype._handleDocumentClicksBubble=function(e){for(var t=e.target;t!==e.currentTarget&&!t.hasAttribute("data-tracking-control-name");)t=t.parentElement;if(t!==e.currentTarget){var i=t.getAttribute("data-tracking-control-name"),n=t.hasAttribute("data-tracking-will-navigate"),s=t.getAttribute("data-tracking-href")||t.getAttribute("href");n&&!e.defaultPrevented&&this.saveStateForPageDeparture({controlName:i,href:s})}},t.prototype._handleWindowBeforeUnload=function(e){var t=e.target.activeElement,i=t,n=null,s=!1;if(t){for(;i!==e.currentTarget&&("function"!=typeof i.hasAttribute||!i.hasAttribute("data-tracking-control-name"))&&i.parentElement;)i=i.parentElement;i!==e.currentTarget&&("getAttribute"in i&&(n=i.getAttribute("data-tracking-control-name")),"hasAttribute"in i&&(s=i.hasAttribute("data-tracking-will-navigate")))}s||this.fireExternalNavigationEvent(n)},t.prototype._handleDocumentVisibilityChange=function(){var e=!1;if(void 0!==document.msHidden)e=document.msHidden;else{if(void 0===document.hidden)return;e=document.hidden}this.firePageVisibilityChangeEvent(e)},t.prototype.saveStateForPageDeparture=function(e){if(e){var t,i,n=e.controlName,s=e.href;t={controlName:n,href:s,prevInstance:this.state.currentPageInstance},(i=r()||[]).push(t),a(i)}},t.prototype.fireControlInteractionEvent=function(t,i,n){if(void 0===i&&(i=e.ControlInteractionType.SHORT_PRESS),void 0===n&&(n={}),!t)throw new Error("controlName is required.");var s=m(this.state.currentPageInstance.pageUrn),o=n.uiControlPageKey||s;this.fireTrackingEvent(e.EventTypes[e.EventTypes.ControlInteractionEvent],{requestHeader:{},header:{},controlUrn:g(t,o),interactionType:e.ControlInteractionType[i]},n)},t.prototype.fireNavigationEvent=function(t,i,n){void 0===n&&(n={});var s=t?m(t.pageUrn):null,o=n.uiControlPageKey||s;this.fireTrackingEvent(e.EventTypes[e.EventTypes.NavigationEvent],{requestHeader:{},header:{},previousPageInstance:t,triggerControlUrn:g(i,o)},n)},t.prototype.fireExternalNavigationEvent=function(t,i){void 0===i&&(i={});var n=i.uiControlPageKey||m(this.state.currentPageInstance.pageUrn);this.fireTrackingEvent(e.EventTypes[e.EventTypes.ExternalNavigationEvent],{requestHeader:{},header:{},triggerControlUrn:g(t,n)},i,!0)},t.prototype.firePageViewEvent=function(t,i){void 0===i&&(i={});var n=(i=v({},i)).pageViewPageType||e.PageViewPageType.AJAX,s=m(this.state.currentPageInstance.pageUrn),o=t||s;this.fireTrackingEvent(e.EventTypes[e.EventTypes.PageViewEvent],{requestHeader:{pageKey:o},header:{},pageType:e.PageViewPageType[n].toLowerCase(),trackingInfo:{clientTimestamp:Date.now().toString()}},i)},t.prototype.fireAnchorPageViewEvent=function(e,t,i){if(void 0===i&&(i={}),!e)throw new Error("newPageKey is required.");var n=v({},this.state.currentPageInstance),s=_(e);this.state.previousPageInstance=n,this.state.currentPageInstance=s,this.fireNavigationEvent(n,t,i),this.firePageViewEvent(e,i)},t.prototype.firePageVisibilityChangeEvent=function(t,i){void 0===i&&(i={}),this.fireTrackingEvent(e.EventTypes[e.EventTypes.PageVisibilityChangeEvent],{requestHeader:{},header:{},isVisible:!t},i)},t.prototype.fireTrackingEvent=function(e,t,i,n){if(void 0===i&&(i={}),void 0===n&&(n=!1),!e||!t)throw new Error("eventName and body are required.");t=v({},t),(i=v({},i)).topicName||(i.topicName=e),i.pageInstance||(i.pageInstance=this.state.currentPageInstance);var s=v({pageKey:m(i.pageInstance.pageUrn),path:window.location.href,referer:E(document),trackingCode:b(document)},this.config.userRequestHeaderProperties,t.requestHeader);delete t.requestHeader,delete t.header.pageInstance;var r=v({pageInstance:i.pageInstance,time:Date.now()},this.config.eventHeaderProperties,t.header);delete t.header;var a={requestHeader:s,header:r};this.config.mapHeaders&&(a=this.config.mapHeaders(a));var l=v(a,t),c={eventName:e,topicName:i.topicName,appId:this.config.appId};this.config.validationMode?o.validateEvent(c,l,(function(t){t&&console.error("Event "+e+" failed validation!")})):(o.sendEvent(c,l),n&&o.flush())},t.prototype.destroy=function(){o.destroy(),document.removeEventListener("click",this._boundDocumentClickHandler,!0)},t.createFromPageKey=function(e,i){return e.initialPageInstance=_(i),new t(e)},t}();e.AppTrackingInstance=w,e.clearNavStorage=function(){window.sessionStorage.removeItem("li_trk_navigation")},e.derivePageInstanceFromString=f,e.derivePageKeyFromUrn=m,e.generateControlUrn=g,e.generatePageInstance=_,e.generatePageUrn=p,e.generateTrackingId=u,e.getReferrer=E,e.getTrackingCode=b,e.stringifyPageInstance=function(e){return e?e.pageUrn+";"+e.trackingId:null},e.uuid=d,e.webTrackingTransport=o}(t)}));let he=null;function de(e,t="ajax",i){e.fireTrackingEvent("PageViewEvent",ue(i,t))}function ue(e,t="ajax"){const i=I(document),n=L(document);let s={};return n&&(s.interfaceLocale=n),e&&(s.pageKey=e),{header:{},requestHeader:s,pageType:t,trackingInfo:{clientTimestamp:Date.now(),pageTag:i}}}function pe(e,t){t=t||"log";if("undefined"!=typeof window&&window&&window.jet&&"error"===t.toLowerCase())try{throw new Error(e)}catch(e){try{window.jet.error(e)}catch(e){}}"undefined"!=typeof console&&"function"==typeof console[t]&&console[t](e)}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)))[;,]|[/.#?])");const ge="prev",me="next";class _e{constructor(e,t=0){if(!e)throw new Error("No element passed in");this._el=e,this._previousButton=e.querySelector(".".concat('slide-list__nav-button[data-direction="prev"]')),this._nextButton=e.querySelector(".".concat('slide-list__nav-button[data-direction="next"]')),this._listEl=e.querySelector(".slide-list__list"),this._slideNavDisabled="true"===this._el.dataset.disabled,this._dragLimit=this._listEl.offsetWidth,this._items=[...this._listEl.children],this._lock={},this._currentPage=t,this._isRtl="rtl"===document.body.dir,this._isMinimalNav=e.querySelector(".".concat("slide-list__header-nav--minimal")),this._prevTabIndexMap=new Map,!("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(e){return e=e||1,this._currentPage+e<=this._pageTranslates.length-1&&(this._currentPage+=e,this._updateSlideButtons(),this._updateListPosition(),this._updateFocusableElements()),this._currentPage}prev(e){return e=e||1,this._currentPage-e>=0&&(this._currentPage-=e,this._updateSlideButtons(),this._updateListPosition(),this._updateFocusableElements()),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,this._updateFocusableElements()}_getPageTranslates(){const e=this._listEl.offsetWidth,t=this._listEl.scrollWidth,i=this._isRtl?e-this._items[0].offsetLeft-this._items[0].offsetWidth:this._items[0].offsetLeft,n=t-e;let s=[0];const o=[new Set],r=[];let a=0;for(let t=0;t<this._items.length;t+=1){const l=s[s.length-1],c=o[s.length-1],h=this._items[t].offsetLeft,d=this._items[t].offsetWidth;let u=Math.abs(this._isRtl?h+d:h),p=Math.abs(this._isRtl?h:h+d);if(r.push(u),this._isRtl&&h>=0)c.add(this._items[t]);else if(0===u&&0===i||0===a)a=p,c.add(this._items[t]);else{if(p>l+e){if(u>=n){o.push(new Set(this._items.slice(t)));break}s.push((this._isRtl?a:u)-i),o.push(new Set([this._items[t]]))}else c.add(this._items[t]);a=p}}return s.push(n),r.forEach((e,t)=>{e>=n&&o[o.length-1].add(this._items[t])}),this._pageItems=o,s}_updateFocusableElements(){const e=this._pageItems[this._currentPage],t=this._items.filter(t=>!e.has(t));for(const e of this._items)e.removeAttribute("aria-hidden");for(const[e,t]of this._prevTabIndexMap)null===t?e.removeAttribute("tabindex"):e.setAttribute("tabindex",t);for(const e of t){e.setAttribute("aria-hidden","true");e.querySelectorAll(W).forEach(e=>{const t=e.getAttribute("tabindex");this._prevTabIndexMap.set(e,t),e.setAttribute("tabindex","-1")})}}_handleScrollAction(e){const t=x(e.target,".slide-list__nav-button").dataset.direction;t&&(this._listEl.addEventListener("transitionend",this._fireScrollEvent.bind(this)),t===ge?this.prev():t===me&&this.next())}_fireScrollEvent(){G(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(e){this._resetTouchEvents(),this._t.start=this._getEventPosition(e),this._dragging=!0,this._listEl.classList.add("slide-list__list--dragging")}_handleTouchMove(e){if(!this._dragging||this._dragCanceled)return;let t=this._getEventPosition(e);this._t.current={x:this._t.start.x-t.x,y:this._t.start.y-t.y},this._canDrag()?(this._dragThresholdMet=!0,e.preventDefault(),this._lock.left&&this._t.current.x<0?this._t.current.x=this._t.current.x*-this._dragLimit/(this._t.current.x-this._dragLimit):this._lock.right&&this._t.current.x>0&&(this._t.current.x=this._t.current.x*this._dragLimit/(this._t.current.x+this._dragLimit)),this._updateTranslateXY((this._isRtl?this._pageTranslates[this._currentPage]:-this._pageTranslates[this._currentPage])-this._t.current.x)):this._isVerticalScrolling()&&(this._dragCanceled=!0)}_handleTouchEnd(){this._dragging&&(!this._dragCanceled&&Math.abs(this._t.current.x)>20&&(this._t.current.x>0&&!this._lock.right?this._isRtl?this._currentPage--:this._currentPage++:this._t.current.x<0&&!this._lock.left&&(this._isRtl?this._currentPage++:this._currentPage--)),this._resetTouchEvents(),this._updateListPosition())}_getEventPosition(e){return{x:e.touches[0].clientX,y:e.touches[0].clientY}}_isVerticalScrolling(){return Math.abs(this._t.current.x)<Math.abs(this._t.current.y)&&Math.abs(this._t.current.y)>10}_canDrag(){return this._dragThresholdMet||Math.abs(this._t.current.x)>Math.abs(this._t.current.y)&&Math.abs(this._t.current.x)>10}_updateTranslateXY(e,t){this._listEl.style.transform="translate3d(".concat(e||0,"px, ").concat(t||0,"px, 0px)")}}"".concat("tab-toggle","--active");const fe="tabs__list",Ee="tab-button",be="tab-panel";class ve{constructor(e){if(!(e&&e instanceof Node))throw new Error("No tabs element passed in");this._el=e,this._tabList=this._el.querySelector(".".concat(fe)),this._tabButtonList=this._el.querySelectorAll(".".concat(Ee)),this._tabPanelList=this._el.querySelectorAll(".".concat(be)),this._initializeTabs(),this._tabList.addEventListener("keydown",e=>this._onTabButtonKeyDown(e)),this._tabList.addEventListener("click",({target:e})=>this._onTabClick(e))}_initializeTabs(){this._addAttributes(),[this._tabButtonActive,this._tabPanelActive]=this._getActiveElements(),this._checkActivePanel()}_addAttributes(){const e=this._generateIds();this._tabButtonList.forEach((t,i)=>{const n=this._tabPanelList[i],{tabButtonId:s,tabPanelId:o}=e(i);t.id=s,t.setAttribute("aria-controls",o),n.id=o,n.setAttribute("aria-labelledby",s)})}_generateIds(){const e=this._el.dataset.id?"".concat(this._el.dataset.id,"_"):"";return function(t){return{tabButtonId:"".concat(e,"tab-button_").concat(t),tabPanelId:"".concat(e,"tab-panel_").concat(t)}}}_getActiveElements(){const e=this._el.querySelector('[aria-selected="true"]')||this._tabButtonList[0],t=e.getAttribute("aria-controls");return[e,document.getElementById(t)]}_checkActivePanel(){this._tabPanelActive.removeAttribute("hidden"),this._tabPanelList.forEach(e=>{e!==this._tabPanelActive&&e.setAttribute("hidden","")})}_onTabButtonKeyDown(e){switch(N(e.key)){case C.ENTER:case C.SPACEBAR:e.target!==this._tabButtonActive&&this._activateTab(e.target);break;case C.ARROW_LEFT:this._focusTabOnArrowPress(-1,e.target);break;case C.ARROW_RIGHT:this._focusTabOnArrowPress(1,e.target)}}_onTabClick(e){const t=x(e,".".concat(Ee));t&&[...this._tabButtonList].includes(t)&&t!==this._tabButtonActive&&this._activateTab(t)}_focusTabOnArrowPress(e,t){const i=[...this._tabButtonList].indexOf(t),n=this._tabButtonList[i+(1===e?1:-1)];n?n.focus():-1===e?this._focusLastTab():this._focusFirstTab()}_focusFirstTab(){this._tabButtonList[0].focus()}_focusLastTab(){this._tabButtonList[this._tabButtonList.length-1].focus()}_activateTab(e){this._deactivateActiveTab(),this._tabButtonActive=e,this._tabButtonActive.removeAttribute("tabIndex"),this._tabButtonActive.setAttribute("aria-selected","true");const t=this._tabButtonActive.getAttribute("aria-controls");this._tabPanelActive=document.getElementById(t),this._tabPanelActive.removeAttribute("hidden")}_deactivateActiveTab(){this._tabButtonActive.setAttribute("tabIndex","-1"),this._tabButtonActive.setAttribute("aria-selected","false"),this._tabButtonActive=null,this._tabPanelActive.setAttribute("hidden",""),this._tabPanelActive=null}}class we{constructor(e){if(!e)throw new Error("An element must be passed in to Disable Background Navigation");this._container=e,this._hiddenElements=[]}disableBackground(){let e=this._container;for(;e&&e!==document.body&&e.parentElement;)this._hiddenElements=this._hiddenElements.concat([...e.parentElement.children].filter(t=>t!==e&&"true"!==t.getAttribute("aria-hidden")&&(t.setAttribute("aria-hidden",!0),!0))),e=e.parentElement}enableBackground(){this._hiddenElements.forEach(e=>{e.removeAttribute("aria-hidden")}),this._hiddenElements=[]}}const ye=["class","disabled","style","tabindex","type"];class Te{constructor(e){if(!e)throw new Error("FocusTrap: No focus trap container passed in");this._container=e,this._observer=new MutationObserver(()=>this._setFirstAndLastFocusableEls(this._container)),this._handleKeyDown=this._focusTrap.bind(this),this._backgroundNavigationDisabler=new we(this._container)}init(){this._observer.observe(this._container,{attributeFilter:ye,attributes:!0,childList:!0,subtree:!0}),this._setFirstAndLastFocusableEls(this._container),this._container.addEventListener("keydown",this._handleKeyDown),this._backgroundNavigationDisabler.disableBackground()}tearDown(){this._observer.disconnect(),this._container.removeEventListener("keydown",this._handleKeyDown),this._backgroundNavigationDisabler.enableBackground()}_focusTrap(e){const{key:t,target:i}=e,n=N(t),s=n===C.TAB&&e.shiftKey;!s&&n===C.TAB&&i===this.lastFocusableEl?(this.firstFocusableEl.focus(),e.preventDefault()):s&&i===this.firstFocusableEl&&(this.lastFocusableEl.focus(),e.preventDefault())}_setFirstAndLastFocusableEls(e){const[t,i]=this._getFirstAndLastFocusableEls(e);this.firstFocusableEl=t,this.lastFocusableEl=i,setTimeout(()=>{this._hasFocusBeenDropped()&&("-1"===e.getAttribute("tabindex")?e.focus():this.firstFocusableEl.focus())},100)}_hasFocusBeenDropped(){const e=document.activeElement;return!e||e===document.body}_getFirstAndLastFocusableEls(e){const t=[...e.querySelectorAll(W)],i=new Map;let n,s,o=0,r=t.length-1;for(;(!n||!s)&&o<=r;){if(!n){const s=t[o];n=Y(s,e,i)&&s,o++}if(!s){const n=t[r];s=Y(n,e,i)&&n,r--}}return s=s||n,[n,s]}}const{ENTER:Se,ESCAPE:Ie}=C;const Le={COPY:"copy",LINKEDIN:"linkedin",TWITTER:"twitter",FACEBOOK:"facebook"};Object.keys(Le).map(e=>Le[e]);const Oe={};function ke(e){const t=document.getElementById(e);if(!t&&void 0!==Oe[e])return Oe[e];if(!t)return console.warn("Element with id: ".concat(e," not found")),Oe[e]=null,Oe[e];let i;for(const e of t.childNodes)try{if(e.nodeType===Node.COMMENT_NODE){i=JSON.parse(e.nodeValue);break}}catch(e){}return void 0===i?(console.warn("Error retrieving content with id: ".concat(e,". Use embedJson helper to embed this content")),null):(Oe[e]=i,t.parentNode.removeChild(t),Oe[e])}const Ae=["binlar","ask\\ jeeves","mozilla\\/4\\.0\\ \\(compatible\\;\\ msie\\ 6\\.0\\;\\ windows\\ nt\\ 5\\.1\\;1813\\)","companydatatree","genieo","microsoft\\+scheduled\\+cache\\+content\\+download\\+service","liferea","superfeedr","ez\\ publish\\ link\\ validator","htmlparser","argclrint","linkwalker","webtool","ask\\+jeeves","stackrambler","paros","^fdm\\+3\\.x","ms\\ search","indy\\+library","seznam","sitevigil","intergator","freedom(?!from)","google\\+page\\+speed\\+insights","znajdzfoto\\/image","riddler\\.io","^java\\/","twiceler","httpunit","ktxn","webcopier","mna\\+digital\\+circonus\\+check","stuff(?!nz)","updatepatrol","feedburner","hp\\+sitescope","crawler","gigablastopensource\\/","rpt\\-http","^fdm\\ 3\\.x","libwww\\-perl","((?=pital)|ca(?=pital))pita","bingpreview","oia\\.owa","^ahc\\/","thunderstone","microsoft\\ bits","alertsite","^python\\-requests\\/","dts\\ agent","tangjiutao","^inmon","linkscan","alexa\\ site\\ audit","webtrends(?!clientlibrary)","chkd","joedog","daumoa","typhoeus","loadimpactpageanalyzer","google\\ news","coldfusion","mna\\ digital\\ circonus\\ check","alexa\\+site\\+audit","getright","appengine","(?=crawler)crawl","ibot(?!ta)","jobo","python\\-httplib","powermarks","site24x7","proximic","yahoo\\+pipes","((?=aporter)|oper(?=aportable))aport","web\\+downloader","check\\_http","grabber","topsy\\.com\\/butterfly\\/","harvest","^inagist\\+url\\+resolver","fast","crescent(?!\\ build|\\+build)","sohu(?!ennews|video|news)","favorg","bloglines","fetch(?!tv)","wapt","microsoft\\+url\\+control","urchin","ning\\/1\\.0","pluck","google\\+news","spider","\\(compatible\\;\\+optimizer\\)","moreover\\/5\\.1","js\\-kit","server\\ density\\ external\\ llama","facebookexternalhit","ultraseek","catchpoint","yandex(?!\\ browser|\\+browser|mail)","echo(?!arena|fon|star)","^worldwatch\\/","combine(?!d)","winhttprequest","ez\\+publish\\+link\\+validator","jakarta","^webnotifier\\/","webmetrics","teoma","nerdbynature","ms\\+frontpage","nielsen","sucker","engagebdr","yahoofeedseeker","dts\\+agent","googleapps","holmes","plumtree","www\\-mechanize","google\\-hoteladsverifier","pingdom","drupal","sina\\_weibo","google\\ page\\ speed\\ insights","lisa","w3c\\_validator","^scan","yeti","snoopy","khte","trovit","atomz","httpcomponents","ms\\+search","google\\-http\\-java\\-client","spi\\_der","bubing","websitepulse","microsoft\\+bits","http\\_request2","ieautodiscovery","siteimprove","curl(?!ings)","go\\+1\\.1\\+package\\+http","^crowsnest\\/","email\\ exractor","utorrent","yahoocachesystem","shopwiki","justview","googlesecurityscanner","msnptc","rkg\\+url\\+verifier","monitor","bitvouseragent","((?=wormgame))worm","talktalk","help\\.coccoc\\.com","yahoo\\ pipes","heritrix","nutch","argus","kulturarw3","checkurl","universalsearch","amazon\\ route\\ 53\\ health\\ check\\ service","slurp","mozilla\\/5\\.0\\ \\(compatible\\;\\ msie\\ 5\\.0\\)","ezooms","kimengi\\/nineconnections\\.com","applesyndication","python\\-urllib","internal\\+zero\\-knowledge\\+agent","system\\+center\\+operations\\+manager","riverglassscanner","imgsizer","changedetection","nutscrape","feedzilla","contype","^lwp","\\(compatible\\;\\ optimizer\\)","infolink","outbrain","^prerender","admantx","^inagist\\ url\\ resolver","amazon\\+route\\+53\\+health\\+check\\+service","neustar","a6\\-indexer","comodo\\+ssl\\+checker","linkchecker","viglink","patric","newsnow","wasalive","scrapy","(?=gruber)grub","ruxitsynthetic","rkg\\ url\\ verifier","ocelli","webcapture","^kraken\\/","t\\-h\\-u\\-n\\-d\\-e\\-r\\-s\\-t\\-o\\-n\\-e","spider(?!solitaire)","isearch","hp\\ sitescope","maxamine","\\(simulated\\_by\\_webserver\\_stress\\_tool\\)","((?=obotics)|ther(?=obotfree))obot","yacy","twibble\\.io","google\\+wireless\\+transcoder","wget","internal\\ zero\\-knowledge\\ agent","google\\ wireless\\ transcoder","xenu","yahooseeker","advanced\\ email\\ extractor","feed43","ptst","reconnoiter","go\\ 1\\.1\\ package\\ http","advanced\\+email\\+extractor","linkdex","panscient\\.com","webcheck","linktiger","scooter","flipboard\\.com\\/browserproxy","evidon","twisted\\ pagegetter","cosmos","adbeat","sherlock","web\\ downloader","cookiereports","siteexplorer","miva","twisted\\+pagegetter","mfc\\_tear\\_sample","indy\\ library","b2w(?!tenisnew)","orangebot(?!swana)","lockss\\+cache","mozilla\\/4\\.0\\+\\(compatible\\;\\+msie\\+6\\.0\\;\\+windows\\+nt\\+5\\.1\\;1813\\)","yahooexternalcache","apache\\-httpclient\\/4\\.","archive\\.org","wesee\\:search","hiscan","ms\\ frontpage","tagscanner","google\\ web\\ preview","special\\_archiver","d24y\\-aegis","scoutjet","larbin","adsense\\-snapshot\\-google","keynote","skypeuripreview","clickajob","download\\+ninja","internet\\ ninja","^ltx71","ukonline","eventmachine\\ httpclient","nomad","mediapartners","twikle","microsoft\\ scheduled\\ cache\\ content\\ download\\ service","internet\\+ninja","scanalert","metauri","agentname","adr\\)","squider","isilo","teleport","automationtest","bordermanager","linklint","bot","templeton","rssreader","ichiro","(?=dialer\\-mobileapp)dialer","atomic\\_email\\_hunter","google\\+web\\+preview","longurl\\+api","longurl\\ api","internetseer","server\\+density\\+external\\+llama","topix","iopus","download\\ ninja","mozilla\\/5\\.0\\+\\(compatible\\;\\+msie\\+5\\.0\\)","europarchive","avantgo","flamingo\\_searchengine","lockss\\ cache","jobrapido","wesee\\:ads\\/","frontier","newspaper\\/0\\.0\\.","apachebench","flamingosearch","lydia","microsoft\\ url\\ control","phantomjs","system\\ center\\ operations\\ manager","^econtext\\/","akamai","cfschedule","searchme\\.com\\/support\\/","fortimail","comodo\\ ssl\\ checker","gomezagent","sitecon","webauto","golem","swcd","spundge\\/0\\.1","findlinks","^sjn","yandex","ia\\_archive","vagabondo","watchmouse","simplepie","1job","goldfire"].join("|");new RegExp(Ae,"i");class Ce{constructor(e,{scrollThreshold:t=50,hideOnScrollBack:i=!1,isBottom:n=!0,exposeStickyState:s=!1,marginApplied:o=!1}={}){this.el=e,this.scrollThreshold=t,this.hideOnScrollBack=i,this.isBottom=n,this.exposeStickyState=s,this._scrollListener=this._onScroll.bind(this),this.marginApplied=o,this._doesPageHaveEnoughScroll()?window.addEventListener("scroll",this._scrollListener):this.hideOnScrollBack||this.show(),window.addEventListener("resize",this._setSpacing.bind(this)),F(()=>{this.originalMarginTop=parseInt(document.body.style.marginTop)||0,this.originalMarginBottom=parseInt(document.body.style.marginBottom)||0,this._setSpacing(!0)})}_doesPageHaveEnoughScroll(){return document.body.scrollHeight>window.innerHeight+this.scrollThreshold}_setSpacing(e=!1){this.isBottom?this._setBottomSpacing():this.hideOnScrollBack||(this._setTopSpacing(),e&&this.show())}_setBottomSpacing(){let e=this.el.clientHeight;document.body.style.marginBottom&&!this.marginApplied&&(e+=this.originalMarginBottom),document.body.style.marginBottom="".concat(e,"px")}_setTopSpacing(){let e=this.el.clientHeight;document.body.style.marginTop&&!this.marginApplied&&(e+=this.originalMarginTop),document.body.style.marginTop="".concat(e,"px")}show(){this.el.classList.add("show"),G(this.el,"show")}hide(){this.el.classList.remove("show"),G(this.el,"hide")}_onScroll(){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"))}}!function(e){const t=new RegExp("<(?!/?(?:"+e.allowedTags+")(?:[ \t\r\n]*/?>|[ \t\r\n]+(?:(?:(?:"+e.allowedAttributes+")(?:=([\"'])[^'\"<>]*\\1)?|(?:"+e.allowedURLAttributes+")=([\"'])(?:(?:"+e.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"});"".concat("tooltip__popup","--show");class Pe{constructor(e,{actionButtonClassName:t="promo__action",dismissButtonClassName:i="promo__dismiss",lockScreenClassName:n="no-scroll",startCoolOffAfterImpression:s=!1}={}){if(!e)throw Error("An element must be provided to apptivation promo");this.promo=e,this.actionBtn=this.promo.querySelector(".".concat(t)),this.dismissBtn=this.promo.querySelector(".".concat(i)),this.overlay=this.promo.querySelector(".".concat("apptivation-promo__overlay")),this.containsOverlay=!!this.overlay,this.lockScreenClassName=n,this.clickHandler=this._dismissPromo.bind(this),this.actionBtn.addEventListener("click",this.clickHandler),this.dismissBtn.addEventListener("click",this.clickHandler);const o="true"===this.promo.dataset.enableAppDetection;this._initPromise=this._getInitializationParams(e,o),this._initPromise.then(({cooloffInMinutes:e,impressionsBeforeDisplay:t})=>{if(this.cooloffInMinutes=e,this.coolOffEnabled=this.cooloffInMinutes>0,this.impressionsBeforeDisplay=t,this.containsOverlay&&this.overlay.addEventListener("click",this.clickHandler),!this._hasMetImpressionThreshold(this.impressionsBeforeDisplay))return;let i=!this.coolOffEnabled;this.coolOffEnabled&&(i=this._hasCoolOffExpired(s),i&&this._setCoolOfStart("global:impression")),this._toggleShowPromo(i)})}_getInitializationParams(e,t){const i=this._getSanitizedDatasetNumber(e.dataset,"cooloffInMinutes"),n=this._getSanitizedDatasetNumber(e.dataset,"impressionsBeforeDisplay");return new Promise(e=>{t?window.appDetection.then(t=>{const s=t.find(e=>"com.linkedin.android"===e.id);e(s?{cooloffInMinutes:0,impressionsBeforeDisplay:0}:{cooloffInMinutes:i,impressionsBeforeDisplay:n})}).catch(()=>{e({cooloffInMinutes:i,impressionsBeforeDisplay:n})}):e({cooloffInMinutes:i,impressionsBeforeDisplay:n})})}isVisible(){return this._initPromise.then(()=>!this.promo.classList.contains("apptivation-promo--hidden"))}_getSanitizedDatasetNumber(e,t){const i=e[t]&&e[t].replace(/\D/g,""),n=parseInt(i,10);return Number.isNaN(n)?0:n}_hasCoolOffExpired(e){this.cooloffStartTimestampMap=this._getCoolOfStartMap();const t=e?"global:impression":"global:dismiss",i=60*this.cooloffInMinutes*1e3,n=this.cooloffStartTimestampMap[t],s=n?parseInt(n,10):0;return Date.now()-s>i}_hasMetImpressionThreshold(e){if(e<2)return!0;return!(function(e){if(!e)throw"impressionKey is required";return(JSON.parse(localStorage.getItem("guest-ui-lib:global-impression-count-map"))||{})[e]||0}("apptivation-promo")+1<e)||(function(e,t=1){if(!e)throw"impressionKey is required";const i=JSON.parse(localStorage.getItem("guest-ui-lib:global-impression-count-map"))||{},n=i[e]||0;i[e]=n+t,localStorage.setItem("guest-ui-lib:global-impression-count-map",JSON.stringify(i)),i[e]}("apptivation-promo"),!1)}_dismissPromo(e){e.preventDefault(),this.actionBtn.removeEventListener("click",this.clickHandler),this.dismissBtn.removeEventListener("click",this.clickHandler);const{target:t}=e,i="A"===t.tagName,n=t.getAttribute("href");this._toggleShowPromo(!1),this.coolOffEnabled&&this._setCoolOfStart("global:dismiss"),i&&location.assign(n)}_toggleShowPromo(e){this.promo.classList.toggle("apptivation-promo--hidden",!e),e&&this.promo.focus(),this.containsOverlay&&document.body.classList.toggle(this.lockScreenClassName,e)}_getCoolOfStartMap(){return JSON.parse(localStorage.getItem("guest-ui-lib:apptivation-promo-cooloff-start-timestamp-map"))||{}}_setCoolOfStart(e){this.cooloffStartTimestampMap[e]=Date.now(),localStorage.setItem("guest-ui-lib:apptivation-promo-cooloff-start-timestamp-map",JSON.stringify(this.cooloffStartTimestampMap))}}const Ne="loader--absolute",Re="loader--show",xe="loader--full-screen",Fe="no-scroll",Ue="loader-wrapper";class De{constructor(e,{wrapperEl:t}={}){if(!e)throw new Error("Loader el required");if(t&&!t.contains(e))throw new Error("Wrapper element is not a parent of the Loader el");this.el=e,this.wrapperEl=t,this.isAbsoluteVariant=this.wrapperEl&&this.el.classList.contains(Ne),window.addEventListener("pagehide",({persisted:e})=>{e&&this.hide()})}show(){this.el.classList.add(Re),this.el.classList.contains(xe)&&document.body.classList.add(Fe),this.isAbsoluteVariant&&this.wrapperEl.classList.add(Ue)}hide(){this.el.classList.remove(Re),document.body.classList.remove(Fe),this.isAbsoluteVariant&&this.wrapperEl.classList.remove(Ue)}}const Be="dismissable-input",qe="dismissable-input--focus",je="dismissable-input__button",Me="dismissable-input__button--show",He="dismissable-input__input";class Ge{constructor(e){this.el=e,this._input=this.el.querySelector(".".concat(He)),this._dismissButtonEl=this.el.querySelector(".".concat(je)),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(qe),this._updateDismissButton(),G(this._input,"dismissableInputFocused")}_updateDismissButton(){this._isDismissable&&(this._input.value.length?(this._showDismissButton(),this._dismissButtonEl.disabled=!1):(this._hideDismissButton(),this._dismissButtonEl.disabled=!0))}_hideDismissButton(){this._dismissButtonEl.classList.remove(Me)}_showDismissButton(){this._dismissButtonEl.classList.add(Me)}_onInputBlur(){this.el.classList.remove(qe)}clear(){this._input.value="",this._updateDismissButton(""),this._input.focus(),G(this.el,"clear")}}const Je={block:"typeahead-input",showList:"typeahead-input__dropdown--show",dropdown:"typeahead-input__dropdown",dropdownList:"typeahead-input__dropdown-list",dropdownText:"typeahead-input__dropdown-text",listItemFocus:"typeahead-input__dropdown-item--highlighted",listItem:"typeahead-input__dropdown-item",liveText:"typeahead-live-text",template:"typeahead-item-template"},Ke="i18n_aria_live_text_no-suggestions",Ve="i18n_aria_live_text_one-suggestion",We="i18n_aria_live_text_multiple-suggestions";class ze{constructor(e,{createDismissableInput:t,elementClasses:i=Je,generateApiUrl:n,liveTextEl:s,liveTextClearTime:o=500,onSelect:r,onInput:a=(()=>{})}){this.el=e,this._liveTextClearTime=o,this._elementClasses=i,this._input=this.el.querySelector(".".concat(He)),this._dropdownContainerEl=this.el.querySelector(".".concat(this._elementClasses.dropdown)),this._dropdownListEl=this.el.querySelector(".".concat(this._elementClasses.dropdownList)),this._listId=this._dropdownListEl.id,this._generateApiUrl=n,this._onSelect=r,this._onInput=a,this._typeaheadItemTemplate=this.el.querySelector(".".concat(this._elementClasses.template)),this._boundClickOutsideToCloseHandler=this._clickOutsideToCloseHandler.bind(this),this._liveTextEl=s||this.el.querySelector(".".concat(this._elementClasses.liveText)),t&&(this.dismissableInput=new Ge(this.el)),this._getLiveTextOptions(),this._resetState(),this._attachEventListeners(),this._requestHandler=M(this._getAndApplyResults.bind(this),500)}_resetState(){this._dropdownListItemEls=[],this._setHighlightedEl(null),this._setExpandedState(!1)}_attachEventListeners(){this.checkForListItemSelectHandler=this._checkForListItemSelect.bind(this),this.hideListHandler=this._hideList.bind(this),this.onKeyDownHandler=this._onKeyDown.bind(this),this.onUserInputHandler=this._onUserInput.bind(this),this.onClearHandler=this._onClear.bind(this),this._input.addEventListener("keydown",this.onKeyDownHandler),this._input.addEventListener("input",this.onUserInputHandler),this._input.addEventListener("focus",this.onUserInputHandler),this._input.addEventListener("blur",this.hideListHandler),this._dropdownListEl.addEventListener("mousedown",this.checkForListItemSelectHandler),this._isDismissable&&this.el.addEventListener("clear",this.onClearHandler)}_removeEventListeners(){this._input.removeEventListener("keydown",this.onKeyDownHandler),this._input.removeEventListener("input",this.onUserInputHandler),this._input.removeEventListener("focus",this.onUserInputHandler),this._input.removeEventListener("blur",this.hideListHandler),this._dropdownListEl.addEventListener("mousedown",this.checkForListItemSelectHandler)}_isListActive(){return this.el.getAttribute("aria-owns")===this._listId&&"true"===this.el.getAttribute("aria-expanded")}_clickOutsideToCloseHandler(e){e.target!==this._input&&this._hideList()}_onKeyDown(e){if(!this._isListActive())return;switch(N(e.key)){case C.ARROW_DOWN:e.preventDefault(),this._moveToResult(1);break;case C.ARROW_UP:e.preventDefault(),this._moveToResult(-1);break;case C.ENTER:this._checkForListItemSelect(e)}}_moveToResult(e){if(0===this._dropdownListItemEls.length)return;const t=-1===e?-1:0;let i=null===this._highlighted.index?t:this._highlighted.index+e;i<0&&(i=this._dropdownListItemEls.length-1),i>=this._dropdownListItemEls.length&&(i=0),this._setHighlightedEl(i)}_setHighlightedEl(e){this._highlighted&&this._highlighted.el&&(this._highlighted.el.classList.remove(this._elementClasses.listItemFocus),this._highlighted.el.setAttribute("aria-selected",!1)),null===e?(this._highlighted={el:null,index:null},this._input.removeAttribute("aria-activedescendant")):(this._highlighted.el=this._dropdownListItemEls[e],this._highlighted.index=e,this._highlighted.el.setAttribute("aria-selected",!0),this._highlighted.el.classList.add(this._elementClasses.listItemFocus),this._input.setAttribute("aria-activedescendant",this._highlighted.el.id))}_isInputValid(){return this._input.value.length>0}_onUserInput(e){this._onInput(e),this._isInputValid()?this._requestHandler():this._hideList()}_getAndApplyResults(){if(this._isInputValid()){const e=this._input.value;this._makeTypeaheadRequest(e).then(e=>this._appendResults(e)).then(()=>this._showList())}}_makeTypeaheadRequest(e){return $(this._generateApiUrl(e),{sendCookies:!1}).then(e=>e&&JSON.parse(e.responseText)||[])}_appendResults(e=[]){this._hideList(),e.forEach((e,t)=>{const i=document.importNode(this._typeaheadItemTemplate.content,!0),n=i.querySelector(".".concat(this._elementClasses.listItem)),s=n.querySelector(".".concat(this._elementClasses.dropdownText));n.id="".concat(this._input.name,"-").concat(t+1),s.textContent=e.displayName,s.dataset.id=e.id,this._dropdownListEl.appendChild(i)}),this._dropdownListItemEls=U(this._dropdownListEl.children)}_shouldShowList(){return this._dropdownListItemEls.length>0&&this._isInputValid()}_showList(){this._shouldShowList()?(this._dropdownContainerEl.classList.add(this._elementClasses.showList),document.body.addEventListener("click",this._boundClickOutsideToCloseHandler),this._setExpandedState(!0)):(this._hideList(),this._setExpandedState(!1)),this._setLiveText()}_hideList(){if(this._isListActive()){for(;this._dropdownListEl.firstChild;)this._dropdownListEl.removeChild(this._dropdownListEl.firstChild);this._resetState(),this._dropdownContainerEl.classList.remove(this._elementClasses.showList),document.body.removeEventListener("click",this._boundClickOutsideToCloseHandler)}}_onClear(){this.hideListHandler()}_checkForListItemSelect(e){if(!this._isListActive())return;const t="mousedown"===e.type?e.target:this._highlighted.el;if(!t)return;e.preventDefault();const i=t.classList.contains(this._elementClasses.dropdownText)?t:t.querySelector(".".concat(this._elementClasses.dropdownText));i&&this.el.contains(i)&&this._updateInputTo(i)}_updateInputTo(e){this._input.value=e.textContent.trim(),this._input.focus(),"function"==typeof this._onSelect&&this._onSelect(e),this._hideList()}_getLiveTextOptions(){this._liveTextNoSuggestions=ke(Ke),this._liveTextOneSuggestion=ke(Ve),this._liveTextMultipleSuggestions=ke(We)}_getLiveText(){let e;switch((this._dropdownListItemEls||[]).length){case 0:e=this._liveTextNoSuggestions;break;case 1:e=this._liveTextOneSuggestion;break;default:e=this._liveTextMultipleSuggestions}return e}_setLiveText(){const e=this._getLiveText(),t=document.createElement("p");t.textContent=e,this._liveTextEl.children.length&&(this._liveTextEl.removeChild(this._liveTextEl.firstChild),clearTimeout(this._liveTextTimeout)),this._liveTextEl.appendChild(t),this._liveTextTimeout=setTimeout(()=>{this._liveTextEl.firstChild&&this._liveTextEl.removeChild(this._liveTextEl.firstChild)},this._liveTextClearTime)}_setExpandedState(e){this.el.setAttribute("aria-expanded",e),e&&(this.el.setAttribute("aria-owns",this._listId),this._input.setAttribute("aria-controls",this._listId))}}function Ye(e=window){return e.innerWidth<769}class Qe{constructor(e,t,i,{onCloseExpandedSearch:n=(e=>e),isMobileDevice:s=!1}={}){if(this.el=e,this.expandedEl=t,this.placeholderEl=i,this.isMobileDevice=s,!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=n,s&&(this.focusTrap=new Te(this.expandedEl))}showExpandedSearch(){this.isExpanded=!0,this.isMobileDevice&&(this.focusTrap.init(),this.placeholderEl.classList.add("hidden")),this.placeholderEl.classList.remove("show-on-mobile"),this.placeholderEl.classList.add("hide-on-mobile"),this.expandedEl.classList.add("isExpanded"),document.body.classList.add("no-scroll"),this.isIOSDevice&&(document.body.classList.add("fixed"),this.expandedEl.addEventListener("touchstart",this._onIOSTouchStartEvent)),document.addEventListener("keyup",this._onKeyUpEvent.bind(this)),this.firstInput.focus()}hideExpandedSearch(){this.firstInput.blur(),this.isExpanded=!1,this.isMobileDevice&&(this.focusTrap.tearDown(),this.placeholderEl.classList.remove("hidden")),this.expandedEl.classList.remove("isExpanded"),this.placeholderEl.classList.remove("hide-on-mobile"),this.placeholderEl.classList.add("show-on-mobile"),document.body.classList.remove("no-scroll"),this.isIOSDevice&&(document.body.classList.remove("fixed"),this.expandedEl.removeEventListener("touchstart",this._onIOSTouchStartEvent)),document.removeEventListener("keyup",this._onKeyUpEvent),this.placeholderEl.focus(),this.onCloseExpandedSearch()}_onKeyUpEvent(e){const{key:t,target:i}=e,n="Escape"===t,s="INPUT"===i.tagName;n&&!s?(e.preventDefault(),this.hideExpandedSearch()):"Tab"===t&&this._userIsTabbedOut()&&this.hideExpandedSearch()}_onIOSTouchStartEvent(e){const{target:t}=e;x(t,".".concat(Je.block))||document.activeElement.blur()}_userIsTabbedOut(){if(this.expandedEl.classList.contains("isExpanded")&&Ye()){return!this.expandedEl.contains(document.activeElement)}return!1}}class Xe extends ze{constructor(e,{generateApiUrl:t,liveTextEl:i,onSelect:n,onInput:s}){super(e,{createDismissableInput:!0,generateApiUrl:t,liveTextEl:i,onSelect:n,onInput:s})}}const Ze={clearButton:"recent-searches__clear-btn",dropdown:"recent-searches",dropdownList:"recent-searches__list",listItem:"recent-searches__item",listItemClearButton:"recent-searches__item--clear",listItemLink:"recent-searches__item-link",listItemFocus:"recent-searches__item--highlighted",showList:"recent-searches--show"},$e="i18n_aria_live_text_recent-searches-one-suggestion",et="i18n_aria_live_text_recent-searches-multiple-suggestions",tt="i18n_aria_live_text_recent-searches-cleared";class it extends ze{constructor(e,{liveTextEl:t,clearRecentSearchApiBaseUrl:i}){if(super(e,{liveTextEl:t,elementClasses:Ze,liveTextClearTime:1e3}),!e)throw Error("An element must be provided to RecentSearches");if(this.dropdownContainerEl=e.querySelector(".".concat(Ze.dropdown)),!this.dropdownContainerEl)throw Error("A RecentSearches container element must be in the RecentSearches parent element");this._clearRecentSearchApiBaseUrl=i,this._dropdownListItemEls=U(this.dropdownContainerEl.querySelectorAll(".".concat(Ze.listItem))),this._clearBtnItem=e.querySelector(".".concat(Ze.listItemClearButton)),this._dropdownListItemEls.push(this._clearBtnItem),this._dismissButtonEl=e.querySelector(".".concat(je))}_attachEventListeners(){this._clearBtn=this.el.querySelector(".".concat(Ze.clearButton)),this._clearRecentSearchesHandler=this._clearRecentSearches.bind(this),this._clearBtn.addEventListener("mousedown",this._clearRecentSearchesHandler),super._attachEventListeners()}_removeEventListeners(){this._clearBtn.removeEventListener("mousedown",this._clearRecentSearchesHandler),super._removeEventListeners()}_onUserInput(){this._shouldShowList()?this._showList():this._hideList()}_redirect(e){e.click()}_clickOutsideToCloseHandler(e){e.target===this._input||this._dismissButtonEl.contains(e.target)||this._hideList()}_checkForListItemSelect(e){if(!this._isListActive())return;const t="mousedown"===e.type?e.target:this._highlighted.el;if(!t)return;e.preventDefault();const i=t.querySelector(".".concat(Ze.listItemLink));i?this._redirect(i):t.classList.contains(Ze.listItemLink)?this._redirect(t):t===this._clearBtnItem&&this._clearRecentSearches()}_shouldShowList(){return this._dropdownListItemEls.length>1&&0===this._input.value.length}_onClear(){this.onUserInputHandler()}_hideList(){this._isListActive()&&(this.dropdownContainerEl.classList.remove(Ze.showList),document.body.removeEventListener("click",this._boundClickOutsideToCloseHandler),this._setExpandedState(!1),this._setHighlightedEl(null))}_getLiveTextOptions(){this._liveTextOneSuggestion=ke($e),this._liveTextMultipleSuggestions=ke(et),this._liveTextClearedSuggestions=ke(tt)}_getLiveText(){let e;switch(this._informUserThatSearchesAreCleared?0:this._dropdownListItemEls.length){case 0:e=this._liveTextClearedSuggestions,this._informUserThatSearchesAreCleared=!1;break;case 2:e=this._liveTextOneSuggestion;break;default:e=this._liveTextMultipleSuggestions}return e}_clearRecentSearches(){$(this._clearRecentSearchApiBaseUrl,{method:"DELETE"}).then(()=>{this._removeEventListeners(),this._informUserThatSearchesAreCleared=!0,super._hideList(),super._setLiveText()}).catch(e=>{throw e})}}const nt="switcher-tabs__tab--active";class st{constructor(e,t,i){this.el=e,this.mobileTriggerEl=i,this.baseSearchBarsMap=t,this.currentType=this.el.getAttribute("data-current-search-type"),this.switcherTriggerAndTabs=this.el.querySelector(".".concat("switcher-tabs__trigger-and-tabs")),this.switcherTabs=this.el.querySelector(".".concat("switcher-tabs")),this.dropdownList=this.el.querySelector(".".concat("switcher-tabs__list")),this.dropdownTrigger=this.el.querySelector(".".concat("switcher-tabs__placeholder")),this.dropdownPlaceholderText=this.el.querySelector(".".concat("switcher-tabs__placeholder-text")),this._handleSwitcherClick=this._handleSwitcherClick.bind(this),this._initMobileExpandedSwitcher(),this._initCollapsibleSwitcher()}_initMobileExpandedSwitcher(){this.el.addEventListener("click",this._handleSwitcherClick),this.mobileTriggerEl.addEventListener("click",e=>{e.preventDefault(),this.baseSearchBarsMap[this.currentType].showExpandedSearch()}),this.cancelBtn=this.el.querySelector(".".concat("switcher-tabs__cancel-btn")),this.cancelBtn.addEventListener("click",e=>{e.preventDefault(),this.baseSearchBarsMap[this.currentType].hideExpandedSearch()})}_initCollapsibleSwitcher(){this.collapsibleSwitcher=new Z(this.switcherTriggerAndTabs,{dropdownContentEl:this.dropdownList,dropdownTriggerEl:this.dropdownTrigger}),this.switcherTriggerAndTabs.addEventListener("open",()=>this._openSwitcher()),this.switcherTriggerAndTabs.addEventListener("close",()=>this._closeSwitcher()),this._updatePlaceholderText()}_openSwitcher(){this.dropdownList.addEventListener("click",this._handleSwitcherClick),this.switcherTabs.classList.remove("hide-on-desktop"),this.switcherTabs.classList.add("show-on-desktop"),this.dropdownList.querySelector("button").focus()}_closeSwitcher(){this.dropdownList.removeEventListener("click",this._handleSwitcherClick),this.switcherTabs.classList.remove("show-on-desktop"),this.switcherTabs.classList.add("hide-on-desktop")}_handleSwitcherClick(e){if(!e.target.classList.contains("switcher-tabs__button"))return;const t=e.target.getAttribute("data-switcher-type"),i=e.target.parentNode;t&&i&&this.currentType!==t?(this.collapsibleSwitcher.collapsible.currentListItem=x(e.target,"li"),this._switchTo(t,i)):this.collapsibleSwitcher.collapsible.close()}_switchTo(e,t){this._updateActiveTab(t),this._updatePlaceholderText(),this.el.setAttribute("data-current-search-type",e),this.collapsibleSwitcher.collapsible.close(),this.baseSearchBarsMap[this.currentType].isExpanded?this.baseSearchBarsMap[e].showExpandedSearch():this.baseSearchBarsMap[e].hideExpandedSearch(),this.currentType=e}_updateActiveTab(e){const t=this.el.querySelector(".".concat(nt));if(t){t.querySelector(".".concat("switcher-tabs__button")).setAttribute("aria-selected","false"),t.classList.remove(nt)}if(e.classList.contains("switcher-tabs__tab")){e.classList.add(nt);e.querySelector(".".concat("switcher-tabs__button")).setAttribute("aria-selected","true")}}_updatePlaceholderText(){let e=this.el.querySelector(".".concat(nt));if(e){let t=e.querySelector(".".concat("switcher-tabs__button"));this.dropdownPlaceholderText.textContent=t.textContent}}}class ot{constructor(e,{typeaheadApiBaseUrl:t,clearRecentSearchApiBaseUrl:i,shouldSearchOnSelect:n=!0,onCloseExpandedSearch:s}={}){if(this.el=e,!this.el)throw new Error("No element passed into SearchBar");this.typeaheadApiBaseUrl=t;const o=this.el.querySelector(".".concat("search-bar__live-text"));this.shouldSearchOnSelect=n,this.placeholderEl=this.el.querySelector(".".concat("search-bar__placeholder"));const r=!!this.el.querySelector(".".concat("search-bar__mobile-wrapper"));if(this.baseSearchBarsMap=U(this.el.querySelectorAll(".".concat("base-search-bar"))).reduce((e,t)=>{const i=new Qe(t,this.el,this.placeholderEl,{onCloseExpandedSearch:s,isMobileDevice:r});return e[i.type]=i,e},{}),t){this.baseSearchBarFormEl=this.baseSearchBarsMap.JOBS.el.querySelector(".base-search-bar__form"),this.geoIdInputEl=this.el.querySelector('input[name="geoId"]');const e=this.el.querySelector(".keywords-typeahead-input");new Xe(e,{generateApiUrl:this._generateKeywordsTypeaheadApiUrl.bind(this),liveTextEl:o,onSelect:this._onKeywordsTypeaheadSelect.bind(this)});e.querySelector(".".concat(Ze.dropdown))&&new it(e,{clearRecentSearchApiBaseUrl:i,liveTextEl:o}),new Xe(this.el.querySelector(".location-typeahead-input"),{generateApiUrl:this._generateLocationTypeaheadApiUrl.bind(this),liveTextEl:o,onSelect:this._onLocationTypeaheadSelect.bind(this),onInput:this._onLocationTypeaheadInput.bind(this)}),Array.from(this.el.querySelectorAll(".".concat(Be,".search-input"))).forEach(e=>{new Ge(e);e.querySelector(".".concat(Ze.dropdown))&&new it(e,{clearRecentSearchApiBaseUrl:i,liveTextEl:o})})}else Array.from(this.el.querySelectorAll(".".concat(Be))).forEach(e=>new Ge(e));this.switcher=new st(e,this.baseSearchBarsMap,this.placeholderEl),this.setupSearchInputFocusTracking()}_generateKeywordsTypeaheadApiUrl(e){return"".concat(this.typeaheadApiBaseUrl,"?query=").concat(window.encodeURIComponent(e))}_generateLocationTypeaheadApiUrl(e){return"".concat(this.typeaheadApiBaseUrl,"?query=").concat(window.encodeURIComponent(e),"&typeaheadType=GEO&geoTypes=POPULATED_PLACE,ADMIN_DIVISION_2,MARKET_AREA,COUNTRY_REGION")}_onKeywordsTypeaheadSelect(){this.shouldSearchOnSelect&&this._submitForm()}_onLocationTypeaheadSelect(e){this.geoIdInputEl&&(this.geoIdInputEl.value=e.dataset.id),this.shouldSearchOnSelect&&this._submitForm()}_onLocationTypeaheadInput(){this.geoIdInputEl&&(this.geoIdInputEl.value="")}_submitForm(){this.baseSearchBarFormEl&&this.baseSearchBarFormEl.submit()}setupSearchInputFocusTracking(){this.el.addEventListener("dismissableInputFocused",e=>{const t=e.target.getAttribute("data-tracking-control-name");t&&window.tracking&&window.tracking.then(e=>{e.fireTrackingEvent("SearchInputFocusEvent",{header:{},controlUrn:"urn:li:control:".concat(S(document),"-").concat(t)})})})}}class rt{constructor(e,t,{isShown:i=!0}={}){if(!e)throw Error("An element must be provided to the dismissable element");if(!t)throw Error("A dismiss button must be provided to the dismissable element");this.el=e,this.dismissBtn=t,this._dismissEvent=e=>this.dismiss(e),i&&this.show()}show(){this.el.classList.add("show"),this.el.classList.remove("dismiss"),this.dismissBtn.addEventListener("click",this._dismissEvent),G(this.el,"show")}dismiss(e){this.el.classList.remove("show"),this.el.classList.add("dismiss"),G(this.el,"dismiss",e),this.dismissBtn.removeEventListener("click",this._dismissEvent)}}function at(){const e=(e="")=>!e||0===e.trim().length;return e.errorMessageSuffix="error_empty",e}function lt(e){const t=(t="")=>t.length<e;return t.errorMessageSuffix="error_too_short",t}function ct(e){const t=(t="")=>t.length>e;return t.errorMessageSuffix="error_too_long",t}const ht={session_key:[at(),lt(3),ct(128)],session_password:[at(),lt(6),ct(400)]};function dt(e,t){const i=ht[e];if(!i)throw new Error("No validation rules for element named ".concat(e));for(let e=0;e<i.length;e++)if(i[e](t))return i[e].errorMessageSuffix}var ut=window||e;const pt=/^((?!\.(stg|corp)).)*\.linkedin\.(com|cn)$/;function gt(){const e=ut.location?ut.location.hostname:"";return pt.test(e)}function mt(){return gt()?"platform.linkedin.com":"platform.linkedin-ei.com"}function _t(){const e=ut.location?ut.location.hostname:"";return/\.cn$/.test(e)}function ft(e,t,i,n=!0){if("function"!=typeof t||"function"!=typeof i)throw new TypeError("One of the specified callbacks is not a function.");const s=new ut.XMLHttpRequest;s.withCredentials=n,s.open("GET",e,!0),s.onreadystatechange=function(){this.readyState===this.DONE&&(200===this.status&&"function"==typeof t?t(this.responseText):i(this))},s.send()}function Et(e){return function(){let e=T();return!e||e.consent.optedInConsentMap.ADVERTISING}()&&function(e){return e["compliance.isGDPROptIn"]}(e)}function bt(e){return function(){let e=T();return!e||e.consent.optedInConsentMap.ANALYTICS_AND_RESEARCH}()}function vt(e){return function(){let e=T();return!e||e.consent.optedInConsentMap.FUNCTIONAL}()}function wt(e){for(let t=1;t<arguments.length;t++){const i=arguments[t];if(i){const t=Object.keys(i);for(let n=0;n<t.length;n++){const s=t[n];e[s]=i[s]}}}return e}let yt;const Tt={},St={};ut.utag_data||(ut.utag_data={});function It(){return"https://".concat(gt()?_t()?"www.linkedin.cn":"www.linkedin.com":_t()?"www.linkedin-ei.cn":"www.linkedin-ei.com").concat("/litms/api/metadata/user")}function Lt(){return function(e){let t=wt({},e);return t["compliance.isAdvertisingOptIn"]=Et(t),t["compliance.isAnalyticsAndResearchOptIn"]=bt(),t["compliance.isFunctionalOptIn"]=vt(),t}(Tt)}function Ot(e){if(!St[e]){const t=function(e){return"https://".concat(mt(),"/litms/whitelist/").concat(encodeURIComponent(e))}(e),i=new Promise((e,i)=>{ft(t,t=>{e(JSON.parse(t))},e=>{i(e)},!1)});St[e]=i}return St[e]}const kt="undefined"!=typeof window&&window&&"node"!==window.appEnvironment;let At;function Ct(e="main",t){return function(){if(void 0===At&&kt){const e=ut.document.cookie.match(/litms_utag_override=([^;]+)/);At=e?e[1]:""}return At}().length>0?At:function(e,t=5){let i=null;"string"==typeof e&&(i="https://".concat(mt(),"/litms/utag/").concat(e,"/utag.js?cb=").concat(function(e){const t=new ut.Date;t.setSeconds(0),t.setMilliseconds(0);const i=Math.floor(t.getMinutes()/e)*e;return t.setMinutes(i),t.getTime()}(t)));return i}(e,t)}function Pt(e,t,i){e.onLoadRulesRunOnce(i),e.view(wt({},t,Lt()))}function Nt(e,t,i){e.onLoadRulesRunOnce(i),e.link(wt({},t,Lt()))}function Rt(e,t){if(function(e){ut.utag=e}(e),t instanceof Array&&t.length>0){const i=t.length;for(let n=0;n<i;n++){const i=t.shift();i.isControlInteraction?Nt(e,i.data,i.callback):Pt(e,i.data,i.callback)}}}function xt(e,t){!function(e){return"object"==typeof e&&"function"==typeof e.fireTrackingEvent}(e)?console.error("Unable to fire tracking event"):e.fireTrackingEvent(t.info.name,t.body)}function Ft(e,t){return"urn:li:externalMarketingTag:(".concat(function(e){const t=e.data["ut.profile"],i=e.cfg.v;return"urn:li:tagManagementSystemProfile:(".concat("tealium",",").concat(t,",").concat(i,")")}(e),",").concat(parseInt(t),")")}function Ut(e){const t=function(e){return Object.keys(e.loader.cfg).filter(t=>1===e.loader.cfg[t].send&&0!==e.loader.cfg[t].load)}(e).map(t=>function(e,t){return{tagUrn:Ft(e,t)}}(e,t));if(0!==t.length)return{info:{name:"ExternalMarketingTagFireEvent"},body:{header:{},requestHeader:{},tags:t}}}ut.utag_cfg_ovrd=ut.utag_cfg_ovrd||{},ut.utag_cfg_ovrd.noview=!0,ut.utag_cfg_ovrd.nocookie=!0;const Dt=kt&&new RegExp("bot|google|aolbuild|baidu|bing|msn|duckduckgo|teoma|slurp|yandex|sogou|facebook|alexa","i").test(ut.navigator.userAgent),Bt={};class qt{constructor({profileName:e,tracking2Instance:t,enableWhitelisting:i=!1,cacheBusterInterval:n}={}){this.isInitialized=!1,this.isWhitelistingEnabled=!1,this._whitelistReadyPromise=Promise.resolve({}),this.isContainerTagLoaded=!1,this._queue=[],this.whitelist={pageKey:{},controlUrn:{}},this.tracking2Instance=t,this.profileName=e,this.enableWhitelisting=i,this.cacheBusterInterval=n}initialize(){return this._shouldInitialize()?this.isInitialized?(console.warn("Initialize should not be called more that once"),this.initializePromise.then()):(this.isInitialized=!0,this.initializePromise=new Promise((e,t)=>{this.enableWhitelisting?(this.isWhitelistingEnabled=!0,this._onInitializeSuccessCallback=e,this._onInitializeFailureCallback=t,this._whitelistReadyPromise=Ot(this.profileName).then(e=>this._processWhitelistResult(e)).catch(e=>console.error("Unable to retrieve whitelists for profile : ".concat(this.profileName),e))):this._loadContainerTag(e,t)}),this.profileName&&(Bt[this.profileName]=this),this.initializePromise):Promise.resolve()}_processWhitelistResult(e){Object.keys(e).forEach(t=>this.addValuesToWhitelist(t,e[t]))}_loadContainerTag(e,t){void 0!==ut.utag&&(ut.utag=void 0),void 0!==ut.utag_data&&(ut.utag_data=void 0);const i=function(){if(!yt){const e=It();yt=new Promise((t,i)=>{ft(e,e=>{try{t(JSON.parse(e))}catch(e){console.error("Invalid JSON format of userSettings"),i(e)}},e=>{i(e)})})}return yt}().then(e=>{Object.keys(e).forEach(t=>{!function(e,t){const i="string"!=typeof t?"":"".concat(t,".");"object"==typeof e&&Object.keys(e).forEach(t=>{Tt[i+t]=e[t]})}(e[t],t)})}).catch(e=>{console.error("Unable to get user settings while calling loading container tag",e)}),n=(s=Ct(this.profileName,this.cacheBusterInterval),new Promise(e=>{const t=ut.document.createElement("script");t.type="text/javascript",t.src=s,t.async=!0,t.onload=e,ut.document.getElementsByTagName("head")[0].appendChild(t)}));var s;Promise.all([i,n]).then(()=>{this.isContainerTagLoaded=!0,this._uTag=ut.utag,function(e){const t=[];e.onLoadRulesRunOnce=function(e){t.push(e)};const i=e.loader.initcfg;e.loader.initcfg=function(){if(i.call(this,arguments),t.length>0){t.shift()()}}}(this._uTag),this._processQueuedEvents();const t={info:{name:"TagManagementSystemLoadEvent"},body:{header:{},requestHeader:{}}};"object"==typeof this.tracking2Instance&&xt(this.tracking2Instance,t),e(t)}).catch(e=>{console.error("Unable to complete loading container tag",e),t()})}_shouldInitialize(){return!Dt}_shouldProcessEvent(e){return Dt?Promise.resolve(!1):this.isWhitelistingEnabled?new Promise(t=>{this._whitelistReadyPromise.then(()=>{t(this._isEventWhitelisted(e))})}):Promise.resolve(!0)}_isEventWhitelisted(e){return void 0!==e.controlUrn?this._isEventWhitelistedByControlUrn(e):this._isEventWhitelistedByPageKey(e)}_isEventWhitelistedByPageKey(e){return void 0!==this.whitelist.pageKey[e.pageKey]}_isEventWhitelistedByControlUrn(e){return void 0!==this.whitelist.controlUrn[e.controlUrn]}addValuesToWhitelist(e,t){"string"==typeof e&&Array.isArray(t)&&void 0!==this.whitelist[e]&&t.forEach(t=>{this.whitelist[e][t]=!0})}_processQueuedEvents(){this.isContainerTagLoaded?Rt(this._uTag,this._queue):this.isInitialized&&this.isWhitelistingEnabled&&this._loadContainerTag(this._onInitializeSuccessCallback,this._onInitializeFailureCallback)}_fireAuditEvent(){const e=Ut(this._uTag);return void 0!==this.tracking2Instance&&void 0!==e&&xt(this.tracking2Instance,e),e}_createCallbackForAuditEvent(e){const t=this;return function(){const i=t._fireAuditEvent();"function"==typeof e&&e(i)}}trackPageView(e,t){return this._shouldProcessEvent(e).then(i=>{i&&(this._queue.push({isControlInteraction:!1,data:e,callback:this._createCallbackForAuditEvent(t)}),this._processQueuedEvents())})}trackControlInteraction(e,t){return this._shouldProcessEvent(e).then(i=>{i&&(this._queue.push({isControlInteraction:!0,data:e,callback:this._createCallbackForAuditEvent(t)}),this._processQueuedEvents())})}}function jt({event:e,litmsInstance:t,pageKey:i}){const n=e.target.getAttribute("data-tracking-control-name"),s=e.target.hasAttribute("data-tracking-litms");n&&s&&t.trackControlInteraction({controlUrn:"urn:li:control:".concat(i,"-").concat(n)})}class Mt{constructor(e){if(this.trackingInstance=e,this.pageKey=S(document),this.litmsProfileName=function(e){const t=e.querySelector('meta[name="litmsProfileName"]');return t?t.content:""}(document),!this.litmsProfileName)throw Error('Page missing "litmsProfileName" meta tag.');this.litmsInstance=new qt({tracking2Instance:this.trackingInstance,profileName:this.litmsProfileName}),this.litmsInstance.initialize(),this.clickEventListener=e=>jt({event:e,litmsInstance:this.litmsInstance,pageKey:this.pageKey}),this.keydownEventListener=e=>{"Enter"!==e.key&&" "!==e.key&&"Spacebar"!==e.key||jt({event:e,litmsInstance:this.litmsInstance,pageKey:this.pageKey})},document.body.addEventListener("click",this.clickEventListener,!0),document.body.addEventListener("keydown",this.keydownEventListener,!0)}trackPageView({pageKey:e=""}={}){if(!("string"==typeof e||e instanceof String))throw new Error("The pageKey is not a string!");this.litmsInstance&&this.litmsInstance.trackPageView({pageKey:e||this.pageKey})}}let Ht;function Gt(e){if(!Ht){if(!e)throw new Error("No trackingInstance passed in!");Ht=new Mt(e)}return Ht}class Jt{constructor(e,{customValidate:t,fireTrackingOnInit:i=!0}={}){if(!e)throw Error("An element must be provided to sign in form");this.el=e,this._customValidate=t,this._fireTrackingOnInit=i,this.showText=ke("i18n_sign_in_form_show_text"),this.showLabelText=ke("i18n_sign_in_form_show_label"),this.hideText=ke("i18n_sign_in_form_hide_text"),this.hideLabelText=ke("i18n_sign_in_form_hide_label"),this.usernameEl=this.el.querySelector("input[name=".concat("session_key","]")),this.passwordEl=this.el.querySelector("input[name=".concat("session_password","]")),this.usernameElId=this.usernameEl.id,this.passwordElId=this.passwordEl.id,this.usernameMsgEl=this.el.querySelector(".".concat("guest-input__message","[for=").concat(this.usernameElId,"]")),this.passwordMsgEl=this.el.querySelector(".".concat("guest-input__message","[for=").concat(this.passwordElId,"]")),this.sessionRedirectEl=this.el.querySelector("input[name=".concat("session_redirect","]")),this.passwordVisibilityToggle=this.el.querySelector(".".concat("sign-in-form__password-visibility-toggle")),this.anonymousLoginToggleInput=this.el.querySelector(".anonymous-login-toggle input"),this.passwordVisibilityToggle.addEventListener("click",this._togglePasswordVisibility.bind(this)),this.el.addEventListener("submit",e=>{if(e.preventDefault(),!this._validate()){if(this._customValidate)return this._customValidate(this.el);if(this.anonymousLoginToggleInput&&this.anonymousLoginToggleInput.checked){const e=this.sessionRedirectEl.value,t=j("/public-profile/settings/anonymousLogin","csrfToken",k(H("JSESSIONID")));this.sessionRedirectEl.value=j(t,"originalSessionRedirect",e),localStorage.setItem("voyager-web:anonymous-login",Date.now())}this.el.submit()}}),window.tracking&&window.tracking.then(e=>{const t=S(document).replace("_jsbeacon",""),i=t+"_login-form",n=this.el.querySelector(".sign-in-form__submit-btn"),s="".concat(t,"-").concat(n.dataset.trackingControlName),o=e.state&&e.state.currentPageInstance||{},r="".concat(o.pageUrn,";").concat(o.trackingId),a=this._createHiddenInputElement("pageInstance",r),l=this._createHiddenInputElement("controlId",s);this.el.appendChild(l),this.el.appendChild(a),this._fireTrackingOnInit&&this.fireTracking(e,i)})}fireTracking(e,t){de(e,"ajax",t),Gt(e).trackPageView({pageKey:t})}setUsernameInputValue(e){this.usernameEl.value=e}resetFormState(){this.usernameEl.value="",this.passwordEl.value="","text"===this.passwordEl.getAttribute("type")&&this._togglePasswordVisibility()}_createHiddenInputElement(e,t){const i=document.createElement("input");return i.setAttribute("type","hidden"),i.setAttribute("name",e),i.setAttribute("value",t),i}_togglePasswordVisibility(){"password"===this.passwordEl.getAttribute("type")?(this.passwordEl.setAttribute("type","text"),this.passwordVisibilityToggle.innerText=this.hideText,this.passwordVisibilityToggle.setAttribute("aria-label",this.hideLabelText)):(this.passwordEl.setAttribute("type","password"),this.passwordVisibilityToggle.innerText=this.showText,this.passwordVisibilityToggle.setAttribute("aria-label",this.showLabelText))}_validate(){const e=dt(this.usernameEl.name,this.usernameEl.value);if(e){this.usernameEl.parentNode.classList.add("guest-input__input-container--error"),this.usernameMsgEl.classList.remove("hidden");const t="".concat("i18n_username","_").concat(e);return this.usernameMsgEl.innerText=ke(t),this.usernameEl.focus(),!0}this.usernameEl.parentNode.classList.remove("guest-input__input-container--error"),this.usernameMsgEl.classList.add("hidden");const t=dt(this.passwordEl.name,this.passwordEl.value);if(t){this.passwordEl.parentNode.classList.add("guest-input__input-container--error"),this.passwordMsgEl.classList.remove("hidden");const e="".concat("i18n_password","_").concat(t);return this.passwordMsgEl.innerText=ke(e),this.passwordEl.focus(),!0}this.passwordEl.parentNode.classList.remove("guest-input__input-container--error"),this.passwordMsgEl.classList.add("hidden")}}!function(){if("function"==typeof window.CustomEvent)return!1;window.CustomEvent=function(e,t){t=t||{bubbles:!1,cancelable:!1,detail:null};var i=document.createEvent("CustomEvent");return i.initCustomEvent(e,t.bubbles,t.cancelable,t.detail),i}}(),function(){if("function"==typeof window.EventTarget)try{return!new e}catch(e){}const e=function(){this.listeners={}};e.prototype.listeners=null,e.prototype.addEventListener=function(e,t){e in this.listeners||(this.listeners[e]=[]),this.listeners[e].push(t)},e.prototype.removeEventListener=function(e,t){if(e in this.listeners)for(var i=this.listeners[e],n=0,s=i.length;n<s;n++)if(i[n]===t)return void i.splice(n,1)},e.prototype.dispatchEvent=function(e){if(!(e.type in this.listeners))return!0;for(var t=this.listeners[e.type].slice(),i=0,n=t.length;i<n;i++)t[i].call(this,e);return!e.defaultPrevented},window.EventTarget=e}();const Kt="990339570472-k6nqn1tpmitg8pui82bfaun3jrpmiuhs.apps.googleusercontent.com",Vt={GOOGLE_ERROR:"googleError",GOOGLE_USER_FETCHED:"googleUserFetched",INITIALIZED:"initialized",PROMPT_MOMENT:"promptMomentNotification",TOKEN_FETCHED:"tokenFetched"},Wt={INITIALIZATION:"initialization",AUTHENTICATION:"authentication"},{GOOGLE_ERROR:zt,GOOGLE_USER_FETCHED:Yt,INITIALIZED:Qt}=Vt,{INITIALIZATION:Xt,AUTHENTICATION:Zt}=Wt;class $t extends EventTarget{constructor({libSrcPath:e,el:t,clientId:i=Kt}){if(super(),!t)throw TypeError("DOM element for Sign In button is required");if(this.libSrcPath=e,this.el=t,this.clientId=i,window.gapi)this._initializeGoogleAuth();else{if(!e)throw TypeError("Google Sign In lib not already loaded on the page. libSrcPath is required to load the lib.");n=()=>{!function(e,t){const i=document.createElement("script");i.src=e,t&&(i.onload=t),document.head.appendChild(i)}(e,this._initializeGoogleAuth.bind(this))},"complete"===document.readyState?n():window.addEventListener("load",()=>{n()})}var n}_initializeGoogleAuth(){return gapi.auth2.init({client_id:this.clientId}).then(e=>{this.auth2=e,this._attachSignIn();const t=new CustomEvent(Qt);this.dispatchEvent(t)}).catch(e=>{const t={type:Xt,message:e.error},i=new CustomEvent(zt,{detail:t});this.dispatchEvent(i)})}_attachSignIn(){this.auth2.attachClickHandler(this.el,{},e=>{const t=new CustomEvent(Yt,{detail:this._getGoogleUserInformation(e)});this.dispatchEvent(t)},e=>{const t={type:Zt,message:e.error},i=new CustomEvent(zt,{detail:t});this.dispatchEvent(i)})}_getGoogleUserInformation(e){const t=e.getBasicProfile(),i=e.getAuthResponse().id_token;return{email:t.getEmail(),familyName:t.getFamilyName(),givenName:t.getGivenName(),id:t.getId(),idToken:i,imageUrl:t.getImageUrl()}}}const ei=Vt,ti=Wt,{GOOGLE_USER_FETCHED:ii,GOOGLE_ERROR:ni,INITIALIZED:si}=ei,{INITIALIZATION:oi}=ti;class ri{constructor(e,{initSuccess:t,initFailure:i}={}){if(!e)throw Error("Google sign in cta container/wrapper element must be provided");this.el=e,this.btnEl=this.el.querySelector(".google-sign-in-cta-widget__btn"),this.initSuccess=t,this.initFailure=i,this.loaderEl=this.el.querySelector(".loader"),this.loader=this.loaderEl&&new De(this.loaderEl),window.tracking&&window.tracking.then(e=>{const t=S(document).replace("_jsbeacon",""),i="".concat(t,"-").concat(this.btnEl.dataset.trackingControlName),n=e.state&&e.state.currentPageInstance||{},s="".concat(n.pageUrn,";").concat(n.trackingId),o=this._createHiddenInputElement("pageInstance",s),r=this._createHiddenInputElement("controlId",i);this.el.appendChild(r),this.el.appendChild(o)}),this.googleSignInPromise=this._createGoogleSignIn()}_createGoogleSignIn(){return window.lazyloader.then(e=>e.getLazyLoadedJavascriptModule("google-sign-in-lib")).then(()=>(this.googleSignInInstance=new $t({el:this.btnEl}),this.initSuccess&&"function"==typeof this.initSuccess&&this.googleSignInInstance.addEventListener(si,this.initSuccess),this.googleSignInInstance.addEventListener(ii,e=>{const{idToken:t}=e.detail;this._submitWithGoogle(t)}),this.googleSignInInstance.addEventListener(ni,e=>{const{type:t,message:i}=e.detail,n="google-sign-in-error--".concat(t,"-").concat(i);this._fireControlInteractionEvent(n),this.initFailure&&"function"==typeof this.initFailure&&t===oi&&this.initFailure()}),this.googleSignInInstance))}_fireControlInteractionEvent(e){window.tracking.then(t=>{t.fireControlInteractionEvent(e)})}_submitWithGoogle(e){this.googleIdTokenInput&&this.el.removeChild(this.googleIdTokenInput),this.googleIdTokenInput=this._createHiddenInputElement("googleIdToken",e),this.loader&&this.loader.show(),this.el.submit()}_createHiddenInputElement(e,t){const i=document.createElement("input");return i.setAttribute("type","hidden"),i.setAttribute("name",e),i.setAttribute("value",t),this.el.appendChild(i),i}}class ai{constructor(e,{daysCoolOff:t=30,dismissOnOutsideClick:i=!0,dismissOnScroll:n=!1,dismissBtnEl:s}={}){if(!e)throw Error("An element must be provided to sign in card");this.el=e,this.coolOffPeriod=24*t*60*60*1e3,this.dismissBtn=s||this.el.querySelector(".".concat("sign-in-card__dismiss-btn")),this._dismissEvent=e=>this._dismiss(e),this._interactionEvent=e=>this._interactionListener(e);if(window.innerWidth<769||(this.dismissOnOutsideClick=i,this.dismissOnScroll=n),!this._hideCard()){this.dismissable=new rt(this.el,this.dismissBtn,{isShown:!1});const e=this.el.querySelector(".sign-in-form");e&&new Jt(e);const t=this.el.querySelector(".google-sign-in-cta-widget");t?new ri(t,{initSuccess:this.dismissable.show.bind(this.dismissable),initFailure:this._onGoogleSignInInitFailure.bind(this)}):this.dismissable.show(),this._addEventListeners()}}_onGoogleSignInInitFailure(){const e=this.el.querySelector(".google-sign-in-cta-widget"),t=this.el.querySelector(".cta-modal__google-sign-in-container");t?this.el.removeChild(t):this.el.removeChild(e);this.el.querySelectorAll("[class*=".concat("--full-width","]")).forEach(e=>{e.className=e.className.replace("--full-width","")}),this.dismissable.show()}_addEventListeners(){this.el.addEventListener("dismiss",this._dismissEvent),this.dismissOnOutsideClick&&document.body.addEventListener("click",this._interactionEvent),this.dismissOnScroll&&window.addEventListener("scroll",this._interactionEvent)}_dismiss(e){this._hardDismissal(e)&&this._setCoolOff(e),this._removeEventListeners()}_removeEventListeners(){this.el.removeEventListener("dismiss",this._dismissEvent),this.dismissOnOutsideClick&&document.body.removeEventListener("click",this._interactionEvent),this.dismissOnScroll&&window.removeEventListener("scroll",this._interactionEvent)}_interactionListener(e){this.el.contains(e.target)||this.dismissable.dismiss()}_setCoolOff(){try{localStorage.setItem("sign-in-hidden",Date.now())}catch(e){return""}}_hideCard(){try{const e=localStorage.getItem("sign-in-hidden");if(e){return Date.now()-e<this.coolOffPeriod||(localStorage.removeItem("sign-in-hidden"),!1)}}catch(e){return!1}}_hardDismissal(e){return e.detail&&this.dismissBtn.contains(e.detail.target)}}const li=".".concat("show-more-less","__list"),ci=".".concat("show-more-less","__more-button"),hi=".".concat("show-more-less","__less-button"),di="".concat("show-more-less","__list--hide-after"),ui="".concat("show-more-less","__button--hide");class pi{constructor(e,t=(e=>e.querySelector(W))){if(!e)throw Error("An element must be provided to ShowMoreLess");this.el=e,this.listEl=this.el.querySelector(li),this._getFocusItemFromListItem=t,this.maxNumToShow=parseInt(this.listEl.getAttribute("data-max-num-to-show")),this.hideClass="".concat(di,"-").concat(this.maxNumToShow),this.showMoreButton=this.el.querySelector(ci),this.showLessButton=this.el.querySelector(hi),this._attachEventListeners(),this.firstHiddenListItem=this.listEl.children[this.maxNumToShow],this.isExpanded=!this.listEl.classList.contains(this.hideClass),new V(e,this.listEl,{mainButton:this.showMoreButton,closeButton:this.showLessButton},{isOpen:this.isExpanded})}_attachEventListeners(){this.el.addEventListener("open",()=>this._showElements()),this.el.addEventListener("close",()=>this._hideElements()),this.listEl.addEventListener("focus",e=>this._focusItem(e))}_focusItem({target:e}){if(e){let t=this._getFocusItemFromListItem(e);t&&t.focus()}}_showElements(){this.listEl.classList.remove(this.hideClass),this._toggleButtons(!1),this._focusItem({target:this.firstHiddenListItem})}_hideElements(){this.listEl.classList.add(this.hideClass),this._toggleButtons(!0)}_toggleButtons(e){e?(this.showLessButton.classList.add(ui),this.showMoreButton.classList.remove(ui)):(this.showLessButton.classList.remove(ui),this.showMoreButton.classList.add(ui))}}const gi="roo:event:close",mi="roo:event:ready",_i="roo:event:nodeRendered",fi="roo:event:noTargetMatch",Ei="roo:showSurvey";class bi{constructor(e,{isDev:t=!1,customTriggerFn:i,triggerTime:n=7e3}={}){if(!e)throw new Error("You must pass an element to initialize qualaroo");if(this.el=e,this.isDev=t,this.qualarooIframe=this.el.querySelector(".qualaroo__iframe"),this.surveyId=this.qualarooIframe.getAttribute("data-survey-id"),this.channelId=this.qualarooIframe.getAttribute("data-channel-id"),!this.surveyId||!this.channelId)throw new Error("Channel Id and Survery Id must be present on iframe element");i?i.call(this):this._setupTrigger(n),window.addEventListener("message",e=>{this._handleQualarooMessage(e)})}_setupTrigger(e){let t,i=!1;const n=()=>{clearTimeout(t),t=setTimeout(()=>{this.showSurvey(),i=!0},e)},s=M(function(){i?window.removeEventListener("scroll",s):n()}.bind(this),250);window.addEventListener("scroll",s),n()}_handleQualarooMessage({origin:e,data:t}){const[i,n,,,s,o]=t;if("https://linkedin.cdn.qualaroo.com"===e&&(i||n)){if(i!==this.channelId)throw new Error("Qualaroo channelId does not match");switch(n){case gi:this.isRendered=!1;break;case _i:o&&s&&(this.isRendered=!0,this.height=o,this.width=s);break;case fi:console.log("No Target Match");break;case mi:this.isDev?this.qualarooIframe.contentWindow.postMessage([Ei,this.surveyId,!0],"https://linkedin.cdn.qualaroo.com"):this.qualarooIframe.contentWindow.postMessage([Ei,this.surveyId,!1],"https://linkedin.cdn.qualaroo.com")}}}set height(e){this.qualarooIframe.height=e}set width(e){this.qualarooIframe.width=e}showSurvey(){this.el.classList.add("show")}}class vi{constructor(e=document.querySelector("header"),{marginApplied:t=!0}={}){if(!e)throw Error("A header element is required to instantiate a StickyNav");if(!e.querySelector("nav"))throw Error("The header must contain a 'nav' element in order to instantiate a StickyNav");e.classList.add("sticky-nav");let i=8;if(Ye()){const t=e.querySelector(".search-bar");t&&(i=t.getBoundingClientRect().height)}return new Ce(e,{exposeStickyState:!0,isBottom:!1,scrollThreshold:i,marginApplied:t})}}var wi;!function(e){e.ProductName="productName",e.UntrackedResponseCodes="untrackedResponseCodes",e.TrackedResponseCodes="trackedResponseCodes"}(wi||(wi={}));new Set(Object.values(wi));Error;var yi="aria-[a-z0-9_\\-]+|class|data-[a-z0-9_\\-]+|dir|id|role|tabindex",Ti=function(){if("undefined"==typeof document)return!0;return"textContent"in document.createElement("div")}()?"textContent":"innerText",Si=["b","del","em","i","s","strong","sub","sup"],Ii=Si.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"]),Li=[yi,"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 Oi(){}var ki,Ai;Ai=/[&<>"'\u0000\\=]/g,ki={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","\0":"�","\\":"&#92;","=":"&#61;"},function(){var e,t,i=/&(?:([a-z0-9]+)|#x([\da-f]{1,6})|#(\d{1,8}));/gi;if("undefined"==typeof document)return function(){throw new Error("document is undefined (i.e. you are probably in Node.js)")};e=document.createElement("div");var n={nbsp:" ",lt:"<",gt:">",amp:"&",quot:'"'};t="function"==typeof String.fromCodePoint?function(e){return String.fromCodePoint(e)}:function(e){return e<=65535?String.fromCharCode(e):"�"}}();var Ci=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)};var Pi,Ni=Array.prototype.forEach?function(e,t){Array.prototype.forEach.call(e,t)}:function(e,t){for(var i=0,n=e.length;i<n;i++)t(e[i],i)};function Ri(e){e=Ci(e)?e:[e];var t,i,n,s=0,o="<(?!/?";return o+="(?:",Ni(e,(function(e,r){t=e.tags||Ii,i=e.attrs||Li,n=e.checkUrlAttrs||!1,0!==r&&(o+="|"),o+="(?:"+t.join("|")+")",o+="(?:",o+="[ \t\r\n]*",o+="|[ \t\r\n]+",o+="(?:(?:",o+="(?:"+i+")(?:=([\"'])[^'\"<>]*\\"+ ++s+")?",n&&(o+="|(?:href|src)=([\"'])(?:(?:https?|ftp|mailto|invalid)(?::|&#(?:58|x3a);)|(?:data:image/(?:gif|jpg|jpeg|png);base64,)|[/.#?]|&#(?:35|4[67]|63|x(?:2[3ef]|3f));)[^'\"<>]*\\"+ ++s),o+=")[ \t\r\n]*)+",o+=")"})),o+=")",o+="/?>)",new RegExp(o,"i")}function xi(e){return Ri({tags:e=e||Ii,checkUrlAttrs:!0})}function Fi(e,t){var i=(t=t||{}).allowTags,n=!1!==t.hasCustomElementMarkup;return i?!xi(i).test(e):n?!Fi.R_UNSAFE_CUSTOM_ELEMENT.test(e):!Fi.R_UNSAFE_HTML.test(e)}function Ui(e){return e.replace(/<[^>]*>|[<>'"&\\]/g,"")}Fi.R_UNSAFE_HTML=xi(),Fi.R_UNSAFE_CUSTOM_ELEMENT=Ri([{tags:Ii,checkUrlAttrs:!0},{tags:[(Pi={tag:"li-icon",attrs:"active|a11y-text|animate|color|size|type"}).tag],attrs:[yi,Pi.attrs].join("|"),checkUrlAttrs:!1}]);var Di={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,"",""]};Di.optgroup=Di.option,Di.tbody=Di.tfoot=Di.colgroup=Di.caption=Di.thead,Di.th=Di.td;function Bi(e,t){if(!(this instanceof Bi))return new Bi(e,t);(t=t||{}).allowTags=t.allowTags?t.allowTags.reduce((function(e,t){return e.concat(t)}),[]):null,this._string=e,this._options=t}Bi.prototype=function(e,t){for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i]);return e}(new Oi,{toString:function(){var e=this._string,t=this._stringVal,i=e;return void 0!==t?t:(Fi(e,this._options)||(i=e,e=Ui(e),pe("UnsafeString contains non-whitelisted tags or attributes.\nString: "+i,"error")),this._stringVal=e,e)}});const qi={getTrackingInstance:function({appId:e="seo",trackingCode:t,applicationInstance:i=null}={}){const n=S(document),s=q(window.location.href,"originalReferer"),o={appId:e,disableInitialAnchorPageViewEvent:!0,requestBatchingMaxWaitSeconds:.05,userRequestHeaderProperties:{},eventHeaderProperties:{}};return t&&(o.userRequestHeaderProperties.trackingCode=t),i&&i.applicationUrn&&i.version&&i.trackingId&&(o.eventHeaderProperties.clientApplicationInstance=i),s&&(o.userRequestHeaderProperties.referer=s),he||(he=ce.AppTrackingInstance.createFromPageKey(o,n)),he.generateTrackingId=ce.generateTrackingId,he},firePageViewEvent:de,fireViewModuleImpressionEvent:function(e,t){const i=L(document),n={};i&&(n.interfaceLocale=i);const s={header:{},requestHeader:n,moduleNames:t};e.fireTrackingEvent("ViewModuleImpressionEvent",s)}}}).call(this,i(2))},function(e,t,i){"use strict";i.d(t,"a",(function(){return s})),i.d(t,"d",(function(){return o})),i.d(t,"b",(function(){return r})),i.d(t,"c",(function(){return a})),i.d(t,"e",(function(){return l}));var n=i(0),s="base-search-bar",o="search__button",r="base-search-bar__form",a='data-searchbar-type="LEARNING"';class l extends n.g{constructor(e){if(!e)throw Error("An element must be provided to HomepageSearch");super(e,{typeaheadApiBaseUrl:"/homepage-guest/api/typeaheadHits",onCloseExpandedSearch:()=>{this._closeSwitcher()}}),this.searchTabs=this.el.querySelector(".".concat("search__tabs")),this.jobsSubmitBtn=this.el.querySelector(".".concat(o,"[").concat('data-searchbar-type="JOBS"',"]")),this.peopleSubmitBtn=this.el.querySelector(".".concat(o,"[").concat('data-searchbar-type="PEOPLE"',"]")),this.learningSubmitBtn=this.el.querySelector(".".concat(o,"[").concat(a,"]")),this.jobsSearch=this.el.querySelector(".".concat(s,"[").concat('data-searchbar-type="JOBS"',"]")),this.peopleSearch=this.el.querySelector(".".concat(s,"[").concat('data-searchbar-type="PEOPLE"',"]")),this.learningSearch=this.el.querySelector(".".concat(s,"[").concat(a,"]")),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._assignForm("PEOPLE",this.peopleSearch,this.peopleSubmitBtn),this._assignForm("JOBS",this.jobsSearch,this.jobsSubmitBtn),this._assignForm("LEARNING",this.learningSearch,this.learningSubmitBtn),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",e=>{e.target.getAttribute("data-switcher-type")&&this._removeNoScrollFromDesktop()})}_openSwitcher(e){if(this.switcherElArray.forEach(e=>e.classList.add("isExpanded")),this.searchBarPlaceholder.classList.remove("isExpanded"),this.switcher.baseSearchBarsMap[this.switcher.currentType].showExpandedSearch(),this._removeNoScrollFromDesktop(),e&&e.target.classList.contains("search__placeholder--location")){var t=this.switcher.baseSearchBarsMap[this.switcher.currentType].expandedEl.querySelector('.dismissable-input__input[name="location"]');t&&t.focus()}}_closeSwitcher(){this.switcherElArray.forEach(e=>e.classList.remove("isExpanded")),this.searchBarPlaceholder.classList.add("isExpanded"),this.searchBarPlaceholderButton.focus()}_removeNoScrollFromDesktop(){window.innerWidth>769&&document.body.classList.remove("no-scroll")}_assignForm(e,t,i){t&&i&&(t.querySelector(".".concat(r)).id=e,i.setAttribute("form",e))}}},function(e,t){var i;i=function(){return this}();try{i=i||new Function("return this")()}catch(e){"object"==typeof window&&(i=window)}e.exports=i},function(e,t,i){"use strict";(function(e){i.d(t,"a",(function(){return Q})),i.d(t,"b",(function(){return ei})),i.d(t,"c",(function(){return ii}));var n=i(0);const s=/^http[s]?:\/\/(qprod\.)?www\.linkedin(?:-ei)?\.(com|cn)$/,o={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"},r={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"}},a=".third-party-join__container",l=".third-party-join__btn",c="hidden",h="src",d="required",u="FACEBOOK",p="GOOGLE",g="WECHAT";function m(e){"complete"===document.readyState?e():window.addEventListener("load",()=>{e()})}function _(e,t){const i=document.createElement("script");i.src=e,t&&(i.onload=t),document.head.appendChild(i)}!function(){if("function"==typeof window.CustomEvent)return!1;window.CustomEvent=function(e,t){t=t||{bubbles:!1,cancelable:!1,detail:null};var i=document.createEvent("CustomEvent");return i.initCustomEvent(e,t.bubbles,t.cancelable,t.detail),i}}(),function(){if("function"==typeof window.EventTarget)try{return!new e}catch(e){}const e=function(){this.listeners={}};e.prototype.listeners=null,e.prototype.addEventListener=function(e,t){e in this.listeners||(this.listeners[e]=[]),this.listeners[e].push(t)},e.prototype.removeEventListener=function(e,t){if(e in this.listeners)for(var i=this.listeners[e],n=0,s=i.length;n<s;n++)if(i[n]===t)return void i.splice(n,1)},e.prototype.dispatchEvent=function(e){if(!(e.type in this.listeners))return!0;for(var t=this.listeners[e.type].slice(),i=0,n=t.length;i<n;i++)t[i].call(this,e);return!e.defaultPrevented},window.EventTarget=e}();const f="990339570472-k6nqn1tpmitg8pui82bfaun3jrpmiuhs.apps.googleusercontent.com",E={GOOGLE_ERROR:"googleError",GOOGLE_USER_FETCHED:"googleUserFetched",INITIALIZED:"initialized",PROMPT_MOMENT:"promptMomentNotification",TOKEN_FETCHED:"tokenFetched"},b={INITIALIZATION:"initialization",AUTHENTICATION:"authentication"},v={SIGN_IN:"signin",SIGN_UP:"signup",USE:"use"},w={DISPLAY:"display",SKIPPED:"skipped",DISMISSED:"dismissed"},y={NOT_DISPLAYED:{BROWSER_NOT_SUPPORTED:"browser_not_supported",INVALID_CLIENT:"invalid_client",MISSING_CLIENT_ID:"missing_client_id",OPT_OUT_OR_NO_SESSION:"opt_out_or_no_session",SECURE_HTTP_REQUIRED:"secure_http_required",SUPPRESSED_BY_USER:"suppressed_by_user",UNREGISTERED_ORIGIN:"unregistered_origin",UNKNOWN_REASON:"unknown_reason"},SKIPPED:{AUTO_CANCEL:"auto_cancel",USER_CANCEL:"user_cancel",TAP_OUTSIDE:"tap_outside",ISSUING_FAILED:"issuing_failed"},DISMISSED:{CREDENTIAL_RETURNED:"credential_returned",CANCEL_CALLED:"cancel_called",FLOW_RESTARTED:"flow_restarted"}},{GOOGLE_ERROR:T,GOOGLE_USER_FETCHED:S,INITIALIZED:I}=E,{INITIALIZATION:L,AUTHENTICATION:O}=b;class k extends EventTarget{constructor({libSrcPath:e,el:t,clientId:i=f}){if(super(),!t)throw TypeError("DOM element for Sign In button is required");if(this.libSrcPath=e,this.el=t,this.clientId=i,window.gapi)this._initializeGoogleAuth();else{if(!e)throw TypeError("Google Sign In lib not already loaded on the page. libSrcPath is required to load the lib.");m(()=>{_(e,this._initializeGoogleAuth.bind(this))})}}_initializeGoogleAuth(){return gapi.auth2.init({client_id:this.clientId}).then(e=>{this.auth2=e,this._attachSignIn();const t=new CustomEvent(I);this.dispatchEvent(t)}).catch(e=>{const t={type:L,message:e.error},i=new CustomEvent(T,{detail:t});this.dispatchEvent(i)})}_attachSignIn(){this.auth2.attachClickHandler(this.el,{},e=>{const t=new CustomEvent(S,{detail:this._getGoogleUserInformation(e)});this.dispatchEvent(t)},e=>{const t={type:O,message:e.error},i=new CustomEvent(T,{detail:t});this.dispatchEvent(i)})}_getGoogleUserInformation(e){const t=e.getBasicProfile(),i=e.getAuthResponse().id_token;return{email:t.getEmail(),familyName:t.getFamilyName(),givenName:t.getGivenName(),id:t.getId(),idToken:i,imageUrl:t.getImageUrl()}}}const{GOOGLE_USER_FETCHED:A,PROMPT_MOMENT:C}=E;class P extends EventTarget{constructor({libSrcPath:e,containerId:t,context:i,clientId:n=f,cancelOnTapOutside:s=!0}){if(super(),!i)throw TypeError("context param is required to determine the message to show in Google One Tap");if(this.libSrcPath=e,this.containerId=t,this.cancelOnTapOutside=s,this.clientId=n,this.context=i,window.google&&window.google.accounts&&window.google.accounts.id)this._onGoogleApiLoad();else{if(!e)throw TypeError("Google One Tap lib is not already loaded on the page. libSrcPath is required to load the library");m(()=>{_(e,this._onGoogleApiLoad.bind(this))})}}_onGoogleApiLoad(){return google.accounts.id.initialize({client_id:this.clientId,prompt_parent_id:this.containerId,callback:this._handleCredentialResponse.bind(this),cancel_on_tap_outside:this.cancelOnTapOutside,context:this.context}),Promise.resolve().then(()=>this.promptOneTap())}_handleCredentialResponse(e){const t=e.credential;let i=this.context===v.SIGN_UP?this._getBasicProfile(t):{idToken:t};if(i){const e=new CustomEvent(A,{detail:i});this.dispatchEvent(e)}}_getBasicProfile(e){try{const t=new gapi.auth2.BasicProfile({id_token:e});return{email:t.getEmail(),familyName:t.getFamilyName(),givenName:t.getGivenName(),id:t.getId(),idToken:e,imageUrl:t.getImageUrl()}}catch(e){return this._dispatchSkippedEvent(e.message),null}}_dispatchSkippedEvent(e){const t={message:e,reason:y.SKIPPED.ISSUING_FAILED,type:w.SKIPPED},i=new CustomEvent(C,{detail:t});this.dispatchEvent(i)}promptOneTap(){google.accounts.id.prompt(e=>{const t={type:e.getMomentType(),reason:e.getNotDisplayedReason()||e.getSkippedReason()||e.getDismissedReason()},i=new CustomEvent(C,{detail:t});this.dispatchEvent(i)})}hideOneTap(){google.accounts.id.cancel()}}const N={CLIENT_ID:f,EVENTS:E,GOOGLE_ACCOUNT_URL:"https://accounts.google.com",GSI_ERROR_TYPES:b,GSI_ERROR_MESSAGES:{INIT_FAILED:"idpiframe_initialization_failed",POPUP_CLOSED_BY_USER:"popup_closed_by_user",ACCESS_DENIED:"access_denied",IMMEDIATE_FAILED:"immediate_failed"},GOT_CONTEXTS:v,GOT_PROMPT_MOMENT_REASONS:y,GOT_PROMPT_MOMENT_TYPES:w};function R(e,t=document.body){const i=t.querySelectorAll(e);i.length&&Array.from(i).forEach(e=>e.classList.remove(c))}function x(e,t=document.body){const i=t.querySelectorAll(e);i.length&&Array.from(i).forEach(e=>e.classList.add(c))}function F(e,t,i="",n=document.body){const s=U(e,n);s&&s.setAttribute(t,i)}function U(e="",t=document.body){if(e)return t.querySelector(e);console.warn("you attempted to get an element with a falsey selector: ".concat(e,", this is probably a bug."))}function D(e,t){const i=document.createElement("input");return i.setAttribute("type","hidden"),i.setAttribute("name",e),i.setAttribute("value",t),i}const B=n.r.getPageKey(document).replace("_jsbeacon","");function q(e,t,i){window.tracking&&window.tracking.then(s=>{if(t&&e.appendChild(function(e){return D("controlId","".concat(B,"-").concat(e.dataset.trackingControlName))}(t)),e.appendChild(function(e){const t=e.state&&e.state.currentPageInstance||{};return D("pageInstance","".concat(t.pageUrn,";").concat(t.trackingId))}(s)),i){const e="".concat(B,"_").concat(i);n.t.firePageViewEvent(s,"ajax",e),Object(n.o)(s).trackPageView({pageKey:e})}})}function j(e){window.tracking&&window.tracking.then(t=>{t.fireControlInteractionEvent(e)})}const{EVENTS:M,GOT_CONTEXTS:H,GOT_PROMPT_MOMENT_REASONS:G,GOT_PROMPT_MOMENT_TYPES:J}=N,{GOOGLE_USER_FETCHED:K,PROMPT_MOMENT:V}=M,{SIGN_IN:W}=H,z=[G.NOT_DISPLAYED.BROWSER_NOT_SUPPORTED,G.NOT_DISPLAYED.OPT_OUT_OR_NO_SESSION,G.NOT_DISPLAYED.SUPPRESSED_BY_USER],Y=[G.SKIPPED.AUTO_CANCEL,G.SKIPPED.TAP_OUTSIDE,G.SKIPPED.USER_CANCEL];class Q{constructor(e,{onNotDisplayed:t,onSkipped:i}={}){if(!e)throw Error("Google one tap form element must be provided");this.el=e,this.onNotDisplayed="function"==typeof t&&t,this.onSkipped="function"==typeof i&&i,this.containerEl=this.el.querySelector(".google-one-tap__container"),this.loaderEl=this.el.querySelector(".loader"),this.loader=this.loaderEl&&new n.e(this.loaderEl),q(this.el,this.containerEl),this.googleOneTapPromise=this._createGoogleOneTap()}_createGoogleOneTap(){return window.lazyloader.then(e=>e.getLazyLoadedJavascriptModule("google-one-tap-lib")).then(()=>(this.googleOneTapInstance=new P({cancelOnTapOutside:!1,context:W}),this.googleOneTapInstance.addEventListener(K,({detail:e})=>{this._submitWithGoogle(e.idToken)}),this.googleOneTapInstance.addEventListener(V,({detail:e})=>{const{reason:t,type:i}=e;let n="google-one-tap-moment--".concat(i);if(n=t?"".concat(n,"-").concat(t):n,j(n),t)if(i===J.SKIPPED){if(this.onSkipped)this.onSkipped(e);else if(-1===Y.indexOf(t))throw Error("GoogleOneTapError ".concat(i,": ").concat(t))}else if(i===J.DISPLAY)if(this.onNotDisplayed)this.onNotDisplayed(e);else if(-1===z.indexOf(t))throw Error("GoogleOneTapError ".concat(i,": ").concat(t))}),this.googleOneTapInstance))}_submitWithGoogle(e){this.googleIdTokenInput&&this.el.removeChild(this.googleIdTokenInput),this.googleIdTokenInput=D("googleIdToken",e),this.el.appendChild(this.googleIdTokenInput),this.loader&&this.loader.show(),this.el.submit()}}const{GOOGLE_USER_FETCHED:X,GOOGLE_ERROR:Z,INITIALIZED:$}=N.EVENTS,{INITIALIZATION:ee}=N.GSI_ERROR_TYPES;class te{constructor(e,{initSuccess:t}={}){if(!e)throw Error("Google sign in cta container/wrapper element must be provided");this.el=e,this.btnEl=this.el.querySelector(".google-sign-in-cta__button"),this.initSuccess=t,this.loaderEl=this.el.querySelector(".loader"),this.loader=this.loaderEl&&new n.e(this.loaderEl),q(this.el,this.btnEl),this.googleSignInPromise=this._createGoogleSignIn()}_createGoogleSignIn(){return window.lazyloader.then(e=>e.getLazyLoadedJavascriptModule("google-sign-in-lib")).then(()=>(this.googleSignInInstance=new k({el:this.btnEl}),this.googleSignInInstance.addEventListener(X,e=>{const{idToken:t}=e.detail;this._submitWithGoogle(t)}),this.initSuccess&&"function"==typeof this.initSuccess&&this.googleSignInInstance.addEventListener($,this.initSuccess),this.googleSignInInstance.addEventListener(Z,e=>{const{type:t,message:i}=e.detail;j("google-sign-in-error--".concat(t,"-").concat(i)),t===ee&&(this.btnEl.disabled=!0)}),this.googleSignInInstance))}_submitWithGoogle(e){this.googleIdTokenInput&&this.el.removeChild(this.googleIdTokenInput),this.googleIdTokenInput=D("googleIdToken",e),this.el.appendChild(this.googleIdTokenInput),this.loader&&this.loader.show(),this.el.submit()}}"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==e||"undefined"!=typeof self&&self;var ie=function(e,t,i){return e(i={path:t,exports:{},require:function(e,t){return function(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}(null==t&&i.path)}},i.exports),i.exports}((function(e,t){e.exports=function(){var e="aria-[a-z0-9_\\-]+|class|data-[a-z0-9_\\-]+|dir|id|role|tabindex",t="undefined"==typeof document||"textContent"in document.createElement("div")?"textContent":"innerText",i=["b","del","em","i","s","strong","sub","sup"],n=i.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"]),s=[e,"alt|checked|colgroup|cols|colspan|disabled|height|hidden|maxlength|method|multiple|name|placeholder|readonly|rel|required|rows|rowspan|spellcheck|target|title|width","border|caption|color|controls|coords|hreflang|label|lang|loop|marginheight|marginwidth|preload|reversed|type|usemap|clear|headers|ismap|start|datetime|accept|max|min|size|step|style|cellspacing|cellpadding"].join("|");function o(){}function r(e,t){if(t=t||"log",window&&window.jet&&"error"===t.toLowerCase())try{throw new Error(e)}catch(e){try{window.jet.error(e)}catch(e){}}"undefined"!=typeof console&&"function"==typeof console[t]&&console[t](e)}var a,l,c=(l=/[&<>"'\u0000\\=]/g,a={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","\0":"�","\\":"&#92;","=":"&#61;"},function(e){return null==e?null:e.toString().replace(l,(function(e){return a[e]}))}),h=function(){var e,i,n=/&(?:([a-z0-9]+)|#x([\da-f]{1,6})|#(\d{1,8}));/gi;if("undefined"==typeof document)return function(){throw new Error("document is undefined (i.e. you are probably in Node.js)")};e=document.createElement("div");var s={nbsp:" ",lt:"<",gt:">",amp:"&",quot:'"'};return i="function"==typeof String.fromCodePoint?function(e){return String.fromCodePoint(e)}:function(e){return e<=65535?String.fromCharCode(e):"�"},function(o){return null==o?null:(o+"").replace(n,(function(n,o,r,a){return o?(l=o,s.hasOwnProperty(l)?s[l]:(e.innerHTML="&"+l+";",c=e[t],s[l]=c,c)):r||a?i(parseInt(r||a,r?16:10)||65533):"�";var l,c}))}}(),d=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)};function u(e){return/[<&]/.test(e)}var p,g=Array.prototype.forEach?function(e,t){Array.prototype.forEach.call(e,t)}:function(e,t){for(var i=0,n=e.length;i<n;i++)t(e[i],i)};function m(e){e=d(e)?e:[e];var t,i,o,r=0,a="<(?!/?";return a+="(?:",g(e,(function(e,l){t=e.tags||n,i=e.attrs||s,o=e.checkUrlAttrs||!1,0!==l&&(a+="|"),a+="(?:"+t.join("|")+")",a+="(?:",a+="[ \t\r\n]*",a+="|[ \t\r\n]+",a+="(?:(?:",a+="(?:"+i+")(?:=([\"'])[^'\"<>]*\\"+ ++r+")?",o&&(a+="|(?:href|src)=([\"'])(?:(?:https?|ftp|mailto|invalid)(?::|&#(?:58|x3a);)|(?:data:image/(?:gif|jpg|jpeg|png);base64,)|[/.#?]|&#(?:35|4[67]|63|x(?:2[3ef]|3f));)[^'\"<>]*\\"+ ++r),a+=")[ \t\r\n]*)+",a+=")"})),a+=")",a+="/?>)",new RegExp(a,"i")}function _(e){return m({tags:e=e||n,checkUrlAttrs:!0})}function f(e,t){var i=(t=t||{}).allowTags,n=!1!==t.hasCustomElementMarkup;return i?!_(i).test(e):n?!f.R_UNSAFE_CUSTOM_ELEMENT.test(e):!f.R_UNSAFE_HTML.test(e)}function E(e){return e.replace(/<[^>]*>|[<>'"&\\]/g,"")}function b(e,t,i){if(null==e)return null;e=e.toString();var n=t?function(e,t){var i={};return e.replace(/\{([^}]+)\}/g,(function(e,n){var s,r=e;if(i.hasOwnProperty(n))return i[n];if(t.hasOwnProperty(n)){if(!((s="string"==typeof(r=t[n]))||r instanceof o||"number"==typeof r))throw new Error("Only strings, numbers, and jSecure types are allowed as placeholder replacements.");r=s?c(r):r.toString()}return i[n]=r,r}))}(e,t):e,s=e;return u(n)&&!f(n,i)&&(n=E(n),r("Content contains non-whitelisted tags or attributes:\nContent: "+s,"error")),n}function v(e,t){for(var i=+t.length,n=0,s=e.length;n<i;n++)e[s++]=t[n];return e.length=s,e}f.R_UNSAFE_HTML=_(),f.R_UNSAFE_CUSTOM_ELEMENT=m([{tags:n,checkUrlAttrs:!0},{tags:[(p={tag:"li-icon",attrs:"active|a11y-text|animate|color|size|type"}).tag],attrs:[e,p.attrs].join("|"),checkUrlAttrs:!1}]);var w={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,"",""]};w.optgroup=w.option,w.tbody=w.tfoot=w.colgroup=w.caption=w.thead,w.th=w.td;var y=/<([\w:]+)/;function T(e,t){var i,n,s,o,r,a,l,c=t.createDocumentFragment(),h=[];for(r=0,l=e.length;r<l;r++)if((o=e[r])||0===o)if("string"==typeof o){for(s=s||c.appendChild(t.createElement("div")),i=(y.exec(o)||["",""])[1].toLowerCase(),L(s,(n=w[i]||w._default)[1]+o+n[2]),a=n[0];a--;)s.lastChild&&s.lastChild.nodeType===Node.ELEMENT_NODE&&(s=s.lastChild);v(h,s.childNodes),(s=c.firstChild).textContent=""}else v(h,o.nodeType?[o]:o);for(c.textContent="",o=h[r=0];o;)c.appendChild(o),o=h[++r];return c}var S=b,I=b;function L(e,i,n){var s=b(i,n);return u(s)?e.innerHTML=s:e[t]=s,s}function O(e,t){if(!(this instanceof O))return new O(e,t);(t=t||{}).allowTags=t.allowTags?t.allowTags.reduce((function(e,t){return e.concat(t)}),[]):null,this._string=e,this._options=t}O.prototype=function(e,t){for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i]);return e}(new o,{toString:function(){var e=this._string,t=this._stringVal,i=e;return void 0!==t?t:(f(e,this._options)||(i=e,e=E(e),r("UnsafeString contains non-whitelisted tags or attributes.\nString: "+i,"error")),this._stringVal=e,e)}});var k=/ /g,A=/[\s\u0000<>"]|%00/,C=/\\/,P=/([.]|%2e){2}/i,N=new RegExp("^(?:https?|ftp|mailto|tel|sms|blob|voyager|android-app|linkedin|chrome-extension|invalid|data:(?:(?:image/(?:gif|jpe?g|png))|(?:application/x-font-woff)|(?:font/(?:opentype|ttf)))[;,]|[/.#?])");function R(e){var t=void 0;if("string"!=typeof e)return r("jSecure Warning: url must be a string","error"),"invalid://";if((t=e.trim()).indexOf(" ")>-1&&(r("jSecure Warning: url should not contain spaces: "+e,"warn"),t=t.replace(k,"+")),!N.test(t))return r("jSecure Error: URL should be absolute with allowed schemas, relative, a hash fragment or query string. "+e,"error"),"invalid://";if(A.test(t))return r("jSecure Error: not valid url character found in url: "+e,"error"),"invalid://";var i=t.split("?")[0];return C.test(i)||P.test(i)||P.test(decodeURI(i))?(r("jSecure Error: malicious data found in url path: "+i,"error"),"invalid://"):e}var x={redirect:function(e){window&&(window.location.href=e)}};return{ALLOWED_TAGS:n,FORMATTING_TAGS:i,htmlEncode:c,htmlUnencode:h,log:r,mk:function(e){for(var t=arguments.length,i=Array(t>1?t-1:0),n=1;n<t;n++)i[n-1]=arguments[n];var s="",o=void 0,r=i.length;return e&&e.forEach((function(e,t){s+=e,t<r&&(o=i[t],s+=o instanceof O?o:c(o))})),I(s)},parseHTML:function(e,t){var i;if(t=t||document.implementation&&document.implementation.createHTMLDocument?document.implementation.createHTMLDocument(""):document,"string"==typeof e)i=T([e],t);else{if(!d(e))return e;i=T(e,t)}return v([],i.childNodes)},parseSelector:function(e){return"string"==typeof e&&/^(?:\s*(<[\w\W]+>)[^>]*)$/.test(e)?[]:e},processTemplate:S,reEncode:function(e){return c(h(e))},_redirector:x,redirect:function(e){var t=R(e);t===e&&x.redirect(t)},sanitizeHTML:I,sanitizeUrl:R,setElementContent:L,text:function(e){return r("jSecure.text() is deprecated. Please use jSecure.htmlEncode().","warn"),c(e)},unsafe:function(e){return e},UnsafeString:O}}()}));function ne(e,t=!1){t?function(e){const t=e.nextElementSibling;t&&t.classList.contains("artdeco-inline-feedback")&&t.parentNode.removeChild(t)}(e):function(e){const t=e.querySelector(".alert");t&&t.classList.add("hidden")}(e)}function se(e){e.querySelectorAll(".inline-alert").forEach(e=>e.parentNode.removeChild(e))}function oe(e,t=!1){e.classList.remove("error"),t&&e.classList.remove("error--is-inline")}const re=/\!|\@|\#|\$|\%|\^|\&|\*|\+|\=|\||<|\>|\?|\:|\;/,ae=/(.)\1{3}/,le=/linkedin/i,ce=/\d\d/,he=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]+)?(/.*)?"),de=/^(([^<>()\[\]\.,;:\s@\"]+(\.[^<>()\[\]\.,;:\s@\"]+)*)|(\".+\"))@(([^<>()[\]\.,;:\s@\"]+\.)+[^<>()[\]\.,;:\s@\"]{2,})$/i,ue=/^[\u4E00-\u9FFF|\u3400-\u4DBF|\uF900-\uFAFF]*$/,pe=/^[ぁ-ゔゞ゛゜ー]*$/,ge=/^[+]?[\s./0-9]*[(]?[0-9]{1,4}[)]?[-\s./0-9]*$/,me=e=>{const t=(t="")=>t.length<=e;return t.errorMessagePrefix="i18n_tooLong_",t},_e=e=>{const t=(t="")=>t.length>=e;return t.errorMessagePrefix="i18n_tooShort_",t},fe=(e="")=>!ce.test(e);fe.errorMessagePrefix="i18n_noConsecutiveDigits_";const Ee=(e="")=>!re.test(e);Ee.errorMessagePrefix="i18n_noForbiddenCharacters_";const be=(e="")=>!ae.test(e);be.errorMessagePrefix="i18n_noFourConsecutiveDuplicates_";const ve=(e="")=>!le.test(e);ve.errorMessagePrefix="i18n_noLinkedIn_";const we=(e="")=>!he.test(e);we.errorMessagePrefix="i18n_noUrl_";const ye=(e="")=>ue.test(e);ye.errorMessagePrefix="i18n_onlyChinese_";const Te=(e="")=>pe.test(e);Te.errorMessagePrefix="i18n_onlyPhonetic_";const Se=(e="")=>""!==e.trim();Se.errorMessagePrefix="i18n_required_";const Ie=(e="")=>de.test(e);Ie.errorMessagePrefix="i18n_invalidFormat_";const Le=(e="")=>ge.test(e);Le.errorMessagePrefix="i18n_invalidFormat_";const Oe=(e="")=>de.test(e)||ge.test(e);Oe.errorMessagePrefix="i18n_invalidFormat_";const ke=[me(50),Ee,fe,be,ve,we],Ae=[Se].concat(ke),Ce=[Te,me(50),be],Pe={"first-name":Ae,"last-name":Ae,"phonetic-first-name":Ce,"phonetic-last-name":Ce,"real-name":[Se,ye,me(4),_e(2)],"email-or-phone":[Se,me(128),Oe],"email-address":[Se,me(128),Ie],"optional-email-address":[me(128),(e=>{const t=(t="")=>""===t||e(t);return t.errorMessagePrefix=e.errorMessagePrefix,t})(Ie)],"phone-number":[Se,Le],password:[Se,_e(6),me(200)]},Ne={button:!0,reset:!0,submit:!0,checkbox:!0},Re=e=>e.type&&!Ne[e.type],xe={"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"},Fe={session_key:"email-or-phone",session_password:"password"};function Ue({name:e,value:t}={}){const i=Pe[e=Fe[e]||e];if(!i)throw new Error("No validation rules for element named ".concat(e));return i.reduce((i,n)=>(n(t)||i.push(n.errorMessagePrefix+e),i),[])}const{GOT_PROMPT_MOMENT_REASONS:De,GOT_PROMPT_MOMENT_TYPES:Be}=N,qe="PageViewEvent",je="EntityActivityEvent",Me="ControlInteractionEvent",He="FOCUS",Ge="SHORT_PRESS",Je="click",Ke="view",Ve={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"},We={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 ze(e,t,i=0){10===i||(window.tracking?window.tracking.then(i=>{i.fireTrackingEvent(e,t)}):window.setTimeout(()=>{ze(e,t,i+1)},500))}function Ye(e,t){e.forEach(e=>{const i=t?e.target:e,s={header:{},pageType:"form",requestHeader:{interfaceLocale:n.r.getLocale(document)||null},trackingInfo:{clientTimestamp:Date.now(),pageTag:n.r.getPageTag(document)||null,source:"registration-ui-lib",formId:i.id}};ze(qe,s),t&&t.unobserve(i)})}function Qe(e){if(n.r.getPageKey(document)&&n.r.getPageKey)return"urn:li:control:".concat(n.r.getPageKey(document),"-").concat(e)}function Xe(e={}){if(!n.r.getPageKey(document)||!e.controlName)return;const t={header:{},requestHeader:{},controlUrn:Qe(e.controlName),interactionType:e.interactionType||He};ze(Me,t)}function Ze(e={}){if(!n.r.getPageKey(document)||!e.trackingCode)return;const t={header:{},pageType:"form",requestHeader:{interfaceLocale:n.r.getLocale(document)||null},trackingCode:"".concat(n.r.getPageKey(document),"-").concat(e.trackingCode),activityType:e.activityType||Je,pageKey:n.r.getPageKey(document),attributes:e.customData||{}};ze(je,t)}function $e(e,t,i=!1){i?function(e,t){if(!Re(e))throw new Error("you cannot show an alert for this type of element ".concat(e.type));e.nextElementSibling&&e.nextElementSibling.classList.contains("artdeco-inline-feedback")?function(e,t){const i=e.querySelector(".artdeco-inline-feedback__message");ie.setElementContent(i,t||Object(n.n)("i18n_server_generic_error"))}(e.nextElementSibling,t):function(e,t){e.insertAdjacentHTML("afterend",function(e){return'<div class="inline-alert artdeco-inline-feedback artdeco-inline-feedback--error" role="alert" tabindex="-1" aria-live="assertive">\n      <p class="artdeco-inline-feedback__message">\n        '.concat(e,"\n      </p>\n    </div>\n  ")}(t))}(e,t)}(e,t):function(e,t){const i=e.querySelector(".alert");if(!i)throw new Error('showAlert has been called but no element exists that matches the selector ".alert"');const s=i.querySelector('p[class="alert-content"]');ie.setElementContent(s,t||Object(n.n)("i18n_server_generic_error")),i.classList.remove("hidden"),Xe({controlName:Ve.ERROR_ALERT,interactionType:Ge})}(e,t)}function et(e,t=!1){e.classList.add("error"),t&&e.classList.add("error--is-inline")}const tt=790,it=580,nt="auth_popup";class st{constructor(e,t){if(!e)throw new Error("No element passed in.");let i;switch(this.element=e,this.provider=t,this.show(),this._setupGaapCallback(),this._attachEventListeners(),this.provider){case u:i=We.THIRD_PARTY_JOIN_BUTTON.FACEBOOK_IMPRESSION;break;case p:i=We.THIRD_PARTY_JOIN_BUTTON.GOOGLE_IMPRESSION;break;case g:i=We.THIRD_PARTY_JOIN_BUTTON.WECHAT_IMPRESSION}Ze({trackingCode:i,activityType:Ke})}onUserInfoFetch(){}onError(){}hide(){this.element.classList.add(c)}show(){this.element.classList.remove(c)}_setupGaapCallback(){window.thirdPartyCallback=(e,t)=>{if(this.gaapAuthWindow.close(),""!==t||0!==Ue({name:"email-or-phone",value:e}).length)return this.onError(this.provider),Ze({trackingCode:We.THIRD_PARTY_JOIN_BUTTON.GAAP_ERROR,activityType:Je,customData:{provider:this.provider,errorContent:t}}),Promise.reject(t);const i=function(e,t){return Object(n.s)(ie.sanitizeUrl("".concat(Object(n.n)("dust-var-callbackUrl")).concat(e,"?handle=").concat(t))).then(e=>e.responseText)}(this.provider,e).then(t=>(this.element.classList.add(c),function(e,t){const i={id:t,phoneticFirstName:"",phoneticLastName:"",displayDigitalMediaAssetUrn:"",firstName:"",lastName:"",profilePictureUrl:""};if(!e)return i;return i.phoneticFirstName=e.phoneticFirstName,i.phoneticLastName=e.phoneticLastName,i.displayDigitalMediaAssetUrn=e.displayDigitalMediaAssetUrn,i.firstName=e.firstName,i.lastName=e.lastName,i.profilePictureUrl=e.profilePictureUrl,i}(t?JSON.parse(t):t,e))).catch(e=>{let t;switch(this.onError(this.provider),this.provider){case u:t=We.THIRD_PARTY_JOIN_BUTTON.FACEBOOK_ERROR;break;case p:t=We.THIRD_PARTY_JOIN_BUTTON.GOOGLE_ERROR;break;case g:t=We.THIRD_PARTY_JOIN_BUTTON.WECHAT_ERROR}throw Ze({trackingCode:t,activityType:Je,customData:{errorContent:e}}),e});return this.onUserInfoFetch(i),i}}_attachEventListeners(){this.element.querySelector(l).addEventListener("click",()=>{var e;let t;switch(this.gaapAuthWindow=(e=Object(n.n)("dust-var-authUrl"),window.open(ie.sanitizeUrl(e),nt,"width=".concat(tt,",height=").concat(it))),this.provider){case u:t=Ve.JOIN_WITH_FACEBOOK_BUTTON;break;case p:t=Ve.JOIN_WITH_GOOGLE_BUTTON;break;case g:t=Ve.JOIN_WITH_WECHAT_BUTTON}Xe({controlName:t,interactionType:Ge})})}}const{GOOGLE_ERROR:ot,GOOGLE_USER_FETCHED:rt,INITIALIZED:at}=N.EVENTS;class lt{constructor(e){if(!e)throw new Error("No element passed in.");this.element=e,this._setupGaapCallback(),this._attachEventListeners(),Ze({trackingCode:We.THIRD_PARTY_JOIN_BUTTON.GOOGLE_IMPRESSION,activityType:Ke})}onUserInfoFetch(){}onError(){}hide(){this.element.classList.add(c)}show(){this.element.classList.remove(c)}_setupGaapCallback(){window.lazyloader?window.lazyloader.then(e=>e.getLazyLoadedJavascriptModule("google-sign-in-lib")).then(this._initGoogleSignin.bind(this)):this._initGoogleSignin()}_initGoogleSignin(){const e=new k({el:this.element.querySelector(l)});e.addEventListener(rt,e=>{const t=function(e){if(!e)return{};const{email:t,givenName:i,familyName:n,idToken:s,imageUrl:o,id:r}=e;return{displayDigitalMediaAssetUrn:"",firstName:i,id:t,idToken:s,lastName:n,phoneticFirstName:"",phoneticLastName:"",profilePictureUrl:o,userId:r}}(e.detail);this.onUserInfoFetch(Promise.resolve(t))}),e.addEventListener(at,()=>{this.show()}),e.addEventListener(ot,({detail:e})=>{const{type:t,message:i}=e,n="join-with-google-error--".concat(t,"-").concat(i);t===N.GSI_ERROR_TYPES.INITIALIZATION?this.hide():this.onError(p),Xe({controlName:n,interactionType:Ge})}),this.googleSignIn=e}_attachEventListeners(){this.element.querySelector(l).addEventListener("click",()=>{Xe({controlName:Ve.JOIN_WITH_GOOGLE_BUTTON,interactionType:Ge})})}}function ct(e,t,i){return t in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}function ht(e,t){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),i.push.apply(i,n)}return i}function dt(e){for(var t=1;t<arguments.length;t++){var i=null!=arguments[t]?arguments[t]:{};t%2?ht(Object(i),!0).forEach((function(t){ct(e,t,i[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):ht(Object(i)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(i,t))}))}return e}const ut=new Set(["百里","淳于","第五","東方 ","东方","東閣 ","东阁","東郭 ","东郭","東門 ","东门","端木","獨孤 ","独孤","公孫 ","公孙","公羊","公冶","公西","毌丘","穀梁 ","谷梁","賀蘭 ","贺兰","赫連 ","赫连","賀若 ","贺若","皇甫","黄斯","呼延","兰向","令狐","甪里","閭丘 ","闾丘","万俟","慕容","納蘭 ","纳兰","南宮 ","南宫","歐陽 ","欧阳","沙吒","上官","申屠","司馬 ","司马","司徒","司空","司寇","太史","澹臺 ","澹台","拓跋","完顏 ","完颜","聞人 ","闻人","巫馬 ","巫马","夏侯","鮮于 ","鲜于","西門 ","西门","軒轅 ","轩辕","楊子 ","杨子","耶律","樂正 ","乐正","尉遲 ","尉迟","宇文","長孫 ","长孙","鍾離 ","钟离","諸葛 ","诸葛","祝融","子車 ","子车","左人"]);function pt(e){let t,i;switch(e.length){case 2:i=e.substring(0,1),t=e.substring(1);break;case 3:const n=e.substring(0,2);ut.has(n)?(i=n,t=e.substring(2)):(i=e.substring(0,1),t=e.substring(1));break;case 4:i=e.substring(0,2),t=e.substring(2);break;default:throw new Error("Expected Real Name to be between 2-4 characters.",name)}return{firstName:t,lastName:i}}class gt{sendFingerprint(e,t,i){const n=this.getFingerprintData(),s=new XMLHttpRequest;n["x-f-uc"]=i,n.csrf_token=t,s.open("POST",e),s.setRequestHeader("Content-type","application/json"),s.send(JSON.stringify(n))}collectInitialFingerprint(e,t,i,n){setTimeout(()=>{this.sendFingerprint(e,t,i)},n)}collectFinalFingerprint(e,t,i){return()=>{if(navigator.sendBeacon&&"undefined"!=typeof FormData){let n=this.getFingerprintData();n.csrf_token=t;let s=new FormData;s.append("x-f-uc",i);for(let e in n)n.hasOwnProperty(e)&&s.append(e,n[e]);navigator.sendBeacon(e,s)}else this.sendFingerprint(e,t,i)}}getFingerprintData(){var e={};const t=Date.now();return"undefined"!=typeof Ubba_fetch&&(e=Ubba_fetch()),e.liExecutionTime=Date.now()-t,e}}function mt(e,t={}){let i={};return Array.from(e.elements).forEach(e=>{if(Re(e)){const t=e.name,n=e.value;n&&("real-name"===t?i=dt(dt({},i),pt(n)):i[xe[t]]=n)}}),i.source=Object(n.n)("dust-var-source")||null,i.redirectInfo=function(){const e=Object(n.n)("dust-var-postOnboardingRedirectUrl");return e?{postOnboardingRedirectUrl:e}:null}(),i.invitationInfo=function(){const e=Object(n.n)("dust-var-invitationId"),t=Object(n.n)("dust-var-sharedKey");return e||t?{invitationId:e,sharedKey:t}:null}(),i.sendConfirmationEmail=Object(n.n)("dust-var-sendConfirmationEmail"),"enabled"===Object(n.n)("dust-var-fpLixTreatment")&&(i.fpData=function(){let e="default";const t=new gt;try{e=JSON.stringify(t.getFingerprintData())}catch(t){e="error while fetching the fingerprinting data : "+t}return e}()),i=function(e,t){return dt(dt({},e),t)}(t,i),i}const _t="See https://go/pem/degradation-tracking-user-guide for instrumentation instructions";function ft(e){return 0===e.length||!e.trim()}var Et;!function(e){e.ProductName="productName",e.UntrackedResponseCodes="untrackedResponseCodes",e.TrackedResponseCodes="trackedResponseCodes"}(Et||(Et={}));const bt=new Set(Object.values(Et));class vt{constructor(e,t,i){if(this._featureKey=wt(e),this._degradationKey=wt(t),!i)return this._untrackedResponseCodes=[],void(this._trackedResponseCodes=[]);if("object"!=typeof i)throw new yt("DegradationTrackingMetadata options should be an object. ".concat(_t,"."));const n=i.productName;n&&(this._productName=function(e){if("string"!=typeof e)throw new yt("The product name must be a string. ".concat(_t,"."));if(ft(e))throw new yt("No product name was specified. Please configure a defaultProductName or specify it per instrumented API "+"call. ".concat(_t,"."));return e}(n));const s=i.untrackedResponseCodes,o=i.trackedResponseCodes;if(s&&o)throw new yt("You may only specify one of the options: ".concat(Et.UntrackedResponseCodes," or ")+"".concat(Et.TrackedResponseCodes," to exclude or include response codes from counting ")+"as the degraded state. ".concat(_t,"."));!function(e,t){const i=(e,t)=>{if("number"!=typeof(i=e)||!isFinite(i)||Math.floor(i)!==i||e<=0||e>999)throw new yt("Please only specify positive integer response codes between 1 and 999 for the ".concat(t," option. ")+"".concat(e," was specified. ").concat(_t,"."));var i;if(429===e||999===e)throw new yt("PEM does not consider 429 and 999 API responses indications of the real member experience because it represents LinkedIn throttling abusive requests. We drop 429s and 999s by default, so please remove them "+"from your ".concat(t," options."));if(t===Et.UntrackedResponseCodes&&(e<500||e>=600))throw new yt("For server responses that have a status code, PEM does not consider non-5xx as degradations by default "+"anymore. ".concat(e," is not considered a degradation unless you explicitly add it to the ")+"".concat(Et.TrackedResponseCodes," option. Please remove ").concat(e," from the ")+"".concat(Et.UntrackedResponseCodes," option. ").concat(_t,"."))};if(void 0!==e&&!Array.isArray(e))throw new yt("Please specify an array of positive integer response codes between 1 and 999 for the response codes that "+"shouldn't be counted as degraded for the ".concat(Et.UntrackedResponseCodes," option. ")+"".concat(_t,"."));if(void 0!==t&&!Array.isArray(t))throw new yt("Please specify an array of positive integer response codes between 1 and 999 for the response codes that should only be considered as the degraded state(s) for the "+"".concat(Et.TrackedResponseCodes," option. ").concat(_t,"."));e&&e.forEach(e=>i(e,Et.UntrackedResponseCodes));t&&t.forEach(e=>i(e,Et.TrackedResponseCodes))}(s,o),this._untrackedResponseCodes=s||[],this._trackedResponseCodes=o||[],function(e){Object.keys(e).forEach(e=>{if(!bt.has(e))throw new yt("An unsupported degradation tracking option '".concat(e,"' was provided. Please fix or remove it. ")+"".concat(_t))})}(i)}static isDegradationTrackingMetadata(e){return null!=e&&Object.getOwnPropertyNames(vt.prototype).every(t=>Object.hasOwnProperty.call(Object.getPrototypeOf(e),t))}get featureKey(){return this._featureKey}get degradationKey(){return this._degradationKey}get productName(){return this._productName}get untrackedResponseCodes(){return this._untrackedResponseCodes}get trackedResponseCodes(){return this._trackedResponseCodes}}function wt(e){if("string"!=typeof e)throw new yt("Keys must be strings. ".concat(_t,"."));if(ft(e))throw new yt("Keys should not be blank. ".concat(_t,"."));if(e.match(/[^a-z0-9-]/))throw new yt("'".concat(e,"' can only contain lowercase alphanumeric characters and dashes (-). ").concat(_t,"."));return e}class yt extends Error{constructor(e){super(e),Object.setPrototypeOf(this,yt.prototype)}}var Tt="delete me",St="v=2&",It={FIRST_AND_LAST_QUOTES:/^\"(.+)\"$/};class Lt{constructor(){const e=Object(n.n)("registrationUrl");if(!e)throw new Error('Document missing embed with element ID === "registrationUrl"');this.registrationUrl=n.q.addQueryParam(e,"csrfToken",this._getCsrfTokenFromBcookie())}sendCreateAccountRequest(e){const{emailOrPhoneNumber:t,emailAddress:i,phoneNumber:s}=e;i||s||(t.includes("@")?e.emailAddress=t:e.phoneNumber=t),e.emailAddress&&(e.botDetectionInput=function(e="",t=Date.now().toString()){if(!e)throw new Error("emailAddress is a required field in botDetectionInput");const i=()=>Math.floor(9e8*Math.random())+1e8,n="".concat(i(),":").concat(i(),":").concat(i());return{nonce:n,clientTimestampParamValue:t,clientOutput:"",jsVersion:"",email:e,requestId:"".concat(e,":").concat(n)}}(e.emailAddress));const o={method:"POST",headers:{Accept:"*/*","Content-Type":"application/json","X-NuxSupportsCp":"on"},sendCookies:!0,skipCsrfToken:!0,postData:JSON.stringify(e)},r=Object(n.s)(this.registrationUrl,o);if("enabled"===Object(n.n)("dust-var-pemDegradationTrackingTreatment"))try{const e=r.catch((e={})=>dt(dt({},e),{},{status:e.response?e.response.status:500})).then((e={})=>new Response(e,{status:e.status})),t=[new vt("account-creation","failed-account-creation",{productName:"Registration-UI-Lib - Account Creation"})];window.tracking.then(i=>{window.pemTracking.then(n=>{n.trackFeatureDegradationsForFetch(this.registrationUrl,[],t,e,i.state.currentPageInstance)})})}catch(e){}return r.catch(e=>this._handleError(e)).then(e=>this._handleResponse(e))}_getCsrfTokenFromBcookie(){const e=(n.q.getCookie("bcookie")||"").trim();if(e!==Tt)return e.replace(It.FIRST_AND_LAST_QUOTES,"$1").replace(St,"")}_handleError(e){if(e.response&&e.response.responseText)try{e.response.responseObj=JSON.parse(e.response.responseText)}catch(e){}throw e}_handleResponse(e){if(e.responseObj=JSON.parse(e.responseText),e.responseObj.challengeUrl){const t=new Error("Challenge Issued with Challenge URL: ".concat(e.responseObj.challengeUrl));throw t.response=e,t}return e}}const Ot=".challenge-dialog",kt=".challenge-dialog__close",At=".challenge-dialog__iframe";class Ct{constructor(e){if(!e)throw Error("Challenge URL is required");this.complete=!1,this.challengeDialogElem=document.querySelector(Ot),this.challengeIframeElem=this.challengeDialogElem.querySelector(At),this.challengeIframeElem.src=ie.sanitizeUrl(e)}showChallenge(){return new Promise((e,t)=>{const i=this._handleDialogClose.bind(this,t);this._setupEventListeners(i=>{s.test(i.origin)&&i.data||t();const n=JSON.parse(i.data);if("CHALLENGE_SOLVED"===n.eventId)Xe({controlName:Ve.CHALLENGE_SOLVED,interactionType:Ge}),e(n.payload);else if("CHALLENGE_FAILED"===n.eventId)Xe({controlName:Ve.CHALLENGE_FAILED,interactionType:Ge}),t(n.payload);else if("FRAME_RESIZE"===n.eventId){if(document.querySelector(".challenge-dialog__modal-container")){const e=n.payload&&n.payload.newHeight?n.payload.newHeight:220;this.challengeIframeElem.style.height="".concat(e,"px")}}},i),this.challengeIframeElem.onload=()=>{this.challengeDialogElem.style.display="",this.challengeDialogElem.focus(),document.documentElement.style.overflow="hidden",Xe({controlName:Ve.CHALLENGE_DIALOG,interactionType:He})}}).then(e=>(this._tearDownEventListeners(),this._cleanup(),e)).catch(e=>{throw this._tearDownEventListeners(),this._cleanup(),e})}_setupEventListeners(e,t){const i=this.challengeDialogElem.querySelector(kt);i.addEventListener("click",t),window.addEventListener("message",e,!1),this._tearDownEventListeners=()=>{i.removeEventListener("click",t),window.removeEventListener("message",e,!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(e){this.complete||e("softFail")}_getCsrfTokenFromBcookie(){return(n.q.getCookie("bcookie")||"").trim().replace("v=2&","")}}var Pt="validation-failed",Nt="validation-succeeded",Rt="account-creation-challenged",xt="account-creation-failed",Ft="account-creation-succeeded",Ut="challenge-closed",Dt="challenge-failed",Bt="challenge-succeeded",qt="split-join-form-step-change",jt="third-party-profile-card-toggled",Mt="global-error";function Ht(e,t){n.q.dispatchCustomEvent(e,qt,{splitJoinStepNum:t})}function Gt(e,t){n.q.dispatchCustomEvent(e,Mt,{globalErrorMessage:t})}const Jt="join-form__form-input-container",Kt="join-form__form-input-container--is-hidden",Vt="join-form__form-input-container--is-last-section";class Wt{constructor(e,t){if(!e)throw new Error("No element passed in.");this.elem=e,this.isNested=e.parentNode.classList.contains(Jt),this.requiredInputs=Array.from(e.querySelectorAll("input[required]")),this.elem.classList.add("".concat(Jt,"--is-section-").concat(t))}get isVisible(){return!this.elem.classList.contains(Kt)}show(){this.elem.classList.remove(Kt),this.requiredInputs.forEach(e=>e.setAttribute("required","required")),this.elem.querySelector("input").focus()}hide(){this.requiredInputs.forEach(e=>e.removeAttribute("required")),this.elem.classList.add(Kt)}}class zt{constructor(e){this.currentSplitJoinSectionNum=0,this._joinFormElem=e,this.totalSplitJoinSections=this._joinFormElem.querySelectorAll(".".concat(Jt)).length;const t=this.totalSplitJoinSections>2,i=this._joinFormElem.querySelector(".".concat(Jt,":not(.").concat(Kt,")")),n=t?this._joinFormElem.querySelector(".".concat(Kt,":not(.").concat(Vt,")")):this._joinFormElem.querySelector(".".concat(Vt)),s=this._joinFormElem.querySelector(".".concat(Vt));if(!i)throw new Error("Split join form must have a default visible section");if(!n)throw new Error("Split join form must have at least two sections");this._orderedSplitJoinSections=[new Wt(i,1),new Wt(n,2)],t&&this._orderedSplitJoinSections.push(new Wt(s,3)),this._orderedSplitJoinSections.forEach(e=>{e.elem.classList.contains(Kt)&&e.requiredInputs.forEach(e=>{e.removeAttribute("required")})})}get sectionForCurrentStep(){return this._orderedSplitJoinSections[this.currentSplitJoinSectionNum]}get isLastStep(){return this.currentSplitJoinSectionNum+1===this.totalSplitJoinSections}get isFirstStep(){return 0===this.currentSplitJoinSectionNum}nextStep(){if(this.isLastStep)return;const e=this.sectionForCurrentStep;this.currentSplitJoinSectionNum+=1,this.sectionForCurrentStep.isNested&&this.sectionForCurrentStep.isVisible&&!this.isLastStep&&(this.currentSplitJoinSectionNum+=1);const t=this.sectionForCurrentStep;t.isNested||e.isNested?e.isNested&&this._hideNestedSectionParent(e):e.hide(),t.show(),Ht(this._joinFormElem,this.currentSplitJoinSectionNum)}prevStep(){if(this.isFirstStep)return;const e=this.sectionForCurrentStep;this.currentSplitJoinSectionNum-=1;const t=this.sectionForCurrentStep;e.isNested||t.isNested?t.isNested&&(e.hide(),this._showNestedSectionParent(t)):(e.hide(),t.show()),Ht(this._joinFormElem,this.currentSplitJoinSectionNum)}firstStep(){this.isFirstStep||(this.sectionForCurrentStep.isNested?this._hideNestedSectionParent(this.sectionForCurrentStep):this.sectionForCurrentStep.hide(),this.currentSplitJoinSectionNum=0,this.sectionForCurrentStep.isNested?this._showNestedSectionParent(this.sectionForCurrentStep):this.sectionForCurrentStep.show(),Ht(this._joinFormElem,this.currentSplitJoinSectionNum))}lastStep(){this.isLastStep||(this.sectionForCurrentStep.isNested?this._hideNestedSectionParent(this.sectionForCurrentStep):this.sectionForCurrentStep.hide(),this.currentSplitJoinSectionNum=this.totalSplitJoinSections-1,this.sectionForCurrentStep.show(),Ht(this._joinFormElem,this.currentSplitJoinSectionNum))}getSectionAtIndex(e){return this._orderedSplitJoinSections[e]}_hideNestedSectionParent({elem:e}){this._orderedSplitJoinSections.forEach(t=>{t.elem!==e&&t.elem.contains(e)&&t.hide()})}_showNestedSectionParent({elem:e}){this._orderedSplitJoinSections.forEach(t=>{t.elem!==e&&t.elem.contains(e)&&t.show()})}}const{EVENTS:Yt,GOT_CONTEXTS:Qt,GOT_PROMPT_MOMENT_TYPES:Xt}=N,{GOOGLE_USER_FETCHED:Zt,PROMPT_MOMENT:$t}=Yt;class ei{constructor(e){if(!e)throw new Error("No element passed in.");var t;this.joinForm=e,this.inputs=Array.from(this.joinForm.querySelectorAll("input")),this.inputNameToErrors={},this.registrationServerClient=new Lt,this.isSplitJoinForm=Object(n.n)("dust-var-isSplitJoinForm"),this.isGoogleOneTapEnabled="true"===Object(n.n)("dust-var-isSmartLockEnabled"),this.isMobile=Object(n.n)("dust-var-isMobile"),this.joinBtnProvider=Object(n.n)("dust-var-joinBtnProvider"),this.isInlineError=Object(n.n)("dust-var-isInlineError"),this.isInstantThirdPartyBtnEnabled="true"===Object(n.n)("dust-var-isInstantThirdPartyBtnEnabled"),this.isSplitJoinForm&&(this.splitJoin=this._initSplitJoinForm()),this._attachEventListeners(),this._initThirdPartySignup(),t=[this.joinForm],n.q.onload(()=>{if(window.IntersectionObserver){const e=new IntersectionObserver(Ye,{threshold:1});t.forEach(t=>e.observe(t))}else Ye(t)})}get inputNameToElement(){return Object.defineProperty(this,"inputNameToElement",{value:this.inputs.reduce((e,t)=>(e[t.name]=t,e),{})}),this.inputNameToElement}get isThirdPartyJoinEnabled(){return this.isGoogleOneTapEnabled||this.joinBtnProvider}get isThirdPartyProfileCardVisible(){const e=U(o.PROFILE_CARD,this.joinForm);return e&&!e.classList.contains(c)}get thirdPartyAccountFields(){return{id:"",profilePictureUrl:"",firstName:"",lastName:"",phoneticFirstName:"",phoneticLastName:"",displayDigitalMediaAssetUrn:"",thirdPartyCredentials:{googleUserIdToken:"",thirdPartyProvider:""}}}get emailHandle(){const e=this.inputNameToElement["email-or-phone"],t=this.inputNameToElement["email-address"],i=e||t;let n=null;return i&&(n={input:"#".concat(i.id),label:'[for="'.concat(i.id,'"]')}),Object.defineProperty(this,"emailHandle",{value:n}),this.emailHandle}get location(){return this._location||window.location}get inputsWithErrors(){const e=[];return this.inputs.filter(e=>this._isValidInput(e)).forEach(t=>{this.inputNameToErrors[t.name]||(this.inputNameToErrors[t.name]=Ue(t)),this.inputNameToErrors[t.name].length&&e.push({inputName:t.name,errorMessageKeys:this.inputNameToErrors[t.name]})}),e}set location(e){this._location=e}_attachEventListeners(){let e;var t;this.joinForm.addEventListener("change",e=>this._handleChange(e)),this.joinForm.addEventListener("input",e=>this._handleInput(e)),this.joinForm.addEventListener("focusout",e=>this._handleFocusOut(e)),this.joinForm.addEventListener("submit",e=>this._handleSubmit(e)),this.joinForm.addEventListener("invalid",t=>{t.preventDefault(),e||(e=window.setTimeout(()=>{e=null,this._handleInvalidSubmit(t)},0))},!0),this.joinForm.querySelector("[type=submit]").addEventListener("click",e=>{Xe({controlName:this.isSplitJoinForm&&this.splitJoin.isLastStep?Ve.CONTINUE_BUTTON:Ve.AGREE_AND_JOIN_BUTTON,interactionType:Ge})}),this.joinForm.querySelector(o.PROFILE_CARD)?(this.joinForm.querySelector(r.EDIT_ICON).addEventListener("click",()=>this._showPhotoModal()),this.joinForm.querySelector(r.EDIT_PHOTO.CANCEL_ICON).addEventListener("click",()=>this._hidePhotoModal()),this.joinForm.querySelector(r.NOT_YOU).addEventListener("click",()=>{this.location.reload(),Xe({controlName:Ve.PROFILE_CARD_NOT_YOU_BUTTON,interactionType:Ge})}),this.joinForm.querySelector(r.EDIT_PHOTO.TEXT).addEventListener("click",()=>this._removePhoto())):console.warn("Profile card element not found"),this.isInlineError||((t=this.joinForm).querySelector(".alert").querySelector(".wrapper").addEventListener("click",()=>{ne(t),Xe({controlName:Ve.ERROR_ALERT_DISMISS_BUTTON,interactionType:Ge})}),this.joinForm.addEventListener(Mt,e=>{$e(this.joinForm,e.detail.globalErrorMessage)})),this.joinForm.addEventListener(qt,({detail:{splitJoinStepNum:e}})=>{this._handleSplitJoinStepChange(e)})}_thirdPartyJoinErrorAlert(e){switch(e){case u:Gt(this.joinForm,Object(n.n)("i18n_third_party_join_error-message-facebook"));break;case p:Gt(this.joinForm,Object(n.n)("i18n_third_party_join_error-message-google"));break;case g:Gt(this.joinForm,Object(n.n)("i18n_third_party_join_error-message-wechat"))}}_handleInvalidSubmit(){const e=this.inputsWithErrors;return!!e.length&&(e.forEach(e=>{const t=this.inputNameToElement[e.inputName];et(t,this.isInlineError),this.isInlineError&&$e(t,Object(n.n)(e.errorMessageKeys[0]),this.isInlineError)}),this.isInlineError||$e(this.joinForm,Object(n.n)(e[0].errorMessageKeys[0])),this.inputNameToElement[e[0].inputName].focus(),Ze({trackingCode:We.ALERT.VALIDATION_FAILURE_ALERT,activityType:Je,inputsWithErrors:e}),t=this.joinForm,i=e,n.q.dispatchCustomEvent(t,Pt,i),!0);var t,i}_handleChange(e){const t=e.target;Re(t)&&(t.value?t.classList.add("input__input--has-text"):t.classList.remove("input__input--has-text"),this.inputNameToErrors[t.name]=Ue(t),0===this.inputNameToErrors[t.name].length&&(oe(t,this.isInlineError),this.isInlineError&&ne(t,this.isInlineError)))}_handleFocusOut(e){if(!this.isInlineError)return;const t=e.target;Re(t)&&(this.inputNameToErrors[t.name]=Ue(t),this.inputNameToErrors[t.name].length&&(et(t,this.isInlineError),$e(this.isInlineError?t:this.joinForm,Object(n.n)(this.inputNameToErrors[t.name][0]),this.isInlineError)))}_handleInput(e){if(!this.isInlineError)return;const t=e.target;Re(t)&&(oe(t,this.isInlineError),ne(t,this.isInlineError))}_handleSubmit(e){if(e.preventDefault(),this.isInlineError?se(this.joinForm):ne(this.joinForm),this._handleInvalidSubmit())return;if(this.isSplitJoinForm&&!this.splitJoin.isLastStep&&!this.isThirdPartyProfileCardVisible)return void this._handleSplitJoinSubmit();var t;t=this.joinForm,n.q.dispatchCustomEvent(t,Nt);const i=mt(this.joinForm,this.thirdPartyUserInfo);this._sendCreateAccountRequest(this.joinForm,i)}_handleSplitJoinSubmit(){this._hideGoogleOneTap(),this._hideThirdPartyJoinContainer(),this.splitJoin.nextStep()}_resetSplitJoinForm(){this._resetThirdPartyJoin(),this.splitJoin.firstStep()}_resetThirdPartyJoin(){this.isGoogleOneTapEnabled?this._showGoogleOneTap():this.joinBtnProvider&&this._showThirdPartyJoinContainer(),this.isThirdPartyProfileCardVisible&&this._toggleProfilecard()}_handleSplitJoinStepChange(e){const t=U('.join-form__form-body-agreement[data-is-not-yielded="true"]',this.joinForm);if(!t)return;const i=U(".join-form__form-body-submit-button",this.joinForm);if(t.classList[this.splitJoin.isLastStep?"add":"remove"]("join-form__form-body-agreement--is-hidden"),this.splitJoin.isLastStep||this.splitJoin.isFirstStep){const e=this.splitJoin.isLastStep?Object(n.n)("i18n_continue"):this._lastSubmitBtnText;this._lastSubmitBtnText=i.value,i.classList[this.splitJoin.isLastStep?"add":"remove"]("join-form__form-body-submit-button--no-agreement-text"),i.value=e,ie.setElementContent(i,e)}}_isValidInput(e){const t=Re(e);if(!this.isSplitJoinForm)return t;let i=e.parentNode;for(;!i.classList.contains(Jt);)i=i.parentNode;return t&&!i.classList.contains(Kt)}_getRequiredElemNames(){const e=["first-name","last-name"];let t=[];return this.inputs.forEach(i=>{i.hasAttribute("required")&&("real-name"===i.name?t=t.concat(e):t.push(i.name))}),t}_sendCreateAccountRequest(e,t){!function(e=[],t={}){e.length&&e.forEach(e=>{const i=xe[e];if(!i||!t[i])throw new Error(i?"Missing required field ".concat(i,"."):"No mapping exists for inputs named ".concat(e))})}(this._getRequiredElemNames(),t);const i=U(".join-form__form-body-submit-button",this.joinForm);return i.disabled=!0,this.registrationServerClient.sendCreateAccountRequest(t).then(t=>{!function(e,t){n.q.dispatchCustomEvent(e,Ft,t)}(e,t.responseObj),Object(n.n)("dust-var-cancelOnboardingRedirect")||ie.redirect(t.responseObj&&t.responseObj.redirectUrl||"/"),Ze({trackingCode:We.JOIN_REQUEST.JOIN_REQUEST_SUCCESS,activityType:Je})}).catch(s=>{i.disabled=!1;const o=(s.response||{}).responseObj||{};o.challengeUrl?(!function(e,t){n.q.dispatchCustomEvent(e,Rt,t)}(e,o),new Ct(o.challengeUrl).showChallenge().then(i=>{!function(e){n.q.dispatchCustomEvent(e,Bt)}(e),t.submissionId=o.submissionId,t.resolvedChallengeUrl=i,t.requestSignature=o.requestSignature,this._sendCreateAccountRequest(e,t)}).catch(t=>{"softFail"===t?function(e){n.q.dispatchCustomEvent(e,Ut)}(e):function(e,t){n.q.dispatchCustomEvent(e,Dt,t)}(e,t),Gt(this.joinForm,Object(n.n)("i18n_server_generic_error"))})):(!function(e,t){n.q.dispatchCustomEvent(e,xt,t)}(e,o),Gt(e,o.translatedMessage),this.isSplitJoinForm&&!this.isThirdPartyProfileCardVisible?this._resetSplitJoinForm():this._resetThirdPartyJoin()),function(e,t){if(Ze({trackingCode:We.JOIN_REQUEST.JOIN_REQUEST_FAILURE,activityType:Je,customData:e}),!t)return;const i=t.thirdPartyProvider;var n,s=Je;switch(i){case u:n=We.JOIN_REQUEST.JOIN_REQUEST_FAILURE_WITH_FACEBOOK;break;case p:n=We.JOIN_REQUEST.JOIN_REQUEST_FAILURE_WITH_GOOGLE;break;default:n=We.JOIN_REQUEST.JOIN_REQUEST_FAILURE_WITH_GOOGLE_ONE_TAP}Ze({activityType:s,trackingCode:n})}(o,t.thirdPartyCredentials)})}_initThirdPartySignup(){this.isGoogleOneTapEnabled&&(this.googleOneTapPromise=this._initOneTap()),!this.joinBtnProvider||this.isGoogleOneTapEnabled&&!this.isInstantThirdPartyBtnEnabled||(this.thirdPartyJoinButton=this._initThirdPartyJoinButton())}_initOneTap(){return window.lazyloader.then(e=>e.getLazyLoadedJavascriptModule("google-one-tap-lib")).then(()=>(this.googleOneTapInstance=new P({cancelOnTapOutside:!1,context:Qt.SIGN_UP}),this.googleOneTapInstance.addEventListener(Zt,({detail:e})=>{e&&(this._parseThirdPartyUserInfo(e),this.renderUserDetails(),Xe({controlName:Ve.GOOGLE_ONE_TAP_SIGNUP_BUTTON,interactionType:Ge}))}),this.googleOneTapInstance.addEventListener($t,({detail:e})=>{const{reason:t,type:i}=e;this.joinBtnProvider&&i===Xt.DISPLAY&&t&&!this.isInstantThirdPartyBtnEnabled&&(this.thirdPartyJoinButton=this._initThirdPartyJoinButton()),function({reason:e,type:t}){if(e){const i="".concat("google-one-tap-moment--").concat(t,"-").concat(e);t===Be.SKIPPED&&e===De.SKIPPED.USER_CANCEL?Xe({controlName:Ve.GOOGLE_ONE_TAP_CLOSE_BUTTON,interactionType:Ge}):t===Be.SKIPPED?Ze({activityType:Je,trackingCode:i}):t===Be.DISPLAY&&Ze({activityType:Ke,trackingCode:i})}}(e)}),this.googleOneTapInstance))}_initSplitJoinForm(){return new zt(this.joinForm)}_initThirdPartyJoinButton(){if(this.isSplitJoinForm&&!this.splitJoin.isFirstStep)return;const e=Object(n.n)("dust-var-useStandaloneLibrary");let t;return t=this.joinBtnProvider===p&&"true"===e?new lt(document.querySelector(a),this.joinBtnProvider):new st(document.querySelector(a),this.joinBtnProvider),t.onError=e=>this._thirdPartyJoinErrorAlert(e),t.onUserInfoFetch=e=>{e.then(e=>{e&&(this._parseThirdPartyUserInfo(e),this.renderUserDetails())})},t}_parseThirdPartyUserInfo(e){this.thirdPartyUserInfo=this.thirdPartyAccountFields,e.givenName?(e.id=e.email,e.firstName=e.givenName,e.lastName=e.familyName,e.profilePictureUrl=e.imageUrl,e.thirdPartyCredentials={googleUserIdToken:e.idToken}):e.thirdPartyCredentials={thirdPartyProvider:this.joinBtnProvider,googleUserIdToken:e.idToken},Object.keys(this.thirdPartyAccountFields).forEach(t=>{e[t]&&(this.thirdPartyUserInfo[t]=e[t])})}setInputValues({firstName:e="",lastName:t="",email:i=""}={}){if(this._setPropertyValue(o.FIRST_NAME_INPUT,e),this._setPropertyValue(o.LAST_NAME_INPUT,t),this.emailHandle){this._setPropertyValue(this.emailHandle.input,i);const e=U(this.emailHandle.input,this.joinForm);this.inputNameToErrors[e.name]=Ue(e)}this.inputNameToElement.password.focus()}renderUserDetails(e=!1){const{phoneticFirstName:t,phoneticLastName:i,firstName:n,lastName:s,id:r,profilePictureUrl:a}=this.thirdPartyUserInfo;let l;this._setPropertyValue(o.FIRST_NAME_INPUT,n),this._setPropertyValue(o.LAST_NAME_INPUT,s),this._setPropertyValue(o.PHONETIC_FIRST_NAME_INPUT,t),this._setPropertyValue(o.PHONETIC_LAST_NAME_INPUT,i),this.emailHandle&&(this._setPropertyValue(this.emailHandle.input,r),l=U(this.emailHandle.input,this.joinForm),this.inputNameToErrors[l.name]=Ue(l)),(n&&s&&r&&l&&!this.inputNameToErrors[l.name].length||e&&a)&&(this._toggleProfilecard(),this._hideThirdPartyJoinContainer(),this.inputNameToElement.password.focus())}_renderProfilecard(){const{profilePictureUrl:e,firstName:t,lastName:i,id:n}=this.thirdPartyUserInfo;F(r.PHOTO,h,e,this.joinForm),e||(x(r.PHOTO,this.joinForm),x(r.EDIT_ICON,this.joinForm)),t&&i&&(U(r.NAME,this.joinForm).innerText="".concat(t," ").concat(i)),n&&(U(r.EMAIL,this.joinForm).innerText=n)}_toggleProfilecard(){var e,t;this.isThirdPartyProfileCardVisible?(x(o.PROFILE_CARD,this.joinForm),this._showFieldsForThirdPartyProfileCard()):(this.isInlineError?se(this.joinForm):ne(this.joinForm),R(o.PROFILE_CARD,this.joinForm),this._hideFieldsForThirdPartyProfileCard(),this._renderProfilecard()),e=this.joinForm,t=this.isThirdPartyProfileCardVisible,n.q.dispatchCustomEvent(e,jt,{isProfileCardVisible:t})}_hideFieldsForThirdPartyProfileCard(){const{firstName:e,lastName:t,id:i}=this.thirdPartyUserInfo;this.emailHandle&&i&&(x(this.emailHandle.input,this.joinForm),x(this.emailHandle.label,this.joinForm),function(e,t,i=document.body){const n=U(e,i);n&&n.removeAttribute(t)}(this.emailHandle.input,d,this.joinForm)),!this.isSplitJoinForm&e&&t&&(x(o.FIRST_NAME_INPUT,this.joinForm),x(o.FIRST_NAME_LABEL,this.joinForm),x(o.LAST_NAME_INPUT,this.joinForm),x(o.LAST_NAME_LABEL,this.joinForm))}_showFieldsForThirdPartyProfileCard(){this.emailHandle&&(R(this.emailHandle.input,this.joinForm),R(this.emailHandle.label,this.joinForm),F(this.emailHandle.input,d,"required",this.joinForm)),this.isSplitJoinForm||(R(o.FIRST_NAME_INPUT,this.joinForm),R(o.FIRST_NAME_LABEL,this.joinForm),R(o.LAST_NAME_INPUT,this.joinForm),R(o.LAST_NAME_LABEL,this.joinForm))}_showGoogleOneTap(){this.isGoogleOneTapEnabled&&this.googleOneTapInstance.promptOneTap()}_hideGoogleOneTap(){this.isGoogleOneTapEnabled&&this.googleOneTapInstance.hideOneTap()}_showThirdPartyJoinContainer(){this.joinBtnProvider&&this.thirdPartyJoinButton&&this.thirdPartyJoinButton.show()}_hideThirdPartyJoinContainer(){this.joinBtnProvider&&this.thirdPartyJoinButton&&this.thirdPartyJoinButton.hide()}_setPropertyValue(e,t){const i=U(e,this.joinForm);i&&t&&(i.value=t)}_showPhotoModal(){R(r.EDIT_PHOTO.MODAL,this.joinForm)}_hidePhotoModal(){x(r.EDIT_PHOTO.MODAL,this.joinForm)}_removePhoto(){this._hidePhotoModal(),F(r.PHOTO,h,"",this.joinForm),x(r.PHOTO,this.joinForm),x(r.EDIT_ICON,this.joinForm),this.thirdPartyUserInfo.profilePictureUrl="",Xe({controlName:Ve.DELETE_PHOTO_BUTTON,interactionType:Ge})}}const ti={show:{type:"password",text:"i18n_sign_in_form_show_text",ariaLabel:"i18n_sign_in_form_show_label"},hide:{type:"text",text:"i18n_sign_in_form_hide_text",ariaLabel:"i18n_sign_in_form_hide_label"}};class ii{constructor(e,t){if(!e)throw Error("An element must be provided to sign in form");this.el=e,this.submitButtonEl=this.el.querySelector(".sign-in-form__submit-button"),this._customValidate=t,this.usernameEl=this.el.querySelector("input[name=".concat("session_key","]")),this.passwordEl=this.el.querySelector("input[name=".concat("session_password","]")),this.passwordVisibilityToggleEl=this.el.querySelector(".sign-in-form__password-visibility-toggle-button"),this.passwordVisibilityToggleEl.addEventListener("click",this._togglePasswordVisibility.bind(this)),this.el.addEventListener("change",e=>this._handleChange(e)),this.el.addEventListener("submit",e=>this._handleSubmit(e)),q(this.el,this.submitButtonEl,"login-form"),this.loaderEl=this.el.parentNode.querySelector(".loader"),this.loader=this.loaderEl&&new n.e(this.loaderEl),this.googleSignInCtaEl=this.el.parentNode.querySelector(".google-sign-in-cta"),this.googleSignInCtaEl&&new te(this.googleSignInCtaEl,{initSuccess:this._onGoogleSignInInit.bind(this)})}setUsernameInputValue(e){this.usernameEl.value=e}resetFormState(){this.usernameEl.value="",this.passwordEl.value=""}_validateForm(){return[this.usernameEl,this.passwordEl].some(e=>{const t=Ue(e);if(t.length)return et(e),$e(this.el,Object(n.n)(t[0])),e.focus(),!0})}_handleSubmit(e){if(e.preventDefault(),ne(this.el),!this._validateForm()){if(this._customValidate)return this._customValidate(this.el);this.loader&&this.loader.show(),this.el.submit()}}_handleChange(e){const t=e.target;if(Re(t)){0===Ue(t).length&&oe(t)}}_togglePasswordVisibility(){const e="password"===this.passwordEl.getAttribute("type")?"hide":"show",{type:t,text:i,ariaLabel:s}=ti[e];this.passwordEl.setAttribute("type",t),this.passwordVisibilityToggleEl.innerText=Object(n.n)(i),this.passwordVisibilityToggleEl.setAttribute("aria-label",Object(n.n)(s))}_onGoogleSignInInit(){const e=this.el.parentNode.querySelector(".sign-in-form__third-party-container");e&&(e.classList.add("sign-in-form__third-party-container--visible"),e.setAttribute("aria-hidden","false"))}}}).call(this,i(2))},,,,function(e,t,i){"use strict";i.r(t);var n=i(0),s=i(1);class o{constructor(e){if(!e)throw Error("An element must be provided to recent searches");this.recentSearches=e,this.clearBtn=this.recentSearches.querySelector(".recent-searches-card__clear"),this._clearRecentSearchesHandler=this._clearRecentSearches.bind(this),this.clearBtn.addEventListener("keydown",e=>{var t=e.key,i=n.p.KEYS,s=(0,n.p.normalizeKeyBoardEventKey)(t);s!==i.ENTER&&s!==i.SPACEBAR||this._clearRecentSearchesHandler()}),this.clearBtn.addEventListener("click",this._clearRecentSearchesHandler)}_clearRecentSearches(){Object(n.s)("/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 r{constructor(e){if(!e)throw Error("An element must be provided to Mobile Dropdown");this.el=e,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=i(3);window.tracking&&window.tracking.then(e=>{Object(n.o)(e).trackPageView()});var l=document.querySelector(".sign-in-card");l&&new n.j(l),new n.d(document.querySelector(".language-selector"));var c=document.querySelector(".search");c&&new s.e(c);var h=document.querySelector(".qualaroo");h&&new n.f(h),[...document.querySelectorAll(".etta-see-more-less-list")].forEach(e=>new n.h(e));var d=document.querySelector(".recent-searches-card");d&&new o(d),[...document.querySelectorAll(".slide-list")].forEach(e=>new n.k(e));var u=document.querySelector(".dropdown");if(u){new n.c(u,"dropdown-list",".learning-cta__link");var p=document.querySelector(".dropdown--mobile");p&&new r(p,"dropdown-list",".learning-cta__link")}var g=document.querySelector(".join-form");g&&new a.b(g);var m=document.querySelector(".nav .search-bar");m&&new n.g(m,{typeaheadApiBaseUrl:"/homepage-guest/api/typeaheadHits"});var _=document.querySelector(".d2l-sign-in-form");_&&new a.c(_);var f=document.querySelector(".join-with-resume");f&&new n.b(f,{dropdownTriggerEl:document.querySelector(".join-with-resume__toggle")});var E=document.querySelector(".apptivation-promo");E?new n.a(E).isVisible().then(e=>{e||b()}):b();function b(){var e=document.querySelector(".google-one-tap");e&&new a.a(e)}}]);