import { _ as r, l as s, aW as o, aa as i, aX as d } from "./index-CMZig9xg.js";
import { D as g } from "./mermaid-parser.core-Ce96PX3Q-CV9ue_xr.js";
var m = {
  parse: /* @__PURE__ */ r(async (e) => {
    const a = await g("info", e);
    s.debug(a);
  }, "parse")
}, p = { version: d }, v = /* @__PURE__ */ r(() => p.version, "getVersion"), c = {
  getVersion: v
}, l = /* @__PURE__ */ r((e, a, n) => {
  s.debug(`rendering info diagram
` + e);
  const t = o(a);
  i(t, 100, 400, !0), t.append("g").append("text").attr("x", 100).attr("y", 40).attr("class", "version").attr("font-size", 32).style("text-anchor", "middle").text(`v${n}`);
}, "draw"), f = { draw: l }, u = {
  parser: m,
  db: c,
  renderer: f
};
export {
  u as diagram
};
