"use strict";
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
const creator = require("./src-creator.cjs");
const selector = require("./src-selector.cjs");
function constantNull() {
  return null;
}
function selection_insert(name, before) {
  var create = typeof name === "function" ? name : creator.default(name), select = before == null ? constantNull : typeof before === "function" ? before : selector.default(before);
  return this.select(function() {
    return this.insertBefore(create.apply(this, arguments), select.apply(this, arguments) || null);
  });
}
exports.default = selection_insert;
//# sourceMappingURL=src-selection-insert.cjs.map
