import { rnd2 as t } from "../../utils/index.js";
import n from "../../utils/unpack.js";
import c from "../../utils/last.js";
const m = (...e) => {
  const l = n(e, "lch");
  let o = c(e) || "lab";
  return l[0] = t(l[0]) + "%", l[1] = t(l[1]), l[2] = isNaN(l[2]) ? "none" : t(l[2]) + "deg", o === "lcha" || l.length > 3 && l[3] < 1 ? l[3] = "/ " + (l.length > 3 ? l[3] : 1) : l.length = 3, `lch(${l.join(" ")})`;
};
export {
  m as default
};
//# sourceMappingURL=lch2css.js.map
