var t = require; var e = module; var i = exports; Object.defineProperty(i, "__esModule", {value: !0}), (i.QueueExecutor = void 0), (i.QueueExecutor = class { constructor() { (this._isRuning = !1), (this._functions = []); } queueCnt() { return this._functions.length; } getState() { return this._isRuning; } setCallBack(t, e) { (this._callBack = t), (this._callBackTarget = e); } regist(t, e, i) { this._functions.push([t, e, i]), this.next(); } start() { this.next(); } finishFunc() { (this._isRuning = !1), this.next(); } reset() { (this._isRuning = !1), (this._functions = []); } next() { var t; this._isRuning || (0 == this._functions.length ? (this._callBack && this._callBack.call(this._callBackTarget), (this._callBack = null), (this._callBackTarget = null)) : ((this._isRuning = !0), (t = this._functions.shift())[0].apply(t[1], t[2]))); } });