"use strict";
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
const index = require("./src-transition-index.cjs");
const matcher = require("../d3-selection/src-matcher.cjs");
function transition_filter(match) {
  if (typeof match !== "function") match = matcher.default(match);
  for (var groups = this._groups, m = groups.length, subgroups = new Array(m), j = 0; j < m; ++j) {
    for (var group = groups[j], n = group.length, subgroup = subgroups[j] = [], node, i = 0; i < n; ++i) {
      if ((node = group[i]) && match.call(node, node.__data__, i, group)) {
        subgroup.push(node);
      }
    }
  }
  return new index.Transition(subgroups, this._parents, this._name, this._id);
}
exports.default = transition_filter;
//# sourceMappingURL=src-transition-filter.cjs.map
