import { joinURL as t } from "ufo";
function c(r) {
  const a = r.replace(/\/api\/space\/.+/, ""), e = r.replace(/\/$/, "").split("/").at(-4);
  return t(a, `/api/space/nft/display?spaceDid=${e}`);
}
function i(r) {
  const a = r.replace(/\/api\/space\/.+/, ""), e = r.replace(/\/$/, "").split("/").at(-4);
  return t(a, "space", e);
}
export {
  i as getSpaceHomeUrl,
  c as getSpaceNftDisplayUrlFromEndpoint
};
