var lazyCpus = function({ cpus }) { return () => { const array = new Array(navigator.hardwareConcurrency); function populate() { const results = cpus(), length = results.length; array.length = length; for (let i = 0;i < length; i++) array[i] = results[i]; } for (let i = 0;i < array.length; i++) { const instance = { get model() { if (array[i] === instance) populate(); return array[i].model; }, set model(value) { if (array[i] === instance) populate(); array[i].model = value; }, get speed() { if (array[i] === instance) populate(); return array[i].speed; }, set speed(value) { if (array[i] === instance) populate(); array[i].speed = value; }, get times() { if (array[i] === instance) populate(); return array[i].times; }, set times(value) { if (array[i] === instance) populate(); array[i].times = value; }, toJSON() { if (array[i] === instance) populate(); return array[i]; } }; array[i] = instance; } return array; }; }, bound = function(obj) { return { arch: obj.arch.bind(obj), cpus: lazyCpus(obj), endianness: obj.endianness.bind(obj), freemem: obj.freemem.bind(obj), getPriority: obj.getPriority.bind(obj), homedir: obj.homedir.bind(obj), hostname: obj.hostname.bind(obj), loadavg: obj.loadavg.bind(obj), networkInterfaces: obj.networkInterfaces.bind(obj), platform: obj.platform.bind(obj), release: obj.release.bind(obj), setPriority: obj.setPriority.bind(obj), get tmpdir() { return tmpdir; }, totalmem: obj.totalmem.bind(obj), type: obj.type.bind(obj), uptime: obj.uptime.bind(obj), userInfo: obj.userInfo.bind(obj), version: obj.version.bind(obj), machine: obj.machine.bind(obj), devNull: obj.devNull, EOL: obj.EOL, constants: obj.constants, [Symbol.for("CommonJS")]: 0 }; }, tmpdir = function() { var { Bun: Bun2 } = globalThis[Symbol.for("Bun.lazy")]("primordials"), env = Bun2.env; return tmpdir = function() { var path = env.TMPDIR || env.TMP || env.TEMP || "/tmp"; const length = path.length; if (length > 1 && path[length - 1] === "/") path = path.slice(0, -1); return path; }, tmpdir(); }, os = bound(Bun._Os()), { arch, cpus, endianness, freemem, getPriority, homedir, hostname, loadavg, networkInterfaces, platform, release, setPriority, totalmem, type, uptime, userInfo, version, machine, devNull, EOL, constants } = os, os_default = os; export { version, userInfo, uptime, type, totalmem, tmpdir, setPriority, release, platform, networkInterfaces, machine, loadavg, hostname, homedir, getPriority, freemem, endianness, devNull, os_default as default, cpus, constants, arch, EOL };