//#region src/utils/svg.ts
var e = "http://www.w3.org/2000/svg";
function t(e, t) {
	for (let [n, r] of Object.entries(t)) e.setAttribute(n, String(r));
}
function n(r) {
	let i = document.createElementNS(e, r.tag);
	t(i, r.attrs);
	for (let e of r.children) i.appendChild(n(e));
	return i;
}
function r(t, r) {
	return n({
		tag: "svg",
		attrs: {
			...t,
			xmlns: e
		},
		children: r
	});
}
function i(e, t, n) {
	e.replaceChildren(r(t, n));
}
//#endregion
export { i as n, r as t };

//# sourceMappingURL=svg-C7L0aW2M.js.map