(()=>{"use strict";const e=function(e,t){0{t().classList.add("u-noscroll")},c=e=>{const t=document.getElementById("drawer-nav");if(!t)return;const o=t.getAttribute("id");o&&e.setAttribute("data-basis-drawer-toggle-btn",o)},r=e=>e.addEventListener("click",(t=>{document.getElementById("sm-overlay-widget-area")&&(n(),o=e)}),!1),l=e=>e.addEventListener("click",(t=>{document.getElementById("sm-overlay-search-box")&&(n(),o=e)}),!1),a=e=>e.addEventListener("click",(()=>{t().classList.remove("u-noscroll"),o&&(o.focus(),o=void 0)}),!1),d=e=>{if(document.querySelector(".c-overlay-container:target")&&27===e.keyCode){const e=document.querySelector(".c-overlay-container__close-btn");e&&e.click()}};document.addEventListener("DOMContentLoaded",(()=>{const t=document.querySelectorAll('a[href="#sm-drawer"]');e(t,c);const o=document.querySelectorAll('a[href="#sm-overlay-widget-area"]');e(o,r);const n=document.querySelectorAll('a[href="#sm-overlay-search-box"]');e(n,l);const s=document.querySelectorAll(".c-overlay-container__bg, .c-overlay-container__close-btn");e(s,a),document.addEventListener("keydown",d)}),!1)})();