// window.requestIdleCallback polyfill from https://github.com/aFarkas/requestIdleCallback
!function(e){"function"==typeof define&&define.amd?define([],e):"object"==typeof module&&module.exports?module.exports=e():window.idleCallbackShim=e()}(function(){"use strict";var e,n,t,i,r,u,a,o,l="undefined"!=typeof window?window:global,c=l.cancelRequestAnimationFrame&&l.requestAnimationFrame||setTimeout,s=l.cancelRequestAnimationFrame||clearTimeout,f=[],d=0,m=!1,$=7,b=35,v=125,p=0,g=0,k=0,h={get didTimeout(){return!1},timeRemaining:function(){return Math.max(0,$-(Date.now()-g))}},q=(e=function(){$=22,v=66,b=0},i=function(){var r=Date.now()-t;r<99?n=setTimeout(i,99-r):(n=null,e())},function(){t=Date.now(),n||(n=setTimeout(i,99))});function w(){125!=v&&($=7,v=125,b=35,m&&(m&&(o&&s(o),a&&clearTimeout(a),m=!1),_())),q()}function y(){o=null,a=setTimeout(E,0)}function C(){a=null,c(y)}function _(){!m&&(u=v-(Date.now()-g),r=Date.now(),m=!0,b&&u<b&&(u=b),u>9?a=setTimeout(C,u):(u=0,C()))}function E(){var e,n,t,i=$>9?9:1;if(g=Date.now(),m=!1,a=null,d>2||g-u-50<r)for(n=0,t=f.length;n<t&&h.timeRemaining()>i;n++)e=f.shift(),k++,e&&e(h);f.length?_():d=0}function I(e){return p++,f.push(e),_(),p}function L(e){var n=e-1-k;f[n]&&(f[n]=null)}if(l.requestIdleCallback&&l.cancelIdleCallback)try{l.requestIdleCallback(function(){},{timeout:0})}catch(R){!function(e){var n,t;if(l.requestIdleCallback=function(n,t){return t&&"number"==typeof t.timeout?e(n,t.timeout):e(n)},l.IdleCallbackDeadline&&(n=IdleCallbackDeadline.prototype)){if(!(t=Object.getOwnPropertyDescriptor(n,"timeRemaining"))||!t.configurable||!t.get)return;Object.defineProperty(n,"timeRemaining",{value:function(){return t.get.call(this)},enumerable:!0,configurable:!0})}}(l.requestIdleCallback)}else l.requestIdleCallback=I,l.cancelIdleCallback=L,l.document&&document.addEventListener&&(l.addEventListener("scroll",w,!0),l.addEventListener("resize",w),document.addEventListener("focus",w,!0),document.addEventListener("mouseover",w,!0),["click","keypress","touchstart","mousedown"].forEach(function(e){document.addEventListener(e,w,{capture:!0,passive:!0})}),l.MutationObserver&&new MutationObserver(w).observe(document.documentElement,{childList:!0,subtree:!0,attributes:!0}));return{request:I,cancel:L}});

// A dependency graph that contains any wasm must all be imported
// asynchronously. This `bootstrap.js` file does the single async import, so
// that no one else needs to worry about it again.
import("./index.ts").catch(e => console.error("Error importing `index.ts`:", e));