1(v=>{Drupal.behaviors.megamenuKeyboardNavigation={attach:function(e,n){e=v(".js-menu-keyboard-nav",e);if(e.length){let m=0,c=!1;function f(e,n,a,t,i=!1){var n=v(n),e=n.index(e);g(t),-1===e?console.error("Current element not found in items list"):(t=e+a)<0||t>=n.length||(e=i?".m-navigation--submenu--link > a":".m-navigation--link > a",n.eq(t).find(e).first().focus())}function g(e){e.removeClass("open").attr("aria-expanded","false"),c=!1}e.find("a").on("keydown",function(e){var n,a=v(this),t=a.closest(".m-navigation--submenu"),i=a.closest(t.length?".m-navigation--submenu--item":".m-navigation--item"),s=i.find(".m-navigation--submenu").first(),o=a.closest(".m-navigation--submenu"),r=i.add(i.siblings()),u=a.closest(".m-navigation--submenu--list"),l=v(document.activeElement);switch(e.key){case"ArrowRight":e.preventDefault(),f(i,r,1,s,0<u.length);break;case"ArrowLeft":case"ArrowUp":e.preventDefault(),f(i,r,-1,s,0<u.length);break;case"ArrowDown":e.preventDefault(),f(i,r,1,s,0<u.length);break;case"Enter":case" ":e.preventDefault(),s.length&&m<=2?(((n=s).hasClass("open")?g:e=>{e.addClass("open").attr("aria-expanded","true"),c=!0})(n),m=c?2:3):window.location.href=v(l).attr("href");break;case"Escape":e.preventDefault(),o.length?(g(o),o.closest("li").find("> .m-navigation--submenu--link > a").first().focus()):c&&v(".m-navigation--submenu").each(function(){g(v(this))})}})}}}})(jQuery);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.