"use client";
u.peek = k;
function u(n, m, e, l) {
  const o = n.referenceType, a = e.enter("imageReference");
  let f = e.enter("label");
  const c = e.createTracker(l);
  let r = c.move("![");
  const t = e.safe(n.alt, {
    before: r,
    after: "]",
    ...c.current()
  });
  r += c.move(t + "]["), f();
  const s = e.stack;
  e.stack = [], f = e.enter("reference");
  const i = e.safe(e.associationId(n), {
    before: r,
    after: "]",
    ...c.current()
  });
  return f(), e.stack = s, a(), o === "full" || !t || t !== i ? r += c.move(i + "]") : o === "shortcut" ? r = r.slice(0, -1) : r += c.move("]"), r;
}
function k() {
  return "!";
}
export {
  u as imageReference
};
