@styleframe/cli 1.0.2 → 1.0.3

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.
@@ -0,0 +1,686 @@
1
+ import { N as N$1 } from "./build-DMySNOvV.js";
2
+ /*! js-yaml 4.1.0 https://github.com/nodeca/js-yaml @license MIT */
3
+ function oe(e) {
4
+ return typeof e > "u" || e === null;
5
+ }
6
+ function Ge(e) {
7
+ return typeof e == "object" && e !== null;
8
+ }
9
+ function We(e) {
10
+ return Array.isArray(e) ? e : oe(e) ? [] : [e];
11
+ }
12
+ function $e(e, n) {
13
+ var i, l, r, u;
14
+ if (n) for (u = Object.keys(n), i = 0, l = u.length; i < l; i += 1) r = u[i], e[r] = n[r];
15
+ return e;
16
+ }
17
+ function Qe(e, n) {
18
+ var i = "", l;
19
+ for (l = 0; l < n; l += 1) i += e;
20
+ return i;
21
+ }
22
+ function Ve(e) {
23
+ return e === 0 && Number.NEGATIVE_INFINITY === 1 / e;
24
+ }
25
+ var Xe = oe, Ze = Ge, ze = We, Je = Qe, en = Ve, nn = $e, y = { isNothing: Xe, isObject: Ze, toArray: ze, repeat: Je, isNegativeZero: en, extend: nn };
26
+ function ue(e, n) {
27
+ var i = "", l = e.reason || "(unknown reason)";
28
+ 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 += `
29
+
30
+ ` + e.mark.snippet), l + " " + i) : l;
31
+ }
32
+ function M(e, n) {
33
+ 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 || "";
34
+ }
35
+ M.prototype = Object.create(Error.prototype), M.prototype.constructor = M, M.prototype.toString = function(n) {
36
+ return this.name + ": " + ue(this, n);
37
+ };
38
+ var w = M;
39
+ function $(e, n, i, l, r) {
40
+ var u = "", o = "", f = Math.floor(r / 2) - 1;
41
+ 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, "→") + o, pos: l - n + u.length };
42
+ }
43
+ function Q(e, n) {
44
+ return y.repeat(" ", n - e.length) + e;
45
+ }
46
+ function rn(e, n) {
47
+ if (n = Object.create(n || null), !e.buffer) return null;
48
+ 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);
49
+ 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);
50
+ o < 0 && (o = l.length - 1);
51
+ var f = "", c, a, t = Math.min(e.line + n.linesAfter, r.length).toString().length, p = n.maxLength - (n.indent + t + 3);
52
+ 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 + `
53
+ ` + f;
54
+ for (a = $(e.buffer, l[o], r[o], e.position, p), f += y.repeat(" ", n.indent) + Q((e.line + 1).toString(), t) + " | " + a.str + `
55
+ `, f += y.repeat("-", n.indent + t + 3 + a.pos) + `^
56
+ `, 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 + `
57
+ `;
58
+ return f.replace(/\n$/, "");
59
+ }
60
+ var ln = rn, on = ["kind", "multi", "resolve", "construct", "instanceOf", "predicate", "represent", "representName", "defaultStyle", "styleAliases"], un = ["scalar", "sequence", "mapping"];
61
+ function fn(e) {
62
+ var n = {};
63
+ return e !== null && Object.keys(e).forEach(function(i) {
64
+ e[i].forEach(function(l) {
65
+ n[String(l)] = i;
66
+ });
67
+ }), n;
68
+ }
69
+ function cn(e, n) {
70
+ if (n = n || {}, Object.keys(n).forEach(function(i) {
71
+ if (on.indexOf(i) === -1) throw new w('Unknown option "' + i + '" is met in definition of "' + e + '" YAML type.');
72
+ }), this.options = n, this.tag = e, this.kind = n.kind || null, this.resolve = n.resolve || function() {
73
+ return true;
74
+ }, this.construct = n.construct || function(i) {
75
+ return i;
76
+ }, 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 = fn(n.styleAliases || null), un.indexOf(this.kind) === -1) throw new w('Unknown kind "' + this.kind + '" is specified for "' + e + '" YAML type.');
77
+ }
78
+ var C = cn;
79
+ function fe(e, n) {
80
+ var i = [];
81
+ return e[n].forEach(function(l) {
82
+ var r = i.length;
83
+ i.forEach(function(u, o) {
84
+ u.tag === l.tag && u.kind === l.kind && u.multi === l.multi && (r = o);
85
+ }), i[r] = l;
86
+ }), i;
87
+ }
88
+ function an() {
89
+ var e = { scalar: {}, sequence: {}, mapping: {}, fallback: {}, multi: { scalar: [], sequence: [], mapping: [], fallback: [] } }, n, i;
90
+ function l(r) {
91
+ r.multi ? (e.multi[r.kind].push(r), e.multi.fallback.push(r)) : e[r.kind][r.tag] = e.fallback[r.tag] = r;
92
+ }
93
+ for (n = 0, i = arguments.length; n < i; n += 1) arguments[n].forEach(l);
94
+ return e;
95
+ }
96
+ function V(e) {
97
+ return this.extend(e);
98
+ }
99
+ V.prototype.extend = function(n) {
100
+ var i = [], l = [];
101
+ if (n instanceof C) l.push(n);
102
+ else if (Array.isArray(n)) l = l.concat(n);
103
+ 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));
104
+ else throw new w("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })");
105
+ i.forEach(function(u) {
106
+ if (!(u instanceof C)) throw new w("Specified list of YAML types (or a single Type object) contains a non-Type object.");
107
+ 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.");
108
+ 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.");
109
+ }), l.forEach(function(u) {
110
+ if (!(u instanceof C)) throw new w("Specified list of YAML types (or a single Type object) contains a non-Type object.");
111
+ });
112
+ var r = Object.create(V.prototype);
113
+ 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 = an(r.compiledImplicit, r.compiledExplicit), r;
114
+ };
115
+ var pn = V, tn = new C("tag:yaml.org,2002:str", { kind: "scalar", construct: function(e) {
116
+ return e !== null ? e : "";
117
+ } }), hn = new C("tag:yaml.org,2002:seq", { kind: "sequence", construct: function(e) {
118
+ return e !== null ? e : [];
119
+ } }), dn = new C("tag:yaml.org,2002:map", { kind: "mapping", construct: function(e) {
120
+ return e !== null ? e : {};
121
+ } }), sn = new pn({ explicit: [tn, hn, dn] });
122
+ function xn(e) {
123
+ if (e === null) return true;
124
+ var n = e.length;
125
+ return n === 1 && e === "~" || n === 4 && (e === "null" || e === "Null" || e === "NULL");
126
+ }
127
+ function mn() {
128
+ return null;
129
+ }
130
+ function gn(e) {
131
+ return e === null;
132
+ }
133
+ var An = new C("tag:yaml.org,2002:null", { kind: "scalar", resolve: xn, construct: mn, predicate: gn, represent: { canonical: function() {
134
+ return "~";
135
+ }, lowercase: function() {
136
+ return "null";
137
+ }, uppercase: function() {
138
+ return "NULL";
139
+ }, camelcase: function() {
140
+ return "Null";
141
+ }, empty: function() {
142
+ return "";
143
+ } }, defaultStyle: "lowercase" });
144
+ function vn(e) {
145
+ if (e === null) return false;
146
+ var n = e.length;
147
+ return n === 4 && (e === "true" || e === "True" || e === "TRUE") || n === 5 && (e === "false" || e === "False" || e === "FALSE");
148
+ }
149
+ function yn(e) {
150
+ return e === "true" || e === "True" || e === "TRUE";
151
+ }
152
+ function Cn(e) {
153
+ return Object.prototype.toString.call(e) === "[object Boolean]";
154
+ }
155
+ var _n = new C("tag:yaml.org,2002:bool", { kind: "scalar", resolve: vn, construct: yn, predicate: Cn, represent: { lowercase: function(e) {
156
+ return e ? "true" : "false";
157
+ }, uppercase: function(e) {
158
+ return e ? "TRUE" : "FALSE";
159
+ }, camelcase: function(e) {
160
+ return e ? "True" : "False";
161
+ } }, defaultStyle: "lowercase" });
162
+ function wn(e) {
163
+ return 48 <= e && e <= 57 || 65 <= e && e <= 70 || 97 <= e && e <= 102;
164
+ }
165
+ function Fn(e) {
166
+ return 48 <= e && e <= 55;
167
+ }
168
+ function bn(e) {
169
+ return 48 <= e && e <= 57;
170
+ }
171
+ function Sn(e) {
172
+ if (e === null) return false;
173
+ var n = e.length, i = 0, l = false, r;
174
+ if (!n) return false;
175
+ if (r = e[i], (r === "-" || r === "+") && (r = e[++i]), r === "0") {
176
+ if (i + 1 === n) return true;
177
+ if (r = e[++i], r === "b") {
178
+ for (i++; i < n; i++) if (r = e[i], r !== "_") {
179
+ if (r !== "0" && r !== "1") return false;
180
+ l = true;
181
+ }
182
+ return l && r !== "_";
183
+ }
184
+ if (r === "x") {
185
+ for (i++; i < n; i++) if (r = e[i], r !== "_") {
186
+ if (!wn(e.charCodeAt(i))) return false;
187
+ l = true;
188
+ }
189
+ return l && r !== "_";
190
+ }
191
+ if (r === "o") {
192
+ for (i++; i < n; i++) if (r = e[i], r !== "_") {
193
+ if (!Fn(e.charCodeAt(i))) return false;
194
+ l = true;
195
+ }
196
+ return l && r !== "_";
197
+ }
198
+ }
199
+ if (r === "_") return false;
200
+ for (; i < n; i++) if (r = e[i], r !== "_") {
201
+ if (!bn(e.charCodeAt(i))) return false;
202
+ l = true;
203
+ }
204
+ return !(!l || r === "_");
205
+ }
206
+ function En(e) {
207
+ var n = e, i = 1, l;
208
+ 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;
209
+ if (l === "0") {
210
+ if (n[1] === "b") return i * parseInt(n.slice(2), 2);
211
+ if (n[1] === "x") return i * parseInt(n.slice(2), 16);
212
+ if (n[1] === "o") return i * parseInt(n.slice(2), 8);
213
+ }
214
+ return i * parseInt(n, 10);
215
+ }
216
+ function Tn(e) {
217
+ return Object.prototype.toString.call(e) === "[object Number]" && e % 1 === 0 && !y.isNegativeZero(e);
218
+ }
219
+ var On = new C("tag:yaml.org,2002:int", { kind: "scalar", resolve: Sn, construct: En, predicate: Tn, represent: { binary: function(e) {
220
+ return e >= 0 ? "0b" + e.toString(2) : "-0b" + e.toString(2).slice(1);
221
+ }, octal: function(e) {
222
+ return e >= 0 ? "0o" + e.toString(8) : "-0o" + e.toString(8).slice(1);
223
+ }, decimal: function(e) {
224
+ return e.toString(10);
225
+ }, hexadecimal: function(e) {
226
+ return e >= 0 ? "0x" + e.toString(16).toUpperCase() : "-0x" + e.toString(16).toUpperCase().slice(1);
227
+ } }, defaultStyle: "decimal", styleAliases: { binary: [2, "bin"], octal: [8, "oct"], decimal: [10, "dec"], hexadecimal: [16, "hex"] } }), In = new RegExp("^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");
228
+ function kn(e) {
229
+ return !(e === null || !In.test(e) || e[e.length - 1] === "_");
230
+ }
231
+ function Ln(e) {
232
+ var n, i;
233
+ 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);
234
+ }
235
+ var Nn = /^[-+]?[0-9]+e/;
236
+ function Rn(e, n) {
237
+ var i;
238
+ if (isNaN(e)) switch (n) {
239
+ case "lowercase":
240
+ return ".nan";
241
+ case "uppercase":
242
+ return ".NAN";
243
+ case "camelcase":
244
+ return ".NaN";
245
+ }
246
+ else if (Number.POSITIVE_INFINITY === e) switch (n) {
247
+ case "lowercase":
248
+ return ".inf";
249
+ case "uppercase":
250
+ return ".INF";
251
+ case "camelcase":
252
+ return ".Inf";
253
+ }
254
+ else if (Number.NEGATIVE_INFINITY === e) switch (n) {
255
+ case "lowercase":
256
+ return "-.inf";
257
+ case "uppercase":
258
+ return "-.INF";
259
+ case "camelcase":
260
+ return "-.Inf";
261
+ }
262
+ else if (y.isNegativeZero(e)) return "-0.0";
263
+ return i = e.toString(10), Nn.test(i) ? i.replace("e", ".e") : i;
264
+ }
265
+ function Dn(e) {
266
+ return Object.prototype.toString.call(e) === "[object Number]" && (e % 1 !== 0 || y.isNegativeZero(e));
267
+ }
268
+ var Mn = new C("tag:yaml.org,2002:float", { kind: "scalar", resolve: kn, construct: Ln, predicate: Dn, represent: Rn, defaultStyle: "lowercase" }), Yn = sn.extend({ implicit: [An, _n, On, Mn] }), Bn = Yn, ce = new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"), 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]))?))?$");
269
+ function Pn(e) {
270
+ return e === null ? false : ce.exec(e) !== null || ae.exec(e) !== null;
271
+ }
272
+ function jn(e) {
273
+ var n, i, l, r, u, o, f, c = 0, a = null, t, p, d;
274
+ if (n = ce.exec(e), n === null && (n = ae.exec(e)), n === null) throw new Error("Date resolve error");
275
+ if (i = +n[1], l = +n[2] - 1, r = +n[3], !n[4]) return new Date(Date.UTC(i, l, r));
276
+ if (u = +n[4], o = +n[5], f = +n[6], n[7]) {
277
+ for (c = n[7].slice(0, 3); c.length < 3; ) c += "0";
278
+ c = +c;
279
+ }
280
+ 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;
281
+ }
282
+ function Hn(e) {
283
+ return e.toISOString();
284
+ }
285
+ var Un = new C("tag:yaml.org,2002:timestamp", { kind: "scalar", resolve: Pn, construct: jn, instanceOf: Date, represent: Hn });
286
+ function Kn(e) {
287
+ return e === "<<" || e === null;
288
+ }
289
+ var qn = new C("tag:yaml.org,2002:merge", { kind: "scalar", resolve: Kn }), X = `ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
290
+ \r`;
291
+ function Gn(e) {
292
+ if (e === null) return false;
293
+ var n, i, l = 0, r = e.length, u = X;
294
+ for (i = 0; i < r; i++) if (n = u.indexOf(e.charAt(i)), !(n > 64)) {
295
+ if (n < 0) return false;
296
+ l += 6;
297
+ }
298
+ return l % 8 === 0;
299
+ }
300
+ function Wn(e) {
301
+ var n, i, l = e.replace(/[\r\n=]/g, ""), r = l.length, u = X, o = 0, f = [];
302
+ 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));
303
+ 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);
304
+ }
305
+ function $n(e) {
306
+ var n = "", i = 0, l, r, u = e.length, o = X;
307
+ 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];
308
+ 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;
309
+ }
310
+ function Qn(e) {
311
+ return Object.prototype.toString.call(e) === "[object Uint8Array]";
312
+ }
313
+ var Vn = new C("tag:yaml.org,2002:binary", { kind: "scalar", resolve: Gn, construct: Wn, predicate: Qn, represent: $n }), Xn = Object.prototype.hasOwnProperty, Zn = Object.prototype.toString;
314
+ function zn(e) {
315
+ if (e === null) return true;
316
+ var n = [], i, l, r, u, o, f = e;
317
+ for (i = 0, l = f.length; i < l; i += 1) {
318
+ if (r = f[i], o = false, Zn.call(r) !== "[object Object]") return false;
319
+ for (u in r) if (Xn.call(r, u)) if (!o) o = true;
320
+ else return false;
321
+ if (!o) return false;
322
+ if (n.indexOf(u) === -1) n.push(u);
323
+ else return false;
324
+ }
325
+ return true;
326
+ }
327
+ function Jn(e) {
328
+ return e !== null ? e : [];
329
+ }
330
+ var ei = new C("tag:yaml.org,2002:omap", { kind: "sequence", resolve: zn, construct: Jn }), ni = Object.prototype.toString;
331
+ function ii(e) {
332
+ if (e === null) return true;
333
+ var n, i, l, r, u, o = e;
334
+ for (u = new Array(o.length), n = 0, i = o.length; n < i; n += 1) {
335
+ if (l = o[n], ni.call(l) !== "[object Object]" || (r = Object.keys(l), r.length !== 1)) return false;
336
+ u[n] = [r[0], l[r[0]]];
337
+ }
338
+ return true;
339
+ }
340
+ function ri(e) {
341
+ if (e === null) return [];
342
+ var n, i, l, r, u, o = e;
343
+ 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]]];
344
+ return u;
345
+ }
346
+ var li = new C("tag:yaml.org,2002:pairs", { kind: "sequence", resolve: ii, construct: ri }), oi = Object.prototype.hasOwnProperty;
347
+ function ui(e) {
348
+ if (e === null) return true;
349
+ var n, i = e;
350
+ for (n in i) if (oi.call(i, n) && i[n] !== null) return false;
351
+ return true;
352
+ }
353
+ function fi(e) {
354
+ return e !== null ? e : {};
355
+ }
356
+ var ci = new C("tag:yaml.org,2002:set", { kind: "mapping", resolve: ui, construct: fi }), pe = Bn.extend({ implicit: [Un, qn], explicit: [Vn, ei, li, ci] }), T = Object.prototype.hasOwnProperty, H = 1, te = 2, he = 3, U = 4, Z = 1, ai = 2, de = 3, pi = /[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/, ti = /[\x85\u2028\u2029]/, hi = /[,\[\]\{\}]/, se = /^(?:!|!!|![a-z\-]+!)$/i, xe = /^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;
357
+ function me(e) {
358
+ return Object.prototype.toString.call(e);
359
+ }
360
+ function S(e) {
361
+ return e === 10 || e === 13;
362
+ }
363
+ function I(e) {
364
+ return e === 9 || e === 32;
365
+ }
366
+ function F(e) {
367
+ return e === 9 || e === 32 || e === 10 || e === 13;
368
+ }
369
+ function k(e) {
370
+ return e === 44 || e === 91 || e === 93 || e === 123 || e === 125;
371
+ }
372
+ function di(e) {
373
+ var n;
374
+ return 48 <= e && e <= 57 ? e - 48 : (n = e | 32, 97 <= n && n <= 102 ? n - 97 + 10 : -1);
375
+ }
376
+ function si(e) {
377
+ return e === 120 ? 2 : e === 117 ? 4 : e === 85 ? 8 : 0;
378
+ }
379
+ function xi(e) {
380
+ return 48 <= e && e <= 57 ? e - 48 : -1;
381
+ }
382
+ function ge(e) {
383
+ return e === 48 ? "\0" : e === 97 ? "\x07" : e === 98 ? "\b" : e === 116 || e === 9 ? " " : e === 110 ? `
384
+ ` : e === 118 ? "\v" : e === 102 ? "\f" : e === 114 ? "\r" : e === 101 ? "\x1B" : e === 32 ? " " : e === 34 ? '"' : e === 47 ? "/" : e === 92 ? "\\" : e === 78 ? "…" : e === 95 ? " " : e === 76 ? "\u2028" : e === 80 ? "\u2029" : "";
385
+ }
386
+ function mi(e) {
387
+ return e <= 65535 ? String.fromCharCode(e) : String.fromCharCode((e - 65536 >> 10) + 55296, (e - 65536 & 1023) + 56320);
388
+ }
389
+ for (var Ae = new Array(256), ve = new Array(256), L = 0; L < 256; L++) Ae[L] = ge(L) ? 1 : 0, ve[L] = ge(L);
390
+ function gi(e, n) {
391
+ 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 = [];
392
+ }
393
+ function ye(e, n) {
394
+ var i = { name: e.filename, buffer: e.input.slice(0, -1), position: e.position, line: e.line, column: e.position - e.lineStart };
395
+ return i.snippet = ln(i), new w(n, i);
396
+ }
397
+ function h(e, n) {
398
+ throw ye(e, n);
399
+ }
400
+ function K(e, n) {
401
+ e.onWarning && e.onWarning.call(null, ye(e, n));
402
+ }
403
+ var Ce = { YAML: function(n, i, l) {
404
+ var r, u, o;
405
+ 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");
406
+ }, TAG: function(n, i, l) {
407
+ var r, u;
408
+ 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");
409
+ try {
410
+ u = decodeURIComponent(u);
411
+ } catch {
412
+ h(n, "tag prefix is malformed: " + u);
413
+ }
414
+ n.tagMap[r] = u;
415
+ } };
416
+ function O(e, n, i, l) {
417
+ var r, u, o, f;
418
+ if (n < i) {
419
+ 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");
420
+ else pi.test(f) && h(e, "the stream contains non-printable characters");
421
+ e.result += f;
422
+ }
423
+ }
424
+ function _e(e, n, i, l) {
425
+ var r, u, o, f;
426
+ 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);
427
+ }
428
+ function N(e, n, i, l, r, u, o, f, c) {
429
+ var a, t;
430
+ 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]");
431
+ 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);
432
+ else _e(e, n, u, i);
433
+ 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];
434
+ return n;
435
+ }
436
+ function z(e) {
437
+ var n;
438
+ 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;
439
+ }
440
+ function v(e, n, i) {
441
+ for (var l = 0, r = e.input.charCodeAt(e.position); r !== 0; ) {
442
+ for (; I(r); ) r === 9 && e.firstTabInLine === -1 && (e.firstTabInLine = e.position), r = e.input.charCodeAt(++e.position);
443
+ if (n && r === 35) do
444
+ r = e.input.charCodeAt(++e.position);
445
+ while (r !== 10 && r !== 13 && r !== 0);
446
+ 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);
447
+ else break;
448
+ }
449
+ return i !== -1 && l !== 0 && e.lineIndent < i && K(e, "deficient indentation"), l;
450
+ }
451
+ function q(e) {
452
+ var n = e.position, i;
453
+ 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 || F(i)));
454
+ }
455
+ function J(e, n) {
456
+ n === 1 ? e.result += " " : n > 1 && (e.result += y.repeat(`
457
+ `, n - 1));
458
+ }
459
+ function Ai(e, n, i) {
460
+ var l, r, u, o, f, c, a, t, p = e.kind, d = e.result, s;
461
+ if (s = e.input.charCodeAt(e.position), F(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), F(r) || i && k(r))) return false;
462
+ for (e.kind = "scalar", e.result = "", u = o = e.position, f = false; s !== 0; ) {
463
+ if (s === 58) {
464
+ if (r = e.input.charCodeAt(e.position + 1), F(r) || i && k(r)) break;
465
+ } else if (s === 35) {
466
+ if (l = e.input.charCodeAt(e.position - 1), F(l)) break;
467
+ } else {
468
+ if (e.position === e.lineStart && q(e) || i && k(s)) break;
469
+ if (S(s)) if (c = e.line, a = e.lineStart, t = e.lineIndent, v(e, false, -1), e.lineIndent >= n) {
470
+ f = true, s = e.input.charCodeAt(e.position);
471
+ continue;
472
+ } else {
473
+ e.position = o, e.line = c, e.lineStart = a, e.lineIndent = t;
474
+ break;
475
+ }
476
+ }
477
+ 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);
478
+ }
479
+ return O(e, u, o, false), e.result ? true : (e.kind = p, e.result = d, false);
480
+ }
481
+ function vi(e, n) {
482
+ var i, l, r;
483
+ if (i = e.input.charCodeAt(e.position), i !== 39) return false;
484
+ 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;
485
+ else return true;
486
+ 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);
487
+ h(e, "unexpected end of the stream within a single quoted scalar");
488
+ }
489
+ function yi(e, n) {
490
+ var i, l, r, u, o, f;
491
+ if (f = e.input.charCodeAt(e.position), f !== 34) return false;
492
+ for (e.kind = "scalar", e.result = "", e.position++, i = l = e.position; (f = e.input.charCodeAt(e.position)) !== 0; ) {
493
+ if (f === 34) return O(e, i, e.position, true), e.position++, true;
494
+ if (f === 92) {
495
+ if (O(e, i, e.position, true), f = e.input.charCodeAt(++e.position), S(f)) v(e, false, n);
496
+ else if (f < 256 && Ae[f]) e.result += ve[f], e.position++;
497
+ else if ((o = si(f)) > 0) {
498
+ for (r = o, u = 0; r > 0; r--) f = e.input.charCodeAt(++e.position), (o = di(f)) >= 0 ? u = (u << 4) + o : h(e, "expected hexadecimal character");
499
+ e.result += mi(u), e.position++;
500
+ } else h(e, "unknown escape sequence");
501
+ i = l = e.position;
502
+ } 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);
503
+ }
504
+ h(e, "unexpected end of the stream within a double quoted scalar");
505
+ }
506
+ function Ci(e, n) {
507
+ 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, b, m;
508
+ if (m = e.input.charCodeAt(e.position), m === 91) t = 93, s = false, f = [];
509
+ else if (m === 123) t = 125, s = true, f = {};
510
+ else return false;
511
+ for (e.anchor !== null && (e.anchorMap[e.anchor] = f), m = e.input.charCodeAt(++e.position); m !== 0; ) {
512
+ 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;
513
+ i ? m === 44 && h(e, "expected the node content, but found ','") : h(e, "missed comma between flow collection entries"), A = g = b = null, p = d = false, m === 63 && (a = e.input.charCodeAt(e.position + 1), F(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), b = e.result), s ? N(e, f, x, A, g, b, l, r, u) : p ? f.push(N(e, null, x, A, g, b, 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;
514
+ }
515
+ h(e, "unexpected end of the stream within a flow collection");
516
+ }
517
+ function _i(e, n) {
518
+ var i, l, r = Z, u = false, o = false, f = n, c = 0, a = false, t, p;
519
+ if (p = e.input.charCodeAt(e.position), p === 124) l = false;
520
+ else if (p === 62) l = true;
521
+ else return false;
522
+ 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 : ai : h(e, "repeat of a chomping mode identifier");
523
+ else if ((t = xi(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);
524
+ else break;
525
+ if (I(p)) {
526
+ do
527
+ p = e.input.charCodeAt(++e.position);
528
+ while (I(p));
529
+ if (p === 35) do
530
+ p = e.input.charCodeAt(++e.position);
531
+ while (!S(p) && p !== 0);
532
+ }
533
+ for (; p !== 0; ) {
534
+ 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);
535
+ if (!o && e.lineIndent > f && (f = e.lineIndent), S(p)) {
536
+ c++;
537
+ continue;
538
+ }
539
+ if (e.lineIndent < f) {
540
+ r === de ? e.result += y.repeat(`
541
+ `, u ? 1 + c : c) : r === Z && u && (e.result += `
542
+ `);
543
+ break;
544
+ }
545
+ for (l ? I(p) ? (a = true, e.result += y.repeat(`
546
+ `, u ? 1 + c : c)) : a ? (a = false, e.result += y.repeat(`
547
+ `, c + 1)) : c === 0 ? u && (e.result += " ") : e.result += y.repeat(`
548
+ `, c) : e.result += y.repeat(`
549
+ `, u ? 1 + c : c), u = true, o = true, c = 0, i = e.position; !S(p) && p !== 0; ) p = e.input.charCodeAt(++e.position);
550
+ O(e, i, e.position, false);
551
+ }
552
+ return true;
553
+ }
554
+ function we(e, n) {
555
+ var i, l = e.tag, r = e.anchor, u = [], o, f = false, c;
556
+ if (e.firstTabInLine !== -1) return false;
557
+ 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), !F(o)))); ) {
558
+ if (f = true, e.position++, v(e, true, -1) && e.lineIndent <= n) {
559
+ u.push(null), c = e.input.charCodeAt(e.position);
560
+ continue;
561
+ }
562
+ 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");
563
+ else if (e.lineIndent < n) break;
564
+ }
565
+ return f ? (e.tag = l, e.anchor = r, e.kind = "sequence", e.result = u, true) : false;
566
+ }
567
+ function wi(e, n, i) {
568
+ 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, b = false, m;
569
+ if (e.firstTabInLine !== -1) return false;
570
+ for (e.anchor !== null && (e.anchorMap[e.anchor] = p), m = e.input.charCodeAt(e.position); m !== 0; ) {
571
+ 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) && F(l)) m === 63 ? (A && (N(e, p, d, s, x, null, o, f, c), s = x = g = null), b = 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;
572
+ else {
573
+ if (o = e.line, f = e.lineStart, c = e.position, !R(e, i, te, false, true)) break;
574
+ if (e.line === u) {
575
+ for (m = e.input.charCodeAt(e.position); I(m); ) m = e.input.charCodeAt(++e.position);
576
+ if (m === 58) m = e.input.charCodeAt(++e.position), F(m) || h(e, "a whitespace character is expected after the key-value separator within a block mapping"), A && (N(e, p, d, s, x, null, o, f, c), s = x = g = null), b = true, A = false, r = false, s = e.tag, x = e.result;
577
+ else if (b) h(e, "can not read an implicit mapping pair; a colon is missed");
578
+ else return e.tag = a, e.anchor = t, true;
579
+ } else if (b) h(e, "can not read a block mapping entry; a multiline key may not be an implicit key");
580
+ else return e.tag = a, e.anchor = t, true;
581
+ }
582
+ 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 || (N(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");
583
+ else if (e.lineIndent < n) break;
584
+ }
585
+ return A && N(e, p, d, s, x, null, o, f, c), b && (e.tag = a, e.anchor = t, e.kind = "mapping", e.result = p), b;
586
+ }
587
+ function Fi(e) {
588
+ var n, i = false, l = false, r, u, o;
589
+ if (o = e.input.charCodeAt(e.position), o !== 33) return false;
590
+ 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) {
591
+ do
592
+ o = e.input.charCodeAt(++e.position);
593
+ while (o !== 0 && o !== 62);
594
+ 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");
595
+ } else {
596
+ for (; o !== 0 && !F(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);
597
+ u = e.input.slice(n, e.position), hi.test(u) && h(e, "tag suffix cannot contain flow indicator characters");
598
+ }
599
+ u && !xe.test(u) && h(e, "tag name cannot contain such characters: " + u);
600
+ try {
601
+ u = decodeURIComponent(u);
602
+ } catch {
603
+ h(e, "tag name is malformed: " + u);
604
+ }
605
+ 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;
606
+ }
607
+ function bi(e) {
608
+ var n, i;
609
+ if (i = e.input.charCodeAt(e.position), i !== 38) return false;
610
+ for (e.anchor !== null && h(e, "duplication of an anchor property"), i = e.input.charCodeAt(++e.position), n = e.position; i !== 0 && !F(i) && !k(i); ) i = e.input.charCodeAt(++e.position);
611
+ 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;
612
+ }
613
+ function Si(e) {
614
+ var n, i, l;
615
+ if (l = e.input.charCodeAt(e.position), l !== 42) return false;
616
+ for (l = e.input.charCodeAt(++e.position), n = e.position; l !== 0 && !F(l) && !k(l); ) l = e.input.charCodeAt(++e.position);
617
+ 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;
618
+ }
619
+ function R(e, n, i, l, r) {
620
+ var u, o, f, c = 1, a = false, t = false, p, d, s, x, g, A;
621
+ 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) || bi(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;
622
+ 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) || wi(e, A, g)) || Ci(e, g) ? t = true : (o && _i(e, g) || vi(e, g) || yi(e, g) ? t = true : Si(e) ? (t = true, (e.tag !== null || e.anchor !== null) && h(e, "alias node should not have any properties")) : Ai(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);
623
+ else if (e.tag === "?") {
624
+ 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)) {
625
+ e.result = x.construct(e.result), e.tag = x.tag, e.anchor !== null && (e.anchorMap[e.anchor] = e.result);
626
+ break;
627
+ }
628
+ } else if (e.tag !== "!") {
629
+ if (T.call(e.typeMap[e.kind || "fallback"], e.tag)) x = e.typeMap[e.kind || "fallback"][e.tag];
630
+ 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) {
631
+ x = s[p];
632
+ break;
633
+ }
634
+ 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");
635
+ }
636
+ return e.listener !== null && e.listener("close", e), e.tag !== null || e.anchor !== null || t;
637
+ }
638
+ function Ei(e) {
639
+ var n = e.position, i, l, r, u = false, o;
640
+ 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)); ) {
641
+ for (u = true, o = e.input.charCodeAt(++e.position), i = e.position; o !== 0 && !F(o); ) o = e.input.charCodeAt(++e.position);
642
+ 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; ) {
643
+ for (; I(o); ) o = e.input.charCodeAt(++e.position);
644
+ if (o === 35) {
645
+ do
646
+ o = e.input.charCodeAt(++e.position);
647
+ while (o !== 0 && !S(o));
648
+ break;
649
+ }
650
+ if (S(o)) break;
651
+ for (i = e.position; o !== 0 && !F(o); ) o = e.input.charCodeAt(++e.position);
652
+ r.push(e.input.slice(i, e.position));
653
+ }
654
+ o !== 0 && z(e), T.call(Ce, l) ? Ce[l](e, l, r) : K(e, 'unknown document directive "' + l + '"');
655
+ }
656
+ 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 && ti.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)) {
657
+ e.input.charCodeAt(e.position) === 46 && (e.position += 3, v(e, true, -1));
658
+ return;
659
+ }
660
+ if (e.position < e.length - 1) h(e, "end of the stream or a document separator is expected");
661
+ else return;
662
+ }
663
+ function Ti(e, n) {
664
+ e = String(e), n = n || {}, e.length !== 0 && (e.charCodeAt(e.length - 1) !== 10 && e.charCodeAt(e.length - 1) !== 13 && (e += `
665
+ `), e.charCodeAt(0) === 65279 && (e = e.slice(1)));
666
+ var i = new gi(e, n), l = e.indexOf("\0");
667
+ 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;
668
+ for (; i.position < i.length - 1; ) Ei(i);
669
+ return i.documents;
670
+ }
671
+ function Oi(e, n) {
672
+ var i = Ti(e, n);
673
+ if (i.length !== 0) {
674
+ if (i.length === 1) return i[0];
675
+ throw new w("expected a single document in the stream, but found more");
676
+ }
677
+ }
678
+ var Ii = Oi, ki = { load: Ii };
679
+ var sr = ki.load;
680
+ function mr(e, n) {
681
+ const i = sr(e, n);
682
+ return N$1(e, i, n), i;
683
+ }
684
+ export {
685
+ mr as parseYAML
686
+ };