@nsshunt/stsrunnerframework 1.0.29 → 1.0.31

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.
@@ -56,7 +56,7 @@ const isNode = Object.prototype.toString.call(typeof process !== "undefined" ? p
56
56
  function getDefaultExportFromCjs(x) {
57
57
  return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, "default") ? x["default"] : x;
58
58
  }
59
- var ansiStyles$1 = { exports: {} };
59
+ var ansiStyles = { exports: {} };
60
60
  var colorName;
61
61
  var hasRequiredColorName;
62
62
  function requireColorName() {
@@ -1019,181 +1019,200 @@ function requireColorConvert() {
1019
1019
  colorConvert = convert;
1020
1020
  return colorConvert;
1021
1021
  }
1022
- ansiStyles$1.exports;
1023
- (function(module) {
1024
- const wrapAnsi16 = (fn, offset) => (...args) => {
1025
- const code = fn(...args);
1026
- return `\x1B[${code + offset}m`;
1027
- };
1028
- const wrapAnsi256 = (fn, offset) => (...args) => {
1029
- const code = fn(...args);
1030
- return `\x1B[${38 + offset};5;${code}m`;
1031
- };
1032
- const wrapAnsi16m = (fn, offset) => (...args) => {
1033
- const rgb = fn(...args);
1034
- return `\x1B[${38 + offset};2;${rgb[0]};${rgb[1]};${rgb[2]}m`;
1035
- };
1036
- const ansi2ansi = (n) => n;
1037
- const rgb2rgb = (r, g, b) => [r, g, b];
1038
- const setLazyProperty = (object, property, get) => {
1039
- Object.defineProperty(object, property, {
1040
- get: () => {
1041
- const value = get();
1042
- Object.defineProperty(object, property, {
1043
- value,
1044
- enumerable: true,
1045
- configurable: true
1046
- });
1047
- return value;
1048
- },
1049
- enumerable: true,
1050
- configurable: true
1051
- });
1052
- };
1053
- let colorConvert2;
1054
- const makeDynamicStyles = (wrap, targetSpace, identity, isBackground) => {
1055
- if (colorConvert2 === void 0) {
1056
- colorConvert2 = requireColorConvert();
1057
- }
1058
- const offset = isBackground ? 10 : 0;
1059
- const styles2 = {};
1060
- for (const [sourceSpace, suite] of Object.entries(colorConvert2)) {
1061
- const name = sourceSpace === "ansi16" ? "ansi" : sourceSpace;
1062
- if (sourceSpace === targetSpace) {
1063
- styles2[name] = wrap(identity, offset);
1064
- } else if (typeof suite === "object") {
1065
- styles2[name] = wrap(suite[targetSpace], offset);
1022
+ ansiStyles.exports;
1023
+ var hasRequiredAnsiStyles;
1024
+ function requireAnsiStyles() {
1025
+ if (hasRequiredAnsiStyles) return ansiStyles.exports;
1026
+ hasRequiredAnsiStyles = 1;
1027
+ (function(module) {
1028
+ const wrapAnsi16 = (fn, offset) => (...args) => {
1029
+ const code = fn(...args);
1030
+ return `\x1B[${code + offset}m`;
1031
+ };
1032
+ const wrapAnsi256 = (fn, offset) => (...args) => {
1033
+ const code = fn(...args);
1034
+ return `\x1B[${38 + offset};5;${code}m`;
1035
+ };
1036
+ const wrapAnsi16m = (fn, offset) => (...args) => {
1037
+ const rgb = fn(...args);
1038
+ return `\x1B[${38 + offset};2;${rgb[0]};${rgb[1]};${rgb[2]}m`;
1039
+ };
1040
+ const ansi2ansi = (n) => n;
1041
+ const rgb2rgb = (r, g, b) => [r, g, b];
1042
+ const setLazyProperty = (object, property, get) => {
1043
+ Object.defineProperty(object, property, {
1044
+ get: () => {
1045
+ const value = get();
1046
+ Object.defineProperty(object, property, {
1047
+ value,
1048
+ enumerable: true,
1049
+ configurable: true
1050
+ });
1051
+ return value;
1052
+ },
1053
+ enumerable: true,
1054
+ configurable: true
1055
+ });
1056
+ };
1057
+ let colorConvert2;
1058
+ const makeDynamicStyles = (wrap, targetSpace, identity, isBackground) => {
1059
+ if (colorConvert2 === void 0) {
1060
+ colorConvert2 = requireColorConvert();
1066
1061
  }
1067
- }
1068
- return styles2;
1069
- };
1070
- function assembleStyles() {
1071
- const codes = /* @__PURE__ */ new Map();
1072
- const styles2 = {
1073
- modifier: {
1074
- reset: [0, 0],
1075
- // 21 isn't widely supported and 22 does the same thing
1076
- bold: [1, 22],
1077
- dim: [2, 22],
1078
- italic: [3, 23],
1079
- underline: [4, 24],
1080
- inverse: [7, 27],
1081
- hidden: [8, 28],
1082
- strikethrough: [9, 29]
1083
- },
1084
- color: {
1085
- black: [30, 39],
1086
- red: [31, 39],
1087
- green: [32, 39],
1088
- yellow: [33, 39],
1089
- blue: [34, 39],
1090
- magenta: [35, 39],
1091
- cyan: [36, 39],
1092
- white: [37, 39],
1093
- // Bright color
1094
- blackBright: [90, 39],
1095
- redBright: [91, 39],
1096
- greenBright: [92, 39],
1097
- yellowBright: [93, 39],
1098
- blueBright: [94, 39],
1099
- magentaBright: [95, 39],
1100
- cyanBright: [96, 39],
1101
- whiteBright: [97, 39]
1102
- },
1103
- bgColor: {
1104
- bgBlack: [40, 49],
1105
- bgRed: [41, 49],
1106
- bgGreen: [42, 49],
1107
- bgYellow: [43, 49],
1108
- bgBlue: [44, 49],
1109
- bgMagenta: [45, 49],
1110
- bgCyan: [46, 49],
1111
- bgWhite: [47, 49],
1112
- // Bright color
1113
- bgBlackBright: [100, 49],
1114
- bgRedBright: [101, 49],
1115
- bgGreenBright: [102, 49],
1116
- bgYellowBright: [103, 49],
1117
- bgBlueBright: [104, 49],
1118
- bgMagentaBright: [105, 49],
1119
- bgCyanBright: [106, 49],
1120
- bgWhiteBright: [107, 49]
1062
+ const offset = isBackground ? 10 : 0;
1063
+ const styles = {};
1064
+ for (const [sourceSpace, suite] of Object.entries(colorConvert2)) {
1065
+ const name = sourceSpace === "ansi16" ? "ansi" : sourceSpace;
1066
+ if (sourceSpace === targetSpace) {
1067
+ styles[name] = wrap(identity, offset);
1068
+ } else if (typeof suite === "object") {
1069
+ styles[name] = wrap(suite[targetSpace], offset);
1070
+ }
1121
1071
  }
1072
+ return styles;
1122
1073
  };
1123
- styles2.color.gray = styles2.color.blackBright;
1124
- styles2.bgColor.bgGray = styles2.bgColor.bgBlackBright;
1125
- styles2.color.grey = styles2.color.blackBright;
1126
- styles2.bgColor.bgGrey = styles2.bgColor.bgBlackBright;
1127
- for (const [groupName, group] of Object.entries(styles2)) {
1128
- for (const [styleName, style] of Object.entries(group)) {
1129
- styles2[styleName] = {
1130
- open: `\x1B[${style[0]}m`,
1131
- close: `\x1B[${style[1]}m`
1132
- };
1133
- group[styleName] = styles2[styleName];
1134
- codes.set(style[0], style[1]);
1074
+ function assembleStyles() {
1075
+ const codes = /* @__PURE__ */ new Map();
1076
+ const styles = {
1077
+ modifier: {
1078
+ reset: [0, 0],
1079
+ // 21 isn't widely supported and 22 does the same thing
1080
+ bold: [1, 22],
1081
+ dim: [2, 22],
1082
+ italic: [3, 23],
1083
+ underline: [4, 24],
1084
+ inverse: [7, 27],
1085
+ hidden: [8, 28],
1086
+ strikethrough: [9, 29]
1087
+ },
1088
+ color: {
1089
+ black: [30, 39],
1090
+ red: [31, 39],
1091
+ green: [32, 39],
1092
+ yellow: [33, 39],
1093
+ blue: [34, 39],
1094
+ magenta: [35, 39],
1095
+ cyan: [36, 39],
1096
+ white: [37, 39],
1097
+ // Bright color
1098
+ blackBright: [90, 39],
1099
+ redBright: [91, 39],
1100
+ greenBright: [92, 39],
1101
+ yellowBright: [93, 39],
1102
+ blueBright: [94, 39],
1103
+ magentaBright: [95, 39],
1104
+ cyanBright: [96, 39],
1105
+ whiteBright: [97, 39]
1106
+ },
1107
+ bgColor: {
1108
+ bgBlack: [40, 49],
1109
+ bgRed: [41, 49],
1110
+ bgGreen: [42, 49],
1111
+ bgYellow: [43, 49],
1112
+ bgBlue: [44, 49],
1113
+ bgMagenta: [45, 49],
1114
+ bgCyan: [46, 49],
1115
+ bgWhite: [47, 49],
1116
+ // Bright color
1117
+ bgBlackBright: [100, 49],
1118
+ bgRedBright: [101, 49],
1119
+ bgGreenBright: [102, 49],
1120
+ bgYellowBright: [103, 49],
1121
+ bgBlueBright: [104, 49],
1122
+ bgMagentaBright: [105, 49],
1123
+ bgCyanBright: [106, 49],
1124
+ bgWhiteBright: [107, 49]
1125
+ }
1126
+ };
1127
+ styles.color.gray = styles.color.blackBright;
1128
+ styles.bgColor.bgGray = styles.bgColor.bgBlackBright;
1129
+ styles.color.grey = styles.color.blackBright;
1130
+ styles.bgColor.bgGrey = styles.bgColor.bgBlackBright;
1131
+ for (const [groupName, group] of Object.entries(styles)) {
1132
+ for (const [styleName, style] of Object.entries(group)) {
1133
+ styles[styleName] = {
1134
+ open: `\x1B[${style[0]}m`,
1135
+ close: `\x1B[${style[1]}m`
1136
+ };
1137
+ group[styleName] = styles[styleName];
1138
+ codes.set(style[0], style[1]);
1139
+ }
1140
+ Object.defineProperty(styles, groupName, {
1141
+ value: group,
1142
+ enumerable: false
1143
+ });
1135
1144
  }
1136
- Object.defineProperty(styles2, groupName, {
1137
- value: group,
1145
+ Object.defineProperty(styles, "codes", {
1146
+ value: codes,
1138
1147
  enumerable: false
1139
1148
  });
1149
+ styles.color.close = "\x1B[39m";
1150
+ styles.bgColor.close = "\x1B[49m";
1151
+ setLazyProperty(styles.color, "ansi", () => makeDynamicStyles(wrapAnsi16, "ansi16", ansi2ansi, false));
1152
+ setLazyProperty(styles.color, "ansi256", () => makeDynamicStyles(wrapAnsi256, "ansi256", ansi2ansi, false));
1153
+ setLazyProperty(styles.color, "ansi16m", () => makeDynamicStyles(wrapAnsi16m, "rgb", rgb2rgb, false));
1154
+ setLazyProperty(styles.bgColor, "ansi", () => makeDynamicStyles(wrapAnsi16, "ansi16", ansi2ansi, true));
1155
+ setLazyProperty(styles.bgColor, "ansi256", () => makeDynamicStyles(wrapAnsi256, "ansi256", ansi2ansi, true));
1156
+ setLazyProperty(styles.bgColor, "ansi16m", () => makeDynamicStyles(wrapAnsi16m, "rgb", rgb2rgb, true));
1157
+ return styles;
1140
1158
  }
1141
- Object.defineProperty(styles2, "codes", {
1142
- value: codes,
1143
- enumerable: false
1159
+ Object.defineProperty(module, "exports", {
1160
+ enumerable: true,
1161
+ get: assembleStyles
1144
1162
  });
1145
- styles2.color.close = "\x1B[39m";
1146
- styles2.bgColor.close = "\x1B[49m";
1147
- setLazyProperty(styles2.color, "ansi", () => makeDynamicStyles(wrapAnsi16, "ansi16", ansi2ansi, false));
1148
- setLazyProperty(styles2.color, "ansi256", () => makeDynamicStyles(wrapAnsi256, "ansi256", ansi2ansi, false));
1149
- setLazyProperty(styles2.color, "ansi16m", () => makeDynamicStyles(wrapAnsi16m, "rgb", rgb2rgb, false));
1150
- setLazyProperty(styles2.bgColor, "ansi", () => makeDynamicStyles(wrapAnsi16, "ansi16", ansi2ansi, true));
1151
- setLazyProperty(styles2.bgColor, "ansi256", () => makeDynamicStyles(wrapAnsi256, "ansi256", ansi2ansi, true));
1152
- setLazyProperty(styles2.bgColor, "ansi16m", () => makeDynamicStyles(wrapAnsi16m, "rgb", rgb2rgb, true));
1153
- return styles2;
1154
- }
1155
- Object.defineProperty(module, "exports", {
1156
- enumerable: true,
1157
- get: assembleStyles
1158
- });
1159
- })(ansiStyles$1);
1160
- var ansiStylesExports = ansiStyles$1.exports;
1161
- var browser = {
1162
- stdout: false,
1163
- stderr: false
1164
- };
1165
- const stringReplaceAll$1 = (string, substring, replacer) => {
1166
- let index = string.indexOf(substring);
1167
- if (index === -1) {
1168
- return string;
1169
- }
1170
- const substringLength = substring.length;
1171
- let endIndex = 0;
1172
- let returnValue = "";
1173
- do {
1174
- returnValue += string.substr(endIndex, index - endIndex) + substring + replacer;
1175
- endIndex = index + substringLength;
1176
- index = string.indexOf(substring, endIndex);
1177
- } while (index !== -1);
1178
- returnValue += string.substr(endIndex);
1179
- return returnValue;
1180
- };
1181
- const stringEncaseCRLFWithFirstIndex$1 = (string, prefix, postfix, index) => {
1182
- let endIndex = 0;
1183
- let returnValue = "";
1184
- do {
1185
- const gotCR = string[index - 1] === "\r";
1186
- returnValue += string.substr(endIndex, (gotCR ? index - 1 : index) - endIndex) + prefix + (gotCR ? "\r\n" : "\n") + postfix;
1187
- endIndex = index + 1;
1188
- index = string.indexOf("\n", endIndex);
1189
- } while (index !== -1);
1190
- returnValue += string.substr(endIndex);
1191
- return returnValue;
1192
- };
1193
- var util = {
1194
- stringReplaceAll: stringReplaceAll$1,
1195
- stringEncaseCRLFWithFirstIndex: stringEncaseCRLFWithFirstIndex$1
1196
- };
1163
+ })(ansiStyles);
1164
+ return ansiStyles.exports;
1165
+ }
1166
+ var browser;
1167
+ var hasRequiredBrowser;
1168
+ function requireBrowser() {
1169
+ if (hasRequiredBrowser) return browser;
1170
+ hasRequiredBrowser = 1;
1171
+ browser = {
1172
+ stdout: false,
1173
+ stderr: false
1174
+ };
1175
+ return browser;
1176
+ }
1177
+ var util;
1178
+ var hasRequiredUtil;
1179
+ function requireUtil() {
1180
+ if (hasRequiredUtil) return util;
1181
+ hasRequiredUtil = 1;
1182
+ const stringReplaceAll = (string, substring, replacer) => {
1183
+ let index = string.indexOf(substring);
1184
+ if (index === -1) {
1185
+ return string;
1186
+ }
1187
+ const substringLength = substring.length;
1188
+ let endIndex = 0;
1189
+ let returnValue = "";
1190
+ do {
1191
+ returnValue += string.substr(endIndex, index - endIndex) + substring + replacer;
1192
+ endIndex = index + substringLength;
1193
+ index = string.indexOf(substring, endIndex);
1194
+ } while (index !== -1);
1195
+ returnValue += string.substr(endIndex);
1196
+ return returnValue;
1197
+ };
1198
+ const stringEncaseCRLFWithFirstIndex = (string, prefix, postfix, index) => {
1199
+ let endIndex = 0;
1200
+ let returnValue = "";
1201
+ do {
1202
+ const gotCR = string[index - 1] === "\r";
1203
+ returnValue += string.substr(endIndex, (gotCR ? index - 1 : index) - endIndex) + prefix + (gotCR ? "\r\n" : "\n") + postfix;
1204
+ endIndex = index + 1;
1205
+ index = string.indexOf("\n", endIndex);
1206
+ } while (index !== -1);
1207
+ returnValue += string.substr(endIndex);
1208
+ return returnValue;
1209
+ };
1210
+ util = {
1211
+ stringReplaceAll,
1212
+ stringEncaseCRLFWithFirstIndex
1213
+ };
1214
+ return util;
1215
+ }
1197
1216
  var templates;
1198
1217
  var hasRequiredTemplates;
1199
1218
  function requireTemplates() {
@@ -1257,27 +1276,27 @@ function requireTemplates() {
1257
1276
  }
1258
1277
  return results;
1259
1278
  }
1260
- function buildStyle(chalk2, styles2) {
1279
+ function buildStyle(chalk2, styles) {
1261
1280
  const enabled = {};
1262
- for (const layer of styles2) {
1281
+ for (const layer of styles) {
1263
1282
  for (const style of layer.styles) {
1264
1283
  enabled[style[0]] = layer.inverse ? null : style.slice(1);
1265
1284
  }
1266
1285
  }
1267
1286
  let current = chalk2;
1268
- for (const [styleName, styles3] of Object.entries(enabled)) {
1269
- if (!Array.isArray(styles3)) {
1287
+ for (const [styleName, styles2] of Object.entries(enabled)) {
1288
+ if (!Array.isArray(styles2)) {
1270
1289
  continue;
1271
1290
  }
1272
1291
  if (!(styleName in current)) {
1273
1292
  throw new Error(`Unknown Chalk style: ${styleName}`);
1274
1293
  }
1275
- current = styles3.length > 0 ? current[styleName](...styles3) : current[styleName];
1294
+ current = styles2.length > 0 ? current[styleName](...styles2) : current[styleName];
1276
1295
  }
1277
1296
  return current;
1278
1297
  }
1279
1298
  templates = (chalk2, temporary) => {
1280
- const styles2 = [];
1299
+ const styles = [];
1281
1300
  const chunks = [];
1282
1301
  let chunk = [];
1283
1302
  temporary.replace(TEMPLATE_REGEX, (m, escapeCharacter, inverse, style, close, character) => {
@@ -1286,201 +1305,209 @@ function requireTemplates() {
1286
1305
  } else if (style) {
1287
1306
  const string = chunk.join("");
1288
1307
  chunk = [];
1289
- chunks.push(styles2.length === 0 ? string : buildStyle(chalk2, styles2)(string));
1290
- styles2.push({ inverse, styles: parseStyle(style) });
1308
+ chunks.push(styles.length === 0 ? string : buildStyle(chalk2, styles)(string));
1309
+ styles.push({ inverse, styles: parseStyle(style) });
1291
1310
  } else if (close) {
1292
- if (styles2.length === 0) {
1311
+ if (styles.length === 0) {
1293
1312
  throw new Error("Found extraneous } in Chalk template literal");
1294
1313
  }
1295
- chunks.push(buildStyle(chalk2, styles2)(chunk.join("")));
1314
+ chunks.push(buildStyle(chalk2, styles)(chunk.join("")));
1296
1315
  chunk = [];
1297
- styles2.pop();
1316
+ styles.pop();
1298
1317
  } else {
1299
1318
  chunk.push(character);
1300
1319
  }
1301
1320
  });
1302
1321
  chunks.push(chunk.join(""));
1303
- if (styles2.length > 0) {
1304
- const errMessage = `Chalk template literal is missing ${styles2.length} closing bracket${styles2.length === 1 ? "" : "s"} (\`}\`)`;
1322
+ if (styles.length > 0) {
1323
+ const errMessage = `Chalk template literal is missing ${styles.length} closing bracket${styles.length === 1 ? "" : "s"} (\`}\`)`;
1305
1324
  throw new Error(errMessage);
1306
1325
  }
1307
1326
  return chunks.join("");
1308
1327
  };
1309
1328
  return templates;
1310
1329
  }
1311
- const ansiStyles = ansiStylesExports;
1312
- const { stdout: stdoutColor, stderr: stderrColor } = browser;
1313
- const {
1314
- stringReplaceAll,
1315
- stringEncaseCRLFWithFirstIndex
1316
- } = util;
1317
- const { isArray } = Array;
1318
- const levelMapping = [
1319
- "ansi",
1320
- "ansi",
1321
- "ansi256",
1322
- "ansi16m"
1323
- ];
1324
- const styles = /* @__PURE__ */ Object.create(null);
1325
- const applyOptions = (object, options = {}) => {
1326
- if (options.level && !(Number.isInteger(options.level) && options.level >= 0 && options.level <= 3)) {
1327
- throw new Error("The `level` option should be an integer from 0 to 3");
1330
+ var source;
1331
+ var hasRequiredSource;
1332
+ function requireSource() {
1333
+ if (hasRequiredSource) return source;
1334
+ hasRequiredSource = 1;
1335
+ const ansiStyles2 = requireAnsiStyles();
1336
+ const { stdout: stdoutColor, stderr: stderrColor } = requireBrowser();
1337
+ const {
1338
+ stringReplaceAll,
1339
+ stringEncaseCRLFWithFirstIndex
1340
+ } = requireUtil();
1341
+ const { isArray } = Array;
1342
+ const levelMapping = [
1343
+ "ansi",
1344
+ "ansi",
1345
+ "ansi256",
1346
+ "ansi16m"
1347
+ ];
1348
+ const styles = /* @__PURE__ */ Object.create(null);
1349
+ const applyOptions = (object, options = {}) => {
1350
+ if (options.level && !(Number.isInteger(options.level) && options.level >= 0 && options.level <= 3)) {
1351
+ throw new Error("The `level` option should be an integer from 0 to 3");
1352
+ }
1353
+ const colorLevel = stdoutColor ? stdoutColor.level : 0;
1354
+ object.level = options.level === void 0 ? colorLevel : options.level;
1355
+ };
1356
+ class ChalkClass {
1357
+ constructor(options) {
1358
+ return chalkFactory(options);
1359
+ }
1328
1360
  }
1329
- const colorLevel = stdoutColor ? stdoutColor.level : 0;
1330
- object.level = options.level === void 0 ? colorLevel : options.level;
1331
- };
1332
- class ChalkClass {
1333
- constructor(options) {
1361
+ const chalkFactory = (options) => {
1362
+ const chalk3 = {};
1363
+ applyOptions(chalk3, options);
1364
+ chalk3.template = (...arguments_) => chalkTag(chalk3.template, ...arguments_);
1365
+ Object.setPrototypeOf(chalk3, Chalk.prototype);
1366
+ Object.setPrototypeOf(chalk3.template, chalk3);
1367
+ chalk3.template.constructor = () => {
1368
+ throw new Error("`chalk.constructor()` is deprecated. Use `new chalk.Instance()` instead.");
1369
+ };
1370
+ chalk3.template.Instance = ChalkClass;
1371
+ return chalk3.template;
1372
+ };
1373
+ function Chalk(options) {
1334
1374
  return chalkFactory(options);
1335
1375
  }
1336
- }
1337
- const chalkFactory = (options) => {
1338
- const chalk2 = {};
1339
- applyOptions(chalk2, options);
1340
- chalk2.template = (...arguments_) => chalkTag(chalk2.template, ...arguments_);
1341
- Object.setPrototypeOf(chalk2, Chalk.prototype);
1342
- Object.setPrototypeOf(chalk2.template, chalk2);
1343
- chalk2.template.constructor = () => {
1344
- throw new Error("`chalk.constructor()` is deprecated. Use `new chalk.Instance()` instead.");
1345
- };
1346
- chalk2.template.Instance = ChalkClass;
1347
- return chalk2.template;
1348
- };
1349
- function Chalk(options) {
1350
- return chalkFactory(options);
1351
- }
1352
- for (const [styleName, style] of Object.entries(ansiStyles)) {
1353
- styles[styleName] = {
1376
+ for (const [styleName, style] of Object.entries(ansiStyles2)) {
1377
+ styles[styleName] = {
1378
+ get() {
1379
+ const builder = createBuilder(this, createStyler(style.open, style.close, this._styler), this._isEmpty);
1380
+ Object.defineProperty(this, styleName, { value: builder });
1381
+ return builder;
1382
+ }
1383
+ };
1384
+ }
1385
+ styles.visible = {
1354
1386
  get() {
1355
- const builder = createBuilder(this, createStyler(style.open, style.close, this._styler), this._isEmpty);
1356
- Object.defineProperty(this, styleName, { value: builder });
1387
+ const builder = createBuilder(this, this._styler, true);
1388
+ Object.defineProperty(this, "visible", { value: builder });
1357
1389
  return builder;
1358
1390
  }
1359
1391
  };
1360
- }
1361
- styles.visible = {
1362
- get() {
1363
- const builder = createBuilder(this, this._styler, true);
1364
- Object.defineProperty(this, "visible", { value: builder });
1365
- return builder;
1392
+ const usedModels = ["rgb", "hex", "keyword", "hsl", "hsv", "hwb", "ansi", "ansi256"];
1393
+ for (const model of usedModels) {
1394
+ styles[model] = {
1395
+ get() {
1396
+ const { level } = this;
1397
+ return function(...arguments_) {
1398
+ const styler = createStyler(ansiStyles2.color[levelMapping[level]][model](...arguments_), ansiStyles2.color.close, this._styler);
1399
+ return createBuilder(this, styler, this._isEmpty);
1400
+ };
1401
+ }
1402
+ };
1366
1403
  }
1367
- };
1368
- const usedModels = ["rgb", "hex", "keyword", "hsl", "hsv", "hwb", "ansi", "ansi256"];
1369
- for (const model of usedModels) {
1370
- styles[model] = {
1371
- get() {
1372
- const { level } = this;
1373
- return function(...arguments_) {
1374
- const styler = createStyler(ansiStyles.color[levelMapping[level]][model](...arguments_), ansiStyles.color.close, this._styler);
1375
- return createBuilder(this, styler, this._isEmpty);
1376
- };
1404
+ for (const model of usedModels) {
1405
+ const bgModel = "bg" + model[0].toUpperCase() + model.slice(1);
1406
+ styles[bgModel] = {
1407
+ get() {
1408
+ const { level } = this;
1409
+ return function(...arguments_) {
1410
+ const styler = createStyler(ansiStyles2.bgColor[levelMapping[level]][model](...arguments_), ansiStyles2.bgColor.close, this._styler);
1411
+ return createBuilder(this, styler, this._isEmpty);
1412
+ };
1413
+ }
1414
+ };
1415
+ }
1416
+ const proto = Object.defineProperties(() => {
1417
+ }, {
1418
+ ...styles,
1419
+ level: {
1420
+ enumerable: true,
1421
+ get() {
1422
+ return this._generator.level;
1423
+ },
1424
+ set(level) {
1425
+ this._generator.level = level;
1426
+ }
1377
1427
  }
1378
- };
1379
- }
1380
- for (const model of usedModels) {
1381
- const bgModel = "bg" + model[0].toUpperCase() + model.slice(1);
1382
- styles[bgModel] = {
1383
- get() {
1384
- const { level } = this;
1385
- return function(...arguments_) {
1386
- const styler = createStyler(ansiStyles.bgColor[levelMapping[level]][model](...arguments_), ansiStyles.bgColor.close, this._styler);
1387
- return createBuilder(this, styler, this._isEmpty);
1388
- };
1428
+ });
1429
+ const createStyler = (open, close, parent) => {
1430
+ let openAll;
1431
+ let closeAll;
1432
+ if (parent === void 0) {
1433
+ openAll = open;
1434
+ closeAll = close;
1435
+ } else {
1436
+ openAll = parent.openAll + open;
1437
+ closeAll = close + parent.closeAll;
1389
1438
  }
1439
+ return {
1440
+ open,
1441
+ close,
1442
+ openAll,
1443
+ closeAll,
1444
+ parent
1445
+ };
1390
1446
  };
1391
- }
1392
- const proto = Object.defineProperties(() => {
1393
- }, {
1394
- ...styles,
1395
- level: {
1396
- enumerable: true,
1397
- get() {
1398
- return this._generator.level;
1399
- },
1400
- set(level) {
1401
- this._generator.level = level;
1402
- }
1403
- }
1404
- });
1405
- const createStyler = (open, close, parent) => {
1406
- let openAll;
1407
- let closeAll;
1408
- if (parent === void 0) {
1409
- openAll = open;
1410
- closeAll = close;
1411
- } else {
1412
- openAll = parent.openAll + open;
1413
- closeAll = close + parent.closeAll;
1414
- }
1415
- return {
1416
- open,
1417
- close,
1418
- openAll,
1419
- closeAll,
1420
- parent
1447
+ const createBuilder = (self, _styler, _isEmpty) => {
1448
+ const builder = (...arguments_) => {
1449
+ if (isArray(arguments_[0]) && isArray(arguments_[0].raw)) {
1450
+ return applyStyle(builder, chalkTag(builder, ...arguments_));
1451
+ }
1452
+ return applyStyle(builder, arguments_.length === 1 ? "" + arguments_[0] : arguments_.join(" "));
1453
+ };
1454
+ Object.setPrototypeOf(builder, proto);
1455
+ builder._generator = self;
1456
+ builder._styler = _styler;
1457
+ builder._isEmpty = _isEmpty;
1458
+ return builder;
1421
1459
  };
1422
- };
1423
- const createBuilder = (self, _styler, _isEmpty) => {
1424
- const builder = (...arguments_) => {
1425
- if (isArray(arguments_[0]) && isArray(arguments_[0].raw)) {
1426
- return applyStyle(builder, chalkTag(builder, ...arguments_));
1460
+ const applyStyle = (self, string) => {
1461
+ if (self.level <= 0 || !string) {
1462
+ return self._isEmpty ? "" : string;
1463
+ }
1464
+ let styler = self._styler;
1465
+ if (styler === void 0) {
1466
+ return string;
1467
+ }
1468
+ const { openAll, closeAll } = styler;
1469
+ if (string.indexOf("\x1B") !== -1) {
1470
+ while (styler !== void 0) {
1471
+ string = stringReplaceAll(string, styler.close, styler.open);
1472
+ styler = styler.parent;
1473
+ }
1427
1474
  }
1428
- return applyStyle(builder, arguments_.length === 1 ? "" + arguments_[0] : arguments_.join(" "));
1475
+ const lfIndex = string.indexOf("\n");
1476
+ if (lfIndex !== -1) {
1477
+ string = stringEncaseCRLFWithFirstIndex(string, closeAll, openAll, lfIndex);
1478
+ }
1479
+ return openAll + string + closeAll;
1429
1480
  };
1430
- Object.setPrototypeOf(builder, proto);
1431
- builder._generator = self;
1432
- builder._styler = _styler;
1433
- builder._isEmpty = _isEmpty;
1434
- return builder;
1435
- };
1436
- const applyStyle = (self, string) => {
1437
- if (self.level <= 0 || !string) {
1438
- return self._isEmpty ? "" : string;
1439
- }
1440
- let styler = self._styler;
1441
- if (styler === void 0) {
1442
- return string;
1443
- }
1444
- const { openAll, closeAll } = styler;
1445
- if (string.indexOf("\x1B") !== -1) {
1446
- while (styler !== void 0) {
1447
- string = stringReplaceAll(string, styler.close, styler.open);
1448
- styler = styler.parent;
1481
+ let template;
1482
+ const chalkTag = (chalk3, ...strings) => {
1483
+ const [firstString] = strings;
1484
+ if (!isArray(firstString) || !isArray(firstString.raw)) {
1485
+ return strings.join(" ");
1449
1486
  }
1450
- }
1451
- const lfIndex = string.indexOf("\n");
1452
- if (lfIndex !== -1) {
1453
- string = stringEncaseCRLFWithFirstIndex(string, closeAll, openAll, lfIndex);
1454
- }
1455
- return openAll + string + closeAll;
1456
- };
1457
- let template;
1458
- const chalkTag = (chalk2, ...strings) => {
1459
- const [firstString] = strings;
1460
- if (!isArray(firstString) || !isArray(firstString.raw)) {
1461
- return strings.join(" ");
1462
- }
1463
- const arguments_ = strings.slice(1);
1464
- const parts = [firstString.raw[0]];
1465
- for (let i = 1; i < firstString.length; i++) {
1466
- parts.push(
1467
- String(arguments_[i - 1]).replace(/[{}\\]/g, "\\$&"),
1468
- String(firstString.raw[i])
1469
- );
1470
- }
1471
- if (template === void 0) {
1472
- template = requireTemplates();
1473
- }
1474
- return template(chalk2, parts.join(""));
1475
- };
1476
- Object.defineProperties(Chalk.prototype, styles);
1477
- const chalk = Chalk();
1478
- chalk.supportsColor = stdoutColor;
1479
- chalk.stderr = Chalk({ level: stderrColor ? stderrColor.level : 0 });
1480
- chalk.stderr.supportsColor = stderrColor;
1481
- var source = chalk;
1482
- const chalk$1 = /* @__PURE__ */ getDefaultExportFromCjs(source);
1483
- chalk$1.level = 3;
1487
+ const arguments_ = strings.slice(1);
1488
+ const parts = [firstString.raw[0]];
1489
+ for (let i = 1; i < firstString.length; i++) {
1490
+ parts.push(
1491
+ String(arguments_[i - 1]).replace(/[{}\\]/g, "\\$&"),
1492
+ String(firstString.raw[i])
1493
+ );
1494
+ }
1495
+ if (template === void 0) {
1496
+ template = requireTemplates();
1497
+ }
1498
+ return template(chalk3, parts.join(""));
1499
+ };
1500
+ Object.defineProperties(Chalk.prototype, styles);
1501
+ const chalk2 = Chalk();
1502
+ chalk2.supportsColor = stdoutColor;
1503
+ chalk2.stderr = Chalk({ level: stderrColor ? stderrColor.level : 0 });
1504
+ chalk2.stderr.supportsColor = stderrColor;
1505
+ source = chalk2;
1506
+ return source;
1507
+ }
1508
+ var sourceExports = requireSource();
1509
+ const chalk = /* @__PURE__ */ getDefaultExportFromCjs(sourceExports);
1510
+ chalk.level = 3;
1484
1511
  class WorkerInstance {
1485
1512
  constructor() {
1486
1513
  __privateAdd(this, _WorkerInstance_instances);
@@ -1489,9 +1516,9 @@ class WorkerInstance {
1489
1516
  __privateAdd(this, _options, null);
1490
1517
  __privateAdd(this, _debug, (message) => {
1491
1518
  if (__privateGet(this, _options)) {
1492
- console.log(chalk$1.green(`pid: [${process.pid}] ${__privateGet(this, _options).id} WorkerInstance::${message}`));
1519
+ console.log(chalk.green(`pid: [${process.pid}] ${__privateGet(this, _options).id} WorkerInstance::${message}`));
1493
1520
  } else {
1494
- console.log(chalk$1.green(`pid: [${process.pid}] WorkerInstance::${message}`));
1521
+ console.log(chalk.green(`pid: [${process.pid}] WorkerInstance::${message}`));
1495
1522
  }
1496
1523
  });
1497
1524
  __publicField(this, "GetRandomInt", (max) => {
@@ -1551,7 +1578,7 @@ class WorkerInstance {
1551
1578
  });
1552
1579
  __privateAdd(this, _StartRunner, async (testRunnerTelemetryPayload) => {
1553
1580
  const { runner } = testRunnerTelemetryPayload;
1554
- __privateGet(this, _debug).call(this, `${chalk$1.magenta(`runner: [${runner.id}]`)} StartRunner`);
1581
+ __privateGet(this, _debug).call(this, `${chalk.magenta(`runner: [${runner.id}]`)} StartRunner`);
1555
1582
  __privateGet(this, _runners)[runner.id].terminate = false;
1556
1583
  __privateGet(this, _runners)[runner.id].paused = false;
1557
1584
  await __privateGet(this, _runners)[runner.id].runnerInstance.StartRunner();
@@ -1592,7 +1619,7 @@ class WorkerInstance {
1592
1619
  __privateAdd(this, _StopAllRunners, async (testRunnerTelemetryPayload) => {
1593
1620
  __privateGet(this, _debug).call(this, `StopAllRunners`);
1594
1621
  for (const [, runner] of Object.entries(__privateGet(this, _runners))) {
1595
- __privateGet(this, _debug).call(this, `${chalk$1.magenta(`runner: [${runner.runner.id}]`)} StopAllRunners`);
1622
+ __privateGet(this, _debug).call(this, `${chalk.magenta(`runner: [${runner.runner.id}]`)} StopAllRunners`);
1596
1623
  runner.terminate = true;
1597
1624
  await runner.runnerInstance.StopRunner();
1598
1625
  }
@@ -1600,36 +1627,36 @@ class WorkerInstance {
1600
1627
  });
1601
1628
  __privateAdd(this, _StopRunner, async (testRunnerTelemetryPayload) => {
1602
1629
  const { runner } = testRunnerTelemetryPayload;
1603
- __privateGet(this, _debug).call(this, `${chalk$1.magenta(`runner: [${runner.id}]`)} StopRunner`);
1630
+ __privateGet(this, _debug).call(this, `${chalk.magenta(`runner: [${runner.id}]`)} StopRunner`);
1604
1631
  __privateGet(this, _runners)[runner.id].terminate = true;
1605
1632
  await __privateGet(this, _runners)[runner.id].runnerInstance.StopRunner();
1606
1633
  await Sleep(0);
1607
1634
  });
1608
1635
  __privateAdd(this, _TerminateRunner, async (testRunnerTelemetryPayload) => {
1609
1636
  const { runner } = testRunnerTelemetryPayload;
1610
- __privateGet(this, _debug).call(this, `${chalk$1.magenta(`runner: [${runner.id}]`)} TerminateRunner`);
1637
+ __privateGet(this, _debug).call(this, `${chalk.magenta(`runner: [${runner.id}]`)} TerminateRunner`);
1611
1638
  __privateGet(this, _runners)[runner.id].terminate = true;
1612
1639
  const retVal = await __privateGet(this, _runners)[runner.id].runnerInstance.TerminateRunner();
1613
- __privateGet(this, _debug).call(this, `${chalk$1.magenta(`runner: [${runner.id}]`)} TerminateRunner Result = [${retVal}]`);
1640
+ __privateGet(this, _debug).call(this, `${chalk.magenta(`runner: [${runner.id}]`)} TerminateRunner Result = [${retVal}]`);
1614
1641
  await Sleep(0);
1615
1642
  });
1616
1643
  __privateAdd(this, _PauseRunner, async (testRunnerTelemetryPayload) => {
1617
1644
  const { runner } = testRunnerTelemetryPayload;
1618
- __privateGet(this, _debug).call(this, `${chalk$1.magenta(`runner: [${runner.id}]`)} PauseRunner`);
1645
+ __privateGet(this, _debug).call(this, `${chalk.magenta(`runner: [${runner.id}]`)} PauseRunner`);
1619
1646
  __privateGet(this, _runners)[runner.id].paused = true;
1620
1647
  await __privateGet(this, _runners)[runner.id].runnerInstance.PauseRunner();
1621
1648
  await Sleep(0);
1622
1649
  });
1623
1650
  __privateAdd(this, _ResumeRunner, async (testRunnerTelemetryPayload) => {
1624
1651
  const { runner } = testRunnerTelemetryPayload;
1625
- __privateGet(this, _debug).call(this, `${chalk$1.magenta(`runner: [${runner.id}]`)} ResumeRunner`);
1652
+ __privateGet(this, _debug).call(this, `${chalk.magenta(`runner: [${runner.id}]`)} ResumeRunner`);
1626
1653
  __privateGet(this, _runners)[runner.id].paused = false;
1627
1654
  await __privateGet(this, _runners)[runner.id].runnerInstance.ResumeRunner();
1628
1655
  await Sleep(0);
1629
1656
  });
1630
1657
  __privateAdd(this, _ResetRunner, async (testRunnerTelemetryPayload) => {
1631
1658
  const { runner } = testRunnerTelemetryPayload;
1632
- __privateGet(this, _debug).call(this, `${chalk$1.magenta(`runner: [${runner.id}]`)} ResetRunner`);
1659
+ __privateGet(this, _debug).call(this, `${chalk.magenta(`runner: [${runner.id}]`)} ResetRunner`);
1633
1660
  __privateGet(this, _runners)[runner.id].terminate = true;
1634
1661
  __privateGet(this, _runners)[runner.id].iteration = 0;
1635
1662
  await __privateGet(this, _runners)[runner.id].runnerInstance.ResetRunner();
@@ -1638,17 +1665,17 @@ class WorkerInstance {
1638
1665
  // Execute a single iteration of this runners work item
1639
1666
  __privateAdd(this, _ExecuteRunner, async (testRunnerTelemetryPayload) => {
1640
1667
  const { runner } = testRunnerTelemetryPayload;
1641
- __privateGet(this, _debug).call(this, `${chalk$1.magenta(`runner: [${runner.id}]`)} ExecuteRunner`);
1668
+ __privateGet(this, _debug).call(this, `${chalk.magenta(`runner: [${runner.id}]`)} ExecuteRunner`);
1642
1669
  await __privateGet(this, _runners)[runner.id].runnerInstance.Execute(__privateGet(this, _runners)[runner.id].iteration);
1643
1670
  __privateGet(this, _runners)[runner.id].iteration++;
1644
1671
  await Sleep(0);
1645
1672
  });
1646
1673
  __privateAdd(this, _UpdateOptions, async (testRunnerTelemetryPayload) => {
1647
1674
  const { runner } = testRunnerTelemetryPayload;
1648
- __privateGet(this, _debug).call(this, `${chalk$1.magenta(`runner: [${runner.id}]`)} UpdateOptions`);
1649
- console.log(chalk$1.cyan(`before: [${JSON.stringify(__privateGet(this, _runners)[runner.id].runner.options)}]`));
1675
+ __privateGet(this, _debug).call(this, `${chalk.magenta(`runner: [${runner.id}]`)} UpdateOptions`);
1676
+ console.log(chalk.cyan(`before: [${JSON.stringify(__privateGet(this, _runners)[runner.id].runner.options)}]`));
1650
1677
  __privateGet(this, _runners)[runner.id].runner.options = { ...runner.options };
1651
- console.log(chalk$1.cyan(`after: [${JSON.stringify(__privateGet(this, _runners)[runner.id].runner.options)}]`));
1678
+ console.log(chalk.cyan(`after: [${JSON.stringify(__privateGet(this, _runners)[runner.id].runner.options)}]`));
1652
1679
  await __privateGet(this, _runners)[runner.id].runnerInstance.UpdateOptions();
1653
1680
  await Sleep(0);
1654
1681
  });
@@ -1848,39 +1875,37 @@ class TelemetryProcessor {
1848
1875
  });
1849
1876
  }
1850
1877
  }
1851
- var byteToHex = [];
1852
- for (var i = 0; i < 256; ++i) {
1878
+ const byteToHex = [];
1879
+ for (let i = 0; i < 256; ++i) {
1853
1880
  byteToHex.push((i + 256).toString(16).slice(1));
1854
1881
  }
1855
1882
  function unsafeStringify(arr, offset = 0) {
1856
1883
  return (byteToHex[arr[offset + 0]] + byteToHex[arr[offset + 1]] + byteToHex[arr[offset + 2]] + byteToHex[arr[offset + 3]] + "-" + byteToHex[arr[offset + 4]] + byteToHex[arr[offset + 5]] + "-" + byteToHex[arr[offset + 6]] + byteToHex[arr[offset + 7]] + "-" + byteToHex[arr[offset + 8]] + byteToHex[arr[offset + 9]] + "-" + byteToHex[arr[offset + 10]] + byteToHex[arr[offset + 11]] + byteToHex[arr[offset + 12]] + byteToHex[arr[offset + 13]] + byteToHex[arr[offset + 14]] + byteToHex[arr[offset + 15]]).toLowerCase();
1857
1884
  }
1858
- var getRandomValues;
1859
- var rnds8 = new Uint8Array(16);
1885
+ let getRandomValues;
1886
+ const rnds8 = new Uint8Array(16);
1860
1887
  function rng() {
1861
1888
  if (!getRandomValues) {
1862
- getRandomValues = typeof crypto !== "undefined" && crypto.getRandomValues && crypto.getRandomValues.bind(crypto);
1863
- if (!getRandomValues) {
1889
+ if (typeof crypto === "undefined" || !crypto.getRandomValues) {
1864
1890
  throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");
1865
1891
  }
1892
+ getRandomValues = crypto.getRandomValues.bind(crypto);
1866
1893
  }
1867
1894
  return getRandomValues(rnds8);
1868
1895
  }
1869
- var randomUUID = typeof crypto !== "undefined" && crypto.randomUUID && crypto.randomUUID.bind(crypto);
1870
- const native = {
1871
- randomUUID
1872
- };
1896
+ const randomUUID = typeof crypto !== "undefined" && crypto.randomUUID && crypto.randomUUID.bind(crypto);
1897
+ const native = { randomUUID };
1873
1898
  function v4(options, buf, offset) {
1874
1899
  if (native.randomUUID && !buf && !options) {
1875
1900
  return native.randomUUID();
1876
1901
  }
1877
1902
  options = options || {};
1878
- var rnds = options.random || (options.rng || rng)();
1903
+ const rnds = options.random || (options.rng || rng)();
1879
1904
  rnds[6] = rnds[6] & 15 | 64;
1880
1905
  rnds[8] = rnds[8] & 63 | 128;
1881
1906
  return unsafeStringify(rnds);
1882
1907
  }
1883
- chalk$1.level = 3;
1908
+ chalk.level = 3;
1884
1909
  class STSWorkerManager {
1885
1910
  constructor(options) {
1886
1911
  __privateAdd(this, _STSWorkerManager_instances);
@@ -1890,7 +1915,7 @@ class STSWorkerManager {
1890
1915
  __privateAdd(this, _STSInstrumentController);
1891
1916
  __privateAdd(this, _telemetryProcessor);
1892
1917
  __privateAdd(this, _debug2, (message) => {
1893
- console.log(chalk$1.cyan(`pid: [${process.pid}] STSWorkerManager::${message}`));
1918
+ console.log(chalk.cyan(`pid: [${process.pid}] STSWorkerManager::${message}`));
1894
1919
  });
1895
1920
  __publicField(this, "AddWorker", async (useWorkerFactory) => {
1896
1921
  let workerFactory;
@@ -1928,7 +1953,7 @@ class STSWorkerManager {
1928
1953
  Execute: async () => __privateGet(this, _ExecuteWorker).call(this, stsWorkerEx),
1929
1954
  UpdateOptions: async (options) => __privateGet(this, _UpdateOptionsWorker).call(this, stsWorkerEx, options)
1930
1955
  };
1931
- __privateGet(this, _STSInstrumentController).LogEx(chalk$1.yellow(`pid: [${process.pid}] Creating new worker: [${stsWorkerEx.id}]`));
1956
+ __privateGet(this, _STSInstrumentController).LogEx(chalk.yellow(`pid: [${process.pid}] Creating new worker: [${stsWorkerEx.id}]`));
1932
1957
  __privateGet(this, _debug2).call(this, `Adding worker: [${stsWorkerEx.id}]`);
1933
1958
  const {
1934
1959
  port1,
@@ -1947,17 +1972,17 @@ class STSWorkerManager {
1947
1972
  }, port2);
1948
1973
  if (isNode) {
1949
1974
  stsWorkerEx.worker.on("exit", (code) => {
1950
- console.log(chalk$1.magenta(`STSWorkerManager:stsWorkerEx.worker.on(exit): Worker exited with code: ${code}`));
1975
+ console.log(chalk.magenta(`STSWorkerManager:stsWorkerEx.worker.on(exit): Worker exited with code: ${code}`));
1951
1976
  });
1952
1977
  stsWorkerEx.worker.on("error", (error) => {
1953
- console.error(chalk$1.red(`STSWorkerManager:stsWorkerEx.worker.on(error): Worker error: ${error}`));
1978
+ console.error(chalk.red(`STSWorkerManager:stsWorkerEx.worker.on(error): Worker error: ${error}`));
1954
1979
  });
1955
1980
  } else {
1956
1981
  stsWorkerEx.worker.onerror = (error) => {
1957
- console.error(chalk$1.red("STSWorkerManager:stsWorkerEx.worker.onerror(): Error in worker:", error));
1982
+ console.error(chalk.red("STSWorkerManager:stsWorkerEx.worker.onerror(): Error in worker:", error));
1958
1983
  };
1959
1984
  stsWorkerEx.worker.onmessageerror = (error) => {
1960
- console.error(chalk$1.red("STSWorkerManager:stsWorkerEx.worker.onmessageerror(): Message error in worker:", error));
1985
+ console.error(chalk.red("STSWorkerManager:stsWorkerEx.worker.onmessageerror(): Message error in worker:", error));
1961
1986
  };
1962
1987
  }
1963
1988
  const processMessage = (data) => {
@@ -1996,7 +2021,7 @@ class STSWorkerManager {
1996
2021
  const runnerEx = __privateGet(this, _CreateAsyncRunner).call(this, stsWorkerEx, runnerOptions);
1997
2022
  stsWorkerEx.runnersEx[runnerEx.id] = runnerEx;
1998
2023
  __privateGet(this, _SetRunnerIntoWorker).call(this, stsWorkerEx, runnerEx);
1999
- runnerEx.publishInstrumentController.LogEx(chalk$1.green(`Added runner: [${runnerEx.id}] into worker: [${stsWorkerEx.id}]`));
2024
+ runnerEx.publishInstrumentController.LogEx(chalk.green(`Added runner: [${runnerEx.id}] into worker: [${stsWorkerEx.id}]`));
2000
2025
  return runnerEx;
2001
2026
  });
2002
2027
  __privateAdd(this, _SetRunnerIntoWorker, (workerEx, runnerEx) => {
@@ -2036,10 +2061,10 @@ class STSWorkerManager {
2036
2061
  }
2037
2062
  });
2038
2063
  }
2039
- console.log(chalk$1.green(`ProcessCompleted: [${JSON.stringify(runner)}]`));
2064
+ console.log(chalk.green(`ProcessCompleted: [${JSON.stringify(runner)}]`));
2040
2065
  });
2041
2066
  __privateAdd(this, _CreateAsyncRunner, (workerEx, runnerOptions) => {
2042
- __privateGet(this, _STSInstrumentController).LogEx(chalk$1.yellow(`Creating new async runner: [${runnerOptions.id}]`));
2067
+ __privateGet(this, _STSInstrumentController).LogEx(chalk.yellow(`Creating new async runner: [${runnerOptions.id}]`));
2043
2068
  const asyncRunnerContext = {
2044
2069
  nid: `${workerEx.workerThreadWorkerOptions.hostName}${ModelDelimeter.COMPONENT_SEPERATOR}${workerEx.workerThreadWorkerOptions.agentId}-${workerEx.workerThreadWorkerOptions.userAgent}${ModelDelimeter.NID_SEPERATOR}${workerEx.id}${ModelDelimeter.SEPERATOR}${runnerOptions.id}`,
2045
2070
  id: runnerOptions.id,
@@ -2136,21 +2161,21 @@ class STSWorkerManager {
2136
2161
  }
2137
2162
  if (runnerEx !== null) {
2138
2163
  (async () => {
2139
- console.log(chalk$1.magenta(`Sending message to terminate runner: [${JSON.stringify(runnerEx.asyncRunnerContext)}]`));
2164
+ console.log(chalk.magenta(`Sending message to terminate runner: [${JSON.stringify(runnerEx.asyncRunnerContext)}]`));
2140
2165
  __privateGet(this, _PostMessageToWorker).call(this, workerEx, eIWMessageCommands.TerminateRunner, {
2141
2166
  runner: __privateMethod(this, _STSWorkerManager_instances, CreateRunnerCopy_fn).call(this, runnerEx)
2142
2167
  });
2143
2168
  runnerEx.publishInstrumentController.LogEx(`Terminating runner: [${runnerEx.id}]`);
2144
2169
  await Sleep(250);
2145
- console.log(chalk$1.magenta(`Ending publish for runner: [${JSON.stringify(runnerEx.asyncRunnerContext)}]`));
2170
+ console.log(chalk.magenta(`Ending publish for runner: [${JSON.stringify(runnerEx.asyncRunnerContext)}]`));
2146
2171
  await runnerEx.publishInstrumentController.EndPublish();
2147
2172
  await Sleep(250);
2148
2173
  delete workerEx.runnersEx[runnerEx.id];
2149
- console.log(chalk$1.magenta(`Completed Terminate for runner: [${JSON.stringify(runnerEx.asyncRunnerContext)}]`));
2174
+ console.log(chalk.magenta(`Completed Terminate for runner: [${JSON.stringify(runnerEx.asyncRunnerContext)}]`));
2150
2175
  resolve(true);
2151
2176
  })();
2152
2177
  } else {
2153
- console.log(chalk$1.magenta(`No runner to terminate.`));
2178
+ console.log(chalk.magenta(`No runner to terminate.`));
2154
2179
  resolve(false);
2155
2180
  }
2156
2181
  });