import color from "../../d3-color/src/color.js";
import constant_default from "./constant.js";
import rgb_default from "./rgb.js";
import numberArray_default, { isNumberArray } from "./numberArray.js";
import { genericArray } from "./array.js";
import date_default from "./date.js";
import number_default from "./number.js";
import object_default from "./object.js";
import string_default from "./string.js";
function value_default(u, d) {
	var f = typeof d, p;
	return d == null || f === "boolean" ? constant_default(d) : (f === "number" ? number_default : f === "string" ? (p = color(d)) ? (d = p, rgb_default) : string_default : d instanceof color ? rgb_default : d instanceof Date ? date_default : isNumberArray(d) ? numberArray_default : Array.isArray(d) ? genericArray : typeof d.valueOf != "function" && typeof d.toString != "function" || isNaN(d) ? object_default : number_default)(u, d);
}
export { value_default as default };
