const o = ({
  enforceDownloadInNewTab: r,
  url: e,
  filename: a
}) => {
  const t = document.createElement("a");
  t.setAttribute("href", e), r ? t.setAttribute("target", "_blank") : t.setAttribute("target", "_self");
  const n = window.__streamlit?.DOWNLOAD_ASSETS_BASE_URL;
  return (!n || !e.startsWith(n) || window.navigator.userAgent.includes("Firefox")) && t.setAttribute("download", a), t;
};
export {
  o as a
};
//# sourceMappingURL=createDownloadLinkElement-CbRjLJ8e-BjJEUuqX.js.map
