import{n as e}from"./rolldown-runtime-BG2f4sTM.js";import{Crt as t}from"./app-initial-BHB6SClA.js";function n(e,t,n){let r={...e};return t.top+e.y<=n.top?r.y=n.top-t.top:t.bottom+e.y>=n.top+n.height&&(r.y=n.top+n.height-t.bottom),t.left+e.x<=n.left?r.x=n.left-t.left:t.right+e.x>=n.left+n.width&&(r.x=n.left+n.width-t.right),r}var r,i,a,o=e((()=>{t(),r=e=>{let{transform:t}=e;return{...t,y:0}},i=e=>{let{draggingNodeRect:t,transform:r,scrollableAncestorRects:i}=e,a=i[0];return!t||!a?r:n(r,t,a)},a=e=>{let{transform:t}=e;return{...t,x:0}}}));export{a as i,i as n,r,o as t};
//# sourceMappingURL=modifiers.esm--SGMoLew.js.map