(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="c58531f2-2445-473f-a7f1-bcb694a43da9",e._sentryDebugIdIdentifier="sentry-dbid-c58531f2-2445-473f-a7f1-bcb694a43da9")}catch{}})();var l=()=>typeof document<"u",s=!1,i=null,o=!1,u=!1,d=new Set;function a(e,t){d.forEach(n=>n(e,t))}var p=typeof window<"u"&&window.navigator!=null?/^Mac/.test(window.navigator.platform):!1;function y(e){return!(e.metaKey||!p&&e.altKey||e.ctrlKey||e.key==="Control"||e.key==="Shift"||e.key==="Meta")}function c(e){o=!0,y(e)&&(i="keyboard",a("keyboard",e))}function r(e){if(i="pointer",e.type==="mousedown"||e.type==="pointerdown"){o=!0;const t=e.composedPath?e.composedPath()[0]:e.target;let n=!1;try{n=t.matches(":focus-visible")}catch{}if(n)return;a("pointer",e)}}function m(e){return e.mozInputSource===0&&e.isTrusted?!0:e.detail===0&&!e.pointerType}function w(e){m(e)&&(o=!0,i="virtual")}function v(e){e.target===window||e.target===document||(!o&&!u&&(i="virtual",a("virtual",e)),o=!1,u=!1)}function E(){o=!1,u=!0}function f(){return i!=="pointer"}function b(){if(!l()||s)return;const{focus:e}=HTMLElement.prototype;HTMLElement.prototype.focus=function(...n){o=!0,e.apply(this,n)},document.addEventListener("keydown",c,!0),document.addEventListener("keyup",c,!0),document.addEventListener("click",w,!0),window.addEventListener("focus",v,!0),window.addEventListener("blur",E,!1),typeof PointerEvent<"u"?(document.addEventListener("pointerdown",r,!0),document.addEventListener("pointermove",r,!0),document.addEventListener("pointerup",r,!0)):(document.addEventListener("mousedown",r,!0),document.addEventListener("mousemove",r,!0),document.addEventListener("mouseup",r,!0)),s=!0}function g(e){b(),e(f());const t=()=>e(f());return d.add(t),()=>{d.delete(t)}}export{g as t};
//# sourceMappingURL=index-ijXAsLQd.js.map
