"use strict";
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
const namespace = require("./src-namespace.cjs");
const namespaces = require("./src-namespaces.cjs");
function creatorInherit(name) {
  return function() {
    var document = this.ownerDocument, uri = this.namespaceURI;
    return uri === namespaces.xhtml && document.documentElement.namespaceURI === namespaces.xhtml ? document.createElement(name) : document.createElementNS(uri, name);
  };
}
function creatorFixed(fullname) {
  return function() {
    return this.ownerDocument.createElementNS(fullname.space, fullname.local);
  };
}
function creator(name) {
  var fullname = namespace.default(name);
  return (fullname.local ? creatorFixed : creatorInherit)(fullname);
}
exports.default = creator;
//# sourceMappingURL=src-creator.cjs.map
