1 2!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="6d503e2a-ede8-5970-9d9a-bec5345486a5")}catch(e){}}(); 3import{a,b as m,c as p}from"./chunk-2MLQ67GN.js";import{a as s}from"./chunk-6MRZZVFL.js";import{b as l}from"./chunk-JFTDZTFV.js";import"./chunk-NLV7VSO3.js";import"./chunk-WYGYBMWR.js";import"./chunk-CB7EZ5JL.js";import"./chunk-RO3T7V4S.js";import"./chunk-JDZDMVNY.js";import"./chunk-NI3WHUNF.js";import"./chunk-BCURNYD7.js";import{b as i}from"./chunk-OZBAEEG3.js";import"./chunk-KFSQEYMX.js";import"./chunk-D5VZV23O.js";import"./chunk-47DTPZVN.js";import"./chunk-FGY6DL73.js";import"./chunk-LHWM6OY6.js";import"./chunk-GVZ5IDJC.js";import"./chunk-PGSG5M2D.js";import"./chunk-KUX5NN3Y.js";import"./chunk-7BBWNLDG.js";import"./chunk-DQGO7NZ2.js";import"./chunk-DZAP62TN.js";import{a as n}from"./chunk-YM3IBQ2Y.js";import"./chunk-D3IISWFN.js";import"./chunk-LWC2IYO2.js";import{a as t}from"./chunk-4PJLQSXC.js";import"./chunk-LQBRM3ES.js";var f=i().RailroadPeg.parser.LangiumParser,c=t(e=>{let r=e.alternatives.map(d);return r.length===1?r[0]:{type:"choice",alternatives:r}},"transformOrderedChoice"),d=t(e=>{let r=e.elements.map(P);return r.length===1?r[0]:{type:"sequence",elements:r}},"transformSequence"),P=t(e=>{let r=g(e.suffix);return e.operator?{type:"special",text:e.operator==="&"?`&${u(r)}`:`!${u(r)}`}:r},"transformPrefix"),u=t(e=>{switch(e.type){case"terminal":return`"${e.value}"`;case"nonterminal":return e.name;case"special":return e.text;default:return"(...)"}},"nodeToLabel"),g=t(e=>{let r=v(e.primary);if(!e.operator)return r;switch(e.operator){case"?":return{type:"optional",element:r};case"*":return{type:"repetition",element:r,min:0,max:1/0};case"+":return{type:"repetition",element:r,min:1,max:1/0};default:throw new Error(`Unsupported PEG suffix operator: ${e.operator}`)}},"transformSuffix"),v=t(e=>{switch(e.$type){case"PegLiteral":return{type:"terminal",value:e.value};case"PegIdentifier":return{type:"nonterminal",name:e.name};case"PegGroup":return c(e.element);case"PegAny":return{type:"special",text:e.dot};default:throw new Error(`Unsupported PEG primary node: ${e.$type}`)}},"transformPrimary"),y=t(e=>({name:e.name,definition:c(e.definition)}),"transformRule"),h=t(e=>{s(e,a),e.title&&a.setTitle(e.title),e.rules.map(r=>a.addRule(y(r)))},"populateDb"),b={parse:t(e=>{a.clear(),n.debug("[PEG Parser] Starting Langium parse");let r=f.parse(e);if(r.lexerErrors.length>0||r.parserErrors.length>0)throw new l(r);let o=r.value;n.debug("[PEG Parser] Parsed rules:",o.rules.length),h(o),n.debug("[PEG Parser] Parse complete")},"parse"),parser:{yy:a}},R={parser:b,db:a,renderer:p,styles:m};export{R as diagram}; 4 5//# debugId=6d503e2a-ede8-5970-9d9a-bec5345486a5
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.