import t from "./getParentNode.es.js";
import e from "./isScrollParent.es.js";
import o from "./getNodeName.es.js";
import { isHTMLElement as m } from "./instanceOf.es.js";
function i(r) {
  return ["html", "body", "#document"].indexOf(o(r)) >= 0 ? r.ownerDocument.body : m(r) && e(r) ? r : i(t(r));
}
export {
  i as default
};
//# sourceMappingURL=getScrollParent.es.js.map
