"use strict";
/* Socket Lib - Built with esbuild */
var __defProp = Object.defineProperty;
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
var __getOwnPropNames = Object.getOwnPropertyNames;
var __hasOwnProp = Object.prototype.hasOwnProperty;
var __export = (target, all) => {
  for (var name in all)
    __defProp(target, name, { get: all[name], enumerable: true });
};
var __copyProps = (to, from, except, desc) => {
  if (from && typeof from === "object" || typeof from === "function") {
    for (let key of __getOwnPropNames(from))
      if (!__hasOwnProp.call(to, key) && key !== except)
        __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
  }
  return to;
};
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
var process_exports = {};
__export(process_exports, {
  getAbortController: () => getAbortController,
  getAbortSignal: () => getAbortSignal,
  getSpinner: () => getSpinner
});
module.exports = __toCommonJS(process_exports);
let _abortController;
function getAbortController() {
  if (_abortController === void 0) {
    _abortController = new AbortController();
  }
  return _abortController;
}
function getAbortSignal() {
  return getAbortController().signal;
}
let _spinner;
function getSpinner() {
  if (_spinner === void 0) {
    const { Spinner: SpinnerFn } = require("#lib/spinner");
    _spinner = SpinnerFn() ?? null;
  }
  return _spinner ?? null;
}
// Annotate the CommonJS export names for ESM import in node:
0 && (module.exports = {
  getAbortController,
  getAbortSignal,
  getSpinner
});
