import{a as t,b as u,c as n,d as s,e as o,g as l,h as d,r as h,t as m}from"./chunk-4R4BOZG6.mjs";import{a}from"./chunk-AQ6EADP3.mjs";var A=class extends m{static{a(this,"ArchitectureTokenBuilder")}static{t(this,"ArchitectureTokenBuilder")}constructor(){super(["architecture"])}},C=class extends h{static{a(this,"ArchitectureValueConverter")}static{t(this,"ArchitectureValueConverter")}runCustomConverter(c,r,i){if(c.name==="ARCH_ICON")return r.replace(/[()]/g,"").trim();if(c.name==="ARCH_TEXT_ICON")return r.replace(/["()]/g,"");if(c.name==="ARCH_TITLE"){let e=r.replace(/^\[|]$/g,"").trim();return(e.startsWith('"')&&e.endsWith('"')||e.startsWith("'")&&e.endsWith("'"))&&(e=e.slice(1,-1),e=e.replace(/\\"/g,'"').replace(/\\'/g,"'")),e.trim()}}},v={parser:{TokenBuilder:t(()=>new A,"TokenBuilder"),ValueConverter:t(()=>new C,"ValueConverter")}};function p(c=o){let r=s(n(c),l),i=s(u({shared:r}),d,v);return r.ServiceRegistry.register(i),{shared:r,Architecture:i}}a(p,"createArchitectureServices");t(p,"createArchitectureServices");export{v as a,p as b};
