import { AbstractMermaidTokenBuilder as e, AbstractMermaidValueConverter as t, EmptyFileSystem as n, MermaidGeneratedSharedModule as r, TreeViewGrammarGeneratedModule 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-WCWK7LTN.mjs
var l = class extends t {
	static {
		a(this, "TreeViewValueConverter");
	}
	runCustomConverter(e, t, n) {
		if (e.name === "INDENTATION") return t?.length || 0;
		if (e.name === "STRING2") return t.substring(1, t.length - 1);
	}
}, u = class extends e {
	static {
		a(this, "TreeViewTokenBuilder");
	}
	constructor() {
		super(["treeView-beta"]);
	}
}, d = { parser: {
	TokenBuilder: /* @__PURE__ */ a(() => new u(), "TokenBuilder"),
	ValueConverter: /* @__PURE__ */ a(() => new l(), "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,
		TreeView: a
	};
}
a(f, "createTreeViewServices");
//#endregion
export { d as TreeViewModule, f as createTreeViewServices };

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