import { AbstractMermaidTokenBuilder as u, __name as i, AbstractMermaidValueConverter as n, MermaidGeneratedSharedModule as s, ArchitectureGeneratedModule as l } from "./chunk-FPAJGGOC.js";
import { EmptyFileSystem as d } from "../../../../../../../langium@3.3.1/node_modules/langium/lib/workspace/file-system-provider.js";
import { inject as a } from "../../../../../../../langium@3.3.1/node_modules/langium/lib/dependency-injection.js";
import { createDefaultSharedCoreModule as m, createDefaultCoreModule as h } from "../../../../../../../langium@3.3.1/node_modules/langium/lib/default-module.js";
var t, A = (t = class extends u {
  constructor() {
    super(["architecture"]);
  }
}, i(t, "ArchitectureTokenBuilder"), t), c, C = (c = class extends n {
  runCustomConverter(e, r, p) {
    if (e.name === "ARCH_ICON")
      return r.replace(/[()]/g, "").trim();
    if (e.name === "ARCH_TEXT_ICON")
      return r.replace(/["()]/g, "");
    if (e.name === "ARCH_TITLE")
      return r.replace(/[[\]]/g, "").trim();
  }
}, i(c, "ArchitectureValueConverter"), c), v = {
  parser: {
    TokenBuilder: /* @__PURE__ */ i(() => new A(), "TokenBuilder"),
    ValueConverter: /* @__PURE__ */ i(() => new C(), "ValueConverter")
  }
};
function f(o = d) {
  const e = a(
    m(o),
    s
  ), r = a(
    h({ shared: e }),
    l,
    v
  );
  return e.ServiceRegistry.register(r), { shared: e, Architecture: r };
}
i(f, "createArchitectureServices");
export {
  v as ArchitectureModule,
  f as createArchitectureServices
};
