@learnosity/lib-qti-converter 0.12.1 → 0.12.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +9 -3
- package/docs/GETTING_STARTED.md +10 -4
- package/docs/TAGS_TO_QTI_METADATA.md +291 -0
- package/docs/_sidebar.md +10 -9
- package/package.json +9 -9
- package/packages/cli/dist/batchProcessors-BfmvnTQ5.js +215 -0
- package/packages/cli/dist/batchProcessors-BfmvnTQ5.js.map +1 -0
- package/packages/cli/dist/batchWorker.js +1 -1
- package/packages/cli/dist/configOutput-FwkFyQmk.js +399 -0
- package/packages/cli/dist/configOutput-FwkFyQmk.js.map +1 -0
- package/packages/cli/dist/create-prompt-DU9wLVhI.js +1392 -0
- package/packages/cli/dist/create-prompt-DU9wLVhI.js.map +1 -0
- package/packages/cli/dist/dist-DjpU2mIj.js +278 -0
- package/packages/cli/dist/dist-DjpU2mIj.js.map +1 -0
- package/packages/cli/dist/learnosityToQti-B0PoimXr.js +102 -0
- package/packages/cli/dist/learnosityToQti-B0PoimXr.js.map +1 -0
- package/packages/cli/dist/learnosityToQtiPackage-RyClxvZj.js +632 -0
- package/packages/cli/dist/learnosityToQtiPackage-RyClxvZj.js.map +1 -0
- package/packages/cli/dist/main.js +32 -37131
- package/packages/cli/dist/main.js.map +1 -1
- package/packages/cli/dist/pathUtils-CwZnJ55s.js +2386 -0
- package/packages/cli/dist/pathUtils-CwZnJ55s.js.map +1 -0
- package/packages/cli/dist/qtiPackageToLearnosity-0rkZKKOK.js +354 -0
- package/packages/cli/dist/qtiPackageToLearnosity-0rkZKKOK.js.map +1 -0
- package/packages/cli/dist/qtiToLearnosity-jiFTBiQU.js +97 -0
- package/packages/cli/dist/qtiToLearnosity-jiFTBiQU.js.map +1 -0
- package/packages/cli/dist/resolveOptions-gH_YAxxc.js +31578 -0
- package/packages/cli/dist/resolveOptions-gH_YAxxc.js.map +1 -0
- package/packages/cli/dist/rolldown-runtime-B4iAMlE-.js +35 -0
- package/packages/cli/dist/{batchProcessors-B8EQvMbH.js → table-DYcNeyJ_.js} +906 -1150
- package/packages/cli/dist/table-DYcNeyJ_.js.map +1 -0
- package/packages/core/dist/index.js +162 -144
- package/packages/core/dist/node.js +162 -144
- package/packages/cli/dist/batchProcessors-B8EQvMbH.js.map +0 -1
|
@@ -1,43 +1,9 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { i as __toESM, r as __require, t as __commonJSMin } from "./rolldown-runtime-B4iAMlE-.js";
|
|
2
2
|
import process$1 from "node:process";
|
|
3
3
|
import { mkdir, writeFile } from "fs/promises";
|
|
4
4
|
import { dirname, join } from "path";
|
|
5
5
|
import os from "node:os";
|
|
6
|
-
import { buildPackageFromActivity, convertActivity, convertQtiPackageToLearnosityBundle, ensureUniqueFolderName, loadLearnosityBundle, loadPackageDirectory, mergeActivityPackage, nodeFileAccess, sanitizeFolderName, saveQtiContentPackage, writeLearnosityBundle } from "@learnosity/converter-core/node";
|
|
7
6
|
import tty from "node:tty";
|
|
8
|
-
//#region \0rolldown/runtime.js
|
|
9
|
-
var __create = Object.create;
|
|
10
|
-
var __defProp = Object.defineProperty;
|
|
11
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
12
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
13
|
-
var __getProtoOf = Object.getPrototypeOf;
|
|
14
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
15
|
-
var __commonJSMin = (cb, mod) => () => (mod || (cb((mod = { exports: {} }).exports, mod), cb = null), mod.exports);
|
|
16
|
-
var __exportAll = (all, no_symbols) => {
|
|
17
|
-
let target = {};
|
|
18
|
-
for (var name in all) __defProp(target, name, {
|
|
19
|
-
get: all[name],
|
|
20
|
-
enumerable: true
|
|
21
|
-
});
|
|
22
|
-
if (!no_symbols) __defProp(target, Symbol.toStringTag, { value: "Module" });
|
|
23
|
-
return target;
|
|
24
|
-
};
|
|
25
|
-
var __copyProps = (to, from, except, desc) => {
|
|
26
|
-
if (from && typeof from === "object" || typeof from === "function") for (var keys = __getOwnPropNames(from), i = 0, n = keys.length, key; i < n; i++) {
|
|
27
|
-
key = keys[i];
|
|
28
|
-
if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
|
|
29
|
-
get: ((k) => from[k]).bind(null, key),
|
|
30
|
-
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
31
|
-
});
|
|
32
|
-
}
|
|
33
|
-
return to;
|
|
34
|
-
};
|
|
35
|
-
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule || !__hasOwnProp.call(mod, "default") ? __defProp(target, "default", {
|
|
36
|
-
value: mod,
|
|
37
|
-
enumerable: true
|
|
38
|
-
}) : target, mod));
|
|
39
|
-
var __require = /* #__PURE__ */ (() => createRequire(import.meta.url))();
|
|
40
|
-
//#endregion
|
|
41
7
|
//#region ../core/src/diagnostics/formatDiagnosticsReport.ts
|
|
42
8
|
/**
|
|
43
9
|
* Format diagnostics array into structured report with metadata
|
|
@@ -129,6 +95,29 @@ function getDiagnosticsPath(outputPath) {
|
|
|
129
95
|
return join(dir, "diagnostics.json");
|
|
130
96
|
}
|
|
131
97
|
//#endregion
|
|
98
|
+
//#region ../../node_modules/.pnpm/cli-table3@0.6.5/node_modules/cli-table3/src/debug.js
|
|
99
|
+
var require_debug = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
100
|
+
let messages = [];
|
|
101
|
+
let level = 0;
|
|
102
|
+
const debug = (msg, min) => {
|
|
103
|
+
if (level >= min) messages.push(msg);
|
|
104
|
+
};
|
|
105
|
+
debug.WARN = 1;
|
|
106
|
+
debug.INFO = 2;
|
|
107
|
+
debug.DEBUG = 3;
|
|
108
|
+
debug.reset = () => {
|
|
109
|
+
messages = [];
|
|
110
|
+
};
|
|
111
|
+
debug.setDebugLevel = (v) => {
|
|
112
|
+
level = v;
|
|
113
|
+
};
|
|
114
|
+
debug.warn = (msg) => debug(msg, debug.WARN);
|
|
115
|
+
debug.info = (msg) => debug(msg, debug.INFO);
|
|
116
|
+
debug.debug = (msg) => debug(msg, debug.DEBUG);
|
|
117
|
+
debug.debugMessages = () => messages;
|
|
118
|
+
module.exports = debug;
|
|
119
|
+
}));
|
|
120
|
+
//#endregion
|
|
132
121
|
//#region ../../node_modules/.pnpm/ansi-regex@5.0.1/node_modules/ansi-regex/index.js
|
|
133
122
|
var require_ansi_regex = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
134
123
|
module.exports = ({ onlyFirst = false } = {}) => {
|
|
@@ -185,919 +174,422 @@ var require_string_width = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
185
174
|
module.exports.default = stringWidth;
|
|
186
175
|
}));
|
|
187
176
|
//#endregion
|
|
188
|
-
//#region ../../node_modules/.pnpm/
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
let endIndex = 0;
|
|
194
|
-
let returnValue = "";
|
|
195
|
-
do {
|
|
196
|
-
returnValue += string.slice(endIndex, index) + substring + postfix;
|
|
197
|
-
endIndex = index + substringLength;
|
|
198
|
-
index = string.indexOf(substring, endIndex);
|
|
199
|
-
} while (index !== -1);
|
|
200
|
-
returnValue += string.slice(endIndex);
|
|
201
|
-
return returnValue;
|
|
202
|
-
}
|
|
203
|
-
function stringEncaseCRLFWithFirstIndex(string, prefix, postfix, index) {
|
|
204
|
-
let endIndex = 0;
|
|
205
|
-
let returnValue = "";
|
|
206
|
-
do {
|
|
207
|
-
const isGotCR = string[index - 1] === "\r";
|
|
208
|
-
returnValue += string.slice(endIndex, isGotCR ? index - 1 : index) + prefix + (isGotCR ? "\r\n" : "\n") + postfix;
|
|
209
|
-
endIndex = index + 1;
|
|
210
|
-
index = string.indexOf("\n", endIndex);
|
|
211
|
-
} while (index !== -1);
|
|
212
|
-
returnValue += string.slice(endIndex);
|
|
213
|
-
return returnValue;
|
|
214
|
-
}
|
|
215
|
-
//#endregion
|
|
216
|
-
//#region ../../node_modules/.pnpm/chalk@6.0.0/node_modules/chalk/source/vendor/ansi-styles/index.js
|
|
217
|
-
const ANSI_BACKGROUND_OFFSET = 10;
|
|
218
|
-
const ANSI_UNDERLINE_OFFSET = 20;
|
|
219
|
-
const wrapAnsi16 = (offset = 0) => (code) => `\u{1B}[${code + offset}m`;
|
|
220
|
-
const wrapAnsi256 = (offset = 0) => (code) => `\u{1B}[${38 + offset};5;${code}m`;
|
|
221
|
-
const wrapAnsi16m = (offset = 0) => (red, green, blue) => `\u{1B}[${38 + offset};2;${red};${green};${blue}m`;
|
|
222
|
-
const wrapUnderlineAnsi = (code) => `\u{1B}[58;5;${code < 90 ? code - 30 : code - 90 + 8}m`;
|
|
223
|
-
const styles$1 = {
|
|
224
|
-
modifier: {
|
|
225
|
-
reset: [0, 0],
|
|
226
|
-
bold: [1, 22],
|
|
227
|
-
dim: [2, 22],
|
|
228
|
-
italic: [3, 23],
|
|
229
|
-
underline: [4, 24],
|
|
230
|
-
underlineDouble: ["4:2", 24],
|
|
231
|
-
underlineCurly: ["4:3", 24],
|
|
232
|
-
underlineDotted: ["4:4", 24],
|
|
233
|
-
underlineDashed: ["4:5", 24],
|
|
234
|
-
overline: [53, 55],
|
|
235
|
-
inverse: [7, 27],
|
|
236
|
-
hidden: [8, 28],
|
|
237
|
-
strikethrough: [9, 29]
|
|
238
|
-
},
|
|
239
|
-
color: {
|
|
240
|
-
black: [30, 39],
|
|
241
|
-
red: [31, 39],
|
|
242
|
-
green: [32, 39],
|
|
243
|
-
yellow: [33, 39],
|
|
244
|
-
blue: [34, 39],
|
|
245
|
-
magenta: [35, 39],
|
|
246
|
-
cyan: [36, 39],
|
|
247
|
-
white: [37, 39],
|
|
248
|
-
blackBright: [90, 39],
|
|
249
|
-
gray: [90, 39],
|
|
250
|
-
grey: [90, 39],
|
|
251
|
-
redBright: [91, 39],
|
|
252
|
-
greenBright: [92, 39],
|
|
253
|
-
yellowBright: [93, 39],
|
|
254
|
-
blueBright: [94, 39],
|
|
255
|
-
magentaBright: [95, 39],
|
|
256
|
-
cyanBright: [96, 39],
|
|
257
|
-
whiteBright: [97, 39]
|
|
258
|
-
},
|
|
259
|
-
bgColor: {
|
|
260
|
-
bgBlack: [40, 49],
|
|
261
|
-
bgRed: [41, 49],
|
|
262
|
-
bgGreen: [42, 49],
|
|
263
|
-
bgYellow: [43, 49],
|
|
264
|
-
bgBlue: [44, 49],
|
|
265
|
-
bgMagenta: [45, 49],
|
|
266
|
-
bgCyan: [46, 49],
|
|
267
|
-
bgWhite: [47, 49],
|
|
268
|
-
bgBlackBright: [100, 49],
|
|
269
|
-
bgGray: [100, 49],
|
|
270
|
-
bgGrey: [100, 49],
|
|
271
|
-
bgRedBright: [101, 49],
|
|
272
|
-
bgGreenBright: [102, 49],
|
|
273
|
-
bgYellowBright: [103, 49],
|
|
274
|
-
bgBlueBright: [104, 49],
|
|
275
|
-
bgMagentaBright: [105, 49],
|
|
276
|
-
bgCyanBright: [106, 49],
|
|
277
|
-
bgWhiteBright: [107, 49]
|
|
278
|
-
},
|
|
279
|
-
underlineColor: {
|
|
280
|
-
underlineBlack: ["58;5;0", 59],
|
|
281
|
-
underlineRed: ["58;5;1", 59],
|
|
282
|
-
underlineGreen: ["58;5;2", 59],
|
|
283
|
-
underlineYellow: ["58;5;3", 59],
|
|
284
|
-
underlineBlue: ["58;5;4", 59],
|
|
285
|
-
underlineMagenta: ["58;5;5", 59],
|
|
286
|
-
underlineCyan: ["58;5;6", 59],
|
|
287
|
-
underlineWhite: ["58;5;7", 59],
|
|
288
|
-
underlineBlackBright: ["58;5;8", 59],
|
|
289
|
-
underlineGray: ["58;5;8", 59],
|
|
290
|
-
underlineGrey: ["58;5;8", 59],
|
|
291
|
-
underlineRedBright: ["58;5;9", 59],
|
|
292
|
-
underlineGreenBright: ["58;5;10", 59],
|
|
293
|
-
underlineYellowBright: ["58;5;11", 59],
|
|
294
|
-
underlineBlueBright: ["58;5;12", 59],
|
|
295
|
-
underlineMagentaBright: ["58;5;13", 59],
|
|
296
|
-
underlineCyanBright: ["58;5;14", 59],
|
|
297
|
-
underlineWhiteBright: ["58;5;15", 59]
|
|
177
|
+
//#region ../../node_modules/.pnpm/cli-table3@0.6.5/node_modules/cli-table3/src/utils.js
|
|
178
|
+
var require_utils = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
179
|
+
const stringWidth = require_string_width();
|
|
180
|
+
function codeRegex(capture) {
|
|
181
|
+
return capture ? /\u001b\[((?:\d*;){0,5}\d*)m/g : /\u001b\[(?:\d*;){0,5}\d*m/g;
|
|
298
182
|
}
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
function
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
183
|
+
function strlen(str) {
|
|
184
|
+
let code = codeRegex();
|
|
185
|
+
return ("" + str).replace(code, "").split("\n").reduce(function(memo, s) {
|
|
186
|
+
return stringWidth(s) > memo ? stringWidth(s) : memo;
|
|
187
|
+
}, 0);
|
|
188
|
+
}
|
|
189
|
+
function repeat(str, times) {
|
|
190
|
+
return Array(times + 1).join(str);
|
|
191
|
+
}
|
|
192
|
+
function pad(str, len, pad, dir) {
|
|
193
|
+
let length = strlen(str);
|
|
194
|
+
if (len + 1 >= length) {
|
|
195
|
+
let padlen = len - length;
|
|
196
|
+
switch (dir) {
|
|
197
|
+
case "right":
|
|
198
|
+
str = repeat(pad, padlen) + str;
|
|
199
|
+
break;
|
|
200
|
+
case "center": {
|
|
201
|
+
let right = Math.ceil(padlen / 2);
|
|
202
|
+
str = repeat(pad, padlen - right) + str + repeat(pad, right);
|
|
203
|
+
break;
|
|
204
|
+
}
|
|
205
|
+
default: str = str + repeat(pad, padlen);
|
|
206
|
+
}
|
|
315
207
|
}
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
208
|
+
return str;
|
|
209
|
+
}
|
|
210
|
+
let codeCache = {};
|
|
211
|
+
function addToCodeCache(name, on, off) {
|
|
212
|
+
on = "\x1B[" + on + "m";
|
|
213
|
+
off = "\x1B[" + off + "m";
|
|
214
|
+
codeCache[on] = {
|
|
215
|
+
set: name,
|
|
216
|
+
to: true
|
|
217
|
+
};
|
|
218
|
+
codeCache[off] = {
|
|
219
|
+
set: name,
|
|
220
|
+
to: false
|
|
221
|
+
};
|
|
222
|
+
codeCache[name] = {
|
|
223
|
+
on,
|
|
224
|
+
off
|
|
225
|
+
};
|
|
226
|
+
}
|
|
227
|
+
addToCodeCache("bold", 1, 22);
|
|
228
|
+
addToCodeCache("italics", 3, 23);
|
|
229
|
+
addToCodeCache("underline", 4, 24);
|
|
230
|
+
addToCodeCache("inverse", 7, 27);
|
|
231
|
+
addToCodeCache("strikethrough", 9, 29);
|
|
232
|
+
function updateState(state, controlChars) {
|
|
233
|
+
let controlCode = controlChars[1] ? parseInt(controlChars[1].split(";")[0]) : 0;
|
|
234
|
+
if (controlCode >= 30 && controlCode <= 39 || controlCode >= 90 && controlCode <= 97) {
|
|
235
|
+
state.lastForegroundAdded = controlChars[0];
|
|
236
|
+
return;
|
|
237
|
+
}
|
|
238
|
+
if (controlCode >= 40 && controlCode <= 49 || controlCode >= 100 && controlCode <= 107) {
|
|
239
|
+
state.lastBackgroundAdded = controlChars[0];
|
|
240
|
+
return;
|
|
241
|
+
}
|
|
242
|
+
if (controlCode === 0) {
|
|
243
|
+
for (let i in state)
|
|
244
|
+
/* istanbul ignore else */
|
|
245
|
+
if (Object.prototype.hasOwnProperty.call(state, i)) delete state[i];
|
|
246
|
+
return;
|
|
247
|
+
}
|
|
248
|
+
let info = codeCache[controlChars[0]];
|
|
249
|
+
if (info) state[info.set] = info.to;
|
|
250
|
+
}
|
|
251
|
+
function readState(line) {
|
|
252
|
+
let code = codeRegex(true);
|
|
253
|
+
let controlChars = code.exec(line);
|
|
254
|
+
let state = {};
|
|
255
|
+
while (controlChars !== null) {
|
|
256
|
+
updateState(state, controlChars);
|
|
257
|
+
controlChars = code.exec(line);
|
|
258
|
+
}
|
|
259
|
+
return state;
|
|
260
|
+
}
|
|
261
|
+
function unwindState(state, ret) {
|
|
262
|
+
let lastBackgroundAdded = state.lastBackgroundAdded;
|
|
263
|
+
let lastForegroundAdded = state.lastForegroundAdded;
|
|
264
|
+
delete state.lastBackgroundAdded;
|
|
265
|
+
delete state.lastForegroundAdded;
|
|
266
|
+
Object.keys(state).forEach(function(key) {
|
|
267
|
+
if (state[key]) ret += codeCache[key].off;
|
|
319
268
|
});
|
|
269
|
+
if (lastBackgroundAdded && lastBackgroundAdded != "\x1B[49m") ret += "\x1B[49m";
|
|
270
|
+
if (lastForegroundAdded && lastForegroundAdded != "\x1B[39m") ret += "\x1B[39m";
|
|
271
|
+
return ret;
|
|
320
272
|
}
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
styles$1.bgColor.ansi256 = wrapAnsi256(ANSI_BACKGROUND_OFFSET);
|
|
333
|
-
styles$1.bgColor.ansi16m = wrapAnsi16m(ANSI_BACKGROUND_OFFSET);
|
|
334
|
-
styles$1.underlineColor.ansi = wrapUnderlineAnsi;
|
|
335
|
-
styles$1.underlineColor.ansi256 = wrapAnsi256(ANSI_UNDERLINE_OFFSET);
|
|
336
|
-
styles$1.underlineColor.ansi16m = wrapAnsi16m(ANSI_UNDERLINE_OFFSET);
|
|
337
|
-
Object.defineProperties(styles$1, {
|
|
338
|
-
rgbToAnsi256: {
|
|
339
|
-
value(red, green, blue) {
|
|
340
|
-
if (red === green && green === blue) {
|
|
341
|
-
if (red < 8) return 16;
|
|
342
|
-
if (red > 248) return 231;
|
|
343
|
-
return Math.round((red - 8) / 247 * 24) + 232;
|
|
344
|
-
}
|
|
345
|
-
return 16 + 36 * Math.round(red / 255 * 5) + 6 * Math.round(green / 255 * 5) + Math.round(blue / 255 * 5);
|
|
346
|
-
},
|
|
347
|
-
enumerable: false
|
|
348
|
-
},
|
|
349
|
-
hexToRgb: {
|
|
350
|
-
value(hex) {
|
|
351
|
-
const matches = /[\da-f]{6}|[\da-f]{3}/i.exec(hex.toString(16));
|
|
352
|
-
if (!matches) return [
|
|
353
|
-
0,
|
|
354
|
-
0,
|
|
355
|
-
0
|
|
356
|
-
];
|
|
357
|
-
let [colorString] = matches;
|
|
358
|
-
if (colorString.length === 3) colorString = [...colorString].map((character) => character + character).join("");
|
|
359
|
-
const integer = Number.parseInt(colorString, 16);
|
|
360
|
-
return [
|
|
361
|
-
integer >> 16 & 255,
|
|
362
|
-
integer >> 8 & 255,
|
|
363
|
-
integer & 255
|
|
364
|
-
];
|
|
365
|
-
},
|
|
366
|
-
enumerable: false
|
|
367
|
-
},
|
|
368
|
-
hexToAnsi256: {
|
|
369
|
-
value: (hex) => styles$1.rgbToAnsi256(...styles$1.hexToRgb(hex)),
|
|
370
|
-
enumerable: false
|
|
371
|
-
},
|
|
372
|
-
ansi256ToAnsi: {
|
|
373
|
-
value(code) {
|
|
374
|
-
if (code < 8) return 30 + code;
|
|
375
|
-
if (code < 16) return 90 + (code - 8);
|
|
376
|
-
let red;
|
|
377
|
-
let green;
|
|
378
|
-
let blue;
|
|
379
|
-
if (code >= 232) {
|
|
380
|
-
red = ((code - 232) * 10 + 8) / 255;
|
|
381
|
-
green = red;
|
|
382
|
-
blue = red;
|
|
383
|
-
} else {
|
|
384
|
-
code -= 16;
|
|
385
|
-
const remainder = code % 36;
|
|
386
|
-
red = Math.floor(code / 36) / 5;
|
|
387
|
-
green = Math.floor(remainder / 6) / 5;
|
|
388
|
-
blue = remainder % 6 / 5;
|
|
389
|
-
}
|
|
390
|
-
const value = Math.max(red, green, blue) * 2;
|
|
391
|
-
if (value === 0) return 30;
|
|
392
|
-
let result = 30 + (Math.round(blue) << 2 | Math.round(green) << 1 | Math.round(red));
|
|
393
|
-
if (value === 2) result += 60;
|
|
394
|
-
return result;
|
|
395
|
-
},
|
|
396
|
-
enumerable: false
|
|
397
|
-
},
|
|
398
|
-
rgbToAnsi: {
|
|
399
|
-
value: (red, green, blue) => styles$1.ansi256ToAnsi(styles$1.rgbToAnsi256(red, green, blue)),
|
|
400
|
-
enumerable: false
|
|
401
|
-
},
|
|
402
|
-
hexToAnsi: {
|
|
403
|
-
value: (hex) => styles$1.ansi256ToAnsi(styles$1.hexToAnsi256(hex)),
|
|
404
|
-
enumerable: false
|
|
405
|
-
}
|
|
406
|
-
});
|
|
407
|
-
return styles$1;
|
|
408
|
-
}
|
|
409
|
-
const ansiStyles = assembleStyles();
|
|
410
|
-
//#endregion
|
|
411
|
-
//#region ../../node_modules/.pnpm/chalk@6.0.0/node_modules/chalk/source/vendor/supports-color/index.js
|
|
412
|
-
function hasFlag(flag, argv = globalThis.Deno ? globalThis.Deno.args : process$1.argv) {
|
|
413
|
-
const prefix = flag.startsWith("-") ? "" : flag.length === 1 ? "-" : "--";
|
|
414
|
-
const position = argv.indexOf(prefix + flag);
|
|
415
|
-
const terminatorPosition = argv.indexOf("--");
|
|
416
|
-
return position !== -1 && (terminatorPosition === -1 || position < terminatorPosition);
|
|
417
|
-
}
|
|
418
|
-
const { env } = process$1;
|
|
419
|
-
let flagForceColor;
|
|
420
|
-
if (hasFlag("no-color") || hasFlag("no-colors") || hasFlag("color=false") || hasFlag("color=never")) flagForceColor = 0;
|
|
421
|
-
else if (hasFlag("color") || hasFlag("colors") || hasFlag("color=true") || hasFlag("color=always")) flagForceColor = 1;
|
|
422
|
-
function hasNumericForceColor() {
|
|
423
|
-
return /^\d+$/.test(env.FORCE_COLOR);
|
|
424
|
-
}
|
|
425
|
-
function envForceColor() {
|
|
426
|
-
if (!("FORCE_COLOR" in env)) return;
|
|
427
|
-
if (env.FORCE_COLOR === "false") return 0;
|
|
428
|
-
if (env.FORCE_COLOR === "true" || env.FORCE_COLOR.length === 0) return 1;
|
|
429
|
-
if (!hasNumericForceColor()) return;
|
|
430
|
-
return Math.min(Number.parseInt(env.FORCE_COLOR, 10), 3);
|
|
431
|
-
}
|
|
432
|
-
function translateLevel(level) {
|
|
433
|
-
if (level === 0) return false;
|
|
434
|
-
return {
|
|
435
|
-
level,
|
|
436
|
-
hasBasic: true,
|
|
437
|
-
has256: level >= 2,
|
|
438
|
-
has16m: level >= 3
|
|
439
|
-
};
|
|
440
|
-
}
|
|
441
|
-
function _supportsColor(haveStream, { streamIsTTY, sniffFlags = true } = {}) {
|
|
442
|
-
const noFlagForceColor = envForceColor();
|
|
443
|
-
if (noFlagForceColor !== void 0) flagForceColor = noFlagForceColor;
|
|
444
|
-
const forceColor = sniffFlags ? flagForceColor : noFlagForceColor;
|
|
445
|
-
if (forceColor === 0) return 0;
|
|
446
|
-
if (sniffFlags) {
|
|
447
|
-
if (hasFlag("color=16m") || hasFlag("color=full") || hasFlag("color=truecolor")) return 3;
|
|
448
|
-
if (hasFlag("color=256")) return 2;
|
|
449
|
-
}
|
|
450
|
-
if (forceColor !== void 0 && hasNumericForceColor()) return forceColor;
|
|
451
|
-
if ("TF_BUILD" in env && "AGENT_NAME" in env) return 1;
|
|
452
|
-
if (haveStream && !streamIsTTY && forceColor === void 0) return 0;
|
|
453
|
-
const min = forceColor || 0;
|
|
454
|
-
if (env.TERM === "dumb") return min;
|
|
455
|
-
if (process$1.platform === "win32") {
|
|
456
|
-
const osRelease = os.release().split(".");
|
|
457
|
-
if (Number(osRelease[0]) >= 10 && Number(osRelease[2]) >= 10586) return Number(osRelease[2]) >= 14931 ? 3 : 2;
|
|
458
|
-
return 1;
|
|
273
|
+
function rewindState(state, ret) {
|
|
274
|
+
let lastBackgroundAdded = state.lastBackgroundAdded;
|
|
275
|
+
let lastForegroundAdded = state.lastForegroundAdded;
|
|
276
|
+
delete state.lastBackgroundAdded;
|
|
277
|
+
delete state.lastForegroundAdded;
|
|
278
|
+
Object.keys(state).forEach(function(key) {
|
|
279
|
+
if (state[key]) ret = codeCache[key].on + ret;
|
|
280
|
+
});
|
|
281
|
+
if (lastBackgroundAdded && lastBackgroundAdded != "\x1B[49m") ret = lastBackgroundAdded + ret;
|
|
282
|
+
if (lastForegroundAdded && lastForegroundAdded != "\x1B[39m") ret = lastForegroundAdded + ret;
|
|
283
|
+
return ret;
|
|
459
284
|
}
|
|
460
|
-
|
|
461
|
-
if (
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
"CIRCLECI"
|
|
465
|
-
].some((key) => key in env)) return 3;
|
|
466
|
-
if ([
|
|
467
|
-
"TRAVIS",
|
|
468
|
-
"APPVEYOR",
|
|
469
|
-
"GITLAB_CI",
|
|
470
|
-
"BUILDKITE",
|
|
471
|
-
"DRONE"
|
|
472
|
-
].some((sign) => sign in env) || env.CI_NAME === "codeship") return 1;
|
|
473
|
-
return min;
|
|
285
|
+
function truncateWidth(str, desiredLength) {
|
|
286
|
+
if (str.length === strlen(str)) return str.substr(0, desiredLength);
|
|
287
|
+
while (strlen(str) > desiredLength) str = str.slice(0, -1);
|
|
288
|
+
return str;
|
|
474
289
|
}
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
290
|
+
function truncateWidthWithAnsi(str, desiredLength) {
|
|
291
|
+
let code = codeRegex(true);
|
|
292
|
+
let split = str.split(codeRegex());
|
|
293
|
+
let splitIndex = 0;
|
|
294
|
+
let retLen = 0;
|
|
295
|
+
let ret = "";
|
|
296
|
+
let myArray;
|
|
297
|
+
let state = {};
|
|
298
|
+
while (retLen < desiredLength) {
|
|
299
|
+
myArray = code.exec(str);
|
|
300
|
+
let toAdd = split[splitIndex];
|
|
301
|
+
splitIndex++;
|
|
302
|
+
if (retLen + strlen(toAdd) > desiredLength) toAdd = truncateWidth(toAdd, desiredLength - retLen);
|
|
303
|
+
ret += toAdd;
|
|
304
|
+
retLen += strlen(toAdd);
|
|
305
|
+
if (retLen < desiredLength) {
|
|
306
|
+
if (!myArray) break;
|
|
307
|
+
ret += myArray[0];
|
|
308
|
+
updateState(state, myArray);
|
|
309
|
+
}
|
|
485
310
|
}
|
|
311
|
+
return unwindState(state, ret);
|
|
486
312
|
}
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
}));
|
|
497
|
-
}
|
|
498
|
-
//#endregion
|
|
499
|
-
//#region ../../node_modules/.pnpm/chalk@6.0.0/node_modules/chalk/source/index.js
|
|
500
|
-
const { stdout: stdoutColor, stderr: stderrColor } = {
|
|
501
|
-
stdout: createSupportsColor({ isTTY: tty.isatty(1) }),
|
|
502
|
-
stderr: createSupportsColor({ isTTY: tty.isatty(2) })
|
|
503
|
-
};
|
|
504
|
-
const GENERATOR = Symbol("GENERATOR");
|
|
505
|
-
const STYLER = Symbol("STYLER");
|
|
506
|
-
const IS_EMPTY = Symbol("IS_EMPTY");
|
|
507
|
-
const LEVEL = Symbol("LEVEL");
|
|
508
|
-
const styles = Object.create(null);
|
|
509
|
-
const assertValidLevel = (level) => {
|
|
510
|
-
if (!Number.isSafeInteger(level) || level < 0 || level > 3) throw new Error("The `level` should be an integer from 0 to 3");
|
|
511
|
-
};
|
|
512
|
-
const levelDescriptor = {
|
|
513
|
-
enumerable: true,
|
|
514
|
-
get() {
|
|
515
|
-
return this[LEVEL];
|
|
516
|
-
},
|
|
517
|
-
set(level) {
|
|
518
|
-
assertValidLevel(level);
|
|
519
|
-
this[LEVEL] = level;
|
|
313
|
+
function truncate(str, desiredLength, truncateChar) {
|
|
314
|
+
truncateChar = truncateChar || "…";
|
|
315
|
+
if (strlen(str) <= desiredLength) return str;
|
|
316
|
+
desiredLength -= strlen(truncateChar);
|
|
317
|
+
let ret = truncateWidthWithAnsi(str, desiredLength);
|
|
318
|
+
ret += truncateChar;
|
|
319
|
+
const hrefTag = "\x1B]8;;\x07";
|
|
320
|
+
if (str.includes(hrefTag) && !ret.includes(hrefTag)) ret += hrefTag;
|
|
321
|
+
return ret;
|
|
520
322
|
}
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
ansi,
|
|
555
|
-
ansi256,
|
|
556
|
-
style.ansi16m
|
|
557
|
-
];
|
|
323
|
+
function defaultOptions() {
|
|
324
|
+
return {
|
|
325
|
+
chars: {
|
|
326
|
+
top: "─",
|
|
327
|
+
"top-mid": "┬",
|
|
328
|
+
"top-left": "┌",
|
|
329
|
+
"top-right": "┐",
|
|
330
|
+
bottom: "─",
|
|
331
|
+
"bottom-mid": "┴",
|
|
332
|
+
"bottom-left": "└",
|
|
333
|
+
"bottom-right": "┘",
|
|
334
|
+
left: "│",
|
|
335
|
+
"left-mid": "├",
|
|
336
|
+
mid: "─",
|
|
337
|
+
"mid-mid": "┼",
|
|
338
|
+
right: "│",
|
|
339
|
+
"right-mid": "┤",
|
|
340
|
+
middle: "│"
|
|
341
|
+
},
|
|
342
|
+
truncate: "…",
|
|
343
|
+
colWidths: [],
|
|
344
|
+
rowHeights: [],
|
|
345
|
+
colAligns: [],
|
|
346
|
+
rowAligns: [],
|
|
347
|
+
style: {
|
|
348
|
+
"padding-left": 1,
|
|
349
|
+
"padding-right": 1,
|
|
350
|
+
head: ["red"],
|
|
351
|
+
border: ["grey"],
|
|
352
|
+
compact: false
|
|
353
|
+
},
|
|
354
|
+
head: []
|
|
355
|
+
};
|
|
558
356
|
}
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
(hex) => style.ansi16m(...ansiStyles.hexToRgb(hex))
|
|
567
|
-
];
|
|
357
|
+
function mergeOptions(options, defaults) {
|
|
358
|
+
options = options || {};
|
|
359
|
+
defaults = defaults || defaultOptions();
|
|
360
|
+
let ret = Object.assign({}, defaults, options);
|
|
361
|
+
ret.chars = Object.assign({}, defaults.chars, options.chars);
|
|
362
|
+
ret.style = Object.assign({}, defaults.style, options.style);
|
|
363
|
+
return ret;
|
|
568
364
|
}
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
]
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
const styleFunction = function(first, second, third) {
|
|
592
|
-
const open = converters[this.level](first, second, third);
|
|
593
|
-
return createBuilder(this, createStyler(open, close, this[STYLER]), this[IS_EMPTY]);
|
|
594
|
-
};
|
|
595
|
-
Object.defineProperty(this, styleName, { value: styleFunction });
|
|
596
|
-
return styleFunction;
|
|
597
|
-
} };
|
|
365
|
+
function wordWrap(maxLength, input) {
|
|
366
|
+
let lines = [];
|
|
367
|
+
let split = input.split(/(\s+)/g);
|
|
368
|
+
let line = [];
|
|
369
|
+
let lineLength = 0;
|
|
370
|
+
let whitespace;
|
|
371
|
+
for (let i = 0; i < split.length; i += 2) {
|
|
372
|
+
let word = split[i];
|
|
373
|
+
let newLength = lineLength + strlen(word);
|
|
374
|
+
if (lineLength > 0 && whitespace) newLength += whitespace.length;
|
|
375
|
+
if (newLength > maxLength) {
|
|
376
|
+
if (lineLength !== 0) lines.push(line.join(""));
|
|
377
|
+
line = [word];
|
|
378
|
+
lineLength = strlen(word);
|
|
379
|
+
} else {
|
|
380
|
+
line.push(whitespace || "", word);
|
|
381
|
+
lineLength = newLength;
|
|
382
|
+
}
|
|
383
|
+
whitespace = split[i + 1];
|
|
384
|
+
}
|
|
385
|
+
if (lineLength) lines.push(line.join(""));
|
|
386
|
+
return lines;
|
|
598
387
|
}
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
|
|
388
|
+
function textWrap(maxLength, input) {
|
|
389
|
+
let lines = [];
|
|
390
|
+
let line = "";
|
|
391
|
+
function pushLine(str, ws) {
|
|
392
|
+
if (line.length && ws) line += ws;
|
|
393
|
+
line += str;
|
|
394
|
+
while (line.length > maxLength) {
|
|
395
|
+
lines.push(line.slice(0, maxLength));
|
|
396
|
+
line = line.slice(maxLength);
|
|
397
|
+
}
|
|
609
398
|
}
|
|
399
|
+
let split = input.split(/(\s+)/g);
|
|
400
|
+
for (let i = 0; i < split.length; i += 2) pushLine(split[i], i && split[i - 1]);
|
|
401
|
+
if (line.length) lines.push(line);
|
|
402
|
+
return lines;
|
|
610
403
|
}
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
closeAll = close;
|
|
618
|
-
} else {
|
|
619
|
-
openAll = parent.openAll + open;
|
|
620
|
-
closeAll = close + parent.closeAll;
|
|
404
|
+
function multiLineWordWrap(maxLength, input, wrapOnWordBoundary = true) {
|
|
405
|
+
let output = [];
|
|
406
|
+
input = input.split("\n");
|
|
407
|
+
const handler = wrapOnWordBoundary ? wordWrap : textWrap;
|
|
408
|
+
for (let i = 0; i < input.length; i++) output.push.apply(output, handler(maxLength, input[i]));
|
|
409
|
+
return output;
|
|
621
410
|
}
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
if (arguments_.length === 1) return applyStyle(builder, "" + arguments_[0]);
|
|
633
|
-
if (arguments_.length === 2) return applyStyle(builder, arguments_[0] + " " + arguments_[1]);
|
|
634
|
-
return applyStyle(builder, arguments_.join(" "));
|
|
635
|
-
};
|
|
636
|
-
Object.setPrototypeOf(builder, proto);
|
|
637
|
-
builder[GENERATOR] = self[GENERATOR] ?? self;
|
|
638
|
-
builder[STYLER] = _styler;
|
|
639
|
-
builder[IS_EMPTY] = _isEmpty;
|
|
640
|
-
return builder;
|
|
641
|
-
};
|
|
642
|
-
const applyStyle = (self, string) => {
|
|
643
|
-
if (self[GENERATOR][LEVEL] <= 0 || !string) return self[IS_EMPTY] ? "" : string;
|
|
644
|
-
let styler = self[STYLER];
|
|
645
|
-
if (styler === void 0) return string;
|
|
646
|
-
const { openAll, closeAll } = styler;
|
|
647
|
-
if (string.includes("\x1B")) while (styler !== void 0) {
|
|
648
|
-
string = stringReplaceAll(string, styler.close, styler.open);
|
|
649
|
-
styler = styler.parent;
|
|
411
|
+
function colorizeLines(input) {
|
|
412
|
+
let state = {};
|
|
413
|
+
let output = [];
|
|
414
|
+
for (let i = 0; i < input.length; i++) {
|
|
415
|
+
let line = rewindState(state, input[i]);
|
|
416
|
+
state = readState(line);
|
|
417
|
+
let temp = Object.assign({}, state);
|
|
418
|
+
output.push(unwindState(temp, line));
|
|
419
|
+
}
|
|
420
|
+
return output;
|
|
650
421
|
}
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
|
|
422
|
+
/**
|
|
423
|
+
* Credit: Matheus Sampaio https://github.com/matheussampaio
|
|
424
|
+
*/
|
|
425
|
+
function hyperlink(url, text) {
|
|
426
|
+
const OSC = "\x1B]";
|
|
427
|
+
const BEL = "\x07";
|
|
428
|
+
const SEP = ";";
|
|
429
|
+
return [
|
|
430
|
+
OSC,
|
|
431
|
+
"8",
|
|
432
|
+
SEP,
|
|
433
|
+
SEP,
|
|
434
|
+
url || text,
|
|
435
|
+
BEL,
|
|
436
|
+
text,
|
|
437
|
+
OSC,
|
|
438
|
+
"8",
|
|
439
|
+
SEP,
|
|
440
|
+
SEP,
|
|
441
|
+
BEL
|
|
442
|
+
].join("");
|
|
443
|
+
}
|
|
444
|
+
module.exports = {
|
|
445
|
+
strlen,
|
|
446
|
+
repeat,
|
|
447
|
+
pad,
|
|
448
|
+
truncate,
|
|
449
|
+
mergeOptions,
|
|
450
|
+
wordWrap: multiLineWordWrap,
|
|
451
|
+
colorizeLines,
|
|
452
|
+
hyperlink
|
|
677
453
|
};
|
|
678
|
-
debug.warn = (msg) => debug(msg, debug.WARN);
|
|
679
|
-
debug.info = (msg) => debug(msg, debug.INFO);
|
|
680
|
-
debug.debug = (msg) => debug(msg, debug.DEBUG);
|
|
681
|
-
debug.debugMessages = () => messages;
|
|
682
|
-
module.exports = debug;
|
|
683
454
|
}));
|
|
684
455
|
//#endregion
|
|
685
|
-
//#region ../../node_modules/.pnpm
|
|
686
|
-
var
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
|
|
721
|
-
|
|
722
|
-
|
|
723
|
-
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
|
|
728
|
-
|
|
729
|
-
|
|
730
|
-
|
|
731
|
-
|
|
732
|
-
|
|
456
|
+
//#region ../../node_modules/.pnpm/@colors+colors@1.5.0/node_modules/@colors/colors/lib/styles.js
|
|
457
|
+
var require_styles = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
458
|
+
var styles = {};
|
|
459
|
+
module["exports"] = styles;
|
|
460
|
+
var codes = {
|
|
461
|
+
reset: [0, 0],
|
|
462
|
+
bold: [1, 22],
|
|
463
|
+
dim: [2, 22],
|
|
464
|
+
italic: [3, 23],
|
|
465
|
+
underline: [4, 24],
|
|
466
|
+
inverse: [7, 27],
|
|
467
|
+
hidden: [8, 28],
|
|
468
|
+
strikethrough: [9, 29],
|
|
469
|
+
black: [30, 39],
|
|
470
|
+
red: [31, 39],
|
|
471
|
+
green: [32, 39],
|
|
472
|
+
yellow: [33, 39],
|
|
473
|
+
blue: [34, 39],
|
|
474
|
+
magenta: [35, 39],
|
|
475
|
+
cyan: [36, 39],
|
|
476
|
+
white: [37, 39],
|
|
477
|
+
gray: [90, 39],
|
|
478
|
+
grey: [90, 39],
|
|
479
|
+
brightRed: [91, 39],
|
|
480
|
+
brightGreen: [92, 39],
|
|
481
|
+
brightYellow: [93, 39],
|
|
482
|
+
brightBlue: [94, 39],
|
|
483
|
+
brightMagenta: [95, 39],
|
|
484
|
+
brightCyan: [96, 39],
|
|
485
|
+
brightWhite: [97, 39],
|
|
486
|
+
bgBlack: [40, 49],
|
|
487
|
+
bgRed: [41, 49],
|
|
488
|
+
bgGreen: [42, 49],
|
|
489
|
+
bgYellow: [43, 49],
|
|
490
|
+
bgBlue: [44, 49],
|
|
491
|
+
bgMagenta: [45, 49],
|
|
492
|
+
bgCyan: [46, 49],
|
|
493
|
+
bgWhite: [47, 49],
|
|
494
|
+
bgGray: [100, 49],
|
|
495
|
+
bgGrey: [100, 49],
|
|
496
|
+
bgBrightRed: [101, 49],
|
|
497
|
+
bgBrightGreen: [102, 49],
|
|
498
|
+
bgBrightYellow: [103, 49],
|
|
499
|
+
bgBrightBlue: [104, 49],
|
|
500
|
+
bgBrightMagenta: [105, 49],
|
|
501
|
+
bgBrightCyan: [106, 49],
|
|
502
|
+
bgBrightWhite: [107, 49],
|
|
503
|
+
blackBG: [40, 49],
|
|
504
|
+
redBG: [41, 49],
|
|
505
|
+
greenBG: [42, 49],
|
|
506
|
+
yellowBG: [43, 49],
|
|
507
|
+
blueBG: [44, 49],
|
|
508
|
+
magentaBG: [45, 49],
|
|
509
|
+
cyanBG: [46, 49],
|
|
510
|
+
whiteBG: [47, 49]
|
|
511
|
+
};
|
|
512
|
+
Object.keys(codes).forEach(function(key) {
|
|
513
|
+
var val = codes[key];
|
|
514
|
+
var style = styles[key] = [];
|
|
515
|
+
style.open = "\x1B[" + val[0] + "m";
|
|
516
|
+
style.close = "\x1B[" + val[1] + "m";
|
|
517
|
+
});
|
|
518
|
+
}));
|
|
519
|
+
//#endregion
|
|
520
|
+
//#region ../../node_modules/.pnpm/@colors+colors@1.5.0/node_modules/@colors/colors/lib/system/has-flag.js
|
|
521
|
+
var require_has_flag = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
522
|
+
module.exports = function(flag, argv) {
|
|
523
|
+
argv = argv || process.argv;
|
|
524
|
+
var terminatorPos = argv.indexOf("--");
|
|
525
|
+
var prefix = /^-{1,2}/.test(flag) ? "" : "--";
|
|
526
|
+
var pos = argv.indexOf(prefix + flag);
|
|
527
|
+
return pos !== -1 && (terminatorPos === -1 ? true : pos < terminatorPos);
|
|
528
|
+
};
|
|
529
|
+
}));
|
|
530
|
+
//#endregion
|
|
531
|
+
//#region ../../node_modules/.pnpm/@colors+colors@1.5.0/node_modules/@colors/colors/lib/system/supports-colors.js
|
|
532
|
+
var require_supports_colors = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
533
|
+
var os$1 = __require("os");
|
|
534
|
+
var hasFlag = require_has_flag();
|
|
535
|
+
var env = process.env;
|
|
536
|
+
var forceColor = void 0;
|
|
537
|
+
if (hasFlag("no-color") || hasFlag("no-colors") || hasFlag("color=false")) forceColor = false;
|
|
538
|
+
else if (hasFlag("color") || hasFlag("colors") || hasFlag("color=true") || hasFlag("color=always")) forceColor = true;
|
|
539
|
+
if ("FORCE_COLOR" in env) forceColor = env.FORCE_COLOR.length === 0 || parseInt(env.FORCE_COLOR, 10) !== 0;
|
|
540
|
+
function translateLevel(level) {
|
|
541
|
+
if (level === 0) return false;
|
|
542
|
+
return {
|
|
543
|
+
level,
|
|
544
|
+
hasBasic: true,
|
|
545
|
+
has256: level >= 2,
|
|
546
|
+
has16m: level >= 3
|
|
733
547
|
};
|
|
734
548
|
}
|
|
735
|
-
|
|
736
|
-
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
|
|
740
|
-
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
|
|
744
|
-
return;
|
|
745
|
-
}
|
|
746
|
-
if (controlCode >= 40 && controlCode <= 49 || controlCode >= 100 && controlCode <= 107) {
|
|
747
|
-
state.lastBackgroundAdded = controlChars[0];
|
|
748
|
-
return;
|
|
749
|
-
}
|
|
750
|
-
if (controlCode === 0) {
|
|
751
|
-
for (let i in state)
|
|
752
|
-
/* istanbul ignore else */
|
|
753
|
-
if (Object.prototype.hasOwnProperty.call(state, i)) delete state[i];
|
|
754
|
-
return;
|
|
549
|
+
function supportsColor(stream) {
|
|
550
|
+
if (forceColor === false) return 0;
|
|
551
|
+
if (hasFlag("color=16m") || hasFlag("color=full") || hasFlag("color=truecolor")) return 3;
|
|
552
|
+
if (hasFlag("color=256")) return 2;
|
|
553
|
+
if (stream && !stream.isTTY && forceColor !== true) return 0;
|
|
554
|
+
var min = forceColor ? 1 : 0;
|
|
555
|
+
if (process.platform === "win32") {
|
|
556
|
+
var osRelease = os$1.release().split(".");
|
|
557
|
+
if (Number(process.versions.node.split(".")[0]) >= 8 && Number(osRelease[0]) >= 10 && Number(osRelease[2]) >= 10586) return Number(osRelease[2]) >= 14931 ? 3 : 2;
|
|
558
|
+
return 1;
|
|
755
559
|
}
|
|
756
|
-
|
|
757
|
-
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
|
|
762
|
-
|
|
763
|
-
|
|
764
|
-
|
|
765
|
-
|
|
560
|
+
if ("CI" in env) {
|
|
561
|
+
if ([
|
|
562
|
+
"TRAVIS",
|
|
563
|
+
"CIRCLECI",
|
|
564
|
+
"APPVEYOR",
|
|
565
|
+
"GITLAB_CI"
|
|
566
|
+
].some(function(sign) {
|
|
567
|
+
return sign in env;
|
|
568
|
+
}) || env.CI_NAME === "codeship") return 1;
|
|
569
|
+
return min;
|
|
766
570
|
}
|
|
767
|
-
return
|
|
768
|
-
|
|
769
|
-
|
|
770
|
-
|
|
771
|
-
|
|
772
|
-
|
|
773
|
-
|
|
774
|
-
Object.keys(state).forEach(function(key) {
|
|
775
|
-
if (state[key]) ret += codeCache[key].off;
|
|
776
|
-
});
|
|
777
|
-
if (lastBackgroundAdded && lastBackgroundAdded != "\x1B[49m") ret += "\x1B[49m";
|
|
778
|
-
if (lastForegroundAdded && lastForegroundAdded != "\x1B[39m") ret += "\x1B[39m";
|
|
779
|
-
return ret;
|
|
780
|
-
}
|
|
781
|
-
function rewindState(state, ret) {
|
|
782
|
-
let lastBackgroundAdded = state.lastBackgroundAdded;
|
|
783
|
-
let lastForegroundAdded = state.lastForegroundAdded;
|
|
784
|
-
delete state.lastBackgroundAdded;
|
|
785
|
-
delete state.lastForegroundAdded;
|
|
786
|
-
Object.keys(state).forEach(function(key) {
|
|
787
|
-
if (state[key]) ret = codeCache[key].on + ret;
|
|
788
|
-
});
|
|
789
|
-
if (lastBackgroundAdded && lastBackgroundAdded != "\x1B[49m") ret = lastBackgroundAdded + ret;
|
|
790
|
-
if (lastForegroundAdded && lastForegroundAdded != "\x1B[39m") ret = lastForegroundAdded + ret;
|
|
791
|
-
return ret;
|
|
792
|
-
}
|
|
793
|
-
function truncateWidth(str, desiredLength) {
|
|
794
|
-
if (str.length === strlen(str)) return str.substr(0, desiredLength);
|
|
795
|
-
while (strlen(str) > desiredLength) str = str.slice(0, -1);
|
|
796
|
-
return str;
|
|
797
|
-
}
|
|
798
|
-
function truncateWidthWithAnsi(str, desiredLength) {
|
|
799
|
-
let code = codeRegex(true);
|
|
800
|
-
let split = str.split(codeRegex());
|
|
801
|
-
let splitIndex = 0;
|
|
802
|
-
let retLen = 0;
|
|
803
|
-
let ret = "";
|
|
804
|
-
let myArray;
|
|
805
|
-
let state = {};
|
|
806
|
-
while (retLen < desiredLength) {
|
|
807
|
-
myArray = code.exec(str);
|
|
808
|
-
let toAdd = split[splitIndex];
|
|
809
|
-
splitIndex++;
|
|
810
|
-
if (retLen + strlen(toAdd) > desiredLength) toAdd = truncateWidth(toAdd, desiredLength - retLen);
|
|
811
|
-
ret += toAdd;
|
|
812
|
-
retLen += strlen(toAdd);
|
|
813
|
-
if (retLen < desiredLength) {
|
|
814
|
-
if (!myArray) break;
|
|
815
|
-
ret += myArray[0];
|
|
816
|
-
updateState(state, myArray);
|
|
571
|
+
if ("TEAMCITY_VERSION" in env) return /^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(env.TEAMCITY_VERSION) ? 1 : 0;
|
|
572
|
+
if ("TERM_PROGRAM" in env) {
|
|
573
|
+
var version = parseInt((env.TERM_PROGRAM_VERSION || "").split(".")[0], 10);
|
|
574
|
+
switch (env.TERM_PROGRAM) {
|
|
575
|
+
case "iTerm.app": return version >= 3 ? 3 : 2;
|
|
576
|
+
case "Hyper": return 3;
|
|
577
|
+
case "Apple_Terminal": return 2;
|
|
817
578
|
}
|
|
818
579
|
}
|
|
819
|
-
|
|
580
|
+
if (/-256(color)?$/i.test(env.TERM)) return 2;
|
|
581
|
+
if (/^screen|^xterm|^vt100|^rxvt|color|ansi|cygwin|linux/i.test(env.TERM)) return 1;
|
|
582
|
+
if ("COLORTERM" in env) return 1;
|
|
583
|
+
if (env.TERM === "dumb") return min;
|
|
584
|
+
return min;
|
|
820
585
|
}
|
|
821
|
-
function
|
|
822
|
-
|
|
823
|
-
if (strlen(str) <= desiredLength) return str;
|
|
824
|
-
desiredLength -= strlen(truncateChar);
|
|
825
|
-
let ret = truncateWidthWithAnsi(str, desiredLength);
|
|
826
|
-
ret += truncateChar;
|
|
827
|
-
const hrefTag = "\x1B]8;;\x07";
|
|
828
|
-
if (str.includes(hrefTag) && !ret.includes(hrefTag)) ret += hrefTag;
|
|
829
|
-
return ret;
|
|
830
|
-
}
|
|
831
|
-
function defaultOptions() {
|
|
832
|
-
return {
|
|
833
|
-
chars: {
|
|
834
|
-
top: "─",
|
|
835
|
-
"top-mid": "┬",
|
|
836
|
-
"top-left": "┌",
|
|
837
|
-
"top-right": "┐",
|
|
838
|
-
bottom: "─",
|
|
839
|
-
"bottom-mid": "┴",
|
|
840
|
-
"bottom-left": "└",
|
|
841
|
-
"bottom-right": "┘",
|
|
842
|
-
left: "│",
|
|
843
|
-
"left-mid": "├",
|
|
844
|
-
mid: "─",
|
|
845
|
-
"mid-mid": "┼",
|
|
846
|
-
right: "│",
|
|
847
|
-
"right-mid": "┤",
|
|
848
|
-
middle: "│"
|
|
849
|
-
},
|
|
850
|
-
truncate: "…",
|
|
851
|
-
colWidths: [],
|
|
852
|
-
rowHeights: [],
|
|
853
|
-
colAligns: [],
|
|
854
|
-
rowAligns: [],
|
|
855
|
-
style: {
|
|
856
|
-
"padding-left": 1,
|
|
857
|
-
"padding-right": 1,
|
|
858
|
-
head: ["red"],
|
|
859
|
-
border: ["grey"],
|
|
860
|
-
compact: false
|
|
861
|
-
},
|
|
862
|
-
head: []
|
|
863
|
-
};
|
|
864
|
-
}
|
|
865
|
-
function mergeOptions(options, defaults) {
|
|
866
|
-
options = options || {};
|
|
867
|
-
defaults = defaults || defaultOptions();
|
|
868
|
-
let ret = Object.assign({}, defaults, options);
|
|
869
|
-
ret.chars = Object.assign({}, defaults.chars, options.chars);
|
|
870
|
-
ret.style = Object.assign({}, defaults.style, options.style);
|
|
871
|
-
return ret;
|
|
872
|
-
}
|
|
873
|
-
function wordWrap(maxLength, input) {
|
|
874
|
-
let lines = [];
|
|
875
|
-
let split = input.split(/(\s+)/g);
|
|
876
|
-
let line = [];
|
|
877
|
-
let lineLength = 0;
|
|
878
|
-
let whitespace;
|
|
879
|
-
for (let i = 0; i < split.length; i += 2) {
|
|
880
|
-
let word = split[i];
|
|
881
|
-
let newLength = lineLength + strlen(word);
|
|
882
|
-
if (lineLength > 0 && whitespace) newLength += whitespace.length;
|
|
883
|
-
if (newLength > maxLength) {
|
|
884
|
-
if (lineLength !== 0) lines.push(line.join(""));
|
|
885
|
-
line = [word];
|
|
886
|
-
lineLength = strlen(word);
|
|
887
|
-
} else {
|
|
888
|
-
line.push(whitespace || "", word);
|
|
889
|
-
lineLength = newLength;
|
|
890
|
-
}
|
|
891
|
-
whitespace = split[i + 1];
|
|
892
|
-
}
|
|
893
|
-
if (lineLength) lines.push(line.join(""));
|
|
894
|
-
return lines;
|
|
895
|
-
}
|
|
896
|
-
function textWrap(maxLength, input) {
|
|
897
|
-
let lines = [];
|
|
898
|
-
let line = "";
|
|
899
|
-
function pushLine(str, ws) {
|
|
900
|
-
if (line.length && ws) line += ws;
|
|
901
|
-
line += str;
|
|
902
|
-
while (line.length > maxLength) {
|
|
903
|
-
lines.push(line.slice(0, maxLength));
|
|
904
|
-
line = line.slice(maxLength);
|
|
905
|
-
}
|
|
906
|
-
}
|
|
907
|
-
let split = input.split(/(\s+)/g);
|
|
908
|
-
for (let i = 0; i < split.length; i += 2) pushLine(split[i], i && split[i - 1]);
|
|
909
|
-
if (line.length) lines.push(line);
|
|
910
|
-
return lines;
|
|
911
|
-
}
|
|
912
|
-
function multiLineWordWrap(maxLength, input, wrapOnWordBoundary = true) {
|
|
913
|
-
let output = [];
|
|
914
|
-
input = input.split("\n");
|
|
915
|
-
const handler = wrapOnWordBoundary ? wordWrap : textWrap;
|
|
916
|
-
for (let i = 0; i < input.length; i++) output.push.apply(output, handler(maxLength, input[i]));
|
|
917
|
-
return output;
|
|
918
|
-
}
|
|
919
|
-
function colorizeLines(input) {
|
|
920
|
-
let state = {};
|
|
921
|
-
let output = [];
|
|
922
|
-
for (let i = 0; i < input.length; i++) {
|
|
923
|
-
let line = rewindState(state, input[i]);
|
|
924
|
-
state = readState(line);
|
|
925
|
-
let temp = Object.assign({}, state);
|
|
926
|
-
output.push(unwindState(temp, line));
|
|
927
|
-
}
|
|
928
|
-
return output;
|
|
929
|
-
}
|
|
930
|
-
/**
|
|
931
|
-
* Credit: Matheus Sampaio https://github.com/matheussampaio
|
|
932
|
-
*/
|
|
933
|
-
function hyperlink(url, text) {
|
|
934
|
-
const OSC = "\x1B]";
|
|
935
|
-
const BEL = "\x07";
|
|
936
|
-
const SEP = ";";
|
|
937
|
-
return [
|
|
938
|
-
OSC,
|
|
939
|
-
"8",
|
|
940
|
-
SEP,
|
|
941
|
-
SEP,
|
|
942
|
-
url || text,
|
|
943
|
-
BEL,
|
|
944
|
-
text,
|
|
945
|
-
OSC,
|
|
946
|
-
"8",
|
|
947
|
-
SEP,
|
|
948
|
-
SEP,
|
|
949
|
-
BEL
|
|
950
|
-
].join("");
|
|
586
|
+
function getSupportLevel(stream) {
|
|
587
|
+
return translateLevel(supportsColor(stream));
|
|
951
588
|
}
|
|
952
589
|
module.exports = {
|
|
953
|
-
|
|
954
|
-
|
|
955
|
-
|
|
956
|
-
truncate,
|
|
957
|
-
mergeOptions,
|
|
958
|
-
wordWrap: multiLineWordWrap,
|
|
959
|
-
colorizeLines,
|
|
960
|
-
hyperlink
|
|
961
|
-
};
|
|
962
|
-
}));
|
|
963
|
-
//#endregion
|
|
964
|
-
//#region ../../node_modules/.pnpm/@colors+colors@1.5.0/node_modules/@colors/colors/lib/styles.js
|
|
965
|
-
var require_styles = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
966
|
-
var styles = {};
|
|
967
|
-
module["exports"] = styles;
|
|
968
|
-
var codes = {
|
|
969
|
-
reset: [0, 0],
|
|
970
|
-
bold: [1, 22],
|
|
971
|
-
dim: [2, 22],
|
|
972
|
-
italic: [3, 23],
|
|
973
|
-
underline: [4, 24],
|
|
974
|
-
inverse: [7, 27],
|
|
975
|
-
hidden: [8, 28],
|
|
976
|
-
strikethrough: [9, 29],
|
|
977
|
-
black: [30, 39],
|
|
978
|
-
red: [31, 39],
|
|
979
|
-
green: [32, 39],
|
|
980
|
-
yellow: [33, 39],
|
|
981
|
-
blue: [34, 39],
|
|
982
|
-
magenta: [35, 39],
|
|
983
|
-
cyan: [36, 39],
|
|
984
|
-
white: [37, 39],
|
|
985
|
-
gray: [90, 39],
|
|
986
|
-
grey: [90, 39],
|
|
987
|
-
brightRed: [91, 39],
|
|
988
|
-
brightGreen: [92, 39],
|
|
989
|
-
brightYellow: [93, 39],
|
|
990
|
-
brightBlue: [94, 39],
|
|
991
|
-
brightMagenta: [95, 39],
|
|
992
|
-
brightCyan: [96, 39],
|
|
993
|
-
brightWhite: [97, 39],
|
|
994
|
-
bgBlack: [40, 49],
|
|
995
|
-
bgRed: [41, 49],
|
|
996
|
-
bgGreen: [42, 49],
|
|
997
|
-
bgYellow: [43, 49],
|
|
998
|
-
bgBlue: [44, 49],
|
|
999
|
-
bgMagenta: [45, 49],
|
|
1000
|
-
bgCyan: [46, 49],
|
|
1001
|
-
bgWhite: [47, 49],
|
|
1002
|
-
bgGray: [100, 49],
|
|
1003
|
-
bgGrey: [100, 49],
|
|
1004
|
-
bgBrightRed: [101, 49],
|
|
1005
|
-
bgBrightGreen: [102, 49],
|
|
1006
|
-
bgBrightYellow: [103, 49],
|
|
1007
|
-
bgBrightBlue: [104, 49],
|
|
1008
|
-
bgBrightMagenta: [105, 49],
|
|
1009
|
-
bgBrightCyan: [106, 49],
|
|
1010
|
-
bgBrightWhite: [107, 49],
|
|
1011
|
-
blackBG: [40, 49],
|
|
1012
|
-
redBG: [41, 49],
|
|
1013
|
-
greenBG: [42, 49],
|
|
1014
|
-
yellowBG: [43, 49],
|
|
1015
|
-
blueBG: [44, 49],
|
|
1016
|
-
magentaBG: [45, 49],
|
|
1017
|
-
cyanBG: [46, 49],
|
|
1018
|
-
whiteBG: [47, 49]
|
|
1019
|
-
};
|
|
1020
|
-
Object.keys(codes).forEach(function(key) {
|
|
1021
|
-
var val = codes[key];
|
|
1022
|
-
var style = styles[key] = [];
|
|
1023
|
-
style.open = "\x1B[" + val[0] + "m";
|
|
1024
|
-
style.close = "\x1B[" + val[1] + "m";
|
|
1025
|
-
});
|
|
1026
|
-
}));
|
|
1027
|
-
//#endregion
|
|
1028
|
-
//#region ../../node_modules/.pnpm/@colors+colors@1.5.0/node_modules/@colors/colors/lib/system/has-flag.js
|
|
1029
|
-
var require_has_flag = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
1030
|
-
module.exports = function(flag, argv) {
|
|
1031
|
-
argv = argv || process.argv;
|
|
1032
|
-
var terminatorPos = argv.indexOf("--");
|
|
1033
|
-
var prefix = /^-{1,2}/.test(flag) ? "" : "--";
|
|
1034
|
-
var pos = argv.indexOf(prefix + flag);
|
|
1035
|
-
return pos !== -1 && (terminatorPos === -1 ? true : pos < terminatorPos);
|
|
1036
|
-
};
|
|
1037
|
-
}));
|
|
1038
|
-
//#endregion
|
|
1039
|
-
//#region ../../node_modules/.pnpm/@colors+colors@1.5.0/node_modules/@colors/colors/lib/system/supports-colors.js
|
|
1040
|
-
var require_supports_colors = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
1041
|
-
var os$1 = __require("os");
|
|
1042
|
-
var hasFlag = require_has_flag();
|
|
1043
|
-
var env = process.env;
|
|
1044
|
-
var forceColor = void 0;
|
|
1045
|
-
if (hasFlag("no-color") || hasFlag("no-colors") || hasFlag("color=false")) forceColor = false;
|
|
1046
|
-
else if (hasFlag("color") || hasFlag("colors") || hasFlag("color=true") || hasFlag("color=always")) forceColor = true;
|
|
1047
|
-
if ("FORCE_COLOR" in env) forceColor = env.FORCE_COLOR.length === 0 || parseInt(env.FORCE_COLOR, 10) !== 0;
|
|
1048
|
-
function translateLevel(level) {
|
|
1049
|
-
if (level === 0) return false;
|
|
1050
|
-
return {
|
|
1051
|
-
level,
|
|
1052
|
-
hasBasic: true,
|
|
1053
|
-
has256: level >= 2,
|
|
1054
|
-
has16m: level >= 3
|
|
1055
|
-
};
|
|
1056
|
-
}
|
|
1057
|
-
function supportsColor(stream) {
|
|
1058
|
-
if (forceColor === false) return 0;
|
|
1059
|
-
if (hasFlag("color=16m") || hasFlag("color=full") || hasFlag("color=truecolor")) return 3;
|
|
1060
|
-
if (hasFlag("color=256")) return 2;
|
|
1061
|
-
if (stream && !stream.isTTY && forceColor !== true) return 0;
|
|
1062
|
-
var min = forceColor ? 1 : 0;
|
|
1063
|
-
if (process.platform === "win32") {
|
|
1064
|
-
var osRelease = os$1.release().split(".");
|
|
1065
|
-
if (Number(process.versions.node.split(".")[0]) >= 8 && Number(osRelease[0]) >= 10 && Number(osRelease[2]) >= 10586) return Number(osRelease[2]) >= 14931 ? 3 : 2;
|
|
1066
|
-
return 1;
|
|
1067
|
-
}
|
|
1068
|
-
if ("CI" in env) {
|
|
1069
|
-
if ([
|
|
1070
|
-
"TRAVIS",
|
|
1071
|
-
"CIRCLECI",
|
|
1072
|
-
"APPVEYOR",
|
|
1073
|
-
"GITLAB_CI"
|
|
1074
|
-
].some(function(sign) {
|
|
1075
|
-
return sign in env;
|
|
1076
|
-
}) || env.CI_NAME === "codeship") return 1;
|
|
1077
|
-
return min;
|
|
1078
|
-
}
|
|
1079
|
-
if ("TEAMCITY_VERSION" in env) return /^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(env.TEAMCITY_VERSION) ? 1 : 0;
|
|
1080
|
-
if ("TERM_PROGRAM" in env) {
|
|
1081
|
-
var version = parseInt((env.TERM_PROGRAM_VERSION || "").split(".")[0], 10);
|
|
1082
|
-
switch (env.TERM_PROGRAM) {
|
|
1083
|
-
case "iTerm.app": return version >= 3 ? 3 : 2;
|
|
1084
|
-
case "Hyper": return 3;
|
|
1085
|
-
case "Apple_Terminal": return 2;
|
|
1086
|
-
}
|
|
1087
|
-
}
|
|
1088
|
-
if (/-256(color)?$/i.test(env.TERM)) return 2;
|
|
1089
|
-
if (/^screen|^xterm|^vt100|^rxvt|color|ansi|cygwin|linux/i.test(env.TERM)) return 1;
|
|
1090
|
-
if ("COLORTERM" in env) return 1;
|
|
1091
|
-
if (env.TERM === "dumb") return min;
|
|
1092
|
-
return min;
|
|
1093
|
-
}
|
|
1094
|
-
function getSupportLevel(stream) {
|
|
1095
|
-
return translateLevel(supportsColor(stream));
|
|
1096
|
-
}
|
|
1097
|
-
module.exports = {
|
|
1098
|
-
supportsColor: getSupportLevel,
|
|
1099
|
-
stdout: getSupportLevel(process.stdout),
|
|
1100
|
-
stderr: getSupportLevel(process.stderr)
|
|
590
|
+
supportsColor: getSupportLevel,
|
|
591
|
+
stdout: getSupportLevel(process.stdout),
|
|
592
|
+
stderr: getSupportLevel(process.stderr)
|
|
1101
593
|
};
|
|
1102
594
|
}));
|
|
1103
595
|
//#endregion
|
|
@@ -2215,29 +1707,503 @@ var require_table = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
2215
1707
|
}
|
|
2216
1708
|
return result.join("\n");
|
|
2217
1709
|
}
|
|
2218
|
-
get width() {
|
|
2219
|
-
return this.toString().split("\n")[0].length;
|
|
1710
|
+
get width() {
|
|
1711
|
+
return this.toString().split("\n")[0].length;
|
|
1712
|
+
}
|
|
1713
|
+
};
|
|
1714
|
+
Table.reset = () => debug.reset();
|
|
1715
|
+
function doDraw(row, lineNum, result) {
|
|
1716
|
+
let line = [];
|
|
1717
|
+
row.forEach(function(cell) {
|
|
1718
|
+
line.push(cell.draw(lineNum));
|
|
1719
|
+
});
|
|
1720
|
+
let str = line.join("");
|
|
1721
|
+
if (str.length) result.push(str);
|
|
1722
|
+
}
|
|
1723
|
+
module.exports = Table;
|
|
1724
|
+
}));
|
|
1725
|
+
//#endregion
|
|
1726
|
+
//#region ../../node_modules/.pnpm/cli-table3@0.6.5/node_modules/cli-table3/index.js
|
|
1727
|
+
var require_cli_table3 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
1728
|
+
module.exports = require_table();
|
|
1729
|
+
}));
|
|
1730
|
+
//#endregion
|
|
1731
|
+
//#region ../../node_modules/.pnpm/chalk@6.0.0/node_modules/chalk/source/utilities.js
|
|
1732
|
+
var import_cli_table3 = /* @__PURE__ */ __toESM(require_cli_table3(), 1);
|
|
1733
|
+
function stringReplaceAll(string, substring, postfix) {
|
|
1734
|
+
let index = string.indexOf(substring);
|
|
1735
|
+
if (index === -1) return string;
|
|
1736
|
+
const substringLength = substring.length;
|
|
1737
|
+
let endIndex = 0;
|
|
1738
|
+
let returnValue = "";
|
|
1739
|
+
do {
|
|
1740
|
+
returnValue += string.slice(endIndex, index) + substring + postfix;
|
|
1741
|
+
endIndex = index + substringLength;
|
|
1742
|
+
index = string.indexOf(substring, endIndex);
|
|
1743
|
+
} while (index !== -1);
|
|
1744
|
+
returnValue += string.slice(endIndex);
|
|
1745
|
+
return returnValue;
|
|
1746
|
+
}
|
|
1747
|
+
function stringEncaseCRLFWithFirstIndex(string, prefix, postfix, index) {
|
|
1748
|
+
let endIndex = 0;
|
|
1749
|
+
let returnValue = "";
|
|
1750
|
+
do {
|
|
1751
|
+
const isGotCR = string[index - 1] === "\r";
|
|
1752
|
+
returnValue += string.slice(endIndex, isGotCR ? index - 1 : index) + prefix + (isGotCR ? "\r\n" : "\n") + postfix;
|
|
1753
|
+
endIndex = index + 1;
|
|
1754
|
+
index = string.indexOf("\n", endIndex);
|
|
1755
|
+
} while (index !== -1);
|
|
1756
|
+
returnValue += string.slice(endIndex);
|
|
1757
|
+
return returnValue;
|
|
1758
|
+
}
|
|
1759
|
+
//#endregion
|
|
1760
|
+
//#region ../../node_modules/.pnpm/chalk@6.0.0/node_modules/chalk/source/vendor/ansi-styles/index.js
|
|
1761
|
+
const ANSI_BACKGROUND_OFFSET = 10;
|
|
1762
|
+
const ANSI_UNDERLINE_OFFSET = 20;
|
|
1763
|
+
const wrapAnsi16 = (offset = 0) => (code) => `\u{1B}[${code + offset}m`;
|
|
1764
|
+
const wrapAnsi256 = (offset = 0) => (code) => `\u{1B}[${38 + offset};5;${code}m`;
|
|
1765
|
+
const wrapAnsi16m = (offset = 0) => (red, green, blue) => `\u{1B}[${38 + offset};2;${red};${green};${blue}m`;
|
|
1766
|
+
const wrapUnderlineAnsi = (code) => `\u{1B}[58;5;${code < 90 ? code - 30 : code - 90 + 8}m`;
|
|
1767
|
+
const styles$1 = {
|
|
1768
|
+
modifier: {
|
|
1769
|
+
reset: [0, 0],
|
|
1770
|
+
bold: [1, 22],
|
|
1771
|
+
dim: [2, 22],
|
|
1772
|
+
italic: [3, 23],
|
|
1773
|
+
underline: [4, 24],
|
|
1774
|
+
underlineDouble: ["4:2", 24],
|
|
1775
|
+
underlineCurly: ["4:3", 24],
|
|
1776
|
+
underlineDotted: ["4:4", 24],
|
|
1777
|
+
underlineDashed: ["4:5", 24],
|
|
1778
|
+
overline: [53, 55],
|
|
1779
|
+
inverse: [7, 27],
|
|
1780
|
+
hidden: [8, 28],
|
|
1781
|
+
strikethrough: [9, 29]
|
|
1782
|
+
},
|
|
1783
|
+
color: {
|
|
1784
|
+
black: [30, 39],
|
|
1785
|
+
red: [31, 39],
|
|
1786
|
+
green: [32, 39],
|
|
1787
|
+
yellow: [33, 39],
|
|
1788
|
+
blue: [34, 39],
|
|
1789
|
+
magenta: [35, 39],
|
|
1790
|
+
cyan: [36, 39],
|
|
1791
|
+
white: [37, 39],
|
|
1792
|
+
blackBright: [90, 39],
|
|
1793
|
+
gray: [90, 39],
|
|
1794
|
+
grey: [90, 39],
|
|
1795
|
+
redBright: [91, 39],
|
|
1796
|
+
greenBright: [92, 39],
|
|
1797
|
+
yellowBright: [93, 39],
|
|
1798
|
+
blueBright: [94, 39],
|
|
1799
|
+
magentaBright: [95, 39],
|
|
1800
|
+
cyanBright: [96, 39],
|
|
1801
|
+
whiteBright: [97, 39]
|
|
1802
|
+
},
|
|
1803
|
+
bgColor: {
|
|
1804
|
+
bgBlack: [40, 49],
|
|
1805
|
+
bgRed: [41, 49],
|
|
1806
|
+
bgGreen: [42, 49],
|
|
1807
|
+
bgYellow: [43, 49],
|
|
1808
|
+
bgBlue: [44, 49],
|
|
1809
|
+
bgMagenta: [45, 49],
|
|
1810
|
+
bgCyan: [46, 49],
|
|
1811
|
+
bgWhite: [47, 49],
|
|
1812
|
+
bgBlackBright: [100, 49],
|
|
1813
|
+
bgGray: [100, 49],
|
|
1814
|
+
bgGrey: [100, 49],
|
|
1815
|
+
bgRedBright: [101, 49],
|
|
1816
|
+
bgGreenBright: [102, 49],
|
|
1817
|
+
bgYellowBright: [103, 49],
|
|
1818
|
+
bgBlueBright: [104, 49],
|
|
1819
|
+
bgMagentaBright: [105, 49],
|
|
1820
|
+
bgCyanBright: [106, 49],
|
|
1821
|
+
bgWhiteBright: [107, 49]
|
|
1822
|
+
},
|
|
1823
|
+
underlineColor: {
|
|
1824
|
+
underlineBlack: ["58;5;0", 59],
|
|
1825
|
+
underlineRed: ["58;5;1", 59],
|
|
1826
|
+
underlineGreen: ["58;5;2", 59],
|
|
1827
|
+
underlineYellow: ["58;5;3", 59],
|
|
1828
|
+
underlineBlue: ["58;5;4", 59],
|
|
1829
|
+
underlineMagenta: ["58;5;5", 59],
|
|
1830
|
+
underlineCyan: ["58;5;6", 59],
|
|
1831
|
+
underlineWhite: ["58;5;7", 59],
|
|
1832
|
+
underlineBlackBright: ["58;5;8", 59],
|
|
1833
|
+
underlineGray: ["58;5;8", 59],
|
|
1834
|
+
underlineGrey: ["58;5;8", 59],
|
|
1835
|
+
underlineRedBright: ["58;5;9", 59],
|
|
1836
|
+
underlineGreenBright: ["58;5;10", 59],
|
|
1837
|
+
underlineYellowBright: ["58;5;11", 59],
|
|
1838
|
+
underlineBlueBright: ["58;5;12", 59],
|
|
1839
|
+
underlineMagentaBright: ["58;5;13", 59],
|
|
1840
|
+
underlineCyanBright: ["58;5;14", 59],
|
|
1841
|
+
underlineWhiteBright: ["58;5;15", 59]
|
|
1842
|
+
}
|
|
1843
|
+
};
|
|
1844
|
+
Object.keys(styles$1.modifier);
|
|
1845
|
+
const foregroundColorNames = Object.keys(styles$1.color);
|
|
1846
|
+
const backgroundColorNames = Object.keys(styles$1.bgColor);
|
|
1847
|
+
Object.keys(styles$1.underlineColor);
|
|
1848
|
+
[...foregroundColorNames, ...backgroundColorNames];
|
|
1849
|
+
function assembleStyles() {
|
|
1850
|
+
const codes = /* @__PURE__ */ new Map();
|
|
1851
|
+
for (const [groupName, group] of Object.entries(styles$1)) {
|
|
1852
|
+
for (const [styleName, style] of Object.entries(group)) {
|
|
1853
|
+
styles$1[styleName] = {
|
|
1854
|
+
open: `\u{1B}[${style[0]}m`,
|
|
1855
|
+
close: `\u{1B}[${style[1]}m`
|
|
1856
|
+
};
|
|
1857
|
+
group[styleName] = styles$1[styleName];
|
|
1858
|
+
codes.set(Number.parseInt(style[0], 10), style[1]);
|
|
1859
|
+
}
|
|
1860
|
+
Object.defineProperty(styles$1, groupName, {
|
|
1861
|
+
value: group,
|
|
1862
|
+
enumerable: false
|
|
1863
|
+
});
|
|
1864
|
+
}
|
|
1865
|
+
Object.defineProperty(styles$1, "codes", {
|
|
1866
|
+
value: codes,
|
|
1867
|
+
enumerable: false
|
|
1868
|
+
});
|
|
1869
|
+
styles$1.color.close = "\x1B[39m";
|
|
1870
|
+
styles$1.bgColor.close = "\x1B[49m";
|
|
1871
|
+
styles$1.underlineColor.close = "\x1B[59m";
|
|
1872
|
+
styles$1.color.ansi = wrapAnsi16();
|
|
1873
|
+
styles$1.color.ansi256 = wrapAnsi256();
|
|
1874
|
+
styles$1.color.ansi16m = wrapAnsi16m();
|
|
1875
|
+
styles$1.bgColor.ansi = wrapAnsi16(ANSI_BACKGROUND_OFFSET);
|
|
1876
|
+
styles$1.bgColor.ansi256 = wrapAnsi256(ANSI_BACKGROUND_OFFSET);
|
|
1877
|
+
styles$1.bgColor.ansi16m = wrapAnsi16m(ANSI_BACKGROUND_OFFSET);
|
|
1878
|
+
styles$1.underlineColor.ansi = wrapUnderlineAnsi;
|
|
1879
|
+
styles$1.underlineColor.ansi256 = wrapAnsi256(ANSI_UNDERLINE_OFFSET);
|
|
1880
|
+
styles$1.underlineColor.ansi16m = wrapAnsi16m(ANSI_UNDERLINE_OFFSET);
|
|
1881
|
+
Object.defineProperties(styles$1, {
|
|
1882
|
+
rgbToAnsi256: {
|
|
1883
|
+
value(red, green, blue) {
|
|
1884
|
+
if (red === green && green === blue) {
|
|
1885
|
+
if (red < 8) return 16;
|
|
1886
|
+
if (red > 248) return 231;
|
|
1887
|
+
return Math.round((red - 8) / 247 * 24) + 232;
|
|
1888
|
+
}
|
|
1889
|
+
return 16 + 36 * Math.round(red / 255 * 5) + 6 * Math.round(green / 255 * 5) + Math.round(blue / 255 * 5);
|
|
1890
|
+
},
|
|
1891
|
+
enumerable: false
|
|
1892
|
+
},
|
|
1893
|
+
hexToRgb: {
|
|
1894
|
+
value(hex) {
|
|
1895
|
+
const matches = /[\da-f]{6}|[\da-f]{3}/i.exec(hex.toString(16));
|
|
1896
|
+
if (!matches) return [
|
|
1897
|
+
0,
|
|
1898
|
+
0,
|
|
1899
|
+
0
|
|
1900
|
+
];
|
|
1901
|
+
let [colorString] = matches;
|
|
1902
|
+
if (colorString.length === 3) colorString = [...colorString].map((character) => character + character).join("");
|
|
1903
|
+
const integer = Number.parseInt(colorString, 16);
|
|
1904
|
+
return [
|
|
1905
|
+
integer >> 16 & 255,
|
|
1906
|
+
integer >> 8 & 255,
|
|
1907
|
+
integer & 255
|
|
1908
|
+
];
|
|
1909
|
+
},
|
|
1910
|
+
enumerable: false
|
|
1911
|
+
},
|
|
1912
|
+
hexToAnsi256: {
|
|
1913
|
+
value: (hex) => styles$1.rgbToAnsi256(...styles$1.hexToRgb(hex)),
|
|
1914
|
+
enumerable: false
|
|
1915
|
+
},
|
|
1916
|
+
ansi256ToAnsi: {
|
|
1917
|
+
value(code) {
|
|
1918
|
+
if (code < 8) return 30 + code;
|
|
1919
|
+
if (code < 16) return 90 + (code - 8);
|
|
1920
|
+
let red;
|
|
1921
|
+
let green;
|
|
1922
|
+
let blue;
|
|
1923
|
+
if (code >= 232) {
|
|
1924
|
+
red = ((code - 232) * 10 + 8) / 255;
|
|
1925
|
+
green = red;
|
|
1926
|
+
blue = red;
|
|
1927
|
+
} else {
|
|
1928
|
+
code -= 16;
|
|
1929
|
+
const remainder = code % 36;
|
|
1930
|
+
red = Math.floor(code / 36) / 5;
|
|
1931
|
+
green = Math.floor(remainder / 6) / 5;
|
|
1932
|
+
blue = remainder % 6 / 5;
|
|
1933
|
+
}
|
|
1934
|
+
const value = Math.max(red, green, blue) * 2;
|
|
1935
|
+
if (value === 0) return 30;
|
|
1936
|
+
let result = 30 + (Math.round(blue) << 2 | Math.round(green) << 1 | Math.round(red));
|
|
1937
|
+
if (value === 2) result += 60;
|
|
1938
|
+
return result;
|
|
1939
|
+
},
|
|
1940
|
+
enumerable: false
|
|
1941
|
+
},
|
|
1942
|
+
rgbToAnsi: {
|
|
1943
|
+
value: (red, green, blue) => styles$1.ansi256ToAnsi(styles$1.rgbToAnsi256(red, green, blue)),
|
|
1944
|
+
enumerable: false
|
|
1945
|
+
},
|
|
1946
|
+
hexToAnsi: {
|
|
1947
|
+
value: (hex) => styles$1.ansi256ToAnsi(styles$1.hexToAnsi256(hex)),
|
|
1948
|
+
enumerable: false
|
|
1949
|
+
}
|
|
1950
|
+
});
|
|
1951
|
+
return styles$1;
|
|
1952
|
+
}
|
|
1953
|
+
const ansiStyles = assembleStyles();
|
|
1954
|
+
//#endregion
|
|
1955
|
+
//#region ../../node_modules/.pnpm/chalk@6.0.0/node_modules/chalk/source/vendor/supports-color/index.js
|
|
1956
|
+
function hasFlag(flag, argv = globalThis.Deno ? globalThis.Deno.args : process$1.argv) {
|
|
1957
|
+
const prefix = flag.startsWith("-") ? "" : flag.length === 1 ? "-" : "--";
|
|
1958
|
+
const position = argv.indexOf(prefix + flag);
|
|
1959
|
+
const terminatorPosition = argv.indexOf("--");
|
|
1960
|
+
return position !== -1 && (terminatorPosition === -1 || position < terminatorPosition);
|
|
1961
|
+
}
|
|
1962
|
+
const { env } = process$1;
|
|
1963
|
+
let flagForceColor;
|
|
1964
|
+
if (hasFlag("no-color") || hasFlag("no-colors") || hasFlag("color=false") || hasFlag("color=never")) flagForceColor = 0;
|
|
1965
|
+
else if (hasFlag("color") || hasFlag("colors") || hasFlag("color=true") || hasFlag("color=always")) flagForceColor = 1;
|
|
1966
|
+
function hasNumericForceColor() {
|
|
1967
|
+
return /^\d+$/.test(env.FORCE_COLOR);
|
|
1968
|
+
}
|
|
1969
|
+
function envForceColor() {
|
|
1970
|
+
if (!("FORCE_COLOR" in env)) return;
|
|
1971
|
+
if (env.FORCE_COLOR === "false") return 0;
|
|
1972
|
+
if (env.FORCE_COLOR === "true" || env.FORCE_COLOR.length === 0) return 1;
|
|
1973
|
+
if (!hasNumericForceColor()) return;
|
|
1974
|
+
return Math.min(Number.parseInt(env.FORCE_COLOR, 10), 3);
|
|
1975
|
+
}
|
|
1976
|
+
function translateLevel(level) {
|
|
1977
|
+
if (level === 0) return false;
|
|
1978
|
+
return {
|
|
1979
|
+
level,
|
|
1980
|
+
hasBasic: true,
|
|
1981
|
+
has256: level >= 2,
|
|
1982
|
+
has16m: level >= 3
|
|
1983
|
+
};
|
|
1984
|
+
}
|
|
1985
|
+
function _supportsColor(haveStream, { streamIsTTY, sniffFlags = true } = {}) {
|
|
1986
|
+
const noFlagForceColor = envForceColor();
|
|
1987
|
+
if (noFlagForceColor !== void 0) flagForceColor = noFlagForceColor;
|
|
1988
|
+
const forceColor = sniffFlags ? flagForceColor : noFlagForceColor;
|
|
1989
|
+
if (forceColor === 0) return 0;
|
|
1990
|
+
if (sniffFlags) {
|
|
1991
|
+
if (hasFlag("color=16m") || hasFlag("color=full") || hasFlag("color=truecolor")) return 3;
|
|
1992
|
+
if (hasFlag("color=256")) return 2;
|
|
1993
|
+
}
|
|
1994
|
+
if (forceColor !== void 0 && hasNumericForceColor()) return forceColor;
|
|
1995
|
+
if ("TF_BUILD" in env && "AGENT_NAME" in env) return 1;
|
|
1996
|
+
if (haveStream && !streamIsTTY && forceColor === void 0) return 0;
|
|
1997
|
+
const min = forceColor || 0;
|
|
1998
|
+
if (env.TERM === "dumb") return min;
|
|
1999
|
+
if (process$1.platform === "win32") {
|
|
2000
|
+
const osRelease = os.release().split(".");
|
|
2001
|
+
if (Number(osRelease[0]) >= 10 && Number(osRelease[2]) >= 10586) return Number(osRelease[2]) >= 14931 ? 3 : 2;
|
|
2002
|
+
return 1;
|
|
2003
|
+
}
|
|
2004
|
+
if ("CI" in env) {
|
|
2005
|
+
if ([
|
|
2006
|
+
"GITHUB_ACTIONS",
|
|
2007
|
+
"GITEA_ACTIONS",
|
|
2008
|
+
"CIRCLECI"
|
|
2009
|
+
].some((key) => key in env)) return 3;
|
|
2010
|
+
if ([
|
|
2011
|
+
"TRAVIS",
|
|
2012
|
+
"APPVEYOR",
|
|
2013
|
+
"GITLAB_CI",
|
|
2014
|
+
"BUILDKITE",
|
|
2015
|
+
"DRONE"
|
|
2016
|
+
].some((sign) => sign in env) || env.CI_NAME === "codeship") return 1;
|
|
2017
|
+
return min;
|
|
2018
|
+
}
|
|
2019
|
+
if ("TEAMCITY_VERSION" in env) return /^(?:9\.0*[1-9]\d*\.|\d{2,}\.)/.test(env.TEAMCITY_VERSION) ? 1 : 0;
|
|
2020
|
+
if (env.COLORTERM === "truecolor") return 3;
|
|
2021
|
+
if (env.TERM === "xterm-kitty") return 3;
|
|
2022
|
+
if (env.TERM === "xterm-ghostty") return 3;
|
|
2023
|
+
if (env.TERM === "wezterm") return 3;
|
|
2024
|
+
if ("TERM_PROGRAM" in env) {
|
|
2025
|
+
const version = Number.parseInt((env.TERM_PROGRAM_VERSION || "").split(".", 1)[0], 10);
|
|
2026
|
+
switch (env.TERM_PROGRAM) {
|
|
2027
|
+
case "iTerm.app": return version >= 3 ? 3 : 2;
|
|
2028
|
+
case "Apple_Terminal": return 2;
|
|
2029
|
+
}
|
|
2030
|
+
}
|
|
2031
|
+
if (/-256(?:color)?$/i.test(env.TERM)) return 2;
|
|
2032
|
+
if (/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(env.TERM)) return 1;
|
|
2033
|
+
if ("COLORTERM" in env) return 1;
|
|
2034
|
+
return min;
|
|
2035
|
+
}
|
|
2036
|
+
function createSupportsColor(stream, options = {}) {
|
|
2037
|
+
return translateLevel(_supportsColor(stream, {
|
|
2038
|
+
streamIsTTY: stream && stream.isTTY,
|
|
2039
|
+
...options
|
|
2040
|
+
}));
|
|
2041
|
+
}
|
|
2042
|
+
//#endregion
|
|
2043
|
+
//#region ../../node_modules/.pnpm/chalk@6.0.0/node_modules/chalk/source/index.js
|
|
2044
|
+
const { stdout: stdoutColor, stderr: stderrColor } = {
|
|
2045
|
+
stdout: createSupportsColor({ isTTY: tty.isatty(1) }),
|
|
2046
|
+
stderr: createSupportsColor({ isTTY: tty.isatty(2) })
|
|
2047
|
+
};
|
|
2048
|
+
const GENERATOR = Symbol("GENERATOR");
|
|
2049
|
+
const STYLER = Symbol("STYLER");
|
|
2050
|
+
const IS_EMPTY = Symbol("IS_EMPTY");
|
|
2051
|
+
const LEVEL = Symbol("LEVEL");
|
|
2052
|
+
const styles = Object.create(null);
|
|
2053
|
+
const assertValidLevel = (level) => {
|
|
2054
|
+
if (!Number.isSafeInteger(level) || level < 0 || level > 3) throw new Error("The `level` should be an integer from 0 to 3");
|
|
2055
|
+
};
|
|
2056
|
+
const levelDescriptor = {
|
|
2057
|
+
enumerable: true,
|
|
2058
|
+
get() {
|
|
2059
|
+
return this[LEVEL];
|
|
2060
|
+
},
|
|
2061
|
+
set(level) {
|
|
2062
|
+
assertValidLevel(level);
|
|
2063
|
+
this[LEVEL] = level;
|
|
2064
|
+
}
|
|
2065
|
+
};
|
|
2066
|
+
const applyOptions = (object, options = {}) => {
|
|
2067
|
+
if (options.level !== void 0) assertValidLevel(options.level);
|
|
2068
|
+
const colorLevel = stdoutColor ? stdoutColor.level : 0;
|
|
2069
|
+
object[LEVEL] = options.level === void 0 ? colorLevel : options.level;
|
|
2070
|
+
};
|
|
2071
|
+
const chalkFactory = (options) => {
|
|
2072
|
+
const chalk = (...strings) => strings.join(" ");
|
|
2073
|
+
applyOptions(chalk, options);
|
|
2074
|
+
Object.setPrototypeOf(chalk, createChalk.prototype);
|
|
2075
|
+
return chalk;
|
|
2076
|
+
};
|
|
2077
|
+
function createChalk(options) {
|
|
2078
|
+
return chalkFactory(options);
|
|
2079
|
+
}
|
|
2080
|
+
Object.setPrototypeOf(createChalk.prototype, Function.prototype);
|
|
2081
|
+
for (const [styleName, style] of Object.entries(ansiStyles)) styles[styleName] = { get() {
|
|
2082
|
+
const builder = createBuilder(this, createStyler(style.open, style.close, this[STYLER]), this[IS_EMPTY]);
|
|
2083
|
+
Object.defineProperty(this, styleName, { value: builder });
|
|
2084
|
+
return builder;
|
|
2085
|
+
} };
|
|
2086
|
+
styles.visible = { get() {
|
|
2087
|
+
const builder = createBuilder(this, this[STYLER], true);
|
|
2088
|
+
Object.defineProperty(this, "visible", { value: builder });
|
|
2089
|
+
return builder;
|
|
2090
|
+
} };
|
|
2091
|
+
const createModelConverters = (model, type) => {
|
|
2092
|
+
const style = ansiStyles[type];
|
|
2093
|
+
if (model === "rgb") {
|
|
2094
|
+
const ansi = (red, green, blue) => style.ansi(ansiStyles.rgbToAnsi(red, green, blue));
|
|
2095
|
+
const ansi256 = (red, green, blue) => style.ansi256(ansiStyles.rgbToAnsi256(red, green, blue));
|
|
2096
|
+
return [
|
|
2097
|
+
ansi,
|
|
2098
|
+
ansi,
|
|
2099
|
+
ansi256,
|
|
2100
|
+
style.ansi16m
|
|
2101
|
+
];
|
|
2102
|
+
}
|
|
2103
|
+
if (model === "hex") {
|
|
2104
|
+
const ansi = (hex) => style.ansi(ansiStyles.hexToAnsi(hex));
|
|
2105
|
+
const ansi256 = (hex) => style.ansi256(ansiStyles.hexToAnsi256(hex));
|
|
2106
|
+
return [
|
|
2107
|
+
ansi,
|
|
2108
|
+
ansi,
|
|
2109
|
+
ansi256,
|
|
2110
|
+
(hex) => style.ansi16m(...ansiStyles.hexToRgb(hex))
|
|
2111
|
+
];
|
|
2112
|
+
}
|
|
2113
|
+
const ansi = (code) => style.ansi(ansiStyles.ansi256ToAnsi(code));
|
|
2114
|
+
return [
|
|
2115
|
+
ansi,
|
|
2116
|
+
ansi,
|
|
2117
|
+
style.ansi256,
|
|
2118
|
+
style.ansi256
|
|
2119
|
+
];
|
|
2120
|
+
};
|
|
2121
|
+
for (const model of [
|
|
2122
|
+
"rgb",
|
|
2123
|
+
"hex",
|
|
2124
|
+
"ansi256"
|
|
2125
|
+
]) {
|
|
2126
|
+
const capitalizedModel = model[0].toUpperCase() + model.slice(1);
|
|
2127
|
+
for (const [styleName, type] of [
|
|
2128
|
+
[model, "color"],
|
|
2129
|
+
["bg" + capitalizedModel, "bgColor"],
|
|
2130
|
+
["underline" + capitalizedModel, "underlineColor"]
|
|
2131
|
+
]) {
|
|
2132
|
+
const { close } = ansiStyles[type];
|
|
2133
|
+
const converters = createModelConverters(model, type);
|
|
2134
|
+
styles[styleName] = { get() {
|
|
2135
|
+
const styleFunction = function(first, second, third) {
|
|
2136
|
+
const open = converters[this.level](first, second, third);
|
|
2137
|
+
return createBuilder(this, createStyler(open, close, this[STYLER]), this[IS_EMPTY]);
|
|
2138
|
+
};
|
|
2139
|
+
Object.defineProperty(this, styleName, { value: styleFunction });
|
|
2140
|
+
return styleFunction;
|
|
2141
|
+
} };
|
|
2142
|
+
}
|
|
2143
|
+
}
|
|
2144
|
+
const proto = Object.defineProperties(() => {}, {
|
|
2145
|
+
...styles,
|
|
2146
|
+
level: {
|
|
2147
|
+
enumerable: true,
|
|
2148
|
+
get() {
|
|
2149
|
+
return this[GENERATOR].level;
|
|
2150
|
+
},
|
|
2151
|
+
set(level) {
|
|
2152
|
+
this[GENERATOR].level = level;
|
|
2220
2153
|
}
|
|
2154
|
+
}
|
|
2155
|
+
});
|
|
2156
|
+
const createStyler = (open, close, parent) => {
|
|
2157
|
+
let openAll;
|
|
2158
|
+
let closeAll;
|
|
2159
|
+
if (parent === void 0) {
|
|
2160
|
+
openAll = open;
|
|
2161
|
+
closeAll = close;
|
|
2162
|
+
} else {
|
|
2163
|
+
openAll = parent.openAll + open;
|
|
2164
|
+
closeAll = close + parent.closeAll;
|
|
2165
|
+
}
|
|
2166
|
+
return {
|
|
2167
|
+
open,
|
|
2168
|
+
close,
|
|
2169
|
+
openAll,
|
|
2170
|
+
closeAll,
|
|
2171
|
+
parent
|
|
2221
2172
|
};
|
|
2222
|
-
|
|
2223
|
-
|
|
2224
|
-
|
|
2225
|
-
|
|
2226
|
-
|
|
2227
|
-
|
|
2228
|
-
|
|
2229
|
-
|
|
2173
|
+
};
|
|
2174
|
+
const createBuilder = (self, _styler, _isEmpty) => {
|
|
2175
|
+
const builder = (...arguments_) => {
|
|
2176
|
+
if (arguments_.length === 1) return applyStyle(builder, "" + arguments_[0]);
|
|
2177
|
+
if (arguments_.length === 2) return applyStyle(builder, arguments_[0] + " " + arguments_[1]);
|
|
2178
|
+
return applyStyle(builder, arguments_.join(" "));
|
|
2179
|
+
};
|
|
2180
|
+
Object.setPrototypeOf(builder, proto);
|
|
2181
|
+
builder[GENERATOR] = self[GENERATOR] ?? self;
|
|
2182
|
+
builder[STYLER] = _styler;
|
|
2183
|
+
builder[IS_EMPTY] = _isEmpty;
|
|
2184
|
+
return builder;
|
|
2185
|
+
};
|
|
2186
|
+
const applyStyle = (self, string) => {
|
|
2187
|
+
if (self[GENERATOR][LEVEL] <= 0 || !string) return self[IS_EMPTY] ? "" : string;
|
|
2188
|
+
let styler = self[STYLER];
|
|
2189
|
+
if (styler === void 0) return string;
|
|
2190
|
+
const { openAll, closeAll } = styler;
|
|
2191
|
+
if (string.includes("\x1B")) while (styler !== void 0) {
|
|
2192
|
+
string = stringReplaceAll(string, styler.close, styler.open);
|
|
2193
|
+
styler = styler.parent;
|
|
2230
2194
|
}
|
|
2231
|
-
|
|
2232
|
-
|
|
2233
|
-
|
|
2234
|
-
|
|
2235
|
-
|
|
2236
|
-
|
|
2237
|
-
|
|
2195
|
+
const lfIndex = string.indexOf("\n");
|
|
2196
|
+
if (lfIndex !== -1) string = stringEncaseCRLFWithFirstIndex(string, closeAll, openAll, lfIndex);
|
|
2197
|
+
return openAll + string + closeAll;
|
|
2198
|
+
};
|
|
2199
|
+
Object.defineProperties(createChalk.prototype, {
|
|
2200
|
+
...styles,
|
|
2201
|
+
level: levelDescriptor
|
|
2202
|
+
});
|
|
2203
|
+
const chalk = createChalk();
|
|
2204
|
+
createChalk({ level: stderrColor ? stderrColor.level : 0 });
|
|
2238
2205
|
//#endregion
|
|
2239
2206
|
//#region src/ux/table.ts
|
|
2240
|
-
var import_cli_table3 = /* @__PURE__ */ __toESM(require_cli_table3(), 1);
|
|
2241
2207
|
/**
|
|
2242
2208
|
* Format diagnostics as a table
|
|
2243
2209
|
* @param diagnostics - Diagnostics to format
|
|
@@ -2335,216 +2301,6 @@ function formatDiagnosticsSummaryTable(diagnostics) {
|
|
|
2335
2301
|
return table.toString();
|
|
2336
2302
|
}
|
|
2337
2303
|
//#endregion
|
|
2338
|
-
|
|
2339
|
-
/**
|
|
2340
|
-
* Per-package conversion tasks, shared by the serial batch path
|
|
2341
|
-
* (`processBatch`) and the parallel worker path (`processBatchParallel` via
|
|
2342
|
-
* `batchWorker`). Extracting them here keeps a single implementation per
|
|
2343
|
-
* direction — the same code runs inline or inside a worker thread.
|
|
2344
|
-
*/
|
|
2345
|
-
/** Run one batch task in-process (used by the worker and directly in tests). */
|
|
2346
|
-
async function runBatchTask(task, quiet = true) {
|
|
2347
|
-
if (task.direction === "qti-to-learnosity") return processQtiPackageToLearnosity(task.pkg, task.packageOutputPath, task.options, quiet);
|
|
2348
|
-
return processLearnosityToQtiPackage(task.pkg, task.packageOutputPath, task.options, quiet);
|
|
2349
|
-
}
|
|
2350
|
-
function displayDiagnosticsSummary(diagnostics, quiet) {
|
|
2351
|
-
if (quiet) return;
|
|
2352
|
-
const summaryTable = formatDiagnosticsSummaryTable(diagnostics);
|
|
2353
|
-
if (summaryTable) {
|
|
2354
|
-
console.log(" Diagnostics:");
|
|
2355
|
-
console.log(summaryTable.split("\n").map((line) => " " + line).join("\n"));
|
|
2356
|
-
console.log("");
|
|
2357
|
-
}
|
|
2358
|
-
}
|
|
2359
|
-
/** Convert one QTI Content Package directory to a Learnosity bundle on disk. */
|
|
2360
|
-
async function processQtiPackageToLearnosity(pkg, packageOutputPath, options, quiet) {
|
|
2361
|
-
const loaded = loadPackageDirectory(pkg.path);
|
|
2362
|
-
const convertResult = loaded.entries ? convertQtiPackageToLearnosityBundle({ entries: loaded.entries }, {
|
|
2363
|
-
organisationId: options.organisationId,
|
|
2364
|
-
mediaVault: options.mediaVault,
|
|
2365
|
-
customAssetUrl: options.customAssetUrl,
|
|
2366
|
-
itemReferenceSource: options.itemReferenceSource,
|
|
2367
|
-
itemFilenameSource: options.itemFilenameSource,
|
|
2368
|
-
truncateTags: options.truncateTags,
|
|
2369
|
-
packageVersion: options.version,
|
|
2370
|
-
sourceDir: pkg.path,
|
|
2371
|
-
fileAccess: nodeFileAccess
|
|
2372
|
-
}) : { diagnostics: loaded.diagnostics };
|
|
2373
|
-
const errors = convertResult.diagnostics.filter((d) => d.level === "error");
|
|
2374
|
-
const warnings = convertResult.diagnostics.filter((d) => d.level === "warning");
|
|
2375
|
-
const hasValidBundle = convertResult.bundle && convertResult.bundle.items.size > 0;
|
|
2376
|
-
const convertedFiles = convertResult.convertedSourceFiles || [];
|
|
2377
|
-
const failedFiles = convertResult.failedSourceFiles || [];
|
|
2378
|
-
const filesWithErrors = /* @__PURE__ */ new Set();
|
|
2379
|
-
for (const d of convertResult.diagnostics) if (d.level === "error" && d.file) filesWithErrors.add(d.file);
|
|
2380
|
-
const convertedWithErrors = convertedFiles.filter((f) => filesWithErrors.has(f)).length;
|
|
2381
|
-
const erroredItemCount = failedFiles.length + convertedWithErrors;
|
|
2382
|
-
const cleanItemCount = convertedFiles.length - convertedWithErrors;
|
|
2383
|
-
if (errors.length > 0 && !hasValidBundle) return {
|
|
2384
|
-
success: false,
|
|
2385
|
-
errorCount: errors.length,
|
|
2386
|
-
warningCount: warnings.length,
|
|
2387
|
-
convertedItemCount: cleanItemCount,
|
|
2388
|
-
failedItemCount: erroredItemCount,
|
|
2389
|
-
message: "Conversion failed"
|
|
2390
|
-
};
|
|
2391
|
-
const writeResult = await writeLearnosityBundle(convertResult.bundle, {
|
|
2392
|
-
outDir: packageOutputPath,
|
|
2393
|
-
isZipOutput: false
|
|
2394
|
-
});
|
|
2395
|
-
const writeErrors = writeResult.diagnostics.filter((d) => d.level === "error");
|
|
2396
|
-
if (writeErrors.length > 0) return {
|
|
2397
|
-
success: false,
|
|
2398
|
-
errorCount: errors.length + writeErrors.length,
|
|
2399
|
-
warningCount: warnings.length,
|
|
2400
|
-
convertedItemCount: cleanItemCount,
|
|
2401
|
-
failedItemCount: erroredItemCount,
|
|
2402
|
-
message: "Write failed"
|
|
2403
|
-
};
|
|
2404
|
-
const diagnosticsPath = `${packageOutputPath}/diagnostics.json`;
|
|
2405
|
-
const allDiagnostics = [...convertResult.diagnostics, ...writeResult.diagnostics];
|
|
2406
|
-
const convertedActivityFiles = convertResult.convertedActivityFiles || [];
|
|
2407
|
-
await writeDiagnostics(allDiagnostics, "file", diagnosticsPath, packageOutputPath, false, {
|
|
2408
|
-
inputPath: pkg.path,
|
|
2409
|
-
outputPath: packageOutputPath,
|
|
2410
|
-
totalItemsFound: convertedFiles.length + failedFiles.length,
|
|
2411
|
-
totalActivitiesFound: convertedActivityFiles.length,
|
|
2412
|
-
convertedFiles,
|
|
2413
|
-
failedFiles,
|
|
2414
|
-
convertedActivities: convertedActivityFiles
|
|
2415
|
-
});
|
|
2416
|
-
if (!quiet) {
|
|
2417
|
-
const summaryTable = formatDiagnosticsSummaryTable(allDiagnostics);
|
|
2418
|
-
if (summaryTable) {
|
|
2419
|
-
console.log(" Diagnostics:");
|
|
2420
|
-
console.log(summaryTable.split("\n").map((line) => " " + line).join("\n"));
|
|
2421
|
-
console.log("");
|
|
2422
|
-
}
|
|
2423
|
-
}
|
|
2424
|
-
return {
|
|
2425
|
-
success: true,
|
|
2426
|
-
errorCount: errors.length,
|
|
2427
|
-
warningCount: warnings.length,
|
|
2428
|
-
convertedItemCount: cleanItemCount,
|
|
2429
|
-
failedItemCount: erroredItemCount
|
|
2430
|
-
};
|
|
2431
|
-
}
|
|
2432
|
-
/** Convert one Learnosity bundle directory to a QTI Content Package on disk. */
|
|
2433
|
-
async function processLearnosityToQtiPackage(pkg, packageOutputPath, options, quiet) {
|
|
2434
|
-
const loadResult = loadLearnosityBundle(pkg.path);
|
|
2435
|
-
if (!loadResult.bundle) {
|
|
2436
|
-
const errorCount = loadResult.diagnostics.filter((d) => d.level === "error").length;
|
|
2437
|
-
displayDiagnosticsSummary(loadResult.diagnostics, quiet);
|
|
2438
|
-
return {
|
|
2439
|
-
success: false,
|
|
2440
|
-
errorCount,
|
|
2441
|
-
warningCount: 0,
|
|
2442
|
-
message: "Bundle load error"
|
|
2443
|
-
};
|
|
2444
|
-
}
|
|
2445
|
-
const bundle = loadResult.bundle;
|
|
2446
|
-
const allDiagnostics = [...loadResult.diagnostics];
|
|
2447
|
-
const allConvertedActivities = [];
|
|
2448
|
-
const usedFolderNames = /* @__PURE__ */ new Set();
|
|
2449
|
-
const convertedItemRefs = /* @__PURE__ */ new Set();
|
|
2450
|
-
const failedItemRefs = /* @__PURE__ */ new Set();
|
|
2451
|
-
for (const activityRef of bundle.activityRefs) {
|
|
2452
|
-
const convertResult = convertActivity(bundle, activityRef, {
|
|
2453
|
-
pretty: options.pretty,
|
|
2454
|
-
version: options.qtiVersion
|
|
2455
|
-
});
|
|
2456
|
-
allDiagnostics.push(...convertResult.diagnostics);
|
|
2457
|
-
const itemRefs = bundle.activityItemRefs.get(activityRef) ?? [];
|
|
2458
|
-
const successfulItemRefs = new Set(convertResult.items.map((item) => item.reference));
|
|
2459
|
-
for (const itemRef of itemRefs) if (successfulItemRefs.has(itemRef)) convertedItemRefs.add(itemRef);
|
|
2460
|
-
else failedItemRefs.add(itemRef);
|
|
2461
|
-
if (convertResult.items.length > 0) {
|
|
2462
|
-
const sanitizedName = sanitizeFolderName(activityRef, `activity_${allConvertedActivities.length + 1}`);
|
|
2463
|
-
const folderName = ensureUniqueFolderName(sanitizedName, usedFolderNames);
|
|
2464
|
-
allConvertedActivities.push({
|
|
2465
|
-
activityRef,
|
|
2466
|
-
folderName,
|
|
2467
|
-
conversion: convertResult
|
|
2468
|
-
});
|
|
2469
|
-
}
|
|
2470
|
-
}
|
|
2471
|
-
for (const itemRef of convertedItemRefs) failedItemRefs.delete(itemRef);
|
|
2472
|
-
const convertedFiles = itemRefsToFilenames(bundle, convertedItemRefs);
|
|
2473
|
-
const failedFiles = itemRefsToFilenames(bundle, failedItemRefs);
|
|
2474
|
-
const convertedActivityFiles = allConvertedActivities.map(({ activityRef }) => `activities/${activityRef}.json`);
|
|
2475
|
-
const failedActivityFiles = bundle.activityRefs.filter((ref) => !allConvertedActivities.some((a) => a.activityRef === ref)).map((ref) => `activities/${ref}.json`);
|
|
2476
|
-
const totalItemsConverted = convertedItemRefs.size;
|
|
2477
|
-
const totalItemsFailed = failedItemRefs.size;
|
|
2478
|
-
const writePackageDiagnostics = () => writeDiagnostics(allDiagnostics, "file", `${packageOutputPath}/diagnostics.json`, packageOutputPath, false, {
|
|
2479
|
-
inputPath: pkg.path,
|
|
2480
|
-
outputPath: packageOutputPath,
|
|
2481
|
-
totalItemsFound: totalItemsConverted + totalItemsFailed,
|
|
2482
|
-
totalActivitiesFound: bundle.activityRefs.length,
|
|
2483
|
-
convertedFiles,
|
|
2484
|
-
failedFiles,
|
|
2485
|
-
convertedActivities: convertedActivityFiles,
|
|
2486
|
-
failedActivities: failedActivityFiles
|
|
2487
|
-
});
|
|
2488
|
-
if (allConvertedActivities.length === 0) {
|
|
2489
|
-
const errorCount = allDiagnostics.filter((d) => d.level === "error").length;
|
|
2490
|
-
await writePackageDiagnostics();
|
|
2491
|
-
return {
|
|
2492
|
-
success: false,
|
|
2493
|
-
errorCount,
|
|
2494
|
-
warningCount: allDiagnostics.filter((d) => d.level === "warning").length,
|
|
2495
|
-
convertedItemCount: 0,
|
|
2496
|
-
failedItemCount: totalItemsFailed,
|
|
2497
|
-
message: "No activities converted"
|
|
2498
|
-
};
|
|
2499
|
-
}
|
|
2500
|
-
const pkgData = {
|
|
2501
|
-
zipPath: "",
|
|
2502
|
-
resources: [],
|
|
2503
|
-
entries: /* @__PURE__ */ new Map(),
|
|
2504
|
-
items: [],
|
|
2505
|
-
assets: []
|
|
2506
|
-
};
|
|
2507
|
-
const addedResourceIds = /* @__PURE__ */ new Set();
|
|
2508
|
-
for (const { activityRef, folderName, conversion } of allConvertedActivities) {
|
|
2509
|
-
const packageResult = buildPackageFromActivity(conversion, {
|
|
2510
|
-
bundleDir: pkg.path,
|
|
2511
|
-
activityRef,
|
|
2512
|
-
version: options.qtiVersion
|
|
2513
|
-
});
|
|
2514
|
-
allDiagnostics.push(...packageResult.diagnostics);
|
|
2515
|
-
mergeActivityPackage(pkgData, folderName, packageResult, addedResourceIds);
|
|
2516
|
-
}
|
|
2517
|
-
const saveResult = saveQtiContentPackage(pkgData, packageOutputPath);
|
|
2518
|
-
allDiagnostics.push(...saveResult.diagnostics);
|
|
2519
|
-
const errors = allDiagnostics.filter((d) => d.level === "error");
|
|
2520
|
-
const warnings = allDiagnostics.filter((d) => d.level === "warning");
|
|
2521
|
-
await writePackageDiagnostics();
|
|
2522
|
-
displayDiagnosticsSummary(allDiagnostics, quiet);
|
|
2523
|
-
if (errors.length > 0) return {
|
|
2524
|
-
success: false,
|
|
2525
|
-
errorCount: errors.length,
|
|
2526
|
-
warningCount: warnings.length,
|
|
2527
|
-
convertedItemCount: totalItemsConverted,
|
|
2528
|
-
failedItemCount: totalItemsFailed,
|
|
2529
|
-
message: "Conversion failed"
|
|
2530
|
-
};
|
|
2531
|
-
return {
|
|
2532
|
-
success: true,
|
|
2533
|
-
errorCount: 0,
|
|
2534
|
-
warningCount: warnings.length,
|
|
2535
|
-
convertedItemCount: totalItemsConverted,
|
|
2536
|
-
failedItemCount: totalItemsFailed
|
|
2537
|
-
};
|
|
2538
|
-
}
|
|
2539
|
-
/**
|
|
2540
|
-
* Map item references to the filenames they were loaded from, for the
|
|
2541
|
-
* diagnostics report. Falls back to the reference when the bundle has no
|
|
2542
|
-
* filename recorded, so counts always match the listed items.
|
|
2543
|
-
*/
|
|
2544
|
-
function itemRefsToFilenames(bundle, itemRefs) {
|
|
2545
|
-
return [...itemRefs].map((itemRef) => bundle.itemRefToFilename.get(itemRef) ?? itemRef);
|
|
2546
|
-
}
|
|
2547
|
-
//#endregion
|
|
2548
|
-
export { formatDiagnosticsSummaryTable as a, chalk as c, __commonJSMin as d, __exportAll as f, countErrors as i, require_string_width as l, __toESM as m, processQtiPackageToLearnosity as n, formatDiagnosticsTable as o, __require as p, runBatchTask as r, require_cli_table3 as s, processLearnosityToQtiPackage as t, writeDiagnostics as u };
|
|
2304
|
+
export { require_cli_table3 as a, chalk as i, formatDiagnosticsSummaryTable as n, require_string_width as o, formatDiagnosticsTable as r, writeDiagnostics as s, countErrors as t };
|
|
2549
2305
|
|
|
2550
|
-
//# sourceMappingURL=
|
|
2306
|
+
//# sourceMappingURL=table-DYcNeyJ_.js.map
|