import{n as e,s as t}from"./rolldown-runtime-BG2f4sTM.js";import{dn as n,un as r}from"./app-initial~avatarOverlayCompositionSurface~index-9fQ9wihu~index-BFCcxPM5~mapbox-gl-DVWlwqb~kppdhley-CabsBVhy.js";function i(e){let t=(0,o.c)(6),{container:n,target:r}=e,i;t[0]!==n||t[1]!==r?(i=e=>{if(!n||!r)return a;let t=()=>{e()};n.addEventListener(`scroll`,t,{passive:!0});let i=typeof ResizeObserver>`u`?null:new ResizeObserver(t);return i&&(i.observe(n),i.observe(r)),()=>{n.removeEventListener(`scroll`,t),i&&i.disconnect()}},t[0]=n,t[1]=r,t[2]=i):i=t[2];let c=i,l;t[3]!==n||t[4]!==r?(l=()=>{if(!n||!r)return!0;let e=n.getBoundingClientRect(),t=r.getBoundingClientRect();return t.bottom>e.top&&t.top<e.bottom},t[3]=n,t[4]=r,t[5]=l):l=t[5];let u=l;return(0,s.useSyncExternalStore)(c,u,u)}function a(){}var o,s,c=e((()=>{o=r(),s=t(n(),1)}));export{i as n,c as t};
//# sourceMappingURL=use-element-in-view-DsZc1WuZ.js.map