import { markdownSpace as m } from "../../../micromark-util-character@2.1.1/node_modules/micromark-util-character/index.es.js";
function p(n, t, i, u) {
  const o = u ? u - 1 : Number.POSITIVE_INFINITY;
  let I = 0;
  return a;
  function a(r) {
    return m(r) ? (n.enter(i), e(r)) : t(r);
  }
  function e(r) {
    return m(r) && I++ < o ? (n.consume(r), e) : (n.exit(i), t(r));
  }
}
export {
  p as factorySpace
};
//# sourceMappingURL=index.es.js.map
