1class t extends HTMLElement{static register(s){customElements.define(s||"intersection-observer",t)}connectedCallback(){this.classesToAdd=this.getAttribute("classes-to-add"),this.classesToRemove=this.getAttribute("classes-to-remove"),(this.classesToAdd||this.classesToRemove)&&(this.rootMargin=this.getAttribute("root-margin")||"0px",this.threshold=this.getAttribute("threshold")||0,this.observe())}disconnectedCallback(){var s;(s=this.observer)==null||s.disconnect(),this.observer=null}observe(){this.observer=new IntersectionObserver(s=>{s.forEach(({isIntersecting:i})=>{if(i){const e=this.classList;this.classesToRemove&&e.remove.apply(e,this.classesToRemove.split(",")),this.classesToAdd&&e.add.apply(e,this.classesToAdd.split(",")),this.observer.disconnect()}})},{rootMargin:this.rootMargin,threshold:Number(this.threshold)}),this.observer.observe(this)}}t.register();
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.