text: document.addEventListener("DOMContentLoaded",function(){var t=document.querySelector("#masthead .header-main .header-search-button .header-search-icon"),n=document.querySelector(".site #header-search-dropdown");null!==t&&(t.addEventListener("click",function(e){n.classList.toggle("toggled-on"),n.querySelector(".header-search-form .search-form .search-field").focus(),t.setAttribute("aria-expanded",n.classList.contains("toggled-on")),e.stopPropagation()}),n.addEventListener("click",function(e){e.stopPropagation()}),document.addEventListener("click",function(){n.classList.remove("toggled-on"),t.setAttribute("aria-expanded","false")}),document.addEventListener("keyup",function(e){"Escape"===e.key&&(n.classList.remove("toggled-on"),t.setAttribute("aria-expanded","false"))}))});