@redocly/replay 0.29.0-next.9 → 0.30.0-next.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{replay-AiChatProvider-DAWT4hAb.js → replay-AiChatProvider--LgX8A8I.js} +2 -2
- package/dist/{replay-AiChatProvider-BDqzEpdu.js → replay-AiChatProvider-D7Pa4BSi.js} +8 -8
- package/dist/{replay-AiChatSqliteDBStorage-Dkz4d7Rx.js → replay-AiChatSqliteDBStorage-BtTQLkOQ.js} +1 -1
- package/dist/{replay-AiChatSqliteDBStorage-BJ0kltvn.js → replay-AiChatSqliteDBStorage-CFle7AkQ.js} +1 -1
- package/dist/{replay-AiPanel-C5wMkLIc.js → replay-AiPanel-DKOom3XE.js} +6 -7
- package/dist/{replay-AiPanel-CkVIJhGF.js → replay-AiPanel-MAf1O3X7.js} +2 -3
- package/dist/{replay-FileWatcher-D3FVyQbX.js → replay-FileWatcher-Bi1Awm1g.js} +2 -2
- package/dist/{replay-FileWatcher-DW7u83d1.js → replay-FileWatcher-D3vYo_rm.js} +1 -1
- package/dist/{replay-SemanticSearchService-DgroPziI.js → replay-SemanticSearchService-4RHUNPxQ.js} +6 -9
- package/dist/replay-SemanticSearchService-CEwTcXh1.js +1 -0
- package/dist/{replay-SqliteDBStorage-CXZGasJG.js → replay-SqliteDBStorage-Ckb4-uGs.js} +1 -1
- package/dist/{replay-SqliteDBStorage-BG22uvLP.js → replay-SqliteDBStorage-npzhoUbx.js} +1 -1
- package/dist/{replay-TauriFileSystemAdapter-BY888O_1.js → replay-TauriFileSystemAdapter-BVKa-J8G.js} +1 -1
- package/dist/{replay-TauriFileSystemAdapter-CGGDSxKe.js → replay-TauriFileSystemAdapter-hBzFy5dq.js} +1 -1
- package/dist/{replay-TauriRootStorage-DaKRlo3-.js → replay-TauriRootStorage-BSBhzg4_.js} +2 -2
- package/dist/{replay-TauriRootStorage-CnLeXsev.js → replay-TauriRootStorage-C8nZhzW9.js} +1 -1
- package/dist/{replay-agent-loop-CzPV4LI2.js → replay-agent-loop-BClVMyB_.js} +5 -6
- package/dist/{replay-agent-loop-D1h5J-uE.js → replay-agent-loop-D0ooRyaR.js} +1 -1
- package/dist/{replay-ai-chat-mappers-DsLIxLaN.js → replay-ai-chat-mappers-BaS0SBBN.js} +1 -1
- package/dist/{replay-ai-chat-mappers-BlVOCvVt.js → replay-ai-chat-mappers-DSJXgXDi.js} +1 -1
- package/dist/{replay-create-model-_BaJNmZq.js → replay-create-model-B16cfxY1.js} +3 -3
- package/dist/{replay-create-model-KIUQ2An5.js → replay-create-model-dCrhNa4v.js} +3 -3
- package/dist/{replay-db-DoLsw4tF.js → replay-db-BcTQQjOZ.js} +1 -1
- package/dist/{replay-db-CroFZCLK.js → replay-db-C0Ufsv6d.js} +1 -1
- package/dist/{replay-external-resolver-BwZvmuC9.js → replay-external-resolver-BUSmyZ4o.js} +1 -1
- package/dist/{replay-external-resolver-DUzbkx07.js → replay-external-resolver-lsrzcHGV.js} +2 -2
- package/dist/{replay-index-BBDKuDcc.js → replay-index-0jSH5fMy.js} +1 -1
- package/dist/replay-index-3nHwbL4Q.js +4 -0
- package/dist/{replay-index-DjHbio61.js → replay-index-BOCfRuh5.js} +1 -1
- package/dist/{replay-index-B8puA2u2.js → replay-index-BykL_Zfq.js} +1 -1
- package/dist/{replay-index-VCzOY16S.js → replay-index-C2w9vpTi.js} +22417 -21859
- package/dist/{replay-index-zmQXrIpO.js → replay-index-CS_msisY.js} +1 -1
- package/dist/{replay-index-zSldZ9CB.js → replay-index-CaM9uKKg.js} +1 -1
- package/dist/{replay-index-SX6LT-jT.js → replay-index-ClCfKhUI.js} +5 -5
- package/dist/{replay-index-B1cRNYAB.js → replay-index-CrWBueeN.js} +1 -1
- package/dist/{replay-index-54ROnLOe.js → replay-index-HnPW_cXS.js} +1223 -1168
- package/dist/{replay-index-BI0q2SFK.js → replay-index-NC0f8Qjs.js} +1 -1
- package/dist/{replay-index-AuXMzqmR.js → replay-index-_vrprcIj.js} +1 -1
- package/dist/{replay-lint-YAy8-Dtq.js → replay-lint-D8bDzG-0.js} +3635 -3635
- package/dist/{replay-lint-graphql-Bpd88C9w.js → replay-lint-graphql-DTEuN3l4.js} +2 -2
- package/dist/{replay-lint-graphql-CZBwQl0k.js → replay-lint-graphql-icJF6g0k.js} +1 -1
- package/dist/{replay-lint-C8g-xqrP.js → replay-lint-mRsw2YBg.js} +55 -55
- package/dist/{replay-periodic-revalidation-BzoE_vj1.js → replay-periodic-revalidation-Cnqp6anx.js} +1 -1
- package/dist/{replay-periodic-revalidation-CNYI9Ked.js → replay-periodic-revalidation-CvEqq27n.js} +1 -1
- package/dist/replay-resolve-DNzrSK76.js +47 -0
- package/dist/{replay-resolve-DrE6Bsmy.js → replay-resolve-DiS3OBIs.js} +1008 -1000
- package/dist/{replay-respect-run-tWrs79VV.js → replay-respect-run-BJ_mc6pJ.js} +1 -1
- package/dist/{replay-respect-run-DIYJQvbB.js → replay-respect-run-DVK6Dxvo.js} +3 -3
- package/dist/{replay-tauri-path-6SQ7odaf.js → replay-tauri-path-AxOlEPjw.js} +2 -2
- package/dist/{replay-tauri-path-Duj7dsaA.js → replay-tauri-path-BQXBIioc.js} +1 -1
- package/dist/{replay-useAiChatQueries-B1XeG3iY.js → replay-useAiChatQueries-BPdWvgNH.js} +457 -463
- package/dist/{replay-useAiChatQueries-__VXRF5i.js → replay-useAiChatQueries-CYKuFusQ.js} +12 -12
- package/dist/{replay-validate-key-Dl8sa_9N.js → replay-validate-key-BP9xVq6g.js} +2 -2
- package/dist/{replay-validate-key-BGMRyGdn.js → replay-validate-key-BZyaia8o.js} +1 -1
- package/dist/replay.cjs +1 -1
- package/dist/replay.d.ts +6 -1
- package/dist/replay.js +1 -1
- package/package.json +4 -5
- package/dist/replay-SemanticSearchService-DAt35B37.js +0 -1
- package/dist/replay-index-Cj1-cwJH.js +0 -4
- package/dist/replay-resolve-jATjJR5l.js +0 -47
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { X as
|
|
2
|
-
function
|
|
1
|
+
import { X as gr, a6 as Qe, a7 as be } from "./replay-index-C2w9vpTi.js";
|
|
2
|
+
function mr(e) {
|
|
3
3
|
return !!e;
|
|
4
4
|
}
|
|
5
|
-
var
|
|
6
|
-
function
|
|
7
|
-
if (
|
|
8
|
-
|
|
5
|
+
var bt = {}, vt, pn;
|
|
6
|
+
function gt() {
|
|
7
|
+
if (pn) return vt;
|
|
8
|
+
pn = 1;
|
|
9
9
|
const e = "\\\\/", t = `[^${e}]`, n = 0, r = "\\.", i = "\\+", o = "\\?", a = "\\/", s = "(?=.)", l = "[^/]", u = `(?:${a}|$)`, c = `(?:^|${a})`, S = `${r}{1,2}${u}`, m = `(?!${r})`, C = `(?!${c}${S})`, E = `(?!${r}{0,1}${u})`, w = `(?!${S})`, M = `[^.${a}]`, N = `${l}*?`, y = {
|
|
10
10
|
DOT_LITERAL: r,
|
|
11
11
|
PLUS_LITERAL: i,
|
|
@@ -54,7 +54,7 @@ function dt() {
|
|
|
54
54
|
word: "A-Za-z0-9_",
|
|
55
55
|
xdigit: "A-Fa-f0-9"
|
|
56
56
|
};
|
|
57
|
-
return
|
|
57
|
+
return vt = {
|
|
58
58
|
DEFAULT_MAX_EXTGLOB_RECURSION: n,
|
|
59
59
|
MAX_LENGTH: 1024 * 64,
|
|
60
60
|
POSIX_REGEX_SOURCE: f,
|
|
@@ -179,17 +179,17 @@ function dt() {
|
|
|
179
179
|
globChars(I) {
|
|
180
180
|
return I === !0 ? R : y;
|
|
181
181
|
}
|
|
182
|
-
},
|
|
182
|
+
}, vt;
|
|
183
183
|
}
|
|
184
|
-
var
|
|
185
|
-
function
|
|
186
|
-
return
|
|
184
|
+
var dn;
|
|
185
|
+
function mt() {
|
|
186
|
+
return dn || (dn = 1, (function(e) {
|
|
187
187
|
const {
|
|
188
188
|
REGEX_BACKSLASH: t,
|
|
189
189
|
REGEX_REMOVE_BACKSLASH: n,
|
|
190
190
|
REGEX_SPECIAL_CHARS: r,
|
|
191
191
|
REGEX_SPECIAL_CHARS_GLOBAL: i
|
|
192
|
-
} = /* @__PURE__ */
|
|
192
|
+
} = /* @__PURE__ */ gt();
|
|
193
193
|
e.isObject = (o) => o !== null && typeof o == "object" && !Array.isArray(o), e.hasRegexChars = (o) => r.test(o), e.isRegexChar = (o) => o.length === 1 && e.hasRegexChars(o), e.escapeRegex = (o) => o.replace(i, "\\$1"), e.toPosixSlashes = (o) => o.replace(t, "/"), e.isWindows = () => {
|
|
194
194
|
if (typeof navigator < "u" && navigator.platform) {
|
|
195
195
|
const o = navigator.platform.toLowerCase();
|
|
@@ -210,13 +210,13 @@ function ht() {
|
|
|
210
210
|
const s = o.split(a ? /[\\/]/ : "/"), l = s[s.length - 1];
|
|
211
211
|
return l === "" ? s[s.length - 2] : l;
|
|
212
212
|
};
|
|
213
|
-
})(
|
|
213
|
+
})(bt)), bt;
|
|
214
214
|
}
|
|
215
|
-
var
|
|
216
|
-
function
|
|
217
|
-
if (
|
|
218
|
-
|
|
219
|
-
const e = /* @__PURE__ */
|
|
215
|
+
var Rt, hn;
|
|
216
|
+
function Ar() {
|
|
217
|
+
if (hn) return Rt;
|
|
218
|
+
hn = 1;
|
|
219
|
+
const e = /* @__PURE__ */ mt(), {
|
|
220
220
|
CHAR_ASTERISK: t,
|
|
221
221
|
/* * */
|
|
222
222
|
CHAR_AT: n,
|
|
@@ -247,42 +247,42 @@ function mr() {
|
|
|
247
247
|
/* ) */
|
|
248
248
|
CHAR_RIGHT_SQUARE_BRACKET: w
|
|
249
249
|
/* ] */
|
|
250
|
-
} = /* @__PURE__ */
|
|
250
|
+
} = /* @__PURE__ */ gt(), M = (y) => y === s || y === r, N = (y) => {
|
|
251
251
|
y.isPrefix !== !0 && (y.depth = y.isGlobstar ? 1 / 0 : 1);
|
|
252
252
|
};
|
|
253
|
-
return
|
|
254
|
-
const f = R || {}, I = y.length - 1, v = f.parts === !0 || f.scanToEnd === !0, A = [], g = [], x = [];
|
|
255
|
-
let W = y, L = -1,
|
|
256
|
-
const
|
|
253
|
+
return Rt = (y, R) => {
|
|
254
|
+
const f = R || {}, I = y.length - 1, v = f.parts === !0 || f.tokens === !0 || f.scanToEnd === !0, A = [], g = [], x = [];
|
|
255
|
+
let W = y, L = -1, U = 0, fe = 0, le = !1, he = !1, j = !1, ye = !1, Re = !1, ge = !1, K = !1, me = !1, xe = !1, ne = !1, J = 0, ce, $, F = { value: "", depth: 0, isGlob: !1 };
|
|
256
|
+
const p = () => L >= I, re = () => W.charCodeAt(L + 1), X = () => (ce = $, W.charCodeAt(++L));
|
|
257
257
|
for (; L < I; ) {
|
|
258
|
-
$ =
|
|
258
|
+
$ = X();
|
|
259
259
|
let D;
|
|
260
260
|
if ($ === r) {
|
|
261
|
-
|
|
261
|
+
K = F.backslashes = !0, $ = X(), $ === l && (ge = !0);
|
|
262
262
|
continue;
|
|
263
263
|
}
|
|
264
|
-
if (
|
|
265
|
-
for (J++;
|
|
264
|
+
if (ge === !0 || $ === l) {
|
|
265
|
+
for (J++; p() !== !0 && ($ = X()); ) {
|
|
266
266
|
if ($ === r) {
|
|
267
|
-
|
|
267
|
+
K = F.backslashes = !0, X();
|
|
268
268
|
continue;
|
|
269
269
|
}
|
|
270
270
|
if ($ === l) {
|
|
271
271
|
J++;
|
|
272
272
|
continue;
|
|
273
273
|
}
|
|
274
|
-
if (
|
|
275
|
-
if (
|
|
274
|
+
if (ge !== !0 && $ === o && ($ = X()) === o) {
|
|
275
|
+
if (le = F.isBrace = !0, j = F.isGlob = !0, ne = !0, v === !0)
|
|
276
276
|
continue;
|
|
277
277
|
break;
|
|
278
278
|
}
|
|
279
|
-
if (
|
|
280
|
-
if (
|
|
279
|
+
if (ge !== !0 && $ === i) {
|
|
280
|
+
if (le = F.isBrace = !0, j = F.isGlob = !0, ne = !0, v === !0)
|
|
281
281
|
continue;
|
|
282
282
|
break;
|
|
283
283
|
}
|
|
284
284
|
if ($ === C && (J--, J === 0)) {
|
|
285
|
-
|
|
285
|
+
ge = !1, le = F.isBrace = !0, ne = !0;
|
|
286
286
|
break;
|
|
287
287
|
}
|
|
288
288
|
}
|
|
@@ -292,22 +292,27 @@ function mr() {
|
|
|
292
292
|
}
|
|
293
293
|
if ($ === s) {
|
|
294
294
|
if (A.push(L), g.push(F), F = { value: "", depth: 0, isGlob: !1 }, ne === !0) continue;
|
|
295
|
-
if (
|
|
296
|
-
|
|
295
|
+
if (ce === o && L === U + 1) {
|
|
296
|
+
U += 2;
|
|
297
297
|
continue;
|
|
298
298
|
}
|
|
299
|
-
|
|
299
|
+
fe = L + 1;
|
|
300
300
|
continue;
|
|
301
301
|
}
|
|
302
|
-
if (f.noext !== !0 && ($ === S || $ === n || $ === t || $ === m || $ === a) === !0 &&
|
|
303
|
-
if (j = F.isGlob = !0, ye = F.isExtglob = !0, ne = !0, $ === a && L ===
|
|
304
|
-
|
|
302
|
+
if (f.noext !== !0 && ($ === S || $ === n || $ === t || $ === m || $ === a) === !0 && re() === u) {
|
|
303
|
+
if (j = F.isGlob = !0, ye = F.isExtglob = !0, ne = !0, $ === a && L === U && (xe = !0), v === !0) {
|
|
304
|
+
let ue = 0;
|
|
305
|
+
for (; p() !== !0 && ($ = X()); ) {
|
|
305
306
|
if ($ === r) {
|
|
306
|
-
|
|
307
|
+
K = F.backslashes = !0, X();
|
|
307
308
|
continue;
|
|
308
309
|
}
|
|
309
|
-
if ($ ===
|
|
310
|
-
|
|
310
|
+
if ($ === u) {
|
|
311
|
+
ue++;
|
|
312
|
+
continue;
|
|
313
|
+
}
|
|
314
|
+
if ($ === E && --ue === 0) {
|
|
315
|
+
ne = !0;
|
|
311
316
|
break;
|
|
312
317
|
}
|
|
313
318
|
}
|
|
@@ -316,7 +321,7 @@ function mr() {
|
|
|
316
321
|
break;
|
|
317
322
|
}
|
|
318
323
|
if ($ === t) {
|
|
319
|
-
if (
|
|
324
|
+
if (ce === t && (Re = F.isGlobstar = !0), j = F.isGlob = !0, ne = !0, v === !0)
|
|
320
325
|
continue;
|
|
321
326
|
break;
|
|
322
327
|
}
|
|
@@ -326,13 +331,13 @@ function mr() {
|
|
|
326
331
|
break;
|
|
327
332
|
}
|
|
328
333
|
if ($ === c) {
|
|
329
|
-
for (;
|
|
334
|
+
for (; p() !== !0 && (D = X()); ) {
|
|
330
335
|
if (D === r) {
|
|
331
|
-
|
|
336
|
+
K = F.backslashes = !0, X();
|
|
332
337
|
continue;
|
|
333
338
|
}
|
|
334
339
|
if (D === w) {
|
|
335
|
-
|
|
340
|
+
he = F.isBracket = !0, j = F.isGlob = !0, ne = !0;
|
|
336
341
|
break;
|
|
337
342
|
}
|
|
338
343
|
}
|
|
@@ -340,18 +345,23 @@ function mr() {
|
|
|
340
345
|
continue;
|
|
341
346
|
break;
|
|
342
347
|
}
|
|
343
|
-
if (f.nonegate !== !0 && $ === a && L ===
|
|
344
|
-
|
|
348
|
+
if (f.nonegate !== !0 && $ === a && L === U) {
|
|
349
|
+
me = F.negated = !0, U++;
|
|
345
350
|
continue;
|
|
346
351
|
}
|
|
347
352
|
if (f.noparen !== !0 && $ === u) {
|
|
348
353
|
if (j = F.isGlob = !0, v === !0) {
|
|
349
|
-
|
|
354
|
+
let se = 1;
|
|
355
|
+
for (; p() !== !0 && ($ = X()); ) {
|
|
356
|
+
if ($ === r) {
|
|
357
|
+
K = F.backslashes = !0, X();
|
|
358
|
+
continue;
|
|
359
|
+
}
|
|
350
360
|
if ($ === u) {
|
|
351
|
-
|
|
361
|
+
se++;
|
|
352
362
|
continue;
|
|
353
363
|
}
|
|
354
|
-
if ($ === E) {
|
|
364
|
+
if ($ === E && --se === 0) {
|
|
355
365
|
ne = !0;
|
|
356
366
|
break;
|
|
357
367
|
}
|
|
@@ -367,42 +377,39 @@ function mr() {
|
|
|
367
377
|
}
|
|
368
378
|
}
|
|
369
379
|
f.noext === !0 && (ye = !1, j = !1);
|
|
370
|
-
let
|
|
371
|
-
|
|
372
|
-
const
|
|
373
|
-
prefix:
|
|
380
|
+
let V = W, h = "", d = "";
|
|
381
|
+
U > 0 && (h = W.slice(0, U), W = W.slice(U), fe -= U), V && j === !0 && fe > 0 ? (V = W.slice(0, fe), d = W.slice(fe)) : j === !0 ? (V = "", d = W) : V = W, V && V !== "" && V !== "/" && V !== W && M(V.charCodeAt(V.length - 1)) && (V = V.slice(0, -1)), f.unescape === !0 && (d && (d = e.removeBackslashes(d)), V && K === !0 && (V = e.removeBackslashes(V)));
|
|
382
|
+
const pe = {
|
|
383
|
+
prefix: h,
|
|
374
384
|
input: y,
|
|
375
|
-
start:
|
|
376
|
-
base:
|
|
377
|
-
glob:
|
|
378
|
-
isBrace:
|
|
379
|
-
isBracket:
|
|
385
|
+
start: U,
|
|
386
|
+
base: V,
|
|
387
|
+
glob: d,
|
|
388
|
+
isBrace: le,
|
|
389
|
+
isBracket: he,
|
|
380
390
|
isGlob: j,
|
|
381
391
|
isExtglob: ye,
|
|
382
|
-
isGlobstar:
|
|
383
|
-
negated:
|
|
384
|
-
negatedExtglob:
|
|
392
|
+
isGlobstar: Re,
|
|
393
|
+
negated: me,
|
|
394
|
+
negatedExtglob: xe
|
|
385
395
|
};
|
|
386
|
-
if (f.tokens === !0 && (
|
|
396
|
+
if (f.tokens === !0 && (pe.maxDepth = 0, M($) || g.push(F), pe.tokens = g), f.parts === !0 || f.tokens === !0) {
|
|
387
397
|
let D;
|
|
388
|
-
for (let
|
|
389
|
-
const
|
|
390
|
-
f.tokens && (
|
|
391
|
-
}
|
|
392
|
-
if (D && D + 1 < y.length) {
|
|
393
|
-
const V = y.slice(D + 1);
|
|
394
|
-
x.push(V), f.tokens && (g[g.length - 1].value = V, N(g[g.length - 1]), ue.maxDepth += g[g.length - 1].depth);
|
|
398
|
+
for (let z = 0; z < A.length; z++) {
|
|
399
|
+
const Fe = D !== void 0 ? D + 1 : U, We = A[z], _e = y.slice(Fe, We);
|
|
400
|
+
f.tokens && (z === 0 && U !== 0 ? (g[z].isPrefix = !0, g[z].value = h) : g[z].value = _e, N(g[z]), pe.maxDepth += g[z].depth), We >= U && (x.push(_e), D = We);
|
|
395
401
|
}
|
|
396
|
-
|
|
402
|
+
const se = D !== void 0 ? D + 1 : U, ue = y.slice(se);
|
|
403
|
+
x.push(ue), f.tokens && D && D + 1 < y.length && (g[g.length - 1].value = ue, N(g[g.length - 1]), pe.maxDepth += g[g.length - 1].depth), pe.slashes = A, pe.parts = x;
|
|
397
404
|
}
|
|
398
|
-
return
|
|
399
|
-
},
|
|
405
|
+
return pe;
|
|
406
|
+
}, Rt;
|
|
400
407
|
}
|
|
401
|
-
var
|
|
402
|
-
function
|
|
403
|
-
if (
|
|
404
|
-
|
|
405
|
-
const e = /* @__PURE__ */
|
|
408
|
+
var xt, gn;
|
|
409
|
+
function yr() {
|
|
410
|
+
if (gn) return xt;
|
|
411
|
+
gn = 1;
|
|
412
|
+
const e = /* @__PURE__ */ gt(), t = /* @__PURE__ */ mt(), {
|
|
406
413
|
MAX_LENGTH: n,
|
|
407
414
|
POSIX_REGEX_SOURCE: r,
|
|
408
415
|
REGEX_NON_SPECIAL_CHARS: i,
|
|
@@ -579,22 +586,22 @@ function Ar() {
|
|
|
579
586
|
if (v > I)
|
|
580
587
|
throw new SyntaxError(`Input length: ${v}, exceeds maximum allowed length: ${I}`);
|
|
581
588
|
const A = { type: "bos", value: "", output: f.prepend || "" }, g = [A], x = f.capture ? "" : "?:", W = e.globChars(f.windows), L = e.extglobChars(W), {
|
|
582
|
-
DOT_LITERAL:
|
|
583
|
-
PLUS_LITERAL:
|
|
584
|
-
SLASH_LITERAL:
|
|
585
|
-
ONE_CHAR:
|
|
589
|
+
DOT_LITERAL: U,
|
|
590
|
+
PLUS_LITERAL: fe,
|
|
591
|
+
SLASH_LITERAL: le,
|
|
592
|
+
ONE_CHAR: he,
|
|
586
593
|
DOTS_SLASH: j,
|
|
587
594
|
NO_DOT: ye,
|
|
588
|
-
NO_DOT_SLASH:
|
|
589
|
-
NO_DOTS_SLASH:
|
|
590
|
-
QMARK:
|
|
591
|
-
QMARK_NO_DOT:
|
|
592
|
-
STAR:
|
|
595
|
+
NO_DOT_SLASH: Re,
|
|
596
|
+
NO_DOTS_SLASH: ge,
|
|
597
|
+
QMARK: K,
|
|
598
|
+
QMARK_NO_DOT: me,
|
|
599
|
+
STAR: xe,
|
|
593
600
|
START_ANCHOR: ne
|
|
594
|
-
} = W, J = (b) => `(${x}(?:(?!${ne}${b.dot ? j :
|
|
595
|
-
let F = f.bash === !0 ? J(f) :
|
|
601
|
+
} = W, J = (b) => `(${x}(?:(?!${ne}${b.dot ? j : U}).)*?)`, ce = f.dot ? "" : ye, $ = f.dot ? K : me;
|
|
602
|
+
let F = f.bash === !0 ? J(f) : xe;
|
|
596
603
|
f.capture && (F = `(${F})`), typeof f.noext == "boolean" && (f.noextglob = f.noext);
|
|
597
|
-
const
|
|
604
|
+
const p = {
|
|
598
605
|
input: y,
|
|
599
606
|
index: -1,
|
|
600
607
|
start: 0,
|
|
@@ -611,353 +618,354 @@ function Ar() {
|
|
|
611
618
|
globstar: !1,
|
|
612
619
|
tokens: g
|
|
613
620
|
};
|
|
614
|
-
y = t.removePrefix(y,
|
|
615
|
-
const
|
|
616
|
-
let
|
|
617
|
-
const
|
|
618
|
-
|
|
619
|
-
},
|
|
620
|
-
|
|
621
|
-
},
|
|
621
|
+
y = t.removePrefix(y, p), v = y.length;
|
|
622
|
+
const re = [], X = [], V = [];
|
|
623
|
+
let h = A, d;
|
|
624
|
+
const pe = () => p.index === v - 1, D = p.peek = (b = 1) => y[p.index + b], se = p.advance = () => y[++p.index] || "", ue = () => y.slice(p.index + 1), z = (b = "", Y = 0) => {
|
|
625
|
+
p.consumed += b, p.index += Y;
|
|
626
|
+
}, Fe = (b) => {
|
|
627
|
+
p.output += b.output != null ? b.output : b.value, z(b.value);
|
|
628
|
+
}, We = () => {
|
|
622
629
|
let b = 1;
|
|
623
630
|
for (; D() === "!" && (D(2) !== "(" || D(3) === "?"); )
|
|
624
|
-
|
|
625
|
-
return b % 2 === 0 ? !1 : (
|
|
626
|
-
},
|
|
627
|
-
|
|
628
|
-
},
|
|
629
|
-
|
|
631
|
+
se(), p.start++, b++;
|
|
632
|
+
return b % 2 === 0 ? !1 : (p.negated = !0, p.start++, !0);
|
|
633
|
+
}, _e = (b) => {
|
|
634
|
+
p[b]++, V.push(b);
|
|
635
|
+
}, Ce = (b) => {
|
|
636
|
+
p[b]--, V.pop();
|
|
630
637
|
}, O = (b) => {
|
|
631
|
-
if (
|
|
632
|
-
const Y =
|
|
633
|
-
b.type !== "slash" && b.type !== "paren" && !Y && !T && (
|
|
638
|
+
if (h.type === "globstar") {
|
|
639
|
+
const Y = p.braces > 0 && (b.type === "comma" || b.type === "brace"), T = b.extglob === !0 || re.length && (b.type === "pipe" || b.type === "paren");
|
|
640
|
+
b.type !== "slash" && b.type !== "paren" && !Y && !T && (p.output = p.output.slice(0, -h.output.length), h.type = "star", h.value = "*", h.output = F, p.output += h.output);
|
|
634
641
|
}
|
|
635
|
-
if (
|
|
636
|
-
|
|
642
|
+
if (re.length && b.type !== "paren" && (re[re.length - 1].inner += b.value), (b.value || b.output) && Fe(b), h && h.type === "text" && b.type === "text") {
|
|
643
|
+
h.output = (h.output || h.value) + b.value, h.value += b.value;
|
|
637
644
|
return;
|
|
638
645
|
}
|
|
639
|
-
b.prev =
|
|
640
|
-
},
|
|
646
|
+
b.prev = h, g.push(b), h = b;
|
|
647
|
+
}, nt = (b, Y) => {
|
|
641
648
|
const T = { ...L[Y], conditions: 1, inner: "" };
|
|
642
|
-
T.prev =
|
|
649
|
+
T.prev = h, T.parens = p.parens, T.output = p.output, T.startIndex = p.index, T.tokensIndex = g.length;
|
|
643
650
|
const P = (f.capture ? "(" : "") + T.open;
|
|
644
|
-
|
|
645
|
-
},
|
|
646
|
-
const Y = y.slice(b.startIndex,
|
|
651
|
+
_e("parens"), O({ type: b, value: Y, output: p.output ? "" : he }), O({ type: "paren", extglob: !0, value: se(), output: P }), re.push(T);
|
|
652
|
+
}, hr = (b) => {
|
|
653
|
+
const Y = y.slice(b.startIndex, p.index + 1), T = y.slice(b.startIndex + 2, p.index), P = N(T, f);
|
|
647
654
|
if ((b.type === "plus" || b.type === "star") && P.risky) {
|
|
648
|
-
const
|
|
649
|
-
|
|
650
|
-
for (let
|
|
651
|
-
g[
|
|
652
|
-
|
|
655
|
+
const q = P.safeOutput ? (b.output ? "" : he) + (f.capture ? `(${P.safeOutput})` : P.safeOutput) : void 0, Ae = g[b.tokensIndex];
|
|
656
|
+
Ae.type = "text", Ae.value = Y, Ae.output = q || t.escapeRegex(Y);
|
|
657
|
+
for (let we = b.tokensIndex + 1; we < g.length; we++)
|
|
658
|
+
g[we].value = "", g[we].output = "", delete g[we].suffix;
|
|
659
|
+
p.output = b.output + Ae.output, p.backtrack = !0, O({ type: "paren", extglob: !0, value: d, output: "" }), Ce("parens");
|
|
653
660
|
return;
|
|
654
661
|
}
|
|
655
662
|
let G = b.close + (f.capture ? ")" : ""), Q;
|
|
656
663
|
if (b.type === "negate") {
|
|
657
|
-
let
|
|
658
|
-
if (b.inner && b.inner.length > 1 && b.inner.includes("/") && (
|
|
659
|
-
const
|
|
660
|
-
G = b.close = `)${
|
|
664
|
+
let q = F;
|
|
665
|
+
if (b.inner && b.inner.length > 1 && b.inner.includes("/") && (q = J(f)), (q !== F || pe() || /^\)+$/.test(ue())) && (G = b.close = `)$))${q}`), b.inner.includes("*") && (Q = ue()) && /^\.[^\\/.]+$/.test(Q)) {
|
|
666
|
+
const Ae = k(Q, { ...R, fastpaths: !1 }).output;
|
|
667
|
+
G = b.close = `)${Ae})${q})`;
|
|
661
668
|
}
|
|
662
|
-
b.prev.type === "bos" && (
|
|
669
|
+
b.prev.type === "bos" && (p.negatedExtglob = !0);
|
|
663
670
|
}
|
|
664
|
-
O({ type: "paren", extglob: !0, value:
|
|
671
|
+
O({ type: "paren", extglob: !0, value: d, output: G }), Ce("parens");
|
|
665
672
|
};
|
|
666
673
|
if (f.fastpaths !== !1 && !/(^[*!]|[/()[\]{}"])/.test(y)) {
|
|
667
|
-
let b = !1, Y = y.replace(o, (T, P, G, Q,
|
|
668
|
-
return b === !0 && (f.unescape === !0 ? Y = Y.replace(/\\/g, "") : Y = Y.replace(/\\+/g, (T) => T.length % 2 === 0 ? "\\\\" : T ? "\\" : "")), Y === y && f.contains === !0 ? (
|
|
674
|
+
let b = !1, Y = y.replace(o, (T, P, G, Q, q, Ae) => Q === "\\" ? (b = !0, T) : Q === "?" ? P ? P + Q + (q ? K.repeat(q.length) : "") : Ae === 0 ? $ + (q ? K.repeat(q.length) : "") : K.repeat(G.length) : Q === "." ? U.repeat(G.length) : Q === "*" ? P ? P + Q + (q ? F : "") : F : P ? T : `\\${T}`);
|
|
675
|
+
return b === !0 && (f.unescape === !0 ? Y = Y.replace(/\\/g, "") : Y = Y.replace(/\\+/g, (T) => T.length % 2 === 0 ? "\\\\" : T ? "\\" : "")), Y === y && f.contains === !0 ? (p.output = y, p) : (p.output = t.wrapOutput(Y, p, R), p);
|
|
669
676
|
}
|
|
670
|
-
for (; !
|
|
671
|
-
if (
|
|
677
|
+
for (; !pe(); ) {
|
|
678
|
+
if (d = se(), d === "\0")
|
|
672
679
|
continue;
|
|
673
|
-
if (
|
|
680
|
+
if (d === "\\") {
|
|
674
681
|
const T = D();
|
|
675
682
|
if (T === "/" && f.bash !== !0 || T === "." || T === ";")
|
|
676
683
|
continue;
|
|
677
684
|
if (!T) {
|
|
678
|
-
|
|
685
|
+
d += "\\", O({ type: "text", value: d });
|
|
679
686
|
continue;
|
|
680
687
|
}
|
|
681
|
-
const P = /^\\+/.exec(
|
|
688
|
+
const P = /^\\+/.exec(ue());
|
|
682
689
|
let G = 0;
|
|
683
|
-
if (P && P[0].length > 2 && (G = P[0].length,
|
|
684
|
-
O({ type: "text", value:
|
|
690
|
+
if (P && P[0].length > 2 && (G = P[0].length, p.index += G, G % 2 !== 0 && (d += "\\")), f.unescape === !0 ? d = se() : d += se(), p.brackets === 0) {
|
|
691
|
+
O({ type: "text", value: d });
|
|
685
692
|
continue;
|
|
686
693
|
}
|
|
687
694
|
}
|
|
688
|
-
if (
|
|
689
|
-
if (f.posix !== !1 &&
|
|
690
|
-
const T =
|
|
691
|
-
if (T.includes("[") && (
|
|
692
|
-
const P =
|
|
693
|
-
if (
|
|
694
|
-
|
|
695
|
+
if (p.brackets > 0 && (d !== "]" || h.value === "[" || h.value === "[^")) {
|
|
696
|
+
if (f.posix !== !1 && d === ":") {
|
|
697
|
+
const T = h.value.slice(1);
|
|
698
|
+
if (T.includes("[") && (h.posix = !0, T.includes(":"))) {
|
|
699
|
+
const P = h.value.lastIndexOf("["), G = h.value.slice(0, P), Q = h.value.slice(P + 2), q = r[Q];
|
|
700
|
+
if (q) {
|
|
701
|
+
h.value = G + q, p.backtrack = !0, se(), !A.output && g.indexOf(h) === 1 && (A.output = he);
|
|
695
702
|
continue;
|
|
696
703
|
}
|
|
697
704
|
}
|
|
698
705
|
}
|
|
699
|
-
(
|
|
706
|
+
(d === "[" && D() !== ":" || d === "-" && D() === "]") && (d = `\\${d}`), d === "]" && (h.value === "[" || h.value === "[^") && (d = `\\${d}`), f.posix === !0 && d === "!" && h.value === "[" && (d = "^"), h.value += d, Fe({ value: d });
|
|
700
707
|
continue;
|
|
701
708
|
}
|
|
702
|
-
if (
|
|
703
|
-
|
|
709
|
+
if (p.quotes === 1 && d !== '"') {
|
|
710
|
+
d = t.escapeRegex(d), h.value += d, Fe({ value: d });
|
|
704
711
|
continue;
|
|
705
712
|
}
|
|
706
|
-
if (
|
|
707
|
-
|
|
713
|
+
if (d === '"') {
|
|
714
|
+
p.quotes = p.quotes === 1 ? 0 : 1, f.keepQuotes === !0 && O({ type: "text", value: d });
|
|
708
715
|
continue;
|
|
709
716
|
}
|
|
710
|
-
if (
|
|
711
|
-
|
|
717
|
+
if (d === "(") {
|
|
718
|
+
_e("parens"), O({ type: "paren", value: d });
|
|
712
719
|
continue;
|
|
713
720
|
}
|
|
714
|
-
if (
|
|
715
|
-
if (
|
|
721
|
+
if (d === ")") {
|
|
722
|
+
if (p.parens === 0 && f.strictBrackets === !0)
|
|
716
723
|
throw new SyntaxError(l("opening", "("));
|
|
717
|
-
const T =
|
|
718
|
-
if (T &&
|
|
719
|
-
|
|
724
|
+
const T = re[re.length - 1];
|
|
725
|
+
if (T && p.parens === T.parens + 1) {
|
|
726
|
+
hr(re.pop());
|
|
720
727
|
continue;
|
|
721
728
|
}
|
|
722
|
-
O({ type: "paren", value:
|
|
729
|
+
O({ type: "paren", value: d, output: p.parens ? ")" : "\\)" }), Ce("parens");
|
|
723
730
|
continue;
|
|
724
731
|
}
|
|
725
|
-
if (
|
|
726
|
-
if (f.nobracket === !0 || !
|
|
732
|
+
if (d === "[") {
|
|
733
|
+
if (f.nobracket === !0 || !ue().includes("]")) {
|
|
727
734
|
if (f.nobracket !== !0 && f.strictBrackets === !0)
|
|
728
735
|
throw new SyntaxError(l("closing", "]"));
|
|
729
|
-
|
|
736
|
+
d = `\\${d}`;
|
|
730
737
|
} else
|
|
731
|
-
|
|
732
|
-
O({ type: "bracket", value:
|
|
738
|
+
_e("brackets");
|
|
739
|
+
O({ type: "bracket", value: d });
|
|
733
740
|
continue;
|
|
734
741
|
}
|
|
735
|
-
if (
|
|
736
|
-
if (f.nobracket === !0 ||
|
|
737
|
-
O({ type: "text", value:
|
|
742
|
+
if (d === "]") {
|
|
743
|
+
if (f.nobracket === !0 || h && h.type === "bracket" && h.value.length === 1) {
|
|
744
|
+
O({ type: "text", value: d, output: `\\${d}` });
|
|
738
745
|
continue;
|
|
739
746
|
}
|
|
740
|
-
if (
|
|
747
|
+
if (p.brackets === 0) {
|
|
741
748
|
if (f.strictBrackets === !0)
|
|
742
749
|
throw new SyntaxError(l("opening", "["));
|
|
743
|
-
O({ type: "text", value:
|
|
750
|
+
O({ type: "text", value: d, output: `\\${d}` });
|
|
744
751
|
continue;
|
|
745
752
|
}
|
|
746
|
-
|
|
747
|
-
const T =
|
|
748
|
-
if (
|
|
753
|
+
Ce("brackets");
|
|
754
|
+
const T = h.value.slice(1);
|
|
755
|
+
if (h.posix !== !0 && T[0] === "^" && !T.includes("/") && (d = `/${d}`), h.value += d, Fe({ value: d }), f.literalBrackets === !1 || t.hasRegexChars(T))
|
|
749
756
|
continue;
|
|
750
|
-
const P = t.escapeRegex(
|
|
751
|
-
if (
|
|
752
|
-
|
|
757
|
+
const P = t.escapeRegex(h.value);
|
|
758
|
+
if (p.output = p.output.slice(0, -h.value.length), f.literalBrackets === !0) {
|
|
759
|
+
p.output += P, h.value = P;
|
|
753
760
|
continue;
|
|
754
761
|
}
|
|
755
|
-
|
|
762
|
+
h.value = `(${x}${P}|${h.value})`, p.output += h.value;
|
|
756
763
|
continue;
|
|
757
764
|
}
|
|
758
|
-
if (
|
|
759
|
-
|
|
765
|
+
if (d === "{" && f.nobrace !== !0) {
|
|
766
|
+
_e("braces");
|
|
760
767
|
const T = {
|
|
761
768
|
type: "brace",
|
|
762
|
-
value:
|
|
769
|
+
value: d,
|
|
763
770
|
output: "(",
|
|
764
|
-
outputIndex:
|
|
765
|
-
tokensIndex:
|
|
771
|
+
outputIndex: p.output.length,
|
|
772
|
+
tokensIndex: p.tokens.length
|
|
766
773
|
};
|
|
767
|
-
|
|
774
|
+
X.push(T), O(T);
|
|
768
775
|
continue;
|
|
769
776
|
}
|
|
770
|
-
if (
|
|
771
|
-
const T =
|
|
777
|
+
if (d === "}") {
|
|
778
|
+
const T = X[X.length - 1];
|
|
772
779
|
if (f.nobrace === !0 || !T) {
|
|
773
|
-
O({ type: "text", value:
|
|
780
|
+
O({ type: "text", value: d, output: d });
|
|
774
781
|
continue;
|
|
775
782
|
}
|
|
776
783
|
let P = ")";
|
|
777
784
|
if (T.dots === !0) {
|
|
778
785
|
const G = g.slice(), Q = [];
|
|
779
|
-
for (let
|
|
780
|
-
G[
|
|
781
|
-
P = s(Q, f),
|
|
786
|
+
for (let q = G.length - 1; q >= 0 && (g.pop(), G[q].type !== "brace"); q--)
|
|
787
|
+
G[q].type !== "dots" && Q.unshift(G[q].value);
|
|
788
|
+
P = s(Q, f), p.backtrack = !0;
|
|
782
789
|
}
|
|
783
790
|
if (T.comma !== !0 && T.dots !== !0) {
|
|
784
|
-
const G =
|
|
785
|
-
T.value = T.output = "\\{",
|
|
786
|
-
for (const
|
|
787
|
-
|
|
791
|
+
const G = p.output.slice(0, T.outputIndex), Q = p.tokens.slice(T.tokensIndex);
|
|
792
|
+
T.value = T.output = "\\{", d = P = "\\}", p.output = G;
|
|
793
|
+
for (const q of Q)
|
|
794
|
+
p.output += q.output || q.value;
|
|
788
795
|
}
|
|
789
|
-
O({ type: "brace", value:
|
|
796
|
+
O({ type: "brace", value: d, output: P }), Ce("braces"), X.pop();
|
|
790
797
|
continue;
|
|
791
798
|
}
|
|
792
|
-
if (
|
|
793
|
-
|
|
799
|
+
if (d === "|") {
|
|
800
|
+
re.length > 0 && re[re.length - 1].conditions++, O({ type: "text", value: d });
|
|
794
801
|
continue;
|
|
795
802
|
}
|
|
796
|
-
if (
|
|
797
|
-
let T =
|
|
798
|
-
const P =
|
|
799
|
-
P &&
|
|
803
|
+
if (d === ",") {
|
|
804
|
+
let T = d;
|
|
805
|
+
const P = X[X.length - 1];
|
|
806
|
+
P && V[V.length - 1] === "braces" && (P.comma = !0, T = "|"), O({ type: "comma", value: d, output: T });
|
|
800
807
|
continue;
|
|
801
808
|
}
|
|
802
|
-
if (
|
|
803
|
-
if (
|
|
804
|
-
|
|
809
|
+
if (d === "/") {
|
|
810
|
+
if (h.type === "dot" && p.index === p.start + 1) {
|
|
811
|
+
p.start = p.index + 1, p.consumed = "", p.output = "", g.pop(), h = A;
|
|
805
812
|
continue;
|
|
806
813
|
}
|
|
807
|
-
O({ type: "slash", value:
|
|
814
|
+
O({ type: "slash", value: d, output: le });
|
|
808
815
|
continue;
|
|
809
816
|
}
|
|
810
|
-
if (
|
|
811
|
-
if (
|
|
812
|
-
|
|
813
|
-
const T =
|
|
814
|
-
|
|
817
|
+
if (d === ".") {
|
|
818
|
+
if (p.braces > 0 && h.type === "dot") {
|
|
819
|
+
h.value === "." && (h.output = U);
|
|
820
|
+
const T = X[X.length - 1];
|
|
821
|
+
h.type = "dots", h.output += d, h.value += d, T.dots = !0;
|
|
815
822
|
continue;
|
|
816
823
|
}
|
|
817
|
-
if (
|
|
818
|
-
O({ type: "text", value:
|
|
824
|
+
if (p.braces + p.parens === 0 && h.type !== "bos" && h.type !== "slash") {
|
|
825
|
+
O({ type: "text", value: d, output: U });
|
|
819
826
|
continue;
|
|
820
827
|
}
|
|
821
|
-
O({ type: "dot", value:
|
|
828
|
+
O({ type: "dot", value: d, output: U });
|
|
822
829
|
continue;
|
|
823
830
|
}
|
|
824
|
-
if (
|
|
825
|
-
if (!(
|
|
826
|
-
|
|
831
|
+
if (d === "?") {
|
|
832
|
+
if (!(h && h.value === "(") && f.noextglob !== !0 && D() === "(" && D(2) !== "?") {
|
|
833
|
+
nt("qmark", d);
|
|
827
834
|
continue;
|
|
828
835
|
}
|
|
829
|
-
if (
|
|
836
|
+
if (h && h.type === "paren") {
|
|
830
837
|
const P = D();
|
|
831
|
-
let G =
|
|
832
|
-
(
|
|
838
|
+
let G = d;
|
|
839
|
+
(h.value === "(" && !/[!=<:]/.test(P) || P === "<" && !/<([!=]|\w+>)/.test(ue())) && (G = `\\${d}`), O({ type: "text", value: d, output: G });
|
|
833
840
|
continue;
|
|
834
841
|
}
|
|
835
|
-
if (f.dot !== !0 && (
|
|
836
|
-
O({ type: "qmark", value:
|
|
842
|
+
if (f.dot !== !0 && (h.type === "slash" || h.type === "bos")) {
|
|
843
|
+
O({ type: "qmark", value: d, output: me });
|
|
837
844
|
continue;
|
|
838
845
|
}
|
|
839
|
-
O({ type: "qmark", value:
|
|
846
|
+
O({ type: "qmark", value: d, output: K });
|
|
840
847
|
continue;
|
|
841
848
|
}
|
|
842
|
-
if (
|
|
849
|
+
if (d === "!") {
|
|
843
850
|
if (f.noextglob !== !0 && D() === "(" && (D(2) !== "?" || !/[!=<:]/.test(D(3)))) {
|
|
844
|
-
|
|
851
|
+
nt("negate", d);
|
|
845
852
|
continue;
|
|
846
853
|
}
|
|
847
|
-
if (f.nonegate !== !0 &&
|
|
848
|
-
|
|
854
|
+
if (f.nonegate !== !0 && p.index === 0) {
|
|
855
|
+
We();
|
|
849
856
|
continue;
|
|
850
857
|
}
|
|
851
858
|
}
|
|
852
|
-
if (
|
|
859
|
+
if (d === "+") {
|
|
853
860
|
if (f.noextglob !== !0 && D() === "(" && D(2) !== "?") {
|
|
854
|
-
|
|
861
|
+
nt("plus", d);
|
|
855
862
|
continue;
|
|
856
863
|
}
|
|
857
|
-
if (
|
|
858
|
-
O({ type: "plus", value:
|
|
864
|
+
if (h && h.value === "(" || f.regex === !1) {
|
|
865
|
+
O({ type: "plus", value: d, output: fe });
|
|
859
866
|
continue;
|
|
860
867
|
}
|
|
861
|
-
if (
|
|
862
|
-
O({ type: "plus", value:
|
|
868
|
+
if (h && (h.type === "bracket" || h.type === "paren" || h.type === "brace") || p.parens > 0) {
|
|
869
|
+
O({ type: "plus", value: d });
|
|
863
870
|
continue;
|
|
864
871
|
}
|
|
865
|
-
O({ type: "plus", value:
|
|
872
|
+
O({ type: "plus", value: fe });
|
|
866
873
|
continue;
|
|
867
874
|
}
|
|
868
|
-
if (
|
|
875
|
+
if (d === "@") {
|
|
869
876
|
if (f.noextglob !== !0 && D() === "(" && D(2) !== "?") {
|
|
870
|
-
O({ type: "at", extglob: !0, value:
|
|
877
|
+
O({ type: "at", extglob: !0, value: d, output: "" });
|
|
871
878
|
continue;
|
|
872
879
|
}
|
|
873
|
-
O({ type: "text", value:
|
|
880
|
+
O({ type: "text", value: d });
|
|
874
881
|
continue;
|
|
875
882
|
}
|
|
876
|
-
if (
|
|
877
|
-
(
|
|
878
|
-
const T = i.exec(
|
|
879
|
-
T && (
|
|
883
|
+
if (d !== "*") {
|
|
884
|
+
(d === "$" || d === "^") && (d = `\\${d}`);
|
|
885
|
+
const T = i.exec(ue());
|
|
886
|
+
T && (d += T[0], p.index += T[0].length), O({ type: "text", value: d });
|
|
880
887
|
continue;
|
|
881
888
|
}
|
|
882
|
-
if (
|
|
883
|
-
|
|
889
|
+
if (h && (h.type === "globstar" || h.star === !0)) {
|
|
890
|
+
h.type = "star", h.star = !0, h.value += d, h.output = F, p.backtrack = !0, p.globstar = !0, z(d);
|
|
884
891
|
continue;
|
|
885
892
|
}
|
|
886
|
-
let b =
|
|
893
|
+
let b = ue();
|
|
887
894
|
if (f.noextglob !== !0 && /^\([^?]/.test(b)) {
|
|
888
|
-
|
|
895
|
+
nt("star", d);
|
|
889
896
|
continue;
|
|
890
897
|
}
|
|
891
|
-
if (
|
|
898
|
+
if (h.type === "star") {
|
|
892
899
|
if (f.noglobstar === !0) {
|
|
893
|
-
|
|
900
|
+
z(d);
|
|
894
901
|
continue;
|
|
895
902
|
}
|
|
896
|
-
const T =
|
|
903
|
+
const T = h.prev, P = T.prev, G = T.type === "slash" || T.type === "bos", Q = P && (P.type === "star" || P.type === "globstar");
|
|
897
904
|
if (f.bash === !0 && (!G || b[0] && b[0] !== "/")) {
|
|
898
|
-
O({ type: "star", value:
|
|
905
|
+
O({ type: "star", value: d, output: "" });
|
|
899
906
|
continue;
|
|
900
907
|
}
|
|
901
|
-
const
|
|
902
|
-
if (!G && T.type !== "paren" && !
|
|
903
|
-
O({ type: "star", value:
|
|
908
|
+
const q = p.braces > 0 && (T.type === "comma" || T.type === "brace"), Ae = re.length && (T.type === "pipe" || T.type === "paren");
|
|
909
|
+
if (!G && T.type !== "paren" && !q && !Ae) {
|
|
910
|
+
O({ type: "star", value: d, output: "" });
|
|
904
911
|
continue;
|
|
905
912
|
}
|
|
906
913
|
for (; b.slice(0, 3) === "/**"; ) {
|
|
907
|
-
const
|
|
908
|
-
if (
|
|
914
|
+
const He = y[p.index + 4];
|
|
915
|
+
if (He && He !== "/")
|
|
909
916
|
break;
|
|
910
|
-
b = b.slice(3),
|
|
917
|
+
b = b.slice(3), z("/**", 3);
|
|
911
918
|
}
|
|
912
|
-
|
|
913
|
-
|
|
919
|
+
const we = pe() || p.parens > 0 && b === ")".repeat(p.parens) && !re.some((He) => He.type === "negate");
|
|
920
|
+
if (T.type === "bos" && pe()) {
|
|
921
|
+
h.type = "globstar", h.value += d, h.output = J(f), p.output = h.output, p.globstar = !0, z(d);
|
|
914
922
|
continue;
|
|
915
923
|
}
|
|
916
|
-
if (T.type === "slash" && T.prev.type !== "bos" && !Q &&
|
|
917
|
-
|
|
924
|
+
if (T.type === "slash" && T.prev.type !== "bos" && !Q && we) {
|
|
925
|
+
p.output = p.output.slice(0, -(T.output + h.output).length), T.output = `(?:${T.output}`, h.type = "globstar", h.output = J(f) + (f.strictSlashes ? ")" : "|$)"), h.value += d, p.globstar = !0, p.output += T.output + h.output, z(d);
|
|
918
926
|
continue;
|
|
919
927
|
}
|
|
920
928
|
if (T.type === "slash" && T.prev.type !== "bos" && b[0] === "/") {
|
|
921
|
-
const
|
|
922
|
-
|
|
929
|
+
const He = b[1] !== void 0 ? "|$" : "";
|
|
930
|
+
p.output = p.output.slice(0, -(T.output + h.output).length), T.output = `(?:${T.output}`, h.type = "globstar", h.output = `${J(f)}${le}|${le}${He})`, h.value += d, p.output += T.output + h.output, p.globstar = !0, z(d + se()), O({ type: "slash", value: "/", output: "" });
|
|
923
931
|
continue;
|
|
924
932
|
}
|
|
925
933
|
if (T.type === "bos" && b[0] === "/") {
|
|
926
|
-
|
|
934
|
+
h.type = "globstar", h.value += d, h.output = `(?:^|${le}|${J(f)}${le})`, p.output = h.output, p.globstar = !0, z(d + se()), O({ type: "slash", value: "/", output: "" });
|
|
927
935
|
continue;
|
|
928
936
|
}
|
|
929
|
-
|
|
937
|
+
p.output = p.output.slice(0, -h.output.length), h.type = "globstar", h.output = J(f), h.value += d, p.output += h.output, p.globstar = !0, z(d);
|
|
930
938
|
continue;
|
|
931
939
|
}
|
|
932
|
-
const Y = { type: "star", value:
|
|
940
|
+
const Y = { type: "star", value: d, output: F };
|
|
933
941
|
if (f.bash === !0) {
|
|
934
|
-
Y.output = ".*?", (
|
|
942
|
+
Y.output = ".*?", (h.type === "bos" || h.type === "slash") && (Y.output = ce + Y.output), O(Y);
|
|
935
943
|
continue;
|
|
936
944
|
}
|
|
937
|
-
if (
|
|
938
|
-
Y.output =
|
|
945
|
+
if (h && (h.type === "bracket" || h.type === "paren") && f.regex === !0) {
|
|
946
|
+
Y.output = d, O(Y);
|
|
939
947
|
continue;
|
|
940
948
|
}
|
|
941
|
-
(
|
|
949
|
+
(p.index === p.start || h.type === "slash" || h.type === "dot") && (h.type === "dot" ? (p.output += Re, h.output += Re) : f.dot === !0 ? (p.output += ge, h.output += ge) : (p.output += ce, h.output += ce), D() !== "*" && (p.output += he, h.output += he)), O(Y);
|
|
942
950
|
}
|
|
943
|
-
for (;
|
|
951
|
+
for (; p.brackets > 0; ) {
|
|
944
952
|
if (f.strictBrackets === !0) throw new SyntaxError(l("closing", "]"));
|
|
945
|
-
|
|
953
|
+
p.output = t.escapeLast(p.output, "["), Ce("brackets");
|
|
946
954
|
}
|
|
947
|
-
for (;
|
|
955
|
+
for (; p.parens > 0; ) {
|
|
948
956
|
if (f.strictBrackets === !0) throw new SyntaxError(l("closing", ")"));
|
|
949
|
-
|
|
957
|
+
p.output = t.escapeLast(p.output, "("), Ce("parens");
|
|
950
958
|
}
|
|
951
|
-
for (;
|
|
959
|
+
for (; p.braces > 0; ) {
|
|
952
960
|
if (f.strictBrackets === !0) throw new SyntaxError(l("closing", "}"));
|
|
953
|
-
|
|
961
|
+
p.output = t.escapeLast(p.output, "{"), Ce("braces");
|
|
954
962
|
}
|
|
955
|
-
if (f.strictSlashes !== !0 && (
|
|
956
|
-
|
|
957
|
-
for (const b of
|
|
958
|
-
|
|
963
|
+
if (f.strictSlashes !== !0 && (h.type === "star" || h.type === "bracket") && O({ type: "maybe_slash", value: "", output: `${le}?` }), p.backtrack === !0) {
|
|
964
|
+
p.output = "";
|
|
965
|
+
for (const b of p.tokens)
|
|
966
|
+
p.output += b.output != null ? b.output : b.value, b.suffix && (p.output += b.suffix);
|
|
959
967
|
}
|
|
960
|
-
return
|
|
968
|
+
return p;
|
|
961
969
|
};
|
|
962
970
|
return k.fastpaths = (y, R) => {
|
|
963
971
|
const f = { ...R }, I = typeof f.maxLength == "number" ? Math.min(n, f.maxLength) : n, v = y.length;
|
|
@@ -970,48 +978,48 @@ function Ar() {
|
|
|
970
978
|
ONE_CHAR: x,
|
|
971
979
|
DOTS_SLASH: W,
|
|
972
980
|
NO_DOT: L,
|
|
973
|
-
NO_DOTS:
|
|
974
|
-
NO_DOTS_SLASH:
|
|
975
|
-
STAR:
|
|
976
|
-
START_ANCHOR:
|
|
977
|
-
} = e.globChars(f.windows), j = f.dot ?
|
|
978
|
-
let
|
|
979
|
-
f.capture && (
|
|
980
|
-
const
|
|
981
|
-
switch (
|
|
981
|
+
NO_DOTS: U,
|
|
982
|
+
NO_DOTS_SLASH: fe,
|
|
983
|
+
STAR: le,
|
|
984
|
+
START_ANCHOR: he
|
|
985
|
+
} = e.globChars(f.windows), j = f.dot ? U : L, ye = f.dot ? fe : L, Re = f.capture ? "" : "?:", ge = { negated: !1, prefix: "" };
|
|
986
|
+
let K = f.bash === !0 ? ".*?" : le;
|
|
987
|
+
f.capture && (K = `(${K})`);
|
|
988
|
+
const me = (ce) => ce.noglobstar === !0 ? K : `(${Re}(?:(?!${he}${ce.dot ? W : A}).)*?)`, xe = (ce) => {
|
|
989
|
+
switch (ce) {
|
|
982
990
|
case "*":
|
|
983
|
-
return `${j}${x}${
|
|
991
|
+
return `${j}${x}${K}`;
|
|
984
992
|
case ".*":
|
|
985
|
-
return `${A}${x}${
|
|
993
|
+
return `${A}${x}${K}`;
|
|
986
994
|
case "*.*":
|
|
987
|
-
return `${j}${
|
|
995
|
+
return `${j}${K}${A}${x}${K}`;
|
|
988
996
|
case "*/*":
|
|
989
|
-
return `${j}${
|
|
997
|
+
return `${j}${K}${g}${x}${ye}${K}`;
|
|
990
998
|
case "**":
|
|
991
|
-
return j +
|
|
999
|
+
return j + me(f);
|
|
992
1000
|
case "**/*":
|
|
993
|
-
return `(?:${j}${
|
|
1001
|
+
return `(?:${j}${me(f)}${g})?${ye}${x}${K}`;
|
|
994
1002
|
case "**/*.*":
|
|
995
|
-
return `(?:${j}${
|
|
1003
|
+
return `(?:${j}${me(f)}${g})?${ye}${K}${A}${x}${K}`;
|
|
996
1004
|
case "**/.*":
|
|
997
|
-
return `(?:${j}${
|
|
1005
|
+
return `(?:${j}${me(f)}${g})?${A}${x}${K}`;
|
|
998
1006
|
default: {
|
|
999
|
-
const $ = /^(.*?)\.(\w+)$/.exec(
|
|
1007
|
+
const $ = /^(.*?)\.(\w+)$/.exec(ce);
|
|
1000
1008
|
if (!$) return;
|
|
1001
|
-
const F =
|
|
1009
|
+
const F = xe($[1]);
|
|
1002
1010
|
return F ? F + A + $[2] : void 0;
|
|
1003
1011
|
}
|
|
1004
1012
|
}
|
|
1005
|
-
}, ne = t.removePrefix(y,
|
|
1006
|
-
let J =
|
|
1013
|
+
}, ne = t.removePrefix(y, ge);
|
|
1014
|
+
let J = xe(ne);
|
|
1007
1015
|
return J && f.strictSlashes !== !0 && (J += `${g}?`), J;
|
|
1008
|
-
},
|
|
1016
|
+
}, xt = k, xt;
|
|
1009
1017
|
}
|
|
1010
|
-
var
|
|
1011
|
-
function
|
|
1012
|
-
if (
|
|
1013
|
-
|
|
1014
|
-
const e = /* @__PURE__ */
|
|
1018
|
+
var _t, mn;
|
|
1019
|
+
function Sr() {
|
|
1020
|
+
if (mn) return _t;
|
|
1021
|
+
mn = 1;
|
|
1022
|
+
const e = /* @__PURE__ */ Ar(), t = /* @__PURE__ */ yr(), n = /* @__PURE__ */ mt(), r = /* @__PURE__ */ gt(), i = (a) => a && typeof a == "object" && !Array.isArray(a), o = (a, s, l = !1) => {
|
|
1015
1023
|
if (Array.isArray(a)) {
|
|
1016
1024
|
const M = a.map((k) => o(k, s, l));
|
|
1017
1025
|
return (k) => {
|
|
@@ -1067,24 +1075,24 @@ function yr() {
|
|
|
1067
1075
|
if (s && s.debug === !0) throw l;
|
|
1068
1076
|
return /$^/;
|
|
1069
1077
|
}
|
|
1070
|
-
}, o.constants = r,
|
|
1078
|
+
}, o.constants = r, _t = o, _t;
|
|
1071
1079
|
}
|
|
1072
|
-
var
|
|
1073
|
-
function
|
|
1074
|
-
if (
|
|
1075
|
-
|
|
1076
|
-
const e = /* @__PURE__ */
|
|
1080
|
+
var wt, An;
|
|
1081
|
+
function Er() {
|
|
1082
|
+
if (An) return wt;
|
|
1083
|
+
An = 1;
|
|
1084
|
+
const e = /* @__PURE__ */ Sr(), t = /* @__PURE__ */ mt();
|
|
1077
1085
|
function n(r, i, o = !1) {
|
|
1078
1086
|
return i && (i.windows === null || i.windows === void 0) && (i = { ...i, windows: t.isWindows() }), e(r, i, o);
|
|
1079
1087
|
}
|
|
1080
|
-
return Object.assign(n, e),
|
|
1088
|
+
return Object.assign(n, e), wt = n, wt;
|
|
1081
1089
|
}
|
|
1082
|
-
var
|
|
1083
|
-
const
|
|
1084
|
-
async function
|
|
1090
|
+
var Cr = /* @__PURE__ */ Er();
|
|
1091
|
+
const Tr = /* @__PURE__ */ gr(Cr), br = typeof window < "u" || typeof process > "u" || process?.platform === "browser", vr = br ? {} : process.env || {};
|
|
1092
|
+
async function Rr(e, t) {
|
|
1085
1093
|
const n = {};
|
|
1086
1094
|
for (const i of t.headers)
|
|
1087
|
-
|
|
1095
|
+
xr(e, i.matches) && (n[i.name] = i.envVariable !== void 0 ? vr[i.envVariable] || "" : i.value);
|
|
1088
1096
|
const r = await (t.customFetch || fetch)(e, {
|
|
1089
1097
|
headers: n
|
|
1090
1098
|
});
|
|
@@ -1092,10 +1100,10 @@ async function vr(e, t) {
|
|
|
1092
1100
|
throw new Error(`Failed to load ${e}: ${r.status} ${r.statusText}`);
|
|
1093
1101
|
return { body: await r.text(), mimeType: r.headers.get("content-type") };
|
|
1094
1102
|
}
|
|
1095
|
-
function
|
|
1096
|
-
return t.match(/^https?:\/\//) || (e = e.replace(/^https?:\/\//, "")),
|
|
1103
|
+
function xr(e, t) {
|
|
1104
|
+
return t.match(/^https?:\/\//) || (e = e.replace(/^https?:\/\//, "")), Tr.isMatch(e, t);
|
|
1097
1105
|
}
|
|
1098
|
-
function
|
|
1106
|
+
function ma(e, t = {}) {
|
|
1099
1107
|
return {
|
|
1100
1108
|
name: `${e}List`,
|
|
1101
1109
|
properties: {},
|
|
@@ -1103,7 +1111,7 @@ function ga(e, t = {}) {
|
|
|
1103
1111
|
...t
|
|
1104
1112
|
};
|
|
1105
1113
|
}
|
|
1106
|
-
function
|
|
1114
|
+
function Aa(e, t = {}) {
|
|
1107
1115
|
return {
|
|
1108
1116
|
name: `${e}Map`,
|
|
1109
1117
|
properties: {},
|
|
@@ -1111,13 +1119,13 @@ function ma(e, t = {}) {
|
|
|
1111
1119
|
...t
|
|
1112
1120
|
};
|
|
1113
1121
|
}
|
|
1114
|
-
const
|
|
1122
|
+
const at = {
|
|
1115
1123
|
name: "SpecExtension",
|
|
1116
1124
|
properties: {},
|
|
1117
1125
|
// skip validation of additional properties for unknown extensions
|
|
1118
1126
|
additionalProperties: { resolvable: !0 }
|
|
1119
1127
|
};
|
|
1120
|
-
function
|
|
1128
|
+
function ya(e, t = {}) {
|
|
1121
1129
|
const n = {};
|
|
1122
1130
|
for (const o of Object.keys(e))
|
|
1123
1131
|
n[o] = {
|
|
@@ -1126,7 +1134,7 @@ function Aa(e, t = {}) {
|
|
|
1126
1134
|
};
|
|
1127
1135
|
for (const o of Object.values(n))
|
|
1128
1136
|
r(o);
|
|
1129
|
-
return n.SpecExtension =
|
|
1137
|
+
return n.SpecExtension = at, n;
|
|
1130
1138
|
function r(o) {
|
|
1131
1139
|
if (o.additionalProperties && (o.additionalProperties = i(o.additionalProperties)), o.items && (o.items = i(o.items)), o.properties) {
|
|
1132
1140
|
const a = {};
|
|
@@ -1143,44 +1151,44 @@ function Aa(e, t = {}) {
|
|
|
1143
1151
|
if (!n[o])
|
|
1144
1152
|
throw new Error(`Unknown type name found: ${o}`);
|
|
1145
1153
|
return n[o];
|
|
1146
|
-
} else return typeof o == "function" ? (a, s) => i(o(a, s)) :
|
|
1154
|
+
} else return typeof o == "function" ? (a, s) => i(o(a, s)) : st(o) ? (o = { ...o }, r(o), o) : o?.directResolveAs !== void 0 ? {
|
|
1147
1155
|
...o,
|
|
1148
1156
|
directResolveAs: i(o.directResolveAs) ?? void 0
|
|
1149
1157
|
} : o;
|
|
1150
1158
|
}
|
|
1151
1159
|
}
|
|
1152
|
-
function
|
|
1160
|
+
function st(e) {
|
|
1153
1161
|
return typeof e?.name == "string";
|
|
1154
1162
|
}
|
|
1155
|
-
function
|
|
1163
|
+
function Te(e, t) {
|
|
1156
1164
|
return e === "" && (e = "#/"), e[e.length - 1] === "/" ? e + t : e + "/" + t;
|
|
1157
1165
|
}
|
|
1158
|
-
function
|
|
1159
|
-
return
|
|
1160
|
-
}
|
|
1161
|
-
function xr(e) {
|
|
1162
|
-
return at(e) && Object.keys(e).length > 1;
|
|
1166
|
+
function lt(e) {
|
|
1167
|
+
return be(e) && typeof e.$ref == "string";
|
|
1163
1168
|
}
|
|
1164
1169
|
function _r(e) {
|
|
1165
|
-
return
|
|
1170
|
+
return lt(e) && Object.keys(e).length > 1;
|
|
1166
1171
|
}
|
|
1167
|
-
|
|
1172
|
+
function wr(e) {
|
|
1173
|
+
return be(e) && typeof e.externalValue == "string";
|
|
1174
|
+
}
|
|
1175
|
+
class ft {
|
|
1168
1176
|
source;
|
|
1169
1177
|
pointer;
|
|
1170
1178
|
constructor(t, n) {
|
|
1171
1179
|
this.source = t, this.pointer = n;
|
|
1172
1180
|
}
|
|
1173
1181
|
child(t) {
|
|
1174
|
-
return new
|
|
1182
|
+
return new ft(this.source, Te(this.pointer, (Array.isArray(t) ? t : [t]).map(Me).join("/")));
|
|
1175
1183
|
}
|
|
1176
1184
|
key() {
|
|
1177
|
-
return Object.assign(Object.create(
|
|
1185
|
+
return Object.assign(Object.create(ft.prototype), this, { reportOnKey: !0 });
|
|
1178
1186
|
}
|
|
1179
1187
|
get absolutePointer() {
|
|
1180
1188
|
return this.source.absoluteRef + (this.pointer === "#/" ? "" : this.pointer);
|
|
1181
1189
|
}
|
|
1182
1190
|
}
|
|
1183
|
-
function
|
|
1191
|
+
function Ir(e) {
|
|
1184
1192
|
const t = e.indexOf("~") === -1 ? e : e.replaceAll("~1", "/").replaceAll("~0", "~");
|
|
1185
1193
|
try {
|
|
1186
1194
|
return decodeURIComponent(t);
|
|
@@ -1188,50 +1196,50 @@ function wr(e) {
|
|
|
1188
1196
|
return t;
|
|
1189
1197
|
}
|
|
1190
1198
|
}
|
|
1191
|
-
function
|
|
1199
|
+
function Me(e) {
|
|
1192
1200
|
return typeof e == "number" || e.indexOf("/") === -1 && e.indexOf("~") === -1 ? e : e.replaceAll("~", "~0").replaceAll("/", "~1");
|
|
1193
1201
|
}
|
|
1194
|
-
function
|
|
1202
|
+
function Nr(e) {
|
|
1195
1203
|
const [t, n = ""] = e.split("#/");
|
|
1196
1204
|
return {
|
|
1197
1205
|
uri: (t.endsWith("#") ? t.slice(0, -1) : t) || null,
|
|
1198
|
-
pointer:
|
|
1206
|
+
pointer: $r(n)
|
|
1199
1207
|
};
|
|
1200
1208
|
}
|
|
1201
|
-
function
|
|
1202
|
-
return e.split("/").map(
|
|
1209
|
+
function $r(e) {
|
|
1210
|
+
return e.split("/").map(Ir).filter(mr);
|
|
1203
1211
|
}
|
|
1204
|
-
function
|
|
1212
|
+
function Sa(e) {
|
|
1205
1213
|
const t = e.split("/");
|
|
1206
1214
|
return t[t.length - 1];
|
|
1207
1215
|
}
|
|
1208
|
-
function
|
|
1216
|
+
function Ea(e) {
|
|
1209
1217
|
const t = e.split(/[\/\\]/);
|
|
1210
1218
|
return t[t.length - 1].replace(/\.[^.]+$/, "");
|
|
1211
1219
|
}
|
|
1212
1220
|
function Ne(e) {
|
|
1213
1221
|
return e.startsWith("http://") || e.startsWith("https://") || e.startsWith("file://") || e.startsWith("data:");
|
|
1214
1222
|
}
|
|
1215
|
-
function
|
|
1216
|
-
return
|
|
1223
|
+
function Ca(e) {
|
|
1224
|
+
return Qe.extname(e) ? Ne(e) ? e.substring(0, e.lastIndexOf("/")) : Qe.dirname(e) : e;
|
|
1217
1225
|
}
|
|
1218
|
-
function
|
|
1219
|
-
return Ne(e) ? new URL(t, e.endsWith("/") ? e : `${e}/`).href :
|
|
1226
|
+
function Ta(e, t) {
|
|
1227
|
+
return Ne(e) ? new URL(t, e.endsWith("/") ? e : `${e}/`).href : Qe.resolve(e, t);
|
|
1220
1228
|
}
|
|
1221
|
-
function
|
|
1229
|
+
function ba(e) {
|
|
1222
1230
|
return typeof e == "string" && (e.startsWith("#") || Ne(e) || e.startsWith("./") || e.startsWith("../") || e.indexOf("/") > -1 || /\.(ya?ml|json)$/i.test(e));
|
|
1223
1231
|
}
|
|
1224
|
-
function
|
|
1232
|
+
function kr(e) {
|
|
1225
1233
|
return /^#[A-Za-z][A-Za-z0-9\-_:.]*$/.test(e);
|
|
1226
1234
|
}
|
|
1227
|
-
function
|
|
1228
|
-
if (!
|
|
1235
|
+
function va(e, t, n) {
|
|
1236
|
+
if (!be(t.node) && n.parent) {
|
|
1229
1237
|
n.parent[n.key] = t.node;
|
|
1230
1238
|
return;
|
|
1231
1239
|
}
|
|
1232
|
-
delete e.$ref,
|
|
1240
|
+
delete e.$ref, be(t.node) && Object.assign(e, { ...t.node, ...e });
|
|
1233
1241
|
}
|
|
1234
|
-
var H = /* @__PURE__ */ Symbol("NOT_RESOLVED"),
|
|
1242
|
+
var H = /* @__PURE__ */ Symbol("NOT_RESOLVED"), Jt = /* @__PURE__ */ Symbol("MERGE_KEY");
|
|
1235
1243
|
function ee(e, t) {
|
|
1236
1244
|
return {
|
|
1237
1245
|
tagName: e,
|
|
@@ -1245,7 +1253,7 @@ function ee(e, t) {
|
|
|
1245
1253
|
representTagName: t.representTagName ?? null
|
|
1246
1254
|
};
|
|
1247
1255
|
}
|
|
1248
|
-
function
|
|
1256
|
+
function en(e, t) {
|
|
1249
1257
|
const n = t.finalize === void 0;
|
|
1250
1258
|
return {
|
|
1251
1259
|
tagName: e,
|
|
@@ -1261,7 +1269,7 @@ function Zt(e, t) {
|
|
|
1261
1269
|
representTagName: t.representTagName ?? null
|
|
1262
1270
|
};
|
|
1263
1271
|
}
|
|
1264
|
-
function
|
|
1272
|
+
function At(e, t) {
|
|
1265
1273
|
const n = t.finalize === void 0;
|
|
1266
1274
|
return {
|
|
1267
1275
|
tagName: e,
|
|
@@ -1280,16 +1288,16 @@ function gt(e, t) {
|
|
|
1280
1288
|
representTagName: t.representTagName ?? null
|
|
1281
1289
|
};
|
|
1282
1290
|
}
|
|
1283
|
-
var
|
|
1291
|
+
var Lr = ee("tag:yaml.org,2002:str", {
|
|
1284
1292
|
resolve: (e) => e,
|
|
1285
1293
|
identify: (e) => typeof e == "string"
|
|
1286
|
-
}),
|
|
1294
|
+
}), Or = [
|
|
1287
1295
|
"",
|
|
1288
1296
|
"~",
|
|
1289
1297
|
"null",
|
|
1290
1298
|
"Null",
|
|
1291
1299
|
"NULL"
|
|
1292
|
-
],
|
|
1300
|
+
], Pr = ee("tag:yaml.org,2002:null", {
|
|
1293
1301
|
implicit: !0,
|
|
1294
1302
|
implicitFirstChars: [
|
|
1295
1303
|
"",
|
|
@@ -1297,22 +1305,22 @@ var kr = ee("tag:yaml.org,2002:str", {
|
|
|
1297
1305
|
"n",
|
|
1298
1306
|
"N"
|
|
1299
1307
|
],
|
|
1300
|
-
resolve: (e) =>
|
|
1308
|
+
resolve: (e) => Or.indexOf(e) !== -1 ? null : H,
|
|
1301
1309
|
identify: (e) => e === null,
|
|
1302
1310
|
represent: () => "null"
|
|
1303
|
-
}),
|
|
1311
|
+
}), Fr = ee("tag:yaml.org,2002:null", {
|
|
1304
1312
|
implicit: !0,
|
|
1305
1313
|
implicitFirstChars: ["n"],
|
|
1306
1314
|
resolve: (e, t) => e === "null" || t && e === "" ? null : H,
|
|
1307
1315
|
identify: (e) => e === null,
|
|
1308
1316
|
represent: () => "null"
|
|
1309
|
-
}),
|
|
1317
|
+
}), Hr = [
|
|
1310
1318
|
"",
|
|
1311
1319
|
"~",
|
|
1312
1320
|
"null",
|
|
1313
1321
|
"Null",
|
|
1314
1322
|
"NULL"
|
|
1315
|
-
],
|
|
1323
|
+
], Mr = ee("tag:yaml.org,2002:null", {
|
|
1316
1324
|
implicit: !0,
|
|
1317
1325
|
implicitFirstChars: [
|
|
1318
1326
|
"",
|
|
@@ -1320,18 +1328,18 @@ var kr = ee("tag:yaml.org,2002:str", {
|
|
|
1320
1328
|
"n",
|
|
1321
1329
|
"N"
|
|
1322
1330
|
],
|
|
1323
|
-
resolve: (e) =>
|
|
1331
|
+
resolve: (e) => Hr.indexOf(e) !== -1 ? null : H,
|
|
1324
1332
|
identify: (e) => e === null,
|
|
1325
1333
|
represent: () => "null"
|
|
1326
|
-
}),
|
|
1334
|
+
}), Br = [
|
|
1327
1335
|
"true",
|
|
1328
1336
|
"True",
|
|
1329
1337
|
"TRUE"
|
|
1330
|
-
],
|
|
1338
|
+
], Dr = [
|
|
1331
1339
|
"false",
|
|
1332
1340
|
"False",
|
|
1333
1341
|
"FALSE"
|
|
1334
|
-
],
|
|
1342
|
+
], Ur = ee("tag:yaml.org,2002:bool", {
|
|
1335
1343
|
implicit: !0,
|
|
1336
1344
|
implicitFirstChars: [
|
|
1337
1345
|
"t",
|
|
@@ -1339,16 +1347,16 @@ var kr = ee("tag:yaml.org,2002:str", {
|
|
|
1339
1347
|
"f",
|
|
1340
1348
|
"F"
|
|
1341
1349
|
],
|
|
1342
|
-
resolve: (e) =>
|
|
1350
|
+
resolve: (e) => Br.indexOf(e) !== -1 ? !0 : Dr.indexOf(e) !== -1 ? !1 : H,
|
|
1343
1351
|
identify: (e) => Object.prototype.toString.call(e) === "[object Boolean]",
|
|
1344
1352
|
represent: (e) => e ? "true" : "false"
|
|
1345
|
-
}),
|
|
1353
|
+
}), Kr = ["true"], qr = ["false"], Gr = ee("tag:yaml.org,2002:bool", {
|
|
1346
1354
|
implicit: !0,
|
|
1347
1355
|
implicitFirstChars: ["t", "f"],
|
|
1348
|
-
resolve: (e) =>
|
|
1356
|
+
resolve: (e) => Kr.indexOf(e) !== -1 ? !0 : qr.indexOf(e) !== -1 ? !1 : H,
|
|
1349
1357
|
identify: (e) => Object.prototype.toString.call(e) === "[object Boolean]",
|
|
1350
1358
|
represent: (e) => e ? "true" : "false"
|
|
1351
|
-
}),
|
|
1359
|
+
}), Yr = [
|
|
1352
1360
|
"true",
|
|
1353
1361
|
"True",
|
|
1354
1362
|
"TRUE",
|
|
@@ -1360,7 +1368,7 @@ var kr = ee("tag:yaml.org,2002:str", {
|
|
|
1360
1368
|
"on",
|
|
1361
1369
|
"On",
|
|
1362
1370
|
"ON"
|
|
1363
|
-
],
|
|
1371
|
+
], Wr = [
|
|
1364
1372
|
"false",
|
|
1365
1373
|
"False",
|
|
1366
1374
|
"FALSE",
|
|
@@ -1372,7 +1380,7 @@ var kr = ee("tag:yaml.org,2002:str", {
|
|
|
1372
1380
|
"off",
|
|
1373
1381
|
"Off",
|
|
1374
1382
|
"OFF"
|
|
1375
|
-
],
|
|
1383
|
+
], jr = ee("tag:yaml.org,2002:bool", {
|
|
1376
1384
|
implicit: !0,
|
|
1377
1385
|
implicitFirstChars: [
|
|
1378
1386
|
"y",
|
|
@@ -1386,51 +1394,51 @@ var kr = ee("tag:yaml.org,2002:str", {
|
|
|
1386
1394
|
"o",
|
|
1387
1395
|
"O"
|
|
1388
1396
|
],
|
|
1389
|
-
resolve: (e) =>
|
|
1397
|
+
resolve: (e) => Yr.indexOf(e) !== -1 ? !0 : Wr.indexOf(e) !== -1 ? !1 : H,
|
|
1390
1398
|
identify: (e) => Object.prototype.toString.call(e) === "[object Boolean]",
|
|
1391
1399
|
represent: (e) => e ? "true" : "false"
|
|
1392
|
-
}),
|
|
1393
|
-
function
|
|
1400
|
+
}), Vr = /* @__PURE__ */ new RegExp("^(?:0o[0-7]+|0x[0-9a-fA-F]+|[-+]?[0-9]+)$"), Xr = /* @__PURE__ */ new RegExp("^(?:[-+]?0b[0-1]+|[-+]?0o[0-7]+|[-+]?0x[0-9a-fA-F]+|[-+]?[0-9]+)$");
|
|
1401
|
+
function zr(e) {
|
|
1394
1402
|
let t = e, n = 1;
|
|
1395
1403
|
return (t[0] === "-" || t[0] === "+") && (t[0] === "-" && (n = -1), t = t.slice(1)), t.startsWith("0b") ? n * parseInt(t.slice(2), 2) : t.startsWith("0o") ? n * parseInt(t.slice(2), 8) : t.startsWith("0x") ? n * parseInt(t.slice(2), 16) : n * parseInt(t, 10);
|
|
1396
1404
|
}
|
|
1397
|
-
function
|
|
1405
|
+
function Qr(e, t) {
|
|
1398
1406
|
if (t) {
|
|
1399
|
-
if (!
|
|
1400
|
-
} else if (!
|
|
1401
|
-
const n =
|
|
1407
|
+
if (!Xr.test(e)) return H;
|
|
1408
|
+
} else if (!Vr.test(e)) return H;
|
|
1409
|
+
const n = zr(e);
|
|
1402
1410
|
return Number.isFinite(n) ? n : H;
|
|
1403
1411
|
}
|
|
1404
|
-
var
|
|
1412
|
+
var Mn = ee("tag:yaml.org,2002:int", {
|
|
1405
1413
|
implicit: !0,
|
|
1406
1414
|
implicitFirstChars: [
|
|
1407
1415
|
"-",
|
|
1408
1416
|
"+",
|
|
1409
1417
|
..."0123456789"
|
|
1410
1418
|
],
|
|
1411
|
-
resolve:
|
|
1419
|
+
resolve: Qr,
|
|
1412
1420
|
identify: (e) => Number.isInteger(e) && !Object.is(e, -0) && e.toString(10).indexOf("e") < 0,
|
|
1413
1421
|
represent: (e) => e.toString(10)
|
|
1414
|
-
}),
|
|
1415
|
-
function
|
|
1422
|
+
}), Zr = /* @__PURE__ */ new RegExp("^-?(?:0|[1-9][0-9]*)$"), Jr = /* @__PURE__ */ new RegExp("^(?:[-+]?0b[0-1]+|[-+]?0o[0-7]+|[-+]?0x[0-9a-fA-F]+|[-+]?[0-9]+)$");
|
|
1423
|
+
function ei(e) {
|
|
1416
1424
|
let t = e, n = 1;
|
|
1417
1425
|
return (t[0] === "-" || t[0] === "+") && (t[0] === "-" && (n = -1), t = t.slice(1)), t.startsWith("0b") ? n * parseInt(t.slice(2), 2) : t.startsWith("0o") ? n * parseInt(t.slice(2), 8) : t.startsWith("0x") ? n * parseInt(t.slice(2), 16) : n * parseInt(t, 10);
|
|
1418
1426
|
}
|
|
1419
|
-
function
|
|
1427
|
+
function ti(e, t) {
|
|
1420
1428
|
if (t) {
|
|
1421
|
-
if (!
|
|
1422
|
-
} else if (!
|
|
1423
|
-
const n =
|
|
1429
|
+
if (!Jr.test(e)) return H;
|
|
1430
|
+
} else if (!Zr.test(e)) return H;
|
|
1431
|
+
const n = ei(e);
|
|
1424
1432
|
return Number.isFinite(n) ? n : H;
|
|
1425
1433
|
}
|
|
1426
|
-
var
|
|
1434
|
+
var ni = ee("tag:yaml.org,2002:int", {
|
|
1427
1435
|
implicit: !0,
|
|
1428
1436
|
implicitFirstChars: ["-", ..."0123456789"],
|
|
1429
|
-
resolve:
|
|
1437
|
+
resolve: ti,
|
|
1430
1438
|
identify: (e) => Number.isInteger(e) && !Object.is(e, -0) && e.toString(10).indexOf("e") < 0,
|
|
1431
1439
|
represent: (e) => e.toString(10)
|
|
1432
|
-
}),
|
|
1433
|
-
function
|
|
1440
|
+
}), ri = /* @__PURE__ */ new RegExp("^(?:[-+]?0b[0-1_]+|[-+]?0[0-7_]+|[-+]?0x[0-9a-fA-F_]+|[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+|[-+]?(?:0|[1-9][0-9_]*))$");
|
|
1441
|
+
function ii(e) {
|
|
1434
1442
|
let t = e.replace(/_/g, ""), n = 1;
|
|
1435
1443
|
if ((t[0] === "-" || t[0] === "+") && (t[0] === "-" && (n = -1), t = t.slice(1)), t.startsWith("0b")) return n * parseInt(t.slice(2), 2);
|
|
1436
1444
|
if (t.startsWith("0x")) return n * parseInt(t.slice(2), 16);
|
|
@@ -1441,32 +1449,32 @@ function ri(e) {
|
|
|
1441
1449
|
}
|
|
1442
1450
|
return t !== "0" && t[0] === "0" ? n * parseInt(t, 8) : n * parseInt(t, 10);
|
|
1443
1451
|
}
|
|
1444
|
-
function
|
|
1445
|
-
if (!
|
|
1446
|
-
const t =
|
|
1452
|
+
function oi(e) {
|
|
1453
|
+
if (!ri.test(e)) return H;
|
|
1454
|
+
const t = ii(e);
|
|
1447
1455
|
return Number.isFinite(t) ? t : H;
|
|
1448
1456
|
}
|
|
1449
|
-
var
|
|
1457
|
+
var Ft = ee("tag:yaml.org,2002:int", {
|
|
1450
1458
|
implicit: !0,
|
|
1451
1459
|
implicitFirstChars: [
|
|
1452
1460
|
"-",
|
|
1453
1461
|
"+",
|
|
1454
1462
|
..."0123456789"
|
|
1455
1463
|
],
|
|
1456
|
-
resolve:
|
|
1464
|
+
resolve: oi,
|
|
1457
1465
|
identify: (e) => Number.isInteger(e) && !Object.is(e, -0) && e.toString(10).indexOf("e") < 0,
|
|
1458
1466
|
represent: (e) => e.toString(10)
|
|
1459
|
-
}),
|
|
1460
|
-
function
|
|
1461
|
-
if (!
|
|
1467
|
+
}), ai = /* @__PURE__ */ new RegExp("^(?:[-+]?[0-9]+(?:\\.[0-9]*)?(?:[eE][-+]?[0-9]+)?|[-+]?\\.[0-9]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$"), si = /* @__PURE__ */ new RegExp("^(?:[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");
|
|
1468
|
+
function li(e) {
|
|
1469
|
+
if (!ai.test(e)) return H;
|
|
1462
1470
|
let t = e.toLowerCase();
|
|
1463
1471
|
const n = t[0] === "-" ? -1 : 1;
|
|
1464
1472
|
if ("+-".includes(t[0]) && (t = t.slice(1)), t === ".inf") return n === 1 ? Number.POSITIVE_INFINITY : Number.NEGATIVE_INFINITY;
|
|
1465
1473
|
if (t === ".nan") return NaN;
|
|
1466
1474
|
const r = n * parseFloat(t);
|
|
1467
|
-
return Number.isFinite(r) ||
|
|
1475
|
+
return Number.isFinite(r) || si.test(e) ? r : H;
|
|
1468
1476
|
}
|
|
1469
|
-
function
|
|
1477
|
+
function ci(e) {
|
|
1470
1478
|
if (isNaN(e)) return ".nan";
|
|
1471
1479
|
if (e === Number.POSITIVE_INFINITY) return ".inf";
|
|
1472
1480
|
if (e === Number.NEGATIVE_INFINITY) return "-.inf";
|
|
@@ -1474,7 +1482,7 @@ function li(e) {
|
|
|
1474
1482
|
const t = e.toString(10);
|
|
1475
1483
|
return /^[-+]?[0-9]+e/.test(t) ? t.replace("e", ".e") : t;
|
|
1476
1484
|
}
|
|
1477
|
-
var
|
|
1485
|
+
var Bn = ee("tag:yaml.org,2002:float", {
|
|
1478
1486
|
implicit: !0,
|
|
1479
1487
|
implicitFirstChars: [
|
|
1480
1488
|
"-",
|
|
@@ -1482,13 +1490,13 @@ var Hn = ee("tag:yaml.org,2002:float", {
|
|
|
1482
1490
|
".",
|
|
1483
1491
|
..."0123456789"
|
|
1484
1492
|
],
|
|
1485
|
-
resolve:
|
|
1493
|
+
resolve: li,
|
|
1486
1494
|
identify: (e) => typeof e == "number" && (!Number.isInteger(e) || Object.is(e, -0) || e.toString(10).indexOf("e") >= 0),
|
|
1487
|
-
represent:
|
|
1488
|
-
}),
|
|
1489
|
-
function
|
|
1495
|
+
represent: ci
|
|
1496
|
+
}), ui = /* @__PURE__ */ new RegExp("^-?(?:0|[1-9][0-9]*)(?:\\.[0-9]*)?(?:[eE][-+]?[0-9]+)?$"), fi = /* @__PURE__ */ new RegExp("^(?:[-+]?[0-9]+(?:\\.[0-9]*)?(?:[eE][-+]?[0-9]+)?|[-+]?\\.[0-9]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");
|
|
1497
|
+
function pi(e, t) {
|
|
1490
1498
|
if (t) {
|
|
1491
|
-
if (!
|
|
1499
|
+
if (!fi.test(e)) return H;
|
|
1492
1500
|
let r = e.toLowerCase();
|
|
1493
1501
|
const i = r[0] === "-" ? -1 : 1;
|
|
1494
1502
|
if ("+-".includes(r[0]) && (r = r.slice(1)), r === ".inf") return i === 1 ? Number.POSITIVE_INFINITY : Number.NEGATIVE_INFINITY;
|
|
@@ -1496,11 +1504,11 @@ function fi(e, t) {
|
|
|
1496
1504
|
const o = i * parseFloat(r);
|
|
1497
1505
|
return Number.isFinite(o) ? o : H;
|
|
1498
1506
|
}
|
|
1499
|
-
if (!
|
|
1507
|
+
if (!ui.test(e)) return H;
|
|
1500
1508
|
const n = Number(e);
|
|
1501
1509
|
return Number.isFinite(n) ? n : H;
|
|
1502
1510
|
}
|
|
1503
|
-
function
|
|
1511
|
+
function di(e) {
|
|
1504
1512
|
if (isNaN(e)) return ".nan";
|
|
1505
1513
|
if (e === Number.POSITIVE_INFINITY) return ".inf";
|
|
1506
1514
|
if (e === Number.NEGATIVE_INFINITY) return "-.inf";
|
|
@@ -1508,15 +1516,15 @@ function pi(e) {
|
|
|
1508
1516
|
const t = e.toString(10);
|
|
1509
1517
|
return /^[-+]?[0-9]+e/.test(t) ? t.replace("e", ".e") : t;
|
|
1510
1518
|
}
|
|
1511
|
-
var
|
|
1519
|
+
var hi = ee("tag:yaml.org,2002:float", {
|
|
1512
1520
|
implicit: !0,
|
|
1513
1521
|
implicitFirstChars: ["-", ..."0123456789"],
|
|
1514
|
-
resolve:
|
|
1522
|
+
resolve: pi,
|
|
1515
1523
|
identify: (e) => typeof e == "number" && (!Number.isInteger(e) || Object.is(e, -0) || e.toString(10).indexOf("e") >= 0),
|
|
1516
|
-
represent:
|
|
1517
|
-
}),
|
|
1518
|
-
function
|
|
1519
|
-
if (!
|
|
1524
|
+
represent: di
|
|
1525
|
+
}), gi = /* @__PURE__ */ new RegExp("^(?:[-+]?(?:(?:[0-9][0-9_]*)?\\.[0-9_]*)(?:[eE][-+][0-9]+)?|[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+\\.[0-9_]*|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$"), mi = /* @__PURE__ */ new RegExp("^(?:[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");
|
|
1526
|
+
function Ai(e) {
|
|
1527
|
+
if (!gi.test(e)) return H;
|
|
1520
1528
|
let t = e.toLowerCase().replace(/_/g, "");
|
|
1521
1529
|
const n = t[0] === "-" ? -1 : 1;
|
|
1522
1530
|
if ("+-".includes(t[0]) && (t = t.slice(1)), t === ".inf") return n === 1 ? Number.POSITIVE_INFINITY : Number.NEGATIVE_INFINITY;
|
|
@@ -1526,9 +1534,9 @@ function mi(e) {
|
|
|
1526
1534
|
for (const i of t.split(":")) r = r * 60 + Number(i);
|
|
1527
1535
|
r *= n;
|
|
1528
1536
|
} else r = n * parseFloat(t);
|
|
1529
|
-
return Number.isFinite(r) ||
|
|
1537
|
+
return Number.isFinite(r) || mi.test(e) ? r : H;
|
|
1530
1538
|
}
|
|
1531
|
-
function
|
|
1539
|
+
function yi(e) {
|
|
1532
1540
|
if (isNaN(e)) return ".nan";
|
|
1533
1541
|
if (e === Number.POSITIVE_INFINITY) return ".inf";
|
|
1534
1542
|
if (e === Number.NEGATIVE_INFINITY) return "-.inf";
|
|
@@ -1536,7 +1544,7 @@ function Ai(e) {
|
|
|
1536
1544
|
const t = e.toString(10);
|
|
1537
1545
|
return /^[-+]?[0-9]+e/.test(t) ? t.replace("e", ".e") : t;
|
|
1538
1546
|
}
|
|
1539
|
-
var
|
|
1547
|
+
var Ht = ee("tag:yaml.org,2002:float", {
|
|
1540
1548
|
implicit: !0,
|
|
1541
1549
|
implicitFirstChars: [
|
|
1542
1550
|
"-",
|
|
@@ -1544,41 +1552,41 @@ var Pt = ee("tag:yaml.org,2002:float", {
|
|
|
1544
1552
|
".",
|
|
1545
1553
|
..."0123456789"
|
|
1546
1554
|
],
|
|
1547
|
-
resolve:
|
|
1555
|
+
resolve: Ai,
|
|
1548
1556
|
identify: (e) => typeof e == "number" && (!Number.isInteger(e) || Object.is(e, -0) || e.toString(10).indexOf("e") >= 0),
|
|
1549
|
-
represent:
|
|
1550
|
-
}),
|
|
1557
|
+
represent: yi
|
|
1558
|
+
}), Dn = ee("tag:yaml.org,2002:merge", {
|
|
1551
1559
|
implicit: !0,
|
|
1552
1560
|
implicitFirstChars: ["<"],
|
|
1553
|
-
resolve: (e, t) => e === "<<" || t && e === "" ?
|
|
1554
|
-
}),
|
|
1555
|
-
function
|
|
1561
|
+
resolve: (e, t) => e === "<<" || t && e === "" ? Jt : H
|
|
1562
|
+
}), Si = /^[A-Za-z0-9+/]*={0,2}$/;
|
|
1563
|
+
function Ei(e) {
|
|
1556
1564
|
const t = e.replace(/\s/g, "");
|
|
1557
|
-
if (t.length % 4 !== 0 || !
|
|
1565
|
+
if (t.length % 4 !== 0 || !Si.test(t)) return H;
|
|
1558
1566
|
const n = atob(t), r = new Uint8Array(n.length);
|
|
1559
1567
|
for (let i = 0; i < n.length; i++) r[i] = n.charCodeAt(i);
|
|
1560
1568
|
return r;
|
|
1561
1569
|
}
|
|
1562
|
-
function
|
|
1570
|
+
function Ci(e) {
|
|
1563
1571
|
let t = "";
|
|
1564
1572
|
for (let n = 0; n < e.length; n++) t += String.fromCharCode(e[n]);
|
|
1565
1573
|
return btoa(t);
|
|
1566
1574
|
}
|
|
1567
|
-
var
|
|
1568
|
-
resolve:
|
|
1575
|
+
var Un = ee("tag:yaml.org,2002:binary", {
|
|
1576
|
+
resolve: Ei,
|
|
1569
1577
|
identify: (e) => Object.prototype.toString.call(e) === "[object Uint8Array]",
|
|
1570
|
-
represent:
|
|
1571
|
-
}),
|
|
1572
|
-
function
|
|
1578
|
+
represent: Ci
|
|
1579
|
+
}), Ti = /* @__PURE__ */ new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"), bi = /* @__PURE__ */ new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?$");
|
|
1580
|
+
function yn(e, t, n, r = 0, i = 0, o = 0, a = 0) {
|
|
1573
1581
|
const s = new Date(Date.UTC(e, t, n, r, i, o, a));
|
|
1574
1582
|
return s.setUTCFullYear(e, t, n), s;
|
|
1575
1583
|
}
|
|
1576
|
-
function
|
|
1577
|
-
let t =
|
|
1578
|
-
if (t === null && (t =
|
|
1584
|
+
function vi(e) {
|
|
1585
|
+
let t = Ti.exec(e);
|
|
1586
|
+
if (t === null && (t = bi.exec(e)), t === null) return H;
|
|
1579
1587
|
const n = +t[1], r = +t[2] - 1, i = +t[3];
|
|
1580
1588
|
if (!t[4]) {
|
|
1581
|
-
const c =
|
|
1589
|
+
const c = yn(n, r, i);
|
|
1582
1590
|
return c.getUTCFullYear() !== n || c.getUTCMonth() !== r || c.getUTCDate() !== i ? H : c;
|
|
1583
1591
|
}
|
|
1584
1592
|
const o = +t[4], a = +t[5], s = +t[6];
|
|
@@ -1589,7 +1597,7 @@ function bi(e) {
|
|
|
1589
1597
|
for (; c.length < 3; ) c += "0";
|
|
1590
1598
|
l = +c;
|
|
1591
1599
|
}
|
|
1592
|
-
const u =
|
|
1600
|
+
const u = yn(n, r, i, o, a, s, l);
|
|
1593
1601
|
if (u.getUTCFullYear() !== n || u.getUTCMonth() !== r || u.getUTCDate() !== i) return H;
|
|
1594
1602
|
if (t[9]) {
|
|
1595
1603
|
const c = +t[10], S = +(t[11] || 0);
|
|
@@ -1599,30 +1607,30 @@ function bi(e) {
|
|
|
1599
1607
|
}
|
|
1600
1608
|
return u;
|
|
1601
1609
|
}
|
|
1602
|
-
var
|
|
1610
|
+
var Ri = ee("tag:yaml.org,2002:timestamp", {
|
|
1603
1611
|
implicit: !0,
|
|
1604
1612
|
implicitFirstChars: [..."0123456789"],
|
|
1605
|
-
resolve:
|
|
1613
|
+
resolve: vi,
|
|
1606
1614
|
identify: (e) => e instanceof Date,
|
|
1607
1615
|
represent: (e) => e.toISOString()
|
|
1608
|
-
}),
|
|
1616
|
+
}), xi = en("tag:yaml.org,2002:seq", {
|
|
1609
1617
|
create: () => [],
|
|
1610
1618
|
addItem: (e, t) => {
|
|
1611
1619
|
e.push(t);
|
|
1612
1620
|
},
|
|
1613
1621
|
identify: Array.isArray
|
|
1614
1622
|
});
|
|
1615
|
-
function
|
|
1623
|
+
function yt(e) {
|
|
1616
1624
|
if (e === null || typeof e != "object" || Array.isArray(e)) return !1;
|
|
1617
1625
|
const t = Object.getPrototypeOf(e);
|
|
1618
1626
|
return t === null || t === Object.prototype;
|
|
1619
1627
|
}
|
|
1620
|
-
function
|
|
1628
|
+
function Mt(e, t) {
|
|
1621
1629
|
const n = {};
|
|
1622
1630
|
for (const r of t) e[r] !== void 0 && (n[r] = e[r]);
|
|
1623
1631
|
return n;
|
|
1624
1632
|
}
|
|
1625
|
-
var
|
|
1633
|
+
var Kn = en("tag:yaml.org,2002:omap", {
|
|
1626
1634
|
create: () => ({
|
|
1627
1635
|
list: [],
|
|
1628
1636
|
seen: /* @__PURE__ */ new Set()
|
|
@@ -1632,7 +1640,7 @@ var Dn = Zt("tag:yaml.org,2002:omap", {
|
|
|
1632
1640
|
if (t instanceof Map) {
|
|
1633
1641
|
if (t.size !== 1) return "cannot resolve an ordered map item";
|
|
1634
1642
|
n = t.keys().next().value;
|
|
1635
|
-
} else if (
|
|
1643
|
+
} else if (yt(t)) {
|
|
1636
1644
|
const r = Object.keys(t);
|
|
1637
1645
|
if (r.length !== 1) return "cannot resolve an ordered map item";
|
|
1638
1646
|
n = r[0];
|
|
@@ -1640,7 +1648,7 @@ var Dn = Zt("tag:yaml.org,2002:omap", {
|
|
|
1640
1648
|
return e.seen.has(n) ? "duplicate key in ordered map" : (e.seen.add(n), e.list.push(t), "");
|
|
1641
1649
|
},
|
|
1642
1650
|
finalize: (e) => e.list
|
|
1643
|
-
}),
|
|
1651
|
+
}), qn = en("tag:yaml.org,2002:pairs", {
|
|
1644
1652
|
create: () => [],
|
|
1645
1653
|
addItem: (e, t) => {
|
|
1646
1654
|
if (t instanceof Map)
|
|
@@ -1649,9 +1657,9 @@ var Dn = Zt("tag:yaml.org,2002:omap", {
|
|
|
1649
1657
|
const n = t, r = Object.keys(n);
|
|
1650
1658
|
return r.length !== 1 ? "cannot resolve a pairs item" : (e.push([r[0], n[r[0]]]), "");
|
|
1651
1659
|
}
|
|
1652
|
-
}),
|
|
1660
|
+
}), _i = At("tag:yaml.org,2002:map", {
|
|
1653
1661
|
create: () => ({}),
|
|
1654
|
-
identify:
|
|
1662
|
+
identify: yt,
|
|
1655
1663
|
represent: (e) => {
|
|
1656
1664
|
const t = /* @__PURE__ */ new Map();
|
|
1657
1665
|
for (const n of Object.keys(e)) t.set(n, e[n]);
|
|
@@ -1673,7 +1681,7 @@ var Dn = Zt("tag:yaml.org,2002:omap", {
|
|
|
1673
1681
|
const n = String(t);
|
|
1674
1682
|
return Object.prototype.hasOwnProperty.call(e, n) ? e[n] : null;
|
|
1675
1683
|
}
|
|
1676
|
-
}),
|
|
1684
|
+
}), Gn = At("tag:yaml.org,2002:set", {
|
|
1677
1685
|
create: () => /* @__PURE__ */ new Set(),
|
|
1678
1686
|
identify: (e) => e instanceof Set,
|
|
1679
1687
|
represent: (e) => {
|
|
@@ -1686,21 +1694,21 @@ var Dn = Zt("tag:yaml.org,2002:omap", {
|
|
|
1686
1694
|
keys: (e) => e.keys(),
|
|
1687
1695
|
get: () => null
|
|
1688
1696
|
});
|
|
1689
|
-
function
|
|
1697
|
+
function wi() {
|
|
1690
1698
|
return {
|
|
1691
1699
|
scalar: /* @__PURE__ */ Object.create(null),
|
|
1692
1700
|
sequence: /* @__PURE__ */ Object.create(null),
|
|
1693
1701
|
mapping: /* @__PURE__ */ Object.create(null)
|
|
1694
1702
|
};
|
|
1695
1703
|
}
|
|
1696
|
-
function
|
|
1704
|
+
function Ii() {
|
|
1697
1705
|
return {
|
|
1698
1706
|
scalar: [],
|
|
1699
1707
|
sequence: [],
|
|
1700
1708
|
mapping: []
|
|
1701
1709
|
};
|
|
1702
1710
|
}
|
|
1703
|
-
function
|
|
1711
|
+
function Ni(e) {
|
|
1704
1712
|
const t = [];
|
|
1705
1713
|
for (const n of e) {
|
|
1706
1714
|
let r = t.length;
|
|
@@ -1715,7 +1723,7 @@ function Ii(e) {
|
|
|
1715
1723
|
}
|
|
1716
1724
|
return t;
|
|
1717
1725
|
}
|
|
1718
|
-
var
|
|
1726
|
+
var St = class Yn {
|
|
1719
1727
|
tags;
|
|
1720
1728
|
implicitScalarTags;
|
|
1721
1729
|
implicitScalarByFirstChar;
|
|
@@ -1726,7 +1734,7 @@ var At = class qn {
|
|
|
1726
1734
|
exact;
|
|
1727
1735
|
prefix;
|
|
1728
1736
|
constructor(t) {
|
|
1729
|
-
const n =
|
|
1737
|
+
const n = Ni(t), r = [], i = wi(), o = Ii();
|
|
1730
1738
|
for (const c of n) {
|
|
1731
1739
|
if (c.nodeKind === "scalar" && c.implicit) {
|
|
1732
1740
|
if (c.matchByTagPrefix) throw new Error("Implicit scalar tags cannot match by tag prefix");
|
|
@@ -1755,46 +1763,46 @@ var At = class qn {
|
|
|
1755
1763
|
withTags(...t) {
|
|
1756
1764
|
let n = [];
|
|
1757
1765
|
for (const r of t) n = n.concat(r);
|
|
1758
|
-
return new
|
|
1766
|
+
return new Yn([...this.tags, ...n]);
|
|
1759
1767
|
}
|
|
1760
|
-
},
|
|
1761
|
-
|
|
1762
|
-
|
|
1763
|
-
|
|
1768
|
+
}, tn = new St([
|
|
1769
|
+
Lr,
|
|
1770
|
+
xi,
|
|
1771
|
+
_i
|
|
1764
1772
|
]);
|
|
1765
|
-
new
|
|
1766
|
-
...
|
|
1767
|
-
|
|
1768
|
-
|
|
1769
|
-
|
|
1770
|
-
|
|
1773
|
+
new St([
|
|
1774
|
+
...tn.tags,
|
|
1775
|
+
Fr,
|
|
1776
|
+
Gr,
|
|
1777
|
+
ni,
|
|
1778
|
+
hi
|
|
1771
1779
|
]);
|
|
1772
|
-
var
|
|
1773
|
-
...
|
|
1774
|
-
|
|
1775
|
-
|
|
1776
|
-
Fn,
|
|
1777
|
-
Hn
|
|
1778
|
-
]), Ni = new At([
|
|
1779
|
-
...Jt.tags,
|
|
1780
|
-
Hr,
|
|
1781
|
-
Wr,
|
|
1782
|
-
Ot,
|
|
1783
|
-
Pt,
|
|
1784
|
-
vi,
|
|
1780
|
+
var Wn = new St([
|
|
1781
|
+
...tn.tags,
|
|
1782
|
+
Pr,
|
|
1783
|
+
Ur,
|
|
1785
1784
|
Mn,
|
|
1786
|
-
Bn
|
|
1785
|
+
Bn
|
|
1786
|
+
]), $i = new St([
|
|
1787
|
+
...tn.tags,
|
|
1788
|
+
Mr,
|
|
1789
|
+
jr,
|
|
1790
|
+
Ft,
|
|
1791
|
+
Ht,
|
|
1792
|
+
Ri,
|
|
1787
1793
|
Dn,
|
|
1788
1794
|
Un,
|
|
1789
|
-
Kn
|
|
1795
|
+
Kn,
|
|
1796
|
+
qn,
|
|
1797
|
+
Gn
|
|
1790
1798
|
]);
|
|
1791
|
-
|
|
1799
|
+
At("tag:yaml.org,2002:map", {
|
|
1792
1800
|
create: () => /* @__PURE__ */ new Map(),
|
|
1793
1801
|
addPair: (e, t, n) => (e.set(t, n), ""),
|
|
1794
1802
|
has: (e, t) => e.has(t),
|
|
1795
1803
|
keys: (e) => e.keys(),
|
|
1796
1804
|
get: (e, t) => e.get(t),
|
|
1797
|
-
identify: (e) => e instanceof Map ||
|
|
1805
|
+
identify: (e) => e instanceof Map || yt(e),
|
|
1798
1806
|
represent: (e) => {
|
|
1799
1807
|
if (e instanceof Map) return e;
|
|
1800
1808
|
const t = /* @__PURE__ */ new Map(), n = e;
|
|
@@ -1802,7 +1810,7 @@ gt("tag:yaml.org,2002:map", {
|
|
|
1802
1810
|
return t;
|
|
1803
1811
|
}
|
|
1804
1812
|
});
|
|
1805
|
-
function
|
|
1813
|
+
function Sn(e) {
|
|
1806
1814
|
if (Array.isArray(e)) {
|
|
1807
1815
|
const t = Array.prototype.slice.call(e);
|
|
1808
1816
|
for (let n = 0; n < t.length; n++) {
|
|
@@ -1813,16 +1821,16 @@ function An(e) {
|
|
|
1813
1821
|
}
|
|
1814
1822
|
return typeof e == "object" && Object.prototype.toString.call(e) === "[object Object]" ? "[object Object]" : String(e);
|
|
1815
1823
|
}
|
|
1816
|
-
|
|
1824
|
+
At("tag:yaml.org,2002:map", {
|
|
1817
1825
|
create: () => ({}),
|
|
1818
|
-
identify:
|
|
1826
|
+
identify: yt,
|
|
1819
1827
|
represent: (e) => {
|
|
1820
1828
|
const t = /* @__PURE__ */ new Map();
|
|
1821
1829
|
for (const n of Object.keys(e)) t.set(n, e[n]);
|
|
1822
1830
|
return t;
|
|
1823
1831
|
},
|
|
1824
1832
|
addPair: (e, t, n) => {
|
|
1825
|
-
const r =
|
|
1833
|
+
const r = Sn(t);
|
|
1826
1834
|
return r === null ? "nested arrays are not supported inside keys" : (r === "__proto__" ? Object.defineProperty(e, r, {
|
|
1827
1835
|
value: n,
|
|
1828
1836
|
enumerable: !0,
|
|
@@ -1831,7 +1839,7 @@ gt("tag:yaml.org,2002:map", {
|
|
|
1831
1839
|
}) : e[r] = n, "");
|
|
1832
1840
|
},
|
|
1833
1841
|
has: (e, t) => {
|
|
1834
|
-
const n =
|
|
1842
|
+
const n = Sn(t);
|
|
1835
1843
|
return n !== null && Object.prototype.hasOwnProperty.call(e, n);
|
|
1836
1844
|
},
|
|
1837
1845
|
keys: (e) => Object.keys(e),
|
|
@@ -1840,13 +1848,13 @@ gt("tag:yaml.org,2002:map", {
|
|
|
1840
1848
|
return Object.prototype.hasOwnProperty.call(e, n) ? e[n] : null;
|
|
1841
1849
|
}
|
|
1842
1850
|
});
|
|
1843
|
-
var
|
|
1851
|
+
var ki = {
|
|
1844
1852
|
maxLength: 79,
|
|
1845
1853
|
indent: 1,
|
|
1846
1854
|
linesBefore: 3,
|
|
1847
1855
|
linesAfter: 2
|
|
1848
1856
|
};
|
|
1849
|
-
function
|
|
1857
|
+
function It(e, t, n, r, i) {
|
|
1850
1858
|
let o = "", a = "";
|
|
1851
1859
|
const s = Math.floor(i / 2) - 1;
|
|
1852
1860
|
return r - t > s && (o = " ... ", t = r - s + o.length), n - r > s && (a = " ...", n = r + s - a.length), {
|
|
@@ -1854,13 +1862,13 @@ function _t(e, t, n, r, i) {
|
|
|
1854
1862
|
pos: r - t + o.length
|
|
1855
1863
|
};
|
|
1856
1864
|
}
|
|
1857
|
-
function
|
|
1865
|
+
function Nt(e, t) {
|
|
1858
1866
|
return " ".repeat(Math.max(t - e.length, 0)) + e;
|
|
1859
1867
|
}
|
|
1860
|
-
function
|
|
1868
|
+
function Li(e, t) {
|
|
1861
1869
|
if (!e.buffer) return null;
|
|
1862
1870
|
const n = {
|
|
1863
|
-
|
|
1871
|
+
...ki,
|
|
1864
1872
|
...t
|
|
1865
1873
|
}, r = /\r?\n|\r|\0/g, i = [0], o = [];
|
|
1866
1874
|
let a, s = -1;
|
|
@@ -1870,38 +1878,38 @@ function ki(e, t) {
|
|
|
1870
1878
|
let l = "";
|
|
1871
1879
|
const u = Math.min(e.line + n.linesAfter, o.length).toString().length, c = n.maxLength - (n.indent + u + 3);
|
|
1872
1880
|
for (let m = 1; m <= n.linesBefore && !(s - m < 0); m++) {
|
|
1873
|
-
const C =
|
|
1874
|
-
l = `${" ".repeat(n.indent)}${
|
|
1881
|
+
const C = It(e.buffer, i[s - m], o[s - m], e.position - (i[s] - i[s - m]), c);
|
|
1882
|
+
l = `${" ".repeat(n.indent)}${Nt((e.line - m + 1).toString(), u)} | ${C.str}
|
|
1875
1883
|
${l}`;
|
|
1876
1884
|
}
|
|
1877
|
-
const S =
|
|
1878
|
-
l += `${" ".repeat(n.indent)}${
|
|
1885
|
+
const S = It(e.buffer, i[s], o[s], e.position, c);
|
|
1886
|
+
l += `${" ".repeat(n.indent)}${Nt((e.line + 1).toString(), u)} | ${S.str}
|
|
1879
1887
|
`, l += `${"-".repeat(n.indent + u + 3 + S.pos)}^
|
|
1880
1888
|
`;
|
|
1881
1889
|
for (let m = 1; m <= n.linesAfter && !(s + m >= o.length); m++) {
|
|
1882
|
-
const C =
|
|
1883
|
-
l += `${" ".repeat(n.indent)}${
|
|
1890
|
+
const C = It(e.buffer, i[s + m], o[s + m], e.position - (i[s] - i[s + m]), c);
|
|
1891
|
+
l += `${" ".repeat(n.indent)}${Nt((e.line + m + 1).toString(), u)} | ${C.str}
|
|
1884
1892
|
`;
|
|
1885
1893
|
}
|
|
1886
1894
|
return l.replace(/\n$/, "");
|
|
1887
1895
|
}
|
|
1888
|
-
function
|
|
1896
|
+
function En(e, t) {
|
|
1889
1897
|
let n = "";
|
|
1890
1898
|
return e.mark ? (e.mark.name && (n += `in "${e.mark.name}" `), n += `(${e.mark.line + 1}:${e.mark.column + 1})`, !t && e.mark.snippet && (n += `
|
|
1891
1899
|
|
|
1892
1900
|
${e.mark.snippet}`), `${e.reason} ${n}`) : e.reason;
|
|
1893
1901
|
}
|
|
1894
|
-
var
|
|
1902
|
+
var Et = class extends Error {
|
|
1895
1903
|
reason;
|
|
1896
1904
|
mark;
|
|
1897
1905
|
constructor(e, t) {
|
|
1898
|
-
super(), this.name = "YAMLException", this.reason = e, this.mark = t, this.message =
|
|
1906
|
+
super(), this.name = "YAMLException", this.reason = e, this.mark = t, this.message = En(this, !1), Error.captureStackTrace && Error.captureStackTrace(this, this.constructor);
|
|
1899
1907
|
}
|
|
1900
1908
|
toString(e) {
|
|
1901
|
-
return `${this.name}: ${
|
|
1909
|
+
return `${this.name}: ${En(this, e)}`;
|
|
1902
1910
|
}
|
|
1903
1911
|
};
|
|
1904
|
-
function
|
|
1912
|
+
function Ct(e, t, n, r = "") {
|
|
1905
1913
|
let i = 0, o = 0;
|
|
1906
1914
|
for (let s = 0; s < t; s++) {
|
|
1907
1915
|
const l = e.charCodeAt(s);
|
|
@@ -1914,10 +1922,10 @@ function St(e, t, n, r = "") {
|
|
|
1914
1922
|
line: i,
|
|
1915
1923
|
column: t - o
|
|
1916
1924
|
};
|
|
1917
|
-
throw a.snippet =
|
|
1925
|
+
throw a.snippet = Li(a), new Et(n, a);
|
|
1918
1926
|
}
|
|
1919
|
-
var
|
|
1920
|
-
function
|
|
1927
|
+
var Oi = -1;
|
|
1928
|
+
function Cn(e) {
|
|
1921
1929
|
switch (e) {
|
|
1922
1930
|
case 48:
|
|
1923
1931
|
return "\0";
|
|
@@ -1960,19 +1968,19 @@ function Sn(e) {
|
|
|
1960
1968
|
return "";
|
|
1961
1969
|
}
|
|
1962
1970
|
}
|
|
1963
|
-
var
|
|
1971
|
+
var jn = new Array(256), Vn = new Array(256);
|
|
1964
1972
|
for (let e = 0; e < 256; e++)
|
|
1965
|
-
|
|
1966
|
-
function
|
|
1973
|
+
jn[e] = Cn(e) ? 1 : 0, Vn[e] = Cn(e);
|
|
1974
|
+
function Pi(e) {
|
|
1967
1975
|
return e <= 65535 ? String.fromCharCode(e) : String.fromCharCode((e - 65536 >> 10) + 55296, (e - 65536 & 1023) + 56320);
|
|
1968
1976
|
}
|
|
1969
|
-
function
|
|
1977
|
+
function Fi(e) {
|
|
1970
1978
|
return e >= 48 && e <= 57 ? e - 48 : (e | 32) - 97 + 10;
|
|
1971
1979
|
}
|
|
1972
|
-
function
|
|
1980
|
+
function Hi(e) {
|
|
1973
1981
|
return e === 120 ? 2 : e === 117 ? 4 : 8;
|
|
1974
1982
|
}
|
|
1975
|
-
function
|
|
1983
|
+
function pt(e, t, n) {
|
|
1976
1984
|
let r = 0;
|
|
1977
1985
|
for (; t < n; ) {
|
|
1978
1986
|
const i = e.charCodeAt(t);
|
|
@@ -1988,24 +1996,24 @@ function ut(e, t, n) {
|
|
|
1988
1996
|
breaks: r
|
|
1989
1997
|
};
|
|
1990
1998
|
}
|
|
1991
|
-
function
|
|
1999
|
+
function nn(e) {
|
|
1992
2000
|
return e === 1 ? " " : `
|
|
1993
2001
|
`.repeat(e - 1);
|
|
1994
2002
|
}
|
|
1995
|
-
function
|
|
2003
|
+
function Mi(e, t, n) {
|
|
1996
2004
|
let r = "", i = t, o = t, a = t;
|
|
1997
2005
|
for (; i < n; ) {
|
|
1998
2006
|
const s = e.charCodeAt(i);
|
|
1999
2007
|
if (s === 10 || s === 13) {
|
|
2000
2008
|
r += e.slice(o, a);
|
|
2001
|
-
const l =
|
|
2002
|
-
r +=
|
|
2009
|
+
const l = pt(e, i, n);
|
|
2010
|
+
r += nn(l.breaks), i = o = a = l.position;
|
|
2003
2011
|
} else
|
|
2004
2012
|
i++, s !== 32 && s !== 9 && (a = i);
|
|
2005
2013
|
}
|
|
2006
2014
|
return r + e.slice(o, a);
|
|
2007
2015
|
}
|
|
2008
|
-
function
|
|
2016
|
+
function Bi(e, t, n) {
|
|
2009
2017
|
let r = "", i = t, o = t, a = t;
|
|
2010
2018
|
for (; i < n; ) {
|
|
2011
2019
|
const s = e.charCodeAt(i);
|
|
@@ -2013,43 +2021,43 @@ function Mi(e, t, n) {
|
|
|
2013
2021
|
r += e.slice(o, i) + "'", i += 2, o = a = i;
|
|
2014
2022
|
else if (s === 10 || s === 13) {
|
|
2015
2023
|
r += e.slice(o, a);
|
|
2016
|
-
const l =
|
|
2017
|
-
r +=
|
|
2024
|
+
const l = pt(e, i, n);
|
|
2025
|
+
r += nn(l.breaks), i = o = a = l.position;
|
|
2018
2026
|
} else
|
|
2019
2027
|
i++, s !== 32 && s !== 9 && (a = i);
|
|
2020
2028
|
}
|
|
2021
2029
|
return r + e.slice(o, n);
|
|
2022
2030
|
}
|
|
2023
|
-
function
|
|
2031
|
+
function Di(e, t, n) {
|
|
2024
2032
|
let r = "", i = t, o = t, a = t;
|
|
2025
2033
|
for (; i < n; ) {
|
|
2026
2034
|
const s = e.charCodeAt(i);
|
|
2027
2035
|
if (s === 92) {
|
|
2028
2036
|
r += e.slice(o, i), i++;
|
|
2029
2037
|
const l = e.charCodeAt(i);
|
|
2030
|
-
if (l === 10 || l === 13) i =
|
|
2031
|
-
else if (l < 256 &&
|
|
2032
|
-
r +=
|
|
2038
|
+
if (l === 10 || l === 13) i = pt(e, i, n).position;
|
|
2039
|
+
else if (l < 256 && jn[l])
|
|
2040
|
+
r += Vn[l], i++;
|
|
2033
2041
|
else {
|
|
2034
|
-
let u =
|
|
2042
|
+
let u = Hi(l), c = 0;
|
|
2035
2043
|
for (; u > 0; u--) {
|
|
2036
2044
|
i++;
|
|
2037
|
-
const S =
|
|
2045
|
+
const S = Fi(e.charCodeAt(i));
|
|
2038
2046
|
c = (c << 4) + S;
|
|
2039
2047
|
}
|
|
2040
|
-
r +=
|
|
2048
|
+
r += Pi(c), i++;
|
|
2041
2049
|
}
|
|
2042
2050
|
o = a = i;
|
|
2043
2051
|
} else if (s === 10 || s === 13) {
|
|
2044
2052
|
r += e.slice(o, a);
|
|
2045
|
-
const l =
|
|
2046
|
-
r +=
|
|
2053
|
+
const l = pt(e, i, n);
|
|
2054
|
+
r += nn(l.breaks), i = o = a = l.position;
|
|
2047
2055
|
} else
|
|
2048
2056
|
i++, s !== 32 && s !== 9 && (a = i);
|
|
2049
2057
|
}
|
|
2050
2058
|
return r + e.slice(o, n);
|
|
2051
2059
|
}
|
|
2052
|
-
function
|
|
2060
|
+
function Tn(e, t, n, r, i, o) {
|
|
2053
2061
|
const a = r < 0 ? 0 : r, s = e.slice(t, n).replace(/\r\n?/g, `
|
|
2054
2062
|
`), l = s === "" ? [] : (s.endsWith(`
|
|
2055
2063
|
`) ? s.slice(0, -1) : s).split(`
|
|
@@ -2073,95 +2081,95 @@ function En(e, t, n, r, i, o) {
|
|
|
2073
2081
|
`.repeat(c ? 1 + S : S) : i !== 2 && c && (u += `
|
|
2074
2082
|
`), u;
|
|
2075
2083
|
}
|
|
2076
|
-
function
|
|
2077
|
-
if (t.valueStart ===
|
|
2084
|
+
function Ui(e, t) {
|
|
2085
|
+
if (t.valueStart === Oi) return "";
|
|
2078
2086
|
const { valueStart: n, valueEnd: r } = t;
|
|
2079
2087
|
if (t.fast) return e.slice(n, r);
|
|
2080
2088
|
switch (t.style) {
|
|
2081
2089
|
case 2:
|
|
2082
|
-
return Mi(e, n, r);
|
|
2083
|
-
case 3:
|
|
2084
2090
|
return Bi(e, n, r);
|
|
2091
|
+
case 3:
|
|
2092
|
+
return Di(e, n, r);
|
|
2085
2093
|
case 4:
|
|
2086
|
-
return
|
|
2094
|
+
return Tn(e, n, r, t.indent, t.chomping, !1);
|
|
2087
2095
|
case 5:
|
|
2088
|
-
return
|
|
2096
|
+
return Tn(e, n, r, t.indent, t.chomping, !0);
|
|
2089
2097
|
default:
|
|
2090
|
-
return
|
|
2098
|
+
return Mi(e, n, r);
|
|
2091
2099
|
}
|
|
2092
2100
|
}
|
|
2093
|
-
var
|
|
2101
|
+
var Ki = Object.assign(/* @__PURE__ */ Object.create(null), {
|
|
2094
2102
|
"!": "!",
|
|
2095
2103
|
"!!": "tag:yaml.org,2002:"
|
|
2096
2104
|
});
|
|
2097
|
-
function
|
|
2105
|
+
function $t(e) {
|
|
2098
2106
|
return encodeURI(e).replace(/!/g, "%21");
|
|
2099
2107
|
}
|
|
2100
|
-
function
|
|
2108
|
+
function Xn(e, t) {
|
|
2101
2109
|
if (e.startsWith("!<") && e.endsWith(">")) return decodeURIComponent(e.slice(2, -1));
|
|
2102
|
-
const n = e.indexOf("!", 1), r = n === -1 ? "!" : e.slice(0, n + 1), i = t?.[r] ??
|
|
2110
|
+
const n = e.indexOf("!", 1), r = n === -1 ? "!" : e.slice(0, n + 1), i = t?.[r] ?? Ki[r] ?? r;
|
|
2103
2111
|
return decodeURIComponent(i) + decodeURIComponent(e.slice(r.length));
|
|
2104
2112
|
}
|
|
2105
|
-
function
|
|
2113
|
+
function zn(e) {
|
|
2106
2114
|
let t = e;
|
|
2107
|
-
return t.charCodeAt(0) === 33 ? (t = t.slice(1), `!${
|
|
2115
|
+
return t.charCodeAt(0) === 33 ? (t = t.slice(1), `!${$t(t)}`) : t.slice(0, 18) === "tag:yaml.org,2002:" ? `!!${$t(t.slice(18))}` : `!<${$t(t)}>`;
|
|
2108
2116
|
}
|
|
2109
|
-
var
|
|
2117
|
+
var Be = -1, rn = {
|
|
2110
2118
|
filename: "",
|
|
2111
|
-
schema:
|
|
2119
|
+
schema: Wn,
|
|
2112
2120
|
json: !1,
|
|
2113
2121
|
maxTotalMergeKeys: 1e4,
|
|
2114
2122
|
maxAliases: -1
|
|
2115
2123
|
};
|
|
2116
|
-
function
|
|
2117
|
-
return "tagStart" in e && e.tagStart !==
|
|
2124
|
+
function qi(e) {
|
|
2125
|
+
return "tagStart" in e && e.tagStart !== Be ? e.tagStart : "anchorStart" in e && e.anchorStart !== Be ? e.anchorStart : "valueStart" in e && e.valueStart !== Be ? e.valueStart : "start" in e ? e.start : 0;
|
|
2118
2126
|
}
|
|
2119
|
-
function
|
|
2120
|
-
|
|
2127
|
+
function ae(e, t) {
|
|
2128
|
+
Ct(e.source, e.position, t, e.filename);
|
|
2121
2129
|
}
|
|
2122
|
-
function
|
|
2130
|
+
function Qn(e, t, n, r) {
|
|
2123
2131
|
try {
|
|
2124
2132
|
return n.finalize(r);
|
|
2125
2133
|
} catch (i) {
|
|
2126
|
-
if (i instanceof
|
|
2127
|
-
|
|
2134
|
+
if (i instanceof Et) throw i;
|
|
2135
|
+
Ct(e.source, t, i instanceof Error ? i.message : String(i), e.filename);
|
|
2128
2136
|
}
|
|
2129
2137
|
}
|
|
2130
|
-
function
|
|
2138
|
+
function ct(e, t, n) {
|
|
2131
2139
|
const r = e[n];
|
|
2132
2140
|
if (r) return r;
|
|
2133
2141
|
for (const i of t) if (n.startsWith(i.tagName)) return i;
|
|
2134
2142
|
}
|
|
2135
|
-
function
|
|
2136
|
-
const o =
|
|
2143
|
+
function Gi(e, t, n, r, i) {
|
|
2144
|
+
const o = ct(t, n, r);
|
|
2137
2145
|
if (o) return o;
|
|
2138
|
-
|
|
2146
|
+
ae(e, `unknown ${i} tag !<${r}>`);
|
|
2139
2147
|
}
|
|
2140
|
-
function
|
|
2141
|
-
const n =
|
|
2148
|
+
function Yi(e, t) {
|
|
2149
|
+
const n = Ui(e.source, t), r = t.tagStart === Be ? "" : e.source.slice(t.tagStart, t.tagEnd), i = e.schema.defaultScalarTag;
|
|
2142
2150
|
if (r !== "") {
|
|
2143
2151
|
if (r === "!") return {
|
|
2144
2152
|
value: n,
|
|
2145
2153
|
tag: i
|
|
2146
2154
|
};
|
|
2147
|
-
const o =
|
|
2155
|
+
const o = Xn(r, e.tagHandlers), a = ct(e.schema.exact.scalar, e.schema.prefix.scalar, o);
|
|
2148
2156
|
if (a) {
|
|
2149
2157
|
const l = a.resolve(n, !0, o);
|
|
2150
|
-
return l === H &&
|
|
2158
|
+
return l === H && ae(e, `cannot resolve a node with !<${o}> explicit tag`), {
|
|
2151
2159
|
value: l,
|
|
2152
2160
|
tag: a
|
|
2153
2161
|
};
|
|
2154
2162
|
}
|
|
2155
|
-
const s =
|
|
2163
|
+
const s = ct(e.schema.exact.mapping, e.schema.prefix.mapping, o) ?? ct(e.schema.exact.sequence, e.schema.prefix.sequence, o);
|
|
2156
2164
|
if (s) {
|
|
2157
|
-
n !== "" &&
|
|
2165
|
+
n !== "" && ae(e, `cannot resolve a node with !<${o}> explicit tag`);
|
|
2158
2166
|
const l = s.create(o);
|
|
2159
2167
|
return {
|
|
2160
|
-
value: s.carrierIsResult ? l :
|
|
2168
|
+
value: s.carrierIsResult ? l : Qn(e, e.position, s, l),
|
|
2161
2169
|
tag: s
|
|
2162
2170
|
};
|
|
2163
2171
|
}
|
|
2164
|
-
|
|
2172
|
+
ae(e, `unknown scalar tag !<${o}>`);
|
|
2165
2173
|
}
|
|
2166
2174
|
if (t.style === 1) {
|
|
2167
2175
|
const o = e.schema.implicitScalarByFirstChar.get(n.charAt(0)) ?? e.schema.implicitScalarAnyFirstChar;
|
|
@@ -2178,53 +2186,53 @@ function Gi(e, t) {
|
|
|
2178
2186
|
tag: i
|
|
2179
2187
|
};
|
|
2180
2188
|
}
|
|
2181
|
-
function
|
|
2182
|
-
const a = t.tagStart ===
|
|
2189
|
+
function bn(e, t, n, r, i, o) {
|
|
2190
|
+
const a = t.tagStart === Be ? "" : e.source.slice(t.tagStart, t.tagEnd), s = a === "" || a === "!" ? i : Xn(a, e.tagHandlers);
|
|
2183
2191
|
return {
|
|
2184
2192
|
tagName: s,
|
|
2185
|
-
tag:
|
|
2193
|
+
tag: Gi(e, n, r, s, o)
|
|
2186
2194
|
};
|
|
2187
2195
|
}
|
|
2188
|
-
function
|
|
2196
|
+
function Zn(e) {
|
|
2189
2197
|
return e.nodeKind === "mapping";
|
|
2190
2198
|
}
|
|
2191
|
-
function
|
|
2199
|
+
function vn(e, t, n, r) {
|
|
2192
2200
|
for (const i of r.keys(n)) {
|
|
2193
|
-
if (e.maxTotalMergeKeys !== -1 && ++e.totalMergeKeys > e.maxTotalMergeKeys &&
|
|
2201
|
+
if (e.maxTotalMergeKeys !== -1 && ++e.totalMergeKeys > e.maxTotalMergeKeys && ae(e, `merge keys exceeded maxTotalMergeKeys (${e.maxTotalMergeKeys})`), t.tag.has(t.value, i)) continue;
|
|
2194
2202
|
const o = t.tag.addPair(t.value, i, r.get(n, i));
|
|
2195
|
-
o &&
|
|
2203
|
+
o && ae(e, o), (t.overridable ??= /* @__PURE__ */ new Set()).add(i);
|
|
2196
2204
|
}
|
|
2197
2205
|
}
|
|
2198
|
-
function
|
|
2199
|
-
if (e.position = t.keyPosition,
|
|
2200
|
-
else if (r.nodeKind === "sequence" && Array.isArray(n)) for (const i of n)
|
|
2201
|
-
else
|
|
2206
|
+
function Wi(e, t, n, r) {
|
|
2207
|
+
if (e.position = t.keyPosition, Zn(r)) vn(e, t, n, r);
|
|
2208
|
+
else if (r.nodeKind === "sequence" && Array.isArray(n)) for (const i of n) vn(e, t, i, t.tag);
|
|
2209
|
+
else ae(e, "cannot merge mappings; the provided source object is unacceptable");
|
|
2202
2210
|
}
|
|
2203
|
-
function
|
|
2204
|
-
if (e.position = t.keyPosition, n ===
|
|
2205
|
-
|
|
2211
|
+
function ji(e, t, n, r, i) {
|
|
2212
|
+
if (e.position = t.keyPosition, n === Jt) {
|
|
2213
|
+
Wi(e, t, r, i);
|
|
2206
2214
|
return;
|
|
2207
2215
|
}
|
|
2208
|
-
!e.json && t.tag.has(t.value, n) && !t.overridable?.has(n) &&
|
|
2216
|
+
!e.json && t.tag.has(t.value, n) && !t.overridable?.has(n) && ae(e, "duplicated mapping key");
|
|
2209
2217
|
const o = t.tag.addPair(t.value, n, r);
|
|
2210
|
-
o &&
|
|
2218
|
+
o && ae(e, o), t.overridable?.delete(n);
|
|
2211
2219
|
}
|
|
2212
|
-
function
|
|
2220
|
+
function kt(e, t, n) {
|
|
2213
2221
|
const r = e.frames[e.frames.length - 1];
|
|
2214
2222
|
if (r.kind === "document")
|
|
2215
2223
|
r.value = t, r.hasValue = !0;
|
|
2216
2224
|
else if (r.kind === "sequence") {
|
|
2217
|
-
r.merge && (
|
|
2225
|
+
r.merge && (Zn(n) || ae(e, "cannot merge mappings; the provided source object is unacceptable"));
|
|
2218
2226
|
const i = r.tag.addItem(r.value, t, r.index++);
|
|
2219
|
-
i &&
|
|
2227
|
+
i && ae(e, i);
|
|
2220
2228
|
} else if (r.hasKey) {
|
|
2221
2229
|
const i = r.key;
|
|
2222
|
-
r.key = void 0, r.hasKey = !1,
|
|
2230
|
+
r.key = void 0, r.hasKey = !1, ji(e, r, i, t, n);
|
|
2223
2231
|
} else
|
|
2224
2232
|
r.key = t, r.keyPosition = e.position, r.hasKey = !0;
|
|
2225
2233
|
}
|
|
2226
|
-
function
|
|
2227
|
-
if (t.anchorStart !==
|
|
2234
|
+
function Lt(e, t, n, r, i) {
|
|
2235
|
+
if (t.anchorStart !== Be) {
|
|
2228
2236
|
const o = {
|
|
2229
2237
|
value: n,
|
|
2230
2238
|
tag: r,
|
|
@@ -2234,9 +2242,9 @@ function $t(e, t, n, r, i) {
|
|
|
2234
2242
|
}
|
|
2235
2243
|
return null;
|
|
2236
2244
|
}
|
|
2237
|
-
function
|
|
2245
|
+
function Vi(e, t) {
|
|
2238
2246
|
const n = {
|
|
2239
|
-
...
|
|
2247
|
+
...rn,
|
|
2240
2248
|
...t,
|
|
2241
2249
|
events: e,
|
|
2242
2250
|
documents: [],
|
|
@@ -2250,7 +2258,7 @@ function ji(e, t) {
|
|
|
2250
2258
|
};
|
|
2251
2259
|
for (; n.eventIndex < n.events.length; ) {
|
|
2252
2260
|
const r = n.events[n.eventIndex++];
|
|
2253
|
-
switch (n.position =
|
|
2261
|
+
switch (n.position = qi(r), r.type) {
|
|
2254
2262
|
case 1:
|
|
2255
2263
|
n.anchors = /* @__PURE__ */ new Map(), n.aliasCount = 0, n.tagHandlers = /* @__PURE__ */ Object.create(null);
|
|
2256
2264
|
for (const i of r.directives) i.kind === "tag" && (n.tagHandlers[i.handle] = i.prefix);
|
|
@@ -2262,12 +2270,12 @@ function ji(e, t) {
|
|
|
2262
2270
|
});
|
|
2263
2271
|
break;
|
|
2264
2272
|
case 4: {
|
|
2265
|
-
const { value: i, tag: o } =
|
|
2266
|
-
|
|
2273
|
+
const { value: i, tag: o } = Yi(n, r);
|
|
2274
|
+
Lt(n, r, i, o, !0), kt(n, i, o);
|
|
2267
2275
|
break;
|
|
2268
2276
|
}
|
|
2269
2277
|
case 2: {
|
|
2270
|
-
const i =
|
|
2278
|
+
const i = bn(n, r, n.schema.exact.sequence, n.schema.prefix.sequence, "tag:yaml.org,2002:seq", "sequence"), o = i.tag.create(i.tagName), a = Lt(n, r, o, i.tag, i.tag.carrierIsResult), s = n.frames[n.frames.length - 1], l = s !== void 0 && s.kind === "mapping" && s.hasKey && s.key === Jt;
|
|
2271
2279
|
n.frames.push({
|
|
2272
2280
|
kind: "sequence",
|
|
2273
2281
|
position: n.position,
|
|
@@ -2280,7 +2288,7 @@ function ji(e, t) {
|
|
|
2280
2288
|
break;
|
|
2281
2289
|
}
|
|
2282
2290
|
case 3: {
|
|
2283
|
-
const i =
|
|
2291
|
+
const i = bn(n, r, n.schema.exact.mapping, n.schema.prefix.mapping, "tag:yaml.org,2002:map", "mapping"), o = i.tag.create(i.tagName), a = Lt(n, r, o, i.tag, i.tag.carrierIsResult);
|
|
2284
2292
|
n.frames.push({
|
|
2285
2293
|
kind: "mapping",
|
|
2286
2294
|
position: n.position,
|
|
@@ -2295,17 +2303,17 @@ function ji(e, t) {
|
|
|
2295
2303
|
break;
|
|
2296
2304
|
}
|
|
2297
2305
|
case 5: {
|
|
2298
|
-
n.maxAliases !== -1 && ++n.aliasCount > n.maxAliases &&
|
|
2306
|
+
n.maxAliases !== -1 && ++n.aliasCount > n.maxAliases && ae(n, `aliases exceeded maxAliases (${n.maxAliases})`);
|
|
2299
2307
|
const i = n.source.slice(r.anchorStart, r.anchorEnd), o = n.anchors.get(i);
|
|
2300
|
-
o ||
|
|
2308
|
+
o || ae(n, `unidentified alias "${i}"`), o.isValueFinal || ae(n, `recursive alias "${i}" is not supported for tag ${o.tag.tagName} because it uses finalize()`), kt(n, o.value, o.tag);
|
|
2301
2309
|
break;
|
|
2302
2310
|
}
|
|
2303
2311
|
case 6: {
|
|
2304
2312
|
const i = n.frames.pop();
|
|
2305
|
-
if (i.kind === "mapping" && i.hasKey && (n.position = i.keyPosition,
|
|
2313
|
+
if (i.kind === "mapping" && i.hasKey && (n.position = i.keyPosition, ae(n, "incomplete mapping pair in event stream")), i.kind === "document") n.documents.push(i.value);
|
|
2306
2314
|
else {
|
|
2307
|
-
const o = i.tag.carrierIsResult ? i.value :
|
|
2308
|
-
i.anchor && (i.anchor.value = o, i.anchor.isValueFinal = !0),
|
|
2315
|
+
const o = i.tag.carrierIsResult ? i.value : Qn(n, i.position, i.tag, i.value);
|
|
2316
|
+
i.anchor && (i.anchor.value = o, i.anchor.isValueFinal = !0), kt(n, o, i.tag);
|
|
2309
2317
|
}
|
|
2310
2318
|
break;
|
|
2311
2319
|
}
|
|
@@ -2313,11 +2321,11 @@ function ji(e, t) {
|
|
|
2313
2321
|
}
|
|
2314
2322
|
return n.documents;
|
|
2315
2323
|
}
|
|
2316
|
-
var B = -1,
|
|
2324
|
+
var B = -1, Jn = Object.prototype.hasOwnProperty, qe = 1, Bt = 2, er = 3, dt = 4, Xi = /[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/, zi = /[,\[\]{}]/, tr = /^(?:!|!!|![0-9A-Za-z-]+!)$/, Dt = String.raw`(?:%[0-9A-Fa-f]{2}|[0-9A-Za-z\-#;/?:@&=+$,_.!~*'()\[\]])`, nr = String.raw`(?:%[0-9A-Fa-f]{2}|[0-9A-Za-z\-#;/?:@&=+$.~*'()_])`, Qi = new RegExp(`^(?:${Dt})*$`), Zi = new RegExp(`^(?:${nr})+$`), Ji = new RegExp(`^(?:!(?:${Dt})*|${nr}(?:${Dt})*)$`), on = {
|
|
2317
2325
|
filename: "",
|
|
2318
2326
|
maxDepth: 100
|
|
2319
2327
|
};
|
|
2320
|
-
function
|
|
2328
|
+
function eo(e, t, n) {
|
|
2321
2329
|
e.events.push({
|
|
2322
2330
|
type: 1,
|
|
2323
2331
|
explicitStart: t,
|
|
@@ -2325,7 +2333,7 @@ function Ji(e, t, n) {
|
|
|
2325
2333
|
directives: e.directives
|
|
2326
2334
|
});
|
|
2327
2335
|
}
|
|
2328
|
-
function
|
|
2336
|
+
function rr(e, t, n, r, i, o, a) {
|
|
2329
2337
|
e.events.push({
|
|
2330
2338
|
type: 2,
|
|
2331
2339
|
start: t,
|
|
@@ -2336,7 +2344,7 @@ function tr(e, t, n, r, i, o, a) {
|
|
|
2336
2344
|
style: a
|
|
2337
2345
|
});
|
|
2338
2346
|
}
|
|
2339
|
-
function
|
|
2347
|
+
function Ut(e, t, n, r, i, o, a) {
|
|
2340
2348
|
e.events.push({
|
|
2341
2349
|
type: 3,
|
|
2342
2350
|
start: t,
|
|
@@ -2347,7 +2355,7 @@ function Bt(e, t, n, r, i, o, a) {
|
|
|
2347
2355
|
style: a
|
|
2348
2356
|
});
|
|
2349
2357
|
}
|
|
2350
|
-
function
|
|
2358
|
+
function Rn(e, t) {
|
|
2351
2359
|
e.events.splice(t.eventsLength, 0, {
|
|
2352
2360
|
type: 3,
|
|
2353
2361
|
start: t.position,
|
|
@@ -2358,7 +2366,7 @@ function bn(e, t) {
|
|
|
2358
2366
|
style: 2
|
|
2359
2367
|
});
|
|
2360
2368
|
}
|
|
2361
|
-
function
|
|
2369
|
+
function Ye(e, t, n, r, i, o, a, s, l = 1, u = -1, c = !1) {
|
|
2362
2370
|
e.events.push({
|
|
2363
2371
|
type: 4,
|
|
2364
2372
|
valueStart: t,
|
|
@@ -2373,20 +2381,20 @@ function qe(e, t, n, r, i, o, a, s, l = 1, u = -1, c = !1) {
|
|
|
2373
2381
|
fast: c
|
|
2374
2382
|
});
|
|
2375
2383
|
}
|
|
2376
|
-
function
|
|
2384
|
+
function to(e, t, n) {
|
|
2377
2385
|
e.events.push({
|
|
2378
2386
|
type: 5,
|
|
2379
2387
|
anchorStart: t,
|
|
2380
2388
|
anchorEnd: n
|
|
2381
2389
|
});
|
|
2382
2390
|
}
|
|
2383
|
-
function
|
|
2391
|
+
function De(e) {
|
|
2384
2392
|
e.events.push({ type: 6 });
|
|
2385
2393
|
}
|
|
2386
|
-
function
|
|
2387
|
-
|
|
2394
|
+
function ie(e) {
|
|
2395
|
+
Ye(e, B, B, B, B, B, B, 1);
|
|
2388
2396
|
}
|
|
2389
|
-
function
|
|
2397
|
+
function xn() {
|
|
2390
2398
|
return {
|
|
2391
2399
|
anchorStart: B,
|
|
2392
2400
|
anchorEnd: B,
|
|
@@ -2394,7 +2402,7 @@ function vn() {
|
|
|
2394
2402
|
tagEnd: B
|
|
2395
2403
|
};
|
|
2396
2404
|
}
|
|
2397
|
-
function
|
|
2405
|
+
function Xe(e) {
|
|
2398
2406
|
return {
|
|
2399
2407
|
position: e.position,
|
|
2400
2408
|
line: e.line,
|
|
@@ -2404,11 +2412,11 @@ function We(e) {
|
|
|
2404
2412
|
eventsLength: e.events.length
|
|
2405
2413
|
};
|
|
2406
2414
|
}
|
|
2407
|
-
function
|
|
2415
|
+
function Ue(e, t) {
|
|
2408
2416
|
e.position = t.position, e.line = t.line, e.lineStart = t.lineStart, e.lineIndent = t.lineIndent, e.firstTabInLine = t.firstTabInLine, e.events.length = t.eventsLength;
|
|
2409
2417
|
}
|
|
2410
2418
|
function _(e, t) {
|
|
2411
|
-
|
|
2419
|
+
Ct(e.input.slice(0, e.length), e.position, t, e.filename);
|
|
2412
2420
|
}
|
|
2413
2421
|
function Z(e) {
|
|
2414
2422
|
return e === 10 || e === 13;
|
|
@@ -2416,34 +2424,34 @@ function Z(e) {
|
|
|
2416
2424
|
function Le(e) {
|
|
2417
2425
|
return e === 9 || e === 32;
|
|
2418
2426
|
}
|
|
2419
|
-
function
|
|
2427
|
+
function de(e) {
|
|
2420
2428
|
return Le(e) || Z(e);
|
|
2421
2429
|
}
|
|
2422
|
-
function
|
|
2423
|
-
return e === 0 ||
|
|
2430
|
+
function Se(e) {
|
|
2431
|
+
return e === 0 || de(e);
|
|
2424
2432
|
}
|
|
2425
2433
|
function Oe(e) {
|
|
2426
2434
|
return e === 44 || e === 91 || e === 93 || e === 123 || e === 125;
|
|
2427
2435
|
}
|
|
2428
|
-
function
|
|
2436
|
+
function no(e) {
|
|
2429
2437
|
return e >= 48 && e <= 57 ? e - 48 : -1;
|
|
2430
2438
|
}
|
|
2431
|
-
function
|
|
2439
|
+
function ro(e) {
|
|
2432
2440
|
if (e >= 48 && e <= 57) return e - 48;
|
|
2433
2441
|
const t = e | 32;
|
|
2434
2442
|
return t >= 97 && t <= 102 ? t - 97 + 10 : -1;
|
|
2435
2443
|
}
|
|
2436
|
-
function
|
|
2444
|
+
function io(e) {
|
|
2437
2445
|
return e === 120 ? 2 : e === 117 ? 4 : e === 85 ? 8 : 0;
|
|
2438
2446
|
}
|
|
2439
|
-
function
|
|
2447
|
+
function oo(e) {
|
|
2440
2448
|
return e === 48 || e === 97 || e === 98 || e === 116 || e === 9 || e === 110 || e === 118 || e === 102 || e === 114 || e === 101 || e === 32 || e === 34 || e === 47 || e === 92 || e === 78 || e === 95 || e === 76 || e === 80;
|
|
2441
2449
|
}
|
|
2442
|
-
function
|
|
2450
|
+
function ht(e) {
|
|
2443
2451
|
e.input.charCodeAt(e.position) === 10 ? e.position++ : (e.position++, e.input.charCodeAt(e.position) === 10 && e.position++), e.line++, e.lineStart = e.position, e.lineIndent = 0, e.firstTabInLine = -1;
|
|
2444
2452
|
}
|
|
2445
|
-
function
|
|
2446
|
-
let n = 0, r = e.input.charCodeAt(e.position), i = e.position === e.lineStart ||
|
|
2453
|
+
function oe(e, t) {
|
|
2454
|
+
let n = 0, r = e.input.charCodeAt(e.position), i = e.position === e.lineStart || de(e.input.charCodeAt(e.position - 1));
|
|
2447
2455
|
for (; r !== 0; ) {
|
|
2448
2456
|
for (; Le(r); )
|
|
2449
2457
|
i = !0, r === 9 && e.firstTabInLine === -1 && (e.firstTabInLine = e.position), r = e.input.charCodeAt(++e.position);
|
|
@@ -2451,7 +2459,7 @@ function ie(e, t) {
|
|
|
2451
2459
|
r = e.input.charCodeAt(++e.position);
|
|
2452
2460
|
while (!Z(r) && r !== 0);
|
|
2453
2461
|
if (!Z(r)) break;
|
|
2454
|
-
for (
|
|
2462
|
+
for (ht(e), n++, i = !0, r = e.input.charCodeAt(e.position); r === 32; )
|
|
2455
2463
|
e.lineIndent++, r = e.input.charCodeAt(++e.position);
|
|
2456
2464
|
}
|
|
2457
2465
|
return n;
|
|
@@ -2460,18 +2468,18 @@ function $e(e, t = e.position) {
|
|
|
2460
2468
|
const n = e.input.charCodeAt(t);
|
|
2461
2469
|
if ((n === 45 || n === 46) && n === e.input.charCodeAt(t + 1) && n === e.input.charCodeAt(t + 2)) {
|
|
2462
2470
|
const r = e.input.charCodeAt(t + 3);
|
|
2463
|
-
return r === 0 ||
|
|
2471
|
+
return r === 0 || de(r);
|
|
2464
2472
|
}
|
|
2465
2473
|
return !1;
|
|
2466
2474
|
}
|
|
2467
|
-
function
|
|
2475
|
+
function _n(e) {
|
|
2468
2476
|
let t = e.input.charCodeAt(e.position);
|
|
2469
2477
|
for (; t !== 0 && !Z(t); ) t = e.input.charCodeAt(++e.position);
|
|
2470
2478
|
}
|
|
2471
|
-
function
|
|
2472
|
-
|
|
2479
|
+
function ir(e, t, n) {
|
|
2480
|
+
Xi.test(e.input.slice(t, n)) && _(e, "the stream contains non-printable characters");
|
|
2473
2481
|
}
|
|
2474
|
-
function
|
|
2482
|
+
function ao(e, t, n) {
|
|
2475
2483
|
if (e.input.charCodeAt(e.position) !== 33) return !1;
|
|
2476
2484
|
t.tagStart !== B && _(e, "duplication of a tag property");
|
|
2477
2485
|
const r = e.position;
|
|
@@ -2482,30 +2490,30 @@ function oo(e, t, n) {
|
|
|
2482
2490
|
for (; s !== 0 && s !== 62; ) s = e.input.charCodeAt(++e.position);
|
|
2483
2491
|
s !== 62 && _(e, "unexpected end of the stream within a verbatim tag"), u = e.input.slice(l, e.position), e.position++;
|
|
2484
2492
|
} else {
|
|
2485
|
-
for (; s !== 0 && !
|
|
2486
|
-
s === 33 && (o ? _(e, "tag suffix cannot contain exclamation marks") : (a = e.input.slice(l - 1, e.position + 1),
|
|
2487
|
-
u = e.input.slice(l, e.position),
|
|
2493
|
+
for (; s !== 0 && !de(s) && !(n && Oe(s)); )
|
|
2494
|
+
s === 33 && (o ? _(e, "tag suffix cannot contain exclamation marks") : (a = e.input.slice(l - 1, e.position + 1), tr.test(a) || _(e, "named tag handle cannot contain such characters"), o = !0, l = e.position + 1)), s = e.input.charCodeAt(++e.position);
|
|
2495
|
+
u = e.input.slice(l, e.position), zi.test(u) && _(e, "tag suffix cannot contain flow indicator characters");
|
|
2488
2496
|
}
|
|
2489
|
-
return u && !(i ?
|
|
2497
|
+
return u && !(i ? Qi.test(u) : Zi.test(u)) && _(e, `tag name cannot contain such characters: ${u}`), !i && a !== "!" && a !== "!!" && !Jn.call(e.tagHandlers, a) && _(e, `undeclared tag handle "${a}"`), t.tagStart = r, t.tagEnd = e.position, !0;
|
|
2490
2498
|
}
|
|
2491
|
-
function
|
|
2499
|
+
function so(e, t) {
|
|
2492
2500
|
if (e.input.charCodeAt(e.position) !== 38) return !1;
|
|
2493
2501
|
t.anchorStart !== B && _(e, "duplication of an anchor property"), e.position++;
|
|
2494
2502
|
const n = e.position;
|
|
2495
|
-
for (; e.input.charCodeAt(e.position) !== 0 && !
|
|
2503
|
+
for (; e.input.charCodeAt(e.position) !== 0 && !de(e.input.charCodeAt(e.position)) && !Oe(e.input.charCodeAt(e.position)); ) e.position++;
|
|
2496
2504
|
return e.position === n && _(e, "name of an anchor node must contain at least one character"), t.anchorStart = n, t.anchorEnd = e.position, !0;
|
|
2497
2505
|
}
|
|
2498
|
-
function
|
|
2506
|
+
function lo(e, t) {
|
|
2499
2507
|
if (e.input.charCodeAt(e.position) !== 42) return !1;
|
|
2500
2508
|
(t.anchorStart !== B || t.tagStart !== B) && _(e, "alias node should not have any properties"), e.position++;
|
|
2501
2509
|
const n = e.position;
|
|
2502
|
-
for (; e.input.charCodeAt(e.position) !== 0 && !
|
|
2503
|
-
return e.position === n && _(e, "name of an alias node must contain at least one character"),
|
|
2510
|
+
for (; e.input.charCodeAt(e.position) !== 0 && !de(e.input.charCodeAt(e.position)) && !Oe(e.input.charCodeAt(e.position)); ) e.position++;
|
|
2511
|
+
return e.position === n && _(e, "name of an alias node must contain at least one character"), to(e, n, e.position), !0;
|
|
2504
2512
|
}
|
|
2505
|
-
function
|
|
2506
|
-
|
|
2513
|
+
function Kt(e, t) {
|
|
2514
|
+
oe(e, !1), e.lineIndent < t && _(e, "deficient indentation");
|
|
2507
2515
|
}
|
|
2508
|
-
function
|
|
2516
|
+
function co(e, t, n) {
|
|
2509
2517
|
if (e.input.charCodeAt(e.position) !== 39) return !1;
|
|
2510
2518
|
e.position++;
|
|
2511
2519
|
const r = e.position;
|
|
@@ -2518,13 +2526,13 @@ function lo(e, t, n) {
|
|
|
2518
2526
|
continue;
|
|
2519
2527
|
}
|
|
2520
2528
|
const a = e.position;
|
|
2521
|
-
return e.position++,
|
|
2529
|
+
return e.position++, Ye(e, r, a, n.anchorStart, n.anchorEnd, n.tagStart, n.tagEnd, 2, 1, -1, i), !0;
|
|
2522
2530
|
}
|
|
2523
|
-
Z(o) ? (i = !1,
|
|
2531
|
+
Z(o) ? (i = !1, Kt(e, t)) : e.position === e.lineStart && $e(e) ? _(e, "unexpected end of the document within a single quoted scalar") : o !== 9 && o < 32 ? _(e, "expected valid JSON character") : e.position++;
|
|
2524
2532
|
}
|
|
2525
2533
|
_(e, "unexpected end of the stream within a single quoted scalar");
|
|
2526
2534
|
}
|
|
2527
|
-
function
|
|
2535
|
+
function uo(e, t, n) {
|
|
2528
2536
|
if (e.input.charCodeAt(e.position) !== 34) return !1;
|
|
2529
2537
|
e.position++;
|
|
2530
2538
|
const r = e.position;
|
|
@@ -2533,30 +2541,30 @@ function co(e, t, n) {
|
|
|
2533
2541
|
const o = e.input.charCodeAt(e.position);
|
|
2534
2542
|
if (o === 34) {
|
|
2535
2543
|
const a = e.position;
|
|
2536
|
-
return e.position++,
|
|
2544
|
+
return e.position++, Ye(e, r, a, n.anchorStart, n.anchorEnd, n.tagStart, n.tagEnd, 3, 1, -1, i), !0;
|
|
2537
2545
|
}
|
|
2538
2546
|
if (o === 92) {
|
|
2539
2547
|
i = !1;
|
|
2540
2548
|
const a = e.input.charCodeAt(++e.position);
|
|
2541
|
-
if (Z(a))
|
|
2542
|
-
else if (
|
|
2549
|
+
if (Z(a)) Kt(e, t);
|
|
2550
|
+
else if (oo(a)) e.position++;
|
|
2543
2551
|
else {
|
|
2544
|
-
let s =
|
|
2552
|
+
let s = io(a);
|
|
2545
2553
|
for (s === 0 && _(e, "unknown escape sequence"); s-- > 0; )
|
|
2546
|
-
e.position++,
|
|
2554
|
+
e.position++, ro(e.input.charCodeAt(e.position)) < 0 && _(e, "expected hexadecimal character");
|
|
2547
2555
|
e.position++;
|
|
2548
2556
|
}
|
|
2549
|
-
} else Z(o) ? (i = !1,
|
|
2557
|
+
} else Z(o) ? (i = !1, Kt(e, t)) : e.position === e.lineStart && $e(e) ? _(e, "unexpected end of the document within a double quoted scalar") : o !== 9 && o < 32 ? _(e, "expected valid JSON character") : e.position++;
|
|
2550
2558
|
}
|
|
2551
2559
|
_(e, "unexpected end of the stream within a double quoted scalar");
|
|
2552
2560
|
}
|
|
2553
|
-
function
|
|
2561
|
+
function fo(e, t, n) {
|
|
2554
2562
|
const r = e.input.charCodeAt(e.position);
|
|
2555
2563
|
let i = 1, o = -1, a = !1;
|
|
2556
2564
|
if (r !== 124 && r !== 62) return !1;
|
|
2557
2565
|
const s = r === 124 ? 4 : 5;
|
|
2558
2566
|
for (e.position++; e.input.charCodeAt(e.position) !== 0; ) {
|
|
2559
|
-
const C = e.input.charCodeAt(e.position), E =
|
|
2567
|
+
const C = e.input.charCodeAt(e.position), E = no(C);
|
|
2560
2568
|
if (C === 43 || C === 45)
|
|
2561
2569
|
i !== 1 && _(e, "repeat of a chomping mode identifier"), i = C === 43 ? 3 : 2, e.position++;
|
|
2562
2570
|
else if (E >= 0)
|
|
@@ -2566,7 +2574,7 @@ function uo(e, t, n) {
|
|
|
2566
2574
|
let l = !1;
|
|
2567
2575
|
for (; Le(e.input.charCodeAt(e.position)); )
|
|
2568
2576
|
l = !0, e.position++;
|
|
2569
|
-
l && e.input.charCodeAt(e.position) === 35 &&
|
|
2577
|
+
l && e.input.charCodeAt(e.position) === 35 && _n(e), Z(e.input.charCodeAt(e.position)) ? ht(e) : e.input.charCodeAt(e.position) !== 0 && _(e, "a line break is expected");
|
|
2570
2578
|
let u = a ? o : -1, c = 0;
|
|
2571
2579
|
const S = e.position;
|
|
2572
2580
|
let m = e.position;
|
|
@@ -2590,36 +2598,36 @@ function uo(e, t, n) {
|
|
|
2590
2598
|
e.lineIndent = E, e.position = C + E;
|
|
2591
2599
|
break;
|
|
2592
2600
|
}
|
|
2593
|
-
|
|
2601
|
+
_n(e), m = e.position, Z(e.input.charCodeAt(e.position)) && (ht(e), m = e.position);
|
|
2594
2602
|
}
|
|
2595
|
-
return
|
|
2603
|
+
return ir(e, S, m), Ye(e, S, m, n.anchorStart, n.anchorEnd, n.tagStart, n.tagEnd, s, i, u), !0;
|
|
2596
2604
|
}
|
|
2597
|
-
function
|
|
2598
|
-
const n = e.input.charCodeAt(e.position), r = t ===
|
|
2599
|
-
if (n === 0 ||
|
|
2605
|
+
function po(e, t) {
|
|
2606
|
+
const n = e.input.charCodeAt(e.position), r = t === qe;
|
|
2607
|
+
if (n === 0 || de(n) || n === 35 || n === 38 || n === 42 || n === 33 || n === 124 || n === 62 || n === 39 || n === 34 || n === 37 || n === 64 || n === 96 || r && Oe(n)) return !1;
|
|
2600
2608
|
if (n === 63 || n === 45) {
|
|
2601
2609
|
const i = e.input.charCodeAt(e.position + 1);
|
|
2602
|
-
if (
|
|
2610
|
+
if (Se(i) || r && Oe(i)) return !1;
|
|
2603
2611
|
}
|
|
2604
2612
|
return !0;
|
|
2605
2613
|
}
|
|
2606
|
-
function
|
|
2607
|
-
if (!
|
|
2614
|
+
function ho(e, t, n, r) {
|
|
2615
|
+
if (!po(e, n)) return !1;
|
|
2608
2616
|
const i = e.position;
|
|
2609
2617
|
let o = e.position, a = e.input.charCodeAt(e.position);
|
|
2610
|
-
const s = n ===
|
|
2618
|
+
const s = n === qe;
|
|
2611
2619
|
let l = !1;
|
|
2612
2620
|
for (; a !== 0 && !(e.position === e.lineStart && $e(e)); ) {
|
|
2613
2621
|
if (a === 58) {
|
|
2614
2622
|
const u = e.input.charCodeAt(e.position + 1);
|
|
2615
|
-
if (
|
|
2623
|
+
if (Se(u) || s && Oe(u)) break;
|
|
2616
2624
|
} else if (a === 35) {
|
|
2617
|
-
if (
|
|
2625
|
+
if (de(e.input.charCodeAt(e.position - 1))) break;
|
|
2618
2626
|
} else {
|
|
2619
2627
|
if (s && Oe(a)) break;
|
|
2620
2628
|
if (Z(a)) {
|
|
2621
2629
|
const u = e.position, c = e.line, S = e.lineStart, m = e.lineIndent;
|
|
2622
|
-
if (
|
|
2630
|
+
if (oe(e, !1), e.lineIndent >= t) {
|
|
2623
2631
|
l = !0, a = e.input.charCodeAt(e.position);
|
|
2624
2632
|
continue;
|
|
2625
2633
|
}
|
|
@@ -2629,122 +2637,122 @@ function po(e, t, n, r) {
|
|
|
2629
2637
|
}
|
|
2630
2638
|
Le(a) || (o = e.position + 1), a = e.input.charCodeAt(++e.position);
|
|
2631
2639
|
}
|
|
2632
|
-
return o === i ? !1 : (
|
|
2640
|
+
return o === i ? !1 : (ir(e, i, o), Ye(e, i, o, r.anchorStart, r.anchorEnd, r.tagStart, r.tagEnd, 1, 1, -1, !l), !0);
|
|
2633
2641
|
}
|
|
2634
|
-
function
|
|
2642
|
+
function je(e, t) {
|
|
2635
2643
|
const n = e.line;
|
|
2636
|
-
|
|
2644
|
+
oe(e, !0), (e.line > n && e.lineIndent < t || e.firstTabInLine !== -1 && e.lineIndent < t) && _(e, "deficient indentation");
|
|
2637
2645
|
}
|
|
2638
|
-
function
|
|
2646
|
+
function go(e, t, n) {
|
|
2639
2647
|
const r = e.input.charCodeAt(e.position), i = r === 123, o = e.position;
|
|
2640
2648
|
let a = !0;
|
|
2641
2649
|
if (r !== 91 && r !== 123) return !1;
|
|
2642
2650
|
const s = i ? 125 : 93;
|
|
2643
|
-
for (i ?
|
|
2644
|
-
|
|
2651
|
+
for (i ? Ut(e, o, n.anchorStart, n.anchorEnd, n.tagStart, n.tagEnd, 2) : rr(e, o, n.anchorStart, n.anchorEnd, n.tagStart, n.tagEnd, 2), e.position++; e.input.charCodeAt(e.position) !== 0; ) {
|
|
2652
|
+
je(e, t);
|
|
2645
2653
|
let l = e.input.charCodeAt(e.position);
|
|
2646
2654
|
if (l === s)
|
|
2647
|
-
return e.position++,
|
|
2655
|
+
return e.position++, De(e), !0;
|
|
2648
2656
|
a ? l === 44 && _(e, "expected the node content, but found ','") : _(e, "missed comma between flow collection entries");
|
|
2649
2657
|
let u = !1, c = !1;
|
|
2650
|
-
l === 63 &&
|
|
2651
|
-
const S = e.line, m =
|
|
2652
|
-
|
|
2658
|
+
l === 63 && de(e.input.charCodeAt(e.position + 1)) && (u = c = !0, e.position += 1, je(e, t));
|
|
2659
|
+
const S = e.line, m = Xe(e), C = ke(e, t, qe, !1, !0);
|
|
2660
|
+
je(e, t), l = e.input.charCodeAt(e.position), (i || c || e.line === S) && l === 58 ? (u = !0, e.position++, je(e, t), i || Rn(e, m), C || ie(e), ke(e, t, qe, !1, !0) || ie(e), je(e, t), i || De(e)) : i && u ? (C || ie(e), ie(e)) : i ? ie(e) : u && (Rn(e, m), C || ie(e), ie(e), De(e)), l = e.input.charCodeAt(e.position), l === 44 ? (a = !0, e.position++) : a = !1;
|
|
2653
2661
|
}
|
|
2654
2662
|
_(e, "unexpected end of the stream within a flow collection");
|
|
2655
2663
|
}
|
|
2656
|
-
function
|
|
2657
|
-
if (e.firstTabInLine !== -1 || e.input.charCodeAt(e.position) !== 45 || !
|
|
2658
|
-
for (
|
|
2664
|
+
function wn(e, t, n) {
|
|
2665
|
+
if (e.firstTabInLine !== -1 || e.input.charCodeAt(e.position) !== 45 || !Se(e.input.charCodeAt(e.position + 1))) return !1;
|
|
2666
|
+
for (rr(e, e.position, n.anchorStart, n.anchorEnd, n.tagStart, n.tagEnd, 1); e.input.charCodeAt(e.position) === 45 && Se(e.input.charCodeAt(e.position + 1)); ) {
|
|
2659
2667
|
e.firstTabInLine !== -1 && (e.position = e.firstTabInLine, _(e, "tab characters must not be used in indentation"));
|
|
2660
2668
|
const r = e.line;
|
|
2661
2669
|
e.position++;
|
|
2662
|
-
const i =
|
|
2663
|
-
if (e.firstTabInLine !== -1 && e.input.charCodeAt(e.position) === 45 &&
|
|
2664
|
-
e.lineIndent > t && _(e, "bad indentation of a sequence entry"), e.line === r && e.input.charCodeAt(e.position) === 45 &&
|
|
2670
|
+
const i = oe(e, !0) > 0;
|
|
2671
|
+
if (e.firstTabInLine !== -1 && e.input.charCodeAt(e.position) === 45 && Se(e.input.charCodeAt(e.position + 1)) && _(e, "bad indentation of a sequence entry"), i && e.lineIndent <= t ? ie(e) : ke(e, t, er, !1, !0), oe(e, !0), e.lineIndent < t || e.position >= e.length) break;
|
|
2672
|
+
e.lineIndent > t && _(e, "bad indentation of a sequence entry"), e.line === r && e.input.charCodeAt(e.position) === 45 && Se(e.input.charCodeAt(e.position + 1)) && _(e, "bad indentation of a sequence entry");
|
|
2665
2673
|
}
|
|
2666
|
-
return
|
|
2674
|
+
return De(e), !0;
|
|
2667
2675
|
}
|
|
2668
|
-
function
|
|
2676
|
+
function Ot(e, t, n, r) {
|
|
2669
2677
|
let i = !1, o = !1, a = !1, s = !1;
|
|
2670
2678
|
if (e.firstTabInLine !== -1) return !1;
|
|
2671
2679
|
let l = e.input.charCodeAt(e.position);
|
|
2672
2680
|
for (; l !== 0; ) {
|
|
2673
2681
|
!i && e.firstTabInLine !== -1 && (e.position = e.firstTabInLine, _(e, "tab characters must not be used in indentation"));
|
|
2674
2682
|
const u = e.input.charCodeAt(e.position + 1), c = e.line;
|
|
2675
|
-
if ((l === 63 || l === 58) &&
|
|
2676
|
-
a || (
|
|
2683
|
+
if ((l === 63 || l === 58) && Se(u))
|
|
2684
|
+
a || (Ut(e, e.position, r.anchorStart, r.anchorEnd, r.tagStart, r.tagEnd, 1), a = !0), l === 63 ? (i && ie(e), o = !0, i = !0) : (i || (ie(e), o = !0), i = !1), e.position += 1, s = !0;
|
|
2677
2685
|
else {
|
|
2678
|
-
i && (
|
|
2679
|
-
const S =
|
|
2680
|
-
if (!ke(e, n,
|
|
2686
|
+
i && (ie(e), i = !1);
|
|
2687
|
+
const S = Xe(e);
|
|
2688
|
+
if (!ke(e, n, Bt, !1, !0)) break;
|
|
2681
2689
|
if (e.line === c) {
|
|
2682
2690
|
for (l = e.input.charCodeAt(e.position); Le(l); ) l = e.input.charCodeAt(++e.position);
|
|
2683
2691
|
if (l === 58) {
|
|
2684
|
-
if (l = e.input.charCodeAt(++e.position),
|
|
2685
|
-
for (
|
|
2692
|
+
if (l = e.input.charCodeAt(++e.position), Se(l) || _(e, "a whitespace character is expected after the key-value separator within a block mapping"), !a) {
|
|
2693
|
+
for (Ue(e, S), Ut(e, S.position, r.anchorStart, r.anchorEnd, r.tagStart, r.tagEnd, 1), a = !0, ke(e, n, Bt, !1, !0), l = e.input.charCodeAt(e.position); Le(l); ) l = e.input.charCodeAt(++e.position);
|
|
2686
2694
|
e.position++;
|
|
2687
2695
|
}
|
|
2688
2696
|
o = !0, i = !1, s = !1;
|
|
2689
2697
|
} else if (o) _(e, "expected ':' after a mapping key");
|
|
2690
2698
|
else
|
|
2691
|
-
return r.anchorStart !== B || r.tagStart !== B ? (
|
|
2699
|
+
return r.anchorStart !== B || r.tagStart !== B ? (Ue(e, S), !1) : !0;
|
|
2692
2700
|
} else if (o) _(e, "can not read a block mapping entry; a multiline key may not be an implicit key");
|
|
2693
2701
|
else
|
|
2694
|
-
return r.anchorStart !== B || r.tagStart !== B ? (
|
|
2702
|
+
return r.anchorStart !== B || r.tagStart !== B ? (Ue(e, S), !1) : !0;
|
|
2695
2703
|
}
|
|
2696
|
-
if (ke(e, t,
|
|
2704
|
+
if (ke(e, t, dt, !0, s) && (s = !1), i || s && (ie(e), s = !1), oe(e, !0), l = e.input.charCodeAt(e.position), (e.line === c || e.lineIndent > t) && l !== 0) _(e, "bad indentation of a mapping entry");
|
|
2697
2705
|
else if (e.lineIndent < t) break;
|
|
2698
2706
|
}
|
|
2699
|
-
return o ? (i &&
|
|
2707
|
+
return o ? (i && ie(e), a && De(e), !0) : !1;
|
|
2700
2708
|
}
|
|
2701
2709
|
function ke(e, t, n, r, i, o = !0) {
|
|
2702
2710
|
e.depth >= e.maxDepth && _(e, `nesting exceeded maxDepth (${e.maxDepth})`), e.depth++;
|
|
2703
2711
|
let a = 1, s = !1, l = !1, u = null;
|
|
2704
|
-
const c =
|
|
2705
|
-
let S = n ===
|
|
2712
|
+
const c = xn();
|
|
2713
|
+
let S = n === dt || n === er, m = S;
|
|
2706
2714
|
const C = S;
|
|
2707
|
-
if (r &&
|
|
2708
|
-
const E = e.input.charCodeAt(e.position), w =
|
|
2715
|
+
if (r && oe(e, !0) && (s = !0, e.lineIndent > t ? a = 1 : e.lineIndent === t ? a = 0 : a = -1), a === 1) for (; ; ) {
|
|
2716
|
+
const E = e.input.charCodeAt(e.position), w = Xe(e);
|
|
2709
2717
|
if (s && a !== 1 && (E === 33 || E === 38)) break;
|
|
2710
2718
|
if (s && C && (c.tagStart !== B || c.anchorStart !== B) && (E === 33 || E === 38)) {
|
|
2711
|
-
const M =
|
|
2712
|
-
if (
|
|
2719
|
+
const M = Xe(e), N = t + 1;
|
|
2720
|
+
if (Ot(e, e.position - e.lineStart, N, c) && e.events[M.eventsLength]?.type === 3)
|
|
2713
2721
|
return e.depth--, !0;
|
|
2714
|
-
|
|
2722
|
+
Ue(e, M);
|
|
2715
2723
|
}
|
|
2716
|
-
if (s && (E === 33 && c.tagStart !== B || E === 38 && c.anchorStart !== B) || !
|
|
2717
|
-
u === null && (u = w),
|
|
2724
|
+
if (s && (E === 33 && c.tagStart !== B || E === 38 && c.anchorStart !== B) || !ao(e, c, n === qe) && !so(e, c)) break;
|
|
2725
|
+
u === null && (u = w), oe(e, !0) ? (s = !0, m = C, e.lineIndent > t ? a = 1 : e.lineIndent === t ? a = 0 : a = -1) : m = !1;
|
|
2718
2726
|
}
|
|
2719
|
-
if (m && (m = s || i), a === 1 || n ===
|
|
2720
|
-
const E = n ===
|
|
2721
|
-
if (a === 1) if (m && (
|
|
2727
|
+
if (m && (m = s || i), a === 1 || n === dt) {
|
|
2728
|
+
const E = n === qe || n === Bt ? t : t + 1, w = e.position - e.lineStart;
|
|
2729
|
+
if (a === 1) if (m && (wn(e, w, c) || Ot(e, w, E, c)) || go(e, E, c)) l = !0;
|
|
2722
2730
|
else {
|
|
2723
2731
|
const M = e.input.charCodeAt(e.position);
|
|
2724
2732
|
if (u !== null && o && C && !m && M !== 124 && M !== 62) {
|
|
2725
|
-
const N =
|
|
2726
|
-
|
|
2733
|
+
const N = Xe(e), k = u.position - u.lineStart;
|
|
2734
|
+
Ue(e, u), Ot(e, k, E, xn()) && e.events[N.eventsLength]?.type === 3 ? l = !0 : Ue(e, N);
|
|
2727
2735
|
}
|
|
2728
|
-
!l && (S &&
|
|
2736
|
+
!l && (S && fo(e, E, c) || co(e, E, c) || uo(e, E, c) || lo(e, c) || ho(e, E, n, c)) && (l = !0);
|
|
2729
2737
|
}
|
|
2730
|
-
else a === 0 && (l = m &&
|
|
2738
|
+
else a === 0 && (l = m && wn(e, w, c));
|
|
2731
2739
|
}
|
|
2732
|
-
return S = S && !l, !l && (c.anchorStart !== B || c.tagStart !== B || S) && (
|
|
2740
|
+
return S = S && !l, !l && (c.anchorStart !== B || c.tagStart !== B || S) && (Ye(e, B, B, c.anchorStart, c.anchorEnd, c.tagStart, c.tagEnd, 1), l = !0), e.depth--, l || c.anchorStart !== B || c.tagStart !== B;
|
|
2733
2741
|
}
|
|
2734
|
-
function
|
|
2742
|
+
function mo(e) {
|
|
2735
2743
|
if (e.lineIndent > 0 || e.input.charCodeAt(e.position) !== 37) return !1;
|
|
2736
2744
|
e.position++;
|
|
2737
2745
|
const t = e.position;
|
|
2738
|
-
for (; e.input.charCodeAt(e.position) !== 0 && !
|
|
2746
|
+
for (; e.input.charCodeAt(e.position) !== 0 && !de(e.input.charCodeAt(e.position)); ) e.position++;
|
|
2739
2747
|
const n = e.input.slice(t, e.position), r = [];
|
|
2740
2748
|
for (n.length === 0 && _(e, "directive name must not be less than one character in length"); e.input.charCodeAt(e.position) !== 0 && !Z(e.input.charCodeAt(e.position)); ) {
|
|
2741
2749
|
for (; Le(e.input.charCodeAt(e.position)); ) e.position++;
|
|
2742
2750
|
if (e.input.charCodeAt(e.position) === 35 || Z(e.input.charCodeAt(e.position)) || e.input.charCodeAt(e.position) === 0) break;
|
|
2743
2751
|
const i = e.position;
|
|
2744
|
-
for (; e.input.charCodeAt(e.position) !== 0 && !
|
|
2752
|
+
for (; e.input.charCodeAt(e.position) !== 0 && !de(e.input.charCodeAt(e.position)); ) e.position++;
|
|
2745
2753
|
r.push(e.input.slice(i, e.position));
|
|
2746
2754
|
}
|
|
2747
|
-
if (Z(e.input.charCodeAt(e.position)) &&
|
|
2755
|
+
if (Z(e.input.charCodeAt(e.position)) && ht(e), n === "YAML") {
|
|
2748
2756
|
e.directives.some((o) => o.kind === "yaml") && _(e, "duplication of %YAML directive"), r.length !== 1 && _(e, "YAML directive accepts exactly one argument");
|
|
2749
2757
|
const i = /^([0-9]+)\.([0-9]+)$/.exec(r[0]);
|
|
2750
2758
|
i === null && _(e, "ill-formed argument of the YAML directive"), parseInt(i[1], 10) !== 1 && _(e, "unacceptable YAML version of the document"), e.directives.push({
|
|
@@ -2754,7 +2762,7 @@ function go(e) {
|
|
|
2754
2762
|
} else if (n === "TAG") {
|
|
2755
2763
|
r.length !== 2 && _(e, "TAG directive accepts exactly two arguments");
|
|
2756
2764
|
const [i, o] = r;
|
|
2757
|
-
|
|
2765
|
+
tr.test(i) || _(e, "ill-formed tag handle (first argument) of the TAG directive"), Jn.call(e.tagHandlers, i) && _(e, `there is a previously declared suffix for "${i}" tag handle`), Ji.test(o) || _(e, "ill-formed tag prefix (second argument) of the TAG directive"), e.tagHandlers[i] = o, e.directives.push({
|
|
2758
2766
|
kind: "tag",
|
|
2759
2767
|
handle: i,
|
|
2760
2768
|
prefix: o
|
|
@@ -2762,32 +2770,32 @@ function go(e) {
|
|
|
2762
2770
|
}
|
|
2763
2771
|
return !0;
|
|
2764
2772
|
}
|
|
2765
|
-
function
|
|
2773
|
+
function Ao(e) {
|
|
2766
2774
|
e.directives = [], e.tagHandlers = /* @__PURE__ */ Object.create(null);
|
|
2767
2775
|
let t = !1;
|
|
2768
|
-
for (
|
|
2769
|
-
t = !0,
|
|
2776
|
+
for (oe(e, !0); mo(e); )
|
|
2777
|
+
t = !0, oe(e, !0);
|
|
2770
2778
|
let n = !1, r = !1, i = !0;
|
|
2771
|
-
if (e.lineIndent === 0 && e.input.charCodeAt(e.position) === 45 && e.input.charCodeAt(e.position + 1) === 45 && e.input.charCodeAt(e.position + 2) === 45 &&
|
|
2779
|
+
if (e.lineIndent === 0 && e.input.charCodeAt(e.position) === 45 && e.input.charCodeAt(e.position + 1) === 45 && e.input.charCodeAt(e.position + 2) === 45 && Se(e.input.charCodeAt(e.position + 3))) {
|
|
2772
2780
|
n = !0;
|
|
2773
2781
|
const s = e.line;
|
|
2774
|
-
e.position += 3,
|
|
2782
|
+
e.position += 3, oe(e, !0), i = e.line > s;
|
|
2775
2783
|
} else t && _(e, "directives end mark is expected");
|
|
2776
2784
|
const o = e.events.length;
|
|
2777
2785
|
if (!n && e.position === e.lineStart && e.input.charCodeAt(e.position) === 46 && $e(e)) {
|
|
2778
|
-
e.position += 3,
|
|
2786
|
+
e.position += 3, oe(e, !0);
|
|
2779
2787
|
return;
|
|
2780
2788
|
}
|
|
2781
|
-
if (
|
|
2789
|
+
if (eo(e, n, !1), ke(e, e.lineIndent - 1, dt, !1, i, i) || ie(e), oe(e, !0), e.position === e.lineStart && $e(e) && (r = e.input.charCodeAt(e.position) === 46, r)) {
|
|
2782
2790
|
const s = e.line;
|
|
2783
|
-
e.position += 3,
|
|
2791
|
+
e.position += 3, oe(e, !0), e.line === s && e.position < e.length && _(e, "end of the stream or a document separator is expected");
|
|
2784
2792
|
}
|
|
2785
2793
|
const a = e.events[o];
|
|
2786
|
-
a?.type === 1 && (a.explicitEnd = r),
|
|
2794
|
+
a?.type === 1 && (a.explicitEnd = r), De(e), !r && e.position < e.length && !(e.position === e.lineStart && $e(e)) && _(e, "end of the stream or a document separator is expected");
|
|
2787
2795
|
}
|
|
2788
|
-
function
|
|
2796
|
+
function yo(e, t) {
|
|
2789
2797
|
const n = e.length, r = {
|
|
2790
|
-
...
|
|
2798
|
+
...on,
|
|
2791
2799
|
...t,
|
|
2792
2800
|
input: `${e}\0`,
|
|
2793
2801
|
length: n,
|
|
@@ -2801,34 +2809,34 @@ function Ao(e, t) {
|
|
|
2801
2809
|
tagHandlers: /* @__PURE__ */ Object.create(null),
|
|
2802
2810
|
events: []
|
|
2803
2811
|
}, i = e.indexOf("\0");
|
|
2804
|
-
for (i !== -1 &&
|
|
2812
|
+
for (i !== -1 && Ct(e, i, "null byte is not allowed in input", r.filename), r.input.charCodeAt(r.position) === 65279 && r.position++; r.position < r.length && (oe(r, !0), !(r.position >= r.length)); ) {
|
|
2805
2813
|
const o = r.position;
|
|
2806
|
-
|
|
2814
|
+
Ao(r), r.position === o && _(r, "can not read a document");
|
|
2807
2815
|
}
|
|
2808
2816
|
return r.events;
|
|
2809
2817
|
}
|
|
2810
|
-
var
|
|
2811
|
-
...
|
|
2812
|
-
...
|
|
2818
|
+
var So = {
|
|
2819
|
+
...on,
|
|
2820
|
+
...rn
|
|
2813
2821
|
};
|
|
2814
|
-
function
|
|
2822
|
+
function Eo(e, t = {}) {
|
|
2815
2823
|
const n = {
|
|
2816
|
-
...
|
|
2824
|
+
...So,
|
|
2817
2825
|
...t
|
|
2818
|
-
}, r = String(e), i = Object.keys(
|
|
2819
|
-
return
|
|
2820
|
-
...
|
|
2826
|
+
}, r = String(e), i = Object.keys(on), o = Object.keys(rn);
|
|
2827
|
+
return Vi(yo(r, Mt(n, i)), {
|
|
2828
|
+
...Mt(n, o),
|
|
2821
2829
|
source: r
|
|
2822
2830
|
});
|
|
2823
2831
|
}
|
|
2824
|
-
function
|
|
2832
|
+
function Co(e, t, n) {
|
|
2825
2833
|
let r = null;
|
|
2826
2834
|
typeof t == "function" ? r = t : t !== null && typeof t == "object" && (n = t);
|
|
2827
|
-
const i =
|
|
2835
|
+
const i = Eo(e, n);
|
|
2828
2836
|
if (r === null) return i;
|
|
2829
2837
|
for (const o of i) r(o);
|
|
2830
2838
|
}
|
|
2831
|
-
var
|
|
2839
|
+
var rt = class {
|
|
2832
2840
|
tagged = !1;
|
|
2833
2841
|
flow = !1;
|
|
2834
2842
|
singleQuoted = !1;
|
|
@@ -2836,7 +2844,7 @@ var tt = class {
|
|
|
2836
2844
|
literal = !1;
|
|
2837
2845
|
folded = !1;
|
|
2838
2846
|
}, Ie = /* @__PURE__ */ Symbol("INVALID");
|
|
2839
|
-
function
|
|
2847
|
+
function To(e) {
|
|
2840
2848
|
const t = new Set([
|
|
2841
2849
|
e.defaultScalarTag,
|
|
2842
2850
|
e.defaultSequenceTag,
|
|
@@ -2857,7 +2865,7 @@ function Co(e) {
|
|
|
2857
2865
|
}))
|
|
2858
2866
|
];
|
|
2859
2867
|
}
|
|
2860
|
-
function
|
|
2868
|
+
function bo(e, t) {
|
|
2861
2869
|
for (let n = 0, r = e.representTypes.length; n < r; n += 1) {
|
|
2862
2870
|
const { tag: i, implicitTag: o } = e.representTypes[n];
|
|
2863
2871
|
if (i.identify && i.identify(t)) {
|
|
@@ -2871,25 +2879,25 @@ function To(e, t) {
|
|
|
2871
2879
|
}
|
|
2872
2880
|
return null;
|
|
2873
2881
|
}
|
|
2874
|
-
function
|
|
2882
|
+
function Ve(e, t) {
|
|
2875
2883
|
if (!e.noRefs && t !== null && typeof t == "object") {
|
|
2876
2884
|
const c = e.refs.get(t);
|
|
2877
2885
|
if (c)
|
|
2878
2886
|
return c.anchor === void 0 && (c.anchor = `ref_${e.refCounter++}`), {
|
|
2879
2887
|
kind: "alias",
|
|
2880
2888
|
tag: "",
|
|
2881
|
-
style: new
|
|
2889
|
+
style: new rt(),
|
|
2882
2890
|
anchor: c.anchor
|
|
2883
2891
|
};
|
|
2884
2892
|
}
|
|
2885
|
-
const n =
|
|
2893
|
+
const n = bo(e, t);
|
|
2886
2894
|
if (!n) {
|
|
2887
2895
|
if (t === void 0 || e.skipInvalid) return Ie;
|
|
2888
|
-
throw new
|
|
2896
|
+
throw new Et(`unacceptable kind of an object to dump ${Object.prototype.toString.call(t)}`);
|
|
2889
2897
|
}
|
|
2890
|
-
const { tag: r, tagName: i, implicitTag: o } = n, a = o ? i :
|
|
2898
|
+
const { tag: r, tagName: i, implicitTag: o } = n, a = o ? i : zn(i);
|
|
2891
2899
|
if (r.nodeKind === "scalar") {
|
|
2892
|
-
const c = new
|
|
2900
|
+
const c = new rt();
|
|
2893
2901
|
return c.tagged = !o, {
|
|
2894
2902
|
kind: "scalar",
|
|
2895
2903
|
tag: a,
|
|
@@ -2898,7 +2906,7 @@ function Ye(e, t) {
|
|
|
2898
2906
|
};
|
|
2899
2907
|
}
|
|
2900
2908
|
if (r.nodeKind === "sequence") {
|
|
2901
|
-
const c = r.represent(t), S = new
|
|
2909
|
+
const c = r.represent(t), S = new rt();
|
|
2902
2910
|
S.tagged = !o;
|
|
2903
2911
|
const m = {
|
|
2904
2912
|
kind: "sequence",
|
|
@@ -2908,12 +2916,12 @@ function Ye(e, t) {
|
|
|
2908
2916
|
};
|
|
2909
2917
|
e.noRefs || e.refs.set(t, m);
|
|
2910
2918
|
for (let C = 0, E = c.length; C < E; C += 1) {
|
|
2911
|
-
let w =
|
|
2912
|
-
w === Ie && c[C] === void 0 && (w =
|
|
2919
|
+
let w = Ve(e, c[C]);
|
|
2920
|
+
w === Ie && c[C] === void 0 && (w = Ve(e, null)), w !== Ie && m.items.push(w);
|
|
2913
2921
|
}
|
|
2914
2922
|
return m;
|
|
2915
2923
|
}
|
|
2916
|
-
const s = r.represent(t), l = new
|
|
2924
|
+
const s = r.represent(t), l = new rt();
|
|
2917
2925
|
l.tagged = !o;
|
|
2918
2926
|
const u = {
|
|
2919
2927
|
kind: "mapping",
|
|
@@ -2923,9 +2931,9 @@ function Ye(e, t) {
|
|
|
2923
2931
|
};
|
|
2924
2932
|
e.noRefs || e.refs.set(t, u);
|
|
2925
2933
|
for (const [c, S] of s) {
|
|
2926
|
-
const m =
|
|
2934
|
+
const m = Ve(e, c);
|
|
2927
2935
|
if (m === Ie) continue;
|
|
2928
|
-
const C =
|
|
2936
|
+
const C = Ve(e, S);
|
|
2929
2937
|
C !== Ie && u.items.push({
|
|
2930
2938
|
key: m,
|
|
2931
2939
|
value: C
|
|
@@ -2933,9 +2941,9 @@ function Ye(e, t) {
|
|
|
2933
2941
|
}
|
|
2934
2942
|
return u;
|
|
2935
2943
|
}
|
|
2936
|
-
function
|
|
2937
|
-
const r =
|
|
2938
|
-
representTypes:
|
|
2944
|
+
function vo(e, t, n = {}) {
|
|
2945
|
+
const r = Ve({
|
|
2946
|
+
representTypes: To(t),
|
|
2939
2947
|
noRefs: n.noRefs ?? !1,
|
|
2940
2948
|
skipInvalid: n.skipInvalid ?? !1,
|
|
2941
2949
|
refs: /* @__PURE__ */ new Map(),
|
|
@@ -2946,15 +2954,15 @@ function bo(e, t, n = {}) {
|
|
|
2946
2954
|
directives: []
|
|
2947
2955
|
}];
|
|
2948
2956
|
}
|
|
2949
|
-
var
|
|
2950
|
-
function
|
|
2957
|
+
var Ro = /* @__PURE__ */ Symbol("visit:break"), or = /* @__PURE__ */ Symbol("visit:skip");
|
|
2958
|
+
function ut(e, t, n) {
|
|
2951
2959
|
const r = t(e, n);
|
|
2952
|
-
if (r ===
|
|
2953
|
-
if (r ===
|
|
2960
|
+
if (r === Ro) return !0;
|
|
2961
|
+
if (r === or) return !1;
|
|
2954
2962
|
const i = n.depth + 1;
|
|
2955
2963
|
switch (e.kind) {
|
|
2956
2964
|
case "sequence":
|
|
2957
|
-
for (const o of e.items) if (
|
|
2965
|
+
for (const o of e.items) if (ut(o, t, {
|
|
2958
2966
|
depth: i,
|
|
2959
2967
|
parent: e,
|
|
2960
2968
|
isKey: !1
|
|
@@ -2962,11 +2970,11 @@ function lt(e, t, n) {
|
|
|
2962
2970
|
break;
|
|
2963
2971
|
case "mapping":
|
|
2964
2972
|
for (const { key: o, value: a } of e.items)
|
|
2965
|
-
if (
|
|
2973
|
+
if (ut(o, t, {
|
|
2966
2974
|
depth: i,
|
|
2967
2975
|
parent: e,
|
|
2968
2976
|
isKey: !0
|
|
2969
|
-
}) ||
|
|
2977
|
+
}) || ut(a, t, {
|
|
2970
2978
|
depth: i,
|
|
2971
2979
|
parent: e,
|
|
2972
2980
|
isKey: !1
|
|
@@ -2975,14 +2983,14 @@ function lt(e, t, n) {
|
|
|
2975
2983
|
}
|
|
2976
2984
|
return !1;
|
|
2977
2985
|
}
|
|
2978
|
-
function
|
|
2979
|
-
for (const n of e) if (n.contents &&
|
|
2986
|
+
function xo(e, t) {
|
|
2987
|
+
for (const n of e) if (n.contents && ut(n.contents, t, {
|
|
2980
2988
|
depth: 0,
|
|
2981
2989
|
parent: null,
|
|
2982
2990
|
isKey: !1
|
|
2983
2991
|
})) return;
|
|
2984
2992
|
}
|
|
2985
|
-
var
|
|
2993
|
+
var an = 65279, _o = 9, Pe = 10, ar = 13, wo = 32, Io = 33, sr = 34, qt = 35, No = 37, $o = 38, lr = 39, ko = 42, Gt = 44, sn = 45, Ze = 58, Lo = 61, Oo = 62, cr = 63, Po = 64, Yt = 91, Wt = 93, Fo = 96, jt = 123, Ho = 124, Vt = 125, te = {};
|
|
2986
2994
|
te[0] = "\\0";
|
|
2987
2995
|
te[7] = "\\a";
|
|
2988
2996
|
te[8] = "\\b";
|
|
@@ -2998,7 +3006,7 @@ te[133] = "\\N";
|
|
|
2998
3006
|
te[160] = "\\_";
|
|
2999
3007
|
te[8232] = "\\L";
|
|
3000
3008
|
te[8233] = "\\P";
|
|
3001
|
-
var
|
|
3009
|
+
var ln = {
|
|
3002
3010
|
indent: 2,
|
|
3003
3011
|
seqNoIndent: !1,
|
|
3004
3012
|
seqInlineFirst: !0,
|
|
@@ -3012,12 +3020,12 @@ var an = {
|
|
|
3012
3020
|
forceQuotes: !1,
|
|
3013
3021
|
tagBeforeAnchor: !1
|
|
3014
3022
|
};
|
|
3015
|
-
function Ho(e) {
|
|
3016
|
-
return e.style.tagged ? e.tag : Vn(e.tag);
|
|
3017
|
-
}
|
|
3018
3023
|
function Mo(e) {
|
|
3024
|
+
return e.style.tagged ? e.tag : zn(e.tag);
|
|
3025
|
+
}
|
|
3026
|
+
function Bo(e) {
|
|
3019
3027
|
const t = {
|
|
3020
|
-
...
|
|
3028
|
+
...ln,
|
|
3021
3029
|
...e
|
|
3022
3030
|
};
|
|
3023
3031
|
return {
|
|
@@ -3026,11 +3034,11 @@ function Mo(e) {
|
|
|
3026
3034
|
implicitResolvers: t.schema.implicitScalarTags
|
|
3027
3035
|
};
|
|
3028
3036
|
}
|
|
3029
|
-
function
|
|
3037
|
+
function Do(e) {
|
|
3030
3038
|
const t = e.toString(16).toUpperCase(), n = e <= 255 ? "x" : "u", r = e <= 255 ? 2 : 4;
|
|
3031
3039
|
return `\\${n}${"0".repeat(r - t.length)}${t}`;
|
|
3032
3040
|
}
|
|
3033
|
-
function
|
|
3041
|
+
function In(e, t) {
|
|
3034
3042
|
const n = " ".repeat(t);
|
|
3035
3043
|
let r = 0, i = "";
|
|
3036
3044
|
const o = e.length;
|
|
@@ -3043,11 +3051,11 @@ function _n(e, t) {
|
|
|
3043
3051
|
}
|
|
3044
3052
|
return i;
|
|
3045
3053
|
}
|
|
3046
|
-
function
|
|
3054
|
+
function Xt(e, t) {
|
|
3047
3055
|
return `
|
|
3048
3056
|
${" ".repeat(e.indent * t)}`;
|
|
3049
3057
|
}
|
|
3050
|
-
function
|
|
3058
|
+
function Uo(e, t) {
|
|
3051
3059
|
const n = e.indent * Math.max(1, t);
|
|
3052
3060
|
return {
|
|
3053
3061
|
indent: n,
|
|
@@ -3055,115 +3063,115 @@ function Do(e, t) {
|
|
|
3055
3063
|
lineWidth: e.lineWidth === -1 ? -1 : Math.max(Math.min(e.lineWidth, 40), e.lineWidth - n)
|
|
3056
3064
|
};
|
|
3057
3065
|
}
|
|
3058
|
-
function
|
|
3066
|
+
function Nn(e, t) {
|
|
3059
3067
|
for (let n = 0, r = e.implicitResolvers.length; n < r; n += 1) {
|
|
3060
3068
|
const i = e.implicitResolvers[n];
|
|
3061
3069
|
if (i.resolve(t, !1, i.tagName) !== H) return i.tagName;
|
|
3062
3070
|
}
|
|
3063
3071
|
return e.defaultScalarTagName;
|
|
3064
3072
|
}
|
|
3065
|
-
function
|
|
3066
|
-
return e ===
|
|
3073
|
+
function Ge(e) {
|
|
3074
|
+
return e === wo || e === _o;
|
|
3067
3075
|
}
|
|
3068
|
-
function
|
|
3076
|
+
function Ko(e) {
|
|
3069
3077
|
const t = e.charCodeAt(0);
|
|
3070
|
-
if (t !==
|
|
3078
|
+
if (t !== sn && t !== 46 || e.charCodeAt(1) !== t || e.charCodeAt(2) !== t) return !1;
|
|
3071
3079
|
if (e.length === 3) return !0;
|
|
3072
3080
|
const n = e.charCodeAt(3);
|
|
3073
|
-
return
|
|
3081
|
+
return Ge(n) || n === ar || n === Pe;
|
|
3074
3082
|
}
|
|
3075
|
-
function
|
|
3076
|
-
return e >= 32 && e <= 126 || e >= 161 && e <= 55295 && e !== 8232 && e !== 8233 || e >= 57344 && e <= 65533 && e !==
|
|
3083
|
+
function Je(e) {
|
|
3084
|
+
return e >= 32 && e <= 126 || e >= 161 && e <= 55295 && e !== 8232 && e !== 8233 || e >= 57344 && e <= 65533 && e !== an || e >= 65536 && e <= 1114111;
|
|
3077
3085
|
}
|
|
3078
|
-
function
|
|
3079
|
-
return
|
|
3086
|
+
function $n(e) {
|
|
3087
|
+
return Je(e) && e !== an && e !== ar && e !== Pe;
|
|
3080
3088
|
}
|
|
3081
|
-
function
|
|
3082
|
-
const r =
|
|
3083
|
-
return (n ? r : r && e !==
|
|
3089
|
+
function zt(e, t, n) {
|
|
3090
|
+
const r = $n(e), i = r && !Ge(e);
|
|
3091
|
+
return (n ? r : r && e !== Gt && e !== Yt && e !== Wt && e !== jt && e !== Vt) && e !== qt && !(t === Ze && !i) || $n(t) && !Ge(t) && e === qt || t === Ze && i && (n || e !== Gt && e !== Yt && e !== Wt && e !== jt && e !== Vt);
|
|
3084
3092
|
}
|
|
3085
|
-
function
|
|
3086
|
-
return
|
|
3093
|
+
function qo(e) {
|
|
3094
|
+
return Je(e) && e !== an && !Ge(e) && e !== sn && e !== cr && e !== Ze && e !== Gt && e !== Yt && e !== Wt && e !== jt && e !== Vt && e !== qt && e !== $o && e !== ko && e !== Io && e !== Ho && e !== Lo && e !== Oo && e !== lr && e !== sr && e !== No && e !== Po && e !== Fo;
|
|
3087
3095
|
}
|
|
3088
|
-
function
|
|
3089
|
-
const n =
|
|
3090
|
-
if (
|
|
3091
|
-
if (e.length > 1 && (n ===
|
|
3092
|
-
const r =
|
|
3093
|
-
return !
|
|
3096
|
+
function Go(e, t) {
|
|
3097
|
+
const n = Ke(e, 0);
|
|
3098
|
+
if (qo(n)) return !0;
|
|
3099
|
+
if (e.length > 1 && (n === sn || n === cr || n === Ze)) {
|
|
3100
|
+
const r = Ke(e, 1);
|
|
3101
|
+
return !Ge(r) && zt(r, n, t);
|
|
3094
3102
|
}
|
|
3095
3103
|
return !1;
|
|
3096
3104
|
}
|
|
3097
|
-
function
|
|
3098
|
-
return !
|
|
3105
|
+
function Yo(e) {
|
|
3106
|
+
return !Ge(e) && e !== Ze;
|
|
3099
3107
|
}
|
|
3100
|
-
function
|
|
3108
|
+
function Ke(e, t) {
|
|
3101
3109
|
const n = e.charCodeAt(t);
|
|
3102
3110
|
let r;
|
|
3103
3111
|
return n >= 55296 && n <= 56319 && t + 1 < e.length && (r = e.charCodeAt(t + 1), r >= 56320 && r <= 57343) ? (n - 55296) * 1024 + r - 56320 + 65536 : n;
|
|
3104
3112
|
}
|
|
3105
|
-
function
|
|
3113
|
+
function ur(e) {
|
|
3106
3114
|
return /^\n* /.test(e);
|
|
3107
3115
|
}
|
|
3108
|
-
var
|
|
3109
|
-
function
|
|
3116
|
+
var et = 1, ze = 2, cn = 3, un = 4, ve = 5;
|
|
3117
|
+
function Wo(e, t, n, r, i, o) {
|
|
3110
3118
|
const { blockIndent: a, lineWidth: s } = n;
|
|
3111
3119
|
let l, u = 0, c = -1, S = !1, m = !1;
|
|
3112
3120
|
const C = s !== -1;
|
|
3113
|
-
let E = -1, w = !
|
|
3121
|
+
let E = -1, w = !Ko(t) && Go(t, o) && Yo(Ke(t, t.length - 1));
|
|
3114
3122
|
if (r || i) for (l = 0; l < t.length; u >= 65536 ? l += 2 : l++) {
|
|
3115
|
-
if (u =
|
|
3116
|
-
w = w &&
|
|
3123
|
+
if (u = Ke(t, l), !Je(u)) return ve;
|
|
3124
|
+
w = w && zt(u, c, o), c = u;
|
|
3117
3125
|
}
|
|
3118
3126
|
else {
|
|
3119
3127
|
for (l = 0; l < t.length; u >= 65536 ? l += 2 : l++) {
|
|
3120
|
-
if (u =
|
|
3121
|
-
S = !0, C && (m = m || l - E - 1 > s && !
|
|
3122
|
-
else if (!
|
|
3123
|
-
w = w &&
|
|
3128
|
+
if (u = Ke(t, l), u === Pe)
|
|
3129
|
+
S = !0, C && (m = m || l - E - 1 > s && !tt(t[E + 1]), E = l);
|
|
3130
|
+
else if (!Je(u)) return ve;
|
|
3131
|
+
w = w && zt(u, c, o), c = u;
|
|
3124
3132
|
}
|
|
3125
|
-
m = m || C && l - E - 1 > s && !
|
|
3133
|
+
m = m || C && l - E - 1 > s && !tt(t[E + 1]);
|
|
3126
3134
|
}
|
|
3127
|
-
return !S && !m ? w && !i ?
|
|
3135
|
+
return !S && !m ? w && !i ? et : e.quoteStyle === "double" ? ve : ze : a > 9 && ur(t) ? ve : m ? un : cn;
|
|
3128
3136
|
}
|
|
3129
|
-
function
|
|
3137
|
+
function jo(e, t, n) {
|
|
3130
3138
|
const { indent: r, blockIndent: i, lineWidth: o } = n;
|
|
3131
3139
|
switch (t) {
|
|
3132
|
-
case
|
|
3133
|
-
return
|
|
3134
|
-
case
|
|
3135
|
-
return `'${
|
|
3136
|
-
case
|
|
3137
|
-
return "|" +
|
|
3138
|
-
case
|
|
3139
|
-
return ">" +
|
|
3140
|
-
case
|
|
3141
|
-
return `"${
|
|
3142
|
-
}
|
|
3143
|
-
}
|
|
3144
|
-
function
|
|
3140
|
+
case et:
|
|
3141
|
+
return Ln(e, r);
|
|
3142
|
+
case ze:
|
|
3143
|
+
return `'${Ln(e, r).replace(/'/g, "''")}'`;
|
|
3144
|
+
case cn:
|
|
3145
|
+
return "|" + kn(e, i) + On(In(e, r));
|
|
3146
|
+
case un:
|
|
3147
|
+
return ">" + kn(e, i) + On(In(Xo(e, o), r));
|
|
3148
|
+
case ve:
|
|
3149
|
+
return `"${zo(e)}"`;
|
|
3150
|
+
}
|
|
3151
|
+
}
|
|
3152
|
+
function Vo(e, t, n, r, i) {
|
|
3145
3153
|
const o = r || !i;
|
|
3146
|
-
if (t.style.singleQuoted) return
|
|
3147
|
-
if (t.style.doubleQuoted) return
|
|
3154
|
+
if (t.style.singleQuoted) return ze;
|
|
3155
|
+
if (t.style.doubleQuoted) return ve;
|
|
3148
3156
|
if (!o) {
|
|
3149
|
-
if (t.style.literal) return
|
|
3150
|
-
if (t.style.folded) return
|
|
3157
|
+
if (t.style.literal) return cn;
|
|
3158
|
+
if (t.style.folded) return un;
|
|
3151
3159
|
}
|
|
3152
3160
|
const a = t.value;
|
|
3153
3161
|
if (a.length === 0)
|
|
3154
|
-
return t.style.tagged ||
|
|
3155
|
-
const s =
|
|
3156
|
-
return s ===
|
|
3162
|
+
return t.style.tagged || Nn(e, a) === t.tag ? et : e.quoteStyle === "double" ? ve : ze;
|
|
3163
|
+
const s = Wo(e, a, n, o, e.forceQuotes && !r, i);
|
|
3164
|
+
return s === et && !t.style.tagged && Nn(e, a) !== t.tag ? e.quoteStyle === "double" ? ve : ze : s;
|
|
3157
3165
|
}
|
|
3158
|
-
function
|
|
3159
|
-
const n =
|
|
3166
|
+
function kn(e, t) {
|
|
3167
|
+
const n = ur(e) ? String(t) : "", r = e[e.length - 1] === `
|
|
3160
3168
|
`;
|
|
3161
3169
|
return `${n}${r && (e[e.length - 2] === `
|
|
3162
3170
|
` || e === `
|
|
3163
3171
|
`) ? "+" : r ? "" : "-"}
|
|
3164
3172
|
`;
|
|
3165
3173
|
}
|
|
3166
|
-
function
|
|
3174
|
+
function Ln(e, t) {
|
|
3167
3175
|
let n = e.indexOf(`
|
|
3168
3176
|
`);
|
|
3169
3177
|
if (n === -1) return e;
|
|
@@ -3179,29 +3187,29 @@ function $n(e, t) {
|
|
|
3179
3187
|
}
|
|
3180
3188
|
return i;
|
|
3181
3189
|
}
|
|
3182
|
-
function
|
|
3190
|
+
function On(e) {
|
|
3183
3191
|
return e[e.length - 1] === `
|
|
3184
3192
|
` ? e.slice(0, -1) : e;
|
|
3185
3193
|
}
|
|
3186
|
-
function
|
|
3194
|
+
function tt(e) {
|
|
3187
3195
|
return e === " " || e === " ";
|
|
3188
3196
|
}
|
|
3189
|
-
function
|
|
3197
|
+
function Xo(e, t) {
|
|
3190
3198
|
const n = /(\n+)([^\n]*)/g;
|
|
3191
3199
|
let r = e.indexOf(`
|
|
3192
3200
|
`);
|
|
3193
3201
|
r === -1 && (r = e.length), n.lastIndex = r;
|
|
3194
|
-
let i =
|
|
3195
|
-
` ||
|
|
3202
|
+
let i = Pn(e.slice(0, r), t), o = e[0] === `
|
|
3203
|
+
` || tt(e[0]), a, s;
|
|
3196
3204
|
for (; s = n.exec(e); ) {
|
|
3197
3205
|
const l = s[1], u = s[2];
|
|
3198
|
-
a = u !== "" &&
|
|
3199
|
-
` : "") +
|
|
3206
|
+
a = u !== "" && tt(u[0]), i += l + (!o && !a && u !== "" ? `
|
|
3207
|
+
` : "") + Pn(u, t), o = a;
|
|
3200
3208
|
}
|
|
3201
3209
|
return i;
|
|
3202
3210
|
}
|
|
3203
|
-
function
|
|
3204
|
-
if (e === "" ||
|
|
3211
|
+
function Pn(e, t) {
|
|
3212
|
+
if (e === "" || tt(e[0])) return e;
|
|
3205
3213
|
const n = / [^ \t]/g;
|
|
3206
3214
|
let r, i = 0, o, a = 0, s = 0, l = "";
|
|
3207
3215
|
for (; r = n.exec(e); )
|
|
@@ -3211,129 +3219,129 @@ ${e.slice(i, o)}`, i = o + 1), a = s;
|
|
|
3211
3219
|
`, e.length - i > t && a > i ? l += `${e.slice(i, a)}
|
|
3212
3220
|
${e.slice(a + 1)}` : l += e.slice(i), l.slice(1);
|
|
3213
3221
|
}
|
|
3214
|
-
function
|
|
3222
|
+
function zo(e) {
|
|
3215
3223
|
let t = "", n = 0;
|
|
3216
3224
|
for (let r = 0; r < e.length; n >= 65536 ? r += 2 : r++) {
|
|
3217
|
-
n =
|
|
3225
|
+
n = Ke(e, r);
|
|
3218
3226
|
const i = te[n];
|
|
3219
3227
|
if (i) {
|
|
3220
3228
|
t += i;
|
|
3221
3229
|
continue;
|
|
3222
3230
|
}
|
|
3223
|
-
if (
|
|
3231
|
+
if (Je(n)) {
|
|
3224
3232
|
t += e[r], n >= 65536 && (t += e[r + 1]);
|
|
3225
3233
|
continue;
|
|
3226
3234
|
}
|
|
3227
|
-
t +=
|
|
3235
|
+
t += Do(n);
|
|
3228
3236
|
}
|
|
3229
3237
|
return t;
|
|
3230
3238
|
}
|
|
3231
|
-
function
|
|
3239
|
+
function Qo(e, t, n) {
|
|
3232
3240
|
let r = "";
|
|
3233
3241
|
for (let o = 0, a = n.items.length; o < a; o += 1) {
|
|
3234
|
-
const s =
|
|
3242
|
+
const s = Ee(e, t, n.items[o], {});
|
|
3235
3243
|
r !== "" && (r += `,${e.flowSkipCommaSpace ? "" : " "}`), r += s;
|
|
3236
3244
|
}
|
|
3237
3245
|
const i = e.flowBracketPadding && r !== "" ? " " : "";
|
|
3238
3246
|
return `[${i}${r}${i}]`;
|
|
3239
3247
|
}
|
|
3240
|
-
function
|
|
3248
|
+
function Fn(e, t, n, r) {
|
|
3241
3249
|
let i = "";
|
|
3242
3250
|
for (let o = 0, a = n.items.length; o < a; o += 1) {
|
|
3243
|
-
const s =
|
|
3251
|
+
const s = Ee(e, t + 1, n.items[o], {
|
|
3244
3252
|
block: !0,
|
|
3245
3253
|
compact: e.seqInlineFirst,
|
|
3246
3254
|
isblockseq: !0
|
|
3247
3255
|
});
|
|
3248
|
-
(!r || i !== "") && (i +=
|
|
3256
|
+
(!r || i !== "") && (i += Xt(e, t)), s === "" || Pe === s.charCodeAt(0) ? i += "-" : i += "- ", i += s;
|
|
3249
3257
|
}
|
|
3250
3258
|
return i;
|
|
3251
3259
|
}
|
|
3252
|
-
function
|
|
3260
|
+
function Zo(e, t, n) {
|
|
3253
3261
|
let r = "";
|
|
3254
|
-
const i =
|
|
3262
|
+
const i = fr(e, n.items);
|
|
3255
3263
|
for (const { key: a, value: s } of i) {
|
|
3256
3264
|
let l = "";
|
|
3257
3265
|
r !== "" && (l += `,${e.flowSkipCommaSpace ? "" : " "}`);
|
|
3258
|
-
const u =
|
|
3266
|
+
const u = Ee(e, t, a, { iskey: !0 }), c = u.length > 1024;
|
|
3259
3267
|
c ? l += "? " : e.quoteFlowKeys && (l += '"');
|
|
3260
|
-
const S =
|
|
3268
|
+
const S = Ee(e, t, s, {}), m = e.flowSkipColonSpace || S === "" ? "" : " ";
|
|
3261
3269
|
l += `${u}${e.quoteFlowKeys && !c ? '"' : ""}:${m}${S}`, r += l;
|
|
3262
3270
|
}
|
|
3263
3271
|
const o = e.flowBracketPadding && r !== "" ? " " : "";
|
|
3264
3272
|
return `{${o}${r}${o}}`;
|
|
3265
3273
|
}
|
|
3266
|
-
function
|
|
3274
|
+
function it(e) {
|
|
3267
3275
|
return e.kind === "scalar" ? e.value : e;
|
|
3268
3276
|
}
|
|
3269
|
-
function
|
|
3277
|
+
function fr(e, t) {
|
|
3270
3278
|
if (!e.sortKeys) return t;
|
|
3271
3279
|
const n = t.slice();
|
|
3272
3280
|
if (e.sortKeys === !0) n.sort((r, i) => {
|
|
3273
|
-
const o =
|
|
3281
|
+
const o = it(r.key), a = it(i.key);
|
|
3274
3282
|
return o < a ? -1 : o > a ? 1 : 0;
|
|
3275
3283
|
});
|
|
3276
3284
|
else {
|
|
3277
3285
|
const r = e.sortKeys;
|
|
3278
|
-
n.sort((i, o) => r(
|
|
3286
|
+
n.sort((i, o) => r(it(i.key), it(o.key)));
|
|
3279
3287
|
}
|
|
3280
3288
|
return n;
|
|
3281
3289
|
}
|
|
3282
|
-
function
|
|
3290
|
+
function Jo(e, t, n, r) {
|
|
3283
3291
|
let i = "";
|
|
3284
|
-
const o =
|
|
3292
|
+
const o = fr(e, n.items);
|
|
3285
3293
|
for (let a = 0, s = o.length; a < s; a += 1) {
|
|
3286
3294
|
let l = "";
|
|
3287
|
-
(!r || i !== "") && (l +=
|
|
3288
|
-
const { key: u, value: c } = o[a], S = (u.kind === "mapping" || u.kind === "sequence") && !u.style.flow && u.items.length !== 0 || u.kind === "scalar" && (u.style.literal || u.style.folded), m = S ?
|
|
3295
|
+
(!r || i !== "") && (l += Xt(e, t));
|
|
3296
|
+
const { key: u, value: c } = o[a], S = (u.kind === "mapping" || u.kind === "sequence") && !u.style.flow && u.items.length !== 0 || u.kind === "scalar" && (u.style.literal || u.style.folded), m = S ? Ee(e, t + 1, u, {
|
|
3289
3297
|
block: !0,
|
|
3290
3298
|
compact: !0,
|
|
3291
|
-
isblockseq: !
|
|
3292
|
-
}) :
|
|
3299
|
+
isblockseq: !Qt(e, u, t + 1)
|
|
3300
|
+
}) : Ee(e, t + 1, u, {
|
|
3293
3301
|
block: !0,
|
|
3294
3302
|
compact: !0,
|
|
3295
3303
|
iskey: !0
|
|
3296
3304
|
}), C = u.kind === "scalar" && u.value.indexOf(`
|
|
3297
3305
|
`) !== -1, E = S || C || m.length > 1024;
|
|
3298
|
-
E && (m && Pe === m.charCodeAt(0) ? l += "?" : l += "? "), l += m, E && (l +=
|
|
3299
|
-
const w =
|
|
3306
|
+
E && (m && Pe === m.charCodeAt(0) ? l += "?" : l += "? "), l += m, E && (l += Xt(e, t));
|
|
3307
|
+
const w = Ee(e, t + 1, c, {
|
|
3300
3308
|
block: !0,
|
|
3301
3309
|
compact: E,
|
|
3302
|
-
isblockseq: E && !
|
|
3303
|
-
}), M = u.kind === "scalar" && u.value === "" && m !== "" && m.charCodeAt(m.length - 1) !==
|
|
3310
|
+
isblockseq: E && !Qt(e, c, t + 1)
|
|
3311
|
+
}), M = u.kind === "scalar" && u.value === "" && m !== "" && m.charCodeAt(m.length - 1) !== lr && m.charCodeAt(m.length - 1) !== sr, N = !E && (u.kind === "alias" || M) ? " " : "";
|
|
3304
3312
|
w === "" || Pe === w.charCodeAt(0) ? l += `${N}:` : l += `${N}: `, l += w, i += l;
|
|
3305
3313
|
}
|
|
3306
3314
|
return i;
|
|
3307
3315
|
}
|
|
3308
|
-
function
|
|
3316
|
+
function Qt(e, t, n) {
|
|
3309
3317
|
return t.style.tagged || t.anchor !== void 0 || e.indent < 2 && n > 0;
|
|
3310
3318
|
}
|
|
3311
|
-
function
|
|
3319
|
+
function Ee(e, t, n, r) {
|
|
3312
3320
|
if (n.kind === "alias") return `*${n.anchor}`;
|
|
3313
3321
|
const { block: i = !1, iskey: o = !1, isblockseq: a = !1 } = r;
|
|
3314
3322
|
let s = r.compact ?? !1;
|
|
3315
3323
|
const l = n.anchor !== void 0;
|
|
3316
|
-
|
|
3324
|
+
Qt(e, n, t) && (s = !1);
|
|
3317
3325
|
let u, c = n.style.tagged;
|
|
3318
3326
|
const S = i && (n.kind === "mapping" || n.kind === "sequence") && !n.style.flow && n.items.length !== 0;
|
|
3319
|
-
if (n.kind === "mapping") S ? u =
|
|
3320
|
-
else if (n.kind === "sequence") S ? e.seqNoIndent && !a && t > 0 ? u =
|
|
3327
|
+
if (n.kind === "mapping") S ? u = Jo(e, t, n, s) : u = Zo(e, t, n);
|
|
3328
|
+
else if (n.kind === "sequence") S ? e.seqNoIndent && !a && t > 0 ? u = Fn(e, t - 1, n, s) : u = Fn(e, t, n, s) : u = Qo(e, t, n);
|
|
3321
3329
|
else {
|
|
3322
|
-
const m =
|
|
3323
|
-
u =
|
|
3330
|
+
const m = Uo(e, t), C = Vo(e, n, m, o, i);
|
|
3331
|
+
u = jo(n.value, C, m), c = n.style.tagged || C !== et && n.tag !== e.defaultScalarTagName;
|
|
3324
3332
|
}
|
|
3325
3333
|
if (S && s && t > 0 && e.indent > 2 && (u = `${" ".repeat(e.indent - 2)}${u}`), c || l) {
|
|
3326
|
-
const m = [], C = c ?
|
|
3334
|
+
const m = [], C = c ? Mo(n) : null, E = l ? `&${n.anchor}` : null;
|
|
3327
3335
|
e.tagBeforeAnchor ? (C !== null && m.push(C), E !== null && m.push(E)) : (E !== null && m.push(E), C !== null && m.push(C));
|
|
3328
3336
|
const w = u === "" || u.charCodeAt(0) === Pe ? "" : " ";
|
|
3329
3337
|
u = `${m.join(" ")}${w}${u}`;
|
|
3330
3338
|
}
|
|
3331
3339
|
return u;
|
|
3332
3340
|
}
|
|
3333
|
-
function
|
|
3341
|
+
function ea(e) {
|
|
3334
3342
|
return (e.kind === "sequence" || e.kind === "mapping") && !e.style.flow && e.items.length !== 0 && !e.style.tagged && e.anchor === void 0;
|
|
3335
3343
|
}
|
|
3336
|
-
function
|
|
3344
|
+
function ta(e) {
|
|
3337
3345
|
let t = e;
|
|
3338
3346
|
for (; (t.kind === "sequence" || t.kind === "mapping") && !t.style.flow && t.items.length !== 0; ) t = t.kind === "sequence" ? t.items[t.items.length - 1] : t.items[t.items.length - 1].value;
|
|
3339
3347
|
if (t.kind !== "scalar" || !(t.style.literal || t.style.folded)) return !1;
|
|
@@ -3343,7 +3351,7 @@ function ea(e) {
|
|
|
3343
3351
|
`) || n === `
|
|
3344
3352
|
`;
|
|
3345
3353
|
}
|
|
3346
|
-
function
|
|
3354
|
+
function na(e) {
|
|
3347
3355
|
let t = "";
|
|
3348
3356
|
for (const n of e.directives) {
|
|
3349
3357
|
if (n.kind === "yaml") {
|
|
@@ -3357,109 +3365,109 @@ function ta(e) {
|
|
|
3357
3365
|
}
|
|
3358
3366
|
return t;
|
|
3359
3367
|
}
|
|
3360
|
-
function
|
|
3361
|
-
const n =
|
|
3368
|
+
function ra(e, t) {
|
|
3369
|
+
const n = Bo(t);
|
|
3362
3370
|
let r = "", i = !1;
|
|
3363
3371
|
for (let o = 0; o < e.length; o += 1) {
|
|
3364
|
-
const a = e[o], s =
|
|
3372
|
+
const a = e[o], s = na(a), l = s !== "", u = a.explicitStart || l || o > 0 && !i;
|
|
3365
3373
|
if (r += s, a.contents === null)
|
|
3366
3374
|
u && (r += `---
|
|
3367
3375
|
`);
|
|
3368
3376
|
else if (u) {
|
|
3369
|
-
const c =
|
|
3377
|
+
const c = Ee(n, 0, a.contents, {
|
|
3370
3378
|
block: !0,
|
|
3371
3379
|
compact: !0
|
|
3372
|
-
}), S = c === "" ? "" : l ||
|
|
3380
|
+
}), S = c === "" ? "" : l || ea(a.contents) ? `
|
|
3373
3381
|
` : " ";
|
|
3374
3382
|
r += `---${S}${c}
|
|
3375
3383
|
`;
|
|
3376
|
-
} else r +=
|
|
3384
|
+
} else r += Ee(n, 0, a.contents, {
|
|
3377
3385
|
block: !0,
|
|
3378
3386
|
compact: !0
|
|
3379
3387
|
}) + `
|
|
3380
3388
|
`;
|
|
3381
|
-
i = a.explicitEnd || a.contents !== null &&
|
|
3389
|
+
i = a.explicitEnd || a.contents !== null && ta(a.contents), i && (r += `...
|
|
3382
3390
|
`);
|
|
3383
3391
|
}
|
|
3384
3392
|
return r;
|
|
3385
3393
|
}
|
|
3386
|
-
var
|
|
3387
|
-
...
|
|
3394
|
+
var ia = $i.withTags({
|
|
3395
|
+
...Ft,
|
|
3388
3396
|
resolve: (e, t, n) => {
|
|
3389
|
-
const r =
|
|
3390
|
-
return r === H ?
|
|
3397
|
+
const r = Ft.resolve(e, t, n);
|
|
3398
|
+
return r === H ? Mn.resolve(e, t, n) : r;
|
|
3391
3399
|
}
|
|
3392
3400
|
}, {
|
|
3393
|
-
...
|
|
3401
|
+
...Ht,
|
|
3394
3402
|
resolve: (e, t, n) => {
|
|
3395
|
-
const r =
|
|
3396
|
-
return r === H ?
|
|
3403
|
+
const r = Ht.resolve(e, t, n);
|
|
3404
|
+
return r === H ? Bn.resolve(e, t, n) : r;
|
|
3397
3405
|
}
|
|
3398
|
-
}),
|
|
3399
|
-
...
|
|
3400
|
-
schema:
|
|
3406
|
+
}), oa = {
|
|
3407
|
+
...ln,
|
|
3408
|
+
schema: ia,
|
|
3401
3409
|
skipInvalid: !1,
|
|
3402
3410
|
noRefs: !1,
|
|
3403
3411
|
flowLevel: -1,
|
|
3404
3412
|
transform: () => {
|
|
3405
3413
|
}
|
|
3406
3414
|
};
|
|
3407
|
-
function
|
|
3415
|
+
function aa(e, t = {}) {
|
|
3408
3416
|
const n = {
|
|
3409
|
-
...
|
|
3417
|
+
...oa,
|
|
3410
3418
|
...t
|
|
3411
|
-
}, r =
|
|
3419
|
+
}, r = vo(e, n.schema, {
|
|
3412
3420
|
noRefs: n.noRefs,
|
|
3413
3421
|
skipInvalid: n.skipInvalid
|
|
3414
3422
|
});
|
|
3415
|
-
return n.flowLevel >= 0 &&
|
|
3423
|
+
return n.flowLevel >= 0 && xo(r, (i, o) => {
|
|
3416
3424
|
if (!(o.depth < n.flowLevel))
|
|
3417
|
-
return i.style.flow = !0,
|
|
3418
|
-
}), n.transform(r),
|
|
3419
|
-
...
|
|
3425
|
+
return i.style.flow = !0, or;
|
|
3426
|
+
}), n.transform(r), ra(r, {
|
|
3427
|
+
...Mt(n, Object.keys(ln)),
|
|
3420
3428
|
schema: n.schema
|
|
3421
3429
|
});
|
|
3422
3430
|
}
|
|
3423
|
-
const
|
|
3424
|
-
const n =
|
|
3431
|
+
const sa = Wn.withTags(Dn, Un, Kn, qn, Gn), pr = (e, t) => {
|
|
3432
|
+
const n = Co(e, { schema: sa, ...t });
|
|
3425
3433
|
if (n.length === 0)
|
|
3426
3434
|
return e.trim() === "" ? void 0 : null;
|
|
3427
3435
|
if (n.length > 1)
|
|
3428
|
-
throw new
|
|
3436
|
+
throw new Et("expected a single document in the stream, but found more");
|
|
3429
3437
|
return n[0];
|
|
3430
|
-
},
|
|
3431
|
-
class
|
|
3438
|
+
}, Ra = (e, t) => aa(e, t), la = /\((\d+):(\d+)\)$/;
|
|
3439
|
+
class Tt extends Error {
|
|
3432
3440
|
originalError;
|
|
3433
3441
|
source;
|
|
3434
3442
|
col;
|
|
3435
3443
|
line;
|
|
3436
3444
|
constructor(t, n) {
|
|
3437
3445
|
super(t.message.split(`
|
|
3438
|
-
`)[0]), this.originalError = t, this.source = n, Object.setPrototypeOf(this,
|
|
3439
|
-
const [, r, i] = this.message.match(
|
|
3446
|
+
`)[0]), this.originalError = t, this.source = n, Object.setPrototypeOf(this, Tt.prototype);
|
|
3447
|
+
const [, r, i] = this.message.match(la) || [];
|
|
3440
3448
|
this.line = parseInt(r, 10), this.col = parseInt(i, 10);
|
|
3441
3449
|
}
|
|
3442
3450
|
}
|
|
3443
|
-
const
|
|
3444
|
-
function
|
|
3451
|
+
const ca = [".graphql", ".gql"];
|
|
3452
|
+
function dr(e) {
|
|
3445
3453
|
const t = e.toLowerCase();
|
|
3446
|
-
return
|
|
3454
|
+
return ca.some((n) => t.endsWith(n));
|
|
3447
3455
|
}
|
|
3448
|
-
function
|
|
3456
|
+
function ua(e, t) {
|
|
3449
3457
|
return e.hasOwnProperty(t) ? e[t] : void 0;
|
|
3450
3458
|
}
|
|
3451
|
-
function
|
|
3459
|
+
function fa(e) {
|
|
3452
3460
|
return e.endsWith(".yaml") || e.endsWith(".yml") || e.endsWith(".json");
|
|
3453
3461
|
}
|
|
3454
|
-
function
|
|
3462
|
+
function Pt(e, t) {
|
|
3455
3463
|
return e + "::" + t;
|
|
3456
3464
|
}
|
|
3457
|
-
function
|
|
3465
|
+
function pa() {
|
|
3458
3466
|
return new Promise((e) => {
|
|
3459
3467
|
setTimeout(e);
|
|
3460
3468
|
});
|
|
3461
3469
|
}
|
|
3462
|
-
class
|
|
3470
|
+
class Zt {
|
|
3463
3471
|
absoluteRef;
|
|
3464
3472
|
body;
|
|
3465
3473
|
mimeType;
|
|
@@ -3477,26 +3485,26 @@ class zt {
|
|
|
3477
3485
|
return this.#t === void 0 && (this.#t = this.body.split(/\r\n|[\n\r]/g)), this.#t;
|
|
3478
3486
|
}
|
|
3479
3487
|
}
|
|
3480
|
-
class
|
|
3488
|
+
class fn extends Error {
|
|
3481
3489
|
originalError;
|
|
3482
3490
|
constructor(t) {
|
|
3483
|
-
super(t.message), this.originalError = t, Object.setPrototypeOf(this,
|
|
3491
|
+
super(t.message), this.originalError = t, Object.setPrototypeOf(this, fn.prototype);
|
|
3484
3492
|
}
|
|
3485
3493
|
}
|
|
3486
|
-
function
|
|
3487
|
-
const n = new
|
|
3488
|
-
if (
|
|
3494
|
+
function xa(e, t) {
|
|
3495
|
+
const n = new Zt(t, e);
|
|
3496
|
+
if (dr(t))
|
|
3489
3497
|
return { source: n, parsed: e };
|
|
3490
3498
|
try {
|
|
3491
3499
|
return {
|
|
3492
3500
|
source: n,
|
|
3493
|
-
parsed:
|
|
3501
|
+
parsed: pr(e, { filename: t })
|
|
3494
3502
|
};
|
|
3495
3503
|
} catch (r) {
|
|
3496
|
-
throw new
|
|
3504
|
+
throw new Tt(r, n);
|
|
3497
3505
|
}
|
|
3498
3506
|
}
|
|
3499
|
-
class
|
|
3507
|
+
class _a {
|
|
3500
3508
|
config;
|
|
3501
3509
|
cache = /* @__PURE__ */ new Map();
|
|
3502
3510
|
constructor(t = { http: { headers: [] } }) {
|
|
@@ -3506,37 +3514,37 @@ class xa {
|
|
|
3506
3514
|
return new Set(Array.from(this.cache.keys()));
|
|
3507
3515
|
}
|
|
3508
3516
|
resolveExternalRef(t, n) {
|
|
3509
|
-
return Ne(n) ? n : t && Ne(t) ? new URL(n, t).href :
|
|
3517
|
+
return Ne(n) ? n : t && Ne(t) ? new URL(n, t).href : Qe.resolve(t ? Qe.dirname(t) : process.cwd(), n);
|
|
3510
3518
|
}
|
|
3511
3519
|
async loadExternalRef(t) {
|
|
3512
3520
|
try {
|
|
3513
3521
|
if (Ne(t)) {
|
|
3514
|
-
const { body: n, mimeType: r } = await
|
|
3515
|
-
return new
|
|
3522
|
+
const { body: n, mimeType: r } = await Rr(t, this.config.http);
|
|
3523
|
+
return new Zt(t, n, r);
|
|
3516
3524
|
} else {
|
|
3517
3525
|
if ((void 0)(t).isDirectory())
|
|
3518
3526
|
throw new Error(`Expected a file but received a folder at ${t}.`);
|
|
3519
3527
|
const n = await (void 0).readFile(t, "utf-8");
|
|
3520
|
-
return new
|
|
3528
|
+
return new Zt(t, n.replace(/\r\n/g, `
|
|
3521
3529
|
`));
|
|
3522
3530
|
}
|
|
3523
3531
|
} catch (n) {
|
|
3524
|
-
throw n.message = n.message.replace(", lstat", ""), new
|
|
3532
|
+
throw n.message = n.message.replace(", lstat", ""), new fn(n);
|
|
3525
3533
|
}
|
|
3526
3534
|
}
|
|
3527
3535
|
parseDocument(t, n = !1) {
|
|
3528
|
-
if (
|
|
3536
|
+
if (dr(t.absoluteRef))
|
|
3529
3537
|
return { source: t, parsed: t.body };
|
|
3530
3538
|
const r = Ne(t.absoluteRef) ? new URL(t.absoluteRef).pathname : t.absoluteRef;
|
|
3531
|
-
if (!
|
|
3539
|
+
if (!fa(r) && !t.mimeType?.match(/(json|yaml|openapi)/) && !n)
|
|
3532
3540
|
return { source: t, parsed: t.body };
|
|
3533
3541
|
try {
|
|
3534
3542
|
return {
|
|
3535
3543
|
source: t,
|
|
3536
|
-
parsed:
|
|
3544
|
+
parsed: pr(t.body, { filename: t.absoluteRef })
|
|
3537
3545
|
};
|
|
3538
3546
|
} catch (i) {
|
|
3539
|
-
throw new
|
|
3547
|
+
throw new Tt(i, t);
|
|
3540
3548
|
}
|
|
3541
3549
|
}
|
|
3542
3550
|
async resolveDocument(t, n, r = !1) {
|
|
@@ -3547,13 +3555,13 @@ class xa {
|
|
|
3547
3555
|
return this.cache.set(i, a), a;
|
|
3548
3556
|
}
|
|
3549
3557
|
}
|
|
3550
|
-
function
|
|
3558
|
+
function Hn(e, t) {
|
|
3551
3559
|
return {
|
|
3552
3560
|
prev: e,
|
|
3553
3561
|
node: t
|
|
3554
3562
|
};
|
|
3555
3563
|
}
|
|
3556
|
-
function
|
|
3564
|
+
function da(e, t) {
|
|
3557
3565
|
for (; e; ) {
|
|
3558
3566
|
if (e.node === t)
|
|
3559
3567
|
return !0;
|
|
@@ -3561,8 +3569,8 @@ function pa(e, t) {
|
|
|
3561
3569
|
}
|
|
3562
3570
|
return !1;
|
|
3563
3571
|
}
|
|
3564
|
-
const
|
|
3565
|
-
async function
|
|
3572
|
+
const ot = { name: "unknown", properties: {} }, ha = { name: "scalar", properties: {} };
|
|
3573
|
+
async function wa(e) {
|
|
3566
3574
|
const { rootDocument: t, externalRefResolver: n, rootType: r } = e, i = /* @__PURE__ */ new Map(), o = /* @__PURE__ */ new Set(), a = [];
|
|
3567
3575
|
l(t.parsed, t, "#/", r);
|
|
3568
3576
|
let s;
|
|
@@ -3574,33 +3582,33 @@ async function _a(e) {
|
|
|
3574
3582
|
const C = c.source.absoluteRef, E = /* @__PURE__ */ new Map();
|
|
3575
3583
|
w(u, m, C + S);
|
|
3576
3584
|
function w(N, k, y) {
|
|
3577
|
-
if (!
|
|
3585
|
+
if (!be(N) && !Array.isArray(N))
|
|
3578
3586
|
return;
|
|
3579
3587
|
const R = `${k.name}::${y}`;
|
|
3580
3588
|
if (o.has(R))
|
|
3581
3589
|
return;
|
|
3582
3590
|
if (o.add(R), Array.isArray(N)) {
|
|
3583
3591
|
const v = k.items;
|
|
3584
|
-
if (v === void 0 && k !==
|
|
3592
|
+
if (v === void 0 && k !== ot && k !== at)
|
|
3585
3593
|
return;
|
|
3586
3594
|
const A = typeof v == "function";
|
|
3587
3595
|
for (let g = 0; g < N.length; g++) {
|
|
3588
|
-
let x = A ? v(N[g],
|
|
3589
|
-
if (x === void 0 && k !==
|
|
3596
|
+
let x = A ? v(N[g], Te(y, g)) : v;
|
|
3597
|
+
if (x === void 0 && k !== ot && k !== at)
|
|
3590
3598
|
continue;
|
|
3591
3599
|
const W = x?.directResolveAs ? { $ref: N[g] } : N[g];
|
|
3592
|
-
x = x?.directResolveAs || x, w(W,
|
|
3600
|
+
x = x?.directResolveAs || x, w(W, st(x) ? x : ot, Te(y, g));
|
|
3593
3601
|
}
|
|
3594
3602
|
return;
|
|
3595
3603
|
}
|
|
3596
3604
|
const [f, I] = Object.entries(N).find(([v]) => v === "$anchor") || [];
|
|
3597
3605
|
I && E.set(`#${I}`, N);
|
|
3598
3606
|
for (const v of Object.keys(N)) {
|
|
3599
|
-
let A = N[v], g =
|
|
3607
|
+
let A = N[v], g = ua(k.properties, v);
|
|
3600
3608
|
const x = k.extensionsPrefix !== void 0 && v.startsWith(k.extensionsPrefix);
|
|
3601
|
-
g === void 0 && !x && (g = k.additionalProperties), typeof g == "function" && (g = g(A, v)), x && g === void 0 && (g =
|
|
3609
|
+
g === void 0 && !x && (g = k.additionalProperties), typeof g == "function" && (g = g(A, v)), x && g === void 0 && (g = at), g === void 0 && (g = ot), !st(g) && g?.directResolveAs && (g = g.directResolveAs, A = { $ref: A }), g && g.name === void 0 && g.resolvable !== !1 && (g = ha), !(!st(g) || !(be(A) || Array.isArray(A))) && w(A, g, Te(y, Me(v)));
|
|
3602
3610
|
}
|
|
3603
|
-
if (
|
|
3611
|
+
if (lt(N)) {
|
|
3604
3612
|
const v = M(c, N, {
|
|
3605
3613
|
prev: null,
|
|
3606
3614
|
node: N
|
|
@@ -3613,7 +3621,7 @@ async function _a(e) {
|
|
|
3613
3621
|
});
|
|
3614
3622
|
a.push(v);
|
|
3615
3623
|
}
|
|
3616
|
-
if (
|
|
3624
|
+
if (wr(N)) {
|
|
3617
3625
|
const v = M(c, { $ref: N.externalValue }, {
|
|
3618
3626
|
prev: null,
|
|
3619
3627
|
node: N
|
|
@@ -3624,31 +3632,31 @@ async function _a(e) {
|
|
|
3624
3632
|
}
|
|
3625
3633
|
}
|
|
3626
3634
|
async function M(N, k, y) {
|
|
3627
|
-
if (
|
|
3635
|
+
if (da(y.prev, k))
|
|
3628
3636
|
throw new Error("Self-referencing circular pointer");
|
|
3629
|
-
if (
|
|
3630
|
-
await
|
|
3637
|
+
if (kr(k.$ref)) {
|
|
3638
|
+
await pa();
|
|
3631
3639
|
const L = {
|
|
3632
3640
|
resolved: !0,
|
|
3633
3641
|
isRemote: !1,
|
|
3634
3642
|
node: E.get(k.$ref),
|
|
3635
3643
|
document: N,
|
|
3636
3644
|
nodePointer: k.$ref
|
|
3637
|
-
},
|
|
3638
|
-
return i.set(
|
|
3645
|
+
}, U = Pt(N.source.absoluteRef, k.$ref);
|
|
3646
|
+
return i.set(U, L), L;
|
|
3639
3647
|
}
|
|
3640
|
-
const { uri: R, pointer: f } =
|
|
3648
|
+
const { uri: R, pointer: f } = Nr(k.$ref), I = R !== null && n.resolveExternalRef(N.source.absoluteRef, R) !== N.source.absoluteRef;
|
|
3641
3649
|
let v;
|
|
3642
3650
|
try {
|
|
3643
3651
|
v = I ? await n.resolveDocument(N.source.absoluteRef, R) : N;
|
|
3644
3652
|
} catch (L) {
|
|
3645
|
-
const
|
|
3653
|
+
const U = {
|
|
3646
3654
|
resolved: !1,
|
|
3647
3655
|
isRemote: I,
|
|
3648
3656
|
document: void 0,
|
|
3649
3657
|
error: L
|
|
3650
|
-
},
|
|
3651
|
-
return i.set(
|
|
3658
|
+
}, fe = Pt(N.source.absoluteRef, k.$ref);
|
|
3659
|
+
return i.set(fe, U), U;
|
|
3652
3660
|
}
|
|
3653
3661
|
let A = {
|
|
3654
3662
|
resolved: !0,
|
|
@@ -3659,15 +3667,15 @@ async function _a(e) {
|
|
|
3659
3667
|
}, g = v.parsed;
|
|
3660
3668
|
const x = f;
|
|
3661
3669
|
for (const L of x)
|
|
3662
|
-
if (
|
|
3663
|
-
g = g[L], A.nodePointer =
|
|
3670
|
+
if (be(g) && g[L] !== void 0)
|
|
3671
|
+
g = g[L], A.nodePointer = Te(A.nodePointer, Me(L));
|
|
3664
3672
|
else if (Array.isArray(g) && g[+L] !== void 0)
|
|
3665
|
-
g = g[+L], A.nodePointer =
|
|
3666
|
-
else if (
|
|
3667
|
-
if (A = await M(v, g,
|
|
3668
|
-
g = A.node[L], A.nodePointer =
|
|
3673
|
+
g = g[+L], A.nodePointer = Te(A.nodePointer, Me(L));
|
|
3674
|
+
else if (lt(g))
|
|
3675
|
+
if (A = await M(v, g, Hn(y, g)), A.chain = void 0, v = A.document || v, be(A.node))
|
|
3676
|
+
g = A.node[L], A.nodePointer = Te(A.nodePointer, Me(L));
|
|
3669
3677
|
else if (Array.isArray(A.node))
|
|
3670
|
-
g = A.node[+L], A.nodePointer =
|
|
3678
|
+
g = A.node[+L], A.nodePointer = Te(A.nodePointer, Me(L));
|
|
3671
3679
|
else {
|
|
3672
3680
|
g = void 0;
|
|
3673
3681
|
break;
|
|
@@ -3677,55 +3685,55 @@ async function _a(e) {
|
|
|
3677
3685
|
break;
|
|
3678
3686
|
}
|
|
3679
3687
|
A.node = g, A.document = v;
|
|
3680
|
-
const W =
|
|
3681
|
-
if (A.document &&
|
|
3682
|
-
const L =
|
|
3688
|
+
const W = Pt(N.source.absoluteRef, k.$ref);
|
|
3689
|
+
if (A.document && lt(g)) {
|
|
3690
|
+
const L = _r(g) ? {
|
|
3683
3691
|
node: g,
|
|
3684
3692
|
document: A.document,
|
|
3685
|
-
location: new
|
|
3693
|
+
location: new ft(A.document.source, A.nodePointer)
|
|
3686
3694
|
} : void 0;
|
|
3687
|
-
A = await M(A.document, g,
|
|
3695
|
+
A = await M(A.document, g, Hn(y, g)), L && A.resolved && (A = { ...A, chain: [L, ...A.chain ?? []] });
|
|
3688
3696
|
}
|
|
3689
3697
|
return i.set(W, A), { ...A };
|
|
3690
3698
|
}
|
|
3691
3699
|
}
|
|
3692
3700
|
}
|
|
3693
3701
|
export {
|
|
3694
|
-
|
|
3695
|
-
|
|
3696
|
-
|
|
3697
|
-
|
|
3698
|
-
|
|
3699
|
-
|
|
3700
|
-
|
|
3701
|
-
|
|
3702
|
-
|
|
3703
|
-
|
|
3704
|
-
|
|
3705
|
-
|
|
3702
|
+
Pt as A,
|
|
3703
|
+
_a as B,
|
|
3704
|
+
wr as C,
|
|
3705
|
+
Sa as D,
|
|
3706
|
+
Ea as E,
|
|
3707
|
+
$r as F,
|
|
3708
|
+
vr as G,
|
|
3709
|
+
ft as L,
|
|
3710
|
+
fn as R,
|
|
3711
|
+
Zt as S,
|
|
3712
|
+
Tt as Y,
|
|
3713
|
+
wa as a,
|
|
3706
3714
|
Ne as b,
|
|
3707
|
-
|
|
3708
|
-
|
|
3709
|
-
|
|
3710
|
-
|
|
3711
|
-
|
|
3712
|
-
|
|
3713
|
-
|
|
3714
|
-
|
|
3715
|
-
|
|
3716
|
-
|
|
3717
|
-
|
|
3718
|
-
|
|
3719
|
-
|
|
3720
|
-
|
|
3721
|
-
|
|
3722
|
-
|
|
3723
|
-
|
|
3724
|
-
|
|
3725
|
-
|
|
3726
|
-
|
|
3727
|
-
|
|
3728
|
-
|
|
3729
|
-
|
|
3730
|
-
|
|
3715
|
+
br as c,
|
|
3716
|
+
dr as d,
|
|
3717
|
+
Me as e,
|
|
3718
|
+
ba as f,
|
|
3719
|
+
Ca as g,
|
|
3720
|
+
fa as h,
|
|
3721
|
+
lt as i,
|
|
3722
|
+
mr as j,
|
|
3723
|
+
Ta as k,
|
|
3724
|
+
ma as l,
|
|
3725
|
+
xa as m,
|
|
3726
|
+
ya as n,
|
|
3727
|
+
Aa as o,
|
|
3728
|
+
pr as p,
|
|
3729
|
+
_r as q,
|
|
3730
|
+
Rr as r,
|
|
3731
|
+
Ra as s,
|
|
3732
|
+
Te as t,
|
|
3733
|
+
Ir as u,
|
|
3734
|
+
Nr as v,
|
|
3735
|
+
ua as w,
|
|
3736
|
+
at as x,
|
|
3737
|
+
st as y,
|
|
3738
|
+
va as z
|
|
3731
3739
|
};
|