import { k as RX_SPACES, l as RX_REGEXP_REPLACE, m as RX_UNDERSCORE, n as RX_LOWER_UPPER, o as RX_START_SPACE_WORD, p as RX_FIRST_START_SPACE_WORD } from "./constants-CXMQW_qx.mjs";
const startCase = (str) => str.replace(RX_UNDERSCORE, " ").replace(RX_LOWER_UPPER, (_, $1, $2) => `${$1} ${$2}`).replace(RX_FIRST_START_SPACE_WORD, (_, $1, $2) => $1 + $2.toUpperCase());
const titleCase = (str) => str.replace(RX_UNDERSCORE, " ").replace(RX_LOWER_UPPER, (_, $1, $2) => `${$1} ${$2}`).replace(RX_START_SPACE_WORD, (_, $1, $2) => $1 + $2.toUpperCase());
const upperFirst = (str) => {
  const trim = str.trim();
  return trim.charAt(0).toUpperCase() + trim.slice(1);
};
const escapeRegExp = (str) => str.replace(RX_REGEXP_REPLACE, "\\$&");
const escapeRegExpChars = (str) => escapeRegExp(str).replace(RX_SPACES, "\\s");
const toPascalCase = (str) => str.replace(/-./g, (match) => match.charAt(1).toUpperCase()).replace(/\b\w/g, (match) => match.toUpperCase()).replace(/\s+/g, "");
export {
  toPascalCase as a,
  escapeRegExpChars as e,
  startCase as s,
  titleCase as t,
  upperFirst as u
};
//# sourceMappingURL=stringUtils-BRGdLBKx.mjs.map
