var _a, _b;
import { f as __name, g as createDefaultSharedCoreModule, h as createDefaultCoreModule, l as PieGrammarGeneratedModule, m as inject, n as AbstractMermaidValueConverter, p as EmptyFileSystem, s as MermaidGeneratedSharedModule, t as AbstractMermaidTokenBuilder } from "./chunk-TCCFYFTB-d3HOqL2I.js";
var PieTokenBuilder = (_a = class extends AbstractMermaidTokenBuilder {
  constructor() {
    super(["pie", "showData"]);
  }
}, __name(_a, "PieTokenBuilder"), _a), PieValueConverter = (_b = class extends AbstractMermaidValueConverter {
  runCustomConverter(e, l, u) {
    if (e.name === "PIE_SECTION_LABEL") return l.replace(/"/g, "").trim();
  }
}, __name(_b, "PieValueConverter"), _b), PieModule = { parser: {
  TokenBuilder: /* @__PURE__ */ __name(() => new PieTokenBuilder(), "TokenBuilder"),
  ValueConverter: /* @__PURE__ */ __name(() => new PieValueConverter(), "ValueConverter")
} };
function createPieServices(e = EmptyFileSystem) {
  let d = inject(createDefaultSharedCoreModule(e), MermaidGeneratedSharedModule), f = inject(createDefaultCoreModule({ shared: d }), PieGrammarGeneratedModule, PieModule);
  return d.ServiceRegistry.register(f), {
    shared: d,
    Pie: f
  };
}
__name(createPieServices, "createPieServices");
export {
  createPieServices as n,
  PieModule as t
};
