var getParents=function(e,t){Element.prototype.matches||(Element.prototype.matches=Element.prototype.matchesSelector||Element.prototype.mozMatchesSelector||Element.prototype.msMatchesSelector||Element.prototype.oMatchesSelector||Element.prototype.webkitMatchesSelector||function(e){for(var t=(this.document||this.ownerDocument).querySelectorAll(e),a=t.length;0<=--a&&t.item(a)!==this;);return-1e?(null!=o[a]&&o[a].classList.remove("toggled"),document.body.classList.remove("ast-header-break-point"),document.body.classList.add("ast-desktop"),astraTriggerEvent(document.body,"astra-header-responsive-enabled")):(document.body.classList.add("ast-header-break-point"),document.body.classList.remove("ast-desktop"),astraTriggerEvent(document.body,"astra-header-responsive-disabled")))};e(),AstraNavigationMenu=function(e){for(var t=0;tMenu Toggle",e[t].insertBefore(a,e[t].childNodes[1]);var n=e[t].getBoundingClientRect().left,s=window.innerWidth,r=parseInt(s)-parseInt(n),o=!1;if(r<500&&(o=!0),o){e[t].classList.add("ast-left-align-sub-menu");for(var i=e[t].querySelectorAll(".menu-item-has-children, .page_item_has_children"),l=0;l a, .ast-header-break-point .main-header-menu .page_item_has_children > a, .ast-header-break-point ul.main-header-menu .ast-menu-toggle");else l=i[s].querySelectorAll("ul.main-header-menu .ast-menu-toggle");AstraToggleMenu(l)}document.body.addEventListener("astra-header-responsive-enabled",function(){if(0