import t from"./getDocumentElement.js";import e from"./getComputedStyle.js";import i from"./getWindowScrollBarX.js";import o from"./getWindowScroll.js";function l(l){var r=t(l),c=o(l),h=l.ownerDocument.body,n=Math.max(r.scrollWidth,r.clientWidth,h?h.scrollWidth:0,h?h.clientWidth:0),m=Math.max(r.scrollHeight,r.clientHeight,h?h.scrollHeight:0,h?h.clientHeight:0),d=-c.scrollLeft+i(l),s=-c.scrollTop;return"rtl"===e(h||r).direction&&(d+=Math.max(r.clientWidth,h?h.clientWidth:0)-n),{width:n,height:m,x:d,y:s}}export default l;
//# sourceMappingURL=getDocumentRect.js.map
