import selector_default from "../../../d3-selection/src/selector.js";
import schedule_default, { get } from "./schedule.js";
import { Transition } from "./index.js";
function select_default(i) {
	var a = this._name, o = this._id;
	typeof i != "function" && (i = selector_default(i));
	for (var s = this._groups, c = s.length, l = Array(c), u = 0; u < c; ++u) for (var d = s[u], f = d.length, p = l[u] = Array(f), m, h, g = 0; g < f; ++g) (m = d[g]) && (h = i.call(m, m.__data__, g, d)) && ("__data__" in m && (h.__data__ = m.__data__), p[g] = h, schedule_default(p[g], a, o, g, p, get(m, o)));
	return new Transition(l, this._parents, a, o);
}
export { select_default as default };
