import { createDefaultCoreModule as e, createDefaultSharedCoreModule as t } from "../../../../../langium/lib/default-module.js";
import { inject as n } from "../../../../../langium/lib/dependency-injection.js";
import { EmptyFileSystem as r } from "../../../../../langium/lib/workspace/file-system-provider.js";
import { AbstractMermaidValueConverter as i, MermaidGeneratedSharedModule as a, WardleyGrammarGeneratedModule as o, __name as s } from "./chunk-K5T4RW27.js";
//#region ../../node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-CIAEETIT.mjs
var c = class extends i {
	static {
		s(this, "WardleyValueConverter");
	}
	runCustomConverter(e, t, n) {
		switch (e.name.toUpperCase()) {
			case "LINK_LABEL": return t.substring(1).trim();
			default: return;
		}
	}
}, l = { parser: { ValueConverter: /* @__PURE__ */ s(() => new c(), "ValueConverter") } };
function u(i = r) {
	let s = n(t(i), a), c = n(e({ shared: s }), o, l);
	return s.ServiceRegistry.register(c), {
		shared: s,
		Wardley: c
	};
}
s(u, "createWardleyServices");
//#endregion
export { l as WardleyModule, u as createWardleyServices };
