import t from"./getWindow.js";import o from"./getNodeName.js";import r from"./getComputedStyle.js";import{isHTMLElement as e}from"./instanceOf.js";import i from"./isTableElement.js";import n from"./getParentNode.js";import f from"./getDocumentElement.js";function m(t){if(!e(t)||"fixed"===r(t).position)return null;var i=t.offsetParent;if(i){var n=f(i);if("body"===o(i)&&"static"===r(i).position&&"static"!==r(n).position)return n}return i}function s(f){for(var s=t(f),a=m(f);a&&i(a)&&"static"===r(a).position;)a=m(a);return a&&"body"===o(a)&&"static"===r(a).position?s:a||function(t){for(var i=n(t);e(i)&&["html","body"].indexOf(o(i))<0;){var f=r(i);if("none"!==f.transform||"none"!==f.perspective||f.willChange&&"auto"!==f.willChange)return i;i=i.parentNode}return null}(f)||s}export default s;
//# sourceMappingURL=getOffsetParent.js.map
