import { isInEmbededEnv as a } from "./index-is-in-embeded-env.js";
import { rcWindow as e } from "./index-window.store.js";
const r = (t) => {
  if (!t || t.startsWith("http:") || t.startsWith("https:") || t.startsWith("data:image") || a())
    return t;
  const s = e.__ENDPOINT_ENV__;
  return `${s ? `https://${s}.rankingcoach.com` : "https://rankingcoach.com"}/${t}`;
};
export {
  r as updateImageUrlWithBaseRequest
};
