"use strict";
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
const utilities = require("../../_virtual/utilities.cjs");
var hasRequiredUtilities;
function requireUtilities() {
  if (hasRequiredUtilities) return utilities.__exports;
  hasRequiredUtilities = 1;
  Object.defineProperty(utilities.__exports, "__esModule", { value: true });
  utilities.__exports.camelCase = void 0;
  var CUSTOM_PROPERTY_REGEX = /^--[a-zA-Z0-9_-]+$/;
  var HYPHEN_REGEX = /-([a-z])/g;
  var NO_HYPHEN_REGEX = /^[^-]+$/;
  var VENDOR_PREFIX_REGEX = /^-(webkit|moz|ms|o|khtml)-/;
  var MS_VENDOR_PREFIX_REGEX = /^-(ms)-/;
  var skipCamelCase = function(property) {
    return !property || NO_HYPHEN_REGEX.test(property) || CUSTOM_PROPERTY_REGEX.test(property);
  };
  var capitalize = function(match, character) {
    return character.toUpperCase();
  };
  var trimHyphen = function(match, prefix) {
    return "".concat(prefix, "-");
  };
  var camelCase = function(property, options) {
    if (options === void 0) {
      options = {};
    }
    if (skipCamelCase(property)) {
      return property;
    }
    property = property.toLowerCase();
    if (options.reactCompat) {
      property = property.replace(MS_VENDOR_PREFIX_REGEX, trimHyphen);
    } else {
      property = property.replace(VENDOR_PREFIX_REGEX, trimHyphen);
    }
    return property.replace(HYPHEN_REGEX, capitalize);
  };
  utilities.__exports.camelCase = camelCase;
  return utilities.__exports;
}
exports.__require = requireUtilities;
//# sourceMappingURL=cjs-utilities.cjs.map
