import { __extends } from "tslib";
import { EventEmitter } from 'events';
import State from '../core/State';
/** ********************************************************************
 *
 *  数据载入相关
 *  loadStart
 *    ()=>{}
 *  loading
 *    (xhr)=>{}
 *  loadComplate
 *    ()=>{}
 *
 ***********************************************************************/
var StateControl = /** @class */ (function (_super) {
    __extends(StateControl, _super);
    function StateControl() {
        var _this = _super.call(this) || this;
        _this._state = State;
        _this._mFh = new WeakMap();
        return _this;
    }
    Object.defineProperty(StateControl.prototype, "state", {
        get: function () {
            return this._state;
        },
        enumerable: true,
        configurable: true
    });
    Object.defineProperty(StateControl.prototype, "isDebug", {
        get: function () {
            return window['DEBUG'];
        },
        enumerable: true,
        configurable: true
    });
    return StateControl;
}(EventEmitter));
export default StateControl;
