"use client";
u.peek = a;
function u(r, d, i) {
  let e = r.value || "", n = "`", c = -1;
  for (; new RegExp("(^|[^`])" + n + "([^`]|$)").test(e); )
    n += "`";
  for (/[^ \r\n]/.test(e) && (/^[ \r\n]/.test(e) && /[ \r\n]$/.test(e) || /^`|`$/.test(e)) && (e = " " + e + " "); ++c < i.unsafe.length; ) {
    const o = i.unsafe[c], s = i.compilePattern(o);
    let l;
    if (o.atBreak)
      for (; l = s.exec(e); ) {
        let t = l.index;
        e.charCodeAt(t) === 10 && e.charCodeAt(t - 1) === 13 && t--, e = e.slice(0, t) + " " + e.slice(l.index + 1);
      }
  }
  return n + e + n;
}
function a() {
  return "`";
}
export {
  u as inlineCode
};
