@redocly/replay 0.31.0-next.3 → 0.31.0-next.5
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-Cuo8x0ff.js → replay-AiChatProvider-DF95dPI4.js} +6 -6
- package/dist/{replay-AiChatSqliteDBStorage-Cj4xkdFz.js → replay-AiChatSqliteDBStorage-DFai0iTB.js} +1 -1
- package/dist/{replay-AiPanel-Dm_sNNeL.js → replay-AiPanel-DWJrryHB.js} +26 -31
- package/dist/{replay-FileWatcher-0Bmib4dK.js → replay-FileWatcher-DhpdT_VS.js} +2 -2
- package/dist/{replay-SemanticSearchService-D4YjQR5-.js → replay-SemanticSearchService-C9AkUyVE.js} +1 -1
- package/dist/{replay-SqliteDBStorage-snMqhV35.js → replay-SqliteDBStorage-DT9_LMLs.js} +1 -1
- package/dist/{replay-TauriFileSystemAdapter-bAK0DIvp.js → replay-TauriFileSystemAdapter-C16TSOZg.js} +1 -1
- package/dist/{replay-TauriRootStorage-DAYZ414x.js → replay-TauriRootStorage-BNacv6Qu.js} +2 -2
- package/dist/{replay-agent-loop-qyzKV3mo.js → replay-agent-loop-Om_DXb5S.js} +3 -3
- package/dist/{replay-ai-chat-mappers-BAe0oFmS.js → replay-ai-chat-mappers-T6Rn74yZ.js} +1 -1
- package/dist/{replay-create-model-BEoVz7Ji.js → replay-create-model-CWTiZi7t.js} +16108 -17055
- package/dist/{replay-db-DMKqL3h6.js → replay-db-DGrxiWzT.js} +1 -1
- package/dist/{replay-external-resolver-DCN1lkbA.js → replay-external-resolver-1QWjOOVR.js} +2 -2
- package/dist/{replay-index-BvZDjF45.js → replay-index-BZZ4OP90.js} +1 -1
- package/dist/replay-index-CEqxKoBH.js +4 -0
- package/dist/{replay-index-Bo3TEqX0.js → replay-index-CTTaOYRK.js} +1 -1
- package/dist/{replay-index-BHjBRyB3.js → replay-index-CiOV_Ucc.js} +23399 -22851
- package/dist/{replay-index-DZ1tkFgq.js → replay-index-DF2XA7Wl.js} +1 -1
- package/dist/replay-index-DVf85Dg1.js +917 -0
- package/dist/{replay-lint-T24IsDM8.js → replay-lint-B6TsU9Uq.js} +7560 -6763
- package/dist/{replay-lint-graphql-CZtMsHz-.js → replay-lint-graphql-CmPzfY7b.js} +2 -2
- package/dist/{replay-periodic-revalidation-BHLdYOFw.js → replay-periodic-revalidation-B77h_-F6.js} +1 -1
- package/dist/{replay-resolve-DIE-MBAc.js → replay-resolve-9K6-oXdr.js} +886 -866
- package/dist/{replay-respect-run-50PYi6j2.js → replay-respect-run-Cpt4Fgtq.js} +1844 -1790
- package/dist/{replay-tauri-path-CKxG25k9.js → replay-tauri-path-wnkmhbG_.js} +2 -2
- package/dist/{replay-useAiChatQueries-mMfaDZ5s.js → replay-useAiChatQueries-CTLNVgPv.js} +83 -81
- package/dist/{replay-validate-key-taJ0a7Z_.js → replay-validate-key-C5YTZaNy.js} +2 -2
- package/dist/replay.js +1 -1
- package/package.json +8 -9
- package/dist/oauth2-redirect.cjs +0 -1
- package/dist/replay-AiChatProvider-iPTdlp7T.js +0 -6
- package/dist/replay-AiChatSqliteDBStorage-BAUsAhPY.js +0 -1
- package/dist/replay-AiPanel-Bn2z_RC-.js +0 -741
- package/dist/replay-FileWatcher-CSNd_juo.js +0 -1
- package/dist/replay-HistorySqliteDBStorage-BrILW8Fu.js +0 -1
- package/dist/replay-Observable-bjJ6wkRB.js +0 -1
- package/dist/replay-SemanticSearchService-DdDe4QRB.js +0 -1
- package/dist/replay-SqliteDBStorage-C81Ns5uk.js +0 -14
- package/dist/replay-StepContextSqliteDBStorage-BSepLyBI.js +0 -1
- package/dist/replay-TauriFileSystemAdapter-IgI3iLBq.js +0 -1
- package/dist/replay-TauriRootStorage-Ck5_FUc2.js +0 -1
- package/dist/replay-agent-loop-MetNOO5W.js +0 -1
- package/dist/replay-ai-chat-mappers-BZ4yaQTm.js +0 -1
- package/dist/replay-ai-message-parts.schema-BBdjwldJ.js +0 -1
- package/dist/replay-create-model-Bv2837Bc.js +0 -104
- package/dist/replay-db-C5FJ_vSh.js +0 -64
- package/dist/replay-defaults-DVvOnvnR.js +0 -27
- package/dist/replay-external-resolver-BdagmP7Q.js +0 -2
- package/dist/replay-history.schema-miM3Etuf.js +0 -1
- package/dist/replay-index-0Yt7t6Z2.js +0 -577
- package/dist/replay-index-B5BMRDgs.js +0 -1
- package/dist/replay-index-BUx40Nkf.js +0 -1
- package/dist/replay-index-C5rpe6OU.js +0 -4
- package/dist/replay-index-D8rrXWx9.js +0 -1
- package/dist/replay-index-DBkr5-ap.js +0 -7438
- package/dist/replay-index-Qup2K90F.js +0 -1
- package/dist/replay-index-Y0OU8J0E.js +0 -1
- package/dist/replay-indexes-Dqjl8m6C.js +0 -1
- package/dist/replay-lint-B3RgfCeS.js +0 -130
- package/dist/replay-lint-graphql-DekIfP8E.js +0 -1
- package/dist/replay-oauth2-redirect-handler-BfZRvm6l.js +0 -4
- package/dist/replay-periodic-revalidation-D3-joAo0.js +0 -1
- package/dist/replay-promise-map-limit-DDfN3Ygo.js +0 -1
- package/dist/replay-resolve-o5oxpXCI.js +0 -53
- package/dist/replay-respect-run-CYC3kgFU.js +0 -73
- package/dist/replay-step-context.schema-BuuXkAck.js +0 -1
- package/dist/replay-tauri-path-CXjp0Fsn.js +0 -1
- package/dist/replay-useAiChatQueries-BavVwZlq.js +0 -215
- package/dist/replay-validate-key-Bk5lGsX4.js +0 -1
- package/dist/replay.cjs +0 -1
|
@@ -1,27 +1,27 @@
|
|
|
1
|
-
import { X as
|
|
2
|
-
function
|
|
1
|
+
import { X as fr, a6 as Ze, a7 as xe } from "./replay-index-CiOV_Ucc.js";
|
|
2
|
+
function pr(e) {
|
|
3
3
|
return !!e;
|
|
4
4
|
}
|
|
5
|
-
var
|
|
6
|
-
function
|
|
7
|
-
if (
|
|
8
|
-
|
|
9
|
-
const e = "\\\\/", t = `[^${e}]`, n = 0, r = "\\.", i = "\\+", o = "\\?", s = "\\/", a = "(?=.)",
|
|
5
|
+
var St = {}, _t, Zt;
|
|
6
|
+
function ft() {
|
|
7
|
+
if (Zt) return _t;
|
|
8
|
+
Zt = 1;
|
|
9
|
+
const e = "\\\\/", t = `[^${e}]`, n = 0, r = "\\.", i = "\\+", o = "\\?", s = "\\/", a = "(?=.)", l = "[^/]", f = `(?:${s}|$)`, c = `(?:^|${s})`, E = `${r}{1,2}${f}`, S = `(?!${r})`, T = `(?!${c}${E})`, C = `(?!${r}{0,1}${f})`, O = `(?!${E})`, $ = `[^.${s}]`, b = `${l}*?`, A = {
|
|
10
10
|
DOT_LITERAL: r,
|
|
11
11
|
PLUS_LITERAL: i,
|
|
12
12
|
QMARK_LITERAL: o,
|
|
13
13
|
SLASH_LITERAL: s,
|
|
14
14
|
ONE_CHAR: a,
|
|
15
|
-
QMARK:
|
|
15
|
+
QMARK: l,
|
|
16
16
|
END_ANCHOR: f,
|
|
17
17
|
DOTS_SLASH: E,
|
|
18
18
|
NO_DOT: S,
|
|
19
19
|
NO_DOTS: T,
|
|
20
20
|
NO_DOT_SLASH: C,
|
|
21
21
|
NO_DOTS_SLASH: O,
|
|
22
|
-
QMARK_NO_DOT:
|
|
22
|
+
QMARK_NO_DOT: $,
|
|
23
23
|
STAR: b,
|
|
24
|
-
START_ANCHOR:
|
|
24
|
+
START_ANCHOR: c,
|
|
25
25
|
SEP: "/"
|
|
26
26
|
}, L = {
|
|
27
27
|
...A,
|
|
@@ -54,7 +54,7 @@ function lt() {
|
|
|
54
54
|
word: "A-Za-z0-9_",
|
|
55
55
|
xdigit: "A-Fa-f0-9"
|
|
56
56
|
};
|
|
57
|
-
return
|
|
57
|
+
return _t = {
|
|
58
58
|
DEFAULT_MAX_EXTGLOB_RECURSION: n,
|
|
59
59
|
MAX_LENGTH: 1024 * 64,
|
|
60
60
|
POSIX_REGEX_SOURCE: u,
|
|
@@ -179,17 +179,17 @@ function lt() {
|
|
|
179
179
|
globChars(I) {
|
|
180
180
|
return I === !0 ? L : A;
|
|
181
181
|
}
|
|
182
|
-
},
|
|
182
|
+
}, _t;
|
|
183
183
|
}
|
|
184
|
-
var
|
|
185
|
-
function
|
|
186
|
-
return
|
|
184
|
+
var Jt;
|
|
185
|
+
function pt() {
|
|
186
|
+
return Jt || (Jt = 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__ */ ft();
|
|
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();
|
|
@@ -197,26 +197,26 @@ function ut() {
|
|
|
197
197
|
}
|
|
198
198
|
return typeof process < "u" && process.platform ? process.platform === "win32" : !1;
|
|
199
199
|
}, e.removeBackslashes = (o) => o.replace(n, (s) => s === "\\" ? "" : s), e.escapeLast = (o, s, a) => {
|
|
200
|
-
const
|
|
201
|
-
return
|
|
200
|
+
const l = o.lastIndexOf(s, a);
|
|
201
|
+
return l === -1 ? o : o[l - 1] === "\\" ? e.escapeLast(o, s, l - 1) : `${o.slice(0, l)}\\${o.slice(l)}`;
|
|
202
202
|
}, e.removePrefix = (o, s = {}) => {
|
|
203
203
|
let a = o;
|
|
204
204
|
return a.startsWith("./") && (a = a.slice(2), s.prefix = "./"), a;
|
|
205
205
|
}, e.wrapOutput = (o, s = {}, a = {}) => {
|
|
206
|
-
const
|
|
207
|
-
let
|
|
208
|
-
return s.negated === !0 && (
|
|
206
|
+
const l = a.contains ? "" : "^", f = a.contains ? "" : "$";
|
|
207
|
+
let c = `${l}(?:${o})${f}`;
|
|
208
|
+
return s.negated === !0 && (c = `(?:^(?!${c}).*$)`), c;
|
|
209
209
|
}, e.basename = (o, { windows: s } = {}) => {
|
|
210
|
-
const a = o.split(s ? /[\\/]/ : "/"),
|
|
211
|
-
return
|
|
210
|
+
const a = o.split(s ? /[\\/]/ : "/"), l = a[a.length - 1];
|
|
211
|
+
return l === "" ? a[a.length - 2] : l;
|
|
212
212
|
};
|
|
213
|
-
})(
|
|
213
|
+
})(St)), St;
|
|
214
214
|
}
|
|
215
|
-
var
|
|
216
|
-
function
|
|
217
|
-
if (
|
|
218
|
-
|
|
219
|
-
const e = /* @__PURE__ */
|
|
215
|
+
var yt, en;
|
|
216
|
+
function dr() {
|
|
217
|
+
if (en) return yt;
|
|
218
|
+
en = 1;
|
|
219
|
+
const e = /* @__PURE__ */ pt(), {
|
|
220
220
|
CHAR_ASTERISK: t,
|
|
221
221
|
/* * */
|
|
222
222
|
CHAR_AT: n,
|
|
@@ -231,11 +231,11 @@ function pr() {
|
|
|
231
231
|
/* ! */
|
|
232
232
|
CHAR_FORWARD_SLASH: a,
|
|
233
233
|
/* / */
|
|
234
|
-
CHAR_LEFT_CURLY_BRACE:
|
|
234
|
+
CHAR_LEFT_CURLY_BRACE: l,
|
|
235
235
|
/* { */
|
|
236
236
|
CHAR_LEFT_PARENTHESES: f,
|
|
237
237
|
/* ( */
|
|
238
|
-
CHAR_LEFT_SQUARE_BRACKET:
|
|
238
|
+
CHAR_LEFT_SQUARE_BRACKET: c,
|
|
239
239
|
/* [ */
|
|
240
240
|
CHAR_PLUS: E,
|
|
241
241
|
/* + */
|
|
@@ -247,42 +247,42 @@ function pr() {
|
|
|
247
247
|
/* ) */
|
|
248
248
|
CHAR_RIGHT_SQUARE_BRACKET: O
|
|
249
249
|
/* ] */
|
|
250
|
-
} = /* @__PURE__ */
|
|
250
|
+
} = /* @__PURE__ */ ft(), $ = (A) => A === a || A === r, b = (A) => {
|
|
251
251
|
A.isPrefix !== !0 && (A.depth = A.isGlobstar ? 1 / 0 : 1);
|
|
252
252
|
};
|
|
253
|
-
return
|
|
253
|
+
return yt = (A, L) => {
|
|
254
254
|
const u = L || {}, I = A.length - 1, v = u.parts === !0 || u.tokens === !0 || u.scanToEnd === !0, m = [], g = [], R = [];
|
|
255
|
-
let j = A, F = -1, K = 0, pe = 0,
|
|
255
|
+
let j = A, F = -1, K = 0, pe = 0, ce = !1, me = !1, Q = !1, ye = !1, Oe = !1, Ae = !1, G = !1, Ee = !1, be = !1, oe = !1, ne = 0, ue, k, D = { value: "", depth: 0, isGlob: !1 };
|
|
256
256
|
const p = () => F >= I, se = () => j.charCodeAt(F + 1), X = () => (ue = k, j.charCodeAt(++F));
|
|
257
257
|
for (; F < I; ) {
|
|
258
258
|
k = X();
|
|
259
259
|
let U;
|
|
260
260
|
if (k === r) {
|
|
261
|
-
G = D.backslashes = !0, k = X(), k ===
|
|
261
|
+
G = D.backslashes = !0, k = X(), k === l && (Ae = !0);
|
|
262
262
|
continue;
|
|
263
263
|
}
|
|
264
|
-
if (Ae === !0 || k ===
|
|
264
|
+
if (Ae === !0 || k === l) {
|
|
265
265
|
for (ne++; p() !== !0 && (k = X()); ) {
|
|
266
266
|
if (k === r) {
|
|
267
267
|
G = D.backslashes = !0, X();
|
|
268
268
|
continue;
|
|
269
269
|
}
|
|
270
|
-
if (k ===
|
|
270
|
+
if (k === l) {
|
|
271
271
|
ne++;
|
|
272
272
|
continue;
|
|
273
273
|
}
|
|
274
274
|
if (Ae !== !0 && k === o && (k = X()) === o) {
|
|
275
|
-
if (
|
|
275
|
+
if (ce = D.isBrace = !0, Q = D.isGlob = !0, oe = !0, v === !0)
|
|
276
276
|
continue;
|
|
277
277
|
break;
|
|
278
278
|
}
|
|
279
279
|
if (Ae !== !0 && k === i) {
|
|
280
|
-
if (
|
|
280
|
+
if (ce = D.isBrace = !0, Q = D.isGlob = !0, oe = !0, v === !0)
|
|
281
281
|
continue;
|
|
282
282
|
break;
|
|
283
283
|
}
|
|
284
284
|
if (k === T && (ne--, ne === 0)) {
|
|
285
|
-
Ae = !1,
|
|
285
|
+
Ae = !1, ce = D.isBrace = !0, oe = !0;
|
|
286
286
|
break;
|
|
287
287
|
}
|
|
288
288
|
}
|
|
@@ -300,7 +300,7 @@ function pr() {
|
|
|
300
300
|
continue;
|
|
301
301
|
}
|
|
302
302
|
if (u.noext !== !0 && (k === E || k === n || k === t || k === S || k === s) === !0 && se() === f) {
|
|
303
|
-
if (Q = D.isGlob = !0, ye = D.isExtglob = !0, oe = !0, k === s && F === K && (
|
|
303
|
+
if (Q = D.isGlob = !0, ye = D.isExtglob = !0, oe = !0, k === s && F === K && (be = !0), v === !0) {
|
|
304
304
|
let fe = 0;
|
|
305
305
|
for (; p() !== !0 && (k = X()); ) {
|
|
306
306
|
if (k === r) {
|
|
@@ -321,7 +321,7 @@ function pr() {
|
|
|
321
321
|
break;
|
|
322
322
|
}
|
|
323
323
|
if (k === t) {
|
|
324
|
-
if (ue === t && (
|
|
324
|
+
if (ue === t && (Oe = D.isGlobstar = !0), Q = D.isGlob = !0, oe = !0, v === !0)
|
|
325
325
|
continue;
|
|
326
326
|
break;
|
|
327
327
|
}
|
|
@@ -330,7 +330,7 @@ function pr() {
|
|
|
330
330
|
continue;
|
|
331
331
|
break;
|
|
332
332
|
}
|
|
333
|
-
if (k ===
|
|
333
|
+
if (k === c) {
|
|
334
334
|
for (; p() !== !0 && (U = X()); ) {
|
|
335
335
|
if (U === r) {
|
|
336
336
|
G = D.backslashes = !0, X();
|
|
@@ -351,17 +351,17 @@ function pr() {
|
|
|
351
351
|
}
|
|
352
352
|
if (u.noparen !== !0 && k === f) {
|
|
353
353
|
if (Q = D.isGlob = !0, v === !0) {
|
|
354
|
-
let
|
|
354
|
+
let le = 1;
|
|
355
355
|
for (; p() !== !0 && (k = X()); ) {
|
|
356
356
|
if (k === r) {
|
|
357
357
|
G = D.backslashes = !0, X();
|
|
358
358
|
continue;
|
|
359
359
|
}
|
|
360
360
|
if (k === f) {
|
|
361
|
-
|
|
361
|
+
le++;
|
|
362
362
|
continue;
|
|
363
363
|
}
|
|
364
|
-
if (k === C && --
|
|
364
|
+
if (k === C && --le === 0) {
|
|
365
365
|
oe = !0;
|
|
366
366
|
break;
|
|
367
367
|
}
|
|
@@ -378,38 +378,38 @@ function pr() {
|
|
|
378
378
|
}
|
|
379
379
|
u.noext === !0 && (ye = !1, Q = !1);
|
|
380
380
|
let V = j, h = "", d = "";
|
|
381
|
-
K > 0 && (h = j.slice(0, K), j = j.slice(K), pe -= K), V && Q === !0 && pe > 0 ? (V = j.slice(0, pe), d = j.slice(pe)) : Q === !0 ? (V = "", d = j) : V = j, V && V !== "" && V !== "/" && V !== j &&
|
|
381
|
+
K > 0 && (h = j.slice(0, K), j = j.slice(K), pe -= K), V && Q === !0 && pe > 0 ? (V = j.slice(0, pe), d = j.slice(pe)) : Q === !0 ? (V = "", d = j) : V = j, V && V !== "" && V !== "/" && V !== j && $(V.charCodeAt(V.length - 1)) && (V = V.slice(0, -1)), u.unescape === !0 && (d && (d = e.removeBackslashes(d)), V && G === !0 && (V = e.removeBackslashes(V)));
|
|
382
382
|
const de = {
|
|
383
383
|
prefix: h,
|
|
384
384
|
input: A,
|
|
385
385
|
start: K,
|
|
386
386
|
base: V,
|
|
387
387
|
glob: d,
|
|
388
|
-
isBrace:
|
|
388
|
+
isBrace: ce,
|
|
389
389
|
isBracket: me,
|
|
390
390
|
isGlob: Q,
|
|
391
391
|
isExtglob: ye,
|
|
392
|
-
isGlobstar:
|
|
392
|
+
isGlobstar: Oe,
|
|
393
393
|
negated: Ee,
|
|
394
|
-
negatedExtglob:
|
|
394
|
+
negatedExtglob: be
|
|
395
395
|
};
|
|
396
|
-
if (u.tokens === !0 && (de.maxDepth = 0,
|
|
396
|
+
if (u.tokens === !0 && (de.maxDepth = 0, $(k) || g.push(D), de.tokens = g), u.parts === !0 || u.tokens === !0) {
|
|
397
397
|
let U;
|
|
398
398
|
for (let z = 0; z < m.length; z++) {
|
|
399
|
-
const Fe = U !== void 0 ? U + 1 : K, je = m[z],
|
|
400
|
-
u.tokens && (z === 0 && K !== 0 ? (g[z].isPrefix = !0, g[z].value = h) : g[z].value =
|
|
399
|
+
const Fe = U !== void 0 ? U + 1 : K, je = m[z], Ie = A.slice(Fe, je);
|
|
400
|
+
u.tokens && (z === 0 && K !== 0 ? (g[z].isPrefix = !0, g[z].value = h) : g[z].value = Ie, b(g[z]), de.maxDepth += g[z].depth), je >= K && (R.push(Ie), U = je);
|
|
401
401
|
}
|
|
402
|
-
const
|
|
402
|
+
const le = U !== void 0 ? U + 1 : K, fe = A.slice(le);
|
|
403
403
|
R.push(fe), u.tokens && U && U + 1 < A.length && (g[g.length - 1].value = fe, b(g[g.length - 1]), de.maxDepth += g[g.length - 1].depth), de.slashes = m, de.parts = R;
|
|
404
404
|
}
|
|
405
405
|
return de;
|
|
406
|
-
},
|
|
406
|
+
}, yt;
|
|
407
407
|
}
|
|
408
|
-
var
|
|
409
|
-
function
|
|
410
|
-
if (
|
|
411
|
-
|
|
412
|
-
const e = /* @__PURE__ */
|
|
408
|
+
var Ct, tn;
|
|
409
|
+
function hr() {
|
|
410
|
+
if (tn) return Ct;
|
|
411
|
+
tn = 1;
|
|
412
|
+
const e = /* @__PURE__ */ ft(), t = /* @__PURE__ */ pt(), {
|
|
413
413
|
MAX_LENGTH: n,
|
|
414
414
|
POSIX_REGEX_SOURCE: r,
|
|
415
415
|
REGEX_NON_SPECIAL_CHARS: i,
|
|
@@ -426,7 +426,7 @@ function dr() {
|
|
|
426
426
|
return A.map((v) => t.escapeRegex(v)).join("..");
|
|
427
427
|
}
|
|
428
428
|
return u;
|
|
429
|
-
},
|
|
429
|
+
}, l = (A, L) => `Missing ${A}: "${L}" - use "\\\\${L}" to match literal characters`, f = (A) => {
|
|
430
430
|
const L = [];
|
|
431
431
|
let u = 0, I = 0, v = 0, m = "", g = !1;
|
|
432
432
|
for (const R of A) {
|
|
@@ -461,7 +461,7 @@ function dr() {
|
|
|
461
461
|
m += R;
|
|
462
462
|
}
|
|
463
463
|
return L.push(m), L;
|
|
464
|
-
},
|
|
464
|
+
}, c = (A) => {
|
|
465
465
|
let L = !1;
|
|
466
466
|
for (const u of A) {
|
|
467
467
|
if (L === !0) {
|
|
@@ -480,7 +480,7 @@ function dr() {
|
|
|
480
480
|
let L = A.trim(), u = !0;
|
|
481
481
|
for (; u === !0; )
|
|
482
482
|
u = !1, /^@\([^\\()[\]{}|]+\)$/.test(L) && (L = L.slice(2, -1), u = !0);
|
|
483
|
-
if (
|
|
483
|
+
if (c(L))
|
|
484
484
|
return L.replace(/\\(.)/g, "$1");
|
|
485
485
|
}, S = (A) => {
|
|
486
486
|
const L = A.map(E).filter(Boolean);
|
|
@@ -549,7 +549,7 @@ function dr() {
|
|
|
549
549
|
}
|
|
550
550
|
if (!(u.length < 1))
|
|
551
551
|
return u;
|
|
552
|
-
},
|
|
552
|
+
}, $ = (A) => {
|
|
553
553
|
let L = 0, u = A.trim(), I = T(u);
|
|
554
554
|
for (; I; )
|
|
555
555
|
L++, u = I.body.trim(), I = T(u);
|
|
@@ -573,11 +573,11 @@ function dr() {
|
|
|
573
573
|
v.push(F);
|
|
574
574
|
continue;
|
|
575
575
|
}
|
|
576
|
-
if (g = !1,
|
|
576
|
+
if (g = !1, $(R) > u)
|
|
577
577
|
return { risky: !0 };
|
|
578
578
|
}
|
|
579
579
|
return m ? g ? { risky: !0, safeOutput: C([...new Set(v)]) } : { risky: !0 } : { risky: !1 };
|
|
580
|
-
},
|
|
580
|
+
}, w = (A, L) => {
|
|
581
581
|
if (typeof A != "string")
|
|
582
582
|
throw new TypeError("Expected a string");
|
|
583
583
|
A = s[A] || A;
|
|
@@ -588,18 +588,18 @@ function dr() {
|
|
|
588
588
|
const m = { type: "bos", value: "", output: u.prepend || "" }, g = [m], R = u.capture ? "" : "?:", j = e.globChars(u.windows), F = e.extglobChars(j), {
|
|
589
589
|
DOT_LITERAL: K,
|
|
590
590
|
PLUS_LITERAL: pe,
|
|
591
|
-
SLASH_LITERAL:
|
|
591
|
+
SLASH_LITERAL: ce,
|
|
592
592
|
ONE_CHAR: me,
|
|
593
593
|
DOTS_SLASH: Q,
|
|
594
594
|
NO_DOT: ye,
|
|
595
|
-
NO_DOT_SLASH:
|
|
595
|
+
NO_DOT_SLASH: Oe,
|
|
596
596
|
NO_DOTS_SLASH: Ae,
|
|
597
597
|
QMARK: G,
|
|
598
598
|
QMARK_NO_DOT: Ee,
|
|
599
|
-
STAR:
|
|
599
|
+
STAR: be,
|
|
600
600
|
START_ANCHOR: oe
|
|
601
601
|
} = j, ne = (y) => `(${R}(?:(?!${oe}${y.dot ? Q : K}).)*?)`, ue = u.dot ? "" : ye, k = u.dot ? G : Ee;
|
|
602
|
-
let D = u.bash === !0 ? ne(u) :
|
|
602
|
+
let D = u.bash === !0 ? ne(u) : be;
|
|
603
603
|
u.capture && (D = `(${D})`), typeof u.noext == "boolean" && (u.noextglob = u.noext);
|
|
604
604
|
const p = {
|
|
605
605
|
input: A,
|
|
@@ -621,16 +621,16 @@ function dr() {
|
|
|
621
621
|
A = t.removePrefix(A, p), v = A.length;
|
|
622
622
|
const se = [], X = [], V = [];
|
|
623
623
|
let h = m, d;
|
|
624
|
-
const de = () => p.index === v - 1, U = p.peek = (y = 1) => A[p.index + y],
|
|
624
|
+
const de = () => p.index === v - 1, U = p.peek = (y = 1) => A[p.index + y], le = p.advance = () => A[++p.index] || "", fe = () => A.slice(p.index + 1), z = (y = "", Y = 0) => {
|
|
625
625
|
p.consumed += y, p.index += Y;
|
|
626
626
|
}, Fe = (y) => {
|
|
627
627
|
p.output += y.output != null ? y.output : y.value, z(y.value);
|
|
628
628
|
}, je = () => {
|
|
629
629
|
let y = 1;
|
|
630
630
|
for (; U() === "!" && (U(2) !== "(" || U(3) === "?"); )
|
|
631
|
-
|
|
631
|
+
le(), p.start++, y++;
|
|
632
632
|
return y % 2 === 0 ? !1 : (p.negated = !0, p.start++, !0);
|
|
633
|
-
},
|
|
633
|
+
}, Ie = (y) => {
|
|
634
634
|
p[y]++, V.push(y);
|
|
635
635
|
}, ve = (y) => {
|
|
636
636
|
p[y]--, V.pop();
|
|
@@ -644,18 +644,18 @@ function dr() {
|
|
|
644
644
|
return;
|
|
645
645
|
}
|
|
646
646
|
y.prev = h, g.push(y), h = y;
|
|
647
|
-
},
|
|
647
|
+
}, Je = (y, Y) => {
|
|
648
648
|
const _ = { ...F[Y], conditions: 1, inner: "" };
|
|
649
649
|
_.prev = h, _.parens = p.parens, _.output = p.output, _.startIndex = p.index, _.tokensIndex = g.length;
|
|
650
650
|
const B = (u.capture ? "(" : "") + _.open;
|
|
651
|
-
|
|
652
|
-
},
|
|
651
|
+
Ie("parens"), P({ type: y, value: Y, output: p.output ? "" : me }), P({ type: "paren", extglob: !0, value: le(), output: B }), se.push(_);
|
|
652
|
+
}, ur = (y) => {
|
|
653
653
|
const Y = A.slice(y.startIndex, p.index + 1), _ = A.slice(y.startIndex + 2, p.index), B = b(_, u);
|
|
654
654
|
if ((y.type === "plus" || y.type === "star") && B.risky) {
|
|
655
655
|
const q = B.safeOutput ? (y.output ? "" : me) + (u.capture ? `(${B.safeOutput})` : B.safeOutput) : void 0, Se = g[y.tokensIndex];
|
|
656
656
|
Se.type = "text", Se.value = Y, Se.output = q || t.escapeRegex(Y);
|
|
657
|
-
for (let
|
|
658
|
-
g[
|
|
657
|
+
for (let Ne = y.tokensIndex + 1; Ne < g.length; Ne++)
|
|
658
|
+
g[Ne].value = "", g[Ne].output = "", delete g[Ne].suffix;
|
|
659
659
|
p.output = y.output + Se.output, p.backtrack = !0, P({ type: "paren", extglob: !0, value: d, output: "" }), ve("parens");
|
|
660
660
|
return;
|
|
661
661
|
}
|
|
@@ -663,7 +663,7 @@ function dr() {
|
|
|
663
663
|
if (y.type === "negate") {
|
|
664
664
|
let q = D;
|
|
665
665
|
if (y.inner && y.inner.length > 1 && y.inner.includes("/") && (q = ne(u)), (q !== D || de() || /^\)+$/.test(fe())) && (W = y.close = `)$))${q}`), y.inner.includes("*") && (Z = fe()) && /^\.[^\\/.]+$/.test(Z)) {
|
|
666
|
-
const Se =
|
|
666
|
+
const Se = w(Z, { ...L, fastpaths: !1 }).output;
|
|
667
667
|
W = y.close = `)${Se})${q})`;
|
|
668
668
|
}
|
|
669
669
|
y.prev.type === "bos" && (p.negatedExtglob = !0);
|
|
@@ -675,7 +675,7 @@ function dr() {
|
|
|
675
675
|
return y === !0 && (u.unescape === !0 ? Y = Y.replace(/\\/g, "") : Y = Y.replace(/\\+/g, (_) => _.length % 2 === 0 ? "\\\\" : _ ? "\\" : "")), Y === A && u.contains === !0 ? (p.output = A, p) : (p.output = t.wrapOutput(Y, p, L), p);
|
|
676
676
|
}
|
|
677
677
|
for (; !de(); ) {
|
|
678
|
-
if (d =
|
|
678
|
+
if (d = le(), d === "\0")
|
|
679
679
|
continue;
|
|
680
680
|
if (d === "\\") {
|
|
681
681
|
const _ = U();
|
|
@@ -687,7 +687,7 @@ function dr() {
|
|
|
687
687
|
}
|
|
688
688
|
const B = /^\\+/.exec(fe());
|
|
689
689
|
let W = 0;
|
|
690
|
-
if (B && B[0].length > 2 && (W = B[0].length, p.index += W, W % 2 !== 0 && (d += "\\")), u.unescape === !0 ? d =
|
|
690
|
+
if (B && B[0].length > 2 && (W = B[0].length, p.index += W, W % 2 !== 0 && (d += "\\")), u.unescape === !0 ? d = le() : d += le(), p.brackets === 0) {
|
|
691
691
|
P({ type: "text", value: d });
|
|
692
692
|
continue;
|
|
693
693
|
}
|
|
@@ -698,7 +698,7 @@ function dr() {
|
|
|
698
698
|
if (_.includes("[") && (h.posix = !0, _.includes(":"))) {
|
|
699
699
|
const B = h.value.lastIndexOf("["), W = h.value.slice(0, B), Z = h.value.slice(B + 2), q = r[Z];
|
|
700
700
|
if (q) {
|
|
701
|
-
h.value = W + q, p.backtrack = !0,
|
|
701
|
+
h.value = W + q, p.backtrack = !0, le(), !m.output && g.indexOf(h) === 1 && (m.output = me);
|
|
702
702
|
continue;
|
|
703
703
|
}
|
|
704
704
|
}
|
|
@@ -715,15 +715,15 @@ function dr() {
|
|
|
715
715
|
continue;
|
|
716
716
|
}
|
|
717
717
|
if (d === "(") {
|
|
718
|
-
|
|
718
|
+
Ie("parens"), P({ type: "paren", value: d });
|
|
719
719
|
continue;
|
|
720
720
|
}
|
|
721
721
|
if (d === ")") {
|
|
722
722
|
if (p.parens === 0 && u.strictBrackets === !0)
|
|
723
|
-
throw new SyntaxError(
|
|
723
|
+
throw new SyntaxError(l("opening", "("));
|
|
724
724
|
const _ = se[se.length - 1];
|
|
725
725
|
if (_ && p.parens === _.parens + 1) {
|
|
726
|
-
|
|
726
|
+
ur(se.pop());
|
|
727
727
|
continue;
|
|
728
728
|
}
|
|
729
729
|
P({ type: "paren", value: d, output: p.parens ? ")" : "\\)" }), ve("parens");
|
|
@@ -732,10 +732,10 @@ function dr() {
|
|
|
732
732
|
if (d === "[") {
|
|
733
733
|
if (u.nobracket === !0 || !fe().includes("]")) {
|
|
734
734
|
if (u.nobracket !== !0 && u.strictBrackets === !0)
|
|
735
|
-
throw new SyntaxError(
|
|
735
|
+
throw new SyntaxError(l("closing", "]"));
|
|
736
736
|
d = `\\${d}`;
|
|
737
737
|
} else
|
|
738
|
-
|
|
738
|
+
Ie("brackets");
|
|
739
739
|
P({ type: "bracket", value: d });
|
|
740
740
|
continue;
|
|
741
741
|
}
|
|
@@ -746,7 +746,7 @@ function dr() {
|
|
|
746
746
|
}
|
|
747
747
|
if (p.brackets === 0) {
|
|
748
748
|
if (u.strictBrackets === !0)
|
|
749
|
-
throw new SyntaxError(
|
|
749
|
+
throw new SyntaxError(l("opening", "["));
|
|
750
750
|
P({ type: "text", value: d, output: `\\${d}` });
|
|
751
751
|
continue;
|
|
752
752
|
}
|
|
@@ -763,7 +763,7 @@ function dr() {
|
|
|
763
763
|
continue;
|
|
764
764
|
}
|
|
765
765
|
if (d === "{" && u.nobrace !== !0) {
|
|
766
|
-
|
|
766
|
+
Ie("braces");
|
|
767
767
|
const _ = {
|
|
768
768
|
type: "brace",
|
|
769
769
|
value: d,
|
|
@@ -811,7 +811,7 @@ function dr() {
|
|
|
811
811
|
p.start = p.index + 1, p.consumed = "", p.output = "", g.pop(), h = m;
|
|
812
812
|
continue;
|
|
813
813
|
}
|
|
814
|
-
P({ type: "slash", value: d, output:
|
|
814
|
+
P({ type: "slash", value: d, output: ce });
|
|
815
815
|
continue;
|
|
816
816
|
}
|
|
817
817
|
if (d === ".") {
|
|
@@ -830,7 +830,7 @@ function dr() {
|
|
|
830
830
|
}
|
|
831
831
|
if (d === "?") {
|
|
832
832
|
if (!(h && h.value === "(") && u.noextglob !== !0 && U() === "(" && U(2) !== "?") {
|
|
833
|
-
|
|
833
|
+
Je("qmark", d);
|
|
834
834
|
continue;
|
|
835
835
|
}
|
|
836
836
|
if (h && h.type === "paren") {
|
|
@@ -848,7 +848,7 @@ function dr() {
|
|
|
848
848
|
}
|
|
849
849
|
if (d === "!") {
|
|
850
850
|
if (u.noextglob !== !0 && U() === "(" && (U(2) !== "?" || !/[!=<:]/.test(U(3)))) {
|
|
851
|
-
|
|
851
|
+
Je("negate", d);
|
|
852
852
|
continue;
|
|
853
853
|
}
|
|
854
854
|
if (u.nonegate !== !0 && p.index === 0) {
|
|
@@ -858,7 +858,7 @@ function dr() {
|
|
|
858
858
|
}
|
|
859
859
|
if (d === "+") {
|
|
860
860
|
if (u.noextglob !== !0 && U() === "(" && U(2) !== "?") {
|
|
861
|
-
|
|
861
|
+
Je("plus", d);
|
|
862
862
|
continue;
|
|
863
863
|
}
|
|
864
864
|
if (h && h.value === "(" || u.regex === !1) {
|
|
@@ -892,7 +892,7 @@ function dr() {
|
|
|
892
892
|
}
|
|
893
893
|
let y = fe();
|
|
894
894
|
if (u.noextglob !== !0 && /^\([^?]/.test(y)) {
|
|
895
|
-
|
|
895
|
+
Je("star", d);
|
|
896
896
|
continue;
|
|
897
897
|
}
|
|
898
898
|
if (h.type === "star") {
|
|
@@ -916,22 +916,22 @@ function dr() {
|
|
|
916
916
|
break;
|
|
917
917
|
y = y.slice(3), z("/**", 3);
|
|
918
918
|
}
|
|
919
|
-
const
|
|
919
|
+
const Ne = de() || p.parens > 0 && y === ")".repeat(p.parens) && !se.some((Pe) => Pe.type === "negate");
|
|
920
920
|
if (_.type === "bos" && de()) {
|
|
921
921
|
h.type = "globstar", h.value += d, h.output = ne(u), p.output = h.output, p.globstar = !0, z(d);
|
|
922
922
|
continue;
|
|
923
923
|
}
|
|
924
|
-
if (_.type === "slash" && _.prev.type !== "bos" && !Z &&
|
|
924
|
+
if (_.type === "slash" && _.prev.type !== "bos" && !Z && Ne) {
|
|
925
925
|
p.output = p.output.slice(0, -(_.output + h.output).length), _.output = `(?:${_.output}`, h.type = "globstar", h.output = ne(u) + (u.strictSlashes ? ")" : "|$)"), h.value += d, p.globstar = !0, p.output += _.output + h.output, z(d);
|
|
926
926
|
continue;
|
|
927
927
|
}
|
|
928
928
|
if (_.type === "slash" && _.prev.type !== "bos" && y[0] === "/") {
|
|
929
929
|
const Pe = y[1] !== void 0 ? "|$" : "";
|
|
930
|
-
p.output = p.output.slice(0, -(_.output + h.output).length), _.output = `(?:${_.output}`, h.type = "globstar", h.output = `${ne(u)}${
|
|
930
|
+
p.output = p.output.slice(0, -(_.output + h.output).length), _.output = `(?:${_.output}`, h.type = "globstar", h.output = `${ne(u)}${ce}|${ce}${Pe})`, h.value += d, p.output += _.output + h.output, p.globstar = !0, z(d + le()), P({ type: "slash", value: "/", output: "" });
|
|
931
931
|
continue;
|
|
932
932
|
}
|
|
933
933
|
if (_.type === "bos" && y[0] === "/") {
|
|
934
|
-
h.type = "globstar", h.value += d, h.output = `(?:^|${
|
|
934
|
+
h.type = "globstar", h.value += d, h.output = `(?:^|${ce}|${ne(u)}${ce})`, p.output = h.output, p.globstar = !0, z(d + le()), P({ type: "slash", value: "/", output: "" });
|
|
935
935
|
continue;
|
|
936
936
|
}
|
|
937
937
|
p.output = p.output.slice(0, -h.output.length), h.type = "globstar", h.output = ne(u), h.value += d, p.output += h.output, p.globstar = !0, z(d);
|
|
@@ -946,28 +946,28 @@ function dr() {
|
|
|
946
946
|
Y.output = d, P(Y);
|
|
947
947
|
continue;
|
|
948
948
|
}
|
|
949
|
-
(p.index === p.start || h.type === "slash" || h.type === "dot") && (h.type === "dot" ? (p.output +=
|
|
949
|
+
(p.index === p.start || h.type === "slash" || h.type === "dot") && (h.type === "dot" ? (p.output += Oe, h.output += Oe) : u.dot === !0 ? (p.output += Ae, h.output += Ae) : (p.output += ue, h.output += ue), U() !== "*" && (p.output += me, h.output += me)), P(Y);
|
|
950
950
|
}
|
|
951
951
|
for (; p.brackets > 0; ) {
|
|
952
|
-
if (u.strictBrackets === !0) throw new SyntaxError(
|
|
952
|
+
if (u.strictBrackets === !0) throw new SyntaxError(l("closing", "]"));
|
|
953
953
|
p.output = t.escapeLast(p.output, "["), ve("brackets");
|
|
954
954
|
}
|
|
955
955
|
for (; p.parens > 0; ) {
|
|
956
|
-
if (u.strictBrackets === !0) throw new SyntaxError(
|
|
956
|
+
if (u.strictBrackets === !0) throw new SyntaxError(l("closing", ")"));
|
|
957
957
|
p.output = t.escapeLast(p.output, "("), ve("parens");
|
|
958
958
|
}
|
|
959
959
|
for (; p.braces > 0; ) {
|
|
960
|
-
if (u.strictBrackets === !0) throw new SyntaxError(
|
|
960
|
+
if (u.strictBrackets === !0) throw new SyntaxError(l("closing", "}"));
|
|
961
961
|
p.output = t.escapeLast(p.output, "{"), ve("braces");
|
|
962
962
|
}
|
|
963
|
-
if (u.strictSlashes !== !0 && (h.type === "star" || h.type === "bracket") && P({ type: "maybe_slash", value: "", output: `${
|
|
963
|
+
if (u.strictSlashes !== !0 && (h.type === "star" || h.type === "bracket") && P({ type: "maybe_slash", value: "", output: `${ce}?` }), p.backtrack === !0) {
|
|
964
964
|
p.output = "";
|
|
965
965
|
for (const y of p.tokens)
|
|
966
966
|
p.output += y.output != null ? y.output : y.value, y.suffix && (p.output += y.suffix);
|
|
967
967
|
}
|
|
968
968
|
return p;
|
|
969
969
|
};
|
|
970
|
-
return
|
|
970
|
+
return w.fastpaths = (A, L) => {
|
|
971
971
|
const u = { ...L }, I = typeof u.maxLength == "number" ? Math.min(n, u.maxLength) : n, v = A.length;
|
|
972
972
|
if (v > I)
|
|
973
973
|
throw new SyntaxError(`Input length: ${v}, exceeds maximum allowed length: ${I}`);
|
|
@@ -980,12 +980,12 @@ function dr() {
|
|
|
980
980
|
NO_DOT: F,
|
|
981
981
|
NO_DOTS: K,
|
|
982
982
|
NO_DOTS_SLASH: pe,
|
|
983
|
-
STAR:
|
|
983
|
+
STAR: ce,
|
|
984
984
|
START_ANCHOR: me
|
|
985
|
-
} = e.globChars(u.windows), Q = u.dot ? K : F, ye = u.dot ? pe : F,
|
|
986
|
-
let G = u.bash === !0 ? ".*?" :
|
|
985
|
+
} = e.globChars(u.windows), Q = u.dot ? K : F, ye = u.dot ? pe : F, Oe = u.capture ? "" : "?:", Ae = { negated: !1, prefix: "" };
|
|
986
|
+
let G = u.bash === !0 ? ".*?" : ce;
|
|
987
987
|
u.capture && (G = `(${G})`);
|
|
988
|
-
const Ee = (ue) => ue.noglobstar === !0 ? G : `(${
|
|
988
|
+
const Ee = (ue) => ue.noglobstar === !0 ? G : `(${Oe}(?:(?!${me}${ue.dot ? j : m}).)*?)`, be = (ue) => {
|
|
989
989
|
switch (ue) {
|
|
990
990
|
case "*":
|
|
991
991
|
return `${Q}${R}${G}`;
|
|
@@ -1006,25 +1006,25 @@ function dr() {
|
|
|
1006
1006
|
default: {
|
|
1007
1007
|
const k = /^(.*?)\.(\w+)$/.exec(ue);
|
|
1008
1008
|
if (!k) return;
|
|
1009
|
-
const D =
|
|
1009
|
+
const D = be(k[1]);
|
|
1010
1010
|
return D ? D + m + k[2] : void 0;
|
|
1011
1011
|
}
|
|
1012
1012
|
}
|
|
1013
1013
|
}, oe = t.removePrefix(A, Ae);
|
|
1014
|
-
let ne =
|
|
1014
|
+
let ne = be(oe);
|
|
1015
1015
|
return ne && u.strictSlashes !== !0 && (ne += `${g}?`), ne;
|
|
1016
|
-
},
|
|
1016
|
+
}, Ct = w, Ct;
|
|
1017
1017
|
}
|
|
1018
|
-
var
|
|
1019
|
-
function
|
|
1020
|
-
if (
|
|
1021
|
-
|
|
1022
|
-
const e = /* @__PURE__ */
|
|
1018
|
+
var Tt, nn;
|
|
1019
|
+
function gr() {
|
|
1020
|
+
if (nn) return Tt;
|
|
1021
|
+
nn = 1;
|
|
1022
|
+
const e = /* @__PURE__ */ dr(), t = /* @__PURE__ */ hr(), n = /* @__PURE__ */ pt(), r = /* @__PURE__ */ ft(), i = (s) => s && typeof s == "object" && !Array.isArray(s), o = (s, a, l = !1) => {
|
|
1023
1023
|
if (Array.isArray(s)) {
|
|
1024
|
-
const
|
|
1025
|
-
return (
|
|
1026
|
-
for (const A of
|
|
1027
|
-
const L = A(
|
|
1024
|
+
const $ = s.map((w) => o(w, a, l));
|
|
1025
|
+
return (w) => {
|
|
1026
|
+
for (const A of $) {
|
|
1027
|
+
const L = A(w);
|
|
1028
1028
|
if (L) return L;
|
|
1029
1029
|
}
|
|
1030
1030
|
return !1;
|
|
@@ -1033,66 +1033,66 @@ function hr() {
|
|
|
1033
1033
|
const f = i(s) && s.tokens && s.input;
|
|
1034
1034
|
if (s === "" || typeof s != "string" && !f)
|
|
1035
1035
|
throw new TypeError("Expected pattern to be a non-empty string");
|
|
1036
|
-
const
|
|
1036
|
+
const c = a || {}, E = c.windows, S = f ? o.compileRe(s, a) : o.makeRe(s, a, !1, !0), T = S.state;
|
|
1037
1037
|
delete S.state;
|
|
1038
1038
|
let C = () => !1;
|
|
1039
|
-
if (
|
|
1040
|
-
const
|
|
1041
|
-
C = o(
|
|
1039
|
+
if (c.ignore) {
|
|
1040
|
+
const $ = { ...a, ignore: null, onMatch: null, onResult: null };
|
|
1041
|
+
C = o(c.ignore, $, l);
|
|
1042
1042
|
}
|
|
1043
|
-
const O = (
|
|
1044
|
-
const { isMatch:
|
|
1045
|
-
return typeof
|
|
1043
|
+
const O = ($, b = !1) => {
|
|
1044
|
+
const { isMatch: w, match: A, output: L } = o.test($, S, a, { glob: s, posix: E }), u = { glob: s, state: T, regex: S, posix: E, input: $, output: L, match: A, isMatch: w };
|
|
1045
|
+
return typeof c.onResult == "function" && c.onResult(u), w === !1 ? (u.isMatch = !1, b ? u : !1) : C($) ? (typeof c.onIgnore == "function" && c.onIgnore(u), u.isMatch = !1, b ? u : !1) : (typeof c.onMatch == "function" && c.onMatch(u), b ? u : !0);
|
|
1046
1046
|
};
|
|
1047
|
-
return
|
|
1047
|
+
return l && (O.state = T), O;
|
|
1048
1048
|
};
|
|
1049
|
-
return o.test = (s, a,
|
|
1049
|
+
return o.test = (s, a, l, { glob: f, posix: c } = {}) => {
|
|
1050
1050
|
if (typeof s != "string")
|
|
1051
1051
|
throw new TypeError("Expected input to be a string");
|
|
1052
1052
|
if (s === "")
|
|
1053
1053
|
return { isMatch: !1, output: "" };
|
|
1054
|
-
const E =
|
|
1054
|
+
const E = l || {}, S = E.format || (c ? n.toPosixSlashes : null);
|
|
1055
1055
|
let T = s === f, C = T && S ? S(s) : s;
|
|
1056
|
-
return T === !1 && (C = S ? S(s) : s, T = C === f), (T === !1 || E.capture === !0) && (E.matchBase === !0 || E.basename === !0 ? T = o.matchBase(s, a,
|
|
1057
|
-
}, o.matchBase = (s, a,
|
|
1058
|
-
if (
|
|
1056
|
+
return T === !1 && (C = S ? S(s) : s, T = C === f), (T === !1 || E.capture === !0) && (E.matchBase === !0 || E.basename === !0 ? T = o.matchBase(s, a, l, c) : T = a.exec(C)), { isMatch: !!T, match: T, output: C };
|
|
1057
|
+
}, o.matchBase = (s, a, l, f = l && l.windows) => (a instanceof RegExp ? a : o.makeRe(a, l)).test(n.basename(s, { windows: f })), o.isMatch = (s, a, l) => o(a, l)(s), o.parse = (s, a) => Array.isArray(s) ? s.map((l) => o.parse(l, a)) : t(s, { ...a, fastpaths: !1 }), o.scan = (s, a) => e(s, a), o.compileRe = (s, a, l = !1, f = !1) => {
|
|
1058
|
+
if (l === !0)
|
|
1059
1059
|
return s.output;
|
|
1060
|
-
const
|
|
1060
|
+
const c = a || {}, E = c.contains ? "" : "^", S = c.contains ? "" : "$";
|
|
1061
1061
|
let T = `${E}(?:${s.output})${S}`;
|
|
1062
1062
|
s && s.negated === !0 && (T = `^(?!${T}).*$`);
|
|
1063
1063
|
const C = o.toRegex(T, a);
|
|
1064
1064
|
return f === !0 && (C.state = s), C;
|
|
1065
|
-
}, o.makeRe = (s, a = {},
|
|
1065
|
+
}, o.makeRe = (s, a = {}, l = !1, f = !1) => {
|
|
1066
1066
|
if (!s || typeof s != "string")
|
|
1067
1067
|
throw new TypeError("Expected a non-empty string");
|
|
1068
|
-
let
|
|
1069
|
-
return a.fastpaths !== !1 && (s[0] === "." || s[0] === "*") && (
|
|
1068
|
+
let c = { negated: !1, fastpaths: !0 };
|
|
1069
|
+
return a.fastpaths !== !1 && (s[0] === "." || s[0] === "*") && (c.output = t.fastpaths(s, a)), c.output || (c = t(s, a)), o.compileRe(c, a, l, f);
|
|
1070
1070
|
}, o.toRegex = (s, a) => {
|
|
1071
1071
|
try {
|
|
1072
|
-
const
|
|
1073
|
-
return new RegExp(s,
|
|
1074
|
-
} catch (
|
|
1075
|
-
if (a && a.debug === !0) throw
|
|
1072
|
+
const l = a || {};
|
|
1073
|
+
return new RegExp(s, l.flags || (l.nocase ? "i" : ""));
|
|
1074
|
+
} catch (l) {
|
|
1075
|
+
if (a && a.debug === !0) throw l;
|
|
1076
1076
|
return /$^/;
|
|
1077
1077
|
}
|
|
1078
|
-
}, o.constants = r,
|
|
1078
|
+
}, o.constants = r, Tt = o, Tt;
|
|
1079
1079
|
}
|
|
1080
|
-
var
|
|
1081
|
-
function
|
|
1082
|
-
if (
|
|
1083
|
-
|
|
1084
|
-
const e = /* @__PURE__ */
|
|
1080
|
+
var vt, rn;
|
|
1081
|
+
function mr() {
|
|
1082
|
+
if (rn) return vt;
|
|
1083
|
+
rn = 1;
|
|
1084
|
+
const e = /* @__PURE__ */ gr(), t = /* @__PURE__ */ pt();
|
|
1085
1085
|
function n(r, i, o = !1) {
|
|
1086
1086
|
return i && (i.windows === null || i.windows === void 0) && (i = { ...i, windows: t.isWindows() }), e(r, i, o);
|
|
1087
1087
|
}
|
|
1088
|
-
return Object.assign(n, e),
|
|
1088
|
+
return Object.assign(n, e), vt = n, vt;
|
|
1089
1089
|
}
|
|
1090
|
-
var
|
|
1091
|
-
const
|
|
1092
|
-
async function
|
|
1090
|
+
var Ar = /* @__PURE__ */ mr();
|
|
1091
|
+
const Er = /* @__PURE__ */ fr(Ar), Sr = typeof window < "u" || typeof process > "u" || process?.platform === "browser", _r = Sr ? {} : process.env || {};
|
|
1092
|
+
async function yr(e, t) {
|
|
1093
1093
|
const n = {};
|
|
1094
1094
|
for (const i of t.headers)
|
|
1095
|
-
|
|
1095
|
+
Cr(e, i.matches) && (n[i.name] = i.envVariable !== void 0 ? _r[i.envVariable] || "" : i.value);
|
|
1096
1096
|
const r = await (t.customFetch || fetch)(e, {
|
|
1097
1097
|
headers: n
|
|
1098
1098
|
});
|
|
@@ -1100,10 +1100,10 @@ async function _r(e, t) {
|
|
|
1100
1100
|
throw new Error(`Failed to load ${e}: ${r.status} ${r.statusText}`);
|
|
1101
1101
|
return { body: await r.text(), mimeType: r.headers.get("content-type") };
|
|
1102
1102
|
}
|
|
1103
|
-
function
|
|
1104
|
-
return t.match(/^https?:\/\//) || (e = e.replace(/^https?:\/\//, "")),
|
|
1103
|
+
function Cr(e, t) {
|
|
1104
|
+
return t.match(/^https?:\/\//) || (e = e.replace(/^https?:\/\//, "")), Er.isMatch(e, t);
|
|
1105
1105
|
}
|
|
1106
|
-
function
|
|
1106
|
+
function $s(e, t = {}) {
|
|
1107
1107
|
return {
|
|
1108
1108
|
name: `${e}List`,
|
|
1109
1109
|
properties: {},
|
|
@@ -1111,7 +1111,7 @@ function Ns(e, t = {}) {
|
|
|
1111
1111
|
...t
|
|
1112
1112
|
};
|
|
1113
1113
|
}
|
|
1114
|
-
function
|
|
1114
|
+
function ks(e, t = {}) {
|
|
1115
1115
|
return {
|
|
1116
1116
|
name: `${e}Map`,
|
|
1117
1117
|
properties: {},
|
|
@@ -1119,13 +1119,13 @@ function $s(e, t = {}) {
|
|
|
1119
1119
|
...t
|
|
1120
1120
|
};
|
|
1121
1121
|
}
|
|
1122
|
-
const
|
|
1122
|
+
const tt = {
|
|
1123
1123
|
name: "SpecExtension",
|
|
1124
1124
|
properties: {},
|
|
1125
1125
|
// skip validation of additional properties for unknown extensions
|
|
1126
1126
|
additionalProperties: { resolvable: !0 }
|
|
1127
1127
|
};
|
|
1128
|
-
function
|
|
1128
|
+
function Fs(e, t = {}) {
|
|
1129
1129
|
const n = {};
|
|
1130
1130
|
for (const o of Object.keys(e))
|
|
1131
1131
|
n[o] = {
|
|
@@ -1134,13 +1134,13 @@ function ws(e, t = {}) {
|
|
|
1134
1134
|
};
|
|
1135
1135
|
for (const o of Object.values(n))
|
|
1136
1136
|
r(o);
|
|
1137
|
-
return n.SpecExtension =
|
|
1137
|
+
return n.SpecExtension = tt, n;
|
|
1138
1138
|
function r(o) {
|
|
1139
1139
|
if (o.additionalProperties && (o.additionalProperties = i(o.additionalProperties)), o.items && (o.items = i(o.items)), o.properties) {
|
|
1140
1140
|
const s = {};
|
|
1141
|
-
for (const [a,
|
|
1142
|
-
s[a] = i(
|
|
1143
|
-
...
|
|
1141
|
+
for (const [a, l] of Object.entries(o.properties))
|
|
1142
|
+
s[a] = i(l), t.doNotResolveExamples && l && l.isExample && (s[a] = {
|
|
1143
|
+
...l,
|
|
1144
1144
|
resolvable: !1
|
|
1145
1145
|
});
|
|
1146
1146
|
o.properties = s;
|
|
@@ -1151,44 +1151,44 @@ function ws(e, t = {}) {
|
|
|
1151
1151
|
if (!n[o])
|
|
1152
1152
|
throw new Error(`Unknown type name found: ${o}`);
|
|
1153
1153
|
return n[o];
|
|
1154
|
-
} else return typeof o == "function" ? (s, a) => i(o(s, a)) :
|
|
1154
|
+
} else return typeof o == "function" ? (s, a) => i(o(s, a)) : nt(o) ? (o = { ...o }, r(o), o) : o?.directResolveAs !== void 0 ? {
|
|
1155
1155
|
...o,
|
|
1156
1156
|
directResolveAs: i(o.directResolveAs) ?? void 0
|
|
1157
1157
|
} : o;
|
|
1158
1158
|
}
|
|
1159
1159
|
}
|
|
1160
|
-
function
|
|
1160
|
+
function nt(e) {
|
|
1161
1161
|
return typeof e?.name == "string";
|
|
1162
1162
|
}
|
|
1163
1163
|
function Le(e, t) {
|
|
1164
1164
|
return e === "" && (e = "#/"), e[e.length - 1] === "/" ? e + t : e + "/" + t;
|
|
1165
1165
|
}
|
|
1166
|
-
function
|
|
1167
|
-
return
|
|
1168
|
-
}
|
|
1169
|
-
function Cr(e) {
|
|
1170
|
-
return nt(e) && Object.keys(e).length > 1;
|
|
1166
|
+
function rt(e) {
|
|
1167
|
+
return xe(e) && typeof e.$ref == "string";
|
|
1171
1168
|
}
|
|
1172
1169
|
function Tr(e) {
|
|
1173
|
-
return
|
|
1170
|
+
return rt(e) && Object.keys(e).length > 1;
|
|
1174
1171
|
}
|
|
1175
|
-
|
|
1172
|
+
function vr(e) {
|
|
1173
|
+
return xe(e) && typeof e.externalValue == "string";
|
|
1174
|
+
}
|
|
1175
|
+
class ot {
|
|
1176
1176
|
source;
|
|
1177
1177
|
pointer;
|
|
1178
1178
|
constructor(t, n) {
|
|
1179
1179
|
this.source = t, this.pointer = n;
|
|
1180
1180
|
}
|
|
1181
1181
|
child(t) {
|
|
1182
|
-
return new
|
|
1182
|
+
return new ot(this.source, Le(this.pointer, (Array.isArray(t) ? t : [t]).map(Be).join("/")));
|
|
1183
1183
|
}
|
|
1184
1184
|
key() {
|
|
1185
|
-
return Object.assign(Object.create(
|
|
1185
|
+
return Object.assign(Object.create(ot.prototype), this, { reportOnKey: !0 });
|
|
1186
1186
|
}
|
|
1187
1187
|
get absolutePointer() {
|
|
1188
1188
|
return this.source.absoluteRef + (this.pointer === "#/" ? "" : this.pointer);
|
|
1189
1189
|
}
|
|
1190
1190
|
}
|
|
1191
|
-
function
|
|
1191
|
+
function Lr(e) {
|
|
1192
1192
|
const t = e.indexOf("~") === -1 ? e : e.replaceAll("~1", "/").replaceAll("~0", "~");
|
|
1193
1193
|
try {
|
|
1194
1194
|
return decodeURIComponent(t);
|
|
@@ -1199,45 +1199,48 @@ function vr(e) {
|
|
|
1199
1199
|
function Be(e) {
|
|
1200
1200
|
return typeof e == "number" || e.indexOf("/") === -1 && e.indexOf("~") === -1 ? e : e.replaceAll("~", "~0").replaceAll("/", "~1");
|
|
1201
1201
|
}
|
|
1202
|
-
function
|
|
1202
|
+
function Rr(e) {
|
|
1203
1203
|
const [t, n = ""] = e.split("#/");
|
|
1204
1204
|
return {
|
|
1205
1205
|
uri: (t.endsWith("#") ? t.slice(0, -1) : t) || null,
|
|
1206
|
-
pointer:
|
|
1206
|
+
pointer: xr(n)
|
|
1207
1207
|
};
|
|
1208
1208
|
}
|
|
1209
|
-
function
|
|
1210
|
-
return e.split("/").map(
|
|
1209
|
+
function xr(e) {
|
|
1210
|
+
return e.split("/").map(Lr).filter(pr);
|
|
1211
1211
|
}
|
|
1212
|
-
function
|
|
1212
|
+
function Ps(e) {
|
|
1213
1213
|
const t = e.split("/");
|
|
1214
1214
|
return t[t.length - 1];
|
|
1215
1215
|
}
|
|
1216
|
-
function
|
|
1216
|
+
function Bs(e) {
|
|
1217
1217
|
const t = e.split(/[\/\\]/);
|
|
1218
1218
|
return t[t.length - 1].replace(/\.[^.]+$/, "");
|
|
1219
1219
|
}
|
|
1220
|
-
function
|
|
1221
|
-
return e.startsWith("
|
|
1222
|
-
}
|
|
1223
|
-
function Ps(e) {
|
|
1224
|
-
return ze.extname(e) ? $e(e) ? e.substring(0, e.lastIndexOf("/")) : ze.dirname(e) : e;
|
|
1220
|
+
function Xe(e) {
|
|
1221
|
+
return e.startsWith("file://");
|
|
1225
1222
|
}
|
|
1226
|
-
function
|
|
1227
|
-
return
|
|
1223
|
+
function Re(e) {
|
|
1224
|
+
return e.startsWith("http://") || e.startsWith("https://") || Xe(e) || e.startsWith("data:");
|
|
1228
1225
|
}
|
|
1229
1226
|
function Ds(e) {
|
|
1230
|
-
return
|
|
1227
|
+
return Ze.extname(e) ? Re(e) ? e.substring(0, e.lastIndexOf("/")) : Ze.dirname(e) : e;
|
|
1231
1228
|
}
|
|
1232
|
-
function
|
|
1229
|
+
function Ms(e, t) {
|
|
1230
|
+
return Re(e) ? new URL(t, e.endsWith("/") ? e : `${e}/`).href : Ze.resolve(e, t);
|
|
1231
|
+
}
|
|
1232
|
+
function Hs(e) {
|
|
1233
|
+
return typeof e == "string" && (e.startsWith("#") || Re(e) || e.startsWith("./") || e.startsWith("../") || e.indexOf("/") > -1 || /\.(ya?ml|json)$/i.test(e));
|
|
1234
|
+
}
|
|
1235
|
+
function Or(e) {
|
|
1233
1236
|
return /^#[A-Za-z][A-Za-z0-9\-_:.]*$/.test(e);
|
|
1234
1237
|
}
|
|
1235
|
-
function
|
|
1236
|
-
if (!
|
|
1238
|
+
function Us(e, t, n) {
|
|
1239
|
+
if (!xe(t.node) && n.parent) {
|
|
1237
1240
|
n.parent[n.key] = t.node;
|
|
1238
1241
|
return;
|
|
1239
1242
|
}
|
|
1240
|
-
delete e.$ref,
|
|
1243
|
+
delete e.$ref, xe(t.node) && Object.assign(e, { ...t.node, ...e });
|
|
1241
1244
|
}
|
|
1242
1245
|
var M = /* @__PURE__ */ Symbol("NOT_RESOLVED");
|
|
1243
1246
|
function ie(e, t) {
|
|
@@ -1253,7 +1256,7 @@ function ie(e, t) {
|
|
|
1253
1256
|
representTagName: t.representTagName ?? (() => e)
|
|
1254
1257
|
};
|
|
1255
1258
|
}
|
|
1256
|
-
function
|
|
1259
|
+
function Gt(e, t) {
|
|
1257
1260
|
const n = t.finalize === void 0;
|
|
1258
1261
|
return {
|
|
1259
1262
|
tagName: e,
|
|
@@ -1269,7 +1272,7 @@ function Ut(e, t) {
|
|
|
1269
1272
|
representTagName: t.representTagName ?? (() => e)
|
|
1270
1273
|
};
|
|
1271
1274
|
}
|
|
1272
|
-
function
|
|
1275
|
+
function dt(e, t) {
|
|
1273
1276
|
const n = t.finalize === void 0;
|
|
1274
1277
|
return {
|
|
1275
1278
|
tagName: e,
|
|
@@ -1288,16 +1291,16 @@ function ft(e, t) {
|
|
|
1288
1291
|
representTagName: t.representTagName ?? (() => e)
|
|
1289
1292
|
};
|
|
1290
1293
|
}
|
|
1291
|
-
var
|
|
1294
|
+
var br = ie("tag:yaml.org,2002:str", {
|
|
1292
1295
|
resolve: (e) => e,
|
|
1293
1296
|
identify: (e) => typeof e == "string"
|
|
1294
|
-
}),
|
|
1297
|
+
}), Ir = [
|
|
1295
1298
|
"",
|
|
1296
1299
|
"~",
|
|
1297
1300
|
"null",
|
|
1298
1301
|
"Null",
|
|
1299
1302
|
"NULL"
|
|
1300
|
-
],
|
|
1303
|
+
], Nr = ie("tag:yaml.org,2002:null", {
|
|
1301
1304
|
implicit: !0,
|
|
1302
1305
|
implicitFirstChars: [
|
|
1303
1306
|
"",
|
|
@@ -1305,10 +1308,10 @@ var Or = ie("tag:yaml.org,2002:str", {
|
|
|
1305
1308
|
"n",
|
|
1306
1309
|
"N"
|
|
1307
1310
|
],
|
|
1308
|
-
resolve: (e) =>
|
|
1311
|
+
resolve: (e) => Ir.indexOf(e) !== -1 ? null : M,
|
|
1309
1312
|
identify: (e) => e === null,
|
|
1310
1313
|
represent: () => "null"
|
|
1311
|
-
}),
|
|
1314
|
+
}), wr = ie("tag:yaml.org,2002:null", {
|
|
1312
1315
|
implicit: !0,
|
|
1313
1316
|
implicitFirstChars: ["n"],
|
|
1314
1317
|
resolve: (e, t) => e === "null" || t && e === "" ? null : M,
|
|
@@ -1320,7 +1323,7 @@ var Or = ie("tag:yaml.org,2002:str", {
|
|
|
1320
1323
|
"null",
|
|
1321
1324
|
"Null",
|
|
1322
1325
|
"NULL"
|
|
1323
|
-
],
|
|
1326
|
+
], kr = ie("tag:yaml.org,2002:null", {
|
|
1324
1327
|
implicit: !0,
|
|
1325
1328
|
implicitFirstChars: [
|
|
1326
1329
|
"",
|
|
@@ -1331,15 +1334,15 @@ var Or = ie("tag:yaml.org,2002:str", {
|
|
|
1331
1334
|
resolve: (e) => $r.indexOf(e) !== -1 ? null : M,
|
|
1332
1335
|
identify: (e) => e === null,
|
|
1333
1336
|
represent: () => "null"
|
|
1334
|
-
}),
|
|
1337
|
+
}), Fr = [
|
|
1335
1338
|
"true",
|
|
1336
1339
|
"True",
|
|
1337
1340
|
"TRUE"
|
|
1338
|
-
],
|
|
1341
|
+
], Pr = [
|
|
1339
1342
|
"false",
|
|
1340
1343
|
"False",
|
|
1341
1344
|
"FALSE"
|
|
1342
|
-
],
|
|
1345
|
+
], Br = ie("tag:yaml.org,2002:bool", {
|
|
1343
1346
|
implicit: !0,
|
|
1344
1347
|
implicitFirstChars: [
|
|
1345
1348
|
"t",
|
|
@@ -1347,16 +1350,16 @@ var Or = ie("tag:yaml.org,2002:str", {
|
|
|
1347
1350
|
"f",
|
|
1348
1351
|
"F"
|
|
1349
1352
|
],
|
|
1350
|
-
resolve: (e) =>
|
|
1353
|
+
resolve: (e) => Fr.indexOf(e) !== -1 ? !0 : Pr.indexOf(e) !== -1 ? !1 : M,
|
|
1351
1354
|
identify: (e) => Object.prototype.toString.call(e) === "[object Boolean]",
|
|
1352
1355
|
represent: (e) => e ? "true" : "false"
|
|
1353
|
-
}),
|
|
1356
|
+
}), Dr = ["true"], Mr = ["false"], Hr = ie("tag:yaml.org,2002:bool", {
|
|
1354
1357
|
implicit: !0,
|
|
1355
1358
|
implicitFirstChars: ["t", "f"],
|
|
1356
|
-
resolve: (e) =>
|
|
1359
|
+
resolve: (e) => Dr.indexOf(e) !== -1 ? !0 : Mr.indexOf(e) !== -1 ? !1 : M,
|
|
1357
1360
|
identify: (e) => Object.prototype.toString.call(e) === "[object Boolean]",
|
|
1358
1361
|
represent: (e) => e ? "true" : "false"
|
|
1359
|
-
}),
|
|
1362
|
+
}), Ur = [
|
|
1360
1363
|
"true",
|
|
1361
1364
|
"True",
|
|
1362
1365
|
"TRUE",
|
|
@@ -1368,7 +1371,7 @@ var Or = ie("tag:yaml.org,2002:str", {
|
|
|
1368
1371
|
"on",
|
|
1369
1372
|
"On",
|
|
1370
1373
|
"ON"
|
|
1371
|
-
],
|
|
1374
|
+
], Kr = [
|
|
1372
1375
|
"false",
|
|
1373
1376
|
"False",
|
|
1374
1377
|
"FALSE",
|
|
@@ -1380,7 +1383,7 @@ var Or = ie("tag:yaml.org,2002:str", {
|
|
|
1380
1383
|
"off",
|
|
1381
1384
|
"Off",
|
|
1382
1385
|
"OFF"
|
|
1383
|
-
],
|
|
1386
|
+
], Gr = ie("tag:yaml.org,2002:bool", {
|
|
1384
1387
|
implicit: !0,
|
|
1385
1388
|
implicitFirstChars: [
|
|
1386
1389
|
"y",
|
|
@@ -1394,51 +1397,51 @@ var Or = ie("tag:yaml.org,2002:str", {
|
|
|
1394
1397
|
"o",
|
|
1395
1398
|
"O"
|
|
1396
1399
|
],
|
|
1397
|
-
resolve: (e) =>
|
|
1400
|
+
resolve: (e) => Ur.indexOf(e) !== -1 ? !0 : Kr.indexOf(e) !== -1 ? !1 : M,
|
|
1398
1401
|
identify: (e) => Object.prototype.toString.call(e) === "[object Boolean]",
|
|
1399
1402
|
represent: (e) => e ? "true" : "false"
|
|
1400
|
-
}),
|
|
1401
|
-
function
|
|
1403
|
+
}), qr = /* @__PURE__ */ new RegExp("^(?:0o[0-7]+|0x[0-9a-fA-F]+|[-+]?[0-9]+)$"), Wr = /* @__PURE__ */ new RegExp("^(?:[-+]?0b[0-1]+|[-+]?0o[0-7]+|[-+]?0x[0-9a-fA-F]+|[-+]?[0-9]+)$");
|
|
1404
|
+
function Yr(e) {
|
|
1402
1405
|
let t = e, n = 1;
|
|
1403
1406
|
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);
|
|
1404
1407
|
}
|
|
1405
|
-
function
|
|
1408
|
+
function jr(e, t) {
|
|
1406
1409
|
if (t) {
|
|
1407
|
-
if (!
|
|
1408
|
-
} else if (!
|
|
1409
|
-
const n =
|
|
1410
|
+
if (!Wr.test(e)) return M;
|
|
1411
|
+
} else if (!qr.test(e)) return M;
|
|
1412
|
+
const n = Yr(e);
|
|
1410
1413
|
return Number.isFinite(n) ? n : M;
|
|
1411
1414
|
}
|
|
1412
|
-
var
|
|
1415
|
+
var Cn = ie("tag:yaml.org,2002:int", {
|
|
1413
1416
|
implicit: !0,
|
|
1414
1417
|
implicitFirstChars: [
|
|
1415
1418
|
"-",
|
|
1416
1419
|
"+",
|
|
1417
1420
|
..."0123456789"
|
|
1418
1421
|
],
|
|
1419
|
-
resolve:
|
|
1422
|
+
resolve: jr,
|
|
1420
1423
|
identify: (e) => Number.isInteger(e) && !Object.is(e, -0) && e.toString(10).indexOf("e") < 0,
|
|
1421
1424
|
represent: (e) => e.toString(10)
|
|
1422
|
-
}),
|
|
1423
|
-
function
|
|
1425
|
+
}), Qr = /* @__PURE__ */ new RegExp("^-?(?:0|[1-9][0-9]*)$"), Vr = /* @__PURE__ */ new RegExp("^(?:[-+]?0b[0-1]+|[-+]?0o[0-7]+|[-+]?0x[0-9a-fA-F]+|[-+]?[0-9]+)$");
|
|
1426
|
+
function Xr(e) {
|
|
1424
1427
|
let t = e, n = 1;
|
|
1425
1428
|
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);
|
|
1426
1429
|
}
|
|
1427
|
-
function
|
|
1430
|
+
function zr(e, t) {
|
|
1428
1431
|
if (t) {
|
|
1429
|
-
if (!
|
|
1430
|
-
} else if (!
|
|
1431
|
-
const n =
|
|
1432
|
+
if (!Vr.test(e)) return M;
|
|
1433
|
+
} else if (!Qr.test(e)) return M;
|
|
1434
|
+
const n = Xr(e);
|
|
1432
1435
|
return Number.isFinite(n) ? n : M;
|
|
1433
1436
|
}
|
|
1434
|
-
var
|
|
1437
|
+
var Zr = ie("tag:yaml.org,2002:int", {
|
|
1435
1438
|
implicit: !0,
|
|
1436
1439
|
implicitFirstChars: ["-", ..."0123456789"],
|
|
1437
|
-
resolve:
|
|
1440
|
+
resolve: zr,
|
|
1438
1441
|
identify: (e) => Number.isInteger(e) && !Object.is(e, -0) && e.toString(10).indexOf("e") < 0,
|
|
1439
1442
|
represent: (e) => e.toString(10)
|
|
1440
|
-
}),
|
|
1441
|
-
function
|
|
1443
|
+
}), Jr = /* @__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_]*))$");
|
|
1444
|
+
function ei(e) {
|
|
1442
1445
|
let t = e.replace(/_/g, ""), n = 1;
|
|
1443
1446
|
if ((t[0] === "-" || t[0] === "+") && (t[0] === "-" && (n = -1), t = t.slice(1)), t.startsWith("0b")) return n * parseInt(t.slice(2), 2);
|
|
1444
1447
|
if (t.startsWith("0x")) return n * parseInt(t.slice(2), 16);
|
|
@@ -1449,32 +1452,32 @@ function Jr(e) {
|
|
|
1449
1452
|
}
|
|
1450
1453
|
return t !== "0" && t[0] === "0" ? n * parseInt(t, 8) : n * parseInt(t, 10);
|
|
1451
1454
|
}
|
|
1452
|
-
function
|
|
1453
|
-
if (!
|
|
1454
|
-
const t =
|
|
1455
|
+
function ti(e) {
|
|
1456
|
+
if (!Jr.test(e)) return M;
|
|
1457
|
+
const t = ei(e);
|
|
1455
1458
|
return Number.isFinite(t) ? t : M;
|
|
1456
1459
|
}
|
|
1457
|
-
var
|
|
1460
|
+
var wt = ie("tag:yaml.org,2002:int", {
|
|
1458
1461
|
implicit: !0,
|
|
1459
1462
|
implicitFirstChars: [
|
|
1460
1463
|
"-",
|
|
1461
1464
|
"+",
|
|
1462
1465
|
..."0123456789"
|
|
1463
1466
|
],
|
|
1464
|
-
resolve:
|
|
1467
|
+
resolve: ti,
|
|
1465
1468
|
identify: (e) => Number.isInteger(e) && !Object.is(e, -0) && e.toString(10).indexOf("e") < 0,
|
|
1466
1469
|
represent: (e) => e.toString(10)
|
|
1467
|
-
}),
|
|
1468
|
-
function
|
|
1469
|
-
if (!
|
|
1470
|
+
}), ni = /* @__PURE__ */ new RegExp("^(?:[-+]?[0-9]+(?:\\.[0-9]*)?(?:[eE][-+]?[0-9]+)?|[-+]?\\.[0-9]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$"), ri = /* @__PURE__ */ new RegExp("^(?:[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");
|
|
1471
|
+
function ii(e) {
|
|
1472
|
+
if (!ni.test(e)) return M;
|
|
1470
1473
|
let t = e.toLowerCase();
|
|
1471
1474
|
const n = t[0] === "-" ? -1 : 1;
|
|
1472
1475
|
if ("+-".includes(t[0]) && (t = t.slice(1)), t === ".inf") return n === 1 ? Number.POSITIVE_INFINITY : Number.NEGATIVE_INFINITY;
|
|
1473
1476
|
if (t === ".nan") return NaN;
|
|
1474
1477
|
const r = n * parseFloat(t);
|
|
1475
|
-
return Number.isFinite(r) ||
|
|
1478
|
+
return Number.isFinite(r) || ri.test(e) ? r : M;
|
|
1476
1479
|
}
|
|
1477
|
-
function
|
|
1480
|
+
function oi(e) {
|
|
1478
1481
|
if (isNaN(e)) return ".nan";
|
|
1479
1482
|
if (e === Number.POSITIVE_INFINITY) return ".inf";
|
|
1480
1483
|
if (e === Number.NEGATIVE_INFINITY) return "-.inf";
|
|
@@ -1482,7 +1485,7 @@ function ii(e) {
|
|
|
1482
1485
|
const t = e.toString(10);
|
|
1483
1486
|
return /^[-+]?[0-9]+e/.test(t) ? t.replace("e", ".e") : t;
|
|
1484
1487
|
}
|
|
1485
|
-
var
|
|
1488
|
+
var Tn = ie("tag:yaml.org,2002:float", {
|
|
1486
1489
|
implicit: !0,
|
|
1487
1490
|
implicitFirstChars: [
|
|
1488
1491
|
"-",
|
|
@@ -1490,13 +1493,13 @@ var Cn = ie("tag:yaml.org,2002:float", {
|
|
|
1490
1493
|
".",
|
|
1491
1494
|
..."0123456789"
|
|
1492
1495
|
],
|
|
1493
|
-
resolve:
|
|
1496
|
+
resolve: ii,
|
|
1494
1497
|
identify: (e) => typeof e == "number" && (!Number.isInteger(e) || Object.is(e, -0) || e.toString(10).indexOf("e") >= 0),
|
|
1495
|
-
represent:
|
|
1496
|
-
}),
|
|
1497
|
-
function
|
|
1498
|
+
represent: oi
|
|
1499
|
+
}), si = /* @__PURE__ */ new RegExp("^-?(?:0|[1-9][0-9]*)(?:\\.[0-9]*)?(?:[eE][-+]?[0-9]+)?$"), ai = /* @__PURE__ */ new RegExp("^(?:[-+]?[0-9]+(?:\\.[0-9]*)?(?:[eE][-+]?[0-9]+)?|[-+]?\\.[0-9]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");
|
|
1500
|
+
function li(e, t) {
|
|
1498
1501
|
if (t) {
|
|
1499
|
-
if (!
|
|
1502
|
+
if (!ai.test(e)) return M;
|
|
1500
1503
|
let r = e.toLowerCase();
|
|
1501
1504
|
const i = r[0] === "-" ? -1 : 1;
|
|
1502
1505
|
if ("+-".includes(r[0]) && (r = r.slice(1)), r === ".inf") return i === 1 ? Number.POSITIVE_INFINITY : Number.NEGATIVE_INFINITY;
|
|
@@ -1504,7 +1507,7 @@ function ai(e, t) {
|
|
|
1504
1507
|
const o = i * parseFloat(r);
|
|
1505
1508
|
return Number.isFinite(o) ? o : M;
|
|
1506
1509
|
}
|
|
1507
|
-
if (!
|
|
1510
|
+
if (!si.test(e)) return M;
|
|
1508
1511
|
const n = Number(e);
|
|
1509
1512
|
return Number.isFinite(n) ? n : M;
|
|
1510
1513
|
}
|
|
@@ -1516,15 +1519,15 @@ function ci(e) {
|
|
|
1516
1519
|
const t = e.toString(10);
|
|
1517
1520
|
return /^[-+]?[0-9]+e/.test(t) ? t.replace("e", ".e") : t;
|
|
1518
1521
|
}
|
|
1519
|
-
var
|
|
1522
|
+
var ui = ie("tag:yaml.org,2002:float", {
|
|
1520
1523
|
implicit: !0,
|
|
1521
1524
|
implicitFirstChars: ["-", ..."0123456789"],
|
|
1522
|
-
resolve:
|
|
1525
|
+
resolve: li,
|
|
1523
1526
|
identify: (e) => typeof e == "number" && (!Number.isInteger(e) || Object.is(e, -0) || e.toString(10).indexOf("e") >= 0),
|
|
1524
1527
|
represent: ci
|
|
1525
|
-
}),
|
|
1526
|
-
function
|
|
1527
|
-
if (!
|
|
1528
|
+
}), fi = /* @__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))$"), pi = /* @__PURE__ */ new RegExp("^(?:[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");
|
|
1529
|
+
function di(e) {
|
|
1530
|
+
if (!fi.test(e)) return M;
|
|
1528
1531
|
let t = e.toLowerCase().replace(/_/g, "");
|
|
1529
1532
|
const n = t[0] === "-" ? -1 : 1;
|
|
1530
1533
|
if ("+-".includes(t[0]) && (t = t.slice(1)), t === ".inf") return n === 1 ? Number.POSITIVE_INFINITY : Number.NEGATIVE_INFINITY;
|
|
@@ -1534,9 +1537,9 @@ function pi(e) {
|
|
|
1534
1537
|
for (const i of t.split(":")) r = r * 60 + Number(i);
|
|
1535
1538
|
r *= n;
|
|
1536
1539
|
} else r = n * parseFloat(t);
|
|
1537
|
-
return Number.isFinite(r) ||
|
|
1540
|
+
return Number.isFinite(r) || pi.test(e) ? r : M;
|
|
1538
1541
|
}
|
|
1539
|
-
function
|
|
1542
|
+
function hi(e) {
|
|
1540
1543
|
if (isNaN(e)) return ".nan";
|
|
1541
1544
|
if (e === Number.POSITIVE_INFINITY) return ".inf";
|
|
1542
1545
|
if (e === Number.NEGATIVE_INFINITY) return "-.inf";
|
|
@@ -1544,7 +1547,7 @@ function di(e) {
|
|
|
1544
1547
|
const t = e.toString(10);
|
|
1545
1548
|
return /^[-+]?[0-9]+e/.test(t) ? t.replace("e", ".e") : t;
|
|
1546
1549
|
}
|
|
1547
|
-
var
|
|
1550
|
+
var $t = ie("tag:yaml.org,2002:float", {
|
|
1548
1551
|
implicit: !0,
|
|
1549
1552
|
implicitFirstChars: [
|
|
1550
1553
|
"-",
|
|
@@ -1552,86 +1555,86 @@ var Nt = ie("tag:yaml.org,2002:float", {
|
|
|
1552
1555
|
".",
|
|
1553
1556
|
..."0123456789"
|
|
1554
1557
|
],
|
|
1555
|
-
resolve:
|
|
1558
|
+
resolve: di,
|
|
1556
1559
|
identify: (e) => typeof e == "number" && (!Number.isInteger(e) || Object.is(e, -0) || e.toString(10).indexOf("e") >= 0),
|
|
1557
|
-
represent:
|
|
1558
|
-
}),
|
|
1560
|
+
represent: hi
|
|
1561
|
+
}), vn = ie("tag:yaml.org,2002:merge", {
|
|
1559
1562
|
implicit: !0,
|
|
1560
1563
|
implicitFirstChars: ["<"],
|
|
1561
1564
|
resolve: (e, t) => e === "<<" || t && e === "" ? "<<" : M,
|
|
1562
1565
|
identify: () => !1
|
|
1563
|
-
}),
|
|
1564
|
-
function
|
|
1566
|
+
}), gi = /^[A-Za-z0-9+/]*={0,2}$/;
|
|
1567
|
+
function mi(e) {
|
|
1565
1568
|
const t = e.replace(/\s/g, "");
|
|
1566
|
-
if (t.length % 4 !== 0 || !
|
|
1569
|
+
if (t.length % 4 !== 0 || !gi.test(t)) return M;
|
|
1567
1570
|
const n = atob(t), r = new Uint8Array(n.length);
|
|
1568
1571
|
for (let i = 0; i < n.length; i++) r[i] = n.charCodeAt(i);
|
|
1569
1572
|
return r;
|
|
1570
1573
|
}
|
|
1571
|
-
function
|
|
1574
|
+
function Ai(e) {
|
|
1572
1575
|
let t = "";
|
|
1573
1576
|
for (let n = 0; n < e.length; n++) t += String.fromCharCode(e[n]);
|
|
1574
1577
|
return btoa(t);
|
|
1575
1578
|
}
|
|
1576
|
-
var
|
|
1577
|
-
resolve:
|
|
1579
|
+
var Ln = ie("tag:yaml.org,2002:binary", {
|
|
1580
|
+
resolve: mi,
|
|
1578
1581
|
identify: (e) => Object.prototype.toString.call(e) === "[object Uint8Array]",
|
|
1579
|
-
represent:
|
|
1580
|
-
}),
|
|
1581
|
-
function
|
|
1582
|
+
represent: Ai
|
|
1583
|
+
}), Ei = /* @__PURE__ */ new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"), Si = /* @__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]))?))?$");
|
|
1584
|
+
function on(e, t, n, r = 0, i = 0, o = 0, s = 0) {
|
|
1582
1585
|
const a = new Date(Date.UTC(e, t, n, r, i, o, s));
|
|
1583
1586
|
return a.setUTCFullYear(e, t, n), a;
|
|
1584
1587
|
}
|
|
1585
|
-
function
|
|
1586
|
-
let t =
|
|
1587
|
-
if (t === null && (t =
|
|
1588
|
+
function _i(e) {
|
|
1589
|
+
let t = Ei.exec(e);
|
|
1590
|
+
if (t === null && (t = Si.exec(e)), t === null) return M;
|
|
1588
1591
|
const n = +t[1], r = +t[2] - 1, i = +t[3];
|
|
1589
1592
|
if (!t[4]) {
|
|
1590
|
-
const
|
|
1591
|
-
return
|
|
1593
|
+
const c = on(n, r, i);
|
|
1594
|
+
return c.getUTCFullYear() !== n || c.getUTCMonth() !== r || c.getUTCDate() !== i ? M : c;
|
|
1592
1595
|
}
|
|
1593
1596
|
const o = +t[4], s = +t[5], a = +t[6];
|
|
1594
|
-
let
|
|
1597
|
+
let l = 0;
|
|
1595
1598
|
if (o > 23 || s > 59 || a > 59) return M;
|
|
1596
1599
|
if (t[7]) {
|
|
1597
|
-
let
|
|
1598
|
-
for (;
|
|
1599
|
-
|
|
1600
|
+
let c = t[7].slice(0, 3);
|
|
1601
|
+
for (; c.length < 3; ) c += "0";
|
|
1602
|
+
l = +c;
|
|
1600
1603
|
}
|
|
1601
|
-
const f =
|
|
1604
|
+
const f = on(n, r, i, o, s, a, l);
|
|
1602
1605
|
if (f.getUTCFullYear() !== n || f.getUTCMonth() !== r || f.getUTCDate() !== i) return M;
|
|
1603
1606
|
if (t[9]) {
|
|
1604
|
-
const
|
|
1605
|
-
if (
|
|
1606
|
-
const S = (
|
|
1607
|
+
const c = +t[10], E = +(t[11] || 0);
|
|
1608
|
+
if (c > 23 || E > 59) return M;
|
|
1609
|
+
const S = (c * 60 + E) * 6e4;
|
|
1607
1610
|
f.setTime(f.getTime() - (t[9] === "-" ? -S : S));
|
|
1608
1611
|
}
|
|
1609
1612
|
return f;
|
|
1610
1613
|
}
|
|
1611
|
-
var
|
|
1614
|
+
var yi = ie("tag:yaml.org,2002:timestamp", {
|
|
1612
1615
|
implicit: !0,
|
|
1613
1616
|
implicitFirstChars: [..."0123456789"],
|
|
1614
|
-
resolve:
|
|
1617
|
+
resolve: _i,
|
|
1615
1618
|
identify: (e) => e instanceof Date,
|
|
1616
1619
|
represent: (e) => e.toISOString()
|
|
1617
|
-
}),
|
|
1620
|
+
}), Ci = Gt("tag:yaml.org,2002:seq", {
|
|
1618
1621
|
create: () => [],
|
|
1619
1622
|
addItem: (e, t) => {
|
|
1620
1623
|
e.push(t);
|
|
1621
1624
|
},
|
|
1622
1625
|
identify: Array.isArray
|
|
1623
1626
|
});
|
|
1624
|
-
function
|
|
1627
|
+
function ht(e) {
|
|
1625
1628
|
if (e === null || typeof e != "object" || Array.isArray(e)) return !1;
|
|
1626
1629
|
const t = Object.getPrototypeOf(e);
|
|
1627
1630
|
return t === null || t === Object.prototype;
|
|
1628
1631
|
}
|
|
1629
|
-
function
|
|
1632
|
+
function kt(e, t) {
|
|
1630
1633
|
const n = {};
|
|
1631
1634
|
for (const r of t) e[r] !== void 0 && (n[r] = e[r]);
|
|
1632
1635
|
return n;
|
|
1633
1636
|
}
|
|
1634
|
-
var
|
|
1637
|
+
var Rn = Gt("tag:yaml.org,2002:omap", {
|
|
1635
1638
|
create: () => ({
|
|
1636
1639
|
list: [],
|
|
1637
1640
|
seen: /* @__PURE__ */ new Set()
|
|
@@ -1641,7 +1644,7 @@ var Ln = Ut("tag:yaml.org,2002:omap", {
|
|
|
1641
1644
|
if (t instanceof Map) {
|
|
1642
1645
|
if (t.size !== 1) return "cannot resolve an ordered map item";
|
|
1643
1646
|
n = t.keys().next().value;
|
|
1644
|
-
} else if (
|
|
1647
|
+
} else if (ht(t)) {
|
|
1645
1648
|
const r = Object.keys(t);
|
|
1646
1649
|
if (r.length !== 1) return "cannot resolve an ordered map item";
|
|
1647
1650
|
n = r[0];
|
|
@@ -1650,7 +1653,7 @@ var Ln = Ut("tag:yaml.org,2002:omap", {
|
|
|
1650
1653
|
},
|
|
1651
1654
|
finalize: (e) => e.list,
|
|
1652
1655
|
identify: () => !1
|
|
1653
|
-
}),
|
|
1656
|
+
}), xn = Gt("tag:yaml.org,2002:pairs", {
|
|
1654
1657
|
create: () => [],
|
|
1655
1658
|
addItem: (e, t) => {
|
|
1656
1659
|
if (t instanceof Map)
|
|
@@ -1660,9 +1663,9 @@ var Ln = Ut("tag:yaml.org,2002:omap", {
|
|
|
1660
1663
|
return r.length !== 1 ? "cannot resolve a pairs item" : (e.push([r[0], n[r[0]]]), "");
|
|
1661
1664
|
},
|
|
1662
1665
|
identify: () => !1
|
|
1663
|
-
}),
|
|
1666
|
+
}), Ti = dt("tag:yaml.org,2002:map", {
|
|
1664
1667
|
create: () => ({}),
|
|
1665
|
-
identify:
|
|
1668
|
+
identify: ht,
|
|
1666
1669
|
represent: (e) => {
|
|
1667
1670
|
const t = /* @__PURE__ */ new Map();
|
|
1668
1671
|
for (const n of Object.keys(e)) t.set(n, e[n]);
|
|
@@ -1684,7 +1687,7 @@ var Ln = Ut("tag:yaml.org,2002:omap", {
|
|
|
1684
1687
|
const n = String(t);
|
|
1685
1688
|
return Object.prototype.hasOwnProperty.call(e, n) ? e[n] : null;
|
|
1686
1689
|
}
|
|
1687
|
-
}),
|
|
1690
|
+
}), On = dt("tag:yaml.org,2002:set", {
|
|
1688
1691
|
create: () => /* @__PURE__ */ new Set(),
|
|
1689
1692
|
identify: (e) => e instanceof Set,
|
|
1690
1693
|
represent: (e) => {
|
|
@@ -1697,21 +1700,21 @@ var Ln = Ut("tag:yaml.org,2002:omap", {
|
|
|
1697
1700
|
keys: (e) => e.keys(),
|
|
1698
1701
|
get: () => null
|
|
1699
1702
|
});
|
|
1700
|
-
function
|
|
1703
|
+
function vi() {
|
|
1701
1704
|
return {
|
|
1702
1705
|
scalar: /* @__PURE__ */ Object.create(null),
|
|
1703
1706
|
sequence: /* @__PURE__ */ Object.create(null),
|
|
1704
1707
|
mapping: /* @__PURE__ */ Object.create(null)
|
|
1705
1708
|
};
|
|
1706
1709
|
}
|
|
1707
|
-
function
|
|
1710
|
+
function Li() {
|
|
1708
1711
|
return {
|
|
1709
1712
|
scalar: [],
|
|
1710
1713
|
sequence: [],
|
|
1711
1714
|
mapping: []
|
|
1712
1715
|
};
|
|
1713
1716
|
}
|
|
1714
|
-
function
|
|
1717
|
+
function Ri(e) {
|
|
1715
1718
|
const t = [];
|
|
1716
1719
|
for (const n of e) {
|
|
1717
1720
|
let r = t.length;
|
|
@@ -1726,7 +1729,7 @@ function Li(e) {
|
|
|
1726
1729
|
}
|
|
1727
1730
|
return t;
|
|
1728
1731
|
}
|
|
1729
|
-
var
|
|
1732
|
+
var gt = class bn {
|
|
1730
1733
|
tags;
|
|
1731
1734
|
/** @internal */
|
|
1732
1735
|
implicitScalarTags;
|
|
@@ -1761,31 +1764,31 @@ var dt = class On {
|
|
|
1761
1764
|
exact;
|
|
1762
1765
|
prefix;
|
|
1763
1766
|
constructor(t) {
|
|
1764
|
-
const n =
|
|
1765
|
-
for (const
|
|
1766
|
-
if (
|
|
1767
|
-
if (
|
|
1768
|
-
r.push(
|
|
1767
|
+
const n = Ri(t), r = [], i = vi(), o = Li();
|
|
1768
|
+
for (const c of n) {
|
|
1769
|
+
if (c.nodeKind === "scalar" && c.implicit) {
|
|
1770
|
+
if (c.matchByTagPrefix) throw new Error("Implicit scalar tags cannot match by tag prefix");
|
|
1771
|
+
r.push(c);
|
|
1769
1772
|
}
|
|
1770
|
-
switch (
|
|
1773
|
+
switch (c.nodeKind) {
|
|
1771
1774
|
case "scalar":
|
|
1772
|
-
|
|
1775
|
+
c.matchByTagPrefix ? o.scalar.push(c) : i.scalar[c.tagName] = c;
|
|
1773
1776
|
break;
|
|
1774
1777
|
case "sequence":
|
|
1775
|
-
|
|
1778
|
+
c.matchByTagPrefix ? o.sequence.push(c) : i.sequence[c.tagName] = c;
|
|
1776
1779
|
break;
|
|
1777
1780
|
case "mapping":
|
|
1778
|
-
|
|
1781
|
+
c.matchByTagPrefix ? o.mapping.push(c) : i.mapping[c.tagName] = c;
|
|
1779
1782
|
break;
|
|
1780
1783
|
}
|
|
1781
1784
|
}
|
|
1782
|
-
const s = r.filter((
|
|
1783
|
-
for (const
|
|
1784
|
-
const
|
|
1785
|
-
for (const
|
|
1785
|
+
const s = r.filter((c) => c.implicitFirstChars === null), a = /* @__PURE__ */ new Set();
|
|
1786
|
+
for (const c of r) if (c.implicitFirstChars !== null) for (const E of c.implicitFirstChars) a.add(E);
|
|
1787
|
+
const l = /* @__PURE__ */ new Map();
|
|
1788
|
+
for (const c of a) l.set(c, r.filter((E) => E.implicitFirstChars === null || E.implicitFirstChars.indexOf(c) !== -1));
|
|
1786
1789
|
const f = i.scalar["tag:yaml.org,2002:str"];
|
|
1787
1790
|
if (!f) throw new Error("schema does not define the default scalar tag (tag:yaml.org,2002:str)");
|
|
1788
|
-
this.tags = n, this.implicitScalarTags = r, this.implicitScalarByFirstChar =
|
|
1791
|
+
this.tags = n, this.implicitScalarTags = r, this.implicitScalarByFirstChar = l, this.implicitScalarAnyFirstChar = s, this.defaultScalarTag = f, this.defaultSequenceTag = i.sequence["tag:yaml.org,2002:seq"], this.defaultMappingTag = i.mapping["tag:yaml.org,2002:map"], this.exact = i, this.prefix = o;
|
|
1789
1792
|
}
|
|
1790
1793
|
/** @internal */
|
|
1791
1794
|
lookupScalarTag(t) {
|
|
@@ -1836,58 +1839,58 @@ var dt = class On {
|
|
|
1836
1839
|
withTags(...t) {
|
|
1837
1840
|
let n = [];
|
|
1838
1841
|
for (const r of t) n = n.concat(r);
|
|
1839
|
-
return new
|
|
1842
|
+
return new bn([...this.tags, ...n]);
|
|
1840
1843
|
}
|
|
1841
|
-
},
|
|
1842
|
-
|
|
1843
|
-
|
|
1844
|
-
|
|
1845
|
-
]);
|
|
1846
|
-
new dt([
|
|
1847
|
-
...Kt.tags,
|
|
1848
|
-
Nr,
|
|
1849
|
-
Mr,
|
|
1850
|
-
zr,
|
|
1851
|
-
li
|
|
1844
|
+
}, qt = new gt([
|
|
1845
|
+
br,
|
|
1846
|
+
Ci,
|
|
1847
|
+
Ti
|
|
1852
1848
|
]);
|
|
1853
|
-
|
|
1854
|
-
...
|
|
1855
|
-
Ir,
|
|
1856
|
-
Pr,
|
|
1857
|
-
yn,
|
|
1858
|
-
Cn
|
|
1859
|
-
]), Ri = new dt([
|
|
1860
|
-
...Kt.tags,
|
|
1849
|
+
new gt([
|
|
1850
|
+
...qt.tags,
|
|
1861
1851
|
wr,
|
|
1862
|
-
|
|
1863
|
-
|
|
1864
|
-
|
|
1865
|
-
|
|
1866
|
-
|
|
1852
|
+
Hr,
|
|
1853
|
+
Zr,
|
|
1854
|
+
ui
|
|
1855
|
+
]);
|
|
1856
|
+
var In = new gt([
|
|
1857
|
+
...qt.tags,
|
|
1858
|
+
Nr,
|
|
1859
|
+
Br,
|
|
1860
|
+
Cn,
|
|
1861
|
+
Tn
|
|
1862
|
+
]), xi = new gt([
|
|
1863
|
+
...qt.tags,
|
|
1864
|
+
kr,
|
|
1865
|
+
Gr,
|
|
1866
|
+
wt,
|
|
1867
|
+
$t,
|
|
1868
|
+
yi,
|
|
1867
1869
|
vn,
|
|
1868
1870
|
Ln,
|
|
1869
1871
|
Rn,
|
|
1870
|
-
xn
|
|
1871
|
-
|
|
1872
|
-
|
|
1872
|
+
xn,
|
|
1873
|
+
On
|
|
1874
|
+
]), Oi = xi.withTags({
|
|
1875
|
+
...wt,
|
|
1873
1876
|
resolve: (e, t, n) => {
|
|
1874
|
-
const r =
|
|
1875
|
-
return r === M ?
|
|
1877
|
+
const r = wt.resolve(e, t, n);
|
|
1878
|
+
return r === M ? Cn.resolve(e, t, n) : r;
|
|
1876
1879
|
}
|
|
1877
1880
|
}, {
|
|
1878
|
-
|
|
1881
|
+
...$t,
|
|
1879
1882
|
resolve: (e, t, n) => {
|
|
1880
|
-
const r =
|
|
1881
|
-
return r === M ?
|
|
1883
|
+
const r = $t.resolve(e, t, n);
|
|
1884
|
+
return r === M ? Tn.resolve(e, t, n) : r;
|
|
1882
1885
|
}
|
|
1883
1886
|
});
|
|
1884
|
-
|
|
1887
|
+
dt("tag:yaml.org,2002:map", {
|
|
1885
1888
|
create: () => /* @__PURE__ */ new Map(),
|
|
1886
1889
|
addPair: (e, t, n) => (e.set(t, n), ""),
|
|
1887
1890
|
has: (e, t) => e.has(t),
|
|
1888
1891
|
keys: (e) => e.keys(),
|
|
1889
1892
|
get: (e, t) => e.get(t),
|
|
1890
|
-
identify: (e) => e instanceof Map ||
|
|
1893
|
+
identify: (e) => e instanceof Map || ht(e),
|
|
1891
1894
|
represent: (e) => {
|
|
1892
1895
|
if (e instanceof Map) return e;
|
|
1893
1896
|
const t = /* @__PURE__ */ new Map(), n = e;
|
|
@@ -1895,7 +1898,7 @@ ft("tag:yaml.org,2002:map", {
|
|
|
1895
1898
|
return t;
|
|
1896
1899
|
}
|
|
1897
1900
|
});
|
|
1898
|
-
function
|
|
1901
|
+
function sn(e) {
|
|
1899
1902
|
if (Array.isArray(e)) {
|
|
1900
1903
|
const t = Array.prototype.slice.call(e);
|
|
1901
1904
|
for (let n = 0; n < t.length; n++) {
|
|
@@ -1906,16 +1909,16 @@ function on(e) {
|
|
|
1906
1909
|
}
|
|
1907
1910
|
return typeof e == "object" && Object.prototype.toString.call(e) === "[object Object]" ? "[object Object]" : String(e);
|
|
1908
1911
|
}
|
|
1909
|
-
|
|
1912
|
+
dt("tag:yaml.org,2002:map", {
|
|
1910
1913
|
create: () => ({}),
|
|
1911
|
-
identify:
|
|
1914
|
+
identify: ht,
|
|
1912
1915
|
represent: (e) => {
|
|
1913
1916
|
const t = /* @__PURE__ */ new Map();
|
|
1914
1917
|
for (const n of Object.keys(e)) t.set(n, e[n]);
|
|
1915
1918
|
return t;
|
|
1916
1919
|
},
|
|
1917
1920
|
addPair: (e, t, n) => {
|
|
1918
|
-
const r =
|
|
1921
|
+
const r = sn(t);
|
|
1919
1922
|
return r === null ? "nested arrays are not supported inside keys" : (r === "__proto__" ? Object.defineProperty(e, r, {
|
|
1920
1923
|
value: n,
|
|
1921
1924
|
enumerable: !0,
|
|
@@ -1924,7 +1927,7 @@ ft("tag:yaml.org,2002:map", {
|
|
|
1924
1927
|
}) : e[r] = n, "");
|
|
1925
1928
|
},
|
|
1926
1929
|
has: (e, t) => {
|
|
1927
|
-
const n =
|
|
1930
|
+
const n = sn(t);
|
|
1928
1931
|
return n !== null && Object.prototype.hasOwnProperty.call(e, n);
|
|
1929
1932
|
},
|
|
1930
1933
|
keys: (e) => Object.keys(e),
|
|
@@ -1933,13 +1936,13 @@ ft("tag:yaml.org,2002:map", {
|
|
|
1933
1936
|
return Object.prototype.hasOwnProperty.call(e, n) ? e[n] : null;
|
|
1934
1937
|
}
|
|
1935
1938
|
});
|
|
1936
|
-
var
|
|
1939
|
+
var bi = {
|
|
1937
1940
|
maxLength: 79,
|
|
1938
1941
|
indent: 1,
|
|
1939
1942
|
linesBefore: 3,
|
|
1940
1943
|
linesAfter: 2
|
|
1941
1944
|
};
|
|
1942
|
-
function
|
|
1945
|
+
function Lt(e, t, n, r, i) {
|
|
1943
1946
|
let o = "", s = "";
|
|
1944
1947
|
const a = Math.floor(i / 2) - 1;
|
|
1945
1948
|
return r - t > a && (o = " ... ", t = r - a + o.length), n - r > a && (s = " ...", n = r + a - s.length), {
|
|
@@ -1947,44 +1950,44 @@ function Tt(e, t, n, r, i) {
|
|
|
1947
1950
|
pos: r - t + o.length
|
|
1948
1951
|
};
|
|
1949
1952
|
}
|
|
1950
|
-
function
|
|
1953
|
+
function Rt(e, t) {
|
|
1951
1954
|
return " ".repeat(Math.max(t - e.length, 0)) + e;
|
|
1952
1955
|
}
|
|
1953
|
-
function
|
|
1956
|
+
function Ii(e, t) {
|
|
1954
1957
|
if (!e.buffer) return null;
|
|
1955
1958
|
const n = {
|
|
1956
|
-
...
|
|
1959
|
+
...bi,
|
|
1957
1960
|
...t
|
|
1958
1961
|
}, r = /\r?\n|\r|\0/g, i = [0], o = [];
|
|
1959
1962
|
let s, a = -1;
|
|
1960
1963
|
for (; s = r.exec(e.buffer); )
|
|
1961
1964
|
o.push(s.index), i.push(s.index + s[0].length), e.position <= s.index && a < 0 && (a = i.length - 2);
|
|
1962
1965
|
a < 0 && (a = i.length - 1);
|
|
1963
|
-
let
|
|
1964
|
-
const f = Math.min(e.line + n.linesAfter, o.length).toString().length,
|
|
1966
|
+
let l = "";
|
|
1967
|
+
const f = Math.min(e.line + n.linesAfter, o.length).toString().length, c = n.maxLength - (n.indent + f + 3);
|
|
1965
1968
|
for (let S = 1; S <= n.linesBefore && !(a - S < 0); S++) {
|
|
1966
|
-
const T =
|
|
1967
|
-
|
|
1968
|
-
${
|
|
1969
|
+
const T = Lt(e.buffer, i[a - S], o[a - S], e.position - (i[a] - i[a - S]), c);
|
|
1970
|
+
l = `${" ".repeat(n.indent)}${Rt((e.line - S + 1).toString(), f)} | ${T.str}
|
|
1971
|
+
${l}`;
|
|
1969
1972
|
}
|
|
1970
|
-
const E =
|
|
1971
|
-
|
|
1972
|
-
`,
|
|
1973
|
+
const E = Lt(e.buffer, i[a], o[a], e.position, c);
|
|
1974
|
+
l += `${" ".repeat(n.indent)}${Rt((e.line + 1).toString(), f)} | ${E.str}
|
|
1975
|
+
`, l += `${"-".repeat(n.indent + f + 3 + E.pos)}^
|
|
1973
1976
|
`;
|
|
1974
1977
|
for (let S = 1; S <= n.linesAfter && !(a + S >= o.length); S++) {
|
|
1975
|
-
const T =
|
|
1976
|
-
|
|
1978
|
+
const T = Lt(e.buffer, i[a + S], o[a + S], e.position - (i[a] - i[a + S]), c);
|
|
1979
|
+
l += `${" ".repeat(n.indent)}${Rt((e.line + S + 1).toString(), f)} | ${T.str}
|
|
1977
1980
|
`;
|
|
1978
1981
|
}
|
|
1979
|
-
return
|
|
1982
|
+
return l.replace(/\n$/, "");
|
|
1980
1983
|
}
|
|
1981
|
-
function
|
|
1984
|
+
function an(e, t) {
|
|
1982
1985
|
let n = "";
|
|
1983
1986
|
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 += `
|
|
1984
1987
|
|
|
1985
1988
|
${e.mark.snippet}`), `${e.reason} ${n}`) : e.reason;
|
|
1986
1989
|
}
|
|
1987
|
-
var
|
|
1990
|
+
var $e = class Nn extends Error {
|
|
1988
1991
|
reason;
|
|
1989
1992
|
mark;
|
|
1990
1993
|
/**
|
|
@@ -1992,13 +1995,13 @@ var we = class In extends Error {
|
|
|
1992
1995
|
* {@link YAMLException.throwAt} instead of passing it directly.
|
|
1993
1996
|
*/
|
|
1994
1997
|
constructor(t, n) {
|
|
1995
|
-
super(), this.name = "YAMLException", this.reason = t, this.mark = n, this.message =
|
|
1998
|
+
super(), this.name = "YAMLException", this.reason = t, this.mark = n, this.message = an(this, !1), Error.captureStackTrace && Error.captureStackTrace(this, this.constructor);
|
|
1996
1999
|
}
|
|
1997
2000
|
/**
|
|
1998
2001
|
* Returns the formatted error, omitting the source snippet in compact mode.
|
|
1999
2002
|
*/
|
|
2000
2003
|
toString(t) {
|
|
2001
|
-
return `${this.name}: ${
|
|
2004
|
+
return `${this.name}: ${an(this, t)}`;
|
|
2002
2005
|
}
|
|
2003
2006
|
/**
|
|
2004
2007
|
* Builds a YAMLException with a source snippet and throws it. `source` is
|
|
@@ -2006,9 +2009,9 @@ var we = class In extends Error {
|
|
|
2006
2009
|
*/
|
|
2007
2010
|
static throwAt(t, n, r, i = "") {
|
|
2008
2011
|
let o = 0, s = 0;
|
|
2009
|
-
for (let
|
|
2010
|
-
const f = t.charCodeAt(
|
|
2011
|
-
f === 10 ? (o++, s =
|
|
2012
|
+
for (let l = 0; l < n; l++) {
|
|
2013
|
+
const f = t.charCodeAt(l);
|
|
2014
|
+
f === 10 ? (o++, s = l + 1) : f === 13 && (o++, t.charCodeAt(l + 1) === 10 && l++, s = l + 1);
|
|
2012
2015
|
}
|
|
2013
2016
|
const a = {
|
|
2014
2017
|
name: i,
|
|
@@ -2017,7 +2020,7 @@ var we = class In extends Error {
|
|
|
2017
2020
|
line: o,
|
|
2018
2021
|
column: n - s
|
|
2019
2022
|
};
|
|
2020
|
-
throw a.snippet =
|
|
2023
|
+
throw a.snippet = Ii(a), new Nn(r, a);
|
|
2021
2024
|
}
|
|
2022
2025
|
}, ee = {
|
|
2023
2026
|
DOCUMENT: 1,
|
|
@@ -2039,8 +2042,8 @@ var we = class In extends Error {
|
|
|
2039
2042
|
CLIP: 1,
|
|
2040
2043
|
STRIP: 2,
|
|
2041
2044
|
KEEP: 3
|
|
2042
|
-
},
|
|
2043
|
-
function
|
|
2045
|
+
}, Ni = -1;
|
|
2046
|
+
function ln(e) {
|
|
2044
2047
|
switch (e) {
|
|
2045
2048
|
case 48:
|
|
2046
2049
|
return "\0";
|
|
@@ -2083,19 +2086,19 @@ function an(e) {
|
|
|
2083
2086
|
return "";
|
|
2084
2087
|
}
|
|
2085
2088
|
}
|
|
2086
|
-
var
|
|
2089
|
+
var wn = new Array(256), $n = new Array(256);
|
|
2087
2090
|
for (let e = 0; e < 256; e++)
|
|
2088
|
-
|
|
2089
|
-
function
|
|
2091
|
+
wn[e] = ln(e) ? 1 : 0, $n[e] = ln(e);
|
|
2092
|
+
function wi(e) {
|
|
2090
2093
|
return e <= 65535 ? String.fromCharCode(e) : String.fromCharCode((e - 65536 >> 10) + 55296, (e - 65536 & 1023) + 56320);
|
|
2091
2094
|
}
|
|
2092
2095
|
function $i(e) {
|
|
2093
2096
|
return e >= 48 && e <= 57 ? e - 48 : (e | 32) - 97 + 10;
|
|
2094
2097
|
}
|
|
2095
|
-
function
|
|
2098
|
+
function ki(e) {
|
|
2096
2099
|
return e === 120 ? 2 : e === 117 ? 4 : 8;
|
|
2097
2100
|
}
|
|
2098
|
-
function
|
|
2101
|
+
function st(e, t, n) {
|
|
2099
2102
|
let r = 0;
|
|
2100
2103
|
for (; t < n; ) {
|
|
2101
2104
|
const i = e.charCodeAt(t);
|
|
@@ -2111,24 +2114,24 @@ function ot(e, t, n) {
|
|
|
2111
2114
|
breaks: r
|
|
2112
2115
|
};
|
|
2113
2116
|
}
|
|
2114
|
-
function
|
|
2117
|
+
function Wt(e) {
|
|
2115
2118
|
return e === 1 ? " " : `
|
|
2116
2119
|
`.repeat(e - 1);
|
|
2117
2120
|
}
|
|
2118
|
-
function
|
|
2121
|
+
function Fi(e, t, n) {
|
|
2119
2122
|
let r = "", i = t, o = t, s = t;
|
|
2120
2123
|
for (; i < n; ) {
|
|
2121
2124
|
const a = e.charCodeAt(i);
|
|
2122
2125
|
if (a === 10 || a === 13) {
|
|
2123
2126
|
r += e.slice(o, s);
|
|
2124
|
-
const
|
|
2125
|
-
r +=
|
|
2127
|
+
const l = st(e, i, n);
|
|
2128
|
+
r += Wt(l.breaks), i = o = s = l.position;
|
|
2126
2129
|
} else
|
|
2127
2130
|
i++, a !== 32 && a !== 9 && (s = i);
|
|
2128
2131
|
}
|
|
2129
2132
|
return r + e.slice(o, s);
|
|
2130
2133
|
}
|
|
2131
|
-
function
|
|
2134
|
+
function Pi(e, t, n) {
|
|
2132
2135
|
let r = "", i = t, o = t, s = t;
|
|
2133
2136
|
for (; i < n; ) {
|
|
2134
2137
|
const a = e.charCodeAt(i);
|
|
@@ -2136,37 +2139,37 @@ function Fi(e, t, n) {
|
|
|
2136
2139
|
r += e.slice(o, i) + "'", i += 2, o = s = i;
|
|
2137
2140
|
else if (a === 10 || a === 13) {
|
|
2138
2141
|
r += e.slice(o, s);
|
|
2139
|
-
const
|
|
2140
|
-
r +=
|
|
2142
|
+
const l = st(e, i, n);
|
|
2143
|
+
r += Wt(l.breaks), i = o = s = l.position;
|
|
2141
2144
|
} else
|
|
2142
2145
|
i++, a !== 32 && a !== 9 && (s = i);
|
|
2143
2146
|
}
|
|
2144
2147
|
return r + e.slice(o, n);
|
|
2145
2148
|
}
|
|
2146
|
-
function
|
|
2149
|
+
function Bi(e, t, n) {
|
|
2147
2150
|
let r = "", i = t, o = t, s = t;
|
|
2148
2151
|
for (; i < n; ) {
|
|
2149
2152
|
const a = e.charCodeAt(i);
|
|
2150
2153
|
if (a === 92) {
|
|
2151
2154
|
r += e.slice(o, i), i++;
|
|
2152
|
-
const
|
|
2153
|
-
if (
|
|
2154
|
-
else if (
|
|
2155
|
-
r += $n[
|
|
2155
|
+
const l = e.charCodeAt(i);
|
|
2156
|
+
if (l === 10 || l === 13) i = st(e, i, n).position;
|
|
2157
|
+
else if (l < 256 && wn[l])
|
|
2158
|
+
r += $n[l], i++;
|
|
2156
2159
|
else {
|
|
2157
|
-
let f =
|
|
2160
|
+
let f = ki(l), c = 0;
|
|
2158
2161
|
for (; f > 0; f--) {
|
|
2159
2162
|
i++;
|
|
2160
2163
|
const E = $i(e.charCodeAt(i));
|
|
2161
|
-
|
|
2164
|
+
c = (c << 4) + E;
|
|
2162
2165
|
}
|
|
2163
|
-
r +=
|
|
2166
|
+
r += wi(c), i++;
|
|
2164
2167
|
}
|
|
2165
2168
|
o = s = i;
|
|
2166
2169
|
} else if (a === 10 || a === 13) {
|
|
2167
2170
|
r += e.slice(o, s);
|
|
2168
|
-
const
|
|
2169
|
-
r +=
|
|
2171
|
+
const l = st(e, i, n);
|
|
2172
|
+
r += Wt(l.breaks), i = o = s = l.position;
|
|
2170
2173
|
} else
|
|
2171
2174
|
i++, a !== 32 && a !== 9 && (s = i);
|
|
2172
2175
|
}
|
|
@@ -2174,103 +2177,103 @@ function Pi(e, t, n) {
|
|
|
2174
2177
|
}
|
|
2175
2178
|
function cn(e, t, n, r, i, o) {
|
|
2176
2179
|
const s = r < 0 ? 0 : r, a = e.slice(t, n).replace(/\r\n?/g, `
|
|
2177
|
-
`),
|
|
2180
|
+
`), l = a === "" ? [] : (a.endsWith(`
|
|
2178
2181
|
`) ? a.slice(0, -1) : a).split(`
|
|
2179
2182
|
`);
|
|
2180
|
-
let f = "",
|
|
2181
|
-
for (const T of
|
|
2183
|
+
let f = "", c = !1, E = 0, S = !1;
|
|
2184
|
+
for (const T of l) {
|
|
2182
2185
|
let C = 0;
|
|
2183
2186
|
for (; C < s && T.charCodeAt(C) === 32; ) C++;
|
|
2184
2187
|
if (r < 0 || C >= T.length) {
|
|
2185
2188
|
E++;
|
|
2186
2189
|
continue;
|
|
2187
2190
|
}
|
|
2188
|
-
const O = T.slice(s),
|
|
2189
|
-
o ?
|
|
2190
|
-
`.repeat(
|
|
2191
|
-
`.repeat(E + 1)) : E === 0 ?
|
|
2191
|
+
const O = T.slice(s), $ = O.charCodeAt(0);
|
|
2192
|
+
o ? $ === 32 || $ === 9 ? (S = !0, f += `
|
|
2193
|
+
`.repeat(c ? 1 + E : E)) : S ? (S = !1, f += `
|
|
2194
|
+
`.repeat(E + 1)) : E === 0 ? c && (f += " ") : f += `
|
|
2192
2195
|
`.repeat(E) : f += `
|
|
2193
|
-
`.repeat(
|
|
2196
|
+
`.repeat(c ? 1 + E : E), f += O, c = !0, E = 0;
|
|
2194
2197
|
}
|
|
2195
2198
|
return i === _e.KEEP ? f += `
|
|
2196
|
-
`.repeat(
|
|
2199
|
+
`.repeat(c ? 1 + E : E) : i !== _e.STRIP && c && (f += `
|
|
2197
2200
|
`), f;
|
|
2198
2201
|
}
|
|
2199
|
-
function
|
|
2200
|
-
if (t.valueStart ===
|
|
2202
|
+
function Di(e, t) {
|
|
2203
|
+
if (t.valueStart === Ni) return "";
|
|
2201
2204
|
const { valueStart: n, valueEnd: r } = t;
|
|
2202
2205
|
if (t.fast) return e.slice(n, r);
|
|
2203
2206
|
switch (t.style) {
|
|
2204
2207
|
case N.SINGLE_QUOTED:
|
|
2205
|
-
return Fi(e, n, r);
|
|
2206
|
-
case N.DOUBLE_QUOTED:
|
|
2207
2208
|
return Pi(e, n, r);
|
|
2209
|
+
case N.DOUBLE_QUOTED:
|
|
2210
|
+
return Bi(e, n, r);
|
|
2208
2211
|
case N.LITERAL_BLOCK:
|
|
2209
2212
|
return cn(e, n, r, t.indent, t.chomping, !1);
|
|
2210
2213
|
case N.FOLDED_BLOCK:
|
|
2211
2214
|
return cn(e, n, r, t.indent, t.chomping, !0);
|
|
2212
2215
|
default:
|
|
2213
|
-
return
|
|
2216
|
+
return Fi(e, n, r);
|
|
2214
2217
|
}
|
|
2215
2218
|
}
|
|
2216
|
-
var
|
|
2219
|
+
var Mi = Object.assign(/* @__PURE__ */ Object.create(null), {
|
|
2217
2220
|
"!": "!",
|
|
2218
2221
|
"!!": "tag:yaml.org,2002:"
|
|
2219
2222
|
});
|
|
2220
|
-
function
|
|
2223
|
+
function xt(e) {
|
|
2221
2224
|
return encodeURI(e).replace(/!/g, "%21");
|
|
2222
2225
|
}
|
|
2223
|
-
function
|
|
2226
|
+
function kn(e, t) {
|
|
2224
2227
|
if (e.startsWith("!<") && e.endsWith(">")) return decodeURIComponent(e.slice(2, -1));
|
|
2225
|
-
const n = e.indexOf("!", 1), r = n === -1 ? "!" : e.slice(0, n + 1), i = t?.[r] ??
|
|
2228
|
+
const n = e.indexOf("!", 1), r = n === -1 ? "!" : e.slice(0, n + 1), i = t?.[r] ?? Mi[r] ?? r;
|
|
2226
2229
|
return decodeURIComponent(i) + decodeURIComponent(e.slice(r.length));
|
|
2227
2230
|
}
|
|
2228
|
-
function
|
|
2231
|
+
function Fn(e) {
|
|
2229
2232
|
let t = e;
|
|
2230
|
-
return t.charCodeAt(0) === 33 ? (t = t.slice(1), `!${
|
|
2233
|
+
return t.charCodeAt(0) === 33 ? (t = t.slice(1), `!${xt(t)}`) : t.slice(0, 18) === "tag:yaml.org,2002:" ? `!!${xt(t.slice(18))}` : `!<${xt(t)}>`;
|
|
2231
2234
|
}
|
|
2232
|
-
var De = -1,
|
|
2235
|
+
var De = -1, Hi = "tag:yaml.org,2002:merge", Yt = {
|
|
2233
2236
|
filename: "",
|
|
2234
|
-
schema:
|
|
2237
|
+
schema: In,
|
|
2235
2238
|
json: !1,
|
|
2236
2239
|
maxTotalMergeKeys: 1e4,
|
|
2237
2240
|
maxAliases: -1
|
|
2238
2241
|
};
|
|
2239
|
-
function
|
|
2242
|
+
function Ui(e) {
|
|
2240
2243
|
return "tagStart" in e && e.tagStart !== De ? e.tagStart : "anchorStart" in e && e.anchorStart !== De ? e.anchorStart : "valueStart" in e && e.valueStart !== De ? e.valueStart : "start" in e ? e.start : 0;
|
|
2241
2244
|
}
|
|
2242
2245
|
function te(e, t) {
|
|
2243
|
-
|
|
2246
|
+
$e.throwAt(e.source, e.position, t, e.filename);
|
|
2244
2247
|
}
|
|
2245
|
-
function
|
|
2248
|
+
function Pn(e, t, n, r) {
|
|
2246
2249
|
try {
|
|
2247
2250
|
return n.finalize(r);
|
|
2248
2251
|
} catch (i) {
|
|
2249
|
-
if (i instanceof
|
|
2250
|
-
|
|
2252
|
+
if (i instanceof $e) throw i;
|
|
2253
|
+
$e.throwAt(e.source, t, i instanceof Error ? i.message : String(i), e.filename);
|
|
2251
2254
|
}
|
|
2252
2255
|
}
|
|
2253
|
-
function
|
|
2254
|
-
const n =
|
|
2256
|
+
function Ki(e, t) {
|
|
2257
|
+
const n = Di(e.source, t), r = t.tagStart === De ? "" : e.source.slice(t.tagStart, t.tagEnd), i = e.schema.defaultScalarTag;
|
|
2255
2258
|
if (r !== "") {
|
|
2256
2259
|
if (r === "!") return {
|
|
2257
2260
|
value: n,
|
|
2258
2261
|
tag: i
|
|
2259
2262
|
};
|
|
2260
|
-
const o =
|
|
2263
|
+
const o = kn(r, e.tagHandlers), s = e.schema.lookupScalarTag(o);
|
|
2261
2264
|
if (s) {
|
|
2262
|
-
const
|
|
2263
|
-
return
|
|
2264
|
-
value:
|
|
2265
|
+
const l = s.resolve(n, !0, o);
|
|
2266
|
+
return l === M && te(e, `cannot resolve a node with !<${o}> explicit tag`), {
|
|
2267
|
+
value: l,
|
|
2265
2268
|
tag: s
|
|
2266
2269
|
};
|
|
2267
2270
|
}
|
|
2268
2271
|
const a = e.schema.lookupMappingTag(o) ?? e.schema.lookupSequenceTag(o);
|
|
2269
2272
|
if (a) {
|
|
2270
2273
|
n !== "" && te(e, `cannot resolve a node with !<${o}> explicit tag`);
|
|
2271
|
-
const
|
|
2274
|
+
const l = a.create(o);
|
|
2272
2275
|
return {
|
|
2273
|
-
value: a.carrierIsResult ?
|
|
2276
|
+
value: a.carrierIsResult ? l : Pn(e, e.position, a, l),
|
|
2274
2277
|
tag: a
|
|
2275
2278
|
};
|
|
2276
2279
|
}
|
|
@@ -2281,58 +2284,58 @@ function Ui(e, t) {
|
|
|
2281
2284
|
tag: i
|
|
2282
2285
|
};
|
|
2283
2286
|
}
|
|
2284
|
-
function
|
|
2287
|
+
function un(e, t, n) {
|
|
2285
2288
|
const r = t.tagStart === De ? "" : e.source.slice(t.tagStart, t.tagEnd);
|
|
2286
|
-
return r === "" || r === "!" ? n :
|
|
2289
|
+
return r === "" || r === "!" ? n : kn(r, e.tagHandlers);
|
|
2287
2290
|
}
|
|
2288
|
-
function
|
|
2291
|
+
function Bn(e) {
|
|
2289
2292
|
return e.nodeKind === "mapping";
|
|
2290
2293
|
}
|
|
2291
|
-
function
|
|
2294
|
+
function fn(e) {
|
|
2292
2295
|
e.totalMergeKeys++, e.maxTotalMergeKeys !== -1 && e.totalMergeKeys > e.maxTotalMergeKeys && te(e, `merge keys exceeded maxTotalMergeKeys (${e.maxTotalMergeKeys})`);
|
|
2293
2296
|
}
|
|
2294
|
-
function
|
|
2295
|
-
|
|
2297
|
+
function pn(e, t, n, r) {
|
|
2298
|
+
fn(e);
|
|
2296
2299
|
for (const i of r.keys(n)) {
|
|
2297
|
-
if (
|
|
2300
|
+
if (fn(e), t.tag.has(t.value, i)) continue;
|
|
2298
2301
|
const o = t.tag.addPair(t.value, i, r.get(n, i));
|
|
2299
2302
|
o && te(e, o), t.overridable ??= /* @__PURE__ */ new Set(), t.overridable.add(i);
|
|
2300
2303
|
}
|
|
2301
2304
|
}
|
|
2302
|
-
function
|
|
2303
|
-
if (e.position = t.keyPosition,
|
|
2305
|
+
function Gi(e, t, n, r) {
|
|
2306
|
+
if (e.position = t.keyPosition, Bn(r)) pn(e, t, n, r);
|
|
2304
2307
|
else if (r.nodeKind === "sequence" && Array.isArray(n)) {
|
|
2305
2308
|
n.length > 100 && te(e, "abnormal merge sequence size");
|
|
2306
2309
|
for (const i of n) {
|
|
2307
2310
|
const o = e.nodeTags.get(i);
|
|
2308
|
-
o || te(e, "cannot merge mappings; the provided source object is unacceptable"),
|
|
2311
|
+
o || te(e, "cannot merge mappings; the provided source object is unacceptable"), pn(e, t, i, o);
|
|
2309
2312
|
}
|
|
2310
2313
|
} else te(e, "cannot merge mappings; the provided source object is unacceptable");
|
|
2311
2314
|
}
|
|
2312
|
-
function
|
|
2315
|
+
function qi(e, t, n, r, i) {
|
|
2313
2316
|
if (e.position = t.keyPosition, t.keyIsMerge) {
|
|
2314
|
-
|
|
2317
|
+
Gi(e, t, r, i);
|
|
2315
2318
|
return;
|
|
2316
2319
|
}
|
|
2317
2320
|
!e.json && t.tag.has(t.value, n) && !t.overridable?.has(n) && te(e, "duplicated mapping key");
|
|
2318
2321
|
const o = t.tag.addPair(t.value, n, r);
|
|
2319
2322
|
o && te(e, o), t.overridable?.delete(n);
|
|
2320
2323
|
}
|
|
2321
|
-
function
|
|
2324
|
+
function Ot(e, t, n) {
|
|
2322
2325
|
const r = e.frames[e.frames.length - 1];
|
|
2323
2326
|
if (r.kind === "document")
|
|
2324
2327
|
r.value = t, r.hasValue = !0;
|
|
2325
2328
|
else if (r.kind === "sequence") {
|
|
2326
|
-
|
|
2329
|
+
Bn(n) && e.nodeTags.set(t, n);
|
|
2327
2330
|
const i = r.tag.addItem(r.value, t, r.index++);
|
|
2328
2331
|
i && te(e, i);
|
|
2329
2332
|
} else if (r.hasKey) {
|
|
2330
2333
|
const i = r.key;
|
|
2331
|
-
r.key = void 0, r.hasKey = !1,
|
|
2334
|
+
r.key = void 0, r.hasKey = !1, qi(e, r, i, t, n);
|
|
2332
2335
|
} else
|
|
2333
|
-
r.key = t, r.keyPosition = e.position, r.hasKey = !0, r.keyIsMerge = n.tagName ===
|
|
2336
|
+
r.key = t, r.keyPosition = e.position, r.hasKey = !0, r.keyIsMerge = n.tagName === Hi;
|
|
2334
2337
|
}
|
|
2335
|
-
function
|
|
2338
|
+
function bt(e, t, n, r, i) {
|
|
2336
2339
|
if (t.anchorStart !== De) {
|
|
2337
2340
|
const o = {
|
|
2338
2341
|
value: n,
|
|
@@ -2343,9 +2346,9 @@ function xt(e, t, n, r, i) {
|
|
|
2343
2346
|
}
|
|
2344
2347
|
return null;
|
|
2345
2348
|
}
|
|
2346
|
-
function
|
|
2349
|
+
function Wi(e, t) {
|
|
2347
2350
|
const n = {
|
|
2348
|
-
...
|
|
2351
|
+
...Yt,
|
|
2349
2352
|
...t,
|
|
2350
2353
|
events: e,
|
|
2351
2354
|
documents: [],
|
|
@@ -2360,7 +2363,7 @@ function qi(e, t) {
|
|
|
2360
2363
|
};
|
|
2361
2364
|
for (; n.eventIndex < n.events.length; ) {
|
|
2362
2365
|
const r = n.events[n.eventIndex++];
|
|
2363
|
-
switch (n.position =
|
|
2366
|
+
switch (n.position = Ui(r), r.type) {
|
|
2364
2367
|
case ee.DOCUMENT:
|
|
2365
2368
|
n.anchors = /* @__PURE__ */ new Map(), n.nodeTags = /* @__PURE__ */ new Map(), n.aliasCount = 0, n.tagHandlers = /* @__PURE__ */ Object.create(null);
|
|
2366
2369
|
for (const i of r.directives) i.kind === "tag" && (n.tagHandlers[i.handle] = i.prefix);
|
|
@@ -2372,14 +2375,14 @@ function qi(e, t) {
|
|
|
2372
2375
|
});
|
|
2373
2376
|
break;
|
|
2374
2377
|
case ee.SCALAR: {
|
|
2375
|
-
const { value: i, tag: o } =
|
|
2376
|
-
|
|
2378
|
+
const { value: i, tag: o } = Ki(n, r);
|
|
2379
|
+
bt(n, r, i, o, !0), Ot(n, i, o);
|
|
2377
2380
|
break;
|
|
2378
2381
|
}
|
|
2379
2382
|
case ee.SEQUENCE: {
|
|
2380
|
-
const i =
|
|
2383
|
+
const i = un(n, r, "tag:yaml.org,2002:seq"), o = n.schema.lookupSequenceTag(i);
|
|
2381
2384
|
o || te(n, `unknown sequence tag !<${i}>`);
|
|
2382
|
-
const s = o.create(i), a =
|
|
2385
|
+
const s = o.create(i), a = bt(n, r, s, o, o.carrierIsResult);
|
|
2383
2386
|
n.frames.push({
|
|
2384
2387
|
kind: "sequence",
|
|
2385
2388
|
position: n.position,
|
|
@@ -2391,9 +2394,9 @@ function qi(e, t) {
|
|
|
2391
2394
|
break;
|
|
2392
2395
|
}
|
|
2393
2396
|
case ee.MAPPING: {
|
|
2394
|
-
const i =
|
|
2397
|
+
const i = un(n, r, "tag:yaml.org,2002:map"), o = n.schema.lookupMappingTag(i);
|
|
2395
2398
|
o || te(n, `unknown mapping tag !<${i}>`);
|
|
2396
|
-
const s = o.create(i), a =
|
|
2399
|
+
const s = o.create(i), a = bt(n, r, s, o, o.carrierIsResult);
|
|
2397
2400
|
n.frames.push({
|
|
2398
2401
|
kind: "mapping",
|
|
2399
2402
|
position: n.position,
|
|
@@ -2411,15 +2414,15 @@ function qi(e, t) {
|
|
|
2411
2414
|
case ee.ALIAS: {
|
|
2412
2415
|
n.maxAliases !== -1 && ++n.aliasCount > n.maxAliases && te(n, `aliases exceeded maxAliases (${n.maxAliases})`);
|
|
2413
2416
|
const i = n.source.slice(r.anchorStart, r.anchorEnd), o = n.anchors.get(i);
|
|
2414
|
-
o || te(n, `unidentified alias "${i}"`), o.isValueFinal || te(n, `recursive alias "${i}" is not supported for tag ${o.tag.tagName} because it uses finalize()`),
|
|
2417
|
+
o || te(n, `unidentified alias "${i}"`), o.isValueFinal || te(n, `recursive alias "${i}" is not supported for tag ${o.tag.tagName} because it uses finalize()`), Ot(n, o.value, o.tag);
|
|
2415
2418
|
break;
|
|
2416
2419
|
}
|
|
2417
2420
|
case ee.POP: {
|
|
2418
2421
|
const i = n.frames.pop();
|
|
2419
2422
|
if (i.kind === "mapping" && i.hasKey && (n.position = i.keyPosition, te(n, "incomplete mapping pair in event stream")), i.kind === "document") n.documents.push(i.value);
|
|
2420
2423
|
else {
|
|
2421
|
-
const o = i.tag.carrierIsResult ? i.value :
|
|
2422
|
-
i.anchor && (i.anchor.value = o, i.anchor.isValueFinal = !0),
|
|
2424
|
+
const o = i.tag.carrierIsResult ? i.value : Pn(n, i.position, i.tag, i.value);
|
|
2425
|
+
i.anchor && (i.anchor.value = o, i.anchor.isValueFinal = !0), Ot(n, o, i.tag);
|
|
2423
2426
|
}
|
|
2424
2427
|
break;
|
|
2425
2428
|
}
|
|
@@ -2427,11 +2430,11 @@ function qi(e, t) {
|
|
|
2427
2430
|
}
|
|
2428
2431
|
return n.documents;
|
|
2429
2432
|
}
|
|
2430
|
-
var H = -1,
|
|
2433
|
+
var H = -1, Dn = Object.prototype.hasOwnProperty, Ke = 1, Mn = 2, Hn = 3, at = 4, Yi = /[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/, ji = /[,\[\]{}]/, Un = /^(?:!|!!|![0-9A-Za-z-]+!)$/, Ft = String.raw`(?:%[0-9A-Fa-f]{2}|[0-9A-Za-z\-#;/?:@&=+$,_.!~*'()\[\]])`, Kn = String.raw`(?:%[0-9A-Fa-f]{2}|[0-9A-Za-z\-#;/?:@&=+$.~*'()_])`, Qi = new RegExp(`^(?:${Ft})*$`), Vi = new RegExp(`^(?:${Kn})+$`), Xi = new RegExp(`^(?:!(?:${Ft})*|${Kn}(?:${Ft})*)$`), jt = {
|
|
2431
2434
|
filename: "",
|
|
2432
2435
|
maxDepth: 100
|
|
2433
2436
|
};
|
|
2434
|
-
function
|
|
2437
|
+
function zi(e, t, n) {
|
|
2435
2438
|
e.events.push({
|
|
2436
2439
|
type: ee.DOCUMENT,
|
|
2437
2440
|
explicitStart: t,
|
|
@@ -2439,7 +2442,7 @@ function Xi(e, t, n) {
|
|
|
2439
2442
|
directives: e.directives
|
|
2440
2443
|
});
|
|
2441
2444
|
}
|
|
2442
|
-
function
|
|
2445
|
+
function Gn(e, t, n, r, i, o, s) {
|
|
2443
2446
|
e.events.push({
|
|
2444
2447
|
type: ee.SEQUENCE,
|
|
2445
2448
|
start: t,
|
|
@@ -2450,7 +2453,7 @@ function Kn(e, t, n, r, i, o, s) {
|
|
|
2450
2453
|
style: s
|
|
2451
2454
|
});
|
|
2452
2455
|
}
|
|
2453
|
-
function
|
|
2456
|
+
function qn(e, t, n, r, i, o, s) {
|
|
2454
2457
|
e.events.push({
|
|
2455
2458
|
type: ee.MAPPING,
|
|
2456
2459
|
start: t,
|
|
@@ -2461,7 +2464,7 @@ function Gn(e, t, n, r, i, o, s) {
|
|
|
2461
2464
|
style: s
|
|
2462
2465
|
});
|
|
2463
2466
|
}
|
|
2464
|
-
function
|
|
2467
|
+
function dn(e, t) {
|
|
2465
2468
|
e.events.splice(t.eventsLength, 0, {
|
|
2466
2469
|
type: ee.MAPPING,
|
|
2467
2470
|
start: t.position,
|
|
@@ -2472,7 +2475,7 @@ function pn(e, t) {
|
|
|
2472
2475
|
style: he.FLOW
|
|
2473
2476
|
});
|
|
2474
2477
|
}
|
|
2475
|
-
function We(e, t, n, r, i, o, s, a,
|
|
2478
|
+
function We(e, t, n, r, i, o, s, a, l = _e.CLIP, f = -1, c = !1) {
|
|
2476
2479
|
e.events.push({
|
|
2477
2480
|
type: ee.SCALAR,
|
|
2478
2481
|
valueStart: t,
|
|
@@ -2482,12 +2485,12 @@ function We(e, t, n, r, i, o, s, a, c = _e.CLIP, f = -1, l = !1) {
|
|
|
2482
2485
|
tagStart: o,
|
|
2483
2486
|
tagEnd: s,
|
|
2484
2487
|
style: a,
|
|
2485
|
-
chomping:
|
|
2488
|
+
chomping: l,
|
|
2486
2489
|
indent: f,
|
|
2487
|
-
fast:
|
|
2490
|
+
fast: c
|
|
2488
2491
|
});
|
|
2489
2492
|
}
|
|
2490
|
-
function
|
|
2493
|
+
function Zi(e, t, n) {
|
|
2491
2494
|
e.events.push({
|
|
2492
2495
|
type: ee.ALIAS,
|
|
2493
2496
|
anchorStart: t,
|
|
@@ -2500,7 +2503,7 @@ function Me(e) {
|
|
|
2500
2503
|
function ae(e) {
|
|
2501
2504
|
We(e, H, H, H, H, H, H, N.PLAIN);
|
|
2502
2505
|
}
|
|
2503
|
-
function
|
|
2506
|
+
function hn() {
|
|
2504
2507
|
return {
|
|
2505
2508
|
anchorStart: H,
|
|
2506
2509
|
anchorEnd: H,
|
|
@@ -2522,7 +2525,7 @@ function Ue(e, t) {
|
|
|
2522
2525
|
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;
|
|
2523
2526
|
}
|
|
2524
2527
|
function x(e, t) {
|
|
2525
|
-
|
|
2528
|
+
$e.throwAt(e.input.slice(0, e.length), e.position, t, e.filename);
|
|
2526
2529
|
}
|
|
2527
2530
|
function J(e) {
|
|
2528
2531
|
return e === 10 || e === 13;
|
|
@@ -2539,21 +2542,21 @@ function Ce(e) {
|
|
|
2539
2542
|
function ke(e) {
|
|
2540
2543
|
return e === 44 || e === 91 || e === 93 || e === 123 || e === 125;
|
|
2541
2544
|
}
|
|
2542
|
-
function
|
|
2545
|
+
function Ji(e) {
|
|
2543
2546
|
return e >= 48 && e <= 57 ? e - 48 : -1;
|
|
2544
2547
|
}
|
|
2545
|
-
function
|
|
2548
|
+
function eo(e) {
|
|
2546
2549
|
if (e >= 48 && e <= 57) return e - 48;
|
|
2547
2550
|
const t = e | 32;
|
|
2548
2551
|
return t >= 97 && t <= 102 ? t - 97 + 10 : -1;
|
|
2549
2552
|
}
|
|
2550
|
-
function
|
|
2553
|
+
function to(e) {
|
|
2551
2554
|
return e === 120 ? 2 : e === 117 ? 4 : e === 85 ? 8 : 0;
|
|
2552
2555
|
}
|
|
2553
|
-
function
|
|
2556
|
+
function no(e) {
|
|
2554
2557
|
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;
|
|
2555
2558
|
}
|
|
2556
|
-
function
|
|
2559
|
+
function lt(e) {
|
|
2557
2560
|
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;
|
|
2558
2561
|
}
|
|
2559
2562
|
function re(e, t) {
|
|
@@ -2565,7 +2568,7 @@ function re(e, t) {
|
|
|
2565
2568
|
r = e.input.charCodeAt(++e.position);
|
|
2566
2569
|
while (!J(r) && r !== 0);
|
|
2567
2570
|
if (!J(r)) break;
|
|
2568
|
-
for (
|
|
2571
|
+
for (lt(e), n++, i = !0, r = e.input.charCodeAt(e.position); r === 32; )
|
|
2569
2572
|
e.lineIndent++, r = e.input.charCodeAt(++e.position);
|
|
2570
2573
|
}
|
|
2571
2574
|
return n;
|
|
@@ -2578,60 +2581,60 @@ function Ge(e, t = e.position) {
|
|
|
2578
2581
|
}
|
|
2579
2582
|
return !1;
|
|
2580
2583
|
}
|
|
2581
|
-
function
|
|
2584
|
+
function Wn(e) {
|
|
2582
2585
|
e.position === e.lineStart && e.input.charCodeAt(e.position) === 65279 && (e.position++, e.lineStart = e.position);
|
|
2583
2586
|
}
|
|
2584
|
-
function
|
|
2587
|
+
function Qt(e) {
|
|
2585
2588
|
if (e.position !== e.lineStart) return !1;
|
|
2586
2589
|
if (Ge(e)) return !0;
|
|
2587
2590
|
if (e.input.charCodeAt(e.position) !== 65279) return !1;
|
|
2588
2591
|
const t = He(e);
|
|
2589
|
-
|
|
2592
|
+
Wn(e), re(e, !0);
|
|
2590
2593
|
const n = e.input.charCodeAt(e.position), r = e.position === e.lineStart && (n === 37 || n === 45 && Ge(e));
|
|
2591
2594
|
return Ue(e, t), r;
|
|
2592
2595
|
}
|
|
2593
|
-
function
|
|
2596
|
+
function gn(e) {
|
|
2594
2597
|
let t = e.input.charCodeAt(e.position);
|
|
2595
2598
|
for (; t !== 0 && !J(t); ) t = e.input.charCodeAt(++e.position);
|
|
2596
2599
|
}
|
|
2597
|
-
function
|
|
2598
|
-
|
|
2600
|
+
function Yn(e, t, n) {
|
|
2601
|
+
Yi.test(e.input.slice(t, n)) && x(e, "the stream contains non-printable characters");
|
|
2599
2602
|
}
|
|
2600
|
-
function
|
|
2603
|
+
function ro(e, t, n) {
|
|
2601
2604
|
if (e.input.charCodeAt(e.position) !== 33) return !1;
|
|
2602
2605
|
t.tagStart !== H && x(e, "duplication of a tag property");
|
|
2603
2606
|
const r = e.position;
|
|
2604
2607
|
let i = !1, o = !1, s = "!", a = e.input.charCodeAt(++e.position);
|
|
2605
2608
|
a === 60 ? (i = !0, a = e.input.charCodeAt(++e.position)) : a === 33 && (o = !0, s = "!!", a = e.input.charCodeAt(++e.position));
|
|
2606
|
-
let
|
|
2609
|
+
let l = e.position, f;
|
|
2607
2610
|
if (i) {
|
|
2608
2611
|
for (; a !== 0 && a !== 62; ) a = e.input.charCodeAt(++e.position);
|
|
2609
|
-
a !== 62 && x(e, "unexpected end of the stream within a verbatim tag"), f = e.input.slice(
|
|
2612
|
+
a !== 62 && x(e, "unexpected end of the stream within a verbatim tag"), f = e.input.slice(l, e.position), e.position++;
|
|
2610
2613
|
} else {
|
|
2611
2614
|
for (; a !== 0 && !ge(a) && !(n && ke(a)); )
|
|
2612
|
-
a === 33 && (o ? x(e, "tag suffix cannot contain exclamation marks") : (s = e.input.slice(
|
|
2613
|
-
f = e.input.slice(
|
|
2615
|
+
a === 33 && (o ? x(e, "tag suffix cannot contain exclamation marks") : (s = e.input.slice(l - 1, e.position + 1), Un.test(s) || x(e, "named tag handle cannot contain such characters"), o = !0, l = e.position + 1)), a = e.input.charCodeAt(++e.position);
|
|
2616
|
+
f = e.input.slice(l, e.position), ji.test(f) && x(e, "tag suffix cannot contain flow indicator characters");
|
|
2614
2617
|
}
|
|
2615
|
-
return f && !(i ?
|
|
2618
|
+
return f && !(i ? Qi.test(f) : Vi.test(f)) && x(e, `tag name cannot contain such characters: ${f}`), !i && s !== "!" && s !== "!!" && !Dn.call(e.tagHandlers, s) && x(e, `undeclared tag handle "${s}"`), t.tagStart = r, t.tagEnd = e.position, !0;
|
|
2616
2619
|
}
|
|
2617
|
-
function
|
|
2620
|
+
function io(e, t) {
|
|
2618
2621
|
if (e.input.charCodeAt(e.position) !== 38) return !1;
|
|
2619
2622
|
t.anchorStart !== H && x(e, "duplication of an anchor property"), e.position++;
|
|
2620
2623
|
const n = e.position;
|
|
2621
2624
|
for (; e.input.charCodeAt(e.position) !== 0 && !ge(e.input.charCodeAt(e.position)) && !ke(e.input.charCodeAt(e.position)); ) e.position++;
|
|
2622
2625
|
return e.position === n && x(e, "name of an anchor node must contain at least one character"), t.anchorStart = n, t.anchorEnd = e.position, !0;
|
|
2623
2626
|
}
|
|
2624
|
-
function
|
|
2627
|
+
function oo(e, t) {
|
|
2625
2628
|
if (e.input.charCodeAt(e.position) !== 42) return !1;
|
|
2626
2629
|
(t.anchorStart !== H || t.tagStart !== H) && x(e, "alias node should not have any properties"), e.position++;
|
|
2627
2630
|
const n = e.position;
|
|
2628
2631
|
for (; e.input.charCodeAt(e.position) !== 0 && !ge(e.input.charCodeAt(e.position)) && !ke(e.input.charCodeAt(e.position)); ) e.position++;
|
|
2629
|
-
return e.position === n && x(e, "name of an alias node must contain at least one character"),
|
|
2632
|
+
return e.position === n && x(e, "name of an alias node must contain at least one character"), Zi(e, n, e.position), !0;
|
|
2630
2633
|
}
|
|
2631
|
-
function
|
|
2634
|
+
function Pt(e, t) {
|
|
2632
2635
|
re(e, !1), e.lineIndent < t && x(e, "deficient indentation");
|
|
2633
2636
|
}
|
|
2634
|
-
function
|
|
2637
|
+
function so(e, t, n) {
|
|
2635
2638
|
if (e.input.charCodeAt(e.position) !== 39) return !1;
|
|
2636
2639
|
e.position++;
|
|
2637
2640
|
const r = e.position;
|
|
@@ -2646,11 +2649,11 @@ function oo(e, t, n) {
|
|
|
2646
2649
|
const s = e.position;
|
|
2647
2650
|
return e.position++, We(e, r, s, n.anchorStart, n.anchorEnd, n.tagStart, n.tagEnd, N.SINGLE_QUOTED, _e.CLIP, -1, i), !0;
|
|
2648
2651
|
}
|
|
2649
|
-
J(o) ? (i = !1,
|
|
2652
|
+
J(o) ? (i = !1, Pt(e, t)) : e.position === e.lineStart && Ge(e) ? x(e, "unexpected end of the document within a single quoted scalar") : o !== 9 && o < 32 ? x(e, "expected valid JSON character") : e.position++;
|
|
2650
2653
|
}
|
|
2651
2654
|
x(e, "unexpected end of the stream within a single quoted scalar");
|
|
2652
2655
|
}
|
|
2653
|
-
function
|
|
2656
|
+
function ao(e, t, n) {
|
|
2654
2657
|
if (e.input.charCodeAt(e.position) !== 34) return !1;
|
|
2655
2658
|
e.position++;
|
|
2656
2659
|
const r = e.position;
|
|
@@ -2664,36 +2667,36 @@ function so(e, t, n) {
|
|
|
2664
2667
|
if (o === 92) {
|
|
2665
2668
|
i = !1;
|
|
2666
2669
|
const s = e.input.charCodeAt(++e.position);
|
|
2667
|
-
if (J(s))
|
|
2668
|
-
else if (
|
|
2670
|
+
if (J(s)) Pt(e, t);
|
|
2671
|
+
else if (no(s)) e.position++;
|
|
2669
2672
|
else {
|
|
2670
|
-
let a =
|
|
2673
|
+
let a = to(s);
|
|
2671
2674
|
for (a === 0 && x(e, "unknown escape sequence"); a-- > 0; )
|
|
2672
|
-
e.position++,
|
|
2675
|
+
e.position++, eo(e.input.charCodeAt(e.position)) < 0 && x(e, "expected hexadecimal character");
|
|
2673
2676
|
e.position++;
|
|
2674
2677
|
}
|
|
2675
|
-
} else J(o) ? (i = !1,
|
|
2678
|
+
} else J(o) ? (i = !1, Pt(e, t)) : e.position === e.lineStart && Ge(e) ? x(e, "unexpected end of the document within a double quoted scalar") : o !== 9 && o < 32 ? x(e, "expected valid JSON character") : e.position++;
|
|
2676
2679
|
}
|
|
2677
2680
|
x(e, "unexpected end of the stream within a double quoted scalar");
|
|
2678
2681
|
}
|
|
2679
|
-
function
|
|
2682
|
+
function lo(e, t, n) {
|
|
2680
2683
|
const r = e.input.charCodeAt(e.position);
|
|
2681
2684
|
let i = _e.CLIP, o = -1, s = !1;
|
|
2682
2685
|
if (r !== 124 && r !== 62) return !1;
|
|
2683
2686
|
const a = r === 124 ? N.LITERAL_BLOCK : N.FOLDED_BLOCK;
|
|
2684
2687
|
for (e.position++; e.input.charCodeAt(e.position) !== 0; ) {
|
|
2685
|
-
const T = e.input.charCodeAt(e.position), C =
|
|
2688
|
+
const T = e.input.charCodeAt(e.position), C = Ji(T);
|
|
2686
2689
|
if (T === 43 || T === 45)
|
|
2687
2690
|
i !== _e.CLIP && x(e, "repeat of a chomping mode identifier"), i = T === 43 ? _e.KEEP : _e.STRIP, e.position++;
|
|
2688
2691
|
else if (C >= 0)
|
|
2689
2692
|
C === 0 && x(e, "bad explicit indentation width of a block scalar; it cannot be less than one"), s && x(e, "repeat of an indentation width identifier"), o = t + C - 1, s = !0, e.position++;
|
|
2690
2693
|
else break;
|
|
2691
2694
|
}
|
|
2692
|
-
let
|
|
2695
|
+
let l = !1;
|
|
2693
2696
|
for (; Ye(e.input.charCodeAt(e.position)); )
|
|
2694
|
-
|
|
2695
|
-
|
|
2696
|
-
let f = s ? o : -1,
|
|
2697
|
+
l = !0, e.position++;
|
|
2698
|
+
l && e.input.charCodeAt(e.position) === 35 && gn(e), J(e.input.charCodeAt(e.position)) ? lt(e) : e.input.charCodeAt(e.position) !== 0 && x(e, "a line break is expected");
|
|
2699
|
+
let f = s ? o : -1, c = 0;
|
|
2697
2700
|
const E = e.position;
|
|
2698
2701
|
let S = e.position;
|
|
2699
2702
|
for (; e.input.charCodeAt(e.position) !== 0; ) {
|
|
@@ -2705,20 +2708,20 @@ function ao(e, t, n) {
|
|
|
2705
2708
|
f >= 0 ? C > f && (S = T + C) : C > 0 && (S = T + C);
|
|
2706
2709
|
break;
|
|
2707
2710
|
}
|
|
2708
|
-
if (
|
|
2709
|
-
if (!s && f === -1 && J(O) && (
|
|
2711
|
+
if (Qt(e)) break;
|
|
2712
|
+
if (!s && f === -1 && J(O) && (c = Math.max(c, C)), !s && f === -1 && !J(O) && (O === 9 && C < t && (e.position = T + C, x(e, "tab characters must not be used in indentation")), C >= t && C < c && (e.position = T + C, x(e, "bad indentation of a mapping entry"))), f === -1 && O !== 0 && !J(O) && C < t) {
|
|
2710
2713
|
e.lineIndent = C, e.position = T + C;
|
|
2711
2714
|
break;
|
|
2712
2715
|
}
|
|
2713
2716
|
!s && O !== 0 && !J(O) && f === -1 && (f = C);
|
|
2714
|
-
const
|
|
2715
|
-
if (O !== 0 && !J(O) && C <
|
|
2717
|
+
const $ = f === -1 ? t + 1 : f;
|
|
2718
|
+
if (O !== 0 && !J(O) && C < $) {
|
|
2716
2719
|
e.lineIndent = C, e.position = T + C;
|
|
2717
2720
|
break;
|
|
2718
2721
|
}
|
|
2719
|
-
|
|
2722
|
+
gn(e), S = e.position, J(e.input.charCodeAt(e.position)) && (lt(e), S = e.position);
|
|
2720
2723
|
}
|
|
2721
|
-
return
|
|
2724
|
+
return Yn(e, E, S), We(e, E, S, n.anchorStart, n.anchorEnd, n.tagStart, n.tagEnd, a, i, f), !0;
|
|
2722
2725
|
}
|
|
2723
2726
|
function co(e, t) {
|
|
2724
2727
|
const n = e.input.charCodeAt(e.position), r = t === Ke;
|
|
@@ -2729,13 +2732,13 @@ function co(e, t) {
|
|
|
2729
2732
|
}
|
|
2730
2733
|
return !0;
|
|
2731
2734
|
}
|
|
2732
|
-
function
|
|
2735
|
+
function uo(e, t, n, r) {
|
|
2733
2736
|
if (!co(e, n)) return !1;
|
|
2734
2737
|
const i = e.position;
|
|
2735
2738
|
let o = e.position, s = e.input.charCodeAt(e.position);
|
|
2736
2739
|
const a = n === Ke;
|
|
2737
|
-
let
|
|
2738
|
-
for (; s !== 0 && !
|
|
2740
|
+
let l = !1;
|
|
2741
|
+
for (; s !== 0 && !Qt(e); ) {
|
|
2739
2742
|
if (s === 58) {
|
|
2740
2743
|
const f = e.input.charCodeAt(e.position + 1);
|
|
2741
2744
|
if (Ce(f) || a && ke(f)) break;
|
|
@@ -2744,70 +2747,70 @@ function lo(e, t, n, r) {
|
|
|
2744
2747
|
} else {
|
|
2745
2748
|
if (a && ke(s)) break;
|
|
2746
2749
|
if (J(s)) {
|
|
2747
|
-
const f = e.position,
|
|
2750
|
+
const f = e.position, c = e.line, E = e.lineStart, S = e.lineIndent;
|
|
2748
2751
|
if (re(e, !1), e.lineIndent >= t) {
|
|
2749
|
-
|
|
2752
|
+
l = !0, s = e.input.charCodeAt(e.position);
|
|
2750
2753
|
continue;
|
|
2751
2754
|
}
|
|
2752
|
-
e.position = f, e.line =
|
|
2755
|
+
e.position = f, e.line = c, e.lineStart = E, e.lineIndent = S;
|
|
2753
2756
|
break;
|
|
2754
2757
|
}
|
|
2755
2758
|
}
|
|
2756
2759
|
Ye(s) || (o = e.position + 1), s = e.input.charCodeAt(++e.position);
|
|
2757
2760
|
}
|
|
2758
|
-
return o === i ? !1 : (
|
|
2761
|
+
return o === i ? !1 : (Yn(e, i, o), We(e, i, o, r.anchorStart, r.anchorEnd, r.tagStart, r.tagEnd, N.PLAIN, _e.CLIP, -1, !l), !0);
|
|
2759
2762
|
}
|
|
2760
2763
|
function Qe(e, t) {
|
|
2761
2764
|
const n = e.line;
|
|
2762
2765
|
re(e, !0), (e.line > n && e.lineIndent < t || e.firstTabInLine !== -1 && e.lineIndent < t) && x(e, "deficient indentation");
|
|
2763
2766
|
}
|
|
2764
|
-
function
|
|
2767
|
+
function fo(e, t, n) {
|
|
2765
2768
|
const r = e.input.charCodeAt(e.position), i = r === 123, o = e.position;
|
|
2766
2769
|
let s = !0;
|
|
2767
2770
|
if (r !== 91 && r !== 123) return !1;
|
|
2768
2771
|
const a = i ? 125 : 93;
|
|
2769
|
-
for (i ?
|
|
2772
|
+
for (i ? qn(e, o, n.anchorStart, n.anchorEnd, n.tagStart, n.tagEnd, he.FLOW) : Gn(e, o, n.anchorStart, n.anchorEnd, n.tagStart, n.tagEnd, he.FLOW), e.position++; e.input.charCodeAt(e.position) !== 0; ) {
|
|
2770
2773
|
Qe(e, t);
|
|
2771
|
-
let
|
|
2772
|
-
if (
|
|
2774
|
+
let l = e.input.charCodeAt(e.position);
|
|
2775
|
+
if (l === a)
|
|
2773
2776
|
return e.position++, Me(e), !0;
|
|
2774
|
-
s ?
|
|
2775
|
-
let f = !1,
|
|
2776
|
-
|
|
2777
|
+
s ? l === 44 && x(e, "expected the node content, but found ','") : x(e, "missed comma between flow collection entries");
|
|
2778
|
+
let f = !1, c = !1;
|
|
2779
|
+
l === 63 && ge(e.input.charCodeAt(e.position + 1)) && (f = c = !0, e.position += 1, Qe(e, t));
|
|
2777
2780
|
const E = e.line, S = He(e), T = qe(e, t, Ke, !1, !0);
|
|
2778
|
-
Qe(e, t),
|
|
2781
|
+
Qe(e, t), l = e.input.charCodeAt(e.position), (i || c || e.line === E) && l === 58 ? (f = !0, e.position++, Qe(e, t), i || dn(e, S), T || ae(e), qe(e, t, Ke, !1, !0) || ae(e), Qe(e, t), i || Me(e)) : i && f ? (T || ae(e), ae(e)) : i ? ae(e) : f && (dn(e, S), T || ae(e), ae(e), Me(e)), l = e.input.charCodeAt(e.position), l === 44 ? (s = !0, e.position++) : s = !1;
|
|
2779
2782
|
}
|
|
2780
2783
|
x(e, "unexpected end of the stream within a flow collection");
|
|
2781
2784
|
}
|
|
2782
|
-
function
|
|
2785
|
+
function mn(e, t, n) {
|
|
2783
2786
|
if (e.firstTabInLine !== -1 || e.input.charCodeAt(e.position) !== 45 || !Ce(e.input.charCodeAt(e.position + 1))) return !1;
|
|
2784
|
-
for (
|
|
2787
|
+
for (Gn(e, e.position, n.anchorStart, n.anchorEnd, n.tagStart, n.tagEnd, he.BLOCK); e.input.charCodeAt(e.position) === 45 && Ce(e.input.charCodeAt(e.position + 1)); ) {
|
|
2785
2788
|
e.firstTabInLine !== -1 && (e.position = e.firstTabInLine, x(e, "tab characters must not be used in indentation"));
|
|
2786
2789
|
const r = e.line;
|
|
2787
2790
|
e.position++;
|
|
2788
2791
|
const i = re(e, !0) > 0;
|
|
2789
|
-
if (e.firstTabInLine !== -1 && e.input.charCodeAt(e.position) === 45 && Ce(e.input.charCodeAt(e.position + 1)) && x(e, "bad indentation of a sequence entry"), i && e.lineIndent <= t ? ae(e) : qe(e, t,
|
|
2792
|
+
if (e.firstTabInLine !== -1 && e.input.charCodeAt(e.position) === 45 && Ce(e.input.charCodeAt(e.position + 1)) && x(e, "bad indentation of a sequence entry"), i && e.lineIndent <= t ? ae(e) : qe(e, t, Hn, !1, !0), re(e, !0), e.lineIndent < t || e.position >= e.length) break;
|
|
2790
2793
|
e.lineIndent > t && x(e, "bad indentation of a sequence entry"), e.line === r && e.input.charCodeAt(e.position) === 45 && Ce(e.input.charCodeAt(e.position + 1)) && x(e, "bad indentation of a sequence entry");
|
|
2791
2794
|
}
|
|
2792
2795
|
return Me(e), !0;
|
|
2793
2796
|
}
|
|
2794
|
-
function
|
|
2797
|
+
function It(e, t, n, r) {
|
|
2795
2798
|
let i = !1, o = !1, s = !1, a = !1;
|
|
2796
2799
|
if (e.firstTabInLine !== -1) return !1;
|
|
2797
|
-
let
|
|
2798
|
-
for (;
|
|
2800
|
+
let l = e.input.charCodeAt(e.position);
|
|
2801
|
+
for (; l !== 0; ) {
|
|
2799
2802
|
!i && e.firstTabInLine !== -1 && (e.position = e.firstTabInLine, x(e, "tab characters must not be used in indentation"));
|
|
2800
|
-
const f = e.input.charCodeAt(e.position + 1),
|
|
2801
|
-
if ((
|
|
2802
|
-
s || (
|
|
2803
|
+
const f = e.input.charCodeAt(e.position + 1), c = e.line;
|
|
2804
|
+
if ((l === 63 || l === 58) && Ce(f))
|
|
2805
|
+
s || (qn(e, e.position, r.anchorStart, r.anchorEnd, r.tagStart, r.tagEnd, he.BLOCK), s = !0), l === 63 ? (i && ae(e), o = !0, i = !0) : (i || (ae(e), o = !0), i = !1), e.position += 1, a = !0;
|
|
2803
2806
|
else {
|
|
2804
2807
|
i && (ae(e), i = !1);
|
|
2805
2808
|
const E = He(e);
|
|
2806
|
-
if (!qe(e, n,
|
|
2807
|
-
if (e.line ===
|
|
2808
|
-
for (
|
|
2809
|
-
if (
|
|
2810
|
-
|
|
2809
|
+
if (!qe(e, n, Mn, !1, !0)) break;
|
|
2810
|
+
if (e.line === c) {
|
|
2811
|
+
for (l = e.input.charCodeAt(e.position); Ye(l); ) l = e.input.charCodeAt(++e.position);
|
|
2812
|
+
if (l === 58)
|
|
2813
|
+
l = e.input.charCodeAt(++e.position), Ce(l) || x(e, "a whitespace character is expected after the key-value separator within a block mapping"), s || (e.events.splice(E.eventsLength, 0, {
|
|
2811
2814
|
type: ee.MAPPING,
|
|
2812
2815
|
start: E.position,
|
|
2813
2816
|
anchorStart: r.anchorStart,
|
|
@@ -2823,45 +2826,45 @@ function Ot(e, t, n, r) {
|
|
|
2823
2826
|
else
|
|
2824
2827
|
return r.anchorStart !== H || r.tagStart !== H ? (Ue(e, E), !1) : !0;
|
|
2825
2828
|
}
|
|
2826
|
-
if (qe(e, t,
|
|
2829
|
+
if (qe(e, t, at, !0, a) && (a = !1), i || a && (ae(e), a = !1), re(e, !0), l = e.input.charCodeAt(e.position), (e.line === c || e.lineIndent > t) && l !== 0) x(e, "bad indentation of a mapping entry");
|
|
2827
2830
|
else if (e.lineIndent < t) break;
|
|
2828
2831
|
}
|
|
2829
2832
|
return o ? (i && ae(e), s && Me(e), !0) : !1;
|
|
2830
2833
|
}
|
|
2831
2834
|
function qe(e, t, n, r, i, o = !0) {
|
|
2832
2835
|
e.depth >= e.maxDepth && x(e, `nesting exceeded maxDepth (${e.maxDepth})`), e.depth++;
|
|
2833
|
-
let s = 1, a = !1,
|
|
2834
|
-
const
|
|
2835
|
-
let E = n ===
|
|
2836
|
+
let s = 1, a = !1, l = !1, f = null;
|
|
2837
|
+
const c = hn();
|
|
2838
|
+
let E = n === at || n === Hn, S = E;
|
|
2836
2839
|
const T = E;
|
|
2837
2840
|
if (r && re(e, !0) && (a = !0, e.lineIndent > t ? s = 1 : e.lineIndent === t ? s = 0 : s = -1), s === 1) for (; ; ) {
|
|
2838
2841
|
const C = e.input.charCodeAt(e.position), O = He(e);
|
|
2839
2842
|
if (a && s !== 1 && (C === 33 || C === 38)) break;
|
|
2840
|
-
if (a && T && (
|
|
2841
|
-
const
|
|
2842
|
-
if (
|
|
2843
|
+
if (a && T && (c.tagStart !== H || c.anchorStart !== H) && (C === 33 || C === 38)) {
|
|
2844
|
+
const $ = He(e), b = t + 1;
|
|
2845
|
+
if (It(e, e.position - e.lineStart, b, c) && e.events[$.eventsLength]?.type === ee.MAPPING)
|
|
2843
2846
|
return e.depth--, !0;
|
|
2844
|
-
Ue(e,
|
|
2847
|
+
Ue(e, $);
|
|
2845
2848
|
}
|
|
2846
|
-
if (a && (C === 33 &&
|
|
2849
|
+
if (a && (C === 33 && c.tagStart !== H || C === 38 && c.anchorStart !== H) || !ro(e, c, n === Ke) && !io(e, c)) break;
|
|
2847
2850
|
f === null && (f = O), re(e, !0) ? (a = !0, S = T, e.lineIndent > t ? s = 1 : e.lineIndent === t ? s = 0 : s = -1) : S = !1;
|
|
2848
2851
|
}
|
|
2849
|
-
if (S && (S = a || i), s === 1 || n ===
|
|
2850
|
-
const C = n === Ke || n ===
|
|
2851
|
-
if (s === 1) if (S && (
|
|
2852
|
+
if (S && (S = a || i), s === 1 || n === at) {
|
|
2853
|
+
const C = n === Ke || n === Mn ? t : t + 1, O = e.position - e.lineStart;
|
|
2854
|
+
if (s === 1) if (S && (mn(e, O, c) || It(e, O, C, c)) || fo(e, C, c)) l = !0;
|
|
2852
2855
|
else {
|
|
2853
|
-
const
|
|
2854
|
-
if (f !== null && o && T && !S &&
|
|
2855
|
-
const b = He(e),
|
|
2856
|
-
Ue(e, f),
|
|
2856
|
+
const $ = e.input.charCodeAt(e.position);
|
|
2857
|
+
if (f !== null && o && T && !S && $ !== 124 && $ !== 62) {
|
|
2858
|
+
const b = He(e), w = f.position - f.lineStart;
|
|
2859
|
+
Ue(e, f), It(e, w, C, hn()) && e.events[b.eventsLength]?.type === ee.MAPPING ? l = !0 : Ue(e, b);
|
|
2857
2860
|
}
|
|
2858
|
-
!
|
|
2861
|
+
!l && (E && lo(e, C, c) || so(e, C, c) || ao(e, C, c) || oo(e, c) || uo(e, C, n, c)) && (l = !0);
|
|
2859
2862
|
}
|
|
2860
|
-
else s === 0 && (
|
|
2863
|
+
else s === 0 && (l = S && mn(e, O, c));
|
|
2861
2864
|
}
|
|
2862
|
-
return E = E && !
|
|
2865
|
+
return E = E && !l, !l && (c.anchorStart !== H || c.tagStart !== H || E) && (We(e, H, H, c.anchorStart, c.anchorEnd, c.tagStart, c.tagEnd, N.PLAIN), l = !0), e.depth--, l || c.anchorStart !== H || c.tagStart !== H;
|
|
2863
2866
|
}
|
|
2864
|
-
function
|
|
2867
|
+
function po(e) {
|
|
2865
2868
|
if (e.lineIndent > 0 || e.input.charCodeAt(e.position) !== 37) return !1;
|
|
2866
2869
|
e.position++;
|
|
2867
2870
|
const t = e.position;
|
|
@@ -2874,7 +2877,7 @@ function fo(e) {
|
|
|
2874
2877
|
for (; e.input.charCodeAt(e.position) !== 0 && !ge(e.input.charCodeAt(e.position)); ) e.position++;
|
|
2875
2878
|
r.push(e.input.slice(i, e.position));
|
|
2876
2879
|
}
|
|
2877
|
-
if (J(e.input.charCodeAt(e.position)) &&
|
|
2880
|
+
if (J(e.input.charCodeAt(e.position)) && lt(e), n === "YAML") {
|
|
2878
2881
|
e.directives.some((o) => o.kind === "yaml") && x(e, "duplication of %YAML directive"), r.length !== 1 && x(e, "YAML directive accepts exactly one argument");
|
|
2879
2882
|
const i = /^([0-9]+)\.([0-9]+)$/.exec(r[0]);
|
|
2880
2883
|
i === null && x(e, "ill-formed argument of the YAML directive"), parseInt(i[1], 10) !== 1 && x(e, "unacceptable YAML version of the document"), e.directives.push({
|
|
@@ -2884,7 +2887,7 @@ function fo(e) {
|
|
|
2884
2887
|
} else if (n === "TAG") {
|
|
2885
2888
|
r.length !== 2 && x(e, "TAG directive accepts exactly two arguments");
|
|
2886
2889
|
const [i, o] = r;
|
|
2887
|
-
|
|
2890
|
+
Un.test(i) || x(e, "ill-formed tag handle (first argument) of the TAG directive"), Dn.call(e.tagHandlers, i) && x(e, `there is a previously declared suffix for "${i}" tag handle`), Xi.test(o) || x(e, "ill-formed tag prefix (second argument) of the TAG directive"), e.tagHandlers[i] = o, e.directives.push({
|
|
2888
2891
|
kind: "tag",
|
|
2889
2892
|
handle: i,
|
|
2890
2893
|
prefix: o
|
|
@@ -2892,10 +2895,10 @@ function fo(e) {
|
|
|
2892
2895
|
}
|
|
2893
2896
|
return !0;
|
|
2894
2897
|
}
|
|
2895
|
-
function
|
|
2898
|
+
function ho(e) {
|
|
2896
2899
|
e.directives = [], e.tagHandlers = /* @__PURE__ */ Object.create(null);
|
|
2897
2900
|
let t = !1;
|
|
2898
|
-
for (re(e, !0);
|
|
2901
|
+
for (re(e, !0); po(e); )
|
|
2899
2902
|
t = !0, re(e, !0);
|
|
2900
2903
|
let n = !1, r = !1, i = !0;
|
|
2901
2904
|
if (e.lineIndent === 0 && e.input.charCodeAt(e.position) === 45 && e.input.charCodeAt(e.position + 1) === 45 && e.input.charCodeAt(e.position + 2) === 45 && Ce(e.input.charCodeAt(e.position + 3))) {
|
|
@@ -2908,16 +2911,16 @@ function po(e) {
|
|
|
2908
2911
|
e.position += 3, re(e, !0);
|
|
2909
2912
|
return;
|
|
2910
2913
|
}
|
|
2911
|
-
if (
|
|
2914
|
+
if (zi(e, n, !1), qe(e, e.lineIndent - 1, at, !1, i, i) || ae(e), re(e, !0), e.position === e.lineStart && Ge(e) && (r = e.input.charCodeAt(e.position) === 46, r)) {
|
|
2912
2915
|
const a = e.line;
|
|
2913
2916
|
e.position += 3, re(e, !0), e.line === a && e.position < e.length && x(e, "end of the stream or a document separator is expected");
|
|
2914
2917
|
}
|
|
2915
2918
|
const s = e.events[o];
|
|
2916
|
-
s?.type === ee.DOCUMENT && (s.explicitEnd = r), Me(e), !r && e.position < e.length && !
|
|
2919
|
+
s?.type === ee.DOCUMENT && (s.explicitEnd = r), Me(e), !r && e.position < e.length && !Qt(e) && x(e, "end of the stream or a document separator is expected");
|
|
2917
2920
|
}
|
|
2918
|
-
function
|
|
2921
|
+
function go(e, t) {
|
|
2919
2922
|
const n = e.length, r = {
|
|
2920
|
-
...
|
|
2923
|
+
...jt,
|
|
2921
2924
|
...t,
|
|
2922
2925
|
input: `${e}\0`,
|
|
2923
2926
|
length: n,
|
|
@@ -2931,35 +2934,35 @@ function ho(e, t) {
|
|
|
2931
2934
|
tagHandlers: /* @__PURE__ */ Object.create(null),
|
|
2932
2935
|
events: []
|
|
2933
2936
|
}, i = e.indexOf("\0");
|
|
2934
|
-
for (i !== -1 &&
|
|
2937
|
+
for (i !== -1 && $e.throwAt(e, i, "null byte is not allowed in input", r.filename); r.position < r.length && (Wn(r), re(r, !0), !(r.position >= r.length)); ) {
|
|
2935
2938
|
const o = r.position;
|
|
2936
|
-
|
|
2939
|
+
ho(r), r.position === o && x(r, "can not read a document");
|
|
2937
2940
|
}
|
|
2938
2941
|
return r.events;
|
|
2939
2942
|
}
|
|
2940
|
-
var
|
|
2941
|
-
...
|
|
2942
|
-
...
|
|
2943
|
+
var mo = {
|
|
2944
|
+
...jt,
|
|
2945
|
+
...Yt
|
|
2943
2946
|
};
|
|
2944
|
-
function
|
|
2947
|
+
function Ao(e, t = {}) {
|
|
2945
2948
|
const n = {
|
|
2946
|
-
...
|
|
2949
|
+
...mo,
|
|
2947
2950
|
...t
|
|
2948
|
-
}, r = String(e), i = Object.keys(
|
|
2949
|
-
return
|
|
2950
|
-
|
|
2951
|
+
}, r = String(e), i = Object.keys(jt), o = Object.keys(Yt);
|
|
2952
|
+
return Wi(go(r, kt(n, i)), {
|
|
2953
|
+
...kt(n, o),
|
|
2951
2954
|
source: r
|
|
2952
2955
|
});
|
|
2953
2956
|
}
|
|
2954
|
-
function
|
|
2957
|
+
function Eo(e, t, n) {
|
|
2955
2958
|
let r = null;
|
|
2956
2959
|
typeof t == "function" ? r = t : t !== null && typeof t == "object" && (n = t);
|
|
2957
|
-
const i =
|
|
2960
|
+
const i = Ao(e, n);
|
|
2958
2961
|
if (r === null) return i;
|
|
2959
2962
|
for (const o of i) r(o);
|
|
2960
2963
|
}
|
|
2961
|
-
var
|
|
2962
|
-
function
|
|
2964
|
+
var we = /* @__PURE__ */ Symbol("INVALID");
|
|
2965
|
+
function So(e) {
|
|
2963
2966
|
const t = new Set([
|
|
2964
2967
|
e.defaultScalarTag,
|
|
2965
2968
|
e.defaultSequenceTag,
|
|
@@ -2980,7 +2983,7 @@ function Eo(e) {
|
|
|
2980
2983
|
}))
|
|
2981
2984
|
];
|
|
2982
2985
|
}
|
|
2983
|
-
function
|
|
2986
|
+
function _o(e, t) {
|
|
2984
2987
|
for (let n = 0, r = e.representTypes.length; n < r; n += 1) {
|
|
2985
2988
|
const { tag: i, implicitTag: o } = e.representTypes[n];
|
|
2986
2989
|
if (i.identify(t)) {
|
|
@@ -2994,7 +2997,7 @@ function So(e, t) {
|
|
|
2994
2997
|
}
|
|
2995
2998
|
return null;
|
|
2996
2999
|
}
|
|
2997
|
-
function
|
|
3000
|
+
function ze(e, t) {
|
|
2998
3001
|
if (!e.noRefs && t !== null && typeof t == "object") {
|
|
2999
3002
|
const f = e.refs.get(t);
|
|
3000
3003
|
if (f)
|
|
@@ -3003,12 +3006,12 @@ function Xe(e, t) {
|
|
|
3003
3006
|
anchor: f.anchor
|
|
3004
3007
|
};
|
|
3005
3008
|
}
|
|
3006
|
-
const n =
|
|
3009
|
+
const n = _o(e, t);
|
|
3007
3010
|
if (!n) {
|
|
3008
|
-
if (t === void 0 || e.skipInvalid) return
|
|
3009
|
-
throw new
|
|
3011
|
+
if (t === void 0 || e.skipInvalid) return we;
|
|
3012
|
+
throw new $e(`unacceptable kind of an object to dump ${Object.prototype.toString.call(t)}`);
|
|
3010
3013
|
}
|
|
3011
|
-
const { tag: r, tagName: i, implicitTag: o } = n, s = o ? i :
|
|
3014
|
+
const { tag: r, tagName: i, implicitTag: o } = n, s = o ? i : Fn(i);
|
|
3012
3015
|
if (r.nodeKind === "scalar") return {
|
|
3013
3016
|
kind: "scalar",
|
|
3014
3017
|
tag: s,
|
|
@@ -3017,61 +3020,61 @@ function Xe(e, t) {
|
|
|
3017
3020
|
value: r.represent(t)
|
|
3018
3021
|
};
|
|
3019
3022
|
if (r.nodeKind === "sequence") {
|
|
3020
|
-
const f = r.represent(t),
|
|
3023
|
+
const f = r.represent(t), c = {
|
|
3021
3024
|
kind: "sequence",
|
|
3022
3025
|
tag: s,
|
|
3023
3026
|
tagged: !o,
|
|
3024
3027
|
style: he.BLOCK,
|
|
3025
3028
|
items: []
|
|
3026
3029
|
};
|
|
3027
|
-
e.noRefs || e.refs.set(t,
|
|
3030
|
+
e.noRefs || e.refs.set(t, c);
|
|
3028
3031
|
for (let E = 0, S = f.length; E < S; E += 1) {
|
|
3029
|
-
let T =
|
|
3030
|
-
T ===
|
|
3032
|
+
let T = ze(e, f[E]);
|
|
3033
|
+
T === we && f[E] === void 0 && (T = ze(e, null)), T !== we && c.items.push(T);
|
|
3031
3034
|
}
|
|
3032
|
-
return
|
|
3035
|
+
return c;
|
|
3033
3036
|
}
|
|
3034
|
-
const a = r.represent(t),
|
|
3037
|
+
const a = r.represent(t), l = {
|
|
3035
3038
|
kind: "mapping",
|
|
3036
3039
|
tag: s,
|
|
3037
3040
|
tagged: !o,
|
|
3038
3041
|
style: he.BLOCK,
|
|
3039
3042
|
items: []
|
|
3040
3043
|
};
|
|
3041
|
-
e.noRefs || e.refs.set(t,
|
|
3042
|
-
for (const [f,
|
|
3043
|
-
const E =
|
|
3044
|
-
if (E ===
|
|
3045
|
-
const S =
|
|
3046
|
-
S !==
|
|
3044
|
+
e.noRefs || e.refs.set(t, l);
|
|
3045
|
+
for (const [f, c] of a) {
|
|
3046
|
+
const E = ze(e, f);
|
|
3047
|
+
if (E === we) continue;
|
|
3048
|
+
const S = ze(e, c);
|
|
3049
|
+
S !== we && l.items.push({
|
|
3047
3050
|
key: E,
|
|
3048
3051
|
value: S
|
|
3049
3052
|
});
|
|
3050
3053
|
}
|
|
3051
|
-
return
|
|
3054
|
+
return l;
|
|
3052
3055
|
}
|
|
3053
|
-
function
|
|
3054
|
-
const r =
|
|
3055
|
-
representTypes:
|
|
3056
|
+
function yo(e, t, n = {}) {
|
|
3057
|
+
const r = ze({
|
|
3058
|
+
representTypes: So(t),
|
|
3056
3059
|
noRefs: n.noRefs ?? !1,
|
|
3057
3060
|
skipInvalid: n.skipInvalid ?? !1,
|
|
3058
3061
|
refs: /* @__PURE__ */ new Map(),
|
|
3059
3062
|
refCounter: 0
|
|
3060
3063
|
}, e);
|
|
3061
3064
|
return [{
|
|
3062
|
-
contents: r ===
|
|
3065
|
+
contents: r === we ? null : r,
|
|
3063
3066
|
directives: []
|
|
3064
3067
|
}];
|
|
3065
3068
|
}
|
|
3066
|
-
var
|
|
3067
|
-
function
|
|
3069
|
+
var Co = /* @__PURE__ */ Symbol("visit:break"), jn = /* @__PURE__ */ Symbol("visit:skip");
|
|
3070
|
+
function it(e, t, n) {
|
|
3068
3071
|
const r = t(e, n);
|
|
3069
|
-
if (r ===
|
|
3070
|
-
if (r ===
|
|
3072
|
+
if (r === Co) return !0;
|
|
3073
|
+
if (r === jn) return !1;
|
|
3071
3074
|
const i = n.depth + 1;
|
|
3072
3075
|
switch (e.kind) {
|
|
3073
3076
|
case "sequence":
|
|
3074
|
-
for (const o of e.items) if (
|
|
3077
|
+
for (const o of e.items) if (it(o, t, {
|
|
3075
3078
|
depth: i,
|
|
3076
3079
|
parent: e,
|
|
3077
3080
|
isKey: !1
|
|
@@ -3079,11 +3082,11 @@ function rt(e, t, n) {
|
|
|
3079
3082
|
break;
|
|
3080
3083
|
case "mapping":
|
|
3081
3084
|
for (const { key: o, value: s } of e.items)
|
|
3082
|
-
if (
|
|
3085
|
+
if (it(o, t, {
|
|
3083
3086
|
depth: i,
|
|
3084
3087
|
parent: e,
|
|
3085
3088
|
isKey: !0
|
|
3086
|
-
}) ||
|
|
3089
|
+
}) || it(s, t, {
|
|
3087
3090
|
depth: i,
|
|
3088
3091
|
parent: e,
|
|
3089
3092
|
isKey: !1
|
|
@@ -3092,46 +3095,46 @@ function rt(e, t, n) {
|
|
|
3092
3095
|
}
|
|
3093
3096
|
return !1;
|
|
3094
3097
|
}
|
|
3095
|
-
function
|
|
3096
|
-
for (const n of e) if (n.contents &&
|
|
3098
|
+
function An(e, t) {
|
|
3099
|
+
for (const n of e) if (n.contents && it(n.contents, t, {
|
|
3097
3100
|
depth: 0,
|
|
3098
3101
|
parent: null,
|
|
3099
3102
|
isKey: !1
|
|
3100
3103
|
})) return;
|
|
3101
3104
|
}
|
|
3102
|
-
function
|
|
3105
|
+
function mt(e, t) {
|
|
3103
3106
|
return (e & 1 << t) !== 0;
|
|
3104
3107
|
}
|
|
3105
|
-
var
|
|
3106
|
-
applyQuoteFlowKeysOption:
|
|
3107
|
-
doubleQuoteForInvisibles:
|
|
3108
|
-
doubleQuoteWhitespaceOnly:
|
|
3109
|
-
applyForceQuotesOption:
|
|
3110
|
-
tryLongOrMultilineAsBlock:
|
|
3111
|
-
quoteInvalidPlain:
|
|
3112
|
-
fallbackToDoubleQuoted:
|
|
3108
|
+
var En = {
|
|
3109
|
+
applyQuoteFlowKeysOption: To,
|
|
3110
|
+
doubleQuoteForInvisibles: vo,
|
|
3111
|
+
doubleQuoteWhitespaceOnly: Lo,
|
|
3112
|
+
applyForceQuotesOption: Ro,
|
|
3113
|
+
tryLongOrMultilineAsBlock: xo,
|
|
3114
|
+
quoteInvalidPlain: Oo,
|
|
3115
|
+
fallbackToDoubleQuoted: bo
|
|
3113
3116
|
};
|
|
3114
|
-
function
|
|
3115
|
-
return e.presenterOptions.quoteStyle === "single" &&
|
|
3117
|
+
function Qn(e) {
|
|
3118
|
+
return e.presenterOptions.quoteStyle === "single" && mt(e.allowedStylesMask, N.SINGLE_QUOTED) ? N.SINGLE_QUOTED : N.DOUBLE_QUOTED;
|
|
3116
3119
|
}
|
|
3117
|
-
function
|
|
3120
|
+
function To(e) {
|
|
3118
3121
|
e.presenterOptions.quoteFlowKeys && (!e.isKey || !e.flowOnly || e.style !== N.PLAIN || (e.style = N.DOUBLE_QUOTED));
|
|
3119
3122
|
}
|
|
3120
|
-
function
|
|
3123
|
+
function vo(e) {
|
|
3121
3124
|
e.style === N.PLAIN && /[\t\x7F-\xA0\u2028\u2029\uFEFF\uFFFE\uFFFF]/.test(e.node.value) && (e.style = N.DOUBLE_QUOTED);
|
|
3122
3125
|
}
|
|
3123
|
-
function
|
|
3126
|
+
function Lo(e) {
|
|
3124
3127
|
e.style === N.PLAIN && /^\s+$/.test(e.node.value) && (e.style = N.DOUBLE_QUOTED);
|
|
3125
3128
|
}
|
|
3126
|
-
function
|
|
3129
|
+
function Ro(e) {
|
|
3127
3130
|
e.presenterOptions.forceQuotes && (e.isKey || e.style !== N.PLAIN || e.node.tag === e.presenterOptions.schema.defaultScalarTag.tagName && (e.style = e.node.value.includes(`
|
|
3128
|
-
`) ? N.DOUBLE_QUOTED :
|
|
3131
|
+
`) ? N.DOUBLE_QUOTED : Qn(e)));
|
|
3129
3132
|
}
|
|
3130
|
-
function
|
|
3133
|
+
function xo(e) {
|
|
3131
3134
|
if (e.style !== N.PLAIN || e.isKey) return;
|
|
3132
3135
|
const t = e.node.value, n = t.indexOf(`
|
|
3133
3136
|
`) !== -1;
|
|
3134
|
-
if (!
|
|
3137
|
+
if (!mt(e.allowedStylesMask, N.LITERAL_BLOCK)) {
|
|
3135
3138
|
n && (e.style = N.DOUBLE_QUOTED);
|
|
3136
3139
|
return;
|
|
3137
3140
|
}
|
|
@@ -3144,93 +3147,93 @@ function Ro(e) {
|
|
|
3144
3147
|
let o = 0, s = !1;
|
|
3145
3148
|
for (; o <= t.length; ) {
|
|
3146
3149
|
let a = t.length;
|
|
3147
|
-
const
|
|
3150
|
+
const l = t.indexOf(`
|
|
3148
3151
|
`, o);
|
|
3149
|
-
|
|
3152
|
+
l !== -1 && (a = l);
|
|
3150
3153
|
const f = t.slice(o, a);
|
|
3151
|
-
if (f.length > i && f[0] !== " " && / [^ \t]/.test(f) && (s = !0),
|
|
3152
|
-
o =
|
|
3154
|
+
if (f.length > i && f[0] !== " " && / [^ \t]/.test(f) && (s = !0), l === -1) break;
|
|
3155
|
+
o = l + 1;
|
|
3153
3156
|
}
|
|
3154
3157
|
s ? e.style = N.FOLDED_BLOCK : n && (e.style = N.LITERAL_BLOCK);
|
|
3155
3158
|
}
|
|
3156
|
-
function xo(e) {
|
|
3157
|
-
e.style === N.PLAIN && !ht(e.allowedStylesMask, N.PLAIN) && (e.style = jn(e));
|
|
3158
|
-
}
|
|
3159
3159
|
function Oo(e) {
|
|
3160
|
-
|
|
3160
|
+
e.style === N.PLAIN && !mt(e.allowedStylesMask, N.PLAIN) && (e.style = Qn(e));
|
|
3161
|
+
}
|
|
3162
|
+
function bo(e) {
|
|
3163
|
+
mt(e.allowedStylesMask, e.style) || (e.style = N.DOUBLE_QUOTED);
|
|
3161
3164
|
}
|
|
3162
3165
|
function Ve(e, t) {
|
|
3163
3166
|
return e | 1 << t;
|
|
3164
3167
|
}
|
|
3165
|
-
var
|
|
3166
|
-
function
|
|
3168
|
+
var Io = "[\\x09\\x0A\\x0D\\x20-\\x7E\\x85\\xA0-\\uD7FF\\uE000-\\uFFFD\\u{10000}-\\u{10FFFF}]", No = "[\\n\\r]", wo = "\\uFEFF", Vt = "[ \\t]", Vn = `(?:(?!(?:${No}|${wo}))${Io})`, At = `(?:(?!${Vt})${Vn})`, Xn = "[\\x09\\x20-\\uD7FF\\uE000-\\uFFFF\\u{10000}-\\u{10FFFF}]", zn = "[-?:,\\[\\]{}#&*!|>'\"%@`]", $o = "[,\\[\\]{}]", Bt = At, Dt = `(?:(?!${$o})${At})`, ko = `(?:(?:(?!${zn})${At})|[?:-](?=${Bt}))`, Fo = `(?:(?:(?!${zn})${At})|[?:-](?=${Dt}))`, Zn = `(?:(?:(?![:#])${Bt})|:(?=${Bt}))#*`, Jn = `(?:(?:(?![:#])${Dt})|:(?=${Dt}))#*`, er = `(?:${Vt}*${Zn})*`, tr = `(?:${Vt}*${Jn})*`, nr = `${ko}#*${er}`, rr = `${Fo}#*${tr}`, Po = nr, Bo = rr, Do = `\\n+${Zn}${er}`, Mo = `\\n+${Jn}${tr}`, Ho = `${nr}(?:${Do})*`, Uo = `${rr}(?:${Mo})*`, Ko = new RegExp(`^(?:${Ho})$`, "u"), Go = new RegExp(`^(?:${Uo})$`, "u"), qo = new RegExp(`^(?:${Po})$`, "u"), Wo = new RegExp(`^(?:${Bo})$`, "u"), Yo = new RegExp(`^(?:${Xn})*$`, "u"), jo = new RegExp(`^(?:${Xn}|\\n)*$`, "u"), Qo = new RegExp(`^(?:${Vn}|\\n)*$`, "u"), Vo = /^(?:---|\.\.\.)(?=$|[ \t\n\r])/, Xt = /^(?:---|\.\.\.)(?=$|[ \t\n\r])/m;
|
|
3169
|
+
function Xo(e) {
|
|
3167
3170
|
const t = e.node.value;
|
|
3168
3171
|
if (t !== "") {
|
|
3169
|
-
if (!(e.isKey ? e.flowOnly ?
|
|
3172
|
+
if (!(e.isKey ? e.flowOnly ? Wo : qo : e.flowOnly ? Go : Ko).test(t) || e.shiftOfFirstLine === 0 && Vo.test(t)) return !1;
|
|
3170
3173
|
if (e.shiftOfContent === 0) {
|
|
3171
3174
|
const r = t.indexOf(`
|
|
3172
3175
|
`);
|
|
3173
3176
|
if (r !== -1) {
|
|
3174
3177
|
const i = t.slice(r + 1);
|
|
3175
|
-
if (
|
|
3178
|
+
if (Xt.test(i)) return !1;
|
|
3176
3179
|
}
|
|
3177
3180
|
}
|
|
3178
3181
|
}
|
|
3179
3182
|
const n = e.presenterOptions.schema.resolveImplicitScalarTag(t).tag.tagName;
|
|
3180
3183
|
return !(!e.node.tagged && n !== e.node.tag || !e.node.tagged && t === "=" && n === e.presenterOptions.schema.defaultScalarTag.tagName);
|
|
3181
3184
|
}
|
|
3182
|
-
function
|
|
3185
|
+
function zo(e) {
|
|
3183
3186
|
const t = e.node.value;
|
|
3184
|
-
if (!(e.isKey ?
|
|
3187
|
+
if (!(e.isKey ? Yo : jo).test(t) || /[ \t]\n|\n[ \t]/.test(t)) return !1;
|
|
3185
3188
|
if (!e.isKey && e.shiftOfContent === 0) {
|
|
3186
3189
|
const n = t.indexOf(`
|
|
3187
3190
|
`);
|
|
3188
|
-
if (n !== -1 &&
|
|
3191
|
+
if (n !== -1 && Xt.test(t.slice(n + 1))) return !1;
|
|
3189
3192
|
}
|
|
3190
3193
|
return !0;
|
|
3191
3194
|
}
|
|
3192
|
-
function
|
|
3193
|
-
if (e.flowOnly || !
|
|
3195
|
+
function Zo(e) {
|
|
3196
|
+
if (e.flowOnly || !Qo.test(e.node.value)) return !1;
|
|
3194
3197
|
const t = e.shiftOfContent - e.shiftOfParent;
|
|
3195
|
-
return !(t < 1 || t > 9 && /^\n* /.test(e.node.value) || e.shiftOfContent === 0 &&
|
|
3198
|
+
return !(t < 1 || t > 9 && /^\n* /.test(e.node.value) || e.shiftOfContent === 0 && Xt.test(e.node.value));
|
|
3196
3199
|
}
|
|
3197
|
-
function
|
|
3200
|
+
function Jo(e) {
|
|
3198
3201
|
let t = Ve(0, N.DOUBLE_QUOTED);
|
|
3199
|
-
|
|
3202
|
+
Xo(e) && (t = Ve(t, N.PLAIN)), zo(e) && (t = Ve(t, N.SINGLE_QUOTED)), Zo(e) && (t = Ve(Ve(t, N.LITERAL_BLOCK), N.FOLDED_BLOCK)), e.allowedStylesMask = t;
|
|
3200
3203
|
}
|
|
3201
|
-
function
|
|
3204
|
+
function es(e) {
|
|
3202
3205
|
switch (e.style) {
|
|
3203
3206
|
case N.PLAIN:
|
|
3204
|
-
return es(e);
|
|
3205
|
-
case N.SINGLE_QUOTED:
|
|
3206
3207
|
return ts(e);
|
|
3207
|
-
case N.
|
|
3208
|
+
case N.SINGLE_QUOTED:
|
|
3208
3209
|
return ns(e);
|
|
3209
|
-
case N.
|
|
3210
|
+
case N.LITERAL_BLOCK:
|
|
3210
3211
|
return rs(e);
|
|
3211
|
-
case N.
|
|
3212
|
+
case N.FOLDED_BLOCK:
|
|
3212
3213
|
return is(e);
|
|
3214
|
+
case N.DOUBLE_QUOTED:
|
|
3215
|
+
return os(e);
|
|
3213
3216
|
}
|
|
3214
3217
|
}
|
|
3215
|
-
function es(e) {
|
|
3216
|
-
return rr(e.node.value, e.shiftOfContent);
|
|
3217
|
-
}
|
|
3218
3218
|
function ts(e) {
|
|
3219
|
-
return
|
|
3219
|
+
return ir(e.node.value, e.shiftOfContent);
|
|
3220
3220
|
}
|
|
3221
3221
|
function ns(e) {
|
|
3222
|
-
|
|
3223
|
-
return "|" + or(t, e.shiftOfParent, e.shiftOfContent) + sr(ir(t, e.shiftOfContent));
|
|
3222
|
+
return `'${ir(e.node.value, e.shiftOfContent).replace(/'/g, "''")}'`;
|
|
3224
3223
|
}
|
|
3225
3224
|
function rs(e) {
|
|
3225
|
+
const t = e.node.value;
|
|
3226
|
+
return "|" + sr(t, e.shiftOfParent, e.shiftOfContent) + ar(or(t, e.shiftOfContent));
|
|
3227
|
+
}
|
|
3228
|
+
function is(e) {
|
|
3226
3229
|
const t = e.node.value, n = e.presenterOptions.lineWidth;
|
|
3227
3230
|
let r = 1 / 0;
|
|
3228
|
-
return n !== -1 && (r = Math.max(Math.min(n, 40), n - e.shiftOfContent)), ">" +
|
|
3231
|
+
return n !== -1 && (r = Math.max(Math.min(n, 40), n - e.shiftOfContent)), ">" + sr(t, e.shiftOfParent, e.shiftOfContent) + ar(or(as(t, r), e.shiftOfContent));
|
|
3229
3232
|
}
|
|
3230
|
-
function
|
|
3231
|
-
return `"${
|
|
3233
|
+
function os(e) {
|
|
3234
|
+
return `"${us(e.node.value)}"`;
|
|
3232
3235
|
}
|
|
3233
|
-
function
|
|
3236
|
+
function ir(e, t) {
|
|
3234
3237
|
let n = e.indexOf(`
|
|
3235
3238
|
`);
|
|
3236
3239
|
if (n === -1) return e;
|
|
@@ -3240,13 +3243,13 @@ function rr(e, t) {
|
|
|
3240
3243
|
o.lastIndex = n;
|
|
3241
3244
|
let s;
|
|
3242
3245
|
for (; s = o.exec(e); ) {
|
|
3243
|
-
const a = s[1].length,
|
|
3246
|
+
const a = s[1].length, l = s[2];
|
|
3244
3247
|
i += `
|
|
3245
|
-
`.repeat(a + 1) + r +
|
|
3248
|
+
`.repeat(a + 1) + r + l;
|
|
3246
3249
|
}
|
|
3247
3250
|
return i;
|
|
3248
3251
|
}
|
|
3249
|
-
function
|
|
3252
|
+
function or(e, t) {
|
|
3250
3253
|
const n = " ".repeat(t);
|
|
3251
3254
|
let r = 0, i = "";
|
|
3252
3255
|
const o = e.length;
|
|
@@ -3259,50 +3262,50 @@ function ir(e, t) {
|
|
|
3259
3262
|
}
|
|
3260
3263
|
return i;
|
|
3261
3264
|
}
|
|
3262
|
-
function
|
|
3265
|
+
function ss(e) {
|
|
3263
3266
|
return /^\n* /.test(e);
|
|
3264
3267
|
}
|
|
3265
|
-
function
|
|
3266
|
-
const r =
|
|
3268
|
+
function sr(e, t, n) {
|
|
3269
|
+
const r = ss(e) ? String(n - t) : "", i = e[e.length - 1] === `
|
|
3267
3270
|
`;
|
|
3268
3271
|
return `${r}${i && (e[e.length - 2] === `
|
|
3269
3272
|
` || e === `
|
|
3270
3273
|
`) ? "+" : i ? "" : "-"}
|
|
3271
3274
|
`;
|
|
3272
3275
|
}
|
|
3273
|
-
function
|
|
3276
|
+
function ar(e) {
|
|
3274
3277
|
return e[e.length - 1] === `
|
|
3275
3278
|
` ? e.slice(0, -1) : e;
|
|
3276
3279
|
}
|
|
3277
|
-
function
|
|
3280
|
+
function Mt(e) {
|
|
3278
3281
|
return e === " " || e === " ";
|
|
3279
3282
|
}
|
|
3280
|
-
function
|
|
3281
|
-
if (e === "" ||
|
|
3283
|
+
function Sn(e, t) {
|
|
3284
|
+
if (e === "" || Mt(e[0])) return e;
|
|
3282
3285
|
const n = / [^ \t]/g;
|
|
3283
|
-
let r, i = 0, o, s = 0, a = 0,
|
|
3286
|
+
let r, i = 0, o, s = 0, a = 0, l = "";
|
|
3284
3287
|
for (; r = n.exec(e); )
|
|
3285
|
-
a = r.index, a - i > t && (o = s > i ? s : a,
|
|
3288
|
+
a = r.index, a - i > t && (o = s > i ? s : a, l += `
|
|
3286
3289
|
${e.slice(i, o)}`, i = o + 1), s = a;
|
|
3287
|
-
return
|
|
3288
|
-
`, e.length - i > t && s > i ?
|
|
3289
|
-
${e.slice(s + 1)}` :
|
|
3290
|
+
return l += `
|
|
3291
|
+
`, e.length - i > t && s > i ? l += `${e.slice(i, s)}
|
|
3292
|
+
${e.slice(s + 1)}` : l += e.slice(i), l.slice(1);
|
|
3290
3293
|
}
|
|
3291
|
-
function
|
|
3294
|
+
function as(e, t) {
|
|
3292
3295
|
const n = /(\n+)([^\n]*)/g;
|
|
3293
3296
|
let r = e.indexOf(`
|
|
3294
3297
|
`);
|
|
3295
3298
|
r === -1 && (r = e.length), n.lastIndex = r;
|
|
3296
|
-
let i =
|
|
3297
|
-
` ||
|
|
3299
|
+
let i = Sn(e.slice(0, r), t), o = e[0] === `
|
|
3300
|
+
` || Mt(e[0]), s, a;
|
|
3298
3301
|
for (; a = n.exec(e); ) {
|
|
3299
|
-
const
|
|
3300
|
-
s = f !== "" &&
|
|
3301
|
-
` : "") +
|
|
3302
|
+
const l = a[1], f = a[2];
|
|
3303
|
+
s = f !== "" && Mt(f[0]), i += l + (!o && !s && f !== "" ? `
|
|
3304
|
+
` : "") + Sn(f, t), o = s;
|
|
3302
3305
|
}
|
|
3303
3306
|
return i;
|
|
3304
3307
|
}
|
|
3305
|
-
var
|
|
3308
|
+
var ls = /["\\\x00-\x1F\x7F-\xA0\u2028\u2029\uD800-\uDFFF\uFEFF\uFFFE\uFFFF]/gu;
|
|
3306
3309
|
function cs(e) {
|
|
3307
3310
|
switch (e) {
|
|
3308
3311
|
case "\0":
|
|
@@ -3340,10 +3343,10 @@ function cs(e) {
|
|
|
3340
3343
|
const t = e.charCodeAt(0), n = t.toString(16).toUpperCase();
|
|
3341
3344
|
return t <= 255 ? `\\x${"0".repeat(2 - n.length)}${n}` : `\\u${"0".repeat(4 - n.length)}${n}`;
|
|
3342
3345
|
}
|
|
3343
|
-
function
|
|
3344
|
-
return e.replace(
|
|
3346
|
+
function us(e) {
|
|
3347
|
+
return e.replace(ls, cs);
|
|
3345
3348
|
}
|
|
3346
|
-
var ct = 10,
|
|
3349
|
+
var ct = 10, zt = {
|
|
3347
3350
|
indent: 2,
|
|
3348
3351
|
seqNoIndent: !1,
|
|
3349
3352
|
seqInlineFirst: !0,
|
|
@@ -3354,15 +3357,15 @@ var ct = 10, Vt = {
|
|
|
3354
3357
|
quoteFlowKeys: !1,
|
|
3355
3358
|
quoteStyle: "single",
|
|
3356
3359
|
forceQuotes: !1,
|
|
3357
|
-
scalarStyleRules: Object.keys(
|
|
3360
|
+
scalarStyleRules: Object.keys(En).map((e) => Reflect.get(En, e)),
|
|
3358
3361
|
tagBeforeAnchor: !1
|
|
3359
3362
|
};
|
|
3360
|
-
function us(e) {
|
|
3361
|
-
return e.tagged ? e.tag : kn(e.tag);
|
|
3362
|
-
}
|
|
3363
3363
|
function fs(e) {
|
|
3364
|
+
return e.tagged ? e.tag : Fn(e.tag);
|
|
3365
|
+
}
|
|
3366
|
+
function ps(e) {
|
|
3364
3367
|
const t = {
|
|
3365
|
-
...
|
|
3368
|
+
...zt,
|
|
3366
3369
|
...e
|
|
3367
3370
|
};
|
|
3368
3371
|
return t.flowSkipColonSpace && (t.quoteFlowKeys = !0), {
|
|
@@ -3371,11 +3374,11 @@ function fs(e) {
|
|
|
3371
3374
|
openEnded: !1
|
|
3372
3375
|
};
|
|
3373
3376
|
}
|
|
3374
|
-
function
|
|
3377
|
+
function Ht(e, t) {
|
|
3375
3378
|
return `
|
|
3376
3379
|
${" ".repeat(e.indent * t)}`;
|
|
3377
3380
|
}
|
|
3378
|
-
function
|
|
3381
|
+
function ds(e, t, n, r, i, o) {
|
|
3379
3382
|
return {
|
|
3380
3383
|
node: t,
|
|
3381
3384
|
parent: n,
|
|
@@ -3390,7 +3393,7 @@ function ps(e, t, n, r, i, o) {
|
|
|
3390
3393
|
style: t.style
|
|
3391
3394
|
};
|
|
3392
3395
|
}
|
|
3393
|
-
function
|
|
3396
|
+
function hs(e, t, n) {
|
|
3394
3397
|
let r = "";
|
|
3395
3398
|
for (let o = 0, s = n.items.length; o < s; o += 1) {
|
|
3396
3399
|
const a = Te(e, t, n.items[o], n, {}).text;
|
|
@@ -3399,7 +3402,7 @@ function ds(e, t, n) {
|
|
|
3399
3402
|
const i = e.flowBracketPadding && n.items.length > 0 ? " " : "";
|
|
3400
3403
|
return `[${i}${r}${i}]`;
|
|
3401
3404
|
}
|
|
3402
|
-
function
|
|
3405
|
+
function _n(e, t, n, r) {
|
|
3403
3406
|
let i = "";
|
|
3404
3407
|
for (let o = 0, s = n.items.length; o < s; o += 1) {
|
|
3405
3408
|
const a = Te(e, t + 1, n.items[o], n, {
|
|
@@ -3407,47 +3410,47 @@ function Sn(e, t, n, r) {
|
|
|
3407
3410
|
compact: e.seqInlineFirst,
|
|
3408
3411
|
isblockseq: !0
|
|
3409
3412
|
}).text;
|
|
3410
|
-
(!r || i !== "") && (i +=
|
|
3413
|
+
(!r || i !== "") && (i += Ht(e, t)), a === "" || ct === a.charCodeAt(0) ? i += "-" : i += "- ", i += a;
|
|
3411
3414
|
}
|
|
3412
3415
|
return i;
|
|
3413
3416
|
}
|
|
3414
|
-
function
|
|
3417
|
+
function gs(e, t, n) {
|
|
3415
3418
|
let r = "";
|
|
3416
3419
|
for (const { key: o, value: s } of n.items) {
|
|
3417
3420
|
let a = "";
|
|
3418
3421
|
r !== "" && (a += `,${e.flowSkipCommaSpace ? "" : " "}`);
|
|
3419
|
-
const
|
|
3420
|
-
a += `${f}${T}:${E}${
|
|
3422
|
+
const l = Te(e, t, o, n, { iskey: !0 }), f = l.text, c = Te(e, t, s, n, {}).text, E = e.flowSkipColonSpace || c === "" ? "" : " ", S = o.kind === "scalar" && l.noBody && (o.tagged || o.anchor !== void 0), T = o.kind === "alias" || S ? " " : "";
|
|
3423
|
+
a += `${f}${T}:${E}${c}`, r += a;
|
|
3421
3424
|
}
|
|
3422
3425
|
const i = e.flowBracketPadding && r !== "" ? " " : "";
|
|
3423
3426
|
return `{${i}${r}${i}}`;
|
|
3424
3427
|
}
|
|
3425
|
-
function
|
|
3428
|
+
function ms(e, t, n, r) {
|
|
3426
3429
|
let i = "";
|
|
3427
3430
|
for (let o = 0, s = n.items.length; o < s; o += 1) {
|
|
3428
3431
|
let a = "";
|
|
3429
|
-
(!r || i !== "") && (a +=
|
|
3430
|
-
const { key:
|
|
3432
|
+
(!r || i !== "") && (a += Ht(e, t));
|
|
3433
|
+
const { key: l, value: f } = n.items[o], c = (l.kind === "mapping" || l.kind === "sequence") && l.style === he.BLOCK && l.items.length !== 0 || l.kind === "scalar" && (l.style === N.LITERAL_BLOCK || l.style === N.FOLDED_BLOCK), E = c ? Te(e, t + 1, l, n, {
|
|
3431
3434
|
block: !0,
|
|
3432
3435
|
compact: !0,
|
|
3433
|
-
isblockseq: !
|
|
3434
|
-
}) : Te(e, t + 1,
|
|
3436
|
+
isblockseq: !Ut(e, l, t + 1)
|
|
3437
|
+
}) : Te(e, t + 1, l, n, {
|
|
3435
3438
|
block: !0,
|
|
3436
3439
|
compact: !0,
|
|
3437
3440
|
iskey: !0
|
|
3438
|
-
}), S = E.text, T =
|
|
3439
|
-
`) !== -1, C = S.length > 1024 && /^[\s\S]{1025}/u.test(S), O =
|
|
3440
|
-
O && (S && ct === S.charCodeAt(0) ? a += "?" : a += "? "), a += S, O && (a +=
|
|
3441
|
-
const
|
|
3441
|
+
}), S = E.text, T = l.kind === "scalar" && l.value.indexOf(`
|
|
3442
|
+
`) !== -1, C = S.length > 1024 && /^[\s\S]{1025}/u.test(S), O = c || T || C;
|
|
3443
|
+
O && (S && ct === S.charCodeAt(0) ? a += "?" : a += "? "), a += S, O && (a += Ht(e, t));
|
|
3444
|
+
const $ = Te(e, t + 1, f, n, {
|
|
3442
3445
|
block: !0,
|
|
3443
3446
|
compact: O,
|
|
3444
|
-
isblockseq: O && !
|
|
3445
|
-
}).text, b =
|
|
3446
|
-
|
|
3447
|
+
isblockseq: O && !Ut(e, f, t + 1)
|
|
3448
|
+
}).text, b = l.kind === "scalar" && E.noBody && (l.tagged || l.anchor !== void 0), w = !O && (l.kind === "alias" || b) ? " " : "";
|
|
3449
|
+
$ === "" || ct === $.charCodeAt(0) ? a += `${w}:` : a += `${w}: `, a += $, i += a;
|
|
3447
3450
|
}
|
|
3448
3451
|
return i;
|
|
3449
3452
|
}
|
|
3450
|
-
function
|
|
3453
|
+
function Ut(e, t, n) {
|
|
3451
3454
|
return t.kind === "alias" ? !0 : t.tagged || t.anchor !== void 0 || e.indent < 2 && n > 0;
|
|
3452
3455
|
}
|
|
3453
3456
|
function Te(e, t, n, r, i) {
|
|
@@ -3457,40 +3460,40 @@ function Te(e, t, n, r, i) {
|
|
|
3457
3460
|
noBody: !1
|
|
3458
3461
|
};
|
|
3459
3462
|
const { block: o = !1, iskey: s = !1, isblockseq: a = !1 } = i;
|
|
3460
|
-
let
|
|
3463
|
+
let l = i.compact ?? !1;
|
|
3461
3464
|
const f = n.anchor !== void 0;
|
|
3462
|
-
|
|
3463
|
-
let
|
|
3465
|
+
Ut(e, n, t) && (l = !1);
|
|
3466
|
+
let c, E = n.tagged;
|
|
3464
3467
|
const S = o && (n.kind === "mapping" || n.kind === "sequence") && n.style === he.BLOCK && n.items.length !== 0;
|
|
3465
|
-
if (n.kind === "mapping") S ?
|
|
3466
|
-
else if (n.kind === "sequence") S ? e.seqNoIndent && !a && t > 0 ?
|
|
3468
|
+
if (n.kind === "mapping") S ? c = ms(e, t, n, l) : c = gs(e, t, n);
|
|
3469
|
+
else if (n.kind === "sequence") S ? e.seqNoIndent && !a && t > 0 ? c = _n(e, t - 1, n, l) : c = _n(e, t, n, l) : c = hs(e, t, n);
|
|
3467
3470
|
else {
|
|
3468
|
-
const O =
|
|
3469
|
-
|
|
3470
|
-
for (const
|
|
3471
|
-
|
|
3471
|
+
const O = ds(e, n, r, t, s, !o);
|
|
3472
|
+
Jo(O);
|
|
3473
|
+
for (const $ of e.scalarStyleRules) $(O);
|
|
3474
|
+
c = es(O), e.openEnded = (O.style === N.LITERAL_BLOCK || O.style === N.FOLDED_BLOCK) && (n.value === `
|
|
3472
3475
|
` || n.value.endsWith(`
|
|
3473
3476
|
|
|
3474
|
-
`)), E = n.tagged ||
|
|
3477
|
+
`)), E = n.tagged || c === "" && O.flowOnly && r?.kind === "sequence" && !f || O.style !== N.PLAIN && n.tag !== e.defaultScalarTagName;
|
|
3475
3478
|
}
|
|
3476
|
-
(n.kind === "mapping" || n.kind === "sequence") && !S && (e.openEnded = !1), S &&
|
|
3477
|
-
const T =
|
|
3478
|
-
let C =
|
|
3479
|
+
(n.kind === "mapping" || n.kind === "sequence") && !S && (e.openEnded = !1), S && l && t > 0 && e.indent > 2 && (c = `${" ".repeat(e.indent - 2)}${c}`);
|
|
3480
|
+
const T = c === "";
|
|
3481
|
+
let C = c;
|
|
3479
3482
|
if (E || f) {
|
|
3480
|
-
const O = [],
|
|
3481
|
-
e.tagBeforeAnchor ? (
|
|
3482
|
-
const
|
|
3483
|
-
C = `${O.join(" ")}${
|
|
3483
|
+
const O = [], $ = E ? fs(n) : null, b = f ? `&${n.anchor}` : null;
|
|
3484
|
+
e.tagBeforeAnchor ? ($ !== null && O.push($), b !== null && O.push(b)) : (b !== null && O.push(b), $ !== null && O.push($));
|
|
3485
|
+
const w = c === "" || c.charCodeAt(0) === ct ? "" : " ";
|
|
3486
|
+
C = `${O.join(" ")}${w}${c}`;
|
|
3484
3487
|
}
|
|
3485
3488
|
return {
|
|
3486
3489
|
text: C,
|
|
3487
3490
|
noBody: T
|
|
3488
3491
|
};
|
|
3489
3492
|
}
|
|
3490
|
-
function
|
|
3493
|
+
function As(e) {
|
|
3491
3494
|
return (e.kind === "sequence" || e.kind === "mapping") && e.style === he.BLOCK && e.items.length !== 0 && !e.tagged && e.anchor === void 0;
|
|
3492
3495
|
}
|
|
3493
|
-
function
|
|
3496
|
+
function Es(e) {
|
|
3494
3497
|
let t = "";
|
|
3495
3498
|
for (const n of e.directives) {
|
|
3496
3499
|
if (n.kind === "yaml") {
|
|
@@ -3504,23 +3507,23 @@ function As(e) {
|
|
|
3504
3507
|
}
|
|
3505
3508
|
return t;
|
|
3506
3509
|
}
|
|
3507
|
-
function
|
|
3508
|
-
const n =
|
|
3510
|
+
function Ss(e, t) {
|
|
3511
|
+
const n = ps(t);
|
|
3509
3512
|
let r = "", i = !1;
|
|
3510
3513
|
for (let o = 0; o < e.length; o += 1) {
|
|
3511
3514
|
const s = e[o];
|
|
3512
3515
|
n.openEnded = !1;
|
|
3513
|
-
const a =
|
|
3516
|
+
const a = Es(s), l = a !== "", f = s.explicitStart || l || o > 0 && !i;
|
|
3514
3517
|
if (r += a, s.contents === null)
|
|
3515
3518
|
f && (r += `---
|
|
3516
3519
|
`);
|
|
3517
3520
|
else if (f) {
|
|
3518
|
-
const
|
|
3521
|
+
const c = Te(n, 0, s.contents, null, {
|
|
3519
3522
|
block: !0,
|
|
3520
3523
|
compact: !0
|
|
3521
|
-
}).text, E =
|
|
3524
|
+
}).text, E = c === "" ? "" : l || As(s.contents) ? `
|
|
3522
3525
|
` : " ";
|
|
3523
|
-
r += `---${E}${
|
|
3526
|
+
r += `---${E}${c}
|
|
3524
3527
|
`;
|
|
3525
3528
|
} else r += Te(n, 0, s.contents, null, {
|
|
3526
3529
|
block: !0,
|
|
@@ -3532,9 +3535,9 @@ function Es(e, t) {
|
|
|
3532
3535
|
}
|
|
3533
3536
|
return r;
|
|
3534
3537
|
}
|
|
3535
|
-
var
|
|
3536
|
-
...
|
|
3537
|
-
schema:
|
|
3538
|
+
var _s = {
|
|
3539
|
+
...zt,
|
|
3540
|
+
schema: Oi,
|
|
3538
3541
|
skipInvalid: !1,
|
|
3539
3542
|
noRefs: !1,
|
|
3540
3543
|
flowLevel: -1,
|
|
@@ -3542,72 +3545,79 @@ var Ss = {
|
|
|
3542
3545
|
transform: () => {
|
|
3543
3546
|
}
|
|
3544
3547
|
};
|
|
3545
|
-
function
|
|
3548
|
+
function ys(e, t) {
|
|
3546
3549
|
const n = String(e), r = String(t);
|
|
3547
3550
|
return n < r ? -1 : n > r ? 1 : 0;
|
|
3548
3551
|
}
|
|
3549
|
-
function
|
|
3552
|
+
function Cs(e, t = {}) {
|
|
3550
3553
|
const n = {
|
|
3551
|
-
...
|
|
3554
|
+
..._s,
|
|
3552
3555
|
...t
|
|
3553
|
-
}, r =
|
|
3556
|
+
}, r = yo(e, n.schema, {
|
|
3554
3557
|
noRefs: n.noRefs,
|
|
3555
3558
|
skipInvalid: n.skipInvalid
|
|
3556
3559
|
});
|
|
3557
|
-
if (n.flowLevel >= 0 &&
|
|
3560
|
+
if (n.flowLevel >= 0 && An(r, (i, o) => {
|
|
3558
3561
|
if (!(o.depth < n.flowLevel))
|
|
3559
|
-
return (i.kind === "sequence" || i.kind === "mapping") && (i.style = he.FLOW),
|
|
3562
|
+
return (i.kind === "sequence" || i.kind === "mapping") && (i.style = he.FLOW), jn;
|
|
3560
3563
|
}), n.sortKeys) {
|
|
3561
|
-
const i = n.sortKeys === !0 ?
|
|
3562
|
-
|
|
3564
|
+
const i = n.sortKeys === !0 ? ys : n.sortKeys;
|
|
3565
|
+
An(r, (o) => {
|
|
3563
3566
|
o.kind === "mapping" && o.items.sort((s, a) => i(s.key.kind === "scalar" ? s.key.value : "", a.key.kind === "scalar" ? a.key.value : ""));
|
|
3564
3567
|
});
|
|
3565
3568
|
}
|
|
3566
|
-
return n.transform(r),
|
|
3567
|
-
|
|
3569
|
+
return n.transform(r), Ss(r, {
|
|
3570
|
+
...kt(n, Object.keys(zt)),
|
|
3568
3571
|
schema: n.schema
|
|
3569
3572
|
});
|
|
3570
3573
|
}
|
|
3571
|
-
const
|
|
3572
|
-
const n =
|
|
3574
|
+
const Ts = In.withTags(vn, Ln, Rn, xn, On), lr = (e, t) => {
|
|
3575
|
+
const n = Eo(e, { schema: Ts, ...t });
|
|
3573
3576
|
if (n.length === 0)
|
|
3574
3577
|
return e.trim() === "" ? void 0 : null;
|
|
3575
3578
|
if (n.length > 1)
|
|
3576
|
-
throw new
|
|
3579
|
+
throw new $e("expected a single document in the stream, but found more");
|
|
3577
3580
|
return n[0];
|
|
3578
|
-
},
|
|
3579
|
-
|
|
3581
|
+
}, Ks = (e, t) => Cs(e, t);
|
|
3582
|
+
function vs() {
|
|
3583
|
+
throw new Error("fileURLToPath is not available in the browser.");
|
|
3584
|
+
}
|
|
3585
|
+
function Gs() {
|
|
3586
|
+
throw new Error("pathToFileURL is not available in the browser.");
|
|
3587
|
+
}
|
|
3588
|
+
const Ls = /\((\d+):(\d+)\)$/;
|
|
3589
|
+
class Et extends Error {
|
|
3580
3590
|
originalError;
|
|
3581
3591
|
source;
|
|
3582
3592
|
col;
|
|
3583
3593
|
line;
|
|
3584
3594
|
constructor(t, n) {
|
|
3585
3595
|
super(t.message.split(`
|
|
3586
|
-
`)[0]), this.originalError = t, this.source = n, Object.setPrototypeOf(this,
|
|
3587
|
-
const [, r, i] = this.message.match(
|
|
3596
|
+
`)[0]), this.originalError = t, this.source = n, Object.setPrototypeOf(this, Et.prototype);
|
|
3597
|
+
const [, r, i] = this.message.match(Ls) || [];
|
|
3588
3598
|
this.line = parseInt(r, 10), this.col = parseInt(i, 10);
|
|
3589
3599
|
}
|
|
3590
3600
|
}
|
|
3591
|
-
const
|
|
3601
|
+
const Rs = [".graphql", ".gql"];
|
|
3592
3602
|
function cr(e) {
|
|
3593
3603
|
const t = e.toLowerCase();
|
|
3594
|
-
return
|
|
3604
|
+
return Rs.some((n) => t.endsWith(n));
|
|
3595
3605
|
}
|
|
3596
|
-
function
|
|
3606
|
+
function xs(e, t) {
|
|
3597
3607
|
return e.hasOwnProperty(t) ? e[t] : void 0;
|
|
3598
3608
|
}
|
|
3599
|
-
function
|
|
3609
|
+
function Os(e) {
|
|
3600
3610
|
return e.endsWith(".yaml") || e.endsWith(".yml") || e.endsWith(".json");
|
|
3601
3611
|
}
|
|
3602
|
-
function
|
|
3612
|
+
function Nt(e, t) {
|
|
3603
3613
|
return e + "::" + t;
|
|
3604
3614
|
}
|
|
3605
|
-
function
|
|
3615
|
+
function bs() {
|
|
3606
3616
|
return new Promise((e) => {
|
|
3607
3617
|
setTimeout(e);
|
|
3608
3618
|
});
|
|
3609
3619
|
}
|
|
3610
|
-
class
|
|
3620
|
+
class Kt {
|
|
3611
3621
|
absoluteRef;
|
|
3612
3622
|
body;
|
|
3613
3623
|
mimeType;
|
|
@@ -3625,28 +3635,31 @@ class Ht {
|
|
|
3625
3635
|
return this.#t === void 0 && (this.#t = this.body.split(/\r\n|[\n\r]/g)), this.#t;
|
|
3626
3636
|
}
|
|
3627
3637
|
}
|
|
3628
|
-
class
|
|
3638
|
+
class ut extends Error {
|
|
3629
3639
|
originalError;
|
|
3630
3640
|
constructor(t) {
|
|
3631
|
-
super(t.message), this.originalError = t, Object.setPrototypeOf(this,
|
|
3641
|
+
super(t.message), this.originalError = t, Object.setPrototypeOf(this, ut.prototype);
|
|
3632
3642
|
}
|
|
3633
3643
|
}
|
|
3634
|
-
function
|
|
3635
|
-
const n = new
|
|
3644
|
+
function qs(e, t) {
|
|
3645
|
+
const n = new Kt(t, e);
|
|
3636
3646
|
if (cr(t))
|
|
3637
3647
|
return { source: n, parsed: e };
|
|
3638
3648
|
try {
|
|
3639
3649
|
return {
|
|
3640
3650
|
source: n,
|
|
3641
|
-
parsed:
|
|
3651
|
+
parsed: lr(e, { filename: t })
|
|
3642
3652
|
};
|
|
3643
3653
|
} catch (r) {
|
|
3644
|
-
throw new
|
|
3654
|
+
throw new Et(r, n);
|
|
3645
3655
|
}
|
|
3646
3656
|
}
|
|
3647
|
-
class
|
|
3657
|
+
class Ws {
|
|
3648
3658
|
config;
|
|
3649
3659
|
cache = /* @__PURE__ */ new Map();
|
|
3660
|
+
// Local files that overlays add to a remote API description. Any other `file:` URL is followed
|
|
3661
|
+
// only from a local document, so a remote description can't read the user's files.
|
|
3662
|
+
overlayFiles = /* @__PURE__ */ new Set();
|
|
3650
3663
|
constructor(t = { http: { headers: [] } }) {
|
|
3651
3664
|
this.config = t;
|
|
3652
3665
|
}
|
|
@@ -3654,54 +3667,58 @@ class Ks {
|
|
|
3654
3667
|
return new Set(Array.from(this.cache.keys()));
|
|
3655
3668
|
}
|
|
3656
3669
|
resolveExternalRef(t, n) {
|
|
3657
|
-
return
|
|
3670
|
+
return Re(n) ? n : t && Re(t) ? new URL(n, t).href : Ze.resolve(t ? Ze.dirname(t) : process.cwd(), n);
|
|
3658
3671
|
}
|
|
3659
3672
|
async loadExternalRef(t) {
|
|
3660
3673
|
try {
|
|
3661
|
-
if (
|
|
3662
|
-
const { body: n, mimeType: r } = await
|
|
3663
|
-
return new
|
|
3674
|
+
if (Re(t) && !Xe(t)) {
|
|
3675
|
+
const { body: n, mimeType: r } = await yr(t, this.config.http);
|
|
3676
|
+
return new Kt(t, n, r);
|
|
3664
3677
|
} else {
|
|
3665
|
-
|
|
3666
|
-
|
|
3667
|
-
|
|
3668
|
-
|
|
3678
|
+
const n = Xe(t) ? vs(t) : t;
|
|
3679
|
+
if ((void 0)(n).isDirectory())
|
|
3680
|
+
throw new Error(`Expected a file but received a folder at ${n}.`);
|
|
3681
|
+
const r = await (void 0).readFile(n, "utf-8");
|
|
3682
|
+
return new Kt(t, r.replace(/\r\n/g, `
|
|
3669
3683
|
`));
|
|
3670
3684
|
}
|
|
3671
3685
|
} catch (n) {
|
|
3672
|
-
throw n.message = n.message.replace(", lstat", ""), new
|
|
3686
|
+
throw n.message = n.message.replace(", lstat", ""), new ut(n);
|
|
3673
3687
|
}
|
|
3674
3688
|
}
|
|
3675
3689
|
parseDocument(t, n = !1) {
|
|
3676
3690
|
if (cr(t.absoluteRef))
|
|
3677
3691
|
return { source: t, parsed: t.body };
|
|
3678
|
-
const r =
|
|
3679
|
-
if (!
|
|
3692
|
+
const r = Re(t.absoluteRef) ? new URL(t.absoluteRef).pathname : t.absoluteRef;
|
|
3693
|
+
if (!Os(r) && !t.mimeType?.match(/(json|yaml|openapi)/) && !n)
|
|
3680
3694
|
return { source: t, parsed: t.body };
|
|
3681
3695
|
try {
|
|
3682
3696
|
return {
|
|
3683
3697
|
source: t,
|
|
3684
|
-
parsed:
|
|
3698
|
+
parsed: lr(t.body, { filename: t.absoluteRef })
|
|
3685
3699
|
};
|
|
3686
3700
|
} catch (i) {
|
|
3687
|
-
throw new
|
|
3701
|
+
throw new Et(i, t);
|
|
3688
3702
|
}
|
|
3689
3703
|
}
|
|
3690
3704
|
async resolveDocument(t, n, r = !1) {
|
|
3691
|
-
const i = this.resolveExternalRef(t, n)
|
|
3705
|
+
const i = this.resolveExternalRef(t, n);
|
|
3706
|
+
if (Xe(i) && t !== null && Re(t) && !Xe(t) && !this.overlayFiles.has(i))
|
|
3707
|
+
throw new ut(new Error(`A remote document can't reference ${i}, which is a local file.`));
|
|
3708
|
+
const o = this.cache.get(i);
|
|
3692
3709
|
if (o)
|
|
3693
3710
|
return o;
|
|
3694
3711
|
const s = this.loadExternalRef(i).then((a) => this.parseDocument(a, r));
|
|
3695
3712
|
return this.cache.set(i, s), s;
|
|
3696
3713
|
}
|
|
3697
3714
|
}
|
|
3698
|
-
function
|
|
3715
|
+
function yn(e, t) {
|
|
3699
3716
|
return {
|
|
3700
3717
|
prev: e,
|
|
3701
3718
|
node: t
|
|
3702
3719
|
};
|
|
3703
3720
|
}
|
|
3704
|
-
function
|
|
3721
|
+
function Is(e, t) {
|
|
3705
3722
|
for (; e; ) {
|
|
3706
3723
|
if (e.node === t)
|
|
3707
3724
|
return !0;
|
|
@@ -3709,83 +3726,83 @@ function Os(e, t) {
|
|
|
3709
3726
|
}
|
|
3710
3727
|
return !1;
|
|
3711
3728
|
}
|
|
3712
|
-
const
|
|
3713
|
-
async function
|
|
3729
|
+
const et = { name: "unknown", properties: {} }, Ns = { name: "scalar", properties: {} };
|
|
3730
|
+
async function Ys(e) {
|
|
3714
3731
|
const { rootDocument: t, externalRefResolver: n, rootType: r } = e, i = /* @__PURE__ */ new Map(), o = /* @__PURE__ */ new Set(), s = [];
|
|
3715
|
-
|
|
3732
|
+
l(t.parsed, t, "#/", r);
|
|
3716
3733
|
let a;
|
|
3717
3734
|
do
|
|
3718
3735
|
a = await Promise.all(s);
|
|
3719
3736
|
while (s.length !== a.length);
|
|
3720
3737
|
return i;
|
|
3721
|
-
function
|
|
3722
|
-
const T =
|
|
3738
|
+
function l(f, c, E, S) {
|
|
3739
|
+
const T = c.source.absoluteRef, C = /* @__PURE__ */ new Map();
|
|
3723
3740
|
O(f, S, T + E);
|
|
3724
|
-
function O(b,
|
|
3725
|
-
if (!
|
|
3741
|
+
function O(b, w, A) {
|
|
3742
|
+
if (!xe(b) && !Array.isArray(b))
|
|
3726
3743
|
return;
|
|
3727
|
-
const L = `${
|
|
3744
|
+
const L = `${w.name}::${A}`;
|
|
3728
3745
|
if (o.has(L))
|
|
3729
3746
|
return;
|
|
3730
3747
|
if (o.add(L), Array.isArray(b)) {
|
|
3731
|
-
const v =
|
|
3732
|
-
if (v === void 0 &&
|
|
3748
|
+
const v = w.items;
|
|
3749
|
+
if (v === void 0 && w !== et && w !== tt)
|
|
3733
3750
|
return;
|
|
3734
3751
|
const m = typeof v == "function";
|
|
3735
3752
|
for (let g = 0; g < b.length; g++) {
|
|
3736
3753
|
let R = m ? v(b[g], Le(A, g)) : v;
|
|
3737
|
-
if (R === void 0 &&
|
|
3754
|
+
if (R === void 0 && w !== et && w !== tt)
|
|
3738
3755
|
continue;
|
|
3739
3756
|
const j = R?.directResolveAs ? { $ref: b[g] } : b[g];
|
|
3740
|
-
R = R?.directResolveAs || R, O(j,
|
|
3757
|
+
R = R?.directResolveAs || R, O(j, nt(R) ? R : et, Le(A, g));
|
|
3741
3758
|
}
|
|
3742
3759
|
return;
|
|
3743
3760
|
}
|
|
3744
3761
|
const [u, I] = Object.entries(b).find(([v]) => v === "$anchor") || [];
|
|
3745
3762
|
I && C.set(`#${I}`, b);
|
|
3746
3763
|
for (const v of Object.keys(b)) {
|
|
3747
|
-
let m = b[v], g =
|
|
3748
|
-
const R =
|
|
3749
|
-
g === void 0 && !R && (g =
|
|
3764
|
+
let m = b[v], g = xs(w.properties, v);
|
|
3765
|
+
const R = w.extensionsPrefix !== void 0 && v.startsWith(w.extensionsPrefix);
|
|
3766
|
+
g === void 0 && !R && (g = w.additionalProperties), typeof g == "function" && (g = g(m, v)), R && g === void 0 && (g = tt), g === void 0 && (g = et), !nt(g) && g?.directResolveAs && (g = g.directResolveAs, m = { $ref: m }), g && g.name === void 0 && g.resolvable !== !1 && (g = Ns), !(!nt(g) || !(xe(m) || Array.isArray(m))) && O(m, g, Le(A, Be(v)));
|
|
3750
3767
|
}
|
|
3751
|
-
if (
|
|
3752
|
-
const v =
|
|
3768
|
+
if (rt(b)) {
|
|
3769
|
+
const v = $(c, b, {
|
|
3753
3770
|
prev: null,
|
|
3754
3771
|
node: b
|
|
3755
3772
|
}).then((m) => {
|
|
3756
3773
|
if (m.resolved) {
|
|
3757
|
-
|
|
3774
|
+
l(m.node, m.document, m.nodePointer, w);
|
|
3758
3775
|
for (const g of m.chain ?? [])
|
|
3759
|
-
|
|
3776
|
+
l(g.node, g.document, g.location.pointer, w);
|
|
3760
3777
|
}
|
|
3761
3778
|
});
|
|
3762
3779
|
s.push(v);
|
|
3763
3780
|
}
|
|
3764
|
-
if (
|
|
3765
|
-
const v =
|
|
3781
|
+
if (vr(b)) {
|
|
3782
|
+
const v = $(c, { $ref: b.externalValue }, {
|
|
3766
3783
|
prev: null,
|
|
3767
3784
|
node: b
|
|
3768
3785
|
}).then((m) => {
|
|
3769
|
-
m.resolved &&
|
|
3786
|
+
m.resolved && l(m.node, m.document, m.nodePointer, w);
|
|
3770
3787
|
});
|
|
3771
3788
|
s.push(v);
|
|
3772
3789
|
}
|
|
3773
3790
|
}
|
|
3774
|
-
async function
|
|
3775
|
-
if (
|
|
3791
|
+
async function $(b, w, A) {
|
|
3792
|
+
if (Is(A.prev, w))
|
|
3776
3793
|
throw new Error("Self-referencing circular pointer");
|
|
3777
|
-
if (
|
|
3778
|
-
await
|
|
3794
|
+
if (Or(w.$ref)) {
|
|
3795
|
+
await bs();
|
|
3779
3796
|
const F = {
|
|
3780
3797
|
resolved: !0,
|
|
3781
3798
|
isRemote: !1,
|
|
3782
|
-
node: C.get(
|
|
3799
|
+
node: C.get(w.$ref),
|
|
3783
3800
|
document: b,
|
|
3784
|
-
nodePointer:
|
|
3785
|
-
}, K =
|
|
3801
|
+
nodePointer: w.$ref
|
|
3802
|
+
}, K = Nt(b.source.absoluteRef, w.$ref);
|
|
3786
3803
|
return i.set(K, F), F;
|
|
3787
3804
|
}
|
|
3788
|
-
const { uri: L, pointer: u } =
|
|
3805
|
+
const { uri: L, pointer: u } = Rr(w.$ref), I = L !== null && n.resolveExternalRef(b.source.absoluteRef, L) !== b.source.absoluteRef;
|
|
3789
3806
|
let v;
|
|
3790
3807
|
try {
|
|
3791
3808
|
v = I ? await n.resolveDocument(b.source.absoluteRef, L) : b;
|
|
@@ -3795,7 +3812,7 @@ async function Gs(e) {
|
|
|
3795
3812
|
isRemote: I,
|
|
3796
3813
|
document: void 0,
|
|
3797
3814
|
error: F
|
|
3798
|
-
}, pe =
|
|
3815
|
+
}, pe = Nt(b.source.absoluteRef, w.$ref);
|
|
3799
3816
|
return i.set(pe, K), K;
|
|
3800
3817
|
}
|
|
3801
3818
|
let m = {
|
|
@@ -3807,12 +3824,12 @@ async function Gs(e) {
|
|
|
3807
3824
|
}, g = v.parsed;
|
|
3808
3825
|
const R = u;
|
|
3809
3826
|
for (const F of R)
|
|
3810
|
-
if (
|
|
3827
|
+
if (xe(g) && g[F] !== void 0)
|
|
3811
3828
|
g = g[F], m.nodePointer = Le(m.nodePointer, Be(F));
|
|
3812
3829
|
else if (Array.isArray(g) && g[+F] !== void 0)
|
|
3813
3830
|
g = g[+F], m.nodePointer = Le(m.nodePointer, Be(F));
|
|
3814
|
-
else if (
|
|
3815
|
-
if (m = await
|
|
3831
|
+
else if (rt(g))
|
|
3832
|
+
if (m = await $(v, g, yn(A, g)), m.chain = void 0, v = m.document || v, xe(m.node))
|
|
3816
3833
|
g = m.node[F], m.nodePointer = Le(m.nodePointer, Be(F));
|
|
3817
3834
|
else if (Array.isArray(m.node))
|
|
3818
3835
|
g = m.node[+F], m.nodePointer = Le(m.nodePointer, Be(F));
|
|
@@ -3825,55 +3842,58 @@ async function Gs(e) {
|
|
|
3825
3842
|
break;
|
|
3826
3843
|
}
|
|
3827
3844
|
m.node = g, m.document = v;
|
|
3828
|
-
const j =
|
|
3829
|
-
if (m.document &&
|
|
3830
|
-
const F =
|
|
3845
|
+
const j = Nt(b.source.absoluteRef, w.$ref);
|
|
3846
|
+
if (m.document && rt(g)) {
|
|
3847
|
+
const F = Tr(g) ? {
|
|
3831
3848
|
node: g,
|
|
3832
3849
|
document: m.document,
|
|
3833
|
-
location: new
|
|
3850
|
+
location: new ot(m.document.source, m.nodePointer)
|
|
3834
3851
|
} : void 0;
|
|
3835
|
-
m = await
|
|
3852
|
+
m = await $(m.document, g, yn(A, g)), F && m.resolved && (m = { ...m, chain: [F, ...m.chain ?? []] });
|
|
3836
3853
|
}
|
|
3837
3854
|
return i.set(j, m), { ...m };
|
|
3838
3855
|
}
|
|
3839
3856
|
}
|
|
3840
3857
|
}
|
|
3841
3858
|
export {
|
|
3842
|
-
|
|
3843
|
-
|
|
3844
|
-
|
|
3845
|
-
|
|
3846
|
-
|
|
3847
|
-
|
|
3848
|
-
|
|
3849
|
-
|
|
3850
|
-
|
|
3851
|
-
|
|
3852
|
-
|
|
3853
|
-
|
|
3854
|
-
|
|
3855
|
-
|
|
3859
|
+
Us as A,
|
|
3860
|
+
Ws as B,
|
|
3861
|
+
Nt as C,
|
|
3862
|
+
Gs as D,
|
|
3863
|
+
vr as E,
|
|
3864
|
+
Xe as F,
|
|
3865
|
+
Ps as G,
|
|
3866
|
+
Bs as H,
|
|
3867
|
+
vs as I,
|
|
3868
|
+
_r as J,
|
|
3869
|
+
ot as L,
|
|
3870
|
+
ut as R,
|
|
3871
|
+
Kt as S,
|
|
3872
|
+
Et as Y,
|
|
3873
|
+
Ys as a,
|
|
3874
|
+
Re as b,
|
|
3875
|
+
Sr as c,
|
|
3856
3876
|
cr as d,
|
|
3857
3877
|
Be as e,
|
|
3858
|
-
|
|
3859
|
-
|
|
3860
|
-
|
|
3861
|
-
|
|
3862
|
-
|
|
3863
|
-
|
|
3864
|
-
|
|
3865
|
-
|
|
3866
|
-
|
|
3878
|
+
Hs as f,
|
|
3879
|
+
Ds as g,
|
|
3880
|
+
Os as h,
|
|
3881
|
+
rt as i,
|
|
3882
|
+
pr as j,
|
|
3883
|
+
lr as k,
|
|
3884
|
+
Ms as l,
|
|
3885
|
+
qs as m,
|
|
3886
|
+
Fs as n,
|
|
3867
3887
|
$s as o,
|
|
3868
|
-
|
|
3869
|
-
|
|
3870
|
-
|
|
3871
|
-
|
|
3888
|
+
xr as p,
|
|
3889
|
+
ks as q,
|
|
3890
|
+
yr as r,
|
|
3891
|
+
Ks as s,
|
|
3872
3892
|
Le as t,
|
|
3873
|
-
|
|
3874
|
-
|
|
3875
|
-
|
|
3876
|
-
|
|
3893
|
+
Lr as u,
|
|
3894
|
+
Tr as v,
|
|
3895
|
+
Rr as w,
|
|
3896
|
+
xs as x,
|
|
3877
3897
|
tt as y,
|
|
3878
|
-
|
|
3898
|
+
nt as z
|
|
3879
3899
|
};
|