import { package_default as i } from "./chunk-XAJISQIX.js";
import { selectSvgElement as s } from "./chunk-EXTU4WIE.js";
import { configureSvgSize as p } from "./chunk-ABZYJK2D.js";
import { __name as a, log as o } from "./chunk-AGHRB4JF.js";
import { parse as g } from "../../../../../../@mermaid-js_parser@0.6.3/node_modules/@mermaid-js/parser/dist/mermaid-parser.core.js";
var m = {
  parse: /* @__PURE__ */ a(async (r) => {
    const e = await g("info", r);
    o.debug(e);
  }, "parse")
}, v = {
  version: i.version + ""
}, d = /* @__PURE__ */ a(() => v.version, "getVersion"), f = {
  getVersion: d
}, c = /* @__PURE__ */ a((r, e, n) => {
  o.debug(`rendering info diagram
` + r);
  const t = s(e);
  p(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"), l = { draw: c }, S = {
  parser: m,
  db: f,
  renderer: l
};
export {
  S as diagram
};
