// Loaded from https://raw.githubusercontent.com/denjucks/dex/master/lib/deps/@jspm/core@1.1.0/nodelibs/timers.js import {h}from'./chunk-0c2d1322.js';var t="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:global,n={},a=h;!function(e,t){if(!e.setImmediate){var n,s,o,i,c,r=1,f={},l=!1,d=e.document,u=Object.getPrototypeOf&&Object.getPrototypeOf(e);u=u&&u.setTimeout?u:e,"[object process]"==={}.toString.call(e.process)?n=function(e){a.nextTick((function(){m(e);}));}:!function(){if(e.postMessage&&!e.importScripts){var t=!0,n=e.onmessage;return e.onmessage=function(){t=!1;},e.postMessage("","*"),e.onmessage=n,t}}()?e.MessageChannel?((o=new MessageChannel).port1.onmessage=function(e){m(e.data);},n=function(e){o.port2.postMessage(e);}):d&&"onreadystatechange"in d.createElement("script")?(s=d.documentElement,n=function(e){var t=d.createElement("script");t.onreadystatechange=function(){m(e),t.onreadystatechange=null,s.removeChild(t),t=null;},s.appendChild(t);}):n=function(e){setTimeout(m,0,e);}:(i="setImmediate$"+Math.random()+"$",c=function(t){t.source===e&&"string"==typeof t.data&&0===t.data.indexOf(i)&&m(+t.data.slice(i.length));},e.addEventListener?e.addEventListener("message",c,!1):e.attachEvent("onmessage",c),n=function(t){e.postMessage(i+t,"*");}),u.setImmediate=function(e){"function"!=typeof e&&(e=new Function(""+e));for(var t=new Array(arguments.length-1),a=0;a=0&&(e._idleTimeoutId=setTimeout((function(){e._onTimeout&&e._onTimeout();}),t));},i.setImmediate="undefined"!=typeof self&&self.setImmediate||void 0!==t$1&&t$1.setImmediate||i&&i.setImmediate,i.clearImmediate="undefined"!=typeof self&&self.clearImmediate||void 0!==t$1&&t$1.clearImmediate||i&&i.clearImmediate;var _unrefActive=i._unrefActive;var active=i.active;var clearImmediate=i.clearImmediate;var clearInterval$1=i.clearInterval;var clearTimeout$1=i.clearTimeout;var enroll=i.enroll;var setImmediate=i.setImmediate;var setInterval$1=i.setInterval;var setTimeout$1=i.setTimeout;var unenroll=i.unenroll;export default i;export{_unrefActive,active,clearImmediate,clearInterval$1 as clearInterval,clearTimeout$1 as clearTimeout,enroll,setImmediate,setInterval$1 as setInterval,setTimeout$1 as setTimeout,unenroll};