try {
  let e = typeof window < "u" ? window : typeof global < "u" ? global : typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : {}, n = new e.Error().stack;
  n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "c5f2df7a-04d5-47ab-b522-e0e8a08df272", e._sentryDebugIdIdentifier = "sentry-dbid-c5f2df7a-04d5-47ab-b522-e0e8a08df272");
} catch {
}
const l = async (e, n) => {
  s(i(e), n);
}, i = (e, n = "application/octet-stream") => {
  const o = window.atob(e), t = o.length, a = new Array(t);
  for (let d = 0; d < t; d += 1)
    a[d] = o.charCodeAt(d);
  return new Blob([new Uint8Array(a)], { type: n });
}, s = (e, n) => {
  if ("msSaveBlob" in window.navigator && typeof window.navigator.msSaveBlob == "function")
    window.navigator.msSaveBlob(e, n);
  else {
    const o = window.URL.createObjectURL(e), t = document.createElement("a");
    t.style.display = "none", t.href = o, t.setAttribute("download", n), typeof t.download > "u" && t.setAttribute("target", "_blank"), document.body.appendChild(t), t.click(), document.body.removeChild(t), window.URL.revokeObjectURL(o);
  }
};
export {
  l as d
};
