"use client";
import e from "./rgb.js";
import { genericArray as f } from "./array.js";
import a from "./date.js";
import i from "./number.js";
import p from "./object.js";
import u from "./string.js";
import c from "./constant.js";
import s, { isNumberArray as l } from "./numberArray.js";
import n from "../../d3-color/src/color.js";
function O(m, r) {
  var o = typeof r, t;
  return r == null || o === "boolean" ? c(r) : (o === "number" ? i : o === "string" ? (t = n(r)) ? (r = t, e) : u : r instanceof n ? e : r instanceof Date ? a : l(r) ? s : Array.isArray(r) ? f : typeof r.valueOf != "function" && typeof r.toString != "function" || isNaN(r) ? p : i)(m, r);
}
export {
  O as default
};
