import { isBezierDefinition } from "./index118.js";
import { generateLinearEasing } from "./index149.js";
import { supportsLinearEasing } from "./index174.js";
import { cubicBezierAsString } from "./index175.js";
import { supportedWaapiEasing } from "./index176.js";
//#region node_modules/motion-dom/dist/es/animation/waapi/easing/map-easing.mjs
function mapEasingToNativeEasing(easing, duration) {
	if (!easing) return;
	else if (typeof easing === "function") return supportsLinearEasing() ? generateLinearEasing(easing, duration) : "ease-out";
	else if (isBezierDefinition(easing)) return cubicBezierAsString(easing);
	else if (Array.isArray(easing)) return easing.map((segmentEasing) => mapEasingToNativeEasing(segmentEasing, duration) || supportedWaapiEasing.easeOut);
	else return supportedWaapiEasing[easing];
}
//#endregion
export { mapEasingToNativeEasing };

//# sourceMappingURL=index177.js.map