getParent = (node) => {
    if (!parents) {
      parents = mapNodesToParents(relativeNode);
    }

    return parents.get(node) || null;
  }
@type {Required<import('css-select').Options<import('../types.js').XastNode & { children?: any }, import('../types.js').XastElement>>['adapter']['getParent']}