import { __require as e } from "../_virtual/_rolldown/runtime.mjs";
import { toEnumValue as t } from "../functions/utils/enum.utils.mjs";
//#region libs/shared/common/src/constants/vite.constants.ts
var n = /* @__PURE__ */ function(e) {
	return e.DEVELOPMENT = "development", e.PLAYGROUND = "playground", e.PRODUCTION = "production", e.STAGING = "staging", e;
}({}), r = {
	[n.DEVELOPMENT]: [
		"localhost",
		"192.",
		"127."
	],
	[n.PLAYGROUND]: ["playground"],
	[n.STAGING]: ["working", "staging"]
}, i = typeof process < "u" && process?.release?.name === "node", a = typeof process < "u" && process.versions != null && process.versions.node != null, o = typeof __webpack_require__ < "u", s = typeof window < "u" && window?.location?.protocol === "chrome-extension:";
function c(e, t) {
	return t.some((t) => e.includes(t));
}
var l = () => (e("dotenv").config({ path: "DOTENV_OVERRIDE" in process.env ? process.env.DOTENV_OVERRIDE : void 0 }), process.env.DEPLOYMENT_MODE?.startsWith("production") ? n.PRODUCTION : t(n, process.env.DEPLOYMENT_MODE) || n.DEVELOPMENT), u = (() => {
	if (!i && typeof window > "u") return;
	if (i) return l();
	if (window?.location?.protocol === "chrome-extension:") return t(n, WALLET_DEPLOYMENT_MODE) || n.STAGING;
	let e = window?.location?.host;
	return c(e, r[n.DEVELOPMENT]) ? n.DEVELOPMENT : c(e, r[n.PLAYGROUND]) ? n.PLAYGROUND : c(e, r[n.STAGING]) ? n.STAGING : n.PRODUCTION;
})(), d = u === n.DEVELOPMENT, f = u === n.PLAYGROUND, p = u === n.STAGING, m = p || d || f, h = m || i && u === n.PRODUCTION;
//#endregion
export { n as DEPLOYMENT_MODE, u as deploymentMode, d as isDevelopment, s as isExtension, a as isNode, h as isNotClientProduction, m as isNotProduction, f as isPlayground, p as isStaging, o as isWebpack };
