var isIE=!1,isEdge=!1,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;--a>=0&&t.item(a)!==this;);return a>-1});for(var a=[];e&&e!==document;e=e.parentNode)t?e.matches(t)&&a.push(e):a.push(e);return a},toggleClass=function(e,t){e.classList.contains(t)?e.classList.remove(t):e.classList.add(t)};!function(){if(isIE=!!document.documentMode,isEdge=!isIE&&!!window.StyleMedia,"function"==typeof window.CustomEvent)return!1;function e(e,t){t=t||{bubbles:!1,cancelable:!1,detail:void 0};var a=document.createEvent("CustomEvent");return a.initCustomEvent(e,t.bubbles,t.cancelable,t.detail),a}e.prototype=window.Event.prototype,window.CustomEvent=e}(),function(){AstraNavigationMenu=function(e){for(var t=0;tMenu Toggle",e[t].insertBefore(a,e[t].childNodes[1]);var s=e[t].getBoundingClientRect().left,n=window.innerWidth,r=parseInt(n)-parseInt(s),l=!1;if(r<500&&(l=!0),l){e[t].classList.add("ast-left-align-sub-menu");for(var i=e[t].querySelectorAll(".menu-item-has-children, .page_item_has_children"),o=0;o0)for(var a=0;a0)for(var t=0;t0)for(var s=0;s a, .page_item_has_children > a");if("ontouchstart"in window)for(t=function(e){var t,a=this.parentNode;if(a.classList.contains("focus"))a.classList.remove("focus");else{for(e.preventDefault(),t=0;t