1class c extends HTMLElement{connectedCallback(){const i=t=>!t.composedPath().includes(this)&&e.close(),n=this.shadowRoot.querySelector("nav"),e=this.shadowRoot.querySelector("dialog");e.addEventListener("close",()=>window.removeEventListener("click",i)),this.shadowRoot.querySelector(".toggle-nav").addEventListener("click",()=>{e.open?e.close():(e.show(),window.addEventListener("click",i))}),this.shadowRoot.querySelector(".next").addEventListener("click",()=>{const o=n.querySelector("li.is-active").nextElementSibling||n.querySelector("li:first-child");o&&(window.location.href=o.querySelector("a").href)}),this.shadowRoot.querySelector(".prev").addEventListener("click",()=>{const o=n.querySelector("li.is-active").previousElementSibling||n.querySelector("li:last-child");o&&(window.location.href=o.querySelector("a").href)}),window.addEventListener("keyup",function(t){e.open&&t.key==="Escape"&&e.close()})}static register(){customElements.define("g2cp-edition-nav",c)}}export{c as default};
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.