@uipath/pm-tool 1.198.0-preview.85 → 1.198.0-preview.87
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/tool.js +1094 -720
- package/package.json +2 -2
package/dist/tool.js
CHANGED
|
@@ -16177,7 +16177,7 @@ var require_TimeoutError = __commonJS((exports) => {
|
|
|
16177
16177
|
});
|
|
16178
16178
|
|
|
16179
16179
|
// ../../node_modules/@uipath/robot-client/node_modules/rxjs/internal/operators/map.js
|
|
16180
|
-
var
|
|
16180
|
+
var require_map = __commonJS((exports) => {
|
|
16181
16181
|
var __extends = exports && exports.__extends || function() {
|
|
16182
16182
|
var extendStatics = function(d, b) {
|
|
16183
16183
|
extendStatics = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(d2, b2) {
|
|
@@ -16199,7 +16199,7 @@ var require_map2 = __commonJS((exports) => {
|
|
|
16199
16199
|
}();
|
|
16200
16200
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16201
16201
|
var Subscriber_1 = require_Subscriber();
|
|
16202
|
-
function
|
|
16202
|
+
function map2(project, thisArg) {
|
|
16203
16203
|
return function mapOperation(source) {
|
|
16204
16204
|
if (typeof project !== "function") {
|
|
16205
16205
|
throw new TypeError("argument is not a function. Are you looking for `mapTo()`?");
|
|
@@ -16207,7 +16207,7 @@ var require_map2 = __commonJS((exports) => {
|
|
|
16207
16207
|
return source.lift(new MapOperator(project, thisArg));
|
|
16208
16208
|
};
|
|
16209
16209
|
}
|
|
16210
|
-
exports.map =
|
|
16210
|
+
exports.map = map2;
|
|
16211
16211
|
var MapOperator = function() {
|
|
16212
16212
|
function MapOperator2(project, thisArg) {
|
|
16213
16213
|
this.project = project;
|
|
@@ -16247,7 +16247,7 @@ var require_bindCallback = __commonJS((exports) => {
|
|
|
16247
16247
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16248
16248
|
var Observable_1 = require_Observable();
|
|
16249
16249
|
var AsyncSubject_1 = require_AsyncSubject();
|
|
16250
|
-
var map_1 =
|
|
16250
|
+
var map_1 = require_map();
|
|
16251
16251
|
var canReportError_1 = require_canReportError();
|
|
16252
16252
|
var isArray_1 = require_isArray();
|
|
16253
16253
|
var isScheduler_1 = require_isScheduler();
|
|
@@ -16351,7 +16351,7 @@ var require_bindNodeCallback = __commonJS((exports) => {
|
|
|
16351
16351
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16352
16352
|
var Observable_1 = require_Observable();
|
|
16353
16353
|
var AsyncSubject_1 = require_AsyncSubject();
|
|
16354
|
-
var map_1 =
|
|
16354
|
+
var map_1 = require_map();
|
|
16355
16355
|
var canReportError_1 = require_canReportError();
|
|
16356
16356
|
var isScheduler_1 = require_isScheduler();
|
|
16357
16357
|
var isArray_1 = require_isArray();
|
|
@@ -17141,7 +17141,7 @@ var require_mergeMap = __commonJS((exports) => {
|
|
|
17141
17141
|
};
|
|
17142
17142
|
}();
|
|
17143
17143
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17144
|
-
var map_1 =
|
|
17144
|
+
var map_1 = require_map();
|
|
17145
17145
|
var from_1 = require_from();
|
|
17146
17146
|
var innerSubscribe_1 = require_innerSubscribe();
|
|
17147
17147
|
function mergeMap(project, resultSelector, concurrent) {
|
|
@@ -17312,7 +17312,7 @@ var require_forkJoin = __commonJS((exports) => {
|
|
|
17312
17312
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17313
17313
|
var Observable_1 = require_Observable();
|
|
17314
17314
|
var isArray_1 = require_isArray();
|
|
17315
|
-
var map_1 =
|
|
17315
|
+
var map_1 = require_map();
|
|
17316
17316
|
var isObject_1 = require_isObject();
|
|
17317
17317
|
var from_1 = require_from();
|
|
17318
17318
|
function forkJoin() {
|
|
@@ -17392,7 +17392,7 @@ var require_fromEvent = __commonJS((exports) => {
|
|
|
17392
17392
|
var Observable_1 = require_Observable();
|
|
17393
17393
|
var isArray_1 = require_isArray();
|
|
17394
17394
|
var isFunction_1 = require_isFunction();
|
|
17395
|
-
var map_1 =
|
|
17395
|
+
var map_1 = require_map();
|
|
17396
17396
|
var toString = function() {
|
|
17397
17397
|
return Object.prototype.toString;
|
|
17398
17398
|
}();
|
|
@@ -17464,7 +17464,7 @@ var require_fromEventPattern = __commonJS((exports) => {
|
|
|
17464
17464
|
var Observable_1 = require_Observable();
|
|
17465
17465
|
var isArray_1 = require_isArray();
|
|
17466
17466
|
var isFunction_1 = require_isFunction();
|
|
17467
|
-
var map_1 =
|
|
17467
|
+
var map_1 = require_map();
|
|
17468
17468
|
function fromEventPattern(addHandler, removeHandler, resultSelector) {
|
|
17469
17469
|
if (resultSelector) {
|
|
17470
17470
|
return fromEventPattern(addHandler, removeHandler).pipe(map_1.map(function(args) {
|
|
@@ -17679,13 +17679,13 @@ var require_interval = __commonJS((exports) => {
|
|
|
17679
17679
|
});
|
|
17680
17680
|
|
|
17681
17681
|
// ../../node_modules/@uipath/robot-client/node_modules/rxjs/internal/observable/merge.js
|
|
17682
|
-
var
|
|
17682
|
+
var require_merge = __commonJS((exports) => {
|
|
17683
17683
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17684
17684
|
var Observable_1 = require_Observable();
|
|
17685
17685
|
var isScheduler_1 = require_isScheduler();
|
|
17686
17686
|
var mergeAll_1 = require_mergeAll();
|
|
17687
17687
|
var fromArray_1 = require_fromArray();
|
|
17688
|
-
function
|
|
17688
|
+
function merge2() {
|
|
17689
17689
|
var observables = [];
|
|
17690
17690
|
for (var _i = 0;_i < arguments.length; _i++) {
|
|
17691
17691
|
observables[_i] = arguments[_i];
|
|
@@ -17706,7 +17706,7 @@ var require_merge2 = __commonJS((exports) => {
|
|
|
17706
17706
|
}
|
|
17707
17707
|
return mergeAll_1.mergeAll(concurrent)(fromArray_1.fromArray(observables, scheduler));
|
|
17708
17708
|
}
|
|
17709
|
-
exports.merge =
|
|
17709
|
+
exports.merge = merge2;
|
|
17710
17710
|
});
|
|
17711
17711
|
|
|
17712
17712
|
// ../../node_modules/@uipath/robot-client/node_modules/rxjs/internal/observable/never.js
|
|
@@ -17757,11 +17757,11 @@ var require_onErrorResumeNext = __commonJS((exports) => {
|
|
|
17757
17757
|
});
|
|
17758
17758
|
|
|
17759
17759
|
// ../../node_modules/@uipath/robot-client/node_modules/rxjs/internal/observable/pairs.js
|
|
17760
|
-
var
|
|
17760
|
+
var require_pairs = __commonJS((exports) => {
|
|
17761
17761
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17762
17762
|
var Observable_1 = require_Observable();
|
|
17763
17763
|
var Subscription_1 = require_Subscription();
|
|
17764
|
-
function
|
|
17764
|
+
function pairs2(obj, scheduler) {
|
|
17765
17765
|
if (!scheduler) {
|
|
17766
17766
|
return new Observable_1.Observable(function(subscriber) {
|
|
17767
17767
|
var keys = Object.keys(obj);
|
|
@@ -17782,7 +17782,7 @@ var require_pairs2 = __commonJS((exports) => {
|
|
|
17782
17782
|
});
|
|
17783
17783
|
}
|
|
17784
17784
|
}
|
|
17785
|
-
exports.pairs =
|
|
17785
|
+
exports.pairs = pairs2;
|
|
17786
17786
|
function dispatch(state) {
|
|
17787
17787
|
var { keys, index, subscriber, subscription, obj } = state;
|
|
17788
17788
|
if (!subscriber.closed) {
|
|
@@ -18441,7 +18441,7 @@ var require_rxjs = __commonJS((exports) => {
|
|
|
18441
18441
|
exports.iif = iif_1.iif;
|
|
18442
18442
|
var interval_1 = require_interval();
|
|
18443
18443
|
exports.interval = interval_1.interval;
|
|
18444
|
-
var merge_1 =
|
|
18444
|
+
var merge_1 = require_merge();
|
|
18445
18445
|
exports.merge = merge_1.merge;
|
|
18446
18446
|
var never_1 = require_never();
|
|
18447
18447
|
exports.never = never_1.never;
|
|
@@ -18449,7 +18449,7 @@ var require_rxjs = __commonJS((exports) => {
|
|
|
18449
18449
|
exports.of = of_1.of;
|
|
18450
18450
|
var onErrorResumeNext_1 = require_onErrorResumeNext();
|
|
18451
18451
|
exports.onErrorResumeNext = onErrorResumeNext_1.onErrorResumeNext;
|
|
18452
|
-
var pairs_1 =
|
|
18452
|
+
var pairs_1 = require_pairs();
|
|
18453
18453
|
exports.pairs = pairs_1.pairs;
|
|
18454
18454
|
var partition_1 = require_partition();
|
|
18455
18455
|
exports.partition = partition_1.partition;
|
|
@@ -21230,7 +21230,7 @@ var init_server = __esm(() => {
|
|
|
21230
21230
|
var package_default = {
|
|
21231
21231
|
name: "@uipath/pm-tool",
|
|
21232
21232
|
license: "MIT",
|
|
21233
|
-
version: "1.198.0-preview.
|
|
21233
|
+
version: "1.198.0-preview.87",
|
|
21234
21234
|
description: "Process Mining — process apps, transformations, and data ingestion.",
|
|
21235
21235
|
private: false,
|
|
21236
21236
|
repository: {
|
|
@@ -23372,31 +23372,17 @@ function search(data, expression, options) {
|
|
|
23372
23372
|
}
|
|
23373
23373
|
|
|
23374
23374
|
// ../../node_modules/js-yaml/dist/js-yaml.mjs
|
|
23375
|
-
|
|
23376
|
-
|
|
23377
|
-
|
|
23378
|
-
var
|
|
23379
|
-
var
|
|
23380
|
-
var
|
|
23381
|
-
var
|
|
23382
|
-
|
|
23383
|
-
|
|
23384
|
-
|
|
23385
|
-
|
|
23386
|
-
key = keys[i];
|
|
23387
|
-
if (!__hasOwnProp2.call(to, key) && key !== except)
|
|
23388
|
-
__defProp2(to, key, {
|
|
23389
|
-
get: ((k) => from[k]).bind(null, key),
|
|
23390
|
-
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
23391
|
-
});
|
|
23392
|
-
}
|
|
23393
|
-
return to;
|
|
23394
|
-
};
|
|
23395
|
-
var __toESM2 = (mod2, isNodeMode, target) => (target = mod2 != null ? __create2(__getProtoOf2(mod2)) : {}, __copyProps(isNodeMode || !mod2 || !mod2.__esModule ? __defProp2(target, "default", {
|
|
23396
|
-
value: mod2,
|
|
23397
|
-
enumerable: true
|
|
23398
|
-
}) : target, mod2));
|
|
23399
|
-
var require_common = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
23375
|
+
function getDefaultExportFromCjs(x) {
|
|
23376
|
+
return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, "default") ? x["default"] : x;
|
|
23377
|
+
}
|
|
23378
|
+
var jsYaml = {};
|
|
23379
|
+
var loader = {};
|
|
23380
|
+
var common = {};
|
|
23381
|
+
var hasRequiredCommon;
|
|
23382
|
+
function requireCommon() {
|
|
23383
|
+
if (hasRequiredCommon)
|
|
23384
|
+
return common;
|
|
23385
|
+
hasRequiredCommon = 1;
|
|
23400
23386
|
function isNothing(subject) {
|
|
23401
23387
|
return typeof subject === "undefined" || subject === null;
|
|
23402
23388
|
}
|
|
@@ -23422,55 +23408,71 @@ var require_common = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
23422
23408
|
}
|
|
23423
23409
|
function repeat(string, count) {
|
|
23424
23410
|
let result = "";
|
|
23425
|
-
for (let cycle = 0;cycle < count; cycle += 1)
|
|
23411
|
+
for (let cycle = 0;cycle < count; cycle += 1) {
|
|
23426
23412
|
result += string;
|
|
23413
|
+
}
|
|
23427
23414
|
return result;
|
|
23428
23415
|
}
|
|
23429
23416
|
function isNegativeZero(number) {
|
|
23430
23417
|
return number === 0 && Number.NEGATIVE_INFINITY === 1 / number;
|
|
23431
23418
|
}
|
|
23432
|
-
|
|
23433
|
-
|
|
23434
|
-
|
|
23435
|
-
|
|
23436
|
-
|
|
23437
|
-
|
|
23438
|
-
|
|
23439
|
-
|
|
23440
|
-
|
|
23419
|
+
common.isNothing = isNothing;
|
|
23420
|
+
common.isObject = isObject2;
|
|
23421
|
+
common.toArray = toArray;
|
|
23422
|
+
common.repeat = repeat;
|
|
23423
|
+
common.isNegativeZero = isNegativeZero;
|
|
23424
|
+
common.extend = extend;
|
|
23425
|
+
return common;
|
|
23426
|
+
}
|
|
23427
|
+
var exception;
|
|
23428
|
+
var hasRequiredException;
|
|
23429
|
+
function requireException() {
|
|
23430
|
+
if (hasRequiredException)
|
|
23431
|
+
return exception;
|
|
23432
|
+
hasRequiredException = 1;
|
|
23433
|
+
function formatError(exception2, compact) {
|
|
23441
23434
|
let where = "";
|
|
23442
|
-
const message =
|
|
23443
|
-
if (!
|
|
23435
|
+
const message = exception2.reason || "(unknown reason)";
|
|
23436
|
+
if (!exception2.mark)
|
|
23444
23437
|
return message;
|
|
23445
|
-
if (
|
|
23446
|
-
where += 'in "' +
|
|
23447
|
-
|
|
23448
|
-
|
|
23438
|
+
if (exception2.mark.name) {
|
|
23439
|
+
where += 'in "' + exception2.mark.name + '" ';
|
|
23440
|
+
}
|
|
23441
|
+
where += "(" + (exception2.mark.line + 1) + ":" + (exception2.mark.column + 1) + ")";
|
|
23442
|
+
if (!compact && exception2.mark.snippet) {
|
|
23449
23443
|
where += `
|
|
23450
23444
|
|
|
23451
|
-
` +
|
|
23445
|
+
` + exception2.mark.snippet;
|
|
23446
|
+
}
|
|
23452
23447
|
return message + " " + where;
|
|
23453
23448
|
}
|
|
23454
|
-
function
|
|
23449
|
+
function YAMLException2(reason, mark) {
|
|
23455
23450
|
Error.call(this);
|
|
23456
23451
|
this.name = "YAMLException";
|
|
23457
23452
|
this.reason = reason;
|
|
23458
23453
|
this.mark = mark;
|
|
23459
23454
|
this.message = formatError(this, false);
|
|
23460
|
-
if (Error.captureStackTrace)
|
|
23455
|
+
if (Error.captureStackTrace) {
|
|
23461
23456
|
Error.captureStackTrace(this, this.constructor);
|
|
23462
|
-
else
|
|
23463
|
-
this.stack =
|
|
23457
|
+
} else {
|
|
23458
|
+
this.stack = new Error().stack || "";
|
|
23459
|
+
}
|
|
23464
23460
|
}
|
|
23465
|
-
|
|
23466
|
-
|
|
23467
|
-
|
|
23461
|
+
YAMLException2.prototype = Object.create(Error.prototype);
|
|
23462
|
+
YAMLException2.prototype.constructor = YAMLException2;
|
|
23463
|
+
YAMLException2.prototype.toString = function toString(compact) {
|
|
23468
23464
|
return this.name + ": " + formatError(this, compact);
|
|
23469
23465
|
};
|
|
23470
|
-
|
|
23471
|
-
|
|
23472
|
-
|
|
23473
|
-
|
|
23466
|
+
exception = YAMLException2;
|
|
23467
|
+
return exception;
|
|
23468
|
+
}
|
|
23469
|
+
var snippet;
|
|
23470
|
+
var hasRequiredSnippet;
|
|
23471
|
+
function requireSnippet() {
|
|
23472
|
+
if (hasRequiredSnippet)
|
|
23473
|
+
return snippet;
|
|
23474
|
+
hasRequiredSnippet = 1;
|
|
23475
|
+
const common2 = requireCommon();
|
|
23474
23476
|
function getLine(buffer, lineStart, lineEnd, position, maxLineLength) {
|
|
23475
23477
|
let head = "";
|
|
23476
23478
|
let tail = "";
|
|
@@ -23489,7 +23491,7 @@ var require_snippet = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
23489
23491
|
};
|
|
23490
23492
|
}
|
|
23491
23493
|
function padStart(string, max) {
|
|
23492
|
-
return
|
|
23494
|
+
return common2.repeat(" ", max - string.length) + string;
|
|
23493
23495
|
}
|
|
23494
23496
|
function makeSnippet(mark, options) {
|
|
23495
23497
|
options = Object.create(options || null);
|
|
@@ -23511,8 +23513,9 @@ var require_snippet = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
23511
23513
|
while (match = re.exec(mark.buffer)) {
|
|
23512
23514
|
lineEnds.push(match.index);
|
|
23513
23515
|
lineStarts.push(match.index + match[0].length);
|
|
23514
|
-
if (mark.position <= match.index && foundLineNo < 0)
|
|
23516
|
+
if (mark.position <= match.index && foundLineNo < 0) {
|
|
23515
23517
|
foundLineNo = lineStarts.length - 2;
|
|
23518
|
+
}
|
|
23516
23519
|
}
|
|
23517
23520
|
if (foundLineNo < 0)
|
|
23518
23521
|
foundLineNo = lineStarts.length - 1;
|
|
@@ -23523,28 +23526,34 @@ var require_snippet = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
23523
23526
|
if (foundLineNo - i < 0)
|
|
23524
23527
|
break;
|
|
23525
23528
|
const line2 = getLine(mark.buffer, lineStarts[foundLineNo - i], lineEnds[foundLineNo - i], mark.position - (lineStarts[foundLineNo] - lineStarts[foundLineNo - i]), maxLineLength);
|
|
23526
|
-
result =
|
|
23529
|
+
result = common2.repeat(" ", options.indent) + padStart((mark.line - i + 1).toString(), lineNoLength) + " | " + line2.str + `
|
|
23527
23530
|
` + result;
|
|
23528
23531
|
}
|
|
23529
23532
|
const line = getLine(mark.buffer, lineStarts[foundLineNo], lineEnds[foundLineNo], mark.position, maxLineLength);
|
|
23530
|
-
result +=
|
|
23533
|
+
result += common2.repeat(" ", options.indent) + padStart((mark.line + 1).toString(), lineNoLength) + " | " + line.str + `
|
|
23531
23534
|
`;
|
|
23532
|
-
result +=
|
|
23535
|
+
result += common2.repeat("-", options.indent + lineNoLength + 3 + line.pos) + `^
|
|
23533
23536
|
`;
|
|
23534
23537
|
for (let i = 1;i <= options.linesAfter; i++) {
|
|
23535
23538
|
if (foundLineNo + i >= lineEnds.length)
|
|
23536
23539
|
break;
|
|
23537
23540
|
const line2 = getLine(mark.buffer, lineStarts[foundLineNo + i], lineEnds[foundLineNo + i], mark.position - (lineStarts[foundLineNo] - lineStarts[foundLineNo + i]), maxLineLength);
|
|
23538
|
-
result +=
|
|
23541
|
+
result += common2.repeat(" ", options.indent) + padStart((mark.line + i + 1).toString(), lineNoLength) + " | " + line2.str + `
|
|
23539
23542
|
`;
|
|
23540
23543
|
}
|
|
23541
23544
|
return result.replace(/\n$/, "");
|
|
23542
23545
|
}
|
|
23543
|
-
|
|
23544
|
-
|
|
23545
|
-
|
|
23546
|
-
|
|
23547
|
-
|
|
23546
|
+
snippet = makeSnippet;
|
|
23547
|
+
return snippet;
|
|
23548
|
+
}
|
|
23549
|
+
var type;
|
|
23550
|
+
var hasRequiredType;
|
|
23551
|
+
function requireType() {
|
|
23552
|
+
if (hasRequiredType)
|
|
23553
|
+
return type;
|
|
23554
|
+
hasRequiredType = 1;
|
|
23555
|
+
const YAMLException2 = requireException();
|
|
23556
|
+
const TYPE_CONSTRUCTOR_OPTIONS = [
|
|
23548
23557
|
"kind",
|
|
23549
23558
|
"multi",
|
|
23550
23559
|
"resolve",
|
|
@@ -23556,26 +23565,28 @@ var require_type = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
23556
23565
|
"defaultStyle",
|
|
23557
23566
|
"styleAliases"
|
|
23558
23567
|
];
|
|
23559
|
-
|
|
23568
|
+
const YAML_NODE_KINDS = [
|
|
23560
23569
|
"scalar",
|
|
23561
23570
|
"sequence",
|
|
23562
23571
|
"mapping"
|
|
23563
23572
|
];
|
|
23564
|
-
function compileStyleAliases(
|
|
23573
|
+
function compileStyleAliases(map2) {
|
|
23565
23574
|
const result = {};
|
|
23566
|
-
if (
|
|
23567
|
-
Object.keys(
|
|
23568
|
-
|
|
23575
|
+
if (map2 !== null) {
|
|
23576
|
+
Object.keys(map2).forEach(function(style) {
|
|
23577
|
+
map2[style].forEach(function(alias) {
|
|
23569
23578
|
result[String(alias)] = style;
|
|
23570
23579
|
});
|
|
23571
23580
|
});
|
|
23581
|
+
}
|
|
23572
23582
|
return result;
|
|
23573
23583
|
}
|
|
23574
|
-
function
|
|
23584
|
+
function Type2(tag, options) {
|
|
23575
23585
|
options = options || {};
|
|
23576
23586
|
Object.keys(options).forEach(function(name) {
|
|
23577
|
-
if (TYPE_CONSTRUCTOR_OPTIONS.indexOf(name) === -1)
|
|
23578
|
-
throw new
|
|
23587
|
+
if (TYPE_CONSTRUCTOR_OPTIONS.indexOf(name) === -1) {
|
|
23588
|
+
throw new YAMLException2('Unknown option "' + name + '" is met in definition of "' + tag + '" YAML type.');
|
|
23589
|
+
}
|
|
23579
23590
|
});
|
|
23580
23591
|
this.options = options;
|
|
23581
23592
|
this.tag = tag;
|
|
@@ -23593,21 +23604,29 @@ var require_type = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
23593
23604
|
this.defaultStyle = options["defaultStyle"] || null;
|
|
23594
23605
|
this.multi = options["multi"] || false;
|
|
23595
23606
|
this.styleAliases = compileStyleAliases(options["styleAliases"] || null);
|
|
23596
|
-
if (YAML_NODE_KINDS.indexOf(this.kind) === -1)
|
|
23597
|
-
throw new
|
|
23607
|
+
if (YAML_NODE_KINDS.indexOf(this.kind) === -1) {
|
|
23608
|
+
throw new YAMLException2('Unknown kind "' + this.kind + '" is specified for "' + tag + '" YAML type.');
|
|
23609
|
+
}
|
|
23598
23610
|
}
|
|
23599
|
-
|
|
23600
|
-
|
|
23601
|
-
|
|
23602
|
-
|
|
23603
|
-
|
|
23604
|
-
|
|
23611
|
+
type = Type2;
|
|
23612
|
+
return type;
|
|
23613
|
+
}
|
|
23614
|
+
var schema;
|
|
23615
|
+
var hasRequiredSchema;
|
|
23616
|
+
function requireSchema() {
|
|
23617
|
+
if (hasRequiredSchema)
|
|
23618
|
+
return schema;
|
|
23619
|
+
hasRequiredSchema = 1;
|
|
23620
|
+
const YAMLException2 = requireException();
|
|
23621
|
+
const Type2 = requireType();
|
|
23622
|
+
function compileList(schema2, name) {
|
|
23605
23623
|
const result = [];
|
|
23606
|
-
|
|
23624
|
+
schema2[name].forEach(function(currentType) {
|
|
23607
23625
|
let newIndex = result.length;
|
|
23608
23626
|
result.forEach(function(previousType, previousIndex) {
|
|
23609
|
-
if (previousType.tag === currentType.tag && previousType.kind === currentType.kind && previousType.multi === currentType.multi)
|
|
23627
|
+
if (previousType.tag === currentType.tag && previousType.kind === currentType.kind && previousType.multi === currentType.multi) {
|
|
23610
23628
|
newIndex = previousIndex;
|
|
23629
|
+
}
|
|
23611
23630
|
});
|
|
23612
23631
|
result[newIndex] = currentType;
|
|
23613
23632
|
});
|
|
@@ -23626,47 +23645,54 @@ var require_schema = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
23626
23645
|
fallback: []
|
|
23627
23646
|
}
|
|
23628
23647
|
};
|
|
23629
|
-
function collectType(
|
|
23630
|
-
if (
|
|
23631
|
-
result.multi[
|
|
23632
|
-
result.multi["fallback"].push(
|
|
23633
|
-
} else
|
|
23634
|
-
result[
|
|
23648
|
+
function collectType(type2) {
|
|
23649
|
+
if (type2.multi) {
|
|
23650
|
+
result.multi[type2.kind].push(type2);
|
|
23651
|
+
result.multi["fallback"].push(type2);
|
|
23652
|
+
} else {
|
|
23653
|
+
result[type2.kind][type2.tag] = result["fallback"][type2.tag] = type2;
|
|
23654
|
+
}
|
|
23635
23655
|
}
|
|
23636
|
-
for (let index = 0, length = arguments.length;index < length; index += 1)
|
|
23656
|
+
for (let index = 0, length = arguments.length;index < length; index += 1) {
|
|
23637
23657
|
arguments[index].forEach(collectType);
|
|
23658
|
+
}
|
|
23638
23659
|
return result;
|
|
23639
23660
|
}
|
|
23640
|
-
function
|
|
23661
|
+
function Schema2(definition) {
|
|
23641
23662
|
return this.extend(definition);
|
|
23642
23663
|
}
|
|
23643
|
-
|
|
23664
|
+
Schema2.prototype.extend = function extend(definition) {
|
|
23644
23665
|
let implicit = [];
|
|
23645
23666
|
let explicit = [];
|
|
23646
|
-
if (definition instanceof
|
|
23667
|
+
if (definition instanceof Type2) {
|
|
23647
23668
|
explicit.push(definition);
|
|
23648
|
-
else if (Array.isArray(definition))
|
|
23669
|
+
} else if (Array.isArray(definition)) {
|
|
23649
23670
|
explicit = explicit.concat(definition);
|
|
23650
|
-
else if (definition && (Array.isArray(definition.implicit) || Array.isArray(definition.explicit))) {
|
|
23671
|
+
} else if (definition && (Array.isArray(definition.implicit) || Array.isArray(definition.explicit))) {
|
|
23651
23672
|
if (definition.implicit)
|
|
23652
23673
|
implicit = implicit.concat(definition.implicit);
|
|
23653
23674
|
if (definition.explicit)
|
|
23654
23675
|
explicit = explicit.concat(definition.explicit);
|
|
23655
|
-
} else
|
|
23656
|
-
throw new
|
|
23657
|
-
|
|
23658
|
-
|
|
23659
|
-
|
|
23660
|
-
|
|
23661
|
-
|
|
23662
|
-
if (
|
|
23663
|
-
throw new
|
|
23676
|
+
} else {
|
|
23677
|
+
throw new YAMLException2("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })");
|
|
23678
|
+
}
|
|
23679
|
+
implicit.forEach(function(type2) {
|
|
23680
|
+
if (!(type2 instanceof Type2)) {
|
|
23681
|
+
throw new YAMLException2("Specified list of YAML types (or a single Type object) contains a non-Type object.");
|
|
23682
|
+
}
|
|
23683
|
+
if (type2.loadKind && type2.loadKind !== "scalar") {
|
|
23684
|
+
throw new YAMLException2("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.");
|
|
23685
|
+
}
|
|
23686
|
+
if (type2.multi) {
|
|
23687
|
+
throw new YAMLException2("There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.");
|
|
23688
|
+
}
|
|
23664
23689
|
});
|
|
23665
|
-
explicit.forEach(function(
|
|
23666
|
-
if (!(
|
|
23667
|
-
throw new
|
|
23690
|
+
explicit.forEach(function(type2) {
|
|
23691
|
+
if (!(type2 instanceof Type2)) {
|
|
23692
|
+
throw new YAMLException2("Specified list of YAML types (or a single Type object) contains a non-Type object.");
|
|
23693
|
+
}
|
|
23668
23694
|
});
|
|
23669
|
-
const result = Object.create(
|
|
23695
|
+
const result = Object.create(Schema2.prototype);
|
|
23670
23696
|
result.implicit = (this.implicit || []).concat(implicit);
|
|
23671
23697
|
result.explicit = (this.explicit || []).concat(explicit);
|
|
23672
23698
|
result.compiledImplicit = compileList(result, "implicit");
|
|
@@ -23674,41 +23700,77 @@ var require_schema = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
23674
23700
|
result.compiledTypeMap = compileMap(result.compiledImplicit, result.compiledExplicit);
|
|
23675
23701
|
return result;
|
|
23676
23702
|
};
|
|
23677
|
-
|
|
23678
|
-
|
|
23679
|
-
|
|
23680
|
-
|
|
23703
|
+
schema = Schema2;
|
|
23704
|
+
return schema;
|
|
23705
|
+
}
|
|
23706
|
+
var str;
|
|
23707
|
+
var hasRequiredStr;
|
|
23708
|
+
function requireStr() {
|
|
23709
|
+
if (hasRequiredStr)
|
|
23710
|
+
return str;
|
|
23711
|
+
hasRequiredStr = 1;
|
|
23712
|
+
const Type2 = requireType();
|
|
23713
|
+
str = new Type2("tag:yaml.org,2002:str", {
|
|
23681
23714
|
kind: "scalar",
|
|
23682
23715
|
construct: function(data) {
|
|
23683
23716
|
return data !== null ? data : "";
|
|
23684
23717
|
}
|
|
23685
23718
|
});
|
|
23686
|
-
|
|
23687
|
-
|
|
23688
|
-
|
|
23719
|
+
return str;
|
|
23720
|
+
}
|
|
23721
|
+
var seq;
|
|
23722
|
+
var hasRequiredSeq;
|
|
23723
|
+
function requireSeq() {
|
|
23724
|
+
if (hasRequiredSeq)
|
|
23725
|
+
return seq;
|
|
23726
|
+
hasRequiredSeq = 1;
|
|
23727
|
+
const Type2 = requireType();
|
|
23728
|
+
seq = new Type2("tag:yaml.org,2002:seq", {
|
|
23689
23729
|
kind: "sequence",
|
|
23690
23730
|
construct: function(data) {
|
|
23691
23731
|
return data !== null ? data : [];
|
|
23692
23732
|
}
|
|
23693
23733
|
});
|
|
23694
|
-
|
|
23695
|
-
|
|
23696
|
-
|
|
23734
|
+
return seq;
|
|
23735
|
+
}
|
|
23736
|
+
var map;
|
|
23737
|
+
var hasRequiredMap;
|
|
23738
|
+
function requireMap() {
|
|
23739
|
+
if (hasRequiredMap)
|
|
23740
|
+
return map;
|
|
23741
|
+
hasRequiredMap = 1;
|
|
23742
|
+
const Type2 = requireType();
|
|
23743
|
+
map = new Type2("tag:yaml.org,2002:map", {
|
|
23697
23744
|
kind: "mapping",
|
|
23698
23745
|
construct: function(data) {
|
|
23699
23746
|
return data !== null ? data : {};
|
|
23700
23747
|
}
|
|
23701
23748
|
});
|
|
23702
|
-
|
|
23703
|
-
|
|
23704
|
-
|
|
23705
|
-
|
|
23706
|
-
|
|
23707
|
-
|
|
23708
|
-
|
|
23709
|
-
|
|
23710
|
-
|
|
23711
|
-
|
|
23749
|
+
return map;
|
|
23750
|
+
}
|
|
23751
|
+
var failsafe;
|
|
23752
|
+
var hasRequiredFailsafe;
|
|
23753
|
+
function requireFailsafe() {
|
|
23754
|
+
if (hasRequiredFailsafe)
|
|
23755
|
+
return failsafe;
|
|
23756
|
+
hasRequiredFailsafe = 1;
|
|
23757
|
+
const Schema2 = requireSchema();
|
|
23758
|
+
failsafe = new Schema2({
|
|
23759
|
+
explicit: [
|
|
23760
|
+
requireStr(),
|
|
23761
|
+
requireSeq(),
|
|
23762
|
+
requireMap()
|
|
23763
|
+
]
|
|
23764
|
+
});
|
|
23765
|
+
return failsafe;
|
|
23766
|
+
}
|
|
23767
|
+
var _null;
|
|
23768
|
+
var hasRequired_null;
|
|
23769
|
+
function require_null() {
|
|
23770
|
+
if (hasRequired_null)
|
|
23771
|
+
return _null;
|
|
23772
|
+
hasRequired_null = 1;
|
|
23773
|
+
const Type2 = requireType();
|
|
23712
23774
|
function resolveYamlNull(data) {
|
|
23713
23775
|
if (data === null)
|
|
23714
23776
|
return true;
|
|
@@ -23721,7 +23783,7 @@ var require_null = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
23721
23783
|
function isNull(object) {
|
|
23722
23784
|
return object === null;
|
|
23723
23785
|
}
|
|
23724
|
-
|
|
23786
|
+
_null = new Type2("tag:yaml.org,2002:null", {
|
|
23725
23787
|
kind: "scalar",
|
|
23726
23788
|
resolve: resolveYamlNull,
|
|
23727
23789
|
construct: constructYamlNull,
|
|
@@ -23745,9 +23807,15 @@ var require_null = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
23745
23807
|
},
|
|
23746
23808
|
defaultStyle: "lowercase"
|
|
23747
23809
|
});
|
|
23748
|
-
|
|
23749
|
-
|
|
23750
|
-
|
|
23810
|
+
return _null;
|
|
23811
|
+
}
|
|
23812
|
+
var bool;
|
|
23813
|
+
var hasRequiredBool;
|
|
23814
|
+
function requireBool() {
|
|
23815
|
+
if (hasRequiredBool)
|
|
23816
|
+
return bool;
|
|
23817
|
+
hasRequiredBool = 1;
|
|
23818
|
+
const Type2 = requireType();
|
|
23751
23819
|
function resolveYamlBoolean(data) {
|
|
23752
23820
|
if (data === null)
|
|
23753
23821
|
return false;
|
|
@@ -23760,7 +23828,7 @@ var require_bool = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
23760
23828
|
function isBoolean(object) {
|
|
23761
23829
|
return Object.prototype.toString.call(object) === "[object Boolean]";
|
|
23762
23830
|
}
|
|
23763
|
-
|
|
23831
|
+
bool = new Type2("tag:yaml.org,2002:bool", {
|
|
23764
23832
|
kind: "scalar",
|
|
23765
23833
|
resolve: resolveYamlBoolean,
|
|
23766
23834
|
construct: constructYamlBoolean,
|
|
@@ -23778,10 +23846,16 @@ var require_bool = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
23778
23846
|
},
|
|
23779
23847
|
defaultStyle: "lowercase"
|
|
23780
23848
|
});
|
|
23781
|
-
|
|
23782
|
-
|
|
23783
|
-
|
|
23784
|
-
|
|
23849
|
+
return bool;
|
|
23850
|
+
}
|
|
23851
|
+
var int;
|
|
23852
|
+
var hasRequiredInt;
|
|
23853
|
+
function requireInt() {
|
|
23854
|
+
if (hasRequiredInt)
|
|
23855
|
+
return int;
|
|
23856
|
+
hasRequiredInt = 1;
|
|
23857
|
+
const common2 = requireCommon();
|
|
23858
|
+
const Type2 = requireType();
|
|
23785
23859
|
function isHexCode(c) {
|
|
23786
23860
|
return c >= 48 && c <= 57 || c >= 65 && c <= 70 || c >= 97 && c <= 102;
|
|
23787
23861
|
}
|
|
@@ -23800,8 +23874,9 @@ var require_int = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
23800
23874
|
if (!max)
|
|
23801
23875
|
return false;
|
|
23802
23876
|
let ch = data[index];
|
|
23803
|
-
if (ch === "-" || ch === "+")
|
|
23877
|
+
if (ch === "-" || ch === "+") {
|
|
23804
23878
|
ch = data[++index];
|
|
23879
|
+
}
|
|
23805
23880
|
if (ch === "0") {
|
|
23806
23881
|
if (index + 1 === max)
|
|
23807
23882
|
return true;
|
|
@@ -23814,7 +23889,7 @@ var require_int = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
23814
23889
|
return false;
|
|
23815
23890
|
hasDigits = true;
|
|
23816
23891
|
}
|
|
23817
|
-
return hasDigits &&
|
|
23892
|
+
return hasDigits && isFinite(parseYamlInteger(data));
|
|
23818
23893
|
}
|
|
23819
23894
|
if (ch === "x") {
|
|
23820
23895
|
index++;
|
|
@@ -23823,7 +23898,7 @@ var require_int = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
23823
23898
|
return false;
|
|
23824
23899
|
hasDigits = true;
|
|
23825
23900
|
}
|
|
23826
|
-
return hasDigits &&
|
|
23901
|
+
return hasDigits && isFinite(parseYamlInteger(data));
|
|
23827
23902
|
}
|
|
23828
23903
|
if (ch === "o") {
|
|
23829
23904
|
index++;
|
|
@@ -23832,17 +23907,18 @@ var require_int = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
23832
23907
|
return false;
|
|
23833
23908
|
hasDigits = true;
|
|
23834
23909
|
}
|
|
23835
|
-
return hasDigits &&
|
|
23910
|
+
return hasDigits && isFinite(parseYamlInteger(data));
|
|
23836
23911
|
}
|
|
23837
23912
|
}
|
|
23838
23913
|
for (;index < max; index++) {
|
|
23839
|
-
if (!isDecCode(data.charCodeAt(index)))
|
|
23914
|
+
if (!isDecCode(data.charCodeAt(index))) {
|
|
23840
23915
|
return false;
|
|
23916
|
+
}
|
|
23841
23917
|
hasDigits = true;
|
|
23842
23918
|
}
|
|
23843
23919
|
if (!hasDigits)
|
|
23844
23920
|
return false;
|
|
23845
|
-
return
|
|
23921
|
+
return isFinite(parseYamlInteger(data));
|
|
23846
23922
|
}
|
|
23847
23923
|
function parseYamlInteger(data) {
|
|
23848
23924
|
let value = data;
|
|
@@ -23870,9 +23946,9 @@ var require_int = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
23870
23946
|
return parseYamlInteger(data);
|
|
23871
23947
|
}
|
|
23872
23948
|
function isInteger(object) {
|
|
23873
|
-
return Object.prototype.toString.call(object) === "[object Number]" && object % 1 === 0 && !
|
|
23949
|
+
return Object.prototype.toString.call(object) === "[object Number]" && (object % 1 === 0 && !common2.isNegativeZero(object));
|
|
23874
23950
|
}
|
|
23875
|
-
|
|
23951
|
+
int = new Type2("tag:yaml.org,2002:int", {
|
|
23876
23952
|
kind: "scalar",
|
|
23877
23953
|
resolve: resolveYamlInteger,
|
|
23878
23954
|
construct: constructYamlInteger,
|
|
@@ -23899,35 +23975,45 @@ var require_int = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
23899
23975
|
hexadecimal: [16, "hex"]
|
|
23900
23976
|
}
|
|
23901
23977
|
});
|
|
23902
|
-
|
|
23903
|
-
|
|
23904
|
-
|
|
23905
|
-
|
|
23906
|
-
|
|
23907
|
-
|
|
23978
|
+
return int;
|
|
23979
|
+
}
|
|
23980
|
+
var float;
|
|
23981
|
+
var hasRequiredFloat;
|
|
23982
|
+
function requireFloat() {
|
|
23983
|
+
if (hasRequiredFloat)
|
|
23984
|
+
return float;
|
|
23985
|
+
hasRequiredFloat = 1;
|
|
23986
|
+
const common2 = requireCommon();
|
|
23987
|
+
const Type2 = requireType();
|
|
23988
|
+
const YAML_FLOAT_PATTERN = new RegExp("^(?:[-+]?(?:[0-9]+)(?:\\.[0-9]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");
|
|
23989
|
+
const YAML_FLOAT_SPECIAL_PATTERN = new RegExp("^(?:[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");
|
|
23908
23990
|
function resolveYamlFloat(data) {
|
|
23909
23991
|
if (data === null)
|
|
23910
23992
|
return false;
|
|
23911
|
-
if (!YAML_FLOAT_PATTERN.test(data))
|
|
23993
|
+
if (!YAML_FLOAT_PATTERN.test(data)) {
|
|
23912
23994
|
return false;
|
|
23913
|
-
|
|
23995
|
+
}
|
|
23996
|
+
if (isFinite(parseFloat(data, 10))) {
|
|
23914
23997
|
return true;
|
|
23998
|
+
}
|
|
23915
23999
|
return YAML_FLOAT_SPECIAL_PATTERN.test(data);
|
|
23916
24000
|
}
|
|
23917
24001
|
function constructYamlFloat(data) {
|
|
23918
24002
|
let value = data.toLowerCase();
|
|
23919
24003
|
const sign = value[0] === "-" ? -1 : 1;
|
|
23920
|
-
if ("+-".indexOf(value[0]) >= 0)
|
|
24004
|
+
if ("+-".indexOf(value[0]) >= 0) {
|
|
23921
24005
|
value = value.slice(1);
|
|
23922
|
-
|
|
24006
|
+
}
|
|
24007
|
+
if (value === ".inf") {
|
|
23923
24008
|
return sign === 1 ? Number.POSITIVE_INFINITY : Number.NEGATIVE_INFINITY;
|
|
23924
|
-
else if (value === ".nan")
|
|
24009
|
+
} else if (value === ".nan") {
|
|
23925
24010
|
return NaN;
|
|
24011
|
+
}
|
|
23926
24012
|
return sign * parseFloat(value, 10);
|
|
23927
24013
|
}
|
|
23928
|
-
|
|
24014
|
+
const SCIENTIFIC_WITHOUT_DOT = /^[-+]?[0-9]+e/;
|
|
23929
24015
|
function representYamlFloat(object, style) {
|
|
23930
|
-
if (isNaN(object))
|
|
24016
|
+
if (isNaN(object)) {
|
|
23931
24017
|
switch (style) {
|
|
23932
24018
|
case "lowercase":
|
|
23933
24019
|
return ".nan";
|
|
@@ -23936,7 +24022,7 @@ var require_float = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
23936
24022
|
case "camelcase":
|
|
23937
24023
|
return ".NaN";
|
|
23938
24024
|
}
|
|
23939
|
-
else if (Number.POSITIVE_INFINITY === object)
|
|
24025
|
+
} else if (Number.POSITIVE_INFINITY === object) {
|
|
23940
24026
|
switch (style) {
|
|
23941
24027
|
case "lowercase":
|
|
23942
24028
|
return ".inf";
|
|
@@ -23945,7 +24031,7 @@ var require_float = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
23945
24031
|
case "camelcase":
|
|
23946
24032
|
return ".Inf";
|
|
23947
24033
|
}
|
|
23948
|
-
else if (Number.NEGATIVE_INFINITY === object)
|
|
24034
|
+
} else if (Number.NEGATIVE_INFINITY === object) {
|
|
23949
24035
|
switch (style) {
|
|
23950
24036
|
case "lowercase":
|
|
23951
24037
|
return "-.inf";
|
|
@@ -23954,15 +24040,16 @@ var require_float = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
23954
24040
|
case "camelcase":
|
|
23955
24041
|
return "-.Inf";
|
|
23956
24042
|
}
|
|
23957
|
-
else if (
|
|
24043
|
+
} else if (common2.isNegativeZero(object)) {
|
|
23958
24044
|
return "-0.0";
|
|
24045
|
+
}
|
|
23959
24046
|
const res = object.toString(10);
|
|
23960
24047
|
return SCIENTIFIC_WITHOUT_DOT.test(res) ? res.replace("e", ".e") : res;
|
|
23961
24048
|
}
|
|
23962
24049
|
function isFloat(object) {
|
|
23963
|
-
return Object.prototype.toString.call(object) === "[object Number]" && (object % 1 !== 0 ||
|
|
24050
|
+
return Object.prototype.toString.call(object) === "[object Number]" && (object % 1 !== 0 || common2.isNegativeZero(object));
|
|
23964
24051
|
}
|
|
23965
|
-
|
|
24052
|
+
float = new Type2("tag:yaml.org,2002:float", {
|
|
23966
24053
|
kind: "scalar",
|
|
23967
24054
|
resolve: resolveYamlFloat,
|
|
23968
24055
|
construct: constructYamlFloat,
|
|
@@ -23970,22 +24057,42 @@ var require_float = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
23970
24057
|
represent: representYamlFloat,
|
|
23971
24058
|
defaultStyle: "lowercase"
|
|
23972
24059
|
});
|
|
23973
|
-
|
|
23974
|
-
|
|
23975
|
-
|
|
23976
|
-
|
|
23977
|
-
|
|
23978
|
-
|
|
23979
|
-
|
|
23980
|
-
|
|
23981
|
-
|
|
23982
|
-
|
|
23983
|
-
|
|
23984
|
-
|
|
23985
|
-
|
|
23986
|
-
|
|
23987
|
-
|
|
23988
|
-
|
|
24060
|
+
return float;
|
|
24061
|
+
}
|
|
24062
|
+
var json;
|
|
24063
|
+
var hasRequiredJson;
|
|
24064
|
+
function requireJson() {
|
|
24065
|
+
if (hasRequiredJson)
|
|
24066
|
+
return json;
|
|
24067
|
+
hasRequiredJson = 1;
|
|
24068
|
+
json = requireFailsafe().extend({
|
|
24069
|
+
implicit: [
|
|
24070
|
+
require_null(),
|
|
24071
|
+
requireBool(),
|
|
24072
|
+
requireInt(),
|
|
24073
|
+
requireFloat()
|
|
24074
|
+
]
|
|
24075
|
+
});
|
|
24076
|
+
return json;
|
|
24077
|
+
}
|
|
24078
|
+
var core;
|
|
24079
|
+
var hasRequiredCore;
|
|
24080
|
+
function requireCore() {
|
|
24081
|
+
if (hasRequiredCore)
|
|
24082
|
+
return core;
|
|
24083
|
+
hasRequiredCore = 1;
|
|
24084
|
+
core = requireJson();
|
|
24085
|
+
return core;
|
|
24086
|
+
}
|
|
24087
|
+
var timestamp;
|
|
24088
|
+
var hasRequiredTimestamp;
|
|
24089
|
+
function requireTimestamp() {
|
|
24090
|
+
if (hasRequiredTimestamp)
|
|
24091
|
+
return timestamp;
|
|
24092
|
+
hasRequiredTimestamp = 1;
|
|
24093
|
+
const Type2 = requireType();
|
|
24094
|
+
const YAML_DATE_REGEXP = new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$");
|
|
24095
|
+
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]))?))?$");
|
|
23989
24096
|
function resolveYamlTimestamp(data) {
|
|
23990
24097
|
if (data === null)
|
|
23991
24098
|
return false;
|
|
@@ -24006,15 +24113,17 @@ var require_timestamp = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
24006
24113
|
const year = +match[1];
|
|
24007
24114
|
const month = +match[2] - 1;
|
|
24008
24115
|
const day = +match[3];
|
|
24009
|
-
if (!match[4])
|
|
24116
|
+
if (!match[4]) {
|
|
24010
24117
|
return new Date(Date.UTC(year, month, day));
|
|
24118
|
+
}
|
|
24011
24119
|
const hour = +match[4];
|
|
24012
24120
|
const minute = +match[5];
|
|
24013
24121
|
const second = +match[6];
|
|
24014
24122
|
if (match[7]) {
|
|
24015
24123
|
fraction = match[7].slice(0, 3);
|
|
24016
|
-
while (fraction.length < 3)
|
|
24124
|
+
while (fraction.length < 3) {
|
|
24017
24125
|
fraction += "0";
|
|
24126
|
+
}
|
|
24018
24127
|
fraction = +fraction;
|
|
24019
24128
|
}
|
|
24020
24129
|
if (match[9]) {
|
|
@@ -24032,36 +24141,48 @@ var require_timestamp = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
24032
24141
|
function representYamlTimestamp(object) {
|
|
24033
24142
|
return object.toISOString();
|
|
24034
24143
|
}
|
|
24035
|
-
|
|
24144
|
+
timestamp = new Type2("tag:yaml.org,2002:timestamp", {
|
|
24036
24145
|
kind: "scalar",
|
|
24037
24146
|
resolve: resolveYamlTimestamp,
|
|
24038
24147
|
construct: constructYamlTimestamp,
|
|
24039
24148
|
instanceOf: Date,
|
|
24040
24149
|
represent: representYamlTimestamp
|
|
24041
24150
|
});
|
|
24042
|
-
|
|
24043
|
-
|
|
24044
|
-
|
|
24151
|
+
return timestamp;
|
|
24152
|
+
}
|
|
24153
|
+
var merge;
|
|
24154
|
+
var hasRequiredMerge;
|
|
24155
|
+
function requireMerge() {
|
|
24156
|
+
if (hasRequiredMerge)
|
|
24157
|
+
return merge;
|
|
24158
|
+
hasRequiredMerge = 1;
|
|
24159
|
+
const Type2 = requireType();
|
|
24045
24160
|
function resolveYamlMerge(data) {
|
|
24046
24161
|
return data === "<<" || data === null;
|
|
24047
24162
|
}
|
|
24048
|
-
|
|
24163
|
+
merge = new Type2("tag:yaml.org,2002:merge", {
|
|
24049
24164
|
kind: "scalar",
|
|
24050
24165
|
resolve: resolveYamlMerge
|
|
24051
24166
|
});
|
|
24052
|
-
|
|
24053
|
-
|
|
24054
|
-
|
|
24055
|
-
|
|
24167
|
+
return merge;
|
|
24168
|
+
}
|
|
24169
|
+
var binary;
|
|
24170
|
+
var hasRequiredBinary;
|
|
24171
|
+
function requireBinary() {
|
|
24172
|
+
if (hasRequiredBinary)
|
|
24173
|
+
return binary;
|
|
24174
|
+
hasRequiredBinary = 1;
|
|
24175
|
+
const Type2 = requireType();
|
|
24176
|
+
const BASE64_MAP = `ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
|
|
24056
24177
|
\r`;
|
|
24057
24178
|
function resolveYamlBinary(data) {
|
|
24058
24179
|
if (data === null)
|
|
24059
24180
|
return false;
|
|
24060
24181
|
let bitlen = 0;
|
|
24061
24182
|
const max = data.length;
|
|
24062
|
-
const
|
|
24183
|
+
const map2 = BASE64_MAP;
|
|
24063
24184
|
for (let idx = 0;idx < max; idx++) {
|
|
24064
|
-
const code =
|
|
24185
|
+
const code = map2.indexOf(data.charAt(idx));
|
|
24065
24186
|
if (code > 64)
|
|
24066
24187
|
continue;
|
|
24067
24188
|
if (code < 0)
|
|
@@ -24073,7 +24194,7 @@ var require_binary = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
24073
24194
|
function constructYamlBinary(data) {
|
|
24074
24195
|
const input = data.replace(/[\r\n=]/g, "");
|
|
24075
24196
|
const max = input.length;
|
|
24076
|
-
const
|
|
24197
|
+
const map2 = BASE64_MAP;
|
|
24077
24198
|
let bits = 0;
|
|
24078
24199
|
const result = [];
|
|
24079
24200
|
for (let idx = 0;idx < max; idx++) {
|
|
@@ -24082,7 +24203,7 @@ var require_binary = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
24082
24203
|
result.push(bits >> 8 & 255);
|
|
24083
24204
|
result.push(bits & 255);
|
|
24084
24205
|
}
|
|
24085
|
-
bits = bits << 6 |
|
|
24206
|
+
bits = bits << 6 | map2.indexOf(input.charAt(idx));
|
|
24086
24207
|
}
|
|
24087
24208
|
const tailbits = max % 4 * 6;
|
|
24088
24209
|
if (tailbits === 0) {
|
|
@@ -24092,58 +24213,65 @@ var require_binary = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
24092
24213
|
} else if (tailbits === 18) {
|
|
24093
24214
|
result.push(bits >> 10 & 255);
|
|
24094
24215
|
result.push(bits >> 2 & 255);
|
|
24095
|
-
} else if (tailbits === 12)
|
|
24216
|
+
} else if (tailbits === 12) {
|
|
24096
24217
|
result.push(bits >> 4 & 255);
|
|
24218
|
+
}
|
|
24097
24219
|
return new Uint8Array(result);
|
|
24098
24220
|
}
|
|
24099
24221
|
function representYamlBinary(object) {
|
|
24100
24222
|
let result = "";
|
|
24101
24223
|
let bits = 0;
|
|
24102
24224
|
const max = object.length;
|
|
24103
|
-
const
|
|
24225
|
+
const map2 = BASE64_MAP;
|
|
24104
24226
|
for (let idx = 0;idx < max; idx++) {
|
|
24105
24227
|
if (idx % 3 === 0 && idx) {
|
|
24106
|
-
result +=
|
|
24107
|
-
result +=
|
|
24108
|
-
result +=
|
|
24109
|
-
result +=
|
|
24228
|
+
result += map2[bits >> 18 & 63];
|
|
24229
|
+
result += map2[bits >> 12 & 63];
|
|
24230
|
+
result += map2[bits >> 6 & 63];
|
|
24231
|
+
result += map2[bits & 63];
|
|
24110
24232
|
}
|
|
24111
24233
|
bits = (bits << 8) + object[idx];
|
|
24112
24234
|
}
|
|
24113
24235
|
const tail = max % 3;
|
|
24114
24236
|
if (tail === 0) {
|
|
24115
|
-
result +=
|
|
24116
|
-
result +=
|
|
24117
|
-
result +=
|
|
24118
|
-
result +=
|
|
24237
|
+
result += map2[bits >> 18 & 63];
|
|
24238
|
+
result += map2[bits >> 12 & 63];
|
|
24239
|
+
result += map2[bits >> 6 & 63];
|
|
24240
|
+
result += map2[bits & 63];
|
|
24119
24241
|
} else if (tail === 2) {
|
|
24120
|
-
result +=
|
|
24121
|
-
result +=
|
|
24122
|
-
result +=
|
|
24123
|
-
result +=
|
|
24242
|
+
result += map2[bits >> 10 & 63];
|
|
24243
|
+
result += map2[bits >> 4 & 63];
|
|
24244
|
+
result += map2[bits << 2 & 63];
|
|
24245
|
+
result += map2[64];
|
|
24124
24246
|
} else if (tail === 1) {
|
|
24125
|
-
result +=
|
|
24126
|
-
result +=
|
|
24127
|
-
result +=
|
|
24128
|
-
result +=
|
|
24247
|
+
result += map2[bits >> 2 & 63];
|
|
24248
|
+
result += map2[bits << 4 & 63];
|
|
24249
|
+
result += map2[64];
|
|
24250
|
+
result += map2[64];
|
|
24129
24251
|
}
|
|
24130
24252
|
return result;
|
|
24131
24253
|
}
|
|
24132
24254
|
function isBinary(obj) {
|
|
24133
24255
|
return Object.prototype.toString.call(obj) === "[object Uint8Array]";
|
|
24134
24256
|
}
|
|
24135
|
-
|
|
24257
|
+
binary = new Type2("tag:yaml.org,2002:binary", {
|
|
24136
24258
|
kind: "scalar",
|
|
24137
24259
|
resolve: resolveYamlBinary,
|
|
24138
24260
|
construct: constructYamlBinary,
|
|
24139
24261
|
predicate: isBinary,
|
|
24140
24262
|
represent: representYamlBinary
|
|
24141
24263
|
});
|
|
24142
|
-
|
|
24143
|
-
|
|
24144
|
-
|
|
24145
|
-
|
|
24146
|
-
|
|
24264
|
+
return binary;
|
|
24265
|
+
}
|
|
24266
|
+
var omap;
|
|
24267
|
+
var hasRequiredOmap;
|
|
24268
|
+
function requireOmap() {
|
|
24269
|
+
if (hasRequiredOmap)
|
|
24270
|
+
return omap;
|
|
24271
|
+
hasRequiredOmap = 1;
|
|
24272
|
+
const Type2 = requireType();
|
|
24273
|
+
const _hasOwnProperty = Object.prototype.hasOwnProperty;
|
|
24274
|
+
const _toString = Object.prototype.toString;
|
|
24147
24275
|
function resolveYamlOmap(data) {
|
|
24148
24276
|
if (data === null)
|
|
24149
24277
|
return true;
|
|
@@ -24155,12 +24283,14 @@ var require_omap = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
24155
24283
|
if (_toString.call(pair) !== "[object Object]")
|
|
24156
24284
|
return false;
|
|
24157
24285
|
let pairKey;
|
|
24158
|
-
for (pairKey in pair)
|
|
24159
|
-
if (_hasOwnProperty.call(pair, pairKey))
|
|
24286
|
+
for (pairKey in pair) {
|
|
24287
|
+
if (_hasOwnProperty.call(pair, pairKey)) {
|
|
24160
24288
|
if (!pairHasKey)
|
|
24161
24289
|
pairHasKey = true;
|
|
24162
24290
|
else
|
|
24163
24291
|
return false;
|
|
24292
|
+
}
|
|
24293
|
+
}
|
|
24164
24294
|
if (!pairHasKey)
|
|
24165
24295
|
return false;
|
|
24166
24296
|
if (objectKeys.indexOf(pairKey) === -1)
|
|
@@ -24173,15 +24303,21 @@ var require_omap = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
24173
24303
|
function constructYamlOmap(data) {
|
|
24174
24304
|
return data !== null ? data : [];
|
|
24175
24305
|
}
|
|
24176
|
-
|
|
24306
|
+
omap = new Type2("tag:yaml.org,2002:omap", {
|
|
24177
24307
|
kind: "sequence",
|
|
24178
24308
|
resolve: resolveYamlOmap,
|
|
24179
24309
|
construct: constructYamlOmap
|
|
24180
24310
|
});
|
|
24181
|
-
|
|
24182
|
-
|
|
24183
|
-
|
|
24184
|
-
|
|
24311
|
+
return omap;
|
|
24312
|
+
}
|
|
24313
|
+
var pairs;
|
|
24314
|
+
var hasRequiredPairs;
|
|
24315
|
+
function requirePairs() {
|
|
24316
|
+
if (hasRequiredPairs)
|
|
24317
|
+
return pairs;
|
|
24318
|
+
hasRequiredPairs = 1;
|
|
24319
|
+
const Type2 = requireType();
|
|
24320
|
+
const _toString = Object.prototype.toString;
|
|
24185
24321
|
function resolveYamlPairs(data) {
|
|
24186
24322
|
if (data === null)
|
|
24187
24323
|
return true;
|
|
@@ -24210,64 +24346,85 @@ var require_pairs = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
24210
24346
|
}
|
|
24211
24347
|
return result;
|
|
24212
24348
|
}
|
|
24213
|
-
|
|
24349
|
+
pairs = new Type2("tag:yaml.org,2002:pairs", {
|
|
24214
24350
|
kind: "sequence",
|
|
24215
24351
|
resolve: resolveYamlPairs,
|
|
24216
24352
|
construct: constructYamlPairs
|
|
24217
24353
|
});
|
|
24218
|
-
|
|
24219
|
-
|
|
24220
|
-
|
|
24221
|
-
|
|
24354
|
+
return pairs;
|
|
24355
|
+
}
|
|
24356
|
+
var set;
|
|
24357
|
+
var hasRequiredSet;
|
|
24358
|
+
function requireSet() {
|
|
24359
|
+
if (hasRequiredSet)
|
|
24360
|
+
return set;
|
|
24361
|
+
hasRequiredSet = 1;
|
|
24362
|
+
const Type2 = requireType();
|
|
24363
|
+
const _hasOwnProperty = Object.prototype.hasOwnProperty;
|
|
24222
24364
|
function resolveYamlSet(data) {
|
|
24223
24365
|
if (data === null)
|
|
24224
24366
|
return true;
|
|
24225
24367
|
const object = data;
|
|
24226
|
-
for (const key in object)
|
|
24368
|
+
for (const key in object) {
|
|
24227
24369
|
if (_hasOwnProperty.call(object, key)) {
|
|
24228
24370
|
if (object[key] !== null)
|
|
24229
24371
|
return false;
|
|
24230
24372
|
}
|
|
24373
|
+
}
|
|
24231
24374
|
return true;
|
|
24232
24375
|
}
|
|
24233
24376
|
function constructYamlSet(data) {
|
|
24234
24377
|
return data !== null ? data : {};
|
|
24235
24378
|
}
|
|
24236
|
-
|
|
24379
|
+
set = new Type2("tag:yaml.org,2002:set", {
|
|
24237
24380
|
kind: "mapping",
|
|
24238
24381
|
resolve: resolveYamlSet,
|
|
24239
24382
|
construct: constructYamlSet
|
|
24240
24383
|
});
|
|
24241
|
-
|
|
24242
|
-
|
|
24243
|
-
|
|
24244
|
-
|
|
24384
|
+
return set;
|
|
24385
|
+
}
|
|
24386
|
+
var _default;
|
|
24387
|
+
var hasRequired_default;
|
|
24388
|
+
function require_default() {
|
|
24389
|
+
if (hasRequired_default)
|
|
24390
|
+
return _default;
|
|
24391
|
+
hasRequired_default = 1;
|
|
24392
|
+
_default = requireCore().extend({
|
|
24393
|
+
implicit: [
|
|
24394
|
+
requireTimestamp(),
|
|
24395
|
+
requireMerge()
|
|
24396
|
+
],
|
|
24245
24397
|
explicit: [
|
|
24246
|
-
|
|
24247
|
-
|
|
24248
|
-
|
|
24249
|
-
|
|
24398
|
+
requireBinary(),
|
|
24399
|
+
requireOmap(),
|
|
24400
|
+
requirePairs(),
|
|
24401
|
+
requireSet()
|
|
24250
24402
|
]
|
|
24251
24403
|
});
|
|
24252
|
-
|
|
24253
|
-
|
|
24254
|
-
|
|
24255
|
-
|
|
24256
|
-
|
|
24257
|
-
|
|
24258
|
-
|
|
24259
|
-
|
|
24260
|
-
|
|
24261
|
-
|
|
24262
|
-
|
|
24263
|
-
|
|
24264
|
-
|
|
24265
|
-
|
|
24266
|
-
|
|
24267
|
-
|
|
24268
|
-
|
|
24269
|
-
|
|
24270
|
-
|
|
24404
|
+
return _default;
|
|
24405
|
+
}
|
|
24406
|
+
var hasRequiredLoader;
|
|
24407
|
+
function requireLoader() {
|
|
24408
|
+
if (hasRequiredLoader)
|
|
24409
|
+
return loader;
|
|
24410
|
+
hasRequiredLoader = 1;
|
|
24411
|
+
const common2 = requireCommon();
|
|
24412
|
+
const YAMLException2 = requireException();
|
|
24413
|
+
const makeSnippet = requireSnippet();
|
|
24414
|
+
const DEFAULT_SCHEMA2 = require_default();
|
|
24415
|
+
const _hasOwnProperty = Object.prototype.hasOwnProperty;
|
|
24416
|
+
const CONTEXT_FLOW_IN = 1;
|
|
24417
|
+
const CONTEXT_FLOW_OUT = 2;
|
|
24418
|
+
const CONTEXT_BLOCK_IN = 3;
|
|
24419
|
+
const CONTEXT_BLOCK_OUT = 4;
|
|
24420
|
+
const CHOMPING_CLIP = 1;
|
|
24421
|
+
const CHOMPING_STRIP = 2;
|
|
24422
|
+
const CHOMPING_KEEP = 3;
|
|
24423
|
+
const PATTERN_NON_PRINTABLE = /[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/;
|
|
24424
|
+
const PATTERN_NON_ASCII_LINE_BREAKS = /[\x85\u2028\u2029]/;
|
|
24425
|
+
const PATTERN_FLOW_INDICATORS = /[,\[\]{}]/;
|
|
24426
|
+
const PATTERN_TAG_HANDLE = /^(?:!|!!|![0-9A-Za-z-]+!)$/;
|
|
24427
|
+
const PATTERN_TAG_URI = /^(?:!|[^,\[\]{}])(?:%[0-9a-f]{2}|[0-9a-z\-#;/?:@&=+$,_.!~*'()\[\]])*$/i;
|
|
24271
24428
|
function _class(obj) {
|
|
24272
24429
|
return Object.prototype.toString.call(obj);
|
|
24273
24430
|
}
|
|
@@ -24284,25 +24441,31 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
24284
24441
|
return c === 44 || c === 91 || c === 93 || c === 123 || c === 125;
|
|
24285
24442
|
}
|
|
24286
24443
|
function fromHexCode(c) {
|
|
24287
|
-
if (c >= 48 && c <= 57)
|
|
24444
|
+
if (c >= 48 && c <= 57) {
|
|
24288
24445
|
return c - 48;
|
|
24446
|
+
}
|
|
24289
24447
|
const lc = c | 32;
|
|
24290
|
-
if (lc >= 97 && lc <= 102)
|
|
24448
|
+
if (lc >= 97 && lc <= 102) {
|
|
24291
24449
|
return lc - 97 + 10;
|
|
24450
|
+
}
|
|
24292
24451
|
return -1;
|
|
24293
24452
|
}
|
|
24294
24453
|
function escapedHexLen(c) {
|
|
24295
|
-
if (c === 120)
|
|
24454
|
+
if (c === 120) {
|
|
24296
24455
|
return 2;
|
|
24297
|
-
|
|
24456
|
+
}
|
|
24457
|
+
if (c === 117) {
|
|
24298
24458
|
return 4;
|
|
24299
|
-
|
|
24459
|
+
}
|
|
24460
|
+
if (c === 85) {
|
|
24300
24461
|
return 8;
|
|
24462
|
+
}
|
|
24301
24463
|
return 0;
|
|
24302
24464
|
}
|
|
24303
24465
|
function fromDecimalCode(c) {
|
|
24304
|
-
if (c >= 48 && c <= 57)
|
|
24466
|
+
if (c >= 48 && c <= 57) {
|
|
24305
24467
|
return c - 48;
|
|
24468
|
+
}
|
|
24306
24469
|
return -1;
|
|
24307
24470
|
}
|
|
24308
24471
|
function simpleEscapeSequence(c) {
|
|
@@ -24349,23 +24512,25 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
24349
24512
|
}
|
|
24350
24513
|
}
|
|
24351
24514
|
function charFromCodepoint(c) {
|
|
24352
|
-
if (c <= 65535)
|
|
24515
|
+
if (c <= 65535) {
|
|
24353
24516
|
return String.fromCharCode(c);
|
|
24517
|
+
}
|
|
24354
24518
|
return String.fromCharCode((c - 65536 >> 10) + 55296, (c - 65536 & 1023) + 56320);
|
|
24355
24519
|
}
|
|
24356
24520
|
function setProperty(object, key, value) {
|
|
24357
|
-
if (key === "__proto__")
|
|
24521
|
+
if (key === "__proto__") {
|
|
24358
24522
|
Object.defineProperty(object, key, {
|
|
24359
24523
|
configurable: true,
|
|
24360
24524
|
enumerable: true,
|
|
24361
24525
|
writable: true,
|
|
24362
24526
|
value
|
|
24363
24527
|
});
|
|
24364
|
-
else
|
|
24528
|
+
} else {
|
|
24365
24529
|
object[key] = value;
|
|
24530
|
+
}
|
|
24366
24531
|
}
|
|
24367
|
-
|
|
24368
|
-
|
|
24532
|
+
const simpleEscapeCheck = new Array(256);
|
|
24533
|
+
const simpleEscapeMap = new Array(256);
|
|
24369
24534
|
for (let i = 0;i < 256; i++) {
|
|
24370
24535
|
simpleEscapeCheck[i] = simpleEscapeSequence(i) ? 1 : 0;
|
|
24371
24536
|
simpleEscapeMap[i] = simpleEscapeSequence(i);
|
|
@@ -24373,13 +24538,13 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
24373
24538
|
function State(input, options) {
|
|
24374
24539
|
this.input = input;
|
|
24375
24540
|
this.filename = options["filename"] || null;
|
|
24376
|
-
this.schema = options["schema"] ||
|
|
24541
|
+
this.schema = options["schema"] || DEFAULT_SCHEMA2;
|
|
24377
24542
|
this.onWarning = options["onWarning"] || null;
|
|
24378
24543
|
this.legacy = options["legacy"] || false;
|
|
24379
24544
|
this.json = options["json"] || false;
|
|
24380
24545
|
this.listener = options["listener"] || null;
|
|
24381
24546
|
this.maxDepth = typeof options["maxDepth"] === "number" ? options["maxDepth"] : 100;
|
|
24382
|
-
this.
|
|
24547
|
+
this.maxTotalMergeKeys = typeof options["maxTotalMergeKeys"] === "number" ? options["maxTotalMergeKeys"] : 1e4;
|
|
24383
24548
|
this.implicitTypes = this.schema.compiledImplicit;
|
|
24384
24549
|
this.typeMap = this.schema.compiledTypeMap;
|
|
24385
24550
|
this.length = input.length;
|
|
@@ -24388,6 +24553,7 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
24388
24553
|
this.lineStart = 0;
|
|
24389
24554
|
this.lineIndent = 0;
|
|
24390
24555
|
this.depth = 0;
|
|
24556
|
+
this.totalMergeKeys = 0;
|
|
24391
24557
|
this.firstTabInLine = -1;
|
|
24392
24558
|
this.documents = [];
|
|
24393
24559
|
this.anchorMapTransactions = [];
|
|
@@ -24401,29 +24567,31 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
24401
24567
|
column: state.position - state.lineStart
|
|
24402
24568
|
};
|
|
24403
24569
|
mark.snippet = makeSnippet(mark);
|
|
24404
|
-
return new
|
|
24570
|
+
return new YAMLException2(message, mark);
|
|
24405
24571
|
}
|
|
24406
24572
|
function throwError(state, message) {
|
|
24407
24573
|
throw generateError(state, message);
|
|
24408
24574
|
}
|
|
24409
24575
|
function throwWarning(state, message) {
|
|
24410
|
-
if (state.onWarning)
|
|
24576
|
+
if (state.onWarning) {
|
|
24411
24577
|
state.onWarning.call(null, generateError(state, message));
|
|
24578
|
+
}
|
|
24412
24579
|
}
|
|
24413
24580
|
function storeAnchor(state, name, value) {
|
|
24414
24581
|
const transactions = state.anchorMapTransactions;
|
|
24415
24582
|
if (transactions.length !== 0) {
|
|
24416
24583
|
const transaction = transactions[transactions.length - 1];
|
|
24417
|
-
if (!_hasOwnProperty.call(transaction, name))
|
|
24584
|
+
if (!_hasOwnProperty.call(transaction, name)) {
|
|
24418
24585
|
transaction[name] = {
|
|
24419
24586
|
existed: _hasOwnProperty.call(state.anchorMap, name),
|
|
24420
24587
|
value: state.anchorMap[name]
|
|
24421
24588
|
};
|
|
24589
|
+
}
|
|
24422
24590
|
}
|
|
24423
24591
|
state.anchorMap[name] = value;
|
|
24424
24592
|
}
|
|
24425
24593
|
function beginAnchorTransaction(state) {
|
|
24426
|
-
state.anchorMapTransactions.push(Object.create(null));
|
|
24594
|
+
state.anchorMapTransactions.push(/* @__PURE__ */ Object.create(null));
|
|
24427
24595
|
}
|
|
24428
24596
|
function commitAnchorTransaction(state) {
|
|
24429
24597
|
const transaction = state.anchorMapTransactions.pop();
|
|
@@ -24434,8 +24602,9 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
24434
24602
|
const names = Object.keys(transaction);
|
|
24435
24603
|
for (let index = 0, length = names.length;index < length; index += 1) {
|
|
24436
24604
|
const name = names[index];
|
|
24437
|
-
if (!_hasOwnProperty.call(parent, name))
|
|
24605
|
+
if (!_hasOwnProperty.call(parent, name)) {
|
|
24438
24606
|
parent[name] = transaction[name];
|
|
24607
|
+
}
|
|
24439
24608
|
}
|
|
24440
24609
|
}
|
|
24441
24610
|
function rollbackAnchorTransaction(state) {
|
|
@@ -24443,10 +24612,11 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
24443
24612
|
const names = Object.keys(transaction);
|
|
24444
24613
|
for (let index = names.length - 1;index >= 0; index -= 1) {
|
|
24445
24614
|
const entry = transaction[names[index]];
|
|
24446
|
-
if (entry.existed)
|
|
24615
|
+
if (entry.existed) {
|
|
24447
24616
|
state.anchorMap[names[index]] = entry.value;
|
|
24448
|
-
else
|
|
24617
|
+
} else {
|
|
24449
24618
|
delete state.anchorMap[names[index]];
|
|
24619
|
+
}
|
|
24450
24620
|
}
|
|
24451
24621
|
}
|
|
24452
24622
|
function snapshotState(state) {
|
|
@@ -24473,36 +24643,45 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
24473
24643
|
state.kind = snapshot.kind;
|
|
24474
24644
|
state.result = snapshot.result;
|
|
24475
24645
|
}
|
|
24476
|
-
|
|
24646
|
+
const directiveHandlers = {
|
|
24477
24647
|
YAML: function handleYamlDirective(state, name, args) {
|
|
24478
|
-
if (state.version !== null)
|
|
24648
|
+
if (state.version !== null) {
|
|
24479
24649
|
throwError(state, "duplication of %YAML directive");
|
|
24480
|
-
|
|
24650
|
+
}
|
|
24651
|
+
if (args.length !== 1) {
|
|
24481
24652
|
throwError(state, "YAML directive accepts exactly one argument");
|
|
24653
|
+
}
|
|
24482
24654
|
const match = /^([0-9]+)\.([0-9]+)$/.exec(args[0]);
|
|
24483
|
-
if (match === null)
|
|
24655
|
+
if (match === null) {
|
|
24484
24656
|
throwError(state, "ill-formed argument of the YAML directive");
|
|
24657
|
+
}
|
|
24485
24658
|
const major = parseInt(match[1], 10);
|
|
24486
24659
|
const minor = parseInt(match[2], 10);
|
|
24487
|
-
if (major !== 1)
|
|
24660
|
+
if (major !== 1) {
|
|
24488
24661
|
throwError(state, "unacceptable YAML version of the document");
|
|
24662
|
+
}
|
|
24489
24663
|
state.version = args[0];
|
|
24490
24664
|
state.checkLineBreaks = minor < 2;
|
|
24491
|
-
if (minor !== 1 && minor !== 2)
|
|
24665
|
+
if (minor !== 1 && minor !== 2) {
|
|
24492
24666
|
throwWarning(state, "unsupported YAML version of the document");
|
|
24667
|
+
}
|
|
24493
24668
|
},
|
|
24494
24669
|
TAG: function handleTagDirective(state, name, args) {
|
|
24495
24670
|
let prefix;
|
|
24496
|
-
if (args.length !== 2)
|
|
24671
|
+
if (args.length !== 2) {
|
|
24497
24672
|
throwError(state, "TAG directive accepts exactly two arguments");
|
|
24673
|
+
}
|
|
24498
24674
|
const handle = args[0];
|
|
24499
24675
|
prefix = args[1];
|
|
24500
|
-
if (!PATTERN_TAG_HANDLE.test(handle))
|
|
24676
|
+
if (!PATTERN_TAG_HANDLE.test(handle)) {
|
|
24501
24677
|
throwError(state, "ill-formed tag handle (first argument) of the TAG directive");
|
|
24502
|
-
|
|
24678
|
+
}
|
|
24679
|
+
if (_hasOwnProperty.call(state.tagMap, handle)) {
|
|
24503
24680
|
throwError(state, 'there is a previously declared suffix for "' + handle + '" tag handle');
|
|
24504
|
-
|
|
24681
|
+
}
|
|
24682
|
+
if (!PATTERN_TAG_URI.test(prefix)) {
|
|
24505
24683
|
throwError(state, "ill-formed tag prefix (second argument) of the TAG directive");
|
|
24684
|
+
}
|
|
24506
24685
|
try {
|
|
24507
24686
|
prefix = decodeURIComponent(prefix);
|
|
24508
24687
|
} catch (err) {
|
|
@@ -24514,23 +24693,29 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
24514
24693
|
function captureSegment(state, start, end, checkJson) {
|
|
24515
24694
|
if (start < end) {
|
|
24516
24695
|
const _result = state.input.slice(start, end);
|
|
24517
|
-
if (checkJson)
|
|
24696
|
+
if (checkJson) {
|
|
24518
24697
|
for (let _position = 0, _length = _result.length;_position < _length; _position += 1) {
|
|
24519
24698
|
const _character = _result.charCodeAt(_position);
|
|
24520
|
-
if (!(_character === 9 || _character >= 32 && _character <= 1114111))
|
|
24699
|
+
if (!(_character === 9 || _character >= 32 && _character <= 1114111)) {
|
|
24521
24700
|
throwError(state, "expected valid JSON character");
|
|
24701
|
+
}
|
|
24522
24702
|
}
|
|
24523
|
-
else if (PATTERN_NON_PRINTABLE.test(_result))
|
|
24703
|
+
} else if (PATTERN_NON_PRINTABLE.test(_result)) {
|
|
24524
24704
|
throwError(state, "the stream contains non-printable characters");
|
|
24705
|
+
}
|
|
24525
24706
|
state.result += _result;
|
|
24526
24707
|
}
|
|
24527
24708
|
}
|
|
24528
24709
|
function mergeMappings(state, destination, source, overridableKeys) {
|
|
24529
|
-
if (!
|
|
24710
|
+
if (!common2.isObject(source)) {
|
|
24530
24711
|
throwError(state, "cannot merge mappings; the provided source object is unacceptable");
|
|
24712
|
+
}
|
|
24531
24713
|
const sourceKeys = Object.keys(source);
|
|
24532
24714
|
for (let index = 0, quantity = sourceKeys.length;index < quantity; index += 1) {
|
|
24533
24715
|
const key = sourceKeys[index];
|
|
24716
|
+
if (state.maxTotalMergeKeys !== -1 && ++state.totalMergeKeys > state.maxTotalMergeKeys) {
|
|
24717
|
+
throwError(state, "merge keys exceeded maxTotalMergeKeys (" + state.maxTotalMergeKeys + ")");
|
|
24718
|
+
}
|
|
24534
24719
|
if (!_hasOwnProperty.call(destination, key)) {
|
|
24535
24720
|
setProperty(destination, key, source[key]);
|
|
24536
24721
|
overridableKeys[key] = true;
|
|
@@ -24541,32 +24726,30 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
24541
24726
|
if (Array.isArray(keyNode)) {
|
|
24542
24727
|
keyNode = Array.prototype.slice.call(keyNode);
|
|
24543
24728
|
for (let index = 0, quantity = keyNode.length;index < quantity; index += 1) {
|
|
24544
|
-
if (Array.isArray(keyNode[index]))
|
|
24729
|
+
if (Array.isArray(keyNode[index])) {
|
|
24545
24730
|
throwError(state, "nested arrays are not supported inside keys");
|
|
24546
|
-
|
|
24731
|
+
}
|
|
24732
|
+
if (typeof keyNode === "object" && _class(keyNode[index]) === "[object Object]") {
|
|
24547
24733
|
keyNode[index] = "[object Object]";
|
|
24734
|
+
}
|
|
24548
24735
|
}
|
|
24549
24736
|
}
|
|
24550
|
-
if (typeof keyNode === "object" && _class(keyNode) === "[object Object]")
|
|
24737
|
+
if (typeof keyNode === "object" && _class(keyNode) === "[object Object]") {
|
|
24551
24738
|
keyNode = "[object Object]";
|
|
24739
|
+
}
|
|
24552
24740
|
keyNode = String(keyNode);
|
|
24553
|
-
if (_result === null)
|
|
24741
|
+
if (_result === null) {
|
|
24554
24742
|
_result = {};
|
|
24555
|
-
|
|
24743
|
+
}
|
|
24744
|
+
if (keyTag === "tag:yaml.org,2002:merge") {
|
|
24556
24745
|
if (Array.isArray(valueNode)) {
|
|
24557
|
-
if (valueNode.length > state.maxMergeSeqLength)
|
|
24558
|
-
throwError(state, "merge sequence length exceeded maxMergeSeqLength (" + state.maxMergeSeqLength + ")");
|
|
24559
|
-
const seen = /* @__PURE__ */ new Set;
|
|
24560
24746
|
for (let index = 0, quantity = valueNode.length;index < quantity; index += 1) {
|
|
24561
|
-
|
|
24562
|
-
if (seen.has(src))
|
|
24563
|
-
continue;
|
|
24564
|
-
seen.add(src);
|
|
24565
|
-
mergeMappings(state, _result, src, overridableKeys);
|
|
24747
|
+
mergeMappings(state, _result, valueNode[index], overridableKeys);
|
|
24566
24748
|
}
|
|
24567
|
-
} else
|
|
24749
|
+
} else {
|
|
24568
24750
|
mergeMappings(state, _result, valueNode, overridableKeys);
|
|
24569
|
-
|
|
24751
|
+
}
|
|
24752
|
+
} else {
|
|
24570
24753
|
if (!state.json && !_hasOwnProperty.call(overridableKeys, keyNode) && _hasOwnProperty.call(_result, keyNode)) {
|
|
24571
24754
|
state.line = startLine || state.line;
|
|
24572
24755
|
state.lineStart = startLineStart || state.lineStart;
|
|
@@ -24580,14 +24763,16 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
24580
24763
|
}
|
|
24581
24764
|
function readLineBreak(state) {
|
|
24582
24765
|
const ch = state.input.charCodeAt(state.position);
|
|
24583
|
-
if (ch === 10)
|
|
24766
|
+
if (ch === 10) {
|
|
24584
24767
|
state.position++;
|
|
24585
|
-
else if (ch === 13) {
|
|
24768
|
+
} else if (ch === 13) {
|
|
24586
24769
|
state.position++;
|
|
24587
|
-
if (state.input.charCodeAt(state.position) === 10)
|
|
24770
|
+
if (state.input.charCodeAt(state.position) === 10) {
|
|
24588
24771
|
state.position++;
|
|
24589
|
-
|
|
24772
|
+
}
|
|
24773
|
+
} else {
|
|
24590
24774
|
throwError(state, "a line break is expected");
|
|
24775
|
+
}
|
|
24591
24776
|
state.line += 1;
|
|
24592
24777
|
state.lineStart = state.position;
|
|
24593
24778
|
state.firstTabInLine = -1;
|
|
@@ -24597,14 +24782,16 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
24597
24782
|
let ch = state.input.charCodeAt(state.position);
|
|
24598
24783
|
while (ch !== 0) {
|
|
24599
24784
|
while (isWhiteSpace(ch)) {
|
|
24600
|
-
if (ch === 9 && state.firstTabInLine === -1)
|
|
24785
|
+
if (ch === 9 && state.firstTabInLine === -1) {
|
|
24601
24786
|
state.firstTabInLine = state.position;
|
|
24787
|
+
}
|
|
24602
24788
|
ch = state.input.charCodeAt(++state.position);
|
|
24603
24789
|
}
|
|
24604
|
-
if (allowComments && ch === 35)
|
|
24605
|
-
do
|
|
24790
|
+
if (allowComments && ch === 35) {
|
|
24791
|
+
do {
|
|
24606
24792
|
ch = state.input.charCodeAt(++state.position);
|
|
24607
|
-
while (ch !== 10 && ch !== 13 && ch !== 0);
|
|
24793
|
+
} while (ch !== 10 && ch !== 13 && ch !== 0);
|
|
24794
|
+
}
|
|
24608
24795
|
if (isEol(ch)) {
|
|
24609
24796
|
readLineBreak(state);
|
|
24610
24797
|
ch = state.input.charCodeAt(state.position);
|
|
@@ -24614,11 +24801,13 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
24614
24801
|
state.lineIndent++;
|
|
24615
24802
|
ch = state.input.charCodeAt(++state.position);
|
|
24616
24803
|
}
|
|
24617
|
-
} else
|
|
24804
|
+
} else {
|
|
24618
24805
|
break;
|
|
24806
|
+
}
|
|
24619
24807
|
}
|
|
24620
|
-
if (checkIndent !== -1 && lineBreaks !== 0 && state.lineIndent < checkIndent)
|
|
24808
|
+
if (checkIndent !== -1 && lineBreaks !== 0 && state.lineIndent < checkIndent) {
|
|
24621
24809
|
throwWarning(state, "deficient indentation");
|
|
24810
|
+
}
|
|
24622
24811
|
return lineBreaks;
|
|
24623
24812
|
}
|
|
24624
24813
|
function testDocumentSeparator(state) {
|
|
@@ -24627,17 +24816,19 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
24627
24816
|
if ((ch === 45 || ch === 46) && ch === state.input.charCodeAt(_position + 1) && ch === state.input.charCodeAt(_position + 2)) {
|
|
24628
24817
|
_position += 3;
|
|
24629
24818
|
ch = state.input.charCodeAt(_position);
|
|
24630
|
-
if (ch === 0 || isWsOrEol(ch))
|
|
24819
|
+
if (ch === 0 || isWsOrEol(ch)) {
|
|
24631
24820
|
return true;
|
|
24821
|
+
}
|
|
24632
24822
|
}
|
|
24633
24823
|
return false;
|
|
24634
24824
|
}
|
|
24635
24825
|
function writeFoldedLines(state, count) {
|
|
24636
|
-
if (count === 1)
|
|
24826
|
+
if (count === 1) {
|
|
24637
24827
|
state.result += " ";
|
|
24638
|
-
else if (count > 1)
|
|
24639
|
-
state.result +=
|
|
24828
|
+
} else if (count > 1) {
|
|
24829
|
+
state.result += common2.repeat(`
|
|
24640
24830
|
`, count - 1);
|
|
24831
|
+
}
|
|
24641
24832
|
}
|
|
24642
24833
|
function readPlainScalar(state, nodeIndent, withinFlowCollection) {
|
|
24643
24834
|
let captureStart;
|
|
@@ -24649,12 +24840,14 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
24649
24840
|
const _kind = state.kind;
|
|
24650
24841
|
const _result = state.result;
|
|
24651
24842
|
let ch = state.input.charCodeAt(state.position);
|
|
24652
|
-
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)
|
|
24843
|
+
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) {
|
|
24653
24844
|
return false;
|
|
24845
|
+
}
|
|
24654
24846
|
if (ch === 63 || ch === 45) {
|
|
24655
24847
|
const following = state.input.charCodeAt(state.position + 1);
|
|
24656
|
-
if (isWsOrEol(following) || withinFlowCollection && isFlowIndicator(following))
|
|
24848
|
+
if (isWsOrEol(following) || withinFlowCollection && isFlowIndicator(following)) {
|
|
24657
24849
|
return false;
|
|
24850
|
+
}
|
|
24658
24851
|
}
|
|
24659
24852
|
state.kind = "scalar";
|
|
24660
24853
|
state.result = "";
|
|
@@ -24663,14 +24856,17 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
24663
24856
|
while (ch !== 0) {
|
|
24664
24857
|
if (ch === 58) {
|
|
24665
24858
|
const following = state.input.charCodeAt(state.position + 1);
|
|
24666
|
-
if (isWsOrEol(following) || withinFlowCollection && isFlowIndicator(following))
|
|
24859
|
+
if (isWsOrEol(following) || withinFlowCollection && isFlowIndicator(following)) {
|
|
24667
24860
|
break;
|
|
24861
|
+
}
|
|
24668
24862
|
} else if (ch === 35) {
|
|
24669
|
-
|
|
24863
|
+
const preceding = state.input.charCodeAt(state.position - 1);
|
|
24864
|
+
if (isWsOrEol(preceding)) {
|
|
24670
24865
|
break;
|
|
24671
|
-
|
|
24866
|
+
}
|
|
24867
|
+
} else if (state.position === state.lineStart && testDocumentSeparator(state) || withinFlowCollection && isFlowIndicator(ch)) {
|
|
24672
24868
|
break;
|
|
24673
|
-
else if (isEol(ch)) {
|
|
24869
|
+
} else if (isEol(ch)) {
|
|
24674
24870
|
_line = state.line;
|
|
24675
24871
|
_lineStart = state.lineStart;
|
|
24676
24872
|
_lineIndent = state.lineIndent;
|
|
@@ -24693,13 +24889,15 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
24693
24889
|
captureStart = captureEnd = state.position;
|
|
24694
24890
|
hasPendingContent = false;
|
|
24695
24891
|
}
|
|
24696
|
-
if (!isWhiteSpace(ch))
|
|
24892
|
+
if (!isWhiteSpace(ch)) {
|
|
24697
24893
|
captureEnd = state.position + 1;
|
|
24894
|
+
}
|
|
24698
24895
|
ch = state.input.charCodeAt(++state.position);
|
|
24699
24896
|
}
|
|
24700
24897
|
captureSegment(state, captureStart, captureEnd, false);
|
|
24701
|
-
if (state.result)
|
|
24898
|
+
if (state.result) {
|
|
24702
24899
|
return true;
|
|
24900
|
+
}
|
|
24703
24901
|
state.kind = _kind;
|
|
24704
24902
|
state.result = _result;
|
|
24705
24903
|
return false;
|
|
@@ -24708,13 +24906,14 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
24708
24906
|
let captureStart;
|
|
24709
24907
|
let captureEnd;
|
|
24710
24908
|
let ch = state.input.charCodeAt(state.position);
|
|
24711
|
-
if (ch !== 39)
|
|
24909
|
+
if (ch !== 39) {
|
|
24712
24910
|
return false;
|
|
24911
|
+
}
|
|
24713
24912
|
state.kind = "scalar";
|
|
24714
24913
|
state.result = "";
|
|
24715
24914
|
state.position++;
|
|
24716
24915
|
captureStart = captureEnd = state.position;
|
|
24717
|
-
while ((ch = state.input.charCodeAt(state.position)) !== 0)
|
|
24916
|
+
while ((ch = state.input.charCodeAt(state.position)) !== 0) {
|
|
24718
24917
|
if (ch === 39) {
|
|
24719
24918
|
captureSegment(state, captureStart, state.position, true);
|
|
24720
24919
|
ch = state.input.charCodeAt(++state.position);
|
|
@@ -24722,19 +24921,22 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
24722
24921
|
captureStart = state.position;
|
|
24723
24922
|
state.position++;
|
|
24724
24923
|
captureEnd = state.position;
|
|
24725
|
-
} else
|
|
24924
|
+
} else {
|
|
24726
24925
|
return true;
|
|
24926
|
+
}
|
|
24727
24927
|
} else if (isEol(ch)) {
|
|
24728
24928
|
captureSegment(state, captureStart, captureEnd, true);
|
|
24729
24929
|
writeFoldedLines(state, skipSeparationSpace(state, false, nodeIndent));
|
|
24730
24930
|
captureStart = captureEnd = state.position;
|
|
24731
|
-
} else if (state.position === state.lineStart && testDocumentSeparator(state))
|
|
24931
|
+
} else if (state.position === state.lineStart && testDocumentSeparator(state)) {
|
|
24732
24932
|
throwError(state, "unexpected end of the document within a single quoted scalar");
|
|
24733
|
-
else {
|
|
24933
|
+
} else {
|
|
24734
24934
|
state.position++;
|
|
24735
|
-
if (!isWhiteSpace(ch))
|
|
24935
|
+
if (!isWhiteSpace(ch)) {
|
|
24736
24936
|
captureEnd = state.position;
|
|
24937
|
+
}
|
|
24737
24938
|
}
|
|
24939
|
+
}
|
|
24738
24940
|
throwError(state, "unexpected end of the stream within a single quoted scalar");
|
|
24739
24941
|
}
|
|
24740
24942
|
function readDoubleQuotedScalar(state, nodeIndent) {
|
|
@@ -24742,13 +24944,14 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
24742
24944
|
let captureEnd;
|
|
24743
24945
|
let tmp;
|
|
24744
24946
|
let ch = state.input.charCodeAt(state.position);
|
|
24745
|
-
if (ch !== 34)
|
|
24947
|
+
if (ch !== 34) {
|
|
24746
24948
|
return false;
|
|
24949
|
+
}
|
|
24747
24950
|
state.kind = "scalar";
|
|
24748
24951
|
state.result = "";
|
|
24749
24952
|
state.position++;
|
|
24750
24953
|
captureStart = captureEnd = state.position;
|
|
24751
|
-
while ((ch = state.input.charCodeAt(state.position)) !== 0)
|
|
24954
|
+
while ((ch = state.input.charCodeAt(state.position)) !== 0) {
|
|
24752
24955
|
if (ch === 34) {
|
|
24753
24956
|
captureSegment(state, captureStart, state.position, true);
|
|
24754
24957
|
state.position++;
|
|
@@ -24756,9 +24959,9 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
24756
24959
|
} else if (ch === 92) {
|
|
24757
24960
|
captureSegment(state, captureStart, state.position, true);
|
|
24758
24961
|
ch = state.input.charCodeAt(++state.position);
|
|
24759
|
-
if (isEol(ch))
|
|
24962
|
+
if (isEol(ch)) {
|
|
24760
24963
|
skipSeparationSpace(state, false, nodeIndent);
|
|
24761
|
-
else if (ch < 256 && simpleEscapeCheck[ch]) {
|
|
24964
|
+
} else if (ch < 256 && simpleEscapeCheck[ch]) {
|
|
24762
24965
|
state.result += simpleEscapeMap[ch];
|
|
24763
24966
|
state.position++;
|
|
24764
24967
|
} else if ((tmp = escapedHexLen(ch)) > 0) {
|
|
@@ -24766,27 +24969,31 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
24766
24969
|
let hexResult = 0;
|
|
24767
24970
|
for (;hexLength > 0; hexLength--) {
|
|
24768
24971
|
ch = state.input.charCodeAt(++state.position);
|
|
24769
|
-
if ((tmp = fromHexCode(ch)) >= 0)
|
|
24972
|
+
if ((tmp = fromHexCode(ch)) >= 0) {
|
|
24770
24973
|
hexResult = (hexResult << 4) + tmp;
|
|
24771
|
-
else
|
|
24974
|
+
} else {
|
|
24772
24975
|
throwError(state, "expected hexadecimal character");
|
|
24976
|
+
}
|
|
24773
24977
|
}
|
|
24774
24978
|
state.result += charFromCodepoint(hexResult);
|
|
24775
24979
|
state.position++;
|
|
24776
|
-
} else
|
|
24980
|
+
} else {
|
|
24777
24981
|
throwError(state, "unknown escape sequence");
|
|
24982
|
+
}
|
|
24778
24983
|
captureStart = captureEnd = state.position;
|
|
24779
24984
|
} else if (isEol(ch)) {
|
|
24780
24985
|
captureSegment(state, captureStart, captureEnd, true);
|
|
24781
24986
|
writeFoldedLines(state, skipSeparationSpace(state, false, nodeIndent));
|
|
24782
24987
|
captureStart = captureEnd = state.position;
|
|
24783
|
-
} else if (state.position === state.lineStart && testDocumentSeparator(state))
|
|
24988
|
+
} else if (state.position === state.lineStart && testDocumentSeparator(state)) {
|
|
24784
24989
|
throwError(state, "unexpected end of the document within a double quoted scalar");
|
|
24785
|
-
else {
|
|
24990
|
+
} else {
|
|
24786
24991
|
state.position++;
|
|
24787
|
-
if (!isWhiteSpace(ch))
|
|
24992
|
+
if (!isWhiteSpace(ch)) {
|
|
24788
24993
|
captureEnd = state.position;
|
|
24994
|
+
}
|
|
24789
24995
|
}
|
|
24996
|
+
}
|
|
24790
24997
|
throwError(state, "unexpected end of the stream within a double quoted scalar");
|
|
24791
24998
|
}
|
|
24792
24999
|
function readFlowCollection(state, nodeIndent) {
|
|
@@ -24801,7 +25008,7 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
24801
25008
|
let isPair;
|
|
24802
25009
|
let isExplicitPair;
|
|
24803
25010
|
let isMapping;
|
|
24804
|
-
const overridableKeys = Object.create(null);
|
|
25011
|
+
const overridableKeys = /* @__PURE__ */ Object.create(null);
|
|
24805
25012
|
let keyNode;
|
|
24806
25013
|
let keyTag;
|
|
24807
25014
|
let valueNode;
|
|
@@ -24814,10 +25021,12 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
24814
25021
|
terminator = 125;
|
|
24815
25022
|
isMapping = true;
|
|
24816
25023
|
_result = {};
|
|
24817
|
-
} else
|
|
25024
|
+
} else {
|
|
24818
25025
|
return false;
|
|
24819
|
-
|
|
25026
|
+
}
|
|
25027
|
+
if (state.anchor !== null) {
|
|
24820
25028
|
storeAnchor(state, state.anchor, _result);
|
|
25029
|
+
}
|
|
24821
25030
|
ch = state.input.charCodeAt(++state.position);
|
|
24822
25031
|
while (ch !== 0) {
|
|
24823
25032
|
skipSeparationSpace(state, true, nodeIndent);
|
|
@@ -24829,14 +25038,16 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
24829
25038
|
state.kind = isMapping ? "mapping" : "sequence";
|
|
24830
25039
|
state.result = _result;
|
|
24831
25040
|
return true;
|
|
24832
|
-
} else if (!readNext)
|
|
25041
|
+
} else if (!readNext) {
|
|
24833
25042
|
throwError(state, "missed comma between flow collection entries");
|
|
24834
|
-
else if (ch === 44)
|
|
25043
|
+
} else if (ch === 44) {
|
|
24835
25044
|
throwError(state, "expected the node content, but found ','");
|
|
25045
|
+
}
|
|
24836
25046
|
keyTag = keyNode = valueNode = null;
|
|
24837
25047
|
isPair = isExplicitPair = false;
|
|
24838
25048
|
if (ch === 63) {
|
|
24839
|
-
|
|
25049
|
+
const following = state.input.charCodeAt(state.position + 1);
|
|
25050
|
+
if (isWsOrEol(following)) {
|
|
24840
25051
|
isPair = isExplicitPair = true;
|
|
24841
25052
|
state.position++;
|
|
24842
25053
|
skipSeparationSpace(state, true, nodeIndent);
|
|
@@ -24857,19 +25068,21 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
24857
25068
|
composeNode(state, nodeIndent, CONTEXT_FLOW_IN, false, true);
|
|
24858
25069
|
valueNode = state.result;
|
|
24859
25070
|
}
|
|
24860
|
-
if (isMapping)
|
|
25071
|
+
if (isMapping) {
|
|
24861
25072
|
storeMappingPair(state, _result, overridableKeys, keyTag, keyNode, valueNode, _line, _lineStart, _pos);
|
|
24862
|
-
else if (isPair)
|
|
25073
|
+
} else if (isPair) {
|
|
24863
25074
|
_result.push(storeMappingPair(state, null, overridableKeys, keyTag, keyNode, valueNode, _line, _lineStart, _pos));
|
|
24864
|
-
else
|
|
25075
|
+
} else {
|
|
24865
25076
|
_result.push(keyNode);
|
|
25077
|
+
}
|
|
24866
25078
|
skipSeparationSpace(state, true, nodeIndent);
|
|
24867
25079
|
ch = state.input.charCodeAt(state.position);
|
|
24868
25080
|
if (ch === 44) {
|
|
24869
25081
|
readNext = true;
|
|
24870
25082
|
ch = state.input.charCodeAt(++state.position);
|
|
24871
|
-
} else
|
|
25083
|
+
} else {
|
|
24872
25084
|
readNext = false;
|
|
25085
|
+
}
|
|
24873
25086
|
}
|
|
24874
25087
|
throwError(state, "unexpected end of the stream within a flow collection");
|
|
24875
25088
|
}
|
|
@@ -24883,40 +25096,45 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
24883
25096
|
let atMoreIndented = false;
|
|
24884
25097
|
let tmp;
|
|
24885
25098
|
let ch = state.input.charCodeAt(state.position);
|
|
24886
|
-
if (ch === 124)
|
|
25099
|
+
if (ch === 124) {
|
|
24887
25100
|
folding = false;
|
|
24888
|
-
else if (ch === 62)
|
|
25101
|
+
} else if (ch === 62) {
|
|
24889
25102
|
folding = true;
|
|
24890
|
-
else
|
|
25103
|
+
} else {
|
|
24891
25104
|
return false;
|
|
25105
|
+
}
|
|
24892
25106
|
state.kind = "scalar";
|
|
24893
25107
|
state.result = "";
|
|
24894
25108
|
while (ch !== 0) {
|
|
24895
25109
|
ch = state.input.charCodeAt(++state.position);
|
|
24896
|
-
if (ch === 43 || ch === 45)
|
|
24897
|
-
if (CHOMPING_CLIP === chomping)
|
|
25110
|
+
if (ch === 43 || ch === 45) {
|
|
25111
|
+
if (CHOMPING_CLIP === chomping) {
|
|
24898
25112
|
chomping = ch === 43 ? CHOMPING_KEEP : CHOMPING_STRIP;
|
|
24899
|
-
else
|
|
25113
|
+
} else {
|
|
24900
25114
|
throwError(state, "repeat of a chomping mode identifier");
|
|
24901
|
-
|
|
24902
|
-
|
|
25115
|
+
}
|
|
25116
|
+
} else if ((tmp = fromDecimalCode(ch)) >= 0) {
|
|
25117
|
+
if (tmp === 0) {
|
|
24903
25118
|
throwError(state, "bad explicit indentation width of a block scalar; it cannot be less than one");
|
|
24904
|
-
else if (!detectedIndent) {
|
|
25119
|
+
} else if (!detectedIndent) {
|
|
24905
25120
|
textIndent = nodeIndent + tmp - 1;
|
|
24906
25121
|
detectedIndent = true;
|
|
24907
|
-
} else
|
|
25122
|
+
} else {
|
|
24908
25123
|
throwError(state, "repeat of an indentation width identifier");
|
|
24909
|
-
|
|
25124
|
+
}
|
|
25125
|
+
} else {
|
|
24910
25126
|
break;
|
|
25127
|
+
}
|
|
24911
25128
|
}
|
|
24912
25129
|
if (isWhiteSpace(ch)) {
|
|
24913
|
-
do
|
|
25130
|
+
do {
|
|
24914
25131
|
ch = state.input.charCodeAt(++state.position);
|
|
24915
|
-
while (isWhiteSpace(ch));
|
|
24916
|
-
if (ch === 35)
|
|
24917
|
-
do
|
|
25132
|
+
} while (isWhiteSpace(ch));
|
|
25133
|
+
if (ch === 35) {
|
|
25134
|
+
do {
|
|
24918
25135
|
ch = state.input.charCodeAt(++state.position);
|
|
24919
|
-
while (!isEol(ch) && ch !== 0);
|
|
25136
|
+
} while (!isEol(ch) && ch !== 0);
|
|
25137
|
+
}
|
|
24920
25138
|
}
|
|
24921
25139
|
while (ch !== 0) {
|
|
24922
25140
|
readLineBreak(state);
|
|
@@ -24926,49 +25144,56 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
24926
25144
|
state.lineIndent++;
|
|
24927
25145
|
ch = state.input.charCodeAt(++state.position);
|
|
24928
25146
|
}
|
|
24929
|
-
if (!detectedIndent && state.lineIndent > textIndent)
|
|
25147
|
+
if (!detectedIndent && state.lineIndent > textIndent) {
|
|
24930
25148
|
textIndent = state.lineIndent;
|
|
25149
|
+
}
|
|
24931
25150
|
if (isEol(ch)) {
|
|
24932
25151
|
emptyLines++;
|
|
24933
25152
|
continue;
|
|
24934
25153
|
}
|
|
24935
|
-
if (!detectedIndent && textIndent === 0)
|
|
25154
|
+
if (!detectedIndent && textIndent === 0) {
|
|
24936
25155
|
throwError(state, "missing indentation for block scalar");
|
|
25156
|
+
}
|
|
24937
25157
|
if (state.lineIndent < textIndent) {
|
|
24938
|
-
if (chomping === CHOMPING_KEEP)
|
|
24939
|
-
state.result +=
|
|
25158
|
+
if (chomping === CHOMPING_KEEP) {
|
|
25159
|
+
state.result += common2.repeat(`
|
|
24940
25160
|
`, didReadContent ? 1 + emptyLines : emptyLines);
|
|
24941
|
-
else if (chomping === CHOMPING_CLIP) {
|
|
24942
|
-
if (didReadContent)
|
|
25161
|
+
} else if (chomping === CHOMPING_CLIP) {
|
|
25162
|
+
if (didReadContent) {
|
|
24943
25163
|
state.result += `
|
|
24944
25164
|
`;
|
|
25165
|
+
}
|
|
24945
25166
|
}
|
|
24946
25167
|
break;
|
|
24947
25168
|
}
|
|
24948
|
-
if (folding)
|
|
25169
|
+
if (folding) {
|
|
24949
25170
|
if (isWhiteSpace(ch)) {
|
|
24950
25171
|
atMoreIndented = true;
|
|
24951
|
-
state.result +=
|
|
25172
|
+
state.result += common2.repeat(`
|
|
24952
25173
|
`, didReadContent ? 1 + emptyLines : emptyLines);
|
|
24953
25174
|
} else if (atMoreIndented) {
|
|
24954
25175
|
atMoreIndented = false;
|
|
24955
|
-
state.result +=
|
|
25176
|
+
state.result += common2.repeat(`
|
|
24956
25177
|
`, emptyLines + 1);
|
|
24957
25178
|
} else if (emptyLines === 0) {
|
|
24958
|
-
if (didReadContent)
|
|
25179
|
+
if (didReadContent) {
|
|
24959
25180
|
state.result += " ";
|
|
24960
|
-
|
|
24961
|
-
|
|
25181
|
+
}
|
|
25182
|
+
} else {
|
|
25183
|
+
state.result += common2.repeat(`
|
|
24962
25184
|
`, emptyLines);
|
|
24963
|
-
|
|
24964
|
-
|
|
25185
|
+
}
|
|
25186
|
+
} else {
|
|
25187
|
+
state.result += common2.repeat(`
|
|
24965
25188
|
`, didReadContent ? 1 + emptyLines : emptyLines);
|
|
25189
|
+
}
|
|
24966
25190
|
didReadContent = true;
|
|
24967
25191
|
detectedIndent = true;
|
|
24968
25192
|
emptyLines = 0;
|
|
24969
25193
|
const captureStart = state.position;
|
|
24970
|
-
while (!isEol(ch) && ch !== 0)
|
|
25194
|
+
while (!isEol(ch) && ch !== 0) {
|
|
24971
25195
|
ch = state.input.charCodeAt(++state.position);
|
|
25196
|
+
}
|
|
24972
25197
|
captureSegment(state, captureStart, state.position, false);
|
|
24973
25198
|
}
|
|
24974
25199
|
return true;
|
|
@@ -24980,18 +25205,22 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
24980
25205
|
let detected = false;
|
|
24981
25206
|
if (state.firstTabInLine !== -1)
|
|
24982
25207
|
return false;
|
|
24983
|
-
if (state.anchor !== null)
|
|
25208
|
+
if (state.anchor !== null) {
|
|
24984
25209
|
storeAnchor(state, state.anchor, _result);
|
|
25210
|
+
}
|
|
24985
25211
|
let ch = state.input.charCodeAt(state.position);
|
|
24986
25212
|
while (ch !== 0) {
|
|
24987
25213
|
if (state.firstTabInLine !== -1) {
|
|
24988
25214
|
state.position = state.firstTabInLine;
|
|
24989
25215
|
throwError(state, "tab characters must not be used in indentation");
|
|
24990
25216
|
}
|
|
24991
|
-
if (ch !== 45)
|
|
25217
|
+
if (ch !== 45) {
|
|
24992
25218
|
break;
|
|
24993
|
-
|
|
25219
|
+
}
|
|
25220
|
+
const following = state.input.charCodeAt(state.position + 1);
|
|
25221
|
+
if (!isWsOrEol(following)) {
|
|
24994
25222
|
break;
|
|
25223
|
+
}
|
|
24995
25224
|
detected = true;
|
|
24996
25225
|
state.position++;
|
|
24997
25226
|
if (skipSeparationSpace(state, true, -1)) {
|
|
@@ -25006,10 +25235,11 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
25006
25235
|
_result.push(state.result);
|
|
25007
25236
|
skipSeparationSpace(state, true, -1);
|
|
25008
25237
|
ch = state.input.charCodeAt(state.position);
|
|
25009
|
-
if ((state.line === _line || state.lineIndent > nodeIndent) && ch !== 0)
|
|
25238
|
+
if ((state.line === _line || state.lineIndent > nodeIndent) && ch !== 0) {
|
|
25010
25239
|
throwError(state, "bad indentation of a sequence entry");
|
|
25011
|
-
else if (state.lineIndent < nodeIndent)
|
|
25240
|
+
} else if (state.lineIndent < nodeIndent) {
|
|
25012
25241
|
break;
|
|
25242
|
+
}
|
|
25013
25243
|
}
|
|
25014
25244
|
if (detected) {
|
|
25015
25245
|
state.tag = _tag;
|
|
@@ -25028,7 +25258,7 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
25028
25258
|
const _tag = state.tag;
|
|
25029
25259
|
const _anchor = state.anchor;
|
|
25030
25260
|
const _result = {};
|
|
25031
|
-
const overridableKeys = Object.create(null);
|
|
25261
|
+
const overridableKeys = /* @__PURE__ */ Object.create(null);
|
|
25032
25262
|
let keyTag = null;
|
|
25033
25263
|
let keyNode = null;
|
|
25034
25264
|
let valueNode = null;
|
|
@@ -25036,8 +25266,9 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
25036
25266
|
let detected = false;
|
|
25037
25267
|
if (state.firstTabInLine !== -1)
|
|
25038
25268
|
return false;
|
|
25039
|
-
if (state.anchor !== null)
|
|
25269
|
+
if (state.anchor !== null) {
|
|
25040
25270
|
storeAnchor(state, state.anchor, _result);
|
|
25271
|
+
}
|
|
25041
25272
|
let ch = state.input.charCodeAt(state.position);
|
|
25042
25273
|
while (ch !== 0) {
|
|
25043
25274
|
if (!atExplicitKey && state.firstTabInLine !== -1) {
|
|
@@ -25058,24 +25289,28 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
25058
25289
|
} else if (atExplicitKey) {
|
|
25059
25290
|
atExplicitKey = false;
|
|
25060
25291
|
allowCompact = true;
|
|
25061
|
-
} else
|
|
25292
|
+
} else {
|
|
25062
25293
|
throwError(state, "incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line");
|
|
25294
|
+
}
|
|
25063
25295
|
state.position += 1;
|
|
25064
25296
|
ch = following;
|
|
25065
25297
|
} else {
|
|
25066
25298
|
_keyLine = state.line;
|
|
25067
25299
|
_keyLineStart = state.lineStart;
|
|
25068
25300
|
_keyPos = state.position;
|
|
25069
|
-
if (!composeNode(state, flowIndent, CONTEXT_FLOW_OUT, false, true))
|
|
25301
|
+
if (!composeNode(state, flowIndent, CONTEXT_FLOW_OUT, false, true)) {
|
|
25070
25302
|
break;
|
|
25303
|
+
}
|
|
25071
25304
|
if (state.line === _line) {
|
|
25072
25305
|
ch = state.input.charCodeAt(state.position);
|
|
25073
|
-
while (isWhiteSpace(ch))
|
|
25306
|
+
while (isWhiteSpace(ch)) {
|
|
25074
25307
|
ch = state.input.charCodeAt(++state.position);
|
|
25308
|
+
}
|
|
25075
25309
|
if (ch === 58) {
|
|
25076
25310
|
ch = state.input.charCodeAt(++state.position);
|
|
25077
|
-
if (!isWsOrEol(ch))
|
|
25311
|
+
if (!isWsOrEol(ch)) {
|
|
25078
25312
|
throwError(state, "a whitespace character is expected after the key-value separator within a block mapping");
|
|
25313
|
+
}
|
|
25079
25314
|
if (atExplicitKey) {
|
|
25080
25315
|
storeMappingPair(state, _result, overridableKeys, keyTag, keyNode, null, _keyLine, _keyLineStart, _keyPos);
|
|
25081
25316
|
keyTag = keyNode = valueNode = null;
|
|
@@ -25085,16 +25320,16 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
25085
25320
|
allowCompact = false;
|
|
25086
25321
|
keyTag = state.tag;
|
|
25087
25322
|
keyNode = state.result;
|
|
25088
|
-
} else if (detected)
|
|
25323
|
+
} else if (detected) {
|
|
25089
25324
|
throwError(state, "can not read an implicit mapping pair; a colon is missed");
|
|
25090
|
-
else {
|
|
25325
|
+
} else {
|
|
25091
25326
|
state.tag = _tag;
|
|
25092
25327
|
state.anchor = _anchor;
|
|
25093
25328
|
return true;
|
|
25094
25329
|
}
|
|
25095
|
-
} else if (detected)
|
|
25330
|
+
} else if (detected) {
|
|
25096
25331
|
throwError(state, "can not read a block mapping entry; a multiline key may not be an implicit key");
|
|
25097
|
-
else {
|
|
25332
|
+
} else {
|
|
25098
25333
|
state.tag = _tag;
|
|
25099
25334
|
state.anchor = _anchor;
|
|
25100
25335
|
return true;
|
|
@@ -25106,11 +25341,13 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
25106
25341
|
_keyLineStart = state.lineStart;
|
|
25107
25342
|
_keyPos = state.position;
|
|
25108
25343
|
}
|
|
25109
|
-
if (composeNode(state, nodeIndent, CONTEXT_BLOCK_OUT, true, allowCompact))
|
|
25110
|
-
if (atExplicitKey)
|
|
25344
|
+
if (composeNode(state, nodeIndent, CONTEXT_BLOCK_OUT, true, allowCompact)) {
|
|
25345
|
+
if (atExplicitKey) {
|
|
25111
25346
|
keyNode = state.result;
|
|
25112
|
-
else
|
|
25347
|
+
} else {
|
|
25113
25348
|
valueNode = state.result;
|
|
25349
|
+
}
|
|
25350
|
+
}
|
|
25114
25351
|
if (!atExplicitKey) {
|
|
25115
25352
|
storeMappingPair(state, _result, overridableKeys, keyTag, keyNode, valueNode, _keyLine, _keyLineStart, _keyPos);
|
|
25116
25353
|
keyTag = keyNode = valueNode = null;
|
|
@@ -25118,13 +25355,15 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
25118
25355
|
skipSeparationSpace(state, true, -1);
|
|
25119
25356
|
ch = state.input.charCodeAt(state.position);
|
|
25120
25357
|
}
|
|
25121
|
-
if ((state.line === _line || state.lineIndent > nodeIndent) && ch !== 0)
|
|
25358
|
+
if ((state.line === _line || state.lineIndent > nodeIndent) && ch !== 0) {
|
|
25122
25359
|
throwError(state, "bad indentation of a mapping entry");
|
|
25123
|
-
else if (state.lineIndent < nodeIndent)
|
|
25360
|
+
} else if (state.lineIndent < nodeIndent) {
|
|
25124
25361
|
break;
|
|
25362
|
+
}
|
|
25125
25363
|
}
|
|
25126
|
-
if (atExplicitKey)
|
|
25364
|
+
if (atExplicitKey) {
|
|
25127
25365
|
storeMappingPair(state, _result, overridableKeys, keyTag, keyNode, null, _keyLine, _keyLineStart, _keyPos);
|
|
25366
|
+
}
|
|
25128
25367
|
if (detected) {
|
|
25129
25368
|
state.tag = _tag;
|
|
25130
25369
|
state.anchor = _anchor;
|
|
@@ -25141,8 +25380,9 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
25141
25380
|
let ch = state.input.charCodeAt(state.position);
|
|
25142
25381
|
if (ch !== 33)
|
|
25143
25382
|
return false;
|
|
25144
|
-
if (state.tag !== null)
|
|
25383
|
+
if (state.tag !== null) {
|
|
25145
25384
|
throwError(state, "duplication of a tag property");
|
|
25385
|
+
}
|
|
25146
25386
|
ch = state.input.charCodeAt(++state.position);
|
|
25147
25387
|
if (ch === 60) {
|
|
25148
25388
|
isVerbatim = true;
|
|
@@ -25151,66 +25391,77 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
25151
25391
|
isNamed = true;
|
|
25152
25392
|
tagHandle = "!!";
|
|
25153
25393
|
ch = state.input.charCodeAt(++state.position);
|
|
25154
|
-
} else
|
|
25394
|
+
} else {
|
|
25155
25395
|
tagHandle = "!";
|
|
25396
|
+
}
|
|
25156
25397
|
let _position = state.position;
|
|
25157
25398
|
if (isVerbatim) {
|
|
25158
|
-
do
|
|
25399
|
+
do {
|
|
25159
25400
|
ch = state.input.charCodeAt(++state.position);
|
|
25160
|
-
while (ch !== 0 && ch !== 62);
|
|
25401
|
+
} while (ch !== 0 && ch !== 62);
|
|
25161
25402
|
if (state.position < state.length) {
|
|
25162
25403
|
tagName = state.input.slice(_position, state.position);
|
|
25163
25404
|
ch = state.input.charCodeAt(++state.position);
|
|
25164
|
-
} else
|
|
25405
|
+
} else {
|
|
25165
25406
|
throwError(state, "unexpected end of the stream within a verbatim tag");
|
|
25407
|
+
}
|
|
25166
25408
|
} else {
|
|
25167
25409
|
while (ch !== 0 && !isWsOrEol(ch)) {
|
|
25168
|
-
if (ch === 33)
|
|
25410
|
+
if (ch === 33) {
|
|
25169
25411
|
if (!isNamed) {
|
|
25170
25412
|
tagHandle = state.input.slice(_position - 1, state.position + 1);
|
|
25171
|
-
if (!PATTERN_TAG_HANDLE.test(tagHandle))
|
|
25413
|
+
if (!PATTERN_TAG_HANDLE.test(tagHandle)) {
|
|
25172
25414
|
throwError(state, "named tag handle cannot contain such characters");
|
|
25415
|
+
}
|
|
25173
25416
|
isNamed = true;
|
|
25174
25417
|
_position = state.position + 1;
|
|
25175
|
-
} else
|
|
25418
|
+
} else {
|
|
25176
25419
|
throwError(state, "tag suffix cannot contain exclamation marks");
|
|
25420
|
+
}
|
|
25421
|
+
}
|
|
25177
25422
|
ch = state.input.charCodeAt(++state.position);
|
|
25178
25423
|
}
|
|
25179
25424
|
tagName = state.input.slice(_position, state.position);
|
|
25180
|
-
if (PATTERN_FLOW_INDICATORS.test(tagName))
|
|
25425
|
+
if (PATTERN_FLOW_INDICATORS.test(tagName)) {
|
|
25181
25426
|
throwError(state, "tag suffix cannot contain flow indicator characters");
|
|
25427
|
+
}
|
|
25182
25428
|
}
|
|
25183
|
-
if (tagName && !PATTERN_TAG_URI.test(tagName))
|
|
25429
|
+
if (tagName && !PATTERN_TAG_URI.test(tagName)) {
|
|
25184
25430
|
throwError(state, "tag name cannot contain such characters: " + tagName);
|
|
25431
|
+
}
|
|
25185
25432
|
try {
|
|
25186
25433
|
tagName = decodeURIComponent(tagName);
|
|
25187
25434
|
} catch (err) {
|
|
25188
25435
|
throwError(state, "tag name is malformed: " + tagName);
|
|
25189
25436
|
}
|
|
25190
|
-
if (isVerbatim)
|
|
25437
|
+
if (isVerbatim) {
|
|
25191
25438
|
state.tag = tagName;
|
|
25192
|
-
else if (_hasOwnProperty.call(state.tagMap, tagHandle))
|
|
25439
|
+
} else if (_hasOwnProperty.call(state.tagMap, tagHandle)) {
|
|
25193
25440
|
state.tag = state.tagMap[tagHandle] + tagName;
|
|
25194
|
-
else if (tagHandle === "!")
|
|
25441
|
+
} else if (tagHandle === "!") {
|
|
25195
25442
|
state.tag = "!" + tagName;
|
|
25196
|
-
else if (tagHandle === "!!")
|
|
25443
|
+
} else if (tagHandle === "!!") {
|
|
25197
25444
|
state.tag = "tag:yaml.org,2002:" + tagName;
|
|
25198
|
-
else
|
|
25445
|
+
} else {
|
|
25199
25446
|
throwError(state, 'undeclared tag handle "' + tagHandle + '"');
|
|
25447
|
+
}
|
|
25200
25448
|
return true;
|
|
25201
25449
|
}
|
|
25202
25450
|
function readAnchorProperty(state) {
|
|
25203
25451
|
let ch = state.input.charCodeAt(state.position);
|
|
25204
25452
|
if (ch !== 38)
|
|
25205
25453
|
return false;
|
|
25206
|
-
if (state.anchor !== null)
|
|
25454
|
+
if (state.anchor !== null) {
|
|
25207
25455
|
throwError(state, "duplication of an anchor property");
|
|
25456
|
+
}
|
|
25208
25457
|
ch = state.input.charCodeAt(++state.position);
|
|
25209
25458
|
const _position = state.position;
|
|
25210
|
-
while (ch !== 0 && !isWsOrEol(ch) && !isFlowIndicator(ch))
|
|
25459
|
+
while (ch !== 0 && !isWsOrEol(ch) && !isFlowIndicator(ch)) {
|
|
25211
25460
|
ch = state.input.charCodeAt(++state.position);
|
|
25212
|
-
|
|
25461
|
+
}
|
|
25462
|
+
if (state.position === _position) {
|
|
25213
25463
|
throwError(state, "name of an anchor node must contain at least one character");
|
|
25464
|
+
}
|
|
25214
25465
|
state.anchor = state.input.slice(_position, state.position);
|
|
25215
25466
|
return true;
|
|
25216
25467
|
}
|
|
@@ -25220,13 +25471,16 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
25220
25471
|
return false;
|
|
25221
25472
|
ch = state.input.charCodeAt(++state.position);
|
|
25222
25473
|
const _position = state.position;
|
|
25223
|
-
while (ch !== 0 && !isWsOrEol(ch) && !isFlowIndicator(ch))
|
|
25474
|
+
while (ch !== 0 && !isWsOrEol(ch) && !isFlowIndicator(ch)) {
|
|
25224
25475
|
ch = state.input.charCodeAt(++state.position);
|
|
25225
|
-
|
|
25476
|
+
}
|
|
25477
|
+
if (state.position === _position) {
|
|
25226
25478
|
throwError(state, "name of an alias node must contain at least one character");
|
|
25479
|
+
}
|
|
25227
25480
|
const alias = state.input.slice(_position, state.position);
|
|
25228
|
-
if (!_hasOwnProperty.call(state.anchorMap, alias))
|
|
25481
|
+
if (!_hasOwnProperty.call(state.anchorMap, alias)) {
|
|
25229
25482
|
throwError(state, 'unidentified alias "' + alias + '"');
|
|
25483
|
+
}
|
|
25230
25484
|
state.result = state.anchorMap[alias];
|
|
25231
25485
|
skipSeparationSpace(state, true, -1);
|
|
25232
25486
|
return true;
|
|
@@ -25254,14 +25508,16 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
25254
25508
|
let atNewLine = false;
|
|
25255
25509
|
let hasContent = false;
|
|
25256
25510
|
let propertyStart = null;
|
|
25257
|
-
let
|
|
25511
|
+
let type2;
|
|
25258
25512
|
let flowIndent;
|
|
25259
25513
|
let blockIndent;
|
|
25260
|
-
if (state.depth >= state.maxDepth)
|
|
25514
|
+
if (state.depth >= state.maxDepth) {
|
|
25261
25515
|
throwError(state, "nesting exceeded maxDepth (" + state.maxDepth + ")");
|
|
25516
|
+
}
|
|
25262
25517
|
state.depth += 1;
|
|
25263
|
-
if (state.listener !== null)
|
|
25518
|
+
if (state.listener !== null) {
|
|
25264
25519
|
state.listener("open", state);
|
|
25520
|
+
}
|
|
25265
25521
|
state.tag = null;
|
|
25266
25522
|
state.anchor = null;
|
|
25267
25523
|
state.kind = null;
|
|
@@ -25270,110 +25526,131 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
25270
25526
|
if (allowToSeek) {
|
|
25271
25527
|
if (skipSeparationSpace(state, true, -1)) {
|
|
25272
25528
|
atNewLine = true;
|
|
25273
|
-
if (state.lineIndent > parentIndent)
|
|
25529
|
+
if (state.lineIndent > parentIndent) {
|
|
25274
25530
|
indentStatus = 1;
|
|
25275
|
-
else if (state.lineIndent === parentIndent)
|
|
25531
|
+
} else if (state.lineIndent === parentIndent) {
|
|
25276
25532
|
indentStatus = 0;
|
|
25277
|
-
else if (state.lineIndent < parentIndent)
|
|
25533
|
+
} else if (state.lineIndent < parentIndent) {
|
|
25278
25534
|
indentStatus = -1;
|
|
25535
|
+
}
|
|
25279
25536
|
}
|
|
25280
25537
|
}
|
|
25281
|
-
if (indentStatus === 1)
|
|
25538
|
+
if (indentStatus === 1) {
|
|
25282
25539
|
while (true) {
|
|
25283
25540
|
const ch = state.input.charCodeAt(state.position);
|
|
25284
25541
|
const propertyState = snapshotState(state);
|
|
25285
|
-
if (atNewLine && (ch === 33 && state.tag !== null || ch === 38 && state.anchor !== null))
|
|
25542
|
+
if (atNewLine && (ch === 33 && state.tag !== null || ch === 38 && state.anchor !== null)) {
|
|
25286
25543
|
break;
|
|
25287
|
-
|
|
25544
|
+
}
|
|
25545
|
+
if (!readTagProperty(state) && !readAnchorProperty(state)) {
|
|
25288
25546
|
break;
|
|
25289
|
-
|
|
25547
|
+
}
|
|
25548
|
+
if (propertyStart === null) {
|
|
25290
25549
|
propertyStart = propertyState;
|
|
25550
|
+
}
|
|
25291
25551
|
if (skipSeparationSpace(state, true, -1)) {
|
|
25292
25552
|
atNewLine = true;
|
|
25293
25553
|
allowBlockCollections = allowBlockStyles;
|
|
25294
|
-
if (state.lineIndent > parentIndent)
|
|
25554
|
+
if (state.lineIndent > parentIndent) {
|
|
25295
25555
|
indentStatus = 1;
|
|
25296
|
-
else if (state.lineIndent === parentIndent)
|
|
25556
|
+
} else if (state.lineIndent === parentIndent) {
|
|
25297
25557
|
indentStatus = 0;
|
|
25298
|
-
else if (state.lineIndent < parentIndent)
|
|
25558
|
+
} else if (state.lineIndent < parentIndent) {
|
|
25299
25559
|
indentStatus = -1;
|
|
25300
|
-
|
|
25560
|
+
}
|
|
25561
|
+
} else {
|
|
25301
25562
|
allowBlockCollections = false;
|
|
25563
|
+
}
|
|
25302
25564
|
}
|
|
25303
|
-
|
|
25565
|
+
}
|
|
25566
|
+
if (allowBlockCollections) {
|
|
25304
25567
|
allowBlockCollections = atNewLine || allowCompact;
|
|
25568
|
+
}
|
|
25305
25569
|
if (indentStatus === 1 || CONTEXT_BLOCK_OUT === nodeContext) {
|
|
25306
|
-
if (CONTEXT_FLOW_IN === nodeContext || CONTEXT_FLOW_OUT === nodeContext)
|
|
25570
|
+
if (CONTEXT_FLOW_IN === nodeContext || CONTEXT_FLOW_OUT === nodeContext) {
|
|
25307
25571
|
flowIndent = parentIndent;
|
|
25308
|
-
else
|
|
25572
|
+
} else {
|
|
25309
25573
|
flowIndent = parentIndent + 1;
|
|
25574
|
+
}
|
|
25310
25575
|
blockIndent = state.position - state.lineStart;
|
|
25311
|
-
if (indentStatus === 1)
|
|
25312
|
-
if (allowBlockCollections && (readBlockSequence(state, blockIndent) || readBlockMapping(state, blockIndent, flowIndent)) || readFlowCollection(state, flowIndent))
|
|
25576
|
+
if (indentStatus === 1) {
|
|
25577
|
+
if (allowBlockCollections && (readBlockSequence(state, blockIndent) || readBlockMapping(state, blockIndent, flowIndent)) || readFlowCollection(state, flowIndent)) {
|
|
25313
25578
|
hasContent = true;
|
|
25314
|
-
else {
|
|
25579
|
+
} else {
|
|
25315
25580
|
const ch = state.input.charCodeAt(state.position);
|
|
25316
|
-
if (propertyStart !== null && allowBlockStyles && !allowBlockCollections && ch !== 124 && ch !== 62 && tryReadBlockMappingFromProperty(state, propertyStart, propertyStart.position - propertyStart.lineStart, flowIndent))
|
|
25581
|
+
if (propertyStart !== null && allowBlockStyles && !allowBlockCollections && ch !== 124 && ch !== 62 && tryReadBlockMappingFromProperty(state, propertyStart, propertyStart.position - propertyStart.lineStart, flowIndent)) {
|
|
25317
25582
|
hasContent = true;
|
|
25318
|
-
else if (allowBlockScalars && readBlockScalar(state, flowIndent) || readSingleQuotedScalar(state, flowIndent) || readDoubleQuotedScalar(state, flowIndent))
|
|
25583
|
+
} else if (allowBlockScalars && readBlockScalar(state, flowIndent) || readSingleQuotedScalar(state, flowIndent) || readDoubleQuotedScalar(state, flowIndent)) {
|
|
25319
25584
|
hasContent = true;
|
|
25320
|
-
else if (readAlias(state)) {
|
|
25585
|
+
} else if (readAlias(state)) {
|
|
25321
25586
|
hasContent = true;
|
|
25322
|
-
if (state.tag !== null || state.anchor !== null)
|
|
25587
|
+
if (state.tag !== null || state.anchor !== null) {
|
|
25323
25588
|
throwError(state, "alias node should not have any properties");
|
|
25589
|
+
}
|
|
25324
25590
|
} else if (readPlainScalar(state, flowIndent, CONTEXT_FLOW_IN === nodeContext)) {
|
|
25325
25591
|
hasContent = true;
|
|
25326
|
-
if (state.tag === null)
|
|
25592
|
+
if (state.tag === null) {
|
|
25327
25593
|
state.tag = "?";
|
|
25594
|
+
}
|
|
25328
25595
|
}
|
|
25329
|
-
if (state.anchor !== null)
|
|
25596
|
+
if (state.anchor !== null) {
|
|
25330
25597
|
storeAnchor(state, state.anchor, state.result);
|
|
25598
|
+
}
|
|
25331
25599
|
}
|
|
25332
|
-
else if (indentStatus === 0)
|
|
25600
|
+
} else if (indentStatus === 0) {
|
|
25333
25601
|
hasContent = allowBlockCollections && readBlockSequence(state, blockIndent);
|
|
25602
|
+
}
|
|
25334
25603
|
}
|
|
25335
25604
|
if (state.tag === null) {
|
|
25336
|
-
if (state.anchor !== null)
|
|
25605
|
+
if (state.anchor !== null) {
|
|
25337
25606
|
storeAnchor(state, state.anchor, state.result);
|
|
25607
|
+
}
|
|
25338
25608
|
} else if (state.tag === "?") {
|
|
25339
|
-
if (state.result !== null && state.kind !== "scalar")
|
|
25609
|
+
if (state.result !== null && state.kind !== "scalar") {
|
|
25340
25610
|
throwError(state, 'unacceptable node kind for !<?> tag; it should be "scalar", not "' + state.kind + '"');
|
|
25611
|
+
}
|
|
25341
25612
|
for (let typeIndex = 0, typeQuantity = state.implicitTypes.length;typeIndex < typeQuantity; typeIndex += 1) {
|
|
25342
|
-
|
|
25343
|
-
if (
|
|
25344
|
-
state.result =
|
|
25345
|
-
state.tag =
|
|
25346
|
-
if (state.anchor !== null)
|
|
25613
|
+
type2 = state.implicitTypes[typeIndex];
|
|
25614
|
+
if (type2.resolve(state.result)) {
|
|
25615
|
+
state.result = type2.construct(state.result);
|
|
25616
|
+
state.tag = type2.tag;
|
|
25617
|
+
if (state.anchor !== null) {
|
|
25347
25618
|
storeAnchor(state, state.anchor, state.result);
|
|
25619
|
+
}
|
|
25348
25620
|
break;
|
|
25349
25621
|
}
|
|
25350
25622
|
}
|
|
25351
25623
|
} else if (state.tag !== "!") {
|
|
25352
|
-
if (_hasOwnProperty.call(state.typeMap[state.kind || "fallback"], state.tag))
|
|
25353
|
-
|
|
25354
|
-
else {
|
|
25355
|
-
|
|
25624
|
+
if (_hasOwnProperty.call(state.typeMap[state.kind || "fallback"], state.tag)) {
|
|
25625
|
+
type2 = state.typeMap[state.kind || "fallback"][state.tag];
|
|
25626
|
+
} else {
|
|
25627
|
+
type2 = null;
|
|
25356
25628
|
const typeList = state.typeMap.multi[state.kind || "fallback"];
|
|
25357
|
-
for (let typeIndex = 0, typeQuantity = typeList.length;typeIndex < typeQuantity; typeIndex += 1)
|
|
25629
|
+
for (let typeIndex = 0, typeQuantity = typeList.length;typeIndex < typeQuantity; typeIndex += 1) {
|
|
25358
25630
|
if (state.tag.slice(0, typeList[typeIndex].tag.length) === typeList[typeIndex].tag) {
|
|
25359
|
-
|
|
25631
|
+
type2 = typeList[typeIndex];
|
|
25360
25632
|
break;
|
|
25361
25633
|
}
|
|
25634
|
+
}
|
|
25362
25635
|
}
|
|
25363
|
-
if (!
|
|
25636
|
+
if (!type2) {
|
|
25364
25637
|
throwError(state, "unknown tag !<" + state.tag + ">");
|
|
25365
|
-
|
|
25366
|
-
|
|
25367
|
-
|
|
25638
|
+
}
|
|
25639
|
+
if (state.result !== null && type2.kind !== state.kind) {
|
|
25640
|
+
throwError(state, "unacceptable node kind for !<" + state.tag + '> tag; it should be "' + type2.kind + '", not "' + state.kind + '"');
|
|
25641
|
+
}
|
|
25642
|
+
if (!type2.resolve(state.result, state.tag)) {
|
|
25368
25643
|
throwError(state, "cannot resolve a node with !<" + state.tag + "> explicit tag");
|
|
25369
|
-
else {
|
|
25370
|
-
state.result =
|
|
25371
|
-
if (state.anchor !== null)
|
|
25644
|
+
} else {
|
|
25645
|
+
state.result = type2.construct(state.result, state.tag);
|
|
25646
|
+
if (state.anchor !== null) {
|
|
25372
25647
|
storeAnchor(state, state.anchor, state.result);
|
|
25648
|
+
}
|
|
25373
25649
|
}
|
|
25374
25650
|
}
|
|
25375
|
-
if (state.listener !== null)
|
|
25651
|
+
if (state.listener !== null) {
|
|
25376
25652
|
state.listener("close", state);
|
|
25653
|
+
}
|
|
25377
25654
|
state.depth -= 1;
|
|
25378
25655
|
return state.tag !== null || state.anchor !== null || hasContent;
|
|
25379
25656
|
}
|
|
@@ -25383,55 +25660,63 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
25383
25660
|
let ch;
|
|
25384
25661
|
state.version = null;
|
|
25385
25662
|
state.checkLineBreaks = state.legacy;
|
|
25386
|
-
state.tagMap = Object.create(null);
|
|
25387
|
-
state.anchorMap = Object.create(null);
|
|
25663
|
+
state.tagMap = /* @__PURE__ */ Object.create(null);
|
|
25664
|
+
state.anchorMap = /* @__PURE__ */ Object.create(null);
|
|
25388
25665
|
while ((ch = state.input.charCodeAt(state.position)) !== 0) {
|
|
25389
25666
|
skipSeparationSpace(state, true, -1);
|
|
25390
25667
|
ch = state.input.charCodeAt(state.position);
|
|
25391
|
-
if (state.lineIndent > 0 || ch !== 37)
|
|
25668
|
+
if (state.lineIndent > 0 || ch !== 37) {
|
|
25392
25669
|
break;
|
|
25670
|
+
}
|
|
25393
25671
|
hasDirectives = true;
|
|
25394
25672
|
ch = state.input.charCodeAt(++state.position);
|
|
25395
25673
|
let _position = state.position;
|
|
25396
|
-
while (ch !== 0 && !isWsOrEol(ch))
|
|
25674
|
+
while (ch !== 0 && !isWsOrEol(ch)) {
|
|
25397
25675
|
ch = state.input.charCodeAt(++state.position);
|
|
25676
|
+
}
|
|
25398
25677
|
const directiveName = state.input.slice(_position, state.position);
|
|
25399
25678
|
const directiveArgs = [];
|
|
25400
|
-
if (directiveName.length < 1)
|
|
25679
|
+
if (directiveName.length < 1) {
|
|
25401
25680
|
throwError(state, "directive name must not be less than one character in length");
|
|
25681
|
+
}
|
|
25402
25682
|
while (ch !== 0) {
|
|
25403
|
-
while (isWhiteSpace(ch))
|
|
25683
|
+
while (isWhiteSpace(ch)) {
|
|
25404
25684
|
ch = state.input.charCodeAt(++state.position);
|
|
25685
|
+
}
|
|
25405
25686
|
if (ch === 35) {
|
|
25406
|
-
do
|
|
25687
|
+
do {
|
|
25407
25688
|
ch = state.input.charCodeAt(++state.position);
|
|
25408
|
-
while (ch !== 0 && !isEol(ch));
|
|
25689
|
+
} while (ch !== 0 && !isEol(ch));
|
|
25409
25690
|
break;
|
|
25410
25691
|
}
|
|
25411
25692
|
if (isEol(ch))
|
|
25412
25693
|
break;
|
|
25413
25694
|
_position = state.position;
|
|
25414
|
-
while (ch !== 0 && !isWsOrEol(ch))
|
|
25695
|
+
while (ch !== 0 && !isWsOrEol(ch)) {
|
|
25415
25696
|
ch = state.input.charCodeAt(++state.position);
|
|
25697
|
+
}
|
|
25416
25698
|
directiveArgs.push(state.input.slice(_position, state.position));
|
|
25417
25699
|
}
|
|
25418
25700
|
if (ch !== 0)
|
|
25419
25701
|
readLineBreak(state);
|
|
25420
|
-
if (_hasOwnProperty.call(directiveHandlers, directiveName))
|
|
25702
|
+
if (_hasOwnProperty.call(directiveHandlers, directiveName)) {
|
|
25421
25703
|
directiveHandlers[directiveName](state, directiveName, directiveArgs);
|
|
25422
|
-
else
|
|
25704
|
+
} else {
|
|
25423
25705
|
throwWarning(state, 'unknown document directive "' + directiveName + '"');
|
|
25706
|
+
}
|
|
25424
25707
|
}
|
|
25425
25708
|
skipSeparationSpace(state, true, -1);
|
|
25426
25709
|
if (state.lineIndent === 0 && state.input.charCodeAt(state.position) === 45 && state.input.charCodeAt(state.position + 1) === 45 && state.input.charCodeAt(state.position + 2) === 45) {
|
|
25427
25710
|
state.position += 3;
|
|
25428
25711
|
skipSeparationSpace(state, true, -1);
|
|
25429
|
-
} else if (hasDirectives)
|
|
25712
|
+
} else if (hasDirectives) {
|
|
25430
25713
|
throwError(state, "directives end mark is expected");
|
|
25714
|
+
}
|
|
25431
25715
|
composeNode(state, state.lineIndent - 1, CONTEXT_BLOCK_OUT, false, true);
|
|
25432
25716
|
skipSeparationSpace(state, true, -1);
|
|
25433
|
-
if (state.checkLineBreaks && PATTERN_NON_ASCII_LINE_BREAKS.test(state.input.slice(documentStart, state.position)))
|
|
25717
|
+
if (state.checkLineBreaks && PATTERN_NON_ASCII_LINE_BREAKS.test(state.input.slice(documentStart, state.position))) {
|
|
25434
25718
|
throwWarning(state, "non-ASCII line breaks are interpreted as content");
|
|
25719
|
+
}
|
|
25435
25720
|
state.documents.push(state.result);
|
|
25436
25721
|
if (state.position === state.lineStart && testDocumentSeparator(state)) {
|
|
25437
25722
|
if (state.input.charCodeAt(state.position) === 46) {
|
|
@@ -25440,18 +25725,21 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
25440
25725
|
}
|
|
25441
25726
|
return;
|
|
25442
25727
|
}
|
|
25443
|
-
if (state.position < state.length - 1)
|
|
25728
|
+
if (state.position < state.length - 1) {
|
|
25444
25729
|
throwError(state, "end of the stream or a document separator is expected");
|
|
25730
|
+
}
|
|
25445
25731
|
}
|
|
25446
25732
|
function loadDocuments(input, options) {
|
|
25447
25733
|
input = String(input);
|
|
25448
25734
|
options = options || {};
|
|
25449
25735
|
if (input.length !== 0) {
|
|
25450
|
-
if (input.charCodeAt(input.length - 1) !== 10 && input.charCodeAt(input.length - 1) !== 13)
|
|
25736
|
+
if (input.charCodeAt(input.length - 1) !== 10 && input.charCodeAt(input.length - 1) !== 13) {
|
|
25451
25737
|
input += `
|
|
25452
25738
|
`;
|
|
25453
|
-
|
|
25739
|
+
}
|
|
25740
|
+
if (input.charCodeAt(0) === 65279) {
|
|
25454
25741
|
input = input.slice(1);
|
|
25742
|
+
}
|
|
25455
25743
|
}
|
|
25456
25744
|
const state = new State(input, options);
|
|
25457
25745
|
const nullpos = input.indexOf("\x00");
|
|
@@ -25464,64 +25752,74 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
25464
25752
|
state.lineIndent += 1;
|
|
25465
25753
|
state.position += 1;
|
|
25466
25754
|
}
|
|
25467
|
-
while (state.position < state.length - 1)
|
|
25755
|
+
while (state.position < state.length - 1) {
|
|
25468
25756
|
readDocument(state);
|
|
25757
|
+
}
|
|
25469
25758
|
return state.documents;
|
|
25470
25759
|
}
|
|
25471
|
-
function
|
|
25760
|
+
function loadAll2(input, iterator, options) {
|
|
25472
25761
|
if (iterator !== null && typeof iterator === "object" && typeof options === "undefined") {
|
|
25473
25762
|
options = iterator;
|
|
25474
25763
|
iterator = null;
|
|
25475
25764
|
}
|
|
25476
25765
|
const documents = loadDocuments(input, options);
|
|
25477
|
-
if (typeof iterator !== "function")
|
|
25766
|
+
if (typeof iterator !== "function") {
|
|
25478
25767
|
return documents;
|
|
25479
|
-
|
|
25768
|
+
}
|
|
25769
|
+
for (let index = 0, length = documents.length;index < length; index += 1) {
|
|
25480
25770
|
iterator(documents[index]);
|
|
25771
|
+
}
|
|
25481
25772
|
}
|
|
25482
|
-
function
|
|
25773
|
+
function load2(input, options) {
|
|
25483
25774
|
const documents = loadDocuments(input, options);
|
|
25484
|
-
if (documents.length === 0)
|
|
25775
|
+
if (documents.length === 0) {
|
|
25485
25776
|
return;
|
|
25486
|
-
else if (documents.length === 1)
|
|
25777
|
+
} else if (documents.length === 1) {
|
|
25487
25778
|
return documents[0];
|
|
25488
|
-
|
|
25779
|
+
}
|
|
25780
|
+
throw new YAMLException2("expected a single document in the stream, but found more");
|
|
25489
25781
|
}
|
|
25490
|
-
|
|
25491
|
-
|
|
25492
|
-
|
|
25493
|
-
|
|
25494
|
-
|
|
25495
|
-
|
|
25496
|
-
|
|
25497
|
-
|
|
25498
|
-
|
|
25499
|
-
|
|
25500
|
-
|
|
25501
|
-
|
|
25502
|
-
|
|
25503
|
-
|
|
25504
|
-
|
|
25505
|
-
|
|
25506
|
-
|
|
25507
|
-
|
|
25508
|
-
|
|
25509
|
-
|
|
25510
|
-
|
|
25511
|
-
|
|
25512
|
-
|
|
25513
|
-
|
|
25514
|
-
|
|
25515
|
-
|
|
25516
|
-
|
|
25517
|
-
|
|
25518
|
-
|
|
25519
|
-
|
|
25520
|
-
|
|
25521
|
-
|
|
25522
|
-
|
|
25523
|
-
|
|
25524
|
-
|
|
25782
|
+
loader.loadAll = loadAll2;
|
|
25783
|
+
loader.load = load2;
|
|
25784
|
+
return loader;
|
|
25785
|
+
}
|
|
25786
|
+
var dumper = {};
|
|
25787
|
+
var hasRequiredDumper;
|
|
25788
|
+
function requireDumper() {
|
|
25789
|
+
if (hasRequiredDumper)
|
|
25790
|
+
return dumper;
|
|
25791
|
+
hasRequiredDumper = 1;
|
|
25792
|
+
const common2 = requireCommon();
|
|
25793
|
+
const YAMLException2 = requireException();
|
|
25794
|
+
const DEFAULT_SCHEMA2 = require_default();
|
|
25795
|
+
const _toString = Object.prototype.toString;
|
|
25796
|
+
const _hasOwnProperty = Object.prototype.hasOwnProperty;
|
|
25797
|
+
const CHAR_BOM = 65279;
|
|
25798
|
+
const CHAR_TAB = 9;
|
|
25799
|
+
const CHAR_LINE_FEED = 10;
|
|
25800
|
+
const CHAR_CARRIAGE_RETURN = 13;
|
|
25801
|
+
const CHAR_SPACE = 32;
|
|
25802
|
+
const CHAR_EXCLAMATION = 33;
|
|
25803
|
+
const CHAR_DOUBLE_QUOTE = 34;
|
|
25804
|
+
const CHAR_SHARP = 35;
|
|
25805
|
+
const CHAR_PERCENT = 37;
|
|
25806
|
+
const CHAR_AMPERSAND = 38;
|
|
25807
|
+
const CHAR_SINGLE_QUOTE = 39;
|
|
25808
|
+
const CHAR_ASTERISK = 42;
|
|
25809
|
+
const CHAR_COMMA = 44;
|
|
25810
|
+
const CHAR_MINUS = 45;
|
|
25811
|
+
const CHAR_COLON = 58;
|
|
25812
|
+
const CHAR_EQUALS = 61;
|
|
25813
|
+
const CHAR_GREATER_THAN = 62;
|
|
25814
|
+
const CHAR_QUESTION = 63;
|
|
25815
|
+
const CHAR_COMMERCIAL_AT = 64;
|
|
25816
|
+
const CHAR_LEFT_SQUARE_BRACKET = 91;
|
|
25817
|
+
const CHAR_RIGHT_SQUARE_BRACKET = 93;
|
|
25818
|
+
const CHAR_GRAVE_ACCENT = 96;
|
|
25819
|
+
const CHAR_LEFT_CURLY_BRACKET = 123;
|
|
25820
|
+
const CHAR_VERTICAL_LINE = 124;
|
|
25821
|
+
const CHAR_RIGHT_CURLY_BRACKET = 125;
|
|
25822
|
+
const ESCAPE_SEQUENCES = {};
|
|
25525
25823
|
ESCAPE_SEQUENCES[0] = "\\0";
|
|
25526
25824
|
ESCAPE_SEQUENCES[7] = "\\a";
|
|
25527
25825
|
ESCAPE_SEQUENCES[8] = "\\b";
|
|
@@ -25537,7 +25835,7 @@ var require_dumper = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
25537
25835
|
ESCAPE_SEQUENCES[160] = "\\_";
|
|
25538
25836
|
ESCAPE_SEQUENCES[8232] = "\\L";
|
|
25539
25837
|
ESCAPE_SEQUENCES[8233] = "\\P";
|
|
25540
|
-
|
|
25838
|
+
const DEPRECATED_BOOLEANS_SYNTAX = [
|
|
25541
25839
|
"y",
|
|
25542
25840
|
"Y",
|
|
25543
25841
|
"yes",
|
|
@@ -25555,20 +25853,22 @@ var require_dumper = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
25555
25853
|
"Off",
|
|
25556
25854
|
"OFF"
|
|
25557
25855
|
];
|
|
25558
|
-
|
|
25559
|
-
function compileStyleMap(
|
|
25560
|
-
if (
|
|
25856
|
+
const DEPRECATED_BASE60_SYNTAX = /^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;
|
|
25857
|
+
function compileStyleMap(schema2, map2) {
|
|
25858
|
+
if (map2 === null)
|
|
25561
25859
|
return {};
|
|
25562
25860
|
const result = {};
|
|
25563
|
-
const keys = Object.keys(
|
|
25861
|
+
const keys = Object.keys(map2);
|
|
25564
25862
|
for (let index = 0, length = keys.length;index < length; index += 1) {
|
|
25565
25863
|
let tag = keys[index];
|
|
25566
|
-
let style = String(
|
|
25567
|
-
if (tag.slice(0, 2) === "!!")
|
|
25864
|
+
let style = String(map2[tag]);
|
|
25865
|
+
if (tag.slice(0, 2) === "!!") {
|
|
25568
25866
|
tag = "tag:yaml.org,2002:" + tag.slice(2);
|
|
25569
|
-
|
|
25570
|
-
|
|
25571
|
-
|
|
25867
|
+
}
|
|
25868
|
+
const type2 = schema2.compiledTypeMap["fallback"][tag];
|
|
25869
|
+
if (type2 && _hasOwnProperty.call(type2.styleAliases, style)) {
|
|
25870
|
+
style = type2.styleAliases[style];
|
|
25871
|
+
}
|
|
25572
25872
|
result[tag] = style;
|
|
25573
25873
|
}
|
|
25574
25874
|
return result;
|
|
@@ -25586,18 +25886,19 @@ var require_dumper = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
25586
25886
|
} else if (character <= 4294967295) {
|
|
25587
25887
|
handle = "U";
|
|
25588
25888
|
length = 8;
|
|
25589
|
-
} else
|
|
25590
|
-
throw new
|
|
25591
|
-
|
|
25889
|
+
} else {
|
|
25890
|
+
throw new YAMLException2("code point within a string may not be greater than 0xFFFFFFFF");
|
|
25891
|
+
}
|
|
25892
|
+
return "\\" + handle + common2.repeat("0", length - string.length) + string;
|
|
25592
25893
|
}
|
|
25593
|
-
|
|
25594
|
-
|
|
25894
|
+
const QUOTING_TYPE_SINGLE = 1;
|
|
25895
|
+
const QUOTING_TYPE_DOUBLE = 2;
|
|
25595
25896
|
function State(options) {
|
|
25596
|
-
this.schema = options["schema"] ||
|
|
25897
|
+
this.schema = options["schema"] || DEFAULT_SCHEMA2;
|
|
25597
25898
|
this.indent = Math.max(1, options["indent"] || 2);
|
|
25598
25899
|
this.noArrayIndent = options["noArrayIndent"] || false;
|
|
25599
25900
|
this.skipInvalid = options["skipInvalid"] || false;
|
|
25600
|
-
this.flowLevel =
|
|
25901
|
+
this.flowLevel = common2.isNothing(options["flowLevel"]) ? -1 : options["flowLevel"];
|
|
25601
25902
|
this.styleMap = compileStyleMap(this.schema, options["styles"] || null);
|
|
25602
25903
|
this.sortKeys = options["sortKeys"] || false;
|
|
25603
25904
|
this.lineWidth = options["lineWidth"] || 80;
|
|
@@ -25615,7 +25916,7 @@ var require_dumper = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
25615
25916
|
this.usedDuplicates = null;
|
|
25616
25917
|
}
|
|
25617
25918
|
function indentString(string, spaces) {
|
|
25618
|
-
const ind =
|
|
25919
|
+
const ind = common2.repeat(" ", spaces);
|
|
25619
25920
|
let position = 0;
|
|
25620
25921
|
let result = "";
|
|
25621
25922
|
const length = string.length;
|
|
@@ -25639,12 +25940,15 @@ var require_dumper = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
25639
25940
|
}
|
|
25640
25941
|
function generateNextLine(state, level) {
|
|
25641
25942
|
return `
|
|
25642
|
-
` +
|
|
25943
|
+
` + common2.repeat(" ", state.indent * level);
|
|
25643
25944
|
}
|
|
25644
|
-
function testImplicitResolving(state,
|
|
25645
|
-
for (let index = 0, length = state.implicitTypes.length;index < length; index += 1)
|
|
25646
|
-
|
|
25945
|
+
function testImplicitResolving(state, str2) {
|
|
25946
|
+
for (let index = 0, length = state.implicitTypes.length;index < length; index += 1) {
|
|
25947
|
+
const type2 = state.implicitTypes[index];
|
|
25948
|
+
if (type2.resolve(str2)) {
|
|
25647
25949
|
return true;
|
|
25950
|
+
}
|
|
25951
|
+
}
|
|
25648
25952
|
return false;
|
|
25649
25953
|
}
|
|
25650
25954
|
function isWhitespace(c) {
|
|
@@ -25672,19 +25976,21 @@ var require_dumper = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
25672
25976
|
let second;
|
|
25673
25977
|
if (first >= 55296 && first <= 56319 && pos + 1 < string.length) {
|
|
25674
25978
|
second = string.charCodeAt(pos + 1);
|
|
25675
|
-
if (second >= 56320 && second <= 57343)
|
|
25979
|
+
if (second >= 56320 && second <= 57343) {
|
|
25676
25980
|
return (first - 55296) * 1024 + second - 56320 + 65536;
|
|
25981
|
+
}
|
|
25677
25982
|
}
|
|
25678
25983
|
return first;
|
|
25679
25984
|
}
|
|
25680
25985
|
function needIndentIndicator(string) {
|
|
25681
|
-
|
|
25682
|
-
|
|
25683
|
-
|
|
25684
|
-
|
|
25685
|
-
|
|
25686
|
-
|
|
25687
|
-
|
|
25986
|
+
const leadingSpaceRe = /^\n* /;
|
|
25987
|
+
return leadingSpaceRe.test(string);
|
|
25988
|
+
}
|
|
25989
|
+
const STYLE_PLAIN = 1;
|
|
25990
|
+
const STYLE_SINGLE = 2;
|
|
25991
|
+
const STYLE_LITERAL = 3;
|
|
25992
|
+
const STYLE_FOLDED = 4;
|
|
25993
|
+
const STYLE_DOUBLE = 5;
|
|
25688
25994
|
function chooseScalarStyle(string, singleLineOnly, indentPerLevel, lineWidth, testAmbiguousType, quotingType, forceQuotes, inblock) {
|
|
25689
25995
|
let i;
|
|
25690
25996
|
let char = 0;
|
|
@@ -25694,15 +26000,16 @@ var require_dumper = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
25694
26000
|
const shouldTrackWidth = lineWidth !== -1;
|
|
25695
26001
|
let previousLineBreak = -1;
|
|
25696
26002
|
let plain = isPlainSafeFirst(codePointAt(string, 0)) && isPlainSafeLast(codePointAt(string, string.length - 1));
|
|
25697
|
-
if (singleLineOnly || forceQuotes)
|
|
26003
|
+
if (singleLineOnly || forceQuotes) {
|
|
25698
26004
|
for (i = 0;i < string.length; char >= 65536 ? i += 2 : i++) {
|
|
25699
26005
|
char = codePointAt(string, i);
|
|
25700
|
-
if (!isPrintable(char))
|
|
26006
|
+
if (!isPrintable(char)) {
|
|
25701
26007
|
return STYLE_DOUBLE;
|
|
26008
|
+
}
|
|
25702
26009
|
plain = plain && isPlainSafe(char, prevChar, inblock);
|
|
25703
26010
|
prevChar = char;
|
|
25704
26011
|
}
|
|
25705
|
-
else {
|
|
26012
|
+
} else {
|
|
25706
26013
|
for (i = 0;i < string.length; char >= 65536 ? i += 2 : i++) {
|
|
25707
26014
|
char = codePointAt(string, i);
|
|
25708
26015
|
if (char === CHAR_LINE_FEED) {
|
|
@@ -25711,31 +26018,37 @@ var require_dumper = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
25711
26018
|
hasFoldableLine = hasFoldableLine || i - previousLineBreak - 1 > lineWidth && string[previousLineBreak + 1] !== " ";
|
|
25712
26019
|
previousLineBreak = i;
|
|
25713
26020
|
}
|
|
25714
|
-
} else if (!isPrintable(char))
|
|
26021
|
+
} else if (!isPrintable(char)) {
|
|
25715
26022
|
return STYLE_DOUBLE;
|
|
26023
|
+
}
|
|
25716
26024
|
plain = plain && isPlainSafe(char, prevChar, inblock);
|
|
25717
26025
|
prevChar = char;
|
|
25718
26026
|
}
|
|
25719
|
-
hasFoldableLine = hasFoldableLine || shouldTrackWidth && i - previousLineBreak - 1 > lineWidth && string[previousLineBreak + 1] !== " ";
|
|
26027
|
+
hasFoldableLine = hasFoldableLine || shouldTrackWidth && (i - previousLineBreak - 1 > lineWidth && string[previousLineBreak + 1] !== " ");
|
|
25720
26028
|
}
|
|
25721
26029
|
if (!hasLineBreak && !hasFoldableLine) {
|
|
25722
|
-
if (plain && !forceQuotes && !testAmbiguousType(string))
|
|
26030
|
+
if (plain && !forceQuotes && !testAmbiguousType(string)) {
|
|
25723
26031
|
return STYLE_PLAIN;
|
|
26032
|
+
}
|
|
25724
26033
|
return quotingType === QUOTING_TYPE_DOUBLE ? STYLE_DOUBLE : STYLE_SINGLE;
|
|
25725
26034
|
}
|
|
25726
|
-
if (indentPerLevel > 9 && needIndentIndicator(string))
|
|
26035
|
+
if (indentPerLevel > 9 && needIndentIndicator(string)) {
|
|
25727
26036
|
return STYLE_DOUBLE;
|
|
25728
|
-
|
|
26037
|
+
}
|
|
26038
|
+
if (!forceQuotes) {
|
|
25729
26039
|
return hasFoldableLine ? STYLE_FOLDED : STYLE_LITERAL;
|
|
26040
|
+
}
|
|
25730
26041
|
return quotingType === QUOTING_TYPE_DOUBLE ? STYLE_DOUBLE : STYLE_SINGLE;
|
|
25731
26042
|
}
|
|
25732
26043
|
function writeScalar(state, string, level, iskey, inblock) {
|
|
25733
26044
|
state.dump = function() {
|
|
25734
|
-
if (string.length === 0)
|
|
26045
|
+
if (string.length === 0) {
|
|
25735
26046
|
return state.quotingType === QUOTING_TYPE_DOUBLE ? '""' : "''";
|
|
26047
|
+
}
|
|
25736
26048
|
if (!state.noCompatMode) {
|
|
25737
|
-
if (DEPRECATED_BOOLEANS_SYNTAX.indexOf(string) !== -1 || DEPRECATED_BASE60_SYNTAX.test(string))
|
|
26049
|
+
if (DEPRECATED_BOOLEANS_SYNTAX.indexOf(string) !== -1 || DEPRECATED_BASE60_SYNTAX.test(string)) {
|
|
25738
26050
|
return state.quotingType === QUOTING_TYPE_DOUBLE ? '"' + string + '"' : "'" + string + "'";
|
|
26051
|
+
}
|
|
25739
26052
|
}
|
|
25740
26053
|
const indent = state.indent * Math.max(1, level);
|
|
25741
26054
|
const lineWidth = state.lineWidth === -1 ? -1 : Math.max(Math.min(state.lineWidth, 40), state.lineWidth - indent);
|
|
@@ -25753,9 +26066,9 @@ var require_dumper = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
25753
26066
|
case STYLE_FOLDED:
|
|
25754
26067
|
return ">" + blockHeader(string, state.indent) + dropEndingNewline(indentString(foldString(string, lineWidth), indent));
|
|
25755
26068
|
case STYLE_DOUBLE:
|
|
25756
|
-
return '"' + escapeString(string
|
|
26069
|
+
return '"' + escapeString(string) + '"';
|
|
25757
26070
|
default:
|
|
25758
|
-
throw new
|
|
26071
|
+
throw new YAMLException2("impossible error: invalid scalar style");
|
|
25759
26072
|
}
|
|
25760
26073
|
}();
|
|
25761
26074
|
}
|
|
@@ -25763,9 +26076,11 @@ var require_dumper = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
25763
26076
|
const indentIndicator = needIndentIndicator(string) ? String(indentPerLevel) : "";
|
|
25764
26077
|
const clip = string[string.length - 1] === `
|
|
25765
26078
|
`;
|
|
25766
|
-
|
|
26079
|
+
const keep = clip && (string[string.length - 2] === `
|
|
25767
26080
|
` || string === `
|
|
25768
|
-
`)
|
|
26081
|
+
`);
|
|
26082
|
+
const chomp = keep ? "+" : clip ? "" : "-";
|
|
26083
|
+
return indentIndicator + chomp + `
|
|
25769
26084
|
`;
|
|
25770
26085
|
}
|
|
25771
26086
|
function dropEndingNewline(string) {
|
|
@@ -25817,11 +26132,12 @@ var require_dumper = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
25817
26132
|
}
|
|
25818
26133
|
result += `
|
|
25819
26134
|
`;
|
|
25820
|
-
if (line.length - start > width && curr > start)
|
|
26135
|
+
if (line.length - start > width && curr > start) {
|
|
25821
26136
|
result += line.slice(start, curr) + `
|
|
25822
26137
|
` + line.slice(curr + 1);
|
|
25823
|
-
else
|
|
26138
|
+
} else {
|
|
25824
26139
|
result += line.slice(start);
|
|
26140
|
+
}
|
|
25825
26141
|
return result.slice(1);
|
|
25826
26142
|
}
|
|
25827
26143
|
function escapeString(string) {
|
|
@@ -25834,8 +26150,9 @@ var require_dumper = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
25834
26150
|
result += string[i];
|
|
25835
26151
|
if (char >= 65536)
|
|
25836
26152
|
result += string[i + 1];
|
|
25837
|
-
} else
|
|
26153
|
+
} else {
|
|
25838
26154
|
result += escapeSeq || encodeHex(char);
|
|
26155
|
+
}
|
|
25839
26156
|
}
|
|
25840
26157
|
return result;
|
|
25841
26158
|
}
|
|
@@ -25844,8 +26161,9 @@ var require_dumper = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
25844
26161
|
const _tag = state.tag;
|
|
25845
26162
|
for (let index = 0, length = object.length;index < length; index += 1) {
|
|
25846
26163
|
let value = object[index];
|
|
25847
|
-
if (state.replacer)
|
|
26164
|
+
if (state.replacer) {
|
|
25848
26165
|
value = state.replacer.call(object, String(index), value);
|
|
26166
|
+
}
|
|
25849
26167
|
if (writeNode(state, level, value, false, false) || typeof value === "undefined" && writeNode(state, level, null, false, false)) {
|
|
25850
26168
|
if (_result !== "")
|
|
25851
26169
|
_result += "," + (!state.condenseFlow ? " " : "");
|
|
@@ -25860,15 +26178,18 @@ var require_dumper = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
25860
26178
|
const _tag = state.tag;
|
|
25861
26179
|
for (let index = 0, length = object.length;index < length; index += 1) {
|
|
25862
26180
|
let value = object[index];
|
|
25863
|
-
if (state.replacer)
|
|
26181
|
+
if (state.replacer) {
|
|
25864
26182
|
value = state.replacer.call(object, String(index), value);
|
|
26183
|
+
}
|
|
25865
26184
|
if (writeNode(state, level + 1, value, true, true, false, true) || typeof value === "undefined" && writeNode(state, level + 1, null, true, true, false, true)) {
|
|
25866
|
-
if (!compact || _result !== "")
|
|
26185
|
+
if (!compact || _result !== "") {
|
|
25867
26186
|
_result += generateNextLine(state, level);
|
|
25868
|
-
|
|
26187
|
+
}
|
|
26188
|
+
if (state.dump && CHAR_LINE_FEED === state.dump.charCodeAt(0)) {
|
|
25869
26189
|
_result += "-";
|
|
25870
|
-
else
|
|
26190
|
+
} else {
|
|
25871
26191
|
_result += "- ";
|
|
26192
|
+
}
|
|
25872
26193
|
_result += state.dump;
|
|
25873
26194
|
}
|
|
25874
26195
|
}
|
|
@@ -25887,15 +26208,18 @@ var require_dumper = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
25887
26208
|
pairBuffer += '"';
|
|
25888
26209
|
const objectKey = objectKeyList[index];
|
|
25889
26210
|
let objectValue = object[objectKey];
|
|
25890
|
-
if (state.replacer)
|
|
26211
|
+
if (state.replacer) {
|
|
25891
26212
|
objectValue = state.replacer.call(object, objectKey, objectValue);
|
|
25892
|
-
|
|
26213
|
+
}
|
|
26214
|
+
if (!writeNode(state, level, objectKey, false, false)) {
|
|
25893
26215
|
continue;
|
|
26216
|
+
}
|
|
25894
26217
|
if (state.dump.length > 1024)
|
|
25895
26218
|
pairBuffer += "? ";
|
|
25896
26219
|
pairBuffer += state.dump + (state.condenseFlow ? '"' : "") + ":" + (state.condenseFlow ? "" : " ");
|
|
25897
|
-
if (!writeNode(state, level, objectValue, false, false))
|
|
26220
|
+
if (!writeNode(state, level, objectValue, false, false)) {
|
|
25898
26221
|
continue;
|
|
26222
|
+
}
|
|
25899
26223
|
pairBuffer += state.dump;
|
|
25900
26224
|
_result += pairBuffer;
|
|
25901
26225
|
}
|
|
@@ -25906,37 +26230,46 @@ var require_dumper = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
25906
26230
|
let _result = "";
|
|
25907
26231
|
const _tag = state.tag;
|
|
25908
26232
|
const objectKeyList = Object.keys(object);
|
|
25909
|
-
if (state.sortKeys === true)
|
|
26233
|
+
if (state.sortKeys === true) {
|
|
25910
26234
|
objectKeyList.sort();
|
|
25911
|
-
else if (typeof state.sortKeys === "function")
|
|
26235
|
+
} else if (typeof state.sortKeys === "function") {
|
|
25912
26236
|
objectKeyList.sort(state.sortKeys);
|
|
25913
|
-
else if (state.sortKeys)
|
|
25914
|
-
throw new
|
|
26237
|
+
} else if (state.sortKeys) {
|
|
26238
|
+
throw new YAMLException2("sortKeys must be a boolean or a function");
|
|
26239
|
+
}
|
|
25915
26240
|
for (let index = 0, length = objectKeyList.length;index < length; index += 1) {
|
|
25916
26241
|
let pairBuffer = "";
|
|
25917
|
-
if (!compact || _result !== "")
|
|
26242
|
+
if (!compact || _result !== "") {
|
|
25918
26243
|
pairBuffer += generateNextLine(state, level);
|
|
26244
|
+
}
|
|
25919
26245
|
const objectKey = objectKeyList[index];
|
|
25920
26246
|
let objectValue = object[objectKey];
|
|
25921
|
-
if (state.replacer)
|
|
26247
|
+
if (state.replacer) {
|
|
25922
26248
|
objectValue = state.replacer.call(object, objectKey, objectValue);
|
|
25923
|
-
|
|
26249
|
+
}
|
|
26250
|
+
if (!writeNode(state, level + 1, objectKey, true, true, true)) {
|
|
25924
26251
|
continue;
|
|
26252
|
+
}
|
|
25925
26253
|
const explicitPair = state.tag !== null && state.tag !== "?" || state.dump && state.dump.length > 1024;
|
|
25926
|
-
if (explicitPair)
|
|
25927
|
-
if (state.dump && CHAR_LINE_FEED === state.dump.charCodeAt(0))
|
|
26254
|
+
if (explicitPair) {
|
|
26255
|
+
if (state.dump && CHAR_LINE_FEED === state.dump.charCodeAt(0)) {
|
|
25928
26256
|
pairBuffer += "?";
|
|
25929
|
-
else
|
|
26257
|
+
} else {
|
|
25930
26258
|
pairBuffer += "? ";
|
|
26259
|
+
}
|
|
26260
|
+
}
|
|
25931
26261
|
pairBuffer += state.dump;
|
|
25932
|
-
if (explicitPair)
|
|
26262
|
+
if (explicitPair) {
|
|
25933
26263
|
pairBuffer += generateNextLine(state, level);
|
|
25934
|
-
|
|
26264
|
+
}
|
|
26265
|
+
if (!writeNode(state, level + 1, objectValue, true, explicitPair)) {
|
|
25935
26266
|
continue;
|
|
25936
|
-
|
|
26267
|
+
}
|
|
26268
|
+
if (state.dump && CHAR_LINE_FEED === state.dump.charCodeAt(0)) {
|
|
25937
26269
|
pairBuffer += ":";
|
|
25938
|
-
else
|
|
26270
|
+
} else {
|
|
25939
26271
|
pairBuffer += ": ";
|
|
26272
|
+
}
|
|
25940
26273
|
pairBuffer += state.dump;
|
|
25941
26274
|
_result += pairBuffer;
|
|
25942
26275
|
}
|
|
@@ -25946,24 +26279,27 @@ var require_dumper = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
25946
26279
|
function detectType(state, object, explicit) {
|
|
25947
26280
|
const typeList = explicit ? state.explicitTypes : state.implicitTypes;
|
|
25948
26281
|
for (let index = 0, length = typeList.length;index < length; index += 1) {
|
|
25949
|
-
const
|
|
25950
|
-
if ((
|
|
25951
|
-
if (explicit)
|
|
25952
|
-
if (
|
|
25953
|
-
state.tag =
|
|
25954
|
-
else
|
|
25955
|
-
state.tag =
|
|
25956
|
-
|
|
26282
|
+
const type2 = typeList[index];
|
|
26283
|
+
if ((type2.instanceOf || type2.predicate) && (!type2.instanceOf || typeof object === "object" && object instanceof type2.instanceOf) && (!type2.predicate || type2.predicate(object))) {
|
|
26284
|
+
if (explicit) {
|
|
26285
|
+
if (type2.multi && type2.representName) {
|
|
26286
|
+
state.tag = type2.representName(object);
|
|
26287
|
+
} else {
|
|
26288
|
+
state.tag = type2.tag;
|
|
26289
|
+
}
|
|
26290
|
+
} else {
|
|
25957
26291
|
state.tag = "?";
|
|
25958
|
-
|
|
25959
|
-
|
|
26292
|
+
}
|
|
26293
|
+
if (type2.represent) {
|
|
26294
|
+
const style = state.styleMap[type2.tag] || type2.defaultStyle;
|
|
25960
26295
|
let _result;
|
|
25961
|
-
if (_toString.call(
|
|
25962
|
-
_result =
|
|
25963
|
-
else if (_hasOwnProperty.call(
|
|
25964
|
-
_result =
|
|
25965
|
-
else
|
|
25966
|
-
throw new
|
|
26296
|
+
if (_toString.call(type2.represent) === "[object Function]") {
|
|
26297
|
+
_result = type2.represent(object, style);
|
|
26298
|
+
} else if (_hasOwnProperty.call(type2.represent, style)) {
|
|
26299
|
+
_result = type2.represent[style](object, style);
|
|
26300
|
+
} else {
|
|
26301
|
+
throw new YAMLException2("!<" + type2.tag + '> tag resolver accepts not "' + style + '" style');
|
|
26302
|
+
}
|
|
25967
26303
|
state.dump = _result;
|
|
25968
26304
|
}
|
|
25969
26305
|
return true;
|
|
@@ -25974,67 +26310,78 @@ var require_dumper = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
25974
26310
|
function writeNode(state, level, object, block, compact, iskey, isblockseq) {
|
|
25975
26311
|
state.tag = null;
|
|
25976
26312
|
state.dump = object;
|
|
25977
|
-
if (!detectType(state, object, false))
|
|
26313
|
+
if (!detectType(state, object, false)) {
|
|
25978
26314
|
detectType(state, object, true);
|
|
25979
|
-
|
|
26315
|
+
}
|
|
26316
|
+
const type2 = _toString.call(state.dump);
|
|
25980
26317
|
const inblock = block;
|
|
25981
|
-
if (block)
|
|
26318
|
+
if (block) {
|
|
25982
26319
|
block = state.flowLevel < 0 || state.flowLevel > level;
|
|
25983
|
-
|
|
26320
|
+
}
|
|
26321
|
+
const objectOrArray = type2 === "[object Object]" || type2 === "[object Array]";
|
|
25984
26322
|
let duplicateIndex;
|
|
25985
26323
|
let duplicate;
|
|
25986
26324
|
if (objectOrArray) {
|
|
25987
26325
|
duplicateIndex = state.duplicates.indexOf(object);
|
|
25988
26326
|
duplicate = duplicateIndex !== -1;
|
|
25989
26327
|
}
|
|
25990
|
-
if (state.tag !== null && state.tag !== "?" || duplicate || state.indent !== 2 && level > 0)
|
|
26328
|
+
if (state.tag !== null && state.tag !== "?" || duplicate || state.indent !== 2 && level > 0) {
|
|
25991
26329
|
compact = false;
|
|
25992
|
-
|
|
26330
|
+
}
|
|
26331
|
+
if (duplicate && state.usedDuplicates[duplicateIndex]) {
|
|
25993
26332
|
state.dump = "*ref_" + duplicateIndex;
|
|
25994
|
-
else {
|
|
25995
|
-
if (objectOrArray && duplicate && !state.usedDuplicates[duplicateIndex])
|
|
26333
|
+
} else {
|
|
26334
|
+
if (objectOrArray && duplicate && !state.usedDuplicates[duplicateIndex]) {
|
|
25996
26335
|
state.usedDuplicates[duplicateIndex] = true;
|
|
25997
|
-
|
|
26336
|
+
}
|
|
26337
|
+
if (type2 === "[object Object]") {
|
|
25998
26338
|
if (block && Object.keys(state.dump).length !== 0) {
|
|
25999
26339
|
writeBlockMapping(state, level, state.dump, compact);
|
|
26000
|
-
if (duplicate)
|
|
26340
|
+
if (duplicate) {
|
|
26001
26341
|
state.dump = "&ref_" + duplicateIndex + state.dump;
|
|
26342
|
+
}
|
|
26002
26343
|
} else {
|
|
26003
26344
|
writeFlowMapping(state, level, state.dump);
|
|
26004
|
-
if (duplicate)
|
|
26345
|
+
if (duplicate) {
|
|
26005
26346
|
state.dump = "&ref_" + duplicateIndex + " " + state.dump;
|
|
26347
|
+
}
|
|
26006
26348
|
}
|
|
26007
|
-
else if (
|
|
26349
|
+
} else if (type2 === "[object Array]") {
|
|
26008
26350
|
if (block && state.dump.length !== 0) {
|
|
26009
|
-
if (state.noArrayIndent && !isblockseq && level > 0)
|
|
26351
|
+
if (state.noArrayIndent && !isblockseq && level > 0) {
|
|
26010
26352
|
writeBlockSequence(state, level - 1, state.dump, compact);
|
|
26011
|
-
else
|
|
26353
|
+
} else {
|
|
26012
26354
|
writeBlockSequence(state, level, state.dump, compact);
|
|
26013
|
-
|
|
26355
|
+
}
|
|
26356
|
+
if (duplicate) {
|
|
26014
26357
|
state.dump = "&ref_" + duplicateIndex + state.dump;
|
|
26358
|
+
}
|
|
26015
26359
|
} else {
|
|
26016
26360
|
writeFlowSequence(state, level, state.dump);
|
|
26017
|
-
if (duplicate)
|
|
26361
|
+
if (duplicate) {
|
|
26018
26362
|
state.dump = "&ref_" + duplicateIndex + " " + state.dump;
|
|
26363
|
+
}
|
|
26019
26364
|
}
|
|
26020
|
-
else if (
|
|
26021
|
-
if (state.tag !== "?")
|
|
26365
|
+
} else if (type2 === "[object String]") {
|
|
26366
|
+
if (state.tag !== "?") {
|
|
26022
26367
|
writeScalar(state, state.dump, level, iskey, inblock);
|
|
26023
|
-
|
|
26368
|
+
}
|
|
26369
|
+
} else if (type2 === "[object Undefined]") {
|
|
26024
26370
|
return false;
|
|
26025
|
-
else {
|
|
26371
|
+
} else {
|
|
26026
26372
|
if (state.skipInvalid)
|
|
26027
26373
|
return false;
|
|
26028
|
-
throw new
|
|
26374
|
+
throw new YAMLException2("unacceptable kind of an object to dump " + type2);
|
|
26029
26375
|
}
|
|
26030
26376
|
if (state.tag !== null && state.tag !== "?") {
|
|
26031
26377
|
let tagStr = encodeURI(state.tag[0] === "!" ? state.tag.slice(1) : state.tag).replace(/!/g, "%21");
|
|
26032
|
-
if (state.tag[0] === "!")
|
|
26378
|
+
if (state.tag[0] === "!") {
|
|
26033
26379
|
tagStr = "!" + tagStr;
|
|
26034
|
-
else if (tagStr.slice(0, 18) === "tag:yaml.org,2002:")
|
|
26380
|
+
} else if (tagStr.slice(0, 18) === "tag:yaml.org,2002:") {
|
|
26035
26381
|
tagStr = "!!" + tagStr.slice(18);
|
|
26036
|
-
else
|
|
26382
|
+
} else {
|
|
26037
26383
|
tagStr = "!<" + tagStr + ">";
|
|
26384
|
+
}
|
|
26038
26385
|
state.dump = tagStr + " " + state.dump;
|
|
26039
26386
|
}
|
|
26040
26387
|
}
|
|
@@ -26045,83 +26392,110 @@ var require_dumper = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
26045
26392
|
const duplicatesIndexes = [];
|
|
26046
26393
|
inspectNode(object, objects, duplicatesIndexes);
|
|
26047
26394
|
const length = duplicatesIndexes.length;
|
|
26048
|
-
for (let index = 0;index < length; index += 1)
|
|
26395
|
+
for (let index = 0;index < length; index += 1) {
|
|
26049
26396
|
state.duplicates.push(objects[duplicatesIndexes[index]]);
|
|
26397
|
+
}
|
|
26050
26398
|
state.usedDuplicates = new Array(length);
|
|
26051
26399
|
}
|
|
26052
26400
|
function inspectNode(object, objects, duplicatesIndexes) {
|
|
26053
26401
|
if (object !== null && typeof object === "object") {
|
|
26054
26402
|
const index = objects.indexOf(object);
|
|
26055
26403
|
if (index !== -1) {
|
|
26056
|
-
if (duplicatesIndexes.indexOf(index) === -1)
|
|
26404
|
+
if (duplicatesIndexes.indexOf(index) === -1) {
|
|
26057
26405
|
duplicatesIndexes.push(index);
|
|
26406
|
+
}
|
|
26058
26407
|
} else {
|
|
26059
26408
|
objects.push(object);
|
|
26060
|
-
if (Array.isArray(object))
|
|
26061
|
-
for (let i = 0, length = object.length;i < length; i += 1)
|
|
26409
|
+
if (Array.isArray(object)) {
|
|
26410
|
+
for (let i = 0, length = object.length;i < length; i += 1) {
|
|
26062
26411
|
inspectNode(object[i], objects, duplicatesIndexes);
|
|
26063
|
-
|
|
26412
|
+
}
|
|
26413
|
+
} else {
|
|
26064
26414
|
const objectKeyList = Object.keys(object);
|
|
26065
|
-
for (let i = 0, length = objectKeyList.length;i < length; i += 1)
|
|
26415
|
+
for (let i = 0, length = objectKeyList.length;i < length; i += 1) {
|
|
26066
26416
|
inspectNode(object[objectKeyList[i]], objects, duplicatesIndexes);
|
|
26417
|
+
}
|
|
26067
26418
|
}
|
|
26068
26419
|
}
|
|
26069
26420
|
}
|
|
26070
26421
|
}
|
|
26071
|
-
function
|
|
26422
|
+
function dump2(input, options) {
|
|
26072
26423
|
options = options || {};
|
|
26073
26424
|
const state = new State(options);
|
|
26074
26425
|
if (!state.noRefs)
|
|
26075
26426
|
getDuplicateReferences(input, state);
|
|
26076
26427
|
let value = input;
|
|
26077
|
-
if (state.replacer)
|
|
26428
|
+
if (state.replacer) {
|
|
26078
26429
|
value = state.replacer.call({ "": value }, "", value);
|
|
26430
|
+
}
|
|
26079
26431
|
if (writeNode(state, 0, value, true, true))
|
|
26080
26432
|
return state.dump + `
|
|
26081
26433
|
`;
|
|
26082
26434
|
return "";
|
|
26083
26435
|
}
|
|
26084
|
-
|
|
26085
|
-
|
|
26086
|
-
|
|
26087
|
-
|
|
26088
|
-
|
|
26436
|
+
dumper.dump = dump2;
|
|
26437
|
+
return dumper;
|
|
26438
|
+
}
|
|
26439
|
+
var hasRequiredJsYaml;
|
|
26440
|
+
function requireJsYaml() {
|
|
26441
|
+
if (hasRequiredJsYaml)
|
|
26442
|
+
return jsYaml;
|
|
26443
|
+
hasRequiredJsYaml = 1;
|
|
26444
|
+
const loader2 = requireLoader();
|
|
26445
|
+
const dumper2 = requireDumper();
|
|
26089
26446
|
function renamed(from, to) {
|
|
26090
26447
|
return function() {
|
|
26091
26448
|
throw new Error("Function yaml." + from + " is removed in js-yaml 4. Use yaml." + to + " instead, which is now safe by default.");
|
|
26092
26449
|
};
|
|
26093
26450
|
}
|
|
26094
|
-
|
|
26095
|
-
|
|
26096
|
-
|
|
26097
|
-
|
|
26098
|
-
|
|
26099
|
-
|
|
26100
|
-
|
|
26101
|
-
|
|
26102
|
-
|
|
26103
|
-
|
|
26104
|
-
|
|
26105
|
-
binary:
|
|
26106
|
-
float:
|
|
26107
|
-
map:
|
|
26451
|
+
jsYaml.Type = requireType();
|
|
26452
|
+
jsYaml.Schema = requireSchema();
|
|
26453
|
+
jsYaml.FAILSAFE_SCHEMA = requireFailsafe();
|
|
26454
|
+
jsYaml.JSON_SCHEMA = requireJson();
|
|
26455
|
+
jsYaml.CORE_SCHEMA = requireCore();
|
|
26456
|
+
jsYaml.DEFAULT_SCHEMA = require_default();
|
|
26457
|
+
jsYaml.load = loader2.load;
|
|
26458
|
+
jsYaml.loadAll = loader2.loadAll;
|
|
26459
|
+
jsYaml.dump = dumper2.dump;
|
|
26460
|
+
jsYaml.YAMLException = requireException();
|
|
26461
|
+
jsYaml.types = {
|
|
26462
|
+
binary: requireBinary(),
|
|
26463
|
+
float: requireFloat(),
|
|
26464
|
+
map: requireMap(),
|
|
26108
26465
|
null: require_null(),
|
|
26109
|
-
pairs:
|
|
26110
|
-
set:
|
|
26111
|
-
timestamp:
|
|
26112
|
-
bool:
|
|
26113
|
-
int:
|
|
26114
|
-
merge:
|
|
26115
|
-
omap:
|
|
26116
|
-
seq:
|
|
26117
|
-
str:
|
|
26466
|
+
pairs: requirePairs(),
|
|
26467
|
+
set: requireSet(),
|
|
26468
|
+
timestamp: requireTimestamp(),
|
|
26469
|
+
bool: requireBool(),
|
|
26470
|
+
int: requireInt(),
|
|
26471
|
+
merge: requireMerge(),
|
|
26472
|
+
omap: requireOmap(),
|
|
26473
|
+
seq: requireSeq(),
|
|
26474
|
+
str: requireStr()
|
|
26118
26475
|
};
|
|
26119
|
-
|
|
26120
|
-
|
|
26121
|
-
|
|
26122
|
-
|
|
26123
|
-
|
|
26124
|
-
var
|
|
26476
|
+
jsYaml.safeLoad = renamed("safeLoad", "load");
|
|
26477
|
+
jsYaml.safeLoadAll = renamed("safeLoadAll", "loadAll");
|
|
26478
|
+
jsYaml.safeDump = renamed("safeDump", "dump");
|
|
26479
|
+
return jsYaml;
|
|
26480
|
+
}
|
|
26481
|
+
var jsYamlExports = requireJsYaml();
|
|
26482
|
+
var yaml = /* @__PURE__ */ getDefaultExportFromCjs(jsYamlExports);
|
|
26483
|
+
var {
|
|
26484
|
+
Type,
|
|
26485
|
+
Schema,
|
|
26486
|
+
FAILSAFE_SCHEMA,
|
|
26487
|
+
JSON_SCHEMA,
|
|
26488
|
+
CORE_SCHEMA,
|
|
26489
|
+
DEFAULT_SCHEMA,
|
|
26490
|
+
load,
|
|
26491
|
+
loadAll,
|
|
26492
|
+
dump,
|
|
26493
|
+
YAMLException,
|
|
26494
|
+
types,
|
|
26495
|
+
safeLoad,
|
|
26496
|
+
safeLoadAll,
|
|
26497
|
+
safeDump
|
|
26498
|
+
} = yaml;
|
|
26125
26499
|
|
|
26126
26500
|
// ../common/src/logger.ts
|
|
26127
26501
|
init_src();
|
|
@@ -26198,11 +26572,11 @@ class SimpleLogger {
|
|
|
26198
26572
|
const path3 = this.logFilePath || getGlobalLogFilePath();
|
|
26199
26573
|
if (!path3)
|
|
26200
26574
|
return;
|
|
26201
|
-
const
|
|
26575
|
+
const timestamp2 = new Date().toISOString();
|
|
26202
26576
|
this.pendingWrites = Promise.all([
|
|
26203
26577
|
this.pendingWrites,
|
|
26204
26578
|
this.pendingInit
|
|
26205
|
-
]).then(() => getFileSystem().appendFile(path3, `${
|
|
26579
|
+
]).then(() => getFileSystem().appendFile(path3, `${timestamp2} ${formatted}`).catch(() => {}));
|
|
26206
26580
|
}
|
|
26207
26581
|
debug(message, ...args) {
|
|
26208
26582
|
if (this.level > 0 /* DEBUG */)
|
|
@@ -26596,10 +26970,10 @@ class LoggerTelemetryProvider {
|
|
|
26596
26970
|
success
|
|
26597
26971
|
})));
|
|
26598
26972
|
}
|
|
26599
|
-
async trackDependency(name,
|
|
26973
|
+
async trackDependency(name, type2, duration, success, properties) {
|
|
26600
26974
|
logger.debug(formatMessage("Dependency", name, this.enrich({
|
|
26601
26975
|
...properties,
|
|
26602
|
-
type,
|
|
26976
|
+
type: type2,
|
|
26603
26977
|
duration: `${duration}ms`,
|
|
26604
26978
|
success
|
|
26605
26979
|
})));
|
|
@@ -26832,7 +27206,7 @@ class TelemetryService {
|
|
|
26832
27206
|
throw error;
|
|
26833
27207
|
}
|
|
26834
27208
|
}
|
|
26835
|
-
async trackDependencyOperation(name,
|
|
27209
|
+
async trackDependencyOperation(name, type2, fn, properties) {
|
|
26836
27210
|
const parentContext = this.getCurrentContext();
|
|
26837
27211
|
if (!parentContext) {
|
|
26838
27212
|
throw new Error("trackDependencyOperation must be called within a trackRequest block.");
|
|
@@ -26847,13 +27221,13 @@ class TelemetryService {
|
|
|
26847
27221
|
const result = await this.contextStorage.run(childContext, fn);
|
|
26848
27222
|
const durationMs = performance.now() - startTime;
|
|
26849
27223
|
const enrichedProperties = this.enrichPropertiesWithContext(properties, childContext);
|
|
26850
|
-
await this.telemetryProvider.trackDependency(name,
|
|
27224
|
+
await this.telemetryProvider.trackDependency(name, type2, durationMs, true, enrichedProperties);
|
|
26851
27225
|
return result;
|
|
26852
27226
|
} catch (error) {
|
|
26853
27227
|
const durationMs = performance.now() - startTime;
|
|
26854
27228
|
const err = error instanceof Error ? error : new Error(String(error));
|
|
26855
27229
|
const enrichedProperties = this.enrichPropertiesWithContext({ ...properties, errorMessage: err.message }, childContext);
|
|
26856
|
-
await this.telemetryProvider.trackDependency(name,
|
|
27230
|
+
await this.telemetryProvider.trackDependency(name, type2, durationMs, false, enrichedProperties);
|
|
26857
27231
|
throw error;
|
|
26858
27232
|
}
|
|
26859
27233
|
}
|
|
@@ -27060,8 +27434,8 @@ function printOutput(data, format = "json", logFn, asciiSafe = false) {
|
|
|
27060
27434
|
}
|
|
27061
27435
|
switch (format) {
|
|
27062
27436
|
case "json": {
|
|
27063
|
-
const
|
|
27064
|
-
logFn(asciiSafe ? escapeNonAscii(
|
|
27437
|
+
const json2 = JSON.stringify(data, null, 2);
|
|
27438
|
+
logFn(asciiSafe ? escapeNonAscii(json2) : json2);
|
|
27065
27439
|
break;
|
|
27066
27440
|
}
|
|
27067
27441
|
case "yaml":
|
|
@@ -27397,8 +27771,8 @@ var OutputFormatter;
|
|
|
27397
27771
|
const sink = getOutputSink();
|
|
27398
27772
|
const normalized = toPascalCaseData(data);
|
|
27399
27773
|
if (format === "json") {
|
|
27400
|
-
const
|
|
27401
|
-
const safe = needsAsciiSafeJson(sink) ? escapeNonAscii(
|
|
27774
|
+
const json2 = JSON.stringify(normalized);
|
|
27775
|
+
const safe = needsAsciiSafeJson(sink) ? escapeNonAscii(json2) : json2;
|
|
27402
27776
|
sink.writeErr(`${safe}
|
|
27403
27777
|
`);
|
|
27404
27778
|
} else {
|
|
@@ -27648,8 +28022,8 @@ function redactValueDetectors(value) {
|
|
|
27648
28022
|
out = out.replace(JWT_PATTERN, () => REDACTED);
|
|
27649
28023
|
out = out.replace(URL_PATTERN, (match) => {
|
|
27650
28024
|
const trailing = match.match(URL_TRAILING_PUNCT)?.[0] ?? "";
|
|
27651
|
-
const
|
|
27652
|
-
return `${redactUrl(
|
|
28025
|
+
const core2 = trailing ? match.slice(0, -trailing.length) : match;
|
|
28026
|
+
return `${redactUrl(core2)}${trailing}`;
|
|
27653
28027
|
});
|
|
27654
28028
|
out = out.replace(USER_HOME_PATTERN, (_match, sep1, folder, sep2) => `${sep1}${folder}${sep2}<user>`);
|
|
27655
28029
|
out = out.replace(EMAIL_PATTERN, (match) => `email#${shortHash(match)}`);
|
|
@@ -28567,12 +28941,12 @@ var loadEnvFileAsync = async ({ envPath }) => {
|
|
|
28567
28941
|
var saveEnvFileAsync = async ({
|
|
28568
28942
|
envPath,
|
|
28569
28943
|
data,
|
|
28570
|
-
merge = true
|
|
28944
|
+
merge: merge2 = true
|
|
28571
28945
|
}) => {
|
|
28572
28946
|
const fs7 = getFileSystem();
|
|
28573
28947
|
const absolutePath = fs7.path.isAbsolute(envPath) ? envPath : fs7.path.join(fs7.env.homedir(), envPath);
|
|
28574
28948
|
let existingData = {};
|
|
28575
|
-
if (
|
|
28949
|
+
if (merge2 && await fs7.exists(absolutePath)) {
|
|
28576
28950
|
try {
|
|
28577
28951
|
existingData = await loadEnvFileAsync({ envPath: absolutePath });
|
|
28578
28952
|
} catch {}
|
|
@@ -29728,4 +30102,4 @@ export {
|
|
|
29728
30102
|
metadata
|
|
29729
30103
|
};
|
|
29730
30104
|
|
|
29731
|
-
//# debugId=
|
|
30105
|
+
//# debugId=11E75C3E9A13131364756E2164756E21
|