@uipath/data-fabric-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 +1391 -1017
  2. package/package.json +2 -2
package/dist/tool.js CHANGED
@@ -16177,7 +16177,7 @@ var require_TimeoutError = __commonJS((exports) => {
16177
16177
  });
16178
16178
 
16179
16179
  // ../../node_modules/@uipath/robot-client/node_modules/rxjs/internal/operators/map.js
16180
- var require_map2 = __commonJS((exports) => {
16180
+ var require_map = __commonJS((exports) => {
16181
16181
  var __extends = exports && exports.__extends || function() {
16182
16182
  var extendStatics = function(d, b) {
16183
16183
  extendStatics = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(d2, b2) {
@@ -16199,7 +16199,7 @@ var require_map2 = __commonJS((exports) => {
16199
16199
  }();
16200
16200
  Object.defineProperty(exports, "__esModule", { value: true });
16201
16201
  var Subscriber_1 = require_Subscriber();
16202
- function map(project, thisArg) {
16202
+ function map2(project, thisArg) {
16203
16203
  return function mapOperation(source) {
16204
16204
  if (typeof project !== "function") {
16205
16205
  throw new TypeError("argument is not a function. Are you looking for `mapTo()`?");
@@ -16207,7 +16207,7 @@ var require_map2 = __commonJS((exports) => {
16207
16207
  return source.lift(new MapOperator(project, thisArg));
16208
16208
  };
16209
16209
  }
16210
- exports.map = map;
16210
+ exports.map = map2;
16211
16211
  var MapOperator = function() {
16212
16212
  function MapOperator2(project, thisArg) {
16213
16213
  this.project = project;
@@ -16247,7 +16247,7 @@ var require_bindCallback = __commonJS((exports) => {
16247
16247
  Object.defineProperty(exports, "__esModule", { value: true });
16248
16248
  var Observable_1 = require_Observable();
16249
16249
  var AsyncSubject_1 = require_AsyncSubject();
16250
- var map_1 = require_map2();
16250
+ var map_1 = require_map();
16251
16251
  var canReportError_1 = require_canReportError();
16252
16252
  var isArray_1 = require_isArray();
16253
16253
  var isScheduler_1 = require_isScheduler();
@@ -16351,7 +16351,7 @@ var require_bindNodeCallback = __commonJS((exports) => {
16351
16351
  Object.defineProperty(exports, "__esModule", { value: true });
16352
16352
  var Observable_1 = require_Observable();
16353
16353
  var AsyncSubject_1 = require_AsyncSubject();
16354
- var map_1 = require_map2();
16354
+ var map_1 = require_map();
16355
16355
  var canReportError_1 = require_canReportError();
16356
16356
  var isScheduler_1 = require_isScheduler();
16357
16357
  var isArray_1 = require_isArray();
@@ -17141,7 +17141,7 @@ var require_mergeMap = __commonJS((exports) => {
17141
17141
  };
17142
17142
  }();
17143
17143
  Object.defineProperty(exports, "__esModule", { value: true });
17144
- var map_1 = require_map2();
17144
+ var map_1 = require_map();
17145
17145
  var from_1 = require_from();
17146
17146
  var innerSubscribe_1 = require_innerSubscribe();
17147
17147
  function mergeMap(project, resultSelector, concurrent) {
@@ -17312,7 +17312,7 @@ var require_forkJoin = __commonJS((exports) => {
17312
17312
  Object.defineProperty(exports, "__esModule", { value: true });
17313
17313
  var Observable_1 = require_Observable();
17314
17314
  var isArray_1 = require_isArray();
17315
- var map_1 = require_map2();
17315
+ var map_1 = require_map();
17316
17316
  var isObject_1 = require_isObject();
17317
17317
  var from_1 = require_from();
17318
17318
  function forkJoin() {
@@ -17392,7 +17392,7 @@ var require_fromEvent = __commonJS((exports) => {
17392
17392
  var Observable_1 = require_Observable();
17393
17393
  var isArray_1 = require_isArray();
17394
17394
  var isFunction_1 = require_isFunction();
17395
- var map_1 = require_map2();
17395
+ var map_1 = require_map();
17396
17396
  var toString = function() {
17397
17397
  return Object.prototype.toString;
17398
17398
  }();
@@ -17464,7 +17464,7 @@ var require_fromEventPattern = __commonJS((exports) => {
17464
17464
  var Observable_1 = require_Observable();
17465
17465
  var isArray_1 = require_isArray();
17466
17466
  var isFunction_1 = require_isFunction();
17467
- var map_1 = require_map2();
17467
+ var map_1 = require_map();
17468
17468
  function fromEventPattern(addHandler, removeHandler, resultSelector) {
17469
17469
  if (resultSelector) {
17470
17470
  return fromEventPattern(addHandler, removeHandler).pipe(map_1.map(function(args) {
@@ -17679,13 +17679,13 @@ var require_interval = __commonJS((exports) => {
17679
17679
  });
17680
17680
 
17681
17681
  // ../../node_modules/@uipath/robot-client/node_modules/rxjs/internal/observable/merge.js
17682
- var require_merge2 = __commonJS((exports) => {
17682
+ var require_merge = __commonJS((exports) => {
17683
17683
  Object.defineProperty(exports, "__esModule", { value: true });
17684
17684
  var Observable_1 = require_Observable();
17685
17685
  var isScheduler_1 = require_isScheduler();
17686
17686
  var mergeAll_1 = require_mergeAll();
17687
17687
  var fromArray_1 = require_fromArray();
17688
- function merge() {
17688
+ function merge2() {
17689
17689
  var observables = [];
17690
17690
  for (var _i = 0;_i < arguments.length; _i++) {
17691
17691
  observables[_i] = arguments[_i];
@@ -17706,7 +17706,7 @@ var require_merge2 = __commonJS((exports) => {
17706
17706
  }
17707
17707
  return mergeAll_1.mergeAll(concurrent)(fromArray_1.fromArray(observables, scheduler));
17708
17708
  }
17709
- exports.merge = merge;
17709
+ exports.merge = merge2;
17710
17710
  });
17711
17711
 
17712
17712
  // ../../node_modules/@uipath/robot-client/node_modules/rxjs/internal/observable/never.js
@@ -17757,11 +17757,11 @@ var require_onErrorResumeNext = __commonJS((exports) => {
17757
17757
  });
17758
17758
 
17759
17759
  // ../../node_modules/@uipath/robot-client/node_modules/rxjs/internal/observable/pairs.js
17760
- var require_pairs2 = __commonJS((exports) => {
17760
+ var require_pairs = __commonJS((exports) => {
17761
17761
  Object.defineProperty(exports, "__esModule", { value: true });
17762
17762
  var Observable_1 = require_Observable();
17763
17763
  var Subscription_1 = require_Subscription();
17764
- function pairs(obj, scheduler) {
17764
+ function pairs2(obj, scheduler) {
17765
17765
  if (!scheduler) {
17766
17766
  return new Observable_1.Observable(function(subscriber) {
17767
17767
  var keys = Object.keys(obj);
@@ -17782,7 +17782,7 @@ var require_pairs2 = __commonJS((exports) => {
17782
17782
  });
17783
17783
  }
17784
17784
  }
17785
- exports.pairs = pairs;
17785
+ exports.pairs = pairs2;
17786
17786
  function dispatch(state) {
17787
17787
  var { keys, index, subscriber, subscription, obj } = state;
17788
17788
  if (!subscriber.closed) {
@@ -18441,7 +18441,7 @@ var require_rxjs = __commonJS((exports) => {
18441
18441
  exports.iif = iif_1.iif;
18442
18442
  var interval_1 = require_interval();
18443
18443
  exports.interval = interval_1.interval;
18444
- var merge_1 = require_merge2();
18444
+ var merge_1 = require_merge();
18445
18445
  exports.merge = merge_1.merge;
18446
18446
  var never_1 = require_never();
18447
18447
  exports.never = never_1.never;
@@ -18449,7 +18449,7 @@ var require_rxjs = __commonJS((exports) => {
18449
18449
  exports.of = of_1.of;
18450
18450
  var onErrorResumeNext_1 = require_onErrorResumeNext();
18451
18451
  exports.onErrorResumeNext = onErrorResumeNext_1.onErrorResumeNext;
18452
- var pairs_1 = require_pairs2();
18452
+ var pairs_1 = require_pairs();
18453
18453
  exports.pairs = pairs_1.pairs;
18454
18454
  var partition_1 = require_partition();
18455
18455
  exports.partition = partition_1.partition;
@@ -21314,40 +21314,40 @@ var require_global_utils = __commonJS((exports) => {
21314
21314
  var major = version_1.VERSION.split(".")[0];
21315
21315
  var GLOBAL_OPENTELEMETRY_API_KEY = Symbol.for(`opentelemetry.js.api.${major}`);
21316
21316
  var _global = typeof globalThis === "object" ? globalThis : typeof self === "object" ? self : typeof window === "object" ? window : typeof global === "object" ? global : {};
21317
- function registerGlobal(type, instance, diag, allowOverride = false) {
21317
+ function registerGlobal(type2, instance, diag, allowOverride = false) {
21318
21318
  var _a;
21319
21319
  const api = _global[GLOBAL_OPENTELEMETRY_API_KEY] = (_a = _global[GLOBAL_OPENTELEMETRY_API_KEY]) !== null && _a !== undefined ? _a : {
21320
21320
  version: version_1.VERSION
21321
21321
  };
21322
- if (!allowOverride && api[type]) {
21323
- const err = new Error(`@opentelemetry/api: Attempted duplicate registration of API: ${type}`);
21322
+ if (!allowOverride && api[type2]) {
21323
+ const err = new Error(`@opentelemetry/api: Attempted duplicate registration of API: ${type2}`);
21324
21324
  diag.error(err.stack || err.message);
21325
21325
  return false;
21326
21326
  }
21327
21327
  if (api.version !== version_1.VERSION) {
21328
- const err = new Error(`@opentelemetry/api: Registration of version v${api.version} for ${type} does not match previously registered API v${version_1.VERSION}`);
21328
+ const err = new Error(`@opentelemetry/api: Registration of version v${api.version} for ${type2} does not match previously registered API v${version_1.VERSION}`);
21329
21329
  diag.error(err.stack || err.message);
21330
21330
  return false;
21331
21331
  }
21332
- api[type] = instance;
21333
- diag.debug(`@opentelemetry/api: Registered a global for ${type} v${version_1.VERSION}.`);
21332
+ api[type2] = instance;
21333
+ diag.debug(`@opentelemetry/api: Registered a global for ${type2} v${version_1.VERSION}.`);
21334
21334
  return true;
21335
21335
  }
21336
21336
  exports.registerGlobal = registerGlobal;
21337
- function getGlobal(type) {
21337
+ function getGlobal(type2) {
21338
21338
  var _a, _b;
21339
21339
  const globalVersion = (_a = _global[GLOBAL_OPENTELEMETRY_API_KEY]) === null || _a === undefined ? undefined : _a.version;
21340
21340
  if (!globalVersion || !(0, semver_1.isCompatible)(globalVersion)) {
21341
21341
  return;
21342
21342
  }
21343
- return (_b = _global[GLOBAL_OPENTELEMETRY_API_KEY]) === null || _b === undefined ? undefined : _b[type];
21343
+ return (_b = _global[GLOBAL_OPENTELEMETRY_API_KEY]) === null || _b === undefined ? undefined : _b[type2];
21344
21344
  }
21345
21345
  exports.getGlobal = getGlobal;
21346
- function unregisterGlobal(type, diag) {
21347
- diag.debug(`@opentelemetry/api: Unregistering a global for ${type} v${version_1.VERSION}.`);
21346
+ function unregisterGlobal(type2, diag) {
21347
+ diag.debug(`@opentelemetry/api: Unregistering a global for ${type2} v${version_1.VERSION}.`);
21348
21348
  const api = _global[GLOBAL_OPENTELEMETRY_API_KEY];
21349
21349
  if (api) {
21350
- delete api[type];
21350
+ delete api[type2];
21351
21351
  }
21352
21352
  }
21353
21353
  exports.unregisterGlobal = unregisterGlobal;
@@ -21562,15 +21562,15 @@ var require_utils = __commonJS((exports) => {
21562
21562
  return new baggage_impl_1.BaggageImpl(new Map(Object.entries(entries)));
21563
21563
  }
21564
21564
  exports.createBaggage = createBaggage;
21565
- function baggageEntryMetadataFromString(str) {
21566
- if (typeof str !== "string") {
21567
- diag.error(`Cannot create baggage metadata from unknown type: ${typeof str}`);
21568
- str = "";
21565
+ function baggageEntryMetadataFromString(str2) {
21566
+ if (typeof str2 !== "string") {
21567
+ diag.error(`Cannot create baggage metadata from unknown type: ${typeof str2}`);
21568
+ str2 = "";
21569
21569
  }
21570
21570
  return {
21571
21571
  __TYPE__: symbol_1.baggageEntryMetadataSymbol,
21572
21572
  toString() {
21573
- return str;
21573
+ return str2;
21574
21574
  }
21575
21575
  };
21576
21576
  }
@@ -23183,17 +23183,17 @@ var require_attributes = __commonJS((exports) => {
23183
23183
  }
23184
23184
  exports.isAttributeValue = isAttributeValue;
23185
23185
  function isHomogeneousAttributeValueArray(arr) {
23186
- let type;
23186
+ let type2;
23187
23187
  for (const element of arr) {
23188
23188
  if (element == null)
23189
23189
  continue;
23190
23190
  const elementType = typeof element;
23191
- if (elementType === type) {
23191
+ if (elementType === type2) {
23192
23192
  continue;
23193
23193
  }
23194
- if (!type) {
23194
+ if (!type2) {
23195
23195
  if (isValidPrimitiveAttributeValueType(elementType)) {
23196
- type = elementType;
23196
+ type2 = elementType;
23197
23197
  continue;
23198
23198
  }
23199
23199
  return false;
@@ -25405,12 +25405,12 @@ var require_lodash_merge = __commonJS((exports) => {
25405
25405
  });
25406
25406
 
25407
25407
  // ../../node_modules/@opentelemetry/core/build/src/utils/merge.js
25408
- var require_merge3 = __commonJS((exports) => {
25408
+ var require_merge2 = __commonJS((exports) => {
25409
25409
  Object.defineProperty(exports, "__esModule", { value: true });
25410
25410
  exports.merge = undefined;
25411
25411
  var lodash_merge_1 = require_lodash_merge();
25412
25412
  var MAX_LEVEL = 20;
25413
- function merge(...args) {
25413
+ function merge2(...args) {
25414
25414
  let result = args.shift();
25415
25415
  const objects = new WeakMap;
25416
25416
  while (args.length > 0) {
@@ -25418,7 +25418,7 @@ var require_merge3 = __commonJS((exports) => {
25418
25418
  }
25419
25419
  return result;
25420
25420
  }
25421
- exports.merge = merge;
25421
+ exports.merge = merge2;
25422
25422
  function takeValue(value) {
25423
25423
  if (isArray(value)) {
25424
25424
  return value.slice();
@@ -25835,7 +25835,7 @@ var require_src4 = __commonJS((exports) => {
25835
25835
  Object.defineProperty(exports, "TraceState", { enumerable: true, get: function() {
25836
25836
  return TraceState_1.TraceState;
25837
25837
  } });
25838
- var merge_1 = require_merge3();
25838
+ var merge_1 = require_merge2();
25839
25839
  Object.defineProperty(exports, "merge", { enumerable: true, get: function() {
25840
25840
  return merge_1.merge;
25841
25841
  } });
@@ -26132,17 +26132,17 @@ var require_EnvDetector = __commonJS((exports) => {
26132
26132
  _isValid(name) {
26133
26133
  return name.length <= this._MAX_LENGTH && this._isBaggageOctetString(name);
26134
26134
  }
26135
- _isBaggageOctetString(str) {
26136
- for (let i = 0;i < str.length; i++) {
26137
- const ch = str.charCodeAt(i);
26135
+ _isBaggageOctetString(str2) {
26136
+ for (let i = 0;i < str2.length; i++) {
26137
+ const ch = str2.charCodeAt(i);
26138
26138
  if (ch < 33 || ch === 44 || ch === 59 || ch === 92 || ch > 126) {
26139
26139
  return false;
26140
26140
  }
26141
26141
  }
26142
26142
  return true;
26143
26143
  }
26144
- _isValidAndNotEmpty(str) {
26145
- return str.length > 0 && this._isValid(str);
26144
+ _isValidAndNotEmpty(str2) {
26145
+ return str2.length > 0 && this._isValid(str2);
26146
26146
  }
26147
26147
  }
26148
26148
  exports.envDetector = new EnvDetector;
@@ -26654,9 +26654,9 @@ var require_LogRecordImpl = __commonJS((exports) => {
26654
26654
  return this.totalAttributesCount - Object.keys(this.attributes).length;
26655
26655
  }
26656
26656
  constructor(_sharedState, instrumentationScope, logRecord) {
26657
- const { timestamp, observedTimestamp, eventName, severityNumber, severityText, body, attributes = {}, context } = logRecord;
26657
+ const { timestamp: timestamp2, observedTimestamp, eventName, severityNumber, severityText, body, attributes = {}, context } = logRecord;
26658
26658
  const now = Date.now();
26659
- this.hrTime = (0, core_1.timeInputToHrTime)(timestamp ?? now);
26659
+ this.hrTime = (0, core_1.timeInputToHrTime)(timestamp2 ?? now);
26660
26660
  this.hrTimeObserved = (0, core_1.timeInputToHrTime)(observedTimestamp ?? now);
26661
26661
  if (context) {
26662
26662
  const spanContext = api.trace.getSpanContext(context);
@@ -27244,7 +27244,7 @@ var require_src6 = __commonJS((exports) => {
27244
27244
  var package_default = {
27245
27245
  name: "@uipath/data-fabric-tool",
27246
27246
  license: "MIT",
27247
- version: "1.198.0-preview.85",
27247
+ version: "1.198.0-preview.87",
27248
27248
  description: "Manage Data Fabric entities and records.",
27249
27249
  type: "module",
27250
27250
  main: "./dist/tool.js",
@@ -29653,31 +29653,17 @@ function search(data, expression, options) {
29653
29653
  }
29654
29654
 
29655
29655
  // ../../node_modules/js-yaml/dist/js-yaml.mjs
29656
- /*! js-yaml 4.2.0 https://github.com/nodeca/js-yaml @license MIT */
29657
- var __create2 = Object.create;
29658
- var __defProp2 = Object.defineProperty;
29659
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
29660
- var __getOwnPropNames2 = Object.getOwnPropertyNames;
29661
- var __getProtoOf2 = Object.getPrototypeOf;
29662
- var __hasOwnProp2 = Object.prototype.hasOwnProperty;
29663
- var __commonJSMin = (cb, mod2) => () => (mod2 || (cb((mod2 = { exports: {} }).exports, mod2), cb = null), mod2.exports);
29664
- var __copyProps = (to, from, except, desc) => {
29665
- if (from && typeof from === "object" || typeof from === "function")
29666
- for (var keys = __getOwnPropNames2(from), i = 0, n = keys.length, key;i < n; i++) {
29667
- key = keys[i];
29668
- if (!__hasOwnProp2.call(to, key) && key !== except)
29669
- __defProp2(to, key, {
29670
- get: ((k) => from[k]).bind(null, key),
29671
- enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
29672
- });
29673
- }
29674
- return to;
29675
- };
29676
- var __toESM2 = (mod2, isNodeMode, target) => (target = mod2 != null ? __create2(__getProtoOf2(mod2)) : {}, __copyProps(isNodeMode || !mod2 || !mod2.__esModule ? __defProp2(target, "default", {
29677
- value: mod2,
29678
- enumerable: true
29679
- }) : target, mod2));
29680
- var require_common = /* @__PURE__ */ __commonJSMin((exports, module) => {
29656
+ function getDefaultExportFromCjs(x) {
29657
+ return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, "default") ? x["default"] : x;
29658
+ }
29659
+ var jsYaml = {};
29660
+ var loader = {};
29661
+ var common = {};
29662
+ var hasRequiredCommon;
29663
+ function requireCommon() {
29664
+ if (hasRequiredCommon)
29665
+ return common;
29666
+ hasRequiredCommon = 1;
29681
29667
  function isNothing(subject) {
29682
29668
  return typeof subject === "undefined" || subject === null;
29683
29669
  }
@@ -29703,55 +29689,71 @@ var require_common = /* @__PURE__ */ __commonJSMin((exports, module) => {
29703
29689
  }
29704
29690
  function repeat(string, count) {
29705
29691
  let result = "";
29706
- for (let cycle = 0;cycle < count; cycle += 1)
29692
+ for (let cycle = 0;cycle < count; cycle += 1) {
29707
29693
  result += string;
29694
+ }
29708
29695
  return result;
29709
29696
  }
29710
29697
  function isNegativeZero(number) {
29711
29698
  return number === 0 && Number.NEGATIVE_INFINITY === 1 / number;
29712
29699
  }
29713
- module.exports.isNothing = isNothing;
29714
- module.exports.isObject = isObject2;
29715
- module.exports.toArray = toArray;
29716
- module.exports.repeat = repeat;
29717
- module.exports.isNegativeZero = isNegativeZero;
29718
- module.exports.extend = extend;
29719
- });
29720
- var require_exception = /* @__PURE__ */ __commonJSMin((exports, module) => {
29721
- function formatError(exception, compact) {
29700
+ common.isNothing = isNothing;
29701
+ common.isObject = isObject2;
29702
+ common.toArray = toArray;
29703
+ common.repeat = repeat;
29704
+ common.isNegativeZero = isNegativeZero;
29705
+ common.extend = extend;
29706
+ return common;
29707
+ }
29708
+ var exception;
29709
+ var hasRequiredException;
29710
+ function requireException() {
29711
+ if (hasRequiredException)
29712
+ return exception;
29713
+ hasRequiredException = 1;
29714
+ function formatError(exception2, compact) {
29722
29715
  let where = "";
29723
- const message = exception.reason || "(unknown reason)";
29724
- if (!exception.mark)
29716
+ const message = exception2.reason || "(unknown reason)";
29717
+ if (!exception2.mark)
29725
29718
  return message;
29726
- if (exception.mark.name)
29727
- where += 'in "' + exception.mark.name + '" ';
29728
- where += "(" + (exception.mark.line + 1) + ":" + (exception.mark.column + 1) + ")";
29729
- if (!compact && exception.mark.snippet)
29719
+ if (exception2.mark.name) {
29720
+ where += 'in "' + exception2.mark.name + '" ';
29721
+ }
29722
+ where += "(" + (exception2.mark.line + 1) + ":" + (exception2.mark.column + 1) + ")";
29723
+ if (!compact && exception2.mark.snippet) {
29730
29724
  where += `
29731
29725
 
29732
- ` + exception.mark.snippet;
29726
+ ` + exception2.mark.snippet;
29727
+ }
29733
29728
  return message + " " + where;
29734
29729
  }
29735
- function YAMLException(reason, mark) {
29730
+ function YAMLException2(reason, mark) {
29736
29731
  Error.call(this);
29737
29732
  this.name = "YAMLException";
29738
29733
  this.reason = reason;
29739
29734
  this.mark = mark;
29740
29735
  this.message = formatError(this, false);
29741
- if (Error.captureStackTrace)
29736
+ if (Error.captureStackTrace) {
29742
29737
  Error.captureStackTrace(this, this.constructor);
29743
- else
29744
- this.stack = (/* @__PURE__ */ new Error()).stack || "";
29738
+ } else {
29739
+ this.stack = new Error().stack || "";
29740
+ }
29745
29741
  }
29746
- YAMLException.prototype = Object.create(Error.prototype);
29747
- YAMLException.prototype.constructor = YAMLException;
29748
- YAMLException.prototype.toString = function toString(compact) {
29742
+ YAMLException2.prototype = Object.create(Error.prototype);
29743
+ YAMLException2.prototype.constructor = YAMLException2;
29744
+ YAMLException2.prototype.toString = function toString(compact) {
29749
29745
  return this.name + ": " + formatError(this, compact);
29750
29746
  };
29751
- module.exports = YAMLException;
29752
- });
29753
- var require_snippet = /* @__PURE__ */ __commonJSMin((exports, module) => {
29754
- var common = require_common();
29747
+ exception = YAMLException2;
29748
+ return exception;
29749
+ }
29750
+ var snippet;
29751
+ var hasRequiredSnippet;
29752
+ function requireSnippet() {
29753
+ if (hasRequiredSnippet)
29754
+ return snippet;
29755
+ hasRequiredSnippet = 1;
29756
+ const common2 = requireCommon();
29755
29757
  function getLine(buffer, lineStart, lineEnd, position, maxLineLength) {
29756
29758
  let head = "";
29757
29759
  let tail = "";
@@ -29770,7 +29772,7 @@ var require_snippet = /* @__PURE__ */ __commonJSMin((exports, module) => {
29770
29772
  };
29771
29773
  }
29772
29774
  function padStart(string, max) {
29773
- return common.repeat(" ", max - string.length) + string;
29775
+ return common2.repeat(" ", max - string.length) + string;
29774
29776
  }
29775
29777
  function makeSnippet(mark, options) {
29776
29778
  options = Object.create(options || null);
@@ -29792,8 +29794,9 @@ var require_snippet = /* @__PURE__ */ __commonJSMin((exports, module) => {
29792
29794
  while (match = re.exec(mark.buffer)) {
29793
29795
  lineEnds.push(match.index);
29794
29796
  lineStarts.push(match.index + match[0].length);
29795
- if (mark.position <= match.index && foundLineNo < 0)
29797
+ if (mark.position <= match.index && foundLineNo < 0) {
29796
29798
  foundLineNo = lineStarts.length - 2;
29799
+ }
29797
29800
  }
29798
29801
  if (foundLineNo < 0)
29799
29802
  foundLineNo = lineStarts.length - 1;
@@ -29804,28 +29807,34 @@ var require_snippet = /* @__PURE__ */ __commonJSMin((exports, module) => {
29804
29807
  if (foundLineNo - i < 0)
29805
29808
  break;
29806
29809
  const line2 = getLine(mark.buffer, lineStarts[foundLineNo - i], lineEnds[foundLineNo - i], mark.position - (lineStarts[foundLineNo] - lineStarts[foundLineNo - i]), maxLineLength);
29807
- result = common.repeat(" ", options.indent) + padStart((mark.line - i + 1).toString(), lineNoLength) + " | " + line2.str + `
29810
+ result = common2.repeat(" ", options.indent) + padStart((mark.line - i + 1).toString(), lineNoLength) + " | " + line2.str + `
29808
29811
  ` + result;
29809
29812
  }
29810
29813
  const line = getLine(mark.buffer, lineStarts[foundLineNo], lineEnds[foundLineNo], mark.position, maxLineLength);
29811
- result += common.repeat(" ", options.indent) + padStart((mark.line + 1).toString(), lineNoLength) + " | " + line.str + `
29814
+ result += common2.repeat(" ", options.indent) + padStart((mark.line + 1).toString(), lineNoLength) + " | " + line.str + `
29812
29815
  `;
29813
- result += common.repeat("-", options.indent + lineNoLength + 3 + line.pos) + `^
29816
+ result += common2.repeat("-", options.indent + lineNoLength + 3 + line.pos) + `^
29814
29817
  `;
29815
29818
  for (let i = 1;i <= options.linesAfter; i++) {
29816
29819
  if (foundLineNo + i >= lineEnds.length)
29817
29820
  break;
29818
29821
  const line2 = getLine(mark.buffer, lineStarts[foundLineNo + i], lineEnds[foundLineNo + i], mark.position - (lineStarts[foundLineNo] - lineStarts[foundLineNo + i]), maxLineLength);
29819
- result += common.repeat(" ", options.indent) + padStart((mark.line + i + 1).toString(), lineNoLength) + " | " + line2.str + `
29822
+ result += common2.repeat(" ", options.indent) + padStart((mark.line + i + 1).toString(), lineNoLength) + " | " + line2.str + `
29820
29823
  `;
29821
29824
  }
29822
29825
  return result.replace(/\n$/, "");
29823
29826
  }
29824
- module.exports = makeSnippet;
29825
- });
29826
- var require_type = /* @__PURE__ */ __commonJSMin((exports, module) => {
29827
- var YAMLException = require_exception();
29828
- var TYPE_CONSTRUCTOR_OPTIONS = [
29827
+ snippet = makeSnippet;
29828
+ return snippet;
29829
+ }
29830
+ var type;
29831
+ var hasRequiredType;
29832
+ function requireType() {
29833
+ if (hasRequiredType)
29834
+ return type;
29835
+ hasRequiredType = 1;
29836
+ const YAMLException2 = requireException();
29837
+ const TYPE_CONSTRUCTOR_OPTIONS = [
29829
29838
  "kind",
29830
29839
  "multi",
29831
29840
  "resolve",
@@ -29837,26 +29846,28 @@ var require_type = /* @__PURE__ */ __commonJSMin((exports, module) => {
29837
29846
  "defaultStyle",
29838
29847
  "styleAliases"
29839
29848
  ];
29840
- var YAML_NODE_KINDS = [
29849
+ const YAML_NODE_KINDS = [
29841
29850
  "scalar",
29842
29851
  "sequence",
29843
29852
  "mapping"
29844
29853
  ];
29845
- function compileStyleAliases(map) {
29854
+ function compileStyleAliases(map2) {
29846
29855
  const result = {};
29847
- if (map !== null)
29848
- Object.keys(map).forEach(function(style) {
29849
- map[style].forEach(function(alias) {
29856
+ if (map2 !== null) {
29857
+ Object.keys(map2).forEach(function(style) {
29858
+ map2[style].forEach(function(alias) {
29850
29859
  result[String(alias)] = style;
29851
29860
  });
29852
29861
  });
29862
+ }
29853
29863
  return result;
29854
29864
  }
29855
- function Type(tag, options) {
29865
+ function Type2(tag, options) {
29856
29866
  options = options || {};
29857
29867
  Object.keys(options).forEach(function(name) {
29858
- if (TYPE_CONSTRUCTOR_OPTIONS.indexOf(name) === -1)
29859
- throw new YAMLException('Unknown option "' + name + '" is met in definition of "' + tag + '" YAML type.');
29868
+ if (TYPE_CONSTRUCTOR_OPTIONS.indexOf(name) === -1) {
29869
+ throw new YAMLException2('Unknown option "' + name + '" is met in definition of "' + tag + '" YAML type.');
29870
+ }
29860
29871
  });
29861
29872
  this.options = options;
29862
29873
  this.tag = tag;
@@ -29874,21 +29885,29 @@ var require_type = /* @__PURE__ */ __commonJSMin((exports, module) => {
29874
29885
  this.defaultStyle = options["defaultStyle"] || null;
29875
29886
  this.multi = options["multi"] || false;
29876
29887
  this.styleAliases = compileStyleAliases(options["styleAliases"] || null);
29877
- if (YAML_NODE_KINDS.indexOf(this.kind) === -1)
29878
- throw new YAMLException('Unknown kind "' + this.kind + '" is specified for "' + tag + '" YAML type.');
29879
- }
29880
- module.exports = Type;
29881
- });
29882
- var require_schema = /* @__PURE__ */ __commonJSMin((exports, module) => {
29883
- var YAMLException = require_exception();
29884
- var Type = require_type();
29885
- function compileList(schema, name) {
29888
+ if (YAML_NODE_KINDS.indexOf(this.kind) === -1) {
29889
+ throw new YAMLException2('Unknown kind "' + this.kind + '" is specified for "' + tag + '" YAML type.');
29890
+ }
29891
+ }
29892
+ type = Type2;
29893
+ return type;
29894
+ }
29895
+ var schema;
29896
+ var hasRequiredSchema;
29897
+ function requireSchema() {
29898
+ if (hasRequiredSchema)
29899
+ return schema;
29900
+ hasRequiredSchema = 1;
29901
+ const YAMLException2 = requireException();
29902
+ const Type2 = requireType();
29903
+ function compileList(schema2, name) {
29886
29904
  const result = [];
29887
- schema[name].forEach(function(currentType) {
29905
+ schema2[name].forEach(function(currentType) {
29888
29906
  let newIndex = result.length;
29889
29907
  result.forEach(function(previousType, previousIndex) {
29890
- if (previousType.tag === currentType.tag && previousType.kind === currentType.kind && previousType.multi === currentType.multi)
29908
+ if (previousType.tag === currentType.tag && previousType.kind === currentType.kind && previousType.multi === currentType.multi) {
29891
29909
  newIndex = previousIndex;
29910
+ }
29892
29911
  });
29893
29912
  result[newIndex] = currentType;
29894
29913
  });
@@ -29907,47 +29926,54 @@ var require_schema = /* @__PURE__ */ __commonJSMin((exports, module) => {
29907
29926
  fallback: []
29908
29927
  }
29909
29928
  };
29910
- function collectType(type) {
29911
- if (type.multi) {
29912
- result.multi[type.kind].push(type);
29913
- result.multi["fallback"].push(type);
29914
- } else
29915
- result[type.kind][type.tag] = result["fallback"][type.tag] = type;
29929
+ function collectType(type2) {
29930
+ if (type2.multi) {
29931
+ result.multi[type2.kind].push(type2);
29932
+ result.multi["fallback"].push(type2);
29933
+ } else {
29934
+ result[type2.kind][type2.tag] = result["fallback"][type2.tag] = type2;
29935
+ }
29916
29936
  }
29917
- for (let index = 0, length = arguments.length;index < length; index += 1)
29937
+ for (let index = 0, length = arguments.length;index < length; index += 1) {
29918
29938
  arguments[index].forEach(collectType);
29939
+ }
29919
29940
  return result;
29920
29941
  }
29921
- function Schema(definition) {
29942
+ function Schema2(definition) {
29922
29943
  return this.extend(definition);
29923
29944
  }
29924
- Schema.prototype.extend = function extend(definition) {
29945
+ Schema2.prototype.extend = function extend(definition) {
29925
29946
  let implicit = [];
29926
29947
  let explicit = [];
29927
- if (definition instanceof Type)
29948
+ if (definition instanceof Type2) {
29928
29949
  explicit.push(definition);
29929
- else if (Array.isArray(definition))
29950
+ } else if (Array.isArray(definition)) {
29930
29951
  explicit = explicit.concat(definition);
29931
- else if (definition && (Array.isArray(definition.implicit) || Array.isArray(definition.explicit))) {
29952
+ } else if (definition && (Array.isArray(definition.implicit) || Array.isArray(definition.explicit))) {
29932
29953
  if (definition.implicit)
29933
29954
  implicit = implicit.concat(definition.implicit);
29934
29955
  if (definition.explicit)
29935
29956
  explicit = explicit.concat(definition.explicit);
29936
- } else
29937
- throw new YAMLException("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })");
29938
- implicit.forEach(function(type) {
29939
- if (!(type instanceof Type))
29940
- throw new YAMLException("Specified list of YAML types (or a single Type object) contains a non-Type object.");
29941
- if (type.loadKind && type.loadKind !== "scalar")
29942
- throw new YAMLException("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.");
29943
- if (type.multi)
29944
- throw new YAMLException("There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.");
29957
+ } else {
29958
+ throw new YAMLException2("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })");
29959
+ }
29960
+ implicit.forEach(function(type2) {
29961
+ if (!(type2 instanceof Type2)) {
29962
+ throw new YAMLException2("Specified list of YAML types (or a single Type object) contains a non-Type object.");
29963
+ }
29964
+ if (type2.loadKind && type2.loadKind !== "scalar") {
29965
+ throw new YAMLException2("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.");
29966
+ }
29967
+ if (type2.multi) {
29968
+ throw new YAMLException2("There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.");
29969
+ }
29945
29970
  });
29946
- explicit.forEach(function(type) {
29947
- if (!(type instanceof Type))
29948
- throw new YAMLException("Specified list of YAML types (or a single Type object) contains a non-Type object.");
29971
+ explicit.forEach(function(type2) {
29972
+ if (!(type2 instanceof Type2)) {
29973
+ throw new YAMLException2("Specified list of YAML types (or a single Type object) contains a non-Type object.");
29974
+ }
29949
29975
  });
29950
- const result = Object.create(Schema.prototype);
29976
+ const result = Object.create(Schema2.prototype);
29951
29977
  result.implicit = (this.implicit || []).concat(implicit);
29952
29978
  result.explicit = (this.explicit || []).concat(explicit);
29953
29979
  result.compiledImplicit = compileList(result, "implicit");
@@ -29955,41 +29981,77 @@ var require_schema = /* @__PURE__ */ __commonJSMin((exports, module) => {
29955
29981
  result.compiledTypeMap = compileMap(result.compiledImplicit, result.compiledExplicit);
29956
29982
  return result;
29957
29983
  };
29958
- module.exports = Schema;
29959
- });
29960
- var require_str = /* @__PURE__ */ __commonJSMin((exports, module) => {
29961
- module.exports = new (require_type())("tag:yaml.org,2002:str", {
29984
+ schema = Schema2;
29985
+ return schema;
29986
+ }
29987
+ var str;
29988
+ var hasRequiredStr;
29989
+ function requireStr() {
29990
+ if (hasRequiredStr)
29991
+ return str;
29992
+ hasRequiredStr = 1;
29993
+ const Type2 = requireType();
29994
+ str = new Type2("tag:yaml.org,2002:str", {
29962
29995
  kind: "scalar",
29963
29996
  construct: function(data) {
29964
29997
  return data !== null ? data : "";
29965
29998
  }
29966
29999
  });
29967
- });
29968
- var require_seq = /* @__PURE__ */ __commonJSMin((exports, module) => {
29969
- module.exports = new (require_type())("tag:yaml.org,2002:seq", {
30000
+ return str;
30001
+ }
30002
+ var seq;
30003
+ var hasRequiredSeq;
30004
+ function requireSeq() {
30005
+ if (hasRequiredSeq)
30006
+ return seq;
30007
+ hasRequiredSeq = 1;
30008
+ const Type2 = requireType();
30009
+ seq = new Type2("tag:yaml.org,2002:seq", {
29970
30010
  kind: "sequence",
29971
30011
  construct: function(data) {
29972
30012
  return data !== null ? data : [];
29973
30013
  }
29974
30014
  });
29975
- });
29976
- var require_map = /* @__PURE__ */ __commonJSMin((exports, module) => {
29977
- module.exports = new (require_type())("tag:yaml.org,2002:map", {
30015
+ return seq;
30016
+ }
30017
+ var map;
30018
+ var hasRequiredMap;
30019
+ function requireMap() {
30020
+ if (hasRequiredMap)
30021
+ return map;
30022
+ hasRequiredMap = 1;
30023
+ const Type2 = requireType();
30024
+ map = new Type2("tag:yaml.org,2002:map", {
29978
30025
  kind: "mapping",
29979
30026
  construct: function(data) {
29980
30027
  return data !== null ? data : {};
29981
30028
  }
29982
30029
  });
29983
- });
29984
- var require_failsafe = /* @__PURE__ */ __commonJSMin((exports, module) => {
29985
- module.exports = new (require_schema())({ explicit: [
29986
- require_str(),
29987
- require_seq(),
29988
- require_map()
29989
- ] });
29990
- });
29991
- var require_null = /* @__PURE__ */ __commonJSMin((exports, module) => {
29992
- var Type = require_type();
30030
+ return map;
30031
+ }
30032
+ var failsafe;
30033
+ var hasRequiredFailsafe;
30034
+ function requireFailsafe() {
30035
+ if (hasRequiredFailsafe)
30036
+ return failsafe;
30037
+ hasRequiredFailsafe = 1;
30038
+ const Schema2 = requireSchema();
30039
+ failsafe = new Schema2({
30040
+ explicit: [
30041
+ requireStr(),
30042
+ requireSeq(),
30043
+ requireMap()
30044
+ ]
30045
+ });
30046
+ return failsafe;
30047
+ }
30048
+ var _null;
30049
+ var hasRequired_null;
30050
+ function require_null() {
30051
+ if (hasRequired_null)
30052
+ return _null;
30053
+ hasRequired_null = 1;
30054
+ const Type2 = requireType();
29993
30055
  function resolveYamlNull(data) {
29994
30056
  if (data === null)
29995
30057
  return true;
@@ -30002,7 +30064,7 @@ var require_null = /* @__PURE__ */ __commonJSMin((exports, module) => {
30002
30064
  function isNull(object) {
30003
30065
  return object === null;
30004
30066
  }
30005
- module.exports = new Type("tag:yaml.org,2002:null", {
30067
+ _null = new Type2("tag:yaml.org,2002:null", {
30006
30068
  kind: "scalar",
30007
30069
  resolve: resolveYamlNull,
30008
30070
  construct: constructYamlNull,
@@ -30026,9 +30088,15 @@ var require_null = /* @__PURE__ */ __commonJSMin((exports, module) => {
30026
30088
  },
30027
30089
  defaultStyle: "lowercase"
30028
30090
  });
30029
- });
30030
- var require_bool = /* @__PURE__ */ __commonJSMin((exports, module) => {
30031
- var Type = require_type();
30091
+ return _null;
30092
+ }
30093
+ var bool;
30094
+ var hasRequiredBool;
30095
+ function requireBool() {
30096
+ if (hasRequiredBool)
30097
+ return bool;
30098
+ hasRequiredBool = 1;
30099
+ const Type2 = requireType();
30032
30100
  function resolveYamlBoolean(data) {
30033
30101
  if (data === null)
30034
30102
  return false;
@@ -30041,7 +30109,7 @@ var require_bool = /* @__PURE__ */ __commonJSMin((exports, module) => {
30041
30109
  function isBoolean(object) {
30042
30110
  return Object.prototype.toString.call(object) === "[object Boolean]";
30043
30111
  }
30044
- module.exports = new Type("tag:yaml.org,2002:bool", {
30112
+ bool = new Type2("tag:yaml.org,2002:bool", {
30045
30113
  kind: "scalar",
30046
30114
  resolve: resolveYamlBoolean,
30047
30115
  construct: constructYamlBoolean,
@@ -30059,10 +30127,16 @@ var require_bool = /* @__PURE__ */ __commonJSMin((exports, module) => {
30059
30127
  },
30060
30128
  defaultStyle: "lowercase"
30061
30129
  });
30062
- });
30063
- var require_int = /* @__PURE__ */ __commonJSMin((exports, module) => {
30064
- var common = require_common();
30065
- var Type = require_type();
30130
+ return bool;
30131
+ }
30132
+ var int;
30133
+ var hasRequiredInt;
30134
+ function requireInt() {
30135
+ if (hasRequiredInt)
30136
+ return int;
30137
+ hasRequiredInt = 1;
30138
+ const common2 = requireCommon();
30139
+ const Type2 = requireType();
30066
30140
  function isHexCode(c) {
30067
30141
  return c >= 48 && c <= 57 || c >= 65 && c <= 70 || c >= 97 && c <= 102;
30068
30142
  }
@@ -30081,8 +30155,9 @@ var require_int = /* @__PURE__ */ __commonJSMin((exports, module) => {
30081
30155
  if (!max)
30082
30156
  return false;
30083
30157
  let ch = data[index];
30084
- if (ch === "-" || ch === "+")
30158
+ if (ch === "-" || ch === "+") {
30085
30159
  ch = data[++index];
30160
+ }
30086
30161
  if (ch === "0") {
30087
30162
  if (index + 1 === max)
30088
30163
  return true;
@@ -30095,7 +30170,7 @@ var require_int = /* @__PURE__ */ __commonJSMin((exports, module) => {
30095
30170
  return false;
30096
30171
  hasDigits = true;
30097
30172
  }
30098
- return hasDigits && Number.isFinite(parseYamlInteger(data));
30173
+ return hasDigits && isFinite(parseYamlInteger(data));
30099
30174
  }
30100
30175
  if (ch === "x") {
30101
30176
  index++;
@@ -30104,7 +30179,7 @@ var require_int = /* @__PURE__ */ __commonJSMin((exports, module) => {
30104
30179
  return false;
30105
30180
  hasDigits = true;
30106
30181
  }
30107
- return hasDigits && Number.isFinite(parseYamlInteger(data));
30182
+ return hasDigits && isFinite(parseYamlInteger(data));
30108
30183
  }
30109
30184
  if (ch === "o") {
30110
30185
  index++;
@@ -30113,17 +30188,18 @@ var require_int = /* @__PURE__ */ __commonJSMin((exports, module) => {
30113
30188
  return false;
30114
30189
  hasDigits = true;
30115
30190
  }
30116
- return hasDigits && Number.isFinite(parseYamlInteger(data));
30191
+ return hasDigits && isFinite(parseYamlInteger(data));
30117
30192
  }
30118
30193
  }
30119
30194
  for (;index < max; index++) {
30120
- if (!isDecCode(data.charCodeAt(index)))
30195
+ if (!isDecCode(data.charCodeAt(index))) {
30121
30196
  return false;
30197
+ }
30122
30198
  hasDigits = true;
30123
30199
  }
30124
30200
  if (!hasDigits)
30125
30201
  return false;
30126
- return Number.isFinite(parseYamlInteger(data));
30202
+ return isFinite(parseYamlInteger(data));
30127
30203
  }
30128
30204
  function parseYamlInteger(data) {
30129
30205
  let value = data;
@@ -30151,9 +30227,9 @@ var require_int = /* @__PURE__ */ __commonJSMin((exports, module) => {
30151
30227
  return parseYamlInteger(data);
30152
30228
  }
30153
30229
  function isInteger(object) {
30154
- return Object.prototype.toString.call(object) === "[object Number]" && object % 1 === 0 && !common.isNegativeZero(object);
30230
+ return Object.prototype.toString.call(object) === "[object Number]" && (object % 1 === 0 && !common2.isNegativeZero(object));
30155
30231
  }
30156
- module.exports = new Type("tag:yaml.org,2002:int", {
30232
+ int = new Type2("tag:yaml.org,2002:int", {
30157
30233
  kind: "scalar",
30158
30234
  resolve: resolveYamlInteger,
30159
30235
  construct: constructYamlInteger,
@@ -30180,35 +30256,45 @@ var require_int = /* @__PURE__ */ __commonJSMin((exports, module) => {
30180
30256
  hexadecimal: [16, "hex"]
30181
30257
  }
30182
30258
  });
30183
- });
30184
- var require_float = /* @__PURE__ */ __commonJSMin((exports, module) => {
30185
- var common = require_common();
30186
- var Type = require_type();
30187
- 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))$");
30188
- var YAML_FLOAT_SPECIAL_PATTERN = /* @__PURE__ */ new RegExp("^(?:[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");
30259
+ return int;
30260
+ }
30261
+ var float;
30262
+ var hasRequiredFloat;
30263
+ function requireFloat() {
30264
+ if (hasRequiredFloat)
30265
+ return float;
30266
+ hasRequiredFloat = 1;
30267
+ const common2 = requireCommon();
30268
+ const Type2 = requireType();
30269
+ const YAML_FLOAT_PATTERN = new RegExp("^(?:[-+]?(?:[0-9]+)(?:\\.[0-9]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");
30270
+ const YAML_FLOAT_SPECIAL_PATTERN = new RegExp("^(?:[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");
30189
30271
  function resolveYamlFloat(data) {
30190
30272
  if (data === null)
30191
30273
  return false;
30192
- if (!YAML_FLOAT_PATTERN.test(data))
30274
+ if (!YAML_FLOAT_PATTERN.test(data)) {
30193
30275
  return false;
30194
- if (Number.isFinite(parseFloat(data, 10)))
30276
+ }
30277
+ if (isFinite(parseFloat(data, 10))) {
30195
30278
  return true;
30279
+ }
30196
30280
  return YAML_FLOAT_SPECIAL_PATTERN.test(data);
30197
30281
  }
30198
30282
  function constructYamlFloat(data) {
30199
30283
  let value = data.toLowerCase();
30200
30284
  const sign = value[0] === "-" ? -1 : 1;
30201
- if ("+-".indexOf(value[0]) >= 0)
30285
+ if ("+-".indexOf(value[0]) >= 0) {
30202
30286
  value = value.slice(1);
30203
- if (value === ".inf")
30287
+ }
30288
+ if (value === ".inf") {
30204
30289
  return sign === 1 ? Number.POSITIVE_INFINITY : Number.NEGATIVE_INFINITY;
30205
- else if (value === ".nan")
30290
+ } else if (value === ".nan") {
30206
30291
  return NaN;
30292
+ }
30207
30293
  return sign * parseFloat(value, 10);
30208
30294
  }
30209
- var SCIENTIFIC_WITHOUT_DOT = /^[-+]?[0-9]+e/;
30295
+ const SCIENTIFIC_WITHOUT_DOT = /^[-+]?[0-9]+e/;
30210
30296
  function representYamlFloat(object, style) {
30211
- if (isNaN(object))
30297
+ if (isNaN(object)) {
30212
30298
  switch (style) {
30213
30299
  case "lowercase":
30214
30300
  return ".nan";
@@ -30217,7 +30303,7 @@ var require_float = /* @__PURE__ */ __commonJSMin((exports, module) => {
30217
30303
  case "camelcase":
30218
30304
  return ".NaN";
30219
30305
  }
30220
- else if (Number.POSITIVE_INFINITY === object)
30306
+ } else if (Number.POSITIVE_INFINITY === object) {
30221
30307
  switch (style) {
30222
30308
  case "lowercase":
30223
30309
  return ".inf";
@@ -30226,7 +30312,7 @@ var require_float = /* @__PURE__ */ __commonJSMin((exports, module) => {
30226
30312
  case "camelcase":
30227
30313
  return ".Inf";
30228
30314
  }
30229
- else if (Number.NEGATIVE_INFINITY === object)
30315
+ } else if (Number.NEGATIVE_INFINITY === object) {
30230
30316
  switch (style) {
30231
30317
  case "lowercase":
30232
30318
  return "-.inf";
@@ -30235,15 +30321,16 @@ var require_float = /* @__PURE__ */ __commonJSMin((exports, module) => {
30235
30321
  case "camelcase":
30236
30322
  return "-.Inf";
30237
30323
  }
30238
- else if (common.isNegativeZero(object))
30324
+ } else if (common2.isNegativeZero(object)) {
30239
30325
  return "-0.0";
30326
+ }
30240
30327
  const res = object.toString(10);
30241
30328
  return SCIENTIFIC_WITHOUT_DOT.test(res) ? res.replace("e", ".e") : res;
30242
30329
  }
30243
30330
  function isFloat(object) {
30244
- return Object.prototype.toString.call(object) === "[object Number]" && (object % 1 !== 0 || common.isNegativeZero(object));
30331
+ return Object.prototype.toString.call(object) === "[object Number]" && (object % 1 !== 0 || common2.isNegativeZero(object));
30245
30332
  }
30246
- module.exports = new Type("tag:yaml.org,2002:float", {
30333
+ float = new Type2("tag:yaml.org,2002:float", {
30247
30334
  kind: "scalar",
30248
30335
  resolve: resolveYamlFloat,
30249
30336
  construct: constructYamlFloat,
@@ -30251,22 +30338,42 @@ var require_float = /* @__PURE__ */ __commonJSMin((exports, module) => {
30251
30338
  represent: representYamlFloat,
30252
30339
  defaultStyle: "lowercase"
30253
30340
  });
30254
- });
30255
- var require_json = /* @__PURE__ */ __commonJSMin((exports, module) => {
30256
- module.exports = require_failsafe().extend({ implicit: [
30257
- require_null(),
30258
- require_bool(),
30259
- require_int(),
30260
- require_float()
30261
- ] });
30262
- });
30263
- var require_core = /* @__PURE__ */ __commonJSMin((exports, module) => {
30264
- module.exports = require_json();
30265
- });
30266
- var require_timestamp = /* @__PURE__ */ __commonJSMin((exports, module) => {
30267
- var Type = require_type();
30268
- var YAML_DATE_REGEXP = /* @__PURE__ */ new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$");
30269
- 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]))?))?$");
30341
+ return float;
30342
+ }
30343
+ var json;
30344
+ var hasRequiredJson;
30345
+ function requireJson() {
30346
+ if (hasRequiredJson)
30347
+ return json;
30348
+ hasRequiredJson = 1;
30349
+ json = requireFailsafe().extend({
30350
+ implicit: [
30351
+ require_null(),
30352
+ requireBool(),
30353
+ requireInt(),
30354
+ requireFloat()
30355
+ ]
30356
+ });
30357
+ return json;
30358
+ }
30359
+ var core;
30360
+ var hasRequiredCore;
30361
+ function requireCore() {
30362
+ if (hasRequiredCore)
30363
+ return core;
30364
+ hasRequiredCore = 1;
30365
+ core = requireJson();
30366
+ return core;
30367
+ }
30368
+ var timestamp;
30369
+ var hasRequiredTimestamp;
30370
+ function requireTimestamp() {
30371
+ if (hasRequiredTimestamp)
30372
+ return timestamp;
30373
+ hasRequiredTimestamp = 1;
30374
+ const Type2 = requireType();
30375
+ const YAML_DATE_REGEXP = new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$");
30376
+ 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]))?))?$");
30270
30377
  function resolveYamlTimestamp(data) {
30271
30378
  if (data === null)
30272
30379
  return false;
@@ -30287,15 +30394,17 @@ var require_timestamp = /* @__PURE__ */ __commonJSMin((exports, module) => {
30287
30394
  const year = +match[1];
30288
30395
  const month = +match[2] - 1;
30289
30396
  const day = +match[3];
30290
- if (!match[4])
30397
+ if (!match[4]) {
30291
30398
  return new Date(Date.UTC(year, month, day));
30399
+ }
30292
30400
  const hour = +match[4];
30293
30401
  const minute = +match[5];
30294
30402
  const second = +match[6];
30295
30403
  if (match[7]) {
30296
30404
  fraction = match[7].slice(0, 3);
30297
- while (fraction.length < 3)
30405
+ while (fraction.length < 3) {
30298
30406
  fraction += "0";
30407
+ }
30299
30408
  fraction = +fraction;
30300
30409
  }
30301
30410
  if (match[9]) {
@@ -30313,36 +30422,48 @@ var require_timestamp = /* @__PURE__ */ __commonJSMin((exports, module) => {
30313
30422
  function representYamlTimestamp(object) {
30314
30423
  return object.toISOString();
30315
30424
  }
30316
- module.exports = new Type("tag:yaml.org,2002:timestamp", {
30425
+ timestamp = new Type2("tag:yaml.org,2002:timestamp", {
30317
30426
  kind: "scalar",
30318
30427
  resolve: resolveYamlTimestamp,
30319
30428
  construct: constructYamlTimestamp,
30320
30429
  instanceOf: Date,
30321
30430
  represent: representYamlTimestamp
30322
30431
  });
30323
- });
30324
- var require_merge = /* @__PURE__ */ __commonJSMin((exports, module) => {
30325
- var Type = require_type();
30432
+ return timestamp;
30433
+ }
30434
+ var merge;
30435
+ var hasRequiredMerge;
30436
+ function requireMerge() {
30437
+ if (hasRequiredMerge)
30438
+ return merge;
30439
+ hasRequiredMerge = 1;
30440
+ const Type2 = requireType();
30326
30441
  function resolveYamlMerge(data) {
30327
30442
  return data === "<<" || data === null;
30328
30443
  }
30329
- module.exports = new Type("tag:yaml.org,2002:merge", {
30444
+ merge = new Type2("tag:yaml.org,2002:merge", {
30330
30445
  kind: "scalar",
30331
30446
  resolve: resolveYamlMerge
30332
30447
  });
30333
- });
30334
- var require_binary = /* @__PURE__ */ __commonJSMin((exports, module) => {
30335
- var Type = require_type();
30336
- var BASE64_MAP = `ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
30448
+ return merge;
30449
+ }
30450
+ var binary;
30451
+ var hasRequiredBinary;
30452
+ function requireBinary() {
30453
+ if (hasRequiredBinary)
30454
+ return binary;
30455
+ hasRequiredBinary = 1;
30456
+ const Type2 = requireType();
30457
+ const BASE64_MAP = `ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
30337
30458
  \r`;
30338
30459
  function resolveYamlBinary(data) {
30339
30460
  if (data === null)
30340
30461
  return false;
30341
30462
  let bitlen = 0;
30342
30463
  const max = data.length;
30343
- const map = BASE64_MAP;
30464
+ const map2 = BASE64_MAP;
30344
30465
  for (let idx = 0;idx < max; idx++) {
30345
- const code = map.indexOf(data.charAt(idx));
30466
+ const code = map2.indexOf(data.charAt(idx));
30346
30467
  if (code > 64)
30347
30468
  continue;
30348
30469
  if (code < 0)
@@ -30354,7 +30475,7 @@ var require_binary = /* @__PURE__ */ __commonJSMin((exports, module) => {
30354
30475
  function constructYamlBinary(data) {
30355
30476
  const input = data.replace(/[\r\n=]/g, "");
30356
30477
  const max = input.length;
30357
- const map = BASE64_MAP;
30478
+ const map2 = BASE64_MAP;
30358
30479
  let bits = 0;
30359
30480
  const result = [];
30360
30481
  for (let idx = 0;idx < max; idx++) {
@@ -30363,7 +30484,7 @@ var require_binary = /* @__PURE__ */ __commonJSMin((exports, module) => {
30363
30484
  result.push(bits >> 8 & 255);
30364
30485
  result.push(bits & 255);
30365
30486
  }
30366
- bits = bits << 6 | map.indexOf(input.charAt(idx));
30487
+ bits = bits << 6 | map2.indexOf(input.charAt(idx));
30367
30488
  }
30368
30489
  const tailbits = max % 4 * 6;
30369
30490
  if (tailbits === 0) {
@@ -30373,58 +30494,65 @@ var require_binary = /* @__PURE__ */ __commonJSMin((exports, module) => {
30373
30494
  } else if (tailbits === 18) {
30374
30495
  result.push(bits >> 10 & 255);
30375
30496
  result.push(bits >> 2 & 255);
30376
- } else if (tailbits === 12)
30497
+ } else if (tailbits === 12) {
30377
30498
  result.push(bits >> 4 & 255);
30499
+ }
30378
30500
  return new Uint8Array(result);
30379
30501
  }
30380
30502
  function representYamlBinary(object) {
30381
30503
  let result = "";
30382
30504
  let bits = 0;
30383
30505
  const max = object.length;
30384
- const map = BASE64_MAP;
30506
+ const map2 = BASE64_MAP;
30385
30507
  for (let idx = 0;idx < max; idx++) {
30386
30508
  if (idx % 3 === 0 && idx) {
30387
- result += map[bits >> 18 & 63];
30388
- result += map[bits >> 12 & 63];
30389
- result += map[bits >> 6 & 63];
30390
- result += map[bits & 63];
30509
+ result += map2[bits >> 18 & 63];
30510
+ result += map2[bits >> 12 & 63];
30511
+ result += map2[bits >> 6 & 63];
30512
+ result += map2[bits & 63];
30391
30513
  }
30392
30514
  bits = (bits << 8) + object[idx];
30393
30515
  }
30394
30516
  const tail = max % 3;
30395
30517
  if (tail === 0) {
30396
- result += map[bits >> 18 & 63];
30397
- result += map[bits >> 12 & 63];
30398
- result += map[bits >> 6 & 63];
30399
- result += map[bits & 63];
30518
+ result += map2[bits >> 18 & 63];
30519
+ result += map2[bits >> 12 & 63];
30520
+ result += map2[bits >> 6 & 63];
30521
+ result += map2[bits & 63];
30400
30522
  } else if (tail === 2) {
30401
- result += map[bits >> 10 & 63];
30402
- result += map[bits >> 4 & 63];
30403
- result += map[bits << 2 & 63];
30404
- result += map[64];
30523
+ result += map2[bits >> 10 & 63];
30524
+ result += map2[bits >> 4 & 63];
30525
+ result += map2[bits << 2 & 63];
30526
+ result += map2[64];
30405
30527
  } else if (tail === 1) {
30406
- result += map[bits >> 2 & 63];
30407
- result += map[bits << 4 & 63];
30408
- result += map[64];
30409
- result += map[64];
30528
+ result += map2[bits >> 2 & 63];
30529
+ result += map2[bits << 4 & 63];
30530
+ result += map2[64];
30531
+ result += map2[64];
30410
30532
  }
30411
30533
  return result;
30412
30534
  }
30413
30535
  function isBinary(obj) {
30414
30536
  return Object.prototype.toString.call(obj) === "[object Uint8Array]";
30415
30537
  }
30416
- module.exports = new Type("tag:yaml.org,2002:binary", {
30538
+ binary = new Type2("tag:yaml.org,2002:binary", {
30417
30539
  kind: "scalar",
30418
30540
  resolve: resolveYamlBinary,
30419
30541
  construct: constructYamlBinary,
30420
30542
  predicate: isBinary,
30421
30543
  represent: representYamlBinary
30422
30544
  });
30423
- });
30424
- var require_omap = /* @__PURE__ */ __commonJSMin((exports, module) => {
30425
- var Type = require_type();
30426
- var _hasOwnProperty = Object.prototype.hasOwnProperty;
30427
- var _toString = Object.prototype.toString;
30545
+ return binary;
30546
+ }
30547
+ var omap;
30548
+ var hasRequiredOmap;
30549
+ function requireOmap() {
30550
+ if (hasRequiredOmap)
30551
+ return omap;
30552
+ hasRequiredOmap = 1;
30553
+ const Type2 = requireType();
30554
+ const _hasOwnProperty = Object.prototype.hasOwnProperty;
30555
+ const _toString = Object.prototype.toString;
30428
30556
  function resolveYamlOmap(data) {
30429
30557
  if (data === null)
30430
30558
  return true;
@@ -30436,12 +30564,14 @@ var require_omap = /* @__PURE__ */ __commonJSMin((exports, module) => {
30436
30564
  if (_toString.call(pair) !== "[object Object]")
30437
30565
  return false;
30438
30566
  let pairKey;
30439
- for (pairKey in pair)
30440
- if (_hasOwnProperty.call(pair, pairKey))
30567
+ for (pairKey in pair) {
30568
+ if (_hasOwnProperty.call(pair, pairKey)) {
30441
30569
  if (!pairHasKey)
30442
30570
  pairHasKey = true;
30443
30571
  else
30444
30572
  return false;
30573
+ }
30574
+ }
30445
30575
  if (!pairHasKey)
30446
30576
  return false;
30447
30577
  if (objectKeys.indexOf(pairKey) === -1)
@@ -30454,15 +30584,21 @@ var require_omap = /* @__PURE__ */ __commonJSMin((exports, module) => {
30454
30584
  function constructYamlOmap(data) {
30455
30585
  return data !== null ? data : [];
30456
30586
  }
30457
- module.exports = new Type("tag:yaml.org,2002:omap", {
30587
+ omap = new Type2("tag:yaml.org,2002:omap", {
30458
30588
  kind: "sequence",
30459
30589
  resolve: resolveYamlOmap,
30460
30590
  construct: constructYamlOmap
30461
30591
  });
30462
- });
30463
- var require_pairs = /* @__PURE__ */ __commonJSMin((exports, module) => {
30464
- var Type = require_type();
30465
- var _toString = Object.prototype.toString;
30592
+ return omap;
30593
+ }
30594
+ var pairs;
30595
+ var hasRequiredPairs;
30596
+ function requirePairs() {
30597
+ if (hasRequiredPairs)
30598
+ return pairs;
30599
+ hasRequiredPairs = 1;
30600
+ const Type2 = requireType();
30601
+ const _toString = Object.prototype.toString;
30466
30602
  function resolveYamlPairs(data) {
30467
30603
  if (data === null)
30468
30604
  return true;
@@ -30491,64 +30627,85 @@ var require_pairs = /* @__PURE__ */ __commonJSMin((exports, module) => {
30491
30627
  }
30492
30628
  return result;
30493
30629
  }
30494
- module.exports = new Type("tag:yaml.org,2002:pairs", {
30630
+ pairs = new Type2("tag:yaml.org,2002:pairs", {
30495
30631
  kind: "sequence",
30496
30632
  resolve: resolveYamlPairs,
30497
30633
  construct: constructYamlPairs
30498
30634
  });
30499
- });
30500
- var require_set = /* @__PURE__ */ __commonJSMin((exports, module) => {
30501
- var Type = require_type();
30502
- var _hasOwnProperty = Object.prototype.hasOwnProperty;
30635
+ return pairs;
30636
+ }
30637
+ var set;
30638
+ var hasRequiredSet;
30639
+ function requireSet() {
30640
+ if (hasRequiredSet)
30641
+ return set;
30642
+ hasRequiredSet = 1;
30643
+ const Type2 = requireType();
30644
+ const _hasOwnProperty = Object.prototype.hasOwnProperty;
30503
30645
  function resolveYamlSet(data) {
30504
30646
  if (data === null)
30505
30647
  return true;
30506
30648
  const object = data;
30507
- for (const key in object)
30649
+ for (const key in object) {
30508
30650
  if (_hasOwnProperty.call(object, key)) {
30509
30651
  if (object[key] !== null)
30510
30652
  return false;
30511
30653
  }
30654
+ }
30512
30655
  return true;
30513
30656
  }
30514
30657
  function constructYamlSet(data) {
30515
30658
  return data !== null ? data : {};
30516
30659
  }
30517
- module.exports = new Type("tag:yaml.org,2002:set", {
30660
+ set = new Type2("tag:yaml.org,2002:set", {
30518
30661
  kind: "mapping",
30519
30662
  resolve: resolveYamlSet,
30520
30663
  construct: constructYamlSet
30521
30664
  });
30522
- });
30523
- var require_default = /* @__PURE__ */ __commonJSMin((exports, module) => {
30524
- module.exports = require_core().extend({
30525
- implicit: [require_timestamp(), require_merge()],
30665
+ return set;
30666
+ }
30667
+ var _default;
30668
+ var hasRequired_default;
30669
+ function require_default() {
30670
+ if (hasRequired_default)
30671
+ return _default;
30672
+ hasRequired_default = 1;
30673
+ _default = requireCore().extend({
30674
+ implicit: [
30675
+ requireTimestamp(),
30676
+ requireMerge()
30677
+ ],
30526
30678
  explicit: [
30527
- require_binary(),
30528
- require_omap(),
30529
- require_pairs(),
30530
- require_set()
30679
+ requireBinary(),
30680
+ requireOmap(),
30681
+ requirePairs(),
30682
+ requireSet()
30531
30683
  ]
30532
30684
  });
30533
- });
30534
- var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
30535
- var common = require_common();
30536
- var YAMLException = require_exception();
30537
- var makeSnippet = require_snippet();
30538
- var DEFAULT_SCHEMA = require_default();
30539
- var _hasOwnProperty = Object.prototype.hasOwnProperty;
30540
- var CONTEXT_FLOW_IN = 1;
30541
- var CONTEXT_FLOW_OUT = 2;
30542
- var CONTEXT_BLOCK_IN = 3;
30543
- var CONTEXT_BLOCK_OUT = 4;
30544
- var CHOMPING_CLIP = 1;
30545
- var CHOMPING_STRIP = 2;
30546
- var CHOMPING_KEEP = 3;
30547
- var PATTERN_NON_PRINTABLE = /[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/;
30548
- var PATTERN_NON_ASCII_LINE_BREAKS = /[\x85\u2028\u2029]/;
30549
- var PATTERN_FLOW_INDICATORS = /[,\[\]{}]/;
30550
- var PATTERN_TAG_HANDLE = /^(?:!|!!|![0-9A-Za-z-]+!)$/;
30551
- var PATTERN_TAG_URI = /^(?:!|[^,\[\]{}])(?:%[0-9a-f]{2}|[0-9a-z\-#;/?:@&=+$,_.!~*'()\[\]])*$/i;
30685
+ return _default;
30686
+ }
30687
+ var hasRequiredLoader;
30688
+ function requireLoader() {
30689
+ if (hasRequiredLoader)
30690
+ return loader;
30691
+ hasRequiredLoader = 1;
30692
+ const common2 = requireCommon();
30693
+ const YAMLException2 = requireException();
30694
+ const makeSnippet = requireSnippet();
30695
+ const DEFAULT_SCHEMA2 = require_default();
30696
+ const _hasOwnProperty = Object.prototype.hasOwnProperty;
30697
+ const CONTEXT_FLOW_IN = 1;
30698
+ const CONTEXT_FLOW_OUT = 2;
30699
+ const CONTEXT_BLOCK_IN = 3;
30700
+ const CONTEXT_BLOCK_OUT = 4;
30701
+ const CHOMPING_CLIP = 1;
30702
+ const CHOMPING_STRIP = 2;
30703
+ const CHOMPING_KEEP = 3;
30704
+ const PATTERN_NON_PRINTABLE = /[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/;
30705
+ const PATTERN_NON_ASCII_LINE_BREAKS = /[\x85\u2028\u2029]/;
30706
+ const PATTERN_FLOW_INDICATORS = /[,\[\]{}]/;
30707
+ const PATTERN_TAG_HANDLE = /^(?:!|!!|![0-9A-Za-z-]+!)$/;
30708
+ const PATTERN_TAG_URI = /^(?:!|[^,\[\]{}])(?:%[0-9a-f]{2}|[0-9a-z\-#;/?:@&=+$,_.!~*'()\[\]])*$/i;
30552
30709
  function _class(obj) {
30553
30710
  return Object.prototype.toString.call(obj);
30554
30711
  }
@@ -30565,25 +30722,31 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
30565
30722
  return c === 44 || c === 91 || c === 93 || c === 123 || c === 125;
30566
30723
  }
30567
30724
  function fromHexCode(c) {
30568
- if (c >= 48 && c <= 57)
30725
+ if (c >= 48 && c <= 57) {
30569
30726
  return c - 48;
30727
+ }
30570
30728
  const lc = c | 32;
30571
- if (lc >= 97 && lc <= 102)
30729
+ if (lc >= 97 && lc <= 102) {
30572
30730
  return lc - 97 + 10;
30731
+ }
30573
30732
  return -1;
30574
30733
  }
30575
30734
  function escapedHexLen(c) {
30576
- if (c === 120)
30735
+ if (c === 120) {
30577
30736
  return 2;
30578
- if (c === 117)
30737
+ }
30738
+ if (c === 117) {
30579
30739
  return 4;
30580
- if (c === 85)
30740
+ }
30741
+ if (c === 85) {
30581
30742
  return 8;
30743
+ }
30582
30744
  return 0;
30583
30745
  }
30584
30746
  function fromDecimalCode(c) {
30585
- if (c >= 48 && c <= 57)
30747
+ if (c >= 48 && c <= 57) {
30586
30748
  return c - 48;
30749
+ }
30587
30750
  return -1;
30588
30751
  }
30589
30752
  function simpleEscapeSequence(c) {
@@ -30630,23 +30793,25 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
30630
30793
  }
30631
30794
  }
30632
30795
  function charFromCodepoint(c) {
30633
- if (c <= 65535)
30796
+ if (c <= 65535) {
30634
30797
  return String.fromCharCode(c);
30798
+ }
30635
30799
  return String.fromCharCode((c - 65536 >> 10) + 55296, (c - 65536 & 1023) + 56320);
30636
30800
  }
30637
30801
  function setProperty(object, key, value) {
30638
- if (key === "__proto__")
30802
+ if (key === "__proto__") {
30639
30803
  Object.defineProperty(object, key, {
30640
30804
  configurable: true,
30641
30805
  enumerable: true,
30642
30806
  writable: true,
30643
30807
  value
30644
30808
  });
30645
- else
30809
+ } else {
30646
30810
  object[key] = value;
30811
+ }
30647
30812
  }
30648
- var simpleEscapeCheck = new Array(256);
30649
- var simpleEscapeMap = new Array(256);
30813
+ const simpleEscapeCheck = new Array(256);
30814
+ const simpleEscapeMap = new Array(256);
30650
30815
  for (let i = 0;i < 256; i++) {
30651
30816
  simpleEscapeCheck[i] = simpleEscapeSequence(i) ? 1 : 0;
30652
30817
  simpleEscapeMap[i] = simpleEscapeSequence(i);
@@ -30654,13 +30819,13 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
30654
30819
  function State(input, options) {
30655
30820
  this.input = input;
30656
30821
  this.filename = options["filename"] || null;
30657
- this.schema = options["schema"] || DEFAULT_SCHEMA;
30822
+ this.schema = options["schema"] || DEFAULT_SCHEMA2;
30658
30823
  this.onWarning = options["onWarning"] || null;
30659
30824
  this.legacy = options["legacy"] || false;
30660
30825
  this.json = options["json"] || false;
30661
30826
  this.listener = options["listener"] || null;
30662
30827
  this.maxDepth = typeof options["maxDepth"] === "number" ? options["maxDepth"] : 100;
30663
- this.maxMergeSeqLength = typeof options["maxMergeSeqLength"] === "number" ? options["maxMergeSeqLength"] : 20;
30828
+ this.maxTotalMergeKeys = typeof options["maxTotalMergeKeys"] === "number" ? options["maxTotalMergeKeys"] : 1e4;
30664
30829
  this.implicitTypes = this.schema.compiledImplicit;
30665
30830
  this.typeMap = this.schema.compiledTypeMap;
30666
30831
  this.length = input.length;
@@ -30669,6 +30834,7 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
30669
30834
  this.lineStart = 0;
30670
30835
  this.lineIndent = 0;
30671
30836
  this.depth = 0;
30837
+ this.totalMergeKeys = 0;
30672
30838
  this.firstTabInLine = -1;
30673
30839
  this.documents = [];
30674
30840
  this.anchorMapTransactions = [];
@@ -30682,29 +30848,31 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
30682
30848
  column: state.position - state.lineStart
30683
30849
  };
30684
30850
  mark.snippet = makeSnippet(mark);
30685
- return new YAMLException(message, mark);
30851
+ return new YAMLException2(message, mark);
30686
30852
  }
30687
30853
  function throwError(state, message) {
30688
30854
  throw generateError(state, message);
30689
30855
  }
30690
30856
  function throwWarning(state, message) {
30691
- if (state.onWarning)
30857
+ if (state.onWarning) {
30692
30858
  state.onWarning.call(null, generateError(state, message));
30859
+ }
30693
30860
  }
30694
30861
  function storeAnchor(state, name, value) {
30695
30862
  const transactions = state.anchorMapTransactions;
30696
30863
  if (transactions.length !== 0) {
30697
30864
  const transaction = transactions[transactions.length - 1];
30698
- if (!_hasOwnProperty.call(transaction, name))
30865
+ if (!_hasOwnProperty.call(transaction, name)) {
30699
30866
  transaction[name] = {
30700
30867
  existed: _hasOwnProperty.call(state.anchorMap, name),
30701
30868
  value: state.anchorMap[name]
30702
30869
  };
30870
+ }
30703
30871
  }
30704
30872
  state.anchorMap[name] = value;
30705
30873
  }
30706
30874
  function beginAnchorTransaction(state) {
30707
- state.anchorMapTransactions.push(Object.create(null));
30875
+ state.anchorMapTransactions.push(/* @__PURE__ */ Object.create(null));
30708
30876
  }
30709
30877
  function commitAnchorTransaction(state) {
30710
30878
  const transaction = state.anchorMapTransactions.pop();
@@ -30715,8 +30883,9 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
30715
30883
  const names = Object.keys(transaction);
30716
30884
  for (let index = 0, length = names.length;index < length; index += 1) {
30717
30885
  const name = names[index];
30718
- if (!_hasOwnProperty.call(parent, name))
30886
+ if (!_hasOwnProperty.call(parent, name)) {
30719
30887
  parent[name] = transaction[name];
30888
+ }
30720
30889
  }
30721
30890
  }
30722
30891
  function rollbackAnchorTransaction(state) {
@@ -30724,10 +30893,11 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
30724
30893
  const names = Object.keys(transaction);
30725
30894
  for (let index = names.length - 1;index >= 0; index -= 1) {
30726
30895
  const entry = transaction[names[index]];
30727
- if (entry.existed)
30896
+ if (entry.existed) {
30728
30897
  state.anchorMap[names[index]] = entry.value;
30729
- else
30898
+ } else {
30730
30899
  delete state.anchorMap[names[index]];
30900
+ }
30731
30901
  }
30732
30902
  }
30733
30903
  function snapshotState(state) {
@@ -30754,36 +30924,45 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
30754
30924
  state.kind = snapshot.kind;
30755
30925
  state.result = snapshot.result;
30756
30926
  }
30757
- var directiveHandlers = {
30927
+ const directiveHandlers = {
30758
30928
  YAML: function handleYamlDirective(state, name, args) {
30759
- if (state.version !== null)
30929
+ if (state.version !== null) {
30760
30930
  throwError(state, "duplication of %YAML directive");
30761
- if (args.length !== 1)
30931
+ }
30932
+ if (args.length !== 1) {
30762
30933
  throwError(state, "YAML directive accepts exactly one argument");
30934
+ }
30763
30935
  const match = /^([0-9]+)\.([0-9]+)$/.exec(args[0]);
30764
- if (match === null)
30936
+ if (match === null) {
30765
30937
  throwError(state, "ill-formed argument of the YAML directive");
30938
+ }
30766
30939
  const major = parseInt(match[1], 10);
30767
30940
  const minor = parseInt(match[2], 10);
30768
- if (major !== 1)
30941
+ if (major !== 1) {
30769
30942
  throwError(state, "unacceptable YAML version of the document");
30943
+ }
30770
30944
  state.version = args[0];
30771
30945
  state.checkLineBreaks = minor < 2;
30772
- if (minor !== 1 && minor !== 2)
30946
+ if (minor !== 1 && minor !== 2) {
30773
30947
  throwWarning(state, "unsupported YAML version of the document");
30948
+ }
30774
30949
  },
30775
30950
  TAG: function handleTagDirective(state, name, args) {
30776
30951
  let prefix;
30777
- if (args.length !== 2)
30952
+ if (args.length !== 2) {
30778
30953
  throwError(state, "TAG directive accepts exactly two arguments");
30954
+ }
30779
30955
  const handle = args[0];
30780
30956
  prefix = args[1];
30781
- if (!PATTERN_TAG_HANDLE.test(handle))
30957
+ if (!PATTERN_TAG_HANDLE.test(handle)) {
30782
30958
  throwError(state, "ill-formed tag handle (first argument) of the TAG directive");
30783
- if (_hasOwnProperty.call(state.tagMap, handle))
30959
+ }
30960
+ if (_hasOwnProperty.call(state.tagMap, handle)) {
30784
30961
  throwError(state, 'there is a previously declared suffix for "' + handle + '" tag handle');
30785
- if (!PATTERN_TAG_URI.test(prefix))
30962
+ }
30963
+ if (!PATTERN_TAG_URI.test(prefix)) {
30786
30964
  throwError(state, "ill-formed tag prefix (second argument) of the TAG directive");
30965
+ }
30787
30966
  try {
30788
30967
  prefix = decodeURIComponent(prefix);
30789
30968
  } catch (err) {
@@ -30795,23 +30974,29 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
30795
30974
  function captureSegment(state, start, end, checkJson) {
30796
30975
  if (start < end) {
30797
30976
  const _result = state.input.slice(start, end);
30798
- if (checkJson)
30977
+ if (checkJson) {
30799
30978
  for (let _position = 0, _length = _result.length;_position < _length; _position += 1) {
30800
30979
  const _character = _result.charCodeAt(_position);
30801
- if (!(_character === 9 || _character >= 32 && _character <= 1114111))
30980
+ if (!(_character === 9 || _character >= 32 && _character <= 1114111)) {
30802
30981
  throwError(state, "expected valid JSON character");
30982
+ }
30803
30983
  }
30804
- else if (PATTERN_NON_PRINTABLE.test(_result))
30984
+ } else if (PATTERN_NON_PRINTABLE.test(_result)) {
30805
30985
  throwError(state, "the stream contains non-printable characters");
30986
+ }
30806
30987
  state.result += _result;
30807
30988
  }
30808
30989
  }
30809
30990
  function mergeMappings(state, destination, source, overridableKeys) {
30810
- if (!common.isObject(source))
30991
+ if (!common2.isObject(source)) {
30811
30992
  throwError(state, "cannot merge mappings; the provided source object is unacceptable");
30993
+ }
30812
30994
  const sourceKeys = Object.keys(source);
30813
30995
  for (let index = 0, quantity = sourceKeys.length;index < quantity; index += 1) {
30814
30996
  const key = sourceKeys[index];
30997
+ if (state.maxTotalMergeKeys !== -1 && ++state.totalMergeKeys > state.maxTotalMergeKeys) {
30998
+ throwError(state, "merge keys exceeded maxTotalMergeKeys (" + state.maxTotalMergeKeys + ")");
30999
+ }
30815
31000
  if (!_hasOwnProperty.call(destination, key)) {
30816
31001
  setProperty(destination, key, source[key]);
30817
31002
  overridableKeys[key] = true;
@@ -30822,32 +31007,30 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
30822
31007
  if (Array.isArray(keyNode)) {
30823
31008
  keyNode = Array.prototype.slice.call(keyNode);
30824
31009
  for (let index = 0, quantity = keyNode.length;index < quantity; index += 1) {
30825
- if (Array.isArray(keyNode[index]))
31010
+ if (Array.isArray(keyNode[index])) {
30826
31011
  throwError(state, "nested arrays are not supported inside keys");
30827
- if (typeof keyNode === "object" && _class(keyNode[index]) === "[object Object]")
31012
+ }
31013
+ if (typeof keyNode === "object" && _class(keyNode[index]) === "[object Object]") {
30828
31014
  keyNode[index] = "[object Object]";
31015
+ }
30829
31016
  }
30830
31017
  }
30831
- if (typeof keyNode === "object" && _class(keyNode) === "[object Object]")
31018
+ if (typeof keyNode === "object" && _class(keyNode) === "[object Object]") {
30832
31019
  keyNode = "[object Object]";
31020
+ }
30833
31021
  keyNode = String(keyNode);
30834
- if (_result === null)
31022
+ if (_result === null) {
30835
31023
  _result = {};
30836
- if (keyTag === "tag:yaml.org,2002:merge")
31024
+ }
31025
+ if (keyTag === "tag:yaml.org,2002:merge") {
30837
31026
  if (Array.isArray(valueNode)) {
30838
- if (valueNode.length > state.maxMergeSeqLength)
30839
- throwError(state, "merge sequence length exceeded maxMergeSeqLength (" + state.maxMergeSeqLength + ")");
30840
- const seen = /* @__PURE__ */ new Set;
30841
31027
  for (let index = 0, quantity = valueNode.length;index < quantity; index += 1) {
30842
- const src = valueNode[index];
30843
- if (seen.has(src))
30844
- continue;
30845
- seen.add(src);
30846
- mergeMappings(state, _result, src, overridableKeys);
31028
+ mergeMappings(state, _result, valueNode[index], overridableKeys);
30847
31029
  }
30848
- } else
31030
+ } else {
30849
31031
  mergeMappings(state, _result, valueNode, overridableKeys);
30850
- else {
31032
+ }
31033
+ } else {
30851
31034
  if (!state.json && !_hasOwnProperty.call(overridableKeys, keyNode) && _hasOwnProperty.call(_result, keyNode)) {
30852
31035
  state.line = startLine || state.line;
30853
31036
  state.lineStart = startLineStart || state.lineStart;
@@ -30861,14 +31044,16 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
30861
31044
  }
30862
31045
  function readLineBreak(state) {
30863
31046
  const ch = state.input.charCodeAt(state.position);
30864
- if (ch === 10)
31047
+ if (ch === 10) {
30865
31048
  state.position++;
30866
- else if (ch === 13) {
31049
+ } else if (ch === 13) {
30867
31050
  state.position++;
30868
- if (state.input.charCodeAt(state.position) === 10)
31051
+ if (state.input.charCodeAt(state.position) === 10) {
30869
31052
  state.position++;
30870
- } else
31053
+ }
31054
+ } else {
30871
31055
  throwError(state, "a line break is expected");
31056
+ }
30872
31057
  state.line += 1;
30873
31058
  state.lineStart = state.position;
30874
31059
  state.firstTabInLine = -1;
@@ -30878,14 +31063,16 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
30878
31063
  let ch = state.input.charCodeAt(state.position);
30879
31064
  while (ch !== 0) {
30880
31065
  while (isWhiteSpace(ch)) {
30881
- if (ch === 9 && state.firstTabInLine === -1)
31066
+ if (ch === 9 && state.firstTabInLine === -1) {
30882
31067
  state.firstTabInLine = state.position;
31068
+ }
30883
31069
  ch = state.input.charCodeAt(++state.position);
30884
31070
  }
30885
- if (allowComments && ch === 35)
30886
- do
31071
+ if (allowComments && ch === 35) {
31072
+ do {
30887
31073
  ch = state.input.charCodeAt(++state.position);
30888
- while (ch !== 10 && ch !== 13 && ch !== 0);
31074
+ } while (ch !== 10 && ch !== 13 && ch !== 0);
31075
+ }
30889
31076
  if (isEol(ch)) {
30890
31077
  readLineBreak(state);
30891
31078
  ch = state.input.charCodeAt(state.position);
@@ -30895,11 +31082,13 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
30895
31082
  state.lineIndent++;
30896
31083
  ch = state.input.charCodeAt(++state.position);
30897
31084
  }
30898
- } else
31085
+ } else {
30899
31086
  break;
31087
+ }
30900
31088
  }
30901
- if (checkIndent !== -1 && lineBreaks !== 0 && state.lineIndent < checkIndent)
31089
+ if (checkIndent !== -1 && lineBreaks !== 0 && state.lineIndent < checkIndent) {
30902
31090
  throwWarning(state, "deficient indentation");
31091
+ }
30903
31092
  return lineBreaks;
30904
31093
  }
30905
31094
  function testDocumentSeparator(state) {
@@ -30908,17 +31097,19 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
30908
31097
  if ((ch === 45 || ch === 46) && ch === state.input.charCodeAt(_position + 1) && ch === state.input.charCodeAt(_position + 2)) {
30909
31098
  _position += 3;
30910
31099
  ch = state.input.charCodeAt(_position);
30911
- if (ch === 0 || isWsOrEol(ch))
31100
+ if (ch === 0 || isWsOrEol(ch)) {
30912
31101
  return true;
31102
+ }
30913
31103
  }
30914
31104
  return false;
30915
31105
  }
30916
31106
  function writeFoldedLines(state, count) {
30917
- if (count === 1)
31107
+ if (count === 1) {
30918
31108
  state.result += " ";
30919
- else if (count > 1)
30920
- state.result += common.repeat(`
31109
+ } else if (count > 1) {
31110
+ state.result += common2.repeat(`
30921
31111
  `, count - 1);
31112
+ }
30922
31113
  }
30923
31114
  function readPlainScalar(state, nodeIndent, withinFlowCollection) {
30924
31115
  let captureStart;
@@ -30930,12 +31121,14 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
30930
31121
  const _kind = state.kind;
30931
31122
  const _result = state.result;
30932
31123
  let ch = state.input.charCodeAt(state.position);
30933
- 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)
31124
+ 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) {
30934
31125
  return false;
31126
+ }
30935
31127
  if (ch === 63 || ch === 45) {
30936
31128
  const following = state.input.charCodeAt(state.position + 1);
30937
- if (isWsOrEol(following) || withinFlowCollection && isFlowIndicator(following))
31129
+ if (isWsOrEol(following) || withinFlowCollection && isFlowIndicator(following)) {
30938
31130
  return false;
31131
+ }
30939
31132
  }
30940
31133
  state.kind = "scalar";
30941
31134
  state.result = "";
@@ -30944,14 +31137,17 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
30944
31137
  while (ch !== 0) {
30945
31138
  if (ch === 58) {
30946
31139
  const following = state.input.charCodeAt(state.position + 1);
30947
- if (isWsOrEol(following) || withinFlowCollection && isFlowIndicator(following))
31140
+ if (isWsOrEol(following) || withinFlowCollection && isFlowIndicator(following)) {
30948
31141
  break;
31142
+ }
30949
31143
  } else if (ch === 35) {
30950
- if (isWsOrEol(state.input.charCodeAt(state.position - 1)))
31144
+ const preceding = state.input.charCodeAt(state.position - 1);
31145
+ if (isWsOrEol(preceding)) {
30951
31146
  break;
30952
- } else if (state.position === state.lineStart && testDocumentSeparator(state) || withinFlowCollection && isFlowIndicator(ch))
31147
+ }
31148
+ } else if (state.position === state.lineStart && testDocumentSeparator(state) || withinFlowCollection && isFlowIndicator(ch)) {
30953
31149
  break;
30954
- else if (isEol(ch)) {
31150
+ } else if (isEol(ch)) {
30955
31151
  _line = state.line;
30956
31152
  _lineStart = state.lineStart;
30957
31153
  _lineIndent = state.lineIndent;
@@ -30974,13 +31170,15 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
30974
31170
  captureStart = captureEnd = state.position;
30975
31171
  hasPendingContent = false;
30976
31172
  }
30977
- if (!isWhiteSpace(ch))
31173
+ if (!isWhiteSpace(ch)) {
30978
31174
  captureEnd = state.position + 1;
31175
+ }
30979
31176
  ch = state.input.charCodeAt(++state.position);
30980
31177
  }
30981
31178
  captureSegment(state, captureStart, captureEnd, false);
30982
- if (state.result)
31179
+ if (state.result) {
30983
31180
  return true;
31181
+ }
30984
31182
  state.kind = _kind;
30985
31183
  state.result = _result;
30986
31184
  return false;
@@ -30989,13 +31187,14 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
30989
31187
  let captureStart;
30990
31188
  let captureEnd;
30991
31189
  let ch = state.input.charCodeAt(state.position);
30992
- if (ch !== 39)
31190
+ if (ch !== 39) {
30993
31191
  return false;
31192
+ }
30994
31193
  state.kind = "scalar";
30995
31194
  state.result = "";
30996
31195
  state.position++;
30997
31196
  captureStart = captureEnd = state.position;
30998
- while ((ch = state.input.charCodeAt(state.position)) !== 0)
31197
+ while ((ch = state.input.charCodeAt(state.position)) !== 0) {
30999
31198
  if (ch === 39) {
31000
31199
  captureSegment(state, captureStart, state.position, true);
31001
31200
  ch = state.input.charCodeAt(++state.position);
@@ -31003,19 +31202,22 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
31003
31202
  captureStart = state.position;
31004
31203
  state.position++;
31005
31204
  captureEnd = state.position;
31006
- } else
31205
+ } else {
31007
31206
  return true;
31207
+ }
31008
31208
  } else if (isEol(ch)) {
31009
31209
  captureSegment(state, captureStart, captureEnd, true);
31010
31210
  writeFoldedLines(state, skipSeparationSpace(state, false, nodeIndent));
31011
31211
  captureStart = captureEnd = state.position;
31012
- } else if (state.position === state.lineStart && testDocumentSeparator(state))
31212
+ } else if (state.position === state.lineStart && testDocumentSeparator(state)) {
31013
31213
  throwError(state, "unexpected end of the document within a single quoted scalar");
31014
- else {
31214
+ } else {
31015
31215
  state.position++;
31016
- if (!isWhiteSpace(ch))
31216
+ if (!isWhiteSpace(ch)) {
31017
31217
  captureEnd = state.position;
31218
+ }
31018
31219
  }
31220
+ }
31019
31221
  throwError(state, "unexpected end of the stream within a single quoted scalar");
31020
31222
  }
31021
31223
  function readDoubleQuotedScalar(state, nodeIndent) {
@@ -31023,13 +31225,14 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
31023
31225
  let captureEnd;
31024
31226
  let tmp;
31025
31227
  let ch = state.input.charCodeAt(state.position);
31026
- if (ch !== 34)
31228
+ if (ch !== 34) {
31027
31229
  return false;
31230
+ }
31028
31231
  state.kind = "scalar";
31029
31232
  state.result = "";
31030
31233
  state.position++;
31031
31234
  captureStart = captureEnd = state.position;
31032
- while ((ch = state.input.charCodeAt(state.position)) !== 0)
31235
+ while ((ch = state.input.charCodeAt(state.position)) !== 0) {
31033
31236
  if (ch === 34) {
31034
31237
  captureSegment(state, captureStart, state.position, true);
31035
31238
  state.position++;
@@ -31037,9 +31240,9 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
31037
31240
  } else if (ch === 92) {
31038
31241
  captureSegment(state, captureStart, state.position, true);
31039
31242
  ch = state.input.charCodeAt(++state.position);
31040
- if (isEol(ch))
31243
+ if (isEol(ch)) {
31041
31244
  skipSeparationSpace(state, false, nodeIndent);
31042
- else if (ch < 256 && simpleEscapeCheck[ch]) {
31245
+ } else if (ch < 256 && simpleEscapeCheck[ch]) {
31043
31246
  state.result += simpleEscapeMap[ch];
31044
31247
  state.position++;
31045
31248
  } else if ((tmp = escapedHexLen(ch)) > 0) {
@@ -31047,27 +31250,31 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
31047
31250
  let hexResult = 0;
31048
31251
  for (;hexLength > 0; hexLength--) {
31049
31252
  ch = state.input.charCodeAt(++state.position);
31050
- if ((tmp = fromHexCode(ch)) >= 0)
31253
+ if ((tmp = fromHexCode(ch)) >= 0) {
31051
31254
  hexResult = (hexResult << 4) + tmp;
31052
- else
31255
+ } else {
31053
31256
  throwError(state, "expected hexadecimal character");
31257
+ }
31054
31258
  }
31055
31259
  state.result += charFromCodepoint(hexResult);
31056
31260
  state.position++;
31057
- } else
31261
+ } else {
31058
31262
  throwError(state, "unknown escape sequence");
31263
+ }
31059
31264
  captureStart = captureEnd = state.position;
31060
31265
  } else if (isEol(ch)) {
31061
31266
  captureSegment(state, captureStart, captureEnd, true);
31062
31267
  writeFoldedLines(state, skipSeparationSpace(state, false, nodeIndent));
31063
31268
  captureStart = captureEnd = state.position;
31064
- } else if (state.position === state.lineStart && testDocumentSeparator(state))
31269
+ } else if (state.position === state.lineStart && testDocumentSeparator(state)) {
31065
31270
  throwError(state, "unexpected end of the document within a double quoted scalar");
31066
- else {
31271
+ } else {
31067
31272
  state.position++;
31068
- if (!isWhiteSpace(ch))
31273
+ if (!isWhiteSpace(ch)) {
31069
31274
  captureEnd = state.position;
31275
+ }
31070
31276
  }
31277
+ }
31071
31278
  throwError(state, "unexpected end of the stream within a double quoted scalar");
31072
31279
  }
31073
31280
  function readFlowCollection(state, nodeIndent) {
@@ -31082,7 +31289,7 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
31082
31289
  let isPair;
31083
31290
  let isExplicitPair;
31084
31291
  let isMapping;
31085
- const overridableKeys = Object.create(null);
31292
+ const overridableKeys = /* @__PURE__ */ Object.create(null);
31086
31293
  let keyNode;
31087
31294
  let keyTag;
31088
31295
  let valueNode;
@@ -31095,10 +31302,12 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
31095
31302
  terminator = 125;
31096
31303
  isMapping = true;
31097
31304
  _result = {};
31098
- } else
31305
+ } else {
31099
31306
  return false;
31100
- if (state.anchor !== null)
31307
+ }
31308
+ if (state.anchor !== null) {
31101
31309
  storeAnchor(state, state.anchor, _result);
31310
+ }
31102
31311
  ch = state.input.charCodeAt(++state.position);
31103
31312
  while (ch !== 0) {
31104
31313
  skipSeparationSpace(state, true, nodeIndent);
@@ -31110,14 +31319,16 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
31110
31319
  state.kind = isMapping ? "mapping" : "sequence";
31111
31320
  state.result = _result;
31112
31321
  return true;
31113
- } else if (!readNext)
31322
+ } else if (!readNext) {
31114
31323
  throwError(state, "missed comma between flow collection entries");
31115
- else if (ch === 44)
31324
+ } else if (ch === 44) {
31116
31325
  throwError(state, "expected the node content, but found ','");
31326
+ }
31117
31327
  keyTag = keyNode = valueNode = null;
31118
31328
  isPair = isExplicitPair = false;
31119
31329
  if (ch === 63) {
31120
- if (isWsOrEol(state.input.charCodeAt(state.position + 1))) {
31330
+ const following = state.input.charCodeAt(state.position + 1);
31331
+ if (isWsOrEol(following)) {
31121
31332
  isPair = isExplicitPair = true;
31122
31333
  state.position++;
31123
31334
  skipSeparationSpace(state, true, nodeIndent);
@@ -31138,19 +31349,21 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
31138
31349
  composeNode(state, nodeIndent, CONTEXT_FLOW_IN, false, true);
31139
31350
  valueNode = state.result;
31140
31351
  }
31141
- if (isMapping)
31352
+ if (isMapping) {
31142
31353
  storeMappingPair(state, _result, overridableKeys, keyTag, keyNode, valueNode, _line, _lineStart, _pos);
31143
- else if (isPair)
31354
+ } else if (isPair) {
31144
31355
  _result.push(storeMappingPair(state, null, overridableKeys, keyTag, keyNode, valueNode, _line, _lineStart, _pos));
31145
- else
31356
+ } else {
31146
31357
  _result.push(keyNode);
31358
+ }
31147
31359
  skipSeparationSpace(state, true, nodeIndent);
31148
31360
  ch = state.input.charCodeAt(state.position);
31149
31361
  if (ch === 44) {
31150
31362
  readNext = true;
31151
31363
  ch = state.input.charCodeAt(++state.position);
31152
- } else
31364
+ } else {
31153
31365
  readNext = false;
31366
+ }
31154
31367
  }
31155
31368
  throwError(state, "unexpected end of the stream within a flow collection");
31156
31369
  }
@@ -31164,40 +31377,45 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
31164
31377
  let atMoreIndented = false;
31165
31378
  let tmp;
31166
31379
  let ch = state.input.charCodeAt(state.position);
31167
- if (ch === 124)
31380
+ if (ch === 124) {
31168
31381
  folding = false;
31169
- else if (ch === 62)
31382
+ } else if (ch === 62) {
31170
31383
  folding = true;
31171
- else
31384
+ } else {
31172
31385
  return false;
31386
+ }
31173
31387
  state.kind = "scalar";
31174
31388
  state.result = "";
31175
31389
  while (ch !== 0) {
31176
31390
  ch = state.input.charCodeAt(++state.position);
31177
- if (ch === 43 || ch === 45)
31178
- if (CHOMPING_CLIP === chomping)
31391
+ if (ch === 43 || ch === 45) {
31392
+ if (CHOMPING_CLIP === chomping) {
31179
31393
  chomping = ch === 43 ? CHOMPING_KEEP : CHOMPING_STRIP;
31180
- else
31394
+ } else {
31181
31395
  throwError(state, "repeat of a chomping mode identifier");
31182
- else if ((tmp = fromDecimalCode(ch)) >= 0)
31183
- if (tmp === 0)
31396
+ }
31397
+ } else if ((tmp = fromDecimalCode(ch)) >= 0) {
31398
+ if (tmp === 0) {
31184
31399
  throwError(state, "bad explicit indentation width of a block scalar; it cannot be less than one");
31185
- else if (!detectedIndent) {
31400
+ } else if (!detectedIndent) {
31186
31401
  textIndent = nodeIndent + tmp - 1;
31187
31402
  detectedIndent = true;
31188
- } else
31403
+ } else {
31189
31404
  throwError(state, "repeat of an indentation width identifier");
31190
- else
31405
+ }
31406
+ } else {
31191
31407
  break;
31408
+ }
31192
31409
  }
31193
31410
  if (isWhiteSpace(ch)) {
31194
- do
31411
+ do {
31195
31412
  ch = state.input.charCodeAt(++state.position);
31196
- while (isWhiteSpace(ch));
31197
- if (ch === 35)
31198
- do
31413
+ } while (isWhiteSpace(ch));
31414
+ if (ch === 35) {
31415
+ do {
31199
31416
  ch = state.input.charCodeAt(++state.position);
31200
- while (!isEol(ch) && ch !== 0);
31417
+ } while (!isEol(ch) && ch !== 0);
31418
+ }
31201
31419
  }
31202
31420
  while (ch !== 0) {
31203
31421
  readLineBreak(state);
@@ -31207,49 +31425,56 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
31207
31425
  state.lineIndent++;
31208
31426
  ch = state.input.charCodeAt(++state.position);
31209
31427
  }
31210
- if (!detectedIndent && state.lineIndent > textIndent)
31428
+ if (!detectedIndent && state.lineIndent > textIndent) {
31211
31429
  textIndent = state.lineIndent;
31430
+ }
31212
31431
  if (isEol(ch)) {
31213
31432
  emptyLines++;
31214
31433
  continue;
31215
31434
  }
31216
- if (!detectedIndent && textIndent === 0)
31435
+ if (!detectedIndent && textIndent === 0) {
31217
31436
  throwError(state, "missing indentation for block scalar");
31437
+ }
31218
31438
  if (state.lineIndent < textIndent) {
31219
- if (chomping === CHOMPING_KEEP)
31220
- state.result += common.repeat(`
31439
+ if (chomping === CHOMPING_KEEP) {
31440
+ state.result += common2.repeat(`
31221
31441
  `, didReadContent ? 1 + emptyLines : emptyLines);
31222
- else if (chomping === CHOMPING_CLIP) {
31223
- if (didReadContent)
31442
+ } else if (chomping === CHOMPING_CLIP) {
31443
+ if (didReadContent) {
31224
31444
  state.result += `
31225
31445
  `;
31446
+ }
31226
31447
  }
31227
31448
  break;
31228
31449
  }
31229
- if (folding)
31450
+ if (folding) {
31230
31451
  if (isWhiteSpace(ch)) {
31231
31452
  atMoreIndented = true;
31232
- state.result += common.repeat(`
31453
+ state.result += common2.repeat(`
31233
31454
  `, didReadContent ? 1 + emptyLines : emptyLines);
31234
31455
  } else if (atMoreIndented) {
31235
31456
  atMoreIndented = false;
31236
- state.result += common.repeat(`
31457
+ state.result += common2.repeat(`
31237
31458
  `, emptyLines + 1);
31238
31459
  } else if (emptyLines === 0) {
31239
- if (didReadContent)
31460
+ if (didReadContent) {
31240
31461
  state.result += " ";
31241
- } else
31242
- state.result += common.repeat(`
31462
+ }
31463
+ } else {
31464
+ state.result += common2.repeat(`
31243
31465
  `, emptyLines);
31244
- else
31245
- state.result += common.repeat(`
31466
+ }
31467
+ } else {
31468
+ state.result += common2.repeat(`
31246
31469
  `, didReadContent ? 1 + emptyLines : emptyLines);
31470
+ }
31247
31471
  didReadContent = true;
31248
31472
  detectedIndent = true;
31249
31473
  emptyLines = 0;
31250
31474
  const captureStart = state.position;
31251
- while (!isEol(ch) && ch !== 0)
31475
+ while (!isEol(ch) && ch !== 0) {
31252
31476
  ch = state.input.charCodeAt(++state.position);
31477
+ }
31253
31478
  captureSegment(state, captureStart, state.position, false);
31254
31479
  }
31255
31480
  return true;
@@ -31261,18 +31486,22 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
31261
31486
  let detected = false;
31262
31487
  if (state.firstTabInLine !== -1)
31263
31488
  return false;
31264
- if (state.anchor !== null)
31489
+ if (state.anchor !== null) {
31265
31490
  storeAnchor(state, state.anchor, _result);
31491
+ }
31266
31492
  let ch = state.input.charCodeAt(state.position);
31267
31493
  while (ch !== 0) {
31268
31494
  if (state.firstTabInLine !== -1) {
31269
31495
  state.position = state.firstTabInLine;
31270
31496
  throwError(state, "tab characters must not be used in indentation");
31271
31497
  }
31272
- if (ch !== 45)
31498
+ if (ch !== 45) {
31273
31499
  break;
31274
- if (!isWsOrEol(state.input.charCodeAt(state.position + 1)))
31500
+ }
31501
+ const following = state.input.charCodeAt(state.position + 1);
31502
+ if (!isWsOrEol(following)) {
31275
31503
  break;
31504
+ }
31276
31505
  detected = true;
31277
31506
  state.position++;
31278
31507
  if (skipSeparationSpace(state, true, -1)) {
@@ -31287,10 +31516,11 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
31287
31516
  _result.push(state.result);
31288
31517
  skipSeparationSpace(state, true, -1);
31289
31518
  ch = state.input.charCodeAt(state.position);
31290
- if ((state.line === _line || state.lineIndent > nodeIndent) && ch !== 0)
31519
+ if ((state.line === _line || state.lineIndent > nodeIndent) && ch !== 0) {
31291
31520
  throwError(state, "bad indentation of a sequence entry");
31292
- else if (state.lineIndent < nodeIndent)
31521
+ } else if (state.lineIndent < nodeIndent) {
31293
31522
  break;
31523
+ }
31294
31524
  }
31295
31525
  if (detected) {
31296
31526
  state.tag = _tag;
@@ -31309,7 +31539,7 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
31309
31539
  const _tag = state.tag;
31310
31540
  const _anchor = state.anchor;
31311
31541
  const _result = {};
31312
- const overridableKeys = Object.create(null);
31542
+ const overridableKeys = /* @__PURE__ */ Object.create(null);
31313
31543
  let keyTag = null;
31314
31544
  let keyNode = null;
31315
31545
  let valueNode = null;
@@ -31317,8 +31547,9 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
31317
31547
  let detected = false;
31318
31548
  if (state.firstTabInLine !== -1)
31319
31549
  return false;
31320
- if (state.anchor !== null)
31550
+ if (state.anchor !== null) {
31321
31551
  storeAnchor(state, state.anchor, _result);
31552
+ }
31322
31553
  let ch = state.input.charCodeAt(state.position);
31323
31554
  while (ch !== 0) {
31324
31555
  if (!atExplicitKey && state.firstTabInLine !== -1) {
@@ -31339,24 +31570,28 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
31339
31570
  } else if (atExplicitKey) {
31340
31571
  atExplicitKey = false;
31341
31572
  allowCompact = true;
31342
- } else
31573
+ } else {
31343
31574
  throwError(state, "incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line");
31575
+ }
31344
31576
  state.position += 1;
31345
31577
  ch = following;
31346
31578
  } else {
31347
31579
  _keyLine = state.line;
31348
31580
  _keyLineStart = state.lineStart;
31349
31581
  _keyPos = state.position;
31350
- if (!composeNode(state, flowIndent, CONTEXT_FLOW_OUT, false, true))
31582
+ if (!composeNode(state, flowIndent, CONTEXT_FLOW_OUT, false, true)) {
31351
31583
  break;
31584
+ }
31352
31585
  if (state.line === _line) {
31353
31586
  ch = state.input.charCodeAt(state.position);
31354
- while (isWhiteSpace(ch))
31587
+ while (isWhiteSpace(ch)) {
31355
31588
  ch = state.input.charCodeAt(++state.position);
31589
+ }
31356
31590
  if (ch === 58) {
31357
31591
  ch = state.input.charCodeAt(++state.position);
31358
- if (!isWsOrEol(ch))
31592
+ if (!isWsOrEol(ch)) {
31359
31593
  throwError(state, "a whitespace character is expected after the key-value separator within a block mapping");
31594
+ }
31360
31595
  if (atExplicitKey) {
31361
31596
  storeMappingPair(state, _result, overridableKeys, keyTag, keyNode, null, _keyLine, _keyLineStart, _keyPos);
31362
31597
  keyTag = keyNode = valueNode = null;
@@ -31366,16 +31601,16 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
31366
31601
  allowCompact = false;
31367
31602
  keyTag = state.tag;
31368
31603
  keyNode = state.result;
31369
- } else if (detected)
31604
+ } else if (detected) {
31370
31605
  throwError(state, "can not read an implicit mapping pair; a colon is missed");
31371
- else {
31606
+ } else {
31372
31607
  state.tag = _tag;
31373
31608
  state.anchor = _anchor;
31374
31609
  return true;
31375
31610
  }
31376
- } else if (detected)
31611
+ } else if (detected) {
31377
31612
  throwError(state, "can not read a block mapping entry; a multiline key may not be an implicit key");
31378
- else {
31613
+ } else {
31379
31614
  state.tag = _tag;
31380
31615
  state.anchor = _anchor;
31381
31616
  return true;
@@ -31387,11 +31622,13 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
31387
31622
  _keyLineStart = state.lineStart;
31388
31623
  _keyPos = state.position;
31389
31624
  }
31390
- if (composeNode(state, nodeIndent, CONTEXT_BLOCK_OUT, true, allowCompact))
31391
- if (atExplicitKey)
31625
+ if (composeNode(state, nodeIndent, CONTEXT_BLOCK_OUT, true, allowCompact)) {
31626
+ if (atExplicitKey) {
31392
31627
  keyNode = state.result;
31393
- else
31628
+ } else {
31394
31629
  valueNode = state.result;
31630
+ }
31631
+ }
31395
31632
  if (!atExplicitKey) {
31396
31633
  storeMappingPair(state, _result, overridableKeys, keyTag, keyNode, valueNode, _keyLine, _keyLineStart, _keyPos);
31397
31634
  keyTag = keyNode = valueNode = null;
@@ -31399,13 +31636,15 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
31399
31636
  skipSeparationSpace(state, true, -1);
31400
31637
  ch = state.input.charCodeAt(state.position);
31401
31638
  }
31402
- if ((state.line === _line || state.lineIndent > nodeIndent) && ch !== 0)
31639
+ if ((state.line === _line || state.lineIndent > nodeIndent) && ch !== 0) {
31403
31640
  throwError(state, "bad indentation of a mapping entry");
31404
- else if (state.lineIndent < nodeIndent)
31641
+ } else if (state.lineIndent < nodeIndent) {
31405
31642
  break;
31643
+ }
31406
31644
  }
31407
- if (atExplicitKey)
31645
+ if (atExplicitKey) {
31408
31646
  storeMappingPair(state, _result, overridableKeys, keyTag, keyNode, null, _keyLine, _keyLineStart, _keyPos);
31647
+ }
31409
31648
  if (detected) {
31410
31649
  state.tag = _tag;
31411
31650
  state.anchor = _anchor;
@@ -31422,8 +31661,9 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
31422
31661
  let ch = state.input.charCodeAt(state.position);
31423
31662
  if (ch !== 33)
31424
31663
  return false;
31425
- if (state.tag !== null)
31664
+ if (state.tag !== null) {
31426
31665
  throwError(state, "duplication of a tag property");
31666
+ }
31427
31667
  ch = state.input.charCodeAt(++state.position);
31428
31668
  if (ch === 60) {
31429
31669
  isVerbatim = true;
@@ -31432,66 +31672,77 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
31432
31672
  isNamed = true;
31433
31673
  tagHandle = "!!";
31434
31674
  ch = state.input.charCodeAt(++state.position);
31435
- } else
31675
+ } else {
31436
31676
  tagHandle = "!";
31677
+ }
31437
31678
  let _position = state.position;
31438
31679
  if (isVerbatim) {
31439
- do
31680
+ do {
31440
31681
  ch = state.input.charCodeAt(++state.position);
31441
- while (ch !== 0 && ch !== 62);
31682
+ } while (ch !== 0 && ch !== 62);
31442
31683
  if (state.position < state.length) {
31443
31684
  tagName = state.input.slice(_position, state.position);
31444
31685
  ch = state.input.charCodeAt(++state.position);
31445
- } else
31686
+ } else {
31446
31687
  throwError(state, "unexpected end of the stream within a verbatim tag");
31688
+ }
31447
31689
  } else {
31448
31690
  while (ch !== 0 && !isWsOrEol(ch)) {
31449
- if (ch === 33)
31691
+ if (ch === 33) {
31450
31692
  if (!isNamed) {
31451
31693
  tagHandle = state.input.slice(_position - 1, state.position + 1);
31452
- if (!PATTERN_TAG_HANDLE.test(tagHandle))
31694
+ if (!PATTERN_TAG_HANDLE.test(tagHandle)) {
31453
31695
  throwError(state, "named tag handle cannot contain such characters");
31696
+ }
31454
31697
  isNamed = true;
31455
31698
  _position = state.position + 1;
31456
- } else
31699
+ } else {
31457
31700
  throwError(state, "tag suffix cannot contain exclamation marks");
31701
+ }
31702
+ }
31458
31703
  ch = state.input.charCodeAt(++state.position);
31459
31704
  }
31460
31705
  tagName = state.input.slice(_position, state.position);
31461
- if (PATTERN_FLOW_INDICATORS.test(tagName))
31706
+ if (PATTERN_FLOW_INDICATORS.test(tagName)) {
31462
31707
  throwError(state, "tag suffix cannot contain flow indicator characters");
31708
+ }
31463
31709
  }
31464
- if (tagName && !PATTERN_TAG_URI.test(tagName))
31710
+ if (tagName && !PATTERN_TAG_URI.test(tagName)) {
31465
31711
  throwError(state, "tag name cannot contain such characters: " + tagName);
31712
+ }
31466
31713
  try {
31467
31714
  tagName = decodeURIComponent(tagName);
31468
31715
  } catch (err) {
31469
31716
  throwError(state, "tag name is malformed: " + tagName);
31470
31717
  }
31471
- if (isVerbatim)
31718
+ if (isVerbatim) {
31472
31719
  state.tag = tagName;
31473
- else if (_hasOwnProperty.call(state.tagMap, tagHandle))
31720
+ } else if (_hasOwnProperty.call(state.tagMap, tagHandle)) {
31474
31721
  state.tag = state.tagMap[tagHandle] + tagName;
31475
- else if (tagHandle === "!")
31722
+ } else if (tagHandle === "!") {
31476
31723
  state.tag = "!" + tagName;
31477
- else if (tagHandle === "!!")
31724
+ } else if (tagHandle === "!!") {
31478
31725
  state.tag = "tag:yaml.org,2002:" + tagName;
31479
- else
31726
+ } else {
31480
31727
  throwError(state, 'undeclared tag handle "' + tagHandle + '"');
31728
+ }
31481
31729
  return true;
31482
31730
  }
31483
31731
  function readAnchorProperty(state) {
31484
31732
  let ch = state.input.charCodeAt(state.position);
31485
31733
  if (ch !== 38)
31486
31734
  return false;
31487
- if (state.anchor !== null)
31735
+ if (state.anchor !== null) {
31488
31736
  throwError(state, "duplication of an anchor property");
31737
+ }
31489
31738
  ch = state.input.charCodeAt(++state.position);
31490
31739
  const _position = state.position;
31491
- while (ch !== 0 && !isWsOrEol(ch) && !isFlowIndicator(ch))
31740
+ while (ch !== 0 && !isWsOrEol(ch) && !isFlowIndicator(ch)) {
31492
31741
  ch = state.input.charCodeAt(++state.position);
31493
- if (state.position === _position)
31742
+ }
31743
+ if (state.position === _position) {
31494
31744
  throwError(state, "name of an anchor node must contain at least one character");
31745
+ }
31495
31746
  state.anchor = state.input.slice(_position, state.position);
31496
31747
  return true;
31497
31748
  }
@@ -31501,13 +31752,16 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
31501
31752
  return false;
31502
31753
  ch = state.input.charCodeAt(++state.position);
31503
31754
  const _position = state.position;
31504
- while (ch !== 0 && !isWsOrEol(ch) && !isFlowIndicator(ch))
31755
+ while (ch !== 0 && !isWsOrEol(ch) && !isFlowIndicator(ch)) {
31505
31756
  ch = state.input.charCodeAt(++state.position);
31506
- if (state.position === _position)
31757
+ }
31758
+ if (state.position === _position) {
31507
31759
  throwError(state, "name of an alias node must contain at least one character");
31760
+ }
31508
31761
  const alias = state.input.slice(_position, state.position);
31509
- if (!_hasOwnProperty.call(state.anchorMap, alias))
31762
+ if (!_hasOwnProperty.call(state.anchorMap, alias)) {
31510
31763
  throwError(state, 'unidentified alias "' + alias + '"');
31764
+ }
31511
31765
  state.result = state.anchorMap[alias];
31512
31766
  skipSeparationSpace(state, true, -1);
31513
31767
  return true;
@@ -31535,14 +31789,16 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
31535
31789
  let atNewLine = false;
31536
31790
  let hasContent = false;
31537
31791
  let propertyStart = null;
31538
- let type;
31792
+ let type2;
31539
31793
  let flowIndent;
31540
31794
  let blockIndent;
31541
- if (state.depth >= state.maxDepth)
31795
+ if (state.depth >= state.maxDepth) {
31542
31796
  throwError(state, "nesting exceeded maxDepth (" + state.maxDepth + ")");
31797
+ }
31543
31798
  state.depth += 1;
31544
- if (state.listener !== null)
31799
+ if (state.listener !== null) {
31545
31800
  state.listener("open", state);
31801
+ }
31546
31802
  state.tag = null;
31547
31803
  state.anchor = null;
31548
31804
  state.kind = null;
@@ -31551,110 +31807,131 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
31551
31807
  if (allowToSeek) {
31552
31808
  if (skipSeparationSpace(state, true, -1)) {
31553
31809
  atNewLine = true;
31554
- if (state.lineIndent > parentIndent)
31810
+ if (state.lineIndent > parentIndent) {
31555
31811
  indentStatus = 1;
31556
- else if (state.lineIndent === parentIndent)
31812
+ } else if (state.lineIndent === parentIndent) {
31557
31813
  indentStatus = 0;
31558
- else if (state.lineIndent < parentIndent)
31814
+ } else if (state.lineIndent < parentIndent) {
31559
31815
  indentStatus = -1;
31816
+ }
31560
31817
  }
31561
31818
  }
31562
- if (indentStatus === 1)
31819
+ if (indentStatus === 1) {
31563
31820
  while (true) {
31564
31821
  const ch = state.input.charCodeAt(state.position);
31565
31822
  const propertyState = snapshotState(state);
31566
- if (atNewLine && (ch === 33 && state.tag !== null || ch === 38 && state.anchor !== null))
31823
+ if (atNewLine && (ch === 33 && state.tag !== null || ch === 38 && state.anchor !== null)) {
31567
31824
  break;
31568
- if (!readTagProperty(state) && !readAnchorProperty(state))
31825
+ }
31826
+ if (!readTagProperty(state) && !readAnchorProperty(state)) {
31569
31827
  break;
31570
- if (propertyStart === null)
31828
+ }
31829
+ if (propertyStart === null) {
31571
31830
  propertyStart = propertyState;
31831
+ }
31572
31832
  if (skipSeparationSpace(state, true, -1)) {
31573
31833
  atNewLine = true;
31574
31834
  allowBlockCollections = allowBlockStyles;
31575
- if (state.lineIndent > parentIndent)
31835
+ if (state.lineIndent > parentIndent) {
31576
31836
  indentStatus = 1;
31577
- else if (state.lineIndent === parentIndent)
31837
+ } else if (state.lineIndent === parentIndent) {
31578
31838
  indentStatus = 0;
31579
- else if (state.lineIndent < parentIndent)
31839
+ } else if (state.lineIndent < parentIndent) {
31580
31840
  indentStatus = -1;
31581
- } else
31841
+ }
31842
+ } else {
31582
31843
  allowBlockCollections = false;
31844
+ }
31583
31845
  }
31584
- if (allowBlockCollections)
31846
+ }
31847
+ if (allowBlockCollections) {
31585
31848
  allowBlockCollections = atNewLine || allowCompact;
31849
+ }
31586
31850
  if (indentStatus === 1 || CONTEXT_BLOCK_OUT === nodeContext) {
31587
- if (CONTEXT_FLOW_IN === nodeContext || CONTEXT_FLOW_OUT === nodeContext)
31851
+ if (CONTEXT_FLOW_IN === nodeContext || CONTEXT_FLOW_OUT === nodeContext) {
31588
31852
  flowIndent = parentIndent;
31589
- else
31853
+ } else {
31590
31854
  flowIndent = parentIndent + 1;
31855
+ }
31591
31856
  blockIndent = state.position - state.lineStart;
31592
- if (indentStatus === 1)
31593
- if (allowBlockCollections && (readBlockSequence(state, blockIndent) || readBlockMapping(state, blockIndent, flowIndent)) || readFlowCollection(state, flowIndent))
31857
+ if (indentStatus === 1) {
31858
+ if (allowBlockCollections && (readBlockSequence(state, blockIndent) || readBlockMapping(state, blockIndent, flowIndent)) || readFlowCollection(state, flowIndent)) {
31594
31859
  hasContent = true;
31595
- else {
31860
+ } else {
31596
31861
  const ch = state.input.charCodeAt(state.position);
31597
- if (propertyStart !== null && allowBlockStyles && !allowBlockCollections && ch !== 124 && ch !== 62 && tryReadBlockMappingFromProperty(state, propertyStart, propertyStart.position - propertyStart.lineStart, flowIndent))
31862
+ if (propertyStart !== null && allowBlockStyles && !allowBlockCollections && ch !== 124 && ch !== 62 && tryReadBlockMappingFromProperty(state, propertyStart, propertyStart.position - propertyStart.lineStart, flowIndent)) {
31598
31863
  hasContent = true;
31599
- else if (allowBlockScalars && readBlockScalar(state, flowIndent) || readSingleQuotedScalar(state, flowIndent) || readDoubleQuotedScalar(state, flowIndent))
31864
+ } else if (allowBlockScalars && readBlockScalar(state, flowIndent) || readSingleQuotedScalar(state, flowIndent) || readDoubleQuotedScalar(state, flowIndent)) {
31600
31865
  hasContent = true;
31601
- else if (readAlias(state)) {
31866
+ } else if (readAlias(state)) {
31602
31867
  hasContent = true;
31603
- if (state.tag !== null || state.anchor !== null)
31868
+ if (state.tag !== null || state.anchor !== null) {
31604
31869
  throwError(state, "alias node should not have any properties");
31870
+ }
31605
31871
  } else if (readPlainScalar(state, flowIndent, CONTEXT_FLOW_IN === nodeContext)) {
31606
31872
  hasContent = true;
31607
- if (state.tag === null)
31873
+ if (state.tag === null) {
31608
31874
  state.tag = "?";
31875
+ }
31609
31876
  }
31610
- if (state.anchor !== null)
31877
+ if (state.anchor !== null) {
31611
31878
  storeAnchor(state, state.anchor, state.result);
31879
+ }
31612
31880
  }
31613
- else if (indentStatus === 0)
31881
+ } else if (indentStatus === 0) {
31614
31882
  hasContent = allowBlockCollections && readBlockSequence(state, blockIndent);
31883
+ }
31615
31884
  }
31616
31885
  if (state.tag === null) {
31617
- if (state.anchor !== null)
31886
+ if (state.anchor !== null) {
31618
31887
  storeAnchor(state, state.anchor, state.result);
31888
+ }
31619
31889
  } else if (state.tag === "?") {
31620
- if (state.result !== null && state.kind !== "scalar")
31890
+ if (state.result !== null && state.kind !== "scalar") {
31621
31891
  throwError(state, 'unacceptable node kind for !<?> tag; it should be "scalar", not "' + state.kind + '"');
31892
+ }
31622
31893
  for (let typeIndex = 0, typeQuantity = state.implicitTypes.length;typeIndex < typeQuantity; typeIndex += 1) {
31623
- type = state.implicitTypes[typeIndex];
31624
- if (type.resolve(state.result)) {
31625
- state.result = type.construct(state.result);
31626
- state.tag = type.tag;
31627
- if (state.anchor !== null)
31894
+ type2 = state.implicitTypes[typeIndex];
31895
+ if (type2.resolve(state.result)) {
31896
+ state.result = type2.construct(state.result);
31897
+ state.tag = type2.tag;
31898
+ if (state.anchor !== null) {
31628
31899
  storeAnchor(state, state.anchor, state.result);
31900
+ }
31629
31901
  break;
31630
31902
  }
31631
31903
  }
31632
31904
  } else if (state.tag !== "!") {
31633
- if (_hasOwnProperty.call(state.typeMap[state.kind || "fallback"], state.tag))
31634
- type = state.typeMap[state.kind || "fallback"][state.tag];
31635
- else {
31636
- type = null;
31905
+ if (_hasOwnProperty.call(state.typeMap[state.kind || "fallback"], state.tag)) {
31906
+ type2 = state.typeMap[state.kind || "fallback"][state.tag];
31907
+ } else {
31908
+ type2 = null;
31637
31909
  const typeList = state.typeMap.multi[state.kind || "fallback"];
31638
- for (let typeIndex = 0, typeQuantity = typeList.length;typeIndex < typeQuantity; typeIndex += 1)
31910
+ for (let typeIndex = 0, typeQuantity = typeList.length;typeIndex < typeQuantity; typeIndex += 1) {
31639
31911
  if (state.tag.slice(0, typeList[typeIndex].tag.length) === typeList[typeIndex].tag) {
31640
- type = typeList[typeIndex];
31912
+ type2 = typeList[typeIndex];
31641
31913
  break;
31642
31914
  }
31915
+ }
31643
31916
  }
31644
- if (!type)
31917
+ if (!type2) {
31645
31918
  throwError(state, "unknown tag !<" + state.tag + ">");
31646
- if (state.result !== null && type.kind !== state.kind)
31647
- throwError(state, "unacceptable node kind for !<" + state.tag + '> tag; it should be "' + type.kind + '", not "' + state.kind + '"');
31648
- if (!type.resolve(state.result, state.tag))
31919
+ }
31920
+ if (state.result !== null && type2.kind !== state.kind) {
31921
+ throwError(state, "unacceptable node kind for !<" + state.tag + '> tag; it should be "' + type2.kind + '", not "' + state.kind + '"');
31922
+ }
31923
+ if (!type2.resolve(state.result, state.tag)) {
31649
31924
  throwError(state, "cannot resolve a node with !<" + state.tag + "> explicit tag");
31650
- else {
31651
- state.result = type.construct(state.result, state.tag);
31652
- if (state.anchor !== null)
31925
+ } else {
31926
+ state.result = type2.construct(state.result, state.tag);
31927
+ if (state.anchor !== null) {
31653
31928
  storeAnchor(state, state.anchor, state.result);
31929
+ }
31654
31930
  }
31655
31931
  }
31656
- if (state.listener !== null)
31932
+ if (state.listener !== null) {
31657
31933
  state.listener("close", state);
31934
+ }
31658
31935
  state.depth -= 1;
31659
31936
  return state.tag !== null || state.anchor !== null || hasContent;
31660
31937
  }
@@ -31664,55 +31941,63 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
31664
31941
  let ch;
31665
31942
  state.version = null;
31666
31943
  state.checkLineBreaks = state.legacy;
31667
- state.tagMap = Object.create(null);
31668
- state.anchorMap = Object.create(null);
31944
+ state.tagMap = /* @__PURE__ */ Object.create(null);
31945
+ state.anchorMap = /* @__PURE__ */ Object.create(null);
31669
31946
  while ((ch = state.input.charCodeAt(state.position)) !== 0) {
31670
31947
  skipSeparationSpace(state, true, -1);
31671
31948
  ch = state.input.charCodeAt(state.position);
31672
- if (state.lineIndent > 0 || ch !== 37)
31949
+ if (state.lineIndent > 0 || ch !== 37) {
31673
31950
  break;
31951
+ }
31674
31952
  hasDirectives = true;
31675
31953
  ch = state.input.charCodeAt(++state.position);
31676
31954
  let _position = state.position;
31677
- while (ch !== 0 && !isWsOrEol(ch))
31955
+ while (ch !== 0 && !isWsOrEol(ch)) {
31678
31956
  ch = state.input.charCodeAt(++state.position);
31957
+ }
31679
31958
  const directiveName = state.input.slice(_position, state.position);
31680
31959
  const directiveArgs = [];
31681
- if (directiveName.length < 1)
31960
+ if (directiveName.length < 1) {
31682
31961
  throwError(state, "directive name must not be less than one character in length");
31962
+ }
31683
31963
  while (ch !== 0) {
31684
- while (isWhiteSpace(ch))
31964
+ while (isWhiteSpace(ch)) {
31685
31965
  ch = state.input.charCodeAt(++state.position);
31966
+ }
31686
31967
  if (ch === 35) {
31687
- do
31968
+ do {
31688
31969
  ch = state.input.charCodeAt(++state.position);
31689
- while (ch !== 0 && !isEol(ch));
31970
+ } while (ch !== 0 && !isEol(ch));
31690
31971
  break;
31691
31972
  }
31692
31973
  if (isEol(ch))
31693
31974
  break;
31694
31975
  _position = state.position;
31695
- while (ch !== 0 && !isWsOrEol(ch))
31976
+ while (ch !== 0 && !isWsOrEol(ch)) {
31696
31977
  ch = state.input.charCodeAt(++state.position);
31978
+ }
31697
31979
  directiveArgs.push(state.input.slice(_position, state.position));
31698
31980
  }
31699
31981
  if (ch !== 0)
31700
31982
  readLineBreak(state);
31701
- if (_hasOwnProperty.call(directiveHandlers, directiveName))
31983
+ if (_hasOwnProperty.call(directiveHandlers, directiveName)) {
31702
31984
  directiveHandlers[directiveName](state, directiveName, directiveArgs);
31703
- else
31985
+ } else {
31704
31986
  throwWarning(state, 'unknown document directive "' + directiveName + '"');
31987
+ }
31705
31988
  }
31706
31989
  skipSeparationSpace(state, true, -1);
31707
31990
  if (state.lineIndent === 0 && state.input.charCodeAt(state.position) === 45 && state.input.charCodeAt(state.position + 1) === 45 && state.input.charCodeAt(state.position + 2) === 45) {
31708
31991
  state.position += 3;
31709
31992
  skipSeparationSpace(state, true, -1);
31710
- } else if (hasDirectives)
31993
+ } else if (hasDirectives) {
31711
31994
  throwError(state, "directives end mark is expected");
31995
+ }
31712
31996
  composeNode(state, state.lineIndent - 1, CONTEXT_BLOCK_OUT, false, true);
31713
31997
  skipSeparationSpace(state, true, -1);
31714
- if (state.checkLineBreaks && PATTERN_NON_ASCII_LINE_BREAKS.test(state.input.slice(documentStart, state.position)))
31998
+ if (state.checkLineBreaks && PATTERN_NON_ASCII_LINE_BREAKS.test(state.input.slice(documentStart, state.position))) {
31715
31999
  throwWarning(state, "non-ASCII line breaks are interpreted as content");
32000
+ }
31716
32001
  state.documents.push(state.result);
31717
32002
  if (state.position === state.lineStart && testDocumentSeparator(state)) {
31718
32003
  if (state.input.charCodeAt(state.position) === 46) {
@@ -31721,18 +32006,21 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
31721
32006
  }
31722
32007
  return;
31723
32008
  }
31724
- if (state.position < state.length - 1)
32009
+ if (state.position < state.length - 1) {
31725
32010
  throwError(state, "end of the stream or a document separator is expected");
32011
+ }
31726
32012
  }
31727
32013
  function loadDocuments(input, options) {
31728
32014
  input = String(input);
31729
32015
  options = options || {};
31730
32016
  if (input.length !== 0) {
31731
- if (input.charCodeAt(input.length - 1) !== 10 && input.charCodeAt(input.length - 1) !== 13)
32017
+ if (input.charCodeAt(input.length - 1) !== 10 && input.charCodeAt(input.length - 1) !== 13) {
31732
32018
  input += `
31733
32019
  `;
31734
- if (input.charCodeAt(0) === 65279)
32020
+ }
32021
+ if (input.charCodeAt(0) === 65279) {
31735
32022
  input = input.slice(1);
32023
+ }
31736
32024
  }
31737
32025
  const state = new State(input, options);
31738
32026
  const nullpos = input.indexOf("\x00");
@@ -31745,64 +32033,74 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
31745
32033
  state.lineIndent += 1;
31746
32034
  state.position += 1;
31747
32035
  }
31748
- while (state.position < state.length - 1)
32036
+ while (state.position < state.length - 1) {
31749
32037
  readDocument(state);
32038
+ }
31750
32039
  return state.documents;
31751
32040
  }
31752
- function loadAll(input, iterator, options) {
32041
+ function loadAll2(input, iterator, options) {
31753
32042
  if (iterator !== null && typeof iterator === "object" && typeof options === "undefined") {
31754
32043
  options = iterator;
31755
32044
  iterator = null;
31756
32045
  }
31757
32046
  const documents = loadDocuments(input, options);
31758
- if (typeof iterator !== "function")
32047
+ if (typeof iterator !== "function") {
31759
32048
  return documents;
31760
- for (let index = 0, length = documents.length;index < length; index += 1)
32049
+ }
32050
+ for (let index = 0, length = documents.length;index < length; index += 1) {
31761
32051
  iterator(documents[index]);
32052
+ }
31762
32053
  }
31763
- function load(input, options) {
32054
+ function load2(input, options) {
31764
32055
  const documents = loadDocuments(input, options);
31765
- if (documents.length === 0)
32056
+ if (documents.length === 0) {
31766
32057
  return;
31767
- else if (documents.length === 1)
32058
+ } else if (documents.length === 1) {
31768
32059
  return documents[0];
31769
- throw new YAMLException("expected a single document in the stream, but found more");
31770
- }
31771
- module.exports.loadAll = loadAll;
31772
- module.exports.load = load;
31773
- });
31774
- var require_dumper = /* @__PURE__ */ __commonJSMin((exports, module) => {
31775
- var common = require_common();
31776
- var YAMLException = require_exception();
31777
- var DEFAULT_SCHEMA = require_default();
31778
- var _toString = Object.prototype.toString;
31779
- var _hasOwnProperty = Object.prototype.hasOwnProperty;
31780
- var CHAR_BOM = 65279;
31781
- var CHAR_TAB = 9;
31782
- var CHAR_LINE_FEED = 10;
31783
- var CHAR_CARRIAGE_RETURN = 13;
31784
- var CHAR_SPACE = 32;
31785
- var CHAR_EXCLAMATION = 33;
31786
- var CHAR_DOUBLE_QUOTE = 34;
31787
- var CHAR_SHARP = 35;
31788
- var CHAR_PERCENT = 37;
31789
- var CHAR_AMPERSAND = 38;
31790
- var CHAR_SINGLE_QUOTE = 39;
31791
- var CHAR_ASTERISK = 42;
31792
- var CHAR_COMMA = 44;
31793
- var CHAR_MINUS = 45;
31794
- var CHAR_COLON = 58;
31795
- var CHAR_EQUALS = 61;
31796
- var CHAR_GREATER_THAN = 62;
31797
- var CHAR_QUESTION = 63;
31798
- var CHAR_COMMERCIAL_AT = 64;
31799
- var CHAR_LEFT_SQUARE_BRACKET = 91;
31800
- var CHAR_RIGHT_SQUARE_BRACKET = 93;
31801
- var CHAR_GRAVE_ACCENT = 96;
31802
- var CHAR_LEFT_CURLY_BRACKET = 123;
31803
- var CHAR_VERTICAL_LINE = 124;
31804
- var CHAR_RIGHT_CURLY_BRACKET = 125;
31805
- var ESCAPE_SEQUENCES = {};
32060
+ }
32061
+ throw new YAMLException2("expected a single document in the stream, but found more");
32062
+ }
32063
+ loader.loadAll = loadAll2;
32064
+ loader.load = load2;
32065
+ return loader;
32066
+ }
32067
+ var dumper = {};
32068
+ var hasRequiredDumper;
32069
+ function requireDumper() {
32070
+ if (hasRequiredDumper)
32071
+ return dumper;
32072
+ hasRequiredDumper = 1;
32073
+ const common2 = requireCommon();
32074
+ const YAMLException2 = requireException();
32075
+ const DEFAULT_SCHEMA2 = require_default();
32076
+ const _toString = Object.prototype.toString;
32077
+ const _hasOwnProperty = Object.prototype.hasOwnProperty;
32078
+ const CHAR_BOM = 65279;
32079
+ const CHAR_TAB = 9;
32080
+ const CHAR_LINE_FEED = 10;
32081
+ const CHAR_CARRIAGE_RETURN = 13;
32082
+ const CHAR_SPACE = 32;
32083
+ const CHAR_EXCLAMATION = 33;
32084
+ const CHAR_DOUBLE_QUOTE = 34;
32085
+ const CHAR_SHARP = 35;
32086
+ const CHAR_PERCENT = 37;
32087
+ const CHAR_AMPERSAND = 38;
32088
+ const CHAR_SINGLE_QUOTE = 39;
32089
+ const CHAR_ASTERISK = 42;
32090
+ const CHAR_COMMA = 44;
32091
+ const CHAR_MINUS = 45;
32092
+ const CHAR_COLON = 58;
32093
+ const CHAR_EQUALS = 61;
32094
+ const CHAR_GREATER_THAN = 62;
32095
+ const CHAR_QUESTION = 63;
32096
+ const CHAR_COMMERCIAL_AT = 64;
32097
+ const CHAR_LEFT_SQUARE_BRACKET = 91;
32098
+ const CHAR_RIGHT_SQUARE_BRACKET = 93;
32099
+ const CHAR_GRAVE_ACCENT = 96;
32100
+ const CHAR_LEFT_CURLY_BRACKET = 123;
32101
+ const CHAR_VERTICAL_LINE = 124;
32102
+ const CHAR_RIGHT_CURLY_BRACKET = 125;
32103
+ const ESCAPE_SEQUENCES = {};
31806
32104
  ESCAPE_SEQUENCES[0] = "\\0";
31807
32105
  ESCAPE_SEQUENCES[7] = "\\a";
31808
32106
  ESCAPE_SEQUENCES[8] = "\\b";
@@ -31818,7 +32116,7 @@ var require_dumper = /* @__PURE__ */ __commonJSMin((exports, module) => {
31818
32116
  ESCAPE_SEQUENCES[160] = "\\_";
31819
32117
  ESCAPE_SEQUENCES[8232] = "\\L";
31820
32118
  ESCAPE_SEQUENCES[8233] = "\\P";
31821
- var DEPRECATED_BOOLEANS_SYNTAX = [
32119
+ const DEPRECATED_BOOLEANS_SYNTAX = [
31822
32120
  "y",
31823
32121
  "Y",
31824
32122
  "yes",
@@ -31836,20 +32134,22 @@ var require_dumper = /* @__PURE__ */ __commonJSMin((exports, module) => {
31836
32134
  "Off",
31837
32135
  "OFF"
31838
32136
  ];
31839
- var DEPRECATED_BASE60_SYNTAX = /^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;
31840
- function compileStyleMap(schema, map) {
31841
- if (map === null)
32137
+ const DEPRECATED_BASE60_SYNTAX = /^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;
32138
+ function compileStyleMap(schema2, map2) {
32139
+ if (map2 === null)
31842
32140
  return {};
31843
32141
  const result = {};
31844
- const keys = Object.keys(map);
32142
+ const keys = Object.keys(map2);
31845
32143
  for (let index = 0, length = keys.length;index < length; index += 1) {
31846
32144
  let tag = keys[index];
31847
- let style = String(map[tag]);
31848
- if (tag.slice(0, 2) === "!!")
32145
+ let style = String(map2[tag]);
32146
+ if (tag.slice(0, 2) === "!!") {
31849
32147
  tag = "tag:yaml.org,2002:" + tag.slice(2);
31850
- const type = schema.compiledTypeMap["fallback"][tag];
31851
- if (type && _hasOwnProperty.call(type.styleAliases, style))
31852
- style = type.styleAliases[style];
32148
+ }
32149
+ const type2 = schema2.compiledTypeMap["fallback"][tag];
32150
+ if (type2 && _hasOwnProperty.call(type2.styleAliases, style)) {
32151
+ style = type2.styleAliases[style];
32152
+ }
31853
32153
  result[tag] = style;
31854
32154
  }
31855
32155
  return result;
@@ -31867,18 +32167,19 @@ var require_dumper = /* @__PURE__ */ __commonJSMin((exports, module) => {
31867
32167
  } else if (character <= 4294967295) {
31868
32168
  handle = "U";
31869
32169
  length = 8;
31870
- } else
31871
- throw new YAMLException("code point within a string may not be greater than 0xFFFFFFFF");
31872
- return "\\" + handle + common.repeat("0", length - string.length) + string;
32170
+ } else {
32171
+ throw new YAMLException2("code point within a string may not be greater than 0xFFFFFFFF");
32172
+ }
32173
+ return "\\" + handle + common2.repeat("0", length - string.length) + string;
31873
32174
  }
31874
- var QUOTING_TYPE_SINGLE = 1;
31875
- var QUOTING_TYPE_DOUBLE = 2;
32175
+ const QUOTING_TYPE_SINGLE = 1;
32176
+ const QUOTING_TYPE_DOUBLE = 2;
31876
32177
  function State(options) {
31877
- this.schema = options["schema"] || DEFAULT_SCHEMA;
32178
+ this.schema = options["schema"] || DEFAULT_SCHEMA2;
31878
32179
  this.indent = Math.max(1, options["indent"] || 2);
31879
32180
  this.noArrayIndent = options["noArrayIndent"] || false;
31880
32181
  this.skipInvalid = options["skipInvalid"] || false;
31881
- this.flowLevel = common.isNothing(options["flowLevel"]) ? -1 : options["flowLevel"];
32182
+ this.flowLevel = common2.isNothing(options["flowLevel"]) ? -1 : options["flowLevel"];
31882
32183
  this.styleMap = compileStyleMap(this.schema, options["styles"] || null);
31883
32184
  this.sortKeys = options["sortKeys"] || false;
31884
32185
  this.lineWidth = options["lineWidth"] || 80;
@@ -31896,7 +32197,7 @@ var require_dumper = /* @__PURE__ */ __commonJSMin((exports, module) => {
31896
32197
  this.usedDuplicates = null;
31897
32198
  }
31898
32199
  function indentString(string, spaces) {
31899
- const ind = common.repeat(" ", spaces);
32200
+ const ind = common2.repeat(" ", spaces);
31900
32201
  let position = 0;
31901
32202
  let result = "";
31902
32203
  const length = string.length;
@@ -31920,12 +32221,15 @@ var require_dumper = /* @__PURE__ */ __commonJSMin((exports, module) => {
31920
32221
  }
31921
32222
  function generateNextLine(state, level) {
31922
32223
  return `
31923
- ` + common.repeat(" ", state.indent * level);
32224
+ ` + common2.repeat(" ", state.indent * level);
31924
32225
  }
31925
- function testImplicitResolving(state, str) {
31926
- for (let index = 0, length = state.implicitTypes.length;index < length; index += 1)
31927
- if (state.implicitTypes[index].resolve(str))
32226
+ function testImplicitResolving(state, str2) {
32227
+ for (let index = 0, length = state.implicitTypes.length;index < length; index += 1) {
32228
+ const type2 = state.implicitTypes[index];
32229
+ if (type2.resolve(str2)) {
31928
32230
  return true;
32231
+ }
32232
+ }
31929
32233
  return false;
31930
32234
  }
31931
32235
  function isWhitespace(c) {
@@ -31953,19 +32257,21 @@ var require_dumper = /* @__PURE__ */ __commonJSMin((exports, module) => {
31953
32257
  let second;
31954
32258
  if (first >= 55296 && first <= 56319 && pos + 1 < string.length) {
31955
32259
  second = string.charCodeAt(pos + 1);
31956
- if (second >= 56320 && second <= 57343)
32260
+ if (second >= 56320 && second <= 57343) {
31957
32261
  return (first - 55296) * 1024 + second - 56320 + 65536;
32262
+ }
31958
32263
  }
31959
32264
  return first;
31960
32265
  }
31961
32266
  function needIndentIndicator(string) {
31962
- return /^\n* /.test(string);
31963
- }
31964
- var STYLE_PLAIN = 1;
31965
- var STYLE_SINGLE = 2;
31966
- var STYLE_LITERAL = 3;
31967
- var STYLE_FOLDED = 4;
31968
- var STYLE_DOUBLE = 5;
32267
+ const leadingSpaceRe = /^\n* /;
32268
+ return leadingSpaceRe.test(string);
32269
+ }
32270
+ const STYLE_PLAIN = 1;
32271
+ const STYLE_SINGLE = 2;
32272
+ const STYLE_LITERAL = 3;
32273
+ const STYLE_FOLDED = 4;
32274
+ const STYLE_DOUBLE = 5;
31969
32275
  function chooseScalarStyle(string, singleLineOnly, indentPerLevel, lineWidth, testAmbiguousType, quotingType, forceQuotes, inblock) {
31970
32276
  let i;
31971
32277
  let char = 0;
@@ -31975,15 +32281,16 @@ var require_dumper = /* @__PURE__ */ __commonJSMin((exports, module) => {
31975
32281
  const shouldTrackWidth = lineWidth !== -1;
31976
32282
  let previousLineBreak = -1;
31977
32283
  let plain = isPlainSafeFirst(codePointAt(string, 0)) && isPlainSafeLast(codePointAt(string, string.length - 1));
31978
- if (singleLineOnly || forceQuotes)
32284
+ if (singleLineOnly || forceQuotes) {
31979
32285
  for (i = 0;i < string.length; char >= 65536 ? i += 2 : i++) {
31980
32286
  char = codePointAt(string, i);
31981
- if (!isPrintable(char))
32287
+ if (!isPrintable(char)) {
31982
32288
  return STYLE_DOUBLE;
32289
+ }
31983
32290
  plain = plain && isPlainSafe(char, prevChar, inblock);
31984
32291
  prevChar = char;
31985
32292
  }
31986
- else {
32293
+ } else {
31987
32294
  for (i = 0;i < string.length; char >= 65536 ? i += 2 : i++) {
31988
32295
  char = codePointAt(string, i);
31989
32296
  if (char === CHAR_LINE_FEED) {
@@ -31992,31 +32299,37 @@ var require_dumper = /* @__PURE__ */ __commonJSMin((exports, module) => {
31992
32299
  hasFoldableLine = hasFoldableLine || i - previousLineBreak - 1 > lineWidth && string[previousLineBreak + 1] !== " ";
31993
32300
  previousLineBreak = i;
31994
32301
  }
31995
- } else if (!isPrintable(char))
32302
+ } else if (!isPrintable(char)) {
31996
32303
  return STYLE_DOUBLE;
32304
+ }
31997
32305
  plain = plain && isPlainSafe(char, prevChar, inblock);
31998
32306
  prevChar = char;
31999
32307
  }
32000
- hasFoldableLine = hasFoldableLine || shouldTrackWidth && i - previousLineBreak - 1 > lineWidth && string[previousLineBreak + 1] !== " ";
32308
+ hasFoldableLine = hasFoldableLine || shouldTrackWidth && (i - previousLineBreak - 1 > lineWidth && string[previousLineBreak + 1] !== " ");
32001
32309
  }
32002
32310
  if (!hasLineBreak && !hasFoldableLine) {
32003
- if (plain && !forceQuotes && !testAmbiguousType(string))
32311
+ if (plain && !forceQuotes && !testAmbiguousType(string)) {
32004
32312
  return STYLE_PLAIN;
32313
+ }
32005
32314
  return quotingType === QUOTING_TYPE_DOUBLE ? STYLE_DOUBLE : STYLE_SINGLE;
32006
32315
  }
32007
- if (indentPerLevel > 9 && needIndentIndicator(string))
32316
+ if (indentPerLevel > 9 && needIndentIndicator(string)) {
32008
32317
  return STYLE_DOUBLE;
32009
- if (!forceQuotes)
32318
+ }
32319
+ if (!forceQuotes) {
32010
32320
  return hasFoldableLine ? STYLE_FOLDED : STYLE_LITERAL;
32321
+ }
32011
32322
  return quotingType === QUOTING_TYPE_DOUBLE ? STYLE_DOUBLE : STYLE_SINGLE;
32012
32323
  }
32013
32324
  function writeScalar(state, string, level, iskey, inblock) {
32014
32325
  state.dump = function() {
32015
- if (string.length === 0)
32326
+ if (string.length === 0) {
32016
32327
  return state.quotingType === QUOTING_TYPE_DOUBLE ? '""' : "''";
32328
+ }
32017
32329
  if (!state.noCompatMode) {
32018
- if (DEPRECATED_BOOLEANS_SYNTAX.indexOf(string) !== -1 || DEPRECATED_BASE60_SYNTAX.test(string))
32330
+ if (DEPRECATED_BOOLEANS_SYNTAX.indexOf(string) !== -1 || DEPRECATED_BASE60_SYNTAX.test(string)) {
32019
32331
  return state.quotingType === QUOTING_TYPE_DOUBLE ? '"' + string + '"' : "'" + string + "'";
32332
+ }
32020
32333
  }
32021
32334
  const indent = state.indent * Math.max(1, level);
32022
32335
  const lineWidth = state.lineWidth === -1 ? -1 : Math.max(Math.min(state.lineWidth, 40), state.lineWidth - indent);
@@ -32034,9 +32347,9 @@ var require_dumper = /* @__PURE__ */ __commonJSMin((exports, module) => {
32034
32347
  case STYLE_FOLDED:
32035
32348
  return ">" + blockHeader(string, state.indent) + dropEndingNewline(indentString(foldString(string, lineWidth), indent));
32036
32349
  case STYLE_DOUBLE:
32037
- return '"' + escapeString(string, lineWidth) + '"';
32350
+ return '"' + escapeString(string) + '"';
32038
32351
  default:
32039
- throw new YAMLException("impossible error: invalid scalar style");
32352
+ throw new YAMLException2("impossible error: invalid scalar style");
32040
32353
  }
32041
32354
  }();
32042
32355
  }
@@ -32044,9 +32357,11 @@ var require_dumper = /* @__PURE__ */ __commonJSMin((exports, module) => {
32044
32357
  const indentIndicator = needIndentIndicator(string) ? String(indentPerLevel) : "";
32045
32358
  const clip = string[string.length - 1] === `
32046
32359
  `;
32047
- return indentIndicator + (clip && (string[string.length - 2] === `
32360
+ const keep = clip && (string[string.length - 2] === `
32048
32361
  ` || string === `
32049
- `) ? "+" : clip ? "" : "-") + `
32362
+ `);
32363
+ const chomp = keep ? "+" : clip ? "" : "-";
32364
+ return indentIndicator + chomp + `
32050
32365
  `;
32051
32366
  }
32052
32367
  function dropEndingNewline(string) {
@@ -32098,11 +32413,12 @@ var require_dumper = /* @__PURE__ */ __commonJSMin((exports, module) => {
32098
32413
  }
32099
32414
  result += `
32100
32415
  `;
32101
- if (line.length - start > width && curr > start)
32416
+ if (line.length - start > width && curr > start) {
32102
32417
  result += line.slice(start, curr) + `
32103
32418
  ` + line.slice(curr + 1);
32104
- else
32419
+ } else {
32105
32420
  result += line.slice(start);
32421
+ }
32106
32422
  return result.slice(1);
32107
32423
  }
32108
32424
  function escapeString(string) {
@@ -32115,8 +32431,9 @@ var require_dumper = /* @__PURE__ */ __commonJSMin((exports, module) => {
32115
32431
  result += string[i];
32116
32432
  if (char >= 65536)
32117
32433
  result += string[i + 1];
32118
- } else
32434
+ } else {
32119
32435
  result += escapeSeq || encodeHex(char);
32436
+ }
32120
32437
  }
32121
32438
  return result;
32122
32439
  }
@@ -32125,8 +32442,9 @@ var require_dumper = /* @__PURE__ */ __commonJSMin((exports, module) => {
32125
32442
  const _tag = state.tag;
32126
32443
  for (let index = 0, length = object.length;index < length; index += 1) {
32127
32444
  let value = object[index];
32128
- if (state.replacer)
32445
+ if (state.replacer) {
32129
32446
  value = state.replacer.call(object, String(index), value);
32447
+ }
32130
32448
  if (writeNode(state, level, value, false, false) || typeof value === "undefined" && writeNode(state, level, null, false, false)) {
32131
32449
  if (_result !== "")
32132
32450
  _result += "," + (!state.condenseFlow ? " " : "");
@@ -32141,15 +32459,18 @@ var require_dumper = /* @__PURE__ */ __commonJSMin((exports, module) => {
32141
32459
  const _tag = state.tag;
32142
32460
  for (let index = 0, length = object.length;index < length; index += 1) {
32143
32461
  let value = object[index];
32144
- if (state.replacer)
32462
+ if (state.replacer) {
32145
32463
  value = state.replacer.call(object, String(index), value);
32464
+ }
32146
32465
  if (writeNode(state, level + 1, value, true, true, false, true) || typeof value === "undefined" && writeNode(state, level + 1, null, true, true, false, true)) {
32147
- if (!compact || _result !== "")
32466
+ if (!compact || _result !== "") {
32148
32467
  _result += generateNextLine(state, level);
32149
- if (state.dump && CHAR_LINE_FEED === state.dump.charCodeAt(0))
32468
+ }
32469
+ if (state.dump && CHAR_LINE_FEED === state.dump.charCodeAt(0)) {
32150
32470
  _result += "-";
32151
- else
32471
+ } else {
32152
32472
  _result += "- ";
32473
+ }
32153
32474
  _result += state.dump;
32154
32475
  }
32155
32476
  }
@@ -32168,15 +32489,18 @@ var require_dumper = /* @__PURE__ */ __commonJSMin((exports, module) => {
32168
32489
  pairBuffer += '"';
32169
32490
  const objectKey = objectKeyList[index];
32170
32491
  let objectValue = object[objectKey];
32171
- if (state.replacer)
32492
+ if (state.replacer) {
32172
32493
  objectValue = state.replacer.call(object, objectKey, objectValue);
32173
- if (!writeNode(state, level, objectKey, false, false))
32494
+ }
32495
+ if (!writeNode(state, level, objectKey, false, false)) {
32174
32496
  continue;
32497
+ }
32175
32498
  if (state.dump.length > 1024)
32176
32499
  pairBuffer += "? ";
32177
32500
  pairBuffer += state.dump + (state.condenseFlow ? '"' : "") + ":" + (state.condenseFlow ? "" : " ");
32178
- if (!writeNode(state, level, objectValue, false, false))
32501
+ if (!writeNode(state, level, objectValue, false, false)) {
32179
32502
  continue;
32503
+ }
32180
32504
  pairBuffer += state.dump;
32181
32505
  _result += pairBuffer;
32182
32506
  }
@@ -32187,37 +32511,46 @@ var require_dumper = /* @__PURE__ */ __commonJSMin((exports, module) => {
32187
32511
  let _result = "";
32188
32512
  const _tag = state.tag;
32189
32513
  const objectKeyList = Object.keys(object);
32190
- if (state.sortKeys === true)
32514
+ if (state.sortKeys === true) {
32191
32515
  objectKeyList.sort();
32192
- else if (typeof state.sortKeys === "function")
32516
+ } else if (typeof state.sortKeys === "function") {
32193
32517
  objectKeyList.sort(state.sortKeys);
32194
- else if (state.sortKeys)
32195
- throw new YAMLException("sortKeys must be a boolean or a function");
32518
+ } else if (state.sortKeys) {
32519
+ throw new YAMLException2("sortKeys must be a boolean or a function");
32520
+ }
32196
32521
  for (let index = 0, length = objectKeyList.length;index < length; index += 1) {
32197
32522
  let pairBuffer = "";
32198
- if (!compact || _result !== "")
32523
+ if (!compact || _result !== "") {
32199
32524
  pairBuffer += generateNextLine(state, level);
32525
+ }
32200
32526
  const objectKey = objectKeyList[index];
32201
32527
  let objectValue = object[objectKey];
32202
- if (state.replacer)
32528
+ if (state.replacer) {
32203
32529
  objectValue = state.replacer.call(object, objectKey, objectValue);
32204
- if (!writeNode(state, level + 1, objectKey, true, true, true))
32530
+ }
32531
+ if (!writeNode(state, level + 1, objectKey, true, true, true)) {
32205
32532
  continue;
32533
+ }
32206
32534
  const explicitPair = state.tag !== null && state.tag !== "?" || state.dump && state.dump.length > 1024;
32207
- if (explicitPair)
32208
- if (state.dump && CHAR_LINE_FEED === state.dump.charCodeAt(0))
32535
+ if (explicitPair) {
32536
+ if (state.dump && CHAR_LINE_FEED === state.dump.charCodeAt(0)) {
32209
32537
  pairBuffer += "?";
32210
- else
32538
+ } else {
32211
32539
  pairBuffer += "? ";
32540
+ }
32541
+ }
32212
32542
  pairBuffer += state.dump;
32213
- if (explicitPair)
32543
+ if (explicitPair) {
32214
32544
  pairBuffer += generateNextLine(state, level);
32215
- if (!writeNode(state, level + 1, objectValue, true, explicitPair))
32545
+ }
32546
+ if (!writeNode(state, level + 1, objectValue, true, explicitPair)) {
32216
32547
  continue;
32217
- if (state.dump && CHAR_LINE_FEED === state.dump.charCodeAt(0))
32548
+ }
32549
+ if (state.dump && CHAR_LINE_FEED === state.dump.charCodeAt(0)) {
32218
32550
  pairBuffer += ":";
32219
- else
32551
+ } else {
32220
32552
  pairBuffer += ": ";
32553
+ }
32221
32554
  pairBuffer += state.dump;
32222
32555
  _result += pairBuffer;
32223
32556
  }
@@ -32227,24 +32560,27 @@ var require_dumper = /* @__PURE__ */ __commonJSMin((exports, module) => {
32227
32560
  function detectType(state, object, explicit) {
32228
32561
  const typeList = explicit ? state.explicitTypes : state.implicitTypes;
32229
32562
  for (let index = 0, length = typeList.length;index < length; index += 1) {
32230
- const type = typeList[index];
32231
- if ((type.instanceOf || type.predicate) && (!type.instanceOf || typeof object === "object" && object instanceof type.instanceOf) && (!type.predicate || type.predicate(object))) {
32232
- if (explicit)
32233
- if (type.multi && type.representName)
32234
- state.tag = type.representName(object);
32235
- else
32236
- state.tag = type.tag;
32237
- else
32563
+ const type2 = typeList[index];
32564
+ if ((type2.instanceOf || type2.predicate) && (!type2.instanceOf || typeof object === "object" && object instanceof type2.instanceOf) && (!type2.predicate || type2.predicate(object))) {
32565
+ if (explicit) {
32566
+ if (type2.multi && type2.representName) {
32567
+ state.tag = type2.representName(object);
32568
+ } else {
32569
+ state.tag = type2.tag;
32570
+ }
32571
+ } else {
32238
32572
  state.tag = "?";
32239
- if (type.represent) {
32240
- const style = state.styleMap[type.tag] || type.defaultStyle;
32573
+ }
32574
+ if (type2.represent) {
32575
+ const style = state.styleMap[type2.tag] || type2.defaultStyle;
32241
32576
  let _result;
32242
- if (_toString.call(type.represent) === "[object Function]")
32243
- _result = type.represent(object, style);
32244
- else if (_hasOwnProperty.call(type.represent, style))
32245
- _result = type.represent[style](object, style);
32246
- else
32247
- throw new YAMLException("!<" + type.tag + '> tag resolver accepts not "' + style + '" style');
32577
+ if (_toString.call(type2.represent) === "[object Function]") {
32578
+ _result = type2.represent(object, style);
32579
+ } else if (_hasOwnProperty.call(type2.represent, style)) {
32580
+ _result = type2.represent[style](object, style);
32581
+ } else {
32582
+ throw new YAMLException2("!<" + type2.tag + '> tag resolver accepts not "' + style + '" style');
32583
+ }
32248
32584
  state.dump = _result;
32249
32585
  }
32250
32586
  return true;
@@ -32255,67 +32591,78 @@ var require_dumper = /* @__PURE__ */ __commonJSMin((exports, module) => {
32255
32591
  function writeNode(state, level, object, block, compact, iskey, isblockseq) {
32256
32592
  state.tag = null;
32257
32593
  state.dump = object;
32258
- if (!detectType(state, object, false))
32594
+ if (!detectType(state, object, false)) {
32259
32595
  detectType(state, object, true);
32260
- const type = _toString.call(state.dump);
32596
+ }
32597
+ const type2 = _toString.call(state.dump);
32261
32598
  const inblock = block;
32262
- if (block)
32599
+ if (block) {
32263
32600
  block = state.flowLevel < 0 || state.flowLevel > level;
32264
- const objectOrArray = type === "[object Object]" || type === "[object Array]";
32601
+ }
32602
+ const objectOrArray = type2 === "[object Object]" || type2 === "[object Array]";
32265
32603
  let duplicateIndex;
32266
32604
  let duplicate;
32267
32605
  if (objectOrArray) {
32268
32606
  duplicateIndex = state.duplicates.indexOf(object);
32269
32607
  duplicate = duplicateIndex !== -1;
32270
32608
  }
32271
- if (state.tag !== null && state.tag !== "?" || duplicate || state.indent !== 2 && level > 0)
32609
+ if (state.tag !== null && state.tag !== "?" || duplicate || state.indent !== 2 && level > 0) {
32272
32610
  compact = false;
32273
- if (duplicate && state.usedDuplicates[duplicateIndex])
32611
+ }
32612
+ if (duplicate && state.usedDuplicates[duplicateIndex]) {
32274
32613
  state.dump = "*ref_" + duplicateIndex;
32275
- else {
32276
- if (objectOrArray && duplicate && !state.usedDuplicates[duplicateIndex])
32614
+ } else {
32615
+ if (objectOrArray && duplicate && !state.usedDuplicates[duplicateIndex]) {
32277
32616
  state.usedDuplicates[duplicateIndex] = true;
32278
- if (type === "[object Object]")
32617
+ }
32618
+ if (type2 === "[object Object]") {
32279
32619
  if (block && Object.keys(state.dump).length !== 0) {
32280
32620
  writeBlockMapping(state, level, state.dump, compact);
32281
- if (duplicate)
32621
+ if (duplicate) {
32282
32622
  state.dump = "&ref_" + duplicateIndex + state.dump;
32623
+ }
32283
32624
  } else {
32284
32625
  writeFlowMapping(state, level, state.dump);
32285
- if (duplicate)
32626
+ if (duplicate) {
32286
32627
  state.dump = "&ref_" + duplicateIndex + " " + state.dump;
32628
+ }
32287
32629
  }
32288
- else if (type === "[object Array]")
32630
+ } else if (type2 === "[object Array]") {
32289
32631
  if (block && state.dump.length !== 0) {
32290
- if (state.noArrayIndent && !isblockseq && level > 0)
32632
+ if (state.noArrayIndent && !isblockseq && level > 0) {
32291
32633
  writeBlockSequence(state, level - 1, state.dump, compact);
32292
- else
32634
+ } else {
32293
32635
  writeBlockSequence(state, level, state.dump, compact);
32294
- if (duplicate)
32636
+ }
32637
+ if (duplicate) {
32295
32638
  state.dump = "&ref_" + duplicateIndex + state.dump;
32639
+ }
32296
32640
  } else {
32297
32641
  writeFlowSequence(state, level, state.dump);
32298
- if (duplicate)
32642
+ if (duplicate) {
32299
32643
  state.dump = "&ref_" + duplicateIndex + " " + state.dump;
32644
+ }
32300
32645
  }
32301
- else if (type === "[object String]") {
32302
- if (state.tag !== "?")
32646
+ } else if (type2 === "[object String]") {
32647
+ if (state.tag !== "?") {
32303
32648
  writeScalar(state, state.dump, level, iskey, inblock);
32304
- } else if (type === "[object Undefined]")
32649
+ }
32650
+ } else if (type2 === "[object Undefined]") {
32305
32651
  return false;
32306
- else {
32652
+ } else {
32307
32653
  if (state.skipInvalid)
32308
32654
  return false;
32309
- throw new YAMLException("unacceptable kind of an object to dump " + type);
32655
+ throw new YAMLException2("unacceptable kind of an object to dump " + type2);
32310
32656
  }
32311
32657
  if (state.tag !== null && state.tag !== "?") {
32312
32658
  let tagStr = encodeURI(state.tag[0] === "!" ? state.tag.slice(1) : state.tag).replace(/!/g, "%21");
32313
- if (state.tag[0] === "!")
32659
+ if (state.tag[0] === "!") {
32314
32660
  tagStr = "!" + tagStr;
32315
- else if (tagStr.slice(0, 18) === "tag:yaml.org,2002:")
32661
+ } else if (tagStr.slice(0, 18) === "tag:yaml.org,2002:") {
32316
32662
  tagStr = "!!" + tagStr.slice(18);
32317
- else
32663
+ } else {
32318
32664
  tagStr = "!<" + tagStr + ">";
32665
+ }
32319
32666
  state.dump = tagStr + " " + state.dump;
32320
32667
  }
32321
32668
  }
@@ -32326,83 +32673,110 @@ var require_dumper = /* @__PURE__ */ __commonJSMin((exports, module) => {
32326
32673
  const duplicatesIndexes = [];
32327
32674
  inspectNode(object, objects, duplicatesIndexes);
32328
32675
  const length = duplicatesIndexes.length;
32329
- for (let index = 0;index < length; index += 1)
32676
+ for (let index = 0;index < length; index += 1) {
32330
32677
  state.duplicates.push(objects[duplicatesIndexes[index]]);
32678
+ }
32331
32679
  state.usedDuplicates = new Array(length);
32332
32680
  }
32333
32681
  function inspectNode(object, objects, duplicatesIndexes) {
32334
32682
  if (object !== null && typeof object === "object") {
32335
32683
  const index = objects.indexOf(object);
32336
32684
  if (index !== -1) {
32337
- if (duplicatesIndexes.indexOf(index) === -1)
32685
+ if (duplicatesIndexes.indexOf(index) === -1) {
32338
32686
  duplicatesIndexes.push(index);
32687
+ }
32339
32688
  } else {
32340
32689
  objects.push(object);
32341
- if (Array.isArray(object))
32342
- for (let i = 0, length = object.length;i < length; i += 1)
32690
+ if (Array.isArray(object)) {
32691
+ for (let i = 0, length = object.length;i < length; i += 1) {
32343
32692
  inspectNode(object[i], objects, duplicatesIndexes);
32344
- else {
32693
+ }
32694
+ } else {
32345
32695
  const objectKeyList = Object.keys(object);
32346
- for (let i = 0, length = objectKeyList.length;i < length; i += 1)
32696
+ for (let i = 0, length = objectKeyList.length;i < length; i += 1) {
32347
32697
  inspectNode(object[objectKeyList[i]], objects, duplicatesIndexes);
32698
+ }
32348
32699
  }
32349
32700
  }
32350
32701
  }
32351
32702
  }
32352
- function dump(input, options) {
32703
+ function dump2(input, options) {
32353
32704
  options = options || {};
32354
32705
  const state = new State(options);
32355
32706
  if (!state.noRefs)
32356
32707
  getDuplicateReferences(input, state);
32357
32708
  let value = input;
32358
- if (state.replacer)
32709
+ if (state.replacer) {
32359
32710
  value = state.replacer.call({ "": value }, "", value);
32711
+ }
32360
32712
  if (writeNode(state, 0, value, true, true))
32361
32713
  return state.dump + `
32362
32714
  `;
32363
32715
  return "";
32364
32716
  }
32365
- module.exports.dump = dump;
32366
- });
32367
- var import_js_yaml = /* @__PURE__ */ __toESM2((/* @__PURE__ */ __commonJSMin((exports, module) => {
32368
- var loader = require_loader();
32369
- var dumper = require_dumper();
32717
+ dumper.dump = dump2;
32718
+ return dumper;
32719
+ }
32720
+ var hasRequiredJsYaml;
32721
+ function requireJsYaml() {
32722
+ if (hasRequiredJsYaml)
32723
+ return jsYaml;
32724
+ hasRequiredJsYaml = 1;
32725
+ const loader2 = requireLoader();
32726
+ const dumper2 = requireDumper();
32370
32727
  function renamed(from, to) {
32371
32728
  return function() {
32372
32729
  throw new Error("Function yaml." + from + " is removed in js-yaml 4. Use yaml." + to + " instead, which is now safe by default.");
32373
32730
  };
32374
32731
  }
32375
- module.exports.Type = require_type();
32376
- module.exports.Schema = require_schema();
32377
- module.exports.FAILSAFE_SCHEMA = require_failsafe();
32378
- module.exports.JSON_SCHEMA = require_json();
32379
- module.exports.CORE_SCHEMA = require_core();
32380
- module.exports.DEFAULT_SCHEMA = require_default();
32381
- module.exports.load = loader.load;
32382
- module.exports.loadAll = loader.loadAll;
32383
- module.exports.dump = dumper.dump;
32384
- module.exports.YAMLException = require_exception();
32385
- module.exports.types = {
32386
- binary: require_binary(),
32387
- float: require_float(),
32388
- map: require_map(),
32732
+ jsYaml.Type = requireType();
32733
+ jsYaml.Schema = requireSchema();
32734
+ jsYaml.FAILSAFE_SCHEMA = requireFailsafe();
32735
+ jsYaml.JSON_SCHEMA = requireJson();
32736
+ jsYaml.CORE_SCHEMA = requireCore();
32737
+ jsYaml.DEFAULT_SCHEMA = require_default();
32738
+ jsYaml.load = loader2.load;
32739
+ jsYaml.loadAll = loader2.loadAll;
32740
+ jsYaml.dump = dumper2.dump;
32741
+ jsYaml.YAMLException = requireException();
32742
+ jsYaml.types = {
32743
+ binary: requireBinary(),
32744
+ float: requireFloat(),
32745
+ map: requireMap(),
32389
32746
  null: require_null(),
32390
- pairs: require_pairs(),
32391
- set: require_set(),
32392
- timestamp: require_timestamp(),
32393
- bool: require_bool(),
32394
- int: require_int(),
32395
- merge: require_merge(),
32396
- omap: require_omap(),
32397
- seq: require_seq(),
32398
- str: require_str()
32747
+ pairs: requirePairs(),
32748
+ set: requireSet(),
32749
+ timestamp: requireTimestamp(),
32750
+ bool: requireBool(),
32751
+ int: requireInt(),
32752
+ merge: requireMerge(),
32753
+ omap: requireOmap(),
32754
+ seq: requireSeq(),
32755
+ str: requireStr()
32399
32756
  };
32400
- module.exports.safeLoad = renamed("safeLoad", "load");
32401
- module.exports.safeLoadAll = renamed("safeLoadAll", "loadAll");
32402
- module.exports.safeDump = renamed("safeDump", "dump");
32403
- }))(), 1);
32404
- var { Type, Schema, FAILSAFE_SCHEMA, JSON_SCHEMA, CORE_SCHEMA, DEFAULT_SCHEMA, load, loadAll, dump, YAMLException, types, safeLoad, safeLoadAll, safeDump } = import_js_yaml.default;
32405
- var index_vite_proxy_tmp_default = import_js_yaml.default;
32757
+ jsYaml.safeLoad = renamed("safeLoad", "load");
32758
+ jsYaml.safeLoadAll = renamed("safeLoadAll", "loadAll");
32759
+ jsYaml.safeDump = renamed("safeDump", "dump");
32760
+ return jsYaml;
32761
+ }
32762
+ var jsYamlExports = requireJsYaml();
32763
+ var yaml = /* @__PURE__ */ getDefaultExportFromCjs(jsYamlExports);
32764
+ var {
32765
+ Type,
32766
+ Schema,
32767
+ FAILSAFE_SCHEMA,
32768
+ JSON_SCHEMA,
32769
+ CORE_SCHEMA,
32770
+ DEFAULT_SCHEMA,
32771
+ load,
32772
+ loadAll,
32773
+ dump,
32774
+ YAMLException,
32775
+ types,
32776
+ safeLoad,
32777
+ safeLoadAll,
32778
+ safeDump
32779
+ } = yaml;
32406
32780
 
32407
32781
  // ../common/src/logger.ts
32408
32782
  init_src();
@@ -32479,11 +32853,11 @@ class SimpleLogger {
32479
32853
  const path3 = this.logFilePath || getGlobalLogFilePath();
32480
32854
  if (!path3)
32481
32855
  return;
32482
- const timestamp = new Date().toISOString();
32856
+ const timestamp2 = new Date().toISOString();
32483
32857
  this.pendingWrites = Promise.all([
32484
32858
  this.pendingWrites,
32485
32859
  this.pendingInit
32486
- ]).then(() => getFileSystem().appendFile(path3, `${timestamp} ${formatted}`).catch(() => {}));
32860
+ ]).then(() => getFileSystem().appendFile(path3, `${timestamp2} ${formatted}`).catch(() => {}));
32487
32861
  }
32488
32862
  debug(message, ...args) {
32489
32863
  if (this.level > 0 /* DEBUG */)
@@ -32877,10 +33251,10 @@ class LoggerTelemetryProvider {
32877
33251
  success
32878
33252
  })));
32879
33253
  }
32880
- async trackDependency(name, type, duration, success, properties) {
33254
+ async trackDependency(name, type2, duration, success, properties) {
32881
33255
  logger.debug(formatMessage("Dependency", name, this.enrich({
32882
33256
  ...properties,
32883
- type,
33257
+ type: type2,
32884
33258
  duration: `${duration}ms`,
32885
33259
  success
32886
33260
  })));
@@ -33113,7 +33487,7 @@ class TelemetryService {
33113
33487
  throw error;
33114
33488
  }
33115
33489
  }
33116
- async trackDependencyOperation(name, type, fn, properties) {
33490
+ async trackDependencyOperation(name, type2, fn, properties) {
33117
33491
  const parentContext = this.getCurrentContext();
33118
33492
  if (!parentContext) {
33119
33493
  throw new Error("trackDependencyOperation must be called within a trackRequest block.");
@@ -33128,13 +33502,13 @@ class TelemetryService {
33128
33502
  const result = await this.contextStorage.run(childContext, fn);
33129
33503
  const durationMs = performance.now() - startTime;
33130
33504
  const enrichedProperties = this.enrichPropertiesWithContext(properties, childContext);
33131
- await this.telemetryProvider.trackDependency(name, type, durationMs, true, enrichedProperties);
33505
+ await this.telemetryProvider.trackDependency(name, type2, durationMs, true, enrichedProperties);
33132
33506
  return result;
33133
33507
  } catch (error) {
33134
33508
  const durationMs = performance.now() - startTime;
33135
33509
  const err = error instanceof Error ? error : new Error(String(error));
33136
33510
  const enrichedProperties = this.enrichPropertiesWithContext({ ...properties, errorMessage: err.message }, childContext);
33137
- await this.telemetryProvider.trackDependency(name, type, durationMs, false, enrichedProperties);
33511
+ await this.telemetryProvider.trackDependency(name, type2, durationMs, false, enrichedProperties);
33138
33512
  throw error;
33139
33513
  }
33140
33514
  }
@@ -33341,8 +33715,8 @@ function printOutput(data, format = "json", logFn, asciiSafe = false) {
33341
33715
  }
33342
33716
  switch (format) {
33343
33717
  case "json": {
33344
- const json = JSON.stringify(data, null, 2);
33345
- logFn(asciiSafe ? escapeNonAscii(json) : json);
33718
+ const json2 = JSON.stringify(data, null, 2);
33719
+ logFn(asciiSafe ? escapeNonAscii(json2) : json2);
33346
33720
  break;
33347
33721
  }
33348
33722
  case "yaml":
@@ -33678,8 +34052,8 @@ var OutputFormatter;
33678
34052
  const sink = getOutputSink();
33679
34053
  const normalized = toPascalCaseData(data);
33680
34054
  if (format === "json") {
33681
- const json = JSON.stringify(normalized);
33682
- const safe = needsAsciiSafeJson(sink) ? escapeNonAscii(json) : json;
34055
+ const json2 = JSON.stringify(normalized);
34056
+ const safe = needsAsciiSafeJson(sink) ? escapeNonAscii(json2) : json2;
33683
34057
  sink.writeErr(`${safe}
33684
34058
  `);
33685
34059
  } else {
@@ -33929,8 +34303,8 @@ function redactValueDetectors(value) {
33929
34303
  out = out.replace(JWT_PATTERN, () => REDACTED);
33930
34304
  out = out.replace(URL_PATTERN, (match) => {
33931
34305
  const trailing = match.match(URL_TRAILING_PUNCT)?.[0] ?? "";
33932
- const core = trailing ? match.slice(0, -trailing.length) : match;
33933
- return `${redactUrl(core)}${trailing}`;
34306
+ const core2 = trailing ? match.slice(0, -trailing.length) : match;
34307
+ return `${redactUrl(core2)}${trailing}`;
33934
34308
  });
33935
34309
  out = out.replace(USER_HOME_PATTERN, (_match, sep1, folder, sep2) => `${sep1}${folder}${sep2}<user>`);
33936
34310
  out = out.replace(EMAIL_PATTERN, (match) => `email#${shortHash(match)}`);
@@ -34918,12 +35292,12 @@ var loadEnvFileAsync = async ({ envPath }) => {
34918
35292
  var saveEnvFileAsync = async ({
34919
35293
  envPath,
34920
35294
  data,
34921
- merge = true
35295
+ merge: merge2 = true
34922
35296
  }) => {
34923
35297
  const fs7 = getFileSystem();
34924
35298
  const absolutePath = fs7.path.isAbsolute(envPath) ? envPath : fs7.path.join(fs7.env.homedir(), envPath);
34925
35299
  let existingData = {};
34926
- if (merge && await fs7.exists(absolutePath)) {
35300
+ if (merge2 && await fs7.exists(absolutePath)) {
34927
35301
  try {
34928
35302
  existingData = await loadEnvFileAsync({ envPath: absolutePath });
34929
35303
  } catch {}
@@ -35843,8 +36217,8 @@ function mergeDefs(...defs) {
35843
36217
  }
35844
36218
  return Object.defineProperties({}, mergedDescriptors);
35845
36219
  }
35846
- function esc(str) {
35847
- return JSON.stringify(str);
36220
+ function esc(str2) {
36221
+ return JSON.stringify(str2);
35848
36222
  }
35849
36223
  function slugify(input) {
35850
36224
  return input.toLowerCase().trim().replace(/[^\w\s-]/g, "").replace(/[\s_-]+/g, "-").replace(/^-+|-+$/g, "");
@@ -35889,8 +36263,8 @@ function shallowClone(o) {
35889
36263
  return o;
35890
36264
  }
35891
36265
  var propertyKeyTypes = new Set(["string", "number", "symbol"]);
35892
- function escapeRegex(str) {
35893
- return str.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
36266
+ function escapeRegex(str2) {
36267
+ return str2.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
35894
36268
  }
35895
36269
  function clone(inst, def, params) {
35896
36270
  const cl = new inst._zod.constr(def ?? inst._zod.def);
@@ -35919,14 +36293,14 @@ function optionalKeys(shape) {
35919
36293
  return shape[k]._zod.optin === "optional" && shape[k]._zod.optout === "optional";
35920
36294
  });
35921
36295
  }
35922
- function pick(schema, mask) {
35923
- const currDef = schema._zod.def;
36296
+ function pick(schema2, mask) {
36297
+ const currDef = schema2._zod.def;
35924
36298
  const checks = currDef.checks;
35925
36299
  const hasChecks = checks && checks.length > 0;
35926
36300
  if (hasChecks) {
35927
36301
  throw new Error(".pick() cannot be used on object schemas containing refinements");
35928
36302
  }
35929
- const def = mergeDefs(schema._zod.def, {
36303
+ const def = mergeDefs(schema2._zod.def, {
35930
36304
  get shape() {
35931
36305
  const newShape = {};
35932
36306
  for (const key in mask) {
@@ -35942,18 +36316,18 @@ function pick(schema, mask) {
35942
36316
  },
35943
36317
  checks: []
35944
36318
  });
35945
- return clone(schema, def);
36319
+ return clone(schema2, def);
35946
36320
  }
35947
- function omit(schema, mask) {
35948
- const currDef = schema._zod.def;
36321
+ function omit(schema2, mask) {
36322
+ const currDef = schema2._zod.def;
35949
36323
  const checks = currDef.checks;
35950
36324
  const hasChecks = checks && checks.length > 0;
35951
36325
  if (hasChecks) {
35952
36326
  throw new Error(".omit() cannot be used on object schemas containing refinements");
35953
36327
  }
35954
- const def = mergeDefs(schema._zod.def, {
36328
+ const def = mergeDefs(schema2._zod.def, {
35955
36329
  get shape() {
35956
- const newShape = { ...schema._zod.def.shape };
36330
+ const newShape = { ...schema2._zod.def.shape };
35957
36331
  for (const key in mask) {
35958
36332
  if (!(key in currDef.shape)) {
35959
36333
  throw new Error(`Unrecognized key: "${key}"`);
@@ -35967,45 +36341,45 @@ function omit(schema, mask) {
35967
36341
  },
35968
36342
  checks: []
35969
36343
  });
35970
- return clone(schema, def);
36344
+ return clone(schema2, def);
35971
36345
  }
35972
- function extend(schema, shape) {
36346
+ function extend(schema2, shape) {
35973
36347
  if (!isPlainObject(shape)) {
35974
36348
  throw new Error("Invalid input to extend: expected a plain object");
35975
36349
  }
35976
- const checks = schema._zod.def.checks;
36350
+ const checks = schema2._zod.def.checks;
35977
36351
  const hasChecks = checks && checks.length > 0;
35978
36352
  if (hasChecks) {
35979
- const existingShape = schema._zod.def.shape;
36353
+ const existingShape = schema2._zod.def.shape;
35980
36354
  for (const key in shape) {
35981
36355
  if (Object.getOwnPropertyDescriptor(existingShape, key) !== undefined) {
35982
36356
  throw new Error("Cannot overwrite keys on object schemas containing refinements. Use `.safeExtend()` instead.");
35983
36357
  }
35984
36358
  }
35985
36359
  }
35986
- const def = mergeDefs(schema._zod.def, {
36360
+ const def = mergeDefs(schema2._zod.def, {
35987
36361
  get shape() {
35988
- const _shape = { ...schema._zod.def.shape, ...shape };
36362
+ const _shape = { ...schema2._zod.def.shape, ...shape };
35989
36363
  assignProp(this, "shape", _shape);
35990
36364
  return _shape;
35991
36365
  }
35992
36366
  });
35993
- return clone(schema, def);
36367
+ return clone(schema2, def);
35994
36368
  }
35995
- function safeExtend(schema, shape) {
36369
+ function safeExtend(schema2, shape) {
35996
36370
  if (!isPlainObject(shape)) {
35997
36371
  throw new Error("Invalid input to safeExtend: expected a plain object");
35998
36372
  }
35999
- const def = mergeDefs(schema._zod.def, {
36373
+ const def = mergeDefs(schema2._zod.def, {
36000
36374
  get shape() {
36001
- const _shape = { ...schema._zod.def.shape, ...shape };
36375
+ const _shape = { ...schema2._zod.def.shape, ...shape };
36002
36376
  assignProp(this, "shape", _shape);
36003
36377
  return _shape;
36004
36378
  }
36005
36379
  });
36006
- return clone(schema, def);
36380
+ return clone(schema2, def);
36007
36381
  }
36008
- function merge(a, b) {
36382
+ function merge2(a, b) {
36009
36383
  const def = mergeDefs(a._zod.def, {
36010
36384
  get shape() {
36011
36385
  const _shape = { ...a._zod.def.shape, ...b._zod.def.shape };
@@ -36019,16 +36393,16 @@ function merge(a, b) {
36019
36393
  });
36020
36394
  return clone(a, def);
36021
36395
  }
36022
- function partial(Class, schema, mask) {
36023
- const currDef = schema._zod.def;
36396
+ function partial(Class, schema2, mask) {
36397
+ const currDef = schema2._zod.def;
36024
36398
  const checks = currDef.checks;
36025
36399
  const hasChecks = checks && checks.length > 0;
36026
36400
  if (hasChecks) {
36027
36401
  throw new Error(".partial() cannot be used on object schemas containing refinements");
36028
36402
  }
36029
- const def = mergeDefs(schema._zod.def, {
36403
+ const def = mergeDefs(schema2._zod.def, {
36030
36404
  get shape() {
36031
- const oldShape = schema._zod.def.shape;
36405
+ const oldShape = schema2._zod.def.shape;
36032
36406
  const shape = { ...oldShape };
36033
36407
  if (mask) {
36034
36408
  for (const key in mask) {
@@ -36055,12 +36429,12 @@ function partial(Class, schema, mask) {
36055
36429
  },
36056
36430
  checks: []
36057
36431
  });
36058
- return clone(schema, def);
36432
+ return clone(schema2, def);
36059
36433
  }
36060
- function required(Class, schema, mask) {
36061
- const def = mergeDefs(schema._zod.def, {
36434
+ function required(Class, schema2, mask) {
36435
+ const def = mergeDefs(schema2._zod.def, {
36062
36436
  get shape() {
36063
- const oldShape = schema._zod.def.shape;
36437
+ const oldShape = schema2._zod.def.shape;
36064
36438
  const shape = { ...oldShape };
36065
36439
  if (mask) {
36066
36440
  for (const key in mask) {
@@ -36086,7 +36460,7 @@ function required(Class, schema, mask) {
36086
36460
  return shape;
36087
36461
  }
36088
36462
  });
36089
- return clone(schema, def);
36463
+ return clone(schema2, def);
36090
36464
  }
36091
36465
  function aborted(x, startIndex = 0) {
36092
36466
  if (x.aborted === true)
@@ -36205,9 +36579,9 @@ function formatError(error, mapper = (issue2) => issue2.message) {
36205
36579
  processError(error);
36206
36580
  return fieldErrors;
36207
36581
  }
36208
- var _parse = (_Err) => (schema, value, _ctx, _params) => {
36582
+ var _parse = (_Err) => (schema2, value, _ctx, _params) => {
36209
36583
  const ctx = _ctx ? Object.assign(_ctx, { async: false }) : { async: false };
36210
- const result = schema._zod.run({ value, issues: [] }, ctx);
36584
+ const result = schema2._zod.run({ value, issues: [] }, ctx);
36211
36585
  if (result instanceof Promise) {
36212
36586
  throw new $ZodAsyncError;
36213
36587
  }
@@ -36218,9 +36592,9 @@ var _parse = (_Err) => (schema, value, _ctx, _params) => {
36218
36592
  }
36219
36593
  return result.value;
36220
36594
  };
36221
- var _parseAsync = (_Err) => async (schema, value, _ctx, params) => {
36595
+ var _parseAsync = (_Err) => async (schema2, value, _ctx, params) => {
36222
36596
  const ctx = _ctx ? Object.assign(_ctx, { async: true }) : { async: true };
36223
- let result = schema._zod.run({ value, issues: [] }, ctx);
36597
+ let result = schema2._zod.run({ value, issues: [] }, ctx);
36224
36598
  if (result instanceof Promise)
36225
36599
  result = await result;
36226
36600
  if (result.issues.length) {
@@ -36230,9 +36604,9 @@ var _parseAsync = (_Err) => async (schema, value, _ctx, params) => {
36230
36604
  }
36231
36605
  return result.value;
36232
36606
  };
36233
- var _safeParse = (_Err) => (schema, value, _ctx) => {
36607
+ var _safeParse = (_Err) => (schema2, value, _ctx) => {
36234
36608
  const ctx = _ctx ? { ..._ctx, async: false } : { async: false };
36235
- const result = schema._zod.run({ value, issues: [] }, ctx);
36609
+ const result = schema2._zod.run({ value, issues: [] }, ctx);
36236
36610
  if (result instanceof Promise) {
36237
36611
  throw new $ZodAsyncError;
36238
36612
  }
@@ -36242,9 +36616,9 @@ var _safeParse = (_Err) => (schema, value, _ctx) => {
36242
36616
  } : { success: true, data: result.value };
36243
36617
  };
36244
36618
  var safeParse$1 = /* @__PURE__ */ _safeParse($ZodRealError);
36245
- var _safeParseAsync = (_Err) => async (schema, value, _ctx) => {
36619
+ var _safeParseAsync = (_Err) => async (schema2, value, _ctx) => {
36246
36620
  const ctx = _ctx ? Object.assign(_ctx, { async: true }) : { async: true };
36247
- let result = schema._zod.run({ value, issues: [] }, ctx);
36621
+ let result = schema2._zod.run({ value, issues: [] }, ctx);
36248
36622
  if (result instanceof Promise)
36249
36623
  result = await result;
36250
36624
  return result.issues.length ? {
@@ -36253,33 +36627,33 @@ var _safeParseAsync = (_Err) => async (schema, value, _ctx) => {
36253
36627
  } : { success: true, data: result.value };
36254
36628
  };
36255
36629
  var safeParseAsync$1 = /* @__PURE__ */ _safeParseAsync($ZodRealError);
36256
- var _encode = (_Err) => (schema, value, _ctx) => {
36630
+ var _encode = (_Err) => (schema2, value, _ctx) => {
36257
36631
  const ctx = _ctx ? Object.assign(_ctx, { direction: "backward" }) : { direction: "backward" };
36258
- return _parse(_Err)(schema, value, ctx);
36632
+ return _parse(_Err)(schema2, value, ctx);
36259
36633
  };
36260
- var _decode = (_Err) => (schema, value, _ctx) => {
36261
- return _parse(_Err)(schema, value, _ctx);
36634
+ var _decode = (_Err) => (schema2, value, _ctx) => {
36635
+ return _parse(_Err)(schema2, value, _ctx);
36262
36636
  };
36263
- var _encodeAsync = (_Err) => async (schema, value, _ctx) => {
36637
+ var _encodeAsync = (_Err) => async (schema2, value, _ctx) => {
36264
36638
  const ctx = _ctx ? Object.assign(_ctx, { direction: "backward" }) : { direction: "backward" };
36265
- return _parseAsync(_Err)(schema, value, ctx);
36639
+ return _parseAsync(_Err)(schema2, value, ctx);
36266
36640
  };
36267
- var _decodeAsync = (_Err) => async (schema, value, _ctx) => {
36268
- return _parseAsync(_Err)(schema, value, _ctx);
36641
+ var _decodeAsync = (_Err) => async (schema2, value, _ctx) => {
36642
+ return _parseAsync(_Err)(schema2, value, _ctx);
36269
36643
  };
36270
- var _safeEncode = (_Err) => (schema, value, _ctx) => {
36644
+ var _safeEncode = (_Err) => (schema2, value, _ctx) => {
36271
36645
  const ctx = _ctx ? Object.assign(_ctx, { direction: "backward" }) : { direction: "backward" };
36272
- return _safeParse(_Err)(schema, value, ctx);
36646
+ return _safeParse(_Err)(schema2, value, ctx);
36273
36647
  };
36274
- var _safeDecode = (_Err) => (schema, value, _ctx) => {
36275
- return _safeParse(_Err)(schema, value, _ctx);
36648
+ var _safeDecode = (_Err) => (schema2, value, _ctx) => {
36649
+ return _safeParse(_Err)(schema2, value, _ctx);
36276
36650
  };
36277
- var _safeEncodeAsync = (_Err) => async (schema, value, _ctx) => {
36651
+ var _safeEncodeAsync = (_Err) => async (schema2, value, _ctx) => {
36278
36652
  const ctx = _ctx ? Object.assign(_ctx, { direction: "backward" }) : { direction: "backward" };
36279
- return _safeParseAsync(_Err)(schema, value, ctx);
36653
+ return _safeParseAsync(_Err)(schema2, value, ctx);
36280
36654
  };
36281
- var _safeDecodeAsync = (_Err) => async (schema, value, _ctx) => {
36282
- return _safeParseAsync(_Err)(schema, value, _ctx);
36655
+ var _safeDecodeAsync = (_Err) => async (schema2, value, _ctx) => {
36656
+ return _safeParseAsync(_Err)(schema2, value, _ctx);
36283
36657
  };
36284
36658
  var cuid = /^[cC][^\s-]{8,}$/;
36285
36659
  var cuid2 = /^[0-9a-z]+$/;
@@ -37202,8 +37576,8 @@ var $ZodObjectJIT = /* @__PURE__ */ $constructor("$ZodObjectJIT", (inst, def) =>
37202
37576
  for (const key of normalized.keys) {
37203
37577
  const id = ids[key];
37204
37578
  const k = esc(key);
37205
- const schema = shape[key];
37206
- const isOptionalOut = schema?._zod?.optout === "optional";
37579
+ const schema2 = shape[key];
37580
+ const isOptionalOut = schema2?._zod?.optout === "optional";
37207
37581
  doc.write(`const ${id} = ${parseStr(key)};`);
37208
37582
  if (isOptionalOut) {
37209
37583
  doc.write(`
@@ -37730,11 +38104,11 @@ class $ZodRegistry {
37730
38104
  this._map = new WeakMap;
37731
38105
  this._idmap = new Map;
37732
38106
  }
37733
- add(schema, ..._meta) {
38107
+ add(schema2, ..._meta) {
37734
38108
  const meta = _meta[0];
37735
- this._map.set(schema, meta);
38109
+ this._map.set(schema2, meta);
37736
38110
  if (meta && typeof meta === "object" && "id" in meta) {
37737
- this._idmap.set(meta.id, schema);
38111
+ this._idmap.set(meta.id, schema2);
37738
38112
  }
37739
38113
  return this;
37740
38114
  }
@@ -37743,26 +38117,26 @@ class $ZodRegistry {
37743
38117
  this._idmap = new Map;
37744
38118
  return this;
37745
38119
  }
37746
- remove(schema) {
37747
- const meta = this._map.get(schema);
38120
+ remove(schema2) {
38121
+ const meta = this._map.get(schema2);
37748
38122
  if (meta && typeof meta === "object" && "id" in meta) {
37749
38123
  this._idmap.delete(meta.id);
37750
38124
  }
37751
- this._map.delete(schema);
38125
+ this._map.delete(schema2);
37752
38126
  return this;
37753
38127
  }
37754
- get(schema) {
37755
- const p = schema._zod.parent;
38128
+ get(schema2) {
38129
+ const p = schema2._zod.parent;
37756
38130
  if (p) {
37757
38131
  const pm = { ...this.get(p) ?? {} };
37758
38132
  delete pm.id;
37759
- const f = { ...pm, ...this._map.get(schema) };
38133
+ const f = { ...pm, ...this._map.get(schema2) };
37760
38134
  return Object.keys(f).length ? f : undefined;
37761
38135
  }
37762
- return this._map.get(schema);
38136
+ return this._map.get(schema2);
37763
38137
  }
37764
- has(schema) {
37765
- return this._map.has(schema);
38138
+ has(schema2) {
38139
+ return this._map.has(schema2);
37766
38140
  }
37767
38141
  }
37768
38142
  function registry2() {
@@ -38121,13 +38495,13 @@ function _array(Class, element, params) {
38121
38495
  });
38122
38496
  }
38123
38497
  function _refine(Class, fn, _params) {
38124
- const schema = new Class({
38498
+ const schema2 = new Class({
38125
38499
  type: "custom",
38126
38500
  check: "custom",
38127
38501
  fn,
38128
38502
  ...normalizeParams(_params)
38129
38503
  });
38130
- return schema;
38504
+ return schema2;
38131
38505
  }
38132
38506
  function _superRefine(fn) {
38133
38507
  const ch = _check((payload) => {
@@ -38177,40 +38551,40 @@ function initializeContext(params) {
38177
38551
  external: params?.external ?? undefined
38178
38552
  };
38179
38553
  }
38180
- function process9(schema, ctx, _params = { path: [], schemaPath: [] }) {
38554
+ function process9(schema2, ctx, _params = { path: [], schemaPath: [] }) {
38181
38555
  var _a2;
38182
- const def = schema._zod.def;
38183
- const seen = ctx.seen.get(schema);
38556
+ const def = schema2._zod.def;
38557
+ const seen = ctx.seen.get(schema2);
38184
38558
  if (seen) {
38185
38559
  seen.count++;
38186
- const isCycle = _params.schemaPath.includes(schema);
38560
+ const isCycle = _params.schemaPath.includes(schema2);
38187
38561
  if (isCycle) {
38188
38562
  seen.cycle = _params.path;
38189
38563
  }
38190
38564
  return seen.schema;
38191
38565
  }
38192
38566
  const result = { schema: {}, count: 1, cycle: undefined, path: _params.path };
38193
- ctx.seen.set(schema, result);
38194
- const overrideSchema = schema._zod.toJSONSchema?.();
38567
+ ctx.seen.set(schema2, result);
38568
+ const overrideSchema = schema2._zod.toJSONSchema?.();
38195
38569
  if (overrideSchema) {
38196
38570
  result.schema = overrideSchema;
38197
38571
  } else {
38198
38572
  const params = {
38199
38573
  ..._params,
38200
- schemaPath: [..._params.schemaPath, schema],
38574
+ schemaPath: [..._params.schemaPath, schema2],
38201
38575
  path: _params.path
38202
38576
  };
38203
- if (schema._zod.processJSONSchema) {
38204
- schema._zod.processJSONSchema(ctx, result.schema, params);
38577
+ if (schema2._zod.processJSONSchema) {
38578
+ schema2._zod.processJSONSchema(ctx, result.schema, params);
38205
38579
  } else {
38206
38580
  const _json = result.schema;
38207
38581
  const processor = ctx.processors[def.type];
38208
38582
  if (!processor) {
38209
38583
  throw new Error(`[toJSONSchema]: Non-representable type encountered: ${def.type}`);
38210
38584
  }
38211
- processor(schema, ctx, _json, params);
38585
+ processor(schema2, ctx, _json, params);
38212
38586
  }
38213
- const parent = schema._zod.parent;
38587
+ const parent = schema2._zod.parent;
38214
38588
  if (parent) {
38215
38589
  if (!result.ref)
38216
38590
  result.ref = parent;
@@ -38218,21 +38592,21 @@ function process9(schema, ctx, _params = { path: [], schemaPath: [] }) {
38218
38592
  ctx.seen.get(parent).isParent = true;
38219
38593
  }
38220
38594
  }
38221
- const meta = ctx.metadataRegistry.get(schema);
38595
+ const meta = ctx.metadataRegistry.get(schema2);
38222
38596
  if (meta)
38223
38597
  Object.assign(result.schema, meta);
38224
- if (ctx.io === "input" && isTransforming(schema)) {
38598
+ if (ctx.io === "input" && isTransforming(schema2)) {
38225
38599
  delete result.schema.examples;
38226
38600
  delete result.schema.default;
38227
38601
  }
38228
38602
  if (ctx.io === "input" && result.schema._prefault)
38229
38603
  (_a2 = result.schema).default ?? (_a2.default = result.schema._prefault);
38230
38604
  delete result.schema._prefault;
38231
- const _result = ctx.seen.get(schema);
38605
+ const _result = ctx.seen.get(schema2);
38232
38606
  return _result.schema;
38233
38607
  }
38234
- function extractDefs(ctx, schema) {
38235
- const root = ctx.seen.get(schema);
38608
+ function extractDefs(ctx, schema2) {
38609
+ const root = ctx.seen.get(schema2);
38236
38610
  if (!root)
38237
38611
  throw new Error("Unprocessed schema. This is a bug in Zod.");
38238
38612
  const idToSchema = new Map;
@@ -38275,11 +38649,11 @@ function extractDefs(ctx, schema) {
38275
38649
  seen.def = { ...seen.schema };
38276
38650
  if (defId)
38277
38651
  seen.defId = defId;
38278
- const schema2 = seen.schema;
38279
- for (const key in schema2) {
38280
- delete schema2[key];
38652
+ const schema3 = seen.schema;
38653
+ for (const key in schema3) {
38654
+ delete schema3[key];
38281
38655
  }
38282
- schema2.$ref = ref;
38656
+ schema3.$ref = ref;
38283
38657
  };
38284
38658
  if (ctx.cycles === "throw") {
38285
38659
  for (const entry of ctx.seen.entries()) {
@@ -38291,13 +38665,13 @@ function extractDefs(ctx, schema) {
38291
38665
  }
38292
38666
  for (const entry of ctx.seen.entries()) {
38293
38667
  const seen = entry[1];
38294
- if (schema === entry[0]) {
38668
+ if (schema2 === entry[0]) {
38295
38669
  extractToDef(entry);
38296
38670
  continue;
38297
38671
  }
38298
38672
  if (ctx.external) {
38299
38673
  const ext = ctx.external.registry.get(entry[0])?.id;
38300
- if (schema !== entry[0] && ext) {
38674
+ if (schema2 !== entry[0] && ext) {
38301
38675
  extractToDef(entry);
38302
38676
  continue;
38303
38677
  }
@@ -38319,16 +38693,16 @@ function extractDefs(ctx, schema) {
38319
38693
  }
38320
38694
  }
38321
38695
  }
38322
- function finalize(ctx, schema) {
38323
- const root = ctx.seen.get(schema);
38696
+ function finalize(ctx, schema2) {
38697
+ const root = ctx.seen.get(schema2);
38324
38698
  if (!root)
38325
38699
  throw new Error("Unprocessed schema. This is a bug in Zod.");
38326
38700
  const flattenRef = (zodSchema) => {
38327
38701
  const seen = ctx.seen.get(zodSchema);
38328
38702
  if (seen.ref === null)
38329
38703
  return;
38330
- const schema2 = seen.def ?? seen.schema;
38331
- const _cached = { ...schema2 };
38704
+ const schema3 = seen.def ?? seen.schema;
38705
+ const _cached = { ...schema3 };
38332
38706
  const ref = seen.ref;
38333
38707
  seen.ref = null;
38334
38708
  if (ref) {
@@ -38336,28 +38710,28 @@ function finalize(ctx, schema) {
38336
38710
  const refSeen = ctx.seen.get(ref);
38337
38711
  const refSchema = refSeen.schema;
38338
38712
  if (refSchema.$ref && (ctx.target === "draft-07" || ctx.target === "draft-04" || ctx.target === "openapi-3.0")) {
38339
- schema2.allOf = schema2.allOf ?? [];
38340
- schema2.allOf.push(refSchema);
38713
+ schema3.allOf = schema3.allOf ?? [];
38714
+ schema3.allOf.push(refSchema);
38341
38715
  } else {
38342
- Object.assign(schema2, refSchema);
38716
+ Object.assign(schema3, refSchema);
38343
38717
  }
38344
- Object.assign(schema2, _cached);
38718
+ Object.assign(schema3, _cached);
38345
38719
  const isParentRef = zodSchema._zod.parent === ref;
38346
38720
  if (isParentRef) {
38347
- for (const key in schema2) {
38721
+ for (const key in schema3) {
38348
38722
  if (key === "$ref" || key === "allOf")
38349
38723
  continue;
38350
38724
  if (!(key in _cached)) {
38351
- delete schema2[key];
38725
+ delete schema3[key];
38352
38726
  }
38353
38727
  }
38354
38728
  }
38355
38729
  if (refSchema.$ref && refSeen.def) {
38356
- for (const key in schema2) {
38730
+ for (const key in schema3) {
38357
38731
  if (key === "$ref" || key === "allOf")
38358
38732
  continue;
38359
- if (key in refSeen.def && JSON.stringify(schema2[key]) === JSON.stringify(refSeen.def[key])) {
38360
- delete schema2[key];
38733
+ if (key in refSeen.def && JSON.stringify(schema3[key]) === JSON.stringify(refSeen.def[key])) {
38734
+ delete schema3[key];
38361
38735
  }
38362
38736
  }
38363
38737
  }
@@ -38367,13 +38741,13 @@ function finalize(ctx, schema) {
38367
38741
  flattenRef(parent);
38368
38742
  const parentSeen = ctx.seen.get(parent);
38369
38743
  if (parentSeen?.schema.$ref) {
38370
- schema2.$ref = parentSeen.schema.$ref;
38744
+ schema3.$ref = parentSeen.schema.$ref;
38371
38745
  if (parentSeen.def) {
38372
- for (const key in schema2) {
38746
+ for (const key in schema3) {
38373
38747
  if (key === "$ref" || key === "allOf")
38374
38748
  continue;
38375
- if (key in parentSeen.def && JSON.stringify(schema2[key]) === JSON.stringify(parentSeen.def[key])) {
38376
- delete schema2[key];
38749
+ if (key in parentSeen.def && JSON.stringify(schema3[key]) === JSON.stringify(parentSeen.def[key])) {
38750
+ delete schema3[key];
38377
38751
  }
38378
38752
  }
38379
38753
  }
@@ -38381,7 +38755,7 @@ function finalize(ctx, schema) {
38381
38755
  }
38382
38756
  ctx.override({
38383
38757
  zodSchema,
38384
- jsonSchema: schema2,
38758
+ jsonSchema: schema3,
38385
38759
  path: seen.path ?? []
38386
38760
  });
38387
38761
  };
@@ -38398,7 +38772,7 @@ function finalize(ctx, schema) {
38398
38772
  } else if (ctx.target === "openapi-3.0")
38399
38773
  ;
38400
38774
  if (ctx.external?.uri) {
38401
- const id = ctx.external.registry.get(schema)?.id;
38775
+ const id = ctx.external.registry.get(schema2)?.id;
38402
38776
  if (!id)
38403
38777
  throw new Error("Schema is missing an `id` property");
38404
38778
  result.$id = ctx.external.uri(id);
@@ -38426,10 +38800,10 @@ function finalize(ctx, schema) {
38426
38800
  const finalized = JSON.parse(JSON.stringify(result));
38427
38801
  Object.defineProperty(finalized, "~standard", {
38428
38802
  value: {
38429
- ...schema["~standard"],
38803
+ ...schema2["~standard"],
38430
38804
  jsonSchema: {
38431
- input: createStandardJSONSchemaMethod(schema, "input", ctx.processors),
38432
- output: createStandardJSONSchemaMethod(schema, "output", ctx.processors)
38805
+ input: createStandardJSONSchemaMethod(schema2, "input", ctx.processors),
38806
+ output: createStandardJSONSchemaMethod(schema2, "output", ctx.processors)
38433
38807
  }
38434
38808
  },
38435
38809
  enumerable: false,
@@ -38491,18 +38865,18 @@ function isTransforming(_schema, _ctx) {
38491
38865
  }
38492
38866
  return false;
38493
38867
  }
38494
- var createToJSONSchemaMethod = (schema, processors = {}) => (params) => {
38868
+ var createToJSONSchemaMethod = (schema2, processors = {}) => (params) => {
38495
38869
  const ctx = initializeContext({ ...params, processors });
38496
- process9(schema, ctx);
38497
- extractDefs(ctx, schema);
38498
- return finalize(ctx, schema);
38870
+ process9(schema2, ctx);
38871
+ extractDefs(ctx, schema2);
38872
+ return finalize(ctx, schema2);
38499
38873
  };
38500
- var createStandardJSONSchemaMethod = (schema, io, processors = {}) => (params) => {
38874
+ var createStandardJSONSchemaMethod = (schema2, io, processors = {}) => (params) => {
38501
38875
  const { libraryOptions, target } = params ?? {};
38502
38876
  const ctx = initializeContext({ ...libraryOptions ?? {}, target, io, processors });
38503
- process9(schema, ctx);
38504
- extractDefs(ctx, schema);
38505
- return finalize(ctx, schema);
38877
+ process9(schema2, ctx);
38878
+ extractDefs(ctx, schema2);
38879
+ return finalize(ctx, schema2);
38506
38880
  };
38507
38881
  var formatMap = {
38508
38882
  guid: "uuid",
@@ -38511,30 +38885,30 @@ var formatMap = {
38511
38885
  json_string: "json-string",
38512
38886
  regex: ""
38513
38887
  };
38514
- var stringProcessor = (schema, ctx, _json, _params) => {
38515
- const json = _json;
38516
- json.type = "string";
38517
- const { minimum, maximum, format, patterns, contentEncoding } = schema._zod.bag;
38888
+ var stringProcessor = (schema2, ctx, _json, _params) => {
38889
+ const json2 = _json;
38890
+ json2.type = "string";
38891
+ const { minimum, maximum, format, patterns, contentEncoding } = schema2._zod.bag;
38518
38892
  if (typeof minimum === "number")
38519
- json.minLength = minimum;
38893
+ json2.minLength = minimum;
38520
38894
  if (typeof maximum === "number")
38521
- json.maxLength = maximum;
38895
+ json2.maxLength = maximum;
38522
38896
  if (format) {
38523
- json.format = formatMap[format] ?? format;
38524
- if (json.format === "")
38525
- delete json.format;
38897
+ json2.format = formatMap[format] ?? format;
38898
+ if (json2.format === "")
38899
+ delete json2.format;
38526
38900
  if (format === "time") {
38527
- delete json.format;
38901
+ delete json2.format;
38528
38902
  }
38529
38903
  }
38530
38904
  if (contentEncoding)
38531
- json.contentEncoding = contentEncoding;
38905
+ json2.contentEncoding = contentEncoding;
38532
38906
  if (patterns && patterns.size > 0) {
38533
38907
  const regexes = [...patterns];
38534
38908
  if (regexes.length === 1)
38535
- json.pattern = regexes[0].source;
38909
+ json2.pattern = regexes[0].source;
38536
38910
  else if (regexes.length > 1) {
38537
- json.allOf = [
38911
+ json2.allOf = [
38538
38912
  ...regexes.map((regex) => ({
38539
38913
  ...ctx.target === "draft-07" || ctx.target === "draft-04" || ctx.target === "openapi-3.0" ? { type: "string" } : {},
38540
38914
  pattern: regex.source
@@ -38543,18 +38917,18 @@ var stringProcessor = (schema, ctx, _json, _params) => {
38543
38917
  }
38544
38918
  }
38545
38919
  };
38546
- var neverProcessor = (_schema, _ctx, json, _params) => {
38547
- json.not = {};
38920
+ var neverProcessor = (_schema, _ctx, json2, _params) => {
38921
+ json2.not = {};
38548
38922
  };
38549
38923
  var unknownProcessor = (_schema, _ctx, _json, _params) => {};
38550
- var enumProcessor = (schema, _ctx, json, _params) => {
38551
- const def = schema._zod.def;
38924
+ var enumProcessor = (schema2, _ctx, json2, _params) => {
38925
+ const def = schema2._zod.def;
38552
38926
  const values = getEnumValues(def.entries);
38553
38927
  if (values.every((v) => typeof v === "number"))
38554
- json.type = "number";
38928
+ json2.type = "number";
38555
38929
  if (values.every((v) => typeof v === "string"))
38556
- json.type = "string";
38557
- json.enum = values;
38930
+ json2.type = "string";
38931
+ json2.enum = values;
38558
38932
  };
38559
38933
  var customProcessor = (_schema, ctx, _json, _params) => {
38560
38934
  if (ctx.unrepresentable === "throw") {
@@ -38566,25 +38940,25 @@ var transformProcessor = (_schema, ctx, _json, _params) => {
38566
38940
  throw new Error("Transforms cannot be represented in JSON Schema");
38567
38941
  }
38568
38942
  };
38569
- var arrayProcessor = (schema, ctx, _json, params) => {
38570
- const json = _json;
38571
- const def = schema._zod.def;
38572
- const { minimum, maximum } = schema._zod.bag;
38943
+ var arrayProcessor = (schema2, ctx, _json, params) => {
38944
+ const json2 = _json;
38945
+ const def = schema2._zod.def;
38946
+ const { minimum, maximum } = schema2._zod.bag;
38573
38947
  if (typeof minimum === "number")
38574
- json.minItems = minimum;
38948
+ json2.minItems = minimum;
38575
38949
  if (typeof maximum === "number")
38576
- json.maxItems = maximum;
38577
- json.type = "array";
38578
- json.items = process9(def.element, ctx, { ...params, path: [...params.path, "items"] });
38950
+ json2.maxItems = maximum;
38951
+ json2.type = "array";
38952
+ json2.items = process9(def.element, ctx, { ...params, path: [...params.path, "items"] });
38579
38953
  };
38580
- var objectProcessor = (schema, ctx, _json, params) => {
38581
- const json = _json;
38582
- const def = schema._zod.def;
38583
- json.type = "object";
38584
- json.properties = {};
38954
+ var objectProcessor = (schema2, ctx, _json, params) => {
38955
+ const json2 = _json;
38956
+ const def = schema2._zod.def;
38957
+ json2.type = "object";
38958
+ json2.properties = {};
38585
38959
  const shape = def.shape;
38586
38960
  for (const key in shape) {
38587
- json.properties[key] = process9(shape[key], ctx, {
38961
+ json2.properties[key] = process9(shape[key], ctx, {
38588
38962
  ...params,
38589
38963
  path: [...params.path, "properties", key]
38590
38964
  });
@@ -38599,35 +38973,35 @@ var objectProcessor = (schema, ctx, _json, params) => {
38599
38973
  }
38600
38974
  }));
38601
38975
  if (requiredKeys.size > 0) {
38602
- json.required = Array.from(requiredKeys);
38976
+ json2.required = Array.from(requiredKeys);
38603
38977
  }
38604
38978
  if (def.catchall?._zod.def.type === "never") {
38605
- json.additionalProperties = false;
38979
+ json2.additionalProperties = false;
38606
38980
  } else if (!def.catchall) {
38607
38981
  if (ctx.io === "output")
38608
- json.additionalProperties = false;
38982
+ json2.additionalProperties = false;
38609
38983
  } else if (def.catchall) {
38610
- json.additionalProperties = process9(def.catchall, ctx, {
38984
+ json2.additionalProperties = process9(def.catchall, ctx, {
38611
38985
  ...params,
38612
38986
  path: [...params.path, "additionalProperties"]
38613
38987
  });
38614
38988
  }
38615
38989
  };
38616
- var unionProcessor = (schema, ctx, json, params) => {
38617
- const def = schema._zod.def;
38990
+ var unionProcessor = (schema2, ctx, json2, params) => {
38991
+ const def = schema2._zod.def;
38618
38992
  const isExclusive = def.inclusive === false;
38619
38993
  const options = def.options.map((x, i) => process9(x, ctx, {
38620
38994
  ...params,
38621
38995
  path: [...params.path, isExclusive ? "oneOf" : "anyOf", i]
38622
38996
  }));
38623
38997
  if (isExclusive) {
38624
- json.oneOf = options;
38998
+ json2.oneOf = options;
38625
38999
  } else {
38626
- json.anyOf = options;
39000
+ json2.anyOf = options;
38627
39001
  }
38628
39002
  };
38629
- var intersectionProcessor = (schema, ctx, json, params) => {
38630
- const def = schema._zod.def;
39003
+ var intersectionProcessor = (schema2, ctx, json2, params) => {
39004
+ const def = schema2._zod.def;
38631
39005
  const a = process9(def.left, ctx, {
38632
39006
  ...params,
38633
39007
  path: [...params.path, "allOf", 0]
@@ -38641,44 +39015,44 @@ var intersectionProcessor = (schema, ctx, json, params) => {
38641
39015
  ...isSimpleIntersection(a) ? a.allOf : [a],
38642
39016
  ...isSimpleIntersection(b) ? b.allOf : [b]
38643
39017
  ];
38644
- json.allOf = allOf;
39018
+ json2.allOf = allOf;
38645
39019
  };
38646
- var nullableProcessor = (schema, ctx, json, params) => {
38647
- const def = schema._zod.def;
39020
+ var nullableProcessor = (schema2, ctx, json2, params) => {
39021
+ const def = schema2._zod.def;
38648
39022
  const inner = process9(def.innerType, ctx, params);
38649
- const seen = ctx.seen.get(schema);
39023
+ const seen = ctx.seen.get(schema2);
38650
39024
  if (ctx.target === "openapi-3.0") {
38651
39025
  seen.ref = def.innerType;
38652
- json.nullable = true;
39026
+ json2.nullable = true;
38653
39027
  } else {
38654
- json.anyOf = [inner, { type: "null" }];
39028
+ json2.anyOf = [inner, { type: "null" }];
38655
39029
  }
38656
39030
  };
38657
- var nonoptionalProcessor = (schema, ctx, _json, params) => {
38658
- const def = schema._zod.def;
39031
+ var nonoptionalProcessor = (schema2, ctx, _json, params) => {
39032
+ const def = schema2._zod.def;
38659
39033
  process9(def.innerType, ctx, params);
38660
- const seen = ctx.seen.get(schema);
39034
+ const seen = ctx.seen.get(schema2);
38661
39035
  seen.ref = def.innerType;
38662
39036
  };
38663
- var defaultProcessor = (schema, ctx, json, params) => {
38664
- const def = schema._zod.def;
39037
+ var defaultProcessor = (schema2, ctx, json2, params) => {
39038
+ const def = schema2._zod.def;
38665
39039
  process9(def.innerType, ctx, params);
38666
- const seen = ctx.seen.get(schema);
39040
+ const seen = ctx.seen.get(schema2);
38667
39041
  seen.ref = def.innerType;
38668
- json.default = JSON.parse(JSON.stringify(def.defaultValue));
39042
+ json2.default = JSON.parse(JSON.stringify(def.defaultValue));
38669
39043
  };
38670
- var prefaultProcessor = (schema, ctx, json, params) => {
38671
- const def = schema._zod.def;
39044
+ var prefaultProcessor = (schema2, ctx, json2, params) => {
39045
+ const def = schema2._zod.def;
38672
39046
  process9(def.innerType, ctx, params);
38673
- const seen = ctx.seen.get(schema);
39047
+ const seen = ctx.seen.get(schema2);
38674
39048
  seen.ref = def.innerType;
38675
39049
  if (ctx.io === "input")
38676
- json._prefault = JSON.parse(JSON.stringify(def.defaultValue));
39050
+ json2._prefault = JSON.parse(JSON.stringify(def.defaultValue));
38677
39051
  };
38678
- var catchProcessor = (schema, ctx, json, params) => {
38679
- const def = schema._zod.def;
39052
+ var catchProcessor = (schema2, ctx, json2, params) => {
39053
+ const def = schema2._zod.def;
38680
39054
  process9(def.innerType, ctx, params);
38681
- const seen = ctx.seen.get(schema);
39055
+ const seen = ctx.seen.get(schema2);
38682
39056
  seen.ref = def.innerType;
38683
39057
  let catchValue;
38684
39058
  try {
@@ -38686,26 +39060,26 @@ var catchProcessor = (schema, ctx, json, params) => {
38686
39060
  } catch {
38687
39061
  throw new Error("Dynamic catch values are not supported in JSON Schema");
38688
39062
  }
38689
- json.default = catchValue;
39063
+ json2.default = catchValue;
38690
39064
  };
38691
- var pipeProcessor = (schema, ctx, _json, params) => {
38692
- const def = schema._zod.def;
39065
+ var pipeProcessor = (schema2, ctx, _json, params) => {
39066
+ const def = schema2._zod.def;
38693
39067
  const innerType = ctx.io === "input" ? def.in._zod.def.type === "transform" ? def.out : def.in : def.out;
38694
39068
  process9(innerType, ctx, params);
38695
- const seen = ctx.seen.get(schema);
39069
+ const seen = ctx.seen.get(schema2);
38696
39070
  seen.ref = innerType;
38697
39071
  };
38698
- var readonlyProcessor = (schema, ctx, json, params) => {
38699
- const def = schema._zod.def;
39072
+ var readonlyProcessor = (schema2, ctx, json2, params) => {
39073
+ const def = schema2._zod.def;
38700
39074
  process9(def.innerType, ctx, params);
38701
- const seen = ctx.seen.get(schema);
39075
+ const seen = ctx.seen.get(schema2);
38702
39076
  seen.ref = def.innerType;
38703
- json.readOnly = true;
39077
+ json2.readOnly = true;
38704
39078
  };
38705
- var optionalProcessor = (schema, ctx, _json, params) => {
38706
- const def = schema._zod.def;
39079
+ var optionalProcessor = (schema2, ctx, _json, params) => {
39080
+ const def = schema2._zod.def;
38707
39081
  process9(def.innerType, ctx, params);
38708
- const seen = ctx.seen.get(schema);
39082
+ const seen = ctx.seen.get(schema2);
38709
39083
  seen.ref = def.innerType;
38710
39084
  };
38711
39085
  var ZodISODateTime = /* @__PURE__ */ $constructor("ZodISODateTime", (inst, def) => {
@@ -38834,7 +39208,7 @@ var ZodType = /* @__PURE__ */ $constructor("ZodType", (inst, def) => {
38834
39208
  inst.or = (arg) => union([inst, arg]);
38835
39209
  inst.and = (arg) => intersection(inst, arg);
38836
39210
  inst.transform = (tx) => pipe(inst, transform(tx));
38837
- inst.default = (def2) => _default(inst, def2);
39211
+ inst.default = (def2) => _default2(inst, def2);
38838
39212
  inst.prefault = (def2) => prefault(inst, def2);
38839
39213
  inst.catch = (params) => _catch(inst, params);
38840
39214
  inst.pipe = (target) => pipe(inst, target);
@@ -38866,7 +39240,7 @@ var ZodType = /* @__PURE__ */ $constructor("ZodType", (inst, def) => {
38866
39240
  var _ZodString = /* @__PURE__ */ $constructor("_ZodString", (inst, def) => {
38867
39241
  $ZodString.init(inst, def);
38868
39242
  ZodType.init(inst, def);
38869
- inst._zod.processJSONSchema = (ctx, json, params) => stringProcessor(inst, ctx, json);
39243
+ inst._zod.processJSONSchema = (ctx, json2, params) => stringProcessor(inst, ctx, json2);
38870
39244
  const bag = inst._zod.bag;
38871
39245
  inst.format = bag.format ?? null;
38872
39246
  inst.minLength = bag.minimum ?? null;
@@ -39004,7 +39378,7 @@ var ZodJWT = /* @__PURE__ */ $constructor("ZodJWT", (inst, def) => {
39004
39378
  var ZodUnknown = /* @__PURE__ */ $constructor("ZodUnknown", (inst, def) => {
39005
39379
  $ZodUnknown.init(inst, def);
39006
39380
  ZodType.init(inst, def);
39007
- inst._zod.processJSONSchema = (ctx, json, params) => unknownProcessor();
39381
+ inst._zod.processJSONSchema = (ctx, json2, params) => unknownProcessor();
39008
39382
  });
39009
39383
  function unknown() {
39010
39384
  return _unknown(ZodUnknown);
@@ -39012,7 +39386,7 @@ function unknown() {
39012
39386
  var ZodNever = /* @__PURE__ */ $constructor("ZodNever", (inst, def) => {
39013
39387
  $ZodNever.init(inst, def);
39014
39388
  ZodType.init(inst, def);
39015
- inst._zod.processJSONSchema = (ctx, json, params) => neverProcessor(inst, ctx, json);
39389
+ inst._zod.processJSONSchema = (ctx, json2, params) => neverProcessor(inst, ctx, json2);
39016
39390
  });
39017
39391
  function never(params) {
39018
39392
  return _never(ZodNever, params);
@@ -39020,7 +39394,7 @@ function never(params) {
39020
39394
  var ZodArray = /* @__PURE__ */ $constructor("ZodArray", (inst, def) => {
39021
39395
  $ZodArray.init(inst, def);
39022
39396
  ZodType.init(inst, def);
39023
- inst._zod.processJSONSchema = (ctx, json, params) => arrayProcessor(inst, ctx, json, params);
39397
+ inst._zod.processJSONSchema = (ctx, json2, params) => arrayProcessor(inst, ctx, json2, params);
39024
39398
  inst.element = def.element;
39025
39399
  inst.min = (minLength, params) => inst.check(_minLength(minLength, params));
39026
39400
  inst.nonempty = (params) => inst.check(_minLength(1, params));
@@ -39034,7 +39408,7 @@ function array(element, params) {
39034
39408
  var ZodObject = /* @__PURE__ */ $constructor("ZodObject", (inst, def) => {
39035
39409
  $ZodObjectJIT.init(inst, def);
39036
39410
  ZodType.init(inst, def);
39037
- inst._zod.processJSONSchema = (ctx, json, params) => objectProcessor(inst, ctx, json, params);
39411
+ inst._zod.processJSONSchema = (ctx, json2, params) => objectProcessor(inst, ctx, json2, params);
39038
39412
  defineLazy(inst, "shape", () => {
39039
39413
  return def.shape;
39040
39414
  });
@@ -39050,7 +39424,7 @@ var ZodObject = /* @__PURE__ */ $constructor("ZodObject", (inst, def) => {
39050
39424
  inst.safeExtend = (incoming) => {
39051
39425
  return safeExtend(inst, incoming);
39052
39426
  };
39053
- inst.merge = (other) => merge(inst, other);
39427
+ inst.merge = (other) => merge2(inst, other);
39054
39428
  inst.pick = (mask) => pick(inst, mask);
39055
39429
  inst.omit = (mask) => omit(inst, mask);
39056
39430
  inst.partial = (...args) => partial(ZodOptional, inst, args[0]);
@@ -39067,7 +39441,7 @@ function object(shape, params) {
39067
39441
  var ZodUnion = /* @__PURE__ */ $constructor("ZodUnion", (inst, def) => {
39068
39442
  $ZodUnion.init(inst, def);
39069
39443
  ZodType.init(inst, def);
39070
- inst._zod.processJSONSchema = (ctx, json, params) => unionProcessor(inst, ctx, json, params);
39444
+ inst._zod.processJSONSchema = (ctx, json2, params) => unionProcessor(inst, ctx, json2, params);
39071
39445
  inst.options = def.options;
39072
39446
  });
39073
39447
  function union(options, params) {
@@ -39080,7 +39454,7 @@ function union(options, params) {
39080
39454
  var ZodIntersection = /* @__PURE__ */ $constructor("ZodIntersection", (inst, def) => {
39081
39455
  $ZodIntersection.init(inst, def);
39082
39456
  ZodType.init(inst, def);
39083
- inst._zod.processJSONSchema = (ctx, json, params) => intersectionProcessor(inst, ctx, json, params);
39457
+ inst._zod.processJSONSchema = (ctx, json2, params) => intersectionProcessor(inst, ctx, json2, params);
39084
39458
  });
39085
39459
  function intersection(left, right) {
39086
39460
  return new ZodIntersection({
@@ -39092,7 +39466,7 @@ function intersection(left, right) {
39092
39466
  var ZodEnum = /* @__PURE__ */ $constructor("ZodEnum", (inst, def) => {
39093
39467
  $ZodEnum.init(inst, def);
39094
39468
  ZodType.init(inst, def);
39095
- inst._zod.processJSONSchema = (ctx, json, params) => enumProcessor(inst, ctx, json);
39469
+ inst._zod.processJSONSchema = (ctx, json2, params) => enumProcessor(inst, ctx, json2);
39096
39470
  inst.enum = def.entries;
39097
39471
  inst.options = Object.values(def.entries);
39098
39472
  const keys = new Set(Object.keys(def.entries));
@@ -39138,7 +39512,7 @@ function _enum(values, params) {
39138
39512
  var ZodTransform = /* @__PURE__ */ $constructor("ZodTransform", (inst, def) => {
39139
39513
  $ZodTransform.init(inst, def);
39140
39514
  ZodType.init(inst, def);
39141
- inst._zod.processJSONSchema = (ctx, json, params) => transformProcessor(inst, ctx);
39515
+ inst._zod.processJSONSchema = (ctx, json2, params) => transformProcessor(inst, ctx);
39142
39516
  inst._zod.parse = (payload, _ctx) => {
39143
39517
  if (_ctx.direction === "backward") {
39144
39518
  throw new $ZodEncodeError(inst.constructor.name);
@@ -39176,7 +39550,7 @@ function transform(fn) {
39176
39550
  var ZodOptional = /* @__PURE__ */ $constructor("ZodOptional", (inst, def) => {
39177
39551
  $ZodOptional.init(inst, def);
39178
39552
  ZodType.init(inst, def);
39179
- inst._zod.processJSONSchema = (ctx, json, params) => optionalProcessor(inst, ctx, json, params);
39553
+ inst._zod.processJSONSchema = (ctx, json2, params) => optionalProcessor(inst, ctx, json2, params);
39180
39554
  inst.unwrap = () => inst._zod.def.innerType;
39181
39555
  });
39182
39556
  function optional(innerType) {
@@ -39188,7 +39562,7 @@ function optional(innerType) {
39188
39562
  var ZodExactOptional = /* @__PURE__ */ $constructor("ZodExactOptional", (inst, def) => {
39189
39563
  $ZodExactOptional.init(inst, def);
39190
39564
  ZodType.init(inst, def);
39191
- inst._zod.processJSONSchema = (ctx, json, params) => optionalProcessor(inst, ctx, json, params);
39565
+ inst._zod.processJSONSchema = (ctx, json2, params) => optionalProcessor(inst, ctx, json2, params);
39192
39566
  inst.unwrap = () => inst._zod.def.innerType;
39193
39567
  });
39194
39568
  function exactOptional(innerType) {
@@ -39200,7 +39574,7 @@ function exactOptional(innerType) {
39200
39574
  var ZodNullable = /* @__PURE__ */ $constructor("ZodNullable", (inst, def) => {
39201
39575
  $ZodNullable.init(inst, def);
39202
39576
  ZodType.init(inst, def);
39203
- inst._zod.processJSONSchema = (ctx, json, params) => nullableProcessor(inst, ctx, json, params);
39577
+ inst._zod.processJSONSchema = (ctx, json2, params) => nullableProcessor(inst, ctx, json2, params);
39204
39578
  inst.unwrap = () => inst._zod.def.innerType;
39205
39579
  });
39206
39580
  function nullable(innerType) {
@@ -39212,11 +39586,11 @@ function nullable(innerType) {
39212
39586
  var ZodDefault = /* @__PURE__ */ $constructor("ZodDefault", (inst, def) => {
39213
39587
  $ZodDefault.init(inst, def);
39214
39588
  ZodType.init(inst, def);
39215
- inst._zod.processJSONSchema = (ctx, json, params) => defaultProcessor(inst, ctx, json, params);
39589
+ inst._zod.processJSONSchema = (ctx, json2, params) => defaultProcessor(inst, ctx, json2, params);
39216
39590
  inst.unwrap = () => inst._zod.def.innerType;
39217
39591
  inst.removeDefault = inst.unwrap;
39218
39592
  });
39219
- function _default(innerType, defaultValue) {
39593
+ function _default2(innerType, defaultValue) {
39220
39594
  return new ZodDefault({
39221
39595
  type: "default",
39222
39596
  innerType,
@@ -39228,7 +39602,7 @@ function _default(innerType, defaultValue) {
39228
39602
  var ZodPrefault = /* @__PURE__ */ $constructor("ZodPrefault", (inst, def) => {
39229
39603
  $ZodPrefault.init(inst, def);
39230
39604
  ZodType.init(inst, def);
39231
- inst._zod.processJSONSchema = (ctx, json, params) => prefaultProcessor(inst, ctx, json, params);
39605
+ inst._zod.processJSONSchema = (ctx, json2, params) => prefaultProcessor(inst, ctx, json2, params);
39232
39606
  inst.unwrap = () => inst._zod.def.innerType;
39233
39607
  });
39234
39608
  function prefault(innerType, defaultValue) {
@@ -39243,7 +39617,7 @@ function prefault(innerType, defaultValue) {
39243
39617
  var ZodNonOptional = /* @__PURE__ */ $constructor("ZodNonOptional", (inst, def) => {
39244
39618
  $ZodNonOptional.init(inst, def);
39245
39619
  ZodType.init(inst, def);
39246
- inst._zod.processJSONSchema = (ctx, json, params) => nonoptionalProcessor(inst, ctx, json, params);
39620
+ inst._zod.processJSONSchema = (ctx, json2, params) => nonoptionalProcessor(inst, ctx, json2, params);
39247
39621
  inst.unwrap = () => inst._zod.def.innerType;
39248
39622
  });
39249
39623
  function nonoptional(innerType, params) {
@@ -39256,7 +39630,7 @@ function nonoptional(innerType, params) {
39256
39630
  var ZodCatch = /* @__PURE__ */ $constructor("ZodCatch", (inst, def) => {
39257
39631
  $ZodCatch.init(inst, def);
39258
39632
  ZodType.init(inst, def);
39259
- inst._zod.processJSONSchema = (ctx, json, params) => catchProcessor(inst, ctx, json, params);
39633
+ inst._zod.processJSONSchema = (ctx, json2, params) => catchProcessor(inst, ctx, json2, params);
39260
39634
  inst.unwrap = () => inst._zod.def.innerType;
39261
39635
  inst.removeCatch = inst.unwrap;
39262
39636
  });
@@ -39270,7 +39644,7 @@ function _catch(innerType, catchValue) {
39270
39644
  var ZodPipe = /* @__PURE__ */ $constructor("ZodPipe", (inst, def) => {
39271
39645
  $ZodPipe.init(inst, def);
39272
39646
  ZodType.init(inst, def);
39273
- inst._zod.processJSONSchema = (ctx, json, params) => pipeProcessor(inst, ctx, json, params);
39647
+ inst._zod.processJSONSchema = (ctx, json2, params) => pipeProcessor(inst, ctx, json2, params);
39274
39648
  inst.in = def.in;
39275
39649
  inst.out = def.out;
39276
39650
  });
@@ -39284,7 +39658,7 @@ function pipe(in_, out) {
39284
39658
  var ZodReadonly = /* @__PURE__ */ $constructor("ZodReadonly", (inst, def) => {
39285
39659
  $ZodReadonly.init(inst, def);
39286
39660
  ZodType.init(inst, def);
39287
- inst._zod.processJSONSchema = (ctx, json, params) => readonlyProcessor(inst, ctx, json, params);
39661
+ inst._zod.processJSONSchema = (ctx, json2, params) => readonlyProcessor(inst, ctx, json2, params);
39288
39662
  inst.unwrap = () => inst._zod.def.innerType;
39289
39663
  });
39290
39664
  function readonly(innerType) {
@@ -39296,7 +39670,7 @@ function readonly(innerType) {
39296
39670
  var ZodCustom = /* @__PURE__ */ $constructor("ZodCustom", (inst, def) => {
39297
39671
  $ZodCustom.init(inst, def);
39298
39672
  ZodType.init(inst, def);
39299
- inst._zod.processJSONSchema = (ctx, json, params) => customProcessor(inst, ctx);
39673
+ inst._zod.processJSONSchema = (ctx, json2, params) => customProcessor(inst, ctx);
39300
39674
  });
39301
39675
  function refine(fn, _params = {}) {
39302
39676
  return _refine(ZodCustom, fn, _params);
@@ -39370,10 +39744,10 @@ function hasSecretConfig(config2) {
39370
39744
  }
39371
39745
 
39372
39746
  class UiPathError extends Error {
39373
- constructor(type, params) {
39747
+ constructor(type2, params) {
39374
39748
  super(params.message);
39375
- this.name = type;
39376
- this.type = type;
39749
+ this.name = type2;
39750
+ this.type = type2;
39377
39751
  this.statusCode = params.statusCode;
39378
39752
  this.requestId = params.requestId;
39379
39753
  this.timestamp = new Date;
@@ -39964,9 +40338,9 @@ var telemetryClient = {
39964
40338
  sdkClient.setUserId(userId);
39965
40339
  }
39966
40340
  };
39967
- function encodeBase64(str) {
40341
+ function encodeBase64(str2) {
39968
40342
  const encoder = new TextEncoder;
39969
- const data = encoder.encode(str);
40343
+ const data = encoder.encode(str2);
39970
40344
  if (isBrowser2) {
39971
40345
  const binaryString = Array.from(data, (byte) => String.fromCharCode(byte)).join("");
39972
40346
  return btoa(binaryString);
@@ -39995,11 +40369,11 @@ function encodeFolderPathHeader(folderPath) {
39995
40369
  view.setUint16(i * 2, folderPath.charCodeAt(i), true);
39996
40370
  }
39997
40371
  const bytes = new Uint8Array(buf);
39998
- let binary = "";
40372
+ let binary2 = "";
39999
40373
  for (let i = 0;i < bytes.byteLength; i++) {
40000
- binary += String.fromCharCode(bytes[i]);
40374
+ binary2 += String.fromCharCode(bytes[i]);
40001
40375
  }
40002
- return btoa(binary);
40376
+ return btoa(binary2);
40003
40377
  }
40004
40378
  var BASE64URL_DASH_RE = /-/g;
40005
40379
  var BASE64URL_UNDERSCORE_RE = /_/g;
@@ -41070,15 +41444,15 @@ function processODataArrayResponse(oDataResponse, successData) {
41070
41444
  }
41071
41445
 
41072
41446
  class PaginationManager {
41073
- static createCursor({ pageInfo, type }) {
41447
+ static createCursor({ pageInfo, type: type2 }) {
41074
41448
  if (!pageInfo.hasMore) {
41075
41449
  return;
41076
41450
  }
41077
41451
  const cursorData = {
41078
- type,
41452
+ type: type2,
41079
41453
  pageSize: pageInfo.pageSize
41080
41454
  };
41081
- switch (type) {
41455
+ switch (type2) {
41082
41456
  case PaginationType.OFFSET:
41083
41457
  if (pageInfo.currentPage) {
41084
41458
  cursorData.pageNumber = pageInfo.currentPage + 1;
@@ -41096,12 +41470,12 @@ class PaginationManager {
41096
41470
  value: encodeBase64(JSON.stringify(cursorData))
41097
41471
  };
41098
41472
  }
41099
- static createPaginatedResponse({ pageInfo, type }, items) {
41100
- const nextCursor = PaginationManager.createCursor({ pageInfo, type });
41473
+ static createPaginatedResponse({ pageInfo, type: type2 }, items) {
41474
+ const nextCursor = PaginationManager.createCursor({ pageInfo, type: type2 });
41101
41475
  let previousCursor = undefined;
41102
41476
  if (pageInfo.currentPage && pageInfo.currentPage > 1) {
41103
41477
  const prevCursorData = {
41104
- type,
41478
+ type: type2,
41105
41479
  pageNumber: pageInfo.currentPage - 1,
41106
41480
  pageSize: pageInfo.pageSize
41107
41481
  };
@@ -41113,7 +41487,7 @@ class PaginationManager {
41113
41487
  if (pageInfo.totalCount !== undefined && pageInfo.pageSize) {
41114
41488
  totalPages = Math.ceil(pageInfo.totalCount / pageInfo.pageSize);
41115
41489
  }
41116
- const supportsPageJump = type === PaginationType.OFFSET;
41490
+ const supportsPageJump = type2 === PaginationType.OFFSET;
41117
41491
  const result = filterUndefined({
41118
41492
  items,
41119
41493
  totalCount: pageInfo.totalCount,
@@ -41208,15 +41582,15 @@ function transformData(data, fieldMapping) {
41208
41582
  }
41209
41583
  return result;
41210
41584
  }
41211
- function pascalToCamelCase(str) {
41212
- if (!str)
41213
- return str;
41214
- return str.charAt(0).toLowerCase() + str.slice(1);
41585
+ function pascalToCamelCase(str2) {
41586
+ if (!str2)
41587
+ return str2;
41588
+ return str2.charAt(0).toLowerCase() + str2.slice(1);
41215
41589
  }
41216
- function camelToPascalCase(str) {
41217
- if (!str)
41218
- return str;
41219
- return str.charAt(0).toUpperCase() + str.slice(1);
41590
+ function camelToPascalCase(str2) {
41591
+ if (!str2)
41592
+ return str2;
41593
+ return str2.charAt(0).toUpperCase() + str2.slice(1);
41220
41594
  }
41221
41595
  function transformCaseKeys(data, convertCase) {
41222
41596
  if (Array.isArray(data)) {
@@ -41272,8 +41646,8 @@ function addPrefixToKeys(obj, prefix, keys) {
41272
41646
  }
41273
41647
  return result;
41274
41648
  }
41275
- function reverseMap(map) {
41276
- return Object.entries(map).reduce((acc, [key, value]) => {
41649
+ function reverseMap(map2) {
41650
+ return Object.entries(map2).reduce((acc, [key, value]) => {
41277
41651
  acc[value] = key;
41278
41652
  return acc;
41279
41653
  }, {});
@@ -42382,15 +42756,15 @@ class EntityService extends BaseService {
42382
42756
  }
42383
42757
  return mapped;
42384
42758
  }
42385
- validateFieldConstraints(type, field, fieldName) {
42386
- const spec = ENTITY_FIELD_CONSTRAINT_SPEC[type] ?? {};
42759
+ validateFieldConstraints(type2, field, fieldName) {
42760
+ const spec = ENTITY_FIELD_CONSTRAINT_SPEC[type2] ?? {};
42387
42761
  const supported = Object.keys(spec);
42388
42762
  const provided = Object.values(EntityFieldConstraint).filter((name) => field[name] !== undefined);
42389
42763
  const unsupported = provided.filter((p) => !(p in spec));
42390
42764
  if (unsupported.length > 0) {
42391
42765
  const allowedDesc = supported.length > 0 ? supported.join(", ") : "none";
42392
42766
  throw new ValidationError({
42393
- message: `Field '${fieldName}' of type ${type} does not accept ${unsupported.join(", ")}. Allowed constraints for this type: ${allowedDesc}.`
42767
+ message: `Field '${fieldName}' of type ${type2} does not accept ${unsupported.join(", ")}. Allowed constraints for this type: ${allowedDesc}.`
42394
42768
  });
42395
42769
  }
42396
42770
  for (const name of provided) {
@@ -42398,19 +42772,19 @@ class EntityService extends BaseService {
42398
42772
  const value = field[name];
42399
42773
  if (range && value !== undefined && (value < range.min || value > range.max)) {
42400
42774
  throw new ValidationError({
42401
- message: `Field '${fieldName}' of type ${type} has ${name} ${value} out of range [${range.min}, ${range.max}].`
42775
+ message: `Field '${fieldName}' of type ${type2} has ${name} ${value} out of range [${range.min}, ${range.max}].`
42402
42776
  });
42403
42777
  }
42404
42778
  }
42405
42779
  if (field.minValue !== undefined && field.maxValue !== undefined && field.minValue >= field.maxValue) {
42406
42780
  throw new ValidationError({
42407
- message: `Field '${fieldName}' of type ${type} has minValue ${field.minValue} >= maxValue ${field.maxValue}. minValue must be strictly less than maxValue.`
42781
+ message: `Field '${fieldName}' of type ${type2} has minValue ${field.minValue} >= maxValue ${field.maxValue}. minValue must be strictly less than maxValue.`
42408
42782
  });
42409
42783
  }
42410
42784
  }
42411
- buildSqlTypeConstraints(type, field) {
42785
+ buildSqlTypeConstraints(type2, field) {
42412
42786
  const defaults = ENTITY_FIELD_CONSTRAINT_DEFAULTS;
42413
- switch (type) {
42787
+ switch (type2) {
42414
42788
  case EntityFieldDataType.STRING:
42415
42789
  return { lengthLimit: field.lengthLimit ?? defaults.STRING_LENGTH_LIMIT };
42416
42790
  case EntityFieldDataType.MULTILINE_TEXT:
@@ -42635,10 +43009,10 @@ function isDataFabricRole(value) {
42635
43009
  if (!isRecord$1(value)) {
42636
43010
  return false;
42637
43011
  }
42638
- const { id, name, type, directoryEntityCount, folderId } = value;
43012
+ const { id, name, type: type2, directoryEntityCount, folderId } = value;
42639
43013
  const hasValidDirectoryEntityCount = directoryEntityCount === undefined || directoryEntityCount === null || typeof directoryEntityCount === "number";
42640
43014
  const hasValidFolderId = folderId === undefined || typeof folderId === "string";
42641
- return typeof id === "string" && typeof name === "string" && (type === DataFabricRoleType.System || type === DataFabricRoleType.UserDefined) && hasValidDirectoryEntityCount && hasValidFolderId;
43015
+ return typeof id === "string" && typeof name === "string" && (type2 === DataFabricRoleType.System || type2 === DataFabricRoleType.UserDefined) && hasValidDirectoryEntityCount && hasValidFolderId;
42642
43016
  }
42643
43017
  function validateRolesResponse(data) {
42644
43018
  if (Array.isArray(data) && data.every(isDataFabricRole)) {
@@ -42733,16 +43107,16 @@ function normalizePrincipalIds(principalIds) {
42733
43107
  function normalizeRoleIds(roleIds) {
42734
43108
  return [...new Set(roleIds.map((id) => id.trim()).filter(Boolean))];
42735
43109
  }
42736
- function normalizePrincipalType(type) {
42737
- if (typeof type === "number") {
42738
- if (type === DataFabricDirectoryEntityType.User || type === DataFabricDirectoryEntityType.Group || type === DataFabricDirectoryEntityType.Application) {
42739
- return type;
43110
+ function normalizePrincipalType(type2) {
43111
+ if (typeof type2 === "number") {
43112
+ if (type2 === DataFabricDirectoryEntityType.User || type2 === DataFabricDirectoryEntityType.Group || type2 === DataFabricDirectoryEntityType.Application) {
43113
+ return type2;
42740
43114
  }
42741
43115
  throw new ValidationError({
42742
43116
  message: "Invalid Data Fabric principal type."
42743
43117
  });
42744
43118
  }
42745
- switch (type) {
43119
+ switch (type2) {
42746
43120
  case DataFabricDirectoryEntityTypeName.User:
42747
43121
  return DataFabricDirectoryEntityType.User;
42748
43122
  case DataFabricDirectoryEntityTypeName.Group:
@@ -42804,7 +43178,7 @@ class DataFabricDirectoryService extends BaseService {
42804
43178
  if (normalizedRoleIds.length === 0) {
42805
43179
  throw new ValidationError({ message: "At least one Data Fabric role ID is required." });
42806
43180
  }
42807
- const type = normalizePrincipalType(principalType);
43181
+ const type2 = normalizePrincipalType(principalType);
42808
43182
  const preserveExisting = options.preserveExisting ?? true;
42809
43183
  const existingById = new Map;
42810
43184
  if (preserveExisting) {
@@ -42819,7 +43193,7 @@ class DataFabricDirectoryService extends BaseService {
42819
43193
  directoryEntities: [
42820
43194
  {
42821
43195
  externalId: principalId,
42822
- type,
43196
+ type: type2,
42823
43197
  resolved: true
42824
43198
  }
42825
43199
  ],
@@ -43262,7 +43636,7 @@ class BpmnHelpers {
43262
43636
  return elementInfo;
43263
43637
  }
43264
43638
  static formatActivityTypeForIncidents(elementType) {
43265
- return elementType.replace(/([A-Z])/g, " $1").replace(/^./, (str) => str.toUpperCase()).trim();
43639
+ return elementType.replace(/([A-Z])/g, " $1").replace(/^./, (str2) => str2.toUpperCase()).trim();
43266
43640
  }
43267
43641
  static async enrichIncidentsWithBpmnData(incidents, folderKey, service) {
43268
43642
  const uniqueInstanceIds = [...new Set(incidents.map((i) => i.instanceId))];
@@ -47175,4 +47549,4 @@ export {
47175
47549
  metadata
47176
47550
  };
47177
47551
 
47178
- //# debugId=B6ADC8F2861796BE64756E2164756E21
47552
+ //# debugId=8C97BC1E9415834564756E2164756E21