var degrees = 180 / Math.PI, identity = {
	translateX: 0,
	translateY: 0,
	rotate: 0,
	skewX: 0,
	scaleX: 1,
	scaleY: 1
};
function decompose_default(t, n, r, i, a, o) {
	var s, c, l;
	return (s = Math.sqrt(t * t + n * n)) && (t /= s, n /= s), (l = t * r + n * i) && (r -= t * l, i -= n * l), (c = Math.sqrt(r * r + i * i)) && (r /= c, i /= c, l /= c), t * i < n * r && (t = -t, n = -n, l = -l, s = -s), {
		translateX: a,
		translateY: o,
		rotate: Math.atan2(n, t) * degrees,
		skewX: Math.atan(l) * degrees,
		scaleX: s,
		scaleY: c
	};
}
export { decompose_default as default, identity };
