@camstack/system 1.2.482 → 1.2.483

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.
Files changed (107) hide show
  1. package/dist/addon-runner.js +2 -2
  2. package/dist/addon-runner.mjs +2 -2
  3. package/dist/{agent-https-o3X-jkS7.js → agent-https-CHZpVx3I.js} +1 -1
  4. package/dist/{agent-https-doVPSeiy.mjs → agent-https-NP141VCW.mjs} +1 -1
  5. package/dist/builtins/addon-pages-aggregator/addon-pages-aggregator.addon.js +1 -1
  6. package/dist/builtins/addon-pages-aggregator/addon-pages-aggregator.addon.mjs +1 -1
  7. package/dist/builtins/addon-widgets-aggregator/addon-widgets-aggregator.addon.js +1 -1
  8. package/dist/builtins/addon-widgets-aggregator/addon-widgets-aggregator.addon.mjs +1 -1
  9. package/dist/builtins/alerts/alerts.addon.js +3 -3
  10. package/dist/builtins/alerts/alerts.addon.mjs +3 -3
  11. package/dist/builtins/alerts/device-label.d.ts +2 -2
  12. package/dist/builtins/autotrack/index.js +1 -1
  13. package/dist/builtins/autotrack/index.mjs +1 -1
  14. package/dist/builtins/backup-orchestrator/backup-orchestrator.addon.js +2 -2
  15. package/dist/builtins/backup-orchestrator/backup-orchestrator.addon.mjs +2 -2
  16. package/dist/builtins/calendars/calendars.addon.js +1 -1
  17. package/dist/builtins/calendars/calendars.addon.mjs +1 -1
  18. package/dist/builtins/camera-grid/acquire-retry.d.ts +1 -1
  19. package/dist/builtins/camera-grid/addon.d.ts +2 -2
  20. package/dist/builtins/camera-grid/grid-profiles.d.ts +1 -1
  21. package/dist/builtins/camera-grid/grid-sentry-sources.d.ts +1 -1
  22. package/dist/builtins/camera-grid/index.js +3 -3
  23. package/dist/builtins/camera-grid/index.mjs +3 -3
  24. package/dist/builtins/composer/composer.addon.js +4 -4
  25. package/dist/builtins/composer/composer.addon.mjs +4 -4
  26. package/dist/builtins/composer/existing-target.d.ts +1 -1
  27. package/dist/builtins/composer/own-field-reads.d.ts +1 -1
  28. package/dist/builtins/console-logging/index.js +2 -2
  29. package/dist/builtins/console-logging/index.mjs +2 -2
  30. package/dist/builtins/core-blocks/core-blocks.addon.js +2 -2
  31. package/dist/builtins/core-blocks/core-blocks.addon.mjs +2 -2
  32. package/dist/builtins/device-history/device-history.addon.js +2 -2
  33. package/dist/builtins/device-history/device-history.addon.mjs +2 -2
  34. package/dist/builtins/device-manager/device-aggregation.d.ts +1 -1
  35. package/dist/builtins/device-manager/device-bindings-store.d.ts +3 -3
  36. package/dist/builtins/device-manager/device-manager.addon.js +9 -9
  37. package/dist/builtins/device-manager/device-manager.addon.mjs +9 -9
  38. package/dist/builtins/device-manager/device-meta-types.d.ts +2 -2
  39. package/dist/builtins/device-manager/device-online-fallback.d.ts +1 -1
  40. package/dist/builtins/hub-forwarder/index.js +2 -2
  41. package/dist/builtins/hub-forwarder/index.mjs +2 -2
  42. package/dist/builtins/keychain/index.js +3 -3
  43. package/dist/builtins/keychain/index.mjs +3 -3
  44. package/dist/builtins/liveness-monitor/liveness-monitor.addon.js +1 -1
  45. package/dist/builtins/liveness-monitor/liveness-monitor.addon.mjs +1 -1
  46. package/dist/builtins/local-auth/local-auth.addon.js +2 -2
  47. package/dist/builtins/local-auth/local-auth.addon.mjs +2 -2
  48. package/dist/builtins/local-network/local-network.addon.js +2 -2
  49. package/dist/builtins/local-network/local-network.addon.mjs +2 -2
  50. package/dist/builtins/loki-logging/index.js +1 -1
  51. package/dist/builtins/loki-logging/index.mjs +1 -1
  52. package/dist/builtins/native-metrics/native-metrics.addon.d.ts +1 -1
  53. package/dist/builtins/native-metrics/native-metrics.addon.js +3 -3
  54. package/dist/builtins/native-metrics/native-metrics.addon.mjs +3 -3
  55. package/dist/builtins/native-metrics/thread-cpu-sampler.d.ts +1 -1
  56. package/dist/builtins/platform-probe/index.js +1 -1
  57. package/dist/builtins/platform-probe/index.mjs +1 -1
  58. package/dist/builtins/record-entries/index.js +1 -1
  59. package/dist/builtins/record-entries/index.mjs +1 -1
  60. package/dist/builtins/remote-access-orchestrator/remote-access-orchestrator.addon.js +1 -1
  61. package/dist/builtins/remote-access-orchestrator/remote-access-orchestrator.addon.mjs +1 -1
  62. package/dist/builtins/snapshot/index.js +1 -1
  63. package/dist/builtins/snapshot/index.mjs +1 -1
  64. package/dist/builtins/snapshot/snapshot-fatigue.d.ts +1 -1
  65. package/dist/builtins/snapshot/snapshot-link-url.d.ts +1 -1
  66. package/dist/builtins/sqlite-storage/filesystem-storage.addon.js +1 -1
  67. package/dist/builtins/sqlite-storage/filesystem-storage.addon.mjs +1 -1
  68. package/dist/builtins/sqlite-storage/filter-compiler.d.ts +1 -1
  69. package/dist/builtins/sqlite-storage/index.js +1 -1
  70. package/dist/builtins/sqlite-storage/index.mjs +1 -1
  71. package/dist/builtins/sqlite-storage/prefix-range.d.ts +2 -2
  72. package/dist/builtins/sqlite-storage/sqlite-settings.addon.js +2 -2
  73. package/dist/builtins/sqlite-storage/sqlite-settings.addon.mjs +2 -2
  74. package/dist/builtins/storage-orchestrator/storage-orchestrator.addon.js +1 -1
  75. package/dist/builtins/storage-orchestrator/storage-orchestrator.addon.mjs +1 -1
  76. package/dist/builtins/system-config/system-config.addon.js +3 -3
  77. package/dist/builtins/system-config/system-config.addon.mjs +280 -280
  78. package/dist/builtins/winston-logging/index.js +2 -2
  79. package/dist/builtins/winston-logging/index.mjs +2 -2
  80. package/dist/{composition-sources-BrDtOpfE.mjs → composition-sources-CC13wGKL.mjs} +1 -1
  81. package/dist/{composition-sources-BmhhDWIc.js → composition-sources-CQxrCexr.js} +1 -1
  82. package/dist/{constants-BVJrLycr.js → constants-Bt0NFXDm.js} +1 -1
  83. package/dist/{constants-xuLNi4a2.mjs → constants-DMB-ex5z.mjs} +1 -1
  84. package/dist/{device-ca-DgLZPn5R.js → device-ca-CSLMfr4Q.js} +1 -1
  85. package/dist/{device-ca-DKOZSFED.mjs → device-ca-HQKcvofS.mjs} +1 -1
  86. package/dist/{dist--v3KMKa1.js → dist-2gZWO597.js} +2215 -241
  87. package/dist/{dist-BIJXQo_j.mjs → dist-DvKEKSap.mjs} +2215 -241
  88. package/dist/file-host-worker.js +1 -1
  89. package/dist/file-host-worker.mjs +1 -1
  90. package/dist/{formatter-B7qW8bPJ.mjs → formatter-DkYZ4LXp.mjs} +1 -1
  91. package/dist/{formatter-DqAKDlvN.js → formatter-xbxeV4GD.js} +1 -1
  92. package/dist/{hub-mdns-ciao-C3NJsOvK.js → hub-mdns-ciao-Bs3cn9C1.js} +2 -2
  93. package/dist/{hub-mdns-ciao-DMFXIlMY.mjs → hub-mdns-ciao-CVf6mxIZ.mjs} +2 -2
  94. package/dist/index.js +12 -12
  95. package/dist/index.mjs +12 -12
  96. package/dist/kernel/addon-installer.d.ts +1 -1
  97. package/dist/kernel/heap-watch.d.ts +1 -1
  98. package/dist/kernel/moleculer/trpc-links.d.ts +1 -1
  99. package/dist/kernel/transport/socket-channel.d.ts +1 -1
  100. package/dist/logging/formatter.d.ts +1 -1
  101. package/dist/{restore-archive-DAEsvFY6.mjs → restore-archive-EFYeCdrG.mjs} +78 -78
  102. package/dist/{restore-archive-DpkdAuFf.js → restore-archive-_mgadWlk.js} +1 -1
  103. package/dist/{retention-DbunrLR4.mjs → retention-FFJW3-3P.mjs} +1 -1
  104. package/dist/{retention-C71dNCIh.js → retention-qugQGYuY.js} +1 -1
  105. package/dist/{wal-maintenance-CsGk4kYn.js → wal-maintenance-DbUC_wdC.js} +0 -0
  106. package/dist/{wal-maintenance-DYAJwPWu.mjs → wal-maintenance-TCW_esAc.mjs} +0 -0
  107. package/package.json +1 -1
@@ -1,9 +1,9 @@
1
1
  import { a as __toCommonJS, i as __require, n as __esmMin, o as __toESM, r as __exportAll, t as __commonJSMin } from "../../chunk-CNf5ZN-e.mjs";
2
- import { Ki as customAction, ct as ServerNameSchema, ea as hydrateSchema, ni as BaseAddon, qi as defineCustomActions, ti as errMsg, xr as shortHostname } from "../../dist-BIJXQo_j.mjs";
2
+ import { Ki as customAction, ct as ServerNameSchema, ea as hydrateSchema, ni as BaseAddon, qi as defineCustomActions, ti as errMsg, xr as shortHostname } from "../../dist-DvKEKSap.mjs";
3
3
  import { t as require_safe_buffer } from "../../safe-buffer-B1OjL1I9.mjs";
4
4
  import { C as backdatedNotBefore, S as withUtcTimeEncoding, a as KeyUsageFlags, c as Pkcs10CertificateRequest, d as SubjectKeyIdentifierExtension, f as X509Certificate$1, l as Pkcs10CertificateRequestGenerator, m as cryptoProvider, n as BasicConstraintsExtension, o as KeyUsagesExtension, p as X509CertificateGenerator, r as ExtendedKeyUsageExtension, s as PemConverter, t as AuthorityKeyIdentifierExtension } from "../../x509.es-BRiJgOvu.mjs";
5
- import { B as setProcessAgentHttpsNames, I as AGENT_HTTPS_NAMES_COLLECTION, L as AGENT_HTTPS_NAMES_COLUMNS, M as isLocalOnlyHostname, R as AgentHttpsNames, V as systemConfigRecordKinds, u as isPrivateAddress, z as getProcessAgentHttpsNames } from "../../agent-https-doVPSeiy.mjs";
6
- import { a as MESH_CA_KEY_REF, c as SERVER_AUTH_OID, i as MESH_CA_FIELD, n as DEFAULT_HUB_TLS_TCP_PORT, o as MESH_CA_SETTINGS_KEY, r as MESH_CA_COMMON_NAME, s as MESH_CA_VALIDITY_DAYS, t as CLIENT_AUTH_OID } from "../../constants-xuLNi4a2.mjs";
5
+ import { B as setProcessAgentHttpsNames, I as AGENT_HTTPS_NAMES_COLLECTION, L as AGENT_HTTPS_NAMES_COLUMNS, M as isLocalOnlyHostname, R as AgentHttpsNames, V as systemConfigRecordKinds, u as isPrivateAddress, z as getProcessAgentHttpsNames } from "../../agent-https-NP141VCW.mjs";
6
+ import { a as MESH_CA_KEY_REF, c as SERVER_AUTH_OID, i as MESH_CA_FIELD, n as DEFAULT_HUB_TLS_TCP_PORT, o as MESH_CA_SETTINGS_KEY, r as MESH_CA_COMMON_NAME, s as MESH_CA_VALIDITY_DAYS, t as CLIENT_AUTH_OID } from "../../constants-DMB-ex5z.mjs";
7
7
  import { t as require_src } from "../../src-hG4grMU4.mjs";
8
8
  import { z } from "zod";
9
9
  import { X509Certificate, createHash, createPrivateKey, randomBytes, randomInt, sign, timingSafeEqual, verify, webcrypto } from "node:crypto";
@@ -21412,8 +21412,8 @@ var require_kleur = /* @__PURE__ */ __commonJSMin(((exports, module) => {
21412
21412
  var require_utils$3 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
21413
21413
  var kleur = require_kleur();
21414
21414
  var os$17 = __require("os");
21415
- var path$39 = __require("path");
21416
- var fs$19 = __require("fs");
21415
+ var path$40 = __require("path");
21416
+ var fs$20 = __require("fs");
21417
21417
  var { TimeoutError } = require_errors$2();
21418
21418
  var lut = [];
21419
21419
  for (let i = 0; i < 256; i++) lut[i] = (i < 16 ? "0" : "") + i.toString(16);
@@ -21704,9 +21704,9 @@ var require_utils$3 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
21704
21704
  * @param {String} p - directory path
21705
21705
  */
21706
21706
  makeDirs(p) {
21707
- p.split(path$39.sep).reduce((prevPath, folder) => {
21708
- const currentPath = path$39.join(prevPath, folder, path$39.sep);
21709
- if (!fs$19.existsSync(currentPath)) fs$19.mkdirSync(currentPath);
21707
+ p.split(path$40.sep).reduce((prevPath, folder) => {
21708
+ const currentPath = path$40.join(prevPath, folder, path$40.sep);
21709
+ if (!fs$20.existsSync(currentPath)) fs$20.mkdirSync(currentPath);
21710
21710
  return currentPath;
21711
21711
  }, "");
21712
21712
  },
@@ -22931,8 +22931,8 @@ var require_csv = /* @__PURE__ */ __commonJSMin(((exports, module) => {
22931
22931
  var BaseReporter = require_base$8();
22932
22932
  var { makeDirs } = require_utils$3();
22933
22933
  var _ = require_lodash();
22934
- var path$38 = __require("path");
22935
- var fs$18 = __require("fs");
22934
+ var path$39 = __require("path");
22935
+ var fs$19 = __require("fs");
22936
22936
  var METRIC = require_constants$6();
22937
22937
  var MODE_METRIC = "metric";
22938
22938
  var MODE_LABEL = "label";
@@ -22985,7 +22985,7 @@ var require_csv = /* @__PURE__ */ __commonJSMin(((exports, module) => {
22985
22985
  this.timer = setInterval(() => this.flush(), this.opts.interval * 1e3);
22986
22986
  this.timer.unref();
22987
22987
  }
22988
- this.folder = path$38.resolve(this.opts.folder);
22988
+ this.folder = path$39.resolve(this.opts.folder);
22989
22989
  makeDirs(this.folder);
22990
22990
  }
22991
22991
  /**
@@ -23010,10 +23010,10 @@ var require_csv = /* @__PURE__ */ __commonJSMin(((exports, module) => {
23010
23010
  const metricName = this.formatMetricName(metric.name);
23011
23011
  if (this.opts.filenameFormatter) return this.opts.filenameFormatter.call(this, metricName, metric, item);
23012
23012
  switch (this.opts.mode) {
23013
- case MODE_METRIC: return path$38.join(this.folder, `${metricName}.csv`);
23013
+ case MODE_METRIC: return path$39.join(this.folder, `${metricName}.csv`);
23014
23014
  case MODE_LABEL: {
23015
23015
  const labelStr = this.labelsToStr(item.labels);
23016
- return path$38.join(this.folder, metricName, `${metricName}${labelStr ? "--" + labelStr : ""}.csv`);
23016
+ return path$39.join(this.folder, metricName, `${metricName}${labelStr ? "--" + labelStr : ""}.csv`);
23017
23017
  }
23018
23018
  }
23019
23019
  }
@@ -23034,7 +23034,7 @@ var require_csv = /* @__PURE__ */ __commonJSMin(((exports, module) => {
23034
23034
  metric.values.forEach((item) => {
23035
23035
  if (!this.lastChanges.has([metric.name, this.labelsToStr(item.labels)].join("|"))) return;
23036
23036
  const filename = this.getFilename(metric, item);
23037
- makeDirs(path$38.dirname(filename));
23037
+ makeDirs(path$39.dirname(filename));
23038
23038
  const metricName = this.formatMetricName(metric.name);
23039
23039
  let headers = ["Timestamp", "Metric"];
23040
23040
  let data = [item.timestamp, metricName];
@@ -23091,8 +23091,8 @@ var require_csv = /* @__PURE__ */ __commonJSMin(((exports, module) => {
23091
23091
  */
23092
23092
  writeRow(filename, headers, fields) {
23093
23093
  try {
23094
- if (!fs$18.existsSync(filename)) fs$18.writeFileSync(filename, headers.join(this.opts.delimiter) + this.opts.rowDelimiter);
23095
- fs$18.appendFileSync(filename, fields.join(this.opts.delimiter) + this.opts.rowDelimiter);
23094
+ if (!fs$19.existsSync(filename)) fs$19.writeFileSync(filename, headers.join(this.opts.delimiter) + this.opts.rowDelimiter);
23095
+ fs$19.appendFileSync(filename, fields.join(this.opts.delimiter) + this.opts.rowDelimiter);
23096
23096
  } catch (err) {
23097
23097
  /* istanbul ignore next */
23098
23098
  this.logger.error(`Unable to write metrics values to the '${filename}' file. Error: ${err.message}`, fields, err);
@@ -26164,7 +26164,7 @@ var require_latency = /* @__PURE__ */ __commonJSMin(((exports, module) => {
26164
26164
  //#region ../../node_modules/lru-cache/dist/commonjs/node/index.min.js
26165
26165
  var require_index_min = /* @__PURE__ */ __commonJSMin(((exports) => {
26166
26166
  var j = (c, t) => () => (t || c((t = { exports: {} }).exports, t), t.exports);
26167
- var I$2 = j((O) => {
26167
+ var I$1 = j((O) => {
26168
26168
  "use strict";
26169
26169
  Object.defineProperty(O, "__esModule", { value: !0 });
26170
26170
  O.tracing = O.metrics = void 0;
@@ -26180,7 +26180,7 @@ var require_index_min = /* @__PURE__ */ __commonJSMin(((exports) => {
26180
26180
  });
26181
26181
  Object.defineProperty(exports, "__esModule", { value: !0 });
26182
26182
  exports.LRUCache = void 0;
26183
- var g = I$2(), N = P(), C = () => g.metrics.hasSubscribers || g.tracing.hasSubscribers, k = /* @__PURE__ */ new Set(), G = typeof process == "object" && process ? process : {}, V = (c, t, e, i) => {
26183
+ var g = I$1(), N = P(), C = () => g.metrics.hasSubscribers || g.tracing.hasSubscribers, k = /* @__PURE__ */ new Set(), G = typeof process == "object" && process ? process : {}, V = (c, t, e, i) => {
26184
26184
  typeof G.emitWarning == "function" ? G.emitWarning(c, t, e, i) : console.error(`[${e}] ${t}: ${c}`);
26185
26185
  }, q = (c) => !k.has(c);
26186
26186
  var T = (c) => !!c && c === Math.floor(c) && c > 0 && isFinite(c), H = (c) => T(c) ? c <= Math.pow(2, 8) ? Uint8Array : c <= Math.pow(2, 16) ? Uint16Array : c <= Math.pow(2, 32) ? Uint32Array : c <= Number.MAX_SAFE_INTEGER ? W : null : null, W = class extends Array {
@@ -31124,7 +31124,7 @@ var require_process$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
31124
31124
  //#endregion
31125
31125
  //#region ../../node_modules/detect-libc/lib/filesystem.js
31126
31126
  var require_filesystem = /* @__PURE__ */ __commonJSMin(((exports, module) => {
31127
- var fs$17 = __require("fs");
31127
+ var fs$18 = __require("fs");
31128
31128
  var LDD_PATH = "/usr/bin/ldd";
31129
31129
  var SELF_PATH = "/proc/self/exe";
31130
31130
  var MAX_LENGTH = 2048;
@@ -31135,10 +31135,10 @@ var require_filesystem = /* @__PURE__ */ __commonJSMin(((exports, module) => {
31135
31135
  * @returns {Buffer}
31136
31136
  */
31137
31137
  var readFileSync = (path) => {
31138
- const fd = fs$17.openSync(path, "r");
31138
+ const fd = fs$18.openSync(path, "r");
31139
31139
  const buffer = Buffer.alloc(MAX_LENGTH);
31140
- const bytesRead = fs$17.readSync(fd, buffer, 0, MAX_LENGTH, 0);
31141
- fs$17.close(fd, () => {});
31140
+ const bytesRead = fs$18.readSync(fd, buffer, 0, MAX_LENGTH, 0);
31141
+ fs$18.close(fd, () => {});
31142
31142
  return buffer.subarray(0, bytesRead);
31143
31143
  };
31144
31144
  /**
@@ -31148,13 +31148,13 @@ var require_filesystem = /* @__PURE__ */ __commonJSMin(((exports, module) => {
31148
31148
  * @returns {Promise<Buffer>}
31149
31149
  */
31150
31150
  var readFile = (path) => new Promise((resolve, reject) => {
31151
- fs$17.open(path, "r", (err, fd) => {
31151
+ fs$18.open(path, "r", (err, fd) => {
31152
31152
  if (err) reject(err);
31153
31153
  else {
31154
31154
  const buffer = Buffer.alloc(MAX_LENGTH);
31155
- fs$17.read(fd, buffer, 0, MAX_LENGTH, 0, (_, bytesRead) => {
31155
+ fs$18.read(fd, buffer, 0, MAX_LENGTH, 0, (_, bytesRead) => {
31156
31156
  resolve(buffer.subarray(0, bytesRead));
31157
- fs$17.close(fd, () => {});
31157
+ fs$18.close(fd, () => {});
31158
31158
  });
31159
31159
  }
31160
31160
  });
@@ -31407,8 +31407,8 @@ var require_detect_libc = /* @__PURE__ */ __commonJSMin(((exports, module) => {
31407
31407
  //#endregion
31408
31408
  //#region ../../node_modules/node-gyp-build-optional-packages/index.js
31409
31409
  var require_node_gyp_build_optional_packages = /* @__PURE__ */ __commonJSMin(((exports, module) => {
31410
- var fs$16 = __require("fs");
31411
- var path$37 = __require("path");
31410
+ var fs$17 = __require("fs");
31411
+ var path$38 = __require("path");
31412
31412
  var url$2 = __require("url");
31413
31413
  var vars = process.config && process.config.variables || {};
31414
31414
  var prebuildsOnly = !!process.env.PREBUILDS_ONLY;
@@ -31427,27 +31427,27 @@ var require_node_gyp_build_optional_packages = /* @__PURE__ */ __commonJSMin(((e
31427
31427
  else return __require(load.path(dir));
31428
31428
  }
31429
31429
  load.path = function(dir) {
31430
- dir = path$37.resolve(dir || ".");
31430
+ dir = path$38.resolve(dir || ".");
31431
31431
  var packageName = "";
31432
31432
  try {
31433
- if (typeof __webpack_require__ === "function") packageName = __non_webpack_require__(path$37.join(dir, "package.json")).name;
31434
- else packageName = __require(path$37.join(dir, "package.json")).name;
31433
+ if (typeof __webpack_require__ === "function") packageName = __non_webpack_require__(path$38.join(dir, "package.json")).name;
31434
+ else packageName = __require(path$38.join(dir, "package.json")).name;
31435
31435
  var varName = packageName.toUpperCase().replace(/-/g, "_") + "_PREBUILD";
31436
31436
  if (process.env[varName]) dir = process.env[varName];
31437
31437
  } catch (err) {}
31438
31438
  if (!prebuildsOnly) {
31439
- var release = getFirst(path$37.join(dir, "build/Release"), matchBuild);
31439
+ var release = getFirst(path$38.join(dir, "build/Release"), matchBuild);
31440
31440
  if (release) return release;
31441
- var debug = getFirst(path$37.join(dir, "build/Debug"), matchBuild);
31441
+ var debug = getFirst(path$38.join(dir, "build/Debug"), matchBuild);
31442
31442
  if (debug) return debug;
31443
31443
  }
31444
31444
  var prebuild = resolve(dir);
31445
31445
  if (prebuild) return prebuild;
31446
- var nearby = resolve(path$37.dirname(process.execPath));
31446
+ var nearby = resolve(path$38.dirname(process.execPath));
31447
31447
  if (nearby) return nearby;
31448
31448
  var platformPackage = (packageName[0] == "@" ? "" : "@" + packageName + "/") + packageName + "-" + platform + "-" + arch;
31449
31449
  try {
31450
- return resolveFile(path$37.dirname(__require("module").createRequire(url$2.pathToFileURL(path$37.join(dir, "package.json"))).resolve(platformPackage)));
31450
+ return resolveFile(path$38.dirname(__require("module").createRequire(url$2.pathToFileURL(path$38.join(dir, "package.json"))).resolve(platformPackage)));
31451
31451
  } catch (error) {}
31452
31452
  var target = [
31453
31453
  "platform=" + platform,
@@ -31463,25 +31463,25 @@ var require_node_gyp_build_optional_packages = /* @__PURE__ */ __commonJSMin(((e
31463
31463
  ].filter(Boolean).join(" ");
31464
31464
  throw new Error("No native build was found for " + target + "\n attempted loading from: " + dir + " and package: " + platformPackage + "\n");
31465
31465
  function resolve(dir) {
31466
- var tuple = readdirSync(path$37.join(dir, "prebuilds")).map(parseTuple).filter(matchTuple(platform, arch)).sort(compareTuples)[0];
31466
+ var tuple = readdirSync(path$38.join(dir, "prebuilds")).map(parseTuple).filter(matchTuple(platform, arch)).sort(compareTuples)[0];
31467
31467
  if (!tuple) return;
31468
- return resolveFile(path$37.join(dir, "prebuilds", tuple.name));
31468
+ return resolveFile(path$38.join(dir, "prebuilds", tuple.name));
31469
31469
  }
31470
31470
  function resolveFile(prebuilds) {
31471
31471
  var winner = readdirSync(prebuilds).map(parseTags).filter(matchTags(runtime, abi)).sort(compareTags(runtime))[0];
31472
- if (winner) return path$37.join(prebuilds, winner.file);
31472
+ if (winner) return path$38.join(prebuilds, winner.file);
31473
31473
  }
31474
31474
  };
31475
31475
  function readdirSync(dir) {
31476
31476
  try {
31477
- return fs$16.readdirSync(dir);
31477
+ return fs$17.readdirSync(dir);
31478
31478
  } catch (err) {
31479
31479
  return [];
31480
31480
  }
31481
31481
  }
31482
31482
  function getFirst(dir, filter) {
31483
31483
  var files = readdirSync(dir).filter(filter);
31484
- return files[0] && path$37.join(dir, files[0]);
31484
+ return files[0] && path$38.join(dir, files[0]);
31485
31485
  }
31486
31486
  function matchBuild(name) {
31487
31487
  return /\.node$/.test(name);
@@ -36953,8 +36953,8 @@ var require_debug = /* @__PURE__ */ __commonJSMin(((exports, module) => {
36953
36953
  var require_file$2 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
36954
36954
  var FormattedLogger = require_formatted();
36955
36955
  var _ = require_lodash();
36956
- var fs$15 = __require("fs/promises");
36957
- var path$36 = __require("path");
36956
+ var fs$16 = __require("fs/promises");
36957
+ var path$37 = __require("path");
36958
36958
  var os$11 = __require("os");
36959
36959
  var { makeDirs } = require_utils$3();
36960
36960
  /**
@@ -37000,7 +37000,7 @@ var require_file$2 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
37000
37000
  */
37001
37001
  init(loggerFactory) {
37002
37002
  super.init(loggerFactory);
37003
- this.logFolder = path$36.resolve(this.render(this.opts.folder, {
37003
+ this.logFolder = path$37.resolve(this.render(this.opts.folder, {
37004
37004
  nodeID: this.broker.nodeID,
37005
37005
  namespace: this.broker.namespace
37006
37006
  }));
@@ -37025,7 +37025,7 @@ var require_file$2 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
37025
37025
  */
37026
37026
  getFilename() {
37027
37027
  const date = (/* @__PURE__ */ new Date()).toISOString().substring(0, 10);
37028
- return path$36.join(this.logFolder, this.render(this.opts.filename, {
37028
+ return path$37.join(this.logFolder, this.render(this.opts.filename, {
37029
37029
  date,
37030
37030
  nodeID: this.broker.nodeID,
37031
37031
  namespace: this.broker.namespace
@@ -37057,7 +37057,7 @@ var require_file$2 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
37057
37057
  const rows = Array.from(this.queue);
37058
37058
  this.queue.length = 0;
37059
37059
  const buf = rows.join(this.opts.eol) + this.opts.eol;
37060
- return fs$15.appendFile(filename, buf).catch((err) => {
37060
+ return fs$16.appendFile(filename, buf).catch((err) => {
37061
37061
  /* istanbul ignore next */
37062
37062
  console.debug("Unable to write log file:", filename, err);
37063
37063
  });
@@ -37406,7 +37406,7 @@ var require_layouts = /* @__PURE__ */ __commonJSMin(((exports, module) => {
37406
37406
  var dateFormat = require_lib$5();
37407
37407
  var os$10 = __require("os");
37408
37408
  var util$3 = __require("util");
37409
- var path$35 = __require("path");
37409
+ var path$36 = __require("path");
37410
37410
  var styles = {
37411
37411
  bold: [1, 22],
37412
37412
  italic: [3, 23],
@@ -37572,8 +37572,8 @@ var require_layouts = /* @__PURE__ */ __commonJSMin(((exports, module) => {
37572
37572
  let filename = loggingEvent.fileName || "";
37573
37573
  if (specifier) {
37574
37574
  const fileDepth = parseInt(specifier, 10);
37575
- const fileList = filename.split(path$35.sep);
37576
- if (fileList.length > fileDepth) filename = fileList.slice(-fileDepth).join(path$35.sep);
37575
+ const fileList = filename.split(path$36.sep);
37576
+ if (fileList.length > fileDepth) filename = fileList.slice(-fileDepth).join(path$36.sep);
37577
37577
  }
37578
37578
  return filename;
37579
37579
  }
@@ -38575,7 +38575,7 @@ var require_clone = /* @__PURE__ */ __commonJSMin(((exports, module) => {
38575
38575
  //#endregion
38576
38576
  //#region ../../node_modules/graceful-fs/graceful-fs.js
38577
38577
  var require_graceful_fs = /* @__PURE__ */ __commonJSMin(((exports, module) => {
38578
- var fs$14 = __require("fs");
38578
+ var fs$15 = __require("fs");
38579
38579
  var polyfills = require_polyfills();
38580
38580
  var legacy = require_legacy_streams();
38581
38581
  var clone = require_clone();
@@ -38604,36 +38604,36 @@ var require_graceful_fs = /* @__PURE__ */ __commonJSMin(((exports, module) => {
38604
38604
  m = "GFS4: " + m.split(/\n/).join("\nGFS4: ");
38605
38605
  console.error(m);
38606
38606
  };
38607
- if (!fs$14[gracefulQueue]) {
38608
- publishQueue(fs$14, global[gracefulQueue] || []);
38609
- fs$14.close = (function(fs$close) {
38607
+ if (!fs$15[gracefulQueue]) {
38608
+ publishQueue(fs$15, global[gracefulQueue] || []);
38609
+ fs$15.close = (function(fs$close) {
38610
38610
  function close(fd, cb) {
38611
- return fs$close.call(fs$14, fd, function(err) {
38611
+ return fs$close.call(fs$15, fd, function(err) {
38612
38612
  if (!err) resetQueue();
38613
38613
  if (typeof cb === "function") cb.apply(this, arguments);
38614
38614
  });
38615
38615
  }
38616
38616
  Object.defineProperty(close, previousSymbol, { value: fs$close });
38617
38617
  return close;
38618
- })(fs$14.close);
38619
- fs$14.closeSync = (function(fs$closeSync) {
38618
+ })(fs$15.close);
38619
+ fs$15.closeSync = (function(fs$closeSync) {
38620
38620
  function closeSync(fd) {
38621
- fs$closeSync.apply(fs$14, arguments);
38621
+ fs$closeSync.apply(fs$15, arguments);
38622
38622
  resetQueue();
38623
38623
  }
38624
38624
  Object.defineProperty(closeSync, previousSymbol, { value: fs$closeSync });
38625
38625
  return closeSync;
38626
- })(fs$14.closeSync);
38626
+ })(fs$15.closeSync);
38627
38627
  if (/\bgfs4\b/i.test(process.env.NODE_DEBUG || "")) process.on("exit", function() {
38628
- debug(fs$14[gracefulQueue]);
38629
- __require("assert").equal(fs$14[gracefulQueue].length, 0);
38628
+ debug(fs$15[gracefulQueue]);
38629
+ __require("assert").equal(fs$15[gracefulQueue].length, 0);
38630
38630
  });
38631
38631
  }
38632
- if (!global[gracefulQueue]) publishQueue(global, fs$14[gracefulQueue]);
38633
- module.exports = patch(clone(fs$14));
38634
- if (process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH && !fs$14.__patched) {
38635
- module.exports = patch(fs$14);
38636
- fs$14.__patched = true;
38632
+ if (!global[gracefulQueue]) publishQueue(global, fs$15[gracefulQueue]);
38633
+ module.exports = patch(clone(fs$15));
38634
+ if (process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH && !fs$15.__patched) {
38635
+ module.exports = patch(fs$15);
38636
+ fs$15.__patched = true;
38637
38637
  }
38638
38638
  function patch(fs) {
38639
38639
  polyfills(fs);
@@ -38888,23 +38888,23 @@ var require_graceful_fs = /* @__PURE__ */ __commonJSMin(((exports, module) => {
38888
38888
  }
38889
38889
  function enqueue(elem) {
38890
38890
  debug("ENQUEUE", elem[0].name, elem[1]);
38891
- fs$14[gracefulQueue].push(elem);
38891
+ fs$15[gracefulQueue].push(elem);
38892
38892
  retry();
38893
38893
  }
38894
38894
  var retryTimer;
38895
38895
  function resetQueue() {
38896
38896
  var now = Date.now();
38897
- for (var i = 0; i < fs$14[gracefulQueue].length; ++i) if (fs$14[gracefulQueue][i].length > 2) {
38898
- fs$14[gracefulQueue][i][3] = now;
38899
- fs$14[gracefulQueue][i][4] = now;
38897
+ for (var i = 0; i < fs$15[gracefulQueue].length; ++i) if (fs$15[gracefulQueue][i].length > 2) {
38898
+ fs$15[gracefulQueue][i][3] = now;
38899
+ fs$15[gracefulQueue][i][4] = now;
38900
38900
  }
38901
38901
  retry();
38902
38902
  }
38903
38903
  function retry() {
38904
38904
  clearTimeout(retryTimer);
38905
38905
  retryTimer = void 0;
38906
- if (fs$14[gracefulQueue].length === 0) return;
38907
- var elem = fs$14[gracefulQueue].shift();
38906
+ if (fs$15[gracefulQueue].length === 0) return;
38907
+ var elem = fs$15[gracefulQueue].shift();
38908
38908
  var fn = elem[0];
38909
38909
  var args = elem[1];
38910
38910
  var err = elem[2];
@@ -38923,7 +38923,7 @@ var require_graceful_fs = /* @__PURE__ */ __commonJSMin(((exports, module) => {
38923
38923
  if (sinceAttempt >= Math.min(sinceStart * 1.2, 100)) {
38924
38924
  debug("RETRY", fn.name, args);
38925
38925
  fn.apply(null, args.concat([startTime]));
38926
- } else fs$14[gracefulQueue].push(elem);
38926
+ } else fs$15[gracefulQueue].push(elem);
38927
38927
  }
38928
38928
  if (retryTimer === void 0) retryTimer = setTimeout(retry, 0);
38929
38929
  }
@@ -39011,9 +39011,9 @@ var require_fs = /* @__PURE__ */ __commonJSMin(((exports) => {
39011
39011
  //#endregion
39012
39012
  //#region ../../node_modules/streamroller/node_modules/fs-extra/lib/mkdirs/win32.js
39013
39013
  var require_win32 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
39014
- var path$34 = __require("path");
39014
+ var path$35 = __require("path");
39015
39015
  function getRootPath(p) {
39016
- p = path$34.normalize(path$34.resolve(p)).split(path$34.sep);
39016
+ p = path$35.normalize(path$35.resolve(p)).split(path$35.sep);
39017
39017
  if (p.length > 0) return p[0];
39018
39018
  return null;
39019
39019
  }
@@ -39032,7 +39032,7 @@ var require_win32 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
39032
39032
  //#region ../../node_modules/streamroller/node_modules/fs-extra/lib/mkdirs/mkdirs.js
39033
39033
  var require_mkdirs$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
39034
39034
  var fs = require_graceful_fs();
39035
- var path$33 = __require("path");
39035
+ var path$34 = __require("path");
39036
39036
  var invalidWin32Path = require_win32().invalidWin32Path;
39037
39037
  var o777 = parseInt("0777", 8);
39038
39038
  function mkdirs(p, opts, callback, made) {
@@ -39050,7 +39050,7 @@ var require_mkdirs$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
39050
39050
  if (mode === void 0) mode = o777 & ~process.umask();
39051
39051
  if (!made) made = null;
39052
39052
  callback = callback || function() {};
39053
- p = path$33.resolve(p);
39053
+ p = path$34.resolve(p);
39054
39054
  xfs.mkdir(p, mode, (er) => {
39055
39055
  if (!er) {
39056
39056
  made = made || p;
@@ -39058,8 +39058,8 @@ var require_mkdirs$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
39058
39058
  }
39059
39059
  switch (er.code) {
39060
39060
  case "ENOENT":
39061
- if (path$33.dirname(p) === p) return callback(er);
39062
- mkdirs(path$33.dirname(p), opts, (er, made) => {
39061
+ if (path$34.dirname(p) === p) return callback(er);
39062
+ mkdirs(path$34.dirname(p), opts, (er, made) => {
39063
39063
  if (er) callback(er, made);
39064
39064
  else mkdirs(p, opts, callback, made);
39065
39065
  });
@@ -39079,7 +39079,7 @@ var require_mkdirs$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
39079
39079
  //#region ../../node_modules/streamroller/node_modules/fs-extra/lib/mkdirs/mkdirs-sync.js
39080
39080
  var require_mkdirs_sync = /* @__PURE__ */ __commonJSMin(((exports, module) => {
39081
39081
  var fs = require_graceful_fs();
39082
- var path$32 = __require("path");
39082
+ var path$33 = __require("path");
39083
39083
  var invalidWin32Path = require_win32().invalidWin32Path;
39084
39084
  var o777 = parseInt("0777", 8);
39085
39085
  function mkdirsSync(p, opts, made) {
@@ -39093,14 +39093,14 @@ var require_mkdirs_sync = /* @__PURE__ */ __commonJSMin(((exports, module) => {
39093
39093
  }
39094
39094
  if (mode === void 0) mode = o777 & ~process.umask();
39095
39095
  if (!made) made = null;
39096
- p = path$32.resolve(p);
39096
+ p = path$33.resolve(p);
39097
39097
  try {
39098
39098
  xfs.mkdirSync(p, mode);
39099
39099
  made = made || p;
39100
39100
  } catch (err0) {
39101
39101
  if (err0.code === "ENOENT") {
39102
- if (path$32.dirname(p) === p) throw err0;
39103
- made = mkdirsSync(path$32.dirname(p), opts, made);
39102
+ if (path$33.dirname(p) === p) throw err0;
39103
+ made = mkdirsSync(path$33.dirname(p), opts, made);
39104
39104
  mkdirsSync(p, opts, made);
39105
39105
  } else {
39106
39106
  let stat;
@@ -39136,10 +39136,10 @@ var require_mkdirs = /* @__PURE__ */ __commonJSMin(((exports, module) => {
39136
39136
  var require_utimes = /* @__PURE__ */ __commonJSMin(((exports, module) => {
39137
39137
  var fs = require_graceful_fs();
39138
39138
  var os$9 = __require("os");
39139
- var path$31 = __require("path");
39139
+ var path$32 = __require("path");
39140
39140
  function hasMillisResSync() {
39141
- let tmpfile = path$31.join("millis-test-sync" + Date.now().toString() + Math.random().toString().slice(2));
39142
- tmpfile = path$31.join(os$9.tmpdir(), tmpfile);
39141
+ let tmpfile = path$32.join("millis-test-sync" + Date.now().toString() + Math.random().toString().slice(2));
39142
+ tmpfile = path$32.join(os$9.tmpdir(), tmpfile);
39143
39143
  const d = /* @__PURE__ */ new Date(1435410243862);
39144
39144
  fs.writeFileSync(tmpfile, "https://github.com/jprichardson/node-fs-extra/pull/141");
39145
39145
  const fd = fs.openSync(tmpfile, "r+");
@@ -39148,8 +39148,8 @@ var require_utimes = /* @__PURE__ */ __commonJSMin(((exports, module) => {
39148
39148
  return fs.statSync(tmpfile).mtime > 1435410243e3;
39149
39149
  }
39150
39150
  function hasMillisRes(callback) {
39151
- let tmpfile = path$31.join("millis-test" + Date.now().toString() + Math.random().toString().slice(2));
39152
- tmpfile = path$31.join(os$9.tmpdir(), tmpfile);
39151
+ let tmpfile = path$32.join("millis-test" + Date.now().toString() + Math.random().toString().slice(2));
39152
+ tmpfile = path$32.join(os$9.tmpdir(), tmpfile);
39153
39153
  const d = /* @__PURE__ */ new Date(1435410243862);
39154
39154
  fs.writeFile(tmpfile, "https://github.com/jprichardson/node-fs-extra/pull/141", (err) => {
39155
39155
  if (err) return callback(err);
@@ -39200,7 +39200,7 @@ var require_utimes = /* @__PURE__ */ __commonJSMin(((exports, module) => {
39200
39200
  //#region ../../node_modules/streamroller/node_modules/fs-extra/lib/util/stat.js
39201
39201
  var require_stat = /* @__PURE__ */ __commonJSMin(((exports, module) => {
39202
39202
  var fs = require_graceful_fs();
39203
- var path$30 = __require("path");
39203
+ var path$31 = __require("path");
39204
39204
  var NODE_VERSION_MAJOR_WITH_BIGINT = 10;
39205
39205
  var NODE_VERSION_MINOR_WITH_BIGINT = 5;
39206
39206
  var NODE_VERSION_PATCH_WITH_BIGINT = 0;
@@ -39293,9 +39293,9 @@ var require_stat = /* @__PURE__ */ __commonJSMin(((exports, module) => {
39293
39293
  };
39294
39294
  }
39295
39295
  function checkParentPaths(src, srcStat, dest, funcName, cb) {
39296
- const srcParent = path$30.resolve(path$30.dirname(src));
39297
- const destParent = path$30.resolve(path$30.dirname(dest));
39298
- if (destParent === srcParent || destParent === path$30.parse(destParent).root) return cb();
39296
+ const srcParent = path$31.resolve(path$31.dirname(src));
39297
+ const destParent = path$31.resolve(path$31.dirname(dest));
39298
+ if (destParent === srcParent || destParent === path$31.parse(destParent).root) return cb();
39299
39299
  if (nodeSupportsBigInt()) fs.stat(destParent, { bigint: true }, (err, destStat) => {
39300
39300
  if (err) {
39301
39301
  if (err.code === "ENOENT") return cb();
@@ -39314,9 +39314,9 @@ var require_stat = /* @__PURE__ */ __commonJSMin(((exports, module) => {
39314
39314
  });
39315
39315
  }
39316
39316
  function checkParentPathsSync(src, srcStat, dest, funcName) {
39317
- const srcParent = path$30.resolve(path$30.dirname(src));
39318
- const destParent = path$30.resolve(path$30.dirname(dest));
39319
- if (destParent === srcParent || destParent === path$30.parse(destParent).root) return;
39317
+ const srcParent = path$31.resolve(path$31.dirname(src));
39318
+ const destParent = path$31.resolve(path$31.dirname(dest));
39319
+ if (destParent === srcParent || destParent === path$31.parse(destParent).root) return;
39320
39320
  let destStat;
39321
39321
  try {
39322
39322
  if (nodeSupportsBigInt()) destStat = fs.statSync(destParent, { bigint: true });
@@ -39329,8 +39329,8 @@ var require_stat = /* @__PURE__ */ __commonJSMin(((exports, module) => {
39329
39329
  return checkParentPathsSync(src, srcStat, destParent, funcName);
39330
39330
  }
39331
39331
  function isSrcSubdir(src, dest) {
39332
- const srcArr = path$30.resolve(src).split(path$30.sep).filter((i) => i);
39333
- const destArr = path$30.resolve(dest).split(path$30.sep).filter((i) => i);
39332
+ const srcArr = path$31.resolve(src).split(path$31.sep).filter((i) => i);
39333
+ const destArr = path$31.resolve(dest).split(path$31.sep).filter((i) => i);
39334
39334
  return srcArr.reduce((acc, cur, i) => acc && destArr[i] === cur, true);
39335
39335
  }
39336
39336
  function errMsg(src, dest, funcName) {
@@ -39360,7 +39360,7 @@ var require_buffer = /* @__PURE__ */ __commonJSMin(((exports, module) => {
39360
39360
  //#region ../../node_modules/streamroller/node_modules/fs-extra/lib/copy-sync/copy-sync.js
39361
39361
  var require_copy_sync$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
39362
39362
  var fs = require_graceful_fs();
39363
- var path$29 = __require("path");
39363
+ var path$30 = __require("path");
39364
39364
  var mkdirpSync = require_mkdirs().mkdirsSync;
39365
39365
  var utimesSync = require_utimes().utimesMillisSync;
39366
39366
  var stat = require_stat();
@@ -39377,7 +39377,7 @@ var require_copy_sync$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
39377
39377
  }
39378
39378
  function handleFilterAndCopy(destStat, src, dest, opts) {
39379
39379
  if (opts.filter && !opts.filter(src, dest)) return;
39380
- const destParent = path$29.dirname(dest);
39380
+ const destParent = path$30.dirname(dest);
39381
39381
  if (!fs.existsSync(destParent)) mkdirpSync(destParent);
39382
39382
  return startCopy(destStat, src, dest, opts);
39383
39383
  }
@@ -39439,14 +39439,14 @@ var require_copy_sync$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
39439
39439
  fs.readdirSync(src).forEach((item) => copyDirItem(item, src, dest, opts));
39440
39440
  }
39441
39441
  function copyDirItem(item, src, dest, opts) {
39442
- const srcItem = path$29.join(src, item);
39443
- const destItem = path$29.join(dest, item);
39442
+ const srcItem = path$30.join(src, item);
39443
+ const destItem = path$30.join(dest, item);
39444
39444
  const { destStat } = stat.checkPathsSync(srcItem, destItem, "copy");
39445
39445
  return startCopy(destStat, srcItem, destItem, opts);
39446
39446
  }
39447
39447
  function onLink(destStat, src, dest, opts) {
39448
39448
  let resolvedSrc = fs.readlinkSync(src);
39449
- if (opts.dereference) resolvedSrc = path$29.resolve(process.cwd(), resolvedSrc);
39449
+ if (opts.dereference) resolvedSrc = path$30.resolve(process.cwd(), resolvedSrc);
39450
39450
  if (!destStat) return fs.symlinkSync(resolvedSrc, dest);
39451
39451
  else {
39452
39452
  let resolvedDest;
@@ -39456,7 +39456,7 @@ var require_copy_sync$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
39456
39456
  if (err.code === "EINVAL" || err.code === "UNKNOWN") return fs.symlinkSync(resolvedSrc, dest);
39457
39457
  throw err;
39458
39458
  }
39459
- if (opts.dereference) resolvedDest = path$29.resolve(process.cwd(), resolvedDest);
39459
+ if (opts.dereference) resolvedDest = path$30.resolve(process.cwd(), resolvedDest);
39460
39460
  if (stat.isSrcSubdir(resolvedSrc, resolvedDest)) throw new Error(`Cannot copy '${resolvedSrc}' to a subdirectory of itself, '${resolvedDest}'.`);
39461
39461
  if (fs.statSync(dest).isDirectory() && stat.isSrcSubdir(resolvedDest, resolvedSrc)) throw new Error(`Cannot overwrite '${resolvedDest}' with '${resolvedSrc}'.`);
39462
39462
  return copyLink(resolvedSrc, dest);
@@ -39490,7 +39490,7 @@ var require_path_exists = /* @__PURE__ */ __commonJSMin(((exports, module) => {
39490
39490
  //#region ../../node_modules/streamroller/node_modules/fs-extra/lib/copy/copy.js
39491
39491
  var require_copy$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
39492
39492
  var fs = require_graceful_fs();
39493
- var path$28 = __require("path");
39493
+ var path$29 = __require("path");
39494
39494
  var mkdirp = require_mkdirs().mkdirs;
39495
39495
  var pathExists = require_path_exists().pathExists;
39496
39496
  var utimes = require_utimes().utimesMillis;
@@ -39517,7 +39517,7 @@ var require_copy$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
39517
39517
  });
39518
39518
  }
39519
39519
  function checkParentDir(destStat, src, dest, opts, cb) {
39520
- const destParent = path$28.dirname(dest);
39520
+ const destParent = path$29.dirname(dest);
39521
39521
  pathExists(destParent, (err, dirExists) => {
39522
39522
  if (err) return cb(err);
39523
39523
  if (dirExists) return startCopy(destStat, src, dest, opts, cb);
@@ -39604,8 +39604,8 @@ var require_copy$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
39604
39604
  return copyDirItem(items, item, src, dest, opts, cb);
39605
39605
  }
39606
39606
  function copyDirItem(items, item, src, dest, opts, cb) {
39607
- const srcItem = path$28.join(src, item);
39608
- const destItem = path$28.join(dest, item);
39607
+ const srcItem = path$29.join(src, item);
39608
+ const destItem = path$29.join(dest, item);
39609
39609
  stat.checkPaths(srcItem, destItem, "copy", (err, stats) => {
39610
39610
  if (err) return cb(err);
39611
39611
  const { destStat } = stats;
@@ -39618,14 +39618,14 @@ var require_copy$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
39618
39618
  function onLink(destStat, src, dest, opts, cb) {
39619
39619
  fs.readlink(src, (err, resolvedSrc) => {
39620
39620
  if (err) return cb(err);
39621
- if (opts.dereference) resolvedSrc = path$28.resolve(process.cwd(), resolvedSrc);
39621
+ if (opts.dereference) resolvedSrc = path$29.resolve(process.cwd(), resolvedSrc);
39622
39622
  if (!destStat) return fs.symlink(resolvedSrc, dest, cb);
39623
39623
  else fs.readlink(dest, (err, resolvedDest) => {
39624
39624
  if (err) {
39625
39625
  if (err.code === "EINVAL" || err.code === "UNKNOWN") return fs.symlink(resolvedSrc, dest, cb);
39626
39626
  return cb(err);
39627
39627
  }
39628
- if (opts.dereference) resolvedDest = path$28.resolve(process.cwd(), resolvedDest);
39628
+ if (opts.dereference) resolvedDest = path$29.resolve(process.cwd(), resolvedDest);
39629
39629
  if (stat.isSrcSubdir(resolvedSrc, resolvedDest)) return cb(/* @__PURE__ */ new Error(`Cannot copy '${resolvedSrc}' to a subdirectory of itself, '${resolvedDest}'.`));
39630
39630
  if (destStat.isDirectory() && stat.isSrcSubdir(resolvedDest, resolvedSrc)) return cb(/* @__PURE__ */ new Error(`Cannot overwrite '${resolvedDest}' with '${resolvedSrc}'.`));
39631
39631
  return copyLink(resolvedSrc, dest, cb);
@@ -39650,7 +39650,7 @@ var require_copy = /* @__PURE__ */ __commonJSMin(((exports, module) => {
39650
39650
  //#region ../../node_modules/streamroller/node_modules/fs-extra/lib/remove/rimraf.js
39651
39651
  var require_rimraf = /* @__PURE__ */ __commonJSMin(((exports, module) => {
39652
39652
  var fs = require_graceful_fs();
39653
- var path$27 = __require("path");
39653
+ var path$28 = __require("path");
39654
39654
  var assert$2 = __require("assert");
39655
39655
  var isWindows = process.platform === "win32";
39656
39656
  function defaults(options) {
@@ -39765,7 +39765,7 @@ var require_rimraf = /* @__PURE__ */ __commonJSMin(((exports, module) => {
39765
39765
  let errState;
39766
39766
  if (n === 0) return options.rmdir(p, cb);
39767
39767
  files.forEach((f) => {
39768
- rimraf(path$27.join(p, f), options, (er) => {
39768
+ rimraf(path$28.join(p, f), options, (er) => {
39769
39769
  if (errState) return;
39770
39770
  if (er) return cb(errState = er);
39771
39771
  if (--n === 0) options.rmdir(p, cb);
@@ -39812,7 +39812,7 @@ var require_rimraf = /* @__PURE__ */ __commonJSMin(((exports, module) => {
39812
39812
  function rmkidsSync(p, options) {
39813
39813
  assert$2(p);
39814
39814
  assert$2(options);
39815
- options.readdirSync(p).forEach((f) => rimrafSync(path$27.join(p, f), options));
39815
+ options.readdirSync(p).forEach((f) => rimrafSync(path$28.join(p, f), options));
39816
39816
  if (isWindows) {
39817
39817
  const startTime = Date.now();
39818
39818
  do
@@ -39840,14 +39840,14 @@ var require_remove = /* @__PURE__ */ __commonJSMin(((exports, module) => {
39840
39840
  var require_empty = /* @__PURE__ */ __commonJSMin(((exports, module) => {
39841
39841
  var u = require_universalify().fromCallback;
39842
39842
  var fs = require_graceful_fs();
39843
- var path$26 = __require("path");
39843
+ var path$27 = __require("path");
39844
39844
  var mkdir = require_mkdirs();
39845
39845
  var remove = require_remove();
39846
39846
  var emptyDir = u(function emptyDir(dir, callback) {
39847
39847
  callback = callback || function() {};
39848
39848
  fs.readdir(dir, (err, items) => {
39849
39849
  if (err) return mkdir.mkdirs(dir, callback);
39850
- items = items.map((item) => path$26.join(dir, item));
39850
+ items = items.map((item) => path$27.join(dir, item));
39851
39851
  deleteItem();
39852
39852
  function deleteItem() {
39853
39853
  const item = items.pop();
@@ -39867,7 +39867,7 @@ var require_empty = /* @__PURE__ */ __commonJSMin(((exports, module) => {
39867
39867
  return mkdir.mkdirsSync(dir);
39868
39868
  }
39869
39869
  items.forEach((item) => {
39870
- item = path$26.join(dir, item);
39870
+ item = path$27.join(dir, item);
39871
39871
  remove.removeSync(item);
39872
39872
  });
39873
39873
  }
@@ -39882,7 +39882,7 @@ var require_empty = /* @__PURE__ */ __commonJSMin(((exports, module) => {
39882
39882
  //#region ../../node_modules/streamroller/node_modules/fs-extra/lib/ensure/file.js
39883
39883
  var require_file$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
39884
39884
  var u = require_universalify().fromCallback;
39885
- var path$25 = __require("path");
39885
+ var path$26 = __require("path");
39886
39886
  var fs = require_graceful_fs();
39887
39887
  var mkdir = require_mkdirs();
39888
39888
  var pathExists = require_path_exists().pathExists;
@@ -39895,7 +39895,7 @@ var require_file$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
39895
39895
  }
39896
39896
  fs.stat(file, (err, stats) => {
39897
39897
  if (!err && stats.isFile()) return callback();
39898
- const dir = path$25.dirname(file);
39898
+ const dir = path$26.dirname(file);
39899
39899
  pathExists(dir, (err, dirExists) => {
39900
39900
  if (err) return callback(err);
39901
39901
  if (dirExists) return makeFile();
@@ -39912,7 +39912,7 @@ var require_file$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
39912
39912
  stats = fs.statSync(file);
39913
39913
  } catch (e) {}
39914
39914
  if (stats && stats.isFile()) return;
39915
- const dir = path$25.dirname(file);
39915
+ const dir = path$26.dirname(file);
39916
39916
  if (!fs.existsSync(dir)) mkdir.mkdirsSync(dir);
39917
39917
  fs.writeFileSync(file, "");
39918
39918
  }
@@ -39925,7 +39925,7 @@ var require_file$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
39925
39925
  //#region ../../node_modules/streamroller/node_modules/fs-extra/lib/ensure/link.js
39926
39926
  var require_link = /* @__PURE__ */ __commonJSMin(((exports, module) => {
39927
39927
  var u = require_universalify().fromCallback;
39928
- var path$24 = __require("path");
39928
+ var path$25 = __require("path");
39929
39929
  var fs = require_graceful_fs();
39930
39930
  var mkdir = require_mkdirs();
39931
39931
  var pathExists = require_path_exists().pathExists;
@@ -39944,7 +39944,7 @@ var require_link = /* @__PURE__ */ __commonJSMin(((exports, module) => {
39944
39944
  err.message = err.message.replace("lstat", "ensureLink");
39945
39945
  return callback(err);
39946
39946
  }
39947
- const dir = path$24.dirname(dstpath);
39947
+ const dir = path$25.dirname(dstpath);
39948
39948
  pathExists(dir, (err, dirExists) => {
39949
39949
  if (err) return callback(err);
39950
39950
  if (dirExists) return makeLink(srcpath, dstpath);
@@ -39964,7 +39964,7 @@ var require_link = /* @__PURE__ */ __commonJSMin(((exports, module) => {
39964
39964
  err.message = err.message.replace("lstat", "ensureLink");
39965
39965
  throw err;
39966
39966
  }
39967
- const dir = path$24.dirname(dstpath);
39967
+ const dir = path$25.dirname(dstpath);
39968
39968
  if (fs.existsSync(dir)) return fs.linkSync(srcpath, dstpath);
39969
39969
  mkdir.mkdirsSync(dir);
39970
39970
  return fs.linkSync(srcpath, dstpath);
@@ -39977,7 +39977,7 @@ var require_link = /* @__PURE__ */ __commonJSMin(((exports, module) => {
39977
39977
  //#endregion
39978
39978
  //#region ../../node_modules/streamroller/node_modules/fs-extra/lib/ensure/symlink-paths.js
39979
39979
  var require_symlink_paths = /* @__PURE__ */ __commonJSMin(((exports, module) => {
39980
- var path$23 = __require("path");
39980
+ var path$24 = __require("path");
39981
39981
  var fs = require_graceful_fs();
39982
39982
  var pathExists = require_path_exists().pathExists;
39983
39983
  /**
@@ -40002,7 +40002,7 @@ var require_symlink_paths = /* @__PURE__ */ __commonJSMin(((exports, module) =>
40002
40002
  * the ability to pass in `relative to current working direcotry` paths.
40003
40003
  */
40004
40004
  function symlinkPaths(srcpath, dstpath, callback) {
40005
- if (path$23.isAbsolute(srcpath)) return fs.lstat(srcpath, (err) => {
40005
+ if (path$24.isAbsolute(srcpath)) return fs.lstat(srcpath, (err) => {
40006
40006
  if (err) {
40007
40007
  err.message = err.message.replace("lstat", "ensureSymlink");
40008
40008
  return callback(err);
@@ -40013,8 +40013,8 @@ var require_symlink_paths = /* @__PURE__ */ __commonJSMin(((exports, module) =>
40013
40013
  });
40014
40014
  });
40015
40015
  else {
40016
- const dstdir = path$23.dirname(dstpath);
40017
- const relativeToDst = path$23.join(dstdir, srcpath);
40016
+ const dstdir = path$24.dirname(dstpath);
40017
+ const relativeToDst = path$24.join(dstdir, srcpath);
40018
40018
  return pathExists(relativeToDst, (err, exists) => {
40019
40019
  if (err) return callback(err);
40020
40020
  if (exists) return callback(null, {
@@ -40028,7 +40028,7 @@ var require_symlink_paths = /* @__PURE__ */ __commonJSMin(((exports, module) =>
40028
40028
  }
40029
40029
  return callback(null, {
40030
40030
  "toCwd": srcpath,
40031
- "toDst": path$23.relative(dstdir, srcpath)
40031
+ "toDst": path$24.relative(dstdir, srcpath)
40032
40032
  });
40033
40033
  });
40034
40034
  });
@@ -40036,7 +40036,7 @@ var require_symlink_paths = /* @__PURE__ */ __commonJSMin(((exports, module) =>
40036
40036
  }
40037
40037
  function symlinkPathsSync(srcpath, dstpath) {
40038
40038
  let exists;
40039
- if (path$23.isAbsolute(srcpath)) {
40039
+ if (path$24.isAbsolute(srcpath)) {
40040
40040
  exists = fs.existsSync(srcpath);
40041
40041
  if (!exists) throw new Error("absolute srcpath does not exist");
40042
40042
  return {
@@ -40044,8 +40044,8 @@ var require_symlink_paths = /* @__PURE__ */ __commonJSMin(((exports, module) =>
40044
40044
  "toDst": srcpath
40045
40045
  };
40046
40046
  } else {
40047
- const dstdir = path$23.dirname(dstpath);
40048
- const relativeToDst = path$23.join(dstdir, srcpath);
40047
+ const dstdir = path$24.dirname(dstpath);
40048
+ const relativeToDst = path$24.join(dstdir, srcpath);
40049
40049
  exists = fs.existsSync(relativeToDst);
40050
40050
  if (exists) return {
40051
40051
  "toCwd": relativeToDst,
@@ -40056,7 +40056,7 @@ var require_symlink_paths = /* @__PURE__ */ __commonJSMin(((exports, module) =>
40056
40056
  if (!exists) throw new Error("relative srcpath does not exist");
40057
40057
  return {
40058
40058
  "toCwd": srcpath,
40059
- "toDst": path$23.relative(dstdir, srcpath)
40059
+ "toDst": path$24.relative(dstdir, srcpath)
40060
40060
  };
40061
40061
  }
40062
40062
  }
@@ -40099,7 +40099,7 @@ var require_symlink_type = /* @__PURE__ */ __commonJSMin(((exports, module) => {
40099
40099
  //#region ../../node_modules/streamroller/node_modules/fs-extra/lib/ensure/symlink.js
40100
40100
  var require_symlink = /* @__PURE__ */ __commonJSMin(((exports, module) => {
40101
40101
  var u = require_universalify().fromCallback;
40102
- var path$22 = __require("path");
40102
+ var path$23 = __require("path");
40103
40103
  var fs = require_graceful_fs();
40104
40104
  var _mkdirs = require_mkdirs();
40105
40105
  var mkdirs = _mkdirs.mkdirs;
@@ -40122,7 +40122,7 @@ var require_symlink = /* @__PURE__ */ __commonJSMin(((exports, module) => {
40122
40122
  srcpath = relative.toDst;
40123
40123
  symlinkType(relative.toCwd, type, (err, type) => {
40124
40124
  if (err) return callback(err);
40125
- const dir = path$22.dirname(dstpath);
40125
+ const dir = path$23.dirname(dstpath);
40126
40126
  pathExists(dir, (err, dirExists) => {
40127
40127
  if (err) return callback(err);
40128
40128
  if (dirExists) return fs.symlink(srcpath, dstpath, type, callback);
@@ -40140,7 +40140,7 @@ var require_symlink = /* @__PURE__ */ __commonJSMin(((exports, module) => {
40140
40140
  const relative = symlinkPathsSync(srcpath, dstpath);
40141
40141
  srcpath = relative.toDst;
40142
40142
  type = symlinkTypeSync(relative.toCwd, type);
40143
- const dir = path$22.dirname(dstpath);
40143
+ const dir = path$23.dirname(dstpath);
40144
40144
  if (fs.existsSync(dir)) return fs.symlinkSync(srcpath, dstpath, type);
40145
40145
  mkdirsSync(dir);
40146
40146
  return fs.symlinkSync(srcpath, dstpath, type);
@@ -40280,7 +40280,7 @@ var require_jsonfile = /* @__PURE__ */ __commonJSMin(((exports, module) => {
40280
40280
  //#endregion
40281
40281
  //#region ../../node_modules/streamroller/node_modules/fs-extra/lib/json/output-json.js
40282
40282
  var require_output_json = /* @__PURE__ */ __commonJSMin(((exports, module) => {
40283
- var path$21 = __require("path");
40283
+ var path$22 = __require("path");
40284
40284
  var mkdir = require_mkdirs();
40285
40285
  var pathExists = require_path_exists().pathExists;
40286
40286
  var jsonFile = require_jsonfile();
@@ -40289,7 +40289,7 @@ var require_output_json = /* @__PURE__ */ __commonJSMin(((exports, module) => {
40289
40289
  callback = options;
40290
40290
  options = {};
40291
40291
  }
40292
- const dir = path$21.dirname(file);
40292
+ const dir = path$22.dirname(file);
40293
40293
  pathExists(dir, (err, itDoes) => {
40294
40294
  if (err) return callback(err);
40295
40295
  if (itDoes) return jsonFile.writeJson(file, data, options, callback);
@@ -40305,11 +40305,11 @@ var require_output_json = /* @__PURE__ */ __commonJSMin(((exports, module) => {
40305
40305
  //#region ../../node_modules/streamroller/node_modules/fs-extra/lib/json/output-json-sync.js
40306
40306
  var require_output_json_sync = /* @__PURE__ */ __commonJSMin(((exports, module) => {
40307
40307
  var fs = require_graceful_fs();
40308
- var path$20 = __require("path");
40308
+ var path$21 = __require("path");
40309
40309
  var mkdir = require_mkdirs();
40310
40310
  var jsonFile = require_jsonfile();
40311
40311
  function outputJsonSync(file, data, options) {
40312
- const dir = path$20.dirname(file);
40312
+ const dir = path$21.dirname(file);
40313
40313
  if (!fs.existsSync(dir)) mkdir.mkdirsSync(dir);
40314
40314
  jsonFile.writeJsonSync(file, data, options);
40315
40315
  }
@@ -40334,7 +40334,7 @@ var require_json = /* @__PURE__ */ __commonJSMin(((exports, module) => {
40334
40334
  //#region ../../node_modules/streamroller/node_modules/fs-extra/lib/move-sync/move-sync.js
40335
40335
  var require_move_sync$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
40336
40336
  var fs = require_graceful_fs();
40337
- var path$19 = __require("path");
40337
+ var path$20 = __require("path");
40338
40338
  var copySync = require_copy_sync().copySync;
40339
40339
  var removeSync = require_remove().removeSync;
40340
40340
  var mkdirpSync = require_mkdirs().mkdirpSync;
@@ -40344,7 +40344,7 @@ var require_move_sync$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
40344
40344
  const overwrite = opts.overwrite || opts.clobber || false;
40345
40345
  const { srcStat } = stat.checkPathsSync(src, dest, "move");
40346
40346
  stat.checkParentPathsSync(src, srcStat, dest, "move");
40347
- mkdirpSync(path$19.dirname(dest));
40347
+ mkdirpSync(path$20.dirname(dest));
40348
40348
  return doRename(src, dest, overwrite);
40349
40349
  }
40350
40350
  function doRename(src, dest, overwrite) {
@@ -40381,7 +40381,7 @@ var require_move_sync = /* @__PURE__ */ __commonJSMin(((exports, module) => {
40381
40381
  //#region ../../node_modules/streamroller/node_modules/fs-extra/lib/move/move.js
40382
40382
  var require_move$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
40383
40383
  var fs = require_graceful_fs();
40384
- var path$18 = __require("path");
40384
+ var path$19 = __require("path");
40385
40385
  var copy = require_copy().copy;
40386
40386
  var remove = require_remove().remove;
40387
40387
  var mkdirp = require_mkdirs().mkdirp;
@@ -40398,7 +40398,7 @@ var require_move$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
40398
40398
  const { srcStat } = stats;
40399
40399
  stat.checkParentPaths(src, srcStat, dest, "move", (err) => {
40400
40400
  if (err) return cb(err);
40401
- mkdirp(path$18.dirname(dest), (err) => {
40401
+ mkdirp(path$19.dirname(dest), (err) => {
40402
40402
  if (err) return cb(err);
40403
40403
  return doRename(src, dest, overwrite, cb);
40404
40404
  });
@@ -40445,7 +40445,7 @@ var require_move = /* @__PURE__ */ __commonJSMin(((exports, module) => {
40445
40445
  var require_output = /* @__PURE__ */ __commonJSMin(((exports, module) => {
40446
40446
  var u = require_universalify().fromCallback;
40447
40447
  var fs = require_graceful_fs();
40448
- var path$17 = __require("path");
40448
+ var path$18 = __require("path");
40449
40449
  var mkdir = require_mkdirs();
40450
40450
  var pathExists = require_path_exists().pathExists;
40451
40451
  function outputFile(file, data, encoding, callback) {
@@ -40453,7 +40453,7 @@ var require_output = /* @__PURE__ */ __commonJSMin(((exports, module) => {
40453
40453
  callback = encoding;
40454
40454
  encoding = "utf8";
40455
40455
  }
40456
- const dir = path$17.dirname(file);
40456
+ const dir = path$18.dirname(file);
40457
40457
  pathExists(dir, (err, itDoes) => {
40458
40458
  if (err) return callback(err);
40459
40459
  if (itDoes) return fs.writeFile(file, data, encoding, callback);
@@ -40464,7 +40464,7 @@ var require_output = /* @__PURE__ */ __commonJSMin(((exports, module) => {
40464
40464
  });
40465
40465
  }
40466
40466
  function outputFileSync(file, ...args) {
40467
- const dir = path$17.dirname(file);
40467
+ const dir = path$18.dirname(file);
40468
40468
  if (fs.existsSync(dir)) return fs.writeFileSync(file, ...args);
40469
40469
  mkdir.mkdirsSync(dir);
40470
40470
  fs.writeFileSync(file, ...args);
@@ -40478,9 +40478,9 @@ var require_output = /* @__PURE__ */ __commonJSMin(((exports, module) => {
40478
40478
  //#region ../../node_modules/streamroller/node_modules/fs-extra/lib/index.js
40479
40479
  var require_lib$4 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
40480
40480
  module.exports = Object.assign({}, require_fs(), require_copy_sync(), require_copy(), require_empty(), require_ensure(), require_json(), require_mkdirs(), require_move_sync(), require_move(), require_output(), require_path_exists(), require_remove());
40481
- var fs$13 = __require("fs");
40482
- if (Object.getOwnPropertyDescriptor(fs$13, "promises")) Object.defineProperty(module.exports, "promises", { get() {
40483
- return fs$13.promises;
40481
+ var fs$14 = __require("fs");
40482
+ if (Object.getOwnPropertyDescriptor(fs$14, "promises")) Object.defineProperty(module.exports, "promises", { get() {
40483
+ return fs$14.promises;
40484
40484
  } });
40485
40485
  }));
40486
40486
  //#endregion
@@ -40645,11 +40645,11 @@ var require_lib$3 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
40645
40645
  //#region ../../node_modules/streamroller/lib/fileNameFormatter.js
40646
40646
  var require_fileNameFormatter = /* @__PURE__ */ __commonJSMin(((exports, module) => {
40647
40647
  var debug = require_src()("streamroller:fileNameFormatter");
40648
- var path$16 = __require("path");
40648
+ var path$17 = __require("path");
40649
40649
  var FILENAME_SEP = ".";
40650
40650
  var ZIP_EXT = ".gz";
40651
40651
  module.exports = ({ file, keepFileExt, needsIndex, alwaysIncludeDate, compress }) => {
40652
- const dirAndName = path$16.join(file.dir, file.name);
40652
+ const dirAndName = path$17.join(file.dir, file.name);
40653
40653
  const ext = (f) => f + file.ext;
40654
40654
  const index = (f, i, d) => (needsIndex || !d) && i ? f + FILENAME_SEP + i : f;
40655
40655
  const date = (f, i, d) => {
@@ -40794,7 +40794,7 @@ var require_moveAndMaybeCompressFile = /* @__PURE__ */ __commonJSMin(((exports,
40794
40794
  var require_RollingFileWriteStream = /* @__PURE__ */ __commonJSMin(((exports, module) => {
40795
40795
  var debug = require_src()("streamroller:RollingFileWriteStream");
40796
40796
  var fs = require_lib$4();
40797
- var path$15 = __require("path");
40797
+ var path$16 = __require("path");
40798
40798
  var newNow = require_now();
40799
40799
  var format = require_lib$3();
40800
40800
  var { Writable: Writable$1 } = __require("stream");
@@ -40825,8 +40825,8 @@ var require_RollingFileWriteStream = /* @__PURE__ */ __commonJSMin(((exports, mo
40825
40825
  debug(`constructor: creating RollingFileWriteStream. path=${filePath}`);
40826
40826
  super(options);
40827
40827
  this.options = this._parseOption(options);
40828
- this.fileObject = path$15.parse(filePath);
40829
- if (this.fileObject.dir === "") this.fileObject = path$15.parse(path$15.join(process.cwd(), filePath));
40828
+ this.fileObject = path$16.parse(filePath);
40829
+ if (this.fileObject.dir === "") this.fileObject = path$16.parse(path$16.join(process.cwd(), filePath));
40830
40830
  this.fileFormatter = fileNameFormatter({
40831
40831
  file: this.fileObject,
40832
40832
  alwaysIncludeDate: this.options.alwaysIncludePattern,
@@ -40963,7 +40963,7 @@ var require_RollingFileWriteStream = /* @__PURE__ */ __commonJSMin(((exports, mo
40963
40963
  const existingFileDetails = await this._getExistingFiles();
40964
40964
  debug(`_clean: numToKeep = ${this.options.numToKeep}, existingFiles = ${existingFileDetails.length}`);
40965
40965
  debug("_clean: existing files are: ", existingFileDetails);
40966
- if (this._tooManyFiles(existingFileDetails.length)) await deleteFiles(existingFileDetails.slice(0, existingFileDetails.length - this.options.numToKeep - 1).map((f) => path$15.format({
40966
+ if (this._tooManyFiles(existingFileDetails.length)) await deleteFiles(existingFileDetails.slice(0, existingFileDetails.length - this.options.numToKeep - 1).map((f) => path$16.format({
40967
40967
  dir: this.fileObject.dir,
40968
40968
  base: f.filename
40969
40969
  })));
@@ -41037,7 +41037,7 @@ var require_lib$2 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
41037
41037
  //#region ../../node_modules/log4js/lib/appenders/file.js
41038
41038
  var require_file = /* @__PURE__ */ __commonJSMin(((exports, module) => {
41039
41039
  var debug = require_src()("log4js:file");
41040
- var path$14 = __require("path");
41040
+ var path$15 = __require("path");
41041
41041
  var streams = require_lib$2();
41042
41042
  var eol$2 = __require("os").EOL;
41043
41043
  function openTheStream(file, fileSize, numFiles, options) {
@@ -41064,7 +41064,7 @@ var require_file = /* @__PURE__ */ __commonJSMin(((exports, module) => {
41064
41064
  * @param timezoneOffset - optional timezone offset in minutes (default system local)
41065
41065
  */
41066
41066
  function fileAppender(file, layout, logSize, numBackups, options, timezoneOffset) {
41067
- file = path$14.normalize(file);
41067
+ file = path$15.normalize(file);
41068
41068
  numBackups = numBackups === void 0 ? 5 : numBackups;
41069
41069
  numBackups = numBackups === 0 ? 1 : numBackups;
41070
41070
  debug("Creating file appender (", file, ", ", logSize, ", ", numBackups, ", ", options, ", ", timezoneOffset, ")");
@@ -41143,13 +41143,13 @@ var require_dateFile = /* @__PURE__ */ __commonJSMin(((exports, module) => {
41143
41143
  //#region ../../node_modules/log4js/lib/appenders/fileSync.js
41144
41144
  var require_fileSync = /* @__PURE__ */ __commonJSMin(((exports, module) => {
41145
41145
  var debug = require_src()("log4js:fileSync");
41146
- var path$13 = __require("path");
41147
- var fs$12 = __require("fs");
41146
+ var path$14 = __require("path");
41147
+ var fs$13 = __require("fs");
41148
41148
  var eol = __require("os").EOL || "\n";
41149
41149
  function touchFile(file, options) {
41150
- if (fs$12.existsSync(file)) return;
41151
- const id = fs$12.openSync(file, options.flags, options.mode);
41152
- fs$12.closeSync(id);
41150
+ if (fs$13.existsSync(file)) return;
41151
+ const id = fs$13.openSync(file, options.flags, options.mode);
41152
+ fs$13.closeSync(id);
41153
41153
  }
41154
41154
  var RollingFileSync = class {
41155
41155
  constructor(filename, size, backups, options) {
@@ -41166,7 +41166,7 @@ var require_fileSync = /* @__PURE__ */ __commonJSMin(((exports, module) => {
41166
41166
  function currentFileSize(file) {
41167
41167
  let fileSize = 0;
41168
41168
  try {
41169
- fileSize = fs$12.statSync(file).size;
41169
+ fileSize = fs$13.statSync(file).size;
41170
41170
  } catch (e) {
41171
41171
  touchFile(file, options);
41172
41172
  }
@@ -41180,12 +41180,12 @@ var require_fileSync = /* @__PURE__ */ __commonJSMin(((exports, module) => {
41180
41180
  }
41181
41181
  roll(filename) {
41182
41182
  const that = this;
41183
- const nameMatcher = new RegExp(`^${path$13.basename(filename)}`);
41183
+ const nameMatcher = new RegExp(`^${path$14.basename(filename)}`);
41184
41184
  function justTheseFiles(item) {
41185
41185
  return nameMatcher.test(item);
41186
41186
  }
41187
41187
  function index(filename_) {
41188
- return parseInt(filename_.substring(`${path$13.basename(filename)}.`.length), 10) || 0;
41188
+ return parseInt(filename_.substring(`${path$14.basename(filename)}.`.length), 10) || 0;
41189
41189
  }
41190
41190
  function byIndex(a, b) {
41191
41191
  if (index(a) > index(b)) return 1;
@@ -41197,15 +41197,15 @@ var require_fileSync = /* @__PURE__ */ __commonJSMin(((exports, module) => {
41197
41197
  debug(`Index of ${fileToRename} is ${idx}`);
41198
41198
  if (idx < that.backups) {
41199
41199
  try {
41200
- fs$12.unlinkSync(`${filename}.${idx + 1}`);
41200
+ fs$13.unlinkSync(`${filename}.${idx + 1}`);
41201
41201
  } catch (e) {}
41202
41202
  debug(`Renaming ${fileToRename} -> ${filename}.${idx + 1}`);
41203
- fs$12.renameSync(path$13.join(path$13.dirname(filename), fileToRename), `${filename}.${idx + 1}`);
41203
+ fs$13.renameSync(path$14.join(path$14.dirname(filename), fileToRename), `${filename}.${idx + 1}`);
41204
41204
  }
41205
41205
  }
41206
41206
  function renameTheFiles() {
41207
41207
  debug("Renaming the old files");
41208
- fs$12.readdirSync(path$13.dirname(filename)).filter(justTheseFiles).sort(byIndex).reverse().forEach(increaseFileIndex);
41208
+ fs$13.readdirSync(path$14.dirname(filename)).filter(justTheseFiles).sort(byIndex).reverse().forEach(increaseFileIndex);
41209
41209
  }
41210
41210
  debug("Rolling, rolling, rolling");
41211
41211
  renameTheFiles();
@@ -41215,7 +41215,7 @@ var require_fileSync = /* @__PURE__ */ __commonJSMin(((exports, module) => {
41215
41215
  function writeTheChunk() {
41216
41216
  debug("writing the chunk to the file");
41217
41217
  that.currentSize += chunk.length;
41218
- fs$12.appendFileSync(that.filename, chunk);
41218
+ fs$13.appendFileSync(that.filename, chunk);
41219
41219
  }
41220
41220
  debug("in write");
41221
41221
  if (this.shouldRoll()) {
@@ -41241,7 +41241,7 @@ var require_fileSync = /* @__PURE__ */ __commonJSMin(((exports, module) => {
41241
41241
  */
41242
41242
  function fileAppender(file, layout, logSize, numBackups, timezoneOffset, options) {
41243
41243
  debug("fileSync appender created");
41244
- file = path$13.normalize(file);
41244
+ file = path$14.normalize(file);
41245
41245
  numBackups = numBackups === void 0 ? 5 : numBackups;
41246
41246
  numBackups = numBackups === 0 ? 1 : numBackups;
41247
41247
  function openTheStream(filePath, fileSize, numFiles) {
@@ -41250,7 +41250,7 @@ var require_fileSync = /* @__PURE__ */ __commonJSMin(((exports, module) => {
41250
41250
  else stream = ((f) => {
41251
41251
  touchFile(f, options);
41252
41252
  return { write(data) {
41253
- fs$12.appendFileSync(f, data);
41253
+ fs$13.appendFileSync(f, data);
41254
41254
  } };
41255
41255
  })(filePath);
41256
41256
  return stream;
@@ -41275,7 +41275,7 @@ var require_fileSync = /* @__PURE__ */ __commonJSMin(((exports, module) => {
41275
41275
  //#endregion
41276
41276
  //#region ../../node_modules/log4js/lib/appenders/index.js
41277
41277
  var require_appenders = /* @__PURE__ */ __commonJSMin(((exports, module) => {
41278
- var path$12 = __require("path");
41278
+ var path$13 = __require("path");
41279
41279
  var debug = require_src()("log4js:appenders");
41280
41280
  var configuration = require_configuration();
41281
41281
  var clustering = require_clustering();
@@ -41302,7 +41302,7 @@ var require_appenders = /* @__PURE__ */ __commonJSMin(((exports, module) => {
41302
41302
  return;
41303
41303
  }
41304
41304
  };
41305
- var loadAppenderModule = (type, config) => coreAppenders.get(type) || tryLoading(`./${type}`, config) || tryLoading(type, config) || __require.main && tryLoading(path$12.join(path$12.dirname(__require.main.filename), type), config) || tryLoading(path$12.join(process.cwd(), type), config);
41305
+ var loadAppenderModule = (type, config) => coreAppenders.get(type) || tryLoading(`./${type}`, config) || tryLoading(type, config) || __require.main && tryLoading(path$13.join(path$13.dirname(__require.main.filename), type), config) || tryLoading(path$13.join(process.cwd(), type), config);
41306
41306
  var appendersLoading = /* @__PURE__ */ new Set();
41307
41307
  var getAppender = (name, config) => {
41308
41308
  if (appenders.has(name)) return appenders.get(name);
@@ -41849,7 +41849,7 @@ var require_log4js$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
41849
41849
  * Website: http://log4js.berlios.de
41850
41850
  */
41851
41851
  var debug = require_src()("log4js:main");
41852
- var fs$11 = __require("fs");
41852
+ var fs$12 = __require("fs");
41853
41853
  var deepClone = require_rfdc()({ proto: true });
41854
41854
  var configuration = require_configuration();
41855
41855
  var layouts = require_layouts();
@@ -41870,7 +41870,7 @@ var require_log4js$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
41870
41870
  function loadConfigurationFile(filename) {
41871
41871
  debug(`Loading configuration from ${filename}`);
41872
41872
  try {
41873
- return JSON.parse(fs$11.readFileSync(filename, "utf8"));
41873
+ return JSON.parse(fs$12.readFileSync(filename, "utf8"));
41874
41874
  } catch (e) {
41875
41875
  throw new Error(`Problem reading config from file "${filename}". Error was ${e.message}`, e);
41876
41876
  }
@@ -42958,10 +42958,10 @@ var require_atomic_sleep = /* @__PURE__ */ __commonJSMin(((exports, module) => {
42958
42958
  //#endregion
42959
42959
  //#region ../../node_modules/sonic-boom/index.js
42960
42960
  var require_sonic_boom = /* @__PURE__ */ __commonJSMin(((exports, module) => {
42961
- var fs$10 = __require("fs");
42961
+ var fs$11 = __require("fs");
42962
42962
  var EventEmitter$8 = __require("events");
42963
42963
  var inherits = __require("util").inherits;
42964
- var path$11 = __require("path");
42964
+ var path$12 = __require("path");
42965
42965
  var sleep = require_atomic_sleep();
42966
42966
  var assert$1 = __require("assert");
42967
42967
  var BUSY_WRITE_TIMEOUT = 100;
@@ -43001,17 +43001,17 @@ var require_sonic_boom = /* @__PURE__ */ __commonJSMin(((exports, module) => {
43001
43001
  const flags = sonic.append ? "a" : "w";
43002
43002
  const mode = sonic.mode;
43003
43003
  if (sonic.sync) try {
43004
- if (sonic.mkdir) fs$10.mkdirSync(path$11.dirname(file), { recursive: true });
43005
- fileOpened(null, fs$10.openSync(file, flags, mode));
43004
+ if (sonic.mkdir) fs$11.mkdirSync(path$12.dirname(file), { recursive: true });
43005
+ fileOpened(null, fs$11.openSync(file, flags, mode));
43006
43006
  } catch (err) {
43007
43007
  fileOpened(err);
43008
43008
  throw err;
43009
43009
  }
43010
- else if (sonic.mkdir) fs$10.mkdir(path$11.dirname(file), { recursive: true }, (err) => {
43010
+ else if (sonic.mkdir) fs$11.mkdir(path$12.dirname(file), { recursive: true }, (err) => {
43011
43011
  if (err) return fileOpened(err);
43012
- fs$10.open(file, flags, mode, fileOpened);
43012
+ fs$11.open(file, flags, mode, fileOpened);
43013
43013
  });
43014
- else fs$10.open(file, flags, mode, fileOpened);
43014
+ else fs$11.open(file, flags, mode, fileOpened);
43015
43015
  }
43016
43016
  function SonicBoom(opts) {
43017
43017
  if (!(this instanceof SonicBoom)) return new SonicBoom(opts);
@@ -43049,8 +43049,8 @@ var require_sonic_boom = /* @__PURE__ */ __commonJSMin(((exports, module) => {
43049
43049
  this.flush = flushBuffer;
43050
43050
  this.flushSync = flushBufferSync;
43051
43051
  this._actualWrite = actualWriteBuffer;
43052
- fsWriteSync = () => fs$10.writeSync(this.fd, this._writingBuf);
43053
- fsWrite = () => fs$10.write(this.fd, this._writingBuf, this.release);
43052
+ fsWriteSync = () => fs$11.writeSync(this.fd, this._writingBuf);
43053
+ fsWrite = () => fs$11.write(this.fd, this._writingBuf, this.release);
43054
43054
  } else if (contentMode === void 0 || contentMode === kContentModeUtf8) {
43055
43055
  this._writingBuf = "";
43056
43056
  this.write = write;
@@ -43058,12 +43058,12 @@ var require_sonic_boom = /* @__PURE__ */ __commonJSMin(((exports, module) => {
43058
43058
  this.flushSync = flushSync;
43059
43059
  this._actualWrite = actualWrite;
43060
43060
  fsWriteSync = () => {
43061
- if (Buffer.isBuffer(this._writingBuf)) return fs$10.writeSync(this.fd, this._writingBuf);
43062
- return fs$10.writeSync(this.fd, this._writingBuf, "utf8");
43061
+ if (Buffer.isBuffer(this._writingBuf)) return fs$11.writeSync(this.fd, this._writingBuf);
43062
+ return fs$11.writeSync(this.fd, this._writingBuf, "utf8");
43063
43063
  };
43064
43064
  fsWrite = () => {
43065
- if (Buffer.isBuffer(this._writingBuf)) return fs$10.write(this.fd, this._writingBuf, this.release);
43066
- return fs$10.write(this.fd, this._writingBuf, "utf8", this.release);
43065
+ if (Buffer.isBuffer(this._writingBuf)) return fs$11.write(this.fd, this._writingBuf, this.release);
43066
+ return fs$11.write(this.fd, this._writingBuf, "utf8", this.release);
43067
43067
  };
43068
43068
  } else throw new Error(`SonicBoom supports "${kContentModeUtf8}" and "${kContentModeBuffer}", but passed ${contentMode}`);
43069
43069
  if (typeof fd === "number") {
@@ -43108,7 +43108,7 @@ var require_sonic_boom = /* @__PURE__ */ __commonJSMin(((exports, module) => {
43108
43108
  return;
43109
43109
  }
43110
43110
  }
43111
- if (this._fsync) fs$10.fsyncSync(this.fd);
43111
+ if (this._fsync) fs$11.fsyncSync(this.fd);
43112
43112
  const len = this._len;
43113
43113
  if (this._reopening) {
43114
43114
  this._writing = false;
@@ -43205,7 +43205,7 @@ var require_sonic_boom = /* @__PURE__ */ __commonJSMin(((exports, module) => {
43205
43205
  this._flushPending = true;
43206
43206
  const onDrain = () => {
43207
43207
  if (!this._fsync) try {
43208
- fs$10.fsync(this.fd, (err) => {
43208
+ fs$11.fsync(this.fd, (err) => {
43209
43209
  this._flushPending = false;
43210
43210
  cb(err);
43211
43211
  });
@@ -43282,7 +43282,7 @@ var require_sonic_boom = /* @__PURE__ */ __commonJSMin(((exports, module) => {
43282
43282
  if (this._writing) return;
43283
43283
  const fd = this.fd;
43284
43284
  this.once("ready", () => {
43285
- if (fd !== this.fd) fs$10.close(fd, (err) => {
43285
+ if (fd !== this.fd) fs$11.close(fd, (err) => {
43286
43286
  if (err) return this.emit("error", err);
43287
43287
  });
43288
43288
  });
@@ -43313,7 +43313,7 @@ var require_sonic_boom = /* @__PURE__ */ __commonJSMin(((exports, module) => {
43313
43313
  while (this._bufs.length || buf.length) {
43314
43314
  if (buf.length <= 0) buf = this._bufs[0];
43315
43315
  try {
43316
- const n = Buffer.isBuffer(buf) ? fs$10.writeSync(this.fd, buf) : fs$10.writeSync(this.fd, buf, "utf8");
43316
+ const n = Buffer.isBuffer(buf) ? fs$11.writeSync(this.fd, buf) : fs$11.writeSync(this.fd, buf, "utf8");
43317
43317
  const releasedBufObj = releaseWritingBuf(buf, this._len, n);
43318
43318
  buf = releasedBufObj.writingBuf;
43319
43319
  this._len = releasedBufObj.len;
@@ -43324,7 +43324,7 @@ var require_sonic_boom = /* @__PURE__ */ __commonJSMin(((exports, module) => {
43324
43324
  }
43325
43325
  }
43326
43326
  try {
43327
- fs$10.fsyncSync(this.fd);
43327
+ fs$11.fsyncSync(this.fd);
43328
43328
  } catch {}
43329
43329
  }
43330
43330
  function flushBufferSync() {
@@ -43338,7 +43338,7 @@ var require_sonic_boom = /* @__PURE__ */ __commonJSMin(((exports, module) => {
43338
43338
  while (this._bufs.length || buf.length) {
43339
43339
  if (buf.length <= 0) buf = mergeBuf(this._bufs[0], this._lens[0]);
43340
43340
  try {
43341
- const n = fs$10.writeSync(this.fd, buf);
43341
+ const n = fs$11.writeSync(this.fd, buf);
43342
43342
  buf = buf.subarray(n);
43343
43343
  this._len = Math.max(this._len - n, 0);
43344
43344
  if (buf.length <= 0) {
@@ -43360,24 +43360,24 @@ var require_sonic_boom = /* @__PURE__ */ __commonJSMin(((exports, module) => {
43360
43360
  this._writing = true;
43361
43361
  this._writingBuf = this._writingBuf.length ? this._writingBuf : this._bufs.shift() || "";
43362
43362
  if (this.sync) try {
43363
- release(null, Buffer.isBuffer(this._writingBuf) ? fs$10.writeSync(this.fd, this._writingBuf) : fs$10.writeSync(this.fd, this._writingBuf, "utf8"));
43363
+ release(null, Buffer.isBuffer(this._writingBuf) ? fs$11.writeSync(this.fd, this._writingBuf) : fs$11.writeSync(this.fd, this._writingBuf, "utf8"));
43364
43364
  } catch (err) {
43365
43365
  release(err);
43366
43366
  }
43367
- else fs$10.write(this.fd, this._writingBuf, release);
43367
+ else fs$11.write(this.fd, this._writingBuf, release);
43368
43368
  }
43369
43369
  function actualWriteBuffer() {
43370
43370
  const release = this.release;
43371
43371
  this._writing = true;
43372
43372
  this._writingBuf = this._writingBuf.length ? this._writingBuf : mergeBuf(this._bufs.shift(), this._lens.shift());
43373
43373
  if (this.sync) try {
43374
- release(null, fs$10.writeSync(this.fd, this._writingBuf));
43374
+ release(null, fs$11.writeSync(this.fd, this._writingBuf));
43375
43375
  } catch (err) {
43376
43376
  release(err);
43377
43377
  }
43378
43378
  else {
43379
43379
  if (kCopyBuffer) this._writingBuf = Buffer.from(this._writingBuf);
43380
- fs$10.write(this.fd, this._writingBuf, release);
43380
+ fs$11.write(this.fd, this._writingBuf, release);
43381
43381
  }
43382
43382
  }
43383
43383
  function actualClose(sonic) {
@@ -43391,10 +43391,10 @@ var require_sonic_boom = /* @__PURE__ */ __commonJSMin(((exports, module) => {
43391
43391
  sonic._lens = [];
43392
43392
  assert$1(typeof sonic.fd === "number", `sonic.fd must be a number, got ${typeof sonic.fd}`);
43393
43393
  try {
43394
- fs$10.fsync(sonic.fd, closeWrapped);
43394
+ fs$11.fsync(sonic.fd, closeWrapped);
43395
43395
  } catch {}
43396
43396
  function closeWrapped() {
43397
- if (sonic.fd !== 1 && sonic.fd !== 2) fs$10.close(sonic.fd, done);
43397
+ if (sonic.fd !== 1 && sonic.fd !== 2) fs$11.close(sonic.fd, done);
43398
43398
  else done();
43399
43399
  }
43400
43400
  function done(err) {
@@ -72191,7 +72191,7 @@ var require_tcp = /* @__PURE__ */ __commonJSMin(((exports, module) => {
72191
72191
  var Transporter = require_base$1();
72192
72192
  var _ = require_lodash();
72193
72193
  var { isObject, isString } = require_utils$3();
72194
- var fs$9 = __require("fs");
72194
+ var fs$10 = __require("fs");
72195
72195
  var kleur = require_kleur();
72196
72196
  var Node = require_node();
72197
72197
  var P = require_packets();
@@ -72338,7 +72338,7 @@ var require_tcp = /* @__PURE__ */ __commonJSMin(((exports, module) => {
72338
72338
  if (isString(str) && str.startsWith("file://")) {
72339
72339
  const fName = str.replace("file://", "");
72340
72340
  this.logger.debug(`Load nodes list from file '${fName}'...`);
72341
- let content = fs$9.readFileSync(fName);
72341
+ let content = fs$10.readFileSync(fName);
72342
72342
  if (content && content.length > 0) {
72343
72343
  const str = content.toString().trim();
72344
72344
  if (str.startsWith("{") || str.startsWith("[")) return JSON.parse(str);
@@ -74828,15 +74828,15 @@ var require_ttl = /* @__PURE__ */ __commonJSMin(((exports, module) => {
74828
74828
  //#region ../../node_modules/recursive-watch/index.js
74829
74829
  var require_recursive_watch = /* @__PURE__ */ __commonJSMin(((exports, module) => {
74830
74830
  var os$5 = __require("os");
74831
- var fs$8 = __require("fs");
74832
- var path$10 = __require("path");
74831
+ var fs$9 = __require("fs");
74832
+ var path$11 = __require("path");
74833
74833
  var Cache = require_ttl();
74834
74834
  var watchDirectory = os$5.platform() === "linux" ? watchFallback : watchRecursive;
74835
74835
  module.exports = watch;
74836
74836
  function watch(name, onchange) {
74837
74837
  var clear = null;
74838
74838
  var stopped = false;
74839
- fs$8.lstat(name, function(_, st) {
74839
+ fs$9.lstat(name, function(_, st) {
74840
74840
  if (!st || stopped) {
74841
74841
  stopped = true;
74842
74842
  return;
@@ -74852,8 +74852,8 @@ var require_recursive_watch = /* @__PURE__ */ __commonJSMin(((exports, module) =
74852
74852
  function watchFile(filename, onchange) {
74853
74853
  var prev = null;
74854
74854
  var prevTime = 0;
74855
- var w = fs$8.watch(filename, function() {
74856
- fs$8.lstat(filename, function(_, st) {
74855
+ var w = fs$9.watch(filename, function() {
74856
+ fs$9.lstat(filename, function(_, st) {
74857
74857
  var now = Date.now();
74858
74858
  if (now - prevTime > 2e3 || !same(st, prev)) onchange(filename);
74859
74859
  prevTime = now;
@@ -74865,9 +74865,9 @@ var require_recursive_watch = /* @__PURE__ */ __commonJSMin(((exports, module) =
74865
74865
  };
74866
74866
  }
74867
74867
  function watchRecursive(directory, onchange) {
74868
- var w = fs$8.watch(directory, { recursive: true }, function(change, filename) {
74868
+ var w = fs$9.watch(directory, { recursive: true }, function(change, filename) {
74869
74869
  if (!filename) return;
74870
- onchange(path$10.join(directory, filename));
74870
+ onchange(path$11.join(directory, filename));
74871
74871
  });
74872
74872
  return function() {
74873
74873
  w.close();
@@ -74895,7 +74895,7 @@ var require_recursive_watch = /* @__PURE__ */ __commonJSMin(((exports, module) =
74895
74895
  }
74896
74896
  function update() {
74897
74897
  var filename = queued[0];
74898
- fs$8.lstat(filename, function(err, st) {
74898
+ fs$9.lstat(filename, function(err, st) {
74899
74899
  var w = watching[filename];
74900
74900
  if (err && w) {
74901
74901
  w.close();
@@ -74904,30 +74904,30 @@ var require_recursive_watch = /* @__PURE__ */ __commonJSMin(((exports, module) =
74904
74904
  var prevSt = prevs.get(filename);
74905
74905
  if (!prevSt || !same(st, prevSt)) onchange(filename);
74906
74906
  prevs.put(filename, st);
74907
- visit(path$10.relative(directory, filename), function() {
74907
+ visit(path$11.relative(directory, filename), function() {
74908
74908
  queued.shift();
74909
74909
  if (queued.length) update();
74910
74910
  });
74911
74911
  });
74912
74912
  }
74913
74913
  function visit(next, cb) {
74914
- var dir = path$10.join(directory, next);
74915
- fs$8.lstat(dir, function(err, st) {
74914
+ var dir = path$11.join(directory, next);
74915
+ fs$9.lstat(dir, function(err, st) {
74916
74916
  if (err || !st.isDirectory()) return cb();
74917
74917
  if (watching[dir]) return cb();
74918
74918
  if (loaded) emit(dir);
74919
- var w = fs$8.watch(dir, function(change, filename) {
74920
- filename = path$10.join(next, filename);
74921
- emit(path$10.join(directory, filename));
74919
+ var w = fs$9.watch(dir, function(change, filename) {
74920
+ filename = path$11.join(next, filename);
74921
+ emit(path$11.join(directory, filename));
74922
74922
  });
74923
74923
  w.on("error", noop);
74924
74924
  watching[dir] = w;
74925
- fs$8.readdir(dir, function(err, list) {
74925
+ fs$9.readdir(dir, function(err, list) {
74926
74926
  if (err) return cb(err);
74927
74927
  loop();
74928
74928
  function loop() {
74929
74929
  if (!list.length) return cb();
74930
- visit(path$10.join(next, list.shift()), loop);
74930
+ visit(path$11.join(next, list.shift()), loop);
74931
74931
  }
74932
74932
  });
74933
74933
  });
@@ -74942,9 +74942,9 @@ var require_recursive_watch = /* @__PURE__ */ __commonJSMin(((exports, module) =
74942
74942
  //#endregion
74943
74943
  //#region ../../node_modules/moleculer/src/middlewares/hot-reload.js
74944
74944
  var require_hot_reload = /* @__PURE__ */ __commonJSMin(((exports, module) => {
74945
- var fs$7 = __require("fs");
74945
+ var fs$8 = __require("fs");
74946
74946
  var kleur = require_kleur();
74947
- var path$9 = __require("path");
74947
+ var path$10 = __require("path");
74948
74948
  var watch = require_recursive_watch();
74949
74949
  var _ = require_lodash();
74950
74950
  var { clearRequireCache, makeDirs, isFunction, isString, uniq } = require_utils$3();
@@ -74956,10 +74956,10 @@ var require_hot_reload = /* @__PURE__ */ __commonJSMin(((exports, module) => {
74956
74956
  let hotReloadModules = [];
74957
74957
  let extraFiles = null;
74958
74958
  function hotReloadService(service) {
74959
- const relPath = path$9.relative(process.cwd(), service.__filename);
74959
+ const relPath = path$10.relative(process.cwd(), service.__filename);
74960
74960
  broker.logger.info(`Hot reload '${service.name}' service...`, kleur.grey(relPath));
74961
74961
  return broker.destroyService(service).then(() => {
74962
- if (fs$7.existsSync(service.__filename)) try {
74962
+ if (fs$8.existsSync(service.__filename)) try {
74963
74963
  return broker.loadService(service.__filename);
74964
74964
  } catch (err) {
74965
74965
  broker.logger.error(`Failed to load service '${service.__filename}'`, err);
@@ -74991,7 +74991,7 @@ var require_hot_reload = /* @__PURE__ */ __commonJSMin(((exports, module) => {
74991
74991
  });
74992
74992
  broker.logger.info(kleur.bgMagenta().white().bold(`Reload ${needToReloadDedup.length} service(s)`));
74993
74993
  needToReloadDedup.forEach((svc) => {
74994
- if (typeof svc == "string") if (fs$7.existsSync(svc)) return broker.loadService(svc);
74994
+ if (typeof svc == "string") if (fs$8.existsSync(svc)) return broker.loadService(svc);
74995
74995
  else return;
74996
74996
  return hotReloadService(svc);
74997
74997
  });
@@ -75001,19 +75001,19 @@ var require_hot_reload = /* @__PURE__ */ __commonJSMin(((exports, module) => {
75001
75001
  broker.logger.debug("");
75002
75002
  broker.logger.debug(kleur.yellow().bold("Watching the following project files:"));
75003
75003
  projectFiles.forEach((watchItem, fName) => {
75004
- if (!fs$7.existsSync(fName)) projectFiles.delete(fName);
75004
+ if (!fs$8.existsSync(fName)) projectFiles.delete(fName);
75005
75005
  });
75006
75006
  projectFiles.forEach((watchItem, fName) => {
75007
- const relPath = path$9.relative(process.cwd(), fName);
75007
+ const relPath = path$10.relative(process.cwd(), fName);
75008
75008
  if (watchItem.brokerRestart) broker.logger.debug(` ${relPath}:`, kleur.grey("restart broker."));
75009
75009
  else if (watchItem.allServices) broker.logger.debug(` ${relPath}:`, kleur.grey("reload all services."));
75010
75010
  else if (watchItem.services.length > 0) {
75011
75011
  broker.logger.debug(` ${relPath}:`, kleur.grey(`reload ${watchItem.services.length} service(s) & ${watchItem.others.length} other(s).`));
75012
75012
  watchItem.services.forEach((svcFullname) => broker.logger.debug(kleur.grey(` ${svcFullname}`)));
75013
- watchItem.others.forEach((filename) => broker.logger.debug(kleur.grey(` ${path$9.relative(process.cwd(), filename)}`)));
75013
+ watchItem.others.forEach((filename) => broker.logger.debug(kleur.grey(` ${path$10.relative(process.cwd(), filename)}`)));
75014
75014
  }
75015
- watchItem.watcher = fs$7.watch(fName, (eventType) => {
75016
- const relPath = path$9.relative(process.cwd(), fName);
75015
+ watchItem.watcher = fs$8.watch(fName, (eventType) => {
75016
+ const relPath = path$10.relative(process.cwd(), fName);
75017
75017
  broker.logger.info(kleur.magenta().bold(`The '${relPath}' file is changed. (Event: ${eventType})`));
75018
75018
  clearRequireCache(fName);
75019
75019
  if (watchItem.others.length > 0) watchItem.others.forEach((f) => clearRequireCache(f));
@@ -75131,16 +75131,16 @@ var require_hot_reload = /* @__PURE__ */ __commonJSMin(((exports, module) => {
75131
75131
  broker.logger.debug(kleur.yellow().bold("Watching the following folder(s):"));
75132
75132
  folders.forEach((folder) => {
75133
75133
  makeDirs(folder);
75134
- broker.logger.debug(` ${path$9.relative(process.cwd(), folder)}/`);
75134
+ broker.logger.debug(` ${path$10.relative(process.cwd(), folder)}/`);
75135
75135
  folderWatchers.push({
75136
75136
  path: folder,
75137
75137
  watcher: watch(folder, (filename) => {
75138
75138
  if (filename.endsWith(".service.js") || filename.endsWith(".service.ts")) {
75139
- broker.logger.debug(`There is changes in '${folder}' folder: `, path$9.basename(filename));
75139
+ broker.logger.debug(`There is changes in '${folder}' folder: `, path$10.basename(filename));
75140
75140
  const isLoaded = broker.services.some((svc) => svc.__filename == filename);
75141
- const fileExists = fs$7.existsSync(filename);
75141
+ const fileExists = fs$8.existsSync(filename);
75142
75142
  if (!isLoaded && fileExists) {
75143
- broker.logger.debug("Loading new file: ", path$9.basename(filename));
75143
+ broker.logger.debug("Loading new file: ", path$10.basename(filename));
75144
75144
  needToLoad.add(filename);
75145
75145
  loadServices();
75146
75146
  }
@@ -75316,8 +75316,8 @@ var require_compression = /* @__PURE__ */ __commonJSMin(((exports, module) => {
75316
75316
  var require_transit_logger = /* @__PURE__ */ __commonJSMin(((exports, module) => {
75317
75317
  var _ = require_lodash();
75318
75318
  var kleur = require_kleur();
75319
- var fs$6 = __require("fs");
75320
- var path$8 = __require("path");
75319
+ var fs$7 = __require("fs");
75320
+ var path$9 = __require("path");
75321
75321
  var { makeDirs, safetyObject } = require_utils$3();
75322
75322
  module.exports = function TransitLoggerMiddleware(opts) {
75323
75323
  opts = _.defaultsDeep(opts, {
@@ -75342,7 +75342,7 @@ var require_transit_logger = /* @__PURE__ */ __commonJSMin(((exports, module) =>
75342
75342
  } catch {
75343
75343
  data = JSON.stringify(safetyObject(payload), payload instanceof Error ? Object.getOwnPropertyNames(payload) : null, 4);
75344
75344
  }
75345
- fs$6.writeFile(path$8.join(targetFolder, filename), data, () => {});
75345
+ fs$7.writeFile(path$9.join(targetFolder, filename), data, () => {});
75346
75346
  }
75347
75347
  const coloringSend = opts.colors && opts.colors.send ? opts.colors.send.split(".").reduce((a, b) => a[b] || a()[b], kleur) : (s) => s;
75348
75348
  const coloringReceive = opts.colors && opts.colors.receive ? opts.colors.receive.split(".").reduce((a, b) => a[b] || a()[b], kleur) : (s) => s;
@@ -75353,7 +75353,7 @@ var require_transit_logger = /* @__PURE__ */ __commonJSMin(((exports, module) =>
75353
75353
  logger = opts.logger || broker.getLogger("debug");
75354
75354
  nodeID = broker.nodeID;
75355
75355
  if (opts.folder) {
75356
- targetFolder = path$8.join(opts.folder, nodeID);
75356
+ targetFolder = path$9.join(opts.folder, nodeID);
75357
75357
  makeDirs(targetFolder);
75358
75358
  }
75359
75359
  logFn = opts.logLevel ? logger[opts.logLevel] : null;
@@ -75390,8 +75390,8 @@ var require_transit_logger = /* @__PURE__ */ __commonJSMin(((exports, module) =>
75390
75390
  var require_action_logger = /* @__PURE__ */ __commonJSMin(((exports, module) => {
75391
75391
  var _ = require_lodash();
75392
75392
  var kleur = require_kleur();
75393
- var fs$5 = __require("fs");
75394
- var path$7 = __require("path");
75393
+ var fs$6 = __require("fs");
75394
+ var path$8 = __require("path");
75395
75395
  var { makeDirs, match, isObject, safetyObject } = require_utils$3();
75396
75396
  module.exports = function ActionLoggerMiddleware(opts) {
75397
75397
  opts = _.defaultsDeep(opts, {
@@ -75420,7 +75420,7 @@ var require_action_logger = /* @__PURE__ */ __commonJSMin(((exports, module) =>
75420
75420
  } catch {
75421
75421
  data = JSON.stringify(safetyObject(payload), payload instanceof Error ? Object.getOwnPropertyNames(payload) : null, 4);
75422
75422
  }
75423
- fs$5.writeFile(path$7.join(targetFolder, filename), data, () => {});
75423
+ fs$6.writeFile(path$8.join(targetFolder, filename), data, () => {});
75424
75424
  }
75425
75425
  function isWhiteListed(actionName) {
75426
75426
  return !!opts.whitelist.find((pattern) => match(actionName, pattern));
@@ -75435,7 +75435,7 @@ var require_action_logger = /* @__PURE__ */ __commonJSMin(((exports, module) =>
75435
75435
  logger = opts.logger || broker.getLogger("debug");
75436
75436
  nodeID = broker.nodeID;
75437
75437
  if (opts.folder) {
75438
- targetFolder = path$7.join(opts.folder, nodeID);
75438
+ targetFolder = path$8.join(opts.folder, nodeID);
75439
75439
  makeDirs(targetFolder);
75440
75440
  }
75441
75441
  logFn = opts.logLevel ? logger[opts.logLevel] : null;
@@ -78637,7 +78637,7 @@ var require_service_broker = /* @__PURE__ */ __commonJSMin(((exports, module) =>
78637
78637
  var EventEmitter2 = require_eventemitter2().EventEmitter2;
78638
78638
  var _ = require_lodash();
78639
78639
  var { globSync } = require_index_min$1();
78640
- var path$6 = __require("path");
78640
+ var path$7 = __require("path");
78641
78641
  var { format } = __require("util");
78642
78642
  var Transit = require_transit();
78643
78643
  var Registry = require_registry();
@@ -79186,7 +79186,7 @@ var require_service_broker = /* @__PURE__ */ __commonJSMin(((exports, module) =>
79186
79186
  loadServices(folder = "./services", fileMask = "**/*.service.js") {
79187
79187
  this.logger.debug(`Search services in '${folder}/${fileMask}'...`);
79188
79188
  let serviceFiles;
79189
- if (Array.isArray(fileMask)) serviceFiles = fileMask.map((f) => path$6.join(folder, f));
79189
+ if (Array.isArray(fileMask)) serviceFiles = fileMask.map((f) => path$7.join(folder, f));
79190
79190
  else serviceFiles = globSync(folder + "/" + fileMask);
79191
79191
  if (serviceFiles) serviceFiles.forEach((filename) => this.loadService(filename));
79192
79192
  return serviceFiles.length;
@@ -79202,8 +79202,8 @@ var require_service_broker = /* @__PURE__ */ __commonJSMin(((exports, module) =>
79202
79202
  loadService(filePath) {
79203
79203
  let fName, schema;
79204
79204
  try {
79205
- fName = __require.resolve(path$6.resolve(filePath));
79206
- this.logger.debug(`Load service '${path$6.basename(fName)}'...`);
79205
+ fName = __require.resolve(path$7.resolve(filePath));
79206
+ this.logger.debug(`Load service '${path$7.basename(fName)}'...`);
79207
79207
  const r = __require(fName);
79208
79208
  schema = r.default != null ? r.default : r;
79209
79209
  let svc;
@@ -82186,7 +82186,7 @@ var require_leven = /* @__PURE__ */ __commonJSMin(((exports, module) => {
82186
82186
  //#region ../../node_modules/args/lib/utils.js
82187
82187
  var require_utils = /* @__PURE__ */ __commonJSMin(((exports, module) => {
82188
82188
  var { spawn } = __require("child_process");
82189
- var path$5 = __require("path");
82189
+ var path$6 = __require("path");
82190
82190
  var camelcase = require_camelcase();
82191
82191
  var leven = require_leven();
82192
82192
  function similarityBestMatch(mainString, targetStrings) {
@@ -82347,10 +82347,10 @@ var require_utils = /* @__PURE__ */ __commonJSMin(((exports, module) => {
82347
82347
  break;
82348
82348
  }
82349
82349
  if (process.platform === "win32") {
82350
- const binaryExt = path$5.extname(this.binary);
82350
+ const binaryExt = path$6.extname(this.binary);
82351
82351
  const mainModule = process.env.APPVEYOR ? "_fixture" : process.mainModule.filename;
82352
82352
  full = `${mainModule}-${subCommand}`;
82353
- if (path$5.extname(this.binary)) full = `${mainModule.replace(binaryExt, "")}-${subCommand}${binaryExt}`;
82353
+ if (path$6.extname(this.binary)) full = `${mainModule.replace(binaryExt, "")}-${subCommand}${binaryExt}`;
82354
82354
  args.unshift(full);
82355
82355
  this.child = spawn(process.execPath, args, { stdio: "inherit" });
82356
82356
  } else this.child = spawn(full, args, { stdio: "inherit" });
@@ -82543,7 +82543,7 @@ var require_lib$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
82543
82543
  //#endregion
82544
82544
  //#region ../../node_modules/args/lib/parse.js
82545
82545
  var require_parse = /* @__PURE__ */ __commonJSMin(((exports, module) => {
82546
- var path$4 = __require("path");
82546
+ var path$5 = __require("path");
82547
82547
  var parser = require_lib$1();
82548
82548
  module.exports = function(argv, options) {
82549
82549
  Object.assign(this.config, options);
@@ -82558,7 +82558,7 @@ var require_parse = /* @__PURE__ */ __commonJSMin(((exports, module) => {
82558
82558
  }
82559
82559
  else this.printSubColor = this.printSubColor[this.config.subColor];
82560
82560
  this.raw = parser(argv.slice(1), this.config.mri || this.config.minimist);
82561
- this.binary = path$4.basename(this.raw._[0]);
82561
+ this.binary = path$5.basename(this.raw._[0]);
82562
82562
  if (this.config.version) this.checkVersion();
82563
82563
  if (this.config.help) this.checkHelp();
82564
82564
  const subCommand = this.raw._[1];
@@ -82643,8 +82643,8 @@ var require_help = /* @__PURE__ */ __commonJSMin(((exports, module) => {
82643
82643
  //#endregion
82644
82644
  //#region ../../node_modules/args/lib/version.js
82645
82645
  var require_version = /* @__PURE__ */ __commonJSMin(((exports, module) => {
82646
- var fs$4 = __require("fs");
82647
- var path$3 = __require("path");
82646
+ var fs$5 = __require("fs");
82647
+ var path$4 = __require("path");
82648
82648
  /**
82649
82649
  * Retrieves the main module package.json information.
82650
82650
  *
@@ -82655,13 +82655,13 @@ var require_version = /* @__PURE__ */ __commonJSMin(((exports, module) => {
82655
82655
  * An object containing the package.json contents or NULL if it could not be found.
82656
82656
  */
82657
82657
  function findPackage(directory) {
82658
- const file = path$3.resolve(directory, "package.json");
82659
- if (fs$4.existsSync(file) && fs$4.statSync(file).isFile()) return __require(file);
82660
- const parent = path$3.resolve(directory, "..");
82658
+ const file = path$4.resolve(directory, "package.json");
82659
+ if (fs$5.existsSync(file) && fs$5.statSync(file).isFile()) return __require(file);
82660
+ const parent = path$4.resolve(directory, "..");
82661
82661
  return parent === directory ? null : findPackage(parent);
82662
82662
  }
82663
82663
  module.exports = function() {
82664
- const pkg = findPackage(path$3.dirname(process.mainModule.filename));
82664
+ const pkg = findPackage(path$4.dirname(process.mainModule.filename));
82665
82665
  const version = pkg && pkg.version || "-/-";
82666
82666
  console.log(version);
82667
82667
  if (this.config.exit && this.config.exit.version) process.exit();
@@ -82718,8 +82718,8 @@ var require_lib = /* @__PURE__ */ __commonJSMin(((exports, module) => {
82718
82718
  //#endregion
82719
82719
  //#region ../../node_modules/dotenv/lib/main.js
82720
82720
  var require_main = /* @__PURE__ */ __commonJSMin(((exports, module) => {
82721
- var fs$3 = __require("fs");
82722
- var path$2 = __require("path");
82721
+ var fs$4 = __require("fs");
82722
+ var path$3 = __require("path");
82723
82723
  var os$3 = __require("os");
82724
82724
  var crypto = __require("crypto");
82725
82725
  var TIPS = [
@@ -82846,14 +82846,14 @@ var require_main = /* @__PURE__ */ __commonJSMin(((exports, module) => {
82846
82846
  function _vaultPath(options) {
82847
82847
  let possibleVaultPath = null;
82848
82848
  if (options && options.path && options.path.length > 0) if (Array.isArray(options.path)) {
82849
- for (const filepath of options.path) if (fs$3.existsSync(filepath)) possibleVaultPath = filepath.endsWith(".vault") ? filepath : `${filepath}.vault`;
82849
+ for (const filepath of options.path) if (fs$4.existsSync(filepath)) possibleVaultPath = filepath.endsWith(".vault") ? filepath : `${filepath}.vault`;
82850
82850
  } else possibleVaultPath = options.path.endsWith(".vault") ? options.path : `${options.path}.vault`;
82851
- else possibleVaultPath = path$2.resolve(process.cwd(), ".env.vault");
82852
- if (fs$3.existsSync(possibleVaultPath)) return possibleVaultPath;
82851
+ else possibleVaultPath = path$3.resolve(process.cwd(), ".env.vault");
82852
+ if (fs$4.existsSync(possibleVaultPath)) return possibleVaultPath;
82853
82853
  return null;
82854
82854
  }
82855
82855
  function _resolveHome(envPath) {
82856
- return envPath[0] === "~" ? path$2.join(os$3.homedir(), envPath.slice(1)) : envPath;
82856
+ return envPath[0] === "~" ? path$3.join(os$3.homedir(), envPath.slice(1)) : envPath;
82857
82857
  }
82858
82858
  function _configVault(options) {
82859
82859
  const debug = parseBoolean(process.env.DOTENV_CONFIG_DEBUG || options && options.debug);
@@ -82866,7 +82866,7 @@ var require_main = /* @__PURE__ */ __commonJSMin(((exports, module) => {
82866
82866
  return { parsed };
82867
82867
  }
82868
82868
  function configDotenv(options) {
82869
- const dotenvPath = path$2.resolve(process.cwd(), ".env");
82869
+ const dotenvPath = path$3.resolve(process.cwd(), ".env");
82870
82870
  let encoding = "utf8";
82871
82871
  let processEnv = process.env;
82872
82872
  if (options && options.processEnv != null) processEnv = options.processEnv;
@@ -82883,7 +82883,7 @@ var require_main = /* @__PURE__ */ __commonJSMin(((exports, module) => {
82883
82883
  let lastError;
82884
82884
  const parsedAll = {};
82885
82885
  for (const path of optionPaths) try {
82886
- const parsed = DotenvModule.parse(fs$3.readFileSync(path, { encoding }));
82886
+ const parsed = DotenvModule.parse(fs$4.readFileSync(path, { encoding }));
82887
82887
  DotenvModule.populate(parsedAll, parsed, options);
82888
82888
  } catch (e) {
82889
82889
  if (debug) _debug(`failed to load ${path} ${e.message}`);
@@ -82896,7 +82896,7 @@ var require_main = /* @__PURE__ */ __commonJSMin(((exports, module) => {
82896
82896
  const keysCount = Object.keys(populated).length;
82897
82897
  const shortPaths = [];
82898
82898
  for (const filePath of optionPaths) try {
82899
- const relative = path$2.relative(process.cwd(), filePath);
82899
+ const relative = path$3.relative(process.cwd(), filePath);
82900
82900
  shortPaths.push(relative);
82901
82901
  } catch (e) {
82902
82902
  if (debug) _debug(`failed to load ${filePath} ${e.message}`);
@@ -82995,8 +82995,8 @@ var require_runner = /* @__PURE__ */ __commonJSMin(((exports, module) => {
82995
82995
  */
82996
82996
  var ServiceBroker = require_service_broker();
82997
82997
  var utils = require_utils$3();
82998
- var fs$2 = __require("fs");
82999
- var path$1 = __require("path");
82998
+ var fs$3 = __require("fs");
82999
+ var path$2 = __require("path");
83000
83000
  var { globSync } = require_index_min$1();
83001
83001
  var inspect = __require("util").inspect;
83002
83002
  var _ = require_lodash();
@@ -83124,17 +83124,17 @@ var require_runner = /* @__PURE__ */ __commonJSMin(((exports, module) => {
83124
83124
  let filePath;
83125
83125
  const configPath = process.env["MOLECULER_CONFIG"] || this.flags.config;
83126
83126
  if (configPath != null) {
83127
- if (path$1.isAbsolute(configPath)) filePath = this.tryConfigPath(configPath);
83127
+ if (path$2.isAbsolute(configPath)) filePath = this.tryConfigPath(configPath);
83128
83128
  else {
83129
- filePath = this.tryConfigPath(path$1.resolve(process.cwd(), configPath));
83129
+ filePath = this.tryConfigPath(path$2.resolve(process.cwd(), configPath));
83130
83130
  if (filePath == null) filePath = this.tryConfigPath(configPath, true);
83131
83131
  }
83132
83132
  if (filePath == null) return Promise.reject(/* @__PURE__ */ new Error(`Config file not found: ${configPath}`));
83133
83133
  }
83134
- if (filePath == null) filePath = this.tryConfigPath(path$1.resolve(process.cwd(), "moleculer.config.js"));
83135
- if (filePath == null) filePath = this.tryConfigPath(path$1.resolve(process.cwd(), "moleculer.config.json"));
83134
+ if (filePath == null) filePath = this.tryConfigPath(path$2.resolve(process.cwd(), "moleculer.config.js"));
83135
+ if (filePath == null) filePath = this.tryConfigPath(path$2.resolve(process.cwd(), "moleculer.config.json"));
83136
83136
  if (filePath == null) return Promise.resolve({});
83137
- const ext = path$1.extname(filePath);
83137
+ const ext = path$2.extname(filePath);
83138
83138
  switch (ext) {
83139
83139
  case ".json":
83140
83140
  case ".js":
@@ -83220,7 +83220,7 @@ var require_runner = /* @__PURE__ */ __commonJSMin(((exports, module) => {
83220
83220
  */
83221
83221
  isDirectory(p) {
83222
83222
  try {
83223
- return fs$2.lstatSync(p).isDirectory();
83223
+ return fs$3.lstatSync(p).isDirectory();
83224
83224
  } catch {}
83225
83225
  return false;
83226
83226
  }
@@ -83232,7 +83232,7 @@ var require_runner = /* @__PURE__ */ __commonJSMin(((exports, module) => {
83232
83232
  */
83233
83233
  isServiceFile(p) {
83234
83234
  try {
83235
- return !fs$2.lstatSync(p).isDirectory();
83235
+ return !fs$3.lstatSync(p).isDirectory();
83236
83236
  } catch {}
83237
83237
  return false;
83238
83238
  }
@@ -83257,7 +83257,7 @@ var require_runner = /* @__PURE__ */ __commonJSMin(((exports, module) => {
83257
83257
  this.watchFolders.length = 0;
83258
83258
  const fileMask = this.flags.mask || "**/*.service.js";
83259
83259
  const serviceDir = process.env.SERVICEDIR || "";
83260
- const svcDir = path$1.isAbsolute(serviceDir) ? serviceDir : path$1.resolve(process.cwd(), serviceDir);
83260
+ const svcDir = path$2.isAbsolute(serviceDir) ? serviceDir : path$2.resolve(process.cwd(), serviceDir);
83261
83261
  let patterns = this.servicePaths;
83262
83262
  if (process.env.SERVICES || process.env.SERVICEDIR) {
83263
83263
  if (this.isDirectory(svcDir) && !process.env.SERVICES) {
@@ -83273,7 +83273,7 @@ var require_runner = /* @__PURE__ */ __commonJSMin(((exports, module) => {
83273
83273
  if (p.startsWith("npm:")) this.loadNpmModule(p.slice(4));
83274
83274
  else {
83275
83275
  let files;
83276
- const svcPath = path$1.isAbsolute(p) ? p : path$1.resolve(svcDir, p);
83276
+ const svcPath = path$2.isAbsolute(p) ? p : path$2.resolve(svcDir, p);
83277
83277
  if (this.isDirectory(svcPath)) {
83278
83278
  if (this.config.hotReload) this.watchFolders.push(svcPath);
83279
83279
  files = globSync(svcPath + "/" + fileMask, { absolute: true });
@@ -83445,12 +83445,12 @@ var Gt = (n, t, e) => {
83445
83445
  }
83446
83446
  return h;
83447
83447
  };
83448
- var fe = "\0SLASH" + Math.random() + "\0", ue = "\0OPEN" + Math.random() + "\0", qt = "\0CLOSE" + Math.random() + "\0", de = "\0COMMA" + Math.random() + "\0", pe = "\0PERIOD" + Math.random() + "\0", is = new RegExp(fe, "g"), rs = new RegExp(ue, "g"), ns = new RegExp(qt, "g"), os$1 = new RegExp(de, "g"), hs = new RegExp(pe, "g"), as = /\\\\/g, ls = /\\{/g, cs = /\\}/g, fs$1 = /\\,/g, us = /\\./g, ds = 1e5;
83448
+ var fe = "\0SLASH" + Math.random() + "\0", ue = "\0OPEN" + Math.random() + "\0", qt = "\0CLOSE" + Math.random() + "\0", de = "\0COMMA" + Math.random() + "\0", pe = "\0PERIOD" + Math.random() + "\0", is = new RegExp(fe, "g"), rs = new RegExp(ue, "g"), ns = new RegExp(qt, "g"), os$1 = new RegExp(de, "g"), hs = new RegExp(pe, "g"), as = /\\\\/g, ls = /\\{/g, cs = /\\}/g, fs$2 = /\\,/g, us = /\\./g, ds = 1e5;
83449
83449
  function Ht(n) {
83450
83450
  return isNaN(n) ? n.charCodeAt(0) : parseInt(n, 10);
83451
83451
  }
83452
83452
  function ps(n) {
83453
- return n.replace(as, fe).replace(ls, ue).replace(cs, qt).replace(fs$1, de).replace(us, pe);
83453
+ return n.replace(as, fe).replace(ls, ue).replace(cs, qt).replace(fs$2, de).replace(us, pe);
83454
83454
  }
83455
83455
  function ms(n) {
83456
83456
  return n.replace(is, "\\").replace(rs, "{").replace(ns, "}").replace(os$1, ",").replace(hs, ".");
@@ -86373,7 +86373,7 @@ var Li = (n, t) => typeof n == "string" ? new ot([n], t) : Array.isArray(n) ? ne
86373
86373
  return this.path.isUnknown() && this.path.lstatSync(), this.walkCBSync(this.path, this.patterns, () => this.results.end()), this.results;
86374
86374
  }
86375
86375
  };
86376
- var Pi = typeof process == "object" && process && typeof process.platform == "string" ? process.platform : "linux", I$1 = class {
86376
+ var Pi = typeof process == "object" && process && typeof process.platform == "string" ? process.platform : "linux", I = class {
86377
86377
  absolute;
86378
86378
  cwd;
86379
86379
  root;
@@ -86498,22 +86498,22 @@ var le = (n, t = {}) => {
86498
86498
  return !1;
86499
86499
  };
86500
86500
  function Bt(n, t = {}) {
86501
- return new I$1(n, t).streamSync();
86501
+ return new I(n, t).streamSync();
86502
86502
  }
86503
86503
  function Qe(n, t = {}) {
86504
- return new I$1(n, t).stream();
86504
+ return new I(n, t).stream();
86505
86505
  }
86506
86506
  function ts(n, t = {}) {
86507
- return new I$1(n, t).walkSync();
86507
+ return new I(n, t).walkSync();
86508
86508
  }
86509
86509
  async function Je(n, t = {}) {
86510
- return new I$1(n, t).walk();
86510
+ return new I(n, t).walk();
86511
86511
  }
86512
86512
  function Ut(n, t = {}) {
86513
- return new I$1(n, t).iterateSync();
86513
+ return new I(n, t).iterateSync();
86514
86514
  }
86515
86515
  function es(n, t = {}) {
86516
- return new I$1(n, t).iterate();
86516
+ return new I(n, t).iterate();
86517
86517
  }
86518
86518
  var ji = Bt, Ii = Object.assign(Qe, { sync: Bt }), zi = Ut, Bi = Object.assign(es, { sync: Ut }), Ui = Object.assign(ts, {
86519
86519
  stream: Bt,
@@ -86530,7 +86530,7 @@ var ji = Bt, Ii = Object.assign(Qe, { sync: Bt }), zi = Ut, Bi = Object.assign(e
86530
86530
  iterate: Bi,
86531
86531
  globIterateSync: Ut,
86532
86532
  iterateSync: zi,
86533
- Glob: I$1,
86533
+ Glob: I,
86534
86534
  hasMagic: le,
86535
86535
  escape: tt,
86536
86536
  unescape: W