/**
 * @license
 * Copyright 2022-2026 Matter.js Authors
 * SPDX-License-Identifier: Apache-2.0
 */
const initializers = Array();
var Boot;
((Boot2) => {
  function init(setup, kind = "platform") {
    initializers.push({ setup, kind });
    setup();
  }
  Boot2.init = init;
  function reboot(kind) {
    for (const initializer of initializers) {
      if (initializer.kind === "platform" && kind === "state") {
        continue;
      }
      if (kind === "state") {
        continue;
      }
      initializer.setup();
    }
  }
  Boot2.reboot = reboot;
})(Boot || (Boot = {}));
if (typeof MatterHooks !== "undefined") {
  MatterHooks?.bootSetup(Boot);
}
export {
  Boot
};
//# sourceMappingURL=Boot.js.map
