import { a as d } from "./constants-DX7-soSQ.mjs";
function r(o, t = {}) {
  window.__CONNECT_CONFIG = t.config, window.__CONNECT_THEME = t.theme;
  const n = document.createElement("div");
  n.id = "wormhole-connect";
  const c = t.version ?? d, i = t.cdnBaseUrl ?? `https://cdn.jsdelivr.net/npm/@wormhole-foundation/wormhole-connect@${c}`, e = document.createElement("script");
  e.setAttribute("src", `${i}/dist/main.js`), e.setAttribute("type", "module"), o.appendChild(n), o.appendChild(e);
}
export {
  r as wormholeConnectHosted
};
