(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,1355,e=>{"use strict";var t=e.i(71645);function r({selector:e=".scroll-animate",rootMargin:r="0px 0px -10% 0px",threshold:s=.2,once:l=!0}){return(0,t.useEffect)(()=>{let t=Array.from(document.querySelectorAll(e));if(!("IntersectionObserver"in window)||0===t.length)return;let n=new IntersectionObserver(e=>{for(let t of e){let e=t.target;if(t.isIntersecting){let t=e.dataset.delay?Number(e.dataset.delay):0;t&&e.style.setProperty("--animation-delay",`${t}ms`),e.classList.add("scroll-animate-visible"),l&&n.unobserve(e)}else l||e.classList.remove("scroll-animate-visible")}},{rootMargin:r,threshold:s});return t.forEach(e=>n.observe(e)),()=>n.disconnect()},[e,r,s,l]),null}e.s(["default",()=>r])}]);