"use strict";var e=(e,t,n)=>new Promise(((l,r)=>{var o=e=>{try{i(n.next(e))}catch(e){r(e)}},u=e=>{try{i(n.throw(e))}catch(e){r(e)}},i=e=>e.done?l(e.value):Promise.resolve(e.value).then(o,u);i((n=n.apply(e,t)).next())}));function t(t,n){return e(this,null,(function*(){var l,r,o,u;const i=null!=(r=null==n?void 0:n.duration)?r:(null!=(l=null==n?void 0:n.frame)?l:30)/1e3,s=null!=(o=null==n?void 0:n.limit)?o:Number.POSITIVE_INFINITY,c=null!=(u=null==n?void 0:n.clear_screen)&&u;let a=-1,p=setTimeout((function n(){return e(this,null,(function*(){clearTimeout(p),a+=1,a>=s||(!0===c&&console.clear(),yield t(a),p=setTimeout(n,i))}))}),i)}))}function n(t,n){return e(this,null,(function*(){return!0===(null==n?void 0:n.clear_screen)&&console.clear(),t(...process.argv.slice(2))}))}exports.init=n,exports.loop=t,exports.main=n,exports.setup=n,exports.tick=t,exports.update=t;//# sourceMappingURL=mod.cjs.map