"use strict";
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 std_exports = {};
__export(std_exports, {
  std: () => std
});
module.exports = __toCommonJS(std_exports);
var import_node_process = require("node:process");
var import_printer = require("./printer.js");
var import_text_builder = require("./text-builder.js");
var import_text_writer = require("./text-writer.js");
/**
 * @license
 * Copyright 2022-2026 Greg Lauckhart <greg@lauckhart.com>
 * SPDX-License-Identifier: Apache-2.0
 */
const DEFAULT_WRAP_PREFIX = `  ${import_text_builder.ansi.dim}\u2937${import_text_builder.ansi.not.dim} `;
var std;
((std2) => {
  std2.out = (0, import_printer.Printer)(new import_text_writer.TextWriter((text) => import_node_process.stdout.write(text), { terminalWidth: import_node_process.stdout.columns }), {
    wrap: { wrapPrefix: DEFAULT_WRAP_PREFIX, preserveSpace: true }
  });
  std2.err = (0, import_printer.Printer)(new import_text_writer.TextWriter((text) => import_node_process.stderr.write(text), { terminalWidth: import_node_process.stderr.columns }), {
    wrap: { wrapPrefix: DEFAULT_WRAP_PREFIX, preserveSpace: true }
  });
})(std || (std = {}));
//# sourceMappingURL=std.js.map
