/*! For license information please see home.js.LICENSE.txt */
!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=11)}([function(e,t,i){"use strict";(function(e,n){function s(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(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 qe})),i.d(t,"b",(function(){return ne})),i.d(t,"c",(function(){return Ri})),i.d(t,"d",(function(){return cn})),i.d(t,"e",(function(){return ce})),i.d(t,"f",(function(){return ze})),i.d(t,"g",(function(){return ln})),i.d(t,"h",(function(){return xe})),i.d(t,"i",(function(){return Mi})),i.d(t,"j",(function(){return ft})),i.d(t,"k",(function(){return Ni})),i.d(t,"l",(function(){return Li})),i.d(t,"m",(function(){return Te})),i.d(t,"n",(function(){return ji})),i.d(t,"o",(function(){return Ae})),i.d(t,"p",(function(){return Be})),i.d(t,"q",(function(){return oi})),i.d(t,"r",(function(){return x})),i.d(t,"s",(function(){return Q})),i.d(t,"t",(function(){return k})),i.d(t,"u",(function(){return se})),i.d(t,"v",(function(){return dn}));var a,l,c,h={ADVERTISING:"ADVERTISING",ANALYTICS_AND_RESEARCH:"ANALYTICS_AND_RESEARCH",FUNCTIONAL:"FUNCTIONAL"},d="GUEST",u="MEMBER",p=0,g=1,m=2,f=(r(o={},d,"li_gc"),r(o,u,"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,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;for(var o in s(this,e),t=t||{},this.consentAvailable=!1,this.issuedAt=i,this.userMode=n,this.optedInConsentMap={},h)t[o]=t[o]||p,t[o]!==p&&(this.consentAvailable=!0),this.optedInConsentMap[o]=t[o]===g||t[o]===p&&r===g},E=(a=[h.ADVERTISING,h.ANALYTICS_AND_RESEARCH,h.FUNCTIONAL],l=[p,g,m,p],c=new RegExp(["^(\\d+)","(\\d+)","(\\d+)","((?:.|\\s)+)"].join(";")),{parseConsentBody:function(e,t){var i=e.match(c);if(!i)return{error:"Invalid consent body encoding",consent:new _};for(var n=parseInt(i[1],10),s={},r=0;r<a.length;r++)s[a[r]]=l[n>>2*r&3];var o=new Date(1e3*parseInt(i[2],10)),h=parseInt(i[3],10),d=p;return h>=0&&h<=3&&(d=l[h]),{error:null,consent:new _(s,o,t,d)}}}),w=new RegExp(["^(\\d+)","((?:.|\\s)+)"].join(";")),v=function(e,t){var i=t.match(new RegExp("(?:^|; *)".concat(e,"=([^;]*)")));return i&&i.length>1?i[1]:null},b=function(e,t){var i=v(f[e],t);return i?T(i,e):v(f[d],t)||v(f[u],t)?y(m):y(g)},y=function(e){var t={};for(var i in h)t[i]=e;return{error:null,consent:new _(t,null,null,e)}};var T=function(t,i){t&&t.length>1&&'"'==t.charAt(0)&&'"'==t.charAt(t.length-1)&&(t=t.substring(1,t.length-1));var n,s=null;try{s=(n=t,"undefined"==typeof atob&&void 0!==e?e.from(n,"base64").toString("binary"):atob(n)).match(w)}catch(e){}if(!s)return{error:"Invalid consent encoding",consent:new _};var r=parseInt(s[1],10),o=s[2];switch(r){case 1:return E.parseConsentBody(o,i);default:return{error:"Invalid encoded consent version ".concat(r),consent:new _}}},S=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:document.cookie;return e||(e=v("liap",t)?v(f[u],t)?u:d:v(f[d],t)?d:u),b(e,t)};window.encodeURIComponent;function I(e){let t=e.querySelector('meta[name="pageKey"]');return t?t.content+"_jsbeacon":""}function L(e){let t=e.querySelector('meta[name="linkedin:pageTag"]');return t&&t.content||""}function O(e){let t=e.querySelector('meta[name="locale"]');return t&&t.content||""}function A(e){let t=e.domain;return t?t.split(".").slice(-2).join("."):""}function P(e){return e&&'"'===e.charAt(0)&&'"'===e.charAt(e.length-1)?e.slice(1,-1):e}var k=Object.freeze({__proto__:null,getPageKey:I,getPageTag:L,getLocale:O,getDomain:A,trimDoubleQuotes:P});const C={ARROW_DOWN:"ArrowDown",ARROW_LEFT:"ArrowLeft",ARROW_RIGHT:"ArrowRight",ARROW_UP:"ArrowUp",ESCAPE:"Escape",ENTER:"Enter",SPACEBAR:" ",TAB:"Tab"},N={Down:C.ARROW_DOWN,Right:C.ARROW_RIGHT,Left:C.ARROW_LEFT,Up:C.ARROW_UP,Esc:C.ESCAPE,Spacebar:C.SPACEBAR,Tab:C.TAB};function R(e){return N[e]||e}var x=Object.freeze({__proto__:null,KEYS:C,normalizeKeyBoardEventKey:R});function U(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 D(e){"complete"===document.readyState?e():window.addEventListener("load",()=>{setTimeout(e)})}class B{constructor(){this._unloadCallbacks=[],this._initEventListener()}_initEventListener(){window.addEventListener("beforeunload",e=>{for(let t=0;t<this._unloadCallbacks.length;t++){if(!1===this._unloadCallbacks[t].call(null,e))break}})}addUnloadCallback(e){e instanceof Function&&this._unloadCallbacks.push(e)}}const F=function(){let e;return{getInstance:function(){return e||(e=new B),e}}}();function M(e){return null==e||"object"!=typeof e?[]:Array.prototype.slice.call(e)}function j(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,r=t.left<=n&&t.left+t.width>=0;return s&&r}function q(){let{scrollTop:e=scrollY,clientHeight:t=window.innerHeight,scrollHeight:i=document.body.scrollHeight}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return e>=i-(t+t*n)}function H(e,t,i){const n=new RegExp("([\\?&])".concat(i?t:encodeURIComponent(t),"=([^&#]*)")).exec(e);return n&&(i?n[2]:decodeURIComponent(n[2]))}function G(e,t){return J(e,"trk",t)}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=H(e,t,!0);if(s)return n?e.replace(s,i):e;{const n=e.indexOf("?");let[s,r]=e.split("#"),o="&";return n<0?o="?":n===e.length-1&&(o=""),r&&(r="#".concat(r)),"".concat(s).concat(o).concat(t,"=").concat(i).concat(r||"")}}function K(e,t,i){var n=this;if("function"!=typeof e)throw new TypeError("Expected a function.");let s;return function(){for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];const l=()=>{s=null,i||e.apply(n,o)},c=i&&!s;clearTimeout(s),s=setTimeout(l,t),c&&e.apply(n,o)}}function V(e){const t=document.cookie.match(new RegExp("(^| )"+e+"=([^;]+)"));return t&&t[2]}function z(e,t){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const n=document.createEvent("CustomEvent");n.initCustomEvent(t,!0,!0,i),e.dispatchEvent(n)}function W(){let e,t;const i=new Promise((i,n)=>{e=i,t=n});return i.resolve=e,i.reject=t,i}function Y(e){return"string"!=typeof e?null:e.split("?")[0]}var Q=Object.freeze({__proto__:null,closest:U,onload:D,UnloadHandler:F,makeArray:M,outerWidth:function(e){let t=e.offsetWidth,i=getComputedStyle(e);return t+=(parseInt(i.marginLeft,10)||0)+(parseInt(i.marginRight,10)||0),t},elementInViewport:j,hasElementScrolledToThreshold:q,getQueryParam:H,addTrackingCode:G,addQueryParam:J,debounce:K,getCookie:V,dispatchCustomEvent:z,getDeferredPromise:W,isDocumentHidden:function(e){return void 0!==e.msHidden?e.msHidden:void 0!==e.hidden?e.hidden:void 0},stripQueryParams:Y});class X{constructor(e,t,i){let{mainButton:n,closeButton:s}=i,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};if(!e)throw Error("An element must be provided to Collapsible");if(!t)throw Error("An expandable element must be provided to Collapsible");if(!n)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}=r;this.isOpen=o,this.mainButton=n,this.closeButton=s,this.buttons=[n],this._isList&&this.el.addEventListener("keyup",e=>this._onKeyUp(e)),this.expandableEl.addEventListener("keydown",e=>this._onKeyDown(e)),this.mainButton.addEventListener("click",e=>this.closeButton?this._open(e):this._toggle(e)),this.mainButton.addEventListener("keydown",e=>this._onButtonKeyDown(e)),this.closeButton&&(this.closeButton.addEventListener("click",()=>this.close()),this.closeButton.addEventListener("keydown",e=>this._onButtonKeyDown(e)),this.buttons.push(this.closeButton))}get isList(){return this._isList}_toggle(e){this.isOpen?this.close():this._open(e)}_onButtonKeyDown(e){switch(R(e.key)){case C.ENTER:case C.SPACEBAR:e.preventDefault(),this.isOpen?this.close():this._open(e);break;case C.ARROW_UP:this.isOpen||this._open(e);break;case C.ARROW_DOWN:this.isOpen&&this.close()}}_onKeyUp(e){R(e.key)===C.SPACEBAR&&e.preventDefault()}_onKeyDown(e){const t=R(e.key);if(t===C.ESCAPE&&this.isOpen)this.close();else if(this._isList){let i;switch(t){case C.SPACEBAR:z(e.target,"click");break;case C.ARROW_LEFT:case C.ARROW_UP:i=U(e.target,"li");let t=i.previousElementSibling;t&&z(t,"focusEl");break;case C.ARROW_RIGHT:case C.ARROW_DOWN:i=U(e.target,"li");let n=i.nextElementSibling;n&&z(n,"focusEl")}}}_open(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!this.isOpen){const{key:t}=e;this.isOpen=!0,this.buttons.forEach(e=>e.setAttribute("aria-expanded",this.isOpen)),z(this.el,"open",{key:t})}}close(){let{shouldReturnFocusToTrigger:e=!0}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.isOpen&&(this.isOpen=!1,this.buttons.forEach(e=>e.setAttribute("aria-expanded",this.isOpen)),z(this.el,"close"),e&&this.mainButton.focus())}}const Z=['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 $(e){const t=window.getComputedStyle(e);return"hidden"===t.visibility||"none"===t.display}function ee(e){let t,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:document.documentElement,n=arguments.length>2?arguments[2]:void 0;return e===i?!$(e):n&&n.get(e)?n.get(e):($(e)?t=!1:e.parentNode&&(t=ee(e.parentNode,i,n)),n&&n.set(e,t),t)}const te=".".concat("collapsible-dropdown","__list"),ie=".".concat("collapsible-dropdown","__button");class ne{constructor(e){let{getFocusItemFromListItem:t=(e=>e.querySelector(Z)),elementToFocus:i,dropdownTriggerEl:n,dropdownContentEl:s}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!e)throw Error("An element must be provided to CollapsibleDropdown");if(this.el=e,this.dropdownContentEl=s||this.el.querySelector(te),!i){const e=this.dropdownContentEl===this.dropdownContentEl.parentElement.querySelector(Z),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(ie),this.hideClass="hidden",this.collapsible=new X(e,this.dropdownContentEl,{mainButton:this.dropdownTriggerEl}),this._handleBodyClick=this._handleBodyClick.bind(this),this._focusOutsideDropdown=this._focusOutsideDropdown.bind(this),this._leaveWindow=this._leaveWindow.bind(this),this._attachEventListeners(),this.collapsible.isList&&(this._getFocusItemFromListItem=t)}_attachEventListeners(){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 se(e){let{method:t="GET",headers:i={},sendCookies:n=!0,skipCsrfToken:s=!1,postData:r,isPemEnabled:o=!1,pemDegradationTrackingMetadata:a=[],pemEntityIds:l=[]}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const c=new Promise((o,a)=>{const l=new XMLHttpRequest;if(l.addEventListener("load",(function(){if(l.status>=200&&l.status<300||304===l.status)o({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},l.response&&(i.response.rawHeaders=l.getAllResponseHeaders()),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=V("JSESSIONID");e&&l.setRequestHeader("Csrf-Token",P(e))}l.send(r)});return o&&(a.length?re(c,e,l,a):console.warn("Please set the value for the option pemDegradationTrackingMetadata when PEM is enabled.")),c}function re(e,t,i,n){try{const s=e.then((function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return new Response(e,{status:e.status})})).catch((function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return new Response(e.response,{status:e.response?e.response.status:500,headers:e.response&&e.response.rawHeaders?oe(e.response.rawHeaders):new Headers})}));window.tracking.then(e=>{window.pemTracking.then(r=>{r.trackFeatureDegradationsForFetch(t,i,n,s,e.state.currentPageInstance)})})}catch(e){}}function oe(e){const t=new Headers;return e&&e.trim().split(/[\r\n]+/).forEach(e=>{const i=e.trim().split(": "),n=i.shift();if(n){const e=i.join(": ");t.set(n.toLocaleLowerCase(),e)}}),t}const ae=".".concat("language-selector__link"),le="".concat(ae,"--selected");class ce{constructor(e){if(!e)throw Error("An element must be provided to LanguageSelector");this._el=e,this.listEl=this._el.querySelector(".collapsible-dropdown__list"),this.dropdownTriggerEl=this._el.querySelector(".language-selector__button"),this.currentListItem=this.listEl.querySelector(le),this.collapsibleDropdown=new ne(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=P(V("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}(A(document));return se("".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()})}}var he="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==n?n:"undefined"!=typeof self?self:{};function de(e,t){return e(t={exports:{}},t.exports),t.exports}parseInt;var ue="object"==typeof he&&he&&he.Object===Object&&he,pe="object"==typeof self&&self&&self.Object===Object&&self;ue||pe||Function("return this")(),Object.prototype.toString,Math.max,Math.min;"".concat(".member-nav-menu","__button");var ge=de((function(e,t){!function(e){"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==he||"undefined"!=typeof self&&self;var t,i,n,s,r=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 r=void 0;try{r=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(r)return void(t&&t(r))}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 o(){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 f(e,t){return e?{trackingId:t||u(),pageUrn:p(e)}:null}function _(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 w(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 r=t[s];if(null!==r)for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o])}return n},b=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=_(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=o();if(!n)return null;for(var s=0;s<n.length;s++){var r=n[s].href;if(r===e||r===t||r===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),r.init(),r.setProperty("disableSendBeacon",!1),r.setTrackingUrl(this.config.trackingUrl),r.setProperty("maxQueueSize",this.config.requestBatchingMaxQueueSize||10),r.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=o()||[]).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),r=n.uiControlPageKey||s;this.fireTrackingEvent(e.EventTypes[e.EventTypes.ControlInteractionEvent],{requestHeader:{},header:{},controlUrn:g(t,r),interactionType:e.ControlInteractionType[i]},n)},t.prototype.fireNavigationEvent=function(t,i,n){void 0===n&&(n={});var s=t?m(t.pageUrn):null,r=n.uiControlPageKey||s;this.fireTrackingEvent(e.EventTypes[e.EventTypes.NavigationEvent],{requestHeader:{},header:{},previousPageInstance:t,triggerControlUrn:g(i,r)},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),r=t||s;this.fireTrackingEvent(e.EventTypes[e.EventTypes.PageViewEvent],{requestHeader:{pageKey:r},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=f(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:w(document)},this.config.userRequestHeaderProperties,t.requestHeader);delete t.requestHeader,delete t.header.pageInstance;var o=v({pageInstance:i.pageInstance,time:Date.now()},this.config.eventHeaderProperties,t.header);delete t.header;var a={requestHeader:s,header:o};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?r.validateEvent(c,l,(function(t){t&&console.error("Event "+e+" failed validation!")})):(r.sendEvent(c,l),n&&r.flush())},t.prototype.destroy=function(){r.destroy(),document.removeEventListener("click",this._boundDocumentClickHandler,!0)},t.createFromPageKey=function(e,i){return e.initialPageInstance=f(i),new t(e)},t}();e.AppTrackingInstance=b,e.clearNavStorage=function(){window.sessionStorage.removeItem("li_trk_navigation")},e.derivePageInstanceFromString=_,e.derivePageKeyFromUrn=m,e.generateControlUrn=g,e.generatePageInstance=f,e.generatePageUrn=p,e.generateTrackingId=u,e.getReferrer=E,e.getTrackingCode=w,e.stringifyPageInstance=function(e){return e?e.pageUrn+";"+e.trackingId:null},e.uuid=d,e.webTrackingTransport=r}(t)}));let me=null;function fe(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"ajax",i=arguments.length>2?arguments[2]:void 0;e.fireTrackingEvent("PageViewEvent",_e(i,t))}function _e(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"ajax";const i=L(document),n=O(document);let s={};return n&&(s.interfaceLocale=n),e&&(s.pageKey=e),{header:{},requestHeader:s,pageType:t,trackingInfo:{clientTimestamp:Date.now(),pageTag:i}}}function Ee(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const t=e.state&&e.state.currentPageInstance||{};let{trackingId:i}=t;return i&&!we(i)&&e.convertUuidTrackingIdToBase64&&(i=e.convertUuidTrackingIdToBase64(i)),"".concat(t.pageUrn,";").concat(i)}function we(e){return"string"==typeof e&&"=="===e.slice(-2)}function ve(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?|https?|ftp|mailto|tel|sms|blob|voyager|android-app|linkedin|chrome-extension|invalid|data:(?:(?:image/(?:gif|jpe?g|png|webp|bmp|tiff))|(?:application/x-font-woff)|(?:font/(?:opentype|ttf)))[;,]|[/.#?])");const be="prev",ye="next";class Te{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;if(!e)throw new Error("No element passed in");this._el=e,this._previousButton=e.querySelector(".".concat('slide-list__nav-button[data-direction="prev"]')),this._nextButton=e.querySelector(".".concat('slide-list__nav-button[data-direction="next"]')),this._listEl=e.querySelector(".slide-list__list"),this._slideNavDisabled="true"===this._el.dataset.disabled,this._dragLimit=this._listEl.offsetWidth,this._items=[...this._listEl.children],this._lock={},this._currentPage=t,this._isRtl="rtl"===document.body.dir,this._isMinimalNav=e.querySelector(".".concat("slide-list__header-nav--minimal")),this._prevTabIndexMap=new Map,this._boundFireScrollEvent=this._fireScrollEvent.bind(this),!("ontouchstart"in window)&&this._slideNavDisabled||(this._initCalc(),window.addEventListener("resize",this._handleWindowResize.bind(this)),"ontouchstart"in window&&(this._el.addEventListener("touchstart",this._handleTouchStart.bind(this)),this._el.addEventListener("touchmove",this._handleTouchMove.bind(this)),this._el.addEventListener("touchend",this._handleTouchEnd.bind(this))),e.querySelector(".slide-list__header-nav")&&this._el.addEventListener("click",this._handleScrollAction.bind(this)))}next(e){return e=e||1,this._currentPage+e<=this._pageTranslates.length-1&&(this._currentPage+=e,this._updateSlideButtons(),this._updateListPosition(),this._updateFocusableElements(),this._dispatchPageChangeEvent()),this._currentPage}prev(e){return e=e||1,this._currentPage-e>=0&&(this._currentPage-=e,this._updateSlideButtons(),this._updateListPosition(),this._updateFocusableElements(),this._dispatchPageChangeEvent()),this._currentPage}_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 r=[new Set],o=[];let a=0;for(let t=0;t<this._items.length;t+=1){const l=s[s.length-1],c=r[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(o.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){r.push(new Set(this._items.slice(t)));break}s.push((this._isRtl?a:u)-i),r.push(new Set([this._items[t]]))}else c.add(this._items[t]);a=p}}return s.push(n),o.forEach((e,t)=>{e>=n&&r[r.length-1].add(this._items[t])}),this._pageItems=r,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(Z).forEach(e=>{const t=e.getAttribute("tabindex");this._prevTabIndexMap.set(e,t),e.setAttribute("tabindex","-1")})}}_handleScrollAction(e){const t=U(e.target,".slide-list__nav-button"),i=t&&t.dataset.direction;i&&(this._listEl.addEventListener("transitionend",this._boundFireScrollEvent),i===be?this.prev():i===ye&&this.next())}_fireScrollEvent(){z(window,"scroll"),this._listEl.removeEventListener("transitionend",this._boundFireScrollEvent)}_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._dispatchPageChangeEvent()),this._resetTouchEvents(),this._updateSlideButtons(),this._updateListPosition())}_getEventPosition(e){return{x:e.touches[0].clientX,y:e.touches[0].clientY}}_isVerticalScrolling(){return Math.abs(this._t.current.x)<Math.abs(this._t.current.y)&&Math.abs(this._t.current.y)>10}_canDrag(){return this._dragThresholdMet||Math.abs(this._t.current.x)>Math.abs(this._t.current.y)&&Math.abs(this._t.current.x)>10}_updateTranslateXY(e,t){this._listEl.style.transform="translate3d(".concat(e||0,"px, ").concat(t||0,"px, 0px)")}_dispatchPageChangeEvent(){z(this._el,"pagechange",{pageNumber:this._currentPage})}}const Se="tabs__list",Ie="tab-button",Le="tab",Oe="tab-panel";class Ae{constructor(e){if(!(e&&e instanceof Node))throw new Error("No tabs element passed in");this._el=e,this._tabList=this._el.querySelector(".".concat(Se)),this._tabs=this._el.querySelectorAll(".".concat(Le)),this._tabButtonList=this._el.querySelectorAll(".".concat(Ie)),this._tabPanelList=this._el.querySelectorAll(".".concat(Oe)),this._initializeTabs(),this._tabList.addEventListener("keydown",e=>this._onTabButtonKeyDown(e)),this._tabList.addEventListener("click",e=>{let{target:t}=e;return this._onTabClick(t)})}_initializeTabs(){this._addAttributes(),[this._tabActive,this._tabPanelActive]=this._getActiveElements(),this._checkActivePanel()}_addAttributes(){const e=this._generateIds();this._tabs.forEach((t,i)=>{const n=this._tabPanelList[i],{tabId:s,tabPanelId:r}=e(i);t.id=s,t.setAttribute("aria-controls",r),n.id=r,n.setAttribute("aria-labelledby",s)})}_generateIds(){const e=this._el.dataset.id?"".concat(this._el.dataset.id,"_"):"";return function(t){return{tabPanelId:"".concat(e,"tab-panel_").concat(t),tabId:"".concat(e,"tab_").concat(t)}}}_getActiveElements(){const e=this._el.querySelector('[aria-selected="true"]')||this._tabs[0],t=e.getAttribute("aria-controls");return[e,document.getElementById(t)]}_checkActivePanel(){this._tabPanelActive.removeAttribute("hidden"),this._tabPanelList.forEach(e=>{e!==this._tabPanelActive&&e.setAttribute("hidden","")})}_onTabButtonKeyDown(e){switch(R(e.key)){case C.ENTER:case C.SPACEBAR:if(e.target!==this._tabActive){const t=U(e.target,".".concat(Le));this._activateTab(t)}break;case C.ARROW_LEFT:this._focusTabOnArrowPress(-1,e.target);break;case C.ARROW_RIGHT:this._focusTabOnArrowPress(1,e.target)}}_onTabClick(e){const t=U(e,".".concat(Le));t&&[...this._tabs].includes(t)&&t!==this._tabActive&&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._tabActive=e,this._tabActive.removeAttribute("tabIndex"),this._tabActive.setAttribute("aria-selected","true");const t=this._tabActive.getAttribute("aria-controls");this._tabPanelActive=document.getElementById(t),this._tabPanelActive.removeAttribute("hidden")}_deactivateActiveTab(){this._tabActive.setAttribute("tabIndex","-1"),this._tabActive.setAttribute("aria-selected","false"),this._tabActive=null,this._tabPanelActive.setAttribute("hidden",""),this._tabPanelActive=null}}class Pe{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 ke=["class","disabled","style","tabindex","type"];class Ce{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 Pe(this._container)}init(){this._observer.observe(this._container,{attributeFilter:ke,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=R(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(Z)],i=new Map;let n,s,r=0,o=t.length-1;for(;(!n||!s)&&r<=o;){if(!n){const s=t[r];n=ee(s,e,i)&&s,r++}if(!s){const n=t[o];s=ee(n,e,i)&&n,o--}}return s=s||n,[n,s]}}const{ENTER:Ne,ESCAPE:Re}=C;class xe{constructor(e){let{enablePageViewTracking:t=!1,shouldHideModal:i=(()=>!1),triggerByOutletEl:n=!0}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!e)throw new Error("No modal element passed in");this._el=e,this._parentNode=this._el.parentNode,this._topLevelContainer=this._getTopLevelContainer(),this._wrapperEl=this._el.querySelector(".".concat("modal__wrapper")),this._overlayEl=this._el.querySelector(".".concat("modal__overlay")),n&&(this._outletEls=this._getOutletEls()),this._exitButtonEl=this._el.querySelector(".".concat("modal__dismiss")),this._onKeyDownEvent=e=>this._onKeyDown(e),this._enablePageViewTracking=t,this._shouldHideModal=i,n&&this._outletEls.forEach(e=>{e.addEventListener("click",()=>this.open())}),this._exitButtonEl&&this._exitButtonEl.addEventListener("click",()=>this.close()),this._overlayEl.addEventListener("click",this._handleOverlayClick.bind(this)),this._focusTrap=new Ce(this._wrapperEl)}_getOutletEls(){const e=this._el.dataset.outlet,t=[...("default-outlet"===e?this._parentNode:document).querySelectorAll('[data-modal="'.concat(e,'"]'))];if(!t.length)throw new Error("No outlet was found with a data-modal attribute equal to the provided dataCustomOutlet param ".concat(e));return t}_getTopLevelContainer(){const e=document.querySelector(".".concat("top-level-modal-container"));if(!e){const e=document.createElement("div");return e.className="top-level-modal-container",document.body.appendChild(e)}return e}_handleOverlayClick(e){e.target===this._wrapperEl||this._wrapperEl.contains(e.target)||this.close()}_onKeyDown(e){const t=R(e.key),i=t===Ne&&document.activeElement===this._exitButtonEl;(t===Re||i)&&(this.close(),e.preventDefault())}open(){if(!this._shouldHideModal())return this._previouslyFocusedEl=document.activeElement,this._overlayEl.classList.add("modal__overlay--visible"),this._topLevelContainer.appendChild(this._el),this.noScroll(),document.addEventListener("keydown",this._onKeyDownEvent),z(this._el,"open"),this._wrapperEl&&this._wrapperEl.focus(),this._focusTrap.init(),this._enablePageViewTracking&&window.tracking?window.tracking.then(e=>{const t=I(document).replace("_jsbeacon","");fe(e,"ajax","".concat(t,"_").concat(this._el.id))}):Promise.resolve();z(this._el,"didNotOpen")}close(){this._overlayEl.classList.remove("modal__overlay--visible"),this._parentNode.appendChild(this._el),this.removeNoScroll(),document.removeEventListener("keydown",this._onKeyDownEvent),z(this._el,"close"),this._previouslyFocusedEl&&this._previouslyFocusedEl.focus(),this._focusTrap.tearDown()}noScroll(){document.body.classList.add("no-scroll")}removeNoScroll(){document.body.classList.remove("no-scroll")}}const Ue={COPY:"copy",LINKEDIN:"linkedin",TWITTER:"twitter",FACEBOOK:"facebook"};Object.keys(Ue).map(e=>Ue[e]);const De={};function Be(e){const t=document.getElementById(e);if(!t&&void 0!==De[e])return De[e];if(!t)return console.warn("Element with id: ".concat(e," not found")),De[e]=null,De[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):(De[e]=i,t.parentNode.removeChild(t),De[e])}const Fe=["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(Fe,"i");const Me=/.*(iPad|iPod|iPhone|Android|BB10|BlackBerry|IEMobile).*/;class je{constructor(e){let{scrollThreshold:t=50,hideOnScrollBack:i=!1,hideOnScrollDown:n=!1,isBottom:s=!0,exposeStickyState:r=!1,marginApplied:o=!1,debounceDelay:a=100}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(i&&n)throw new Error("hideOnScrollBack & hideOnScrollDown cannot both be true at the same time");var l;this.el=e,this.scrollThreshold=t,this.hideOnScrollBack=i,this.hideOnScrollDown=n,this.isBottom=s,this.exposeStickyState=r,this._scrollListener=K(this._onScroll.bind(this),a),this.marginApplied=o,this.previousScrollPosition=window.pageYOffset,(l=navigator.userAgent)&&Me.test(l)||window.addEventListener("resize",this._setSpacing.bind(this)),D(()=>{this.originalMarginTop=parseInt(window.getComputedStyle(document.body).marginTop)||0,this.originalMarginBottom=parseInt(window.getComputedStyle(document.body).marginBottom)||0,this._setSpacing(!0),this._doesPageHaveEnoughScroll()?window.addEventListener("scroll",this._scrollListener):this.hideOnScrollBack||this.show()})}_doesPageHaveEnoughScroll(){return document.body.scrollHeight>window.innerHeight+this.scrollThreshold}_setSpacing(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.isBottom?this._setBottomSpacing():this.hideOnScrollBack||this.hideOnScrollDown||(this._setTopSpacing(),e&&this.show())}_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"),z(this.el,"show")}hide(){this.el.classList.remove("show"),z(this.el,"hide")}_onScroll(){const e=window.pageYOffset;e>this.scrollThreshold?(this.hideOnScrollBack||this.hideOnScrollDown||this.exposeStickyState||window.removeEventListener("scroll",this._scrollListener),this.hideOnScrollDown?this.hide():this.show(),this.exposeStickyState&&this.el.classList.add("stuck")):(this.hideOnScrollBack&&this.hide(),this.exposeStickyState&&this.el.classList.remove("stuck")),this.previousScrollPosition>e&&this.hideOnScrollDown&&this.show(),this.previousScrollPosition=e}}!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 qe{constructor(e){let{actionButtonClassName:t="promo__action",dismissButtonClassName:i="promo__dismiss",lockScreenClassName:n="no-scroll",startCoolOffAfterImpression:s=!1}=arguments.length>1&&void 0!==arguments[1]?arguments[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 r=this.promo.hasAttribute("data-enable-app-detection");this._initPromise=this._getInitializationParams(e,r),this._initPromise.then(e=>{let{cooloffInMinutes:t,impressionsBeforeDisplay:i}=e;if(this.cooloffInMinutes=t,this.coolOffEnabled=this.cooloffInMinutes>0,this.impressionsBeforeDisplay=i,this.containsOverlay&&this.overlay.addEventListener("click",this.clickHandler),!this._hasMetImpressionThreshold(this.impressionsBeforeDisplay))return;let n=!this.coolOffEnabled;this.coolOffEnabled&&(n=this._hasCoolOffExpired(s),n&&this._setCoolOfStart("global:impression")),this._toggleShowPromo(n)})}_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("ssr-ui-lib:global-impression-count-map"))||{})[e]||0}("apptivation-promo")+1<e)||(function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;if(!e)throw"impressionKey is required";const i=JSON.parse(localStorage.getItem("ssr-ui-lib:global-impression-count-map"))||{},n=i[e]||0;i[e]=n+t,localStorage.setItem("ssr-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");if(this._toggleShowPromo(!1),this.coolOffEnabled&&this._setCoolOfStart("global:dismiss"),i)if(this.shouldUseAndroidOemDeepLink){const e=qe._getAndroidOEMDeepLinkFromUrl(n);location.assign(e),qe._checkNativeAppOpen(n)}else location.assign(n)}get shouldUseAndroidOemDeepLink(){return/Android/.test(navigator.userAgent)&&this.promo.hasAttribute("data-use-deep-link-for-oem-custom-browsers")}static _getAndroidOEMDeepLinkFromUrl(e){const{pathname:t,search:i}=new URL(e);return"".concat("linkedin://you").concat(t).concat(i)}static _checkNativeAppOpen(e){const t=setTimeout(()=>{"hidden"!==document.visibilityState&&location.assign(e)},1500);document.addEventListener("visibilitychange",()=>{clearTimeout(t)})}_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("ssr-ui-lib:apptivation-promo-cooloff-start-timestamp-map"))||{}}_setCoolOfStart(e){this.cooloffStartTimestampMap[e]=Date.now(),localStorage.setItem("ssr-ui-lib:apptivation-promo-cooloff-start-timestamp-map",JSON.stringify(this.cooloffStartTimestampMap))}}const He="loader--absolute",Ge="loader--show",Je="loader--full-screen",Ke="no-scroll",Ve="loader-wrapper";class ze{constructor(e){let{wrapperEl:t}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!e)throw new Error("Loader el required");if(t&&!t.contains(e))throw new Error("Wrapper element is not a parent of the Loader el");this.el=e,this.wrapperEl=t,this.isAbsoluteVariant=this.wrapperEl&&this.el.classList.contains(He),window.addEventListener("pagehide",e=>{let{persisted:t}=e;t&&this.hide()})}show(){this.el.classList.add(Ge),this.el.classList.contains(Je)&&document.body.classList.add(Ke),this.isAbsoluteVariant&&this.wrapperEl.classList.add(Ve)}hide(){this.el.classList.remove(Ge),document.body.classList.remove(Ke),this.isAbsoluteVariant&&this.wrapperEl.classList.remove(Ve)}}const We="dismissable-input",Ye="dismissable-input--focus",Qe="dismissable-input__button",Xe="dismissable-input__button--show",Ze="dismissable-input__input";class $e{constructor(e){this.el=e,this._input=this.el.querySelector(".".concat(Ze)),this._dismissButtonEl=this.el.querySelector(".".concat(Qe)),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(Ye),this._updateDismissButton(),z(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(Xe)}_showDismissButton(){this._dismissButtonEl.classList.add(Xe)}_onInputBlur(){this.el.classList.remove(Ye)}clear(){this._input.value="",this._updateDismissButton(""),this._input.focus(),z(this.el,"clear")}}const et={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"},tt="i18n_aria_live_text_no-suggestions",it="i18n_aria_live_text_one-suggestion",nt="i18n_aria_live_text_multiple-suggestions",st=500;class rt{constructor(e,t){let{createDismissableInput:i,elementClasses:n=et,generateApiUrl:s,liveTextEl:r,liveTextClearTime:o=st,onSelect:a,onInput:l=(()=>{}),inputEl:c,dropdownContainerEl:h,dropdownListEl:d}=t;this.el=e,this._liveTextClearTime=o,this._elementClasses=n,this._input=c||this.el.querySelector(".".concat(Ze)),this._dropdownContainerEl=h||this.el.querySelector(".".concat(this._elementClasses.dropdown)),this._dropdownListEl=d||this.el.querySelector(".".concat(this._elementClasses.dropdownList)),this._listId=this._dropdownListEl.id,this._generateApiUrl=s,this._onSelect=a,this._onInput=l,this._typeaheadItemTemplate=this.el.querySelector(".".concat(this._elementClasses.template)),this._boundClickOutsideToCloseHandler=this._clickOutsideToCloseHandler.bind(this),this._liveTextEl=r||this.el.querySelector(".".concat(this._elementClasses.liveText)),i&&(this.dismissableInput=new $e(this.el)),this._getLiveTextOptions(),this._resetState(),this._attachEventListeners(),this._requestHandler=K(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._input.getAttribute("aria-owns")===this._listId&&Boolean(this._input.getAttribute("aria-expanded"))}_clickOutsideToCloseHandler(e){e.target!==this._input&&this._hideList()}_onKeyDown(e){if(!this._isListActive())return;switch(R(e.key)){case C.ARROW_DOWN:e.preventDefault(),this._moveToResult(1);break;case C.ARROW_UP:e.preventDefault(),this._moveToResult(-1);break;case C.ENTER:this._checkForListItemSelect(e)}}_moveToResult(e){if(0===this._dropdownListItemEls.length)return;const t=-1===e?-1:0;let 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 se(this._generateApiUrl(e),{sendCookies:!1}).then(e=>e&&JSON.parse(e.responseText)||[])}_getItemEl(){return document.importNode(this._typeaheadItemTemplate.content,!0)}_appendResults(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];this._hideList(),e.forEach((e,t)=>{const i=this._getItemEl(),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=M(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,e)}_updateInputTo(e,t){this._input.value=e.textContent.trim(),this._input.focus(),"function"==typeof this._onSelect&&this._onSelect(e,t),this._hideList()}_getLiveTextOptions(){this._liveTextNoSuggestions=Be(tt),this._liveTextOneSuggestion=Be(it),this._liveTextMultipleSuggestions=Be(nt)}_getLiveText(){let e;switch((this._dropdownListItemEls||[]).length){case 0:e=this._liveTextNoSuggestions;break;case 1:e=this._liveTextOneSuggestion;break;default:e=this._liveTextMultipleSuggestions}return e}_setLiveText(){const e=this._getLiveText(),t=document.createElement("p");t.textContent=e,this._liveTextEl.children.length&&(this._liveTextEl.removeChild(this._liveTextEl.firstChild),clearTimeout(this._liveTextTimeout)),this._liveTextEl.appendChild(t),this._liveTextTimeout=setTimeout(()=>{this._liveTextEl.firstChild&&this._liveTextEl.removeChild(this._liveTextEl.firstChild)},this._liveTextClearTime)}_setExpandedState(e){this._input.setAttribute("aria-expanded",e),e&&(this._input.setAttribute("aria-owns",this._listId),this._input.setAttribute("aria-controls",this._listId))}}function ot(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:window;return e.innerWidth<=769}class at{constructor(e,t,i){let{onCloseExpandedSearch:n=(e=>e),isMobileDevice:s=!1}=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};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 Ce(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;U(t,".".concat(et.block))||document.activeElement.blur()}_userIsTabbedOut(){if(this.expandedEl.classList.contains("isExpanded")&&ot()){return!this.expandedEl.contains(document.activeElement)}return!1}}class lt extends rt{constructor(e,t){let{generateApiUrl:i,liveTextEl:n,onSelect:s,onInput:r}=t;super(e,{createDismissableInput:!0,generateApiUrl:i,liveTextEl:n,onSelect:s,onInput:r})}}const ct={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"},ht="i18n_aria_live_text_recent-searches-one-suggestion",dt="i18n_aria_live_text_recent-searches-multiple-suggestions",ut="i18n_aria_live_text_recent-searches-cleared";class pt extends rt{constructor(e,t){let{liveTextEl:i,clearRecentSearchApiBaseUrl:n}=t;if(super(e,{liveTextEl:i,elementClasses:ct,liveTextClearTime:1e3}),!e)throw Error("An element must be provided to RecentSearches");if(this.dropdownContainerEl=e.querySelector(".".concat(ct.dropdown)),!this.dropdownContainerEl)throw Error("A RecentSearches container element must be in the RecentSearches parent element");this._clearRecentSearchApiBaseUrl=n,this._dropdownListItemEls=M(this.dropdownContainerEl.querySelectorAll(".".concat(ct.listItem))),this._clearBtnItem=e.querySelector(".".concat(ct.listItemClearButton)),this._dropdownListItemEls.push(this._clearBtnItem),this._dismissButtonEl=e.querySelector(".".concat(Qe))}_attachEventListeners(){this._clearBtn=this.el.querySelector(".".concat(ct.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(ct.listItemLink));i?this._redirect(i):t.classList.contains(ct.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(ct.showList),document.body.removeEventListener("click",this._boundClickOutsideToCloseHandler),this._setExpandedState(!1),this._setHighlightedEl(null))}_getLiveTextOptions(){this._liveTextOneSuggestion=Be(ht),this._liveTextMultipleSuggestions=Be(dt),this._liveTextClearedSuggestions=Be(ut)}_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(){se(this._clearRecentSearchApiBaseUrl,{method:"DELETE"}).then(()=>{this._removeEventListeners(),this._informUserThatSearchesAreCleared=!0,super._hideList(),super._setLiveText()}).catch(e=>{throw e})}}const gt="switcher-tabs__tab--active";class mt{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 ne(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")&&!e.target.classList.contains("switcher-tabs__tab"))return;const t=U(e.target,".".concat("switcher-tabs__tab")),i=t.querySelector(".".concat("switcher-tabs__button")).getAttribute("data-switcher-type");i&&t&&this.currentType!==i?(this.collapsibleSwitcher.collapsible.currentListItem=t,this._switchTo(i,t)):this.collapsibleSwitcher.collapsible.close()}_switchTo(e,t){this._updateActiveTab(t),this._updatePlaceholderText(),this.el.setAttribute("data-current-search-type",e),this.collapsibleSwitcher.collapsible.close(),this.baseSearchBarsMap[this.currentType].isExpanded?this.baseSearchBarsMap[e].showExpandedSearch():this.baseSearchBarsMap[e].hideExpandedSearch(),this.currentType=e}_updateActiveTab(e){const t=this.el.querySelector(".".concat(gt));t&&(t.setAttribute("aria-selected","false"),t.classList.remove(gt)),e.classList.contains("switcher-tabs__tab")&&(e.classList.add(gt),e.setAttribute("aria-selected","true"))}_updatePlaceholderText(){let e=this.el.querySelector(".".concat(gt));if(e){let t=e.querySelector(".".concat("switcher-tabs__button"));this.dropdownPlaceholderText.textContent=t.textContent}}}class ft{constructor(e){let{typeaheadApiBaseUrl:t,clearRecentSearchApiBaseUrl:i,shouldSearchOnSelect:n=!0,onCloseExpandedSearch:s,includeSwitcher:r=!0}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(this.el=e,!this.el)throw new Error("No element passed into SearchBar");this.typeaheadApiBaseUrl=t;const o=this.el.querySelector(".".concat("search-bar__live-text"));this.shouldSearchOnSelect=n,this.placeholderEl=this.el.querySelector(".".concat("search-bar__placeholder"));const a=!!this.el.querySelector(".".concat("search-bar__mobile-wrapper"));if(this.baseSearchBarsMap=M(this.el.querySelectorAll(".".concat("base-search-bar"))).reduce((e,t)=>{const i=new at(t,this.el,this.placeholderEl,{onCloseExpandedSearch:s,isMobileDevice:a});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 lt(e,{generateApiUrl:this._generateKeywordsTypeaheadApiUrl.bind(this),liveTextEl:o,onSelect:this._onKeywordsTypeaheadSelect.bind(this)});e.querySelector(".".concat(ct.dropdown))&&new pt(e,{clearRecentSearchApiBaseUrl:i,liveTextEl:o}),new lt(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(We,".search-input"))).forEach(e=>{new $e(e);e.querySelector(".".concat(ct.dropdown))&&new pt(e,{clearRecentSearchApiBaseUrl:i,liveTextEl:o})})}else Array.from(this.el.querySelectorAll(".".concat(We))).forEach(e=>new $e(e));r&&(this.switcher=new mt(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(I(document),"-").concat(t)})})})}}class _t{constructor(e,t){let{isShown:i=!0}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(!e)throw Error("An element must be provided to the dismissable element");if(!t)throw Error("A dismiss button must be provided to the dismissable element");this.el=e,this.dismissBtn=t,this._dismissEvent=e=>this.dismiss(e),i&&this.show()}show(){this.el.classList.add("show"),this.el.classList.remove("dismiss"),this.dismissBtn.addEventListener("click",this._dismissEvent),z(this.el,"show")}dismiss(e){this.el.classList.remove("show"),this.el.classList.add("dismiss"),z(this.el,"dismiss",e),this.dismissBtn.removeEventListener("click",this._dismissEvent)}}function Et(){const e=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return!e||0===e.trim().length};return e.errorMessageSuffix="error_empty",e}function wt(e){const t=function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return t.length<e};return t.errorMessageSuffix="error_too_short",t}function vt(e){const t=function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return t.length>e};return t.errorMessageSuffix="error_too_long",t}const bt={session_key:[Et(),wt(3),vt(128)],session_password:[Et(),wt(6),vt(400)]};function yt(e,t){const i=bt[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 Tt=window||n;const St=/^((?!\.(stg|corp)).)*\.linkedin\.(com|cn)$/;function It(){const e=Tt.location?Tt.location.hostname:"";return St.test(e)}function Lt(){return It()?Ot()?"platform.linkedin.cn":"platform.linkedin.com":Ot()?"platform.linkedin-ei.cn":"platform.linkedin-ei.com"}function Ot(){const e=Tt.location?Tt.location.hostname:"";return/\.cn$/.test(e)}function At(e,t,i){let n=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];if("function"!=typeof t||"function"!=typeof i)throw new TypeError("One of the specified callbacks is not a function.");const s=new Tt.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 Pt(e){return function(){let e=S();return!e||e.consent.optedInConsentMap.ADVERTISING}()&&function(e){return e["compliance.isGDPROptIn"]}(e)}function kt(e){return function(){let e=S();return!e||e.consent.optedInConsentMap.ANALYTICS_AND_RESEARCH}()}function Ct(e){return function(){let e=S();return!e||e.consent.optedInConsentMap.FUNCTIONAL}()}function Nt(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}function Rt(e){const t=new Tt.Date;t.setSeconds(0),t.setMilliseconds(0);const i=Math.floor(t.getMinutes()/e)*e;return t.setMinutes(i),t.getTime()}function xt(){return/utagdb=[^;]+/.test(Tt.document.cookie)}let Ut;const Dt={},Bt={};function Ft(){return"https://".concat(It()?Ot()?"www.linkedin.cn":"www.linkedin.com":Ot()?"www.linkedin-ei.cn":"www.linkedin-ei.com").concat("/litms/api/metadata/user")}function Mt(){return function(e){let t=Nt({},e);return t["compliance.isAdvertisingOptIn"]=Pt(t),t["compliance.isAnalyticsAndResearchOptIn"]=kt(),t["compliance.isFunctionalOptIn"]=Ct(),t}(Dt)}function jt(e){if(!Bt[e]){const t=function(e){return"https://".concat(Lt(),"/litms/allowlist/").concat(encodeURIComponent(e))}(e),i=new Promise((e,i)=>{At(t,t=>{e(JSON.parse(t))},e=>{i(e)},!1)});Bt[e]=i}return Bt[e]}Tt.utag_data||(Tt.utag_data={});const qt="undefined"!=typeof window&&window&&"node"!==window.appEnvironment;let Ht;function Gt(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:5,i=null;return"string"==typeof e&&(i="https://".concat(Lt(),"/litms/utag/").concat(e,"/utag.js?cb=").concat(Rt(t))),i}function Jt(){return function(){if(void 0===Ht&&qt){const e=Tt.document.cookie.match(/litms_utag_override=([^;]+)/);Ht=e?e[1]:""}return Ht}().length>0}function Kt(e,t,i,n){e.onLoadRulesRunOnce(i);let s=Nt({},t,Mt());e.view(s),xt()&&Tt.trackingEventDebugData.push({profileName:n,eventType:"PV",trackingData:s})}function Vt(e,t,i,n){e.onLoadRulesRunOnce(i);let s=Nt({},t,Mt());e.link(s),xt()&&Tt.trackingEventDebugData.push({profileName:n,eventType:"CI",trackingData:s})}function zt(e,t,i){if(function(e){Tt.utag=e}(e),t instanceof Array&&t.length>0){const n=t.length;for(let s=0;s<n;s++){const n=t.shift();n.isControlInteraction?Vt(e,n.data,n.callback,i):Kt(e,n.data,n.callback,i)}}}function Wt(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 Yt(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 Qt(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:Yt(e,t)}}(e,t));if(0!==t.length)return{info:{name:"ExternalMarketingTagFireEvent"},body:{header:{},requestHeader:{},tags:t}}}Tt.utag_cfg_ovrd=Tt.utag_cfg_ovrd||{},Tt.trackingEventDebugData=Tt.trackingEventDebugData||[],Tt.utag_cfg_ovrd.noview=!0,Tt.utag_cfg_ovrd.nocookie=!0;const Xt=qt&&new RegExp("bot|google|aolbuild|baidu|bing|msn|duckduckgo|teoma|slurp|yandex|sogou|facebook|alexa","i").test(Tt.navigator.userAgent),Zt={};let $t,ei,ti,ii={};class ni{constructor(){let{profileName:e,tracking2Instance:t,enableAllowlisting:i=!1,cacheBusterInterval:n}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.isInitialized=!1,this.isAllowlistingEnabled=!1,this._allowlistReadyPromise=Promise.resolve({}),this.isContainerTagLoaded=!1,this._queue=[],this.allowlist={pageKey:{},controlUrn:{}},this.tracking2Instance=t,this.profileName=e,this.enableAllowlisting=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.enableAllowlisting?(this.isAllowlistingEnabled=!0,this._onInitializeSuccessCallback=e,this._onInitializeFailureCallback=t,this._allowlistReadyPromise=jt(this.profileName).then(e=>this._processAllowlistResult(e)).catch(e=>console.error("Unable to retrieve allowlists for profile : ".concat(this.profileName),e))):this._loadContainerTag(e,t)}),this.profileName&&(Zt[this.profileName]=this),this.initializePromise):Promise.resolve()}_processAllowlistResult(e){Object.keys(e).forEach(t=>this.addValuesToAllowlist(t,e[t]))}_loadContainerTag(e,t){void 0!==Tt.utag&&(Tt.utag=void 0),void 0!==Tt.utag_data&&(Tt.utag_data=void 0);const i=function(){if(!Ut){const e=Ft();Ut=new Promise((t,i)=>{At(e,e=>{try{t(JSON.parse(e))}catch(e){console.error("Invalid JSON format of userSettings"),i(e)}},e=>{i(e)})})}return Ut}().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=>{Dt[i+t]=e[t]})}(e[t],t)})}).catch(e=>{console.error("Unable to get user settings while calling loading container tag",e)}),n=(s=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"main",t=arguments.length>1?arguments[1]:void 0;return Jt()?Ht:Gt(e,t)}(this.profileName,this.cacheBusterInterval),new Promise(e=>{const t=Tt.document.createElement("script");t.type="text/javascript",t.src=s,t.async=!0,t.onload=e,Tt.document.getElementsByTagName("head")[0].appendChild(t)}));var s;Promise.all([i,n]).then(()=>{this.isContainerTagLoaded=!0,this._uTag=Tt.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&&Wt(this.tracking2Instance,t),e(t)}).catch(e=>{console.error("Unable to complete loading container tag",e),t()})}_shouldInitialize(){return!Xt}_shouldProcessEvent(e){return Xt?Promise.resolve(!1):this.isAllowlistingEnabled?new Promise(t=>{this._allowlistReadyPromise.then(()=>{t(this._isEventAllowlisted(e))})}):Promise.resolve(!0)}_isEventAllowlisted(e){return void 0!==e.controlUrn?this._isEventAllowlistedByControlUrn(e):this._isEventAllowlistedByPageKey(e)}_isEventAllowlistedByPageKey(e){return void 0!==this.allowlist.pageKey[e.pageKey]}_isEventAllowlistedByControlUrn(e){return void 0!==this.allowlist.controlUrn[e.controlUrn]}addValuesToAllowlist(e,t){"string"==typeof e&&Array.isArray(t)&&void 0!==this.allowlist[e]&&t.forEach(t=>{this.allowlist[e][t]=!0})}_processQueuedEvents(){this.isContainerTagLoaded?zt(this._uTag,this._queue,this.profileName):this.isInitialized&&this.isAllowlistingEnabled&&this._loadContainerTag(this._onInitializeSuccessCallback,this._onInitializeFailureCallback)}_fireAuditEvent(){const e=Qt(this._uTag);return void 0!==this.tracking2Instance&&void 0!==e&&Wt(this.tracking2Instance,e),e}_createCallbackForAuditEvent(e){const t=this;return function(){const i=t._fireAuditEvent();"function"==typeof e&&e(i)}}_checkForCookieConsent(){S().consent.consentAvailable&&!ei?this._refireTracking():$t=setTimeout(()=>{this._checkForCookieConsent()},2e3)}_refireTracking(){ii.payloads&&ii.payloads.forEach(e=>{const{data:t,callback:i}=e;t.cookieConsentGiven=!0,this.trackPageView(t,i)})}_savePayloadForRefire(e,t){if(qt){ei=!1;const{payloads:i=[],url:n}=ii,s=location.href,r={data:e,callback:t},o=s!==n?[]:i;o.push(r),ii={url:s,payloads:o},$t||($t=setTimeout(()=>{this._checkForCookieConsent()},2e3))}}trackPageView(e,t){return S().consent.consentAvailable||this._savePayloadForRefire(e,t),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 si(e){let{event:t,litmsInstance:i,pageKey:n}=e;const s=t.target.getAttribute("data-tracking-control-name"),r=t.target.hasAttribute("data-tracking-litms");s&&r&&i.trackControlInteraction({controlUrn:"urn:li:control:".concat(n,"-").concat(s)})}class ri{constructor(e){if(this.trackingInstance=e,this.pageKey=I(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 ni({tracking2Instance:this.trackingInstance,profileName:this.litmsProfileName}),this.litmsInstance.initialize(),this.clickEventListener=e=>si({event:e,litmsInstance:this.litmsInstance,pageKey:this.pageKey}),this.keydownEventListener=e=>{"Enter"!==e.key&&" "!==e.key&&"Spacebar"!==e.key||si({event:e,litmsInstance:this.litmsInstance,pageKey:this.pageKey})},document.body.addEventListener("click",this.clickEventListener,!0),document.body.addEventListener("keydown",this.keydownEventListener,!0)}trackPageView(){let{pageKey:e=""}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!("string"==typeof e||e instanceof String))throw new Error("The pageKey is not a string!");this.litmsInstance&&this.litmsInstance.trackPageView({pageKey:e||this.pageKey})}}function oi(e){if(!ti){if(!e)throw new Error("No trackingInstance passed in!");ti=new ri(e)}return ti}const ai='[data-js-module-id="guest-input"]';class li{constructor(e){let{customValidate:t,fireTrackingOnInit:i=!0}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!e)throw Error("An element must be provided to sign in form");this.el=e,this._customValidate=t,this._fireTrackingOnInit=i,this.showText=Be("i18n_sign_in_form_show_text"),this.showLabelText=Be("i18n_sign_in_form_show_label"),this.hideText=Be("i18n_sign_in_form_hide_text"),this.hideLabelText=Be("i18n_sign_in_form_hide_label"),this.usernameEl=this.el.querySelector("input[name=".concat("session_key","]")),this.passwordEl=this.el.querySelector("input[name=".concat("session_password","]")),this.usernameElId=this.usernameEl.id,this.passwordElId=this.passwordEl.id,this.usernameMsgEl=this.el.querySelector("".concat('[data-js-module-id="guest-input__message"]','[for="').concat(this.usernameElId,'"]')),this.passwordMsgEl=this.el.querySelector("".concat('[data-js-module-id="guest-input__message"]','[for="').concat(this.passwordElId,'"]')),this.sessionRedirectEl=this.el.querySelector("input[name=".concat("session_redirect","]")),this.passwordVisibilityToggle=this.el.querySelector(".".concat("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",P(V("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=I(document).replace("_jsbeacon",""),i=t+"_login-form",n=this.el.querySelector(".sign-in-form__submit-btn"),s="".concat(t,"-").concat(n.dataset.trackingControlName),r=Ee(e),o=this._createHiddenInputElement("pageInstance",r),a=this._createHiddenInputElement("controlId",s);this.el.appendChild(a),this.el.appendChild(o),this._fireTrackingOnInit&&this.fireTracking(e,i)})}fireTracking(e,t){fe(e,"ajax",t),oi(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=yt(this.usernameEl.name,this.usernameEl.value);if(e){this.usernameEl.closest(ai).classList.add("input-error"),this.usernameMsgEl.classList.remove("hidden");const t="".concat("i18n_username","_").concat(e);return this.usernameMsgEl.innerText=Be(t),this.usernameEl.focus(),!0}this.usernameEl.closest(ai).classList.remove("input-error"),this.usernameMsgEl.classList.add("hidden");const t=yt(this.passwordEl.name,this.passwordEl.value);if(t){this.passwordEl.closest(ai).classList.add("input-error"),this.passwordMsgEl.classList.remove("hidden");const e="".concat("i18n_password","_").concat(t);return this.passwordMsgEl.innerText=Be(e),this.passwordEl.focus(),!0}this.passwordEl.closest(ai).classList.remove("input-error"),this.passwordMsgEl.classList.add("hidden")}}!function(){if("function"==typeof window.CustomEvent)return!1;window.CustomEvent=function(e,t){t=t||{bubbles:!1,cancelable:!1,detail:null};var 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 ci="990339570472-k6nqn1tpmitg8pui82bfaun3jrpmiuhs.apps.googleusercontent.com",hi={GOOGLE_ERROR:"googleError",GOOGLE_USER_FETCHED:"googleUserFetched",INITIALIZED:"initialized",PROMPT_MOMENT:"promptMomentNotification",TOKEN_FETCHED:"tokenFetched"},di={INITIALIZATION:"initialization",AUTHENTICATION:"authentication"},{GOOGLE_ERROR:ui,GOOGLE_USER_FETCHED:pi,INITIALIZED:gi}=hi,{INITIALIZATION:mi,AUTHENTICATION:fi}=di;class _i extends EventTarget{constructor(e){let{libSrcPath:t,el:i,clientId:n=ci}=e;if(super(),!i)throw TypeError("DOM element for Sign In button is required");if(this.libSrcPath=t,this.el=i,this.clientId=n,window.gapi)this._initializeGoogleAuth();else{if(!t)throw TypeError("Google Sign In lib not already loaded on the page. libSrcPath is required to load the lib.");s=()=>{!function(e,t){const i=document.createElement("script");i.src=e,t&&(i.onload=t),document.head.appendChild(i)}(t,this._initializeGoogleAuth.bind(this))},"complete"===document.readyState?s():window.addEventListener("load",()=>{s()})}var s}_initializeGoogleAuth(){return gapi.auth2.init({client_id:this.clientId}).then(e=>{this.auth2=e,this._attachSignIn();const t=new CustomEvent(gi);this.dispatchEvent(t)}).catch(e=>{const t={type:mi,message:e.error},i=new CustomEvent(ui,{detail:t});this.dispatchEvent(i)})}_attachSignIn(){this.auth2.attachClickHandler(this.el,{},e=>{const t=new CustomEvent(pi,{detail:this._getGoogleUserInformation(e)});this.dispatchEvent(t)},e=>{const t={type:fi,message:e.error},i=new CustomEvent(ui,{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=hi,wi=di,{GOOGLE_USER_FETCHED:vi,GOOGLE_ERROR:bi,INITIALIZED:yi}=Ei,{INITIALIZATION:Ti}=wi;class Si{constructor(e){let{initSuccess:t,initFailure:i}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};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 ze(this.loaderEl),window.tracking&&window.tracking.then(e=>{const t=I(document).replace("_jsbeacon",""),i="".concat(t,"-").concat(this.btnEl.dataset.trackingControlName),n=Ee(e),s=this._createHiddenInputElement("pageInstance",n),r=this._createHiddenInputElement("controlId",i);this.el.appendChild(r),this.el.appendChild(s)}),this.googleSignInPromise=this._createGoogleSignIn()}_createGoogleSignIn(){return window.lazyloader.then(e=>e.getLazyLoadedJavascriptModule("google-sign-in-lib")).then(()=>(this.googleSignInInstance=new _i({el:this.btnEl}),this.initSuccess&&"function"==typeof this.initSuccess&&this.googleSignInInstance.addEventListener(yi,this.initSuccess),this.googleSignInInstance.addEventListener(vi,e=>{const{idToken:t}=e.detail;this._submitWithGoogle(t)}),this.googleSignInInstance.addEventListener(bi,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===Ti&&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}}const Ii=30;class Li{constructor(e){let{daysCoolOff:t=Ii,dismissOnOutsideClick:i=!0,dismissOnScroll:n=!1,dismissBtnEl:s}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};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 _t(this.el,this.dismissBtn,{isShown:!1});const e=this.el.querySelector(".sign-in-form");e&&new li(e);const t=this.el.querySelector(".google-sign-in-cta-widget");t?new Si(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 Oi=".".concat("show-more-less","__list"),Ai=".".concat("show-more-less","__more-button"),Pi=".".concat("show-more-less","__less-button"),ki="".concat("show-more-less","__list--hide-after"),Ci="".concat("show-more-less","__button--hide");class Ni{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e=>e.querySelector(Z);if(!e)throw Error("An element must be provided to ShowMoreLess");this.el=e,this.listEl=this.el.querySelector(Oi),this._getFocusItemFromListItem=t,this.maxNumToShow=parseInt(this.listEl.getAttribute("data-max-num-to-show")),this.hideClass="".concat(ki,"-").concat(this.maxNumToShow),this.showMoreButton=this.el.querySelector(Ai),this.showLessButton=this.el.querySelector(Pi),this._attachEventListeners(),this.firstHiddenListItem=this.listEl.children[this.maxNumToShow],this.isExpanded=!this.listEl.classList.contains(this.hideClass),new X(e,this.listEl,{mainButton:this.showMoreButton,closeButton:this.showLessButton},{isOpen:this.isExpanded})}_attachEventListeners(){this.el.addEventListener("open",()=>this._showElements()),this.el.addEventListener("close",()=>this._hideElements()),this.listEl.addEventListener("focus",e=>this._focusItem(e))}_focusItem(e){let{target:t}=e;if(t){let e=this._getFocusItemFromListItem(t);e&&e.focus()}}_showElements(){this.listEl.classList.remove(this.hideClass),this._toggleButtons(!1),this._focusItem({target:this.firstHiddenListItem})}_hideElements(){this.listEl.classList.add(this.hideClass),this._toggleButtons(!0)}_toggleButtons(e){e?(this.showLessButton.classList.add(Ci),this.showMoreButton.classList.remove(Ci)):(this.showLessButton.classList.remove(Ci),this.showMoreButton.classList.add(Ci))}}class Ri{constructor(e){let{dropdownTriggerEl:t,dropdownContentEl:i,enablePageViewTracking:n}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!e)throw Error("An element must be provided to DropdownToModal");this.el=e,this.dropdownEl=this.el.querySelector(".collapsible-dropdown"),this.modalEl=this.el.querySelector(".modal"),this.dropdownTriggerEl=t||this.el.querySelector(".dropdown-to-modal__button"),this.dropdownEl?new ne(this.dropdownEl,{dropdownContentEl:i,dropdownTriggerEl:this.dropdownTriggerEl}):this.modalEl&&new xe(this.modalEl,{enablePageViewTracking:n})}}const xi="roo:event:close",Ui="roo:event:ready",Di="roo:event:nodeRendered",Bi="roo:event:noTargetMatch",Fi="roo:showSurvey";class Mi{constructor(e){let{isDev:t=!1,customTriggerFn:i,triggerTime:n=7e3}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!e)throw new Error("You must pass an element to initialize qualaroo");if(this.el=e,this.isDev=t,this.qualarooIframe=this.el.querySelector(".qualaroo__iframe"),this.surveyId=this.qualarooIframe.getAttribute("data-survey-id"),this.channelId=this.qualarooIframe.getAttribute("data-channel-id"),!this.surveyId||!this.channelId)throw new Error("Channel Id and Survery Id must be present on iframe element");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=K(function(){i?window.removeEventListener("scroll",s):n()}.bind(this),250);window.addEventListener("scroll",s),n()}_handleQualarooMessage(e){let{origin:t,data:i}=e;const[n,s,,,r,o]=i;if("https://linkedin.cdn.qualaroo.com"===t&&(n||s)){if(n!==this.channelId)throw new Error("Qualaroo channelId does not match");switch(s){case xi:this.isRendered=!1;break;case Di:o&&r&&(this.isRendered=!0,this.height=o,this.width=r);break;case Bi:console.log("No Target Match");break;case Ui:this.isDev?this.qualarooIframe.contentWindow.postMessage([Fi,this.surveyId,!0],"https://linkedin.cdn.qualaroo.com"):this.qualarooIframe.contentWindow.postMessage([Fi,this.surveyId,!1],"https://linkedin.cdn.qualaroo.com")}}}set height(e){this.qualarooIframe.height=e}set width(e){this.qualarooIframe.width=e}showSurvey(){this.el.classList.add("show")}}".".concat("accordion-item__trigger");class ji{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:document.querySelector(".sticky-header"),{marginApplied:t=!0}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!e)throw Error("A header element is required to instantiate a StickyHeader");if(!e.querySelector("nav"))throw Error("The header must contain a 'nav' element in order to instantiate a StickyHeader");let i=8;if(ot()){const t=e.querySelector(".search-bar");t&&(i=t.getBoundingClientRect().height)}return new je(e,{exposeStickyState:!0,isBottom:!1,scrollThreshold:i,marginApplied:t})}}var qi;!function(e){e.ProductName="productName",e.UntrackedResponseCodes="untrackedResponseCodes",e.TrackedResponseCodes="trackedResponseCodes",e.ClientSensorGroupName="clientSensorGroupName"}(qi||(qi={}));new Set(Object.values(qi));Error;var Hi;!function(e){e.ProductName="productName",e.CustomTrackingId="customTrackingId",e.ClientSensorGroupName="clientSensorGroupName",e.AdditionalDegradedResponseCodes="additionalDegradedResponseCodes",e.NonDegradedResponseCodes="nonDegradedResponseCodes",e.DegradationKeyOverrides="degradationKeyOverrides"}(Hi||(Hi={})),new Set(Object.values(Hi));var Gi="aria-[a-z0-9_\\-]+|class|data-[a-z0-9_\\-]+|dir|id|role|tabindex",Ji=function(){if("undefined"==typeof document)return!0;return"textContent"in document.createElement("div")}()?"textContent":"innerText",Ki=["b","del","em","i","s","strong","sub","sup"],Vi=Ki.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"]),zi=[Gi,"alt|checked|selected|colgroup|cols|colspan|disabled|height|hidden|maxlength|method|multiple|name|placeholder|readonly|rel|required|rows|rowspan|spellcheck|target|title|width","border|caption|color|controls|coords|hreflang|label|lang|loop|marginheight|marginwidth|preload|reversed|type|usemap|clear|headers|ismap|start|datetime|accept|max|min|size|step|style|cellspacing|cellpadding"].join("|");function Wi(){}var Yi,Qi;Qi=/[&<>"'\u0000\\=]/g,Yi={"&":"&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 Xi=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)};var Zi,$i=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 en(e){e=Xi(e)?e:[e];var t,i,n,s=0,r="<(?!/?";return r+="(?:",$i(e,(function(e,o){t=e.tags||Vi,i=e.attrs||zi,n=e.checkUrlAttrs||!1,0!==o&&(r+="|"),r+="(?:"+t.join("|")+")",r+="(?:",r+="[ \t\r\n]*",r+="|[ \t\r\n]+",r+="(?:(?:",r+="(?:"+i+")(?:=([\"'])[^'\"<>]*\\"+ ++s+")?",n&&(r+="|(?:href|src)=([\"'])(?:(?:https?|ftp|mailto|invalid)(?::|&#(?:58|x3a);)|(?:data:image/(?:gif|jpg|jpeg|png);base64,)|[/.#?]|&#(?:35|4[67]|63|x(?:2[3ef]|3f));)[^'\"<>]*\\"+ ++s),r+=")[ \t\r\n]*)+",r+=")"})),r+=")",r+="/?>)",new RegExp(r,"i")}function tn(e){return en({tags:e=e||Vi,checkUrlAttrs:!0})}function nn(e,t){var i=(t=t||{}).allowTags,n=!1!==t.hasCustomElementMarkup;return i?!tn(i).test(e):n?!nn.R_UNSAFE_CUSTOM_ELEMENT.test(e):!nn.R_UNSAFE_HTML.test(e)}function sn(e){return e.replace(/<[^>]*>|[<>'"&\\]/g,"")}nn.R_UNSAFE_HTML=tn(),nn.R_UNSAFE_CUSTOM_ELEMENT=en([{tags:Vi,checkUrlAttrs:!0},{tags:[(Zi={tag:"li-icon",attrs:"active|a11y-text|animate|color|size|type"}).tag],attrs:[Gi,Zi.attrs].join("|"),checkUrlAttrs:!1}]);var rn={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,"",""]};rn.optgroup=rn.option,rn.tbody=rn.tfoot=rn.colgroup=rn.caption=rn.thead,rn.th=rn.td;function on(e,t){if(!(this instanceof on))return new on(e,t);(t=t||{}).allowTags=t.allowTags?t.allowTags.reduce((function(e,t){return e.concat(t)}),[]):null,this._string=e,this._options=t}on.prototype=function(e,t){for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i]);return e}(new Wi,{toString:function(){var e=this._string,t=this._stringVal,i=e;return void 0!==t?t:(nn(e,this._options)||(i=e,e=sn(e),ve("UnsafeString contains non-whitelisted tags or attributes.\nString: "+i,"error")),this._stringVal=e,e)}});".".concat("filter-values-container__filter-value"," input"),".".concat("filter-values-container__filter-value"," input[type=radio]:checked");class an{constructor(e){let{isShown:t=!1,bannerDismissedLocalStorageKey:i=""}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!e)throw Error("An element must be provided to the banner element");if(this.el=e,this.dismissBtnEl=this.el.querySelector(".banner__dismiss-button"),this.dismissBtnEl)if(i){const t=!window.localStorage.getItem(i);this.bannerDismissable=new _t(this.el,this.dismissBtnEl,{isShown:t}),t&&e.addEventListener("dismiss",()=>{window.localStorage.setItem(i,"true")})}else this.bannerDismissable=new _t(this.el,this.dismissBtnEl,{isShown:t})}}class ln{constructor(e){this.banner=new an(e,{bannerDismissedLocalStorageKey:"learning-guest-frontend_lynda-cta-banner-dismissed"})}}class cn{constructor(e){if(!e)throw Error("An element must be provided to HamburgerMenu");this.el=e,this.modalEl=this.el.querySelector(".modal"),this.modal=new xe(this.modalEl)}}function hn(e){return t=>t.type&&t.type.toLowerCase()===e.toLowerCase()}hn("action"),hn("openpage"),hn("openlink");const dn={getPageInstance:Ee,getTrackingInstance:function(){let{appId:e="seo",trackingCode:t,applicationInstance:i=null}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const n=I(document),s=H(window.location.href,"originalReferer"),r={appId:e,disableInitialAnchorPageViewEvent:!0,requestBatchingMaxWaitSeconds:.05,userRequestHeaderProperties:{},eventHeaderProperties:{}};return t&&(r.userRequestHeaderProperties.trackingCode=t),i&&i.applicationUrn&&i.version&&i.trackingId&&(r.eventHeaderProperties.clientApplicationInstance=i),s&&(r.userRequestHeaderProperties.referer=s),me||(me=ge.AppTrackingInstance.createFromPageKey(r,n)),me.generateTrackingId=ge.generateTrackingId,me},firePageViewEvent:fe,fireViewModuleImpressionEvent:function(e,t){const i=O(document),n={};i&&(n.interfaceLocale=i);const s={header:{},requestHeader:n,moduleNames:t};e.fireTrackingEvent("ViewModuleImpressionEvent",s)}}}).call(this,i(3).Buffer,i(2))},function(e,t,i){"use strict";i.d(t,"a",(function(){return s})),i.d(t,"d",(function(){return r})),i.d(t,"b",(function(){return o})),i.d(t,"c",(function(){return a})),i.d(t,"e",(function(){return l}));var n=i(0);const s="base-search-bar",r="search__button",o="base-search-bar__form",a='data-searchbar-type="LEARNING"';class l extends n.j{constructor(e,{recentSearchesEl:t}={}){if(!e)throw Error("An element must be provided to HomepageSearch");var i;(super(e,{typeaheadApiBaseUrl:"/homepage-guest/api/typeaheadHits",onCloseExpandedSearch:()=>{this._closeSwitcher()}}),this.searchTabs=this.el.querySelector(".".concat("search__tabs")),this.jobsSubmitBtn=this.el.querySelector(".".concat(r,"[").concat('data-searchbar-type="JOBS"',"]")),this.peopleSubmitBtn=this.el.querySelector(".".concat(r,"[").concat('data-searchbar-type="PEOPLE"',"]")),this.learningSubmitBtn=this.el.querySelector(".".concat(r,"[").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.recentSearchesEl=t,this._assignForm("PEOPLE",this.peopleSearch,this.peopleSubmitBtn),this._assignForm("JOBS",this.jobsSearch,this.jobsSubmitBtn),this._assignForm("LEARNING",this.learningSearch,this.learningSubmitBtn),this.searchTabs&&this.searchTabs.classList.contains("isExpanded"))&&(this.el.querySelector(".".concat("switcher-tabs")).classList.add("isExpanded"),null===(i=this.recentSearchesEl)||void 0===i||i.classList.add("px-mobile-container-padding"),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){var t;if(this.switcherElArray.forEach(e=>e.classList.add("isExpanded")),this.searchBarPlaceholder.classList.remove("isExpanded"),null===(t=this.recentSearchesEl)||void 0===t||t.classList.add("px-mobile-container-padding"),this.switcher.baseSearchBarsMap[this.switcher.currentType].showExpandedSearch(),this._removeNoScrollFromDesktop(),e&&e.target.classList.contains("search__placeholder--location")){const e=this.switcher.baseSearchBarsMap[this.switcher.currentType].expandedEl.querySelector('.dismissable-input__input[name="location"]');e&&e.focus()}}_closeSwitcher(){var e;this.switcherElArray.forEach(e=>e.classList.remove("isExpanded")),null===(e=this.recentSearchesEl)||void 0===e||e.classList.remove("px-mobile-container-padding"),this.searchBarPlaceholder.classList.add("isExpanded"),this.searchBarPlaceholderButton.focus()}_removeNoScrollFromDesktop(){window.innerWidth>769&&document.body.classList.remove("no-scroll")}_assignForm(e,t,i){if(t&&i){t.querySelector(".".concat(o)).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){var n=i(5),s=i(6),r=i(7);function o(){return l.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function a(e,t){if(o()<t)throw new RangeError("Invalid typed array length");return l.TYPED_ARRAY_SUPPORT?(e=new Uint8Array(t)).__proto__=l.prototype:(null===e&&(e=new l(t)),e.length=t),e}function l(e,t,i){if(!(l.TYPED_ARRAY_SUPPORT||this instanceof l))return new l(e,t,i);if("number"==typeof e){if("string"==typeof t)throw new Error("If encoding is specified then the first argument must be a string");return d(this,e)}return c(this,e,t,i)}function c(e,t,i,n){if("number"==typeof t)throw new TypeError('"value" argument must not be a number');return"undefined"!=typeof ArrayBuffer&&t instanceof ArrayBuffer?function(e,t,i,n){if(t.byteLength,i<0||t.byteLength<i)throw new RangeError("'offset' is out of bounds");if(t.byteLength<i+(n||0))throw new RangeError("'length' is out of bounds");t=void 0===i&&void 0===n?new Uint8Array(t):void 0===n?new Uint8Array(t,i):new Uint8Array(t,i,n);l.TYPED_ARRAY_SUPPORT?(e=t).__proto__=l.prototype:e=u(e,t);return e}(e,t,i,n):"string"==typeof t?function(e,t,i){"string"==typeof i&&""!==i||(i="utf8");if(!l.isEncoding(i))throw new TypeError('"encoding" must be a valid string encoding');var n=0|g(t,i),s=(e=a(e,n)).write(t,i);s!==n&&(e=e.slice(0,s));return e}(e,t,i):function(e,t){if(l.isBuffer(t)){var i=0|p(t.length);return 0===(e=a(e,i)).length||t.copy(e,0,0,i),e}if(t){if("undefined"!=typeof ArrayBuffer&&t.buffer instanceof ArrayBuffer||"length"in t)return"number"!=typeof t.length||(n=t.length)!=n?a(e,0):u(e,t);if("Buffer"===t.type&&r(t.data))return u(e,t.data)}var n;throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}(e,t)}function h(e){if("number"!=typeof e)throw new TypeError('"size" argument must be a number');if(e<0)throw new RangeError('"size" argument must not be negative')}function d(e,t){if(h(t),e=a(e,t<0?0:0|p(t)),!l.TYPED_ARRAY_SUPPORT)for(var i=0;i<t;++i)e[i]=0;return e}function u(e,t){var i=t.length<0?0:0|p(t.length);e=a(e,i);for(var n=0;n<i;n+=1)e[n]=255&t[n];return e}function p(e){if(e>=o())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+o().toString(16)+" bytes");return 0|e}function g(e,t){if(l.isBuffer(e))return e.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(e)||e instanceof ArrayBuffer))return e.byteLength;"string"!=typeof e&&(e=""+e);var i=e.length;if(0===i)return 0;for(var n=!1;;)switch(t){case"ascii":case"latin1":case"binary":return i;case"utf8":case"utf-8":case void 0:return j(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*i;case"hex":return i>>>1;case"base64":return q(e).length;default:if(n)return j(e).length;t=(""+t).toLowerCase(),n=!0}}function m(e,t,i){var n=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===i||i>this.length)&&(i=this.length),i<=0)return"";if((i>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return P(this,t,i);case"utf8":case"utf-8":return L(this,t,i);case"ascii":return O(this,t,i);case"latin1":case"binary":return A(this,t,i);case"base64":return I(this,t,i);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return k(this,t,i);default:if(n)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),n=!0}}function f(e,t,i){var n=e[t];e[t]=e[i],e[i]=n}function _(e,t,i,n,s){if(0===e.length)return-1;if("string"==typeof i?(n=i,i=0):i>2147483647?i=2147483647:i<-2147483648&&(i=-2147483648),i=+i,isNaN(i)&&(i=s?0:e.length-1),i<0&&(i=e.length+i),i>=e.length){if(s)return-1;i=e.length-1}else if(i<0){if(!s)return-1;i=0}if("string"==typeof t&&(t=l.from(t,n)),l.isBuffer(t))return 0===t.length?-1:E(e,t,i,n,s);if("number"==typeof t)return t&=255,l.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?s?Uint8Array.prototype.indexOf.call(e,t,i):Uint8Array.prototype.lastIndexOf.call(e,t,i):E(e,[t],i,n,s);throw new TypeError("val must be string, number or Buffer")}function E(e,t,i,n,s){var r,o=1,a=e.length,l=t.length;if(void 0!==n&&("ucs2"===(n=String(n).toLowerCase())||"ucs-2"===n||"utf16le"===n||"utf-16le"===n)){if(e.length<2||t.length<2)return-1;o=2,a/=2,l/=2,i/=2}function c(e,t){return 1===o?e[t]:e.readUInt16BE(t*o)}if(s){var h=-1;for(r=i;r<a;r++)if(c(e,r)===c(t,-1===h?0:r-h)){if(-1===h&&(h=r),r-h+1===l)return h*o}else-1!==h&&(r-=r-h),h=-1}else for(i+l>a&&(i=a-l),r=i;r>=0;r--){for(var d=!0,u=0;u<l;u++)if(c(e,r+u)!==c(t,u)){d=!1;break}if(d)return r}return-1}function w(e,t,i,n){i=Number(i)||0;var s=e.length-i;n?(n=Number(n))>s&&(n=s):n=s;var r=t.length;if(r%2!=0)throw new TypeError("Invalid hex string");n>r/2&&(n=r/2);for(var o=0;o<n;++o){var a=parseInt(t.substr(2*o,2),16);if(isNaN(a))return o;e[i+o]=a}return o}function v(e,t,i,n){return H(j(t,e.length-i),e,i,n)}function b(e,t,i,n){return H(function(e){for(var t=[],i=0;i<e.length;++i)t.push(255&e.charCodeAt(i));return t}(t),e,i,n)}function y(e,t,i,n){return b(e,t,i,n)}function T(e,t,i,n){return H(q(t),e,i,n)}function S(e,t,i,n){return H(function(e,t){for(var i,n,s,r=[],o=0;o<e.length&&!((t-=2)<0);++o)i=e.charCodeAt(o),n=i>>8,s=i%256,r.push(s),r.push(n);return r}(t,e.length-i),e,i,n)}function I(e,t,i){return 0===t&&i===e.length?n.fromByteArray(e):n.fromByteArray(e.slice(t,i))}function L(e,t,i){i=Math.min(e.length,i);for(var n=[],s=t;s<i;){var r,o,a,l,c=e[s],h=null,d=c>239?4:c>223?3:c>191?2:1;if(s+d<=i)switch(d){case 1:c<128&&(h=c);break;case 2:128==(192&(r=e[s+1]))&&(l=(31&c)<<6|63&r)>127&&(h=l);break;case 3:r=e[s+1],o=e[s+2],128==(192&r)&&128==(192&o)&&(l=(15&c)<<12|(63&r)<<6|63&o)>2047&&(l<55296||l>57343)&&(h=l);break;case 4:r=e[s+1],o=e[s+2],a=e[s+3],128==(192&r)&&128==(192&o)&&128==(192&a)&&(l=(15&c)<<18|(63&r)<<12|(63&o)<<6|63&a)>65535&&l<1114112&&(h=l)}null===h?(h=65533,d=1):h>65535&&(h-=65536,n.push(h>>>10&1023|55296),h=56320|1023&h),n.push(h),s+=d}return function(e){var t=e.length;if(t<=4096)return String.fromCharCode.apply(String,e);var i="",n=0;for(;n<t;)i+=String.fromCharCode.apply(String,e.slice(n,n+=4096));return i}(n)}t.Buffer=l,t.SlowBuffer=function(e){+e!=e&&(e=0);return l.alloc(+e)},t.INSPECT_MAX_BYTES=50,l.TYPED_ARRAY_SUPPORT=void 0!==e.TYPED_ARRAY_SUPPORT?e.TYPED_ARRAY_SUPPORT:function(){try{var e=new Uint8Array(1);return e.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===e.foo()&&"function"==typeof e.subarray&&0===e.subarray(1,1).byteLength}catch(e){return!1}}(),t.kMaxLength=o(),l.poolSize=8192,l._augment=function(e){return e.__proto__=l.prototype,e},l.from=function(e,t,i){return c(null,e,t,i)},l.TYPED_ARRAY_SUPPORT&&(l.prototype.__proto__=Uint8Array.prototype,l.__proto__=Uint8Array,"undefined"!=typeof Symbol&&Symbol.species&&l[Symbol.species]===l&&Object.defineProperty(l,Symbol.species,{value:null,configurable:!0})),l.alloc=function(e,t,i){return function(e,t,i,n){return h(t),t<=0?a(e,t):void 0!==i?"string"==typeof n?a(e,t).fill(i,n):a(e,t).fill(i):a(e,t)}(null,e,t,i)},l.allocUnsafe=function(e){return d(null,e)},l.allocUnsafeSlow=function(e){return d(null,e)},l.isBuffer=function(e){return!(null==e||!e._isBuffer)},l.compare=function(e,t){if(!l.isBuffer(e)||!l.isBuffer(t))throw new TypeError("Arguments must be Buffers");if(e===t)return 0;for(var i=e.length,n=t.length,s=0,r=Math.min(i,n);s<r;++s)if(e[s]!==t[s]){i=e[s],n=t[s];break}return i<n?-1:n<i?1:0},l.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},l.concat=function(e,t){if(!r(e))throw new TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return l.alloc(0);var i;if(void 0===t)for(t=0,i=0;i<e.length;++i)t+=e[i].length;var n=l.allocUnsafe(t),s=0;for(i=0;i<e.length;++i){var o=e[i];if(!l.isBuffer(o))throw new TypeError('"list" argument must be an Array of Buffers');o.copy(n,s),s+=o.length}return n},l.byteLength=g,l.prototype._isBuffer=!0,l.prototype.swap16=function(){var e=this.length;if(e%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var t=0;t<e;t+=2)f(this,t,t+1);return this},l.prototype.swap32=function(){var e=this.length;if(e%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var t=0;t<e;t+=4)f(this,t,t+3),f(this,t+1,t+2);return this},l.prototype.swap64=function(){var e=this.length;if(e%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var t=0;t<e;t+=8)f(this,t,t+7),f(this,t+1,t+6),f(this,t+2,t+5),f(this,t+3,t+4);return this},l.prototype.toString=function(){var e=0|this.length;return 0===e?"":0===arguments.length?L(this,0,e):m.apply(this,arguments)},l.prototype.equals=function(e){if(!l.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e||0===l.compare(this,e)},l.prototype.inspect=function(){var e="",i=t.INSPECT_MAX_BYTES;return this.length>0&&(e=this.toString("hex",0,i).match(/.{2}/g).join(" "),this.length>i&&(e+=" ... ")),"<Buffer "+e+">"},l.prototype.compare=function(e,t,i,n,s){if(!l.isBuffer(e))throw new TypeError("Argument must be a Buffer");if(void 0===t&&(t=0),void 0===i&&(i=e?e.length:0),void 0===n&&(n=0),void 0===s&&(s=this.length),t<0||i>e.length||n<0||s>this.length)throw new RangeError("out of range index");if(n>=s&&t>=i)return 0;if(n>=s)return-1;if(t>=i)return 1;if(this===e)return 0;for(var r=(s>>>=0)-(n>>>=0),o=(i>>>=0)-(t>>>=0),a=Math.min(r,o),c=this.slice(n,s),h=e.slice(t,i),d=0;d<a;++d)if(c[d]!==h[d]){r=c[d],o=h[d];break}return r<o?-1:o<r?1:0},l.prototype.includes=function(e,t,i){return-1!==this.indexOf(e,t,i)},l.prototype.indexOf=function(e,t,i){return _(this,e,t,i,!0)},l.prototype.lastIndexOf=function(e,t,i){return _(this,e,t,i,!1)},l.prototype.write=function(e,t,i,n){if(void 0===t)n="utf8",i=this.length,t=0;else if(void 0===i&&"string"==typeof t)n=t,i=this.length,t=0;else{if(!isFinite(t))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");t|=0,isFinite(i)?(i|=0,void 0===n&&(n="utf8")):(n=i,i=void 0)}var s=this.length-t;if((void 0===i||i>s)&&(i=s),e.length>0&&(i<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");n||(n="utf8");for(var r=!1;;)switch(n){case"hex":return w(this,e,t,i);case"utf8":case"utf-8":return v(this,e,t,i);case"ascii":return b(this,e,t,i);case"latin1":case"binary":return y(this,e,t,i);case"base64":return T(this,e,t,i);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return S(this,e,t,i);default:if(r)throw new TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),r=!0}},l.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function O(e,t,i){var n="";i=Math.min(e.length,i);for(var s=t;s<i;++s)n+=String.fromCharCode(127&e[s]);return n}function A(e,t,i){var n="";i=Math.min(e.length,i);for(var s=t;s<i;++s)n+=String.fromCharCode(e[s]);return n}function P(e,t,i){var n=e.length;(!t||t<0)&&(t=0),(!i||i<0||i>n)&&(i=n);for(var s="",r=t;r<i;++r)s+=M(e[r]);return s}function k(e,t,i){for(var n=e.slice(t,i),s="",r=0;r<n.length;r+=2)s+=String.fromCharCode(n[r]+256*n[r+1]);return s}function C(e,t,i){if(e%1!=0||e<0)throw new RangeError("offset is not uint");if(e+t>i)throw new RangeError("Trying to access beyond buffer length")}function N(e,t,i,n,s,r){if(!l.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>s||t<r)throw new RangeError('"value" argument is out of bounds');if(i+n>e.length)throw new RangeError("Index out of range")}function R(e,t,i,n){t<0&&(t=65535+t+1);for(var s=0,r=Math.min(e.length-i,2);s<r;++s)e[i+s]=(t&255<<8*(n?s:1-s))>>>8*(n?s:1-s)}function x(e,t,i,n){t<0&&(t=4294967295+t+1);for(var s=0,r=Math.min(e.length-i,4);s<r;++s)e[i+s]=t>>>8*(n?s:3-s)&255}function U(e,t,i,n,s,r){if(i+n>e.length)throw new RangeError("Index out of range");if(i<0)throw new RangeError("Index out of range")}function D(e,t,i,n,r){return r||U(e,0,i,4),s.write(e,t,i,n,23,4),i+4}function B(e,t,i,n,r){return r||U(e,0,i,8),s.write(e,t,i,n,52,8),i+8}l.prototype.slice=function(e,t){var i,n=this.length;if((e=~~e)<0?(e+=n)<0&&(e=0):e>n&&(e=n),(t=void 0===t?n:~~t)<0?(t+=n)<0&&(t=0):t>n&&(t=n),t<e&&(t=e),l.TYPED_ARRAY_SUPPORT)(i=this.subarray(e,t)).__proto__=l.prototype;else{var s=t-e;i=new l(s,void 0);for(var r=0;r<s;++r)i[r]=this[r+e]}return i},l.prototype.readUIntLE=function(e,t,i){e|=0,t|=0,i||C(e,t,this.length);for(var n=this[e],s=1,r=0;++r<t&&(s*=256);)n+=this[e+r]*s;return n},l.prototype.readUIntBE=function(e,t,i){e|=0,t|=0,i||C(e,t,this.length);for(var n=this[e+--t],s=1;t>0&&(s*=256);)n+=this[e+--t]*s;return n},l.prototype.readUInt8=function(e,t){return t||C(e,1,this.length),this[e]},l.prototype.readUInt16LE=function(e,t){return t||C(e,2,this.length),this[e]|this[e+1]<<8},l.prototype.readUInt16BE=function(e,t){return t||C(e,2,this.length),this[e]<<8|this[e+1]},l.prototype.readUInt32LE=function(e,t){return t||C(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},l.prototype.readUInt32BE=function(e,t){return t||C(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},l.prototype.readIntLE=function(e,t,i){e|=0,t|=0,i||C(e,t,this.length);for(var n=this[e],s=1,r=0;++r<t&&(s*=256);)n+=this[e+r]*s;return n>=(s*=128)&&(n-=Math.pow(2,8*t)),n},l.prototype.readIntBE=function(e,t,i){e|=0,t|=0,i||C(e,t,this.length);for(var n=t,s=1,r=this[e+--n];n>0&&(s*=256);)r+=this[e+--n]*s;return r>=(s*=128)&&(r-=Math.pow(2,8*t)),r},l.prototype.readInt8=function(e,t){return t||C(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},l.prototype.readInt16LE=function(e,t){t||C(e,2,this.length);var i=this[e]|this[e+1]<<8;return 32768&i?4294901760|i:i},l.prototype.readInt16BE=function(e,t){t||C(e,2,this.length);var i=this[e+1]|this[e]<<8;return 32768&i?4294901760|i:i},l.prototype.readInt32LE=function(e,t){return t||C(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},l.prototype.readInt32BE=function(e,t){return t||C(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},l.prototype.readFloatLE=function(e,t){return t||C(e,4,this.length),s.read(this,e,!0,23,4)},l.prototype.readFloatBE=function(e,t){return t||C(e,4,this.length),s.read(this,e,!1,23,4)},l.prototype.readDoubleLE=function(e,t){return t||C(e,8,this.length),s.read(this,e,!0,52,8)},l.prototype.readDoubleBE=function(e,t){return t||C(e,8,this.length),s.read(this,e,!1,52,8)},l.prototype.writeUIntLE=function(e,t,i,n){(e=+e,t|=0,i|=0,n)||N(this,e,t,i,Math.pow(2,8*i)-1,0);var s=1,r=0;for(this[t]=255&e;++r<i&&(s*=256);)this[t+r]=e/s&255;return t+i},l.prototype.writeUIntBE=function(e,t,i,n){(e=+e,t|=0,i|=0,n)||N(this,e,t,i,Math.pow(2,8*i)-1,0);var s=i-1,r=1;for(this[t+s]=255&e;--s>=0&&(r*=256);)this[t+s]=e/r&255;return t+i},l.prototype.writeUInt8=function(e,t,i){return e=+e,t|=0,i||N(this,e,t,1,255,0),l.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[t]=255&e,t+1},l.prototype.writeUInt16LE=function(e,t,i){return e=+e,t|=0,i||N(this,e,t,2,65535,0),l.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):R(this,e,t,!0),t+2},l.prototype.writeUInt16BE=function(e,t,i){return e=+e,t|=0,i||N(this,e,t,2,65535,0),l.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):R(this,e,t,!1),t+2},l.prototype.writeUInt32LE=function(e,t,i){return e=+e,t|=0,i||N(this,e,t,4,4294967295,0),l.TYPED_ARRAY_SUPPORT?(this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e):x(this,e,t,!0),t+4},l.prototype.writeUInt32BE=function(e,t,i){return e=+e,t|=0,i||N(this,e,t,4,4294967295,0),l.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):x(this,e,t,!1),t+4},l.prototype.writeIntLE=function(e,t,i,n){if(e=+e,t|=0,!n){var s=Math.pow(2,8*i-1);N(this,e,t,i,s-1,-s)}var r=0,o=1,a=0;for(this[t]=255&e;++r<i&&(o*=256);)e<0&&0===a&&0!==this[t+r-1]&&(a=1),this[t+r]=(e/o>>0)-a&255;return t+i},l.prototype.writeIntBE=function(e,t,i,n){if(e=+e,t|=0,!n){var s=Math.pow(2,8*i-1);N(this,e,t,i,s-1,-s)}var r=i-1,o=1,a=0;for(this[t+r]=255&e;--r>=0&&(o*=256);)e<0&&0===a&&0!==this[t+r+1]&&(a=1),this[t+r]=(e/o>>0)-a&255;return t+i},l.prototype.writeInt8=function(e,t,i){return e=+e,t|=0,i||N(this,e,t,1,127,-128),l.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[t]=255&e,t+1},l.prototype.writeInt16LE=function(e,t,i){return e=+e,t|=0,i||N(this,e,t,2,32767,-32768),l.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):R(this,e,t,!0),t+2},l.prototype.writeInt16BE=function(e,t,i){return e=+e,t|=0,i||N(this,e,t,2,32767,-32768),l.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):R(this,e,t,!1),t+2},l.prototype.writeInt32LE=function(e,t,i){return e=+e,t|=0,i||N(this,e,t,4,2147483647,-2147483648),l.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24):x(this,e,t,!0),t+4},l.prototype.writeInt32BE=function(e,t,i){return e=+e,t|=0,i||N(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),l.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):x(this,e,t,!1),t+4},l.prototype.writeFloatLE=function(e,t,i){return D(this,e,t,!0,i)},l.prototype.writeFloatBE=function(e,t,i){return D(this,e,t,!1,i)},l.prototype.writeDoubleLE=function(e,t,i){return B(this,e,t,!0,i)},l.prototype.writeDoubleBE=function(e,t,i){return B(this,e,t,!1,i)},l.prototype.copy=function(e,t,i,n){if(i||(i=0),n||0===n||(n=this.length),t>=e.length&&(t=e.length),t||(t=0),n>0&&n<i&&(n=i),n===i)return 0;if(0===e.length||0===this.length)return 0;if(t<0)throw new RangeError("targetStart out of bounds");if(i<0||i>=this.length)throw new RangeError("sourceStart out of bounds");if(n<0)throw new RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),e.length-t<n-i&&(n=e.length-t+i);var s,r=n-i;if(this===e&&i<t&&t<n)for(s=r-1;s>=0;--s)e[s+t]=this[s+i];else if(r<1e3||!l.TYPED_ARRAY_SUPPORT)for(s=0;s<r;++s)e[s+t]=this[s+i];else Uint8Array.prototype.set.call(e,this.subarray(i,i+r),t);return r},l.prototype.fill=function(e,t,i,n){if("string"==typeof e){if("string"==typeof t?(n=t,t=0,i=this.length):"string"==typeof i&&(n=i,i=this.length),1===e.length){var s=e.charCodeAt(0);s<256&&(e=s)}if(void 0!==n&&"string"!=typeof n)throw new TypeError("encoding must be a string");if("string"==typeof n&&!l.isEncoding(n))throw new TypeError("Unknown encoding: "+n)}else"number"==typeof e&&(e&=255);if(t<0||this.length<t||this.length<i)throw new RangeError("Out of range index");if(i<=t)return this;var r;if(t>>>=0,i=void 0===i?this.length:i>>>0,e||(e=0),"number"==typeof e)for(r=t;r<i;++r)this[r]=e;else{var o=l.isBuffer(e)?e:j(new l(e,n).toString()),a=o.length;for(r=0;r<i-t;++r)this[r+t]=o[r%a]}return this};var F=/[^+\/0-9A-Za-z-_]/g;function M(e){return e<16?"0"+e.toString(16):e.toString(16)}function j(e,t){var i;t=t||1/0;for(var n=e.length,s=null,r=[],o=0;o<n;++o){if((i=e.charCodeAt(o))>55295&&i<57344){if(!s){if(i>56319){(t-=3)>-1&&r.push(239,191,189);continue}if(o+1===n){(t-=3)>-1&&r.push(239,191,189);continue}s=i;continue}if(i<56320){(t-=3)>-1&&r.push(239,191,189),s=i;continue}i=65536+(s-55296<<10|i-56320)}else s&&(t-=3)>-1&&r.push(239,191,189);if(s=null,i<128){if((t-=1)<0)break;r.push(i)}else if(i<2048){if((t-=2)<0)break;r.push(i>>6|192,63&i|128)}else if(i<65536){if((t-=3)<0)break;r.push(i>>12|224,i>>6&63|128,63&i|128)}else{if(!(i<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;r.push(i>>18|240,i>>12&63|128,i>>6&63|128,63&i|128)}}return r}function q(e){return n.toByteArray(function(e){if((e=function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}(e).replace(F,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function H(e,t,i,n){for(var s=0;s<n&&!(s+i>=t.length||s>=e.length);++s)t[s+i]=e[s];return s}}).call(this,i(2))},function(e,t,i){"use strict";(function(e){i.d(t,"a",(function(){return Z})),i.d(t,"b",(function(){return oi})),i.d(t,"c",(function(){return li}));var n=i(0);const s=/^http[s]?:\/\/(qprod\.)?www\.linkedin(?:-ei)?\.(com|cn)$/,r={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"},o={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 f(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 _="990339570472-k6nqn1tpmitg8pui82bfaun3jrpmiuhs.apps.googleusercontent.com",E={GOOGLE_ERROR:"googleError",GOOGLE_USER_FETCHED:"googleUserFetched",INITIALIZED:"initialized",PROMPT_MOMENT:"promptMomentNotification",TOKEN_FETCHED:"tokenFetched"},w={INITIALIZATION:"initialization",AUTHENTICATION:"authentication"},v={SIGN_IN:"signin",SIGN_UP:"signup",USE:"use"},b={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}=w;class A extends EventTarget{constructor({libSrcPath:e,el:t,clientId:i=_}){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(()=>{f(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:P,PROMPT_MOMENT:k}=E;class C extends EventTarget{constructor({libSrcPath:e,containerId:t,context:i,clientId:n=_,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(()=>{f(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(P,{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:b.SKIPPED},i=new CustomEvent(k,{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(k,{detail:t});this.dispatchEvent(i),this.checkIfDesktopAndApplyClass()})}hideOneTap(){google.accounts.id.cancel()}checkIfDesktopAndApplyClass(){if(!/.*(iPad|iPod|iPhone|Android|BlackBerry).*/.test(navigator.userAgent)){const e=document.getElementById("credential_picker_container");e&&e.classList.add("credential_picker_container--desktop")}}}const N={CLIENT_ID:_,EVENTS:E,GOOGLE_ACCOUNT_URL:"https://accounts.google.com",GSI_ERROR_TYPES:w,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:b};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 U(e,t,i="",n=document.body){const s=B(e,n);s&&s.setAttribute(t,i)}function D(e,t,i=document.body){const n=B(e,i);n&&n.removeAttribute(t)}function B(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 F(e,t){const i=document.createElement("input");return i.setAttribute("type","hidden"),i.setAttribute("name",e),i.setAttribute("value",t),i}const M=n.t.getPageKey(document).replace("_jsbeacon","");function j(e,t,i){window.tracking&&window.tracking.then(s=>{if(t&&e.appendChild(function(e){return F("controlId","".concat(M,"-").concat(e.dataset.trackingControlName))}(t)),e.appendChild(function(e){return F("pageInstance",n.v.getPageInstance(e))}(s)),i){const e="".concat(M,"_").concat(i);n.v.firePageViewEvent(s,"ajax",e),Object(n.q)(s).trackPageView({pageKey:e})}})}function q(e){window.tracking&&window.tracking.then(t=>{t.fireControlInteractionEvent(e)})}function H(e){window.tracking&&window.tracking.then(t=>{n.v.fireViewModuleImpressionEvent(t,[e])})}const{EVENTS:G,GOT_CONTEXTS:J,GOT_PROMPT_MOMENT_REASONS:K,GOT_PROMPT_MOMENT_TYPES:V}=N,{GOOGLE_USER_FETCHED:z,PROMPT_MOMENT:W}=G,{SIGN_IN:Y}=J,Q=[K.NOT_DISPLAYED.BROWSER_NOT_SUPPORTED,K.NOT_DISPLAYED.OPT_OUT_OR_NO_SESSION,K.NOT_DISPLAYED.SUPPRESSED_BY_USER],X=[K.SKIPPED.AUTO_CANCEL,K.SKIPPED.TAP_OUTSIDE,K.SKIPPED.USER_CANCEL];class Z{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.f(this.loaderEl),j(this.el,this.containerEl),this.googleOneTapPromise=this._createGoogleOneTap()}_createGoogleOneTap(){return window.lazyloader.then(e=>e.getLazyLoadedJavascriptModule("google-one-tap-lib")).then(()=>(this.googleOneTapInstance=new C({cancelOnTapOutside:!1,context:Y}),this.googleOneTapInstance.addEventListener(z,({detail:e})=>{q("google-one-tap--account-selected");const t=this.googleOneTapInstance._getBasicProfile(e.idToken);this._submitWithGoogle(t)}),this.googleOneTapInstance.addEventListener(W,({detail:e})=>{const{reason:t,type:i}=e;if(t){if(this._fireCounterIngraphMetric(i,t),i===V.SKIPPED){if(t===K.SKIPPED.USER_CANCEL&&q("google-one-tap--user-dismissed"),this.onSkipped)this.onSkipped(e);else if(-1===X.indexOf(t))throw Error("GoogleOneTapError ".concat(i,": ").concat(t))}else if(i===V.DISPLAY)if(this.onNotDisplayed)this.onNotDisplayed(e);else if(-1===Q.indexOf(t))throw Error("GoogleOneTapError ".concat(i,": ").concat(t))}else i===V.DISPLAY&&H("google-one-tap")}),this.googleOneTapInstance))}_fireCounterIngraphMetric(e,t){let i="";e===V.DISPLAY&&t===K.NOT_DISPLAYED.OPT_OUT_OR_NO_SESSION?i="GoogleAuthDisabledOrNoSessionError":(X.indexOf(t)>=0||Q.indexOf(t)>=0)&&(i="GoogleAuthMiscError"),i&&window.ingraphTracking.then(e=>{e.fireCounterIngraphMetric({metricsType:i})})}_submitWithGoogle(e={}){const{email:t,idToken:i,imageUrl:n,familyName:s,givenName:r}=e;this.googleIdTokenInput&&this.el.removeChild(this.googleIdTokenInput),this.googleIdTokenInput=F("googleIdToken",i),this.el.appendChild(F("googleGivenName",r)),this.el.appendChild(F("googleFamilyName",s)),this.el.appendChild(F("googleImageUrl",n)),this.el.appendChild(F("googleEmail",t)),this.el.appendChild(this.googleIdTokenInput),this.loader&&this.loader.show(),this.el.submit()}}const{GOOGLE_USER_FETCHED:$,GOOGLE_ERROR:ee,INITIALIZED:te}=N.EVENTS,{INITIALIZATION:ie,AUTHENTICATION:ne}=N.GSI_ERROR_TYPES,{INIT_FAILED:se,POPUP_CLOSED_BY_USER:re}=N.GSI_ERROR_MESSAGES;class oe{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.f(this.loaderEl),j(this.el,this.btnEl),this.googleSignInPromise=this._createGoogleSignIn()}_createGoogleSignIn(){return window.lazyloader.then(e=>e.getLazyLoadedJavascriptModule("google-sign-in-lib")).then(()=>(this.googleSignInInstance=new A({el:this.btnEl}),this.googleSignInInstance.addEventListener($,e=>{this._submitWithGoogle(e.detail),q("google-sign-in--account-selected")}),this.googleSignInInstance.addEventListener(te,()=>{this.initSuccess&&"function"==typeof this.initSuccess&&this.initSuccess(),H("google-sign-in-cta")}),this.googleSignInInstance.addEventListener(ee,e=>{const{type:t,message:i}=e.detail;this._fireCounterIngraphMetric(t,i),t===ie&&(this.btnEl.disabled=!0),t===ne&&i===re&&q("google-sign-in--user-dismissed")}),this.googleSignInInstance))}_fireCounterIngraphMetric(e,t){let i="GoogleAuthMiscError";e===ie&&t===se&&(i="GoogleAuthDisabledError"),window.ingraphTracking.then(e=>{e.fireCounterIngraphMetric({metricsType:i})})}_submitWithGoogle(e={}){const{email:t,idToken:i,imageUrl:n,familyName:s,givenName:r}=e;this.googleIdTokenInput&&this.el.removeChild(this.googleIdTokenInput),this.googleIdTokenInput=F("googleIdToken",i),this.el.appendChild(F("googleGivenName",r)),this.el.appendChild(F("googleFamilyName",s)),this.el.appendChild(F("googleImageUrl",n)),this.el.appendChild(F("googleEmail",t)),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 ae=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 r(){}function o(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(r){return null==r?null:(r+"").replace(n,(function(n,r,o,a){return r?(l=r,s.hasOwnProperty(l)?s[l]:(e.innerHTML="&"+l+";",c=e[t],s[l]=c,c)):o||a?i(parseInt(o||a,o?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,r,o=0,a="<(?!/?";return a+="(?:",g(e,(function(e,l){t=e.tags||n,i=e.attrs||s,r=e.checkUrlAttrs||!1,0!==l&&(a+="|"),a+="(?:"+t.join("|")+")",a+="(?:",a+="[ \t\r\n]*",a+="|[ \t\r\n]+",a+="(?:(?:",a+="(?:"+i+")(?:=([\"'])[^'\"<>]*\\"+ ++o+")?",r&&(a+="|(?:href|src)=([\"'])(?:(?:https?|ftp|mailto|invalid)(?::|&#(?:58|x3a);)|(?:data:image/(?:gif|jpg|jpeg|png);base64,)|[/.#?]|&#(?:35|4[67]|63|x(?:2[3ef]|3f));)[^'\"<>]*\\"+ ++o),a+=")[ \t\r\n]*)+",a+=")"})),a+=")",a+="/?>)",new RegExp(a,"i")}function f(e){return m({tags:e=e||n,checkUrlAttrs:!0})}function _(e,t){var i=(t=t||{}).allowTags,n=!1!==t.hasCustomElementMarkup;return i?!f(i).test(e):n?!_.R_UNSAFE_CUSTOM_ELEMENT.test(e):!_.R_UNSAFE_HTML.test(e)}function E(e){return e.replace(/<[^>]*>|[<>'"&\\]/g,"")}function w(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,o=e;if(i.hasOwnProperty(n))return i[n];if(t.hasOwnProperty(n)){if(!((s="string"==typeof(o=t[n]))||o instanceof r||"number"==typeof o))throw new Error("Only strings, numbers, and jSecure types are allowed as placeholder replacements.");o=s?c(o):o.toString()}return i[n]=o,o}))}(e,t):e,s=e;return u(n)&&!_(n,i)&&(n=E(n),o("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}_.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 b={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,"",""]};b.optgroup=b.option,b.tbody=b.tfoot=b.colgroup=b.caption=b.thead,b.th=b.td;var y=/<([\w:]+)/;function T(e,t){var i,n,s,r,o,a,l,c=t.createDocumentFragment(),h=[];for(o=0,l=e.length;o<l;o++)if((r=e[o])||0===r)if("string"==typeof r){for(s=s||c.appendChild(t.createElement("div")),i=(y.exec(r)||["",""])[1].toLowerCase(),L(s,(n=b[i]||b._default)[1]+r+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,r.nodeType?[r]:r);for(c.textContent="",r=h[o=0];r;)c.appendChild(r),r=h[++o];return c}var S=w,I=w;function L(e,i,n){var s=w(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 r,{toString:function(){var e=this._string,t=this._stringVal,i=e;return void 0!==t?t:(_(e,this._options)||(i=e,e=E(e),o("UnsafeString contains non-whitelisted tags or attributes.\nString: "+i,"error")),this._stringVal=e,e)}});var A=/ /g,P=/[\s\u0000<>"]|%00/,k=/\\/,C=/([.]|%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 o("jSecure Warning: url must be a string","error"),"invalid://";if((t=e.trim()).indexOf(" ")>-1&&(o("jSecure Warning: url should not contain spaces: "+e,"warn"),t=t.replace(A,"+")),!N.test(t))return o("jSecure Error: URL should be absolute with allowed schemas, relative, a hash fragment or query string. "+e,"error"),"invalid://";if(P.test(t))return o("jSecure Error: not valid url character found in url: "+e,"error"),"invalid://";var i=t.split("?")[0];return k.test(i)||C.test(i)||C.test(decodeURI(i))?(o("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:o,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="",r=void 0,o=i.length;return e&&e.forEach((function(e,t){s+=e,t<o&&(r=i[t],s+=r instanceof O?r:c(r))})),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 o("jSecure.text() is deprecated. Please use jSecure.htmlEncode().","warn"),c(e)},unsafe:function(e){return e},UnsafeString:O}}()}));function le(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 ce(e){e.querySelectorAll(".inline-alert").forEach(e=>e.parentNode.removeChild(e))}function he(e,t=!1){e.classList.remove("error"),t&&e.classList.remove("error--is-inline")}const de=/\!|\@|\#|\$|\%|\^|\&|\*|\+|\=|\||<|\>|\?|\:|\;/,ue=/(.)\1{3}/,pe=/linkedin/i,ge=/\d\d/,me=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]+)?(/.*)?"),fe=/^(([^<>()\[\]\.,;:\s@\"]+(\.[^<>()\[\]\.,;:\s@\"]+)*)|(\".+\"))@(([^<>()[\]\.,;:\s@\"]+\.)+[^<>()[\]\.,;:\s@\"]{2,})$/i,_e=/^[\u4E00-\u9FFF|\u3400-\u4DBF|\uF900-\uFAFF]*$/,Ee=/^[ぁ-ゔゞ゛゜ー]*$/,we=/^[+]?[\s./0-9]*[(]?[0-9]{1,4}[)]?[-\s./0-9]*$/,ve=e=>{const t=(t="")=>t.length<=e;return t.errorMessagePrefix="i18n_tooLong_",t},be=e=>{const t=(t="")=>t.length>=e;return t.errorMessagePrefix="i18n_tooShort_",t},ye=(e="")=>!ge.test(e);ye.errorMessagePrefix="i18n_noConsecutiveDigits_";const Te=(e="")=>!de.test(e);Te.errorMessagePrefix="i18n_noForbiddenCharacters_";const Se=(e="")=>!ue.test(e);Se.errorMessagePrefix="i18n_noFourConsecutiveDuplicates_";const Ie=(e="")=>!pe.test(e);Ie.errorMessagePrefix="i18n_noLinkedIn_";const Le=(e="")=>!me.test(e);Le.errorMessagePrefix="i18n_noUrl_";const Oe=(e="")=>_e.test(e);Oe.errorMessagePrefix="i18n_onlyChinese_";const Ae=(e="")=>Ee.test(e);Ae.errorMessagePrefix="i18n_onlyPhonetic_";const Pe=(e="")=>""!==e.trim();Pe.errorMessagePrefix="i18n_required_";const ke=(e="")=>fe.test(e);ke.errorMessagePrefix="i18n_invalidFormat_";const Ce=(e="")=>we.test(e);Ce.errorMessagePrefix="i18n_invalidFormat_";const Ne=(e="")=>fe.test(e)||we.test(e);Ne.errorMessagePrefix="i18n_invalidFormat_";const Re=[ve(50),Te,ye,Se,Ie,Le],xe=[Pe].concat(Re),Ue=[Ae,ve(50),Se],De={"first-name":xe,"last-name":xe,"phonetic-first-name":Ue,"phonetic-last-name":Ue,"real-name":[Pe,Oe,ve(4),be(2)],"email-or-phone":[Pe,ve(128),Ne],"email-address":[Pe,ve(128),ke],"optional-email-address":[ve(128),(e=>{const t=(t="")=>""===t||e(t);return t.errorMessagePrefix=e.errorMessagePrefix,t})(ke)],"phone-number":[Pe,Ce],password:[Pe,be(6),ve(200)]},Be={button:!0,reset:!0,submit:!0,checkbox:!0},Fe=e=>e.type&&!Be[e.type],Me={"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"},je={session_key:"email-or-phone",session_password:"password"};function qe({name:e,value:t}={}){const i=De[e=je[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:He,GOT_PROMPT_MOMENT_TYPES:Ge}=N,Je="PageViewEvent",Ke="EntityActivityEvent",Ve="ControlInteractionEvent",ze="FOCUS",We="SHORT_PRESS",Ye="click",Qe="view",Xe={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"},Ze={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 $e(e,t,i=0){10===i||(window.tracking?window.tracking.then(i=>{i.fireTrackingEvent(e,t)}):window.setTimeout(()=>{$e(e,t,i+1)},500))}function et(e,t){e.forEach(e=>{const i=t?e.target:e,s={header:{},pageType:"form",requestHeader:{interfaceLocale:n.t.getLocale(document)||null},trackingInfo:{clientTimestamp:Date.now(),pageTag:n.t.getPageTag(document)||null,source:"registration-ui-lib",formId:i.id}};$e(Je,s),t&&t.unobserve(i)})}function tt(e){if(n.t.getPageKey(document)&&n.t.getPageKey)return"urn:li:control:".concat(n.t.getPageKey(document),"-").concat(e)}function it(e={}){if(!n.t.getPageKey(document)||!e.controlName)return;const t={header:{},requestHeader:{},controlUrn:tt(e.controlName),interactionType:e.interactionType||ze};$e(Ve,t)}function nt(e={}){if(!n.t.getPageKey(document)||!e.trackingCode)return;const t={header:{},pageType:"form",requestHeader:{interfaceLocale:n.t.getLocale(document)||null},trackingCode:"".concat(n.t.getPageKey(document),"-").concat(e.trackingCode),activityType:e.activityType||Ye,pageKey:n.t.getPageKey(document),attributes:e.customData||{}};$e(Ke,t)}function st(e,t,i=!1){i?function(e,t){if(!Fe(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");ae.setElementContent(i,t||Object(n.p)("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"]');ae.setElementContent(s,t||Object(n.p)("i18n_server_generic_error")),i.classList.remove("hidden"),it({controlName:Xe.ERROR_ALERT,interactionType:We})}(e,t)}function rt(e,t=!1){e.classList.add("error"),t&&e.classList.add("error--is-inline")}const ot=790,at=580,lt="auth_popup";class ct{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=Ze.THIRD_PARTY_JOIN_BUTTON.FACEBOOK_IMPRESSION;break;case p:i=Ze.THIRD_PARTY_JOIN_BUTTON.GOOGLE_IMPRESSION;break;case g:i=Ze.THIRD_PARTY_JOIN_BUTTON.WECHAT_IMPRESSION}nt({trackingCode:i,activityType:Qe})}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!==qe({name:"email-or-phone",value:e}).length)return this.onError(this.provider),nt({trackingCode:Ze.THIRD_PARTY_JOIN_BUTTON.GAAP_ERROR,activityType:Ye,customData:{provider:this.provider,errorContent:t}}),this.provider===p&&window.ingraphTracking.then(e=>{e.fireCounterIngraphMetric({metricsType:"JoinWithGoogleError"})}),Promise.reject(t);const i=function(e,t){return Object(n.u)(ae.sanitizeUrl("".concat(Object(n.p)("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=Ze.THIRD_PARTY_JOIN_BUTTON.FACEBOOK_ERROR;break;case p:t=Ze.THIRD_PARTY_JOIN_BUTTON.GOOGLE_ERROR;break;case g:t=Ze.THIRD_PARTY_JOIN_BUTTON.WECHAT_ERROR}throw nt({trackingCode:t,activityType:Ye,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.p)("dust-var-authUrl"),window.open(ae.sanitizeUrl(e),lt,"width=".concat(ot,",height=").concat(at))),this.provider){case u:t=Xe.JOIN_WITH_FACEBOOK_BUTTON;break;case p:t=Xe.JOIN_WITH_GOOGLE_BUTTON,window.ingraphTracking.then(e=>{e.fireCounterIngraphMetric({metricsType:"JoinWithGoogleTapped"})});break;case g:t=Xe.JOIN_WITH_WECHAT_BUTTON}it({controlName:t,interactionType:We})})}}const{GOOGLE_ERROR:ht,GOOGLE_USER_FETCHED:dt,INITIALIZED:ut}=N.EVENTS;class pt{constructor(e){if(!e)throw new Error("No element passed in.");this.element=e,this._setupGaapCallback(),this._attachEventListeners(),nt({trackingCode:Ze.THIRD_PARTY_JOIN_BUTTON.GOOGLE_IMPRESSION,activityType:Qe})}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 A({el:this.element.querySelector(l)});e.addEventListener(dt,e=>{const t=function(e){if(!e)return{};const{email:t,givenName:i,familyName:n,idToken:s,imageUrl:r,id:o}=e;return{displayDigitalMediaAssetUrn:"",firstName:i,id:t,idToken:s,lastName:n,phoneticFirstName:"",phoneticLastName:"",profilePictureUrl:r,userId:o}}(e.detail);this.onUserInfoFetch(Promise.resolve(t))}),e.addEventListener(ut,()=>{this.show()}),e.addEventListener(ht,({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),it({controlName:n,interactionType:We})}),this.googleSignIn=e}_attachEventListeners(){this.element.querySelector(l).addEventListener("click",()=>{it({controlName:Xe.JOIN_WITH_GOOGLE_BUTTON,interactionType:We})})}}function gt(e,t,i){return t in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}function mt(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 ft(e){for(var t=1;t<arguments.length;t++){var i=null!=arguments[t]?arguments[t]:{};t%2?mt(Object(i),!0).forEach((function(t){gt(e,t,i[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):mt(Object(i)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(i,t))}))}return e}const _t=new Set(["百里","淳于","第五","東方 ","东方","東閣 ","东阁","東郭 ","东郭","東門 ","东门","端木","獨孤 ","独孤","公孫 ","公孙","公羊","公冶","公西","毌丘","穀梁 ","谷梁","賀蘭 ","贺兰","赫連 ","赫连","賀若 ","贺若","皇甫","黄斯","呼延","兰向","令狐","甪里","閭丘 ","闾丘","万俟","慕容","納蘭 ","纳兰","南宮 ","南宫","歐陽 ","欧阳","沙吒","上官","申屠","司馬 ","司马","司徒","司空","司寇","太史","澹臺 ","澹台","拓跋","完顏 ","完颜","聞人 ","闻人","巫馬 ","巫马","夏侯","鮮于 ","鲜于","西門 ","西门","軒轅 ","轩辕","楊子 ","杨子","耶律","樂正 ","乐正","尉遲 ","尉迟","宇文","長孫 ","长孙","鍾離 ","钟离","諸葛 ","诸葛","祝融","子車 ","子车","左人"]);function Et(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);_t.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 wt{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 vt(e,t={}){let i={};return Array.from(e.elements).forEach(e=>{if(Fe(e)){const t=e.name,n=e.value;n&&("real-name"===t?i=ft(ft({},i),Et(n)):i[Me[t]]=n)}}),i.source=Object(n.p)("dust-var-source")||null,i.redirectInfo=function(){const e=Object(n.p)("dust-var-postOnboardingRedirectUrl");return e?{postOnboardingRedirectUrl:e}:null}(),i.invitationInfo=function(){const e=Object(n.p)("dust-var-invitationId"),t=Object(n.p)("dust-var-sharedKey");return e||t?{invitationId:e,sharedKey:t}:null}(),i.sendConfirmationEmail=Object(n.p)("dust-var-sendConfirmationEmail"),"enabled"===Object(n.p)("dust-var-apfcDf")&&(i.apfc=JSON.stringify(function(){let e={};if(void 0===window.globalThis)return e.error="gt",e;try{void 0!==window.globalThis.apfcDf?e.df=window.globalThis.apfcDf:e.error="ad"}catch(t){e.error=t.message}return e}())),"enabled"===Object(n.p)("dust-var-fpLixTreatment")&&(i.fpData=function(){let e="default";const t=new wt;try{e=JSON.stringify(t.getFingerprintData())}catch(t){e="error while fetching the fingerprinting data : "+t}return e}()),i=function(e,t){return ft(ft({},e),t)}(t,i),i}const bt="See https://go/pem/degradation-tracking-user-guide for instrumentation instructions";function yt(e){return 0===e.length||!e.trim()}var Tt;!function(e){e.ProductName="productName",e.UntrackedResponseCodes="untrackedResponseCodes",e.TrackedResponseCodes="trackedResponseCodes"}(Tt||(Tt={}));const St=new Set(Object.values(Tt));class It{constructor(e,t,i){if(this._featureKey=Lt(e),this._degradationKey=Lt(t),!i)return this._untrackedResponseCodes=[],void(this._trackedResponseCodes=[]);if("object"!=typeof i)throw new Ot("DegradationTrackingMetadata options should be an object. ".concat(bt,"."));const n=i.productName;n&&(this._productName=function(e){if("string"!=typeof e)throw new Ot("The product name must be a string. ".concat(bt,"."));if(yt(e))throw new Ot("No product name was specified. Please configure a defaultProductName or specify it per instrumented API "+"call. ".concat(bt,"."));return e}(n));const s=i.untrackedResponseCodes,r=i.trackedResponseCodes;if(s&&r)throw new Ot("You may only specify one of the options: ".concat(Tt.UntrackedResponseCodes," or ")+"".concat(Tt.TrackedResponseCodes," to exclude or include response codes from counting ")+"as the degraded state. ".concat(bt,"."));!function(e,t){const i=(e,t)=>{if("number"!=typeof(i=e)||!isFinite(i)||Math.floor(i)!==i||e<=0||e>999)throw new Ot("Please only specify positive integer response codes between 1 and 999 for the ".concat(t," option. ")+"".concat(e," was specified. ").concat(bt,"."));var i;if(429===e||999===e)throw new Ot("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===Tt.UntrackedResponseCodes&&(e<500||e>=600))throw new Ot("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(Tt.TrackedResponseCodes," option. Please remove ").concat(e," from the ")+"".concat(Tt.UntrackedResponseCodes," option. ").concat(bt,"."))};if(void 0!==e&&!Array.isArray(e))throw new Ot("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(Tt.UntrackedResponseCodes," option. ")+"".concat(bt,"."));if(void 0!==t&&!Array.isArray(t))throw new Ot("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(Tt.TrackedResponseCodes," option. ").concat(bt,"."));e&&e.forEach(e=>i(e,Tt.UntrackedResponseCodes));t&&t.forEach(e=>i(e,Tt.TrackedResponseCodes))}(s,r),this._untrackedResponseCodes=s||[],this._trackedResponseCodes=r||[],function(e){Object.keys(e).forEach(e=>{if(!St.has(e))throw new Ot("An unsupported degradation tracking option '".concat(e,"' was provided. Please fix or remove it. ")+"".concat(bt))})}(i)}static isDegradationTrackingMetadata(e){return null!=e&&Object.getOwnPropertyNames(It.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 Lt(e){if("string"!=typeof e)throw new Ot("Keys must be strings. ".concat(bt,"."));if(yt(e))throw new Ot("Keys should not be blank. ".concat(bt,"."));if(e.match(/[^a-z0-9-]/))throw new Ot("'".concat(e,"' can only contain lowercase alphanumeric characters and dashes (-). ").concat(bt,"."));return e}class Ot extends Error{constructor(e){super(e),Object.setPrototypeOf(this,Ot.prototype)}}var At="delete me",Pt="v=2&",kt={FIRST_AND_LAST_QUOTES:/^\"(.+)\"$/};class Ct{constructor(){const e=Object(n.p)("registrationUrl");if(!e)throw new Error('Document missing embed with element ID === "registrationUrl"');this.registrationUrl=n.s.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 r={method:"POST",headers:{Accept:"*/*","Content-Type":"application/json","X-NuxSupportsCp":"on"},sendCookies:!0,skipCsrfToken:!0,postData:JSON.stringify(e)},o=Object(n.u)(this.registrationUrl,r);if("enabled"===Object(n.p)("dust-var-pemDegradationTrackingTreatment"))try{const e=o.catch((e={})=>ft(ft({},e),{},{status:e.response?e.response.status:500})).then((e={})=>new Response(e,{status:e.status})),t=[new It("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 o.catch(e=>this._handleError(e)).then(e=>this._handleResponse(e))}_getCsrfTokenFromBcookie(){const e=(n.s.getCookie("bcookie")||"").trim();if(e!==At)return e.replace(kt.FIRST_AND_LAST_QUOTES,"$1").replace(Pt,"")}_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 Nt=".challenge-dialog",Rt=".challenge-dialog__close",xt=".challenge-dialog__iframe";class Ut{constructor(e){if(!e)throw Error("Challenge URL is required");this.complete=!1,this.challengeDialogElem=document.querySelector(Nt),this.challengeIframeElem=this.challengeDialogElem.querySelector(xt),this.challengeIframeElem.src=ae.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)it({controlName:Xe.CHALLENGE_SOLVED,interactionType:We}),e(n.payload);else if("CHALLENGE_FAILED"===n.eventId)it({controlName:Xe.CHALLENGE_FAILED,interactionType:We}),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",it({controlName:Xe.CHALLENGE_DIALOG,interactionType:ze})}}).then(e=>(this._tearDownEventListeners(),this._cleanup(),e)).catch(e=>{throw this._tearDownEventListeners(),this._cleanup(),e})}_setupEventListeners(e,t){const i=this.challengeDialogElem.querySelector(Rt);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.s.getCookie("bcookie")||"").trim().replace("v=2&","")}}var Dt="validation-failed",Bt="validation-succeeded",Ft="account-creation-challenged",Mt="account-creation-failed",jt="account-creation-succeeded",qt="challenge-closed",Ht="challenge-failed",Gt="challenge-succeeded",Jt="split-join-form-step-change",Kt="third-party-profile-card-toggled",Vt="global-error",zt="third-party-scrim";function Wt(e,t){n.s.dispatchCustomEvent(e,Jt,{splitJoinStepNum:t})}function Yt(e,t){n.s.dispatchCustomEvent(e,Vt,{globalErrorMessage:t})}const Qt="join-form__form-input-container",Xt="join-form__form-input-container--is-hidden",Zt="join-form__form-input-container--is-last-section";class $t{constructor(e,t){if(!e)throw new Error("No element passed in.");this.elem=e,this.isNested=e.parentNode.classList.contains(Qt),this.requiredInputs=Array.from(e.querySelectorAll("input[required]")),this.elem.classList.add("".concat(Qt,"--is-section-").concat(t))}get isVisible(){return!this.elem.classList.contains(Xt)}show(){this.elem.classList.remove(Xt),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(Xt)}}class ei{constructor(e){this.currentSplitJoinSectionNum=0,this._joinFormElem=e,this.totalSplitJoinSections=this._joinFormElem.querySelectorAll(".".concat(Qt)).length;const t=this.totalSplitJoinSections>2,i=this._joinFormElem.querySelector(".".concat(Qt,":not(.").concat(Xt,")")),n=t?this._joinFormElem.querySelector(".".concat(Xt,":not(.").concat(Zt,")")):this._joinFormElem.querySelector(".".concat(Zt)),s=this._joinFormElem.querySelector(".".concat(Zt));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 $t(i,1),new $t(n,2)],t&&this._orderedSplitJoinSections.push(new $t(s,3)),this._orderedSplitJoinSections.forEach(e=>{e.elem.classList.contains(Xt)&&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(),Wt(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()),Wt(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(),Wt(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(),Wt(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:ti,GOT_CONTEXTS:ii,GOT_PROMPT_MOMENT_TYPES:ni}=N,{GOOGLE_USER_FETCHED:si,PROMPT_MOMENT:ri}=ti;class oi{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 Ct,this.isSplitJoinForm=Object(n.p)("dust-var-isSplitJoinForm"),this.isGoogleOneTapEnabled="true"===Object(n.p)("dust-var-isSmartLockEnabled"),this.isMobile=Object(n.p)("dust-var-isMobile"),this.joinBtnProvider=Object(n.p)("dust-var-joinBtnProvider"),this.isInlineError=Object(n.p)("dust-var-isInlineError"),this.isInstantThirdPartyBtnEnabled="true"===Object(n.p)("dust-var-isInstantThirdPartyBtnEnabled"),this.handleSubmit=this._handleSubmit.bind(this),this.emailDomainsCount=0,this.isSplitJoinForm&&(this.splitJoin=this._initSplitJoinForm()),this._attachEventListeners(),this._initThirdPartySignup(),t=[this.joinForm],n.s.onload(()=>{if(window.IntersectionObserver){const e=new IntersectionObserver(et,{threshold:1});t.forEach(t=>e.observe(t))}else et(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=B(r.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]=qe(t)),this.inputNameToErrors[t.name].length&&e.push({inputName:t.name,errorMessageKeys:this.inputNameToErrors[t.name]})}),e}set location(e){this._location=e}_setupEmailDomainList(e){const t=["gmail.com","yahoo.com","outlook.com","icloud.com","hotmail.com"],i=this.joinForm.querySelector("#email-domains");i.options&&i.options.length>0||(t.forEach(t=>{const n=document.createElement("option");n.value=e+t,i.appendChild(n)}),U(this.emailHandle.input,"list","email-domains",this.joinForm),this.emailDomainsCount=t.length)}_clearEmailDomainList(){D(this.emailHandle.input,"list",this.joinForm),this.joinForm.querySelector("#email-domains").innerHTML="",this.emailDomainsCount=0}_attachEventListeners(){let e;var t;if(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",this.handleSubmit),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=>{it({controlName:this.isSplitJoinForm&&this.splitJoin.isLastStep?Xe.CONTINUE_BUTTON:Xe.AGREE_AND_JOIN_BUTTON,interactionType:We})}),this.joinForm.querySelector(r.PROFILE_CARD)?(this.joinForm.querySelector(o.EDIT_ICON).addEventListener("click",()=>this._showPhotoModal()),this.joinForm.querySelector(o.EDIT_PHOTO.CANCEL_ICON).addEventListener("click",()=>this._hidePhotoModal()),this.joinForm.querySelector(o.NOT_YOU).addEventListener("click",()=>{this.location.reload(),it({controlName:Xe.PROFILE_CARD_NOT_YOU_BUTTON,interactionType:We})}),this.joinForm.querySelector(o.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",()=>{le(t),it({controlName:Xe.ERROR_ALERT_DISMISS_BUTTON,interactionType:We})}),this.joinForm.addEventListener(Vt,e=>{st(this.joinForm,e.detail.globalErrorMessage)})),this.joinForm.addEventListener(Jt,({detail:{splitJoinStepNum:e}})=>{this._handleSplitJoinStepChange(e)}),Object(n.p)("dust-var-hasShowPassword")&&this.joinForm.querySelector(".join-form__show-password-btn").addEventListener("click",({target:e})=>{const t=this.inputNameToElement.password.type;U("#password","type","password"===t?"text":"password"),e.textContent="password"===t?e.dataset.hideCopy:e.dataset.showCopy}),Object(n.p)("dust-var-enableEmailDomainsTypeahead")){const e=this.inputNameToElement["email-or-phone"]||this.inputNameToElement["email-address"];if(!e)return;e.addEventListener("input",({target:t})=>{const i=e.value;i.includes("@")?"@"==i.charAt(i.length-1)&&this._setupEmailDomainList(i):this._clearEmailDomainList()})}}_thirdPartyJoinErrorAlert(e){switch(e){case u:Yt(this.joinForm,Object(n.p)("i18n_third_party_join_error-message-facebook"));break;case p:Yt(this.joinForm,Object(n.p)("i18n_third_party_join_error-message-google"));break;case g:Yt(this.joinForm,Object(n.p)("i18n_third_party_join_error-message-wechat"))}}_handleInvalidSubmit(){const e=this.inputsWithErrors;return!!e.length&&(e.forEach(e=>{const t=this.inputNameToElement[e.inputName];rt(t,this.isInlineError),this.isInlineError&&st(t,Object(n.p)(e.errorMessageKeys[0]),this.isInlineError)}),this.isInlineError||st(this.joinForm,Object(n.p)(e[0].errorMessageKeys[0])),this.inputNameToElement[e[0].inputName].focus(),nt({trackingCode:Ze.ALERT.VALIDATION_FAILURE_ALERT,activityType:Ye,inputsWithErrors:e}),t=this.joinForm,i=e,n.s.dispatchCustomEvent(t,Dt,i),!0);var t,i}_handleChange(e){const t=e.target;Fe(t)&&(t.value?t.classList.add("input__input--has-text"):t.classList.remove("input__input--has-text"),this.inputNameToErrors[t.name]=qe(t),0===this.inputNameToErrors[t.name].length&&(he(t,this.isInlineError),this.isInlineError&&le(t,this.isInlineError)))}_handleFocusOut(e){if(!this.isInlineError)return;const t=e.target;Fe(t)&&(this.inputNameToErrors[t.name]=qe(t),this.inputNameToErrors[t.name].length&&(rt(t,this.isInlineError),st(this.isInlineError?t:this.joinForm,Object(n.p)(this.inputNameToErrors[t.name][0]),this.isInlineError)))}_handleInput(e){if(!this.isInlineError)return;const t=e.target;Fe(t)&&(he(t,this.isInlineError),le(t,this.isInlineError))}_handleSubmit(e){if(e&&e.preventDefault(),this.isInlineError?ce(this.joinForm):le(this.joinForm),this._handleInvalidSubmit())return;if(this.isSplitJoinForm&&!this.splitJoin.isLastStep&&!this.isThirdPartyProfileCardVisible)return void this._handleSplitJoinSubmit();var t;t=this.joinForm,n.s.dispatchCustomEvent(t,Bt);const i=vt(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=B('.join-form__form-body-agreement[data-is-not-yielded="true"]',this.joinForm);if(!t)return;const i=B(".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.p)("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,ae.setElementContent(i,e)}}_isValidInput(e){const t=Fe(e);if(!this.isSplitJoinForm)return t;let i=e.parentNode;for(;!i.classList.contains(Qt);)i=i.parentNode;return t&&!i.classList.contains(Xt)}_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=Me[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=B(".join-form__form-body-submit-button",this.joinForm);return i.disabled=!0,this.registrationServerClient.sendCreateAccountRequest(t).then(t=>{!function(e,t){n.s.dispatchCustomEvent(e,jt,t)}(e,t.responseObj),Object(n.p)("dust-var-cancelOnboardingRedirect")||ae.redirect(t.responseObj&&t.responseObj.redirectUrl||"/"),nt({trackingCode:Ze.JOIN_REQUEST.JOIN_REQUEST_SUCCESS,activityType:Ye})}).catch(s=>{i.disabled=!1;const r=(s.response||{}).responseObj||{};r.challengeUrl?(!function(e,t){n.s.dispatchCustomEvent(e,Ft,t)}(e,r),new Ut(r.challengeUrl).showChallenge().then(i=>{!function(e){n.s.dispatchCustomEvent(e,Gt)}(e),t.submissionId=r.submissionId,t.resolvedChallengeUrl=i,t.requestSignature=r.requestSignature,this._sendCreateAccountRequest(e,t)}).catch(t=>{"softFail"===t?function(e){n.s.dispatchCustomEvent(e,qt)}(e):function(e,t){n.s.dispatchCustomEvent(e,Ht,t)}(e,t),Yt(this.joinForm,Object(n.p)("i18n_server_generic_error"))})):(!function(e,t){n.s.dispatchCustomEvent(e,Mt,t)}(e,r),Yt(e,r.translatedMessage),this.isSplitJoinForm&&!this.isThirdPartyProfileCardVisible?this._resetSplitJoinForm():this._resetThirdPartyJoin()),function(e,t){if(nt({trackingCode:Ze.JOIN_REQUEST.JOIN_REQUEST_FAILURE,activityType:Ye,customData:e}),!t)return;const i=t.thirdPartyProvider;var n,s=Ye;switch(i){case u:n=Ze.JOIN_REQUEST.JOIN_REQUEST_FAILURE_WITH_FACEBOOK;break;case p:n=Ze.JOIN_REQUEST.JOIN_REQUEST_FAILURE_WITH_GOOGLE;break;default:n=Ze.JOIN_REQUEST.JOIN_REQUEST_FAILURE_WITH_GOOGLE_ONE_TAP}nt({activityType:s,trackingCode:n})}(r,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 C({cancelOnTapOutside:!1,context:ii.SIGN_UP}),window.ingraphTracking.then(e=>{e.fireCounterIngraphMetric({metricsType:"GoogleOneTapShown"})}),this.googleOneTapInstance.addEventListener(si,({detail:e})=>{e&&(this._parseThirdPartyUserInfo(e),this.renderUserDetails(),it({controlName:Xe.GOOGLE_ONE_TAP_SIGNUP_BUTTON,interactionType:We}),window.ingraphTracking.then(e=>{e.fireCounterIngraphMetric({metricsType:"GoogleOneTap"})}))}),this.googleOneTapInstance.addEventListener(ri,({detail:e})=>{const{reason:t,type:i}=e;this.isMobile&&function(e,{reason:t,type:i}){"display"!==i||t?n.s.dispatchCustomEvent(e,zt,{showScrim:!1}):n.s.dispatchCustomEvent(e,zt,{showScrim:!0})}(this.joinForm,e),this.joinBtnProvider&&i===ni.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===Ge.SKIPPED&&e===He.SKIPPED.USER_CANCEL?it({controlName:Xe.GOOGLE_ONE_TAP_CLOSE_BUTTON,interactionType:We}):t===Ge.SKIPPED?nt({activityType:Ye,trackingCode:i}):t===Ge.DISPLAY&&nt({activityType:Qe,trackingCode:i})}}(e)}),this.googleOneTapInstance))}_initSplitJoinForm(){return new ei(this.joinForm)}_initThirdPartyJoinButton(){if(this.isSplitJoinForm&&!this.splitJoin.isFirstStep)return;const e=Object(n.p)("dust-var-useStandaloneLibrary");let t;return t=this.joinBtnProvider===p&&"true"===e?new pt(document.querySelector(a),this.joinBtnProvider):new ct(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(r.FIRST_NAME_INPUT,e),this._setPropertyValue(r.LAST_NAME_INPUT,t),this.emailHandle){this._setPropertyValue(this.emailHandle.input,i);const e=B(this.emailHandle.input,this.joinForm);this.inputNameToErrors[e.name]=qe(e)}this.inputNameToElement.password.focus()}renderUserDetails(e=!1){const{phoneticFirstName:t,phoneticLastName:i,firstName:n,lastName:s,id:o,profilePictureUrl:a}=this.thirdPartyUserInfo;let l;this._setPropertyValue(r.FIRST_NAME_INPUT,n),this._setPropertyValue(r.LAST_NAME_INPUT,s),this._setPropertyValue(r.PHONETIC_FIRST_NAME_INPUT,t),this._setPropertyValue(r.PHONETIC_LAST_NAME_INPUT,i),this.emailHandle&&(this._setPropertyValue(this.emailHandle.input,o),l=B(this.emailHandle.input,this.joinForm),this.inputNameToErrors[l.name]=qe(l)),(n&&s&&o&&l&&!this.inputNameToErrors[l.name].length||e&&a)&&(this._toggleProfilecard(),this._hideThirdPartyJoinContainer(),this.inputNameToElement.password.focus(),this.joinBtnProviderprovider===p&&window.ingraphTracking.then(e=>{e.fireCounterIngraphMetric({metricsType:"JoinWithGooglePasswordScreenShown"})}))}_renderProfilecard(){const{profilePictureUrl:e,firstName:t,lastName:i,id:n}=this.thirdPartyUserInfo;U(o.PHOTO,h,e,this.joinForm),e||(x(o.PHOTO,this.joinForm),x(o.EDIT_ICON,this.joinForm)),t&&i&&(B(o.NAME,this.joinForm).innerText="".concat(t," ").concat(i)),n&&(B(o.EMAIL,this.joinForm).innerText=n)}_toggleProfilecard(){var e,t;this.isThirdPartyProfileCardVisible?(x(r.PROFILE_CARD,this.joinForm),this._showFieldsForThirdPartyProfileCard()):(this.isInlineError?ce(this.joinForm):le(this.joinForm),R(r.PROFILE_CARD,this.joinForm),this._hideFieldsForThirdPartyProfileCard(),this._renderProfilecard()),e=this.joinForm,t=this.isThirdPartyProfileCardVisible,n.s.dispatchCustomEvent(e,Kt,{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),D(this.emailHandle.input,d,this.joinForm)),!this.isSplitJoinForm&e&&t&&(x(r.FIRST_NAME_INPUT,this.joinForm),x(r.FIRST_NAME_LABEL,this.joinForm),x(r.LAST_NAME_INPUT,this.joinForm),x(r.LAST_NAME_LABEL,this.joinForm))}_showFieldsForThirdPartyProfileCard(){this.emailHandle&&(R(this.emailHandle.input,this.joinForm),R(this.emailHandle.label,this.joinForm),U(this.emailHandle.input,d,"required",this.joinForm)),this.isSplitJoinForm||(R(r.FIRST_NAME_INPUT,this.joinForm),R(r.FIRST_NAME_LABEL,this.joinForm),R(r.LAST_NAME_INPUT,this.joinForm),R(r.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=B(e,this.joinForm);i&&t&&(i.value=t)}_showPhotoModal(){R(o.EDIT_PHOTO.MODAL,this.joinForm)}_hidePhotoModal(){x(o.EDIT_PHOTO.MODAL,this.joinForm)}_removePhoto(){this._hidePhotoModal(),U(o.PHOTO,h,"",this.joinForm),x(o.PHOTO,this.joinForm),x(o.EDIT_ICON,this.joinForm),this.thirdPartyUserInfo.profilePictureUrl="",it({controlName:Xe.DELETE_PHOTO_BUTTON,interactionType:We})}}const ai={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 li{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)),j(this.el,this.submitButtonEl,"login-form"),this.loaderEl=this.el.parentNode.querySelector(".loader"),this.loader=this.loaderEl&&new n.f(this.loaderEl),this.googleSignInCtaEl=this.el.parentNode.querySelector(".google-sign-in-cta"),this.googleSignInCtaEl&&new oe(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=qe(e);if(t.length)return rt(e),st(this.el,Object(n.p)(t[0])),e.focus(),!0})}_handleSubmit(e){if(e.preventDefault(),le(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(Fe(t)){0===qe(t).length&&he(t)}}_togglePasswordVisibility(){const e="password"===this.passwordEl.getAttribute("type")?"hide":"show",{type:t,text:i,ariaLabel:s}=ai[e];this.passwordEl.setAttribute("type",t),this.passwordVisibilityToggleEl.innerText=Object(n.p)(i),this.passwordVisibilityToggleEl.setAttribute("aria-label",Object(n.p)(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";t.byteLength=function(e){var t=c(e),i=t[0],n=t[1];return 3*(i+n)/4-n},t.toByteArray=function(e){var t,i,n=c(e),o=n[0],a=n[1],l=new r(function(e,t,i){return 3*(t+i)/4-i}(0,o,a)),h=0,d=a>0?o-4:o;for(i=0;i<d;i+=4)t=s[e.charCodeAt(i)]<<18|s[e.charCodeAt(i+1)]<<12|s[e.charCodeAt(i+2)]<<6|s[e.charCodeAt(i+3)],l[h++]=t>>16&255,l[h++]=t>>8&255,l[h++]=255&t;2===a&&(t=s[e.charCodeAt(i)]<<2|s[e.charCodeAt(i+1)]>>4,l[h++]=255&t);1===a&&(t=s[e.charCodeAt(i)]<<10|s[e.charCodeAt(i+1)]<<4|s[e.charCodeAt(i+2)]>>2,l[h++]=t>>8&255,l[h++]=255&t);return l},t.fromByteArray=function(e){for(var t,i=e.length,s=i%3,r=[],o=0,a=i-s;o<a;o+=16383)r.push(h(e,o,o+16383>a?a:o+16383));1===s?(t=e[i-1],r.push(n[t>>2]+n[t<<4&63]+"==")):2===s&&(t=(e[i-2]<<8)+e[i-1],r.push(n[t>>10]+n[t>>4&63]+n[t<<2&63]+"="));return r.join("")};for(var n=[],s=[],r="undefined"!=typeof Uint8Array?Uint8Array:Array,o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",a=0,l=o.length;a<l;++a)n[a]=o[a],s[o.charCodeAt(a)]=a;function c(e){var t=e.length;if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var i=e.indexOf("=");return-1===i&&(i=t),[i,i===t?0:4-i%4]}function h(e,t,i){for(var s,r,o=[],a=t;a<i;a+=3)s=(e[a]<<16&16711680)+(e[a+1]<<8&65280)+(255&e[a+2]),o.push(n[(r=s)>>18&63]+n[r>>12&63]+n[r>>6&63]+n[63&r]);return o.join("")}s["-".charCodeAt(0)]=62,s["_".charCodeAt(0)]=63},function(e,t){t.read=function(e,t,i,n,s){var r,o,a=8*s-n-1,l=(1<<a)-1,c=l>>1,h=-7,d=i?s-1:0,u=i?-1:1,p=e[t+d];for(d+=u,r=p&(1<<-h)-1,p>>=-h,h+=a;h>0;r=256*r+e[t+d],d+=u,h-=8);for(o=r&(1<<-h)-1,r>>=-h,h+=n;h>0;o=256*o+e[t+d],d+=u,h-=8);if(0===r)r=1-c;else{if(r===l)return o?NaN:1/0*(p?-1:1);o+=Math.pow(2,n),r-=c}return(p?-1:1)*o*Math.pow(2,r-n)},t.write=function(e,t,i,n,s,r){var o,a,l,c=8*r-s-1,h=(1<<c)-1,d=h>>1,u=23===s?Math.pow(2,-24)-Math.pow(2,-77):0,p=n?0:r-1,g=n?1:-1,m=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(a=isNaN(t)?1:0,o=h):(o=Math.floor(Math.log(t)/Math.LN2),t*(l=Math.pow(2,-o))<1&&(o--,l*=2),(t+=o+d>=1?u/l:u*Math.pow(2,1-d))*l>=2&&(o++,l/=2),o+d>=h?(a=0,o=h):o+d>=1?(a=(t*l-1)*Math.pow(2,s),o+=d):(a=t*Math.pow(2,d-1)*Math.pow(2,s),o=0));s>=8;e[i+p]=255&a,p+=g,a/=256,s-=8);for(o=o<<s|a,c+=s;c>0;e[i+p]=255&o,p+=g,o/=256,c-=8);e[i+p-g]|=128*m}},function(e,t){var i={}.toString;e.exports=Array.isArray||function(e){return"[object Array]"==i.call(e)}},,,,function(e,t,i){"use strict";i.r(t);var n=i(0),s=i(1);class r{constructor(e){if(!e)throw Error("An element must be provided to recent searches");this.recentSearches=e,this.clearBtn=this.recentSearches.querySelector('[data-js-module-id="recent-searches-card__clear"]'),this._clearRecentSearchesHandler=this._clearRecentSearches.bind(this),this.clearBtn.addEventListener("keydown",({key:e})=>{const{KEYS:t,normalizeKeyBoardEventKey:i}=n.r,s=i(e);s!==t.ENTER&&s!==t.SPACEBAR||this._clearRecentSearchesHandler()}),this.clearBtn.addEventListener("click",this._clearRecentSearchesHandler)}_clearRecentSearches(){Object(n.u)("/homepage-guest/clearSearchHistory/",{method:"POST"}),this.clearBtn.removeEventListener("click",this._clearRecentSearchesHandler),this.recentSearches.classList.add("hidden"),this.recentSearches.addEventListener("transitionend",()=>{this.recentSearches.parentNode.removeChild(this.recentSearches)})}}class o{constructor(e){if(!e)throw Error("An element must be provided to SearchJobs");this.el=e,new n.j(this.el,{typeaheadApiBaseUrl:"/homepage-guest/api/typeaheadHits",includeSwitcher:!1}),this.searchJobsForm=this.el.querySelector(".".concat(s.b)),this.searchJobsButton=this.el.querySelector(".".concat(s.d)),this.searchJobsForm.setAttribute("id","search-jobs__form"),this.searchJobsButton.setAttribute("form","search-jobs__form")}}var a=i(4);window.tracking&&window.tracking.then(e=>{Object(n.q)(e).trackPageView()});const l=document.querySelector(".sign-in-card");l&&new n.l(l),new n.e(document.querySelector(".language-selector"));const c=document.querySelector('[data-js-module-id="recent-searches-card"]');c&&new r(c);const h=document.querySelector('[data-js-module-id="homepage-search"]');h&&new s.e(h,{recentSearchesEl:c});const d=document.querySelector('[data-js-module-id="search-jobs"]');d&&new o(d);const u=document.querySelector(".qualaroo");u&&new n.i(u),document.querySelectorAll(".show-more-less").forEach(e=>{new n.k(e)}),[...document.querySelectorAll(".slide-list")].forEach(e=>new n.m(e));const p=document.querySelector(".learning-cta__dropdown-modal");p&&new n.c(p);const g=document.querySelector(".join-form");g&&new a.b(g);const m=document.querySelector(".nav .search-bar");m&&new n.j(m,{typeaheadApiBaseUrl:"/homepage-guest/api/typeaheadHits"});const f=document.querySelector('[data-js-module-id="d2l-sign-in-form"]');f&&new a.c(f);const _=document.querySelector(".join-with-resume");_&&new n.b(_,{dropdownTriggerEl:document.querySelector(".join-with-resume__toggle")});const E=document.querySelector(".apptivation-promo");if(E){new n.a(E).isVisible().then(e=>{e||w()})}else w();function w(){const e=document.querySelector(".google-one-tap");e&&new a.a(e)}const v=document.querySelector(".hamburger-menu");v&&new n.d(v);const b=document.querySelector(".modal");b&&new n.h(b)}]);