astraToggleSetupPro=function(e,t,a){var o,n,s,l=!1;if(0<(o="off-canvas"===e||"full-width"===e?(n=document.querySelectorAll("#ast-mobile-popup, #ast-mobile-header"),(s=t.classList.contains("ast-header-break-point")?document.querySelectorAll("#ast-mobile-header .main-header-menu-toggle"):document.querySelectorAll("#ast-desktop-header .main-header-menu-toggle")).length):t.classList.contains("ast-header-break-point")?(n=document.querySelectorAll("#ast-mobile-header"),(l=!(0<(o=(s=document.querySelectorAll("#ast-mobile-header .main-header-menu-toggle")).length)))?1:o):(n=document.querySelectorAll("#ast-desktop-header"),(s=document.querySelectorAll("#ast-desktop-header .main-header-menu-toggle")).length))||l)for(var r=0;r .menu-link, ul.main-header-menu .ast-menu-toggle"):n[c].querySelectorAll("ul.main-header-menu .ast-menu-toggle")).length)for(var d=0;d #ast-desktop-header .ast-desktop-header-content"),l=(n=null!=n&&""!==n?n.querySelector(".main-header-menu-toggle"):document.querySelector("#masthead > #ast-desktop-header .main-header-menu-toggle"),document.querySelector("#masthead > #ast-desktop-header .ast-desktop-header-content .main-header-bar-navigation"));if("desktop"===e.currentTarget.trigger_type)null!==l&&""!==l&&void 0!==l&&(astraToggleClass(l,"toggle-on"),l.classList.contains("toggle-on")?l.style.display="block":l.style.display=""),astraToggleClass(n,"toggled"),n.classList.contains("toggled")?(t.classList.add("ast-main-header-nav-open"),"dropdown"===a&&(s.style.display="block")):(t.classList.remove("ast-main-header-nav-open"),s.style.display="none");else{e=document.querySelectorAll("#masthead > #ast-mobile-header .main-header-bar-navigation"),l=(menu_toggle_all=document.querySelectorAll("#masthead > #ast-mobile-header .main-header-menu-toggle"),"0"),n=!1;if(null!==o.closest("#ast-fixed-header")&&(e=document.querySelectorAll("#ast-fixed-header > #ast-mobile-header .main-header-bar-navigation"),menu_toggle_all=document.querySelectorAll("#ast-fixed-header .main-header-menu-toggle"),l="0",n=!0),void 0===e[l])return!1;for(var r=e[l].querySelectorAll(".menu-item-has-children"),i=0;i{let a=t.querySelector(".ast-account-nav-menu");document.addEventListener("pointerup",function(e){(n||o&&document.querySelector("body").classList.contains("ast-header-break-point"))&&a&&!t.contains(e.target)&&(a.style.right="",a.style.left="")});var e=t.querySelector(".ast-header-account-link");e&&e.addEventListener("click",function(e){(n||o&&document.querySelector("body").classList.contains("ast-header-break-point"))&&(headerSelectionPosition=e.target.closest(".site-header-section"))&&(headerSelectionPosition.classList.contains("site-header-section-left")?(a.style.left=""===a.style.left?"-100%":"",a.style.right=""===a.style.right?"auto":""):(a.style.right=""===a.style.right?"-100%":"",a.style.left=""===a.style.left?"auto":""))})})},astraColorSwitcher={...astraAddon?.colorSwitcher,init:function(){this?.isInit&&(this.switcherButtons=document.querySelectorAll(".ast-builder-color-switcher .ast-switcher-button"),this.switcherButtons?.length)&&(this.switcherButtons?.forEach(e=>{e?.addEventListener("click",this.toggle)}),this.isDarkPalette)&&"system"===this.defaultMode&&this.detectSystemColorScheme()},detectSystemColorScheme:function(){null===this.getCookie("astraColorSwitcherState")&&window.matchMedia("(prefers-color-scheme: dark)").matches&&!this.isSwitched&&this.toggle()},toggle:function(e){e?.preventDefault();e=astraColorSwitcher;e.isSwitched=!e.isSwitched,e.setCookie("astraColorSwitcherState",e.isSwitched,90),e?.forceReload?window.location.reload():(e.switchPaletteColors(),e.switchIcon(),e.isDarkPalette&&e.handleDarkModeCompatibility())},switchPaletteColors:function(){(this.isSwitched?this?.palettes?.switched:this?.palettes?.default)?.forEach((e,t)=>{document.documentElement.style.setProperty("--ast-global-color-"+t,e)})},switchIcon:function(){this.switcherButtons?.forEach(a=>{var[o,n]=a?.querySelectorAll(".ast-switcher-icon");if(o&&n){let[e,t]=this.isSwitched?[n,o]:[o,n];a?.classList.add("ast-animate"),setTimeout(()=>{e?.classList.add("ast-current"),t?.classList.remove("ast-current")},100),setTimeout(()=>a?.classList.remove("ast-animate"),200)}o=this.isSwitched?"defaultText":"switchedText";a?.setAttribute("aria-label",a?.dataset?.[o]||"Switch color palette.")})},handleDarkModeCompatibility:function(){document.body.classList.toggle("astra-dark-mode-enable")},setCookie:(e,t,a)=>{var o=new Date;o.setTime(o.getTime()+24*a*60*60*1e3),document.cookie=`${e}=${t}; expires=${o.toUTCString()}; path=/`},getCookie:e=>{var t;for(t of document.cookie.split("; ")){var[a,o]=t.split("=");if(a===e)return o}return null}};var accountPopupTrigger=function(){if("undefined"!=typeof astraAddon&&"login"===astraAddon.hf_account_logout_action){var e,a=document.querySelectorAll(".ast-account-action-login");if(a.length){let t=document.querySelector("#ast-hb-account-login-wrap");t&&(e=document.querySelector("#ast-hb-login-close"),a.forEach(function(e){e.addEventListener("click",function(e){e.preventDefault(),t.classList.add("show")})}),e)&&e.addEventListener("click",function(e){e.preventDefault(),t.classList.remove("show")})}}};document.addEventListener("astPartialContentRendered",function(){accountMenuToggle(),accountPopupTrigger()}),window.addEventListener("load",function(){accountMenuToggle(),accountPopupTrigger(),astraColorSwitcher.init()}),document.addEventListener("astLayoutWidthChanged",function(){accountMenuToggle(),accountPopupTrigger()});(()=>{var e;function o(e){var t=(t=document.body.className).replace(e,"");document.body.className=t}function d(e){e.style.display="block",setTimeout(function(){e.style.opacity=1},1)}function n(e){e.style.opacity="",setTimeout(function(){e.style.display=""},200)}r="iPhone"==navigator.userAgent.match(/iPhone/i)?"iphone":"",e="iPod"==navigator.userAgent.match(/iPod/i)?"ipod":"",document.body.className+=" "+r,document.body.className+=" "+e;for(var t=document.querySelectorAll("a.astra-search-icon:not(.slide-search)"),a=0;t.length>a;a++)t[a].onclick=function(e){var t,a,o,n;if(e.preventDefault(),e=e||window.event,this.classList.contains("header-cover"))for(var s=document.querySelectorAll(".ast-search-box.header-cover"),c=astraAddon.is_header_builder_active||!1,r=0;r