1document.addEventListener("DOMContentLoaded",function(){var timeoutId,offcanvasElement=document.getElementById("offcanvasRight"),navbarToggler=document.getElementById("site-header-navbar-toggler");function disableBodyScroll(){var scrollbarWidth=function(){var scrollDiv=document.createElement("div");scrollDiv.style.visibility="hidden",scrollDiv.style.overflow="scroll",scrollDiv.style.msOverflowStyle="scrollbar",document.body.appendChild(scrollDiv);var innerDiv=document.createElement("div");scrollDiv.appendChild(innerDiv);var scrollbarWidth=scrollDiv.offsetWidth-innerDiv.offsetWidth;return document.body.removeChild(scrollDiv),scrollbarWidth}();timeoutId=setTimeout(function(){document.body.style.overflowY="hidden",navbarToggler.style.marginRight=`${20+scrollbarWidth}px`},350)}offcanvasElement.addEventListener("show.bs.offcanvas",function(){navbarToggler.classList.add("active"),disableBodyScroll()}),offcanvasElement.addEventListener("hide.bs.offcanvas",function(){navbarToggler.classList.remove("active"),clearTimeout(timeoutId),document.body.style.overflowY="",navbarToggler.style.marginRight="20px"})}),document.addEventListener("DOMContentLoaded",function(){const videoModal=document.getElementById("videoPopupsModal");if(!videoModal)return;const videoIframe=videoModal.querySelector("iframe");videoIframe&&(videoModal.addEventListener("show.bs.modal",function(event){const trigger=event.relatedTarget;if(!trigger)return;const embedUrl=function(videoUrl){if(!videoUrl)return"";try{const url=new URL(videoUrl),hostname=url.hostname.replace(/^www\./,"").toLowerCase();let videoId="";if("youtu.be"===hostname)videoId=url.pathname.split("/").filter(Boolean)[0];else if("youtube.com"===hostname||"m.youtube.com"===hostname||"youtube-nocookie.com"===hostname){if("/watch"===url.pathname)videoId=url.searchParams.get("v");else{const pathParts=url.pathname.split("/").filter(Boolean),videoTypeIndex=pathParts.findIndex(function(part){return["embed","shorts","live"].includes(part)});-1!==videoTypeIndex&&(videoId=pathParts[videoTypeIndex+1])}if(videoId)return"https://www.youtube-nocookie.com/embed/"+encodeURIComponent(videoId)+"?autoplay=1&rel=0"}if("vimeo.com"===hostname||hostname.endsWith(".vimeo.com")){const vimeoMatch=url.pathname.match(/(?:video\/)?(\d+)/);if(vimeoMatch)return"https://player.vimeo.com/video/"+encodeURIComponent(vimeoMatch[1])+"?autoplay=1"}}catch(error){return""}return""}(trigger.getAttribute("data-video-url")||trigger.getAttribute("data-vimeo-url"));embedUrl?videoIframe.src=embedUrl:event.preventDefault()}),videoModal.addEventListener("hidden.bs.modal",function(){videoIframe.src=""}),document.addEventListener("keydown",function(event){const trigger=event.target.closest('[role="button"][data-bs-target="#videoPopupsModal"]');!trigger||"Enter"!==event.key&&" "!==event.key||(event.preventDefault(),trigger.click())}))}),document.addEventListener("DOMContentLoaded",function(){document.querySelectorAll(".dropdown-toggle").forEach(function(element){element.addEventListener("click",function(e){if(window.innerWidth>=992){var url=this.getAttribute("href");url&&(window.location.href=url,e.preventDefault()),e.stopPropagation()}}),element.addEventListener("click",function(e){window.innerWidth>=992&&(this.classList.contains("show")?this.nextElementSibling.classList.remove("show"):this.nextElementSibling.classList.add("show"),e.stopPropagation())})})});let lastScroll=0;const body=document.body;window.addEventListener("scroll",function(){const currentScroll=window.scrollY;currentScroll>lastScroll&&!body.classList.contains("scrolling-down")?body.classList.add("scrolling-down"):currentScroll<lastScroll&&body.classList.contains("scrolling-down")&&body.classList.remove("scrolling-down"),lastScroll=currentScroll<=0?0:currentScroll}),document.addEventListener("DOMContentLoaded",function(){const clientPortalLink=document.getElementById("ClientPortalDropdown");clientPortalLink?(clientPortalLink.removeAttribute("href"),clientPortalLink.classList.add("no-href"),console.log("Client Portal link href removed and class no-href added")):console.error("Client Portal link not found")});
2//# sourceURL=https://468178.fs1.hubspotusercontent-na2.net/hubfs/468178/hub_generated/template_assets/1/154780849837/1789391325637/template_theme.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.