@uipath/apms-tool 1.198.0-preview.84 → 1.198.0-preview.86
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +1075 -701
- package/dist/tool.js +1075 -701
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -21247,7 +21247,7 @@ var {
|
|
|
21247
21247
|
var package_default = {
|
|
21248
21248
|
name: "@uipath/apms-tool",
|
|
21249
21249
|
license: "MIT",
|
|
21250
|
-
version: "1.198.0-preview.
|
|
21250
|
+
version: "1.198.0-preview.86",
|
|
21251
21251
|
description: "CLI plugin for the UiPath Access Policy Management Service.",
|
|
21252
21252
|
private: false,
|
|
21253
21253
|
repository: {
|
|
@@ -26244,31 +26244,17 @@ function search(data, expression, options) {
|
|
|
26244
26244
|
}
|
|
26245
26245
|
|
|
26246
26246
|
// ../../../node_modules/js-yaml/dist/js-yaml.mjs
|
|
26247
|
-
|
|
26248
|
-
|
|
26249
|
-
|
|
26250
|
-
var
|
|
26251
|
-
var
|
|
26252
|
-
var
|
|
26253
|
-
var
|
|
26254
|
-
|
|
26255
|
-
|
|
26256
|
-
|
|
26257
|
-
|
|
26258
|
-
key = keys[i];
|
|
26259
|
-
if (!__hasOwnProp2.call(to, key) && key !== except)
|
|
26260
|
-
__defProp2(to, key, {
|
|
26261
|
-
get: ((k) => from[k]).bind(null, key),
|
|
26262
|
-
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
26263
|
-
});
|
|
26264
|
-
}
|
|
26265
|
-
return to;
|
|
26266
|
-
};
|
|
26267
|
-
var __toESM2 = (mod2, isNodeMode, target) => (target = mod2 != null ? __create2(__getProtoOf2(mod2)) : {}, __copyProps(isNodeMode || !mod2 || !mod2.__esModule ? __defProp2(target, "default", {
|
|
26268
|
-
value: mod2,
|
|
26269
|
-
enumerable: true
|
|
26270
|
-
}) : target, mod2));
|
|
26271
|
-
var require_common = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
26247
|
+
function getDefaultExportFromCjs(x) {
|
|
26248
|
+
return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, "default") ? x["default"] : x;
|
|
26249
|
+
}
|
|
26250
|
+
var jsYaml = {};
|
|
26251
|
+
var loader = {};
|
|
26252
|
+
var common = {};
|
|
26253
|
+
var hasRequiredCommon;
|
|
26254
|
+
function requireCommon() {
|
|
26255
|
+
if (hasRequiredCommon)
|
|
26256
|
+
return common;
|
|
26257
|
+
hasRequiredCommon = 1;
|
|
26272
26258
|
function isNothing(subject) {
|
|
26273
26259
|
return typeof subject === "undefined" || subject === null;
|
|
26274
26260
|
}
|
|
@@ -26294,55 +26280,71 @@ var require_common = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
26294
26280
|
}
|
|
26295
26281
|
function repeat(string, count) {
|
|
26296
26282
|
let result = "";
|
|
26297
|
-
for (let cycle = 0;cycle < count; cycle += 1)
|
|
26283
|
+
for (let cycle = 0;cycle < count; cycle += 1) {
|
|
26298
26284
|
result += string;
|
|
26285
|
+
}
|
|
26299
26286
|
return result;
|
|
26300
26287
|
}
|
|
26301
26288
|
function isNegativeZero(number) {
|
|
26302
26289
|
return number === 0 && Number.NEGATIVE_INFINITY === 1 / number;
|
|
26303
26290
|
}
|
|
26304
|
-
|
|
26305
|
-
|
|
26306
|
-
|
|
26307
|
-
|
|
26308
|
-
|
|
26309
|
-
|
|
26310
|
-
|
|
26311
|
-
|
|
26312
|
-
|
|
26291
|
+
common.isNothing = isNothing;
|
|
26292
|
+
common.isObject = isObject2;
|
|
26293
|
+
common.toArray = toArray;
|
|
26294
|
+
common.repeat = repeat;
|
|
26295
|
+
common.isNegativeZero = isNegativeZero;
|
|
26296
|
+
common.extend = extend;
|
|
26297
|
+
return common;
|
|
26298
|
+
}
|
|
26299
|
+
var exception;
|
|
26300
|
+
var hasRequiredException;
|
|
26301
|
+
function requireException() {
|
|
26302
|
+
if (hasRequiredException)
|
|
26303
|
+
return exception;
|
|
26304
|
+
hasRequiredException = 1;
|
|
26305
|
+
function formatError(exception2, compact) {
|
|
26313
26306
|
let where = "";
|
|
26314
|
-
const message =
|
|
26315
|
-
if (!
|
|
26307
|
+
const message = exception2.reason || "(unknown reason)";
|
|
26308
|
+
if (!exception2.mark)
|
|
26316
26309
|
return message;
|
|
26317
|
-
if (
|
|
26318
|
-
where += 'in "' +
|
|
26319
|
-
|
|
26320
|
-
|
|
26310
|
+
if (exception2.mark.name) {
|
|
26311
|
+
where += 'in "' + exception2.mark.name + '" ';
|
|
26312
|
+
}
|
|
26313
|
+
where += "(" + (exception2.mark.line + 1) + ":" + (exception2.mark.column + 1) + ")";
|
|
26314
|
+
if (!compact && exception2.mark.snippet) {
|
|
26321
26315
|
where += `
|
|
26322
26316
|
|
|
26323
|
-
` +
|
|
26317
|
+
` + exception2.mark.snippet;
|
|
26318
|
+
}
|
|
26324
26319
|
return message + " " + where;
|
|
26325
26320
|
}
|
|
26326
|
-
function
|
|
26321
|
+
function YAMLException2(reason, mark) {
|
|
26327
26322
|
Error.call(this);
|
|
26328
26323
|
this.name = "YAMLException";
|
|
26329
26324
|
this.reason = reason;
|
|
26330
26325
|
this.mark = mark;
|
|
26331
26326
|
this.message = formatError(this, false);
|
|
26332
|
-
if (Error.captureStackTrace)
|
|
26327
|
+
if (Error.captureStackTrace) {
|
|
26333
26328
|
Error.captureStackTrace(this, this.constructor);
|
|
26334
|
-
else
|
|
26335
|
-
this.stack =
|
|
26329
|
+
} else {
|
|
26330
|
+
this.stack = new Error().stack || "";
|
|
26331
|
+
}
|
|
26336
26332
|
}
|
|
26337
|
-
|
|
26338
|
-
|
|
26339
|
-
|
|
26333
|
+
YAMLException2.prototype = Object.create(Error.prototype);
|
|
26334
|
+
YAMLException2.prototype.constructor = YAMLException2;
|
|
26335
|
+
YAMLException2.prototype.toString = function toString(compact) {
|
|
26340
26336
|
return this.name + ": " + formatError(this, compact);
|
|
26341
26337
|
};
|
|
26342
|
-
|
|
26343
|
-
|
|
26344
|
-
|
|
26345
|
-
|
|
26338
|
+
exception = YAMLException2;
|
|
26339
|
+
return exception;
|
|
26340
|
+
}
|
|
26341
|
+
var snippet;
|
|
26342
|
+
var hasRequiredSnippet;
|
|
26343
|
+
function requireSnippet() {
|
|
26344
|
+
if (hasRequiredSnippet)
|
|
26345
|
+
return snippet;
|
|
26346
|
+
hasRequiredSnippet = 1;
|
|
26347
|
+
const common2 = requireCommon();
|
|
26346
26348
|
function getLine(buffer, lineStart, lineEnd, position, maxLineLength) {
|
|
26347
26349
|
let head = "";
|
|
26348
26350
|
let tail = "";
|
|
@@ -26361,7 +26363,7 @@ var require_snippet = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
26361
26363
|
};
|
|
26362
26364
|
}
|
|
26363
26365
|
function padStart(string, max) {
|
|
26364
|
-
return
|
|
26366
|
+
return common2.repeat(" ", max - string.length) + string;
|
|
26365
26367
|
}
|
|
26366
26368
|
function makeSnippet(mark, options) {
|
|
26367
26369
|
options = Object.create(options || null);
|
|
@@ -26383,8 +26385,9 @@ var require_snippet = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
26383
26385
|
while (match = re.exec(mark.buffer)) {
|
|
26384
26386
|
lineEnds.push(match.index);
|
|
26385
26387
|
lineStarts.push(match.index + match[0].length);
|
|
26386
|
-
if (mark.position <= match.index && foundLineNo < 0)
|
|
26388
|
+
if (mark.position <= match.index && foundLineNo < 0) {
|
|
26387
26389
|
foundLineNo = lineStarts.length - 2;
|
|
26390
|
+
}
|
|
26388
26391
|
}
|
|
26389
26392
|
if (foundLineNo < 0)
|
|
26390
26393
|
foundLineNo = lineStarts.length - 1;
|
|
@@ -26395,28 +26398,34 @@ var require_snippet = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
26395
26398
|
if (foundLineNo - i < 0)
|
|
26396
26399
|
break;
|
|
26397
26400
|
const line2 = getLine(mark.buffer, lineStarts[foundLineNo - i], lineEnds[foundLineNo - i], mark.position - (lineStarts[foundLineNo] - lineStarts[foundLineNo - i]), maxLineLength);
|
|
26398
|
-
result =
|
|
26401
|
+
result = common2.repeat(" ", options.indent) + padStart((mark.line - i + 1).toString(), lineNoLength) + " | " + line2.str + `
|
|
26399
26402
|
` + result;
|
|
26400
26403
|
}
|
|
26401
26404
|
const line = getLine(mark.buffer, lineStarts[foundLineNo], lineEnds[foundLineNo], mark.position, maxLineLength);
|
|
26402
|
-
result +=
|
|
26405
|
+
result += common2.repeat(" ", options.indent) + padStart((mark.line + 1).toString(), lineNoLength) + " | " + line.str + `
|
|
26403
26406
|
`;
|
|
26404
|
-
result +=
|
|
26407
|
+
result += common2.repeat("-", options.indent + lineNoLength + 3 + line.pos) + `^
|
|
26405
26408
|
`;
|
|
26406
26409
|
for (let i = 1;i <= options.linesAfter; i++) {
|
|
26407
26410
|
if (foundLineNo + i >= lineEnds.length)
|
|
26408
26411
|
break;
|
|
26409
26412
|
const line2 = getLine(mark.buffer, lineStarts[foundLineNo + i], lineEnds[foundLineNo + i], mark.position - (lineStarts[foundLineNo] - lineStarts[foundLineNo + i]), maxLineLength);
|
|
26410
|
-
result +=
|
|
26413
|
+
result += common2.repeat(" ", options.indent) + padStart((mark.line + i + 1).toString(), lineNoLength) + " | " + line2.str + `
|
|
26411
26414
|
`;
|
|
26412
26415
|
}
|
|
26413
26416
|
return result.replace(/\n$/, "");
|
|
26414
26417
|
}
|
|
26415
|
-
|
|
26416
|
-
|
|
26417
|
-
|
|
26418
|
-
|
|
26419
|
-
|
|
26418
|
+
snippet = makeSnippet;
|
|
26419
|
+
return snippet;
|
|
26420
|
+
}
|
|
26421
|
+
var type;
|
|
26422
|
+
var hasRequiredType;
|
|
26423
|
+
function requireType() {
|
|
26424
|
+
if (hasRequiredType)
|
|
26425
|
+
return type;
|
|
26426
|
+
hasRequiredType = 1;
|
|
26427
|
+
const YAMLException2 = requireException();
|
|
26428
|
+
const TYPE_CONSTRUCTOR_OPTIONS = [
|
|
26420
26429
|
"kind",
|
|
26421
26430
|
"multi",
|
|
26422
26431
|
"resolve",
|
|
@@ -26428,26 +26437,28 @@ var require_type = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
26428
26437
|
"defaultStyle",
|
|
26429
26438
|
"styleAliases"
|
|
26430
26439
|
];
|
|
26431
|
-
|
|
26440
|
+
const YAML_NODE_KINDS = [
|
|
26432
26441
|
"scalar",
|
|
26433
26442
|
"sequence",
|
|
26434
26443
|
"mapping"
|
|
26435
26444
|
];
|
|
26436
|
-
function compileStyleAliases(
|
|
26445
|
+
function compileStyleAliases(map2) {
|
|
26437
26446
|
const result = {};
|
|
26438
|
-
if (
|
|
26439
|
-
Object.keys(
|
|
26440
|
-
|
|
26447
|
+
if (map2 !== null) {
|
|
26448
|
+
Object.keys(map2).forEach(function(style) {
|
|
26449
|
+
map2[style].forEach(function(alias) {
|
|
26441
26450
|
result[String(alias)] = style;
|
|
26442
26451
|
});
|
|
26443
26452
|
});
|
|
26453
|
+
}
|
|
26444
26454
|
return result;
|
|
26445
26455
|
}
|
|
26446
|
-
function
|
|
26456
|
+
function Type2(tag, options) {
|
|
26447
26457
|
options = options || {};
|
|
26448
26458
|
Object.keys(options).forEach(function(name) {
|
|
26449
|
-
if (TYPE_CONSTRUCTOR_OPTIONS.indexOf(name) === -1)
|
|
26450
|
-
throw new
|
|
26459
|
+
if (TYPE_CONSTRUCTOR_OPTIONS.indexOf(name) === -1) {
|
|
26460
|
+
throw new YAMLException2('Unknown option "' + name + '" is met in definition of "' + tag + '" YAML type.');
|
|
26461
|
+
}
|
|
26451
26462
|
});
|
|
26452
26463
|
this.options = options;
|
|
26453
26464
|
this.tag = tag;
|
|
@@ -26465,21 +26476,29 @@ var require_type = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
26465
26476
|
this.defaultStyle = options["defaultStyle"] || null;
|
|
26466
26477
|
this.multi = options["multi"] || false;
|
|
26467
26478
|
this.styleAliases = compileStyleAliases(options["styleAliases"] || null);
|
|
26468
|
-
if (YAML_NODE_KINDS.indexOf(this.kind) === -1)
|
|
26469
|
-
throw new
|
|
26479
|
+
if (YAML_NODE_KINDS.indexOf(this.kind) === -1) {
|
|
26480
|
+
throw new YAMLException2('Unknown kind "' + this.kind + '" is specified for "' + tag + '" YAML type.');
|
|
26481
|
+
}
|
|
26470
26482
|
}
|
|
26471
|
-
|
|
26472
|
-
|
|
26473
|
-
|
|
26474
|
-
|
|
26475
|
-
|
|
26476
|
-
|
|
26483
|
+
type = Type2;
|
|
26484
|
+
return type;
|
|
26485
|
+
}
|
|
26486
|
+
var schema;
|
|
26487
|
+
var hasRequiredSchema;
|
|
26488
|
+
function requireSchema() {
|
|
26489
|
+
if (hasRequiredSchema)
|
|
26490
|
+
return schema;
|
|
26491
|
+
hasRequiredSchema = 1;
|
|
26492
|
+
const YAMLException2 = requireException();
|
|
26493
|
+
const Type2 = requireType();
|
|
26494
|
+
function compileList(schema2, name) {
|
|
26477
26495
|
const result = [];
|
|
26478
|
-
|
|
26496
|
+
schema2[name].forEach(function(currentType) {
|
|
26479
26497
|
let newIndex = result.length;
|
|
26480
26498
|
result.forEach(function(previousType, previousIndex) {
|
|
26481
|
-
if (previousType.tag === currentType.tag && previousType.kind === currentType.kind && previousType.multi === currentType.multi)
|
|
26499
|
+
if (previousType.tag === currentType.tag && previousType.kind === currentType.kind && previousType.multi === currentType.multi) {
|
|
26482
26500
|
newIndex = previousIndex;
|
|
26501
|
+
}
|
|
26483
26502
|
});
|
|
26484
26503
|
result[newIndex] = currentType;
|
|
26485
26504
|
});
|
|
@@ -26498,47 +26517,54 @@ var require_schema = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
26498
26517
|
fallback: []
|
|
26499
26518
|
}
|
|
26500
26519
|
};
|
|
26501
|
-
function collectType(
|
|
26502
|
-
if (
|
|
26503
|
-
result.multi[
|
|
26504
|
-
result.multi["fallback"].push(
|
|
26505
|
-
} else
|
|
26506
|
-
result[
|
|
26520
|
+
function collectType(type2) {
|
|
26521
|
+
if (type2.multi) {
|
|
26522
|
+
result.multi[type2.kind].push(type2);
|
|
26523
|
+
result.multi["fallback"].push(type2);
|
|
26524
|
+
} else {
|
|
26525
|
+
result[type2.kind][type2.tag] = result["fallback"][type2.tag] = type2;
|
|
26526
|
+
}
|
|
26507
26527
|
}
|
|
26508
|
-
for (let index = 0, length = arguments.length;index < length; index += 1)
|
|
26528
|
+
for (let index = 0, length = arguments.length;index < length; index += 1) {
|
|
26509
26529
|
arguments[index].forEach(collectType);
|
|
26530
|
+
}
|
|
26510
26531
|
return result;
|
|
26511
26532
|
}
|
|
26512
|
-
function
|
|
26533
|
+
function Schema2(definition) {
|
|
26513
26534
|
return this.extend(definition);
|
|
26514
26535
|
}
|
|
26515
|
-
|
|
26536
|
+
Schema2.prototype.extend = function extend(definition) {
|
|
26516
26537
|
let implicit = [];
|
|
26517
26538
|
let explicit = [];
|
|
26518
|
-
if (definition instanceof
|
|
26539
|
+
if (definition instanceof Type2) {
|
|
26519
26540
|
explicit.push(definition);
|
|
26520
|
-
else if (Array.isArray(definition))
|
|
26541
|
+
} else if (Array.isArray(definition)) {
|
|
26521
26542
|
explicit = explicit.concat(definition);
|
|
26522
|
-
else if (definition && (Array.isArray(definition.implicit) || Array.isArray(definition.explicit))) {
|
|
26543
|
+
} else if (definition && (Array.isArray(definition.implicit) || Array.isArray(definition.explicit))) {
|
|
26523
26544
|
if (definition.implicit)
|
|
26524
26545
|
implicit = implicit.concat(definition.implicit);
|
|
26525
26546
|
if (definition.explicit)
|
|
26526
26547
|
explicit = explicit.concat(definition.explicit);
|
|
26527
|
-
} else
|
|
26528
|
-
throw new
|
|
26529
|
-
|
|
26530
|
-
|
|
26531
|
-
|
|
26532
|
-
|
|
26533
|
-
|
|
26534
|
-
if (
|
|
26535
|
-
throw new
|
|
26548
|
+
} else {
|
|
26549
|
+
throw new YAMLException2("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })");
|
|
26550
|
+
}
|
|
26551
|
+
implicit.forEach(function(type2) {
|
|
26552
|
+
if (!(type2 instanceof Type2)) {
|
|
26553
|
+
throw new YAMLException2("Specified list of YAML types (or a single Type object) contains a non-Type object.");
|
|
26554
|
+
}
|
|
26555
|
+
if (type2.loadKind && type2.loadKind !== "scalar") {
|
|
26556
|
+
throw new YAMLException2("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.");
|
|
26557
|
+
}
|
|
26558
|
+
if (type2.multi) {
|
|
26559
|
+
throw new YAMLException2("There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.");
|
|
26560
|
+
}
|
|
26536
26561
|
});
|
|
26537
|
-
explicit.forEach(function(
|
|
26538
|
-
if (!(
|
|
26539
|
-
throw new
|
|
26562
|
+
explicit.forEach(function(type2) {
|
|
26563
|
+
if (!(type2 instanceof Type2)) {
|
|
26564
|
+
throw new YAMLException2("Specified list of YAML types (or a single Type object) contains a non-Type object.");
|
|
26565
|
+
}
|
|
26540
26566
|
});
|
|
26541
|
-
const result = Object.create(
|
|
26567
|
+
const result = Object.create(Schema2.prototype);
|
|
26542
26568
|
result.implicit = (this.implicit || []).concat(implicit);
|
|
26543
26569
|
result.explicit = (this.explicit || []).concat(explicit);
|
|
26544
26570
|
result.compiledImplicit = compileList(result, "implicit");
|
|
@@ -26546,41 +26572,77 @@ var require_schema = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
26546
26572
|
result.compiledTypeMap = compileMap(result.compiledImplicit, result.compiledExplicit);
|
|
26547
26573
|
return result;
|
|
26548
26574
|
};
|
|
26549
|
-
|
|
26550
|
-
|
|
26551
|
-
|
|
26552
|
-
|
|
26575
|
+
schema = Schema2;
|
|
26576
|
+
return schema;
|
|
26577
|
+
}
|
|
26578
|
+
var str;
|
|
26579
|
+
var hasRequiredStr;
|
|
26580
|
+
function requireStr() {
|
|
26581
|
+
if (hasRequiredStr)
|
|
26582
|
+
return str;
|
|
26583
|
+
hasRequiredStr = 1;
|
|
26584
|
+
const Type2 = requireType();
|
|
26585
|
+
str = new Type2("tag:yaml.org,2002:str", {
|
|
26553
26586
|
kind: "scalar",
|
|
26554
26587
|
construct: function(data) {
|
|
26555
26588
|
return data !== null ? data : "";
|
|
26556
26589
|
}
|
|
26557
26590
|
});
|
|
26558
|
-
|
|
26559
|
-
|
|
26560
|
-
|
|
26591
|
+
return str;
|
|
26592
|
+
}
|
|
26593
|
+
var seq;
|
|
26594
|
+
var hasRequiredSeq;
|
|
26595
|
+
function requireSeq() {
|
|
26596
|
+
if (hasRequiredSeq)
|
|
26597
|
+
return seq;
|
|
26598
|
+
hasRequiredSeq = 1;
|
|
26599
|
+
const Type2 = requireType();
|
|
26600
|
+
seq = new Type2("tag:yaml.org,2002:seq", {
|
|
26561
26601
|
kind: "sequence",
|
|
26562
26602
|
construct: function(data) {
|
|
26563
26603
|
return data !== null ? data : [];
|
|
26564
26604
|
}
|
|
26565
26605
|
});
|
|
26566
|
-
|
|
26567
|
-
|
|
26568
|
-
|
|
26606
|
+
return seq;
|
|
26607
|
+
}
|
|
26608
|
+
var map;
|
|
26609
|
+
var hasRequiredMap;
|
|
26610
|
+
function requireMap() {
|
|
26611
|
+
if (hasRequiredMap)
|
|
26612
|
+
return map;
|
|
26613
|
+
hasRequiredMap = 1;
|
|
26614
|
+
const Type2 = requireType();
|
|
26615
|
+
map = new Type2("tag:yaml.org,2002:map", {
|
|
26569
26616
|
kind: "mapping",
|
|
26570
26617
|
construct: function(data) {
|
|
26571
26618
|
return data !== null ? data : {};
|
|
26572
26619
|
}
|
|
26573
26620
|
});
|
|
26574
|
-
|
|
26575
|
-
|
|
26576
|
-
|
|
26577
|
-
|
|
26578
|
-
|
|
26579
|
-
|
|
26580
|
-
|
|
26581
|
-
|
|
26582
|
-
|
|
26583
|
-
|
|
26621
|
+
return map;
|
|
26622
|
+
}
|
|
26623
|
+
var failsafe;
|
|
26624
|
+
var hasRequiredFailsafe;
|
|
26625
|
+
function requireFailsafe() {
|
|
26626
|
+
if (hasRequiredFailsafe)
|
|
26627
|
+
return failsafe;
|
|
26628
|
+
hasRequiredFailsafe = 1;
|
|
26629
|
+
const Schema2 = requireSchema();
|
|
26630
|
+
failsafe = new Schema2({
|
|
26631
|
+
explicit: [
|
|
26632
|
+
requireStr(),
|
|
26633
|
+
requireSeq(),
|
|
26634
|
+
requireMap()
|
|
26635
|
+
]
|
|
26636
|
+
});
|
|
26637
|
+
return failsafe;
|
|
26638
|
+
}
|
|
26639
|
+
var _null;
|
|
26640
|
+
var hasRequired_null;
|
|
26641
|
+
function require_null() {
|
|
26642
|
+
if (hasRequired_null)
|
|
26643
|
+
return _null;
|
|
26644
|
+
hasRequired_null = 1;
|
|
26645
|
+
const Type2 = requireType();
|
|
26584
26646
|
function resolveYamlNull(data) {
|
|
26585
26647
|
if (data === null)
|
|
26586
26648
|
return true;
|
|
@@ -26593,7 +26655,7 @@ var require_null = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
26593
26655
|
function isNull(object) {
|
|
26594
26656
|
return object === null;
|
|
26595
26657
|
}
|
|
26596
|
-
|
|
26658
|
+
_null = new Type2("tag:yaml.org,2002:null", {
|
|
26597
26659
|
kind: "scalar",
|
|
26598
26660
|
resolve: resolveYamlNull,
|
|
26599
26661
|
construct: constructYamlNull,
|
|
@@ -26617,9 +26679,15 @@ var require_null = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
26617
26679
|
},
|
|
26618
26680
|
defaultStyle: "lowercase"
|
|
26619
26681
|
});
|
|
26620
|
-
|
|
26621
|
-
|
|
26622
|
-
|
|
26682
|
+
return _null;
|
|
26683
|
+
}
|
|
26684
|
+
var bool;
|
|
26685
|
+
var hasRequiredBool;
|
|
26686
|
+
function requireBool() {
|
|
26687
|
+
if (hasRequiredBool)
|
|
26688
|
+
return bool;
|
|
26689
|
+
hasRequiredBool = 1;
|
|
26690
|
+
const Type2 = requireType();
|
|
26623
26691
|
function resolveYamlBoolean(data) {
|
|
26624
26692
|
if (data === null)
|
|
26625
26693
|
return false;
|
|
@@ -26632,7 +26700,7 @@ var require_bool = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
26632
26700
|
function isBoolean(object) {
|
|
26633
26701
|
return Object.prototype.toString.call(object) === "[object Boolean]";
|
|
26634
26702
|
}
|
|
26635
|
-
|
|
26703
|
+
bool = new Type2("tag:yaml.org,2002:bool", {
|
|
26636
26704
|
kind: "scalar",
|
|
26637
26705
|
resolve: resolveYamlBoolean,
|
|
26638
26706
|
construct: constructYamlBoolean,
|
|
@@ -26650,10 +26718,16 @@ var require_bool = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
26650
26718
|
},
|
|
26651
26719
|
defaultStyle: "lowercase"
|
|
26652
26720
|
});
|
|
26653
|
-
|
|
26654
|
-
|
|
26655
|
-
|
|
26656
|
-
|
|
26721
|
+
return bool;
|
|
26722
|
+
}
|
|
26723
|
+
var int;
|
|
26724
|
+
var hasRequiredInt;
|
|
26725
|
+
function requireInt() {
|
|
26726
|
+
if (hasRequiredInt)
|
|
26727
|
+
return int;
|
|
26728
|
+
hasRequiredInt = 1;
|
|
26729
|
+
const common2 = requireCommon();
|
|
26730
|
+
const Type2 = requireType();
|
|
26657
26731
|
function isHexCode(c) {
|
|
26658
26732
|
return c >= 48 && c <= 57 || c >= 65 && c <= 70 || c >= 97 && c <= 102;
|
|
26659
26733
|
}
|
|
@@ -26672,8 +26746,9 @@ var require_int = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
26672
26746
|
if (!max)
|
|
26673
26747
|
return false;
|
|
26674
26748
|
let ch = data[index];
|
|
26675
|
-
if (ch === "-" || ch === "+")
|
|
26749
|
+
if (ch === "-" || ch === "+") {
|
|
26676
26750
|
ch = data[++index];
|
|
26751
|
+
}
|
|
26677
26752
|
if (ch === "0") {
|
|
26678
26753
|
if (index + 1 === max)
|
|
26679
26754
|
return true;
|
|
@@ -26686,7 +26761,7 @@ var require_int = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
26686
26761
|
return false;
|
|
26687
26762
|
hasDigits = true;
|
|
26688
26763
|
}
|
|
26689
|
-
return hasDigits &&
|
|
26764
|
+
return hasDigits && isFinite(parseYamlInteger(data));
|
|
26690
26765
|
}
|
|
26691
26766
|
if (ch === "x") {
|
|
26692
26767
|
index++;
|
|
@@ -26695,7 +26770,7 @@ var require_int = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
26695
26770
|
return false;
|
|
26696
26771
|
hasDigits = true;
|
|
26697
26772
|
}
|
|
26698
|
-
return hasDigits &&
|
|
26773
|
+
return hasDigits && isFinite(parseYamlInteger(data));
|
|
26699
26774
|
}
|
|
26700
26775
|
if (ch === "o") {
|
|
26701
26776
|
index++;
|
|
@@ -26704,17 +26779,18 @@ var require_int = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
26704
26779
|
return false;
|
|
26705
26780
|
hasDigits = true;
|
|
26706
26781
|
}
|
|
26707
|
-
return hasDigits &&
|
|
26782
|
+
return hasDigits && isFinite(parseYamlInteger(data));
|
|
26708
26783
|
}
|
|
26709
26784
|
}
|
|
26710
26785
|
for (;index < max; index++) {
|
|
26711
|
-
if (!isDecCode(data.charCodeAt(index)))
|
|
26786
|
+
if (!isDecCode(data.charCodeAt(index))) {
|
|
26712
26787
|
return false;
|
|
26788
|
+
}
|
|
26713
26789
|
hasDigits = true;
|
|
26714
26790
|
}
|
|
26715
26791
|
if (!hasDigits)
|
|
26716
26792
|
return false;
|
|
26717
|
-
return
|
|
26793
|
+
return isFinite(parseYamlInteger(data));
|
|
26718
26794
|
}
|
|
26719
26795
|
function parseYamlInteger(data) {
|
|
26720
26796
|
let value = data;
|
|
@@ -26742,9 +26818,9 @@ var require_int = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
26742
26818
|
return parseYamlInteger(data);
|
|
26743
26819
|
}
|
|
26744
26820
|
function isInteger(object) {
|
|
26745
|
-
return Object.prototype.toString.call(object) === "[object Number]" && object % 1 === 0 && !
|
|
26821
|
+
return Object.prototype.toString.call(object) === "[object Number]" && (object % 1 === 0 && !common2.isNegativeZero(object));
|
|
26746
26822
|
}
|
|
26747
|
-
|
|
26823
|
+
int = new Type2("tag:yaml.org,2002:int", {
|
|
26748
26824
|
kind: "scalar",
|
|
26749
26825
|
resolve: resolveYamlInteger,
|
|
26750
26826
|
construct: constructYamlInteger,
|
|
@@ -26771,35 +26847,45 @@ var require_int = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
26771
26847
|
hexadecimal: [16, "hex"]
|
|
26772
26848
|
}
|
|
26773
26849
|
});
|
|
26774
|
-
|
|
26775
|
-
|
|
26776
|
-
|
|
26777
|
-
|
|
26778
|
-
|
|
26779
|
-
|
|
26850
|
+
return int;
|
|
26851
|
+
}
|
|
26852
|
+
var float;
|
|
26853
|
+
var hasRequiredFloat;
|
|
26854
|
+
function requireFloat() {
|
|
26855
|
+
if (hasRequiredFloat)
|
|
26856
|
+
return float;
|
|
26857
|
+
hasRequiredFloat = 1;
|
|
26858
|
+
const common2 = requireCommon();
|
|
26859
|
+
const Type2 = requireType();
|
|
26860
|
+
const YAML_FLOAT_PATTERN = new RegExp("^(?:[-+]?(?:[0-9]+)(?:\\.[0-9]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");
|
|
26861
|
+
const YAML_FLOAT_SPECIAL_PATTERN = new RegExp("^(?:[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");
|
|
26780
26862
|
function resolveYamlFloat(data) {
|
|
26781
26863
|
if (data === null)
|
|
26782
26864
|
return false;
|
|
26783
|
-
if (!YAML_FLOAT_PATTERN.test(data))
|
|
26865
|
+
if (!YAML_FLOAT_PATTERN.test(data)) {
|
|
26784
26866
|
return false;
|
|
26785
|
-
|
|
26867
|
+
}
|
|
26868
|
+
if (isFinite(parseFloat(data, 10))) {
|
|
26786
26869
|
return true;
|
|
26870
|
+
}
|
|
26787
26871
|
return YAML_FLOAT_SPECIAL_PATTERN.test(data);
|
|
26788
26872
|
}
|
|
26789
26873
|
function constructYamlFloat(data) {
|
|
26790
26874
|
let value = data.toLowerCase();
|
|
26791
26875
|
const sign = value[0] === "-" ? -1 : 1;
|
|
26792
|
-
if ("+-".indexOf(value[0]) >= 0)
|
|
26876
|
+
if ("+-".indexOf(value[0]) >= 0) {
|
|
26793
26877
|
value = value.slice(1);
|
|
26794
|
-
|
|
26878
|
+
}
|
|
26879
|
+
if (value === ".inf") {
|
|
26795
26880
|
return sign === 1 ? Number.POSITIVE_INFINITY : Number.NEGATIVE_INFINITY;
|
|
26796
|
-
else if (value === ".nan")
|
|
26881
|
+
} else if (value === ".nan") {
|
|
26797
26882
|
return NaN;
|
|
26883
|
+
}
|
|
26798
26884
|
return sign * parseFloat(value, 10);
|
|
26799
26885
|
}
|
|
26800
|
-
|
|
26886
|
+
const SCIENTIFIC_WITHOUT_DOT = /^[-+]?[0-9]+e/;
|
|
26801
26887
|
function representYamlFloat(object, style) {
|
|
26802
|
-
if (isNaN(object))
|
|
26888
|
+
if (isNaN(object)) {
|
|
26803
26889
|
switch (style) {
|
|
26804
26890
|
case "lowercase":
|
|
26805
26891
|
return ".nan";
|
|
@@ -26808,7 +26894,7 @@ var require_float = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
26808
26894
|
case "camelcase":
|
|
26809
26895
|
return ".NaN";
|
|
26810
26896
|
}
|
|
26811
|
-
else if (Number.POSITIVE_INFINITY === object)
|
|
26897
|
+
} else if (Number.POSITIVE_INFINITY === object) {
|
|
26812
26898
|
switch (style) {
|
|
26813
26899
|
case "lowercase":
|
|
26814
26900
|
return ".inf";
|
|
@@ -26817,7 +26903,7 @@ var require_float = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
26817
26903
|
case "camelcase":
|
|
26818
26904
|
return ".Inf";
|
|
26819
26905
|
}
|
|
26820
|
-
else if (Number.NEGATIVE_INFINITY === object)
|
|
26906
|
+
} else if (Number.NEGATIVE_INFINITY === object) {
|
|
26821
26907
|
switch (style) {
|
|
26822
26908
|
case "lowercase":
|
|
26823
26909
|
return "-.inf";
|
|
@@ -26826,15 +26912,16 @@ var require_float = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
26826
26912
|
case "camelcase":
|
|
26827
26913
|
return "-.Inf";
|
|
26828
26914
|
}
|
|
26829
|
-
else if (
|
|
26915
|
+
} else if (common2.isNegativeZero(object)) {
|
|
26830
26916
|
return "-0.0";
|
|
26917
|
+
}
|
|
26831
26918
|
const res = object.toString(10);
|
|
26832
26919
|
return SCIENTIFIC_WITHOUT_DOT.test(res) ? res.replace("e", ".e") : res;
|
|
26833
26920
|
}
|
|
26834
26921
|
function isFloat(object) {
|
|
26835
|
-
return Object.prototype.toString.call(object) === "[object Number]" && (object % 1 !== 0 ||
|
|
26922
|
+
return Object.prototype.toString.call(object) === "[object Number]" && (object % 1 !== 0 || common2.isNegativeZero(object));
|
|
26836
26923
|
}
|
|
26837
|
-
|
|
26924
|
+
float = new Type2("tag:yaml.org,2002:float", {
|
|
26838
26925
|
kind: "scalar",
|
|
26839
26926
|
resolve: resolveYamlFloat,
|
|
26840
26927
|
construct: constructYamlFloat,
|
|
@@ -26842,22 +26929,42 @@ var require_float = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
26842
26929
|
represent: representYamlFloat,
|
|
26843
26930
|
defaultStyle: "lowercase"
|
|
26844
26931
|
});
|
|
26845
|
-
|
|
26846
|
-
|
|
26847
|
-
|
|
26848
|
-
|
|
26849
|
-
|
|
26850
|
-
|
|
26851
|
-
|
|
26852
|
-
|
|
26853
|
-
|
|
26854
|
-
|
|
26855
|
-
|
|
26856
|
-
|
|
26857
|
-
|
|
26858
|
-
|
|
26859
|
-
|
|
26860
|
-
|
|
26932
|
+
return float;
|
|
26933
|
+
}
|
|
26934
|
+
var json;
|
|
26935
|
+
var hasRequiredJson;
|
|
26936
|
+
function requireJson() {
|
|
26937
|
+
if (hasRequiredJson)
|
|
26938
|
+
return json;
|
|
26939
|
+
hasRequiredJson = 1;
|
|
26940
|
+
json = requireFailsafe().extend({
|
|
26941
|
+
implicit: [
|
|
26942
|
+
require_null(),
|
|
26943
|
+
requireBool(),
|
|
26944
|
+
requireInt(),
|
|
26945
|
+
requireFloat()
|
|
26946
|
+
]
|
|
26947
|
+
});
|
|
26948
|
+
return json;
|
|
26949
|
+
}
|
|
26950
|
+
var core;
|
|
26951
|
+
var hasRequiredCore;
|
|
26952
|
+
function requireCore() {
|
|
26953
|
+
if (hasRequiredCore)
|
|
26954
|
+
return core;
|
|
26955
|
+
hasRequiredCore = 1;
|
|
26956
|
+
core = requireJson();
|
|
26957
|
+
return core;
|
|
26958
|
+
}
|
|
26959
|
+
var timestamp;
|
|
26960
|
+
var hasRequiredTimestamp;
|
|
26961
|
+
function requireTimestamp() {
|
|
26962
|
+
if (hasRequiredTimestamp)
|
|
26963
|
+
return timestamp;
|
|
26964
|
+
hasRequiredTimestamp = 1;
|
|
26965
|
+
const Type2 = requireType();
|
|
26966
|
+
const YAML_DATE_REGEXP = new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$");
|
|
26967
|
+
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]))?))?$");
|
|
26861
26968
|
function resolveYamlTimestamp(data) {
|
|
26862
26969
|
if (data === null)
|
|
26863
26970
|
return false;
|
|
@@ -26878,15 +26985,17 @@ var require_timestamp = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
26878
26985
|
const year = +match[1];
|
|
26879
26986
|
const month = +match[2] - 1;
|
|
26880
26987
|
const day = +match[3];
|
|
26881
|
-
if (!match[4])
|
|
26988
|
+
if (!match[4]) {
|
|
26882
26989
|
return new Date(Date.UTC(year, month, day));
|
|
26990
|
+
}
|
|
26883
26991
|
const hour = +match[4];
|
|
26884
26992
|
const minute = +match[5];
|
|
26885
26993
|
const second = +match[6];
|
|
26886
26994
|
if (match[7]) {
|
|
26887
26995
|
fraction = match[7].slice(0, 3);
|
|
26888
|
-
while (fraction.length < 3)
|
|
26996
|
+
while (fraction.length < 3) {
|
|
26889
26997
|
fraction += "0";
|
|
26998
|
+
}
|
|
26890
26999
|
fraction = +fraction;
|
|
26891
27000
|
}
|
|
26892
27001
|
if (match[9]) {
|
|
@@ -26904,36 +27013,48 @@ var require_timestamp = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
26904
27013
|
function representYamlTimestamp(object) {
|
|
26905
27014
|
return object.toISOString();
|
|
26906
27015
|
}
|
|
26907
|
-
|
|
27016
|
+
timestamp = new Type2("tag:yaml.org,2002:timestamp", {
|
|
26908
27017
|
kind: "scalar",
|
|
26909
27018
|
resolve: resolveYamlTimestamp,
|
|
26910
27019
|
construct: constructYamlTimestamp,
|
|
26911
27020
|
instanceOf: Date,
|
|
26912
27021
|
represent: representYamlTimestamp
|
|
26913
27022
|
});
|
|
26914
|
-
|
|
26915
|
-
|
|
26916
|
-
|
|
27023
|
+
return timestamp;
|
|
27024
|
+
}
|
|
27025
|
+
var merge;
|
|
27026
|
+
var hasRequiredMerge;
|
|
27027
|
+
function requireMerge() {
|
|
27028
|
+
if (hasRequiredMerge)
|
|
27029
|
+
return merge;
|
|
27030
|
+
hasRequiredMerge = 1;
|
|
27031
|
+
const Type2 = requireType();
|
|
26917
27032
|
function resolveYamlMerge(data) {
|
|
26918
27033
|
return data === "<<" || data === null;
|
|
26919
27034
|
}
|
|
26920
|
-
|
|
27035
|
+
merge = new Type2("tag:yaml.org,2002:merge", {
|
|
26921
27036
|
kind: "scalar",
|
|
26922
27037
|
resolve: resolveYamlMerge
|
|
26923
27038
|
});
|
|
26924
|
-
|
|
26925
|
-
|
|
26926
|
-
|
|
26927
|
-
|
|
27039
|
+
return merge;
|
|
27040
|
+
}
|
|
27041
|
+
var binary;
|
|
27042
|
+
var hasRequiredBinary;
|
|
27043
|
+
function requireBinary() {
|
|
27044
|
+
if (hasRequiredBinary)
|
|
27045
|
+
return binary;
|
|
27046
|
+
hasRequiredBinary = 1;
|
|
27047
|
+
const Type2 = requireType();
|
|
27048
|
+
const BASE64_MAP = `ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
|
|
26928
27049
|
\r`;
|
|
26929
27050
|
function resolveYamlBinary(data) {
|
|
26930
27051
|
if (data === null)
|
|
26931
27052
|
return false;
|
|
26932
27053
|
let bitlen = 0;
|
|
26933
27054
|
const max = data.length;
|
|
26934
|
-
const
|
|
27055
|
+
const map2 = BASE64_MAP;
|
|
26935
27056
|
for (let idx = 0;idx < max; idx++) {
|
|
26936
|
-
const code =
|
|
27057
|
+
const code = map2.indexOf(data.charAt(idx));
|
|
26937
27058
|
if (code > 64)
|
|
26938
27059
|
continue;
|
|
26939
27060
|
if (code < 0)
|
|
@@ -26945,7 +27066,7 @@ var require_binary = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
26945
27066
|
function constructYamlBinary(data) {
|
|
26946
27067
|
const input = data.replace(/[\r\n=]/g, "");
|
|
26947
27068
|
const max = input.length;
|
|
26948
|
-
const
|
|
27069
|
+
const map2 = BASE64_MAP;
|
|
26949
27070
|
let bits = 0;
|
|
26950
27071
|
const result = [];
|
|
26951
27072
|
for (let idx = 0;idx < max; idx++) {
|
|
@@ -26954,7 +27075,7 @@ var require_binary = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
26954
27075
|
result.push(bits >> 8 & 255);
|
|
26955
27076
|
result.push(bits & 255);
|
|
26956
27077
|
}
|
|
26957
|
-
bits = bits << 6 |
|
|
27078
|
+
bits = bits << 6 | map2.indexOf(input.charAt(idx));
|
|
26958
27079
|
}
|
|
26959
27080
|
const tailbits = max % 4 * 6;
|
|
26960
27081
|
if (tailbits === 0) {
|
|
@@ -26964,58 +27085,65 @@ var require_binary = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
26964
27085
|
} else if (tailbits === 18) {
|
|
26965
27086
|
result.push(bits >> 10 & 255);
|
|
26966
27087
|
result.push(bits >> 2 & 255);
|
|
26967
|
-
} else if (tailbits === 12)
|
|
27088
|
+
} else if (tailbits === 12) {
|
|
26968
27089
|
result.push(bits >> 4 & 255);
|
|
27090
|
+
}
|
|
26969
27091
|
return new Uint8Array(result);
|
|
26970
27092
|
}
|
|
26971
27093
|
function representYamlBinary(object) {
|
|
26972
27094
|
let result = "";
|
|
26973
27095
|
let bits = 0;
|
|
26974
27096
|
const max = object.length;
|
|
26975
|
-
const
|
|
27097
|
+
const map2 = BASE64_MAP;
|
|
26976
27098
|
for (let idx = 0;idx < max; idx++) {
|
|
26977
27099
|
if (idx % 3 === 0 && idx) {
|
|
26978
|
-
result +=
|
|
26979
|
-
result +=
|
|
26980
|
-
result +=
|
|
26981
|
-
result +=
|
|
27100
|
+
result += map2[bits >> 18 & 63];
|
|
27101
|
+
result += map2[bits >> 12 & 63];
|
|
27102
|
+
result += map2[bits >> 6 & 63];
|
|
27103
|
+
result += map2[bits & 63];
|
|
26982
27104
|
}
|
|
26983
27105
|
bits = (bits << 8) + object[idx];
|
|
26984
27106
|
}
|
|
26985
27107
|
const tail = max % 3;
|
|
26986
27108
|
if (tail === 0) {
|
|
26987
|
-
result +=
|
|
26988
|
-
result +=
|
|
26989
|
-
result +=
|
|
26990
|
-
result +=
|
|
27109
|
+
result += map2[bits >> 18 & 63];
|
|
27110
|
+
result += map2[bits >> 12 & 63];
|
|
27111
|
+
result += map2[bits >> 6 & 63];
|
|
27112
|
+
result += map2[bits & 63];
|
|
26991
27113
|
} else if (tail === 2) {
|
|
26992
|
-
result +=
|
|
26993
|
-
result +=
|
|
26994
|
-
result +=
|
|
26995
|
-
result +=
|
|
27114
|
+
result += map2[bits >> 10 & 63];
|
|
27115
|
+
result += map2[bits >> 4 & 63];
|
|
27116
|
+
result += map2[bits << 2 & 63];
|
|
27117
|
+
result += map2[64];
|
|
26996
27118
|
} else if (tail === 1) {
|
|
26997
|
-
result +=
|
|
26998
|
-
result +=
|
|
26999
|
-
result +=
|
|
27000
|
-
result +=
|
|
27119
|
+
result += map2[bits >> 2 & 63];
|
|
27120
|
+
result += map2[bits << 4 & 63];
|
|
27121
|
+
result += map2[64];
|
|
27122
|
+
result += map2[64];
|
|
27001
27123
|
}
|
|
27002
27124
|
return result;
|
|
27003
27125
|
}
|
|
27004
27126
|
function isBinary(obj) {
|
|
27005
27127
|
return Object.prototype.toString.call(obj) === "[object Uint8Array]";
|
|
27006
27128
|
}
|
|
27007
|
-
|
|
27129
|
+
binary = new Type2("tag:yaml.org,2002:binary", {
|
|
27008
27130
|
kind: "scalar",
|
|
27009
27131
|
resolve: resolveYamlBinary,
|
|
27010
27132
|
construct: constructYamlBinary,
|
|
27011
27133
|
predicate: isBinary,
|
|
27012
27134
|
represent: representYamlBinary
|
|
27013
27135
|
});
|
|
27014
|
-
|
|
27015
|
-
|
|
27016
|
-
|
|
27017
|
-
|
|
27018
|
-
|
|
27136
|
+
return binary;
|
|
27137
|
+
}
|
|
27138
|
+
var omap;
|
|
27139
|
+
var hasRequiredOmap;
|
|
27140
|
+
function requireOmap() {
|
|
27141
|
+
if (hasRequiredOmap)
|
|
27142
|
+
return omap;
|
|
27143
|
+
hasRequiredOmap = 1;
|
|
27144
|
+
const Type2 = requireType();
|
|
27145
|
+
const _hasOwnProperty = Object.prototype.hasOwnProperty;
|
|
27146
|
+
const _toString = Object.prototype.toString;
|
|
27019
27147
|
function resolveYamlOmap(data) {
|
|
27020
27148
|
if (data === null)
|
|
27021
27149
|
return true;
|
|
@@ -27027,12 +27155,14 @@ var require_omap = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
27027
27155
|
if (_toString.call(pair) !== "[object Object]")
|
|
27028
27156
|
return false;
|
|
27029
27157
|
let pairKey;
|
|
27030
|
-
for (pairKey in pair)
|
|
27031
|
-
if (_hasOwnProperty.call(pair, pairKey))
|
|
27158
|
+
for (pairKey in pair) {
|
|
27159
|
+
if (_hasOwnProperty.call(pair, pairKey)) {
|
|
27032
27160
|
if (!pairHasKey)
|
|
27033
27161
|
pairHasKey = true;
|
|
27034
27162
|
else
|
|
27035
27163
|
return false;
|
|
27164
|
+
}
|
|
27165
|
+
}
|
|
27036
27166
|
if (!pairHasKey)
|
|
27037
27167
|
return false;
|
|
27038
27168
|
if (objectKeys.indexOf(pairKey) === -1)
|
|
@@ -27045,15 +27175,21 @@ var require_omap = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
27045
27175
|
function constructYamlOmap(data) {
|
|
27046
27176
|
return data !== null ? data : [];
|
|
27047
27177
|
}
|
|
27048
|
-
|
|
27178
|
+
omap = new Type2("tag:yaml.org,2002:omap", {
|
|
27049
27179
|
kind: "sequence",
|
|
27050
27180
|
resolve: resolveYamlOmap,
|
|
27051
27181
|
construct: constructYamlOmap
|
|
27052
27182
|
});
|
|
27053
|
-
|
|
27054
|
-
|
|
27055
|
-
|
|
27056
|
-
|
|
27183
|
+
return omap;
|
|
27184
|
+
}
|
|
27185
|
+
var pairs;
|
|
27186
|
+
var hasRequiredPairs;
|
|
27187
|
+
function requirePairs() {
|
|
27188
|
+
if (hasRequiredPairs)
|
|
27189
|
+
return pairs;
|
|
27190
|
+
hasRequiredPairs = 1;
|
|
27191
|
+
const Type2 = requireType();
|
|
27192
|
+
const _toString = Object.prototype.toString;
|
|
27057
27193
|
function resolveYamlPairs(data) {
|
|
27058
27194
|
if (data === null)
|
|
27059
27195
|
return true;
|
|
@@ -27082,64 +27218,85 @@ var require_pairs2 = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
27082
27218
|
}
|
|
27083
27219
|
return result;
|
|
27084
27220
|
}
|
|
27085
|
-
|
|
27221
|
+
pairs = new Type2("tag:yaml.org,2002:pairs", {
|
|
27086
27222
|
kind: "sequence",
|
|
27087
27223
|
resolve: resolveYamlPairs,
|
|
27088
27224
|
construct: constructYamlPairs
|
|
27089
27225
|
});
|
|
27090
|
-
|
|
27091
|
-
|
|
27092
|
-
|
|
27093
|
-
|
|
27226
|
+
return pairs;
|
|
27227
|
+
}
|
|
27228
|
+
var set;
|
|
27229
|
+
var hasRequiredSet;
|
|
27230
|
+
function requireSet() {
|
|
27231
|
+
if (hasRequiredSet)
|
|
27232
|
+
return set;
|
|
27233
|
+
hasRequiredSet = 1;
|
|
27234
|
+
const Type2 = requireType();
|
|
27235
|
+
const _hasOwnProperty = Object.prototype.hasOwnProperty;
|
|
27094
27236
|
function resolveYamlSet(data) {
|
|
27095
27237
|
if (data === null)
|
|
27096
27238
|
return true;
|
|
27097
27239
|
const object = data;
|
|
27098
|
-
for (const key in object)
|
|
27240
|
+
for (const key in object) {
|
|
27099
27241
|
if (_hasOwnProperty.call(object, key)) {
|
|
27100
27242
|
if (object[key] !== null)
|
|
27101
27243
|
return false;
|
|
27102
27244
|
}
|
|
27245
|
+
}
|
|
27103
27246
|
return true;
|
|
27104
27247
|
}
|
|
27105
27248
|
function constructYamlSet(data) {
|
|
27106
27249
|
return data !== null ? data : {};
|
|
27107
27250
|
}
|
|
27108
|
-
|
|
27251
|
+
set = new Type2("tag:yaml.org,2002:set", {
|
|
27109
27252
|
kind: "mapping",
|
|
27110
27253
|
resolve: resolveYamlSet,
|
|
27111
27254
|
construct: constructYamlSet
|
|
27112
27255
|
});
|
|
27113
|
-
|
|
27114
|
-
|
|
27115
|
-
|
|
27116
|
-
|
|
27256
|
+
return set;
|
|
27257
|
+
}
|
|
27258
|
+
var _default;
|
|
27259
|
+
var hasRequired_default;
|
|
27260
|
+
function require_default() {
|
|
27261
|
+
if (hasRequired_default)
|
|
27262
|
+
return _default;
|
|
27263
|
+
hasRequired_default = 1;
|
|
27264
|
+
_default = requireCore().extend({
|
|
27265
|
+
implicit: [
|
|
27266
|
+
requireTimestamp(),
|
|
27267
|
+
requireMerge()
|
|
27268
|
+
],
|
|
27117
27269
|
explicit: [
|
|
27118
|
-
|
|
27119
|
-
|
|
27120
|
-
|
|
27121
|
-
|
|
27270
|
+
requireBinary(),
|
|
27271
|
+
requireOmap(),
|
|
27272
|
+
requirePairs(),
|
|
27273
|
+
requireSet()
|
|
27122
27274
|
]
|
|
27123
27275
|
});
|
|
27124
|
-
|
|
27125
|
-
|
|
27126
|
-
|
|
27127
|
-
|
|
27128
|
-
|
|
27129
|
-
|
|
27130
|
-
|
|
27131
|
-
|
|
27132
|
-
|
|
27133
|
-
|
|
27134
|
-
|
|
27135
|
-
|
|
27136
|
-
|
|
27137
|
-
|
|
27138
|
-
|
|
27139
|
-
|
|
27140
|
-
|
|
27141
|
-
|
|
27142
|
-
|
|
27276
|
+
return _default;
|
|
27277
|
+
}
|
|
27278
|
+
var hasRequiredLoader;
|
|
27279
|
+
function requireLoader() {
|
|
27280
|
+
if (hasRequiredLoader)
|
|
27281
|
+
return loader;
|
|
27282
|
+
hasRequiredLoader = 1;
|
|
27283
|
+
const common2 = requireCommon();
|
|
27284
|
+
const YAMLException2 = requireException();
|
|
27285
|
+
const makeSnippet = requireSnippet();
|
|
27286
|
+
const DEFAULT_SCHEMA2 = require_default();
|
|
27287
|
+
const _hasOwnProperty = Object.prototype.hasOwnProperty;
|
|
27288
|
+
const CONTEXT_FLOW_IN = 1;
|
|
27289
|
+
const CONTEXT_FLOW_OUT = 2;
|
|
27290
|
+
const CONTEXT_BLOCK_IN = 3;
|
|
27291
|
+
const CONTEXT_BLOCK_OUT = 4;
|
|
27292
|
+
const CHOMPING_CLIP = 1;
|
|
27293
|
+
const CHOMPING_STRIP = 2;
|
|
27294
|
+
const CHOMPING_KEEP = 3;
|
|
27295
|
+
const PATTERN_NON_PRINTABLE = /[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/;
|
|
27296
|
+
const PATTERN_NON_ASCII_LINE_BREAKS = /[\x85\u2028\u2029]/;
|
|
27297
|
+
const PATTERN_FLOW_INDICATORS = /[,\[\]{}]/;
|
|
27298
|
+
const PATTERN_TAG_HANDLE = /^(?:!|!!|![0-9A-Za-z-]+!)$/;
|
|
27299
|
+
const PATTERN_TAG_URI = /^(?:!|[^,\[\]{}])(?:%[0-9a-f]{2}|[0-9a-z\-#;/?:@&=+$,_.!~*'()\[\]])*$/i;
|
|
27143
27300
|
function _class(obj) {
|
|
27144
27301
|
return Object.prototype.toString.call(obj);
|
|
27145
27302
|
}
|
|
@@ -27156,25 +27313,31 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
27156
27313
|
return c === 44 || c === 91 || c === 93 || c === 123 || c === 125;
|
|
27157
27314
|
}
|
|
27158
27315
|
function fromHexCode(c) {
|
|
27159
|
-
if (c >= 48 && c <= 57)
|
|
27316
|
+
if (c >= 48 && c <= 57) {
|
|
27160
27317
|
return c - 48;
|
|
27318
|
+
}
|
|
27161
27319
|
const lc = c | 32;
|
|
27162
|
-
if (lc >= 97 && lc <= 102)
|
|
27320
|
+
if (lc >= 97 && lc <= 102) {
|
|
27163
27321
|
return lc - 97 + 10;
|
|
27322
|
+
}
|
|
27164
27323
|
return -1;
|
|
27165
27324
|
}
|
|
27166
27325
|
function escapedHexLen(c) {
|
|
27167
|
-
if (c === 120)
|
|
27326
|
+
if (c === 120) {
|
|
27168
27327
|
return 2;
|
|
27169
|
-
|
|
27328
|
+
}
|
|
27329
|
+
if (c === 117) {
|
|
27170
27330
|
return 4;
|
|
27171
|
-
|
|
27331
|
+
}
|
|
27332
|
+
if (c === 85) {
|
|
27172
27333
|
return 8;
|
|
27334
|
+
}
|
|
27173
27335
|
return 0;
|
|
27174
27336
|
}
|
|
27175
27337
|
function fromDecimalCode(c) {
|
|
27176
|
-
if (c >= 48 && c <= 57)
|
|
27338
|
+
if (c >= 48 && c <= 57) {
|
|
27177
27339
|
return c - 48;
|
|
27340
|
+
}
|
|
27178
27341
|
return -1;
|
|
27179
27342
|
}
|
|
27180
27343
|
function simpleEscapeSequence(c) {
|
|
@@ -27221,23 +27384,25 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
27221
27384
|
}
|
|
27222
27385
|
}
|
|
27223
27386
|
function charFromCodepoint(c) {
|
|
27224
|
-
if (c <= 65535)
|
|
27387
|
+
if (c <= 65535) {
|
|
27225
27388
|
return String.fromCharCode(c);
|
|
27389
|
+
}
|
|
27226
27390
|
return String.fromCharCode((c - 65536 >> 10) + 55296, (c - 65536 & 1023) + 56320);
|
|
27227
27391
|
}
|
|
27228
27392
|
function setProperty(object, key, value) {
|
|
27229
|
-
if (key === "__proto__")
|
|
27393
|
+
if (key === "__proto__") {
|
|
27230
27394
|
Object.defineProperty(object, key, {
|
|
27231
27395
|
configurable: true,
|
|
27232
27396
|
enumerable: true,
|
|
27233
27397
|
writable: true,
|
|
27234
27398
|
value
|
|
27235
27399
|
});
|
|
27236
|
-
else
|
|
27400
|
+
} else {
|
|
27237
27401
|
object[key] = value;
|
|
27402
|
+
}
|
|
27238
27403
|
}
|
|
27239
|
-
|
|
27240
|
-
|
|
27404
|
+
const simpleEscapeCheck = new Array(256);
|
|
27405
|
+
const simpleEscapeMap = new Array(256);
|
|
27241
27406
|
for (let i = 0;i < 256; i++) {
|
|
27242
27407
|
simpleEscapeCheck[i] = simpleEscapeSequence(i) ? 1 : 0;
|
|
27243
27408
|
simpleEscapeMap[i] = simpleEscapeSequence(i);
|
|
@@ -27245,13 +27410,13 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
27245
27410
|
function State(input, options) {
|
|
27246
27411
|
this.input = input;
|
|
27247
27412
|
this.filename = options["filename"] || null;
|
|
27248
|
-
this.schema = options["schema"] ||
|
|
27413
|
+
this.schema = options["schema"] || DEFAULT_SCHEMA2;
|
|
27249
27414
|
this.onWarning = options["onWarning"] || null;
|
|
27250
27415
|
this.legacy = options["legacy"] || false;
|
|
27251
27416
|
this.json = options["json"] || false;
|
|
27252
27417
|
this.listener = options["listener"] || null;
|
|
27253
27418
|
this.maxDepth = typeof options["maxDepth"] === "number" ? options["maxDepth"] : 100;
|
|
27254
|
-
this.
|
|
27419
|
+
this.maxTotalMergeKeys = typeof options["maxTotalMergeKeys"] === "number" ? options["maxTotalMergeKeys"] : 1e4;
|
|
27255
27420
|
this.implicitTypes = this.schema.compiledImplicit;
|
|
27256
27421
|
this.typeMap = this.schema.compiledTypeMap;
|
|
27257
27422
|
this.length = input.length;
|
|
@@ -27260,6 +27425,7 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
27260
27425
|
this.lineStart = 0;
|
|
27261
27426
|
this.lineIndent = 0;
|
|
27262
27427
|
this.depth = 0;
|
|
27428
|
+
this.totalMergeKeys = 0;
|
|
27263
27429
|
this.firstTabInLine = -1;
|
|
27264
27430
|
this.documents = [];
|
|
27265
27431
|
this.anchorMapTransactions = [];
|
|
@@ -27273,29 +27439,31 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
27273
27439
|
column: state.position - state.lineStart
|
|
27274
27440
|
};
|
|
27275
27441
|
mark.snippet = makeSnippet(mark);
|
|
27276
|
-
return new
|
|
27442
|
+
return new YAMLException2(message, mark);
|
|
27277
27443
|
}
|
|
27278
27444
|
function throwError(state, message) {
|
|
27279
27445
|
throw generateError(state, message);
|
|
27280
27446
|
}
|
|
27281
27447
|
function throwWarning(state, message) {
|
|
27282
|
-
if (state.onWarning)
|
|
27448
|
+
if (state.onWarning) {
|
|
27283
27449
|
state.onWarning.call(null, generateError(state, message));
|
|
27450
|
+
}
|
|
27284
27451
|
}
|
|
27285
27452
|
function storeAnchor(state, name, value) {
|
|
27286
27453
|
const transactions = state.anchorMapTransactions;
|
|
27287
27454
|
if (transactions.length !== 0) {
|
|
27288
27455
|
const transaction = transactions[transactions.length - 1];
|
|
27289
|
-
if (!_hasOwnProperty.call(transaction, name))
|
|
27456
|
+
if (!_hasOwnProperty.call(transaction, name)) {
|
|
27290
27457
|
transaction[name] = {
|
|
27291
27458
|
existed: _hasOwnProperty.call(state.anchorMap, name),
|
|
27292
27459
|
value: state.anchorMap[name]
|
|
27293
27460
|
};
|
|
27461
|
+
}
|
|
27294
27462
|
}
|
|
27295
27463
|
state.anchorMap[name] = value;
|
|
27296
27464
|
}
|
|
27297
27465
|
function beginAnchorTransaction(state) {
|
|
27298
|
-
state.anchorMapTransactions.push(Object.create(null));
|
|
27466
|
+
state.anchorMapTransactions.push(/* @__PURE__ */ Object.create(null));
|
|
27299
27467
|
}
|
|
27300
27468
|
function commitAnchorTransaction(state) {
|
|
27301
27469
|
const transaction = state.anchorMapTransactions.pop();
|
|
@@ -27306,8 +27474,9 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
27306
27474
|
const names = Object.keys(transaction);
|
|
27307
27475
|
for (let index = 0, length = names.length;index < length; index += 1) {
|
|
27308
27476
|
const name = names[index];
|
|
27309
|
-
if (!_hasOwnProperty.call(parent, name))
|
|
27477
|
+
if (!_hasOwnProperty.call(parent, name)) {
|
|
27310
27478
|
parent[name] = transaction[name];
|
|
27479
|
+
}
|
|
27311
27480
|
}
|
|
27312
27481
|
}
|
|
27313
27482
|
function rollbackAnchorTransaction(state) {
|
|
@@ -27315,10 +27484,11 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
27315
27484
|
const names = Object.keys(transaction);
|
|
27316
27485
|
for (let index = names.length - 1;index >= 0; index -= 1) {
|
|
27317
27486
|
const entry = transaction[names[index]];
|
|
27318
|
-
if (entry.existed)
|
|
27487
|
+
if (entry.existed) {
|
|
27319
27488
|
state.anchorMap[names[index]] = entry.value;
|
|
27320
|
-
else
|
|
27489
|
+
} else {
|
|
27321
27490
|
delete state.anchorMap[names[index]];
|
|
27491
|
+
}
|
|
27322
27492
|
}
|
|
27323
27493
|
}
|
|
27324
27494
|
function snapshotState(state) {
|
|
@@ -27345,36 +27515,45 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
27345
27515
|
state.kind = snapshot.kind;
|
|
27346
27516
|
state.result = snapshot.result;
|
|
27347
27517
|
}
|
|
27348
|
-
|
|
27518
|
+
const directiveHandlers = {
|
|
27349
27519
|
YAML: function handleYamlDirective(state, name, args) {
|
|
27350
|
-
if (state.version !== null)
|
|
27520
|
+
if (state.version !== null) {
|
|
27351
27521
|
throwError(state, "duplication of %YAML directive");
|
|
27352
|
-
|
|
27522
|
+
}
|
|
27523
|
+
if (args.length !== 1) {
|
|
27353
27524
|
throwError(state, "YAML directive accepts exactly one argument");
|
|
27525
|
+
}
|
|
27354
27526
|
const match = /^([0-9]+)\.([0-9]+)$/.exec(args[0]);
|
|
27355
|
-
if (match === null)
|
|
27527
|
+
if (match === null) {
|
|
27356
27528
|
throwError(state, "ill-formed argument of the YAML directive");
|
|
27529
|
+
}
|
|
27357
27530
|
const major = parseInt(match[1], 10);
|
|
27358
27531
|
const minor = parseInt(match[2], 10);
|
|
27359
|
-
if (major !== 1)
|
|
27532
|
+
if (major !== 1) {
|
|
27360
27533
|
throwError(state, "unacceptable YAML version of the document");
|
|
27534
|
+
}
|
|
27361
27535
|
state.version = args[0];
|
|
27362
27536
|
state.checkLineBreaks = minor < 2;
|
|
27363
|
-
if (minor !== 1 && minor !== 2)
|
|
27537
|
+
if (minor !== 1 && minor !== 2) {
|
|
27364
27538
|
throwWarning(state, "unsupported YAML version of the document");
|
|
27539
|
+
}
|
|
27365
27540
|
},
|
|
27366
27541
|
TAG: function handleTagDirective(state, name, args) {
|
|
27367
27542
|
let prefix;
|
|
27368
|
-
if (args.length !== 2)
|
|
27543
|
+
if (args.length !== 2) {
|
|
27369
27544
|
throwError(state, "TAG directive accepts exactly two arguments");
|
|
27545
|
+
}
|
|
27370
27546
|
const handle = args[0];
|
|
27371
27547
|
prefix = args[1];
|
|
27372
|
-
if (!PATTERN_TAG_HANDLE.test(handle))
|
|
27548
|
+
if (!PATTERN_TAG_HANDLE.test(handle)) {
|
|
27373
27549
|
throwError(state, "ill-formed tag handle (first argument) of the TAG directive");
|
|
27374
|
-
|
|
27550
|
+
}
|
|
27551
|
+
if (_hasOwnProperty.call(state.tagMap, handle)) {
|
|
27375
27552
|
throwError(state, 'there is a previously declared suffix for "' + handle + '" tag handle');
|
|
27376
|
-
|
|
27553
|
+
}
|
|
27554
|
+
if (!PATTERN_TAG_URI.test(prefix)) {
|
|
27377
27555
|
throwError(state, "ill-formed tag prefix (second argument) of the TAG directive");
|
|
27556
|
+
}
|
|
27378
27557
|
try {
|
|
27379
27558
|
prefix = decodeURIComponent(prefix);
|
|
27380
27559
|
} catch (err) {
|
|
@@ -27386,23 +27565,29 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
27386
27565
|
function captureSegment(state, start, end, checkJson) {
|
|
27387
27566
|
if (start < end) {
|
|
27388
27567
|
const _result = state.input.slice(start, end);
|
|
27389
|
-
if (checkJson)
|
|
27568
|
+
if (checkJson) {
|
|
27390
27569
|
for (let _position = 0, _length = _result.length;_position < _length; _position += 1) {
|
|
27391
27570
|
const _character = _result.charCodeAt(_position);
|
|
27392
|
-
if (!(_character === 9 || _character >= 32 && _character <= 1114111))
|
|
27571
|
+
if (!(_character === 9 || _character >= 32 && _character <= 1114111)) {
|
|
27393
27572
|
throwError(state, "expected valid JSON character");
|
|
27573
|
+
}
|
|
27394
27574
|
}
|
|
27395
|
-
else if (PATTERN_NON_PRINTABLE.test(_result))
|
|
27575
|
+
} else if (PATTERN_NON_PRINTABLE.test(_result)) {
|
|
27396
27576
|
throwError(state, "the stream contains non-printable characters");
|
|
27577
|
+
}
|
|
27397
27578
|
state.result += _result;
|
|
27398
27579
|
}
|
|
27399
27580
|
}
|
|
27400
27581
|
function mergeMappings(state, destination, source, overridableKeys) {
|
|
27401
|
-
if (!
|
|
27582
|
+
if (!common2.isObject(source)) {
|
|
27402
27583
|
throwError(state, "cannot merge mappings; the provided source object is unacceptable");
|
|
27584
|
+
}
|
|
27403
27585
|
const sourceKeys = Object.keys(source);
|
|
27404
27586
|
for (let index = 0, quantity = sourceKeys.length;index < quantity; index += 1) {
|
|
27405
27587
|
const key = sourceKeys[index];
|
|
27588
|
+
if (state.maxTotalMergeKeys !== -1 && ++state.totalMergeKeys > state.maxTotalMergeKeys) {
|
|
27589
|
+
throwError(state, "merge keys exceeded maxTotalMergeKeys (" + state.maxTotalMergeKeys + ")");
|
|
27590
|
+
}
|
|
27406
27591
|
if (!_hasOwnProperty.call(destination, key)) {
|
|
27407
27592
|
setProperty(destination, key, source[key]);
|
|
27408
27593
|
overridableKeys[key] = true;
|
|
@@ -27413,32 +27598,30 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
27413
27598
|
if (Array.isArray(keyNode)) {
|
|
27414
27599
|
keyNode = Array.prototype.slice.call(keyNode);
|
|
27415
27600
|
for (let index = 0, quantity = keyNode.length;index < quantity; index += 1) {
|
|
27416
|
-
if (Array.isArray(keyNode[index]))
|
|
27601
|
+
if (Array.isArray(keyNode[index])) {
|
|
27417
27602
|
throwError(state, "nested arrays are not supported inside keys");
|
|
27418
|
-
|
|
27603
|
+
}
|
|
27604
|
+
if (typeof keyNode === "object" && _class(keyNode[index]) === "[object Object]") {
|
|
27419
27605
|
keyNode[index] = "[object Object]";
|
|
27606
|
+
}
|
|
27420
27607
|
}
|
|
27421
27608
|
}
|
|
27422
|
-
if (typeof keyNode === "object" && _class(keyNode) === "[object Object]")
|
|
27609
|
+
if (typeof keyNode === "object" && _class(keyNode) === "[object Object]") {
|
|
27423
27610
|
keyNode = "[object Object]";
|
|
27611
|
+
}
|
|
27424
27612
|
keyNode = String(keyNode);
|
|
27425
|
-
if (_result === null)
|
|
27613
|
+
if (_result === null) {
|
|
27426
27614
|
_result = {};
|
|
27427
|
-
|
|
27615
|
+
}
|
|
27616
|
+
if (keyTag === "tag:yaml.org,2002:merge") {
|
|
27428
27617
|
if (Array.isArray(valueNode)) {
|
|
27429
|
-
if (valueNode.length > state.maxMergeSeqLength)
|
|
27430
|
-
throwError(state, "merge sequence length exceeded maxMergeSeqLength (" + state.maxMergeSeqLength + ")");
|
|
27431
|
-
const seen = /* @__PURE__ */ new Set;
|
|
27432
27618
|
for (let index = 0, quantity = valueNode.length;index < quantity; index += 1) {
|
|
27433
|
-
|
|
27434
|
-
if (seen.has(src2))
|
|
27435
|
-
continue;
|
|
27436
|
-
seen.add(src2);
|
|
27437
|
-
mergeMappings(state, _result, src2, overridableKeys);
|
|
27619
|
+
mergeMappings(state, _result, valueNode[index], overridableKeys);
|
|
27438
27620
|
}
|
|
27439
|
-
} else
|
|
27621
|
+
} else {
|
|
27440
27622
|
mergeMappings(state, _result, valueNode, overridableKeys);
|
|
27441
|
-
|
|
27623
|
+
}
|
|
27624
|
+
} else {
|
|
27442
27625
|
if (!state.json && !_hasOwnProperty.call(overridableKeys, keyNode) && _hasOwnProperty.call(_result, keyNode)) {
|
|
27443
27626
|
state.line = startLine || state.line;
|
|
27444
27627
|
state.lineStart = startLineStart || state.lineStart;
|
|
@@ -27452,14 +27635,16 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
27452
27635
|
}
|
|
27453
27636
|
function readLineBreak(state) {
|
|
27454
27637
|
const ch = state.input.charCodeAt(state.position);
|
|
27455
|
-
if (ch === 10)
|
|
27638
|
+
if (ch === 10) {
|
|
27456
27639
|
state.position++;
|
|
27457
|
-
else if (ch === 13) {
|
|
27640
|
+
} else if (ch === 13) {
|
|
27458
27641
|
state.position++;
|
|
27459
|
-
if (state.input.charCodeAt(state.position) === 10)
|
|
27642
|
+
if (state.input.charCodeAt(state.position) === 10) {
|
|
27460
27643
|
state.position++;
|
|
27461
|
-
|
|
27644
|
+
}
|
|
27645
|
+
} else {
|
|
27462
27646
|
throwError(state, "a line break is expected");
|
|
27647
|
+
}
|
|
27463
27648
|
state.line += 1;
|
|
27464
27649
|
state.lineStart = state.position;
|
|
27465
27650
|
state.firstTabInLine = -1;
|
|
@@ -27469,14 +27654,16 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
27469
27654
|
let ch = state.input.charCodeAt(state.position);
|
|
27470
27655
|
while (ch !== 0) {
|
|
27471
27656
|
while (isWhiteSpace(ch)) {
|
|
27472
|
-
if (ch === 9 && state.firstTabInLine === -1)
|
|
27657
|
+
if (ch === 9 && state.firstTabInLine === -1) {
|
|
27473
27658
|
state.firstTabInLine = state.position;
|
|
27659
|
+
}
|
|
27474
27660
|
ch = state.input.charCodeAt(++state.position);
|
|
27475
27661
|
}
|
|
27476
|
-
if (allowComments && ch === 35)
|
|
27477
|
-
do
|
|
27662
|
+
if (allowComments && ch === 35) {
|
|
27663
|
+
do {
|
|
27478
27664
|
ch = state.input.charCodeAt(++state.position);
|
|
27479
|
-
while (ch !== 10 && ch !== 13 && ch !== 0);
|
|
27665
|
+
} while (ch !== 10 && ch !== 13 && ch !== 0);
|
|
27666
|
+
}
|
|
27480
27667
|
if (isEol(ch)) {
|
|
27481
27668
|
readLineBreak(state);
|
|
27482
27669
|
ch = state.input.charCodeAt(state.position);
|
|
@@ -27486,11 +27673,13 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
27486
27673
|
state.lineIndent++;
|
|
27487
27674
|
ch = state.input.charCodeAt(++state.position);
|
|
27488
27675
|
}
|
|
27489
|
-
} else
|
|
27676
|
+
} else {
|
|
27490
27677
|
break;
|
|
27678
|
+
}
|
|
27491
27679
|
}
|
|
27492
|
-
if (checkIndent !== -1 && lineBreaks !== 0 && state.lineIndent < checkIndent)
|
|
27680
|
+
if (checkIndent !== -1 && lineBreaks !== 0 && state.lineIndent < checkIndent) {
|
|
27493
27681
|
throwWarning(state, "deficient indentation");
|
|
27682
|
+
}
|
|
27494
27683
|
return lineBreaks;
|
|
27495
27684
|
}
|
|
27496
27685
|
function testDocumentSeparator(state) {
|
|
@@ -27499,17 +27688,19 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
27499
27688
|
if ((ch === 45 || ch === 46) && ch === state.input.charCodeAt(_position + 1) && ch === state.input.charCodeAt(_position + 2)) {
|
|
27500
27689
|
_position += 3;
|
|
27501
27690
|
ch = state.input.charCodeAt(_position);
|
|
27502
|
-
if (ch === 0 || isWsOrEol(ch))
|
|
27691
|
+
if (ch === 0 || isWsOrEol(ch)) {
|
|
27503
27692
|
return true;
|
|
27693
|
+
}
|
|
27504
27694
|
}
|
|
27505
27695
|
return false;
|
|
27506
27696
|
}
|
|
27507
27697
|
function writeFoldedLines(state, count) {
|
|
27508
|
-
if (count === 1)
|
|
27698
|
+
if (count === 1) {
|
|
27509
27699
|
state.result += " ";
|
|
27510
|
-
else if (count > 1)
|
|
27511
|
-
state.result +=
|
|
27700
|
+
} else if (count > 1) {
|
|
27701
|
+
state.result += common2.repeat(`
|
|
27512
27702
|
`, count - 1);
|
|
27703
|
+
}
|
|
27513
27704
|
}
|
|
27514
27705
|
function readPlainScalar(state, nodeIndent, withinFlowCollection) {
|
|
27515
27706
|
let captureStart;
|
|
@@ -27521,12 +27712,14 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
27521
27712
|
const _kind = state.kind;
|
|
27522
27713
|
const _result = state.result;
|
|
27523
27714
|
let ch = state.input.charCodeAt(state.position);
|
|
27524
|
-
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)
|
|
27715
|
+
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) {
|
|
27525
27716
|
return false;
|
|
27717
|
+
}
|
|
27526
27718
|
if (ch === 63 || ch === 45) {
|
|
27527
27719
|
const following = state.input.charCodeAt(state.position + 1);
|
|
27528
|
-
if (isWsOrEol(following) || withinFlowCollection && isFlowIndicator(following))
|
|
27720
|
+
if (isWsOrEol(following) || withinFlowCollection && isFlowIndicator(following)) {
|
|
27529
27721
|
return false;
|
|
27722
|
+
}
|
|
27530
27723
|
}
|
|
27531
27724
|
state.kind = "scalar";
|
|
27532
27725
|
state.result = "";
|
|
@@ -27535,14 +27728,17 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
27535
27728
|
while (ch !== 0) {
|
|
27536
27729
|
if (ch === 58) {
|
|
27537
27730
|
const following = state.input.charCodeAt(state.position + 1);
|
|
27538
|
-
if (isWsOrEol(following) || withinFlowCollection && isFlowIndicator(following))
|
|
27731
|
+
if (isWsOrEol(following) || withinFlowCollection && isFlowIndicator(following)) {
|
|
27539
27732
|
break;
|
|
27733
|
+
}
|
|
27540
27734
|
} else if (ch === 35) {
|
|
27541
|
-
|
|
27735
|
+
const preceding = state.input.charCodeAt(state.position - 1);
|
|
27736
|
+
if (isWsOrEol(preceding)) {
|
|
27542
27737
|
break;
|
|
27543
|
-
|
|
27738
|
+
}
|
|
27739
|
+
} else if (state.position === state.lineStart && testDocumentSeparator(state) || withinFlowCollection && isFlowIndicator(ch)) {
|
|
27544
27740
|
break;
|
|
27545
|
-
else if (isEol(ch)) {
|
|
27741
|
+
} else if (isEol(ch)) {
|
|
27546
27742
|
_line = state.line;
|
|
27547
27743
|
_lineStart = state.lineStart;
|
|
27548
27744
|
_lineIndent = state.lineIndent;
|
|
@@ -27565,13 +27761,15 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
27565
27761
|
captureStart = captureEnd = state.position;
|
|
27566
27762
|
hasPendingContent = false;
|
|
27567
27763
|
}
|
|
27568
|
-
if (!isWhiteSpace(ch))
|
|
27764
|
+
if (!isWhiteSpace(ch)) {
|
|
27569
27765
|
captureEnd = state.position + 1;
|
|
27766
|
+
}
|
|
27570
27767
|
ch = state.input.charCodeAt(++state.position);
|
|
27571
27768
|
}
|
|
27572
27769
|
captureSegment(state, captureStart, captureEnd, false);
|
|
27573
|
-
if (state.result)
|
|
27770
|
+
if (state.result) {
|
|
27574
27771
|
return true;
|
|
27772
|
+
}
|
|
27575
27773
|
state.kind = _kind;
|
|
27576
27774
|
state.result = _result;
|
|
27577
27775
|
return false;
|
|
@@ -27580,13 +27778,14 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
27580
27778
|
let captureStart;
|
|
27581
27779
|
let captureEnd;
|
|
27582
27780
|
let ch = state.input.charCodeAt(state.position);
|
|
27583
|
-
if (ch !== 39)
|
|
27781
|
+
if (ch !== 39) {
|
|
27584
27782
|
return false;
|
|
27783
|
+
}
|
|
27585
27784
|
state.kind = "scalar";
|
|
27586
27785
|
state.result = "";
|
|
27587
27786
|
state.position++;
|
|
27588
27787
|
captureStart = captureEnd = state.position;
|
|
27589
|
-
while ((ch = state.input.charCodeAt(state.position)) !== 0)
|
|
27788
|
+
while ((ch = state.input.charCodeAt(state.position)) !== 0) {
|
|
27590
27789
|
if (ch === 39) {
|
|
27591
27790
|
captureSegment(state, captureStart, state.position, true);
|
|
27592
27791
|
ch = state.input.charCodeAt(++state.position);
|
|
@@ -27594,19 +27793,22 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
27594
27793
|
captureStart = state.position;
|
|
27595
27794
|
state.position++;
|
|
27596
27795
|
captureEnd = state.position;
|
|
27597
|
-
} else
|
|
27796
|
+
} else {
|
|
27598
27797
|
return true;
|
|
27798
|
+
}
|
|
27599
27799
|
} else if (isEol(ch)) {
|
|
27600
27800
|
captureSegment(state, captureStart, captureEnd, true);
|
|
27601
27801
|
writeFoldedLines(state, skipSeparationSpace(state, false, nodeIndent));
|
|
27602
27802
|
captureStart = captureEnd = state.position;
|
|
27603
|
-
} else if (state.position === state.lineStart && testDocumentSeparator(state))
|
|
27803
|
+
} else if (state.position === state.lineStart && testDocumentSeparator(state)) {
|
|
27604
27804
|
throwError(state, "unexpected end of the document within a single quoted scalar");
|
|
27605
|
-
else {
|
|
27805
|
+
} else {
|
|
27606
27806
|
state.position++;
|
|
27607
|
-
if (!isWhiteSpace(ch))
|
|
27807
|
+
if (!isWhiteSpace(ch)) {
|
|
27608
27808
|
captureEnd = state.position;
|
|
27809
|
+
}
|
|
27609
27810
|
}
|
|
27811
|
+
}
|
|
27610
27812
|
throwError(state, "unexpected end of the stream within a single quoted scalar");
|
|
27611
27813
|
}
|
|
27612
27814
|
function readDoubleQuotedScalar(state, nodeIndent) {
|
|
@@ -27614,13 +27816,14 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
27614
27816
|
let captureEnd;
|
|
27615
27817
|
let tmp;
|
|
27616
27818
|
let ch = state.input.charCodeAt(state.position);
|
|
27617
|
-
if (ch !== 34)
|
|
27819
|
+
if (ch !== 34) {
|
|
27618
27820
|
return false;
|
|
27821
|
+
}
|
|
27619
27822
|
state.kind = "scalar";
|
|
27620
27823
|
state.result = "";
|
|
27621
27824
|
state.position++;
|
|
27622
27825
|
captureStart = captureEnd = state.position;
|
|
27623
|
-
while ((ch = state.input.charCodeAt(state.position)) !== 0)
|
|
27826
|
+
while ((ch = state.input.charCodeAt(state.position)) !== 0) {
|
|
27624
27827
|
if (ch === 34) {
|
|
27625
27828
|
captureSegment(state, captureStart, state.position, true);
|
|
27626
27829
|
state.position++;
|
|
@@ -27628,9 +27831,9 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
27628
27831
|
} else if (ch === 92) {
|
|
27629
27832
|
captureSegment(state, captureStart, state.position, true);
|
|
27630
27833
|
ch = state.input.charCodeAt(++state.position);
|
|
27631
|
-
if (isEol(ch))
|
|
27834
|
+
if (isEol(ch)) {
|
|
27632
27835
|
skipSeparationSpace(state, false, nodeIndent);
|
|
27633
|
-
else if (ch < 256 && simpleEscapeCheck[ch]) {
|
|
27836
|
+
} else if (ch < 256 && simpleEscapeCheck[ch]) {
|
|
27634
27837
|
state.result += simpleEscapeMap[ch];
|
|
27635
27838
|
state.position++;
|
|
27636
27839
|
} else if ((tmp = escapedHexLen(ch)) > 0) {
|
|
@@ -27638,27 +27841,31 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
27638
27841
|
let hexResult = 0;
|
|
27639
27842
|
for (;hexLength > 0; hexLength--) {
|
|
27640
27843
|
ch = state.input.charCodeAt(++state.position);
|
|
27641
|
-
if ((tmp = fromHexCode(ch)) >= 0)
|
|
27844
|
+
if ((tmp = fromHexCode(ch)) >= 0) {
|
|
27642
27845
|
hexResult = (hexResult << 4) + tmp;
|
|
27643
|
-
else
|
|
27846
|
+
} else {
|
|
27644
27847
|
throwError(state, "expected hexadecimal character");
|
|
27848
|
+
}
|
|
27645
27849
|
}
|
|
27646
27850
|
state.result += charFromCodepoint(hexResult);
|
|
27647
27851
|
state.position++;
|
|
27648
|
-
} else
|
|
27852
|
+
} else {
|
|
27649
27853
|
throwError(state, "unknown escape sequence");
|
|
27854
|
+
}
|
|
27650
27855
|
captureStart = captureEnd = state.position;
|
|
27651
27856
|
} else if (isEol(ch)) {
|
|
27652
27857
|
captureSegment(state, captureStart, captureEnd, true);
|
|
27653
27858
|
writeFoldedLines(state, skipSeparationSpace(state, false, nodeIndent));
|
|
27654
27859
|
captureStart = captureEnd = state.position;
|
|
27655
|
-
} else if (state.position === state.lineStart && testDocumentSeparator(state))
|
|
27860
|
+
} else if (state.position === state.lineStart && testDocumentSeparator(state)) {
|
|
27656
27861
|
throwError(state, "unexpected end of the document within a double quoted scalar");
|
|
27657
|
-
else {
|
|
27862
|
+
} else {
|
|
27658
27863
|
state.position++;
|
|
27659
|
-
if (!isWhiteSpace(ch))
|
|
27864
|
+
if (!isWhiteSpace(ch)) {
|
|
27660
27865
|
captureEnd = state.position;
|
|
27866
|
+
}
|
|
27661
27867
|
}
|
|
27868
|
+
}
|
|
27662
27869
|
throwError(state, "unexpected end of the stream within a double quoted scalar");
|
|
27663
27870
|
}
|
|
27664
27871
|
function readFlowCollection(state, nodeIndent) {
|
|
@@ -27673,7 +27880,7 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
27673
27880
|
let isPair;
|
|
27674
27881
|
let isExplicitPair;
|
|
27675
27882
|
let isMapping;
|
|
27676
|
-
const overridableKeys = Object.create(null);
|
|
27883
|
+
const overridableKeys = /* @__PURE__ */ Object.create(null);
|
|
27677
27884
|
let keyNode;
|
|
27678
27885
|
let keyTag;
|
|
27679
27886
|
let valueNode;
|
|
@@ -27686,10 +27893,12 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
27686
27893
|
terminator = 125;
|
|
27687
27894
|
isMapping = true;
|
|
27688
27895
|
_result = {};
|
|
27689
|
-
} else
|
|
27896
|
+
} else {
|
|
27690
27897
|
return false;
|
|
27691
|
-
|
|
27898
|
+
}
|
|
27899
|
+
if (state.anchor !== null) {
|
|
27692
27900
|
storeAnchor(state, state.anchor, _result);
|
|
27901
|
+
}
|
|
27693
27902
|
ch = state.input.charCodeAt(++state.position);
|
|
27694
27903
|
while (ch !== 0) {
|
|
27695
27904
|
skipSeparationSpace(state, true, nodeIndent);
|
|
@@ -27701,14 +27910,16 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
27701
27910
|
state.kind = isMapping ? "mapping" : "sequence";
|
|
27702
27911
|
state.result = _result;
|
|
27703
27912
|
return true;
|
|
27704
|
-
} else if (!readNext)
|
|
27913
|
+
} else if (!readNext) {
|
|
27705
27914
|
throwError(state, "missed comma between flow collection entries");
|
|
27706
|
-
else if (ch === 44)
|
|
27915
|
+
} else if (ch === 44) {
|
|
27707
27916
|
throwError(state, "expected the node content, but found ','");
|
|
27917
|
+
}
|
|
27708
27918
|
keyTag = keyNode = valueNode = null;
|
|
27709
27919
|
isPair = isExplicitPair = false;
|
|
27710
27920
|
if (ch === 63) {
|
|
27711
|
-
|
|
27921
|
+
const following = state.input.charCodeAt(state.position + 1);
|
|
27922
|
+
if (isWsOrEol(following)) {
|
|
27712
27923
|
isPair = isExplicitPair = true;
|
|
27713
27924
|
state.position++;
|
|
27714
27925
|
skipSeparationSpace(state, true, nodeIndent);
|
|
@@ -27729,19 +27940,21 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
27729
27940
|
composeNode(state, nodeIndent, CONTEXT_FLOW_IN, false, true);
|
|
27730
27941
|
valueNode = state.result;
|
|
27731
27942
|
}
|
|
27732
|
-
if (isMapping)
|
|
27943
|
+
if (isMapping) {
|
|
27733
27944
|
storeMappingPair(state, _result, overridableKeys, keyTag, keyNode, valueNode, _line, _lineStart, _pos);
|
|
27734
|
-
else if (isPair)
|
|
27945
|
+
} else if (isPair) {
|
|
27735
27946
|
_result.push(storeMappingPair(state, null, overridableKeys, keyTag, keyNode, valueNode, _line, _lineStart, _pos));
|
|
27736
|
-
else
|
|
27947
|
+
} else {
|
|
27737
27948
|
_result.push(keyNode);
|
|
27949
|
+
}
|
|
27738
27950
|
skipSeparationSpace(state, true, nodeIndent);
|
|
27739
27951
|
ch = state.input.charCodeAt(state.position);
|
|
27740
27952
|
if (ch === 44) {
|
|
27741
27953
|
readNext = true;
|
|
27742
27954
|
ch = state.input.charCodeAt(++state.position);
|
|
27743
|
-
} else
|
|
27955
|
+
} else {
|
|
27744
27956
|
readNext = false;
|
|
27957
|
+
}
|
|
27745
27958
|
}
|
|
27746
27959
|
throwError(state, "unexpected end of the stream within a flow collection");
|
|
27747
27960
|
}
|
|
@@ -27755,40 +27968,45 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
27755
27968
|
let atMoreIndented = false;
|
|
27756
27969
|
let tmp;
|
|
27757
27970
|
let ch = state.input.charCodeAt(state.position);
|
|
27758
|
-
if (ch === 124)
|
|
27971
|
+
if (ch === 124) {
|
|
27759
27972
|
folding = false;
|
|
27760
|
-
else if (ch === 62)
|
|
27973
|
+
} else if (ch === 62) {
|
|
27761
27974
|
folding = true;
|
|
27762
|
-
else
|
|
27975
|
+
} else {
|
|
27763
27976
|
return false;
|
|
27977
|
+
}
|
|
27764
27978
|
state.kind = "scalar";
|
|
27765
27979
|
state.result = "";
|
|
27766
27980
|
while (ch !== 0) {
|
|
27767
27981
|
ch = state.input.charCodeAt(++state.position);
|
|
27768
|
-
if (ch === 43 || ch === 45)
|
|
27769
|
-
if (CHOMPING_CLIP === chomping)
|
|
27982
|
+
if (ch === 43 || ch === 45) {
|
|
27983
|
+
if (CHOMPING_CLIP === chomping) {
|
|
27770
27984
|
chomping = ch === 43 ? CHOMPING_KEEP : CHOMPING_STRIP;
|
|
27771
|
-
else
|
|
27985
|
+
} else {
|
|
27772
27986
|
throwError(state, "repeat of a chomping mode identifier");
|
|
27773
|
-
|
|
27774
|
-
|
|
27987
|
+
}
|
|
27988
|
+
} else if ((tmp = fromDecimalCode(ch)) >= 0) {
|
|
27989
|
+
if (tmp === 0) {
|
|
27775
27990
|
throwError(state, "bad explicit indentation width of a block scalar; it cannot be less than one");
|
|
27776
|
-
else if (!detectedIndent) {
|
|
27991
|
+
} else if (!detectedIndent) {
|
|
27777
27992
|
textIndent = nodeIndent + tmp - 1;
|
|
27778
27993
|
detectedIndent = true;
|
|
27779
|
-
} else
|
|
27994
|
+
} else {
|
|
27780
27995
|
throwError(state, "repeat of an indentation width identifier");
|
|
27781
|
-
|
|
27996
|
+
}
|
|
27997
|
+
} else {
|
|
27782
27998
|
break;
|
|
27999
|
+
}
|
|
27783
28000
|
}
|
|
27784
28001
|
if (isWhiteSpace(ch)) {
|
|
27785
|
-
do
|
|
28002
|
+
do {
|
|
27786
28003
|
ch = state.input.charCodeAt(++state.position);
|
|
27787
|
-
while (isWhiteSpace(ch));
|
|
27788
|
-
if (ch === 35)
|
|
27789
|
-
do
|
|
28004
|
+
} while (isWhiteSpace(ch));
|
|
28005
|
+
if (ch === 35) {
|
|
28006
|
+
do {
|
|
27790
28007
|
ch = state.input.charCodeAt(++state.position);
|
|
27791
|
-
while (!isEol(ch) && ch !== 0);
|
|
28008
|
+
} while (!isEol(ch) && ch !== 0);
|
|
28009
|
+
}
|
|
27792
28010
|
}
|
|
27793
28011
|
while (ch !== 0) {
|
|
27794
28012
|
readLineBreak(state);
|
|
@@ -27798,49 +28016,56 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
27798
28016
|
state.lineIndent++;
|
|
27799
28017
|
ch = state.input.charCodeAt(++state.position);
|
|
27800
28018
|
}
|
|
27801
|
-
if (!detectedIndent && state.lineIndent > textIndent)
|
|
28019
|
+
if (!detectedIndent && state.lineIndent > textIndent) {
|
|
27802
28020
|
textIndent = state.lineIndent;
|
|
28021
|
+
}
|
|
27803
28022
|
if (isEol(ch)) {
|
|
27804
28023
|
emptyLines++;
|
|
27805
28024
|
continue;
|
|
27806
28025
|
}
|
|
27807
|
-
if (!detectedIndent && textIndent === 0)
|
|
28026
|
+
if (!detectedIndent && textIndent === 0) {
|
|
27808
28027
|
throwError(state, "missing indentation for block scalar");
|
|
28028
|
+
}
|
|
27809
28029
|
if (state.lineIndent < textIndent) {
|
|
27810
|
-
if (chomping === CHOMPING_KEEP)
|
|
27811
|
-
state.result +=
|
|
28030
|
+
if (chomping === CHOMPING_KEEP) {
|
|
28031
|
+
state.result += common2.repeat(`
|
|
27812
28032
|
`, didReadContent ? 1 + emptyLines : emptyLines);
|
|
27813
|
-
else if (chomping === CHOMPING_CLIP) {
|
|
27814
|
-
if (didReadContent)
|
|
28033
|
+
} else if (chomping === CHOMPING_CLIP) {
|
|
28034
|
+
if (didReadContent) {
|
|
27815
28035
|
state.result += `
|
|
27816
28036
|
`;
|
|
28037
|
+
}
|
|
27817
28038
|
}
|
|
27818
28039
|
break;
|
|
27819
28040
|
}
|
|
27820
|
-
if (folding)
|
|
28041
|
+
if (folding) {
|
|
27821
28042
|
if (isWhiteSpace(ch)) {
|
|
27822
28043
|
atMoreIndented = true;
|
|
27823
|
-
state.result +=
|
|
28044
|
+
state.result += common2.repeat(`
|
|
27824
28045
|
`, didReadContent ? 1 + emptyLines : emptyLines);
|
|
27825
28046
|
} else if (atMoreIndented) {
|
|
27826
28047
|
atMoreIndented = false;
|
|
27827
|
-
state.result +=
|
|
28048
|
+
state.result += common2.repeat(`
|
|
27828
28049
|
`, emptyLines + 1);
|
|
27829
28050
|
} else if (emptyLines === 0) {
|
|
27830
|
-
if (didReadContent)
|
|
28051
|
+
if (didReadContent) {
|
|
27831
28052
|
state.result += " ";
|
|
27832
|
-
|
|
27833
|
-
|
|
28053
|
+
}
|
|
28054
|
+
} else {
|
|
28055
|
+
state.result += common2.repeat(`
|
|
27834
28056
|
`, emptyLines);
|
|
27835
|
-
|
|
27836
|
-
|
|
28057
|
+
}
|
|
28058
|
+
} else {
|
|
28059
|
+
state.result += common2.repeat(`
|
|
27837
28060
|
`, didReadContent ? 1 + emptyLines : emptyLines);
|
|
28061
|
+
}
|
|
27838
28062
|
didReadContent = true;
|
|
27839
28063
|
detectedIndent = true;
|
|
27840
28064
|
emptyLines = 0;
|
|
27841
28065
|
const captureStart = state.position;
|
|
27842
|
-
while (!isEol(ch) && ch !== 0)
|
|
28066
|
+
while (!isEol(ch) && ch !== 0) {
|
|
27843
28067
|
ch = state.input.charCodeAt(++state.position);
|
|
28068
|
+
}
|
|
27844
28069
|
captureSegment(state, captureStart, state.position, false);
|
|
27845
28070
|
}
|
|
27846
28071
|
return true;
|
|
@@ -27852,18 +28077,22 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
27852
28077
|
let detected = false;
|
|
27853
28078
|
if (state.firstTabInLine !== -1)
|
|
27854
28079
|
return false;
|
|
27855
|
-
if (state.anchor !== null)
|
|
28080
|
+
if (state.anchor !== null) {
|
|
27856
28081
|
storeAnchor(state, state.anchor, _result);
|
|
28082
|
+
}
|
|
27857
28083
|
let ch = state.input.charCodeAt(state.position);
|
|
27858
28084
|
while (ch !== 0) {
|
|
27859
28085
|
if (state.firstTabInLine !== -1) {
|
|
27860
28086
|
state.position = state.firstTabInLine;
|
|
27861
28087
|
throwError(state, "tab characters must not be used in indentation");
|
|
27862
28088
|
}
|
|
27863
|
-
if (ch !== 45)
|
|
28089
|
+
if (ch !== 45) {
|
|
27864
28090
|
break;
|
|
27865
|
-
|
|
28091
|
+
}
|
|
28092
|
+
const following = state.input.charCodeAt(state.position + 1);
|
|
28093
|
+
if (!isWsOrEol(following)) {
|
|
27866
28094
|
break;
|
|
28095
|
+
}
|
|
27867
28096
|
detected = true;
|
|
27868
28097
|
state.position++;
|
|
27869
28098
|
if (skipSeparationSpace(state, true, -1)) {
|
|
@@ -27878,10 +28107,11 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
27878
28107
|
_result.push(state.result);
|
|
27879
28108
|
skipSeparationSpace(state, true, -1);
|
|
27880
28109
|
ch = state.input.charCodeAt(state.position);
|
|
27881
|
-
if ((state.line === _line || state.lineIndent > nodeIndent) && ch !== 0)
|
|
28110
|
+
if ((state.line === _line || state.lineIndent > nodeIndent) && ch !== 0) {
|
|
27882
28111
|
throwError(state, "bad indentation of a sequence entry");
|
|
27883
|
-
else if (state.lineIndent < nodeIndent)
|
|
28112
|
+
} else if (state.lineIndent < nodeIndent) {
|
|
27884
28113
|
break;
|
|
28114
|
+
}
|
|
27885
28115
|
}
|
|
27886
28116
|
if (detected) {
|
|
27887
28117
|
state.tag = _tag;
|
|
@@ -27900,7 +28130,7 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
27900
28130
|
const _tag = state.tag;
|
|
27901
28131
|
const _anchor = state.anchor;
|
|
27902
28132
|
const _result = {};
|
|
27903
|
-
const overridableKeys = Object.create(null);
|
|
28133
|
+
const overridableKeys = /* @__PURE__ */ Object.create(null);
|
|
27904
28134
|
let keyTag = null;
|
|
27905
28135
|
let keyNode = null;
|
|
27906
28136
|
let valueNode = null;
|
|
@@ -27908,8 +28138,9 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
27908
28138
|
let detected = false;
|
|
27909
28139
|
if (state.firstTabInLine !== -1)
|
|
27910
28140
|
return false;
|
|
27911
|
-
if (state.anchor !== null)
|
|
28141
|
+
if (state.anchor !== null) {
|
|
27912
28142
|
storeAnchor(state, state.anchor, _result);
|
|
28143
|
+
}
|
|
27913
28144
|
let ch = state.input.charCodeAt(state.position);
|
|
27914
28145
|
while (ch !== 0) {
|
|
27915
28146
|
if (!atExplicitKey && state.firstTabInLine !== -1) {
|
|
@@ -27930,24 +28161,28 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
27930
28161
|
} else if (atExplicitKey) {
|
|
27931
28162
|
atExplicitKey = false;
|
|
27932
28163
|
allowCompact = true;
|
|
27933
|
-
} else
|
|
28164
|
+
} else {
|
|
27934
28165
|
throwError(state, "incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line");
|
|
28166
|
+
}
|
|
27935
28167
|
state.position += 1;
|
|
27936
28168
|
ch = following;
|
|
27937
28169
|
} else {
|
|
27938
28170
|
_keyLine = state.line;
|
|
27939
28171
|
_keyLineStart = state.lineStart;
|
|
27940
28172
|
_keyPos = state.position;
|
|
27941
|
-
if (!composeNode(state, flowIndent, CONTEXT_FLOW_OUT, false, true))
|
|
28173
|
+
if (!composeNode(state, flowIndent, CONTEXT_FLOW_OUT, false, true)) {
|
|
27942
28174
|
break;
|
|
28175
|
+
}
|
|
27943
28176
|
if (state.line === _line) {
|
|
27944
28177
|
ch = state.input.charCodeAt(state.position);
|
|
27945
|
-
while (isWhiteSpace(ch))
|
|
28178
|
+
while (isWhiteSpace(ch)) {
|
|
27946
28179
|
ch = state.input.charCodeAt(++state.position);
|
|
28180
|
+
}
|
|
27947
28181
|
if (ch === 58) {
|
|
27948
28182
|
ch = state.input.charCodeAt(++state.position);
|
|
27949
|
-
if (!isWsOrEol(ch))
|
|
28183
|
+
if (!isWsOrEol(ch)) {
|
|
27950
28184
|
throwError(state, "a whitespace character is expected after the key-value separator within a block mapping");
|
|
28185
|
+
}
|
|
27951
28186
|
if (atExplicitKey) {
|
|
27952
28187
|
storeMappingPair(state, _result, overridableKeys, keyTag, keyNode, null, _keyLine, _keyLineStart, _keyPos);
|
|
27953
28188
|
keyTag = keyNode = valueNode = null;
|
|
@@ -27957,16 +28192,16 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
27957
28192
|
allowCompact = false;
|
|
27958
28193
|
keyTag = state.tag;
|
|
27959
28194
|
keyNode = state.result;
|
|
27960
|
-
} else if (detected)
|
|
28195
|
+
} else if (detected) {
|
|
27961
28196
|
throwError(state, "can not read an implicit mapping pair; a colon is missed");
|
|
27962
|
-
else {
|
|
28197
|
+
} else {
|
|
27963
28198
|
state.tag = _tag;
|
|
27964
28199
|
state.anchor = _anchor;
|
|
27965
28200
|
return true;
|
|
27966
28201
|
}
|
|
27967
|
-
} else if (detected)
|
|
28202
|
+
} else if (detected) {
|
|
27968
28203
|
throwError(state, "can not read a block mapping entry; a multiline key may not be an implicit key");
|
|
27969
|
-
else {
|
|
28204
|
+
} else {
|
|
27970
28205
|
state.tag = _tag;
|
|
27971
28206
|
state.anchor = _anchor;
|
|
27972
28207
|
return true;
|
|
@@ -27978,11 +28213,13 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
27978
28213
|
_keyLineStart = state.lineStart;
|
|
27979
28214
|
_keyPos = state.position;
|
|
27980
28215
|
}
|
|
27981
|
-
if (composeNode(state, nodeIndent, CONTEXT_BLOCK_OUT, true, allowCompact))
|
|
27982
|
-
if (atExplicitKey)
|
|
28216
|
+
if (composeNode(state, nodeIndent, CONTEXT_BLOCK_OUT, true, allowCompact)) {
|
|
28217
|
+
if (atExplicitKey) {
|
|
27983
28218
|
keyNode = state.result;
|
|
27984
|
-
else
|
|
28219
|
+
} else {
|
|
27985
28220
|
valueNode = state.result;
|
|
28221
|
+
}
|
|
28222
|
+
}
|
|
27986
28223
|
if (!atExplicitKey) {
|
|
27987
28224
|
storeMappingPair(state, _result, overridableKeys, keyTag, keyNode, valueNode, _keyLine, _keyLineStart, _keyPos);
|
|
27988
28225
|
keyTag = keyNode = valueNode = null;
|
|
@@ -27990,13 +28227,15 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
27990
28227
|
skipSeparationSpace(state, true, -1);
|
|
27991
28228
|
ch = state.input.charCodeAt(state.position);
|
|
27992
28229
|
}
|
|
27993
|
-
if ((state.line === _line || state.lineIndent > nodeIndent) && ch !== 0)
|
|
28230
|
+
if ((state.line === _line || state.lineIndent > nodeIndent) && ch !== 0) {
|
|
27994
28231
|
throwError(state, "bad indentation of a mapping entry");
|
|
27995
|
-
else if (state.lineIndent < nodeIndent)
|
|
28232
|
+
} else if (state.lineIndent < nodeIndent) {
|
|
27996
28233
|
break;
|
|
28234
|
+
}
|
|
27997
28235
|
}
|
|
27998
|
-
if (atExplicitKey)
|
|
28236
|
+
if (atExplicitKey) {
|
|
27999
28237
|
storeMappingPair(state, _result, overridableKeys, keyTag, keyNode, null, _keyLine, _keyLineStart, _keyPos);
|
|
28238
|
+
}
|
|
28000
28239
|
if (detected) {
|
|
28001
28240
|
state.tag = _tag;
|
|
28002
28241
|
state.anchor = _anchor;
|
|
@@ -28013,8 +28252,9 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
28013
28252
|
let ch = state.input.charCodeAt(state.position);
|
|
28014
28253
|
if (ch !== 33)
|
|
28015
28254
|
return false;
|
|
28016
|
-
if (state.tag !== null)
|
|
28255
|
+
if (state.tag !== null) {
|
|
28017
28256
|
throwError(state, "duplication of a tag property");
|
|
28257
|
+
}
|
|
28018
28258
|
ch = state.input.charCodeAt(++state.position);
|
|
28019
28259
|
if (ch === 60) {
|
|
28020
28260
|
isVerbatim = true;
|
|
@@ -28023,66 +28263,77 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
28023
28263
|
isNamed = true;
|
|
28024
28264
|
tagHandle = "!!";
|
|
28025
28265
|
ch = state.input.charCodeAt(++state.position);
|
|
28026
|
-
} else
|
|
28266
|
+
} else {
|
|
28027
28267
|
tagHandle = "!";
|
|
28268
|
+
}
|
|
28028
28269
|
let _position = state.position;
|
|
28029
28270
|
if (isVerbatim) {
|
|
28030
|
-
do
|
|
28271
|
+
do {
|
|
28031
28272
|
ch = state.input.charCodeAt(++state.position);
|
|
28032
|
-
while (ch !== 0 && ch !== 62);
|
|
28273
|
+
} while (ch !== 0 && ch !== 62);
|
|
28033
28274
|
if (state.position < state.length) {
|
|
28034
28275
|
tagName = state.input.slice(_position, state.position);
|
|
28035
28276
|
ch = state.input.charCodeAt(++state.position);
|
|
28036
|
-
} else
|
|
28277
|
+
} else {
|
|
28037
28278
|
throwError(state, "unexpected end of the stream within a verbatim tag");
|
|
28279
|
+
}
|
|
28038
28280
|
} else {
|
|
28039
28281
|
while (ch !== 0 && !isWsOrEol(ch)) {
|
|
28040
|
-
if (ch === 33)
|
|
28282
|
+
if (ch === 33) {
|
|
28041
28283
|
if (!isNamed) {
|
|
28042
28284
|
tagHandle = state.input.slice(_position - 1, state.position + 1);
|
|
28043
|
-
if (!PATTERN_TAG_HANDLE.test(tagHandle))
|
|
28285
|
+
if (!PATTERN_TAG_HANDLE.test(tagHandle)) {
|
|
28044
28286
|
throwError(state, "named tag handle cannot contain such characters");
|
|
28287
|
+
}
|
|
28045
28288
|
isNamed = true;
|
|
28046
28289
|
_position = state.position + 1;
|
|
28047
|
-
} else
|
|
28290
|
+
} else {
|
|
28048
28291
|
throwError(state, "tag suffix cannot contain exclamation marks");
|
|
28292
|
+
}
|
|
28293
|
+
}
|
|
28049
28294
|
ch = state.input.charCodeAt(++state.position);
|
|
28050
28295
|
}
|
|
28051
28296
|
tagName = state.input.slice(_position, state.position);
|
|
28052
|
-
if (PATTERN_FLOW_INDICATORS.test(tagName))
|
|
28297
|
+
if (PATTERN_FLOW_INDICATORS.test(tagName)) {
|
|
28053
28298
|
throwError(state, "tag suffix cannot contain flow indicator characters");
|
|
28299
|
+
}
|
|
28054
28300
|
}
|
|
28055
|
-
if (tagName && !PATTERN_TAG_URI.test(tagName))
|
|
28301
|
+
if (tagName && !PATTERN_TAG_URI.test(tagName)) {
|
|
28056
28302
|
throwError(state, "tag name cannot contain such characters: " + tagName);
|
|
28303
|
+
}
|
|
28057
28304
|
try {
|
|
28058
28305
|
tagName = decodeURIComponent(tagName);
|
|
28059
28306
|
} catch (err) {
|
|
28060
28307
|
throwError(state, "tag name is malformed: " + tagName);
|
|
28061
28308
|
}
|
|
28062
|
-
if (isVerbatim)
|
|
28309
|
+
if (isVerbatim) {
|
|
28063
28310
|
state.tag = tagName;
|
|
28064
|
-
else if (_hasOwnProperty.call(state.tagMap, tagHandle))
|
|
28311
|
+
} else if (_hasOwnProperty.call(state.tagMap, tagHandle)) {
|
|
28065
28312
|
state.tag = state.tagMap[tagHandle] + tagName;
|
|
28066
|
-
else if (tagHandle === "!")
|
|
28313
|
+
} else if (tagHandle === "!") {
|
|
28067
28314
|
state.tag = "!" + tagName;
|
|
28068
|
-
else if (tagHandle === "!!")
|
|
28315
|
+
} else if (tagHandle === "!!") {
|
|
28069
28316
|
state.tag = "tag:yaml.org,2002:" + tagName;
|
|
28070
|
-
else
|
|
28317
|
+
} else {
|
|
28071
28318
|
throwError(state, 'undeclared tag handle "' + tagHandle + '"');
|
|
28319
|
+
}
|
|
28072
28320
|
return true;
|
|
28073
28321
|
}
|
|
28074
28322
|
function readAnchorProperty(state) {
|
|
28075
28323
|
let ch = state.input.charCodeAt(state.position);
|
|
28076
28324
|
if (ch !== 38)
|
|
28077
28325
|
return false;
|
|
28078
|
-
if (state.anchor !== null)
|
|
28326
|
+
if (state.anchor !== null) {
|
|
28079
28327
|
throwError(state, "duplication of an anchor property");
|
|
28328
|
+
}
|
|
28080
28329
|
ch = state.input.charCodeAt(++state.position);
|
|
28081
28330
|
const _position = state.position;
|
|
28082
|
-
while (ch !== 0 && !isWsOrEol(ch) && !isFlowIndicator(ch))
|
|
28331
|
+
while (ch !== 0 && !isWsOrEol(ch) && !isFlowIndicator(ch)) {
|
|
28083
28332
|
ch = state.input.charCodeAt(++state.position);
|
|
28084
|
-
|
|
28333
|
+
}
|
|
28334
|
+
if (state.position === _position) {
|
|
28085
28335
|
throwError(state, "name of an anchor node must contain at least one character");
|
|
28336
|
+
}
|
|
28086
28337
|
state.anchor = state.input.slice(_position, state.position);
|
|
28087
28338
|
return true;
|
|
28088
28339
|
}
|
|
@@ -28092,13 +28343,16 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
28092
28343
|
return false;
|
|
28093
28344
|
ch = state.input.charCodeAt(++state.position);
|
|
28094
28345
|
const _position = state.position;
|
|
28095
|
-
while (ch !== 0 && !isWsOrEol(ch) && !isFlowIndicator(ch))
|
|
28346
|
+
while (ch !== 0 && !isWsOrEol(ch) && !isFlowIndicator(ch)) {
|
|
28096
28347
|
ch = state.input.charCodeAt(++state.position);
|
|
28097
|
-
|
|
28348
|
+
}
|
|
28349
|
+
if (state.position === _position) {
|
|
28098
28350
|
throwError(state, "name of an alias node must contain at least one character");
|
|
28351
|
+
}
|
|
28099
28352
|
const alias = state.input.slice(_position, state.position);
|
|
28100
|
-
if (!_hasOwnProperty.call(state.anchorMap, alias))
|
|
28353
|
+
if (!_hasOwnProperty.call(state.anchorMap, alias)) {
|
|
28101
28354
|
throwError(state, 'unidentified alias "' + alias + '"');
|
|
28355
|
+
}
|
|
28102
28356
|
state.result = state.anchorMap[alias];
|
|
28103
28357
|
skipSeparationSpace(state, true, -1);
|
|
28104
28358
|
return true;
|
|
@@ -28126,14 +28380,16 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
28126
28380
|
let atNewLine = false;
|
|
28127
28381
|
let hasContent = false;
|
|
28128
28382
|
let propertyStart = null;
|
|
28129
|
-
let
|
|
28383
|
+
let type2;
|
|
28130
28384
|
let flowIndent;
|
|
28131
28385
|
let blockIndent;
|
|
28132
|
-
if (state.depth >= state.maxDepth)
|
|
28386
|
+
if (state.depth >= state.maxDepth) {
|
|
28133
28387
|
throwError(state, "nesting exceeded maxDepth (" + state.maxDepth + ")");
|
|
28388
|
+
}
|
|
28134
28389
|
state.depth += 1;
|
|
28135
|
-
if (state.listener !== null)
|
|
28390
|
+
if (state.listener !== null) {
|
|
28136
28391
|
state.listener("open", state);
|
|
28392
|
+
}
|
|
28137
28393
|
state.tag = null;
|
|
28138
28394
|
state.anchor = null;
|
|
28139
28395
|
state.kind = null;
|
|
@@ -28142,110 +28398,131 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
28142
28398
|
if (allowToSeek) {
|
|
28143
28399
|
if (skipSeparationSpace(state, true, -1)) {
|
|
28144
28400
|
atNewLine = true;
|
|
28145
|
-
if (state.lineIndent > parentIndent)
|
|
28401
|
+
if (state.lineIndent > parentIndent) {
|
|
28146
28402
|
indentStatus = 1;
|
|
28147
|
-
else if (state.lineIndent === parentIndent)
|
|
28403
|
+
} else if (state.lineIndent === parentIndent) {
|
|
28148
28404
|
indentStatus = 0;
|
|
28149
|
-
else if (state.lineIndent < parentIndent)
|
|
28405
|
+
} else if (state.lineIndent < parentIndent) {
|
|
28150
28406
|
indentStatus = -1;
|
|
28407
|
+
}
|
|
28151
28408
|
}
|
|
28152
28409
|
}
|
|
28153
|
-
if (indentStatus === 1)
|
|
28410
|
+
if (indentStatus === 1) {
|
|
28154
28411
|
while (true) {
|
|
28155
28412
|
const ch = state.input.charCodeAt(state.position);
|
|
28156
28413
|
const propertyState = snapshotState(state);
|
|
28157
|
-
if (atNewLine && (ch === 33 && state.tag !== null || ch === 38 && state.anchor !== null))
|
|
28414
|
+
if (atNewLine && (ch === 33 && state.tag !== null || ch === 38 && state.anchor !== null)) {
|
|
28158
28415
|
break;
|
|
28159
|
-
|
|
28416
|
+
}
|
|
28417
|
+
if (!readTagProperty(state) && !readAnchorProperty(state)) {
|
|
28160
28418
|
break;
|
|
28161
|
-
|
|
28419
|
+
}
|
|
28420
|
+
if (propertyStart === null) {
|
|
28162
28421
|
propertyStart = propertyState;
|
|
28422
|
+
}
|
|
28163
28423
|
if (skipSeparationSpace(state, true, -1)) {
|
|
28164
28424
|
atNewLine = true;
|
|
28165
28425
|
allowBlockCollections = allowBlockStyles;
|
|
28166
|
-
if (state.lineIndent > parentIndent)
|
|
28426
|
+
if (state.lineIndent > parentIndent) {
|
|
28167
28427
|
indentStatus = 1;
|
|
28168
|
-
else if (state.lineIndent === parentIndent)
|
|
28428
|
+
} else if (state.lineIndent === parentIndent) {
|
|
28169
28429
|
indentStatus = 0;
|
|
28170
|
-
else if (state.lineIndent < parentIndent)
|
|
28430
|
+
} else if (state.lineIndent < parentIndent) {
|
|
28171
28431
|
indentStatus = -1;
|
|
28172
|
-
|
|
28432
|
+
}
|
|
28433
|
+
} else {
|
|
28173
28434
|
allowBlockCollections = false;
|
|
28435
|
+
}
|
|
28174
28436
|
}
|
|
28175
|
-
|
|
28437
|
+
}
|
|
28438
|
+
if (allowBlockCollections) {
|
|
28176
28439
|
allowBlockCollections = atNewLine || allowCompact;
|
|
28440
|
+
}
|
|
28177
28441
|
if (indentStatus === 1 || CONTEXT_BLOCK_OUT === nodeContext) {
|
|
28178
|
-
if (CONTEXT_FLOW_IN === nodeContext || CONTEXT_FLOW_OUT === nodeContext)
|
|
28442
|
+
if (CONTEXT_FLOW_IN === nodeContext || CONTEXT_FLOW_OUT === nodeContext) {
|
|
28179
28443
|
flowIndent = parentIndent;
|
|
28180
|
-
else
|
|
28444
|
+
} else {
|
|
28181
28445
|
flowIndent = parentIndent + 1;
|
|
28446
|
+
}
|
|
28182
28447
|
blockIndent = state.position - state.lineStart;
|
|
28183
|
-
if (indentStatus === 1)
|
|
28184
|
-
if (allowBlockCollections && (readBlockSequence(state, blockIndent) || readBlockMapping(state, blockIndent, flowIndent)) || readFlowCollection(state, flowIndent))
|
|
28448
|
+
if (indentStatus === 1) {
|
|
28449
|
+
if (allowBlockCollections && (readBlockSequence(state, blockIndent) || readBlockMapping(state, blockIndent, flowIndent)) || readFlowCollection(state, flowIndent)) {
|
|
28185
28450
|
hasContent = true;
|
|
28186
|
-
else {
|
|
28451
|
+
} else {
|
|
28187
28452
|
const ch = state.input.charCodeAt(state.position);
|
|
28188
|
-
if (propertyStart !== null && allowBlockStyles && !allowBlockCollections && ch !== 124 && ch !== 62 && tryReadBlockMappingFromProperty(state, propertyStart, propertyStart.position - propertyStart.lineStart, flowIndent))
|
|
28453
|
+
if (propertyStart !== null && allowBlockStyles && !allowBlockCollections && ch !== 124 && ch !== 62 && tryReadBlockMappingFromProperty(state, propertyStart, propertyStart.position - propertyStart.lineStart, flowIndent)) {
|
|
28189
28454
|
hasContent = true;
|
|
28190
|
-
else if (allowBlockScalars && readBlockScalar(state, flowIndent) || readSingleQuotedScalar(state, flowIndent) || readDoubleQuotedScalar(state, flowIndent))
|
|
28455
|
+
} else if (allowBlockScalars && readBlockScalar(state, flowIndent) || readSingleQuotedScalar(state, flowIndent) || readDoubleQuotedScalar(state, flowIndent)) {
|
|
28191
28456
|
hasContent = true;
|
|
28192
|
-
else if (readAlias(state)) {
|
|
28457
|
+
} else if (readAlias(state)) {
|
|
28193
28458
|
hasContent = true;
|
|
28194
|
-
if (state.tag !== null || state.anchor !== null)
|
|
28459
|
+
if (state.tag !== null || state.anchor !== null) {
|
|
28195
28460
|
throwError(state, "alias node should not have any properties");
|
|
28461
|
+
}
|
|
28196
28462
|
} else if (readPlainScalar(state, flowIndent, CONTEXT_FLOW_IN === nodeContext)) {
|
|
28197
28463
|
hasContent = true;
|
|
28198
|
-
if (state.tag === null)
|
|
28464
|
+
if (state.tag === null) {
|
|
28199
28465
|
state.tag = "?";
|
|
28466
|
+
}
|
|
28200
28467
|
}
|
|
28201
|
-
if (state.anchor !== null)
|
|
28468
|
+
if (state.anchor !== null) {
|
|
28202
28469
|
storeAnchor(state, state.anchor, state.result);
|
|
28470
|
+
}
|
|
28203
28471
|
}
|
|
28204
|
-
else if (indentStatus === 0)
|
|
28472
|
+
} else if (indentStatus === 0) {
|
|
28205
28473
|
hasContent = allowBlockCollections && readBlockSequence(state, blockIndent);
|
|
28474
|
+
}
|
|
28206
28475
|
}
|
|
28207
28476
|
if (state.tag === null) {
|
|
28208
|
-
if (state.anchor !== null)
|
|
28477
|
+
if (state.anchor !== null) {
|
|
28209
28478
|
storeAnchor(state, state.anchor, state.result);
|
|
28479
|
+
}
|
|
28210
28480
|
} else if (state.tag === "?") {
|
|
28211
|
-
if (state.result !== null && state.kind !== "scalar")
|
|
28481
|
+
if (state.result !== null && state.kind !== "scalar") {
|
|
28212
28482
|
throwError(state, 'unacceptable node kind for !<?> tag; it should be "scalar", not "' + state.kind + '"');
|
|
28483
|
+
}
|
|
28213
28484
|
for (let typeIndex = 0, typeQuantity = state.implicitTypes.length;typeIndex < typeQuantity; typeIndex += 1) {
|
|
28214
|
-
|
|
28215
|
-
if (
|
|
28216
|
-
state.result =
|
|
28217
|
-
state.tag =
|
|
28218
|
-
if (state.anchor !== null)
|
|
28485
|
+
type2 = state.implicitTypes[typeIndex];
|
|
28486
|
+
if (type2.resolve(state.result)) {
|
|
28487
|
+
state.result = type2.construct(state.result);
|
|
28488
|
+
state.tag = type2.tag;
|
|
28489
|
+
if (state.anchor !== null) {
|
|
28219
28490
|
storeAnchor(state, state.anchor, state.result);
|
|
28491
|
+
}
|
|
28220
28492
|
break;
|
|
28221
28493
|
}
|
|
28222
28494
|
}
|
|
28223
28495
|
} else if (state.tag !== "!") {
|
|
28224
|
-
if (_hasOwnProperty.call(state.typeMap[state.kind || "fallback"], state.tag))
|
|
28225
|
-
|
|
28226
|
-
else {
|
|
28227
|
-
|
|
28496
|
+
if (_hasOwnProperty.call(state.typeMap[state.kind || "fallback"], state.tag)) {
|
|
28497
|
+
type2 = state.typeMap[state.kind || "fallback"][state.tag];
|
|
28498
|
+
} else {
|
|
28499
|
+
type2 = null;
|
|
28228
28500
|
const typeList = state.typeMap.multi[state.kind || "fallback"];
|
|
28229
|
-
for (let typeIndex = 0, typeQuantity = typeList.length;typeIndex < typeQuantity; typeIndex += 1)
|
|
28501
|
+
for (let typeIndex = 0, typeQuantity = typeList.length;typeIndex < typeQuantity; typeIndex += 1) {
|
|
28230
28502
|
if (state.tag.slice(0, typeList[typeIndex].tag.length) === typeList[typeIndex].tag) {
|
|
28231
|
-
|
|
28503
|
+
type2 = typeList[typeIndex];
|
|
28232
28504
|
break;
|
|
28233
28505
|
}
|
|
28506
|
+
}
|
|
28234
28507
|
}
|
|
28235
|
-
if (!
|
|
28508
|
+
if (!type2) {
|
|
28236
28509
|
throwError(state, "unknown tag !<" + state.tag + ">");
|
|
28237
|
-
|
|
28238
|
-
|
|
28239
|
-
|
|
28510
|
+
}
|
|
28511
|
+
if (state.result !== null && type2.kind !== state.kind) {
|
|
28512
|
+
throwError(state, "unacceptable node kind for !<" + state.tag + '> tag; it should be "' + type2.kind + '", not "' + state.kind + '"');
|
|
28513
|
+
}
|
|
28514
|
+
if (!type2.resolve(state.result, state.tag)) {
|
|
28240
28515
|
throwError(state, "cannot resolve a node with !<" + state.tag + "> explicit tag");
|
|
28241
|
-
else {
|
|
28242
|
-
state.result =
|
|
28243
|
-
if (state.anchor !== null)
|
|
28516
|
+
} else {
|
|
28517
|
+
state.result = type2.construct(state.result, state.tag);
|
|
28518
|
+
if (state.anchor !== null) {
|
|
28244
28519
|
storeAnchor(state, state.anchor, state.result);
|
|
28520
|
+
}
|
|
28245
28521
|
}
|
|
28246
28522
|
}
|
|
28247
|
-
if (state.listener !== null)
|
|
28523
|
+
if (state.listener !== null) {
|
|
28248
28524
|
state.listener("close", state);
|
|
28525
|
+
}
|
|
28249
28526
|
state.depth -= 1;
|
|
28250
28527
|
return state.tag !== null || state.anchor !== null || hasContent;
|
|
28251
28528
|
}
|
|
@@ -28255,55 +28532,63 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
28255
28532
|
let ch;
|
|
28256
28533
|
state.version = null;
|
|
28257
28534
|
state.checkLineBreaks = state.legacy;
|
|
28258
|
-
state.tagMap = Object.create(null);
|
|
28259
|
-
state.anchorMap = Object.create(null);
|
|
28535
|
+
state.tagMap = /* @__PURE__ */ Object.create(null);
|
|
28536
|
+
state.anchorMap = /* @__PURE__ */ Object.create(null);
|
|
28260
28537
|
while ((ch = state.input.charCodeAt(state.position)) !== 0) {
|
|
28261
28538
|
skipSeparationSpace(state, true, -1);
|
|
28262
28539
|
ch = state.input.charCodeAt(state.position);
|
|
28263
|
-
if (state.lineIndent > 0 || ch !== 37)
|
|
28540
|
+
if (state.lineIndent > 0 || ch !== 37) {
|
|
28264
28541
|
break;
|
|
28542
|
+
}
|
|
28265
28543
|
hasDirectives = true;
|
|
28266
28544
|
ch = state.input.charCodeAt(++state.position);
|
|
28267
28545
|
let _position = state.position;
|
|
28268
|
-
while (ch !== 0 && !isWsOrEol(ch))
|
|
28546
|
+
while (ch !== 0 && !isWsOrEol(ch)) {
|
|
28269
28547
|
ch = state.input.charCodeAt(++state.position);
|
|
28548
|
+
}
|
|
28270
28549
|
const directiveName = state.input.slice(_position, state.position);
|
|
28271
28550
|
const directiveArgs = [];
|
|
28272
|
-
if (directiveName.length < 1)
|
|
28551
|
+
if (directiveName.length < 1) {
|
|
28273
28552
|
throwError(state, "directive name must not be less than one character in length");
|
|
28553
|
+
}
|
|
28274
28554
|
while (ch !== 0) {
|
|
28275
|
-
while (isWhiteSpace(ch))
|
|
28555
|
+
while (isWhiteSpace(ch)) {
|
|
28276
28556
|
ch = state.input.charCodeAt(++state.position);
|
|
28557
|
+
}
|
|
28277
28558
|
if (ch === 35) {
|
|
28278
|
-
do
|
|
28559
|
+
do {
|
|
28279
28560
|
ch = state.input.charCodeAt(++state.position);
|
|
28280
|
-
while (ch !== 0 && !isEol(ch));
|
|
28561
|
+
} while (ch !== 0 && !isEol(ch));
|
|
28281
28562
|
break;
|
|
28282
28563
|
}
|
|
28283
28564
|
if (isEol(ch))
|
|
28284
28565
|
break;
|
|
28285
28566
|
_position = state.position;
|
|
28286
|
-
while (ch !== 0 && !isWsOrEol(ch))
|
|
28567
|
+
while (ch !== 0 && !isWsOrEol(ch)) {
|
|
28287
28568
|
ch = state.input.charCodeAt(++state.position);
|
|
28569
|
+
}
|
|
28288
28570
|
directiveArgs.push(state.input.slice(_position, state.position));
|
|
28289
28571
|
}
|
|
28290
28572
|
if (ch !== 0)
|
|
28291
28573
|
readLineBreak(state);
|
|
28292
|
-
if (_hasOwnProperty.call(directiveHandlers, directiveName))
|
|
28574
|
+
if (_hasOwnProperty.call(directiveHandlers, directiveName)) {
|
|
28293
28575
|
directiveHandlers[directiveName](state, directiveName, directiveArgs);
|
|
28294
|
-
else
|
|
28576
|
+
} else {
|
|
28295
28577
|
throwWarning(state, 'unknown document directive "' + directiveName + '"');
|
|
28578
|
+
}
|
|
28296
28579
|
}
|
|
28297
28580
|
skipSeparationSpace(state, true, -1);
|
|
28298
28581
|
if (state.lineIndent === 0 && state.input.charCodeAt(state.position) === 45 && state.input.charCodeAt(state.position + 1) === 45 && state.input.charCodeAt(state.position + 2) === 45) {
|
|
28299
28582
|
state.position += 3;
|
|
28300
28583
|
skipSeparationSpace(state, true, -1);
|
|
28301
|
-
} else if (hasDirectives)
|
|
28584
|
+
} else if (hasDirectives) {
|
|
28302
28585
|
throwError(state, "directives end mark is expected");
|
|
28586
|
+
}
|
|
28303
28587
|
composeNode(state, state.lineIndent - 1, CONTEXT_BLOCK_OUT, false, true);
|
|
28304
28588
|
skipSeparationSpace(state, true, -1);
|
|
28305
|
-
if (state.checkLineBreaks && PATTERN_NON_ASCII_LINE_BREAKS.test(state.input.slice(documentStart, state.position)))
|
|
28589
|
+
if (state.checkLineBreaks && PATTERN_NON_ASCII_LINE_BREAKS.test(state.input.slice(documentStart, state.position))) {
|
|
28306
28590
|
throwWarning(state, "non-ASCII line breaks are interpreted as content");
|
|
28591
|
+
}
|
|
28307
28592
|
state.documents.push(state.result);
|
|
28308
28593
|
if (state.position === state.lineStart && testDocumentSeparator(state)) {
|
|
28309
28594
|
if (state.input.charCodeAt(state.position) === 46) {
|
|
@@ -28312,18 +28597,21 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
28312
28597
|
}
|
|
28313
28598
|
return;
|
|
28314
28599
|
}
|
|
28315
|
-
if (state.position < state.length - 1)
|
|
28600
|
+
if (state.position < state.length - 1) {
|
|
28316
28601
|
throwError(state, "end of the stream or a document separator is expected");
|
|
28602
|
+
}
|
|
28317
28603
|
}
|
|
28318
28604
|
function loadDocuments(input, options) {
|
|
28319
28605
|
input = String(input);
|
|
28320
28606
|
options = options || {};
|
|
28321
28607
|
if (input.length !== 0) {
|
|
28322
|
-
if (input.charCodeAt(input.length - 1) !== 10 && input.charCodeAt(input.length - 1) !== 13)
|
|
28608
|
+
if (input.charCodeAt(input.length - 1) !== 10 && input.charCodeAt(input.length - 1) !== 13) {
|
|
28323
28609
|
input += `
|
|
28324
28610
|
`;
|
|
28325
|
-
|
|
28611
|
+
}
|
|
28612
|
+
if (input.charCodeAt(0) === 65279) {
|
|
28326
28613
|
input = input.slice(1);
|
|
28614
|
+
}
|
|
28327
28615
|
}
|
|
28328
28616
|
const state = new State(input, options);
|
|
28329
28617
|
const nullpos = input.indexOf("\x00");
|
|
@@ -28336,64 +28624,74 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
28336
28624
|
state.lineIndent += 1;
|
|
28337
28625
|
state.position += 1;
|
|
28338
28626
|
}
|
|
28339
|
-
while (state.position < state.length - 1)
|
|
28627
|
+
while (state.position < state.length - 1) {
|
|
28340
28628
|
readDocument(state);
|
|
28629
|
+
}
|
|
28341
28630
|
return state.documents;
|
|
28342
28631
|
}
|
|
28343
|
-
function
|
|
28632
|
+
function loadAll2(input, iterator, options) {
|
|
28344
28633
|
if (iterator !== null && typeof iterator === "object" && typeof options === "undefined") {
|
|
28345
28634
|
options = iterator;
|
|
28346
28635
|
iterator = null;
|
|
28347
28636
|
}
|
|
28348
28637
|
const documents = loadDocuments(input, options);
|
|
28349
|
-
if (typeof iterator !== "function")
|
|
28638
|
+
if (typeof iterator !== "function") {
|
|
28350
28639
|
return documents;
|
|
28351
|
-
|
|
28640
|
+
}
|
|
28641
|
+
for (let index = 0, length = documents.length;index < length; index += 1) {
|
|
28352
28642
|
iterator(documents[index]);
|
|
28643
|
+
}
|
|
28353
28644
|
}
|
|
28354
|
-
function
|
|
28645
|
+
function load2(input, options) {
|
|
28355
28646
|
const documents = loadDocuments(input, options);
|
|
28356
|
-
if (documents.length === 0)
|
|
28647
|
+
if (documents.length === 0) {
|
|
28357
28648
|
return;
|
|
28358
|
-
else if (documents.length === 1)
|
|
28649
|
+
} else if (documents.length === 1) {
|
|
28359
28650
|
return documents[0];
|
|
28360
|
-
|
|
28651
|
+
}
|
|
28652
|
+
throw new YAMLException2("expected a single document in the stream, but found more");
|
|
28361
28653
|
}
|
|
28362
|
-
|
|
28363
|
-
|
|
28364
|
-
|
|
28365
|
-
|
|
28366
|
-
|
|
28367
|
-
|
|
28368
|
-
|
|
28369
|
-
|
|
28370
|
-
|
|
28371
|
-
|
|
28372
|
-
|
|
28373
|
-
|
|
28374
|
-
|
|
28375
|
-
|
|
28376
|
-
|
|
28377
|
-
|
|
28378
|
-
|
|
28379
|
-
|
|
28380
|
-
|
|
28381
|
-
|
|
28382
|
-
|
|
28383
|
-
|
|
28384
|
-
|
|
28385
|
-
|
|
28386
|
-
|
|
28387
|
-
|
|
28388
|
-
|
|
28389
|
-
|
|
28390
|
-
|
|
28391
|
-
|
|
28392
|
-
|
|
28393
|
-
|
|
28394
|
-
|
|
28395
|
-
|
|
28396
|
-
|
|
28654
|
+
loader.loadAll = loadAll2;
|
|
28655
|
+
loader.load = load2;
|
|
28656
|
+
return loader;
|
|
28657
|
+
}
|
|
28658
|
+
var dumper = {};
|
|
28659
|
+
var hasRequiredDumper;
|
|
28660
|
+
function requireDumper() {
|
|
28661
|
+
if (hasRequiredDumper)
|
|
28662
|
+
return dumper;
|
|
28663
|
+
hasRequiredDumper = 1;
|
|
28664
|
+
const common2 = requireCommon();
|
|
28665
|
+
const YAMLException2 = requireException();
|
|
28666
|
+
const DEFAULT_SCHEMA2 = require_default();
|
|
28667
|
+
const _toString = Object.prototype.toString;
|
|
28668
|
+
const _hasOwnProperty = Object.prototype.hasOwnProperty;
|
|
28669
|
+
const CHAR_BOM = 65279;
|
|
28670
|
+
const CHAR_TAB = 9;
|
|
28671
|
+
const CHAR_LINE_FEED = 10;
|
|
28672
|
+
const CHAR_CARRIAGE_RETURN = 13;
|
|
28673
|
+
const CHAR_SPACE = 32;
|
|
28674
|
+
const CHAR_EXCLAMATION = 33;
|
|
28675
|
+
const CHAR_DOUBLE_QUOTE = 34;
|
|
28676
|
+
const CHAR_SHARP = 35;
|
|
28677
|
+
const CHAR_PERCENT = 37;
|
|
28678
|
+
const CHAR_AMPERSAND = 38;
|
|
28679
|
+
const CHAR_SINGLE_QUOTE = 39;
|
|
28680
|
+
const CHAR_ASTERISK = 42;
|
|
28681
|
+
const CHAR_COMMA = 44;
|
|
28682
|
+
const CHAR_MINUS = 45;
|
|
28683
|
+
const CHAR_COLON = 58;
|
|
28684
|
+
const CHAR_EQUALS = 61;
|
|
28685
|
+
const CHAR_GREATER_THAN = 62;
|
|
28686
|
+
const CHAR_QUESTION = 63;
|
|
28687
|
+
const CHAR_COMMERCIAL_AT = 64;
|
|
28688
|
+
const CHAR_LEFT_SQUARE_BRACKET = 91;
|
|
28689
|
+
const CHAR_RIGHT_SQUARE_BRACKET = 93;
|
|
28690
|
+
const CHAR_GRAVE_ACCENT = 96;
|
|
28691
|
+
const CHAR_LEFT_CURLY_BRACKET = 123;
|
|
28692
|
+
const CHAR_VERTICAL_LINE = 124;
|
|
28693
|
+
const CHAR_RIGHT_CURLY_BRACKET = 125;
|
|
28694
|
+
const ESCAPE_SEQUENCES = {};
|
|
28397
28695
|
ESCAPE_SEQUENCES[0] = "\\0";
|
|
28398
28696
|
ESCAPE_SEQUENCES[7] = "\\a";
|
|
28399
28697
|
ESCAPE_SEQUENCES[8] = "\\b";
|
|
@@ -28409,7 +28707,7 @@ var require_dumper = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
28409
28707
|
ESCAPE_SEQUENCES[160] = "\\_";
|
|
28410
28708
|
ESCAPE_SEQUENCES[8232] = "\\L";
|
|
28411
28709
|
ESCAPE_SEQUENCES[8233] = "\\P";
|
|
28412
|
-
|
|
28710
|
+
const DEPRECATED_BOOLEANS_SYNTAX = [
|
|
28413
28711
|
"y",
|
|
28414
28712
|
"Y",
|
|
28415
28713
|
"yes",
|
|
@@ -28427,20 +28725,22 @@ var require_dumper = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
28427
28725
|
"Off",
|
|
28428
28726
|
"OFF"
|
|
28429
28727
|
];
|
|
28430
|
-
|
|
28431
|
-
function compileStyleMap(
|
|
28432
|
-
if (
|
|
28728
|
+
const DEPRECATED_BASE60_SYNTAX = /^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;
|
|
28729
|
+
function compileStyleMap(schema2, map2) {
|
|
28730
|
+
if (map2 === null)
|
|
28433
28731
|
return {};
|
|
28434
28732
|
const result = {};
|
|
28435
|
-
const keys = Object.keys(
|
|
28733
|
+
const keys = Object.keys(map2);
|
|
28436
28734
|
for (let index = 0, length = keys.length;index < length; index += 1) {
|
|
28437
28735
|
let tag = keys[index];
|
|
28438
|
-
let style = String(
|
|
28439
|
-
if (tag.slice(0, 2) === "!!")
|
|
28736
|
+
let style = String(map2[tag]);
|
|
28737
|
+
if (tag.slice(0, 2) === "!!") {
|
|
28440
28738
|
tag = "tag:yaml.org,2002:" + tag.slice(2);
|
|
28441
|
-
|
|
28442
|
-
|
|
28443
|
-
|
|
28739
|
+
}
|
|
28740
|
+
const type2 = schema2.compiledTypeMap["fallback"][tag];
|
|
28741
|
+
if (type2 && _hasOwnProperty.call(type2.styleAliases, style)) {
|
|
28742
|
+
style = type2.styleAliases[style];
|
|
28743
|
+
}
|
|
28444
28744
|
result[tag] = style;
|
|
28445
28745
|
}
|
|
28446
28746
|
return result;
|
|
@@ -28458,18 +28758,19 @@ var require_dumper = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
28458
28758
|
} else if (character <= 4294967295) {
|
|
28459
28759
|
handle = "U";
|
|
28460
28760
|
length = 8;
|
|
28461
|
-
} else
|
|
28462
|
-
throw new
|
|
28463
|
-
|
|
28761
|
+
} else {
|
|
28762
|
+
throw new YAMLException2("code point within a string may not be greater than 0xFFFFFFFF");
|
|
28763
|
+
}
|
|
28764
|
+
return "\\" + handle + common2.repeat("0", length - string.length) + string;
|
|
28464
28765
|
}
|
|
28465
|
-
|
|
28466
|
-
|
|
28766
|
+
const QUOTING_TYPE_SINGLE = 1;
|
|
28767
|
+
const QUOTING_TYPE_DOUBLE = 2;
|
|
28467
28768
|
function State(options) {
|
|
28468
|
-
this.schema = options["schema"] ||
|
|
28769
|
+
this.schema = options["schema"] || DEFAULT_SCHEMA2;
|
|
28469
28770
|
this.indent = Math.max(1, options["indent"] || 2);
|
|
28470
28771
|
this.noArrayIndent = options["noArrayIndent"] || false;
|
|
28471
28772
|
this.skipInvalid = options["skipInvalid"] || false;
|
|
28472
|
-
this.flowLevel =
|
|
28773
|
+
this.flowLevel = common2.isNothing(options["flowLevel"]) ? -1 : options["flowLevel"];
|
|
28473
28774
|
this.styleMap = compileStyleMap(this.schema, options["styles"] || null);
|
|
28474
28775
|
this.sortKeys = options["sortKeys"] || false;
|
|
28475
28776
|
this.lineWidth = options["lineWidth"] || 80;
|
|
@@ -28487,7 +28788,7 @@ var require_dumper = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
28487
28788
|
this.usedDuplicates = null;
|
|
28488
28789
|
}
|
|
28489
28790
|
function indentString(string, spaces) {
|
|
28490
|
-
const ind =
|
|
28791
|
+
const ind = common2.repeat(" ", spaces);
|
|
28491
28792
|
let position = 0;
|
|
28492
28793
|
let result = "";
|
|
28493
28794
|
const length = string.length;
|
|
@@ -28511,12 +28812,15 @@ var require_dumper = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
28511
28812
|
}
|
|
28512
28813
|
function generateNextLine(state, level) {
|
|
28513
28814
|
return `
|
|
28514
|
-
` +
|
|
28815
|
+
` + common2.repeat(" ", state.indent * level);
|
|
28515
28816
|
}
|
|
28516
|
-
function testImplicitResolving(state,
|
|
28517
|
-
for (let index = 0, length = state.implicitTypes.length;index < length; index += 1)
|
|
28518
|
-
|
|
28817
|
+
function testImplicitResolving(state, str2) {
|
|
28818
|
+
for (let index = 0, length = state.implicitTypes.length;index < length; index += 1) {
|
|
28819
|
+
const type2 = state.implicitTypes[index];
|
|
28820
|
+
if (type2.resolve(str2)) {
|
|
28519
28821
|
return true;
|
|
28822
|
+
}
|
|
28823
|
+
}
|
|
28520
28824
|
return false;
|
|
28521
28825
|
}
|
|
28522
28826
|
function isWhitespace(c) {
|
|
@@ -28544,19 +28848,21 @@ var require_dumper = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
28544
28848
|
let second;
|
|
28545
28849
|
if (first >= 55296 && first <= 56319 && pos + 1 < string.length) {
|
|
28546
28850
|
second = string.charCodeAt(pos + 1);
|
|
28547
|
-
if (second >= 56320 && second <= 57343)
|
|
28851
|
+
if (second >= 56320 && second <= 57343) {
|
|
28548
28852
|
return (first - 55296) * 1024 + second - 56320 + 65536;
|
|
28853
|
+
}
|
|
28549
28854
|
}
|
|
28550
28855
|
return first;
|
|
28551
28856
|
}
|
|
28552
28857
|
function needIndentIndicator(string) {
|
|
28553
|
-
|
|
28554
|
-
|
|
28555
|
-
|
|
28556
|
-
|
|
28557
|
-
|
|
28558
|
-
|
|
28559
|
-
|
|
28858
|
+
const leadingSpaceRe = /^\n* /;
|
|
28859
|
+
return leadingSpaceRe.test(string);
|
|
28860
|
+
}
|
|
28861
|
+
const STYLE_PLAIN = 1;
|
|
28862
|
+
const STYLE_SINGLE = 2;
|
|
28863
|
+
const STYLE_LITERAL = 3;
|
|
28864
|
+
const STYLE_FOLDED = 4;
|
|
28865
|
+
const STYLE_DOUBLE = 5;
|
|
28560
28866
|
function chooseScalarStyle(string, singleLineOnly, indentPerLevel, lineWidth, testAmbiguousType, quotingType, forceQuotes, inblock) {
|
|
28561
28867
|
let i;
|
|
28562
28868
|
let char = 0;
|
|
@@ -28566,15 +28872,16 @@ var require_dumper = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
28566
28872
|
const shouldTrackWidth = lineWidth !== -1;
|
|
28567
28873
|
let previousLineBreak = -1;
|
|
28568
28874
|
let plain = isPlainSafeFirst(codePointAt(string, 0)) && isPlainSafeLast(codePointAt(string, string.length - 1));
|
|
28569
|
-
if (singleLineOnly || forceQuotes)
|
|
28875
|
+
if (singleLineOnly || forceQuotes) {
|
|
28570
28876
|
for (i = 0;i < string.length; char >= 65536 ? i += 2 : i++) {
|
|
28571
28877
|
char = codePointAt(string, i);
|
|
28572
|
-
if (!isPrintable(char))
|
|
28878
|
+
if (!isPrintable(char)) {
|
|
28573
28879
|
return STYLE_DOUBLE;
|
|
28880
|
+
}
|
|
28574
28881
|
plain = plain && isPlainSafe(char, prevChar, inblock);
|
|
28575
28882
|
prevChar = char;
|
|
28576
28883
|
}
|
|
28577
|
-
else {
|
|
28884
|
+
} else {
|
|
28578
28885
|
for (i = 0;i < string.length; char >= 65536 ? i += 2 : i++) {
|
|
28579
28886
|
char = codePointAt(string, i);
|
|
28580
28887
|
if (char === CHAR_LINE_FEED) {
|
|
@@ -28583,31 +28890,37 @@ var require_dumper = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
28583
28890
|
hasFoldableLine = hasFoldableLine || i - previousLineBreak - 1 > lineWidth && string[previousLineBreak + 1] !== " ";
|
|
28584
28891
|
previousLineBreak = i;
|
|
28585
28892
|
}
|
|
28586
|
-
} else if (!isPrintable(char))
|
|
28893
|
+
} else if (!isPrintable(char)) {
|
|
28587
28894
|
return STYLE_DOUBLE;
|
|
28895
|
+
}
|
|
28588
28896
|
plain = plain && isPlainSafe(char, prevChar, inblock);
|
|
28589
28897
|
prevChar = char;
|
|
28590
28898
|
}
|
|
28591
|
-
hasFoldableLine = hasFoldableLine || shouldTrackWidth && i - previousLineBreak - 1 > lineWidth && string[previousLineBreak + 1] !== " ";
|
|
28899
|
+
hasFoldableLine = hasFoldableLine || shouldTrackWidth && (i - previousLineBreak - 1 > lineWidth && string[previousLineBreak + 1] !== " ");
|
|
28592
28900
|
}
|
|
28593
28901
|
if (!hasLineBreak && !hasFoldableLine) {
|
|
28594
|
-
if (plain && !forceQuotes && !testAmbiguousType(string))
|
|
28902
|
+
if (plain && !forceQuotes && !testAmbiguousType(string)) {
|
|
28595
28903
|
return STYLE_PLAIN;
|
|
28904
|
+
}
|
|
28596
28905
|
return quotingType === QUOTING_TYPE_DOUBLE ? STYLE_DOUBLE : STYLE_SINGLE;
|
|
28597
28906
|
}
|
|
28598
|
-
if (indentPerLevel > 9 && needIndentIndicator(string))
|
|
28907
|
+
if (indentPerLevel > 9 && needIndentIndicator(string)) {
|
|
28599
28908
|
return STYLE_DOUBLE;
|
|
28600
|
-
|
|
28909
|
+
}
|
|
28910
|
+
if (!forceQuotes) {
|
|
28601
28911
|
return hasFoldableLine ? STYLE_FOLDED : STYLE_LITERAL;
|
|
28912
|
+
}
|
|
28602
28913
|
return quotingType === QUOTING_TYPE_DOUBLE ? STYLE_DOUBLE : STYLE_SINGLE;
|
|
28603
28914
|
}
|
|
28604
28915
|
function writeScalar(state, string, level, iskey, inblock) {
|
|
28605
28916
|
state.dump = function() {
|
|
28606
|
-
if (string.length === 0)
|
|
28917
|
+
if (string.length === 0) {
|
|
28607
28918
|
return state.quotingType === QUOTING_TYPE_DOUBLE ? '""' : "''";
|
|
28919
|
+
}
|
|
28608
28920
|
if (!state.noCompatMode) {
|
|
28609
|
-
if (DEPRECATED_BOOLEANS_SYNTAX.indexOf(string) !== -1 || DEPRECATED_BASE60_SYNTAX.test(string))
|
|
28921
|
+
if (DEPRECATED_BOOLEANS_SYNTAX.indexOf(string) !== -1 || DEPRECATED_BASE60_SYNTAX.test(string)) {
|
|
28610
28922
|
return state.quotingType === QUOTING_TYPE_DOUBLE ? '"' + string + '"' : "'" + string + "'";
|
|
28923
|
+
}
|
|
28611
28924
|
}
|
|
28612
28925
|
const indent = state.indent * Math.max(1, level);
|
|
28613
28926
|
const lineWidth = state.lineWidth === -1 ? -1 : Math.max(Math.min(state.lineWidth, 40), state.lineWidth - indent);
|
|
@@ -28625,9 +28938,9 @@ var require_dumper = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
28625
28938
|
case STYLE_FOLDED:
|
|
28626
28939
|
return ">" + blockHeader(string, state.indent) + dropEndingNewline(indentString(foldString(string, lineWidth), indent));
|
|
28627
28940
|
case STYLE_DOUBLE:
|
|
28628
|
-
return '"' + escapeString(string
|
|
28941
|
+
return '"' + escapeString(string) + '"';
|
|
28629
28942
|
default:
|
|
28630
|
-
throw new
|
|
28943
|
+
throw new YAMLException2("impossible error: invalid scalar style");
|
|
28631
28944
|
}
|
|
28632
28945
|
}();
|
|
28633
28946
|
}
|
|
@@ -28635,9 +28948,11 @@ var require_dumper = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
28635
28948
|
const indentIndicator = needIndentIndicator(string) ? String(indentPerLevel) : "";
|
|
28636
28949
|
const clip = string[string.length - 1] === `
|
|
28637
28950
|
`;
|
|
28638
|
-
|
|
28951
|
+
const keep = clip && (string[string.length - 2] === `
|
|
28639
28952
|
` || string === `
|
|
28640
|
-
`)
|
|
28953
|
+
`);
|
|
28954
|
+
const chomp = keep ? "+" : clip ? "" : "-";
|
|
28955
|
+
return indentIndicator + chomp + `
|
|
28641
28956
|
`;
|
|
28642
28957
|
}
|
|
28643
28958
|
function dropEndingNewline(string) {
|
|
@@ -28689,11 +29004,12 @@ var require_dumper = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
28689
29004
|
}
|
|
28690
29005
|
result += `
|
|
28691
29006
|
`;
|
|
28692
|
-
if (line.length - start > width && curr > start)
|
|
29007
|
+
if (line.length - start > width && curr > start) {
|
|
28693
29008
|
result += line.slice(start, curr) + `
|
|
28694
29009
|
` + line.slice(curr + 1);
|
|
28695
|
-
else
|
|
29010
|
+
} else {
|
|
28696
29011
|
result += line.slice(start);
|
|
29012
|
+
}
|
|
28697
29013
|
return result.slice(1);
|
|
28698
29014
|
}
|
|
28699
29015
|
function escapeString(string) {
|
|
@@ -28706,8 +29022,9 @@ var require_dumper = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
28706
29022
|
result += string[i];
|
|
28707
29023
|
if (char >= 65536)
|
|
28708
29024
|
result += string[i + 1];
|
|
28709
|
-
} else
|
|
29025
|
+
} else {
|
|
28710
29026
|
result += escapeSeq || encodeHex(char);
|
|
29027
|
+
}
|
|
28711
29028
|
}
|
|
28712
29029
|
return result;
|
|
28713
29030
|
}
|
|
@@ -28716,8 +29033,9 @@ var require_dumper = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
28716
29033
|
const _tag = state.tag;
|
|
28717
29034
|
for (let index = 0, length = object.length;index < length; index += 1) {
|
|
28718
29035
|
let value = object[index];
|
|
28719
|
-
if (state.replacer)
|
|
29036
|
+
if (state.replacer) {
|
|
28720
29037
|
value = state.replacer.call(object, String(index), value);
|
|
29038
|
+
}
|
|
28721
29039
|
if (writeNode(state, level, value, false, false) || typeof value === "undefined" && writeNode(state, level, null, false, false)) {
|
|
28722
29040
|
if (_result !== "")
|
|
28723
29041
|
_result += "," + (!state.condenseFlow ? " " : "");
|
|
@@ -28732,15 +29050,18 @@ var require_dumper = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
28732
29050
|
const _tag = state.tag;
|
|
28733
29051
|
for (let index = 0, length = object.length;index < length; index += 1) {
|
|
28734
29052
|
let value = object[index];
|
|
28735
|
-
if (state.replacer)
|
|
29053
|
+
if (state.replacer) {
|
|
28736
29054
|
value = state.replacer.call(object, String(index), value);
|
|
29055
|
+
}
|
|
28737
29056
|
if (writeNode(state, level + 1, value, true, true, false, true) || typeof value === "undefined" && writeNode(state, level + 1, null, true, true, false, true)) {
|
|
28738
|
-
if (!compact || _result !== "")
|
|
29057
|
+
if (!compact || _result !== "") {
|
|
28739
29058
|
_result += generateNextLine(state, level);
|
|
28740
|
-
|
|
29059
|
+
}
|
|
29060
|
+
if (state.dump && CHAR_LINE_FEED === state.dump.charCodeAt(0)) {
|
|
28741
29061
|
_result += "-";
|
|
28742
|
-
else
|
|
29062
|
+
} else {
|
|
28743
29063
|
_result += "- ";
|
|
29064
|
+
}
|
|
28744
29065
|
_result += state.dump;
|
|
28745
29066
|
}
|
|
28746
29067
|
}
|
|
@@ -28759,15 +29080,18 @@ var require_dumper = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
28759
29080
|
pairBuffer += '"';
|
|
28760
29081
|
const objectKey = objectKeyList[index];
|
|
28761
29082
|
let objectValue = object[objectKey];
|
|
28762
|
-
if (state.replacer)
|
|
29083
|
+
if (state.replacer) {
|
|
28763
29084
|
objectValue = state.replacer.call(object, objectKey, objectValue);
|
|
28764
|
-
|
|
29085
|
+
}
|
|
29086
|
+
if (!writeNode(state, level, objectKey, false, false)) {
|
|
28765
29087
|
continue;
|
|
29088
|
+
}
|
|
28766
29089
|
if (state.dump.length > 1024)
|
|
28767
29090
|
pairBuffer += "? ";
|
|
28768
29091
|
pairBuffer += state.dump + (state.condenseFlow ? '"' : "") + ":" + (state.condenseFlow ? "" : " ");
|
|
28769
|
-
if (!writeNode(state, level, objectValue, false, false))
|
|
29092
|
+
if (!writeNode(state, level, objectValue, false, false)) {
|
|
28770
29093
|
continue;
|
|
29094
|
+
}
|
|
28771
29095
|
pairBuffer += state.dump;
|
|
28772
29096
|
_result += pairBuffer;
|
|
28773
29097
|
}
|
|
@@ -28778,37 +29102,46 @@ var require_dumper = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
28778
29102
|
let _result = "";
|
|
28779
29103
|
const _tag = state.tag;
|
|
28780
29104
|
const objectKeyList = Object.keys(object);
|
|
28781
|
-
if (state.sortKeys === true)
|
|
29105
|
+
if (state.sortKeys === true) {
|
|
28782
29106
|
objectKeyList.sort();
|
|
28783
|
-
else if (typeof state.sortKeys === "function")
|
|
29107
|
+
} else if (typeof state.sortKeys === "function") {
|
|
28784
29108
|
objectKeyList.sort(state.sortKeys);
|
|
28785
|
-
else if (state.sortKeys)
|
|
28786
|
-
throw new
|
|
29109
|
+
} else if (state.sortKeys) {
|
|
29110
|
+
throw new YAMLException2("sortKeys must be a boolean or a function");
|
|
29111
|
+
}
|
|
28787
29112
|
for (let index = 0, length = objectKeyList.length;index < length; index += 1) {
|
|
28788
29113
|
let pairBuffer = "";
|
|
28789
|
-
if (!compact || _result !== "")
|
|
29114
|
+
if (!compact || _result !== "") {
|
|
28790
29115
|
pairBuffer += generateNextLine(state, level);
|
|
29116
|
+
}
|
|
28791
29117
|
const objectKey = objectKeyList[index];
|
|
28792
29118
|
let objectValue = object[objectKey];
|
|
28793
|
-
if (state.replacer)
|
|
29119
|
+
if (state.replacer) {
|
|
28794
29120
|
objectValue = state.replacer.call(object, objectKey, objectValue);
|
|
28795
|
-
|
|
29121
|
+
}
|
|
29122
|
+
if (!writeNode(state, level + 1, objectKey, true, true, true)) {
|
|
28796
29123
|
continue;
|
|
29124
|
+
}
|
|
28797
29125
|
const explicitPair = state.tag !== null && state.tag !== "?" || state.dump && state.dump.length > 1024;
|
|
28798
|
-
if (explicitPair)
|
|
28799
|
-
if (state.dump && CHAR_LINE_FEED === state.dump.charCodeAt(0))
|
|
29126
|
+
if (explicitPair) {
|
|
29127
|
+
if (state.dump && CHAR_LINE_FEED === state.dump.charCodeAt(0)) {
|
|
28800
29128
|
pairBuffer += "?";
|
|
28801
|
-
else
|
|
29129
|
+
} else {
|
|
28802
29130
|
pairBuffer += "? ";
|
|
29131
|
+
}
|
|
29132
|
+
}
|
|
28803
29133
|
pairBuffer += state.dump;
|
|
28804
|
-
if (explicitPair)
|
|
29134
|
+
if (explicitPair) {
|
|
28805
29135
|
pairBuffer += generateNextLine(state, level);
|
|
28806
|
-
|
|
29136
|
+
}
|
|
29137
|
+
if (!writeNode(state, level + 1, objectValue, true, explicitPair)) {
|
|
28807
29138
|
continue;
|
|
28808
|
-
|
|
29139
|
+
}
|
|
29140
|
+
if (state.dump && CHAR_LINE_FEED === state.dump.charCodeAt(0)) {
|
|
28809
29141
|
pairBuffer += ":";
|
|
28810
|
-
else
|
|
29142
|
+
} else {
|
|
28811
29143
|
pairBuffer += ": ";
|
|
29144
|
+
}
|
|
28812
29145
|
pairBuffer += state.dump;
|
|
28813
29146
|
_result += pairBuffer;
|
|
28814
29147
|
}
|
|
@@ -28818,24 +29151,27 @@ var require_dumper = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
28818
29151
|
function detectType(state, object, explicit) {
|
|
28819
29152
|
const typeList = explicit ? state.explicitTypes : state.implicitTypes;
|
|
28820
29153
|
for (let index = 0, length = typeList.length;index < length; index += 1) {
|
|
28821
|
-
const
|
|
28822
|
-
if ((
|
|
28823
|
-
if (explicit)
|
|
28824
|
-
if (
|
|
28825
|
-
state.tag =
|
|
28826
|
-
else
|
|
28827
|
-
state.tag =
|
|
28828
|
-
|
|
29154
|
+
const type2 = typeList[index];
|
|
29155
|
+
if ((type2.instanceOf || type2.predicate) && (!type2.instanceOf || typeof object === "object" && object instanceof type2.instanceOf) && (!type2.predicate || type2.predicate(object))) {
|
|
29156
|
+
if (explicit) {
|
|
29157
|
+
if (type2.multi && type2.representName) {
|
|
29158
|
+
state.tag = type2.representName(object);
|
|
29159
|
+
} else {
|
|
29160
|
+
state.tag = type2.tag;
|
|
29161
|
+
}
|
|
29162
|
+
} else {
|
|
28829
29163
|
state.tag = "?";
|
|
28830
|
-
|
|
28831
|
-
|
|
29164
|
+
}
|
|
29165
|
+
if (type2.represent) {
|
|
29166
|
+
const style = state.styleMap[type2.tag] || type2.defaultStyle;
|
|
28832
29167
|
let _result;
|
|
28833
|
-
if (_toString.call(
|
|
28834
|
-
_result =
|
|
28835
|
-
else if (_hasOwnProperty.call(
|
|
28836
|
-
_result =
|
|
28837
|
-
else
|
|
28838
|
-
throw new
|
|
29168
|
+
if (_toString.call(type2.represent) === "[object Function]") {
|
|
29169
|
+
_result = type2.represent(object, style);
|
|
29170
|
+
} else if (_hasOwnProperty.call(type2.represent, style)) {
|
|
29171
|
+
_result = type2.represent[style](object, style);
|
|
29172
|
+
} else {
|
|
29173
|
+
throw new YAMLException2("!<" + type2.tag + '> tag resolver accepts not "' + style + '" style');
|
|
29174
|
+
}
|
|
28839
29175
|
state.dump = _result;
|
|
28840
29176
|
}
|
|
28841
29177
|
return true;
|
|
@@ -28846,67 +29182,78 @@ var require_dumper = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
28846
29182
|
function writeNode(state, level, object, block, compact, iskey, isblockseq) {
|
|
28847
29183
|
state.tag = null;
|
|
28848
29184
|
state.dump = object;
|
|
28849
|
-
if (!detectType(state, object, false))
|
|
29185
|
+
if (!detectType(state, object, false)) {
|
|
28850
29186
|
detectType(state, object, true);
|
|
28851
|
-
|
|
29187
|
+
}
|
|
29188
|
+
const type2 = _toString.call(state.dump);
|
|
28852
29189
|
const inblock = block;
|
|
28853
|
-
if (block)
|
|
29190
|
+
if (block) {
|
|
28854
29191
|
block = state.flowLevel < 0 || state.flowLevel > level;
|
|
28855
|
-
|
|
29192
|
+
}
|
|
29193
|
+
const objectOrArray = type2 === "[object Object]" || type2 === "[object Array]";
|
|
28856
29194
|
let duplicateIndex;
|
|
28857
29195
|
let duplicate;
|
|
28858
29196
|
if (objectOrArray) {
|
|
28859
29197
|
duplicateIndex = state.duplicates.indexOf(object);
|
|
28860
29198
|
duplicate = duplicateIndex !== -1;
|
|
28861
29199
|
}
|
|
28862
|
-
if (state.tag !== null && state.tag !== "?" || duplicate || state.indent !== 2 && level > 0)
|
|
29200
|
+
if (state.tag !== null && state.tag !== "?" || duplicate || state.indent !== 2 && level > 0) {
|
|
28863
29201
|
compact = false;
|
|
28864
|
-
|
|
29202
|
+
}
|
|
29203
|
+
if (duplicate && state.usedDuplicates[duplicateIndex]) {
|
|
28865
29204
|
state.dump = "*ref_" + duplicateIndex;
|
|
28866
|
-
else {
|
|
28867
|
-
if (objectOrArray && duplicate && !state.usedDuplicates[duplicateIndex])
|
|
29205
|
+
} else {
|
|
29206
|
+
if (objectOrArray && duplicate && !state.usedDuplicates[duplicateIndex]) {
|
|
28868
29207
|
state.usedDuplicates[duplicateIndex] = true;
|
|
28869
|
-
|
|
29208
|
+
}
|
|
29209
|
+
if (type2 === "[object Object]") {
|
|
28870
29210
|
if (block && Object.keys(state.dump).length !== 0) {
|
|
28871
29211
|
writeBlockMapping(state, level, state.dump, compact);
|
|
28872
|
-
if (duplicate)
|
|
29212
|
+
if (duplicate) {
|
|
28873
29213
|
state.dump = "&ref_" + duplicateIndex + state.dump;
|
|
29214
|
+
}
|
|
28874
29215
|
} else {
|
|
28875
29216
|
writeFlowMapping(state, level, state.dump);
|
|
28876
|
-
if (duplicate)
|
|
29217
|
+
if (duplicate) {
|
|
28877
29218
|
state.dump = "&ref_" + duplicateIndex + " " + state.dump;
|
|
29219
|
+
}
|
|
28878
29220
|
}
|
|
28879
|
-
else if (
|
|
29221
|
+
} else if (type2 === "[object Array]") {
|
|
28880
29222
|
if (block && state.dump.length !== 0) {
|
|
28881
|
-
if (state.noArrayIndent && !isblockseq && level > 0)
|
|
29223
|
+
if (state.noArrayIndent && !isblockseq && level > 0) {
|
|
28882
29224
|
writeBlockSequence(state, level - 1, state.dump, compact);
|
|
28883
|
-
else
|
|
29225
|
+
} else {
|
|
28884
29226
|
writeBlockSequence(state, level, state.dump, compact);
|
|
28885
|
-
|
|
29227
|
+
}
|
|
29228
|
+
if (duplicate) {
|
|
28886
29229
|
state.dump = "&ref_" + duplicateIndex + state.dump;
|
|
29230
|
+
}
|
|
28887
29231
|
} else {
|
|
28888
29232
|
writeFlowSequence(state, level, state.dump);
|
|
28889
|
-
if (duplicate)
|
|
29233
|
+
if (duplicate) {
|
|
28890
29234
|
state.dump = "&ref_" + duplicateIndex + " " + state.dump;
|
|
29235
|
+
}
|
|
28891
29236
|
}
|
|
28892
|
-
else if (
|
|
28893
|
-
if (state.tag !== "?")
|
|
29237
|
+
} else if (type2 === "[object String]") {
|
|
29238
|
+
if (state.tag !== "?") {
|
|
28894
29239
|
writeScalar(state, state.dump, level, iskey, inblock);
|
|
28895
|
-
|
|
29240
|
+
}
|
|
29241
|
+
} else if (type2 === "[object Undefined]") {
|
|
28896
29242
|
return false;
|
|
28897
|
-
else {
|
|
29243
|
+
} else {
|
|
28898
29244
|
if (state.skipInvalid)
|
|
28899
29245
|
return false;
|
|
28900
|
-
throw new
|
|
29246
|
+
throw new YAMLException2("unacceptable kind of an object to dump " + type2);
|
|
28901
29247
|
}
|
|
28902
29248
|
if (state.tag !== null && state.tag !== "?") {
|
|
28903
29249
|
let tagStr = encodeURI(state.tag[0] === "!" ? state.tag.slice(1) : state.tag).replace(/!/g, "%21");
|
|
28904
|
-
if (state.tag[0] === "!")
|
|
29250
|
+
if (state.tag[0] === "!") {
|
|
28905
29251
|
tagStr = "!" + tagStr;
|
|
28906
|
-
else if (tagStr.slice(0, 18) === "tag:yaml.org,2002:")
|
|
29252
|
+
} else if (tagStr.slice(0, 18) === "tag:yaml.org,2002:") {
|
|
28907
29253
|
tagStr = "!!" + tagStr.slice(18);
|
|
28908
|
-
else
|
|
29254
|
+
} else {
|
|
28909
29255
|
tagStr = "!<" + tagStr + ">";
|
|
29256
|
+
}
|
|
28910
29257
|
state.dump = tagStr + " " + state.dump;
|
|
28911
29258
|
}
|
|
28912
29259
|
}
|
|
@@ -28917,83 +29264,110 @@ var require_dumper = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
28917
29264
|
const duplicatesIndexes = [];
|
|
28918
29265
|
inspectNode(object, objects, duplicatesIndexes);
|
|
28919
29266
|
const length = duplicatesIndexes.length;
|
|
28920
|
-
for (let index = 0;index < length; index += 1)
|
|
29267
|
+
for (let index = 0;index < length; index += 1) {
|
|
28921
29268
|
state.duplicates.push(objects[duplicatesIndexes[index]]);
|
|
29269
|
+
}
|
|
28922
29270
|
state.usedDuplicates = new Array(length);
|
|
28923
29271
|
}
|
|
28924
29272
|
function inspectNode(object, objects, duplicatesIndexes) {
|
|
28925
29273
|
if (object !== null && typeof object === "object") {
|
|
28926
29274
|
const index = objects.indexOf(object);
|
|
28927
29275
|
if (index !== -1) {
|
|
28928
|
-
if (duplicatesIndexes.indexOf(index) === -1)
|
|
29276
|
+
if (duplicatesIndexes.indexOf(index) === -1) {
|
|
28929
29277
|
duplicatesIndexes.push(index);
|
|
29278
|
+
}
|
|
28930
29279
|
} else {
|
|
28931
29280
|
objects.push(object);
|
|
28932
|
-
if (Array.isArray(object))
|
|
28933
|
-
for (let i = 0, length = object.length;i < length; i += 1)
|
|
29281
|
+
if (Array.isArray(object)) {
|
|
29282
|
+
for (let i = 0, length = object.length;i < length; i += 1) {
|
|
28934
29283
|
inspectNode(object[i], objects, duplicatesIndexes);
|
|
28935
|
-
|
|
29284
|
+
}
|
|
29285
|
+
} else {
|
|
28936
29286
|
const objectKeyList = Object.keys(object);
|
|
28937
|
-
for (let i = 0, length = objectKeyList.length;i < length; i += 1)
|
|
29287
|
+
for (let i = 0, length = objectKeyList.length;i < length; i += 1) {
|
|
28938
29288
|
inspectNode(object[objectKeyList[i]], objects, duplicatesIndexes);
|
|
29289
|
+
}
|
|
28939
29290
|
}
|
|
28940
29291
|
}
|
|
28941
29292
|
}
|
|
28942
29293
|
}
|
|
28943
|
-
function
|
|
29294
|
+
function dump2(input, options) {
|
|
28944
29295
|
options = options || {};
|
|
28945
29296
|
const state = new State(options);
|
|
28946
29297
|
if (!state.noRefs)
|
|
28947
29298
|
getDuplicateReferences(input, state);
|
|
28948
29299
|
let value = input;
|
|
28949
|
-
if (state.replacer)
|
|
29300
|
+
if (state.replacer) {
|
|
28950
29301
|
value = state.replacer.call({ "": value }, "", value);
|
|
29302
|
+
}
|
|
28951
29303
|
if (writeNode(state, 0, value, true, true))
|
|
28952
29304
|
return state.dump + `
|
|
28953
29305
|
`;
|
|
28954
29306
|
return "";
|
|
28955
29307
|
}
|
|
28956
|
-
|
|
28957
|
-
|
|
28958
|
-
|
|
28959
|
-
|
|
28960
|
-
|
|
29308
|
+
dumper.dump = dump2;
|
|
29309
|
+
return dumper;
|
|
29310
|
+
}
|
|
29311
|
+
var hasRequiredJsYaml;
|
|
29312
|
+
function requireJsYaml() {
|
|
29313
|
+
if (hasRequiredJsYaml)
|
|
29314
|
+
return jsYaml;
|
|
29315
|
+
hasRequiredJsYaml = 1;
|
|
29316
|
+
const loader2 = requireLoader();
|
|
29317
|
+
const dumper2 = requireDumper();
|
|
28961
29318
|
function renamed(from, to) {
|
|
28962
29319
|
return function() {
|
|
28963
29320
|
throw new Error("Function yaml." + from + " is removed in js-yaml 4. Use yaml." + to + " instead, which is now safe by default.");
|
|
28964
29321
|
};
|
|
28965
29322
|
}
|
|
28966
|
-
|
|
28967
|
-
|
|
28968
|
-
|
|
28969
|
-
|
|
28970
|
-
|
|
28971
|
-
|
|
28972
|
-
|
|
28973
|
-
|
|
28974
|
-
|
|
28975
|
-
|
|
28976
|
-
|
|
28977
|
-
binary:
|
|
28978
|
-
float:
|
|
28979
|
-
map:
|
|
29323
|
+
jsYaml.Type = requireType();
|
|
29324
|
+
jsYaml.Schema = requireSchema();
|
|
29325
|
+
jsYaml.FAILSAFE_SCHEMA = requireFailsafe();
|
|
29326
|
+
jsYaml.JSON_SCHEMA = requireJson();
|
|
29327
|
+
jsYaml.CORE_SCHEMA = requireCore();
|
|
29328
|
+
jsYaml.DEFAULT_SCHEMA = require_default();
|
|
29329
|
+
jsYaml.load = loader2.load;
|
|
29330
|
+
jsYaml.loadAll = loader2.loadAll;
|
|
29331
|
+
jsYaml.dump = dumper2.dump;
|
|
29332
|
+
jsYaml.YAMLException = requireException();
|
|
29333
|
+
jsYaml.types = {
|
|
29334
|
+
binary: requireBinary(),
|
|
29335
|
+
float: requireFloat(),
|
|
29336
|
+
map: requireMap(),
|
|
28980
29337
|
null: require_null(),
|
|
28981
|
-
pairs:
|
|
28982
|
-
set:
|
|
28983
|
-
timestamp:
|
|
28984
|
-
bool:
|
|
28985
|
-
int:
|
|
28986
|
-
merge:
|
|
28987
|
-
omap:
|
|
28988
|
-
seq:
|
|
28989
|
-
str:
|
|
29338
|
+
pairs: requirePairs(),
|
|
29339
|
+
set: requireSet(),
|
|
29340
|
+
timestamp: requireTimestamp(),
|
|
29341
|
+
bool: requireBool(),
|
|
29342
|
+
int: requireInt(),
|
|
29343
|
+
merge: requireMerge(),
|
|
29344
|
+
omap: requireOmap(),
|
|
29345
|
+
seq: requireSeq(),
|
|
29346
|
+
str: requireStr()
|
|
28990
29347
|
};
|
|
28991
|
-
|
|
28992
|
-
|
|
28993
|
-
|
|
28994
|
-
|
|
28995
|
-
|
|
28996
|
-
var
|
|
29348
|
+
jsYaml.safeLoad = renamed("safeLoad", "load");
|
|
29349
|
+
jsYaml.safeLoadAll = renamed("safeLoadAll", "loadAll");
|
|
29350
|
+
jsYaml.safeDump = renamed("safeDump", "dump");
|
|
29351
|
+
return jsYaml;
|
|
29352
|
+
}
|
|
29353
|
+
var jsYamlExports = requireJsYaml();
|
|
29354
|
+
var yaml = /* @__PURE__ */ getDefaultExportFromCjs(jsYamlExports);
|
|
29355
|
+
var {
|
|
29356
|
+
Type,
|
|
29357
|
+
Schema,
|
|
29358
|
+
FAILSAFE_SCHEMA,
|
|
29359
|
+
JSON_SCHEMA,
|
|
29360
|
+
CORE_SCHEMA,
|
|
29361
|
+
DEFAULT_SCHEMA,
|
|
29362
|
+
load,
|
|
29363
|
+
loadAll,
|
|
29364
|
+
dump,
|
|
29365
|
+
YAMLException,
|
|
29366
|
+
types,
|
|
29367
|
+
safeLoad,
|
|
29368
|
+
safeLoadAll,
|
|
29369
|
+
safeDump
|
|
29370
|
+
} = yaml;
|
|
28997
29371
|
|
|
28998
29372
|
// ../../common/src/logger.ts
|
|
28999
29373
|
init_src();
|
|
@@ -29070,11 +29444,11 @@ class SimpleLogger {
|
|
|
29070
29444
|
const path3 = this.logFilePath || getGlobalLogFilePath();
|
|
29071
29445
|
if (!path3)
|
|
29072
29446
|
return;
|
|
29073
|
-
const
|
|
29447
|
+
const timestamp2 = new Date().toISOString();
|
|
29074
29448
|
this.pendingWrites = Promise.all([
|
|
29075
29449
|
this.pendingWrites,
|
|
29076
29450
|
this.pendingInit
|
|
29077
|
-
]).then(() => getFileSystem().appendFile(path3, `${
|
|
29451
|
+
]).then(() => getFileSystem().appendFile(path3, `${timestamp2} ${formatted}`).catch(() => {}));
|
|
29078
29452
|
}
|
|
29079
29453
|
debug(message, ...args) {
|
|
29080
29454
|
if (this.level > 0 /* DEBUG */)
|
|
@@ -29468,10 +29842,10 @@ class LoggerTelemetryProvider {
|
|
|
29468
29842
|
success
|
|
29469
29843
|
})));
|
|
29470
29844
|
}
|
|
29471
|
-
async trackDependency(name,
|
|
29845
|
+
async trackDependency(name, type2, duration, success, properties) {
|
|
29472
29846
|
logger.debug(formatMessage("Dependency", name, this.enrich({
|
|
29473
29847
|
...properties,
|
|
29474
|
-
type,
|
|
29848
|
+
type: type2,
|
|
29475
29849
|
duration: `${duration}ms`,
|
|
29476
29850
|
success
|
|
29477
29851
|
})));
|
|
@@ -29698,7 +30072,7 @@ class TelemetryService {
|
|
|
29698
30072
|
throw error;
|
|
29699
30073
|
}
|
|
29700
30074
|
}
|
|
29701
|
-
async trackDependencyOperation(name,
|
|
30075
|
+
async trackDependencyOperation(name, type2, fn, properties) {
|
|
29702
30076
|
const parentContext = this.getCurrentContext();
|
|
29703
30077
|
if (!parentContext) {
|
|
29704
30078
|
throw new Error("trackDependencyOperation must be called within a trackRequest block.");
|
|
@@ -29713,13 +30087,13 @@ class TelemetryService {
|
|
|
29713
30087
|
const result = await this.contextStorage.run(childContext, fn);
|
|
29714
30088
|
const durationMs = performance.now() - startTime;
|
|
29715
30089
|
const enrichedProperties = this.enrichPropertiesWithContext(properties, childContext);
|
|
29716
|
-
await this.telemetryProvider.trackDependency(name,
|
|
30090
|
+
await this.telemetryProvider.trackDependency(name, type2, durationMs, true, enrichedProperties);
|
|
29717
30091
|
return result;
|
|
29718
30092
|
} catch (error) {
|
|
29719
30093
|
const durationMs = performance.now() - startTime;
|
|
29720
30094
|
const err = error instanceof Error ? error : new Error(String(error));
|
|
29721
30095
|
const enrichedProperties = this.enrichPropertiesWithContext({ ...properties, errorMessage: err.message }, childContext);
|
|
29722
|
-
await this.telemetryProvider.trackDependency(name,
|
|
30096
|
+
await this.telemetryProvider.trackDependency(name, type2, durationMs, false, enrichedProperties);
|
|
29723
30097
|
throw error;
|
|
29724
30098
|
}
|
|
29725
30099
|
}
|
|
@@ -29926,8 +30300,8 @@ function printOutput(data, format = "json", logFn, asciiSafe = false) {
|
|
|
29926
30300
|
}
|
|
29927
30301
|
switch (format) {
|
|
29928
30302
|
case "json": {
|
|
29929
|
-
const
|
|
29930
|
-
logFn(asciiSafe ? escapeNonAscii(
|
|
30303
|
+
const json2 = JSON.stringify(data, null, 2);
|
|
30304
|
+
logFn(asciiSafe ? escapeNonAscii(json2) : json2);
|
|
29931
30305
|
break;
|
|
29932
30306
|
}
|
|
29933
30307
|
case "yaml":
|
|
@@ -30263,8 +30637,8 @@ var OutputFormatter;
|
|
|
30263
30637
|
const sink = getOutputSink();
|
|
30264
30638
|
const normalized = toPascalCaseData(data);
|
|
30265
30639
|
if (format === "json") {
|
|
30266
|
-
const
|
|
30267
|
-
const safe = needsAsciiSafeJson(sink) ? escapeNonAscii(
|
|
30640
|
+
const json2 = JSON.stringify(normalized);
|
|
30641
|
+
const safe = needsAsciiSafeJson(sink) ? escapeNonAscii(json2) : json2;
|
|
30268
30642
|
sink.writeErr(`${safe}
|
|
30269
30643
|
`);
|
|
30270
30644
|
} else {
|
|
@@ -30514,8 +30888,8 @@ function redactValueDetectors(value) {
|
|
|
30514
30888
|
out = out.replace(JWT_PATTERN, () => REDACTED);
|
|
30515
30889
|
out = out.replace(URL_PATTERN, (match) => {
|
|
30516
30890
|
const trailing = match.match(URL_TRAILING_PUNCT)?.[0] ?? "";
|
|
30517
|
-
const
|
|
30518
|
-
return `${redactUrl(
|
|
30891
|
+
const core2 = trailing ? match.slice(0, -trailing.length) : match;
|
|
30892
|
+
return `${redactUrl(core2)}${trailing}`;
|
|
30519
30893
|
});
|
|
30520
30894
|
out = out.replace(USER_HOME_PATTERN, (_match, sep1, folder, sep2) => `${sep1}${folder}${sep2}<user>`);
|
|
30521
30895
|
out = out.replace(EMAIL_PATTERN, (match) => `email#${shortHash(match)}`);
|
|
@@ -31907,4 +32281,4 @@ program2.name(metadata.commandPrefix).description(metadata.description).version(
|
|
|
31907
32281
|
await registerCommands(program2);
|
|
31908
32282
|
program2.parse(process.argv);
|
|
31909
32283
|
|
|
31910
|
-
//# debugId=
|
|
32284
|
+
//# debugId=FA5F330BCBAABE5264756E2164756E21
|