import { AbstractMermaidTokenBuilder as e, AbstractMermaidValueConverter as t, EmptyFileSystem as n, MermaidGeneratedSharedModule as r, PieGrammarGeneratedModule as i, __name as a, createDefaultCoreModule as o, createDefaultSharedCoreModule as s, inject as c } from "./chunk-NNHCCRGN.js";
//#region ../../node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-MZUSXYTE.mjs
var l = class extends e {
	static {
		a(this, "PieTokenBuilder");
	}
	constructor() {
		super(["pie", "showData"]);
	}
}, u = class extends t {
	static {
		a(this, "PieValueConverter");
	}
	runCustomConverter(e, t, n) {
		if (e.name === "PIE_SECTION_LABEL") return t.replace(/"/g, "").trim();
	}
}, d = { parser: {
	TokenBuilder: /* @__PURE__ */ a(() => new l(), "TokenBuilder"),
	ValueConverter: /* @__PURE__ */ a(() => new u(), "ValueConverter")
} };
function f(e = n) {
	let t = c(s(e), r), a = c(o({ shared: t }), i, d);
	return t.ServiceRegistry.register(a), {
		shared: t,
		Pie: a
	};
}
a(f, "createPieServices");
//#endregion
export { d as PieModule, f as createPieServices };

//# sourceMappingURL=chunk-MZUSXYTE.js.map