"use strict";
var _a, _b;
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
const chunk4KMFLZZN = require("./dist-chunks-mermaid-parser.core-chunk-4KMFLZZN.cjs");
const fileSystemProvider = require("../../langium/lib-workspace-file-system-provider.cjs");
const dependencyInjection = require("../../langium/lib-dependency-injection.cjs");
const defaultModule = require("../../langium/lib-default-module.cjs");
var ArchitectureTokenBuilder = (_a = class extends chunk4KMFLZZN.AbstractMermaidTokenBuilder {
  constructor() {
    super(["architecture"]);
  }
}, chunk4KMFLZZN.__name(_a, "ArchitectureTokenBuilder"), _a);
var ArchitectureValueConverter = (_b = class extends chunk4KMFLZZN.AbstractMermaidValueConverter {
  runCustomConverter(rule, input, _cstNode) {
    if (rule.name === "ARCH_ICON") {
      return input.replace(/[()]/g, "").trim();
    } else if (rule.name === "ARCH_TEXT_ICON") {
      return input.replace(/["()]/g, "");
    } else if (rule.name === "ARCH_TITLE") {
      return input.replace(/[[\]]/g, "").trim();
    }
    return void 0;
  }
}, chunk4KMFLZZN.__name(_b, "ArchitectureValueConverter"), _b);
var ArchitectureModule = {
  parser: {
    TokenBuilder: /* @__PURE__ */ chunk4KMFLZZN.__name(() => new ArchitectureTokenBuilder(), "TokenBuilder"),
    ValueConverter: /* @__PURE__ */ chunk4KMFLZZN.__name(() => new ArchitectureValueConverter(), "ValueConverter")
  }
};
function createArchitectureServices(context = fileSystemProvider.EmptyFileSystem) {
  const shared = dependencyInjection.inject(
    defaultModule.createDefaultSharedCoreModule(context),
    chunk4KMFLZZN.MermaidGeneratedSharedModule
  );
  const Architecture = dependencyInjection.inject(
    defaultModule.createDefaultCoreModule({ shared }),
    chunk4KMFLZZN.ArchitectureGeneratedModule,
    ArchitectureModule
  );
  shared.ServiceRegistry.register(Architecture);
  return { shared, Architecture };
}
chunk4KMFLZZN.__name(createArchitectureServices, "createArchitectureServices");
exports.ArchitectureModule = ArchitectureModule;
exports.createArchitectureServices = createArchitectureServices;
//# sourceMappingURL=dist-chunks-mermaid-parser.core-chunk-JEIROHC2.cjs.map
