{"dependencies":[{"name":"tslib","data":{"asyncType":null,"isESMImport":true,"locs":[{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":34,"index":34}}],"key":"8R25577gwLd3n1hFG9VYnRLV9eE=","exportNames":["*"],"imports":1}},{"name":"../Scheduler","data":{"asyncType":null,"isESMImport":true,"locs":[{"start":{"line":2,"column":0,"index":35},"end":{"line":2,"column":41,"index":76}}],"key":"2pdGsKYkTe60J1ilExla5MWI5fY=","exportNames":["*"],"imports":1}}],"output":[{"data":{"code":"__d(function (global, require, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {\n \"use strict\";\n\n Object.defineProperty(exports, '__esModule', {\n value: true\n });\n Object.defineProperty(exports, \"AsyncScheduler\", {\n enumerable: true,\n get: function () {\n return AsyncScheduler;\n }\n });\n var _tslib = require(_dependencyMap[0], \"tslib\");\n var _Scheduler = require(_dependencyMap[1], \"../Scheduler\");\n var AsyncScheduler = function (_super) {\n (0, _tslib.__extends)(AsyncScheduler, _super);\n function AsyncScheduler(SchedulerAction, now) {\n if (now === void 0) {\n now = _Scheduler.Scheduler.now;\n }\n var _this = _super.call(this, SchedulerAction, now) || this;\n _this.actions = [];\n _this._active = false;\n return _this;\n }\n AsyncScheduler.prototype.flush = function (action) {\n var actions = this.actions;\n if (this._active) {\n actions.push(action);\n return;\n }\n var error;\n this._active = true;\n do {\n if (error = action.execute(action.state, action.delay)) {\n break;\n }\n } while (action = actions.shift());\n this._active = false;\n if (error) {\n while (action = actions.shift()) {\n action.unsubscribe();\n }\n throw error;\n }\n };\n return AsyncScheduler;\n }(_Scheduler.Scheduler);\n});","lineCount":49,"map":[[7,2,35,0,"Object"],[7,8,35,0],[7,9,35,0,"defineProperty"],[7,23,35,0],[7,24,35,0,"exports"],[7,31,35,0],[8,4,35,0,"enumerable"],[8,14,35,0],[9,4,35,0,"get"],[9,7,35,0],[9,18,35,0,"get"],[9,19,35,0],[10,6,35,0],[10,13,35,9,"AsyncScheduler"],[10,27,35,23],[11,4,35,23],[12,2,35,23],[13,2,1,0],[13,6,1,0,"_tslib"],[13,12,1,0],[13,15,1,0,"require"],[13,22,1,0],[13,23,1,0,"_dependencyMap"],[13,37,1,0],[14,2,2,0],[14,6,2,0,"_Scheduler"],[14,16,2,0],[14,19,2,0,"require"],[14,26,2,0],[14,27,2,0,"_dependencyMap"],[14,41,2,0],[15,2,3,0],[15,6,3,4,"AsyncScheduler"],[15,20,3,18],[15,23,3,22],[15,33,3,32,"_super"],[15,39,3,38],[15,41,3,40],[16,4,4,4],[16,8,4,4,"__extends"],[16,14,4,13],[16,15,4,13,"__extends"],[16,24,4,13],[16,26,4,14,"AsyncScheduler"],[16,40,4,28],[16,42,4,30,"_super"],[16,48,4,36],[16,49,4,37],[17,4,5,4],[17,13,5,13,"AsyncScheduler"],[17,27,5,27,"AsyncScheduler"],[17,28,5,28,"SchedulerAction"],[17,43,5,43],[17,45,5,45,"now"],[17,48,5,48],[17,50,5,50],[18,6,6,8],[18,10,6,12,"now"],[18,13,6,15],[18,18,6,20],[18,23,6,25],[18,24,6,26],[18,26,6,28],[19,8,6,30,"now"],[19,11,6,33],[19,14,6,36,"Scheduler"],[19,24,6,45],[19,25,6,45,"Scheduler"],[19,34,6,45],[19,35,6,46,"now"],[19,38,6,49],[20,6,6,51],[21,6,7,8],[21,10,7,12,"_this"],[21,15,7,17],[21,18,7,20,"_super"],[21,24,7,26],[21,25,7,27,"call"],[21,29,7,31],[21,30,7,32],[21,34,7,36],[21,36,7,38,"SchedulerAction"],[21,51,7,53],[21,53,7,55,"now"],[21,56,7,58],[21,57,7,59],[21,61,7,63],[21,65,7,67],[22,6,8,8,"_this"],[22,11,8,13],[22,12,8,14,"actions"],[22,19,8,21],[22,22,8,24],[22,24,8,26],[23,6,9,8,"_this"],[23,11,9,13],[23,12,9,14,"_active"],[23,19,9,21],[23,22,9,24],[23,27,9,29],[24,6,10,8],[24,13,10,15,"_this"],[24,18,10,20],[25,4,11,4],[26,4,12,4,"AsyncScheduler"],[26,18,12,18],[26,19,12,19,"prototype"],[26,28,12,28],[26,29,12,29,"flush"],[26,34,12,34],[26,37,12,37],[26,47,12,47,"action"],[26,53,12,53],[26,55,12,55],[27,6,13,8],[27,10,13,12,"actions"],[27,17,13,19],[27,20,13,22],[27,24,13,26],[27,25,13,27,"actions"],[27,32,13,34],[28,6,14,8],[28,10,14,12],[28,14,14,16],[28,15,14,17,"_active"],[28,22,14,24],[28,24,14,26],[29,8,15,12,"actions"],[29,15,15,19],[29,16,15,20,"push"],[29,20,15,24],[29,21,15,25,"action"],[29,27,15,31],[29,28,15,32],[30,8,16,12],[31,6,17,8],[32,6,18,8],[32,10,18,12,"error"],[32,15,18,17],[33,6,19,8],[33,10,19,12],[33,11,19,13,"_active"],[33,18,19,20],[33,21,19,23],[33,25,19,27],[34,6,20,8],[34,9,20,11],[35,8,21,12],[35,12,21,17,"error"],[35,17,21,22],[35,20,21,25,"action"],[35,26,21,31],[35,27,21,32,"execute"],[35,34,21,39],[35,35,21,40,"action"],[35,41,21,46],[35,42,21,47,"state"],[35,47,21,52],[35,49,21,54,"action"],[35,55,21,60],[35,56,21,61,"delay"],[35,61,21,66],[35,62,21,67],[35,64,21,70],[36,10,22,16],[37,8,23,12],[38,6,24,8],[38,7,24,9],[38,15,24,18,"action"],[38,21,24,24],[38,24,24,27,"actions"],[38,31,24,34],[38,32,24,35,"shift"],[38,37,24,40],[38,38,24,41],[38,39,24,42],[39,6,25,8],[39,10,25,12],[39,11,25,13,"_active"],[39,18,25,20],[39,21,25,23],[39,26,25,28],[40,6,26,8],[40,10,26,12,"error"],[40,15,26,17],[40,17,26,19],[41,8,27,12],[41,15,27,20,"action"],[41,21,27,26],[41,24,27,29,"actions"],[41,31,27,36],[41,32,27,37,"shift"],[41,37,27,42],[41,38,27,43],[41,39,27,44],[41,41,27,47],[42,10,28,16,"action"],[42,16,28,22],[42,17,28,23,"unsubscribe"],[42,28,28,34],[42,29,28,35],[42,30,28,36],[43,8,29,12],[44,8,30,12],[44,14,30,18,"error"],[44,19,30,23],[45,6,31,8],[46,4,32,4],[46,5,32,5],[47,4,33,4],[47,11,33,11,"AsyncScheduler"],[47,25,33,25],[48,2,34,0],[48,3,34,1],[48,4,34,2,"Scheduler"],[48,14,34,11],[48,15,34,11,"Scheduler"],[48,24,34,11],[48,25,34,13],[49,0,34,14],[49,3]],"functionMap":{"names":["","","AsyncScheduler","prototype.flush"],"mappings":"AAA;sBCE;ICE;KDM;qCEC;KFoB;CDE"},"hasCjsExports":false},"type":"js/module"}]}