import{Va as p,a,b as u,c,d as l,e as m,eb as S,f as R,jb as v,lb as f}from"./chunk-RKHDN2Z7.mjs";var n=class extends f{static{a(this,"RailroadTokenBuilder")}constructor(){super(["railroad-beta"])}};var C=a(d=>{let e=d.slice(1,-1),r="";for(let t=0;t<e.length;t++){let i=e[t];if(i==="\\"&&t+1<e.length){t++;let o=e[t];switch(o){case"n":r+=`
`;break;case"r":r+="\r";break;case"t":r+="	";break;default:r+=o}continue}r+=i}return r},"decodeEscapedString"),s=class extends v{static{a(this,"RailroadValueConverter")}runConverter(e,r,t){let i=super.runConverter(e,r,t);if(e.name==="TITLE"&&typeof i=="string"){let o=i.trim();if(o.startsWith('"')&&o.endsWith('"')||o.startsWith("'")&&o.endsWith("'"))return C(o)}return i}runCustomConverter(e,r,t){if(e.name==="RR_STRING")return C(r)}};var g={parser:{TokenBuilder:a(()=>new n,"TokenBuilder"),ValueConverter:a(()=>new s,"ValueConverter")}};function k(d=m){let e=l(c(d),p),r=l(u({shared:e}),S,g);return e.ServiceRegistry.register(r),{shared:e,Railroad:r}}a(k,"createRailroadServices");export{g as a,k as b};
