(()=>{function e(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,o=Array(n);t<n;t++)o[t]=e[t];return o}window.addEventListener("DOMContentLoaded",function(){var n,t=function(n,t){var o="undefined"!=typeof Symbol&&n[Symbol.iterator]||n["@@iterator"];if(!o){if(Array.isArray(n)||(o=function(n,t){if(n){if("string"==typeof n)return e(n,t);var o={}.toString.call(n).slice(8,-1);return"Object"===o&&n.constructor&&(o=n.constructor.name),"Map"===o||"Set"===o?Array.from(n):"Arguments"===o||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o)?e(n,t):void 0}}(n))||t&&n&&"number"==typeof n.length){o&&(n=o);var i=0,r=function(){};return{s:r,n:function(){return i>=n.length?{done:!0}:{done:!1,value:n[i++]}},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(){o=o.call(n)},n:function(){var e=o.next();return l=e.done,e},e:function(e){c=!0,a=e},f:function(){try{l||null==o.return||o.return()}finally{if(c)throw a}}}}(document.querySelectorAll(".eb-advanced-navigation-wrapper"));try{var o=function(){var e=n.value,t=e.querySelectorAll(".wp-block-navigation-item__content");window.matchMedia("(max-width: 767px)"),t.forEach(function(n){null==n||n.addEventListener("click",function(t){var o,i=this.getAttribute("href");""!==n.hash&&i&&"#"!==i&&(t.preventDefault(),null===(o=e.querySelector(".wp-block-navigation__responsive-container"))||void 0===o||o.classList.remove("is-menu-open","has-modal-open"),window.open(i,"_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 o;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===(o=e.closest(".wp-block-navigation-item"))||void 0===o||o.classList.add("current-menu-item"))})});var o=e.querySelector(".wp-block-navigation__responsive-container-open"),i=e.querySelector(".wp-block-navigation__responsive-container-close");null==o||o.addEventListener("click",function(n){e.querySelectorAll(".eb-menu-indicator").forEach(function(e){e.style.display="block"})}),null==i||i.addEventListener("click",function(n){e.querySelectorAll(".eb-menu-indicator").forEach(function(e){e.style.display="none"})})};for(t.s();!(n=t.n()).done;)o()}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>')}),window.addEventListener("load",function(){e.querySelectorAll(".eb-menu-indicator").forEach(function(e){null==e||e.addEventListener("click",function(e){e.preventDefault();var n=this.parentNode.querySelector("a").getBoundingClientRect().height-25;this.style.top=n/2+"px"})})}),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"}})})})})();