let t=null;function e(){if(t){return t}if(typeof document==="undefined"){t="default";return t}const e=document.createElement("div");e.style.width="100px";e.style.height="100px";e.style.position="absolute";e.style.top="-1000px";e.style.overflow="scroll";e.style.direction="rtl";const n=document.createElement("div");n.style.width="200px";n.style.height="100px";e.appendChild(n);document.body.appendChild(e);if(e.scrollLeft>0){t="reverse"}else{e.scrollLeft=1;t=e.scrollLeft===0?"negative":"default"}document.body.removeChild(e);return t}function n(t){return getComputedStyle(t).direction==="rtl"}function r(t,e,n){switch(n){case"negative":return Math.max(0,-t);case"reverse":return Math.max(0,t);case"default":default:return Math.max(0,e-t)}}function u(t){const{scrollLeft:u,scrollWidth:c,clientWidth:o}=t;const i=Math.max(0,c-o);if(i<=0){return 0}const l=n(t);if(!l){return u}return r(u,i,e())}function c(t){return u(t)>0}export{c as a,u as g,n as i};
//# sourceMappingURL=p-DtgUQhjl.js.map