import{__require as e}from"./utils.mjs";var r,n;function i(){if(n)return r;n=1;const i=e();return r=(e,r={})=>{const n=(e,a={})=>{const s=r.escapeInvalid&&i.isInvalidBrace(a),t=!0===e.invalid&&!0===r.escapeInvalid;let u="";if(e.value)return(s||t)&&i.isOpenOrClose(e)?"\\"+e.value:e.value;if(e.value)return e.value;if(e.nodes)for(const r of e.nodes)u+=n(r);return u};return n(e)}}export{i as __require};