"use strict";
/* Socket Lib - Built with rolldown */
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
const require_primordials_uncurry = require('./uncurry.js');
const require_smol_primordial = require('../smol/primordial.js');

//#region src/primordials/array.ts
/**
* @file Safe references to `Array`, typed-array, `ArrayBuffer`, `DataView`,
*   `Atomics`, and shared iterator-prototype primordials. `Array.fromAsync` and
*   `Array.prototype.with` are ES2024 / ES2023; the primordial captures the
*   live reference at module load so consumers never see a tampered global.
*/
const _smolPrimordial = /* @__PURE__ */ require_smol_primordial.getSmolPrimordial();
const ArrayCtor = Array;
const ArrayBufferCtor = ArrayBuffer;
const DataViewCtor = DataView;
const Float32ArrayCtor = Float32Array;
const Float64ArrayCtor = Float64Array;
const Int8ArrayCtor = Int8Array;
const Int16ArrayCtor = Int16Array;
const Int32ArrayCtor = Int32Array;
const Uint8ArrayCtor = Uint8Array;
const Uint8ClampedArrayCtor = Uint8ClampedArray;
const Uint16ArrayCtor = Uint16Array;
const Uint32ArrayCtor = Uint32Array;
const ArrayFrom = Array.from;
const ArrayFromAsync = Array.fromAsync;
const ArrayIsArray = _smolPrimordial?.arrayIsArray ?? Array.isArray;
const ArrayOf = Array.of;
const ArrayBufferIsView = ArrayBuffer.isView;
const AtomicsWait = Atomics.wait;
const ArrayPrototypeAt = require_primordials_uncurry.uncurryThis(Array.prototype.at);
const ArrayPrototypeConcat = require_primordials_uncurry.uncurryThis(Array.prototype.concat);
const ArrayPrototypeCopyWithin = require_primordials_uncurry.uncurryThis(Array.prototype.copyWithin);
const ArrayPrototypeEntries = require_primordials_uncurry.uncurryThis(Array.prototype.entries);
const ArrayPrototypeEvery = require_primordials_uncurry.uncurryThis(Array.prototype.every);
const ArrayPrototypeFill = require_primordials_uncurry.uncurryThis(Array.prototype.fill);
const ArrayPrototypeFilter = require_primordials_uncurry.uncurryThis(Array.prototype.filter);
const ArrayPrototypeFind = require_primordials_uncurry.uncurryThis(Array.prototype.find);
const ArrayPrototypeFindIndex = require_primordials_uncurry.uncurryThis(Array.prototype.findIndex);
const ArrayPrototypeFindLast = require_primordials_uncurry.uncurryThis(Array.prototype.findLast);
const ArrayPrototypeFindLastIndex = require_primordials_uncurry.uncurryThis(Array.prototype.findLastIndex);
const ArrayPrototypeFlat = require_primordials_uncurry.uncurryThis(Array.prototype.flat);
const ArrayPrototypeFlatMap = require_primordials_uncurry.uncurryThis(Array.prototype.flatMap);
const ArrayPrototypeForEach = require_primordials_uncurry.uncurryThis(Array.prototype.forEach);
const ArrayPrototypeIncludes = require_primordials_uncurry.uncurryThis(Array.prototype.includes);
const ArrayPrototypeIndexOf = require_primordials_uncurry.uncurryThis(Array.prototype.indexOf);
const ArrayPrototypeJoin = require_primordials_uncurry.uncurryThis(Array.prototype.join);
const ArrayPrototypeKeys = require_primordials_uncurry.uncurryThis(Array.prototype.keys);
const ArrayPrototypeLastIndexOf = require_primordials_uncurry.uncurryThis(Array.prototype.lastIndexOf);
const ArrayPrototypeMap = require_primordials_uncurry.uncurryThis(Array.prototype.map);
const ArrayPrototypePop = require_primordials_uncurry.uncurryThis(Array.prototype.pop);
const ArrayPrototypePush = require_primordials_uncurry.uncurryThis(Array.prototype.push);
const ArrayPrototypeReduce = require_primordials_uncurry.uncurryThis(Array.prototype.reduce);
const ArrayPrototypeReduceRight = require_primordials_uncurry.uncurryThis(Array.prototype.reduceRight);
const ArrayPrototypeReverse = require_primordials_uncurry.uncurryThis(Array.prototype.reverse);
const ArrayPrototypeShift = require_primordials_uncurry.uncurryThis(Array.prototype.shift);
const ArrayPrototypeSlice = require_primordials_uncurry.uncurryThis(Array.prototype.slice);
const ArrayPrototypeSome = require_primordials_uncurry.uncurryThis(Array.prototype.some);
const ArrayPrototypeSort = require_primordials_uncurry.uncurryThis(Array.prototype.sort);
const ArrayPrototypeSplice = require_primordials_uncurry.uncurryThis(Array.prototype.splice);
const ArrayPrototypeToLocaleString = require_primordials_uncurry.uncurryThis(Array.prototype.toLocaleString);
const ArrayPrototypeToReversed = require_primordials_uncurry.uncurryThis(Array.prototype.toReversed);
const ArrayPrototypeToSorted = require_primordials_uncurry.uncurryThis(Array.prototype.toSorted);
const ArrayPrototypeToSpliced = require_primordials_uncurry.uncurryThis(Array.prototype.toSpliced);
const ArrayPrototypeToString = require_primordials_uncurry.uncurryThis(Array.prototype.toString);
const ArrayPrototypeUnshift = require_primordials_uncurry.uncurryThis(Array.prototype.unshift);
const ArrayPrototypeValues = require_primordials_uncurry.uncurryThis(Array.prototype.values);
const ArrayPrototypeWith = require_primordials_uncurry.uncurryThis(Array.prototype.with);
const _anyIterator = (/* @__PURE__ */ new Map()).keys();
let _iteratorLookup = Object.getPrototypeOf(_anyIterator);
while (_iteratorLookup && typeof _iteratorLookup.next !== "function")
 /* c8 ignore next - Modern V8 puts Iterator.prototype one hop up the chain
so the first check already finds .next; the walk-further branch fires
only on hypothetical engines where the prototype layout differs. */
_iteratorLookup = Object.getPrototypeOf(_iteratorLookup);
const _iteratorProto = _iteratorLookup;
const IteratorPrototypeNext = require_primordials_uncurry.uncurryThis(_iteratorProto.next);
/* c8 ignore start */
const IteratorPrototypeReturn = typeof _iteratorProto.return === "function" ? require_primordials_uncurry.uncurryThis(_iteratorProto.return) : void 0;
/* c8 ignore stop */

//#endregion
exports.ArrayBufferCtor = ArrayBufferCtor;
exports.ArrayBufferIsView = ArrayBufferIsView;
exports.ArrayCtor = ArrayCtor;
exports.ArrayFrom = ArrayFrom;
exports.ArrayFromAsync = ArrayFromAsync;
exports.ArrayIsArray = ArrayIsArray;
exports.ArrayOf = ArrayOf;
exports.ArrayPrototypeAt = ArrayPrototypeAt;
exports.ArrayPrototypeConcat = ArrayPrototypeConcat;
exports.ArrayPrototypeCopyWithin = ArrayPrototypeCopyWithin;
exports.ArrayPrototypeEntries = ArrayPrototypeEntries;
exports.ArrayPrototypeEvery = ArrayPrototypeEvery;
exports.ArrayPrototypeFill = ArrayPrototypeFill;
exports.ArrayPrototypeFilter = ArrayPrototypeFilter;
exports.ArrayPrototypeFind = ArrayPrototypeFind;
exports.ArrayPrototypeFindIndex = ArrayPrototypeFindIndex;
exports.ArrayPrototypeFindLast = ArrayPrototypeFindLast;
exports.ArrayPrototypeFindLastIndex = ArrayPrototypeFindLastIndex;
exports.ArrayPrototypeFlat = ArrayPrototypeFlat;
exports.ArrayPrototypeFlatMap = ArrayPrototypeFlatMap;
exports.ArrayPrototypeForEach = ArrayPrototypeForEach;
exports.ArrayPrototypeIncludes = ArrayPrototypeIncludes;
exports.ArrayPrototypeIndexOf = ArrayPrototypeIndexOf;
exports.ArrayPrototypeJoin = ArrayPrototypeJoin;
exports.ArrayPrototypeKeys = ArrayPrototypeKeys;
exports.ArrayPrototypeLastIndexOf = ArrayPrototypeLastIndexOf;
exports.ArrayPrototypeMap = ArrayPrototypeMap;
exports.ArrayPrototypePop = ArrayPrototypePop;
exports.ArrayPrototypePush = ArrayPrototypePush;
exports.ArrayPrototypeReduce = ArrayPrototypeReduce;
exports.ArrayPrototypeReduceRight = ArrayPrototypeReduceRight;
exports.ArrayPrototypeReverse = ArrayPrototypeReverse;
exports.ArrayPrototypeShift = ArrayPrototypeShift;
exports.ArrayPrototypeSlice = ArrayPrototypeSlice;
exports.ArrayPrototypeSome = ArrayPrototypeSome;
exports.ArrayPrototypeSort = ArrayPrototypeSort;
exports.ArrayPrototypeSplice = ArrayPrototypeSplice;
exports.ArrayPrototypeToLocaleString = ArrayPrototypeToLocaleString;
exports.ArrayPrototypeToReversed = ArrayPrototypeToReversed;
exports.ArrayPrototypeToSorted = ArrayPrototypeToSorted;
exports.ArrayPrototypeToSpliced = ArrayPrototypeToSpliced;
exports.ArrayPrototypeToString = ArrayPrototypeToString;
exports.ArrayPrototypeUnshift = ArrayPrototypeUnshift;
exports.ArrayPrototypeValues = ArrayPrototypeValues;
exports.ArrayPrototypeWith = ArrayPrototypeWith;
exports.AtomicsWait = AtomicsWait;
exports.DataViewCtor = DataViewCtor;
exports.Float32ArrayCtor = Float32ArrayCtor;
exports.Float64ArrayCtor = Float64ArrayCtor;
exports.Int16ArrayCtor = Int16ArrayCtor;
exports.Int32ArrayCtor = Int32ArrayCtor;
exports.Int8ArrayCtor = Int8ArrayCtor;
exports.IteratorPrototypeNext = IteratorPrototypeNext;
exports.IteratorPrototypeReturn = IteratorPrototypeReturn;
exports.Uint16ArrayCtor = Uint16ArrayCtor;
exports.Uint32ArrayCtor = Uint32ArrayCtor;
exports.Uint8ArrayCtor = Uint8ArrayCtor;
exports.Uint8ClampedArrayCtor = Uint8ClampedArrayCtor;