1!function(){"use strict";const mobileToggle=document.querySelector(".site-header__mobile-toggle"),mobileDrawer=document.querySelector(".mobile-nav-drawer"),mobileOverlay=document.querySelector(".mobile-nav-overlay"),mobileClose=document.querySelector(".mobile-nav-close");function closeDrawer(){mobileDrawer.classList.remove("is-open"),mobileOverlay.classList.remove("is-open"),mobileDrawer.setAttribute("aria-hidden","true"),mobileToggle.setAttribute("aria-expanded","false"),document.body.style.overflow="",setTimeout(function(){mobileOverlay.style.display="none"},300)}function toggleMobileSubmenu(toggle){const li=toggle.closest("li"),submenu=li.querySelector(":scope > .mobile-nav__submenu, :scope > .mobile-nav__subsubmenu"),isOpen=li.classList.contains("is-open"),parentList=li.parentElement;parentList&&Array.prototype.forEach.call(parentList.children,function(siblingLi){siblingLi!==li&&siblingLi.classList.contains("is-open")&&function(li){const submenu=li.querySelector(":scope > .mobile-nav__submenu, :scope > .mobile-nav__subsubmenu"),toggle=li.querySelector(":scope > .mobile-nav__row > .mobile-nav__toggle");li.classList.remove("is-open"),toggle&&toggle.setAttribute("aria-expanded","false"),submenu&&(submenu.style.maxHeight=null),li.querySelectorAll(":scope .is-open").forEach(function(childLi){const childSubmenu=childLi.querySelector(":scope > .mobile-nav__submenu, :scope > .mobile-nav__subsubmenu"),childToggle=childLi.querySelector(":scope > .mobile-nav__row > .mobile-nav__toggle");childLi.classList.remove("is-open"),childToggle&&childToggle.setAttribute("aria-expanded","false"),childSubmenu&&(childSubmenu.style.maxHeight=null)})}(siblingLi)}),li.classList.toggle("is-open",!isOpen),toggle.setAttribute("aria-expanded",String(!isOpen)),submenu&&(submenu.style.maxHeight=isOpen?null:submenu.scrollHeight+"px");let ancestorLi=li.parentElement&&li.parentElement.closest("li");for(;ancestorLi;){const ancestorSubmenu=ancestorLi.querySelector(":scope > .mobile-nav__submenu, :scope > .mobile-nav__subsubmenu");ancestorSubmenu&&ancestorLi.classList.contains("is-open")&&(ancestorSubmenu.style.maxHeight="none"),ancestorLi=ancestorLi.parentElement&&ancestorLi.parentElement.closest("li")}}mobileToggle&&mobileDrawer&&(mobileToggle.addEventListener("click",function(){mobileDrawer.classList.add("is-open"),mobileOverlay.style.display="block",setTimeout(function(){mobileOverlay.classList.add("is-open")},10),mobileDrawer.setAttribute("aria-hidden","false"),mobileToggle.setAttribute("aria-expanded","true"),document.body.style.overflow="hidden"}),mobileClose&&mobileClose.addEventListener("click",closeDrawer),mobileOverlay&&mobileOverlay.addEventListener("click",closeDrawer)),document.querySelectorAll(".mobile-nav__toggle").forEach(function(toggle){toggle.addEventListener("click",function(){toggleMobileSubmenu(toggle)})}),document.querySelectorAll(".mobile-nav__item.has-children").forEach(function(li){const row=li.querySelector(":scope > .mobile-nav__row");if(!row)return;const label=row.querySelector(":scope > a"),toggle=row.querySelector(":scope > .mobile-nav__toggle");label&&toggle&&label.addEventListener("click",function(e){e.preventDefault(),toggleMobileSubmenu(toggle)})});const faModal=document.getElementById("find-advisor-modal");if(faModal){let faLastFocus=null;function openFaModal(trigger){faLastFocus=trigger||document.activeElement,faModal.classList.add("is-open"),faModal.classList.add("fa-modal--pristine"),faModal.setAttribute("aria-hidden","false"),document.body.classList.add("fa-modal-open"),mobileDrawer&&mobileDrawer.classList.contains("is-open")&&closeDrawer(),document.body.style.overflow="hidden";const focusable=faModal.querySelector(".fa-modal__close");focusable&&setTimeout(function(){focusable.focus()},50),bindOptionClicks(faModal),setTimeout(function(){bindOptionClicks(faModal)},500),setTimeout(function(){bindOptionClicks(faModal)},1500)}function closeFaModal(){faModal.classList.remove("is-open"),faModal.setAttribute("aria-hidden","true"),document.body.classList.remove("fa-modal-open"),document.body.style.overflow="",faLastFocus&&"function"==typeof faLastFocus.focus&&faLastFocus.focus()}document.addEventListener("click",function(e){const trigger=e.target.closest('[data-modal="find-advisor"], a[href="/find-an-advisor"], a[href$="/find-an-advisor/"]');trigger&&(e.preventDefault(),openFaModal(trigger))}),faModal.addEventListener("click",function(e){e.target.closest("[data-modal-close]")&&(e.preventDefault(),closeFaModal());var navBtn=e.target.closest(".hsfc-Button, .hsfc-NavigationRow__Buttons");navBtn&&(bumpStepCounterOptimistically(/previous|back/i.test(navBtn.textContent||"")?-1:1),faModal.classList.remove("fa-modal--pristine"),setTimeout(function(){bindOptionClicks(faModal)},300),setTimeout(function(){bindOptionClicks(faModal)},800))}),document.addEventListener("keydown",function(e){"Escape"===e.key&&faModal.classList.contains("is-open")&&closeFaModal()}),window.addEventListener("message",function(event){if(!event.data)return;const type=event.data.type||event.data.eventName||"";if("hsFormCallback"===type||0===String(type).indexOf("hs-form")){const dialog=faModal.querySelector(".fa-modal__dialog");dialog&&dialog.scrollTo({top:0,behavior:"smooth"})}});var faProgressObserver=new MutationObserver(function(){faModal.classList.contains("fa-modal--pristine")&&faModal.classList.remove("fa-modal--pristine")}),faFillWatcher=new MutationObserver(function(){var fill=faModal.querySelector(".hs-progress-bar-fill, .hs-form-multi-step-progress-bar-fill, .hsfc-ProgressBar__Progress > div");if(fill){faFillWatcher.disconnect(),faProgressObserver.observe(fill,{attributes:!0,attributeFilter:["style"]});var progressBar=faModal.querySelector('[data-hsfc-id="ProgressBar"], .hs-progress-bar, .hs-form-multi-step-progress-bar');progressBar&&progressBar.parentNode&&progressBar.parentNode.insertBefore(progressBar,progressBar.parentNode.firstChild)}});function syncOptionStates(root){root.querySelectorAll(".hsfc-RadioFieldGroup__Options input, .hsfc-CheckboxFieldGroup__Options input").forEach(function(input){var label=null;if(input.id&&(label=root.querySelector('label[for="'+CSS.escape(input.id)+'"]')),label||(label=input.closest("label")),!label){var row=input.closest("li, .hsfc-FieldLabel, div");row&&(label=row.classList.contains("hsfc-FieldLabel")?row:row.querySelector(".hsfc-FieldLabel"))}label&&label.classList.toggle("is-selected",input.checked)})}function injectPostSubmitExtras(root){var postSubmit=root.querySelector(".hsfc-PostSubmit");
1if(postSubmit&&!postSubmit._faExtrasAdded){postSubmit._faExtrasAdded=!0;var content=postSubmit.querySelector(".hsfc-Step__Content");if(content){var bar=document.createElement("div");bar.className="hsfc-ProgressBar fa-postsubmit-progress",bar.innerHTML='<div class="hsfc-ProgressBar__Text">100% Complete</div><div class="hsfc-ProgressBar__Progress"><div></div></div>',content.insertBefore(bar,content.firstChild);var richTextRow=postSubmit.querySelector(".hsfc-RichText");if(richTextRow=richTextRow?richTextRow.closest(".hsfc-Row"):null){var btn=document.createElement("button");btn.type="button",btn.className="fa-start-over",btn.textContent="Start Over",btn.addEventListener("click",function(){window.location.reload()}),richTextRow.insertAdjacentElement("afterend",btn)}}}}function bindOptionClicks(root){root.querySelectorAll(".hsfc-RadioFieldGroup__Options, .hsfc-CheckboxFieldGroup__Options").forEach(function(list){list._faBound||(list._faBound=!0,list.addEventListener("click",function(){setTimeout(function(){syncOptionStates(root)},0),setTimeout(function(){syncOptionStates(root)},60)}))}),syncOptionStates(root),updateNavButtons(root),updateStepCounter(root),convertPlaceholderDefaults(root),injectPostSubmitExtras(root)}function convertPlaceholderDefaults(root){root.querySelectorAll('.hsfc-TextInput, input[type="text"], input[type="tel"], input[type="number"]').forEach(function(input){if(!input._faPlaceholderFixed){var val=(input.value||"").trim();val&&/^(e\.?g\.?|ex\.?|example)[\s:.]/i.test(val)&&(input._faPlaceholderFixed=!0,input.placeholder||(input.placeholder=val),input.value="",input.dispatchEvent(new Event("input",{bubbles:!0})),input.dispatchEvent(new Event("change",{bubbles:!0})))}})}function updateNavButtons(root){root.querySelectorAll(".hsfc-Step").forEach(function(step){if(null!==step.offsetParent){var options=step.querySelectorAll(".hsfc-RadioFieldGroup__Options input, .hsfc-CheckboxFieldGroup__Options input");if(options.length){var hasSelection=Array.prototype.some.call(options,function(i){return i.checked});step.querySelectorAll(".hsfc-Button").forEach(function(btn){/previous|back/i.test(btn.textContent||"")||btn.classList.toggle("fa-btn-pending",!hasSelection)})}}})}faFillWatcher.observe(faModal,{childList:!0,subtree:!0});var faStepCounterState={current:1,total:1};function paintStepCounter(root,text){var visibleStep=null;if(root.querySelectorAll(".hsfc-Step").forEach(function(s){null!==s.offsetParent&&(visibleStep=s)}),!visibleStep)return null;var navRow=visibleStep.querySelector(".hsfc-NavigationRow");if(!navRow)return null;var counter=navRow.parentNode.querySelector(":scope > .fa-step-counter");return counter||((counter=document.createElement("p")).className="fa-step-counter",navRow.insertAdjacentElement("afterend",counter)),counter.textContent!==text&&(counter.textContent=text),counter}function bumpStepCounterOptimistically(delta){faStepCounterState.current=Math.min(Math.max(faStepCounterState.current+delta,1),faStepCounterState.total),paintStepCounter(faModal,faStepCounterState.current+" / "+faStepCounterState.total)}var faStepCounterTimer=null;function updateStepCounter(root){clearTimeout(faStepCounterTimer),faStepCounterTimer=setTimeout(function(){root.querySelectorAll(".hsfc-Step").forEach(function(step){if(null!==step.offsetParent){var bar=step.querySelector('[role="progressbar"]');if(bar){var match=(bar.getAttribute("title")||bar.getAttribute("aria-valuetext")||"").match(/(\d+)\s*of\s*(\d+)/i);match&&(faStepCounterState.current=parseInt(match[1],10),faStepCounterState.total=parseInt(match[2],10),paintStepCounter(root,match[1]+" / "+match[2]))}}})},30)}faModal.addEventListener("change",function(){syncOptionStates(faModal),updateNavButtons(faModal),updateStepCounter(faModal)}),new MutationObserver(function(){bindOptionClicks(faModal)}).observe(faModal,{childList:!0,subtree:!0})}const nlModal=document.getElementById("newsletter-modal");if(nlModal){let nlLastFocus=null;function openNlModal(trigger){nlLastFocus=trigger||document.activeElement,nlModal.classList.add("is-open"),nlModal.setAttribute("aria-hidden","false"),document.body.classList.add("fa-modal-open"),mobileDrawer&&mobileDrawer.classList.contains("is-open")&&closeDrawer(),document.body.style.overflow="hidden";const focusable=nlModal.querySelector(".fa-modal__close");focusable&&setTimeout(function(){focusable.focus()},50)}function closeNlModal(){nlModal.classList.remove("is-open"),nlModal.setAttribute("aria-hidden","true"),document.body.classList.remove("fa-modal-open"),document.body.style.overflow="",nlLastFocus&&"function"==typeof nlLastFocus.focus&&nlLastFocus.focus()}document.addEventListener("click",function(e){const trigger=e.target.closest('[data-modal="newsletter"]');trigger&&(e.preventDefault(),openNlModal(trigger))}),nlModal.addEventListener("click",function(e){e.target.closest("[data-modal-close]")&&(e.preventDefault(),closeNlModal())}),document.addEventListener("keydown",function(e){"Escape"===e.key&&nlModal.classList.contains("is-open")&&closeNlModal()})}const siteHeader=document.querySelector(".site-header");siteHeader&&window.addEventListener("scroll",function(){siteHeader.classList.toggle("is-scrolled",window.scrollY>10)},{passive:!0}),document.querySelectorAll('a[href^="#"]').forEach(function(anchor){anchor.addEventListener("click",function(e){const target=document.querySelector(this.getAttribute("href"));target&&(e.preventDefault(),target.scrollIntoView({behavior:"smooth",block:"start"}))})});const currentPath=window.location.pathname;document.querySelectorAll(".site-header__nav a").forEach(function(link){link.getAttribute("href")===currentPath&&link.classList.add("active-link")}),document.querySelectorAll(".site-header__nav > ul > li.has-children > a").forEach(function(link){link.addEventListener("click",function(e){e.preventDefault()})});const backToTopBtn=document.querySelector(".back-to-top");backToTopBtn&&(window.addEventListener("scroll",function(){backToTopBtn.classList.toggle("is-visible",window.scrollY>400)},{passive:!0}),backToTopBtn.addEventListener("click",function(){window.scrollTo({top:0,behavior:"smooth"})})),document.querySelectorAll("[data-copy-link]").forEach(function(btn
1){btn.addEventListener("click",function(){var url=btn.getAttribute("data-copy-link"),restoreIcon=btn.innerHTML;function showCopied(){btn.innerHTML='<svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><path d="M4 12l5 5L20 6"/></svg>',setTimeout(function(){btn.innerHTML=restoreIcon},1500)}if(navigator.clipboard&&navigator.clipboard.writeText)navigator.clipboard.writeText(url).then(showCopied);else{var tempInput=document.createElement("input");tempInput.value=url,document.body.appendChild(tempInput),tempInput.select(),document.execCommand("copy"),document.body.removeChild(tempInput),showCopied()}})})}(); 2//# sourceURL=https://3388819.fs1.hubspotusercontent-na1.net/hubfs/3388819/hub_generated/template_assets/1/217234558744/1790875497506/template_main.js
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.