async function toBlob(url) {
  const svgText = decodeURIComponent(url.split(",")[1]);
  return new Blob([svgText], { type: "image/svg+xml" });
}
Converts an SVG data URL to a Blob.

@param {string} url - SVG data URL
@returns {Promise<Blob>} The resulting SVG Blob