import {
  __name
} from "./chunk-QHRZIVGK.js";

// ../../node_modules/.pnpm/mermaid@11.12.2/node_modules/mermaid/dist/chunks/mermaid.core/chunk-QZHKN3VN.mjs
var _a;
var ImperativeState = (_a = class {
  /**
   * @param init - Function that creates the default state.
   */
  constructor(init) {
    this.init = init;
    this.records = this.init();
  }
  reset() {
    this.records = this.init();
  }
}, __name(_a, "ImperativeState"), _a);

export {
  ImperativeState
};
//# sourceMappingURL=chunk-WBBKRGXR.js.map
