@storm-software/config-tools 1.144.13 → 1.145.0
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/README.md +1 -1
- package/bin/config.cjs +260 -74597
- package/bin/config.js +224 -74588
- package/dist/chunk-2AVLCXLT.js +0 -0
- package/dist/chunk-3NWKPYIG.cjs +68 -0
- package/dist/{chunk-7TAUZNGG.cjs → chunk-5BKIG4XN.cjs} +5 -7
- package/dist/chunk-65SWKEHV.cjs +1 -0
- package/dist/{chunk-UHUKL2FF.js → chunk-6QCPF7DE.js} +3 -5
- package/dist/{chunk-TUH2WX5T.js → chunk-7FBGW2FI.js} +3 -5
- package/dist/{chunk-OMKDNOX6.cjs → chunk-7NSHGJWY.cjs} +2 -4
- package/dist/chunk-7PV6L7I7.cjs +1 -0
- package/dist/{chunk-I4SIJOYB.cjs → chunk-B6J2YUGO.cjs} +7 -9
- package/dist/{chunk-NCZG3KIJ.js → chunk-BHZFTVXN.js} +2 -4
- package/dist/{chunk-LHYMHJN7.js → chunk-CEEL5LLM.js} +8 -10
- package/dist/{chunk-WSHWZNKF.cjs → chunk-CRQ4EVX5.cjs} +4 -6
- package/dist/chunk-DD3HX2NX.cjs +1 -0
- package/dist/{chunk-VNWXMGH6.cjs → chunk-DXUUXBG3.cjs} +6 -8
- package/dist/{chunk-3HOVXAQZ.cjs → chunk-EOQEK2MM.cjs} +37 -39
- package/dist/chunk-EPBOQXUS.cjs +93 -0
- package/dist/{chunk-2F7SMIKE.js → chunk-FXFNC4WC.js} +4 -6
- package/dist/chunk-GFL2DSZK.js +44 -0
- package/dist/{chunk-V2H3W5RM.cjs → chunk-GMMTDKYU.cjs} +22 -24
- package/dist/{chunk-NMYOKDUE.cjs → chunk-HE7RJB2E.cjs} +30 -27
- package/dist/{chunk-L3RZVSYE.js → chunk-HI33NNPB.js} +3 -5
- package/dist/{chunk-5GWRMIQL.js → chunk-HSCCBYAV.js} +2 -4
- package/dist/{chunk-2BONUUVS.cjs → chunk-HSNM6VD2.cjs} +13 -12
- package/dist/{chunk-RXWR65M2.js → chunk-IKXDQ7DB.js} +5 -7
- package/dist/{chunk-DEWCXJEQ.cjs → chunk-IRCFHYKZ.cjs} +1 -6
- package/dist/{chunk-5CCF2WYC.js → chunk-IUT7Y2UY.js} +4 -6
- package/dist/chunk-IWD6YQKX.cjs +1 -0
- package/dist/chunk-JXLUUN7Z.cjs +179 -0
- package/dist/{chunk-XJSXW4P5.cjs → chunk-KRKGLKPD.cjs} +13 -15
- package/dist/chunk-L6UNTUC4.js +0 -0
- package/dist/{chunk-WBQEFUVW.js → chunk-LQJJD6FB.js} +2 -4
- package/dist/chunk-MXRRZKNO.js +77 -0
- package/dist/{chunk-MNA5ZBKU.js → chunk-MZ5BNE43.js} +12 -14
- package/dist/chunk-NJVL3GF4.js +0 -0
- package/dist/{chunk-WN4V6QSX.js → chunk-POXTJ6GF.js} +0 -5
- package/dist/{chunk-RR5DGQEI.js → chunk-PR7RQHRE.js} +2 -4
- package/dist/{chunk-A55N7CTJ.js → chunk-QBS3OCHH.js} +2 -4
- package/dist/{chunk-SJZ346G5.js → chunk-QGYINXXY.js} +3 -5
- package/dist/{chunk-M3QWTBKA.js → chunk-R4O6ILOD.js} +10 -7
- package/dist/chunk-RRKB32OH.js +0 -0
- package/dist/{chunk-E7VZQ7HY.cjs → chunk-RVM5N5ZI.cjs} +2 -4
- package/dist/chunk-SA4LVIO6.cjs +77 -0
- package/dist/chunk-SHUYVCID.js +6 -0
- package/dist/chunk-SLGVSUEV.cjs +36 -0
- package/dist/chunk-SPNVYBT4.cjs +44 -0
- package/dist/chunk-USNT2KNT.cjs +6 -0
- package/dist/chunk-WRGFZXJE.js +179 -0
- package/dist/{chunk-54PYJ6Z7.js → chunk-X7BEPYRX.js} +2 -4
- package/dist/{chunk-WJP36CPU.cjs → chunk-XAJB3BSF.cjs} +3 -5
- package/dist/{chunk-P26TW2V3.cjs → chunk-XDBACKKN.cjs} +3 -5
- package/dist/chunk-XY2LDOQ4.cjs +26 -0
- package/dist/{chunk-AXVHALK5.cjs → chunk-XYV3B7TT.cjs} +2 -4
- package/dist/{chunk-NKL6DBVO.js → chunk-YES7WAZK.js} +8 -7
- package/dist/chunk-ZA4IO7YJ.js +36 -0
- package/dist/config-file/get-config-file.cjs +20 -25
- package/dist/config-file/get-config-file.js +19 -24
- package/dist/config-file/index.cjs +21 -26
- package/dist/config-file/index.js +20 -25
- package/dist/create-storm-config.cjs +23 -28
- package/dist/create-storm-config.js +22 -27
- package/dist/env/get-env.cjs +7 -6
- package/dist/env/get-env.js +6 -5
- package/dist/env/index.cjs +9 -8
- package/dist/env/index.js +8 -7
- package/dist/env/set-env.cjs +6 -6
- package/dist/env/set-env.js +5 -5
- package/dist/get-config.cjs +24 -29
- package/dist/get-config.js +23 -28
- package/dist/index.cjs +28 -38
- package/dist/index.js +27 -37
- package/dist/logger/chalk.cjs +3 -3
- package/dist/logger/chalk.js +2 -2
- package/dist/logger/console-icons.cjs +5 -5
- package/dist/logger/console-icons.js +4 -4
- package/dist/logger/console.cjs +14 -13
- package/dist/logger/console.js +13 -12
- package/dist/logger/create-logger.cjs +15 -14
- package/dist/logger/create-logger.js +14 -13
- package/dist/logger/format-timestamp.cjs +3 -3
- package/dist/logger/format-timestamp.js +2 -2
- package/dist/logger/get-log-level.cjs +4 -4
- package/dist/logger/get-log-level.js +3 -3
- package/dist/logger/index.cjs +16 -15
- package/dist/logger/index.js +15 -14
- package/dist/logger/is-unicode-supported.cjs +3 -3
- package/dist/logger/is-unicode-supported.js +2 -2
- package/dist/types.cjs +3 -3
- package/dist/types.js +2 -2
- package/dist/utilities/apply-workspace-tokens.cjs +6 -6
- package/dist/utilities/apply-workspace-tokens.js +5 -5
- package/dist/utilities/correct-paths.cjs +3 -3
- package/dist/utilities/correct-paths.js +2 -2
- package/dist/utilities/file-path-utils.cjs +3 -3
- package/dist/utilities/file-path-utils.js +2 -2
- package/dist/utilities/find-up.cjs +3 -3
- package/dist/utilities/find-up.js +2 -2
- package/dist/utilities/find-workspace-root.cjs +5 -5
- package/dist/utilities/find-workspace-root.js +4 -4
- package/dist/utilities/get-default-config.cjs +7 -6
- package/dist/utilities/get-default-config.js +6 -5
- package/dist/utilities/index.cjs +19 -18
- package/dist/utilities/index.js +18 -17
- package/dist/utilities/process-handler.cjs +15 -14
- package/dist/utilities/process-handler.js +14 -13
- package/dist/utilities/run.cjs +3 -3
- package/dist/utilities/run.js +2 -2
- package/package.json +4 -5
- package/dist/chunk-2GPW5A4A.cjs +0 -50
- package/dist/chunk-3IVAD3CI.cjs +0 -510
- package/dist/chunk-52JTCGPV.cjs +0 -6
- package/dist/chunk-52Z3B7HG.js +0 -6
- package/dist/chunk-55BEED5V.cjs +0 -70
- package/dist/chunk-5LIAIS5V.js +0 -6
- package/dist/chunk-65NJ2BNV.js +0 -49
- package/dist/chunk-6SKUJC25.cjs +0 -451
- package/dist/chunk-7IOWYE4O.cjs +0 -34070
- package/dist/chunk-7LNAPF6J.js +0 -7601
- package/dist/chunk-BIBA7MGH.js +0 -84
- package/dist/chunk-BZ3KC4XF.cjs +0 -6
- package/dist/chunk-EVHBF7QV.cjs +0 -6
- package/dist/chunk-F5YSYO5J.js +0 -2645
- package/dist/chunk-FIQNSYAM.cjs +0 -1120
- package/dist/chunk-IIQMKNOS.cjs +0 -6
- package/dist/chunk-JT5CJFOS.cjs +0 -2645
- package/dist/chunk-KCNZC4ZI.js +0 -6
- package/dist/chunk-M3K4KT2L.cjs +0 -4054
- package/dist/chunk-MVPKPUE3.js +0 -1120
- package/dist/chunk-MZADO4BZ.cjs +0 -765
- package/dist/chunk-PRGAKNNV.js +0 -765
- package/dist/chunk-Q3AKY4XY.js +0 -4054
- package/dist/chunk-Q42ZDLPG.js +0 -510
- package/dist/chunk-QFCXJAOM.js +0 -50
- package/dist/chunk-QZAXYX3X.cjs +0 -7601
- package/dist/chunk-R6ZWDCX4.cjs +0 -28
- package/dist/chunk-RNYNEYJ5.js +0 -451
- package/dist/chunk-SCFUDB74.cjs +0 -49
- package/dist/chunk-YDVJJTKY.js +0 -34067
- package/dist/chunk-Z555MBWN.cjs +0 -84
- package/dist/chunk-ZIUQG4HD.js +0 -6
- package/dist/chunk-ZXAQ4Y3X.cjs +0 -95
- package/dist/dist-UYAH2J3L.js +0 -17570
- package/dist/dist-WP6JBNT4.cjs +0 -17571
- package/dist/esm-F37IKPYG.cjs +0 -1716
- package/dist/esm-SQV6ELTR.js +0 -1716
- package/dist/execa-4HBUJBFQ.js +0 -2424
- package/dist/execa-K2JB3BB4.cjs +0 -2424
- package/dist/json5-PPMIEYQR.cjs +0 -10
- package/dist/json5-WTSMELC2.js +0 -10
- package/dist/jsonc-B7SFZJW2.js +0 -15
- package/dist/jsonc-X7JKFW4T.cjs +0 -15
- package/dist/multipart-parser-JIRREWFU.cjs +0 -187
- package/dist/multipart-parser-TFNERLJV.js +0 -187
- package/dist/toml-MTE5VHET.js +0 -10
- package/dist/toml-N2WLYE3T.cjs +0 -10
- package/dist/yaml-D6PQ2AEL.js +0 -10
- package/dist/yaml-LR2Y4V3W.cjs +0 -10
package/dist/chunk-MVPKPUE3.js
DELETED
|
@@ -1,1120 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
C,
|
|
3
|
-
N
|
|
4
|
-
} from "./chunk-BIBA7MGH.js";
|
|
5
|
-
import {
|
|
6
|
-
__name,
|
|
7
|
-
init_esm_shims
|
|
8
|
-
} from "./chunk-65NJ2BNV.js";
|
|
9
|
-
|
|
10
|
-
// ../../node_modules/.pnpm/confbox@0.1.8/node_modules/confbox/dist/yaml.mjs
|
|
11
|
-
init_esm_shims();
|
|
12
|
-
function oe(e) {
|
|
13
|
-
return typeof e > "u" || e === null;
|
|
14
|
-
}
|
|
15
|
-
__name(oe, "oe");
|
|
16
|
-
function We(e) {
|
|
17
|
-
return typeof e == "object" && e !== null;
|
|
18
|
-
}
|
|
19
|
-
__name(We, "We");
|
|
20
|
-
function $e(e) {
|
|
21
|
-
return Array.isArray(e) ? e : oe(e) ? [] : [e];
|
|
22
|
-
}
|
|
23
|
-
__name($e, "$e");
|
|
24
|
-
function Qe(e, n) {
|
|
25
|
-
var i, l, r, u;
|
|
26
|
-
if (n) for (u = Object.keys(n), i = 0, l = u.length; i < l; i += 1) r = u[i], e[r] = n[r];
|
|
27
|
-
return e;
|
|
28
|
-
}
|
|
29
|
-
__name(Qe, "Qe");
|
|
30
|
-
function Ve(e, n) {
|
|
31
|
-
var i = "", l;
|
|
32
|
-
for (l = 0; l < n; l += 1) i += e;
|
|
33
|
-
return i;
|
|
34
|
-
}
|
|
35
|
-
__name(Ve, "Ve");
|
|
36
|
-
function Xe(e) {
|
|
37
|
-
return e === 0 && Number.NEGATIVE_INFINITY === 1 / e;
|
|
38
|
-
}
|
|
39
|
-
__name(Xe, "Xe");
|
|
40
|
-
var Ze = oe;
|
|
41
|
-
var ze = We;
|
|
42
|
-
var Je = $e;
|
|
43
|
-
var en = Ve;
|
|
44
|
-
var nn = Xe;
|
|
45
|
-
var rn = Qe;
|
|
46
|
-
var y = { isNothing: Ze, isObject: ze, toArray: Je, repeat: en, isNegativeZero: nn, extend: rn };
|
|
47
|
-
function ue(e, n) {
|
|
48
|
-
var i = "", l = e.reason || "(unknown reason)";
|
|
49
|
-
return e.mark ? (e.mark.name && (i += 'in "' + e.mark.name + '" '), i += "(" + (e.mark.line + 1) + ":" + (e.mark.column + 1) + ")", !n && e.mark.snippet && (i += `
|
|
50
|
-
|
|
51
|
-
` + e.mark.snippet), l + " " + i) : l;
|
|
52
|
-
}
|
|
53
|
-
__name(ue, "ue");
|
|
54
|
-
function M(e, n) {
|
|
55
|
-
Error.call(this), this.name = "YAMLException", this.reason = e, this.mark = n, this.message = ue(this, false), Error.captureStackTrace ? Error.captureStackTrace(this, this.constructor) : this.stack = new Error().stack || "";
|
|
56
|
-
}
|
|
57
|
-
__name(M, "M");
|
|
58
|
-
M.prototype = Object.create(Error.prototype), M.prototype.constructor = M, M.prototype.toString = function(n) {
|
|
59
|
-
return this.name + ": " + ue(this, n);
|
|
60
|
-
};
|
|
61
|
-
var w = M;
|
|
62
|
-
function $(e, n, i, l, r) {
|
|
63
|
-
var u = "", o = "", f = Math.floor(r / 2) - 1;
|
|
64
|
-
return l - n > f && (u = " ... ", n = l - f + u.length), i - l > f && (o = " ...", i = l + f - o.length), { str: u + e.slice(n, i).replace(/\t/g, "\u2192") + o, pos: l - n + u.length };
|
|
65
|
-
}
|
|
66
|
-
__name($, "$");
|
|
67
|
-
function Q(e, n) {
|
|
68
|
-
return y.repeat(" ", n - e.length) + e;
|
|
69
|
-
}
|
|
70
|
-
__name(Q, "Q");
|
|
71
|
-
function ln(e, n) {
|
|
72
|
-
if (n = Object.create(n || null), !e.buffer) return null;
|
|
73
|
-
n.maxLength || (n.maxLength = 79), typeof n.indent != "number" && (n.indent = 1), typeof n.linesBefore != "number" && (n.linesBefore = 3), typeof n.linesAfter != "number" && (n.linesAfter = 2);
|
|
74
|
-
for (var i = /\r?\n|\r|\0/g, l = [0], r = [], u, o = -1; u = i.exec(e.buffer); ) r.push(u.index), l.push(u.index + u[0].length), e.position <= u.index && o < 0 && (o = l.length - 2);
|
|
75
|
-
o < 0 && (o = l.length - 1);
|
|
76
|
-
var f = "", c, a, t = Math.min(e.line + n.linesAfter, r.length).toString().length, p = n.maxLength - (n.indent + t + 3);
|
|
77
|
-
for (c = 1; c <= n.linesBefore && !(o - c < 0); c++) a = $(e.buffer, l[o - c], r[o - c], e.position - (l[o] - l[o - c]), p), f = y.repeat(" ", n.indent) + Q((e.line - c + 1).toString(), t) + " | " + a.str + `
|
|
78
|
-
` + f;
|
|
79
|
-
for (a = $(e.buffer, l[o], r[o], e.position, p), f += y.repeat(" ", n.indent) + Q((e.line + 1).toString(), t) + " | " + a.str + `
|
|
80
|
-
`, f += y.repeat("-", n.indent + t + 3 + a.pos) + `^
|
|
81
|
-
`, c = 1; c <= n.linesAfter && !(o + c >= r.length); c++) a = $(e.buffer, l[o + c], r[o + c], e.position - (l[o] - l[o + c]), p), f += y.repeat(" ", n.indent) + Q((e.line + c + 1).toString(), t) + " | " + a.str + `
|
|
82
|
-
`;
|
|
83
|
-
return f.replace(/\n$/, "");
|
|
84
|
-
}
|
|
85
|
-
__name(ln, "ln");
|
|
86
|
-
var on = ln;
|
|
87
|
-
var un = ["kind", "multi", "resolve", "construct", "instanceOf", "predicate", "represent", "representName", "defaultStyle", "styleAliases"];
|
|
88
|
-
var fn = ["scalar", "sequence", "mapping"];
|
|
89
|
-
function cn(e) {
|
|
90
|
-
var n = {};
|
|
91
|
-
return e !== null && Object.keys(e).forEach(function(i) {
|
|
92
|
-
e[i].forEach(function(l) {
|
|
93
|
-
n[String(l)] = i;
|
|
94
|
-
});
|
|
95
|
-
}), n;
|
|
96
|
-
}
|
|
97
|
-
__name(cn, "cn");
|
|
98
|
-
function an(e, n) {
|
|
99
|
-
if (n = n || {}, Object.keys(n).forEach(function(i) {
|
|
100
|
-
if (un.indexOf(i) === -1) throw new w('Unknown option "' + i + '" is met in definition of "' + e + '" YAML type.');
|
|
101
|
-
}), this.options = n, this.tag = e, this.kind = n.kind || null, this.resolve = n.resolve || function() {
|
|
102
|
-
return true;
|
|
103
|
-
}, this.construct = n.construct || function(i) {
|
|
104
|
-
return i;
|
|
105
|
-
}, this.instanceOf = n.instanceOf || null, this.predicate = n.predicate || null, this.represent = n.represent || null, this.representName = n.representName || null, this.defaultStyle = n.defaultStyle || null, this.multi = n.multi || false, this.styleAliases = cn(n.styleAliases || null), fn.indexOf(this.kind) === -1) throw new w('Unknown kind "' + this.kind + '" is specified for "' + e + '" YAML type.');
|
|
106
|
-
}
|
|
107
|
-
__name(an, "an");
|
|
108
|
-
var C2 = an;
|
|
109
|
-
function fe(e, n) {
|
|
110
|
-
var i = [];
|
|
111
|
-
return e[n].forEach(function(l) {
|
|
112
|
-
var r = i.length;
|
|
113
|
-
i.forEach(function(u, o) {
|
|
114
|
-
u.tag === l.tag && u.kind === l.kind && u.multi === l.multi && (r = o);
|
|
115
|
-
}), i[r] = l;
|
|
116
|
-
}), i;
|
|
117
|
-
}
|
|
118
|
-
__name(fe, "fe");
|
|
119
|
-
function pn() {
|
|
120
|
-
var e = { scalar: {}, sequence: {}, mapping: {}, fallback: {}, multi: { scalar: [], sequence: [], mapping: [], fallback: [] } }, n, i;
|
|
121
|
-
function l(r) {
|
|
122
|
-
r.multi ? (e.multi[r.kind].push(r), e.multi.fallback.push(r)) : e[r.kind][r.tag] = e.fallback[r.tag] = r;
|
|
123
|
-
}
|
|
124
|
-
__name(l, "l");
|
|
125
|
-
for (n = 0, i = arguments.length; n < i; n += 1) arguments[n].forEach(l);
|
|
126
|
-
return e;
|
|
127
|
-
}
|
|
128
|
-
__name(pn, "pn");
|
|
129
|
-
function V(e) {
|
|
130
|
-
return this.extend(e);
|
|
131
|
-
}
|
|
132
|
-
__name(V, "V");
|
|
133
|
-
V.prototype.extend = function(n) {
|
|
134
|
-
var i = [], l = [];
|
|
135
|
-
if (n instanceof C2) l.push(n);
|
|
136
|
-
else if (Array.isArray(n)) l = l.concat(n);
|
|
137
|
-
else if (n && (Array.isArray(n.implicit) || Array.isArray(n.explicit))) n.implicit && (i = i.concat(n.implicit)), n.explicit && (l = l.concat(n.explicit));
|
|
138
|
-
else throw new w("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })");
|
|
139
|
-
i.forEach(function(u) {
|
|
140
|
-
if (!(u instanceof C2)) throw new w("Specified list of YAML types (or a single Type object) contains a non-Type object.");
|
|
141
|
-
if (u.loadKind && u.loadKind !== "scalar") throw new w("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.");
|
|
142
|
-
if (u.multi) throw new w("There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.");
|
|
143
|
-
}), l.forEach(function(u) {
|
|
144
|
-
if (!(u instanceof C2)) throw new w("Specified list of YAML types (or a single Type object) contains a non-Type object.");
|
|
145
|
-
});
|
|
146
|
-
var r = Object.create(V.prototype);
|
|
147
|
-
return r.implicit = (this.implicit || []).concat(i), r.explicit = (this.explicit || []).concat(l), r.compiledImplicit = fe(r, "implicit"), r.compiledExplicit = fe(r, "explicit"), r.compiledTypeMap = pn(r.compiledImplicit, r.compiledExplicit), r;
|
|
148
|
-
};
|
|
149
|
-
var tn = V;
|
|
150
|
-
var hn = new C2("tag:yaml.org,2002:str", { kind: "scalar", construct: /* @__PURE__ */ __name(function(e) {
|
|
151
|
-
return e !== null ? e : "";
|
|
152
|
-
}, "construct") });
|
|
153
|
-
var dn = new C2("tag:yaml.org,2002:seq", { kind: "sequence", construct: /* @__PURE__ */ __name(function(e) {
|
|
154
|
-
return e !== null ? e : [];
|
|
155
|
-
}, "construct") });
|
|
156
|
-
var sn = new C2("tag:yaml.org,2002:map", { kind: "mapping", construct: /* @__PURE__ */ __name(function(e) {
|
|
157
|
-
return e !== null ? e : {};
|
|
158
|
-
}, "construct") });
|
|
159
|
-
var xn = new tn({ explicit: [hn, dn, sn] });
|
|
160
|
-
function mn(e) {
|
|
161
|
-
if (e === null) return true;
|
|
162
|
-
var n = e.length;
|
|
163
|
-
return n === 1 && e === "~" || n === 4 && (e === "null" || e === "Null" || e === "NULL");
|
|
164
|
-
}
|
|
165
|
-
__name(mn, "mn");
|
|
166
|
-
function gn() {
|
|
167
|
-
return null;
|
|
168
|
-
}
|
|
169
|
-
__name(gn, "gn");
|
|
170
|
-
function An(e) {
|
|
171
|
-
return e === null;
|
|
172
|
-
}
|
|
173
|
-
__name(An, "An");
|
|
174
|
-
var vn = new C2("tag:yaml.org,2002:null", { kind: "scalar", resolve: mn, construct: gn, predicate: An, represent: { canonical: /* @__PURE__ */ __name(function() {
|
|
175
|
-
return "~";
|
|
176
|
-
}, "canonical"), lowercase: /* @__PURE__ */ __name(function() {
|
|
177
|
-
return "null";
|
|
178
|
-
}, "lowercase"), uppercase: /* @__PURE__ */ __name(function() {
|
|
179
|
-
return "NULL";
|
|
180
|
-
}, "uppercase"), camelcase: /* @__PURE__ */ __name(function() {
|
|
181
|
-
return "Null";
|
|
182
|
-
}, "camelcase"), empty: /* @__PURE__ */ __name(function() {
|
|
183
|
-
return "";
|
|
184
|
-
}, "empty") }, defaultStyle: "lowercase" });
|
|
185
|
-
function yn(e) {
|
|
186
|
-
if (e === null) return false;
|
|
187
|
-
var n = e.length;
|
|
188
|
-
return n === 4 && (e === "true" || e === "True" || e === "TRUE") || n === 5 && (e === "false" || e === "False" || e === "FALSE");
|
|
189
|
-
}
|
|
190
|
-
__name(yn, "yn");
|
|
191
|
-
function Cn(e) {
|
|
192
|
-
return e === "true" || e === "True" || e === "TRUE";
|
|
193
|
-
}
|
|
194
|
-
__name(Cn, "Cn");
|
|
195
|
-
function _n(e) {
|
|
196
|
-
return Object.prototype.toString.call(e) === "[object Boolean]";
|
|
197
|
-
}
|
|
198
|
-
__name(_n, "_n");
|
|
199
|
-
var wn = new C2("tag:yaml.org,2002:bool", { kind: "scalar", resolve: yn, construct: Cn, predicate: _n, represent: { lowercase: /* @__PURE__ */ __name(function(e) {
|
|
200
|
-
return e ? "true" : "false";
|
|
201
|
-
}, "lowercase"), uppercase: /* @__PURE__ */ __name(function(e) {
|
|
202
|
-
return e ? "TRUE" : "FALSE";
|
|
203
|
-
}, "uppercase"), camelcase: /* @__PURE__ */ __name(function(e) {
|
|
204
|
-
return e ? "True" : "False";
|
|
205
|
-
}, "camelcase") }, defaultStyle: "lowercase" });
|
|
206
|
-
function bn(e) {
|
|
207
|
-
return 48 <= e && e <= 57 || 65 <= e && e <= 70 || 97 <= e && e <= 102;
|
|
208
|
-
}
|
|
209
|
-
__name(bn, "bn");
|
|
210
|
-
function Fn(e) {
|
|
211
|
-
return 48 <= e && e <= 55;
|
|
212
|
-
}
|
|
213
|
-
__name(Fn, "Fn");
|
|
214
|
-
function Sn(e) {
|
|
215
|
-
return 48 <= e && e <= 57;
|
|
216
|
-
}
|
|
217
|
-
__name(Sn, "Sn");
|
|
218
|
-
function En(e) {
|
|
219
|
-
if (e === null) return false;
|
|
220
|
-
var n = e.length, i = 0, l = false, r;
|
|
221
|
-
if (!n) return false;
|
|
222
|
-
if (r = e[i], (r === "-" || r === "+") && (r = e[++i]), r === "0") {
|
|
223
|
-
if (i + 1 === n) return true;
|
|
224
|
-
if (r = e[++i], r === "b") {
|
|
225
|
-
for (i++; i < n; i++) if (r = e[i], r !== "_") {
|
|
226
|
-
if (r !== "0" && r !== "1") return false;
|
|
227
|
-
l = true;
|
|
228
|
-
}
|
|
229
|
-
return l && r !== "_";
|
|
230
|
-
}
|
|
231
|
-
if (r === "x") {
|
|
232
|
-
for (i++; i < n; i++) if (r = e[i], r !== "_") {
|
|
233
|
-
if (!bn(e.charCodeAt(i))) return false;
|
|
234
|
-
l = true;
|
|
235
|
-
}
|
|
236
|
-
return l && r !== "_";
|
|
237
|
-
}
|
|
238
|
-
if (r === "o") {
|
|
239
|
-
for (i++; i < n; i++) if (r = e[i], r !== "_") {
|
|
240
|
-
if (!Fn(e.charCodeAt(i))) return false;
|
|
241
|
-
l = true;
|
|
242
|
-
}
|
|
243
|
-
return l && r !== "_";
|
|
244
|
-
}
|
|
245
|
-
}
|
|
246
|
-
if (r === "_") return false;
|
|
247
|
-
for (; i < n; i++) if (r = e[i], r !== "_") {
|
|
248
|
-
if (!Sn(e.charCodeAt(i))) return false;
|
|
249
|
-
l = true;
|
|
250
|
-
}
|
|
251
|
-
return !(!l || r === "_");
|
|
252
|
-
}
|
|
253
|
-
__name(En, "En");
|
|
254
|
-
function Tn(e) {
|
|
255
|
-
var n = e, i = 1, l;
|
|
256
|
-
if (n.indexOf("_") !== -1 && (n = n.replace(/_/g, "")), l = n[0], (l === "-" || l === "+") && (l === "-" && (i = -1), n = n.slice(1), l = n[0]), n === "0") return 0;
|
|
257
|
-
if (l === "0") {
|
|
258
|
-
if (n[1] === "b") return i * parseInt(n.slice(2), 2);
|
|
259
|
-
if (n[1] === "x") return i * parseInt(n.slice(2), 16);
|
|
260
|
-
if (n[1] === "o") return i * parseInt(n.slice(2), 8);
|
|
261
|
-
}
|
|
262
|
-
return i * parseInt(n, 10);
|
|
263
|
-
}
|
|
264
|
-
__name(Tn, "Tn");
|
|
265
|
-
function On(e) {
|
|
266
|
-
return Object.prototype.toString.call(e) === "[object Number]" && e % 1 === 0 && !y.isNegativeZero(e);
|
|
267
|
-
}
|
|
268
|
-
__name(On, "On");
|
|
269
|
-
var In = new C2("tag:yaml.org,2002:int", { kind: "scalar", resolve: En, construct: Tn, predicate: On, represent: { binary: /* @__PURE__ */ __name(function(e) {
|
|
270
|
-
return e >= 0 ? "0b" + e.toString(2) : "-0b" + e.toString(2).slice(1);
|
|
271
|
-
}, "binary"), octal: /* @__PURE__ */ __name(function(e) {
|
|
272
|
-
return e >= 0 ? "0o" + e.toString(8) : "-0o" + e.toString(8).slice(1);
|
|
273
|
-
}, "octal"), decimal: /* @__PURE__ */ __name(function(e) {
|
|
274
|
-
return e.toString(10);
|
|
275
|
-
}, "decimal"), hexadecimal: /* @__PURE__ */ __name(function(e) {
|
|
276
|
-
return e >= 0 ? "0x" + e.toString(16).toUpperCase() : "-0x" + e.toString(16).toUpperCase().slice(1);
|
|
277
|
-
}, "hexadecimal") }, defaultStyle: "decimal", styleAliases: { binary: [2, "bin"], octal: [8, "oct"], decimal: [10, "dec"], hexadecimal: [16, "hex"] } });
|
|
278
|
-
var kn = new RegExp("^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");
|
|
279
|
-
function Ln(e) {
|
|
280
|
-
return !(e === null || !kn.test(e) || e[e.length - 1] === "_");
|
|
281
|
-
}
|
|
282
|
-
__name(Ln, "Ln");
|
|
283
|
-
function Nn(e) {
|
|
284
|
-
var n, i;
|
|
285
|
-
return n = e.replace(/_/g, "").toLowerCase(), i = n[0] === "-" ? -1 : 1, "+-".indexOf(n[0]) >= 0 && (n = n.slice(1)), n === ".inf" ? i === 1 ? Number.POSITIVE_INFINITY : Number.NEGATIVE_INFINITY : n === ".nan" ? NaN : i * parseFloat(n, 10);
|
|
286
|
-
}
|
|
287
|
-
__name(Nn, "Nn");
|
|
288
|
-
var Rn = /^[-+]?[0-9]+e/;
|
|
289
|
-
function Dn(e, n) {
|
|
290
|
-
var i;
|
|
291
|
-
if (isNaN(e)) switch (n) {
|
|
292
|
-
case "lowercase":
|
|
293
|
-
return ".nan";
|
|
294
|
-
case "uppercase":
|
|
295
|
-
return ".NAN";
|
|
296
|
-
case "camelcase":
|
|
297
|
-
return ".NaN";
|
|
298
|
-
}
|
|
299
|
-
else if (Number.POSITIVE_INFINITY === e) switch (n) {
|
|
300
|
-
case "lowercase":
|
|
301
|
-
return ".inf";
|
|
302
|
-
case "uppercase":
|
|
303
|
-
return ".INF";
|
|
304
|
-
case "camelcase":
|
|
305
|
-
return ".Inf";
|
|
306
|
-
}
|
|
307
|
-
else if (Number.NEGATIVE_INFINITY === e) switch (n) {
|
|
308
|
-
case "lowercase":
|
|
309
|
-
return "-.inf";
|
|
310
|
-
case "uppercase":
|
|
311
|
-
return "-.INF";
|
|
312
|
-
case "camelcase":
|
|
313
|
-
return "-.Inf";
|
|
314
|
-
}
|
|
315
|
-
else if (y.isNegativeZero(e)) return "-0.0";
|
|
316
|
-
return i = e.toString(10), Rn.test(i) ? i.replace("e", ".e") : i;
|
|
317
|
-
}
|
|
318
|
-
__name(Dn, "Dn");
|
|
319
|
-
function Mn(e) {
|
|
320
|
-
return Object.prototype.toString.call(e) === "[object Number]" && (e % 1 !== 0 || y.isNegativeZero(e));
|
|
321
|
-
}
|
|
322
|
-
__name(Mn, "Mn");
|
|
323
|
-
var Yn = new C2("tag:yaml.org,2002:float", { kind: "scalar", resolve: Ln, construct: Nn, predicate: Mn, represent: Dn, defaultStyle: "lowercase" });
|
|
324
|
-
var Bn = xn.extend({ implicit: [vn, wn, In, Yn] });
|
|
325
|
-
var Pn = Bn;
|
|
326
|
-
var ce = new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$");
|
|
327
|
-
var ae = 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]))?))?$");
|
|
328
|
-
function jn(e) {
|
|
329
|
-
return e === null ? false : ce.exec(e) !== null || ae.exec(e) !== null;
|
|
330
|
-
}
|
|
331
|
-
__name(jn, "jn");
|
|
332
|
-
function Hn(e) {
|
|
333
|
-
var n, i, l, r, u, o, f, c = 0, a = null, t, p, d;
|
|
334
|
-
if (n = ce.exec(e), n === null && (n = ae.exec(e)), n === null) throw new Error("Date resolve error");
|
|
335
|
-
if (i = +n[1], l = +n[2] - 1, r = +n[3], !n[4]) return new Date(Date.UTC(i, l, r));
|
|
336
|
-
if (u = +n[4], o = +n[5], f = +n[6], n[7]) {
|
|
337
|
-
for (c = n[7].slice(0, 3); c.length < 3; ) c += "0";
|
|
338
|
-
c = +c;
|
|
339
|
-
}
|
|
340
|
-
return n[9] && (t = +n[10], p = +(n[11] || 0), a = (t * 60 + p) * 6e4, n[9] === "-" && (a = -a)), d = new Date(Date.UTC(i, l, r, u, o, f, c)), a && d.setTime(d.getTime() - a), d;
|
|
341
|
-
}
|
|
342
|
-
__name(Hn, "Hn");
|
|
343
|
-
function Un(e) {
|
|
344
|
-
return e.toISOString();
|
|
345
|
-
}
|
|
346
|
-
__name(Un, "Un");
|
|
347
|
-
var Kn = new C2("tag:yaml.org,2002:timestamp", { kind: "scalar", resolve: jn, construct: Hn, instanceOf: Date, represent: Un });
|
|
348
|
-
function qn(e) {
|
|
349
|
-
return e === "<<" || e === null;
|
|
350
|
-
}
|
|
351
|
-
__name(qn, "qn");
|
|
352
|
-
var Gn = new C2("tag:yaml.org,2002:merge", { kind: "scalar", resolve: qn });
|
|
353
|
-
var X = `ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
|
|
354
|
-
\r`;
|
|
355
|
-
function Wn(e) {
|
|
356
|
-
if (e === null) return false;
|
|
357
|
-
var n, i, l = 0, r = e.length, u = X;
|
|
358
|
-
for (i = 0; i < r; i++) if (n = u.indexOf(e.charAt(i)), !(n > 64)) {
|
|
359
|
-
if (n < 0) return false;
|
|
360
|
-
l += 6;
|
|
361
|
-
}
|
|
362
|
-
return l % 8 === 0;
|
|
363
|
-
}
|
|
364
|
-
__name(Wn, "Wn");
|
|
365
|
-
function $n(e) {
|
|
366
|
-
var n, i, l = e.replace(/[\r\n=]/g, ""), r = l.length, u = X, o = 0, f = [];
|
|
367
|
-
for (n = 0; n < r; n++) n % 4 === 0 && n && (f.push(o >> 16 & 255), f.push(o >> 8 & 255), f.push(o & 255)), o = o << 6 | u.indexOf(l.charAt(n));
|
|
368
|
-
return i = r % 4 * 6, i === 0 ? (f.push(o >> 16 & 255), f.push(o >> 8 & 255), f.push(o & 255)) : i === 18 ? (f.push(o >> 10 & 255), f.push(o >> 2 & 255)) : i === 12 && f.push(o >> 4 & 255), new Uint8Array(f);
|
|
369
|
-
}
|
|
370
|
-
__name($n, "$n");
|
|
371
|
-
function Qn(e) {
|
|
372
|
-
var n = "", i = 0, l, r, u = e.length, o = X;
|
|
373
|
-
for (l = 0; l < u; l++) l % 3 === 0 && l && (n += o[i >> 18 & 63], n += o[i >> 12 & 63], n += o[i >> 6 & 63], n += o[i & 63]), i = (i << 8) + e[l];
|
|
374
|
-
return r = u % 3, r === 0 ? (n += o[i >> 18 & 63], n += o[i >> 12 & 63], n += o[i >> 6 & 63], n += o[i & 63]) : r === 2 ? (n += o[i >> 10 & 63], n += o[i >> 4 & 63], n += o[i << 2 & 63], n += o[64]) : r === 1 && (n += o[i >> 2 & 63], n += o[i << 4 & 63], n += o[64], n += o[64]), n;
|
|
375
|
-
}
|
|
376
|
-
__name(Qn, "Qn");
|
|
377
|
-
function Vn(e) {
|
|
378
|
-
return Object.prototype.toString.call(e) === "[object Uint8Array]";
|
|
379
|
-
}
|
|
380
|
-
__name(Vn, "Vn");
|
|
381
|
-
var Xn = new C2("tag:yaml.org,2002:binary", { kind: "scalar", resolve: Wn, construct: $n, predicate: Vn, represent: Qn });
|
|
382
|
-
var Zn = Object.prototype.hasOwnProperty;
|
|
383
|
-
var zn = Object.prototype.toString;
|
|
384
|
-
function Jn(e) {
|
|
385
|
-
if (e === null) return true;
|
|
386
|
-
var n = [], i, l, r, u, o, f = e;
|
|
387
|
-
for (i = 0, l = f.length; i < l; i += 1) {
|
|
388
|
-
if (r = f[i], o = false, zn.call(r) !== "[object Object]") return false;
|
|
389
|
-
for (u in r) if (Zn.call(r, u)) if (!o) o = true;
|
|
390
|
-
else return false;
|
|
391
|
-
if (!o) return false;
|
|
392
|
-
if (n.indexOf(u) === -1) n.push(u);
|
|
393
|
-
else return false;
|
|
394
|
-
}
|
|
395
|
-
return true;
|
|
396
|
-
}
|
|
397
|
-
__name(Jn, "Jn");
|
|
398
|
-
function ei(e) {
|
|
399
|
-
return e !== null ? e : [];
|
|
400
|
-
}
|
|
401
|
-
__name(ei, "ei");
|
|
402
|
-
var ni = new C2("tag:yaml.org,2002:omap", { kind: "sequence", resolve: Jn, construct: ei });
|
|
403
|
-
var ii = Object.prototype.toString;
|
|
404
|
-
function ri(e) {
|
|
405
|
-
if (e === null) return true;
|
|
406
|
-
var n, i, l, r, u, o = e;
|
|
407
|
-
for (u = new Array(o.length), n = 0, i = o.length; n < i; n += 1) {
|
|
408
|
-
if (l = o[n], ii.call(l) !== "[object Object]" || (r = Object.keys(l), r.length !== 1)) return false;
|
|
409
|
-
u[n] = [r[0], l[r[0]]];
|
|
410
|
-
}
|
|
411
|
-
return true;
|
|
412
|
-
}
|
|
413
|
-
__name(ri, "ri");
|
|
414
|
-
function li(e) {
|
|
415
|
-
if (e === null) return [];
|
|
416
|
-
var n, i, l, r, u, o = e;
|
|
417
|
-
for (u = new Array(o.length), n = 0, i = o.length; n < i; n += 1) l = o[n], r = Object.keys(l), u[n] = [r[0], l[r[0]]];
|
|
418
|
-
return u;
|
|
419
|
-
}
|
|
420
|
-
__name(li, "li");
|
|
421
|
-
var oi = new C2("tag:yaml.org,2002:pairs", { kind: "sequence", resolve: ri, construct: li });
|
|
422
|
-
var ui = Object.prototype.hasOwnProperty;
|
|
423
|
-
function fi(e) {
|
|
424
|
-
if (e === null) return true;
|
|
425
|
-
var n, i = e;
|
|
426
|
-
for (n in i) if (ui.call(i, n) && i[n] !== null) return false;
|
|
427
|
-
return true;
|
|
428
|
-
}
|
|
429
|
-
__name(fi, "fi");
|
|
430
|
-
function ci(e) {
|
|
431
|
-
return e !== null ? e : {};
|
|
432
|
-
}
|
|
433
|
-
__name(ci, "ci");
|
|
434
|
-
var ai = new C2("tag:yaml.org,2002:set", { kind: "mapping", resolve: fi, construct: ci });
|
|
435
|
-
var pe = Pn.extend({ implicit: [Kn, Gn], explicit: [Xn, ni, oi, ai] });
|
|
436
|
-
var T = Object.prototype.hasOwnProperty;
|
|
437
|
-
var H = 1;
|
|
438
|
-
var te = 2;
|
|
439
|
-
var he = 3;
|
|
440
|
-
var U = 4;
|
|
441
|
-
var Z = 1;
|
|
442
|
-
var pi = 2;
|
|
443
|
-
var de = 3;
|
|
444
|
-
var ti = /[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/;
|
|
445
|
-
var hi = /[\x85\u2028\u2029]/;
|
|
446
|
-
var di = /[,\[\]\{\}]/;
|
|
447
|
-
var se = /^(?:!|!!|![a-z\-]+!)$/i;
|
|
448
|
-
var xe = /^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;
|
|
449
|
-
function me(e) {
|
|
450
|
-
return Object.prototype.toString.call(e);
|
|
451
|
-
}
|
|
452
|
-
__name(me, "me");
|
|
453
|
-
function S(e) {
|
|
454
|
-
return e === 10 || e === 13;
|
|
455
|
-
}
|
|
456
|
-
__name(S, "S");
|
|
457
|
-
function I(e) {
|
|
458
|
-
return e === 9 || e === 32;
|
|
459
|
-
}
|
|
460
|
-
__name(I, "I");
|
|
461
|
-
function b(e) {
|
|
462
|
-
return e === 9 || e === 32 || e === 10 || e === 13;
|
|
463
|
-
}
|
|
464
|
-
__name(b, "b");
|
|
465
|
-
function k(e) {
|
|
466
|
-
return e === 44 || e === 91 || e === 93 || e === 123 || e === 125;
|
|
467
|
-
}
|
|
468
|
-
__name(k, "k");
|
|
469
|
-
function si(e) {
|
|
470
|
-
var n;
|
|
471
|
-
return 48 <= e && e <= 57 ? e - 48 : (n = e | 32, 97 <= n && n <= 102 ? n - 97 + 10 : -1);
|
|
472
|
-
}
|
|
473
|
-
__name(si, "si");
|
|
474
|
-
function xi(e) {
|
|
475
|
-
return e === 120 ? 2 : e === 117 ? 4 : e === 85 ? 8 : 0;
|
|
476
|
-
}
|
|
477
|
-
__name(xi, "xi");
|
|
478
|
-
function mi(e) {
|
|
479
|
-
return 48 <= e && e <= 57 ? e - 48 : -1;
|
|
480
|
-
}
|
|
481
|
-
__name(mi, "mi");
|
|
482
|
-
function ge(e) {
|
|
483
|
-
return e === 48 ? "\0" : e === 97 ? "\x07" : e === 98 ? "\b" : e === 116 || e === 9 ? " " : e === 110 ? `
|
|
484
|
-
` : e === 118 ? "\v" : e === 102 ? "\f" : e === 114 ? "\r" : e === 101 ? "\x1B" : e === 32 ? " " : e === 34 ? '"' : e === 47 ? "/" : e === 92 ? "\\" : e === 78 ? "\x85" : e === 95 ? "\xA0" : e === 76 ? "\u2028" : e === 80 ? "\u2029" : "";
|
|
485
|
-
}
|
|
486
|
-
__name(ge, "ge");
|
|
487
|
-
function gi(e) {
|
|
488
|
-
return e <= 65535 ? String.fromCharCode(e) : String.fromCharCode((e - 65536 >> 10) + 55296, (e - 65536 & 1023) + 56320);
|
|
489
|
-
}
|
|
490
|
-
__name(gi, "gi");
|
|
491
|
-
for (Ae = new Array(256), ve = new Array(256), L = 0; L < 256; L++) Ae[L] = ge(L) ? 1 : 0, ve[L] = ge(L);
|
|
492
|
-
var Ae;
|
|
493
|
-
var ve;
|
|
494
|
-
var L;
|
|
495
|
-
function Ai(e, n) {
|
|
496
|
-
this.input = e, this.filename = n.filename || null, this.schema = n.schema || pe, this.onWarning = n.onWarning || null, this.legacy = n.legacy || false, this.json = n.json || false, this.listener = n.listener || null, this.implicitTypes = this.schema.compiledImplicit, this.typeMap = this.schema.compiledTypeMap, this.length = e.length, this.position = 0, this.line = 0, this.lineStart = 0, this.lineIndent = 0, this.firstTabInLine = -1, this.documents = [];
|
|
497
|
-
}
|
|
498
|
-
__name(Ai, "Ai");
|
|
499
|
-
function ye(e, n) {
|
|
500
|
-
var i = { name: e.filename, buffer: e.input.slice(0, -1), position: e.position, line: e.line, column: e.position - e.lineStart };
|
|
501
|
-
return i.snippet = on(i), new w(n, i);
|
|
502
|
-
}
|
|
503
|
-
__name(ye, "ye");
|
|
504
|
-
function h(e, n) {
|
|
505
|
-
throw ye(e, n);
|
|
506
|
-
}
|
|
507
|
-
__name(h, "h");
|
|
508
|
-
function K(e, n) {
|
|
509
|
-
e.onWarning && e.onWarning.call(null, ye(e, n));
|
|
510
|
-
}
|
|
511
|
-
__name(K, "K");
|
|
512
|
-
var Ce = { YAML: /* @__PURE__ */ __name(function(n, i, l) {
|
|
513
|
-
var r, u, o;
|
|
514
|
-
n.version !== null && h(n, "duplication of %YAML directive"), l.length !== 1 && h(n, "YAML directive accepts exactly one argument"), r = /^([0-9]+)\.([0-9]+)$/.exec(l[0]), r === null && h(n, "ill-formed argument of the YAML directive"), u = parseInt(r[1], 10), o = parseInt(r[2], 10), u !== 1 && h(n, "unacceptable YAML version of the document"), n.version = l[0], n.checkLineBreaks = o < 2, o !== 1 && o !== 2 && K(n, "unsupported YAML version of the document");
|
|
515
|
-
}, "YAML"), TAG: /* @__PURE__ */ __name(function(n, i, l) {
|
|
516
|
-
var r, u;
|
|
517
|
-
l.length !== 2 && h(n, "TAG directive accepts exactly two arguments"), r = l[0], u = l[1], se.test(r) || h(n, "ill-formed tag handle (first argument) of the TAG directive"), T.call(n.tagMap, r) && h(n, 'there is a previously declared suffix for "' + r + '" tag handle'), xe.test(u) || h(n, "ill-formed tag prefix (second argument) of the TAG directive");
|
|
518
|
-
try {
|
|
519
|
-
u = decodeURIComponent(u);
|
|
520
|
-
} catch {
|
|
521
|
-
h(n, "tag prefix is malformed: " + u);
|
|
522
|
-
}
|
|
523
|
-
n.tagMap[r] = u;
|
|
524
|
-
}, "TAG") };
|
|
525
|
-
function O(e, n, i, l) {
|
|
526
|
-
var r, u, o, f;
|
|
527
|
-
if (n < i) {
|
|
528
|
-
if (f = e.input.slice(n, i), l) for (r = 0, u = f.length; r < u; r += 1) o = f.charCodeAt(r), o === 9 || 32 <= o && o <= 1114111 || h(e, "expected valid JSON character");
|
|
529
|
-
else ti.test(f) && h(e, "the stream contains non-printable characters");
|
|
530
|
-
e.result += f;
|
|
531
|
-
}
|
|
532
|
-
}
|
|
533
|
-
__name(O, "O");
|
|
534
|
-
function _e(e, n, i, l) {
|
|
535
|
-
var r, u, o, f;
|
|
536
|
-
for (y.isObject(i) || h(e, "cannot merge mappings; the provided source object is unacceptable"), r = Object.keys(i), o = 0, f = r.length; o < f; o += 1) u = r[o], T.call(n, u) || (n[u] = i[u], l[u] = true);
|
|
537
|
-
}
|
|
538
|
-
__name(_e, "_e");
|
|
539
|
-
function N2(e, n, i, l, r, u, o, f, c) {
|
|
540
|
-
var a, t;
|
|
541
|
-
if (Array.isArray(r)) for (r = Array.prototype.slice.call(r), a = 0, t = r.length; a < t; a += 1) Array.isArray(r[a]) && h(e, "nested arrays are not supported inside keys"), typeof r == "object" && me(r[a]) === "[object Object]" && (r[a] = "[object Object]");
|
|
542
|
-
if (typeof r == "object" && me(r) === "[object Object]" && (r = "[object Object]"), r = String(r), n === null && (n = {}), l === "tag:yaml.org,2002:merge") if (Array.isArray(u)) for (a = 0, t = u.length; a < t; a += 1) _e(e, n, u[a], i);
|
|
543
|
-
else _e(e, n, u, i);
|
|
544
|
-
else !e.json && !T.call(i, r) && T.call(n, r) && (e.line = o || e.line, e.lineStart = f || e.lineStart, e.position = c || e.position, h(e, "duplicated mapping key")), r === "__proto__" ? Object.defineProperty(n, r, { configurable: true, enumerable: true, writable: true, value: u }) : n[r] = u, delete i[r];
|
|
545
|
-
return n;
|
|
546
|
-
}
|
|
547
|
-
__name(N2, "N");
|
|
548
|
-
function z(e) {
|
|
549
|
-
var n;
|
|
550
|
-
n = e.input.charCodeAt(e.position), n === 10 ? e.position++ : n === 13 ? (e.position++, e.input.charCodeAt(e.position) === 10 && e.position++) : h(e, "a line break is expected"), e.line += 1, e.lineStart = e.position, e.firstTabInLine = -1;
|
|
551
|
-
}
|
|
552
|
-
__name(z, "z");
|
|
553
|
-
function v(e, n, i) {
|
|
554
|
-
for (var l = 0, r = e.input.charCodeAt(e.position); r !== 0; ) {
|
|
555
|
-
for (; I(r); ) r === 9 && e.firstTabInLine === -1 && (e.firstTabInLine = e.position), r = e.input.charCodeAt(++e.position);
|
|
556
|
-
if (n && r === 35) do
|
|
557
|
-
r = e.input.charCodeAt(++e.position);
|
|
558
|
-
while (r !== 10 && r !== 13 && r !== 0);
|
|
559
|
-
if (S(r)) for (z(e), r = e.input.charCodeAt(e.position), l++, e.lineIndent = 0; r === 32; ) e.lineIndent++, r = e.input.charCodeAt(++e.position);
|
|
560
|
-
else break;
|
|
561
|
-
}
|
|
562
|
-
return i !== -1 && l !== 0 && e.lineIndent < i && K(e, "deficient indentation"), l;
|
|
563
|
-
}
|
|
564
|
-
__name(v, "v");
|
|
565
|
-
function q(e) {
|
|
566
|
-
var n = e.position, i;
|
|
567
|
-
return i = e.input.charCodeAt(n), !!((i === 45 || i === 46) && i === e.input.charCodeAt(n + 1) && i === e.input.charCodeAt(n + 2) && (n += 3, i = e.input.charCodeAt(n), i === 0 || b(i)));
|
|
568
|
-
}
|
|
569
|
-
__name(q, "q");
|
|
570
|
-
function J(e, n) {
|
|
571
|
-
n === 1 ? e.result += " " : n > 1 && (e.result += y.repeat(`
|
|
572
|
-
`, n - 1));
|
|
573
|
-
}
|
|
574
|
-
__name(J, "J");
|
|
575
|
-
function vi(e, n, i) {
|
|
576
|
-
var l, r, u, o, f, c, a, t, p = e.kind, d = e.result, s;
|
|
577
|
-
if (s = e.input.charCodeAt(e.position), b(s) || k(s) || s === 35 || s === 38 || s === 42 || s === 33 || s === 124 || s === 62 || s === 39 || s === 34 || s === 37 || s === 64 || s === 96 || (s === 63 || s === 45) && (r = e.input.charCodeAt(e.position + 1), b(r) || i && k(r))) return false;
|
|
578
|
-
for (e.kind = "scalar", e.result = "", u = o = e.position, f = false; s !== 0; ) {
|
|
579
|
-
if (s === 58) {
|
|
580
|
-
if (r = e.input.charCodeAt(e.position + 1), b(r) || i && k(r)) break;
|
|
581
|
-
} else if (s === 35) {
|
|
582
|
-
if (l = e.input.charCodeAt(e.position - 1), b(l)) break;
|
|
583
|
-
} else {
|
|
584
|
-
if (e.position === e.lineStart && q(e) || i && k(s)) break;
|
|
585
|
-
if (S(s)) if (c = e.line, a = e.lineStart, t = e.lineIndent, v(e, false, -1), e.lineIndent >= n) {
|
|
586
|
-
f = true, s = e.input.charCodeAt(e.position);
|
|
587
|
-
continue;
|
|
588
|
-
} else {
|
|
589
|
-
e.position = o, e.line = c, e.lineStart = a, e.lineIndent = t;
|
|
590
|
-
break;
|
|
591
|
-
}
|
|
592
|
-
}
|
|
593
|
-
f && (O(e, u, o, false), J(e, e.line - c), u = o = e.position, f = false), I(s) || (o = e.position + 1), s = e.input.charCodeAt(++e.position);
|
|
594
|
-
}
|
|
595
|
-
return O(e, u, o, false), e.result ? true : (e.kind = p, e.result = d, false);
|
|
596
|
-
}
|
|
597
|
-
__name(vi, "vi");
|
|
598
|
-
function yi(e, n) {
|
|
599
|
-
var i, l, r;
|
|
600
|
-
if (i = e.input.charCodeAt(e.position), i !== 39) return false;
|
|
601
|
-
for (e.kind = "scalar", e.result = "", e.position++, l = r = e.position; (i = e.input.charCodeAt(e.position)) !== 0; ) if (i === 39) if (O(e, l, e.position, true), i = e.input.charCodeAt(++e.position), i === 39) l = e.position, e.position++, r = e.position;
|
|
602
|
-
else return true;
|
|
603
|
-
else S(i) ? (O(e, l, r, true), J(e, v(e, false, n)), l = r = e.position) : e.position === e.lineStart && q(e) ? h(e, "unexpected end of the document within a single quoted scalar") : (e.position++, r = e.position);
|
|
604
|
-
h(e, "unexpected end of the stream within a single quoted scalar");
|
|
605
|
-
}
|
|
606
|
-
__name(yi, "yi");
|
|
607
|
-
function Ci(e, n) {
|
|
608
|
-
var i, l, r, u, o, f;
|
|
609
|
-
if (f = e.input.charCodeAt(e.position), f !== 34) return false;
|
|
610
|
-
for (e.kind = "scalar", e.result = "", e.position++, i = l = e.position; (f = e.input.charCodeAt(e.position)) !== 0; ) {
|
|
611
|
-
if (f === 34) return O(e, i, e.position, true), e.position++, true;
|
|
612
|
-
if (f === 92) {
|
|
613
|
-
if (O(e, i, e.position, true), f = e.input.charCodeAt(++e.position), S(f)) v(e, false, n);
|
|
614
|
-
else if (f < 256 && Ae[f]) e.result += ve[f], e.position++;
|
|
615
|
-
else if ((o = xi(f)) > 0) {
|
|
616
|
-
for (r = o, u = 0; r > 0; r--) f = e.input.charCodeAt(++e.position), (o = si(f)) >= 0 ? u = (u << 4) + o : h(e, "expected hexadecimal character");
|
|
617
|
-
e.result += gi(u), e.position++;
|
|
618
|
-
} else h(e, "unknown escape sequence");
|
|
619
|
-
i = l = e.position;
|
|
620
|
-
} else S(f) ? (O(e, i, l, true), J(e, v(e, false, n)), i = l = e.position) : e.position === e.lineStart && q(e) ? h(e, "unexpected end of the document within a double quoted scalar") : (e.position++, l = e.position);
|
|
621
|
-
}
|
|
622
|
-
h(e, "unexpected end of the stream within a double quoted scalar");
|
|
623
|
-
}
|
|
624
|
-
__name(Ci, "Ci");
|
|
625
|
-
function _i(e, n) {
|
|
626
|
-
var i = true, l, r, u, o = e.tag, f, c = e.anchor, a, t, p, d, s, x = /* @__PURE__ */ Object.create(null), g, A, F, m;
|
|
627
|
-
if (m = e.input.charCodeAt(e.position), m === 91) t = 93, s = false, f = [];
|
|
628
|
-
else if (m === 123) t = 125, s = true, f = {};
|
|
629
|
-
else return false;
|
|
630
|
-
for (e.anchor !== null && (e.anchorMap[e.anchor] = f), m = e.input.charCodeAt(++e.position); m !== 0; ) {
|
|
631
|
-
if (v(e, true, n), m = e.input.charCodeAt(e.position), m === t) return e.position++, e.tag = o, e.anchor = c, e.kind = s ? "mapping" : "sequence", e.result = f, true;
|
|
632
|
-
i ? m === 44 && h(e, "expected the node content, but found ','") : h(e, "missed comma between flow collection entries"), A = g = F = null, p = d = false, m === 63 && (a = e.input.charCodeAt(e.position + 1), b(a) && (p = d = true, e.position++, v(e, true, n))), l = e.line, r = e.lineStart, u = e.position, R(e, n, H, false, true), A = e.tag, g = e.result, v(e, true, n), m = e.input.charCodeAt(e.position), (d || e.line === l) && m === 58 && (p = true, m = e.input.charCodeAt(++e.position), v(e, true, n), R(e, n, H, false, true), F = e.result), s ? N2(e, f, x, A, g, F, l, r, u) : p ? f.push(N2(e, null, x, A, g, F, l, r, u)) : f.push(g), v(e, true, n), m = e.input.charCodeAt(e.position), m === 44 ? (i = true, m = e.input.charCodeAt(++e.position)) : i = false;
|
|
633
|
-
}
|
|
634
|
-
h(e, "unexpected end of the stream within a flow collection");
|
|
635
|
-
}
|
|
636
|
-
__name(_i, "_i");
|
|
637
|
-
function wi(e, n) {
|
|
638
|
-
var i, l, r = Z, u = false, o = false, f = n, c = 0, a = false, t, p;
|
|
639
|
-
if (p = e.input.charCodeAt(e.position), p === 124) l = false;
|
|
640
|
-
else if (p === 62) l = true;
|
|
641
|
-
else return false;
|
|
642
|
-
for (e.kind = "scalar", e.result = ""; p !== 0; ) if (p = e.input.charCodeAt(++e.position), p === 43 || p === 45) Z === r ? r = p === 43 ? de : pi : h(e, "repeat of a chomping mode identifier");
|
|
643
|
-
else if ((t = mi(p)) >= 0) t === 0 ? h(e, "bad explicit indentation width of a block scalar; it cannot be less than one") : o ? h(e, "repeat of an indentation width identifier") : (f = n + t - 1, o = true);
|
|
644
|
-
else break;
|
|
645
|
-
if (I(p)) {
|
|
646
|
-
do
|
|
647
|
-
p = e.input.charCodeAt(++e.position);
|
|
648
|
-
while (I(p));
|
|
649
|
-
if (p === 35) do
|
|
650
|
-
p = e.input.charCodeAt(++e.position);
|
|
651
|
-
while (!S(p) && p !== 0);
|
|
652
|
-
}
|
|
653
|
-
for (; p !== 0; ) {
|
|
654
|
-
for (z(e), e.lineIndent = 0, p = e.input.charCodeAt(e.position); (!o || e.lineIndent < f) && p === 32; ) e.lineIndent++, p = e.input.charCodeAt(++e.position);
|
|
655
|
-
if (!o && e.lineIndent > f && (f = e.lineIndent), S(p)) {
|
|
656
|
-
c++;
|
|
657
|
-
continue;
|
|
658
|
-
}
|
|
659
|
-
if (e.lineIndent < f) {
|
|
660
|
-
r === de ? e.result += y.repeat(`
|
|
661
|
-
`, u ? 1 + c : c) : r === Z && u && (e.result += `
|
|
662
|
-
`);
|
|
663
|
-
break;
|
|
664
|
-
}
|
|
665
|
-
for (l ? I(p) ? (a = true, e.result += y.repeat(`
|
|
666
|
-
`, u ? 1 + c : c)) : a ? (a = false, e.result += y.repeat(`
|
|
667
|
-
`, c + 1)) : c === 0 ? u && (e.result += " ") : e.result += y.repeat(`
|
|
668
|
-
`, c) : e.result += y.repeat(`
|
|
669
|
-
`, u ? 1 + c : c), u = true, o = true, c = 0, i = e.position; !S(p) && p !== 0; ) p = e.input.charCodeAt(++e.position);
|
|
670
|
-
O(e, i, e.position, false);
|
|
671
|
-
}
|
|
672
|
-
return true;
|
|
673
|
-
}
|
|
674
|
-
__name(wi, "wi");
|
|
675
|
-
function we(e, n) {
|
|
676
|
-
var i, l = e.tag, r = e.anchor, u = [], o, f = false, c;
|
|
677
|
-
if (e.firstTabInLine !== -1) return false;
|
|
678
|
-
for (e.anchor !== null && (e.anchorMap[e.anchor] = u), c = e.input.charCodeAt(e.position); c !== 0 && (e.firstTabInLine !== -1 && (e.position = e.firstTabInLine, h(e, "tab characters must not be used in indentation")), !(c !== 45 || (o = e.input.charCodeAt(e.position + 1), !b(o)))); ) {
|
|
679
|
-
if (f = true, e.position++, v(e, true, -1) && e.lineIndent <= n) {
|
|
680
|
-
u.push(null), c = e.input.charCodeAt(e.position);
|
|
681
|
-
continue;
|
|
682
|
-
}
|
|
683
|
-
if (i = e.line, R(e, n, he, false, true), u.push(e.result), v(e, true, -1), c = e.input.charCodeAt(e.position), (e.line === i || e.lineIndent > n) && c !== 0) h(e, "bad indentation of a sequence entry");
|
|
684
|
-
else if (e.lineIndent < n) break;
|
|
685
|
-
}
|
|
686
|
-
return f ? (e.tag = l, e.anchor = r, e.kind = "sequence", e.result = u, true) : false;
|
|
687
|
-
}
|
|
688
|
-
__name(we, "we");
|
|
689
|
-
function bi(e, n, i) {
|
|
690
|
-
var l, r, u, o, f, c, a = e.tag, t = e.anchor, p = {}, d = /* @__PURE__ */ Object.create(null), s = null, x = null, g = null, A = false, F = false, m;
|
|
691
|
-
if (e.firstTabInLine !== -1) return false;
|
|
692
|
-
for (e.anchor !== null && (e.anchorMap[e.anchor] = p), m = e.input.charCodeAt(e.position); m !== 0; ) {
|
|
693
|
-
if (!A && e.firstTabInLine !== -1 && (e.position = e.firstTabInLine, h(e, "tab characters must not be used in indentation")), l = e.input.charCodeAt(e.position + 1), u = e.line, (m === 63 || m === 58) && b(l)) m === 63 ? (A && (N2(e, p, d, s, x, null, o, f, c), s = x = g = null), F = true, A = true, r = true) : A ? (A = false, r = true) : h(e, "incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"), e.position += 1, m = l;
|
|
694
|
-
else {
|
|
695
|
-
if (o = e.line, f = e.lineStart, c = e.position, !R(e, i, te, false, true)) break;
|
|
696
|
-
if (e.line === u) {
|
|
697
|
-
for (m = e.input.charCodeAt(e.position); I(m); ) m = e.input.charCodeAt(++e.position);
|
|
698
|
-
if (m === 58) m = e.input.charCodeAt(++e.position), b(m) || h(e, "a whitespace character is expected after the key-value separator within a block mapping"), A && (N2(e, p, d, s, x, null, o, f, c), s = x = g = null), F = true, A = false, r = false, s = e.tag, x = e.result;
|
|
699
|
-
else if (F) h(e, "can not read an implicit mapping pair; a colon is missed");
|
|
700
|
-
else return e.tag = a, e.anchor = t, true;
|
|
701
|
-
} else if (F) h(e, "can not read a block mapping entry; a multiline key may not be an implicit key");
|
|
702
|
-
else return e.tag = a, e.anchor = t, true;
|
|
703
|
-
}
|
|
704
|
-
if ((e.line === u || e.lineIndent > n) && (A && (o = e.line, f = e.lineStart, c = e.position), R(e, n, U, true, r) && (A ? x = e.result : g = e.result), A || (N2(e, p, d, s, x, g, o, f, c), s = x = g = null), v(e, true, -1), m = e.input.charCodeAt(e.position)), (e.line === u || e.lineIndent > n) && m !== 0) h(e, "bad indentation of a mapping entry");
|
|
705
|
-
else if (e.lineIndent < n) break;
|
|
706
|
-
}
|
|
707
|
-
return A && N2(e, p, d, s, x, null, o, f, c), F && (e.tag = a, e.anchor = t, e.kind = "mapping", e.result = p), F;
|
|
708
|
-
}
|
|
709
|
-
__name(bi, "bi");
|
|
710
|
-
function Fi(e) {
|
|
711
|
-
var n, i = false, l = false, r, u, o;
|
|
712
|
-
if (o = e.input.charCodeAt(e.position), o !== 33) return false;
|
|
713
|
-
if (e.tag !== null && h(e, "duplication of a tag property"), o = e.input.charCodeAt(++e.position), o === 60 ? (i = true, o = e.input.charCodeAt(++e.position)) : o === 33 ? (l = true, r = "!!", o = e.input.charCodeAt(++e.position)) : r = "!", n = e.position, i) {
|
|
714
|
-
do
|
|
715
|
-
o = e.input.charCodeAt(++e.position);
|
|
716
|
-
while (o !== 0 && o !== 62);
|
|
717
|
-
e.position < e.length ? (u = e.input.slice(n, e.position), o = e.input.charCodeAt(++e.position)) : h(e, "unexpected end of the stream within a verbatim tag");
|
|
718
|
-
} else {
|
|
719
|
-
for (; o !== 0 && !b(o); ) o === 33 && (l ? h(e, "tag suffix cannot contain exclamation marks") : (r = e.input.slice(n - 1, e.position + 1), se.test(r) || h(e, "named tag handle cannot contain such characters"), l = true, n = e.position + 1)), o = e.input.charCodeAt(++e.position);
|
|
720
|
-
u = e.input.slice(n, e.position), di.test(u) && h(e, "tag suffix cannot contain flow indicator characters");
|
|
721
|
-
}
|
|
722
|
-
u && !xe.test(u) && h(e, "tag name cannot contain such characters: " + u);
|
|
723
|
-
try {
|
|
724
|
-
u = decodeURIComponent(u);
|
|
725
|
-
} catch {
|
|
726
|
-
h(e, "tag name is malformed: " + u);
|
|
727
|
-
}
|
|
728
|
-
return i ? e.tag = u : T.call(e.tagMap, r) ? e.tag = e.tagMap[r] + u : r === "!" ? e.tag = "!" + u : r === "!!" ? e.tag = "tag:yaml.org,2002:" + u : h(e, 'undeclared tag handle "' + r + '"'), true;
|
|
729
|
-
}
|
|
730
|
-
__name(Fi, "Fi");
|
|
731
|
-
function Si(e) {
|
|
732
|
-
var n, i;
|
|
733
|
-
if (i = e.input.charCodeAt(e.position), i !== 38) return false;
|
|
734
|
-
for (e.anchor !== null && h(e, "duplication of an anchor property"), i = e.input.charCodeAt(++e.position), n = e.position; i !== 0 && !b(i) && !k(i); ) i = e.input.charCodeAt(++e.position);
|
|
735
|
-
return e.position === n && h(e, "name of an anchor node must contain at least one character"), e.anchor = e.input.slice(n, e.position), true;
|
|
736
|
-
}
|
|
737
|
-
__name(Si, "Si");
|
|
738
|
-
function Ei(e) {
|
|
739
|
-
var n, i, l;
|
|
740
|
-
if (l = e.input.charCodeAt(e.position), l !== 42) return false;
|
|
741
|
-
for (l = e.input.charCodeAt(++e.position), n = e.position; l !== 0 && !b(l) && !k(l); ) l = e.input.charCodeAt(++e.position);
|
|
742
|
-
return e.position === n && h(e, "name of an alias node must contain at least one character"), i = e.input.slice(n, e.position), T.call(e.anchorMap, i) || h(e, 'unidentified alias "' + i + '"'), e.result = e.anchorMap[i], v(e, true, -1), true;
|
|
743
|
-
}
|
|
744
|
-
__name(Ei, "Ei");
|
|
745
|
-
function R(e, n, i, l, r) {
|
|
746
|
-
var u, o, f, c = 1, a = false, t = false, p, d, s, x, g, A;
|
|
747
|
-
if (e.listener !== null && e.listener("open", e), e.tag = null, e.anchor = null, e.kind = null, e.result = null, u = o = f = U === i || he === i, l && v(e, true, -1) && (a = true, e.lineIndent > n ? c = 1 : e.lineIndent === n ? c = 0 : e.lineIndent < n && (c = -1)), c === 1) for (; Fi(e) || Si(e); ) v(e, true, -1) ? (a = true, f = u, e.lineIndent > n ? c = 1 : e.lineIndent === n ? c = 0 : e.lineIndent < n && (c = -1)) : f = false;
|
|
748
|
-
if (f && (f = a || r), (c === 1 || U === i) && (H === i || te === i ? g = n : g = n + 1, A = e.position - e.lineStart, c === 1 ? f && (we(e, A) || bi(e, A, g)) || _i(e, g) ? t = true : (o && wi(e, g) || yi(e, g) || Ci(e, g) ? t = true : Ei(e) ? (t = true, (e.tag !== null || e.anchor !== null) && h(e, "alias node should not have any properties")) : vi(e, g, H === i) && (t = true, e.tag === null && (e.tag = "?")), e.anchor !== null && (e.anchorMap[e.anchor] = e.result)) : c === 0 && (t = f && we(e, A))), e.tag === null) e.anchor !== null && (e.anchorMap[e.anchor] = e.result);
|
|
749
|
-
else if (e.tag === "?") {
|
|
750
|
-
for (e.result !== null && e.kind !== "scalar" && h(e, 'unacceptable node kind for !<?> tag; it should be "scalar", not "' + e.kind + '"'), p = 0, d = e.implicitTypes.length; p < d; p += 1) if (x = e.implicitTypes[p], x.resolve(e.result)) {
|
|
751
|
-
e.result = x.construct(e.result), e.tag = x.tag, e.anchor !== null && (e.anchorMap[e.anchor] = e.result);
|
|
752
|
-
break;
|
|
753
|
-
}
|
|
754
|
-
} else if (e.tag !== "!") {
|
|
755
|
-
if (T.call(e.typeMap[e.kind || "fallback"], e.tag)) x = e.typeMap[e.kind || "fallback"][e.tag];
|
|
756
|
-
else for (x = null, s = e.typeMap.multi[e.kind || "fallback"], p = 0, d = s.length; p < d; p += 1) if (e.tag.slice(0, s[p].tag.length) === s[p].tag) {
|
|
757
|
-
x = s[p];
|
|
758
|
-
break;
|
|
759
|
-
}
|
|
760
|
-
x || h(e, "unknown tag !<" + e.tag + ">"), e.result !== null && x.kind !== e.kind && h(e, "unacceptable node kind for !<" + e.tag + '> tag; it should be "' + x.kind + '", not "' + e.kind + '"'), x.resolve(e.result, e.tag) ? (e.result = x.construct(e.result, e.tag), e.anchor !== null && (e.anchorMap[e.anchor] = e.result)) : h(e, "cannot resolve a node with !<" + e.tag + "> explicit tag");
|
|
761
|
-
}
|
|
762
|
-
return e.listener !== null && e.listener("close", e), e.tag !== null || e.anchor !== null || t;
|
|
763
|
-
}
|
|
764
|
-
__name(R, "R");
|
|
765
|
-
function Ti(e) {
|
|
766
|
-
var n = e.position, i, l, r, u = false, o;
|
|
767
|
-
for (e.version = null, e.checkLineBreaks = e.legacy, e.tagMap = /* @__PURE__ */ Object.create(null), e.anchorMap = /* @__PURE__ */ Object.create(null); (o = e.input.charCodeAt(e.position)) !== 0 && (v(e, true, -1), o = e.input.charCodeAt(e.position), !(e.lineIndent > 0 || o !== 37)); ) {
|
|
768
|
-
for (u = true, o = e.input.charCodeAt(++e.position), i = e.position; o !== 0 && !b(o); ) o = e.input.charCodeAt(++e.position);
|
|
769
|
-
for (l = e.input.slice(i, e.position), r = [], l.length < 1 && h(e, "directive name must not be less than one character in length"); o !== 0; ) {
|
|
770
|
-
for (; I(o); ) o = e.input.charCodeAt(++e.position);
|
|
771
|
-
if (o === 35) {
|
|
772
|
-
do
|
|
773
|
-
o = e.input.charCodeAt(++e.position);
|
|
774
|
-
while (o !== 0 && !S(o));
|
|
775
|
-
break;
|
|
776
|
-
}
|
|
777
|
-
if (S(o)) break;
|
|
778
|
-
for (i = e.position; o !== 0 && !b(o); ) o = e.input.charCodeAt(++e.position);
|
|
779
|
-
r.push(e.input.slice(i, e.position));
|
|
780
|
-
}
|
|
781
|
-
o !== 0 && z(e), T.call(Ce, l) ? Ce[l](e, l, r) : K(e, 'unknown document directive "' + l + '"');
|
|
782
|
-
}
|
|
783
|
-
if (v(e, true, -1), e.lineIndent === 0 && e.input.charCodeAt(e.position) === 45 && e.input.charCodeAt(e.position + 1) === 45 && e.input.charCodeAt(e.position + 2) === 45 ? (e.position += 3, v(e, true, -1)) : u && h(e, "directives end mark is expected"), R(e, e.lineIndent - 1, U, false, true), v(e, true, -1), e.checkLineBreaks && hi.test(e.input.slice(n, e.position)) && K(e, "non-ASCII line breaks are interpreted as content"), e.documents.push(e.result), e.position === e.lineStart && q(e)) {
|
|
784
|
-
e.input.charCodeAt(e.position) === 46 && (e.position += 3, v(e, true, -1));
|
|
785
|
-
return;
|
|
786
|
-
}
|
|
787
|
-
if (e.position < e.length - 1) h(e, "end of the stream or a document separator is expected");
|
|
788
|
-
else return;
|
|
789
|
-
}
|
|
790
|
-
__name(Ti, "Ti");
|
|
791
|
-
function be(e, n) {
|
|
792
|
-
e = String(e), n = n || {}, e.length !== 0 && (e.charCodeAt(e.length - 1) !== 10 && e.charCodeAt(e.length - 1) !== 13 && (e += `
|
|
793
|
-
`), e.charCodeAt(0) === 65279 && (e = e.slice(1)));
|
|
794
|
-
var i = new Ai(e, n), l = e.indexOf("\0");
|
|
795
|
-
for (l !== -1 && (i.position = l, h(i, "null byte is not allowed in input")), i.input += "\0"; i.input.charCodeAt(i.position) === 32; ) i.lineIndent += 1, i.position += 1;
|
|
796
|
-
for (; i.position < i.length - 1; ) Ti(i);
|
|
797
|
-
return i.documents;
|
|
798
|
-
}
|
|
799
|
-
__name(be, "be");
|
|
800
|
-
function Oi(e, n, i) {
|
|
801
|
-
n !== null && typeof n == "object" && typeof i > "u" && (i = n, n = null);
|
|
802
|
-
var l = be(e, i);
|
|
803
|
-
if (typeof n != "function") return l;
|
|
804
|
-
for (var r = 0, u = l.length; r < u; r += 1) n(l[r]);
|
|
805
|
-
}
|
|
806
|
-
__name(Oi, "Oi");
|
|
807
|
-
function Ii(e, n) {
|
|
808
|
-
var i = be(e, n);
|
|
809
|
-
if (i.length !== 0) {
|
|
810
|
-
if (i.length === 1) return i[0];
|
|
811
|
-
throw new w("expected a single document in the stream, but found more");
|
|
812
|
-
}
|
|
813
|
-
}
|
|
814
|
-
__name(Ii, "Ii");
|
|
815
|
-
var ki = Oi;
|
|
816
|
-
var Li = Ii;
|
|
817
|
-
var Ni = { loadAll: ki, load: Li };
|
|
818
|
-
var Fe = Object.prototype.toString;
|
|
819
|
-
var Se = Object.prototype.hasOwnProperty;
|
|
820
|
-
var ee = 65279;
|
|
821
|
-
var Ri = 9;
|
|
822
|
-
var Y = 10;
|
|
823
|
-
var Di = 13;
|
|
824
|
-
var Mi = 32;
|
|
825
|
-
var Yi = 33;
|
|
826
|
-
var Bi = 34;
|
|
827
|
-
var ne = 35;
|
|
828
|
-
var Pi = 37;
|
|
829
|
-
var ji = 38;
|
|
830
|
-
var Hi = 39;
|
|
831
|
-
var Ui = 42;
|
|
832
|
-
var Ee = 44;
|
|
833
|
-
var Ki = 45;
|
|
834
|
-
var G = 58;
|
|
835
|
-
var qi = 61;
|
|
836
|
-
var Gi = 62;
|
|
837
|
-
var Wi = 63;
|
|
838
|
-
var $i = 64;
|
|
839
|
-
var Te = 91;
|
|
840
|
-
var Oe = 93;
|
|
841
|
-
var Qi = 96;
|
|
842
|
-
var Ie = 123;
|
|
843
|
-
var Vi = 124;
|
|
844
|
-
var ke = 125;
|
|
845
|
-
var _ = {};
|
|
846
|
-
_[0] = "\\0", _[7] = "\\a", _[8] = "\\b", _[9] = "\\t", _[10] = "\\n", _[11] = "\\v", _[12] = "\\f", _[13] = "\\r", _[27] = "\\e", _[34] = '\\"', _[92] = "\\\\", _[133] = "\\N", _[160] = "\\_", _[8232] = "\\L", _[8233] = "\\P";
|
|
847
|
-
var Xi = ["y", "Y", "yes", "Yes", "YES", "on", "On", "ON", "n", "N", "no", "No", "NO", "off", "Off", "OFF"];
|
|
848
|
-
var Zi = /^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;
|
|
849
|
-
function zi(e, n) {
|
|
850
|
-
var i, l, r, u, o, f, c;
|
|
851
|
-
if (n === null) return {};
|
|
852
|
-
for (i = {}, l = Object.keys(n), r = 0, u = l.length; r < u; r += 1) o = l[r], f = String(n[o]), o.slice(0, 2) === "!!" && (o = "tag:yaml.org,2002:" + o.slice(2)), c = e.compiledTypeMap.fallback[o], c && Se.call(c.styleAliases, f) && (f = c.styleAliases[f]), i[o] = f;
|
|
853
|
-
return i;
|
|
854
|
-
}
|
|
855
|
-
__name(zi, "zi");
|
|
856
|
-
function Ji(e) {
|
|
857
|
-
var n, i, l;
|
|
858
|
-
if (n = e.toString(16).toUpperCase(), e <= 255) i = "x", l = 2;
|
|
859
|
-
else if (e <= 65535) i = "u", l = 4;
|
|
860
|
-
else if (e <= 4294967295) i = "U", l = 8;
|
|
861
|
-
else throw new w("code point within a string may not be greater than 0xFFFFFFFF");
|
|
862
|
-
return "\\" + i + y.repeat("0", l - n.length) + n;
|
|
863
|
-
}
|
|
864
|
-
__name(Ji, "Ji");
|
|
865
|
-
var er = 1;
|
|
866
|
-
var B = 2;
|
|
867
|
-
function nr(e) {
|
|
868
|
-
this.schema = e.schema || pe, this.indent = Math.max(1, e.indent || 2), this.noArrayIndent = e.noArrayIndent || false, this.skipInvalid = e.skipInvalid || false, this.flowLevel = y.isNothing(e.flowLevel) ? -1 : e.flowLevel, this.styleMap = zi(this.schema, e.styles || null), this.sortKeys = e.sortKeys || false, this.lineWidth = e.lineWidth || 80, this.noRefs = e.noRefs || false, this.noCompatMode = e.noCompatMode || false, this.condenseFlow = e.condenseFlow || false, this.quotingType = e.quotingType === '"' ? B : er, this.forceQuotes = e.forceQuotes || false, this.replacer = typeof e.replacer == "function" ? e.replacer : null, this.implicitTypes = this.schema.compiledImplicit, this.explicitTypes = this.schema.compiledExplicit, this.tag = null, this.result = "", this.duplicates = [], this.usedDuplicates = null;
|
|
869
|
-
}
|
|
870
|
-
__name(nr, "nr");
|
|
871
|
-
function Le(e, n) {
|
|
872
|
-
for (var i = y.repeat(" ", n), l = 0, r = -1, u = "", o, f = e.length; l < f; ) r = e.indexOf(`
|
|
873
|
-
`, l), r === -1 ? (o = e.slice(l), l = f) : (o = e.slice(l, r + 1), l = r + 1), o.length && o !== `
|
|
874
|
-
` && (u += i), u += o;
|
|
875
|
-
return u;
|
|
876
|
-
}
|
|
877
|
-
__name(Le, "Le");
|
|
878
|
-
function ie(e, n) {
|
|
879
|
-
return `
|
|
880
|
-
` + y.repeat(" ", e.indent * n);
|
|
881
|
-
}
|
|
882
|
-
__name(ie, "ie");
|
|
883
|
-
function ir(e, n) {
|
|
884
|
-
var i, l, r;
|
|
885
|
-
for (i = 0, l = e.implicitTypes.length; i < l; i += 1) if (r = e.implicitTypes[i], r.resolve(n)) return true;
|
|
886
|
-
return false;
|
|
887
|
-
}
|
|
888
|
-
__name(ir, "ir");
|
|
889
|
-
function W(e) {
|
|
890
|
-
return e === Mi || e === Ri;
|
|
891
|
-
}
|
|
892
|
-
__name(W, "W");
|
|
893
|
-
function P(e) {
|
|
894
|
-
return 32 <= e && e <= 126 || 161 <= e && e <= 55295 && e !== 8232 && e !== 8233 || 57344 <= e && e <= 65533 && e !== ee || 65536 <= e && e <= 1114111;
|
|
895
|
-
}
|
|
896
|
-
__name(P, "P");
|
|
897
|
-
function Ne(e) {
|
|
898
|
-
return P(e) && e !== ee && e !== Di && e !== Y;
|
|
899
|
-
}
|
|
900
|
-
__name(Ne, "Ne");
|
|
901
|
-
function Re(e, n, i) {
|
|
902
|
-
var l = Ne(e), r = l && !W(e);
|
|
903
|
-
return (i ? l : l && e !== Ee && e !== Te && e !== Oe && e !== Ie && e !== ke) && e !== ne && !(n === G && !r) || Ne(n) && !W(n) && e === ne || n === G && r;
|
|
904
|
-
}
|
|
905
|
-
__name(Re, "Re");
|
|
906
|
-
function rr(e) {
|
|
907
|
-
return P(e) && e !== ee && !W(e) && e !== Ki && e !== Wi && e !== G && e !== Ee && e !== Te && e !== Oe && e !== Ie && e !== ke && e !== ne && e !== ji && e !== Ui && e !== Yi && e !== Vi && e !== qi && e !== Gi && e !== Hi && e !== Bi && e !== Pi && e !== $i && e !== Qi;
|
|
908
|
-
}
|
|
909
|
-
__name(rr, "rr");
|
|
910
|
-
function lr(e) {
|
|
911
|
-
return !W(e) && e !== G;
|
|
912
|
-
}
|
|
913
|
-
__name(lr, "lr");
|
|
914
|
-
function j(e, n) {
|
|
915
|
-
var i = e.charCodeAt(n), l;
|
|
916
|
-
return i >= 55296 && i <= 56319 && n + 1 < e.length && (l = e.charCodeAt(n + 1), l >= 56320 && l <= 57343) ? (i - 55296) * 1024 + l - 56320 + 65536 : i;
|
|
917
|
-
}
|
|
918
|
-
__name(j, "j");
|
|
919
|
-
function De(e) {
|
|
920
|
-
var n = /^\n* /;
|
|
921
|
-
return n.test(e);
|
|
922
|
-
}
|
|
923
|
-
__name(De, "De");
|
|
924
|
-
var Me = 1;
|
|
925
|
-
var re = 2;
|
|
926
|
-
var Ye = 3;
|
|
927
|
-
var Be = 4;
|
|
928
|
-
var D = 5;
|
|
929
|
-
function or(e, n, i, l, r, u, o, f) {
|
|
930
|
-
var c, a = 0, t = null, p = false, d = false, s = l !== -1, x = -1, g = rr(j(e, 0)) && lr(j(e, e.length - 1));
|
|
931
|
-
if (n || o) for (c = 0; c < e.length; a >= 65536 ? c += 2 : c++) {
|
|
932
|
-
if (a = j(e, c), !P(a)) return D;
|
|
933
|
-
g = g && Re(a, t, f), t = a;
|
|
934
|
-
}
|
|
935
|
-
else {
|
|
936
|
-
for (c = 0; c < e.length; a >= 65536 ? c += 2 : c++) {
|
|
937
|
-
if (a = j(e, c), a === Y) p = true, s && (d = d || c - x - 1 > l && e[x + 1] !== " ", x = c);
|
|
938
|
-
else if (!P(a)) return D;
|
|
939
|
-
g = g && Re(a, t, f), t = a;
|
|
940
|
-
}
|
|
941
|
-
d = d || s && c - x - 1 > l && e[x + 1] !== " ";
|
|
942
|
-
}
|
|
943
|
-
return !p && !d ? g && !o && !r(e) ? Me : u === B ? D : re : i > 9 && De(e) ? D : o ? u === B ? D : re : d ? Be : Ye;
|
|
944
|
-
}
|
|
945
|
-
__name(or, "or");
|
|
946
|
-
function ur(e, n, i, l, r) {
|
|
947
|
-
e.dump = function() {
|
|
948
|
-
if (n.length === 0) return e.quotingType === B ? '""' : "''";
|
|
949
|
-
if (!e.noCompatMode && (Xi.indexOf(n) !== -1 || Zi.test(n))) return e.quotingType === B ? '"' + n + '"' : "'" + n + "'";
|
|
950
|
-
var u = e.indent * Math.max(1, i), o = e.lineWidth === -1 ? -1 : Math.max(Math.min(e.lineWidth, 40), e.lineWidth - u), f = l || e.flowLevel > -1 && i >= e.flowLevel;
|
|
951
|
-
function c(a) {
|
|
952
|
-
return ir(e, a);
|
|
953
|
-
}
|
|
954
|
-
__name(c, "c");
|
|
955
|
-
switch (or(n, f, e.indent, o, c, e.quotingType, e.forceQuotes && !l, r)) {
|
|
956
|
-
case Me:
|
|
957
|
-
return n;
|
|
958
|
-
case re:
|
|
959
|
-
return "'" + n.replace(/'/g, "''") + "'";
|
|
960
|
-
case Ye:
|
|
961
|
-
return "|" + Pe(n, e.indent) + je(Le(n, u));
|
|
962
|
-
case Be:
|
|
963
|
-
return ">" + Pe(n, e.indent) + je(Le(fr(n, o), u));
|
|
964
|
-
case D:
|
|
965
|
-
return '"' + cr(n) + '"';
|
|
966
|
-
default:
|
|
967
|
-
throw new w("impossible error: invalid scalar style");
|
|
968
|
-
}
|
|
969
|
-
}();
|
|
970
|
-
}
|
|
971
|
-
__name(ur, "ur");
|
|
972
|
-
function Pe(e, n) {
|
|
973
|
-
var i = De(e) ? String(n) : "", l = e[e.length - 1] === `
|
|
974
|
-
`, r = l && (e[e.length - 2] === `
|
|
975
|
-
` || e === `
|
|
976
|
-
`), u = r ? "+" : l ? "" : "-";
|
|
977
|
-
return i + u + `
|
|
978
|
-
`;
|
|
979
|
-
}
|
|
980
|
-
__name(Pe, "Pe");
|
|
981
|
-
function je(e) {
|
|
982
|
-
return e[e.length - 1] === `
|
|
983
|
-
` ? e.slice(0, -1) : e;
|
|
984
|
-
}
|
|
985
|
-
__name(je, "je");
|
|
986
|
-
function fr(e, n) {
|
|
987
|
-
for (var i = /(\n+)([^\n]*)/g, l = function() {
|
|
988
|
-
var a = e.indexOf(`
|
|
989
|
-
`);
|
|
990
|
-
return a = a !== -1 ? a : e.length, i.lastIndex = a, He(e.slice(0, a), n);
|
|
991
|
-
}(), r = e[0] === `
|
|
992
|
-
` || e[0] === " ", u, o; o = i.exec(e); ) {
|
|
993
|
-
var f = o[1], c = o[2];
|
|
994
|
-
u = c[0] === " ", l += f + (!r && !u && c !== "" ? `
|
|
995
|
-
` : "") + He(c, n), r = u;
|
|
996
|
-
}
|
|
997
|
-
return l;
|
|
998
|
-
}
|
|
999
|
-
__name(fr, "fr");
|
|
1000
|
-
function He(e, n) {
|
|
1001
|
-
if (e === "" || e[0] === " ") return e;
|
|
1002
|
-
for (var i = / [^ ]/g, l, r = 0, u, o = 0, f = 0, c = ""; l = i.exec(e); ) f = l.index, f - r > n && (u = o > r ? o : f, c += `
|
|
1003
|
-
` + e.slice(r, u), r = u + 1), o = f;
|
|
1004
|
-
return c += `
|
|
1005
|
-
`, e.length - r > n && o > r ? c += e.slice(r, o) + `
|
|
1006
|
-
` + e.slice(o + 1) : c += e.slice(r), c.slice(1);
|
|
1007
|
-
}
|
|
1008
|
-
__name(He, "He");
|
|
1009
|
-
function cr(e) {
|
|
1010
|
-
for (var n = "", i = 0, l, r = 0; r < e.length; i >= 65536 ? r += 2 : r++) i = j(e, r), l = _[i], !l && P(i) ? (n += e[r], i >= 65536 && (n += e[r + 1])) : n += l || Ji(i);
|
|
1011
|
-
return n;
|
|
1012
|
-
}
|
|
1013
|
-
__name(cr, "cr");
|
|
1014
|
-
function ar(e, n, i) {
|
|
1015
|
-
var l = "", r = e.tag, u, o, f;
|
|
1016
|
-
for (u = 0, o = i.length; u < o; u += 1) f = i[u], e.replacer && (f = e.replacer.call(i, String(u), f)), (E(e, n, f, false, false) || typeof f > "u" && E(e, n, null, false, false)) && (l !== "" && (l += "," + (e.condenseFlow ? "" : " ")), l += e.dump);
|
|
1017
|
-
e.tag = r, e.dump = "[" + l + "]";
|
|
1018
|
-
}
|
|
1019
|
-
__name(ar, "ar");
|
|
1020
|
-
function Ue(e, n, i, l) {
|
|
1021
|
-
var r = "", u = e.tag, o, f, c;
|
|
1022
|
-
for (o = 0, f = i.length; o < f; o += 1) c = i[o], e.replacer && (c = e.replacer.call(i, String(o), c)), (E(e, n + 1, c, true, true, false, true) || typeof c > "u" && E(e, n + 1, null, true, true, false, true)) && ((!l || r !== "") && (r += ie(e, n)), e.dump && Y === e.dump.charCodeAt(0) ? r += "-" : r += "- ", r += e.dump);
|
|
1023
|
-
e.tag = u, e.dump = r || "[]";
|
|
1024
|
-
}
|
|
1025
|
-
__name(Ue, "Ue");
|
|
1026
|
-
function pr(e, n, i) {
|
|
1027
|
-
var l = "", r = e.tag, u = Object.keys(i), o, f, c, a, t;
|
|
1028
|
-
for (o = 0, f = u.length; o < f; o += 1) t = "", l !== "" && (t += ", "), e.condenseFlow && (t += '"'), c = u[o], a = i[c], e.replacer && (a = e.replacer.call(i, c, a)), E(e, n, c, false, false) && (e.dump.length > 1024 && (t += "? "), t += e.dump + (e.condenseFlow ? '"' : "") + ":" + (e.condenseFlow ? "" : " "), E(e, n, a, false, false) && (t += e.dump, l += t));
|
|
1029
|
-
e.tag = r, e.dump = "{" + l + "}";
|
|
1030
|
-
}
|
|
1031
|
-
__name(pr, "pr");
|
|
1032
|
-
function tr(e, n, i, l) {
|
|
1033
|
-
var r = "", u = e.tag, o = Object.keys(i), f, c, a, t, p, d;
|
|
1034
|
-
if (e.sortKeys === true) o.sort();
|
|
1035
|
-
else if (typeof e.sortKeys == "function") o.sort(e.sortKeys);
|
|
1036
|
-
else if (e.sortKeys) throw new w("sortKeys must be a boolean or a function");
|
|
1037
|
-
for (f = 0, c = o.length; f < c; f += 1) d = "", (!l || r !== "") && (d += ie(e, n)), a = o[f], t = i[a], e.replacer && (t = e.replacer.call(i, a, t)), E(e, n + 1, a, true, true, true) && (p = e.tag !== null && e.tag !== "?" || e.dump && e.dump.length > 1024, p && (e.dump && Y === e.dump.charCodeAt(0) ? d += "?" : d += "? "), d += e.dump, p && (d += ie(e, n)), E(e, n + 1, t, true, p) && (e.dump && Y === e.dump.charCodeAt(0) ? d += ":" : d += ": ", d += e.dump, r += d));
|
|
1038
|
-
e.tag = u, e.dump = r || "{}";
|
|
1039
|
-
}
|
|
1040
|
-
__name(tr, "tr");
|
|
1041
|
-
function Ke(e, n, i) {
|
|
1042
|
-
var l, r, u, o, f, c;
|
|
1043
|
-
for (r = i ? e.explicitTypes : e.implicitTypes, u = 0, o = r.length; u < o; u += 1) if (f = r[u], (f.instanceOf || f.predicate) && (!f.instanceOf || typeof n == "object" && n instanceof f.instanceOf) && (!f.predicate || f.predicate(n))) {
|
|
1044
|
-
if (i ? f.multi && f.representName ? e.tag = f.representName(n) : e.tag = f.tag : e.tag = "?", f.represent) {
|
|
1045
|
-
if (c = e.styleMap[f.tag] || f.defaultStyle, Fe.call(f.represent) === "[object Function]") l = f.represent(n, c);
|
|
1046
|
-
else if (Se.call(f.represent, c)) l = f.represent[c](n, c);
|
|
1047
|
-
else throw new w("!<" + f.tag + '> tag resolver accepts not "' + c + '" style');
|
|
1048
|
-
e.dump = l;
|
|
1049
|
-
}
|
|
1050
|
-
return true;
|
|
1051
|
-
}
|
|
1052
|
-
return false;
|
|
1053
|
-
}
|
|
1054
|
-
__name(Ke, "Ke");
|
|
1055
|
-
function E(e, n, i, l, r, u, o) {
|
|
1056
|
-
e.tag = null, e.dump = i, Ke(e, i, false) || Ke(e, i, true);
|
|
1057
|
-
var f = Fe.call(e.dump), c = l, a;
|
|
1058
|
-
l && (l = e.flowLevel < 0 || e.flowLevel > n);
|
|
1059
|
-
var t = f === "[object Object]" || f === "[object Array]", p, d;
|
|
1060
|
-
if (t && (p = e.duplicates.indexOf(i), d = p !== -1), (e.tag !== null && e.tag !== "?" || d || e.indent !== 2 && n > 0) && (r = false), d && e.usedDuplicates[p]) e.dump = "*ref_" + p;
|
|
1061
|
-
else {
|
|
1062
|
-
if (t && d && !e.usedDuplicates[p] && (e.usedDuplicates[p] = true), f === "[object Object]") l && Object.keys(e.dump).length !== 0 ? (tr(e, n, e.dump, r), d && (e.dump = "&ref_" + p + e.dump)) : (pr(e, n, e.dump), d && (e.dump = "&ref_" + p + " " + e.dump));
|
|
1063
|
-
else if (f === "[object Array]") l && e.dump.length !== 0 ? (e.noArrayIndent && !o && n > 0 ? Ue(e, n - 1, e.dump, r) : Ue(e, n, e.dump, r), d && (e.dump = "&ref_" + p + e.dump)) : (ar(e, n, e.dump), d && (e.dump = "&ref_" + p + " " + e.dump));
|
|
1064
|
-
else if (f === "[object String]") e.tag !== "?" && ur(e, e.dump, n, u, c);
|
|
1065
|
-
else {
|
|
1066
|
-
if (f === "[object Undefined]") return false;
|
|
1067
|
-
if (e.skipInvalid) return false;
|
|
1068
|
-
throw new w("unacceptable kind of an object to dump " + f);
|
|
1069
|
-
}
|
|
1070
|
-
e.tag !== null && e.tag !== "?" && (a = encodeURI(e.tag[0] === "!" ? e.tag.slice(1) : e.tag).replace(/!/g, "%21"), e.tag[0] === "!" ? a = "!" + a : a.slice(0, 18) === "tag:yaml.org,2002:" ? a = "!!" + a.slice(18) : a = "!<" + a + ">", e.dump = a + " " + e.dump);
|
|
1071
|
-
}
|
|
1072
|
-
return true;
|
|
1073
|
-
}
|
|
1074
|
-
__name(E, "E");
|
|
1075
|
-
function hr(e, n) {
|
|
1076
|
-
var i = [], l = [], r, u;
|
|
1077
|
-
for (le(e, i, l), r = 0, u = l.length; r < u; r += 1) n.duplicates.push(i[l[r]]);
|
|
1078
|
-
n.usedDuplicates = new Array(u);
|
|
1079
|
-
}
|
|
1080
|
-
__name(hr, "hr");
|
|
1081
|
-
function le(e, n, i) {
|
|
1082
|
-
var l, r, u;
|
|
1083
|
-
if (e !== null && typeof e == "object") if (r = n.indexOf(e), r !== -1) i.indexOf(r) === -1 && i.push(r);
|
|
1084
|
-
else if (n.push(e), Array.isArray(e)) for (r = 0, u = e.length; r < u; r += 1) le(e[r], n, i);
|
|
1085
|
-
else for (l = Object.keys(e), r = 0, u = l.length; r < u; r += 1) le(e[l[r]], n, i);
|
|
1086
|
-
}
|
|
1087
|
-
__name(le, "le");
|
|
1088
|
-
function dr(e, n) {
|
|
1089
|
-
n = n || {};
|
|
1090
|
-
var i = new nr(n);
|
|
1091
|
-
i.noRefs || hr(e, i);
|
|
1092
|
-
var l = e;
|
|
1093
|
-
return i.replacer && (l = i.replacer.call({ "": l }, "", l)), E(i, 0, l, true, true) ? i.dump + `
|
|
1094
|
-
` : "";
|
|
1095
|
-
}
|
|
1096
|
-
__name(dr, "dr");
|
|
1097
|
-
var sr = dr;
|
|
1098
|
-
var xr = { dump: sr };
|
|
1099
|
-
var mr = Ni.load;
|
|
1100
|
-
var gr = xr.dump;
|
|
1101
|
-
function Ar(e, n) {
|
|
1102
|
-
const i = mr(e, n);
|
|
1103
|
-
return N(e, i, n), i;
|
|
1104
|
-
}
|
|
1105
|
-
__name(Ar, "Ar");
|
|
1106
|
-
function vr(e, n) {
|
|
1107
|
-
const i = C(e, { preserveIndentation: false }), l = typeof i.indent == "string" ? i.indent.length : i.indent, r = gr(e, { indent: l, ...n });
|
|
1108
|
-
return i.whitespace.start + r.trim() + i.whitespace.end;
|
|
1109
|
-
}
|
|
1110
|
-
__name(vr, "vr");
|
|
1111
|
-
|
|
1112
|
-
export {
|
|
1113
|
-
Ar,
|
|
1114
|
-
vr
|
|
1115
|
-
};
|
|
1116
|
-
/*! Bundled license information:
|
|
1117
|
-
|
|
1118
|
-
confbox/dist/yaml.mjs:
|
|
1119
|
-
(*! js-yaml 4.1.0 https://github.com/nodeca/js-yaml @license MIT *)
|
|
1120
|
-
*/
|