@uipath/solution-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.
package/dist/init.js CHANGED
@@ -5063,31 +5063,17 @@ function search(data, expression, options) {
5063
5063
  }
5064
5064
 
5065
5065
  // ../../node_modules/js-yaml/dist/js-yaml.mjs
5066
- /*! js-yaml 4.2.0 https://github.com/nodeca/js-yaml @license MIT */
5067
- var __create2 = Object.create;
5068
- var __defProp2 = Object.defineProperty;
5069
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5070
- var __getOwnPropNames2 = Object.getOwnPropertyNames;
5071
- var __getProtoOf2 = Object.getPrototypeOf;
5072
- var __hasOwnProp2 = Object.prototype.hasOwnProperty;
5073
- var __commonJSMin = (cb, mod2) => () => (mod2 || (cb((mod2 = { exports: {} }).exports, mod2), cb = null), mod2.exports);
5074
- var __copyProps = (to, from, except, desc) => {
5075
- if (from && typeof from === "object" || typeof from === "function")
5076
- for (var keys = __getOwnPropNames2(from), i = 0, n = keys.length, key;i < n; i++) {
5077
- key = keys[i];
5078
- if (!__hasOwnProp2.call(to, key) && key !== except)
5079
- __defProp2(to, key, {
5080
- get: ((k) => from[k]).bind(null, key),
5081
- enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
5082
- });
5083
- }
5084
- return to;
5085
- };
5086
- var __toESM2 = (mod2, isNodeMode, target) => (target = mod2 != null ? __create2(__getProtoOf2(mod2)) : {}, __copyProps(isNodeMode || !mod2 || !mod2.__esModule ? __defProp2(target, "default", {
5087
- value: mod2,
5088
- enumerable: true
5089
- }) : target, mod2));
5090
- var require_common = /* @__PURE__ */ __commonJSMin((exports, module) => {
5066
+ function getDefaultExportFromCjs(x) {
5067
+ return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, "default") ? x["default"] : x;
5068
+ }
5069
+ var jsYaml = {};
5070
+ var loader = {};
5071
+ var common = {};
5072
+ var hasRequiredCommon;
5073
+ function requireCommon() {
5074
+ if (hasRequiredCommon)
5075
+ return common;
5076
+ hasRequiredCommon = 1;
5091
5077
  function isNothing(subject) {
5092
5078
  return typeof subject === "undefined" || subject === null;
5093
5079
  }
@@ -5113,55 +5099,71 @@ var require_common = /* @__PURE__ */ __commonJSMin((exports, module) => {
5113
5099
  }
5114
5100
  function repeat(string, count) {
5115
5101
  let result = "";
5116
- for (let cycle = 0;cycle < count; cycle += 1)
5102
+ for (let cycle = 0;cycle < count; cycle += 1) {
5117
5103
  result += string;
5104
+ }
5118
5105
  return result;
5119
5106
  }
5120
5107
  function isNegativeZero(number) {
5121
5108
  return number === 0 && Number.NEGATIVE_INFINITY === 1 / number;
5122
5109
  }
5123
- module.exports.isNothing = isNothing;
5124
- module.exports.isObject = isObject2;
5125
- module.exports.toArray = toArray;
5126
- module.exports.repeat = repeat;
5127
- module.exports.isNegativeZero = isNegativeZero;
5128
- module.exports.extend = extend;
5129
- });
5130
- var require_exception = /* @__PURE__ */ __commonJSMin((exports, module) => {
5131
- function formatError(exception, compact) {
5110
+ common.isNothing = isNothing;
5111
+ common.isObject = isObject2;
5112
+ common.toArray = toArray;
5113
+ common.repeat = repeat;
5114
+ common.isNegativeZero = isNegativeZero;
5115
+ common.extend = extend;
5116
+ return common;
5117
+ }
5118
+ var exception;
5119
+ var hasRequiredException;
5120
+ function requireException() {
5121
+ if (hasRequiredException)
5122
+ return exception;
5123
+ hasRequiredException = 1;
5124
+ function formatError(exception2, compact) {
5132
5125
  let where = "";
5133
- const message = exception.reason || "(unknown reason)";
5134
- if (!exception.mark)
5126
+ const message = exception2.reason || "(unknown reason)";
5127
+ if (!exception2.mark)
5135
5128
  return message;
5136
- if (exception.mark.name)
5137
- where += 'in "' + exception.mark.name + '" ';
5138
- where += "(" + (exception.mark.line + 1) + ":" + (exception.mark.column + 1) + ")";
5139
- if (!compact && exception.mark.snippet)
5129
+ if (exception2.mark.name) {
5130
+ where += 'in "' + exception2.mark.name + '" ';
5131
+ }
5132
+ where += "(" + (exception2.mark.line + 1) + ":" + (exception2.mark.column + 1) + ")";
5133
+ if (!compact && exception2.mark.snippet) {
5140
5134
  where += `
5141
5135
 
5142
- ` + exception.mark.snippet;
5136
+ ` + exception2.mark.snippet;
5137
+ }
5143
5138
  return message + " " + where;
5144
5139
  }
5145
- function YAMLException(reason, mark) {
5140
+ function YAMLException2(reason, mark) {
5146
5141
  Error.call(this);
5147
5142
  this.name = "YAMLException";
5148
5143
  this.reason = reason;
5149
5144
  this.mark = mark;
5150
5145
  this.message = formatError(this, false);
5151
- if (Error.captureStackTrace)
5146
+ if (Error.captureStackTrace) {
5152
5147
  Error.captureStackTrace(this, this.constructor);
5153
- else
5154
- this.stack = (/* @__PURE__ */ new Error()).stack || "";
5148
+ } else {
5149
+ this.stack = new Error().stack || "";
5150
+ }
5155
5151
  }
5156
- YAMLException.prototype = Object.create(Error.prototype);
5157
- YAMLException.prototype.constructor = YAMLException;
5158
- YAMLException.prototype.toString = function toString(compact) {
5152
+ YAMLException2.prototype = Object.create(Error.prototype);
5153
+ YAMLException2.prototype.constructor = YAMLException2;
5154
+ YAMLException2.prototype.toString = function toString(compact) {
5159
5155
  return this.name + ": " + formatError(this, compact);
5160
5156
  };
5161
- module.exports = YAMLException;
5162
- });
5163
- var require_snippet = /* @__PURE__ */ __commonJSMin((exports, module) => {
5164
- var common = require_common();
5157
+ exception = YAMLException2;
5158
+ return exception;
5159
+ }
5160
+ var snippet;
5161
+ var hasRequiredSnippet;
5162
+ function requireSnippet() {
5163
+ if (hasRequiredSnippet)
5164
+ return snippet;
5165
+ hasRequiredSnippet = 1;
5166
+ const common2 = requireCommon();
5165
5167
  function getLine(buffer, lineStart, lineEnd, position, maxLineLength) {
5166
5168
  let head = "";
5167
5169
  let tail = "";
@@ -5180,7 +5182,7 @@ var require_snippet = /* @__PURE__ */ __commonJSMin((exports, module) => {
5180
5182
  };
5181
5183
  }
5182
5184
  function padStart(string, max) {
5183
- return common.repeat(" ", max - string.length) + string;
5185
+ return common2.repeat(" ", max - string.length) + string;
5184
5186
  }
5185
5187
  function makeSnippet(mark, options) {
5186
5188
  options = Object.create(options || null);
@@ -5202,8 +5204,9 @@ var require_snippet = /* @__PURE__ */ __commonJSMin((exports, module) => {
5202
5204
  while (match = re.exec(mark.buffer)) {
5203
5205
  lineEnds.push(match.index);
5204
5206
  lineStarts.push(match.index + match[0].length);
5205
- if (mark.position <= match.index && foundLineNo < 0)
5207
+ if (mark.position <= match.index && foundLineNo < 0) {
5206
5208
  foundLineNo = lineStarts.length - 2;
5209
+ }
5207
5210
  }
5208
5211
  if (foundLineNo < 0)
5209
5212
  foundLineNo = lineStarts.length - 1;
@@ -5214,28 +5217,34 @@ var require_snippet = /* @__PURE__ */ __commonJSMin((exports, module) => {
5214
5217
  if (foundLineNo - i < 0)
5215
5218
  break;
5216
5219
  const line2 = getLine(mark.buffer, lineStarts[foundLineNo - i], lineEnds[foundLineNo - i], mark.position - (lineStarts[foundLineNo] - lineStarts[foundLineNo - i]), maxLineLength);
5217
- result = common.repeat(" ", options.indent) + padStart((mark.line - i + 1).toString(), lineNoLength) + " | " + line2.str + `
5220
+ result = common2.repeat(" ", options.indent) + padStart((mark.line - i + 1).toString(), lineNoLength) + " | " + line2.str + `
5218
5221
  ` + result;
5219
5222
  }
5220
5223
  const line = getLine(mark.buffer, lineStarts[foundLineNo], lineEnds[foundLineNo], mark.position, maxLineLength);
5221
- result += common.repeat(" ", options.indent) + padStart((mark.line + 1).toString(), lineNoLength) + " | " + line.str + `
5224
+ result += common2.repeat(" ", options.indent) + padStart((mark.line + 1).toString(), lineNoLength) + " | " + line.str + `
5222
5225
  `;
5223
- result += common.repeat("-", options.indent + lineNoLength + 3 + line.pos) + `^
5226
+ result += common2.repeat("-", options.indent + lineNoLength + 3 + line.pos) + `^
5224
5227
  `;
5225
5228
  for (let i = 1;i <= options.linesAfter; i++) {
5226
5229
  if (foundLineNo + i >= lineEnds.length)
5227
5230
  break;
5228
5231
  const line2 = getLine(mark.buffer, lineStarts[foundLineNo + i], lineEnds[foundLineNo + i], mark.position - (lineStarts[foundLineNo] - lineStarts[foundLineNo + i]), maxLineLength);
5229
- result += common.repeat(" ", options.indent) + padStart((mark.line + i + 1).toString(), lineNoLength) + " | " + line2.str + `
5232
+ result += common2.repeat(" ", options.indent) + padStart((mark.line + i + 1).toString(), lineNoLength) + " | " + line2.str + `
5230
5233
  `;
5231
5234
  }
5232
5235
  return result.replace(/\n$/, "");
5233
5236
  }
5234
- module.exports = makeSnippet;
5235
- });
5236
- var require_type = /* @__PURE__ */ __commonJSMin((exports, module) => {
5237
- var YAMLException = require_exception();
5238
- var TYPE_CONSTRUCTOR_OPTIONS = [
5237
+ snippet = makeSnippet;
5238
+ return snippet;
5239
+ }
5240
+ var type;
5241
+ var hasRequiredType;
5242
+ function requireType() {
5243
+ if (hasRequiredType)
5244
+ return type;
5245
+ hasRequiredType = 1;
5246
+ const YAMLException2 = requireException();
5247
+ const TYPE_CONSTRUCTOR_OPTIONS = [
5239
5248
  "kind",
5240
5249
  "multi",
5241
5250
  "resolve",
@@ -5247,26 +5256,28 @@ var require_type = /* @__PURE__ */ __commonJSMin((exports, module) => {
5247
5256
  "defaultStyle",
5248
5257
  "styleAliases"
5249
5258
  ];
5250
- var YAML_NODE_KINDS = [
5259
+ const YAML_NODE_KINDS = [
5251
5260
  "scalar",
5252
5261
  "sequence",
5253
5262
  "mapping"
5254
5263
  ];
5255
- function compileStyleAliases(map) {
5264
+ function compileStyleAliases(map2) {
5256
5265
  const result = {};
5257
- if (map !== null)
5258
- Object.keys(map).forEach(function(style) {
5259
- map[style].forEach(function(alias) {
5266
+ if (map2 !== null) {
5267
+ Object.keys(map2).forEach(function(style) {
5268
+ map2[style].forEach(function(alias) {
5260
5269
  result[String(alias)] = style;
5261
5270
  });
5262
5271
  });
5272
+ }
5263
5273
  return result;
5264
5274
  }
5265
- function Type(tag, options) {
5275
+ function Type2(tag, options) {
5266
5276
  options = options || {};
5267
5277
  Object.keys(options).forEach(function(name) {
5268
- if (TYPE_CONSTRUCTOR_OPTIONS.indexOf(name) === -1)
5269
- throw new YAMLException('Unknown option "' + name + '" is met in definition of "' + tag + '" YAML type.');
5278
+ if (TYPE_CONSTRUCTOR_OPTIONS.indexOf(name) === -1) {
5279
+ throw new YAMLException2('Unknown option "' + name + '" is met in definition of "' + tag + '" YAML type.');
5280
+ }
5270
5281
  });
5271
5282
  this.options = options;
5272
5283
  this.tag = tag;
@@ -5284,21 +5295,29 @@ var require_type = /* @__PURE__ */ __commonJSMin((exports, module) => {
5284
5295
  this.defaultStyle = options["defaultStyle"] || null;
5285
5296
  this.multi = options["multi"] || false;
5286
5297
  this.styleAliases = compileStyleAliases(options["styleAliases"] || null);
5287
- if (YAML_NODE_KINDS.indexOf(this.kind) === -1)
5288
- throw new YAMLException('Unknown kind "' + this.kind + '" is specified for "' + tag + '" YAML type.');
5298
+ if (YAML_NODE_KINDS.indexOf(this.kind) === -1) {
5299
+ throw new YAMLException2('Unknown kind "' + this.kind + '" is specified for "' + tag + '" YAML type.');
5300
+ }
5289
5301
  }
5290
- module.exports = Type;
5291
- });
5292
- var require_schema = /* @__PURE__ */ __commonJSMin((exports, module) => {
5293
- var YAMLException = require_exception();
5294
- var Type = require_type();
5295
- function compileList(schema, name) {
5302
+ type = Type2;
5303
+ return type;
5304
+ }
5305
+ var schema;
5306
+ var hasRequiredSchema;
5307
+ function requireSchema() {
5308
+ if (hasRequiredSchema)
5309
+ return schema;
5310
+ hasRequiredSchema = 1;
5311
+ const YAMLException2 = requireException();
5312
+ const Type2 = requireType();
5313
+ function compileList(schema2, name) {
5296
5314
  const result = [];
5297
- schema[name].forEach(function(currentType) {
5315
+ schema2[name].forEach(function(currentType) {
5298
5316
  let newIndex = result.length;
5299
5317
  result.forEach(function(previousType, previousIndex) {
5300
- if (previousType.tag === currentType.tag && previousType.kind === currentType.kind && previousType.multi === currentType.multi)
5318
+ if (previousType.tag === currentType.tag && previousType.kind === currentType.kind && previousType.multi === currentType.multi) {
5301
5319
  newIndex = previousIndex;
5320
+ }
5302
5321
  });
5303
5322
  result[newIndex] = currentType;
5304
5323
  });
@@ -5317,47 +5336,54 @@ var require_schema = /* @__PURE__ */ __commonJSMin((exports, module) => {
5317
5336
  fallback: []
5318
5337
  }
5319
5338
  };
5320
- function collectType(type) {
5321
- if (type.multi) {
5322
- result.multi[type.kind].push(type);
5323
- result.multi["fallback"].push(type);
5324
- } else
5325
- result[type.kind][type.tag] = result["fallback"][type.tag] = type;
5326
- }
5327
- for (let index = 0, length = arguments.length;index < length; index += 1)
5339
+ function collectType(type2) {
5340
+ if (type2.multi) {
5341
+ result.multi[type2.kind].push(type2);
5342
+ result.multi["fallback"].push(type2);
5343
+ } else {
5344
+ result[type2.kind][type2.tag] = result["fallback"][type2.tag] = type2;
5345
+ }
5346
+ }
5347
+ for (let index = 0, length = arguments.length;index < length; index += 1) {
5328
5348
  arguments[index].forEach(collectType);
5349
+ }
5329
5350
  return result;
5330
5351
  }
5331
- function Schema(definition) {
5352
+ function Schema2(definition) {
5332
5353
  return this.extend(definition);
5333
5354
  }
5334
- Schema.prototype.extend = function extend(definition) {
5355
+ Schema2.prototype.extend = function extend(definition) {
5335
5356
  let implicit = [];
5336
5357
  let explicit = [];
5337
- if (definition instanceof Type)
5358
+ if (definition instanceof Type2) {
5338
5359
  explicit.push(definition);
5339
- else if (Array.isArray(definition))
5360
+ } else if (Array.isArray(definition)) {
5340
5361
  explicit = explicit.concat(definition);
5341
- else if (definition && (Array.isArray(definition.implicit) || Array.isArray(definition.explicit))) {
5362
+ } else if (definition && (Array.isArray(definition.implicit) || Array.isArray(definition.explicit))) {
5342
5363
  if (definition.implicit)
5343
5364
  implicit = implicit.concat(definition.implicit);
5344
5365
  if (definition.explicit)
5345
5366
  explicit = explicit.concat(definition.explicit);
5346
- } else
5347
- throw new YAMLException("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })");
5348
- implicit.forEach(function(type) {
5349
- if (!(type instanceof Type))
5350
- throw new YAMLException("Specified list of YAML types (or a single Type object) contains a non-Type object.");
5351
- if (type.loadKind && type.loadKind !== "scalar")
5352
- throw new YAMLException("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.");
5353
- if (type.multi)
5354
- throw new YAMLException("There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.");
5367
+ } else {
5368
+ throw new YAMLException2("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })");
5369
+ }
5370
+ implicit.forEach(function(type2) {
5371
+ if (!(type2 instanceof Type2)) {
5372
+ throw new YAMLException2("Specified list of YAML types (or a single Type object) contains a non-Type object.");
5373
+ }
5374
+ if (type2.loadKind && type2.loadKind !== "scalar") {
5375
+ throw new YAMLException2("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.");
5376
+ }
5377
+ if (type2.multi) {
5378
+ throw new YAMLException2("There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.");
5379
+ }
5355
5380
  });
5356
- explicit.forEach(function(type) {
5357
- if (!(type instanceof Type))
5358
- throw new YAMLException("Specified list of YAML types (or a single Type object) contains a non-Type object.");
5381
+ explicit.forEach(function(type2) {
5382
+ if (!(type2 instanceof Type2)) {
5383
+ throw new YAMLException2("Specified list of YAML types (or a single Type object) contains a non-Type object.");
5384
+ }
5359
5385
  });
5360
- const result = Object.create(Schema.prototype);
5386
+ const result = Object.create(Schema2.prototype);
5361
5387
  result.implicit = (this.implicit || []).concat(implicit);
5362
5388
  result.explicit = (this.explicit || []).concat(explicit);
5363
5389
  result.compiledImplicit = compileList(result, "implicit");
@@ -5365,41 +5391,77 @@ var require_schema = /* @__PURE__ */ __commonJSMin((exports, module) => {
5365
5391
  result.compiledTypeMap = compileMap(result.compiledImplicit, result.compiledExplicit);
5366
5392
  return result;
5367
5393
  };
5368
- module.exports = Schema;
5369
- });
5370
- var require_str = /* @__PURE__ */ __commonJSMin((exports, module) => {
5371
- module.exports = new (require_type())("tag:yaml.org,2002:str", {
5394
+ schema = Schema2;
5395
+ return schema;
5396
+ }
5397
+ var str;
5398
+ var hasRequiredStr;
5399
+ function requireStr() {
5400
+ if (hasRequiredStr)
5401
+ return str;
5402
+ hasRequiredStr = 1;
5403
+ const Type2 = requireType();
5404
+ str = new Type2("tag:yaml.org,2002:str", {
5372
5405
  kind: "scalar",
5373
5406
  construct: function(data) {
5374
5407
  return data !== null ? data : "";
5375
5408
  }
5376
5409
  });
5377
- });
5378
- var require_seq = /* @__PURE__ */ __commonJSMin((exports, module) => {
5379
- module.exports = new (require_type())("tag:yaml.org,2002:seq", {
5410
+ return str;
5411
+ }
5412
+ var seq;
5413
+ var hasRequiredSeq;
5414
+ function requireSeq() {
5415
+ if (hasRequiredSeq)
5416
+ return seq;
5417
+ hasRequiredSeq = 1;
5418
+ const Type2 = requireType();
5419
+ seq = new Type2("tag:yaml.org,2002:seq", {
5380
5420
  kind: "sequence",
5381
5421
  construct: function(data) {
5382
5422
  return data !== null ? data : [];
5383
5423
  }
5384
5424
  });
5385
- });
5386
- var require_map = /* @__PURE__ */ __commonJSMin((exports, module) => {
5387
- module.exports = new (require_type())("tag:yaml.org,2002:map", {
5425
+ return seq;
5426
+ }
5427
+ var map;
5428
+ var hasRequiredMap;
5429
+ function requireMap() {
5430
+ if (hasRequiredMap)
5431
+ return map;
5432
+ hasRequiredMap = 1;
5433
+ const Type2 = requireType();
5434
+ map = new Type2("tag:yaml.org,2002:map", {
5388
5435
  kind: "mapping",
5389
5436
  construct: function(data) {
5390
5437
  return data !== null ? data : {};
5391
5438
  }
5392
5439
  });
5393
- });
5394
- var require_failsafe = /* @__PURE__ */ __commonJSMin((exports, module) => {
5395
- module.exports = new (require_schema())({ explicit: [
5396
- require_str(),
5397
- require_seq(),
5398
- require_map()
5399
- ] });
5400
- });
5401
- var require_null = /* @__PURE__ */ __commonJSMin((exports, module) => {
5402
- var Type = require_type();
5440
+ return map;
5441
+ }
5442
+ var failsafe;
5443
+ var hasRequiredFailsafe;
5444
+ function requireFailsafe() {
5445
+ if (hasRequiredFailsafe)
5446
+ return failsafe;
5447
+ hasRequiredFailsafe = 1;
5448
+ const Schema2 = requireSchema();
5449
+ failsafe = new Schema2({
5450
+ explicit: [
5451
+ requireStr(),
5452
+ requireSeq(),
5453
+ requireMap()
5454
+ ]
5455
+ });
5456
+ return failsafe;
5457
+ }
5458
+ var _null;
5459
+ var hasRequired_null;
5460
+ function require_null() {
5461
+ if (hasRequired_null)
5462
+ return _null;
5463
+ hasRequired_null = 1;
5464
+ const Type2 = requireType();
5403
5465
  function resolveYamlNull(data) {
5404
5466
  if (data === null)
5405
5467
  return true;
@@ -5412,7 +5474,7 @@ var require_null = /* @__PURE__ */ __commonJSMin((exports, module) => {
5412
5474
  function isNull(object) {
5413
5475
  return object === null;
5414
5476
  }
5415
- module.exports = new Type("tag:yaml.org,2002:null", {
5477
+ _null = new Type2("tag:yaml.org,2002:null", {
5416
5478
  kind: "scalar",
5417
5479
  resolve: resolveYamlNull,
5418
5480
  construct: constructYamlNull,
@@ -5436,9 +5498,15 @@ var require_null = /* @__PURE__ */ __commonJSMin((exports, module) => {
5436
5498
  },
5437
5499
  defaultStyle: "lowercase"
5438
5500
  });
5439
- });
5440
- var require_bool = /* @__PURE__ */ __commonJSMin((exports, module) => {
5441
- var Type = require_type();
5501
+ return _null;
5502
+ }
5503
+ var bool;
5504
+ var hasRequiredBool;
5505
+ function requireBool() {
5506
+ if (hasRequiredBool)
5507
+ return bool;
5508
+ hasRequiredBool = 1;
5509
+ const Type2 = requireType();
5442
5510
  function resolveYamlBoolean(data) {
5443
5511
  if (data === null)
5444
5512
  return false;
@@ -5451,7 +5519,7 @@ var require_bool = /* @__PURE__ */ __commonJSMin((exports, module) => {
5451
5519
  function isBoolean(object) {
5452
5520
  return Object.prototype.toString.call(object) === "[object Boolean]";
5453
5521
  }
5454
- module.exports = new Type("tag:yaml.org,2002:bool", {
5522
+ bool = new Type2("tag:yaml.org,2002:bool", {
5455
5523
  kind: "scalar",
5456
5524
  resolve: resolveYamlBoolean,
5457
5525
  construct: constructYamlBoolean,
@@ -5469,10 +5537,16 @@ var require_bool = /* @__PURE__ */ __commonJSMin((exports, module) => {
5469
5537
  },
5470
5538
  defaultStyle: "lowercase"
5471
5539
  });
5472
- });
5473
- var require_int = /* @__PURE__ */ __commonJSMin((exports, module) => {
5474
- var common = require_common();
5475
- var Type = require_type();
5540
+ return bool;
5541
+ }
5542
+ var int;
5543
+ var hasRequiredInt;
5544
+ function requireInt() {
5545
+ if (hasRequiredInt)
5546
+ return int;
5547
+ hasRequiredInt = 1;
5548
+ const common2 = requireCommon();
5549
+ const Type2 = requireType();
5476
5550
  function isHexCode(c) {
5477
5551
  return c >= 48 && c <= 57 || c >= 65 && c <= 70 || c >= 97 && c <= 102;
5478
5552
  }
@@ -5491,8 +5565,9 @@ var require_int = /* @__PURE__ */ __commonJSMin((exports, module) => {
5491
5565
  if (!max)
5492
5566
  return false;
5493
5567
  let ch = data[index];
5494
- if (ch === "-" || ch === "+")
5568
+ if (ch === "-" || ch === "+") {
5495
5569
  ch = data[++index];
5570
+ }
5496
5571
  if (ch === "0") {
5497
5572
  if (index + 1 === max)
5498
5573
  return true;
@@ -5505,7 +5580,7 @@ var require_int = /* @__PURE__ */ __commonJSMin((exports, module) => {
5505
5580
  return false;
5506
5581
  hasDigits = true;
5507
5582
  }
5508
- return hasDigits && Number.isFinite(parseYamlInteger(data));
5583
+ return hasDigits && isFinite(parseYamlInteger(data));
5509
5584
  }
5510
5585
  if (ch === "x") {
5511
5586
  index++;
@@ -5514,7 +5589,7 @@ var require_int = /* @__PURE__ */ __commonJSMin((exports, module) => {
5514
5589
  return false;
5515
5590
  hasDigits = true;
5516
5591
  }
5517
- return hasDigits && Number.isFinite(parseYamlInteger(data));
5592
+ return hasDigits && isFinite(parseYamlInteger(data));
5518
5593
  }
5519
5594
  if (ch === "o") {
5520
5595
  index++;
@@ -5523,17 +5598,18 @@ var require_int = /* @__PURE__ */ __commonJSMin((exports, module) => {
5523
5598
  return false;
5524
5599
  hasDigits = true;
5525
5600
  }
5526
- return hasDigits && Number.isFinite(parseYamlInteger(data));
5601
+ return hasDigits && isFinite(parseYamlInteger(data));
5527
5602
  }
5528
5603
  }
5529
5604
  for (;index < max; index++) {
5530
- if (!isDecCode(data.charCodeAt(index)))
5605
+ if (!isDecCode(data.charCodeAt(index))) {
5531
5606
  return false;
5607
+ }
5532
5608
  hasDigits = true;
5533
5609
  }
5534
5610
  if (!hasDigits)
5535
5611
  return false;
5536
- return Number.isFinite(parseYamlInteger(data));
5612
+ return isFinite(parseYamlInteger(data));
5537
5613
  }
5538
5614
  function parseYamlInteger(data) {
5539
5615
  let value = data;
@@ -5561,9 +5637,9 @@ var require_int = /* @__PURE__ */ __commonJSMin((exports, module) => {
5561
5637
  return parseYamlInteger(data);
5562
5638
  }
5563
5639
  function isInteger(object) {
5564
- return Object.prototype.toString.call(object) === "[object Number]" && object % 1 === 0 && !common.isNegativeZero(object);
5640
+ return Object.prototype.toString.call(object) === "[object Number]" && (object % 1 === 0 && !common2.isNegativeZero(object));
5565
5641
  }
5566
- module.exports = new Type("tag:yaml.org,2002:int", {
5642
+ int = new Type2("tag:yaml.org,2002:int", {
5567
5643
  kind: "scalar",
5568
5644
  resolve: resolveYamlInteger,
5569
5645
  construct: constructYamlInteger,
@@ -5590,35 +5666,45 @@ var require_int = /* @__PURE__ */ __commonJSMin((exports, module) => {
5590
5666
  hexadecimal: [16, "hex"]
5591
5667
  }
5592
5668
  });
5593
- });
5594
- var require_float = /* @__PURE__ */ __commonJSMin((exports, module) => {
5595
- var common = require_common();
5596
- var Type = require_type();
5597
- 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))$");
5598
- var YAML_FLOAT_SPECIAL_PATTERN = /* @__PURE__ */ new RegExp("^(?:[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");
5669
+ return int;
5670
+ }
5671
+ var float;
5672
+ var hasRequiredFloat;
5673
+ function requireFloat() {
5674
+ if (hasRequiredFloat)
5675
+ return float;
5676
+ hasRequiredFloat = 1;
5677
+ const common2 = requireCommon();
5678
+ const Type2 = requireType();
5679
+ const YAML_FLOAT_PATTERN = new RegExp("^(?:[-+]?(?:[0-9]+)(?:\\.[0-9]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");
5680
+ const YAML_FLOAT_SPECIAL_PATTERN = new RegExp("^(?:[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");
5599
5681
  function resolveYamlFloat(data) {
5600
5682
  if (data === null)
5601
5683
  return false;
5602
- if (!YAML_FLOAT_PATTERN.test(data))
5684
+ if (!YAML_FLOAT_PATTERN.test(data)) {
5603
5685
  return false;
5604
- if (Number.isFinite(parseFloat(data, 10)))
5686
+ }
5687
+ if (isFinite(parseFloat(data, 10))) {
5605
5688
  return true;
5689
+ }
5606
5690
  return YAML_FLOAT_SPECIAL_PATTERN.test(data);
5607
5691
  }
5608
5692
  function constructYamlFloat(data) {
5609
5693
  let value = data.toLowerCase();
5610
5694
  const sign = value[0] === "-" ? -1 : 1;
5611
- if ("+-".indexOf(value[0]) >= 0)
5695
+ if ("+-".indexOf(value[0]) >= 0) {
5612
5696
  value = value.slice(1);
5613
- if (value === ".inf")
5697
+ }
5698
+ if (value === ".inf") {
5614
5699
  return sign === 1 ? Number.POSITIVE_INFINITY : Number.NEGATIVE_INFINITY;
5615
- else if (value === ".nan")
5700
+ } else if (value === ".nan") {
5616
5701
  return NaN;
5702
+ }
5617
5703
  return sign * parseFloat(value, 10);
5618
5704
  }
5619
- var SCIENTIFIC_WITHOUT_DOT = /^[-+]?[0-9]+e/;
5705
+ const SCIENTIFIC_WITHOUT_DOT = /^[-+]?[0-9]+e/;
5620
5706
  function representYamlFloat(object, style) {
5621
- if (isNaN(object))
5707
+ if (isNaN(object)) {
5622
5708
  switch (style) {
5623
5709
  case "lowercase":
5624
5710
  return ".nan";
@@ -5627,7 +5713,7 @@ var require_float = /* @__PURE__ */ __commonJSMin((exports, module) => {
5627
5713
  case "camelcase":
5628
5714
  return ".NaN";
5629
5715
  }
5630
- else if (Number.POSITIVE_INFINITY === object)
5716
+ } else if (Number.POSITIVE_INFINITY === object) {
5631
5717
  switch (style) {
5632
5718
  case "lowercase":
5633
5719
  return ".inf";
@@ -5636,7 +5722,7 @@ var require_float = /* @__PURE__ */ __commonJSMin((exports, module) => {
5636
5722
  case "camelcase":
5637
5723
  return ".Inf";
5638
5724
  }
5639
- else if (Number.NEGATIVE_INFINITY === object)
5725
+ } else if (Number.NEGATIVE_INFINITY === object) {
5640
5726
  switch (style) {
5641
5727
  case "lowercase":
5642
5728
  return "-.inf";
@@ -5645,15 +5731,16 @@ var require_float = /* @__PURE__ */ __commonJSMin((exports, module) => {
5645
5731
  case "camelcase":
5646
5732
  return "-.Inf";
5647
5733
  }
5648
- else if (common.isNegativeZero(object))
5734
+ } else if (common2.isNegativeZero(object)) {
5649
5735
  return "-0.0";
5736
+ }
5650
5737
  const res = object.toString(10);
5651
5738
  return SCIENTIFIC_WITHOUT_DOT.test(res) ? res.replace("e", ".e") : res;
5652
5739
  }
5653
5740
  function isFloat(object) {
5654
- return Object.prototype.toString.call(object) === "[object Number]" && (object % 1 !== 0 || common.isNegativeZero(object));
5741
+ return Object.prototype.toString.call(object) === "[object Number]" && (object % 1 !== 0 || common2.isNegativeZero(object));
5655
5742
  }
5656
- module.exports = new Type("tag:yaml.org,2002:float", {
5743
+ float = new Type2("tag:yaml.org,2002:float", {
5657
5744
  kind: "scalar",
5658
5745
  resolve: resolveYamlFloat,
5659
5746
  construct: constructYamlFloat,
@@ -5661,22 +5748,42 @@ var require_float = /* @__PURE__ */ __commonJSMin((exports, module) => {
5661
5748
  represent: representYamlFloat,
5662
5749
  defaultStyle: "lowercase"
5663
5750
  });
5664
- });
5665
- var require_json = /* @__PURE__ */ __commonJSMin((exports, module) => {
5666
- module.exports = require_failsafe().extend({ implicit: [
5667
- require_null(),
5668
- require_bool(),
5669
- require_int(),
5670
- require_float()
5671
- ] });
5672
- });
5673
- var require_core = /* @__PURE__ */ __commonJSMin((exports, module) => {
5674
- module.exports = require_json();
5675
- });
5676
- var require_timestamp = /* @__PURE__ */ __commonJSMin((exports, module) => {
5677
- var Type = require_type();
5678
- var YAML_DATE_REGEXP = /* @__PURE__ */ new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$");
5679
- 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]))?))?$");
5751
+ return float;
5752
+ }
5753
+ var json;
5754
+ var hasRequiredJson;
5755
+ function requireJson() {
5756
+ if (hasRequiredJson)
5757
+ return json;
5758
+ hasRequiredJson = 1;
5759
+ json = requireFailsafe().extend({
5760
+ implicit: [
5761
+ require_null(),
5762
+ requireBool(),
5763
+ requireInt(),
5764
+ requireFloat()
5765
+ ]
5766
+ });
5767
+ return json;
5768
+ }
5769
+ var core;
5770
+ var hasRequiredCore;
5771
+ function requireCore() {
5772
+ if (hasRequiredCore)
5773
+ return core;
5774
+ hasRequiredCore = 1;
5775
+ core = requireJson();
5776
+ return core;
5777
+ }
5778
+ var timestamp;
5779
+ var hasRequiredTimestamp;
5780
+ function requireTimestamp() {
5781
+ if (hasRequiredTimestamp)
5782
+ return timestamp;
5783
+ hasRequiredTimestamp = 1;
5784
+ const Type2 = requireType();
5785
+ const YAML_DATE_REGEXP = new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$");
5786
+ 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]))?))?$");
5680
5787
  function resolveYamlTimestamp(data) {
5681
5788
  if (data === null)
5682
5789
  return false;
@@ -5697,15 +5804,17 @@ var require_timestamp = /* @__PURE__ */ __commonJSMin((exports, module) => {
5697
5804
  const year = +match[1];
5698
5805
  const month = +match[2] - 1;
5699
5806
  const day = +match[3];
5700
- if (!match[4])
5807
+ if (!match[4]) {
5701
5808
  return new Date(Date.UTC(year, month, day));
5809
+ }
5702
5810
  const hour = +match[4];
5703
5811
  const minute = +match[5];
5704
5812
  const second = +match[6];
5705
5813
  if (match[7]) {
5706
5814
  fraction = match[7].slice(0, 3);
5707
- while (fraction.length < 3)
5815
+ while (fraction.length < 3) {
5708
5816
  fraction += "0";
5817
+ }
5709
5818
  fraction = +fraction;
5710
5819
  }
5711
5820
  if (match[9]) {
@@ -5723,36 +5832,48 @@ var require_timestamp = /* @__PURE__ */ __commonJSMin((exports, module) => {
5723
5832
  function representYamlTimestamp(object) {
5724
5833
  return object.toISOString();
5725
5834
  }
5726
- module.exports = new Type("tag:yaml.org,2002:timestamp", {
5835
+ timestamp = new Type2("tag:yaml.org,2002:timestamp", {
5727
5836
  kind: "scalar",
5728
5837
  resolve: resolveYamlTimestamp,
5729
5838
  construct: constructYamlTimestamp,
5730
5839
  instanceOf: Date,
5731
5840
  represent: representYamlTimestamp
5732
5841
  });
5733
- });
5734
- var require_merge = /* @__PURE__ */ __commonJSMin((exports, module) => {
5735
- var Type = require_type();
5842
+ return timestamp;
5843
+ }
5844
+ var merge;
5845
+ var hasRequiredMerge;
5846
+ function requireMerge() {
5847
+ if (hasRequiredMerge)
5848
+ return merge;
5849
+ hasRequiredMerge = 1;
5850
+ const Type2 = requireType();
5736
5851
  function resolveYamlMerge(data) {
5737
5852
  return data === "<<" || data === null;
5738
5853
  }
5739
- module.exports = new Type("tag:yaml.org,2002:merge", {
5854
+ merge = new Type2("tag:yaml.org,2002:merge", {
5740
5855
  kind: "scalar",
5741
5856
  resolve: resolveYamlMerge
5742
5857
  });
5743
- });
5744
- var require_binary = /* @__PURE__ */ __commonJSMin((exports, module) => {
5745
- var Type = require_type();
5746
- var BASE64_MAP = `ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
5858
+ return merge;
5859
+ }
5860
+ var binary;
5861
+ var hasRequiredBinary;
5862
+ function requireBinary() {
5863
+ if (hasRequiredBinary)
5864
+ return binary;
5865
+ hasRequiredBinary = 1;
5866
+ const Type2 = requireType();
5867
+ const BASE64_MAP = `ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
5747
5868
  \r`;
5748
5869
  function resolveYamlBinary(data) {
5749
5870
  if (data === null)
5750
5871
  return false;
5751
5872
  let bitlen = 0;
5752
5873
  const max = data.length;
5753
- const map = BASE64_MAP;
5874
+ const map2 = BASE64_MAP;
5754
5875
  for (let idx = 0;idx < max; idx++) {
5755
- const code = map.indexOf(data.charAt(idx));
5876
+ const code = map2.indexOf(data.charAt(idx));
5756
5877
  if (code > 64)
5757
5878
  continue;
5758
5879
  if (code < 0)
@@ -5764,7 +5885,7 @@ var require_binary = /* @__PURE__ */ __commonJSMin((exports, module) => {
5764
5885
  function constructYamlBinary(data) {
5765
5886
  const input = data.replace(/[\r\n=]/g, "");
5766
5887
  const max = input.length;
5767
- const map = BASE64_MAP;
5888
+ const map2 = BASE64_MAP;
5768
5889
  let bits = 0;
5769
5890
  const result = [];
5770
5891
  for (let idx = 0;idx < max; idx++) {
@@ -5773,7 +5894,7 @@ var require_binary = /* @__PURE__ */ __commonJSMin((exports, module) => {
5773
5894
  result.push(bits >> 8 & 255);
5774
5895
  result.push(bits & 255);
5775
5896
  }
5776
- bits = bits << 6 | map.indexOf(input.charAt(idx));
5897
+ bits = bits << 6 | map2.indexOf(input.charAt(idx));
5777
5898
  }
5778
5899
  const tailbits = max % 4 * 6;
5779
5900
  if (tailbits === 0) {
@@ -5783,58 +5904,65 @@ var require_binary = /* @__PURE__ */ __commonJSMin((exports, module) => {
5783
5904
  } else if (tailbits === 18) {
5784
5905
  result.push(bits >> 10 & 255);
5785
5906
  result.push(bits >> 2 & 255);
5786
- } else if (tailbits === 12)
5907
+ } else if (tailbits === 12) {
5787
5908
  result.push(bits >> 4 & 255);
5909
+ }
5788
5910
  return new Uint8Array(result);
5789
5911
  }
5790
5912
  function representYamlBinary(object) {
5791
5913
  let result = "";
5792
5914
  let bits = 0;
5793
5915
  const max = object.length;
5794
- const map = BASE64_MAP;
5916
+ const map2 = BASE64_MAP;
5795
5917
  for (let idx = 0;idx < max; idx++) {
5796
5918
  if (idx % 3 === 0 && idx) {
5797
- result += map[bits >> 18 & 63];
5798
- result += map[bits >> 12 & 63];
5799
- result += map[bits >> 6 & 63];
5800
- result += map[bits & 63];
5919
+ result += map2[bits >> 18 & 63];
5920
+ result += map2[bits >> 12 & 63];
5921
+ result += map2[bits >> 6 & 63];
5922
+ result += map2[bits & 63];
5801
5923
  }
5802
5924
  bits = (bits << 8) + object[idx];
5803
5925
  }
5804
5926
  const tail = max % 3;
5805
5927
  if (tail === 0) {
5806
- result += map[bits >> 18 & 63];
5807
- result += map[bits >> 12 & 63];
5808
- result += map[bits >> 6 & 63];
5809
- result += map[bits & 63];
5928
+ result += map2[bits >> 18 & 63];
5929
+ result += map2[bits >> 12 & 63];
5930
+ result += map2[bits >> 6 & 63];
5931
+ result += map2[bits & 63];
5810
5932
  } else if (tail === 2) {
5811
- result += map[bits >> 10 & 63];
5812
- result += map[bits >> 4 & 63];
5813
- result += map[bits << 2 & 63];
5814
- result += map[64];
5933
+ result += map2[bits >> 10 & 63];
5934
+ result += map2[bits >> 4 & 63];
5935
+ result += map2[bits << 2 & 63];
5936
+ result += map2[64];
5815
5937
  } else if (tail === 1) {
5816
- result += map[bits >> 2 & 63];
5817
- result += map[bits << 4 & 63];
5818
- result += map[64];
5819
- result += map[64];
5938
+ result += map2[bits >> 2 & 63];
5939
+ result += map2[bits << 4 & 63];
5940
+ result += map2[64];
5941
+ result += map2[64];
5820
5942
  }
5821
5943
  return result;
5822
5944
  }
5823
5945
  function isBinary(obj) {
5824
5946
  return Object.prototype.toString.call(obj) === "[object Uint8Array]";
5825
5947
  }
5826
- module.exports = new Type("tag:yaml.org,2002:binary", {
5948
+ binary = new Type2("tag:yaml.org,2002:binary", {
5827
5949
  kind: "scalar",
5828
5950
  resolve: resolveYamlBinary,
5829
5951
  construct: constructYamlBinary,
5830
5952
  predicate: isBinary,
5831
5953
  represent: representYamlBinary
5832
5954
  });
5833
- });
5834
- var require_omap = /* @__PURE__ */ __commonJSMin((exports, module) => {
5835
- var Type = require_type();
5836
- var _hasOwnProperty = Object.prototype.hasOwnProperty;
5837
- var _toString = Object.prototype.toString;
5955
+ return binary;
5956
+ }
5957
+ var omap;
5958
+ var hasRequiredOmap;
5959
+ function requireOmap() {
5960
+ if (hasRequiredOmap)
5961
+ return omap;
5962
+ hasRequiredOmap = 1;
5963
+ const Type2 = requireType();
5964
+ const _hasOwnProperty = Object.prototype.hasOwnProperty;
5965
+ const _toString = Object.prototype.toString;
5838
5966
  function resolveYamlOmap(data) {
5839
5967
  if (data === null)
5840
5968
  return true;
@@ -5846,12 +5974,14 @@ var require_omap = /* @__PURE__ */ __commonJSMin((exports, module) => {
5846
5974
  if (_toString.call(pair) !== "[object Object]")
5847
5975
  return false;
5848
5976
  let pairKey;
5849
- for (pairKey in pair)
5850
- if (_hasOwnProperty.call(pair, pairKey))
5977
+ for (pairKey in pair) {
5978
+ if (_hasOwnProperty.call(pair, pairKey)) {
5851
5979
  if (!pairHasKey)
5852
5980
  pairHasKey = true;
5853
5981
  else
5854
5982
  return false;
5983
+ }
5984
+ }
5855
5985
  if (!pairHasKey)
5856
5986
  return false;
5857
5987
  if (objectKeys.indexOf(pairKey) === -1)
@@ -5864,15 +5994,21 @@ var require_omap = /* @__PURE__ */ __commonJSMin((exports, module) => {
5864
5994
  function constructYamlOmap(data) {
5865
5995
  return data !== null ? data : [];
5866
5996
  }
5867
- module.exports = new Type("tag:yaml.org,2002:omap", {
5997
+ omap = new Type2("tag:yaml.org,2002:omap", {
5868
5998
  kind: "sequence",
5869
5999
  resolve: resolveYamlOmap,
5870
6000
  construct: constructYamlOmap
5871
6001
  });
5872
- });
5873
- var require_pairs = /* @__PURE__ */ __commonJSMin((exports, module) => {
5874
- var Type = require_type();
5875
- var _toString = Object.prototype.toString;
6002
+ return omap;
6003
+ }
6004
+ var pairs;
6005
+ var hasRequiredPairs;
6006
+ function requirePairs() {
6007
+ if (hasRequiredPairs)
6008
+ return pairs;
6009
+ hasRequiredPairs = 1;
6010
+ const Type2 = requireType();
6011
+ const _toString = Object.prototype.toString;
5876
6012
  function resolveYamlPairs(data) {
5877
6013
  if (data === null)
5878
6014
  return true;
@@ -5901,64 +6037,85 @@ var require_pairs = /* @__PURE__ */ __commonJSMin((exports, module) => {
5901
6037
  }
5902
6038
  return result;
5903
6039
  }
5904
- module.exports = new Type("tag:yaml.org,2002:pairs", {
6040
+ pairs = new Type2("tag:yaml.org,2002:pairs", {
5905
6041
  kind: "sequence",
5906
6042
  resolve: resolveYamlPairs,
5907
6043
  construct: constructYamlPairs
5908
6044
  });
5909
- });
5910
- var require_set = /* @__PURE__ */ __commonJSMin((exports, module) => {
5911
- var Type = require_type();
5912
- var _hasOwnProperty = Object.prototype.hasOwnProperty;
6045
+ return pairs;
6046
+ }
6047
+ var set;
6048
+ var hasRequiredSet;
6049
+ function requireSet() {
6050
+ if (hasRequiredSet)
6051
+ return set;
6052
+ hasRequiredSet = 1;
6053
+ const Type2 = requireType();
6054
+ const _hasOwnProperty = Object.prototype.hasOwnProperty;
5913
6055
  function resolveYamlSet(data) {
5914
6056
  if (data === null)
5915
6057
  return true;
5916
6058
  const object = data;
5917
- for (const key in object)
6059
+ for (const key in object) {
5918
6060
  if (_hasOwnProperty.call(object, key)) {
5919
6061
  if (object[key] !== null)
5920
6062
  return false;
5921
6063
  }
6064
+ }
5922
6065
  return true;
5923
6066
  }
5924
6067
  function constructYamlSet(data) {
5925
6068
  return data !== null ? data : {};
5926
6069
  }
5927
- module.exports = new Type("tag:yaml.org,2002:set", {
6070
+ set = new Type2("tag:yaml.org,2002:set", {
5928
6071
  kind: "mapping",
5929
6072
  resolve: resolveYamlSet,
5930
6073
  construct: constructYamlSet
5931
6074
  });
5932
- });
5933
- var require_default = /* @__PURE__ */ __commonJSMin((exports, module) => {
5934
- module.exports = require_core().extend({
5935
- implicit: [require_timestamp(), require_merge()],
6075
+ return set;
6076
+ }
6077
+ var _default;
6078
+ var hasRequired_default;
6079
+ function require_default() {
6080
+ if (hasRequired_default)
6081
+ return _default;
6082
+ hasRequired_default = 1;
6083
+ _default = requireCore().extend({
6084
+ implicit: [
6085
+ requireTimestamp(),
6086
+ requireMerge()
6087
+ ],
5936
6088
  explicit: [
5937
- require_binary(),
5938
- require_omap(),
5939
- require_pairs(),
5940
- require_set()
6089
+ requireBinary(),
6090
+ requireOmap(),
6091
+ requirePairs(),
6092
+ requireSet()
5941
6093
  ]
5942
6094
  });
5943
- });
5944
- var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
5945
- var common = require_common();
5946
- var YAMLException = require_exception();
5947
- var makeSnippet = require_snippet();
5948
- var DEFAULT_SCHEMA = require_default();
5949
- var _hasOwnProperty = Object.prototype.hasOwnProperty;
5950
- var CONTEXT_FLOW_IN = 1;
5951
- var CONTEXT_FLOW_OUT = 2;
5952
- var CONTEXT_BLOCK_IN = 3;
5953
- var CONTEXT_BLOCK_OUT = 4;
5954
- var CHOMPING_CLIP = 1;
5955
- var CHOMPING_STRIP = 2;
5956
- var CHOMPING_KEEP = 3;
5957
- var PATTERN_NON_PRINTABLE = /[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/;
5958
- var PATTERN_NON_ASCII_LINE_BREAKS = /[\x85\u2028\u2029]/;
5959
- var PATTERN_FLOW_INDICATORS = /[,\[\]{}]/;
5960
- var PATTERN_TAG_HANDLE = /^(?:!|!!|![0-9A-Za-z-]+!)$/;
5961
- var PATTERN_TAG_URI = /^(?:!|[^,\[\]{}])(?:%[0-9a-f]{2}|[0-9a-z\-#;/?:@&=+$,_.!~*'()\[\]])*$/i;
6095
+ return _default;
6096
+ }
6097
+ var hasRequiredLoader;
6098
+ function requireLoader() {
6099
+ if (hasRequiredLoader)
6100
+ return loader;
6101
+ hasRequiredLoader = 1;
6102
+ const common2 = requireCommon();
6103
+ const YAMLException2 = requireException();
6104
+ const makeSnippet = requireSnippet();
6105
+ const DEFAULT_SCHEMA2 = require_default();
6106
+ const _hasOwnProperty = Object.prototype.hasOwnProperty;
6107
+ const CONTEXT_FLOW_IN = 1;
6108
+ const CONTEXT_FLOW_OUT = 2;
6109
+ const CONTEXT_BLOCK_IN = 3;
6110
+ const CONTEXT_BLOCK_OUT = 4;
6111
+ const CHOMPING_CLIP = 1;
6112
+ const CHOMPING_STRIP = 2;
6113
+ const CHOMPING_KEEP = 3;
6114
+ const PATTERN_NON_PRINTABLE = /[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/;
6115
+ const PATTERN_NON_ASCII_LINE_BREAKS = /[\x85\u2028\u2029]/;
6116
+ const PATTERN_FLOW_INDICATORS = /[,\[\]{}]/;
6117
+ const PATTERN_TAG_HANDLE = /^(?:!|!!|![0-9A-Za-z-]+!)$/;
6118
+ const PATTERN_TAG_URI = /^(?:!|[^,\[\]{}])(?:%[0-9a-f]{2}|[0-9a-z\-#;/?:@&=+$,_.!~*'()\[\]])*$/i;
5962
6119
  function _class(obj) {
5963
6120
  return Object.prototype.toString.call(obj);
5964
6121
  }
@@ -5975,25 +6132,31 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
5975
6132
  return c === 44 || c === 91 || c === 93 || c === 123 || c === 125;
5976
6133
  }
5977
6134
  function fromHexCode(c) {
5978
- if (c >= 48 && c <= 57)
6135
+ if (c >= 48 && c <= 57) {
5979
6136
  return c - 48;
6137
+ }
5980
6138
  const lc = c | 32;
5981
- if (lc >= 97 && lc <= 102)
6139
+ if (lc >= 97 && lc <= 102) {
5982
6140
  return lc - 97 + 10;
6141
+ }
5983
6142
  return -1;
5984
6143
  }
5985
6144
  function escapedHexLen(c) {
5986
- if (c === 120)
6145
+ if (c === 120) {
5987
6146
  return 2;
5988
- if (c === 117)
6147
+ }
6148
+ if (c === 117) {
5989
6149
  return 4;
5990
- if (c === 85)
6150
+ }
6151
+ if (c === 85) {
5991
6152
  return 8;
6153
+ }
5992
6154
  return 0;
5993
6155
  }
5994
6156
  function fromDecimalCode(c) {
5995
- if (c >= 48 && c <= 57)
6157
+ if (c >= 48 && c <= 57) {
5996
6158
  return c - 48;
6159
+ }
5997
6160
  return -1;
5998
6161
  }
5999
6162
  function simpleEscapeSequence(c) {
@@ -6040,23 +6203,25 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
6040
6203
  }
6041
6204
  }
6042
6205
  function charFromCodepoint(c) {
6043
- if (c <= 65535)
6206
+ if (c <= 65535) {
6044
6207
  return String.fromCharCode(c);
6208
+ }
6045
6209
  return String.fromCharCode((c - 65536 >> 10) + 55296, (c - 65536 & 1023) + 56320);
6046
6210
  }
6047
6211
  function setProperty(object, key, value) {
6048
- if (key === "__proto__")
6212
+ if (key === "__proto__") {
6049
6213
  Object.defineProperty(object, key, {
6050
6214
  configurable: true,
6051
6215
  enumerable: true,
6052
6216
  writable: true,
6053
6217
  value
6054
6218
  });
6055
- else
6219
+ } else {
6056
6220
  object[key] = value;
6221
+ }
6057
6222
  }
6058
- var simpleEscapeCheck = new Array(256);
6059
- var simpleEscapeMap = new Array(256);
6223
+ const simpleEscapeCheck = new Array(256);
6224
+ const simpleEscapeMap = new Array(256);
6060
6225
  for (let i = 0;i < 256; i++) {
6061
6226
  simpleEscapeCheck[i] = simpleEscapeSequence(i) ? 1 : 0;
6062
6227
  simpleEscapeMap[i] = simpleEscapeSequence(i);
@@ -6064,13 +6229,13 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
6064
6229
  function State(input, options) {
6065
6230
  this.input = input;
6066
6231
  this.filename = options["filename"] || null;
6067
- this.schema = options["schema"] || DEFAULT_SCHEMA;
6232
+ this.schema = options["schema"] || DEFAULT_SCHEMA2;
6068
6233
  this.onWarning = options["onWarning"] || null;
6069
6234
  this.legacy = options["legacy"] || false;
6070
6235
  this.json = options["json"] || false;
6071
6236
  this.listener = options["listener"] || null;
6072
6237
  this.maxDepth = typeof options["maxDepth"] === "number" ? options["maxDepth"] : 100;
6073
- this.maxMergeSeqLength = typeof options["maxMergeSeqLength"] === "number" ? options["maxMergeSeqLength"] : 20;
6238
+ this.maxTotalMergeKeys = typeof options["maxTotalMergeKeys"] === "number" ? options["maxTotalMergeKeys"] : 1e4;
6074
6239
  this.implicitTypes = this.schema.compiledImplicit;
6075
6240
  this.typeMap = this.schema.compiledTypeMap;
6076
6241
  this.length = input.length;
@@ -6079,6 +6244,7 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
6079
6244
  this.lineStart = 0;
6080
6245
  this.lineIndent = 0;
6081
6246
  this.depth = 0;
6247
+ this.totalMergeKeys = 0;
6082
6248
  this.firstTabInLine = -1;
6083
6249
  this.documents = [];
6084
6250
  this.anchorMapTransactions = [];
@@ -6092,29 +6258,31 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
6092
6258
  column: state.position - state.lineStart
6093
6259
  };
6094
6260
  mark.snippet = makeSnippet(mark);
6095
- return new YAMLException(message, mark);
6261
+ return new YAMLException2(message, mark);
6096
6262
  }
6097
6263
  function throwError(state, message) {
6098
6264
  throw generateError(state, message);
6099
6265
  }
6100
6266
  function throwWarning(state, message) {
6101
- if (state.onWarning)
6267
+ if (state.onWarning) {
6102
6268
  state.onWarning.call(null, generateError(state, message));
6269
+ }
6103
6270
  }
6104
6271
  function storeAnchor(state, name, value) {
6105
6272
  const transactions = state.anchorMapTransactions;
6106
6273
  if (transactions.length !== 0) {
6107
6274
  const transaction = transactions[transactions.length - 1];
6108
- if (!_hasOwnProperty.call(transaction, name))
6275
+ if (!_hasOwnProperty.call(transaction, name)) {
6109
6276
  transaction[name] = {
6110
6277
  existed: _hasOwnProperty.call(state.anchorMap, name),
6111
6278
  value: state.anchorMap[name]
6112
6279
  };
6280
+ }
6113
6281
  }
6114
6282
  state.anchorMap[name] = value;
6115
6283
  }
6116
6284
  function beginAnchorTransaction(state) {
6117
- state.anchorMapTransactions.push(Object.create(null));
6285
+ state.anchorMapTransactions.push(/* @__PURE__ */ Object.create(null));
6118
6286
  }
6119
6287
  function commitAnchorTransaction(state) {
6120
6288
  const transaction = state.anchorMapTransactions.pop();
@@ -6125,8 +6293,9 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
6125
6293
  const names = Object.keys(transaction);
6126
6294
  for (let index = 0, length = names.length;index < length; index += 1) {
6127
6295
  const name = names[index];
6128
- if (!_hasOwnProperty.call(parent, name))
6296
+ if (!_hasOwnProperty.call(parent, name)) {
6129
6297
  parent[name] = transaction[name];
6298
+ }
6130
6299
  }
6131
6300
  }
6132
6301
  function rollbackAnchorTransaction(state) {
@@ -6134,10 +6303,11 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
6134
6303
  const names = Object.keys(transaction);
6135
6304
  for (let index = names.length - 1;index >= 0; index -= 1) {
6136
6305
  const entry = transaction[names[index]];
6137
- if (entry.existed)
6306
+ if (entry.existed) {
6138
6307
  state.anchorMap[names[index]] = entry.value;
6139
- else
6308
+ } else {
6140
6309
  delete state.anchorMap[names[index]];
6310
+ }
6141
6311
  }
6142
6312
  }
6143
6313
  function snapshotState(state) {
@@ -6164,36 +6334,45 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
6164
6334
  state.kind = snapshot.kind;
6165
6335
  state.result = snapshot.result;
6166
6336
  }
6167
- var directiveHandlers = {
6337
+ const directiveHandlers = {
6168
6338
  YAML: function handleYamlDirective(state, name, args) {
6169
- if (state.version !== null)
6339
+ if (state.version !== null) {
6170
6340
  throwError(state, "duplication of %YAML directive");
6171
- if (args.length !== 1)
6341
+ }
6342
+ if (args.length !== 1) {
6172
6343
  throwError(state, "YAML directive accepts exactly one argument");
6344
+ }
6173
6345
  const match = /^([0-9]+)\.([0-9]+)$/.exec(args[0]);
6174
- if (match === null)
6346
+ if (match === null) {
6175
6347
  throwError(state, "ill-formed argument of the YAML directive");
6348
+ }
6176
6349
  const major = parseInt(match[1], 10);
6177
6350
  const minor = parseInt(match[2], 10);
6178
- if (major !== 1)
6351
+ if (major !== 1) {
6179
6352
  throwError(state, "unacceptable YAML version of the document");
6353
+ }
6180
6354
  state.version = args[0];
6181
6355
  state.checkLineBreaks = minor < 2;
6182
- if (minor !== 1 && minor !== 2)
6356
+ if (minor !== 1 && minor !== 2) {
6183
6357
  throwWarning(state, "unsupported YAML version of the document");
6358
+ }
6184
6359
  },
6185
6360
  TAG: function handleTagDirective(state, name, args) {
6186
6361
  let prefix;
6187
- if (args.length !== 2)
6362
+ if (args.length !== 2) {
6188
6363
  throwError(state, "TAG directive accepts exactly two arguments");
6364
+ }
6189
6365
  const handle = args[0];
6190
6366
  prefix = args[1];
6191
- if (!PATTERN_TAG_HANDLE.test(handle))
6367
+ if (!PATTERN_TAG_HANDLE.test(handle)) {
6192
6368
  throwError(state, "ill-formed tag handle (first argument) of the TAG directive");
6193
- if (_hasOwnProperty.call(state.tagMap, handle))
6369
+ }
6370
+ if (_hasOwnProperty.call(state.tagMap, handle)) {
6194
6371
  throwError(state, 'there is a previously declared suffix for "' + handle + '" tag handle');
6195
- if (!PATTERN_TAG_URI.test(prefix))
6372
+ }
6373
+ if (!PATTERN_TAG_URI.test(prefix)) {
6196
6374
  throwError(state, "ill-formed tag prefix (second argument) of the TAG directive");
6375
+ }
6197
6376
  try {
6198
6377
  prefix = decodeURIComponent(prefix);
6199
6378
  } catch (err) {
@@ -6205,23 +6384,29 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
6205
6384
  function captureSegment(state, start, end, checkJson) {
6206
6385
  if (start < end) {
6207
6386
  const _result = state.input.slice(start, end);
6208
- if (checkJson)
6387
+ if (checkJson) {
6209
6388
  for (let _position = 0, _length = _result.length;_position < _length; _position += 1) {
6210
6389
  const _character = _result.charCodeAt(_position);
6211
- if (!(_character === 9 || _character >= 32 && _character <= 1114111))
6390
+ if (!(_character === 9 || _character >= 32 && _character <= 1114111)) {
6212
6391
  throwError(state, "expected valid JSON character");
6392
+ }
6213
6393
  }
6214
- else if (PATTERN_NON_PRINTABLE.test(_result))
6394
+ } else if (PATTERN_NON_PRINTABLE.test(_result)) {
6215
6395
  throwError(state, "the stream contains non-printable characters");
6396
+ }
6216
6397
  state.result += _result;
6217
6398
  }
6218
6399
  }
6219
6400
  function mergeMappings(state, destination, source, overridableKeys) {
6220
- if (!common.isObject(source))
6401
+ if (!common2.isObject(source)) {
6221
6402
  throwError(state, "cannot merge mappings; the provided source object is unacceptable");
6403
+ }
6222
6404
  const sourceKeys = Object.keys(source);
6223
6405
  for (let index = 0, quantity = sourceKeys.length;index < quantity; index += 1) {
6224
6406
  const key = sourceKeys[index];
6407
+ if (state.maxTotalMergeKeys !== -1 && ++state.totalMergeKeys > state.maxTotalMergeKeys) {
6408
+ throwError(state, "merge keys exceeded maxTotalMergeKeys (" + state.maxTotalMergeKeys + ")");
6409
+ }
6225
6410
  if (!_hasOwnProperty.call(destination, key)) {
6226
6411
  setProperty(destination, key, source[key]);
6227
6412
  overridableKeys[key] = true;
@@ -6232,32 +6417,30 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
6232
6417
  if (Array.isArray(keyNode)) {
6233
6418
  keyNode = Array.prototype.slice.call(keyNode);
6234
6419
  for (let index = 0, quantity = keyNode.length;index < quantity; index += 1) {
6235
- if (Array.isArray(keyNode[index]))
6420
+ if (Array.isArray(keyNode[index])) {
6236
6421
  throwError(state, "nested arrays are not supported inside keys");
6237
- if (typeof keyNode === "object" && _class(keyNode[index]) === "[object Object]")
6422
+ }
6423
+ if (typeof keyNode === "object" && _class(keyNode[index]) === "[object Object]") {
6238
6424
  keyNode[index] = "[object Object]";
6425
+ }
6239
6426
  }
6240
6427
  }
6241
- if (typeof keyNode === "object" && _class(keyNode) === "[object Object]")
6428
+ if (typeof keyNode === "object" && _class(keyNode) === "[object Object]") {
6242
6429
  keyNode = "[object Object]";
6430
+ }
6243
6431
  keyNode = String(keyNode);
6244
- if (_result === null)
6432
+ if (_result === null) {
6245
6433
  _result = {};
6246
- if (keyTag === "tag:yaml.org,2002:merge")
6434
+ }
6435
+ if (keyTag === "tag:yaml.org,2002:merge") {
6247
6436
  if (Array.isArray(valueNode)) {
6248
- if (valueNode.length > state.maxMergeSeqLength)
6249
- throwError(state, "merge sequence length exceeded maxMergeSeqLength (" + state.maxMergeSeqLength + ")");
6250
- const seen = /* @__PURE__ */ new Set;
6251
6437
  for (let index = 0, quantity = valueNode.length;index < quantity; index += 1) {
6252
- const src = valueNode[index];
6253
- if (seen.has(src))
6254
- continue;
6255
- seen.add(src);
6256
- mergeMappings(state, _result, src, overridableKeys);
6438
+ mergeMappings(state, _result, valueNode[index], overridableKeys);
6257
6439
  }
6258
- } else
6440
+ } else {
6259
6441
  mergeMappings(state, _result, valueNode, overridableKeys);
6260
- else {
6442
+ }
6443
+ } else {
6261
6444
  if (!state.json && !_hasOwnProperty.call(overridableKeys, keyNode) && _hasOwnProperty.call(_result, keyNode)) {
6262
6445
  state.line = startLine || state.line;
6263
6446
  state.lineStart = startLineStart || state.lineStart;
@@ -6271,14 +6454,16 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
6271
6454
  }
6272
6455
  function readLineBreak(state) {
6273
6456
  const ch = state.input.charCodeAt(state.position);
6274
- if (ch === 10)
6457
+ if (ch === 10) {
6275
6458
  state.position++;
6276
- else if (ch === 13) {
6459
+ } else if (ch === 13) {
6277
6460
  state.position++;
6278
- if (state.input.charCodeAt(state.position) === 10)
6461
+ if (state.input.charCodeAt(state.position) === 10) {
6279
6462
  state.position++;
6280
- } else
6463
+ }
6464
+ } else {
6281
6465
  throwError(state, "a line break is expected");
6466
+ }
6282
6467
  state.line += 1;
6283
6468
  state.lineStart = state.position;
6284
6469
  state.firstTabInLine = -1;
@@ -6288,14 +6473,16 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
6288
6473
  let ch = state.input.charCodeAt(state.position);
6289
6474
  while (ch !== 0) {
6290
6475
  while (isWhiteSpace(ch)) {
6291
- if (ch === 9 && state.firstTabInLine === -1)
6476
+ if (ch === 9 && state.firstTabInLine === -1) {
6292
6477
  state.firstTabInLine = state.position;
6478
+ }
6293
6479
  ch = state.input.charCodeAt(++state.position);
6294
6480
  }
6295
- if (allowComments && ch === 35)
6296
- do
6481
+ if (allowComments && ch === 35) {
6482
+ do {
6297
6483
  ch = state.input.charCodeAt(++state.position);
6298
- while (ch !== 10 && ch !== 13 && ch !== 0);
6484
+ } while (ch !== 10 && ch !== 13 && ch !== 0);
6485
+ }
6299
6486
  if (isEol(ch)) {
6300
6487
  readLineBreak(state);
6301
6488
  ch = state.input.charCodeAt(state.position);
@@ -6305,11 +6492,13 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
6305
6492
  state.lineIndent++;
6306
6493
  ch = state.input.charCodeAt(++state.position);
6307
6494
  }
6308
- } else
6495
+ } else {
6309
6496
  break;
6497
+ }
6310
6498
  }
6311
- if (checkIndent !== -1 && lineBreaks !== 0 && state.lineIndent < checkIndent)
6499
+ if (checkIndent !== -1 && lineBreaks !== 0 && state.lineIndent < checkIndent) {
6312
6500
  throwWarning(state, "deficient indentation");
6501
+ }
6313
6502
  return lineBreaks;
6314
6503
  }
6315
6504
  function testDocumentSeparator(state) {
@@ -6318,17 +6507,19 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
6318
6507
  if ((ch === 45 || ch === 46) && ch === state.input.charCodeAt(_position + 1) && ch === state.input.charCodeAt(_position + 2)) {
6319
6508
  _position += 3;
6320
6509
  ch = state.input.charCodeAt(_position);
6321
- if (ch === 0 || isWsOrEol(ch))
6510
+ if (ch === 0 || isWsOrEol(ch)) {
6322
6511
  return true;
6512
+ }
6323
6513
  }
6324
6514
  return false;
6325
6515
  }
6326
6516
  function writeFoldedLines(state, count) {
6327
- if (count === 1)
6517
+ if (count === 1) {
6328
6518
  state.result += " ";
6329
- else if (count > 1)
6330
- state.result += common.repeat(`
6519
+ } else if (count > 1) {
6520
+ state.result += common2.repeat(`
6331
6521
  `, count - 1);
6522
+ }
6332
6523
  }
6333
6524
  function readPlainScalar(state, nodeIndent, withinFlowCollection) {
6334
6525
  let captureStart;
@@ -6340,12 +6531,14 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
6340
6531
  const _kind = state.kind;
6341
6532
  const _result = state.result;
6342
6533
  let ch = state.input.charCodeAt(state.position);
6343
- 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)
6534
+ 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) {
6344
6535
  return false;
6536
+ }
6345
6537
  if (ch === 63 || ch === 45) {
6346
6538
  const following = state.input.charCodeAt(state.position + 1);
6347
- if (isWsOrEol(following) || withinFlowCollection && isFlowIndicator(following))
6539
+ if (isWsOrEol(following) || withinFlowCollection && isFlowIndicator(following)) {
6348
6540
  return false;
6541
+ }
6349
6542
  }
6350
6543
  state.kind = "scalar";
6351
6544
  state.result = "";
@@ -6354,14 +6547,17 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
6354
6547
  while (ch !== 0) {
6355
6548
  if (ch === 58) {
6356
6549
  const following = state.input.charCodeAt(state.position + 1);
6357
- if (isWsOrEol(following) || withinFlowCollection && isFlowIndicator(following))
6550
+ if (isWsOrEol(following) || withinFlowCollection && isFlowIndicator(following)) {
6358
6551
  break;
6552
+ }
6359
6553
  } else if (ch === 35) {
6360
- if (isWsOrEol(state.input.charCodeAt(state.position - 1)))
6554
+ const preceding = state.input.charCodeAt(state.position - 1);
6555
+ if (isWsOrEol(preceding)) {
6361
6556
  break;
6362
- } else if (state.position === state.lineStart && testDocumentSeparator(state) || withinFlowCollection && isFlowIndicator(ch))
6557
+ }
6558
+ } else if (state.position === state.lineStart && testDocumentSeparator(state) || withinFlowCollection && isFlowIndicator(ch)) {
6363
6559
  break;
6364
- else if (isEol(ch)) {
6560
+ } else if (isEol(ch)) {
6365
6561
  _line = state.line;
6366
6562
  _lineStart = state.lineStart;
6367
6563
  _lineIndent = state.lineIndent;
@@ -6384,13 +6580,15 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
6384
6580
  captureStart = captureEnd = state.position;
6385
6581
  hasPendingContent = false;
6386
6582
  }
6387
- if (!isWhiteSpace(ch))
6583
+ if (!isWhiteSpace(ch)) {
6388
6584
  captureEnd = state.position + 1;
6585
+ }
6389
6586
  ch = state.input.charCodeAt(++state.position);
6390
6587
  }
6391
6588
  captureSegment(state, captureStart, captureEnd, false);
6392
- if (state.result)
6589
+ if (state.result) {
6393
6590
  return true;
6591
+ }
6394
6592
  state.kind = _kind;
6395
6593
  state.result = _result;
6396
6594
  return false;
@@ -6399,13 +6597,14 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
6399
6597
  let captureStart;
6400
6598
  let captureEnd;
6401
6599
  let ch = state.input.charCodeAt(state.position);
6402
- if (ch !== 39)
6600
+ if (ch !== 39) {
6403
6601
  return false;
6602
+ }
6404
6603
  state.kind = "scalar";
6405
6604
  state.result = "";
6406
6605
  state.position++;
6407
6606
  captureStart = captureEnd = state.position;
6408
- while ((ch = state.input.charCodeAt(state.position)) !== 0)
6607
+ while ((ch = state.input.charCodeAt(state.position)) !== 0) {
6409
6608
  if (ch === 39) {
6410
6609
  captureSegment(state, captureStart, state.position, true);
6411
6610
  ch = state.input.charCodeAt(++state.position);
@@ -6413,19 +6612,22 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
6413
6612
  captureStart = state.position;
6414
6613
  state.position++;
6415
6614
  captureEnd = state.position;
6416
- } else
6615
+ } else {
6417
6616
  return true;
6617
+ }
6418
6618
  } else if (isEol(ch)) {
6419
6619
  captureSegment(state, captureStart, captureEnd, true);
6420
6620
  writeFoldedLines(state, skipSeparationSpace(state, false, nodeIndent));
6421
6621
  captureStart = captureEnd = state.position;
6422
- } else if (state.position === state.lineStart && testDocumentSeparator(state))
6622
+ } else if (state.position === state.lineStart && testDocumentSeparator(state)) {
6423
6623
  throwError(state, "unexpected end of the document within a single quoted scalar");
6424
- else {
6624
+ } else {
6425
6625
  state.position++;
6426
- if (!isWhiteSpace(ch))
6626
+ if (!isWhiteSpace(ch)) {
6427
6627
  captureEnd = state.position;
6628
+ }
6428
6629
  }
6630
+ }
6429
6631
  throwError(state, "unexpected end of the stream within a single quoted scalar");
6430
6632
  }
6431
6633
  function readDoubleQuotedScalar(state, nodeIndent) {
@@ -6433,13 +6635,14 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
6433
6635
  let captureEnd;
6434
6636
  let tmp;
6435
6637
  let ch = state.input.charCodeAt(state.position);
6436
- if (ch !== 34)
6638
+ if (ch !== 34) {
6437
6639
  return false;
6640
+ }
6438
6641
  state.kind = "scalar";
6439
6642
  state.result = "";
6440
6643
  state.position++;
6441
6644
  captureStart = captureEnd = state.position;
6442
- while ((ch = state.input.charCodeAt(state.position)) !== 0)
6645
+ while ((ch = state.input.charCodeAt(state.position)) !== 0) {
6443
6646
  if (ch === 34) {
6444
6647
  captureSegment(state, captureStart, state.position, true);
6445
6648
  state.position++;
@@ -6447,9 +6650,9 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
6447
6650
  } else if (ch === 92) {
6448
6651
  captureSegment(state, captureStart, state.position, true);
6449
6652
  ch = state.input.charCodeAt(++state.position);
6450
- if (isEol(ch))
6653
+ if (isEol(ch)) {
6451
6654
  skipSeparationSpace(state, false, nodeIndent);
6452
- else if (ch < 256 && simpleEscapeCheck[ch]) {
6655
+ } else if (ch < 256 && simpleEscapeCheck[ch]) {
6453
6656
  state.result += simpleEscapeMap[ch];
6454
6657
  state.position++;
6455
6658
  } else if ((tmp = escapedHexLen(ch)) > 0) {
@@ -6457,27 +6660,31 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
6457
6660
  let hexResult = 0;
6458
6661
  for (;hexLength > 0; hexLength--) {
6459
6662
  ch = state.input.charCodeAt(++state.position);
6460
- if ((tmp = fromHexCode(ch)) >= 0)
6663
+ if ((tmp = fromHexCode(ch)) >= 0) {
6461
6664
  hexResult = (hexResult << 4) + tmp;
6462
- else
6665
+ } else {
6463
6666
  throwError(state, "expected hexadecimal character");
6667
+ }
6464
6668
  }
6465
6669
  state.result += charFromCodepoint(hexResult);
6466
6670
  state.position++;
6467
- } else
6671
+ } else {
6468
6672
  throwError(state, "unknown escape sequence");
6673
+ }
6469
6674
  captureStart = captureEnd = state.position;
6470
6675
  } else if (isEol(ch)) {
6471
6676
  captureSegment(state, captureStart, captureEnd, true);
6472
6677
  writeFoldedLines(state, skipSeparationSpace(state, false, nodeIndent));
6473
6678
  captureStart = captureEnd = state.position;
6474
- } else if (state.position === state.lineStart && testDocumentSeparator(state))
6679
+ } else if (state.position === state.lineStart && testDocumentSeparator(state)) {
6475
6680
  throwError(state, "unexpected end of the document within a double quoted scalar");
6476
- else {
6681
+ } else {
6477
6682
  state.position++;
6478
- if (!isWhiteSpace(ch))
6683
+ if (!isWhiteSpace(ch)) {
6479
6684
  captureEnd = state.position;
6685
+ }
6480
6686
  }
6687
+ }
6481
6688
  throwError(state, "unexpected end of the stream within a double quoted scalar");
6482
6689
  }
6483
6690
  function readFlowCollection(state, nodeIndent) {
@@ -6492,7 +6699,7 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
6492
6699
  let isPair;
6493
6700
  let isExplicitPair;
6494
6701
  let isMapping;
6495
- const overridableKeys = Object.create(null);
6702
+ const overridableKeys = /* @__PURE__ */ Object.create(null);
6496
6703
  let keyNode;
6497
6704
  let keyTag;
6498
6705
  let valueNode;
@@ -6505,10 +6712,12 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
6505
6712
  terminator = 125;
6506
6713
  isMapping = true;
6507
6714
  _result = {};
6508
- } else
6715
+ } else {
6509
6716
  return false;
6510
- if (state.anchor !== null)
6717
+ }
6718
+ if (state.anchor !== null) {
6511
6719
  storeAnchor(state, state.anchor, _result);
6720
+ }
6512
6721
  ch = state.input.charCodeAt(++state.position);
6513
6722
  while (ch !== 0) {
6514
6723
  skipSeparationSpace(state, true, nodeIndent);
@@ -6520,14 +6729,16 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
6520
6729
  state.kind = isMapping ? "mapping" : "sequence";
6521
6730
  state.result = _result;
6522
6731
  return true;
6523
- } else if (!readNext)
6732
+ } else if (!readNext) {
6524
6733
  throwError(state, "missed comma between flow collection entries");
6525
- else if (ch === 44)
6734
+ } else if (ch === 44) {
6526
6735
  throwError(state, "expected the node content, but found ','");
6736
+ }
6527
6737
  keyTag = keyNode = valueNode = null;
6528
6738
  isPair = isExplicitPair = false;
6529
6739
  if (ch === 63) {
6530
- if (isWsOrEol(state.input.charCodeAt(state.position + 1))) {
6740
+ const following = state.input.charCodeAt(state.position + 1);
6741
+ if (isWsOrEol(following)) {
6531
6742
  isPair = isExplicitPair = true;
6532
6743
  state.position++;
6533
6744
  skipSeparationSpace(state, true, nodeIndent);
@@ -6548,19 +6759,21 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
6548
6759
  composeNode(state, nodeIndent, CONTEXT_FLOW_IN, false, true);
6549
6760
  valueNode = state.result;
6550
6761
  }
6551
- if (isMapping)
6762
+ if (isMapping) {
6552
6763
  storeMappingPair(state, _result, overridableKeys, keyTag, keyNode, valueNode, _line, _lineStart, _pos);
6553
- else if (isPair)
6764
+ } else if (isPair) {
6554
6765
  _result.push(storeMappingPair(state, null, overridableKeys, keyTag, keyNode, valueNode, _line, _lineStart, _pos));
6555
- else
6766
+ } else {
6556
6767
  _result.push(keyNode);
6768
+ }
6557
6769
  skipSeparationSpace(state, true, nodeIndent);
6558
6770
  ch = state.input.charCodeAt(state.position);
6559
6771
  if (ch === 44) {
6560
6772
  readNext = true;
6561
6773
  ch = state.input.charCodeAt(++state.position);
6562
- } else
6774
+ } else {
6563
6775
  readNext = false;
6776
+ }
6564
6777
  }
6565
6778
  throwError(state, "unexpected end of the stream within a flow collection");
6566
6779
  }
@@ -6574,40 +6787,45 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
6574
6787
  let atMoreIndented = false;
6575
6788
  let tmp;
6576
6789
  let ch = state.input.charCodeAt(state.position);
6577
- if (ch === 124)
6790
+ if (ch === 124) {
6578
6791
  folding = false;
6579
- else if (ch === 62)
6792
+ } else if (ch === 62) {
6580
6793
  folding = true;
6581
- else
6794
+ } else {
6582
6795
  return false;
6796
+ }
6583
6797
  state.kind = "scalar";
6584
6798
  state.result = "";
6585
6799
  while (ch !== 0) {
6586
6800
  ch = state.input.charCodeAt(++state.position);
6587
- if (ch === 43 || ch === 45)
6588
- if (CHOMPING_CLIP === chomping)
6801
+ if (ch === 43 || ch === 45) {
6802
+ if (CHOMPING_CLIP === chomping) {
6589
6803
  chomping = ch === 43 ? CHOMPING_KEEP : CHOMPING_STRIP;
6590
- else
6804
+ } else {
6591
6805
  throwError(state, "repeat of a chomping mode identifier");
6592
- else if ((tmp = fromDecimalCode(ch)) >= 0)
6593
- if (tmp === 0)
6806
+ }
6807
+ } else if ((tmp = fromDecimalCode(ch)) >= 0) {
6808
+ if (tmp === 0) {
6594
6809
  throwError(state, "bad explicit indentation width of a block scalar; it cannot be less than one");
6595
- else if (!detectedIndent) {
6810
+ } else if (!detectedIndent) {
6596
6811
  textIndent = nodeIndent + tmp - 1;
6597
6812
  detectedIndent = true;
6598
- } else
6813
+ } else {
6599
6814
  throwError(state, "repeat of an indentation width identifier");
6600
- else
6815
+ }
6816
+ } else {
6601
6817
  break;
6818
+ }
6602
6819
  }
6603
6820
  if (isWhiteSpace(ch)) {
6604
- do
6821
+ do {
6605
6822
  ch = state.input.charCodeAt(++state.position);
6606
- while (isWhiteSpace(ch));
6607
- if (ch === 35)
6608
- do
6823
+ } while (isWhiteSpace(ch));
6824
+ if (ch === 35) {
6825
+ do {
6609
6826
  ch = state.input.charCodeAt(++state.position);
6610
- while (!isEol(ch) && ch !== 0);
6827
+ } while (!isEol(ch) && ch !== 0);
6828
+ }
6611
6829
  }
6612
6830
  while (ch !== 0) {
6613
6831
  readLineBreak(state);
@@ -6617,49 +6835,56 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
6617
6835
  state.lineIndent++;
6618
6836
  ch = state.input.charCodeAt(++state.position);
6619
6837
  }
6620
- if (!detectedIndent && state.lineIndent > textIndent)
6838
+ if (!detectedIndent && state.lineIndent > textIndent) {
6621
6839
  textIndent = state.lineIndent;
6840
+ }
6622
6841
  if (isEol(ch)) {
6623
6842
  emptyLines++;
6624
6843
  continue;
6625
6844
  }
6626
- if (!detectedIndent && textIndent === 0)
6845
+ if (!detectedIndent && textIndent === 0) {
6627
6846
  throwError(state, "missing indentation for block scalar");
6847
+ }
6628
6848
  if (state.lineIndent < textIndent) {
6629
- if (chomping === CHOMPING_KEEP)
6630
- state.result += common.repeat(`
6849
+ if (chomping === CHOMPING_KEEP) {
6850
+ state.result += common2.repeat(`
6631
6851
  `, didReadContent ? 1 + emptyLines : emptyLines);
6632
- else if (chomping === CHOMPING_CLIP) {
6633
- if (didReadContent)
6852
+ } else if (chomping === CHOMPING_CLIP) {
6853
+ if (didReadContent) {
6634
6854
  state.result += `
6635
6855
  `;
6856
+ }
6636
6857
  }
6637
6858
  break;
6638
6859
  }
6639
- if (folding)
6860
+ if (folding) {
6640
6861
  if (isWhiteSpace(ch)) {
6641
6862
  atMoreIndented = true;
6642
- state.result += common.repeat(`
6863
+ state.result += common2.repeat(`
6643
6864
  `, didReadContent ? 1 + emptyLines : emptyLines);
6644
6865
  } else if (atMoreIndented) {
6645
6866
  atMoreIndented = false;
6646
- state.result += common.repeat(`
6867
+ state.result += common2.repeat(`
6647
6868
  `, emptyLines + 1);
6648
6869
  } else if (emptyLines === 0) {
6649
- if (didReadContent)
6870
+ if (didReadContent) {
6650
6871
  state.result += " ";
6651
- } else
6652
- state.result += common.repeat(`
6872
+ }
6873
+ } else {
6874
+ state.result += common2.repeat(`
6653
6875
  `, emptyLines);
6654
- else
6655
- state.result += common.repeat(`
6876
+ }
6877
+ } else {
6878
+ state.result += common2.repeat(`
6656
6879
  `, didReadContent ? 1 + emptyLines : emptyLines);
6880
+ }
6657
6881
  didReadContent = true;
6658
6882
  detectedIndent = true;
6659
6883
  emptyLines = 0;
6660
6884
  const captureStart = state.position;
6661
- while (!isEol(ch) && ch !== 0)
6885
+ while (!isEol(ch) && ch !== 0) {
6662
6886
  ch = state.input.charCodeAt(++state.position);
6887
+ }
6663
6888
  captureSegment(state, captureStart, state.position, false);
6664
6889
  }
6665
6890
  return true;
@@ -6671,18 +6896,22 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
6671
6896
  let detected = false;
6672
6897
  if (state.firstTabInLine !== -1)
6673
6898
  return false;
6674
- if (state.anchor !== null)
6899
+ if (state.anchor !== null) {
6675
6900
  storeAnchor(state, state.anchor, _result);
6901
+ }
6676
6902
  let ch = state.input.charCodeAt(state.position);
6677
6903
  while (ch !== 0) {
6678
6904
  if (state.firstTabInLine !== -1) {
6679
6905
  state.position = state.firstTabInLine;
6680
6906
  throwError(state, "tab characters must not be used in indentation");
6681
6907
  }
6682
- if (ch !== 45)
6908
+ if (ch !== 45) {
6683
6909
  break;
6684
- if (!isWsOrEol(state.input.charCodeAt(state.position + 1)))
6910
+ }
6911
+ const following = state.input.charCodeAt(state.position + 1);
6912
+ if (!isWsOrEol(following)) {
6685
6913
  break;
6914
+ }
6686
6915
  detected = true;
6687
6916
  state.position++;
6688
6917
  if (skipSeparationSpace(state, true, -1)) {
@@ -6697,10 +6926,11 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
6697
6926
  _result.push(state.result);
6698
6927
  skipSeparationSpace(state, true, -1);
6699
6928
  ch = state.input.charCodeAt(state.position);
6700
- if ((state.line === _line || state.lineIndent > nodeIndent) && ch !== 0)
6929
+ if ((state.line === _line || state.lineIndent > nodeIndent) && ch !== 0) {
6701
6930
  throwError(state, "bad indentation of a sequence entry");
6702
- else if (state.lineIndent < nodeIndent)
6931
+ } else if (state.lineIndent < nodeIndent) {
6703
6932
  break;
6933
+ }
6704
6934
  }
6705
6935
  if (detected) {
6706
6936
  state.tag = _tag;
@@ -6719,7 +6949,7 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
6719
6949
  const _tag = state.tag;
6720
6950
  const _anchor = state.anchor;
6721
6951
  const _result = {};
6722
- const overridableKeys = Object.create(null);
6952
+ const overridableKeys = /* @__PURE__ */ Object.create(null);
6723
6953
  let keyTag = null;
6724
6954
  let keyNode = null;
6725
6955
  let valueNode = null;
@@ -6727,8 +6957,9 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
6727
6957
  let detected = false;
6728
6958
  if (state.firstTabInLine !== -1)
6729
6959
  return false;
6730
- if (state.anchor !== null)
6960
+ if (state.anchor !== null) {
6731
6961
  storeAnchor(state, state.anchor, _result);
6962
+ }
6732
6963
  let ch = state.input.charCodeAt(state.position);
6733
6964
  while (ch !== 0) {
6734
6965
  if (!atExplicitKey && state.firstTabInLine !== -1) {
@@ -6749,24 +6980,28 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
6749
6980
  } else if (atExplicitKey) {
6750
6981
  atExplicitKey = false;
6751
6982
  allowCompact = true;
6752
- } else
6983
+ } else {
6753
6984
  throwError(state, "incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line");
6985
+ }
6754
6986
  state.position += 1;
6755
6987
  ch = following;
6756
6988
  } else {
6757
6989
  _keyLine = state.line;
6758
6990
  _keyLineStart = state.lineStart;
6759
6991
  _keyPos = state.position;
6760
- if (!composeNode(state, flowIndent, CONTEXT_FLOW_OUT, false, true))
6992
+ if (!composeNode(state, flowIndent, CONTEXT_FLOW_OUT, false, true)) {
6761
6993
  break;
6994
+ }
6762
6995
  if (state.line === _line) {
6763
6996
  ch = state.input.charCodeAt(state.position);
6764
- while (isWhiteSpace(ch))
6997
+ while (isWhiteSpace(ch)) {
6765
6998
  ch = state.input.charCodeAt(++state.position);
6999
+ }
6766
7000
  if (ch === 58) {
6767
7001
  ch = state.input.charCodeAt(++state.position);
6768
- if (!isWsOrEol(ch))
7002
+ if (!isWsOrEol(ch)) {
6769
7003
  throwError(state, "a whitespace character is expected after the key-value separator within a block mapping");
7004
+ }
6770
7005
  if (atExplicitKey) {
6771
7006
  storeMappingPair(state, _result, overridableKeys, keyTag, keyNode, null, _keyLine, _keyLineStart, _keyPos);
6772
7007
  keyTag = keyNode = valueNode = null;
@@ -6776,16 +7011,16 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
6776
7011
  allowCompact = false;
6777
7012
  keyTag = state.tag;
6778
7013
  keyNode = state.result;
6779
- } else if (detected)
7014
+ } else if (detected) {
6780
7015
  throwError(state, "can not read an implicit mapping pair; a colon is missed");
6781
- else {
7016
+ } else {
6782
7017
  state.tag = _tag;
6783
7018
  state.anchor = _anchor;
6784
7019
  return true;
6785
7020
  }
6786
- } else if (detected)
7021
+ } else if (detected) {
6787
7022
  throwError(state, "can not read a block mapping entry; a multiline key may not be an implicit key");
6788
- else {
7023
+ } else {
6789
7024
  state.tag = _tag;
6790
7025
  state.anchor = _anchor;
6791
7026
  return true;
@@ -6797,11 +7032,13 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
6797
7032
  _keyLineStart = state.lineStart;
6798
7033
  _keyPos = state.position;
6799
7034
  }
6800
- if (composeNode(state, nodeIndent, CONTEXT_BLOCK_OUT, true, allowCompact))
6801
- if (atExplicitKey)
7035
+ if (composeNode(state, nodeIndent, CONTEXT_BLOCK_OUT, true, allowCompact)) {
7036
+ if (atExplicitKey) {
6802
7037
  keyNode = state.result;
6803
- else
7038
+ } else {
6804
7039
  valueNode = state.result;
7040
+ }
7041
+ }
6805
7042
  if (!atExplicitKey) {
6806
7043
  storeMappingPair(state, _result, overridableKeys, keyTag, keyNode, valueNode, _keyLine, _keyLineStart, _keyPos);
6807
7044
  keyTag = keyNode = valueNode = null;
@@ -6809,13 +7046,15 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
6809
7046
  skipSeparationSpace(state, true, -1);
6810
7047
  ch = state.input.charCodeAt(state.position);
6811
7048
  }
6812
- if ((state.line === _line || state.lineIndent > nodeIndent) && ch !== 0)
7049
+ if ((state.line === _line || state.lineIndent > nodeIndent) && ch !== 0) {
6813
7050
  throwError(state, "bad indentation of a mapping entry");
6814
- else if (state.lineIndent < nodeIndent)
7051
+ } else if (state.lineIndent < nodeIndent) {
6815
7052
  break;
7053
+ }
6816
7054
  }
6817
- if (atExplicitKey)
7055
+ if (atExplicitKey) {
6818
7056
  storeMappingPair(state, _result, overridableKeys, keyTag, keyNode, null, _keyLine, _keyLineStart, _keyPos);
7057
+ }
6819
7058
  if (detected) {
6820
7059
  state.tag = _tag;
6821
7060
  state.anchor = _anchor;
@@ -6832,8 +7071,9 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
6832
7071
  let ch = state.input.charCodeAt(state.position);
6833
7072
  if (ch !== 33)
6834
7073
  return false;
6835
- if (state.tag !== null)
7074
+ if (state.tag !== null) {
6836
7075
  throwError(state, "duplication of a tag property");
7076
+ }
6837
7077
  ch = state.input.charCodeAt(++state.position);
6838
7078
  if (ch === 60) {
6839
7079
  isVerbatim = true;
@@ -6842,66 +7082,77 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
6842
7082
  isNamed = true;
6843
7083
  tagHandle = "!!";
6844
7084
  ch = state.input.charCodeAt(++state.position);
6845
- } else
7085
+ } else {
6846
7086
  tagHandle = "!";
7087
+ }
6847
7088
  let _position = state.position;
6848
7089
  if (isVerbatim) {
6849
- do
7090
+ do {
6850
7091
  ch = state.input.charCodeAt(++state.position);
6851
- while (ch !== 0 && ch !== 62);
7092
+ } while (ch !== 0 && ch !== 62);
6852
7093
  if (state.position < state.length) {
6853
7094
  tagName = state.input.slice(_position, state.position);
6854
7095
  ch = state.input.charCodeAt(++state.position);
6855
- } else
7096
+ } else {
6856
7097
  throwError(state, "unexpected end of the stream within a verbatim tag");
7098
+ }
6857
7099
  } else {
6858
7100
  while (ch !== 0 && !isWsOrEol(ch)) {
6859
- if (ch === 33)
7101
+ if (ch === 33) {
6860
7102
  if (!isNamed) {
6861
7103
  tagHandle = state.input.slice(_position - 1, state.position + 1);
6862
- if (!PATTERN_TAG_HANDLE.test(tagHandle))
7104
+ if (!PATTERN_TAG_HANDLE.test(tagHandle)) {
6863
7105
  throwError(state, "named tag handle cannot contain such characters");
7106
+ }
6864
7107
  isNamed = true;
6865
7108
  _position = state.position + 1;
6866
- } else
7109
+ } else {
6867
7110
  throwError(state, "tag suffix cannot contain exclamation marks");
7111
+ }
7112
+ }
6868
7113
  ch = state.input.charCodeAt(++state.position);
6869
7114
  }
6870
7115
  tagName = state.input.slice(_position, state.position);
6871
- if (PATTERN_FLOW_INDICATORS.test(tagName))
7116
+ if (PATTERN_FLOW_INDICATORS.test(tagName)) {
6872
7117
  throwError(state, "tag suffix cannot contain flow indicator characters");
7118
+ }
6873
7119
  }
6874
- if (tagName && !PATTERN_TAG_URI.test(tagName))
7120
+ if (tagName && !PATTERN_TAG_URI.test(tagName)) {
6875
7121
  throwError(state, "tag name cannot contain such characters: " + tagName);
7122
+ }
6876
7123
  try {
6877
7124
  tagName = decodeURIComponent(tagName);
6878
7125
  } catch (err) {
6879
7126
  throwError(state, "tag name is malformed: " + tagName);
6880
7127
  }
6881
- if (isVerbatim)
7128
+ if (isVerbatim) {
6882
7129
  state.tag = tagName;
6883
- else if (_hasOwnProperty.call(state.tagMap, tagHandle))
7130
+ } else if (_hasOwnProperty.call(state.tagMap, tagHandle)) {
6884
7131
  state.tag = state.tagMap[tagHandle] + tagName;
6885
- else if (tagHandle === "!")
7132
+ } else if (tagHandle === "!") {
6886
7133
  state.tag = "!" + tagName;
6887
- else if (tagHandle === "!!")
7134
+ } else if (tagHandle === "!!") {
6888
7135
  state.tag = "tag:yaml.org,2002:" + tagName;
6889
- else
7136
+ } else {
6890
7137
  throwError(state, 'undeclared tag handle "' + tagHandle + '"');
7138
+ }
6891
7139
  return true;
6892
7140
  }
6893
7141
  function readAnchorProperty(state) {
6894
7142
  let ch = state.input.charCodeAt(state.position);
6895
7143
  if (ch !== 38)
6896
7144
  return false;
6897
- if (state.anchor !== null)
7145
+ if (state.anchor !== null) {
6898
7146
  throwError(state, "duplication of an anchor property");
7147
+ }
6899
7148
  ch = state.input.charCodeAt(++state.position);
6900
7149
  const _position = state.position;
6901
- while (ch !== 0 && !isWsOrEol(ch) && !isFlowIndicator(ch))
7150
+ while (ch !== 0 && !isWsOrEol(ch) && !isFlowIndicator(ch)) {
6902
7151
  ch = state.input.charCodeAt(++state.position);
6903
- if (state.position === _position)
7152
+ }
7153
+ if (state.position === _position) {
6904
7154
  throwError(state, "name of an anchor node must contain at least one character");
7155
+ }
6905
7156
  state.anchor = state.input.slice(_position, state.position);
6906
7157
  return true;
6907
7158
  }
@@ -6911,13 +7162,16 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
6911
7162
  return false;
6912
7163
  ch = state.input.charCodeAt(++state.position);
6913
7164
  const _position = state.position;
6914
- while (ch !== 0 && !isWsOrEol(ch) && !isFlowIndicator(ch))
7165
+ while (ch !== 0 && !isWsOrEol(ch) && !isFlowIndicator(ch)) {
6915
7166
  ch = state.input.charCodeAt(++state.position);
6916
- if (state.position === _position)
7167
+ }
7168
+ if (state.position === _position) {
6917
7169
  throwError(state, "name of an alias node must contain at least one character");
7170
+ }
6918
7171
  const alias = state.input.slice(_position, state.position);
6919
- if (!_hasOwnProperty.call(state.anchorMap, alias))
7172
+ if (!_hasOwnProperty.call(state.anchorMap, alias)) {
6920
7173
  throwError(state, 'unidentified alias "' + alias + '"');
7174
+ }
6921
7175
  state.result = state.anchorMap[alias];
6922
7176
  skipSeparationSpace(state, true, -1);
6923
7177
  return true;
@@ -6945,14 +7199,16 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
6945
7199
  let atNewLine = false;
6946
7200
  let hasContent = false;
6947
7201
  let propertyStart = null;
6948
- let type;
7202
+ let type2;
6949
7203
  let flowIndent;
6950
7204
  let blockIndent;
6951
- if (state.depth >= state.maxDepth)
7205
+ if (state.depth >= state.maxDepth) {
6952
7206
  throwError(state, "nesting exceeded maxDepth (" + state.maxDepth + ")");
7207
+ }
6953
7208
  state.depth += 1;
6954
- if (state.listener !== null)
7209
+ if (state.listener !== null) {
6955
7210
  state.listener("open", state);
7211
+ }
6956
7212
  state.tag = null;
6957
7213
  state.anchor = null;
6958
7214
  state.kind = null;
@@ -6961,110 +7217,131 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
6961
7217
  if (allowToSeek) {
6962
7218
  if (skipSeparationSpace(state, true, -1)) {
6963
7219
  atNewLine = true;
6964
- if (state.lineIndent > parentIndent)
7220
+ if (state.lineIndent > parentIndent) {
6965
7221
  indentStatus = 1;
6966
- else if (state.lineIndent === parentIndent)
7222
+ } else if (state.lineIndent === parentIndent) {
6967
7223
  indentStatus = 0;
6968
- else if (state.lineIndent < parentIndent)
7224
+ } else if (state.lineIndent < parentIndent) {
6969
7225
  indentStatus = -1;
7226
+ }
6970
7227
  }
6971
7228
  }
6972
- if (indentStatus === 1)
7229
+ if (indentStatus === 1) {
6973
7230
  while (true) {
6974
7231
  const ch = state.input.charCodeAt(state.position);
6975
7232
  const propertyState = snapshotState(state);
6976
- if (atNewLine && (ch === 33 && state.tag !== null || ch === 38 && state.anchor !== null))
7233
+ if (atNewLine && (ch === 33 && state.tag !== null || ch === 38 && state.anchor !== null)) {
6977
7234
  break;
6978
- if (!readTagProperty(state) && !readAnchorProperty(state))
7235
+ }
7236
+ if (!readTagProperty(state) && !readAnchorProperty(state)) {
6979
7237
  break;
6980
- if (propertyStart === null)
7238
+ }
7239
+ if (propertyStart === null) {
6981
7240
  propertyStart = propertyState;
7241
+ }
6982
7242
  if (skipSeparationSpace(state, true, -1)) {
6983
7243
  atNewLine = true;
6984
7244
  allowBlockCollections = allowBlockStyles;
6985
- if (state.lineIndent > parentIndent)
7245
+ if (state.lineIndent > parentIndent) {
6986
7246
  indentStatus = 1;
6987
- else if (state.lineIndent === parentIndent)
7247
+ } else if (state.lineIndent === parentIndent) {
6988
7248
  indentStatus = 0;
6989
- else if (state.lineIndent < parentIndent)
7249
+ } else if (state.lineIndent < parentIndent) {
6990
7250
  indentStatus = -1;
6991
- } else
7251
+ }
7252
+ } else {
6992
7253
  allowBlockCollections = false;
7254
+ }
6993
7255
  }
6994
- if (allowBlockCollections)
7256
+ }
7257
+ if (allowBlockCollections) {
6995
7258
  allowBlockCollections = atNewLine || allowCompact;
7259
+ }
6996
7260
  if (indentStatus === 1 || CONTEXT_BLOCK_OUT === nodeContext) {
6997
- if (CONTEXT_FLOW_IN === nodeContext || CONTEXT_FLOW_OUT === nodeContext)
7261
+ if (CONTEXT_FLOW_IN === nodeContext || CONTEXT_FLOW_OUT === nodeContext) {
6998
7262
  flowIndent = parentIndent;
6999
- else
7263
+ } else {
7000
7264
  flowIndent = parentIndent + 1;
7265
+ }
7001
7266
  blockIndent = state.position - state.lineStart;
7002
- if (indentStatus === 1)
7003
- if (allowBlockCollections && (readBlockSequence(state, blockIndent) || readBlockMapping(state, blockIndent, flowIndent)) || readFlowCollection(state, flowIndent))
7267
+ if (indentStatus === 1) {
7268
+ if (allowBlockCollections && (readBlockSequence(state, blockIndent) || readBlockMapping(state, blockIndent, flowIndent)) || readFlowCollection(state, flowIndent)) {
7004
7269
  hasContent = true;
7005
- else {
7270
+ } else {
7006
7271
  const ch = state.input.charCodeAt(state.position);
7007
- if (propertyStart !== null && allowBlockStyles && !allowBlockCollections && ch !== 124 && ch !== 62 && tryReadBlockMappingFromProperty(state, propertyStart, propertyStart.position - propertyStart.lineStart, flowIndent))
7272
+ if (propertyStart !== null && allowBlockStyles && !allowBlockCollections && ch !== 124 && ch !== 62 && tryReadBlockMappingFromProperty(state, propertyStart, propertyStart.position - propertyStart.lineStart, flowIndent)) {
7008
7273
  hasContent = true;
7009
- else if (allowBlockScalars && readBlockScalar(state, flowIndent) || readSingleQuotedScalar(state, flowIndent) || readDoubleQuotedScalar(state, flowIndent))
7274
+ } else if (allowBlockScalars && readBlockScalar(state, flowIndent) || readSingleQuotedScalar(state, flowIndent) || readDoubleQuotedScalar(state, flowIndent)) {
7010
7275
  hasContent = true;
7011
- else if (readAlias(state)) {
7276
+ } else if (readAlias(state)) {
7012
7277
  hasContent = true;
7013
- if (state.tag !== null || state.anchor !== null)
7278
+ if (state.tag !== null || state.anchor !== null) {
7014
7279
  throwError(state, "alias node should not have any properties");
7280
+ }
7015
7281
  } else if (readPlainScalar(state, flowIndent, CONTEXT_FLOW_IN === nodeContext)) {
7016
7282
  hasContent = true;
7017
- if (state.tag === null)
7283
+ if (state.tag === null) {
7018
7284
  state.tag = "?";
7285
+ }
7019
7286
  }
7020
- if (state.anchor !== null)
7287
+ if (state.anchor !== null) {
7021
7288
  storeAnchor(state, state.anchor, state.result);
7289
+ }
7022
7290
  }
7023
- else if (indentStatus === 0)
7291
+ } else if (indentStatus === 0) {
7024
7292
  hasContent = allowBlockCollections && readBlockSequence(state, blockIndent);
7293
+ }
7025
7294
  }
7026
7295
  if (state.tag === null) {
7027
- if (state.anchor !== null)
7296
+ if (state.anchor !== null) {
7028
7297
  storeAnchor(state, state.anchor, state.result);
7298
+ }
7029
7299
  } else if (state.tag === "?") {
7030
- if (state.result !== null && state.kind !== "scalar")
7300
+ if (state.result !== null && state.kind !== "scalar") {
7031
7301
  throwError(state, 'unacceptable node kind for !<?> tag; it should be "scalar", not "' + state.kind + '"');
7302
+ }
7032
7303
  for (let typeIndex = 0, typeQuantity = state.implicitTypes.length;typeIndex < typeQuantity; typeIndex += 1) {
7033
- type = state.implicitTypes[typeIndex];
7034
- if (type.resolve(state.result)) {
7035
- state.result = type.construct(state.result);
7036
- state.tag = type.tag;
7037
- if (state.anchor !== null)
7304
+ type2 = state.implicitTypes[typeIndex];
7305
+ if (type2.resolve(state.result)) {
7306
+ state.result = type2.construct(state.result);
7307
+ state.tag = type2.tag;
7308
+ if (state.anchor !== null) {
7038
7309
  storeAnchor(state, state.anchor, state.result);
7310
+ }
7039
7311
  break;
7040
7312
  }
7041
7313
  }
7042
7314
  } else if (state.tag !== "!") {
7043
- if (_hasOwnProperty.call(state.typeMap[state.kind || "fallback"], state.tag))
7044
- type = state.typeMap[state.kind || "fallback"][state.tag];
7045
- else {
7046
- type = null;
7315
+ if (_hasOwnProperty.call(state.typeMap[state.kind || "fallback"], state.tag)) {
7316
+ type2 = state.typeMap[state.kind || "fallback"][state.tag];
7317
+ } else {
7318
+ type2 = null;
7047
7319
  const typeList = state.typeMap.multi[state.kind || "fallback"];
7048
- for (let typeIndex = 0, typeQuantity = typeList.length;typeIndex < typeQuantity; typeIndex += 1)
7320
+ for (let typeIndex = 0, typeQuantity = typeList.length;typeIndex < typeQuantity; typeIndex += 1) {
7049
7321
  if (state.tag.slice(0, typeList[typeIndex].tag.length) === typeList[typeIndex].tag) {
7050
- type = typeList[typeIndex];
7322
+ type2 = typeList[typeIndex];
7051
7323
  break;
7052
7324
  }
7325
+ }
7053
7326
  }
7054
- if (!type)
7327
+ if (!type2) {
7055
7328
  throwError(state, "unknown tag !<" + state.tag + ">");
7056
- if (state.result !== null && type.kind !== state.kind)
7057
- throwError(state, "unacceptable node kind for !<" + state.tag + '> tag; it should be "' + type.kind + '", not "' + state.kind + '"');
7058
- if (!type.resolve(state.result, state.tag))
7059
- throwError(state, "cannot resolve a node with !<" + state.tag + "> explicit tag");
7060
- else {
7061
- state.result = type.construct(state.result, state.tag);
7062
- if (state.anchor !== null)
7329
+ }
7330
+ if (state.result !== null && type2.kind !== state.kind) {
7331
+ throwError(state, "unacceptable node kind for !<" + state.tag + '> tag; it should be "' + type2.kind + '", not "' + state.kind + '"');
7332
+ }
7333
+ if (!type2.resolve(state.result, state.tag)) {
7334
+ throwError(state, "cannot resolve a node with !<" + state.tag + "> explicit tag");
7335
+ } else {
7336
+ state.result = type2.construct(state.result, state.tag);
7337
+ if (state.anchor !== null) {
7063
7338
  storeAnchor(state, state.anchor, state.result);
7339
+ }
7064
7340
  }
7065
7341
  }
7066
- if (state.listener !== null)
7342
+ if (state.listener !== null) {
7067
7343
  state.listener("close", state);
7344
+ }
7068
7345
  state.depth -= 1;
7069
7346
  return state.tag !== null || state.anchor !== null || hasContent;
7070
7347
  }
@@ -7074,55 +7351,63 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
7074
7351
  let ch;
7075
7352
  state.version = null;
7076
7353
  state.checkLineBreaks = state.legacy;
7077
- state.tagMap = Object.create(null);
7078
- state.anchorMap = Object.create(null);
7354
+ state.tagMap = /* @__PURE__ */ Object.create(null);
7355
+ state.anchorMap = /* @__PURE__ */ Object.create(null);
7079
7356
  while ((ch = state.input.charCodeAt(state.position)) !== 0) {
7080
7357
  skipSeparationSpace(state, true, -1);
7081
7358
  ch = state.input.charCodeAt(state.position);
7082
- if (state.lineIndent > 0 || ch !== 37)
7359
+ if (state.lineIndent > 0 || ch !== 37) {
7083
7360
  break;
7361
+ }
7084
7362
  hasDirectives = true;
7085
7363
  ch = state.input.charCodeAt(++state.position);
7086
7364
  let _position = state.position;
7087
- while (ch !== 0 && !isWsOrEol(ch))
7365
+ while (ch !== 0 && !isWsOrEol(ch)) {
7088
7366
  ch = state.input.charCodeAt(++state.position);
7367
+ }
7089
7368
  const directiveName = state.input.slice(_position, state.position);
7090
7369
  const directiveArgs = [];
7091
- if (directiveName.length < 1)
7370
+ if (directiveName.length < 1) {
7092
7371
  throwError(state, "directive name must not be less than one character in length");
7372
+ }
7093
7373
  while (ch !== 0) {
7094
- while (isWhiteSpace(ch))
7374
+ while (isWhiteSpace(ch)) {
7095
7375
  ch = state.input.charCodeAt(++state.position);
7376
+ }
7096
7377
  if (ch === 35) {
7097
- do
7378
+ do {
7098
7379
  ch = state.input.charCodeAt(++state.position);
7099
- while (ch !== 0 && !isEol(ch));
7380
+ } while (ch !== 0 && !isEol(ch));
7100
7381
  break;
7101
7382
  }
7102
7383
  if (isEol(ch))
7103
7384
  break;
7104
7385
  _position = state.position;
7105
- while (ch !== 0 && !isWsOrEol(ch))
7386
+ while (ch !== 0 && !isWsOrEol(ch)) {
7106
7387
  ch = state.input.charCodeAt(++state.position);
7388
+ }
7107
7389
  directiveArgs.push(state.input.slice(_position, state.position));
7108
7390
  }
7109
7391
  if (ch !== 0)
7110
7392
  readLineBreak(state);
7111
- if (_hasOwnProperty.call(directiveHandlers, directiveName))
7393
+ if (_hasOwnProperty.call(directiveHandlers, directiveName)) {
7112
7394
  directiveHandlers[directiveName](state, directiveName, directiveArgs);
7113
- else
7395
+ } else {
7114
7396
  throwWarning(state, 'unknown document directive "' + directiveName + '"');
7397
+ }
7115
7398
  }
7116
7399
  skipSeparationSpace(state, true, -1);
7117
7400
  if (state.lineIndent === 0 && state.input.charCodeAt(state.position) === 45 && state.input.charCodeAt(state.position + 1) === 45 && state.input.charCodeAt(state.position + 2) === 45) {
7118
7401
  state.position += 3;
7119
7402
  skipSeparationSpace(state, true, -1);
7120
- } else if (hasDirectives)
7403
+ } else if (hasDirectives) {
7121
7404
  throwError(state, "directives end mark is expected");
7405
+ }
7122
7406
  composeNode(state, state.lineIndent - 1, CONTEXT_BLOCK_OUT, false, true);
7123
7407
  skipSeparationSpace(state, true, -1);
7124
- if (state.checkLineBreaks && PATTERN_NON_ASCII_LINE_BREAKS.test(state.input.slice(documentStart, state.position)))
7408
+ if (state.checkLineBreaks && PATTERN_NON_ASCII_LINE_BREAKS.test(state.input.slice(documentStart, state.position))) {
7125
7409
  throwWarning(state, "non-ASCII line breaks are interpreted as content");
7410
+ }
7126
7411
  state.documents.push(state.result);
7127
7412
  if (state.position === state.lineStart && testDocumentSeparator(state)) {
7128
7413
  if (state.input.charCodeAt(state.position) === 46) {
@@ -7131,18 +7416,21 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
7131
7416
  }
7132
7417
  return;
7133
7418
  }
7134
- if (state.position < state.length - 1)
7419
+ if (state.position < state.length - 1) {
7135
7420
  throwError(state, "end of the stream or a document separator is expected");
7421
+ }
7136
7422
  }
7137
7423
  function loadDocuments(input, options) {
7138
7424
  input = String(input);
7139
7425
  options = options || {};
7140
7426
  if (input.length !== 0) {
7141
- if (input.charCodeAt(input.length - 1) !== 10 && input.charCodeAt(input.length - 1) !== 13)
7427
+ if (input.charCodeAt(input.length - 1) !== 10 && input.charCodeAt(input.length - 1) !== 13) {
7142
7428
  input += `
7143
7429
  `;
7144
- if (input.charCodeAt(0) === 65279)
7430
+ }
7431
+ if (input.charCodeAt(0) === 65279) {
7145
7432
  input = input.slice(1);
7433
+ }
7146
7434
  }
7147
7435
  const state = new State(input, options);
7148
7436
  const nullpos = input.indexOf("\x00");
@@ -7155,64 +7443,74 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
7155
7443
  state.lineIndent += 1;
7156
7444
  state.position += 1;
7157
7445
  }
7158
- while (state.position < state.length - 1)
7446
+ while (state.position < state.length - 1) {
7159
7447
  readDocument(state);
7448
+ }
7160
7449
  return state.documents;
7161
7450
  }
7162
- function loadAll(input, iterator, options) {
7451
+ function loadAll2(input, iterator, options) {
7163
7452
  if (iterator !== null && typeof iterator === "object" && typeof options === "undefined") {
7164
7453
  options = iterator;
7165
7454
  iterator = null;
7166
7455
  }
7167
7456
  const documents = loadDocuments(input, options);
7168
- if (typeof iterator !== "function")
7457
+ if (typeof iterator !== "function") {
7169
7458
  return documents;
7170
- for (let index = 0, length = documents.length;index < length; index += 1)
7459
+ }
7460
+ for (let index = 0, length = documents.length;index < length; index += 1) {
7171
7461
  iterator(documents[index]);
7462
+ }
7172
7463
  }
7173
- function load(input, options) {
7464
+ function load2(input, options) {
7174
7465
  const documents = loadDocuments(input, options);
7175
- if (documents.length === 0)
7466
+ if (documents.length === 0) {
7176
7467
  return;
7177
- else if (documents.length === 1)
7468
+ } else if (documents.length === 1) {
7178
7469
  return documents[0];
7179
- throw new YAMLException("expected a single document in the stream, but found more");
7470
+ }
7471
+ throw new YAMLException2("expected a single document in the stream, but found more");
7180
7472
  }
7181
- module.exports.loadAll = loadAll;
7182
- module.exports.load = load;
7183
- });
7184
- var require_dumper = /* @__PURE__ */ __commonJSMin((exports, module) => {
7185
- var common = require_common();
7186
- var YAMLException = require_exception();
7187
- var DEFAULT_SCHEMA = require_default();
7188
- var _toString = Object.prototype.toString;
7189
- var _hasOwnProperty = Object.prototype.hasOwnProperty;
7190
- var CHAR_BOM = 65279;
7191
- var CHAR_TAB = 9;
7192
- var CHAR_LINE_FEED = 10;
7193
- var CHAR_CARRIAGE_RETURN = 13;
7194
- var CHAR_SPACE = 32;
7195
- var CHAR_EXCLAMATION = 33;
7196
- var CHAR_DOUBLE_QUOTE = 34;
7197
- var CHAR_SHARP = 35;
7198
- var CHAR_PERCENT = 37;
7199
- var CHAR_AMPERSAND = 38;
7200
- var CHAR_SINGLE_QUOTE = 39;
7201
- var CHAR_ASTERISK = 42;
7202
- var CHAR_COMMA = 44;
7203
- var CHAR_MINUS = 45;
7204
- var CHAR_COLON = 58;
7205
- var CHAR_EQUALS = 61;
7206
- var CHAR_GREATER_THAN = 62;
7207
- var CHAR_QUESTION = 63;
7208
- var CHAR_COMMERCIAL_AT = 64;
7209
- var CHAR_LEFT_SQUARE_BRACKET = 91;
7210
- var CHAR_RIGHT_SQUARE_BRACKET = 93;
7211
- var CHAR_GRAVE_ACCENT = 96;
7212
- var CHAR_LEFT_CURLY_BRACKET = 123;
7213
- var CHAR_VERTICAL_LINE = 124;
7214
- var CHAR_RIGHT_CURLY_BRACKET = 125;
7215
- var ESCAPE_SEQUENCES = {};
7473
+ loader.loadAll = loadAll2;
7474
+ loader.load = load2;
7475
+ return loader;
7476
+ }
7477
+ var dumper = {};
7478
+ var hasRequiredDumper;
7479
+ function requireDumper() {
7480
+ if (hasRequiredDumper)
7481
+ return dumper;
7482
+ hasRequiredDumper = 1;
7483
+ const common2 = requireCommon();
7484
+ const YAMLException2 = requireException();
7485
+ const DEFAULT_SCHEMA2 = require_default();
7486
+ const _toString = Object.prototype.toString;
7487
+ const _hasOwnProperty = Object.prototype.hasOwnProperty;
7488
+ const CHAR_BOM = 65279;
7489
+ const CHAR_TAB = 9;
7490
+ const CHAR_LINE_FEED = 10;
7491
+ const CHAR_CARRIAGE_RETURN = 13;
7492
+ const CHAR_SPACE = 32;
7493
+ const CHAR_EXCLAMATION = 33;
7494
+ const CHAR_DOUBLE_QUOTE = 34;
7495
+ const CHAR_SHARP = 35;
7496
+ const CHAR_PERCENT = 37;
7497
+ const CHAR_AMPERSAND = 38;
7498
+ const CHAR_SINGLE_QUOTE = 39;
7499
+ const CHAR_ASTERISK = 42;
7500
+ const CHAR_COMMA = 44;
7501
+ const CHAR_MINUS = 45;
7502
+ const CHAR_COLON = 58;
7503
+ const CHAR_EQUALS = 61;
7504
+ const CHAR_GREATER_THAN = 62;
7505
+ const CHAR_QUESTION = 63;
7506
+ const CHAR_COMMERCIAL_AT = 64;
7507
+ const CHAR_LEFT_SQUARE_BRACKET = 91;
7508
+ const CHAR_RIGHT_SQUARE_BRACKET = 93;
7509
+ const CHAR_GRAVE_ACCENT = 96;
7510
+ const CHAR_LEFT_CURLY_BRACKET = 123;
7511
+ const CHAR_VERTICAL_LINE = 124;
7512
+ const CHAR_RIGHT_CURLY_BRACKET = 125;
7513
+ const ESCAPE_SEQUENCES = {};
7216
7514
  ESCAPE_SEQUENCES[0] = "\\0";
7217
7515
  ESCAPE_SEQUENCES[7] = "\\a";
7218
7516
  ESCAPE_SEQUENCES[8] = "\\b";
@@ -7228,7 +7526,7 @@ var require_dumper = /* @__PURE__ */ __commonJSMin((exports, module) => {
7228
7526
  ESCAPE_SEQUENCES[160] = "\\_";
7229
7527
  ESCAPE_SEQUENCES[8232] = "\\L";
7230
7528
  ESCAPE_SEQUENCES[8233] = "\\P";
7231
- var DEPRECATED_BOOLEANS_SYNTAX = [
7529
+ const DEPRECATED_BOOLEANS_SYNTAX = [
7232
7530
  "y",
7233
7531
  "Y",
7234
7532
  "yes",
@@ -7246,20 +7544,22 @@ var require_dumper = /* @__PURE__ */ __commonJSMin((exports, module) => {
7246
7544
  "Off",
7247
7545
  "OFF"
7248
7546
  ];
7249
- var DEPRECATED_BASE60_SYNTAX = /^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;
7250
- function compileStyleMap(schema, map) {
7251
- if (map === null)
7547
+ const DEPRECATED_BASE60_SYNTAX = /^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;
7548
+ function compileStyleMap(schema2, map2) {
7549
+ if (map2 === null)
7252
7550
  return {};
7253
7551
  const result = {};
7254
- const keys = Object.keys(map);
7552
+ const keys = Object.keys(map2);
7255
7553
  for (let index = 0, length = keys.length;index < length; index += 1) {
7256
7554
  let tag = keys[index];
7257
- let style = String(map[tag]);
7258
- if (tag.slice(0, 2) === "!!")
7555
+ let style = String(map2[tag]);
7556
+ if (tag.slice(0, 2) === "!!") {
7259
7557
  tag = "tag:yaml.org,2002:" + tag.slice(2);
7260
- const type = schema.compiledTypeMap["fallback"][tag];
7261
- if (type && _hasOwnProperty.call(type.styleAliases, style))
7262
- style = type.styleAliases[style];
7558
+ }
7559
+ const type2 = schema2.compiledTypeMap["fallback"][tag];
7560
+ if (type2 && _hasOwnProperty.call(type2.styleAliases, style)) {
7561
+ style = type2.styleAliases[style];
7562
+ }
7263
7563
  result[tag] = style;
7264
7564
  }
7265
7565
  return result;
@@ -7277,18 +7577,19 @@ var require_dumper = /* @__PURE__ */ __commonJSMin((exports, module) => {
7277
7577
  } else if (character <= 4294967295) {
7278
7578
  handle = "U";
7279
7579
  length = 8;
7280
- } else
7281
- throw new YAMLException("code point within a string may not be greater than 0xFFFFFFFF");
7282
- return "\\" + handle + common.repeat("0", length - string.length) + string;
7580
+ } else {
7581
+ throw new YAMLException2("code point within a string may not be greater than 0xFFFFFFFF");
7582
+ }
7583
+ return "\\" + handle + common2.repeat("0", length - string.length) + string;
7283
7584
  }
7284
- var QUOTING_TYPE_SINGLE = 1;
7285
- var QUOTING_TYPE_DOUBLE = 2;
7585
+ const QUOTING_TYPE_SINGLE = 1;
7586
+ const QUOTING_TYPE_DOUBLE = 2;
7286
7587
  function State(options) {
7287
- this.schema = options["schema"] || DEFAULT_SCHEMA;
7588
+ this.schema = options["schema"] || DEFAULT_SCHEMA2;
7288
7589
  this.indent = Math.max(1, options["indent"] || 2);
7289
7590
  this.noArrayIndent = options["noArrayIndent"] || false;
7290
7591
  this.skipInvalid = options["skipInvalid"] || false;
7291
- this.flowLevel = common.isNothing(options["flowLevel"]) ? -1 : options["flowLevel"];
7592
+ this.flowLevel = common2.isNothing(options["flowLevel"]) ? -1 : options["flowLevel"];
7292
7593
  this.styleMap = compileStyleMap(this.schema, options["styles"] || null);
7293
7594
  this.sortKeys = options["sortKeys"] || false;
7294
7595
  this.lineWidth = options["lineWidth"] || 80;
@@ -7306,7 +7607,7 @@ var require_dumper = /* @__PURE__ */ __commonJSMin((exports, module) => {
7306
7607
  this.usedDuplicates = null;
7307
7608
  }
7308
7609
  function indentString(string, spaces) {
7309
- const ind = common.repeat(" ", spaces);
7610
+ const ind = common2.repeat(" ", spaces);
7310
7611
  let position = 0;
7311
7612
  let result = "";
7312
7613
  const length = string.length;
@@ -7330,12 +7631,15 @@ var require_dumper = /* @__PURE__ */ __commonJSMin((exports, module) => {
7330
7631
  }
7331
7632
  function generateNextLine(state, level) {
7332
7633
  return `
7333
- ` + common.repeat(" ", state.indent * level);
7634
+ ` + common2.repeat(" ", state.indent * level);
7334
7635
  }
7335
- function testImplicitResolving(state, str) {
7336
- for (let index = 0, length = state.implicitTypes.length;index < length; index += 1)
7337
- if (state.implicitTypes[index].resolve(str))
7636
+ function testImplicitResolving(state, str2) {
7637
+ for (let index = 0, length = state.implicitTypes.length;index < length; index += 1) {
7638
+ const type2 = state.implicitTypes[index];
7639
+ if (type2.resolve(str2)) {
7338
7640
  return true;
7641
+ }
7642
+ }
7339
7643
  return false;
7340
7644
  }
7341
7645
  function isWhitespace(c) {
@@ -7363,19 +7667,21 @@ var require_dumper = /* @__PURE__ */ __commonJSMin((exports, module) => {
7363
7667
  let second;
7364
7668
  if (first >= 55296 && first <= 56319 && pos + 1 < string.length) {
7365
7669
  second = string.charCodeAt(pos + 1);
7366
- if (second >= 56320 && second <= 57343)
7670
+ if (second >= 56320 && second <= 57343) {
7367
7671
  return (first - 55296) * 1024 + second - 56320 + 65536;
7672
+ }
7368
7673
  }
7369
7674
  return first;
7370
7675
  }
7371
7676
  function needIndentIndicator(string) {
7372
- return /^\n* /.test(string);
7373
- }
7374
- var STYLE_PLAIN = 1;
7375
- var STYLE_SINGLE = 2;
7376
- var STYLE_LITERAL = 3;
7377
- var STYLE_FOLDED = 4;
7378
- var STYLE_DOUBLE = 5;
7677
+ const leadingSpaceRe = /^\n* /;
7678
+ return leadingSpaceRe.test(string);
7679
+ }
7680
+ const STYLE_PLAIN = 1;
7681
+ const STYLE_SINGLE = 2;
7682
+ const STYLE_LITERAL = 3;
7683
+ const STYLE_FOLDED = 4;
7684
+ const STYLE_DOUBLE = 5;
7379
7685
  function chooseScalarStyle(string, singleLineOnly, indentPerLevel, lineWidth, testAmbiguousType, quotingType, forceQuotes, inblock) {
7380
7686
  let i;
7381
7687
  let char = 0;
@@ -7385,15 +7691,16 @@ var require_dumper = /* @__PURE__ */ __commonJSMin((exports, module) => {
7385
7691
  const shouldTrackWidth = lineWidth !== -1;
7386
7692
  let previousLineBreak = -1;
7387
7693
  let plain = isPlainSafeFirst(codePointAt(string, 0)) && isPlainSafeLast(codePointAt(string, string.length - 1));
7388
- if (singleLineOnly || forceQuotes)
7694
+ if (singleLineOnly || forceQuotes) {
7389
7695
  for (i = 0;i < string.length; char >= 65536 ? i += 2 : i++) {
7390
7696
  char = codePointAt(string, i);
7391
- if (!isPrintable(char))
7697
+ if (!isPrintable(char)) {
7392
7698
  return STYLE_DOUBLE;
7699
+ }
7393
7700
  plain = plain && isPlainSafe(char, prevChar, inblock);
7394
7701
  prevChar = char;
7395
7702
  }
7396
- else {
7703
+ } else {
7397
7704
  for (i = 0;i < string.length; char >= 65536 ? i += 2 : i++) {
7398
7705
  char = codePointAt(string, i);
7399
7706
  if (char === CHAR_LINE_FEED) {
@@ -7402,31 +7709,37 @@ var require_dumper = /* @__PURE__ */ __commonJSMin((exports, module) => {
7402
7709
  hasFoldableLine = hasFoldableLine || i - previousLineBreak - 1 > lineWidth && string[previousLineBreak + 1] !== " ";
7403
7710
  previousLineBreak = i;
7404
7711
  }
7405
- } else if (!isPrintable(char))
7712
+ } else if (!isPrintable(char)) {
7406
7713
  return STYLE_DOUBLE;
7714
+ }
7407
7715
  plain = plain && isPlainSafe(char, prevChar, inblock);
7408
7716
  prevChar = char;
7409
7717
  }
7410
- hasFoldableLine = hasFoldableLine || shouldTrackWidth && i - previousLineBreak - 1 > lineWidth && string[previousLineBreak + 1] !== " ";
7718
+ hasFoldableLine = hasFoldableLine || shouldTrackWidth && (i - previousLineBreak - 1 > lineWidth && string[previousLineBreak + 1] !== " ");
7411
7719
  }
7412
7720
  if (!hasLineBreak && !hasFoldableLine) {
7413
- if (plain && !forceQuotes && !testAmbiguousType(string))
7721
+ if (plain && !forceQuotes && !testAmbiguousType(string)) {
7414
7722
  return STYLE_PLAIN;
7723
+ }
7415
7724
  return quotingType === QUOTING_TYPE_DOUBLE ? STYLE_DOUBLE : STYLE_SINGLE;
7416
7725
  }
7417
- if (indentPerLevel > 9 && needIndentIndicator(string))
7726
+ if (indentPerLevel > 9 && needIndentIndicator(string)) {
7418
7727
  return STYLE_DOUBLE;
7419
- if (!forceQuotes)
7728
+ }
7729
+ if (!forceQuotes) {
7420
7730
  return hasFoldableLine ? STYLE_FOLDED : STYLE_LITERAL;
7731
+ }
7421
7732
  return quotingType === QUOTING_TYPE_DOUBLE ? STYLE_DOUBLE : STYLE_SINGLE;
7422
7733
  }
7423
7734
  function writeScalar(state, string, level, iskey, inblock) {
7424
7735
  state.dump = function() {
7425
- if (string.length === 0)
7736
+ if (string.length === 0) {
7426
7737
  return state.quotingType === QUOTING_TYPE_DOUBLE ? '""' : "''";
7738
+ }
7427
7739
  if (!state.noCompatMode) {
7428
- if (DEPRECATED_BOOLEANS_SYNTAX.indexOf(string) !== -1 || DEPRECATED_BASE60_SYNTAX.test(string))
7740
+ if (DEPRECATED_BOOLEANS_SYNTAX.indexOf(string) !== -1 || DEPRECATED_BASE60_SYNTAX.test(string)) {
7429
7741
  return state.quotingType === QUOTING_TYPE_DOUBLE ? '"' + string + '"' : "'" + string + "'";
7742
+ }
7430
7743
  }
7431
7744
  const indent = state.indent * Math.max(1, level);
7432
7745
  const lineWidth = state.lineWidth === -1 ? -1 : Math.max(Math.min(state.lineWidth, 40), state.lineWidth - indent);
@@ -7444,9 +7757,9 @@ var require_dumper = /* @__PURE__ */ __commonJSMin((exports, module) => {
7444
7757
  case STYLE_FOLDED:
7445
7758
  return ">" + blockHeader(string, state.indent) + dropEndingNewline(indentString(foldString(string, lineWidth), indent));
7446
7759
  case STYLE_DOUBLE:
7447
- return '"' + escapeString(string, lineWidth) + '"';
7760
+ return '"' + escapeString(string) + '"';
7448
7761
  default:
7449
- throw new YAMLException("impossible error: invalid scalar style");
7762
+ throw new YAMLException2("impossible error: invalid scalar style");
7450
7763
  }
7451
7764
  }();
7452
7765
  }
@@ -7454,9 +7767,11 @@ var require_dumper = /* @__PURE__ */ __commonJSMin((exports, module) => {
7454
7767
  const indentIndicator = needIndentIndicator(string) ? String(indentPerLevel) : "";
7455
7768
  const clip = string[string.length - 1] === `
7456
7769
  `;
7457
- return indentIndicator + (clip && (string[string.length - 2] === `
7770
+ const keep = clip && (string[string.length - 2] === `
7458
7771
  ` || string === `
7459
- `) ? "+" : clip ? "" : "-") + `
7772
+ `);
7773
+ const chomp = keep ? "+" : clip ? "" : "-";
7774
+ return indentIndicator + chomp + `
7460
7775
  `;
7461
7776
  }
7462
7777
  function dropEndingNewline(string) {
@@ -7508,11 +7823,12 @@ var require_dumper = /* @__PURE__ */ __commonJSMin((exports, module) => {
7508
7823
  }
7509
7824
  result += `
7510
7825
  `;
7511
- if (line.length - start > width && curr > start)
7826
+ if (line.length - start > width && curr > start) {
7512
7827
  result += line.slice(start, curr) + `
7513
7828
  ` + line.slice(curr + 1);
7514
- else
7829
+ } else {
7515
7830
  result += line.slice(start);
7831
+ }
7516
7832
  return result.slice(1);
7517
7833
  }
7518
7834
  function escapeString(string) {
@@ -7525,8 +7841,9 @@ var require_dumper = /* @__PURE__ */ __commonJSMin((exports, module) => {
7525
7841
  result += string[i];
7526
7842
  if (char >= 65536)
7527
7843
  result += string[i + 1];
7528
- } else
7844
+ } else {
7529
7845
  result += escapeSeq || encodeHex(char);
7846
+ }
7530
7847
  }
7531
7848
  return result;
7532
7849
  }
@@ -7535,8 +7852,9 @@ var require_dumper = /* @__PURE__ */ __commonJSMin((exports, module) => {
7535
7852
  const _tag = state.tag;
7536
7853
  for (let index = 0, length = object.length;index < length; index += 1) {
7537
7854
  let value = object[index];
7538
- if (state.replacer)
7855
+ if (state.replacer) {
7539
7856
  value = state.replacer.call(object, String(index), value);
7857
+ }
7540
7858
  if (writeNode(state, level, value, false, false) || typeof value === "undefined" && writeNode(state, level, null, false, false)) {
7541
7859
  if (_result !== "")
7542
7860
  _result += "," + (!state.condenseFlow ? " " : "");
@@ -7551,15 +7869,18 @@ var require_dumper = /* @__PURE__ */ __commonJSMin((exports, module) => {
7551
7869
  const _tag = state.tag;
7552
7870
  for (let index = 0, length = object.length;index < length; index += 1) {
7553
7871
  let value = object[index];
7554
- if (state.replacer)
7872
+ if (state.replacer) {
7555
7873
  value = state.replacer.call(object, String(index), value);
7874
+ }
7556
7875
  if (writeNode(state, level + 1, value, true, true, false, true) || typeof value === "undefined" && writeNode(state, level + 1, null, true, true, false, true)) {
7557
- if (!compact || _result !== "")
7876
+ if (!compact || _result !== "") {
7558
7877
  _result += generateNextLine(state, level);
7559
- if (state.dump && CHAR_LINE_FEED === state.dump.charCodeAt(0))
7878
+ }
7879
+ if (state.dump && CHAR_LINE_FEED === state.dump.charCodeAt(0)) {
7560
7880
  _result += "-";
7561
- else
7881
+ } else {
7562
7882
  _result += "- ";
7883
+ }
7563
7884
  _result += state.dump;
7564
7885
  }
7565
7886
  }
@@ -7578,15 +7899,18 @@ var require_dumper = /* @__PURE__ */ __commonJSMin((exports, module) => {
7578
7899
  pairBuffer += '"';
7579
7900
  const objectKey = objectKeyList[index];
7580
7901
  let objectValue = object[objectKey];
7581
- if (state.replacer)
7902
+ if (state.replacer) {
7582
7903
  objectValue = state.replacer.call(object, objectKey, objectValue);
7583
- if (!writeNode(state, level, objectKey, false, false))
7904
+ }
7905
+ if (!writeNode(state, level, objectKey, false, false)) {
7584
7906
  continue;
7907
+ }
7585
7908
  if (state.dump.length > 1024)
7586
7909
  pairBuffer += "? ";
7587
7910
  pairBuffer += state.dump + (state.condenseFlow ? '"' : "") + ":" + (state.condenseFlow ? "" : " ");
7588
- if (!writeNode(state, level, objectValue, false, false))
7911
+ if (!writeNode(state, level, objectValue, false, false)) {
7589
7912
  continue;
7913
+ }
7590
7914
  pairBuffer += state.dump;
7591
7915
  _result += pairBuffer;
7592
7916
  }
@@ -7597,37 +7921,46 @@ var require_dumper = /* @__PURE__ */ __commonJSMin((exports, module) => {
7597
7921
  let _result = "";
7598
7922
  const _tag = state.tag;
7599
7923
  const objectKeyList = Object.keys(object);
7600
- if (state.sortKeys === true)
7924
+ if (state.sortKeys === true) {
7601
7925
  objectKeyList.sort();
7602
- else if (typeof state.sortKeys === "function")
7926
+ } else if (typeof state.sortKeys === "function") {
7603
7927
  objectKeyList.sort(state.sortKeys);
7604
- else if (state.sortKeys)
7605
- throw new YAMLException("sortKeys must be a boolean or a function");
7928
+ } else if (state.sortKeys) {
7929
+ throw new YAMLException2("sortKeys must be a boolean or a function");
7930
+ }
7606
7931
  for (let index = 0, length = objectKeyList.length;index < length; index += 1) {
7607
7932
  let pairBuffer = "";
7608
- if (!compact || _result !== "")
7933
+ if (!compact || _result !== "") {
7609
7934
  pairBuffer += generateNextLine(state, level);
7935
+ }
7610
7936
  const objectKey = objectKeyList[index];
7611
7937
  let objectValue = object[objectKey];
7612
- if (state.replacer)
7938
+ if (state.replacer) {
7613
7939
  objectValue = state.replacer.call(object, objectKey, objectValue);
7614
- if (!writeNode(state, level + 1, objectKey, true, true, true))
7940
+ }
7941
+ if (!writeNode(state, level + 1, objectKey, true, true, true)) {
7615
7942
  continue;
7943
+ }
7616
7944
  const explicitPair = state.tag !== null && state.tag !== "?" || state.dump && state.dump.length > 1024;
7617
- if (explicitPair)
7618
- if (state.dump && CHAR_LINE_FEED === state.dump.charCodeAt(0))
7945
+ if (explicitPair) {
7946
+ if (state.dump && CHAR_LINE_FEED === state.dump.charCodeAt(0)) {
7619
7947
  pairBuffer += "?";
7620
- else
7948
+ } else {
7621
7949
  pairBuffer += "? ";
7950
+ }
7951
+ }
7622
7952
  pairBuffer += state.dump;
7623
- if (explicitPair)
7953
+ if (explicitPair) {
7624
7954
  pairBuffer += generateNextLine(state, level);
7625
- if (!writeNode(state, level + 1, objectValue, true, explicitPair))
7955
+ }
7956
+ if (!writeNode(state, level + 1, objectValue, true, explicitPair)) {
7626
7957
  continue;
7627
- if (state.dump && CHAR_LINE_FEED === state.dump.charCodeAt(0))
7958
+ }
7959
+ if (state.dump && CHAR_LINE_FEED === state.dump.charCodeAt(0)) {
7628
7960
  pairBuffer += ":";
7629
- else
7961
+ } else {
7630
7962
  pairBuffer += ": ";
7963
+ }
7631
7964
  pairBuffer += state.dump;
7632
7965
  _result += pairBuffer;
7633
7966
  }
@@ -7637,24 +7970,27 @@ var require_dumper = /* @__PURE__ */ __commonJSMin((exports, module) => {
7637
7970
  function detectType(state, object, explicit) {
7638
7971
  const typeList = explicit ? state.explicitTypes : state.implicitTypes;
7639
7972
  for (let index = 0, length = typeList.length;index < length; index += 1) {
7640
- const type = typeList[index];
7641
- if ((type.instanceOf || type.predicate) && (!type.instanceOf || typeof object === "object" && object instanceof type.instanceOf) && (!type.predicate || type.predicate(object))) {
7642
- if (explicit)
7643
- if (type.multi && type.representName)
7644
- state.tag = type.representName(object);
7645
- else
7646
- state.tag = type.tag;
7647
- else
7973
+ const type2 = typeList[index];
7974
+ if ((type2.instanceOf || type2.predicate) && (!type2.instanceOf || typeof object === "object" && object instanceof type2.instanceOf) && (!type2.predicate || type2.predicate(object))) {
7975
+ if (explicit) {
7976
+ if (type2.multi && type2.representName) {
7977
+ state.tag = type2.representName(object);
7978
+ } else {
7979
+ state.tag = type2.tag;
7980
+ }
7981
+ } else {
7648
7982
  state.tag = "?";
7649
- if (type.represent) {
7650
- const style = state.styleMap[type.tag] || type.defaultStyle;
7983
+ }
7984
+ if (type2.represent) {
7985
+ const style = state.styleMap[type2.tag] || type2.defaultStyle;
7651
7986
  let _result;
7652
- if (_toString.call(type.represent) === "[object Function]")
7653
- _result = type.represent(object, style);
7654
- else if (_hasOwnProperty.call(type.represent, style))
7655
- _result = type.represent[style](object, style);
7656
- else
7657
- throw new YAMLException("!<" + type.tag + '> tag resolver accepts not "' + style + '" style');
7987
+ if (_toString.call(type2.represent) === "[object Function]") {
7988
+ _result = type2.represent(object, style);
7989
+ } else if (_hasOwnProperty.call(type2.represent, style)) {
7990
+ _result = type2.represent[style](object, style);
7991
+ } else {
7992
+ throw new YAMLException2("!<" + type2.tag + '> tag resolver accepts not "' + style + '" style');
7993
+ }
7658
7994
  state.dump = _result;
7659
7995
  }
7660
7996
  return true;
@@ -7665,67 +8001,78 @@ var require_dumper = /* @__PURE__ */ __commonJSMin((exports, module) => {
7665
8001
  function writeNode(state, level, object, block, compact, iskey, isblockseq) {
7666
8002
  state.tag = null;
7667
8003
  state.dump = object;
7668
- if (!detectType(state, object, false))
8004
+ if (!detectType(state, object, false)) {
7669
8005
  detectType(state, object, true);
7670
- const type = _toString.call(state.dump);
8006
+ }
8007
+ const type2 = _toString.call(state.dump);
7671
8008
  const inblock = block;
7672
- if (block)
8009
+ if (block) {
7673
8010
  block = state.flowLevel < 0 || state.flowLevel > level;
7674
- const objectOrArray = type === "[object Object]" || type === "[object Array]";
8011
+ }
8012
+ const objectOrArray = type2 === "[object Object]" || type2 === "[object Array]";
7675
8013
  let duplicateIndex;
7676
8014
  let duplicate;
7677
8015
  if (objectOrArray) {
7678
8016
  duplicateIndex = state.duplicates.indexOf(object);
7679
8017
  duplicate = duplicateIndex !== -1;
7680
8018
  }
7681
- if (state.tag !== null && state.tag !== "?" || duplicate || state.indent !== 2 && level > 0)
8019
+ if (state.tag !== null && state.tag !== "?" || duplicate || state.indent !== 2 && level > 0) {
7682
8020
  compact = false;
7683
- if (duplicate && state.usedDuplicates[duplicateIndex])
8021
+ }
8022
+ if (duplicate && state.usedDuplicates[duplicateIndex]) {
7684
8023
  state.dump = "*ref_" + duplicateIndex;
7685
- else {
7686
- if (objectOrArray && duplicate && !state.usedDuplicates[duplicateIndex])
8024
+ } else {
8025
+ if (objectOrArray && duplicate && !state.usedDuplicates[duplicateIndex]) {
7687
8026
  state.usedDuplicates[duplicateIndex] = true;
7688
- if (type === "[object Object]")
8027
+ }
8028
+ if (type2 === "[object Object]") {
7689
8029
  if (block && Object.keys(state.dump).length !== 0) {
7690
8030
  writeBlockMapping(state, level, state.dump, compact);
7691
- if (duplicate)
8031
+ if (duplicate) {
7692
8032
  state.dump = "&ref_" + duplicateIndex + state.dump;
8033
+ }
7693
8034
  } else {
7694
8035
  writeFlowMapping(state, level, state.dump);
7695
- if (duplicate)
8036
+ if (duplicate) {
7696
8037
  state.dump = "&ref_" + duplicateIndex + " " + state.dump;
8038
+ }
7697
8039
  }
7698
- else if (type === "[object Array]")
8040
+ } else if (type2 === "[object Array]") {
7699
8041
  if (block && state.dump.length !== 0) {
7700
- if (state.noArrayIndent && !isblockseq && level > 0)
8042
+ if (state.noArrayIndent && !isblockseq && level > 0) {
7701
8043
  writeBlockSequence(state, level - 1, state.dump, compact);
7702
- else
8044
+ } else {
7703
8045
  writeBlockSequence(state, level, state.dump, compact);
7704
- if (duplicate)
8046
+ }
8047
+ if (duplicate) {
7705
8048
  state.dump = "&ref_" + duplicateIndex + state.dump;
8049
+ }
7706
8050
  } else {
7707
8051
  writeFlowSequence(state, level, state.dump);
7708
- if (duplicate)
8052
+ if (duplicate) {
7709
8053
  state.dump = "&ref_" + duplicateIndex + " " + state.dump;
8054
+ }
7710
8055
  }
7711
- else if (type === "[object String]") {
7712
- if (state.tag !== "?")
8056
+ } else if (type2 === "[object String]") {
8057
+ if (state.tag !== "?") {
7713
8058
  writeScalar(state, state.dump, level, iskey, inblock);
7714
- } else if (type === "[object Undefined]")
8059
+ }
8060
+ } else if (type2 === "[object Undefined]") {
7715
8061
  return false;
7716
- else {
8062
+ } else {
7717
8063
  if (state.skipInvalid)
7718
8064
  return false;
7719
- throw new YAMLException("unacceptable kind of an object to dump " + type);
8065
+ throw new YAMLException2("unacceptable kind of an object to dump " + type2);
7720
8066
  }
7721
8067
  if (state.tag !== null && state.tag !== "?") {
7722
8068
  let tagStr = encodeURI(state.tag[0] === "!" ? state.tag.slice(1) : state.tag).replace(/!/g, "%21");
7723
- if (state.tag[0] === "!")
8069
+ if (state.tag[0] === "!") {
7724
8070
  tagStr = "!" + tagStr;
7725
- else if (tagStr.slice(0, 18) === "tag:yaml.org,2002:")
8071
+ } else if (tagStr.slice(0, 18) === "tag:yaml.org,2002:") {
7726
8072
  tagStr = "!!" + tagStr.slice(18);
7727
- else
8073
+ } else {
7728
8074
  tagStr = "!<" + tagStr + ">";
8075
+ }
7729
8076
  state.dump = tagStr + " " + state.dump;
7730
8077
  }
7731
8078
  }
@@ -7736,83 +8083,110 @@ var require_dumper = /* @__PURE__ */ __commonJSMin((exports, module) => {
7736
8083
  const duplicatesIndexes = [];
7737
8084
  inspectNode(object, objects, duplicatesIndexes);
7738
8085
  const length = duplicatesIndexes.length;
7739
- for (let index = 0;index < length; index += 1)
8086
+ for (let index = 0;index < length; index += 1) {
7740
8087
  state.duplicates.push(objects[duplicatesIndexes[index]]);
8088
+ }
7741
8089
  state.usedDuplicates = new Array(length);
7742
8090
  }
7743
8091
  function inspectNode(object, objects, duplicatesIndexes) {
7744
8092
  if (object !== null && typeof object === "object") {
7745
8093
  const index = objects.indexOf(object);
7746
8094
  if (index !== -1) {
7747
- if (duplicatesIndexes.indexOf(index) === -1)
8095
+ if (duplicatesIndexes.indexOf(index) === -1) {
7748
8096
  duplicatesIndexes.push(index);
8097
+ }
7749
8098
  } else {
7750
8099
  objects.push(object);
7751
- if (Array.isArray(object))
7752
- for (let i = 0, length = object.length;i < length; i += 1)
8100
+ if (Array.isArray(object)) {
8101
+ for (let i = 0, length = object.length;i < length; i += 1) {
7753
8102
  inspectNode(object[i], objects, duplicatesIndexes);
7754
- else {
8103
+ }
8104
+ } else {
7755
8105
  const objectKeyList = Object.keys(object);
7756
- for (let i = 0, length = objectKeyList.length;i < length; i += 1)
8106
+ for (let i = 0, length = objectKeyList.length;i < length; i += 1) {
7757
8107
  inspectNode(object[objectKeyList[i]], objects, duplicatesIndexes);
8108
+ }
7758
8109
  }
7759
8110
  }
7760
8111
  }
7761
8112
  }
7762
- function dump(input, options) {
8113
+ function dump2(input, options) {
7763
8114
  options = options || {};
7764
8115
  const state = new State(options);
7765
8116
  if (!state.noRefs)
7766
8117
  getDuplicateReferences(input, state);
7767
8118
  let value = input;
7768
- if (state.replacer)
8119
+ if (state.replacer) {
7769
8120
  value = state.replacer.call({ "": value }, "", value);
8121
+ }
7770
8122
  if (writeNode(state, 0, value, true, true))
7771
8123
  return state.dump + `
7772
8124
  `;
7773
8125
  return "";
7774
8126
  }
7775
- module.exports.dump = dump;
7776
- });
7777
- var import_js_yaml = /* @__PURE__ */ __toESM2((/* @__PURE__ */ __commonJSMin((exports, module) => {
7778
- var loader = require_loader();
7779
- var dumper = require_dumper();
8127
+ dumper.dump = dump2;
8128
+ return dumper;
8129
+ }
8130
+ var hasRequiredJsYaml;
8131
+ function requireJsYaml() {
8132
+ if (hasRequiredJsYaml)
8133
+ return jsYaml;
8134
+ hasRequiredJsYaml = 1;
8135
+ const loader2 = requireLoader();
8136
+ const dumper2 = requireDumper();
7780
8137
  function renamed(from, to) {
7781
8138
  return function() {
7782
8139
  throw new Error("Function yaml." + from + " is removed in js-yaml 4. Use yaml." + to + " instead, which is now safe by default.");
7783
8140
  };
7784
8141
  }
7785
- module.exports.Type = require_type();
7786
- module.exports.Schema = require_schema();
7787
- module.exports.FAILSAFE_SCHEMA = require_failsafe();
7788
- module.exports.JSON_SCHEMA = require_json();
7789
- module.exports.CORE_SCHEMA = require_core();
7790
- module.exports.DEFAULT_SCHEMA = require_default();
7791
- module.exports.load = loader.load;
7792
- module.exports.loadAll = loader.loadAll;
7793
- module.exports.dump = dumper.dump;
7794
- module.exports.YAMLException = require_exception();
7795
- module.exports.types = {
7796
- binary: require_binary(),
7797
- float: require_float(),
7798
- map: require_map(),
8142
+ jsYaml.Type = requireType();
8143
+ jsYaml.Schema = requireSchema();
8144
+ jsYaml.FAILSAFE_SCHEMA = requireFailsafe();
8145
+ jsYaml.JSON_SCHEMA = requireJson();
8146
+ jsYaml.CORE_SCHEMA = requireCore();
8147
+ jsYaml.DEFAULT_SCHEMA = require_default();
8148
+ jsYaml.load = loader2.load;
8149
+ jsYaml.loadAll = loader2.loadAll;
8150
+ jsYaml.dump = dumper2.dump;
8151
+ jsYaml.YAMLException = requireException();
8152
+ jsYaml.types = {
8153
+ binary: requireBinary(),
8154
+ float: requireFloat(),
8155
+ map: requireMap(),
7799
8156
  null: require_null(),
7800
- pairs: require_pairs(),
7801
- set: require_set(),
7802
- timestamp: require_timestamp(),
7803
- bool: require_bool(),
7804
- int: require_int(),
7805
- merge: require_merge(),
7806
- omap: require_omap(),
7807
- seq: require_seq(),
7808
- str: require_str()
8157
+ pairs: requirePairs(),
8158
+ set: requireSet(),
8159
+ timestamp: requireTimestamp(),
8160
+ bool: requireBool(),
8161
+ int: requireInt(),
8162
+ merge: requireMerge(),
8163
+ omap: requireOmap(),
8164
+ seq: requireSeq(),
8165
+ str: requireStr()
7809
8166
  };
7810
- module.exports.safeLoad = renamed("safeLoad", "load");
7811
- module.exports.safeLoadAll = renamed("safeLoadAll", "loadAll");
7812
- module.exports.safeDump = renamed("safeDump", "dump");
7813
- }))(), 1);
7814
- var { Type, Schema, FAILSAFE_SCHEMA, JSON_SCHEMA, CORE_SCHEMA, DEFAULT_SCHEMA, load, loadAll, dump, YAMLException, types, safeLoad, safeLoadAll, safeDump } = import_js_yaml.default;
7815
- var index_vite_proxy_tmp_default = import_js_yaml.default;
8167
+ jsYaml.safeLoad = renamed("safeLoad", "load");
8168
+ jsYaml.safeLoadAll = renamed("safeLoadAll", "loadAll");
8169
+ jsYaml.safeDump = renamed("safeDump", "dump");
8170
+ return jsYaml;
8171
+ }
8172
+ var jsYamlExports = requireJsYaml();
8173
+ var yaml = /* @__PURE__ */ getDefaultExportFromCjs(jsYamlExports);
8174
+ var {
8175
+ Type,
8176
+ Schema,
8177
+ FAILSAFE_SCHEMA,
8178
+ JSON_SCHEMA,
8179
+ CORE_SCHEMA,
8180
+ DEFAULT_SCHEMA,
8181
+ load,
8182
+ loadAll,
8183
+ dump,
8184
+ YAMLException,
8185
+ types,
8186
+ safeLoad,
8187
+ safeLoadAll,
8188
+ safeDump
8189
+ } = yaml;
7816
8190
 
7817
8191
  // ../common/src/logger.ts
7818
8192
  var logFilePathSlot = singleton("logFilePath");
@@ -7888,11 +8262,11 @@ class SimpleLogger {
7888
8262
  const path3 = this.logFilePath || getGlobalLogFilePath();
7889
8263
  if (!path3)
7890
8264
  return;
7891
- const timestamp = new Date().toISOString();
8265
+ const timestamp2 = new Date().toISOString();
7892
8266
  this.pendingWrites = Promise.all([
7893
8267
  this.pendingWrites,
7894
8268
  this.pendingInit
7895
- ]).then(() => getFileSystem().appendFile(path3, `${timestamp} ${formatted}`).catch(() => {}));
8269
+ ]).then(() => getFileSystem().appendFile(path3, `${timestamp2} ${formatted}`).catch(() => {}));
7896
8270
  }
7897
8271
  debug(message, ...args) {
7898
8272
  if (this.level > 0 /* DEBUG */)
@@ -8008,6 +8382,7 @@ function getLogFilePath() {
8008
8382
  // ../common/src/output-format-context.ts
8009
8383
  var formatSlot = singleton("OutputFormat");
8010
8384
  var formatExplicitSlot = singleton("OutputFormatExplicit");
8385
+ var helpRequestedSlot = singleton("HelpRequested");
8011
8386
  var filterSlot = singleton("OutputFilter");
8012
8387
  function getOutputFormat() {
8013
8388
  return formatSlot.get("json");
@@ -8285,10 +8660,10 @@ class LoggerTelemetryProvider {
8285
8660
  success
8286
8661
  })));
8287
8662
  }
8288
- async trackDependency(name, type, duration, success, properties) {
8663
+ async trackDependency(name, type2, duration, success, properties) {
8289
8664
  logger.debug(formatMessage("Dependency", name, this.enrich({
8290
8665
  ...properties,
8291
- type,
8666
+ type: type2,
8292
8667
  duration: `${duration}ms`,
8293
8668
  success
8294
8669
  })));
@@ -8446,11 +8821,36 @@ class NodeContextStorage {
8446
8821
  return this.storage.getStore();
8447
8822
  }
8448
8823
  }
8824
+ // ../common/src/telemetry/trace-context.ts
8825
+ var TELEMETRY_TRACEPARENT_ENV = "TRACEPARENT";
8826
+ var TRACEPARENT_PATTERN = /^00-([0-9a-f]{32})-([0-9a-f]{16})-[0-9a-f]{2}$/;
8827
+ function getProcessEnv() {
8828
+ return globalThis.process?.env;
8829
+ }
8830
+ function parseInboundTraceparent(value) {
8831
+ if (!value) {
8832
+ return;
8833
+ }
8834
+ const match = TRACEPARENT_PATTERN.exec(value.trim().toLowerCase());
8835
+ if (!match) {
8836
+ return;
8837
+ }
8838
+ const [, traceId, parentSpanId] = match;
8839
+ if (/^0+$/.test(traceId) || /^0+$/.test(parentSpanId)) {
8840
+ return;
8841
+ }
8842
+ return { traceId, parentSpanId };
8843
+ }
8844
+ function getInboundTraceContext() {
8845
+ return parseInboundTraceparent(getProcessEnv()?.[TELEMETRY_TRACEPARENT_ENV]);
8846
+ }
8847
+
8449
8848
  // ../common/src/telemetry/session-id.ts
8450
8849
  var TELEMETRY_SESSION_ID_ENV = "UIPATH_SESSION_ID";
8451
8850
  var TELEMETRY_SESSION_ID_PROPERTY = "session_id";
8452
8851
  var telemetrySessionIdSlot = singleton("TelemetrySessionId");
8453
- function getProcessEnv() {
8852
+ var telemetryOperationIdSlot = singleton("TelemetryOperationId");
8853
+ function getProcessEnv2() {
8454
8854
  return globalThis.process?.env;
8455
8855
  }
8456
8856
  function normalizeSessionId(value) {
@@ -8461,18 +8861,165 @@ function normalizeSessionId(value) {
8461
8861
  return trimmed || undefined;
8462
8862
  }
8463
8863
  function getConfiguredTelemetrySessionId() {
8464
- return normalizeSessionId(getProcessEnv()?.[TELEMETRY_SESSION_ID_ENV]);
8864
+ return normalizeSessionId(getProcessEnv2()?.[TELEMETRY_SESSION_ID_ENV]);
8465
8865
  }
8466
8866
  function resolveTelemetrySessionId(existingSessionId) {
8467
8867
  return getConfiguredTelemetrySessionId() ?? normalizeSessionId(existingSessionId);
8468
8868
  }
8869
+ function getTelemetryOperationId() {
8870
+ const existing = telemetryOperationIdSlot.get();
8871
+ if (existing) {
8872
+ return existing;
8873
+ }
8874
+ const inboundTraceId = getInboundTraceContext()?.traceId;
8875
+ const generated = inboundTraceId ?? crypto.randomUUID().replaceAll("-", "");
8876
+ telemetryOperationIdSlot.set(generated);
8877
+ return generated;
8878
+ }
8469
8879
  // ../common/src/telemetry/global-telemetry-properties.ts
8470
8880
  var telemetryPropsSlot = singleton("TelemetryDefaultProps");
8471
8881
  function getGlobalTelemetryProperties() {
8472
8882
  return telemetryPropsSlot.get();
8473
8883
  }
8474
8884
 
8885
+ // ../common/src/telemetry/pii-redactor.ts
8886
+ var REDACTED = "[REDACTED]";
8887
+ var MAX_VALUE_LENGTH = 200;
8888
+ var SENSITIVE_NAME_TOKENS = new Set([
8889
+ "token",
8890
+ "tokens",
8891
+ "secret",
8892
+ "secrets",
8893
+ "password",
8894
+ "passwords",
8895
+ "pwd",
8896
+ "credential",
8897
+ "credentials",
8898
+ "auth",
8899
+ "authentication",
8900
+ "authorization",
8901
+ "authority",
8902
+ "cert",
8903
+ "certificate",
8904
+ "certificates"
8905
+ ]);
8906
+ var SENSITIVE_KEY_PREFIXES = new Set([
8907
+ "api",
8908
+ "access",
8909
+ "client",
8910
+ "private",
8911
+ "public",
8912
+ "signing",
8913
+ "encryption",
8914
+ "session",
8915
+ "master",
8916
+ "shared",
8917
+ "root",
8918
+ "ssh",
8919
+ "rsa",
8920
+ "aes",
8921
+ "hmac",
8922
+ "oauth"
8923
+ ]);
8924
+ 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;
8925
+ var EMAIL_PATTERN = /\b[^\s@]+@[A-Za-z0-9.-]+\.[A-Za-z]{2,}\b/g;
8926
+ var JWT_PATTERN = /\beyJ[A-Za-z0-9_-]{10,}\.[A-Za-z0-9_-]+\.[A-Za-z0-9_-]+/g;
8927
+ var LONG_TOKEN_PATTERN = /\b[A-Za-z0-9_-]{40,}\b/g;
8928
+ var USER_HOME_PATTERN = /([/\\])(Users|home)([/\\])([^/\\]+)/gi;
8929
+ var URL_PATTERN = /\bhttps?:\/\/[^\s,;]+/gi;
8930
+ var URL_TRAILING_PUNCT = /[.,;:!?)\]}>'"]+$/;
8931
+ function shortHash(input) {
8932
+ let hash = 2166136261;
8933
+ for (let i = 0;i < input.length; i++) {
8934
+ hash ^= input.charCodeAt(i);
8935
+ hash = Math.imul(hash, 16777619);
8936
+ }
8937
+ return (hash >>> 0).toString(16).padStart(8, "0");
8938
+ }
8939
+ function redactUrl(raw) {
8940
+ try {
8941
+ const url = new URL(raw);
8942
+ return `${url.protocol}//${url.host}`;
8943
+ } catch {
8944
+ return `url#${shortHash(raw)}`;
8945
+ }
8946
+ }
8947
+ function redactValueDetectors(value) {
8948
+ let out = value;
8949
+ out = out.replace(JWT_PATTERN, () => REDACTED);
8950
+ out = out.replace(URL_PATTERN, (match) => {
8951
+ const trailing = match.match(URL_TRAILING_PUNCT)?.[0] ?? "";
8952
+ const core2 = trailing ? match.slice(0, -trailing.length) : match;
8953
+ return `${redactUrl(core2)}${trailing}`;
8954
+ });
8955
+ out = out.replace(USER_HOME_PATTERN, (_match, sep1, folder, sep2) => `${sep1}${folder}${sep2}<user>`);
8956
+ out = out.replace(EMAIL_PATTERN, (match) => `email#${shortHash(match)}`);
8957
+ out = out.replace(UUID_PATTERN, (match) => `uuid#${shortHash(match)}`);
8958
+ out = out.replace(LONG_TOKEN_PATTERN, () => REDACTED);
8959
+ if (out.length > MAX_VALUE_LENGTH) {
8960
+ out = `${out.slice(0, MAX_VALUE_LENGTH)}…`;
8961
+ }
8962
+ return out;
8963
+ }
8964
+ function redactValue(value) {
8965
+ return redactValueDetectors(value);
8966
+ }
8967
+ function redactError(error) {
8968
+ const safe = new Error(redactValueDetectors(error.message ?? ""));
8969
+ safe.name = error.name;
8970
+ safe.stack = typeof error.stack === "string" ? redactValueDetectors(error.stack) : undefined;
8971
+ return safe;
8972
+ }
8973
+ function nameTokens(name) {
8974
+ 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);
8975
+ }
8976
+ function isSensitiveName(name) {
8977
+ const tokens = nameTokens(name);
8978
+ for (let i = 0;i < tokens.length; i++) {
8979
+ const token = tokens[i];
8980
+ if (SENSITIVE_NAME_TOKENS.has(token)) {
8981
+ return true;
8982
+ }
8983
+ if (token === "key" || token === "keys") {
8984
+ const prev = tokens[i - 1];
8985
+ if (prev && SENSITIVE_KEY_PREFIXES.has(prev)) {
8986
+ return true;
8987
+ }
8988
+ }
8989
+ }
8990
+ return false;
8991
+ }
8992
+ function redactProperty(name, value) {
8993
+ if (value === undefined || value === null) {
8994
+ return;
8995
+ }
8996
+ if (isSensitiveName(name)) {
8997
+ return REDACTED;
8998
+ }
8999
+ if (typeof value === "boolean" || typeof value === "number") {
9000
+ return value;
9001
+ }
9002
+ if (typeof value !== "string") {
9003
+ return "[OBJECT]";
9004
+ }
9005
+ return redactValueDetectors(value);
9006
+ }
9007
+ function redactProperties(properties) {
9008
+ const out = {};
9009
+ for (const [name, value] of Object.entries(properties)) {
9010
+ const redacted = redactProperty(name, value);
9011
+ if (redacted !== undefined) {
9012
+ out[name] = redacted;
9013
+ }
9014
+ }
9015
+ return out;
9016
+ }
9017
+
8475
9018
  // ../common/src/telemetry/telemetry-service.ts
9019
+ var TELEMETRY_OPERATION_ID_PROPERTY = "uip.trace.operation_id";
9020
+ var TELEMETRY_PARENT_ID_PROPERTY = "uip.trace.parent_id";
9021
+ var TELEMETRY_SPAN_ID_PROPERTY = "uip.trace.span_id";
9022
+
8476
9023
  class TelemetryService {
8477
9024
  telemetryProvider;
8478
9025
  contextStorage;
@@ -8499,11 +9046,15 @@ class TelemetryService {
8499
9046
  trackException(error, properties) {
8500
9047
  const context = this.getCurrentContext();
8501
9048
  const enrichedProperties = this.enrichPropertiesWithContext(properties, context);
8502
- this.telemetryProvider.trackException(error, enrichedProperties);
9049
+ this.telemetryProvider.trackException(redactError(error), enrichedProperties);
8503
9050
  }
8504
9051
  async trackRequest(name, fn, properties) {
9052
+ const parentContext = this.getCurrentContext();
9053
+ const operationId = parentContext?.operationId ?? this.operationId ?? getTelemetryOperationId();
9054
+ const parentId = parentContext ? parentContext.id : this.inboundParentIdFor(operationId);
8505
9055
  const context = {
8506
- operationId: this.operationId ?? this.generateId(),
9056
+ operationId,
9057
+ ...parentId !== undefined ? { parentId } : {},
8507
9058
  id: this.generateId()
8508
9059
  };
8509
9060
  const startTime = performance.now();
@@ -8521,7 +9072,46 @@ class TelemetryService {
8521
9072
  throw error;
8522
9073
  }
8523
9074
  }
8524
- async trackDependencyOperation(name, type, fn, properties) {
9075
+ trackRequestResult(name, durationMs, success, properties, context) {
9076
+ const requestContext = context ?? {
9077
+ operationId: this.operationId ?? getTelemetryOperationId(),
9078
+ id: this.generateId()
9079
+ };
9080
+ const enrichedProperties = this.enrichPropertiesWithContext(properties, requestContext);
9081
+ this.telemetryProvider.trackRequest(name, durationMs, success, enrichedProperties);
9082
+ }
9083
+ createRequestContext() {
9084
+ const operationId = this.operationId ?? getTelemetryOperationId();
9085
+ const parentId = this.inboundParentIdFor(operationId);
9086
+ return {
9087
+ operationId,
9088
+ ...parentId !== undefined ? { parentId } : {},
9089
+ id: this.generateId()
9090
+ };
9091
+ }
9092
+ inboundParentIdFor(operationId) {
9093
+ const inbound = getInboundTraceContext();
9094
+ return inbound && inbound.traceId === operationId ? inbound.parentSpanId : undefined;
9095
+ }
9096
+ runWithContext(context, fn) {
9097
+ return this.contextStorage.run(context, fn);
9098
+ }
9099
+ createDependencyContext() {
9100
+ const parentContext = this.getCurrentContext();
9101
+ if (!parentContext) {
9102
+ return;
9103
+ }
9104
+ return {
9105
+ operationId: parentContext.operationId,
9106
+ parentId: parentContext.id,
9107
+ id: this.generateId()
9108
+ };
9109
+ }
9110
+ trackDependencyResult(name, type2, durationMs, success, properties, context, resultCode) {
9111
+ const enrichedProperties = this.enrichPropertiesWithContext(properties, context);
9112
+ this.telemetryProvider.trackDependency(redactValue(name), type2, durationMs, success, enrichedProperties, resultCode);
9113
+ }
9114
+ async trackDependencyOperation(name, type2, fn, properties) {
8525
9115
  const parentContext = this.getCurrentContext();
8526
9116
  if (!parentContext) {
8527
9117
  throw new Error("trackDependencyOperation must be called within a trackRequest block.");
@@ -8536,13 +9126,13 @@ class TelemetryService {
8536
9126
  const result = await this.contextStorage.run(childContext, fn);
8537
9127
  const durationMs = performance.now() - startTime;
8538
9128
  const enrichedProperties = this.enrichPropertiesWithContext(properties, childContext);
8539
- await this.telemetryProvider.trackDependency(name, type, durationMs, true, enrichedProperties);
9129
+ await this.telemetryProvider.trackDependency(name, type2, durationMs, true, enrichedProperties);
8540
9130
  return result;
8541
9131
  } catch (error) {
8542
9132
  const durationMs = performance.now() - startTime;
8543
9133
  const err = error instanceof Error ? error : new Error(String(error));
8544
9134
  const enrichedProperties = this.enrichPropertiesWithContext({ ...properties, errorMessage: err.message }, childContext);
8545
- await this.telemetryProvider.trackDependency(name, type, durationMs, false, enrichedProperties);
9135
+ await this.telemetryProvider.trackDependency(name, type2, durationMs, false, enrichedProperties);
8546
9136
  throw error;
8547
9137
  }
8548
9138
  }
@@ -8557,8 +9147,12 @@ class TelemetryService {
8557
9147
  ...getExecutionContextTelemetryProperties(),
8558
9148
  ...globalProperties,
8559
9149
  ...this.defaultProperties,
8560
- ...properties,
8561
- ...context
9150
+ ...redactProperties(properties ?? {}),
9151
+ ...context ? {
9152
+ [TELEMETRY_OPERATION_ID_PROPERTY]: context.operationId,
9153
+ ...context.parentId !== undefined ? { [TELEMETRY_PARENT_ID_PROPERTY]: context.parentId } : {},
9154
+ [TELEMETRY_SPAN_ID_PROPERTY]: context.id
9155
+ } : {}
8562
9156
  };
8563
9157
  if (sessionId === undefined) {
8564
9158
  delete enriched[TELEMETRY_SESSION_ID_PROPERTY];
@@ -8568,7 +9162,16 @@ class TelemetryService {
8568
9162
  return enriched;
8569
9163
  }
8570
9164
  generateId() {
8571
- return crypto.randomUUID().replaceAll("-", "");
9165
+ const bytes = new Uint8Array(8);
9166
+ let hex = "";
9167
+ do {
9168
+ crypto.getRandomValues(bytes);
9169
+ hex = "";
9170
+ for (const byte of bytes) {
9171
+ hex += byte.toString(16).padStart(2, "0");
9172
+ }
9173
+ } while (/^0+$/.test(hex));
9174
+ return hex;
8572
9175
  }
8573
9176
  }
8574
9177
  // ../common/src/telemetry/node-appinsights-telemetry-provider.ts
@@ -8749,8 +9352,8 @@ function printOutput(data, format = "json", logFn, asciiSafe = false) {
8749
9352
  }
8750
9353
  switch (format) {
8751
9354
  case "json": {
8752
- const json = JSON.stringify(data, null, 2);
8753
- logFn(asciiSafe ? escapeNonAscii(json) : json);
9355
+ const json2 = JSON.stringify(data, null, 2);
9356
+ logFn(asciiSafe ? escapeNonAscii(json2) : json2);
8754
9357
  break;
8755
9358
  }
8756
9359
  case "yaml":
@@ -9075,6 +9678,9 @@ var OutputFormatter;
9075
9678
  if (opts?.warning) {
9076
9679
  data.Warning = opts.warning;
9077
9680
  }
9681
+ if (opts?.pagination) {
9682
+ data.Pagination = opts.pagination;
9683
+ }
9078
9684
  success(data);
9079
9685
  }
9080
9686
  OutputFormatter.emitList = emitList;
@@ -9083,8 +9689,8 @@ var OutputFormatter;
9083
9689
  const sink = getOutputSink();
9084
9690
  const normalized = toPascalCaseData(data);
9085
9691
  if (format === "json") {
9086
- const json = JSON.stringify(normalized);
9087
- const safe = needsAsciiSafeJson(sink) ? escapeNonAscii(json) : json;
9692
+ const json2 = JSON.stringify(normalized);
9693
+ const safe = needsAsciiSafeJson(sink) ? escapeNonAscii(json2) : json2;
9088
9694
  sink.writeErr(`${safe}
9089
9695
  `);
9090
9696
  } else {
@@ -9267,152 +9873,25 @@ function buildCommandTelemetryAttribution(commandPath, skillSource) {
9267
9873
  };
9268
9874
  }
9269
9875
 
9270
- // ../common/src/telemetry/pii-redactor.ts
9271
- var REDACTED = "[REDACTED]";
9272
- var MAX_VALUE_LENGTH = 200;
9273
- var SENSITIVE_NAME_TOKENS = new Set([
9274
- "token",
9275
- "tokens",
9276
- "secret",
9277
- "secrets",
9278
- "password",
9279
- "passwords",
9280
- "pwd",
9281
- "credential",
9282
- "credentials",
9283
- "auth",
9284
- "authentication",
9285
- "authorization",
9286
- "authority",
9287
- "cert",
9288
- "certificate",
9289
- "certificates"
9290
- ]);
9291
- var SENSITIVE_KEY_PREFIXES = new Set([
9292
- "api",
9293
- "access",
9294
- "client",
9295
- "private",
9296
- "public",
9297
- "signing",
9298
- "encryption",
9299
- "session",
9300
- "master",
9301
- "shared",
9302
- "root",
9303
- "ssh",
9304
- "rsa",
9305
- "aes",
9306
- "hmac",
9307
- "oauth"
9308
- ]);
9309
- 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;
9310
- var EMAIL_PATTERN = /\b[^\s@]+@[A-Za-z0-9.-]+\.[A-Za-z]{2,}\b/g;
9311
- var JWT_PATTERN = /\beyJ[A-Za-z0-9_-]{10,}\.[A-Za-z0-9_-]+\.[A-Za-z0-9_-]+/g;
9312
- var LONG_TOKEN_PATTERN = /\b[A-Za-z0-9_-]{40,}\b/g;
9313
- var USER_HOME_PATTERN = /([/\\])(Users|home)([/\\])([^/\\]+)/gi;
9314
- var URL_PATTERN = /\bhttps?:\/\/[^\s,;]+/gi;
9315
- var URL_TRAILING_PUNCT = /[.,;:!?)\]}>'"]+$/;
9316
- function shortHash(input) {
9317
- let hash = 2166136261;
9318
- for (let i = 0;i < input.length; i++) {
9319
- hash ^= input.charCodeAt(i);
9320
- hash = Math.imul(hash, 16777619);
9321
- }
9322
- return (hash >>> 0).toString(16).padStart(8, "0");
9323
- }
9324
- function redactUrl(raw) {
9325
- try {
9326
- const url = new URL(raw);
9327
- return `${url.protocol}//${url.host}`;
9328
- } catch {
9329
- return `url#${shortHash(raw)}`;
9330
- }
9331
- }
9332
- function redactValueDetectors(value) {
9333
- let out = value;
9334
- out = out.replace(JWT_PATTERN, () => REDACTED);
9335
- out = out.replace(URL_PATTERN, (match) => {
9336
- const trailing = match.match(URL_TRAILING_PUNCT)?.[0] ?? "";
9337
- const core = trailing ? match.slice(0, -trailing.length) : match;
9338
- return `${redactUrl(core)}${trailing}`;
9339
- });
9340
- out = out.replace(USER_HOME_PATTERN, (_match, sep1, folder, sep2) => `${sep1}${folder}${sep2}<user>`);
9341
- out = out.replace(EMAIL_PATTERN, (match) => `email#${shortHash(match)}`);
9342
- out = out.replace(UUID_PATTERN, (match) => `uuid#${shortHash(match)}`);
9343
- out = out.replace(LONG_TOKEN_PATTERN, () => REDACTED);
9344
- if (out.length > MAX_VALUE_LENGTH) {
9345
- out = `${out.slice(0, MAX_VALUE_LENGTH)}…`;
9346
- }
9347
- return out;
9348
- }
9349
- function nameTokens(name) {
9350
- 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);
9351
- }
9352
- function isSensitiveName(name) {
9353
- const tokens = nameTokens(name);
9354
- for (let i = 0;i < tokens.length; i++) {
9355
- const token = tokens[i];
9356
- if (SENSITIVE_NAME_TOKENS.has(token)) {
9357
- return true;
9358
- }
9359
- if (token === "key" || token === "keys") {
9360
- const prev = tokens[i - 1];
9361
- if (prev && SENSITIVE_KEY_PREFIXES.has(prev)) {
9362
- return true;
9363
- }
9364
- }
9365
- }
9366
- return false;
9367
- }
9368
- function redactProperty(name, value) {
9369
- if (value === undefined || value === null) {
9370
- return;
9371
- }
9372
- if (isSensitiveName(name)) {
9373
- return REDACTED;
9374
- }
9375
- if (typeof value === "boolean" || typeof value === "number") {
9376
- return value;
9377
- }
9378
- if (typeof value !== "string") {
9379
- return "[OBJECT]";
9380
- }
9381
- return redactValueDetectors(value);
9382
- }
9383
- function redactProperties(properties) {
9384
- const out = {};
9385
- for (const [name, value] of Object.entries(properties)) {
9386
- const redacted = redactProperty(name, value);
9387
- if (redacted !== undefined) {
9388
- out[name] = redacted;
9389
- }
9390
- }
9391
- return out;
9392
- }
9393
-
9394
9876
  // ../common/src/trackedAction.ts
9395
9877
  var pollSignalSlot = singleton("PollSignal");
9396
9878
  var cliErrorCodeValues = new Set(CLI_ERROR_CODES);
9397
9879
  var retryHintValues = new Set(RETRY_HINTS);
9880
+ var TELEMETRY_COMMAND_ARG_PREFIX = "uip.cmd.arg.";
9398
9881
  function extractCommandParams(cmd) {
9399
9882
  const params = {};
9883
+ const add2 = (name, value) => {
9884
+ if (name && value !== undefined) {
9885
+ params[`${TELEMETRY_COMMAND_ARG_PREFIX}${name}`] = value;
9886
+ }
9887
+ };
9400
9888
  const registered = cmd.registeredArguments ?? [];
9401
9889
  const processed = cmd.processedArgs ?? [];
9402
9890
  for (let i = 0;i < registered.length; i++) {
9403
- const value = processed[i];
9404
- if (value === undefined) {
9405
- continue;
9406
- }
9407
- const name = registered[i].name();
9408
- if (name) {
9409
- params[name] = value;
9410
- }
9891
+ add2(registered[i].name(), processed[i]);
9411
9892
  }
9412
9893
  for (const [key, value] of Object.entries(cmd.opts())) {
9413
- if (value !== undefined) {
9414
- params[key] = value;
9415
- }
9894
+ add2(key, value);
9416
9895
  }
9417
9896
  return params;
9418
9897
  }
@@ -9455,11 +9934,12 @@ Command.prototype.trackedAction = function(context, fn, properties) {
9455
9934
  return this.action(async (...args) => {
9456
9935
  const telemetryName = deriveCommandPath(command);
9457
9936
  const props = typeof properties === "function" ? properties(...args) : properties;
9937
+ const requestContext = telemetry.createRequestContext();
9458
9938
  const startTime = performance.now();
9459
9939
  let errorMessage;
9460
9940
  let fallbackExitCode = EXIT_CODES.Success;
9461
9941
  clearRecordedCommandFailureTelemetry();
9462
- const [error] = await catchError(fn(...args));
9942
+ const [error] = await catchError(telemetry.runWithContext(requestContext, () => fn(...args)));
9463
9943
  if (error) {
9464
9944
  errorMessage = error instanceof Error ? error.message : String(error);
9465
9945
  logger.debug(`[trackedAction] ${telemetryName} failed: ${errorMessage}`);
@@ -9495,16 +9975,21 @@ Command.prototype.trackedAction = function(context, fn, properties) {
9495
9975
  recordedFailure,
9496
9976
  pollSignal: context.pollSignal
9497
9977
  });
9498
- telemetry.trackEvent(telemetryName, redactProperties({
9499
- ...extractCommandParams(command),
9978
+ const commandParams = extractCommandParams(command);
9979
+ if (props) {
9980
+ for (const key of Object.keys(props)) {
9981
+ delete commandParams[`${TELEMETRY_COMMAND_ARG_PREFIX}${key}`];
9982
+ }
9983
+ }
9984
+ const baseProperties = redactProperties({
9985
+ ...commandParams,
9500
9986
  ...props,
9501
9987
  ...buildCommandTelemetryAttribution(telemetryName, process.env.UIPATH_SKILL),
9502
9988
  command: "true",
9503
- duration: String(durationMs),
9504
- success: String(success),
9505
9989
  ...terminalTelemetry,
9506
9990
  ...errorMessage ? { errorMessage } : {}
9507
- }));
9991
+ });
9992
+ telemetry.trackRequestResult(telemetryName, durationMs, success, baseProperties, requestContext);
9508
9993
  });
9509
9994
  };
9510
9995
  // ../common/src/console-guard.ts
@@ -9514,6 +9999,7 @@ var savedOriginalsSlot = singleton("ConsoleGuardOriginals");
9514
9999
  var DEFAULT_AUTH_TIMEOUT_MS = 5 * 60 * 1000;
9515
10000
  // ../common/src/interactivity-context.ts
9516
10001
  var modeSlot = singleton("InteractivityMode");
10002
+ var interactiveFlagSlot = singleton("InteractiveFlag");
9517
10003
  // ../common/src/polling/types.ts
9518
10004
  var PollOutcome = {
9519
10005
  Completed: "completed",
@@ -9638,4 +10124,4 @@ export {
9638
10124
  SolutionInitError
9639
10125
  };
9640
10126
 
9641
- //# debugId=5002F814CEA5C34E64756E2164756E21
10127
+ //# debugId=B4DE82653D2B978664756E2164756E21