module.exports=[14686,a=>{"use strict";var b=a.i(47642),c=class extends b.AbstractMermaidTokenBuilder{static{(0,b.__name)(this,"TreemapTokenBuilder")}constructor(){super(["treemap"])}},d=/classDef\s+([A-Z_a-z]\w+)(?:\s+([^\n\r;]*))?;?/,e=class extends b.AbstractMermaidValueConverter{static{(0,b.__name)(this,"TreemapValueConverter")}runCustomConverter(a,b,c){if("NUMBER2"===a.name)return parseFloat(b.replace(/,/g,""));if("SEPARATOR"===a.name)return b.substring(1,b.length-1);if("STRING2"===a.name)return b.substring(1,b.length-1);if("INDENTATION"===a.name)return b.length;if("ClassDef"===a.name){if("string"!=typeof b)return b;let a=d.exec(b);if(a)return{$type:"ClassDefStatement",className:a[1],styleText:a[2]||void 0}}}};function f(a){let b=a.validation.TreemapValidator,c=a.validation.ValidationRegistry;if(c){let a={Treemap:b.checkSingleRoot.bind(b)};c.register(a,b)}}(0,b.__name)(f,"registerValidationChecks");var g=class{static{(0,b.__name)(this,"TreemapValidator")}checkSingleRoot(a,b){let c;for(let d of a.TreemapRows)d.item&&(void 0===c&&void 0===d.indent?c=0:void 0===d.indent?b("error","Multiple root nodes are not allowed in a treemap.",{node:d,property:"item"}):void 0!==c&&c>=parseInt(d.indent,10)&&b("error","Multiple root nodes are not allowed in a treemap.",{node:d,property:"item"}))}},h={parser:{TokenBuilder:(0,b.__name)(()=>new c,"TokenBuilder"),ValueConverter:(0,b.__name)(()=>new e,"ValueConverter")},validation:{TreemapValidator:(0,b.__name)(()=>new g,"TreemapValidator")}};function i(a=b.EmptyFileSystem){let c=(0,b.inject)((0,b.createDefaultSharedCoreModule)(a),b.MermaidGeneratedSharedModule),d=(0,b.inject)((0,b.createDefaultCoreModule)({shared:c}),b.TreemapGrammarGeneratedModule,h);return c.ServiceRegistry.register(d),f(d),{shared:c,Treemap:d}}(0,b.__name)(i,"createTreemapServices"),a.s(["TreemapModule",0,h,"createTreemapServices",0,i])},47475,a=>{"use strict";var b=a.i(14686);a.i(47642),a.s([],49165),a.i(49165),a.s(["createTreemapServices",()=>b.createTreemapServices],47475)}];

//# sourceMappingURL=0h7._%40mermaid-js_parser_dist_chunks_mermaid-parser_core_0f9.9f6._.js.map