import { __exports as o } from "../../../../../../../../_virtual/toIdentifier.js";
import "../validators/isValidIdentifier.js";
import "../../../../../../@babel_helper-validator-identifier@7.18.6/node_modules/@babel/helper-validator-identifier/lib/index.js";
import { __exports as a } from "../../../../../../../../_virtual/isValidIdentifier.js";
import { __exports as f } from "../../../../../../../../_virtual/index25.js";
Object.defineProperty(o, "__esModule", {
  value: !0
});
o.default = s;
var d = a, n = f;
function s(r) {
  r = r + "";
  let e = "";
  for (const t of r)
    e += (0, n.isIdentifierChar)(t.codePointAt(0)) ? t : "-";
  return e = e.replace(/^[-0-9]+/, ""), e = e.replace(/[-\s]+(.)?/g, function(t, i) {
    return i ? i.toUpperCase() : "";
  }), (0, d.default)(e) || (e = `_${e}`), e || "_";
}
//# sourceMappingURL=toIdentifier.js.map
