@uipath/gov-tool 1.198.0-preview.85 → 1.198.0-preview.87

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/tool.js +1579 -1205
  2. package/package.json +2 -2
package/dist/tool.js CHANGED
@@ -21230,7 +21230,7 @@ var require_commander = __commonJS((exports) => {
21230
21230
  var package_default = {
21231
21231
  name: "@uipath/gov-tool",
21232
21232
  license: "MIT",
21233
- version: "1.198.0-preview.85",
21233
+ version: "1.198.0-preview.87",
21234
21234
  description: "Manage UiPath governance — AOps policies, Access policies, and compliance packs.",
21235
21235
  private: false,
21236
21236
  repository: {
@@ -25845,31 +25845,17 @@ function search(data, expression, options) {
25845
25845
  }
25846
25846
 
25847
25847
  // ../../../node_modules/js-yaml/dist/js-yaml.mjs
25848
- /*! js-yaml 4.2.0 https://github.com/nodeca/js-yaml @license MIT */
25849
- var __create2 = Object.create;
25850
- var __defProp2 = Object.defineProperty;
25851
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
25852
- var __getOwnPropNames2 = Object.getOwnPropertyNames;
25853
- var __getProtoOf2 = Object.getPrototypeOf;
25854
- var __hasOwnProp2 = Object.prototype.hasOwnProperty;
25855
- var __commonJSMin = (cb, mod2) => () => (mod2 || (cb((mod2 = { exports: {} }).exports, mod2), cb = null), mod2.exports);
25856
- var __copyProps = (to, from, except, desc) => {
25857
- if (from && typeof from === "object" || typeof from === "function")
25858
- for (var keys = __getOwnPropNames2(from), i = 0, n = keys.length, key;i < n; i++) {
25859
- key = keys[i];
25860
- if (!__hasOwnProp2.call(to, key) && key !== except)
25861
- __defProp2(to, key, {
25862
- get: ((k) => from[k]).bind(null, key),
25863
- enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
25864
- });
25865
- }
25866
- return to;
25867
- };
25868
- var __toESM2 = (mod2, isNodeMode, target) => (target = mod2 != null ? __create2(__getProtoOf2(mod2)) : {}, __copyProps(isNodeMode || !mod2 || !mod2.__esModule ? __defProp2(target, "default", {
25869
- value: mod2,
25870
- enumerable: true
25871
- }) : target, mod2));
25872
- var require_common = /* @__PURE__ */ __commonJSMin((exports, module) => {
25848
+ function getDefaultExportFromCjs(x) {
25849
+ return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, "default") ? x["default"] : x;
25850
+ }
25851
+ var jsYaml = {};
25852
+ var loader = {};
25853
+ var common = {};
25854
+ var hasRequiredCommon;
25855
+ function requireCommon() {
25856
+ if (hasRequiredCommon)
25857
+ return common;
25858
+ hasRequiredCommon = 1;
25873
25859
  function isNothing(subject) {
25874
25860
  return typeof subject === "undefined" || subject === null;
25875
25861
  }
@@ -25895,55 +25881,71 @@ var require_common = /* @__PURE__ */ __commonJSMin((exports, module) => {
25895
25881
  }
25896
25882
  function repeat(string, count) {
25897
25883
  let result = "";
25898
- for (let cycle = 0;cycle < count; cycle += 1)
25884
+ for (let cycle = 0;cycle < count; cycle += 1) {
25899
25885
  result += string;
25886
+ }
25900
25887
  return result;
25901
25888
  }
25902
25889
  function isNegativeZero(number) {
25903
25890
  return number === 0 && Number.NEGATIVE_INFINITY === 1 / number;
25904
25891
  }
25905
- module.exports.isNothing = isNothing;
25906
- module.exports.isObject = isObject2;
25907
- module.exports.toArray = toArray;
25908
- module.exports.repeat = repeat;
25909
- module.exports.isNegativeZero = isNegativeZero;
25910
- module.exports.extend = extend;
25911
- });
25912
- var require_exception = /* @__PURE__ */ __commonJSMin((exports, module) => {
25913
- function formatError(exception, compact) {
25892
+ common.isNothing = isNothing;
25893
+ common.isObject = isObject2;
25894
+ common.toArray = toArray;
25895
+ common.repeat = repeat;
25896
+ common.isNegativeZero = isNegativeZero;
25897
+ common.extend = extend;
25898
+ return common;
25899
+ }
25900
+ var exception;
25901
+ var hasRequiredException;
25902
+ function requireException() {
25903
+ if (hasRequiredException)
25904
+ return exception;
25905
+ hasRequiredException = 1;
25906
+ function formatError(exception2, compact) {
25914
25907
  let where = "";
25915
- const message = exception.reason || "(unknown reason)";
25916
- if (!exception.mark)
25908
+ const message = exception2.reason || "(unknown reason)";
25909
+ if (!exception2.mark)
25917
25910
  return message;
25918
- if (exception.mark.name)
25919
- where += 'in "' + exception.mark.name + '" ';
25920
- where += "(" + (exception.mark.line + 1) + ":" + (exception.mark.column + 1) + ")";
25921
- if (!compact && exception.mark.snippet)
25911
+ if (exception2.mark.name) {
25912
+ where += 'in "' + exception2.mark.name + '" ';
25913
+ }
25914
+ where += "(" + (exception2.mark.line + 1) + ":" + (exception2.mark.column + 1) + ")";
25915
+ if (!compact && exception2.mark.snippet) {
25922
25916
  where += `
25923
25917
 
25924
- ` + exception.mark.snippet;
25918
+ ` + exception2.mark.snippet;
25919
+ }
25925
25920
  return message + " " + where;
25926
25921
  }
25927
- function YAMLException(reason, mark) {
25922
+ function YAMLException2(reason, mark) {
25928
25923
  Error.call(this);
25929
25924
  this.name = "YAMLException";
25930
25925
  this.reason = reason;
25931
25926
  this.mark = mark;
25932
25927
  this.message = formatError(this, false);
25933
- if (Error.captureStackTrace)
25928
+ if (Error.captureStackTrace) {
25934
25929
  Error.captureStackTrace(this, this.constructor);
25935
- else
25936
- this.stack = (/* @__PURE__ */ new Error()).stack || "";
25930
+ } else {
25931
+ this.stack = new Error().stack || "";
25932
+ }
25937
25933
  }
25938
- YAMLException.prototype = Object.create(Error.prototype);
25939
- YAMLException.prototype.constructor = YAMLException;
25940
- YAMLException.prototype.toString = function toString(compact) {
25934
+ YAMLException2.prototype = Object.create(Error.prototype);
25935
+ YAMLException2.prototype.constructor = YAMLException2;
25936
+ YAMLException2.prototype.toString = function toString(compact) {
25941
25937
  return this.name + ": " + formatError(this, compact);
25942
25938
  };
25943
- module.exports = YAMLException;
25944
- });
25945
- var require_snippet = /* @__PURE__ */ __commonJSMin((exports, module) => {
25946
- var common = require_common();
25939
+ exception = YAMLException2;
25940
+ return exception;
25941
+ }
25942
+ var snippet;
25943
+ var hasRequiredSnippet;
25944
+ function requireSnippet() {
25945
+ if (hasRequiredSnippet)
25946
+ return snippet;
25947
+ hasRequiredSnippet = 1;
25948
+ const common2 = requireCommon();
25947
25949
  function getLine(buffer, lineStart, lineEnd, position, maxLineLength) {
25948
25950
  let head = "";
25949
25951
  let tail = "";
@@ -25962,7 +25964,7 @@ var require_snippet = /* @__PURE__ */ __commonJSMin((exports, module) => {
25962
25964
  };
25963
25965
  }
25964
25966
  function padStart(string, max) {
25965
- return common.repeat(" ", max - string.length) + string;
25967
+ return common2.repeat(" ", max - string.length) + string;
25966
25968
  }
25967
25969
  function makeSnippet(mark, options) {
25968
25970
  options = Object.create(options || null);
@@ -25984,8 +25986,9 @@ var require_snippet = /* @__PURE__ */ __commonJSMin((exports, module) => {
25984
25986
  while (match = re.exec(mark.buffer)) {
25985
25987
  lineEnds.push(match.index);
25986
25988
  lineStarts.push(match.index + match[0].length);
25987
- if (mark.position <= match.index && foundLineNo < 0)
25989
+ if (mark.position <= match.index && foundLineNo < 0) {
25988
25990
  foundLineNo = lineStarts.length - 2;
25991
+ }
25989
25992
  }
25990
25993
  if (foundLineNo < 0)
25991
25994
  foundLineNo = lineStarts.length - 1;
@@ -25996,28 +25999,34 @@ var require_snippet = /* @__PURE__ */ __commonJSMin((exports, module) => {
25996
25999
  if (foundLineNo - i < 0)
25997
26000
  break;
25998
26001
  const line2 = getLine(mark.buffer, lineStarts[foundLineNo - i], lineEnds[foundLineNo - i], mark.position - (lineStarts[foundLineNo] - lineStarts[foundLineNo - i]), maxLineLength);
25999
- result = common.repeat(" ", options.indent) + padStart((mark.line - i + 1).toString(), lineNoLength) + " | " + line2.str + `
26002
+ result = common2.repeat(" ", options.indent) + padStart((mark.line - i + 1).toString(), lineNoLength) + " | " + line2.str + `
26000
26003
  ` + result;
26001
26004
  }
26002
26005
  const line = getLine(mark.buffer, lineStarts[foundLineNo], lineEnds[foundLineNo], mark.position, maxLineLength);
26003
- result += common.repeat(" ", options.indent) + padStart((mark.line + 1).toString(), lineNoLength) + " | " + line.str + `
26006
+ result += common2.repeat(" ", options.indent) + padStart((mark.line + 1).toString(), lineNoLength) + " | " + line.str + `
26004
26007
  `;
26005
- result += common.repeat("-", options.indent + lineNoLength + 3 + line.pos) + `^
26008
+ result += common2.repeat("-", options.indent + lineNoLength + 3 + line.pos) + `^
26006
26009
  `;
26007
26010
  for (let i = 1;i <= options.linesAfter; i++) {
26008
26011
  if (foundLineNo + i >= lineEnds.length)
26009
26012
  break;
26010
26013
  const line2 = getLine(mark.buffer, lineStarts[foundLineNo + i], lineEnds[foundLineNo + i], mark.position - (lineStarts[foundLineNo] - lineStarts[foundLineNo + i]), maxLineLength);
26011
- result += common.repeat(" ", options.indent) + padStart((mark.line + i + 1).toString(), lineNoLength) + " | " + line2.str + `
26014
+ result += common2.repeat(" ", options.indent) + padStart((mark.line + i + 1).toString(), lineNoLength) + " | " + line2.str + `
26012
26015
  `;
26013
26016
  }
26014
26017
  return result.replace(/\n$/, "");
26015
26018
  }
26016
- module.exports = makeSnippet;
26017
- });
26018
- var require_type = /* @__PURE__ */ __commonJSMin((exports, module) => {
26019
- var YAMLException = require_exception();
26020
- var TYPE_CONSTRUCTOR_OPTIONS = [
26019
+ snippet = makeSnippet;
26020
+ return snippet;
26021
+ }
26022
+ var type;
26023
+ var hasRequiredType;
26024
+ function requireType() {
26025
+ if (hasRequiredType)
26026
+ return type;
26027
+ hasRequiredType = 1;
26028
+ const YAMLException2 = requireException();
26029
+ const TYPE_CONSTRUCTOR_OPTIONS = [
26021
26030
  "kind",
26022
26031
  "multi",
26023
26032
  "resolve",
@@ -26029,26 +26038,28 @@ var require_type = /* @__PURE__ */ __commonJSMin((exports, module) => {
26029
26038
  "defaultStyle",
26030
26039
  "styleAliases"
26031
26040
  ];
26032
- var YAML_NODE_KINDS = [
26041
+ const YAML_NODE_KINDS = [
26033
26042
  "scalar",
26034
26043
  "sequence",
26035
26044
  "mapping"
26036
26045
  ];
26037
- function compileStyleAliases(map) {
26046
+ function compileStyleAliases(map2) {
26038
26047
  const result = {};
26039
- if (map !== null)
26040
- Object.keys(map).forEach(function(style) {
26041
- map[style].forEach(function(alias) {
26048
+ if (map2 !== null) {
26049
+ Object.keys(map2).forEach(function(style) {
26050
+ map2[style].forEach(function(alias) {
26042
26051
  result[String(alias)] = style;
26043
26052
  });
26044
26053
  });
26054
+ }
26045
26055
  return result;
26046
26056
  }
26047
- function Type(tag, options) {
26057
+ function Type2(tag, options) {
26048
26058
  options = options || {};
26049
26059
  Object.keys(options).forEach(function(name) {
26050
- if (TYPE_CONSTRUCTOR_OPTIONS.indexOf(name) === -1)
26051
- throw new YAMLException('Unknown option "' + name + '" is met in definition of "' + tag + '" YAML type.');
26060
+ if (TYPE_CONSTRUCTOR_OPTIONS.indexOf(name) === -1) {
26061
+ throw new YAMLException2('Unknown option "' + name + '" is met in definition of "' + tag + '" YAML type.');
26062
+ }
26052
26063
  });
26053
26064
  this.options = options;
26054
26065
  this.tag = tag;
@@ -26066,21 +26077,29 @@ var require_type = /* @__PURE__ */ __commonJSMin((exports, module) => {
26066
26077
  this.defaultStyle = options["defaultStyle"] || null;
26067
26078
  this.multi = options["multi"] || false;
26068
26079
  this.styleAliases = compileStyleAliases(options["styleAliases"] || null);
26069
- if (YAML_NODE_KINDS.indexOf(this.kind) === -1)
26070
- throw new YAMLException('Unknown kind "' + this.kind + '" is specified for "' + tag + '" YAML type.');
26071
- }
26072
- module.exports = Type;
26073
- });
26074
- var require_schema = /* @__PURE__ */ __commonJSMin((exports, module) => {
26075
- var YAMLException = require_exception();
26076
- var Type = require_type();
26077
- function compileList(schema, name) {
26080
+ if (YAML_NODE_KINDS.indexOf(this.kind) === -1) {
26081
+ throw new YAMLException2('Unknown kind "' + this.kind + '" is specified for "' + tag + '" YAML type.');
26082
+ }
26083
+ }
26084
+ type = Type2;
26085
+ return type;
26086
+ }
26087
+ var schema;
26088
+ var hasRequiredSchema;
26089
+ function requireSchema() {
26090
+ if (hasRequiredSchema)
26091
+ return schema;
26092
+ hasRequiredSchema = 1;
26093
+ const YAMLException2 = requireException();
26094
+ const Type2 = requireType();
26095
+ function compileList(schema2, name) {
26078
26096
  const result = [];
26079
- schema[name].forEach(function(currentType) {
26097
+ schema2[name].forEach(function(currentType) {
26080
26098
  let newIndex = result.length;
26081
26099
  result.forEach(function(previousType, previousIndex) {
26082
- if (previousType.tag === currentType.tag && previousType.kind === currentType.kind && previousType.multi === currentType.multi)
26100
+ if (previousType.tag === currentType.tag && previousType.kind === currentType.kind && previousType.multi === currentType.multi) {
26083
26101
  newIndex = previousIndex;
26102
+ }
26084
26103
  });
26085
26104
  result[newIndex] = currentType;
26086
26105
  });
@@ -26099,47 +26118,54 @@ var require_schema = /* @__PURE__ */ __commonJSMin((exports, module) => {
26099
26118
  fallback: []
26100
26119
  }
26101
26120
  };
26102
- function collectType(type) {
26103
- if (type.multi) {
26104
- result.multi[type.kind].push(type);
26105
- result.multi["fallback"].push(type);
26106
- } else
26107
- result[type.kind][type.tag] = result["fallback"][type.tag] = type;
26121
+ function collectType(type2) {
26122
+ if (type2.multi) {
26123
+ result.multi[type2.kind].push(type2);
26124
+ result.multi["fallback"].push(type2);
26125
+ } else {
26126
+ result[type2.kind][type2.tag] = result["fallback"][type2.tag] = type2;
26127
+ }
26108
26128
  }
26109
- for (let index = 0, length = arguments.length;index < length; index += 1)
26129
+ for (let index = 0, length = arguments.length;index < length; index += 1) {
26110
26130
  arguments[index].forEach(collectType);
26131
+ }
26111
26132
  return result;
26112
26133
  }
26113
- function Schema(definition) {
26134
+ function Schema2(definition) {
26114
26135
  return this.extend(definition);
26115
26136
  }
26116
- Schema.prototype.extend = function extend(definition) {
26137
+ Schema2.prototype.extend = function extend(definition) {
26117
26138
  let implicit = [];
26118
26139
  let explicit = [];
26119
- if (definition instanceof Type)
26140
+ if (definition instanceof Type2) {
26120
26141
  explicit.push(definition);
26121
- else if (Array.isArray(definition))
26142
+ } else if (Array.isArray(definition)) {
26122
26143
  explicit = explicit.concat(definition);
26123
- else if (definition && (Array.isArray(definition.implicit) || Array.isArray(definition.explicit))) {
26144
+ } else if (definition && (Array.isArray(definition.implicit) || Array.isArray(definition.explicit))) {
26124
26145
  if (definition.implicit)
26125
26146
  implicit = implicit.concat(definition.implicit);
26126
26147
  if (definition.explicit)
26127
26148
  explicit = explicit.concat(definition.explicit);
26128
- } else
26129
- throw new YAMLException("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })");
26130
- implicit.forEach(function(type) {
26131
- if (!(type instanceof Type))
26132
- throw new YAMLException("Specified list of YAML types (or a single Type object) contains a non-Type object.");
26133
- if (type.loadKind && type.loadKind !== "scalar")
26134
- throw new YAMLException("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.");
26135
- if (type.multi)
26136
- throw new YAMLException("There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.");
26149
+ } else {
26150
+ throw new YAMLException2("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })");
26151
+ }
26152
+ implicit.forEach(function(type2) {
26153
+ if (!(type2 instanceof Type2)) {
26154
+ throw new YAMLException2("Specified list of YAML types (or a single Type object) contains a non-Type object.");
26155
+ }
26156
+ if (type2.loadKind && type2.loadKind !== "scalar") {
26157
+ throw new YAMLException2("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.");
26158
+ }
26159
+ if (type2.multi) {
26160
+ throw new YAMLException2("There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.");
26161
+ }
26137
26162
  });
26138
- explicit.forEach(function(type) {
26139
- if (!(type instanceof Type))
26140
- throw new YAMLException("Specified list of YAML types (or a single Type object) contains a non-Type object.");
26163
+ explicit.forEach(function(type2) {
26164
+ if (!(type2 instanceof Type2)) {
26165
+ throw new YAMLException2("Specified list of YAML types (or a single Type object) contains a non-Type object.");
26166
+ }
26141
26167
  });
26142
- const result = Object.create(Schema.prototype);
26168
+ const result = Object.create(Schema2.prototype);
26143
26169
  result.implicit = (this.implicit || []).concat(implicit);
26144
26170
  result.explicit = (this.explicit || []).concat(explicit);
26145
26171
  result.compiledImplicit = compileList(result, "implicit");
@@ -26147,41 +26173,77 @@ var require_schema = /* @__PURE__ */ __commonJSMin((exports, module) => {
26147
26173
  result.compiledTypeMap = compileMap(result.compiledImplicit, result.compiledExplicit);
26148
26174
  return result;
26149
26175
  };
26150
- module.exports = Schema;
26151
- });
26152
- var require_str = /* @__PURE__ */ __commonJSMin((exports, module) => {
26153
- module.exports = new (require_type())("tag:yaml.org,2002:str", {
26176
+ schema = Schema2;
26177
+ return schema;
26178
+ }
26179
+ var str;
26180
+ var hasRequiredStr;
26181
+ function requireStr() {
26182
+ if (hasRequiredStr)
26183
+ return str;
26184
+ hasRequiredStr = 1;
26185
+ const Type2 = requireType();
26186
+ str = new Type2("tag:yaml.org,2002:str", {
26154
26187
  kind: "scalar",
26155
26188
  construct: function(data) {
26156
26189
  return data !== null ? data : "";
26157
26190
  }
26158
26191
  });
26159
- });
26160
- var require_seq = /* @__PURE__ */ __commonJSMin((exports, module) => {
26161
- module.exports = new (require_type())("tag:yaml.org,2002:seq", {
26192
+ return str;
26193
+ }
26194
+ var seq;
26195
+ var hasRequiredSeq;
26196
+ function requireSeq() {
26197
+ if (hasRequiredSeq)
26198
+ return seq;
26199
+ hasRequiredSeq = 1;
26200
+ const Type2 = requireType();
26201
+ seq = new Type2("tag:yaml.org,2002:seq", {
26162
26202
  kind: "sequence",
26163
26203
  construct: function(data) {
26164
26204
  return data !== null ? data : [];
26165
26205
  }
26166
26206
  });
26167
- });
26168
- var require_map2 = /* @__PURE__ */ __commonJSMin((exports, module) => {
26169
- module.exports = new (require_type())("tag:yaml.org,2002:map", {
26207
+ return seq;
26208
+ }
26209
+ var map;
26210
+ var hasRequiredMap;
26211
+ function requireMap() {
26212
+ if (hasRequiredMap)
26213
+ return map;
26214
+ hasRequiredMap = 1;
26215
+ const Type2 = requireType();
26216
+ map = new Type2("tag:yaml.org,2002:map", {
26170
26217
  kind: "mapping",
26171
26218
  construct: function(data) {
26172
26219
  return data !== null ? data : {};
26173
26220
  }
26174
26221
  });
26175
- });
26176
- var require_failsafe = /* @__PURE__ */ __commonJSMin((exports, module) => {
26177
- module.exports = new (require_schema())({ explicit: [
26178
- require_str(),
26179
- require_seq(),
26180
- require_map2()
26181
- ] });
26182
- });
26183
- var require_null = /* @__PURE__ */ __commonJSMin((exports, module) => {
26184
- var Type = require_type();
26222
+ return map;
26223
+ }
26224
+ var failsafe;
26225
+ var hasRequiredFailsafe;
26226
+ function requireFailsafe() {
26227
+ if (hasRequiredFailsafe)
26228
+ return failsafe;
26229
+ hasRequiredFailsafe = 1;
26230
+ const Schema2 = requireSchema();
26231
+ failsafe = new Schema2({
26232
+ explicit: [
26233
+ requireStr(),
26234
+ requireSeq(),
26235
+ requireMap()
26236
+ ]
26237
+ });
26238
+ return failsafe;
26239
+ }
26240
+ var _null;
26241
+ var hasRequired_null;
26242
+ function require_null() {
26243
+ if (hasRequired_null)
26244
+ return _null;
26245
+ hasRequired_null = 1;
26246
+ const Type2 = requireType();
26185
26247
  function resolveYamlNull(data) {
26186
26248
  if (data === null)
26187
26249
  return true;
@@ -26194,7 +26256,7 @@ var require_null = /* @__PURE__ */ __commonJSMin((exports, module) => {
26194
26256
  function isNull(object) {
26195
26257
  return object === null;
26196
26258
  }
26197
- module.exports = new Type("tag:yaml.org,2002:null", {
26259
+ _null = new Type2("tag:yaml.org,2002:null", {
26198
26260
  kind: "scalar",
26199
26261
  resolve: resolveYamlNull,
26200
26262
  construct: constructYamlNull,
@@ -26218,9 +26280,15 @@ var require_null = /* @__PURE__ */ __commonJSMin((exports, module) => {
26218
26280
  },
26219
26281
  defaultStyle: "lowercase"
26220
26282
  });
26221
- });
26222
- var require_bool = /* @__PURE__ */ __commonJSMin((exports, module) => {
26223
- var Type = require_type();
26283
+ return _null;
26284
+ }
26285
+ var bool;
26286
+ var hasRequiredBool;
26287
+ function requireBool() {
26288
+ if (hasRequiredBool)
26289
+ return bool;
26290
+ hasRequiredBool = 1;
26291
+ const Type2 = requireType();
26224
26292
  function resolveYamlBoolean(data) {
26225
26293
  if (data === null)
26226
26294
  return false;
@@ -26233,7 +26301,7 @@ var require_bool = /* @__PURE__ */ __commonJSMin((exports, module) => {
26233
26301
  function isBoolean(object) {
26234
26302
  return Object.prototype.toString.call(object) === "[object Boolean]";
26235
26303
  }
26236
- module.exports = new Type("tag:yaml.org,2002:bool", {
26304
+ bool = new Type2("tag:yaml.org,2002:bool", {
26237
26305
  kind: "scalar",
26238
26306
  resolve: resolveYamlBoolean,
26239
26307
  construct: constructYamlBoolean,
@@ -26251,10 +26319,16 @@ var require_bool = /* @__PURE__ */ __commonJSMin((exports, module) => {
26251
26319
  },
26252
26320
  defaultStyle: "lowercase"
26253
26321
  });
26254
- });
26255
- var require_int = /* @__PURE__ */ __commonJSMin((exports, module) => {
26256
- var common = require_common();
26257
- var Type = require_type();
26322
+ return bool;
26323
+ }
26324
+ var int;
26325
+ var hasRequiredInt;
26326
+ function requireInt() {
26327
+ if (hasRequiredInt)
26328
+ return int;
26329
+ hasRequiredInt = 1;
26330
+ const common2 = requireCommon();
26331
+ const Type2 = requireType();
26258
26332
  function isHexCode(c) {
26259
26333
  return c >= 48 && c <= 57 || c >= 65 && c <= 70 || c >= 97 && c <= 102;
26260
26334
  }
@@ -26273,8 +26347,9 @@ var require_int = /* @__PURE__ */ __commonJSMin((exports, module) => {
26273
26347
  if (!max)
26274
26348
  return false;
26275
26349
  let ch = data[index];
26276
- if (ch === "-" || ch === "+")
26350
+ if (ch === "-" || ch === "+") {
26277
26351
  ch = data[++index];
26352
+ }
26278
26353
  if (ch === "0") {
26279
26354
  if (index + 1 === max)
26280
26355
  return true;
@@ -26287,7 +26362,7 @@ var require_int = /* @__PURE__ */ __commonJSMin((exports, module) => {
26287
26362
  return false;
26288
26363
  hasDigits = true;
26289
26364
  }
26290
- return hasDigits && Number.isFinite(parseYamlInteger(data));
26365
+ return hasDigits && isFinite(parseYamlInteger(data));
26291
26366
  }
26292
26367
  if (ch === "x") {
26293
26368
  index++;
@@ -26296,7 +26371,7 @@ var require_int = /* @__PURE__ */ __commonJSMin((exports, module) => {
26296
26371
  return false;
26297
26372
  hasDigits = true;
26298
26373
  }
26299
- return hasDigits && Number.isFinite(parseYamlInteger(data));
26374
+ return hasDigits && isFinite(parseYamlInteger(data));
26300
26375
  }
26301
26376
  if (ch === "o") {
26302
26377
  index++;
@@ -26305,17 +26380,18 @@ var require_int = /* @__PURE__ */ __commonJSMin((exports, module) => {
26305
26380
  return false;
26306
26381
  hasDigits = true;
26307
26382
  }
26308
- return hasDigits && Number.isFinite(parseYamlInteger(data));
26383
+ return hasDigits && isFinite(parseYamlInteger(data));
26309
26384
  }
26310
26385
  }
26311
26386
  for (;index < max; index++) {
26312
- if (!isDecCode(data.charCodeAt(index)))
26387
+ if (!isDecCode(data.charCodeAt(index))) {
26313
26388
  return false;
26389
+ }
26314
26390
  hasDigits = true;
26315
26391
  }
26316
26392
  if (!hasDigits)
26317
26393
  return false;
26318
- return Number.isFinite(parseYamlInteger(data));
26394
+ return isFinite(parseYamlInteger(data));
26319
26395
  }
26320
26396
  function parseYamlInteger(data) {
26321
26397
  let value = data;
@@ -26343,9 +26419,9 @@ var require_int = /* @__PURE__ */ __commonJSMin((exports, module) => {
26343
26419
  return parseYamlInteger(data);
26344
26420
  }
26345
26421
  function isInteger(object) {
26346
- return Object.prototype.toString.call(object) === "[object Number]" && object % 1 === 0 && !common.isNegativeZero(object);
26422
+ return Object.prototype.toString.call(object) === "[object Number]" && (object % 1 === 0 && !common2.isNegativeZero(object));
26347
26423
  }
26348
- module.exports = new Type("tag:yaml.org,2002:int", {
26424
+ int = new Type2("tag:yaml.org,2002:int", {
26349
26425
  kind: "scalar",
26350
26426
  resolve: resolveYamlInteger,
26351
26427
  construct: constructYamlInteger,
@@ -26372,35 +26448,45 @@ var require_int = /* @__PURE__ */ __commonJSMin((exports, module) => {
26372
26448
  hexadecimal: [16, "hex"]
26373
26449
  }
26374
26450
  });
26375
- });
26376
- var require_float = /* @__PURE__ */ __commonJSMin((exports, module) => {
26377
- var common = require_common();
26378
- var Type = require_type();
26379
- 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))$");
26380
- var YAML_FLOAT_SPECIAL_PATTERN = /* @__PURE__ */ new RegExp("^(?:[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");
26451
+ return int;
26452
+ }
26453
+ var float;
26454
+ var hasRequiredFloat;
26455
+ function requireFloat() {
26456
+ if (hasRequiredFloat)
26457
+ return float;
26458
+ hasRequiredFloat = 1;
26459
+ const common2 = requireCommon();
26460
+ const Type2 = requireType();
26461
+ const YAML_FLOAT_PATTERN = new RegExp("^(?:[-+]?(?:[0-9]+)(?:\\.[0-9]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");
26462
+ const YAML_FLOAT_SPECIAL_PATTERN = new RegExp("^(?:[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");
26381
26463
  function resolveYamlFloat(data) {
26382
26464
  if (data === null)
26383
26465
  return false;
26384
- if (!YAML_FLOAT_PATTERN.test(data))
26466
+ if (!YAML_FLOAT_PATTERN.test(data)) {
26385
26467
  return false;
26386
- if (Number.isFinite(parseFloat(data, 10)))
26468
+ }
26469
+ if (isFinite(parseFloat(data, 10))) {
26387
26470
  return true;
26471
+ }
26388
26472
  return YAML_FLOAT_SPECIAL_PATTERN.test(data);
26389
26473
  }
26390
26474
  function constructYamlFloat(data) {
26391
26475
  let value = data.toLowerCase();
26392
26476
  const sign = value[0] === "-" ? -1 : 1;
26393
- if ("+-".indexOf(value[0]) >= 0)
26477
+ if ("+-".indexOf(value[0]) >= 0) {
26394
26478
  value = value.slice(1);
26395
- if (value === ".inf")
26479
+ }
26480
+ if (value === ".inf") {
26396
26481
  return sign === 1 ? Number.POSITIVE_INFINITY : Number.NEGATIVE_INFINITY;
26397
- else if (value === ".nan")
26482
+ } else if (value === ".nan") {
26398
26483
  return NaN;
26484
+ }
26399
26485
  return sign * parseFloat(value, 10);
26400
26486
  }
26401
- var SCIENTIFIC_WITHOUT_DOT = /^[-+]?[0-9]+e/;
26487
+ const SCIENTIFIC_WITHOUT_DOT = /^[-+]?[0-9]+e/;
26402
26488
  function representYamlFloat(object, style) {
26403
- if (isNaN(object))
26489
+ if (isNaN(object)) {
26404
26490
  switch (style) {
26405
26491
  case "lowercase":
26406
26492
  return ".nan";
@@ -26409,7 +26495,7 @@ var require_float = /* @__PURE__ */ __commonJSMin((exports, module) => {
26409
26495
  case "camelcase":
26410
26496
  return ".NaN";
26411
26497
  }
26412
- else if (Number.POSITIVE_INFINITY === object)
26498
+ } else if (Number.POSITIVE_INFINITY === object) {
26413
26499
  switch (style) {
26414
26500
  case "lowercase":
26415
26501
  return ".inf";
@@ -26418,7 +26504,7 @@ var require_float = /* @__PURE__ */ __commonJSMin((exports, module) => {
26418
26504
  case "camelcase":
26419
26505
  return ".Inf";
26420
26506
  }
26421
- else if (Number.NEGATIVE_INFINITY === object)
26507
+ } else if (Number.NEGATIVE_INFINITY === object) {
26422
26508
  switch (style) {
26423
26509
  case "lowercase":
26424
26510
  return "-.inf";
@@ -26427,15 +26513,16 @@ var require_float = /* @__PURE__ */ __commonJSMin((exports, module) => {
26427
26513
  case "camelcase":
26428
26514
  return "-.Inf";
26429
26515
  }
26430
- else if (common.isNegativeZero(object))
26516
+ } else if (common2.isNegativeZero(object)) {
26431
26517
  return "-0.0";
26518
+ }
26432
26519
  const res = object.toString(10);
26433
26520
  return SCIENTIFIC_WITHOUT_DOT.test(res) ? res.replace("e", ".e") : res;
26434
26521
  }
26435
26522
  function isFloat(object) {
26436
- return Object.prototype.toString.call(object) === "[object Number]" && (object % 1 !== 0 || common.isNegativeZero(object));
26523
+ return Object.prototype.toString.call(object) === "[object Number]" && (object % 1 !== 0 || common2.isNegativeZero(object));
26437
26524
  }
26438
- module.exports = new Type("tag:yaml.org,2002:float", {
26525
+ float = new Type2("tag:yaml.org,2002:float", {
26439
26526
  kind: "scalar",
26440
26527
  resolve: resolveYamlFloat,
26441
26528
  construct: constructYamlFloat,
@@ -26443,22 +26530,42 @@ var require_float = /* @__PURE__ */ __commonJSMin((exports, module) => {
26443
26530
  represent: representYamlFloat,
26444
26531
  defaultStyle: "lowercase"
26445
26532
  });
26446
- });
26447
- var require_json = /* @__PURE__ */ __commonJSMin((exports, module) => {
26448
- module.exports = require_failsafe().extend({ implicit: [
26449
- require_null(),
26450
- require_bool(),
26451
- require_int(),
26452
- require_float()
26453
- ] });
26454
- });
26455
- var require_core = /* @__PURE__ */ __commonJSMin((exports, module) => {
26456
- module.exports = require_json();
26457
- });
26458
- var require_timestamp = /* @__PURE__ */ __commonJSMin((exports, module) => {
26459
- var Type = require_type();
26460
- var YAML_DATE_REGEXP = /* @__PURE__ */ new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$");
26461
- 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]))?))?$");
26533
+ return float;
26534
+ }
26535
+ var json;
26536
+ var hasRequiredJson;
26537
+ function requireJson() {
26538
+ if (hasRequiredJson)
26539
+ return json;
26540
+ hasRequiredJson = 1;
26541
+ json = requireFailsafe().extend({
26542
+ implicit: [
26543
+ require_null(),
26544
+ requireBool(),
26545
+ requireInt(),
26546
+ requireFloat()
26547
+ ]
26548
+ });
26549
+ return json;
26550
+ }
26551
+ var core;
26552
+ var hasRequiredCore;
26553
+ function requireCore() {
26554
+ if (hasRequiredCore)
26555
+ return core;
26556
+ hasRequiredCore = 1;
26557
+ core = requireJson();
26558
+ return core;
26559
+ }
26560
+ var timestamp;
26561
+ var hasRequiredTimestamp;
26562
+ function requireTimestamp() {
26563
+ if (hasRequiredTimestamp)
26564
+ return timestamp;
26565
+ hasRequiredTimestamp = 1;
26566
+ const Type2 = requireType();
26567
+ const YAML_DATE_REGEXP = new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$");
26568
+ 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]))?))?$");
26462
26569
  function resolveYamlTimestamp(data) {
26463
26570
  if (data === null)
26464
26571
  return false;
@@ -26479,15 +26586,17 @@ var require_timestamp = /* @__PURE__ */ __commonJSMin((exports, module) => {
26479
26586
  const year = +match[1];
26480
26587
  const month = +match[2] - 1;
26481
26588
  const day = +match[3];
26482
- if (!match[4])
26589
+ if (!match[4]) {
26483
26590
  return new Date(Date.UTC(year, month, day));
26591
+ }
26484
26592
  const hour = +match[4];
26485
26593
  const minute = +match[5];
26486
26594
  const second = +match[6];
26487
26595
  if (match[7]) {
26488
26596
  fraction = match[7].slice(0, 3);
26489
- while (fraction.length < 3)
26597
+ while (fraction.length < 3) {
26490
26598
  fraction += "0";
26599
+ }
26491
26600
  fraction = +fraction;
26492
26601
  }
26493
26602
  if (match[9]) {
@@ -26505,36 +26614,48 @@ var require_timestamp = /* @__PURE__ */ __commonJSMin((exports, module) => {
26505
26614
  function representYamlTimestamp(object) {
26506
26615
  return object.toISOString();
26507
26616
  }
26508
- module.exports = new Type("tag:yaml.org,2002:timestamp", {
26617
+ timestamp = new Type2("tag:yaml.org,2002:timestamp", {
26509
26618
  kind: "scalar",
26510
26619
  resolve: resolveYamlTimestamp,
26511
26620
  construct: constructYamlTimestamp,
26512
26621
  instanceOf: Date,
26513
26622
  represent: representYamlTimestamp
26514
26623
  });
26515
- });
26516
- var require_merge2 = /* @__PURE__ */ __commonJSMin((exports, module) => {
26517
- var Type = require_type();
26624
+ return timestamp;
26625
+ }
26626
+ var merge;
26627
+ var hasRequiredMerge;
26628
+ function requireMerge() {
26629
+ if (hasRequiredMerge)
26630
+ return merge;
26631
+ hasRequiredMerge = 1;
26632
+ const Type2 = requireType();
26518
26633
  function resolveYamlMerge(data) {
26519
26634
  return data === "<<" || data === null;
26520
26635
  }
26521
- module.exports = new Type("tag:yaml.org,2002:merge", {
26636
+ merge = new Type2("tag:yaml.org,2002:merge", {
26522
26637
  kind: "scalar",
26523
26638
  resolve: resolveYamlMerge
26524
26639
  });
26525
- });
26526
- var require_binary = /* @__PURE__ */ __commonJSMin((exports, module) => {
26527
- var Type = require_type();
26528
- var BASE64_MAP = `ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
26640
+ return merge;
26641
+ }
26642
+ var binary;
26643
+ var hasRequiredBinary;
26644
+ function requireBinary() {
26645
+ if (hasRequiredBinary)
26646
+ return binary;
26647
+ hasRequiredBinary = 1;
26648
+ const Type2 = requireType();
26649
+ const BASE64_MAP = `ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
26529
26650
  \r`;
26530
26651
  function resolveYamlBinary(data) {
26531
26652
  if (data === null)
26532
26653
  return false;
26533
26654
  let bitlen = 0;
26534
26655
  const max = data.length;
26535
- const map = BASE64_MAP;
26656
+ const map2 = BASE64_MAP;
26536
26657
  for (let idx = 0;idx < max; idx++) {
26537
- const code = map.indexOf(data.charAt(idx));
26658
+ const code = map2.indexOf(data.charAt(idx));
26538
26659
  if (code > 64)
26539
26660
  continue;
26540
26661
  if (code < 0)
@@ -26546,7 +26667,7 @@ var require_binary = /* @__PURE__ */ __commonJSMin((exports, module) => {
26546
26667
  function constructYamlBinary(data) {
26547
26668
  const input = data.replace(/[\r\n=]/g, "");
26548
26669
  const max = input.length;
26549
- const map = BASE64_MAP;
26670
+ const map2 = BASE64_MAP;
26550
26671
  let bits = 0;
26551
26672
  const result = [];
26552
26673
  for (let idx = 0;idx < max; idx++) {
@@ -26555,7 +26676,7 @@ var require_binary = /* @__PURE__ */ __commonJSMin((exports, module) => {
26555
26676
  result.push(bits >> 8 & 255);
26556
26677
  result.push(bits & 255);
26557
26678
  }
26558
- bits = bits << 6 | map.indexOf(input.charAt(idx));
26679
+ bits = bits << 6 | map2.indexOf(input.charAt(idx));
26559
26680
  }
26560
26681
  const tailbits = max % 4 * 6;
26561
26682
  if (tailbits === 0) {
@@ -26565,58 +26686,65 @@ var require_binary = /* @__PURE__ */ __commonJSMin((exports, module) => {
26565
26686
  } else if (tailbits === 18) {
26566
26687
  result.push(bits >> 10 & 255);
26567
26688
  result.push(bits >> 2 & 255);
26568
- } else if (tailbits === 12)
26689
+ } else if (tailbits === 12) {
26569
26690
  result.push(bits >> 4 & 255);
26691
+ }
26570
26692
  return new Uint8Array(result);
26571
26693
  }
26572
26694
  function representYamlBinary(object) {
26573
26695
  let result = "";
26574
26696
  let bits = 0;
26575
26697
  const max = object.length;
26576
- const map = BASE64_MAP;
26698
+ const map2 = BASE64_MAP;
26577
26699
  for (let idx = 0;idx < max; idx++) {
26578
26700
  if (idx % 3 === 0 && idx) {
26579
- result += map[bits >> 18 & 63];
26580
- result += map[bits >> 12 & 63];
26581
- result += map[bits >> 6 & 63];
26582
- result += map[bits & 63];
26701
+ result += map2[bits >> 18 & 63];
26702
+ result += map2[bits >> 12 & 63];
26703
+ result += map2[bits >> 6 & 63];
26704
+ result += map2[bits & 63];
26583
26705
  }
26584
26706
  bits = (bits << 8) + object[idx];
26585
26707
  }
26586
26708
  const tail = max % 3;
26587
26709
  if (tail === 0) {
26588
- result += map[bits >> 18 & 63];
26589
- result += map[bits >> 12 & 63];
26590
- result += map[bits >> 6 & 63];
26591
- result += map[bits & 63];
26710
+ result += map2[bits >> 18 & 63];
26711
+ result += map2[bits >> 12 & 63];
26712
+ result += map2[bits >> 6 & 63];
26713
+ result += map2[bits & 63];
26592
26714
  } else if (tail === 2) {
26593
- result += map[bits >> 10 & 63];
26594
- result += map[bits >> 4 & 63];
26595
- result += map[bits << 2 & 63];
26596
- result += map[64];
26715
+ result += map2[bits >> 10 & 63];
26716
+ result += map2[bits >> 4 & 63];
26717
+ result += map2[bits << 2 & 63];
26718
+ result += map2[64];
26597
26719
  } else if (tail === 1) {
26598
- result += map[bits >> 2 & 63];
26599
- result += map[bits << 4 & 63];
26600
- result += map[64];
26601
- result += map[64];
26720
+ result += map2[bits >> 2 & 63];
26721
+ result += map2[bits << 4 & 63];
26722
+ result += map2[64];
26723
+ result += map2[64];
26602
26724
  }
26603
26725
  return result;
26604
26726
  }
26605
26727
  function isBinary(obj) {
26606
26728
  return Object.prototype.toString.call(obj) === "[object Uint8Array]";
26607
26729
  }
26608
- module.exports = new Type("tag:yaml.org,2002:binary", {
26730
+ binary = new Type2("tag:yaml.org,2002:binary", {
26609
26731
  kind: "scalar",
26610
26732
  resolve: resolveYamlBinary,
26611
26733
  construct: constructYamlBinary,
26612
26734
  predicate: isBinary,
26613
26735
  represent: representYamlBinary
26614
26736
  });
26615
- });
26616
- var require_omap = /* @__PURE__ */ __commonJSMin((exports, module) => {
26617
- var Type = require_type();
26618
- var _hasOwnProperty = Object.prototype.hasOwnProperty;
26619
- var _toString = Object.prototype.toString;
26737
+ return binary;
26738
+ }
26739
+ var omap;
26740
+ var hasRequiredOmap;
26741
+ function requireOmap() {
26742
+ if (hasRequiredOmap)
26743
+ return omap;
26744
+ hasRequiredOmap = 1;
26745
+ const Type2 = requireType();
26746
+ const _hasOwnProperty = Object.prototype.hasOwnProperty;
26747
+ const _toString = Object.prototype.toString;
26620
26748
  function resolveYamlOmap(data) {
26621
26749
  if (data === null)
26622
26750
  return true;
@@ -26628,12 +26756,14 @@ var require_omap = /* @__PURE__ */ __commonJSMin((exports, module) => {
26628
26756
  if (_toString.call(pair) !== "[object Object]")
26629
26757
  return false;
26630
26758
  let pairKey;
26631
- for (pairKey in pair)
26632
- if (_hasOwnProperty.call(pair, pairKey))
26759
+ for (pairKey in pair) {
26760
+ if (_hasOwnProperty.call(pair, pairKey)) {
26633
26761
  if (!pairHasKey)
26634
26762
  pairHasKey = true;
26635
26763
  else
26636
26764
  return false;
26765
+ }
26766
+ }
26637
26767
  if (!pairHasKey)
26638
26768
  return false;
26639
26769
  if (objectKeys.indexOf(pairKey) === -1)
@@ -26646,15 +26776,21 @@ var require_omap = /* @__PURE__ */ __commonJSMin((exports, module) => {
26646
26776
  function constructYamlOmap(data) {
26647
26777
  return data !== null ? data : [];
26648
26778
  }
26649
- module.exports = new Type("tag:yaml.org,2002:omap", {
26779
+ omap = new Type2("tag:yaml.org,2002:omap", {
26650
26780
  kind: "sequence",
26651
26781
  resolve: resolveYamlOmap,
26652
26782
  construct: constructYamlOmap
26653
26783
  });
26654
- });
26655
- var require_pairs2 = /* @__PURE__ */ __commonJSMin((exports, module) => {
26656
- var Type = require_type();
26657
- var _toString = Object.prototype.toString;
26784
+ return omap;
26785
+ }
26786
+ var pairs;
26787
+ var hasRequiredPairs;
26788
+ function requirePairs() {
26789
+ if (hasRequiredPairs)
26790
+ return pairs;
26791
+ hasRequiredPairs = 1;
26792
+ const Type2 = requireType();
26793
+ const _toString = Object.prototype.toString;
26658
26794
  function resolveYamlPairs(data) {
26659
26795
  if (data === null)
26660
26796
  return true;
@@ -26683,64 +26819,85 @@ var require_pairs2 = /* @__PURE__ */ __commonJSMin((exports, module) => {
26683
26819
  }
26684
26820
  return result;
26685
26821
  }
26686
- module.exports = new Type("tag:yaml.org,2002:pairs", {
26822
+ pairs = new Type2("tag:yaml.org,2002:pairs", {
26687
26823
  kind: "sequence",
26688
26824
  resolve: resolveYamlPairs,
26689
26825
  construct: constructYamlPairs
26690
26826
  });
26691
- });
26692
- var require_set = /* @__PURE__ */ __commonJSMin((exports, module) => {
26693
- var Type = require_type();
26694
- var _hasOwnProperty = Object.prototype.hasOwnProperty;
26827
+ return pairs;
26828
+ }
26829
+ var set;
26830
+ var hasRequiredSet;
26831
+ function requireSet() {
26832
+ if (hasRequiredSet)
26833
+ return set;
26834
+ hasRequiredSet = 1;
26835
+ const Type2 = requireType();
26836
+ const _hasOwnProperty = Object.prototype.hasOwnProperty;
26695
26837
  function resolveYamlSet(data) {
26696
26838
  if (data === null)
26697
26839
  return true;
26698
26840
  const object = data;
26699
- for (const key in object)
26841
+ for (const key in object) {
26700
26842
  if (_hasOwnProperty.call(object, key)) {
26701
26843
  if (object[key] !== null)
26702
26844
  return false;
26703
26845
  }
26846
+ }
26704
26847
  return true;
26705
26848
  }
26706
26849
  function constructYamlSet(data) {
26707
26850
  return data !== null ? data : {};
26708
26851
  }
26709
- module.exports = new Type("tag:yaml.org,2002:set", {
26852
+ set = new Type2("tag:yaml.org,2002:set", {
26710
26853
  kind: "mapping",
26711
26854
  resolve: resolveYamlSet,
26712
26855
  construct: constructYamlSet
26713
26856
  });
26714
- });
26715
- var require_default = /* @__PURE__ */ __commonJSMin((exports, module) => {
26716
- module.exports = require_core().extend({
26717
- implicit: [require_timestamp(), require_merge2()],
26857
+ return set;
26858
+ }
26859
+ var _default;
26860
+ var hasRequired_default;
26861
+ function require_default() {
26862
+ if (hasRequired_default)
26863
+ return _default;
26864
+ hasRequired_default = 1;
26865
+ _default = requireCore().extend({
26866
+ implicit: [
26867
+ requireTimestamp(),
26868
+ requireMerge()
26869
+ ],
26718
26870
  explicit: [
26719
- require_binary(),
26720
- require_omap(),
26721
- require_pairs2(),
26722
- require_set()
26871
+ requireBinary(),
26872
+ requireOmap(),
26873
+ requirePairs(),
26874
+ requireSet()
26723
26875
  ]
26724
26876
  });
26725
- });
26726
- var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
26727
- var common = require_common();
26728
- var YAMLException = require_exception();
26729
- var makeSnippet = require_snippet();
26730
- var DEFAULT_SCHEMA = require_default();
26731
- var _hasOwnProperty = Object.prototype.hasOwnProperty;
26732
- var CONTEXT_FLOW_IN = 1;
26733
- var CONTEXT_FLOW_OUT = 2;
26734
- var CONTEXT_BLOCK_IN = 3;
26735
- var CONTEXT_BLOCK_OUT = 4;
26736
- var CHOMPING_CLIP = 1;
26737
- var CHOMPING_STRIP = 2;
26738
- var CHOMPING_KEEP = 3;
26739
- var PATTERN_NON_PRINTABLE = /[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/;
26740
- var PATTERN_NON_ASCII_LINE_BREAKS = /[\x85\u2028\u2029]/;
26741
- var PATTERN_FLOW_INDICATORS = /[,\[\]{}]/;
26742
- var PATTERN_TAG_HANDLE = /^(?:!|!!|![0-9A-Za-z-]+!)$/;
26743
- var PATTERN_TAG_URI = /^(?:!|[^,\[\]{}])(?:%[0-9a-f]{2}|[0-9a-z\-#;/?:@&=+$,_.!~*'()\[\]])*$/i;
26877
+ return _default;
26878
+ }
26879
+ var hasRequiredLoader;
26880
+ function requireLoader() {
26881
+ if (hasRequiredLoader)
26882
+ return loader;
26883
+ hasRequiredLoader = 1;
26884
+ const common2 = requireCommon();
26885
+ const YAMLException2 = requireException();
26886
+ const makeSnippet = requireSnippet();
26887
+ const DEFAULT_SCHEMA2 = require_default();
26888
+ const _hasOwnProperty = Object.prototype.hasOwnProperty;
26889
+ const CONTEXT_FLOW_IN = 1;
26890
+ const CONTEXT_FLOW_OUT = 2;
26891
+ const CONTEXT_BLOCK_IN = 3;
26892
+ const CONTEXT_BLOCK_OUT = 4;
26893
+ const CHOMPING_CLIP = 1;
26894
+ const CHOMPING_STRIP = 2;
26895
+ const CHOMPING_KEEP = 3;
26896
+ const PATTERN_NON_PRINTABLE = /[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/;
26897
+ const PATTERN_NON_ASCII_LINE_BREAKS = /[\x85\u2028\u2029]/;
26898
+ const PATTERN_FLOW_INDICATORS = /[,\[\]{}]/;
26899
+ const PATTERN_TAG_HANDLE = /^(?:!|!!|![0-9A-Za-z-]+!)$/;
26900
+ const PATTERN_TAG_URI = /^(?:!|[^,\[\]{}])(?:%[0-9a-f]{2}|[0-9a-z\-#;/?:@&=+$,_.!~*'()\[\]])*$/i;
26744
26901
  function _class(obj) {
26745
26902
  return Object.prototype.toString.call(obj);
26746
26903
  }
@@ -26757,25 +26914,31 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
26757
26914
  return c === 44 || c === 91 || c === 93 || c === 123 || c === 125;
26758
26915
  }
26759
26916
  function fromHexCode(c) {
26760
- if (c >= 48 && c <= 57)
26917
+ if (c >= 48 && c <= 57) {
26761
26918
  return c - 48;
26919
+ }
26762
26920
  const lc = c | 32;
26763
- if (lc >= 97 && lc <= 102)
26921
+ if (lc >= 97 && lc <= 102) {
26764
26922
  return lc - 97 + 10;
26923
+ }
26765
26924
  return -1;
26766
26925
  }
26767
26926
  function escapedHexLen(c) {
26768
- if (c === 120)
26927
+ if (c === 120) {
26769
26928
  return 2;
26770
- if (c === 117)
26929
+ }
26930
+ if (c === 117) {
26771
26931
  return 4;
26772
- if (c === 85)
26932
+ }
26933
+ if (c === 85) {
26773
26934
  return 8;
26935
+ }
26774
26936
  return 0;
26775
26937
  }
26776
26938
  function fromDecimalCode(c) {
26777
- if (c >= 48 && c <= 57)
26939
+ if (c >= 48 && c <= 57) {
26778
26940
  return c - 48;
26941
+ }
26779
26942
  return -1;
26780
26943
  }
26781
26944
  function simpleEscapeSequence(c) {
@@ -26822,23 +26985,25 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
26822
26985
  }
26823
26986
  }
26824
26987
  function charFromCodepoint(c) {
26825
- if (c <= 65535)
26988
+ if (c <= 65535) {
26826
26989
  return String.fromCharCode(c);
26990
+ }
26827
26991
  return String.fromCharCode((c - 65536 >> 10) + 55296, (c - 65536 & 1023) + 56320);
26828
26992
  }
26829
26993
  function setProperty(object, key, value) {
26830
- if (key === "__proto__")
26994
+ if (key === "__proto__") {
26831
26995
  Object.defineProperty(object, key, {
26832
26996
  configurable: true,
26833
26997
  enumerable: true,
26834
26998
  writable: true,
26835
26999
  value
26836
27000
  });
26837
- else
27001
+ } else {
26838
27002
  object[key] = value;
27003
+ }
26839
27004
  }
26840
- var simpleEscapeCheck = new Array(256);
26841
- var simpleEscapeMap = new Array(256);
27005
+ const simpleEscapeCheck = new Array(256);
27006
+ const simpleEscapeMap = new Array(256);
26842
27007
  for (let i = 0;i < 256; i++) {
26843
27008
  simpleEscapeCheck[i] = simpleEscapeSequence(i) ? 1 : 0;
26844
27009
  simpleEscapeMap[i] = simpleEscapeSequence(i);
@@ -26846,13 +27011,13 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
26846
27011
  function State(input, options) {
26847
27012
  this.input = input;
26848
27013
  this.filename = options["filename"] || null;
26849
- this.schema = options["schema"] || DEFAULT_SCHEMA;
27014
+ this.schema = options["schema"] || DEFAULT_SCHEMA2;
26850
27015
  this.onWarning = options["onWarning"] || null;
26851
27016
  this.legacy = options["legacy"] || false;
26852
27017
  this.json = options["json"] || false;
26853
27018
  this.listener = options["listener"] || null;
26854
27019
  this.maxDepth = typeof options["maxDepth"] === "number" ? options["maxDepth"] : 100;
26855
- this.maxMergeSeqLength = typeof options["maxMergeSeqLength"] === "number" ? options["maxMergeSeqLength"] : 20;
27020
+ this.maxTotalMergeKeys = typeof options["maxTotalMergeKeys"] === "number" ? options["maxTotalMergeKeys"] : 1e4;
26856
27021
  this.implicitTypes = this.schema.compiledImplicit;
26857
27022
  this.typeMap = this.schema.compiledTypeMap;
26858
27023
  this.length = input.length;
@@ -26861,6 +27026,7 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
26861
27026
  this.lineStart = 0;
26862
27027
  this.lineIndent = 0;
26863
27028
  this.depth = 0;
27029
+ this.totalMergeKeys = 0;
26864
27030
  this.firstTabInLine = -1;
26865
27031
  this.documents = [];
26866
27032
  this.anchorMapTransactions = [];
@@ -26874,29 +27040,31 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
26874
27040
  column: state.position - state.lineStart
26875
27041
  };
26876
27042
  mark.snippet = makeSnippet(mark);
26877
- return new YAMLException(message, mark);
27043
+ return new YAMLException2(message, mark);
26878
27044
  }
26879
27045
  function throwError(state, message) {
26880
27046
  throw generateError(state, message);
26881
27047
  }
26882
27048
  function throwWarning(state, message) {
26883
- if (state.onWarning)
27049
+ if (state.onWarning) {
26884
27050
  state.onWarning.call(null, generateError(state, message));
27051
+ }
26885
27052
  }
26886
27053
  function storeAnchor(state, name, value) {
26887
27054
  const transactions = state.anchorMapTransactions;
26888
27055
  if (transactions.length !== 0) {
26889
27056
  const transaction = transactions[transactions.length - 1];
26890
- if (!_hasOwnProperty.call(transaction, name))
27057
+ if (!_hasOwnProperty.call(transaction, name)) {
26891
27058
  transaction[name] = {
26892
27059
  existed: _hasOwnProperty.call(state.anchorMap, name),
26893
27060
  value: state.anchorMap[name]
26894
27061
  };
27062
+ }
26895
27063
  }
26896
27064
  state.anchorMap[name] = value;
26897
27065
  }
26898
27066
  function beginAnchorTransaction(state) {
26899
- state.anchorMapTransactions.push(Object.create(null));
27067
+ state.anchorMapTransactions.push(/* @__PURE__ */ Object.create(null));
26900
27068
  }
26901
27069
  function commitAnchorTransaction(state) {
26902
27070
  const transaction = state.anchorMapTransactions.pop();
@@ -26907,8 +27075,9 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
26907
27075
  const names = Object.keys(transaction);
26908
27076
  for (let index = 0, length = names.length;index < length; index += 1) {
26909
27077
  const name = names[index];
26910
- if (!_hasOwnProperty.call(parent, name))
27078
+ if (!_hasOwnProperty.call(parent, name)) {
26911
27079
  parent[name] = transaction[name];
27080
+ }
26912
27081
  }
26913
27082
  }
26914
27083
  function rollbackAnchorTransaction(state) {
@@ -26916,10 +27085,11 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
26916
27085
  const names = Object.keys(transaction);
26917
27086
  for (let index = names.length - 1;index >= 0; index -= 1) {
26918
27087
  const entry = transaction[names[index]];
26919
- if (entry.existed)
27088
+ if (entry.existed) {
26920
27089
  state.anchorMap[names[index]] = entry.value;
26921
- else
27090
+ } else {
26922
27091
  delete state.anchorMap[names[index]];
27092
+ }
26923
27093
  }
26924
27094
  }
26925
27095
  function snapshotState(state) {
@@ -26946,36 +27116,45 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
26946
27116
  state.kind = snapshot.kind;
26947
27117
  state.result = snapshot.result;
26948
27118
  }
26949
- var directiveHandlers = {
27119
+ const directiveHandlers = {
26950
27120
  YAML: function handleYamlDirective(state, name, args) {
26951
- if (state.version !== null)
27121
+ if (state.version !== null) {
26952
27122
  throwError(state, "duplication of %YAML directive");
26953
- if (args.length !== 1)
27123
+ }
27124
+ if (args.length !== 1) {
26954
27125
  throwError(state, "YAML directive accepts exactly one argument");
27126
+ }
26955
27127
  const match = /^([0-9]+)\.([0-9]+)$/.exec(args[0]);
26956
- if (match === null)
27128
+ if (match === null) {
26957
27129
  throwError(state, "ill-formed argument of the YAML directive");
27130
+ }
26958
27131
  const major = parseInt(match[1], 10);
26959
27132
  const minor = parseInt(match[2], 10);
26960
- if (major !== 1)
27133
+ if (major !== 1) {
26961
27134
  throwError(state, "unacceptable YAML version of the document");
27135
+ }
26962
27136
  state.version = args[0];
26963
27137
  state.checkLineBreaks = minor < 2;
26964
- if (minor !== 1 && minor !== 2)
27138
+ if (minor !== 1 && minor !== 2) {
26965
27139
  throwWarning(state, "unsupported YAML version of the document");
27140
+ }
26966
27141
  },
26967
27142
  TAG: function handleTagDirective(state, name, args) {
26968
27143
  let prefix;
26969
- if (args.length !== 2)
27144
+ if (args.length !== 2) {
26970
27145
  throwError(state, "TAG directive accepts exactly two arguments");
27146
+ }
26971
27147
  const handle = args[0];
26972
27148
  prefix = args[1];
26973
- if (!PATTERN_TAG_HANDLE.test(handle))
27149
+ if (!PATTERN_TAG_HANDLE.test(handle)) {
26974
27150
  throwError(state, "ill-formed tag handle (first argument) of the TAG directive");
26975
- if (_hasOwnProperty.call(state.tagMap, handle))
27151
+ }
27152
+ if (_hasOwnProperty.call(state.tagMap, handle)) {
26976
27153
  throwError(state, 'there is a previously declared suffix for "' + handle + '" tag handle');
26977
- if (!PATTERN_TAG_URI.test(prefix))
27154
+ }
27155
+ if (!PATTERN_TAG_URI.test(prefix)) {
26978
27156
  throwError(state, "ill-formed tag prefix (second argument) of the TAG directive");
27157
+ }
26979
27158
  try {
26980
27159
  prefix = decodeURIComponent(prefix);
26981
27160
  } catch (err) {
@@ -26987,23 +27166,29 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
26987
27166
  function captureSegment(state, start, end, checkJson) {
26988
27167
  if (start < end) {
26989
27168
  const _result = state.input.slice(start, end);
26990
- if (checkJson)
27169
+ if (checkJson) {
26991
27170
  for (let _position = 0, _length = _result.length;_position < _length; _position += 1) {
26992
27171
  const _character = _result.charCodeAt(_position);
26993
- if (!(_character === 9 || _character >= 32 && _character <= 1114111))
27172
+ if (!(_character === 9 || _character >= 32 && _character <= 1114111)) {
26994
27173
  throwError(state, "expected valid JSON character");
27174
+ }
26995
27175
  }
26996
- else if (PATTERN_NON_PRINTABLE.test(_result))
27176
+ } else if (PATTERN_NON_PRINTABLE.test(_result)) {
26997
27177
  throwError(state, "the stream contains non-printable characters");
27178
+ }
26998
27179
  state.result += _result;
26999
27180
  }
27000
27181
  }
27001
27182
  function mergeMappings(state, destination, source, overridableKeys) {
27002
- if (!common.isObject(source))
27183
+ if (!common2.isObject(source)) {
27003
27184
  throwError(state, "cannot merge mappings; the provided source object is unacceptable");
27185
+ }
27004
27186
  const sourceKeys = Object.keys(source);
27005
27187
  for (let index = 0, quantity = sourceKeys.length;index < quantity; index += 1) {
27006
27188
  const key = sourceKeys[index];
27189
+ if (state.maxTotalMergeKeys !== -1 && ++state.totalMergeKeys > state.maxTotalMergeKeys) {
27190
+ throwError(state, "merge keys exceeded maxTotalMergeKeys (" + state.maxTotalMergeKeys + ")");
27191
+ }
27007
27192
  if (!_hasOwnProperty.call(destination, key)) {
27008
27193
  setProperty(destination, key, source[key]);
27009
27194
  overridableKeys[key] = true;
@@ -27014,32 +27199,30 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
27014
27199
  if (Array.isArray(keyNode)) {
27015
27200
  keyNode = Array.prototype.slice.call(keyNode);
27016
27201
  for (let index = 0, quantity = keyNode.length;index < quantity; index += 1) {
27017
- if (Array.isArray(keyNode[index]))
27202
+ if (Array.isArray(keyNode[index])) {
27018
27203
  throwError(state, "nested arrays are not supported inside keys");
27019
- if (typeof keyNode === "object" && _class(keyNode[index]) === "[object Object]")
27204
+ }
27205
+ if (typeof keyNode === "object" && _class(keyNode[index]) === "[object Object]") {
27020
27206
  keyNode[index] = "[object Object]";
27207
+ }
27021
27208
  }
27022
27209
  }
27023
- if (typeof keyNode === "object" && _class(keyNode) === "[object Object]")
27210
+ if (typeof keyNode === "object" && _class(keyNode) === "[object Object]") {
27024
27211
  keyNode = "[object Object]";
27212
+ }
27025
27213
  keyNode = String(keyNode);
27026
- if (_result === null)
27214
+ if (_result === null) {
27027
27215
  _result = {};
27028
- if (keyTag === "tag:yaml.org,2002:merge")
27216
+ }
27217
+ if (keyTag === "tag:yaml.org,2002:merge") {
27029
27218
  if (Array.isArray(valueNode)) {
27030
- if (valueNode.length > state.maxMergeSeqLength)
27031
- throwError(state, "merge sequence length exceeded maxMergeSeqLength (" + state.maxMergeSeqLength + ")");
27032
- const seen = /* @__PURE__ */ new Set;
27033
27219
  for (let index = 0, quantity = valueNode.length;index < quantity; index += 1) {
27034
- const src2 = valueNode[index];
27035
- if (seen.has(src2))
27036
- continue;
27037
- seen.add(src2);
27038
- mergeMappings(state, _result, src2, overridableKeys);
27220
+ mergeMappings(state, _result, valueNode[index], overridableKeys);
27039
27221
  }
27040
- } else
27222
+ } else {
27041
27223
  mergeMappings(state, _result, valueNode, overridableKeys);
27042
- else {
27224
+ }
27225
+ } else {
27043
27226
  if (!state.json && !_hasOwnProperty.call(overridableKeys, keyNode) && _hasOwnProperty.call(_result, keyNode)) {
27044
27227
  state.line = startLine || state.line;
27045
27228
  state.lineStart = startLineStart || state.lineStart;
@@ -27053,14 +27236,16 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
27053
27236
  }
27054
27237
  function readLineBreak(state) {
27055
27238
  const ch = state.input.charCodeAt(state.position);
27056
- if (ch === 10)
27239
+ if (ch === 10) {
27057
27240
  state.position++;
27058
- else if (ch === 13) {
27241
+ } else if (ch === 13) {
27059
27242
  state.position++;
27060
- if (state.input.charCodeAt(state.position) === 10)
27243
+ if (state.input.charCodeAt(state.position) === 10) {
27061
27244
  state.position++;
27062
- } else
27245
+ }
27246
+ } else {
27063
27247
  throwError(state, "a line break is expected");
27248
+ }
27064
27249
  state.line += 1;
27065
27250
  state.lineStart = state.position;
27066
27251
  state.firstTabInLine = -1;
@@ -27070,14 +27255,16 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
27070
27255
  let ch = state.input.charCodeAt(state.position);
27071
27256
  while (ch !== 0) {
27072
27257
  while (isWhiteSpace(ch)) {
27073
- if (ch === 9 && state.firstTabInLine === -1)
27258
+ if (ch === 9 && state.firstTabInLine === -1) {
27074
27259
  state.firstTabInLine = state.position;
27260
+ }
27075
27261
  ch = state.input.charCodeAt(++state.position);
27076
27262
  }
27077
- if (allowComments && ch === 35)
27078
- do
27263
+ if (allowComments && ch === 35) {
27264
+ do {
27079
27265
  ch = state.input.charCodeAt(++state.position);
27080
- while (ch !== 10 && ch !== 13 && ch !== 0);
27266
+ } while (ch !== 10 && ch !== 13 && ch !== 0);
27267
+ }
27081
27268
  if (isEol(ch)) {
27082
27269
  readLineBreak(state);
27083
27270
  ch = state.input.charCodeAt(state.position);
@@ -27087,11 +27274,13 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
27087
27274
  state.lineIndent++;
27088
27275
  ch = state.input.charCodeAt(++state.position);
27089
27276
  }
27090
- } else
27277
+ } else {
27091
27278
  break;
27279
+ }
27092
27280
  }
27093
- if (checkIndent !== -1 && lineBreaks !== 0 && state.lineIndent < checkIndent)
27281
+ if (checkIndent !== -1 && lineBreaks !== 0 && state.lineIndent < checkIndent) {
27094
27282
  throwWarning(state, "deficient indentation");
27283
+ }
27095
27284
  return lineBreaks;
27096
27285
  }
27097
27286
  function testDocumentSeparator(state) {
@@ -27100,17 +27289,19 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
27100
27289
  if ((ch === 45 || ch === 46) && ch === state.input.charCodeAt(_position + 1) && ch === state.input.charCodeAt(_position + 2)) {
27101
27290
  _position += 3;
27102
27291
  ch = state.input.charCodeAt(_position);
27103
- if (ch === 0 || isWsOrEol(ch))
27292
+ if (ch === 0 || isWsOrEol(ch)) {
27104
27293
  return true;
27294
+ }
27105
27295
  }
27106
27296
  return false;
27107
27297
  }
27108
27298
  function writeFoldedLines(state, count) {
27109
- if (count === 1)
27299
+ if (count === 1) {
27110
27300
  state.result += " ";
27111
- else if (count > 1)
27112
- state.result += common.repeat(`
27301
+ } else if (count > 1) {
27302
+ state.result += common2.repeat(`
27113
27303
  `, count - 1);
27304
+ }
27114
27305
  }
27115
27306
  function readPlainScalar(state, nodeIndent, withinFlowCollection) {
27116
27307
  let captureStart;
@@ -27122,12 +27313,14 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
27122
27313
  const _kind = state.kind;
27123
27314
  const _result = state.result;
27124
27315
  let ch = state.input.charCodeAt(state.position);
27125
- 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)
27316
+ 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) {
27126
27317
  return false;
27318
+ }
27127
27319
  if (ch === 63 || ch === 45) {
27128
27320
  const following = state.input.charCodeAt(state.position + 1);
27129
- if (isWsOrEol(following) || withinFlowCollection && isFlowIndicator(following))
27321
+ if (isWsOrEol(following) || withinFlowCollection && isFlowIndicator(following)) {
27130
27322
  return false;
27323
+ }
27131
27324
  }
27132
27325
  state.kind = "scalar";
27133
27326
  state.result = "";
@@ -27136,14 +27329,17 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
27136
27329
  while (ch !== 0) {
27137
27330
  if (ch === 58) {
27138
27331
  const following = state.input.charCodeAt(state.position + 1);
27139
- if (isWsOrEol(following) || withinFlowCollection && isFlowIndicator(following))
27332
+ if (isWsOrEol(following) || withinFlowCollection && isFlowIndicator(following)) {
27140
27333
  break;
27334
+ }
27141
27335
  } else if (ch === 35) {
27142
- if (isWsOrEol(state.input.charCodeAt(state.position - 1)))
27336
+ const preceding = state.input.charCodeAt(state.position - 1);
27337
+ if (isWsOrEol(preceding)) {
27143
27338
  break;
27144
- } else if (state.position === state.lineStart && testDocumentSeparator(state) || withinFlowCollection && isFlowIndicator(ch))
27339
+ }
27340
+ } else if (state.position === state.lineStart && testDocumentSeparator(state) || withinFlowCollection && isFlowIndicator(ch)) {
27145
27341
  break;
27146
- else if (isEol(ch)) {
27342
+ } else if (isEol(ch)) {
27147
27343
  _line = state.line;
27148
27344
  _lineStart = state.lineStart;
27149
27345
  _lineIndent = state.lineIndent;
@@ -27166,13 +27362,15 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
27166
27362
  captureStart = captureEnd = state.position;
27167
27363
  hasPendingContent = false;
27168
27364
  }
27169
- if (!isWhiteSpace(ch))
27365
+ if (!isWhiteSpace(ch)) {
27170
27366
  captureEnd = state.position + 1;
27367
+ }
27171
27368
  ch = state.input.charCodeAt(++state.position);
27172
27369
  }
27173
27370
  captureSegment(state, captureStart, captureEnd, false);
27174
- if (state.result)
27371
+ if (state.result) {
27175
27372
  return true;
27373
+ }
27176
27374
  state.kind = _kind;
27177
27375
  state.result = _result;
27178
27376
  return false;
@@ -27181,13 +27379,14 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
27181
27379
  let captureStart;
27182
27380
  let captureEnd;
27183
27381
  let ch = state.input.charCodeAt(state.position);
27184
- if (ch !== 39)
27382
+ if (ch !== 39) {
27185
27383
  return false;
27384
+ }
27186
27385
  state.kind = "scalar";
27187
27386
  state.result = "";
27188
27387
  state.position++;
27189
27388
  captureStart = captureEnd = state.position;
27190
- while ((ch = state.input.charCodeAt(state.position)) !== 0)
27389
+ while ((ch = state.input.charCodeAt(state.position)) !== 0) {
27191
27390
  if (ch === 39) {
27192
27391
  captureSegment(state, captureStart, state.position, true);
27193
27392
  ch = state.input.charCodeAt(++state.position);
@@ -27195,19 +27394,22 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
27195
27394
  captureStart = state.position;
27196
27395
  state.position++;
27197
27396
  captureEnd = state.position;
27198
- } else
27397
+ } else {
27199
27398
  return true;
27399
+ }
27200
27400
  } else if (isEol(ch)) {
27201
27401
  captureSegment(state, captureStart, captureEnd, true);
27202
27402
  writeFoldedLines(state, skipSeparationSpace(state, false, nodeIndent));
27203
27403
  captureStart = captureEnd = state.position;
27204
- } else if (state.position === state.lineStart && testDocumentSeparator(state))
27404
+ } else if (state.position === state.lineStart && testDocumentSeparator(state)) {
27205
27405
  throwError(state, "unexpected end of the document within a single quoted scalar");
27206
- else {
27406
+ } else {
27207
27407
  state.position++;
27208
- if (!isWhiteSpace(ch))
27408
+ if (!isWhiteSpace(ch)) {
27209
27409
  captureEnd = state.position;
27410
+ }
27210
27411
  }
27412
+ }
27211
27413
  throwError(state, "unexpected end of the stream within a single quoted scalar");
27212
27414
  }
27213
27415
  function readDoubleQuotedScalar(state, nodeIndent) {
@@ -27215,13 +27417,14 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
27215
27417
  let captureEnd;
27216
27418
  let tmp;
27217
27419
  let ch = state.input.charCodeAt(state.position);
27218
- if (ch !== 34)
27420
+ if (ch !== 34) {
27219
27421
  return false;
27422
+ }
27220
27423
  state.kind = "scalar";
27221
27424
  state.result = "";
27222
27425
  state.position++;
27223
27426
  captureStart = captureEnd = state.position;
27224
- while ((ch = state.input.charCodeAt(state.position)) !== 0)
27427
+ while ((ch = state.input.charCodeAt(state.position)) !== 0) {
27225
27428
  if (ch === 34) {
27226
27429
  captureSegment(state, captureStart, state.position, true);
27227
27430
  state.position++;
@@ -27229,9 +27432,9 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
27229
27432
  } else if (ch === 92) {
27230
27433
  captureSegment(state, captureStart, state.position, true);
27231
27434
  ch = state.input.charCodeAt(++state.position);
27232
- if (isEol(ch))
27435
+ if (isEol(ch)) {
27233
27436
  skipSeparationSpace(state, false, nodeIndent);
27234
- else if (ch < 256 && simpleEscapeCheck[ch]) {
27437
+ } else if (ch < 256 && simpleEscapeCheck[ch]) {
27235
27438
  state.result += simpleEscapeMap[ch];
27236
27439
  state.position++;
27237
27440
  } else if ((tmp = escapedHexLen(ch)) > 0) {
@@ -27239,27 +27442,31 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
27239
27442
  let hexResult = 0;
27240
27443
  for (;hexLength > 0; hexLength--) {
27241
27444
  ch = state.input.charCodeAt(++state.position);
27242
- if ((tmp = fromHexCode(ch)) >= 0)
27445
+ if ((tmp = fromHexCode(ch)) >= 0) {
27243
27446
  hexResult = (hexResult << 4) + tmp;
27244
- else
27447
+ } else {
27245
27448
  throwError(state, "expected hexadecimal character");
27449
+ }
27246
27450
  }
27247
27451
  state.result += charFromCodepoint(hexResult);
27248
27452
  state.position++;
27249
- } else
27453
+ } else {
27250
27454
  throwError(state, "unknown escape sequence");
27455
+ }
27251
27456
  captureStart = captureEnd = state.position;
27252
27457
  } else if (isEol(ch)) {
27253
27458
  captureSegment(state, captureStart, captureEnd, true);
27254
27459
  writeFoldedLines(state, skipSeparationSpace(state, false, nodeIndent));
27255
27460
  captureStart = captureEnd = state.position;
27256
- } else if (state.position === state.lineStart && testDocumentSeparator(state))
27461
+ } else if (state.position === state.lineStart && testDocumentSeparator(state)) {
27257
27462
  throwError(state, "unexpected end of the document within a double quoted scalar");
27258
- else {
27463
+ } else {
27259
27464
  state.position++;
27260
- if (!isWhiteSpace(ch))
27465
+ if (!isWhiteSpace(ch)) {
27261
27466
  captureEnd = state.position;
27467
+ }
27262
27468
  }
27469
+ }
27263
27470
  throwError(state, "unexpected end of the stream within a double quoted scalar");
27264
27471
  }
27265
27472
  function readFlowCollection(state, nodeIndent) {
@@ -27274,7 +27481,7 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
27274
27481
  let isPair;
27275
27482
  let isExplicitPair;
27276
27483
  let isMapping;
27277
- const overridableKeys = Object.create(null);
27484
+ const overridableKeys = /* @__PURE__ */ Object.create(null);
27278
27485
  let keyNode;
27279
27486
  let keyTag;
27280
27487
  let valueNode;
@@ -27287,10 +27494,12 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
27287
27494
  terminator = 125;
27288
27495
  isMapping = true;
27289
27496
  _result = {};
27290
- } else
27497
+ } else {
27291
27498
  return false;
27292
- if (state.anchor !== null)
27499
+ }
27500
+ if (state.anchor !== null) {
27293
27501
  storeAnchor(state, state.anchor, _result);
27502
+ }
27294
27503
  ch = state.input.charCodeAt(++state.position);
27295
27504
  while (ch !== 0) {
27296
27505
  skipSeparationSpace(state, true, nodeIndent);
@@ -27302,14 +27511,16 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
27302
27511
  state.kind = isMapping ? "mapping" : "sequence";
27303
27512
  state.result = _result;
27304
27513
  return true;
27305
- } else if (!readNext)
27514
+ } else if (!readNext) {
27306
27515
  throwError(state, "missed comma between flow collection entries");
27307
- else if (ch === 44)
27516
+ } else if (ch === 44) {
27308
27517
  throwError(state, "expected the node content, but found ','");
27518
+ }
27309
27519
  keyTag = keyNode = valueNode = null;
27310
27520
  isPair = isExplicitPair = false;
27311
27521
  if (ch === 63) {
27312
- if (isWsOrEol(state.input.charCodeAt(state.position + 1))) {
27522
+ const following = state.input.charCodeAt(state.position + 1);
27523
+ if (isWsOrEol(following)) {
27313
27524
  isPair = isExplicitPair = true;
27314
27525
  state.position++;
27315
27526
  skipSeparationSpace(state, true, nodeIndent);
@@ -27330,19 +27541,21 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
27330
27541
  composeNode(state, nodeIndent, CONTEXT_FLOW_IN, false, true);
27331
27542
  valueNode = state.result;
27332
27543
  }
27333
- if (isMapping)
27544
+ if (isMapping) {
27334
27545
  storeMappingPair(state, _result, overridableKeys, keyTag, keyNode, valueNode, _line, _lineStart, _pos);
27335
- else if (isPair)
27546
+ } else if (isPair) {
27336
27547
  _result.push(storeMappingPair(state, null, overridableKeys, keyTag, keyNode, valueNode, _line, _lineStart, _pos));
27337
- else
27548
+ } else {
27338
27549
  _result.push(keyNode);
27550
+ }
27339
27551
  skipSeparationSpace(state, true, nodeIndent);
27340
27552
  ch = state.input.charCodeAt(state.position);
27341
27553
  if (ch === 44) {
27342
27554
  readNext = true;
27343
27555
  ch = state.input.charCodeAt(++state.position);
27344
- } else
27556
+ } else {
27345
27557
  readNext = false;
27558
+ }
27346
27559
  }
27347
27560
  throwError(state, "unexpected end of the stream within a flow collection");
27348
27561
  }
@@ -27356,40 +27569,45 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
27356
27569
  let atMoreIndented = false;
27357
27570
  let tmp;
27358
27571
  let ch = state.input.charCodeAt(state.position);
27359
- if (ch === 124)
27572
+ if (ch === 124) {
27360
27573
  folding = false;
27361
- else if (ch === 62)
27574
+ } else if (ch === 62) {
27362
27575
  folding = true;
27363
- else
27576
+ } else {
27364
27577
  return false;
27578
+ }
27365
27579
  state.kind = "scalar";
27366
27580
  state.result = "";
27367
27581
  while (ch !== 0) {
27368
27582
  ch = state.input.charCodeAt(++state.position);
27369
- if (ch === 43 || ch === 45)
27370
- if (CHOMPING_CLIP === chomping)
27583
+ if (ch === 43 || ch === 45) {
27584
+ if (CHOMPING_CLIP === chomping) {
27371
27585
  chomping = ch === 43 ? CHOMPING_KEEP : CHOMPING_STRIP;
27372
- else
27586
+ } else {
27373
27587
  throwError(state, "repeat of a chomping mode identifier");
27374
- else if ((tmp = fromDecimalCode(ch)) >= 0)
27375
- if (tmp === 0)
27588
+ }
27589
+ } else if ((tmp = fromDecimalCode(ch)) >= 0) {
27590
+ if (tmp === 0) {
27376
27591
  throwError(state, "bad explicit indentation width of a block scalar; it cannot be less than one");
27377
- else if (!detectedIndent) {
27592
+ } else if (!detectedIndent) {
27378
27593
  textIndent = nodeIndent + tmp - 1;
27379
27594
  detectedIndent = true;
27380
- } else
27595
+ } else {
27381
27596
  throwError(state, "repeat of an indentation width identifier");
27382
- else
27597
+ }
27598
+ } else {
27383
27599
  break;
27600
+ }
27384
27601
  }
27385
27602
  if (isWhiteSpace(ch)) {
27386
- do
27603
+ do {
27387
27604
  ch = state.input.charCodeAt(++state.position);
27388
- while (isWhiteSpace(ch));
27389
- if (ch === 35)
27390
- do
27605
+ } while (isWhiteSpace(ch));
27606
+ if (ch === 35) {
27607
+ do {
27391
27608
  ch = state.input.charCodeAt(++state.position);
27392
- while (!isEol(ch) && ch !== 0);
27609
+ } while (!isEol(ch) && ch !== 0);
27610
+ }
27393
27611
  }
27394
27612
  while (ch !== 0) {
27395
27613
  readLineBreak(state);
@@ -27399,49 +27617,56 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
27399
27617
  state.lineIndent++;
27400
27618
  ch = state.input.charCodeAt(++state.position);
27401
27619
  }
27402
- if (!detectedIndent && state.lineIndent > textIndent)
27620
+ if (!detectedIndent && state.lineIndent > textIndent) {
27403
27621
  textIndent = state.lineIndent;
27622
+ }
27404
27623
  if (isEol(ch)) {
27405
27624
  emptyLines++;
27406
27625
  continue;
27407
27626
  }
27408
- if (!detectedIndent && textIndent === 0)
27627
+ if (!detectedIndent && textIndent === 0) {
27409
27628
  throwError(state, "missing indentation for block scalar");
27629
+ }
27410
27630
  if (state.lineIndent < textIndent) {
27411
- if (chomping === CHOMPING_KEEP)
27412
- state.result += common.repeat(`
27631
+ if (chomping === CHOMPING_KEEP) {
27632
+ state.result += common2.repeat(`
27413
27633
  `, didReadContent ? 1 + emptyLines : emptyLines);
27414
- else if (chomping === CHOMPING_CLIP) {
27415
- if (didReadContent)
27634
+ } else if (chomping === CHOMPING_CLIP) {
27635
+ if (didReadContent) {
27416
27636
  state.result += `
27417
27637
  `;
27638
+ }
27418
27639
  }
27419
27640
  break;
27420
27641
  }
27421
- if (folding)
27642
+ if (folding) {
27422
27643
  if (isWhiteSpace(ch)) {
27423
27644
  atMoreIndented = true;
27424
- state.result += common.repeat(`
27645
+ state.result += common2.repeat(`
27425
27646
  `, didReadContent ? 1 + emptyLines : emptyLines);
27426
27647
  } else if (atMoreIndented) {
27427
27648
  atMoreIndented = false;
27428
- state.result += common.repeat(`
27649
+ state.result += common2.repeat(`
27429
27650
  `, emptyLines + 1);
27430
27651
  } else if (emptyLines === 0) {
27431
- if (didReadContent)
27652
+ if (didReadContent) {
27432
27653
  state.result += " ";
27433
- } else
27434
- state.result += common.repeat(`
27654
+ }
27655
+ } else {
27656
+ state.result += common2.repeat(`
27435
27657
  `, emptyLines);
27436
- else
27437
- state.result += common.repeat(`
27658
+ }
27659
+ } else {
27660
+ state.result += common2.repeat(`
27438
27661
  `, didReadContent ? 1 + emptyLines : emptyLines);
27662
+ }
27439
27663
  didReadContent = true;
27440
27664
  detectedIndent = true;
27441
27665
  emptyLines = 0;
27442
27666
  const captureStart = state.position;
27443
- while (!isEol(ch) && ch !== 0)
27667
+ while (!isEol(ch) && ch !== 0) {
27444
27668
  ch = state.input.charCodeAt(++state.position);
27669
+ }
27445
27670
  captureSegment(state, captureStart, state.position, false);
27446
27671
  }
27447
27672
  return true;
@@ -27453,18 +27678,22 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
27453
27678
  let detected = false;
27454
27679
  if (state.firstTabInLine !== -1)
27455
27680
  return false;
27456
- if (state.anchor !== null)
27681
+ if (state.anchor !== null) {
27457
27682
  storeAnchor(state, state.anchor, _result);
27683
+ }
27458
27684
  let ch = state.input.charCodeAt(state.position);
27459
27685
  while (ch !== 0) {
27460
27686
  if (state.firstTabInLine !== -1) {
27461
27687
  state.position = state.firstTabInLine;
27462
27688
  throwError(state, "tab characters must not be used in indentation");
27463
27689
  }
27464
- if (ch !== 45)
27690
+ if (ch !== 45) {
27465
27691
  break;
27466
- if (!isWsOrEol(state.input.charCodeAt(state.position + 1)))
27692
+ }
27693
+ const following = state.input.charCodeAt(state.position + 1);
27694
+ if (!isWsOrEol(following)) {
27467
27695
  break;
27696
+ }
27468
27697
  detected = true;
27469
27698
  state.position++;
27470
27699
  if (skipSeparationSpace(state, true, -1)) {
@@ -27479,10 +27708,11 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
27479
27708
  _result.push(state.result);
27480
27709
  skipSeparationSpace(state, true, -1);
27481
27710
  ch = state.input.charCodeAt(state.position);
27482
- if ((state.line === _line || state.lineIndent > nodeIndent) && ch !== 0)
27711
+ if ((state.line === _line || state.lineIndent > nodeIndent) && ch !== 0) {
27483
27712
  throwError(state, "bad indentation of a sequence entry");
27484
- else if (state.lineIndent < nodeIndent)
27713
+ } else if (state.lineIndent < nodeIndent) {
27485
27714
  break;
27715
+ }
27486
27716
  }
27487
27717
  if (detected) {
27488
27718
  state.tag = _tag;
@@ -27501,7 +27731,7 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
27501
27731
  const _tag = state.tag;
27502
27732
  const _anchor = state.anchor;
27503
27733
  const _result = {};
27504
- const overridableKeys = Object.create(null);
27734
+ const overridableKeys = /* @__PURE__ */ Object.create(null);
27505
27735
  let keyTag = null;
27506
27736
  let keyNode = null;
27507
27737
  let valueNode = null;
@@ -27509,8 +27739,9 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
27509
27739
  let detected = false;
27510
27740
  if (state.firstTabInLine !== -1)
27511
27741
  return false;
27512
- if (state.anchor !== null)
27742
+ if (state.anchor !== null) {
27513
27743
  storeAnchor(state, state.anchor, _result);
27744
+ }
27514
27745
  let ch = state.input.charCodeAt(state.position);
27515
27746
  while (ch !== 0) {
27516
27747
  if (!atExplicitKey && state.firstTabInLine !== -1) {
@@ -27531,24 +27762,28 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
27531
27762
  } else if (atExplicitKey) {
27532
27763
  atExplicitKey = false;
27533
27764
  allowCompact = true;
27534
- } else
27765
+ } else {
27535
27766
  throwError(state, "incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line");
27767
+ }
27536
27768
  state.position += 1;
27537
27769
  ch = following;
27538
27770
  } else {
27539
27771
  _keyLine = state.line;
27540
27772
  _keyLineStart = state.lineStart;
27541
27773
  _keyPos = state.position;
27542
- if (!composeNode(state, flowIndent, CONTEXT_FLOW_OUT, false, true))
27774
+ if (!composeNode(state, flowIndent, CONTEXT_FLOW_OUT, false, true)) {
27543
27775
  break;
27776
+ }
27544
27777
  if (state.line === _line) {
27545
27778
  ch = state.input.charCodeAt(state.position);
27546
- while (isWhiteSpace(ch))
27779
+ while (isWhiteSpace(ch)) {
27547
27780
  ch = state.input.charCodeAt(++state.position);
27781
+ }
27548
27782
  if (ch === 58) {
27549
27783
  ch = state.input.charCodeAt(++state.position);
27550
- if (!isWsOrEol(ch))
27784
+ if (!isWsOrEol(ch)) {
27551
27785
  throwError(state, "a whitespace character is expected after the key-value separator within a block mapping");
27786
+ }
27552
27787
  if (atExplicitKey) {
27553
27788
  storeMappingPair(state, _result, overridableKeys, keyTag, keyNode, null, _keyLine, _keyLineStart, _keyPos);
27554
27789
  keyTag = keyNode = valueNode = null;
@@ -27558,16 +27793,16 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
27558
27793
  allowCompact = false;
27559
27794
  keyTag = state.tag;
27560
27795
  keyNode = state.result;
27561
- } else if (detected)
27796
+ } else if (detected) {
27562
27797
  throwError(state, "can not read an implicit mapping pair; a colon is missed");
27563
- else {
27798
+ } else {
27564
27799
  state.tag = _tag;
27565
27800
  state.anchor = _anchor;
27566
27801
  return true;
27567
27802
  }
27568
- } else if (detected)
27803
+ } else if (detected) {
27569
27804
  throwError(state, "can not read a block mapping entry; a multiline key may not be an implicit key");
27570
- else {
27805
+ } else {
27571
27806
  state.tag = _tag;
27572
27807
  state.anchor = _anchor;
27573
27808
  return true;
@@ -27579,11 +27814,13 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
27579
27814
  _keyLineStart = state.lineStart;
27580
27815
  _keyPos = state.position;
27581
27816
  }
27582
- if (composeNode(state, nodeIndent, CONTEXT_BLOCK_OUT, true, allowCompact))
27583
- if (atExplicitKey)
27817
+ if (composeNode(state, nodeIndent, CONTEXT_BLOCK_OUT, true, allowCompact)) {
27818
+ if (atExplicitKey) {
27584
27819
  keyNode = state.result;
27585
- else
27820
+ } else {
27586
27821
  valueNode = state.result;
27822
+ }
27823
+ }
27587
27824
  if (!atExplicitKey) {
27588
27825
  storeMappingPair(state, _result, overridableKeys, keyTag, keyNode, valueNode, _keyLine, _keyLineStart, _keyPos);
27589
27826
  keyTag = keyNode = valueNode = null;
@@ -27591,13 +27828,15 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
27591
27828
  skipSeparationSpace(state, true, -1);
27592
27829
  ch = state.input.charCodeAt(state.position);
27593
27830
  }
27594
- if ((state.line === _line || state.lineIndent > nodeIndent) && ch !== 0)
27831
+ if ((state.line === _line || state.lineIndent > nodeIndent) && ch !== 0) {
27595
27832
  throwError(state, "bad indentation of a mapping entry");
27596
- else if (state.lineIndent < nodeIndent)
27833
+ } else if (state.lineIndent < nodeIndent) {
27597
27834
  break;
27835
+ }
27598
27836
  }
27599
- if (atExplicitKey)
27837
+ if (atExplicitKey) {
27600
27838
  storeMappingPair(state, _result, overridableKeys, keyTag, keyNode, null, _keyLine, _keyLineStart, _keyPos);
27839
+ }
27601
27840
  if (detected) {
27602
27841
  state.tag = _tag;
27603
27842
  state.anchor = _anchor;
@@ -27614,8 +27853,9 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
27614
27853
  let ch = state.input.charCodeAt(state.position);
27615
27854
  if (ch !== 33)
27616
27855
  return false;
27617
- if (state.tag !== null)
27856
+ if (state.tag !== null) {
27618
27857
  throwError(state, "duplication of a tag property");
27858
+ }
27619
27859
  ch = state.input.charCodeAt(++state.position);
27620
27860
  if (ch === 60) {
27621
27861
  isVerbatim = true;
@@ -27624,66 +27864,77 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
27624
27864
  isNamed = true;
27625
27865
  tagHandle = "!!";
27626
27866
  ch = state.input.charCodeAt(++state.position);
27627
- } else
27867
+ } else {
27628
27868
  tagHandle = "!";
27869
+ }
27629
27870
  let _position = state.position;
27630
27871
  if (isVerbatim) {
27631
- do
27872
+ do {
27632
27873
  ch = state.input.charCodeAt(++state.position);
27633
- while (ch !== 0 && ch !== 62);
27874
+ } while (ch !== 0 && ch !== 62);
27634
27875
  if (state.position < state.length) {
27635
27876
  tagName = state.input.slice(_position, state.position);
27636
27877
  ch = state.input.charCodeAt(++state.position);
27637
- } else
27878
+ } else {
27638
27879
  throwError(state, "unexpected end of the stream within a verbatim tag");
27880
+ }
27639
27881
  } else {
27640
27882
  while (ch !== 0 && !isWsOrEol(ch)) {
27641
- if (ch === 33)
27883
+ if (ch === 33) {
27642
27884
  if (!isNamed) {
27643
27885
  tagHandle = state.input.slice(_position - 1, state.position + 1);
27644
- if (!PATTERN_TAG_HANDLE.test(tagHandle))
27886
+ if (!PATTERN_TAG_HANDLE.test(tagHandle)) {
27645
27887
  throwError(state, "named tag handle cannot contain such characters");
27888
+ }
27646
27889
  isNamed = true;
27647
27890
  _position = state.position + 1;
27648
- } else
27891
+ } else {
27649
27892
  throwError(state, "tag suffix cannot contain exclamation marks");
27893
+ }
27894
+ }
27650
27895
  ch = state.input.charCodeAt(++state.position);
27651
27896
  }
27652
27897
  tagName = state.input.slice(_position, state.position);
27653
- if (PATTERN_FLOW_INDICATORS.test(tagName))
27898
+ if (PATTERN_FLOW_INDICATORS.test(tagName)) {
27654
27899
  throwError(state, "tag suffix cannot contain flow indicator characters");
27900
+ }
27655
27901
  }
27656
- if (tagName && !PATTERN_TAG_URI.test(tagName))
27902
+ if (tagName && !PATTERN_TAG_URI.test(tagName)) {
27657
27903
  throwError(state, "tag name cannot contain such characters: " + tagName);
27904
+ }
27658
27905
  try {
27659
27906
  tagName = decodeURIComponent(tagName);
27660
27907
  } catch (err) {
27661
27908
  throwError(state, "tag name is malformed: " + tagName);
27662
27909
  }
27663
- if (isVerbatim)
27910
+ if (isVerbatim) {
27664
27911
  state.tag = tagName;
27665
- else if (_hasOwnProperty.call(state.tagMap, tagHandle))
27912
+ } else if (_hasOwnProperty.call(state.tagMap, tagHandle)) {
27666
27913
  state.tag = state.tagMap[tagHandle] + tagName;
27667
- else if (tagHandle === "!")
27914
+ } else if (tagHandle === "!") {
27668
27915
  state.tag = "!" + tagName;
27669
- else if (tagHandle === "!!")
27916
+ } else if (tagHandle === "!!") {
27670
27917
  state.tag = "tag:yaml.org,2002:" + tagName;
27671
- else
27918
+ } else {
27672
27919
  throwError(state, 'undeclared tag handle "' + tagHandle + '"');
27920
+ }
27673
27921
  return true;
27674
27922
  }
27675
27923
  function readAnchorProperty(state) {
27676
27924
  let ch = state.input.charCodeAt(state.position);
27677
27925
  if (ch !== 38)
27678
27926
  return false;
27679
- if (state.anchor !== null)
27927
+ if (state.anchor !== null) {
27680
27928
  throwError(state, "duplication of an anchor property");
27929
+ }
27681
27930
  ch = state.input.charCodeAt(++state.position);
27682
27931
  const _position = state.position;
27683
- while (ch !== 0 && !isWsOrEol(ch) && !isFlowIndicator(ch))
27932
+ while (ch !== 0 && !isWsOrEol(ch) && !isFlowIndicator(ch)) {
27684
27933
  ch = state.input.charCodeAt(++state.position);
27685
- if (state.position === _position)
27934
+ }
27935
+ if (state.position === _position) {
27686
27936
  throwError(state, "name of an anchor node must contain at least one character");
27937
+ }
27687
27938
  state.anchor = state.input.slice(_position, state.position);
27688
27939
  return true;
27689
27940
  }
@@ -27693,13 +27944,16 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
27693
27944
  return false;
27694
27945
  ch = state.input.charCodeAt(++state.position);
27695
27946
  const _position = state.position;
27696
- while (ch !== 0 && !isWsOrEol(ch) && !isFlowIndicator(ch))
27947
+ while (ch !== 0 && !isWsOrEol(ch) && !isFlowIndicator(ch)) {
27697
27948
  ch = state.input.charCodeAt(++state.position);
27698
- if (state.position === _position)
27949
+ }
27950
+ if (state.position === _position) {
27699
27951
  throwError(state, "name of an alias node must contain at least one character");
27952
+ }
27700
27953
  const alias = state.input.slice(_position, state.position);
27701
- if (!_hasOwnProperty.call(state.anchorMap, alias))
27954
+ if (!_hasOwnProperty.call(state.anchorMap, alias)) {
27702
27955
  throwError(state, 'unidentified alias "' + alias + '"');
27956
+ }
27703
27957
  state.result = state.anchorMap[alias];
27704
27958
  skipSeparationSpace(state, true, -1);
27705
27959
  return true;
@@ -27727,14 +27981,16 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
27727
27981
  let atNewLine = false;
27728
27982
  let hasContent = false;
27729
27983
  let propertyStart = null;
27730
- let type;
27984
+ let type2;
27731
27985
  let flowIndent;
27732
27986
  let blockIndent;
27733
- if (state.depth >= state.maxDepth)
27987
+ if (state.depth >= state.maxDepth) {
27734
27988
  throwError(state, "nesting exceeded maxDepth (" + state.maxDepth + ")");
27989
+ }
27735
27990
  state.depth += 1;
27736
- if (state.listener !== null)
27991
+ if (state.listener !== null) {
27737
27992
  state.listener("open", state);
27993
+ }
27738
27994
  state.tag = null;
27739
27995
  state.anchor = null;
27740
27996
  state.kind = null;
@@ -27743,110 +27999,131 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
27743
27999
  if (allowToSeek) {
27744
28000
  if (skipSeparationSpace(state, true, -1)) {
27745
28001
  atNewLine = true;
27746
- if (state.lineIndent > parentIndent)
28002
+ if (state.lineIndent > parentIndent) {
27747
28003
  indentStatus = 1;
27748
- else if (state.lineIndent === parentIndent)
28004
+ } else if (state.lineIndent === parentIndent) {
27749
28005
  indentStatus = 0;
27750
- else if (state.lineIndent < parentIndent)
28006
+ } else if (state.lineIndent < parentIndent) {
27751
28007
  indentStatus = -1;
28008
+ }
27752
28009
  }
27753
28010
  }
27754
- if (indentStatus === 1)
28011
+ if (indentStatus === 1) {
27755
28012
  while (true) {
27756
28013
  const ch = state.input.charCodeAt(state.position);
27757
28014
  const propertyState = snapshotState(state);
27758
- if (atNewLine && (ch === 33 && state.tag !== null || ch === 38 && state.anchor !== null))
28015
+ if (atNewLine && (ch === 33 && state.tag !== null || ch === 38 && state.anchor !== null)) {
27759
28016
  break;
27760
- if (!readTagProperty(state) && !readAnchorProperty(state))
28017
+ }
28018
+ if (!readTagProperty(state) && !readAnchorProperty(state)) {
27761
28019
  break;
27762
- if (propertyStart === null)
28020
+ }
28021
+ if (propertyStart === null) {
27763
28022
  propertyStart = propertyState;
28023
+ }
27764
28024
  if (skipSeparationSpace(state, true, -1)) {
27765
28025
  atNewLine = true;
27766
28026
  allowBlockCollections = allowBlockStyles;
27767
- if (state.lineIndent > parentIndent)
28027
+ if (state.lineIndent > parentIndent) {
27768
28028
  indentStatus = 1;
27769
- else if (state.lineIndent === parentIndent)
28029
+ } else if (state.lineIndent === parentIndent) {
27770
28030
  indentStatus = 0;
27771
- else if (state.lineIndent < parentIndent)
28031
+ } else if (state.lineIndent < parentIndent) {
27772
28032
  indentStatus = -1;
27773
- } else
28033
+ }
28034
+ } else {
27774
28035
  allowBlockCollections = false;
28036
+ }
27775
28037
  }
27776
- if (allowBlockCollections)
28038
+ }
28039
+ if (allowBlockCollections) {
27777
28040
  allowBlockCollections = atNewLine || allowCompact;
28041
+ }
27778
28042
  if (indentStatus === 1 || CONTEXT_BLOCK_OUT === nodeContext) {
27779
- if (CONTEXT_FLOW_IN === nodeContext || CONTEXT_FLOW_OUT === nodeContext)
28043
+ if (CONTEXT_FLOW_IN === nodeContext || CONTEXT_FLOW_OUT === nodeContext) {
27780
28044
  flowIndent = parentIndent;
27781
- else
28045
+ } else {
27782
28046
  flowIndent = parentIndent + 1;
28047
+ }
27783
28048
  blockIndent = state.position - state.lineStart;
27784
- if (indentStatus === 1)
27785
- if (allowBlockCollections && (readBlockSequence(state, blockIndent) || readBlockMapping(state, blockIndent, flowIndent)) || readFlowCollection(state, flowIndent))
28049
+ if (indentStatus === 1) {
28050
+ if (allowBlockCollections && (readBlockSequence(state, blockIndent) || readBlockMapping(state, blockIndent, flowIndent)) || readFlowCollection(state, flowIndent)) {
27786
28051
  hasContent = true;
27787
- else {
28052
+ } else {
27788
28053
  const ch = state.input.charCodeAt(state.position);
27789
- if (propertyStart !== null && allowBlockStyles && !allowBlockCollections && ch !== 124 && ch !== 62 && tryReadBlockMappingFromProperty(state, propertyStart, propertyStart.position - propertyStart.lineStart, flowIndent))
28054
+ if (propertyStart !== null && allowBlockStyles && !allowBlockCollections && ch !== 124 && ch !== 62 && tryReadBlockMappingFromProperty(state, propertyStart, propertyStart.position - propertyStart.lineStart, flowIndent)) {
27790
28055
  hasContent = true;
27791
- else if (allowBlockScalars && readBlockScalar(state, flowIndent) || readSingleQuotedScalar(state, flowIndent) || readDoubleQuotedScalar(state, flowIndent))
28056
+ } else if (allowBlockScalars && readBlockScalar(state, flowIndent) || readSingleQuotedScalar(state, flowIndent) || readDoubleQuotedScalar(state, flowIndent)) {
27792
28057
  hasContent = true;
27793
- else if (readAlias(state)) {
28058
+ } else if (readAlias(state)) {
27794
28059
  hasContent = true;
27795
- if (state.tag !== null || state.anchor !== null)
28060
+ if (state.tag !== null || state.anchor !== null) {
27796
28061
  throwError(state, "alias node should not have any properties");
28062
+ }
27797
28063
  } else if (readPlainScalar(state, flowIndent, CONTEXT_FLOW_IN === nodeContext)) {
27798
28064
  hasContent = true;
27799
- if (state.tag === null)
28065
+ if (state.tag === null) {
27800
28066
  state.tag = "?";
28067
+ }
27801
28068
  }
27802
- if (state.anchor !== null)
28069
+ if (state.anchor !== null) {
27803
28070
  storeAnchor(state, state.anchor, state.result);
28071
+ }
27804
28072
  }
27805
- else if (indentStatus === 0)
28073
+ } else if (indentStatus === 0) {
27806
28074
  hasContent = allowBlockCollections && readBlockSequence(state, blockIndent);
28075
+ }
27807
28076
  }
27808
28077
  if (state.tag === null) {
27809
- if (state.anchor !== null)
28078
+ if (state.anchor !== null) {
27810
28079
  storeAnchor(state, state.anchor, state.result);
28080
+ }
27811
28081
  } else if (state.tag === "?") {
27812
- if (state.result !== null && state.kind !== "scalar")
28082
+ if (state.result !== null && state.kind !== "scalar") {
27813
28083
  throwError(state, 'unacceptable node kind for !<?> tag; it should be "scalar", not "' + state.kind + '"');
28084
+ }
27814
28085
  for (let typeIndex = 0, typeQuantity = state.implicitTypes.length;typeIndex < typeQuantity; typeIndex += 1) {
27815
- type = state.implicitTypes[typeIndex];
27816
- if (type.resolve(state.result)) {
27817
- state.result = type.construct(state.result);
27818
- state.tag = type.tag;
27819
- if (state.anchor !== null)
28086
+ type2 = state.implicitTypes[typeIndex];
28087
+ if (type2.resolve(state.result)) {
28088
+ state.result = type2.construct(state.result);
28089
+ state.tag = type2.tag;
28090
+ if (state.anchor !== null) {
27820
28091
  storeAnchor(state, state.anchor, state.result);
28092
+ }
27821
28093
  break;
27822
28094
  }
27823
28095
  }
27824
28096
  } else if (state.tag !== "!") {
27825
- if (_hasOwnProperty.call(state.typeMap[state.kind || "fallback"], state.tag))
27826
- type = state.typeMap[state.kind || "fallback"][state.tag];
27827
- else {
27828
- type = null;
28097
+ if (_hasOwnProperty.call(state.typeMap[state.kind || "fallback"], state.tag)) {
28098
+ type2 = state.typeMap[state.kind || "fallback"][state.tag];
28099
+ } else {
28100
+ type2 = null;
27829
28101
  const typeList = state.typeMap.multi[state.kind || "fallback"];
27830
- for (let typeIndex = 0, typeQuantity = typeList.length;typeIndex < typeQuantity; typeIndex += 1)
28102
+ for (let typeIndex = 0, typeQuantity = typeList.length;typeIndex < typeQuantity; typeIndex += 1) {
27831
28103
  if (state.tag.slice(0, typeList[typeIndex].tag.length) === typeList[typeIndex].tag) {
27832
- type = typeList[typeIndex];
28104
+ type2 = typeList[typeIndex];
27833
28105
  break;
27834
28106
  }
28107
+ }
27835
28108
  }
27836
- if (!type)
28109
+ if (!type2) {
27837
28110
  throwError(state, "unknown tag !<" + state.tag + ">");
27838
- if (state.result !== null && type.kind !== state.kind)
27839
- throwError(state, "unacceptable node kind for !<" + state.tag + '> tag; it should be "' + type.kind + '", not "' + state.kind + '"');
27840
- if (!type.resolve(state.result, state.tag))
28111
+ }
28112
+ if (state.result !== null && type2.kind !== state.kind) {
28113
+ throwError(state, "unacceptable node kind for !<" + state.tag + '> tag; it should be "' + type2.kind + '", not "' + state.kind + '"');
28114
+ }
28115
+ if (!type2.resolve(state.result, state.tag)) {
27841
28116
  throwError(state, "cannot resolve a node with !<" + state.tag + "> explicit tag");
27842
- else {
27843
- state.result = type.construct(state.result, state.tag);
27844
- if (state.anchor !== null)
28117
+ } else {
28118
+ state.result = type2.construct(state.result, state.tag);
28119
+ if (state.anchor !== null) {
27845
28120
  storeAnchor(state, state.anchor, state.result);
28121
+ }
27846
28122
  }
27847
28123
  }
27848
- if (state.listener !== null)
28124
+ if (state.listener !== null) {
27849
28125
  state.listener("close", state);
28126
+ }
27850
28127
  state.depth -= 1;
27851
28128
  return state.tag !== null || state.anchor !== null || hasContent;
27852
28129
  }
@@ -27856,55 +28133,63 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
27856
28133
  let ch;
27857
28134
  state.version = null;
27858
28135
  state.checkLineBreaks = state.legacy;
27859
- state.tagMap = Object.create(null);
27860
- state.anchorMap = Object.create(null);
28136
+ state.tagMap = /* @__PURE__ */ Object.create(null);
28137
+ state.anchorMap = /* @__PURE__ */ Object.create(null);
27861
28138
  while ((ch = state.input.charCodeAt(state.position)) !== 0) {
27862
28139
  skipSeparationSpace(state, true, -1);
27863
28140
  ch = state.input.charCodeAt(state.position);
27864
- if (state.lineIndent > 0 || ch !== 37)
28141
+ if (state.lineIndent > 0 || ch !== 37) {
27865
28142
  break;
28143
+ }
27866
28144
  hasDirectives = true;
27867
28145
  ch = state.input.charCodeAt(++state.position);
27868
28146
  let _position = state.position;
27869
- while (ch !== 0 && !isWsOrEol(ch))
28147
+ while (ch !== 0 && !isWsOrEol(ch)) {
27870
28148
  ch = state.input.charCodeAt(++state.position);
28149
+ }
27871
28150
  const directiveName = state.input.slice(_position, state.position);
27872
28151
  const directiveArgs = [];
27873
- if (directiveName.length < 1)
28152
+ if (directiveName.length < 1) {
27874
28153
  throwError(state, "directive name must not be less than one character in length");
28154
+ }
27875
28155
  while (ch !== 0) {
27876
- while (isWhiteSpace(ch))
28156
+ while (isWhiteSpace(ch)) {
27877
28157
  ch = state.input.charCodeAt(++state.position);
28158
+ }
27878
28159
  if (ch === 35) {
27879
- do
28160
+ do {
27880
28161
  ch = state.input.charCodeAt(++state.position);
27881
- while (ch !== 0 && !isEol(ch));
28162
+ } while (ch !== 0 && !isEol(ch));
27882
28163
  break;
27883
28164
  }
27884
28165
  if (isEol(ch))
27885
28166
  break;
27886
28167
  _position = state.position;
27887
- while (ch !== 0 && !isWsOrEol(ch))
28168
+ while (ch !== 0 && !isWsOrEol(ch)) {
27888
28169
  ch = state.input.charCodeAt(++state.position);
28170
+ }
27889
28171
  directiveArgs.push(state.input.slice(_position, state.position));
27890
28172
  }
27891
28173
  if (ch !== 0)
27892
28174
  readLineBreak(state);
27893
- if (_hasOwnProperty.call(directiveHandlers, directiveName))
28175
+ if (_hasOwnProperty.call(directiveHandlers, directiveName)) {
27894
28176
  directiveHandlers[directiveName](state, directiveName, directiveArgs);
27895
- else
28177
+ } else {
27896
28178
  throwWarning(state, 'unknown document directive "' + directiveName + '"');
28179
+ }
27897
28180
  }
27898
28181
  skipSeparationSpace(state, true, -1);
27899
28182
  if (state.lineIndent === 0 && state.input.charCodeAt(state.position) === 45 && state.input.charCodeAt(state.position + 1) === 45 && state.input.charCodeAt(state.position + 2) === 45) {
27900
28183
  state.position += 3;
27901
28184
  skipSeparationSpace(state, true, -1);
27902
- } else if (hasDirectives)
28185
+ } else if (hasDirectives) {
27903
28186
  throwError(state, "directives end mark is expected");
28187
+ }
27904
28188
  composeNode(state, state.lineIndent - 1, CONTEXT_BLOCK_OUT, false, true);
27905
28189
  skipSeparationSpace(state, true, -1);
27906
- if (state.checkLineBreaks && PATTERN_NON_ASCII_LINE_BREAKS.test(state.input.slice(documentStart, state.position)))
28190
+ if (state.checkLineBreaks && PATTERN_NON_ASCII_LINE_BREAKS.test(state.input.slice(documentStart, state.position))) {
27907
28191
  throwWarning(state, "non-ASCII line breaks are interpreted as content");
28192
+ }
27908
28193
  state.documents.push(state.result);
27909
28194
  if (state.position === state.lineStart && testDocumentSeparator(state)) {
27910
28195
  if (state.input.charCodeAt(state.position) === 46) {
@@ -27913,18 +28198,21 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
27913
28198
  }
27914
28199
  return;
27915
28200
  }
27916
- if (state.position < state.length - 1)
28201
+ if (state.position < state.length - 1) {
27917
28202
  throwError(state, "end of the stream or a document separator is expected");
28203
+ }
27918
28204
  }
27919
28205
  function loadDocuments(input, options) {
27920
28206
  input = String(input);
27921
28207
  options = options || {};
27922
28208
  if (input.length !== 0) {
27923
- if (input.charCodeAt(input.length - 1) !== 10 && input.charCodeAt(input.length - 1) !== 13)
28209
+ if (input.charCodeAt(input.length - 1) !== 10 && input.charCodeAt(input.length - 1) !== 13) {
27924
28210
  input += `
27925
28211
  `;
27926
- if (input.charCodeAt(0) === 65279)
28212
+ }
28213
+ if (input.charCodeAt(0) === 65279) {
27927
28214
  input = input.slice(1);
28215
+ }
27928
28216
  }
27929
28217
  const state = new State(input, options);
27930
28218
  const nullpos = input.indexOf("\x00");
@@ -27937,64 +28225,74 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
27937
28225
  state.lineIndent += 1;
27938
28226
  state.position += 1;
27939
28227
  }
27940
- while (state.position < state.length - 1)
28228
+ while (state.position < state.length - 1) {
27941
28229
  readDocument(state);
28230
+ }
27942
28231
  return state.documents;
27943
28232
  }
27944
- function loadAll(input, iterator, options) {
28233
+ function loadAll2(input, iterator, options) {
27945
28234
  if (iterator !== null && typeof iterator === "object" && typeof options === "undefined") {
27946
28235
  options = iterator;
27947
28236
  iterator = null;
27948
28237
  }
27949
28238
  const documents = loadDocuments(input, options);
27950
- if (typeof iterator !== "function")
28239
+ if (typeof iterator !== "function") {
27951
28240
  return documents;
27952
- for (let index = 0, length = documents.length;index < length; index += 1)
28241
+ }
28242
+ for (let index = 0, length = documents.length;index < length; index += 1) {
27953
28243
  iterator(documents[index]);
28244
+ }
27954
28245
  }
27955
- function load(input, options) {
28246
+ function load2(input, options) {
27956
28247
  const documents = loadDocuments(input, options);
27957
- if (documents.length === 0)
28248
+ if (documents.length === 0) {
27958
28249
  return;
27959
- else if (documents.length === 1)
28250
+ } else if (documents.length === 1) {
27960
28251
  return documents[0];
27961
- throw new YAMLException("expected a single document in the stream, but found more");
27962
- }
27963
- module.exports.loadAll = loadAll;
27964
- module.exports.load = load;
27965
- });
27966
- var require_dumper = /* @__PURE__ */ __commonJSMin((exports, module) => {
27967
- var common = require_common();
27968
- var YAMLException = require_exception();
27969
- var DEFAULT_SCHEMA = require_default();
27970
- var _toString = Object.prototype.toString;
27971
- var _hasOwnProperty = Object.prototype.hasOwnProperty;
27972
- var CHAR_BOM = 65279;
27973
- var CHAR_TAB = 9;
27974
- var CHAR_LINE_FEED = 10;
27975
- var CHAR_CARRIAGE_RETURN = 13;
27976
- var CHAR_SPACE = 32;
27977
- var CHAR_EXCLAMATION = 33;
27978
- var CHAR_DOUBLE_QUOTE = 34;
27979
- var CHAR_SHARP = 35;
27980
- var CHAR_PERCENT = 37;
27981
- var CHAR_AMPERSAND = 38;
27982
- var CHAR_SINGLE_QUOTE = 39;
27983
- var CHAR_ASTERISK = 42;
27984
- var CHAR_COMMA = 44;
27985
- var CHAR_MINUS = 45;
27986
- var CHAR_COLON = 58;
27987
- var CHAR_EQUALS = 61;
27988
- var CHAR_GREATER_THAN = 62;
27989
- var CHAR_QUESTION = 63;
27990
- var CHAR_COMMERCIAL_AT = 64;
27991
- var CHAR_LEFT_SQUARE_BRACKET = 91;
27992
- var CHAR_RIGHT_SQUARE_BRACKET = 93;
27993
- var CHAR_GRAVE_ACCENT = 96;
27994
- var CHAR_LEFT_CURLY_BRACKET = 123;
27995
- var CHAR_VERTICAL_LINE = 124;
27996
- var CHAR_RIGHT_CURLY_BRACKET = 125;
27997
- var ESCAPE_SEQUENCES = {};
28252
+ }
28253
+ throw new YAMLException2("expected a single document in the stream, but found more");
28254
+ }
28255
+ loader.loadAll = loadAll2;
28256
+ loader.load = load2;
28257
+ return loader;
28258
+ }
28259
+ var dumper = {};
28260
+ var hasRequiredDumper;
28261
+ function requireDumper() {
28262
+ if (hasRequiredDumper)
28263
+ return dumper;
28264
+ hasRequiredDumper = 1;
28265
+ const common2 = requireCommon();
28266
+ const YAMLException2 = requireException();
28267
+ const DEFAULT_SCHEMA2 = require_default();
28268
+ const _toString = Object.prototype.toString;
28269
+ const _hasOwnProperty = Object.prototype.hasOwnProperty;
28270
+ const CHAR_BOM = 65279;
28271
+ const CHAR_TAB = 9;
28272
+ const CHAR_LINE_FEED = 10;
28273
+ const CHAR_CARRIAGE_RETURN = 13;
28274
+ const CHAR_SPACE = 32;
28275
+ const CHAR_EXCLAMATION = 33;
28276
+ const CHAR_DOUBLE_QUOTE = 34;
28277
+ const CHAR_SHARP = 35;
28278
+ const CHAR_PERCENT = 37;
28279
+ const CHAR_AMPERSAND = 38;
28280
+ const CHAR_SINGLE_QUOTE = 39;
28281
+ const CHAR_ASTERISK = 42;
28282
+ const CHAR_COMMA = 44;
28283
+ const CHAR_MINUS = 45;
28284
+ const CHAR_COLON = 58;
28285
+ const CHAR_EQUALS = 61;
28286
+ const CHAR_GREATER_THAN = 62;
28287
+ const CHAR_QUESTION = 63;
28288
+ const CHAR_COMMERCIAL_AT = 64;
28289
+ const CHAR_LEFT_SQUARE_BRACKET = 91;
28290
+ const CHAR_RIGHT_SQUARE_BRACKET = 93;
28291
+ const CHAR_GRAVE_ACCENT = 96;
28292
+ const CHAR_LEFT_CURLY_BRACKET = 123;
28293
+ const CHAR_VERTICAL_LINE = 124;
28294
+ const CHAR_RIGHT_CURLY_BRACKET = 125;
28295
+ const ESCAPE_SEQUENCES = {};
27998
28296
  ESCAPE_SEQUENCES[0] = "\\0";
27999
28297
  ESCAPE_SEQUENCES[7] = "\\a";
28000
28298
  ESCAPE_SEQUENCES[8] = "\\b";
@@ -28010,7 +28308,7 @@ var require_dumper = /* @__PURE__ */ __commonJSMin((exports, module) => {
28010
28308
  ESCAPE_SEQUENCES[160] = "\\_";
28011
28309
  ESCAPE_SEQUENCES[8232] = "\\L";
28012
28310
  ESCAPE_SEQUENCES[8233] = "\\P";
28013
- var DEPRECATED_BOOLEANS_SYNTAX = [
28311
+ const DEPRECATED_BOOLEANS_SYNTAX = [
28014
28312
  "y",
28015
28313
  "Y",
28016
28314
  "yes",
@@ -28028,20 +28326,22 @@ var require_dumper = /* @__PURE__ */ __commonJSMin((exports, module) => {
28028
28326
  "Off",
28029
28327
  "OFF"
28030
28328
  ];
28031
- var DEPRECATED_BASE60_SYNTAX = /^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;
28032
- function compileStyleMap(schema, map) {
28033
- if (map === null)
28329
+ const DEPRECATED_BASE60_SYNTAX = /^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;
28330
+ function compileStyleMap(schema2, map2) {
28331
+ if (map2 === null)
28034
28332
  return {};
28035
28333
  const result = {};
28036
- const keys = Object.keys(map);
28334
+ const keys = Object.keys(map2);
28037
28335
  for (let index = 0, length = keys.length;index < length; index += 1) {
28038
28336
  let tag = keys[index];
28039
- let style = String(map[tag]);
28040
- if (tag.slice(0, 2) === "!!")
28337
+ let style = String(map2[tag]);
28338
+ if (tag.slice(0, 2) === "!!") {
28041
28339
  tag = "tag:yaml.org,2002:" + tag.slice(2);
28042
- const type = schema.compiledTypeMap["fallback"][tag];
28043
- if (type && _hasOwnProperty.call(type.styleAliases, style))
28044
- style = type.styleAliases[style];
28340
+ }
28341
+ const type2 = schema2.compiledTypeMap["fallback"][tag];
28342
+ if (type2 && _hasOwnProperty.call(type2.styleAliases, style)) {
28343
+ style = type2.styleAliases[style];
28344
+ }
28045
28345
  result[tag] = style;
28046
28346
  }
28047
28347
  return result;
@@ -28059,18 +28359,19 @@ var require_dumper = /* @__PURE__ */ __commonJSMin((exports, module) => {
28059
28359
  } else if (character <= 4294967295) {
28060
28360
  handle = "U";
28061
28361
  length = 8;
28062
- } else
28063
- throw new YAMLException("code point within a string may not be greater than 0xFFFFFFFF");
28064
- return "\\" + handle + common.repeat("0", length - string.length) + string;
28362
+ } else {
28363
+ throw new YAMLException2("code point within a string may not be greater than 0xFFFFFFFF");
28364
+ }
28365
+ return "\\" + handle + common2.repeat("0", length - string.length) + string;
28065
28366
  }
28066
- var QUOTING_TYPE_SINGLE = 1;
28067
- var QUOTING_TYPE_DOUBLE = 2;
28367
+ const QUOTING_TYPE_SINGLE = 1;
28368
+ const QUOTING_TYPE_DOUBLE = 2;
28068
28369
  function State(options) {
28069
- this.schema = options["schema"] || DEFAULT_SCHEMA;
28370
+ this.schema = options["schema"] || DEFAULT_SCHEMA2;
28070
28371
  this.indent = Math.max(1, options["indent"] || 2);
28071
28372
  this.noArrayIndent = options["noArrayIndent"] || false;
28072
28373
  this.skipInvalid = options["skipInvalid"] || false;
28073
- this.flowLevel = common.isNothing(options["flowLevel"]) ? -1 : options["flowLevel"];
28374
+ this.flowLevel = common2.isNothing(options["flowLevel"]) ? -1 : options["flowLevel"];
28074
28375
  this.styleMap = compileStyleMap(this.schema, options["styles"] || null);
28075
28376
  this.sortKeys = options["sortKeys"] || false;
28076
28377
  this.lineWidth = options["lineWidth"] || 80;
@@ -28088,7 +28389,7 @@ var require_dumper = /* @__PURE__ */ __commonJSMin((exports, module) => {
28088
28389
  this.usedDuplicates = null;
28089
28390
  }
28090
28391
  function indentString(string, spaces) {
28091
- const ind = common.repeat(" ", spaces);
28392
+ const ind = common2.repeat(" ", spaces);
28092
28393
  let position = 0;
28093
28394
  let result = "";
28094
28395
  const length = string.length;
@@ -28112,12 +28413,15 @@ var require_dumper = /* @__PURE__ */ __commonJSMin((exports, module) => {
28112
28413
  }
28113
28414
  function generateNextLine(state, level) {
28114
28415
  return `
28115
- ` + common.repeat(" ", state.indent * level);
28416
+ ` + common2.repeat(" ", state.indent * level);
28116
28417
  }
28117
- function testImplicitResolving(state, str) {
28118
- for (let index = 0, length = state.implicitTypes.length;index < length; index += 1)
28119
- if (state.implicitTypes[index].resolve(str))
28418
+ function testImplicitResolving(state, str2) {
28419
+ for (let index = 0, length = state.implicitTypes.length;index < length; index += 1) {
28420
+ const type2 = state.implicitTypes[index];
28421
+ if (type2.resolve(str2)) {
28120
28422
  return true;
28423
+ }
28424
+ }
28121
28425
  return false;
28122
28426
  }
28123
28427
  function isWhitespace(c) {
@@ -28145,19 +28449,21 @@ var require_dumper = /* @__PURE__ */ __commonJSMin((exports, module) => {
28145
28449
  let second;
28146
28450
  if (first >= 55296 && first <= 56319 && pos + 1 < string.length) {
28147
28451
  second = string.charCodeAt(pos + 1);
28148
- if (second >= 56320 && second <= 57343)
28452
+ if (second >= 56320 && second <= 57343) {
28149
28453
  return (first - 55296) * 1024 + second - 56320 + 65536;
28454
+ }
28150
28455
  }
28151
28456
  return first;
28152
28457
  }
28153
28458
  function needIndentIndicator(string) {
28154
- return /^\n* /.test(string);
28155
- }
28156
- var STYLE_PLAIN = 1;
28157
- var STYLE_SINGLE = 2;
28158
- var STYLE_LITERAL = 3;
28159
- var STYLE_FOLDED = 4;
28160
- var STYLE_DOUBLE = 5;
28459
+ const leadingSpaceRe = /^\n* /;
28460
+ return leadingSpaceRe.test(string);
28461
+ }
28462
+ const STYLE_PLAIN = 1;
28463
+ const STYLE_SINGLE = 2;
28464
+ const STYLE_LITERAL = 3;
28465
+ const STYLE_FOLDED = 4;
28466
+ const STYLE_DOUBLE = 5;
28161
28467
  function chooseScalarStyle(string, singleLineOnly, indentPerLevel, lineWidth, testAmbiguousType, quotingType, forceQuotes, inblock) {
28162
28468
  let i;
28163
28469
  let char = 0;
@@ -28167,15 +28473,16 @@ var require_dumper = /* @__PURE__ */ __commonJSMin((exports, module) => {
28167
28473
  const shouldTrackWidth = lineWidth !== -1;
28168
28474
  let previousLineBreak = -1;
28169
28475
  let plain = isPlainSafeFirst(codePointAt(string, 0)) && isPlainSafeLast(codePointAt(string, string.length - 1));
28170
- if (singleLineOnly || forceQuotes)
28476
+ if (singleLineOnly || forceQuotes) {
28171
28477
  for (i = 0;i < string.length; char >= 65536 ? i += 2 : i++) {
28172
28478
  char = codePointAt(string, i);
28173
- if (!isPrintable(char))
28479
+ if (!isPrintable(char)) {
28174
28480
  return STYLE_DOUBLE;
28481
+ }
28175
28482
  plain = plain && isPlainSafe(char, prevChar, inblock);
28176
28483
  prevChar = char;
28177
28484
  }
28178
- else {
28485
+ } else {
28179
28486
  for (i = 0;i < string.length; char >= 65536 ? i += 2 : i++) {
28180
28487
  char = codePointAt(string, i);
28181
28488
  if (char === CHAR_LINE_FEED) {
@@ -28184,31 +28491,37 @@ var require_dumper = /* @__PURE__ */ __commonJSMin((exports, module) => {
28184
28491
  hasFoldableLine = hasFoldableLine || i - previousLineBreak - 1 > lineWidth && string[previousLineBreak + 1] !== " ";
28185
28492
  previousLineBreak = i;
28186
28493
  }
28187
- } else if (!isPrintable(char))
28494
+ } else if (!isPrintable(char)) {
28188
28495
  return STYLE_DOUBLE;
28496
+ }
28189
28497
  plain = plain && isPlainSafe(char, prevChar, inblock);
28190
28498
  prevChar = char;
28191
28499
  }
28192
- hasFoldableLine = hasFoldableLine || shouldTrackWidth && i - previousLineBreak - 1 > lineWidth && string[previousLineBreak + 1] !== " ";
28500
+ hasFoldableLine = hasFoldableLine || shouldTrackWidth && (i - previousLineBreak - 1 > lineWidth && string[previousLineBreak + 1] !== " ");
28193
28501
  }
28194
28502
  if (!hasLineBreak && !hasFoldableLine) {
28195
- if (plain && !forceQuotes && !testAmbiguousType(string))
28503
+ if (plain && !forceQuotes && !testAmbiguousType(string)) {
28196
28504
  return STYLE_PLAIN;
28505
+ }
28197
28506
  return quotingType === QUOTING_TYPE_DOUBLE ? STYLE_DOUBLE : STYLE_SINGLE;
28198
28507
  }
28199
- if (indentPerLevel > 9 && needIndentIndicator(string))
28508
+ if (indentPerLevel > 9 && needIndentIndicator(string)) {
28200
28509
  return STYLE_DOUBLE;
28201
- if (!forceQuotes)
28510
+ }
28511
+ if (!forceQuotes) {
28202
28512
  return hasFoldableLine ? STYLE_FOLDED : STYLE_LITERAL;
28513
+ }
28203
28514
  return quotingType === QUOTING_TYPE_DOUBLE ? STYLE_DOUBLE : STYLE_SINGLE;
28204
28515
  }
28205
28516
  function writeScalar(state, string, level, iskey, inblock) {
28206
28517
  state.dump = function() {
28207
- if (string.length === 0)
28518
+ if (string.length === 0) {
28208
28519
  return state.quotingType === QUOTING_TYPE_DOUBLE ? '""' : "''";
28520
+ }
28209
28521
  if (!state.noCompatMode) {
28210
- if (DEPRECATED_BOOLEANS_SYNTAX.indexOf(string) !== -1 || DEPRECATED_BASE60_SYNTAX.test(string))
28522
+ if (DEPRECATED_BOOLEANS_SYNTAX.indexOf(string) !== -1 || DEPRECATED_BASE60_SYNTAX.test(string)) {
28211
28523
  return state.quotingType === QUOTING_TYPE_DOUBLE ? '"' + string + '"' : "'" + string + "'";
28524
+ }
28212
28525
  }
28213
28526
  const indent = state.indent * Math.max(1, level);
28214
28527
  const lineWidth = state.lineWidth === -1 ? -1 : Math.max(Math.min(state.lineWidth, 40), state.lineWidth - indent);
@@ -28226,9 +28539,9 @@ var require_dumper = /* @__PURE__ */ __commonJSMin((exports, module) => {
28226
28539
  case STYLE_FOLDED:
28227
28540
  return ">" + blockHeader(string, state.indent) + dropEndingNewline(indentString(foldString(string, lineWidth), indent));
28228
28541
  case STYLE_DOUBLE:
28229
- return '"' + escapeString(string, lineWidth) + '"';
28542
+ return '"' + escapeString(string) + '"';
28230
28543
  default:
28231
- throw new YAMLException("impossible error: invalid scalar style");
28544
+ throw new YAMLException2("impossible error: invalid scalar style");
28232
28545
  }
28233
28546
  }();
28234
28547
  }
@@ -28236,9 +28549,11 @@ var require_dumper = /* @__PURE__ */ __commonJSMin((exports, module) => {
28236
28549
  const indentIndicator = needIndentIndicator(string) ? String(indentPerLevel) : "";
28237
28550
  const clip = string[string.length - 1] === `
28238
28551
  `;
28239
- return indentIndicator + (clip && (string[string.length - 2] === `
28552
+ const keep = clip && (string[string.length - 2] === `
28240
28553
  ` || string === `
28241
- `) ? "+" : clip ? "" : "-") + `
28554
+ `);
28555
+ const chomp = keep ? "+" : clip ? "" : "-";
28556
+ return indentIndicator + chomp + `
28242
28557
  `;
28243
28558
  }
28244
28559
  function dropEndingNewline(string) {
@@ -28290,11 +28605,12 @@ var require_dumper = /* @__PURE__ */ __commonJSMin((exports, module) => {
28290
28605
  }
28291
28606
  result += `
28292
28607
  `;
28293
- if (line.length - start > width && curr > start)
28608
+ if (line.length - start > width && curr > start) {
28294
28609
  result += line.slice(start, curr) + `
28295
28610
  ` + line.slice(curr + 1);
28296
- else
28611
+ } else {
28297
28612
  result += line.slice(start);
28613
+ }
28298
28614
  return result.slice(1);
28299
28615
  }
28300
28616
  function escapeString(string) {
@@ -28307,8 +28623,9 @@ var require_dumper = /* @__PURE__ */ __commonJSMin((exports, module) => {
28307
28623
  result += string[i];
28308
28624
  if (char >= 65536)
28309
28625
  result += string[i + 1];
28310
- } else
28626
+ } else {
28311
28627
  result += escapeSeq || encodeHex(char);
28628
+ }
28312
28629
  }
28313
28630
  return result;
28314
28631
  }
@@ -28317,8 +28634,9 @@ var require_dumper = /* @__PURE__ */ __commonJSMin((exports, module) => {
28317
28634
  const _tag = state.tag;
28318
28635
  for (let index = 0, length = object.length;index < length; index += 1) {
28319
28636
  let value = object[index];
28320
- if (state.replacer)
28637
+ if (state.replacer) {
28321
28638
  value = state.replacer.call(object, String(index), value);
28639
+ }
28322
28640
  if (writeNode(state, level, value, false, false) || typeof value === "undefined" && writeNode(state, level, null, false, false)) {
28323
28641
  if (_result !== "")
28324
28642
  _result += "," + (!state.condenseFlow ? " " : "");
@@ -28333,15 +28651,18 @@ var require_dumper = /* @__PURE__ */ __commonJSMin((exports, module) => {
28333
28651
  const _tag = state.tag;
28334
28652
  for (let index = 0, length = object.length;index < length; index += 1) {
28335
28653
  let value = object[index];
28336
- if (state.replacer)
28654
+ if (state.replacer) {
28337
28655
  value = state.replacer.call(object, String(index), value);
28656
+ }
28338
28657
  if (writeNode(state, level + 1, value, true, true, false, true) || typeof value === "undefined" && writeNode(state, level + 1, null, true, true, false, true)) {
28339
- if (!compact || _result !== "")
28658
+ if (!compact || _result !== "") {
28340
28659
  _result += generateNextLine(state, level);
28341
- if (state.dump && CHAR_LINE_FEED === state.dump.charCodeAt(0))
28660
+ }
28661
+ if (state.dump && CHAR_LINE_FEED === state.dump.charCodeAt(0)) {
28342
28662
  _result += "-";
28343
- else
28663
+ } else {
28344
28664
  _result += "- ";
28665
+ }
28345
28666
  _result += state.dump;
28346
28667
  }
28347
28668
  }
@@ -28360,15 +28681,18 @@ var require_dumper = /* @__PURE__ */ __commonJSMin((exports, module) => {
28360
28681
  pairBuffer += '"';
28361
28682
  const objectKey = objectKeyList[index];
28362
28683
  let objectValue = object[objectKey];
28363
- if (state.replacer)
28684
+ if (state.replacer) {
28364
28685
  objectValue = state.replacer.call(object, objectKey, objectValue);
28365
- if (!writeNode(state, level, objectKey, false, false))
28686
+ }
28687
+ if (!writeNode(state, level, objectKey, false, false)) {
28366
28688
  continue;
28689
+ }
28367
28690
  if (state.dump.length > 1024)
28368
28691
  pairBuffer += "? ";
28369
28692
  pairBuffer += state.dump + (state.condenseFlow ? '"' : "") + ":" + (state.condenseFlow ? "" : " ");
28370
- if (!writeNode(state, level, objectValue, false, false))
28693
+ if (!writeNode(state, level, objectValue, false, false)) {
28371
28694
  continue;
28695
+ }
28372
28696
  pairBuffer += state.dump;
28373
28697
  _result += pairBuffer;
28374
28698
  }
@@ -28379,37 +28703,46 @@ var require_dumper = /* @__PURE__ */ __commonJSMin((exports, module) => {
28379
28703
  let _result = "";
28380
28704
  const _tag = state.tag;
28381
28705
  const objectKeyList = Object.keys(object);
28382
- if (state.sortKeys === true)
28706
+ if (state.sortKeys === true) {
28383
28707
  objectKeyList.sort();
28384
- else if (typeof state.sortKeys === "function")
28708
+ } else if (typeof state.sortKeys === "function") {
28385
28709
  objectKeyList.sort(state.sortKeys);
28386
- else if (state.sortKeys)
28387
- throw new YAMLException("sortKeys must be a boolean or a function");
28710
+ } else if (state.sortKeys) {
28711
+ throw new YAMLException2("sortKeys must be a boolean or a function");
28712
+ }
28388
28713
  for (let index = 0, length = objectKeyList.length;index < length; index += 1) {
28389
28714
  let pairBuffer = "";
28390
- if (!compact || _result !== "")
28715
+ if (!compact || _result !== "") {
28391
28716
  pairBuffer += generateNextLine(state, level);
28717
+ }
28392
28718
  const objectKey = objectKeyList[index];
28393
28719
  let objectValue = object[objectKey];
28394
- if (state.replacer)
28720
+ if (state.replacer) {
28395
28721
  objectValue = state.replacer.call(object, objectKey, objectValue);
28396
- if (!writeNode(state, level + 1, objectKey, true, true, true))
28722
+ }
28723
+ if (!writeNode(state, level + 1, objectKey, true, true, true)) {
28397
28724
  continue;
28725
+ }
28398
28726
  const explicitPair = state.tag !== null && state.tag !== "?" || state.dump && state.dump.length > 1024;
28399
- if (explicitPair)
28400
- if (state.dump && CHAR_LINE_FEED === state.dump.charCodeAt(0))
28727
+ if (explicitPair) {
28728
+ if (state.dump && CHAR_LINE_FEED === state.dump.charCodeAt(0)) {
28401
28729
  pairBuffer += "?";
28402
- else
28730
+ } else {
28403
28731
  pairBuffer += "? ";
28732
+ }
28733
+ }
28404
28734
  pairBuffer += state.dump;
28405
- if (explicitPair)
28735
+ if (explicitPair) {
28406
28736
  pairBuffer += generateNextLine(state, level);
28407
- if (!writeNode(state, level + 1, objectValue, true, explicitPair))
28737
+ }
28738
+ if (!writeNode(state, level + 1, objectValue, true, explicitPair)) {
28408
28739
  continue;
28409
- if (state.dump && CHAR_LINE_FEED === state.dump.charCodeAt(0))
28740
+ }
28741
+ if (state.dump && CHAR_LINE_FEED === state.dump.charCodeAt(0)) {
28410
28742
  pairBuffer += ":";
28411
- else
28743
+ } else {
28412
28744
  pairBuffer += ": ";
28745
+ }
28413
28746
  pairBuffer += state.dump;
28414
28747
  _result += pairBuffer;
28415
28748
  }
@@ -28419,24 +28752,27 @@ var require_dumper = /* @__PURE__ */ __commonJSMin((exports, module) => {
28419
28752
  function detectType(state, object, explicit) {
28420
28753
  const typeList = explicit ? state.explicitTypes : state.implicitTypes;
28421
28754
  for (let index = 0, length = typeList.length;index < length; index += 1) {
28422
- const type = typeList[index];
28423
- if ((type.instanceOf || type.predicate) && (!type.instanceOf || typeof object === "object" && object instanceof type.instanceOf) && (!type.predicate || type.predicate(object))) {
28424
- if (explicit)
28425
- if (type.multi && type.representName)
28426
- state.tag = type.representName(object);
28427
- else
28428
- state.tag = type.tag;
28429
- else
28755
+ const type2 = typeList[index];
28756
+ if ((type2.instanceOf || type2.predicate) && (!type2.instanceOf || typeof object === "object" && object instanceof type2.instanceOf) && (!type2.predicate || type2.predicate(object))) {
28757
+ if (explicit) {
28758
+ if (type2.multi && type2.representName) {
28759
+ state.tag = type2.representName(object);
28760
+ } else {
28761
+ state.tag = type2.tag;
28762
+ }
28763
+ } else {
28430
28764
  state.tag = "?";
28431
- if (type.represent) {
28432
- const style = state.styleMap[type.tag] || type.defaultStyle;
28765
+ }
28766
+ if (type2.represent) {
28767
+ const style = state.styleMap[type2.tag] || type2.defaultStyle;
28433
28768
  let _result;
28434
- if (_toString.call(type.represent) === "[object Function]")
28435
- _result = type.represent(object, style);
28436
- else if (_hasOwnProperty.call(type.represent, style))
28437
- _result = type.represent[style](object, style);
28438
- else
28439
- throw new YAMLException("!<" + type.tag + '> tag resolver accepts not "' + style + '" style');
28769
+ if (_toString.call(type2.represent) === "[object Function]") {
28770
+ _result = type2.represent(object, style);
28771
+ } else if (_hasOwnProperty.call(type2.represent, style)) {
28772
+ _result = type2.represent[style](object, style);
28773
+ } else {
28774
+ throw new YAMLException2("!<" + type2.tag + '> tag resolver accepts not "' + style + '" style');
28775
+ }
28440
28776
  state.dump = _result;
28441
28777
  }
28442
28778
  return true;
@@ -28447,67 +28783,78 @@ var require_dumper = /* @__PURE__ */ __commonJSMin((exports, module) => {
28447
28783
  function writeNode(state, level, object, block, compact, iskey, isblockseq) {
28448
28784
  state.tag = null;
28449
28785
  state.dump = object;
28450
- if (!detectType(state, object, false))
28786
+ if (!detectType(state, object, false)) {
28451
28787
  detectType(state, object, true);
28452
- const type = _toString.call(state.dump);
28788
+ }
28789
+ const type2 = _toString.call(state.dump);
28453
28790
  const inblock = block;
28454
- if (block)
28791
+ if (block) {
28455
28792
  block = state.flowLevel < 0 || state.flowLevel > level;
28456
- const objectOrArray = type === "[object Object]" || type === "[object Array]";
28793
+ }
28794
+ const objectOrArray = type2 === "[object Object]" || type2 === "[object Array]";
28457
28795
  let duplicateIndex;
28458
28796
  let duplicate;
28459
28797
  if (objectOrArray) {
28460
28798
  duplicateIndex = state.duplicates.indexOf(object);
28461
28799
  duplicate = duplicateIndex !== -1;
28462
28800
  }
28463
- if (state.tag !== null && state.tag !== "?" || duplicate || state.indent !== 2 && level > 0)
28801
+ if (state.tag !== null && state.tag !== "?" || duplicate || state.indent !== 2 && level > 0) {
28464
28802
  compact = false;
28465
- if (duplicate && state.usedDuplicates[duplicateIndex])
28803
+ }
28804
+ if (duplicate && state.usedDuplicates[duplicateIndex]) {
28466
28805
  state.dump = "*ref_" + duplicateIndex;
28467
- else {
28468
- if (objectOrArray && duplicate && !state.usedDuplicates[duplicateIndex])
28806
+ } else {
28807
+ if (objectOrArray && duplicate && !state.usedDuplicates[duplicateIndex]) {
28469
28808
  state.usedDuplicates[duplicateIndex] = true;
28470
- if (type === "[object Object]")
28809
+ }
28810
+ if (type2 === "[object Object]") {
28471
28811
  if (block && Object.keys(state.dump).length !== 0) {
28472
28812
  writeBlockMapping(state, level, state.dump, compact);
28473
- if (duplicate)
28813
+ if (duplicate) {
28474
28814
  state.dump = "&ref_" + duplicateIndex + state.dump;
28815
+ }
28475
28816
  } else {
28476
28817
  writeFlowMapping(state, level, state.dump);
28477
- if (duplicate)
28818
+ if (duplicate) {
28478
28819
  state.dump = "&ref_" + duplicateIndex + " " + state.dump;
28820
+ }
28479
28821
  }
28480
- else if (type === "[object Array]")
28822
+ } else if (type2 === "[object Array]") {
28481
28823
  if (block && state.dump.length !== 0) {
28482
- if (state.noArrayIndent && !isblockseq && level > 0)
28824
+ if (state.noArrayIndent && !isblockseq && level > 0) {
28483
28825
  writeBlockSequence(state, level - 1, state.dump, compact);
28484
- else
28826
+ } else {
28485
28827
  writeBlockSequence(state, level, state.dump, compact);
28486
- if (duplicate)
28828
+ }
28829
+ if (duplicate) {
28487
28830
  state.dump = "&ref_" + duplicateIndex + state.dump;
28831
+ }
28488
28832
  } else {
28489
28833
  writeFlowSequence(state, level, state.dump);
28490
- if (duplicate)
28834
+ if (duplicate) {
28491
28835
  state.dump = "&ref_" + duplicateIndex + " " + state.dump;
28836
+ }
28492
28837
  }
28493
- else if (type === "[object String]") {
28494
- if (state.tag !== "?")
28838
+ } else if (type2 === "[object String]") {
28839
+ if (state.tag !== "?") {
28495
28840
  writeScalar(state, state.dump, level, iskey, inblock);
28496
- } else if (type === "[object Undefined]")
28841
+ }
28842
+ } else if (type2 === "[object Undefined]") {
28497
28843
  return false;
28498
- else {
28844
+ } else {
28499
28845
  if (state.skipInvalid)
28500
28846
  return false;
28501
- throw new YAMLException("unacceptable kind of an object to dump " + type);
28847
+ throw new YAMLException2("unacceptable kind of an object to dump " + type2);
28502
28848
  }
28503
28849
  if (state.tag !== null && state.tag !== "?") {
28504
28850
  let tagStr = encodeURI(state.tag[0] === "!" ? state.tag.slice(1) : state.tag).replace(/!/g, "%21");
28505
- if (state.tag[0] === "!")
28851
+ if (state.tag[0] === "!") {
28506
28852
  tagStr = "!" + tagStr;
28507
- else if (tagStr.slice(0, 18) === "tag:yaml.org,2002:")
28853
+ } else if (tagStr.slice(0, 18) === "tag:yaml.org,2002:") {
28508
28854
  tagStr = "!!" + tagStr.slice(18);
28509
- else
28855
+ } else {
28510
28856
  tagStr = "!<" + tagStr + ">";
28857
+ }
28511
28858
  state.dump = tagStr + " " + state.dump;
28512
28859
  }
28513
28860
  }
@@ -28518,83 +28865,110 @@ var require_dumper = /* @__PURE__ */ __commonJSMin((exports, module) => {
28518
28865
  const duplicatesIndexes = [];
28519
28866
  inspectNode(object, objects, duplicatesIndexes);
28520
28867
  const length = duplicatesIndexes.length;
28521
- for (let index = 0;index < length; index += 1)
28868
+ for (let index = 0;index < length; index += 1) {
28522
28869
  state.duplicates.push(objects[duplicatesIndexes[index]]);
28870
+ }
28523
28871
  state.usedDuplicates = new Array(length);
28524
28872
  }
28525
28873
  function inspectNode(object, objects, duplicatesIndexes) {
28526
28874
  if (object !== null && typeof object === "object") {
28527
28875
  const index = objects.indexOf(object);
28528
28876
  if (index !== -1) {
28529
- if (duplicatesIndexes.indexOf(index) === -1)
28877
+ if (duplicatesIndexes.indexOf(index) === -1) {
28530
28878
  duplicatesIndexes.push(index);
28879
+ }
28531
28880
  } else {
28532
28881
  objects.push(object);
28533
- if (Array.isArray(object))
28534
- for (let i = 0, length = object.length;i < length; i += 1)
28882
+ if (Array.isArray(object)) {
28883
+ for (let i = 0, length = object.length;i < length; i += 1) {
28535
28884
  inspectNode(object[i], objects, duplicatesIndexes);
28536
- else {
28885
+ }
28886
+ } else {
28537
28887
  const objectKeyList = Object.keys(object);
28538
- for (let i = 0, length = objectKeyList.length;i < length; i += 1)
28888
+ for (let i = 0, length = objectKeyList.length;i < length; i += 1) {
28539
28889
  inspectNode(object[objectKeyList[i]], objects, duplicatesIndexes);
28890
+ }
28540
28891
  }
28541
28892
  }
28542
28893
  }
28543
28894
  }
28544
- function dump(input, options) {
28895
+ function dump2(input, options) {
28545
28896
  options = options || {};
28546
28897
  const state = new State(options);
28547
28898
  if (!state.noRefs)
28548
28899
  getDuplicateReferences(input, state);
28549
28900
  let value = input;
28550
- if (state.replacer)
28901
+ if (state.replacer) {
28551
28902
  value = state.replacer.call({ "": value }, "", value);
28903
+ }
28552
28904
  if (writeNode(state, 0, value, true, true))
28553
28905
  return state.dump + `
28554
28906
  `;
28555
28907
  return "";
28556
28908
  }
28557
- module.exports.dump = dump;
28558
- });
28559
- var import_js_yaml = /* @__PURE__ */ __toESM2((/* @__PURE__ */ __commonJSMin((exports, module) => {
28560
- var loader = require_loader();
28561
- var dumper = require_dumper();
28909
+ dumper.dump = dump2;
28910
+ return dumper;
28911
+ }
28912
+ var hasRequiredJsYaml;
28913
+ function requireJsYaml() {
28914
+ if (hasRequiredJsYaml)
28915
+ return jsYaml;
28916
+ hasRequiredJsYaml = 1;
28917
+ const loader2 = requireLoader();
28918
+ const dumper2 = requireDumper();
28562
28919
  function renamed(from, to) {
28563
28920
  return function() {
28564
28921
  throw new Error("Function yaml." + from + " is removed in js-yaml 4. Use yaml." + to + " instead, which is now safe by default.");
28565
28922
  };
28566
28923
  }
28567
- module.exports.Type = require_type();
28568
- module.exports.Schema = require_schema();
28569
- module.exports.FAILSAFE_SCHEMA = require_failsafe();
28570
- module.exports.JSON_SCHEMA = require_json();
28571
- module.exports.CORE_SCHEMA = require_core();
28572
- module.exports.DEFAULT_SCHEMA = require_default();
28573
- module.exports.load = loader.load;
28574
- module.exports.loadAll = loader.loadAll;
28575
- module.exports.dump = dumper.dump;
28576
- module.exports.YAMLException = require_exception();
28577
- module.exports.types = {
28578
- binary: require_binary(),
28579
- float: require_float(),
28580
- map: require_map2(),
28924
+ jsYaml.Type = requireType();
28925
+ jsYaml.Schema = requireSchema();
28926
+ jsYaml.FAILSAFE_SCHEMA = requireFailsafe();
28927
+ jsYaml.JSON_SCHEMA = requireJson();
28928
+ jsYaml.CORE_SCHEMA = requireCore();
28929
+ jsYaml.DEFAULT_SCHEMA = require_default();
28930
+ jsYaml.load = loader2.load;
28931
+ jsYaml.loadAll = loader2.loadAll;
28932
+ jsYaml.dump = dumper2.dump;
28933
+ jsYaml.YAMLException = requireException();
28934
+ jsYaml.types = {
28935
+ binary: requireBinary(),
28936
+ float: requireFloat(),
28937
+ map: requireMap(),
28581
28938
  null: require_null(),
28582
- pairs: require_pairs2(),
28583
- set: require_set(),
28584
- timestamp: require_timestamp(),
28585
- bool: require_bool(),
28586
- int: require_int(),
28587
- merge: require_merge2(),
28588
- omap: require_omap(),
28589
- seq: require_seq(),
28590
- str: require_str()
28591
- };
28592
- module.exports.safeLoad = renamed("safeLoad", "load");
28593
- module.exports.safeLoadAll = renamed("safeLoadAll", "loadAll");
28594
- module.exports.safeDump = renamed("safeDump", "dump");
28595
- }))(), 1);
28596
- var { Type, Schema, FAILSAFE_SCHEMA, JSON_SCHEMA, CORE_SCHEMA, DEFAULT_SCHEMA, load, loadAll, dump, YAMLException, types, safeLoad, safeLoadAll, safeDump } = import_js_yaml.default;
28597
- var index_vite_proxy_tmp_default = import_js_yaml.default;
28939
+ pairs: requirePairs(),
28940
+ set: requireSet(),
28941
+ timestamp: requireTimestamp(),
28942
+ bool: requireBool(),
28943
+ int: requireInt(),
28944
+ merge: requireMerge(),
28945
+ omap: requireOmap(),
28946
+ seq: requireSeq(),
28947
+ str: requireStr()
28948
+ };
28949
+ jsYaml.safeLoad = renamed("safeLoad", "load");
28950
+ jsYaml.safeLoadAll = renamed("safeLoadAll", "loadAll");
28951
+ jsYaml.safeDump = renamed("safeDump", "dump");
28952
+ return jsYaml;
28953
+ }
28954
+ var jsYamlExports = requireJsYaml();
28955
+ var yaml = /* @__PURE__ */ getDefaultExportFromCjs(jsYamlExports);
28956
+ var {
28957
+ Type,
28958
+ Schema,
28959
+ FAILSAFE_SCHEMA,
28960
+ JSON_SCHEMA,
28961
+ CORE_SCHEMA,
28962
+ DEFAULT_SCHEMA,
28963
+ load,
28964
+ loadAll,
28965
+ dump,
28966
+ YAMLException,
28967
+ types,
28968
+ safeLoad,
28969
+ safeLoadAll,
28970
+ safeDump
28971
+ } = yaml;
28598
28972
 
28599
28973
  // ../../common/src/logger.ts
28600
28974
  init_src();
@@ -28671,11 +29045,11 @@ class SimpleLogger {
28671
29045
  const path3 = this.logFilePath || getGlobalLogFilePath();
28672
29046
  if (!path3)
28673
29047
  return;
28674
- const timestamp = new Date().toISOString();
29048
+ const timestamp2 = new Date().toISOString();
28675
29049
  this.pendingWrites = Promise.all([
28676
29050
  this.pendingWrites,
28677
29051
  this.pendingInit
28678
- ]).then(() => getFileSystem().appendFile(path3, `${timestamp} ${formatted}`).catch(() => {}));
29052
+ ]).then(() => getFileSystem().appendFile(path3, `${timestamp2} ${formatted}`).catch(() => {}));
28679
29053
  }
28680
29054
  debug(message, ...args) {
28681
29055
  if (this.level > 0 /* DEBUG */)
@@ -29069,10 +29443,10 @@ class LoggerTelemetryProvider {
29069
29443
  success
29070
29444
  })));
29071
29445
  }
29072
- async trackDependency(name, type, duration, success, properties) {
29446
+ async trackDependency(name, type2, duration, success, properties) {
29073
29447
  logger.debug(formatMessage("Dependency", name, this.enrich({
29074
29448
  ...properties,
29075
- type,
29449
+ type: type2,
29076
29450
  duration: `${duration}ms`,
29077
29451
  success
29078
29452
  })));
@@ -29299,7 +29673,7 @@ class TelemetryService {
29299
29673
  throw error;
29300
29674
  }
29301
29675
  }
29302
- async trackDependencyOperation(name, type, fn, properties) {
29676
+ async trackDependencyOperation(name, type2, fn, properties) {
29303
29677
  const parentContext = this.getCurrentContext();
29304
29678
  if (!parentContext) {
29305
29679
  throw new Error("trackDependencyOperation must be called within a trackRequest block.");
@@ -29314,13 +29688,13 @@ class TelemetryService {
29314
29688
  const result = await this.contextStorage.run(childContext, fn);
29315
29689
  const durationMs = performance.now() - startTime;
29316
29690
  const enrichedProperties = this.enrichPropertiesWithContext(properties, childContext);
29317
- await this.telemetryProvider.trackDependency(name, type, durationMs, true, enrichedProperties);
29691
+ await this.telemetryProvider.trackDependency(name, type2, durationMs, true, enrichedProperties);
29318
29692
  return result;
29319
29693
  } catch (error) {
29320
29694
  const durationMs = performance.now() - startTime;
29321
29695
  const err = error instanceof Error ? error : new Error(String(error));
29322
29696
  const enrichedProperties = this.enrichPropertiesWithContext({ ...properties, errorMessage: err.message }, childContext);
29323
- await this.telemetryProvider.trackDependency(name, type, durationMs, false, enrichedProperties);
29697
+ await this.telemetryProvider.trackDependency(name, type2, durationMs, false, enrichedProperties);
29324
29698
  throw error;
29325
29699
  }
29326
29700
  }
@@ -29527,8 +29901,8 @@ function printOutput(data, format = "json", logFn, asciiSafe = false) {
29527
29901
  }
29528
29902
  switch (format) {
29529
29903
  case "json": {
29530
- const json = JSON.stringify(data, null, 2);
29531
- logFn(asciiSafe ? escapeNonAscii(json) : json);
29904
+ const json2 = JSON.stringify(data, null, 2);
29905
+ logFn(asciiSafe ? escapeNonAscii(json2) : json2);
29532
29906
  break;
29533
29907
  }
29534
29908
  case "yaml":
@@ -29864,8 +30238,8 @@ var OutputFormatter;
29864
30238
  const sink = getOutputSink();
29865
30239
  const normalized = toPascalCaseData(data);
29866
30240
  if (format === "json") {
29867
- const json = JSON.stringify(normalized);
29868
- const safe = needsAsciiSafeJson(sink) ? escapeNonAscii(json) : json;
30241
+ const json2 = JSON.stringify(normalized);
30242
+ const safe = needsAsciiSafeJson(sink) ? escapeNonAscii(json2) : json2;
29869
30243
  sink.writeErr(`${safe}
29870
30244
  `);
29871
30245
  } else {
@@ -30115,8 +30489,8 @@ function redactValueDetectors(value) {
30115
30489
  out = out.replace(JWT_PATTERN, () => REDACTED);
30116
30490
  out = out.replace(URL_PATTERN, (match) => {
30117
30491
  const trailing = match.match(URL_TRAILING_PUNCT)?.[0] ?? "";
30118
- const core = trailing ? match.slice(0, -trailing.length) : match;
30119
- return `${redactUrl(core)}${trailing}`;
30492
+ const core2 = trailing ? match.slice(0, -trailing.length) : match;
30493
+ return `${redactUrl(core2)}${trailing}`;
30120
30494
  });
30121
30495
  out = out.replace(USER_HOME_PATTERN, (_match, sep1, folder, sep2) => `${sep1}${folder}${sep2}<user>`);
30122
30496
  out = out.replace(EMAIL_PATTERN, (match) => `email#${shortHash(match)}`);
@@ -31092,8 +31466,8 @@ var SDK_USER_AGENT2 = getSdkUserAgentToken(package_default3);
31092
31466
  installSdkUserAgentHeader(BaseAPI2, SDK_USER_AGENT2);
31093
31467
 
31094
31468
  // ../aops-policy-sdk/generated/src/models/AddLicenseTypeRequest.ts
31095
- function AddLicenseTypeRequestToJSON(json) {
31096
- return AddLicenseTypeRequestToJSONTyped(json, false);
31469
+ function AddLicenseTypeRequestToJSON(json2) {
31470
+ return AddLicenseTypeRequestToJSONTyped(json2, false);
31097
31471
  }
31098
31472
  function AddLicenseTypeRequestToJSONTyped(value, ignoreDiscriminator = false) {
31099
31473
  if (value == null) {
@@ -31106,23 +31480,23 @@ function AddLicenseTypeRequestToJSONTyped(value, ignoreDiscriminator = false) {
31106
31480
  }
31107
31481
 
31108
31482
  // ../aops-policy-sdk/generated/src/models/ProductDto.ts
31109
- function ProductDtoFromJSON(json) {
31110
- return ProductDtoFromJSONTyped(json, false);
31483
+ function ProductDtoFromJSON(json2) {
31484
+ return ProductDtoFromJSONTyped(json2, false);
31111
31485
  }
31112
- function ProductDtoFromJSONTyped(json, ignoreDiscriminator) {
31113
- if (json == null) {
31114
- return json;
31486
+ function ProductDtoFromJSONTyped(json2, ignoreDiscriminator) {
31487
+ if (json2 == null) {
31488
+ return json2;
31115
31489
  }
31116
31490
  return {
31117
- name: json["name"] == null ? undefined : json["name"],
31118
- label: json["label"] == null ? undefined : json["label"],
31119
- isRestricted: json["isRestricted"] == null ? undefined : json["isRestricted"],
31120
- isCloud: json["isCloud"] == null ? undefined : json["isCloud"],
31121
- isRemote: json["isRemote"] == null ? undefined : json["isRemote"]
31491
+ name: json2["name"] == null ? undefined : json2["name"],
31492
+ label: json2["label"] == null ? undefined : json2["label"],
31493
+ isRestricted: json2["isRestricted"] == null ? undefined : json2["isRestricted"],
31494
+ isCloud: json2["isCloud"] == null ? undefined : json2["isCloud"],
31495
+ isRemote: json2["isRemote"] == null ? undefined : json2["isRemote"]
31122
31496
  };
31123
31497
  }
31124
- function ProductDtoToJSON(json) {
31125
- return ProductDtoToJSONTyped(json, false);
31498
+ function ProductDtoToJSON(json2) {
31499
+ return ProductDtoToJSONTyped(json2, false);
31126
31500
  }
31127
31501
  function ProductDtoToJSONTyped(value, ignoreDiscriminator = false) {
31128
31502
  if (value == null) {
@@ -31138,23 +31512,23 @@ function ProductDtoToJSONTyped(value, ignoreDiscriminator = false) {
31138
31512
  }
31139
31513
 
31140
31514
  // ../aops-policy-sdk/generated/src/models/GlobalPolicyDto.ts
31141
- function GlobalPolicyDtoFromJSON(json) {
31142
- return GlobalPolicyDtoFromJSONTyped(json, false);
31515
+ function GlobalPolicyDtoFromJSON(json2) {
31516
+ return GlobalPolicyDtoFromJSONTyped(json2, false);
31143
31517
  }
31144
- function GlobalPolicyDtoFromJSONTyped(json, ignoreDiscriminator) {
31145
- if (json == null) {
31146
- return json;
31518
+ function GlobalPolicyDtoFromJSONTyped(json2, ignoreDiscriminator) {
31519
+ if (json2 == null) {
31520
+ return json2;
31147
31521
  }
31148
31522
  return {
31149
- licenseType: json["licenseType"] == null ? undefined : json["licenseType"],
31150
- identifier: json["identifier"] == null ? undefined : json["identifier"],
31151
- policyNumber: json["policyNumber"] == null ? undefined : json["policyNumber"],
31152
- product: json["product"] == null ? undefined : ProductDtoFromJSON(json["product"]),
31153
- data: json["data"] == null ? undefined : json["data"]
31523
+ licenseType: json2["licenseType"] == null ? undefined : json2["licenseType"],
31524
+ identifier: json2["identifier"] == null ? undefined : json2["identifier"],
31525
+ policyNumber: json2["policyNumber"] == null ? undefined : json2["policyNumber"],
31526
+ product: json2["product"] == null ? undefined : ProductDtoFromJSON(json2["product"]),
31527
+ data: json2["data"] == null ? undefined : json2["data"]
31154
31528
  };
31155
31529
  }
31156
- function GlobalPolicyDtoToJSON(json) {
31157
- return GlobalPolicyDtoToJSONTyped(json, false);
31530
+ function GlobalPolicyDtoToJSON(json2) {
31531
+ return GlobalPolicyDtoToJSONTyped(json2, false);
31158
31532
  }
31159
31533
  function GlobalPolicyDtoToJSONTyped(value, ignoreDiscriminator = false) {
31160
31534
  if (value == null) {
@@ -31170,8 +31544,8 @@ function GlobalPolicyDtoToJSONTyped(value, ignoreDiscriminator = false) {
31170
31544
  }
31171
31545
 
31172
31546
  // ../aops-policy-sdk/generated/src/models/CreateGlobalPolicyWithFormDataRequest.ts
31173
- function CreateGlobalPolicyWithFormDataRequestToJSON(json) {
31174
- return CreateGlobalPolicyWithFormDataRequestToJSONTyped(json, false);
31547
+ function CreateGlobalPolicyWithFormDataRequestToJSON(json2) {
31548
+ return CreateGlobalPolicyWithFormDataRequestToJSONTyped(json2, false);
31175
31549
  }
31176
31550
  function CreateGlobalPolicyWithFormDataRequestToJSONTyped(value, ignoreDiscriminator = false) {
31177
31551
  if (value == null) {
@@ -31183,8 +31557,8 @@ function CreateGlobalPolicyWithFormDataRequestToJSONTyped(value, ignoreDiscrimin
31183
31557
  }
31184
31558
 
31185
31559
  // ../aops-policy-sdk/generated/src/models/CreatePolicyRequest.ts
31186
- function CreatePolicyRequestToJSON(json) {
31187
- return CreatePolicyRequestToJSONTyped(json, false);
31560
+ function CreatePolicyRequestToJSON(json2) {
31561
+ return CreatePolicyRequestToJSONTyped(json2, false);
31188
31562
  }
31189
31563
  function CreatePolicyRequestToJSONTyped(value, ignoreDiscriminator = false) {
31190
31564
  if (value == null) {
@@ -31201,20 +31575,20 @@ function CreatePolicyRequestToJSONTyped(value, ignoreDiscriminator = false) {
31201
31575
  }
31202
31576
 
31203
31577
  // ../aops-policy-sdk/generated/src/models/FormDataDto.ts
31204
- function FormDataDtoFromJSON(json) {
31205
- return FormDataDtoFromJSONTyped(json, false);
31578
+ function FormDataDtoFromJSON(json2) {
31579
+ return FormDataDtoFromJSONTyped(json2, false);
31206
31580
  }
31207
- function FormDataDtoFromJSONTyped(json, ignoreDiscriminator) {
31208
- if (json == null) {
31209
- return json;
31581
+ function FormDataDtoFromJSONTyped(json2, ignoreDiscriminator) {
31582
+ if (json2 == null) {
31583
+ return json2;
31210
31584
  }
31211
31585
  return {
31212
- policyIdentifier: json["policyIdentifier"] == null ? undefined : json["policyIdentifier"],
31213
- data: json["data"] == null ? undefined : json["data"]
31586
+ policyIdentifier: json2["policyIdentifier"] == null ? undefined : json2["policyIdentifier"],
31587
+ data: json2["data"] == null ? undefined : json2["data"]
31214
31588
  };
31215
31589
  }
31216
- function FormDataDtoToJSON(json) {
31217
- return FormDataDtoToJSONTyped(json, false);
31590
+ function FormDataDtoToJSON(json2) {
31591
+ return FormDataDtoToJSONTyped(json2, false);
31218
31592
  }
31219
31593
  function FormDataDtoToJSONTyped(value, ignoreDiscriminator = false) {
31220
31594
  if (value == null) {
@@ -31227,25 +31601,25 @@ function FormDataDtoToJSONTyped(value, ignoreDiscriminator = false) {
31227
31601
  }
31228
31602
 
31229
31603
  // ../aops-policy-sdk/generated/src/models/PolicyDto.ts
31230
- function PolicyDtoFromJSON(json) {
31231
- return PolicyDtoFromJSONTyped(json, false);
31604
+ function PolicyDtoFromJSON(json2) {
31605
+ return PolicyDtoFromJSONTyped(json2, false);
31232
31606
  }
31233
- function PolicyDtoFromJSONTyped(json, ignoreDiscriminator) {
31234
- if (json == null) {
31235
- return json;
31607
+ function PolicyDtoFromJSONTyped(json2, ignoreDiscriminator) {
31608
+ if (json2 == null) {
31609
+ return json2;
31236
31610
  }
31237
31611
  return {
31238
- name: json["name"] == null ? undefined : json["name"],
31239
- identifier: json["identifier"] == null ? undefined : json["identifier"],
31240
- description: json["description"] == null ? undefined : json["description"],
31241
- priority: json["priority"] == null ? undefined : json["priority"],
31242
- availability: json["availability"] == null ? undefined : json["availability"],
31243
- product: json["product"] == null ? undefined : ProductDtoFromJSON(json["product"]),
31244
- data: json["data"] == null ? undefined : FormDataDtoFromJSON(json["data"])
31612
+ name: json2["name"] == null ? undefined : json2["name"],
31613
+ identifier: json2["identifier"] == null ? undefined : json2["identifier"],
31614
+ description: json2["description"] == null ? undefined : json2["description"],
31615
+ priority: json2["priority"] == null ? undefined : json2["priority"],
31616
+ availability: json2["availability"] == null ? undefined : json2["availability"],
31617
+ product: json2["product"] == null ? undefined : ProductDtoFromJSON(json2["product"]),
31618
+ data: json2["data"] == null ? undefined : FormDataDtoFromJSON(json2["data"])
31245
31619
  };
31246
31620
  }
31247
- function PolicyDtoToJSON(json) {
31248
- return PolicyDtoToJSONTyped(json, false);
31621
+ function PolicyDtoToJSON(json2) {
31622
+ return PolicyDtoToJSONTyped(json2, false);
31249
31623
  }
31250
31624
  function PolicyDtoToJSONTyped(value, ignoreDiscriminator = false) {
31251
31625
  if (value == null) {
@@ -31263,8 +31637,8 @@ function PolicyDtoToJSONTyped(value, ignoreDiscriminator = false) {
31263
31637
  }
31264
31638
 
31265
31639
  // ../aops-policy-sdk/generated/src/models/CreatePolicyWithFormDataRequest.ts
31266
- function CreatePolicyWithFormDataRequestToJSON(json) {
31267
- return CreatePolicyWithFormDataRequestToJSONTyped(json, false);
31640
+ function CreatePolicyWithFormDataRequestToJSON(json2) {
31641
+ return CreatePolicyWithFormDataRequestToJSONTyped(json2, false);
31268
31642
  }
31269
31643
  function CreatePolicyWithFormDataRequestToJSONTyped(value, ignoreDiscriminator = false) {
31270
31644
  if (value == null) {
@@ -31277,8 +31651,8 @@ function CreatePolicyWithFormDataRequestToJSONTyped(value, ignoreDiscriminator =
31277
31651
  }
31278
31652
 
31279
31653
  // ../aops-policy-sdk/generated/src/models/DeployedPolicyDto.ts
31280
- function DeployedPolicyDtoToJSON(json) {
31281
- return DeployedPolicyDtoToJSONTyped(json, false);
31654
+ function DeployedPolicyDtoToJSON(json2) {
31655
+ return DeployedPolicyDtoToJSONTyped(json2, false);
31282
31656
  }
31283
31657
  function DeployedPolicyDtoToJSONTyped(value, ignoreDiscriminator = false) {
31284
31658
  if (value == null) {
@@ -31293,8 +31667,8 @@ function DeployedPolicyDtoToJSONTyped(value, ignoreDiscriminator = false) {
31293
31667
  }
31294
31668
 
31295
31669
  // ../aops-policy-sdk/generated/src/models/DeployedPolicyWithoutUserDto.ts
31296
- function DeployedPolicyWithoutUserDtoToJSON(json) {
31297
- return DeployedPolicyWithoutUserDtoToJSONTyped(json, false);
31670
+ function DeployedPolicyWithoutUserDtoToJSON(json2) {
31671
+ return DeployedPolicyWithoutUserDtoToJSONTyped(json2, false);
31298
31672
  }
31299
31673
  function DeployedPolicyWithoutUserDtoToJSONTyped(value, ignoreDiscriminator = false) {
31300
31674
  if (value == null) {
@@ -31308,31 +31682,31 @@ function DeployedPolicyWithoutUserDtoToJSONTyped(value, ignoreDiscriminator = fa
31308
31682
  }
31309
31683
 
31310
31684
  // ../aops-policy-sdk/generated/src/models/DeploymentLevel.ts
31311
- function DeploymentLevelFromJSON(json) {
31312
- return DeploymentLevelFromJSONTyped(json, false);
31685
+ function DeploymentLevelFromJSON(json2) {
31686
+ return DeploymentLevelFromJSONTyped(json2, false);
31313
31687
  }
31314
- function DeploymentLevelFromJSONTyped(json, ignoreDiscriminator) {
31315
- return json;
31688
+ function DeploymentLevelFromJSONTyped(json2, ignoreDiscriminator) {
31689
+ return json2;
31316
31690
  }
31317
31691
 
31318
31692
  // ../aops-policy-sdk/generated/src/models/TenantPolicyDto.ts
31319
- function TenantPolicyDtoFromJSON(json) {
31320
- return TenantPolicyDtoFromJSONTyped(json, false);
31693
+ function TenantPolicyDtoFromJSON(json2) {
31694
+ return TenantPolicyDtoFromJSONTyped(json2, false);
31321
31695
  }
31322
- function TenantPolicyDtoFromJSONTyped(json, ignoreDiscriminator) {
31323
- if (json == null) {
31324
- return json;
31696
+ function TenantPolicyDtoFromJSONTyped(json2, ignoreDiscriminator) {
31697
+ if (json2 == null) {
31698
+ return json2;
31325
31699
  }
31326
31700
  return {
31327
- tenantIdentifier: json["tenantIdentifier"] == null ? undefined : json["tenantIdentifier"],
31328
- policyIdentifier: json["policyIdentifier"] == null ? undefined : json["policyIdentifier"],
31329
- productIdentifier: json["productIdentifier"] == null ? undefined : json["productIdentifier"],
31330
- licenseTypeIdentifier: json["licenseTypeIdentifier"] == null ? undefined : json["licenseTypeIdentifier"],
31331
- tenantName: json["tenantName"] == null ? undefined : json["tenantName"]
31701
+ tenantIdentifier: json2["tenantIdentifier"] == null ? undefined : json2["tenantIdentifier"],
31702
+ policyIdentifier: json2["policyIdentifier"] == null ? undefined : json2["policyIdentifier"],
31703
+ productIdentifier: json2["productIdentifier"] == null ? undefined : json2["productIdentifier"],
31704
+ licenseTypeIdentifier: json2["licenseTypeIdentifier"] == null ? undefined : json2["licenseTypeIdentifier"],
31705
+ tenantName: json2["tenantName"] == null ? undefined : json2["tenantName"]
31332
31706
  };
31333
31707
  }
31334
- function TenantPolicyDtoToJSON(json) {
31335
- return TenantPolicyDtoToJSONTyped(json, false);
31708
+ function TenantPolicyDtoToJSON(json2) {
31709
+ return TenantPolicyDtoToJSONTyped(json2, false);
31336
31710
  }
31337
31711
  function TenantPolicyDtoToJSONTyped(value, ignoreDiscriminator = false) {
31338
31712
  if (value == null) {
@@ -31348,22 +31722,22 @@ function TenantPolicyDtoToJSONTyped(value, ignoreDiscriminator = false) {
31348
31722
  }
31349
31723
 
31350
31724
  // ../aops-policy-sdk/generated/src/models/GroupPolicyDto.ts
31351
- function GroupPolicyDtoFromJSON(json) {
31352
- return GroupPolicyDtoFromJSONTyped(json, false);
31725
+ function GroupPolicyDtoFromJSON(json2) {
31726
+ return GroupPolicyDtoFromJSONTyped(json2, false);
31353
31727
  }
31354
- function GroupPolicyDtoFromJSONTyped(json, ignoreDiscriminator) {
31355
- if (json == null) {
31356
- return json;
31728
+ function GroupPolicyDtoFromJSONTyped(json2, ignoreDiscriminator) {
31729
+ if (json2 == null) {
31730
+ return json2;
31357
31731
  }
31358
31732
  return {
31359
- policyIdentifier: json["policyIdentifier"] == null ? undefined : json["policyIdentifier"],
31360
- productIdentifier: json["productIdentifier"] == null ? undefined : json["productIdentifier"],
31361
- groupId: json["groupId"] == null ? undefined : json["groupId"],
31362
- groupName: json["groupName"] == null ? undefined : json["groupName"]
31733
+ policyIdentifier: json2["policyIdentifier"] == null ? undefined : json2["policyIdentifier"],
31734
+ productIdentifier: json2["productIdentifier"] == null ? undefined : json2["productIdentifier"],
31735
+ groupId: json2["groupId"] == null ? undefined : json2["groupId"],
31736
+ groupName: json2["groupName"] == null ? undefined : json2["groupName"]
31363
31737
  };
31364
31738
  }
31365
- function GroupPolicyDtoToJSON(json) {
31366
- return GroupPolicyDtoToJSONTyped(json, false);
31739
+ function GroupPolicyDtoToJSON(json2) {
31740
+ return GroupPolicyDtoToJSONTyped(json2, false);
31367
31741
  }
31368
31742
  function GroupPolicyDtoToJSONTyped(value, ignoreDiscriminator = false) {
31369
31743
  if (value == null) {
@@ -31378,22 +31752,22 @@ function GroupPolicyDtoToJSONTyped(value, ignoreDiscriminator = false) {
31378
31752
  }
31379
31753
 
31380
31754
  // ../aops-policy-sdk/generated/src/models/UserPolicyDto.ts
31381
- function UserPolicyDtoFromJSON(json) {
31382
- return UserPolicyDtoFromJSONTyped(json, false);
31755
+ function UserPolicyDtoFromJSON(json2) {
31756
+ return UserPolicyDtoFromJSONTyped(json2, false);
31383
31757
  }
31384
- function UserPolicyDtoFromJSONTyped(json, ignoreDiscriminator) {
31385
- if (json == null) {
31386
- return json;
31758
+ function UserPolicyDtoFromJSONTyped(json2, ignoreDiscriminator) {
31759
+ if (json2 == null) {
31760
+ return json2;
31387
31761
  }
31388
31762
  return {
31389
- policyIdentifier: json["policyIdentifier"] == null ? undefined : json["policyIdentifier"],
31390
- productIdentifier: json["productIdentifier"] == null ? undefined : json["productIdentifier"],
31391
- userId: json["userId"] == null ? undefined : json["userId"],
31392
- userName: json["userName"] == null ? undefined : json["userName"]
31763
+ policyIdentifier: json2["policyIdentifier"] == null ? undefined : json2["policyIdentifier"],
31764
+ productIdentifier: json2["productIdentifier"] == null ? undefined : json2["productIdentifier"],
31765
+ userId: json2["userId"] == null ? undefined : json2["userId"],
31766
+ userName: json2["userName"] == null ? undefined : json2["userName"]
31393
31767
  };
31394
31768
  }
31395
- function UserPolicyDtoToJSON(json) {
31396
- return UserPolicyDtoToJSONTyped(json, false);
31769
+ function UserPolicyDtoToJSON(json2) {
31770
+ return UserPolicyDtoToJSONTyped(json2, false);
31397
31771
  }
31398
31772
  function UserPolicyDtoToJSONTyped(value, ignoreDiscriminator = false) {
31399
31773
  if (value == null) {
@@ -31408,56 +31782,56 @@ function UserPolicyDtoToJSONTyped(value, ignoreDiscriminator = false) {
31408
31782
  }
31409
31783
 
31410
31784
  // ../aops-policy-sdk/generated/src/models/FederatedPolicyDto.ts
31411
- function FederatedPolicyDtoFromJSON(json) {
31412
- return FederatedPolicyDtoFromJSONTyped(json, false);
31785
+ function FederatedPolicyDtoFromJSON(json2) {
31786
+ return FederatedPolicyDtoFromJSONTyped(json2, false);
31413
31787
  }
31414
- function FederatedPolicyDtoFromJSONTyped(json, ignoreDiscriminator) {
31415
- if (json == null) {
31416
- return json;
31788
+ function FederatedPolicyDtoFromJSONTyped(json2, ignoreDiscriminator) {
31789
+ if (json2 == null) {
31790
+ return json2;
31417
31791
  }
31418
31792
  return {
31419
- name: json["name"] == null ? undefined : json["name"],
31420
- identifier: json["identifier"] == null ? undefined : json["identifier"],
31421
- product: json["product"] == null ? undefined : ProductDtoFromJSON(json["product"]),
31422
- description: json["description"] == null ? undefined : json["description"],
31423
- priority: json["priority"] == null ? undefined : json["priority"],
31424
- availability: json["availability"] == null ? undefined : json["availability"],
31425
- tenantPolicies: json["tenantPolicies"] == null ? undefined : json["tenantPolicies"].map(TenantPolicyDtoFromJSON),
31426
- userPolicies: json["userPolicies"] == null ? undefined : json["userPolicies"].map(UserPolicyDtoFromJSON),
31427
- groupPolicies: json["groupPolicies"] == null ? undefined : json["groupPolicies"].map(GroupPolicyDtoFromJSON)
31793
+ name: json2["name"] == null ? undefined : json2["name"],
31794
+ identifier: json2["identifier"] == null ? undefined : json2["identifier"],
31795
+ product: json2["product"] == null ? undefined : ProductDtoFromJSON(json2["product"]),
31796
+ description: json2["description"] == null ? undefined : json2["description"],
31797
+ priority: json2["priority"] == null ? undefined : json2["priority"],
31798
+ availability: json2["availability"] == null ? undefined : json2["availability"],
31799
+ tenantPolicies: json2["tenantPolicies"] == null ? undefined : json2["tenantPolicies"].map(TenantPolicyDtoFromJSON),
31800
+ userPolicies: json2["userPolicies"] == null ? undefined : json2["userPolicies"].map(UserPolicyDtoFromJSON),
31801
+ groupPolicies: json2["groupPolicies"] == null ? undefined : json2["groupPolicies"].map(GroupPolicyDtoFromJSON)
31428
31802
  };
31429
31803
  }
31430
31804
 
31431
31805
  // ../aops-policy-sdk/generated/src/models/FederatedPolicyDtoPagedResult.ts
31432
- function FederatedPolicyDtoPagedResultFromJSON(json) {
31433
- return FederatedPolicyDtoPagedResultFromJSONTyped(json, false);
31806
+ function FederatedPolicyDtoPagedResultFromJSON(json2) {
31807
+ return FederatedPolicyDtoPagedResultFromJSONTyped(json2, false);
31434
31808
  }
31435
- function FederatedPolicyDtoPagedResultFromJSONTyped(json, ignoreDiscriminator) {
31436
- if (json == null) {
31437
- return json;
31809
+ function FederatedPolicyDtoPagedResultFromJSONTyped(json2, ignoreDiscriminator) {
31810
+ if (json2 == null) {
31811
+ return json2;
31438
31812
  }
31439
31813
  return {
31440
- totalCount: json["totalCount"] == null ? undefined : json["totalCount"],
31441
- result: json["result"] == null ? undefined : json["result"].map(FederatedPolicyDtoFromJSON)
31814
+ totalCount: json2["totalCount"] == null ? undefined : json2["totalCount"],
31815
+ result: json2["result"] == null ? undefined : json2["result"].map(FederatedPolicyDtoFromJSON)
31442
31816
  };
31443
31817
  }
31444
31818
 
31445
31819
  // ../aops-policy-sdk/generated/src/models/VersionDto.ts
31446
- function VersionDtoFromJSON(json) {
31447
- return VersionDtoFromJSONTyped(json, false);
31820
+ function VersionDtoFromJSON(json2) {
31821
+ return VersionDtoFromJSONTyped(json2, false);
31448
31822
  }
31449
- function VersionDtoFromJSONTyped(json, ignoreDiscriminator) {
31450
- if (json == null) {
31451
- return json;
31823
+ function VersionDtoFromJSONTyped(json2, ignoreDiscriminator) {
31824
+ if (json2 == null) {
31825
+ return json2;
31452
31826
  }
31453
31827
  return {
31454
- major: json["major"] == null ? undefined : json["major"],
31455
- minor: json["minor"] == null ? undefined : json["minor"],
31456
- hotfix: json["hotfix"] == null ? undefined : json["hotfix"]
31828
+ major: json2["major"] == null ? undefined : json2["major"],
31829
+ minor: json2["minor"] == null ? undefined : json2["minor"],
31830
+ hotfix: json2["hotfix"] == null ? undefined : json2["hotfix"]
31457
31831
  };
31458
31832
  }
31459
- function VersionDtoToJSON(json) {
31460
- return VersionDtoToJSONTyped(json, false);
31833
+ function VersionDtoToJSON(json2) {
31834
+ return VersionDtoToJSONTyped(json2, false);
31461
31835
  }
31462
31836
  function VersionDtoToJSONTyped(value, ignoreDiscriminator = false) {
31463
31837
  if (value == null) {
@@ -31471,25 +31845,25 @@ function VersionDtoToJSONTyped(value, ignoreDiscriminator = false) {
31471
31845
  }
31472
31846
 
31473
31847
  // ../aops-policy-sdk/generated/src/models/FormTemplateDto.ts
31474
- function FormTemplateDtoFromJSON(json) {
31475
- return FormTemplateDtoFromJSONTyped(json, false);
31848
+ function FormTemplateDtoFromJSON(json2) {
31849
+ return FormTemplateDtoFromJSONTyped(json2, false);
31476
31850
  }
31477
- function FormTemplateDtoFromJSONTyped(json, ignoreDiscriminator) {
31478
- if (json == null) {
31479
- return json;
31851
+ function FormTemplateDtoFromJSONTyped(json2, ignoreDiscriminator) {
31852
+ if (json2 == null) {
31853
+ return json2;
31480
31854
  }
31481
31855
  return {
31482
- identifier: json["identifier"] == null ? undefined : json["identifier"],
31483
- productIdentifier: json["productIdentifier"] == null ? undefined : json["productIdentifier"],
31484
- product: json["product"] == null ? undefined : ProductDtoFromJSON(json["product"]),
31485
- template: json["template"] == null ? undefined : json["template"],
31486
- defaultData: json["defaultData"] == null ? undefined : json["defaultData"],
31487
- version: json["version"] == null ? undefined : VersionDtoFromJSON(json["version"]),
31488
- isRestricted: json["isRestricted"] == null ? undefined : json["isRestricted"]
31856
+ identifier: json2["identifier"] == null ? undefined : json2["identifier"],
31857
+ productIdentifier: json2["productIdentifier"] == null ? undefined : json2["productIdentifier"],
31858
+ product: json2["product"] == null ? undefined : ProductDtoFromJSON(json2["product"]),
31859
+ template: json2["template"] == null ? undefined : json2["template"],
31860
+ defaultData: json2["defaultData"] == null ? undefined : json2["defaultData"],
31861
+ version: json2["version"] == null ? undefined : VersionDtoFromJSON(json2["version"]),
31862
+ isRestricted: json2["isRestricted"] == null ? undefined : json2["isRestricted"]
31489
31863
  };
31490
31864
  }
31491
- function FormTemplateDtoToJSON(json) {
31492
- return FormTemplateDtoToJSONTyped(json, false);
31865
+ function FormTemplateDtoToJSON(json2) {
31866
+ return FormTemplateDtoToJSONTyped(json2, false);
31493
31867
  }
31494
31868
  function FormTemplateDtoToJSONTyped(value, ignoreDiscriminator = false) {
31495
31869
  if (value == null) {
@@ -31516,8 +31890,8 @@ function SortOrderToJSON(value) {
31516
31890
  }
31517
31891
 
31518
31892
  // ../aops-policy-sdk/generated/src/models/GovernanceQueryOptions.ts
31519
- function GovernanceQueryOptionsToJSON(json) {
31520
- return GovernanceQueryOptionsToJSONTyped(json, false);
31893
+ function GovernanceQueryOptionsToJSON(json2) {
31894
+ return GovernanceQueryOptionsToJSONTyped(json2, false);
31521
31895
  }
31522
31896
  function GovernanceQueryOptionsToJSONTyped(value, ignoreDiscriminator = false) {
31523
31897
  if (value == null) {
@@ -31536,24 +31910,24 @@ function GovernanceQueryOptionsToJSONTyped(value, ignoreDiscriminator = false) {
31536
31910
  }
31537
31911
 
31538
31912
  // ../aops-policy-sdk/generated/src/models/GroupDto.ts
31539
- function GroupDtoFromJSON(json) {
31540
- return GroupDtoFromJSONTyped(json, false);
31913
+ function GroupDtoFromJSON(json2) {
31914
+ return GroupDtoFromJSONTyped(json2, false);
31541
31915
  }
31542
- function GroupDtoFromJSONTyped(json, ignoreDiscriminator) {
31543
- if (json == null) {
31544
- return json;
31916
+ function GroupDtoFromJSONTyped(json2, ignoreDiscriminator) {
31917
+ if (json2 == null) {
31918
+ return json2;
31545
31919
  }
31546
31920
  return {
31547
- source: json["source"] == null ? undefined : json["source"],
31548
- identifier: json["identifier"] == null ? undefined : json["identifier"],
31549
- name: json["name"] == null ? undefined : json["name"],
31550
- groupPolicies: json["groupPolicies"] == null ? undefined : json["groupPolicies"].map(GroupPolicyDtoFromJSON),
31551
- lastModified: json["lastModified"] == null ? undefined : new Date(json["lastModified"]),
31552
- isActive: json["isActive"] == null ? undefined : json["isActive"]
31921
+ source: json2["source"] == null ? undefined : json2["source"],
31922
+ identifier: json2["identifier"] == null ? undefined : json2["identifier"],
31923
+ name: json2["name"] == null ? undefined : json2["name"],
31924
+ groupPolicies: json2["groupPolicies"] == null ? undefined : json2["groupPolicies"].map(GroupPolicyDtoFromJSON),
31925
+ lastModified: json2["lastModified"] == null ? undefined : new Date(json2["lastModified"]),
31926
+ isActive: json2["isActive"] == null ? undefined : json2["isActive"]
31553
31927
  };
31554
31928
  }
31555
- function GroupDtoToJSON(json) {
31556
- return GroupDtoToJSONTyped(json, false);
31929
+ function GroupDtoToJSON(json2) {
31930
+ return GroupDtoToJSONTyped(json2, false);
31557
31931
  }
31558
31932
  function GroupDtoToJSONTyped(value, ignoreDiscriminator = false) {
31559
31933
  if (value == null) {
@@ -31570,22 +31944,22 @@ function GroupDtoToJSONTyped(value, ignoreDiscriminator = false) {
31570
31944
  }
31571
31945
 
31572
31946
  // ../aops-policy-sdk/generated/src/models/GroupDtoPagedResult.ts
31573
- function GroupDtoPagedResultFromJSON(json) {
31574
- return GroupDtoPagedResultFromJSONTyped(json, false);
31947
+ function GroupDtoPagedResultFromJSON(json2) {
31948
+ return GroupDtoPagedResultFromJSONTyped(json2, false);
31575
31949
  }
31576
- function GroupDtoPagedResultFromJSONTyped(json, ignoreDiscriminator) {
31577
- if (json == null) {
31578
- return json;
31950
+ function GroupDtoPagedResultFromJSONTyped(json2, ignoreDiscriminator) {
31951
+ if (json2 == null) {
31952
+ return json2;
31579
31953
  }
31580
31954
  return {
31581
- totalCount: json["totalCount"] == null ? undefined : json["totalCount"],
31582
- result: json["result"] == null ? undefined : json["result"].map(GroupDtoFromJSON)
31955
+ totalCount: json2["totalCount"] == null ? undefined : json2["totalCount"],
31956
+ result: json2["result"] == null ? undefined : json2["result"].map(GroupDtoFromJSON)
31583
31957
  };
31584
31958
  }
31585
31959
 
31586
31960
  // ../aops-policy-sdk/generated/src/models/GroupToAddDto.ts
31587
- function GroupToAddDtoToJSON(json) {
31588
- return GroupToAddDtoToJSONTyped(json, false);
31961
+ function GroupToAddDtoToJSON(json2) {
31962
+ return GroupToAddDtoToJSONTyped(json2, false);
31589
31963
  }
31590
31964
  function GroupToAddDtoToJSONTyped(value, ignoreDiscriminator = false) {
31591
31965
  if (value == null) {
@@ -31599,162 +31973,162 @@ function GroupToAddDtoToJSONTyped(value, ignoreDiscriminator = false) {
31599
31973
  }
31600
31974
 
31601
31975
  // ../aops-policy-sdk/generated/src/models/ImportPolicyRequest.ts
31602
- function ImportPolicyRequestFromJSON(json) {
31603
- return ImportPolicyRequestFromJSONTyped(json, false);
31976
+ function ImportPolicyRequestFromJSON(json2) {
31977
+ return ImportPolicyRequestFromJSONTyped(json2, false);
31604
31978
  }
31605
- function ImportPolicyRequestFromJSONTyped(json, ignoreDiscriminator) {
31606
- if (json == null) {
31607
- return json;
31979
+ function ImportPolicyRequestFromJSONTyped(json2, ignoreDiscriminator) {
31980
+ if (json2 == null) {
31981
+ return json2;
31608
31982
  }
31609
31983
  return {
31610
- productName: json["product-name"] == null ? undefined : json["product-name"],
31611
- policyName: json["policy-name"] == null ? undefined : json["policy-name"],
31612
- version: json["version"] == null ? undefined : json["version"],
31613
- data: json["data"] == null ? undefined : json["data"]
31984
+ productName: json2["product-name"] == null ? undefined : json2["product-name"],
31985
+ policyName: json2["policy-name"] == null ? undefined : json2["policy-name"],
31986
+ version: json2["version"] == null ? undefined : json2["version"],
31987
+ data: json2["data"] == null ? undefined : json2["data"]
31614
31988
  };
31615
31989
  }
31616
31990
 
31617
31991
  // ../aops-policy-sdk/generated/src/models/LicenseTypeProductsDto.ts
31618
- function LicenseTypeProductsDtoFromJSON(json) {
31619
- return LicenseTypeProductsDtoFromJSONTyped(json, false);
31992
+ function LicenseTypeProductsDtoFromJSON(json2) {
31993
+ return LicenseTypeProductsDtoFromJSONTyped(json2, false);
31620
31994
  }
31621
- function LicenseTypeProductsDtoFromJSONTyped(json, ignoreDiscriminator) {
31622
- if (json == null) {
31623
- return json;
31995
+ function LicenseTypeProductsDtoFromJSONTyped(json2, ignoreDiscriminator) {
31996
+ if (json2 == null) {
31997
+ return json2;
31624
31998
  }
31625
31999
  return {
31626
- product: json["product"] == null ? undefined : ProductDtoFromJSON(json["product"])
32000
+ product: json2["product"] == null ? undefined : ProductDtoFromJSON(json2["product"])
31627
32001
  };
31628
32002
  }
31629
32003
 
31630
32004
  // ../aops-policy-sdk/generated/src/models/LicenseTypeDto.ts
31631
- function LicenseTypeDtoFromJSON(json) {
31632
- return LicenseTypeDtoFromJSONTyped(json, false);
32005
+ function LicenseTypeDtoFromJSON(json2) {
32006
+ return LicenseTypeDtoFromJSONTyped(json2, false);
31633
32007
  }
31634
- function LicenseTypeDtoFromJSONTyped(json, ignoreDiscriminator) {
31635
- if (json == null) {
31636
- return json;
32008
+ function LicenseTypeDtoFromJSONTyped(json2, ignoreDiscriminator) {
32009
+ if (json2 == null) {
32010
+ return json2;
31637
32011
  }
31638
32012
  return {
31639
- name: json["name"] == null ? undefined : json["name"],
31640
- label: json["label"] == null ? undefined : json["label"],
31641
- licenseTypeProducts: json["licenseTypeProducts"] == null ? undefined : json["licenseTypeProducts"].map(LicenseTypeProductsDtoFromJSON),
31642
- isRestricted: json["isRestricted"] == null ? undefined : json["isRestricted"]
32013
+ name: json2["name"] == null ? undefined : json2["name"],
32014
+ label: json2["label"] == null ? undefined : json2["label"],
32015
+ licenseTypeProducts: json2["licenseTypeProducts"] == null ? undefined : json2["licenseTypeProducts"].map(LicenseTypeProductsDtoFromJSON),
32016
+ isRestricted: json2["isRestricted"] == null ? undefined : json2["isRestricted"]
31643
32017
  };
31644
32018
  }
31645
32019
 
31646
32020
  // ../aops-policy-sdk/generated/src/models/PartitionProductDto.ts
31647
- function PartitionProductDtoFromJSON(json) {
31648
- return PartitionProductDtoFromJSONTyped(json, false);
32021
+ function PartitionProductDtoFromJSON(json2) {
32022
+ return PartitionProductDtoFromJSONTyped(json2, false);
31649
32023
  }
31650
- function PartitionProductDtoFromJSONTyped(json, ignoreDiscriminator) {
31651
- if (json == null) {
31652
- return json;
32024
+ function PartitionProductDtoFromJSONTyped(json2, ignoreDiscriminator) {
32025
+ if (json2 == null) {
32026
+ return json2;
31653
32027
  }
31654
32028
  return {
31655
- partitionIdentifier: json["partitionIdentifier"] == null ? undefined : json["partitionIdentifier"],
31656
- productName: json["productName"] == null ? undefined : json["productName"],
31657
- isGovernanceEnabled: json["isGovernanceEnabled"] == null ? undefined : json["isGovernanceEnabled"],
31658
- product: json["product"] == null ? undefined : ProductDtoFromJSON(json["product"])
32029
+ partitionIdentifier: json2["partitionIdentifier"] == null ? undefined : json2["partitionIdentifier"],
32030
+ productName: json2["productName"] == null ? undefined : json2["productName"],
32031
+ isGovernanceEnabled: json2["isGovernanceEnabled"] == null ? undefined : json2["isGovernanceEnabled"],
32032
+ product: json2["product"] == null ? undefined : ProductDtoFromJSON(json2["product"])
31659
32033
  };
31660
32034
  }
31661
32035
 
31662
32036
  // ../aops-policy-sdk/generated/src/models/PolicyDtoPagedResult.ts
31663
- function PolicyDtoPagedResultFromJSON(json) {
31664
- return PolicyDtoPagedResultFromJSONTyped(json, false);
32037
+ function PolicyDtoPagedResultFromJSON(json2) {
32038
+ return PolicyDtoPagedResultFromJSONTyped(json2, false);
31665
32039
  }
31666
- function PolicyDtoPagedResultFromJSONTyped(json, ignoreDiscriminator) {
31667
- if (json == null) {
31668
- return json;
32040
+ function PolicyDtoPagedResultFromJSONTyped(json2, ignoreDiscriminator) {
32041
+ if (json2 == null) {
32042
+ return json2;
31669
32043
  }
31670
32044
  return {
31671
- totalCount: json["totalCount"] == null ? undefined : json["totalCount"],
31672
- result: json["result"] == null ? undefined : json["result"].map(PolicyDtoFromJSON)
32045
+ totalCount: json2["totalCount"] == null ? undefined : json2["totalCount"],
32046
+ result: json2["result"] == null ? undefined : json2["result"].map(PolicyDtoFromJSON)
31673
32047
  };
31674
32048
  }
31675
32049
 
31676
32050
  // ../aops-policy-sdk/generated/src/models/PolicyExportResponse.ts
31677
- function PolicyExportResponseFromJSON(json) {
31678
- return PolicyExportResponseFromJSONTyped(json, false);
32051
+ function PolicyExportResponseFromJSON(json2) {
32052
+ return PolicyExportResponseFromJSONTyped(json2, false);
31679
32053
  }
31680
- function PolicyExportResponseFromJSONTyped(json, ignoreDiscriminator) {
31681
- if (json == null) {
31682
- return json;
32054
+ function PolicyExportResponseFromJSONTyped(json2, ignoreDiscriminator) {
32055
+ if (json2 == null) {
32056
+ return json2;
31683
32057
  }
31684
32058
  return {
31685
- identifier: json["identifier"] == null ? undefined : json["identifier"],
31686
- name: json["name"] == null ? undefined : json["name"],
31687
- availability: json["availability"] == null ? undefined : json["availability"],
31688
- data: json["data"] == null ? undefined : json["data"],
31689
- priority: json["priority"] == null ? undefined : json["priority"],
31690
- deploymentLevel: json["deploymentLevel"] == null ? undefined : DeploymentLevelFromJSON(json["deploymentLevel"])
32059
+ identifier: json2["identifier"] == null ? undefined : json2["identifier"],
32060
+ name: json2["name"] == null ? undefined : json2["name"],
32061
+ availability: json2["availability"] == null ? undefined : json2["availability"],
32062
+ data: json2["data"] == null ? undefined : json2["data"],
32063
+ priority: json2["priority"] == null ? undefined : json2["priority"],
32064
+ deploymentLevel: json2["deploymentLevel"] == null ? undefined : DeploymentLevelFromJSON(json2["deploymentLevel"])
31691
32065
  };
31692
32066
  }
31693
32067
 
31694
32068
  // ../aops-policy-sdk/generated/src/models/PolicyInfoDto.ts
31695
- function PolicyInfoDtoFromJSON(json) {
31696
- return PolicyInfoDtoFromJSONTyped(json, false);
32069
+ function PolicyInfoDtoFromJSON(json2) {
32070
+ return PolicyInfoDtoFromJSONTyped(json2, false);
31697
32071
  }
31698
- function PolicyInfoDtoFromJSONTyped(json, ignoreDiscriminator) {
31699
- if (json == null) {
31700
- return json;
32072
+ function PolicyInfoDtoFromJSONTyped(json2, ignoreDiscriminator) {
32073
+ if (json2 == null) {
32074
+ return json2;
31701
32075
  }
31702
32076
  return {
31703
- name: json["name"] == null ? undefined : json["name"],
31704
- identifier: json["identifier"] == null ? undefined : json["identifier"],
31705
- product: json["product"] == null ? undefined : json["product"]
32077
+ name: json2["name"] == null ? undefined : json2["name"],
32078
+ identifier: json2["identifier"] == null ? undefined : json2["identifier"],
32079
+ product: json2["product"] == null ? undefined : json2["product"]
31706
32080
  };
31707
32081
  }
31708
32082
 
31709
32083
  // ../aops-policy-sdk/generated/src/models/PolicyUsageData.ts
31710
- function PolicyUsageDataFromJSON(json) {
31711
- return PolicyUsageDataFromJSONTyped(json, false);
32084
+ function PolicyUsageDataFromJSON(json2) {
32085
+ return PolicyUsageDataFromJSONTyped(json2, false);
31712
32086
  }
31713
- function PolicyUsageDataFromJSONTyped(json, ignoreDiscriminator) {
31714
- if (json == null) {
31715
- return json;
32087
+ function PolicyUsageDataFromJSONTyped(json2, ignoreDiscriminator) {
32088
+ if (json2 == null) {
32089
+ return json2;
31716
32090
  }
31717
32091
  return {
31718
- tenants: json["tenants"] == null ? undefined : json["tenants"],
31719
- users: json["users"] == null ? undefined : json["users"],
31720
- groups: json["groups"] == null ? undefined : json["groups"]
32092
+ tenants: json2["tenants"] == null ? undefined : json2["tenants"],
32093
+ users: json2["users"] == null ? undefined : json2["users"],
32094
+ groups: json2["groups"] == null ? undefined : json2["groups"]
31721
32095
  };
31722
32096
  }
31723
32097
 
31724
32098
  // ../aops-policy-sdk/generated/src/models/TenantDto.ts
31725
- function TenantDtoFromJSON(json) {
31726
- return TenantDtoFromJSONTyped(json, false);
32099
+ function TenantDtoFromJSON(json2) {
32100
+ return TenantDtoFromJSONTyped(json2, false);
31727
32101
  }
31728
- function TenantDtoFromJSONTyped(json, ignoreDiscriminator) {
31729
- if (json == null) {
31730
- return json;
32102
+ function TenantDtoFromJSONTyped(json2, ignoreDiscriminator) {
32103
+ if (json2 == null) {
32104
+ return json2;
31731
32105
  }
31732
32106
  return {
31733
- name: json["name"] == null ? undefined : json["name"],
31734
- identifier: json["identifier"] == null ? undefined : json["identifier"],
31735
- url: json["url"] == null ? undefined : json["url"],
31736
- status: json["status"] == null ? undefined : json["status"],
31737
- tenantPolicies: json["tenantPolicies"] == null ? undefined : json["tenantPolicies"].map(TenantPolicyDtoFromJSON)
32107
+ name: json2["name"] == null ? undefined : json2["name"],
32108
+ identifier: json2["identifier"] == null ? undefined : json2["identifier"],
32109
+ url: json2["url"] == null ? undefined : json2["url"],
32110
+ status: json2["status"] == null ? undefined : json2["status"],
32111
+ tenantPolicies: json2["tenantPolicies"] == null ? undefined : json2["tenantPolicies"].map(TenantPolicyDtoFromJSON)
31738
32112
  };
31739
32113
  }
31740
32114
 
31741
32115
  // ../aops-policy-sdk/generated/src/models/TenantDtoPagedResult.ts
31742
- function TenantDtoPagedResultFromJSON(json) {
31743
- return TenantDtoPagedResultFromJSONTyped(json, false);
32116
+ function TenantDtoPagedResultFromJSON(json2) {
32117
+ return TenantDtoPagedResultFromJSONTyped(json2, false);
31744
32118
  }
31745
- function TenantDtoPagedResultFromJSONTyped(json, ignoreDiscriminator) {
31746
- if (json == null) {
31747
- return json;
32119
+ function TenantDtoPagedResultFromJSONTyped(json2, ignoreDiscriminator) {
32120
+ if (json2 == null) {
32121
+ return json2;
31748
32122
  }
31749
32123
  return {
31750
- totalCount: json["totalCount"] == null ? undefined : json["totalCount"],
31751
- result: json["result"] == null ? undefined : json["result"].map(TenantDtoFromJSON)
32124
+ totalCount: json2["totalCount"] == null ? undefined : json2["totalCount"],
32125
+ result: json2["result"] == null ? undefined : json2["result"].map(TenantDtoFromJSON)
31752
32126
  };
31753
32127
  }
31754
32128
 
31755
32129
  // ../aops-policy-sdk/generated/src/models/UpdateFormTemplateRequest.ts
31756
- function UpdateFormTemplateRequestToJSON(json) {
31757
- return UpdateFormTemplateRequestToJSONTyped(json, false);
32130
+ function UpdateFormTemplateRequestToJSON(json2) {
32131
+ return UpdateFormTemplateRequestToJSONTyped(json2, false);
31758
32132
  }
31759
32133
  function UpdateFormTemplateRequestToJSONTyped(value, ignoreDiscriminator = false) {
31760
32134
  if (value == null) {
@@ -31769,8 +32143,8 @@ function UpdateFormTemplateRequestToJSONTyped(value, ignoreDiscriminator = false
31769
32143
  }
31770
32144
 
31771
32145
  // ../aops-policy-sdk/generated/src/models/UpdateLicenseTypeRequest.ts
31772
- function UpdateLicenseTypeRequestToJSON(json) {
31773
- return UpdateLicenseTypeRequestToJSONTyped(json, false);
32146
+ function UpdateLicenseTypeRequestToJSON(json2) {
32147
+ return UpdateLicenseTypeRequestToJSONTyped(json2, false);
31774
32148
  }
31775
32149
  function UpdateLicenseTypeRequestToJSONTyped(value, ignoreDiscriminator = false) {
31776
32150
  if (value == null) {
@@ -31783,8 +32157,8 @@ function UpdateLicenseTypeRequestToJSONTyped(value, ignoreDiscriminator = false)
31783
32157
  }
31784
32158
 
31785
32159
  // ../aops-policy-sdk/generated/src/models/UpdatePolicyRequest.ts
31786
- function UpdatePolicyRequestToJSON(json) {
31787
- return UpdatePolicyRequestToJSONTyped(json, false);
32160
+ function UpdatePolicyRequestToJSON(json2) {
32161
+ return UpdatePolicyRequestToJSONTyped(json2, false);
31788
32162
  }
31789
32163
  function UpdatePolicyRequestToJSONTyped(value, ignoreDiscriminator = false) {
31790
32164
  if (value == null) {
@@ -31802,25 +32176,25 @@ function UpdatePolicyRequestToJSONTyped(value, ignoreDiscriminator = false) {
31802
32176
  }
31803
32177
 
31804
32178
  // ../aops-policy-sdk/generated/src/models/UserDto.ts
31805
- function UserDtoFromJSON(json) {
31806
- return UserDtoFromJSONTyped(json, false);
32179
+ function UserDtoFromJSON(json2) {
32180
+ return UserDtoFromJSONTyped(json2, false);
31807
32181
  }
31808
- function UserDtoFromJSONTyped(json, ignoreDiscriminator) {
31809
- if (json == null) {
31810
- return json;
32182
+ function UserDtoFromJSONTyped(json2, ignoreDiscriminator) {
32183
+ if (json2 == null) {
32184
+ return json2;
31811
32185
  }
31812
32186
  return {
31813
- source: json["source"] == null ? undefined : json["source"],
31814
- identifier: json["identifier"] == null ? undefined : json["identifier"],
31815
- name: json["name"] == null ? undefined : json["name"],
31816
- email: json["email"] == null ? undefined : json["email"],
31817
- userPolicies: json["userPolicies"] == null ? undefined : json["userPolicies"].map(UserPolicyDtoFromJSON),
31818
- lastModified: json["lastModified"] == null ? undefined : new Date(json["lastModified"]),
31819
- isActive: json["isActive"] == null ? undefined : json["isActive"]
32187
+ source: json2["source"] == null ? undefined : json2["source"],
32188
+ identifier: json2["identifier"] == null ? undefined : json2["identifier"],
32189
+ name: json2["name"] == null ? undefined : json2["name"],
32190
+ email: json2["email"] == null ? undefined : json2["email"],
32191
+ userPolicies: json2["userPolicies"] == null ? undefined : json2["userPolicies"].map(UserPolicyDtoFromJSON),
32192
+ lastModified: json2["lastModified"] == null ? undefined : new Date(json2["lastModified"]),
32193
+ isActive: json2["isActive"] == null ? undefined : json2["isActive"]
31820
32194
  };
31821
32195
  }
31822
- function UserDtoToJSON(json) {
31823
- return UserDtoToJSONTyped(json, false);
32196
+ function UserDtoToJSON(json2) {
32197
+ return UserDtoToJSONTyped(json2, false);
31824
32198
  }
31825
32199
  function UserDtoToJSONTyped(value, ignoreDiscriminator = false) {
31826
32200
  if (value == null) {
@@ -31838,22 +32212,22 @@ function UserDtoToJSONTyped(value, ignoreDiscriminator = false) {
31838
32212
  }
31839
32213
 
31840
32214
  // ../aops-policy-sdk/generated/src/models/UserDtoPagedResult.ts
31841
- function UserDtoPagedResultFromJSON(json) {
31842
- return UserDtoPagedResultFromJSONTyped(json, false);
32215
+ function UserDtoPagedResultFromJSON(json2) {
32216
+ return UserDtoPagedResultFromJSONTyped(json2, false);
31843
32217
  }
31844
- function UserDtoPagedResultFromJSONTyped(json, ignoreDiscriminator) {
31845
- if (json == null) {
31846
- return json;
32218
+ function UserDtoPagedResultFromJSONTyped(json2, ignoreDiscriminator) {
32219
+ if (json2 == null) {
32220
+ return json2;
31847
32221
  }
31848
32222
  return {
31849
- totalCount: json["totalCount"] == null ? undefined : json["totalCount"],
31850
- result: json["result"] == null ? undefined : json["result"].map(UserDtoFromJSON)
32223
+ totalCount: json2["totalCount"] == null ? undefined : json2["totalCount"],
32224
+ result: json2["result"] == null ? undefined : json2["result"].map(UserDtoFromJSON)
31851
32225
  };
31852
32226
  }
31853
32227
 
31854
32228
  // ../aops-policy-sdk/generated/src/models/UserToAddDto.ts
31855
- function UserToAddDtoToJSON(json) {
31856
- return UserToAddDtoToJSONTyped(json, false);
32229
+ function UserToAddDtoToJSON(json2) {
32230
+ return UserToAddDtoToJSONTyped(json2, false);
31857
32231
  }
31858
32232
  function UserToAddDtoToJSONTyped(value, ignoreDiscriminator = false) {
31859
32233
  if (value == null) {
@@ -37032,12 +37406,12 @@ var LEAF_TYPES = new Set([
37032
37406
  "datetime",
37033
37407
  "editgrid"
37034
37408
  ]);
37035
- function leafDefault(type) {
37036
- if (type === "checkbox")
37409
+ function leafDefault(type2) {
37410
+ if (type2 === "checkbox")
37037
37411
  return false;
37038
- if (type === "editgrid")
37412
+ if (type2 === "editgrid")
37039
37413
  return [];
37040
- if (type === "selectboxes")
37414
+ if (type2 === "selectboxes")
37041
37415
  return {};
37042
37416
  return null;
37043
37417
  }
@@ -37050,11 +37424,11 @@ function toRecord(value) {
37050
37424
  function buildFormDataInner(components, data, result) {
37051
37425
  for (const raw of components) {
37052
37426
  const c = raw;
37053
- const type = String(c.type ?? "");
37427
+ const type2 = String(c.type ?? "");
37054
37428
  const key = String(c.key ?? "");
37055
- if (DISPLAY_ONLY_TYPES.has(type))
37429
+ if (DISPLAY_ONLY_TYPES.has(type2))
37056
37430
  continue;
37057
- if (type === "columns") {
37431
+ if (type2 === "columns") {
37058
37432
  for (const col of c.columns ?? []) {
37059
37433
  const colComps = col.components;
37060
37434
  if (Array.isArray(colComps)) {
@@ -37063,7 +37437,7 @@ function buildFormDataInner(components, data, result) {
37063
37437
  }
37064
37438
  continue;
37065
37439
  }
37066
- if (type === "container" && key) {
37440
+ if (type2 === "container" && key) {
37067
37441
  const containerResult = {};
37068
37442
  if (Array.isArray(c.components)) {
37069
37443
  buildFormDataInner(c.components, toRecord(data[key]), containerResult);
@@ -37071,7 +37445,7 @@ function buildFormDataInner(components, data, result) {
37071
37445
  result[key] = containerResult;
37072
37446
  continue;
37073
37447
  }
37074
- if (Array.isArray(c.components) && !LEAF_TYPES.has(type)) {
37448
+ if (Array.isArray(c.components) && !LEAF_TYPES.has(type2)) {
37075
37449
  buildFormDataInner(c.components, data, result);
37076
37450
  continue;
37077
37451
  }
@@ -37082,7 +37456,7 @@ function buildFormDataInner(components, data, result) {
37082
37456
  result[key] = value;
37083
37457
  continue;
37084
37458
  }
37085
- result[key] = leafDefault(type);
37459
+ result[key] = leafDefault(type2);
37086
37460
  }
37087
37461
  }
37088
37462
  function buildFormData(components, rawData) {
@@ -37100,10 +37474,10 @@ function resolveLocale(key, locale, productPrefix) {
37100
37474
  function buildAnnotatedFormData(components, formData, locale, productPrefix, result = {}) {
37101
37475
  for (const raw of components) {
37102
37476
  const c = raw;
37103
- const type = String(c.type ?? "");
37104
- if (DISPLAY_ONLY_TYPES.has(type))
37477
+ const type2 = String(c.type ?? "");
37478
+ if (DISPLAY_ONLY_TYPES.has(type2))
37105
37479
  continue;
37106
- if (type === "columns") {
37480
+ if (type2 === "columns") {
37107
37481
  for (const col of c.columns ?? []) {
37108
37482
  const colComponents = col.components;
37109
37483
  if (Array.isArray(colComponents)) {
@@ -37113,7 +37487,7 @@ function buildAnnotatedFormData(components, formData, locale, productPrefix, res
37113
37487
  continue;
37114
37488
  }
37115
37489
  const key = String(c.key ?? "");
37116
- if (type === "container" && key) {
37490
+ if (type2 === "container" && key) {
37117
37491
  const nested = formData[key];
37118
37492
  const nestedData = nested !== null && nested !== undefined && typeof nested === "object" && !Array.isArray(nested) ? nested : {};
37119
37493
  if (Array.isArray(c.components)) {
@@ -37121,7 +37495,7 @@ function buildAnnotatedFormData(components, formData, locale, productPrefix, res
37121
37495
  }
37122
37496
  continue;
37123
37497
  }
37124
- if (Array.isArray(c.components) && !LEAF_TYPES.has(type)) {
37498
+ if (Array.isArray(c.components) && !LEAF_TYPES.has(type2)) {
37125
37499
  buildAnnotatedFormData(c.components, formData, locale, productPrefix, result);
37126
37500
  continue;
37127
37501
  }
@@ -37130,7 +37504,7 @@ function buildAnnotatedFormData(components, formData, locale, productPrefix, res
37130
37504
  const label = resolveLocale(c.label, locale, productPrefix) ?? key;
37131
37505
  const description = resolveLocale(c.description, locale, productPrefix);
37132
37506
  const tooltip = resolveLocale(c.tooltip, locale, productPrefix);
37133
- const field = { value: formData[key], type, label };
37507
+ const field = { value: formData[key], type: type2, label };
37134
37508
  if (description !== undefined)
37135
37509
  field.description = description;
37136
37510
  if (tooltip !== undefined)
@@ -37775,17 +38149,17 @@ import { existsSync as existsSync2 } from "node:fs";
37775
38149
  import * as fs62 from "node:fs/promises";
37776
38150
  import * as os22 from "node:os";
37777
38151
  import * as path22 from "node:path";
37778
- var __create3 = Object.create;
37779
- var __getProtoOf3 = Object.getPrototypeOf;
37780
- var __defProp3 = Object.defineProperty;
37781
- var __getOwnPropNames3 = Object.getOwnPropertyNames;
37782
- var __hasOwnProp3 = Object.prototype.hasOwnProperty;
38152
+ var __create2 = Object.create;
38153
+ var __getProtoOf2 = Object.getPrototypeOf;
38154
+ var __defProp2 = Object.defineProperty;
38155
+ var __getOwnPropNames2 = Object.getOwnPropertyNames;
38156
+ var __hasOwnProp2 = Object.prototype.hasOwnProperty;
37783
38157
  function __accessProp2(key) {
37784
38158
  return this[key];
37785
38159
  }
37786
38160
  var __toESMCache_node2;
37787
38161
  var __toESMCache_esm2;
37788
- var __toESM3 = (mod2, isNodeMode, target) => {
38162
+ var __toESM2 = (mod2, isNodeMode, target) => {
37789
38163
  var canCache = mod2 != null && typeof mod2 === "object";
37790
38164
  if (canCache) {
37791
38165
  var cache = isNodeMode ? __toESMCache_node2 ??= new WeakMap : __toESMCache_esm2 ??= new WeakMap;
@@ -37793,11 +38167,11 @@ var __toESM3 = (mod2, isNodeMode, target) => {
37793
38167
  if (cached)
37794
38168
  return cached;
37795
38169
  }
37796
- target = mod2 != null ? __create3(__getProtoOf3(mod2)) : {};
37797
- const to = isNodeMode || !mod2 || !mod2.__esModule ? __defProp3(target, "default", { value: mod2, enumerable: true }) : target;
37798
- for (let key of __getOwnPropNames3(mod2))
37799
- if (!__hasOwnProp3.call(to, key))
37800
- __defProp3(to, key, {
38170
+ target = mod2 != null ? __create2(__getProtoOf2(mod2)) : {};
38171
+ const to = isNodeMode || !mod2 || !mod2.__esModule ? __defProp2(target, "default", { value: mod2, enumerable: true }) : target;
38172
+ for (let key of __getOwnPropNames2(mod2))
38173
+ if (!__hasOwnProp2.call(to, key))
38174
+ __defProp2(to, key, {
37801
38175
  get: __accessProp2.bind(mod2, key),
37802
38176
  enumerable: true
37803
38177
  });
@@ -38154,11 +38528,11 @@ var init_is_in_ssh2 = __esm2(() => {
38154
38528
  isInSsh2 = Boolean(process72.env.SSH_CONNECTION || process72.env.SSH_CLIENT || process72.env.SSH_TTY);
38155
38529
  is_in_ssh_default2 = isInSsh2;
38156
38530
  });
38157
- function detectArchBinary2(binary) {
38158
- if (typeof binary === "string" || Array.isArray(binary)) {
38159
- return binary;
38531
+ function detectArchBinary2(binary2) {
38532
+ if (typeof binary2 === "string" || Array.isArray(binary2)) {
38533
+ return binary2;
38160
38534
  }
38161
- const { [arch2]: archBinary } = binary;
38535
+ const { [arch2]: archBinary } = binary2;
38162
38536
  if (!archBinary) {
38163
38537
  throw new Error(`${arch2} is not supported`);
38164
38538
  }
@@ -51709,7 +52083,7 @@ var require_TimeoutError2 = __commonJS2((exports) => {
51709
52083
  }();
51710
52084
  exports.TimeoutError = TimeoutErrorImpl;
51711
52085
  });
51712
- var require_map3 = __commonJS2((exports) => {
52086
+ var require_map2 = __commonJS2((exports) => {
51713
52087
  var __extends = exports && exports.__extends || function() {
51714
52088
  var extendStatics = function(d, b) {
51715
52089
  extendStatics = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(d2, b2) {
@@ -51731,7 +52105,7 @@ var require_map3 = __commonJS2((exports) => {
51731
52105
  }();
51732
52106
  Object.defineProperty(exports, "__esModule", { value: true });
51733
52107
  var Subscriber_1 = require_Subscriber2();
51734
- function map(project, thisArg) {
52108
+ function map2(project, thisArg) {
51735
52109
  return function mapOperation(source) {
51736
52110
  if (typeof project !== "function") {
51737
52111
  throw new TypeError("argument is not a function. Are you looking for `mapTo()`?");
@@ -51739,7 +52113,7 @@ var require_map3 = __commonJS2((exports) => {
51739
52113
  return source.lift(new MapOperator(project, thisArg));
51740
52114
  };
51741
52115
  }
51742
- exports.map = map;
52116
+ exports.map = map2;
51743
52117
  var MapOperator = function() {
51744
52118
  function MapOperator2(project, thisArg) {
51745
52119
  this.project = project;
@@ -51777,7 +52151,7 @@ var require_bindCallback2 = __commonJS2((exports) => {
51777
52151
  Object.defineProperty(exports, "__esModule", { value: true });
51778
52152
  var Observable_1 = require_Observable2();
51779
52153
  var AsyncSubject_1 = require_AsyncSubject2();
51780
- var map_1 = require_map3();
52154
+ var map_1 = require_map2();
51781
52155
  var canReportError_1 = require_canReportError2();
51782
52156
  var isArray_1 = require_isArray2();
51783
52157
  var isScheduler_1 = require_isScheduler2();
@@ -51879,7 +52253,7 @@ var require_bindNodeCallback2 = __commonJS2((exports) => {
51879
52253
  Object.defineProperty(exports, "__esModule", { value: true });
51880
52254
  var Observable_1 = require_Observable2();
51881
52255
  var AsyncSubject_1 = require_AsyncSubject2();
51882
- var map_1 = require_map3();
52256
+ var map_1 = require_map2();
51883
52257
  var canReportError_1 = require_canReportError2();
51884
52258
  var isScheduler_1 = require_isScheduler2();
51885
52259
  var isArray_1 = require_isArray2();
@@ -52629,7 +53003,7 @@ var require_mergeMap2 = __commonJS2((exports) => {
52629
53003
  };
52630
53004
  }();
52631
53005
  Object.defineProperty(exports, "__esModule", { value: true });
52632
- var map_1 = require_map3();
53006
+ var map_1 = require_map2();
52633
53007
  var from_1 = require_from2();
52634
53008
  var innerSubscribe_1 = require_innerSubscribe2();
52635
53009
  function mergeMap(project, resultSelector, concurrent) {
@@ -52790,7 +53164,7 @@ var require_forkJoin2 = __commonJS2((exports) => {
52790
53164
  Object.defineProperty(exports, "__esModule", { value: true });
52791
53165
  var Observable_1 = require_Observable2();
52792
53166
  var isArray_1 = require_isArray2();
52793
- var map_1 = require_map3();
53167
+ var map_1 = require_map2();
52794
53168
  var isObject_1 = require_isObject2();
52795
53169
  var from_1 = require_from2();
52796
53170
  function forkJoin() {
@@ -52868,7 +53242,7 @@ var require_fromEvent2 = __commonJS2((exports) => {
52868
53242
  var Observable_1 = require_Observable2();
52869
53243
  var isArray_1 = require_isArray2();
52870
53244
  var isFunction_1 = require_isFunction2();
52871
- var map_1 = require_map3();
53245
+ var map_1 = require_map2();
52872
53246
  var toString = function() {
52873
53247
  return Object.prototype.toString;
52874
53248
  }();
@@ -52938,7 +53312,7 @@ var require_fromEventPattern2 = __commonJS2((exports) => {
52938
53312
  var Observable_1 = require_Observable2();
52939
53313
  var isArray_1 = require_isArray2();
52940
53314
  var isFunction_1 = require_isFunction2();
52941
- var map_1 = require_map3();
53315
+ var map_1 = require_map2();
52942
53316
  function fromEventPattern(addHandler, removeHandler, resultSelector) {
52943
53317
  if (resultSelector) {
52944
53318
  return fromEventPattern(addHandler, removeHandler).pipe(map_1.map(function(args) {
@@ -53143,13 +53517,13 @@ var require_interval2 = __commonJS2((exports) => {
53143
53517
  this.schedule({ subscriber, counter: counter + 1, period }, period);
53144
53518
  }
53145
53519
  });
53146
- var require_merge3 = __commonJS2((exports) => {
53520
+ var require_merge2 = __commonJS2((exports) => {
53147
53521
  Object.defineProperty(exports, "__esModule", { value: true });
53148
53522
  var Observable_1 = require_Observable2();
53149
53523
  var isScheduler_1 = require_isScheduler2();
53150
53524
  var mergeAll_1 = require_mergeAll2();
53151
53525
  var fromArray_1 = require_fromArray2();
53152
- function merge() {
53526
+ function merge2() {
53153
53527
  var observables = [];
53154
53528
  for (var _i = 0;_i < arguments.length; _i++) {
53155
53529
  observables[_i] = arguments[_i];
@@ -53170,7 +53544,7 @@ var require_merge3 = __commonJS2((exports) => {
53170
53544
  }
53171
53545
  return mergeAll_1.mergeAll(concurrent)(fromArray_1.fromArray(observables, scheduler));
53172
53546
  }
53173
- exports.merge = merge;
53547
+ exports.merge = merge2;
53174
53548
  });
53175
53549
  var require_never2 = __commonJS2((exports) => {
53176
53550
  Object.defineProperty(exports, "__esModule", { value: true });
@@ -53215,11 +53589,11 @@ var require_onErrorResumeNext2 = __commonJS2((exports) => {
53215
53589
  }
53216
53590
  exports.onErrorResumeNext = onErrorResumeNext;
53217
53591
  });
53218
- var require_pairs3 = __commonJS2((exports) => {
53592
+ var require_pairs2 = __commonJS2((exports) => {
53219
53593
  Object.defineProperty(exports, "__esModule", { value: true });
53220
53594
  var Observable_1 = require_Observable2();
53221
53595
  var Subscription_1 = require_Subscription2();
53222
- function pairs(obj, scheduler) {
53596
+ function pairs2(obj, scheduler) {
53223
53597
  if (!scheduler) {
53224
53598
  return new Observable_1.Observable(function(subscriber) {
53225
53599
  var keys = Object.keys(obj);
@@ -53240,7 +53614,7 @@ var require_pairs3 = __commonJS2((exports) => {
53240
53614
  });
53241
53615
  }
53242
53616
  }
53243
- exports.pairs = pairs;
53617
+ exports.pairs = pairs2;
53244
53618
  function dispatch(state) {
53245
53619
  var { keys, index, subscriber, subscription, obj } = state;
53246
53620
  if (!subscriber.closed) {
@@ -53881,7 +54255,7 @@ var require_rxjs2 = __commonJS2((exports) => {
53881
54255
  exports.iif = iif_1.iif;
53882
54256
  var interval_1 = require_interval2();
53883
54257
  exports.interval = interval_1.interval;
53884
- var merge_1 = require_merge3();
54258
+ var merge_1 = require_merge2();
53885
54259
  exports.merge = merge_1.merge;
53886
54260
  var never_1 = require_never2();
53887
54261
  exports.never = never_1.never;
@@ -53889,7 +54263,7 @@ var require_rxjs2 = __commonJS2((exports) => {
53889
54263
  exports.of = of_1.of;
53890
54264
  var onErrorResumeNext_1 = require_onErrorResumeNext2();
53891
54265
  exports.onErrorResumeNext = onErrorResumeNext_1.onErrorResumeNext;
53892
- var pairs_1 = require_pairs3();
54266
+ var pairs_1 = require_pairs2();
53893
54267
  exports.pairs = pairs_1.pairs;
53894
54268
  var partition_1 = require_partition2();
53895
54269
  exports.partition = partition_1.partition;
@@ -56874,262 +57248,262 @@ var package_default4 = {
56874
57248
  };
56875
57249
  var SDK_USER_AGENT3 = getSdkUserAgentToken2(package_default4);
56876
57250
  installSdkUserAgentHeader2(BaseAPI3, SDK_USER_AGENT3);
56877
- function ControlEntryFromJSON(json) {
56878
- return ControlEntryFromJSONTyped(json, false);
57251
+ function ControlEntryFromJSON(json2) {
57252
+ return ControlEntryFromJSONTyped(json2, false);
56879
57253
  }
56880
- function ControlEntryFromJSONTyped(json, ignoreDiscriminator) {
56881
- if (json == null) {
56882
- return json;
57254
+ function ControlEntryFromJSONTyped(json2, ignoreDiscriminator) {
57255
+ if (json2 == null) {
57256
+ return json2;
56883
57257
  }
56884
57258
  return {
56885
- displayName: json["displayName"],
56886
- description: json["description"],
56887
- recommendedSetting: json["recommendedSetting"],
56888
- configLocation: json["configLocation"],
56889
- impact: json["impact"],
56890
- contributionKeys: json["contributionKeys"]
57259
+ displayName: json2["displayName"],
57260
+ description: json2["description"],
57261
+ recommendedSetting: json2["recommendedSetting"],
57262
+ configLocation: json2["configLocation"],
57263
+ impact: json2["impact"],
57264
+ contributionKeys: json2["contributionKeys"]
56891
57265
  };
56892
57266
  }
56893
- function ControlPredicateEqFromJSON(json) {
56894
- return ControlPredicateEqFromJSONTyped(json, false);
57267
+ function ControlPredicateEqFromJSON(json2) {
57268
+ return ControlPredicateEqFromJSONTyped(json2, false);
56895
57269
  }
56896
- function ControlPredicateEqFromJSONTyped(json, ignoreDiscriminator) {
56897
- return json;
57270
+ function ControlPredicateEqFromJSONTyped(json2, ignoreDiscriminator) {
57271
+ return json2;
56898
57272
  }
56899
- function ControlPredicateFromJSON(json) {
56900
- return ControlPredicateFromJSONTyped(json, false);
57273
+ function ControlPredicateFromJSON(json2) {
57274
+ return ControlPredicateFromJSONTyped(json2, false);
56901
57275
  }
56902
- function ControlPredicateFromJSONTyped(json, ignoreDiscriminator) {
56903
- if (json == null) {
56904
- return json;
57276
+ function ControlPredicateFromJSONTyped(json2, ignoreDiscriminator) {
57277
+ if (json2 == null) {
57278
+ return json2;
56905
57279
  }
56906
57280
  return {
56907
- eq: json["eq"] == null ? undefined : ControlPredicateEqFromJSON(json["eq"]),
56908
- gte: json["gte"] == null ? undefined : json["gte"],
56909
- lte: json["lte"] == null ? undefined : json["lte"],
56910
- contains: json["contains"] == null ? undefined : json["contains"]
57281
+ eq: json2["eq"] == null ? undefined : ControlPredicateEqFromJSON(json2["eq"]),
57282
+ gte: json2["gte"] == null ? undefined : json2["gte"],
57283
+ lte: json2["lte"] == null ? undefined : json2["lte"],
57284
+ contains: json2["contains"] == null ? undefined : json2["contains"]
56911
57285
  };
56912
57286
  }
56913
- function ContributionFromJSON(json) {
56914
- return ContributionFromJSONTyped(json, false);
57287
+ function ContributionFromJSON(json2) {
57288
+ return ContributionFromJSONTyped(json2, false);
56915
57289
  }
56916
- function ContributionFromJSONTyped(json, ignoreDiscriminator) {
56917
- if (json == null) {
56918
- return json;
57290
+ function ContributionFromJSONTyped(json2, ignoreDiscriminator) {
57291
+ if (json2 == null) {
57292
+ return json2;
56919
57293
  }
56920
57294
  return {
56921
- key: json["key"],
56922
- required: json["required"] == null ? undefined : ControlPredicateFromJSON(json["required"])
57295
+ key: json2["key"],
57296
+ required: json2["required"] == null ? undefined : ControlPredicateFromJSON(json2["required"])
56923
57297
  };
56924
57298
  }
56925
- function EditorialPolicyFromJSON(json) {
56926
- return EditorialPolicyFromJSONTyped(json, false);
57299
+ function EditorialPolicyFromJSON(json2) {
57300
+ return EditorialPolicyFromJSONTyped(json2, false);
56927
57301
  }
56928
- function EditorialPolicyFromJSONTyped(json, ignoreDiscriminator) {
56929
- if (json == null) {
56930
- return json;
57302
+ function EditorialPolicyFromJSONTyped(json2, ignoreDiscriminator) {
57303
+ if (json2 == null) {
57304
+ return json2;
56931
57305
  }
56932
57306
  return {
56933
- displayName: json["displayName"],
56934
- productIdentifier: json["productIdentifier"],
56935
- productDisplayName: json["productDisplayName"],
56936
- deploymentPolicyFile: json["deploymentPolicyFile"],
56937
- controlCount: json["controlCount"],
56938
- highImpactCount: json["highImpactCount"],
56939
- controls: json["controls"].map(ControlEntryFromJSON),
56940
- contributions: json["contributions"].map(ContributionFromJSON),
56941
- alsoInClauseIds: json["alsoInClauseIds"]
57307
+ displayName: json2["displayName"],
57308
+ productIdentifier: json2["productIdentifier"],
57309
+ productDisplayName: json2["productDisplayName"],
57310
+ deploymentPolicyFile: json2["deploymentPolicyFile"],
57311
+ controlCount: json2["controlCount"],
57312
+ highImpactCount: json2["highImpactCount"],
57313
+ controls: json2["controls"].map(ControlEntryFromJSON),
57314
+ contributions: json2["contributions"].map(ContributionFromJSON),
57315
+ alsoInClauseIds: json2["alsoInClauseIds"]
56942
57316
  };
56943
57317
  }
56944
- function CatalogClauseFromJSON(json) {
56945
- return CatalogClauseFromJSONTyped(json, false);
57318
+ function CatalogClauseFromJSON(json2) {
57319
+ return CatalogClauseFromJSONTyped(json2, false);
56946
57320
  }
56947
- function CatalogClauseFromJSONTyped(json, ignoreDiscriminator) {
56948
- if (json == null) {
56949
- return json;
57321
+ function CatalogClauseFromJSONTyped(json2, ignoreDiscriminator) {
57322
+ if (json2 == null) {
57323
+ return json2;
56950
57324
  }
56951
57325
  return {
56952
- clauseId: json["clauseId"],
56953
- clauseName: json["clauseName"],
56954
- productCount: json["productCount"],
56955
- controlCount: json["controlCount"],
56956
- editorialPolicies: json["editorialPolicies"].map(EditorialPolicyFromJSON)
57326
+ clauseId: json2["clauseId"],
57327
+ clauseName: json2["clauseName"],
57328
+ productCount: json2["productCount"],
57329
+ controlCount: json2["controlCount"],
57330
+ editorialPolicies: json2["editorialPolicies"].map(EditorialPolicyFromJSON)
56957
57331
  };
56958
57332
  }
56959
- function PackSummaryCountsFromJSON(json) {
56960
- return PackSummaryCountsFromJSONTyped(json, false);
57333
+ function PackSummaryCountsFromJSON(json2) {
57334
+ return PackSummaryCountsFromJSONTyped(json2, false);
56961
57335
  }
56962
- function PackSummaryCountsFromJSONTyped(json, ignoreDiscriminator) {
56963
- if (json == null) {
56964
- return json;
57336
+ function PackSummaryCountsFromJSONTyped(json2, ignoreDiscriminator) {
57337
+ if (json2 == null) {
57338
+ return json2;
56965
57339
  }
56966
57340
  return {
56967
- clauseCount: json["clauseCount"],
56968
- controlCount: json["controlCount"],
56969
- deploymentPolicyCount: json["deploymentPolicyCount"]
57341
+ clauseCount: json2["clauseCount"],
57342
+ controlCount: json2["controlCount"],
57343
+ deploymentPolicyCount: json2["deploymentPolicyCount"]
56970
57344
  };
56971
57345
  }
56972
- function PackListEntryFromJSON(json) {
56973
- return PackListEntryFromJSONTyped(json, false);
57346
+ function PackListEntryFromJSON(json2) {
57347
+ return PackListEntryFromJSONTyped(json2, false);
56974
57348
  }
56975
- function PackListEntryFromJSONTyped(json, ignoreDiscriminator) {
56976
- if (json == null) {
56977
- return json;
57349
+ function PackListEntryFromJSONTyped(json2, ignoreDiscriminator) {
57350
+ if (json2 == null) {
57351
+ return json2;
56978
57352
  }
56979
57353
  return {
56980
- packId: json["packId"],
56981
- packName: json["packName"],
56982
- packLongName: json["packLongName"] == null ? undefined : json["packLongName"],
56983
- packVersion: json["packVersion"],
56984
- description: json["description"],
56985
- publishedAt: new Date(json["publishedAt"]),
56986
- summary: PackSummaryCountsFromJSON(json["summary"])
57354
+ packId: json2["packId"],
57355
+ packName: json2["packName"],
57356
+ packLongName: json2["packLongName"] == null ? undefined : json2["packLongName"],
57357
+ packVersion: json2["packVersion"],
57358
+ description: json2["description"],
57359
+ publishedAt: new Date(json2["publishedAt"]),
57360
+ summary: PackSummaryCountsFromJSON(json2["summary"])
56987
57361
  };
56988
57362
  }
56989
- function CatalogListResponseFromJSON(json) {
56990
- return CatalogListResponseFromJSONTyped(json, false);
57363
+ function CatalogListResponseFromJSON(json2) {
57364
+ return CatalogListResponseFromJSONTyped(json2, false);
56991
57365
  }
56992
- function CatalogListResponseFromJSONTyped(json, ignoreDiscriminator) {
56993
- if (json == null) {
56994
- return json;
57366
+ function CatalogListResponseFromJSONTyped(json2, ignoreDiscriminator) {
57367
+ if (json2 == null) {
57368
+ return json2;
56995
57369
  }
56996
57370
  return {
56997
- packs: json["packs"].map(PackListEntryFromJSON)
57371
+ packs: json2["packs"].map(PackListEntryFromJSON)
56998
57372
  };
56999
57373
  }
57000
- function ClauseCoverageFromJSON(json) {
57001
- return ClauseCoverageFromJSONTyped(json, false);
57374
+ function ClauseCoverageFromJSON(json2) {
57375
+ return ClauseCoverageFromJSONTyped(json2, false);
57002
57376
  }
57003
- function ClauseCoverageFromJSONTyped(json, ignoreDiscriminator) {
57004
- if (json == null) {
57005
- return json;
57377
+ function ClauseCoverageFromJSONTyped(json2, ignoreDiscriminator) {
57378
+ if (json2 == null) {
57379
+ return json2;
57006
57380
  }
57007
57381
  return {
57008
- clauseId: json["clauseId"],
57009
- status: json["status"]
57382
+ clauseId: json2["clauseId"],
57383
+ status: json2["status"]
57010
57384
  };
57011
57385
  }
57012
- function CoverageSummaryFromJSON(json) {
57013
- return CoverageSummaryFromJSONTyped(json, false);
57386
+ function CoverageSummaryFromJSON(json2) {
57387
+ return CoverageSummaryFromJSONTyped(json2, false);
57014
57388
  }
57015
- function CoverageSummaryFromJSONTyped(json, ignoreDiscriminator) {
57016
- if (json == null) {
57017
- return json;
57389
+ function CoverageSummaryFromJSONTyped(json2, ignoreDiscriminator) {
57390
+ if (json2 == null) {
57391
+ return json2;
57018
57392
  }
57019
57393
  return {
57020
- deploymentPolicyCount: json["deploymentPolicyCount"],
57021
- inPlaceCount: json["inPlaceCount"],
57022
- newCount: json["newCount"]
57394
+ deploymentPolicyCount: json2["deploymentPolicyCount"],
57395
+ inPlaceCount: json2["inPlaceCount"],
57396
+ newCount: json2["newCount"]
57023
57397
  };
57024
57398
  }
57025
- function DeploymentPolicyCoverageFromJSON(json) {
57026
- return DeploymentPolicyCoverageFromJSONTyped(json, false);
57399
+ function DeploymentPolicyCoverageFromJSON(json2) {
57400
+ return DeploymentPolicyCoverageFromJSONTyped(json2, false);
57027
57401
  }
57028
- function DeploymentPolicyCoverageFromJSONTyped(json, ignoreDiscriminator) {
57029
- if (json == null) {
57030
- return json;
57402
+ function DeploymentPolicyCoverageFromJSONTyped(json2, ignoreDiscriminator) {
57403
+ if (json2 == null) {
57404
+ return json2;
57031
57405
  }
57032
57406
  return {
57033
- productIdentifier: json["productIdentifier"],
57034
- status: json["status"]
57407
+ productIdentifier: json2["productIdentifier"],
57408
+ status: json2["status"]
57035
57409
  };
57036
57410
  }
57037
- function DeploymentPolicyEntryFromJSON(json) {
57038
- return DeploymentPolicyEntryFromJSONTyped(json, false);
57411
+ function DeploymentPolicyEntryFromJSON(json2) {
57412
+ return DeploymentPolicyEntryFromJSONTyped(json2, false);
57039
57413
  }
57040
- function DeploymentPolicyEntryFromJSONTyped(json, ignoreDiscriminator) {
57041
- if (json == null) {
57042
- return json;
57414
+ function DeploymentPolicyEntryFromJSONTyped(json2, ignoreDiscriminator) {
57415
+ if (json2 == null) {
57416
+ return json2;
57043
57417
  }
57044
57418
  return {
57045
- productIdentifier: json["productIdentifier"],
57046
- productDisplayName: json["productDisplayName"],
57047
- policyName: json["policyName"],
57048
- policyFile: json["policyFile"]
57419
+ productIdentifier: json2["productIdentifier"],
57420
+ productDisplayName: json2["productDisplayName"],
57421
+ policyName: json2["policyName"],
57422
+ policyFile: json2["policyFile"]
57049
57423
  };
57050
57424
  }
57051
- function PackCatalogDetailFromJSON(json) {
57052
- return PackCatalogDetailFromJSONTyped(json, false);
57425
+ function PackCatalogDetailFromJSON(json2) {
57426
+ return PackCatalogDetailFromJSONTyped(json2, false);
57053
57427
  }
57054
- function PackCatalogDetailFromJSONTyped(json, ignoreDiscriminator) {
57055
- if (json == null) {
57056
- return json;
57428
+ function PackCatalogDetailFromJSONTyped(json2, ignoreDiscriminator) {
57429
+ if (json2 == null) {
57430
+ return json2;
57057
57431
  }
57058
57432
  return {
57059
- packId: json["packId"],
57060
- packName: json["packName"],
57061
- packLongName: json["packLongName"],
57062
- packVersion: json["packVersion"],
57063
- description: json["description"],
57064
- publishedAt: new Date(json["publishedAt"]),
57065
- summary: PackSummaryCountsFromJSON(json["summary"]),
57066
- deploymentPolicies: json["deploymentPolicies"].map(DeploymentPolicyEntryFromJSON),
57067
- clauses: json["clauses"].map(CatalogClauseFromJSON)
57433
+ packId: json2["packId"],
57434
+ packName: json2["packName"],
57435
+ packLongName: json2["packLongName"],
57436
+ packVersion: json2["packVersion"],
57437
+ description: json2["description"],
57438
+ publishedAt: new Date(json2["publishedAt"]),
57439
+ summary: PackSummaryCountsFromJSON(json2["summary"]),
57440
+ deploymentPolicies: json2["deploymentPolicies"].map(DeploymentPolicyEntryFromJSON),
57441
+ clauses: json2["clauses"].map(CatalogClauseFromJSON)
57068
57442
  };
57069
57443
  }
57070
- function PackCoverageResponseFromJSON(json) {
57071
- return PackCoverageResponseFromJSONTyped(json, false);
57444
+ function PackCoverageResponseFromJSON(json2) {
57445
+ return PackCoverageResponseFromJSONTyped(json2, false);
57072
57446
  }
57073
- function PackCoverageResponseFromJSONTyped(json, ignoreDiscriminator) {
57074
- if (json == null) {
57075
- return json;
57447
+ function PackCoverageResponseFromJSONTyped(json2, ignoreDiscriminator) {
57448
+ if (json2 == null) {
57449
+ return json2;
57076
57450
  }
57077
57451
  return {
57078
- packId: json["packId"],
57079
- scopeLevel: json["scopeLevel"],
57080
- scopeTargetId: json["scopeTargetId"],
57081
- summary: CoverageSummaryFromJSON(json["summary"]),
57082
- deploymentPolicies: json["deploymentPolicies"].map(DeploymentPolicyCoverageFromJSON),
57083
- clauses: json["clauses"].map(ClauseCoverageFromJSON)
57452
+ packId: json2["packId"],
57453
+ scopeLevel: json2["scopeLevel"],
57454
+ scopeTargetId: json2["scopeTargetId"],
57455
+ summary: CoverageSummaryFromJSON(json2["summary"]),
57456
+ deploymentPolicies: json2["deploymentPolicies"].map(DeploymentPolicyCoverageFromJSON),
57457
+ clauses: json2["clauses"].map(ClauseCoverageFromJSON)
57084
57458
  };
57085
57459
  }
57086
- function PackPolicyDtoFromJSON(json) {
57087
- return PackPolicyDtoFromJSONTyped(json, false);
57460
+ function PackPolicyDtoFromJSON(json2) {
57461
+ return PackPolicyDtoFromJSONTyped(json2, false);
57088
57462
  }
57089
- function PackPolicyDtoFromJSONTyped(json, ignoreDiscriminator) {
57090
- if (json == null) {
57091
- return json;
57463
+ function PackPolicyDtoFromJSONTyped(json2, ignoreDiscriminator) {
57464
+ if (json2 == null) {
57465
+ return json2;
57092
57466
  }
57093
57467
  return {
57094
- policyType: json["policyType"],
57095
- externalPolicyId: json["externalPolicyId"]
57468
+ policyType: json2["policyType"],
57469
+ externalPolicyId: json2["externalPolicyId"]
57096
57470
  };
57097
57471
  }
57098
- function PackStateDetailDtoFromJSON(json) {
57099
- return PackStateDetailDtoFromJSONTyped(json, false);
57472
+ function PackStateDetailDtoFromJSON(json2) {
57473
+ return PackStateDetailDtoFromJSONTyped(json2, false);
57100
57474
  }
57101
- function PackStateDetailDtoFromJSONTyped(json, ignoreDiscriminator) {
57102
- if (json == null) {
57103
- return json;
57475
+ function PackStateDetailDtoFromJSONTyped(json2, ignoreDiscriminator) {
57476
+ if (json2 == null) {
57477
+ return json2;
57104
57478
  }
57105
57479
  return {
57106
- packStateId: json["packStateId"],
57107
- scopeLevel: json["scopeLevel"],
57108
- scopeTargetId: json["scopeTargetId"],
57109
- packId: json["packId"],
57110
- packVersion: json["packVersion"],
57111
- active: json["active"],
57112
- lastToggledAt: new Date(json["lastToggledAt"]),
57113
- lastToggledBy: json["lastToggledBy"],
57114
- policies: json["policies"].map(PackPolicyDtoFromJSON)
57480
+ packStateId: json2["packStateId"],
57481
+ scopeLevel: json2["scopeLevel"],
57482
+ scopeTargetId: json2["scopeTargetId"],
57483
+ packId: json2["packId"],
57484
+ packVersion: json2["packVersion"],
57485
+ active: json2["active"],
57486
+ lastToggledAt: new Date(json2["lastToggledAt"]),
57487
+ lastToggledBy: json2["lastToggledBy"],
57488
+ policies: json2["policies"].map(PackPolicyDtoFromJSON)
57115
57489
  };
57116
57490
  }
57117
- function PackStateDtoFromJSON(json) {
57118
- return PackStateDtoFromJSONTyped(json, false);
57491
+ function PackStateDtoFromJSON(json2) {
57492
+ return PackStateDtoFromJSONTyped(json2, false);
57119
57493
  }
57120
- function PackStateDtoFromJSONTyped(json, ignoreDiscriminator) {
57121
- if (json == null) {
57122
- return json;
57494
+ function PackStateDtoFromJSONTyped(json2, ignoreDiscriminator) {
57495
+ if (json2 == null) {
57496
+ return json2;
57123
57497
  }
57124
57498
  return {
57125
- packStateId: json["packStateId"],
57126
- scopeLevel: json["scopeLevel"],
57127
- scopeTargetId: json["scopeTargetId"],
57128
- packId: json["packId"],
57129
- packVersion: json["packVersion"],
57130
- active: json["active"],
57131
- lastToggledAt: new Date(json["lastToggledAt"]),
57132
- lastToggledBy: json["lastToggledBy"]
57499
+ packStateId: json2["packStateId"],
57500
+ scopeLevel: json2["scopeLevel"],
57501
+ scopeTargetId: json2["scopeTargetId"],
57502
+ packId: json2["packId"],
57503
+ packVersion: json2["packVersion"],
57504
+ active: json2["active"],
57505
+ lastToggledAt: new Date(json2["lastToggledAt"]),
57506
+ lastToggledBy: json2["lastToggledBy"]
57133
57507
  };
57134
57508
  }
57135
57509
  class CatalogApi extends BaseAPI3 {
@@ -57762,7 +58136,7 @@ var parseResourceUrl2 = (url) => {
57762
58136
  };
57763
58137
  };
57764
58138
  var defaultLoadModule2 = async () => {
57765
- const [error, mod2] = await catchError3(() => Promise.resolve().then(() => __toESM3(require_dist2(), 1)));
58139
+ const [error, mod2] = await catchError3(() => Promise.resolve().then(() => __toESM2(require_dist2(), 1)));
57766
58140
  if (error || !mod2) {
57767
58141
  return;
57768
58142
  }
@@ -58015,12 +58389,12 @@ var loadEnvFileAsync2 = async ({ envPath }) => {
58015
58389
  var saveEnvFileAsync2 = async ({
58016
58390
  envPath,
58017
58391
  data,
58018
- merge = true
58392
+ merge: merge2 = true
58019
58393
  }) => {
58020
58394
  const fs72 = getFileSystem2();
58021
58395
  const absolutePath = fs72.path.isAbsolute(envPath) ? envPath : fs72.path.join(fs72.env.homedir(), envPath);
58022
58396
  let existingData = {};
58023
- if (merge && await fs72.exists(absolutePath)) {
58397
+ if (merge2 && await fs72.exists(absolutePath)) {
58024
58398
  try {
58025
58399
  existingData = await loadEnvFileAsync2({ envPath: absolutePath });
58026
58400
  } catch {}
@@ -58935,4 +59309,4 @@ export {
58935
59309
  metadata
58936
59310
  };
58937
59311
 
58938
- //# debugId=A2D158E5D741929664756E2164756E21
59312
+ //# debugId=401B5511E0D9F73464756E2164756E21