1import{r as c}from"./react-vendor-DHoSUuS3.js";const M=(t,n)=>typeof t=="number"?t:n;function T(t,n){if(!t)return n??{};const e=M(t.x,0),s=M(t.y,0);return{...n,opacity:t.opacity??1,transform:`translate3d(${e}px, ${s}px, 0)`}}function I(t){const n=c.forwardRef(({initial:e,animate:s,whileInView:h,viewport:r,transition:u,style:R,children:E,...S},a)=>{const b=c.useRef(null),$=o=>{b.current=o,typeof a=="function"?a(o):a&&(a.current=o)},v=e===!1?void 0:e,x=s??h,d=!!h&&!s,D=typeof window<"u"&&typeof window.matchMedia=="function"&&window.matchMedia("(prefers-reduced-motion: reduce)").matches,[f,i]=c.useState(D||!d&&e!==!1);c.useEffect(()=>{if(f)return;const o=window.setTimeout(()=>i(!0),500);if(!d){const p=window.requestAnimationFrame(()=>i(!0));return()=>{window.clearTimeout(o),window.cancelAnimationFrame(p)}}const l=b.current;if(!l||typeof IntersectionObserver>"u"){i(!0),window.clearTimeout(o);return}const m=l.getBoundingClientRect(),F=window.innerHeight||document.documentElement.clientHeight,A=window.innerWidth||document.documentElement.clientWidth;if(m.bottom>0&&m.right>0&&m.top<F&&m.left<A){i(!0),window.clearTimeout(o);return}const w=new IntersectionObserver(p=>{for(const H of p)if(H.isIntersecting){i(!0),w.disconnect();return}},{rootMargin:r?.margin??"0px 0px -10% 0px",threshold:typeof r?.amount=="number"?r.amount:.05});return w.observe(l),()=>{w.disconnect(),window.clearTimeout(o)}},[d,r?.margin,r?.amount,f]);const O=typeof u?.duration=="number",k=typeof u?.delay=="number",g={transitionProperty:"opacity, transform",transitionDuration:O?`${Math.max(0,u.duration)*1e3}ms`:"var(--motion-duration)",transitionDelay:k?`${Math.max(0,u.delay)*1e3}ms`:"0ms",transitionTimingFunction:"var(--motion-ease)",...R},C=T(f?x:v??x,g);return c.createElement(t,{ref:$,style:C,...S},E)});return n.displayName=`motion.${typeof t=="string"?t:"component"}`,n}const y={},W=new Proxy({},{get(t,n){const e=n;return y[e]||(y[e]=I(e)),y[e]}});export{W as m};
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.