"use strict";
var _a, _b;
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
const chunkFPAJGGOC = require("./dist-chunks-mermaid-parser.core-chunk-FPAJGGOC.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 PieTokenBuilder = (_a = class extends chunkFPAJGGOC.AbstractMermaidTokenBuilder {
  constructor() {
    super(["pie", "showData"]);
  }
}, chunkFPAJGGOC.__name(_a, "PieTokenBuilder"), _a);
var PieValueConverter = (_b = class extends chunkFPAJGGOC.AbstractMermaidValueConverter {
  runCustomConverter(rule, input, _cstNode) {
    if (rule.name !== "PIE_SECTION_LABEL") {
      return void 0;
    }
    return input.replace(/"/g, "").trim();
  }
}, chunkFPAJGGOC.__name(_b, "PieValueConverter"), _b);
var PieModule = {
  parser: {
    TokenBuilder: /* @__PURE__ */ chunkFPAJGGOC.__name(() => new PieTokenBuilder(), "TokenBuilder"),
    ValueConverter: /* @__PURE__ */ chunkFPAJGGOC.__name(() => new PieValueConverter(), "ValueConverter")
  }
};
function createPieServices(context = fileSystemProvider.EmptyFileSystem) {
  const shared = dependencyInjection.inject(
    defaultModule.createDefaultSharedCoreModule(context),
    chunkFPAJGGOC.MermaidGeneratedSharedModule
  );
  const Pie = dependencyInjection.inject(
    defaultModule.createDefaultCoreModule({ shared }),
    chunkFPAJGGOC.PieGeneratedModule,
    PieModule
  );
  shared.ServiceRegistry.register(Pie);
  return { shared, Pie };
}
chunkFPAJGGOC.__name(createPieServices, "createPieServices");
exports.PieModule = PieModule;
exports.createPieServices = createPieServices;
//# sourceMappingURL=dist-chunks-mermaid-parser.core-chunk-T53DSG4Q.cjs.map
