"use strict";
/**
 * Bundled from yoctocolors-cjs
 * This is a zero-dependency bundle created by esbuild.
 */
"use strict";
var __defProp = Object.defineProperty;
var __getOwnPropNames = Object.getOwnPropertyNames;
var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
var __commonJS = (cb, mod) => function __require() {
  return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
};

// node_modules/.pnpm/yoctocolors-cjs@2.1.3/node_modules/yoctocolors-cjs/index.js
var require_yoctocolors_cjs = __commonJS({
  "node_modules/.pnpm/yoctocolors-cjs@2.1.3/node_modules/yoctocolors-cjs/index.js"(exports2, module2) {
    var tty = require("node:tty");
    var hasColors = tty?.WriteStream?.prototype?.hasColors?.() ?? false;
    var format = /* @__PURE__ */ __name((open, close) => {
      if (!hasColors) {
        return (input) => input;
      }
      const openCode = `\x1B[${open}m`;
      const closeCode = `\x1B[${close}m`;
      return (input) => {
        const string = input + "";
        let index = string.indexOf(closeCode);
        if (index === -1) {
          return openCode + string + closeCode;
        }
        let result = openCode;
        let lastIndex = 0;
        const reopenOnNestedClose = close === 22;
        const replaceCode = (reopenOnNestedClose ? closeCode : "") + openCode;
        while (index !== -1) {
          result += string.slice(lastIndex, index) + replaceCode;
          lastIndex = index + closeCode.length;
          index = string.indexOf(closeCode, lastIndex);
        }
        result += string.slice(lastIndex) + closeCode;
        return result;
      };
    }, "format");
    var colors2 = {};
    colors2.reset = format(0, 0);
    colors2.bold = format(1, 22);
    colors2.dim = format(2, 22);
    colors2.italic = format(3, 23);
    colors2.underline = format(4, 24);
    colors2.overline = format(53, 55);
    colors2.inverse = format(7, 27);
    colors2.hidden = format(8, 28);
    colors2.strikethrough = format(9, 29);
    colors2.black = format(30, 39);
    colors2.red = format(31, 39);
    colors2.green = format(32, 39);
    colors2.yellow = format(33, 39);
    colors2.blue = format(34, 39);
    colors2.magenta = format(35, 39);
    colors2.cyan = format(36, 39);
    colors2.white = format(37, 39);
    colors2.gray = format(90, 39);
    colors2.bgBlack = format(40, 49);
    colors2.bgRed = format(41, 49);
    colors2.bgGreen = format(42, 49);
    colors2.bgYellow = format(43, 49);
    colors2.bgBlue = format(44, 49);
    colors2.bgMagenta = format(45, 49);
    colors2.bgCyan = format(46, 49);
    colors2.bgWhite = format(47, 49);
    colors2.bgGray = format(100, 49);
    colors2.redBright = format(91, 39);
    colors2.greenBright = format(92, 39);
    colors2.yellowBright = format(93, 39);
    colors2.blueBright = format(94, 39);
    colors2.magentaBright = format(95, 39);
    colors2.cyanBright = format(96, 39);
    colors2.whiteBright = format(97, 39);
    colors2.bgRedBright = format(101, 49);
    colors2.bgGreenBright = format(102, 49);
    colors2.bgYellowBright = format(103, 49);
    colors2.bgBlueBright = format(104, 49);
    colors2.bgMagentaBright = format(105, 49);
    colors2.bgCyanBright = format(106, 49);
    colors2.bgWhiteBright = format(107, 49);
    module2.exports = colors2;
  }
});

// src/external/yoctocolors-cjs.js
var colors = require_yoctocolors_cjs();
module.exports = colors;
module.exports.default = colors;
