import { factorySpace as l } from "../../../../../micromark-factory-space@2.0.1/node_modules/micromark-factory-space/index.js";
import { blankLine as a } from "../../../../../micromark-core-commonmark@2.0.3/node_modules/micromark-core-commonmark/lib/blank-line.js";
import { content as e } from "../../../../../micromark-core-commonmark@2.0.3/node_modules/micromark-core-commonmark/lib/content.js";
const d = {
  tokenize: m
};
function m(n) {
  const o = this, i = n.attempt(
    // Try to parse a blank line.
    a,
    u,
    // Try to parse initial flow (essentially, only code).
    n.attempt(this.parser.constructs.flowInitial, r, l(n, n.attempt(this.parser.constructs.flow, r, n.attempt(e, r)), "linePrefix"))
  );
  return i;
  function u(t) {
    if (t === null) {
      n.consume(t);
      return;
    }
    return n.enter("lineEndingBlank"), n.consume(t), n.exit("lineEndingBlank"), o.currentConstruct = void 0, i;
  }
  function r(t) {
    if (t === null) {
      n.consume(t);
      return;
    }
    return n.enter("lineEnding"), n.consume(t), n.exit("lineEnding"), o.currentConstruct = void 0, i;
  }
}
export {
  d as flow
};
//# sourceMappingURL=flow.js.map
