@uipath/resourcecatalog-tool 1.197.0 → 1.198.0-preview.101

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 (3) hide show
  1. package/dist/index.js +1540 -1040
  2. package/dist/tool.js +1540 -1040
  3. package/package.json +2 -2
package/dist/index.js CHANGED
@@ -16178,7 +16178,7 @@ var require_TimeoutError = __commonJS((exports) => {
16178
16178
  });
16179
16179
 
16180
16180
  // ../../../node_modules/@uipath/robot-client/node_modules/rxjs/internal/operators/map.js
16181
- var require_map2 = __commonJS((exports) => {
16181
+ var require_map = __commonJS((exports) => {
16182
16182
  var __extends = exports && exports.__extends || function() {
16183
16183
  var extendStatics = function(d, b) {
16184
16184
  extendStatics = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(d2, b2) {
@@ -16200,7 +16200,7 @@ var require_map2 = __commonJS((exports) => {
16200
16200
  }();
16201
16201
  Object.defineProperty(exports, "__esModule", { value: true });
16202
16202
  var Subscriber_1 = require_Subscriber();
16203
- function map(project, thisArg) {
16203
+ function map2(project, thisArg) {
16204
16204
  return function mapOperation(source) {
16205
16205
  if (typeof project !== "function") {
16206
16206
  throw new TypeError("argument is not a function. Are you looking for `mapTo()`?");
@@ -16208,7 +16208,7 @@ var require_map2 = __commonJS((exports) => {
16208
16208
  return source.lift(new MapOperator(project, thisArg));
16209
16209
  };
16210
16210
  }
16211
- exports.map = map;
16211
+ exports.map = map2;
16212
16212
  var MapOperator = function() {
16213
16213
  function MapOperator2(project, thisArg) {
16214
16214
  this.project = project;
@@ -16248,7 +16248,7 @@ var require_bindCallback = __commonJS((exports) => {
16248
16248
  Object.defineProperty(exports, "__esModule", { value: true });
16249
16249
  var Observable_1 = require_Observable();
16250
16250
  var AsyncSubject_1 = require_AsyncSubject();
16251
- var map_1 = require_map2();
16251
+ var map_1 = require_map();
16252
16252
  var canReportError_1 = require_canReportError();
16253
16253
  var isArray_1 = require_isArray();
16254
16254
  var isScheduler_1 = require_isScheduler();
@@ -16352,7 +16352,7 @@ var require_bindNodeCallback = __commonJS((exports) => {
16352
16352
  Object.defineProperty(exports, "__esModule", { value: true });
16353
16353
  var Observable_1 = require_Observable();
16354
16354
  var AsyncSubject_1 = require_AsyncSubject();
16355
- var map_1 = require_map2();
16355
+ var map_1 = require_map();
16356
16356
  var canReportError_1 = require_canReportError();
16357
16357
  var isScheduler_1 = require_isScheduler();
16358
16358
  var isArray_1 = require_isArray();
@@ -17142,7 +17142,7 @@ var require_mergeMap = __commonJS((exports) => {
17142
17142
  };
17143
17143
  }();
17144
17144
  Object.defineProperty(exports, "__esModule", { value: true });
17145
- var map_1 = require_map2();
17145
+ var map_1 = require_map();
17146
17146
  var from_1 = require_from();
17147
17147
  var innerSubscribe_1 = require_innerSubscribe();
17148
17148
  function mergeMap(project, resultSelector, concurrent) {
@@ -17313,7 +17313,7 @@ var require_forkJoin = __commonJS((exports) => {
17313
17313
  Object.defineProperty(exports, "__esModule", { value: true });
17314
17314
  var Observable_1 = require_Observable();
17315
17315
  var isArray_1 = require_isArray();
17316
- var map_1 = require_map2();
17316
+ var map_1 = require_map();
17317
17317
  var isObject_1 = require_isObject();
17318
17318
  var from_1 = require_from();
17319
17319
  function forkJoin() {
@@ -17393,7 +17393,7 @@ var require_fromEvent = __commonJS((exports) => {
17393
17393
  var Observable_1 = require_Observable();
17394
17394
  var isArray_1 = require_isArray();
17395
17395
  var isFunction_1 = require_isFunction();
17396
- var map_1 = require_map2();
17396
+ var map_1 = require_map();
17397
17397
  var toString = function() {
17398
17398
  return Object.prototype.toString;
17399
17399
  }();
@@ -17465,7 +17465,7 @@ var require_fromEventPattern = __commonJS((exports) => {
17465
17465
  var Observable_1 = require_Observable();
17466
17466
  var isArray_1 = require_isArray();
17467
17467
  var isFunction_1 = require_isFunction();
17468
- var map_1 = require_map2();
17468
+ var map_1 = require_map();
17469
17469
  function fromEventPattern(addHandler, removeHandler, resultSelector) {
17470
17470
  if (resultSelector) {
17471
17471
  return fromEventPattern(addHandler, removeHandler).pipe(map_1.map(function(args) {
@@ -17680,13 +17680,13 @@ var require_interval = __commonJS((exports) => {
17680
17680
  });
17681
17681
 
17682
17682
  // ../../../node_modules/@uipath/robot-client/node_modules/rxjs/internal/observable/merge.js
17683
- var require_merge2 = __commonJS((exports) => {
17683
+ var require_merge = __commonJS((exports) => {
17684
17684
  Object.defineProperty(exports, "__esModule", { value: true });
17685
17685
  var Observable_1 = require_Observable();
17686
17686
  var isScheduler_1 = require_isScheduler();
17687
17687
  var mergeAll_1 = require_mergeAll();
17688
17688
  var fromArray_1 = require_fromArray();
17689
- function merge() {
17689
+ function merge2() {
17690
17690
  var observables = [];
17691
17691
  for (var _i = 0;_i < arguments.length; _i++) {
17692
17692
  observables[_i] = arguments[_i];
@@ -17707,7 +17707,7 @@ var require_merge2 = __commonJS((exports) => {
17707
17707
  }
17708
17708
  return mergeAll_1.mergeAll(concurrent)(fromArray_1.fromArray(observables, scheduler));
17709
17709
  }
17710
- exports.merge = merge;
17710
+ exports.merge = merge2;
17711
17711
  });
17712
17712
 
17713
17713
  // ../../../node_modules/@uipath/robot-client/node_modules/rxjs/internal/observable/never.js
@@ -17758,11 +17758,11 @@ var require_onErrorResumeNext = __commonJS((exports) => {
17758
17758
  });
17759
17759
 
17760
17760
  // ../../../node_modules/@uipath/robot-client/node_modules/rxjs/internal/observable/pairs.js
17761
- var require_pairs2 = __commonJS((exports) => {
17761
+ var require_pairs = __commonJS((exports) => {
17762
17762
  Object.defineProperty(exports, "__esModule", { value: true });
17763
17763
  var Observable_1 = require_Observable();
17764
17764
  var Subscription_1 = require_Subscription();
17765
- function pairs(obj, scheduler) {
17765
+ function pairs2(obj, scheduler) {
17766
17766
  if (!scheduler) {
17767
17767
  return new Observable_1.Observable(function(subscriber) {
17768
17768
  var keys = Object.keys(obj);
@@ -17783,7 +17783,7 @@ var require_pairs2 = __commonJS((exports) => {
17783
17783
  });
17784
17784
  }
17785
17785
  }
17786
- exports.pairs = pairs;
17786
+ exports.pairs = pairs2;
17787
17787
  function dispatch(state) {
17788
17788
  var { keys, index, subscriber, subscription, obj } = state;
17789
17789
  if (!subscriber.closed) {
@@ -18442,7 +18442,7 @@ var require_rxjs = __commonJS((exports) => {
18442
18442
  exports.iif = iif_1.iif;
18443
18443
  var interval_1 = require_interval();
18444
18444
  exports.interval = interval_1.interval;
18445
- var merge_1 = require_merge2();
18445
+ var merge_1 = require_merge();
18446
18446
  exports.merge = merge_1.merge;
18447
18447
  var never_1 = require_never();
18448
18448
  exports.never = never_1.never;
@@ -18450,7 +18450,7 @@ var require_rxjs = __commonJS((exports) => {
18450
18450
  exports.of = of_1.of;
18451
18451
  var onErrorResumeNext_1 = require_onErrorResumeNext();
18452
18452
  exports.onErrorResumeNext = onErrorResumeNext_1.onErrorResumeNext;
18453
- var pairs_1 = require_pairs2();
18453
+ var pairs_1 = require_pairs();
18454
18454
  exports.pairs = pairs_1.pairs;
18455
18455
  var partition_1 = require_partition();
18456
18456
  exports.partition = partition_1.partition;
@@ -21247,7 +21247,7 @@ var {
21247
21247
  var package_default = {
21248
21248
  name: "@uipath/resourcecatalog-tool",
21249
21249
  license: "MIT",
21250
- version: "1.197.0",
21250
+ version: "1.198.0-preview.101",
21251
21251
  description: "CLI plugin for the UiPath Resource Catalog Service.",
21252
21252
  private: false,
21253
21253
  repository: {
@@ -21349,8 +21349,15 @@ var TLS_ERROR_CODES = new Set([
21349
21349
  var TLS_INSTRUCTIONS = "The server's TLS certificate could not be verified. Most often a " + "corporate proxy/firewall re-signs HTTPS with a root CA that Node does " + "not trust — set NODE_EXTRA_CA_CERTS to that CA's PEM file (and HTTPS_PROXY " + "if you connect through a proxy). If the certificate is instead expired or " + "its hostname does not match, fix the endpoint URL or the system clock. " + "Then retry.";
21350
21350
  var NETWORK_INSTRUCTIONS = "Could not reach the UiPath service. Check your network connection and " + "VPN, confirm any HTTP_PROXY/HTTPS_PROXY/NO_PROXY settings are correct, " + "then retry.";
21351
21351
  function describeConnectivityError(error) {
21352
- let current = error;
21353
- for (let depth = 0;depth < 5 && current !== null && typeof current === "object"; depth++) {
21352
+ const queue = [error];
21353
+ const seen = new Set;
21354
+ for (let steps = 0;queue.length > 0 && steps < 32; steps++) {
21355
+ const current = queue.shift();
21356
+ if (current === null || typeof current !== "object")
21357
+ continue;
21358
+ if (seen.has(current))
21359
+ continue;
21360
+ seen.add(current);
21354
21361
  const cur = current;
21355
21362
  const code = typeof cur.code === "string" ? cur.code : undefined;
21356
21363
  const message = typeof cur.message === "string" ? cur.message : undefined;
@@ -21370,7 +21377,10 @@ function describeConnectivityError(error) {
21370
21377
  instructions: NETWORK_INSTRUCTIONS
21371
21378
  };
21372
21379
  }
21373
- current = cur.cause;
21380
+ if (cur.cause !== undefined)
21381
+ queue.push(cur.cause);
21382
+ if (Array.isArray(cur.errors))
21383
+ queue.push(...cur.errors);
21374
21384
  }
21375
21385
  return;
21376
21386
  }
@@ -23643,31 +23653,17 @@ function search(data, expression, options) {
23643
23653
  }
23644
23654
 
23645
23655
  // ../../../node_modules/js-yaml/dist/js-yaml.mjs
23646
- /*! js-yaml 4.2.0 https://github.com/nodeca/js-yaml @license MIT */
23647
- var __create2 = Object.create;
23648
- var __defProp2 = Object.defineProperty;
23649
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
23650
- var __getOwnPropNames2 = Object.getOwnPropertyNames;
23651
- var __getProtoOf2 = Object.getPrototypeOf;
23652
- var __hasOwnProp2 = Object.prototype.hasOwnProperty;
23653
- var __commonJSMin = (cb, mod2) => () => (mod2 || (cb((mod2 = { exports: {} }).exports, mod2), cb = null), mod2.exports);
23654
- var __copyProps = (to, from, except, desc) => {
23655
- if (from && typeof from === "object" || typeof from === "function")
23656
- for (var keys = __getOwnPropNames2(from), i = 0, n = keys.length, key;i < n; i++) {
23657
- key = keys[i];
23658
- if (!__hasOwnProp2.call(to, key) && key !== except)
23659
- __defProp2(to, key, {
23660
- get: ((k) => from[k]).bind(null, key),
23661
- enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
23662
- });
23663
- }
23664
- return to;
23665
- };
23666
- var __toESM2 = (mod2, isNodeMode, target) => (target = mod2 != null ? __create2(__getProtoOf2(mod2)) : {}, __copyProps(isNodeMode || !mod2 || !mod2.__esModule ? __defProp2(target, "default", {
23667
- value: mod2,
23668
- enumerable: true
23669
- }) : target, mod2));
23670
- var require_common = /* @__PURE__ */ __commonJSMin((exports, module) => {
23656
+ function getDefaultExportFromCjs(x) {
23657
+ return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, "default") ? x["default"] : x;
23658
+ }
23659
+ var jsYaml = {};
23660
+ var loader = {};
23661
+ var common = {};
23662
+ var hasRequiredCommon;
23663
+ function requireCommon() {
23664
+ if (hasRequiredCommon)
23665
+ return common;
23666
+ hasRequiredCommon = 1;
23671
23667
  function isNothing(subject) {
23672
23668
  return typeof subject === "undefined" || subject === null;
23673
23669
  }
@@ -23693,55 +23689,71 @@ var require_common = /* @__PURE__ */ __commonJSMin((exports, module) => {
23693
23689
  }
23694
23690
  function repeat(string, count) {
23695
23691
  let result = "";
23696
- for (let cycle = 0;cycle < count; cycle += 1)
23692
+ for (let cycle = 0;cycle < count; cycle += 1) {
23697
23693
  result += string;
23694
+ }
23698
23695
  return result;
23699
23696
  }
23700
23697
  function isNegativeZero(number) {
23701
23698
  return number === 0 && Number.NEGATIVE_INFINITY === 1 / number;
23702
23699
  }
23703
- module.exports.isNothing = isNothing;
23704
- module.exports.isObject = isObject2;
23705
- module.exports.toArray = toArray;
23706
- module.exports.repeat = repeat;
23707
- module.exports.isNegativeZero = isNegativeZero;
23708
- module.exports.extend = extend;
23709
- });
23710
- var require_exception = /* @__PURE__ */ __commonJSMin((exports, module) => {
23711
- function formatError(exception, compact) {
23700
+ common.isNothing = isNothing;
23701
+ common.isObject = isObject2;
23702
+ common.toArray = toArray;
23703
+ common.repeat = repeat;
23704
+ common.isNegativeZero = isNegativeZero;
23705
+ common.extend = extend;
23706
+ return common;
23707
+ }
23708
+ var exception;
23709
+ var hasRequiredException;
23710
+ function requireException() {
23711
+ if (hasRequiredException)
23712
+ return exception;
23713
+ hasRequiredException = 1;
23714
+ function formatError(exception2, compact) {
23712
23715
  let where = "";
23713
- const message = exception.reason || "(unknown reason)";
23714
- if (!exception.mark)
23716
+ const message = exception2.reason || "(unknown reason)";
23717
+ if (!exception2.mark)
23715
23718
  return message;
23716
- if (exception.mark.name)
23717
- where += 'in "' + exception.mark.name + '" ';
23718
- where += "(" + (exception.mark.line + 1) + ":" + (exception.mark.column + 1) + ")";
23719
- if (!compact && exception.mark.snippet)
23719
+ if (exception2.mark.name) {
23720
+ where += 'in "' + exception2.mark.name + '" ';
23721
+ }
23722
+ where += "(" + (exception2.mark.line + 1) + ":" + (exception2.mark.column + 1) + ")";
23723
+ if (!compact && exception2.mark.snippet) {
23720
23724
  where += `
23721
23725
 
23722
- ` + exception.mark.snippet;
23726
+ ` + exception2.mark.snippet;
23727
+ }
23723
23728
  return message + " " + where;
23724
23729
  }
23725
- function YAMLException(reason, mark) {
23730
+ function YAMLException2(reason, mark) {
23726
23731
  Error.call(this);
23727
23732
  this.name = "YAMLException";
23728
23733
  this.reason = reason;
23729
23734
  this.mark = mark;
23730
23735
  this.message = formatError(this, false);
23731
- if (Error.captureStackTrace)
23736
+ if (Error.captureStackTrace) {
23732
23737
  Error.captureStackTrace(this, this.constructor);
23733
- else
23734
- this.stack = (/* @__PURE__ */ new Error()).stack || "";
23738
+ } else {
23739
+ this.stack = new Error().stack || "";
23740
+ }
23735
23741
  }
23736
- YAMLException.prototype = Object.create(Error.prototype);
23737
- YAMLException.prototype.constructor = YAMLException;
23738
- YAMLException.prototype.toString = function toString(compact) {
23742
+ YAMLException2.prototype = Object.create(Error.prototype);
23743
+ YAMLException2.prototype.constructor = YAMLException2;
23744
+ YAMLException2.prototype.toString = function toString(compact) {
23739
23745
  return this.name + ": " + formatError(this, compact);
23740
23746
  };
23741
- module.exports = YAMLException;
23742
- });
23743
- var require_snippet = /* @__PURE__ */ __commonJSMin((exports, module) => {
23744
- var common = require_common();
23747
+ exception = YAMLException2;
23748
+ return exception;
23749
+ }
23750
+ var snippet;
23751
+ var hasRequiredSnippet;
23752
+ function requireSnippet() {
23753
+ if (hasRequiredSnippet)
23754
+ return snippet;
23755
+ hasRequiredSnippet = 1;
23756
+ const common2 = requireCommon();
23745
23757
  function getLine(buffer, lineStart, lineEnd, position, maxLineLength) {
23746
23758
  let head = "";
23747
23759
  let tail = "";
@@ -23760,7 +23772,7 @@ var require_snippet = /* @__PURE__ */ __commonJSMin((exports, module) => {
23760
23772
  };
23761
23773
  }
23762
23774
  function padStart(string, max) {
23763
- return common.repeat(" ", max - string.length) + string;
23775
+ return common2.repeat(" ", max - string.length) + string;
23764
23776
  }
23765
23777
  function makeSnippet(mark, options) {
23766
23778
  options = Object.create(options || null);
@@ -23782,8 +23794,9 @@ var require_snippet = /* @__PURE__ */ __commonJSMin((exports, module) => {
23782
23794
  while (match = re.exec(mark.buffer)) {
23783
23795
  lineEnds.push(match.index);
23784
23796
  lineStarts.push(match.index + match[0].length);
23785
- if (mark.position <= match.index && foundLineNo < 0)
23797
+ if (mark.position <= match.index && foundLineNo < 0) {
23786
23798
  foundLineNo = lineStarts.length - 2;
23799
+ }
23787
23800
  }
23788
23801
  if (foundLineNo < 0)
23789
23802
  foundLineNo = lineStarts.length - 1;
@@ -23794,28 +23807,34 @@ var require_snippet = /* @__PURE__ */ __commonJSMin((exports, module) => {
23794
23807
  if (foundLineNo - i < 0)
23795
23808
  break;
23796
23809
  const line2 = getLine(mark.buffer, lineStarts[foundLineNo - i], lineEnds[foundLineNo - i], mark.position - (lineStarts[foundLineNo] - lineStarts[foundLineNo - i]), maxLineLength);
23797
- result = common.repeat(" ", options.indent) + padStart((mark.line - i + 1).toString(), lineNoLength) + " | " + line2.str + `
23810
+ result = common2.repeat(" ", options.indent) + padStart((mark.line - i + 1).toString(), lineNoLength) + " | " + line2.str + `
23798
23811
  ` + result;
23799
23812
  }
23800
23813
  const line = getLine(mark.buffer, lineStarts[foundLineNo], lineEnds[foundLineNo], mark.position, maxLineLength);
23801
- result += common.repeat(" ", options.indent) + padStart((mark.line + 1).toString(), lineNoLength) + " | " + line.str + `
23814
+ result += common2.repeat(" ", options.indent) + padStart((mark.line + 1).toString(), lineNoLength) + " | " + line.str + `
23802
23815
  `;
23803
- result += common.repeat("-", options.indent + lineNoLength + 3 + line.pos) + `^
23816
+ result += common2.repeat("-", options.indent + lineNoLength + 3 + line.pos) + `^
23804
23817
  `;
23805
23818
  for (let i = 1;i <= options.linesAfter; i++) {
23806
23819
  if (foundLineNo + i >= lineEnds.length)
23807
23820
  break;
23808
23821
  const line2 = getLine(mark.buffer, lineStarts[foundLineNo + i], lineEnds[foundLineNo + i], mark.position - (lineStarts[foundLineNo] - lineStarts[foundLineNo + i]), maxLineLength);
23809
- result += common.repeat(" ", options.indent) + padStart((mark.line + i + 1).toString(), lineNoLength) + " | " + line2.str + `
23822
+ result += common2.repeat(" ", options.indent) + padStart((mark.line + i + 1).toString(), lineNoLength) + " | " + line2.str + `
23810
23823
  `;
23811
23824
  }
23812
23825
  return result.replace(/\n$/, "");
23813
23826
  }
23814
- module.exports = makeSnippet;
23815
- });
23816
- var require_type = /* @__PURE__ */ __commonJSMin((exports, module) => {
23817
- var YAMLException = require_exception();
23818
- var TYPE_CONSTRUCTOR_OPTIONS = [
23827
+ snippet = makeSnippet;
23828
+ return snippet;
23829
+ }
23830
+ var type;
23831
+ var hasRequiredType;
23832
+ function requireType() {
23833
+ if (hasRequiredType)
23834
+ return type;
23835
+ hasRequiredType = 1;
23836
+ const YAMLException2 = requireException();
23837
+ const TYPE_CONSTRUCTOR_OPTIONS = [
23819
23838
  "kind",
23820
23839
  "multi",
23821
23840
  "resolve",
@@ -23827,26 +23846,28 @@ var require_type = /* @__PURE__ */ __commonJSMin((exports, module) => {
23827
23846
  "defaultStyle",
23828
23847
  "styleAliases"
23829
23848
  ];
23830
- var YAML_NODE_KINDS = [
23849
+ const YAML_NODE_KINDS = [
23831
23850
  "scalar",
23832
23851
  "sequence",
23833
23852
  "mapping"
23834
23853
  ];
23835
- function compileStyleAliases(map) {
23854
+ function compileStyleAliases(map2) {
23836
23855
  const result = {};
23837
- if (map !== null)
23838
- Object.keys(map).forEach(function(style) {
23839
- map[style].forEach(function(alias) {
23856
+ if (map2 !== null) {
23857
+ Object.keys(map2).forEach(function(style) {
23858
+ map2[style].forEach(function(alias) {
23840
23859
  result[String(alias)] = style;
23841
23860
  });
23842
23861
  });
23862
+ }
23843
23863
  return result;
23844
23864
  }
23845
- function Type(tag, options) {
23865
+ function Type2(tag, options) {
23846
23866
  options = options || {};
23847
23867
  Object.keys(options).forEach(function(name) {
23848
- if (TYPE_CONSTRUCTOR_OPTIONS.indexOf(name) === -1)
23849
- throw new YAMLException('Unknown option "' + name + '" is met in definition of "' + tag + '" YAML type.');
23868
+ if (TYPE_CONSTRUCTOR_OPTIONS.indexOf(name) === -1) {
23869
+ throw new YAMLException2('Unknown option "' + name + '" is met in definition of "' + tag + '" YAML type.');
23870
+ }
23850
23871
  });
23851
23872
  this.options = options;
23852
23873
  this.tag = tag;
@@ -23864,21 +23885,29 @@ var require_type = /* @__PURE__ */ __commonJSMin((exports, module) => {
23864
23885
  this.defaultStyle = options["defaultStyle"] || null;
23865
23886
  this.multi = options["multi"] || false;
23866
23887
  this.styleAliases = compileStyleAliases(options["styleAliases"] || null);
23867
- if (YAML_NODE_KINDS.indexOf(this.kind) === -1)
23868
- throw new YAMLException('Unknown kind "' + this.kind + '" is specified for "' + tag + '" YAML type.');
23888
+ if (YAML_NODE_KINDS.indexOf(this.kind) === -1) {
23889
+ throw new YAMLException2('Unknown kind "' + this.kind + '" is specified for "' + tag + '" YAML type.');
23890
+ }
23869
23891
  }
23870
- module.exports = Type;
23871
- });
23872
- var require_schema = /* @__PURE__ */ __commonJSMin((exports, module) => {
23873
- var YAMLException = require_exception();
23874
- var Type = require_type();
23875
- function compileList(schema, name) {
23892
+ type = Type2;
23893
+ return type;
23894
+ }
23895
+ var schema;
23896
+ var hasRequiredSchema;
23897
+ function requireSchema() {
23898
+ if (hasRequiredSchema)
23899
+ return schema;
23900
+ hasRequiredSchema = 1;
23901
+ const YAMLException2 = requireException();
23902
+ const Type2 = requireType();
23903
+ function compileList(schema2, name) {
23876
23904
  const result = [];
23877
- schema[name].forEach(function(currentType) {
23905
+ schema2[name].forEach(function(currentType) {
23878
23906
  let newIndex = result.length;
23879
23907
  result.forEach(function(previousType, previousIndex) {
23880
- if (previousType.tag === currentType.tag && previousType.kind === currentType.kind && previousType.multi === currentType.multi)
23908
+ if (previousType.tag === currentType.tag && previousType.kind === currentType.kind && previousType.multi === currentType.multi) {
23881
23909
  newIndex = previousIndex;
23910
+ }
23882
23911
  });
23883
23912
  result[newIndex] = currentType;
23884
23913
  });
@@ -23897,47 +23926,54 @@ var require_schema = /* @__PURE__ */ __commonJSMin((exports, module) => {
23897
23926
  fallback: []
23898
23927
  }
23899
23928
  };
23900
- function collectType(type) {
23901
- if (type.multi) {
23902
- result.multi[type.kind].push(type);
23903
- result.multi["fallback"].push(type);
23904
- } else
23905
- result[type.kind][type.tag] = result["fallback"][type.tag] = type;
23929
+ function collectType(type2) {
23930
+ if (type2.multi) {
23931
+ result.multi[type2.kind].push(type2);
23932
+ result.multi["fallback"].push(type2);
23933
+ } else {
23934
+ result[type2.kind][type2.tag] = result["fallback"][type2.tag] = type2;
23935
+ }
23906
23936
  }
23907
- for (let index = 0, length = arguments.length;index < length; index += 1)
23937
+ for (let index = 0, length = arguments.length;index < length; index += 1) {
23908
23938
  arguments[index].forEach(collectType);
23939
+ }
23909
23940
  return result;
23910
23941
  }
23911
- function Schema(definition) {
23942
+ function Schema2(definition) {
23912
23943
  return this.extend(definition);
23913
23944
  }
23914
- Schema.prototype.extend = function extend(definition) {
23945
+ Schema2.prototype.extend = function extend(definition) {
23915
23946
  let implicit = [];
23916
23947
  let explicit = [];
23917
- if (definition instanceof Type)
23948
+ if (definition instanceof Type2) {
23918
23949
  explicit.push(definition);
23919
- else if (Array.isArray(definition))
23950
+ } else if (Array.isArray(definition)) {
23920
23951
  explicit = explicit.concat(definition);
23921
- else if (definition && (Array.isArray(definition.implicit) || Array.isArray(definition.explicit))) {
23952
+ } else if (definition && (Array.isArray(definition.implicit) || Array.isArray(definition.explicit))) {
23922
23953
  if (definition.implicit)
23923
23954
  implicit = implicit.concat(definition.implicit);
23924
23955
  if (definition.explicit)
23925
23956
  explicit = explicit.concat(definition.explicit);
23926
- } else
23927
- throw new YAMLException("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })");
23928
- implicit.forEach(function(type) {
23929
- if (!(type instanceof Type))
23930
- throw new YAMLException("Specified list of YAML types (or a single Type object) contains a non-Type object.");
23931
- if (type.loadKind && type.loadKind !== "scalar")
23932
- throw new YAMLException("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.");
23933
- if (type.multi)
23934
- throw new YAMLException("There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.");
23957
+ } else {
23958
+ throw new YAMLException2("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })");
23959
+ }
23960
+ implicit.forEach(function(type2) {
23961
+ if (!(type2 instanceof Type2)) {
23962
+ throw new YAMLException2("Specified list of YAML types (or a single Type object) contains a non-Type object.");
23963
+ }
23964
+ if (type2.loadKind && type2.loadKind !== "scalar") {
23965
+ throw new YAMLException2("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.");
23966
+ }
23967
+ if (type2.multi) {
23968
+ throw new YAMLException2("There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.");
23969
+ }
23935
23970
  });
23936
- explicit.forEach(function(type) {
23937
- if (!(type instanceof Type))
23938
- throw new YAMLException("Specified list of YAML types (or a single Type object) contains a non-Type object.");
23971
+ explicit.forEach(function(type2) {
23972
+ if (!(type2 instanceof Type2)) {
23973
+ throw new YAMLException2("Specified list of YAML types (or a single Type object) contains a non-Type object.");
23974
+ }
23939
23975
  });
23940
- const result = Object.create(Schema.prototype);
23976
+ const result = Object.create(Schema2.prototype);
23941
23977
  result.implicit = (this.implicit || []).concat(implicit);
23942
23978
  result.explicit = (this.explicit || []).concat(explicit);
23943
23979
  result.compiledImplicit = compileList(result, "implicit");
@@ -23945,41 +23981,77 @@ var require_schema = /* @__PURE__ */ __commonJSMin((exports, module) => {
23945
23981
  result.compiledTypeMap = compileMap(result.compiledImplicit, result.compiledExplicit);
23946
23982
  return result;
23947
23983
  };
23948
- module.exports = Schema;
23949
- });
23950
- var require_str = /* @__PURE__ */ __commonJSMin((exports, module) => {
23951
- module.exports = new (require_type())("tag:yaml.org,2002:str", {
23984
+ schema = Schema2;
23985
+ return schema;
23986
+ }
23987
+ var str;
23988
+ var hasRequiredStr;
23989
+ function requireStr() {
23990
+ if (hasRequiredStr)
23991
+ return str;
23992
+ hasRequiredStr = 1;
23993
+ const Type2 = requireType();
23994
+ str = new Type2("tag:yaml.org,2002:str", {
23952
23995
  kind: "scalar",
23953
23996
  construct: function(data) {
23954
23997
  return data !== null ? data : "";
23955
23998
  }
23956
23999
  });
23957
- });
23958
- var require_seq = /* @__PURE__ */ __commonJSMin((exports, module) => {
23959
- module.exports = new (require_type())("tag:yaml.org,2002:seq", {
24000
+ return str;
24001
+ }
24002
+ var seq;
24003
+ var hasRequiredSeq;
24004
+ function requireSeq() {
24005
+ if (hasRequiredSeq)
24006
+ return seq;
24007
+ hasRequiredSeq = 1;
24008
+ const Type2 = requireType();
24009
+ seq = new Type2("tag:yaml.org,2002:seq", {
23960
24010
  kind: "sequence",
23961
24011
  construct: function(data) {
23962
24012
  return data !== null ? data : [];
23963
24013
  }
23964
24014
  });
23965
- });
23966
- var require_map = /* @__PURE__ */ __commonJSMin((exports, module) => {
23967
- module.exports = new (require_type())("tag:yaml.org,2002:map", {
24015
+ return seq;
24016
+ }
24017
+ var map;
24018
+ var hasRequiredMap;
24019
+ function requireMap() {
24020
+ if (hasRequiredMap)
24021
+ return map;
24022
+ hasRequiredMap = 1;
24023
+ const Type2 = requireType();
24024
+ map = new Type2("tag:yaml.org,2002:map", {
23968
24025
  kind: "mapping",
23969
24026
  construct: function(data) {
23970
24027
  return data !== null ? data : {};
23971
24028
  }
23972
24029
  });
23973
- });
23974
- var require_failsafe = /* @__PURE__ */ __commonJSMin((exports, module) => {
23975
- module.exports = new (require_schema())({ explicit: [
23976
- require_str(),
23977
- require_seq(),
23978
- require_map()
23979
- ] });
23980
- });
23981
- var require_null = /* @__PURE__ */ __commonJSMin((exports, module) => {
23982
- var Type = require_type();
24030
+ return map;
24031
+ }
24032
+ var failsafe;
24033
+ var hasRequiredFailsafe;
24034
+ function requireFailsafe() {
24035
+ if (hasRequiredFailsafe)
24036
+ return failsafe;
24037
+ hasRequiredFailsafe = 1;
24038
+ const Schema2 = requireSchema();
24039
+ failsafe = new Schema2({
24040
+ explicit: [
24041
+ requireStr(),
24042
+ requireSeq(),
24043
+ requireMap()
24044
+ ]
24045
+ });
24046
+ return failsafe;
24047
+ }
24048
+ var _null;
24049
+ var hasRequired_null;
24050
+ function require_null() {
24051
+ if (hasRequired_null)
24052
+ return _null;
24053
+ hasRequired_null = 1;
24054
+ const Type2 = requireType();
23983
24055
  function resolveYamlNull(data) {
23984
24056
  if (data === null)
23985
24057
  return true;
@@ -23992,7 +24064,7 @@ var require_null = /* @__PURE__ */ __commonJSMin((exports, module) => {
23992
24064
  function isNull(object) {
23993
24065
  return object === null;
23994
24066
  }
23995
- module.exports = new Type("tag:yaml.org,2002:null", {
24067
+ _null = new Type2("tag:yaml.org,2002:null", {
23996
24068
  kind: "scalar",
23997
24069
  resolve: resolveYamlNull,
23998
24070
  construct: constructYamlNull,
@@ -24016,9 +24088,15 @@ var require_null = /* @__PURE__ */ __commonJSMin((exports, module) => {
24016
24088
  },
24017
24089
  defaultStyle: "lowercase"
24018
24090
  });
24019
- });
24020
- var require_bool = /* @__PURE__ */ __commonJSMin((exports, module) => {
24021
- var Type = require_type();
24091
+ return _null;
24092
+ }
24093
+ var bool;
24094
+ var hasRequiredBool;
24095
+ function requireBool() {
24096
+ if (hasRequiredBool)
24097
+ return bool;
24098
+ hasRequiredBool = 1;
24099
+ const Type2 = requireType();
24022
24100
  function resolveYamlBoolean(data) {
24023
24101
  if (data === null)
24024
24102
  return false;
@@ -24031,7 +24109,7 @@ var require_bool = /* @__PURE__ */ __commonJSMin((exports, module) => {
24031
24109
  function isBoolean(object) {
24032
24110
  return Object.prototype.toString.call(object) === "[object Boolean]";
24033
24111
  }
24034
- module.exports = new Type("tag:yaml.org,2002:bool", {
24112
+ bool = new Type2("tag:yaml.org,2002:bool", {
24035
24113
  kind: "scalar",
24036
24114
  resolve: resolveYamlBoolean,
24037
24115
  construct: constructYamlBoolean,
@@ -24049,10 +24127,16 @@ var require_bool = /* @__PURE__ */ __commonJSMin((exports, module) => {
24049
24127
  },
24050
24128
  defaultStyle: "lowercase"
24051
24129
  });
24052
- });
24053
- var require_int = /* @__PURE__ */ __commonJSMin((exports, module) => {
24054
- var common = require_common();
24055
- var Type = require_type();
24130
+ return bool;
24131
+ }
24132
+ var int;
24133
+ var hasRequiredInt;
24134
+ function requireInt() {
24135
+ if (hasRequiredInt)
24136
+ return int;
24137
+ hasRequiredInt = 1;
24138
+ const common2 = requireCommon();
24139
+ const Type2 = requireType();
24056
24140
  function isHexCode(c) {
24057
24141
  return c >= 48 && c <= 57 || c >= 65 && c <= 70 || c >= 97 && c <= 102;
24058
24142
  }
@@ -24071,8 +24155,9 @@ var require_int = /* @__PURE__ */ __commonJSMin((exports, module) => {
24071
24155
  if (!max)
24072
24156
  return false;
24073
24157
  let ch = data[index];
24074
- if (ch === "-" || ch === "+")
24158
+ if (ch === "-" || ch === "+") {
24075
24159
  ch = data[++index];
24160
+ }
24076
24161
  if (ch === "0") {
24077
24162
  if (index + 1 === max)
24078
24163
  return true;
@@ -24085,7 +24170,7 @@ var require_int = /* @__PURE__ */ __commonJSMin((exports, module) => {
24085
24170
  return false;
24086
24171
  hasDigits = true;
24087
24172
  }
24088
- return hasDigits && Number.isFinite(parseYamlInteger(data));
24173
+ return hasDigits && isFinite(parseYamlInteger(data));
24089
24174
  }
24090
24175
  if (ch === "x") {
24091
24176
  index++;
@@ -24094,7 +24179,7 @@ var require_int = /* @__PURE__ */ __commonJSMin((exports, module) => {
24094
24179
  return false;
24095
24180
  hasDigits = true;
24096
24181
  }
24097
- return hasDigits && Number.isFinite(parseYamlInteger(data));
24182
+ return hasDigits && isFinite(parseYamlInteger(data));
24098
24183
  }
24099
24184
  if (ch === "o") {
24100
24185
  index++;
@@ -24103,17 +24188,18 @@ var require_int = /* @__PURE__ */ __commonJSMin((exports, module) => {
24103
24188
  return false;
24104
24189
  hasDigits = true;
24105
24190
  }
24106
- return hasDigits && Number.isFinite(parseYamlInteger(data));
24191
+ return hasDigits && isFinite(parseYamlInteger(data));
24107
24192
  }
24108
24193
  }
24109
24194
  for (;index < max; index++) {
24110
- if (!isDecCode(data.charCodeAt(index)))
24195
+ if (!isDecCode(data.charCodeAt(index))) {
24111
24196
  return false;
24197
+ }
24112
24198
  hasDigits = true;
24113
24199
  }
24114
24200
  if (!hasDigits)
24115
24201
  return false;
24116
- return Number.isFinite(parseYamlInteger(data));
24202
+ return isFinite(parseYamlInteger(data));
24117
24203
  }
24118
24204
  function parseYamlInteger(data) {
24119
24205
  let value = data;
@@ -24141,9 +24227,9 @@ var require_int = /* @__PURE__ */ __commonJSMin((exports, module) => {
24141
24227
  return parseYamlInteger(data);
24142
24228
  }
24143
24229
  function isInteger(object) {
24144
- return Object.prototype.toString.call(object) === "[object Number]" && object % 1 === 0 && !common.isNegativeZero(object);
24230
+ return Object.prototype.toString.call(object) === "[object Number]" && (object % 1 === 0 && !common2.isNegativeZero(object));
24145
24231
  }
24146
- module.exports = new Type("tag:yaml.org,2002:int", {
24232
+ int = new Type2("tag:yaml.org,2002:int", {
24147
24233
  kind: "scalar",
24148
24234
  resolve: resolveYamlInteger,
24149
24235
  construct: constructYamlInteger,
@@ -24170,35 +24256,45 @@ var require_int = /* @__PURE__ */ __commonJSMin((exports, module) => {
24170
24256
  hexadecimal: [16, "hex"]
24171
24257
  }
24172
24258
  });
24173
- });
24174
- var require_float = /* @__PURE__ */ __commonJSMin((exports, module) => {
24175
- var common = require_common();
24176
- var Type = require_type();
24177
- var YAML_FLOAT_PATTERN = /* @__PURE__ */ new RegExp("^(?:[-+]?(?:[0-9]+)(?:\\.[0-9]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");
24178
- var YAML_FLOAT_SPECIAL_PATTERN = /* @__PURE__ */ new RegExp("^(?:[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");
24259
+ return int;
24260
+ }
24261
+ var float;
24262
+ var hasRequiredFloat;
24263
+ function requireFloat() {
24264
+ if (hasRequiredFloat)
24265
+ return float;
24266
+ hasRequiredFloat = 1;
24267
+ const common2 = requireCommon();
24268
+ const Type2 = requireType();
24269
+ const YAML_FLOAT_PATTERN = new RegExp("^(?:[-+]?(?:[0-9]+)(?:\\.[0-9]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");
24270
+ const YAML_FLOAT_SPECIAL_PATTERN = new RegExp("^(?:[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");
24179
24271
  function resolveYamlFloat(data) {
24180
24272
  if (data === null)
24181
24273
  return false;
24182
- if (!YAML_FLOAT_PATTERN.test(data))
24274
+ if (!YAML_FLOAT_PATTERN.test(data)) {
24183
24275
  return false;
24184
- if (Number.isFinite(parseFloat(data, 10)))
24276
+ }
24277
+ if (isFinite(parseFloat(data, 10))) {
24185
24278
  return true;
24279
+ }
24186
24280
  return YAML_FLOAT_SPECIAL_PATTERN.test(data);
24187
24281
  }
24188
24282
  function constructYamlFloat(data) {
24189
24283
  let value = data.toLowerCase();
24190
24284
  const sign = value[0] === "-" ? -1 : 1;
24191
- if ("+-".indexOf(value[0]) >= 0)
24285
+ if ("+-".indexOf(value[0]) >= 0) {
24192
24286
  value = value.slice(1);
24193
- if (value === ".inf")
24287
+ }
24288
+ if (value === ".inf") {
24194
24289
  return sign === 1 ? Number.POSITIVE_INFINITY : Number.NEGATIVE_INFINITY;
24195
- else if (value === ".nan")
24290
+ } else if (value === ".nan") {
24196
24291
  return NaN;
24292
+ }
24197
24293
  return sign * parseFloat(value, 10);
24198
24294
  }
24199
- var SCIENTIFIC_WITHOUT_DOT = /^[-+]?[0-9]+e/;
24295
+ const SCIENTIFIC_WITHOUT_DOT = /^[-+]?[0-9]+e/;
24200
24296
  function representYamlFloat(object, style) {
24201
- if (isNaN(object))
24297
+ if (isNaN(object)) {
24202
24298
  switch (style) {
24203
24299
  case "lowercase":
24204
24300
  return ".nan";
@@ -24207,7 +24303,7 @@ var require_float = /* @__PURE__ */ __commonJSMin((exports, module) => {
24207
24303
  case "camelcase":
24208
24304
  return ".NaN";
24209
24305
  }
24210
- else if (Number.POSITIVE_INFINITY === object)
24306
+ } else if (Number.POSITIVE_INFINITY === object) {
24211
24307
  switch (style) {
24212
24308
  case "lowercase":
24213
24309
  return ".inf";
@@ -24216,7 +24312,7 @@ var require_float = /* @__PURE__ */ __commonJSMin((exports, module) => {
24216
24312
  case "camelcase":
24217
24313
  return ".Inf";
24218
24314
  }
24219
- else if (Number.NEGATIVE_INFINITY === object)
24315
+ } else if (Number.NEGATIVE_INFINITY === object) {
24220
24316
  switch (style) {
24221
24317
  case "lowercase":
24222
24318
  return "-.inf";
@@ -24225,15 +24321,16 @@ var require_float = /* @__PURE__ */ __commonJSMin((exports, module) => {
24225
24321
  case "camelcase":
24226
24322
  return "-.Inf";
24227
24323
  }
24228
- else if (common.isNegativeZero(object))
24324
+ } else if (common2.isNegativeZero(object)) {
24229
24325
  return "-0.0";
24326
+ }
24230
24327
  const res = object.toString(10);
24231
24328
  return SCIENTIFIC_WITHOUT_DOT.test(res) ? res.replace("e", ".e") : res;
24232
24329
  }
24233
24330
  function isFloat(object) {
24234
- return Object.prototype.toString.call(object) === "[object Number]" && (object % 1 !== 0 || common.isNegativeZero(object));
24331
+ return Object.prototype.toString.call(object) === "[object Number]" && (object % 1 !== 0 || common2.isNegativeZero(object));
24235
24332
  }
24236
- module.exports = new Type("tag:yaml.org,2002:float", {
24333
+ float = new Type2("tag:yaml.org,2002:float", {
24237
24334
  kind: "scalar",
24238
24335
  resolve: resolveYamlFloat,
24239
24336
  construct: constructYamlFloat,
@@ -24241,22 +24338,42 @@ var require_float = /* @__PURE__ */ __commonJSMin((exports, module) => {
24241
24338
  represent: representYamlFloat,
24242
24339
  defaultStyle: "lowercase"
24243
24340
  });
24244
- });
24245
- var require_json = /* @__PURE__ */ __commonJSMin((exports, module) => {
24246
- module.exports = require_failsafe().extend({ implicit: [
24247
- require_null(),
24248
- require_bool(),
24249
- require_int(),
24250
- require_float()
24251
- ] });
24252
- });
24253
- var require_core = /* @__PURE__ */ __commonJSMin((exports, module) => {
24254
- module.exports = require_json();
24255
- });
24256
- var require_timestamp = /* @__PURE__ */ __commonJSMin((exports, module) => {
24257
- var Type = require_type();
24258
- var YAML_DATE_REGEXP = /* @__PURE__ */ new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$");
24259
- var YAML_TIMESTAMP_REGEXP = /* @__PURE__ */ new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?$");
24341
+ return float;
24342
+ }
24343
+ var json;
24344
+ var hasRequiredJson;
24345
+ function requireJson() {
24346
+ if (hasRequiredJson)
24347
+ return json;
24348
+ hasRequiredJson = 1;
24349
+ json = requireFailsafe().extend({
24350
+ implicit: [
24351
+ require_null(),
24352
+ requireBool(),
24353
+ requireInt(),
24354
+ requireFloat()
24355
+ ]
24356
+ });
24357
+ return json;
24358
+ }
24359
+ var core;
24360
+ var hasRequiredCore;
24361
+ function requireCore() {
24362
+ if (hasRequiredCore)
24363
+ return core;
24364
+ hasRequiredCore = 1;
24365
+ core = requireJson();
24366
+ return core;
24367
+ }
24368
+ var timestamp;
24369
+ var hasRequiredTimestamp;
24370
+ function requireTimestamp() {
24371
+ if (hasRequiredTimestamp)
24372
+ return timestamp;
24373
+ hasRequiredTimestamp = 1;
24374
+ const Type2 = requireType();
24375
+ const YAML_DATE_REGEXP = new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$");
24376
+ const YAML_TIMESTAMP_REGEXP = new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?$");
24260
24377
  function resolveYamlTimestamp(data) {
24261
24378
  if (data === null)
24262
24379
  return false;
@@ -24277,15 +24394,17 @@ var require_timestamp = /* @__PURE__ */ __commonJSMin((exports, module) => {
24277
24394
  const year = +match[1];
24278
24395
  const month = +match[2] - 1;
24279
24396
  const day = +match[3];
24280
- if (!match[4])
24397
+ if (!match[4]) {
24281
24398
  return new Date(Date.UTC(year, month, day));
24399
+ }
24282
24400
  const hour = +match[4];
24283
24401
  const minute = +match[5];
24284
24402
  const second = +match[6];
24285
24403
  if (match[7]) {
24286
24404
  fraction = match[7].slice(0, 3);
24287
- while (fraction.length < 3)
24405
+ while (fraction.length < 3) {
24288
24406
  fraction += "0";
24407
+ }
24289
24408
  fraction = +fraction;
24290
24409
  }
24291
24410
  if (match[9]) {
@@ -24303,36 +24422,48 @@ var require_timestamp = /* @__PURE__ */ __commonJSMin((exports, module) => {
24303
24422
  function representYamlTimestamp(object) {
24304
24423
  return object.toISOString();
24305
24424
  }
24306
- module.exports = new Type("tag:yaml.org,2002:timestamp", {
24425
+ timestamp = new Type2("tag:yaml.org,2002:timestamp", {
24307
24426
  kind: "scalar",
24308
24427
  resolve: resolveYamlTimestamp,
24309
24428
  construct: constructYamlTimestamp,
24310
24429
  instanceOf: Date,
24311
24430
  represent: representYamlTimestamp
24312
24431
  });
24313
- });
24314
- var require_merge = /* @__PURE__ */ __commonJSMin((exports, module) => {
24315
- var Type = require_type();
24432
+ return timestamp;
24433
+ }
24434
+ var merge;
24435
+ var hasRequiredMerge;
24436
+ function requireMerge() {
24437
+ if (hasRequiredMerge)
24438
+ return merge;
24439
+ hasRequiredMerge = 1;
24440
+ const Type2 = requireType();
24316
24441
  function resolveYamlMerge(data) {
24317
24442
  return data === "<<" || data === null;
24318
24443
  }
24319
- module.exports = new Type("tag:yaml.org,2002:merge", {
24444
+ merge = new Type2("tag:yaml.org,2002:merge", {
24320
24445
  kind: "scalar",
24321
24446
  resolve: resolveYamlMerge
24322
24447
  });
24323
- });
24324
- var require_binary = /* @__PURE__ */ __commonJSMin((exports, module) => {
24325
- var Type = require_type();
24326
- var BASE64_MAP = `ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
24448
+ return merge;
24449
+ }
24450
+ var binary;
24451
+ var hasRequiredBinary;
24452
+ function requireBinary() {
24453
+ if (hasRequiredBinary)
24454
+ return binary;
24455
+ hasRequiredBinary = 1;
24456
+ const Type2 = requireType();
24457
+ const BASE64_MAP = `ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
24327
24458
  \r`;
24328
24459
  function resolveYamlBinary(data) {
24329
24460
  if (data === null)
24330
24461
  return false;
24331
24462
  let bitlen = 0;
24332
24463
  const max = data.length;
24333
- const map = BASE64_MAP;
24464
+ const map2 = BASE64_MAP;
24334
24465
  for (let idx = 0;idx < max; idx++) {
24335
- const code = map.indexOf(data.charAt(idx));
24466
+ const code = map2.indexOf(data.charAt(idx));
24336
24467
  if (code > 64)
24337
24468
  continue;
24338
24469
  if (code < 0)
@@ -24344,7 +24475,7 @@ var require_binary = /* @__PURE__ */ __commonJSMin((exports, module) => {
24344
24475
  function constructYamlBinary(data) {
24345
24476
  const input = data.replace(/[\r\n=]/g, "");
24346
24477
  const max = input.length;
24347
- const map = BASE64_MAP;
24478
+ const map2 = BASE64_MAP;
24348
24479
  let bits = 0;
24349
24480
  const result = [];
24350
24481
  for (let idx = 0;idx < max; idx++) {
@@ -24353,7 +24484,7 @@ var require_binary = /* @__PURE__ */ __commonJSMin((exports, module) => {
24353
24484
  result.push(bits >> 8 & 255);
24354
24485
  result.push(bits & 255);
24355
24486
  }
24356
- bits = bits << 6 | map.indexOf(input.charAt(idx));
24487
+ bits = bits << 6 | map2.indexOf(input.charAt(idx));
24357
24488
  }
24358
24489
  const tailbits = max % 4 * 6;
24359
24490
  if (tailbits === 0) {
@@ -24363,58 +24494,65 @@ var require_binary = /* @__PURE__ */ __commonJSMin((exports, module) => {
24363
24494
  } else if (tailbits === 18) {
24364
24495
  result.push(bits >> 10 & 255);
24365
24496
  result.push(bits >> 2 & 255);
24366
- } else if (tailbits === 12)
24497
+ } else if (tailbits === 12) {
24367
24498
  result.push(bits >> 4 & 255);
24499
+ }
24368
24500
  return new Uint8Array(result);
24369
24501
  }
24370
24502
  function representYamlBinary(object) {
24371
24503
  let result = "";
24372
24504
  let bits = 0;
24373
24505
  const max = object.length;
24374
- const map = BASE64_MAP;
24506
+ const map2 = BASE64_MAP;
24375
24507
  for (let idx = 0;idx < max; idx++) {
24376
24508
  if (idx % 3 === 0 && idx) {
24377
- result += map[bits >> 18 & 63];
24378
- result += map[bits >> 12 & 63];
24379
- result += map[bits >> 6 & 63];
24380
- result += map[bits & 63];
24509
+ result += map2[bits >> 18 & 63];
24510
+ result += map2[bits >> 12 & 63];
24511
+ result += map2[bits >> 6 & 63];
24512
+ result += map2[bits & 63];
24381
24513
  }
24382
24514
  bits = (bits << 8) + object[idx];
24383
24515
  }
24384
24516
  const tail = max % 3;
24385
24517
  if (tail === 0) {
24386
- result += map[bits >> 18 & 63];
24387
- result += map[bits >> 12 & 63];
24388
- result += map[bits >> 6 & 63];
24389
- result += map[bits & 63];
24518
+ result += map2[bits >> 18 & 63];
24519
+ result += map2[bits >> 12 & 63];
24520
+ result += map2[bits >> 6 & 63];
24521
+ result += map2[bits & 63];
24390
24522
  } else if (tail === 2) {
24391
- result += map[bits >> 10 & 63];
24392
- result += map[bits >> 4 & 63];
24393
- result += map[bits << 2 & 63];
24394
- result += map[64];
24523
+ result += map2[bits >> 10 & 63];
24524
+ result += map2[bits >> 4 & 63];
24525
+ result += map2[bits << 2 & 63];
24526
+ result += map2[64];
24395
24527
  } else if (tail === 1) {
24396
- result += map[bits >> 2 & 63];
24397
- result += map[bits << 4 & 63];
24398
- result += map[64];
24399
- result += map[64];
24528
+ result += map2[bits >> 2 & 63];
24529
+ result += map2[bits << 4 & 63];
24530
+ result += map2[64];
24531
+ result += map2[64];
24400
24532
  }
24401
24533
  return result;
24402
24534
  }
24403
24535
  function isBinary(obj) {
24404
24536
  return Object.prototype.toString.call(obj) === "[object Uint8Array]";
24405
24537
  }
24406
- module.exports = new Type("tag:yaml.org,2002:binary", {
24538
+ binary = new Type2("tag:yaml.org,2002:binary", {
24407
24539
  kind: "scalar",
24408
24540
  resolve: resolveYamlBinary,
24409
24541
  construct: constructYamlBinary,
24410
24542
  predicate: isBinary,
24411
24543
  represent: representYamlBinary
24412
24544
  });
24413
- });
24414
- var require_omap = /* @__PURE__ */ __commonJSMin((exports, module) => {
24415
- var Type = require_type();
24416
- var _hasOwnProperty = Object.prototype.hasOwnProperty;
24417
- var _toString = Object.prototype.toString;
24545
+ return binary;
24546
+ }
24547
+ var omap;
24548
+ var hasRequiredOmap;
24549
+ function requireOmap() {
24550
+ if (hasRequiredOmap)
24551
+ return omap;
24552
+ hasRequiredOmap = 1;
24553
+ const Type2 = requireType();
24554
+ const _hasOwnProperty = Object.prototype.hasOwnProperty;
24555
+ const _toString = Object.prototype.toString;
24418
24556
  function resolveYamlOmap(data) {
24419
24557
  if (data === null)
24420
24558
  return true;
@@ -24426,12 +24564,14 @@ var require_omap = /* @__PURE__ */ __commonJSMin((exports, module) => {
24426
24564
  if (_toString.call(pair) !== "[object Object]")
24427
24565
  return false;
24428
24566
  let pairKey;
24429
- for (pairKey in pair)
24430
- if (_hasOwnProperty.call(pair, pairKey))
24567
+ for (pairKey in pair) {
24568
+ if (_hasOwnProperty.call(pair, pairKey)) {
24431
24569
  if (!pairHasKey)
24432
24570
  pairHasKey = true;
24433
24571
  else
24434
24572
  return false;
24573
+ }
24574
+ }
24435
24575
  if (!pairHasKey)
24436
24576
  return false;
24437
24577
  if (objectKeys.indexOf(pairKey) === -1)
@@ -24444,15 +24584,21 @@ var require_omap = /* @__PURE__ */ __commonJSMin((exports, module) => {
24444
24584
  function constructYamlOmap(data) {
24445
24585
  return data !== null ? data : [];
24446
24586
  }
24447
- module.exports = new Type("tag:yaml.org,2002:omap", {
24587
+ omap = new Type2("tag:yaml.org,2002:omap", {
24448
24588
  kind: "sequence",
24449
24589
  resolve: resolveYamlOmap,
24450
24590
  construct: constructYamlOmap
24451
24591
  });
24452
- });
24453
- var require_pairs = /* @__PURE__ */ __commonJSMin((exports, module) => {
24454
- var Type = require_type();
24455
- var _toString = Object.prototype.toString;
24592
+ return omap;
24593
+ }
24594
+ var pairs;
24595
+ var hasRequiredPairs;
24596
+ function requirePairs() {
24597
+ if (hasRequiredPairs)
24598
+ return pairs;
24599
+ hasRequiredPairs = 1;
24600
+ const Type2 = requireType();
24601
+ const _toString = Object.prototype.toString;
24456
24602
  function resolveYamlPairs(data) {
24457
24603
  if (data === null)
24458
24604
  return true;
@@ -24481,64 +24627,85 @@ var require_pairs = /* @__PURE__ */ __commonJSMin((exports, module) => {
24481
24627
  }
24482
24628
  return result;
24483
24629
  }
24484
- module.exports = new Type("tag:yaml.org,2002:pairs", {
24630
+ pairs = new Type2("tag:yaml.org,2002:pairs", {
24485
24631
  kind: "sequence",
24486
24632
  resolve: resolveYamlPairs,
24487
24633
  construct: constructYamlPairs
24488
24634
  });
24489
- });
24490
- var require_set = /* @__PURE__ */ __commonJSMin((exports, module) => {
24491
- var Type = require_type();
24492
- var _hasOwnProperty = Object.prototype.hasOwnProperty;
24635
+ return pairs;
24636
+ }
24637
+ var set;
24638
+ var hasRequiredSet;
24639
+ function requireSet() {
24640
+ if (hasRequiredSet)
24641
+ return set;
24642
+ hasRequiredSet = 1;
24643
+ const Type2 = requireType();
24644
+ const _hasOwnProperty = Object.prototype.hasOwnProperty;
24493
24645
  function resolveYamlSet(data) {
24494
24646
  if (data === null)
24495
24647
  return true;
24496
24648
  const object = data;
24497
- for (const key in object)
24649
+ for (const key in object) {
24498
24650
  if (_hasOwnProperty.call(object, key)) {
24499
24651
  if (object[key] !== null)
24500
24652
  return false;
24501
24653
  }
24654
+ }
24502
24655
  return true;
24503
24656
  }
24504
24657
  function constructYamlSet(data) {
24505
24658
  return data !== null ? data : {};
24506
24659
  }
24507
- module.exports = new Type("tag:yaml.org,2002:set", {
24660
+ set = new Type2("tag:yaml.org,2002:set", {
24508
24661
  kind: "mapping",
24509
24662
  resolve: resolveYamlSet,
24510
24663
  construct: constructYamlSet
24511
24664
  });
24512
- });
24513
- var require_default = /* @__PURE__ */ __commonJSMin((exports, module) => {
24514
- module.exports = require_core().extend({
24515
- implicit: [require_timestamp(), require_merge()],
24665
+ return set;
24666
+ }
24667
+ var _default;
24668
+ var hasRequired_default;
24669
+ function require_default() {
24670
+ if (hasRequired_default)
24671
+ return _default;
24672
+ hasRequired_default = 1;
24673
+ _default = requireCore().extend({
24674
+ implicit: [
24675
+ requireTimestamp(),
24676
+ requireMerge()
24677
+ ],
24516
24678
  explicit: [
24517
- require_binary(),
24518
- require_omap(),
24519
- require_pairs(),
24520
- require_set()
24679
+ requireBinary(),
24680
+ requireOmap(),
24681
+ requirePairs(),
24682
+ requireSet()
24521
24683
  ]
24522
24684
  });
24523
- });
24524
- var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
24525
- var common = require_common();
24526
- var YAMLException = require_exception();
24527
- var makeSnippet = require_snippet();
24528
- var DEFAULT_SCHEMA = require_default();
24529
- var _hasOwnProperty = Object.prototype.hasOwnProperty;
24530
- var CONTEXT_FLOW_IN = 1;
24531
- var CONTEXT_FLOW_OUT = 2;
24532
- var CONTEXT_BLOCK_IN = 3;
24533
- var CONTEXT_BLOCK_OUT = 4;
24534
- var CHOMPING_CLIP = 1;
24535
- var CHOMPING_STRIP = 2;
24536
- var CHOMPING_KEEP = 3;
24537
- var PATTERN_NON_PRINTABLE = /[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/;
24538
- var PATTERN_NON_ASCII_LINE_BREAKS = /[\x85\u2028\u2029]/;
24539
- var PATTERN_FLOW_INDICATORS = /[,\[\]{}]/;
24540
- var PATTERN_TAG_HANDLE = /^(?:!|!!|![0-9A-Za-z-]+!)$/;
24541
- var PATTERN_TAG_URI = /^(?:!|[^,\[\]{}])(?:%[0-9a-f]{2}|[0-9a-z\-#;/?:@&=+$,_.!~*'()\[\]])*$/i;
24685
+ return _default;
24686
+ }
24687
+ var hasRequiredLoader;
24688
+ function requireLoader() {
24689
+ if (hasRequiredLoader)
24690
+ return loader;
24691
+ hasRequiredLoader = 1;
24692
+ const common2 = requireCommon();
24693
+ const YAMLException2 = requireException();
24694
+ const makeSnippet = requireSnippet();
24695
+ const DEFAULT_SCHEMA2 = require_default();
24696
+ const _hasOwnProperty = Object.prototype.hasOwnProperty;
24697
+ const CONTEXT_FLOW_IN = 1;
24698
+ const CONTEXT_FLOW_OUT = 2;
24699
+ const CONTEXT_BLOCK_IN = 3;
24700
+ const CONTEXT_BLOCK_OUT = 4;
24701
+ const CHOMPING_CLIP = 1;
24702
+ const CHOMPING_STRIP = 2;
24703
+ const CHOMPING_KEEP = 3;
24704
+ const PATTERN_NON_PRINTABLE = /[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/;
24705
+ const PATTERN_NON_ASCII_LINE_BREAKS = /[\x85\u2028\u2029]/;
24706
+ const PATTERN_FLOW_INDICATORS = /[,\[\]{}]/;
24707
+ const PATTERN_TAG_HANDLE = /^(?:!|!!|![0-9A-Za-z-]+!)$/;
24708
+ const PATTERN_TAG_URI = /^(?:!|[^,\[\]{}])(?:%[0-9a-f]{2}|[0-9a-z\-#;/?:@&=+$,_.!~*'()\[\]])*$/i;
24542
24709
  function _class(obj) {
24543
24710
  return Object.prototype.toString.call(obj);
24544
24711
  }
@@ -24555,25 +24722,31 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
24555
24722
  return c === 44 || c === 91 || c === 93 || c === 123 || c === 125;
24556
24723
  }
24557
24724
  function fromHexCode(c) {
24558
- if (c >= 48 && c <= 57)
24725
+ if (c >= 48 && c <= 57) {
24559
24726
  return c - 48;
24727
+ }
24560
24728
  const lc = c | 32;
24561
- if (lc >= 97 && lc <= 102)
24729
+ if (lc >= 97 && lc <= 102) {
24562
24730
  return lc - 97 + 10;
24731
+ }
24563
24732
  return -1;
24564
24733
  }
24565
24734
  function escapedHexLen(c) {
24566
- if (c === 120)
24735
+ if (c === 120) {
24567
24736
  return 2;
24568
- if (c === 117)
24737
+ }
24738
+ if (c === 117) {
24569
24739
  return 4;
24570
- if (c === 85)
24740
+ }
24741
+ if (c === 85) {
24571
24742
  return 8;
24743
+ }
24572
24744
  return 0;
24573
24745
  }
24574
24746
  function fromDecimalCode(c) {
24575
- if (c >= 48 && c <= 57)
24747
+ if (c >= 48 && c <= 57) {
24576
24748
  return c - 48;
24749
+ }
24577
24750
  return -1;
24578
24751
  }
24579
24752
  function simpleEscapeSequence(c) {
@@ -24620,23 +24793,25 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
24620
24793
  }
24621
24794
  }
24622
24795
  function charFromCodepoint(c) {
24623
- if (c <= 65535)
24796
+ if (c <= 65535) {
24624
24797
  return String.fromCharCode(c);
24798
+ }
24625
24799
  return String.fromCharCode((c - 65536 >> 10) + 55296, (c - 65536 & 1023) + 56320);
24626
24800
  }
24627
24801
  function setProperty(object, key, value) {
24628
- if (key === "__proto__")
24802
+ if (key === "__proto__") {
24629
24803
  Object.defineProperty(object, key, {
24630
24804
  configurable: true,
24631
24805
  enumerable: true,
24632
24806
  writable: true,
24633
24807
  value
24634
24808
  });
24635
- else
24809
+ } else {
24636
24810
  object[key] = value;
24811
+ }
24637
24812
  }
24638
- var simpleEscapeCheck = new Array(256);
24639
- var simpleEscapeMap = new Array(256);
24813
+ const simpleEscapeCheck = new Array(256);
24814
+ const simpleEscapeMap = new Array(256);
24640
24815
  for (let i = 0;i < 256; i++) {
24641
24816
  simpleEscapeCheck[i] = simpleEscapeSequence(i) ? 1 : 0;
24642
24817
  simpleEscapeMap[i] = simpleEscapeSequence(i);
@@ -24644,13 +24819,13 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
24644
24819
  function State(input, options) {
24645
24820
  this.input = input;
24646
24821
  this.filename = options["filename"] || null;
24647
- this.schema = options["schema"] || DEFAULT_SCHEMA;
24822
+ this.schema = options["schema"] || DEFAULT_SCHEMA2;
24648
24823
  this.onWarning = options["onWarning"] || null;
24649
24824
  this.legacy = options["legacy"] || false;
24650
24825
  this.json = options["json"] || false;
24651
24826
  this.listener = options["listener"] || null;
24652
24827
  this.maxDepth = typeof options["maxDepth"] === "number" ? options["maxDepth"] : 100;
24653
- this.maxMergeSeqLength = typeof options["maxMergeSeqLength"] === "number" ? options["maxMergeSeqLength"] : 20;
24828
+ this.maxTotalMergeKeys = typeof options["maxTotalMergeKeys"] === "number" ? options["maxTotalMergeKeys"] : 1e4;
24654
24829
  this.implicitTypes = this.schema.compiledImplicit;
24655
24830
  this.typeMap = this.schema.compiledTypeMap;
24656
24831
  this.length = input.length;
@@ -24659,6 +24834,7 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
24659
24834
  this.lineStart = 0;
24660
24835
  this.lineIndent = 0;
24661
24836
  this.depth = 0;
24837
+ this.totalMergeKeys = 0;
24662
24838
  this.firstTabInLine = -1;
24663
24839
  this.documents = [];
24664
24840
  this.anchorMapTransactions = [];
@@ -24672,29 +24848,31 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
24672
24848
  column: state.position - state.lineStart
24673
24849
  };
24674
24850
  mark.snippet = makeSnippet(mark);
24675
- return new YAMLException(message, mark);
24851
+ return new YAMLException2(message, mark);
24676
24852
  }
24677
24853
  function throwError(state, message) {
24678
24854
  throw generateError(state, message);
24679
24855
  }
24680
24856
  function throwWarning(state, message) {
24681
- if (state.onWarning)
24857
+ if (state.onWarning) {
24682
24858
  state.onWarning.call(null, generateError(state, message));
24859
+ }
24683
24860
  }
24684
24861
  function storeAnchor(state, name, value) {
24685
24862
  const transactions = state.anchorMapTransactions;
24686
24863
  if (transactions.length !== 0) {
24687
24864
  const transaction = transactions[transactions.length - 1];
24688
- if (!_hasOwnProperty.call(transaction, name))
24865
+ if (!_hasOwnProperty.call(transaction, name)) {
24689
24866
  transaction[name] = {
24690
24867
  existed: _hasOwnProperty.call(state.anchorMap, name),
24691
24868
  value: state.anchorMap[name]
24692
24869
  };
24870
+ }
24693
24871
  }
24694
24872
  state.anchorMap[name] = value;
24695
24873
  }
24696
24874
  function beginAnchorTransaction(state) {
24697
- state.anchorMapTransactions.push(Object.create(null));
24875
+ state.anchorMapTransactions.push(/* @__PURE__ */ Object.create(null));
24698
24876
  }
24699
24877
  function commitAnchorTransaction(state) {
24700
24878
  const transaction = state.anchorMapTransactions.pop();
@@ -24705,8 +24883,9 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
24705
24883
  const names = Object.keys(transaction);
24706
24884
  for (let index = 0, length = names.length;index < length; index += 1) {
24707
24885
  const name = names[index];
24708
- if (!_hasOwnProperty.call(parent, name))
24886
+ if (!_hasOwnProperty.call(parent, name)) {
24709
24887
  parent[name] = transaction[name];
24888
+ }
24710
24889
  }
24711
24890
  }
24712
24891
  function rollbackAnchorTransaction(state) {
@@ -24714,10 +24893,11 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
24714
24893
  const names = Object.keys(transaction);
24715
24894
  for (let index = names.length - 1;index >= 0; index -= 1) {
24716
24895
  const entry = transaction[names[index]];
24717
- if (entry.existed)
24896
+ if (entry.existed) {
24718
24897
  state.anchorMap[names[index]] = entry.value;
24719
- else
24898
+ } else {
24720
24899
  delete state.anchorMap[names[index]];
24900
+ }
24721
24901
  }
24722
24902
  }
24723
24903
  function snapshotState(state) {
@@ -24744,36 +24924,45 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
24744
24924
  state.kind = snapshot.kind;
24745
24925
  state.result = snapshot.result;
24746
24926
  }
24747
- var directiveHandlers = {
24927
+ const directiveHandlers = {
24748
24928
  YAML: function handleYamlDirective(state, name, args) {
24749
- if (state.version !== null)
24929
+ if (state.version !== null) {
24750
24930
  throwError(state, "duplication of %YAML directive");
24751
- if (args.length !== 1)
24931
+ }
24932
+ if (args.length !== 1) {
24752
24933
  throwError(state, "YAML directive accepts exactly one argument");
24934
+ }
24753
24935
  const match = /^([0-9]+)\.([0-9]+)$/.exec(args[0]);
24754
- if (match === null)
24936
+ if (match === null) {
24755
24937
  throwError(state, "ill-formed argument of the YAML directive");
24938
+ }
24756
24939
  const major = parseInt(match[1], 10);
24757
24940
  const minor = parseInt(match[2], 10);
24758
- if (major !== 1)
24941
+ if (major !== 1) {
24759
24942
  throwError(state, "unacceptable YAML version of the document");
24943
+ }
24760
24944
  state.version = args[0];
24761
24945
  state.checkLineBreaks = minor < 2;
24762
- if (minor !== 1 && minor !== 2)
24946
+ if (minor !== 1 && minor !== 2) {
24763
24947
  throwWarning(state, "unsupported YAML version of the document");
24948
+ }
24764
24949
  },
24765
24950
  TAG: function handleTagDirective(state, name, args) {
24766
24951
  let prefix;
24767
- if (args.length !== 2)
24952
+ if (args.length !== 2) {
24768
24953
  throwError(state, "TAG directive accepts exactly two arguments");
24954
+ }
24769
24955
  const handle = args[0];
24770
24956
  prefix = args[1];
24771
- if (!PATTERN_TAG_HANDLE.test(handle))
24957
+ if (!PATTERN_TAG_HANDLE.test(handle)) {
24772
24958
  throwError(state, "ill-formed tag handle (first argument) of the TAG directive");
24773
- if (_hasOwnProperty.call(state.tagMap, handle))
24959
+ }
24960
+ if (_hasOwnProperty.call(state.tagMap, handle)) {
24774
24961
  throwError(state, 'there is a previously declared suffix for "' + handle + '" tag handle');
24775
- if (!PATTERN_TAG_URI.test(prefix))
24962
+ }
24963
+ if (!PATTERN_TAG_URI.test(prefix)) {
24776
24964
  throwError(state, "ill-formed tag prefix (second argument) of the TAG directive");
24965
+ }
24777
24966
  try {
24778
24967
  prefix = decodeURIComponent(prefix);
24779
24968
  } catch (err) {
@@ -24785,23 +24974,29 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
24785
24974
  function captureSegment(state, start, end, checkJson) {
24786
24975
  if (start < end) {
24787
24976
  const _result = state.input.slice(start, end);
24788
- if (checkJson)
24977
+ if (checkJson) {
24789
24978
  for (let _position = 0, _length = _result.length;_position < _length; _position += 1) {
24790
24979
  const _character = _result.charCodeAt(_position);
24791
- if (!(_character === 9 || _character >= 32 && _character <= 1114111))
24980
+ if (!(_character === 9 || _character >= 32 && _character <= 1114111)) {
24792
24981
  throwError(state, "expected valid JSON character");
24982
+ }
24793
24983
  }
24794
- else if (PATTERN_NON_PRINTABLE.test(_result))
24984
+ } else if (PATTERN_NON_PRINTABLE.test(_result)) {
24795
24985
  throwError(state, "the stream contains non-printable characters");
24986
+ }
24796
24987
  state.result += _result;
24797
24988
  }
24798
24989
  }
24799
24990
  function mergeMappings(state, destination, source, overridableKeys) {
24800
- if (!common.isObject(source))
24991
+ if (!common2.isObject(source)) {
24801
24992
  throwError(state, "cannot merge mappings; the provided source object is unacceptable");
24993
+ }
24802
24994
  const sourceKeys = Object.keys(source);
24803
24995
  for (let index = 0, quantity = sourceKeys.length;index < quantity; index += 1) {
24804
24996
  const key = sourceKeys[index];
24997
+ if (state.maxTotalMergeKeys !== -1 && ++state.totalMergeKeys > state.maxTotalMergeKeys) {
24998
+ throwError(state, "merge keys exceeded maxTotalMergeKeys (" + state.maxTotalMergeKeys + ")");
24999
+ }
24805
25000
  if (!_hasOwnProperty.call(destination, key)) {
24806
25001
  setProperty(destination, key, source[key]);
24807
25002
  overridableKeys[key] = true;
@@ -24812,32 +25007,30 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
24812
25007
  if (Array.isArray(keyNode)) {
24813
25008
  keyNode = Array.prototype.slice.call(keyNode);
24814
25009
  for (let index = 0, quantity = keyNode.length;index < quantity; index += 1) {
24815
- if (Array.isArray(keyNode[index]))
25010
+ if (Array.isArray(keyNode[index])) {
24816
25011
  throwError(state, "nested arrays are not supported inside keys");
24817
- if (typeof keyNode === "object" && _class(keyNode[index]) === "[object Object]")
25012
+ }
25013
+ if (typeof keyNode === "object" && _class(keyNode[index]) === "[object Object]") {
24818
25014
  keyNode[index] = "[object Object]";
25015
+ }
24819
25016
  }
24820
25017
  }
24821
- if (typeof keyNode === "object" && _class(keyNode) === "[object Object]")
25018
+ if (typeof keyNode === "object" && _class(keyNode) === "[object Object]") {
24822
25019
  keyNode = "[object Object]";
25020
+ }
24823
25021
  keyNode = String(keyNode);
24824
- if (_result === null)
25022
+ if (_result === null) {
24825
25023
  _result = {};
24826
- if (keyTag === "tag:yaml.org,2002:merge")
25024
+ }
25025
+ if (keyTag === "tag:yaml.org,2002:merge") {
24827
25026
  if (Array.isArray(valueNode)) {
24828
- if (valueNode.length > state.maxMergeSeqLength)
24829
- throwError(state, "merge sequence length exceeded maxMergeSeqLength (" + state.maxMergeSeqLength + ")");
24830
- const seen = /* @__PURE__ */ new Set;
24831
25027
  for (let index = 0, quantity = valueNode.length;index < quantity; index += 1) {
24832
- const src = valueNode[index];
24833
- if (seen.has(src))
24834
- continue;
24835
- seen.add(src);
24836
- mergeMappings(state, _result, src, overridableKeys);
25028
+ mergeMappings(state, _result, valueNode[index], overridableKeys);
24837
25029
  }
24838
- } else
25030
+ } else {
24839
25031
  mergeMappings(state, _result, valueNode, overridableKeys);
24840
- else {
25032
+ }
25033
+ } else {
24841
25034
  if (!state.json && !_hasOwnProperty.call(overridableKeys, keyNode) && _hasOwnProperty.call(_result, keyNode)) {
24842
25035
  state.line = startLine || state.line;
24843
25036
  state.lineStart = startLineStart || state.lineStart;
@@ -24851,14 +25044,16 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
24851
25044
  }
24852
25045
  function readLineBreak(state) {
24853
25046
  const ch = state.input.charCodeAt(state.position);
24854
- if (ch === 10)
25047
+ if (ch === 10) {
24855
25048
  state.position++;
24856
- else if (ch === 13) {
25049
+ } else if (ch === 13) {
24857
25050
  state.position++;
24858
- if (state.input.charCodeAt(state.position) === 10)
25051
+ if (state.input.charCodeAt(state.position) === 10) {
24859
25052
  state.position++;
24860
- } else
25053
+ }
25054
+ } else {
24861
25055
  throwError(state, "a line break is expected");
25056
+ }
24862
25057
  state.line += 1;
24863
25058
  state.lineStart = state.position;
24864
25059
  state.firstTabInLine = -1;
@@ -24868,14 +25063,16 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
24868
25063
  let ch = state.input.charCodeAt(state.position);
24869
25064
  while (ch !== 0) {
24870
25065
  while (isWhiteSpace(ch)) {
24871
- if (ch === 9 && state.firstTabInLine === -1)
25066
+ if (ch === 9 && state.firstTabInLine === -1) {
24872
25067
  state.firstTabInLine = state.position;
25068
+ }
24873
25069
  ch = state.input.charCodeAt(++state.position);
24874
25070
  }
24875
- if (allowComments && ch === 35)
24876
- do
25071
+ if (allowComments && ch === 35) {
25072
+ do {
24877
25073
  ch = state.input.charCodeAt(++state.position);
24878
- while (ch !== 10 && ch !== 13 && ch !== 0);
25074
+ } while (ch !== 10 && ch !== 13 && ch !== 0);
25075
+ }
24879
25076
  if (isEol(ch)) {
24880
25077
  readLineBreak(state);
24881
25078
  ch = state.input.charCodeAt(state.position);
@@ -24885,11 +25082,13 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
24885
25082
  state.lineIndent++;
24886
25083
  ch = state.input.charCodeAt(++state.position);
24887
25084
  }
24888
- } else
25085
+ } else {
24889
25086
  break;
25087
+ }
24890
25088
  }
24891
- if (checkIndent !== -1 && lineBreaks !== 0 && state.lineIndent < checkIndent)
25089
+ if (checkIndent !== -1 && lineBreaks !== 0 && state.lineIndent < checkIndent) {
24892
25090
  throwWarning(state, "deficient indentation");
25091
+ }
24893
25092
  return lineBreaks;
24894
25093
  }
24895
25094
  function testDocumentSeparator(state) {
@@ -24898,17 +25097,19 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
24898
25097
  if ((ch === 45 || ch === 46) && ch === state.input.charCodeAt(_position + 1) && ch === state.input.charCodeAt(_position + 2)) {
24899
25098
  _position += 3;
24900
25099
  ch = state.input.charCodeAt(_position);
24901
- if (ch === 0 || isWsOrEol(ch))
25100
+ if (ch === 0 || isWsOrEol(ch)) {
24902
25101
  return true;
25102
+ }
24903
25103
  }
24904
25104
  return false;
24905
25105
  }
24906
25106
  function writeFoldedLines(state, count) {
24907
- if (count === 1)
25107
+ if (count === 1) {
24908
25108
  state.result += " ";
24909
- else if (count > 1)
24910
- state.result += common.repeat(`
25109
+ } else if (count > 1) {
25110
+ state.result += common2.repeat(`
24911
25111
  `, count - 1);
25112
+ }
24912
25113
  }
24913
25114
  function readPlainScalar(state, nodeIndent, withinFlowCollection) {
24914
25115
  let captureStart;
@@ -24920,12 +25121,14 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
24920
25121
  const _kind = state.kind;
24921
25122
  const _result = state.result;
24922
25123
  let ch = state.input.charCodeAt(state.position);
24923
- if (isWsOrEol(ch) || isFlowIndicator(ch) || ch === 35 || ch === 38 || ch === 42 || ch === 33 || ch === 124 || ch === 62 || ch === 39 || ch === 34 || ch === 37 || ch === 64 || ch === 96)
25124
+ if (isWsOrEol(ch) || isFlowIndicator(ch) || ch === 35 || ch === 38 || ch === 42 || ch === 33 || ch === 124 || ch === 62 || ch === 39 || ch === 34 || ch === 37 || ch === 64 || ch === 96) {
24924
25125
  return false;
25126
+ }
24925
25127
  if (ch === 63 || ch === 45) {
24926
25128
  const following = state.input.charCodeAt(state.position + 1);
24927
- if (isWsOrEol(following) || withinFlowCollection && isFlowIndicator(following))
25129
+ if (isWsOrEol(following) || withinFlowCollection && isFlowIndicator(following)) {
24928
25130
  return false;
25131
+ }
24929
25132
  }
24930
25133
  state.kind = "scalar";
24931
25134
  state.result = "";
@@ -24934,14 +25137,17 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
24934
25137
  while (ch !== 0) {
24935
25138
  if (ch === 58) {
24936
25139
  const following = state.input.charCodeAt(state.position + 1);
24937
- if (isWsOrEol(following) || withinFlowCollection && isFlowIndicator(following))
25140
+ if (isWsOrEol(following) || withinFlowCollection && isFlowIndicator(following)) {
24938
25141
  break;
25142
+ }
24939
25143
  } else if (ch === 35) {
24940
- if (isWsOrEol(state.input.charCodeAt(state.position - 1)))
25144
+ const preceding = state.input.charCodeAt(state.position - 1);
25145
+ if (isWsOrEol(preceding)) {
24941
25146
  break;
24942
- } else if (state.position === state.lineStart && testDocumentSeparator(state) || withinFlowCollection && isFlowIndicator(ch))
25147
+ }
25148
+ } else if (state.position === state.lineStart && testDocumentSeparator(state) || withinFlowCollection && isFlowIndicator(ch)) {
24943
25149
  break;
24944
- else if (isEol(ch)) {
25150
+ } else if (isEol(ch)) {
24945
25151
  _line = state.line;
24946
25152
  _lineStart = state.lineStart;
24947
25153
  _lineIndent = state.lineIndent;
@@ -24964,13 +25170,15 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
24964
25170
  captureStart = captureEnd = state.position;
24965
25171
  hasPendingContent = false;
24966
25172
  }
24967
- if (!isWhiteSpace(ch))
25173
+ if (!isWhiteSpace(ch)) {
24968
25174
  captureEnd = state.position + 1;
25175
+ }
24969
25176
  ch = state.input.charCodeAt(++state.position);
24970
25177
  }
24971
25178
  captureSegment(state, captureStart, captureEnd, false);
24972
- if (state.result)
25179
+ if (state.result) {
24973
25180
  return true;
25181
+ }
24974
25182
  state.kind = _kind;
24975
25183
  state.result = _result;
24976
25184
  return false;
@@ -24979,13 +25187,14 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
24979
25187
  let captureStart;
24980
25188
  let captureEnd;
24981
25189
  let ch = state.input.charCodeAt(state.position);
24982
- if (ch !== 39)
25190
+ if (ch !== 39) {
24983
25191
  return false;
25192
+ }
24984
25193
  state.kind = "scalar";
24985
25194
  state.result = "";
24986
25195
  state.position++;
24987
25196
  captureStart = captureEnd = state.position;
24988
- while ((ch = state.input.charCodeAt(state.position)) !== 0)
25197
+ while ((ch = state.input.charCodeAt(state.position)) !== 0) {
24989
25198
  if (ch === 39) {
24990
25199
  captureSegment(state, captureStart, state.position, true);
24991
25200
  ch = state.input.charCodeAt(++state.position);
@@ -24993,19 +25202,22 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
24993
25202
  captureStart = state.position;
24994
25203
  state.position++;
24995
25204
  captureEnd = state.position;
24996
- } else
25205
+ } else {
24997
25206
  return true;
25207
+ }
24998
25208
  } else if (isEol(ch)) {
24999
25209
  captureSegment(state, captureStart, captureEnd, true);
25000
25210
  writeFoldedLines(state, skipSeparationSpace(state, false, nodeIndent));
25001
25211
  captureStart = captureEnd = state.position;
25002
- } else if (state.position === state.lineStart && testDocumentSeparator(state))
25212
+ } else if (state.position === state.lineStart && testDocumentSeparator(state)) {
25003
25213
  throwError(state, "unexpected end of the document within a single quoted scalar");
25004
- else {
25214
+ } else {
25005
25215
  state.position++;
25006
- if (!isWhiteSpace(ch))
25216
+ if (!isWhiteSpace(ch)) {
25007
25217
  captureEnd = state.position;
25218
+ }
25008
25219
  }
25220
+ }
25009
25221
  throwError(state, "unexpected end of the stream within a single quoted scalar");
25010
25222
  }
25011
25223
  function readDoubleQuotedScalar(state, nodeIndent) {
@@ -25013,13 +25225,14 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
25013
25225
  let captureEnd;
25014
25226
  let tmp;
25015
25227
  let ch = state.input.charCodeAt(state.position);
25016
- if (ch !== 34)
25228
+ if (ch !== 34) {
25017
25229
  return false;
25230
+ }
25018
25231
  state.kind = "scalar";
25019
25232
  state.result = "";
25020
25233
  state.position++;
25021
25234
  captureStart = captureEnd = state.position;
25022
- while ((ch = state.input.charCodeAt(state.position)) !== 0)
25235
+ while ((ch = state.input.charCodeAt(state.position)) !== 0) {
25023
25236
  if (ch === 34) {
25024
25237
  captureSegment(state, captureStart, state.position, true);
25025
25238
  state.position++;
@@ -25027,9 +25240,9 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
25027
25240
  } else if (ch === 92) {
25028
25241
  captureSegment(state, captureStart, state.position, true);
25029
25242
  ch = state.input.charCodeAt(++state.position);
25030
- if (isEol(ch))
25243
+ if (isEol(ch)) {
25031
25244
  skipSeparationSpace(state, false, nodeIndent);
25032
- else if (ch < 256 && simpleEscapeCheck[ch]) {
25245
+ } else if (ch < 256 && simpleEscapeCheck[ch]) {
25033
25246
  state.result += simpleEscapeMap[ch];
25034
25247
  state.position++;
25035
25248
  } else if ((tmp = escapedHexLen(ch)) > 0) {
@@ -25037,27 +25250,31 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
25037
25250
  let hexResult = 0;
25038
25251
  for (;hexLength > 0; hexLength--) {
25039
25252
  ch = state.input.charCodeAt(++state.position);
25040
- if ((tmp = fromHexCode(ch)) >= 0)
25253
+ if ((tmp = fromHexCode(ch)) >= 0) {
25041
25254
  hexResult = (hexResult << 4) + tmp;
25042
- else
25255
+ } else {
25043
25256
  throwError(state, "expected hexadecimal character");
25257
+ }
25044
25258
  }
25045
25259
  state.result += charFromCodepoint(hexResult);
25046
25260
  state.position++;
25047
- } else
25261
+ } else {
25048
25262
  throwError(state, "unknown escape sequence");
25263
+ }
25049
25264
  captureStart = captureEnd = state.position;
25050
25265
  } else if (isEol(ch)) {
25051
25266
  captureSegment(state, captureStart, captureEnd, true);
25052
25267
  writeFoldedLines(state, skipSeparationSpace(state, false, nodeIndent));
25053
25268
  captureStart = captureEnd = state.position;
25054
- } else if (state.position === state.lineStart && testDocumentSeparator(state))
25269
+ } else if (state.position === state.lineStart && testDocumentSeparator(state)) {
25055
25270
  throwError(state, "unexpected end of the document within a double quoted scalar");
25056
- else {
25271
+ } else {
25057
25272
  state.position++;
25058
- if (!isWhiteSpace(ch))
25273
+ if (!isWhiteSpace(ch)) {
25059
25274
  captureEnd = state.position;
25275
+ }
25060
25276
  }
25277
+ }
25061
25278
  throwError(state, "unexpected end of the stream within a double quoted scalar");
25062
25279
  }
25063
25280
  function readFlowCollection(state, nodeIndent) {
@@ -25072,7 +25289,7 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
25072
25289
  let isPair;
25073
25290
  let isExplicitPair;
25074
25291
  let isMapping;
25075
- const overridableKeys = Object.create(null);
25292
+ const overridableKeys = /* @__PURE__ */ Object.create(null);
25076
25293
  let keyNode;
25077
25294
  let keyTag;
25078
25295
  let valueNode;
@@ -25085,10 +25302,12 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
25085
25302
  terminator = 125;
25086
25303
  isMapping = true;
25087
25304
  _result = {};
25088
- } else
25305
+ } else {
25089
25306
  return false;
25090
- if (state.anchor !== null)
25307
+ }
25308
+ if (state.anchor !== null) {
25091
25309
  storeAnchor(state, state.anchor, _result);
25310
+ }
25092
25311
  ch = state.input.charCodeAt(++state.position);
25093
25312
  while (ch !== 0) {
25094
25313
  skipSeparationSpace(state, true, nodeIndent);
@@ -25100,14 +25319,16 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
25100
25319
  state.kind = isMapping ? "mapping" : "sequence";
25101
25320
  state.result = _result;
25102
25321
  return true;
25103
- } else if (!readNext)
25322
+ } else if (!readNext) {
25104
25323
  throwError(state, "missed comma between flow collection entries");
25105
- else if (ch === 44)
25324
+ } else if (ch === 44) {
25106
25325
  throwError(state, "expected the node content, but found ','");
25326
+ }
25107
25327
  keyTag = keyNode = valueNode = null;
25108
25328
  isPair = isExplicitPair = false;
25109
25329
  if (ch === 63) {
25110
- if (isWsOrEol(state.input.charCodeAt(state.position + 1))) {
25330
+ const following = state.input.charCodeAt(state.position + 1);
25331
+ if (isWsOrEol(following)) {
25111
25332
  isPair = isExplicitPair = true;
25112
25333
  state.position++;
25113
25334
  skipSeparationSpace(state, true, nodeIndent);
@@ -25128,19 +25349,21 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
25128
25349
  composeNode(state, nodeIndent, CONTEXT_FLOW_IN, false, true);
25129
25350
  valueNode = state.result;
25130
25351
  }
25131
- if (isMapping)
25352
+ if (isMapping) {
25132
25353
  storeMappingPair(state, _result, overridableKeys, keyTag, keyNode, valueNode, _line, _lineStart, _pos);
25133
- else if (isPair)
25354
+ } else if (isPair) {
25134
25355
  _result.push(storeMappingPair(state, null, overridableKeys, keyTag, keyNode, valueNode, _line, _lineStart, _pos));
25135
- else
25356
+ } else {
25136
25357
  _result.push(keyNode);
25358
+ }
25137
25359
  skipSeparationSpace(state, true, nodeIndent);
25138
25360
  ch = state.input.charCodeAt(state.position);
25139
25361
  if (ch === 44) {
25140
25362
  readNext = true;
25141
25363
  ch = state.input.charCodeAt(++state.position);
25142
- } else
25364
+ } else {
25143
25365
  readNext = false;
25366
+ }
25144
25367
  }
25145
25368
  throwError(state, "unexpected end of the stream within a flow collection");
25146
25369
  }
@@ -25154,40 +25377,45 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
25154
25377
  let atMoreIndented = false;
25155
25378
  let tmp;
25156
25379
  let ch = state.input.charCodeAt(state.position);
25157
- if (ch === 124)
25380
+ if (ch === 124) {
25158
25381
  folding = false;
25159
- else if (ch === 62)
25382
+ } else if (ch === 62) {
25160
25383
  folding = true;
25161
- else
25384
+ } else {
25162
25385
  return false;
25386
+ }
25163
25387
  state.kind = "scalar";
25164
25388
  state.result = "";
25165
25389
  while (ch !== 0) {
25166
25390
  ch = state.input.charCodeAt(++state.position);
25167
- if (ch === 43 || ch === 45)
25168
- if (CHOMPING_CLIP === chomping)
25391
+ if (ch === 43 || ch === 45) {
25392
+ if (CHOMPING_CLIP === chomping) {
25169
25393
  chomping = ch === 43 ? CHOMPING_KEEP : CHOMPING_STRIP;
25170
- else
25394
+ } else {
25171
25395
  throwError(state, "repeat of a chomping mode identifier");
25172
- else if ((tmp = fromDecimalCode(ch)) >= 0)
25173
- if (tmp === 0)
25396
+ }
25397
+ } else if ((tmp = fromDecimalCode(ch)) >= 0) {
25398
+ if (tmp === 0) {
25174
25399
  throwError(state, "bad explicit indentation width of a block scalar; it cannot be less than one");
25175
- else if (!detectedIndent) {
25400
+ } else if (!detectedIndent) {
25176
25401
  textIndent = nodeIndent + tmp - 1;
25177
25402
  detectedIndent = true;
25178
- } else
25403
+ } else {
25179
25404
  throwError(state, "repeat of an indentation width identifier");
25180
- else
25405
+ }
25406
+ } else {
25181
25407
  break;
25408
+ }
25182
25409
  }
25183
25410
  if (isWhiteSpace(ch)) {
25184
- do
25411
+ do {
25185
25412
  ch = state.input.charCodeAt(++state.position);
25186
- while (isWhiteSpace(ch));
25187
- if (ch === 35)
25188
- do
25413
+ } while (isWhiteSpace(ch));
25414
+ if (ch === 35) {
25415
+ do {
25189
25416
  ch = state.input.charCodeAt(++state.position);
25190
- while (!isEol(ch) && ch !== 0);
25417
+ } while (!isEol(ch) && ch !== 0);
25418
+ }
25191
25419
  }
25192
25420
  while (ch !== 0) {
25193
25421
  readLineBreak(state);
@@ -25197,49 +25425,56 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
25197
25425
  state.lineIndent++;
25198
25426
  ch = state.input.charCodeAt(++state.position);
25199
25427
  }
25200
- if (!detectedIndent && state.lineIndent > textIndent)
25428
+ if (!detectedIndent && state.lineIndent > textIndent) {
25201
25429
  textIndent = state.lineIndent;
25430
+ }
25202
25431
  if (isEol(ch)) {
25203
25432
  emptyLines++;
25204
25433
  continue;
25205
25434
  }
25206
- if (!detectedIndent && textIndent === 0)
25435
+ if (!detectedIndent && textIndent === 0) {
25207
25436
  throwError(state, "missing indentation for block scalar");
25437
+ }
25208
25438
  if (state.lineIndent < textIndent) {
25209
- if (chomping === CHOMPING_KEEP)
25210
- state.result += common.repeat(`
25439
+ if (chomping === CHOMPING_KEEP) {
25440
+ state.result += common2.repeat(`
25211
25441
  `, didReadContent ? 1 + emptyLines : emptyLines);
25212
- else if (chomping === CHOMPING_CLIP) {
25213
- if (didReadContent)
25442
+ } else if (chomping === CHOMPING_CLIP) {
25443
+ if (didReadContent) {
25214
25444
  state.result += `
25215
25445
  `;
25446
+ }
25216
25447
  }
25217
25448
  break;
25218
25449
  }
25219
- if (folding)
25450
+ if (folding) {
25220
25451
  if (isWhiteSpace(ch)) {
25221
25452
  atMoreIndented = true;
25222
- state.result += common.repeat(`
25453
+ state.result += common2.repeat(`
25223
25454
  `, didReadContent ? 1 + emptyLines : emptyLines);
25224
25455
  } else if (atMoreIndented) {
25225
25456
  atMoreIndented = false;
25226
- state.result += common.repeat(`
25457
+ state.result += common2.repeat(`
25227
25458
  `, emptyLines + 1);
25228
25459
  } else if (emptyLines === 0) {
25229
- if (didReadContent)
25460
+ if (didReadContent) {
25230
25461
  state.result += " ";
25231
- } else
25232
- state.result += common.repeat(`
25462
+ }
25463
+ } else {
25464
+ state.result += common2.repeat(`
25233
25465
  `, emptyLines);
25234
- else
25235
- state.result += common.repeat(`
25466
+ }
25467
+ } else {
25468
+ state.result += common2.repeat(`
25236
25469
  `, didReadContent ? 1 + emptyLines : emptyLines);
25470
+ }
25237
25471
  didReadContent = true;
25238
25472
  detectedIndent = true;
25239
25473
  emptyLines = 0;
25240
25474
  const captureStart = state.position;
25241
- while (!isEol(ch) && ch !== 0)
25475
+ while (!isEol(ch) && ch !== 0) {
25242
25476
  ch = state.input.charCodeAt(++state.position);
25477
+ }
25243
25478
  captureSegment(state, captureStart, state.position, false);
25244
25479
  }
25245
25480
  return true;
@@ -25251,18 +25486,22 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
25251
25486
  let detected = false;
25252
25487
  if (state.firstTabInLine !== -1)
25253
25488
  return false;
25254
- if (state.anchor !== null)
25489
+ if (state.anchor !== null) {
25255
25490
  storeAnchor(state, state.anchor, _result);
25491
+ }
25256
25492
  let ch = state.input.charCodeAt(state.position);
25257
25493
  while (ch !== 0) {
25258
25494
  if (state.firstTabInLine !== -1) {
25259
25495
  state.position = state.firstTabInLine;
25260
25496
  throwError(state, "tab characters must not be used in indentation");
25261
25497
  }
25262
- if (ch !== 45)
25498
+ if (ch !== 45) {
25263
25499
  break;
25264
- if (!isWsOrEol(state.input.charCodeAt(state.position + 1)))
25500
+ }
25501
+ const following = state.input.charCodeAt(state.position + 1);
25502
+ if (!isWsOrEol(following)) {
25265
25503
  break;
25504
+ }
25266
25505
  detected = true;
25267
25506
  state.position++;
25268
25507
  if (skipSeparationSpace(state, true, -1)) {
@@ -25277,10 +25516,11 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
25277
25516
  _result.push(state.result);
25278
25517
  skipSeparationSpace(state, true, -1);
25279
25518
  ch = state.input.charCodeAt(state.position);
25280
- if ((state.line === _line || state.lineIndent > nodeIndent) && ch !== 0)
25519
+ if ((state.line === _line || state.lineIndent > nodeIndent) && ch !== 0) {
25281
25520
  throwError(state, "bad indentation of a sequence entry");
25282
- else if (state.lineIndent < nodeIndent)
25521
+ } else if (state.lineIndent < nodeIndent) {
25283
25522
  break;
25523
+ }
25284
25524
  }
25285
25525
  if (detected) {
25286
25526
  state.tag = _tag;
@@ -25299,7 +25539,7 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
25299
25539
  const _tag = state.tag;
25300
25540
  const _anchor = state.anchor;
25301
25541
  const _result = {};
25302
- const overridableKeys = Object.create(null);
25542
+ const overridableKeys = /* @__PURE__ */ Object.create(null);
25303
25543
  let keyTag = null;
25304
25544
  let keyNode = null;
25305
25545
  let valueNode = null;
@@ -25307,8 +25547,9 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
25307
25547
  let detected = false;
25308
25548
  if (state.firstTabInLine !== -1)
25309
25549
  return false;
25310
- if (state.anchor !== null)
25550
+ if (state.anchor !== null) {
25311
25551
  storeAnchor(state, state.anchor, _result);
25552
+ }
25312
25553
  let ch = state.input.charCodeAt(state.position);
25313
25554
  while (ch !== 0) {
25314
25555
  if (!atExplicitKey && state.firstTabInLine !== -1) {
@@ -25329,24 +25570,28 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
25329
25570
  } else if (atExplicitKey) {
25330
25571
  atExplicitKey = false;
25331
25572
  allowCompact = true;
25332
- } else
25573
+ } else {
25333
25574
  throwError(state, "incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line");
25575
+ }
25334
25576
  state.position += 1;
25335
25577
  ch = following;
25336
25578
  } else {
25337
25579
  _keyLine = state.line;
25338
25580
  _keyLineStart = state.lineStart;
25339
25581
  _keyPos = state.position;
25340
- if (!composeNode(state, flowIndent, CONTEXT_FLOW_OUT, false, true))
25582
+ if (!composeNode(state, flowIndent, CONTEXT_FLOW_OUT, false, true)) {
25341
25583
  break;
25584
+ }
25342
25585
  if (state.line === _line) {
25343
25586
  ch = state.input.charCodeAt(state.position);
25344
- while (isWhiteSpace(ch))
25587
+ while (isWhiteSpace(ch)) {
25345
25588
  ch = state.input.charCodeAt(++state.position);
25589
+ }
25346
25590
  if (ch === 58) {
25347
25591
  ch = state.input.charCodeAt(++state.position);
25348
- if (!isWsOrEol(ch))
25592
+ if (!isWsOrEol(ch)) {
25349
25593
  throwError(state, "a whitespace character is expected after the key-value separator within a block mapping");
25594
+ }
25350
25595
  if (atExplicitKey) {
25351
25596
  storeMappingPair(state, _result, overridableKeys, keyTag, keyNode, null, _keyLine, _keyLineStart, _keyPos);
25352
25597
  keyTag = keyNode = valueNode = null;
@@ -25356,16 +25601,16 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
25356
25601
  allowCompact = false;
25357
25602
  keyTag = state.tag;
25358
25603
  keyNode = state.result;
25359
- } else if (detected)
25604
+ } else if (detected) {
25360
25605
  throwError(state, "can not read an implicit mapping pair; a colon is missed");
25361
- else {
25606
+ } else {
25362
25607
  state.tag = _tag;
25363
25608
  state.anchor = _anchor;
25364
25609
  return true;
25365
25610
  }
25366
- } else if (detected)
25611
+ } else if (detected) {
25367
25612
  throwError(state, "can not read a block mapping entry; a multiline key may not be an implicit key");
25368
- else {
25613
+ } else {
25369
25614
  state.tag = _tag;
25370
25615
  state.anchor = _anchor;
25371
25616
  return true;
@@ -25377,11 +25622,13 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
25377
25622
  _keyLineStart = state.lineStart;
25378
25623
  _keyPos = state.position;
25379
25624
  }
25380
- if (composeNode(state, nodeIndent, CONTEXT_BLOCK_OUT, true, allowCompact))
25381
- if (atExplicitKey)
25625
+ if (composeNode(state, nodeIndent, CONTEXT_BLOCK_OUT, true, allowCompact)) {
25626
+ if (atExplicitKey) {
25382
25627
  keyNode = state.result;
25383
- else
25628
+ } else {
25384
25629
  valueNode = state.result;
25630
+ }
25631
+ }
25385
25632
  if (!atExplicitKey) {
25386
25633
  storeMappingPair(state, _result, overridableKeys, keyTag, keyNode, valueNode, _keyLine, _keyLineStart, _keyPos);
25387
25634
  keyTag = keyNode = valueNode = null;
@@ -25389,13 +25636,15 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
25389
25636
  skipSeparationSpace(state, true, -1);
25390
25637
  ch = state.input.charCodeAt(state.position);
25391
25638
  }
25392
- if ((state.line === _line || state.lineIndent > nodeIndent) && ch !== 0)
25639
+ if ((state.line === _line || state.lineIndent > nodeIndent) && ch !== 0) {
25393
25640
  throwError(state, "bad indentation of a mapping entry");
25394
- else if (state.lineIndent < nodeIndent)
25641
+ } else if (state.lineIndent < nodeIndent) {
25395
25642
  break;
25643
+ }
25396
25644
  }
25397
- if (atExplicitKey)
25645
+ if (atExplicitKey) {
25398
25646
  storeMappingPair(state, _result, overridableKeys, keyTag, keyNode, null, _keyLine, _keyLineStart, _keyPos);
25647
+ }
25399
25648
  if (detected) {
25400
25649
  state.tag = _tag;
25401
25650
  state.anchor = _anchor;
@@ -25412,8 +25661,9 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
25412
25661
  let ch = state.input.charCodeAt(state.position);
25413
25662
  if (ch !== 33)
25414
25663
  return false;
25415
- if (state.tag !== null)
25664
+ if (state.tag !== null) {
25416
25665
  throwError(state, "duplication of a tag property");
25666
+ }
25417
25667
  ch = state.input.charCodeAt(++state.position);
25418
25668
  if (ch === 60) {
25419
25669
  isVerbatim = true;
@@ -25422,66 +25672,77 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
25422
25672
  isNamed = true;
25423
25673
  tagHandle = "!!";
25424
25674
  ch = state.input.charCodeAt(++state.position);
25425
- } else
25675
+ } else {
25426
25676
  tagHandle = "!";
25677
+ }
25427
25678
  let _position = state.position;
25428
25679
  if (isVerbatim) {
25429
- do
25680
+ do {
25430
25681
  ch = state.input.charCodeAt(++state.position);
25431
- while (ch !== 0 && ch !== 62);
25682
+ } while (ch !== 0 && ch !== 62);
25432
25683
  if (state.position < state.length) {
25433
25684
  tagName = state.input.slice(_position, state.position);
25434
25685
  ch = state.input.charCodeAt(++state.position);
25435
- } else
25686
+ } else {
25436
25687
  throwError(state, "unexpected end of the stream within a verbatim tag");
25688
+ }
25437
25689
  } else {
25438
25690
  while (ch !== 0 && !isWsOrEol(ch)) {
25439
- if (ch === 33)
25691
+ if (ch === 33) {
25440
25692
  if (!isNamed) {
25441
25693
  tagHandle = state.input.slice(_position - 1, state.position + 1);
25442
- if (!PATTERN_TAG_HANDLE.test(tagHandle))
25694
+ if (!PATTERN_TAG_HANDLE.test(tagHandle)) {
25443
25695
  throwError(state, "named tag handle cannot contain such characters");
25696
+ }
25444
25697
  isNamed = true;
25445
25698
  _position = state.position + 1;
25446
- } else
25699
+ } else {
25447
25700
  throwError(state, "tag suffix cannot contain exclamation marks");
25701
+ }
25702
+ }
25448
25703
  ch = state.input.charCodeAt(++state.position);
25449
25704
  }
25450
25705
  tagName = state.input.slice(_position, state.position);
25451
- if (PATTERN_FLOW_INDICATORS.test(tagName))
25706
+ if (PATTERN_FLOW_INDICATORS.test(tagName)) {
25452
25707
  throwError(state, "tag suffix cannot contain flow indicator characters");
25708
+ }
25453
25709
  }
25454
- if (tagName && !PATTERN_TAG_URI.test(tagName))
25710
+ if (tagName && !PATTERN_TAG_URI.test(tagName)) {
25455
25711
  throwError(state, "tag name cannot contain such characters: " + tagName);
25712
+ }
25456
25713
  try {
25457
25714
  tagName = decodeURIComponent(tagName);
25458
25715
  } catch (err) {
25459
25716
  throwError(state, "tag name is malformed: " + tagName);
25460
25717
  }
25461
- if (isVerbatim)
25718
+ if (isVerbatim) {
25462
25719
  state.tag = tagName;
25463
- else if (_hasOwnProperty.call(state.tagMap, tagHandle))
25720
+ } else if (_hasOwnProperty.call(state.tagMap, tagHandle)) {
25464
25721
  state.tag = state.tagMap[tagHandle] + tagName;
25465
- else if (tagHandle === "!")
25722
+ } else if (tagHandle === "!") {
25466
25723
  state.tag = "!" + tagName;
25467
- else if (tagHandle === "!!")
25724
+ } else if (tagHandle === "!!") {
25468
25725
  state.tag = "tag:yaml.org,2002:" + tagName;
25469
- else
25726
+ } else {
25470
25727
  throwError(state, 'undeclared tag handle "' + tagHandle + '"');
25728
+ }
25471
25729
  return true;
25472
25730
  }
25473
25731
  function readAnchorProperty(state) {
25474
25732
  let ch = state.input.charCodeAt(state.position);
25475
25733
  if (ch !== 38)
25476
25734
  return false;
25477
- if (state.anchor !== null)
25735
+ if (state.anchor !== null) {
25478
25736
  throwError(state, "duplication of an anchor property");
25737
+ }
25479
25738
  ch = state.input.charCodeAt(++state.position);
25480
25739
  const _position = state.position;
25481
- while (ch !== 0 && !isWsOrEol(ch) && !isFlowIndicator(ch))
25740
+ while (ch !== 0 && !isWsOrEol(ch) && !isFlowIndicator(ch)) {
25482
25741
  ch = state.input.charCodeAt(++state.position);
25483
- if (state.position === _position)
25742
+ }
25743
+ if (state.position === _position) {
25484
25744
  throwError(state, "name of an anchor node must contain at least one character");
25745
+ }
25485
25746
  state.anchor = state.input.slice(_position, state.position);
25486
25747
  return true;
25487
25748
  }
@@ -25491,13 +25752,16 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
25491
25752
  return false;
25492
25753
  ch = state.input.charCodeAt(++state.position);
25493
25754
  const _position = state.position;
25494
- while (ch !== 0 && !isWsOrEol(ch) && !isFlowIndicator(ch))
25755
+ while (ch !== 0 && !isWsOrEol(ch) && !isFlowIndicator(ch)) {
25495
25756
  ch = state.input.charCodeAt(++state.position);
25496
- if (state.position === _position)
25757
+ }
25758
+ if (state.position === _position) {
25497
25759
  throwError(state, "name of an alias node must contain at least one character");
25760
+ }
25498
25761
  const alias = state.input.slice(_position, state.position);
25499
- if (!_hasOwnProperty.call(state.anchorMap, alias))
25762
+ if (!_hasOwnProperty.call(state.anchorMap, alias)) {
25500
25763
  throwError(state, 'unidentified alias "' + alias + '"');
25764
+ }
25501
25765
  state.result = state.anchorMap[alias];
25502
25766
  skipSeparationSpace(state, true, -1);
25503
25767
  return true;
@@ -25525,14 +25789,16 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
25525
25789
  let atNewLine = false;
25526
25790
  let hasContent = false;
25527
25791
  let propertyStart = null;
25528
- let type;
25792
+ let type2;
25529
25793
  let flowIndent;
25530
25794
  let blockIndent;
25531
- if (state.depth >= state.maxDepth)
25795
+ if (state.depth >= state.maxDepth) {
25532
25796
  throwError(state, "nesting exceeded maxDepth (" + state.maxDepth + ")");
25797
+ }
25533
25798
  state.depth += 1;
25534
- if (state.listener !== null)
25799
+ if (state.listener !== null) {
25535
25800
  state.listener("open", state);
25801
+ }
25536
25802
  state.tag = null;
25537
25803
  state.anchor = null;
25538
25804
  state.kind = null;
@@ -25541,110 +25807,131 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
25541
25807
  if (allowToSeek) {
25542
25808
  if (skipSeparationSpace(state, true, -1)) {
25543
25809
  atNewLine = true;
25544
- if (state.lineIndent > parentIndent)
25810
+ if (state.lineIndent > parentIndent) {
25545
25811
  indentStatus = 1;
25546
- else if (state.lineIndent === parentIndent)
25812
+ } else if (state.lineIndent === parentIndent) {
25547
25813
  indentStatus = 0;
25548
- else if (state.lineIndent < parentIndent)
25814
+ } else if (state.lineIndent < parentIndent) {
25549
25815
  indentStatus = -1;
25816
+ }
25550
25817
  }
25551
25818
  }
25552
- if (indentStatus === 1)
25819
+ if (indentStatus === 1) {
25553
25820
  while (true) {
25554
25821
  const ch = state.input.charCodeAt(state.position);
25555
25822
  const propertyState = snapshotState(state);
25556
- if (atNewLine && (ch === 33 && state.tag !== null || ch === 38 && state.anchor !== null))
25823
+ if (atNewLine && (ch === 33 && state.tag !== null || ch === 38 && state.anchor !== null)) {
25557
25824
  break;
25558
- if (!readTagProperty(state) && !readAnchorProperty(state))
25825
+ }
25826
+ if (!readTagProperty(state) && !readAnchorProperty(state)) {
25559
25827
  break;
25560
- if (propertyStart === null)
25828
+ }
25829
+ if (propertyStart === null) {
25561
25830
  propertyStart = propertyState;
25831
+ }
25562
25832
  if (skipSeparationSpace(state, true, -1)) {
25563
25833
  atNewLine = true;
25564
25834
  allowBlockCollections = allowBlockStyles;
25565
- if (state.lineIndent > parentIndent)
25835
+ if (state.lineIndent > parentIndent) {
25566
25836
  indentStatus = 1;
25567
- else if (state.lineIndent === parentIndent)
25837
+ } else if (state.lineIndent === parentIndent) {
25568
25838
  indentStatus = 0;
25569
- else if (state.lineIndent < parentIndent)
25839
+ } else if (state.lineIndent < parentIndent) {
25570
25840
  indentStatus = -1;
25571
- } else
25841
+ }
25842
+ } else {
25572
25843
  allowBlockCollections = false;
25844
+ }
25573
25845
  }
25574
- if (allowBlockCollections)
25846
+ }
25847
+ if (allowBlockCollections) {
25575
25848
  allowBlockCollections = atNewLine || allowCompact;
25849
+ }
25576
25850
  if (indentStatus === 1 || CONTEXT_BLOCK_OUT === nodeContext) {
25577
- if (CONTEXT_FLOW_IN === nodeContext || CONTEXT_FLOW_OUT === nodeContext)
25851
+ if (CONTEXT_FLOW_IN === nodeContext || CONTEXT_FLOW_OUT === nodeContext) {
25578
25852
  flowIndent = parentIndent;
25579
- else
25853
+ } else {
25580
25854
  flowIndent = parentIndent + 1;
25855
+ }
25581
25856
  blockIndent = state.position - state.lineStart;
25582
- if (indentStatus === 1)
25583
- if (allowBlockCollections && (readBlockSequence(state, blockIndent) || readBlockMapping(state, blockIndent, flowIndent)) || readFlowCollection(state, flowIndent))
25857
+ if (indentStatus === 1) {
25858
+ if (allowBlockCollections && (readBlockSequence(state, blockIndent) || readBlockMapping(state, blockIndent, flowIndent)) || readFlowCollection(state, flowIndent)) {
25584
25859
  hasContent = true;
25585
- else {
25860
+ } else {
25586
25861
  const ch = state.input.charCodeAt(state.position);
25587
- if (propertyStart !== null && allowBlockStyles && !allowBlockCollections && ch !== 124 && ch !== 62 && tryReadBlockMappingFromProperty(state, propertyStart, propertyStart.position - propertyStart.lineStart, flowIndent))
25862
+ if (propertyStart !== null && allowBlockStyles && !allowBlockCollections && ch !== 124 && ch !== 62 && tryReadBlockMappingFromProperty(state, propertyStart, propertyStart.position - propertyStart.lineStart, flowIndent)) {
25588
25863
  hasContent = true;
25589
- else if (allowBlockScalars && readBlockScalar(state, flowIndent) || readSingleQuotedScalar(state, flowIndent) || readDoubleQuotedScalar(state, flowIndent))
25864
+ } else if (allowBlockScalars && readBlockScalar(state, flowIndent) || readSingleQuotedScalar(state, flowIndent) || readDoubleQuotedScalar(state, flowIndent)) {
25590
25865
  hasContent = true;
25591
- else if (readAlias(state)) {
25866
+ } else if (readAlias(state)) {
25592
25867
  hasContent = true;
25593
- if (state.tag !== null || state.anchor !== null)
25868
+ if (state.tag !== null || state.anchor !== null) {
25594
25869
  throwError(state, "alias node should not have any properties");
25870
+ }
25595
25871
  } else if (readPlainScalar(state, flowIndent, CONTEXT_FLOW_IN === nodeContext)) {
25596
25872
  hasContent = true;
25597
- if (state.tag === null)
25873
+ if (state.tag === null) {
25598
25874
  state.tag = "?";
25875
+ }
25599
25876
  }
25600
- if (state.anchor !== null)
25877
+ if (state.anchor !== null) {
25601
25878
  storeAnchor(state, state.anchor, state.result);
25879
+ }
25602
25880
  }
25603
- else if (indentStatus === 0)
25881
+ } else if (indentStatus === 0) {
25604
25882
  hasContent = allowBlockCollections && readBlockSequence(state, blockIndent);
25883
+ }
25605
25884
  }
25606
25885
  if (state.tag === null) {
25607
- if (state.anchor !== null)
25886
+ if (state.anchor !== null) {
25608
25887
  storeAnchor(state, state.anchor, state.result);
25888
+ }
25609
25889
  } else if (state.tag === "?") {
25610
- if (state.result !== null && state.kind !== "scalar")
25890
+ if (state.result !== null && state.kind !== "scalar") {
25611
25891
  throwError(state, 'unacceptable node kind for !<?> tag; it should be "scalar", not "' + state.kind + '"');
25892
+ }
25612
25893
  for (let typeIndex = 0, typeQuantity = state.implicitTypes.length;typeIndex < typeQuantity; typeIndex += 1) {
25613
- type = state.implicitTypes[typeIndex];
25614
- if (type.resolve(state.result)) {
25615
- state.result = type.construct(state.result);
25616
- state.tag = type.tag;
25617
- if (state.anchor !== null)
25894
+ type2 = state.implicitTypes[typeIndex];
25895
+ if (type2.resolve(state.result)) {
25896
+ state.result = type2.construct(state.result);
25897
+ state.tag = type2.tag;
25898
+ if (state.anchor !== null) {
25618
25899
  storeAnchor(state, state.anchor, state.result);
25900
+ }
25619
25901
  break;
25620
25902
  }
25621
25903
  }
25622
25904
  } else if (state.tag !== "!") {
25623
- if (_hasOwnProperty.call(state.typeMap[state.kind || "fallback"], state.tag))
25624
- type = state.typeMap[state.kind || "fallback"][state.tag];
25625
- else {
25626
- type = null;
25905
+ if (_hasOwnProperty.call(state.typeMap[state.kind || "fallback"], state.tag)) {
25906
+ type2 = state.typeMap[state.kind || "fallback"][state.tag];
25907
+ } else {
25908
+ type2 = null;
25627
25909
  const typeList = state.typeMap.multi[state.kind || "fallback"];
25628
- for (let typeIndex = 0, typeQuantity = typeList.length;typeIndex < typeQuantity; typeIndex += 1)
25910
+ for (let typeIndex = 0, typeQuantity = typeList.length;typeIndex < typeQuantity; typeIndex += 1) {
25629
25911
  if (state.tag.slice(0, typeList[typeIndex].tag.length) === typeList[typeIndex].tag) {
25630
- type = typeList[typeIndex];
25912
+ type2 = typeList[typeIndex];
25631
25913
  break;
25632
25914
  }
25915
+ }
25633
25916
  }
25634
- if (!type)
25917
+ if (!type2) {
25635
25918
  throwError(state, "unknown tag !<" + state.tag + ">");
25636
- if (state.result !== null && type.kind !== state.kind)
25637
- throwError(state, "unacceptable node kind for !<" + state.tag + '> tag; it should be "' + type.kind + '", not "' + state.kind + '"');
25638
- if (!type.resolve(state.result, state.tag))
25919
+ }
25920
+ if (state.result !== null && type2.kind !== state.kind) {
25921
+ throwError(state, "unacceptable node kind for !<" + state.tag + '> tag; it should be "' + type2.kind + '", not "' + state.kind + '"');
25922
+ }
25923
+ if (!type2.resolve(state.result, state.tag)) {
25639
25924
  throwError(state, "cannot resolve a node with !<" + state.tag + "> explicit tag");
25640
- else {
25641
- state.result = type.construct(state.result, state.tag);
25642
- if (state.anchor !== null)
25925
+ } else {
25926
+ state.result = type2.construct(state.result, state.tag);
25927
+ if (state.anchor !== null) {
25643
25928
  storeAnchor(state, state.anchor, state.result);
25929
+ }
25644
25930
  }
25645
25931
  }
25646
- if (state.listener !== null)
25932
+ if (state.listener !== null) {
25647
25933
  state.listener("close", state);
25934
+ }
25648
25935
  state.depth -= 1;
25649
25936
  return state.tag !== null || state.anchor !== null || hasContent;
25650
25937
  }
@@ -25654,55 +25941,63 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
25654
25941
  let ch;
25655
25942
  state.version = null;
25656
25943
  state.checkLineBreaks = state.legacy;
25657
- state.tagMap = Object.create(null);
25658
- state.anchorMap = Object.create(null);
25944
+ state.tagMap = /* @__PURE__ */ Object.create(null);
25945
+ state.anchorMap = /* @__PURE__ */ Object.create(null);
25659
25946
  while ((ch = state.input.charCodeAt(state.position)) !== 0) {
25660
25947
  skipSeparationSpace(state, true, -1);
25661
25948
  ch = state.input.charCodeAt(state.position);
25662
- if (state.lineIndent > 0 || ch !== 37)
25949
+ if (state.lineIndent > 0 || ch !== 37) {
25663
25950
  break;
25951
+ }
25664
25952
  hasDirectives = true;
25665
25953
  ch = state.input.charCodeAt(++state.position);
25666
25954
  let _position = state.position;
25667
- while (ch !== 0 && !isWsOrEol(ch))
25955
+ while (ch !== 0 && !isWsOrEol(ch)) {
25668
25956
  ch = state.input.charCodeAt(++state.position);
25957
+ }
25669
25958
  const directiveName = state.input.slice(_position, state.position);
25670
25959
  const directiveArgs = [];
25671
- if (directiveName.length < 1)
25960
+ if (directiveName.length < 1) {
25672
25961
  throwError(state, "directive name must not be less than one character in length");
25962
+ }
25673
25963
  while (ch !== 0) {
25674
- while (isWhiteSpace(ch))
25964
+ while (isWhiteSpace(ch)) {
25675
25965
  ch = state.input.charCodeAt(++state.position);
25966
+ }
25676
25967
  if (ch === 35) {
25677
- do
25968
+ do {
25678
25969
  ch = state.input.charCodeAt(++state.position);
25679
- while (ch !== 0 && !isEol(ch));
25970
+ } while (ch !== 0 && !isEol(ch));
25680
25971
  break;
25681
25972
  }
25682
25973
  if (isEol(ch))
25683
25974
  break;
25684
25975
  _position = state.position;
25685
- while (ch !== 0 && !isWsOrEol(ch))
25976
+ while (ch !== 0 && !isWsOrEol(ch)) {
25686
25977
  ch = state.input.charCodeAt(++state.position);
25978
+ }
25687
25979
  directiveArgs.push(state.input.slice(_position, state.position));
25688
25980
  }
25689
25981
  if (ch !== 0)
25690
25982
  readLineBreak(state);
25691
- if (_hasOwnProperty.call(directiveHandlers, directiveName))
25983
+ if (_hasOwnProperty.call(directiveHandlers, directiveName)) {
25692
25984
  directiveHandlers[directiveName](state, directiveName, directiveArgs);
25693
- else
25985
+ } else {
25694
25986
  throwWarning(state, 'unknown document directive "' + directiveName + '"');
25987
+ }
25695
25988
  }
25696
25989
  skipSeparationSpace(state, true, -1);
25697
25990
  if (state.lineIndent === 0 && state.input.charCodeAt(state.position) === 45 && state.input.charCodeAt(state.position + 1) === 45 && state.input.charCodeAt(state.position + 2) === 45) {
25698
25991
  state.position += 3;
25699
25992
  skipSeparationSpace(state, true, -1);
25700
- } else if (hasDirectives)
25993
+ } else if (hasDirectives) {
25701
25994
  throwError(state, "directives end mark is expected");
25995
+ }
25702
25996
  composeNode(state, state.lineIndent - 1, CONTEXT_BLOCK_OUT, false, true);
25703
25997
  skipSeparationSpace(state, true, -1);
25704
- if (state.checkLineBreaks && PATTERN_NON_ASCII_LINE_BREAKS.test(state.input.slice(documentStart, state.position)))
25998
+ if (state.checkLineBreaks && PATTERN_NON_ASCII_LINE_BREAKS.test(state.input.slice(documentStart, state.position))) {
25705
25999
  throwWarning(state, "non-ASCII line breaks are interpreted as content");
26000
+ }
25706
26001
  state.documents.push(state.result);
25707
26002
  if (state.position === state.lineStart && testDocumentSeparator(state)) {
25708
26003
  if (state.input.charCodeAt(state.position) === 46) {
@@ -25711,18 +26006,21 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
25711
26006
  }
25712
26007
  return;
25713
26008
  }
25714
- if (state.position < state.length - 1)
26009
+ if (state.position < state.length - 1) {
25715
26010
  throwError(state, "end of the stream or a document separator is expected");
26011
+ }
25716
26012
  }
25717
26013
  function loadDocuments(input, options) {
25718
26014
  input = String(input);
25719
26015
  options = options || {};
25720
26016
  if (input.length !== 0) {
25721
- if (input.charCodeAt(input.length - 1) !== 10 && input.charCodeAt(input.length - 1) !== 13)
26017
+ if (input.charCodeAt(input.length - 1) !== 10 && input.charCodeAt(input.length - 1) !== 13) {
25722
26018
  input += `
25723
26019
  `;
25724
- if (input.charCodeAt(0) === 65279)
26020
+ }
26021
+ if (input.charCodeAt(0) === 65279) {
25725
26022
  input = input.slice(1);
26023
+ }
25726
26024
  }
25727
26025
  const state = new State(input, options);
25728
26026
  const nullpos = input.indexOf("\x00");
@@ -25735,64 +26033,74 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
25735
26033
  state.lineIndent += 1;
25736
26034
  state.position += 1;
25737
26035
  }
25738
- while (state.position < state.length - 1)
26036
+ while (state.position < state.length - 1) {
25739
26037
  readDocument(state);
26038
+ }
25740
26039
  return state.documents;
25741
26040
  }
25742
- function loadAll(input, iterator, options) {
26041
+ function loadAll2(input, iterator, options) {
25743
26042
  if (iterator !== null && typeof iterator === "object" && typeof options === "undefined") {
25744
26043
  options = iterator;
25745
26044
  iterator = null;
25746
26045
  }
25747
26046
  const documents = loadDocuments(input, options);
25748
- if (typeof iterator !== "function")
26047
+ if (typeof iterator !== "function") {
25749
26048
  return documents;
25750
- for (let index = 0, length = documents.length;index < length; index += 1)
26049
+ }
26050
+ for (let index = 0, length = documents.length;index < length; index += 1) {
25751
26051
  iterator(documents[index]);
26052
+ }
25752
26053
  }
25753
- function load(input, options) {
26054
+ function load2(input, options) {
25754
26055
  const documents = loadDocuments(input, options);
25755
- if (documents.length === 0)
26056
+ if (documents.length === 0) {
25756
26057
  return;
25757
- else if (documents.length === 1)
26058
+ } else if (documents.length === 1) {
25758
26059
  return documents[0];
25759
- throw new YAMLException("expected a single document in the stream, but found more");
26060
+ }
26061
+ throw new YAMLException2("expected a single document in the stream, but found more");
25760
26062
  }
25761
- module.exports.loadAll = loadAll;
25762
- module.exports.load = load;
25763
- });
25764
- var require_dumper = /* @__PURE__ */ __commonJSMin((exports, module) => {
25765
- var common = require_common();
25766
- var YAMLException = require_exception();
25767
- var DEFAULT_SCHEMA = require_default();
25768
- var _toString = Object.prototype.toString;
25769
- var _hasOwnProperty = Object.prototype.hasOwnProperty;
25770
- var CHAR_BOM = 65279;
25771
- var CHAR_TAB = 9;
25772
- var CHAR_LINE_FEED = 10;
25773
- var CHAR_CARRIAGE_RETURN = 13;
25774
- var CHAR_SPACE = 32;
25775
- var CHAR_EXCLAMATION = 33;
25776
- var CHAR_DOUBLE_QUOTE = 34;
25777
- var CHAR_SHARP = 35;
25778
- var CHAR_PERCENT = 37;
25779
- var CHAR_AMPERSAND = 38;
25780
- var CHAR_SINGLE_QUOTE = 39;
25781
- var CHAR_ASTERISK = 42;
25782
- var CHAR_COMMA = 44;
25783
- var CHAR_MINUS = 45;
25784
- var CHAR_COLON = 58;
25785
- var CHAR_EQUALS = 61;
25786
- var CHAR_GREATER_THAN = 62;
25787
- var CHAR_QUESTION = 63;
25788
- var CHAR_COMMERCIAL_AT = 64;
25789
- var CHAR_LEFT_SQUARE_BRACKET = 91;
25790
- var CHAR_RIGHT_SQUARE_BRACKET = 93;
25791
- var CHAR_GRAVE_ACCENT = 96;
25792
- var CHAR_LEFT_CURLY_BRACKET = 123;
25793
- var CHAR_VERTICAL_LINE = 124;
25794
- var CHAR_RIGHT_CURLY_BRACKET = 125;
25795
- var ESCAPE_SEQUENCES = {};
26063
+ loader.loadAll = loadAll2;
26064
+ loader.load = load2;
26065
+ return loader;
26066
+ }
26067
+ var dumper = {};
26068
+ var hasRequiredDumper;
26069
+ function requireDumper() {
26070
+ if (hasRequiredDumper)
26071
+ return dumper;
26072
+ hasRequiredDumper = 1;
26073
+ const common2 = requireCommon();
26074
+ const YAMLException2 = requireException();
26075
+ const DEFAULT_SCHEMA2 = require_default();
26076
+ const _toString = Object.prototype.toString;
26077
+ const _hasOwnProperty = Object.prototype.hasOwnProperty;
26078
+ const CHAR_BOM = 65279;
26079
+ const CHAR_TAB = 9;
26080
+ const CHAR_LINE_FEED = 10;
26081
+ const CHAR_CARRIAGE_RETURN = 13;
26082
+ const CHAR_SPACE = 32;
26083
+ const CHAR_EXCLAMATION = 33;
26084
+ const CHAR_DOUBLE_QUOTE = 34;
26085
+ const CHAR_SHARP = 35;
26086
+ const CHAR_PERCENT = 37;
26087
+ const CHAR_AMPERSAND = 38;
26088
+ const CHAR_SINGLE_QUOTE = 39;
26089
+ const CHAR_ASTERISK = 42;
26090
+ const CHAR_COMMA = 44;
26091
+ const CHAR_MINUS = 45;
26092
+ const CHAR_COLON = 58;
26093
+ const CHAR_EQUALS = 61;
26094
+ const CHAR_GREATER_THAN = 62;
26095
+ const CHAR_QUESTION = 63;
26096
+ const CHAR_COMMERCIAL_AT = 64;
26097
+ const CHAR_LEFT_SQUARE_BRACKET = 91;
26098
+ const CHAR_RIGHT_SQUARE_BRACKET = 93;
26099
+ const CHAR_GRAVE_ACCENT = 96;
26100
+ const CHAR_LEFT_CURLY_BRACKET = 123;
26101
+ const CHAR_VERTICAL_LINE = 124;
26102
+ const CHAR_RIGHT_CURLY_BRACKET = 125;
26103
+ const ESCAPE_SEQUENCES = {};
25796
26104
  ESCAPE_SEQUENCES[0] = "\\0";
25797
26105
  ESCAPE_SEQUENCES[7] = "\\a";
25798
26106
  ESCAPE_SEQUENCES[8] = "\\b";
@@ -25808,7 +26116,7 @@ var require_dumper = /* @__PURE__ */ __commonJSMin((exports, module) => {
25808
26116
  ESCAPE_SEQUENCES[160] = "\\_";
25809
26117
  ESCAPE_SEQUENCES[8232] = "\\L";
25810
26118
  ESCAPE_SEQUENCES[8233] = "\\P";
25811
- var DEPRECATED_BOOLEANS_SYNTAX = [
26119
+ const DEPRECATED_BOOLEANS_SYNTAX = [
25812
26120
  "y",
25813
26121
  "Y",
25814
26122
  "yes",
@@ -25826,20 +26134,22 @@ var require_dumper = /* @__PURE__ */ __commonJSMin((exports, module) => {
25826
26134
  "Off",
25827
26135
  "OFF"
25828
26136
  ];
25829
- var DEPRECATED_BASE60_SYNTAX = /^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;
25830
- function compileStyleMap(schema, map) {
25831
- if (map === null)
26137
+ const DEPRECATED_BASE60_SYNTAX = /^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;
26138
+ function compileStyleMap(schema2, map2) {
26139
+ if (map2 === null)
25832
26140
  return {};
25833
26141
  const result = {};
25834
- const keys = Object.keys(map);
26142
+ const keys = Object.keys(map2);
25835
26143
  for (let index = 0, length = keys.length;index < length; index += 1) {
25836
26144
  let tag = keys[index];
25837
- let style = String(map[tag]);
25838
- if (tag.slice(0, 2) === "!!")
26145
+ let style = String(map2[tag]);
26146
+ if (tag.slice(0, 2) === "!!") {
25839
26147
  tag = "tag:yaml.org,2002:" + tag.slice(2);
25840
- const type = schema.compiledTypeMap["fallback"][tag];
25841
- if (type && _hasOwnProperty.call(type.styleAliases, style))
25842
- style = type.styleAliases[style];
26148
+ }
26149
+ const type2 = schema2.compiledTypeMap["fallback"][tag];
26150
+ if (type2 && _hasOwnProperty.call(type2.styleAliases, style)) {
26151
+ style = type2.styleAliases[style];
26152
+ }
25843
26153
  result[tag] = style;
25844
26154
  }
25845
26155
  return result;
@@ -25857,18 +26167,19 @@ var require_dumper = /* @__PURE__ */ __commonJSMin((exports, module) => {
25857
26167
  } else if (character <= 4294967295) {
25858
26168
  handle = "U";
25859
26169
  length = 8;
25860
- } else
25861
- throw new YAMLException("code point within a string may not be greater than 0xFFFFFFFF");
25862
- return "\\" + handle + common.repeat("0", length - string.length) + string;
26170
+ } else {
26171
+ throw new YAMLException2("code point within a string may not be greater than 0xFFFFFFFF");
26172
+ }
26173
+ return "\\" + handle + common2.repeat("0", length - string.length) + string;
25863
26174
  }
25864
- var QUOTING_TYPE_SINGLE = 1;
25865
- var QUOTING_TYPE_DOUBLE = 2;
26175
+ const QUOTING_TYPE_SINGLE = 1;
26176
+ const QUOTING_TYPE_DOUBLE = 2;
25866
26177
  function State(options) {
25867
- this.schema = options["schema"] || DEFAULT_SCHEMA;
26178
+ this.schema = options["schema"] || DEFAULT_SCHEMA2;
25868
26179
  this.indent = Math.max(1, options["indent"] || 2);
25869
26180
  this.noArrayIndent = options["noArrayIndent"] || false;
25870
26181
  this.skipInvalid = options["skipInvalid"] || false;
25871
- this.flowLevel = common.isNothing(options["flowLevel"]) ? -1 : options["flowLevel"];
26182
+ this.flowLevel = common2.isNothing(options["flowLevel"]) ? -1 : options["flowLevel"];
25872
26183
  this.styleMap = compileStyleMap(this.schema, options["styles"] || null);
25873
26184
  this.sortKeys = options["sortKeys"] || false;
25874
26185
  this.lineWidth = options["lineWidth"] || 80;
@@ -25886,7 +26197,7 @@ var require_dumper = /* @__PURE__ */ __commonJSMin((exports, module) => {
25886
26197
  this.usedDuplicates = null;
25887
26198
  }
25888
26199
  function indentString(string, spaces) {
25889
- const ind = common.repeat(" ", spaces);
26200
+ const ind = common2.repeat(" ", spaces);
25890
26201
  let position = 0;
25891
26202
  let result = "";
25892
26203
  const length = string.length;
@@ -25910,12 +26221,15 @@ var require_dumper = /* @__PURE__ */ __commonJSMin((exports, module) => {
25910
26221
  }
25911
26222
  function generateNextLine(state, level) {
25912
26223
  return `
25913
- ` + common.repeat(" ", state.indent * level);
26224
+ ` + common2.repeat(" ", state.indent * level);
25914
26225
  }
25915
- function testImplicitResolving(state, str) {
25916
- for (let index = 0, length = state.implicitTypes.length;index < length; index += 1)
25917
- if (state.implicitTypes[index].resolve(str))
26226
+ function testImplicitResolving(state, str2) {
26227
+ for (let index = 0, length = state.implicitTypes.length;index < length; index += 1) {
26228
+ const type2 = state.implicitTypes[index];
26229
+ if (type2.resolve(str2)) {
25918
26230
  return true;
26231
+ }
26232
+ }
25919
26233
  return false;
25920
26234
  }
25921
26235
  function isWhitespace(c) {
@@ -25943,19 +26257,21 @@ var require_dumper = /* @__PURE__ */ __commonJSMin((exports, module) => {
25943
26257
  let second;
25944
26258
  if (first >= 55296 && first <= 56319 && pos + 1 < string.length) {
25945
26259
  second = string.charCodeAt(pos + 1);
25946
- if (second >= 56320 && second <= 57343)
26260
+ if (second >= 56320 && second <= 57343) {
25947
26261
  return (first - 55296) * 1024 + second - 56320 + 65536;
26262
+ }
25948
26263
  }
25949
26264
  return first;
25950
26265
  }
25951
26266
  function needIndentIndicator(string) {
25952
- return /^\n* /.test(string);
25953
- }
25954
- var STYLE_PLAIN = 1;
25955
- var STYLE_SINGLE = 2;
25956
- var STYLE_LITERAL = 3;
25957
- var STYLE_FOLDED = 4;
25958
- var STYLE_DOUBLE = 5;
26267
+ const leadingSpaceRe = /^\n* /;
26268
+ return leadingSpaceRe.test(string);
26269
+ }
26270
+ const STYLE_PLAIN = 1;
26271
+ const STYLE_SINGLE = 2;
26272
+ const STYLE_LITERAL = 3;
26273
+ const STYLE_FOLDED = 4;
26274
+ const STYLE_DOUBLE = 5;
25959
26275
  function chooseScalarStyle(string, singleLineOnly, indentPerLevel, lineWidth, testAmbiguousType, quotingType, forceQuotes, inblock) {
25960
26276
  let i;
25961
26277
  let char = 0;
@@ -25965,15 +26281,16 @@ var require_dumper = /* @__PURE__ */ __commonJSMin((exports, module) => {
25965
26281
  const shouldTrackWidth = lineWidth !== -1;
25966
26282
  let previousLineBreak = -1;
25967
26283
  let plain = isPlainSafeFirst(codePointAt(string, 0)) && isPlainSafeLast(codePointAt(string, string.length - 1));
25968
- if (singleLineOnly || forceQuotes)
26284
+ if (singleLineOnly || forceQuotes) {
25969
26285
  for (i = 0;i < string.length; char >= 65536 ? i += 2 : i++) {
25970
26286
  char = codePointAt(string, i);
25971
- if (!isPrintable(char))
26287
+ if (!isPrintable(char)) {
25972
26288
  return STYLE_DOUBLE;
26289
+ }
25973
26290
  plain = plain && isPlainSafe(char, prevChar, inblock);
25974
26291
  prevChar = char;
25975
26292
  }
25976
- else {
26293
+ } else {
25977
26294
  for (i = 0;i < string.length; char >= 65536 ? i += 2 : i++) {
25978
26295
  char = codePointAt(string, i);
25979
26296
  if (char === CHAR_LINE_FEED) {
@@ -25982,31 +26299,37 @@ var require_dumper = /* @__PURE__ */ __commonJSMin((exports, module) => {
25982
26299
  hasFoldableLine = hasFoldableLine || i - previousLineBreak - 1 > lineWidth && string[previousLineBreak + 1] !== " ";
25983
26300
  previousLineBreak = i;
25984
26301
  }
25985
- } else if (!isPrintable(char))
26302
+ } else if (!isPrintable(char)) {
25986
26303
  return STYLE_DOUBLE;
26304
+ }
25987
26305
  plain = plain && isPlainSafe(char, prevChar, inblock);
25988
26306
  prevChar = char;
25989
26307
  }
25990
- hasFoldableLine = hasFoldableLine || shouldTrackWidth && i - previousLineBreak - 1 > lineWidth && string[previousLineBreak + 1] !== " ";
26308
+ hasFoldableLine = hasFoldableLine || shouldTrackWidth && (i - previousLineBreak - 1 > lineWidth && string[previousLineBreak + 1] !== " ");
25991
26309
  }
25992
26310
  if (!hasLineBreak && !hasFoldableLine) {
25993
- if (plain && !forceQuotes && !testAmbiguousType(string))
26311
+ if (plain && !forceQuotes && !testAmbiguousType(string)) {
25994
26312
  return STYLE_PLAIN;
26313
+ }
25995
26314
  return quotingType === QUOTING_TYPE_DOUBLE ? STYLE_DOUBLE : STYLE_SINGLE;
25996
26315
  }
25997
- if (indentPerLevel > 9 && needIndentIndicator(string))
26316
+ if (indentPerLevel > 9 && needIndentIndicator(string)) {
25998
26317
  return STYLE_DOUBLE;
25999
- if (!forceQuotes)
26318
+ }
26319
+ if (!forceQuotes) {
26000
26320
  return hasFoldableLine ? STYLE_FOLDED : STYLE_LITERAL;
26321
+ }
26001
26322
  return quotingType === QUOTING_TYPE_DOUBLE ? STYLE_DOUBLE : STYLE_SINGLE;
26002
26323
  }
26003
26324
  function writeScalar(state, string, level, iskey, inblock) {
26004
26325
  state.dump = function() {
26005
- if (string.length === 0)
26326
+ if (string.length === 0) {
26006
26327
  return state.quotingType === QUOTING_TYPE_DOUBLE ? '""' : "''";
26328
+ }
26007
26329
  if (!state.noCompatMode) {
26008
- if (DEPRECATED_BOOLEANS_SYNTAX.indexOf(string) !== -1 || DEPRECATED_BASE60_SYNTAX.test(string))
26330
+ if (DEPRECATED_BOOLEANS_SYNTAX.indexOf(string) !== -1 || DEPRECATED_BASE60_SYNTAX.test(string)) {
26009
26331
  return state.quotingType === QUOTING_TYPE_DOUBLE ? '"' + string + '"' : "'" + string + "'";
26332
+ }
26010
26333
  }
26011
26334
  const indent = state.indent * Math.max(1, level);
26012
26335
  const lineWidth = state.lineWidth === -1 ? -1 : Math.max(Math.min(state.lineWidth, 40), state.lineWidth - indent);
@@ -26024,9 +26347,9 @@ var require_dumper = /* @__PURE__ */ __commonJSMin((exports, module) => {
26024
26347
  case STYLE_FOLDED:
26025
26348
  return ">" + blockHeader(string, state.indent) + dropEndingNewline(indentString(foldString(string, lineWidth), indent));
26026
26349
  case STYLE_DOUBLE:
26027
- return '"' + escapeString(string, lineWidth) + '"';
26350
+ return '"' + escapeString(string) + '"';
26028
26351
  default:
26029
- throw new YAMLException("impossible error: invalid scalar style");
26352
+ throw new YAMLException2("impossible error: invalid scalar style");
26030
26353
  }
26031
26354
  }();
26032
26355
  }
@@ -26034,9 +26357,11 @@ var require_dumper = /* @__PURE__ */ __commonJSMin((exports, module) => {
26034
26357
  const indentIndicator = needIndentIndicator(string) ? String(indentPerLevel) : "";
26035
26358
  const clip = string[string.length - 1] === `
26036
26359
  `;
26037
- return indentIndicator + (clip && (string[string.length - 2] === `
26360
+ const keep = clip && (string[string.length - 2] === `
26038
26361
  ` || string === `
26039
- `) ? "+" : clip ? "" : "-") + `
26362
+ `);
26363
+ const chomp = keep ? "+" : clip ? "" : "-";
26364
+ return indentIndicator + chomp + `
26040
26365
  `;
26041
26366
  }
26042
26367
  function dropEndingNewline(string) {
@@ -26088,11 +26413,12 @@ var require_dumper = /* @__PURE__ */ __commonJSMin((exports, module) => {
26088
26413
  }
26089
26414
  result += `
26090
26415
  `;
26091
- if (line.length - start > width && curr > start)
26416
+ if (line.length - start > width && curr > start) {
26092
26417
  result += line.slice(start, curr) + `
26093
26418
  ` + line.slice(curr + 1);
26094
- else
26419
+ } else {
26095
26420
  result += line.slice(start);
26421
+ }
26096
26422
  return result.slice(1);
26097
26423
  }
26098
26424
  function escapeString(string) {
@@ -26105,8 +26431,9 @@ var require_dumper = /* @__PURE__ */ __commonJSMin((exports, module) => {
26105
26431
  result += string[i];
26106
26432
  if (char >= 65536)
26107
26433
  result += string[i + 1];
26108
- } else
26434
+ } else {
26109
26435
  result += escapeSeq || encodeHex(char);
26436
+ }
26110
26437
  }
26111
26438
  return result;
26112
26439
  }
@@ -26115,8 +26442,9 @@ var require_dumper = /* @__PURE__ */ __commonJSMin((exports, module) => {
26115
26442
  const _tag = state.tag;
26116
26443
  for (let index = 0, length = object.length;index < length; index += 1) {
26117
26444
  let value = object[index];
26118
- if (state.replacer)
26445
+ if (state.replacer) {
26119
26446
  value = state.replacer.call(object, String(index), value);
26447
+ }
26120
26448
  if (writeNode(state, level, value, false, false) || typeof value === "undefined" && writeNode(state, level, null, false, false)) {
26121
26449
  if (_result !== "")
26122
26450
  _result += "," + (!state.condenseFlow ? " " : "");
@@ -26131,15 +26459,18 @@ var require_dumper = /* @__PURE__ */ __commonJSMin((exports, module) => {
26131
26459
  const _tag = state.tag;
26132
26460
  for (let index = 0, length = object.length;index < length; index += 1) {
26133
26461
  let value = object[index];
26134
- if (state.replacer)
26462
+ if (state.replacer) {
26135
26463
  value = state.replacer.call(object, String(index), value);
26464
+ }
26136
26465
  if (writeNode(state, level + 1, value, true, true, false, true) || typeof value === "undefined" && writeNode(state, level + 1, null, true, true, false, true)) {
26137
- if (!compact || _result !== "")
26466
+ if (!compact || _result !== "") {
26138
26467
  _result += generateNextLine(state, level);
26139
- if (state.dump && CHAR_LINE_FEED === state.dump.charCodeAt(0))
26468
+ }
26469
+ if (state.dump && CHAR_LINE_FEED === state.dump.charCodeAt(0)) {
26140
26470
  _result += "-";
26141
- else
26471
+ } else {
26142
26472
  _result += "- ";
26473
+ }
26143
26474
  _result += state.dump;
26144
26475
  }
26145
26476
  }
@@ -26158,15 +26489,18 @@ var require_dumper = /* @__PURE__ */ __commonJSMin((exports, module) => {
26158
26489
  pairBuffer += '"';
26159
26490
  const objectKey = objectKeyList[index];
26160
26491
  let objectValue = object[objectKey];
26161
- if (state.replacer)
26492
+ if (state.replacer) {
26162
26493
  objectValue = state.replacer.call(object, objectKey, objectValue);
26163
- if (!writeNode(state, level, objectKey, false, false))
26494
+ }
26495
+ if (!writeNode(state, level, objectKey, false, false)) {
26164
26496
  continue;
26497
+ }
26165
26498
  if (state.dump.length > 1024)
26166
26499
  pairBuffer += "? ";
26167
26500
  pairBuffer += state.dump + (state.condenseFlow ? '"' : "") + ":" + (state.condenseFlow ? "" : " ");
26168
- if (!writeNode(state, level, objectValue, false, false))
26501
+ if (!writeNode(state, level, objectValue, false, false)) {
26169
26502
  continue;
26503
+ }
26170
26504
  pairBuffer += state.dump;
26171
26505
  _result += pairBuffer;
26172
26506
  }
@@ -26177,37 +26511,46 @@ var require_dumper = /* @__PURE__ */ __commonJSMin((exports, module) => {
26177
26511
  let _result = "";
26178
26512
  const _tag = state.tag;
26179
26513
  const objectKeyList = Object.keys(object);
26180
- if (state.sortKeys === true)
26514
+ if (state.sortKeys === true) {
26181
26515
  objectKeyList.sort();
26182
- else if (typeof state.sortKeys === "function")
26516
+ } else if (typeof state.sortKeys === "function") {
26183
26517
  objectKeyList.sort(state.sortKeys);
26184
- else if (state.sortKeys)
26185
- throw new YAMLException("sortKeys must be a boolean or a function");
26518
+ } else if (state.sortKeys) {
26519
+ throw new YAMLException2("sortKeys must be a boolean or a function");
26520
+ }
26186
26521
  for (let index = 0, length = objectKeyList.length;index < length; index += 1) {
26187
26522
  let pairBuffer = "";
26188
- if (!compact || _result !== "")
26523
+ if (!compact || _result !== "") {
26189
26524
  pairBuffer += generateNextLine(state, level);
26525
+ }
26190
26526
  const objectKey = objectKeyList[index];
26191
26527
  let objectValue = object[objectKey];
26192
- if (state.replacer)
26528
+ if (state.replacer) {
26193
26529
  objectValue = state.replacer.call(object, objectKey, objectValue);
26194
- if (!writeNode(state, level + 1, objectKey, true, true, true))
26530
+ }
26531
+ if (!writeNode(state, level + 1, objectKey, true, true, true)) {
26195
26532
  continue;
26533
+ }
26196
26534
  const explicitPair = state.tag !== null && state.tag !== "?" || state.dump && state.dump.length > 1024;
26197
- if (explicitPair)
26198
- if (state.dump && CHAR_LINE_FEED === state.dump.charCodeAt(0))
26535
+ if (explicitPair) {
26536
+ if (state.dump && CHAR_LINE_FEED === state.dump.charCodeAt(0)) {
26199
26537
  pairBuffer += "?";
26200
- else
26538
+ } else {
26201
26539
  pairBuffer += "? ";
26540
+ }
26541
+ }
26202
26542
  pairBuffer += state.dump;
26203
- if (explicitPair)
26543
+ if (explicitPair) {
26204
26544
  pairBuffer += generateNextLine(state, level);
26205
- if (!writeNode(state, level + 1, objectValue, true, explicitPair))
26545
+ }
26546
+ if (!writeNode(state, level + 1, objectValue, true, explicitPair)) {
26206
26547
  continue;
26207
- if (state.dump && CHAR_LINE_FEED === state.dump.charCodeAt(0))
26548
+ }
26549
+ if (state.dump && CHAR_LINE_FEED === state.dump.charCodeAt(0)) {
26208
26550
  pairBuffer += ":";
26209
- else
26551
+ } else {
26210
26552
  pairBuffer += ": ";
26553
+ }
26211
26554
  pairBuffer += state.dump;
26212
26555
  _result += pairBuffer;
26213
26556
  }
@@ -26217,24 +26560,27 @@ var require_dumper = /* @__PURE__ */ __commonJSMin((exports, module) => {
26217
26560
  function detectType(state, object, explicit) {
26218
26561
  const typeList = explicit ? state.explicitTypes : state.implicitTypes;
26219
26562
  for (let index = 0, length = typeList.length;index < length; index += 1) {
26220
- const type = typeList[index];
26221
- if ((type.instanceOf || type.predicate) && (!type.instanceOf || typeof object === "object" && object instanceof type.instanceOf) && (!type.predicate || type.predicate(object))) {
26222
- if (explicit)
26223
- if (type.multi && type.representName)
26224
- state.tag = type.representName(object);
26225
- else
26226
- state.tag = type.tag;
26227
- else
26563
+ const type2 = typeList[index];
26564
+ if ((type2.instanceOf || type2.predicate) && (!type2.instanceOf || typeof object === "object" && object instanceof type2.instanceOf) && (!type2.predicate || type2.predicate(object))) {
26565
+ if (explicit) {
26566
+ if (type2.multi && type2.representName) {
26567
+ state.tag = type2.representName(object);
26568
+ } else {
26569
+ state.tag = type2.tag;
26570
+ }
26571
+ } else {
26228
26572
  state.tag = "?";
26229
- if (type.represent) {
26230
- const style = state.styleMap[type.tag] || type.defaultStyle;
26573
+ }
26574
+ if (type2.represent) {
26575
+ const style = state.styleMap[type2.tag] || type2.defaultStyle;
26231
26576
  let _result;
26232
- if (_toString.call(type.represent) === "[object Function]")
26233
- _result = type.represent(object, style);
26234
- else if (_hasOwnProperty.call(type.represent, style))
26235
- _result = type.represent[style](object, style);
26236
- else
26237
- throw new YAMLException("!<" + type.tag + '> tag resolver accepts not "' + style + '" style');
26577
+ if (_toString.call(type2.represent) === "[object Function]") {
26578
+ _result = type2.represent(object, style);
26579
+ } else if (_hasOwnProperty.call(type2.represent, style)) {
26580
+ _result = type2.represent[style](object, style);
26581
+ } else {
26582
+ throw new YAMLException2("!<" + type2.tag + '> tag resolver accepts not "' + style + '" style');
26583
+ }
26238
26584
  state.dump = _result;
26239
26585
  }
26240
26586
  return true;
@@ -26245,67 +26591,78 @@ var require_dumper = /* @__PURE__ */ __commonJSMin((exports, module) => {
26245
26591
  function writeNode(state, level, object, block, compact, iskey, isblockseq) {
26246
26592
  state.tag = null;
26247
26593
  state.dump = object;
26248
- if (!detectType(state, object, false))
26594
+ if (!detectType(state, object, false)) {
26249
26595
  detectType(state, object, true);
26250
- const type = _toString.call(state.dump);
26596
+ }
26597
+ const type2 = _toString.call(state.dump);
26251
26598
  const inblock = block;
26252
- if (block)
26599
+ if (block) {
26253
26600
  block = state.flowLevel < 0 || state.flowLevel > level;
26254
- const objectOrArray = type === "[object Object]" || type === "[object Array]";
26601
+ }
26602
+ const objectOrArray = type2 === "[object Object]" || type2 === "[object Array]";
26255
26603
  let duplicateIndex;
26256
26604
  let duplicate;
26257
26605
  if (objectOrArray) {
26258
26606
  duplicateIndex = state.duplicates.indexOf(object);
26259
26607
  duplicate = duplicateIndex !== -1;
26260
26608
  }
26261
- if (state.tag !== null && state.tag !== "?" || duplicate || state.indent !== 2 && level > 0)
26609
+ if (state.tag !== null && state.tag !== "?" || duplicate || state.indent !== 2 && level > 0) {
26262
26610
  compact = false;
26263
- if (duplicate && state.usedDuplicates[duplicateIndex])
26611
+ }
26612
+ if (duplicate && state.usedDuplicates[duplicateIndex]) {
26264
26613
  state.dump = "*ref_" + duplicateIndex;
26265
- else {
26266
- if (objectOrArray && duplicate && !state.usedDuplicates[duplicateIndex])
26614
+ } else {
26615
+ if (objectOrArray && duplicate && !state.usedDuplicates[duplicateIndex]) {
26267
26616
  state.usedDuplicates[duplicateIndex] = true;
26268
- if (type === "[object Object]")
26617
+ }
26618
+ if (type2 === "[object Object]") {
26269
26619
  if (block && Object.keys(state.dump).length !== 0) {
26270
26620
  writeBlockMapping(state, level, state.dump, compact);
26271
- if (duplicate)
26621
+ if (duplicate) {
26272
26622
  state.dump = "&ref_" + duplicateIndex + state.dump;
26623
+ }
26273
26624
  } else {
26274
26625
  writeFlowMapping(state, level, state.dump);
26275
- if (duplicate)
26626
+ if (duplicate) {
26276
26627
  state.dump = "&ref_" + duplicateIndex + " " + state.dump;
26628
+ }
26277
26629
  }
26278
- else if (type === "[object Array]")
26630
+ } else if (type2 === "[object Array]") {
26279
26631
  if (block && state.dump.length !== 0) {
26280
- if (state.noArrayIndent && !isblockseq && level > 0)
26632
+ if (state.noArrayIndent && !isblockseq && level > 0) {
26281
26633
  writeBlockSequence(state, level - 1, state.dump, compact);
26282
- else
26634
+ } else {
26283
26635
  writeBlockSequence(state, level, state.dump, compact);
26284
- if (duplicate)
26636
+ }
26637
+ if (duplicate) {
26285
26638
  state.dump = "&ref_" + duplicateIndex + state.dump;
26639
+ }
26286
26640
  } else {
26287
26641
  writeFlowSequence(state, level, state.dump);
26288
- if (duplicate)
26642
+ if (duplicate) {
26289
26643
  state.dump = "&ref_" + duplicateIndex + " " + state.dump;
26644
+ }
26290
26645
  }
26291
- else if (type === "[object String]") {
26292
- if (state.tag !== "?")
26646
+ } else if (type2 === "[object String]") {
26647
+ if (state.tag !== "?") {
26293
26648
  writeScalar(state, state.dump, level, iskey, inblock);
26294
- } else if (type === "[object Undefined]")
26649
+ }
26650
+ } else if (type2 === "[object Undefined]") {
26295
26651
  return false;
26296
- else {
26652
+ } else {
26297
26653
  if (state.skipInvalid)
26298
26654
  return false;
26299
- throw new YAMLException("unacceptable kind of an object to dump " + type);
26655
+ throw new YAMLException2("unacceptable kind of an object to dump " + type2);
26300
26656
  }
26301
26657
  if (state.tag !== null && state.tag !== "?") {
26302
26658
  let tagStr = encodeURI(state.tag[0] === "!" ? state.tag.slice(1) : state.tag).replace(/!/g, "%21");
26303
- if (state.tag[0] === "!")
26659
+ if (state.tag[0] === "!") {
26304
26660
  tagStr = "!" + tagStr;
26305
- else if (tagStr.slice(0, 18) === "tag:yaml.org,2002:")
26661
+ } else if (tagStr.slice(0, 18) === "tag:yaml.org,2002:") {
26306
26662
  tagStr = "!!" + tagStr.slice(18);
26307
- else
26663
+ } else {
26308
26664
  tagStr = "!<" + tagStr + ">";
26665
+ }
26309
26666
  state.dump = tagStr + " " + state.dump;
26310
26667
  }
26311
26668
  }
@@ -26316,83 +26673,110 @@ var require_dumper = /* @__PURE__ */ __commonJSMin((exports, module) => {
26316
26673
  const duplicatesIndexes = [];
26317
26674
  inspectNode(object, objects, duplicatesIndexes);
26318
26675
  const length = duplicatesIndexes.length;
26319
- for (let index = 0;index < length; index += 1)
26676
+ for (let index = 0;index < length; index += 1) {
26320
26677
  state.duplicates.push(objects[duplicatesIndexes[index]]);
26678
+ }
26321
26679
  state.usedDuplicates = new Array(length);
26322
26680
  }
26323
26681
  function inspectNode(object, objects, duplicatesIndexes) {
26324
26682
  if (object !== null && typeof object === "object") {
26325
26683
  const index = objects.indexOf(object);
26326
26684
  if (index !== -1) {
26327
- if (duplicatesIndexes.indexOf(index) === -1)
26685
+ if (duplicatesIndexes.indexOf(index) === -1) {
26328
26686
  duplicatesIndexes.push(index);
26687
+ }
26329
26688
  } else {
26330
26689
  objects.push(object);
26331
- if (Array.isArray(object))
26332
- for (let i = 0, length = object.length;i < length; i += 1)
26690
+ if (Array.isArray(object)) {
26691
+ for (let i = 0, length = object.length;i < length; i += 1) {
26333
26692
  inspectNode(object[i], objects, duplicatesIndexes);
26334
- else {
26693
+ }
26694
+ } else {
26335
26695
  const objectKeyList = Object.keys(object);
26336
- for (let i = 0, length = objectKeyList.length;i < length; i += 1)
26696
+ for (let i = 0, length = objectKeyList.length;i < length; i += 1) {
26337
26697
  inspectNode(object[objectKeyList[i]], objects, duplicatesIndexes);
26698
+ }
26338
26699
  }
26339
26700
  }
26340
26701
  }
26341
26702
  }
26342
- function dump(input, options) {
26703
+ function dump2(input, options) {
26343
26704
  options = options || {};
26344
26705
  const state = new State(options);
26345
26706
  if (!state.noRefs)
26346
26707
  getDuplicateReferences(input, state);
26347
26708
  let value = input;
26348
- if (state.replacer)
26709
+ if (state.replacer) {
26349
26710
  value = state.replacer.call({ "": value }, "", value);
26711
+ }
26350
26712
  if (writeNode(state, 0, value, true, true))
26351
26713
  return state.dump + `
26352
26714
  `;
26353
26715
  return "";
26354
26716
  }
26355
- module.exports.dump = dump;
26356
- });
26357
- var import_js_yaml = /* @__PURE__ */ __toESM2((/* @__PURE__ */ __commonJSMin((exports, module) => {
26358
- var loader = require_loader();
26359
- var dumper = require_dumper();
26717
+ dumper.dump = dump2;
26718
+ return dumper;
26719
+ }
26720
+ var hasRequiredJsYaml;
26721
+ function requireJsYaml() {
26722
+ if (hasRequiredJsYaml)
26723
+ return jsYaml;
26724
+ hasRequiredJsYaml = 1;
26725
+ const loader2 = requireLoader();
26726
+ const dumper2 = requireDumper();
26360
26727
  function renamed(from, to) {
26361
26728
  return function() {
26362
26729
  throw new Error("Function yaml." + from + " is removed in js-yaml 4. Use yaml." + to + " instead, which is now safe by default.");
26363
26730
  };
26364
26731
  }
26365
- module.exports.Type = require_type();
26366
- module.exports.Schema = require_schema();
26367
- module.exports.FAILSAFE_SCHEMA = require_failsafe();
26368
- module.exports.JSON_SCHEMA = require_json();
26369
- module.exports.CORE_SCHEMA = require_core();
26370
- module.exports.DEFAULT_SCHEMA = require_default();
26371
- module.exports.load = loader.load;
26372
- module.exports.loadAll = loader.loadAll;
26373
- module.exports.dump = dumper.dump;
26374
- module.exports.YAMLException = require_exception();
26375
- module.exports.types = {
26376
- binary: require_binary(),
26377
- float: require_float(),
26378
- map: require_map(),
26732
+ jsYaml.Type = requireType();
26733
+ jsYaml.Schema = requireSchema();
26734
+ jsYaml.FAILSAFE_SCHEMA = requireFailsafe();
26735
+ jsYaml.JSON_SCHEMA = requireJson();
26736
+ jsYaml.CORE_SCHEMA = requireCore();
26737
+ jsYaml.DEFAULT_SCHEMA = require_default();
26738
+ jsYaml.load = loader2.load;
26739
+ jsYaml.loadAll = loader2.loadAll;
26740
+ jsYaml.dump = dumper2.dump;
26741
+ jsYaml.YAMLException = requireException();
26742
+ jsYaml.types = {
26743
+ binary: requireBinary(),
26744
+ float: requireFloat(),
26745
+ map: requireMap(),
26379
26746
  null: require_null(),
26380
- pairs: require_pairs(),
26381
- set: require_set(),
26382
- timestamp: require_timestamp(),
26383
- bool: require_bool(),
26384
- int: require_int(),
26385
- merge: require_merge(),
26386
- omap: require_omap(),
26387
- seq: require_seq(),
26388
- str: require_str()
26747
+ pairs: requirePairs(),
26748
+ set: requireSet(),
26749
+ timestamp: requireTimestamp(),
26750
+ bool: requireBool(),
26751
+ int: requireInt(),
26752
+ merge: requireMerge(),
26753
+ omap: requireOmap(),
26754
+ seq: requireSeq(),
26755
+ str: requireStr()
26389
26756
  };
26390
- module.exports.safeLoad = renamed("safeLoad", "load");
26391
- module.exports.safeLoadAll = renamed("safeLoadAll", "loadAll");
26392
- module.exports.safeDump = renamed("safeDump", "dump");
26393
- }))(), 1);
26394
- var { Type, Schema, FAILSAFE_SCHEMA, JSON_SCHEMA, CORE_SCHEMA, DEFAULT_SCHEMA, load, loadAll, dump, YAMLException, types, safeLoad, safeLoadAll, safeDump } = import_js_yaml.default;
26395
- var index_vite_proxy_tmp_default = import_js_yaml.default;
26757
+ jsYaml.safeLoad = renamed("safeLoad", "load");
26758
+ jsYaml.safeLoadAll = renamed("safeLoadAll", "loadAll");
26759
+ jsYaml.safeDump = renamed("safeDump", "dump");
26760
+ return jsYaml;
26761
+ }
26762
+ var jsYamlExports = requireJsYaml();
26763
+ var yaml = /* @__PURE__ */ getDefaultExportFromCjs(jsYamlExports);
26764
+ var {
26765
+ Type,
26766
+ Schema,
26767
+ FAILSAFE_SCHEMA,
26768
+ JSON_SCHEMA,
26769
+ CORE_SCHEMA,
26770
+ DEFAULT_SCHEMA,
26771
+ load,
26772
+ loadAll,
26773
+ dump,
26774
+ YAMLException,
26775
+ types,
26776
+ safeLoad,
26777
+ safeLoadAll,
26778
+ safeDump
26779
+ } = yaml;
26396
26780
 
26397
26781
  // ../../common/src/logger.ts
26398
26782
  init_src();
@@ -26469,11 +26853,11 @@ class SimpleLogger {
26469
26853
  const path3 = this.logFilePath || getGlobalLogFilePath();
26470
26854
  if (!path3)
26471
26855
  return;
26472
- const timestamp = new Date().toISOString();
26856
+ const timestamp2 = new Date().toISOString();
26473
26857
  this.pendingWrites = Promise.all([
26474
26858
  this.pendingWrites,
26475
26859
  this.pendingInit
26476
- ]).then(() => getFileSystem().appendFile(path3, `${timestamp} ${formatted}`).catch(() => {}));
26860
+ ]).then(() => getFileSystem().appendFile(path3, `${timestamp2} ${formatted}`).catch(() => {}));
26477
26861
  }
26478
26862
  debug(message, ...args) {
26479
26863
  if (this.level > 0 /* DEBUG */)
@@ -26589,6 +26973,7 @@ function getLogFilePath() {
26589
26973
  // ../../common/src/output-format-context.ts
26590
26974
  var formatSlot = singleton("OutputFormat");
26591
26975
  var formatExplicitSlot = singleton("OutputFormatExplicit");
26976
+ var helpRequestedSlot = singleton("HelpRequested");
26592
26977
  var filterSlot = singleton("OutputFilter");
26593
26978
  function getOutputFormat() {
26594
26979
  return formatSlot.get("json");
@@ -26866,10 +27251,10 @@ class LoggerTelemetryProvider {
26866
27251
  success
26867
27252
  })));
26868
27253
  }
26869
- async trackDependency(name, type, duration, success, properties) {
27254
+ async trackDependency(name, type2, duration, success, properties) {
26870
27255
  logger.debug(formatMessage("Dependency", name, this.enrich({
26871
27256
  ...properties,
26872
- type,
27257
+ type: type2,
26873
27258
  duration: `${duration}ms`,
26874
27259
  success
26875
27260
  })));
@@ -27027,11 +27412,36 @@ class NodeContextStorage {
27027
27412
  return this.storage.getStore();
27028
27413
  }
27029
27414
  }
27415
+ // ../../common/src/telemetry/trace-context.ts
27416
+ var TELEMETRY_TRACEPARENT_ENV = "TRACEPARENT";
27417
+ var TRACEPARENT_PATTERN = /^00-([0-9a-f]{32})-([0-9a-f]{16})-[0-9a-f]{2}$/;
27418
+ function getProcessEnv() {
27419
+ return globalThis.process?.env;
27420
+ }
27421
+ function parseInboundTraceparent(value) {
27422
+ if (!value) {
27423
+ return;
27424
+ }
27425
+ const match = TRACEPARENT_PATTERN.exec(value.trim().toLowerCase());
27426
+ if (!match) {
27427
+ return;
27428
+ }
27429
+ const [, traceId, parentSpanId] = match;
27430
+ if (/^0+$/.test(traceId) || /^0+$/.test(parentSpanId)) {
27431
+ return;
27432
+ }
27433
+ return { traceId, parentSpanId };
27434
+ }
27435
+ function getInboundTraceContext() {
27436
+ return parseInboundTraceparent(getProcessEnv()?.[TELEMETRY_TRACEPARENT_ENV]);
27437
+ }
27438
+
27030
27439
  // ../../common/src/telemetry/session-id.ts
27031
27440
  var TELEMETRY_SESSION_ID_ENV = "UIPATH_SESSION_ID";
27032
27441
  var TELEMETRY_SESSION_ID_PROPERTY = "session_id";
27033
27442
  var telemetrySessionIdSlot = singleton("TelemetrySessionId");
27034
- function getProcessEnv() {
27443
+ var telemetryOperationIdSlot = singleton("TelemetryOperationId");
27444
+ function getProcessEnv2() {
27035
27445
  return globalThis.process?.env;
27036
27446
  }
27037
27447
  function normalizeSessionId(value) {
@@ -27042,18 +27452,165 @@ function normalizeSessionId(value) {
27042
27452
  return trimmed || undefined;
27043
27453
  }
27044
27454
  function getConfiguredTelemetrySessionId() {
27045
- return normalizeSessionId(getProcessEnv()?.[TELEMETRY_SESSION_ID_ENV]);
27455
+ return normalizeSessionId(getProcessEnv2()?.[TELEMETRY_SESSION_ID_ENV]);
27046
27456
  }
27047
27457
  function resolveTelemetrySessionId(existingSessionId) {
27048
27458
  return getConfiguredTelemetrySessionId() ?? normalizeSessionId(existingSessionId);
27049
27459
  }
27460
+ function getTelemetryOperationId() {
27461
+ const existing = telemetryOperationIdSlot.get();
27462
+ if (existing) {
27463
+ return existing;
27464
+ }
27465
+ const inboundTraceId = getInboundTraceContext()?.traceId;
27466
+ const generated = inboundTraceId ?? crypto.randomUUID().replaceAll("-", "");
27467
+ telemetryOperationIdSlot.set(generated);
27468
+ return generated;
27469
+ }
27050
27470
  // ../../common/src/telemetry/global-telemetry-properties.ts
27051
27471
  var telemetryPropsSlot = singleton("TelemetryDefaultProps");
27052
27472
  function getGlobalTelemetryProperties() {
27053
27473
  return telemetryPropsSlot.get();
27054
27474
  }
27055
27475
 
27476
+ // ../../common/src/telemetry/pii-redactor.ts
27477
+ var REDACTED = "[REDACTED]";
27478
+ var MAX_VALUE_LENGTH = 200;
27479
+ var SENSITIVE_NAME_TOKENS = new Set([
27480
+ "token",
27481
+ "tokens",
27482
+ "secret",
27483
+ "secrets",
27484
+ "password",
27485
+ "passwords",
27486
+ "pwd",
27487
+ "credential",
27488
+ "credentials",
27489
+ "auth",
27490
+ "authentication",
27491
+ "authorization",
27492
+ "authority",
27493
+ "cert",
27494
+ "certificate",
27495
+ "certificates"
27496
+ ]);
27497
+ var SENSITIVE_KEY_PREFIXES = new Set([
27498
+ "api",
27499
+ "access",
27500
+ "client",
27501
+ "private",
27502
+ "public",
27503
+ "signing",
27504
+ "encryption",
27505
+ "session",
27506
+ "master",
27507
+ "shared",
27508
+ "root",
27509
+ "ssh",
27510
+ "rsa",
27511
+ "aes",
27512
+ "hmac",
27513
+ "oauth"
27514
+ ]);
27515
+ var UUID_PATTERN = /\b[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}\b/gi;
27516
+ var EMAIL_PATTERN = /\b[^\s@]+@[A-Za-z0-9.-]+\.[A-Za-z]{2,}\b/g;
27517
+ var JWT_PATTERN = /\beyJ[A-Za-z0-9_-]{10,}\.[A-Za-z0-9_-]+\.[A-Za-z0-9_-]+/g;
27518
+ var LONG_TOKEN_PATTERN = /\b[A-Za-z0-9_-]{40,}\b/g;
27519
+ var USER_HOME_PATTERN = /([/\\])(Users|home)([/\\])([^/\\]+)/gi;
27520
+ var URL_PATTERN = /\bhttps?:\/\/[^\s,;]+/gi;
27521
+ var URL_TRAILING_PUNCT = /[.,;:!?)\]}>'"]+$/;
27522
+ function shortHash(input) {
27523
+ let hash = 2166136261;
27524
+ for (let i = 0;i < input.length; i++) {
27525
+ hash ^= input.charCodeAt(i);
27526
+ hash = Math.imul(hash, 16777619);
27527
+ }
27528
+ return (hash >>> 0).toString(16).padStart(8, "0");
27529
+ }
27530
+ function redactUrl(raw) {
27531
+ try {
27532
+ const url = new URL(raw);
27533
+ return `${url.protocol}//${url.host}`;
27534
+ } catch {
27535
+ return `url#${shortHash(raw)}`;
27536
+ }
27537
+ }
27538
+ function redactValueDetectors(value) {
27539
+ let out = value;
27540
+ out = out.replace(JWT_PATTERN, () => REDACTED);
27541
+ out = out.replace(URL_PATTERN, (match) => {
27542
+ const trailing = match.match(URL_TRAILING_PUNCT)?.[0] ?? "";
27543
+ const core2 = trailing ? match.slice(0, -trailing.length) : match;
27544
+ return `${redactUrl(core2)}${trailing}`;
27545
+ });
27546
+ out = out.replace(USER_HOME_PATTERN, (_match, sep1, folder, sep2) => `${sep1}${folder}${sep2}<user>`);
27547
+ out = out.replace(EMAIL_PATTERN, (match) => `email#${shortHash(match)}`);
27548
+ out = out.replace(UUID_PATTERN, (match) => `uuid#${shortHash(match)}`);
27549
+ out = out.replace(LONG_TOKEN_PATTERN, () => REDACTED);
27550
+ if (out.length > MAX_VALUE_LENGTH) {
27551
+ out = `${out.slice(0, MAX_VALUE_LENGTH)}…`;
27552
+ }
27553
+ return out;
27554
+ }
27555
+ function redactValue(value) {
27556
+ return redactValueDetectors(value);
27557
+ }
27558
+ function redactError(error) {
27559
+ const safe = new Error(redactValueDetectors(error.message ?? ""));
27560
+ safe.name = error.name;
27561
+ safe.stack = typeof error.stack === "string" ? redactValueDetectors(error.stack) : undefined;
27562
+ return safe;
27563
+ }
27564
+ function nameTokens(name) {
27565
+ return name.replace(/([a-z0-9])([A-Z])/g, "$1 $2").replace(/([A-Z]+)([A-Z][a-z])/g, "$1 $2").split(/[\s._-]+/).map((t) => t.toLowerCase()).filter(Boolean);
27566
+ }
27567
+ function isSensitiveName(name) {
27568
+ const tokens = nameTokens(name);
27569
+ for (let i = 0;i < tokens.length; i++) {
27570
+ const token = tokens[i];
27571
+ if (SENSITIVE_NAME_TOKENS.has(token)) {
27572
+ return true;
27573
+ }
27574
+ if (token === "key" || token === "keys") {
27575
+ const prev = tokens[i - 1];
27576
+ if (prev && SENSITIVE_KEY_PREFIXES.has(prev)) {
27577
+ return true;
27578
+ }
27579
+ }
27580
+ }
27581
+ return false;
27582
+ }
27583
+ function redactProperty(name, value) {
27584
+ if (value === undefined || value === null) {
27585
+ return;
27586
+ }
27587
+ if (isSensitiveName(name)) {
27588
+ return REDACTED;
27589
+ }
27590
+ if (typeof value === "boolean" || typeof value === "number") {
27591
+ return value;
27592
+ }
27593
+ if (typeof value !== "string") {
27594
+ return "[OBJECT]";
27595
+ }
27596
+ return redactValueDetectors(value);
27597
+ }
27598
+ function redactProperties(properties) {
27599
+ const out = {};
27600
+ for (const [name, value] of Object.entries(properties)) {
27601
+ const redacted = redactProperty(name, value);
27602
+ if (redacted !== undefined) {
27603
+ out[name] = redacted;
27604
+ }
27605
+ }
27606
+ return out;
27607
+ }
27608
+
27056
27609
  // ../../common/src/telemetry/telemetry-service.ts
27610
+ var TELEMETRY_OPERATION_ID_PROPERTY = "uip.trace.operation_id";
27611
+ var TELEMETRY_PARENT_ID_PROPERTY = "uip.trace.parent_id";
27612
+ var TELEMETRY_SPAN_ID_PROPERTY = "uip.trace.span_id";
27613
+
27057
27614
  class TelemetryService {
27058
27615
  telemetryProvider;
27059
27616
  contextStorage;
@@ -27080,11 +27637,15 @@ class TelemetryService {
27080
27637
  trackException(error, properties) {
27081
27638
  const context = this.getCurrentContext();
27082
27639
  const enrichedProperties = this.enrichPropertiesWithContext(properties, context);
27083
- this.telemetryProvider.trackException(error, enrichedProperties);
27640
+ this.telemetryProvider.trackException(redactError(error), enrichedProperties);
27084
27641
  }
27085
27642
  async trackRequest(name, fn, properties) {
27643
+ const parentContext = this.getCurrentContext();
27644
+ const operationId = parentContext?.operationId ?? this.operationId ?? getTelemetryOperationId();
27645
+ const parentId = parentContext ? parentContext.id : this.inboundParentIdFor(operationId);
27086
27646
  const context = {
27087
- operationId: this.operationId ?? this.generateId(),
27647
+ operationId,
27648
+ ...parentId !== undefined ? { parentId } : {},
27088
27649
  id: this.generateId()
27089
27650
  };
27090
27651
  const startTime = performance.now();
@@ -27102,7 +27663,46 @@ class TelemetryService {
27102
27663
  throw error;
27103
27664
  }
27104
27665
  }
27105
- async trackDependencyOperation(name, type, fn, properties) {
27666
+ trackRequestResult(name, durationMs, success, properties, context) {
27667
+ const requestContext = context ?? {
27668
+ operationId: this.operationId ?? getTelemetryOperationId(),
27669
+ id: this.generateId()
27670
+ };
27671
+ const enrichedProperties = this.enrichPropertiesWithContext(properties, requestContext);
27672
+ this.telemetryProvider.trackRequest(name, durationMs, success, enrichedProperties);
27673
+ }
27674
+ createRequestContext() {
27675
+ const operationId = this.operationId ?? getTelemetryOperationId();
27676
+ const parentId = this.inboundParentIdFor(operationId);
27677
+ return {
27678
+ operationId,
27679
+ ...parentId !== undefined ? { parentId } : {},
27680
+ id: this.generateId()
27681
+ };
27682
+ }
27683
+ inboundParentIdFor(operationId) {
27684
+ const inbound = getInboundTraceContext();
27685
+ return inbound && inbound.traceId === operationId ? inbound.parentSpanId : undefined;
27686
+ }
27687
+ runWithContext(context, fn) {
27688
+ return this.contextStorage.run(context, fn);
27689
+ }
27690
+ createDependencyContext() {
27691
+ const parentContext = this.getCurrentContext();
27692
+ if (!parentContext) {
27693
+ return;
27694
+ }
27695
+ return {
27696
+ operationId: parentContext.operationId,
27697
+ parentId: parentContext.id,
27698
+ id: this.generateId()
27699
+ };
27700
+ }
27701
+ trackDependencyResult(name, type2, durationMs, success, properties, context, resultCode) {
27702
+ const enrichedProperties = this.enrichPropertiesWithContext(properties, context);
27703
+ this.telemetryProvider.trackDependency(redactValue(name), type2, durationMs, success, enrichedProperties, resultCode);
27704
+ }
27705
+ async trackDependencyOperation(name, type2, fn, properties) {
27106
27706
  const parentContext = this.getCurrentContext();
27107
27707
  if (!parentContext) {
27108
27708
  throw new Error("trackDependencyOperation must be called within a trackRequest block.");
@@ -27117,13 +27717,13 @@ class TelemetryService {
27117
27717
  const result = await this.contextStorage.run(childContext, fn);
27118
27718
  const durationMs = performance.now() - startTime;
27119
27719
  const enrichedProperties = this.enrichPropertiesWithContext(properties, childContext);
27120
- await this.telemetryProvider.trackDependency(name, type, durationMs, true, enrichedProperties);
27720
+ await this.telemetryProvider.trackDependency(name, type2, durationMs, true, enrichedProperties);
27121
27721
  return result;
27122
27722
  } catch (error) {
27123
27723
  const durationMs = performance.now() - startTime;
27124
27724
  const err = error instanceof Error ? error : new Error(String(error));
27125
27725
  const enrichedProperties = this.enrichPropertiesWithContext({ ...properties, errorMessage: err.message }, childContext);
27126
- await this.telemetryProvider.trackDependency(name, type, durationMs, false, enrichedProperties);
27726
+ await this.telemetryProvider.trackDependency(name, type2, durationMs, false, enrichedProperties);
27127
27727
  throw error;
27128
27728
  }
27129
27729
  }
@@ -27138,8 +27738,12 @@ class TelemetryService {
27138
27738
  ...getExecutionContextTelemetryProperties(),
27139
27739
  ...globalProperties,
27140
27740
  ...this.defaultProperties,
27141
- ...properties,
27142
- ...context
27741
+ ...redactProperties(properties ?? {}),
27742
+ ...context ? {
27743
+ [TELEMETRY_OPERATION_ID_PROPERTY]: context.operationId,
27744
+ ...context.parentId !== undefined ? { [TELEMETRY_PARENT_ID_PROPERTY]: context.parentId } : {},
27745
+ [TELEMETRY_SPAN_ID_PROPERTY]: context.id
27746
+ } : {}
27143
27747
  };
27144
27748
  if (sessionId === undefined) {
27145
27749
  delete enriched[TELEMETRY_SESSION_ID_PROPERTY];
@@ -27149,7 +27753,16 @@ class TelemetryService {
27149
27753
  return enriched;
27150
27754
  }
27151
27755
  generateId() {
27152
- return crypto.randomUUID().replaceAll("-", "");
27756
+ const bytes = new Uint8Array(8);
27757
+ let hex = "";
27758
+ do {
27759
+ crypto.getRandomValues(bytes);
27760
+ hex = "";
27761
+ for (const byte of bytes) {
27762
+ hex += byte.toString(16).padStart(2, "0");
27763
+ }
27764
+ } while (/^0+$/.test(hex));
27765
+ return hex;
27153
27766
  }
27154
27767
  }
27155
27768
  // ../../common/src/telemetry/node-appinsights-telemetry-provider.ts
@@ -27330,8 +27943,8 @@ function printOutput(data, format = "json", logFn, asciiSafe = false) {
27330
27943
  }
27331
27944
  switch (format) {
27332
27945
  case "json": {
27333
- const json = JSON.stringify(data, null, 2);
27334
- logFn(asciiSafe ? escapeNonAscii(json) : json);
27946
+ const json2 = JSON.stringify(data, null, 2);
27947
+ logFn(asciiSafe ? escapeNonAscii(json2) : json2);
27335
27948
  break;
27336
27949
  }
27337
27950
  case "yaml":
@@ -27656,6 +28269,9 @@ var OutputFormatter;
27656
28269
  if (opts?.warning) {
27657
28270
  data.Warning = opts.warning;
27658
28271
  }
28272
+ if (opts?.pagination) {
28273
+ data.Pagination = opts.pagination;
28274
+ }
27659
28275
  success(data);
27660
28276
  }
27661
28277
  OutputFormatter.emitList = emitList;
@@ -27664,8 +28280,8 @@ var OutputFormatter;
27664
28280
  const sink = getOutputSink();
27665
28281
  const normalized = toPascalCaseData(data);
27666
28282
  if (format === "json") {
27667
- const json = JSON.stringify(normalized);
27668
- const safe = needsAsciiSafeJson(sink) ? escapeNonAscii(json) : json;
28283
+ const json2 = JSON.stringify(normalized);
28284
+ const safe = needsAsciiSafeJson(sink) ? escapeNonAscii(json2) : json2;
27669
28285
  sink.writeErr(`${safe}
27670
28286
  `);
27671
28287
  } else {
@@ -27848,134 +28464,11 @@ function buildCommandTelemetryAttribution(commandPath, skillSource) {
27848
28464
  };
27849
28465
  }
27850
28466
 
27851
- // ../../common/src/telemetry/pii-redactor.ts
27852
- var REDACTED = "[REDACTED]";
27853
- var MAX_VALUE_LENGTH = 200;
27854
- var SENSITIVE_NAME_TOKENS = new Set([
27855
- "token",
27856
- "tokens",
27857
- "secret",
27858
- "secrets",
27859
- "password",
27860
- "passwords",
27861
- "pwd",
27862
- "credential",
27863
- "credentials",
27864
- "auth",
27865
- "authentication",
27866
- "authorization",
27867
- "authority",
27868
- "cert",
27869
- "certificate",
27870
- "certificates"
27871
- ]);
27872
- var SENSITIVE_KEY_PREFIXES = new Set([
27873
- "api",
27874
- "access",
27875
- "client",
27876
- "private",
27877
- "public",
27878
- "signing",
27879
- "encryption",
27880
- "session",
27881
- "master",
27882
- "shared",
27883
- "root",
27884
- "ssh",
27885
- "rsa",
27886
- "aes",
27887
- "hmac",
27888
- "oauth"
27889
- ]);
27890
- var UUID_PATTERN = /\b[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}\b/gi;
27891
- var EMAIL_PATTERN = /\b[^\s@]+@[A-Za-z0-9.-]+\.[A-Za-z]{2,}\b/g;
27892
- var JWT_PATTERN = /\beyJ[A-Za-z0-9_-]{10,}\.[A-Za-z0-9_-]+\.[A-Za-z0-9_-]+/g;
27893
- var LONG_TOKEN_PATTERN = /\b[A-Za-z0-9_-]{40,}\b/g;
27894
- var USER_HOME_PATTERN = /([/\\])(Users|home)([/\\])([^/\\]+)/gi;
27895
- var URL_PATTERN = /\bhttps?:\/\/[^\s,;]+/gi;
27896
- var URL_TRAILING_PUNCT = /[.,;:!?)\]}>'"]+$/;
27897
- function shortHash(input) {
27898
- let hash = 2166136261;
27899
- for (let i = 0;i < input.length; i++) {
27900
- hash ^= input.charCodeAt(i);
27901
- hash = Math.imul(hash, 16777619);
27902
- }
27903
- return (hash >>> 0).toString(16).padStart(8, "0");
27904
- }
27905
- function redactUrl(raw) {
27906
- try {
27907
- const url = new URL(raw);
27908
- return `${url.protocol}//${url.host}`;
27909
- } catch {
27910
- return `url#${shortHash(raw)}`;
27911
- }
27912
- }
27913
- function redactValueDetectors(value) {
27914
- let out = value;
27915
- out = out.replace(JWT_PATTERN, () => REDACTED);
27916
- out = out.replace(URL_PATTERN, (match) => {
27917
- const trailing = match.match(URL_TRAILING_PUNCT)?.[0] ?? "";
27918
- const core = trailing ? match.slice(0, -trailing.length) : match;
27919
- return `${redactUrl(core)}${trailing}`;
27920
- });
27921
- out = out.replace(USER_HOME_PATTERN, (_match, sep1, folder, sep2) => `${sep1}${folder}${sep2}<user>`);
27922
- out = out.replace(EMAIL_PATTERN, (match) => `email#${shortHash(match)}`);
27923
- out = out.replace(UUID_PATTERN, (match) => `uuid#${shortHash(match)}`);
27924
- out = out.replace(LONG_TOKEN_PATTERN, () => REDACTED);
27925
- if (out.length > MAX_VALUE_LENGTH) {
27926
- out = `${out.slice(0, MAX_VALUE_LENGTH)}…`;
27927
- }
27928
- return out;
27929
- }
27930
- function nameTokens(name) {
27931
- return name.replace(/([a-z0-9])([A-Z])/g, "$1 $2").replace(/([A-Z]+)([A-Z][a-z])/g, "$1 $2").split(/[\s_-]+/).map((t) => t.toLowerCase()).filter(Boolean);
27932
- }
27933
- function isSensitiveName(name) {
27934
- const tokens = nameTokens(name);
27935
- for (let i = 0;i < tokens.length; i++) {
27936
- const token = tokens[i];
27937
- if (SENSITIVE_NAME_TOKENS.has(token)) {
27938
- return true;
27939
- }
27940
- if (token === "key" || token === "keys") {
27941
- const prev = tokens[i - 1];
27942
- if (prev && SENSITIVE_KEY_PREFIXES.has(prev)) {
27943
- return true;
27944
- }
27945
- }
27946
- }
27947
- return false;
27948
- }
27949
- function redactProperty(name, value) {
27950
- if (value === undefined || value === null) {
27951
- return;
27952
- }
27953
- if (isSensitiveName(name)) {
27954
- return REDACTED;
27955
- }
27956
- if (typeof value === "boolean" || typeof value === "number") {
27957
- return value;
27958
- }
27959
- if (typeof value !== "string") {
27960
- return "[OBJECT]";
27961
- }
27962
- return redactValueDetectors(value);
27963
- }
27964
- function redactProperties(properties) {
27965
- const out = {};
27966
- for (const [name, value] of Object.entries(properties)) {
27967
- const redacted = redactProperty(name, value);
27968
- if (redacted !== undefined) {
27969
- out[name] = redacted;
27970
- }
27971
- }
27972
- return out;
27973
- }
27974
-
27975
28467
  // ../../common/src/trackedAction.ts
27976
28468
  var pollSignalSlot = singleton("PollSignal");
27977
28469
  var cliErrorCodeValues = new Set(CLI_ERROR_CODES);
27978
28470
  var retryHintValues = new Set(RETRY_HINTS);
28471
+ var TELEMETRY_COMMAND_ARG_PREFIX = "uip.cmd.arg.";
27979
28472
  var processContext = {
27980
28473
  exit: (code) => {
27981
28474
  process.exitCode = code;
@@ -27986,22 +28479,18 @@ var processContext = {
27986
28479
  };
27987
28480
  function extractCommandParams(cmd) {
27988
28481
  const params = {};
28482
+ const add2 = (name, value) => {
28483
+ if (name && value !== undefined) {
28484
+ params[`${TELEMETRY_COMMAND_ARG_PREFIX}${name}`] = value;
28485
+ }
28486
+ };
27989
28487
  const registered = cmd.registeredArguments ?? [];
27990
28488
  const processed = cmd.processedArgs ?? [];
27991
28489
  for (let i = 0;i < registered.length; i++) {
27992
- const value = processed[i];
27993
- if (value === undefined) {
27994
- continue;
27995
- }
27996
- const name = registered[i].name();
27997
- if (name) {
27998
- params[name] = value;
27999
- }
28490
+ add2(registered[i].name(), processed[i]);
28000
28491
  }
28001
28492
  for (const [key, value] of Object.entries(cmd.opts())) {
28002
- if (value !== undefined) {
28003
- params[key] = value;
28004
- }
28493
+ add2(key, value);
28005
28494
  }
28006
28495
  return params;
28007
28496
  }
@@ -28044,11 +28533,12 @@ Command.prototype.trackedAction = function(context, fn, properties) {
28044
28533
  return this.action(async (...args) => {
28045
28534
  const telemetryName = deriveCommandPath(command);
28046
28535
  const props = typeof properties === "function" ? properties(...args) : properties;
28536
+ const requestContext = telemetry.createRequestContext();
28047
28537
  const startTime = performance.now();
28048
28538
  let errorMessage;
28049
28539
  let fallbackExitCode = EXIT_CODES.Success;
28050
28540
  clearRecordedCommandFailureTelemetry();
28051
- const [error] = await catchError(fn(...args));
28541
+ const [error] = await catchError(telemetry.runWithContext(requestContext, () => fn(...args)));
28052
28542
  if (error) {
28053
28543
  errorMessage = error instanceof Error ? error.message : String(error);
28054
28544
  logger.debug(`[trackedAction] ${telemetryName} failed: ${errorMessage}`);
@@ -28084,16 +28574,21 @@ Command.prototype.trackedAction = function(context, fn, properties) {
28084
28574
  recordedFailure,
28085
28575
  pollSignal: context.pollSignal
28086
28576
  });
28087
- telemetry.trackEvent(telemetryName, redactProperties({
28088
- ...extractCommandParams(command),
28577
+ const commandParams = extractCommandParams(command);
28578
+ if (props) {
28579
+ for (const key of Object.keys(props)) {
28580
+ delete commandParams[`${TELEMETRY_COMMAND_ARG_PREFIX}${key}`];
28581
+ }
28582
+ }
28583
+ const baseProperties = redactProperties({
28584
+ ...commandParams,
28089
28585
  ...props,
28090
28586
  ...buildCommandTelemetryAttribution(telemetryName, process.env.UIPATH_SKILL),
28091
28587
  command: "true",
28092
- duration: String(durationMs),
28093
- success: String(success),
28094
28588
  ...terminalTelemetry,
28095
28589
  ...errorMessage ? { errorMessage } : {}
28096
- }));
28590
+ });
28591
+ telemetry.trackRequestResult(telemetryName, durationMs, success, baseProperties, requestContext);
28097
28592
  });
28098
28593
  };
28099
28594
  // ../../common/src/console-guard.ts
@@ -28104,6 +28599,7 @@ var DEFAULT_PAGE_SIZE = 50;
28104
28599
  var DEFAULT_AUTH_TIMEOUT_MS = 5 * 60 * 1000;
28105
28600
  // ../../common/src/interactivity-context.ts
28106
28601
  var modeSlot = singleton("InteractivityMode");
28602
+ var interactiveFlagSlot = singleton("InteractiveFlag");
28107
28603
  // ../../common/src/option-aliases.ts
28108
28604
  function resolveDeprecatedOptionAlias({
28109
28605
  preferredValue,
@@ -28529,7 +29025,7 @@ class VoidApiResponse {
28529
29025
  var package_default2 = {
28530
29026
  name: "@uipath/resourcecatalog-sdk",
28531
29027
  license: "MIT",
28532
- version: "1.197.0",
29028
+ version: "1.198.0",
28533
29029
  description: "SDK for the UiPath Resource Catalog Service API.",
28534
29030
  repository: {
28535
29031
  type: "git",
@@ -28577,11 +29073,11 @@ var SDK_USER_AGENT = getSdkUserAgentToken(package_default2);
28577
29073
  installSdkUserAgentHeader(BaseAPI, SDK_USER_AGENT);
28578
29074
 
28579
29075
  // ../resourcecatalog-sdk/generated/src/models/EntitySearchState.ts
28580
- function EntitySearchStateFromJSON(json) {
28581
- return EntitySearchStateFromJSONTyped(json, false);
29076
+ function EntitySearchStateFromJSON(json2) {
29077
+ return EntitySearchStateFromJSONTyped(json2, false);
28582
29078
  }
28583
- function EntitySearchStateFromJSONTyped(json, ignoreDiscriminator) {
28584
- return json;
29079
+ function EntitySearchStateFromJSONTyped(json2, ignoreDiscriminator) {
29080
+ return json2;
28585
29081
  }
28586
29082
 
28587
29083
  // ../resourcecatalog-sdk/generated/src/models/TagType.ts
@@ -28589,193 +29085,193 @@ var TagType = {
28589
29085
  Label: "Label",
28590
29086
  KeyValue: "KeyValue"
28591
29087
  };
28592
- function TagTypeFromJSON(json) {
28593
- return TagTypeFromJSONTyped(json, false);
29088
+ function TagTypeFromJSON(json2) {
29089
+ return TagTypeFromJSONTyped(json2, false);
28594
29090
  }
28595
- function TagTypeFromJSONTyped(json, ignoreDiscriminator) {
28596
- return json;
29091
+ function TagTypeFromJSONTyped(json2, ignoreDiscriminator) {
29092
+ return json2;
28597
29093
  }
28598
29094
  function TagTypeToJSON(value) {
28599
29095
  return value;
28600
29096
  }
28601
29097
 
28602
29098
  // ../resourcecatalog-sdk/generated/src/models/TagModel.ts
28603
- function TagModelFromJSON(json) {
28604
- return TagModelFromJSONTyped(json, false);
29099
+ function TagModelFromJSON(json2) {
29100
+ return TagModelFromJSONTyped(json2, false);
28605
29101
  }
28606
- function TagModelFromJSONTyped(json, ignoreDiscriminator) {
28607
- if (json == null) {
28608
- return json;
29102
+ function TagModelFromJSONTyped(json2, ignoreDiscriminator) {
29103
+ if (json2 == null) {
29104
+ return json2;
28609
29105
  }
28610
29106
  return {
28611
- key: json["key"] == null ? undefined : json["key"],
28612
- displayName: json["displayName"] == null ? undefined : json["displayName"],
28613
- name: json["name"] == null ? undefined : json["name"],
28614
- displayValue: json["displayValue"] == null ? undefined : json["displayValue"],
28615
- value: json["value"] == null ? undefined : json["value"],
28616
- type: json["type"] == null ? undefined : TagTypeFromJSON(json["type"]),
28617
- accountKey: json["accountKey"] == null ? undefined : json["accountKey"],
28618
- tenantKey: json["tenantKey"] == null ? undefined : json["tenantKey"],
28619
- userKey: json["userKey"] == null ? undefined : json["userKey"]
29107
+ key: json2["key"] == null ? undefined : json2["key"],
29108
+ displayName: json2["displayName"] == null ? undefined : json2["displayName"],
29109
+ name: json2["name"] == null ? undefined : json2["name"],
29110
+ displayValue: json2["displayValue"] == null ? undefined : json2["displayValue"],
29111
+ value: json2["value"] == null ? undefined : json2["value"],
29112
+ type: json2["type"] == null ? undefined : TagTypeFromJSON(json2["type"]),
29113
+ accountKey: json2["accountKey"] == null ? undefined : json2["accountKey"],
29114
+ tenantKey: json2["tenantKey"] == null ? undefined : json2["tenantKey"],
29115
+ userKey: json2["userKey"] == null ? undefined : json2["userKey"]
28620
29116
  };
28621
29117
  }
28622
29118
 
28623
29119
  // ../resourcecatalog-sdk/generated/src/models/EntityScope.ts
28624
- function EntityScopeFromJSON(json) {
28625
- return EntityScopeFromJSONTyped(json, false);
29120
+ function EntityScopeFromJSON(json2) {
29121
+ return EntityScopeFromJSONTyped(json2, false);
28626
29122
  }
28627
- function EntityScopeFromJSONTyped(json, ignoreDiscriminator) {
28628
- return json;
29123
+ function EntityScopeFromJSONTyped(json2, ignoreDiscriminator) {
29124
+ return json2;
28629
29125
  }
28630
29126
 
28631
29127
  // ../resourcecatalog-sdk/generated/src/models/FolderType.ts
28632
- function FolderTypeFromJSON(json) {
28633
- return FolderTypeFromJSONTyped(json, false);
29128
+ function FolderTypeFromJSON(json2) {
29129
+ return FolderTypeFromJSONTyped(json2, false);
28634
29130
  }
28635
- function FolderTypeFromJSONTyped(json, ignoreDiscriminator) {
28636
- return json;
29131
+ function FolderTypeFromJSONTyped(json2, ignoreDiscriminator) {
29132
+ return json2;
28637
29133
  }
28638
29134
 
28639
29135
  // ../resourcecatalog-sdk/generated/src/models/FolderModel.ts
28640
- function FolderModelFromJSON(json) {
28641
- return FolderModelFromJSONTyped(json, false);
29136
+ function FolderModelFromJSON(json2) {
29137
+ return FolderModelFromJSONTyped(json2, false);
28642
29138
  }
28643
- function FolderModelFromJSONTyped(json, ignoreDiscriminator) {
28644
- if (json == null) {
28645
- return json;
29139
+ function FolderModelFromJSONTyped(json2, ignoreDiscriminator) {
29140
+ if (json2 == null) {
29141
+ return json2;
28646
29142
  }
28647
29143
  return {
28648
- id: json["id"] == null ? undefined : json["id"],
28649
- key: json["key"] == null ? undefined : json["key"],
28650
- displayName: json["displayName"] == null ? undefined : json["displayName"],
28651
- code: json["code"] == null ? undefined : json["code"],
28652
- fullyQualifiedName: json["fullyQualifiedName"] == null ? undefined : json["fullyQualifiedName"],
28653
- timestamp: json["timestamp"] == null ? undefined : new Date(json["timestamp"]),
28654
- tenantKey: json["tenantKey"] == null ? undefined : json["tenantKey"],
28655
- accountKey: json["accountKey"] == null ? undefined : json["accountKey"],
28656
- userKey: json["userKey"] == null ? undefined : json["userKey"],
28657
- type: json["type"] == null ? undefined : FolderTypeFromJSON(json["type"]),
28658
- path: json["path"] == null ? undefined : json["path"],
28659
- permissions: json["permissions"] == null ? undefined : json["permissions"]
29144
+ id: json2["id"] == null ? undefined : json2["id"],
29145
+ key: json2["key"] == null ? undefined : json2["key"],
29146
+ displayName: json2["displayName"] == null ? undefined : json2["displayName"],
29147
+ code: json2["code"] == null ? undefined : json2["code"],
29148
+ fullyQualifiedName: json2["fullyQualifiedName"] == null ? undefined : json2["fullyQualifiedName"],
29149
+ timestamp: json2["timestamp"] == null ? undefined : new Date(json2["timestamp"]),
29150
+ tenantKey: json2["tenantKey"] == null ? undefined : json2["tenantKey"],
29151
+ accountKey: json2["accountKey"] == null ? undefined : json2["accountKey"],
29152
+ userKey: json2["userKey"] == null ? undefined : json2["userKey"],
29153
+ type: json2["type"] == null ? undefined : FolderTypeFromJSON(json2["type"]),
29154
+ path: json2["path"] == null ? undefined : json2["path"],
29155
+ permissions: json2["permissions"] == null ? undefined : json2["permissions"]
28660
29156
  };
28661
29157
  }
28662
29158
 
28663
29159
  // ../resourcecatalog-sdk/generated/src/models/EntityModel.ts
28664
- function EntityModelFromJSON(json) {
28665
- return EntityModelFromJSONTyped(json, false);
29160
+ function EntityModelFromJSON(json2) {
29161
+ return EntityModelFromJSONTyped(json2, false);
28666
29162
  }
28667
- function EntityModelFromJSONTyped(json, ignoreDiscriminator) {
28668
- if (json == null) {
28669
- return json;
29163
+ function EntityModelFromJSONTyped(json2, ignoreDiscriminator) {
29164
+ if (json2 == null) {
29165
+ return json2;
28670
29166
  }
28671
29167
  return {
28672
- entityKey: json["entityKey"] == null ? undefined : json["entityKey"],
28673
- name: json["name"] == null ? undefined : json["name"],
28674
- description: json["description"] == null ? undefined : json["description"],
28675
- entityType: json["entityType"] == null ? undefined : json["entityType"],
28676
- tags: json["tags"] == null ? undefined : json["tags"].map(TagModelFromJSON),
28677
- folders: json["folders"] == null ? undefined : json["folders"].map(FolderModelFromJSON),
28678
- linkedFoldersCount: json["linkedFoldersCount"] == null ? undefined : json["linkedFoldersCount"],
28679
- source: json["source"] == null ? undefined : json["source"],
28680
- scope: json["scope"] == null ? undefined : EntityScopeFromJSON(json["scope"]),
28681
- searchState: json["searchState"] == null ? undefined : EntitySearchStateFromJSON(json["searchState"]),
28682
- timestamp: json["timestamp"] == null ? undefined : new Date(json["timestamp"]),
28683
- folderKey: json["folderKey"] == null ? undefined : json["folderKey"],
28684
- folderKeys: json["folderKeys"] == null ? undefined : json["folderKeys"],
28685
- tenantKey: json["tenantKey"] == null ? undefined : json["tenantKey"],
28686
- accountKey: json["accountKey"] == null ? undefined : json["accountKey"],
28687
- userKey: json["userKey"] == null ? undefined : json["userKey"],
28688
- dependencies: json["dependencies"] == null ? undefined : json["dependencies"],
28689
- customData: json["customData"] == null ? undefined : json["customData"],
28690
- entitySubType: json["entitySubType"] == null ? undefined : json["entitySubType"]
29168
+ entityKey: json2["entityKey"] == null ? undefined : json2["entityKey"],
29169
+ name: json2["name"] == null ? undefined : json2["name"],
29170
+ description: json2["description"] == null ? undefined : json2["description"],
29171
+ entityType: json2["entityType"] == null ? undefined : json2["entityType"],
29172
+ tags: json2["tags"] == null ? undefined : json2["tags"].map(TagModelFromJSON),
29173
+ folders: json2["folders"] == null ? undefined : json2["folders"].map(FolderModelFromJSON),
29174
+ linkedFoldersCount: json2["linkedFoldersCount"] == null ? undefined : json2["linkedFoldersCount"],
29175
+ source: json2["source"] == null ? undefined : json2["source"],
29176
+ scope: json2["scope"] == null ? undefined : EntityScopeFromJSON(json2["scope"]),
29177
+ searchState: json2["searchState"] == null ? undefined : EntitySearchStateFromJSON(json2["searchState"]),
29178
+ timestamp: json2["timestamp"] == null ? undefined : new Date(json2["timestamp"]),
29179
+ folderKey: json2["folderKey"] == null ? undefined : json2["folderKey"],
29180
+ folderKeys: json2["folderKeys"] == null ? undefined : json2["folderKeys"],
29181
+ tenantKey: json2["tenantKey"] == null ? undefined : json2["tenantKey"],
29182
+ accountKey: json2["accountKey"] == null ? undefined : json2["accountKey"],
29183
+ userKey: json2["userKey"] == null ? undefined : json2["userKey"],
29184
+ dependencies: json2["dependencies"] == null ? undefined : json2["dependencies"],
29185
+ customData: json2["customData"] == null ? undefined : json2["customData"],
29186
+ entitySubType: json2["entitySubType"] == null ? undefined : json2["entitySubType"]
28691
29187
  };
28692
29188
  }
28693
29189
 
28694
29190
  // ../resourcecatalog-sdk/generated/src/models/EntityModelPaginationResult.ts
28695
- function EntityModelPaginationResultFromJSON(json) {
28696
- return EntityModelPaginationResultFromJSONTyped(json, false);
29191
+ function EntityModelPaginationResultFromJSON(json2) {
29192
+ return EntityModelPaginationResultFromJSONTyped(json2, false);
28697
29193
  }
28698
- function EntityModelPaginationResultFromJSONTyped(json, ignoreDiscriminator) {
28699
- if (json == null) {
28700
- return json;
29194
+ function EntityModelPaginationResultFromJSONTyped(json2, ignoreDiscriminator) {
29195
+ if (json2 == null) {
29196
+ return json2;
28701
29197
  }
28702
29198
  return {
28703
- count: json["count"] == null ? undefined : json["count"],
28704
- value: json["value"] == null ? undefined : json["value"].map(EntityModelFromJSON)
29199
+ count: json2["count"] == null ? undefined : json2["count"],
29200
+ value: json2["value"] == null ? undefined : json2["value"].map(EntityModelFromJSON)
28705
29201
  };
28706
29202
  }
28707
29203
 
28708
29204
  // ../resourcecatalog-sdk/generated/src/models/FolderDto.ts
28709
- function FolderDtoFromJSON(json) {
28710
- return FolderDtoFromJSONTyped(json, false);
29205
+ function FolderDtoFromJSON(json2) {
29206
+ return FolderDtoFromJSONTyped(json2, false);
28711
29207
  }
28712
- function FolderDtoFromJSONTyped(json, ignoreDiscriminator) {
28713
- if (json == null) {
28714
- return json;
29208
+ function FolderDtoFromJSONTyped(json2, ignoreDiscriminator) {
29209
+ if (json2 == null) {
29210
+ return json2;
28715
29211
  }
28716
29212
  return {
28717
- key: json["key"] == null ? undefined : json["key"],
28718
- fullyQualifiedName: json["fullyQualifiedName"] == null ? undefined : json["fullyQualifiedName"],
28719
- isPersonal: json["isPersonal"] == null ? undefined : json["isPersonal"],
28720
- folderType: json["folderType"] == null ? undefined : FolderTypeFromJSON(json["folderType"])
29213
+ key: json2["key"] == null ? undefined : json2["key"],
29214
+ fullyQualifiedName: json2["fullyQualifiedName"] == null ? undefined : json2["fullyQualifiedName"],
29215
+ isPersonal: json2["isPersonal"] == null ? undefined : json2["isPersonal"],
29216
+ folderType: json2["folderType"] == null ? undefined : FolderTypeFromJSON(json2["folderType"])
28721
29217
  };
28722
29218
  }
28723
29219
 
28724
29220
  // ../resourcecatalog-sdk/generated/src/models/FolderEntityModel.ts
28725
- function FolderEntityModelFromJSON(json) {
28726
- return FolderEntityModelFromJSONTyped(json, false);
29221
+ function FolderEntityModelFromJSON(json2) {
29222
+ return FolderEntityModelFromJSONTyped(json2, false);
28727
29223
  }
28728
- function FolderEntityModelFromJSONTyped(json, ignoreDiscriminator) {
28729
- if (json == null) {
28730
- return json;
29224
+ function FolderEntityModelFromJSONTyped(json2, ignoreDiscriminator) {
29225
+ if (json2 == null) {
29226
+ return json2;
28731
29227
  }
28732
29228
  return {
28733
- folderKey: json["folderKey"] == null ? undefined : json["folderKey"],
28734
- folderName: json["folderName"] == null ? undefined : json["folderName"],
28735
- folderCode: json["folderCode"] == null ? undefined : json["folderCode"],
28736
- fullyQualifiedName: json["fullyQualifiedName"] == null ? undefined : json["fullyQualifiedName"],
28737
- folderType: json["folderType"] == null ? undefined : FolderTypeFromJSON(json["folderType"]),
28738
- folderPath: json["folderPath"] == null ? undefined : json["folderPath"],
28739
- entityKey: json["entityKey"] == null ? undefined : json["entityKey"],
28740
- entityName: json["entityName"] == null ? undefined : json["entityName"],
28741
- entityDescription: json["entityDescription"] == null ? undefined : json["entityDescription"],
28742
- entityType: json["entityType"] == null ? undefined : json["entityType"],
28743
- entitySubType: json["entitySubType"] == null ? undefined : json["entitySubType"],
28744
- entitySource: json["entitySource"] == null ? undefined : json["entitySource"]
29229
+ folderKey: json2["folderKey"] == null ? undefined : json2["folderKey"],
29230
+ folderName: json2["folderName"] == null ? undefined : json2["folderName"],
29231
+ folderCode: json2["folderCode"] == null ? undefined : json2["folderCode"],
29232
+ fullyQualifiedName: json2["fullyQualifiedName"] == null ? undefined : json2["fullyQualifiedName"],
29233
+ folderType: json2["folderType"] == null ? undefined : FolderTypeFromJSON(json2["folderType"]),
29234
+ folderPath: json2["folderPath"] == null ? undefined : json2["folderPath"],
29235
+ entityKey: json2["entityKey"] == null ? undefined : json2["entityKey"],
29236
+ entityName: json2["entityName"] == null ? undefined : json2["entityName"],
29237
+ entityDescription: json2["entityDescription"] == null ? undefined : json2["entityDescription"],
29238
+ entityType: json2["entityType"] == null ? undefined : json2["entityType"],
29239
+ entitySubType: json2["entitySubType"] == null ? undefined : json2["entitySubType"],
29240
+ entitySource: json2["entitySource"] == null ? undefined : json2["entitySource"]
28745
29241
  };
28746
29242
  }
28747
29243
 
28748
29244
  // ../resourcecatalog-sdk/generated/src/models/FolderEntityModelCursorPaginationResult.ts
28749
- function FolderEntityModelCursorPaginationResultFromJSON(json) {
28750
- return FolderEntityModelCursorPaginationResultFromJSONTyped(json, false);
29245
+ function FolderEntityModelCursorPaginationResultFromJSON(json2) {
29246
+ return FolderEntityModelCursorPaginationResultFromJSONTyped(json2, false);
28751
29247
  }
28752
- function FolderEntityModelCursorPaginationResultFromJSONTyped(json, ignoreDiscriminator) {
28753
- if (json == null) {
28754
- return json;
29248
+ function FolderEntityModelCursorPaginationResultFromJSONTyped(json2, ignoreDiscriminator) {
29249
+ if (json2 == null) {
29250
+ return json2;
28755
29251
  }
28756
29252
  return {
28757
- items: json["items"] == null ? undefined : json["items"].map(FolderEntityModelFromJSON),
28758
- totalCount: json["totalCount"] == null ? undefined : json["totalCount"],
28759
- nextPage: json["nextPage"] == null ? undefined : json["nextPage"],
28760
- previousPage: json["previousPage"] == null ? undefined : json["previousPage"]
29253
+ items: json2["items"] == null ? undefined : json2["items"].map(FolderEntityModelFromJSON),
29254
+ totalCount: json2["totalCount"] == null ? undefined : json2["totalCount"],
29255
+ nextPage: json2["nextPage"] == null ? undefined : json2["nextPage"],
29256
+ previousPage: json2["previousPage"] == null ? undefined : json2["previousPage"]
28761
29257
  };
28762
29258
  }
28763
29259
 
28764
29260
  // ../resourcecatalog-sdk/generated/src/models/TagReferencesModel.ts
28765
- function TagReferencesModelFromJSON(json) {
28766
- return TagReferencesModelFromJSONTyped(json, false);
29261
+ function TagReferencesModelFromJSON(json2) {
29262
+ return TagReferencesModelFromJSONTyped(json2, false);
28767
29263
  }
28768
- function TagReferencesModelFromJSONTyped(json, ignoreDiscriminator) {
28769
- if (json == null) {
28770
- return json;
29264
+ function TagReferencesModelFromJSONTyped(json2, ignoreDiscriminator) {
29265
+ if (json2 == null) {
29266
+ return json2;
28771
29267
  }
28772
29268
  return {
28773
- entityType: json["entityType"] == null ? undefined : json["entityType"],
28774
- count: json["count"] == null ? undefined : json["count"]
29269
+ entityType: json2["entityType"] == null ? undefined : json2["entityType"],
29270
+ count: json2["count"] == null ? undefined : json2["count"]
28775
29271
  };
28776
29272
  }
28777
- function TagReferencesModelToJSON(json) {
28778
- return TagReferencesModelToJSONTyped(json, false);
29273
+ function TagReferencesModelToJSON(json2) {
29274
+ return TagReferencesModelToJSONTyped(json2, false);
28779
29275
  }
28780
29276
  function TagReferencesModelToJSONTyped(value, ignoreDiscriminator = false) {
28781
29277
  if (value == null) {
@@ -28788,41 +29284,41 @@ function TagReferencesModelToJSONTyped(value, ignoreDiscriminator = false) {
28788
29284
  }
28789
29285
 
28790
29286
  // ../resourcecatalog-sdk/generated/src/models/TagDataType.ts
28791
- function TagDataTypeFromJSON(json) {
28792
- return TagDataTypeFromJSONTyped(json, false);
29287
+ function TagDataTypeFromJSON(json2) {
29288
+ return TagDataTypeFromJSONTyped(json2, false);
28793
29289
  }
28794
- function TagDataTypeFromJSONTyped(json, ignoreDiscriminator) {
28795
- return json;
29290
+ function TagDataTypeFromJSONTyped(json2, ignoreDiscriminator) {
29291
+ return json2;
28796
29292
  }
28797
29293
  function TagDataTypeToJSON(value) {
28798
29294
  return value;
28799
29295
  }
28800
29296
 
28801
29297
  // ../resourcecatalog-sdk/generated/src/models/LabelModel.ts
28802
- function LabelModelFromJSON(json) {
28803
- return LabelModelFromJSONTyped(json, false);
29298
+ function LabelModelFromJSON(json2) {
29299
+ return LabelModelFromJSONTyped(json2, false);
28804
29300
  }
28805
- function LabelModelFromJSONTyped(json, ignoreDiscriminator) {
28806
- if (json == null) {
28807
- return json;
29301
+ function LabelModelFromJSONTyped(json2, ignoreDiscriminator) {
29302
+ if (json2 == null) {
29303
+ return json2;
28808
29304
  }
28809
29305
  return {
28810
- key: json["key"] == null ? undefined : json["key"],
28811
- name: json["name"] == null ? undefined : json["name"],
28812
- description: json["description"] == null ? undefined : json["description"],
28813
- referencesCount: json["referencesCount"] == null ? undefined : json["referencesCount"],
28814
- entityReferencesCount: json["entityReferencesCount"] == null ? undefined : json["entityReferencesCount"].map(TagReferencesModelFromJSON),
28815
- dataType: json["dataType"] == null ? undefined : TagDataTypeFromJSON(json["dataType"]),
28816
- regex: json["regex"] == null ? undefined : json["regex"],
28817
- type: json["type"] == null ? undefined : TagTypeFromJSON(json["type"]),
28818
- accountKey: json["accountKey"] == null ? undefined : json["accountKey"],
28819
- tenantKey: json["tenantKey"] == null ? undefined : json["tenantKey"],
28820
- userKey: json["userKey"] == null ? undefined : json["userKey"],
28821
- values: json["values"] == null ? undefined : json["values"]
29306
+ key: json2["key"] == null ? undefined : json2["key"],
29307
+ name: json2["name"] == null ? undefined : json2["name"],
29308
+ description: json2["description"] == null ? undefined : json2["description"],
29309
+ referencesCount: json2["referencesCount"] == null ? undefined : json2["referencesCount"],
29310
+ entityReferencesCount: json2["entityReferencesCount"] == null ? undefined : json2["entityReferencesCount"].map(TagReferencesModelFromJSON),
29311
+ dataType: json2["dataType"] == null ? undefined : TagDataTypeFromJSON(json2["dataType"]),
29312
+ regex: json2["regex"] == null ? undefined : json2["regex"],
29313
+ type: json2["type"] == null ? undefined : TagTypeFromJSON(json2["type"]),
29314
+ accountKey: json2["accountKey"] == null ? undefined : json2["accountKey"],
29315
+ tenantKey: json2["tenantKey"] == null ? undefined : json2["tenantKey"],
29316
+ userKey: json2["userKey"] == null ? undefined : json2["userKey"],
29317
+ values: json2["values"] == null ? undefined : json2["values"]
28822
29318
  };
28823
29319
  }
28824
- function LabelModelToJSON(json) {
28825
- return LabelModelToJSONTyped(json, false);
29320
+ function LabelModelToJSON(json2) {
29321
+ return LabelModelToJSONTyped(json2, false);
28826
29322
  }
28827
29323
  function LabelModelToJSONTyped(value, ignoreDiscriminator = false) {
28828
29324
  if (value == null) {
@@ -28845,52 +29341,52 @@ function LabelModelToJSONTyped(value, ignoreDiscriminator = false) {
28845
29341
  }
28846
29342
 
28847
29343
  // ../resourcecatalog-sdk/generated/src/models/LabelModelPaginationResult.ts
28848
- function LabelModelPaginationResultFromJSON(json) {
28849
- return LabelModelPaginationResultFromJSONTyped(json, false);
29344
+ function LabelModelPaginationResultFromJSON(json2) {
29345
+ return LabelModelPaginationResultFromJSONTyped(json2, false);
28850
29346
  }
28851
- function LabelModelPaginationResultFromJSONTyped(json, ignoreDiscriminator) {
28852
- if (json == null) {
28853
- return json;
29347
+ function LabelModelPaginationResultFromJSONTyped(json2, ignoreDiscriminator) {
29348
+ if (json2 == null) {
29349
+ return json2;
28854
29350
  }
28855
29351
  return {
28856
- count: json["count"] == null ? undefined : json["count"],
28857
- value: json["value"] == null ? undefined : json["value"].map(LabelModelFromJSON)
29352
+ count: json2["count"] == null ? undefined : json2["count"],
29353
+ value: json2["value"] == null ? undefined : json2["value"].map(LabelModelFromJSON)
28858
29354
  };
28859
29355
  }
28860
29356
 
28861
29357
  // ../resourcecatalog-sdk/generated/src/models/TagValueModel.ts
28862
- function TagValueModelFromJSON(json) {
28863
- return TagValueModelFromJSONTyped(json, false);
29358
+ function TagValueModelFromJSON(json2) {
29359
+ return TagValueModelFromJSONTyped(json2, false);
28864
29360
  }
28865
- function TagValueModelFromJSONTyped(json, ignoreDiscriminator) {
28866
- if (json == null) {
28867
- return json;
29361
+ function TagValueModelFromJSONTyped(json2, ignoreDiscriminator) {
29362
+ if (json2 == null) {
29363
+ return json2;
28868
29364
  }
28869
29365
  return {
28870
- key: json["key"] == null ? undefined : json["key"],
28871
- displayValue: json["displayValue"] == null ? undefined : json["displayValue"],
28872
- normalizedValue: json["normalizedValue"] == null ? undefined : json["normalizedValue"],
28873
- entityReferencesCount: json["entityReferencesCount"] == null ? undefined : json["entityReferencesCount"].map(TagReferencesModelFromJSON)
29366
+ key: json2["key"] == null ? undefined : json2["key"],
29367
+ displayValue: json2["displayValue"] == null ? undefined : json2["displayValue"],
29368
+ normalizedValue: json2["normalizedValue"] == null ? undefined : json2["normalizedValue"],
29369
+ entityReferencesCount: json2["entityReferencesCount"] == null ? undefined : json2["entityReferencesCount"].map(TagReferencesModelFromJSON)
28874
29370
  };
28875
29371
  }
28876
29372
 
28877
29373
  // ../resourcecatalog-sdk/generated/src/models/TagValueModelPaginationResult.ts
28878
- function TagValueModelPaginationResultFromJSON(json) {
28879
- return TagValueModelPaginationResultFromJSONTyped(json, false);
29374
+ function TagValueModelPaginationResultFromJSON(json2) {
29375
+ return TagValueModelPaginationResultFromJSONTyped(json2, false);
28880
29376
  }
28881
- function TagValueModelPaginationResultFromJSONTyped(json, ignoreDiscriminator) {
28882
- if (json == null) {
28883
- return json;
29377
+ function TagValueModelPaginationResultFromJSONTyped(json2, ignoreDiscriminator) {
29378
+ if (json2 == null) {
29379
+ return json2;
28884
29380
  }
28885
29381
  return {
28886
- count: json["count"] == null ? undefined : json["count"],
28887
- value: json["value"] == null ? undefined : json["value"].map(TagValueModelFromJSON)
29382
+ count: json2["count"] == null ? undefined : json2["count"],
29383
+ value: json2["value"] == null ? undefined : json2["value"].map(TagValueModelFromJSON)
28888
29384
  };
28889
29385
  }
28890
29386
 
28891
29387
  // ../resourcecatalog-sdk/generated/src/models/ValueModel.ts
28892
- function ValueModelToJSON(json) {
28893
- return ValueModelToJSONTyped(json, false);
29388
+ function ValueModelToJSON(json2) {
29389
+ return ValueModelToJSONTyped(json2, false);
28894
29390
  }
28895
29391
  function ValueModelToJSONTyped(value, ignoreDiscriminator = false) {
28896
29392
  if (value == null) {
@@ -30586,12 +31082,12 @@ var loadEnvFileAsync = async ({ envPath }) => {
30586
31082
  var saveEnvFileAsync = async ({
30587
31083
  envPath,
30588
31084
  data,
30589
- merge = true
31085
+ merge: merge2 = true
30590
31086
  }) => {
30591
31087
  const fs7 = getFileSystem();
30592
31088
  const absolutePath = fs7.path.isAbsolute(envPath) ? envPath : fs7.path.join(fs7.env.homedir(), envPath);
30593
31089
  let existingData = {};
30594
- if (merge && await fs7.exists(absolutePath)) {
31090
+ if (merge2 && await fs7.exists(absolutePath)) {
30595
31091
  try {
30596
31092
  existingData = await loadEnvFileAsync({ envPath: absolutePath });
30597
31093
  } catch {}
@@ -31082,6 +31578,10 @@ function normalizeTokenRefreshUnavailableFailure() {
31082
31578
  function errorMessage(error) {
31083
31579
  return error instanceof Error ? error.message : String(error);
31084
31580
  }
31581
+
31582
+ // ../../auth/src/index.ts
31583
+ init_constants();
31584
+
31085
31585
  // ../../auth/src/interactive.ts
31086
31586
  init_src();
31087
31587
 
@@ -31367,4 +31867,4 @@ program2.name(metadata.commandPrefix).description(metadata.description).version(
31367
31867
  await registerCommands(program2);
31368
31868
  program2.parse(process.argv);
31369
31869
 
31370
- //# debugId=40BFA9E723E7745964756E2164756E21
31870
+ //# debugId=B31B388969C4F4F364756E2164756E21