function n(r) {
  if (typeof r == "boolean")
    return r;
  if (r === "true")
    return !0;
  if (r === "false")
    return !1;
}
function e(r) {
  if (typeof r == "number" && Number.isFinite(r))
    return r;
  if (typeof r == "string" && r.trim() !== "") {
    const i = Number(r);
    if (Number.isFinite(i))
      return i;
  }
}
function o(r) {
  if (typeof r == "number" && Number.isFinite(r))
    return r;
  if (typeof r == "string" && r.trim() !== "")
    return r.trim();
}
function t(r) {
  if (typeof r != "string")
    return;
  const i = r.trim();
  return i !== "" ? i : void 0;
}
function f(r) {
  return typeof r == "number" && Number.isFinite(r) ? r : t(r);
}
export {
  n as coerceBoolean,
  e as coerceFiniteNumber,
  o as coerceId,
  f as normalizeFiniteNumberOrString,
  t as normalizeNonEmptyString
};
