1Drupal.behaviors.menuToggle={attach:function(e){function t(e){var t=e.nextElementSibling;if(t){var r=t.querySelectorAll("button, [href], [tabindex]"),n=r[0],l=r[r.length-1];t.addEventListener("keydown",(function(e){"Tab"!==e.key&&9!==e.keyCode||(e.shiftKey&&document.activeElement===n?(e.preventDefault(),l.focus()):document.activeElement===l&&(e.preventDefault(),n.focus()))}))}}function r(e){var t=e.parentElement.querySelector("[class*='__toggle']"),r=e.parentElement.querySelector("[class*='__menu-list-wrapper']");Array.prototype.forEach.call(l,(function(e){var r=e.querySelector("[class*='__menu-list-wrapper']");r&&r.querySelectorAll("[class*='__toggle']").forEach((function(e){e.outerHTML!==t.outerHTML&&e.nextElementSibling&&(e.setAttribute("aria-expanded","false"),e.nextElementSibling.setAttribute("aria-hidden","true"),e.nextElementSibling.setAttribute("inert",""))}))}));var n="true"===t.getAttribute("aria-expanded");if(t.setAttribute("aria-expanded",n?"false":"true"),n){null==r||r.setAttribute("inert",""),null==r||r.setAttribute("aria-hidden","true");for(var a=null==r?void 0:r.parentElement;a;){var i,s;null!==(i=(s=a).matches)&&void 0!==i&&i.call(s,"[class*='__menu-list-wrapper']")&&null!==a.offsetParent&&(a.removeAttribute("inert"),a.setAttribute("aria-hidden","false")),a=a.parentElement}}else{null==r||r.removeAttribute("inert"),null==r||r.setAttribute("aria-hidden","false"),document.querySelectorAll('.sub--open [class*="__menu-list-wrapper"]').forEach((function(e){e.removeAttribute("inert"),e.setAttribute("aria-hidden","false")}));for(var u=null==r?void 0:r.parentElement;u;){var o,c;null!==(o=(c=u).matches)&&void 0!==o&&o.call(c,"[class*='__menu-list-wrapper']")&&(u.removeAttribute("inert"),u.setAttribute("aria-hidden","false")),u=u.parentElement}}}function n(t,r){var n,a,i,s,u=e.querySelectorAll(".".concat(r,"__item")),o=t.getAttribute("data-menu-level")||(null===(n=t.nextElementSibling)||void 0===n?void 0:n.getAttribute("data-menu-level"))||"";Array.prototype.forEach.call(l,(function(e){e.setAttribute("data-menu-level",o)}));var c=t.parentElement,d=function(){Array.prototype.forEach.call(u,(function(e){if(e.innerText!==c.innerText&&e.classList.contains("sub--open")&&!e.contains(t)){e.classList.remove("sub--open");var r=e.querySelector("[class*='__menu-list-wrapper']");r&&(r.setAttribute("inert",""),r.setAttribute("aria-hidden","true"))}}))},f=function(){var e=c.querySelector("[class*='__menu-list-wrapper']");c.classList.contains("sub--open")&&e?(e.removeAttribute("inert"),e.setAttribute("aria-hidden","false")):e&&(e.setAttribute("inert",""),e.setAttribute("aria-hidden","true"))};c.hasAttribute("aria-labelledby")?(c.classList.toggle("menu--open"),u.forEach((function(e){return e.classList.remove("sub--open")})),t.lastElementChild.innerText="true"===t.getAttribute("aria-expanded")?"Close":t.getAttribute("aria-label")):null!==(a=t.nextElementSibling)&&void 0!==a&&a.classList.contains("".concat(r,"__menu-list-wrapper"))?(d(),c.classList.toggle("sub--open"),f()):(null!==(i=t.nextElementSibling)&&void 0!==i&&null!==(s=i.nextElementSibling)&&void 0!==s&&s.classList.contains("".concat(r,"__menu-list-wrapper")),d(),c.classList.toggle("sub--open"),f())}var l=e.querySelectorAll(".menu-with-toggle"),a=new MutationObserver((function(e){e.forEach((function(e){if("attributes"===e.type&&"class"===e.attributeName){var t=e.target,r=t.querySelector("[class*='__placeholder']"),n=t.querySelector("[class*='__menu-list-wrapper']");if(n&&r)if(t.classList.contains("sub--open")){var l=n.getBoundingClientRect(),a=window.innerWidth-l.right;0>a&&(n.style.transform="translateX(".concat(a,"px)"),r.classList.add("cut"))}else n.style.transform="translateX(0)",r.classList.remove("cut")}}))}));0<l.length&&(l.forEach((function(e){e.querySelectorAll("[class*='__toggle']").forEach((function(l){l.addEventListener("click",(function(){r(l),t(l),n(l,e.id)}))})),e.querySelectorAll("[class*='__placeholder']").forEach((function(l){l.addEventListener("keypress",(function(e){("Enter"===e.key||"Escape"===e.key)&&(e.preventDefault(),l.click())})),l.addEventListener("click",(function(){r(l),t(l),n(l,e.id)}))})),e.querySelectorAll("[class*='__item--with-sub']").forEach((function(e){a.observe(e,{attributes:!0})}))})),document.addEventListener("keydown",(function(t){var r;"Escape"===t.key&&(e.querySelectorAll("[class*='__item']").forEach((function(e){return e.classList.remove("sub--open")})),null===(r=e.querySelector("body"))||void 0===r||r.removeAttribute("data-body-frozen"),l.forEach((function(e){e.classList.remove("menu--open"),e.querySelectorAll("button, [href], [tabindex]").forEach((function(e){return e.setAttribute("aria-expanded","fal
1se")}));var t=e.querySelector("[class*='__menu-list-wrapper']");t&&t.querySelectorAll("[class*='__menu-list-wrapper']").forEach((function(e){e.setAttribute("inert",""),e.setAttribute("aria-hidden","true")}))})))})))}};
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.