import creator_default from "../creator.js";
import selector_default from "../selector.js";
function constantNull() {
	return null;
}
function insert_default(r, i) {
	var a = typeof r == "function" ? r : creator_default(r), o = i == null ? constantNull : typeof i == "function" ? i : selector_default(i);
	return this.select(function() {
		return this.insertBefore(a.apply(this, arguments), o.apply(this, arguments) || null);
	});
}
export { insert_default as default };
