@owcs/ui 0.1.9

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,1349 @@
1
+ function _e(e) {
2
+ return typeof e > "u" || e === null;
3
+ }
4
+ function tn(e) {
5
+ return typeof e == "object" && e !== null;
6
+ }
7
+ function hn(e) {
8
+ return Array.isArray(e) ? e : _e(e) ? [] : [e];
9
+ }
10
+ function dn(e, n) {
11
+ var i, l, r, u;
12
+ if (n)
13
+ for (u = Object.keys(n), i = 0, l = u.length; i < l; i += 1)
14
+ r = u[i], e[r] = n[r];
15
+ return e;
16
+ }
17
+ function sn(e, n) {
18
+ var i = "", l;
19
+ for (l = 0; l < n; l += 1)
20
+ i += e;
21
+ return i;
22
+ }
23
+ function mn(e) {
24
+ return e === 0 && Number.NEGATIVE_INFINITY === 1 / e;
25
+ }
26
+ var xn = _e, gn = tn, An = hn, vn = sn, yn = mn, Cn = dn, y = {
27
+ isNothing: xn,
28
+ isObject: gn,
29
+ toArray: An,
30
+ repeat: vn,
31
+ isNegativeZero: yn,
32
+ extend: Cn
33
+ };
34
+ function we(e, n) {
35
+ var i = "", l = e.reason || "(unknown reason)";
36
+ 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 += `
37
+
38
+ ` + e.mark.snippet), l + " " + i) : l;
39
+ }
40
+ function Y(e, n) {
41
+ Error.call(this), this.name = "YAMLException", this.reason = e, this.mark = n, this.message = we(this, !1), Error.captureStackTrace ? Error.captureStackTrace(this, this.constructor) : this.stack = new Error().stack || "";
42
+ }
43
+ Y.prototype = Object.create(Error.prototype);
44
+ Y.prototype.constructor = Y;
45
+ Y.prototype.toString = function(n) {
46
+ return this.name + ": " + we(this, n);
47
+ };
48
+ var w = Y;
49
+ function $(e, n, i, l, r) {
50
+ var u = "", o = "", f = Math.floor(r / 2) - 1;
51
+ return l - n > f && (u = " ... ", n = l - f + u.length), i - l > f && (o = " ...", i = l + f - o.length), {
52
+ str: u + e.slice(n, i).replace(/\t/g, "→") + o,
53
+ pos: l - n + u.length
54
+ // relative position
55
+ };
56
+ }
57
+ function Q(e, n) {
58
+ return y.repeat(" ", n - e.length) + e;
59
+ }
60
+ function _n(e, n) {
61
+ if (n = Object.create(n || null), !e.buffer) return null;
62
+ 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);
63
+ for (var i = /\r?\n|\r|\0/g, l = [0], r = [], u, o = -1; u = i.exec(e.buffer); )
64
+ r.push(u.index), l.push(u.index + u[0].length), e.position <= u.index && o < 0 && (o = l.length - 2);
65
+ o < 0 && (o = l.length - 1);
66
+ var f = "", c, a, t = Math.min(e.line + n.linesAfter, r.length).toString().length, p = n.maxLength - (n.indent + t + 3);
67
+ for (c = 1; c <= n.linesBefore && !(o - c < 0); c++)
68
+ a = $(
69
+ e.buffer,
70
+ l[o - c],
71
+ r[o - c],
72
+ e.position - (l[o] - l[o - c]),
73
+ p
74
+ ), f = y.repeat(" ", n.indent) + Q((e.line - c + 1).toString(), t) + " | " + a.str + `
75
+ ` + f;
76
+ for (a = $(e.buffer, l[o], r[o], e.position, p), f += y.repeat(" ", n.indent) + Q((e.line + 1).toString(), t) + " | " + a.str + `
77
+ `, f += y.repeat("-", n.indent + t + 3 + a.pos) + `^
78
+ `, c = 1; c <= n.linesAfter && !(o + c >= r.length); c++)
79
+ a = $(
80
+ e.buffer,
81
+ l[o + c],
82
+ r[o + c],
83
+ e.position - (l[o] - l[o + c]),
84
+ p
85
+ ), f += y.repeat(" ", n.indent) + Q((e.line + c + 1).toString(), t) + " | " + a.str + `
86
+ `;
87
+ return f.replace(/\n$/, "");
88
+ }
89
+ var wn = _n, En = [
90
+ "kind",
91
+ "multi",
92
+ "resolve",
93
+ "construct",
94
+ "instanceOf",
95
+ "predicate",
96
+ "represent",
97
+ "representName",
98
+ "defaultStyle",
99
+ "styleAliases"
100
+ ], Sn = [
101
+ "scalar",
102
+ "sequence",
103
+ "mapping"
104
+ ];
105
+ function Fn(e) {
106
+ var n = {};
107
+ return e !== null && Object.keys(e).forEach(function(i) {
108
+ e[i].forEach(function(l) {
109
+ n[String(l)] = i;
110
+ });
111
+ }), n;
112
+ }
113
+ function bn(e, n) {
114
+ if (n = n || {}, Object.keys(n).forEach(function(i) {
115
+ if (En.indexOf(i) === -1)
116
+ throw new w('Unknown option "' + i + '" is met in definition of "' + e + '" YAML type.');
117
+ }), this.options = n, this.tag = e, this.kind = n.kind || null, this.resolve = n.resolve || function() {
118
+ return !0;
119
+ }, this.construct = n.construct || function(i) {
120
+ return i;
121
+ }, 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 || !1, this.styleAliases = Fn(n.styleAliases || null), Sn.indexOf(this.kind) === -1)
122
+ throw new w('Unknown kind "' + this.kind + '" is specified for "' + e + '" YAML type.');
123
+ }
124
+ var C = bn;
125
+ function fe(e, n) {
126
+ var i = [];
127
+ return e[n].forEach(function(l) {
128
+ var r = i.length;
129
+ i.forEach(function(u, o) {
130
+ u.tag === l.tag && u.kind === l.kind && u.multi === l.multi && (r = o);
131
+ }), i[r] = l;
132
+ }), i;
133
+ }
134
+ function Tn() {
135
+ var e = {
136
+ scalar: {},
137
+ sequence: {},
138
+ mapping: {},
139
+ fallback: {},
140
+ multi: {
141
+ scalar: [],
142
+ sequence: [],
143
+ mapping: [],
144
+ fallback: []
145
+ }
146
+ }, n, i;
147
+ function l(r) {
148
+ r.multi ? (e.multi[r.kind].push(r), e.multi.fallback.push(r)) : e[r.kind][r.tag] = e.fallback[r.tag] = r;
149
+ }
150
+ for (n = 0, i = arguments.length; n < i; n += 1)
151
+ arguments[n].forEach(l);
152
+ return e;
153
+ }
154
+ function X(e) {
155
+ return this.extend(e);
156
+ }
157
+ X.prototype.extend = function(n) {
158
+ var i = [], l = [];
159
+ if (n instanceof C)
160
+ l.push(n);
161
+ else if (Array.isArray(n))
162
+ l = l.concat(n);
163
+ else if (n && (Array.isArray(n.implicit) || Array.isArray(n.explicit)))
164
+ n.implicit && (i = i.concat(n.implicit)), n.explicit && (l = l.concat(n.explicit));
165
+ else
166
+ throw new w("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })");
167
+ i.forEach(function(u) {
168
+ if (!(u instanceof C))
169
+ throw new w("Specified list of YAML types (or a single Type object) contains a non-Type object.");
170
+ if (u.loadKind && u.loadKind !== "scalar")
171
+ throw new w("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.");
172
+ if (u.multi)
173
+ throw new w("There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.");
174
+ }), l.forEach(function(u) {
175
+ if (!(u instanceof C))
176
+ throw new w("Specified list of YAML types (or a single Type object) contains a non-Type object.");
177
+ });
178
+ var r = Object.create(X.prototype);
179
+ 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 = Tn(r.compiledImplicit, r.compiledExplicit), r;
180
+ };
181
+ var Ee = X, Se = new C("tag:yaml.org,2002:str", {
182
+ kind: "scalar",
183
+ construct: function(e) {
184
+ return e !== null ? e : "";
185
+ }
186
+ }), Fe = new C("tag:yaml.org,2002:seq", {
187
+ kind: "sequence",
188
+ construct: function(e) {
189
+ return e !== null ? e : [];
190
+ }
191
+ }), be = new C("tag:yaml.org,2002:map", {
192
+ kind: "mapping",
193
+ construct: function(e) {
194
+ return e !== null ? e : {};
195
+ }
196
+ }), Te = new Ee({
197
+ explicit: [
198
+ Se,
199
+ Fe,
200
+ be
201
+ ]
202
+ });
203
+ function On(e) {
204
+ if (e === null) return !0;
205
+ var n = e.length;
206
+ return n === 1 && e === "~" || n === 4 && (e === "null" || e === "Null" || e === "NULL");
207
+ }
208
+ function In() {
209
+ return null;
210
+ }
211
+ function Ln(e) {
212
+ return e === null;
213
+ }
214
+ var Oe = new C("tag:yaml.org,2002:null", {
215
+ kind: "scalar",
216
+ resolve: On,
217
+ construct: In,
218
+ predicate: Ln,
219
+ represent: {
220
+ canonical: function() {
221
+ return "~";
222
+ },
223
+ lowercase: function() {
224
+ return "null";
225
+ },
226
+ uppercase: function() {
227
+ return "NULL";
228
+ },
229
+ camelcase: function() {
230
+ return "Null";
231
+ },
232
+ empty: function() {
233
+ return "";
234
+ }
235
+ },
236
+ defaultStyle: "lowercase"
237
+ });
238
+ function kn(e) {
239
+ if (e === null) return !1;
240
+ var n = e.length;
241
+ return n === 4 && (e === "true" || e === "True" || e === "TRUE") || n === 5 && (e === "false" || e === "False" || e === "FALSE");
242
+ }
243
+ function Nn(e) {
244
+ return e === "true" || e === "True" || e === "TRUE";
245
+ }
246
+ function Rn(e) {
247
+ return Object.prototype.toString.call(e) === "[object Boolean]";
248
+ }
249
+ var Ie = new C("tag:yaml.org,2002:bool", {
250
+ kind: "scalar",
251
+ resolve: kn,
252
+ construct: Nn,
253
+ predicate: Rn,
254
+ represent: {
255
+ lowercase: function(e) {
256
+ return e ? "true" : "false";
257
+ },
258
+ uppercase: function(e) {
259
+ return e ? "TRUE" : "FALSE";
260
+ },
261
+ camelcase: function(e) {
262
+ return e ? "True" : "False";
263
+ }
264
+ },
265
+ defaultStyle: "lowercase"
266
+ });
267
+ function Dn(e) {
268
+ return 48 <= e && e <= 57 || 65 <= e && e <= 70 || 97 <= e && e <= 102;
269
+ }
270
+ function Mn(e) {
271
+ return 48 <= e && e <= 55;
272
+ }
273
+ function Yn(e) {
274
+ return 48 <= e && e <= 57;
275
+ }
276
+ function Bn(e) {
277
+ if (e === null) return !1;
278
+ var n = e.length, i = 0, l = !1, r;
279
+ if (!n) return !1;
280
+ if (r = e[i], (r === "-" || r === "+") && (r = e[++i]), r === "0") {
281
+ if (i + 1 === n) return !0;
282
+ if (r = e[++i], r === "b") {
283
+ for (i++; i < n; i++)
284
+ if (r = e[i], r !== "_") {
285
+ if (r !== "0" && r !== "1") return !1;
286
+ l = !0;
287
+ }
288
+ return l && r !== "_";
289
+ }
290
+ if (r === "x") {
291
+ for (i++; i < n; i++)
292
+ if (r = e[i], r !== "_") {
293
+ if (!Dn(e.charCodeAt(i))) return !1;
294
+ l = !0;
295
+ }
296
+ return l && r !== "_";
297
+ }
298
+ if (r === "o") {
299
+ for (i++; i < n; i++)
300
+ if (r = e[i], r !== "_") {
301
+ if (!Mn(e.charCodeAt(i))) return !1;
302
+ l = !0;
303
+ }
304
+ return l && r !== "_";
305
+ }
306
+ }
307
+ if (r === "_") return !1;
308
+ for (; i < n; i++)
309
+ if (r = e[i], r !== "_") {
310
+ if (!Yn(e.charCodeAt(i)))
311
+ return !1;
312
+ l = !0;
313
+ }
314
+ return !(!l || r === "_");
315
+ }
316
+ function Pn(e) {
317
+ var n = e, i = 1, l;
318
+ 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;
319
+ if (l === "0") {
320
+ if (n[1] === "b") return i * parseInt(n.slice(2), 2);
321
+ if (n[1] === "x") return i * parseInt(n.slice(2), 16);
322
+ if (n[1] === "o") return i * parseInt(n.slice(2), 8);
323
+ }
324
+ return i * parseInt(n, 10);
325
+ }
326
+ function Hn(e) {
327
+ return Object.prototype.toString.call(e) === "[object Number]" && e % 1 === 0 && !y.isNegativeZero(e);
328
+ }
329
+ var Le = new C("tag:yaml.org,2002:int", {
330
+ kind: "scalar",
331
+ resolve: Bn,
332
+ construct: Pn,
333
+ predicate: Hn,
334
+ represent: {
335
+ binary: function(e) {
336
+ return e >= 0 ? "0b" + e.toString(2) : "-0b" + e.toString(2).slice(1);
337
+ },
338
+ octal: function(e) {
339
+ return e >= 0 ? "0o" + e.toString(8) : "-0o" + e.toString(8).slice(1);
340
+ },
341
+ decimal: function(e) {
342
+ return e.toString(10);
343
+ },
344
+ /* eslint-disable max-len */
345
+ hexadecimal: function(e) {
346
+ return e >= 0 ? "0x" + e.toString(16).toUpperCase() : "-0x" + e.toString(16).toUpperCase().slice(1);
347
+ }
348
+ },
349
+ defaultStyle: "decimal",
350
+ styleAliases: {
351
+ binary: [2, "bin"],
352
+ octal: [8, "oct"],
353
+ decimal: [10, "dec"],
354
+ hexadecimal: [16, "hex"]
355
+ }
356
+ }), jn = new RegExp(
357
+ // 2.5e4, 2.5 and integers
358
+ "^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$"
359
+ );
360
+ function Un(e) {
361
+ return !(e === null || !jn.test(e) || // Quick hack to not allow integers end with `_`
362
+ // Probably should update regexp & check speed
363
+ e[e.length - 1] === "_");
364
+ }
365
+ function Kn(e) {
366
+ var n, i;
367
+ 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);
368
+ }
369
+ var qn = /^[-+]?[0-9]+e/;
370
+ function Gn(e, n) {
371
+ var i;
372
+ if (isNaN(e))
373
+ switch (n) {
374
+ case "lowercase":
375
+ return ".nan";
376
+ case "uppercase":
377
+ return ".NAN";
378
+ case "camelcase":
379
+ return ".NaN";
380
+ }
381
+ else if (Number.POSITIVE_INFINITY === e)
382
+ switch (n) {
383
+ case "lowercase":
384
+ return ".inf";
385
+ case "uppercase":
386
+ return ".INF";
387
+ case "camelcase":
388
+ return ".Inf";
389
+ }
390
+ else if (Number.NEGATIVE_INFINITY === e)
391
+ switch (n) {
392
+ case "lowercase":
393
+ return "-.inf";
394
+ case "uppercase":
395
+ return "-.INF";
396
+ case "camelcase":
397
+ return "-.Inf";
398
+ }
399
+ else if (y.isNegativeZero(e))
400
+ return "-0.0";
401
+ return i = e.toString(10), qn.test(i) ? i.replace("e", ".e") : i;
402
+ }
403
+ function Wn(e) {
404
+ return Object.prototype.toString.call(e) === "[object Number]" && (e % 1 !== 0 || y.isNegativeZero(e));
405
+ }
406
+ var ke = new C("tag:yaml.org,2002:float", {
407
+ kind: "scalar",
408
+ resolve: Un,
409
+ construct: Kn,
410
+ predicate: Wn,
411
+ represent: Gn,
412
+ defaultStyle: "lowercase"
413
+ }), Ne = Te.extend({
414
+ implicit: [
415
+ Oe,
416
+ Ie,
417
+ Le,
418
+ ke
419
+ ]
420
+ }), Re = Ne, De = new RegExp(
421
+ "^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"
422
+ ), Me = new RegExp(
423
+ "^([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]))?))?$"
424
+ );
425
+ function $n(e) {
426
+ return e === null ? !1 : De.exec(e) !== null || Me.exec(e) !== null;
427
+ }
428
+ function Qn(e) {
429
+ var n, i, l, r, u, o, f, c = 0, a = null, t, p, d;
430
+ if (n = De.exec(e), n === null && (n = Me.exec(e)), n === null) throw new Error("Date resolve error");
431
+ if (i = +n[1], l = +n[2] - 1, r = +n[3], !n[4])
432
+ return new Date(Date.UTC(i, l, r));
433
+ if (u = +n[4], o = +n[5], f = +n[6], n[7]) {
434
+ for (c = n[7].slice(0, 3); c.length < 3; )
435
+ c += "0";
436
+ c = +c;
437
+ }
438
+ 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;
439
+ }
440
+ function Vn(e) {
441
+ return e.toISOString();
442
+ }
443
+ var Ye = new C("tag:yaml.org,2002:timestamp", {
444
+ kind: "scalar",
445
+ resolve: $n,
446
+ construct: Qn,
447
+ instanceOf: Date,
448
+ represent: Vn
449
+ });
450
+ function Xn(e) {
451
+ return e === "<<" || e === null;
452
+ }
453
+ var Be = new C("tag:yaml.org,2002:merge", {
454
+ kind: "scalar",
455
+ resolve: Xn
456
+ }), ne = `ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
457
+ \r`;
458
+ function Zn(e) {
459
+ if (e === null) return !1;
460
+ var n, i, l = 0, r = e.length, u = ne;
461
+ for (i = 0; i < r; i++)
462
+ if (n = u.indexOf(e.charAt(i)), !(n > 64)) {
463
+ if (n < 0) return !1;
464
+ l += 6;
465
+ }
466
+ return l % 8 === 0;
467
+ }
468
+ function zn(e) {
469
+ var n, i, l = e.replace(/[\r\n=]/g, ""), r = l.length, u = ne, o = 0, f = [];
470
+ for (n = 0; n < r; n++)
471
+ 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));
472
+ 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);
473
+ }
474
+ function Jn(e) {
475
+ var n = "", i = 0, l, r, u = e.length, o = ne;
476
+ for (l = 0; l < u; l++)
477
+ 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];
478
+ 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;
479
+ }
480
+ function ei(e) {
481
+ return Object.prototype.toString.call(e) === "[object Uint8Array]";
482
+ }
483
+ var Pe = new C("tag:yaml.org,2002:binary", {
484
+ kind: "scalar",
485
+ resolve: Zn,
486
+ construct: zn,
487
+ predicate: ei,
488
+ represent: Jn
489
+ }), ni = Object.prototype.hasOwnProperty, ii = Object.prototype.toString;
490
+ function ri(e) {
491
+ if (e === null) return !0;
492
+ var n = [], i, l, r, u, o, f = e;
493
+ for (i = 0, l = f.length; i < l; i += 1) {
494
+ if (r = f[i], o = !1, ii.call(r) !== "[object Object]") return !1;
495
+ for (u in r)
496
+ if (ni.call(r, u))
497
+ if (!o) o = !0;
498
+ else return !1;
499
+ if (!o) return !1;
500
+ if (n.indexOf(u) === -1) n.push(u);
501
+ else return !1;
502
+ }
503
+ return !0;
504
+ }
505
+ function li(e) {
506
+ return e !== null ? e : [];
507
+ }
508
+ var He = new C("tag:yaml.org,2002:omap", {
509
+ kind: "sequence",
510
+ resolve: ri,
511
+ construct: li
512
+ }), oi = Object.prototype.toString;
513
+ function ui(e) {
514
+ if (e === null) return !0;
515
+ var n, i, l, r, u, o = e;
516
+ for (u = new Array(o.length), n = 0, i = o.length; n < i; n += 1) {
517
+ if (l = o[n], oi.call(l) !== "[object Object]" || (r = Object.keys(l), r.length !== 1)) return !1;
518
+ u[n] = [r[0], l[r[0]]];
519
+ }
520
+ return !0;
521
+ }
522
+ function fi(e) {
523
+ if (e === null) return [];
524
+ var n, i, l, r, u, o = e;
525
+ for (u = new Array(o.length), n = 0, i = o.length; n < i; n += 1)
526
+ l = o[n], r = Object.keys(l), u[n] = [r[0], l[r[0]]];
527
+ return u;
528
+ }
529
+ var je = new C("tag:yaml.org,2002:pairs", {
530
+ kind: "sequence",
531
+ resolve: ui,
532
+ construct: fi
533
+ }), ci = Object.prototype.hasOwnProperty;
534
+ function ai(e) {
535
+ if (e === null) return !0;
536
+ var n, i = e;
537
+ for (n in i)
538
+ if (ci.call(i, n) && i[n] !== null)
539
+ return !1;
540
+ return !0;
541
+ }
542
+ function pi(e) {
543
+ return e !== null ? e : {};
544
+ }
545
+ var Ue = new C("tag:yaml.org,2002:set", {
546
+ kind: "mapping",
547
+ resolve: ai,
548
+ construct: pi
549
+ }), ie = Re.extend({
550
+ implicit: [
551
+ Ye,
552
+ Be
553
+ ],
554
+ explicit: [
555
+ Pe,
556
+ He,
557
+ je,
558
+ Ue
559
+ ]
560
+ }), O = Object.prototype.hasOwnProperty, j = 1, Ke = 2, qe = 3, U = 4, V = 1, ti = 2, ce = 3, hi = /[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/, di = /[\x85\u2028\u2029]/, si = /[,\[\]\{\}]/, Ge = /^(?:!|!!|![a-z\-]+!)$/i, We = /^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;
561
+ function ae(e) {
562
+ return Object.prototype.toString.call(e);
563
+ }
564
+ function F(e) {
565
+ return e === 10 || e === 13;
566
+ }
567
+ function I(e) {
568
+ return e === 9 || e === 32;
569
+ }
570
+ function E(e) {
571
+ return e === 9 || e === 32 || e === 10 || e === 13;
572
+ }
573
+ function N(e) {
574
+ return e === 44 || e === 91 || e === 93 || e === 123 || e === 125;
575
+ }
576
+ function mi(e) {
577
+ var n;
578
+ return 48 <= e && e <= 57 ? e - 48 : (n = e | 32, 97 <= n && n <= 102 ? n - 97 + 10 : -1);
579
+ }
580
+ function xi(e) {
581
+ return e === 120 ? 2 : e === 117 ? 4 : e === 85 ? 8 : 0;
582
+ }
583
+ function gi(e) {
584
+ return 48 <= e && e <= 57 ? e - 48 : -1;
585
+ }
586
+ function pe(e) {
587
+ return e === 48 ? "\0" : e === 97 ? "\x07" : e === 98 ? "\b" : e === 116 || e === 9 ? " " : e === 110 ? `
588
+ ` : 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" : "";
589
+ }
590
+ function Ai(e) {
591
+ return e <= 65535 ? String.fromCharCode(e) : String.fromCharCode(
592
+ (e - 65536 >> 10) + 55296,
593
+ (e - 65536 & 1023) + 56320
594
+ );
595
+ }
596
+ function $e(e, n, i) {
597
+ n === "__proto__" ? Object.defineProperty(e, n, {
598
+ configurable: !0,
599
+ enumerable: !0,
600
+ writable: !0,
601
+ value: i
602
+ }) : e[n] = i;
603
+ }
604
+ var Qe = new Array(256), Ve = new Array(256);
605
+ for (var L = 0; L < 256; L++)
606
+ Qe[L] = pe(L) ? 1 : 0, Ve[L] = pe(L);
607
+ function vi(e, n) {
608
+ this.input = e, this.filename = n.filename || null, this.schema = n.schema || ie, this.onWarning = n.onWarning || null, this.legacy = n.legacy || !1, this.json = n.json || !1, 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 = [];
609
+ }
610
+ function Xe(e, n) {
611
+ var i = {
612
+ name: e.filename,
613
+ buffer: e.input.slice(0, -1),
614
+ // omit trailing \0
615
+ position: e.position,
616
+ line: e.line,
617
+ column: e.position - e.lineStart
618
+ };
619
+ return i.snippet = wn(i), new w(n, i);
620
+ }
621
+ function h(e, n) {
622
+ throw Xe(e, n);
623
+ }
624
+ function K(e, n) {
625
+ e.onWarning && e.onWarning.call(null, Xe(e, n));
626
+ }
627
+ var te = {
628
+ YAML: function(n, i, l) {
629
+ var r, u, o;
630
+ 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");
631
+ },
632
+ TAG: function(n, i, l) {
633
+ var r, u;
634
+ l.length !== 2 && h(n, "TAG directive accepts exactly two arguments"), r = l[0], u = l[1], Ge.test(r) || h(n, "ill-formed tag handle (first argument) of the TAG directive"), O.call(n.tagMap, r) && h(n, 'there is a previously declared suffix for "' + r + '" tag handle'), We.test(u) || h(n, "ill-formed tag prefix (second argument) of the TAG directive");
635
+ try {
636
+ u = decodeURIComponent(u);
637
+ } catch {
638
+ h(n, "tag prefix is malformed: " + u);
639
+ }
640
+ n.tagMap[r] = u;
641
+ }
642
+ };
643
+ function T(e, n, i, l) {
644
+ var r, u, o, f;
645
+ if (n < i) {
646
+ if (f = e.input.slice(n, i), l)
647
+ for (r = 0, u = f.length; r < u; r += 1)
648
+ o = f.charCodeAt(r), o === 9 || 32 <= o && o <= 1114111 || h(e, "expected valid JSON character");
649
+ else hi.test(f) && h(e, "the stream contains non-printable characters");
650
+ e.result += f;
651
+ }
652
+ }
653
+ function he(e, n, i, l) {
654
+ var r, u, o, f;
655
+ 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)
656
+ u = r[o], O.call(n, u) || ($e(n, u, i[u]), l[u] = !0);
657
+ }
658
+ function R(e, n, i, l, r, u, o, f, c) {
659
+ var a, t;
660
+ if (Array.isArray(r))
661
+ for (r = Array.prototype.slice.call(r), a = 0, t = r.length; a < t; a += 1)
662
+ Array.isArray(r[a]) && h(e, "nested arrays are not supported inside keys"), typeof r == "object" && ae(r[a]) === "[object Object]" && (r[a] = "[object Object]");
663
+ if (typeof r == "object" && ae(r) === "[object Object]" && (r = "[object Object]"), r = String(r), n === null && (n = {}), l === "tag:yaml.org,2002:merge")
664
+ if (Array.isArray(u))
665
+ for (a = 0, t = u.length; a < t; a += 1)
666
+ he(e, n, u[a], i);
667
+ else
668
+ he(e, n, u, i);
669
+ else
670
+ !e.json && !O.call(i, r) && O.call(n, r) && (e.line = o || e.line, e.lineStart = f || e.lineStart, e.position = c || e.position, h(e, "duplicated mapping key")), $e(n, r, u), delete i[r];
671
+ return n;
672
+ }
673
+ function re(e) {
674
+ var n;
675
+ 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;
676
+ }
677
+ function v(e, n, i) {
678
+ for (var l = 0, r = e.input.charCodeAt(e.position); r !== 0; ) {
679
+ for (; I(r); )
680
+ r === 9 && e.firstTabInLine === -1 && (e.firstTabInLine = e.position), r = e.input.charCodeAt(++e.position);
681
+ if (n && r === 35)
682
+ do
683
+ r = e.input.charCodeAt(++e.position);
684
+ while (r !== 10 && r !== 13 && r !== 0);
685
+ if (F(r))
686
+ for (re(e), r = e.input.charCodeAt(e.position), l++, e.lineIndent = 0; r === 32; )
687
+ e.lineIndent++, r = e.input.charCodeAt(++e.position);
688
+ else
689
+ break;
690
+ }
691
+ return i !== -1 && l !== 0 && e.lineIndent < i && K(e, "deficient indentation"), l;
692
+ }
693
+ function W(e) {
694
+ var n = e.position, i;
695
+ 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 || E(i)));
696
+ }
697
+ function le(e, n) {
698
+ n === 1 ? e.result += " " : n > 1 && (e.result += y.repeat(`
699
+ `, n - 1));
700
+ }
701
+ function yi(e, n, i) {
702
+ var l, r, u, o, f, c, a, t, p = e.kind, d = e.result, s;
703
+ if (s = e.input.charCodeAt(e.position), E(s) || N(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), E(r) || i && N(r)))
704
+ return !1;
705
+ for (e.kind = "scalar", e.result = "", u = o = e.position, f = !1; s !== 0; ) {
706
+ if (s === 58) {
707
+ if (r = e.input.charCodeAt(e.position + 1), E(r) || i && N(r))
708
+ break;
709
+ } else if (s === 35) {
710
+ if (l = e.input.charCodeAt(e.position - 1), E(l))
711
+ break;
712
+ } else {
713
+ if (e.position === e.lineStart && W(e) || i && N(s))
714
+ break;
715
+ if (F(s))
716
+ if (c = e.line, a = e.lineStart, t = e.lineIndent, v(e, !1, -1), e.lineIndent >= n) {
717
+ f = !0, s = e.input.charCodeAt(e.position);
718
+ continue;
719
+ } else {
720
+ e.position = o, e.line = c, e.lineStart = a, e.lineIndent = t;
721
+ break;
722
+ }
723
+ }
724
+ f && (T(e, u, o, !1), le(e, e.line - c), u = o = e.position, f = !1), I(s) || (o = e.position + 1), s = e.input.charCodeAt(++e.position);
725
+ }
726
+ return T(e, u, o, !1), e.result ? !0 : (e.kind = p, e.result = d, !1);
727
+ }
728
+ function Ci(e, n) {
729
+ var i, l, r;
730
+ if (i = e.input.charCodeAt(e.position), i !== 39)
731
+ return !1;
732
+ for (e.kind = "scalar", e.result = "", e.position++, l = r = e.position; (i = e.input.charCodeAt(e.position)) !== 0; )
733
+ if (i === 39)
734
+ if (T(e, l, e.position, !0), i = e.input.charCodeAt(++e.position), i === 39)
735
+ l = e.position, e.position++, r = e.position;
736
+ else
737
+ return !0;
738
+ else F(i) ? (T(e, l, r, !0), le(e, v(e, !1, n)), l = r = e.position) : e.position === e.lineStart && W(e) ? h(e, "unexpected end of the document within a single quoted scalar") : (e.position++, r = e.position);
739
+ h(e, "unexpected end of the stream within a single quoted scalar");
740
+ }
741
+ function _i(e, n) {
742
+ var i, l, r, u, o, f;
743
+ if (f = e.input.charCodeAt(e.position), f !== 34)
744
+ return !1;
745
+ for (e.kind = "scalar", e.result = "", e.position++, i = l = e.position; (f = e.input.charCodeAt(e.position)) !== 0; ) {
746
+ if (f === 34)
747
+ return T(e, i, e.position, !0), e.position++, !0;
748
+ if (f === 92) {
749
+ if (T(e, i, e.position, !0), f = e.input.charCodeAt(++e.position), F(f))
750
+ v(e, !1, n);
751
+ else if (f < 256 && Qe[f])
752
+ e.result += Ve[f], e.position++;
753
+ else if ((o = xi(f)) > 0) {
754
+ for (r = o, u = 0; r > 0; r--)
755
+ f = e.input.charCodeAt(++e.position), (o = mi(f)) >= 0 ? u = (u << 4) + o : h(e, "expected hexadecimal character");
756
+ e.result += Ai(u), e.position++;
757
+ } else
758
+ h(e, "unknown escape sequence");
759
+ i = l = e.position;
760
+ } else F(f) ? (T(e, i, l, !0), le(e, v(e, !1, n)), i = l = e.position) : e.position === e.lineStart && W(e) ? h(e, "unexpected end of the document within a double quoted scalar") : (e.position++, l = e.position);
761
+ }
762
+ h(e, "unexpected end of the stream within a double quoted scalar");
763
+ }
764
+ function wi(e, n) {
765
+ var i = !0, l, r, u, o = e.tag, f, c = e.anchor, a, t, p, d, s, m = /* @__PURE__ */ Object.create(null), g, A, S, x;
766
+ if (x = e.input.charCodeAt(e.position), x === 91)
767
+ t = 93, s = !1, f = [];
768
+ else if (x === 123)
769
+ t = 125, s = !0, f = {};
770
+ else
771
+ return !1;
772
+ for (e.anchor !== null && (e.anchorMap[e.anchor] = f), x = e.input.charCodeAt(++e.position); x !== 0; ) {
773
+ if (v(e, !0, n), x = e.input.charCodeAt(e.position), x === t)
774
+ return e.position++, e.tag = o, e.anchor = c, e.kind = s ? "mapping" : "sequence", e.result = f, !0;
775
+ i ? x === 44 && h(e, "expected the node content, but found ','") : h(e, "missed comma between flow collection entries"), A = g = S = null, p = d = !1, x === 63 && (a = e.input.charCodeAt(e.position + 1), E(a) && (p = d = !0, e.position++, v(e, !0, n))), l = e.line, r = e.lineStart, u = e.position, D(e, n, j, !1, !0), A = e.tag, g = e.result, v(e, !0, n), x = e.input.charCodeAt(e.position), (d || e.line === l) && x === 58 && (p = !0, x = e.input.charCodeAt(++e.position), v(e, !0, n), D(e, n, j, !1, !0), S = e.result), s ? R(e, f, m, A, g, S, l, r, u) : p ? f.push(R(e, null, m, A, g, S, l, r, u)) : f.push(g), v(e, !0, n), x = e.input.charCodeAt(e.position), x === 44 ? (i = !0, x = e.input.charCodeAt(++e.position)) : i = !1;
776
+ }
777
+ h(e, "unexpected end of the stream within a flow collection");
778
+ }
779
+ function Ei(e, n) {
780
+ var i, l, r = V, u = !1, o = !1, f = n, c = 0, a = !1, t, p;
781
+ if (p = e.input.charCodeAt(e.position), p === 124)
782
+ l = !1;
783
+ else if (p === 62)
784
+ l = !0;
785
+ else
786
+ return !1;
787
+ for (e.kind = "scalar", e.result = ""; p !== 0; )
788
+ if (p = e.input.charCodeAt(++e.position), p === 43 || p === 45)
789
+ V === r ? r = p === 43 ? ce : ti : h(e, "repeat of a chomping mode identifier");
790
+ else if ((t = gi(p)) >= 0)
791
+ 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 = !0);
792
+ else
793
+ break;
794
+ if (I(p)) {
795
+ do
796
+ p = e.input.charCodeAt(++e.position);
797
+ while (I(p));
798
+ if (p === 35)
799
+ do
800
+ p = e.input.charCodeAt(++e.position);
801
+ while (!F(p) && p !== 0);
802
+ }
803
+ for (; p !== 0; ) {
804
+ for (re(e), e.lineIndent = 0, p = e.input.charCodeAt(e.position); (!o || e.lineIndent < f) && p === 32; )
805
+ e.lineIndent++, p = e.input.charCodeAt(++e.position);
806
+ if (!o && e.lineIndent > f && (f = e.lineIndent), F(p)) {
807
+ c++;
808
+ continue;
809
+ }
810
+ if (e.lineIndent < f) {
811
+ r === ce ? e.result += y.repeat(`
812
+ `, u ? 1 + c : c) : r === V && u && (e.result += `
813
+ `);
814
+ break;
815
+ }
816
+ for (l ? I(p) ? (a = !0, e.result += y.repeat(`
817
+ `, u ? 1 + c : c)) : a ? (a = !1, e.result += y.repeat(`
818
+ `, c + 1)) : c === 0 ? u && (e.result += " ") : e.result += y.repeat(`
819
+ `, c) : e.result += y.repeat(`
820
+ `, u ? 1 + c : c), u = !0, o = !0, c = 0, i = e.position; !F(p) && p !== 0; )
821
+ p = e.input.charCodeAt(++e.position);
822
+ T(e, i, e.position, !1);
823
+ }
824
+ return !0;
825
+ }
826
+ function de(e, n) {
827
+ var i, l = e.tag, r = e.anchor, u = [], o, f = !1, c;
828
+ if (e.firstTabInLine !== -1) return !1;
829
+ 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), !E(o)))); ) {
830
+ if (f = !0, e.position++, v(e, !0, -1) && e.lineIndent <= n) {
831
+ u.push(null), c = e.input.charCodeAt(e.position);
832
+ continue;
833
+ }
834
+ if (i = e.line, D(e, n, qe, !1, !0), u.push(e.result), v(e, !0, -1), c = e.input.charCodeAt(e.position), (e.line === i || e.lineIndent > n) && c !== 0)
835
+ h(e, "bad indentation of a sequence entry");
836
+ else if (e.lineIndent < n)
837
+ break;
838
+ }
839
+ return f ? (e.tag = l, e.anchor = r, e.kind = "sequence", e.result = u, !0) : !1;
840
+ }
841
+ function Si(e, n, i) {
842
+ var l, r, u, o, f, c, a = e.tag, t = e.anchor, p = {}, d = /* @__PURE__ */ Object.create(null), s = null, m = null, g = null, A = !1, S = !1, x;
843
+ if (e.firstTabInLine !== -1) return !1;
844
+ for (e.anchor !== null && (e.anchorMap[e.anchor] = p), x = e.input.charCodeAt(e.position); x !== 0; ) {
845
+ 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, (x === 63 || x === 58) && E(l))
846
+ x === 63 ? (A && (R(e, p, d, s, m, null, o, f, c), s = m = g = null), S = !0, A = !0, r = !0) : A ? (A = !1, r = !0) : h(e, "incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"), e.position += 1, x = l;
847
+ else {
848
+ if (o = e.line, f = e.lineStart, c = e.position, !D(e, i, Ke, !1, !0))
849
+ break;
850
+ if (e.line === u) {
851
+ for (x = e.input.charCodeAt(e.position); I(x); )
852
+ x = e.input.charCodeAt(++e.position);
853
+ if (x === 58)
854
+ x = e.input.charCodeAt(++e.position), E(x) || h(e, "a whitespace character is expected after the key-value separator within a block mapping"), A && (R(e, p, d, s, m, null, o, f, c), s = m = g = null), S = !0, A = !1, r = !1, s = e.tag, m = e.result;
855
+ else if (S)
856
+ h(e, "can not read an implicit mapping pair; a colon is missed");
857
+ else
858
+ return e.tag = a, e.anchor = t, !0;
859
+ } else if (S)
860
+ h(e, "can not read a block mapping entry; a multiline key may not be an implicit key");
861
+ else
862
+ return e.tag = a, e.anchor = t, !0;
863
+ }
864
+ if ((e.line === u || e.lineIndent > n) && (A && (o = e.line, f = e.lineStart, c = e.position), D(e, n, U, !0, r) && (A ? m = e.result : g = e.result), A || (R(e, p, d, s, m, g, o, f, c), s = m = g = null), v(e, !0, -1), x = e.input.charCodeAt(e.position)), (e.line === u || e.lineIndent > n) && x !== 0)
865
+ h(e, "bad indentation of a mapping entry");
866
+ else if (e.lineIndent < n)
867
+ break;
868
+ }
869
+ return A && R(e, p, d, s, m, null, o, f, c), S && (e.tag = a, e.anchor = t, e.kind = "mapping", e.result = p), S;
870
+ }
871
+ function Fi(e) {
872
+ var n, i = !1, l = !1, r, u, o;
873
+ if (o = e.input.charCodeAt(e.position), o !== 33) return !1;
874
+ if (e.tag !== null && h(e, "duplication of a tag property"), o = e.input.charCodeAt(++e.position), o === 60 ? (i = !0, o = e.input.charCodeAt(++e.position)) : o === 33 ? (l = !0, r = "!!", o = e.input.charCodeAt(++e.position)) : r = "!", n = e.position, i) {
875
+ do
876
+ o = e.input.charCodeAt(++e.position);
877
+ while (o !== 0 && o !== 62);
878
+ 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");
879
+ } else {
880
+ for (; o !== 0 && !E(o); )
881
+ o === 33 && (l ? h(e, "tag suffix cannot contain exclamation marks") : (r = e.input.slice(n - 1, e.position + 1), Ge.test(r) || h(e, "named tag handle cannot contain such characters"), l = !0, n = e.position + 1)), o = e.input.charCodeAt(++e.position);
882
+ u = e.input.slice(n, e.position), si.test(u) && h(e, "tag suffix cannot contain flow indicator characters");
883
+ }
884
+ u && !We.test(u) && h(e, "tag name cannot contain such characters: " + u);
885
+ try {
886
+ u = decodeURIComponent(u);
887
+ } catch {
888
+ h(e, "tag name is malformed: " + u);
889
+ }
890
+ return i ? e.tag = u : O.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 + '"'), !0;
891
+ }
892
+ function bi(e) {
893
+ var n, i;
894
+ if (i = e.input.charCodeAt(e.position), i !== 38) return !1;
895
+ for (e.anchor !== null && h(e, "duplication of an anchor property"), i = e.input.charCodeAt(++e.position), n = e.position; i !== 0 && !E(i) && !N(i); )
896
+ i = e.input.charCodeAt(++e.position);
897
+ 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), !0;
898
+ }
899
+ function Ti(e) {
900
+ var n, i, l;
901
+ if (l = e.input.charCodeAt(e.position), l !== 42) return !1;
902
+ for (l = e.input.charCodeAt(++e.position), n = e.position; l !== 0 && !E(l) && !N(l); )
903
+ l = e.input.charCodeAt(++e.position);
904
+ return e.position === n && h(e, "name of an alias node must contain at least one character"), i = e.input.slice(n, e.position), O.call(e.anchorMap, i) || h(e, 'unidentified alias "' + i + '"'), e.result = e.anchorMap[i], v(e, !0, -1), !0;
905
+ }
906
+ function D(e, n, i, l, r) {
907
+ var u, o, f, c = 1, a = !1, t = !1, p, d, s, m, g, A;
908
+ 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 || qe === i, l && v(e, !0, -1) && (a = !0, e.lineIndent > n ? c = 1 : e.lineIndent === n ? c = 0 : e.lineIndent < n && (c = -1)), c === 1)
909
+ for (; Fi(e) || bi(e); )
910
+ v(e, !0, -1) ? (a = !0, f = u, e.lineIndent > n ? c = 1 : e.lineIndent === n ? c = 0 : e.lineIndent < n && (c = -1)) : f = !1;
911
+ if (f && (f = a || r), (c === 1 || U === i) && (j === i || Ke === i ? g = n : g = n + 1, A = e.position - e.lineStart, c === 1 ? f && (de(e, A) || Si(e, A, g)) || wi(e, g) ? t = !0 : (o && Ei(e, g) || Ci(e, g) || _i(e, g) ? t = !0 : Ti(e) ? (t = !0, (e.tag !== null || e.anchor !== null) && h(e, "alias node should not have any properties")) : yi(e, g, j === i) && (t = !0, e.tag === null && (e.tag = "?")), e.anchor !== null && (e.anchorMap[e.anchor] = e.result)) : c === 0 && (t = f && de(e, A))), e.tag === null)
912
+ e.anchor !== null && (e.anchorMap[e.anchor] = e.result);
913
+ else if (e.tag === "?") {
914
+ 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)
915
+ if (m = e.implicitTypes[p], m.resolve(e.result)) {
916
+ e.result = m.construct(e.result), e.tag = m.tag, e.anchor !== null && (e.anchorMap[e.anchor] = e.result);
917
+ break;
918
+ }
919
+ } else if (e.tag !== "!") {
920
+ if (O.call(e.typeMap[e.kind || "fallback"], e.tag))
921
+ m = e.typeMap[e.kind || "fallback"][e.tag];
922
+ else
923
+ for (m = null, s = e.typeMap.multi[e.kind || "fallback"], p = 0, d = s.length; p < d; p += 1)
924
+ if (e.tag.slice(0, s[p].tag.length) === s[p].tag) {
925
+ m = s[p];
926
+ break;
927
+ }
928
+ m || h(e, "unknown tag !<" + e.tag + ">"), e.result !== null && m.kind !== e.kind && h(e, "unacceptable node kind for !<" + e.tag + '> tag; it should be "' + m.kind + '", not "' + e.kind + '"'), m.resolve(e.result, e.tag) ? (e.result = m.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");
929
+ }
930
+ return e.listener !== null && e.listener("close", e), e.tag !== null || e.anchor !== null || t;
931
+ }
932
+ function Oi(e) {
933
+ var n = e.position, i, l, r, u = !1, o;
934
+ 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, !0, -1), o = e.input.charCodeAt(e.position), !(e.lineIndent > 0 || o !== 37)); ) {
935
+ for (u = !0, o = e.input.charCodeAt(++e.position), i = e.position; o !== 0 && !E(o); )
936
+ o = e.input.charCodeAt(++e.position);
937
+ 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; ) {
938
+ for (; I(o); )
939
+ o = e.input.charCodeAt(++e.position);
940
+ if (o === 35) {
941
+ do
942
+ o = e.input.charCodeAt(++e.position);
943
+ while (o !== 0 && !F(o));
944
+ break;
945
+ }
946
+ if (F(o)) break;
947
+ for (i = e.position; o !== 0 && !E(o); )
948
+ o = e.input.charCodeAt(++e.position);
949
+ r.push(e.input.slice(i, e.position));
950
+ }
951
+ o !== 0 && re(e), O.call(te, l) ? te[l](e, l, r) : K(e, 'unknown document directive "' + l + '"');
952
+ }
953
+ if (v(e, !0, -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, !0, -1)) : u && h(e, "directives end mark is expected"), D(e, e.lineIndent - 1, U, !1, !0), v(e, !0, -1), e.checkLineBreaks && di.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 && W(e)) {
954
+ e.input.charCodeAt(e.position) === 46 && (e.position += 3, v(e, !0, -1));
955
+ return;
956
+ }
957
+ if (e.position < e.length - 1)
958
+ h(e, "end of the stream or a document separator is expected");
959
+ else
960
+ return;
961
+ }
962
+ function Ze(e, n) {
963
+ e = String(e), n = n || {}, e.length !== 0 && (e.charCodeAt(e.length - 1) !== 10 && e.charCodeAt(e.length - 1) !== 13 && (e += `
964
+ `), e.charCodeAt(0) === 65279 && (e = e.slice(1)));
965
+ var i = new vi(e, n), l = e.indexOf("\0");
966
+ for (l !== -1 && (i.position = l, h(i, "null byte is not allowed in input")), i.input += "\0"; i.input.charCodeAt(i.position) === 32; )
967
+ i.lineIndent += 1, i.position += 1;
968
+ for (; i.position < i.length - 1; )
969
+ Oi(i);
970
+ return i.documents;
971
+ }
972
+ function Ii(e, n, i) {
973
+ n !== null && typeof n == "object" && typeof i > "u" && (i = n, n = null);
974
+ var l = Ze(e, i);
975
+ if (typeof n != "function")
976
+ return l;
977
+ for (var r = 0, u = l.length; r < u; r += 1)
978
+ n(l[r]);
979
+ }
980
+ function Li(e, n) {
981
+ var i = Ze(e, n);
982
+ if (i.length !== 0) {
983
+ if (i.length === 1)
984
+ return i[0];
985
+ throw new w("expected a single document in the stream, but found more");
986
+ }
987
+ }
988
+ var ki = Ii, Ni = Li, ze = {
989
+ loadAll: ki,
990
+ load: Ni
991
+ }, Je = Object.prototype.toString, en = Object.prototype.hasOwnProperty, oe = 65279, Ri = 9, B = 10, Di = 13, Mi = 32, Yi = 33, Bi = 34, Z = 35, Pi = 37, Hi = 38, ji = 39, Ui = 42, nn = 44, Ki = 45, q = 58, qi = 61, Gi = 62, Wi = 63, $i = 64, rn = 91, ln = 93, Qi = 96, on = 123, Vi = 124, un = 125, _ = {};
992
+ _[0] = "\\0";
993
+ _[7] = "\\a";
994
+ _[8] = "\\b";
995
+ _[9] = "\\t";
996
+ _[10] = "\\n";
997
+ _[11] = "\\v";
998
+ _[12] = "\\f";
999
+ _[13] = "\\r";
1000
+ _[27] = "\\e";
1001
+ _[34] = '\\"';
1002
+ _[92] = "\\\\";
1003
+ _[133] = "\\N";
1004
+ _[160] = "\\_";
1005
+ _[8232] = "\\L";
1006
+ _[8233] = "\\P";
1007
+ var Xi = [
1008
+ "y",
1009
+ "Y",
1010
+ "yes",
1011
+ "Yes",
1012
+ "YES",
1013
+ "on",
1014
+ "On",
1015
+ "ON",
1016
+ "n",
1017
+ "N",
1018
+ "no",
1019
+ "No",
1020
+ "NO",
1021
+ "off",
1022
+ "Off",
1023
+ "OFF"
1024
+ ], Zi = /^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;
1025
+ function zi(e, n) {
1026
+ var i, l, r, u, o, f, c;
1027
+ if (n === null) return {};
1028
+ for (i = {}, l = Object.keys(n), r = 0, u = l.length; r < u; r += 1)
1029
+ 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 && en.call(c.styleAliases, f) && (f = c.styleAliases[f]), i[o] = f;
1030
+ return i;
1031
+ }
1032
+ function Ji(e) {
1033
+ var n, i, l;
1034
+ if (n = e.toString(16).toUpperCase(), e <= 255)
1035
+ i = "x", l = 2;
1036
+ else if (e <= 65535)
1037
+ i = "u", l = 4;
1038
+ else if (e <= 4294967295)
1039
+ i = "U", l = 8;
1040
+ else
1041
+ throw new w("code point within a string may not be greater than 0xFFFFFFFF");
1042
+ return "\\" + i + y.repeat("0", l - n.length) + n;
1043
+ }
1044
+ var er = 1, P = 2;
1045
+ function nr(e) {
1046
+ this.schema = e.schema || ie, this.indent = Math.max(1, e.indent || 2), this.noArrayIndent = e.noArrayIndent || !1, this.skipInvalid = e.skipInvalid || !1, this.flowLevel = y.isNothing(e.flowLevel) ? -1 : e.flowLevel, this.styleMap = zi(this.schema, e.styles || null), this.sortKeys = e.sortKeys || !1, this.lineWidth = e.lineWidth || 80, this.noRefs = e.noRefs || !1, this.noCompatMode = e.noCompatMode || !1, this.condenseFlow = e.condenseFlow || !1, this.quotingType = e.quotingType === '"' ? P : er, this.forceQuotes = e.forceQuotes || !1, 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;
1047
+ }
1048
+ function se(e, n) {
1049
+ for (var i = y.repeat(" ", n), l = 0, r = -1, u = "", o, f = e.length; l < f; )
1050
+ r = e.indexOf(`
1051
+ `, l), r === -1 ? (o = e.slice(l), l = f) : (o = e.slice(l, r + 1), l = r + 1), o.length && o !== `
1052
+ ` && (u += i), u += o;
1053
+ return u;
1054
+ }
1055
+ function z(e, n) {
1056
+ return `
1057
+ ` + y.repeat(" ", e.indent * n);
1058
+ }
1059
+ function ir(e, n) {
1060
+ var i, l, r;
1061
+ for (i = 0, l = e.implicitTypes.length; i < l; i += 1)
1062
+ if (r = e.implicitTypes[i], r.resolve(n))
1063
+ return !0;
1064
+ return !1;
1065
+ }
1066
+ function G(e) {
1067
+ return e === Mi || e === Ri;
1068
+ }
1069
+ function H(e) {
1070
+ return 32 <= e && e <= 126 || 161 <= e && e <= 55295 && e !== 8232 && e !== 8233 || 57344 <= e && e <= 65533 && e !== oe || 65536 <= e && e <= 1114111;
1071
+ }
1072
+ function me(e) {
1073
+ return H(e) && e !== oe && e !== Di && e !== B;
1074
+ }
1075
+ function xe(e, n, i) {
1076
+ var l = me(e), r = l && !G(e);
1077
+ return (
1078
+ // ns-plain-safe
1079
+ (i ? (
1080
+ // c = flow-in
1081
+ l
1082
+ ) : l && e !== nn && e !== rn && e !== ln && e !== on && e !== un) && e !== Z && !(n === q && !r) || me(n) && !G(n) && e === Z || n === q && r
1083
+ );
1084
+ }
1085
+ function rr(e) {
1086
+ return H(e) && e !== oe && !G(e) && e !== Ki && e !== Wi && e !== q && e !== nn && e !== rn && e !== ln && e !== on && e !== un && e !== Z && e !== Hi && e !== Ui && e !== Yi && e !== Vi && e !== qi && e !== Gi && e !== ji && e !== Bi && e !== Pi && e !== $i && e !== Qi;
1087
+ }
1088
+ function lr(e) {
1089
+ return !G(e) && e !== q;
1090
+ }
1091
+ function M(e, n) {
1092
+ var i = e.charCodeAt(n), l;
1093
+ 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;
1094
+ }
1095
+ function fn(e) {
1096
+ var n = /^\n* /;
1097
+ return n.test(e);
1098
+ }
1099
+ var cn = 1, J = 2, an = 3, pn = 4, k = 5;
1100
+ function or(e, n, i, l, r, u, o, f) {
1101
+ var c, a = 0, t = null, p = !1, d = !1, s = l !== -1, m = -1, g = rr(M(e, 0)) && lr(M(e, e.length - 1));
1102
+ if (n || o)
1103
+ for (c = 0; c < e.length; a >= 65536 ? c += 2 : c++) {
1104
+ if (a = M(e, c), !H(a))
1105
+ return k;
1106
+ g = g && xe(a, t, f), t = a;
1107
+ }
1108
+ else {
1109
+ for (c = 0; c < e.length; a >= 65536 ? c += 2 : c++) {
1110
+ if (a = M(e, c), a === B)
1111
+ p = !0, s && (d = d || // Foldable line = too long, and not more-indented.
1112
+ c - m - 1 > l && e[m + 1] !== " ", m = c);
1113
+ else if (!H(a))
1114
+ return k;
1115
+ g = g && xe(a, t, f), t = a;
1116
+ }
1117
+ d = d || s && c - m - 1 > l && e[m + 1] !== " ";
1118
+ }
1119
+ return !p && !d ? g && !o && !r(e) ? cn : u === P ? k : J : i > 9 && fn(e) ? k : o ? u === P ? k : J : d ? pn : an;
1120
+ }
1121
+ function ur(e, n, i, l, r) {
1122
+ e.dump = (function() {
1123
+ if (n.length === 0)
1124
+ return e.quotingType === P ? '""' : "''";
1125
+ if (!e.noCompatMode && (Xi.indexOf(n) !== -1 || Zi.test(n)))
1126
+ return e.quotingType === P ? '"' + n + '"' : "'" + n + "'";
1127
+ 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;
1128
+ function c(a) {
1129
+ return ir(e, a);
1130
+ }
1131
+ switch (or(
1132
+ n,
1133
+ f,
1134
+ e.indent,
1135
+ o,
1136
+ c,
1137
+ e.quotingType,
1138
+ e.forceQuotes && !l,
1139
+ r
1140
+ )) {
1141
+ case cn:
1142
+ return n;
1143
+ case J:
1144
+ return "'" + n.replace(/'/g, "''") + "'";
1145
+ case an:
1146
+ return "|" + ge(n, e.indent) + Ae(se(n, u));
1147
+ case pn:
1148
+ return ">" + ge(n, e.indent) + Ae(se(fr(n, o), u));
1149
+ case k:
1150
+ return '"' + cr(n) + '"';
1151
+ default:
1152
+ throw new w("impossible error: invalid scalar style");
1153
+ }
1154
+ })();
1155
+ }
1156
+ function ge(e, n) {
1157
+ var i = fn(e) ? String(n) : "", l = e[e.length - 1] === `
1158
+ `, r = l && (e[e.length - 2] === `
1159
+ ` || e === `
1160
+ `), u = r ? "+" : l ? "" : "-";
1161
+ return i + u + `
1162
+ `;
1163
+ }
1164
+ function Ae(e) {
1165
+ return e[e.length - 1] === `
1166
+ ` ? e.slice(0, -1) : e;
1167
+ }
1168
+ function fr(e, n) {
1169
+ for (var i = /(\n+)([^\n]*)/g, l = (function() {
1170
+ var a = e.indexOf(`
1171
+ `);
1172
+ return a = a !== -1 ? a : e.length, i.lastIndex = a, ve(e.slice(0, a), n);
1173
+ })(), r = e[0] === `
1174
+ ` || e[0] === " ", u, o; o = i.exec(e); ) {
1175
+ var f = o[1], c = o[2];
1176
+ u = c[0] === " ", l += f + (!r && !u && c !== "" ? `
1177
+ ` : "") + ve(c, n), r = u;
1178
+ }
1179
+ return l;
1180
+ }
1181
+ function ve(e, n) {
1182
+ if (e === "" || e[0] === " ") return e;
1183
+ for (var i = / [^ ]/g, l, r = 0, u, o = 0, f = 0, c = ""; l = i.exec(e); )
1184
+ f = l.index, f - r > n && (u = o > r ? o : f, c += `
1185
+ ` + e.slice(r, u), r = u + 1), o = f;
1186
+ return c += `
1187
+ `, e.length - r > n && o > r ? c += e.slice(r, o) + `
1188
+ ` + e.slice(o + 1) : c += e.slice(r), c.slice(1);
1189
+ }
1190
+ function cr(e) {
1191
+ for (var n = "", i = 0, l, r = 0; r < e.length; i >= 65536 ? r += 2 : r++)
1192
+ i = M(e, r), l = _[i], !l && H(i) ? (n += e[r], i >= 65536 && (n += e[r + 1])) : n += l || Ji(i);
1193
+ return n;
1194
+ }
1195
+ function ar(e, n, i) {
1196
+ var l = "", r = e.tag, u, o, f;
1197
+ for (u = 0, o = i.length; u < o; u += 1)
1198
+ f = i[u], e.replacer && (f = e.replacer.call(i, String(u), f)), (b(e, n, f, !1, !1) || typeof f > "u" && b(e, n, null, !1, !1)) && (l !== "" && (l += "," + (e.condenseFlow ? "" : " ")), l += e.dump);
1199
+ e.tag = r, e.dump = "[" + l + "]";
1200
+ }
1201
+ function ye(e, n, i, l) {
1202
+ var r = "", u = e.tag, o, f, c;
1203
+ for (o = 0, f = i.length; o < f; o += 1)
1204
+ c = i[o], e.replacer && (c = e.replacer.call(i, String(o), c)), (b(e, n + 1, c, !0, !0, !1, !0) || typeof c > "u" && b(e, n + 1, null, !0, !0, !1, !0)) && ((!l || r !== "") && (r += z(e, n)), e.dump && B === e.dump.charCodeAt(0) ? r += "-" : r += "- ", r += e.dump);
1205
+ e.tag = u, e.dump = r || "[]";
1206
+ }
1207
+ function pr(e, n, i) {
1208
+ var l = "", r = e.tag, u = Object.keys(i), o, f, c, a, t;
1209
+ for (o = 0, f = u.length; o < f; o += 1)
1210
+ t = "", l !== "" && (t += ", "), e.condenseFlow && (t += '"'), c = u[o], a = i[c], e.replacer && (a = e.replacer.call(i, c, a)), b(e, n, c, !1, !1) && (e.dump.length > 1024 && (t += "? "), t += e.dump + (e.condenseFlow ? '"' : "") + ":" + (e.condenseFlow ? "" : " "), b(e, n, a, !1, !1) && (t += e.dump, l += t));
1211
+ e.tag = r, e.dump = "{" + l + "}";
1212
+ }
1213
+ function tr(e, n, i, l) {
1214
+ var r = "", u = e.tag, o = Object.keys(i), f, c, a, t, p, d;
1215
+ if (e.sortKeys === !0)
1216
+ o.sort();
1217
+ else if (typeof e.sortKeys == "function")
1218
+ o.sort(e.sortKeys);
1219
+ else if (e.sortKeys)
1220
+ throw new w("sortKeys must be a boolean or a function");
1221
+ for (f = 0, c = o.length; f < c; f += 1)
1222
+ d = "", (!l || r !== "") && (d += z(e, n)), a = o[f], t = i[a], e.replacer && (t = e.replacer.call(i, a, t)), b(e, n + 1, a, !0, !0, !0) && (p = e.tag !== null && e.tag !== "?" || e.dump && e.dump.length > 1024, p && (e.dump && B === e.dump.charCodeAt(0) ? d += "?" : d += "? "), d += e.dump, p && (d += z(e, n)), b(e, n + 1, t, !0, p) && (e.dump && B === e.dump.charCodeAt(0) ? d += ":" : d += ": ", d += e.dump, r += d));
1223
+ e.tag = u, e.dump = r || "{}";
1224
+ }
1225
+ function Ce(e, n, i) {
1226
+ var l, r, u, o, f, c;
1227
+ for (r = i ? e.explicitTypes : e.implicitTypes, u = 0, o = r.length; u < o; u += 1)
1228
+ if (f = r[u], (f.instanceOf || f.predicate) && (!f.instanceOf || typeof n == "object" && n instanceof f.instanceOf) && (!f.predicate || f.predicate(n))) {
1229
+ if (i ? f.multi && f.representName ? e.tag = f.representName(n) : e.tag = f.tag : e.tag = "?", f.represent) {
1230
+ if (c = e.styleMap[f.tag] || f.defaultStyle, Je.call(f.represent) === "[object Function]")
1231
+ l = f.represent(n, c);
1232
+ else if (en.call(f.represent, c))
1233
+ l = f.represent[c](n, c);
1234
+ else
1235
+ throw new w("!<" + f.tag + '> tag resolver accepts not "' + c + '" style');
1236
+ e.dump = l;
1237
+ }
1238
+ return !0;
1239
+ }
1240
+ return !1;
1241
+ }
1242
+ function b(e, n, i, l, r, u, o) {
1243
+ e.tag = null, e.dump = i, Ce(e, i, !1) || Ce(e, i, !0);
1244
+ var f = Je.call(e.dump), c = l, a;
1245
+ l && (l = e.flowLevel < 0 || e.flowLevel > n);
1246
+ var t = f === "[object Object]" || f === "[object Array]", p, d;
1247
+ if (t && (p = e.duplicates.indexOf(i), d = p !== -1), (e.tag !== null && e.tag !== "?" || d || e.indent !== 2 && n > 0) && (r = !1), d && e.usedDuplicates[p])
1248
+ e.dump = "*ref_" + p;
1249
+ else {
1250
+ if (t && d && !e.usedDuplicates[p] && (e.usedDuplicates[p] = !0), f === "[object Object]")
1251
+ 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));
1252
+ else if (f === "[object Array]")
1253
+ l && e.dump.length !== 0 ? (e.noArrayIndent && !o && n > 0 ? ye(e, n - 1, e.dump, r) : ye(e, n, e.dump, r), d && (e.dump = "&ref_" + p + e.dump)) : (ar(e, n, e.dump), d && (e.dump = "&ref_" + p + " " + e.dump));
1254
+ else if (f === "[object String]")
1255
+ e.tag !== "?" && ur(e, e.dump, n, u, c);
1256
+ else {
1257
+ if (f === "[object Undefined]")
1258
+ return !1;
1259
+ if (e.skipInvalid) return !1;
1260
+ throw new w("unacceptable kind of an object to dump " + f);
1261
+ }
1262
+ e.tag !== null && e.tag !== "?" && (a = encodeURI(
1263
+ e.tag[0] === "!" ? e.tag.slice(1) : e.tag
1264
+ ).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);
1265
+ }
1266
+ return !0;
1267
+ }
1268
+ function hr(e, n) {
1269
+ var i = [], l = [], r, u;
1270
+ for (ee(e, i, l), r = 0, u = l.length; r < u; r += 1)
1271
+ n.duplicates.push(i[l[r]]);
1272
+ n.usedDuplicates = new Array(u);
1273
+ }
1274
+ function ee(e, n, i) {
1275
+ var l, r, u;
1276
+ if (e !== null && typeof e == "object")
1277
+ if (r = n.indexOf(e), r !== -1)
1278
+ i.indexOf(r) === -1 && i.push(r);
1279
+ else if (n.push(e), Array.isArray(e))
1280
+ for (r = 0, u = e.length; r < u; r += 1)
1281
+ ee(e[r], n, i);
1282
+ else
1283
+ for (l = Object.keys(e), r = 0, u = l.length; r < u; r += 1)
1284
+ ee(e[l[r]], n, i);
1285
+ }
1286
+ function dr(e, n) {
1287
+ n = n || {};
1288
+ var i = new nr(n);
1289
+ i.noRefs || hr(e, i);
1290
+ var l = e;
1291
+ return i.replacer && (l = i.replacer.call({ "": l }, "", l)), b(i, 0, l, !0, !0) ? i.dump + `
1292
+ ` : "";
1293
+ }
1294
+ var sr = dr, mr = {
1295
+ dump: sr
1296
+ };
1297
+ function ue(e, n) {
1298
+ return function() {
1299
+ throw new Error("Function yaml." + e + " is removed in js-yaml 4. Use yaml." + n + " instead, which is now safe by default.");
1300
+ };
1301
+ }
1302
+ var xr = C, gr = Ee, Ar = Te, vr = Ne, yr = Re, Cr = ie, _r = ze.load, wr = ze.loadAll, Er = mr.dump, Sr = w, Fr = {
1303
+ binary: Pe,
1304
+ float: ke,
1305
+ map: be,
1306
+ null: Oe,
1307
+ pairs: je,
1308
+ set: Ue,
1309
+ timestamp: Ye,
1310
+ bool: Ie,
1311
+ int: Le,
1312
+ merge: Be,
1313
+ omap: He,
1314
+ seq: Fe,
1315
+ str: Se
1316
+ }, br = ue("safeLoad", "load"), Tr = ue("safeLoadAll", "loadAll"), Or = ue("safeDump", "dump"), Ir = {
1317
+ Type: xr,
1318
+ Schema: gr,
1319
+ FAILSAFE_SCHEMA: Ar,
1320
+ JSON_SCHEMA: vr,
1321
+ CORE_SCHEMA: yr,
1322
+ DEFAULT_SCHEMA: Cr,
1323
+ load: _r,
1324
+ loadAll: wr,
1325
+ dump: Er,
1326
+ YAMLException: Sr,
1327
+ types: Fr,
1328
+ safeLoad: br,
1329
+ safeLoadAll: Tr,
1330
+ safeDump: Or
1331
+ };
1332
+ export {
1333
+ yr as CORE_SCHEMA,
1334
+ Cr as DEFAULT_SCHEMA,
1335
+ Ar as FAILSAFE_SCHEMA,
1336
+ vr as JSON_SCHEMA,
1337
+ gr as Schema,
1338
+ xr as Type,
1339
+ Sr as YAMLException,
1340
+ Ir as default,
1341
+ Er as dump,
1342
+ _r as load,
1343
+ wr as loadAll,
1344
+ Or as safeDump,
1345
+ br as safeLoad,
1346
+ Tr as safeLoadAll,
1347
+ Fr as types
1348
+ };
1349
+ //# sourceMappingURL=js-yaml-BBnY0952.js.map