function u(o,n,t){let e=n;return!e&&t&&(e=`${o}-${t}`),e}let f=-1;function i(){return f+=1,f}function r(o,n){let t=o[`page${n?"Y":"X"}Offset`];const e=`scroll${n?"Top":"Left"}`;if(typeof t!="number"){const c=o.document;t=c.documentElement[e],typeof t!="number"&&(t=c.body[e])}return t}function l(o){const n=o.getBoundingClientRect(),t={left:n.left,top:n.top},e=o.ownerDocument,c=e.defaultView||e.parentWindow;return t.left+=r(c),t.top+=r(c,!0),t}export{u as getMotionName,i as getUUID,l as offset};
