const e=require(`../functions/utils/enum.utils.cjs`);var t=function(e){return e.DEVELOPMENT=`development`,e.PLAYGROUND=`playground`,e.PRODUCTION=`production`,e.STAGING=`staging`,e}({}),n={[t.DEVELOPMENT]:[`localhost`,`192.`,`127.`],[t.PLAYGROUND]:[`playground`],[t.STAGING]:[`working`,`staging`]},r=typeof process<`u`&&process?.release?.name===`node`,i=typeof process<`u`&&process.versions!=null&&process.versions.node!=null,a=typeof __webpack_require__<`u`,o=typeof window<`u`&&window?.location?.protocol===`chrome-extension:`;function s(e,t){return t.some(t=>e.includes(t))}var c=()=>(require(`dotenv`).config({path:`DOTENV_OVERRIDE`in process.env?process.env.DOTENV_OVERRIDE:void 0}),process.env.DEPLOYMENT_MODE?.startsWith(`production`)?t.PRODUCTION:e.toEnumValue(t,process.env.DEPLOYMENT_MODE)||t.DEVELOPMENT),l=(()=>{if(!r&&typeof window>`u`)return;if(r)return c();if(window?.location?.protocol===`chrome-extension:`)return e.toEnumValue(t,WALLET_DEPLOYMENT_MODE)||t.STAGING;let i=window?.location?.host;return s(i,n[t.DEVELOPMENT])?t.DEVELOPMENT:s(i,n[t.PLAYGROUND])?t.PLAYGROUND:s(i,n[t.STAGING])?t.STAGING:t.PRODUCTION})(),u=l===t.DEVELOPMENT,d=l===t.PLAYGROUND,f=l===t.STAGING,p=f||u||d,m=p||r&&l===t.PRODUCTION;exports.DEPLOYMENT_MODE=t,exports.deploymentMode=l,exports.isDevelopment=u,exports.isExtension=o,exports.isNode=i,exports.isNotClientProduction=m,exports.isNotProduction=p,exports.isPlayground=d,exports.isStaging=f,exports.isWebpack=a;