import m from "../../utils/type.js";
import p from "../../utils/unpack.js";
import h from "../../chroma.js";
import o from "../../Color.js";
import t from "../input.js";
import i from "./hsl2rgb.js";
import l from "./rgb2hsl.js";
o.prototype.hsl = function() {
  return l(this._rgb);
};
const e = (...r) => new o(...r, "hsl");
h.hsl = e;
t.format.hsl = i;
t.autodetect.push({
  p: 2,
  test: (...r) => {
    if (r = p(r, "hsl"), m(r) === "array" && r.length === 3)
      return "hsl";
  }
});
export {
  e as hsl
};
//# sourceMappingURL=index.js.map
