1function u({attribute:s="scrolldir",readyAttribute:c="scrolldirReady",threshold:f=3}={}){const e=document.documentElement;let a=window.scrollY,t=!1,o=!1,n=!1;e.dataset[s]=e.dataset[s]||"up";const w=()=>{const d=window.scrollY,l=d-a;if(!n){Math.abs(l)>0&&(n=!0),a=d,t=!1;return}if(Math.abs(l)<f){t=!1;return}o||(o=!0,e.dataset[c]="true");const i=l>0?"down":"up";e.dataset[s]!==i&&(e.dataset[s]=i),a=d,t=!1};window.addEventListener("scroll",()=>{t||(t=!0,requestAnimationFrame(w))},{passive:!0});const r=()=>{n=!1,a=window.scrollY};window.addEventListener("resize",r),window.addEventListener("orientationchange",r)}export{u 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.