"use strict";
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
const index = require("../hast-util-whitespace/lib-index.cjs");
const siblingAfter = siblings(1);
const siblingBefore = siblings(-1);
const emptyChildren = [];
function siblings(increment) {
  return sibling;
  function sibling(parent, index$1, includeWhitespace) {
    const siblings2 = parent ? parent.children : emptyChildren;
    let offset = (index$1 || 0) + increment;
    let next = siblings2[offset];
    if (!includeWhitespace) {
      while (next && index.whitespace(next)) {
        offset += increment;
        next = siblings2[offset];
      }
    }
    return next;
  }
}
exports.siblingAfter = siblingAfter;
exports.siblingBefore = siblingBefore;
//# sourceMappingURL=lib-omission-util-siblings.cjs.map
