function requestIdle(timeout) {
  return new Promise((resolve) => {
    if (typeof requestIdleCallback === "function") {
      requestIdleCallback(() => resolve(), { timeout });
    } else {
      setTimeout(() => resolve(), timeout);
    }
  });
}
export {
  requestIdle
};
//# sourceMappingURL=request-idle.js.map
