import "../../utils/type.js";
import e from "../../utils/unpack.js";
import g from "../lab/rgb2lab.js";
import f from "./lab2lch.js";
const k = (...t) => {
  const [o, c, b, ...r] = e(t, "rgb"), [l, m, n] = g(o, c, b), [a, p, s] = f(l, m, n);
  return [a, p, s, ...r.length > 0 && r[0] < 1 ? [r[0]] : []];
};
export {
  k as default
};
//# sourceMappingURL=rgb2lch.js.map
