(()=>{function e(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,i=Array(n);t<n;t++)i[t]=e[t];return i}window.addEventListener("DOMContentLoaded",function(){var n,t=function(n,t){var i="undefined"!=typeof Symbol&&n[Symbol.iterator]||n["@@iterator"];if(!i){if(Array.isArray(n)||(i=function(n,t){if(n){if("string"==typeof n)return e(n,t);var i={}.toString.call(n).slice(8,-1);return"Object"===i&&n.constructor&&(i=n.constructor.name),"Map"===i||"Set"===i?Array.from(n):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?e(n,t):void 0}}(n))||t&&n&&"number"==typeof n.length){i&&(n=i);var o=0,r=function(){};return{s:r,n:function(){return o>=n.length?{done:!0}:{done:!1,value:n[o++]}},e:function(e){throw e},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,l=!0,c=!1;return{s:function(){i=i.call(n)},n:function(){var e=i.next();return l=e.done,e},e:function(e){c=!0,a=e},f:function(){try{l||null==i.return||i.return()}finally{if(c)throw a}}}}(document.querySelectorAll(".eb-advanced-navigation-wrapper"));try{var i=function(){var e=n.value,t=e.querySelectorAll(".wp-block-navigation-item__content");t.forEach(function(n){null==n||n.addEventListener("click",function(t){var i,o=this.getAttribute("href");""!==n.hash&&o&&"#"!==o&&!o.startsWith("javascript:")&&(t.preventDefault(),null===(i=e.querySelector(".wp-block-navigation__responsive-container"))||void 0===i||i.classList.remove("is-menu-open","has-modal-open"),window.open(o,"_self"))})}),t.forEach(function(e){var n;null===(n=e.closest(".wp-block-navigation-item"))||void 0===n||n.classList.remove("active"),e.addEventListener("click",function(n){var i;t.forEach(function(e){var n;null===(n=e.closest(".wp-block-navigation-item"))||void 0===n||n.classList.remove("current-menu-item")}),""!==e.hash&&(null===(i=e.closest(".wp-block-navigation-item"))||void 0===i||i.classList.add("current-menu-item"))})});var i=e.querySelector(".wp-block-navigation__responsive-container-open"),o=e.querySelector(".wp-block-navigation__responsive-container-close");null==i||i.addEventListener("click",function(n){e.querySelectorAll(".eb-menu-indicator").forEach(function(e){e.style.display="block"})}),null==o||o.addEventListener("click",function(n){e.querySelectorAll(".eb-menu-indicator").forEach(function(e){e.style.display="none",e.classList.remove("eb-menu-indicator-open"),e.previousElementSibling&&(e.previousElementSibling.style.display="")})})};for(t.s();!(n=t.n()).done;)i()}catch(e){t.e(e)}finally{t.f()}document.querySelectorAll(".eb-advanced-navigation-wrapper").forEach(function(e){e.querySelectorAll(".wp-block-navigation.is-responsive > li.wp-block-navigation-submenu").forEach(function(e){e.querySelector(":scope > .eb-menu-indicator")||e.insertAdjacentHTML("beforeend",'<span class="eb-menu-indicator"></span>')}),e.querySelectorAll(".wp-block-navigation.is-responsive > li ul li.wp-block-navigation-submenu").forEach(function(e){e.querySelector(":scope > .eb-menu-indicator")||e.insertAdjacentHTML("beforeend",'<span class="eb-menu-indicator"></span>')}),e.addEventListener("click",function(e){if(e.target.classList.contains("eb-menu-indicator")){e.preventDefault(),e.target.classList.toggle("eb-menu-indicator-open");var n=e.target.previousElementSibling;"none"===n.style.display||""===n.style.display?n.style.display="block":n.style.display="none"}})}),window.addEventListener("load",function(){document.querySelectorAll(".eb-advanced-navigation-wrapper .eb-menu-indicator").forEach(function(e){e.addEventListener("click",function(){var e=this.parentNode.querySelector("a");if(e){var n=e.getBoundingClientRect().height-25;this.style.top=n/2+"px"}})})})})})();