export const demoEnabled = function () { const v = import.meta.env.VITE_NP_DEMO; return v === "1" || v === "true"; }; export * from "./src/cache"; export * from "./src/normalization"; export * from "./src/elementData"; export * from "./src/color"; export * from "./src/media"; export * from "./src/request"; export const getHttpHost = function (url: URL, domain?: string | null) { const port = ["80", "443", ""].includes(url.port) ? "" : ":" + url.port; return `${url.protocol}//${domain || url.hostname}${port}`; }; export * from "./src/string";