//#region ../../node_modules/@iconify/utils/lib/svg/size.js
var e = /(-?[0-9.]*[0-9]+[0-9.]*)/g, t = /^-?[0-9.]*[0-9]+[0-9.]*$/g;
function n(n, r, i) {
	if (r === 1) return n;
	if (i ||= 100, typeof n == "number") return Math.ceil(n * r * i) / i;
	if (typeof n != "string") return n;
	let a = n.split(e);
	if (a === null || !a.length) return n;
	let o = [], s = a.shift(), c = t.test(s);
	for (;;) {
		if (c) {
			let e = parseFloat(s);
			isNaN(e) ? o.push(s) : o.push(Math.ceil(e * r * i) / i);
		} else o.push(s);
		if (s = a.shift(), s === void 0) return o.join("");
		c = !c;
	}
}
//#endregion
export { n as calculateSize };
