"use strict";!function(t,n){var r=/:scope\b/gi;function i(e){var s=t[e];t[e]=function(e){var t=this,n=t.id||"qsid"+(new Date).getTime(),i=!t.id,o=r.test(e);try{return o&&(i&&(t.id=n),e=e.replace(r,"#"+n)),s.call(this,e)}finally{i&&(t.id=null)}}}function o(e){var t=n[e];n[e]=function(e){return t.call(this,e.replace(r,""))}}try{document.querySelector(":scope")}catch(e){i("querySelector"),i("querySelectorAll"),o("querySelector"),o("querySelectorAll")}}(Element.prototype,Document.prototype),[Element.prototype,Document.prototype,DocumentFragment.prototype].forEach(function(e){e.hasOwnProperty("append")||Object.defineProperty(e,"append",{configurable:!0,enumerable:!0,writable:!0,value:function(){var e=Array.prototype.slice.call(arguments),n=document.createDocumentFragment();e.forEach(function(e){var t=e instanceof Node;n.appendChild(t?e:document.createTextNode(String(e)))}),this.appendChild(n)}})}),"function"!=typeof NodeList.prototype.forEach&&(NodeList.prototype.forEach=Array.prototype.forEach),Element.prototype.matches||(Element.prototype.matches=Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector),Element.prototype.closest||(Element.prototype.closest=function(e){var t=this;if(!document.documentElement.contains(t))return null;do{if(t.matches(e))return t}while(null!==(t=t.parentElement||t.parentNode)&&1===t.nodeType);return null}),function(){function e(){this.options={menuToggleDuration:300},this.menuSidebarState="closed",this.isPreviewing=document.body.classList.contains("customize-previewing"),this.init()}var t,n;e.prototype.checkTouchScreen=function(){"ontouchstart"in document.documentElement?document.body.classList.add("ontouch-screen"):document.body.classList.add("not-touch-screen")},e.prototype.isMobile=function(){return!!(navigator.userAgent.match(/Android/i)||navigator.userAgent.match(/webOS/i)||navigator.userAgent.match(/iPhone/i)||navigator.userAgent.match(/iPad/i)||navigator.userAgent.match(/iPod/i)||navigator.userAgent.match(/BlackBerry/i)||navigator.userAgent.match(/Windows Phone/i))},e.prototype.initMenuSidebar=function(){const i=this;document.body.classList.contains("menu_sidebar_dropdown")||(e=document.getElementById("header-menu-sidebar"))&&document.body.append(e),document.addEventListener("customize_section_opened",function(e){"header_sidebar"===e.detail&&this.toggleMenuSidebar(!1)}.bind(this));var e=document.querySelectorAll(".menu-mobile-toggle"),e=(this.addEvent(e,"click",function(e){e.preventDefault(),this.toggleMenuSidebar()}.bind(this)),document.querySelectorAll("#header-menu-sidebar .close-panel, .close-sidebar-panel"));this.addEvent(e,"click",function(e){e.preventDefault(),this.closeMenuSidebar()}.bind(this)),this.addEvent(document,"click",function(e){if(document.body.classList.contains("is-menu-sidebar")){var t=document.getElementById("header-menu-sidebar"),n=document.querySelectorAll(".menu-mobile-toggle"),i=!1,o=(t.contains(e.target)||(i=!0),e.target.closest("#header-menu-sidebar")||e.target===t||(i=!0),!1);if(n.length)for(var s=0;s .sub-menu, .sub-lv-0");if(t.classList.contains("open-sub")){if(n.length)for(i=0;i a"),o=i.cloneNode(!0),s=(this.isPreviewing,document.createElement("span")),i=(s.classList.add("nav-toggle-icon"),s.innerHTML='',i.parentNode.insertBefore(s,i),n.querySelector(":scope > .sub-menu")),r=("1"!==Customify_JS.sidebar_menu_no_duplicator&&i.prepend(o),n.querySelectorAll(":scope > .sub-menu, .sub-lv-0"));if(r.length)for(var a=0;at/2?Customify_JS.is_rtl?(this.removeClass(i,"search-left"),this.addClass(i,"search-right")):(this.removeClass(i,"search-right"),this.addClass(i,"search-left")):Customify_JS.is_rtl?(this.removeClass(i,"search-right"),this.addClass(i,"search-left")):(this.removeClass(i,"search-left"),this.addClass(i,"search-right"))}},e.prototype.initSearchForm=function(){var e=document.querySelectorAll(".header-search_icon-item"),i=this;e.forEach(function(t){var e,n;t.classList.contains("js-added")||(i.addClass(t,"js-added"),i.removeClass(t,"active"),(e=t.querySelector(".search-icon")).removeEventListener("click",n=function(e){e.preventDefault();e=t.querySelector(".search-field");t.classList.contains("active")?(this.removeClass(t,"active"),e.focus()):(t.classList.add("active"),e.blur())}),i.addEvent(e,"click",n.bind(i)),i.addEvent(document,"click",function(e){t===e.target||t.contains(e.target)||i.removeClass(t,"active")}.bind(i)))}),i.searchFormAutoAlign()},e.prototype.wrapper=function(e,t){void 0===t&&(t="div");t=document.createElement(t);return e.parentNode.replaceChild(t,e),t.appendChild(e),t},e.prototype.responsiveTable=function(){for(var e,t=document.querySelectorAll(".entry-content table"),n=0;n .header-menu-sidebar"))&&t.remove(),this.initMobieSearchForm(),this.initMobileSubMenu(),this.insertMenuOverlayClass(),this.setupMobileItemAnimations(),this.initMenuSidebar(),this.initSearchForm(),console.log("header_change")),"Customify_Builder_Item_Search_Icon__render"===e.detail&&(this.initMobieSearchForm(),this.initSearchForm(),this.setupMobileItemAnimations())}.bind(this))},window.customify_is_mobile=function(){return e.isMobile()},window.Customify=new e,window.Customify.isMobile()&&(t=.01*window.innerHeight,n=.01*window.innerWidth,document.documentElement.style.setProperty("--vh",t+"px"),document.documentElement.style.setProperty("--vw",n+"px"),window.addEventListener("resize",function(){var e=.01*window.innerHeight,t=.01*window.innerWidth;document.documentElement.style.setProperty("--vh",e+"px"),document.documentElement.style.setProperty("--vw",t+"px")}))}(),function(){var e,t,n,i,o=document.getElementById("site-navigation-main-desktop");if(o&&void 0!==(e=o.getElementsByTagName("ul")[0])){for(e.setAttribute("aria-expanded","false"),-1===e.className.indexOf("nav-menu")&&(e.className+=" nav-menu"),n=0,i=(t=e.getElementsByTagName("a")).length;n a, .page_item_has_children > a");if("ontouchstart"in window)for(s=function(e){var t,n=this.parentNode;if(n.classList.contains("focus"))n.classList.remove("focus");else{for(e.preventDefault(),t=0;t