(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{};e.SENTRY_RELEASE={id:"66e9b849450b819e11683314a547a341cb57f7d0"};var n=new e.Error().stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="26bfe2bb-9184-4509-92fa-56349202144c",e._sentryDebugIdIdentifier="sentry-dbid-26bfe2bb-9184-4509-92fa-56349202144c")}catch{}})();const b="es_split_pct";function y(e,n=50){const r=typeof e=="number"?e:Number(e);return Number.isFinite(r)?Math.min(80,Math.max(20,Math.round(r*100)/100)):n}function p(e){const n=y(e);return document.cookie=`${b}=${n}; path=/; SameSite=Lax;`,n}function w({container:e,initialClientX:n,setSplitPercent:r}){if(!e)return;const d=e.getBoundingClientRect();let i=!0;const c=Array.from(document.querySelectorAll("iframe")),f=c.map(t=>t.style.pointerEvents);c.forEach(t=>t.style.pointerEvents="none");function o(){i&&(i=!1,c.forEach((t,s)=>t.style.pointerEvents=f[s]??""),window.removeEventListener("mousemove",a),window.removeEventListener("mouseup",o),window.removeEventListener("touchmove",l),window.removeEventListener("touchend",o),document.body.style.cursor="",document.body.style.userSelect="")}function u(t){if(!i){o();return}const m=(t-d.left)/d.width*100,v=p(m);r(v)}function a(t){if(!i||t.buttons===0){o();return}u(t.clientX)}function l(t){const s=t.touches?.[0];if(!i||!s){o();return}u(s.clientX)}window.addEventListener("mousemove",a),window.addEventListener("mouseup",o),window.addEventListener("touchmove",l),window.addEventListener("touchend",o),document.body.style.cursor="col-resize",document.body.style.userSelect="none",u(n)}export{p as a,w as s};
//# sourceMappingURL=split-layout-s1Y4wBQe.js.map
