import{n as e}from"./rolldown-runtime-DAXXjFlN.js";import{$n as t,Fr as n,dn as r}from"./vendor-6bGPahzI.js";function i(){document.body.classList.contains(o)||(document.body.classList.add(o),u.value=!0),l&&clearTimeout(l),l=setTimeout(()=>{document.body.classList.remove(o),u.value=!1,l=null},s)}function a(){return c++,t(()=>{c=Math.max(0,c-1),c===0&&l&&(clearTimeout(l),l=null,document.body.classList.remove(o),u.value=!1)}),{markScrolling:i,isScrolling:u}}var o,s,c,l,u,d=e((()=>{r(),o=`scrolling`,s=150,c=0,l=null,u=n(!1)}));export{u as n,a as r,d as t};