1import{d as a,r as p,g as s}from"./chunk-MOJQB5TN-BwMJlYYP.js";import{p as l}from"./chunk-JWPE2WC7-kvD9-0uv.js";import{_ as t,l as n}from"./Admin-DyqaYVhF.js";import{d as u,M as c}from"./cynefin-VYW2F7L2-CwooMiF4.js";import"./markdown--GtaSHee.js";import"./recharts-BeKZuLkv.js";import"./select-DYvesJGt.js";import"./index-CwLMpyPQ.js";import"./supabase-CXOtveJb.js";import"./index-CDEGERko.js";import"./Logo-CmSzrewh.js";import"./button-CvWIh0wA.js";import"./claim-api-Cx9cUfTi.js";import"./card-BpT7KXvn.js";import"./popover-C8biE7SC.js";import"./badge-Be4qcw1N.js";import"./textarea-D2ju_SPA.js";import"./loader-circle-E8ifEcGx.js";import"./refresh-cw-4ldpb0-s.js";import"./copy-_Mw3LfSg.js";import"./users-C7re592J.js";import"./bot-Ckjuc9jk.js";import"./square-CUyGi08w.js";import"./plus-DvajB_f2.js";import"./eye-C_5ZLeIN.js";import"./sparkles-BMOYLD50.js";import"./dialog-D1cdDpAI.js";import"./circle-check-big-C2b98zPA.js";import"./circle-x-DW4hRh-i.js";import"./calendar-lScbt-82.js";import"./heart-Cyg43O5M.js";import"./arrow-left-DvkoChDz.js";var f=u().RailroadPeg.parser.LangiumParser,m=t(r=>{const e=r.alternatives.map(d);return e.length===1?e[0]:{type:"choice",alternatives:e}},"transformOrderedChoice"),d=t(r=>{const e=r.elements.map(P);return e.length===1?e[0]:{type:"sequence",elements:e}},"transformSequence"),P=t(r=>{const e=g(r.suffix);return r.operator?{type:"special",text:r.operator==="&"?`&${i(e)}`:`!${i(e)}`}:e},"transformPrefix"),i=t(r=>{switch(r.type){case"terminal":return`"${r.value}"`;case"nonterminal":return r.name;case"special":return r.text;default:return"(...)"}},"nodeToLabel"),g=t(r=>{const e=v(r.primary);if(!r.operator)return e;switch(r.operator){case"?":return{type:"optional",element:e};case"*":return{type:"repetition",element:e,min:0,max:1/0};case"+":return{type:"repetition",element:e,min:1,max:1/0};default:throw new Error(`Unsupported PEG suffix operator: ${r.operator}`)}},"transformSuffix"),v=t(r=>{switch(r.$type){case"PegLiteral":return{type:"terminal",value:r.value};case"PegIdentifier":return{type:"nonterminal",name:r.name};case"PegGroup":return m(r.element);case"PegAny":return{type:"special",text:r.dot};default:throw new Error(`Unsupported PEG primary node: ${r.$type}`)}},"transformPrimary"),y=t(r=>({name:r.name,definition:m(r.definition)}),"transformRule"),h=t(r=>{l(r,a),r.title&&a.setTitle(r.title),r.rules.map(e=>a.addRule(y(e)))},"populateDb"),b={parse:t(r=>{a.clear(),n.debug("[PEG Parser] Starting Langium parse");const e=f.parse(r);if(e.lexerErrors.length>0||e.parserErrors.length>0)throw new c(e);const o=e.value;n.debug("[PEG Parser] Parsed rules:",o.rules.length),h(o),n.debug("[PEG Parser] Parse complete")},"parse"),parser:{yy:a}},Z={parser:b,db:a,renderer:p,styles:s};export{Z as diagram};
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.