System.register(["__unresolved_0", "cc", "__unresolved_1"], function (_export, _context) {
  "use strict";

  var _reporterNs, _cclegacy, Component, director, Node, Clock, CreatorContext, _crd;

  function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }

  function _reportPossibleCrUseOfClock(extras) {
    _reporterNs.report("Clock", "./Clock", _context.meta, extras);
  }

  _export("default", void 0);

  return {
    setters: [function (_unresolved_) {
      _reporterNs = _unresolved_;
    }, function (_cc) {
      _cclegacy = _cc.cclegacy;
      Component = _cc.Component;
      director = _cc.director;
      Node = _cc.Node;
    }, function (_unresolved_2) {
      Clock = _unresolved_2.Clock;
    }],
    execute: function () {
      _crd = true;

      _cclegacy._RF.push({}, "a1ba96rk5dKxJ/igoUI4maV", "CreatorContext", undefined);

      _export("default", CreatorContext = class CreatorContext extends Component {
        constructor(...args) {
          super(...args);

          _defineProperty(this, "clock", new (_crd && Clock === void 0 ? (_reportPossibleCrUseOfClock({
            error: Error()
          }), Clock) : Clock)());
        }

        static GetInstance() {
          if (CreatorContext.instance == null) {
            let gameObject = new Node();
            gameObject.name = "~Context";
            CreatorContext.instance = gameObject.addComponent(CreatorContext);
            director.getScene().addChild(gameObject);
          }

          return CreatorContext.instance;
        }

        static GetClock() {
          return CreatorContext.GetInstance().clock;
        } // LIFE-CYCLE CALLBACKS:


        // onLoad () {}
        start() {}

        update(dt) {
          this.clock.Update(dt);
        }

      });

      _defineProperty(CreatorContext, "instance", null);

      _cclegacy._RF.pop();

      _crd = false;
    }
  };
});
//# sourceMappingURL=CreatorContext.js.map