remark-mdat
Version:
A remark plugin implementing the Markdown Autophagic Template (MDAT) system.
1,297 lines (1,277 loc) • 877 kB
JavaScript
import { createRequire } from "node:module";
import picocolors from "picocolors";
import path from "node:path";
import { z } from "zod";
import { unified } from "unified";
import { VFile } from "vfile";
//#region rolldown:runtime
var __create = Object.create;
var __defProp = Object.defineProperty;
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
var __getOwnPropNames = Object.getOwnPropertyNames;
var __getProtoOf = Object.getPrototypeOf;
var __hasOwnProp = Object.prototype.hasOwnProperty;
var __commonJS = (cb, mod) => function() {
return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
};
var __export = (all$2) => {
let target = {};
for (var name in all$2) __defProp(target, name, {
get: all$2[name],
enumerable: true
});
return target;
};
var __copyProps = (to, from, except, desc) => {
if (from && typeof from === "object" || typeof from === "function") for (var keys = __getOwnPropNames(from), i = 0, n = keys.length, key$1; i < n; i++) {
key$1 = keys[i];
if (!__hasOwnProp.call(to, key$1) && key$1 !== except) __defProp(to, key$1, {
get: ((k) => from[k]).bind(null, key$1),
enumerable: !(desc = __getOwnPropDesc(from, key$1)) || desc.enumerable
});
}
return to;
};
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", {
value: mod,
enumerable: true
}) : target, mod));
var __require = /* @__PURE__ */ createRequire(import.meta.url);
//#endregion
//#region node_modules/.pnpm/cli-table3@0.6.5/node_modules/cli-table3/src/debug.js
var require_debug = /* @__PURE__ */ __commonJS({ "node_modules/.pnpm/cli-table3@0.6.5/node_modules/cli-table3/src/debug.js": ((exports, module) => {
let messages = [];
let level = 0;
const debug$3 = (msg, min) => {
if (level >= min) messages.push(msg);
};
debug$3.WARN = 1;
debug$3.INFO = 2;
debug$3.DEBUG = 3;
debug$3.reset = () => {
messages = [];
};
debug$3.setDebugLevel = (v) => {
level = v;
};
debug$3.warn = (msg) => debug$3(msg, debug$3.WARN);
debug$3.info = (msg) => debug$3(msg, debug$3.INFO);
debug$3.debug = (msg) => debug$3(msg, debug$3.DEBUG);
debug$3.debugMessages = () => messages;
module.exports = debug$3;
}) });
//#endregion
//#region node_modules/.pnpm/ansi-regex@5.0.1/node_modules/ansi-regex/index.js
var require_ansi_regex = /* @__PURE__ */ __commonJS({ "node_modules/.pnpm/ansi-regex@5.0.1/node_modules/ansi-regex/index.js": ((exports, module) => {
module.exports = ({ onlyFirst = false } = {}) => {
const pattern = ["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)", "(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-ntqry=><~]))"].join("|");
return new RegExp(pattern, onlyFirst ? void 0 : "g");
};
}) });
//#endregion
//#region node_modules/.pnpm/strip-ansi@6.0.1/node_modules/strip-ansi/index.js
var require_strip_ansi = /* @__PURE__ */ __commonJS({ "node_modules/.pnpm/strip-ansi@6.0.1/node_modules/strip-ansi/index.js": ((exports, module) => {
const ansiRegex = require_ansi_regex();
module.exports = (string$2) => typeof string$2 === "string" ? string$2.replace(ansiRegex(), "") : string$2;
}) });
//#endregion
//#region node_modules/.pnpm/is-fullwidth-code-point@3.0.0/node_modules/is-fullwidth-code-point/index.js
var require_is_fullwidth_code_point = /* @__PURE__ */ __commonJS({ "node_modules/.pnpm/is-fullwidth-code-point@3.0.0/node_modules/is-fullwidth-code-point/index.js": ((exports, module) => {
const isFullwidthCodePoint$1 = (codePoint) => {
if (Number.isNaN(codePoint)) return false;
if (codePoint >= 4352 && (codePoint <= 4447 || codePoint === 9001 || codePoint === 9002 || 11904 <= codePoint && codePoint <= 12871 && codePoint !== 12351 || 12880 <= codePoint && codePoint <= 19903 || 19968 <= codePoint && codePoint <= 42182 || 43360 <= codePoint && codePoint <= 43388 || 44032 <= codePoint && codePoint <= 55203 || 63744 <= codePoint && codePoint <= 64255 || 65040 <= codePoint && codePoint <= 65049 || 65072 <= codePoint && codePoint <= 65131 || 65281 <= codePoint && codePoint <= 65376 || 65504 <= codePoint && codePoint <= 65510 || 110592 <= codePoint && codePoint <= 110593 || 127488 <= codePoint && codePoint <= 127569 || 131072 <= codePoint && codePoint <= 262141)) return true;
return false;
};
module.exports = isFullwidthCodePoint$1;
module.exports.default = isFullwidthCodePoint$1;
}) });
//#endregion
//#region node_modules/.pnpm/emoji-regex@8.0.0/node_modules/emoji-regex/index.js
var require_emoji_regex = /* @__PURE__ */ __commonJS({ "node_modules/.pnpm/emoji-regex@8.0.0/node_modules/emoji-regex/index.js": ((exports, module) => {
module.exports = function() {
return /\uD83C\uDFF4\uDB40\uDC67\uDB40\uDC62(?:\uDB40\uDC65\uDB40\uDC6E\uDB40\uDC67|\uDB40\uDC73\uDB40\uDC63\uDB40\uDC74|\uDB40\uDC77\uDB40\uDC6C\uDB40\uDC73)\uDB40\uDC7F|\uD83D\uDC68(?:\uD83C\uDFFC\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68\uD83C\uDFFB|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFE])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFE\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFD])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFC])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83D\uDC68|(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D[\uDC66\uDC67])|[\u2695\u2696\u2708]\uFE0F|\uD83D[\uDC66\uDC67]|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|(?:\uD83C\uDFFB\u200D[\u2695\u2696\u2708]|\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708])\uFE0F|\uD83C\uDFFB\u200D(?:\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C[\uDFFB-\uDFFF])|(?:\uD83E\uDDD1\uD83C\uDFFB\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFC\u200D\uD83E\uDD1D\u200D\uD83D\uDC69)\uD83C\uDFFB|\uD83E\uDDD1(?:\uD83C\uDFFF\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1(?:\uD83C[\uDFFB-\uDFFF])|\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1)|(?:\uD83E\uDDD1\uD83C\uDFFE\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFF\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB-\uDFFE])|(?:\uD83E\uDDD1\uD83C\uDFFC\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFD\u200D\uD83E\uDD1D\u200D\uD83D\uDC69)(?:\uD83C[\uDFFB\uDFFC])|\uD83D\uDC69(?:\uD83C\uDFFE\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFC\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFB\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFC-\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D(?:\uD83D[\uDC68\uDC69])|\uD83D[\uDC68\uDC69])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD]))|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|(?:\uD83E\uDDD1\uD83C\uDFFD\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFE\u200D\uD83E\uDD1D\u200D\uD83D\uDC69)(?:\uD83C[\uDFFB-\uDFFD])|\uD83D\uDC69\u200D\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D[\uDC66\uDC67])|(?:\uD83D\uDC41\uFE0F\u200D\uD83D\uDDE8|\uD83D\uDC69(?:\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708]|\uD83C\uDFFB\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\u200D[\u2695\u2696\u2708])|(?:(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)\uFE0F|\uD83D\uDC6F|\uD83E[\uDD3C\uDDDE\uDDDF])\u200D[\u2640\u2642]|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2640\u2642]|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD6-\uDDDD])(?:(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2640\u2642]|\u200D[\u2640\u2642])|\uD83C\uDFF4\u200D\u2620)\uFE0F|\uD83D\uDC69\u200D\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|\uD83C\uDFF3\uFE0F\u200D\uD83C\uDF08|\uD83D\uDC15\u200D\uD83E\uDDBA|\uD83D\uDC69\u200D\uD83D\uDC66|\uD83D\uDC69\u200D\uD83D\uDC67|\uD83C\uDDFD\uD83C\uDDF0|\uD83C\uDDF4\uD83C\uDDF2|\uD83C\uDDF6\uD83C\uDDE6|[#\*0-9]\uFE0F\u20E3|\uD83C\uDDE7(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF])|\uD83C\uDDF9(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF])|\uD83C\uDDEA(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA])|\uD83E\uDDD1(?:\uD83C[\uDFFB-\uDFFF])|\uD83C\uDDF7(?:\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC])|\uD83D\uDC69(?:\uD83C[\uDFFB-\uDFFF])|\uD83C\uDDF2(?:\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF])|\uD83C\uDDE6(?:\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF])|\uD83C\uDDF0(?:\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF])|\uD83C\uDDED(?:\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA])|\uD83C\uDDE9(?:\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF])|\uD83C\uDDFE(?:\uD83C[\uDDEA\uDDF9])|\uD83C\uDDEC(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE])|\uD83C\uDDF8(?:\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF])|\uD83C\uDDEB(?:\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7])|\uD83C\uDDF5(?:\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE])|\uD83C\uDDFB(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA])|\uD83C\uDDF3(?:\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF])|\uD83C\uDDE8(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF5\uDDF7\uDDFA-\uDDFF])|\uD83C\uDDF1(?:\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE])|\uD83C\uDDFF(?:\uD83C[\uDDE6\uDDF2\uDDFC])|\uD83C\uDDFC(?:\uD83C[\uDDEB\uDDF8])|\uD83C\uDDFA(?:\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF])|\uD83C\uDDEE(?:\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9])|\uD83C\uDDEF(?:\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5])|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD6-\uDDDD])(?:\uD83C[\uDFFB-\uDFFF])|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uD83C[\uDFFB-\uDFFF])|(?:[\u261D\u270A-\u270D]|\uD83C[\uDF85\uDFC2\uDFC7]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC70\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDCAA\uDD74\uDD7A\uDD90\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC]|\uD83E[\uDD0F\uDD18-\uDD1C\uDD1E\uDD1F\uDD30-\uDD36\uDDB5\uDDB6\uDDBB\uDDD2-\uDDD5])(?:\uD83C[\uDFFB-\uDFFF])|(?:[\u231A\u231B\u23E9-\u23EC\u23F0\u23F3\u25FD\u25FE\u2614\u2615\u2648-\u2653\u267F\u2693\u26A1\u26AA\u26AB\u26BD\u26BE\u26C4\u26C5\u26CE\u26D4\u26EA\u26F2\u26F3\u26F5\u26FA\u26FD\u2705\u270A\u270B\u2728\u274C\u274E\u2753-\u2755\u2757\u2795-\u2797\u27B0\u27BF\u2B1B\u2B1C\u2B50\u2B55]|\uD83C[\uDC04\uDCCF\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF7C\uDF7E-\uDF93\uDFA0-\uDFCA\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF4\uDFF8-\uDFFF]|\uD83D[\uDC00-\uDC3E\uDC40\uDC42-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDD7A\uDD95\uDD96\uDDA4\uDDFB-\uDE4F\uDE80-\uDEC5\uDECC\uDED0-\uDED2\uDED5\uDEEB\uDEEC\uDEF4-\uDEFA\uDFE0-\uDFEB]|\uD83E[\uDD0D-\uDD3A\uDD3C-\uDD45\uDD47-\uDD71\uDD73-\uDD76\uDD7A-\uDDA2\uDDA5-\uDDAA\uDDAE-\uDDCA\uDDCD-\uDDFF\uDE70-\uDE73\uDE78-\uDE7A\uDE80-\uDE82\uDE90-\uDE95])|(?:[#\*0-9\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23E9-\u23F3\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB-\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u261D\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692-\u2697\u2699\u269B\u269C\u26A0\u26A1\u26AA\u26AB\u26B0\u26B1\u26BD\u26BE\u26C4\u26C5\u26C8\u26CE\u26CF\u26D1\u26D3\u26D4\u26E9\u26EA\u26F0-\u26F5\u26F7-\u26FA\u26FD\u2702\u2705\u2708-\u270D\u270F\u2712\u2714\u2716\u271D\u2721\u2728\u2733\u2734\u2744\u2747\u274C\u274E\u2753-\u2755\u2757\u2763\u2764\u2795-\u2797\u27A1\u27B0\u27BF\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B50\u2B55\u3030\u303D\u3297\u3299]|\uD83C[\uDC04\uDCCF\uDD70\uDD71\uDD7E\uDD7F\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE02\uDE1A\uDE2F\uDE32-\uDE3A\uDE50\uDE51\uDF00-\uDF21\uDF24-\uDF93\uDF96\uDF97\uDF99-\uDF9B\uDF9E-\uDFF0\uDFF3-\uDFF5\uDFF7-\uDFFF]|\uD83D[\uDC00-\uDCFD\uDCFF-\uDD3D\uDD49-\uDD4E\uDD50-\uDD67\uDD6F\uDD70\uDD73-\uDD7A\uDD87\uDD8A-\uDD8D\uDD90\uDD95\uDD96\uDDA4\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA-\uDE4F\uDE80-\uDEC5\uDECB-\uDED2\uDED5\uDEE0-\uDEE5\uDEE9\uDEEB\uDEEC\uDEF0\uDEF3-\uDEFA\uDFE0-\uDFEB]|\uD83E[\uDD0D-\uDD3A\uDD3C-\uDD45\uDD47-\uDD71\uDD73-\uDD76\uDD7A-\uDDA2\uDDA5-\uDDAA\uDDAE-\uDDCA\uDDCD-\uDDFF\uDE70-\uDE73\uDE78-\uDE7A\uDE80-\uDE82\uDE90-\uDE95])\uFE0F|(?:[\u261D\u26F9\u270A-\u270D]|\uD83C[\uDF85\uDFC2-\uDFC4\uDFC7\uDFCA-\uDFCC]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66-\uDC78\uDC7C\uDC81-\uDC83\uDC85-\uDC87\uDC8F\uDC91\uDCAA\uDD74\uDD75\uDD7A\uDD90\uDD95\uDD96\uDE45-\uDE47\uDE4B-\uDE4F\uDEA3\uDEB4-\uDEB6\uDEC0\uDECC]|\uD83E[\uDD0F\uDD18-\uDD1F\uDD26\uDD30-\uDD39\uDD3C-\uDD3E\uDDB5\uDDB6\uDDB8\uDDB9\uDDBB\uDDCD-\uDDCF\uDDD1-\uDDDD])/g;
};
}) });
//#endregion
//#region node_modules/.pnpm/string-width@4.2.3/node_modules/string-width/index.js
var require_string_width = /* @__PURE__ */ __commonJS({ "node_modules/.pnpm/string-width@4.2.3/node_modules/string-width/index.js": ((exports, module) => {
const stripAnsi = require_strip_ansi();
const isFullwidthCodePoint = require_is_fullwidth_code_point();
const emojiRegex = require_emoji_regex();
const stringWidth$1 = (string$2) => {
if (typeof string$2 !== "string" || string$2.length === 0) return 0;
string$2 = stripAnsi(string$2);
if (string$2.length === 0) return 0;
string$2 = string$2.replace(emojiRegex(), " ");
let width = 0;
for (let i = 0; i < string$2.length; i++) {
const code$2 = string$2.codePointAt(i);
if (code$2 <= 31 || code$2 >= 127 && code$2 <= 159) continue;
if (code$2 >= 768 && code$2 <= 879) continue;
if (code$2 > 65535) i++;
width += isFullwidthCodePoint(code$2) ? 2 : 1;
}
return width;
};
module.exports = stringWidth$1;
module.exports.default = stringWidth$1;
}) });
//#endregion
//#region node_modules/.pnpm/cli-table3@0.6.5/node_modules/cli-table3/src/utils.js
var require_utils = /* @__PURE__ */ __commonJS({ "node_modules/.pnpm/cli-table3@0.6.5/node_modules/cli-table3/src/utils.js": ((exports, module) => {
const stringWidth = require_string_width();
function codeRegex(capture) {
return capture ? /\u001b\[((?:\d*;){0,5}\d*)m/g : /\u001b\[(?:\d*;){0,5}\d*m/g;
}
function strlen(str) {
let code$2 = codeRegex();
return ("" + str).replace(code$2, "").split("\n").reduce(function(memo, s$1) {
return stringWidth(s$1) > memo ? stringWidth(s$1) : memo;
}, 0);
}
function repeat(str, times) {
return Array(times + 1).join(str);
}
function pad(str, len, pad$1, dir) {
let length = strlen(str);
if (len + 1 >= length) {
let padlen = len - length;
switch (dir) {
case "right":
str = repeat(pad$1, padlen) + str;
break;
case "center": {
let right = Math.ceil(padlen / 2);
str = repeat(pad$1, padlen - right) + str + repeat(pad$1, right);
break;
}
default:
str = str + repeat(pad$1, padlen);
break;
}
}
return str;
}
let codeCache = {};
function addToCodeCache(name, on, off) {
on = "\x1B[" + on + "m";
off = "\x1B[" + off + "m";
codeCache[on] = {
set: name,
to: true
};
codeCache[off] = {
set: name,
to: false
};
codeCache[name] = {
on,
off
};
}
addToCodeCache("bold", 1, 22);
addToCodeCache("italics", 3, 23);
addToCodeCache("underline", 4, 24);
addToCodeCache("inverse", 7, 27);
addToCodeCache("strikethrough", 9, 29);
function updateState(state, controlChars) {
let controlCode = controlChars[1] ? parseInt(controlChars[1].split(";")[0]) : 0;
if (controlCode >= 30 && controlCode <= 39 || controlCode >= 90 && controlCode <= 97) {
state.lastForegroundAdded = controlChars[0];
return;
}
if (controlCode >= 40 && controlCode <= 49 || controlCode >= 100 && controlCode <= 107) {
state.lastBackgroundAdded = controlChars[0];
return;
}
if (controlCode === 0) {
for (let i in state)
/* istanbul ignore else */
if (Object.prototype.hasOwnProperty.call(state, i)) delete state[i];
return;
}
let info$1 = codeCache[controlChars[0]];
if (info$1) state[info$1.set] = info$1.to;
}
function readState(line$1) {
let code$2 = codeRegex(true);
let controlChars = code$2.exec(line$1);
let state = {};
while (controlChars !== null) {
updateState(state, controlChars);
controlChars = code$2.exec(line$1);
}
return state;
}
function unwindState(state, ret) {
let lastBackgroundAdded = state.lastBackgroundAdded;
let lastForegroundAdded = state.lastForegroundAdded;
delete state.lastBackgroundAdded;
delete state.lastForegroundAdded;
Object.keys(state).forEach(function(key$1) {
if (state[key$1]) ret += codeCache[key$1].off;
});
if (lastBackgroundAdded && lastBackgroundAdded != "\x1B[49m") ret += "\x1B[49m";
if (lastForegroundAdded && lastForegroundAdded != "\x1B[39m") ret += "\x1B[39m";
return ret;
}
function rewindState(state, ret) {
let lastBackgroundAdded = state.lastBackgroundAdded;
let lastForegroundAdded = state.lastForegroundAdded;
delete state.lastBackgroundAdded;
delete state.lastForegroundAdded;
Object.keys(state).forEach(function(key$1) {
if (state[key$1]) ret = codeCache[key$1].on + ret;
});
if (lastBackgroundAdded && lastBackgroundAdded != "\x1B[49m") ret = lastBackgroundAdded + ret;
if (lastForegroundAdded && lastForegroundAdded != "\x1B[39m") ret = lastForegroundAdded + ret;
return ret;
}
function truncateWidth(str, desiredLength) {
if (str.length === strlen(str)) return str.substr(0, desiredLength);
while (strlen(str) > desiredLength) str = str.slice(0, -1);
return str;
}
function truncateWidthWithAnsi(str, desiredLength) {
let code$2 = codeRegex(true);
let split = str.split(codeRegex());
let splitIndex = 0;
let retLen = 0;
let ret = "";
let myArray;
let state = {};
while (retLen < desiredLength) {
myArray = code$2.exec(str);
let toAdd = split[splitIndex];
splitIndex++;
if (retLen + strlen(toAdd) > desiredLength) toAdd = truncateWidth(toAdd, desiredLength - retLen);
ret += toAdd;
retLen += strlen(toAdd);
if (retLen < desiredLength) {
if (!myArray) break;
ret += myArray[0];
updateState(state, myArray);
}
}
return unwindState(state, ret);
}
function truncate(str, desiredLength, truncateChar) {
truncateChar = truncateChar || "…";
if (strlen(str) <= desiredLength) return str;
desiredLength -= strlen(truncateChar);
let ret = truncateWidthWithAnsi(str, desiredLength);
ret += truncateChar;
const hrefTag = "\x1B]8;;\x07";
if (str.includes(hrefTag) && !ret.includes(hrefTag)) ret += hrefTag;
return ret;
}
function defaultOptions$1() {
return {
chars: {
top: "─",
"top-mid": "┬",
"top-left": "┌",
"top-right": "┐",
bottom: "─",
"bottom-mid": "┴",
"bottom-left": "└",
"bottom-right": "┘",
left: "│",
"left-mid": "├",
mid: "─",
"mid-mid": "┼",
right: "│",
"right-mid": "┤",
middle: "│"
},
truncate: "…",
colWidths: [],
rowHeights: [],
colAligns: [],
rowAligns: [],
style: {
"padding-left": 1,
"padding-right": 1,
head: ["red"],
border: ["grey"],
compact: false
},
head: []
};
}
function mergeOptions(options, defaults) {
options = options || {};
defaults = defaults || defaultOptions$1();
let ret = Object.assign({}, defaults, options);
ret.chars = Object.assign({}, defaults.chars, options.chars);
ret.style = Object.assign({}, defaults.style, options.style);
return ret;
}
function wordWrap(maxLength, input) {
let lines = [];
let split = input.split(/(\s+)/g);
let line$1 = [];
let lineLength = 0;
let whitespace;
for (let i = 0; i < split.length; i += 2) {
let word = split[i];
let newLength = lineLength + strlen(word);
if (lineLength > 0 && whitespace) newLength += whitespace.length;
if (newLength > maxLength) {
if (lineLength !== 0) lines.push(line$1.join(""));
line$1 = [word];
lineLength = strlen(word);
} else {
line$1.push(whitespace || "", word);
lineLength = newLength;
}
whitespace = split[i + 1];
}
if (lineLength) lines.push(line$1.join(""));
return lines;
}
function textWrap(maxLength, input) {
let lines = [];
let line$1 = "";
function pushLine(str, ws) {
if (line$1.length && ws) line$1 += ws;
line$1 += str;
while (line$1.length > maxLength) {
lines.push(line$1.slice(0, maxLength));
line$1 = line$1.slice(maxLength);
}
}
let split = input.split(/(\s+)/g);
for (let i = 0; i < split.length; i += 2) pushLine(split[i], i && split[i - 1]);
if (line$1.length) lines.push(line$1);
return lines;
}
function multiLineWordWrap(maxLength, input, wrapOnWordBoundary = true) {
let output = [];
input = input.split("\n");
const handler = wrapOnWordBoundary ? wordWrap : textWrap;
for (let i = 0; i < input.length; i++) output.push.apply(output, handler(maxLength, input[i]));
return output;
}
function colorizeLines(input) {
let state = {};
let output = [];
for (let i = 0; i < input.length; i++) {
let line$1 = rewindState(state, input[i]);
state = readState(line$1);
let temp = Object.assign({}, state);
output.push(unwindState(temp, line$1));
}
return output;
}
/**
* Credit: Matheus Sampaio https://github.com/matheussampaio
*/
function hyperlink(url, text$4) {
const OSC = "\x1B]";
const BEL = "\x07";
const SEP = ";";
return [
OSC,
"8",
SEP,
SEP,
url || text$4,
BEL,
text$4,
OSC,
"8",
SEP,
SEP,
BEL
].join("");
}
module.exports = {
strlen,
repeat,
pad,
truncate,
mergeOptions,
wordWrap: multiLineWordWrap,
colorizeLines,
hyperlink
};
}) });
//#endregion
//#region node_modules/.pnpm/@colors+colors@1.5.0/node_modules/@colors/colors/lib/styles.js
var require_styles = /* @__PURE__ */ __commonJS({ "node_modules/.pnpm/@colors+colors@1.5.0/node_modules/@colors/colors/lib/styles.js": ((exports, module) => {
var styles$1 = {};
module["exports"] = styles$1;
var codes = {
reset: [0, 0],
bold: [1, 22],
dim: [2, 22],
italic: [3, 23],
underline: [4, 24],
inverse: [7, 27],
hidden: [8, 28],
strikethrough: [9, 29],
black: [30, 39],
red: [31, 39],
green: [32, 39],
yellow: [33, 39],
blue: [34, 39],
magenta: [35, 39],
cyan: [36, 39],
white: [37, 39],
gray: [90, 39],
grey: [90, 39],
brightRed: [91, 39],
brightGreen: [92, 39],
brightYellow: [93, 39],
brightBlue: [94, 39],
brightMagenta: [95, 39],
brightCyan: [96, 39],
brightWhite: [97, 39],
bgBlack: [40, 49],
bgRed: [41, 49],
bgGreen: [42, 49],
bgYellow: [43, 49],
bgBlue: [44, 49],
bgMagenta: [45, 49],
bgCyan: [46, 49],
bgWhite: [47, 49],
bgGray: [100, 49],
bgGrey: [100, 49],
bgBrightRed: [101, 49],
bgBrightGreen: [102, 49],
bgBrightYellow: [103, 49],
bgBrightBlue: [104, 49],
bgBrightMagenta: [105, 49],
bgBrightCyan: [106, 49],
bgBrightWhite: [107, 49],
blackBG: [40, 49],
redBG: [41, 49],
greenBG: [42, 49],
yellowBG: [43, 49],
blueBG: [44, 49],
magentaBG: [45, 49],
cyanBG: [46, 49],
whiteBG: [47, 49]
};
Object.keys(codes).forEach(function(key$1) {
var val = codes[key$1];
var style$1 = styles$1[key$1] = [];
style$1.open = "\x1B[" + val[0] + "m";
style$1.close = "\x1B[" + val[1] + "m";
});
}) });
//#endregion
//#region node_modules/.pnpm/@colors+colors@1.5.0/node_modules/@colors/colors/lib/system/has-flag.js
var require_has_flag = /* @__PURE__ */ __commonJS({ "node_modules/.pnpm/@colors+colors@1.5.0/node_modules/@colors/colors/lib/system/has-flag.js": ((exports, module) => {
module.exports = function(flag, argv) {
argv = argv || process.argv;
var terminatorPos = argv.indexOf("--");
var prefix = /^-{1,2}/.test(flag) ? "" : "--";
var pos$1 = argv.indexOf(prefix + flag);
return pos$1 !== -1 && (terminatorPos === -1 ? true : pos$1 < terminatorPos);
};
}) });
//#endregion
//#region node_modules/.pnpm/@colors+colors@1.5.0/node_modules/@colors/colors/lib/system/supports-colors.js
var require_supports_colors = /* @__PURE__ */ __commonJS({ "node_modules/.pnpm/@colors+colors@1.5.0/node_modules/@colors/colors/lib/system/supports-colors.js": ((exports, module) => {
var os = __require("os");
var hasFlag = require_has_flag();
var env = process.env;
var forceColor = void 0;
if (hasFlag("no-color") || hasFlag("no-colors") || hasFlag("color=false")) forceColor = false;
else if (hasFlag("color") || hasFlag("colors") || hasFlag("color=true") || hasFlag("color=always")) forceColor = true;
if ("FORCE_COLOR" in env) forceColor = env.FORCE_COLOR.length === 0 || parseInt(env.FORCE_COLOR, 10) !== 0;
function translateLevel(level$1) {
if (level$1 === 0) return false;
return {
level: level$1,
hasBasic: true,
has256: level$1 >= 2,
has16m: level$1 >= 3
};
}
function supportsColor(stream) {
if (forceColor === false) return 0;
if (hasFlag("color=16m") || hasFlag("color=full") || hasFlag("color=truecolor")) return 3;
if (hasFlag("color=256")) return 2;
if (stream && !stream.isTTY && forceColor !== true) return 0;
var min = forceColor ? 1 : 0;
if (process.platform === "win32") {
var osRelease = os.release().split(".");
if (Number(process.versions.node.split(".")[0]) >= 8 && Number(osRelease[0]) >= 10 && Number(osRelease[2]) >= 10586) return Number(osRelease[2]) >= 14931 ? 3 : 2;
return 1;
}
if ("CI" in env) {
if ([
"TRAVIS",
"CIRCLECI",
"APPVEYOR",
"GITLAB_CI"
].some(function(sign$1) {
return sign$1 in env;
}) || env.CI_NAME === "codeship") return 1;
return min;
}
if ("TEAMCITY_VERSION" in env) return /^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(env.TEAMCITY_VERSION) ? 1 : 0;
if ("TERM_PROGRAM" in env) {
var version = parseInt((env.TERM_PROGRAM_VERSION || "").split(".")[0], 10);
switch (env.TERM_PROGRAM) {
case "iTerm.app": return version >= 3 ? 3 : 2;
case "Hyper": return 3;
case "Apple_Terminal": return 2;
}
}
if (/-256(color)?$/i.test(env.TERM)) return 2;
if (/^screen|^xterm|^vt100|^rxvt|color|ansi|cygwin|linux/i.test(env.TERM)) return 1;
if ("COLORTERM" in env) return 1;
if (env.TERM === "dumb") return min;
return min;
}
function getSupportLevel(stream) {
return translateLevel(supportsColor(stream));
}
module.exports = {
supportsColor: getSupportLevel,
stdout: getSupportLevel(process.stdout),
stderr: getSupportLevel(process.stderr)
};
}) });
//#endregion
//#region node_modules/.pnpm/@colors+colors@1.5.0/node_modules/@colors/colors/lib/custom/trap.js
var require_trap = /* @__PURE__ */ __commonJS({ "node_modules/.pnpm/@colors+colors@1.5.0/node_modules/@colors/colors/lib/custom/trap.js": ((exports, module) => {
module["exports"] = function runTheTrap(text$4, options) {
var result = "";
text$4 = text$4 || "Run the trap, drop the bass";
text$4 = text$4.split("");
var trap = {
a: [
"@",
"Ą",
"Ⱥ",
"Ʌ",
"Δ",
"Λ",
"Д"
],
b: [
"ß",
"Ɓ",
"Ƀ",
"ɮ",
"β",
"฿"
],
c: [
"©",
"Ȼ",
"Ͼ"
],
d: [
"Ð",
"Ɗ",
"Ԁ",
"ԁ",
"Ԃ",
"ԃ"
],
e: [
"Ë",
"ĕ",
"Ǝ",
"ɘ",
"Σ",
"ξ",
"Ҽ",
"੬"
],
f: ["Ӻ"],
g: ["ɢ"],
h: [
"Ħ",
"ƕ",
"Ң",
"Һ",
"Ӈ",
"Ԋ"
],
i: ["༏"],
j: ["Ĵ"],
k: [
"ĸ",
"Ҡ",
"Ӄ",
"Ԟ"
],
l: ["Ĺ"],
m: [
"ʍ",
"Ӎ",
"ӎ",
"Ԡ",
"ԡ",
"൩"
],
n: [
"Ñ",
"ŋ",
"Ɲ",
"Ͷ",
"Π",
"Ҋ"
],
o: [
"Ø",
"õ",
"ø",
"Ǿ",
"ʘ",
"Ѻ",
"ם",
"",
"๏"
],
p: ["Ƿ", "Ҏ"],
q: ["্"],
r: [
"®",
"Ʀ",
"Ȑ",
"Ɍ",
"ʀ",
"Я"
],
s: [
"§",
"Ϟ",
"ϟ",
"Ϩ"
],
t: [
"Ł",
"Ŧ",
"ͳ"
],
u: ["Ʊ", "Ս"],
v: ["ט"],
w: [
"Ш",
"Ѡ",
"Ѽ",
"൰"
],
x: [
"Ҳ",
"Ӿ",
"Ӽ",
"ӽ"
],
y: [
"¥",
"Ұ",
"Ӌ"
],
z: ["Ƶ", "ɀ"]
};
text$4.forEach(function(c$1) {
c$1 = c$1.toLowerCase();
var chars = trap[c$1] || [" "];
var rand = Math.floor(Math.random() * chars.length);
if (typeof trap[c$1] !== "undefined") result += trap[c$1][rand];
else result += c$1;
});
return result;
};
}) });
//#endregion
//#region node_modules/.pnpm/@colors+colors@1.5.0/node_modules/@colors/colors/lib/custom/zalgo.js
var require_zalgo = /* @__PURE__ */ __commonJS({ "node_modules/.pnpm/@colors+colors@1.5.0/node_modules/@colors/colors/lib/custom/zalgo.js": ((exports, module) => {
module["exports"] = function zalgo(text$4, options) {
text$4 = text$4 || " he is here ";
var soul = {
"up": [
"̍",
"̎",
"̄",
"̅",
"̿",
"̑",
"̆",
"̐",
"͒",
"͗",
"͑",
"̇",
"̈",
"̊",
"͂",
"̓",
"̈",
"͊",
"͋",
"͌",
"̃",
"̂",
"̌",
"͐",
"̀",
"́",
"̋",
"̏",
"̒",
"̓",
"̔",
"̽",
"̉",
"ͣ",
"ͤ",
"ͥ",
"ͦ",
"ͧ",
"ͨ",
"ͩ",
"ͪ",
"ͫ",
"ͬ",
"ͭ",
"ͮ",
"ͯ",
"̾",
"͛",
"͆",
"̚"
],
"down": [
"̖",
"̗",
"̘",
"̙",
"̜",
"̝",
"̞",
"̟",
"̠",
"̤",
"̥",
"̦",
"̩",
"̪",
"̫",
"̬",
"̭",
"̮",
"̯",
"̰",
"̱",
"̲",
"̳",
"̹",
"̺",
"̻",
"̼",
"ͅ",
"͇",
"͈",
"͉",
"͍",
"͎",
"͓",
"͔",
"͕",
"͖",
"͙",
"͚",
"̣"
],
"mid": [
"̕",
"̛",
"̀",
"́",
"͘",
"̡",
"̢",
"̧",
"̨",
"̴",
"̵",
"̶",
"͜",
"͝",
"͞",
"͟",
"͠",
"͢",
"̸",
"̷",
"͡",
" ҉"
]
};
var all$2 = [].concat(soul.up, soul.down, soul.mid);
function randomNumber(range) {
return Math.floor(Math.random() * range);
}
function isChar(character) {
var bool = false;
all$2.filter(function(i) {
bool = i === character;
});
return bool;
}
function heComes(text$5, options$1) {
var result = "";
var counts;
var l;
options$1 = options$1 || {};
options$1["up"] = typeof options$1["up"] !== "undefined" ? options$1["up"] : true;
options$1["mid"] = typeof options$1["mid"] !== "undefined" ? options$1["mid"] : true;
options$1["down"] = typeof options$1["down"] !== "undefined" ? options$1["down"] : true;
options$1["size"] = typeof options$1["size"] !== "undefined" ? options$1["size"] : "maxi";
text$5 = text$5.split("");
for (l in text$5) {
if (isChar(l)) continue;
result = result + text$5[l];
counts = {
"up": 0,
"down": 0,
"mid": 0
};
switch (options$1.size) {
case "mini":
counts.up = randomNumber(8);
counts.mid = randomNumber(2);
counts.down = randomNumber(8);
break;
case "maxi":
counts.up = randomNumber(16) + 3;
counts.mid = randomNumber(4) + 1;
counts.down = randomNumber(64) + 3;
break;
default:
counts.up = randomNumber(8) + 1;
counts.mid = randomNumber(6) / 2;
counts.down = randomNumber(8) + 1;
break;
}
var arr = [
"up",
"mid",
"down"
];
for (var d in arr) {
var index$1 = arr[d];
for (var i = 0; i <= counts[index$1]; i++) if (options$1[index$1]) result = result + soul[index$1][randomNumber(soul[index$1].length)];
}
}
return result;
}
return heComes(text$4, options);
};
}) });
//#endregion
//#region node_modules/.pnpm/@colors+colors@1.5.0/node_modules/@colors/colors/lib/maps/america.js
var require_america = /* @__PURE__ */ __commonJS({ "node_modules/.pnpm/@colors+colors@1.5.0/node_modules/@colors/colors/lib/maps/america.js": ((exports, module) => {
module["exports"] = function(colors$2) {
return function(letter, i, exploded) {
if (letter === " ") return letter;
switch (i % 3) {
case 0: return colors$2.red(letter);
case 1: return colors$2.white(letter);
case 2: return colors$2.blue(letter);
}
};
};
}) });
//#endregion
//#region node_modules/.pnpm/@colors+colors@1.5.0/node_modules/@colors/colors/lib/maps/zebra.js
var require_zebra = /* @__PURE__ */ __commonJS({ "node_modules/.pnpm/@colors+colors@1.5.0/node_modules/@colors/colors/lib/maps/zebra.js": ((exports, module) => {
module["exports"] = function(colors$2) {
return function(letter, i, exploded) {
return i % 2 === 0 ? letter : colors$2.inverse(letter);
};
};
}) });
//#endregion
//#region node_modules/.pnpm/@colors+colors@1.5.0/node_modules/@colors/colors/lib/maps/rainbow.js
var require_rainbow = /* @__PURE__ */ __commonJS({ "node_modules/.pnpm/@colors+colors@1.5.0/node_modules/@colors/colors/lib/maps/rainbow.js": ((exports, module) => {
module["exports"] = function(colors$2) {
var rainbowColors = [
"red",
"yellow",
"green",
"blue",
"magenta"
];
return function(letter, i, exploded) {
if (letter === " ") return letter;
else return colors$2[rainbowColors[i++ % rainbowColors.length]](letter);
};
};
}) });
//#endregion
//#region node_modules/.pnpm/@colors+colors@1.5.0/node_modules/@colors/colors/lib/maps/random.js
var require_random = /* @__PURE__ */ __commonJS({ "node_modules/.pnpm/@colors+colors@1.5.0/node_modules/@colors/colors/lib/maps/random.js": ((exports, module) => {
module["exports"] = function(colors$2) {
var available = [
"underline",
"inverse",
"grey",
"yellow",
"red",
"green",
"blue",
"white",
"cyan",
"magenta",
"brightYellow",
"brightRed",
"brightGreen",
"brightBlue",
"brightWhite",
"brightCyan",
"brightMagenta"
];
return function(letter, i, exploded) {
return letter === " " ? letter : colors$2[available[Math.round(Math.random() * (available.length - 2))]](letter);
};
};
}) });
//#endregion
//#region node_modules/.pnpm/@colors+colors@1.5.0/node_modules/@colors/colors/lib/colors.js
var require_colors = /* @__PURE__ */ __commonJS({ "node_modules/.pnpm/@colors+colors@1.5.0/node_modules/@colors/colors/lib/colors.js": ((exports, module) => {
var colors$1 = {};
module["exports"] = colors$1;
colors$1.themes = {};
var util$2 = __require("util");
var ansiStyles = colors$1.styles = require_styles();
var defineProps = Object.defineProperties;
var newLineRegex = /* @__PURE__ */ new RegExp(/[\r\n]+/g);
colors$1.supportsColor = require_supports_colors().supportsColor;
if (typeof colors$1.enabled === "undefined") colors$1.enabled = colors$1.supportsColor() !== false;
colors$1.enable = function() {
colors$1.enabled = true;
};
colors$1.disable = function() {
colors$1.enabled = false;
};
colors$1.stripColors = colors$1.strip = function(str) {
return ("" + str).replace(/\x1B\[\d+m/g, "");
};
colors$1.stylize = function stylize(str, style$1) {
if (!colors$1.enabled) return str + "";
var styleMap = ansiStyles[style$1];
if (!styleMap && style$1 in colors$1) return colors$1[style$1](str);
return styleMap.open + str + styleMap.close;
};
var matchOperatorsRe = /[|\\{}()[\]^$+*?.]/g;
var escapeStringRegexp$1 = function(str) {
if (typeof str !== "string") throw new TypeError("Expected a string");
return str.replace(matchOperatorsRe, "\\$&");
};
function build(_styles) {
var builder = function builder$1() {
return applyStyle.apply(builder$1, arguments);
};
builder._styles = _styles;
builder.__proto__ = proto$1;
return builder;
}
var styles = (function() {
var ret = {};
ansiStyles.grey = ansiStyles.gray;
Object.keys(ansiStyles).forEach(function(key$1) {
ansiStyles[key$1].closeRe = new RegExp(escapeStringRegexp$1(ansiStyles[key$1].close), "g");
ret[key$1] = { get: function() {
return build(this._styles.concat(key$1));
} };
});
return ret;
})();
var proto$1 = defineProps(function colors$2() {}, styles);
function applyStyle() {
var str = Array.prototype.slice.call(arguments).map(function(arg) {
if (arg != null && arg.constructor === String) return arg;
else return util$2.inspect(arg);
}).join(" ");
if (!colors$1.enabled || !str) return str;
var newLinesPresent = str.indexOf("\n") != -1;
var nestedStyles = this._styles;
var i = nestedStyles.length;
while (i--) {
var code$2 = ansiStyles[nestedStyles[i]];
str = code$2.open + str.replace(code$2.closeRe, code$2.open) + code$2.close;
if (newLinesPresent) str = str.replace(newLineRegex, function(match) {
return code$2.close + match + code$2.open;
});
}
return str;
}
colors$1.setTheme = function(theme) {
if (typeof theme === "string") {
console.log("colors.setTheme now only accepts an object, not a string. If you are trying to set a theme from a file, it is now your (the caller's) responsibility to require the file. The old syntax looked like colors.setTheme(__dirname + '/../themes/generic-logging.js'); The new syntax looks like colors.setTheme(require(__dirname + '/../themes/generic-logging.js'));");
return;
}
for (var style$1 in theme) (function(style$2) {
colors$1[style$2] = function(str) {
if (typeof theme[style$2] === "object") {
var out = str;
for (var i in theme[style$2]) out = colors$1[theme[style$2][i]](out);
return out;
}
return colors$1[theme[style$2]](str);
};
})(style$1);
};
function init() {
var ret = {};
Object.keys(styles).forEach(function(name) {
ret[name] = { get: function() {
return build([name]);
} };
});
return ret;
}
var sequencer = function sequencer$1(map$4, str) {
var exploded = str.split("");
exploded = exploded.map(map$4);
return exploded.join("");
};
colors$1.trap = require_trap();
colors$1.zalgo = require_zalgo();
colors$1.maps = {};
colors$1.maps.america = require_america()(colors$1);
colors$1.maps.zebra = require_zebra()(colors$1);
colors$1.maps.rainbow = require_rainbow()(colors$1);
colors$1.maps.random = require_random()(colors$1);
for (var map$3 in colors$1.maps) (function(map$4) {
colors$1[map$4] = function(str) {
return sequencer(colors$1.maps[map$4], str);
};
})(map$3);
defineProps(colors$1, init());
}) });
//#endregion
//#region node_modules/.pnpm/@colors+colors@1.5.0/node_modules/@colors/colors/safe.js
var require_safe = /* @__PURE__ */ __commonJS({ "node_modules/.pnpm/@colors+colors@1.5.0/node_modules/@colors/colors/safe.js": ((exports, module) => {
var colors = require_colors();
module["exports"] = colors;
}) });
//#endregion
//#region node_modules/.pnpm/cli-table3@0.6.5/node_modules/cli-table3/src/cell.js
var require_cell = /* @__PURE__ */ __commonJS({ "node_modules/.pnpm/cli-table3@0.6.5/node_modules/cli-table3/src/cell.js": ((exports, module) => {
const { info, debug: debug$2 } = require_debug();
const utils$1 = require_utils();
var Cell$1 = class Cell$1 {
/**
* A representation of a cell within the table.
* Implementations must have `init` and `draw` methods,
* as well as `colSpan`, `rowSpan`, `desiredHeight` and `desiredWidth` properties.
* @param options
* @constructor
*/
constructor(options) {
this.setOptions(options);
/**
* Each cell will have it's `x` and `y` values set by the `layout-manager` prior to
* `init` being called;
* @type {Number}
*/
this.x = null;
this.y = null;
}
setOptions(options) {
if ([
"boolean",
"number",
"bigint",
"string"
].indexOf(typeof options) !== -1) options = { content: "" + options };
options = options || {};
this.options = options;
let content$2 = options.content;
if ([
"boolean",
"number",
"bigint",
"string"
].indexOf(typeof content$2) !== -1) this.content = String(content$2);
else if (!content$2) this.content = this.options.href || "";
else throw new Error("Content needs to be a primitive, got: " + typeof content$2);
this.colSpan = options.colSpan || 1;
this.rowSpan = options.rowSpan || 1;
if (this.options.href) Object.defineProperty(this, "href", { get() {
return this.options.href;
} });
}
mergeTableOptions(tableOptions, cells) {
this.cells = cells;
let optionsChars = this.options.chars || {};
let tableChars = tableOptions.chars;
let chars = this.chars = {};
CHAR_NAMES.forEach(function(name) {
setOption(optionsChars, tableChars, name, chars);
});
this.truncate = this.options.truncate || tableOptions.truncate;
let style$1 = this.options.style = this.options.style || {};
let tableStyle = tableOptions.style;
setOption(style$1, tableStyle, "padding-left", this);
setOption(style$1, tableStyle, "padding-right", this);
this.head = style$1.head || tableStyle.head;
this.border = style$1.border || tableStyle.border;
this.fixedWidth = tableOptions.colWidths[this.x];
this.lines = this.computeLines(tableOptions);
this.desiredWidth = utils$1.strlen(this.content) + this.paddingLeft + this.paddingRight;
this.desiredHeight = this.lines.length;
}
computeLines(tableOptions) {
const tableWordWrap = tableOptions.wordWrap || tableOptions.textWrap;
const { wordWrap: wordWrap$1 = tableWordWrap } = this.options;
if (this.fixedWidth && wordWrap$1) {
this.fixedWidth -= this.paddingLeft + this.paddingRight;
if (this.colSpan) {
let i = 1;
while (i < this.colSpan) {
this.fixedWidth += tableOptions.colWidths[this.x + i];
i++;
}
}
const { wrapOnWordBoundary: tableWrapOnWordBoundary = true } = tableOptions;
const { wrapOnWordBoundary = tableWrapOnWordBoundary } = this.options;
return this.wrapLines(utils$1.wordWrap(this.fixedWidth, this.content, wrapOnWordBoundary));
}
return this.wrapLines(this.content.split("\n"));
}
wrapLines(computedLines) {
const lines = utils$1.colorizeLines(computedLines);
if (this.href) return lines.map((line$1) => utils$1.hyperlink(this.href, line$1));
return lines;
}
/**
* Initializes the Cells data structure.
*
* @param tableOptions - A fully populated set of tableOptions.
* In addition to the standard default values, tableOptions must have fully populated the
* `colWidths` and `rowWidths` arrays. Those arrays must have lengths equal to the number
* of columns or rows (respectively) in this table, and each array item must be a Number.
*
*/
init(tableOptions) {
let x = this.x;
let y = this.y;
this.widths = tableOptions.colWidths.slice(x, x + this.colSpan);
this.heights = tableOptions.rowHeights.slice(y, y + this.rowSpan);
this.width = this.widths.reduce(sumPlusOne, -1);
this.height = this.heights.reduce(sumPlusOne, -1);
this.hAlign = this.options.hAlign || tableOptions.colAligns[x];
this.vAlign = this.options.vAlign || tableOptions.rowAligns[y];
this.drawRight = x + this.colSpan == tableOptions.colWidths.length;
}
/**
* Draws the given line of the cell.
* This default implementation defers to methods `drawTop`, `drawBottom`, `drawLine` and `drawEmpty`.
* @param lineNum - can be `top`, `bottom` or a numerical line number.
* @param spanningCell - will be a number if being called from a RowSpanCell, and will represent how
* many rows below it's being called from. Otherwise it's undefined.
* @returns {String} The representation of this line.
*/
draw(lineNum, spanningCell) {
if (lineNum == "top") return this.drawTop(this.drawRight);
if (lineNum == "bottom") return this.drawBottom(this.drawRight);
let content$2 = utils$1.truncate(this.content, 10, this.truncate);
if (!lineNum) info(`${this.y}-${this.x}: ${this.rowSpan - lineNum}x${this.colSpan} Cell ${content$2}`);
let padLen = Math.max(this.height - this.lines.length, 0);
let padTop;
switch (this.vAlign) {
case "center":
padTop = Math.ceil(padLen / 2);
break;
case "bottom":
padTop = padLen;
break;
default: padTop = 0;
}
if (lineNum < padTop || lineNum >= padTop + this.lines.length) return this.drawEmpty(this.drawRight, spanningCell);
let forceTruncation = this.lines.length > this.height && lineNum + 1 >= this.height;
return this.drawLine(lineNum - padTop, this.drawRight, forceTruncation, spanningCell);
}
/**
* Renders the top line of the cell.
* @param drawRight - true if this method should render the right edge of the cell.
* @returns {String}
*/
drawTop(drawRight) {
let content$2 = [];
if (this.cells) this.widths.forEach(function(width, index$1) {
content$2.push(this._topLeftChar(index$1));
content$2.push(utils$1.repeat(this.chars[this.y == 0 ? "top" : "mid"], width));
}, this);
else {
content$2.push(this._topLeftChar(0));
content$2.push(utils$1.repeat(this.chars[this.y == 0 ? "top" : "mid"], this.width));
}
if (drawRight) content$2.push(this.chars[this.y == 0 ? "topRight" : "rightMid"]);
return this.wrapWithStyleColors("border", content$2.join(""));
}
_topLeftChar(offset) {
let x = this.x + offset;
let leftChar;
if (this.y == 0) leftChar = x == 0 ? "topLeft" : offset == 0 ? "topMid" : "top";
else if (x == 0) leftChar = "leftMid";
else {
leftChar = offset == 0 ? "midMid" : "bottomMid";
if (this.cells) {
if (this.cells[this.y - 1][x] instanceof Cell$1.ColSpanCell) leftChar = offset == 0 ? "topMid" : "mid";
if (offset == 0) {
let i = 1;
while (this.cells[this.y][x - i] instanceof Cell$1.ColSpanCell) i++;
if (this.cells[this.y][x - i] instanceof Cell$1.RowSpanCell) leftChar = "leftMid";
}
}
}
return this.chars[leftChar];
}
wrapWithStyleColors(styleProperty, content$2) {
if (this[styleProperty] && this[styleProperty].length) try {
let colors$2 = require_safe();
for (let i = this[styleProperty].length - 1; i >= 0; i--) colors$2 = colors$2[this[styleProperty][i]];
return colors$2(content$2);
} catch (e) {
return content$2;
}
else return content$2;
}
/**
* Renders a line of text.
* @param lineNum - Which line of text to render. This is not necessarily the line within the cell.
* There may be top-padding above the first line of text.
* @param drawRight - true if this method should render the right edge of the cell.
* @param forceTruncationSymbol - `true` if the rendered text should end with the truncation symbol even
* if the text fits. This is used when the cell is vertically truncated. If `false` the text should
* only include the truncation symbol if the text will not fit horizontally within the cell width.
* @param spanningCell - a number of if being called from a RowSpanCell. (how many rows below). otherwise undefined.
* @returns {String}
*/
drawLine(lineNum, drawRight, forceTruncationSymbol, spanningCell) {
let left = this.chars[this.x == 0 ? "left" : "middle"];
if (this.x && spanningCell && this.cells) {
let cellLeft = this.cells[this.y + spanningCell][this.x - 1];
while (cellLeft instanceof ColSpanCell$1) cellLeft = this.cells[cellLeft.y][cellLeft.x - 1];
if (!(cellLeft instanceof RowSpanCell$1)) left = this.chars["rightMid"];
}
let leftPadding = utils$1.repeat(" ", this.paddingLeft);
let right = drawRight ? this.chars["right"] : "";
let rightPadding = utils$1.repeat(" ", this.paddingRight);
let line$1 = this.lines[lineNum];
let len = this.width - (this.paddingLeft + this.paddingRight);
if (forceTruncationSymbol) line$1 += this.truncate || "…";
let content$2 = utils$1.truncate(line$1, len, this.truncate);
content$2 = utils$1.pad(content$2, len, " ", this.hAlign);
content$2 = leftPadding + content$2 + rightPadding;
return this.stylizeLine(left, content$2, right);
}
stylizeLine(left, content$2, right) {
left = this.wrapWithStyleColors("border", left);
right = this.wrapWithStyleColors("border", right);
if (this.y === 0) content$2 = this.wrapWithStyleColors("head", content$2);
return left