@storm-software/config-tools 1.142.1 → 1.142.2

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.
Files changed (128) hide show
  1. package/README.md +1 -1
  2. package/dist/acorn-L4DOC4MD.cjs +3131 -0
  3. package/dist/acorn-W3WKDYQS.js +3131 -0
  4. package/dist/angular-KZBUGLAB.cjs +3014 -0
  5. package/dist/angular-QCZRQONA.js +3014 -0
  6. package/dist/babel-2YQL7BNO.cjs +7166 -0
  7. package/dist/babel-66ARC5Z7.js +7166 -0
  8. package/dist/chunk-2AAM5DJO.cjs +70 -0
  9. package/dist/chunk-2NUTLYUV.js +6 -0
  10. package/dist/chunk-2XFPIBCN.js +164 -0
  11. package/dist/chunk-3ALZEFKM.cjs +2645 -0
  12. package/dist/chunk-3ER2D3OU.js +67 -0
  13. package/dist/chunk-3W5JECK3.cjs +6 -0
  14. package/dist/chunk-46O7IOH6.js +24 -0
  15. package/dist/chunk-4AYNBMPP.cjs +27 -0
  16. package/dist/chunk-4OKHW64R.js +271 -0
  17. package/dist/chunk-4OURELB7.js +6 -0
  18. package/dist/chunk-5EL2OHUB.js +84 -0
  19. package/dist/chunk-6E5A2ZAH.cjs +451 -0
  20. package/dist/chunk-6KJOU57T.cjs +4054 -0
  21. package/dist/chunk-6O7E2ODJ.cjs +44 -0
  22. package/dist/chunk-7A74BDUJ.js +70 -0
  23. package/dist/chunk-7EC2JMQH.cjs +95 -0
  24. package/dist/chunk-7NYYYVNT.cjs +67 -0
  25. package/dist/chunk-AWCT22F2.cjs +271 -0
  26. package/dist/chunk-B5R5SGMG.cjs +50 -0
  27. package/dist/chunk-BFNZYC5O.js +64 -0
  28. package/dist/chunk-BJSQ7LGZ.cjs +70 -0
  29. package/dist/chunk-BQUXDMBD.cjs +144 -0
  30. package/dist/chunk-BVYQ2BKK.js +451 -0
  31. package/dist/chunk-C47MHGNY.js +6 -0
  32. package/dist/chunk-CCTOWFDI.js +95 -0
  33. package/dist/chunk-DBERGKMJ.cjs +765 -0
  34. package/dist/chunk-DFJNOFN2.cjs +61 -0
  35. package/dist/chunk-E7NMPYYE.cjs +93 -0
  36. package/dist/chunk-EXWTV42F.js +51 -0
  37. package/dist/chunk-FBGCL5ZA.cjs +24 -0
  38. package/dist/chunk-G5KDHCJJ.cjs +28 -0
  39. package/dist/chunk-GKOLL5ZA.cjs +51 -0
  40. package/dist/chunk-GWLF37RE.cjs +14 -0
  41. package/dist/chunk-GYCLBSTB.js +2645 -0
  42. package/dist/chunk-HBVGMJMF.js +27 -0
  43. package/dist/chunk-HM2PVPCY.js +144 -0
  44. package/dist/chunk-IWKKZOUZ.js +34067 -0
  45. package/dist/chunk-JIMG6E5P.cjs +21 -0
  46. package/dist/chunk-JMTLS4UN.js +27 -0
  47. package/dist/chunk-JPL6SA45.cjs +27 -0
  48. package/dist/chunk-KRV5ZLBN.cjs +510 -0
  49. package/dist/chunk-LQFUWYSF.js +70 -0
  50. package/dist/chunk-N3ELM5YV.js +28 -0
  51. package/dist/chunk-NO5ZHAIA.js +1120 -0
  52. package/dist/chunk-O4SGVAEB.cjs +33 -0
  53. package/dist/chunk-OL4KMEX5.js +7601 -0
  54. package/dist/chunk-PEPDFP2O.js +33 -0
  55. package/dist/chunk-PKJKHCLN.cjs +84 -0
  56. package/dist/chunk-QHDHDNID.cjs +6 -0
  57. package/dist/chunk-QHWDK2XS.js +93 -0
  58. package/dist/chunk-QUWIUSLT.cjs +34070 -0
  59. package/dist/chunk-QUZ63TS4.cjs +39947 -0
  60. package/dist/chunk-REWVG2LP.cjs +164 -0
  61. package/dist/chunk-S3QN6LZI.js +39948 -0
  62. package/dist/chunk-SKMG52TD.cjs +6 -0
  63. package/dist/chunk-TRG5FOW5.js +44 -0
  64. package/dist/chunk-TVUMXFOR.js +6 -0
  65. package/dist/chunk-TX6WHZNM.js +21 -0
  66. package/dist/chunk-UIA5EFWJ.cjs +7601 -0
  67. package/dist/chunk-VDAYBDFK.js +50 -0
  68. package/dist/chunk-VPMAS2N2.cjs +1120 -0
  69. package/dist/chunk-WTEHBMCM.js +14 -0
  70. package/dist/chunk-XQXUMNEU.js +510 -0
  71. package/dist/chunk-YJSIQHKP.cjs +6 -0
  72. package/dist/chunk-ZQV3QSH5.js +4054 -0
  73. package/dist/chunk-ZY35TVMB.js +765 -0
  74. package/dist/create-storm-config.cjs +36 -0
  75. package/dist/create-storm-config.d.cts +23 -0
  76. package/dist/create-storm-config.d.ts +23 -0
  77. package/dist/create-storm-config.js +36 -0
  78. package/dist/dist-M3E36L2G.cjs +17571 -0
  79. package/dist/dist-M5DWQXRA.js +17570 -0
  80. package/dist/esm-HOUHOM6T.cjs +1716 -0
  81. package/dist/esm-KALGCEZT.js +1716 -0
  82. package/dist/estree-OTYURYPI.js +4859 -0
  83. package/dist/estree-VNPZ3XG5.cjs +4859 -0
  84. package/dist/execa-XEKRORBS.cjs +2424 -0
  85. package/dist/execa-XN4WNY2K.js +2424 -0
  86. package/dist/flow-3RTSTJJN.cjs +28076 -0
  87. package/dist/flow-BEGL6EBU.js +28076 -0
  88. package/dist/get-config.cjs +35 -0
  89. package/dist/get-config.d.cts +19 -0
  90. package/dist/get-config.d.ts +19 -0
  91. package/dist/get-config.js +35 -0
  92. package/dist/glimmer-SJ3NEFEI.cjs +3062 -0
  93. package/dist/glimmer-T7L4DGCA.js +3062 -0
  94. package/dist/graphql-N7VNZRCY.cjs +1355 -0
  95. package/dist/graphql-ZGKSF4HS.js +1355 -0
  96. package/dist/html-76MY4VK3.cjs +3036 -0
  97. package/dist/html-PSA3ZLF3.js +3036 -0
  98. package/dist/index.cjs +157 -0
  99. package/dist/index.d.cts +25 -0
  100. package/dist/index.d.ts +25 -0
  101. package/dist/index.js +157 -0
  102. package/dist/json5-AWKL3VDN.js +10 -0
  103. package/dist/json5-H2TAIKSA.cjs +10 -0
  104. package/dist/jsonc-AGNNV3TC.js +15 -0
  105. package/dist/jsonc-QNZQN4WT.cjs +15 -0
  106. package/dist/markdown-C7FDHMIG.js +3846 -0
  107. package/dist/markdown-GO2SD6ZH.cjs +3846 -0
  108. package/dist/meriyah-BAACQM2N.cjs +2720 -0
  109. package/dist/meriyah-ED62ZUKL.js +2720 -0
  110. package/dist/multipart-parser-6JNXK7VG.js +187 -0
  111. package/dist/multipart-parser-MXQWMODT.cjs +187 -0
  112. package/dist/postcss-2EUHH6PK.cjs +5440 -0
  113. package/dist/postcss-KWRUITUE.js +5440 -0
  114. package/dist/prettier-3OESQDIX.cjs +23560 -0
  115. package/dist/prettier-PADI4U76.js +23559 -0
  116. package/dist/toml-E3DJZTNR.js +10 -0
  117. package/dist/toml-VAFZQSC5.cjs +10 -0
  118. package/dist/types.cjs +9 -0
  119. package/dist/types.d.cts +50 -0
  120. package/dist/types.d.ts +50 -0
  121. package/dist/types.js +9 -0
  122. package/dist/typescript-YFBMA3EY.js +14956 -0
  123. package/dist/typescript-ZI3EJ455.cjs +14956 -0
  124. package/dist/yaml-2WY5XICX.js +10 -0
  125. package/dist/yaml-6R64VIIN.js +4584 -0
  126. package/dist/yaml-KDDF5JAF.cjs +4584 -0
  127. package/dist/yaml-X7EHFDS4.cjs +10 -0
  128. package/package.json +2 -2
@@ -0,0 +1,4584 @@
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } var _class; var _class2;
2
+
3
+
4
+
5
+ var _chunkDFJNOFN2cjs = require('./chunk-DFJNOFN2.cjs');
6
+
7
+ // ../../node_modules/.pnpm/prettier@3.4.2/node_modules/prettier/plugins/yaml.mjs
8
+ function Pi(t) {
9
+ if (typeof t == "string") return je;
10
+ if (Array.isArray(t)) return Qe;
11
+ if (!t) return;
12
+ let { type: e } = t;
13
+ if (Et.has(e)) return e;
14
+ }
15
+ function xi(t) {
16
+ let e = t === null ? "null" : typeof t;
17
+ if (e !== "string" && e !== "object") return `Unexpected doc '${e}',
18
+ Expected it to be 'string' or 'object'.`;
19
+ if (et(t)) throw new Error("doc is valid.");
20
+ let n = Object.prototype.toString.call(t);
21
+ if (n !== "[object Object]") return `Unexpected doc '${n}'.`;
22
+ let r = _i([...Et].map((s) => `'${s}'`));
23
+ return `Unexpected doc.type '${t.type}'.
24
+ Expected it to be ${r}.`;
25
+ }
26
+ function tt(t, e) {
27
+ return he(e), { type: Oe, contents: e, n: t };
28
+ }
29
+ function ke(t, e = {}) {
30
+ return he(t), St(e.expandedStates, true), { type: Le, id: e.id, contents: t, break: !!e.shouldBreak, expandedStates: e.expandedStates };
31
+ }
32
+ function on(t) {
33
+ return tt(Number.NEGATIVE_INFINITY, t);
34
+ }
35
+ function ir(t) {
36
+ return tt({ type: "root" }, t);
37
+ }
38
+ function or(t) {
39
+ return tt(-1, t);
40
+ }
41
+ function an(t, e) {
42
+ return ke(t[0], { ...e, expandedStates: t });
43
+ }
44
+ function wt(t) {
45
+ return St(t), { type: Ae, parts: t };
46
+ }
47
+ function nt(t, e = "", n = {}) {
48
+ return he(t), e !== "" && he(e), { type: Te, breakContents: t, flatContents: e, groupId: n.groupId };
49
+ }
50
+ function ar(t) {
51
+ return he(t), { type: Ce, contents: t };
52
+ }
53
+ function v(t, e) {
54
+ he(t), St(e);
55
+ let n = [];
56
+ for (let r = 0; r < e.length; r++) r !== 0 && n.push(t), n.push(e[r]);
57
+ return n;
58
+ }
59
+ function Bi(t, e) {
60
+ if (typeof t == "string") return e(t);
61
+ let n = /* @__PURE__ */ new Map();
62
+ return r(t);
63
+ function r(i) {
64
+ if (n.has(i)) return n.get(i);
65
+ let o = s(i);
66
+ return n.set(i, o), o;
67
+ }
68
+ _chunkDFJNOFN2cjs.__name.call(void 0, r, "r");
69
+ function s(i) {
70
+ switch (et(i)) {
71
+ case Qe:
72
+ return e(i.map(r));
73
+ case Ae:
74
+ return e({ ...i, parts: i.parts.map(r) });
75
+ case Te:
76
+ return e({ ...i, breakContents: r(i.breakContents), flatContents: r(i.flatContents) });
77
+ case Le: {
78
+ let { expandedStates: o, contents: a } = i;
79
+ return o ? (o = o.map(r), a = o[0]) : a = r(a), e({ ...i, contents: a, expandedStates: o });
80
+ }
81
+ case Oe:
82
+ case Ge:
83
+ case Xe:
84
+ case Ze:
85
+ case Ce:
86
+ return e({ ...i, contents: r(i.contents) });
87
+ case je:
88
+ case Je:
89
+ case He:
90
+ case ze:
91
+ case te:
92
+ case Me:
93
+ return e(i);
94
+ default:
95
+ throw new sn(i);
96
+ }
97
+ }
98
+ _chunkDFJNOFN2cjs.__name.call(void 0, s, "s");
99
+ }
100
+ function cr(t, e = rt) {
101
+ return Bi(t, (n) => typeof n == "string" ? v(e, n.split(`
102
+ `)) : n);
103
+ }
104
+ function Ot(t) {
105
+ return (e, n, r) => {
106
+ let s = !!(r != null && r.backwards);
107
+ if (n === false) return false;
108
+ let { length: i } = e, o = n;
109
+ for (; o >= 0 && o < i; ) {
110
+ let a = e.charAt(o);
111
+ if (t instanceof RegExp) {
112
+ if (!t.test(a)) return o;
113
+ } else if (!t.includes(a)) return o;
114
+ s ? o-- : o++;
115
+ }
116
+ return o === -1 || o === i ? o : false;
117
+ };
118
+ }
119
+ function $i(t, e, n) {
120
+ let r = !!(n != null && n.backwards);
121
+ if (e === false) return false;
122
+ let s = t.charAt(e);
123
+ if (r) {
124
+ if (t.charAt(e - 1) === "\r" && s === `
125
+ `) return e - 2;
126
+ if (s === `
127
+ ` || s === "\r" || s === "\u2028" || s === "\u2029") return e - 1;
128
+ } else {
129
+ if (s === "\r" && t.charAt(e + 1) === `
130
+ `) return e + 2;
131
+ if (s === `
132
+ ` || s === "\r" || s === "\u2028" || s === "\u2029") return e + 1;
133
+ }
134
+ return e;
135
+ }
136
+ function Fi(t, e) {
137
+ let n = e - 1;
138
+ n = cn(t, n, { backwards: true }), n = ln(t, n, { backwards: true }), n = cn(t, n, { backwards: true });
139
+ let r = ln(t, n, { backwards: true });
140
+ return n !== r;
141
+ }
142
+ function ur(t, e) {
143
+ let { node: n } = t;
144
+ if (n.type === "root" && e.filepath && /(?:[/\\]|^)\.(?:prettier|stylelint|lintstaged)rc$/u.test(e.filepath)) return async (r) => {
145
+ let s = await r(e.originalText, { parser: "json" });
146
+ return s ? [s, N] : void 0;
147
+ };
148
+ }
149
+ function it(t) {
150
+ if (st !== null && typeof st.property) {
151
+ let e = st;
152
+ return st = it.prototype = null, e;
153
+ }
154
+ return st = it.prototype = _nullishCoalesce(t, () => ( /* @__PURE__ */ Object.create(null))), new it();
155
+ }
156
+ function un(t) {
157
+ return it(t);
158
+ }
159
+ function Ui(t, e = "type") {
160
+ un(t);
161
+ function n(r) {
162
+ let s = r[e], i = t[s];
163
+ if (!Array.isArray(i)) throw Object.assign(new Error(`Missing visitor keys for '${s}'.`), { node: r });
164
+ return i;
165
+ }
166
+ _chunkDFJNOFN2cjs.__name.call(void 0, n, "n");
167
+ return n;
168
+ }
169
+ function ve(t) {
170
+ return t.position.start.offset;
171
+ }
172
+ function dr(t) {
173
+ return t.position.end.offset;
174
+ }
175
+ function yr(t) {
176
+ return /^\s*@(?:prettier|format)\s*$/u.test(t);
177
+ }
178
+ function Er(t) {
179
+ return /^\s*#[^\S\n]*@(?:prettier|format)\s*?(?:\n|$)/u.test(t);
180
+ }
181
+ function Sr(t) {
182
+ return `# @format
183
+
184
+ ${t}`;
185
+ }
186
+ function Wi(t) {
187
+ return Array.isArray(t) && t.length > 0;
188
+ }
189
+ function H(t, e) {
190
+ return typeof (t == null ? void 0 : t.type) == "string" && (!e || e.includes(t.type));
191
+ }
192
+ function pn(t, e, n) {
193
+ return e("children" in t ? { ...t, children: t.children.map((r) => pn(r, e, t)) } : t, n);
194
+ }
195
+ function Pe(t, e, n) {
196
+ Object.defineProperty(t, e, { get: n, enumerable: false });
197
+ }
198
+ function br(t, e) {
199
+ let n = 0, r = e.length;
200
+ for (let s = t.position.end.offset - 1; s < r; s++) {
201
+ let i = e[s];
202
+ if (i === `
203
+ ` && n++, n === 1 && /\S/u.test(i)) return false;
204
+ if (n === 2) return true;
205
+ }
206
+ return false;
207
+ }
208
+ function Lt(t) {
209
+ let { node: e } = t;
210
+ switch (e.type) {
211
+ case "tag":
212
+ case "anchor":
213
+ case "comment":
214
+ return false;
215
+ }
216
+ let n = t.stack.length;
217
+ for (let r = 1; r < n; r++) {
218
+ let s = t.stack[r], i = t.stack[r - 1];
219
+ if (Array.isArray(i) && typeof s == "number" && s !== i.length - 1) return false;
220
+ }
221
+ return true;
222
+ }
223
+ function At(t) {
224
+ return Ie(t.children) ? At(x(false, t.children, -1)) : t;
225
+ }
226
+ function wr(t) {
227
+ return t.value.trim() === "prettier-ignore";
228
+ }
229
+ function Nr(t) {
230
+ let { node: e } = t;
231
+ if (e.type === "documentBody") {
232
+ let n = t.parent.head;
233
+ return R(n) && wr(x(false, n.endComments, -1));
234
+ }
235
+ return Z(e) && wr(x(false, e.leadingComments, -1));
236
+ }
237
+ function _e(t) {
238
+ return !Ie(t.children) && !ji(t);
239
+ }
240
+ function ji(t) {
241
+ return Z(t) || ie(t) || mn(t) || K(t) || R(t);
242
+ }
243
+ function Z(t) {
244
+ return Ie(t == null ? void 0 : t.leadingComments);
245
+ }
246
+ function ie(t) {
247
+ return Ie(t == null ? void 0 : t.middleComments);
248
+ }
249
+ function mn(t) {
250
+ return t == null ? void 0 : t.indicatorComment;
251
+ }
252
+ function K(t) {
253
+ return t == null ? void 0 : t.trailingComment;
254
+ }
255
+ function R(t) {
256
+ return Ie(t == null ? void 0 : t.endComments);
257
+ }
258
+ function Or(t) {
259
+ let e = [], n;
260
+ for (let r of t.split(/( +)/u)) r !== " " ? n === " " ? e.push(r) : e.push((e.pop() || "") + r) : n === void 0 && e.unshift(""), n = r;
261
+ return n === " " && e.push((e.pop() || "") + " "), e[0] === "" && (e.shift(), e.unshift(" " + (e.shift() || ""))), e;
262
+ }
263
+ function Lr(t, e, n) {
264
+ let r = e.split(`
265
+ `).map((s, i, o) => i === 0 && i === o.length - 1 ? s : i !== 0 && i !== o.length - 1 ? s.trim() : i === 0 ? s.trimEnd() : s.trimStart());
266
+ return n.proseWrap === "preserve" ? r.map((s) => s.length === 0 ? [] : [s]) : r.map((s) => s.length === 0 ? [] : Or(s)).reduce((s, i, o) => o !== 0 && r[o - 1].length > 0 && i.length > 0 && !(t === "quoteDouble" && x(false, x(false, s, -1), -1).endsWith("\\")) ? [...s.slice(0, -1), [...x(false, s, -1), ...i]] : [...s, i], []).map((s) => n.proseWrap === "never" ? [s.join(" ")] : s);
267
+ }
268
+ function Ar(t, { parentIndent: e, isLastDescendant: n, options: r }) {
269
+ let s = t.position.start.line === t.position.end.line ? "" : r.originalText.slice(t.position.start.offset, t.position.end.offset).match(/^[^\n]*\n(.*)$/su)[1], i;
270
+ if (t.indent === null) {
271
+ let c = s.match(/^(?<leadingSpace> *)[^\n\r ]/mu);
272
+ i = c ? c.groups.leadingSpace.length : Number.POSITIVE_INFINITY;
273
+ } else i = t.indent - 1 + e;
274
+ let o = s.split(`
275
+ `).map((c) => c.slice(i));
276
+ if (r.proseWrap === "preserve" || t.type === "blockLiteral") return a(o.map((c) => c.length === 0 ? [] : [c]));
277
+ return a(o.map((c) => c.length === 0 ? [] : Or(c)).reduce((c, l, f) => f !== 0 && o[f - 1].length > 0 && l.length > 0 && !/^\s/u.test(l[0]) && !/^\s|\s$/u.test(x(false, c, -1)) ? [...c.slice(0, -1), [...x(false, c, -1), ...l]] : [...c, l], []).map((c) => c.reduce((l, f) => l.length > 0 && /\s$/u.test(x(false, l, -1)) ? [...l.slice(0, -1), x(false, l, -1) + " " + f] : [...l, f], [])).map((c) => r.proseWrap === "never" ? [c.join(" ")] : c));
278
+ function a(c) {
279
+ if (t.chomping === "keep") return x(false, c, -1).length === 0 ? c.slice(0, -1) : c;
280
+ let l = 0;
281
+ for (let f = c.length - 1; f >= 0 && c[f].length === 0; f--) l++;
282
+ return l === 0 ? c : l >= 2 && !n ? c.slice(0, -(l - 1)) : c.slice(0, -l);
283
+ }
284
+ _chunkDFJNOFN2cjs.__name.call(void 0, a, "a");
285
+ }
286
+ function ot(t) {
287
+ if (!t) return true;
288
+ switch (t.type) {
289
+ case "plain":
290
+ case "quoteDouble":
291
+ case "quoteSingle":
292
+ case "alias":
293
+ case "flowMapping":
294
+ case "flowSequence":
295
+ return true;
296
+ default:
297
+ return false;
298
+ }
299
+ }
300
+ function Tt(t, e) {
301
+ let { node: n, root: r } = t, s;
302
+ return hn.has(r) ? s = hn.get(r) : (s = /* @__PURE__ */ new Set(), hn.set(r, s)), !s.has(n.position.end.line) && (s.add(n.position.end.line), br(n, e) && !gn(t.parent)) ? Nt : "";
303
+ }
304
+ function gn(t) {
305
+ return R(t) && !H(t, ["documentHead", "documentBody", "flowMapping", "flowSequence"]);
306
+ }
307
+ function I(t, e) {
308
+ return tt(" ".repeat(t), e);
309
+ }
310
+ function Qi(t, e, n) {
311
+ let { node: r } = t, s = t.ancestors.filter((l) => l.type === "sequence" || l.type === "mapping").length, i = Lt(t), o = [r.type === "blockFolded" ? ">" : "|"];
312
+ r.indent !== null && o.push(r.indent.toString()), r.chomping !== "clip" && o.push(r.chomping === "keep" ? "+" : "-"), mn(r) && o.push(" ", e("indicatorComment"));
313
+ let a = Ar(r, { parentIndent: s, isLastDescendant: i, options: n }), c = [];
314
+ for (let [l, f] of a.entries()) l === 0 && c.push(N), c.push(wt(v(ne, f))), l !== a.length - 1 ? c.push(f.length === 0 ? N : ir(rt)) : r.chomping === "keep" && i && c.push(on(f.length === 0 ? N : rt));
315
+ return r.indent === null ? o.push(or(I(n.tabWidth, c))) : o.push(on(I(r.indent - 1 + s, c))), o;
316
+ }
317
+ function Ct(t, e, n) {
318
+ let { node: r } = t, s = r.type === "flowMapping", i = s ? "{" : "[", o = s ? "}" : "]", a = Nt;
319
+ s && r.children.length > 0 && n.bracketSpacing && (a = ne);
320
+ let c = x(false, r.children, -1), l = (c == null ? void 0 : c.type) === "flowMappingItem" && _e(c.key) && _e(c.value);
321
+ return [i, I(n.tabWidth, [a, Ji(t, e, n), n.trailingComma === "none" ? "" : nt(","), R(r) ? [N, v(N, t.map(e, "endComments"))] : ""]), l ? "" : a, o];
322
+ }
323
+ function Ji(t, e, n) {
324
+ return t.map(({ isLast: r, node: s, next: i }) => [e(), r ? "" : [",", ne, s.position.start.line !== i.position.start.line ? Tt(t, n.originalText) : ""]], "children");
325
+ }
326
+ function Gi(t, e, n) {
327
+ var C;
328
+ let { node: r, parent: s } = t, { key: i, value: o } = r, a = _e(i), c = _e(o);
329
+ if (a && c) return ": ";
330
+ let l = e("key"), f = Hi(r) ? " " : "";
331
+ if (c) return r.type === "flowMappingItem" && s.type === "flowMapping" ? l : r.type === "mappingItem" && dn(i.content, n) && !K(i.content) && ((C = s.tag) == null ? void 0 : C.value) !== "tag:yaml.org,2002:set" ? [l, f, ":"] : ["? ", I(2, l)];
332
+ let m = e("value");
333
+ if (a) return [": ", I(2, m)];
334
+ if (Z(o) || !ot(i.content)) return ["? ", I(2, l), N, ...t.map(() => [e(), N], "value", "leadingComments"), ": ", I(2, m)];
335
+ if (Xi(i.content) && !Z(i.content) && !ie(i.content) && !K(i.content) && !R(i) && !Z(o.content) && !ie(o.content) && !R(o) && dn(o.content, n)) return [l, f, ": ", m];
336
+ let d = Symbol("mappingKey"), y = ke([nt("? "), ke(I(2, l), { id: d })]), h = [N, ": ", I(2, m)], g = [f, ":"];
337
+ Z(o.content) || R(o) && o.content && !H(o.content, ["mapping", "sequence"]) || s.type === "mapping" && K(i.content) && ot(o.content) || H(o.content, ["mapping", "sequence"]) && o.content.tag === null && o.content.anchor === null ? g.push(N) : o.content ? g.push(ne) : K(o) && g.push(" "), g.push(m);
338
+ let w = I(n.tabWidth, g);
339
+ return dn(i.content, n) && !Z(i.content) && !ie(i.content) && !R(i) ? an([[l, w]]) : an([[y, nt(h, w, { groupId: d })]]);
340
+ }
341
+ function dn(t, e) {
342
+ if (!t) return true;
343
+ switch (t.type) {
344
+ case "plain":
345
+ case "quoteSingle":
346
+ case "quoteDouble":
347
+ break;
348
+ case "alias":
349
+ return true;
350
+ default:
351
+ return false;
352
+ }
353
+ if (e.proseWrap === "preserve") return t.position.start.line === t.position.end.line;
354
+ if (/\\$/mu.test(e.originalText.slice(t.position.start.offset, t.position.end.offset))) return false;
355
+ switch (e.proseWrap) {
356
+ case "never":
357
+ return !t.value.includes(`
358
+ `);
359
+ case "always":
360
+ return !/[\n ]/u.test(t.value);
361
+ default:
362
+ return false;
363
+ }
364
+ }
365
+ function Hi(t) {
366
+ var e;
367
+ return ((e = t.key.content) == null ? void 0 : e.type) === "alias";
368
+ }
369
+ function Xi(t) {
370
+ if (!t) return true;
371
+ switch (t.type) {
372
+ case "plain":
373
+ case "quoteDouble":
374
+ case "quoteSingle":
375
+ return t.position.start.line === t.position.end.line;
376
+ case "alias":
377
+ return true;
378
+ default:
379
+ return false;
380
+ }
381
+ }
382
+ function zi(t) {
383
+ return pn(t, Zi);
384
+ }
385
+ function Zi(t) {
386
+ switch (t.type) {
387
+ case "document":
388
+ Pe(t, "head", () => t.children[0]), Pe(t, "body", () => t.children[1]);
389
+ break;
390
+ case "documentBody":
391
+ case "sequenceItem":
392
+ case "flowSequenceItem":
393
+ case "mappingKey":
394
+ case "mappingValue":
395
+ Pe(t, "content", () => t.children[0]);
396
+ break;
397
+ case "mappingItem":
398
+ case "flowMappingItem":
399
+ Pe(t, "key", () => t.children[0]), Pe(t, "value", () => t.children[1]);
400
+ break;
401
+ }
402
+ return t;
403
+ }
404
+ function eo(t, e, n) {
405
+ let { node: r } = t, s = [];
406
+ r.type !== "mappingValue" && Z(r) && s.push([v(N, t.map(n, "leadingComments")), N]);
407
+ let { tag: i, anchor: o } = r;
408
+ i && s.push(n("tag")), i && o && s.push(" "), o && s.push(n("anchor"));
409
+ let a = "";
410
+ return H(r, ["mapping", "sequence", "comment", "directive", "mappingItem", "sequenceItem"]) && !Lt(t) && (a = Tt(t, e.originalText)), (i || o) && (H(r, ["sequence", "mapping"]) && !ie(r) ? s.push(N) : s.push(" ")), ie(r) && s.push([r.middleComments.length === 1 ? "" : N, v(N, t.map(n, "middleComments")), N]), Nr(t) ? s.push(cr(e.originalText.slice(r.position.start.offset, r.position.end.offset).trimEnd())) : s.push(ke(to(t, e, n))), K(r) && !H(r, ["document", "documentHead"]) && s.push(ar([r.type === "mappingValue" && !r.content ? "" : " ", t.parent.type === "mappingKey" && t.getParentNode(2).type === "mapping" && ot(r) ? "" : bt, n("trailingComment")])), gn(r) && s.push(I(r.type === "sequenceItem" ? 2 : 0, [N, v(N, t.map(({ node: c }) => [lr(e.originalText, ve(c)) ? N : "", n()], "endComments"))])), s.push(a), s;
411
+ }
412
+ function to(t, e, n) {
413
+ let { node: r } = t;
414
+ switch (r.type) {
415
+ case "root": {
416
+ let s = [];
417
+ t.each(({ node: o, next: a, isFirst: c }) => {
418
+ c || s.push(N), s.push(n()), kr(o, a) ? (s.push(N, "..."), K(o) && s.push(" ", n("trailingComment"))) : a && !K(a.head) && s.push(N, "---");
419
+ }, "children");
420
+ let i = At(r);
421
+ return (!H(i, ["blockLiteral", "blockFolded"]) || i.chomping !== "keep") && s.push(N), s;
422
+ }
423
+ case "document": {
424
+ let s = [];
425
+ return ro(t, e) === "head" && ((r.head.children.length > 0 || r.head.endComments.length > 0) && s.push(n("head")), K(r.head) ? s.push(["---", " ", n(["head", "trailingComment"])]) : s.push("---")), no(r) && s.push(n("body")), v(N, s);
426
+ }
427
+ case "documentHead":
428
+ return v(N, [...t.map(n, "children"), ...t.map(n, "endComments")]);
429
+ case "documentBody": {
430
+ let { children: s, endComments: i } = r, o = "";
431
+ if (s.length > 0 && i.length > 0) {
432
+ let a = At(r);
433
+ H(a, ["blockFolded", "blockLiteral"]) ? a.chomping !== "keep" && (o = [N, N]) : o = N;
434
+ }
435
+ return [v(N, t.map(n, "children")), o, v(N, t.map(n, "endComments"))];
436
+ }
437
+ case "directive":
438
+ return ["%", v(" ", [r.name, ...r.parameters])];
439
+ case "comment":
440
+ return ["#", r.value];
441
+ case "alias":
442
+ return ["*", r.value];
443
+ case "tag":
444
+ return e.originalText.slice(r.position.start.offset, r.position.end.offset);
445
+ case "anchor":
446
+ return ["&", r.value];
447
+ case "plain":
448
+ return at(r.type, e.originalText.slice(r.position.start.offset, r.position.end.offset), e);
449
+ case "quoteDouble":
450
+ case "quoteSingle": {
451
+ let s = "'", i = '"', o = e.originalText.slice(r.position.start.offset + 1, r.position.end.offset - 1);
452
+ if (r.type === "quoteSingle" && o.includes("\\") || r.type === "quoteDouble" && /\\[^"]/u.test(o)) {
453
+ let c = r.type === "quoteDouble" ? i : s;
454
+ return [c, at(r.type, o, e), c];
455
+ }
456
+ if (o.includes(i)) return [s, at(r.type, r.type === "quoteDouble" ? yt(false, yt(false, o, String.raw`\"`, i), "'", s.repeat(2)) : o, e), s];
457
+ if (o.includes(s)) return [i, at(r.type, r.type === "quoteSingle" ? yt(false, o, "''", s) : o, e), i];
458
+ let a = e.singleQuote ? s : i;
459
+ return [a, at(r.type, o, e), a];
460
+ }
461
+ case "blockFolded":
462
+ case "blockLiteral":
463
+ return Tr(t, n, e);
464
+ case "mapping":
465
+ case "sequence":
466
+ return v(N, t.map(n, "children"));
467
+ case "sequenceItem":
468
+ return ["- ", I(2, r.content ? n("content") : "")];
469
+ case "mappingKey":
470
+ case "mappingValue":
471
+ return r.content ? n("content") : "";
472
+ case "mappingItem":
473
+ case "flowMappingItem":
474
+ return Cr(t, n, e);
475
+ case "flowMapping":
476
+ return Ct(t, n, e);
477
+ case "flowSequence":
478
+ return Ct(t, n, e);
479
+ case "flowSequenceItem":
480
+ return n("content");
481
+ default:
482
+ throw new fr(r, "YAML");
483
+ }
484
+ }
485
+ function no(t) {
486
+ return t.body.children.length > 0 || R(t.body);
487
+ }
488
+ function kr(t, e) {
489
+ return K(t) || e && (e.head.children.length > 0 || R(e.head));
490
+ }
491
+ function ro(t, e) {
492
+ let n = t.node;
493
+ if (t.isFirst && /---(?:\s|$)/u.test(e.originalText.slice(ve(n), ve(n) + 4)) || n.head.children.length > 0 || R(n.head) || K(n.head)) return "head";
494
+ let r = t.next;
495
+ return kr(n, r) ? false : r ? "root" : false;
496
+ }
497
+ function at(t, e, n) {
498
+ let r = Lr(t, e, n);
499
+ return v(N, r.map((s) => wt(v(ne, s))));
500
+ }
501
+ function vr(t, e) {
502
+ if (H(t)) switch (t.type) {
503
+ case "comment":
504
+ if (yr(t.value)) return null;
505
+ break;
506
+ case "quoteDouble":
507
+ case "quoteSingle":
508
+ e.type = "quote";
509
+ break;
510
+ }
511
+ }
512
+ function B(t, e = null) {
513
+ "children" in t && t.children.forEach((n) => B(n, t)), "anchor" in t && t.anchor && B(t.anchor, t), "tag" in t && t.tag && B(t.tag, t), "leadingComments" in t && t.leadingComments.forEach((n) => B(n, t)), "middleComments" in t && t.middleComments.forEach((n) => B(n, t)), "indicatorComment" in t && t.indicatorComment && B(t.indicatorComment, t), "trailingComment" in t && t.trailingComment && B(t.trailingComment, t), "endComments" in t && t.endComments.forEach((n) => B(n, t)), Object.defineProperty(t, "_parent", { value: e, enumerable: false });
514
+ }
515
+ function ge(t) {
516
+ return `${t.line}:${t.column}`;
517
+ }
518
+ function Dr(t) {
519
+ B(t);
520
+ let e = oo(t), n = t.children.slice();
521
+ t.comments.sort((r, s) => r.position.start.offset - s.position.end.offset).filter((r) => !r._parent).forEach((r) => {
522
+ for (; n.length > 1 && r.position.start.line > n[0].position.end.line; ) n.shift();
523
+ ao(r, e, n[0]);
524
+ });
525
+ }
526
+ function oo(t) {
527
+ let e = Array.from(new Array(t.position.end.line), () => ({}));
528
+ for (let n of t.comments) e[n.position.start.line - 1].comment = n;
529
+ return Yr(e, t), e;
530
+ }
531
+ function Yr(t, e) {
532
+ if (e.position.start.offset !== e.position.end.offset) {
533
+ if ("leadingComments" in e) {
534
+ let { start: n } = e.position, { leadingAttachableNode: r } = t[n.line - 1];
535
+ (!r || n.column < r.position.start.column) && (t[n.line - 1].leadingAttachableNode = e);
536
+ }
537
+ if ("trailingComment" in e && e.position.end.column > 1 && e.type !== "document" && e.type !== "documentHead") {
538
+ let { end: n } = e.position, { trailingAttachableNode: r } = t[n.line - 1];
539
+ (!r || n.column >= r.position.end.column) && (t[n.line - 1].trailingAttachableNode = e);
540
+ }
541
+ if (e.type !== "root" && e.type !== "document" && e.type !== "documentHead" && e.type !== "documentBody") {
542
+ let { start: n, end: r } = e.position, s = [r.line].concat(n.line === r.line ? [] : n.line);
543
+ for (let i of s) {
544
+ let o = t[i - 1].trailingNode;
545
+ (!o || r.column >= o.position.end.column) && (t[i - 1].trailingNode = e);
546
+ }
547
+ }
548
+ "children" in e && e.children.forEach((n) => {
549
+ Yr(t, n);
550
+ });
551
+ }
552
+ }
553
+ function ao(t, e, n) {
554
+ let r = t.position.start.line, { trailingAttachableNode: s } = e[r - 1];
555
+ if (s) {
556
+ if (s.trailingComment) throw new Error(`Unexpected multiple trailing comment at ${ge(t.position.start)}`);
557
+ B(t, s), s.trailingComment = t;
558
+ return;
559
+ }
560
+ for (let o = r; o >= n.position.start.line; o--) {
561
+ let { trailingNode: a } = e[o - 1], c;
562
+ if (a) c = a;
563
+ else if (o !== r && e[o - 1].comment) c = e[o - 1].comment._parent;
564
+ else continue;
565
+ if ((c.type === "sequence" || c.type === "mapping") && (c = c.children[0]), c.type === "mappingItem") {
566
+ let [l, f] = c.children;
567
+ c = Br(l) ? l : f;
568
+ }
569
+ for (; ; ) {
570
+ if (co(c, t)) {
571
+ B(t, c), c.endComments.push(t);
572
+ return;
573
+ }
574
+ if (!c._parent) break;
575
+ c = c._parent;
576
+ }
577
+ break;
578
+ }
579
+ for (let o = r + 1; o <= n.position.end.line; o++) {
580
+ let { leadingAttachableNode: a } = e[o - 1];
581
+ if (a) {
582
+ B(t, a), a.leadingComments.push(t);
583
+ return;
584
+ }
585
+ }
586
+ let i = n.children[1];
587
+ B(t, i), i.endComments.push(t);
588
+ }
589
+ function co(t, e) {
590
+ if (t.position.start.offset < e.position.start.offset && t.position.end.offset > e.position.end.offset) switch (t.type) {
591
+ case "flowMapping":
592
+ case "flowSequence":
593
+ return t.children.length === 0 || e.position.start.line > t.children[t.children.length - 1].position.end.line;
594
+ }
595
+ if (e.position.end.offset < t.position.end.offset) return false;
596
+ switch (t.type) {
597
+ case "sequenceItem":
598
+ return e.position.start.column > t.position.start.column;
599
+ case "mappingKey":
600
+ case "mappingValue":
601
+ return e.position.start.column > t._parent.position.start.column && (t.children.length === 0 || t.children.length === 1 && t.children[0].type !== "blockFolded" && t.children[0].type !== "blockLiteral") && (t.type === "mappingValue" || Br(t));
602
+ default:
603
+ return false;
604
+ }
605
+ }
606
+ function Br(t) {
607
+ return t.position.start !== t.position.end && (t.children.length === 0 || t.position.start.offset !== t.children[0].position.start.offset);
608
+ }
609
+ function b(t, e) {
610
+ return { type: t, position: e };
611
+ }
612
+ function $r(t, e, n) {
613
+ return { ...b("root", t), children: e, comments: n };
614
+ }
615
+ function ct(t) {
616
+ switch (t.type) {
617
+ case "DOCUMENT":
618
+ for (let e = t.contents.length - 1; e >= 0; e--) t.contents[e].type === "BLANK_LINE" ? t.contents.splice(e, 1) : ct(t.contents[e]);
619
+ for (let e = t.directives.length - 1; e >= 0; e--) t.directives[e].type === "BLANK_LINE" && t.directives.splice(e, 1);
620
+ break;
621
+ case "FLOW_MAP":
622
+ case "FLOW_SEQ":
623
+ case "MAP":
624
+ case "SEQ":
625
+ for (let e = t.items.length - 1; e >= 0; e--) {
626
+ let n = t.items[e];
627
+ "char" in n || (n.type === "BLANK_LINE" ? t.items.splice(e, 1) : ct(n));
628
+ }
629
+ break;
630
+ case "MAP_KEY":
631
+ case "MAP_VALUE":
632
+ case "SEQ_ITEM":
633
+ t.node && ct(t.node);
634
+ break;
635
+ case "ALIAS":
636
+ case "BLANK_LINE":
637
+ case "BLOCK_FOLDED":
638
+ case "BLOCK_LITERAL":
639
+ case "COMMENT":
640
+ case "DIRECTIVE":
641
+ case "PLAIN":
642
+ case "QUOTE_DOUBLE":
643
+ case "QUOTE_SINGLE":
644
+ break;
645
+ default:
646
+ throw new Error(`Unexpected node type ${JSON.stringify(t.type)}`);
647
+ }
648
+ }
649
+ function X() {
650
+ return { leadingComments: [] };
651
+ }
652
+ function oe(t = null) {
653
+ return { trailingComment: t };
654
+ }
655
+ function $() {
656
+ return { ...X(), ...oe() };
657
+ }
658
+ function Fr(t, e, n) {
659
+ return { ...b("alias", t), ...$(), ...e, value: n };
660
+ }
661
+ function qr(t, e) {
662
+ let n = t.cstNode;
663
+ return Fr(e.transformRange({ origStart: n.valueRange.origStart - 1, origEnd: n.valueRange.origEnd }), e.transformContent(t), n.rawValue);
664
+ }
665
+ function Ur(t) {
666
+ return { ...t, type: "blockFolded" };
667
+ }
668
+ function Kr(t, e, n, r, s, i) {
669
+ return { ...b("blockValue", t), ...X(), ...e, chomping: n, indent: r, value: s, indicatorComment: i };
670
+ }
671
+ function Vr(t, e) {
672
+ return { ...b("anchor", t), value: e };
673
+ }
674
+ function xe(t, e) {
675
+ return { ...b("comment", t), value: e };
676
+ }
677
+ function Wr(t, e, n) {
678
+ return { anchor: e, tag: t, middleComments: n };
679
+ }
680
+ function jr(t, e) {
681
+ return { ...b("tag", t), value: e };
682
+ }
683
+ function vt(t, e, n = () => false) {
684
+ let r = t.cstNode, s = [], i = null, o = null, a = null;
685
+ for (let c of r.props) {
686
+ let l = e.text[c.origStart];
687
+ switch (l) {
688
+ case ae.Tag:
689
+ i = i || c, o = jr(e.transformRange(c), t.tag);
690
+ break;
691
+ case ae.Anchor:
692
+ i = i || c, a = Vr(e.transformRange(c), r.anchor);
693
+ break;
694
+ case ae.Comment: {
695
+ let f = xe(e.transformRange(c), e.text.slice(c.origStart + 1, c.origEnd));
696
+ e.comments.push(f), !n(f) && i && i.origEnd <= c.origStart && c.origEnd <= r.valueRange.origStart && s.push(f);
697
+ break;
698
+ }
699
+ default:
700
+ throw new Error(`Unexpected leading character ${JSON.stringify(l)}`);
701
+ }
702
+ }
703
+ return Wr(o, a, s);
704
+ }
705
+ function It(t, e) {
706
+ let n = t.cstNode, r = 1, s = n.chomping === "CLIP" ? 0 : 1, o = n.header.origEnd - n.header.origStart - r - s !== 0, a = e.transformRange({ origStart: n.header.origStart, origEnd: n.valueRange.origEnd }), c = null, l = vt(t, e, (f) => {
707
+ if (!(a.start.offset < f.position.start.offset && f.position.end.offset < a.end.offset)) return false;
708
+ if (c) throw new Error(`Unexpected multiple indicator comments at ${ge(f.position.start)}`);
709
+ return c = f, true;
710
+ });
711
+ return Kr(a, l, yn[n.chomping], o ? n.blockIndent : null, n.strValue, c);
712
+ }
713
+ function Qr(t, e) {
714
+ return Ur(It(t, e));
715
+ }
716
+ function Jr(t) {
717
+ return { ...t, type: "blockLiteral" };
718
+ }
719
+ function Gr(t, e) {
720
+ return Jr(It(t, e));
721
+ }
722
+ function Hr(t, e) {
723
+ return xe(e.transformRange(t.range), t.comment);
724
+ }
725
+ function Xr(t, e, n) {
726
+ return { ...b("directive", t), ...$(), name: e, parameters: n };
727
+ }
728
+ function Re(t, e) {
729
+ for (let n of t.props) {
730
+ let r = e.text[n.origStart];
731
+ switch (r) {
732
+ case ae.Comment:
733
+ e.comments.push(xe(e.transformRange(n), e.text.slice(n.origStart + 1, n.origEnd)));
734
+ break;
735
+ default:
736
+ throw new Error(`Unexpected leading character ${JSON.stringify(r)}`);
737
+ }
738
+ }
739
+ }
740
+ function zr(t, e) {
741
+ return Re(t, e), Xr(e.transformRange(t.range), t.name, t.parameters);
742
+ }
743
+ function Zr(t, e, n, r) {
744
+ return { ...b("document", t), ...oe(r), children: [e, n] };
745
+ }
746
+ function V(t, e) {
747
+ return { start: t, end: e };
748
+ }
749
+ function En(t) {
750
+ return { start: t, end: t };
751
+ }
752
+ function F(t = []) {
753
+ return { endComments: t };
754
+ }
755
+ function es(t, e, n) {
756
+ return { ...b("documentBody", t), ...F(n), children: e ? [e] : [] };
757
+ }
758
+ function q(t) {
759
+ return t[t.length - 1];
760
+ }
761
+ function Pt(t, e) {
762
+ let n = t.match(e);
763
+ return n ? n.index : -1;
764
+ }
765
+ function ts(t, e, n) {
766
+ let r = t.cstNode, { comments: s, endComments: i, documentTrailingComment: o, documentHeadTrailingComment: a } = lo(r, e, n), c = e.transformNode(t.contents), { position: l, documentEndPoint: f } = fo(r, c, e);
767
+ return e.comments.push(...s, ...i), { documentBody: es(l, c, i), documentEndPoint: f, documentTrailingComment: o, documentHeadTrailingComment: a };
768
+ }
769
+ function lo(t, e, n) {
770
+ let r = [], s = [], i = [], o = [], a = false;
771
+ for (let c = t.contents.length - 1; c >= 0; c--) {
772
+ let l = t.contents[c];
773
+ if (l.type === "COMMENT") {
774
+ let f = e.transformNode(l);
775
+ n && n.line === f.position.start.line ? o.unshift(f) : a ? r.unshift(f) : f.position.start.offset >= t.valueRange.origEnd ? i.unshift(f) : r.unshift(f);
776
+ } else a = true;
777
+ }
778
+ if (i.length > 1) throw new Error(`Unexpected multiple document trailing comments at ${ge(i[1].position.start)}`);
779
+ if (o.length > 1) throw new Error(`Unexpected multiple documentHead trailing comments at ${ge(o[1].position.start)}`);
780
+ return { comments: r, endComments: s, documentTrailingComment: q(i) || null, documentHeadTrailingComment: q(o) || null };
781
+ }
782
+ function fo(t, e, n) {
783
+ let r = Pt(n.text.slice(t.valueRange.origEnd), /^\.\.\./), s = r === -1 ? t.valueRange.origEnd : Math.max(0, t.valueRange.origEnd - 1);
784
+ n.text[s - 1] === "\r" && s--;
785
+ let i = n.transformRange({ origStart: e !== null ? e.position.start.offset : s, origEnd: s }), o = r === -1 ? i.end : n.transformOffset(t.valueRange.origEnd + 3);
786
+ return { position: i, documentEndPoint: o };
787
+ }
788
+ function ns(t, e, n, r) {
789
+ return { ...b("documentHead", t), ...F(n), ...oe(r), children: e };
790
+ }
791
+ function rs(t, e) {
792
+ let n = t.cstNode, { directives: r, comments: s, endComments: i } = uo(n, e), { position: o, endMarkerPoint: a } = po(n, r, e);
793
+ return e.comments.push(...s, ...i), { createDocumentHeadWithTrailingComment: /* @__PURE__ */ _chunkDFJNOFN2cjs.__name.call(void 0, (l) => (l && e.comments.push(l), ns(o, r, i, l)), "createDocumentHeadWithTrailingComment"), documentHeadEndMarkerPoint: a };
794
+ }
795
+ function uo(t, e) {
796
+ let n = [], r = [], s = [], i = false;
797
+ for (let o = t.directives.length - 1; o >= 0; o--) {
798
+ let a = e.transformNode(t.directives[o]);
799
+ a.type === "comment" ? i ? r.unshift(a) : s.unshift(a) : (i = true, n.unshift(a));
800
+ }
801
+ return { directives: n, comments: r, endComments: s };
802
+ }
803
+ function po(t, e, n) {
804
+ let r = Pt(n.text.slice(0, t.valueRange.origStart), /---\s*$/);
805
+ r > 0 && !/[\r\n]/.test(n.text[r - 1]) && (r = -1);
806
+ let s = r === -1 ? { origStart: t.valueRange.origStart, origEnd: t.valueRange.origStart } : { origStart: r, origEnd: r + 3 };
807
+ return e.length !== 0 && (s.origStart = e[0].position.start.offset), { position: n.transformRange(s), endMarkerPoint: r === -1 ? null : n.transformOffset(r) };
808
+ }
809
+ function ss(t, e) {
810
+ let { createDocumentHeadWithTrailingComment: n, documentHeadEndMarkerPoint: r } = rs(t, e), { documentBody: s, documentEndPoint: i, documentTrailingComment: o, documentHeadTrailingComment: a } = ts(t, e, r), c = n(a);
811
+ return o && e.comments.push(o), Zr(V(c.position.start, i), c, s, o);
812
+ }
813
+ function _t(t, e, n) {
814
+ return { ...b("flowCollection", t), ...$(), ...F(), ...e, children: n };
815
+ }
816
+ function is(t, e, n) {
817
+ return { ..._t(t, e, n), type: "flowMapping" };
818
+ }
819
+ function xt(t, e, n) {
820
+ return { ...b("flowMappingItem", t), ...X(), children: [e, n] };
821
+ }
822
+ function ce(t, e) {
823
+ let n = [];
824
+ for (let r of t) r && "type" in r && r.type === "COMMENT" ? e.comments.push(e.transformNode(r)) : n.push(r);
825
+ return n;
826
+ }
827
+ function Rt(t) {
828
+ let [e, n] = ["?", ":"].map((r) => {
829
+ let s = t.find((i) => "char" in i && i.char === r);
830
+ return s ? { origStart: s.origOffset, origEnd: s.origOffset + 1 } : null;
831
+ });
832
+ return { additionalKeyRange: e, additionalValueRange: n };
833
+ }
834
+ function Dt(t, e) {
835
+ let n = e;
836
+ return (r) => t.slice(n, n = r);
837
+ }
838
+ function Yt(t) {
839
+ let e = [], n = Dt(t, 1), r = false;
840
+ for (let s = 1; s < t.length - 1; s++) {
841
+ let i = t[s];
842
+ if ("char" in i && i.char === ",") {
843
+ e.push(n(s)), n(s + 1), r = false;
844
+ continue;
845
+ }
846
+ r = true;
847
+ }
848
+ return r && e.push(n(t.length - 1)), e;
849
+ }
850
+ function Sn(t, e) {
851
+ return { ...b("mappingKey", t), ...oe(), ...F(), children: e ? [e] : [] };
852
+ }
853
+ function wn(t, e) {
854
+ return { ...b("mappingValue", t), ...$(), ...F(), children: e ? [e] : [] };
855
+ }
856
+ function De(t, e, n, r, s) {
857
+ let i = e.transformNode(t.key), o = e.transformNode(t.value), a = i || r ? Sn(e.transformRange({ origStart: r ? r.origStart : i.position.start.offset, origEnd: i ? i.position.end.offset : r.origStart + 1 }), i) : null, c = o || s ? wn(e.transformRange({ origStart: s ? s.origStart : o.position.start.offset, origEnd: o ? o.position.end.offset : s.origStart + 1 }), o) : null;
858
+ return n(V(a ? a.position.start : c.position.start, c ? c.position.end : a.position.end), a || Sn(En(c.position.start), null), c || wn(En(a.position.end), null));
859
+ }
860
+ function os(t, e) {
861
+ let n = ce(t.cstNode.items, e), r = Yt(n), s = t.items.map((a, c) => {
862
+ let l = r[c], { additionalKeyRange: f, additionalValueRange: m } = Rt(l);
863
+ return De(a, e, xt, f, m);
864
+ }), i = n[0], o = q(n);
865
+ return is(e.transformRange({ origStart: i.origOffset, origEnd: o.origOffset + 1 }), e.transformContent(t), s);
866
+ }
867
+ function as(t, e, n) {
868
+ return { ..._t(t, e, n), type: "flowSequence" };
869
+ }
870
+ function cs(t, e) {
871
+ return { ...b("flowSequenceItem", t), children: [e] };
872
+ }
873
+ function ls(t, e) {
874
+ let n = ce(t.cstNode.items, e), r = Yt(n), s = t.items.map((a, c) => {
875
+ if (a.type !== "PAIR") {
876
+ let l = e.transformNode(a);
877
+ return cs(V(l.position.start, l.position.end), l);
878
+ } else {
879
+ let l = r[c], { additionalKeyRange: f, additionalValueRange: m } = Rt(l);
880
+ return De(a, e, xt, f, m);
881
+ }
882
+ }), i = n[0], o = q(n);
883
+ return as(e.transformRange({ origStart: i.origOffset, origEnd: o.origOffset + 1 }), e.transformContent(t), s);
884
+ }
885
+ function fs(t, e, n) {
886
+ return { ...b("mapping", t), ...X(), ...e, children: n };
887
+ }
888
+ function us(t, e, n) {
889
+ return { ...b("mappingItem", t), ...X(), children: [e, n] };
890
+ }
891
+ function ps(t, e) {
892
+ let n = t.cstNode;
893
+ n.items.filter((o) => o.type === "MAP_KEY" || o.type === "MAP_VALUE").forEach((o) => Re(o, e));
894
+ let r = ce(n.items, e), s = mo(r), i = t.items.map((o, a) => {
895
+ let c = s[a], [l, f] = c[0].type === "MAP_VALUE" ? [null, c[0].range] : [c[0].range, c.length === 1 ? null : c[1].range];
896
+ return De(o, e, us, l, f);
897
+ });
898
+ return fs(V(i[0].position.start, q(i).position.end), e.transformContent(t), i);
899
+ }
900
+ function mo(t) {
901
+ let e = [], n = Dt(t, 0), r = false;
902
+ for (let s = 0; s < t.length; s++) {
903
+ if (t[s].type === "MAP_VALUE") {
904
+ e.push(n(s + 1)), r = false;
905
+ continue;
906
+ }
907
+ r && e.push(n(s)), r = true;
908
+ }
909
+ return r && e.push(n(1 / 0)), e;
910
+ }
911
+ function ms(t, e, n) {
912
+ return { ...b("plain", t), ...$(), ...e, value: n };
913
+ }
914
+ function hs(t, e, n) {
915
+ for (let r = e; r >= 0; r--) if (n.test(t[r])) return r;
916
+ return -1;
917
+ }
918
+ function gs(t, e) {
919
+ let n = t.cstNode;
920
+ return ms(e.transformRange({ origStart: n.valueRange.origStart, origEnd: hs(e.text, n.valueRange.origEnd - 1, /\S/) + 1 }), e.transformContent(t), n.strValue);
921
+ }
922
+ function ds(t) {
923
+ return { ...t, type: "quoteDouble" };
924
+ }
925
+ function ys(t, e, n) {
926
+ return { ...b("quoteValue", t), ...e, ...$(), value: n };
927
+ }
928
+ function Bt(t, e) {
929
+ let n = t.cstNode;
930
+ return ys(e.transformRange(n.valueRange), e.transformContent(t), n.strValue);
931
+ }
932
+ function Es(t, e) {
933
+ return ds(Bt(t, e));
934
+ }
935
+ function Ss(t) {
936
+ return { ...t, type: "quoteSingle" };
937
+ }
938
+ function ws(t, e) {
939
+ return Ss(Bt(t, e));
940
+ }
941
+ function bs(t, e, n) {
942
+ return { ...b("sequence", t), ...X(), ...F(), ...e, children: n };
943
+ }
944
+ function Ns(t, e) {
945
+ return { ...b("sequenceItem", t), ...$(), ...F(), children: e ? [e] : [] };
946
+ }
947
+ function Os(t, e) {
948
+ let r = ce(t.cstNode.items, e).map((s, i) => {
949
+ Re(s, e);
950
+ let o = e.transformNode(t.items[i]);
951
+ return Ns(V(e.transformOffset(s.valueRange.origStart), o === null ? e.transformOffset(s.valueRange.origStart + 1) : o.position.end), o);
952
+ });
953
+ return bs(V(r[0].position.start, q(r).position.end), e.transformContent(t), r);
954
+ }
955
+ function Ls(t, e) {
956
+ if (t === null || t.type === void 0 && t.value === null) return null;
957
+ switch (t.type) {
958
+ case "ALIAS":
959
+ return qr(t, e);
960
+ case "BLOCK_FOLDED":
961
+ return Qr(t, e);
962
+ case "BLOCK_LITERAL":
963
+ return Gr(t, e);
964
+ case "COMMENT":
965
+ return Hr(t, e);
966
+ case "DIRECTIVE":
967
+ return zr(t, e);
968
+ case "DOCUMENT":
969
+ return ss(t, e);
970
+ case "FLOW_MAP":
971
+ return os(t, e);
972
+ case "FLOW_SEQ":
973
+ return ls(t, e);
974
+ case "MAP":
975
+ return ps(t, e);
976
+ case "PLAIN":
977
+ return gs(t, e);
978
+ case "QUOTE_DOUBLE":
979
+ return Es(t, e);
980
+ case "QUOTE_SINGLE":
981
+ return ws(t, e);
982
+ case "SEQ":
983
+ return Os(t, e);
984
+ default:
985
+ throw new Error(`Unexpected node type ${t.type}`);
986
+ }
987
+ }
988
+ function As(t, e, n) {
989
+ let r = new SyntaxError(t);
990
+ return r.name = "YAMLSyntaxError", r.source = e, r.position = n, r;
991
+ }
992
+ function Ts(t, e) {
993
+ let n = t.source.range || t.source.valueRange;
994
+ return As(t.message, e.text, e.transformRange(n));
995
+ }
996
+ function Cs(t, e, n) {
997
+ return { offset: t, line: e, column: n };
998
+ }
999
+ function Ms(t, e) {
1000
+ t < 0 ? t = 0 : t > e.text.length && (t = e.text.length);
1001
+ let n = e.locator.locationForIndex(t);
1002
+ return Cs(t, n.line + 1, n.column + 1);
1003
+ }
1004
+ function ks(t, e) {
1005
+ return V(e.transformOffset(t.origStart), e.transformOffset(t.origEnd));
1006
+ }
1007
+ function vs(t) {
1008
+ if (!t.setOrigRanges()) {
1009
+ let e = /* @__PURE__ */ _chunkDFJNOFN2cjs.__name.call(void 0, (n) => {
1010
+ if (ho(n)) return n.origStart = n.start, n.origEnd = n.end, true;
1011
+ if (go(n)) return n.origOffset = n.offset, true;
1012
+ }, "e");
1013
+ t.forEach((n) => bn(n, e));
1014
+ }
1015
+ }
1016
+ function bn(t, e) {
1017
+ if (!(!t || typeof t != "object") && e(t) !== true) for (let n of Object.keys(t)) {
1018
+ if (n === "context" || n === "error") continue;
1019
+ let r = t[n];
1020
+ Array.isArray(r) ? r.forEach((s) => bn(s, e)) : bn(r, e);
1021
+ }
1022
+ }
1023
+ function ho(t) {
1024
+ return typeof t.start == "number";
1025
+ }
1026
+ function go(t) {
1027
+ return typeof t.offset == "number";
1028
+ }
1029
+ function Nn(t) {
1030
+ if ("children" in t) {
1031
+ if (t.children.length === 1) {
1032
+ let e = t.children[0];
1033
+ if (e.type === "plain" && e.tag === null && e.anchor === null && e.value === "") return t.children.splice(0, 1), t;
1034
+ }
1035
+ t.children.forEach(Nn);
1036
+ }
1037
+ return t;
1038
+ }
1039
+ function On(t, e, n, r) {
1040
+ let s = e(t);
1041
+ return (i) => {
1042
+ r(s, i) && n(t, s = i);
1043
+ };
1044
+ }
1045
+ function Ln(t) {
1046
+ if (t === null || !("children" in t)) return;
1047
+ let e = t.children;
1048
+ if (e.forEach(Ln), t.type === "document") {
1049
+ let [i, o] = t.children;
1050
+ i.position.start.offset === i.position.end.offset ? i.position.start = i.position.end = o.position.start : o.position.start.offset === o.position.end.offset && (o.position.start = o.position.end = i.position.end);
1051
+ }
1052
+ let n = On(t.position, yo, Eo, bo), r = On(t.position, So, wo, No);
1053
+ "endComments" in t && t.endComments.length !== 0 && (n(t.endComments[0].position.start), r(q(t.endComments).position.end));
1054
+ let s = e.filter((i) => i !== null);
1055
+ if (s.length !== 0) {
1056
+ let i = s[0], o = q(s);
1057
+ n(i.position.start), r(o.position.end), "leadingComments" in i && i.leadingComments.length !== 0 && n(i.leadingComments[0].position.start), "tag" in i && i.tag && n(i.tag.position.start), "anchor" in i && i.anchor && n(i.anchor.position.start), "trailingComment" in o && o.trailingComment && r(o.trailingComment.position.end);
1058
+ }
1059
+ }
1060
+ function yo(t) {
1061
+ return t.start;
1062
+ }
1063
+ function Eo(t, e) {
1064
+ t.start = e;
1065
+ }
1066
+ function So(t) {
1067
+ return t.end;
1068
+ }
1069
+ function wo(t, e) {
1070
+ t.end = e;
1071
+ }
1072
+ function bo(t, e) {
1073
+ return e.offset < t.offset;
1074
+ }
1075
+ function No(t, e) {
1076
+ return e.offset > t.offset;
1077
+ }
1078
+ function Ni(t) {
1079
+ let e = bi(t);
1080
+ vs(e);
1081
+ let n = e.map((a) => new wi({ merge: false, keepCstNodes: true }).parse(a)), r = new Rr(t), s = [], i = { text: t, locator: r, comments: s, transformOffset: /* @__PURE__ */ _chunkDFJNOFN2cjs.__name.call(void 0, (a) => Ms(a, i), "transformOffset"), transformRange: /* @__PURE__ */ _chunkDFJNOFN2cjs.__name.call(void 0, (a) => ks(a, i), "transformRange"), transformNode: /* @__PURE__ */ _chunkDFJNOFN2cjs.__name.call(void 0, (a) => Ls(a, i), "transformNode"), transformContent: /* @__PURE__ */ _chunkDFJNOFN2cjs.__name.call(void 0, (a) => vt(a, i), "transformContent") };
1082
+ for (let a of n) for (let c of a.errors) if (!(c instanceof Zn && c.message === 'Map keys must be unique; "<<" is repeated')) throw Ts(c, i);
1083
+ n.forEach((a) => ct(a.cstNode));
1084
+ let o = $r(i.transformRange({ origStart: 0, origEnd: i.text.length }), n.map(i.transformNode), s);
1085
+ return Dr(o), Ln(o), Nn(o), o;
1086
+ }
1087
+ function Wa(t, e) {
1088
+ let n = new SyntaxError(t + " (" + e.loc.start.line + ":" + e.loc.start.column + ")");
1089
+ return Object.assign(n, e);
1090
+ }
1091
+ function ja(t) {
1092
+ try {
1093
+ let e = Ni(t);
1094
+ return delete e.comments, e;
1095
+ } catch (e) {
1096
+ throw e != null && e.position ? Oi(e.message, { loc: e.position, cause: e }) : e;
1097
+ }
1098
+ }
1099
+ var Ai, nn, Ti, Ci, Mi, ki, ee, nr, vi, rr, le, xs, $e, jn, Hn, pi, gi, yi, Ei, tr, Ii, yt, je, Qe, Je, Ge, Oe, He, Le, Ae, Te, Xe, Ce, ze, te, Ze, Me, Et, et, _i, rn, sn, sr, he, St, bt, Ri, Di, ne, Nt, N, rt, Yi, x, Nc, cn, Oc, Lc, ln, lr, fn, fr, pr, st, qi, mr, Ki, hr, Vi, gr, Ie, hn, Tr, Cr, Mr, so, Ir, Pr, Mt, io, _r, er, kt, xr, Rr, ae, yn, Si, G, Ym, Bm, $m, Fm, qm, Um, Km, Ua, Vm, Zn, Ka, Wm, wi, bi, Oi, Qa, Ja, yh;
1100
+ var init_yaml = _chunkDFJNOFN2cjs.__esm.call(void 0, {
1101
+ "../../node_modules/.pnpm/prettier@3.4.2/node_modules/prettier/plugins/yaml.mjs"() {
1102
+ _chunkDFJNOFN2cjs.init_cjs_shims.call(void 0, );
1103
+ Ai = Object.create;
1104
+ nn = Object.defineProperty;
1105
+ Ti = Object.getOwnPropertyDescriptor;
1106
+ Ci = Object.getOwnPropertyNames;
1107
+ Mi = Object.getPrototypeOf;
1108
+ ki = Object.prototype.hasOwnProperty;
1109
+ ee = /* @__PURE__ */ _chunkDFJNOFN2cjs.__name.call(void 0, (t, e) => () => (e || t((e = { exports: {} }).exports, e), e.exports), "ee");
1110
+ nr = /* @__PURE__ */ _chunkDFJNOFN2cjs.__name.call(void 0, (t, e) => {
1111
+ for (var n in e) nn(t, n, { get: e[n], enumerable: true });
1112
+ }, "nr");
1113
+ vi = /* @__PURE__ */ _chunkDFJNOFN2cjs.__name.call(void 0, (t, e, n, r) => {
1114
+ if (e && typeof e == "object" || typeof e == "function") for (let s of Ci(e)) !ki.call(t, s) && s !== n && nn(t, s, { get: /* @__PURE__ */ _chunkDFJNOFN2cjs.__name.call(void 0, () => e[s], "get"), enumerable: !(r = Ti(e, s)) || r.enumerable });
1115
+ return t;
1116
+ }, "vi");
1117
+ rr = /* @__PURE__ */ _chunkDFJNOFN2cjs.__name.call(void 0, (t, e, n) => (n = t != null ? Ai(Mi(t)) : {}, vi(e || !t || !t.__esModule ? nn(n, "default", { value: t, enumerable: true }) : n, t)), "rr");
1118
+ le = ee((U) => {
1119
+ "use strict";
1120
+ var re = { ANCHOR: "&", COMMENT: "#", TAG: "!", DIRECTIVES_END: "-", DOCUMENT_END: "." }, lt = { ALIAS: "ALIAS", BLANK_LINE: "BLANK_LINE", BLOCK_FOLDED: "BLOCK_FOLDED", BLOCK_LITERAL: "BLOCK_LITERAL", COMMENT: "COMMENT", DIRECTIVE: "DIRECTIVE", DOCUMENT: "DOCUMENT", FLOW_MAP: "FLOW_MAP", FLOW_SEQ: "FLOW_SEQ", MAP: "MAP", MAP_KEY: "MAP_KEY", MAP_VALUE: "MAP_VALUE", PLAIN: "PLAIN", QUOTE_DOUBLE: "QUOTE_DOUBLE", QUOTE_SINGLE: "QUOTE_SINGLE", SEQ: "SEQ", SEQ_ITEM: "SEQ_ITEM" }, Oo = "tag:yaml.org,2002:", Lo = { MAP: "tag:yaml.org,2002:map", SEQ: "tag:yaml.org,2002:seq", STR: "tag:yaml.org,2002:str" };
1121
+ function Is(t) {
1122
+ let e = [0], n = t.indexOf(`
1123
+ `);
1124
+ for (; n !== -1; ) n += 1, e.push(n), n = t.indexOf(`
1125
+ `, n);
1126
+ return e;
1127
+ }
1128
+ _chunkDFJNOFN2cjs.__name.call(void 0, Is, "Is");
1129
+ function Ps(t) {
1130
+ let e, n;
1131
+ return typeof t == "string" ? (e = Is(t), n = t) : (Array.isArray(t) && (t = t[0]), t && t.context && (t.lineStarts || (t.lineStarts = Is(t.context.src)), e = t.lineStarts, n = t.context.src)), { lineStarts: e, src: n };
1132
+ }
1133
+ _chunkDFJNOFN2cjs.__name.call(void 0, Ps, "Ps");
1134
+ function An(t, e) {
1135
+ if (typeof t != "number" || t < 0) return null;
1136
+ let { lineStarts: n, src: r } = Ps(e);
1137
+ if (!n || !r || t > r.length) return null;
1138
+ for (let i = 0; i < n.length; ++i) {
1139
+ let o = n[i];
1140
+ if (t < o) return { line: i, col: t - n[i - 1] + 1 };
1141
+ if (t === o) return { line: i + 1, col: 1 };
1142
+ }
1143
+ let s = n.length;
1144
+ return { line: s, col: t - n[s - 1] + 1 };
1145
+ }
1146
+ _chunkDFJNOFN2cjs.__name.call(void 0, An, "An");
1147
+ function Ao(t, e) {
1148
+ let { lineStarts: n, src: r } = Ps(e);
1149
+ if (!n || !(t >= 1) || t > n.length) return null;
1150
+ let s = n[t - 1], i = n[t];
1151
+ for (; i && i > s && r[i - 1] === `
1152
+ `; ) --i;
1153
+ return r.slice(s, i);
1154
+ }
1155
+ _chunkDFJNOFN2cjs.__name.call(void 0, Ao, "Ao");
1156
+ function To({ start: t, end: e }, n, r = 80) {
1157
+ let s = Ao(t.line, n);
1158
+ if (!s) return null;
1159
+ let { col: i } = t;
1160
+ if (s.length > r) if (i <= r - 10) s = s.substr(0, r - 1) + "\u2026";
1161
+ else {
1162
+ let f = Math.round(r / 2);
1163
+ s.length > i + f && (s = s.substr(0, i + f - 1) + "\u2026"), i -= s.length - r, s = "\u2026" + s.substr(1 - r);
1164
+ }
1165
+ let o = 1, a = "";
1166
+ e && (e.line === t.line && i + (e.col - t.col) <= r + 1 ? o = e.col - t.col : (o = Math.min(s.length + 1, r) - i, a = "\u2026"));
1167
+ let c = i > 1 ? " ".repeat(i - 1) : "", l = "^".repeat(o);
1168
+ return `${s}
1169
+ ${c}${l}${a}`;
1170
+ }
1171
+ _chunkDFJNOFN2cjs.__name.call(void 0, To, "To");
1172
+ var Ye = class t {
1173
+ static {
1174
+ _chunkDFJNOFN2cjs.__name.call(void 0, this, "t");
1175
+ }
1176
+ static copy(e) {
1177
+ return new t(e.start, e.end);
1178
+ }
1179
+ constructor(e, n) {
1180
+ this.start = e, this.end = n || e;
1181
+ }
1182
+ isEmpty() {
1183
+ return typeof this.start != "number" || !this.end || this.end <= this.start;
1184
+ }
1185
+ setOrigRange(e, n) {
1186
+ let { start: r, end: s } = this;
1187
+ if (e.length === 0 || s <= e[0]) return this.origStart = r, this.origEnd = s, n;
1188
+ let i = n;
1189
+ for (; i < e.length && !(e[i] > r); ) ++i;
1190
+ this.origStart = r + i;
1191
+ let o = i;
1192
+ for (; i < e.length && !(e[i] >= s); ) ++i;
1193
+ return this.origEnd = s + i, o;
1194
+ }
1195
+ }, se = class t {
1196
+ static {
1197
+ _chunkDFJNOFN2cjs.__name.call(void 0, this, "t");
1198
+ }
1199
+ static addStringTerminator(e, n, r) {
1200
+ if (r[r.length - 1] === `
1201
+ `) return r;
1202
+ let s = t.endOfWhiteSpace(e, n);
1203
+ return s >= e.length || e[s] === `
1204
+ ` ? r + `
1205
+ ` : r;
1206
+ }
1207
+ static atDocumentBoundary(e, n, r) {
1208
+ let s = e[n];
1209
+ if (!s) return true;
1210
+ let i = e[n - 1];
1211
+ if (i && i !== `
1212
+ `) return false;
1213
+ if (r) {
1214
+ if (s !== r) return false;
1215
+ } else if (s !== re.DIRECTIVES_END && s !== re.DOCUMENT_END) return false;
1216
+ let o = e[n + 1], a = e[n + 2];
1217
+ if (o !== s || a !== s) return false;
1218
+ let c = e[n + 3];
1219
+ return !c || c === `
1220
+ ` || c === " " || c === " ";
1221
+ }
1222
+ static endOfIdentifier(e, n) {
1223
+ let r = e[n], s = r === "<", i = s ? [`
1224
+ `, " ", " ", ">"] : [`
1225
+ `, " ", " ", "[", "]", "{", "}", ","];
1226
+ for (; r && i.indexOf(r) === -1; ) r = e[n += 1];
1227
+ return s && r === ">" && (n += 1), n;
1228
+ }
1229
+ static endOfIndent(e, n) {
1230
+ let r = e[n];
1231
+ for (; r === " "; ) r = e[n += 1];
1232
+ return n;
1233
+ }
1234
+ static endOfLine(e, n) {
1235
+ let r = e[n];
1236
+ for (; r && r !== `
1237
+ `; ) r = e[n += 1];
1238
+ return n;
1239
+ }
1240
+ static endOfWhiteSpace(e, n) {
1241
+ let r = e[n];
1242
+ for (; r === " " || r === " "; ) r = e[n += 1];
1243
+ return n;
1244
+ }
1245
+ static startOfLine(e, n) {
1246
+ let r = e[n - 1];
1247
+ if (r === `
1248
+ `) return n;
1249
+ for (; r && r !== `
1250
+ `; ) r = e[n -= 1];
1251
+ return n + 1;
1252
+ }
1253
+ static endOfBlockIndent(e, n, r) {
1254
+ let s = t.endOfIndent(e, r);
1255
+ if (s > r + n) return s;
1256
+ {
1257
+ let i = t.endOfWhiteSpace(e, s), o = e[i];
1258
+ if (!o || o === `
1259
+ `) return i;
1260
+ }
1261
+ return null;
1262
+ }
1263
+ static atBlank(e, n, r) {
1264
+ let s = e[n];
1265
+ return s === `
1266
+ ` || s === " " || s === " " || r && !s;
1267
+ }
1268
+ static nextNodeIsIndented(e, n, r) {
1269
+ return !e || n < 0 ? false : n > 0 ? true : r && e === "-";
1270
+ }
1271
+ static normalizeOffset(e, n) {
1272
+ let r = e[n];
1273
+ return r ? r !== `
1274
+ ` && e[n - 1] === `
1275
+ ` ? n - 1 : t.endOfWhiteSpace(e, n) : n;
1276
+ }
1277
+ static foldNewline(e, n, r) {
1278
+ let s = 0, i = false, o = "", a = e[n + 1];
1279
+ for (; a === " " || a === " " || a === `
1280
+ `; ) {
1281
+ switch (a) {
1282
+ case `
1283
+ `:
1284
+ s = 0, n += 1, o += `
1285
+ `;
1286
+ break;
1287
+ case " ":
1288
+ s <= r && (i = true), n = t.endOfWhiteSpace(e, n + 2) - 1;
1289
+ break;
1290
+ case " ":
1291
+ s += 1, n += 1;
1292
+ break;
1293
+ }
1294
+ a = e[n + 1];
1295
+ }
1296
+ return o || (o = " "), a && s <= r && (i = true), { fold: o, offset: n, error: i };
1297
+ }
1298
+ constructor(e, n, r) {
1299
+ Object.defineProperty(this, "context", { value: r || null, writable: true }), this.error = null, this.range = null, this.valueRange = null, this.props = n || [], this.type = e, this.value = null;
1300
+ }
1301
+ getPropValue(e, n, r) {
1302
+ if (!this.context) return null;
1303
+ let { src: s } = this.context, i = this.props[e];
1304
+ return i && s[i.start] === n ? s.slice(i.start + (r ? 1 : 0), i.end) : null;
1305
+ }
1306
+ get anchor() {
1307
+ for (let e = 0; e < this.props.length; ++e) {
1308
+ let n = this.getPropValue(e, re.ANCHOR, true);
1309
+ if (n != null) return n;
1310
+ }
1311
+ return null;
1312
+ }
1313
+ get comment() {
1314
+ let e = [];
1315
+ for (let n = 0; n < this.props.length; ++n) {
1316
+ let r = this.getPropValue(n, re.COMMENT, true);
1317
+ r != null && e.push(r);
1318
+ }
1319
+ return e.length > 0 ? e.join(`
1320
+ `) : null;
1321
+ }
1322
+ commentHasRequiredWhitespace(e) {
1323
+ let { src: n } = this.context;
1324
+ if (this.header && e === this.header.end || !this.valueRange) return false;
1325
+ let { end: r } = this.valueRange;
1326
+ return e !== r || t.atBlank(n, r - 1);
1327
+ }
1328
+ get hasComment() {
1329
+ if (this.context) {
1330
+ let { src: e } = this.context;
1331
+ for (let n = 0; n < this.props.length; ++n) if (e[this.props[n].start] === re.COMMENT) return true;
1332
+ }
1333
+ return false;
1334
+ }
1335
+ get hasProps() {
1336
+ if (this.context) {
1337
+ let { src: e } = this.context;
1338
+ for (let n = 0; n < this.props.length; ++n) if (e[this.props[n].start] !== re.COMMENT) return true;
1339
+ }
1340
+ return false;
1341
+ }
1342
+ get includesTrailingLines() {
1343
+ return false;
1344
+ }
1345
+ get jsonLike() {
1346
+ return [lt.FLOW_MAP, lt.FLOW_SEQ, lt.QUOTE_DOUBLE, lt.QUOTE_SINGLE].indexOf(this.type) !== -1;
1347
+ }
1348
+ get rangeAsLinePos() {
1349
+ if (!this.range || !this.context) return;
1350
+ let e = An(this.range.start, this.context.root);
1351
+ if (!e) return;
1352
+ let n = An(this.range.end, this.context.root);
1353
+ return { start: e, end: n };
1354
+ }
1355
+ get rawValue() {
1356
+ if (!this.valueRange || !this.context) return null;
1357
+ let { start: e, end: n } = this.valueRange;
1358
+ return this.context.src.slice(e, n);
1359
+ }
1360
+ get tag() {
1361
+ for (let e = 0; e < this.props.length; ++e) {
1362
+ let n = this.getPropValue(e, re.TAG, false);
1363
+ if (n != null) {
1364
+ if (n[1] === "<") return { verbatim: n.slice(2, -1) };
1365
+ {
1366
+ let [r, s, i] = n.match(/^(.*!)([^!]*)$/);
1367
+ return { handle: s, suffix: i };
1368
+ }
1369
+ }
1370
+ }
1371
+ return null;
1372
+ }
1373
+ get valueRangeContainsNewline() {
1374
+ if (!this.valueRange || !this.context) return false;
1375
+ let { start: e, end: n } = this.valueRange, { src: r } = this.context;
1376
+ for (let s = e; s < n; ++s) if (r[s] === `
1377
+ `) return true;
1378
+ return false;
1379
+ }
1380
+ parseComment(e) {
1381
+ let { src: n } = this.context;
1382
+ if (n[e] === re.COMMENT) {
1383
+ let r = t.endOfLine(n, e + 1), s = new Ye(e, r);
1384
+ return this.props.push(s), r;
1385
+ }
1386
+ return e;
1387
+ }
1388
+ setOrigRanges(e, n) {
1389
+ return this.range && (n = this.range.setOrigRange(e, n)), this.valueRange && this.valueRange.setOrigRange(e, n), this.props.forEach((r) => r.setOrigRange(e, n)), n;
1390
+ }
1391
+ toString() {
1392
+ let { context: { src: e }, range: n, value: r } = this;
1393
+ if (r != null) return r;
1394
+ let s = e.slice(n.start, n.end);
1395
+ return t.addStringTerminator(e, n.end, s);
1396
+ }
1397
+ }, de = class extends Error {
1398
+ static {
1399
+ _chunkDFJNOFN2cjs.__name.call(void 0, this, "de");
1400
+ }
1401
+ constructor(e, n, r) {
1402
+ if (!r || !(n instanceof se)) throw new Error(`Invalid arguments for new ${e}`);
1403
+ super(), this.name = e, this.message = r, this.source = n;
1404
+ }
1405
+ makePretty() {
1406
+ if (!this.source) return;
1407
+ this.nodeType = this.source.type;
1408
+ let e = this.source.context && this.source.context.root;
1409
+ if (typeof this.offset == "number") {
1410
+ this.range = new Ye(this.offset, this.offset + 1);
1411
+ let n = e && An(this.offset, e);
1412
+ if (n) {
1413
+ let r = { line: n.line, col: n.col + 1 };
1414
+ this.linePos = { start: n, end: r };
1415
+ }
1416
+ delete this.offset;
1417
+ } else this.range = this.source.range, this.linePos = this.source.rangeAsLinePos;
1418
+ if (this.linePos) {
1419
+ let { line: n, col: r } = this.linePos.start;
1420
+ this.message += ` at line ${n}, column ${r}`;
1421
+ let s = e && To(this.linePos, e);
1422
+ s && (this.message += `:
1423
+
1424
+ ${s}
1425
+ `);
1426
+ }
1427
+ delete this.source;
1428
+ }
1429
+ }, Tn = class extends de {
1430
+ static {
1431
+ _chunkDFJNOFN2cjs.__name.call(void 0, this, "Tn");
1432
+ }
1433
+ constructor(e, n) {
1434
+ super("YAMLReferenceError", e, n);
1435
+ }
1436
+ }, ft = class extends de {
1437
+ static {
1438
+ _chunkDFJNOFN2cjs.__name.call(void 0, this, "ft");
1439
+ }
1440
+ constructor(e, n) {
1441
+ super("YAMLSemanticError", e, n);
1442
+ }
1443
+ }, Cn = class extends de {
1444
+ static {
1445
+ _chunkDFJNOFN2cjs.__name.call(void 0, this, "Cn");
1446
+ }
1447
+ constructor(e, n) {
1448
+ super("YAMLSyntaxError", e, n);
1449
+ }
1450
+ }, Mn = class extends de {
1451
+ static {
1452
+ _chunkDFJNOFN2cjs.__name.call(void 0, this, "Mn");
1453
+ }
1454
+ constructor(e, n) {
1455
+ super("YAMLWarning", e, n);
1456
+ }
1457
+ };
1458
+ function Co(t, e, n) {
1459
+ return e in t ? Object.defineProperty(t, e, { value: n, enumerable: true, configurable: true, writable: true }) : t[e] = n, t;
1460
+ }
1461
+ _chunkDFJNOFN2cjs.__name.call(void 0, Co, "Co");
1462
+ var kn = class t extends se {
1463
+ static {
1464
+ _chunkDFJNOFN2cjs.__name.call(void 0, this, "t");
1465
+ }
1466
+ static endOfLine(e, n, r) {
1467
+ let s = e[n], i = n;
1468
+ for (; s && s !== `
1469
+ ` && !(r && (s === "[" || s === "]" || s === "{" || s === "}" || s === ",")); ) {
1470
+ let o = e[i + 1];
1471
+ if (s === ":" && (!o || o === `
1472
+ ` || o === " " || o === " " || r && o === ",") || (s === " " || s === " ") && o === "#") break;
1473
+ i += 1, s = o;
1474
+ }
1475
+ return i;
1476
+ }
1477
+ get strValue() {
1478
+ if (!this.valueRange || !this.context) return null;
1479
+ let { start: e, end: n } = this.valueRange, { src: r } = this.context, s = r[n - 1];
1480
+ for (; e < n && (s === `
1481
+ ` || s === " " || s === " "); ) s = r[--n - 1];
1482
+ let i = "";
1483
+ for (let a = e; a < n; ++a) {
1484
+ let c = r[a];
1485
+ if (c === `
1486
+ `) {
1487
+ let { fold: l, offset: f } = se.foldNewline(r, a, -1);
1488
+ i += l, a = f;
1489
+ } else if (c === " " || c === " ") {
1490
+ let l = a, f = r[a + 1];
1491
+ for (; a < n && (f === " " || f === " "); ) a += 1, f = r[a + 1];
1492
+ f !== `
1493
+ ` && (i += a > l ? r.slice(l, a + 1) : c);
1494
+ } else i += c;
1495
+ }
1496
+ let o = r[e];
1497
+ switch (o) {
1498
+ case " ": {
1499
+ let a = "Plain value cannot start with a tab character";
1500
+ return { errors: [new ft(this, a)], str: i };
1501
+ }
1502
+ case "@":
1503
+ case "`": {
1504
+ let a = `Plain value cannot start with reserved character ${o}`;
1505
+ return { errors: [new ft(this, a)], str: i };
1506
+ }
1507
+ default:
1508
+ return i;
1509
+ }
1510
+ }
1511
+ parseBlockValue(e) {
1512
+ let { indent: n, inFlow: r, src: s } = this.context, i = e, o = e;
1513
+ for (let a = s[i]; a === `
1514
+ ` && !se.atDocumentBoundary(s, i + 1); a = s[i]) {
1515
+ let c = se.endOfBlockIndent(s, n, i + 1);
1516
+ if (c === null || s[c] === "#") break;
1517
+ s[c] === `
1518
+ ` ? i = c : (o = t.endOfLine(s, c, r), i = o);
1519
+ }
1520
+ return this.valueRange.isEmpty() && (this.valueRange.start = e), this.valueRange.end = o, o;
1521
+ }
1522
+ parse(e, n) {
1523
+ this.context = e;
1524
+ let { inFlow: r, src: s } = e, i = n, o = s[i];
1525
+ return o && o !== "#" && o !== `
1526
+ ` && (i = t.endOfLine(s, n, r)), this.valueRange = new Ye(n, i), i = se.endOfWhiteSpace(s, i), i = this.parseComment(i), (!this.hasComment || this.valueRange.isEmpty()) && (i = this.parseBlockValue(i)), i;
1527
+ }
1528
+ };
1529
+ U.Char = re;
1530
+ U.Node = se;
1531
+ U.PlainValue = kn;
1532
+ U.Range = Ye;
1533
+ U.Type = lt;
1534
+ U.YAMLError = de;
1535
+ U.YAMLReferenceError = Tn;
1536
+ U.YAMLSemanticError = ft;
1537
+ U.YAMLSyntaxError = Cn;
1538
+ U.YAMLWarning = Mn;
1539
+ U._defineProperty = Co;
1540
+ U.defaultTagPrefix = Oo;
1541
+ U.defaultTags = Lo;
1542
+ });
1543
+ xs = ee((_s) => {
1544
+ "use strict";
1545
+ var u = le(), Ee = class extends u.Node {
1546
+ static {
1547
+ _chunkDFJNOFN2cjs.__name.call(void 0, this, "Ee");
1548
+ }
1549
+ constructor() {
1550
+ super(u.Type.BLANK_LINE);
1551
+ }
1552
+ get includesTrailingLines() {
1553
+ return true;
1554
+ }
1555
+ parse(e, n) {
1556
+ return this.context = e, this.range = new u.Range(n, n + 1), n + 1;
1557
+ }
1558
+ }, ut = class extends u.Node {
1559
+ static {
1560
+ _chunkDFJNOFN2cjs.__name.call(void 0, this, "ut");
1561
+ }
1562
+ constructor(e, n) {
1563
+ super(e, n), this.node = null;
1564
+ }
1565
+ get includesTrailingLines() {
1566
+ return !!this.node && this.node.includesTrailingLines;
1567
+ }
1568
+ parse(e, n) {
1569
+ this.context = e;
1570
+ let { parseNode: r, src: s } = e, { atLineStart: i, lineStart: o } = e;
1571
+ !i && this.type === u.Type.SEQ_ITEM && (this.error = new u.YAMLSemanticError(this, "Sequence items must not have preceding content on the same line"));
1572
+ let a = i ? n - o : e.indent, c = u.Node.endOfWhiteSpace(s, n + 1), l = s[c], f = l === "#", m = [], d = null;
1573
+ for (; l === `
1574
+ ` || l === "#"; ) {
1575
+ if (l === "#") {
1576
+ let h = u.Node.endOfLine(s, c + 1);
1577
+ m.push(new u.Range(c, h)), c = h;
1578
+ } else {
1579
+ i = true, o = c + 1;
1580
+ let h = u.Node.endOfWhiteSpace(s, o);
1581
+ s[h] === `
1582
+ ` && m.length === 0 && (d = new Ee(), o = d.parse({ src: s }, o)), c = u.Node.endOfIndent(s, o);
1583
+ }
1584
+ l = s[c];
1585
+ }
1586
+ if (u.Node.nextNodeIsIndented(l, c - (o + a), this.type !== u.Type.SEQ_ITEM) ? this.node = r({ atLineStart: i, inCollection: false, indent: a, lineStart: o, parent: this }, c) : l && o > n + 1 && (c = o - 1), this.node) {
1587
+ if (d) {
1588
+ let h = e.parent.items || e.parent.contents;
1589
+ h && h.push(d);
1590
+ }
1591
+ m.length && Array.prototype.push.apply(this.props, m), c = this.node.range.end;
1592
+ } else if (f) {
1593
+ let h = m[0];
1594
+ this.props.push(h), c = h.end;
1595
+ } else c = u.Node.endOfLine(s, n + 1);
1596
+ let y = this.node ? this.node.valueRange.end : c;
1597
+ return this.valueRange = new u.Range(n, y), c;
1598
+ }
1599
+ setOrigRanges(e, n) {
1600
+ return n = super.setOrigRanges(e, n), this.node ? this.node.setOrigRanges(e, n) : n;
1601
+ }
1602
+ toString() {
1603
+ let { context: { src: e }, node: n, range: r, value: s } = this;
1604
+ if (s != null) return s;
1605
+ let i = n ? e.slice(r.start, n.range.start) + String(n) : e.slice(r.start, r.end);
1606
+ return u.Node.addStringTerminator(e, r.end, i);
1607
+ }
1608
+ }, ye = class extends u.Node {
1609
+ static {
1610
+ _chunkDFJNOFN2cjs.__name.call(void 0, this, "ye");
1611
+ }
1612
+ constructor() {
1613
+ super(u.Type.COMMENT);
1614
+ }
1615
+ parse(e, n) {
1616
+ this.context = e;
1617
+ let r = this.parseComment(n);
1618
+ return this.range = new u.Range(n, r), r;
1619
+ }
1620
+ };
1621
+ function vn(t) {
1622
+ let e = t;
1623
+ for (; e instanceof ut; ) e = e.node;
1624
+ if (!(e instanceof $t)) return null;
1625
+ let n = e.items.length, r = -1;
1626
+ for (let o = n - 1; o >= 0; --o) {
1627
+ let a = e.items[o];
1628
+ if (a.type === u.Type.COMMENT) {
1629
+ let { indent: c, lineStart: l } = a.context;
1630
+ if (c > 0 && a.range.start >= l + c) break;
1631
+ r = o;
1632
+ } else if (a.type === u.Type.BLANK_LINE) r = o;
1633
+ else break;
1634
+ }
1635
+ if (r === -1) return null;
1636
+ let s = e.items.splice(r, n - r), i = s[0].range.start;
1637
+ for (; e.range.end = i, e.valueRange && e.valueRange.end > i && (e.valueRange.end = i), e !== t; ) e = e.context.parent;
1638
+ return s;
1639
+ }
1640
+ _chunkDFJNOFN2cjs.__name.call(void 0, vn, "vn");
1641
+ var $t = class t extends u.Node {
1642
+ static {
1643
+ _chunkDFJNOFN2cjs.__name.call(void 0, this, "t");
1644
+ }
1645
+ static nextContentHasIndent(e, n, r) {
1646
+ let s = u.Node.endOfLine(e, n) + 1;
1647
+ n = u.Node.endOfWhiteSpace(e, s);
1648
+ let i = e[n];
1649
+ return i ? n >= s + r ? true : i !== "#" && i !== `
1650
+ ` ? false : t.nextContentHasIndent(e, n, r) : false;
1651
+ }
1652
+ constructor(e) {
1653
+ super(e.type === u.Type.SEQ_ITEM ? u.Type.SEQ : u.Type.MAP);
1654
+ for (let r = e.props.length - 1; r >= 0; --r) if (e.props[r].start < e.context.lineStart) {
1655
+ this.props = e.props.slice(0, r + 1), e.props = e.props.slice(r + 1);
1656
+ let s = e.props[0] || e.valueRange;
1657
+ e.range.start = s.start;
1658
+ break;
1659
+ }
1660
+ this.items = [e];
1661
+ let n = vn(e);
1662
+ n && Array.prototype.push.apply(this.items, n);
1663
+ }
1664
+ get includesTrailingLines() {
1665
+ return this.items.length > 0;
1666
+ }
1667
+ parse(e, n) {
1668
+ this.context = e;
1669
+ let { parseNode: r, src: s } = e, i = u.Node.startOfLine(s, n), o = this.items[0];
1670
+ o.context.parent = this, this.valueRange = u.Range.copy(o.valueRange);
1671
+ let a = o.range.start - o.context.lineStart, c = n;
1672
+ c = u.Node.normalizeOffset(s, c);
1673
+ let l = s[c], f = u.Node.endOfWhiteSpace(s, i) === c, m = false;
1674
+ for (; l; ) {
1675
+ for (; l === `
1676
+ ` || l === "#"; ) {
1677
+ if (f && l === `
1678
+ ` && !m) {
1679
+ let h = new Ee();
1680
+ if (c = h.parse({ src: s }, c), this.valueRange.end = c, c >= s.length) {
1681
+ l = null;
1682
+ break;
1683
+ }
1684
+ this.items.push(h), c -= 1;
1685
+ } else if (l === "#") {
1686
+ if (c < i + a && !t.nextContentHasIndent(s, c, a)) return c;
1687
+ let h = new ye();
1688
+ if (c = h.parse({ indent: a, lineStart: i, src: s }, c), this.items.push(h), this.valueRange.end = c, c >= s.length) {
1689
+ l = null;
1690
+ break;
1691
+ }
1692
+ }
1693
+ if (i = c + 1, c = u.Node.endOfIndent(s, i), u.Node.atBlank(s, c)) {
1694
+ let h = u.Node.endOfWhiteSpace(s, c), g = s[h];
1695
+ (!g || g === `
1696
+ ` || g === "#") && (c = h);
1697
+ }
1698
+ l = s[c], f = true;
1699
+ }
1700
+ if (!l) break;
1701
+ if (c !== i + a && (f || l !== ":")) {
1702
+ if (c < i + a) {
1703
+ i > n && (c = i);
1704
+ break;
1705
+ } else if (!this.error) {
1706
+ let h = "All collection items must start at the same column";
1707
+ this.error = new u.YAMLSyntaxError(this, h);
1708
+ }
1709
+ }
1710
+ if (o.type === u.Type.SEQ_ITEM) {
1711
+ if (l !== "-") {
1712
+ i > n && (c = i);
1713
+ break;
1714
+ }
1715
+ } else if (l === "-" && !this.error) {
1716
+ let h = s[c + 1];
1717
+ if (!h || h === `
1718
+ ` || h === " " || h === " ") {
1719
+ let g = "A collection cannot be both a mapping and a sequence";
1720
+ this.error = new u.YAMLSyntaxError(this, g);
1721
+ }
1722
+ }
1723
+ let d = r({ atLineStart: f, inCollection: true, indent: a, lineStart: i, parent: this }, c);
1724
+ if (!d) return c;
1725
+ if (this.items.push(d), this.valueRange.end = d.valueRange.end, c = u.Node.normalizeOffset(s, d.range.end), l = s[c], f = false, m = d.includesTrailingLines, l) {
1726
+ let h = c - 1, g = s[h];
1727
+ for (; g === " " || g === " "; ) g = s[--h];
1728
+ g === `
1729
+ ` && (i = h + 1, f = true);
1730
+ }
1731
+ let y = vn(d);
1732
+ y && Array.prototype.push.apply(this.items, y);
1733
+ }
1734
+ return c;
1735
+ }
1736
+ setOrigRanges(e, n) {
1737
+ return n = super.setOrigRanges(e, n), this.items.forEach((r) => {
1738
+ n = r.setOrigRanges(e, n);
1739
+ }), n;
1740
+ }
1741
+ toString() {
1742
+ let { context: { src: e }, items: n, range: r, value: s } = this;
1743
+ if (s != null) return s;
1744
+ let i = e.slice(r.start, n[0].range.start) + String(n[0]);
1745
+ for (let o = 1; o < n.length; ++o) {
1746
+ let a = n[o], { atLineStart: c, indent: l } = a.context;
1747
+ if (c) for (let f = 0; f < l; ++f) i += " ";
1748
+ i += String(a);
1749
+ }
1750
+ return u.Node.addStringTerminator(e, r.end, i);
1751
+ }
1752
+ }, In = class extends u.Node {
1753
+ static {
1754
+ _chunkDFJNOFN2cjs.__name.call(void 0, this, "In");
1755
+ }
1756
+ constructor() {
1757
+ super(u.Type.DIRECTIVE), this.name = null;
1758
+ }
1759
+ get parameters() {
1760
+ let e = this.rawValue;
1761
+ return e ? e.trim().split(/[ \t]+/) : [];
1762
+ }
1763
+ parseName(e) {
1764
+ let { src: n } = this.context, r = e, s = n[r];
1765
+ for (; s && s !== `
1766
+ ` && s !== " " && s !== " "; ) s = n[r += 1];
1767
+ return this.name = n.slice(e, r), r;
1768
+ }
1769
+ parseParameters(e) {
1770
+ let { src: n } = this.context, r = e, s = n[r];
1771
+ for (; s && s !== `
1772
+ ` && s !== "#"; ) s = n[r += 1];
1773
+ return this.valueRange = new u.Range(e, r), r;
1774
+ }
1775
+ parse(e, n) {
1776
+ this.context = e;
1777
+ let r = this.parseName(n + 1);
1778
+ return r = this.parseParameters(r), r = this.parseComment(r), this.range = new u.Range(n, r), r;
1779
+ }
1780
+ }, Pn = class t extends u.Node {
1781
+ static {
1782
+ _chunkDFJNOFN2cjs.__name.call(void 0, this, "t");
1783
+ }
1784
+ static startCommentOrEndBlankLine(e, n) {
1785
+ let r = u.Node.endOfWhiteSpace(e, n), s = e[r];
1786
+ return s === "#" || s === `
1787
+ ` ? r : n;
1788
+ }
1789
+ constructor() {
1790
+ super(u.Type.DOCUMENT), this.directives = null, this.contents = null, this.directivesEndMarker = null, this.documentEndMarker = null;
1791
+ }
1792
+ parseDirectives(e) {
1793
+ let { src: n } = this.context;
1794
+ this.directives = [];
1795
+ let r = true, s = false, i = e;
1796
+ for (; !u.Node.atDocumentBoundary(n, i, u.Char.DIRECTIVES_END); ) switch (i = t.startCommentOrEndBlankLine(n, i), n[i]) {
1797
+ case `
1798
+ `:
1799
+ if (r) {
1800
+ let o = new Ee();
1801
+ i = o.parse({ src: n }, i), i < n.length && this.directives.push(o);
1802
+ } else i += 1, r = true;
1803
+ break;
1804
+ case "#":
1805
+ {
1806
+ let o = new ye();
1807
+ i = o.parse({ src: n }, i), this.directives.push(o), r = false;
1808
+ }
1809
+ break;
1810
+ case "%":
1811
+ {
1812
+ let o = new In();
1813
+ i = o.parse({ parent: this, src: n }, i), this.directives.push(o), s = true, r = false;
1814
+ }
1815
+ break;
1816
+ default:
1817
+ return s ? this.error = new u.YAMLSemanticError(this, "Missing directives-end indicator line") : this.directives.length > 0 && (this.contents = this.directives, this.directives = []), i;
1818
+ }
1819
+ return n[i] ? (this.directivesEndMarker = new u.Range(i, i + 3), i + 3) : (s ? this.error = new u.YAMLSemanticError(this, "Missing directives-end indicator line") : this.directives.length > 0 && (this.contents = this.directives, this.directives = []), i);
1820
+ }
1821
+ parseContents(e) {
1822
+ let { parseNode: n, src: r } = this.context;
1823
+ this.contents || (this.contents = []);
1824
+ let s = e;
1825
+ for (; r[s - 1] === "-"; ) s -= 1;
1826
+ let i = u.Node.endOfWhiteSpace(r, e), o = s === e;
1827
+ for (this.valueRange = new u.Range(i); !u.Node.atDocumentBoundary(r, i, u.Char.DOCUMENT_END); ) {
1828
+ switch (r[i]) {
1829
+ case `
1830
+ `:
1831
+ if (o) {
1832
+ let a = new Ee();
1833
+ i = a.parse({ src: r }, i), i < r.length && this.contents.push(a);
1834
+ } else i += 1, o = true;
1835
+ s = i;
1836
+ break;
1837
+ case "#":
1838
+ {
1839
+ let a = new ye();
1840
+ i = a.parse({ src: r }, i), this.contents.push(a), o = false;
1841
+ }
1842
+ break;
1843
+ default: {
1844
+ let a = u.Node.endOfIndent(r, i), l = n({ atLineStart: o, indent: -1, inFlow: false, inCollection: false, lineStart: s, parent: this }, a);
1845
+ if (!l) return this.valueRange.end = a;
1846
+ this.contents.push(l), i = l.range.end, o = false;
1847
+ let f = vn(l);
1848
+ f && Array.prototype.push.apply(this.contents, f);
1849
+ }
1850
+ }
1851
+ i = t.startCommentOrEndBlankLine(r, i);
1852
+ }
1853
+ if (this.valueRange.end = i, r[i] && (this.documentEndMarker = new u.Range(i, i + 3), i += 3, r[i])) {
1854
+ if (i = u.Node.endOfWhiteSpace(r, i), r[i] === "#") {
1855
+ let a = new ye();
1856
+ i = a.parse({ src: r }, i), this.contents.push(a);
1857
+ }
1858
+ switch (r[i]) {
1859
+ case `
1860
+ `:
1861
+ i += 1;
1862
+ break;
1863
+ case void 0:
1864
+ break;
1865
+ default:
1866
+ this.error = new u.YAMLSyntaxError(this, "Document end marker line cannot have a non-comment suffix");
1867
+ }
1868
+ }
1869
+ return i;
1870
+ }
1871
+ parse(e, n) {
1872
+ e.root = this, this.context = e;
1873
+ let { src: r } = e, s = r.charCodeAt(n) === 65279 ? n + 1 : n;
1874
+ return s = this.parseDirectives(s), s = this.parseContents(s), s;
1875
+ }
1876
+ setOrigRanges(e, n) {
1877
+ return n = super.setOrigRanges(e, n), this.directives.forEach((r) => {
1878
+ n = r.setOrigRanges(e, n);
1879
+ }), this.directivesEndMarker && (n = this.directivesEndMarker.setOrigRange(e, n)), this.contents.forEach((r) => {
1880
+ n = r.setOrigRanges(e, n);
1881
+ }), this.documentEndMarker && (n = this.documentEndMarker.setOrigRange(e, n)), n;
1882
+ }
1883
+ toString() {
1884
+ let { contents: e, directives: n, value: r } = this;
1885
+ if (r != null) return r;
1886
+ let s = n.join("");
1887
+ return e.length > 0 && ((n.length > 0 || e[0].type === u.Type.COMMENT) && (s += `---
1888
+ `), s += e.join("")), s[s.length - 1] !== `
1889
+ ` && (s += `
1890
+ `), s;
1891
+ }
1892
+ }, _n = class extends u.Node {
1893
+ static {
1894
+ _chunkDFJNOFN2cjs.__name.call(void 0, this, "_n");
1895
+ }
1896
+ parse(e, n) {
1897
+ this.context = e;
1898
+ let { src: r } = e, s = u.Node.endOfIdentifier(r, n + 1);
1899
+ return this.valueRange = new u.Range(n + 1, s), s = u.Node.endOfWhiteSpace(r, s), s = this.parseComment(s), s;
1900
+ }
1901
+ }, fe = { CLIP: "CLIP", KEEP: "KEEP", STRIP: "STRIP" }, xn = class extends u.Node {
1902
+ static {
1903
+ _chunkDFJNOFN2cjs.__name.call(void 0, this, "xn");
1904
+ }
1905
+ constructor(e, n) {
1906
+ super(e, n), this.blockIndent = null, this.chomping = fe.CLIP, this.header = null;
1907
+ }
1908
+ get includesTrailingLines() {
1909
+ return this.chomping === fe.KEEP;
1910
+ }
1911
+ get strValue() {
1912
+ if (!this.valueRange || !this.context) return null;
1913
+ let { start: e, end: n } = this.valueRange, { indent: r, src: s } = this.context;
1914
+ if (this.valueRange.isEmpty()) return "";
1915
+ let i = null, o = s[n - 1];
1916
+ for (; o === `
1917
+ ` || o === " " || o === " "; ) {
1918
+ if (n -= 1, n <= e) {
1919
+ if (this.chomping === fe.KEEP) break;
1920
+ return "";
1921
+ }
1922
+ o === `
1923
+ ` && (i = n), o = s[n - 1];
1924
+ }
1925
+ let a = n + 1;
1926
+ i && (this.chomping === fe.KEEP ? (a = i, n = this.valueRange.end) : n = i);
1927
+ let c = r + this.blockIndent, l = this.type === u.Type.BLOCK_FOLDED, f = true, m = "", d = "", y = false;
1928
+ for (let h = e; h < n; ++h) {
1929
+ for (let w = 0; w < c && s[h] === " "; ++w) h += 1;
1930
+ let g = s[h];
1931
+ if (g === `
1932
+ `) d === `
1933
+ ` ? m += `
1934
+ ` : d = `
1935
+ `;
1936
+ else {
1937
+ let w = u.Node.endOfLine(s, h), C = s.slice(h, w);
1938
+ h = w, l && (g === " " || g === " ") && h < a ? (d === " " ? d = `
1939
+ ` : !y && !f && d === `
1940
+ ` && (d = `
1941
+
1942
+ `), m += d + C, d = w < n && s[w] || "", y = true) : (m += d + C, d = l && h < a ? " " : `
1943
+ `, y = false), f && C !== "" && (f = false);
1944
+ }
1945
+ }
1946
+ return this.chomping === fe.STRIP ? m : m + `
1947
+ `;
1948
+ }
1949
+ parseBlockHeader(e) {
1950
+ let { src: n } = this.context, r = e + 1, s = "";
1951
+ for (; ; ) {
1952
+ let i = n[r];
1953
+ switch (i) {
1954
+ case "-":
1955
+ this.chomping = fe.STRIP;
1956
+ break;
1957
+ case "+":
1958
+ this.chomping = fe.KEEP;
1959
+ break;
1960
+ case "0":
1961
+ case "1":
1962
+ case "2":
1963
+ case "3":
1964
+ case "4":
1965
+ case "5":
1966
+ case "6":
1967
+ case "7":
1968
+ case "8":
1969
+ case "9":
1970
+ s += i;
1971
+ break;
1972
+ default:
1973
+ return this.blockIndent = Number(s) || null, this.header = new u.Range(e, r), r;
1974
+ }
1975
+ r += 1;
1976
+ }
1977
+ }
1978
+ parseBlockValue(e) {
1979
+ let { indent: n, src: r } = this.context, s = !!this.blockIndent, i = e, o = e, a = 1;
1980
+ for (let c = r[i]; c === `
1981
+ ` && (i += 1, !u.Node.atDocumentBoundary(r, i)); c = r[i]) {
1982
+ let l = u.Node.endOfBlockIndent(r, n, i);
1983
+ if (l === null) break;
1984
+ let f = r[l], m = l - (i + n);
1985
+ if (this.blockIndent) {
1986
+ if (f && f !== `
1987
+ ` && m < this.blockIndent) {
1988
+ if (r[l] === "#") break;
1989
+ if (!this.error) {
1990
+ let y = `Block scalars must not be less indented than their ${s ? "explicit indentation indicator" : "first line"}`;
1991
+ this.error = new u.YAMLSemanticError(this, y);
1992
+ }
1993
+ }
1994
+ } else if (r[l] !== `
1995
+ `) {
1996
+ if (m < a) {
1997
+ let d = "Block scalars with more-indented leading empty lines must use an explicit indentation indicator";
1998
+ this.error = new u.YAMLSemanticError(this, d);
1999
+ }
2000
+ this.blockIndent = m;
2001
+ } else m > a && (a = m);
2002
+ r[l] === `
2003
+ ` ? i = l : i = o = u.Node.endOfLine(r, l);
2004
+ }
2005
+ return this.chomping !== fe.KEEP && (i = r[o] ? o + 1 : o), this.valueRange = new u.Range(e + 1, i), i;
2006
+ }
2007
+ parse(e, n) {
2008
+ this.context = e;
2009
+ let { src: r } = e, s = this.parseBlockHeader(n);
2010
+ return s = u.Node.endOfWhiteSpace(r, s), s = this.parseComment(s), s = this.parseBlockValue(s), s;
2011
+ }
2012
+ setOrigRanges(e, n) {
2013
+ return n = super.setOrigRanges(e, n), this.header ? this.header.setOrigRange(e, n) : n;
2014
+ }
2015
+ }, Rn = class extends u.Node {
2016
+ static {
2017
+ _chunkDFJNOFN2cjs.__name.call(void 0, this, "Rn");
2018
+ }
2019
+ constructor(e, n) {
2020
+ super(e, n), this.items = null;
2021
+ }
2022
+ prevNodeIsJsonLike(e = this.items.length) {
2023
+ let n = this.items[e - 1];
2024
+ return !!n && (n.jsonLike || n.type === u.Type.COMMENT && this.prevNodeIsJsonLike(e - 1));
2025
+ }
2026
+ parse(e, n) {
2027
+ this.context = e;
2028
+ let { parseNode: r, src: s } = e, { indent: i, lineStart: o } = e, a = s[n];
2029
+ this.items = [{ char: a, offset: n }];
2030
+ let c = u.Node.endOfWhiteSpace(s, n + 1);
2031
+ for (a = s[c]; a && a !== "]" && a !== "}"; ) {
2032
+ switch (a) {
2033
+ case `
2034
+ `:
2035
+ {
2036
+ o = c + 1;
2037
+ let l = u.Node.endOfWhiteSpace(s, o);
2038
+ if (s[l] === `
2039
+ `) {
2040
+ let f = new Ee();
2041
+ o = f.parse({ src: s }, o), this.items.push(f);
2042
+ }
2043
+ if (c = u.Node.endOfIndent(s, o), c <= o + i && (a = s[c], c < o + i || a !== "]" && a !== "}")) {
2044
+ let f = "Insufficient indentation in flow collection";
2045
+ this.error = new u.YAMLSemanticError(this, f);
2046
+ }
2047
+ }
2048
+ break;
2049
+ case ",":
2050
+ this.items.push({ char: a, offset: c }), c += 1;
2051
+ break;
2052
+ case "#":
2053
+ {
2054
+ let l = new ye();
2055
+ c = l.parse({ src: s }, c), this.items.push(l);
2056
+ }
2057
+ break;
2058
+ case "?":
2059
+ case ":": {
2060
+ let l = s[c + 1];
2061
+ if (l === `
2062
+ ` || l === " " || l === " " || l === "," || a === ":" && this.prevNodeIsJsonLike()) {
2063
+ this.items.push({ char: a, offset: c }), c += 1;
2064
+ break;
2065
+ }
2066
+ }
2067
+ default: {
2068
+ let l = r({ atLineStart: false, inCollection: false, inFlow: true, indent: -1, lineStart: o, parent: this }, c);
2069
+ if (!l) return this.valueRange = new u.Range(n, c), c;
2070
+ this.items.push(l), c = u.Node.normalizeOffset(s, l.range.end);
2071
+ }
2072
+ }
2073
+ c = u.Node.endOfWhiteSpace(s, c), a = s[c];
2074
+ }
2075
+ return this.valueRange = new u.Range(n, c + 1), a && (this.items.push({ char: a, offset: c }), c = u.Node.endOfWhiteSpace(s, c + 1), c = this.parseComment(c)), c;
2076
+ }
2077
+ setOrigRanges(e, n) {
2078
+ return n = super.setOrigRanges(e, n), this.items.forEach((r) => {
2079
+ if (r instanceof u.Node) n = r.setOrigRanges(e, n);
2080
+ else if (e.length === 0) r.origOffset = r.offset;
2081
+ else {
2082
+ let s = n;
2083
+ for (; s < e.length && !(e[s] > r.offset); ) ++s;
2084
+ r.origOffset = r.offset + s, n = s;
2085
+ }
2086
+ }), n;
2087
+ }
2088
+ toString() {
2089
+ let { context: { src: e }, items: n, range: r, value: s } = this;
2090
+ if (s != null) return s;
2091
+ let i = n.filter((c) => c instanceof u.Node), o = "", a = r.start;
2092
+ return i.forEach((c) => {
2093
+ let l = e.slice(a, c.range.start);
2094
+ a = c.range.end, o += l + String(c), o[o.length - 1] === `
2095
+ ` && e[a - 1] !== `
2096
+ ` && e[a] === `
2097
+ ` && (a += 1);
2098
+ }), o += e.slice(a, r.end), u.Node.addStringTerminator(e, r.end, o);
2099
+ }
2100
+ }, Dn = class t extends u.Node {
2101
+ static {
2102
+ _chunkDFJNOFN2cjs.__name.call(void 0, this, "t");
2103
+ }
2104
+ static endOfQuote(e, n) {
2105
+ let r = e[n];
2106
+ for (; r && r !== '"'; ) n += r === "\\" ? 2 : 1, r = e[n];
2107
+ return n + 1;
2108
+ }
2109
+ get strValue() {
2110
+ if (!this.valueRange || !this.context) return null;
2111
+ let e = [], { start: n, end: r } = this.valueRange, { indent: s, src: i } = this.context;
2112
+ i[r - 1] !== '"' && e.push(new u.YAMLSyntaxError(this, 'Missing closing "quote'));
2113
+ let o = "";
2114
+ for (let a = n + 1; a < r - 1; ++a) {
2115
+ let c = i[a];
2116
+ if (c === `
2117
+ `) {
2118
+ u.Node.atDocumentBoundary(i, a + 1) && e.push(new u.YAMLSemanticError(this, "Document boundary indicators are not allowed within string values"));
2119
+ let { fold: l, offset: f, error: m } = u.Node.foldNewline(i, a, s);
2120
+ o += l, a = f, m && e.push(new u.YAMLSemanticError(this, "Multi-line double-quoted string needs to be sufficiently indented"));
2121
+ } else if (c === "\\") switch (a += 1, i[a]) {
2122
+ case "0":
2123
+ o += "\0";
2124
+ break;
2125
+ case "a":
2126
+ o += "\x07";
2127
+ break;
2128
+ case "b":
2129
+ o += "\b";
2130
+ break;
2131
+ case "e":
2132
+ o += "\x1B";
2133
+ break;
2134
+ case "f":
2135
+ o += "\f";
2136
+ break;
2137
+ case "n":
2138
+ o += `
2139
+ `;
2140
+ break;
2141
+ case "r":
2142
+ o += "\r";
2143
+ break;
2144
+ case "t":
2145
+ o += " ";
2146
+ break;
2147
+ case "v":
2148
+ o += "\v";
2149
+ break;
2150
+ case "N":
2151
+ o += "\x85";
2152
+ break;
2153
+ case "_":
2154
+ o += "\xA0";
2155
+ break;
2156
+ case "L":
2157
+ o += "\u2028";
2158
+ break;
2159
+ case "P":
2160
+ o += "\u2029";
2161
+ break;
2162
+ case " ":
2163
+ o += " ";
2164
+ break;
2165
+ case '"':
2166
+ o += '"';
2167
+ break;
2168
+ case "/":
2169
+ o += "/";
2170
+ break;
2171
+ case "\\":
2172
+ o += "\\";
2173
+ break;
2174
+ case " ":
2175
+ o += " ";
2176
+ break;
2177
+ case "x":
2178
+ o += this.parseCharCode(a + 1, 2, e), a += 2;
2179
+ break;
2180
+ case "u":
2181
+ o += this.parseCharCode(a + 1, 4, e), a += 4;
2182
+ break;
2183
+ case "U":
2184
+ o += this.parseCharCode(a + 1, 8, e), a += 8;
2185
+ break;
2186
+ case `
2187
+ `:
2188
+ for (; i[a + 1] === " " || i[a + 1] === " "; ) a += 1;
2189
+ break;
2190
+ default:
2191
+ e.push(new u.YAMLSyntaxError(this, `Invalid escape sequence ${i.substr(a - 1, 2)}`)), o += "\\" + i[a];
2192
+ }
2193
+ else if (c === " " || c === " ") {
2194
+ let l = a, f = i[a + 1];
2195
+ for (; f === " " || f === " "; ) a += 1, f = i[a + 1];
2196
+ f !== `
2197
+ ` && (o += a > l ? i.slice(l, a + 1) : c);
2198
+ } else o += c;
2199
+ }
2200
+ return e.length > 0 ? { errors: e, str: o } : o;
2201
+ }
2202
+ parseCharCode(e, n, r) {
2203
+ let { src: s } = this.context, i = s.substr(e, n), a = i.length === n && /^[0-9a-fA-F]+$/.test(i) ? parseInt(i, 16) : NaN;
2204
+ return isNaN(a) ? (r.push(new u.YAMLSyntaxError(this, `Invalid escape sequence ${s.substr(e - 2, n + 2)}`)), s.substr(e - 2, n + 2)) : String.fromCodePoint(a);
2205
+ }
2206
+ parse(e, n) {
2207
+ this.context = e;
2208
+ let { src: r } = e, s = t.endOfQuote(r, n + 1);
2209
+ return this.valueRange = new u.Range(n, s), s = u.Node.endOfWhiteSpace(r, s), s = this.parseComment(s), s;
2210
+ }
2211
+ }, Yn = class t extends u.Node {
2212
+ static {
2213
+ _chunkDFJNOFN2cjs.__name.call(void 0, this, "t");
2214
+ }
2215
+ static endOfQuote(e, n) {
2216
+ let r = e[n];
2217
+ for (; r; ) if (r === "'") {
2218
+ if (e[n + 1] !== "'") break;
2219
+ r = e[n += 2];
2220
+ } else r = e[n += 1];
2221
+ return n + 1;
2222
+ }
2223
+ get strValue() {
2224
+ if (!this.valueRange || !this.context) return null;
2225
+ let e = [], { start: n, end: r } = this.valueRange, { indent: s, src: i } = this.context;
2226
+ i[r - 1] !== "'" && e.push(new u.YAMLSyntaxError(this, "Missing closing 'quote"));
2227
+ let o = "";
2228
+ for (let a = n + 1; a < r - 1; ++a) {
2229
+ let c = i[a];
2230
+ if (c === `
2231
+ `) {
2232
+ u.Node.atDocumentBoundary(i, a + 1) && e.push(new u.YAMLSemanticError(this, "Document boundary indicators are not allowed within string values"));
2233
+ let { fold: l, offset: f, error: m } = u.Node.foldNewline(i, a, s);
2234
+ o += l, a = f, m && e.push(new u.YAMLSemanticError(this, "Multi-line single-quoted string needs to be sufficiently indented"));
2235
+ } else if (c === "'") o += c, a += 1, i[a] !== "'" && e.push(new u.YAMLSyntaxError(this, "Unescaped single quote? This should not happen."));
2236
+ else if (c === " " || c === " ") {
2237
+ let l = a, f = i[a + 1];
2238
+ for (; f === " " || f === " "; ) a += 1, f = i[a + 1];
2239
+ f !== `
2240
+ ` && (o += a > l ? i.slice(l, a + 1) : c);
2241
+ } else o += c;
2242
+ }
2243
+ return e.length > 0 ? { errors: e, str: o } : o;
2244
+ }
2245
+ parse(e, n) {
2246
+ this.context = e;
2247
+ let { src: r } = e, s = t.endOfQuote(r, n + 1);
2248
+ return this.valueRange = new u.Range(n, s), s = u.Node.endOfWhiteSpace(r, s), s = this.parseComment(s), s;
2249
+ }
2250
+ };
2251
+ function Mo(t, e) {
2252
+ switch (t) {
2253
+ case u.Type.ALIAS:
2254
+ return new _n(t, e);
2255
+ case u.Type.BLOCK_FOLDED:
2256
+ case u.Type.BLOCK_LITERAL:
2257
+ return new xn(t, e);
2258
+ case u.Type.FLOW_MAP:
2259
+ case u.Type.FLOW_SEQ:
2260
+ return new Rn(t, e);
2261
+ case u.Type.MAP_KEY:
2262
+ case u.Type.MAP_VALUE:
2263
+ case u.Type.SEQ_ITEM:
2264
+ return new ut(t, e);
2265
+ case u.Type.COMMENT:
2266
+ case u.Type.PLAIN:
2267
+ return new u.PlainValue(t, e);
2268
+ case u.Type.QUOTE_DOUBLE:
2269
+ return new Dn(t, e);
2270
+ case u.Type.QUOTE_SINGLE:
2271
+ return new Yn(t, e);
2272
+ default:
2273
+ return null;
2274
+ }
2275
+ }
2276
+ _chunkDFJNOFN2cjs.__name.call(void 0, Mo, "Mo");
2277
+ var Bn = class t {
2278
+ static {
2279
+ _chunkDFJNOFN2cjs.__name.call(void 0, this, "t");
2280
+ }
2281
+ static parseType(e, n, r) {
2282
+ switch (e[n]) {
2283
+ case "*":
2284
+ return u.Type.ALIAS;
2285
+ case ">":
2286
+ return u.Type.BLOCK_FOLDED;
2287
+ case "|":
2288
+ return u.Type.BLOCK_LITERAL;
2289
+ case "{":
2290
+ return u.Type.FLOW_MAP;
2291
+ case "[":
2292
+ return u.Type.FLOW_SEQ;
2293
+ case "?":
2294
+ return !r && u.Node.atBlank(e, n + 1, true) ? u.Type.MAP_KEY : u.Type.PLAIN;
2295
+ case ":":
2296
+ return !r && u.Node.atBlank(e, n + 1, true) ? u.Type.MAP_VALUE : u.Type.PLAIN;
2297
+ case "-":
2298
+ return !r && u.Node.atBlank(e, n + 1, true) ? u.Type.SEQ_ITEM : u.Type.PLAIN;
2299
+ case '"':
2300
+ return u.Type.QUOTE_DOUBLE;
2301
+ case "'":
2302
+ return u.Type.QUOTE_SINGLE;
2303
+ default:
2304
+ return u.Type.PLAIN;
2305
+ }
2306
+ }
2307
+ constructor(e = {}, { atLineStart: n, inCollection: r, inFlow: s, indent: i, lineStart: o, parent: a } = {}) {
2308
+ u._defineProperty(this, "parseNode", (c, l) => {
2309
+ if (u.Node.atDocumentBoundary(this.src, l)) return null;
2310
+ let f = new t(this, c), { props: m, type: d, valueStart: y } = f.parseProps(l), h = Mo(d, m), g = h.parse(f, y);
2311
+ if (h.range = new u.Range(l, g), g <= l && (h.error = new Error("Node#parse consumed no characters"), h.error.parseEnd = g, h.error.source = h, h.range.end = l + 1), f.nodeStartsCollection(h)) {
2312
+ !h.error && !f.atLineStart && f.parent.type === u.Type.DOCUMENT && (h.error = new u.YAMLSyntaxError(h, "Block collection must not have preceding content here (e.g. directives-end indicator)"));
2313
+ let w = new $t(h);
2314
+ return g = w.parse(new t(f), g), w.range = new u.Range(l, g), w;
2315
+ }
2316
+ return h;
2317
+ }), this.atLineStart = _nullishCoalesce(n, () => ( (e.atLineStart || false))), this.inCollection = _nullishCoalesce(r, () => ( (e.inCollection || false))), this.inFlow = _nullishCoalesce(s, () => ( (e.inFlow || false))), this.indent = _nullishCoalesce(i, () => ( e.indent)), this.lineStart = _nullishCoalesce(o, () => ( e.lineStart)), this.parent = _nullishCoalesce(a, () => ( (e.parent || {}))), this.root = e.root, this.src = e.src;
2318
+ }
2319
+ nodeStartsCollection(e) {
2320
+ let { inCollection: n, inFlow: r, src: s } = this;
2321
+ if (n || r) return false;
2322
+ if (e instanceof ut) return true;
2323
+ let i = e.range.end;
2324
+ return s[i] === `
2325
+ ` || s[i - 1] === `
2326
+ ` ? false : (i = u.Node.endOfWhiteSpace(s, i), s[i] === ":");
2327
+ }
2328
+ parseProps(e) {
2329
+ let { inFlow: n, parent: r, src: s } = this, i = [], o = false;
2330
+ e = this.atLineStart ? u.Node.endOfIndent(s, e) : u.Node.endOfWhiteSpace(s, e);
2331
+ let a = s[e];
2332
+ for (; a === u.Char.ANCHOR || a === u.Char.COMMENT || a === u.Char.TAG || a === `
2333
+ `; ) {
2334
+ if (a === `
2335
+ `) {
2336
+ let l = e, f;
2337
+ do
2338
+ f = l + 1, l = u.Node.endOfIndent(s, f);
2339
+ while (s[l] === `
2340
+ `);
2341
+ let m = l - (f + this.indent), d = r.type === u.Type.SEQ_ITEM && r.context.atLineStart;
2342
+ if (s[l] !== "#" && !u.Node.nextNodeIsIndented(s[l], m, !d)) break;
2343
+ this.atLineStart = true, this.lineStart = f, o = false, e = l;
2344
+ } else if (a === u.Char.COMMENT) {
2345
+ let l = u.Node.endOfLine(s, e + 1);
2346
+ i.push(new u.Range(e, l)), e = l;
2347
+ } else {
2348
+ let l = u.Node.endOfIdentifier(s, e + 1);
2349
+ a === u.Char.TAG && s[l] === "," && /^[a-zA-Z0-9-]+\.[a-zA-Z0-9-]+,\d\d\d\d(-\d\d){0,2}\/\S/.test(s.slice(e + 1, l + 13)) && (l = u.Node.endOfIdentifier(s, l + 5)), i.push(new u.Range(e, l)), o = true, e = u.Node.endOfWhiteSpace(s, l);
2350
+ }
2351
+ a = s[e];
2352
+ }
2353
+ o && a === ":" && u.Node.atBlank(s, e + 1, true) && (e -= 1);
2354
+ let c = t.parseType(s, e, n);
2355
+ return { props: i, type: c, valueStart: e };
2356
+ }
2357
+ };
2358
+ function ko(t) {
2359
+ let e = [];
2360
+ t.indexOf("\r") !== -1 && (t = t.replace(/\r\n?/g, (s, i) => (s.length > 1 && e.push(i), `
2361
+ `)));
2362
+ let n = [], r = 0;
2363
+ do {
2364
+ let s = new Pn(), i = new Bn({ src: t });
2365
+ r = s.parse(i, r), n.push(s);
2366
+ } while (r < t.length);
2367
+ return n.setOrigRanges = () => {
2368
+ if (e.length === 0) return false;
2369
+ for (let i = 1; i < e.length; ++i) e[i] -= i;
2370
+ let s = 0;
2371
+ for (let i = 0; i < n.length; ++i) s = n[i].setOrigRanges(e, s);
2372
+ return e.splice(0, e.length), true;
2373
+ }, n.toString = () => n.join(`...
2374
+ `), n;
2375
+ }
2376
+ _chunkDFJNOFN2cjs.__name.call(void 0, ko, "ko");
2377
+ _s.parse = ko;
2378
+ });
2379
+ $e = ee((k) => {
2380
+ "use strict";
2381
+ var p = le();
2382
+ function vo(t, e, n) {
2383
+ return n ? `#${n.replace(/[\s\S]^/gm, `$&${e}#`)}
2384
+ ${e}${t}` : t;
2385
+ }
2386
+ _chunkDFJNOFN2cjs.__name.call(void 0, vo, "vo");
2387
+ function Be(t, e, n) {
2388
+ return n ? n.indexOf(`
2389
+ `) === -1 ? `${t} #${n}` : `${t}
2390
+ ` + n.replace(/^/gm, `${e || ""}#`) : t;
2391
+ }
2392
+ _chunkDFJNOFN2cjs.__name.call(void 0, Be, "Be");
2393
+ var W = class {
2394
+ static {
2395
+ _chunkDFJNOFN2cjs.__name.call(void 0, this, "W");
2396
+ }
2397
+ };
2398
+ function ue(t, e, n) {
2399
+ if (Array.isArray(t)) return t.map((r, s) => ue(r, String(s), n));
2400
+ if (t && typeof t.toJSON == "function") {
2401
+ let r = n && n.anchors && n.anchors.get(t);
2402
+ r && (n.onCreate = (i) => {
2403
+ r.res = i, delete n.onCreate;
2404
+ });
2405
+ let s = t.toJSON(e, n);
2406
+ return r && n.onCreate && n.onCreate(s), s;
2407
+ }
2408
+ return (!n || !n.keep) && typeof t == "bigint" ? Number(t) : t;
2409
+ }
2410
+ _chunkDFJNOFN2cjs.__name.call(void 0, ue, "ue");
2411
+ var P = class extends W {
2412
+ static {
2413
+ _chunkDFJNOFN2cjs.__name.call(void 0, this, "P");
2414
+ }
2415
+ constructor(e) {
2416
+ super(), this.value = e;
2417
+ }
2418
+ toJSON(e, n) {
2419
+ return n && n.keep ? this.value : ue(this.value, e, n);
2420
+ }
2421
+ toString() {
2422
+ return String(this.value);
2423
+ }
2424
+ };
2425
+ function Rs(t, e, n) {
2426
+ let r = n;
2427
+ for (let s = e.length - 1; s >= 0; --s) {
2428
+ let i = e[s];
2429
+ if (Number.isInteger(i) && i >= 0) {
2430
+ let o = [];
2431
+ o[i] = r, r = o;
2432
+ } else {
2433
+ let o = {};
2434
+ Object.defineProperty(o, i, { value: r, writable: true, enumerable: true, configurable: true }), r = o;
2435
+ }
2436
+ }
2437
+ return t.createNode(r, false);
2438
+ }
2439
+ _chunkDFJNOFN2cjs.__name.call(void 0, Rs, "Rs");
2440
+ var Bs = /* @__PURE__ */ _chunkDFJNOFN2cjs.__name.call(void 0, (t) => t == null || typeof t == "object" && t[Symbol.iterator]().next().done, "Bs"), j = class t extends W {
2441
+ static {
2442
+ _chunkDFJNOFN2cjs.__name.call(void 0, this, "t");
2443
+ }
2444
+ constructor(e) {
2445
+ super(), p._defineProperty(this, "items", []), this.schema = e;
2446
+ }
2447
+ addIn(e, n) {
2448
+ if (Bs(e)) this.add(n);
2449
+ else {
2450
+ let [r, ...s] = e, i = this.get(r, true);
2451
+ if (i instanceof t) i.addIn(s, n);
2452
+ else if (i === void 0 && this.schema) this.set(r, Rs(this.schema, s, n));
2453
+ else throw new Error(`Expected YAML collection at ${r}. Remaining path: ${s}`);
2454
+ }
2455
+ }
2456
+ deleteIn([e, ...n]) {
2457
+ if (n.length === 0) return this.delete(e);
2458
+ let r = this.get(e, true);
2459
+ if (r instanceof t) return r.deleteIn(n);
2460
+ throw new Error(`Expected YAML collection at ${e}. Remaining path: ${n}`);
2461
+ }
2462
+ getIn([e, ...n], r) {
2463
+ let s = this.get(e, true);
2464
+ return n.length === 0 ? !r && s instanceof P ? s.value : s : s instanceof t ? s.getIn(n, r) : void 0;
2465
+ }
2466
+ hasAllNullValues() {
2467
+ return this.items.every((e) => {
2468
+ if (!e || e.type !== "PAIR") return false;
2469
+ let n = e.value;
2470
+ return n == null || n instanceof P && n.value == null && !n.commentBefore && !n.comment && !n.tag;
2471
+ });
2472
+ }
2473
+ hasIn([e, ...n]) {
2474
+ if (n.length === 0) return this.has(e);
2475
+ let r = this.get(e, true);
2476
+ return r instanceof t ? r.hasIn(n) : false;
2477
+ }
2478
+ setIn([e, ...n], r) {
2479
+ if (n.length === 0) this.set(e, r);
2480
+ else {
2481
+ let s = this.get(e, true);
2482
+ if (s instanceof t) s.setIn(n, r);
2483
+ else if (s === void 0 && this.schema) this.set(e, Rs(this.schema, n, r));
2484
+ else throw new Error(`Expected YAML collection at ${e}. Remaining path: ${n}`);
2485
+ }
2486
+ }
2487
+ toJSON() {
2488
+ return null;
2489
+ }
2490
+ toString(e, { blockItem: n, flowChars: r, isMap: s, itemIndent: i }, o, a) {
2491
+ let { indent: c, indentStep: l, stringify: f } = e, m = this.type === p.Type.FLOW_MAP || this.type === p.Type.FLOW_SEQ || e.inFlow;
2492
+ m && (i += l);
2493
+ let d = s && this.hasAllNullValues();
2494
+ e = Object.assign({}, e, { allNullValues: d, indent: i, inFlow: m, type: null });
2495
+ let y = false, h = false, g = this.items.reduce((C, L, M) => {
2496
+ let A;
2497
+ L && (!y && L.spaceBefore && C.push({ type: "comment", str: "" }), L.commentBefore && L.commentBefore.match(/^.*$/gm).forEach((Li) => {
2498
+ C.push({ type: "comment", str: `#${Li}` });
2499
+ }), L.comment && (A = L.comment), m && (!y && L.spaceBefore || L.commentBefore || L.comment || L.key && (L.key.commentBefore || L.key.comment) || L.value && (L.value.commentBefore || L.value.comment)) && (h = true)), y = false;
2500
+ let _ = f(L, e, () => A = null, () => y = true);
2501
+ return m && !h && _.includes(`
2502
+ `) && (h = true), m && M < this.items.length - 1 && (_ += ","), _ = Be(_, i, A), y && (A || m) && (y = false), C.push({ type: "item", str: _ }), C;
2503
+ }, []), w;
2504
+ if (g.length === 0) w = r.start + r.end;
2505
+ else if (m) {
2506
+ let { start: C, end: L } = r, M = g.map((A) => A.str);
2507
+ if (h || M.reduce((A, _) => A + _.length + 2, 2) > t.maxFlowStringSingleLineLength) {
2508
+ w = C;
2509
+ for (let A of M) w += A ? `
2510
+ ${l}${c}${A}` : `
2511
+ `;
2512
+ w += `
2513
+ ${c}${L}`;
2514
+ } else w = `${C} ${M.join(" ")} ${L}`;
2515
+ } else {
2516
+ let C = g.map(n);
2517
+ w = C.shift();
2518
+ for (let L of C) w += L ? `
2519
+ ${c}${L}` : `
2520
+ `;
2521
+ }
2522
+ return this.comment ? (w += `
2523
+ ` + this.comment.replace(/^/gm, `${c}#`), o && o()) : y && a && a(), w;
2524
+ }
2525
+ };
2526
+ p._defineProperty(j, "maxFlowStringSingleLineLength", 60);
2527
+ function Ft(t) {
2528
+ let e = t instanceof P ? t.value : t;
2529
+ return e && typeof e == "string" && (e = Number(e)), Number.isInteger(e) && e >= 0 ? e : null;
2530
+ }
2531
+ _chunkDFJNOFN2cjs.__name.call(void 0, Ft, "Ft");
2532
+ var pe = class extends j {
2533
+ static {
2534
+ _chunkDFJNOFN2cjs.__name.call(void 0, this, "pe");
2535
+ }
2536
+ add(e) {
2537
+ this.items.push(e);
2538
+ }
2539
+ delete(e) {
2540
+ let n = Ft(e);
2541
+ return typeof n != "number" ? false : this.items.splice(n, 1).length > 0;
2542
+ }
2543
+ get(e, n) {
2544
+ let r = Ft(e);
2545
+ if (typeof r != "number") return;
2546
+ let s = this.items[r];
2547
+ return !n && s instanceof P ? s.value : s;
2548
+ }
2549
+ has(e) {
2550
+ let n = Ft(e);
2551
+ return typeof n == "number" && n < this.items.length;
2552
+ }
2553
+ set(e, n) {
2554
+ let r = Ft(e);
2555
+ if (typeof r != "number") throw new Error(`Expected a valid index, not ${e}.`);
2556
+ this.items[r] = n;
2557
+ }
2558
+ toJSON(e, n) {
2559
+ let r = [];
2560
+ n && n.onCreate && n.onCreate(r);
2561
+ let s = 0;
2562
+ for (let i of this.items) r.push(ue(i, String(s++), n));
2563
+ return r;
2564
+ }
2565
+ toString(e, n, r) {
2566
+ return e ? super.toString(e, { blockItem: /* @__PURE__ */ _chunkDFJNOFN2cjs.__name.call(void 0, (s) => s.type === "comment" ? s.str : `- ${s.str}`, "blockItem"), flowChars: { start: "[", end: "]" }, isMap: false, itemIndent: (e.indent || "") + " " }, n, r) : JSON.stringify(this);
2567
+ }
2568
+ }, Io = /* @__PURE__ */ _chunkDFJNOFN2cjs.__name.call(void 0, (t, e, n) => e === null ? "" : typeof e != "object" ? String(e) : t instanceof W && n && n.doc ? t.toString({ anchors: /* @__PURE__ */ Object.create(null), doc: n.doc, indent: "", indentStep: n.indentStep, inFlow: true, inStringifyKey: true, stringify: n.stringify }) : JSON.stringify(e), "Io"), T = class t extends W {
2569
+ static {
2570
+ _chunkDFJNOFN2cjs.__name.call(void 0, this, "t");
2571
+ }
2572
+ constructor(e, n = null) {
2573
+ super(), this.key = e, this.value = n, this.type = t.Type.PAIR;
2574
+ }
2575
+ get commentBefore() {
2576
+ return this.key instanceof W ? this.key.commentBefore : void 0;
2577
+ }
2578
+ set commentBefore(e) {
2579
+ if (this.key == null && (this.key = new P(null)), this.key instanceof W) this.key.commentBefore = e;
2580
+ else {
2581
+ let n = "Pair.commentBefore is an alias for Pair.key.commentBefore. To set it, the key must be a Node.";
2582
+ throw new Error(n);
2583
+ }
2584
+ }
2585
+ addToJSMap(e, n) {
2586
+ let r = ue(this.key, "", e);
2587
+ if (n instanceof Map) {
2588
+ let s = ue(this.value, r, e);
2589
+ n.set(r, s);
2590
+ } else if (n instanceof Set) n.add(r);
2591
+ else {
2592
+ let s = Io(this.key, r, e), i = ue(this.value, s, e);
2593
+ s in n ? Object.defineProperty(n, s, { value: i, writable: true, enumerable: true, configurable: true }) : n[s] = i;
2594
+ }
2595
+ return n;
2596
+ }
2597
+ toJSON(e, n) {
2598
+ let r = n && n.mapAsMap ? /* @__PURE__ */ new Map() : {};
2599
+ return this.addToJSMap(n, r);
2600
+ }
2601
+ toString(e, n, r) {
2602
+ if (!e || !e.doc) return JSON.stringify(this);
2603
+ let { indent: s, indentSeq: i, simpleKeys: o } = e.doc.options, { key: a, value: c } = this, l = a instanceof W && a.comment;
2604
+ if (o) {
2605
+ if (l) throw new Error("With simple keys, key nodes cannot have comments");
2606
+ if (a instanceof j) {
2607
+ let _ = "With simple keys, collection cannot be used as a key value";
2608
+ throw new Error(_);
2609
+ }
2610
+ }
2611
+ let f = !o && (!a || l || (a instanceof W ? a instanceof j || a.type === p.Type.BLOCK_FOLDED || a.type === p.Type.BLOCK_LITERAL : typeof a == "object")), { doc: m, indent: d, indentStep: y, stringify: h } = e;
2612
+ e = Object.assign({}, e, { implicitKey: !f, indent: d + y });
2613
+ let g = false, w = h(a, e, () => l = null, () => g = true);
2614
+ if (w = Be(w, e.indent, l), !f && w.length > 1024) {
2615
+ if (o) throw new Error("With simple keys, single line scalar must not span more than 1024 characters");
2616
+ f = true;
2617
+ }
2618
+ if (e.allNullValues && !o) return this.comment ? (w = Be(w, e.indent, this.comment), n && n()) : g && !l && r && r(), e.inFlow && !f ? w : `? ${w}`;
2619
+ w = f ? `? ${w}
2620
+ ${d}:` : `${w}:`, this.comment && (w = Be(w, e.indent, this.comment), n && n());
2621
+ let C = "", L = null;
2622
+ if (c instanceof W) {
2623
+ if (c.spaceBefore && (C = `
2624
+ `), c.commentBefore) {
2625
+ let _ = c.commentBefore.replace(/^/gm, `${e.indent}#`);
2626
+ C += `
2627
+ ${_}`;
2628
+ }
2629
+ L = c.comment;
2630
+ } else c && typeof c == "object" && (c = m.schema.createNode(c, true));
2631
+ e.implicitKey = false, !f && !this.comment && c instanceof P && (e.indentAtStart = w.length + 1), g = false, !i && s >= 2 && !e.inFlow && !f && c instanceof pe && c.type !== p.Type.FLOW_SEQ && !c.tag && !m.anchors.getName(c) && (e.indent = e.indent.substr(2));
2632
+ let M = h(c, e, () => L = null, () => g = true), A = " ";
2633
+ return C || this.comment ? A = `${C}
2634
+ ${e.indent}` : !f && c instanceof j ? (!(M[0] === "[" || M[0] === "{") || M.includes(`
2635
+ `)) && (A = `
2636
+ ${e.indent}`) : M[0] === `
2637
+ ` && (A = ""), g && !L && r && r(), Be(w + A + M, e.indent, L);
2638
+ }
2639
+ };
2640
+ p._defineProperty(T, "Type", { PAIR: "PAIR", MERGE_PAIR: "MERGE_PAIR" });
2641
+ var qt = /* @__PURE__ */ _chunkDFJNOFN2cjs.__name.call(void 0, (t, e) => {
2642
+ if (t instanceof we) {
2643
+ let n = e.get(t.source);
2644
+ return n.count * n.aliasCount;
2645
+ } else if (t instanceof j) {
2646
+ let n = 0;
2647
+ for (let r of t.items) {
2648
+ let s = qt(r, e);
2649
+ s > n && (n = s);
2650
+ }
2651
+ return n;
2652
+ } else if (t instanceof T) {
2653
+ let n = qt(t.key, e), r = qt(t.value, e);
2654
+ return Math.max(n, r);
2655
+ }
2656
+ return 1;
2657
+ }, "qt"), we = class t extends W {
2658
+ static {
2659
+ _chunkDFJNOFN2cjs.__name.call(void 0, this, "t");
2660
+ }
2661
+ static stringify({ range: e, source: n }, { anchors: r, doc: s, implicitKey: i, inStringifyKey: o }) {
2662
+ let a = Object.keys(r).find((l) => r[l] === n);
2663
+ if (!a && o && (a = s.anchors.getName(n) || s.anchors.newName()), a) return `*${a}${i ? " " : ""}`;
2664
+ let c = s.anchors.getName(n) ? "Alias node must be after source node" : "Source node not found for alias node";
2665
+ throw new Error(`${c} [${e}]`);
2666
+ }
2667
+ constructor(e) {
2668
+ super(), this.source = e, this.type = p.Type.ALIAS;
2669
+ }
2670
+ set tag(e) {
2671
+ throw new Error("Alias nodes cannot have tags");
2672
+ }
2673
+ toJSON(e, n) {
2674
+ if (!n) return ue(this.source, e, n);
2675
+ let { anchors: r, maxAliasCount: s } = n, i = r.get(this.source);
2676
+ if (!i || i.res === void 0) {
2677
+ let o = "This should not happen: Alias anchor was not resolved?";
2678
+ throw this.cstNode ? new p.YAMLReferenceError(this.cstNode, o) : new ReferenceError(o);
2679
+ }
2680
+ if (s >= 0 && (i.count += 1, i.aliasCount === 0 && (i.aliasCount = qt(this.source, r)), i.count * i.aliasCount > s)) {
2681
+ let o = "Excessive alias count indicates a resource exhaustion attack";
2682
+ throw this.cstNode ? new p.YAMLReferenceError(this.cstNode, o) : new ReferenceError(o);
2683
+ }
2684
+ return i.res;
2685
+ }
2686
+ toString(e) {
2687
+ return t.stringify(this, e);
2688
+ }
2689
+ };
2690
+ p._defineProperty(we, "default", true);
2691
+ function pt(t, e) {
2692
+ let n = e instanceof P ? e.value : e;
2693
+ for (let r of t) if (r instanceof T && (r.key === e || r.key === n || r.key && r.key.value === n)) return r;
2694
+ }
2695
+ _chunkDFJNOFN2cjs.__name.call(void 0, pt, "pt");
2696
+ var mt = class extends j {
2697
+ static {
2698
+ _chunkDFJNOFN2cjs.__name.call(void 0, this, "mt");
2699
+ }
2700
+ add(e, n) {
2701
+ e ? e instanceof T || (e = new T(e.key || e, e.value)) : e = new T(e);
2702
+ let r = pt(this.items, e.key), s = this.schema && this.schema.sortMapEntries;
2703
+ if (r) if (n) r.value = e.value;
2704
+ else throw new Error(`Key ${e.key} already set`);
2705
+ else if (s) {
2706
+ let i = this.items.findIndex((o) => s(e, o) < 0);
2707
+ i === -1 ? this.items.push(e) : this.items.splice(i, 0, e);
2708
+ } else this.items.push(e);
2709
+ }
2710
+ delete(e) {
2711
+ let n = pt(this.items, e);
2712
+ return n ? this.items.splice(this.items.indexOf(n), 1).length > 0 : false;
2713
+ }
2714
+ get(e, n) {
2715
+ let r = pt(this.items, e), s = r && r.value;
2716
+ return !n && s instanceof P ? s.value : s;
2717
+ }
2718
+ has(e) {
2719
+ return !!pt(this.items, e);
2720
+ }
2721
+ set(e, n) {
2722
+ this.add(new T(e, n), true);
2723
+ }
2724
+ toJSON(e, n, r) {
2725
+ let s = r ? new r() : n && n.mapAsMap ? /* @__PURE__ */ new Map() : {};
2726
+ n && n.onCreate && n.onCreate(s);
2727
+ for (let i of this.items) i.addToJSMap(n, s);
2728
+ return s;
2729
+ }
2730
+ toString(e, n, r) {
2731
+ if (!e) return JSON.stringify(this);
2732
+ for (let s of this.items) if (!(s instanceof T)) throw new Error(`Map items must all be pairs; found ${JSON.stringify(s)} instead`);
2733
+ return super.toString(e, { blockItem: /* @__PURE__ */ _chunkDFJNOFN2cjs.__name.call(void 0, (s) => s.str, "blockItem"), flowChars: { start: "{", end: "}" }, isMap: true, itemIndent: e.indent || "" }, n, r);
2734
+ }
2735
+ }, $s = "<<", Vt = class extends T {
2736
+ static {
2737
+ _chunkDFJNOFN2cjs.__name.call(void 0, this, "Vt");
2738
+ }
2739
+ constructor(e) {
2740
+ if (e instanceof T) {
2741
+ let n = e.value;
2742
+ n instanceof pe || (n = new pe(), n.items.push(e.value), n.range = e.value.range), super(e.key, n), this.range = e.range;
2743
+ } else super(new P($s), new pe());
2744
+ this.type = T.Type.MERGE_PAIR;
2745
+ }
2746
+ addToJSMap(e, n) {
2747
+ for (let { source: r } of this.value.items) {
2748
+ if (!(r instanceof mt)) throw new Error("Merge sources must be maps");
2749
+ let s = r.toJSON(null, e, Map);
2750
+ for (let [i, o] of s) n instanceof Map ? n.has(i) || n.set(i, o) : n instanceof Set ? n.add(i) : Object.prototype.hasOwnProperty.call(n, i) || Object.defineProperty(n, i, { value: o, writable: true, enumerable: true, configurable: true });
2751
+ }
2752
+ return n;
2753
+ }
2754
+ toString(e, n) {
2755
+ let r = this.value;
2756
+ if (r.items.length > 1) return super.toString(e, n);
2757
+ this.value = r.items[0];
2758
+ let s = super.toString(e, n);
2759
+ return this.value = r, s;
2760
+ }
2761
+ }, Po = { defaultType: p.Type.BLOCK_LITERAL, lineWidth: 76 }, _o = { trueStr: "true", falseStr: "false" }, xo = { asBigInt: false }, Ro = { nullStr: "null" }, be = { defaultType: p.Type.PLAIN, doubleQuoted: { jsonEncoding: false, minMultiLineLength: 40 }, fold: { lineWidth: 80, minContentWidth: 20 } };
2762
+ function Fn(t, e, n) {
2763
+ for (let { format: r, test: s, resolve: i } of e) if (s) {
2764
+ let o = t.match(s);
2765
+ if (o) {
2766
+ let a = i.apply(null, o);
2767
+ return a instanceof P || (a = new P(a)), r && (a.format = r), a;
2768
+ }
2769
+ }
2770
+ return n && (t = n(t)), new P(t);
2771
+ }
2772
+ _chunkDFJNOFN2cjs.__name.call(void 0, Fn, "Fn");
2773
+ var Fs = "flow", $n = "block", Ut = "quoted", Ds = /* @__PURE__ */ _chunkDFJNOFN2cjs.__name.call(void 0, (t, e) => {
2774
+ let n = t[e + 1];
2775
+ for (; n === " " || n === " "; ) {
2776
+ do
2777
+ n = t[e += 1];
2778
+ while (n && n !== `
2779
+ `);
2780
+ n = t[e + 1];
2781
+ }
2782
+ return e;
2783
+ }, "Ds");
2784
+ function Wt(t, e, n, { indentAtStart: r, lineWidth: s = 80, minContentWidth: i = 20, onFold: o, onOverflow: a }) {
2785
+ if (!s || s < 0) return t;
2786
+ let c = Math.max(1 + i, 1 + s - e.length);
2787
+ if (t.length <= c) return t;
2788
+ let l = [], f = {}, m = s - e.length;
2789
+ typeof r == "number" && (r > s - Math.max(2, i) ? l.push(0) : m = s - r);
2790
+ let d, y, h = false, g = -1, w = -1, C = -1;
2791
+ n === $n && (g = Ds(t, g), g !== -1 && (m = g + c));
2792
+ for (let M; M = t[g += 1]; ) {
2793
+ if (n === Ut && M === "\\") {
2794
+ switch (w = g, t[g + 1]) {
2795
+ case "x":
2796
+ g += 3;
2797
+ break;
2798
+ case "u":
2799
+ g += 5;
2800
+ break;
2801
+ case "U":
2802
+ g += 9;
2803
+ break;
2804
+ default:
2805
+ g += 1;
2806
+ }
2807
+ C = g;
2808
+ }
2809
+ if (M === `
2810
+ `) n === $n && (g = Ds(t, g)), m = g + c, d = void 0;
2811
+ else {
2812
+ if (M === " " && y && y !== " " && y !== `
2813
+ ` && y !== " ") {
2814
+ let A = t[g + 1];
2815
+ A && A !== " " && A !== `
2816
+ ` && A !== " " && (d = g);
2817
+ }
2818
+ if (g >= m) if (d) l.push(d), m = d + c, d = void 0;
2819
+ else if (n === Ut) {
2820
+ for (; y === " " || y === " "; ) y = M, M = t[g += 1], h = true;
2821
+ let A = g > C + 1 ? g - 2 : w - 1;
2822
+ if (f[A]) return t;
2823
+ l.push(A), f[A] = true, m = A + c, d = void 0;
2824
+ } else h = true;
2825
+ }
2826
+ y = M;
2827
+ }
2828
+ if (h && a && a(), l.length === 0) return t;
2829
+ o && o();
2830
+ let L = t.slice(0, l[0]);
2831
+ for (let M = 0; M < l.length; ++M) {
2832
+ let A = l[M], _ = l[M + 1] || t.length;
2833
+ A === 0 ? L = `
2834
+ ${e}${t.slice(0, _)}` : (n === Ut && f[A] && (L += `${t[A]}\\`), L += `
2835
+ ${e}${t.slice(A + 1, _)}`);
2836
+ }
2837
+ return L;
2838
+ }
2839
+ _chunkDFJNOFN2cjs.__name.call(void 0, Wt, "Wt");
2840
+ var qn = /* @__PURE__ */ _chunkDFJNOFN2cjs.__name.call(void 0, ({ indentAtStart: t }) => t ? Object.assign({ indentAtStart: t }, be.fold) : be.fold, "qn"), jt = /* @__PURE__ */ _chunkDFJNOFN2cjs.__name.call(void 0, (t) => /^(%|---|\.\.\.)/m.test(t), "jt");
2841
+ function Do(t, e, n) {
2842
+ if (!e || e < 0) return false;
2843
+ let r = e - n, s = t.length;
2844
+ if (s <= r) return false;
2845
+ for (let i = 0, o = 0; i < s; ++i) if (t[i] === `
2846
+ `) {
2847
+ if (i - o > r) return true;
2848
+ if (o = i + 1, s - o <= r) return false;
2849
+ }
2850
+ return true;
2851
+ }
2852
+ _chunkDFJNOFN2cjs.__name.call(void 0, Do, "Do");
2853
+ function Se(t, e) {
2854
+ let { implicitKey: n } = e, { jsonEncoding: r, minMultiLineLength: s } = be.doubleQuoted, i = JSON.stringify(t);
2855
+ if (r) return i;
2856
+ let o = e.indent || (jt(t) ? " " : ""), a = "", c = 0;
2857
+ for (let l = 0, f = i[l]; f; f = i[++l]) if (f === " " && i[l + 1] === "\\" && i[l + 2] === "n" && (a += i.slice(c, l) + "\\ ", l += 1, c = l, f = "\\"), f === "\\") switch (i[l + 1]) {
2858
+ case "u":
2859
+ {
2860
+ a += i.slice(c, l);
2861
+ let m = i.substr(l + 2, 4);
2862
+ switch (m) {
2863
+ case "0000":
2864
+ a += "\\0";
2865
+ break;
2866
+ case "0007":
2867
+ a += "\\a";
2868
+ break;
2869
+ case "000b":
2870
+ a += "\\v";
2871
+ break;
2872
+ case "001b":
2873
+ a += "\\e";
2874
+ break;
2875
+ case "0085":
2876
+ a += "\\N";
2877
+ break;
2878
+ case "00a0":
2879
+ a += "\\_";
2880
+ break;
2881
+ case "2028":
2882
+ a += "\\L";
2883
+ break;
2884
+ case "2029":
2885
+ a += "\\P";
2886
+ break;
2887
+ default:
2888
+ m.substr(0, 2) === "00" ? a += "\\x" + m.substr(2) : a += i.substr(l, 6);
2889
+ }
2890
+ l += 5, c = l + 1;
2891
+ }
2892
+ break;
2893
+ case "n":
2894
+ if (n || i[l + 2] === '"' || i.length < s) l += 1;
2895
+ else {
2896
+ for (a += i.slice(c, l) + `
2897
+
2898
+ `; i[l + 2] === "\\" && i[l + 3] === "n" && i[l + 4] !== '"'; ) a += `
2899
+ `, l += 2;
2900
+ a += o, i[l + 2] === " " && (a += "\\"), l += 1, c = l + 1;
2901
+ }
2902
+ break;
2903
+ default:
2904
+ l += 1;
2905
+ }
2906
+ return a = c ? a + i.slice(c) : i, n ? a : Wt(a, o, Ut, qn(e));
2907
+ }
2908
+ _chunkDFJNOFN2cjs.__name.call(void 0, Se, "Se");
2909
+ function qs(t, e) {
2910
+ if (e.implicitKey) {
2911
+ if (/\n/.test(t)) return Se(t, e);
2912
+ } else if (/[ \t]\n|\n[ \t]/.test(t)) return Se(t, e);
2913
+ let n = e.indent || (jt(t) ? " " : ""), r = "'" + t.replace(/'/g, "''").replace(/\n+/g, `$&
2914
+ ${n}`) + "'";
2915
+ return e.implicitKey ? r : Wt(r, n, Fs, qn(e));
2916
+ }
2917
+ _chunkDFJNOFN2cjs.__name.call(void 0, qs, "qs");
2918
+ function Kt({ comment: t, type: e, value: n }, r, s, i) {
2919
+ if (/\n[\t ]+$/.test(n) || /^\s*$/.test(n)) return Se(n, r);
2920
+ let o = r.indent || (r.forceBlockIndent || jt(n) ? " " : ""), a = o ? "2" : "1", c = e === p.Type.BLOCK_FOLDED ? false : e === p.Type.BLOCK_LITERAL ? true : !Do(n, be.fold.lineWidth, o.length), l = c ? "|" : ">";
2921
+ if (!n) return l + `
2922
+ `;
2923
+ let f = "", m = "";
2924
+ if (n = n.replace(/[\n\t ]*$/, (y) => {
2925
+ let h = y.indexOf(`
2926
+ `);
2927
+ return h === -1 ? l += "-" : (n === y || h !== y.length - 1) && (l += "+", i && i()), m = y.replace(/\n$/, ""), "";
2928
+ }).replace(/^[\n ]*/, (y) => {
2929
+ y.indexOf(" ") !== -1 && (l += a);
2930
+ let h = y.match(/ +$/);
2931
+ return h ? (f = y.slice(0, -h[0].length), h[0]) : (f = y, "");
2932
+ }), m && (m = m.replace(/\n+(?!\n|$)/g, `$&${o}`)), f && (f = f.replace(/\n+/g, `$&${o}`)), t && (l += " #" + t.replace(/ ?[\r\n]+/g, " "), s && s()), !n) return `${l}${a}
2933
+ ${o}${m}`;
2934
+ if (c) return n = n.replace(/\n+/g, `$&${o}`), `${l}
2935
+ ${o}${f}${n}${m}`;
2936
+ n = n.replace(/\n+/g, `
2937
+ $&`).replace(/(?:^|\n)([\t ].*)(?:([\n\t ]*)\n(?![\n\t ]))?/g, "$1$2").replace(/\n+/g, `$&${o}`);
2938
+ let d = Wt(`${f}${n}${m}`, o, $n, be.fold);
2939
+ return `${l}
2940
+ ${o}${d}`;
2941
+ }
2942
+ _chunkDFJNOFN2cjs.__name.call(void 0, Kt, "Kt");
2943
+ function Yo(t, e, n, r) {
2944
+ let { comment: s, type: i, value: o } = t, { actualString: a, implicitKey: c, indent: l, inFlow: f } = e;
2945
+ if (c && /[\n[\]{},]/.test(o) || f && /[[\]{},]/.test(o)) return Se(o, e);
2946
+ if (!o || /^[\n\t ,[\]{}#&*!|>'"%@`]|^[?-]$|^[?-][ \t]|[\n:][ \t]|[ \t]\n|[\n\t ]#|[\n\t :]$/.test(o)) return c || f || o.indexOf(`
2947
+ `) === -1 ? o.indexOf('"') !== -1 && o.indexOf("'") === -1 ? qs(o, e) : Se(o, e) : Kt(t, e, n, r);
2948
+ if (!c && !f && i !== p.Type.PLAIN && o.indexOf(`
2949
+ `) !== -1) return Kt(t, e, n, r);
2950
+ if (l === "" && jt(o)) return e.forceBlockIndent = true, Kt(t, e, n, r);
2951
+ let m = o.replace(/\n+/g, `$&
2952
+ ${l}`);
2953
+ if (a) {
2954
+ let { tags: y } = e.doc.schema;
2955
+ if (typeof Fn(m, y, y.scalarFallback).value != "string") return Se(o, e);
2956
+ }
2957
+ let d = c ? m : Wt(m, l, Fs, qn(e));
2958
+ return s && !f && (d.indexOf(`
2959
+ `) !== -1 || s.indexOf(`
2960
+ `) !== -1) ? (n && n(), vo(d, l, s)) : d;
2961
+ }
2962
+ _chunkDFJNOFN2cjs.__name.call(void 0, Yo, "Yo");
2963
+ function Bo(t, e, n, r) {
2964
+ let { defaultType: s } = be, { implicitKey: i, inFlow: o } = e, { type: a, value: c } = t;
2965
+ typeof c != "string" && (c = String(c), t = Object.assign({}, t, { value: c }));
2966
+ let l = /* @__PURE__ */ _chunkDFJNOFN2cjs.__name.call(void 0, (m) => {
2967
+ switch (m) {
2968
+ case p.Type.BLOCK_FOLDED:
2969
+ case p.Type.BLOCK_LITERAL:
2970
+ return Kt(t, e, n, r);
2971
+ case p.Type.QUOTE_DOUBLE:
2972
+ return Se(c, e);
2973
+ case p.Type.QUOTE_SINGLE:
2974
+ return qs(c, e);
2975
+ case p.Type.PLAIN:
2976
+ return Yo(t, e, n, r);
2977
+ default:
2978
+ return null;
2979
+ }
2980
+ }, "l");
2981
+ (a !== p.Type.QUOTE_DOUBLE && /[\x00-\x08\x0b-\x1f\x7f-\x9f]/.test(c) || (i || o) && (a === p.Type.BLOCK_FOLDED || a === p.Type.BLOCK_LITERAL)) && (a = p.Type.QUOTE_DOUBLE);
2982
+ let f = l(a);
2983
+ if (f === null && (f = l(s), f === null)) throw new Error(`Unsupported default string type ${s}`);
2984
+ return f;
2985
+ }
2986
+ _chunkDFJNOFN2cjs.__name.call(void 0, Bo, "Bo");
2987
+ function $o({ format: t, minFractionDigits: e, tag: n, value: r }) {
2988
+ if (typeof r == "bigint") return String(r);
2989
+ if (!isFinite(r)) return isNaN(r) ? ".nan" : r < 0 ? "-.inf" : ".inf";
2990
+ let s = JSON.stringify(r);
2991
+ if (!t && e && (!n || n === "tag:yaml.org,2002:float") && /^\d/.test(s)) {
2992
+ let i = s.indexOf(".");
2993
+ i < 0 && (i = s.length, s += ".");
2994
+ let o = e - (s.length - i - 1);
2995
+ for (; o-- > 0; ) s += "0";
2996
+ }
2997
+ return s;
2998
+ }
2999
+ _chunkDFJNOFN2cjs.__name.call(void 0, $o, "$o");
3000
+ function Us(t, e) {
3001
+ let n, r;
3002
+ switch (e.type) {
3003
+ case p.Type.FLOW_MAP:
3004
+ n = "}", r = "flow map";
3005
+ break;
3006
+ case p.Type.FLOW_SEQ:
3007
+ n = "]", r = "flow sequence";
3008
+ break;
3009
+ default:
3010
+ t.push(new p.YAMLSemanticError(e, "Not a flow collection!?"));
3011
+ return;
3012
+ }
3013
+ let s;
3014
+ for (let i = e.items.length - 1; i >= 0; --i) {
3015
+ let o = e.items[i];
3016
+ if (!o || o.type !== p.Type.COMMENT) {
3017
+ s = o;
3018
+ break;
3019
+ }
3020
+ }
3021
+ if (s && s.char !== n) {
3022
+ let i = `Expected ${r} to end with ${n}`, o;
3023
+ typeof s.offset == "number" ? (o = new p.YAMLSemanticError(e, i), o.offset = s.offset + 1) : (o = new p.YAMLSemanticError(s, i), s.range && s.range.end && (o.offset = s.range.end - s.range.start)), t.push(o);
3024
+ }
3025
+ }
3026
+ _chunkDFJNOFN2cjs.__name.call(void 0, Us, "Us");
3027
+ function Ks(t, e) {
3028
+ let n = e.context.src[e.range.start - 1];
3029
+ if (n !== `
3030
+ ` && n !== " " && n !== " ") {
3031
+ let r = "Comments must be separated from other tokens by white space characters";
3032
+ t.push(new p.YAMLSemanticError(e, r));
3033
+ }
3034
+ }
3035
+ _chunkDFJNOFN2cjs.__name.call(void 0, Ks, "Ks");
3036
+ function Vs(t, e) {
3037
+ let n = String(e), r = n.substr(0, 8) + "..." + n.substr(-8);
3038
+ return new p.YAMLSemanticError(t, `The "${r}" key is too long`);
3039
+ }
3040
+ _chunkDFJNOFN2cjs.__name.call(void 0, Vs, "Vs");
3041
+ function Ws(t, e) {
3042
+ for (let { afterKey: n, before: r, comment: s } of e) {
3043
+ let i = t.items[r];
3044
+ i ? (n && i.value && (i = i.value), s === void 0 ? (n || !i.commentBefore) && (i.spaceBefore = true) : i.commentBefore ? i.commentBefore += `
3045
+ ` + s : i.commentBefore = s) : s !== void 0 && (t.comment ? t.comment += `
3046
+ ` + s : t.comment = s);
3047
+ }
3048
+ }
3049
+ _chunkDFJNOFN2cjs.__name.call(void 0, Ws, "Ws");
3050
+ function Un(t, e) {
3051
+ let n = e.strValue;
3052
+ return n ? typeof n == "string" ? n : (n.errors.forEach((r) => {
3053
+ r.source || (r.source = e), t.errors.push(r);
3054
+ }), n.str) : "";
3055
+ }
3056
+ _chunkDFJNOFN2cjs.__name.call(void 0, Un, "Un");
3057
+ function Fo(t, e) {
3058
+ let { handle: n, suffix: r } = e.tag, s = t.tagPrefixes.find((i) => i.handle === n);
3059
+ if (!s) {
3060
+ let i = t.getDefaults().tagPrefixes;
3061
+ if (i && (s = i.find((o) => o.handle === n)), !s) throw new p.YAMLSemanticError(e, `The ${n} tag handle is non-default and was not declared.`);
3062
+ }
3063
+ if (!r) throw new p.YAMLSemanticError(e, `The ${n} tag has no suffix.`);
3064
+ if (n === "!" && (t.version || t.options.version) === "1.0") {
3065
+ if (r[0] === "^") return t.warnings.push(new p.YAMLWarning(e, "YAML 1.0 ^ tag expansion is not supported")), r;
3066
+ if (/[:/]/.test(r)) {
3067
+ let i = r.match(/^([a-z0-9-]+)\/(.*)/i);
3068
+ return i ? `tag:${i[1]}.yaml.org,2002:${i[2]}` : `tag:${r}`;
3069
+ }
3070
+ }
3071
+ return s.prefix + decodeURIComponent(r);
3072
+ }
3073
+ _chunkDFJNOFN2cjs.__name.call(void 0, Fo, "Fo");
3074
+ function qo(t, e) {
3075
+ let { tag: n, type: r } = e, s = false;
3076
+ if (n) {
3077
+ let { handle: i, suffix: o, verbatim: a } = n;
3078
+ if (a) {
3079
+ if (a !== "!" && a !== "!!") return a;
3080
+ let c = `Verbatim tags aren't resolved, so ${a} is invalid.`;
3081
+ t.errors.push(new p.YAMLSemanticError(e, c));
3082
+ } else if (i === "!" && !o) s = true;
3083
+ else try {
3084
+ return Fo(t, e);
3085
+ } catch (c) {
3086
+ t.errors.push(c);
3087
+ }
3088
+ }
3089
+ switch (r) {
3090
+ case p.Type.BLOCK_FOLDED:
3091
+ case p.Type.BLOCK_LITERAL:
3092
+ case p.Type.QUOTE_DOUBLE:
3093
+ case p.Type.QUOTE_SINGLE:
3094
+ return p.defaultTags.STR;
3095
+ case p.Type.FLOW_MAP:
3096
+ case p.Type.MAP:
3097
+ return p.defaultTags.MAP;
3098
+ case p.Type.FLOW_SEQ:
3099
+ case p.Type.SEQ:
3100
+ return p.defaultTags.SEQ;
3101
+ case p.Type.PLAIN:
3102
+ return s ? p.defaultTags.STR : null;
3103
+ default:
3104
+ return null;
3105
+ }
3106
+ }
3107
+ _chunkDFJNOFN2cjs.__name.call(void 0, qo, "qo");
3108
+ function Ys(t, e, n) {
3109
+ let { tags: r } = t.schema, s = [];
3110
+ for (let o of r) if (o.tag === n) if (o.test) s.push(o);
3111
+ else {
3112
+ let a = o.resolve(t, e);
3113
+ return a instanceof j ? a : new P(a);
3114
+ }
3115
+ let i = Un(t, e);
3116
+ return typeof i == "string" && s.length > 0 ? Fn(i, s, r.scalarFallback) : null;
3117
+ }
3118
+ _chunkDFJNOFN2cjs.__name.call(void 0, Ys, "Ys");
3119
+ function Uo({ type: t }) {
3120
+ switch (t) {
3121
+ case p.Type.FLOW_MAP:
3122
+ case p.Type.MAP:
3123
+ return p.defaultTags.MAP;
3124
+ case p.Type.FLOW_SEQ:
3125
+ case p.Type.SEQ:
3126
+ return p.defaultTags.SEQ;
3127
+ default:
3128
+ return p.defaultTags.STR;
3129
+ }
3130
+ }
3131
+ _chunkDFJNOFN2cjs.__name.call(void 0, Uo, "Uo");
3132
+ function Ko(t, e, n) {
3133
+ try {
3134
+ let r = Ys(t, e, n);
3135
+ if (r) return n && e.tag && (r.tag = n), r;
3136
+ } catch (r) {
3137
+ return r.source || (r.source = e), t.errors.push(r), null;
3138
+ }
3139
+ try {
3140
+ let r = Uo(e);
3141
+ if (!r) throw new Error(`The tag ${n} is unavailable`);
3142
+ let s = `The tag ${n} is unavailable, falling back to ${r}`;
3143
+ t.warnings.push(new p.YAMLWarning(e, s));
3144
+ let i = Ys(t, e, r);
3145
+ return i.tag = n, i;
3146
+ } catch (r) {
3147
+ let s = new p.YAMLReferenceError(e, r.message);
3148
+ return s.stack = r.stack, t.errors.push(s), null;
3149
+ }
3150
+ }
3151
+ _chunkDFJNOFN2cjs.__name.call(void 0, Ko, "Ko");
3152
+ var Vo = /* @__PURE__ */ _chunkDFJNOFN2cjs.__name.call(void 0, (t) => {
3153
+ if (!t) return false;
3154
+ let { type: e } = t;
3155
+ return e === p.Type.MAP_KEY || e === p.Type.MAP_VALUE || e === p.Type.SEQ_ITEM;
3156
+ }, "Vo");
3157
+ function Wo(t, e) {
3158
+ let n = { before: [], after: [] }, r = false, s = false, i = Vo(e.context.parent) ? e.context.parent.props.concat(e.props) : e.props;
3159
+ for (let { start: o, end: a } of i) switch (e.context.src[o]) {
3160
+ case p.Char.COMMENT: {
3161
+ if (!e.commentHasRequiredWhitespace(o)) {
3162
+ let m = "Comments must be separated from other tokens by white space characters";
3163
+ t.push(new p.YAMLSemanticError(e, m));
3164
+ }
3165
+ let { header: c, valueRange: l } = e;
3166
+ (l && (o > l.start || c && o > c.start) ? n.after : n.before).push(e.context.src.slice(o + 1, a));
3167
+ break;
3168
+ }
3169
+ case p.Char.ANCHOR:
3170
+ if (r) {
3171
+ let c = "A node can have at most one anchor";
3172
+ t.push(new p.YAMLSemanticError(e, c));
3173
+ }
3174
+ r = true;
3175
+ break;
3176
+ case p.Char.TAG:
3177
+ if (s) {
3178
+ let c = "A node can have at most one tag";
3179
+ t.push(new p.YAMLSemanticError(e, c));
3180
+ }
3181
+ s = true;
3182
+ break;
3183
+ }
3184
+ return { comments: n, hasAnchor: r, hasTag: s };
3185
+ }
3186
+ _chunkDFJNOFN2cjs.__name.call(void 0, Wo, "Wo");
3187
+ function jo(t, e) {
3188
+ let { anchors: n, errors: r, schema: s } = t;
3189
+ if (e.type === p.Type.ALIAS) {
3190
+ let o = e.rawValue, a = n.getNode(o);
3191
+ if (!a) {
3192
+ let l = `Aliased anchor not found: ${o}`;
3193
+ return r.push(new p.YAMLReferenceError(e, l)), null;
3194
+ }
3195
+ let c = new we(a);
3196
+ return n._cstAliases.push(c), c;
3197
+ }
3198
+ let i = qo(t, e);
3199
+ if (i) return Ko(t, e, i);
3200
+ if (e.type !== p.Type.PLAIN) {
3201
+ let o = `Failed to resolve ${e.type} node here`;
3202
+ return r.push(new p.YAMLSyntaxError(e, o)), null;
3203
+ }
3204
+ try {
3205
+ let o = Un(t, e);
3206
+ return Fn(o, s.tags, s.tags.scalarFallback);
3207
+ } catch (o) {
3208
+ return o.source || (o.source = e), r.push(o), null;
3209
+ }
3210
+ }
3211
+ _chunkDFJNOFN2cjs.__name.call(void 0, jo, "jo");
3212
+ function me(t, e) {
3213
+ if (!e) return null;
3214
+ e.error && t.errors.push(e.error);
3215
+ let { comments: n, hasAnchor: r, hasTag: s } = Wo(t.errors, e);
3216
+ if (r) {
3217
+ let { anchors: o } = t, a = e.anchor, c = o.getNode(a);
3218
+ c && (o.map[o.newName(a)] = c), o.map[a] = e;
3219
+ }
3220
+ if (e.type === p.Type.ALIAS && (r || s)) {
3221
+ let o = "An alias node must not specify any properties";
3222
+ t.errors.push(new p.YAMLSemanticError(e, o));
3223
+ }
3224
+ let i = jo(t, e);
3225
+ if (i) {
3226
+ i.range = [e.range.start, e.range.end], t.options.keepCstNodes && (i.cstNode = e), t.options.keepNodeTypes && (i.type = e.type);
3227
+ let o = n.before.join(`
3228
+ `);
3229
+ o && (i.commentBefore = i.commentBefore ? `${i.commentBefore}
3230
+ ${o}` : o);
3231
+ let a = n.after.join(`
3232
+ `);
3233
+ a && (i.comment = i.comment ? `${i.comment}
3234
+ ${a}` : a);
3235
+ }
3236
+ return e.resolved = i;
3237
+ }
3238
+ _chunkDFJNOFN2cjs.__name.call(void 0, me, "me");
3239
+ function Qo(t, e) {
3240
+ if (e.type !== p.Type.MAP && e.type !== p.Type.FLOW_MAP) {
3241
+ let o = `A ${e.type} node cannot be resolved as a mapping`;
3242
+ return t.errors.push(new p.YAMLSyntaxError(e, o)), null;
3243
+ }
3244
+ let { comments: n, items: r } = e.type === p.Type.FLOW_MAP ? Xo(t, e) : Ho(t, e), s = new mt();
3245
+ s.items = r, Ws(s, n);
3246
+ let i = false;
3247
+ for (let o = 0; o < r.length; ++o) {
3248
+ let { key: a } = r[o];
3249
+ if (a instanceof j && (i = true), t.schema.merge && a && a.value === $s) {
3250
+ r[o] = new Vt(r[o]);
3251
+ let c = r[o].value.items, l = null;
3252
+ c.some((f) => {
3253
+ if (f instanceof we) {
3254
+ let { type: m } = f.source;
3255
+ return m === p.Type.MAP || m === p.Type.FLOW_MAP ? false : l = "Merge nodes aliases can only point to maps";
3256
+ }
3257
+ return l = "Merge nodes can only have Alias nodes as values";
3258
+ }), l && t.errors.push(new p.YAMLSemanticError(e, l));
3259
+ } else for (let c = o + 1; c < r.length; ++c) {
3260
+ let { key: l } = r[c];
3261
+ if (a === l || a && l && Object.prototype.hasOwnProperty.call(a, "value") && a.value === l.value) {
3262
+ let f = `Map keys must be unique; "${a}" is repeated`;
3263
+ t.errors.push(new p.YAMLSemanticError(e, f));
3264
+ break;
3265
+ }
3266
+ }
3267
+ }
3268
+ if (i && !t.options.mapAsMap) {
3269
+ let o = "Keys with collection values will be stringified as YAML due to JS Object restrictions. Use mapAsMap: true to avoid this.";
3270
+ t.warnings.push(new p.YAMLWarning(e, o));
3271
+ }
3272
+ return e.resolved = s, s;
3273
+ }
3274
+ _chunkDFJNOFN2cjs.__name.call(void 0, Qo, "Qo");
3275
+ var Jo = /* @__PURE__ */ _chunkDFJNOFN2cjs.__name.call(void 0, ({ context: { lineStart: t, node: e, src: n }, props: r }) => {
3276
+ if (r.length === 0) return false;
3277
+ let { start: s } = r[0];
3278
+ if (e && s > e.valueRange.start || n[s] !== p.Char.COMMENT) return false;
3279
+ for (let i = t; i < s; ++i) if (n[i] === `
3280
+ `) return false;
3281
+ return true;
3282
+ }, "Jo");
3283
+ function Go(t, e) {
3284
+ if (!Jo(t)) return;
3285
+ let n = t.getPropValue(0, p.Char.COMMENT, true), r = false, s = e.value.commentBefore;
3286
+ if (s && s.startsWith(n)) e.value.commentBefore = s.substr(n.length + 1), r = true;
3287
+ else {
3288
+ let i = e.value.comment;
3289
+ !t.node && i && i.startsWith(n) && (e.value.comment = i.substr(n.length + 1), r = true);
3290
+ }
3291
+ r && (e.comment = n);
3292
+ }
3293
+ _chunkDFJNOFN2cjs.__name.call(void 0, Go, "Go");
3294
+ function Ho(t, e) {
3295
+ let n = [], r = [], s, i = null;
3296
+ for (let o = 0; o < e.items.length; ++o) {
3297
+ let a = e.items[o];
3298
+ switch (a.type) {
3299
+ case p.Type.BLANK_LINE:
3300
+ n.push({ afterKey: !!s, before: r.length });
3301
+ break;
3302
+ case p.Type.COMMENT:
3303
+ n.push({ afterKey: !!s, before: r.length, comment: a.comment });
3304
+ break;
3305
+ case p.Type.MAP_KEY:
3306
+ s !== void 0 && r.push(new T(s)), a.error && t.errors.push(a.error), s = me(t, a.node), i = null;
3307
+ break;
3308
+ case p.Type.MAP_VALUE:
3309
+ {
3310
+ if (s === void 0 && (s = null), a.error && t.errors.push(a.error), !a.context.atLineStart && a.node && a.node.type === p.Type.MAP && !a.node.context.atLineStart) {
3311
+ let f = "Nested mappings are not allowed in compact mappings";
3312
+ t.errors.push(new p.YAMLSemanticError(a.node, f));
3313
+ }
3314
+ let c = a.node;
3315
+ if (!c && a.props.length > 0) {
3316
+ c = new p.PlainValue(p.Type.PLAIN, []), c.context = { parent: a, src: a.context.src };
3317
+ let f = a.range.start + 1;
3318
+ if (c.range = { start: f, end: f }, c.valueRange = { start: f, end: f }, typeof a.range.origStart == "number") {
3319
+ let m = a.range.origStart + 1;
3320
+ c.range.origStart = c.range.origEnd = m, c.valueRange.origStart = c.valueRange.origEnd = m;
3321
+ }
3322
+ }
3323
+ let l = new T(s, me(t, c));
3324
+ Go(a, l), r.push(l), s && typeof i == "number" && a.range.start > i + 1024 && t.errors.push(Vs(e, s)), s = void 0, i = null;
3325
+ }
3326
+ break;
3327
+ default:
3328
+ s !== void 0 && r.push(new T(s)), s = me(t, a), i = a.range.start, a.error && t.errors.push(a.error);
3329
+ e: for (let c = o + 1; ; ++c) {
3330
+ let l = e.items[c];
3331
+ switch (l && l.type) {
3332
+ case p.Type.BLANK_LINE:
3333
+ case p.Type.COMMENT:
3334
+ continue e;
3335
+ case p.Type.MAP_VALUE:
3336
+ break e;
3337
+ default: {
3338
+ let f = "Implicit map keys need to be followed by map values";
3339
+ t.errors.push(new p.YAMLSemanticError(a, f));
3340
+ break e;
3341
+ }
3342
+ }
3343
+ }
3344
+ if (a.valueRangeContainsNewline) {
3345
+ let c = "Implicit map keys need to be on a single line";
3346
+ t.errors.push(new p.YAMLSemanticError(a, c));
3347
+ }
3348
+ }
3349
+ }
3350
+ return s !== void 0 && r.push(new T(s)), { comments: n, items: r };
3351
+ }
3352
+ _chunkDFJNOFN2cjs.__name.call(void 0, Ho, "Ho");
3353
+ function Xo(t, e) {
3354
+ let n = [], r = [], s, i = false, o = "{";
3355
+ for (let a = 0; a < e.items.length; ++a) {
3356
+ let c = e.items[a];
3357
+ if (typeof c.char == "string") {
3358
+ let { char: l, offset: f } = c;
3359
+ if (l === "?" && s === void 0 && !i) {
3360
+ i = true, o = ":";
3361
+ continue;
3362
+ }
3363
+ if (l === ":") {
3364
+ if (s === void 0 && (s = null), o === ":") {
3365
+ o = ",";
3366
+ continue;
3367
+ }
3368
+ } else if (i && (s === void 0 && l !== "," && (s = null), i = false), s !== void 0 && (r.push(new T(s)), s = void 0, l === ",")) {
3369
+ o = ":";
3370
+ continue;
3371
+ }
3372
+ if (l === "}") {
3373
+ if (a === e.items.length - 1) continue;
3374
+ } else if (l === o) {
3375
+ o = ":";
3376
+ continue;
3377
+ }
3378
+ let m = `Flow map contains an unexpected ${l}`, d = new p.YAMLSyntaxError(e, m);
3379
+ d.offset = f, t.errors.push(d);
3380
+ } else c.type === p.Type.BLANK_LINE ? n.push({ afterKey: !!s, before: r.length }) : c.type === p.Type.COMMENT ? (Ks(t.errors, c), n.push({ afterKey: !!s, before: r.length, comment: c.comment })) : s === void 0 ? (o === "," && t.errors.push(new p.YAMLSemanticError(c, "Separator , missing in flow map")), s = me(t, c)) : (o !== "," && t.errors.push(new p.YAMLSemanticError(c, "Indicator : missing in flow map entry")), r.push(new T(s, me(t, c))), s = void 0, i = false);
3381
+ }
3382
+ return Us(t.errors, e), s !== void 0 && r.push(new T(s)), { comments: n, items: r };
3383
+ }
3384
+ _chunkDFJNOFN2cjs.__name.call(void 0, Xo, "Xo");
3385
+ function zo(t, e) {
3386
+ if (e.type !== p.Type.SEQ && e.type !== p.Type.FLOW_SEQ) {
3387
+ let i = `A ${e.type} node cannot be resolved as a sequence`;
3388
+ return t.errors.push(new p.YAMLSyntaxError(e, i)), null;
3389
+ }
3390
+ let { comments: n, items: r } = e.type === p.Type.FLOW_SEQ ? ea(t, e) : Zo(t, e), s = new pe();
3391
+ if (s.items = r, Ws(s, n), !t.options.mapAsMap && r.some((i) => i instanceof T && i.key instanceof j)) {
3392
+ let i = "Keys with collection values will be stringified as YAML due to JS Object restrictions. Use mapAsMap: true to avoid this.";
3393
+ t.warnings.push(new p.YAMLWarning(e, i));
3394
+ }
3395
+ return e.resolved = s, s;
3396
+ }
3397
+ _chunkDFJNOFN2cjs.__name.call(void 0, zo, "zo");
3398
+ function Zo(t, e) {
3399
+ let n = [], r = [];
3400
+ for (let s = 0; s < e.items.length; ++s) {
3401
+ let i = e.items[s];
3402
+ switch (i.type) {
3403
+ case p.Type.BLANK_LINE:
3404
+ n.push({ before: r.length });
3405
+ break;
3406
+ case p.Type.COMMENT:
3407
+ n.push({ comment: i.comment, before: r.length });
3408
+ break;
3409
+ case p.Type.SEQ_ITEM:
3410
+ if (i.error && t.errors.push(i.error), r.push(me(t, i.node)), i.hasProps) {
3411
+ let o = "Sequence items cannot have tags or anchors before the - indicator";
3412
+ t.errors.push(new p.YAMLSemanticError(i, o));
3413
+ }
3414
+ break;
3415
+ default:
3416
+ i.error && t.errors.push(i.error), t.errors.push(new p.YAMLSyntaxError(i, `Unexpected ${i.type} node in sequence`));
3417
+ }
3418
+ }
3419
+ return { comments: n, items: r };
3420
+ }
3421
+ _chunkDFJNOFN2cjs.__name.call(void 0, Zo, "Zo");
3422
+ function ea(t, e) {
3423
+ let n = [], r = [], s = false, i, o = null, a = "[", c = null;
3424
+ for (let l = 0; l < e.items.length; ++l) {
3425
+ let f = e.items[l];
3426
+ if (typeof f.char == "string") {
3427
+ let { char: m, offset: d } = f;
3428
+ if (m !== ":" && (s || i !== void 0) && (s && i === void 0 && (i = a ? r.pop() : null), r.push(new T(i)), s = false, i = void 0, o = null), m === a) a = null;
3429
+ else if (!a && m === "?") s = true;
3430
+ else if (a !== "[" && m === ":" && i === void 0) {
3431
+ if (a === ",") {
3432
+ if (i = r.pop(), i instanceof T) {
3433
+ let y = "Chaining flow sequence pairs is invalid", h = new p.YAMLSemanticError(e, y);
3434
+ h.offset = d, t.errors.push(h);
3435
+ }
3436
+ if (!s && typeof o == "number") {
3437
+ let y = f.range ? f.range.start : f.offset;
3438
+ y > o + 1024 && t.errors.push(Vs(e, i));
3439
+ let { src: h } = c.context;
3440
+ for (let g = o; g < y; ++g) if (h[g] === `
3441
+ `) {
3442
+ let w = "Implicit keys of flow sequence pairs need to be on a single line";
3443
+ t.errors.push(new p.YAMLSemanticError(c, w));
3444
+ break;
3445
+ }
3446
+ }
3447
+ } else i = null;
3448
+ o = null, s = false, a = null;
3449
+ } else if (a === "[" || m !== "]" || l < e.items.length - 1) {
3450
+ let y = `Flow sequence contains an unexpected ${m}`, h = new p.YAMLSyntaxError(e, y);
3451
+ h.offset = d, t.errors.push(h);
3452
+ }
3453
+ } else if (f.type === p.Type.BLANK_LINE) n.push({ before: r.length });
3454
+ else if (f.type === p.Type.COMMENT) Ks(t.errors, f), n.push({ comment: f.comment, before: r.length });
3455
+ else {
3456
+ if (a) {
3457
+ let d = `Expected a ${a} in flow sequence`;
3458
+ t.errors.push(new p.YAMLSemanticError(f, d));
3459
+ }
3460
+ let m = me(t, f);
3461
+ i === void 0 ? (r.push(m), c = f) : (r.push(new T(i, m)), i = void 0), o = f.range.start, a = ",";
3462
+ }
3463
+ }
3464
+ return Us(t.errors, e), i !== void 0 && r.push(new T(i)), { comments: n, items: r };
3465
+ }
3466
+ _chunkDFJNOFN2cjs.__name.call(void 0, ea, "ea");
3467
+ k.Alias = we;
3468
+ k.Collection = j;
3469
+ k.Merge = Vt;
3470
+ k.Node = W;
3471
+ k.Pair = T;
3472
+ k.Scalar = P;
3473
+ k.YAMLMap = mt;
3474
+ k.YAMLSeq = pe;
3475
+ k.addComment = Be;
3476
+ k.binaryOptions = Po;
3477
+ k.boolOptions = _o;
3478
+ k.findPair = pt;
3479
+ k.intOptions = xo;
3480
+ k.isEmptyPath = Bs;
3481
+ k.nullOptions = Ro;
3482
+ k.resolveMap = Qo;
3483
+ k.resolveNode = me;
3484
+ k.resolveSeq = zo;
3485
+ k.resolveString = Un;
3486
+ k.strOptions = be;
3487
+ k.stringifyNumber = $o;
3488
+ k.stringifyString = Bo;
3489
+ k.toJSON = ue;
3490
+ });
3491
+ jn = ee((z) => {
3492
+ "use strict";
3493
+ var Q = le(), O = $e(), ta = { identify: /* @__PURE__ */ _chunkDFJNOFN2cjs.__name.call(void 0, (t) => t instanceof Uint8Array, "identify"), default: false, tag: "tag:yaml.org,2002:binary", resolve: /* @__PURE__ */ _chunkDFJNOFN2cjs.__name.call(void 0, (t, e) => {
3494
+ let n = O.resolveString(t, e);
3495
+ if (typeof Buffer == "function") return Buffer.from(n, "base64");
3496
+ if (typeof atob == "function") {
3497
+ let r = atob(n.replace(/[\n\r]/g, "")), s = new Uint8Array(r.length);
3498
+ for (let i = 0; i < r.length; ++i) s[i] = r.charCodeAt(i);
3499
+ return s;
3500
+ } else {
3501
+ let r = "This environment does not support reading binary tags; either Buffer or atob is required";
3502
+ return t.errors.push(new Q.YAMLReferenceError(e, r)), null;
3503
+ }
3504
+ }, "resolve"), options: O.binaryOptions, stringify: /* @__PURE__ */ _chunkDFJNOFN2cjs.__name.call(void 0, ({ comment: t, type: e, value: n }, r, s, i) => {
3505
+ let o;
3506
+ if (typeof Buffer == "function") o = n instanceof Buffer ? n.toString("base64") : Buffer.from(n.buffer).toString("base64");
3507
+ else if (typeof btoa == "function") {
3508
+ let a = "";
3509
+ for (let c = 0; c < n.length; ++c) a += String.fromCharCode(n[c]);
3510
+ o = btoa(a);
3511
+ } else throw new Error("This environment does not support writing binary tags; either Buffer or btoa is required");
3512
+ if (e || (e = O.binaryOptions.defaultType), e === Q.Type.QUOTE_DOUBLE) n = o;
3513
+ else {
3514
+ let { lineWidth: a } = O.binaryOptions, c = Math.ceil(o.length / a), l = new Array(c);
3515
+ for (let f = 0, m = 0; f < c; ++f, m += a) l[f] = o.substr(m, a);
3516
+ n = l.join(e === Q.Type.BLOCK_LITERAL ? `
3517
+ ` : " ");
3518
+ }
3519
+ return O.stringifyString({ comment: t, type: e, value: n }, r, s, i);
3520
+ }, "stringify") };
3521
+ function Qs(t, e) {
3522
+ let n = O.resolveSeq(t, e);
3523
+ for (let r = 0; r < n.items.length; ++r) {
3524
+ let s = n.items[r];
3525
+ if (!(s instanceof O.Pair)) {
3526
+ if (s instanceof O.YAMLMap) {
3527
+ if (s.items.length > 1) {
3528
+ let o = "Each pair must have its own sequence indicator";
3529
+ throw new Q.YAMLSemanticError(e, o);
3530
+ }
3531
+ let i = s.items[0] || new O.Pair();
3532
+ s.commentBefore && (i.commentBefore = i.commentBefore ? `${s.commentBefore}
3533
+ ${i.commentBefore}` : s.commentBefore), s.comment && (i.comment = i.comment ? `${s.comment}
3534
+ ${i.comment}` : s.comment), s = i;
3535
+ }
3536
+ n.items[r] = s instanceof O.Pair ? s : new O.Pair(s);
3537
+ }
3538
+ }
3539
+ return n;
3540
+ }
3541
+ _chunkDFJNOFN2cjs.__name.call(void 0, Qs, "Qs");
3542
+ function Js(t, e, n) {
3543
+ let r = new O.YAMLSeq(t);
3544
+ r.tag = "tag:yaml.org,2002:pairs";
3545
+ for (let s of e) {
3546
+ let i, o;
3547
+ if (Array.isArray(s)) if (s.length === 2) i = s[0], o = s[1];
3548
+ else throw new TypeError(`Expected [key, value] tuple: ${s}`);
3549
+ else if (s && s instanceof Object) {
3550
+ let c = Object.keys(s);
3551
+ if (c.length === 1) i = c[0], o = s[i];
3552
+ else throw new TypeError(`Expected { key: value } tuple: ${s}`);
3553
+ } else i = s;
3554
+ let a = t.createPair(i, o, n);
3555
+ r.items.push(a);
3556
+ }
3557
+ return r;
3558
+ }
3559
+ _chunkDFJNOFN2cjs.__name.call(void 0, Js, "Js");
3560
+ var na = { default: false, tag: "tag:yaml.org,2002:pairs", resolve: Qs, createNode: Js }, Fe = class t extends O.YAMLSeq {
3561
+ static {
3562
+ _chunkDFJNOFN2cjs.__name.call(void 0, this, "t");
3563
+ }
3564
+ constructor() {
3565
+ super(), Q._defineProperty(this, "add", O.YAMLMap.prototype.add.bind(this)), Q._defineProperty(this, "delete", O.YAMLMap.prototype.delete.bind(this)), Q._defineProperty(this, "get", O.YAMLMap.prototype.get.bind(this)), Q._defineProperty(this, "has", O.YAMLMap.prototype.has.bind(this)), Q._defineProperty(this, "set", O.YAMLMap.prototype.set.bind(this)), this.tag = t.tag;
3566
+ }
3567
+ toJSON(e, n) {
3568
+ let r = /* @__PURE__ */ new Map();
3569
+ n && n.onCreate && n.onCreate(r);
3570
+ for (let s of this.items) {
3571
+ let i, o;
3572
+ if (s instanceof O.Pair ? (i = O.toJSON(s.key, "", n), o = O.toJSON(s.value, i, n)) : i = O.toJSON(s, "", n), r.has(i)) throw new Error("Ordered maps must not include duplicate keys");
3573
+ r.set(i, o);
3574
+ }
3575
+ return r;
3576
+ }
3577
+ };
3578
+ Q._defineProperty(Fe, "tag", "tag:yaml.org,2002:omap");
3579
+ function ra(t, e) {
3580
+ let n = Qs(t, e), r = [];
3581
+ for (let { key: s } of n.items) if (s instanceof O.Scalar) if (r.includes(s.value)) {
3582
+ let i = "Ordered maps must not include duplicate keys";
3583
+ throw new Q.YAMLSemanticError(e, i);
3584
+ } else r.push(s.value);
3585
+ return Object.assign(new Fe(), n);
3586
+ }
3587
+ _chunkDFJNOFN2cjs.__name.call(void 0, ra, "ra");
3588
+ function sa(t, e, n) {
3589
+ let r = Js(t, e, n), s = new Fe();
3590
+ return s.items = r.items, s;
3591
+ }
3592
+ _chunkDFJNOFN2cjs.__name.call(void 0, sa, "sa");
3593
+ var ia = { identify: /* @__PURE__ */ _chunkDFJNOFN2cjs.__name.call(void 0, (t) => t instanceof Map, "identify"), nodeClass: Fe, default: false, tag: "tag:yaml.org,2002:omap", resolve: ra, createNode: sa }, qe = class t extends O.YAMLMap {
3594
+ static {
3595
+ _chunkDFJNOFN2cjs.__name.call(void 0, this, "t");
3596
+ }
3597
+ constructor() {
3598
+ super(), this.tag = t.tag;
3599
+ }
3600
+ add(e) {
3601
+ let n = e instanceof O.Pair ? e : new O.Pair(e);
3602
+ O.findPair(this.items, n.key) || this.items.push(n);
3603
+ }
3604
+ get(e, n) {
3605
+ let r = O.findPair(this.items, e);
3606
+ return !n && r instanceof O.Pair ? r.key instanceof O.Scalar ? r.key.value : r.key : r;
3607
+ }
3608
+ set(e, n) {
3609
+ if (typeof n != "boolean") throw new Error(`Expected boolean value for set(key, value) in a YAML set, not ${typeof n}`);
3610
+ let r = O.findPair(this.items, e);
3611
+ r && !n ? this.items.splice(this.items.indexOf(r), 1) : !r && n && this.items.push(new O.Pair(e));
3612
+ }
3613
+ toJSON(e, n) {
3614
+ return super.toJSON(e, n, Set);
3615
+ }
3616
+ toString(e, n, r) {
3617
+ if (!e) return JSON.stringify(this);
3618
+ if (this.hasAllNullValues()) return super.toString(e, n, r);
3619
+ throw new Error("Set items must all have null values");
3620
+ }
3621
+ };
3622
+ Q._defineProperty(qe, "tag", "tag:yaml.org,2002:set");
3623
+ function oa(t, e) {
3624
+ let n = O.resolveMap(t, e);
3625
+ if (!n.hasAllNullValues()) throw new Q.YAMLSemanticError(e, "Set items must all have null values");
3626
+ return Object.assign(new qe(), n);
3627
+ }
3628
+ _chunkDFJNOFN2cjs.__name.call(void 0, oa, "oa");
3629
+ function aa(t, e, n) {
3630
+ let r = new qe();
3631
+ for (let s of e) r.items.push(t.createPair(s, null, n));
3632
+ return r;
3633
+ }
3634
+ _chunkDFJNOFN2cjs.__name.call(void 0, aa, "aa");
3635
+ var ca = { identify: /* @__PURE__ */ _chunkDFJNOFN2cjs.__name.call(void 0, (t) => t instanceof Set, "identify"), nodeClass: qe, default: false, tag: "tag:yaml.org,2002:set", resolve: oa, createNode: aa }, Kn = /* @__PURE__ */ _chunkDFJNOFN2cjs.__name.call(void 0, (t, e) => {
3636
+ let n = e.split(":").reduce((r, s) => r * 60 + Number(s), 0);
3637
+ return t === "-" ? -n : n;
3638
+ }, "Kn"), Gs = /* @__PURE__ */ _chunkDFJNOFN2cjs.__name.call(void 0, ({ value: t }) => {
3639
+ if (isNaN(t) || !isFinite(t)) return O.stringifyNumber(t);
3640
+ let e = "";
3641
+ t < 0 && (e = "-", t = Math.abs(t));
3642
+ let n = [t % 60];
3643
+ return t < 60 ? n.unshift(0) : (t = Math.round((t - n[0]) / 60), n.unshift(t % 60), t >= 60 && (t = Math.round((t - n[0]) / 60), n.unshift(t))), e + n.map((r) => r < 10 ? "0" + String(r) : String(r)).join(":").replace(/000000\d*$/, "");
3644
+ }, "Gs"), la = { identify: /* @__PURE__ */ _chunkDFJNOFN2cjs.__name.call(void 0, (t) => typeof t == "number", "identify"), default: true, tag: "tag:yaml.org,2002:int", format: "TIME", test: /^([-+]?)([0-9][0-9_]*(?::[0-5]?[0-9])+)$/, resolve: /* @__PURE__ */ _chunkDFJNOFN2cjs.__name.call(void 0, (t, e, n) => Kn(e, n.replace(/_/g, "")), "resolve"), stringify: Gs }, fa = { identify: /* @__PURE__ */ _chunkDFJNOFN2cjs.__name.call(void 0, (t) => typeof t == "number", "identify"), default: true, tag: "tag:yaml.org,2002:float", format: "TIME", test: /^([-+]?)([0-9][0-9_]*(?::[0-5]?[0-9])+\.[0-9_]*)$/, resolve: /* @__PURE__ */ _chunkDFJNOFN2cjs.__name.call(void 0, (t, e, n) => Kn(e, n.replace(/_/g, "")), "resolve"), stringify: Gs }, ua = { identify: /* @__PURE__ */ _chunkDFJNOFN2cjs.__name.call(void 0, (t) => t instanceof Date, "identify"), default: true, tag: "tag:yaml.org,2002:timestamp", test: RegExp("^(?:([0-9]{4})-([0-9]{1,2})-([0-9]{1,2})(?:(?:t|T|[ \\t]+)([0-9]{1,2}):([0-9]{1,2}):([0-9]{1,2}(\\.[0-9]+)?)(?:[ \\t]*(Z|[-+][012]?[0-9](?::[0-9]{2})?))?)?)$"), resolve: /* @__PURE__ */ _chunkDFJNOFN2cjs.__name.call(void 0, (t, e, n, r, s, i, o, a, c) => {
3645
+ a && (a = (a + "00").substr(1, 3));
3646
+ let l = Date.UTC(e, n - 1, r, s || 0, i || 0, o || 0, a || 0);
3647
+ if (c && c !== "Z") {
3648
+ let f = Kn(c[0], c.slice(1));
3649
+ Math.abs(f) < 30 && (f *= 60), l -= 6e4 * f;
3650
+ }
3651
+ return new Date(l);
3652
+ }, "resolve"), stringify: /* @__PURE__ */ _chunkDFJNOFN2cjs.__name.call(void 0, ({ value: t }) => t.toISOString().replace(/((T00:00)?:00)?\.000Z$/, ""), "stringify") };
3653
+ function Vn(t) {
3654
+ let e = {};
3655
+ return t ? typeof YAML_SILENCE_DEPRECATION_WARNINGS < "u" ? !YAML_SILENCE_DEPRECATION_WARNINGS : !e.YAML_SILENCE_DEPRECATION_WARNINGS : typeof YAML_SILENCE_WARNINGS < "u" ? !YAML_SILENCE_WARNINGS : !e.YAML_SILENCE_WARNINGS;
3656
+ }
3657
+ _chunkDFJNOFN2cjs.__name.call(void 0, Vn, "Vn");
3658
+ function Wn(t, e) {
3659
+ Vn(false) && console.warn(e ? `${e}: ${t}` : t);
3660
+ }
3661
+ _chunkDFJNOFN2cjs.__name.call(void 0, Wn, "Wn");
3662
+ function pa(t) {
3663
+ if (Vn(true)) {
3664
+ let e = t.replace(/.*yaml[/\\]/i, "").replace(/\.js$/, "").replace(/\\/g, "/");
3665
+ Wn(`The endpoint 'yaml/${e}' will be removed in a future release.`, "DeprecationWarning");
3666
+ }
3667
+ }
3668
+ _chunkDFJNOFN2cjs.__name.call(void 0, pa, "pa");
3669
+ var js = {};
3670
+ function ma(t, e) {
3671
+ if (!js[t] && Vn(true)) {
3672
+ js[t] = true;
3673
+ let n = `The option '${t}' will be removed in a future release`;
3674
+ n += e ? `, use '${e}' instead.` : ".", Wn(n, "DeprecationWarning");
3675
+ }
3676
+ }
3677
+ _chunkDFJNOFN2cjs.__name.call(void 0, ma, "ma");
3678
+ z.binary = ta;
3679
+ z.floatTime = fa;
3680
+ z.intTime = la;
3681
+ z.omap = ia;
3682
+ z.pairs = na;
3683
+ z.set = ca;
3684
+ z.timestamp = ua;
3685
+ z.warn = Wn;
3686
+ z.warnFileDeprecation = pa;
3687
+ z.warnOptionDeprecation = ma;
3688
+ });
3689
+ Hn = ee((ci) => {
3690
+ "use strict";
3691
+ var Gt = le(), E = $e(), D = jn();
3692
+ function ha(t, e, n) {
3693
+ let r = new E.YAMLMap(t);
3694
+ if (e instanceof Map) for (let [s, i] of e) r.items.push(t.createPair(s, i, n));
3695
+ else if (e && typeof e == "object") for (let s of Object.keys(e)) r.items.push(t.createPair(s, e[s], n));
3696
+ return typeof t.sortMapEntries == "function" && r.items.sort(t.sortMapEntries), r;
3697
+ }
3698
+ _chunkDFJNOFN2cjs.__name.call(void 0, ha, "ha");
3699
+ var gt = { createNode: ha, default: true, nodeClass: E.YAMLMap, tag: "tag:yaml.org,2002:map", resolve: E.resolveMap };
3700
+ function ga(t, e, n) {
3701
+ let r = new E.YAMLSeq(t);
3702
+ if (e && e[Symbol.iterator]) for (let s of e) {
3703
+ let i = t.createNode(s, n.wrapScalars, null, n);
3704
+ r.items.push(i);
3705
+ }
3706
+ return r;
3707
+ }
3708
+ _chunkDFJNOFN2cjs.__name.call(void 0, ga, "ga");
3709
+ var Ht = { createNode: ga, default: true, nodeClass: E.YAMLSeq, tag: "tag:yaml.org,2002:seq", resolve: E.resolveSeq }, da = { identify: /* @__PURE__ */ _chunkDFJNOFN2cjs.__name.call(void 0, (t) => typeof t == "string", "identify"), default: true, tag: "tag:yaml.org,2002:str", resolve: E.resolveString, stringify(t, e, n, r) {
3710
+ return e = Object.assign({ actualString: true }, e), E.stringifyString(t, e, n, r);
3711
+ }, options: E.strOptions }, Jn = [gt, Ht, da], Xt = /* @__PURE__ */ _chunkDFJNOFN2cjs.__name.call(void 0, (t) => typeof t == "bigint" || Number.isInteger(t), "Xt"), Gn = /* @__PURE__ */ _chunkDFJNOFN2cjs.__name.call(void 0, (t, e, n) => E.intOptions.asBigInt ? BigInt(t) : parseInt(e, n), "Gn");
3712
+ function zs(t, e, n) {
3713
+ let { value: r } = t;
3714
+ return Xt(r) && r >= 0 ? n + r.toString(e) : E.stringifyNumber(t);
3715
+ }
3716
+ _chunkDFJNOFN2cjs.__name.call(void 0, zs, "zs");
3717
+ var Zs = { identify: /* @__PURE__ */ _chunkDFJNOFN2cjs.__name.call(void 0, (t) => t == null, "identify"), createNode: /* @__PURE__ */ _chunkDFJNOFN2cjs.__name.call(void 0, (t, e, n) => n.wrapScalars ? new E.Scalar(null) : null, "createNode"), default: true, tag: "tag:yaml.org,2002:null", test: /^(?:~|[Nn]ull|NULL)?$/, resolve: /* @__PURE__ */ _chunkDFJNOFN2cjs.__name.call(void 0, () => null, "resolve"), options: E.nullOptions, stringify: /* @__PURE__ */ _chunkDFJNOFN2cjs.__name.call(void 0, () => E.nullOptions.nullStr, "stringify") }, ei = { identify: /* @__PURE__ */ _chunkDFJNOFN2cjs.__name.call(void 0, (t) => typeof t == "boolean", "identify"), default: true, tag: "tag:yaml.org,2002:bool", test: /^(?:[Tt]rue|TRUE|[Ff]alse|FALSE)$/, resolve: /* @__PURE__ */ _chunkDFJNOFN2cjs.__name.call(void 0, (t) => t[0] === "t" || t[0] === "T", "resolve"), options: E.boolOptions, stringify: /* @__PURE__ */ _chunkDFJNOFN2cjs.__name.call(void 0, ({ value: t }) => t ? E.boolOptions.trueStr : E.boolOptions.falseStr, "stringify") }, ti = { identify: /* @__PURE__ */ _chunkDFJNOFN2cjs.__name.call(void 0, (t) => Xt(t) && t >= 0, "identify"), default: true, tag: "tag:yaml.org,2002:int", format: "OCT", test: /^0o([0-7]+)$/, resolve: /* @__PURE__ */ _chunkDFJNOFN2cjs.__name.call(void 0, (t, e) => Gn(t, e, 8), "resolve"), options: E.intOptions, stringify: /* @__PURE__ */ _chunkDFJNOFN2cjs.__name.call(void 0, (t) => zs(t, 8, "0o"), "stringify") }, ni = { identify: Xt, default: true, tag: "tag:yaml.org,2002:int", test: /^[-+]?[0-9]+$/, resolve: /* @__PURE__ */ _chunkDFJNOFN2cjs.__name.call(void 0, (t) => Gn(t, t, 10), "resolve"), options: E.intOptions, stringify: E.stringifyNumber }, ri = { identify: /* @__PURE__ */ _chunkDFJNOFN2cjs.__name.call(void 0, (t) => Xt(t) && t >= 0, "identify"), default: true, tag: "tag:yaml.org,2002:int", format: "HEX", test: /^0x([0-9a-fA-F]+)$/, resolve: /* @__PURE__ */ _chunkDFJNOFN2cjs.__name.call(void 0, (t, e) => Gn(t, e, 16), "resolve"), options: E.intOptions, stringify: /* @__PURE__ */ _chunkDFJNOFN2cjs.__name.call(void 0, (t) => zs(t, 16, "0x"), "stringify") }, si = { identify: /* @__PURE__ */ _chunkDFJNOFN2cjs.__name.call(void 0, (t) => typeof t == "number", "identify"), default: true, tag: "tag:yaml.org,2002:float", test: /^(?:[-+]?\.inf|(\.nan))$/i, resolve: /* @__PURE__ */ _chunkDFJNOFN2cjs.__name.call(void 0, (t, e) => e ? NaN : t[0] === "-" ? Number.NEGATIVE_INFINITY : Number.POSITIVE_INFINITY, "resolve"), stringify: E.stringifyNumber }, ii = { identify: /* @__PURE__ */ _chunkDFJNOFN2cjs.__name.call(void 0, (t) => typeof t == "number", "identify"), default: true, tag: "tag:yaml.org,2002:float", format: "EXP", test: /^[-+]?(?:\.[0-9]+|[0-9]+(?:\.[0-9]*)?)[eE][-+]?[0-9]+$/, resolve: /* @__PURE__ */ _chunkDFJNOFN2cjs.__name.call(void 0, (t) => parseFloat(t), "resolve"), stringify: /* @__PURE__ */ _chunkDFJNOFN2cjs.__name.call(void 0, ({ value: t }) => Number(t).toExponential(), "stringify") }, oi = { identify: /* @__PURE__ */ _chunkDFJNOFN2cjs.__name.call(void 0, (t) => typeof t == "number", "identify"), default: true, tag: "tag:yaml.org,2002:float", test: /^[-+]?(?:\.([0-9]+)|[0-9]+\.([0-9]*))$/, resolve(t, e, n) {
3718
+ let r = e || n, s = new E.Scalar(parseFloat(t));
3719
+ return r && r[r.length - 1] === "0" && (s.minFractionDigits = r.length), s;
3720
+ }, stringify: E.stringifyNumber }, ya = Jn.concat([Zs, ei, ti, ni, ri, si, ii, oi]), Hs = /* @__PURE__ */ _chunkDFJNOFN2cjs.__name.call(void 0, (t) => typeof t == "bigint" || Number.isInteger(t), "Hs"), Qt = /* @__PURE__ */ _chunkDFJNOFN2cjs.__name.call(void 0, ({ value: t }) => JSON.stringify(t), "Qt"), ai = [gt, Ht, { identify: /* @__PURE__ */ _chunkDFJNOFN2cjs.__name.call(void 0, (t) => typeof t == "string", "identify"), default: true, tag: "tag:yaml.org,2002:str", resolve: E.resolveString, stringify: Qt }, { identify: /* @__PURE__ */ _chunkDFJNOFN2cjs.__name.call(void 0, (t) => t == null, "identify"), createNode: /* @__PURE__ */ _chunkDFJNOFN2cjs.__name.call(void 0, (t, e, n) => n.wrapScalars ? new E.Scalar(null) : null, "createNode"), default: true, tag: "tag:yaml.org,2002:null", test: /^null$/, resolve: /* @__PURE__ */ _chunkDFJNOFN2cjs.__name.call(void 0, () => null, "resolve"), stringify: Qt }, { identify: /* @__PURE__ */ _chunkDFJNOFN2cjs.__name.call(void 0, (t) => typeof t == "boolean", "identify"), default: true, tag: "tag:yaml.org,2002:bool", test: /^true|false$/, resolve: /* @__PURE__ */ _chunkDFJNOFN2cjs.__name.call(void 0, (t) => t === "true", "resolve"), stringify: Qt }, { identify: Hs, default: true, tag: "tag:yaml.org,2002:int", test: /^-?(?:0|[1-9][0-9]*)$/, resolve: /* @__PURE__ */ _chunkDFJNOFN2cjs.__name.call(void 0, (t) => E.intOptions.asBigInt ? BigInt(t) : parseInt(t, 10), "resolve"), stringify: /* @__PURE__ */ _chunkDFJNOFN2cjs.__name.call(void 0, ({ value: t }) => Hs(t) ? t.toString() : JSON.stringify(t), "stringify") }, { identify: /* @__PURE__ */ _chunkDFJNOFN2cjs.__name.call(void 0, (t) => typeof t == "number", "identify"), default: true, tag: "tag:yaml.org,2002:float", test: /^-?(?:0|[1-9][0-9]*)(?:\.[0-9]*)?(?:[eE][-+]?[0-9]+)?$/, resolve: /* @__PURE__ */ _chunkDFJNOFN2cjs.__name.call(void 0, (t) => parseFloat(t), "resolve"), stringify: Qt }];
3721
+ ai.scalarFallback = (t) => {
3722
+ throw new SyntaxError(`Unresolved plain scalar ${JSON.stringify(t)}`);
3723
+ };
3724
+ var Xs = /* @__PURE__ */ _chunkDFJNOFN2cjs.__name.call(void 0, ({ value: t }) => t ? E.boolOptions.trueStr : E.boolOptions.falseStr, "Xs"), ht = /* @__PURE__ */ _chunkDFJNOFN2cjs.__name.call(void 0, (t) => typeof t == "bigint" || Number.isInteger(t), "ht");
3725
+ function Jt(t, e, n) {
3726
+ let r = e.replace(/_/g, "");
3727
+ if (E.intOptions.asBigInt) {
3728
+ switch (n) {
3729
+ case 2:
3730
+ r = `0b${r}`;
3731
+ break;
3732
+ case 8:
3733
+ r = `0o${r}`;
3734
+ break;
3735
+ case 16:
3736
+ r = `0x${r}`;
3737
+ break;
3738
+ }
3739
+ let i = BigInt(r);
3740
+ return t === "-" ? BigInt(-1) * i : i;
3741
+ }
3742
+ let s = parseInt(r, n);
3743
+ return t === "-" ? -1 * s : s;
3744
+ }
3745
+ _chunkDFJNOFN2cjs.__name.call(void 0, Jt, "Jt");
3746
+ function Qn(t, e, n) {
3747
+ let { value: r } = t;
3748
+ if (ht(r)) {
3749
+ let s = r.toString(e);
3750
+ return r < 0 ? "-" + n + s.substr(1) : n + s;
3751
+ }
3752
+ return E.stringifyNumber(t);
3753
+ }
3754
+ _chunkDFJNOFN2cjs.__name.call(void 0, Qn, "Qn");
3755
+ var Ea = Jn.concat([{ identify: /* @__PURE__ */ _chunkDFJNOFN2cjs.__name.call(void 0, (t) => t == null, "identify"), createNode: /* @__PURE__ */ _chunkDFJNOFN2cjs.__name.call(void 0, (t, e, n) => n.wrapScalars ? new E.Scalar(null) : null, "createNode"), default: true, tag: "tag:yaml.org,2002:null", test: /^(?:~|[Nn]ull|NULL)?$/, resolve: /* @__PURE__ */ _chunkDFJNOFN2cjs.__name.call(void 0, () => null, "resolve"), options: E.nullOptions, stringify: /* @__PURE__ */ _chunkDFJNOFN2cjs.__name.call(void 0, () => E.nullOptions.nullStr, "stringify") }, { identify: /* @__PURE__ */ _chunkDFJNOFN2cjs.__name.call(void 0, (t) => typeof t == "boolean", "identify"), default: true, tag: "tag:yaml.org,2002:bool", test: /^(?:Y|y|[Yy]es|YES|[Tt]rue|TRUE|[Oo]n|ON)$/, resolve: /* @__PURE__ */ _chunkDFJNOFN2cjs.__name.call(void 0, () => true, "resolve"), options: E.boolOptions, stringify: Xs }, { identify: /* @__PURE__ */ _chunkDFJNOFN2cjs.__name.call(void 0, (t) => typeof t == "boolean", "identify"), default: true, tag: "tag:yaml.org,2002:bool", test: /^(?:N|n|[Nn]o|NO|[Ff]alse|FALSE|[Oo]ff|OFF)$/i, resolve: /* @__PURE__ */ _chunkDFJNOFN2cjs.__name.call(void 0, () => false, "resolve"), options: E.boolOptions, stringify: Xs }, { identify: ht, default: true, tag: "tag:yaml.org,2002:int", format: "BIN", test: /^([-+]?)0b([0-1_]+)$/, resolve: /* @__PURE__ */ _chunkDFJNOFN2cjs.__name.call(void 0, (t, e, n) => Jt(e, n, 2), "resolve"), stringify: /* @__PURE__ */ _chunkDFJNOFN2cjs.__name.call(void 0, (t) => Qn(t, 2, "0b"), "stringify") }, { identify: ht, default: true, tag: "tag:yaml.org,2002:int", format: "OCT", test: /^([-+]?)0([0-7_]+)$/, resolve: /* @__PURE__ */ _chunkDFJNOFN2cjs.__name.call(void 0, (t, e, n) => Jt(e, n, 8), "resolve"), stringify: /* @__PURE__ */ _chunkDFJNOFN2cjs.__name.call(void 0, (t) => Qn(t, 8, "0"), "stringify") }, { identify: ht, default: true, tag: "tag:yaml.org,2002:int", test: /^([-+]?)([0-9][0-9_]*)$/, resolve: /* @__PURE__ */ _chunkDFJNOFN2cjs.__name.call(void 0, (t, e, n) => Jt(e, n, 10), "resolve"), stringify: E.stringifyNumber }, { identify: ht, default: true, tag: "tag:yaml.org,2002:int", format: "HEX", test: /^([-+]?)0x([0-9a-fA-F_]+)$/, resolve: /* @__PURE__ */ _chunkDFJNOFN2cjs.__name.call(void 0, (t, e, n) => Jt(e, n, 16), "resolve"), stringify: /* @__PURE__ */ _chunkDFJNOFN2cjs.__name.call(void 0, (t) => Qn(t, 16, "0x"), "stringify") }, { identify: /* @__PURE__ */ _chunkDFJNOFN2cjs.__name.call(void 0, (t) => typeof t == "number", "identify"), default: true, tag: "tag:yaml.org,2002:float", test: /^(?:[-+]?\.inf|(\.nan))$/i, resolve: /* @__PURE__ */ _chunkDFJNOFN2cjs.__name.call(void 0, (t, e) => e ? NaN : t[0] === "-" ? Number.NEGATIVE_INFINITY : Number.POSITIVE_INFINITY, "resolve"), stringify: E.stringifyNumber }, { identify: /* @__PURE__ */ _chunkDFJNOFN2cjs.__name.call(void 0, (t) => typeof t == "number", "identify"), default: true, tag: "tag:yaml.org,2002:float", format: "EXP", test: /^[-+]?([0-9][0-9_]*)?(\.[0-9_]*)?[eE][-+]?[0-9]+$/, resolve: /* @__PURE__ */ _chunkDFJNOFN2cjs.__name.call(void 0, (t) => parseFloat(t.replace(/_/g, "")), "resolve"), stringify: /* @__PURE__ */ _chunkDFJNOFN2cjs.__name.call(void 0, ({ value: t }) => Number(t).toExponential(), "stringify") }, { identify: /* @__PURE__ */ _chunkDFJNOFN2cjs.__name.call(void 0, (t) => typeof t == "number", "identify"), default: true, tag: "tag:yaml.org,2002:float", test: /^[-+]?(?:[0-9][0-9_]*)?\.([0-9_]*)$/, resolve(t, e) {
3756
+ let n = new E.Scalar(parseFloat(t.replace(/_/g, "")));
3757
+ if (e) {
3758
+ let r = e.replace(/_/g, "");
3759
+ r[r.length - 1] === "0" && (n.minFractionDigits = r.length);
3760
+ }
3761
+ return n;
3762
+ }, stringify: E.stringifyNumber }], D.binary, D.omap, D.pairs, D.set, D.intTime, D.floatTime, D.timestamp), Sa = { core: ya, failsafe: Jn, json: ai, yaml11: Ea }, wa = { binary: D.binary, bool: ei, float: oi, floatExp: ii, floatNaN: si, floatTime: D.floatTime, int: ni, intHex: ri, intOct: ti, intTime: D.intTime, map: gt, null: Zs, omap: D.omap, pairs: D.pairs, seq: Ht, set: D.set, timestamp: D.timestamp };
3763
+ function ba(t, e, n) {
3764
+ if (e) {
3765
+ let r = n.filter((i) => i.tag === e), s = r.find((i) => !i.format) || r[0];
3766
+ if (!s) throw new Error(`Tag ${e} not found`);
3767
+ return s;
3768
+ }
3769
+ return n.find((r) => (r.identify && r.identify(t) || r.class && t instanceof r.class) && !r.format);
3770
+ }
3771
+ _chunkDFJNOFN2cjs.__name.call(void 0, ba, "ba");
3772
+ function Na(t, e, n) {
3773
+ if (t instanceof E.Node) return t;
3774
+ let { defaultPrefix: r, onTagObj: s, prevObjects: i, schema: o, wrapScalars: a } = n;
3775
+ e && e.startsWith("!!") && (e = r + e.slice(2));
3776
+ let c = ba(t, e, o.tags);
3777
+ if (!c) {
3778
+ if (typeof t.toJSON == "function" && (t = t.toJSON()), !t || typeof t != "object") return a ? new E.Scalar(t) : t;
3779
+ c = t instanceof Map ? gt : t[Symbol.iterator] ? Ht : gt;
3780
+ }
3781
+ s && (s(c), delete n.onTagObj);
3782
+ let l = { value: void 0, node: void 0 };
3783
+ if (t && typeof t == "object" && i) {
3784
+ let f = i.get(t);
3785
+ if (f) {
3786
+ let m = new E.Alias(f);
3787
+ return n.aliasNodes.push(m), m;
3788
+ }
3789
+ l.value = t, i.set(t, l);
3790
+ }
3791
+ return l.node = c.createNode ? c.createNode(n.schema, t, n) : a ? new E.Scalar(t) : t, e && l.node instanceof E.Node && (l.node.tag = e), l.node;
3792
+ }
3793
+ _chunkDFJNOFN2cjs.__name.call(void 0, Na, "Na");
3794
+ function Oa(t, e, n, r) {
3795
+ let s = t[r.replace(/\W/g, "")];
3796
+ if (!s) {
3797
+ let i = Object.keys(t).map((o) => JSON.stringify(o)).join(", ");
3798
+ throw new Error(`Unknown schema "${r}"; use one of ${i}`);
3799
+ }
3800
+ if (Array.isArray(n)) for (let i of n) s = s.concat(i);
3801
+ else typeof n == "function" && (s = n(s.slice()));
3802
+ for (let i = 0; i < s.length; ++i) {
3803
+ let o = s[i];
3804
+ if (typeof o == "string") {
3805
+ let a = e[o];
3806
+ if (!a) {
3807
+ let c = Object.keys(e).map((l) => JSON.stringify(l)).join(", ");
3808
+ throw new Error(`Unknown custom tag "${o}"; use one of ${c}`);
3809
+ }
3810
+ s[i] = a;
3811
+ }
3812
+ }
3813
+ return s;
3814
+ }
3815
+ _chunkDFJNOFN2cjs.__name.call(void 0, Oa, "Oa");
3816
+ var La = /* @__PURE__ */ _chunkDFJNOFN2cjs.__name.call(void 0, (t, e) => t.key < e.key ? -1 : t.key > e.key ? 1 : 0, "La"), dt = class t {
3817
+ static {
3818
+ _chunkDFJNOFN2cjs.__name.call(void 0, this, "t");
3819
+ }
3820
+ constructor({ customTags: e, merge: n, schema: r, sortMapEntries: s, tags: i }) {
3821
+ this.merge = !!n, this.name = r, this.sortMapEntries = s === true ? La : s || null, !e && i && D.warnOptionDeprecation("tags", "customTags"), this.tags = Oa(Sa, wa, e || i, r);
3822
+ }
3823
+ createNode(e, n, r, s) {
3824
+ let i = { defaultPrefix: t.defaultPrefix, schema: this, wrapScalars: n }, o = s ? Object.assign(s, i) : i;
3825
+ return Na(e, r, o);
3826
+ }
3827
+ createPair(e, n, r) {
3828
+ r || (r = { wrapScalars: true });
3829
+ let s = this.createNode(e, r.wrapScalars, null, r), i = this.createNode(n, r.wrapScalars, null, r);
3830
+ return new E.Pair(s, i);
3831
+ }
3832
+ };
3833
+ Gt._defineProperty(dt, "defaultPrefix", Gt.defaultTagPrefix);
3834
+ Gt._defineProperty(dt, "defaultTags", Gt.defaultTags);
3835
+ ci.Schema = dt;
3836
+ });
3837
+ pi = ee((tn) => {
3838
+ "use strict";
3839
+ var Y = le(), S = $e(), li = Hn(), Aa = { anchorPrefix: "a", customTags: null, indent: 2, indentSeq: true, keepCstNodes: false, keepNodeTypes: true, keepBlobsInJSON: true, mapAsMap: false, maxAliasCount: 100, prettyErrors: false, simpleKeys: false, version: "1.2" }, Ta = { get binary() {
3840
+ return S.binaryOptions;
3841
+ }, set binary(t) {
3842
+ Object.assign(S.binaryOptions, t);
3843
+ }, get bool() {
3844
+ return S.boolOptions;
3845
+ }, set bool(t) {
3846
+ Object.assign(S.boolOptions, t);
3847
+ }, get int() {
3848
+ return S.intOptions;
3849
+ }, set int(t) {
3850
+ Object.assign(S.intOptions, t);
3851
+ }, get null() {
3852
+ return S.nullOptions;
3853
+ }, set null(t) {
3854
+ Object.assign(S.nullOptions, t);
3855
+ }, get str() {
3856
+ return S.strOptions;
3857
+ }, set str(t) {
3858
+ Object.assign(S.strOptions, t);
3859
+ } }, ui = { "1.0": { schema: "yaml-1.1", merge: true, tagPrefixes: [{ handle: "!", prefix: Y.defaultTagPrefix }, { handle: "!!", prefix: "tag:private.yaml.org,2002:" }] }, 1.1: { schema: "yaml-1.1", merge: true, tagPrefixes: [{ handle: "!", prefix: "!" }, { handle: "!!", prefix: Y.defaultTagPrefix }] }, 1.2: { schema: "core", merge: false, tagPrefixes: [{ handle: "!", prefix: "!" }, { handle: "!!", prefix: Y.defaultTagPrefix }] } };
3860
+ function fi(t, e) {
3861
+ if ((t.version || t.options.version) === "1.0") {
3862
+ let s = e.match(/^tag:private\.yaml\.org,2002:([^:/]+)$/);
3863
+ if (s) return "!" + s[1];
3864
+ let i = e.match(/^tag:([a-zA-Z0-9-]+)\.yaml\.org,2002:(.*)/);
3865
+ return i ? `!${i[1]}/${i[2]}` : `!${e.replace(/^tag:/, "")}`;
3866
+ }
3867
+ let n = t.tagPrefixes.find((s) => e.indexOf(s.prefix) === 0);
3868
+ if (!n) {
3869
+ let s = t.getDefaults().tagPrefixes;
3870
+ n = s && s.find((i) => e.indexOf(i.prefix) === 0);
3871
+ }
3872
+ if (!n) return e[0] === "!" ? e : `!<${e}>`;
3873
+ let r = e.substr(n.prefix.length).replace(/[!,[\]{}]/g, (s) => ({ "!": "%21", ",": "%2C", "[": "%5B", "]": "%5D", "{": "%7B", "}": "%7D" })[s]);
3874
+ return n.handle + r;
3875
+ }
3876
+ _chunkDFJNOFN2cjs.__name.call(void 0, fi, "fi");
3877
+ function Ca(t, e) {
3878
+ if (e instanceof S.Alias) return S.Alias;
3879
+ if (e.tag) {
3880
+ let s = t.filter((i) => i.tag === e.tag);
3881
+ if (s.length > 0) return s.find((i) => i.format === e.format) || s[0];
3882
+ }
3883
+ let n, r;
3884
+ if (e instanceof S.Scalar) {
3885
+ r = e.value;
3886
+ let s = t.filter((i) => i.identify && i.identify(r) || i.class && r instanceof i.class);
3887
+ n = s.find((i) => i.format === e.format) || s.find((i) => !i.format);
3888
+ } else r = e, n = t.find((s) => s.nodeClass && r instanceof s.nodeClass);
3889
+ if (!n) {
3890
+ let s = r && r.constructor ? r.constructor.name : typeof r;
3891
+ throw new Error(`Tag not resolved for ${s} value`);
3892
+ }
3893
+ return n;
3894
+ }
3895
+ _chunkDFJNOFN2cjs.__name.call(void 0, Ca, "Ca");
3896
+ function Ma(t, e, { anchors: n, doc: r }) {
3897
+ let s = [], i = r.anchors.getName(t);
3898
+ return i && (n[i] = t, s.push(`&${i}`)), t.tag ? s.push(fi(r, t.tag)) : e.default || s.push(fi(r, e.tag)), s.join(" ");
3899
+ }
3900
+ _chunkDFJNOFN2cjs.__name.call(void 0, Ma, "Ma");
3901
+ function zt(t, e, n, r) {
3902
+ let { anchors: s, schema: i } = e.doc, o;
3903
+ if (!(t instanceof S.Node)) {
3904
+ let l = { aliasNodes: [], onTagObj: /* @__PURE__ */ _chunkDFJNOFN2cjs.__name.call(void 0, (f) => o = f, "onTagObj"), prevObjects: /* @__PURE__ */ new Map() };
3905
+ t = i.createNode(t, true, null, l);
3906
+ for (let f of l.aliasNodes) {
3907
+ f.source = f.source.node;
3908
+ let m = s.getName(f.source);
3909
+ m || (m = s.newName(), s.map[m] = f.source);
3910
+ }
3911
+ }
3912
+ if (t instanceof S.Pair) return t.toString(e, n, r);
3913
+ o || (o = Ca(i.tags, t));
3914
+ let a = Ma(t, o, e);
3915
+ a.length > 0 && (e.indentAtStart = (e.indentAtStart || 0) + a.length + 1);
3916
+ let c = typeof o.stringify == "function" ? o.stringify(t, e, n, r) : t instanceof S.Scalar ? S.stringifyString(t, e, n, r) : t.toString(e, n, r);
3917
+ return a ? t instanceof S.Scalar || c[0] === "{" || c[0] === "[" ? `${a} ${c}` : `${a}
3918
+ ${e.indent}${c}` : c;
3919
+ }
3920
+ _chunkDFJNOFN2cjs.__name.call(void 0, zt, "zt");
3921
+ var Xn = class t {
3922
+ static {
3923
+ _chunkDFJNOFN2cjs.__name.call(void 0, this, "t");
3924
+ }
3925
+ static validAnchorNode(e) {
3926
+ return e instanceof S.Scalar || e instanceof S.YAMLSeq || e instanceof S.YAMLMap;
3927
+ }
3928
+ constructor(e) {
3929
+ Y._defineProperty(this, "map", /* @__PURE__ */ Object.create(null)), this.prefix = e;
3930
+ }
3931
+ createAlias(e, n) {
3932
+ return this.setAnchor(e, n), new S.Alias(e);
3933
+ }
3934
+ createMergePair(...e) {
3935
+ let n = new S.Merge();
3936
+ return n.value.items = e.map((r) => {
3937
+ if (r instanceof S.Alias) {
3938
+ if (r.source instanceof S.YAMLMap) return r;
3939
+ } else if (r instanceof S.YAMLMap) return this.createAlias(r);
3940
+ throw new Error("Merge sources must be Map nodes or their Aliases");
3941
+ }), n;
3942
+ }
3943
+ getName(e) {
3944
+ let { map: n } = this;
3945
+ return Object.keys(n).find((r) => n[r] === e);
3946
+ }
3947
+ getNames() {
3948
+ return Object.keys(this.map);
3949
+ }
3950
+ getNode(e) {
3951
+ return this.map[e];
3952
+ }
3953
+ newName(e) {
3954
+ e || (e = this.prefix);
3955
+ let n = Object.keys(this.map);
3956
+ for (let r = 1; ; ++r) {
3957
+ let s = `${e}${r}`;
3958
+ if (!n.includes(s)) return s;
3959
+ }
3960
+ }
3961
+ resolveNodes() {
3962
+ let { map: e, _cstAliases: n } = this;
3963
+ Object.keys(e).forEach((r) => {
3964
+ e[r] = e[r].resolved;
3965
+ }), n.forEach((r) => {
3966
+ r.source = r.source.resolved;
3967
+ }), delete this._cstAliases;
3968
+ }
3969
+ setAnchor(e, n) {
3970
+ if (e != null && !t.validAnchorNode(e)) throw new Error("Anchors may only be set for Scalar, Seq and Map nodes");
3971
+ if (n && /[\x00-\x19\s,[\]{}]/.test(n)) throw new Error("Anchor names must not contain whitespace or control characters");
3972
+ let { map: r } = this, s = e && Object.keys(r).find((i) => r[i] === e);
3973
+ if (s) if (n) s !== n && (delete r[s], r[n] = e);
3974
+ else return s;
3975
+ else {
3976
+ if (!n) {
3977
+ if (!e) return null;
3978
+ n = this.newName();
3979
+ }
3980
+ r[n] = e;
3981
+ }
3982
+ return n;
3983
+ }
3984
+ }, Zt = /* @__PURE__ */ _chunkDFJNOFN2cjs.__name.call(void 0, (t, e) => {
3985
+ if (t && typeof t == "object") {
3986
+ let { tag: n } = t;
3987
+ t instanceof S.Collection ? (n && (e[n] = true), t.items.forEach((r) => Zt(r, e))) : t instanceof S.Pair ? (Zt(t.key, e), Zt(t.value, e)) : t instanceof S.Scalar && n && (e[n] = true);
3988
+ }
3989
+ return e;
3990
+ }, "Zt"), ka = /* @__PURE__ */ _chunkDFJNOFN2cjs.__name.call(void 0, (t) => Object.keys(Zt(t, {})), "ka");
3991
+ function va(t, e) {
3992
+ let n = { before: [], after: [] }, r, s = false;
3993
+ for (let i of e) if (i.valueRange) {
3994
+ if (r !== void 0) {
3995
+ let a = "Document contains trailing content not separated by a ... or --- line";
3996
+ t.errors.push(new Y.YAMLSyntaxError(i, a));
3997
+ break;
3998
+ }
3999
+ let o = S.resolveNode(t, i);
4000
+ s && (o.spaceBefore = true, s = false), r = o;
4001
+ } else i.comment !== null ? (r === void 0 ? n.before : n.after).push(i.comment) : i.type === Y.Type.BLANK_LINE && (s = true, r === void 0 && n.before.length > 0 && !t.commentBefore && (t.commentBefore = n.before.join(`
4002
+ `), n.before = []));
4003
+ if (t.contents = r || null, !r) t.comment = n.before.concat(n.after).join(`
4004
+ `) || null;
4005
+ else {
4006
+ let i = n.before.join(`
4007
+ `);
4008
+ if (i) {
4009
+ let o = r instanceof S.Collection && r.items[0] ? r.items[0] : r;
4010
+ o.commentBefore = o.commentBefore ? `${i}
4011
+ ${o.commentBefore}` : i;
4012
+ }
4013
+ t.comment = n.after.join(`
4014
+ `) || null;
4015
+ }
4016
+ }
4017
+ _chunkDFJNOFN2cjs.__name.call(void 0, va, "va");
4018
+ function Ia({ tagPrefixes: t }, e) {
4019
+ let [n, r] = e.parameters;
4020
+ if (!n || !r) {
4021
+ let s = "Insufficient parameters given for %TAG directive";
4022
+ throw new Y.YAMLSemanticError(e, s);
4023
+ }
4024
+ if (t.some((s) => s.handle === n)) {
4025
+ let s = "The %TAG directive must only be given at most once per handle in the same document.";
4026
+ throw new Y.YAMLSemanticError(e, s);
4027
+ }
4028
+ return { handle: n, prefix: r };
4029
+ }
4030
+ _chunkDFJNOFN2cjs.__name.call(void 0, Ia, "Ia");
4031
+ function Pa(t, e) {
4032
+ let [n] = e.parameters;
4033
+ if (e.name === "YAML:1.0" && (n = "1.0"), !n) {
4034
+ let r = "Insufficient parameters given for %YAML directive";
4035
+ throw new Y.YAMLSemanticError(e, r);
4036
+ }
4037
+ if (!ui[n]) {
4038
+ let s = `Document will be parsed as YAML ${t.version || t.options.version} rather than YAML ${n}`;
4039
+ t.warnings.push(new Y.YAMLWarning(e, s));
4040
+ }
4041
+ return n;
4042
+ }
4043
+ _chunkDFJNOFN2cjs.__name.call(void 0, Pa, "Pa");
4044
+ function _a(t, e, n) {
4045
+ let r = [], s = false;
4046
+ for (let i of e) {
4047
+ let { comment: o, name: a } = i;
4048
+ switch (a) {
4049
+ case "TAG":
4050
+ try {
4051
+ t.tagPrefixes.push(Ia(t, i));
4052
+ } catch (c) {
4053
+ t.errors.push(c);
4054
+ }
4055
+ s = true;
4056
+ break;
4057
+ case "YAML":
4058
+ case "YAML:1.0":
4059
+ if (t.version) {
4060
+ let c = "The %YAML directive must only be given at most once per document.";
4061
+ t.errors.push(new Y.YAMLSemanticError(i, c));
4062
+ }
4063
+ try {
4064
+ t.version = Pa(t, i);
4065
+ } catch (c) {
4066
+ t.errors.push(c);
4067
+ }
4068
+ s = true;
4069
+ break;
4070
+ default:
4071
+ if (a) {
4072
+ let c = `YAML only supports %TAG and %YAML directives, and not %${a}`;
4073
+ t.warnings.push(new Y.YAMLWarning(i, c));
4074
+ }
4075
+ }
4076
+ o && r.push(o);
4077
+ }
4078
+ if (n && !s && (t.version || n.version || t.options.version) === "1.1") {
4079
+ let i = /* @__PURE__ */ _chunkDFJNOFN2cjs.__name.call(void 0, ({ handle: o, prefix: a }) => ({ handle: o, prefix: a }), "i");
4080
+ t.tagPrefixes = n.tagPrefixes.map(i), t.version = n.version;
4081
+ }
4082
+ t.commentBefore = r.join(`
4083
+ `) || null;
4084
+ }
4085
+ _chunkDFJNOFN2cjs.__name.call(void 0, _a, "_a");
4086
+ function Ue(t) {
4087
+ if (t instanceof S.Collection) return true;
4088
+ throw new Error("Expected a YAML collection as document contents");
4089
+ }
4090
+ _chunkDFJNOFN2cjs.__name.call(void 0, Ue, "Ue");
4091
+ var en = class t {
4092
+ static {
4093
+ _chunkDFJNOFN2cjs.__name.call(void 0, this, "t");
4094
+ }
4095
+ constructor(e) {
4096
+ this.anchors = new Xn(e.anchorPrefix), this.commentBefore = null, this.comment = null, this.contents = null, this.directivesEndMarker = null, this.errors = [], this.options = e, this.schema = null, this.tagPrefixes = [], this.version = null, this.warnings = [];
4097
+ }
4098
+ add(e) {
4099
+ return Ue(this.contents), this.contents.add(e);
4100
+ }
4101
+ addIn(e, n) {
4102
+ Ue(this.contents), this.contents.addIn(e, n);
4103
+ }
4104
+ delete(e) {
4105
+ return Ue(this.contents), this.contents.delete(e);
4106
+ }
4107
+ deleteIn(e) {
4108
+ return S.isEmptyPath(e) ? this.contents == null ? false : (this.contents = null, true) : (Ue(this.contents), this.contents.deleteIn(e));
4109
+ }
4110
+ getDefaults() {
4111
+ return t.defaults[this.version] || t.defaults[this.options.version] || {};
4112
+ }
4113
+ get(e, n) {
4114
+ return this.contents instanceof S.Collection ? this.contents.get(e, n) : void 0;
4115
+ }
4116
+ getIn(e, n) {
4117
+ return S.isEmptyPath(e) ? !n && this.contents instanceof S.Scalar ? this.contents.value : this.contents : this.contents instanceof S.Collection ? this.contents.getIn(e, n) : void 0;
4118
+ }
4119
+ has(e) {
4120
+ return this.contents instanceof S.Collection ? this.contents.has(e) : false;
4121
+ }
4122
+ hasIn(e) {
4123
+ return S.isEmptyPath(e) ? this.contents !== void 0 : this.contents instanceof S.Collection ? this.contents.hasIn(e) : false;
4124
+ }
4125
+ set(e, n) {
4126
+ Ue(this.contents), this.contents.set(e, n);
4127
+ }
4128
+ setIn(e, n) {
4129
+ S.isEmptyPath(e) ? this.contents = n : (Ue(this.contents), this.contents.setIn(e, n));
4130
+ }
4131
+ setSchema(e, n) {
4132
+ if (!e && !n && this.schema) return;
4133
+ typeof e == "number" && (e = e.toFixed(1)), e === "1.0" || e === "1.1" || e === "1.2" ? (this.version ? this.version = e : this.options.version = e, delete this.options.schema) : e && typeof e == "string" && (this.options.schema = e), Array.isArray(n) && (this.options.customTags = n);
4134
+ let r = Object.assign({}, this.getDefaults(), this.options);
4135
+ this.schema = new li.Schema(r);
4136
+ }
4137
+ parse(e, n) {
4138
+ this.options.keepCstNodes && (this.cstNode = e), this.options.keepNodeTypes && (this.type = "DOCUMENT");
4139
+ let { directives: r = [], contents: s = [], directivesEndMarker: i, error: o, valueRange: a } = e;
4140
+ if (o && (o.source || (o.source = this), this.errors.push(o)), _a(this, r, n), i && (this.directivesEndMarker = true), this.range = a ? [a.start, a.end] : null, this.setSchema(), this.anchors._cstAliases = [], va(this, s), this.anchors.resolveNodes(), this.options.prettyErrors) {
4141
+ for (let c of this.errors) c instanceof Y.YAMLError && c.makePretty();
4142
+ for (let c of this.warnings) c instanceof Y.YAMLError && c.makePretty();
4143
+ }
4144
+ return this;
4145
+ }
4146
+ listNonDefaultTags() {
4147
+ return ka(this.contents).filter((e) => e.indexOf(li.Schema.defaultPrefix) !== 0);
4148
+ }
4149
+ setTagPrefix(e, n) {
4150
+ if (e[0] !== "!" || e[e.length - 1] !== "!") throw new Error("Handle must start and end with !");
4151
+ if (n) {
4152
+ let r = this.tagPrefixes.find((s) => s.handle === e);
4153
+ r ? r.prefix = n : this.tagPrefixes.push({ handle: e, prefix: n });
4154
+ } else this.tagPrefixes = this.tagPrefixes.filter((r) => r.handle !== e);
4155
+ }
4156
+ toJSON(e, n) {
4157
+ let { keepBlobsInJSON: r, mapAsMap: s, maxAliasCount: i } = this.options, o = r && (typeof e != "string" || !(this.contents instanceof S.Scalar)), a = { doc: this, indentStep: " ", keep: o, mapAsMap: o && !!s, maxAliasCount: i, stringify: zt }, c = Object.keys(this.anchors.map);
4158
+ c.length > 0 && (a.anchors = new Map(c.map((f) => [this.anchors.map[f], { alias: [], aliasCount: 0, count: 1 }])));
4159
+ let l = S.toJSON(this.contents, e, a);
4160
+ if (typeof n == "function" && a.anchors) for (let { count: f, res: m } of a.anchors.values()) n(m, f);
4161
+ return l;
4162
+ }
4163
+ toString() {
4164
+ if (this.errors.length > 0) throw new Error("Document with errors cannot be stringified");
4165
+ let e = this.options.indent;
4166
+ if (!Number.isInteger(e) || e <= 0) {
4167
+ let c = JSON.stringify(e);
4168
+ throw new Error(`"indent" option must be a positive integer, not ${c}`);
4169
+ }
4170
+ this.setSchema();
4171
+ let n = [], r = false;
4172
+ if (this.version) {
4173
+ let c = "%YAML 1.2";
4174
+ this.schema.name === "yaml-1.1" && (this.version === "1.0" ? c = "%YAML:1.0" : this.version === "1.1" && (c = "%YAML 1.1")), n.push(c), r = true;
4175
+ }
4176
+ let s = this.listNonDefaultTags();
4177
+ this.tagPrefixes.forEach(({ handle: c, prefix: l }) => {
4178
+ s.some((f) => f.indexOf(l) === 0) && (n.push(`%TAG ${c} ${l}`), r = true);
4179
+ }), (r || this.directivesEndMarker) && n.push("---"), this.commentBefore && ((r || !this.directivesEndMarker) && n.unshift(""), n.unshift(this.commentBefore.replace(/^/gm, "#")));
4180
+ let i = { anchors: /* @__PURE__ */ Object.create(null), doc: this, indent: "", indentStep: " ".repeat(e), stringify: zt }, o = false, a = null;
4181
+ if (this.contents) {
4182
+ this.contents instanceof S.Node && (this.contents.spaceBefore && (r || this.directivesEndMarker) && n.push(""), this.contents.commentBefore && n.push(this.contents.commentBefore.replace(/^/gm, "#")), i.forceBlockIndent = !!this.comment, a = this.contents.comment);
4183
+ let c = a ? null : () => o = true, l = zt(this.contents, i, () => a = null, c);
4184
+ n.push(S.addComment(l, "", a));
4185
+ } else this.contents !== void 0 && n.push(zt(this.contents, i));
4186
+ return this.comment && ((!o || a) && n[n.length - 1] !== "" && n.push(""), n.push(this.comment.replace(/^/gm, "#"))), n.join(`
4187
+ `) + `
4188
+ `;
4189
+ }
4190
+ };
4191
+ Y._defineProperty(en, "defaults", ui);
4192
+ tn.Document = en;
4193
+ tn.defaultOptions = Aa;
4194
+ tn.scalarOptions = Ta;
4195
+ });
4196
+ gi = ee((hi) => {
4197
+ "use strict";
4198
+ var zn = xs(), Ne = pi(), xa = Hn(), Ra = le(), Da = jn();
4199
+ $e();
4200
+ function Ya(t, e = true, n) {
4201
+ n === void 0 && typeof e == "string" && (n = e, e = true);
4202
+ let r = Object.assign({}, Ne.Document.defaults[Ne.defaultOptions.version], Ne.defaultOptions);
4203
+ return new xa.Schema(r).createNode(t, e, n);
4204
+ }
4205
+ _chunkDFJNOFN2cjs.__name.call(void 0, Ya, "Ya");
4206
+ var Ke = class extends Ne.Document {
4207
+ static {
4208
+ _chunkDFJNOFN2cjs.__name.call(void 0, this, "Ke");
4209
+ }
4210
+ constructor(e) {
4211
+ super(Object.assign({}, Ne.defaultOptions, e));
4212
+ }
4213
+ };
4214
+ function Ba(t, e) {
4215
+ let n = [], r;
4216
+ for (let s of zn.parse(t)) {
4217
+ let i = new Ke(e);
4218
+ i.parse(s, r), n.push(i), r = i;
4219
+ }
4220
+ return n;
4221
+ }
4222
+ _chunkDFJNOFN2cjs.__name.call(void 0, Ba, "Ba");
4223
+ function mi(t, e) {
4224
+ let n = zn.parse(t), r = new Ke(e).parse(n[0]);
4225
+ if (n.length > 1) {
4226
+ let s = "Source contains multiple documents; please use YAML.parseAllDocuments()";
4227
+ r.errors.unshift(new Ra.YAMLSemanticError(n[1], s));
4228
+ }
4229
+ return r;
4230
+ }
4231
+ _chunkDFJNOFN2cjs.__name.call(void 0, mi, "mi");
4232
+ function $a(t, e) {
4233
+ let n = mi(t, e);
4234
+ if (n.warnings.forEach((r) => Da.warn(r)), n.errors.length > 0) throw n.errors[0];
4235
+ return n.toJSON();
4236
+ }
4237
+ _chunkDFJNOFN2cjs.__name.call(void 0, $a, "$a");
4238
+ function Fa(t, e) {
4239
+ let n = new Ke(e);
4240
+ return n.contents = t, String(n);
4241
+ }
4242
+ _chunkDFJNOFN2cjs.__name.call(void 0, Fa, "Fa");
4243
+ var qa = { createNode: Ya, defaultOptions: Ne.defaultOptions, Document: Ke, parse: $a, parseAllDocuments: Ba, parseCST: zn.parse, parseDocument: mi, scalarOptions: Ne.scalarOptions, stringify: Fa };
4244
+ hi.YAML = qa;
4245
+ });
4246
+ yi = ee((Rm, di) => {
4247
+ di.exports = gi().YAML;
4248
+ });
4249
+ Ei = ee((J) => {
4250
+ "use strict";
4251
+ var Ve = $e(), We = le();
4252
+ J.findPair = Ve.findPair;
4253
+ J.parseMap = Ve.resolveMap;
4254
+ J.parseSeq = Ve.resolveSeq;
4255
+ J.stringifyNumber = Ve.stringifyNumber;
4256
+ J.stringifyString = Ve.stringifyString;
4257
+ J.toJSON = Ve.toJSON;
4258
+ J.Type = We.Type;
4259
+ J.YAMLError = We.YAMLError;
4260
+ J.YAMLReferenceError = We.YAMLReferenceError;
4261
+ J.YAMLSemanticError = We.YAMLSemanticError;
4262
+ J.YAMLSyntaxError = We.YAMLSyntaxError;
4263
+ J.YAMLWarning = We.YAMLWarning;
4264
+ });
4265
+ tr = {};
4266
+ nr(tr, { languages: /* @__PURE__ */ _chunkDFJNOFN2cjs.__name.call(void 0, () => Pr, "languages"), options: /* @__PURE__ */ _chunkDFJNOFN2cjs.__name.call(void 0, () => _r, "options"), parsers: /* @__PURE__ */ _chunkDFJNOFN2cjs.__name.call(void 0, () => er, "parsers"), printers: /* @__PURE__ */ _chunkDFJNOFN2cjs.__name.call(void 0, () => Ja, "printers") });
4267
+ Ii = /* @__PURE__ */ _chunkDFJNOFN2cjs.__name.call(void 0, (t, e, n, r) => {
4268
+ if (!(t && e == null)) return e.replaceAll ? e.replaceAll(n, r) : n.global ? e.replace(n, r) : e.split(n).join(r);
4269
+ }, "Ii");
4270
+ yt = Ii;
4271
+ je = "string";
4272
+ Qe = "array";
4273
+ Je = "cursor";
4274
+ Ge = "indent";
4275
+ Oe = "align";
4276
+ He = "trim";
4277
+ Le = "group";
4278
+ Ae = "fill";
4279
+ Te = "if-break";
4280
+ Xe = "indent-if-break";
4281
+ Ce = "line-suffix";
4282
+ ze = "line-suffix-boundary";
4283
+ te = "line";
4284
+ Ze = "label";
4285
+ Me = "break-parent";
4286
+ Et = /* @__PURE__ */ new Set([Je, Ge, Oe, He, Le, Ae, Te, Xe, Ce, ze, te, Ze, Me]);
4287
+ _chunkDFJNOFN2cjs.__name.call(void 0, Pi, "Pi");
4288
+ et = Pi;
4289
+ _i = /* @__PURE__ */ _chunkDFJNOFN2cjs.__name.call(void 0, (t) => new Intl.ListFormat("en-US", { type: "disjunction" }).format(t), "_i");
4290
+ _chunkDFJNOFN2cjs.__name.call(void 0, xi, "xi");
4291
+ rn = (_class = class extends Error {
4292
+ static {
4293
+ _chunkDFJNOFN2cjs.__name.call(void 0, this, "rn");
4294
+ }
4295
+ __init() {this.name = "InvalidDocError"}
4296
+ constructor(e) {
4297
+ super(xi(e));_class.prototype.__init.call(this);, this.doc = e;
4298
+ }
4299
+ }, _class);
4300
+ sn = rn;
4301
+ sr = /* @__PURE__ */ _chunkDFJNOFN2cjs.__name.call(void 0, () => {
4302
+ }, "sr");
4303
+ he = sr;
4304
+ St = sr;
4305
+ _chunkDFJNOFN2cjs.__name.call(void 0, tt, "tt");
4306
+ _chunkDFJNOFN2cjs.__name.call(void 0, ke, "ke");
4307
+ _chunkDFJNOFN2cjs.__name.call(void 0, on, "on");
4308
+ _chunkDFJNOFN2cjs.__name.call(void 0, ir, "ir");
4309
+ _chunkDFJNOFN2cjs.__name.call(void 0, or, "or");
4310
+ _chunkDFJNOFN2cjs.__name.call(void 0, an, "an");
4311
+ _chunkDFJNOFN2cjs.__name.call(void 0, wt, "wt");
4312
+ _chunkDFJNOFN2cjs.__name.call(void 0, nt, "nt");
4313
+ _chunkDFJNOFN2cjs.__name.call(void 0, ar, "ar");
4314
+ bt = { type: Me };
4315
+ Ri = { type: te, hard: true };
4316
+ Di = { type: te, hard: true, literal: true };
4317
+ ne = { type: te };
4318
+ Nt = { type: te, soft: true };
4319
+ N = [Ri, bt];
4320
+ rt = [Di, bt];
4321
+ _chunkDFJNOFN2cjs.__name.call(void 0, v, "v");
4322
+ Yi = /* @__PURE__ */ _chunkDFJNOFN2cjs.__name.call(void 0, (t, e, n) => {
4323
+ if (!(t && e == null)) return Array.isArray(e) || typeof e == "string" ? e[n < 0 ? e.length + n : n] : e.at(n);
4324
+ }, "Yi");
4325
+ x = Yi;
4326
+ _chunkDFJNOFN2cjs.__name.call(void 0, Bi, "Bi");
4327
+ _chunkDFJNOFN2cjs.__name.call(void 0, cr, "cr");
4328
+ _chunkDFJNOFN2cjs.__name.call(void 0, Ot, "Ot");
4329
+ Nc = Ot(/\s/u);
4330
+ cn = Ot(" ");
4331
+ Oc = Ot(",; ");
4332
+ Lc = Ot(/[^\n\r]/u);
4333
+ _chunkDFJNOFN2cjs.__name.call(void 0, $i, "$i");
4334
+ ln = $i;
4335
+ _chunkDFJNOFN2cjs.__name.call(void 0, Fi, "Fi");
4336
+ lr = Fi;
4337
+ fn = (_class2 = class extends Error {
4338
+ static {
4339
+ _chunkDFJNOFN2cjs.__name.call(void 0, this, "fn");
4340
+ }
4341
+ __init2() {this.name = "UnexpectedNodeError"}
4342
+ constructor(e, n, r = "type") {
4343
+ super(`Unexpected ${n} node ${r}: ${JSON.stringify(e[r])}.`);_class2.prototype.__init2.call(this);, this.node = e;
4344
+ }
4345
+ }, _class2);
4346
+ fr = fn;
4347
+ _chunkDFJNOFN2cjs.__name.call(void 0, ur, "ur");
4348
+ ur.getVisitorKeys = () => [];
4349
+ pr = ur;
4350
+ st = null;
4351
+ _chunkDFJNOFN2cjs.__name.call(void 0, it, "it");
4352
+ qi = 10;
4353
+ for (let t = 0; t <= qi; t++) it();
4354
+ _chunkDFJNOFN2cjs.__name.call(void 0, un, "un");
4355
+ _chunkDFJNOFN2cjs.__name.call(void 0, Ui, "Ui");
4356
+ mr = Ui;
4357
+ Ki = Object.fromEntries(Object.entries({ root: ["children"], document: ["head", "body", "children"], documentHead: ["children"], documentBody: ["children"], directive: [], alias: [], blockLiteral: [], blockFolded: ["children"], plain: ["children"], quoteSingle: [], quoteDouble: [], mapping: ["children"], mappingItem: ["key", "value", "children"], mappingKey: ["content", "children"], mappingValue: ["content", "children"], sequence: ["children"], sequenceItem: ["content", "children"], flowMapping: ["children"], flowMappingItem: ["key", "value", "children"], flowSequence: ["children"], flowSequenceItem: ["content", "children"], comment: [], tag: [], anchor: [] }).map(([t, e]) => [t, [...e, "anchor", "tag", "indicatorComment", "leadingComments", "middleComments", "trailingComment", "endComments"]]));
4358
+ hr = Ki;
4359
+ Vi = mr(hr);
4360
+ gr = Vi;
4361
+ _chunkDFJNOFN2cjs.__name.call(void 0, ve, "ve");
4362
+ _chunkDFJNOFN2cjs.__name.call(void 0, dr, "dr");
4363
+ _chunkDFJNOFN2cjs.__name.call(void 0, yr, "yr");
4364
+ _chunkDFJNOFN2cjs.__name.call(void 0, Er, "Er");
4365
+ _chunkDFJNOFN2cjs.__name.call(void 0, Sr, "Sr");
4366
+ _chunkDFJNOFN2cjs.__name.call(void 0, Wi, "Wi");
4367
+ Ie = Wi;
4368
+ _chunkDFJNOFN2cjs.__name.call(void 0, H, "H");
4369
+ _chunkDFJNOFN2cjs.__name.call(void 0, pn, "pn");
4370
+ _chunkDFJNOFN2cjs.__name.call(void 0, Pe, "Pe");
4371
+ _chunkDFJNOFN2cjs.__name.call(void 0, br, "br");
4372
+ _chunkDFJNOFN2cjs.__name.call(void 0, Lt, "Lt");
4373
+ _chunkDFJNOFN2cjs.__name.call(void 0, At, "At");
4374
+ _chunkDFJNOFN2cjs.__name.call(void 0, wr, "wr");
4375
+ _chunkDFJNOFN2cjs.__name.call(void 0, Nr, "Nr");
4376
+ _chunkDFJNOFN2cjs.__name.call(void 0, _e, "_e");
4377
+ _chunkDFJNOFN2cjs.__name.call(void 0, ji, "ji");
4378
+ _chunkDFJNOFN2cjs.__name.call(void 0, Z, "Z");
4379
+ _chunkDFJNOFN2cjs.__name.call(void 0, ie, "ie");
4380
+ _chunkDFJNOFN2cjs.__name.call(void 0, mn, "mn");
4381
+ _chunkDFJNOFN2cjs.__name.call(void 0, K, "K");
4382
+ _chunkDFJNOFN2cjs.__name.call(void 0, R, "R");
4383
+ _chunkDFJNOFN2cjs.__name.call(void 0, Or, "Or");
4384
+ _chunkDFJNOFN2cjs.__name.call(void 0, Lr, "Lr");
4385
+ _chunkDFJNOFN2cjs.__name.call(void 0, Ar, "Ar");
4386
+ _chunkDFJNOFN2cjs.__name.call(void 0, ot, "ot");
4387
+ hn = /* @__PURE__ */ new WeakMap();
4388
+ _chunkDFJNOFN2cjs.__name.call(void 0, Tt, "Tt");
4389
+ _chunkDFJNOFN2cjs.__name.call(void 0, gn, "gn");
4390
+ _chunkDFJNOFN2cjs.__name.call(void 0, I, "I");
4391
+ _chunkDFJNOFN2cjs.__name.call(void 0, Qi, "Qi");
4392
+ Tr = Qi;
4393
+ _chunkDFJNOFN2cjs.__name.call(void 0, Ct, "Ct");
4394
+ _chunkDFJNOFN2cjs.__name.call(void 0, Ji, "Ji");
4395
+ _chunkDFJNOFN2cjs.__name.call(void 0, Gi, "Gi");
4396
+ _chunkDFJNOFN2cjs.__name.call(void 0, dn, "dn");
4397
+ _chunkDFJNOFN2cjs.__name.call(void 0, Hi, "Hi");
4398
+ _chunkDFJNOFN2cjs.__name.call(void 0, Xi, "Xi");
4399
+ Cr = Gi;
4400
+ _chunkDFJNOFN2cjs.__name.call(void 0, zi, "zi");
4401
+ _chunkDFJNOFN2cjs.__name.call(void 0, Zi, "Zi");
4402
+ Mr = zi;
4403
+ _chunkDFJNOFN2cjs.__name.call(void 0, eo, "eo");
4404
+ _chunkDFJNOFN2cjs.__name.call(void 0, to, "to");
4405
+ _chunkDFJNOFN2cjs.__name.call(void 0, no, "no");
4406
+ _chunkDFJNOFN2cjs.__name.call(void 0, kr, "kr");
4407
+ _chunkDFJNOFN2cjs.__name.call(void 0, ro, "ro");
4408
+ _chunkDFJNOFN2cjs.__name.call(void 0, at, "at");
4409
+ _chunkDFJNOFN2cjs.__name.call(void 0, vr, "vr");
4410
+ vr.ignoredProperties = /* @__PURE__ */ new Set(["position"]);
4411
+ so = { preprocess: Mr, embed: pr, print: eo, massageAstNode: vr, insertPragma: Sr, getVisitorKeys: gr };
4412
+ Ir = so;
4413
+ Pr = exports.languages = [{ linguistLanguageId: 407, name: "YAML", type: "data", color: "#cb171e", tmScope: "source.yaml", aliases: ["yml"], extensions: [".yml", ".mir", ".reek", ".rviz", ".sublime-syntax", ".syntax", ".yaml", ".yaml-tmlanguage", ".yaml.sed", ".yml.mysql"], filenames: [".clang-format", ".clang-tidy", ".gemrc", "CITATION.cff", "glide.lock", ".prettierrc", ".stylelintrc", ".lintstagedrc"], aceMode: "yaml", codemirrorMode: "yaml", codemirrorMimeType: "text/x-yaml", parsers: ["yaml"], vscodeLanguageIds: ["yaml", "ansible", "home-assistant"] }];
4414
+ Mt = { bracketSpacing: { category: "Common", type: "boolean", default: true, description: "Print spaces between brackets.", oppositeDescription: "Do not print spaces between brackets." }, singleQuote: { category: "Common", type: "boolean", default: false, description: "Use single quotes instead of double quotes." }, proseWrap: { category: "Common", type: "choice", default: "preserve", description: "How to wrap prose.", choices: [{ value: "always", description: "Wrap prose if it exceeds the print width." }, { value: "never", description: "Do not wrap prose." }, { value: "preserve", description: "Wrap prose as-is." }] }, bracketSameLine: { category: "Common", type: "boolean", default: false, description: "Put > of opening tags on the last line instead of on a new line." }, singleAttributePerLine: { category: "Common", type: "boolean", default: false, description: "Enforce single attribute per line in HTML, Vue and JSX." } };
4415
+ io = { bracketSpacing: Mt.bracketSpacing, singleQuote: Mt.singleQuote, proseWrap: Mt.proseWrap };
4416
+ _r = exports.options = io;
4417
+ er = exports.parsers = {};
4418
+ nr(er, { yaml: /* @__PURE__ */ _chunkDFJNOFN2cjs.__name.call(void 0, () => Qa, "yaml") });
4419
+ kt = `
4420
+ `;
4421
+ xr = "\r";
4422
+ Rr = function() {
4423
+ function t(e) {
4424
+ this.length = e.length;
4425
+ for (var n = [0], r = 0; r < e.length; ) switch (e[r]) {
4426
+ case kt:
4427
+ r += kt.length, n.push(r);
4428
+ break;
4429
+ case xr:
4430
+ r += xr.length, e[r] === kt && (r += kt.length), n.push(r);
4431
+ break;
4432
+ default:
4433
+ r++;
4434
+ break;
4435
+ }
4436
+ this.offsets = n;
4437
+ }
4438
+ _chunkDFJNOFN2cjs.__name.call(void 0, t, "t");
4439
+ return t.prototype.locationForIndex = function(e) {
4440
+ if (e < 0 || e > this.length) return null;
4441
+ for (var n = 0, r = this.offsets; r[n + 1] <= e; ) n++;
4442
+ var s = e - r[n];
4443
+ return { line: n, column: s };
4444
+ }, t.prototype.indexForLocation = function(e) {
4445
+ var n = e.line, r = e.column;
4446
+ return n < 0 || n >= this.offsets.length || r < 0 || r > this.lengthOfLine(n) ? null : this.offsets[n] + r;
4447
+ }, t.prototype.lengthOfLine = function(e) {
4448
+ var n = this.offsets[e], r = e === this.offsets.length - 1 ? this.length : this.offsets[e + 1];
4449
+ return r - n;
4450
+ }, t;
4451
+ }();
4452
+ _chunkDFJNOFN2cjs.__name.call(void 0, B, "B");
4453
+ _chunkDFJNOFN2cjs.__name.call(void 0, ge, "ge");
4454
+ _chunkDFJNOFN2cjs.__name.call(void 0, Dr, "Dr");
4455
+ _chunkDFJNOFN2cjs.__name.call(void 0, oo, "oo");
4456
+ _chunkDFJNOFN2cjs.__name.call(void 0, Yr, "Yr");
4457
+ _chunkDFJNOFN2cjs.__name.call(void 0, ao, "ao");
4458
+ _chunkDFJNOFN2cjs.__name.call(void 0, co, "co");
4459
+ _chunkDFJNOFN2cjs.__name.call(void 0, Br, "Br");
4460
+ _chunkDFJNOFN2cjs.__name.call(void 0, b, "b");
4461
+ _chunkDFJNOFN2cjs.__name.call(void 0, $r, "$r");
4462
+ _chunkDFJNOFN2cjs.__name.call(void 0, ct, "ct");
4463
+ _chunkDFJNOFN2cjs.__name.call(void 0, X, "X");
4464
+ _chunkDFJNOFN2cjs.__name.call(void 0, oe, "oe");
4465
+ _chunkDFJNOFN2cjs.__name.call(void 0, $, "$");
4466
+ _chunkDFJNOFN2cjs.__name.call(void 0, Fr, "Fr");
4467
+ _chunkDFJNOFN2cjs.__name.call(void 0, qr, "qr");
4468
+ _chunkDFJNOFN2cjs.__name.call(void 0, Ur, "Ur");
4469
+ _chunkDFJNOFN2cjs.__name.call(void 0, Kr, "Kr");
4470
+ (function(t) {
4471
+ t.Tag = "!", t.Anchor = "&", t.Comment = "#";
4472
+ })(ae || (ae = {}));
4473
+ _chunkDFJNOFN2cjs.__name.call(void 0, Vr, "Vr");
4474
+ _chunkDFJNOFN2cjs.__name.call(void 0, xe, "xe");
4475
+ _chunkDFJNOFN2cjs.__name.call(void 0, Wr, "Wr");
4476
+ _chunkDFJNOFN2cjs.__name.call(void 0, jr, "jr");
4477
+ _chunkDFJNOFN2cjs.__name.call(void 0, vt, "vt");
4478
+ (function(t) {
4479
+ t.CLIP = "clip", t.STRIP = "strip", t.KEEP = "keep";
4480
+ })(yn || (yn = {}));
4481
+ _chunkDFJNOFN2cjs.__name.call(void 0, It, "It");
4482
+ _chunkDFJNOFN2cjs.__name.call(void 0, Qr, "Qr");
4483
+ _chunkDFJNOFN2cjs.__name.call(void 0, Jr, "Jr");
4484
+ _chunkDFJNOFN2cjs.__name.call(void 0, Gr, "Gr");
4485
+ _chunkDFJNOFN2cjs.__name.call(void 0, Hr, "Hr");
4486
+ _chunkDFJNOFN2cjs.__name.call(void 0, Xr, "Xr");
4487
+ _chunkDFJNOFN2cjs.__name.call(void 0, Re, "Re");
4488
+ _chunkDFJNOFN2cjs.__name.call(void 0, zr, "zr");
4489
+ _chunkDFJNOFN2cjs.__name.call(void 0, Zr, "Zr");
4490
+ _chunkDFJNOFN2cjs.__name.call(void 0, V, "V");
4491
+ _chunkDFJNOFN2cjs.__name.call(void 0, En, "En");
4492
+ _chunkDFJNOFN2cjs.__name.call(void 0, F, "F");
4493
+ _chunkDFJNOFN2cjs.__name.call(void 0, es, "es");
4494
+ _chunkDFJNOFN2cjs.__name.call(void 0, q, "q");
4495
+ _chunkDFJNOFN2cjs.__name.call(void 0, Pt, "Pt");
4496
+ _chunkDFJNOFN2cjs.__name.call(void 0, ts, "ts");
4497
+ _chunkDFJNOFN2cjs.__name.call(void 0, lo, "lo");
4498
+ _chunkDFJNOFN2cjs.__name.call(void 0, fo, "fo");
4499
+ _chunkDFJNOFN2cjs.__name.call(void 0, ns, "ns");
4500
+ _chunkDFJNOFN2cjs.__name.call(void 0, rs, "rs");
4501
+ _chunkDFJNOFN2cjs.__name.call(void 0, uo, "uo");
4502
+ _chunkDFJNOFN2cjs.__name.call(void 0, po, "po");
4503
+ _chunkDFJNOFN2cjs.__name.call(void 0, ss, "ss");
4504
+ _chunkDFJNOFN2cjs.__name.call(void 0, _t, "_t");
4505
+ _chunkDFJNOFN2cjs.__name.call(void 0, is, "is");
4506
+ _chunkDFJNOFN2cjs.__name.call(void 0, xt, "xt");
4507
+ _chunkDFJNOFN2cjs.__name.call(void 0, ce, "ce");
4508
+ _chunkDFJNOFN2cjs.__name.call(void 0, Rt, "Rt");
4509
+ _chunkDFJNOFN2cjs.__name.call(void 0, Dt, "Dt");
4510
+ _chunkDFJNOFN2cjs.__name.call(void 0, Yt, "Yt");
4511
+ _chunkDFJNOFN2cjs.__name.call(void 0, Sn, "Sn");
4512
+ _chunkDFJNOFN2cjs.__name.call(void 0, wn, "wn");
4513
+ _chunkDFJNOFN2cjs.__name.call(void 0, De, "De");
4514
+ _chunkDFJNOFN2cjs.__name.call(void 0, os, "os");
4515
+ _chunkDFJNOFN2cjs.__name.call(void 0, as, "as");
4516
+ _chunkDFJNOFN2cjs.__name.call(void 0, cs, "cs");
4517
+ _chunkDFJNOFN2cjs.__name.call(void 0, ls, "ls");
4518
+ _chunkDFJNOFN2cjs.__name.call(void 0, fs, "fs");
4519
+ _chunkDFJNOFN2cjs.__name.call(void 0, us, "us");
4520
+ _chunkDFJNOFN2cjs.__name.call(void 0, ps, "ps");
4521
+ _chunkDFJNOFN2cjs.__name.call(void 0, mo, "mo");
4522
+ _chunkDFJNOFN2cjs.__name.call(void 0, ms, "ms");
4523
+ _chunkDFJNOFN2cjs.__name.call(void 0, hs, "hs");
4524
+ _chunkDFJNOFN2cjs.__name.call(void 0, gs, "gs");
4525
+ _chunkDFJNOFN2cjs.__name.call(void 0, ds, "ds");
4526
+ _chunkDFJNOFN2cjs.__name.call(void 0, ys, "ys");
4527
+ _chunkDFJNOFN2cjs.__name.call(void 0, Bt, "Bt");
4528
+ _chunkDFJNOFN2cjs.__name.call(void 0, Es, "Es");
4529
+ _chunkDFJNOFN2cjs.__name.call(void 0, Ss, "Ss");
4530
+ _chunkDFJNOFN2cjs.__name.call(void 0, ws, "ws");
4531
+ _chunkDFJNOFN2cjs.__name.call(void 0, bs, "bs");
4532
+ _chunkDFJNOFN2cjs.__name.call(void 0, Ns, "Ns");
4533
+ _chunkDFJNOFN2cjs.__name.call(void 0, Os, "Os");
4534
+ _chunkDFJNOFN2cjs.__name.call(void 0, Ls, "Ls");
4535
+ _chunkDFJNOFN2cjs.__name.call(void 0, As, "As");
4536
+ _chunkDFJNOFN2cjs.__name.call(void 0, Ts, "Ts");
4537
+ _chunkDFJNOFN2cjs.__name.call(void 0, Cs, "Cs");
4538
+ _chunkDFJNOFN2cjs.__name.call(void 0, Ms, "Ms");
4539
+ _chunkDFJNOFN2cjs.__name.call(void 0, ks, "ks");
4540
+ _chunkDFJNOFN2cjs.__name.call(void 0, vs, "vs");
4541
+ _chunkDFJNOFN2cjs.__name.call(void 0, bn, "bn");
4542
+ _chunkDFJNOFN2cjs.__name.call(void 0, ho, "ho");
4543
+ _chunkDFJNOFN2cjs.__name.call(void 0, go, "go");
4544
+ _chunkDFJNOFN2cjs.__name.call(void 0, Nn, "Nn");
4545
+ _chunkDFJNOFN2cjs.__name.call(void 0, On, "On");
4546
+ _chunkDFJNOFN2cjs.__name.call(void 0, Ln, "Ln");
4547
+ _chunkDFJNOFN2cjs.__name.call(void 0, yo, "yo");
4548
+ _chunkDFJNOFN2cjs.__name.call(void 0, Eo, "Eo");
4549
+ _chunkDFJNOFN2cjs.__name.call(void 0, So, "So");
4550
+ _chunkDFJNOFN2cjs.__name.call(void 0, wo, "wo");
4551
+ _chunkDFJNOFN2cjs.__name.call(void 0, bo, "bo");
4552
+ _chunkDFJNOFN2cjs.__name.call(void 0, No, "No");
4553
+ Si = rr(yi(), 1);
4554
+ G = rr(Ei(), 1);
4555
+ Ym = G.default.findPair;
4556
+ Bm = G.default.toJSON;
4557
+ $m = G.default.parseMap;
4558
+ Fm = G.default.parseSeq;
4559
+ qm = G.default.stringifyNumber;
4560
+ Um = G.default.stringifyString;
4561
+ Km = G.default.Type;
4562
+ Ua = G.default.YAMLError;
4563
+ Vm = G.default.YAMLReferenceError;
4564
+ Zn = G.default.YAMLSemanticError;
4565
+ Ka = G.default.YAMLSyntaxError;
4566
+ Wm = G.default.YAMLWarning;
4567
+ ({ Document: wi, parseCST: bi } = Si.default);
4568
+ _chunkDFJNOFN2cjs.__name.call(void 0, Ni, "Ni");
4569
+ _chunkDFJNOFN2cjs.__name.call(void 0, Wa, "Wa");
4570
+ Oi = Wa;
4571
+ _chunkDFJNOFN2cjs.__name.call(void 0, ja, "ja");
4572
+ Qa = { astFormat: "yaml", parse: ja, hasPragma: Er, locStart: ve, locEnd: dr };
4573
+ Ja = exports.printers = { yaml: Ir };
4574
+ yh = exports.default = tr;
4575
+ }
4576
+ });
4577
+ init_yaml();
4578
+
4579
+
4580
+
4581
+
4582
+
4583
+
4584
+ exports.default = yh; exports.languages = Pr; exports.options = _r; exports.parsers = er; exports.printers = Ja;