import"./index.46377be8.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},n=new Error().stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="c36ef6e2-fef4-4f6a-87c2-c9da8fbc3af7",e._sentryDebugIdIdentifier="sentry-dbid-c36ef6e2-fef4-4f6a-87c2-c9da8fbc3af7")}catch{}})();const f=1e3,s=e=>{let n=null;return{startPolling:()=>{const t=async()=>{var o;try{!document.hidden&&!e.keepPollingOnOutOfFocus&&await e.task()}finally{n=setTimeout(t,(o=e.interval)!=null?o:f)}};t()},endPolling:()=>{n&&clearTimeout(n)}}};export{s as u};
//# sourceMappingURL=polling.3ea12407.js.map
