!function(e){var t={};function n(i){if(t[i])return t[i].exports;var r=t[i]={i:i,l:!1,exports:{}};return e[i].call(r.exports,r,r.exports,n),r.l=!0,r.exports}n.m=e,n.c=t,n.d=function(e,t,i){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:i})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var i=Object.create(null);if(n.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)n.d(i,r,function(t){return e[t]}.bind(null,r));return i},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=7)}([function(e,t,n){"use strict";(function(e){function i(e){let t=e.domain;return t?t.split(".").slice(-2).join("."):""}function r(e){return'"'===e.charAt(0)&&'"'===e.charAt(e.length-1)?e.slice(1,-1):e}n.d(t,"a",function(){return R}),n.d(t,"b",function(){return $}),n.d(t,"c",function(){return B}),n.d(t,"d",function(){return p}),n.d(t,"e",function(){return o}),n.d(t,"f",function(){return J}),window.encodeURIComponent;var o=Object.freeze({__proto__:null,getPageKey:function(e){let t=e.querySelector('meta[name="pageKey"]');return t?t.content+"_jsbeacon":""},getPageTag:function(e){let t=e.querySelector('meta[name="linkedin:pageTag"]');return t&&t.content||""},getLocale:function(e){let t=e.querySelector('meta[name="locale"]');return t&&t.content||""},getDomain:i,trimDoubleQuotes:r});const s={ARROW_DOWN:"ArrowDown",ARROW_LEFT:"ArrowLeft",ARROW_RIGHT:"ArrowRight",ARROW_UP:"ArrowUp",ESCAPE:"Escape",ENTER:"Enter",SPACEBAR:" ",TAB:"Tab"},a={Down:s.ARROW_DOWN,Right:s.ARROW_RIGHT,Left:s.ARROW_LEFT,Up:s.ARROW_UP,Esc:s.ESCAPE,Spacebar:s.SPACEBAR,Tab:s.TAB};function l(e){return a[e]||e}function c(e,t){if(!e)return null;let n=e.matches||e.webkitMatchesSelector||e.mozMatchesSelector||e.msMatchesSelector;for(;e&&!n.call(e,t);)e=e.parentElement;return e}function d(e,t,n){const i=new RegExp("([\\?&])".concat(n?t:encodeURIComponent(t),"=([^&#]*)")).exec(e);return i&&(n?i[2]:decodeURIComponent(i[2]))}function u(e,t,n,i){if(!e||!t)throw new Error("Required param of addQueryParam missing: url = ".concat(e,",  key = ").concat(t));t=encodeURIComponent(t),n=encodeURIComponent(n);const r=d(e,t,!0);if(r)return i?e.replace(r,n):e;{const i=e.indexOf("?");let[r,o]=e.split("#"),s="&";return i<0?s="?":i===e.length-1&&(s=""),o&&(o="#".concat(o)),"".concat(r).concat(s).concat(t,"=").concat(n).concat(o||"")}}function h(e){const t=document.cookie.match(new RegExp("(^| )"+e+"=([^;]+)"));return t&&t[2]}function m(e,t,n={}){const i=document.createEvent("CustomEvent");i.initCustomEvent(t,!0,!0,n),e.dispatchEvent(i)}var p=Object.freeze({__proto__:null,closest:c,onload:function(e){"complete"===document.readyState?e():window.addEventListener("load",()=>{setTimeout(e)})},makeArray:function(e){return null==e||"object"!=typeof e?[]:Array.prototype.slice.call(e)},outerWidth:function(e){let t=e.offsetWidth,n=getComputedStyle(e);return t+((parseInt(n.marginLeft,10)||0)+(parseInt(n.marginRight,10)||0))},elementInViewport:function(e){const t=e.getBoundingClientRect(),n=window.innerHeight||document.documentElement.clientHeight,i=window.innerWidth||document.documentElement.clientWidth,r=t.top<=n&&t.top+t.height>=0,o=t.left<=i&&t.left+t.width>=0;return r&&o},hasElementScrolledToThreshold:function({scrollTop:e=scrollY,clientHeight:t=window.innerHeight,scrollHeight:n=document.body.scrollHeight}={},i=0){return e>=n-(t+t*i)},getQueryParam:d,addTrackingCode:function(e,t){return u(e,"trk",t)},addQueryParam:u,debounce:function(e,t,n){if("function"!=typeof e)throw new TypeError("Expected a function.");let i;return(...r)=>{const o=n&&!i;clearTimeout(i),i=setTimeout(()=>{i=null,n||e.apply(this,r)},t),o&&e.apply(this,r)}},getCookie:h,dispatchCustomEvent:m,getDeferredPromise:function(){let e,t;const n=new Promise((n,i)=>{e=n,t=i});return n.resolve=e,n.reject=t,n}});const g="click",f="keydown",_="focus",E="keyup";class O{constructor(e,t,{mainButton:n,closeButton:i},r={}){if(!e)throw Error("An element must be provided to Collapsible");if(!t)throw Error("An list element must be provided to Collapsible");if(!n)throw Error("A main button element must be provided to Collapsible");this.el=e,this.listEl=t;let{currentListItem:o=t.children[0],isOpen:s=!1}=r;this.currentListItem=o,this.isOpen=s,this.mainButton=n,this.closeButton=i,this.buttons=[n],this.mainButton.addEventListener(g,()=>this.closeButton?this._open():this._toggle()),this.mainButton.addEventListener(f,e=>this._onButtonKeyDown(e)),this.mainButton.addEventListener(E,e=>this._onButtonKeyUp(e)),this.closeButton&&(this.closeButton.addEventListener(g,()=>this.close()),this.closeButton.addEventListener(f,e=>this._onButtonKeyDown(e)),this.buttons.push(this.closeButton)),this.listEl.addEventListener(f,e=>this._onListKeyDown(e))}_toggle(){this.isOpen?this.close():this._open()}_onButtonKeyDown(e){const t=l(e.key);switch(t){case s.ENTER:case s.SPACEBAR:e.preventDefault(),this.isOpen?this.close():this._open(t);break;case s.ARROW_UP:this.isOpen||this._open();break;case s.ARROW_DOWN:this.isOpen&&this.close()}}_onButtonKeyUp(e){const t=l(e.key);this.isOpen&&t===s.SPACEBAR&&(e.preventDefault(),m(this.currentListItem,_))}_onListKeyDown(e){let t;switch(l(e.key)){case s.ESCAPE:this.isOpen&&this.close();break;case s.ARROW_LEFT:let n=(t=c(e.target,"li")).previousElementSibling;n&&m(n,_);break;case s.ARROW_RIGHT:let i=(t=c(e.target,"li")).nextElementSibling;i&&m(i,_)}}_open(e){this.isOpen||(this.isOpen=!0,this.buttons.forEach(e=>e.setAttribute("aria-expanded",this.isOpen)),m(this.el,"open"),e!==s.SPACEBAR&&m(this.currentListItem,_))}close({shouldReturnFocusToTrigger:e=!0}={}){this.isOpen&&(this.isOpen=!1,this.buttons.forEach(e=>e.setAttribute("aria-expanded",this.isOpen)),m(this.el,"close"),e&&this.mainButton.focus())}}const S=".".concat("collapsible-dropdown","__list"),b=".".concat("collapsible-dropdown","__button"),T="hidden";class v{constructor(e,t=(e=>e),{currentListItem:n,dropdownTriggerEl:i,listEl:r}={}){if(!e)throw Error("An element must be provided to CollapsibleDropdown");this.el=e,this.listEl=r||this.el.querySelector(S),this.dropdownTriggerEl=i||this.el.querySelector(b),this._getFocusItemFromListItem=t,this.hideClass=T,this.collapsible=new O(e,this.listEl,{mainButton:this.dropdownTriggerEl},{currentListItem:n}),this._handleBodyClick=this._handleBodyClick.bind(this),this._focusOutsideDropdown=this._focusOutsideDropdown.bind(this),this._attachEventListeners()}_attachEventListeners(){this.el.addEventListener("open",()=>this._showDropdownList()),this.el.addEventListener("close",()=>this._hideDropdownList()),this.listEl.addEventListener("focus",e=>this._focusItem(e))}_focusItem(e){const t=e.target;if(t){const e=this._getFocusItemFromListItem(t);e&&e.focus()}}_handleBodyClick(e){this.el.contains(e.target)||this.collapsible.close({shouldReturnFocusToTrigger:!1})}_showDropdownList(){document.addEventListener("mousedown",this._handleBodyClick),this.el.addEventListener("focusout",this._focusOutsideDropdown),this.listEl.classList.remove(this.hideClass)}_hideDropdownList(){document.removeEventListener("mousedown",this._handleBodyClick),this.el.removeEventListener("focusout",this._focusOutsideDropdown),this.listEl.classList.add(this.hideClass)}_focusOutsideDropdown(e){e.relatedTarget&&!this.el.contains(e.relatedTarget)&&this.collapsible.isOpen&&this.collapsible.close()}}const y=31536e6,L="data-locale",w=".collapsible-dropdown__list",N=".language-selector__button",A="language-selector__link",I=".".concat(A),C="".concat(I,"--selected");class R{constructor(e){if(!e)throw Error("An element must be provided to LanguageSelector");this._el=e,this.listEl=this._el.querySelector(w),this.dropdownTriggerEl=this._el.querySelector(N),this.currentListItem=this.listEl.querySelector(C),this.getFocusItemFromListItem=(e=>e.classList.contains(A)?e:e.querySelector(I)),this.collapsibleDropdown=new v(e,this.getFocusItemFromListItem,{dropdownTriggerEl:this.dropdownTriggerEl,currentListItem:this.currentListItem}),this._attachCustomEventListeners()}_attachCustomEventListeners(){this.listEl.addEventListener("click",this._handleLocaleButtonClick.bind(this))}_handleLocaleButtonClick(e){const t=e.target.getAttribute(L);if(t){const e=this.getLangCookieString(t);null!==e&&(document.cookie=e),location.reload()}}getLangCookieString(e){let t=null;if(null!==e){const n=e.toLocaleLowerCase().replace("_","-"),r=i(document);let o=new Date;o.setTime(o.getTime()+y),t='lang="v=2&lang='.concat(n,'";path=/;domain=').concat(r,";expires=").concat(o.toUTCString())}return t}}var F="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==e?e:"undefined"!=typeof self?self:{};parseInt;var P="object"==typeof F&&F&&F.Object===Object&&F,j="object"==typeof self&&self&&self.Object===Object&&self;P||j||Function("return this")(),Object.prototype.toString,Math.max,Math.min;const D=".member-nav-menu";function U(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function k(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,i)}return n}function J(e,{method:t="GET",headers:n={},sendCookies:i=!0,skipCsrfToken:o=!1,postData:s}={}){return new Promise((a,l)=>{const c=new XMLHttpRequest;if(c.addEventListener("load",function(){if(c.status>=200&&c.status<300||304===c.status)a({status:c.status,responseText:c.responseText});else{const n=new Error("".concat(t," request for ").concat(e," has failed with status code ").concat(c.status));n.response={status:c.status,responseText:c.responseText},l(n)}}),c.addEventListener("error",function(e){l(e)}),c.open(t,e,!0),c.withCredentials=i,Object.keys(n).forEach(e=>{c.setRequestHeader(e,n[e])}),!o){const e=h("JSESSIONID");e&&c.setRequestHeader("Csrf-Token",r(e))}c.send(s)})}"".concat(D,"__list"),"".concat(D,"__item-link"),"".concat(D,"__button"),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)))[;,]|[/.#?])");"".concat("tab-toggle","--active");const M={COPY:"copy",LINKEDIN:"linkedin",TWITTER:"twitter",FACEBOOK:"facebook"};Object.keys(M).map(e=>M[e]);const x={};function B(e){const t=document.getElementById(e);if(!t&&void 0!==x[e])return x[e];if(!t)return console.warn("Element with id: ".concat(e," not found")),x[e]=null,x[e];try{x[e]=JSON.parse(t.firstChild.nodeValue)}catch(t){console.warn("Error fetching embedded content with id: ".concat(e)),x[e]=null}return t.parentNode.removeChild(t),x[e]}['a[href]:not([tabindex^="-"])','area[href]:not([tabindex^="-"])','input:not([disabled]):not([tabindex^="-"]):not([type="hidden"])','select:not([disabled]):not([tabindex^="-"])','textarea:not([disabled]):not([tabindex^="-"])','button:not([disabled]):not([tabindex^="-"])','[tabindex]:not([tabindex^="-"]):not([disabled])'].join(",");const{ENTER:H,ESCAPE:G}=s,q=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");return function(e){return!t.test(e)}}({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"}),W="toast--hidden";class ${constructor(){let e=document.getElementById("toasts");if(!e)throw new Error("No toasts element");this._el=e,this._position=e.getAttribute("type"),this.closeToastString=e.getAttribute("data-close-toast-string")}trigger(e,t,n){if(!e||"notify"!==e&&"success"!==e&&"error"!==e)throw new Error("Valid type not specified: type must be success, error, or notify");if(!t)throw new Error("No message specified");const i=n?"".concat(n,"_toast-").concat(e):"toast-".concat(e),r=this._createToastEl(e,t,i);return this._addToast(r)}clearAllToasts(){let e=this._el.childNodes;Array.from(e).forEach(e=>{this._removeToast(e)})}_createToastEl(e,t,n){let i,r,o,s,a,l=this;return i=this._createElement({type:"div",classes:"toast toast--"+e+" toast--"+this._position+" "+W,attrs:[["role","alert"],["type",e]]}),r=this._createElement({type:"div",classes:"toast__inner"}),o=this._createElement({type:"icon",classes:"toast__icon",attrs:[["aria-hidden","true"],["type",e+"-pebble-icon"]],svg:e}),s=this._createElement({type:"p",classes:"toast__message",innerHTML:t}),(a=this._createElement({type:"button",classes:"toast__dismiss",svg:"dismiss",attrs:[["aria-label",this.closeToastString],["data-tracking-control-name","".concat(n,"_dismiss")]]})).addEventListener("click",function(){l._removeToast(i)}),r.appendChild(o),r.appendChild(s),i.appendChild(r),i.appendChild(a),i}_createSvg(e){return"dismiss"===e?this._createDismissSvg():this._createTypeSvg(e)}_createTypeSvg(e){let t,n=document.createElementNS("http://www.w3.org/2000/svg","svg");return n.setAttributeNS(null,"x","0px"),n.setAttributeNS(null,"y","0px"),n.setAttributeNS(null,"viewBox","0 0 24 24"),n.setAttributeNS(null,"style","enable-background:new 0 0 24 24;"),(t=document.createElementNS("http://www.w3.org/2000/svg","g")).setAttributeNS(null,"style","fill: currentColor"),this._addGChildren(t,e),n.appendChild(t),n}_addGChildren(e,t){if("success"===t){let t,n=document.createElementNS("http://www.w3.org/2000/svg","circle");n.setAttributeNS(null,"r","9.1"),n.setAttributeNS(null,"stroke","currentColor"),n.setAttributeNS(null,"stroke-width","1.8"),n.setAttributeNS(null,"cx","12"),n.setAttributeNS(null,"cy","12"),n.setAttributeNS(null,"fill","none"),n.setAttributeNS(null,"transform","rotate(-90 12 12)"),(t=document.createElementNS("http://www.w3.org/2000/svg","path")).setAttributeNS(null,"d","M15.667,8L17,9.042l-5.316,7.36c-0.297,0.395-0.739,0.594-1.184,0.599c-0.455,0.005-0.911-0.195-1.215-0.599l-2.441-3.456l1.416-1.028l2.227,3.167L15.667,8z"),t.setAttributeNS(null,"fill","currentColor"),e.appendChild(n),e.appendChild(t)}if("error"===t){let t,n,i=document.createElementNS("http://www.w3.org/2000/svg","circle");i.setAttributeNS(null,"r","9.1"),i.setAttributeNS(null,"stroke","currentColor"),i.setAttributeNS(null,"stroke-width","1.8"),i.setAttributeNS(null,"cx","12"),i.setAttributeNS(null,"cy","12"),i.setAttributeNS(null,"fill","none"),i.setAttributeNS(null,"transform","rotate(-90 12 12)"),(t=document.createElementNS("http://www.w3.org/2000/svg","path")).setAttributeNS(null,"d","M13.238,12l3.463,3.463L15.463,16.7L12,13.237L8.538,16.7L7.3,15.463L10.763,12L7.3,8.537L8.538,7.3L12,10.763 l3.452-3.452l1.238,1.237L13.238,12z"),(n=document.createElementNS("http://www.w3.org/2000/svg","rect")).setAttributeNS(null,"style","fill:none"),n.setAttributeNS(null,"width","24"),n.setAttributeNS(null,"height","24"),e.appendChild(i),e.appendChild(t),e.appendChild(n)}if("notify"===t){let t,n=document.createElementNS("http://www.w3.org/2000/svg","path");n.setAttributeNS(null,"d","M12,2C6.477,2,2,6.477,2,12c0,5.523,4.477,10,10,10c5.523,0,10-4.477,10-10C22,6.477,17.523,2,12,2z M12,20.23 c-4.538,0-8.23-3.692-8.23-8.23S7.462,3.77,12,3.77s8.23,3.692,8.23,8.23S16.538,20.23,12,20.23z M11,10h2v8h-2V10z M11,6h2v2h-2 V6z"),(t=document.createElementNS("http://www.w3.org/2000/svg","rect")).setAttributeNS(null,"style","fill:none;"),t.setAttributeNS(null,"width","24"),t.setAttributeNS(null,"height","24"),e.appendChild(n),e.appendChild(t)}}_createDismissSvg(){let e,t,n=document.createElementNS("http://www.w3.org/2000/svg","svg");return n.setAttributeNS(null,"x","0"),n.setAttributeNS(null,"y","0"),n.setAttributeNS(null,"viewBox","0 0 24 24"),n.setAttributeNS(null,"width","24px"),n.setAttributeNS(null,"height","24px"),n.setAttributeNS(null,"class","toast__dismiss-icon"),(e=document.createElementNS("http://www.w3.org/2000/svg","g")).setAttributeNS(null,"style","fill-opacity: 1"),(t=document.createElementNS("http://www.w3.org/2000/svg","path")).setAttributeNS(null,"d","M13,4.32L9.31,8,13,11.69,11.69,13,8,9.31,4.31,13,3,11.69,6.69,8,3,4.31,4.31,3,8,6.69,11.68,3Z"),n.appendChild(e),n.appendChild(t),n}_addToast(e){return this._el.appendChild(e),setTimeout(function(){e.classList.remove(W)},500),e}_removeToast(e){let t=this._el;e.classList.add(W),setTimeout(function(){t.removeChild(e)},500)}_createElement(e){let t,{type:n,classes:i,attrs:r,innerHTML:o,svg:s}=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?k(Object(n),!0).forEach(function(t){U(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):k(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}({},e);if(t=document.createElement(n),i&&(t.className=i),s){let e=this._createSvg(s);t.appendChild(e)}var a;if(o&&(t.innerHTML=q(a=o)?a:a.replace(/<[^>]*>|[<>'"&\\]/g,"")),r)for(let e of r)t.setAttribute(e[0],e[1]);return t}}function V(){const e=(e="")=>!e||0===e.trim().length;return e.errorMessageSuffix="error_empty",e}function K(e){const t=(t="")=>t.length<e;return t.errorMessageSuffix="error_too_short",t}function z(e){const t=(t="")=>t.length>e;return t.errorMessageSuffix="error_too_long",t}V(),K(3),z(128),V(),K(6),z(400);var Q=window||e;const Y="utag_data";Q[Y]||(Q[Y]={});const Z="undefined"!=typeof window&&window&&"node"!==window.appEnvironment;Q.utag_cfg_ovrd=Q.utag_cfg_ovrd||{},Q.utag_cfg_ovrd.noview=!0,Q.utag_cfg_ovrd.nocookie=!0,Z&&new RegExp("bot|google|aolbuild|baidu|bing|msn|duckduckgo|teoma|slurp|yandex|sogou|facebook|alexa","i").test(Q.navigator.userAgent),".".concat("show-more-less","__list"),".".concat("show-more-less","__more-button"),".".concat("show-more-less","__less-button"),"".concat("show-more-less","__list--hide-after"),"".concat("show-more-less","__button--hide")}).call(this,n(5))},function(e,t,n){"use strict";n.d(t,"b",function(){return Ge}),n.d(t,"a",function(){return ht}),n.d(t,"c",function(){return tt}),n.d(t,"d",function(){return xe});var i=n(0),r="aria-[a-z0-9_\\-]+|class|data-[a-z0-9_\\-]+|dir|id|role|tabindex",o="undefined"==typeof document||"textContent"in document.createElement("div")?"textContent":"innerText",s=["b","del","em","i","s","strong","sub","sup"],a=s.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"]),l=[r,"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("|"),c="href|src",d="data:image/(?:gif|jpg|jpeg|png);base64,",u="https?|ftp|mailto|invalid";function h(){}function m(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 p,g,f=(g=/[&<>"'\u0000\\=]/g,p={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","\0":"�","\\":"&#92;","=":"&#61;"},function(e){return null==e?null:e.toString().replace(g,function(e){return p[e]})}),_=function(){var e,t,n=/&(?:([a-z0-9]+)|#x([\da-f]{1,6})|#(\d{1,8}));/gi;if("undefined"==typeof document)return function(){throw new Error("document is undefined (i.e. you are probably in Node.js)")};e=document.createElement("div");var i={nbsp:" ",lt:"<",gt:">",amp:"&",quot:'"'};return t="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,s,a){return r?(l=r,i.hasOwnProperty(l)?i[l]:(e.innerHTML="&"+l+";",c=e[o],i[l]=c,c)):s||a?t(parseInt(s||a,s?16:10)||65533):"�";var l,c})}}(),E=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)};function O(e){return/[<&]/.test(e)}var S,b=Array.prototype.forEach?function(e,t){Array.prototype.forEach.call(e,t)}:function(e,t){for(var n=0,i=e.length;n<i;n++)t(e[n],n)},T="[ \t\r\n]*",v="[ \t\r\n]+";function y(e){e=E(e)?e:[e];var t,n,i,r=0,o="<(?!/?";return o+="(?:",b(e,function(e,s){t=e.tags||a,n=e.attrs||l,i=e.checkUrlAttrs||!1,0!==s&&(o+="|"),o+="(?:"+t.join("|")+")",o+="(?:",o+=T,o+="|"+v,o+="(?:(?:",o+="(?:"+n+")(?:=([\"'])[^'\"<>]*\\"+ ++r+")?",i&&(o+="|(?:"+c+")=([\"'])(?:(?:"+u+")(?::|&#(?:58|x3a);)|(?:"+d+")|[/.#?]|&#(?:35|4[67]|63|x(?:2[3ef]|3f));)[^'\"<>]*\\"+ ++r),o+=")"+T+")+",o+=")"}),o+=")",o+="/?>)",new RegExp(o,"i")}function L(e){return y({tags:e=e||a,checkUrlAttrs:!0})}function w(e,t){var n=(t=t||{}).allowTags,i=!1!==t.hasCustomElementMarkup;return n?!L(n).test(e):i?!w.R_UNSAFE_CUSTOM_ELEMENT.test(e):!w.R_UNSAFE_HTML.test(e)}function N(e){return e.replace(/<[^>]*>|[<>'"&\\]/g,"")}function A(e,t,n){if(null==e)return null;e=e.toString();var i=t?function(e,t){var n={};return e.replace(/\{([^}]+)\}/g,function(e,i){var r,o=e;if(n.hasOwnProperty(i))return n[i];if(t.hasOwnProperty(i)){if(!((r="string"==typeof(o=t[i]))||o instanceof h||"number"==typeof o))throw new Error("Only strings, numbers, and jSecure types are allowed as placeholder replacements.");o=r?f(o):o.toString()}return n[i]=o,o})}(e,t):e,r=e;return O(i)&&!w(i,n)&&(i=N(i),m("Content contains non-whitelisted tags or attributes:\nContent: "+r,"error")),i}function I(e,t){for(var n=+t.length,i=0,r=e.length;i<n;i++)e[r++]=t[i];return e.length=r,e}w.R_UNSAFE_HTML=L(),w.R_UNSAFE_CUSTOM_ELEMENT=y([{tags:a,checkUrlAttrs:!0},{tags:[(S={tag:"li-icon",attrs:"active|a11y-text|animate|color|size|type"}).tag],attrs:[r,S.attrs].join("|"),checkUrlAttrs:!1}]);var C={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,"",""]};C.optgroup=C.option,C.tbody=C.tfoot=C.colgroup=C.caption=C.thead,C.th=C.td;var R=/<([\w:]+)/;function F(e,t){var n,i,r,o,s,a,l,c=t.createDocumentFragment(),d=[];for(s=0,l=e.length;s<l;s++)if((o=e[s])||0===o)if("string"==typeof o){for(r=r||c.appendChild(t.createElement("div")),n=(R.exec(o)||["",""])[1].toLowerCase(),D(r,(i=C[n]||C._default)[1]+o+i[2]),a=i[0];a--;)r.lastChild&&r.lastChild.nodeType===Node.ELEMENT_NODE&&(r=r.lastChild);I(d,r.childNodes),(r=c.firstChild).textContent=""}else I(d,o.nodeType?[o]:o);for(c.textContent="",o=d[s=0];o;)c.appendChild(o),o=d[++s];return c}var P=A,j=A;function D(e,t,n){var i=A(t,n);return O(i)?e.innerHTML=i:e[o]=i,i}function U(e,t){if(!(this instanceof U))return new U(e,t);(t=t||{}).allowTags=t.allowTags?t.allowTags.reduce(function(e,t){return e.concat(t)},[]):null,this._string=e,this._options=t}U.prototype=function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);return e}(new h,{toString:function(){var e=this._string,t=this._stringVal,n=e;return void 0!==t?t:(w(e,this._options)||(n=e,e=N(e),m("UnsafeString contains non-whitelisted tags or attributes.\nString: "+n,"error")),this._stringVal=e,e)}});const k=/ /g,J=/[\s\u0000<>"]|%00/,M=/\\/,x=/([.]|%2e){2}/i;let B=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 H(e){let t;if("string"!=typeof e)return m("jSecure Warning: url must be a string","error"),"invalid://";if((t=e.trim()).indexOf(" ")>-1&&(m("jSecure Warning: url should not contain spaces: "+e,"warn"),t=t.replace(k,"+")),!B.test(t))return m("jSecure Error: URL should be absolute with allowed schemas, relative, a hash fragment or query string. "+e,"error"),"invalid://";if(J.test(t))return m("jSecure Error: not valid url character found in url: "+e,"error"),"invalid://";let n=t.split("?")[0];return M.test(n)||x.test(n)||x.test(decodeURI(n))?(m("jSecure Error: malicious data found in url path: "+n,"error"),"invalid://"):e}const G={redirect(e){window&&(window.location.href=e)}};var q={ALLOWED_TAGS:a,FORMATTING_TAGS:s,htmlEncode:f,htmlUnencode:_,log:m,mk:function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];let r,o="",s=n.length;return e&&e.forEach(function(e,t){o+=e,t<s&&(r=n[t],o+=r instanceof U?r:f(r))}),j(o)},parseHTML:function(e,t){var n;if(t=t||document.implementation&&document.implementation.createHTMLDocument?document.implementation.createHTMLDocument(""):document,"string"==typeof e)n=F([e],t);else{if(!E(e))return e;n=F(e,t)}return I([],n.childNodes)},parseSelector:function(e){return"string"==typeof e&&/^(?:\s*(<[\w\W]+>)[^>]*)$/.test(e)?[]:e},processTemplate:P,reEncode:function(e){return f(_(e))},_redirector:G,redirect:function(e){const t=H(e);t===e&&G.redirect(t)},sanitizeHTML:j,sanitizeUrl:H,setElementContent:D,text:function(e){return m("jSecure.text() is deprecated. Please use jSecure.htmlEncode().","warn"),f(e)},unsafe:function(e){return e},UnsafeString:U};function W(e){arguments.length>1&&void 0!==arguments[1]&&arguments[1]?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 $(e){e.querySelectorAll(".inline-alert").forEach(e=>e.parentNode.removeChild(e))}function V(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];e.classList.remove("error"),t&&e.classList.remove("error--is-inline")}const K=/\!|\@|\#|\$|\%|\^|\&|\*|\+|\=|\||<|\>|\?|\:|\;/,z=/(.)\1{3}/,Q=/linkedin/i,Y=/\d\d/,Z=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]+)?(/.*)?"),X=/^(([^<>()\[\]\.,;:\s@\"]+(\.[^<>()\[\]\.,;:\s@\"]+)*)|(\".+\"))@(([^<>()[\]\.,;:\s@\"]+\.)+[^<>()[\]\.,;:\s@\"]{2,})$/i,ee=/^[\u4E00-\u9FFF|\u3400-\u4DBF|\uF900-\uFAFF]*$/,te=/^[ぁ-ゔゞ゛゜ー]*$/,ne=/^[+]?[\s.\/0-9]*[(]?[0-9]{1,4}[)]?[-\s.\/0-9]*$/,ie=e=>{const t=function(){return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"").length<=e};return t.errorMessagePrefix="i18n_tooLong_",t},re=e=>{const t=function(){return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"").length>=e};return t.errorMessagePrefix="i18n_tooShort_",t},oe=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return!Y.test(e)};oe.errorMessagePrefix="i18n_noConsecutiveDigits_";const se=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return!K.test(e)};se.errorMessagePrefix="i18n_noForbiddenCharacters_";const ae=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return!z.test(e)};ae.errorMessagePrefix="i18n_noFourConsecutiveDuplicates_";const le=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return!Q.test(e)};le.errorMessagePrefix="i18n_noLinkedIn_";const ce=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return!Z.test(e)};ce.errorMessagePrefix="i18n_noUrl_";const de=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return ee.test(e)};de.errorMessagePrefix="i18n_onlyChinese_";const ue=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return te.test(e)};ue.errorMessagePrefix="i18n_onlyPhonetic_";const he=function(){return""!==(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"").trim()};he.errorMessagePrefix="i18n_required_";const me=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return X.test(e)};me.errorMessagePrefix="i18n_invalidFormat_";const pe=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return ne.test(e)};pe.errorMessagePrefix="i18n_invalidFormat_";const ge=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return X.test(e)||ne.test(e)};ge.errorMessagePrefix="i18n_invalidFormat_";const fe=[ie(50),se,oe,ae,le,ce],_e=[he].concat(fe),Ee=[ue,ie(50),ae],Oe={"first-name":_e,"last-name":_e,"phonetic-first-name":Ee,"phonetic-last-name":Ee,"real-name":[he,de,ie(4),re(2)],"email-or-phone":[he,ie(128),ge],"email-address":[he,ie(128),me],"optional-email-address":[ie(128),(e=>{const t=function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return""===t||e(t)};return t.errorMessagePrefix=e.errorMessagePrefix,t})(me)],"phone-number":[he,pe],password:[he,re(6),ie(200)]},Se={button:!0,reset:!0,submit:!0,checkbox:!0},be=e=>e.type&&!Se[e.type],Te={"email-or-phone":"emailOrPhoneNumber","optional-email-address":"emailAddress","phone-number":"phoneNumber","email-address":"emailAddress",password:"password","first-name":"firstName","last-name":"lastName","phonetic-first-name":"phoneticFirstName","phonetic-last-name":"phoneticLastName"};function ve(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};let t=e.name,n=e.value;const i=Oe[t];if(!i)throw new Error(`No validation rules for element named ${t}`);return i.reduce((e,i)=>(i(n)||e.push(i.errorMessagePrefix+t),e),[])}const ye=/^http[s]?:\/\/(qprod\.)?www\.linkedin(?:-ei)?\.(com|cn)$/,Le="990339570472-k6nqn1tpmitg8pui82bfaun3jrpmiuhs.apps.googleusercontent.com",we="https://accounts.google.com",Ne={JOIN_FORM:{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"},PROFILE_CARD:{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"}}},Ae={HIDDEN:"hidden"},Ie={VALUE:"value",SRC:"src",REQUIRED:"required"},Ce={FACEBOOK:"FACEBOOK",GOOGLE:"GOOGLE",WECHAT:"WECHAT"},Re={PAGE_VIEW_EVENT:"PageViewEvent",ENTITY_ACTIVITY_EVENT:"EntityActivityEvent",CONTROL_INTERACTION_EVENT:"ControlInteractionEvent"},Fe={FOCUS:"FOCUS",SHORT_PRESS:"SHORT_PRESS"},Pe={CLICK:"click",VIEW:"view"},je={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"},De={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 Ue(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;10===n||(window.tracking?window.tracking.then(n=>{n.fireTrackingEvent(e,t)}):window.setTimeout(()=>{Ue(e,t,n+1)},500))}function ke(e,t){e.forEach(e=>{const n=t?e.target:e,r={header:{},pageType:"form",requestHeader:{interfaceLocale:i.e.getLocale(document)||null},trackingInfo:{clientTimestamp:Date.now(),pageTag:i.e.getPageTag(document)||null,source:"registration-ui-lib",formId:n.id}};Ue(Re.PAGE_VIEW_EVENT,r),t&&t.unobserve(n)})}function Je(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!i.e.getPageKey(document)||!e.controlName)return;const t={header:{},requestHeader:{},controlUrn:function(e){if(i.e.getPageKey(document)&&i.e.getPageKey)return`urn:li:control:${i.e.getPageKey(document)}-${e}`}(e.controlName),interactionType:e.interactionType||Fe.FOCUS};Ue(Re.CONTROL_INTERACTION_EVENT,t)}function Me(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!i.e.getPageKey(document)||!e.trackingCode)return;const t={header:{},pageType:"form",requestHeader:{interfaceLocale:i.e.getLocale(document)||null},trackingCode:`${i.e.getPageKey(document)}-${e.trackingCode}`,activityType:e.activityType||Pe.CLICK,pageKey:i.e.getPageKey(document),attributes:e.customData||{}};Ue(Re.ENTITY_ACTIVITY_EVENT,t)}function xe(e,t){arguments.length>2&&void 0!==arguments[2]&&arguments[2]?function(e,t){if(!be(e))throw new Error(`you cannot show an alert for this type of element ${e.type}`);e.nextElementSibling&&e.nextElementSibling.classList.contains("artdeco-inline-feedback")?function(e,t){const n=e.querySelector(".artdeco-inline-feedback__message");q.setElementContent(n,t||Object(i.c)("i18n_server_generic_error"))}(e.nextElementSibling,t):function(e,t){e.insertAdjacentHTML("afterend",`<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        ${t}\n      </p>\n    </div>\n  `)}(e,t)}(e,t):function(e,t){const n=e.querySelector(".alert");if(!n)throw new Error('showAlert has been called but no element exists that matches the selector ".alert"');const r=n.querySelector('p[class="alert-content"]');q.setElementContent(r,t||Object(i.c)("i18n_server_generic_error")),n.classList.remove("hidden"),Je({controlName:je.ERROR_ALERT,interactionType:Fe.SHORT_PRESS})}(e,t)}function Be(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];e.classList.add("error"),t&&e.classList.add("error--is-inline")}const He={WIDTH:790,HEIGHT:580,WINDOW_NAME:"auth_popup"},Ge={THIRD_PARTY_CONTAINER:".third-party-join__container",THIRD_PARTY_BUTTON:".third-party-join__btn"};class qe{constructor(e){if(!e)throw new Error("No element passed in.");let t;switch(this.element=e,this.provider=Object(i.c)("dust-var-provider"),this.show(),this._setupGaapCallback(),this._attachEventListeners(),this.provider){case Ce.FACEBOOK:t=De.THIRD_PARTY_JOIN_BUTTON.FACEBOOK_IMPRESSION;break;case Ce.GOOGLE:t=De.THIRD_PARTY_JOIN_BUTTON.GOOGLE_IMPRESSION;break;case Ce.WECHAT:t=De.THIRD_PARTY_JOIN_BUTTON.WECHAT_IMPRESSION}Me({trackingCode:t,activityType:Pe.VIEW})}onUserInfoFetch(){}onError(){}hide(){this.element.classList.add(Ae.HIDDEN)}show(){this.element.classList.remove(Ae.HIDDEN)}_setupGaapCallback(){window.thirdPartyCallback=((e,t)=>{if(this.gaapAuthWindow.close(),""!==t||0!==ve({name:"email-or-phone",value:e}).length)return this.onError(this.provider),Me({trackingCode:De.THIRD_PARTY_JOIN_BUTTON.GAAP_ERROR,activityType:Pe.CLICK,customData:{provider:this.provider,errorContent:t}}),Promise.reject(t);const n=function(e,t){return Object(i.f)(q.sanitizeUrl(`${Object(i.c)("dust-var-callbackUrl")}${e}?handle=${t}`)).then(e=>e.responseText)}(this.provider,e).then(t=>(this.element.classList.add(Ae.HIDDEN),function(e,t){const n={id:t,phoneticFirstName:"",phoneticLastName:"",displayDigitalMediaAssetUrn:"",firstName:"",lastName:"",profilePictureUrl:""};return e?(n.phoneticFirstName=e.phoneticFirstName,n.phoneticLastName=e.phoneticLastName,n.displayDigitalMediaAssetUrn=e.displayDigitalMediaAssetUrn,n.firstName=e.firstName,n.lastName=e.lastName,n.profilePictureUrl=e.profilePictureUrl,n):n}(t?JSON.parse(t):t,e))).catch(e=>{let t;switch(this.onError(this.provider),this.provider){case Ce.FACEBOOK:t=De.THIRD_PARTY_JOIN_BUTTON.FACEBOOK_ERROR;break;case Ce.GOOGLE:t=De.THIRD_PARTY_JOIN_BUTTON.GOOGLE_ERROR;break;case Ce.WECHAT:t=De.THIRD_PARTY_JOIN_BUTTON.WECHAT_ERROR}throw Me({trackingCode:t,activityType:Pe.CLICK,customData:{errorContent:e}}),e});return this.onUserInfoFetch(n),n})}_attachEventListeners(){this.element.querySelector(Ge.THIRD_PARTY_BUTTON).addEventListener("click",()=>{let e;switch(this.gaapAuthWindow=function(){return e=Object(i.c)("dust-var-authUrl"),window.open(q.sanitizeUrl(e),He.WINDOW_NAME,`width=${He.WIDTH},height=${He.HEIGHT}`);var e}(),this.provider){case Ce.FACEBOOK:e=je.JOIN_WITH_FACEBOOK_BUTTON;break;case Ce.GOOGLE:e=je.JOIN_WITH_GOOGLE_BUTTON;break;case Ce.WECHAT:e=je.JOIN_WITH_WECHAT_BUTTON}Je({controlName:e,interactionType:Fe.SHORT_PRESS})})}}const We=new Set(["百里","淳于","第五","東方 ","东方","東閣 ","东阁","東郭 ","东郭","東門 ","东门","端木","獨孤 ","独孤","公孫 ","公孙","公羊","公冶","公西","毌丘","穀梁 ","谷梁","賀蘭 ","贺兰","赫連 ","赫连","賀若 ","贺若","皇甫","黄斯","呼延","兰向","令狐","甪里","閭丘 ","闾丘","万俟","慕容","納蘭 ","纳兰","南宮 ","南宫","歐陽 ","欧阳","沙吒","上官","申屠","司馬 ","司马","司徒","司空","司寇","太史","澹臺 ","澹台","拓跋","完顏 ","完颜","聞人 ","闻人","巫馬 ","巫马","夏侯","鮮于 ","鲜于","西門 ","西门","軒轅 ","轩辕","楊子 ","杨子","耶律","樂正 ","乐正","尉遲 ","尉迟","宇文","長孫 ","长孙","鍾離 ","钟离","諸葛 ","诸葛","祝融","子車 ","子车","左人"]);class $e{sendFingerprint(e,t,n){const i=this.getFingerprintData(),r=new XMLHttpRequest;i["x-f-uc"]=n,i.csrf_token=t,r.open("POST",e),r.setRequestHeader("Content-type","application/json"),r.send(JSON.stringify(i))}collectInitialFingerprint(e,t,n,i){setTimeout(()=>{this.sendFingerprint(e,t,n)},i)}collectFinalFingerprint(e,t,n){return()=>{if(navigator.sendBeacon&&"undefined"!=typeof FormData){let i=this.getFingerprintData();i.csrf_token=t;let r=new FormData;r.append("x-f-uc",n);for(let e in i)i.hasOwnProperty(e)&&r.append(e,i[e]);navigator.sendBeacon(e,r)}else this.sendFingerprint(e,t,n)}}getFingerprintData(){var e={};const t=Date.now();return"undefined"!=typeof Ubba_fetch&&(e=Ubba_fetch()),e.liExecutionTime=Date.now()-t,e}}var Ve=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e};var Ke={DELETED_CSRF_TOKEN:"delete me",BROWSERID:"bcookie=",BROWSERID_VERSION_INFO:"v=2&",REGEX:{FIRST_AND_LAST_QUOTES:/^\"(.+)\"$/}};class ze{constructor(){if(this.registrationUrl=Object(i.c)("registrationUrl"),!this.registrationUrl)throw new Error('Document missing embed with element ID === "registrationUrl"')}sendCreateAccountRequest(e){const t=e.emailOrPhoneNumber,n=e.emailAddress,r=e.phoneNumber;n||r||(t.includes("@")?e.emailAddress=t:e.phoneNumber=t),e.emailAddress&&(e.botDetectionInput=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Date.now().toString();if(!e)throw new Error("emailAddress is a required field in botDetectionInput");const n=()=>Math.floor(9e8*Math.random())+1e8,i=`${n()}:${n()}:${n()}`;return{nonce:i,clientTimestampParamValue:t,clientOutput:"",jsVersion:"",email:e,requestId:`${e}:${i}`}}(e.emailAddress));const o={method:"POST",headers:{"Csrf-Token":this._getCsrfTokenFromBcookie(),Accept:"*/*","Content-Type":"application/json","X-NuxSupportsCp":"on"},sendCookies:!0,skipCsrfToken:!0,postData:JSON.stringify(e)};return Object(i.f)(this.registrationUrl,o).catch(e=>this._handleError(e)).then(e=>this._handleResponse(e))}_getCsrfTokenFromBcookie(){const e=(i.d.getCookie("bcookie")||"").trim();if(e!==Ke.DELETED_CSRF_TOKEN)return e.replace(Ke.REGEX.FIRST_AND_LAST_QUOTES,"$1").replace(Ke.BROWSERID_VERSION_INFO,"")}_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: ${e.responseObj.challengeUrl}`);throw t.response=e,t}return e}}const Qe="CHALLENGE_SOLVED",Ye="CHALLENGE_FAILED",Ze="FRAME_RESIZE",Xe={dialog:".challenge-dialog",dialogCloseBtn:".challenge-dialog__close",iframe:".challenge-dialog__iframe"};class et{constructor(e){if(!e)throw Error("Challenge URL is required");this.complete=!1,this.challengeDialogElem=document.querySelector(Xe.dialog),this.challengeIframeElem=this.challengeDialogElem.querySelector(Xe.iframe),this.challengeIframeElem.src=q.sanitizeUrl(e)}showChallenge(){return new Promise((e,t)=>{const n=this._handleDialogClose.bind(this,t);this._setupEventListeners(n=>{ye.test(n.origin)&&n.data||t();const i=JSON.parse(n.data);if(i.eventId===Qe)Je({controlName:je.CHALLENGE_SOLVED,interactionType:Fe.SHORT_PRESS}),e(i.payload);else if(i.eventId===Ye)Je({controlName:je.CHALLENGE_FAILED,interactionType:Fe.SHORT_PRESS}),t(i.payload);else if(i.eventId===Ze&&document.querySelector(".challenge-dialog__modal-container")){const e=this.challengeIframeElem.contentDocument.body;this.challengeIframeElem.style.height=e.scrollHeight+"px"}},n),this.challengeIframeElem.onload=(()=>{this.challengeDialogElem.style.display="",this.challengeDialogElem.focus(),document.documentElement.style.overflow="hidden",Je({controlName:je.CHALLENGE_DIALOG,interactionType:Fe.FOCUS})})}).then(e=>(this._tearDownEventListeners(),this._cleanup(),e)).catch(e=>{throw this._tearDownEventListeners(),this._cleanup(),e})}_setupEventListeners(e,t){const n=this.challengeDialogElem.querySelector(Xe.dialogCloseBtn);n.addEventListener("click",t),window.addEventListener("message",e,!1),this._tearDownEventListeners=(()=>{n.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(i.d.getCookie("bcookie")||"").trim().replace("v=2&","")}}var tt={validationFailed:"validation-failed",validationSucceeded:"validation-succeeded",accountCreationChallenged:"account-creation-challenged",accountCreationFailed:"account-creation-failed",accountCreationSucceeded:"account-creation-succeeded",challengeClosed:"challenge-closed",challengeFailed:"challenge-failed",challengeSucceeded:"challenge-succeeded",splitJoinFormStepChange:"split-join-form-step-change",thirdPartyProfileCardToggled:"third-party-profile-card-toggled",globalError:"global-error"};function nt(e,t){i.d.dispatchCustomEvent(e,tt.splitJoinFormStepChange,{splitJoinStepNum:t})}function it(e,t){i.d.dispatchCustomEvent(e,tt.globalError,{globalErrorMessage:t})}function rt(e){const t=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:document.body).querySelectorAll(e);t.length&&Array.from(t).forEach(e=>e.classList.remove(Ae.HIDDEN))}function ot(e){const t=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:document.body).querySelectorAll(e);t.length&&Array.from(t).forEach(e=>e.classList.add(Ae.HIDDEN))}function st(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";const i=at(e,arguments.length>3&&void 0!==arguments[3]?arguments[3]:document.body);i&&i.setAttribute(t,n)}function at(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:document.body;if(e)return t.querySelector(e);console.warn(`you attempted to get an element with a falsey selector: ${e}, this is probably a bug.`)}const lt={SECTION:"join-form__form-input-container",HIDDEN:"join-form__form-input-container--is-hidden",LAST_SECTION:"join-form__form-input-container--is-last-section"};class ct{constructor(e,t){if(!e)throw new Error("No element passed in.");this.elem=e,this.isNested=e.parentNode.classList.contains(lt.SECTION),this.requiredInputs=Array.from(e.querySelectorAll("input[required]")),this.elem.classList.add(`${lt.SECTION}--is-section-${t}`)}get isVisible(){return!this.elem.classList.contains(lt.HIDDEN)}show(){this.elem.classList.remove(lt.HIDDEN),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(lt.HIDDEN)}}class dt{constructor(e){this.currentSplitJoinSectionNum=0,this._joinFormElem=e,this.totalSplitJoinSections=this._joinFormElem.querySelectorAll(`.${lt.SECTION}`).length;const t=this.totalSplitJoinSections>2,n=this._joinFormElem.querySelector(`.${lt.SECTION}:not(.${lt.HIDDEN})`),i=t?this._joinFormElem.querySelector(`.${lt.HIDDEN}:not(.${lt.LAST_SECTION})`):this._joinFormElem.querySelector(`.${lt.LAST_SECTION}`),r=this._joinFormElem.querySelector(`.${lt.LAST_SECTION}`);if(!n)throw new Error("Split join form must have a default visible section");if(!i)throw new Error("Split join form must have at least two sections");this._orderedSplitJoinSections=[new ct(n,1),new ct(i,2)],t&&this._orderedSplitJoinSections.push(new ct(r,3)),this._orderedSplitJoinSections.forEach(e=>{e.elem.classList.contains(lt.HIDDEN)&&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(),nt(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()),nt(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(),nt(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(),nt(this._joinFormElem,this.currentSplitJoinSectionNum))}getSectionAtIndex(e){return this._orderedSplitJoinSections[e]}_hideNestedSectionParent(e){let t=e.elem;this._orderedSplitJoinSections.forEach(e=>{e.elem!==t&&e.elem.contains(t)&&e.hide()})}_showNestedSectionParent(e){let t=e.elem;this._orderedSplitJoinSections.forEach(e=>{e.elem!==t&&e.elem.contains(t)&&e.show()})}}const ut=["userCanceled","operationCanceled"];class ht{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 ze,this.isSplitJoinForm=Object(i.c)("dust-var-isSplitJoinForm"),this.isSmartLockEnabled="true"===Object(i.c)("dust-var-isSmartLockEnabled"),this.isMobile=Object(i.c)("dust-var-isMobile"),this.joinBtnProvider=Object(i.c)("dust-var-joinBtnProvider"),this.isInlineError=Object(i.c)("dust-var-isInlineError"),this.isSplitJoinForm&&(this.splitJoin=this._initSplitJoinForm()),this._attachEventListeners(),this._initThirdPartySignup(),t=[this.joinForm],i.d.onload(()=>{if(window.IntersectionObserver){const e=new IntersectionObserver(ke,{threshold:1});t.forEach(t=>e.observe(t))}else ke(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.isSmartLockEnabled||this.joinBtnProvider}get isThirdPartyProfileCardVisible(){const e=at(Ne.JOIN_FORM.PROFILE_CARD,this.joinForm);return e&&!e.classList.contains(Ae.HIDDEN)}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"],n=e||t;let i=null;return n&&(i={input:`#${n.id}`,label:`[for="${n.id}"]`}),Object.defineProperty(this,"emailHandle",{value:i}),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]=ve(t)),this.inputNameToErrors[t.name].length&&e.push({inputName:t.name,errorMessageKeys:this.inputNameToErrors[t.name]})}),e}set location(e){this._location=e}_attachEventListeners(){let e;var t;this.joinForm.addEventListener("change",e=>this._handleChange(e)),this.joinForm.addEventListener("input",e=>this._handleInput(e)),this.joinForm.addEventListener("focusout",e=>this._handleFocusOut(e)),this.joinForm.addEventListener("submit",e=>this._handleSubmit(e)),this.joinForm.addEventListener("invalid",t=>{t.preventDefault(),e||(e=window.setTimeout(()=>{e=null,this._handleInvalidSubmit(t)},0))},!0),this.joinForm.querySelector("[type=submit]").addEventListener("click",e=>{Je({controlName:this.isSplitJoinForm&&this.splitJoin.isLastStep?je.CONTINUE_BUTTON:je.AGREE_AND_JOIN_BUTTON,interactionType:Fe.SHORT_PRESS})}),this.joinForm.querySelector(Ne.JOIN_FORM.PROFILE_CARD)?(this.joinForm.querySelector(Ne.PROFILE_CARD.EDIT_ICON).addEventListener("click",()=>this._showPhotoModal()),this.joinForm.querySelector(Ne.PROFILE_CARD.EDIT_PHOTO.CANCEL_ICON).addEventListener("click",()=>this._hidePhotoModal()),this.joinForm.querySelector(Ne.PROFILE_CARD.NOT_YOU).addEventListener("click",()=>{this.location.reload(),Je({controlName:je.PROFILE_CARD_NOT_YOU_BUTTON,interactionType:Fe.SHORT_PRESS})}),this.joinForm.querySelector(Ne.PROFILE_CARD.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",()=>{W(t),Je({controlName:je.ERROR_ALERT_DISMISS_BUTTON,interactionType:Fe.SHORT_PRESS})}),this.joinForm.addEventListener(tt.globalError,e=>{xe(this.joinForm,e.detail.globalErrorMessage)})),this.joinForm.addEventListener(tt.splitJoinFormStepChange,e=>{let t=e.detail.splitJoinStepNum;this._handleSplitJoinStepChange(t)})}_thirdPartyJoinErrorAlert(e){switch(e){case Ce.FACEBOOK:it(this.joinForm,Object(i.c)("i18n_third_party_join_error-message-facebook"));break;case Ce.GOOGLE:it(this.joinForm,Object(i.c)("i18n_third_party_join_error-message-google"));break;case Ce.WECHAT:it(this.joinForm,Object(i.c)("i18n_third_party_join_error-message-wechat"))}}_handleInvalidSubmit(){const e=this.inputsWithErrors;return!!e.length&&(e.forEach(e=>{const t=this.inputNameToElement[e.inputName];Be(t,this.isInlineError),this.isInlineError&&xe(t,Object(i.c)(e.errorMessageKeys[0]),this.isInlineError)}),this.isInlineError||xe(this.joinForm,Object(i.c)(e[0].errorMessageKeys[0])),this.inputNameToElement[e[0].inputName].focus(),Me({trackingCode:De.ALERT.VALIDATION_FAILURE_ALERT,activityType:Pe.CLICK,inputsWithErrors:e}),t=this.joinForm,n=e,i.d.dispatchCustomEvent(t,tt.validationFailed,n),!0);var t,n}_handleChange(e){const t=e.target;be(t)&&(t.value?t.classList.add("input__input--has-text"):t.classList.remove("input__input--has-text"),this.inputNameToErrors[t.name]=ve(t),0===this.inputNameToErrors[t.name].length&&(V(t,this.isInlineError),this.isInlineError&&W(t,this.isInlineError)))}_handleFocusOut(e){if(!this.isInlineError)return;const t=e.target;be(t)&&(this.inputNameToErrors[t.name]=ve(t),this.inputNameToErrors[t.name].length&&(Be(t,this.isInlineError),xe(this.isInlineError?t:this.joinForm,Object(i.c)(this.inputNameToErrors[t.name][0]),this.isInlineError)))}_handleInput(e){if(!this.isInlineError)return;const t=e.target;be(t)&&(V(t,this.isInlineError),W(t,this.isInlineError))}_handleSubmit(e){if(e.preventDefault(),this.isInlineError?$(this.joinForm):W(this.joinForm),this._handleInvalidSubmit())return;if(this.isSplitJoinForm&&!this.splitJoin.isLastStep&&!this.isThirdPartyProfileCardVisible)return void this._handleSplitJoinSubmit();var t;t=this.joinForm,i.d.dispatchCustomEvent(t,tt.validationSucceeded);const n=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n={};return Array.from(e.elements).forEach(e=>{if(be(e)){const t=e.name,i=e.value;i&&("real-name"===t?n=Ve({},n,function(e){let n,i;switch(e.length){case 2:i=e.substring(0,1),n=e.substring(1);break;case 3:const r=e.substring(0,2);We.has(r)?(i=r,n=e.substring(2)):(i=e.substring(0,1),n=e.substring(1));break;case 4:i=e.substring(0,2),n=e.substring(2);break;default:throw new Error("Expected Real Name to be between 2-4 characters.",t)}return{firstName:n,lastName:i}}(i)):n[Te[t]]=i)}}),n.source=Object(i.c)("dust-var-source")||null,n.redirectInfo=function(){const e=Object(i.c)("dust-var-postOnboardingRedirectUrl");return e?{postOnboardingRedirectUrl:e}:null}(),n.invitationInfo=function(){const e=Object(i.c)("dust-var-invitationId"),t=Object(i.c)("dust-var-sharedKey");return e||t?{invitationId:e,sharedKey:t}:null}(),n.sendConfirmationEmail=Object(i.c)("dust-var-sendConfirmationEmail"),"enabled"===Object(i.c)("dust-var-fpLixTreatment")&&(n.fpData=function(){let e="default";const t=new $e;try{e=JSON.stringify(t.getFingerprintData())}catch(t){e="error while fetching the fingerprinting data : "+t}return e}()),n=function(e,t){return Ve({},e,n)}(t)}(this.joinForm,this.thirdPartyUserInfo);this._sendCreateAccountRequest(this.joinForm,n)}_handleSplitJoinSubmit(){this._hideGoogleSmartLock(),this._hideThirdPartyJoinContainer(),this.splitJoin.nextStep()}_resetSplitJoinForm(){this._resetThirdPartyJoin(),this.splitJoin.firstStep()}_resetThirdPartyJoin(){this.isSmartLockEnabled?this._showGoogleSmartLock():this.joinBtnProvider&&this._showThirdPartyJoinContainer(),this.isThirdPartyProfileCardVisible&&this._toggleProfilecard()}_handleSplitJoinStepChange(e){const t=at('.join-form__form-body-agreement[data-is-not-yielded="true"]',this.joinForm);if(!t)return;const n=at(".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(i.c)("i18n_continue"):this._lastSubmitBtnText;this._lastSubmitBtnText=n.value,n.classList[this.splitJoin.isLastStep?"add":"remove"]("join-form__form-body-submit-button--no-agreement-text"),n.value=e,q.setElementContent(n,e)}}_isValidInput(e){const t=be(e);if(!this.isSplitJoinForm)return t;let n=e.parentNode;for(;!n.classList.contains(lt.SECTION);)n=n.parentNode;return t&&!n.classList.contains(lt.HIDDEN)}_getRequiredElemNames(){const e=["first-name","last-name"];let t=[];return this.inputs.forEach(n=>{n.hasAttribute("required")&&("real-name"===n.name?t=t.concat(e):t.push(n.name))}),t}_sendCreateAccountRequest(e,t){return function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};e.length&&e.forEach(e=>{const n=Te[e];if(!n||!t[n])throw new Error(n?`Missing required field ${n}.`:`No mapping exists for inputs named ${e}`)})}(this._getRequiredElemNames(),t),this.registrationServerClient.sendCreateAccountRequest(t).then(t=>{!function(e,t){i.d.dispatchCustomEvent(e,tt.accountCreationSucceeded,t)}(e,t.responseObj),Object(i.c)("dust-var-cancelOnboardingRedirect")||q.redirect(t.responseObj&&t.responseObj.redirectUrl||"/"),Me({trackingCode:De.JOIN_REQUEST.JOIN_REQUEST_SUCCESS,activityType:Pe.CLICK})}).catch(n=>{const r=(n.response||{}).responseObj||{};r.challengeUrl?(function(e,t){i.d.dispatchCustomEvent(e,tt.accountCreationChallenged,t)}(e,r),new et(r.challengeUrl).showChallenge().then(n=>{!function(e){i.d.dispatchCustomEvent(e,tt.challengeSucceeded)}(e),t.submissionId=r.submissionId,t.resolvedChallengeUrl=n,t.requestSignature=r.requestSignature,this._sendCreateAccountRequest(e,t)}).catch(t=>{"softFail"===t?function(e){i.d.dispatchCustomEvent(e,tt.challengeClosed)}(e):function(e,t){i.d.dispatchCustomEvent(e,tt.challengeFailed,t)}(e,t),it(this.joinForm,Object(i.c)("i18n_server_generic_error"))})):(function(e,t){i.d.dispatchCustomEvent(e,tt.accountCreationFailed,t)}(e,r),it(e,r.translatedMessage),this.isSplitJoinForm&&!this.isThirdPartyProfileCardVisible?this._resetSplitJoinForm():this._resetThirdPartyJoin()),function(e,t){if(Me({trackingCode:De.JOIN_REQUEST.JOIN_REQUEST_FAILURE,activityType:Pe.CLICK,customData:e}),!t)return;const n=t.thirdPartyProvider;var i,r=Pe.CLICK;switch(n){case Ce.FACEBOOK:i=De.JOIN_REQUEST.JOIN_REQUEST_FAILURE_WITH_FACEBOOK;break;case Ce.GOOGLE:i=De.JOIN_REQUEST.JOIN_REQUEST_FAILURE_WITH_GOOGLE;break;default:i=De.JOIN_REQUEST.JOIN_REQUEST_FAILURE_WITH_GOOGLE_ONE_TAP}Me({activityType:r,trackingCode:i})}(r,t.thirdPartyCredentials)})}_initThirdPartySignup(){this.isSmartLockEnabled?this._initSmartLock():this.joinBtnProvider&&(this.thirdPartyJoinButton=this._initThirdPartyJoinButton())}_initSmartLock(){return new Promise((e,t)=>{if(window.googleyolo)return e(window.googleyolo);const n=Object(i.c)("dust-var-smartLockScript");if(n){const i=document.createElement("script"),r=document.getElementsByTagName("script")[0];i.onerror=t,i.src=q.sanitizeUrl(n),r.parentNode.insertBefore(i,r),window.onGoogleYoloLoad=(t=>(t.setTimeouts(15e3),this._renderGoogleSmartLock(t),e(t)))}})}_renderGoogleSmartLock(e){e.hint({supportedAuthMethods:[we],supportedIdTokenProviders:[{uri:we,clientId:Le}],context:"signUp"}).catch(e=>{this.joinBtnProvider&&!ut.includes(e.type)&&(this.thirdPartyJoinButton=this._initThirdPartyJoinButton()),function(e){var t,n=Pe.VIEW;if("userCanceled"==e)Je({controlName:je.GOOGLE_ONE_TAP_CLOSE_BUTTON,interactionType:Fe.SHORT_PRESS});else{switch(e){case"operationCanceled":n=Pe.CLICK,t=De.GOOLE_ONE_TAP.GOOGLE_ONE_TAP_SIGNUP_IGNORED;break;case"noCredentialsAvailable":t=De.GOOLE_ONE_TAP.GOOGLE_ONE_TAP_NO_ACCOUNT;break;case"requestFailed":t=De.GOOLE_ONE_TAP.GOOGLE_ONE_TAP_REQUEST_FAIL_ERROR;break;case"illegalConcurrentRequest":t=De.GOOLE_ONE_TAP.GOOGLE_ONE_TAP_ILLEGAL_REQUEST_ERROR;break;case"initializationError":t=De.GOOLE_ONE_TAP.GOOGLE_ONE_TAP_INITIALIZATION_ERROR;break;case"configurationError":t=De.GOOLE_ONE_TAP.GOOGLE_ONE_TAP_CONFIGURATION_ERROR;break;default:t=De.GOOLE_ONE_TAP.GOOGLE_ONE_TAP_ERROR}Me({activityType:n,trackingCode:t})}}(e.type)}).then(e=>{e&&(this._parseThirdPartyUserInfo(e),this.renderUserDetails(),Je({controlName:je.GOOGLE_ONE_TAP_SIGNUP_BUTTON,interactionType:Fe.SHORT_PRESS}))})}_initSplitJoinForm(){return new dt(this.joinForm)}_initThirdPartyJoinButton(){if(this.isSplitJoinForm&&!this.splitJoin.isFirstStep)return;const e=new qe(document.querySelector(Ge.THIRD_PARTY_CONTAINER));return e.onError=(e=>this._thirdPartyJoinErrorAlert(e)),e.onUserInfoFetch=(e=>{e.then(e=>{e&&(this._parseThirdPartyUserInfo(e),this.renderUserDetails())})}),e}_parseThirdPartyUserInfo(e){if(this.thirdPartyUserInfo=this.thirdPartyAccountFields,e.displayName){const t=e.displayName.split(" ");e.firstName=t[0],e.lastName=t.length>1?t[1]:"",e.profilePictureUrl=e.profilePicture,e.thirdPartyCredentials={googleUserIdToken:e.idToken}}else e.thirdPartyCredentials={thirdPartyProvider:this.joinBtnProvider};Object.keys(this.thirdPartyAccountFields).forEach(t=>{e[t]&&(this.thirdPartyUserInfo[t]=e[t])})}renderUserDetails(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];var t=this.thirdPartyUserInfo;const n=t.phoneticFirstName,i=t.phoneticLastName,r=t.firstName,o=t.lastName,s=t.id,a=t.profilePictureUrl;let l;this._setPropertyValue(Ne.JOIN_FORM.FIRST_NAME_INPUT,r),this._setPropertyValue(Ne.JOIN_FORM.LAST_NAME_INPUT,o),this._setPropertyValue(Ne.JOIN_FORM.PHONETIC_FIRST_NAME_INPUT,n),this._setPropertyValue(Ne.JOIN_FORM.PHONETIC_LAST_NAME_INPUT,i),this.emailHandle&&(this._setPropertyValue(this.emailHandle.input,s),l=at(this.emailHandle.input,this.joinForm),this.inputNameToErrors[l.name]=ve(l)),(r&&o&&s&&l&&!this.inputNameToErrors[l.name].length||e&&a)&&(this._toggleProfilecard(),this.inputNameToElement.password.focus())}_renderProfilecard(){var e=this.thirdPartyUserInfo;const t=e.profilePictureUrl,n=e.firstName,i=e.lastName,r=e.id;st(Ne.PROFILE_CARD.PHOTO,Ie.SRC,t,this.joinForm),t||(ot(Ne.PROFILE_CARD.PHOTO,this.joinForm),ot(Ne.PROFILE_CARD.EDIT_ICON,this.joinForm)),n&&i&&(at(Ne.PROFILE_CARD.NAME,this.joinForm).innerText=`${n} ${i}`),r&&(at(Ne.PROFILE_CARD.EMAIL,this.joinForm).innerText=r)}_toggleProfilecard(){var e,t;this.isThirdPartyProfileCardVisible?(ot(Ne.JOIN_FORM.PROFILE_CARD,this.joinForm),this._showFieldsForThirdPartyProfileCard()):(this.isInlineError?$(this.joinForm):W(this.joinForm),rt(Ne.JOIN_FORM.PROFILE_CARD,this.joinForm),this._hideFieldsForThirdPartyProfileCard(),this._renderProfilecard()),e=this.joinForm,t=this.isThirdPartyProfileCardVisible,i.d.dispatchCustomEvent(e,tt.thirdPartyProfileCardToggled,{isProfileCardVisible:t})}_hideFieldsForThirdPartyProfileCard(){var e=this.thirdPartyUserInfo;const t=e.firstName,n=e.lastName,i=e.id;this.emailHandle&&i&&(ot(this.emailHandle.input,this.joinForm),ot(this.emailHandle.label,this.joinForm),function(e,t){const n=at(e,arguments.length>2&&void 0!==arguments[2]?arguments[2]:document.body);n&&n.removeAttribute(t)}(this.emailHandle.input,Ie.REQUIRED,this.joinForm)),!this.isSplitJoinForm&t&&n&&(ot(Ne.JOIN_FORM.FIRST_NAME_INPUT,this.joinForm),ot(Ne.JOIN_FORM.FIRST_NAME_LABEL,this.joinForm),ot(Ne.JOIN_FORM.LAST_NAME_INPUT,this.joinForm),ot(Ne.JOIN_FORM.LAST_NAME_LABEL,this.joinForm))}_showFieldsForThirdPartyProfileCard(){this.emailHandle&&(rt(this.emailHandle.input,this.joinForm),rt(this.emailHandle.label,this.joinForm),st(this.emailHandle.input,Ie.REQUIRED,"required",this.joinForm)),this.isSplitJoinForm||(rt(Ne.JOIN_FORM.FIRST_NAME_INPUT,this.joinForm),rt(Ne.JOIN_FORM.FIRST_NAME_LABEL,this.joinForm),rt(Ne.JOIN_FORM.LAST_NAME_INPUT,this.joinForm),rt(Ne.JOIN_FORM.LAST_NAME_LABEL,this.joinForm))}_showGoogleSmartLock(){this.isSmartLockEnabled&&this._renderGoogleSmartLock(window.googleyolo)}_hideGoogleSmartLock(){this.isSmartLockEnabled&&window.googleyolo&&window.googleyolo.cancelLastOperation()}_showThirdPartyJoinContainer(){this.joinBtnProvider&&this.thirdPartyJoinButton&&this.thirdPartyJoinButton.show()}_hideThirdPartyJoinContainer(){this.joinBtnProvider&&this.thirdPartyJoinButton&&this.thirdPartyJoinButton.hide()}_setPropertyValue(e,t){const n=at(e,this.joinForm);n&&t&&(n.value=t)}_showPhotoModal(){rt(Ne.PROFILE_CARD.EDIT_PHOTO.MODAL,this.joinForm)}_hidePhotoModal(){ot(Ne.PROFILE_CARD.EDIT_PHOTO.MODAL,this.joinForm)}_removePhoto(){this._hidePhotoModal(),st(Ne.PROFILE_CARD.PHOTO,Ie.SRC,"",this.joinForm),ot(Ne.PROFILE_CARD.PHOTO,this.joinForm),ot(Ne.PROFILE_CARD.EDIT_ICON,this.joinForm),this.thirdPartyUserInfo.profilePictureUrl="",Je({controlName:je.DELETE_PHOTO_BUTTON,interactionType:Fe.SHORT_PRESS})}}},function(e,t,n){"use strict";n.d(t,"a",function(){return a});var i=n(0);const r=31536e6,o="mobile-footer__more-lang-select",s="data-locale";class a{constructor(e){if(!e)throw Error("An element must be provided to LanguageSelector");this.el=e,this.el.addEventListener("click",this._handleLocaleButtonClick.bind(this)),this.el.querySelector(`.${o}`).addEventListener("change",e=>{e.target.classList.add(`${o}--hidden`),this._updateLocale(e.target.value)})}get location(){return this._location||window.location}set location(e){this._location=e}_handleLocaleButtonClick(e){this._updateLocale(e.target.getAttribute(s))}_updateLocale(e){if(!e)return;const t=this.getLangCookieString(e);null!==t&&(document.cookie=t),this.location.reload()}getLangCookieString(e){let t=null;if(null!==e){const n=e.toLocaleLowerCase().replace("_","-"),o=i.e.getDomain(document);let s=new Date;s.setTime(s.getTime()+r),t=`lang="v=2&lang=${n}";path=/;domain=${o};expires=${s.toUTCString()}`}return t}}},function(e,t,n){"use strict";var i=n(1),r=n(0),o=n(2),s=n(4),a=n.n(s);const l=i.c.splitJoinFormStepChange,c=i.c.accountCreationChallenged,d=i.c.accountCreationFailed,u=i.c.challengeClosed,h=i.c.challengeFailed,m=i.c.thirdPartyProfileCardToggled,p=i.c.globalError,g=e=>document.querySelector(e),f=Object.freeze({mobileFooter:".mobile-footer",mobileFooterLangList:".mobile-footer__lang-list",langSelector:".language-selector",joinForm:".join-form",joinFormBody:".join-form__form-body",signInContainer:".main__sign-in-container",profileSection:".main__profile-section",mainSubtitle:".main__subtitle",pageOverlay:".page__overlay",legalAgreement:".join-form__form-body-agreement",submitBtn:"#join-form-submit",main:".main"}),_=Object.freeze({hidden:"hidden",hiddenLegalAgreement:"join-form__form-body-agreement--is-hidden",joinFormBodyWithProfileCard:"join-form__form-body--with-profile-card",legalAgreementIsAnimatingOutRight:"join-form__form-body-agreement--is-animating-out-right",legalAgreementIsAnimatingInRight:"join-form__form-body-agreement--is-animating-in-right",legalAgreementIsAnimatingOutLeft:"join-form__form-body-agreement--is-animating-out-left",mainIsAnimating:"main--is-animating",splitJoinSectionIsAnimatedOut:"join-form__form-input-container--is-animated-out",splitJoinSectionIsAnimatingIn:"join-form__form-input-container--is-animating-in",splitJoinSectionIsAnimatingOut:"join-form__form-input-container--is-animating-out",submitBtnIsAnimating:"join-form__form-body-submit-button--is-animating"});t.a=class{constructor(e){let t=e.globalWindow;this.window=t,this.isMobile=Object(r.c)("dust-var-isMobile"),this.isLegalAgreementOnStep2=Object(r.c)("dust-var-isLegalAgreementOnStep2"),this.languageSelector=this._initLangSelector(),this.joinForm=this._initJoinForm(),this.hasInlineErrors=Object(r.c)("dust-var-hasInlineErrors"),this.isOpendoorV2Part1=Object(r.c)("dust-var-isOpendoorV2Part1"),this.hasSplitJoinAnimations=Object(r.c)("dust-var-hasSplitJoinAnimations"),this.hasOpendoorv2CopyChanges=Object(r.c)("dust-var-hasOpendoorv2CopyChanges"),this.hasSplitPasswordAndEmail=Object(r.c)("dust-var-hasSplitPasswordAndEmail"),this.hasInlineErrors&&(this.toasts=new r.b),this._setupCustomEventListeners()}_initLangSelector(){return this.isMobile?new o.a(g(f.mobileFooterLangList)):new r.a(g(f.langSelector))}_initJoinForm(){const e=document.querySelector(".page");return e&&e.classList.remove("page--isLoading"),new i.a(g(f.joinForm))}_setupCustomEventListeners(){const e=this.hideChallenge.bind(this),t=this.showChallenge.bind(this),n=this.toggleProfileSection.bind(this),i=this.joinForm.joinForm;i.addEventListener(l,e=>{let t=e.detail.splitJoinStepNum;this._handleSplitJoinStepChange(t)}),i.addEventListener(c,t),i.addEventListener(u,e),i.addEventListener(h,e),i.addEventListener(d,e),i.addEventListener(m,n),this.hasInlineErrors&&i.addEventListener(p,e=>{let t=e.detail.globalErrorMessage;this.toasts.clearAllToasts(),this.toasts.trigger("error",t||Object(r.c)("i18n_server_generic_error"))})}_handleSplitJoinStepChange(e){const t=g(f.main),n=e=>{if(t.classList.remove(_.mainIsAnimating),e instanceof Error)throw e};if(t.classList.add(_.mainIsAnimating),0===e&&this._animateSectionIn(this.joinForm.splitJoin.sectionForCurrentStep).then(e=>{e.elem.querySelector("input").focus(),this.hasOpendoorv2CopyChanges||2!==this.joinForm.splitJoin.totalSplitJoinSections||g(f.signInContainer).classList.remove(_.hidden),n()}).catch(n),1===e){if(this.hasOpendoorv2CopyChanges||g(f.signInContainer).classList.add(_.hidden),this.isMobile&&this.toggleMobileFooter(!0),2===this.joinForm.splitJoin.totalSplitJoinSections)return void this._animateSectionIn(this.joinForm.splitJoin.sectionForCurrentStep).then(e=>{e.elem.querySelector("input").focus(),n()}).catch(n);this._animateInPasswordSection(this.joinForm.splitJoin.sectionForCurrentStep).then(e=>{e.elem.querySelector("input").focus(),n()}).catch(n)}2===e&&this._animateSectionIn(this.joinForm.splitJoin.sectionForCurrentStep).then(e=>{e.elem.querySelector("input").focus(),n()}).catch(n)}_animateInPasswordSection(e){let t;const n=e.elem,r=n.scrollHeight,o=`translateY(${r}px)`,s=g(f.legalAgreement),a=g(i.b.THIRD_PARTY_CONTAINER),l=g(f.joinFormBody),c=g(f.submitBtn),d=this.window,u=e=>(e.elem.style.transition="none",e.elem.style.transform="translateY(0)",e.elem.style.marginTop="",s.style.transition="none",s.style.transform="",a&&(a.style.transition="none",a.style.transform=""),c.style.transition="none",c.style.transform="translateY(0)",l.style.marginBottom="",this.window.setTimeout(()=>{c.style.transition="",s.style.transition=""},50),e);return n.style.marginTop=`-${r}px`,n.style.transform=o,s.style.transform=o,a&&(a.style.transform=o),c.style.transform=o,l.style.marginBottom=`${r}px`,new Promise((i,r)=>{if(!this.hasSplitJoinAnimations)return i(e);const o=d.setTimeout(()=>(n.removeEventListener("transitionend",t),r(e)),600);t=function(r){if(r.target===n&&"opacity"===r.propertyName)return d.clearTimeout(o),n.removeEventListener("transitionend",t),i(e)},n.addEventListener("transitionend",t)}).then(u).catch(u)}_animateSectionIn(e){const t=this.joinForm.splitJoin.isFirstStep,n=this.joinForm.splitJoin.totalSplitJoinSections;let i=this.joinForm.splitJoin.getSectionAtIndex(t?n-1:0).elem.scrollHeight;const r=e.elem.scrollHeight,o=r-i,s=this.window;let a;return this.toggleLegalAgreement(this.joinForm.splitJoin.isLastStep,o),this._animateSubmitButton(r,i),e.elem.classList.remove(_.splitJoinSectionIsAnimatedOut),e.elem.classList.add(_.splitJoinSectionIsAnimatingIn),this._animateSectionOut(this.joinForm.splitJoin.getSectionAtIndex(t?n-1:0)),new Promise((t,n)=>{if(!this.hasSplitJoinAnimations)return t(e);const i=s.setTimeout(()=>(e.elem.removeEventListener("transitionend",a),n(e)),600);a=function(n){if(n.target===e.elem&&"transform"===n.propertyName)return s.clearTimeout(i),e.elem.removeEventListener("transitionend",a),t(e)},e.elem.addEventListener("transitionend",a)})}_animateSectionOut(e){const t=this.window,n=()=>{e.elem.classList.remove(_.splitJoinSectionIsAnimatingOut),e.elem.classList.add(_.splitJoinSectionIsAnimatedOut)};let i;return e.elem.classList.remove(_.splitJoinSectionIsAnimatingIn),e.elem.classList.add(_.splitJoinSectionIsAnimatingOut),new Promise((n,r)=>{if(!this.hasSplitJoinAnimations)return n(e);const o=t.setTimeout(()=>(e.elem.removeEventListener("transitionend",i),r(e)),600);i=function(r){if(r.target===e.elem&&"transform"===r.propertyName)return t.clearTimeout(o),e.elem.removeEventListener("transitionend",i),n(e)},e.elem.addEventListener("transitionend",i)}).then(n).catch(n)}_animateSubmitButton(e,t){const n=e-t,i=g(f.submitBtn),r=g(f.legalAgreement).scrollHeight,o=g(f.joinFormBody);let s=n;const a=this.window;let l;const c=()=>{i.style.transition="none",i.style.transform="",i.style.marginTop="",i.classList.remove(_.submitBtnIsAnimating),o.style.marginBottom="",this.window.setTimeout(()=>{i.style.transition=""},50)};return i.classList.add(_.submitBtnIsAnimating),this.joinForm.splitJoin.isLastStep?s=this.isLegalAgreementOnStep2?r+n:n-r:this.joinForm.splitJoin.isFirstStep&&(s=this.isLegalAgreementOnStep2?n-r:n+r),s>0&&(i.style.marginTop=`-${s}px`,o.style.marginBottom=`${s}px`),i.style.transform=`translateY(${s}px)`,new Promise((e,t)=>{if(!this.hasSplitJoinAnimations)return e();const n=a.setTimeout(()=>(i.removeEventListener("transitionend",l),t()),600);l=function(t){if(t.target===i&&"transform"===t.propertyName)return a.clearTimeout(n),i.removeEventListener("transitionend",l),e()},i.addEventListener("transitionend",l)}).then(c).catch(c)}showChallenge(){this.isChallengeShown||(this.isMobile?this.hideJoinFormElems():this.showPageOverlay(),this.isChallengeShown=!0)}hideChallenge(){this.isChallengeShown&&(this.isMobile?this.showJoinFormElems():this.hidePageOverlay(),this.isChallengeShown=!1)}toggleProfileSection(e){let t=e.detail.isProfileCardVisible;if(void 0===t)throw new Error("an Object with isProfileCardVisible must be passed to toggleProfileSection");const n=g(f.profileSection),i=g(f.joinFormBody);t?n?n.classList.add(_.hidden):i.classList.add(_.joinFormBodyWithProfileCard):n?n.classList.remove(_.hidden):i.classList.remove(_.joinFormBodyWithProfileCard)}toggleMobileFooter(e){const t=g(f.mobileFooter);t&&(e?t.classList.add(_.hidden):t.classList.remove(_.hidden))}toggleLegalAgreement(){let e,t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;const i=g(f.submitBtn),o=g(f.legalAgreement),s=this.window,l=t?this.isLegalAgreementOnStep2?Object(r.c)("dust-var-i18nAgree"):Object(r.c)("dust-var-i18nContinue"):this.isLegalAgreementOnStep2?Object(r.c)("dust-var-i18nContinue"):Object(r.c)("dust-var-i18nAgree"),c=()=>{t?this.isLegalAgreementOnStep2||o.classList.add(_.hiddenLegalAgreement):this.isLegalAgreementOnStep2&&(o.classList.add(_.hiddenLegalAgreement),o.classList.remove(_.legalAgreementIsAnimatingOutRight)),o.style.marginTop=""};return t?this.isLegalAgreementOnStep2?(o.classList.remove(_.hiddenLegalAgreement),o.classList.add(_.legalAgreementIsAnimatingInRight)):(n&&(o.style.marginTop=n>0?`-${n}px`:`${Math.abs(n)}px`),o.classList.remove(_.hiddenLegalAgreement),o.classList.add(_.legalAgreementIsAnimatingOutLeft)):this.isLegalAgreementOnStep2?(o.classList.remove(_.hiddenLegalAgreement),o.classList.remove(_.legalAgreementIsAnimatingInRight),o.classList.add(_.legalAgreementIsAnimatingOutRight),n&&(o.style.marginTop=n>0?`-${n}px`:`${Math.abs(n)}px`)):(o.classList.remove(_.hiddenLegalAgreement),o.classList.remove(_.legalAgreementIsAnimatingOutLeft)),l&&(i.value=l,a.a.setElementContent(i,l)),new Promise((t,n)=>{if(!this.hasSplitJoinAnimations)return t();const i=s.setTimeout(()=>(o.removeEventListener("transitionend",e),n()),600);e=function(n){if(n.target===o&&"transform"===n.propertyName)return s.clearTimeout(i),o.removeEventListener("transitionend",e),t()},o.addEventListener("transitionend",e)}).then(c).catch(c)}hideJoinFormElems(){const e=g(f.signInContainer);this.joinForm.joinForm.querySelector(f.joinFormBody).classList.add(_.hidden),this.joinForm.joinForm.querySelector(f.mainSubtitle).classList.add(_.hidden),g(f.mobileFooter).classList.add(_.hidden),e.classList.add(_.hidden)}showJoinFormElems(){const e=g(f.signInContainer);this.joinForm.joinForm.querySelector(f.joinFormBody).classList.remove(_.hidden),this.joinForm.joinForm.querySelector(f.mainSubtitle).classList.remove(_.hidden),g(f.mobileFooter).classList.remove(_.hidden),e.classList.remove(_.hidden)}showPageOverlay(){g(f.pageOverlay).classList.remove(_.hidden)}hidePageOverlay(){g(f.pageOverlay).classList.add(_.hidden)}}},function(e,t,n){e.exports=function(){"use strict";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",n=["b","del","em","i","s","strong","sub","sup"],i=n.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"]),r=[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("|"),o="href|src",s="data:image/(?:gif|jpg|jpeg|png);base64,",a="https?|ftp|mailto|invalid";function l(){}function c(e,t){if(t=t||"log","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("&#?[a-zA-Z0-9]{1,10};");var d,u,h=(u=/[&<>"'\u0000\\=]/g,d={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","\0":"�","\\":"&#92;","=":"&#61;"},function(e){return null==e?null:e.toString().replace(u,function(e){return d[e]})}),m=function(){var e,n,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 r={nbsp:" ",lt:"<",gt:">",amp:"&",quot:'"'};return n="function"==typeof String.fromCodePoint?function(e){return String.fromCodePoint(e)}:function(e){return e<=65535?String.fromCharCode(e):"�"},function(o){return null==o?null:(o+"").replace(i,function(i,o,s,a){return o?(l=o,r.hasOwnProperty(l)?r[l]:(e.innerHTML="&"+l+";",c=e[t],r[l]=c,c)):s||a?n(parseInt(s||a,s?16:10)||65533):"�";var l,c})}}(),p=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)};function g(e){return/[<&]/.test(e)}var f,_=Array.prototype.forEach?function(e,t){Array.prototype.forEach.call(e,t)}:function(e,t){for(var n=0,i=e.length;n<i;n++)t(e[n],n)},E="[ \t\r\n]*",O="[ \t\r\n]+";function S(e){e=p(e)?e:[e];var t,n,l,c=0,d="<(?!/?";return d+="(?:",_(e,function(e,u){t=e.tags||i,n=e.attrs||r,l=e.checkUrlAttrs||!1,0!==u&&(d+="|"),d+="(?:"+t.join("|")+")",d+="(?:",d+=E,d+="|"+O,d+="(?:(?:",d+="(?:"+n+")(?:=([\"'])[^'\"<>]*\\"+ ++c+")?",l&&(d+="|(?:"+o+")=([\"'])(?:(?:"+a+")(?::|&#(?:58|x3a);)|(?:"+s+")|[/.#?]|&#(?:35|4[67]|63|x(?:2[3ef]|3f));)[^'\"<>]*\\"+ ++c),d+=")"+E+")+",d+=")"}),d+=")",d+="/?>)",new RegExp(d,"i")}function b(e){return S({tags:e=e||i,checkUrlAttrs:!0})}function T(e,t){var n=(t=t||{}).allowTags,i=!1!==t.hasCustomElementMarkup;return n?!b(n).test(e):i?!T.R_UNSAFE_CUSTOM_ELEMENT.test(e):!T.R_UNSAFE_HTML.test(e)}function v(e){return e.replace(/<[^>]*>|[<>'"&\\]/g,"")}function y(e,t,n){if(null==e)return null;e=e.toString();var i=t?function(e,t){var n={};return e.replace(/\{([^}]+)\}/g,function(e,i){var r,o=e;if(n.hasOwnProperty(i))return n[i];if(t.hasOwnProperty(i)){if(!((r="string"==typeof(o=t[i]))||o instanceof l||"number"==typeof o))throw new Error("Only strings, numbers, and jSecure types are allowed as placeholder replacements.");o=r?h(o):o.toString()}return n[i]=o,o})}(e,t):e,r=e;return g(i)&&!T(i,n)&&(i=v(i),c("Content contains non-whitelisted tags or attributes:\nContent: "+r,"error")),i}function L(e,t){for(var n=+t.length,i=0,r=e.length;i<n;i++)e[r++]=t[i];return e.length=r,e}T.R_UNSAFE_HTML=b(),T.R_UNSAFE_CUSTOM_ELEMENT=S([{tags:i,checkUrlAttrs:!0},{tags:[(f={tag:"li-icon",attrs:"active|a11y-text|animate|color|size|type"}).tag],attrs:[e,f.attrs].join("|"),checkUrlAttrs:!1}]);var w={option:[1,'<select multiple="multiple">',"</select>"],thead:[1,"<table>","</table>"],col:[2,"<table><colgroup>","</colgroup></table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:[0,"",""]};w.optgroup=w.option,w.tbody=w.tfoot=w.colgroup=w.caption=w.thead,w.th=w.td;var N=/<([\w:]+)/;function A(e,t){var n,i,r,o,s,a,l,c=t.createDocumentFragment(),d=[];for(s=0,l=e.length;s<l;s++)if((o=e[s])||0===o)if("string"==typeof o){for(r=r||c.appendChild(t.createElement("div")),n=(N.exec(o)||["",""])[1].toLowerCase(),R(r,(i=w[n]||w._default)[1]+o+i[2]),a=i[0];a--;)r.lastChild&&r.lastChild.nodeType===Node.ELEMENT_NODE&&(r=r.lastChild);L(d,r.childNodes),(r=c.firstChild).textContent=""}else L(d,o.nodeType?[o]:o);for(c.textContent="",o=d[s=0];o;)c.appendChild(o),o=d[++s];return c}var I=y,C=y;function R(e,n,i){var r=y(n,i);return g(r)?e.innerHTML=r:e[t]=r,r}function F(e,t){if(!(this instanceof F))return new F(e,t);(t=t||{}).allowTags=t.allowTags?t.allowTags.reduce(function(e,t){return e.concat(t)},[]):null,this._string=e,this._options=t}F.prototype=function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);return e}(new l,{toString:function(){var e=this._string,t=this._stringVal,n=e;return void 0!==t?t:(T(e,this._options)||(n=e,e=v(e),c("UnsafeString contains non-whitelisted tags or attributes.\nString: "+n,"error")),this._stringVal=e,e)}});var P=/ /g,j=/[\s\u0000<>"]|%00/,D=/\\/,U=/([.]|%2e){2}/i,k=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 J(e){var t=void 0;if("string"!=typeof e)return c("jSecure Warning: url must be a string","error"),"invalid://";if((t=e.trim()).indexOf(" ")>-1&&(c("jSecure Warning: url should not contain spaces: "+e,"warn"),t=t.replace(P,"+")),!k.test(t))return c("jSecure Error: URL should be absolute with allowed schemas, relative, a hash fragment or query string. "+e,"error"),"invalid://";if(j.test(t))return c("jSecure Error: not valid url character found in url: "+e,"error"),"invalid://";var n=t.split("?")[0];return D.test(n)||U.test(n)||U.test(decodeURI(n))?(c("jSecure Error: malicious data found in url path: "+n,"error"),"invalid://"):e}var M={redirect:function(e){window&&(window.location.href=e)}};return{ALLOWED_TAGS:i,FORMATTING_TAGS:n,htmlEncode:h,htmlUnencode:m,log:c,mk:function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];var r="",o=void 0,s=n.length;return e&&e.forEach(function(e,t){r+=e,t<s&&(o=n[t],r+=o instanceof F?o:h(o))}),C(r)},parseHTML:function(e,t){var n;if(t=t||document.implementation&&document.implementation.createHTMLDocument?document.implementation.createHTMLDocument(""):document,"string"==typeof e)n=A([e],t);else{if(!p(e))return e;n=A(e,t)}return L([],n.childNodes)},parseSelector:function(e){return"string"==typeof e&&/^(?:\s*(<[\w\W]+>)[^>]*)$/.test(e)?[]:e},processTemplate:I,reEncode:function(e){return h(m(e))},_redirector:M,redirect:function(e){var t=J(e);t===e&&M.redirect(t)},sanitizeHTML:C,sanitizeUrl:J,setElementContent:R,text:function(e){return c("jSecure.text() is deprecated. Please use jSecure.htmlEncode().","warn"),h(e)},unsafe:function(e){return e},UnsafeString:F}}()},function(e,t){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(e){"object"==typeof window&&(n=window)}e.exports=n},,function(e,t,n){"use strict";n.r(t);var i=n(3);window.addEventListener("load",()=>{new i.a({globalWindow:window})})}]);