const t=new WeakMap;function o(o,n){const e=t.get(o);clearTimeout(e);const s=setTimeout((()=>{null!=n&&function(t,o){const n=t.getBoundingClientRect(),e=o.getBoundingClientRect();if(e.top<n.top){const o=e.top-n.top;t.scrollBy({top:o,behavior:"smooth"})}else if(e.bottom>n.bottom&&e.top>n.top){const o=e.bottom-n.bottom;t.scrollBy({top:o,behavior:"smooth"})}}(o,n)}),200);t.set(o,s)}function n(t,o){return t.classList?.contains(o)??!1}export{n as hasClass,o as scrollChildIntoParent};
//# sourceMappingURL=dom.js.map
