@uipath/common 1.198.0-preview.85 → 1.198.0-preview.86

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/dist/index.js +1083 -709
  2. package/package.json +2 -2
package/dist/index.js CHANGED
@@ -5528,31 +5528,17 @@ function search(data, expression, options) {
5528
5528
  }
5529
5529
 
5530
5530
  // ../../node_modules/js-yaml/dist/js-yaml.mjs
5531
- /*! js-yaml 4.2.0 https://github.com/nodeca/js-yaml @license MIT */
5532
- var __create2 = Object.create;
5533
- var __defProp2 = Object.defineProperty;
5534
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5535
- var __getOwnPropNames2 = Object.getOwnPropertyNames;
5536
- var __getProtoOf2 = Object.getPrototypeOf;
5537
- var __hasOwnProp2 = Object.prototype.hasOwnProperty;
5538
- var __commonJSMin = (cb, mod2) => () => (mod2 || (cb((mod2 = { exports: {} }).exports, mod2), cb = null), mod2.exports);
5539
- var __copyProps = (to, from, except, desc) => {
5540
- if (from && typeof from === "object" || typeof from === "function")
5541
- for (var keys = __getOwnPropNames2(from), i = 0, n = keys.length, key;i < n; i++) {
5542
- key = keys[i];
5543
- if (!__hasOwnProp2.call(to, key) && key !== except)
5544
- __defProp2(to, key, {
5545
- get: ((k) => from[k]).bind(null, key),
5546
- enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
5547
- });
5548
- }
5549
- return to;
5550
- };
5551
- var __toESM2 = (mod2, isNodeMode, target) => (target = mod2 != null ? __create2(__getProtoOf2(mod2)) : {}, __copyProps(isNodeMode || !mod2 || !mod2.__esModule ? __defProp2(target, "default", {
5552
- value: mod2,
5553
- enumerable: true
5554
- }) : target, mod2));
5555
- var require_common = /* @__PURE__ */ __commonJSMin((exports, module) => {
5531
+ function getDefaultExportFromCjs(x) {
5532
+ return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, "default") ? x["default"] : x;
5533
+ }
5534
+ var jsYaml = {};
5535
+ var loader = {};
5536
+ var common = {};
5537
+ var hasRequiredCommon;
5538
+ function requireCommon() {
5539
+ if (hasRequiredCommon)
5540
+ return common;
5541
+ hasRequiredCommon = 1;
5556
5542
  function isNothing(subject) {
5557
5543
  return typeof subject === "undefined" || subject === null;
5558
5544
  }
@@ -5578,55 +5564,71 @@ var require_common = /* @__PURE__ */ __commonJSMin((exports, module) => {
5578
5564
  }
5579
5565
  function repeat(string, count) {
5580
5566
  let result = "";
5581
- for (let cycle = 0;cycle < count; cycle += 1)
5567
+ for (let cycle = 0;cycle < count; cycle += 1) {
5582
5568
  result += string;
5569
+ }
5583
5570
  return result;
5584
5571
  }
5585
5572
  function isNegativeZero(number) {
5586
5573
  return number === 0 && Number.NEGATIVE_INFINITY === 1 / number;
5587
5574
  }
5588
- module.exports.isNothing = isNothing;
5589
- module.exports.isObject = isObject2;
5590
- module.exports.toArray = toArray;
5591
- module.exports.repeat = repeat;
5592
- module.exports.isNegativeZero = isNegativeZero;
5593
- module.exports.extend = extend;
5594
- });
5595
- var require_exception = /* @__PURE__ */ __commonJSMin((exports, module) => {
5596
- function formatError(exception, compact) {
5575
+ common.isNothing = isNothing;
5576
+ common.isObject = isObject2;
5577
+ common.toArray = toArray;
5578
+ common.repeat = repeat;
5579
+ common.isNegativeZero = isNegativeZero;
5580
+ common.extend = extend;
5581
+ return common;
5582
+ }
5583
+ var exception;
5584
+ var hasRequiredException;
5585
+ function requireException() {
5586
+ if (hasRequiredException)
5587
+ return exception;
5588
+ hasRequiredException = 1;
5589
+ function formatError(exception2, compact) {
5597
5590
  let where = "";
5598
- const message = exception.reason || "(unknown reason)";
5599
- if (!exception.mark)
5591
+ const message = exception2.reason || "(unknown reason)";
5592
+ if (!exception2.mark)
5600
5593
  return message;
5601
- if (exception.mark.name)
5602
- where += 'in "' + exception.mark.name + '" ';
5603
- where += "(" + (exception.mark.line + 1) + ":" + (exception.mark.column + 1) + ")";
5604
- if (!compact && exception.mark.snippet)
5594
+ if (exception2.mark.name) {
5595
+ where += 'in "' + exception2.mark.name + '" ';
5596
+ }
5597
+ where += "(" + (exception2.mark.line + 1) + ":" + (exception2.mark.column + 1) + ")";
5598
+ if (!compact && exception2.mark.snippet) {
5605
5599
  where += `
5606
5600
 
5607
- ` + exception.mark.snippet;
5601
+ ` + exception2.mark.snippet;
5602
+ }
5608
5603
  return message + " " + where;
5609
5604
  }
5610
- function YAMLException(reason, mark) {
5605
+ function YAMLException2(reason, mark) {
5611
5606
  Error.call(this);
5612
5607
  this.name = "YAMLException";
5613
5608
  this.reason = reason;
5614
5609
  this.mark = mark;
5615
5610
  this.message = formatError(this, false);
5616
- if (Error.captureStackTrace)
5611
+ if (Error.captureStackTrace) {
5617
5612
  Error.captureStackTrace(this, this.constructor);
5618
- else
5619
- this.stack = (/* @__PURE__ */ new Error()).stack || "";
5613
+ } else {
5614
+ this.stack = new Error().stack || "";
5615
+ }
5620
5616
  }
5621
- YAMLException.prototype = Object.create(Error.prototype);
5622
- YAMLException.prototype.constructor = YAMLException;
5623
- YAMLException.prototype.toString = function toString(compact) {
5617
+ YAMLException2.prototype = Object.create(Error.prototype);
5618
+ YAMLException2.prototype.constructor = YAMLException2;
5619
+ YAMLException2.prototype.toString = function toString(compact) {
5624
5620
  return this.name + ": " + formatError(this, compact);
5625
5621
  };
5626
- module.exports = YAMLException;
5627
- });
5628
- var require_snippet = /* @__PURE__ */ __commonJSMin((exports, module) => {
5629
- var common = require_common();
5622
+ exception = YAMLException2;
5623
+ return exception;
5624
+ }
5625
+ var snippet;
5626
+ var hasRequiredSnippet;
5627
+ function requireSnippet() {
5628
+ if (hasRequiredSnippet)
5629
+ return snippet;
5630
+ hasRequiredSnippet = 1;
5631
+ const common2 = requireCommon();
5630
5632
  function getLine(buffer, lineStart, lineEnd, position, maxLineLength) {
5631
5633
  let head = "";
5632
5634
  let tail = "";
@@ -5645,7 +5647,7 @@ var require_snippet = /* @__PURE__ */ __commonJSMin((exports, module) => {
5645
5647
  };
5646
5648
  }
5647
5649
  function padStart(string, max) {
5648
- return common.repeat(" ", max - string.length) + string;
5650
+ return common2.repeat(" ", max - string.length) + string;
5649
5651
  }
5650
5652
  function makeSnippet(mark, options) {
5651
5653
  options = Object.create(options || null);
@@ -5667,8 +5669,9 @@ var require_snippet = /* @__PURE__ */ __commonJSMin((exports, module) => {
5667
5669
  while (match = re.exec(mark.buffer)) {
5668
5670
  lineEnds.push(match.index);
5669
5671
  lineStarts.push(match.index + match[0].length);
5670
- if (mark.position <= match.index && foundLineNo < 0)
5672
+ if (mark.position <= match.index && foundLineNo < 0) {
5671
5673
  foundLineNo = lineStarts.length - 2;
5674
+ }
5672
5675
  }
5673
5676
  if (foundLineNo < 0)
5674
5677
  foundLineNo = lineStarts.length - 1;
@@ -5679,28 +5682,34 @@ var require_snippet = /* @__PURE__ */ __commonJSMin((exports, module) => {
5679
5682
  if (foundLineNo - i < 0)
5680
5683
  break;
5681
5684
  const line2 = getLine(mark.buffer, lineStarts[foundLineNo - i], lineEnds[foundLineNo - i], mark.position - (lineStarts[foundLineNo] - lineStarts[foundLineNo - i]), maxLineLength);
5682
- result = common.repeat(" ", options.indent) + padStart((mark.line - i + 1).toString(), lineNoLength) + " | " + line2.str + `
5685
+ result = common2.repeat(" ", options.indent) + padStart((mark.line - i + 1).toString(), lineNoLength) + " | " + line2.str + `
5683
5686
  ` + result;
5684
5687
  }
5685
5688
  const line = getLine(mark.buffer, lineStarts[foundLineNo], lineEnds[foundLineNo], mark.position, maxLineLength);
5686
- result += common.repeat(" ", options.indent) + padStart((mark.line + 1).toString(), lineNoLength) + " | " + line.str + `
5689
+ result += common2.repeat(" ", options.indent) + padStart((mark.line + 1).toString(), lineNoLength) + " | " + line.str + `
5687
5690
  `;
5688
- result += common.repeat("-", options.indent + lineNoLength + 3 + line.pos) + `^
5691
+ result += common2.repeat("-", options.indent + lineNoLength + 3 + line.pos) + `^
5689
5692
  `;
5690
5693
  for (let i = 1;i <= options.linesAfter; i++) {
5691
5694
  if (foundLineNo + i >= lineEnds.length)
5692
5695
  break;
5693
5696
  const line2 = getLine(mark.buffer, lineStarts[foundLineNo + i], lineEnds[foundLineNo + i], mark.position - (lineStarts[foundLineNo] - lineStarts[foundLineNo + i]), maxLineLength);
5694
- result += common.repeat(" ", options.indent) + padStart((mark.line + i + 1).toString(), lineNoLength) + " | " + line2.str + `
5697
+ result += common2.repeat(" ", options.indent) + padStart((mark.line + i + 1).toString(), lineNoLength) + " | " + line2.str + `
5695
5698
  `;
5696
5699
  }
5697
5700
  return result.replace(/\n$/, "");
5698
5701
  }
5699
- module.exports = makeSnippet;
5700
- });
5701
- var require_type = /* @__PURE__ */ __commonJSMin((exports, module) => {
5702
- var YAMLException = require_exception();
5703
- var TYPE_CONSTRUCTOR_OPTIONS = [
5702
+ snippet = makeSnippet;
5703
+ return snippet;
5704
+ }
5705
+ var type;
5706
+ var hasRequiredType;
5707
+ function requireType() {
5708
+ if (hasRequiredType)
5709
+ return type;
5710
+ hasRequiredType = 1;
5711
+ const YAMLException2 = requireException();
5712
+ const TYPE_CONSTRUCTOR_OPTIONS = [
5704
5713
  "kind",
5705
5714
  "multi",
5706
5715
  "resolve",
@@ -5712,26 +5721,28 @@ var require_type = /* @__PURE__ */ __commonJSMin((exports, module) => {
5712
5721
  "defaultStyle",
5713
5722
  "styleAliases"
5714
5723
  ];
5715
- var YAML_NODE_KINDS = [
5724
+ const YAML_NODE_KINDS = [
5716
5725
  "scalar",
5717
5726
  "sequence",
5718
5727
  "mapping"
5719
5728
  ];
5720
- function compileStyleAliases(map) {
5729
+ function compileStyleAliases(map2) {
5721
5730
  const result = {};
5722
- if (map !== null)
5723
- Object.keys(map).forEach(function(style) {
5724
- map[style].forEach(function(alias) {
5731
+ if (map2 !== null) {
5732
+ Object.keys(map2).forEach(function(style) {
5733
+ map2[style].forEach(function(alias) {
5725
5734
  result[String(alias)] = style;
5726
5735
  });
5727
5736
  });
5737
+ }
5728
5738
  return result;
5729
5739
  }
5730
- function Type(tag, options) {
5740
+ function Type2(tag, options) {
5731
5741
  options = options || {};
5732
5742
  Object.keys(options).forEach(function(name) {
5733
- if (TYPE_CONSTRUCTOR_OPTIONS.indexOf(name) === -1)
5734
- throw new YAMLException('Unknown option "' + name + '" is met in definition of "' + tag + '" YAML type.');
5743
+ if (TYPE_CONSTRUCTOR_OPTIONS.indexOf(name) === -1) {
5744
+ throw new YAMLException2('Unknown option "' + name + '" is met in definition of "' + tag + '" YAML type.');
5745
+ }
5735
5746
  });
5736
5747
  this.options = options;
5737
5748
  this.tag = tag;
@@ -5749,21 +5760,29 @@ var require_type = /* @__PURE__ */ __commonJSMin((exports, module) => {
5749
5760
  this.defaultStyle = options["defaultStyle"] || null;
5750
5761
  this.multi = options["multi"] || false;
5751
5762
  this.styleAliases = compileStyleAliases(options["styleAliases"] || null);
5752
- if (YAML_NODE_KINDS.indexOf(this.kind) === -1)
5753
- throw new YAMLException('Unknown kind "' + this.kind + '" is specified for "' + tag + '" YAML type.');
5754
- }
5755
- module.exports = Type;
5756
- });
5757
- var require_schema = /* @__PURE__ */ __commonJSMin((exports, module) => {
5758
- var YAMLException = require_exception();
5759
- var Type = require_type();
5760
- function compileList(schema, name) {
5763
+ if (YAML_NODE_KINDS.indexOf(this.kind) === -1) {
5764
+ throw new YAMLException2('Unknown kind "' + this.kind + '" is specified for "' + tag + '" YAML type.');
5765
+ }
5766
+ }
5767
+ type = Type2;
5768
+ return type;
5769
+ }
5770
+ var schema;
5771
+ var hasRequiredSchema;
5772
+ function requireSchema() {
5773
+ if (hasRequiredSchema)
5774
+ return schema;
5775
+ hasRequiredSchema = 1;
5776
+ const YAMLException2 = requireException();
5777
+ const Type2 = requireType();
5778
+ function compileList(schema2, name) {
5761
5779
  const result = [];
5762
- schema[name].forEach(function(currentType) {
5780
+ schema2[name].forEach(function(currentType) {
5763
5781
  let newIndex = result.length;
5764
5782
  result.forEach(function(previousType, previousIndex) {
5765
- if (previousType.tag === currentType.tag && previousType.kind === currentType.kind && previousType.multi === currentType.multi)
5783
+ if (previousType.tag === currentType.tag && previousType.kind === currentType.kind && previousType.multi === currentType.multi) {
5766
5784
  newIndex = previousIndex;
5785
+ }
5767
5786
  });
5768
5787
  result[newIndex] = currentType;
5769
5788
  });
@@ -5782,47 +5801,54 @@ var require_schema = /* @__PURE__ */ __commonJSMin((exports, module) => {
5782
5801
  fallback: []
5783
5802
  }
5784
5803
  };
5785
- function collectType(type) {
5786
- if (type.multi) {
5787
- result.multi[type.kind].push(type);
5788
- result.multi["fallback"].push(type);
5789
- } else
5790
- result[type.kind][type.tag] = result["fallback"][type.tag] = type;
5791
- }
5792
- for (let index = 0, length = arguments.length;index < length; index += 1)
5804
+ function collectType(type2) {
5805
+ if (type2.multi) {
5806
+ result.multi[type2.kind].push(type2);
5807
+ result.multi["fallback"].push(type2);
5808
+ } else {
5809
+ result[type2.kind][type2.tag] = result["fallback"][type2.tag] = type2;
5810
+ }
5811
+ }
5812
+ for (let index = 0, length = arguments.length;index < length; index += 1) {
5793
5813
  arguments[index].forEach(collectType);
5814
+ }
5794
5815
  return result;
5795
5816
  }
5796
- function Schema(definition) {
5817
+ function Schema2(definition) {
5797
5818
  return this.extend(definition);
5798
5819
  }
5799
- Schema.prototype.extend = function extend(definition) {
5820
+ Schema2.prototype.extend = function extend(definition) {
5800
5821
  let implicit = [];
5801
5822
  let explicit = [];
5802
- if (definition instanceof Type)
5823
+ if (definition instanceof Type2) {
5803
5824
  explicit.push(definition);
5804
- else if (Array.isArray(definition))
5825
+ } else if (Array.isArray(definition)) {
5805
5826
  explicit = explicit.concat(definition);
5806
- else if (definition && (Array.isArray(definition.implicit) || Array.isArray(definition.explicit))) {
5827
+ } else if (definition && (Array.isArray(definition.implicit) || Array.isArray(definition.explicit))) {
5807
5828
  if (definition.implicit)
5808
5829
  implicit = implicit.concat(definition.implicit);
5809
5830
  if (definition.explicit)
5810
5831
  explicit = explicit.concat(definition.explicit);
5811
- } else
5812
- throw new YAMLException("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })");
5813
- implicit.forEach(function(type) {
5814
- if (!(type instanceof Type))
5815
- throw new YAMLException("Specified list of YAML types (or a single Type object) contains a non-Type object.");
5816
- if (type.loadKind && type.loadKind !== "scalar")
5817
- throw new YAMLException("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.");
5818
- if (type.multi)
5819
- throw new YAMLException("There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.");
5832
+ } else {
5833
+ throw new YAMLException2("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })");
5834
+ }
5835
+ implicit.forEach(function(type2) {
5836
+ if (!(type2 instanceof Type2)) {
5837
+ throw new YAMLException2("Specified list of YAML types (or a single Type object) contains a non-Type object.");
5838
+ }
5839
+ if (type2.loadKind && type2.loadKind !== "scalar") {
5840
+ throw new YAMLException2("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.");
5841
+ }
5842
+ if (type2.multi) {
5843
+ throw new YAMLException2("There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.");
5844
+ }
5820
5845
  });
5821
- explicit.forEach(function(type) {
5822
- if (!(type instanceof Type))
5823
- throw new YAMLException("Specified list of YAML types (or a single Type object) contains a non-Type object.");
5846
+ explicit.forEach(function(type2) {
5847
+ if (!(type2 instanceof Type2)) {
5848
+ throw new YAMLException2("Specified list of YAML types (or a single Type object) contains a non-Type object.");
5849
+ }
5824
5850
  });
5825
- const result = Object.create(Schema.prototype);
5851
+ const result = Object.create(Schema2.prototype);
5826
5852
  result.implicit = (this.implicit || []).concat(implicit);
5827
5853
  result.explicit = (this.explicit || []).concat(explicit);
5828
5854
  result.compiledImplicit = compileList(result, "implicit");
@@ -5830,41 +5856,77 @@ var require_schema = /* @__PURE__ */ __commonJSMin((exports, module) => {
5830
5856
  result.compiledTypeMap = compileMap(result.compiledImplicit, result.compiledExplicit);
5831
5857
  return result;
5832
5858
  };
5833
- module.exports = Schema;
5834
- });
5835
- var require_str = /* @__PURE__ */ __commonJSMin((exports, module) => {
5836
- module.exports = new (require_type())("tag:yaml.org,2002:str", {
5859
+ schema = Schema2;
5860
+ return schema;
5861
+ }
5862
+ var str;
5863
+ var hasRequiredStr;
5864
+ function requireStr() {
5865
+ if (hasRequiredStr)
5866
+ return str;
5867
+ hasRequiredStr = 1;
5868
+ const Type2 = requireType();
5869
+ str = new Type2("tag:yaml.org,2002:str", {
5837
5870
  kind: "scalar",
5838
5871
  construct: function(data) {
5839
5872
  return data !== null ? data : "";
5840
5873
  }
5841
5874
  });
5842
- });
5843
- var require_seq = /* @__PURE__ */ __commonJSMin((exports, module) => {
5844
- module.exports = new (require_type())("tag:yaml.org,2002:seq", {
5875
+ return str;
5876
+ }
5877
+ var seq;
5878
+ var hasRequiredSeq;
5879
+ function requireSeq() {
5880
+ if (hasRequiredSeq)
5881
+ return seq;
5882
+ hasRequiredSeq = 1;
5883
+ const Type2 = requireType();
5884
+ seq = new Type2("tag:yaml.org,2002:seq", {
5845
5885
  kind: "sequence",
5846
5886
  construct: function(data) {
5847
5887
  return data !== null ? data : [];
5848
5888
  }
5849
5889
  });
5850
- });
5851
- var require_map = /* @__PURE__ */ __commonJSMin((exports, module) => {
5852
- module.exports = new (require_type())("tag:yaml.org,2002:map", {
5890
+ return seq;
5891
+ }
5892
+ var map;
5893
+ var hasRequiredMap;
5894
+ function requireMap() {
5895
+ if (hasRequiredMap)
5896
+ return map;
5897
+ hasRequiredMap = 1;
5898
+ const Type2 = requireType();
5899
+ map = new Type2("tag:yaml.org,2002:map", {
5853
5900
  kind: "mapping",
5854
5901
  construct: function(data) {
5855
5902
  return data !== null ? data : {};
5856
5903
  }
5857
5904
  });
5858
- });
5859
- var require_failsafe = /* @__PURE__ */ __commonJSMin((exports, module) => {
5860
- module.exports = new (require_schema())({ explicit: [
5861
- require_str(),
5862
- require_seq(),
5863
- require_map()
5864
- ] });
5865
- });
5866
- var require_null = /* @__PURE__ */ __commonJSMin((exports, module) => {
5867
- var Type = require_type();
5905
+ return map;
5906
+ }
5907
+ var failsafe;
5908
+ var hasRequiredFailsafe;
5909
+ function requireFailsafe() {
5910
+ if (hasRequiredFailsafe)
5911
+ return failsafe;
5912
+ hasRequiredFailsafe = 1;
5913
+ const Schema2 = requireSchema();
5914
+ failsafe = new Schema2({
5915
+ explicit: [
5916
+ requireStr(),
5917
+ requireSeq(),
5918
+ requireMap()
5919
+ ]
5920
+ });
5921
+ return failsafe;
5922
+ }
5923
+ var _null;
5924
+ var hasRequired_null;
5925
+ function require_null() {
5926
+ if (hasRequired_null)
5927
+ return _null;
5928
+ hasRequired_null = 1;
5929
+ const Type2 = requireType();
5868
5930
  function resolveYamlNull(data) {
5869
5931
  if (data === null)
5870
5932
  return true;
@@ -5877,7 +5939,7 @@ var require_null = /* @__PURE__ */ __commonJSMin((exports, module) => {
5877
5939
  function isNull(object) {
5878
5940
  return object === null;
5879
5941
  }
5880
- module.exports = new Type("tag:yaml.org,2002:null", {
5942
+ _null = new Type2("tag:yaml.org,2002:null", {
5881
5943
  kind: "scalar",
5882
5944
  resolve: resolveYamlNull,
5883
5945
  construct: constructYamlNull,
@@ -5901,9 +5963,15 @@ var require_null = /* @__PURE__ */ __commonJSMin((exports, module) => {
5901
5963
  },
5902
5964
  defaultStyle: "lowercase"
5903
5965
  });
5904
- });
5905
- var require_bool = /* @__PURE__ */ __commonJSMin((exports, module) => {
5906
- var Type = require_type();
5966
+ return _null;
5967
+ }
5968
+ var bool;
5969
+ var hasRequiredBool;
5970
+ function requireBool() {
5971
+ if (hasRequiredBool)
5972
+ return bool;
5973
+ hasRequiredBool = 1;
5974
+ const Type2 = requireType();
5907
5975
  function resolveYamlBoolean(data) {
5908
5976
  if (data === null)
5909
5977
  return false;
@@ -5916,7 +5984,7 @@ var require_bool = /* @__PURE__ */ __commonJSMin((exports, module) => {
5916
5984
  function isBoolean(object) {
5917
5985
  return Object.prototype.toString.call(object) === "[object Boolean]";
5918
5986
  }
5919
- module.exports = new Type("tag:yaml.org,2002:bool", {
5987
+ bool = new Type2("tag:yaml.org,2002:bool", {
5920
5988
  kind: "scalar",
5921
5989
  resolve: resolveYamlBoolean,
5922
5990
  construct: constructYamlBoolean,
@@ -5934,10 +6002,16 @@ var require_bool = /* @__PURE__ */ __commonJSMin((exports, module) => {
5934
6002
  },
5935
6003
  defaultStyle: "lowercase"
5936
6004
  });
5937
- });
5938
- var require_int = /* @__PURE__ */ __commonJSMin((exports, module) => {
5939
- var common = require_common();
5940
- var Type = require_type();
6005
+ return bool;
6006
+ }
6007
+ var int;
6008
+ var hasRequiredInt;
6009
+ function requireInt() {
6010
+ if (hasRequiredInt)
6011
+ return int;
6012
+ hasRequiredInt = 1;
6013
+ const common2 = requireCommon();
6014
+ const Type2 = requireType();
5941
6015
  function isHexCode(c) {
5942
6016
  return c >= 48 && c <= 57 || c >= 65 && c <= 70 || c >= 97 && c <= 102;
5943
6017
  }
@@ -5956,8 +6030,9 @@ var require_int = /* @__PURE__ */ __commonJSMin((exports, module) => {
5956
6030
  if (!max)
5957
6031
  return false;
5958
6032
  let ch = data[index];
5959
- if (ch === "-" || ch === "+")
6033
+ if (ch === "-" || ch === "+") {
5960
6034
  ch = data[++index];
6035
+ }
5961
6036
  if (ch === "0") {
5962
6037
  if (index + 1 === max)
5963
6038
  return true;
@@ -5970,7 +6045,7 @@ var require_int = /* @__PURE__ */ __commonJSMin((exports, module) => {
5970
6045
  return false;
5971
6046
  hasDigits = true;
5972
6047
  }
5973
- return hasDigits && Number.isFinite(parseYamlInteger(data));
6048
+ return hasDigits && isFinite(parseYamlInteger(data));
5974
6049
  }
5975
6050
  if (ch === "x") {
5976
6051
  index++;
@@ -5979,7 +6054,7 @@ var require_int = /* @__PURE__ */ __commonJSMin((exports, module) => {
5979
6054
  return false;
5980
6055
  hasDigits = true;
5981
6056
  }
5982
- return hasDigits && Number.isFinite(parseYamlInteger(data));
6057
+ return hasDigits && isFinite(parseYamlInteger(data));
5983
6058
  }
5984
6059
  if (ch === "o") {
5985
6060
  index++;
@@ -5988,17 +6063,18 @@ var require_int = /* @__PURE__ */ __commonJSMin((exports, module) => {
5988
6063
  return false;
5989
6064
  hasDigits = true;
5990
6065
  }
5991
- return hasDigits && Number.isFinite(parseYamlInteger(data));
6066
+ return hasDigits && isFinite(parseYamlInteger(data));
5992
6067
  }
5993
6068
  }
5994
6069
  for (;index < max; index++) {
5995
- if (!isDecCode(data.charCodeAt(index)))
6070
+ if (!isDecCode(data.charCodeAt(index))) {
5996
6071
  return false;
6072
+ }
5997
6073
  hasDigits = true;
5998
6074
  }
5999
6075
  if (!hasDigits)
6000
6076
  return false;
6001
- return Number.isFinite(parseYamlInteger(data));
6077
+ return isFinite(parseYamlInteger(data));
6002
6078
  }
6003
6079
  function parseYamlInteger(data) {
6004
6080
  let value = data;
@@ -6026,9 +6102,9 @@ var require_int = /* @__PURE__ */ __commonJSMin((exports, module) => {
6026
6102
  return parseYamlInteger(data);
6027
6103
  }
6028
6104
  function isInteger(object) {
6029
- return Object.prototype.toString.call(object) === "[object Number]" && object % 1 === 0 && !common.isNegativeZero(object);
6105
+ return Object.prototype.toString.call(object) === "[object Number]" && (object % 1 === 0 && !common2.isNegativeZero(object));
6030
6106
  }
6031
- module.exports = new Type("tag:yaml.org,2002:int", {
6107
+ int = new Type2("tag:yaml.org,2002:int", {
6032
6108
  kind: "scalar",
6033
6109
  resolve: resolveYamlInteger,
6034
6110
  construct: constructYamlInteger,
@@ -6055,35 +6131,45 @@ var require_int = /* @__PURE__ */ __commonJSMin((exports, module) => {
6055
6131
  hexadecimal: [16, "hex"]
6056
6132
  }
6057
6133
  });
6058
- });
6059
- var require_float = /* @__PURE__ */ __commonJSMin((exports, module) => {
6060
- var common = require_common();
6061
- var Type = require_type();
6062
- 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))$");
6063
- var YAML_FLOAT_SPECIAL_PATTERN = /* @__PURE__ */ new RegExp("^(?:[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");
6134
+ return int;
6135
+ }
6136
+ var float;
6137
+ var hasRequiredFloat;
6138
+ function requireFloat() {
6139
+ if (hasRequiredFloat)
6140
+ return float;
6141
+ hasRequiredFloat = 1;
6142
+ const common2 = requireCommon();
6143
+ const Type2 = requireType();
6144
+ const YAML_FLOAT_PATTERN = new RegExp("^(?:[-+]?(?:[0-9]+)(?:\\.[0-9]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");
6145
+ const YAML_FLOAT_SPECIAL_PATTERN = new RegExp("^(?:[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");
6064
6146
  function resolveYamlFloat(data) {
6065
6147
  if (data === null)
6066
6148
  return false;
6067
- if (!YAML_FLOAT_PATTERN.test(data))
6149
+ if (!YAML_FLOAT_PATTERN.test(data)) {
6068
6150
  return false;
6069
- if (Number.isFinite(parseFloat(data, 10)))
6151
+ }
6152
+ if (isFinite(parseFloat(data, 10))) {
6070
6153
  return true;
6154
+ }
6071
6155
  return YAML_FLOAT_SPECIAL_PATTERN.test(data);
6072
6156
  }
6073
6157
  function constructYamlFloat(data) {
6074
6158
  let value = data.toLowerCase();
6075
6159
  const sign = value[0] === "-" ? -1 : 1;
6076
- if ("+-".indexOf(value[0]) >= 0)
6160
+ if ("+-".indexOf(value[0]) >= 0) {
6077
6161
  value = value.slice(1);
6078
- if (value === ".inf")
6162
+ }
6163
+ if (value === ".inf") {
6079
6164
  return sign === 1 ? Number.POSITIVE_INFINITY : Number.NEGATIVE_INFINITY;
6080
- else if (value === ".nan")
6165
+ } else if (value === ".nan") {
6081
6166
  return NaN;
6167
+ }
6082
6168
  return sign * parseFloat(value, 10);
6083
6169
  }
6084
- var SCIENTIFIC_WITHOUT_DOT = /^[-+]?[0-9]+e/;
6170
+ const SCIENTIFIC_WITHOUT_DOT = /^[-+]?[0-9]+e/;
6085
6171
  function representYamlFloat(object, style) {
6086
- if (isNaN(object))
6172
+ if (isNaN(object)) {
6087
6173
  switch (style) {
6088
6174
  case "lowercase":
6089
6175
  return ".nan";
@@ -6092,7 +6178,7 @@ var require_float = /* @__PURE__ */ __commonJSMin((exports, module) => {
6092
6178
  case "camelcase":
6093
6179
  return ".NaN";
6094
6180
  }
6095
- else if (Number.POSITIVE_INFINITY === object)
6181
+ } else if (Number.POSITIVE_INFINITY === object) {
6096
6182
  switch (style) {
6097
6183
  case "lowercase":
6098
6184
  return ".inf";
@@ -6101,7 +6187,7 @@ var require_float = /* @__PURE__ */ __commonJSMin((exports, module) => {
6101
6187
  case "camelcase":
6102
6188
  return ".Inf";
6103
6189
  }
6104
- else if (Number.NEGATIVE_INFINITY === object)
6190
+ } else if (Number.NEGATIVE_INFINITY === object) {
6105
6191
  switch (style) {
6106
6192
  case "lowercase":
6107
6193
  return "-.inf";
@@ -6110,15 +6196,16 @@ var require_float = /* @__PURE__ */ __commonJSMin((exports, module) => {
6110
6196
  case "camelcase":
6111
6197
  return "-.Inf";
6112
6198
  }
6113
- else if (common.isNegativeZero(object))
6199
+ } else if (common2.isNegativeZero(object)) {
6114
6200
  return "-0.0";
6201
+ }
6115
6202
  const res = object.toString(10);
6116
6203
  return SCIENTIFIC_WITHOUT_DOT.test(res) ? res.replace("e", ".e") : res;
6117
6204
  }
6118
6205
  function isFloat(object) {
6119
- return Object.prototype.toString.call(object) === "[object Number]" && (object % 1 !== 0 || common.isNegativeZero(object));
6206
+ return Object.prototype.toString.call(object) === "[object Number]" && (object % 1 !== 0 || common2.isNegativeZero(object));
6120
6207
  }
6121
- module.exports = new Type("tag:yaml.org,2002:float", {
6208
+ float = new Type2("tag:yaml.org,2002:float", {
6122
6209
  kind: "scalar",
6123
6210
  resolve: resolveYamlFloat,
6124
6211
  construct: constructYamlFloat,
@@ -6126,22 +6213,42 @@ var require_float = /* @__PURE__ */ __commonJSMin((exports, module) => {
6126
6213
  represent: representYamlFloat,
6127
6214
  defaultStyle: "lowercase"
6128
6215
  });
6129
- });
6130
- var require_json = /* @__PURE__ */ __commonJSMin((exports, module) => {
6131
- module.exports = require_failsafe().extend({ implicit: [
6132
- require_null(),
6133
- require_bool(),
6134
- require_int(),
6135
- require_float()
6136
- ] });
6137
- });
6138
- var require_core = /* @__PURE__ */ __commonJSMin((exports, module) => {
6139
- module.exports = require_json();
6140
- });
6141
- var require_timestamp = /* @__PURE__ */ __commonJSMin((exports, module) => {
6142
- var Type = require_type();
6143
- var YAML_DATE_REGEXP = /* @__PURE__ */ new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$");
6144
- 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]))?))?$");
6216
+ return float;
6217
+ }
6218
+ var json;
6219
+ var hasRequiredJson;
6220
+ function requireJson() {
6221
+ if (hasRequiredJson)
6222
+ return json;
6223
+ hasRequiredJson = 1;
6224
+ json = requireFailsafe().extend({
6225
+ implicit: [
6226
+ require_null(),
6227
+ requireBool(),
6228
+ requireInt(),
6229
+ requireFloat()
6230
+ ]
6231
+ });
6232
+ return json;
6233
+ }
6234
+ var core;
6235
+ var hasRequiredCore;
6236
+ function requireCore() {
6237
+ if (hasRequiredCore)
6238
+ return core;
6239
+ hasRequiredCore = 1;
6240
+ core = requireJson();
6241
+ return core;
6242
+ }
6243
+ var timestamp;
6244
+ var hasRequiredTimestamp;
6245
+ function requireTimestamp() {
6246
+ if (hasRequiredTimestamp)
6247
+ return timestamp;
6248
+ hasRequiredTimestamp = 1;
6249
+ const Type2 = requireType();
6250
+ const YAML_DATE_REGEXP = new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$");
6251
+ 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]))?))?$");
6145
6252
  function resolveYamlTimestamp(data) {
6146
6253
  if (data === null)
6147
6254
  return false;
@@ -6162,15 +6269,17 @@ var require_timestamp = /* @__PURE__ */ __commonJSMin((exports, module) => {
6162
6269
  const year = +match[1];
6163
6270
  const month = +match[2] - 1;
6164
6271
  const day = +match[3];
6165
- if (!match[4])
6272
+ if (!match[4]) {
6166
6273
  return new Date(Date.UTC(year, month, day));
6274
+ }
6167
6275
  const hour = +match[4];
6168
6276
  const minute = +match[5];
6169
6277
  const second = +match[6];
6170
6278
  if (match[7]) {
6171
6279
  fraction = match[7].slice(0, 3);
6172
- while (fraction.length < 3)
6280
+ while (fraction.length < 3) {
6173
6281
  fraction += "0";
6282
+ }
6174
6283
  fraction = +fraction;
6175
6284
  }
6176
6285
  if (match[9]) {
@@ -6188,36 +6297,48 @@ var require_timestamp = /* @__PURE__ */ __commonJSMin((exports, module) => {
6188
6297
  function representYamlTimestamp(object) {
6189
6298
  return object.toISOString();
6190
6299
  }
6191
- module.exports = new Type("tag:yaml.org,2002:timestamp", {
6300
+ timestamp = new Type2("tag:yaml.org,2002:timestamp", {
6192
6301
  kind: "scalar",
6193
6302
  resolve: resolveYamlTimestamp,
6194
6303
  construct: constructYamlTimestamp,
6195
6304
  instanceOf: Date,
6196
6305
  represent: representYamlTimestamp
6197
6306
  });
6198
- });
6199
- var require_merge = /* @__PURE__ */ __commonJSMin((exports, module) => {
6200
- var Type = require_type();
6307
+ return timestamp;
6308
+ }
6309
+ var merge;
6310
+ var hasRequiredMerge;
6311
+ function requireMerge() {
6312
+ if (hasRequiredMerge)
6313
+ return merge;
6314
+ hasRequiredMerge = 1;
6315
+ const Type2 = requireType();
6201
6316
  function resolveYamlMerge(data) {
6202
6317
  return data === "<<" || data === null;
6203
6318
  }
6204
- module.exports = new Type("tag:yaml.org,2002:merge", {
6319
+ merge = new Type2("tag:yaml.org,2002:merge", {
6205
6320
  kind: "scalar",
6206
6321
  resolve: resolveYamlMerge
6207
6322
  });
6208
- });
6209
- var require_binary = /* @__PURE__ */ __commonJSMin((exports, module) => {
6210
- var Type = require_type();
6211
- var BASE64_MAP = `ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
6323
+ return merge;
6324
+ }
6325
+ var binary;
6326
+ var hasRequiredBinary;
6327
+ function requireBinary() {
6328
+ if (hasRequiredBinary)
6329
+ return binary;
6330
+ hasRequiredBinary = 1;
6331
+ const Type2 = requireType();
6332
+ const BASE64_MAP = `ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
6212
6333
  \r`;
6213
6334
  function resolveYamlBinary(data) {
6214
6335
  if (data === null)
6215
6336
  return false;
6216
6337
  let bitlen = 0;
6217
6338
  const max = data.length;
6218
- const map = BASE64_MAP;
6339
+ const map2 = BASE64_MAP;
6219
6340
  for (let idx = 0;idx < max; idx++) {
6220
- const code = map.indexOf(data.charAt(idx));
6341
+ const code = map2.indexOf(data.charAt(idx));
6221
6342
  if (code > 64)
6222
6343
  continue;
6223
6344
  if (code < 0)
@@ -6229,7 +6350,7 @@ var require_binary = /* @__PURE__ */ __commonJSMin((exports, module) => {
6229
6350
  function constructYamlBinary(data) {
6230
6351
  const input = data.replace(/[\r\n=]/g, "");
6231
6352
  const max = input.length;
6232
- const map = BASE64_MAP;
6353
+ const map2 = BASE64_MAP;
6233
6354
  let bits = 0;
6234
6355
  const result = [];
6235
6356
  for (let idx = 0;idx < max; idx++) {
@@ -6238,7 +6359,7 @@ var require_binary = /* @__PURE__ */ __commonJSMin((exports, module) => {
6238
6359
  result.push(bits >> 8 & 255);
6239
6360
  result.push(bits & 255);
6240
6361
  }
6241
- bits = bits << 6 | map.indexOf(input.charAt(idx));
6362
+ bits = bits << 6 | map2.indexOf(input.charAt(idx));
6242
6363
  }
6243
6364
  const tailbits = max % 4 * 6;
6244
6365
  if (tailbits === 0) {
@@ -6248,58 +6369,65 @@ var require_binary = /* @__PURE__ */ __commonJSMin((exports, module) => {
6248
6369
  } else if (tailbits === 18) {
6249
6370
  result.push(bits >> 10 & 255);
6250
6371
  result.push(bits >> 2 & 255);
6251
- } else if (tailbits === 12)
6372
+ } else if (tailbits === 12) {
6252
6373
  result.push(bits >> 4 & 255);
6374
+ }
6253
6375
  return new Uint8Array(result);
6254
6376
  }
6255
6377
  function representYamlBinary(object) {
6256
6378
  let result = "";
6257
6379
  let bits = 0;
6258
6380
  const max = object.length;
6259
- const map = BASE64_MAP;
6381
+ const map2 = BASE64_MAP;
6260
6382
  for (let idx = 0;idx < max; idx++) {
6261
6383
  if (idx % 3 === 0 && idx) {
6262
- result += map[bits >> 18 & 63];
6263
- result += map[bits >> 12 & 63];
6264
- result += map[bits >> 6 & 63];
6265
- result += map[bits & 63];
6384
+ result += map2[bits >> 18 & 63];
6385
+ result += map2[bits >> 12 & 63];
6386
+ result += map2[bits >> 6 & 63];
6387
+ result += map2[bits & 63];
6266
6388
  }
6267
6389
  bits = (bits << 8) + object[idx];
6268
6390
  }
6269
6391
  const tail = max % 3;
6270
6392
  if (tail === 0) {
6271
- result += map[bits >> 18 & 63];
6272
- result += map[bits >> 12 & 63];
6273
- result += map[bits >> 6 & 63];
6274
- result += map[bits & 63];
6393
+ result += map2[bits >> 18 & 63];
6394
+ result += map2[bits >> 12 & 63];
6395
+ result += map2[bits >> 6 & 63];
6396
+ result += map2[bits & 63];
6275
6397
  } else if (tail === 2) {
6276
- result += map[bits >> 10 & 63];
6277
- result += map[bits >> 4 & 63];
6278
- result += map[bits << 2 & 63];
6279
- result += map[64];
6398
+ result += map2[bits >> 10 & 63];
6399
+ result += map2[bits >> 4 & 63];
6400
+ result += map2[bits << 2 & 63];
6401
+ result += map2[64];
6280
6402
  } else if (tail === 1) {
6281
- result += map[bits >> 2 & 63];
6282
- result += map[bits << 4 & 63];
6283
- result += map[64];
6284
- result += map[64];
6403
+ result += map2[bits >> 2 & 63];
6404
+ result += map2[bits << 4 & 63];
6405
+ result += map2[64];
6406
+ result += map2[64];
6285
6407
  }
6286
6408
  return result;
6287
6409
  }
6288
6410
  function isBinary(obj) {
6289
6411
  return Object.prototype.toString.call(obj) === "[object Uint8Array]";
6290
6412
  }
6291
- module.exports = new Type("tag:yaml.org,2002:binary", {
6413
+ binary = new Type2("tag:yaml.org,2002:binary", {
6292
6414
  kind: "scalar",
6293
6415
  resolve: resolveYamlBinary,
6294
6416
  construct: constructYamlBinary,
6295
6417
  predicate: isBinary,
6296
6418
  represent: representYamlBinary
6297
6419
  });
6298
- });
6299
- var require_omap = /* @__PURE__ */ __commonJSMin((exports, module) => {
6300
- var Type = require_type();
6301
- var _hasOwnProperty = Object.prototype.hasOwnProperty;
6302
- var _toString = Object.prototype.toString;
6420
+ return binary;
6421
+ }
6422
+ var omap;
6423
+ var hasRequiredOmap;
6424
+ function requireOmap() {
6425
+ if (hasRequiredOmap)
6426
+ return omap;
6427
+ hasRequiredOmap = 1;
6428
+ const Type2 = requireType();
6429
+ const _hasOwnProperty = Object.prototype.hasOwnProperty;
6430
+ const _toString = Object.prototype.toString;
6303
6431
  function resolveYamlOmap(data) {
6304
6432
  if (data === null)
6305
6433
  return true;
@@ -6311,12 +6439,14 @@ var require_omap = /* @__PURE__ */ __commonJSMin((exports, module) => {
6311
6439
  if (_toString.call(pair) !== "[object Object]")
6312
6440
  return false;
6313
6441
  let pairKey;
6314
- for (pairKey in pair)
6315
- if (_hasOwnProperty.call(pair, pairKey))
6442
+ for (pairKey in pair) {
6443
+ if (_hasOwnProperty.call(pair, pairKey)) {
6316
6444
  if (!pairHasKey)
6317
6445
  pairHasKey = true;
6318
6446
  else
6319
6447
  return false;
6448
+ }
6449
+ }
6320
6450
  if (!pairHasKey)
6321
6451
  return false;
6322
6452
  if (objectKeys.indexOf(pairKey) === -1)
@@ -6329,15 +6459,21 @@ var require_omap = /* @__PURE__ */ __commonJSMin((exports, module) => {
6329
6459
  function constructYamlOmap(data) {
6330
6460
  return data !== null ? data : [];
6331
6461
  }
6332
- module.exports = new Type("tag:yaml.org,2002:omap", {
6462
+ omap = new Type2("tag:yaml.org,2002:omap", {
6333
6463
  kind: "sequence",
6334
6464
  resolve: resolveYamlOmap,
6335
6465
  construct: constructYamlOmap
6336
6466
  });
6337
- });
6338
- var require_pairs = /* @__PURE__ */ __commonJSMin((exports, module) => {
6339
- var Type = require_type();
6340
- var _toString = Object.prototype.toString;
6467
+ return omap;
6468
+ }
6469
+ var pairs;
6470
+ var hasRequiredPairs;
6471
+ function requirePairs() {
6472
+ if (hasRequiredPairs)
6473
+ return pairs;
6474
+ hasRequiredPairs = 1;
6475
+ const Type2 = requireType();
6476
+ const _toString = Object.prototype.toString;
6341
6477
  function resolveYamlPairs(data) {
6342
6478
  if (data === null)
6343
6479
  return true;
@@ -6366,64 +6502,85 @@ var require_pairs = /* @__PURE__ */ __commonJSMin((exports, module) => {
6366
6502
  }
6367
6503
  return result;
6368
6504
  }
6369
- module.exports = new Type("tag:yaml.org,2002:pairs", {
6505
+ pairs = new Type2("tag:yaml.org,2002:pairs", {
6370
6506
  kind: "sequence",
6371
6507
  resolve: resolveYamlPairs,
6372
6508
  construct: constructYamlPairs
6373
6509
  });
6374
- });
6375
- var require_set = /* @__PURE__ */ __commonJSMin((exports, module) => {
6376
- var Type = require_type();
6377
- var _hasOwnProperty = Object.prototype.hasOwnProperty;
6510
+ return pairs;
6511
+ }
6512
+ var set;
6513
+ var hasRequiredSet;
6514
+ function requireSet() {
6515
+ if (hasRequiredSet)
6516
+ return set;
6517
+ hasRequiredSet = 1;
6518
+ const Type2 = requireType();
6519
+ const _hasOwnProperty = Object.prototype.hasOwnProperty;
6378
6520
  function resolveYamlSet(data) {
6379
6521
  if (data === null)
6380
6522
  return true;
6381
6523
  const object = data;
6382
- for (const key in object)
6524
+ for (const key in object) {
6383
6525
  if (_hasOwnProperty.call(object, key)) {
6384
6526
  if (object[key] !== null)
6385
6527
  return false;
6386
6528
  }
6529
+ }
6387
6530
  return true;
6388
6531
  }
6389
6532
  function constructYamlSet(data) {
6390
6533
  return data !== null ? data : {};
6391
6534
  }
6392
- module.exports = new Type("tag:yaml.org,2002:set", {
6535
+ set = new Type2("tag:yaml.org,2002:set", {
6393
6536
  kind: "mapping",
6394
6537
  resolve: resolveYamlSet,
6395
6538
  construct: constructYamlSet
6396
6539
  });
6397
- });
6398
- var require_default = /* @__PURE__ */ __commonJSMin((exports, module) => {
6399
- module.exports = require_core().extend({
6400
- implicit: [require_timestamp(), require_merge()],
6540
+ return set;
6541
+ }
6542
+ var _default;
6543
+ var hasRequired_default;
6544
+ function require_default() {
6545
+ if (hasRequired_default)
6546
+ return _default;
6547
+ hasRequired_default = 1;
6548
+ _default = requireCore().extend({
6549
+ implicit: [
6550
+ requireTimestamp(),
6551
+ requireMerge()
6552
+ ],
6401
6553
  explicit: [
6402
- require_binary(),
6403
- require_omap(),
6404
- require_pairs(),
6405
- require_set()
6554
+ requireBinary(),
6555
+ requireOmap(),
6556
+ requirePairs(),
6557
+ requireSet()
6406
6558
  ]
6407
6559
  });
6408
- });
6409
- var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
6410
- var common = require_common();
6411
- var YAMLException = require_exception();
6412
- var makeSnippet = require_snippet();
6413
- var DEFAULT_SCHEMA = require_default();
6414
- var _hasOwnProperty = Object.prototype.hasOwnProperty;
6415
- var CONTEXT_FLOW_IN = 1;
6416
- var CONTEXT_FLOW_OUT = 2;
6417
- var CONTEXT_BLOCK_IN = 3;
6418
- var CONTEXT_BLOCK_OUT = 4;
6419
- var CHOMPING_CLIP = 1;
6420
- var CHOMPING_STRIP = 2;
6421
- var CHOMPING_KEEP = 3;
6422
- var PATTERN_NON_PRINTABLE = /[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/;
6423
- var PATTERN_NON_ASCII_LINE_BREAKS = /[\x85\u2028\u2029]/;
6424
- var PATTERN_FLOW_INDICATORS = /[,\[\]{}]/;
6425
- var PATTERN_TAG_HANDLE = /^(?:!|!!|![0-9A-Za-z-]+!)$/;
6426
- var PATTERN_TAG_URI = /^(?:!|[^,\[\]{}])(?:%[0-9a-f]{2}|[0-9a-z\-#;/?:@&=+$,_.!~*'()\[\]])*$/i;
6560
+ return _default;
6561
+ }
6562
+ var hasRequiredLoader;
6563
+ function requireLoader() {
6564
+ if (hasRequiredLoader)
6565
+ return loader;
6566
+ hasRequiredLoader = 1;
6567
+ const common2 = requireCommon();
6568
+ const YAMLException2 = requireException();
6569
+ const makeSnippet = requireSnippet();
6570
+ const DEFAULT_SCHEMA2 = require_default();
6571
+ const _hasOwnProperty = Object.prototype.hasOwnProperty;
6572
+ const CONTEXT_FLOW_IN = 1;
6573
+ const CONTEXT_FLOW_OUT = 2;
6574
+ const CONTEXT_BLOCK_IN = 3;
6575
+ const CONTEXT_BLOCK_OUT = 4;
6576
+ const CHOMPING_CLIP = 1;
6577
+ const CHOMPING_STRIP = 2;
6578
+ const CHOMPING_KEEP = 3;
6579
+ const PATTERN_NON_PRINTABLE = /[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/;
6580
+ const PATTERN_NON_ASCII_LINE_BREAKS = /[\x85\u2028\u2029]/;
6581
+ const PATTERN_FLOW_INDICATORS = /[,\[\]{}]/;
6582
+ const PATTERN_TAG_HANDLE = /^(?:!|!!|![0-9A-Za-z-]+!)$/;
6583
+ const PATTERN_TAG_URI = /^(?:!|[^,\[\]{}])(?:%[0-9a-f]{2}|[0-9a-z\-#;/?:@&=+$,_.!~*'()\[\]])*$/i;
6427
6584
  function _class(obj) {
6428
6585
  return Object.prototype.toString.call(obj);
6429
6586
  }
@@ -6440,25 +6597,31 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
6440
6597
  return c === 44 || c === 91 || c === 93 || c === 123 || c === 125;
6441
6598
  }
6442
6599
  function fromHexCode(c) {
6443
- if (c >= 48 && c <= 57)
6600
+ if (c >= 48 && c <= 57) {
6444
6601
  return c - 48;
6602
+ }
6445
6603
  const lc = c | 32;
6446
- if (lc >= 97 && lc <= 102)
6604
+ if (lc >= 97 && lc <= 102) {
6447
6605
  return lc - 97 + 10;
6606
+ }
6448
6607
  return -1;
6449
6608
  }
6450
6609
  function escapedHexLen(c) {
6451
- if (c === 120)
6610
+ if (c === 120) {
6452
6611
  return 2;
6453
- if (c === 117)
6612
+ }
6613
+ if (c === 117) {
6454
6614
  return 4;
6455
- if (c === 85)
6615
+ }
6616
+ if (c === 85) {
6456
6617
  return 8;
6618
+ }
6457
6619
  return 0;
6458
6620
  }
6459
6621
  function fromDecimalCode(c) {
6460
- if (c >= 48 && c <= 57)
6622
+ if (c >= 48 && c <= 57) {
6461
6623
  return c - 48;
6624
+ }
6462
6625
  return -1;
6463
6626
  }
6464
6627
  function simpleEscapeSequence(c) {
@@ -6505,23 +6668,25 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
6505
6668
  }
6506
6669
  }
6507
6670
  function charFromCodepoint(c) {
6508
- if (c <= 65535)
6671
+ if (c <= 65535) {
6509
6672
  return String.fromCharCode(c);
6673
+ }
6510
6674
  return String.fromCharCode((c - 65536 >> 10) + 55296, (c - 65536 & 1023) + 56320);
6511
6675
  }
6512
6676
  function setProperty(object, key, value) {
6513
- if (key === "__proto__")
6677
+ if (key === "__proto__") {
6514
6678
  Object.defineProperty(object, key, {
6515
6679
  configurable: true,
6516
6680
  enumerable: true,
6517
6681
  writable: true,
6518
6682
  value
6519
6683
  });
6520
- else
6684
+ } else {
6521
6685
  object[key] = value;
6686
+ }
6522
6687
  }
6523
- var simpleEscapeCheck = new Array(256);
6524
- var simpleEscapeMap = new Array(256);
6688
+ const simpleEscapeCheck = new Array(256);
6689
+ const simpleEscapeMap = new Array(256);
6525
6690
  for (let i = 0;i < 256; i++) {
6526
6691
  simpleEscapeCheck[i] = simpleEscapeSequence(i) ? 1 : 0;
6527
6692
  simpleEscapeMap[i] = simpleEscapeSequence(i);
@@ -6529,13 +6694,13 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
6529
6694
  function State(input, options) {
6530
6695
  this.input = input;
6531
6696
  this.filename = options["filename"] || null;
6532
- this.schema = options["schema"] || DEFAULT_SCHEMA;
6697
+ this.schema = options["schema"] || DEFAULT_SCHEMA2;
6533
6698
  this.onWarning = options["onWarning"] || null;
6534
6699
  this.legacy = options["legacy"] || false;
6535
6700
  this.json = options["json"] || false;
6536
6701
  this.listener = options["listener"] || null;
6537
6702
  this.maxDepth = typeof options["maxDepth"] === "number" ? options["maxDepth"] : 100;
6538
- this.maxMergeSeqLength = typeof options["maxMergeSeqLength"] === "number" ? options["maxMergeSeqLength"] : 20;
6703
+ this.maxTotalMergeKeys = typeof options["maxTotalMergeKeys"] === "number" ? options["maxTotalMergeKeys"] : 1e4;
6539
6704
  this.implicitTypes = this.schema.compiledImplicit;
6540
6705
  this.typeMap = this.schema.compiledTypeMap;
6541
6706
  this.length = input.length;
@@ -6544,6 +6709,7 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
6544
6709
  this.lineStart = 0;
6545
6710
  this.lineIndent = 0;
6546
6711
  this.depth = 0;
6712
+ this.totalMergeKeys = 0;
6547
6713
  this.firstTabInLine = -1;
6548
6714
  this.documents = [];
6549
6715
  this.anchorMapTransactions = [];
@@ -6557,29 +6723,31 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
6557
6723
  column: state.position - state.lineStart
6558
6724
  };
6559
6725
  mark.snippet = makeSnippet(mark);
6560
- return new YAMLException(message, mark);
6726
+ return new YAMLException2(message, mark);
6561
6727
  }
6562
6728
  function throwError(state, message) {
6563
6729
  throw generateError(state, message);
6564
6730
  }
6565
6731
  function throwWarning(state, message) {
6566
- if (state.onWarning)
6732
+ if (state.onWarning) {
6567
6733
  state.onWarning.call(null, generateError(state, message));
6734
+ }
6568
6735
  }
6569
6736
  function storeAnchor(state, name, value) {
6570
6737
  const transactions = state.anchorMapTransactions;
6571
6738
  if (transactions.length !== 0) {
6572
6739
  const transaction = transactions[transactions.length - 1];
6573
- if (!_hasOwnProperty.call(transaction, name))
6740
+ if (!_hasOwnProperty.call(transaction, name)) {
6574
6741
  transaction[name] = {
6575
6742
  existed: _hasOwnProperty.call(state.anchorMap, name),
6576
6743
  value: state.anchorMap[name]
6577
6744
  };
6745
+ }
6578
6746
  }
6579
6747
  state.anchorMap[name] = value;
6580
6748
  }
6581
6749
  function beginAnchorTransaction(state) {
6582
- state.anchorMapTransactions.push(Object.create(null));
6750
+ state.anchorMapTransactions.push(/* @__PURE__ */ Object.create(null));
6583
6751
  }
6584
6752
  function commitAnchorTransaction(state) {
6585
6753
  const transaction = state.anchorMapTransactions.pop();
@@ -6590,8 +6758,9 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
6590
6758
  const names = Object.keys(transaction);
6591
6759
  for (let index = 0, length = names.length;index < length; index += 1) {
6592
6760
  const name = names[index];
6593
- if (!_hasOwnProperty.call(parent, name))
6761
+ if (!_hasOwnProperty.call(parent, name)) {
6594
6762
  parent[name] = transaction[name];
6763
+ }
6595
6764
  }
6596
6765
  }
6597
6766
  function rollbackAnchorTransaction(state) {
@@ -6599,10 +6768,11 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
6599
6768
  const names = Object.keys(transaction);
6600
6769
  for (let index = names.length - 1;index >= 0; index -= 1) {
6601
6770
  const entry = transaction[names[index]];
6602
- if (entry.existed)
6771
+ if (entry.existed) {
6603
6772
  state.anchorMap[names[index]] = entry.value;
6604
- else
6773
+ } else {
6605
6774
  delete state.anchorMap[names[index]];
6775
+ }
6606
6776
  }
6607
6777
  }
6608
6778
  function snapshotState(state) {
@@ -6629,36 +6799,45 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
6629
6799
  state.kind = snapshot.kind;
6630
6800
  state.result = snapshot.result;
6631
6801
  }
6632
- var directiveHandlers = {
6802
+ const directiveHandlers = {
6633
6803
  YAML: function handleYamlDirective(state, name, args) {
6634
- if (state.version !== null)
6804
+ if (state.version !== null) {
6635
6805
  throwError(state, "duplication of %YAML directive");
6636
- if (args.length !== 1)
6806
+ }
6807
+ if (args.length !== 1) {
6637
6808
  throwError(state, "YAML directive accepts exactly one argument");
6809
+ }
6638
6810
  const match = /^([0-9]+)\.([0-9]+)$/.exec(args[0]);
6639
- if (match === null)
6811
+ if (match === null) {
6640
6812
  throwError(state, "ill-formed argument of the YAML directive");
6813
+ }
6641
6814
  const major = parseInt(match[1], 10);
6642
6815
  const minor = parseInt(match[2], 10);
6643
- if (major !== 1)
6816
+ if (major !== 1) {
6644
6817
  throwError(state, "unacceptable YAML version of the document");
6818
+ }
6645
6819
  state.version = args[0];
6646
6820
  state.checkLineBreaks = minor < 2;
6647
- if (minor !== 1 && minor !== 2)
6821
+ if (minor !== 1 && minor !== 2) {
6648
6822
  throwWarning(state, "unsupported YAML version of the document");
6823
+ }
6649
6824
  },
6650
6825
  TAG: function handleTagDirective(state, name, args) {
6651
6826
  let prefix;
6652
- if (args.length !== 2)
6827
+ if (args.length !== 2) {
6653
6828
  throwError(state, "TAG directive accepts exactly two arguments");
6829
+ }
6654
6830
  const handle = args[0];
6655
6831
  prefix = args[1];
6656
- if (!PATTERN_TAG_HANDLE.test(handle))
6832
+ if (!PATTERN_TAG_HANDLE.test(handle)) {
6657
6833
  throwError(state, "ill-formed tag handle (first argument) of the TAG directive");
6658
- if (_hasOwnProperty.call(state.tagMap, handle))
6834
+ }
6835
+ if (_hasOwnProperty.call(state.tagMap, handle)) {
6659
6836
  throwError(state, 'there is a previously declared suffix for "' + handle + '" tag handle');
6660
- if (!PATTERN_TAG_URI.test(prefix))
6837
+ }
6838
+ if (!PATTERN_TAG_URI.test(prefix)) {
6661
6839
  throwError(state, "ill-formed tag prefix (second argument) of the TAG directive");
6840
+ }
6662
6841
  try {
6663
6842
  prefix = decodeURIComponent(prefix);
6664
6843
  } catch (err) {
@@ -6670,23 +6849,29 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
6670
6849
  function captureSegment(state, start, end, checkJson) {
6671
6850
  if (start < end) {
6672
6851
  const _result = state.input.slice(start, end);
6673
- if (checkJson)
6852
+ if (checkJson) {
6674
6853
  for (let _position = 0, _length = _result.length;_position < _length; _position += 1) {
6675
6854
  const _character = _result.charCodeAt(_position);
6676
- if (!(_character === 9 || _character >= 32 && _character <= 1114111))
6855
+ if (!(_character === 9 || _character >= 32 && _character <= 1114111)) {
6677
6856
  throwError(state, "expected valid JSON character");
6857
+ }
6678
6858
  }
6679
- else if (PATTERN_NON_PRINTABLE.test(_result))
6859
+ } else if (PATTERN_NON_PRINTABLE.test(_result)) {
6680
6860
  throwError(state, "the stream contains non-printable characters");
6861
+ }
6681
6862
  state.result += _result;
6682
6863
  }
6683
6864
  }
6684
6865
  function mergeMappings(state, destination, source, overridableKeys) {
6685
- if (!common.isObject(source))
6866
+ if (!common2.isObject(source)) {
6686
6867
  throwError(state, "cannot merge mappings; the provided source object is unacceptable");
6868
+ }
6687
6869
  const sourceKeys = Object.keys(source);
6688
6870
  for (let index = 0, quantity = sourceKeys.length;index < quantity; index += 1) {
6689
6871
  const key = sourceKeys[index];
6872
+ if (state.maxTotalMergeKeys !== -1 && ++state.totalMergeKeys > state.maxTotalMergeKeys) {
6873
+ throwError(state, "merge keys exceeded maxTotalMergeKeys (" + state.maxTotalMergeKeys + ")");
6874
+ }
6690
6875
  if (!_hasOwnProperty.call(destination, key)) {
6691
6876
  setProperty(destination, key, source[key]);
6692
6877
  overridableKeys[key] = true;
@@ -6697,32 +6882,30 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
6697
6882
  if (Array.isArray(keyNode)) {
6698
6883
  keyNode = Array.prototype.slice.call(keyNode);
6699
6884
  for (let index = 0, quantity = keyNode.length;index < quantity; index += 1) {
6700
- if (Array.isArray(keyNode[index]))
6885
+ if (Array.isArray(keyNode[index])) {
6701
6886
  throwError(state, "nested arrays are not supported inside keys");
6702
- if (typeof keyNode === "object" && _class(keyNode[index]) === "[object Object]")
6887
+ }
6888
+ if (typeof keyNode === "object" && _class(keyNode[index]) === "[object Object]") {
6703
6889
  keyNode[index] = "[object Object]";
6890
+ }
6704
6891
  }
6705
6892
  }
6706
- if (typeof keyNode === "object" && _class(keyNode) === "[object Object]")
6893
+ if (typeof keyNode === "object" && _class(keyNode) === "[object Object]") {
6707
6894
  keyNode = "[object Object]";
6895
+ }
6708
6896
  keyNode = String(keyNode);
6709
- if (_result === null)
6897
+ if (_result === null) {
6710
6898
  _result = {};
6711
- if (keyTag === "tag:yaml.org,2002:merge")
6899
+ }
6900
+ if (keyTag === "tag:yaml.org,2002:merge") {
6712
6901
  if (Array.isArray(valueNode)) {
6713
- if (valueNode.length > state.maxMergeSeqLength)
6714
- throwError(state, "merge sequence length exceeded maxMergeSeqLength (" + state.maxMergeSeqLength + ")");
6715
- const seen = /* @__PURE__ */ new Set;
6716
6902
  for (let index = 0, quantity = valueNode.length;index < quantity; index += 1) {
6717
- const src = valueNode[index];
6718
- if (seen.has(src))
6719
- continue;
6720
- seen.add(src);
6721
- mergeMappings(state, _result, src, overridableKeys);
6903
+ mergeMappings(state, _result, valueNode[index], overridableKeys);
6722
6904
  }
6723
- } else
6905
+ } else {
6724
6906
  mergeMappings(state, _result, valueNode, overridableKeys);
6725
- else {
6907
+ }
6908
+ } else {
6726
6909
  if (!state.json && !_hasOwnProperty.call(overridableKeys, keyNode) && _hasOwnProperty.call(_result, keyNode)) {
6727
6910
  state.line = startLine || state.line;
6728
6911
  state.lineStart = startLineStart || state.lineStart;
@@ -6736,14 +6919,16 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
6736
6919
  }
6737
6920
  function readLineBreak(state) {
6738
6921
  const ch = state.input.charCodeAt(state.position);
6739
- if (ch === 10)
6922
+ if (ch === 10) {
6740
6923
  state.position++;
6741
- else if (ch === 13) {
6924
+ } else if (ch === 13) {
6742
6925
  state.position++;
6743
- if (state.input.charCodeAt(state.position) === 10)
6926
+ if (state.input.charCodeAt(state.position) === 10) {
6744
6927
  state.position++;
6745
- } else
6928
+ }
6929
+ } else {
6746
6930
  throwError(state, "a line break is expected");
6931
+ }
6747
6932
  state.line += 1;
6748
6933
  state.lineStart = state.position;
6749
6934
  state.firstTabInLine = -1;
@@ -6753,14 +6938,16 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
6753
6938
  let ch = state.input.charCodeAt(state.position);
6754
6939
  while (ch !== 0) {
6755
6940
  while (isWhiteSpace(ch)) {
6756
- if (ch === 9 && state.firstTabInLine === -1)
6941
+ if (ch === 9 && state.firstTabInLine === -1) {
6757
6942
  state.firstTabInLine = state.position;
6943
+ }
6758
6944
  ch = state.input.charCodeAt(++state.position);
6759
6945
  }
6760
- if (allowComments && ch === 35)
6761
- do
6946
+ if (allowComments && ch === 35) {
6947
+ do {
6762
6948
  ch = state.input.charCodeAt(++state.position);
6763
- while (ch !== 10 && ch !== 13 && ch !== 0);
6949
+ } while (ch !== 10 && ch !== 13 && ch !== 0);
6950
+ }
6764
6951
  if (isEol(ch)) {
6765
6952
  readLineBreak(state);
6766
6953
  ch = state.input.charCodeAt(state.position);
@@ -6770,11 +6957,13 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
6770
6957
  state.lineIndent++;
6771
6958
  ch = state.input.charCodeAt(++state.position);
6772
6959
  }
6773
- } else
6960
+ } else {
6774
6961
  break;
6962
+ }
6775
6963
  }
6776
- if (checkIndent !== -1 && lineBreaks !== 0 && state.lineIndent < checkIndent)
6964
+ if (checkIndent !== -1 && lineBreaks !== 0 && state.lineIndent < checkIndent) {
6777
6965
  throwWarning(state, "deficient indentation");
6966
+ }
6778
6967
  return lineBreaks;
6779
6968
  }
6780
6969
  function testDocumentSeparator(state) {
@@ -6783,17 +6972,19 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
6783
6972
  if ((ch === 45 || ch === 46) && ch === state.input.charCodeAt(_position + 1) && ch === state.input.charCodeAt(_position + 2)) {
6784
6973
  _position += 3;
6785
6974
  ch = state.input.charCodeAt(_position);
6786
- if (ch === 0 || isWsOrEol(ch))
6975
+ if (ch === 0 || isWsOrEol(ch)) {
6787
6976
  return true;
6977
+ }
6788
6978
  }
6789
6979
  return false;
6790
6980
  }
6791
6981
  function writeFoldedLines(state, count) {
6792
- if (count === 1)
6982
+ if (count === 1) {
6793
6983
  state.result += " ";
6794
- else if (count > 1)
6795
- state.result += common.repeat(`
6984
+ } else if (count > 1) {
6985
+ state.result += common2.repeat(`
6796
6986
  `, count - 1);
6987
+ }
6797
6988
  }
6798
6989
  function readPlainScalar(state, nodeIndent, withinFlowCollection) {
6799
6990
  let captureStart;
@@ -6805,12 +6996,14 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
6805
6996
  const _kind = state.kind;
6806
6997
  const _result = state.result;
6807
6998
  let ch = state.input.charCodeAt(state.position);
6808
- 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)
6999
+ 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) {
6809
7000
  return false;
7001
+ }
6810
7002
  if (ch === 63 || ch === 45) {
6811
7003
  const following = state.input.charCodeAt(state.position + 1);
6812
- if (isWsOrEol(following) || withinFlowCollection && isFlowIndicator(following))
7004
+ if (isWsOrEol(following) || withinFlowCollection && isFlowIndicator(following)) {
6813
7005
  return false;
7006
+ }
6814
7007
  }
6815
7008
  state.kind = "scalar";
6816
7009
  state.result = "";
@@ -6819,14 +7012,17 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
6819
7012
  while (ch !== 0) {
6820
7013
  if (ch === 58) {
6821
7014
  const following = state.input.charCodeAt(state.position + 1);
6822
- if (isWsOrEol(following) || withinFlowCollection && isFlowIndicator(following))
7015
+ if (isWsOrEol(following) || withinFlowCollection && isFlowIndicator(following)) {
6823
7016
  break;
7017
+ }
6824
7018
  } else if (ch === 35) {
6825
- if (isWsOrEol(state.input.charCodeAt(state.position - 1)))
7019
+ const preceding = state.input.charCodeAt(state.position - 1);
7020
+ if (isWsOrEol(preceding)) {
6826
7021
  break;
6827
- } else if (state.position === state.lineStart && testDocumentSeparator(state) || withinFlowCollection && isFlowIndicator(ch))
7022
+ }
7023
+ } else if (state.position === state.lineStart && testDocumentSeparator(state) || withinFlowCollection && isFlowIndicator(ch)) {
6828
7024
  break;
6829
- else if (isEol(ch)) {
7025
+ } else if (isEol(ch)) {
6830
7026
  _line = state.line;
6831
7027
  _lineStart = state.lineStart;
6832
7028
  _lineIndent = state.lineIndent;
@@ -6849,13 +7045,15 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
6849
7045
  captureStart = captureEnd = state.position;
6850
7046
  hasPendingContent = false;
6851
7047
  }
6852
- if (!isWhiteSpace(ch))
7048
+ if (!isWhiteSpace(ch)) {
6853
7049
  captureEnd = state.position + 1;
7050
+ }
6854
7051
  ch = state.input.charCodeAt(++state.position);
6855
7052
  }
6856
7053
  captureSegment(state, captureStart, captureEnd, false);
6857
- if (state.result)
7054
+ if (state.result) {
6858
7055
  return true;
7056
+ }
6859
7057
  state.kind = _kind;
6860
7058
  state.result = _result;
6861
7059
  return false;
@@ -6864,13 +7062,14 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
6864
7062
  let captureStart;
6865
7063
  let captureEnd;
6866
7064
  let ch = state.input.charCodeAt(state.position);
6867
- if (ch !== 39)
7065
+ if (ch !== 39) {
6868
7066
  return false;
7067
+ }
6869
7068
  state.kind = "scalar";
6870
7069
  state.result = "";
6871
7070
  state.position++;
6872
7071
  captureStart = captureEnd = state.position;
6873
- while ((ch = state.input.charCodeAt(state.position)) !== 0)
7072
+ while ((ch = state.input.charCodeAt(state.position)) !== 0) {
6874
7073
  if (ch === 39) {
6875
7074
  captureSegment(state, captureStart, state.position, true);
6876
7075
  ch = state.input.charCodeAt(++state.position);
@@ -6878,19 +7077,22 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
6878
7077
  captureStart = state.position;
6879
7078
  state.position++;
6880
7079
  captureEnd = state.position;
6881
- } else
7080
+ } else {
6882
7081
  return true;
7082
+ }
6883
7083
  } else if (isEol(ch)) {
6884
7084
  captureSegment(state, captureStart, captureEnd, true);
6885
7085
  writeFoldedLines(state, skipSeparationSpace(state, false, nodeIndent));
6886
7086
  captureStart = captureEnd = state.position;
6887
- } else if (state.position === state.lineStart && testDocumentSeparator(state))
7087
+ } else if (state.position === state.lineStart && testDocumentSeparator(state)) {
6888
7088
  throwError(state, "unexpected end of the document within a single quoted scalar");
6889
- else {
7089
+ } else {
6890
7090
  state.position++;
6891
- if (!isWhiteSpace(ch))
7091
+ if (!isWhiteSpace(ch)) {
6892
7092
  captureEnd = state.position;
7093
+ }
6893
7094
  }
7095
+ }
6894
7096
  throwError(state, "unexpected end of the stream within a single quoted scalar");
6895
7097
  }
6896
7098
  function readDoubleQuotedScalar(state, nodeIndent) {
@@ -6898,13 +7100,14 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
6898
7100
  let captureEnd;
6899
7101
  let tmp;
6900
7102
  let ch = state.input.charCodeAt(state.position);
6901
- if (ch !== 34)
7103
+ if (ch !== 34) {
6902
7104
  return false;
7105
+ }
6903
7106
  state.kind = "scalar";
6904
7107
  state.result = "";
6905
7108
  state.position++;
6906
7109
  captureStart = captureEnd = state.position;
6907
- while ((ch = state.input.charCodeAt(state.position)) !== 0)
7110
+ while ((ch = state.input.charCodeAt(state.position)) !== 0) {
6908
7111
  if (ch === 34) {
6909
7112
  captureSegment(state, captureStart, state.position, true);
6910
7113
  state.position++;
@@ -6912,9 +7115,9 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
6912
7115
  } else if (ch === 92) {
6913
7116
  captureSegment(state, captureStart, state.position, true);
6914
7117
  ch = state.input.charCodeAt(++state.position);
6915
- if (isEol(ch))
7118
+ if (isEol(ch)) {
6916
7119
  skipSeparationSpace(state, false, nodeIndent);
6917
- else if (ch < 256 && simpleEscapeCheck[ch]) {
7120
+ } else if (ch < 256 && simpleEscapeCheck[ch]) {
6918
7121
  state.result += simpleEscapeMap[ch];
6919
7122
  state.position++;
6920
7123
  } else if ((tmp = escapedHexLen(ch)) > 0) {
@@ -6922,27 +7125,31 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
6922
7125
  let hexResult = 0;
6923
7126
  for (;hexLength > 0; hexLength--) {
6924
7127
  ch = state.input.charCodeAt(++state.position);
6925
- if ((tmp = fromHexCode(ch)) >= 0)
7128
+ if ((tmp = fromHexCode(ch)) >= 0) {
6926
7129
  hexResult = (hexResult << 4) + tmp;
6927
- else
7130
+ } else {
6928
7131
  throwError(state, "expected hexadecimal character");
7132
+ }
6929
7133
  }
6930
7134
  state.result += charFromCodepoint(hexResult);
6931
7135
  state.position++;
6932
- } else
7136
+ } else {
6933
7137
  throwError(state, "unknown escape sequence");
7138
+ }
6934
7139
  captureStart = captureEnd = state.position;
6935
7140
  } else if (isEol(ch)) {
6936
7141
  captureSegment(state, captureStart, captureEnd, true);
6937
7142
  writeFoldedLines(state, skipSeparationSpace(state, false, nodeIndent));
6938
7143
  captureStart = captureEnd = state.position;
6939
- } else if (state.position === state.lineStart && testDocumentSeparator(state))
7144
+ } else if (state.position === state.lineStart && testDocumentSeparator(state)) {
6940
7145
  throwError(state, "unexpected end of the document within a double quoted scalar");
6941
- else {
7146
+ } else {
6942
7147
  state.position++;
6943
- if (!isWhiteSpace(ch))
7148
+ if (!isWhiteSpace(ch)) {
6944
7149
  captureEnd = state.position;
7150
+ }
6945
7151
  }
7152
+ }
6946
7153
  throwError(state, "unexpected end of the stream within a double quoted scalar");
6947
7154
  }
6948
7155
  function readFlowCollection(state, nodeIndent) {
@@ -6957,7 +7164,7 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
6957
7164
  let isPair;
6958
7165
  let isExplicitPair;
6959
7166
  let isMapping;
6960
- const overridableKeys = Object.create(null);
7167
+ const overridableKeys = /* @__PURE__ */ Object.create(null);
6961
7168
  let keyNode;
6962
7169
  let keyTag;
6963
7170
  let valueNode;
@@ -6970,10 +7177,12 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
6970
7177
  terminator = 125;
6971
7178
  isMapping = true;
6972
7179
  _result = {};
6973
- } else
7180
+ } else {
6974
7181
  return false;
6975
- if (state.anchor !== null)
7182
+ }
7183
+ if (state.anchor !== null) {
6976
7184
  storeAnchor(state, state.anchor, _result);
7185
+ }
6977
7186
  ch = state.input.charCodeAt(++state.position);
6978
7187
  while (ch !== 0) {
6979
7188
  skipSeparationSpace(state, true, nodeIndent);
@@ -6985,14 +7194,16 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
6985
7194
  state.kind = isMapping ? "mapping" : "sequence";
6986
7195
  state.result = _result;
6987
7196
  return true;
6988
- } else if (!readNext)
7197
+ } else if (!readNext) {
6989
7198
  throwError(state, "missed comma between flow collection entries");
6990
- else if (ch === 44)
7199
+ } else if (ch === 44) {
6991
7200
  throwError(state, "expected the node content, but found ','");
7201
+ }
6992
7202
  keyTag = keyNode = valueNode = null;
6993
7203
  isPair = isExplicitPair = false;
6994
7204
  if (ch === 63) {
6995
- if (isWsOrEol(state.input.charCodeAt(state.position + 1))) {
7205
+ const following = state.input.charCodeAt(state.position + 1);
7206
+ if (isWsOrEol(following)) {
6996
7207
  isPair = isExplicitPair = true;
6997
7208
  state.position++;
6998
7209
  skipSeparationSpace(state, true, nodeIndent);
@@ -7013,19 +7224,21 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
7013
7224
  composeNode(state, nodeIndent, CONTEXT_FLOW_IN, false, true);
7014
7225
  valueNode = state.result;
7015
7226
  }
7016
- if (isMapping)
7227
+ if (isMapping) {
7017
7228
  storeMappingPair(state, _result, overridableKeys, keyTag, keyNode, valueNode, _line, _lineStart, _pos);
7018
- else if (isPair)
7229
+ } else if (isPair) {
7019
7230
  _result.push(storeMappingPair(state, null, overridableKeys, keyTag, keyNode, valueNode, _line, _lineStart, _pos));
7020
- else
7231
+ } else {
7021
7232
  _result.push(keyNode);
7233
+ }
7022
7234
  skipSeparationSpace(state, true, nodeIndent);
7023
7235
  ch = state.input.charCodeAt(state.position);
7024
7236
  if (ch === 44) {
7025
7237
  readNext = true;
7026
7238
  ch = state.input.charCodeAt(++state.position);
7027
- } else
7239
+ } else {
7028
7240
  readNext = false;
7241
+ }
7029
7242
  }
7030
7243
  throwError(state, "unexpected end of the stream within a flow collection");
7031
7244
  }
@@ -7039,40 +7252,45 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
7039
7252
  let atMoreIndented = false;
7040
7253
  let tmp;
7041
7254
  let ch = state.input.charCodeAt(state.position);
7042
- if (ch === 124)
7255
+ if (ch === 124) {
7043
7256
  folding = false;
7044
- else if (ch === 62)
7257
+ } else if (ch === 62) {
7045
7258
  folding = true;
7046
- else
7259
+ } else {
7047
7260
  return false;
7261
+ }
7048
7262
  state.kind = "scalar";
7049
7263
  state.result = "";
7050
7264
  while (ch !== 0) {
7051
7265
  ch = state.input.charCodeAt(++state.position);
7052
- if (ch === 43 || ch === 45)
7053
- if (CHOMPING_CLIP === chomping)
7266
+ if (ch === 43 || ch === 45) {
7267
+ if (CHOMPING_CLIP === chomping) {
7054
7268
  chomping = ch === 43 ? CHOMPING_KEEP : CHOMPING_STRIP;
7055
- else
7269
+ } else {
7056
7270
  throwError(state, "repeat of a chomping mode identifier");
7057
- else if ((tmp = fromDecimalCode(ch)) >= 0)
7058
- if (tmp === 0)
7271
+ }
7272
+ } else if ((tmp = fromDecimalCode(ch)) >= 0) {
7273
+ if (tmp === 0) {
7059
7274
  throwError(state, "bad explicit indentation width of a block scalar; it cannot be less than one");
7060
- else if (!detectedIndent) {
7275
+ } else if (!detectedIndent) {
7061
7276
  textIndent = nodeIndent + tmp - 1;
7062
7277
  detectedIndent = true;
7063
- } else
7278
+ } else {
7064
7279
  throwError(state, "repeat of an indentation width identifier");
7065
- else
7280
+ }
7281
+ } else {
7066
7282
  break;
7283
+ }
7067
7284
  }
7068
7285
  if (isWhiteSpace(ch)) {
7069
- do
7286
+ do {
7070
7287
  ch = state.input.charCodeAt(++state.position);
7071
- while (isWhiteSpace(ch));
7072
- if (ch === 35)
7073
- do
7288
+ } while (isWhiteSpace(ch));
7289
+ if (ch === 35) {
7290
+ do {
7074
7291
  ch = state.input.charCodeAt(++state.position);
7075
- while (!isEol(ch) && ch !== 0);
7292
+ } while (!isEol(ch) && ch !== 0);
7293
+ }
7076
7294
  }
7077
7295
  while (ch !== 0) {
7078
7296
  readLineBreak(state);
@@ -7082,49 +7300,56 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
7082
7300
  state.lineIndent++;
7083
7301
  ch = state.input.charCodeAt(++state.position);
7084
7302
  }
7085
- if (!detectedIndent && state.lineIndent > textIndent)
7303
+ if (!detectedIndent && state.lineIndent > textIndent) {
7086
7304
  textIndent = state.lineIndent;
7305
+ }
7087
7306
  if (isEol(ch)) {
7088
7307
  emptyLines++;
7089
7308
  continue;
7090
7309
  }
7091
- if (!detectedIndent && textIndent === 0)
7310
+ if (!detectedIndent && textIndent === 0) {
7092
7311
  throwError(state, "missing indentation for block scalar");
7312
+ }
7093
7313
  if (state.lineIndent < textIndent) {
7094
- if (chomping === CHOMPING_KEEP)
7095
- state.result += common.repeat(`
7314
+ if (chomping === CHOMPING_KEEP) {
7315
+ state.result += common2.repeat(`
7096
7316
  `, didReadContent ? 1 + emptyLines : emptyLines);
7097
- else if (chomping === CHOMPING_CLIP) {
7098
- if (didReadContent)
7317
+ } else if (chomping === CHOMPING_CLIP) {
7318
+ if (didReadContent) {
7099
7319
  state.result += `
7100
7320
  `;
7321
+ }
7101
7322
  }
7102
7323
  break;
7103
7324
  }
7104
- if (folding)
7325
+ if (folding) {
7105
7326
  if (isWhiteSpace(ch)) {
7106
7327
  atMoreIndented = true;
7107
- state.result += common.repeat(`
7328
+ state.result += common2.repeat(`
7108
7329
  `, didReadContent ? 1 + emptyLines : emptyLines);
7109
7330
  } else if (atMoreIndented) {
7110
7331
  atMoreIndented = false;
7111
- state.result += common.repeat(`
7332
+ state.result += common2.repeat(`
7112
7333
  `, emptyLines + 1);
7113
7334
  } else if (emptyLines === 0) {
7114
- if (didReadContent)
7335
+ if (didReadContent) {
7115
7336
  state.result += " ";
7116
- } else
7117
- state.result += common.repeat(`
7337
+ }
7338
+ } else {
7339
+ state.result += common2.repeat(`
7118
7340
  `, emptyLines);
7119
- else
7120
- state.result += common.repeat(`
7341
+ }
7342
+ } else {
7343
+ state.result += common2.repeat(`
7121
7344
  `, didReadContent ? 1 + emptyLines : emptyLines);
7345
+ }
7122
7346
  didReadContent = true;
7123
7347
  detectedIndent = true;
7124
7348
  emptyLines = 0;
7125
7349
  const captureStart = state.position;
7126
- while (!isEol(ch) && ch !== 0)
7350
+ while (!isEol(ch) && ch !== 0) {
7127
7351
  ch = state.input.charCodeAt(++state.position);
7352
+ }
7128
7353
  captureSegment(state, captureStart, state.position, false);
7129
7354
  }
7130
7355
  return true;
@@ -7136,18 +7361,22 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
7136
7361
  let detected = false;
7137
7362
  if (state.firstTabInLine !== -1)
7138
7363
  return false;
7139
- if (state.anchor !== null)
7364
+ if (state.anchor !== null) {
7140
7365
  storeAnchor(state, state.anchor, _result);
7366
+ }
7141
7367
  let ch = state.input.charCodeAt(state.position);
7142
7368
  while (ch !== 0) {
7143
7369
  if (state.firstTabInLine !== -1) {
7144
7370
  state.position = state.firstTabInLine;
7145
7371
  throwError(state, "tab characters must not be used in indentation");
7146
7372
  }
7147
- if (ch !== 45)
7373
+ if (ch !== 45) {
7148
7374
  break;
7149
- if (!isWsOrEol(state.input.charCodeAt(state.position + 1)))
7375
+ }
7376
+ const following = state.input.charCodeAt(state.position + 1);
7377
+ if (!isWsOrEol(following)) {
7150
7378
  break;
7379
+ }
7151
7380
  detected = true;
7152
7381
  state.position++;
7153
7382
  if (skipSeparationSpace(state, true, -1)) {
@@ -7162,10 +7391,11 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
7162
7391
  _result.push(state.result);
7163
7392
  skipSeparationSpace(state, true, -1);
7164
7393
  ch = state.input.charCodeAt(state.position);
7165
- if ((state.line === _line || state.lineIndent > nodeIndent) && ch !== 0)
7394
+ if ((state.line === _line || state.lineIndent > nodeIndent) && ch !== 0) {
7166
7395
  throwError(state, "bad indentation of a sequence entry");
7167
- else if (state.lineIndent < nodeIndent)
7396
+ } else if (state.lineIndent < nodeIndent) {
7168
7397
  break;
7398
+ }
7169
7399
  }
7170
7400
  if (detected) {
7171
7401
  state.tag = _tag;
@@ -7184,7 +7414,7 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
7184
7414
  const _tag = state.tag;
7185
7415
  const _anchor = state.anchor;
7186
7416
  const _result = {};
7187
- const overridableKeys = Object.create(null);
7417
+ const overridableKeys = /* @__PURE__ */ Object.create(null);
7188
7418
  let keyTag = null;
7189
7419
  let keyNode = null;
7190
7420
  let valueNode = null;
@@ -7192,8 +7422,9 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
7192
7422
  let detected = false;
7193
7423
  if (state.firstTabInLine !== -1)
7194
7424
  return false;
7195
- if (state.anchor !== null)
7425
+ if (state.anchor !== null) {
7196
7426
  storeAnchor(state, state.anchor, _result);
7427
+ }
7197
7428
  let ch = state.input.charCodeAt(state.position);
7198
7429
  while (ch !== 0) {
7199
7430
  if (!atExplicitKey && state.firstTabInLine !== -1) {
@@ -7214,24 +7445,28 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
7214
7445
  } else if (atExplicitKey) {
7215
7446
  atExplicitKey = false;
7216
7447
  allowCompact = true;
7217
- } else
7448
+ } else {
7218
7449
  throwError(state, "incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line");
7450
+ }
7219
7451
  state.position += 1;
7220
7452
  ch = following;
7221
7453
  } else {
7222
7454
  _keyLine = state.line;
7223
7455
  _keyLineStart = state.lineStart;
7224
7456
  _keyPos = state.position;
7225
- if (!composeNode(state, flowIndent, CONTEXT_FLOW_OUT, false, true))
7457
+ if (!composeNode(state, flowIndent, CONTEXT_FLOW_OUT, false, true)) {
7226
7458
  break;
7459
+ }
7227
7460
  if (state.line === _line) {
7228
7461
  ch = state.input.charCodeAt(state.position);
7229
- while (isWhiteSpace(ch))
7462
+ while (isWhiteSpace(ch)) {
7230
7463
  ch = state.input.charCodeAt(++state.position);
7464
+ }
7231
7465
  if (ch === 58) {
7232
7466
  ch = state.input.charCodeAt(++state.position);
7233
- if (!isWsOrEol(ch))
7467
+ if (!isWsOrEol(ch)) {
7234
7468
  throwError(state, "a whitespace character is expected after the key-value separator within a block mapping");
7469
+ }
7235
7470
  if (atExplicitKey) {
7236
7471
  storeMappingPair(state, _result, overridableKeys, keyTag, keyNode, null, _keyLine, _keyLineStart, _keyPos);
7237
7472
  keyTag = keyNode = valueNode = null;
@@ -7241,16 +7476,16 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
7241
7476
  allowCompact = false;
7242
7477
  keyTag = state.tag;
7243
7478
  keyNode = state.result;
7244
- } else if (detected)
7479
+ } else if (detected) {
7245
7480
  throwError(state, "can not read an implicit mapping pair; a colon is missed");
7246
- else {
7481
+ } else {
7247
7482
  state.tag = _tag;
7248
7483
  state.anchor = _anchor;
7249
7484
  return true;
7250
7485
  }
7251
- } else if (detected)
7486
+ } else if (detected) {
7252
7487
  throwError(state, "can not read a block mapping entry; a multiline key may not be an implicit key");
7253
- else {
7488
+ } else {
7254
7489
  state.tag = _tag;
7255
7490
  state.anchor = _anchor;
7256
7491
  return true;
@@ -7262,11 +7497,13 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
7262
7497
  _keyLineStart = state.lineStart;
7263
7498
  _keyPos = state.position;
7264
7499
  }
7265
- if (composeNode(state, nodeIndent, CONTEXT_BLOCK_OUT, true, allowCompact))
7266
- if (atExplicitKey)
7500
+ if (composeNode(state, nodeIndent, CONTEXT_BLOCK_OUT, true, allowCompact)) {
7501
+ if (atExplicitKey) {
7267
7502
  keyNode = state.result;
7268
- else
7503
+ } else {
7269
7504
  valueNode = state.result;
7505
+ }
7506
+ }
7270
7507
  if (!atExplicitKey) {
7271
7508
  storeMappingPair(state, _result, overridableKeys, keyTag, keyNode, valueNode, _keyLine, _keyLineStart, _keyPos);
7272
7509
  keyTag = keyNode = valueNode = null;
@@ -7274,13 +7511,15 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
7274
7511
  skipSeparationSpace(state, true, -1);
7275
7512
  ch = state.input.charCodeAt(state.position);
7276
7513
  }
7277
- if ((state.line === _line || state.lineIndent > nodeIndent) && ch !== 0)
7514
+ if ((state.line === _line || state.lineIndent > nodeIndent) && ch !== 0) {
7278
7515
  throwError(state, "bad indentation of a mapping entry");
7279
- else if (state.lineIndent < nodeIndent)
7516
+ } else if (state.lineIndent < nodeIndent) {
7280
7517
  break;
7518
+ }
7281
7519
  }
7282
- if (atExplicitKey)
7520
+ if (atExplicitKey) {
7283
7521
  storeMappingPair(state, _result, overridableKeys, keyTag, keyNode, null, _keyLine, _keyLineStart, _keyPos);
7522
+ }
7284
7523
  if (detected) {
7285
7524
  state.tag = _tag;
7286
7525
  state.anchor = _anchor;
@@ -7297,8 +7536,9 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
7297
7536
  let ch = state.input.charCodeAt(state.position);
7298
7537
  if (ch !== 33)
7299
7538
  return false;
7300
- if (state.tag !== null)
7539
+ if (state.tag !== null) {
7301
7540
  throwError(state, "duplication of a tag property");
7541
+ }
7302
7542
  ch = state.input.charCodeAt(++state.position);
7303
7543
  if (ch === 60) {
7304
7544
  isVerbatim = true;
@@ -7307,66 +7547,77 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
7307
7547
  isNamed = true;
7308
7548
  tagHandle = "!!";
7309
7549
  ch = state.input.charCodeAt(++state.position);
7310
- } else
7550
+ } else {
7311
7551
  tagHandle = "!";
7552
+ }
7312
7553
  let _position = state.position;
7313
7554
  if (isVerbatim) {
7314
- do
7555
+ do {
7315
7556
  ch = state.input.charCodeAt(++state.position);
7316
- while (ch !== 0 && ch !== 62);
7557
+ } while (ch !== 0 && ch !== 62);
7317
7558
  if (state.position < state.length) {
7318
7559
  tagName = state.input.slice(_position, state.position);
7319
7560
  ch = state.input.charCodeAt(++state.position);
7320
- } else
7561
+ } else {
7321
7562
  throwError(state, "unexpected end of the stream within a verbatim tag");
7563
+ }
7322
7564
  } else {
7323
7565
  while (ch !== 0 && !isWsOrEol(ch)) {
7324
- if (ch === 33)
7566
+ if (ch === 33) {
7325
7567
  if (!isNamed) {
7326
7568
  tagHandle = state.input.slice(_position - 1, state.position + 1);
7327
- if (!PATTERN_TAG_HANDLE.test(tagHandle))
7569
+ if (!PATTERN_TAG_HANDLE.test(tagHandle)) {
7328
7570
  throwError(state, "named tag handle cannot contain such characters");
7571
+ }
7329
7572
  isNamed = true;
7330
7573
  _position = state.position + 1;
7331
- } else
7574
+ } else {
7332
7575
  throwError(state, "tag suffix cannot contain exclamation marks");
7576
+ }
7577
+ }
7333
7578
  ch = state.input.charCodeAt(++state.position);
7334
7579
  }
7335
7580
  tagName = state.input.slice(_position, state.position);
7336
- if (PATTERN_FLOW_INDICATORS.test(tagName))
7581
+ if (PATTERN_FLOW_INDICATORS.test(tagName)) {
7337
7582
  throwError(state, "tag suffix cannot contain flow indicator characters");
7583
+ }
7338
7584
  }
7339
- if (tagName && !PATTERN_TAG_URI.test(tagName))
7585
+ if (tagName && !PATTERN_TAG_URI.test(tagName)) {
7340
7586
  throwError(state, "tag name cannot contain such characters: " + tagName);
7587
+ }
7341
7588
  try {
7342
7589
  tagName = decodeURIComponent(tagName);
7343
7590
  } catch (err) {
7344
7591
  throwError(state, "tag name is malformed: " + tagName);
7345
7592
  }
7346
- if (isVerbatim)
7593
+ if (isVerbatim) {
7347
7594
  state.tag = tagName;
7348
- else if (_hasOwnProperty.call(state.tagMap, tagHandle))
7595
+ } else if (_hasOwnProperty.call(state.tagMap, tagHandle)) {
7349
7596
  state.tag = state.tagMap[tagHandle] + tagName;
7350
- else if (tagHandle === "!")
7597
+ } else if (tagHandle === "!") {
7351
7598
  state.tag = "!" + tagName;
7352
- else if (tagHandle === "!!")
7599
+ } else if (tagHandle === "!!") {
7353
7600
  state.tag = "tag:yaml.org,2002:" + tagName;
7354
- else
7601
+ } else {
7355
7602
  throwError(state, 'undeclared tag handle "' + tagHandle + '"');
7603
+ }
7356
7604
  return true;
7357
7605
  }
7358
7606
  function readAnchorProperty(state) {
7359
7607
  let ch = state.input.charCodeAt(state.position);
7360
7608
  if (ch !== 38)
7361
7609
  return false;
7362
- if (state.anchor !== null)
7610
+ if (state.anchor !== null) {
7363
7611
  throwError(state, "duplication of an anchor property");
7612
+ }
7364
7613
  ch = state.input.charCodeAt(++state.position);
7365
7614
  const _position = state.position;
7366
- while (ch !== 0 && !isWsOrEol(ch) && !isFlowIndicator(ch))
7615
+ while (ch !== 0 && !isWsOrEol(ch) && !isFlowIndicator(ch)) {
7367
7616
  ch = state.input.charCodeAt(++state.position);
7368
- if (state.position === _position)
7617
+ }
7618
+ if (state.position === _position) {
7369
7619
  throwError(state, "name of an anchor node must contain at least one character");
7620
+ }
7370
7621
  state.anchor = state.input.slice(_position, state.position);
7371
7622
  return true;
7372
7623
  }
@@ -7376,13 +7627,16 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
7376
7627
  return false;
7377
7628
  ch = state.input.charCodeAt(++state.position);
7378
7629
  const _position = state.position;
7379
- while (ch !== 0 && !isWsOrEol(ch) && !isFlowIndicator(ch))
7630
+ while (ch !== 0 && !isWsOrEol(ch) && !isFlowIndicator(ch)) {
7380
7631
  ch = state.input.charCodeAt(++state.position);
7381
- if (state.position === _position)
7632
+ }
7633
+ if (state.position === _position) {
7382
7634
  throwError(state, "name of an alias node must contain at least one character");
7635
+ }
7383
7636
  const alias = state.input.slice(_position, state.position);
7384
- if (!_hasOwnProperty.call(state.anchorMap, alias))
7637
+ if (!_hasOwnProperty.call(state.anchorMap, alias)) {
7385
7638
  throwError(state, 'unidentified alias "' + alias + '"');
7639
+ }
7386
7640
  state.result = state.anchorMap[alias];
7387
7641
  skipSeparationSpace(state, true, -1);
7388
7642
  return true;
@@ -7410,14 +7664,16 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
7410
7664
  let atNewLine = false;
7411
7665
  let hasContent = false;
7412
7666
  let propertyStart = null;
7413
- let type;
7667
+ let type2;
7414
7668
  let flowIndent;
7415
7669
  let blockIndent;
7416
- if (state.depth >= state.maxDepth)
7670
+ if (state.depth >= state.maxDepth) {
7417
7671
  throwError(state, "nesting exceeded maxDepth (" + state.maxDepth + ")");
7672
+ }
7418
7673
  state.depth += 1;
7419
- if (state.listener !== null)
7674
+ if (state.listener !== null) {
7420
7675
  state.listener("open", state);
7676
+ }
7421
7677
  state.tag = null;
7422
7678
  state.anchor = null;
7423
7679
  state.kind = null;
@@ -7426,110 +7682,131 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
7426
7682
  if (allowToSeek) {
7427
7683
  if (skipSeparationSpace(state, true, -1)) {
7428
7684
  atNewLine = true;
7429
- if (state.lineIndent > parentIndent)
7685
+ if (state.lineIndent > parentIndent) {
7430
7686
  indentStatus = 1;
7431
- else if (state.lineIndent === parentIndent)
7687
+ } else if (state.lineIndent === parentIndent) {
7432
7688
  indentStatus = 0;
7433
- else if (state.lineIndent < parentIndent)
7689
+ } else if (state.lineIndent < parentIndent) {
7434
7690
  indentStatus = -1;
7691
+ }
7435
7692
  }
7436
7693
  }
7437
- if (indentStatus === 1)
7694
+ if (indentStatus === 1) {
7438
7695
  while (true) {
7439
7696
  const ch = state.input.charCodeAt(state.position);
7440
7697
  const propertyState = snapshotState(state);
7441
- if (atNewLine && (ch === 33 && state.tag !== null || ch === 38 && state.anchor !== null))
7698
+ if (atNewLine && (ch === 33 && state.tag !== null || ch === 38 && state.anchor !== null)) {
7442
7699
  break;
7443
- if (!readTagProperty(state) && !readAnchorProperty(state))
7700
+ }
7701
+ if (!readTagProperty(state) && !readAnchorProperty(state)) {
7444
7702
  break;
7445
- if (propertyStart === null)
7703
+ }
7704
+ if (propertyStart === null) {
7446
7705
  propertyStart = propertyState;
7706
+ }
7447
7707
  if (skipSeparationSpace(state, true, -1)) {
7448
7708
  atNewLine = true;
7449
7709
  allowBlockCollections = allowBlockStyles;
7450
- if (state.lineIndent > parentIndent)
7710
+ if (state.lineIndent > parentIndent) {
7451
7711
  indentStatus = 1;
7452
- else if (state.lineIndent === parentIndent)
7712
+ } else if (state.lineIndent === parentIndent) {
7453
7713
  indentStatus = 0;
7454
- else if (state.lineIndent < parentIndent)
7714
+ } else if (state.lineIndent < parentIndent) {
7455
7715
  indentStatus = -1;
7456
- } else
7716
+ }
7717
+ } else {
7457
7718
  allowBlockCollections = false;
7719
+ }
7458
7720
  }
7459
- if (allowBlockCollections)
7721
+ }
7722
+ if (allowBlockCollections) {
7460
7723
  allowBlockCollections = atNewLine || allowCompact;
7724
+ }
7461
7725
  if (indentStatus === 1 || CONTEXT_BLOCK_OUT === nodeContext) {
7462
- if (CONTEXT_FLOW_IN === nodeContext || CONTEXT_FLOW_OUT === nodeContext)
7726
+ if (CONTEXT_FLOW_IN === nodeContext || CONTEXT_FLOW_OUT === nodeContext) {
7463
7727
  flowIndent = parentIndent;
7464
- else
7728
+ } else {
7465
7729
  flowIndent = parentIndent + 1;
7730
+ }
7466
7731
  blockIndent = state.position - state.lineStart;
7467
- if (indentStatus === 1)
7468
- if (allowBlockCollections && (readBlockSequence(state, blockIndent) || readBlockMapping(state, blockIndent, flowIndent)) || readFlowCollection(state, flowIndent))
7732
+ if (indentStatus === 1) {
7733
+ if (allowBlockCollections && (readBlockSequence(state, blockIndent) || readBlockMapping(state, blockIndent, flowIndent)) || readFlowCollection(state, flowIndent)) {
7469
7734
  hasContent = true;
7470
- else {
7735
+ } else {
7471
7736
  const ch = state.input.charCodeAt(state.position);
7472
- if (propertyStart !== null && allowBlockStyles && !allowBlockCollections && ch !== 124 && ch !== 62 && tryReadBlockMappingFromProperty(state, propertyStart, propertyStart.position - propertyStart.lineStart, flowIndent))
7737
+ if (propertyStart !== null && allowBlockStyles && !allowBlockCollections && ch !== 124 && ch !== 62 && tryReadBlockMappingFromProperty(state, propertyStart, propertyStart.position - propertyStart.lineStart, flowIndent)) {
7473
7738
  hasContent = true;
7474
- else if (allowBlockScalars && readBlockScalar(state, flowIndent) || readSingleQuotedScalar(state, flowIndent) || readDoubleQuotedScalar(state, flowIndent))
7739
+ } else if (allowBlockScalars && readBlockScalar(state, flowIndent) || readSingleQuotedScalar(state, flowIndent) || readDoubleQuotedScalar(state, flowIndent)) {
7475
7740
  hasContent = true;
7476
- else if (readAlias(state)) {
7741
+ } else if (readAlias(state)) {
7477
7742
  hasContent = true;
7478
- if (state.tag !== null || state.anchor !== null)
7743
+ if (state.tag !== null || state.anchor !== null) {
7479
7744
  throwError(state, "alias node should not have any properties");
7745
+ }
7480
7746
  } else if (readPlainScalar(state, flowIndent, CONTEXT_FLOW_IN === nodeContext)) {
7481
7747
  hasContent = true;
7482
- if (state.tag === null)
7748
+ if (state.tag === null) {
7483
7749
  state.tag = "?";
7750
+ }
7484
7751
  }
7485
- if (state.anchor !== null)
7752
+ if (state.anchor !== null) {
7486
7753
  storeAnchor(state, state.anchor, state.result);
7754
+ }
7487
7755
  }
7488
- else if (indentStatus === 0)
7756
+ } else if (indentStatus === 0) {
7489
7757
  hasContent = allowBlockCollections && readBlockSequence(state, blockIndent);
7758
+ }
7490
7759
  }
7491
7760
  if (state.tag === null) {
7492
- if (state.anchor !== null)
7761
+ if (state.anchor !== null) {
7493
7762
  storeAnchor(state, state.anchor, state.result);
7763
+ }
7494
7764
  } else if (state.tag === "?") {
7495
- if (state.result !== null && state.kind !== "scalar")
7765
+ if (state.result !== null && state.kind !== "scalar") {
7496
7766
  throwError(state, 'unacceptable node kind for !<?> tag; it should be "scalar", not "' + state.kind + '"');
7767
+ }
7497
7768
  for (let typeIndex = 0, typeQuantity = state.implicitTypes.length;typeIndex < typeQuantity; typeIndex += 1) {
7498
- type = state.implicitTypes[typeIndex];
7499
- if (type.resolve(state.result)) {
7500
- state.result = type.construct(state.result);
7501
- state.tag = type.tag;
7502
- if (state.anchor !== null)
7769
+ type2 = state.implicitTypes[typeIndex];
7770
+ if (type2.resolve(state.result)) {
7771
+ state.result = type2.construct(state.result);
7772
+ state.tag = type2.tag;
7773
+ if (state.anchor !== null) {
7503
7774
  storeAnchor(state, state.anchor, state.result);
7775
+ }
7504
7776
  break;
7505
7777
  }
7506
7778
  }
7507
7779
  } else if (state.tag !== "!") {
7508
- if (_hasOwnProperty.call(state.typeMap[state.kind || "fallback"], state.tag))
7509
- type = state.typeMap[state.kind || "fallback"][state.tag];
7510
- else {
7511
- type = null;
7780
+ if (_hasOwnProperty.call(state.typeMap[state.kind || "fallback"], state.tag)) {
7781
+ type2 = state.typeMap[state.kind || "fallback"][state.tag];
7782
+ } else {
7783
+ type2 = null;
7512
7784
  const typeList = state.typeMap.multi[state.kind || "fallback"];
7513
- for (let typeIndex = 0, typeQuantity = typeList.length;typeIndex < typeQuantity; typeIndex += 1)
7785
+ for (let typeIndex = 0, typeQuantity = typeList.length;typeIndex < typeQuantity; typeIndex += 1) {
7514
7786
  if (state.tag.slice(0, typeList[typeIndex].tag.length) === typeList[typeIndex].tag) {
7515
- type = typeList[typeIndex];
7787
+ type2 = typeList[typeIndex];
7516
7788
  break;
7517
7789
  }
7790
+ }
7518
7791
  }
7519
- if (!type)
7792
+ if (!type2) {
7520
7793
  throwError(state, "unknown tag !<" + state.tag + ">");
7521
- if (state.result !== null && type.kind !== state.kind)
7522
- throwError(state, "unacceptable node kind for !<" + state.tag + '> tag; it should be "' + type.kind + '", not "' + state.kind + '"');
7523
- if (!type.resolve(state.result, state.tag))
7794
+ }
7795
+ if (state.result !== null && type2.kind !== state.kind) {
7796
+ throwError(state, "unacceptable node kind for !<" + state.tag + '> tag; it should be "' + type2.kind + '", not "' + state.kind + '"');
7797
+ }
7798
+ if (!type2.resolve(state.result, state.tag)) {
7524
7799
  throwError(state, "cannot resolve a node with !<" + state.tag + "> explicit tag");
7525
- else {
7526
- state.result = type.construct(state.result, state.tag);
7527
- if (state.anchor !== null)
7800
+ } else {
7801
+ state.result = type2.construct(state.result, state.tag);
7802
+ if (state.anchor !== null) {
7528
7803
  storeAnchor(state, state.anchor, state.result);
7804
+ }
7529
7805
  }
7530
7806
  }
7531
- if (state.listener !== null)
7807
+ if (state.listener !== null) {
7532
7808
  state.listener("close", state);
7809
+ }
7533
7810
  state.depth -= 1;
7534
7811
  return state.tag !== null || state.anchor !== null || hasContent;
7535
7812
  }
@@ -7539,55 +7816,63 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
7539
7816
  let ch;
7540
7817
  state.version = null;
7541
7818
  state.checkLineBreaks = state.legacy;
7542
- state.tagMap = Object.create(null);
7543
- state.anchorMap = Object.create(null);
7819
+ state.tagMap = /* @__PURE__ */ Object.create(null);
7820
+ state.anchorMap = /* @__PURE__ */ Object.create(null);
7544
7821
  while ((ch = state.input.charCodeAt(state.position)) !== 0) {
7545
7822
  skipSeparationSpace(state, true, -1);
7546
7823
  ch = state.input.charCodeAt(state.position);
7547
- if (state.lineIndent > 0 || ch !== 37)
7824
+ if (state.lineIndent > 0 || ch !== 37) {
7548
7825
  break;
7826
+ }
7549
7827
  hasDirectives = true;
7550
7828
  ch = state.input.charCodeAt(++state.position);
7551
7829
  let _position = state.position;
7552
- while (ch !== 0 && !isWsOrEol(ch))
7830
+ while (ch !== 0 && !isWsOrEol(ch)) {
7553
7831
  ch = state.input.charCodeAt(++state.position);
7832
+ }
7554
7833
  const directiveName = state.input.slice(_position, state.position);
7555
7834
  const directiveArgs = [];
7556
- if (directiveName.length < 1)
7835
+ if (directiveName.length < 1) {
7557
7836
  throwError(state, "directive name must not be less than one character in length");
7837
+ }
7558
7838
  while (ch !== 0) {
7559
- while (isWhiteSpace(ch))
7839
+ while (isWhiteSpace(ch)) {
7560
7840
  ch = state.input.charCodeAt(++state.position);
7841
+ }
7561
7842
  if (ch === 35) {
7562
- do
7843
+ do {
7563
7844
  ch = state.input.charCodeAt(++state.position);
7564
- while (ch !== 0 && !isEol(ch));
7845
+ } while (ch !== 0 && !isEol(ch));
7565
7846
  break;
7566
7847
  }
7567
7848
  if (isEol(ch))
7568
7849
  break;
7569
7850
  _position = state.position;
7570
- while (ch !== 0 && !isWsOrEol(ch))
7851
+ while (ch !== 0 && !isWsOrEol(ch)) {
7571
7852
  ch = state.input.charCodeAt(++state.position);
7853
+ }
7572
7854
  directiveArgs.push(state.input.slice(_position, state.position));
7573
7855
  }
7574
7856
  if (ch !== 0)
7575
7857
  readLineBreak(state);
7576
- if (_hasOwnProperty.call(directiveHandlers, directiveName))
7858
+ if (_hasOwnProperty.call(directiveHandlers, directiveName)) {
7577
7859
  directiveHandlers[directiveName](state, directiveName, directiveArgs);
7578
- else
7860
+ } else {
7579
7861
  throwWarning(state, 'unknown document directive "' + directiveName + '"');
7862
+ }
7580
7863
  }
7581
7864
  skipSeparationSpace(state, true, -1);
7582
7865
  if (state.lineIndent === 0 && state.input.charCodeAt(state.position) === 45 && state.input.charCodeAt(state.position + 1) === 45 && state.input.charCodeAt(state.position + 2) === 45) {
7583
7866
  state.position += 3;
7584
7867
  skipSeparationSpace(state, true, -1);
7585
- } else if (hasDirectives)
7868
+ } else if (hasDirectives) {
7586
7869
  throwError(state, "directives end mark is expected");
7870
+ }
7587
7871
  composeNode(state, state.lineIndent - 1, CONTEXT_BLOCK_OUT, false, true);
7588
7872
  skipSeparationSpace(state, true, -1);
7589
- if (state.checkLineBreaks && PATTERN_NON_ASCII_LINE_BREAKS.test(state.input.slice(documentStart, state.position)))
7873
+ if (state.checkLineBreaks && PATTERN_NON_ASCII_LINE_BREAKS.test(state.input.slice(documentStart, state.position))) {
7590
7874
  throwWarning(state, "non-ASCII line breaks are interpreted as content");
7875
+ }
7591
7876
  state.documents.push(state.result);
7592
7877
  if (state.position === state.lineStart && testDocumentSeparator(state)) {
7593
7878
  if (state.input.charCodeAt(state.position) === 46) {
@@ -7596,18 +7881,21 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
7596
7881
  }
7597
7882
  return;
7598
7883
  }
7599
- if (state.position < state.length - 1)
7884
+ if (state.position < state.length - 1) {
7600
7885
  throwError(state, "end of the stream or a document separator is expected");
7886
+ }
7601
7887
  }
7602
7888
  function loadDocuments(input, options) {
7603
7889
  input = String(input);
7604
7890
  options = options || {};
7605
7891
  if (input.length !== 0) {
7606
- if (input.charCodeAt(input.length - 1) !== 10 && input.charCodeAt(input.length - 1) !== 13)
7892
+ if (input.charCodeAt(input.length - 1) !== 10 && input.charCodeAt(input.length - 1) !== 13) {
7607
7893
  input += `
7608
7894
  `;
7609
- if (input.charCodeAt(0) === 65279)
7895
+ }
7896
+ if (input.charCodeAt(0) === 65279) {
7610
7897
  input = input.slice(1);
7898
+ }
7611
7899
  }
7612
7900
  const state = new State(input, options);
7613
7901
  const nullpos = input.indexOf("\x00");
@@ -7620,64 +7908,74 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
7620
7908
  state.lineIndent += 1;
7621
7909
  state.position += 1;
7622
7910
  }
7623
- while (state.position < state.length - 1)
7911
+ while (state.position < state.length - 1) {
7624
7912
  readDocument(state);
7913
+ }
7625
7914
  return state.documents;
7626
7915
  }
7627
- function loadAll(input, iterator, options) {
7916
+ function loadAll2(input, iterator, options) {
7628
7917
  if (iterator !== null && typeof iterator === "object" && typeof options === "undefined") {
7629
7918
  options = iterator;
7630
7919
  iterator = null;
7631
7920
  }
7632
7921
  const documents = loadDocuments(input, options);
7633
- if (typeof iterator !== "function")
7922
+ if (typeof iterator !== "function") {
7634
7923
  return documents;
7635
- for (let index = 0, length = documents.length;index < length; index += 1)
7924
+ }
7925
+ for (let index = 0, length = documents.length;index < length; index += 1) {
7636
7926
  iterator(documents[index]);
7927
+ }
7637
7928
  }
7638
- function load(input, options) {
7929
+ function load2(input, options) {
7639
7930
  const documents = loadDocuments(input, options);
7640
- if (documents.length === 0)
7931
+ if (documents.length === 0) {
7641
7932
  return;
7642
- else if (documents.length === 1)
7933
+ } else if (documents.length === 1) {
7643
7934
  return documents[0];
7644
- throw new YAMLException("expected a single document in the stream, but found more");
7645
- }
7646
- module.exports.loadAll = loadAll;
7647
- module.exports.load = load;
7648
- });
7649
- var require_dumper = /* @__PURE__ */ __commonJSMin((exports, module) => {
7650
- var common = require_common();
7651
- var YAMLException = require_exception();
7652
- var DEFAULT_SCHEMA = require_default();
7653
- var _toString = Object.prototype.toString;
7654
- var _hasOwnProperty = Object.prototype.hasOwnProperty;
7655
- var CHAR_BOM = 65279;
7656
- var CHAR_TAB = 9;
7657
- var CHAR_LINE_FEED = 10;
7658
- var CHAR_CARRIAGE_RETURN = 13;
7659
- var CHAR_SPACE = 32;
7660
- var CHAR_EXCLAMATION = 33;
7661
- var CHAR_DOUBLE_QUOTE = 34;
7662
- var CHAR_SHARP = 35;
7663
- var CHAR_PERCENT = 37;
7664
- var CHAR_AMPERSAND = 38;
7665
- var CHAR_SINGLE_QUOTE = 39;
7666
- var CHAR_ASTERISK = 42;
7667
- var CHAR_COMMA = 44;
7668
- var CHAR_MINUS = 45;
7669
- var CHAR_COLON = 58;
7670
- var CHAR_EQUALS = 61;
7671
- var CHAR_GREATER_THAN = 62;
7672
- var CHAR_QUESTION = 63;
7673
- var CHAR_COMMERCIAL_AT = 64;
7674
- var CHAR_LEFT_SQUARE_BRACKET = 91;
7675
- var CHAR_RIGHT_SQUARE_BRACKET = 93;
7676
- var CHAR_GRAVE_ACCENT = 96;
7677
- var CHAR_LEFT_CURLY_BRACKET = 123;
7678
- var CHAR_VERTICAL_LINE = 124;
7679
- var CHAR_RIGHT_CURLY_BRACKET = 125;
7680
- var ESCAPE_SEQUENCES = {};
7935
+ }
7936
+ throw new YAMLException2("expected a single document in the stream, but found more");
7937
+ }
7938
+ loader.loadAll = loadAll2;
7939
+ loader.load = load2;
7940
+ return loader;
7941
+ }
7942
+ var dumper = {};
7943
+ var hasRequiredDumper;
7944
+ function requireDumper() {
7945
+ if (hasRequiredDumper)
7946
+ return dumper;
7947
+ hasRequiredDumper = 1;
7948
+ const common2 = requireCommon();
7949
+ const YAMLException2 = requireException();
7950
+ const DEFAULT_SCHEMA2 = require_default();
7951
+ const _toString = Object.prototype.toString;
7952
+ const _hasOwnProperty = Object.prototype.hasOwnProperty;
7953
+ const CHAR_BOM = 65279;
7954
+ const CHAR_TAB = 9;
7955
+ const CHAR_LINE_FEED = 10;
7956
+ const CHAR_CARRIAGE_RETURN = 13;
7957
+ const CHAR_SPACE = 32;
7958
+ const CHAR_EXCLAMATION = 33;
7959
+ const CHAR_DOUBLE_QUOTE = 34;
7960
+ const CHAR_SHARP = 35;
7961
+ const CHAR_PERCENT = 37;
7962
+ const CHAR_AMPERSAND = 38;
7963
+ const CHAR_SINGLE_QUOTE = 39;
7964
+ const CHAR_ASTERISK = 42;
7965
+ const CHAR_COMMA = 44;
7966
+ const CHAR_MINUS = 45;
7967
+ const CHAR_COLON = 58;
7968
+ const CHAR_EQUALS = 61;
7969
+ const CHAR_GREATER_THAN = 62;
7970
+ const CHAR_QUESTION = 63;
7971
+ const CHAR_COMMERCIAL_AT = 64;
7972
+ const CHAR_LEFT_SQUARE_BRACKET = 91;
7973
+ const CHAR_RIGHT_SQUARE_BRACKET = 93;
7974
+ const CHAR_GRAVE_ACCENT = 96;
7975
+ const CHAR_LEFT_CURLY_BRACKET = 123;
7976
+ const CHAR_VERTICAL_LINE = 124;
7977
+ const CHAR_RIGHT_CURLY_BRACKET = 125;
7978
+ const ESCAPE_SEQUENCES = {};
7681
7979
  ESCAPE_SEQUENCES[0] = "\\0";
7682
7980
  ESCAPE_SEQUENCES[7] = "\\a";
7683
7981
  ESCAPE_SEQUENCES[8] = "\\b";
@@ -7693,7 +7991,7 @@ var require_dumper = /* @__PURE__ */ __commonJSMin((exports, module) => {
7693
7991
  ESCAPE_SEQUENCES[160] = "\\_";
7694
7992
  ESCAPE_SEQUENCES[8232] = "\\L";
7695
7993
  ESCAPE_SEQUENCES[8233] = "\\P";
7696
- var DEPRECATED_BOOLEANS_SYNTAX = [
7994
+ const DEPRECATED_BOOLEANS_SYNTAX = [
7697
7995
  "y",
7698
7996
  "Y",
7699
7997
  "yes",
@@ -7711,20 +8009,22 @@ var require_dumper = /* @__PURE__ */ __commonJSMin((exports, module) => {
7711
8009
  "Off",
7712
8010
  "OFF"
7713
8011
  ];
7714
- var DEPRECATED_BASE60_SYNTAX = /^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;
7715
- function compileStyleMap(schema, map) {
7716
- if (map === null)
8012
+ const DEPRECATED_BASE60_SYNTAX = /^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;
8013
+ function compileStyleMap(schema2, map2) {
8014
+ if (map2 === null)
7717
8015
  return {};
7718
8016
  const result = {};
7719
- const keys = Object.keys(map);
8017
+ const keys = Object.keys(map2);
7720
8018
  for (let index = 0, length = keys.length;index < length; index += 1) {
7721
8019
  let tag = keys[index];
7722
- let style = String(map[tag]);
7723
- if (tag.slice(0, 2) === "!!")
8020
+ let style = String(map2[tag]);
8021
+ if (tag.slice(0, 2) === "!!") {
7724
8022
  tag = "tag:yaml.org,2002:" + tag.slice(2);
7725
- const type = schema.compiledTypeMap["fallback"][tag];
7726
- if (type && _hasOwnProperty.call(type.styleAliases, style))
7727
- style = type.styleAliases[style];
8023
+ }
8024
+ const type2 = schema2.compiledTypeMap["fallback"][tag];
8025
+ if (type2 && _hasOwnProperty.call(type2.styleAliases, style)) {
8026
+ style = type2.styleAliases[style];
8027
+ }
7728
8028
  result[tag] = style;
7729
8029
  }
7730
8030
  return result;
@@ -7742,18 +8042,19 @@ var require_dumper = /* @__PURE__ */ __commonJSMin((exports, module) => {
7742
8042
  } else if (character <= 4294967295) {
7743
8043
  handle = "U";
7744
8044
  length = 8;
7745
- } else
7746
- throw new YAMLException("code point within a string may not be greater than 0xFFFFFFFF");
7747
- return "\\" + handle + common.repeat("0", length - string.length) + string;
8045
+ } else {
8046
+ throw new YAMLException2("code point within a string may not be greater than 0xFFFFFFFF");
8047
+ }
8048
+ return "\\" + handle + common2.repeat("0", length - string.length) + string;
7748
8049
  }
7749
- var QUOTING_TYPE_SINGLE = 1;
7750
- var QUOTING_TYPE_DOUBLE = 2;
8050
+ const QUOTING_TYPE_SINGLE = 1;
8051
+ const QUOTING_TYPE_DOUBLE = 2;
7751
8052
  function State(options) {
7752
- this.schema = options["schema"] || DEFAULT_SCHEMA;
8053
+ this.schema = options["schema"] || DEFAULT_SCHEMA2;
7753
8054
  this.indent = Math.max(1, options["indent"] || 2);
7754
8055
  this.noArrayIndent = options["noArrayIndent"] || false;
7755
8056
  this.skipInvalid = options["skipInvalid"] || false;
7756
- this.flowLevel = common.isNothing(options["flowLevel"]) ? -1 : options["flowLevel"];
8057
+ this.flowLevel = common2.isNothing(options["flowLevel"]) ? -1 : options["flowLevel"];
7757
8058
  this.styleMap = compileStyleMap(this.schema, options["styles"] || null);
7758
8059
  this.sortKeys = options["sortKeys"] || false;
7759
8060
  this.lineWidth = options["lineWidth"] || 80;
@@ -7771,7 +8072,7 @@ var require_dumper = /* @__PURE__ */ __commonJSMin((exports, module) => {
7771
8072
  this.usedDuplicates = null;
7772
8073
  }
7773
8074
  function indentString(string, spaces) {
7774
- const ind = common.repeat(" ", spaces);
8075
+ const ind = common2.repeat(" ", spaces);
7775
8076
  let position = 0;
7776
8077
  let result = "";
7777
8078
  const length = string.length;
@@ -7795,12 +8096,15 @@ var require_dumper = /* @__PURE__ */ __commonJSMin((exports, module) => {
7795
8096
  }
7796
8097
  function generateNextLine(state, level) {
7797
8098
  return `
7798
- ` + common.repeat(" ", state.indent * level);
8099
+ ` + common2.repeat(" ", state.indent * level);
7799
8100
  }
7800
- function testImplicitResolving(state, str) {
7801
- for (let index = 0, length = state.implicitTypes.length;index < length; index += 1)
7802
- if (state.implicitTypes[index].resolve(str))
8101
+ function testImplicitResolving(state, str2) {
8102
+ for (let index = 0, length = state.implicitTypes.length;index < length; index += 1) {
8103
+ const type2 = state.implicitTypes[index];
8104
+ if (type2.resolve(str2)) {
7803
8105
  return true;
8106
+ }
8107
+ }
7804
8108
  return false;
7805
8109
  }
7806
8110
  function isWhitespace(c) {
@@ -7828,19 +8132,21 @@ var require_dumper = /* @__PURE__ */ __commonJSMin((exports, module) => {
7828
8132
  let second;
7829
8133
  if (first >= 55296 && first <= 56319 && pos + 1 < string.length) {
7830
8134
  second = string.charCodeAt(pos + 1);
7831
- if (second >= 56320 && second <= 57343)
8135
+ if (second >= 56320 && second <= 57343) {
7832
8136
  return (first - 55296) * 1024 + second - 56320 + 65536;
8137
+ }
7833
8138
  }
7834
8139
  return first;
7835
8140
  }
7836
8141
  function needIndentIndicator(string) {
7837
- return /^\n* /.test(string);
7838
- }
7839
- var STYLE_PLAIN = 1;
7840
- var STYLE_SINGLE = 2;
7841
- var STYLE_LITERAL = 3;
7842
- var STYLE_FOLDED = 4;
7843
- var STYLE_DOUBLE = 5;
8142
+ const leadingSpaceRe = /^\n* /;
8143
+ return leadingSpaceRe.test(string);
8144
+ }
8145
+ const STYLE_PLAIN = 1;
8146
+ const STYLE_SINGLE = 2;
8147
+ const STYLE_LITERAL = 3;
8148
+ const STYLE_FOLDED = 4;
8149
+ const STYLE_DOUBLE = 5;
7844
8150
  function chooseScalarStyle(string, singleLineOnly, indentPerLevel, lineWidth, testAmbiguousType, quotingType, forceQuotes, inblock) {
7845
8151
  let i;
7846
8152
  let char = 0;
@@ -7850,15 +8156,16 @@ var require_dumper = /* @__PURE__ */ __commonJSMin((exports, module) => {
7850
8156
  const shouldTrackWidth = lineWidth !== -1;
7851
8157
  let previousLineBreak = -1;
7852
8158
  let plain = isPlainSafeFirst(codePointAt(string, 0)) && isPlainSafeLast(codePointAt(string, string.length - 1));
7853
- if (singleLineOnly || forceQuotes)
8159
+ if (singleLineOnly || forceQuotes) {
7854
8160
  for (i = 0;i < string.length; char >= 65536 ? i += 2 : i++) {
7855
8161
  char = codePointAt(string, i);
7856
- if (!isPrintable(char))
8162
+ if (!isPrintable(char)) {
7857
8163
  return STYLE_DOUBLE;
8164
+ }
7858
8165
  plain = plain && isPlainSafe(char, prevChar, inblock);
7859
8166
  prevChar = char;
7860
8167
  }
7861
- else {
8168
+ } else {
7862
8169
  for (i = 0;i < string.length; char >= 65536 ? i += 2 : i++) {
7863
8170
  char = codePointAt(string, i);
7864
8171
  if (char === CHAR_LINE_FEED) {
@@ -7867,31 +8174,37 @@ var require_dumper = /* @__PURE__ */ __commonJSMin((exports, module) => {
7867
8174
  hasFoldableLine = hasFoldableLine || i - previousLineBreak - 1 > lineWidth && string[previousLineBreak + 1] !== " ";
7868
8175
  previousLineBreak = i;
7869
8176
  }
7870
- } else if (!isPrintable(char))
8177
+ } else if (!isPrintable(char)) {
7871
8178
  return STYLE_DOUBLE;
8179
+ }
7872
8180
  plain = plain && isPlainSafe(char, prevChar, inblock);
7873
8181
  prevChar = char;
7874
8182
  }
7875
- hasFoldableLine = hasFoldableLine || shouldTrackWidth && i - previousLineBreak - 1 > lineWidth && string[previousLineBreak + 1] !== " ";
8183
+ hasFoldableLine = hasFoldableLine || shouldTrackWidth && (i - previousLineBreak - 1 > lineWidth && string[previousLineBreak + 1] !== " ");
7876
8184
  }
7877
8185
  if (!hasLineBreak && !hasFoldableLine) {
7878
- if (plain && !forceQuotes && !testAmbiguousType(string))
8186
+ if (plain && !forceQuotes && !testAmbiguousType(string)) {
7879
8187
  return STYLE_PLAIN;
8188
+ }
7880
8189
  return quotingType === QUOTING_TYPE_DOUBLE ? STYLE_DOUBLE : STYLE_SINGLE;
7881
8190
  }
7882
- if (indentPerLevel > 9 && needIndentIndicator(string))
8191
+ if (indentPerLevel > 9 && needIndentIndicator(string)) {
7883
8192
  return STYLE_DOUBLE;
7884
- if (!forceQuotes)
8193
+ }
8194
+ if (!forceQuotes) {
7885
8195
  return hasFoldableLine ? STYLE_FOLDED : STYLE_LITERAL;
8196
+ }
7886
8197
  return quotingType === QUOTING_TYPE_DOUBLE ? STYLE_DOUBLE : STYLE_SINGLE;
7887
8198
  }
7888
8199
  function writeScalar(state, string, level, iskey, inblock) {
7889
8200
  state.dump = function() {
7890
- if (string.length === 0)
8201
+ if (string.length === 0) {
7891
8202
  return state.quotingType === QUOTING_TYPE_DOUBLE ? '""' : "''";
8203
+ }
7892
8204
  if (!state.noCompatMode) {
7893
- if (DEPRECATED_BOOLEANS_SYNTAX.indexOf(string) !== -1 || DEPRECATED_BASE60_SYNTAX.test(string))
8205
+ if (DEPRECATED_BOOLEANS_SYNTAX.indexOf(string) !== -1 || DEPRECATED_BASE60_SYNTAX.test(string)) {
7894
8206
  return state.quotingType === QUOTING_TYPE_DOUBLE ? '"' + string + '"' : "'" + string + "'";
8207
+ }
7895
8208
  }
7896
8209
  const indent = state.indent * Math.max(1, level);
7897
8210
  const lineWidth = state.lineWidth === -1 ? -1 : Math.max(Math.min(state.lineWidth, 40), state.lineWidth - indent);
@@ -7909,9 +8222,9 @@ var require_dumper = /* @__PURE__ */ __commonJSMin((exports, module) => {
7909
8222
  case STYLE_FOLDED:
7910
8223
  return ">" + blockHeader(string, state.indent) + dropEndingNewline(indentString(foldString(string, lineWidth), indent));
7911
8224
  case STYLE_DOUBLE:
7912
- return '"' + escapeString(string, lineWidth) + '"';
8225
+ return '"' + escapeString(string) + '"';
7913
8226
  default:
7914
- throw new YAMLException("impossible error: invalid scalar style");
8227
+ throw new YAMLException2("impossible error: invalid scalar style");
7915
8228
  }
7916
8229
  }();
7917
8230
  }
@@ -7919,9 +8232,11 @@ var require_dumper = /* @__PURE__ */ __commonJSMin((exports, module) => {
7919
8232
  const indentIndicator = needIndentIndicator(string) ? String(indentPerLevel) : "";
7920
8233
  const clip = string[string.length - 1] === `
7921
8234
  `;
7922
- return indentIndicator + (clip && (string[string.length - 2] === `
8235
+ const keep = clip && (string[string.length - 2] === `
7923
8236
  ` || string === `
7924
- `) ? "+" : clip ? "" : "-") + `
8237
+ `);
8238
+ const chomp = keep ? "+" : clip ? "" : "-";
8239
+ return indentIndicator + chomp + `
7925
8240
  `;
7926
8241
  }
7927
8242
  function dropEndingNewline(string) {
@@ -7973,11 +8288,12 @@ var require_dumper = /* @__PURE__ */ __commonJSMin((exports, module) => {
7973
8288
  }
7974
8289
  result += `
7975
8290
  `;
7976
- if (line.length - start > width && curr > start)
8291
+ if (line.length - start > width && curr > start) {
7977
8292
  result += line.slice(start, curr) + `
7978
8293
  ` + line.slice(curr + 1);
7979
- else
8294
+ } else {
7980
8295
  result += line.slice(start);
8296
+ }
7981
8297
  return result.slice(1);
7982
8298
  }
7983
8299
  function escapeString(string) {
@@ -7990,8 +8306,9 @@ var require_dumper = /* @__PURE__ */ __commonJSMin((exports, module) => {
7990
8306
  result += string[i];
7991
8307
  if (char >= 65536)
7992
8308
  result += string[i + 1];
7993
- } else
8309
+ } else {
7994
8310
  result += escapeSeq || encodeHex(char);
8311
+ }
7995
8312
  }
7996
8313
  return result;
7997
8314
  }
@@ -8000,8 +8317,9 @@ var require_dumper = /* @__PURE__ */ __commonJSMin((exports, module) => {
8000
8317
  const _tag = state.tag;
8001
8318
  for (let index = 0, length = object.length;index < length; index += 1) {
8002
8319
  let value = object[index];
8003
- if (state.replacer)
8320
+ if (state.replacer) {
8004
8321
  value = state.replacer.call(object, String(index), value);
8322
+ }
8005
8323
  if (writeNode(state, level, value, false, false) || typeof value === "undefined" && writeNode(state, level, null, false, false)) {
8006
8324
  if (_result !== "")
8007
8325
  _result += "," + (!state.condenseFlow ? " " : "");
@@ -8016,15 +8334,18 @@ var require_dumper = /* @__PURE__ */ __commonJSMin((exports, module) => {
8016
8334
  const _tag = state.tag;
8017
8335
  for (let index = 0, length = object.length;index < length; index += 1) {
8018
8336
  let value = object[index];
8019
- if (state.replacer)
8337
+ if (state.replacer) {
8020
8338
  value = state.replacer.call(object, String(index), value);
8339
+ }
8021
8340
  if (writeNode(state, level + 1, value, true, true, false, true) || typeof value === "undefined" && writeNode(state, level + 1, null, true, true, false, true)) {
8022
- if (!compact || _result !== "")
8341
+ if (!compact || _result !== "") {
8023
8342
  _result += generateNextLine(state, level);
8024
- if (state.dump && CHAR_LINE_FEED === state.dump.charCodeAt(0))
8343
+ }
8344
+ if (state.dump && CHAR_LINE_FEED === state.dump.charCodeAt(0)) {
8025
8345
  _result += "-";
8026
- else
8346
+ } else {
8027
8347
  _result += "- ";
8348
+ }
8028
8349
  _result += state.dump;
8029
8350
  }
8030
8351
  }
@@ -8043,15 +8364,18 @@ var require_dumper = /* @__PURE__ */ __commonJSMin((exports, module) => {
8043
8364
  pairBuffer += '"';
8044
8365
  const objectKey = objectKeyList[index];
8045
8366
  let objectValue = object[objectKey];
8046
- if (state.replacer)
8367
+ if (state.replacer) {
8047
8368
  objectValue = state.replacer.call(object, objectKey, objectValue);
8048
- if (!writeNode(state, level, objectKey, false, false))
8369
+ }
8370
+ if (!writeNode(state, level, objectKey, false, false)) {
8049
8371
  continue;
8372
+ }
8050
8373
  if (state.dump.length > 1024)
8051
8374
  pairBuffer += "? ";
8052
8375
  pairBuffer += state.dump + (state.condenseFlow ? '"' : "") + ":" + (state.condenseFlow ? "" : " ");
8053
- if (!writeNode(state, level, objectValue, false, false))
8376
+ if (!writeNode(state, level, objectValue, false, false)) {
8054
8377
  continue;
8378
+ }
8055
8379
  pairBuffer += state.dump;
8056
8380
  _result += pairBuffer;
8057
8381
  }
@@ -8062,37 +8386,46 @@ var require_dumper = /* @__PURE__ */ __commonJSMin((exports, module) => {
8062
8386
  let _result = "";
8063
8387
  const _tag = state.tag;
8064
8388
  const objectKeyList = Object.keys(object);
8065
- if (state.sortKeys === true)
8389
+ if (state.sortKeys === true) {
8066
8390
  objectKeyList.sort();
8067
- else if (typeof state.sortKeys === "function")
8391
+ } else if (typeof state.sortKeys === "function") {
8068
8392
  objectKeyList.sort(state.sortKeys);
8069
- else if (state.sortKeys)
8070
- throw new YAMLException("sortKeys must be a boolean or a function");
8393
+ } else if (state.sortKeys) {
8394
+ throw new YAMLException2("sortKeys must be a boolean or a function");
8395
+ }
8071
8396
  for (let index = 0, length = objectKeyList.length;index < length; index += 1) {
8072
8397
  let pairBuffer = "";
8073
- if (!compact || _result !== "")
8398
+ if (!compact || _result !== "") {
8074
8399
  pairBuffer += generateNextLine(state, level);
8400
+ }
8075
8401
  const objectKey = objectKeyList[index];
8076
8402
  let objectValue = object[objectKey];
8077
- if (state.replacer)
8403
+ if (state.replacer) {
8078
8404
  objectValue = state.replacer.call(object, objectKey, objectValue);
8079
- if (!writeNode(state, level + 1, objectKey, true, true, true))
8405
+ }
8406
+ if (!writeNode(state, level + 1, objectKey, true, true, true)) {
8080
8407
  continue;
8408
+ }
8081
8409
  const explicitPair = state.tag !== null && state.tag !== "?" || state.dump && state.dump.length > 1024;
8082
- if (explicitPair)
8083
- if (state.dump && CHAR_LINE_FEED === state.dump.charCodeAt(0))
8410
+ if (explicitPair) {
8411
+ if (state.dump && CHAR_LINE_FEED === state.dump.charCodeAt(0)) {
8084
8412
  pairBuffer += "?";
8085
- else
8413
+ } else {
8086
8414
  pairBuffer += "? ";
8415
+ }
8416
+ }
8087
8417
  pairBuffer += state.dump;
8088
- if (explicitPair)
8418
+ if (explicitPair) {
8089
8419
  pairBuffer += generateNextLine(state, level);
8090
- if (!writeNode(state, level + 1, objectValue, true, explicitPair))
8420
+ }
8421
+ if (!writeNode(state, level + 1, objectValue, true, explicitPair)) {
8091
8422
  continue;
8092
- if (state.dump && CHAR_LINE_FEED === state.dump.charCodeAt(0))
8423
+ }
8424
+ if (state.dump && CHAR_LINE_FEED === state.dump.charCodeAt(0)) {
8093
8425
  pairBuffer += ":";
8094
- else
8426
+ } else {
8095
8427
  pairBuffer += ": ";
8428
+ }
8096
8429
  pairBuffer += state.dump;
8097
8430
  _result += pairBuffer;
8098
8431
  }
@@ -8102,24 +8435,27 @@ var require_dumper = /* @__PURE__ */ __commonJSMin((exports, module) => {
8102
8435
  function detectType(state, object, explicit) {
8103
8436
  const typeList = explicit ? state.explicitTypes : state.implicitTypes;
8104
8437
  for (let index = 0, length = typeList.length;index < length; index += 1) {
8105
- const type = typeList[index];
8106
- if ((type.instanceOf || type.predicate) && (!type.instanceOf || typeof object === "object" && object instanceof type.instanceOf) && (!type.predicate || type.predicate(object))) {
8107
- if (explicit)
8108
- if (type.multi && type.representName)
8109
- state.tag = type.representName(object);
8110
- else
8111
- state.tag = type.tag;
8112
- else
8438
+ const type2 = typeList[index];
8439
+ if ((type2.instanceOf || type2.predicate) && (!type2.instanceOf || typeof object === "object" && object instanceof type2.instanceOf) && (!type2.predicate || type2.predicate(object))) {
8440
+ if (explicit) {
8441
+ if (type2.multi && type2.representName) {
8442
+ state.tag = type2.representName(object);
8443
+ } else {
8444
+ state.tag = type2.tag;
8445
+ }
8446
+ } else {
8113
8447
  state.tag = "?";
8114
- if (type.represent) {
8115
- const style = state.styleMap[type.tag] || type.defaultStyle;
8448
+ }
8449
+ if (type2.represent) {
8450
+ const style = state.styleMap[type2.tag] || type2.defaultStyle;
8116
8451
  let _result;
8117
- if (_toString.call(type.represent) === "[object Function]")
8118
- _result = type.represent(object, style);
8119
- else if (_hasOwnProperty.call(type.represent, style))
8120
- _result = type.represent[style](object, style);
8121
- else
8122
- throw new YAMLException("!<" + type.tag + '> tag resolver accepts not "' + style + '" style');
8452
+ if (_toString.call(type2.represent) === "[object Function]") {
8453
+ _result = type2.represent(object, style);
8454
+ } else if (_hasOwnProperty.call(type2.represent, style)) {
8455
+ _result = type2.represent[style](object, style);
8456
+ } else {
8457
+ throw new YAMLException2("!<" + type2.tag + '> tag resolver accepts not "' + style + '" style');
8458
+ }
8123
8459
  state.dump = _result;
8124
8460
  }
8125
8461
  return true;
@@ -8130,67 +8466,78 @@ var require_dumper = /* @__PURE__ */ __commonJSMin((exports, module) => {
8130
8466
  function writeNode(state, level, object, block, compact, iskey, isblockseq) {
8131
8467
  state.tag = null;
8132
8468
  state.dump = object;
8133
- if (!detectType(state, object, false))
8469
+ if (!detectType(state, object, false)) {
8134
8470
  detectType(state, object, true);
8135
- const type = _toString.call(state.dump);
8471
+ }
8472
+ const type2 = _toString.call(state.dump);
8136
8473
  const inblock = block;
8137
- if (block)
8474
+ if (block) {
8138
8475
  block = state.flowLevel < 0 || state.flowLevel > level;
8139
- const objectOrArray = type === "[object Object]" || type === "[object Array]";
8476
+ }
8477
+ const objectOrArray = type2 === "[object Object]" || type2 === "[object Array]";
8140
8478
  let duplicateIndex;
8141
8479
  let duplicate;
8142
8480
  if (objectOrArray) {
8143
8481
  duplicateIndex = state.duplicates.indexOf(object);
8144
8482
  duplicate = duplicateIndex !== -1;
8145
8483
  }
8146
- if (state.tag !== null && state.tag !== "?" || duplicate || state.indent !== 2 && level > 0)
8484
+ if (state.tag !== null && state.tag !== "?" || duplicate || state.indent !== 2 && level > 0) {
8147
8485
  compact = false;
8148
- if (duplicate && state.usedDuplicates[duplicateIndex])
8486
+ }
8487
+ if (duplicate && state.usedDuplicates[duplicateIndex]) {
8149
8488
  state.dump = "*ref_" + duplicateIndex;
8150
- else {
8151
- if (objectOrArray && duplicate && !state.usedDuplicates[duplicateIndex])
8489
+ } else {
8490
+ if (objectOrArray && duplicate && !state.usedDuplicates[duplicateIndex]) {
8152
8491
  state.usedDuplicates[duplicateIndex] = true;
8153
- if (type === "[object Object]")
8492
+ }
8493
+ if (type2 === "[object Object]") {
8154
8494
  if (block && Object.keys(state.dump).length !== 0) {
8155
8495
  writeBlockMapping(state, level, state.dump, compact);
8156
- if (duplicate)
8496
+ if (duplicate) {
8157
8497
  state.dump = "&ref_" + duplicateIndex + state.dump;
8498
+ }
8158
8499
  } else {
8159
8500
  writeFlowMapping(state, level, state.dump);
8160
- if (duplicate)
8501
+ if (duplicate) {
8161
8502
  state.dump = "&ref_" + duplicateIndex + " " + state.dump;
8503
+ }
8162
8504
  }
8163
- else if (type === "[object Array]")
8505
+ } else if (type2 === "[object Array]") {
8164
8506
  if (block && state.dump.length !== 0) {
8165
- if (state.noArrayIndent && !isblockseq && level > 0)
8507
+ if (state.noArrayIndent && !isblockseq && level > 0) {
8166
8508
  writeBlockSequence(state, level - 1, state.dump, compact);
8167
- else
8509
+ } else {
8168
8510
  writeBlockSequence(state, level, state.dump, compact);
8169
- if (duplicate)
8511
+ }
8512
+ if (duplicate) {
8170
8513
  state.dump = "&ref_" + duplicateIndex + state.dump;
8514
+ }
8171
8515
  } else {
8172
8516
  writeFlowSequence(state, level, state.dump);
8173
- if (duplicate)
8517
+ if (duplicate) {
8174
8518
  state.dump = "&ref_" + duplicateIndex + " " + state.dump;
8519
+ }
8175
8520
  }
8176
- else if (type === "[object String]") {
8177
- if (state.tag !== "?")
8521
+ } else if (type2 === "[object String]") {
8522
+ if (state.tag !== "?") {
8178
8523
  writeScalar(state, state.dump, level, iskey, inblock);
8179
- } else if (type === "[object Undefined]")
8524
+ }
8525
+ } else if (type2 === "[object Undefined]") {
8180
8526
  return false;
8181
- else {
8527
+ } else {
8182
8528
  if (state.skipInvalid)
8183
8529
  return false;
8184
- throw new YAMLException("unacceptable kind of an object to dump " + type);
8530
+ throw new YAMLException2("unacceptable kind of an object to dump " + type2);
8185
8531
  }
8186
8532
  if (state.tag !== null && state.tag !== "?") {
8187
8533
  let tagStr = encodeURI(state.tag[0] === "!" ? state.tag.slice(1) : state.tag).replace(/!/g, "%21");
8188
- if (state.tag[0] === "!")
8534
+ if (state.tag[0] === "!") {
8189
8535
  tagStr = "!" + tagStr;
8190
- else if (tagStr.slice(0, 18) === "tag:yaml.org,2002:")
8536
+ } else if (tagStr.slice(0, 18) === "tag:yaml.org,2002:") {
8191
8537
  tagStr = "!!" + tagStr.slice(18);
8192
- else
8538
+ } else {
8193
8539
  tagStr = "!<" + tagStr + ">";
8540
+ }
8194
8541
  state.dump = tagStr + " " + state.dump;
8195
8542
  }
8196
8543
  }
@@ -8201,83 +8548,110 @@ var require_dumper = /* @__PURE__ */ __commonJSMin((exports, module) => {
8201
8548
  const duplicatesIndexes = [];
8202
8549
  inspectNode(object, objects, duplicatesIndexes);
8203
8550
  const length = duplicatesIndexes.length;
8204
- for (let index = 0;index < length; index += 1)
8551
+ for (let index = 0;index < length; index += 1) {
8205
8552
  state.duplicates.push(objects[duplicatesIndexes[index]]);
8553
+ }
8206
8554
  state.usedDuplicates = new Array(length);
8207
8555
  }
8208
8556
  function inspectNode(object, objects, duplicatesIndexes) {
8209
8557
  if (object !== null && typeof object === "object") {
8210
8558
  const index = objects.indexOf(object);
8211
8559
  if (index !== -1) {
8212
- if (duplicatesIndexes.indexOf(index) === -1)
8560
+ if (duplicatesIndexes.indexOf(index) === -1) {
8213
8561
  duplicatesIndexes.push(index);
8562
+ }
8214
8563
  } else {
8215
8564
  objects.push(object);
8216
- if (Array.isArray(object))
8217
- for (let i = 0, length = object.length;i < length; i += 1)
8565
+ if (Array.isArray(object)) {
8566
+ for (let i = 0, length = object.length;i < length; i += 1) {
8218
8567
  inspectNode(object[i], objects, duplicatesIndexes);
8219
- else {
8568
+ }
8569
+ } else {
8220
8570
  const objectKeyList = Object.keys(object);
8221
- for (let i = 0, length = objectKeyList.length;i < length; i += 1)
8571
+ for (let i = 0, length = objectKeyList.length;i < length; i += 1) {
8222
8572
  inspectNode(object[objectKeyList[i]], objects, duplicatesIndexes);
8573
+ }
8223
8574
  }
8224
8575
  }
8225
8576
  }
8226
8577
  }
8227
- function dump(input, options) {
8578
+ function dump2(input, options) {
8228
8579
  options = options || {};
8229
8580
  const state = new State(options);
8230
8581
  if (!state.noRefs)
8231
8582
  getDuplicateReferences(input, state);
8232
8583
  let value = input;
8233
- if (state.replacer)
8584
+ if (state.replacer) {
8234
8585
  value = state.replacer.call({ "": value }, "", value);
8586
+ }
8235
8587
  if (writeNode(state, 0, value, true, true))
8236
8588
  return state.dump + `
8237
8589
  `;
8238
8590
  return "";
8239
8591
  }
8240
- module.exports.dump = dump;
8241
- });
8242
- var import_js_yaml = /* @__PURE__ */ __toESM2((/* @__PURE__ */ __commonJSMin((exports, module) => {
8243
- var loader = require_loader();
8244
- var dumper = require_dumper();
8592
+ dumper.dump = dump2;
8593
+ return dumper;
8594
+ }
8595
+ var hasRequiredJsYaml;
8596
+ function requireJsYaml() {
8597
+ if (hasRequiredJsYaml)
8598
+ return jsYaml;
8599
+ hasRequiredJsYaml = 1;
8600
+ const loader2 = requireLoader();
8601
+ const dumper2 = requireDumper();
8245
8602
  function renamed(from, to) {
8246
8603
  return function() {
8247
8604
  throw new Error("Function yaml." + from + " is removed in js-yaml 4. Use yaml." + to + " instead, which is now safe by default.");
8248
8605
  };
8249
8606
  }
8250
- module.exports.Type = require_type();
8251
- module.exports.Schema = require_schema();
8252
- module.exports.FAILSAFE_SCHEMA = require_failsafe();
8253
- module.exports.JSON_SCHEMA = require_json();
8254
- module.exports.CORE_SCHEMA = require_core();
8255
- module.exports.DEFAULT_SCHEMA = require_default();
8256
- module.exports.load = loader.load;
8257
- module.exports.loadAll = loader.loadAll;
8258
- module.exports.dump = dumper.dump;
8259
- module.exports.YAMLException = require_exception();
8260
- module.exports.types = {
8261
- binary: require_binary(),
8262
- float: require_float(),
8263
- map: require_map(),
8607
+ jsYaml.Type = requireType();
8608
+ jsYaml.Schema = requireSchema();
8609
+ jsYaml.FAILSAFE_SCHEMA = requireFailsafe();
8610
+ jsYaml.JSON_SCHEMA = requireJson();
8611
+ jsYaml.CORE_SCHEMA = requireCore();
8612
+ jsYaml.DEFAULT_SCHEMA = require_default();
8613
+ jsYaml.load = loader2.load;
8614
+ jsYaml.loadAll = loader2.loadAll;
8615
+ jsYaml.dump = dumper2.dump;
8616
+ jsYaml.YAMLException = requireException();
8617
+ jsYaml.types = {
8618
+ binary: requireBinary(),
8619
+ float: requireFloat(),
8620
+ map: requireMap(),
8264
8621
  null: require_null(),
8265
- pairs: require_pairs(),
8266
- set: require_set(),
8267
- timestamp: require_timestamp(),
8268
- bool: require_bool(),
8269
- int: require_int(),
8270
- merge: require_merge(),
8271
- omap: require_omap(),
8272
- seq: require_seq(),
8273
- str: require_str()
8622
+ pairs: requirePairs(),
8623
+ set: requireSet(),
8624
+ timestamp: requireTimestamp(),
8625
+ bool: requireBool(),
8626
+ int: requireInt(),
8627
+ merge: requireMerge(),
8628
+ omap: requireOmap(),
8629
+ seq: requireSeq(),
8630
+ str: requireStr()
8274
8631
  };
8275
- module.exports.safeLoad = renamed("safeLoad", "load");
8276
- module.exports.safeLoadAll = renamed("safeLoadAll", "loadAll");
8277
- module.exports.safeDump = renamed("safeDump", "dump");
8278
- }))(), 1);
8279
- var { Type, Schema, FAILSAFE_SCHEMA, JSON_SCHEMA, CORE_SCHEMA, DEFAULT_SCHEMA, load, loadAll, dump, YAMLException, types, safeLoad, safeLoadAll, safeDump } = import_js_yaml.default;
8280
- var index_vite_proxy_tmp_default = import_js_yaml.default;
8632
+ jsYaml.safeLoad = renamed("safeLoad", "load");
8633
+ jsYaml.safeLoadAll = renamed("safeLoadAll", "loadAll");
8634
+ jsYaml.safeDump = renamed("safeDump", "dump");
8635
+ return jsYaml;
8636
+ }
8637
+ var jsYamlExports = requireJsYaml();
8638
+ var yaml = /* @__PURE__ */ getDefaultExportFromCjs(jsYamlExports);
8639
+ var {
8640
+ Type,
8641
+ Schema,
8642
+ FAILSAFE_SCHEMA,
8643
+ JSON_SCHEMA,
8644
+ CORE_SCHEMA,
8645
+ DEFAULT_SCHEMA,
8646
+ load,
8647
+ loadAll,
8648
+ dump,
8649
+ YAMLException,
8650
+ types,
8651
+ safeLoad,
8652
+ safeLoadAll,
8653
+ safeDump
8654
+ } = yaml;
8281
8655
 
8282
8656
  // src/logger.ts
8283
8657
  var logFilePathSlot = singleton("logFilePath");
@@ -8360,11 +8734,11 @@ class SimpleLogger {
8360
8734
  const path3 = this.logFilePath || getGlobalLogFilePath();
8361
8735
  if (!path3)
8362
8736
  return;
8363
- const timestamp = new Date().toISOString();
8737
+ const timestamp2 = new Date().toISOString();
8364
8738
  this.pendingWrites = Promise.all([
8365
8739
  this.pendingWrites,
8366
8740
  this.pendingInit
8367
- ]).then(() => getFileSystem().appendFile(path3, `${timestamp} ${formatted}`).catch(() => {}));
8741
+ ]).then(() => getFileSystem().appendFile(path3, `${timestamp2} ${formatted}`).catch(() => {}));
8368
8742
  }
8369
8743
  debug(message, ...args) {
8370
8744
  if (this.level > 0 /* DEBUG */)
@@ -8796,10 +9170,10 @@ class LoggerTelemetryProvider {
8796
9170
  success
8797
9171
  })));
8798
9172
  }
8799
- async trackDependency(name, type, duration, success, properties) {
9173
+ async trackDependency(name, type2, duration, success, properties) {
8800
9174
  logger.debug(formatMessage("Dependency", name, this.enrich({
8801
9175
  ...properties,
8802
- type,
9176
+ type: type2,
8803
9177
  duration: `${duration}ms`,
8804
9178
  success
8805
9179
  })));
@@ -8827,8 +9201,8 @@ class DebugTelemetryProvider {
8827
9201
  async trackRequest(name, duration, success, _properties) {
8828
9202
  logger.debug(`[Telemetry] Request: ${name} (${duration}ms, ${success ? "ok" : "fail"})`);
8829
9203
  }
8830
- async trackDependency(name, type, duration, success, _properties) {
8831
- logger.debug(`[Telemetry] Dependency: ${name} [${type}] (${duration}ms, ${success ? "ok" : "fail"})`);
9204
+ async trackDependency(name, type2, duration, success, _properties) {
9205
+ logger.debug(`[Telemetry] Dependency: ${name} [${type2}] (${duration}ms, ${success ? "ok" : "fail"})`);
8832
9206
  }
8833
9207
  }
8834
9208
  // src/telemetry/detect-agent.ts
@@ -9145,7 +9519,7 @@ class TelemetryService {
9145
9519
  throw error;
9146
9520
  }
9147
9521
  }
9148
- async trackDependencyOperation(name, type, fn, properties) {
9522
+ async trackDependencyOperation(name, type2, fn, properties) {
9149
9523
  const parentContext = this.getCurrentContext();
9150
9524
  if (!parentContext) {
9151
9525
  throw new Error("trackDependencyOperation must be called within a trackRequest block.");
@@ -9160,13 +9534,13 @@ class TelemetryService {
9160
9534
  const result = await this.contextStorage.run(childContext, fn);
9161
9535
  const durationMs = performance.now() - startTime;
9162
9536
  const enrichedProperties = this.enrichPropertiesWithContext(properties, childContext);
9163
- await this.telemetryProvider.trackDependency(name, type, durationMs, true, enrichedProperties);
9537
+ await this.telemetryProvider.trackDependency(name, type2, durationMs, true, enrichedProperties);
9164
9538
  return result;
9165
9539
  } catch (error) {
9166
9540
  const durationMs = performance.now() - startTime;
9167
9541
  const err = error instanceof Error ? error : new Error(String(error));
9168
9542
  const enrichedProperties = this.enrichPropertiesWithContext({ ...properties, errorMessage: err.message }, childContext);
9169
- await this.telemetryProvider.trackDependency(name, type, durationMs, false, enrichedProperties);
9543
+ await this.telemetryProvider.trackDependency(name, type2, durationMs, false, enrichedProperties);
9170
9544
  throw error;
9171
9545
  }
9172
9546
  }
@@ -9383,14 +9757,14 @@ class NodeAppInsightsTelemetryProvider {
9383
9757
  logger.debug(`[AppInsights] trackRequest failed for: ${name}`);
9384
9758
  }
9385
9759
  }
9386
- async trackDependency(name, type, duration, success, properties) {
9760
+ async trackDependency(name, type2, duration, success, properties) {
9387
9761
  const client = this.client;
9388
9762
  if (!client)
9389
9763
  return;
9390
9764
  const merged = this.mergeProperties(properties);
9391
9765
  client.trackDependency({
9392
9766
  name,
9393
- dependencyTypeName: type,
9767
+ dependencyTypeName: type2,
9394
9768
  duration,
9395
9769
  resultCode: success ? "200" : "500",
9396
9770
  success,
@@ -9786,8 +10160,8 @@ function printOutput(data, format = "json", logFn, asciiSafe = false) {
9786
10160
  }
9787
10161
  switch (format) {
9788
10162
  case "json": {
9789
- const json = JSON.stringify(data, null, 2);
9790
- logFn(asciiSafe ? escapeNonAscii(json) : json);
10163
+ const json2 = JSON.stringify(data, null, 2);
10164
+ logFn(asciiSafe ? escapeNonAscii(json2) : json2);
9791
10165
  break;
9792
10166
  }
9793
10167
  case "yaml":
@@ -10132,8 +10506,8 @@ var OutputFormatter;
10132
10506
  const sink = getOutputSink();
10133
10507
  const normalized = toPascalCaseData(data);
10134
10508
  if (format === "json") {
10135
- const json = JSON.stringify(normalized);
10136
- const safe = needsAsciiSafeJson(sink) ? escapeNonAscii(json) : json;
10509
+ const json2 = JSON.stringify(normalized);
10510
+ const safe = needsAsciiSafeJson(sink) ? escapeNonAscii(json2) : json2;
10137
10511
  sink.writeErr(`${safe}
10138
10512
  `);
10139
10513
  } else {
@@ -10398,8 +10772,8 @@ function redactValueDetectors(value) {
10398
10772
  out = out.replace(JWT_PATTERN, () => REDACTED);
10399
10773
  out = out.replace(URL_PATTERN, (match) => {
10400
10774
  const trailing = match.match(URL_TRAILING_PUNCT)?.[0] ?? "";
10401
- const core = trailing ? match.slice(0, -trailing.length) : match;
10402
- return `${redactUrl(core)}${trailing}`;
10775
+ const core2 = trailing ? match.slice(0, -trailing.length) : match;
10776
+ return `${redactUrl(core2)}${trailing}`;
10403
10777
  });
10404
10778
  out = out.replace(USER_HOME_PATTERN, (_match, sep1, folder, sep2) => `${sep1}${folder}${sep2}<user>`);
10405
10779
  out = out.replace(EMAIL_PATTERN, (match) => `email#${shortHash(match)}`);
@@ -11621,8 +11995,8 @@ class ConsoleTelemetryProvider {
11621
11995
  async trackRequest(name, duration, success, _properties) {
11622
11996
  console.debug(`[Telemetry] Request: ${name} (${duration}ms, ${success ? "ok" : "fail"})`);
11623
11997
  }
11624
- async trackDependency(name, type, duration, success, _properties) {
11625
- console.debug(`[Telemetry] Dependency: ${name} [${type}] (${duration}ms, ${success ? "ok" : "fail"})`);
11998
+ async trackDependency(name, type2, duration, success, _properties) {
11999
+ console.debug(`[Telemetry] Dependency: ${name} [${type2}] (${duration}ms, ${success ? "ok" : "fail"})`);
11626
12000
  }
11627
12001
  }
11628
12002
  // src/telemetry/ship-succeeded.ts
@@ -11820,4 +12194,4 @@ export {
11820
12194
  ATTACHMENT_INSTRUCTIONS
11821
12195
  };
11822
12196
 
11823
- //# debugId=B968F19E94F17CAD64756E2164756E21
12197
+ //# debugId=F5AE253A6C21651164756E2164756E21