@cloud-cli/on 1.6.3 ā 1.6.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/on.js
CHANGED
|
@@ -3275,7 +3275,7 @@ function dn(e, t, n) {
|
|
|
3275
3275
|
}
|
|
3276
3276
|
//#endregion
|
|
3277
3277
|
//#region src/safe-eval.ts
|
|
3278
|
-
var fn = {
|
|
3278
|
+
var fn = process.cwd(), pn = {
|
|
3279
3279
|
String: (e) => String(e ?? ""),
|
|
3280
3280
|
Number: (e) => Number(e),
|
|
3281
3281
|
Boolean: (e) => !!e,
|
|
@@ -3285,10 +3285,10 @@ var fn = {
|
|
|
3285
3285
|
},
|
|
3286
3286
|
FS: {
|
|
3287
3287
|
readFile: (t) => e.readFileSync(t, "utf8"),
|
|
3288
|
-
exists: (t) => e.existsSync(t),
|
|
3289
|
-
join: (...e) => u.join(...e)
|
|
3288
|
+
exists: (t) => (console.log("FS.exists [%s] %s", process.cwd(), t), e.existsSync(t)),
|
|
3289
|
+
join: (...e) => u.join(...e.map((e) => e === "CWD" ? fn : e))
|
|
3290
3290
|
}
|
|
3291
|
-
},
|
|
3291
|
+
}, mn = class {
|
|
3292
3292
|
static async evaluateValue(e, t = {}) {
|
|
3293
3293
|
if (typeof e != "string" || !e.includes("${")) return e;
|
|
3294
3294
|
let n = `\`${e}\``;
|
|
@@ -3318,7 +3318,7 @@ var fn = {
|
|
|
3318
3318
|
static async evalNodeAsync(e, t) {
|
|
3319
3319
|
switch (e.type) {
|
|
3320
3320
|
case "Literal": return e.value;
|
|
3321
|
-
case "Identifier": return e.name in t ? t[e.name] : e.name in
|
|
3321
|
+
case "Identifier": return e.name in t ? t[e.name] : e.name in pn ? pn[e.name] : void 0;
|
|
3322
3322
|
case "MemberExpression": {
|
|
3323
3323
|
let n = await this.evalNodeAsync(e.object, t);
|
|
3324
3324
|
if (n == null) return;
|
|
@@ -3344,7 +3344,7 @@ var fn = {
|
|
|
3344
3344
|
else throw Error(`Property '${i}' is not a callable function on target object.`);
|
|
3345
3345
|
} else if (e.callee.type === "Identifier") {
|
|
3346
3346
|
let r = e.callee.name;
|
|
3347
|
-
if (n = t[r] ??
|
|
3347
|
+
if (n = t[r] ?? pn[r], !n || typeof n != "function") throw Error(`Unknown function helper '${r}'.`);
|
|
3348
3348
|
}
|
|
3349
3349
|
if (!n) throw Error("Invalid function invocation target.");
|
|
3350
3350
|
let i = await Promise.all(e.arguments.map((e) => this.evalNodeAsync(e, t)));
|
|
@@ -3400,7 +3400,7 @@ var fn = {
|
|
|
3400
3400
|
default: throw Error(`Security Guard Violation: AST Node type '${e.type}' is disallowed.`);
|
|
3401
3401
|
}
|
|
3402
3402
|
}
|
|
3403
|
-
},
|
|
3403
|
+
}, hn = class {
|
|
3404
3404
|
name = "github";
|
|
3405
3405
|
parse(e, t, n) {
|
|
3406
3406
|
let r = !0, i = null, a = e["x-hub-signature-256"];
|
|
@@ -3433,13 +3433,13 @@ var fn = {
|
|
|
3433
3433
|
inputs: i
|
|
3434
3434
|
};
|
|
3435
3435
|
}
|
|
3436
|
-
},
|
|
3436
|
+
}, gn = function(e, t) {
|
|
3437
3437
|
return Object.defineProperty ? Object.defineProperty(e, "raw", { value: t }) : e.raw = t, e;
|
|
3438
3438
|
}, V;
|
|
3439
3439
|
(function(e) {
|
|
3440
3440
|
e[e.EOS = 0] = "EOS", e[e.Text = 1] = "Text", e[e.Incomplete = 2] = "Incomplete", e[e.ESC = 3] = "ESC", e[e.Unknown = 4] = "Unknown", e[e.SGR = 5] = "SGR", e[e.OSCURL = 6] = "OSCURL";
|
|
3441
3441
|
})(V ||= {});
|
|
3442
|
-
var
|
|
3442
|
+
var _n = class {
|
|
3443
3443
|
constructor() {
|
|
3444
3444
|
this.VERSION = "6.0.6", this.setup_palettes(), this._use_classes = !1, this.bold = !1, this.faint = !1, this.italic = !1, this.underline = !1, this.fg = this.bg = null, this._buffer = "", this._url_allowlist = {
|
|
3445
3445
|
http: 1,
|
|
@@ -3684,7 +3684,7 @@ var gn = class {
|
|
|
3684
3684
|
var r = this._buffer.charAt(1);
|
|
3685
3685
|
if (r != "[" && r != "]" && r != "(") return e.kind = V.ESC, e.text = this._buffer.slice(0, 1), this._buffer = this._buffer.slice(1), e;
|
|
3686
3686
|
if (r == "[") {
|
|
3687
|
-
this._csi_regex ||=
|
|
3687
|
+
this._csi_regex ||= vn(bn ||= gn(["\n ^ # beginning of line\n #\n # First attempt\n (?: # legal sequence\n \x1B[ # CSI\n ([<-?]?) # private-mode char\n ([d;]*) # any digits or semicolons\n ([ -/]? # an intermediate modifier\n [@-~]) # the command\n )\n | # alternate (second attempt)\n (?: # illegal sequence\n \x1B[ # CSI\n [ -~]* # anything legal\n ([\0-:]) # anything illegal\n )\n "], ["\n ^ # beginning of line\n #\n # First attempt\n (?: # legal sequence\n \\x1b\\[ # CSI\n ([\\x3c-\\x3f]?) # private-mode char\n ([\\d;]*) # any digits or semicolons\n ([\\x20-\\x2f]? # an intermediate modifier\n [\\x40-\\x7e]) # the command\n )\n | # alternate (second attempt)\n (?: # illegal sequence\n \\x1b\\[ # CSI\n [\\x20-\\x7e]* # anything legal\n ([\\x00-\\x1f:]) # anything illegal\n )\n "]));
|
|
3688
3688
|
let t = this._buffer.match(this._csi_regex);
|
|
3689
3689
|
if (t === null) return e.kind = V.Incomplete, e;
|
|
3690
3690
|
if (t[4]) return e.kind = V.ESC, e.text = this._buffer.slice(0, 1), this._buffer = this._buffer.slice(1), e;
|
|
@@ -3695,7 +3695,7 @@ var gn = class {
|
|
|
3695
3695
|
if (r == "]") {
|
|
3696
3696
|
if (t < 4) return e.kind = V.Incomplete, e;
|
|
3697
3697
|
if (this._buffer.charAt(2) != "8" || this._buffer.charAt(3) != ";") return e.kind = V.ESC, e.text = this._buffer.slice(0, 1), this._buffer = this._buffer.slice(1), e;
|
|
3698
|
-
this._osc_st ||=
|
|
3698
|
+
this._osc_st ||= yn(xn ||= gn(["\n (?: # legal sequence\n (\x1B\\) # ESC | # alternate\n (\x07) # BEL (what xterm did)\n )\n | # alternate (second attempt)\n ( # illegal sequence\n [\0-] # anything illegal\n | # alternate\n [\b-] # anything illegal\n | # alternate\n [-] # anything illegal\n )\n "], ["\n (?: # legal sequence\n (\\x1b\\\\) # ESC \\\n | # alternate\n (\\x07) # BEL (what xterm did)\n )\n | # alternate (second attempt)\n ( # illegal sequence\n [\\x00-\\x06] # anything illegal\n | # alternate\n [\\x08-\\x1a] # anything illegal\n | # alternate\n [\\x1c-\\x1f] # anything illegal\n )\n "])), this._osc_st.lastIndex = 0;
|
|
3699
3699
|
{
|
|
3700
3700
|
let t = this._osc_st.exec(this._buffer);
|
|
3701
3701
|
if (t === null) return e.kind = V.Incomplete, e;
|
|
@@ -3706,7 +3706,7 @@ var gn = class {
|
|
|
3706
3706
|
if (t === null) return e.kind = V.Incomplete, e;
|
|
3707
3707
|
if (t[3]) return e.kind = V.ESC, e.text = this._buffer.slice(0, 1), this._buffer = this._buffer.slice(1), e;
|
|
3708
3708
|
}
|
|
3709
|
-
this._osc_regex ||=
|
|
3709
|
+
this._osc_regex ||= vn(Sn ||= gn(["\n ^ # beginning of line\n #\n \x1B]8; # OSC Hyperlink\n [ -:<-~]* # params (excluding ;)\n ; # end of params\n ([!-~]{0,512}) # URL capture\n (?: # ST\n (?:\x1B\\) # ESC | # alternate\n (?:\x07) # BEL (what xterm did)\n )\n ([ -~]+) # TEXT capture\n \x1B]8;; # OSC Hyperlink End\n (?: # ST\n (?:\x1B\\) # ESC | # alternate\n (?:\x07) # BEL (what xterm did)\n )\n "], ["\n ^ # beginning of line\n #\n \\x1b\\]8; # OSC Hyperlink\n [\\x20-\\x3a\\x3c-\\x7e]* # params (excluding ;)\n ; # end of params\n ([\\x21-\\x7e]{0,512}) # URL capture\n (?: # ST\n (?:\\x1b\\\\) # ESC \\\n | # alternate\n (?:\\x07) # BEL (what xterm did)\n )\n ([\\x20-\\x7e]+) # TEXT capture\n \\x1b\\]8;; # OSC Hyperlink End\n (?: # ST\n (?:\\x1b\\\\) # ESC \\\n | # alternate\n (?:\\x07) # BEL (what xterm did)\n )\n "]));
|
|
3710
3710
|
let n = this._buffer.match(this._osc_regex);
|
|
3711
3711
|
if (n === null) return e.kind = V.ESC, e.text = this._buffer.slice(0, 1), this._buffer = this._buffer.slice(1), e;
|
|
3712
3712
|
e.kind = V.OSCURL, e.url = n[1], e.text = n[2];
|
|
@@ -3791,20 +3791,20 @@ var gn = class {
|
|
|
3791
3791
|
return t.length < 1 || !this._url_allowlist[t[0]] ? "" : `<a href="${this.escape_txt_for_html(e.url)}">${this.escape_txt_for_html(e.text)}</a>`;
|
|
3792
3792
|
}
|
|
3793
3793
|
};
|
|
3794
|
-
function
|
|
3794
|
+
function vn(e, ...t) {
|
|
3795
3795
|
let n = e.raw[0].replace(/^\s+|\s+\n|\s*#[\s\S]*?\n|\n/gm, "");
|
|
3796
3796
|
return new RegExp(n);
|
|
3797
3797
|
}
|
|
3798
|
-
function
|
|
3798
|
+
function yn(e, ...t) {
|
|
3799
3799
|
let n = e.raw[0].replace(/^\s+|\s+\n|\s*#[\s\S]*?\n|\n/gm, "");
|
|
3800
3800
|
return new RegExp(n, "g");
|
|
3801
3801
|
}
|
|
3802
|
-
var
|
|
3802
|
+
var bn, xn, Sn, Cn = class {
|
|
3803
3803
|
name = "html";
|
|
3804
3804
|
outputDir;
|
|
3805
3805
|
ansiUp;
|
|
3806
3806
|
constructor(e) {
|
|
3807
|
-
this.outputDir = e.outputDir, this.ansiUp = new
|
|
3807
|
+
this.outputDir = e.outputDir, this.ansiUp = new _n(), this.ansiUp.use_classes = !1;
|
|
3808
3808
|
}
|
|
3809
3809
|
async report(t) {
|
|
3810
3810
|
e.mkdirSync(this.outputDir, { recursive: !0 });
|
|
@@ -3873,83 +3873,83 @@ var yn, bn, xn, Sn = class {
|
|
|
3873
3873
|
</body>
|
|
3874
3874
|
</html>`;
|
|
3875
3875
|
}
|
|
3876
|
-
},
|
|
3876
|
+
}, wn = Symbol.for("yaml.alias"), Tn = Symbol.for("yaml.document"), En = Symbol.for("yaml.map"), Dn = Symbol.for("yaml.pair"), On = Symbol.for("yaml.scalar"), kn = Symbol.for("yaml.seq"), H = Symbol.for("yaml.node.type"), An = (e) => !!e && typeof e == "object" && e[H] === wn, jn = (e) => !!e && typeof e == "object" && e[H] === Tn, Mn = (e) => !!e && typeof e == "object" && e[H] === En, U = (e) => !!e && typeof e == "object" && e[H] === Dn, W = (e) => !!e && typeof e == "object" && e[H] === On, Nn = (e) => !!e && typeof e == "object" && e[H] === kn;
|
|
3877
3877
|
function G(e) {
|
|
3878
3878
|
if (e && typeof e == "object") switch (e[H]) {
|
|
3879
|
-
case
|
|
3880
|
-
case
|
|
3879
|
+
case En:
|
|
3880
|
+
case kn: return !0;
|
|
3881
3881
|
}
|
|
3882
3882
|
return !1;
|
|
3883
3883
|
}
|
|
3884
3884
|
function K(e) {
|
|
3885
3885
|
if (e && typeof e == "object") switch (e[H]) {
|
|
3886
|
-
case
|
|
3887
|
-
case
|
|
3888
|
-
case
|
|
3889
|
-
case
|
|
3886
|
+
case wn:
|
|
3887
|
+
case En:
|
|
3888
|
+
case On:
|
|
3889
|
+
case kn: return !0;
|
|
3890
3890
|
}
|
|
3891
3891
|
return !1;
|
|
3892
3892
|
}
|
|
3893
|
-
var
|
|
3894
|
-
function
|
|
3895
|
-
let n =
|
|
3896
|
-
|
|
3893
|
+
var Pn = (e) => (W(e) || G(e)) && !!e.anchor, q = Symbol("break visit"), Fn = Symbol("skip children"), In = Symbol("remove node");
|
|
3894
|
+
function Ln(e, t) {
|
|
3895
|
+
let n = Vn(t);
|
|
3896
|
+
jn(e) ? Rn(null, e.contents, n, Object.freeze([e])) === In && (e.contents = null) : Rn(null, e, n, Object.freeze([]));
|
|
3897
3897
|
}
|
|
3898
|
-
|
|
3899
|
-
function
|
|
3900
|
-
let i =
|
|
3901
|
-
if (K(i) || U(i)) return
|
|
3898
|
+
Ln.BREAK = q, Ln.SKIP = Fn, Ln.REMOVE = In;
|
|
3899
|
+
function Rn(e, t, n, r) {
|
|
3900
|
+
let i = Hn(e, t, n, r);
|
|
3901
|
+
if (K(i) || U(i)) return Un(e, r, i), Rn(e, i, n, r);
|
|
3902
3902
|
if (typeof i != "symbol") {
|
|
3903
3903
|
if (G(t)) {
|
|
3904
3904
|
r = Object.freeze(r.concat(t));
|
|
3905
3905
|
for (let e = 0; e < t.items.length; ++e) {
|
|
3906
|
-
let i =
|
|
3906
|
+
let i = Rn(e, t.items[e], n, r);
|
|
3907
3907
|
if (typeof i == "number") e = i - 1;
|
|
3908
3908
|
else if (i === q) return q;
|
|
3909
|
-
else i ===
|
|
3909
|
+
else i === In && (t.items.splice(e, 1), --e);
|
|
3910
3910
|
}
|
|
3911
3911
|
} else if (U(t)) {
|
|
3912
3912
|
r = Object.freeze(r.concat(t));
|
|
3913
|
-
let e =
|
|
3913
|
+
let e = Rn("key", t.key, n, r);
|
|
3914
3914
|
if (e === q) return q;
|
|
3915
|
-
e ===
|
|
3916
|
-
let i =
|
|
3915
|
+
e === In && (t.key = null);
|
|
3916
|
+
let i = Rn("value", t.value, n, r);
|
|
3917
3917
|
if (i === q) return q;
|
|
3918
|
-
i ===
|
|
3918
|
+
i === In && (t.value = null);
|
|
3919
3919
|
}
|
|
3920
3920
|
}
|
|
3921
3921
|
return i;
|
|
3922
3922
|
}
|
|
3923
|
-
async function
|
|
3924
|
-
let n =
|
|
3925
|
-
|
|
3923
|
+
async function zn(e, t) {
|
|
3924
|
+
let n = Vn(t);
|
|
3925
|
+
jn(e) ? await Bn(null, e.contents, n, Object.freeze([e])) === In && (e.contents = null) : await Bn(null, e, n, Object.freeze([]));
|
|
3926
3926
|
}
|
|
3927
|
-
|
|
3928
|
-
async function
|
|
3929
|
-
let i = await
|
|
3930
|
-
if (K(i) || U(i)) return
|
|
3927
|
+
zn.BREAK = q, zn.SKIP = Fn, zn.REMOVE = In;
|
|
3928
|
+
async function Bn(e, t, n, r) {
|
|
3929
|
+
let i = await Hn(e, t, n, r);
|
|
3930
|
+
if (K(i) || U(i)) return Un(e, r, i), Bn(e, i, n, r);
|
|
3931
3931
|
if (typeof i != "symbol") {
|
|
3932
3932
|
if (G(t)) {
|
|
3933
3933
|
r = Object.freeze(r.concat(t));
|
|
3934
3934
|
for (let e = 0; e < t.items.length; ++e) {
|
|
3935
|
-
let i = await
|
|
3935
|
+
let i = await Bn(e, t.items[e], n, r);
|
|
3936
3936
|
if (typeof i == "number") e = i - 1;
|
|
3937
3937
|
else if (i === q) return q;
|
|
3938
|
-
else i ===
|
|
3938
|
+
else i === In && (t.items.splice(e, 1), --e);
|
|
3939
3939
|
}
|
|
3940
3940
|
} else if (U(t)) {
|
|
3941
3941
|
r = Object.freeze(r.concat(t));
|
|
3942
|
-
let e = await
|
|
3942
|
+
let e = await Bn("key", t.key, n, r);
|
|
3943
3943
|
if (e === q) return q;
|
|
3944
|
-
e ===
|
|
3945
|
-
let i = await
|
|
3944
|
+
e === In && (t.key = null);
|
|
3945
|
+
let i = await Bn("value", t.value, n, r);
|
|
3946
3946
|
if (i === q) return q;
|
|
3947
|
-
i ===
|
|
3947
|
+
i === In && (t.value = null);
|
|
3948
3948
|
}
|
|
3949
3949
|
}
|
|
3950
3950
|
return i;
|
|
3951
3951
|
}
|
|
3952
|
-
function
|
|
3952
|
+
function Vn(e) {
|
|
3953
3953
|
return typeof e == "object" && (e.Collection || e.Node || e.Value) ? Object.assign({
|
|
3954
3954
|
Alias: e.Node,
|
|
3955
3955
|
Map: e.Node,
|
|
@@ -3964,34 +3964,34 @@ function Bn(e) {
|
|
|
3964
3964
|
Seq: e.Collection
|
|
3965
3965
|
}, e) : e;
|
|
3966
3966
|
}
|
|
3967
|
-
function
|
|
3967
|
+
function Hn(e, t, n, r) {
|
|
3968
3968
|
if (typeof n == "function") return n(e, t, r);
|
|
3969
|
-
if (
|
|
3970
|
-
if (
|
|
3969
|
+
if (Mn(t)) return n.Map?.(e, t, r);
|
|
3970
|
+
if (Nn(t)) return n.Seq?.(e, t, r);
|
|
3971
3971
|
if (U(t)) return n.Pair?.(e, t, r);
|
|
3972
3972
|
if (W(t)) return n.Scalar?.(e, t, r);
|
|
3973
|
-
if (
|
|
3973
|
+
if (An(t)) return n.Alias?.(e, t, r);
|
|
3974
3974
|
}
|
|
3975
|
-
function
|
|
3975
|
+
function Un(e, t, n) {
|
|
3976
3976
|
let r = t[t.length - 1];
|
|
3977
3977
|
if (G(r)) r.items[e] = n;
|
|
3978
3978
|
else if (U(r)) e === "key" ? r.key = n : r.value = n;
|
|
3979
|
-
else if (
|
|
3979
|
+
else if (jn(r)) r.contents = n;
|
|
3980
3980
|
else {
|
|
3981
|
-
let e =
|
|
3981
|
+
let e = An(r) ? "alias" : "scalar";
|
|
3982
3982
|
throw Error(`Cannot replace node with ${e} parent`);
|
|
3983
3983
|
}
|
|
3984
3984
|
}
|
|
3985
3985
|
//#endregion
|
|
3986
3986
|
//#region node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/browser/dist/doc/directives.js
|
|
3987
|
-
var
|
|
3987
|
+
var Wn = {
|
|
3988
3988
|
"!": "%21",
|
|
3989
3989
|
",": "%2C",
|
|
3990
3990
|
"[": "%5B",
|
|
3991
3991
|
"]": "%5D",
|
|
3992
3992
|
"{": "%7B",
|
|
3993
3993
|
"}": "%7D"
|
|
3994
|
-
},
|
|
3994
|
+
}, Gn = (e) => e.replace(/[!,[\]{}]/g, (e) => Wn[e]), Kn = class e {
|
|
3995
3995
|
constructor(t, n) {
|
|
3996
3996
|
this.docStart = null, this.docEnd = !1, this.yaml = Object.assign({}, e.defaultYaml, t), this.tags = Object.assign({}, e.defaultTags, n);
|
|
3997
3997
|
}
|
|
@@ -4054,14 +4054,14 @@ var Un = {
|
|
|
4054
4054
|
return n === "!" ? e : (t(`Could not resolve tag: ${e}`), null);
|
|
4055
4055
|
}
|
|
4056
4056
|
tagString(e) {
|
|
4057
|
-
for (let [t, n] of Object.entries(this.tags)) if (e.startsWith(n)) return t +
|
|
4057
|
+
for (let [t, n] of Object.entries(this.tags)) if (e.startsWith(n)) return t + Gn(e.substring(n.length));
|
|
4058
4058
|
return e[0] === "!" ? e : `!<${e}>`;
|
|
4059
4059
|
}
|
|
4060
4060
|
toString(e) {
|
|
4061
4061
|
let t = this.yaml.explicit ? [`%YAML ${this.yaml.version || "1.2"}`] : [], n = Object.entries(this.tags), r;
|
|
4062
4062
|
if (e && n.length > 0 && K(e.contents)) {
|
|
4063
4063
|
let t = {};
|
|
4064
|
-
|
|
4064
|
+
Ln(e.contents, (e, n) => {
|
|
4065
4065
|
K(n) && n.tag && (t[n.tag] = !0);
|
|
4066
4066
|
}), r = Object.keys(t);
|
|
4067
4067
|
} else r = [];
|
|
@@ -4069,37 +4069,37 @@ var Un = {
|
|
|
4069
4069
|
return t.join("\n");
|
|
4070
4070
|
}
|
|
4071
4071
|
};
|
|
4072
|
-
|
|
4072
|
+
Kn.defaultYaml = {
|
|
4073
4073
|
explicit: !1,
|
|
4074
4074
|
version: "1.2"
|
|
4075
|
-
},
|
|
4075
|
+
}, Kn.defaultTags = { "!!": "tag:yaml.org,2002:" };
|
|
4076
4076
|
//#endregion
|
|
4077
4077
|
//#region node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/browser/dist/doc/anchors.js
|
|
4078
|
-
function
|
|
4078
|
+
function qn(e) {
|
|
4079
4079
|
if (/[\x00-\x19\s,[\]{}]/.test(e)) {
|
|
4080
4080
|
let t = `Anchor must not contain whitespace or control characters: ${JSON.stringify(e)}`;
|
|
4081
4081
|
throw Error(t);
|
|
4082
4082
|
}
|
|
4083
4083
|
return !0;
|
|
4084
4084
|
}
|
|
4085
|
-
function
|
|
4085
|
+
function Jn(e) {
|
|
4086
4086
|
let t = /* @__PURE__ */ new Set();
|
|
4087
|
-
return
|
|
4087
|
+
return Ln(e, { Value(e, n) {
|
|
4088
4088
|
n.anchor && t.add(n.anchor);
|
|
4089
4089
|
} }), t;
|
|
4090
4090
|
}
|
|
4091
|
-
function
|
|
4091
|
+
function Yn(e, t) {
|
|
4092
4092
|
for (let n = 1;; ++n) {
|
|
4093
4093
|
let r = `${e}${n}`;
|
|
4094
4094
|
if (!t.has(r)) return r;
|
|
4095
4095
|
}
|
|
4096
4096
|
}
|
|
4097
|
-
function
|
|
4097
|
+
function Xn(e, t) {
|
|
4098
4098
|
let n = [], r = /* @__PURE__ */ new Map(), i = null;
|
|
4099
4099
|
return {
|
|
4100
4100
|
onAnchor: (r) => {
|
|
4101
|
-
n.push(r), i ??=
|
|
4102
|
-
let a =
|
|
4101
|
+
n.push(r), i ??= Jn(e);
|
|
4102
|
+
let a = Yn(t, i);
|
|
4103
4103
|
return i.add(a), a;
|
|
4104
4104
|
},
|
|
4105
4105
|
setAnchors: () => {
|
|
@@ -4117,22 +4117,22 @@ function Yn(e, t) {
|
|
|
4117
4117
|
}
|
|
4118
4118
|
//#endregion
|
|
4119
4119
|
//#region node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/browser/dist/doc/applyReviver.js
|
|
4120
|
-
function
|
|
4120
|
+
function Zn(e, t, n, r) {
|
|
4121
4121
|
if (r && typeof r == "object") {
|
|
4122
4122
|
if (Array.isArray(r)) for (let t = 0, n = r.length; t < n; ++t) {
|
|
4123
|
-
let n = r[t], i =
|
|
4123
|
+
let n = r[t], i = Zn(e, r, String(t), n);
|
|
4124
4124
|
i === void 0 ? delete r[t] : i !== n && (r[t] = i);
|
|
4125
4125
|
}
|
|
4126
4126
|
else if (r instanceof Map) for (let t of Array.from(r.keys())) {
|
|
4127
|
-
let n = r.get(t), i =
|
|
4127
|
+
let n = r.get(t), i = Zn(e, r, t, n);
|
|
4128
4128
|
i === void 0 ? r.delete(t) : i !== n && r.set(t, i);
|
|
4129
4129
|
}
|
|
4130
4130
|
else if (r instanceof Set) for (let t of Array.from(r)) {
|
|
4131
|
-
let n =
|
|
4131
|
+
let n = Zn(e, r, t, t);
|
|
4132
4132
|
n === void 0 ? r.delete(t) : n !== t && (r.delete(t), r.add(n));
|
|
4133
4133
|
}
|
|
4134
4134
|
else for (let [t, n] of Object.entries(r)) {
|
|
4135
|
-
let i =
|
|
4135
|
+
let i = Zn(e, r, t, n);
|
|
4136
4136
|
i === void 0 ? delete r[t] : i !== n && (r[t] = i);
|
|
4137
4137
|
}
|
|
4138
4138
|
}
|
|
@@ -4143,7 +4143,7 @@ function Xn(e, t, n, r) {
|
|
|
4143
4143
|
function J(e, t, n) {
|
|
4144
4144
|
if (Array.isArray(e)) return e.map((e, t) => J(e, String(t), n));
|
|
4145
4145
|
if (e && typeof e.toJSON == "function") {
|
|
4146
|
-
if (!n || !
|
|
4146
|
+
if (!n || !Pn(e)) return e.toJSON(t, n);
|
|
4147
4147
|
let r = {
|
|
4148
4148
|
aliasCount: 0,
|
|
4149
4149
|
count: 1,
|
|
@@ -4159,7 +4159,7 @@ function J(e, t, n) {
|
|
|
4159
4159
|
}
|
|
4160
4160
|
//#endregion
|
|
4161
4161
|
//#region node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/browser/dist/nodes/Node.js
|
|
4162
|
-
var
|
|
4162
|
+
var Qn = class {
|
|
4163
4163
|
constructor(e) {
|
|
4164
4164
|
Object.defineProperty(this, H, { value: e });
|
|
4165
4165
|
}
|
|
@@ -4168,7 +4168,7 @@ var Zn = class {
|
|
|
4168
4168
|
return this.range && (e.range = this.range.slice()), e;
|
|
4169
4169
|
}
|
|
4170
4170
|
toJS(e, { mapAsMap: t, maxAliasCount: n, onAnchor: r, reviver: i } = {}) {
|
|
4171
|
-
if (!
|
|
4171
|
+
if (!jn(e)) throw TypeError("A document argument is required");
|
|
4172
4172
|
let a = {
|
|
4173
4173
|
anchors: /* @__PURE__ */ new Map(),
|
|
4174
4174
|
doc: e,
|
|
@@ -4178,19 +4178,19 @@ var Zn = class {
|
|
|
4178
4178
|
maxAliasCount: typeof n == "number" ? n : 100
|
|
4179
4179
|
}, o = J(this, "", a);
|
|
4180
4180
|
if (typeof r == "function") for (let { count: e, res: t } of a.anchors.values()) r(t, e);
|
|
4181
|
-
return typeof i == "function" ?
|
|
4181
|
+
return typeof i == "function" ? Zn(i, { "": o }, "", o) : o;
|
|
4182
4182
|
}
|
|
4183
|
-
},
|
|
4183
|
+
}, $n = class extends Qn {
|
|
4184
4184
|
constructor(e) {
|
|
4185
|
-
super(
|
|
4185
|
+
super(wn), this.source = e, Object.defineProperty(this, "tag", { set() {
|
|
4186
4186
|
throw Error("Alias nodes cannot have tags");
|
|
4187
4187
|
} });
|
|
4188
4188
|
}
|
|
4189
4189
|
resolve(e, t) {
|
|
4190
4190
|
if (t?.maxAliasCount === 0) throw ReferenceError("Alias resolution is disabled");
|
|
4191
4191
|
let n;
|
|
4192
|
-
t?.aliasResolveCache ? n = t.aliasResolveCache : (n = [],
|
|
4193
|
-
(
|
|
4192
|
+
t?.aliasResolveCache ? n = t.aliasResolveCache : (n = [], Ln(e, { Node: (e, t) => {
|
|
4193
|
+
(An(t) || Pn(t)) && n.push(t);
|
|
4194
4194
|
} }), t && (t.aliasResolveCache = n));
|
|
4195
4195
|
let r;
|
|
4196
4196
|
for (let e of n) {
|
|
@@ -4209,13 +4209,13 @@ var Zn = class {
|
|
|
4209
4209
|
let o = n.get(a);
|
|
4210
4210
|
/* istanbul ignore if */
|
|
4211
4211
|
if (o ||= (J(a, null, t), n.get(a)), o?.res === void 0) throw ReferenceError("This should not happen: Alias anchor was not resolved?");
|
|
4212
|
-
if (i >= 0 && (o.count += 1, o.aliasCount === 0 && (o.aliasCount =
|
|
4212
|
+
if (i >= 0 && (o.count += 1, o.aliasCount === 0 && (o.aliasCount = er(r, a, n)), o.count * o.aliasCount > i)) throw ReferenceError("Excessive alias count indicates a resource exhaustion attack");
|
|
4213
4213
|
return o.res;
|
|
4214
4214
|
}
|
|
4215
4215
|
toString(e, t, n) {
|
|
4216
4216
|
let r = `*${this.source}`;
|
|
4217
4217
|
if (e) {
|
|
4218
|
-
if (
|
|
4218
|
+
if (qn(this.source), e.options.verifyAliasOrder && !e.anchors.has(this.source)) {
|
|
4219
4219
|
let e = `Unresolved alias (the anchor must be set before the alias): ${this.source}`;
|
|
4220
4220
|
throw Error(e);
|
|
4221
4221
|
}
|
|
@@ -4224,30 +4224,30 @@ var Zn = class {
|
|
|
4224
4224
|
return r;
|
|
4225
4225
|
}
|
|
4226
4226
|
};
|
|
4227
|
-
function
|
|
4228
|
-
if (
|
|
4227
|
+
function er(e, t, n) {
|
|
4228
|
+
if (An(t)) {
|
|
4229
4229
|
let r = t.resolve(e), i = n && r && n.get(r);
|
|
4230
4230
|
return i ? i.count * i.aliasCount : 0;
|
|
4231
4231
|
}
|
|
4232
4232
|
if (G(t)) {
|
|
4233
4233
|
let r = 0;
|
|
4234
4234
|
for (let i of t.items) {
|
|
4235
|
-
let t =
|
|
4235
|
+
let t = er(e, i, n);
|
|
4236
4236
|
t > r && (r = t);
|
|
4237
4237
|
}
|
|
4238
4238
|
return r;
|
|
4239
4239
|
}
|
|
4240
4240
|
if (U(t)) {
|
|
4241
|
-
let r =
|
|
4241
|
+
let r = er(e, t.key, n), i = er(e, t.value, n);
|
|
4242
4242
|
return Math.max(r, i);
|
|
4243
4243
|
}
|
|
4244
4244
|
return 1;
|
|
4245
4245
|
}
|
|
4246
4246
|
//#endregion
|
|
4247
4247
|
//#region node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/browser/dist/nodes/Scalar.js
|
|
4248
|
-
var
|
|
4248
|
+
var tr = (e) => !e || typeof e != "function" && typeof e != "object", Y = class extends Qn {
|
|
4249
4249
|
constructor(e) {
|
|
4250
|
-
super(
|
|
4250
|
+
super(On), this.value = e;
|
|
4251
4251
|
}
|
|
4252
4252
|
toJSON(e, t) {
|
|
4253
4253
|
return t?.keep ? this.value : J(this.value, e, t);
|
|
@@ -4259,8 +4259,8 @@ var er = (e) => !e || typeof e != "function" && typeof e != "object", Y = class
|
|
|
4259
4259
|
Y.BLOCK_FOLDED = "BLOCK_FOLDED", Y.BLOCK_LITERAL = "BLOCK_LITERAL", Y.PLAIN = "PLAIN", Y.QUOTE_DOUBLE = "QUOTE_DOUBLE", Y.QUOTE_SINGLE = "QUOTE_SINGLE";
|
|
4260
4260
|
//#endregion
|
|
4261
4261
|
//#region node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/browser/dist/doc/createNode.js
|
|
4262
|
-
var
|
|
4263
|
-
function
|
|
4262
|
+
var nr = "tag:yaml.org,2002:";
|
|
4263
|
+
function rr(e, t, n) {
|
|
4264
4264
|
if (t) {
|
|
4265
4265
|
let e = n.filter((e) => e.tag === t), r = e.find((e) => !e.format) ?? e[0];
|
|
4266
4266
|
if (!r) throw Error(`Tag ${t} not found`);
|
|
@@ -4268,29 +4268,29 @@ function nr(e, t, n) {
|
|
|
4268
4268
|
}
|
|
4269
4269
|
return n.find((t) => t.identify?.(e) && !t.format);
|
|
4270
4270
|
}
|
|
4271
|
-
function
|
|
4272
|
-
if (
|
|
4271
|
+
function ir(e, t, n) {
|
|
4272
|
+
if (jn(e) && (e = e.contents), K(e)) return e;
|
|
4273
4273
|
if (U(e)) {
|
|
4274
|
-
let t = n.schema[
|
|
4274
|
+
let t = n.schema[En].createNode?.(n.schema, null, n);
|
|
4275
4275
|
return t.items.push(e), t;
|
|
4276
4276
|
}
|
|
4277
4277
|
(e instanceof String || e instanceof Number || e instanceof Boolean || typeof BigInt < "u" && e instanceof BigInt) && (e = e.valueOf());
|
|
4278
4278
|
let { aliasDuplicateObjects: r, onAnchor: i, onTagObj: a, schema: o, sourceObjects: s } = n, c;
|
|
4279
4279
|
if (r && e && typeof e == "object") {
|
|
4280
|
-
if (c = s.get(e), c) return c.anchor ?? (c.anchor = i(e)), new
|
|
4280
|
+
if (c = s.get(e), c) return c.anchor ?? (c.anchor = i(e)), new $n(c.anchor);
|
|
4281
4281
|
c = {
|
|
4282
4282
|
anchor: null,
|
|
4283
4283
|
node: null
|
|
4284
4284
|
}, s.set(e, c);
|
|
4285
4285
|
}
|
|
4286
|
-
t?.startsWith("!!") && (t =
|
|
4287
|
-
let l =
|
|
4286
|
+
t?.startsWith("!!") && (t = nr + t.slice(2));
|
|
4287
|
+
let l = rr(e, t, o.tags);
|
|
4288
4288
|
if (!l) {
|
|
4289
4289
|
if (e && typeof e.toJSON == "function" && (e = e.toJSON()), !e || typeof e != "object") {
|
|
4290
4290
|
let t = new Y(e);
|
|
4291
4291
|
return c && (c.node = t), t;
|
|
4292
4292
|
}
|
|
4293
|
-
l = e instanceof Map ? o[
|
|
4293
|
+
l = e instanceof Map ? o[En] : Symbol.iterator in Object(e) ? o[kn] : o[En];
|
|
4294
4294
|
}
|
|
4295
4295
|
a && (a(l), delete n.onTagObj);
|
|
4296
4296
|
let u = l?.createNode ? l.createNode(n.schema, e, n) : typeof l?.nodeClass?.from == "function" ? l.nodeClass.from(n.schema, e, n) : new Y(e);
|
|
@@ -4298,7 +4298,7 @@ function rr(e, t, n) {
|
|
|
4298
4298
|
}
|
|
4299
4299
|
//#endregion
|
|
4300
4300
|
//#region node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/browser/dist/nodes/Collection.js
|
|
4301
|
-
function
|
|
4301
|
+
function ar(e, t, n) {
|
|
4302
4302
|
let r = n;
|
|
4303
4303
|
for (let e = t.length - 1; e >= 0; --e) {
|
|
4304
4304
|
let n = t[e];
|
|
@@ -4307,7 +4307,7 @@ function ir(e, t, n) {
|
|
|
4307
4307
|
e[n] = r, r = e;
|
|
4308
4308
|
} else r = /* @__PURE__ */ new Map([[n, r]]);
|
|
4309
4309
|
}
|
|
4310
|
-
return
|
|
4310
|
+
return ir(r, void 0, {
|
|
4311
4311
|
aliasDuplicateObjects: !1,
|
|
4312
4312
|
keepUndefined: !1,
|
|
4313
4313
|
onAnchor: () => {
|
|
@@ -4317,7 +4317,7 @@ function ir(e, t, n) {
|
|
|
4317
4317
|
sourceObjects: /* @__PURE__ */ new Map()
|
|
4318
4318
|
});
|
|
4319
4319
|
}
|
|
4320
|
-
var
|
|
4320
|
+
var or = (e) => e == null || typeof e == "object" && !!e[Symbol.iterator]().next().done, sr = class extends Qn {
|
|
4321
4321
|
constructor(e, t) {
|
|
4322
4322
|
super(e), Object.defineProperty(this, "schema", {
|
|
4323
4323
|
value: t,
|
|
@@ -4331,11 +4331,11 @@ var ar = (e) => e == null || typeof e == "object" && !!e[Symbol.iterator]().next
|
|
|
4331
4331
|
return e && (t.schema = e), t.items = t.items.map((t) => K(t) || U(t) ? t.clone(e) : t), this.range && (t.range = this.range.slice()), t;
|
|
4332
4332
|
}
|
|
4333
4333
|
addIn(e, t) {
|
|
4334
|
-
if (
|
|
4334
|
+
if (or(e)) this.add(t);
|
|
4335
4335
|
else {
|
|
4336
4336
|
let [n, ...r] = e, i = this.get(n, !0);
|
|
4337
4337
|
if (G(i)) i.addIn(r, t);
|
|
4338
|
-
else if (i === void 0 && this.schema) this.set(n,
|
|
4338
|
+
else if (i === void 0 && this.schema) this.set(n, ar(this.schema, r, t));
|
|
4339
4339
|
else throw Error(`Expected YAML collection at ${n}. Remaining path: ${r}`);
|
|
4340
4340
|
}
|
|
4341
4341
|
}
|
|
@@ -4369,16 +4369,16 @@ var ar = (e) => e == null || typeof e == "object" && !!e[Symbol.iterator]().next
|
|
|
4369
4369
|
else {
|
|
4370
4370
|
let e = this.get(n, !0);
|
|
4371
4371
|
if (G(e)) e.setIn(r, t);
|
|
4372
|
-
else if (e === void 0 && this.schema) this.set(n,
|
|
4372
|
+
else if (e === void 0 && this.schema) this.set(n, ar(this.schema, r, t));
|
|
4373
4373
|
else throw Error(`Expected YAML collection at ${n}. Remaining path: ${r}`);
|
|
4374
4374
|
}
|
|
4375
4375
|
}
|
|
4376
|
-
},
|
|
4377
|
-
function
|
|
4376
|
+
}, cr = (e) => e.replace(/^(?!$)(?: $)?/gm, "#");
|
|
4377
|
+
function lr(e, t) {
|
|
4378
4378
|
return /^\n+$/.test(e) ? e.substring(1) : t ? e.replace(/^(?! *$)/gm, t) : e;
|
|
4379
4379
|
}
|
|
4380
|
-
var
|
|
4381
|
-
function
|
|
4380
|
+
var ur = (e, t, n) => e.endsWith("\n") ? lr(n, t) : n.includes("\n") ? "\n" + lr(n, t) : (e.endsWith(" ") ? "" : " ") + n, dr = "flow", fr = "block", pr = "quoted";
|
|
4381
|
+
function mr(e, t, n = "flow", { indentAtStart: r, lineWidth: i = 80, minContentWidth: a = 20, onFold: o, onOverflow: s } = {}) {
|
|
4382
4382
|
if (!i || i < 0) return e;
|
|
4383
4383
|
i < a && (a = 0);
|
|
4384
4384
|
let c = Math.max(1 + a, 1 + i - t.length);
|
|
@@ -4386,7 +4386,7 @@ function pr(e, t, n = "flow", { indentAtStart: r, lineWidth: i = 80, minContentW
|
|
|
4386
4386
|
let l = [], u = {}, d = i - t.length;
|
|
4387
4387
|
typeof r == "number" && (r > i - Math.max(2, a) ? l.push(0) : d = i - r);
|
|
4388
4388
|
let f, p, m = !1, h = -1, g = -1, _ = -1;
|
|
4389
|
-
n === "block" && (h =
|
|
4389
|
+
n === "block" && (h = hr(e, h, t.length), h !== -1 && (d = h + c));
|
|
4390
4390
|
for (let r; r = e[h += 1];) {
|
|
4391
4391
|
if (n === "quoted" && r === "\\") {
|
|
4392
4392
|
switch (g = h, e[h + 1]) {
|
|
@@ -4403,7 +4403,7 @@ function pr(e, t, n = "flow", { indentAtStart: r, lineWidth: i = 80, minContentW
|
|
|
4403
4403
|
}
|
|
4404
4404
|
_ = h;
|
|
4405
4405
|
}
|
|
4406
|
-
if (r === "\n") n === "block" && (h =
|
|
4406
|
+
if (r === "\n") n === "block" && (h = hr(e, h, t.length)), d = h + t.length + c, f = void 0;
|
|
4407
4407
|
else {
|
|
4408
4408
|
if (r === " " && p && p !== " " && p !== "\n" && p !== " ") {
|
|
4409
4409
|
let t = e[h + 1];
|
|
@@ -4430,7 +4430,7 @@ function pr(e, t, n = "flow", { indentAtStart: r, lineWidth: i = 80, minContentW
|
|
|
4430
4430
|
}
|
|
4431
4431
|
return v;
|
|
4432
4432
|
}
|
|
4433
|
-
function
|
|
4433
|
+
function hr(e, t, n) {
|
|
4434
4434
|
let r = t, i = t + 1, a = e[i];
|
|
4435
4435
|
for (; a === " " || a === " ";) if (t < i + n) a = e[++t];
|
|
4436
4436
|
else {
|
|
@@ -4443,12 +4443,12 @@ function mr(e, t, n) {
|
|
|
4443
4443
|
}
|
|
4444
4444
|
//#endregion
|
|
4445
4445
|
//#region node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/browser/dist/stringify/stringifyString.js
|
|
4446
|
-
var
|
|
4446
|
+
var gr = (e, t) => ({
|
|
4447
4447
|
indentAtStart: t ? e.indent.length : e.indentAtStart,
|
|
4448
4448
|
lineWidth: e.options.lineWidth,
|
|
4449
4449
|
minContentWidth: e.options.minContentWidth
|
|
4450
|
-
}),
|
|
4451
|
-
function
|
|
4450
|
+
}), _r = (e) => /^(%|---|\.\.\.)/m.test(e);
|
|
4451
|
+
function vr(e, t, n) {
|
|
4452
4452
|
if (!t || t < 0) return !1;
|
|
4453
4453
|
let r = t - n, i = e.length;
|
|
4454
4454
|
if (i <= r) return !1;
|
|
@@ -4458,10 +4458,10 @@ function _r(e, t, n) {
|
|
|
4458
4458
|
}
|
|
4459
4459
|
return !0;
|
|
4460
4460
|
}
|
|
4461
|
-
function
|
|
4461
|
+
function yr(e, t) {
|
|
4462
4462
|
let n = JSON.stringify(e);
|
|
4463
4463
|
if (t.options.doubleQuotedAsJSON) return n;
|
|
4464
|
-
let { implicitKey: r } = t, i = t.options.doubleQuotedMinMultiLineLength, a = t.indent || (
|
|
4464
|
+
let { implicitKey: r } = t, i = t.options.doubleQuotedMinMultiLineLength, a = t.indent || (_r(e) ? " " : ""), o = "", s = 0;
|
|
4465
4465
|
for (let e = 0, t = n[e]; t; t = n[++e]) if (t === " " && n[e + 1] === "\\" && n[e + 2] === "n" && (o += n.slice(s, e) + "\\ ", e += 1, s = e, t = "\\"), t === "\\") switch (n[e + 1]) {
|
|
4466
4466
|
case "u":
|
|
4467
4467
|
{
|
|
@@ -4506,32 +4506,32 @@ function vr(e, t) {
|
|
|
4506
4506
|
break;
|
|
4507
4507
|
default: e += 1;
|
|
4508
4508
|
}
|
|
4509
|
-
return o = s ? o + n.slice(s) : n, r ? o :
|
|
4510
|
-
}
|
|
4511
|
-
function yr(e, t) {
|
|
4512
|
-
if (t.options.singleQuote === !1 || t.implicitKey && e.includes("\n") || /[ \t]\n|\n[ \t]/.test(e)) return vr(e, t);
|
|
4513
|
-
let n = t.indent || (gr(e) ? " " : ""), r = "'" + e.replace(/'/g, "''").replace(/\n+/g, `$&\n${n}`) + "'";
|
|
4514
|
-
return t.implicitKey ? r : pr(r, n, ur, hr(t, !1));
|
|
4509
|
+
return o = s ? o + n.slice(s) : n, r ? o : mr(o, a, pr, gr(t, !1));
|
|
4515
4510
|
}
|
|
4516
4511
|
function br(e, t) {
|
|
4512
|
+
if (t.options.singleQuote === !1 || t.implicitKey && e.includes("\n") || /[ \t]\n|\n[ \t]/.test(e)) return yr(e, t);
|
|
4513
|
+
let n = t.indent || (_r(e) ? " " : ""), r = "'" + e.replace(/'/g, "''").replace(/\n+/g, `$&\n${n}`) + "'";
|
|
4514
|
+
return t.implicitKey ? r : mr(r, n, dr, gr(t, !1));
|
|
4515
|
+
}
|
|
4516
|
+
function xr(e, t) {
|
|
4517
4517
|
let { singleQuote: n } = t.options, r;
|
|
4518
|
-
if (n === !1) r =
|
|
4518
|
+
if (n === !1) r = yr;
|
|
4519
4519
|
else {
|
|
4520
4520
|
let t = e.includes("\""), i = e.includes("'");
|
|
4521
|
-
r = t && !i ?
|
|
4521
|
+
r = t && !i ? br : i && !t ? yr : n ? br : yr;
|
|
4522
4522
|
}
|
|
4523
4523
|
return r(e, t);
|
|
4524
4524
|
}
|
|
4525
|
-
var
|
|
4525
|
+
var Sr;
|
|
4526
4526
|
try {
|
|
4527
|
-
|
|
4527
|
+
Sr = /* @__PURE__ */ RegExp("(^|(?<!\n))\n+(?!\n|$)", "g");
|
|
4528
4528
|
} catch {
|
|
4529
|
-
|
|
4529
|
+
Sr = /\n+(?!\n|$)/g;
|
|
4530
4530
|
}
|
|
4531
|
-
function
|
|
4531
|
+
function Cr({ comment: e, type: t, value: n }, r, i, a) {
|
|
4532
4532
|
let { blockQuote: o, commentString: s, lineWidth: c } = r.options;
|
|
4533
|
-
if (!o || /\n[\t ]+$/.test(n)) return
|
|
4534
|
-
let l = r.indent || (r.forceBlockIndent ||
|
|
4533
|
+
if (!o || /\n[\t ]+$/.test(n)) return xr(n, r);
|
|
4534
|
+
let l = r.indent || (r.forceBlockIndent || _r(n) ? " " : ""), u = o === "literal" ? !0 : o === "folded" || t === Y.BLOCK_FOLDED ? !1 : t === Y.BLOCK_LITERAL || !vr(n, c, l.length);
|
|
4535
4535
|
if (!n) return u ? "|\n" : ">\n";
|
|
4536
4536
|
let d, f;
|
|
4537
4537
|
for (f = n.length; f > 0; --f) {
|
|
@@ -4539,7 +4539,7 @@ function Sr({ comment: e, type: t, value: n }, r, i, a) {
|
|
|
4539
4539
|
if (e !== "\n" && e !== " " && e !== " ") break;
|
|
4540
4540
|
}
|
|
4541
4541
|
let p = n.substring(f), m = p.indexOf("\n");
|
|
4542
|
-
m === -1 ? d = "-" : n === p || m !== p.length - 1 ? (d = "+", a && a()) : d = "", p &&= (n = n.slice(0, -p.length), p[p.length - 1] === "\n" && (p = p.slice(0, -1)), p.replace(
|
|
4542
|
+
m === -1 ? d = "-" : n === p || m !== p.length - 1 ? (d = "+", a && a()) : d = "", p &&= (n = n.slice(0, -p.length), p[p.length - 1] === "\n" && (p = p.slice(0, -1)), p.replace(Sr, `$&${l}`));
|
|
4543
4543
|
let h = !1, g, _ = -1;
|
|
4544
4544
|
for (g = 0; g < n.length; ++g) {
|
|
4545
4545
|
let e = n[g];
|
|
@@ -4551,41 +4551,41 @@ function Sr({ comment: e, type: t, value: n }, r, i, a) {
|
|
|
4551
4551
|
v &&= (n = n.substring(v.length), v.replace(/\n+/g, `$&${l}`));
|
|
4552
4552
|
let y = (h ? l ? "2" : "1" : "") + d;
|
|
4553
4553
|
if (e && (y += " " + s(e.replace(/ ?[\r\n]+/g, " ")), i && i()), !u) {
|
|
4554
|
-
let e = n.replace(/\n+/g, "\n$&").replace(/(?:^|\n)([\t ].*)(?:([\n\t ]*)\n(?![\n\t ]))?/g, "$1$2").replace(/\n+/g, `$&${l}`), i = !1, a =
|
|
4554
|
+
let e = n.replace(/\n+/g, "\n$&").replace(/(?:^|\n)([\t ].*)(?:([\n\t ]*)\n(?![\n\t ]))?/g, "$1$2").replace(/\n+/g, `$&${l}`), i = !1, a = gr(r, !0);
|
|
4555
4555
|
o !== "folded" && t !== Y.BLOCK_FOLDED && (a.onOverflow = () => {
|
|
4556
4556
|
i = !0;
|
|
4557
4557
|
});
|
|
4558
|
-
let s =
|
|
4558
|
+
let s = mr(`${v}${e}${p}`, l, fr, a);
|
|
4559
4559
|
if (!i) return `>${y}\n${l}${s}`;
|
|
4560
4560
|
}
|
|
4561
4561
|
return n = n.replace(/\n+/g, `$&${l}`), `|${y}\n${l}${v}${n}${p}`;
|
|
4562
4562
|
}
|
|
4563
|
-
function
|
|
4563
|
+
function wr(e, t, n, r) {
|
|
4564
4564
|
let { type: i, value: a } = e, { actualString: o, implicitKey: s, indent: c, indentStep: l, inFlow: u } = t;
|
|
4565
|
-
if (s && a.includes("\n") || u && /[[\]{},]/.test(a)) return
|
|
4566
|
-
if (/^[\n\t ,[\]{}#&*!|>'"%@`]|^[?-]$|^[?-][ \t]|[\n:][ \t]|[ \t]\n|[\n\t ]#|[\n\t :]$/.test(a)) return s || u || !a.includes("\n") ?
|
|
4567
|
-
if (!s && !u && i !== Y.PLAIN && a.includes("\n")) return
|
|
4568
|
-
if (
|
|
4569
|
-
if (c === "") return t.forceBlockIndent = !0,
|
|
4570
|
-
if (s && c === l) return
|
|
4565
|
+
if (s && a.includes("\n") || u && /[[\]{},]/.test(a)) return xr(a, t);
|
|
4566
|
+
if (/^[\n\t ,[\]{}#&*!|>'"%@`]|^[?-]$|^[?-][ \t]|[\n:][ \t]|[ \t]\n|[\n\t ]#|[\n\t :]$/.test(a)) return s || u || !a.includes("\n") ? xr(a, t) : Cr(e, t, n, r);
|
|
4567
|
+
if (!s && !u && i !== Y.PLAIN && a.includes("\n")) return Cr(e, t, n, r);
|
|
4568
|
+
if (_r(a)) {
|
|
4569
|
+
if (c === "") return t.forceBlockIndent = !0, Cr(e, t, n, r);
|
|
4570
|
+
if (s && c === l) return xr(a, t);
|
|
4571
4571
|
}
|
|
4572
4572
|
let d = a.replace(/\n+/g, `$&\n${c}`);
|
|
4573
4573
|
if (o) {
|
|
4574
4574
|
let e = (e) => e.default && e.tag !== "tag:yaml.org,2002:str" && e.test?.test(d), { compat: n, tags: r } = t.doc.schema;
|
|
4575
|
-
if (r.some(e) || n?.some(e)) return
|
|
4575
|
+
if (r.some(e) || n?.some(e)) return xr(a, t);
|
|
4576
4576
|
}
|
|
4577
|
-
return s ? d :
|
|
4577
|
+
return s ? d : mr(d, c, dr, gr(t, !1));
|
|
4578
4578
|
}
|
|
4579
|
-
function
|
|
4579
|
+
function Tr(e, t, n, r) {
|
|
4580
4580
|
let { implicitKey: i, inFlow: a } = t, o = typeof e.value == "string" ? e : Object.assign({}, e, { value: String(e.value) }), { type: s } = e;
|
|
4581
4581
|
s !== Y.QUOTE_DOUBLE && /[\x00-\x08\x0b-\x1f\x7f-\x9f\u{D800}-\u{DFFF}]/u.test(o.value) && (s = Y.QUOTE_DOUBLE);
|
|
4582
4582
|
let c = (e) => {
|
|
4583
4583
|
switch (e) {
|
|
4584
4584
|
case Y.BLOCK_FOLDED:
|
|
4585
|
-
case Y.BLOCK_LITERAL: return i || a ?
|
|
4586
|
-
case Y.QUOTE_DOUBLE: return
|
|
4587
|
-
case Y.QUOTE_SINGLE: return
|
|
4588
|
-
case Y.PLAIN: return
|
|
4585
|
+
case Y.BLOCK_LITERAL: return i || a ? xr(o.value, t) : Cr(o, t, n, r);
|
|
4586
|
+
case Y.QUOTE_DOUBLE: return yr(o.value, t);
|
|
4587
|
+
case Y.QUOTE_SINGLE: return br(o.value, t);
|
|
4588
|
+
case Y.PLAIN: return wr(o, t, n, r);
|
|
4589
4589
|
default: return null;
|
|
4590
4590
|
}
|
|
4591
4591
|
}, l = c(s);
|
|
@@ -4597,10 +4597,10 @@ function wr(e, t, n, r) {
|
|
|
4597
4597
|
}
|
|
4598
4598
|
//#endregion
|
|
4599
4599
|
//#region node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/browser/dist/stringify/stringify.js
|
|
4600
|
-
function
|
|
4600
|
+
function Er(e, t) {
|
|
4601
4601
|
let n = Object.assign({
|
|
4602
4602
|
blockQuote: !0,
|
|
4603
|
-
commentString:
|
|
4603
|
+
commentString: cr,
|
|
4604
4604
|
defaultKeyType: null,
|
|
4605
4605
|
defaultStringType: "PLAIN",
|
|
4606
4606
|
directives: null,
|
|
@@ -4637,7 +4637,7 @@ function Tr(e, t) {
|
|
|
4637
4637
|
options: n
|
|
4638
4638
|
};
|
|
4639
4639
|
}
|
|
4640
|
-
function
|
|
4640
|
+
function Dr(e, t) {
|
|
4641
4641
|
if (t.tag) {
|
|
4642
4642
|
let n = e.filter((e) => e.tag === t.tag);
|
|
4643
4643
|
if (n.length > 0) return n.find((e) => e.format === t.format) ?? n[0];
|
|
@@ -4658,30 +4658,30 @@ function Er(e, t) {
|
|
|
4658
4658
|
}
|
|
4659
4659
|
return n;
|
|
4660
4660
|
}
|
|
4661
|
-
function
|
|
4661
|
+
function Or(e, t, { anchors: n, doc: r }) {
|
|
4662
4662
|
if (!r.directives) return "";
|
|
4663
4663
|
let i = [], a = (W(e) || G(e)) && e.anchor;
|
|
4664
|
-
a &&
|
|
4664
|
+
a && qn(a) && (n.add(a), i.push(`&${a}`));
|
|
4665
4665
|
let o = e.tag ?? (t.default ? null : t.tag);
|
|
4666
4666
|
return o && i.push(r.directives.tagString(o)), i.join(" ");
|
|
4667
4667
|
}
|
|
4668
|
-
function
|
|
4668
|
+
function kr(e, t, n, r) {
|
|
4669
4669
|
if (U(e)) return e.toString(t, n, r);
|
|
4670
|
-
if (
|
|
4670
|
+
if (An(e)) {
|
|
4671
4671
|
if (t.doc.directives) return e.toString(t);
|
|
4672
4672
|
if (t.resolvedAliases?.has(e)) throw TypeError("Cannot stringify circular structure without alias nodes");
|
|
4673
4673
|
t.resolvedAliases ? t.resolvedAliases.add(e) : t.resolvedAliases = /* @__PURE__ */ new Set([e]), e = e.resolve(t.doc);
|
|
4674
4674
|
}
|
|
4675
4675
|
let i, a = K(e) ? e : t.doc.createNode(e, { onTagObj: (e) => i = e });
|
|
4676
|
-
i ??=
|
|
4677
|
-
let o =
|
|
4676
|
+
i ??= Dr(t.doc.schema.tags, a);
|
|
4677
|
+
let o = Or(a, i, t);
|
|
4678
4678
|
o.length > 0 && (t.indentAtStart = (t.indentAtStart ?? 0) + o.length + 1);
|
|
4679
|
-
let s = typeof i.stringify == "function" ? i.stringify(a, t, n, r) : W(a) ?
|
|
4679
|
+
let s = typeof i.stringify == "function" ? i.stringify(a, t, n, r) : W(a) ? Tr(a, t, n, r) : a.toString(t, n, r);
|
|
4680
4680
|
return o ? W(a) || s[0] === "{" || s[0] === "[" ? `${o} ${s}` : `${o}\n${t.indent}${s}` : s;
|
|
4681
4681
|
}
|
|
4682
4682
|
//#endregion
|
|
4683
4683
|
//#region node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/browser/dist/stringify/stringifyPair.js
|
|
4684
|
-
function
|
|
4684
|
+
function Ar({ key: e, value: t }, n, r, i) {
|
|
4685
4685
|
let { allNullValues: a, doc: o, indent: s, indentStep: c, options: { commentString: l, indentSeq: u, simpleKeys: d } } = n, f = K(e) && e.comment || null;
|
|
4686
4686
|
if (d) {
|
|
4687
4687
|
if (f) throw Error("With simple keys, key nodes cannot have comments");
|
|
@@ -4693,22 +4693,22 @@ function kr({ key: e, value: t }, n, r, i) {
|
|
|
4693
4693
|
implicitKey: !p && (d || !a),
|
|
4694
4694
|
indent: s + c
|
|
4695
4695
|
});
|
|
4696
|
-
let m = !1, h = !1, g =
|
|
4696
|
+
let m = !1, h = !1, g = kr(e, n, () => m = !0, () => h = !0);
|
|
4697
4697
|
if (!p && !n.inFlow && g.length > 1024) {
|
|
4698
4698
|
if (d) throw Error("With simple keys, single line scalar must not span more than 1024 characters");
|
|
4699
4699
|
p = !0;
|
|
4700
4700
|
}
|
|
4701
4701
|
if (n.inFlow) {
|
|
4702
4702
|
if (a || t == null) return m && r && r(), g === "" ? "?" : p ? `? ${g}` : g;
|
|
4703
|
-
} else if (a && !d || t == null && p) return g = `? ${g}`, f && !m ? g +=
|
|
4704
|
-
m && (f = null), p ? (f && (g +=
|
|
4703
|
+
} else if (a && !d || t == null && p) return g = `? ${g}`, f && !m ? g += ur(g, n.indent, l(f)) : h && i && i(), g;
|
|
4704
|
+
m && (f = null), p ? (f && (g += ur(g, n.indent, l(f))), g = `? ${g}\n${s}:`) : (g = `${g}:`, f && (g += ur(g, n.indent, l(f))));
|
|
4705
4705
|
let _, v, y;
|
|
4706
|
-
K(t) ? (_ = !!t.spaceBefore, v = t.commentBefore, y = t.comment) : (_ = !1, v = null, y = null, t && typeof t == "object" && (t = o.createNode(t))), n.implicitKey = !1, !p && !f && W(t) && (n.indentAtStart = g.length + 1), h = !1, !u && c.length >= 2 && !n.inFlow && !p &&
|
|
4707
|
-
let ee = !1, b =
|
|
4706
|
+
K(t) ? (_ = !!t.spaceBefore, v = t.commentBefore, y = t.comment) : (_ = !1, v = null, y = null, t && typeof t == "object" && (t = o.createNode(t))), n.implicitKey = !1, !p && !f && W(t) && (n.indentAtStart = g.length + 1), h = !1, !u && c.length >= 2 && !n.inFlow && !p && Nn(t) && !t.flow && !t.tag && !t.anchor && (n.indent = n.indent.substring(2));
|
|
4707
|
+
let ee = !1, b = kr(t, n, () => ee = !0, () => h = !0), x = " ";
|
|
4708
4708
|
if (f || _ || v) {
|
|
4709
4709
|
if (x = _ ? "\n" : "", v) {
|
|
4710
4710
|
let e = l(v);
|
|
4711
|
-
x += `\n${
|
|
4711
|
+
x += `\n${lr(e, n.indent)}`;
|
|
4712
4712
|
}
|
|
4713
4713
|
b === "" && !n.inFlow ? x === "\n" && y && (x = "\n\n") : x += `\n${n.indent}`;
|
|
4714
4714
|
} else if (!p && G(t)) {
|
|
@@ -4722,32 +4722,32 @@ function kr({ key: e, value: t }, n, r, i) {
|
|
|
4722
4722
|
t || (x = `\n${n.indent}`);
|
|
4723
4723
|
}
|
|
4724
4724
|
} else (b === "" || b[0] === "\n") && (x = "");
|
|
4725
|
-
return g += x + b, n.inFlow ? ee && r && r() : y && !ee ? g +=
|
|
4725
|
+
return g += x + b, n.inFlow ? ee && r && r() : y && !ee ? g += ur(g, n.indent, l(y)) : h && i && i(), g;
|
|
4726
4726
|
}
|
|
4727
4727
|
//#endregion
|
|
4728
4728
|
//#region node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/browser/dist/log.js
|
|
4729
|
-
function
|
|
4729
|
+
function jr(e, t) {
|
|
4730
4730
|
(e === "debug" || e === "warn") && console.warn(t);
|
|
4731
4731
|
}
|
|
4732
4732
|
//#endregion
|
|
4733
4733
|
//#region node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/browser/dist/schema/yaml-1.1/merge.js
|
|
4734
|
-
var
|
|
4735
|
-
identify: (e) => e ===
|
|
4734
|
+
var Mr = "<<", Nr = {
|
|
4735
|
+
identify: (e) => e === Mr || typeof e == "symbol" && e.description === Mr,
|
|
4736
4736
|
default: "key",
|
|
4737
4737
|
tag: "tag:yaml.org,2002:merge",
|
|
4738
4738
|
test: /^<<$/,
|
|
4739
|
-
resolve: () => Object.assign(new Y(Symbol(
|
|
4740
|
-
stringify: () =>
|
|
4741
|
-
},
|
|
4742
|
-
function Pr(e, t, n) {
|
|
4743
|
-
let r = Ir(e, n);
|
|
4744
|
-
if (Mn(r)) for (let n of r.items) Fr(e, t, n);
|
|
4745
|
-
else if (Array.isArray(r)) for (let n of r) Fr(e, t, n);
|
|
4746
|
-
else Fr(e, t, r);
|
|
4747
|
-
}
|
|
4739
|
+
resolve: () => Object.assign(new Y(Symbol(Mr)), { addToJSMap: Fr }),
|
|
4740
|
+
stringify: () => Mr
|
|
4741
|
+
}, Pr = (e, t) => (Nr.identify(t) || W(t) && (!t.type || t.type === Y.PLAIN) && Nr.identify(t.value)) && e?.doc.schema.tags.some((e) => e.tag === Nr.tag && e.default);
|
|
4748
4742
|
function Fr(e, t, n) {
|
|
4749
|
-
let r =
|
|
4750
|
-
if (
|
|
4743
|
+
let r = Lr(e, n);
|
|
4744
|
+
if (Nn(r)) for (let n of r.items) Ir(e, t, n);
|
|
4745
|
+
else if (Array.isArray(r)) for (let n of r) Ir(e, t, n);
|
|
4746
|
+
else Ir(e, t, r);
|
|
4747
|
+
}
|
|
4748
|
+
function Ir(e, t, n) {
|
|
4749
|
+
let r = Lr(e, n);
|
|
4750
|
+
if (!Mn(r)) throw Error("Merge sources must be maps or map aliases");
|
|
4751
4751
|
let i = r.toJSON(null, e, Map);
|
|
4752
4752
|
for (let [e, n] of i) t instanceof Map ? t.has(e) || t.set(e, n) : t instanceof Set ? t.add(e) : Object.prototype.hasOwnProperty.call(t, e) || Object.defineProperty(t, e, {
|
|
4753
4753
|
value: n,
|
|
@@ -4757,20 +4757,20 @@ function Fr(e, t, n) {
|
|
|
4757
4757
|
});
|
|
4758
4758
|
return t;
|
|
4759
4759
|
}
|
|
4760
|
-
function
|
|
4761
|
-
return e &&
|
|
4760
|
+
function Lr(e, t) {
|
|
4761
|
+
return e && An(t) ? t.resolve(e.doc, e) : t;
|
|
4762
4762
|
}
|
|
4763
4763
|
//#endregion
|
|
4764
4764
|
//#region node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/browser/dist/nodes/addPairToJSMap.js
|
|
4765
|
-
function
|
|
4765
|
+
function Rr(e, t, { key: n, value: r }) {
|
|
4766
4766
|
if (K(n) && n.addToJSMap) n.addToJSMap(e, t, r);
|
|
4767
|
-
else if (
|
|
4767
|
+
else if (Pr(e, n)) Fr(e, t, r);
|
|
4768
4768
|
else {
|
|
4769
4769
|
let i = J(n, "", e);
|
|
4770
4770
|
if (t instanceof Map) t.set(i, J(r, i, e));
|
|
4771
4771
|
else if (t instanceof Set) t.add(i);
|
|
4772
4772
|
else {
|
|
4773
|
-
let a =
|
|
4773
|
+
let a = zr(n, i, e), o = J(r, a, e);
|
|
4774
4774
|
a in t ? Object.defineProperty(t, a, {
|
|
4775
4775
|
value: o,
|
|
4776
4776
|
writable: !0,
|
|
@@ -4781,18 +4781,18 @@ function Lr(e, t, { key: n, value: r }) {
|
|
|
4781
4781
|
}
|
|
4782
4782
|
return t;
|
|
4783
4783
|
}
|
|
4784
|
-
function
|
|
4784
|
+
function zr(e, t, n) {
|
|
4785
4785
|
if (t === null) return "";
|
|
4786
4786
|
if (typeof t != "object") return String(t);
|
|
4787
4787
|
if (K(e) && n?.doc) {
|
|
4788
|
-
let t =
|
|
4788
|
+
let t = Er(n.doc, {});
|
|
4789
4789
|
t.anchors = /* @__PURE__ */ new Set();
|
|
4790
4790
|
for (let e of n.anchors.keys()) t.anchors.add(e.anchor);
|
|
4791
4791
|
t.inFlow = !0, t.inStringifyKey = !0;
|
|
4792
4792
|
let r = e.toString(t);
|
|
4793
4793
|
if (!n.mapKeyWarned) {
|
|
4794
4794
|
let e = JSON.stringify(r);
|
|
4795
|
-
e.length > 40 && (e = e.substring(0, 36) + "...\""),
|
|
4795
|
+
e.length > 40 && (e = e.substring(0, 36) + "...\""), jr(n.doc.options.logLevel, `Keys with collection values will be stringified due to JS Object restrictions: ${e}. Set mapAsMap: true to use object keys.`), n.mapKeyWarned = !0;
|
|
4796
4796
|
}
|
|
4797
4797
|
return r;
|
|
4798
4798
|
}
|
|
@@ -4800,44 +4800,44 @@ function Rr(e, t, n) {
|
|
|
4800
4800
|
}
|
|
4801
4801
|
//#endregion
|
|
4802
4802
|
//#region node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/browser/dist/nodes/Pair.js
|
|
4803
|
-
function
|
|
4804
|
-
return new X(
|
|
4803
|
+
function Br(e, t, n) {
|
|
4804
|
+
return new X(ir(e, void 0, n), ir(t, void 0, n));
|
|
4805
4805
|
}
|
|
4806
4806
|
var X = class e {
|
|
4807
4807
|
constructor(e, t = null) {
|
|
4808
|
-
Object.defineProperty(this, H, { value:
|
|
4808
|
+
Object.defineProperty(this, H, { value: Dn }), this.key = e, this.value = t;
|
|
4809
4809
|
}
|
|
4810
4810
|
clone(t) {
|
|
4811
4811
|
let { key: n, value: r } = this;
|
|
4812
4812
|
return K(n) && (n = n.clone(t)), K(r) && (r = r.clone(t)), new e(n, r);
|
|
4813
4813
|
}
|
|
4814
4814
|
toJSON(e, t) {
|
|
4815
|
-
return
|
|
4815
|
+
return Rr(t, t?.mapAsMap ? /* @__PURE__ */ new Map() : {}, this);
|
|
4816
4816
|
}
|
|
4817
4817
|
toString(e, t, n) {
|
|
4818
|
-
return e?.doc ?
|
|
4818
|
+
return e?.doc ? Ar(this, e, t, n) : JSON.stringify(this);
|
|
4819
4819
|
}
|
|
4820
4820
|
};
|
|
4821
4821
|
//#endregion
|
|
4822
4822
|
//#region node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/browser/dist/stringify/stringifyCollection.js
|
|
4823
|
-
function
|
|
4824
|
-
return (t.inFlow ?? e.flow ?
|
|
4823
|
+
function Vr(e, t, n) {
|
|
4824
|
+
return (t.inFlow ?? e.flow ? Ur : Hr)(e, t, n);
|
|
4825
4825
|
}
|
|
4826
|
-
function
|
|
4826
|
+
function Hr({ comment: e, items: t }, n, { blockItemPrefix: r, flowChars: i, itemIndent: a, onChompKeep: o, onComment: s }) {
|
|
4827
4827
|
let { indent: c, options: { commentString: l } } = n, u = Object.assign({}, n, {
|
|
4828
4828
|
indent: a,
|
|
4829
4829
|
type: null
|
|
4830
4830
|
}), d = !1, f = [];
|
|
4831
4831
|
for (let e = 0; e < t.length; ++e) {
|
|
4832
4832
|
let i = t[e], o = null;
|
|
4833
|
-
if (K(i)) !d && i.spaceBefore && f.push(""),
|
|
4833
|
+
if (K(i)) !d && i.spaceBefore && f.push(""), Wr(n, f, i.commentBefore, d), i.comment && (o = i.comment);
|
|
4834
4834
|
else if (U(i)) {
|
|
4835
4835
|
let e = K(i.key) ? i.key : null;
|
|
4836
|
-
e && (!d && e.spaceBefore && f.push(""),
|
|
4836
|
+
e && (!d && e.spaceBefore && f.push(""), Wr(n, f, e.commentBefore, d));
|
|
4837
4837
|
}
|
|
4838
4838
|
d = !1;
|
|
4839
|
-
let s =
|
|
4840
|
-
o && (s +=
|
|
4839
|
+
let s = kr(i, u, () => o = null, () => d = !0);
|
|
4840
|
+
o && (s += ur(s, a, l(o))), d && o && (d = !1), f.push(r + s);
|
|
4841
4841
|
}
|
|
4842
4842
|
let p;
|
|
4843
4843
|
if (f.length === 0) p = i.start + i.end;
|
|
@@ -4848,9 +4848,9 @@ function Vr({ comment: e, items: t }, n, { blockItemPrefix: r, flowChars: i, ite
|
|
|
4848
4848
|
p += t ? `\n${c}${t}` : "\n";
|
|
4849
4849
|
}
|
|
4850
4850
|
}
|
|
4851
|
-
return e ? (p += "\n" +
|
|
4851
|
+
return e ? (p += "\n" + lr(l(e), c), s && s()) : d && o && o(), p;
|
|
4852
4852
|
}
|
|
4853
|
-
function
|
|
4853
|
+
function Ur({ items: e }, t, { flowChars: n, itemIndent: r }) {
|
|
4854
4854
|
let { indent: i, indentStep: a, flowCollectionPadding: o, options: { commentString: s } } = t;
|
|
4855
4855
|
r += a;
|
|
4856
4856
|
let c = Object.assign({}, t, {
|
|
@@ -4860,16 +4860,16 @@ function Hr({ items: e }, t, { flowChars: n, itemIndent: r }) {
|
|
|
4860
4860
|
}), l = !1, u = 0, d = [];
|
|
4861
4861
|
for (let n = 0; n < e.length; ++n) {
|
|
4862
4862
|
let i = e[n], a = null;
|
|
4863
|
-
if (K(i)) i.spaceBefore && d.push(""),
|
|
4863
|
+
if (K(i)) i.spaceBefore && d.push(""), Wr(t, d, i.commentBefore, !1), i.comment && (a = i.comment);
|
|
4864
4864
|
else if (U(i)) {
|
|
4865
4865
|
let e = K(i.key) ? i.key : null;
|
|
4866
|
-
e && (e.spaceBefore && d.push(""),
|
|
4866
|
+
e && (e.spaceBefore && d.push(""), Wr(t, d, e.commentBefore, !1), e.comment && (l = !0));
|
|
4867
4867
|
let n = K(i.value) ? i.value : null;
|
|
4868
4868
|
n ? (n.comment && (a = n.comment), n.commentBefore && (l = !0)) : i.value == null && e?.comment && (a = e.comment);
|
|
4869
4869
|
}
|
|
4870
4870
|
a && (l = !0);
|
|
4871
|
-
let o =
|
|
4872
|
-
l ||= d.length > u || o.includes("\n"), n < e.length - 1 ? o += "," : t.options.trailingComma && (t.options.lineWidth > 0 && (l ||= d.reduce((e, t) => e + t.length + 2, 2) + (o.length + 2) > t.options.lineWidth), l && (o += ",")), a && (o +=
|
|
4871
|
+
let o = kr(i, c, () => a = null);
|
|
4872
|
+
l ||= d.length > u || o.includes("\n"), n < e.length - 1 ? o += "," : t.options.trailingComma && (t.options.lineWidth > 0 && (l ||= d.reduce((e, t) => e + t.length + 2, 2) + (o.length + 2) > t.options.lineWidth), l && (o += ",")), a && (o += ur(o, r, s(a))), d.push(o), u = d.length;
|
|
4873
4873
|
}
|
|
4874
4874
|
let { start: f, end: p } = n;
|
|
4875
4875
|
if (d.length === 0) return f + p;
|
|
@@ -4884,30 +4884,30 @@ function Hr({ items: e }, t, { flowChars: n, itemIndent: r }) {
|
|
|
4884
4884
|
}
|
|
4885
4885
|
return `${f}${o}${d.join(" ")}${o}${p}`;
|
|
4886
4886
|
}
|
|
4887
|
-
function
|
|
4887
|
+
function Wr({ indent: e, options: { commentString: t } }, n, r, i) {
|
|
4888
4888
|
if (r && i && (r = r.replace(/^\n+/, "")), r) {
|
|
4889
|
-
let i =
|
|
4889
|
+
let i = lr(t(r), e);
|
|
4890
4890
|
n.push(i.trimStart());
|
|
4891
4891
|
}
|
|
4892
4892
|
}
|
|
4893
4893
|
//#endregion
|
|
4894
4894
|
//#region node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/browser/dist/nodes/YAMLMap.js
|
|
4895
|
-
function
|
|
4895
|
+
function Gr(e, t) {
|
|
4896
4896
|
let n = W(t) ? t.value : t;
|
|
4897
4897
|
for (let r of e) if (U(r) && (r.key === t || r.key === n || W(r.key) && r.key.value === n)) return r;
|
|
4898
4898
|
}
|
|
4899
|
-
var Z = class extends
|
|
4899
|
+
var Z = class extends sr {
|
|
4900
4900
|
static get tagName() {
|
|
4901
4901
|
return "tag:yaml.org,2002:map";
|
|
4902
4902
|
}
|
|
4903
4903
|
constructor(e) {
|
|
4904
|
-
super(
|
|
4904
|
+
super(En, e), this.items = [];
|
|
4905
4905
|
}
|
|
4906
4906
|
static from(e, t, n) {
|
|
4907
4907
|
let { keepUndefined: r, replacer: i } = n, a = new this(e), o = (e, o) => {
|
|
4908
4908
|
if (typeof i == "function") o = i.call(t, e, o);
|
|
4909
4909
|
else if (Array.isArray(i) && !i.includes(e)) return;
|
|
4910
|
-
(o !== void 0 || r) && a.items.push(
|
|
4910
|
+
(o !== void 0 || r) && a.items.push(Br(e, o, n));
|
|
4911
4911
|
};
|
|
4912
4912
|
if (t instanceof Map) for (let [e, n] of t) o(e, n);
|
|
4913
4913
|
else if (t && typeof t == "object") for (let e of Object.keys(t)) o(e, t[e]);
|
|
@@ -4916,25 +4916,25 @@ var Z = class extends or {
|
|
|
4916
4916
|
add(e, t) {
|
|
4917
4917
|
let n;
|
|
4918
4918
|
n = U(e) ? e : !e || typeof e != "object" || !("key" in e) ? new X(e, e?.value) : new X(e.key, e.value);
|
|
4919
|
-
let r =
|
|
4919
|
+
let r = Gr(this.items, n.key), i = this.schema?.sortMapEntries;
|
|
4920
4920
|
if (r) {
|
|
4921
4921
|
if (!t) throw Error(`Key ${n.key} already set`);
|
|
4922
|
-
W(r.value) &&
|
|
4922
|
+
W(r.value) && tr(n.value) ? r.value.value = n.value : r.value = n.value;
|
|
4923
4923
|
} else if (i) {
|
|
4924
4924
|
let e = this.items.findIndex((e) => i(n, e) < 0);
|
|
4925
4925
|
e === -1 ? this.items.push(n) : this.items.splice(e, 0, n);
|
|
4926
4926
|
} else this.items.push(n);
|
|
4927
4927
|
}
|
|
4928
4928
|
delete(e) {
|
|
4929
|
-
let t =
|
|
4929
|
+
let t = Gr(this.items, e);
|
|
4930
4930
|
return t ? this.items.splice(this.items.indexOf(t), 1).length > 0 : !1;
|
|
4931
4931
|
}
|
|
4932
4932
|
get(e, t) {
|
|
4933
|
-
let n =
|
|
4933
|
+
let n = Gr(this.items, e)?.value;
|
|
4934
4934
|
return (!t && W(n) ? n.value : n) ?? void 0;
|
|
4935
4935
|
}
|
|
4936
4936
|
has(e) {
|
|
4937
|
-
return !!
|
|
4937
|
+
return !!Gr(this.items, e);
|
|
4938
4938
|
}
|
|
4939
4939
|
set(e, t) {
|
|
4940
4940
|
this.add(new X(e, t), !0);
|
|
@@ -4942,13 +4942,13 @@ var Z = class extends or {
|
|
|
4942
4942
|
toJSON(e, t, n) {
|
|
4943
4943
|
let r = n ? new n() : t?.mapAsMap ? /* @__PURE__ */ new Map() : {};
|
|
4944
4944
|
t?.onCreate && t.onCreate(r);
|
|
4945
|
-
for (let e of this.items)
|
|
4945
|
+
for (let e of this.items) Rr(t, r, e);
|
|
4946
4946
|
return r;
|
|
4947
4947
|
}
|
|
4948
4948
|
toString(e, t, n) {
|
|
4949
4949
|
if (!e) return JSON.stringify(this);
|
|
4950
4950
|
for (let e of this.items) if (!U(e)) throw Error(`Map items must all be pairs; found ${JSON.stringify(e)} instead`);
|
|
4951
|
-
return !e.allNullValues && this.hasAllNullValues(!1) && (e = Object.assign({}, e, { allNullValues: !0 })),
|
|
4951
|
+
return !e.allNullValues && this.hasAllNullValues(!1) && (e = Object.assign({}, e, { allNullValues: !0 })), Vr(this, e, {
|
|
4952
4952
|
blockItemPrefix: "",
|
|
4953
4953
|
flowChars: {
|
|
4954
4954
|
start: "{",
|
|
@@ -4959,44 +4959,44 @@ var Z = class extends or {
|
|
|
4959
4959
|
onComment: t
|
|
4960
4960
|
});
|
|
4961
4961
|
}
|
|
4962
|
-
},
|
|
4962
|
+
}, Kr = {
|
|
4963
4963
|
collection: "map",
|
|
4964
4964
|
default: !0,
|
|
4965
4965
|
nodeClass: Z,
|
|
4966
4966
|
tag: "tag:yaml.org,2002:map",
|
|
4967
4967
|
resolve(e, t) {
|
|
4968
|
-
return
|
|
4968
|
+
return Mn(e) || t("Expected a mapping for this tag"), e;
|
|
4969
4969
|
},
|
|
4970
4970
|
createNode: (e, t, n) => Z.from(e, t, n)
|
|
4971
|
-
},
|
|
4971
|
+
}, qr = class extends sr {
|
|
4972
4972
|
static get tagName() {
|
|
4973
4973
|
return "tag:yaml.org,2002:seq";
|
|
4974
4974
|
}
|
|
4975
4975
|
constructor(e) {
|
|
4976
|
-
super(
|
|
4976
|
+
super(kn, e), this.items = [];
|
|
4977
4977
|
}
|
|
4978
4978
|
add(e) {
|
|
4979
4979
|
this.items.push(e);
|
|
4980
4980
|
}
|
|
4981
4981
|
delete(e) {
|
|
4982
|
-
let t =
|
|
4982
|
+
let t = Jr(e);
|
|
4983
4983
|
return typeof t == "number" && this.items.splice(t, 1).length > 0;
|
|
4984
4984
|
}
|
|
4985
4985
|
get(e, t) {
|
|
4986
|
-
let n =
|
|
4986
|
+
let n = Jr(e);
|
|
4987
4987
|
if (typeof n != "number") return;
|
|
4988
4988
|
let r = this.items[n];
|
|
4989
4989
|
return !t && W(r) ? r.value : r;
|
|
4990
4990
|
}
|
|
4991
4991
|
has(e) {
|
|
4992
|
-
let t =
|
|
4992
|
+
let t = Jr(e);
|
|
4993
4993
|
return typeof t == "number" && t < this.items.length;
|
|
4994
4994
|
}
|
|
4995
4995
|
set(e, t) {
|
|
4996
|
-
let n =
|
|
4996
|
+
let n = Jr(e);
|
|
4997
4997
|
if (typeof n != "number") throw Error(`Expected a valid index, not ${e}.`);
|
|
4998
4998
|
let r = this.items[n];
|
|
4999
|
-
W(r) &&
|
|
4999
|
+
W(r) && tr(t) ? r.value = t : this.items[n] = t;
|
|
5000
5000
|
}
|
|
5001
5001
|
toJSON(e, t) {
|
|
5002
5002
|
let n = [];
|
|
@@ -5006,7 +5006,7 @@ var Z = class extends or {
|
|
|
5006
5006
|
return n;
|
|
5007
5007
|
}
|
|
5008
5008
|
toString(e, t, n) {
|
|
5009
|
-
return e ?
|
|
5009
|
+
return e ? Vr(this, e, {
|
|
5010
5010
|
blockItemPrefix: "- ",
|
|
5011
5011
|
flowChars: {
|
|
5012
5012
|
start: "[",
|
|
@@ -5026,51 +5026,51 @@ var Z = class extends or {
|
|
|
5026
5026
|
let n = t instanceof Set ? a : String(e++);
|
|
5027
5027
|
a = r.call(t, n, a);
|
|
5028
5028
|
}
|
|
5029
|
-
i.items.push(
|
|
5029
|
+
i.items.push(ir(a, void 0, n));
|
|
5030
5030
|
}
|
|
5031
5031
|
}
|
|
5032
5032
|
return i;
|
|
5033
5033
|
}
|
|
5034
5034
|
};
|
|
5035
|
-
function
|
|
5035
|
+
function Jr(e) {
|
|
5036
5036
|
let t = W(e) ? e.value : e;
|
|
5037
5037
|
return t && typeof t == "string" && (t = Number(t)), typeof t == "number" && Number.isInteger(t) && t >= 0 ? t : null;
|
|
5038
5038
|
}
|
|
5039
5039
|
//#endregion
|
|
5040
5040
|
//#region node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/browser/dist/schema/common/seq.js
|
|
5041
|
-
var
|
|
5041
|
+
var Yr = {
|
|
5042
5042
|
collection: "seq",
|
|
5043
5043
|
default: !0,
|
|
5044
|
-
nodeClass:
|
|
5044
|
+
nodeClass: qr,
|
|
5045
5045
|
tag: "tag:yaml.org,2002:seq",
|
|
5046
5046
|
resolve(e, t) {
|
|
5047
|
-
return
|
|
5047
|
+
return Nn(e) || t("Expected a sequence for this tag"), e;
|
|
5048
5048
|
},
|
|
5049
|
-
createNode: (e, t, n) =>
|
|
5050
|
-
},
|
|
5049
|
+
createNode: (e, t, n) => qr.from(e, t, n)
|
|
5050
|
+
}, Xr = {
|
|
5051
5051
|
identify: (e) => typeof e == "string",
|
|
5052
5052
|
default: !0,
|
|
5053
5053
|
tag: "tag:yaml.org,2002:str",
|
|
5054
5054
|
resolve: (e) => e,
|
|
5055
5055
|
stringify(e, t, n, r) {
|
|
5056
|
-
return t = Object.assign({ actualString: !0 }, t),
|
|
5056
|
+
return t = Object.assign({ actualString: !0 }, t), Tr(e, t, n, r);
|
|
5057
5057
|
}
|
|
5058
|
-
},
|
|
5058
|
+
}, Zr = {
|
|
5059
5059
|
identify: (e) => e == null,
|
|
5060
5060
|
createNode: () => new Y(null),
|
|
5061
5061
|
default: !0,
|
|
5062
5062
|
tag: "tag:yaml.org,2002:null",
|
|
5063
5063
|
test: /^(?:~|[Nn]ull|NULL)?$/,
|
|
5064
5064
|
resolve: () => new Y(null),
|
|
5065
|
-
stringify: ({ source: e }, t) => typeof e == "string" &&
|
|
5066
|
-
},
|
|
5065
|
+
stringify: ({ source: e }, t) => typeof e == "string" && Zr.test.test(e) ? e : t.options.nullStr
|
|
5066
|
+
}, Qr = {
|
|
5067
5067
|
identify: (e) => typeof e == "boolean",
|
|
5068
5068
|
default: !0,
|
|
5069
5069
|
tag: "tag:yaml.org,2002:bool",
|
|
5070
5070
|
test: /^(?:[Tt]rue|TRUE|[Ff]alse|FALSE)$/,
|
|
5071
5071
|
resolve: (e) => new Y(e[0] === "t" || e[0] === "T"),
|
|
5072
5072
|
stringify({ source: e, value: t }, n) {
|
|
5073
|
-
return e &&
|
|
5073
|
+
return e && Qr.test.test(e) && t === (e[0] === "t" || e[0] === "T") ? e : t ? n.options.trueStr : n.options.falseStr;
|
|
5074
5074
|
}
|
|
5075
5075
|
};
|
|
5076
5076
|
//#endregion
|
|
@@ -5090,14 +5090,14 @@ function Q({ format: e, minFractionDigits: t, tag: n, value: r }) {
|
|
|
5090
5090
|
}
|
|
5091
5091
|
//#endregion
|
|
5092
5092
|
//#region node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/browser/dist/schema/core/float.js
|
|
5093
|
-
var
|
|
5093
|
+
var $r = {
|
|
5094
5094
|
identify: (e) => typeof e == "number",
|
|
5095
5095
|
default: !0,
|
|
5096
5096
|
tag: "tag:yaml.org,2002:float",
|
|
5097
5097
|
test: /^(?:[-+]?\.(?:inf|Inf|INF)|\.nan|\.NaN|\.NAN)$/,
|
|
5098
5098
|
resolve: (e) => e.slice(-3).toLowerCase() === "nan" ? NaN : e[0] === "-" ? -Infinity : Infinity,
|
|
5099
5099
|
stringify: Q
|
|
5100
|
-
},
|
|
5100
|
+
}, ei = {
|
|
5101
5101
|
identify: (e) => typeof e == "number",
|
|
5102
5102
|
default: !0,
|
|
5103
5103
|
tag: "tag:yaml.org,2002:float",
|
|
@@ -5108,7 +5108,7 @@ var Qr = {
|
|
|
5108
5108
|
let t = Number(e.value);
|
|
5109
5109
|
return isFinite(t) ? t.toExponential() : Q(e);
|
|
5110
5110
|
}
|
|
5111
|
-
},
|
|
5111
|
+
}, ti = {
|
|
5112
5112
|
identify: (e) => typeof e == "number",
|
|
5113
5113
|
default: !0,
|
|
5114
5114
|
tag: "tag:yaml.org,2002:float",
|
|
@@ -5118,59 +5118,59 @@ var Qr = {
|
|
|
5118
5118
|
return n !== -1 && e[e.length - 1] === "0" && (t.minFractionDigits = e.length - n - 1), t;
|
|
5119
5119
|
},
|
|
5120
5120
|
stringify: Q
|
|
5121
|
-
},
|
|
5122
|
-
function
|
|
5121
|
+
}, ni = (e) => typeof e == "bigint" || Number.isInteger(e), ri = (e, t, n, { intAsBigInt: r }) => r ? BigInt(e) : parseInt(e.substring(t), n);
|
|
5122
|
+
function ii(e, t, n) {
|
|
5123
5123
|
let { value: r } = e;
|
|
5124
|
-
return
|
|
5124
|
+
return ni(r) && r >= 0 ? n + r.toString(t) : Q(e);
|
|
5125
5125
|
}
|
|
5126
|
-
var
|
|
5127
|
-
identify: (e) =>
|
|
5126
|
+
var ai = {
|
|
5127
|
+
identify: (e) => ni(e) && e >= 0,
|
|
5128
5128
|
default: !0,
|
|
5129
5129
|
tag: "tag:yaml.org,2002:int",
|
|
5130
5130
|
format: "OCT",
|
|
5131
5131
|
test: /^0o[0-7]+$/,
|
|
5132
|
-
resolve: (e, t, n) =>
|
|
5133
|
-
stringify: (e) =>
|
|
5134
|
-
},
|
|
5135
|
-
identify:
|
|
5132
|
+
resolve: (e, t, n) => ri(e, 2, 8, n),
|
|
5133
|
+
stringify: (e) => ii(e, 8, "0o")
|
|
5134
|
+
}, oi = {
|
|
5135
|
+
identify: ni,
|
|
5136
5136
|
default: !0,
|
|
5137
5137
|
tag: "tag:yaml.org,2002:int",
|
|
5138
5138
|
test: /^[-+]?[0-9]+$/,
|
|
5139
|
-
resolve: (e, t, n) =>
|
|
5139
|
+
resolve: (e, t, n) => ri(e, 0, 10, n),
|
|
5140
5140
|
stringify: Q
|
|
5141
|
-
},
|
|
5142
|
-
identify: (e) =>
|
|
5141
|
+
}, si = {
|
|
5142
|
+
identify: (e) => ni(e) && e >= 0,
|
|
5143
5143
|
default: !0,
|
|
5144
5144
|
tag: "tag:yaml.org,2002:int",
|
|
5145
5145
|
format: "HEX",
|
|
5146
5146
|
test: /^0x[0-9a-fA-F]+$/,
|
|
5147
|
-
resolve: (e, t, n) =>
|
|
5148
|
-
stringify: (e) =>
|
|
5149
|
-
},
|
|
5150
|
-
|
|
5151
|
-
Jr,
|
|
5147
|
+
resolve: (e, t, n) => ri(e, 2, 16, n),
|
|
5148
|
+
stringify: (e) => ii(e, 16, "0x")
|
|
5149
|
+
}, ci = [
|
|
5150
|
+
Kr,
|
|
5152
5151
|
Yr,
|
|
5153
5152
|
Xr,
|
|
5154
5153
|
Zr,
|
|
5155
|
-
|
|
5154
|
+
Qr,
|
|
5156
5155
|
ai,
|
|
5157
5156
|
oi,
|
|
5158
|
-
|
|
5157
|
+
si,
|
|
5159
5158
|
$r,
|
|
5160
|
-
ei
|
|
5159
|
+
ei,
|
|
5160
|
+
ti
|
|
5161
5161
|
];
|
|
5162
5162
|
//#endregion
|
|
5163
5163
|
//#region node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/browser/dist/schema/json/schema.js
|
|
5164
|
-
function
|
|
5164
|
+
function li(e) {
|
|
5165
5165
|
return typeof e == "bigint" || Number.isInteger(e);
|
|
5166
5166
|
}
|
|
5167
|
-
var
|
|
5167
|
+
var ui = ({ value: e }) => JSON.stringify(e), di = [
|
|
5168
5168
|
{
|
|
5169
5169
|
identify: (e) => typeof e == "string",
|
|
5170
5170
|
default: !0,
|
|
5171
5171
|
tag: "tag:yaml.org,2002:str",
|
|
5172
5172
|
resolve: (e) => e,
|
|
5173
|
-
stringify:
|
|
5173
|
+
stringify: ui
|
|
5174
5174
|
},
|
|
5175
5175
|
{
|
|
5176
5176
|
identify: (e) => e == null,
|
|
@@ -5179,7 +5179,7 @@ var li = ({ value: e }) => JSON.stringify(e), ui = [
|
|
|
5179
5179
|
tag: "tag:yaml.org,2002:null",
|
|
5180
5180
|
test: /^null$/,
|
|
5181
5181
|
resolve: () => null,
|
|
5182
|
-
stringify:
|
|
5182
|
+
stringify: ui
|
|
5183
5183
|
},
|
|
5184
5184
|
{
|
|
5185
5185
|
identify: (e) => typeof e == "boolean",
|
|
@@ -5187,15 +5187,15 @@ var li = ({ value: e }) => JSON.stringify(e), ui = [
|
|
|
5187
5187
|
tag: "tag:yaml.org,2002:bool",
|
|
5188
5188
|
test: /^true$|^false$/,
|
|
5189
5189
|
resolve: (e) => e === "true",
|
|
5190
|
-
stringify:
|
|
5190
|
+
stringify: ui
|
|
5191
5191
|
},
|
|
5192
5192
|
{
|
|
5193
|
-
identify:
|
|
5193
|
+
identify: li,
|
|
5194
5194
|
default: !0,
|
|
5195
5195
|
tag: "tag:yaml.org,2002:int",
|
|
5196
5196
|
test: /^-?(?:0|[1-9][0-9]*)$/,
|
|
5197
5197
|
resolve: (e, t, { intAsBigInt: n }) => n ? BigInt(e) : parseInt(e, 10),
|
|
5198
|
-
stringify: ({ value: e }) =>
|
|
5198
|
+
stringify: ({ value: e }) => li(e) ? e.toString() : JSON.stringify(e)
|
|
5199
5199
|
},
|
|
5200
5200
|
{
|
|
5201
5201
|
identify: (e) => typeof e == "number",
|
|
@@ -5203,16 +5203,16 @@ var li = ({ value: e }) => JSON.stringify(e), ui = [
|
|
|
5203
5203
|
tag: "tag:yaml.org,2002:float",
|
|
5204
5204
|
test: /^-?(?:0|[1-9][0-9]*)(?:\.[0-9]*)?(?:[eE][-+]?[0-9]+)?$/,
|
|
5205
5205
|
resolve: (e) => parseFloat(e),
|
|
5206
|
-
stringify:
|
|
5206
|
+
stringify: ui
|
|
5207
5207
|
}
|
|
5208
|
-
],
|
|
5208
|
+
], fi = [Kr, Yr].concat(di, {
|
|
5209
5209
|
default: !0,
|
|
5210
5210
|
tag: "",
|
|
5211
5211
|
test: /^/,
|
|
5212
5212
|
resolve(e, t) {
|
|
5213
5213
|
return t(`Unresolved plain scalar ${JSON.stringify(e)}`), e;
|
|
5214
5214
|
}
|
|
5215
|
-
}),
|
|
5215
|
+
}), pi = {
|
|
5216
5216
|
identify: (e) => e instanceof Uint8Array,
|
|
5217
5217
|
default: !1,
|
|
5218
5218
|
tag: "tag:yaml.org,2002:binary",
|
|
@@ -5237,7 +5237,7 @@ var li = ({ value: e }) => JSON.stringify(e), ui = [
|
|
|
5237
5237
|
for (let t = 0, r = 0; t < n; ++t, r += e) i[t] = s.substr(r, e);
|
|
5238
5238
|
s = i.join(t === Y.BLOCK_LITERAL ? "\n" : " ");
|
|
5239
5239
|
}
|
|
5240
|
-
return
|
|
5240
|
+
return Tr({
|
|
5241
5241
|
comment: e,
|
|
5242
5242
|
type: t,
|
|
5243
5243
|
value: s
|
|
@@ -5246,11 +5246,11 @@ var li = ({ value: e }) => JSON.stringify(e), ui = [
|
|
|
5246
5246
|
};
|
|
5247
5247
|
//#endregion
|
|
5248
5248
|
//#region node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/browser/dist/schema/yaml-1.1/pairs.js
|
|
5249
|
-
function
|
|
5250
|
-
if (
|
|
5249
|
+
function mi(e, t) {
|
|
5250
|
+
if (Nn(e)) for (let n = 0; n < e.items.length; ++n) {
|
|
5251
5251
|
let r = e.items[n];
|
|
5252
5252
|
if (!U(r)) {
|
|
5253
|
-
if (
|
|
5253
|
+
if (Mn(r)) {
|
|
5254
5254
|
r.items.length > 1 && t("Each pair must have its own sequence indicator");
|
|
5255
5255
|
let e = r.items[0] || new X(new Y(null));
|
|
5256
5256
|
if (r.commentBefore && (e.key.commentBefore = e.key.commentBefore ? `${r.commentBefore}\n${e.key.commentBefore}` : r.commentBefore), r.comment) {
|
|
@@ -5265,8 +5265,8 @@ function pi(e, t) {
|
|
|
5265
5265
|
else t("Expected a sequence for this tag");
|
|
5266
5266
|
return e;
|
|
5267
5267
|
}
|
|
5268
|
-
function
|
|
5269
|
-
let { replacer: r } = n, i = new
|
|
5268
|
+
function hi(e, t, n) {
|
|
5269
|
+
let { replacer: r } = n, i = new qr(e);
|
|
5270
5270
|
i.tag = "tag:yaml.org,2002:pairs";
|
|
5271
5271
|
let a = 0;
|
|
5272
5272
|
if (t && Symbol.iterator in Object(t)) for (let e of t) {
|
|
@@ -5280,17 +5280,17 @@ function mi(e, t, n) {
|
|
|
5280
5280
|
if (t.length === 1) o = t[0], s = e[o];
|
|
5281
5281
|
else throw TypeError(`Expected tuple with one key, not ${t.length} keys`);
|
|
5282
5282
|
} else o = e;
|
|
5283
|
-
i.items.push(
|
|
5283
|
+
i.items.push(Br(o, s, n));
|
|
5284
5284
|
}
|
|
5285
5285
|
return i;
|
|
5286
5286
|
}
|
|
5287
|
-
var
|
|
5287
|
+
var gi = {
|
|
5288
5288
|
collection: "seq",
|
|
5289
5289
|
default: !1,
|
|
5290
5290
|
tag: "tag:yaml.org,2002:pairs",
|
|
5291
|
-
resolve:
|
|
5292
|
-
createNode:
|
|
5293
|
-
},
|
|
5291
|
+
resolve: mi,
|
|
5292
|
+
createNode: hi
|
|
5293
|
+
}, _i = class e extends qr {
|
|
5294
5294
|
constructor() {
|
|
5295
5295
|
super(), this.add = Z.prototype.add.bind(this), this.delete = Z.prototype.delete.bind(this), this.get = Z.prototype.get.bind(this), this.has = Z.prototype.has.bind(this), this.set = Z.prototype.set.bind(this), this.tag = e.tag;
|
|
5296
5296
|
}
|
|
@@ -5306,51 +5306,51 @@ var hi = {
|
|
|
5306
5306
|
return n;
|
|
5307
5307
|
}
|
|
5308
5308
|
static from(e, t, n) {
|
|
5309
|
-
let r =
|
|
5309
|
+
let r = hi(e, t, n), i = new this();
|
|
5310
5310
|
return i.items = r.items, i;
|
|
5311
5311
|
}
|
|
5312
5312
|
};
|
|
5313
|
-
|
|
5314
|
-
var
|
|
5313
|
+
_i.tag = "tag:yaml.org,2002:omap";
|
|
5314
|
+
var vi = {
|
|
5315
5315
|
collection: "seq",
|
|
5316
5316
|
identify: (e) => e instanceof Map,
|
|
5317
|
-
nodeClass:
|
|
5317
|
+
nodeClass: _i,
|
|
5318
5318
|
default: !1,
|
|
5319
5319
|
tag: "tag:yaml.org,2002:omap",
|
|
5320
5320
|
resolve(e, t) {
|
|
5321
|
-
let n =
|
|
5321
|
+
let n = mi(e, t), r = [];
|
|
5322
5322
|
for (let { key: e } of n.items) W(e) && (r.includes(e.value) ? t(`Ordered maps must not include duplicate keys: ${e.value}`) : r.push(e.value));
|
|
5323
|
-
return Object.assign(new
|
|
5323
|
+
return Object.assign(new _i(), n);
|
|
5324
5324
|
},
|
|
5325
|
-
createNode: (e, t, n) =>
|
|
5325
|
+
createNode: (e, t, n) => _i.from(e, t, n)
|
|
5326
5326
|
};
|
|
5327
5327
|
//#endregion
|
|
5328
5328
|
//#region node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/browser/dist/schema/yaml-1.1/bool.js
|
|
5329
|
-
function
|
|
5330
|
-
return t && (e ?
|
|
5329
|
+
function yi({ value: e, source: t }, n) {
|
|
5330
|
+
return t && (e ? bi : xi).test.test(t) ? t : e ? n.options.trueStr : n.options.falseStr;
|
|
5331
5331
|
}
|
|
5332
|
-
var
|
|
5332
|
+
var bi = {
|
|
5333
5333
|
identify: (e) => e === !0,
|
|
5334
5334
|
default: !0,
|
|
5335
5335
|
tag: "tag:yaml.org,2002:bool",
|
|
5336
5336
|
test: /^(?:Y|y|[Yy]es|YES|[Tt]rue|TRUE|[Oo]n|ON)$/,
|
|
5337
5337
|
resolve: () => new Y(!0),
|
|
5338
|
-
stringify:
|
|
5339
|
-
},
|
|
5338
|
+
stringify: yi
|
|
5339
|
+
}, xi = {
|
|
5340
5340
|
identify: (e) => e === !1,
|
|
5341
5341
|
default: !0,
|
|
5342
5342
|
tag: "tag:yaml.org,2002:bool",
|
|
5343
5343
|
test: /^(?:N|n|[Nn]o|NO|[Ff]alse|FALSE|[Oo]ff|OFF)$/,
|
|
5344
5344
|
resolve: () => new Y(!1),
|
|
5345
|
-
stringify:
|
|
5346
|
-
},
|
|
5345
|
+
stringify: yi
|
|
5346
|
+
}, Si = {
|
|
5347
5347
|
identify: (e) => typeof e == "number",
|
|
5348
5348
|
default: !0,
|
|
5349
5349
|
tag: "tag:yaml.org,2002:float",
|
|
5350
5350
|
test: /^(?:[-+]?\.(?:inf|Inf|INF)|\.nan|\.NaN|\.NAN)$/,
|
|
5351
5351
|
resolve: (e) => e.slice(-3).toLowerCase() === "nan" ? NaN : e[0] === "-" ? -Infinity : Infinity,
|
|
5352
5352
|
stringify: Q
|
|
5353
|
-
},
|
|
5353
|
+
}, Ci = {
|
|
5354
5354
|
identify: (e) => typeof e == "number",
|
|
5355
5355
|
default: !0,
|
|
5356
5356
|
tag: "tag:yaml.org,2002:float",
|
|
@@ -5361,7 +5361,7 @@ var yi = {
|
|
|
5361
5361
|
let t = Number(e.value);
|
|
5362
5362
|
return isFinite(t) ? t.toExponential() : Q(e);
|
|
5363
5363
|
}
|
|
5364
|
-
},
|
|
5364
|
+
}, wi = {
|
|
5365
5365
|
identify: (e) => typeof e == "number",
|
|
5366
5366
|
default: !0,
|
|
5367
5367
|
tag: "tag:yaml.org,2002:float",
|
|
@@ -5375,8 +5375,8 @@ var yi = {
|
|
|
5375
5375
|
return t;
|
|
5376
5376
|
},
|
|
5377
5377
|
stringify: Q
|
|
5378
|
-
},
|
|
5379
|
-
function
|
|
5378
|
+
}, Ti = (e) => typeof e == "bigint" || Number.isInteger(e);
|
|
5379
|
+
function Ei(e, t, n, { intAsBigInt: r }) {
|
|
5380
5380
|
let i = e[0];
|
|
5381
5381
|
if ((i === "-" || i === "+") && (t += 1), e = e.substring(t).replace(/_/g, ""), r) {
|
|
5382
5382
|
switch (n) {
|
|
@@ -5394,60 +5394,60 @@ function Ti(e, t, n, { intAsBigInt: r }) {
|
|
|
5394
5394
|
let a = parseInt(e, n);
|
|
5395
5395
|
return i === "-" ? -1 * a : a;
|
|
5396
5396
|
}
|
|
5397
|
-
function
|
|
5397
|
+
function Di(e, t, n) {
|
|
5398
5398
|
let { value: r } = e;
|
|
5399
|
-
if (
|
|
5399
|
+
if (Ti(r)) {
|
|
5400
5400
|
let e = r.toString(t);
|
|
5401
5401
|
return r < 0 ? "-" + n + e.substr(1) : n + e;
|
|
5402
5402
|
}
|
|
5403
5403
|
return Q(e);
|
|
5404
5404
|
}
|
|
5405
|
-
var
|
|
5406
|
-
identify:
|
|
5405
|
+
var Oi = {
|
|
5406
|
+
identify: Ti,
|
|
5407
5407
|
default: !0,
|
|
5408
5408
|
tag: "tag:yaml.org,2002:int",
|
|
5409
5409
|
format: "BIN",
|
|
5410
5410
|
test: /^[-+]?0b[0-1_]+$/,
|
|
5411
|
-
resolve: (e, t, n) =>
|
|
5412
|
-
stringify: (e) =>
|
|
5413
|
-
},
|
|
5414
|
-
identify:
|
|
5411
|
+
resolve: (e, t, n) => Ei(e, 2, 2, n),
|
|
5412
|
+
stringify: (e) => Di(e, 2, "0b")
|
|
5413
|
+
}, ki = {
|
|
5414
|
+
identify: Ti,
|
|
5415
5415
|
default: !0,
|
|
5416
5416
|
tag: "tag:yaml.org,2002:int",
|
|
5417
5417
|
format: "OCT",
|
|
5418
5418
|
test: /^[-+]?0[0-7_]+$/,
|
|
5419
|
-
resolve: (e, t, n) =>
|
|
5420
|
-
stringify: (e) =>
|
|
5421
|
-
},
|
|
5422
|
-
identify:
|
|
5419
|
+
resolve: (e, t, n) => Ei(e, 1, 8, n),
|
|
5420
|
+
stringify: (e) => Di(e, 8, "0")
|
|
5421
|
+
}, Ai = {
|
|
5422
|
+
identify: Ti,
|
|
5423
5423
|
default: !0,
|
|
5424
5424
|
tag: "tag:yaml.org,2002:int",
|
|
5425
5425
|
test: /^[-+]?[0-9][0-9_]*$/,
|
|
5426
|
-
resolve: (e, t, n) =>
|
|
5426
|
+
resolve: (e, t, n) => Ei(e, 0, 10, n),
|
|
5427
5427
|
stringify: Q
|
|
5428
|
-
},
|
|
5429
|
-
identify:
|
|
5428
|
+
}, ji = {
|
|
5429
|
+
identify: Ti,
|
|
5430
5430
|
default: !0,
|
|
5431
5431
|
tag: "tag:yaml.org,2002:int",
|
|
5432
5432
|
format: "HEX",
|
|
5433
5433
|
test: /^[-+]?0x[0-9a-fA-F_]+$/,
|
|
5434
|
-
resolve: (e, t, n) =>
|
|
5435
|
-
stringify: (e) =>
|
|
5436
|
-
},
|
|
5434
|
+
resolve: (e, t, n) => Ei(e, 2, 16, n),
|
|
5435
|
+
stringify: (e) => Di(e, 16, "0x")
|
|
5436
|
+
}, Mi = class e extends Z {
|
|
5437
5437
|
constructor(t) {
|
|
5438
5438
|
super(t), this.tag = e.tag;
|
|
5439
5439
|
}
|
|
5440
5440
|
add(e) {
|
|
5441
5441
|
let t;
|
|
5442
|
-
t = U(e) ? e : e && typeof e == "object" && "key" in e && "value" in e && e.value === null ? new X(e.key, null) : new X(e, null),
|
|
5442
|
+
t = U(e) ? e : e && typeof e == "object" && "key" in e && "value" in e && e.value === null ? new X(e.key, null) : new X(e, null), Gr(this.items, t.key) || this.items.push(t);
|
|
5443
5443
|
}
|
|
5444
5444
|
get(e, t) {
|
|
5445
|
-
let n =
|
|
5445
|
+
let n = Gr(this.items, e);
|
|
5446
5446
|
return !t && U(n) ? W(n.key) ? n.key.value : n.key : n;
|
|
5447
5447
|
}
|
|
5448
5448
|
set(e, t) {
|
|
5449
5449
|
if (typeof t != "boolean") throw Error(`Expected boolean value for set(key, value) in a YAML set, not ${typeof t}`);
|
|
5450
|
-
let n =
|
|
5450
|
+
let n = Gr(this.items, e);
|
|
5451
5451
|
n && !t ? this.items.splice(this.items.indexOf(n), 1) : !n && t && this.items.push(new X(e));
|
|
5452
5452
|
}
|
|
5453
5453
|
toJSON(e, t) {
|
|
@@ -5460,21 +5460,21 @@ var Di = {
|
|
|
5460
5460
|
}
|
|
5461
5461
|
static from(e, t, n) {
|
|
5462
5462
|
let { replacer: r } = n, i = new this(e);
|
|
5463
|
-
if (t && Symbol.iterator in Object(t)) for (let e of t) typeof r == "function" && (e = r.call(t, e, e)), i.items.push(
|
|
5463
|
+
if (t && Symbol.iterator in Object(t)) for (let e of t) typeof r == "function" && (e = r.call(t, e, e)), i.items.push(Br(e, null, n));
|
|
5464
5464
|
return i;
|
|
5465
5465
|
}
|
|
5466
5466
|
};
|
|
5467
|
-
|
|
5468
|
-
var
|
|
5467
|
+
Mi.tag = "tag:yaml.org,2002:set";
|
|
5468
|
+
var Ni = {
|
|
5469
5469
|
collection: "map",
|
|
5470
5470
|
identify: (e) => e instanceof Set,
|
|
5471
|
-
nodeClass:
|
|
5471
|
+
nodeClass: Mi,
|
|
5472
5472
|
default: !1,
|
|
5473
5473
|
tag: "tag:yaml.org,2002:set",
|
|
5474
|
-
createNode: (e, t, n) =>
|
|
5474
|
+
createNode: (e, t, n) => Mi.from(e, t, n),
|
|
5475
5475
|
resolve(e, t) {
|
|
5476
|
-
if (
|
|
5477
|
-
if (e.hasAllNullValues(!0)) return Object.assign(new
|
|
5476
|
+
if (Mn(e)) {
|
|
5477
|
+
if (e.hasAllNullValues(!0)) return Object.assign(new Mi(), e);
|
|
5478
5478
|
t("Set items must all have null values");
|
|
5479
5479
|
} else t("Expected a mapping for this tag");
|
|
5480
5480
|
return e;
|
|
@@ -5482,11 +5482,11 @@ var Mi = {
|
|
|
5482
5482
|
};
|
|
5483
5483
|
//#endregion
|
|
5484
5484
|
//#region node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/browser/dist/schema/yaml-1.1/timestamp.js
|
|
5485
|
-
function
|
|
5485
|
+
function Pi(e, t) {
|
|
5486
5486
|
let n = e[0], r = n === "-" || n === "+" ? e.substring(1) : e, i = (e) => t ? BigInt(e) : Number(e), a = r.replace(/_/g, "").split(":").reduce((e, t) => e * i(60) + i(t), i(0));
|
|
5487
5487
|
return n === "-" ? i(-1) * a : a;
|
|
5488
5488
|
}
|
|
5489
|
-
function
|
|
5489
|
+
function Fi(e) {
|
|
5490
5490
|
let { value: t } = e, n = (e) => e;
|
|
5491
5491
|
if (typeof t == "bigint") n = (e) => BigInt(e);
|
|
5492
5492
|
else if (isNaN(t) || !isFinite(t)) return Q(e);
|
|
@@ -5495,114 +5495,114 @@ function Pi(e) {
|
|
|
5495
5495
|
let i = n(60), a = [t % i];
|
|
5496
5496
|
return t < 60 ? a.unshift(0) : (t = (t - a[0]) / i, a.unshift(t % i), t >= 60 && (t = (t - a[0]) / i, a.unshift(t))), r + a.map((e) => String(e).padStart(2, "0")).join(":").replace(/000000\d*$/, "");
|
|
5497
5497
|
}
|
|
5498
|
-
var
|
|
5498
|
+
var Ii = {
|
|
5499
5499
|
identify: (e) => typeof e == "bigint" || Number.isInteger(e),
|
|
5500
5500
|
default: !0,
|
|
5501
5501
|
tag: "tag:yaml.org,2002:int",
|
|
5502
5502
|
format: "TIME",
|
|
5503
5503
|
test: /^[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+$/,
|
|
5504
|
-
resolve: (e, t, { intAsBigInt: n }) =>
|
|
5505
|
-
stringify:
|
|
5506
|
-
},
|
|
5504
|
+
resolve: (e, t, { intAsBigInt: n }) => Pi(e, n),
|
|
5505
|
+
stringify: Fi
|
|
5506
|
+
}, Li = {
|
|
5507
5507
|
identify: (e) => typeof e == "number",
|
|
5508
5508
|
default: !0,
|
|
5509
5509
|
tag: "tag:yaml.org,2002:float",
|
|
5510
5510
|
format: "TIME",
|
|
5511
5511
|
test: /^[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+\.[0-9_]*$/,
|
|
5512
|
-
resolve: (e) =>
|
|
5513
|
-
stringify:
|
|
5514
|
-
},
|
|
5512
|
+
resolve: (e) => Pi(e, !1),
|
|
5513
|
+
stringify: Fi
|
|
5514
|
+
}, Ri = {
|
|
5515
5515
|
identify: (e) => e instanceof Date,
|
|
5516
5516
|
default: !0,
|
|
5517
5517
|
tag: "tag:yaml.org,2002:timestamp",
|
|
5518
5518
|
test: RegExp("^([0-9]{4})-([0-9]{1,2})-([0-9]{1,2})(?:(?:t|T|[ \\t]+)([0-9]{1,2}):([0-9]{1,2}):([0-9]{1,2}(\\.[0-9]+)?)(?:[ \\t]*(Z|[-+][012]?[0-9](?::[0-9]{2})?))?)?$"),
|
|
5519
5519
|
resolve(e) {
|
|
5520
|
-
let t = e.match(
|
|
5520
|
+
let t = e.match(Ri.test);
|
|
5521
5521
|
if (!t) throw Error("!!timestamp expects a date, starting with yyyy-mm-dd");
|
|
5522
5522
|
let [, n, r, i, a, o, s] = t.map(Number), c = t[7] ? Number((t[7] + "00").substr(1, 3)) : 0, l = Date.UTC(n, r - 1, i, a || 0, o || 0, s || 0, c), u = t[8];
|
|
5523
5523
|
if (u && u !== "Z") {
|
|
5524
|
-
let e =
|
|
5524
|
+
let e = Pi(u, !1);
|
|
5525
5525
|
Math.abs(e) < 30 && (e *= 60), l -= 6e4 * e;
|
|
5526
5526
|
}
|
|
5527
5527
|
return new Date(l);
|
|
5528
5528
|
},
|
|
5529
5529
|
stringify: ({ value: e }) => e?.toISOString().replace(/(T00:00:00)?\.000Z$/, "") ?? ""
|
|
5530
|
-
},
|
|
5531
|
-
|
|
5532
|
-
Jr,
|
|
5530
|
+
}, zi = [
|
|
5531
|
+
Kr,
|
|
5533
5532
|
Yr,
|
|
5534
5533
|
Xr,
|
|
5535
|
-
|
|
5534
|
+
Zr,
|
|
5536
5535
|
bi,
|
|
5537
|
-
|
|
5536
|
+
xi,
|
|
5538
5537
|
Oi,
|
|
5539
5538
|
ki,
|
|
5540
5539
|
Ai,
|
|
5541
|
-
|
|
5540
|
+
ji,
|
|
5542
5541
|
Si,
|
|
5543
5542
|
Ci,
|
|
5544
|
-
|
|
5545
|
-
|
|
5546
|
-
|
|
5547
|
-
|
|
5548
|
-
|
|
5549
|
-
|
|
5543
|
+
wi,
|
|
5544
|
+
pi,
|
|
5545
|
+
Nr,
|
|
5546
|
+
vi,
|
|
5547
|
+
gi,
|
|
5548
|
+
Ni,
|
|
5550
5549
|
Ii,
|
|
5551
|
-
Li
|
|
5552
|
-
|
|
5553
|
-
|
|
5550
|
+
Li,
|
|
5551
|
+
Ri
|
|
5552
|
+
], Bi = /* @__PURE__ */ new Map([
|
|
5553
|
+
["core", ci],
|
|
5554
5554
|
["failsafe", [
|
|
5555
|
-
|
|
5556
|
-
|
|
5557
|
-
|
|
5555
|
+
Kr,
|
|
5556
|
+
Yr,
|
|
5557
|
+
Xr
|
|
5558
5558
|
]],
|
|
5559
|
-
["json",
|
|
5560
|
-
["yaml11",
|
|
5561
|
-
["yaml-1.1",
|
|
5562
|
-
]),
|
|
5563
|
-
binary:
|
|
5564
|
-
bool:
|
|
5565
|
-
float:
|
|
5566
|
-
floatExp:
|
|
5567
|
-
floatNaN:
|
|
5568
|
-
floatTime:
|
|
5569
|
-
int:
|
|
5570
|
-
intHex:
|
|
5571
|
-
intOct:
|
|
5572
|
-
intTime:
|
|
5573
|
-
map:
|
|
5574
|
-
merge:
|
|
5575
|
-
null:
|
|
5576
|
-
omap:
|
|
5577
|
-
pairs:
|
|
5578
|
-
seq:
|
|
5579
|
-
set:
|
|
5580
|
-
timestamp:
|
|
5581
|
-
},
|
|
5582
|
-
"tag:yaml.org,2002:binary":
|
|
5583
|
-
"tag:yaml.org,2002:merge":
|
|
5584
|
-
"tag:yaml.org,2002:omap":
|
|
5585
|
-
"tag:yaml.org,2002:pairs":
|
|
5586
|
-
"tag:yaml.org,2002:set":
|
|
5587
|
-
"tag:yaml.org,2002:timestamp":
|
|
5559
|
+
["json", fi],
|
|
5560
|
+
["yaml11", zi],
|
|
5561
|
+
["yaml-1.1", zi]
|
|
5562
|
+
]), Vi = {
|
|
5563
|
+
binary: pi,
|
|
5564
|
+
bool: Qr,
|
|
5565
|
+
float: ti,
|
|
5566
|
+
floatExp: ei,
|
|
5567
|
+
floatNaN: $r,
|
|
5568
|
+
floatTime: Li,
|
|
5569
|
+
int: oi,
|
|
5570
|
+
intHex: si,
|
|
5571
|
+
intOct: ai,
|
|
5572
|
+
intTime: Ii,
|
|
5573
|
+
map: Kr,
|
|
5574
|
+
merge: Nr,
|
|
5575
|
+
null: Zr,
|
|
5576
|
+
omap: vi,
|
|
5577
|
+
pairs: gi,
|
|
5578
|
+
seq: Yr,
|
|
5579
|
+
set: Ni,
|
|
5580
|
+
timestamp: Ri
|
|
5581
|
+
}, Hi = {
|
|
5582
|
+
"tag:yaml.org,2002:binary": pi,
|
|
5583
|
+
"tag:yaml.org,2002:merge": Nr,
|
|
5584
|
+
"tag:yaml.org,2002:omap": vi,
|
|
5585
|
+
"tag:yaml.org,2002:pairs": gi,
|
|
5586
|
+
"tag:yaml.org,2002:set": Ni,
|
|
5587
|
+
"tag:yaml.org,2002:timestamp": Ri
|
|
5588
5588
|
};
|
|
5589
|
-
function
|
|
5590
|
-
let r =
|
|
5591
|
-
if (r && !e) return n && !r.includes(
|
|
5589
|
+
function Ui(e, t, n) {
|
|
5590
|
+
let r = Bi.get(t);
|
|
5591
|
+
if (r && !e) return n && !r.includes(Nr) ? r.concat(Nr) : r.slice();
|
|
5592
5592
|
let i = r;
|
|
5593
5593
|
if (!i) {
|
|
5594
5594
|
if (Array.isArray(e)) i = [];
|
|
5595
5595
|
else {
|
|
5596
|
-
let e = Array.from(
|
|
5596
|
+
let e = Array.from(Bi.keys()).filter((e) => e !== "yaml11").map((e) => JSON.stringify(e)).join(", ");
|
|
5597
5597
|
throw Error(`Unknown schema "${t}"; use one of ${e} or define customTags array`);
|
|
5598
5598
|
}
|
|
5599
5599
|
}
|
|
5600
5600
|
if (Array.isArray(e)) for (let t of e) i = i.concat(t);
|
|
5601
5601
|
else typeof e == "function" && (i = e(i.slice()));
|
|
5602
|
-
return n && (i = i.concat(
|
|
5603
|
-
let n = typeof t == "string" ?
|
|
5602
|
+
return n && (i = i.concat(Nr)), i.reduce((e, t) => {
|
|
5603
|
+
let n = typeof t == "string" ? Vi[t] : t;
|
|
5604
5604
|
if (!n) {
|
|
5605
|
-
let e = JSON.stringify(t), n = Object.keys(
|
|
5605
|
+
let e = JSON.stringify(t), n = Object.keys(Vi).map((e) => JSON.stringify(e)).join(", ");
|
|
5606
5606
|
throw Error(`Unknown custom tag ${e}; use one of ${n}`);
|
|
5607
5607
|
}
|
|
5608
5608
|
return e.includes(n) || e.push(n), e;
|
|
@@ -5610,9 +5610,9 @@ function Hi(e, t, n) {
|
|
|
5610
5610
|
}
|
|
5611
5611
|
//#endregion
|
|
5612
5612
|
//#region node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/browser/dist/schema/Schema.js
|
|
5613
|
-
var
|
|
5613
|
+
var Wi = (e, t) => e.key < t.key ? -1 : +(e.key > t.key), Gi = class e {
|
|
5614
5614
|
constructor({ compat: e, customTags: t, merge: n, resolveKnownTags: r, schema: i, sortMapEntries: a, toStringDefaults: o }) {
|
|
5615
|
-
this.compat = Array.isArray(e) ?
|
|
5615
|
+
this.compat = Array.isArray(e) ? Ui(e, "compat") : e ? Ui(null, e) : null, this.name = typeof i == "string" && i || "core", this.knownTags = r ? Hi : {}, this.tags = Ui(t, this.name, n), this.toStringOptions = o ?? null, Object.defineProperty(this, En, { value: Kr }), Object.defineProperty(this, On, { value: Xr }), Object.defineProperty(this, kn, { value: Yr }), this.sortMapEntries = typeof a == "function" ? a : a === !0 ? Wi : null;
|
|
5616
5616
|
}
|
|
5617
5617
|
clone() {
|
|
5618
5618
|
let t = Object.create(e.prototype, Object.getOwnPropertyDescriptors(this));
|
|
@@ -5621,47 +5621,47 @@ var Ui = (e, t) => e.key < t.key ? -1 : +(e.key > t.key), Wi = class e {
|
|
|
5621
5621
|
};
|
|
5622
5622
|
//#endregion
|
|
5623
5623
|
//#region node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/browser/dist/stringify/stringifyDocument.js
|
|
5624
|
-
function
|
|
5624
|
+
function Ki(e, t) {
|
|
5625
5625
|
let n = [], r = t.directives === !0;
|
|
5626
5626
|
if (t.directives !== !1 && e.directives) {
|
|
5627
5627
|
let t = e.directives.toString(e);
|
|
5628
5628
|
t ? (n.push(t), r = !0) : e.directives.docStart && (r = !0);
|
|
5629
5629
|
}
|
|
5630
5630
|
r && n.push("---");
|
|
5631
|
-
let i =
|
|
5631
|
+
let i = Er(e, t), { commentString: a } = i.options;
|
|
5632
5632
|
if (e.commentBefore) {
|
|
5633
5633
|
n.length !== 1 && n.unshift("");
|
|
5634
5634
|
let t = a(e.commentBefore);
|
|
5635
|
-
n.unshift(
|
|
5635
|
+
n.unshift(lr(t, ""));
|
|
5636
5636
|
}
|
|
5637
5637
|
let o = !1, s = null;
|
|
5638
5638
|
if (e.contents) {
|
|
5639
5639
|
if (K(e.contents)) {
|
|
5640
5640
|
if (e.contents.spaceBefore && r && n.push(""), e.contents.commentBefore) {
|
|
5641
5641
|
let t = a(e.contents.commentBefore);
|
|
5642
|
-
n.push(
|
|
5642
|
+
n.push(lr(t, ""));
|
|
5643
5643
|
}
|
|
5644
5644
|
i.forceBlockIndent = !!e.comment, s = e.contents.comment;
|
|
5645
5645
|
}
|
|
5646
|
-
let t = s ? void 0 : () => o = !0, c =
|
|
5647
|
-
s && (c +=
|
|
5648
|
-
} else n.push(
|
|
5646
|
+
let t = s ? void 0 : () => o = !0, c = kr(e.contents, i, () => s = null, t);
|
|
5647
|
+
s && (c += ur(c, "", a(s))), (c[0] === "|" || c[0] === ">") && n[n.length - 1] === "---" ? n[n.length - 1] = `--- ${c}` : n.push(c);
|
|
5648
|
+
} else n.push(kr(e.contents, i));
|
|
5649
5649
|
if (e.directives?.docEnd) {
|
|
5650
5650
|
if (e.comment) {
|
|
5651
5651
|
let t = a(e.comment);
|
|
5652
|
-
t.includes("\n") ? (n.push("..."), n.push(
|
|
5652
|
+
t.includes("\n") ? (n.push("..."), n.push(lr(t, ""))) : n.push(`... ${t}`);
|
|
5653
5653
|
} else n.push("...");
|
|
5654
5654
|
} else {
|
|
5655
5655
|
let t = e.comment;
|
|
5656
|
-
t && o && (t = t.replace(/^\n+/, "")), t && ((!o || s) && n[n.length - 1] !== "" && n.push(""), n.push(
|
|
5656
|
+
t && o && (t = t.replace(/^\n+/, "")), t && ((!o || s) && n[n.length - 1] !== "" && n.push(""), n.push(lr(a(t), "")));
|
|
5657
5657
|
}
|
|
5658
5658
|
return n.join("\n") + "\n";
|
|
5659
5659
|
}
|
|
5660
5660
|
//#endregion
|
|
5661
5661
|
//#region node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/browser/dist/doc/Document.js
|
|
5662
|
-
var
|
|
5662
|
+
var qi = class e {
|
|
5663
5663
|
constructor(e, t, n) {
|
|
5664
|
-
this.commentBefore = null, this.comment = null, this.errors = [], this.warnings = [], Object.defineProperty(this, H, { value:
|
|
5664
|
+
this.commentBefore = null, this.comment = null, this.errors = [], this.warnings = [], Object.defineProperty(this, H, { value: Tn });
|
|
5665
5665
|
let r = null;
|
|
5666
5666
|
typeof t == "function" || Array.isArray(t) ? r = t : n === void 0 && t && (n = t, t = void 0);
|
|
5667
5667
|
let i = Object.assign({
|
|
@@ -5676,24 +5676,24 @@ var Ki = class e {
|
|
|
5676
5676
|
}, n);
|
|
5677
5677
|
this.options = i;
|
|
5678
5678
|
let { version: a } = i;
|
|
5679
|
-
n?._directives ? (this.directives = n._directives.atDocument(), this.directives.yaml.explicit && (a = this.directives.yaml.version)) : this.directives = new
|
|
5679
|
+
n?._directives ? (this.directives = n._directives.atDocument(), this.directives.yaml.explicit && (a = this.directives.yaml.version)) : this.directives = new Kn({ version: a }), this.setSchema(a, n), this.contents = e === void 0 ? null : this.createNode(e, r, n);
|
|
5680
5680
|
}
|
|
5681
5681
|
clone() {
|
|
5682
|
-
let t = Object.create(e.prototype, { [H]: { value:
|
|
5682
|
+
let t = Object.create(e.prototype, { [H]: { value: Tn } });
|
|
5683
5683
|
return t.commentBefore = this.commentBefore, t.comment = this.comment, t.errors = this.errors.slice(), t.warnings = this.warnings.slice(), t.options = Object.assign({}, this.options), this.directives && (t.directives = this.directives.clone()), t.schema = this.schema.clone(), t.contents = K(this.contents) ? this.contents.clone(t.schema) : this.contents, this.range && (t.range = this.range.slice()), t;
|
|
5684
5684
|
}
|
|
5685
5685
|
add(e) {
|
|
5686
|
-
|
|
5686
|
+
Ji(this.contents) && this.contents.add(e);
|
|
5687
5687
|
}
|
|
5688
5688
|
addIn(e, t) {
|
|
5689
|
-
|
|
5689
|
+
Ji(this.contents) && this.contents.addIn(e, t);
|
|
5690
5690
|
}
|
|
5691
5691
|
createAlias(e, t) {
|
|
5692
5692
|
if (!e.anchor) {
|
|
5693
|
-
let n =
|
|
5694
|
-
e.anchor = !t || n.has(t) ?
|
|
5693
|
+
let n = Jn(this);
|
|
5694
|
+
e.anchor = !t || n.has(t) ? Yn(t || "a", n) : t;
|
|
5695
5695
|
}
|
|
5696
|
-
return new
|
|
5696
|
+
return new $n(e.anchor);
|
|
5697
5697
|
}
|
|
5698
5698
|
createNode(e, t, n) {
|
|
5699
5699
|
let r;
|
|
@@ -5702,7 +5702,7 @@ var Ki = class e {
|
|
|
5702
5702
|
let e = t.filter((e) => typeof e == "number" || e instanceof String || e instanceof Number).map(String);
|
|
5703
5703
|
e.length > 0 && (t = t.concat(e)), r = t;
|
|
5704
5704
|
} else n === void 0 && t && (n = t, t = void 0);
|
|
5705
|
-
let { aliasDuplicateObjects: i, anchorPrefix: a, flow: o, keepUndefined: s, onTagObj: c, tag: l } = n ?? {}, { onAnchor: u, setAnchors: d, sourceObjects: f } =
|
|
5705
|
+
let { aliasDuplicateObjects: i, anchorPrefix: a, flow: o, keepUndefined: s, onTagObj: c, tag: l } = n ?? {}, { onAnchor: u, setAnchors: d, sourceObjects: f } = Xn(this, a || "a"), p = {
|
|
5706
5706
|
aliasDuplicateObjects: i ?? !0,
|
|
5707
5707
|
keepUndefined: s ?? !1,
|
|
5708
5708
|
onAnchor: u,
|
|
@@ -5710,49 +5710,49 @@ var Ki = class e {
|
|
|
5710
5710
|
replacer: r,
|
|
5711
5711
|
schema: this.schema,
|
|
5712
5712
|
sourceObjects: f
|
|
5713
|
-
}, m =
|
|
5713
|
+
}, m = ir(e, l, p);
|
|
5714
5714
|
return o && G(m) && (m.flow = !0), d(), m;
|
|
5715
5715
|
}
|
|
5716
5716
|
createPair(e, t, n = {}) {
|
|
5717
5717
|
return new X(this.createNode(e, null, n), this.createNode(t, null, n));
|
|
5718
5718
|
}
|
|
5719
5719
|
delete(e) {
|
|
5720
|
-
return
|
|
5720
|
+
return Ji(this.contents) ? this.contents.delete(e) : !1;
|
|
5721
5721
|
}
|
|
5722
5722
|
deleteIn(e) {
|
|
5723
|
-
return
|
|
5723
|
+
return or(e) ? this.contents != null && (this.contents = null, !0) : Ji(this.contents) ? this.contents.deleteIn(e) : !1;
|
|
5724
5724
|
}
|
|
5725
5725
|
get(e, t) {
|
|
5726
5726
|
return G(this.contents) ? this.contents.get(e, t) : void 0;
|
|
5727
5727
|
}
|
|
5728
5728
|
getIn(e, t) {
|
|
5729
|
-
return
|
|
5729
|
+
return or(e) ? !t && W(this.contents) ? this.contents.value : this.contents : G(this.contents) ? this.contents.getIn(e, t) : void 0;
|
|
5730
5730
|
}
|
|
5731
5731
|
has(e) {
|
|
5732
5732
|
return G(this.contents) ? this.contents.has(e) : !1;
|
|
5733
5733
|
}
|
|
5734
5734
|
hasIn(e) {
|
|
5735
|
-
return
|
|
5735
|
+
return or(e) ? this.contents !== void 0 : G(this.contents) ? this.contents.hasIn(e) : !1;
|
|
5736
5736
|
}
|
|
5737
5737
|
set(e, t) {
|
|
5738
|
-
this.contents == null ? this.contents =
|
|
5738
|
+
this.contents == null ? this.contents = ar(this.schema, [e], t) : Ji(this.contents) && this.contents.set(e, t);
|
|
5739
5739
|
}
|
|
5740
5740
|
setIn(e, t) {
|
|
5741
|
-
|
|
5741
|
+
or(e) ? this.contents = t : this.contents == null ? this.contents = ar(this.schema, Array.from(e), t) : Ji(this.contents) && this.contents.setIn(e, t);
|
|
5742
5742
|
}
|
|
5743
5743
|
setSchema(e, t = {}) {
|
|
5744
5744
|
typeof e == "number" && (e = String(e));
|
|
5745
5745
|
let n;
|
|
5746
5746
|
switch (e) {
|
|
5747
5747
|
case "1.1":
|
|
5748
|
-
this.directives ? this.directives.yaml.version = "1.1" : this.directives = new
|
|
5748
|
+
this.directives ? this.directives.yaml.version = "1.1" : this.directives = new Kn({ version: "1.1" }), n = {
|
|
5749
5749
|
resolveKnownTags: !1,
|
|
5750
5750
|
schema: "yaml-1.1"
|
|
5751
5751
|
};
|
|
5752
5752
|
break;
|
|
5753
5753
|
case "1.2":
|
|
5754
5754
|
case "next":
|
|
5755
|
-
this.directives ? this.directives.yaml.version = e : this.directives = new
|
|
5755
|
+
this.directives ? this.directives.yaml.version = e : this.directives = new Kn({ version: e }), n = {
|
|
5756
5756
|
resolveKnownTags: !0,
|
|
5757
5757
|
schema: "core"
|
|
5758
5758
|
};
|
|
@@ -5766,7 +5766,7 @@ var Ki = class e {
|
|
|
5766
5766
|
}
|
|
5767
5767
|
}
|
|
5768
5768
|
if (t.schema instanceof Object) this.schema = t.schema;
|
|
5769
|
-
else if (n) this.schema = new
|
|
5769
|
+
else if (n) this.schema = new Gi(Object.assign(n, t));
|
|
5770
5770
|
else throw Error("With a null YAML version, the { schema: Schema } option is required");
|
|
5771
5771
|
}
|
|
5772
5772
|
toJS({ json: e, jsonArg: t, mapAsMap: n, maxAliasCount: r, onAnchor: i, reviver: a } = {}) {
|
|
@@ -5779,7 +5779,7 @@ var Ki = class e {
|
|
|
5779
5779
|
maxAliasCount: typeof r == "number" ? r : 100
|
|
5780
5780
|
}, s = J(this.contents, t ?? "", o);
|
|
5781
5781
|
if (typeof i == "function") for (let { count: e, res: t } of o.anchors.values()) i(t, e);
|
|
5782
|
-
return typeof a == "function" ?
|
|
5782
|
+
return typeof a == "function" ? Zn(a, { "": s }, "", s) : s;
|
|
5783
5783
|
}
|
|
5784
5784
|
toJSON(e, t) {
|
|
5785
5785
|
return this.toJS({
|
|
@@ -5795,28 +5795,28 @@ var Ki = class e {
|
|
|
5795
5795
|
let t = JSON.stringify(e.indent);
|
|
5796
5796
|
throw Error(`"indent" option must be a positive integer, not ${t}`);
|
|
5797
5797
|
}
|
|
5798
|
-
return
|
|
5798
|
+
return Ki(this, e);
|
|
5799
5799
|
}
|
|
5800
5800
|
};
|
|
5801
|
-
function
|
|
5801
|
+
function Ji(e) {
|
|
5802
5802
|
if (G(e)) return !0;
|
|
5803
5803
|
throw Error("Expected a YAML collection as document contents");
|
|
5804
5804
|
}
|
|
5805
5805
|
//#endregion
|
|
5806
5806
|
//#region node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/browser/dist/errors.js
|
|
5807
|
-
var
|
|
5807
|
+
var Yi = class extends Error {
|
|
5808
5808
|
constructor(e, t, n, r) {
|
|
5809
5809
|
super(), this.name = e, this.code = n, this.message = r, this.pos = t;
|
|
5810
5810
|
}
|
|
5811
|
-
},
|
|
5811
|
+
}, Xi = class extends Yi {
|
|
5812
5812
|
constructor(e, t, n) {
|
|
5813
5813
|
super("YAMLParseError", e, t, n);
|
|
5814
5814
|
}
|
|
5815
|
-
},
|
|
5815
|
+
}, Zi = class extends Yi {
|
|
5816
5816
|
constructor(e, t, n) {
|
|
5817
5817
|
super("YAMLWarning", e, t, n);
|
|
5818
5818
|
}
|
|
5819
|
-
},
|
|
5819
|
+
}, Qi = (e, t) => (n) => {
|
|
5820
5820
|
if (n.pos[0] === -1) return;
|
|
5821
5821
|
n.linePos = n.pos.map((e) => t.linePos(e));
|
|
5822
5822
|
let { line: r, col: i } = n.linePos[0];
|
|
@@ -5839,7 +5839,7 @@ var Ji = class extends Error {
|
|
|
5839
5839
|
};
|
|
5840
5840
|
//#endregion
|
|
5841
5841
|
//#region node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/browser/dist/compose/resolve-props.js
|
|
5842
|
-
function
|
|
5842
|
+
function $i(e, { flow: t, indicator: n, next: r, offset: i, onError: a, parentIndent: o, startOnNewline: s }) {
|
|
5843
5843
|
let c = !1, l = s, u = s, d = "", f = "", p = !1, m = !1, h = null, g = null, _ = null, v = null, y = null, ee = null, b = null;
|
|
5844
5844
|
for (let i of e) switch (m &&= (i.type !== "space" && i.type !== "newline" && i.type !== "comma" && a(i.offset, "MISSING_CHAR", "Tags and anchors must be separated from the next token by white space"), !1), h &&= (l && i.type !== "comment" && i.type !== "newline" && a(h, "TAB_AS_INDENT", "Tabs are not allowed as indentation"), null), i.type) {
|
|
5845
5845
|
case "space":
|
|
@@ -5885,7 +5885,7 @@ function Qi(e, { flow: t, indicator: n, next: r, offset: i, onError: a, parentIn
|
|
|
5885
5885
|
}
|
|
5886
5886
|
//#endregion
|
|
5887
5887
|
//#region node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/browser/dist/compose/util-contains-newline.js
|
|
5888
|
-
function
|
|
5888
|
+
function ea(e) {
|
|
5889
5889
|
if (!e) return null;
|
|
5890
5890
|
switch (e.type) {
|
|
5891
5891
|
case "alias":
|
|
@@ -5903,7 +5903,7 @@ function $i(e) {
|
|
|
5903
5903
|
if (t.sep) {
|
|
5904
5904
|
for (let e of t.sep) if (e.type === "newline") return !0;
|
|
5905
5905
|
}
|
|
5906
|
-
if (
|
|
5906
|
+
if (ea(t.key) || ea(t.value)) return !0;
|
|
5907
5907
|
}
|
|
5908
5908
|
return !1;
|
|
5909
5909
|
default: return !0;
|
|
@@ -5911,15 +5911,15 @@ function $i(e) {
|
|
|
5911
5911
|
}
|
|
5912
5912
|
//#endregion
|
|
5913
5913
|
//#region node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/browser/dist/compose/util-flow-indent-check.js
|
|
5914
|
-
function
|
|
5914
|
+
function ta(e, t, n) {
|
|
5915
5915
|
if (t?.type === "flow-collection") {
|
|
5916
5916
|
let r = t.end[0];
|
|
5917
|
-
r.indent === e && (r.source === "]" || r.source === "}") &&
|
|
5917
|
+
r.indent === e && (r.source === "]" || r.source === "}") && ea(t) && n(r, "BAD_INDENT", "Flow end indicator should be more indented than parent", !0);
|
|
5918
5918
|
}
|
|
5919
5919
|
}
|
|
5920
5920
|
//#endregion
|
|
5921
5921
|
//#region node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/browser/dist/compose/util-map-includes.js
|
|
5922
|
-
function
|
|
5922
|
+
function na(e, t, n) {
|
|
5923
5923
|
let { uniqueKeys: r } = e.options;
|
|
5924
5924
|
if (r === !1) return !1;
|
|
5925
5925
|
let i = typeof r == "function" ? r : (e, t) => e === t || W(e) && W(t) && e.value === t.value;
|
|
@@ -5927,13 +5927,13 @@ function ta(e, t, n) {
|
|
|
5927
5927
|
}
|
|
5928
5928
|
//#endregion
|
|
5929
5929
|
//#region node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/browser/dist/compose/resolve-block-map.js
|
|
5930
|
-
var
|
|
5931
|
-
function
|
|
5930
|
+
var ra = "All mapping items must start at the same column";
|
|
5931
|
+
function ia({ composeNode: e, composeEmptyNode: t }, n, r, i, a) {
|
|
5932
5932
|
let o = new ((a?.nodeClass) ?? Z)(n.schema);
|
|
5933
5933
|
n.atRoot &&= !1;
|
|
5934
5934
|
let s = r.offset, c = null;
|
|
5935
5935
|
for (let a of r.items) {
|
|
5936
|
-
let { start: l, key: u, sep: d, value: f } = a, p =
|
|
5936
|
+
let { start: l, key: u, sep: d, value: f } = a, p = $i(l, {
|
|
5937
5937
|
indicator: "explicit-key-ind",
|
|
5938
5938
|
next: u ?? d?.[0],
|
|
5939
5939
|
offset: s,
|
|
@@ -5942,16 +5942,16 @@ function ra({ composeNode: e, composeEmptyNode: t }, n, r, i, a) {
|
|
|
5942
5942
|
startOnNewline: !0
|
|
5943
5943
|
}), m = !p.found;
|
|
5944
5944
|
if (m) {
|
|
5945
|
-
if (u && (u.type === "block-seq" ? i(s, "BLOCK_AS_IMPLICIT_KEY", "A block sequence may not be used as an implicit map key") : "indent" in u && u.indent !== r.indent && i(s, "BAD_INDENT",
|
|
5945
|
+
if (u && (u.type === "block-seq" ? i(s, "BLOCK_AS_IMPLICIT_KEY", "A block sequence may not be used as an implicit map key") : "indent" in u && u.indent !== r.indent && i(s, "BAD_INDENT", ra)), !p.anchor && !p.tag && !d) {
|
|
5946
5946
|
c = p.end, p.comment && (o.comment ? o.comment += "\n" + p.comment : o.comment = p.comment);
|
|
5947
5947
|
continue;
|
|
5948
5948
|
}
|
|
5949
|
-
(p.newlineAfterProp ||
|
|
5950
|
-
} else p.found?.indent !== r.indent && i(s, "BAD_INDENT",
|
|
5949
|
+
(p.newlineAfterProp || ea(u)) && i(u ?? l[l.length - 1], "MULTILINE_IMPLICIT_KEY", "Implicit keys need to be on a single line");
|
|
5950
|
+
} else p.found?.indent !== r.indent && i(s, "BAD_INDENT", ra);
|
|
5951
5951
|
n.atKey = !0;
|
|
5952
5952
|
let h = p.end, g = u ? e(n, u, p, i) : t(n, h, l, null, p, i);
|
|
5953
|
-
n.schema.compat &&
|
|
5954
|
-
let _ =
|
|
5953
|
+
n.schema.compat && ta(r.indent, u, i), n.atKey = !1, na(n, o.items, g) && i(h, "DUPLICATE_KEY", "Map keys must be unique");
|
|
5954
|
+
let _ = $i(d ?? [], {
|
|
5955
5955
|
indicator: "map-value-ind",
|
|
5956
5956
|
next: f,
|
|
5957
5957
|
offset: g.range[2],
|
|
@@ -5962,7 +5962,7 @@ function ra({ composeNode: e, composeEmptyNode: t }, n, r, i, a) {
|
|
|
5962
5962
|
if (s = _.end, _.found) {
|
|
5963
5963
|
m && (f?.type === "block-map" && !_.hasNewline && i(s, "BLOCK_AS_IMPLICIT_KEY", "Nested mappings are not allowed in compact mappings"), n.options.strict && p.start < _.found.offset - 1024 && i(g.range, "KEY_OVER_1024_CHARS", "The : indicator must be at most 1024 chars after the start of an implicit block mapping key"));
|
|
5964
5964
|
let c = f ? e(n, f, _, i) : t(n, s, d, null, _, i);
|
|
5965
|
-
n.schema.compat &&
|
|
5965
|
+
n.schema.compat && ta(r.indent, f, i), s = c.range[2];
|
|
5966
5966
|
let l = new X(g, c);
|
|
5967
5967
|
n.options.keepSourceTokens && (l.srcToken = a), o.items.push(l);
|
|
5968
5968
|
} else {
|
|
@@ -5979,12 +5979,12 @@ function ra({ composeNode: e, composeEmptyNode: t }, n, r, i, a) {
|
|
|
5979
5979
|
}
|
|
5980
5980
|
//#endregion
|
|
5981
5981
|
//#region node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/browser/dist/compose/resolve-block-seq.js
|
|
5982
|
-
function
|
|
5983
|
-
let o = new ((a?.nodeClass) ??
|
|
5982
|
+
function aa({ composeNode: e, composeEmptyNode: t }, n, r, i, a) {
|
|
5983
|
+
let o = new ((a?.nodeClass) ?? qr)(n.schema);
|
|
5984
5984
|
n.atRoot &&= !1, n.atKey &&= !1;
|
|
5985
5985
|
let s = r.offset, c = null;
|
|
5986
5986
|
for (let { start: a, value: l } of r.items) {
|
|
5987
|
-
let u =
|
|
5987
|
+
let u = $i(a, {
|
|
5988
5988
|
indicator: "seq-item-ind",
|
|
5989
5989
|
next: l,
|
|
5990
5990
|
offset: s,
|
|
@@ -6000,7 +6000,7 @@ function ia({ composeNode: e, composeEmptyNode: t }, n, r, i, a) {
|
|
|
6000
6000
|
}
|
|
6001
6001
|
}
|
|
6002
6002
|
let d = l ? e(n, l, u, i) : t(n, u.end, a, null, u, i);
|
|
6003
|
-
n.schema.compat &&
|
|
6003
|
+
n.schema.compat && ta(r.indent, l, i), s = d.range[2], o.items.push(d);
|
|
6004
6004
|
}
|
|
6005
6005
|
return o.range = [
|
|
6006
6006
|
r.offset,
|
|
@@ -6010,7 +6010,7 @@ function ia({ composeNode: e, composeEmptyNode: t }, n, r, i, a) {
|
|
|
6010
6010
|
}
|
|
6011
6011
|
//#endregion
|
|
6012
6012
|
//#region node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/browser/dist/compose/resolve-end.js
|
|
6013
|
-
function
|
|
6013
|
+
function oa(e, t, n, r) {
|
|
6014
6014
|
let i = "";
|
|
6015
6015
|
if (e) {
|
|
6016
6016
|
let a = !1, o = "";
|
|
@@ -6041,15 +6041,15 @@ function aa(e, t, n, r) {
|
|
|
6041
6041
|
}
|
|
6042
6042
|
//#endregion
|
|
6043
6043
|
//#region node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/browser/dist/compose/resolve-flow-collection.js
|
|
6044
|
-
var
|
|
6045
|
-
function
|
|
6046
|
-
let o = r.start.source === "{", s = o ? "flow map" : "flow sequence", c = new ((a?.nodeClass) ?? (o ? Z :
|
|
6044
|
+
var sa = "Block collections are not allowed within flow collections", ca = (e) => e && (e.type === "block-map" || e.type === "block-seq");
|
|
6045
|
+
function la({ composeNode: e, composeEmptyNode: t }, n, r, i, a) {
|
|
6046
|
+
let o = r.start.source === "{", s = o ? "flow map" : "flow sequence", c = new ((a?.nodeClass) ?? (o ? Z : qr))(n.schema);
|
|
6047
6047
|
c.flow = !0;
|
|
6048
6048
|
let l = n.atRoot;
|
|
6049
6049
|
l && (n.atRoot = !1), n.atKey &&= !1;
|
|
6050
6050
|
let u = r.offset + r.start.source.length;
|
|
6051
6051
|
for (let a = 0; a < r.items.length; ++a) {
|
|
6052
|
-
let l = r.items[a], { start: d, key: f, sep: p, value: m } = l, h =
|
|
6052
|
+
let l = r.items[a], { start: d, key: f, sep: p, value: m } = l, h = $i(d, {
|
|
6053
6053
|
flow: s,
|
|
6054
6054
|
indicator: "explicit-key-ind",
|
|
6055
6055
|
next: f ?? p?.[0],
|
|
@@ -6063,7 +6063,7 @@ function ca({ composeNode: e, composeEmptyNode: t }, n, r, i, a) {
|
|
|
6063
6063
|
a === 0 && h.comma ? i(h.comma, "UNEXPECTED_TOKEN", `Unexpected , in ${s}`) : a < r.items.length - 1 && i(h.start, "UNEXPECTED_TOKEN", `Unexpected empty item in ${s}`), h.comment && (c.comment ? c.comment += "\n" + h.comment : c.comment = h.comment), u = h.end;
|
|
6064
6064
|
continue;
|
|
6065
6065
|
}
|
|
6066
|
-
!o && n.options.strict &&
|
|
6066
|
+
!o && n.options.strict && ea(f) && i(f, "MULTILINE_IMPLICIT_KEY", "Implicit keys of flow sequence pairs need to be on a single line");
|
|
6067
6067
|
}
|
|
6068
6068
|
if (a === 0) h.comma && i(h.comma, "UNEXPECTED_TOKEN", `Unexpected , in ${s}`);
|
|
6069
6069
|
else if (h.comma || i(h.start, "MISSING_CHAR", `Missing , between ${s} items`), h.comment) {
|
|
@@ -6083,12 +6083,12 @@ function ca({ composeNode: e, composeEmptyNode: t }, n, r, i, a) {
|
|
|
6083
6083
|
}
|
|
6084
6084
|
if (!o && !p && !h.found) {
|
|
6085
6085
|
let r = m ? e(n, m, h, i) : t(n, h.end, p, null, h, i);
|
|
6086
|
-
c.items.push(r), u = r.range[2],
|
|
6086
|
+
c.items.push(r), u = r.range[2], ca(m) && i(r.range, "BLOCK_IN_FLOW", sa);
|
|
6087
6087
|
} else {
|
|
6088
6088
|
n.atKey = !0;
|
|
6089
6089
|
let a = h.end, g = f ? e(n, f, h, i) : t(n, a, d, null, h, i);
|
|
6090
|
-
|
|
6091
|
-
let _ =
|
|
6090
|
+
ca(f) && i(g.range, "BLOCK_IN_FLOW", sa), n.atKey = !1;
|
|
6091
|
+
let _ = $i(p ?? [], {
|
|
6092
6092
|
flow: s,
|
|
6093
6093
|
indicator: "map-value-ind",
|
|
6094
6094
|
next: m,
|
|
@@ -6110,11 +6110,11 @@ function ca({ composeNode: e, composeEmptyNode: t }, n, r, i, a) {
|
|
|
6110
6110
|
}
|
|
6111
6111
|
} else m && ("source" in m && m.source?.[0] === ":" ? i(m, "MISSING_CHAR", `Missing space after : in ${s}`) : i(_.start, "MISSING_CHAR", `Missing , or : between ${s} items`));
|
|
6112
6112
|
let v = m ? e(n, m, _, i) : _.found ? t(n, _.end, p, null, _, i) : null;
|
|
6113
|
-
v ?
|
|
6113
|
+
v ? ca(m) && i(v.range, "BLOCK_IN_FLOW", sa) : _.comment && (g.comment ? g.comment += "\n" + _.comment : g.comment = _.comment);
|
|
6114
6114
|
let y = new X(g, v);
|
|
6115
6115
|
if (n.options.keepSourceTokens && (y.srcToken = l), o) {
|
|
6116
6116
|
let e = c;
|
|
6117
|
-
|
|
6117
|
+
na(n, e.items, g) && i(a, "DUPLICATE_KEY", "Map keys must be unique"), e.items.push(y);
|
|
6118
6118
|
} else {
|
|
6119
6119
|
let e = new Z(n.schema);
|
|
6120
6120
|
e.flow = !0, e.items.push(y);
|
|
@@ -6135,7 +6135,7 @@ function ca({ composeNode: e, composeEmptyNode: t }, n, r, i, a) {
|
|
|
6135
6135
|
i(u, l ? "MISSING_CHAR" : "BAD_INDENT", t), f && f.source.length !== 1 && p.unshift(f);
|
|
6136
6136
|
}
|
|
6137
6137
|
if (p.length > 0) {
|
|
6138
|
-
let e =
|
|
6138
|
+
let e = oa(p, m, n.options.strict, i);
|
|
6139
6139
|
e.comment && (c.comment ? c.comment += "\n" + e.comment : c.comment = e.comment), c.range = [
|
|
6140
6140
|
r.offset,
|
|
6141
6141
|
m,
|
|
@@ -6150,31 +6150,31 @@ function ca({ composeNode: e, composeEmptyNode: t }, n, r, i, a) {
|
|
|
6150
6150
|
}
|
|
6151
6151
|
//#endregion
|
|
6152
6152
|
//#region node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/browser/dist/compose/compose-collection.js
|
|
6153
|
-
function
|
|
6154
|
-
let o = n.type === "block-map" ?
|
|
6153
|
+
function ua(e, t, n, r, i, a) {
|
|
6154
|
+
let o = n.type === "block-map" ? ia(e, t, n, r, a) : n.type === "block-seq" ? aa(e, t, n, r, a) : la(e, t, n, r, a), s = o.constructor;
|
|
6155
6155
|
return i === "!" || i === s.tagName ? (o.tag = s.tagName, o) : (i && (o.tag = i), o);
|
|
6156
6156
|
}
|
|
6157
|
-
function
|
|
6157
|
+
function da(e, t, n, r, i) {
|
|
6158
6158
|
let a = r.tag, o = a ? t.directives.tagName(a.source, (e) => i(a, "TAG_RESOLVE_FAILED", e)) : null;
|
|
6159
6159
|
if (n.type === "block-seq") {
|
|
6160
6160
|
let { anchor: e, newlineAfterProp: t } = r, n = e && a ? e.offset > a.offset ? e : a : e ?? a;
|
|
6161
6161
|
n && (!t || t.offset < n.offset) && i(n, "MISSING_CHAR", "Missing newline after block sequence props");
|
|
6162
6162
|
}
|
|
6163
6163
|
let s = n.type === "block-map" ? "map" : n.type === "block-seq" ? "seq" : n.start.source === "{" ? "map" : "seq";
|
|
6164
|
-
if (!a || !o || o === "!" || o === Z.tagName && s === "map" || o ===
|
|
6164
|
+
if (!a || !o || o === "!" || o === Z.tagName && s === "map" || o === qr.tagName && s === "seq") return ua(e, t, n, i, o);
|
|
6165
6165
|
let c = t.schema.tags.find((e) => e.tag === o && e.collection === s);
|
|
6166
6166
|
if (!c) {
|
|
6167
6167
|
let r = t.schema.knownTags[o];
|
|
6168
6168
|
if (r?.collection === s) t.schema.tags.push(Object.assign({}, r, { default: !1 })), c = r;
|
|
6169
|
-
else return r ? i(a, "BAD_COLLECTION_TYPE", `${r.tag} used for ${s} collection, but expects ${r.collection ?? "scalar"}`, !0) : i(a, "TAG_RESOLVE_FAILED", `Unresolved tag: ${o}`, !0),
|
|
6169
|
+
else return r ? i(a, "BAD_COLLECTION_TYPE", `${r.tag} used for ${s} collection, but expects ${r.collection ?? "scalar"}`, !0) : i(a, "TAG_RESOLVE_FAILED", `Unresolved tag: ${o}`, !0), ua(e, t, n, i, o);
|
|
6170
6170
|
}
|
|
6171
|
-
let l =
|
|
6171
|
+
let l = ua(e, t, n, i, o, c), u = c.resolve?.(l, (e) => i(a, "TAG_RESOLVE_FAILED", e), t.options) ?? l, d = K(u) ? u : new Y(u);
|
|
6172
6172
|
return d.range = l.range, d.tag = o, c?.format && (d.format = c.format), d;
|
|
6173
6173
|
}
|
|
6174
6174
|
//#endregion
|
|
6175
6175
|
//#region node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/browser/dist/compose/resolve-block-scalar.js
|
|
6176
|
-
function
|
|
6177
|
-
let r = t.offset, i =
|
|
6176
|
+
function fa(e, t, n) {
|
|
6177
|
+
let r = t.offset, i = pa(t, e.options.strict, n);
|
|
6178
6178
|
if (!i) return {
|
|
6179
6179
|
value: "",
|
|
6180
6180
|
type: null,
|
|
@@ -6185,7 +6185,7 @@ function da(e, t, n) {
|
|
|
6185
6185
|
r
|
|
6186
6186
|
]
|
|
6187
6187
|
};
|
|
6188
|
-
let a = i.mode === ">" ? Y.BLOCK_FOLDED : Y.BLOCK_LITERAL, o = t.source ?
|
|
6188
|
+
let a = i.mode === ">" ? Y.BLOCK_FOLDED : Y.BLOCK_LITERAL, o = t.source ? ma(t.source) : [], s = o.length;
|
|
6189
6189
|
for (let e = o.length - 1; e >= 0; --e) {
|
|
6190
6190
|
let t = o[e][1];
|
|
6191
6191
|
if (t === "" || t === "\r") s = e;
|
|
@@ -6248,7 +6248,7 @@ function da(e, t, n) {
|
|
|
6248
6248
|
]
|
|
6249
6249
|
};
|
|
6250
6250
|
}
|
|
6251
|
-
function
|
|
6251
|
+
function pa({ offset: e, props: t }, n, r) {
|
|
6252
6252
|
/* istanbul ignore if should not happen */
|
|
6253
6253
|
if (t[0].type !== "block-scalar-header") return r(t[0], "IMPOSSIBLE", "Block scalar header not found"), null;
|
|
6254
6254
|
let { source: i } = t[0], a = i[0], o = 0, s = "", c = -1;
|
|
@@ -6291,24 +6291,24 @@ function fa({ offset: e, props: t }, n, r) {
|
|
|
6291
6291
|
length: d
|
|
6292
6292
|
};
|
|
6293
6293
|
}
|
|
6294
|
-
function
|
|
6294
|
+
function ma(e) {
|
|
6295
6295
|
let t = e.split(/\n( *)/), n = t[0], r = n.match(/^( *)/), i = [r?.[1] ? [r[1], n.slice(r[1].length)] : ["", n]];
|
|
6296
6296
|
for (let e = 1; e < t.length; e += 2) i.push([t[e], t[e + 1]]);
|
|
6297
6297
|
return i;
|
|
6298
6298
|
}
|
|
6299
6299
|
//#endregion
|
|
6300
6300
|
//#region node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/browser/dist/compose/resolve-flow-scalar.js
|
|
6301
|
-
function
|
|
6301
|
+
function ha(e, t, n) {
|
|
6302
6302
|
let { offset: r, type: i, source: a, end: o } = e, s, c, l = (e, t, i) => n(r + e, t, i);
|
|
6303
6303
|
switch (i) {
|
|
6304
6304
|
case "scalar":
|
|
6305
|
-
s = Y.PLAIN, c =
|
|
6305
|
+
s = Y.PLAIN, c = ga(a, l);
|
|
6306
6306
|
break;
|
|
6307
6307
|
case "single-quoted-scalar":
|
|
6308
|
-
s = Y.QUOTE_SINGLE, c =
|
|
6308
|
+
s = Y.QUOTE_SINGLE, c = _a(a, l);
|
|
6309
6309
|
break;
|
|
6310
6310
|
case "double-quoted-scalar":
|
|
6311
|
-
s = Y.QUOTE_DOUBLE, c =
|
|
6311
|
+
s = Y.QUOTE_DOUBLE, c = ya(a, l);
|
|
6312
6312
|
break;
|
|
6313
6313
|
/* istanbul ignore next should not happen */
|
|
6314
6314
|
default: return n(e, "UNEXPECTED_TOKEN", `Expected a flow scalar value, but found: ${i}`), {
|
|
@@ -6322,7 +6322,7 @@ function ma(e, t, n) {
|
|
|
6322
6322
|
]
|
|
6323
6323
|
};
|
|
6324
6324
|
}
|
|
6325
|
-
let u = r + a.length, d =
|
|
6325
|
+
let u = r + a.length, d = oa(o, u, t, n);
|
|
6326
6326
|
return {
|
|
6327
6327
|
value: c,
|
|
6328
6328
|
type: s,
|
|
@@ -6334,7 +6334,7 @@ function ma(e, t, n) {
|
|
|
6334
6334
|
]
|
|
6335
6335
|
};
|
|
6336
6336
|
}
|
|
6337
|
-
function
|
|
6337
|
+
function ga(e, t) {
|
|
6338
6338
|
let n = "";
|
|
6339
6339
|
switch (e[0]) {
|
|
6340
6340
|
/* istanbul ignore next should not happen */
|
|
@@ -6354,12 +6354,12 @@ function ha(e, t) {
|
|
|
6354
6354
|
case "@":
|
|
6355
6355
|
case "`": n = `reserved character ${e[0]}`;
|
|
6356
6356
|
}
|
|
6357
|
-
return n && t(0, "BAD_SCALAR_START", `Plain value cannot start with ${n}`),
|
|
6357
|
+
return n && t(0, "BAD_SCALAR_START", `Plain value cannot start with ${n}`), va(e);
|
|
6358
6358
|
}
|
|
6359
|
-
function
|
|
6360
|
-
return (e[e.length - 1] !== "'" || e.length === 1) && t(e.length, "MISSING_CHAR", "Missing closing 'quote"),
|
|
6359
|
+
function _a(e, t) {
|
|
6360
|
+
return (e[e.length - 1] !== "'" || e.length === 1) && t(e.length, "MISSING_CHAR", "Missing closing 'quote"), va(e.slice(1, -1)).replace(/''/g, "'");
|
|
6361
6361
|
}
|
|
6362
|
-
function
|
|
6362
|
+
function va(e) {
|
|
6363
6363
|
let t, n;
|
|
6364
6364
|
try {
|
|
6365
6365
|
t = /* @__PURE__ */ RegExp("(.*?)(?<![ ])[ ]*\r?\n", "sy"), n = /* @__PURE__ */ RegExp("[ ]*(.*?)(?:(?<![ ])[ ]*)?\r?\n", "sy");
|
|
@@ -6373,22 +6373,22 @@ function _a(e) {
|
|
|
6373
6373
|
let s = /[ \t]*(.*)/sy;
|
|
6374
6374
|
return s.lastIndex = o, r = s.exec(e), i + a + (r?.[1] ?? "");
|
|
6375
6375
|
}
|
|
6376
|
-
function
|
|
6376
|
+
function ya(e, t) {
|
|
6377
6377
|
let n = "";
|
|
6378
6378
|
for (let r = 1; r < e.length - 1; ++r) {
|
|
6379
6379
|
let i = e[r];
|
|
6380
6380
|
if (i !== "\r" || e[r + 1] !== "\n") {
|
|
6381
6381
|
if (i === "\n") {
|
|
6382
|
-
let { fold: t, offset: i } =
|
|
6382
|
+
let { fold: t, offset: i } = ba(e, r);
|
|
6383
6383
|
n += t, r = i;
|
|
6384
6384
|
} else if (i === "\\") {
|
|
6385
|
-
let i = e[++r], a =
|
|
6385
|
+
let i = e[++r], a = xa[i];
|
|
6386
6386
|
if (a) n += a;
|
|
6387
6387
|
else if (i === "\n") for (i = e[r + 1]; i === " " || i === " ";) i = e[++r + 1];
|
|
6388
6388
|
else if (i === "\r" && e[r + 1] === "\n") for (i = e[++r + 1]; i === " " || i === " ";) i = e[++r + 1];
|
|
6389
6389
|
else if (i === "x" || i === "u" || i === "U") {
|
|
6390
6390
|
let a = i === "x" ? 2 : i === "u" ? 4 : 8;
|
|
6391
|
-
n +=
|
|
6391
|
+
n += Sa(e, r + 1, a, t), r += a;
|
|
6392
6392
|
} else {
|
|
6393
6393
|
let i = e.substr(r - 1, 2);
|
|
6394
6394
|
t(r - 1, "BAD_DQ_ESCAPE", `Invalid escape sequence ${i}`), n += i;
|
|
@@ -6402,7 +6402,7 @@ function va(e, t) {
|
|
|
6402
6402
|
}
|
|
6403
6403
|
return (e[e.length - 1] !== "\"" || e.length === 1) && t(e.length, "MISSING_CHAR", "Missing closing \"quote"), n;
|
|
6404
6404
|
}
|
|
6405
|
-
function
|
|
6405
|
+
function ba(e, t) {
|
|
6406
6406
|
let n = "", r = e[t + 1];
|
|
6407
6407
|
for (; (r === " " || r === " " || r === "\n" || r === "\r") && (r !== "\r" || e[t + 2] === "\n");) r === "\n" && (n += "\n"), t += 1, r = e[t + 1];
|
|
6408
6408
|
return n ||= " ", {
|
|
@@ -6410,7 +6410,7 @@ function ya(e, t) {
|
|
|
6410
6410
|
offset: t
|
|
6411
6411
|
};
|
|
6412
6412
|
}
|
|
6413
|
-
var
|
|
6413
|
+
var xa = {
|
|
6414
6414
|
0: "\0",
|
|
6415
6415
|
a: "\x07",
|
|
6416
6416
|
b: "\b",
|
|
@@ -6430,7 +6430,7 @@ var ba = {
|
|
|
6430
6430
|
"\\": "\\",
|
|
6431
6431
|
" ": " "
|
|
6432
6432
|
};
|
|
6433
|
-
function
|
|
6433
|
+
function Sa(e, t, n, r) {
|
|
6434
6434
|
let i = e.substr(t, n), a = i.length === n && /^[0-9a-fA-F]+$/.test(i) ? parseInt(i, 16) : NaN;
|
|
6435
6435
|
try {
|
|
6436
6436
|
return String.fromCodePoint(a);
|
|
@@ -6441,9 +6441,9 @@ function xa(e, t, n, r) {
|
|
|
6441
6441
|
}
|
|
6442
6442
|
//#endregion
|
|
6443
6443
|
//#region node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/browser/dist/compose/compose-scalar.js
|
|
6444
|
-
function
|
|
6445
|
-
let { value: i, type: a, comment: o, range: s } = t.type === "block-scalar" ?
|
|
6446
|
-
l = e.options.stringKeys && e.atKey ? e.schema[
|
|
6444
|
+
function Ca(e, t, n, r) {
|
|
6445
|
+
let { value: i, type: a, comment: o, range: s } = t.type === "block-scalar" ? fa(e, t, r) : ha(t, e.options.strict, r), c = n ? e.directives.tagName(n.source, (e) => r(n, "TAG_RESOLVE_FAILED", e)) : null, l;
|
|
6446
|
+
l = e.options.stringKeys && e.atKey ? e.schema[On] : c ? wa(e.schema, i, c, n, r) : t.type === "scalar" ? Ta(e, i, t, r) : e.schema[On];
|
|
6447
6447
|
let u;
|
|
6448
6448
|
try {
|
|
6449
6449
|
let a = l.resolve(i, (e) => r(n ?? t, "TAG_RESOLVE_FAILED", e), e.options);
|
|
@@ -6454,8 +6454,8 @@ function Sa(e, t, n, r) {
|
|
|
6454
6454
|
}
|
|
6455
6455
|
return u.range = s, u.source = i, a && (u.type = a), c && (u.tag = c), l.format && (u.format = l.format), o && (u.comment = o), u;
|
|
6456
6456
|
}
|
|
6457
|
-
function
|
|
6458
|
-
if (n === "!") return e[
|
|
6457
|
+
function wa(e, t, n, r, i) {
|
|
6458
|
+
if (n === "!") return e[On];
|
|
6459
6459
|
let a = [];
|
|
6460
6460
|
for (let t of e.tags) if (!t.collection && t.tag === n) {
|
|
6461
6461
|
if (t.default && t.test) a.push(t);
|
|
@@ -6466,19 +6466,19 @@ function Ca(e, t, n, r, i) {
|
|
|
6466
6466
|
return o && !o.collection ? (e.tags.push(Object.assign({}, o, {
|
|
6467
6467
|
default: !1,
|
|
6468
6468
|
test: void 0
|
|
6469
|
-
})), o) : (i(r, "TAG_RESOLVE_FAILED", `Unresolved tag: ${n}`, n !== "tag:yaml.org,2002:str"), e[
|
|
6469
|
+
})), o) : (i(r, "TAG_RESOLVE_FAILED", `Unresolved tag: ${n}`, n !== "tag:yaml.org,2002:str"), e[On]);
|
|
6470
6470
|
}
|
|
6471
|
-
function
|
|
6472
|
-
let o = n.tags.find((t) => (t.default === !0 || e && t.default === "key") && t.test?.test(r)) || n[
|
|
6471
|
+
function Ta({ atKey: e, directives: t, schema: n }, r, i, a) {
|
|
6472
|
+
let o = n.tags.find((t) => (t.default === !0 || e && t.default === "key") && t.test?.test(r)) || n[On];
|
|
6473
6473
|
if (n.compat) {
|
|
6474
|
-
let e = n.compat.find((e) => e.default && e.test?.test(r)) ?? n[
|
|
6474
|
+
let e = n.compat.find((e) => e.default && e.test?.test(r)) ?? n[On];
|
|
6475
6475
|
o.tag !== e.tag && a(i, "TAG_RESOLVE_FAILED", `Value may be parsed as either ${t.tagString(o.tag)} or ${t.tagString(e.tag)}`, !0);
|
|
6476
6476
|
}
|
|
6477
6477
|
return o;
|
|
6478
6478
|
}
|
|
6479
6479
|
//#endregion
|
|
6480
6480
|
//#region node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/browser/dist/compose/util-empty-scalar-position.js
|
|
6481
|
-
function
|
|
6481
|
+
function Ea(e, t, n) {
|
|
6482
6482
|
if (t) {
|
|
6483
6483
|
n ??= t.length;
|
|
6484
6484
|
for (let r = n - 1; r >= 0; --r) {
|
|
@@ -6498,48 +6498,48 @@ function Ta(e, t, n) {
|
|
|
6498
6498
|
}
|
|
6499
6499
|
//#endregion
|
|
6500
6500
|
//#region node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/browser/dist/compose/compose-node.js
|
|
6501
|
-
var
|
|
6502
|
-
composeNode:
|
|
6503
|
-
composeEmptyNode:
|
|
6501
|
+
var Da = {
|
|
6502
|
+
composeNode: Oa,
|
|
6503
|
+
composeEmptyNode: ka
|
|
6504
6504
|
};
|
|
6505
|
-
function
|
|
6505
|
+
function Oa(e, t, n, r) {
|
|
6506
6506
|
let i = e.atKey, { spaceBefore: a, comment: o, anchor: s, tag: c } = n, l, u = !0;
|
|
6507
6507
|
switch (t.type) {
|
|
6508
6508
|
case "alias":
|
|
6509
|
-
l =
|
|
6509
|
+
l = Aa(e, t, r), (s || c) && r(t, "ALIAS_PROPS", "An alias node must not specify any properties");
|
|
6510
6510
|
break;
|
|
6511
6511
|
case "scalar":
|
|
6512
6512
|
case "single-quoted-scalar":
|
|
6513
6513
|
case "double-quoted-scalar":
|
|
6514
6514
|
case "block-scalar":
|
|
6515
|
-
l =
|
|
6515
|
+
l = Ca(e, t, c, r), s && (l.anchor = s.source.substring(1));
|
|
6516
6516
|
break;
|
|
6517
6517
|
case "block-map":
|
|
6518
6518
|
case "block-seq":
|
|
6519
6519
|
case "flow-collection":
|
|
6520
6520
|
try {
|
|
6521
|
-
l =
|
|
6521
|
+
l = da(Da, e, t, n, r), s && (l.anchor = s.source.substring(1));
|
|
6522
6522
|
} catch (e) {
|
|
6523
6523
|
r(t, "RESOURCE_EXHAUSTION", e instanceof Error ? e.message : String(e));
|
|
6524
6524
|
}
|
|
6525
6525
|
break;
|
|
6526
6526
|
default: r(t, "UNEXPECTED_TOKEN", t.type === "error" ? t.message : `Unsupported token (type: ${t.type})`), u = !1;
|
|
6527
6527
|
}
|
|
6528
|
-
return l ??=
|
|
6528
|
+
return l ??= ka(e, t.offset, void 0, null, n, r), s && l.anchor === "" && r(s, "BAD_ALIAS", "Anchor cannot be an empty string"), i && e.options.stringKeys && (!W(l) || typeof l.value != "string" || l.tag && l.tag !== "tag:yaml.org,2002:str") && r(c ?? t, "NON_STRING_KEY", "With stringKeys, all keys must be strings"), a && (l.spaceBefore = !0), o && (t.type === "scalar" && t.source === "" ? l.comment = o : l.commentBefore = o), e.options.keepSourceTokens && u && (l.srcToken = t), l;
|
|
6529
6529
|
}
|
|
6530
|
-
function
|
|
6531
|
-
let u =
|
|
6530
|
+
function ka(e, t, n, r, { spaceBefore: i, comment: a, anchor: o, tag: s, end: c }, l) {
|
|
6531
|
+
let u = Ca(e, {
|
|
6532
6532
|
type: "scalar",
|
|
6533
|
-
offset:
|
|
6533
|
+
offset: Ea(t, n, r),
|
|
6534
6534
|
indent: -1,
|
|
6535
6535
|
source: ""
|
|
6536
6536
|
}, s, l);
|
|
6537
6537
|
return o && (u.anchor = o.source.substring(1), u.anchor === "" && l(o, "BAD_ALIAS", "Anchor cannot be an empty string")), i && (u.spaceBefore = !0), a && (u.comment = a, u.range[2] = c), u;
|
|
6538
6538
|
}
|
|
6539
|
-
function
|
|
6540
|
-
let a = new
|
|
6539
|
+
function Aa({ options: e }, { offset: t, source: n, end: r }, i) {
|
|
6540
|
+
let a = new $n(n.substring(1));
|
|
6541
6541
|
a.source === "" && i(t, "BAD_ALIAS", "Alias cannot be an empty string"), a.source.endsWith(":") && i(t + n.length - 1, "BAD_ALIAS", "Alias ending in : is ambiguous", !0);
|
|
6542
|
-
let o = t + n.length, s =
|
|
6542
|
+
let o = t + n.length, s = oa(r, o, e.strict, i);
|
|
6543
6543
|
return a.range = [
|
|
6544
6544
|
t,
|
|
6545
6545
|
o,
|
|
@@ -6548,14 +6548,14 @@ function ka({ options: e }, { offset: t, source: n, end: r }, i) {
|
|
|
6548
6548
|
}
|
|
6549
6549
|
//#endregion
|
|
6550
6550
|
//#region node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/browser/dist/compose/compose-doc.js
|
|
6551
|
-
function
|
|
6552
|
-
let s = new
|
|
6551
|
+
function ja(e, t, { offset: n, start: r, value: i, end: a }, o) {
|
|
6552
|
+
let s = new qi(void 0, Object.assign({ _directives: t }, e)), c = {
|
|
6553
6553
|
atKey: !1,
|
|
6554
6554
|
atRoot: !0,
|
|
6555
6555
|
directives: s.directives,
|
|
6556
6556
|
options: s.options,
|
|
6557
6557
|
schema: s.schema
|
|
6558
|
-
}, l =
|
|
6558
|
+
}, l = $i(r, {
|
|
6559
6559
|
indicator: "doc-start",
|
|
6560
6560
|
next: i ?? a?.[0],
|
|
6561
6561
|
offset: n,
|
|
@@ -6563,8 +6563,8 @@ function Aa(e, t, { offset: n, start: r, value: i, end: a }, o) {
|
|
|
6563
6563
|
parentIndent: 0,
|
|
6564
6564
|
startOnNewline: !0
|
|
6565
6565
|
});
|
|
6566
|
-
l.found && (s.directives.docStart = !0, i && (i.type === "block-map" || i.type === "block-seq") && !l.hasNewline && o(l.end, "MISSING_CHAR", "Block collection cannot start on same line with directives-end marker")), s.contents = i ?
|
|
6567
|
-
let u = s.contents.range[2], d =
|
|
6566
|
+
l.found && (s.directives.docStart = !0, i && (i.type === "block-map" || i.type === "block-seq") && !l.hasNewline && o(l.end, "MISSING_CHAR", "Block collection cannot start on same line with directives-end marker")), s.contents = i ? Oa(c, i, l, o) : ka(c, l.end, r, null, l, o);
|
|
6567
|
+
let u = s.contents.range[2], d = oa(a, u, !1, o);
|
|
6568
6568
|
return d.comment && (s.comment = d.comment), s.range = [
|
|
6569
6569
|
n,
|
|
6570
6570
|
u,
|
|
@@ -6573,13 +6573,13 @@ function Aa(e, t, { offset: n, start: r, value: i, end: a }, o) {
|
|
|
6573
6573
|
}
|
|
6574
6574
|
//#endregion
|
|
6575
6575
|
//#region node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/browser/dist/compose/composer.js
|
|
6576
|
-
function
|
|
6576
|
+
function Ma(e) {
|
|
6577
6577
|
if (typeof e == "number") return [e, e + 1];
|
|
6578
6578
|
if (Array.isArray(e)) return e.length === 2 ? e : [e[0], e[1]];
|
|
6579
6579
|
let { offset: t, source: n } = e;
|
|
6580
6580
|
return [t, t + (typeof n == "string" ? n.length : 1)];
|
|
6581
6581
|
}
|
|
6582
|
-
function
|
|
6582
|
+
function Na(e) {
|
|
6583
6583
|
let t = "", n = !1, r = !1;
|
|
6584
6584
|
for (let i = 0; i < e.length; ++i) {
|
|
6585
6585
|
let a = e[i];
|
|
@@ -6598,15 +6598,15 @@ function Ma(e) {
|
|
|
6598
6598
|
afterEmptyLine: r
|
|
6599
6599
|
};
|
|
6600
6600
|
}
|
|
6601
|
-
var
|
|
6601
|
+
var Pa = class {
|
|
6602
6602
|
constructor(e = {}) {
|
|
6603
6603
|
this.doc = null, this.atDirectives = !1, this.prelude = [], this.errors = [], this.warnings = [], this.onError = (e, t, n, r) => {
|
|
6604
|
-
let i =
|
|
6605
|
-
r ? this.warnings.push(new
|
|
6606
|
-
}, this.directives = new
|
|
6604
|
+
let i = Ma(e);
|
|
6605
|
+
r ? this.warnings.push(new Zi(i, t, n)) : this.errors.push(new Xi(i, t, n));
|
|
6606
|
+
}, this.directives = new Kn({ version: e.version || "1.2" }), this.options = e;
|
|
6607
6607
|
}
|
|
6608
6608
|
decorate(e, t) {
|
|
6609
|
-
let { comment: n, afterEmptyLine: r } =
|
|
6609
|
+
let { comment: n, afterEmptyLine: r } = Na(this.prelude);
|
|
6610
6610
|
if (n) {
|
|
6611
6611
|
let i = e.contents;
|
|
6612
6612
|
if (t) e.comment = e.comment ? `${e.comment}\n${n}` : n;
|
|
@@ -6629,7 +6629,7 @@ var Na = class {
|
|
|
6629
6629
|
}
|
|
6630
6630
|
streamInfo() {
|
|
6631
6631
|
return {
|
|
6632
|
-
comment:
|
|
6632
|
+
comment: Na(this.prelude).comment,
|
|
6633
6633
|
directives: this.directives,
|
|
6634
6634
|
errors: this.errors,
|
|
6635
6635
|
warnings: this.warnings
|
|
@@ -6643,12 +6643,12 @@ var Na = class {
|
|
|
6643
6643
|
switch (e.type) {
|
|
6644
6644
|
case "directive":
|
|
6645
6645
|
this.directives.add(e.source, (t, n, r) => {
|
|
6646
|
-
let i =
|
|
6646
|
+
let i = Ma(e);
|
|
6647
6647
|
i[0] += t, this.onError(i, "BAD_DIRECTIVE", n, r);
|
|
6648
6648
|
}), this.prelude.push(e.source), this.atDirectives = !0;
|
|
6649
6649
|
break;
|
|
6650
6650
|
case "document": {
|
|
6651
|
-
let t =
|
|
6651
|
+
let t = ja(this.options, this.directives, e, this.onError);
|
|
6652
6652
|
this.atDirectives && !t.directives.docStart && this.onError(e, "MISSING_CHAR", "Missing directives-end/doc-start indicator line"), this.decorate(t, !1), this.doc && (yield this.doc), this.doc = t, this.atDirectives = !1;
|
|
6653
6653
|
break;
|
|
6654
6654
|
}
|
|
@@ -6659,17 +6659,17 @@ var Na = class {
|
|
|
6659
6659
|
this.prelude.push(e.source);
|
|
6660
6660
|
break;
|
|
6661
6661
|
case "error": {
|
|
6662
|
-
let t = e.source ? `${e.message}: ${JSON.stringify(e.source)}` : e.message, n = new
|
|
6662
|
+
let t = e.source ? `${e.message}: ${JSON.stringify(e.source)}` : e.message, n = new Xi(Ma(e), "UNEXPECTED_TOKEN", t);
|
|
6663
6663
|
this.atDirectives || !this.doc ? this.errors.push(n) : this.doc.errors.push(n);
|
|
6664
6664
|
break;
|
|
6665
6665
|
}
|
|
6666
6666
|
case "doc-end": {
|
|
6667
6667
|
if (!this.doc) {
|
|
6668
|
-
this.errors.push(new
|
|
6668
|
+
this.errors.push(new Xi(Ma(e), "UNEXPECTED_TOKEN", "Unexpected doc-end without preceding document"));
|
|
6669
6669
|
break;
|
|
6670
6670
|
}
|
|
6671
6671
|
this.doc.directives.docEnd = !0;
|
|
6672
|
-
let t =
|
|
6672
|
+
let t = oa(e.end, e.offset + e.source.length, this.doc.options.strict, this.onError);
|
|
6673
6673
|
if (this.decorate(this.doc, !0), t.comment) {
|
|
6674
6674
|
let e = this.doc.comment;
|
|
6675
6675
|
this.doc.comment = e ? `${e}\n${t.comment}` : t.comment;
|
|
@@ -6677,13 +6677,13 @@ var Na = class {
|
|
|
6677
6677
|
this.doc.range[2] = t.offset;
|
|
6678
6678
|
break;
|
|
6679
6679
|
}
|
|
6680
|
-
default: this.errors.push(new
|
|
6680
|
+
default: this.errors.push(new Xi(Ma(e), "UNEXPECTED_TOKEN", `Unsupported token ${e.type}`));
|
|
6681
6681
|
}
|
|
6682
6682
|
}
|
|
6683
6683
|
*end(e = !1, t = -1) {
|
|
6684
6684
|
if (this.doc) this.decorate(this.doc, !0), yield this.doc, this.doc = null;
|
|
6685
6685
|
else if (e) {
|
|
6686
|
-
let e = new
|
|
6686
|
+
let e = new qi(void 0, Object.assign({ _directives: this.directives }, this.options));
|
|
6687
6687
|
this.atDirectives && this.onError(t, "MISSING_CHAR", "Missing directives-end indicator line"), e.range = [
|
|
6688
6688
|
0,
|
|
6689
6689
|
t,
|
|
@@ -6694,24 +6694,24 @@ var Na = class {
|
|
|
6694
6694
|
};
|
|
6695
6695
|
//#endregion
|
|
6696
6696
|
//#region node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/browser/dist/parse/cst-scalar.js
|
|
6697
|
-
function
|
|
6697
|
+
function Fa(e, t = !0, n) {
|
|
6698
6698
|
if (e) {
|
|
6699
6699
|
let r = (e, t, r) => {
|
|
6700
6700
|
let i = typeof e == "number" ? e : Array.isArray(e) ? e[0] : e.offset;
|
|
6701
6701
|
if (n) n(i, t, r);
|
|
6702
|
-
else throw new
|
|
6702
|
+
else throw new Xi([i, i + 1], t, r);
|
|
6703
6703
|
};
|
|
6704
6704
|
switch (e.type) {
|
|
6705
6705
|
case "scalar":
|
|
6706
6706
|
case "single-quoted-scalar":
|
|
6707
|
-
case "double-quoted-scalar": return
|
|
6708
|
-
case "block-scalar": return
|
|
6707
|
+
case "double-quoted-scalar": return ha(e, t, r);
|
|
6708
|
+
case "block-scalar": return fa({ options: { strict: t } }, e, r);
|
|
6709
6709
|
}
|
|
6710
6710
|
}
|
|
6711
6711
|
return null;
|
|
6712
6712
|
}
|
|
6713
|
-
function
|
|
6714
|
-
let { implicitKey: n = !1, indent: r, inFlow: i = !1, offset: a = -1, type: o = "PLAIN" } = t, s =
|
|
6713
|
+
function Ia(e, t) {
|
|
6714
|
+
let { implicitKey: n = !1, indent: r, inFlow: i = !1, offset: a = -1, type: o = "PLAIN" } = t, s = Tr({
|
|
6715
6715
|
type: o,
|
|
6716
6716
|
value: e
|
|
6717
6717
|
}, {
|
|
@@ -6737,7 +6737,7 @@ function Fa(e, t) {
|
|
|
6737
6737
|
indent: r,
|
|
6738
6738
|
source: t
|
|
6739
6739
|
}];
|
|
6740
|
-
return
|
|
6740
|
+
return za(i, c) || i.push({
|
|
6741
6741
|
type: "newline",
|
|
6742
6742
|
offset: -1,
|
|
6743
6743
|
indent: r,
|
|
@@ -6773,7 +6773,7 @@ function Fa(e, t) {
|
|
|
6773
6773
|
};
|
|
6774
6774
|
}
|
|
6775
6775
|
}
|
|
6776
|
-
function
|
|
6776
|
+
function La(e, t, n = {}) {
|
|
6777
6777
|
let { afterKey: r = !1, implicitKey: i = !1, inFlow: a = !1, type: o } = n, s = "indent" in e ? e.indent : null;
|
|
6778
6778
|
if (r && typeof s == "number" && (s += 2), !o) switch (e.type) {
|
|
6779
6779
|
case "single-quoted-scalar":
|
|
@@ -6790,7 +6790,7 @@ function Ia(e, t, n = {}) {
|
|
|
6790
6790
|
}
|
|
6791
6791
|
default: o = "PLAIN";
|
|
6792
6792
|
}
|
|
6793
|
-
let c =
|
|
6793
|
+
let c = Tr({
|
|
6794
6794
|
type: o,
|
|
6795
6795
|
value: t
|
|
6796
6796
|
}, {
|
|
@@ -6805,18 +6805,18 @@ function Ia(e, t, n = {}) {
|
|
|
6805
6805
|
switch (c[0]) {
|
|
6806
6806
|
case "|":
|
|
6807
6807
|
case ">":
|
|
6808
|
-
|
|
6808
|
+
Ra(e, c);
|
|
6809
6809
|
break;
|
|
6810
6810
|
case "\"":
|
|
6811
|
-
|
|
6811
|
+
Ba(e, c, "double-quoted-scalar");
|
|
6812
6812
|
break;
|
|
6813
6813
|
case "'":
|
|
6814
|
-
|
|
6814
|
+
Ba(e, c, "single-quoted-scalar");
|
|
6815
6815
|
break;
|
|
6816
|
-
default:
|
|
6816
|
+
default: Ba(e, c, "scalar");
|
|
6817
6817
|
}
|
|
6818
6818
|
}
|
|
6819
|
-
function
|
|
6819
|
+
function Ra(e, t) {
|
|
6820
6820
|
let n = t.indexOf("\n"), r = t.substring(0, n), i = t.substring(n + 1) + "\n";
|
|
6821
6821
|
if (e.type === "block-scalar") {
|
|
6822
6822
|
let t = e.props[0];
|
|
@@ -6829,7 +6829,7 @@ function La(e, t) {
|
|
|
6829
6829
|
indent: n,
|
|
6830
6830
|
source: r
|
|
6831
6831
|
}];
|
|
6832
|
-
|
|
6832
|
+
za(a, "end" in e ? e.end : void 0) || a.push({
|
|
6833
6833
|
type: "newline",
|
|
6834
6834
|
offset: -1,
|
|
6835
6835
|
indent: n,
|
|
@@ -6844,7 +6844,7 @@ function La(e, t) {
|
|
|
6844
6844
|
});
|
|
6845
6845
|
}
|
|
6846
6846
|
}
|
|
6847
|
-
function
|
|
6847
|
+
function za(e, t) {
|
|
6848
6848
|
if (t) for (let n of t) switch (n.type) {
|
|
6849
6849
|
case "space":
|
|
6850
6850
|
case "comment":
|
|
@@ -6854,7 +6854,7 @@ function Ra(e, t) {
|
|
|
6854
6854
|
}
|
|
6855
6855
|
return !1;
|
|
6856
6856
|
}
|
|
6857
|
-
function
|
|
6857
|
+
function Ba(e, t, n) {
|
|
6858
6858
|
switch (e.type) {
|
|
6859
6859
|
case "scalar":
|
|
6860
6860
|
case "double-quoted-scalar":
|
|
@@ -6901,28 +6901,28 @@ function za(e, t, n) {
|
|
|
6901
6901
|
}
|
|
6902
6902
|
//#endregion
|
|
6903
6903
|
//#region node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/browser/dist/parse/cst-stringify.js
|
|
6904
|
-
var
|
|
6905
|
-
function
|
|
6904
|
+
var Va = (e) => "type" in e ? Ha(e) : Ua(e);
|
|
6905
|
+
function Ha(e) {
|
|
6906
6906
|
switch (e.type) {
|
|
6907
6907
|
case "block-scalar": {
|
|
6908
6908
|
let t = "";
|
|
6909
|
-
for (let n of e.props) t +=
|
|
6909
|
+
for (let n of e.props) t += Ha(n);
|
|
6910
6910
|
return t + e.source;
|
|
6911
6911
|
}
|
|
6912
6912
|
case "block-map":
|
|
6913
6913
|
case "block-seq": {
|
|
6914
6914
|
let t = "";
|
|
6915
|
-
for (let n of e.items) t +=
|
|
6915
|
+
for (let n of e.items) t += Ua(n);
|
|
6916
6916
|
return t;
|
|
6917
6917
|
}
|
|
6918
6918
|
case "flow-collection": {
|
|
6919
6919
|
let t = e.start.source;
|
|
6920
|
-
for (let n of e.items) t +=
|
|
6920
|
+
for (let n of e.items) t += Ua(n);
|
|
6921
6921
|
for (let n of e.end) t += n.source;
|
|
6922
6922
|
return t;
|
|
6923
6923
|
}
|
|
6924
6924
|
case "document": {
|
|
6925
|
-
let t =
|
|
6925
|
+
let t = Ua(e);
|
|
6926
6926
|
if (e.end) for (let n of e.end) t += n.source;
|
|
6927
6927
|
return t;
|
|
6928
6928
|
}
|
|
@@ -6933,22 +6933,22 @@ function Va(e) {
|
|
|
6933
6933
|
}
|
|
6934
6934
|
}
|
|
6935
6935
|
}
|
|
6936
|
-
function
|
|
6936
|
+
function Ua({ start: e, key: t, sep: n, value: r }) {
|
|
6937
6937
|
let i = "";
|
|
6938
6938
|
for (let t of e) i += t.source;
|
|
6939
|
-
if (t && (i +=
|
|
6940
|
-
return r && (i +=
|
|
6939
|
+
if (t && (i += Ha(t)), n) for (let e of n) i += e.source;
|
|
6940
|
+
return r && (i += Ha(r)), i;
|
|
6941
6941
|
}
|
|
6942
6942
|
//#endregion
|
|
6943
6943
|
//#region node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/browser/dist/parse/cst-visit.js
|
|
6944
|
-
var
|
|
6945
|
-
function
|
|
6944
|
+
var Wa = Symbol("break visit"), Ga = Symbol("skip children"), Ka = Symbol("remove item");
|
|
6945
|
+
function qa(e, t) {
|
|
6946
6946
|
"type" in e && e.type === "document" && (e = {
|
|
6947
6947
|
start: e.start,
|
|
6948
6948
|
value: e.value
|
|
6949
|
-
}),
|
|
6949
|
+
}), Ja(Object.freeze([]), e, t);
|
|
6950
6950
|
}
|
|
6951
|
-
|
|
6951
|
+
qa.BREAK = Wa, qa.SKIP = Ga, qa.REMOVE = Ka, qa.itemAtPath = (e, t) => {
|
|
6952
6952
|
let n = e;
|
|
6953
6953
|
for (let [e, r] of t) {
|
|
6954
6954
|
let t = n?.[e];
|
|
@@ -6956,22 +6956,22 @@ Ka.BREAK = Ua, Ka.SKIP = Wa, Ka.REMOVE = Ga, Ka.itemAtPath = (e, t) => {
|
|
|
6956
6956
|
else return;
|
|
6957
6957
|
}
|
|
6958
6958
|
return n;
|
|
6959
|
-
},
|
|
6960
|
-
let n =
|
|
6959
|
+
}, qa.parentCollection = (e, t) => {
|
|
6960
|
+
let n = qa.itemAtPath(e, t.slice(0, -1)), r = t[t.length - 1][0], i = n?.[r];
|
|
6961
6961
|
if (i && "items" in i) return i;
|
|
6962
6962
|
throw Error("Parent collection not found");
|
|
6963
6963
|
};
|
|
6964
|
-
function
|
|
6964
|
+
function Ja(e, t, n) {
|
|
6965
6965
|
let r = n(t, e);
|
|
6966
6966
|
if (typeof r == "symbol") return r;
|
|
6967
6967
|
for (let i of ["key", "value"]) {
|
|
6968
6968
|
let a = t[i];
|
|
6969
6969
|
if (a && "items" in a) {
|
|
6970
6970
|
for (let t = 0; t < a.items.length; ++t) {
|
|
6971
|
-
let r =
|
|
6971
|
+
let r = Ja(Object.freeze(e.concat([[i, t]])), a.items[t], n);
|
|
6972
6972
|
if (typeof r == "number") t = r - 1;
|
|
6973
|
-
else if (r ===
|
|
6974
|
-
else r ===
|
|
6973
|
+
else if (r === Wa) return Wa;
|
|
6974
|
+
else r === Ka && (a.items.splice(t, 1), --t);
|
|
6975
6975
|
}
|
|
6976
6976
|
typeof r == "function" && i === "key" && (r = r(t, e));
|
|
6977
6977
|
}
|
|
@@ -6980,23 +6980,23 @@ function qa(e, t, n) {
|
|
|
6980
6980
|
}
|
|
6981
6981
|
//#endregion
|
|
6982
6982
|
//#region node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/browser/dist/parse/cst.js
|
|
6983
|
-
var
|
|
6983
|
+
var Ya = /* @__PURE__ */ b({
|
|
6984
6984
|
BOM: () => "",
|
|
6985
6985
|
DOCUMENT: () => "",
|
|
6986
6986
|
FLOW_END: () => "",
|
|
6987
6987
|
SCALAR: () => "",
|
|
6988
|
-
createScalarToken: () =>
|
|
6989
|
-
isCollection: () =>
|
|
6990
|
-
isScalar: () =>
|
|
6991
|
-
prettyToken: () =>
|
|
6992
|
-
resolveAsScalar: () =>
|
|
6993
|
-
setScalarValue: () =>
|
|
6994
|
-
stringify: () =>
|
|
6995
|
-
tokenType: () =>
|
|
6996
|
-
visit: () =>
|
|
6997
|
-
}),
|
|
6988
|
+
createScalarToken: () => Ia,
|
|
6989
|
+
isCollection: () => Xa,
|
|
6990
|
+
isScalar: () => Za,
|
|
6991
|
+
prettyToken: () => Qa,
|
|
6992
|
+
resolveAsScalar: () => Fa,
|
|
6993
|
+
setScalarValue: () => La,
|
|
6994
|
+
stringify: () => Va,
|
|
6995
|
+
tokenType: () => $a,
|
|
6996
|
+
visit: () => qa
|
|
6997
|
+
}), Xa = (e) => !!e && "items" in e, Za = (e) => !!e && (e.type === "scalar" || e.type === "single-quoted-scalar" || e.type === "double-quoted-scalar" || e.type === "block-scalar");
|
|
6998
6998
|
/* istanbul ignore next */
|
|
6999
|
-
function
|
|
6999
|
+
function Qa(e) {
|
|
7000
7000
|
switch (e) {
|
|
7001
7001
|
case "": return "<BOM>";
|
|
7002
7002
|
case "": return "<DOC>";
|
|
@@ -7005,7 +7005,7 @@ function Za(e) {
|
|
|
7005
7005
|
default: return JSON.stringify(e);
|
|
7006
7006
|
}
|
|
7007
7007
|
}
|
|
7008
|
-
function
|
|
7008
|
+
function $a(e) {
|
|
7009
7009
|
switch (e) {
|
|
7010
7010
|
case "": return "byte-order-mark";
|
|
7011
7011
|
case "": return "doc-mode";
|
|
@@ -7042,7 +7042,7 @@ function Qa(e) {
|
|
|
7042
7042
|
}
|
|
7043
7043
|
//#endregion
|
|
7044
7044
|
//#region node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/browser/dist/parse/lexer.js
|
|
7045
|
-
function
|
|
7045
|
+
function eo(e) {
|
|
7046
7046
|
switch (e) {
|
|
7047
7047
|
case void 0:
|
|
7048
7048
|
case " ":
|
|
@@ -7052,7 +7052,7 @@ function $a(e) {
|
|
|
7052
7052
|
default: return !1;
|
|
7053
7053
|
}
|
|
7054
7054
|
}
|
|
7055
|
-
var
|
|
7055
|
+
var to = /* @__PURE__ */ new Set("0123456789ABCDEFabcdef"), no = /* @__PURE__ */ new Set("0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-#;/?:@&=+$_.!~*'()"), ro = /* @__PURE__ */ new Set(",[]{}"), io = /* @__PURE__ */ new Set(" ,[]{}\n\r "), ao = (e) => !e || io.has(e), oo = class {
|
|
7056
7056
|
constructor() {
|
|
7057
7057
|
this.atEnd = !1, this.blockScalarIndent = -1, this.blockScalarKeep = !1, this.buffer = "", this.flowKey = !1, this.flowLevel = 0, this.indentNext = 0, this.indentValue = 0, this.lineEndPos = null, this.next = null, this.pos = 0;
|
|
7058
7058
|
}
|
|
@@ -7086,7 +7086,7 @@ var eo = /* @__PURE__ */ new Set("0123456789ABCDEFabcdef"), to = /* @__PURE__ */
|
|
|
7086
7086
|
}
|
|
7087
7087
|
if (t === "-" || t === ".") {
|
|
7088
7088
|
let t = this.buffer.substr(e, 3);
|
|
7089
|
-
if ((t === "---" || t === "...") &&
|
|
7089
|
+
if ((t === "---" || t === "...") && eo(this.buffer[e + 3])) return -1;
|
|
7090
7090
|
}
|
|
7091
7091
|
return e;
|
|
7092
7092
|
}
|
|
@@ -7148,14 +7148,14 @@ var eo = /* @__PURE__ */ new Set("0123456789ABCDEFabcdef"), to = /* @__PURE__ */
|
|
|
7148
7148
|
if (e === "-" || e === ".") {
|
|
7149
7149
|
if (!this.atEnd && !this.hasChars(4)) return this.setNext("line-start");
|
|
7150
7150
|
let e = this.peek(3);
|
|
7151
|
-
if ((e === "---" || e === "...") &&
|
|
7151
|
+
if ((e === "---" || e === "...") && eo(this.charAt(3))) return yield* this.pushCount(3), this.indentValue = 0, this.indentNext = 0, e === "---" ? "doc" : "stream";
|
|
7152
7152
|
}
|
|
7153
|
-
return this.indentValue = yield* this.pushSpaces(!1), this.indentNext > this.indentValue &&
|
|
7153
|
+
return this.indentValue = yield* this.pushSpaces(!1), this.indentNext > this.indentValue && !eo(this.charAt(1)) && (this.indentNext = this.indentValue), yield* this.parseBlockStart();
|
|
7154
7154
|
}
|
|
7155
7155
|
*parseBlockStart() {
|
|
7156
7156
|
let [e, t] = this.peek(2);
|
|
7157
7157
|
if (!t && !this.atEnd) return this.setNext("block-start");
|
|
7158
|
-
if ((e === "-" || e === "?" || e === ":") &&
|
|
7158
|
+
if ((e === "-" || e === "?" || e === ":") && eo(t)) {
|
|
7159
7159
|
let e = (yield* this.pushCount(1)) + (yield* this.pushSpaces(!0));
|
|
7160
7160
|
return this.indentNext = this.indentValue + 1, this.indentValue += e, "block-start";
|
|
7161
7161
|
}
|
|
@@ -7173,7 +7173,7 @@ var eo = /* @__PURE__ */ new Set("0123456789ABCDEFabcdef"), to = /* @__PURE__ */
|
|
|
7173
7173
|
case "[": return yield* this.pushCount(1), this.flowKey = !1, this.flowLevel = 1, "flow";
|
|
7174
7174
|
case "}":
|
|
7175
7175
|
case "]": return yield* this.pushCount(1), "doc";
|
|
7176
|
-
case "*": return yield* this.pushUntil(
|
|
7176
|
+
case "*": return yield* this.pushUntil(ao), "doc";
|
|
7177
7177
|
case "\"":
|
|
7178
7178
|
case "'": return yield* this.parseQuotedScalar();
|
|
7179
7179
|
case "|":
|
|
@@ -7188,7 +7188,7 @@ var eo = /* @__PURE__ */ new Set("0123456789ABCDEFabcdef"), to = /* @__PURE__ */
|
|
|
7188
7188
|
while (e + t > 0);
|
|
7189
7189
|
let r = this.getLine();
|
|
7190
7190
|
if (r === null) return this.setNext("flow");
|
|
7191
|
-
if ((n !== -1 && n < this.indentNext && r[0] !== "#" || n === 0 && (r.startsWith("---") || r.startsWith("...")) &&
|
|
7191
|
+
if ((n !== -1 && n < this.indentNext && r[0] !== "#" || n === 0 && (r.startsWith("---") || r.startsWith("...")) && eo(r[3])) && (n !== this.indentNext - 1 || this.flowLevel !== 1 || r[0] !== "]" && r[0] !== "}")) return this.flowLevel = 0, yield "", yield* this.parseLineStart();
|
|
7192
7192
|
let i = 0;
|
|
7193
7193
|
for (; r[i] === ",";) i += yield* this.pushCount(1), i += yield* this.pushSpaces(!0), this.flowKey = !1;
|
|
7194
7194
|
switch (i += yield* this.pushIndicators(), r[i]) {
|
|
@@ -7198,12 +7198,12 @@ var eo = /* @__PURE__ */ new Set("0123456789ABCDEFabcdef"), to = /* @__PURE__ */
|
|
|
7198
7198
|
case "[": return yield* this.pushCount(1), this.flowKey = !1, this.flowLevel += 1, "flow";
|
|
7199
7199
|
case "}":
|
|
7200
7200
|
case "]": return yield* this.pushCount(1), this.flowKey = !0, --this.flowLevel, this.flowLevel ? "flow" : "doc";
|
|
7201
|
-
case "*": return yield* this.pushUntil(
|
|
7201
|
+
case "*": return yield* this.pushUntil(ao), "flow";
|
|
7202
7202
|
case "\"":
|
|
7203
7203
|
case "'": return this.flowKey = !0, yield* this.parseQuotedScalar();
|
|
7204
7204
|
case ":": {
|
|
7205
7205
|
let e = this.charAt(1);
|
|
7206
|
-
if (this.flowKey ||
|
|
7206
|
+
if (this.flowKey || eo(e) || e === ",") return this.flowKey = !1, yield* this.pushCount(1), yield* this.pushSpaces(!0), "flow";
|
|
7207
7207
|
}
|
|
7208
7208
|
default: return this.flowKey = !1, yield* this.parsePlainScalar();
|
|
7209
7209
|
}
|
|
@@ -7241,7 +7241,7 @@ var eo = /* @__PURE__ */ new Set("0123456789ABCDEFabcdef"), to = /* @__PURE__ */
|
|
|
7241
7241
|
else if (t > "0" && t <= "9") this.blockScalarIndent = Number(t) - 1;
|
|
7242
7242
|
else if (t !== "-") break;
|
|
7243
7243
|
}
|
|
7244
|
-
return yield* this.pushUntil((e) =>
|
|
7244
|
+
return yield* this.pushUntil((e) => eo(e) || e === "#");
|
|
7245
7245
|
}
|
|
7246
7246
|
*parseBlockScalar() {
|
|
7247
7247
|
let e = this.pos - 1, t = 0, n;
|
|
@@ -7291,18 +7291,18 @@ var eo = /* @__PURE__ */ new Set("0123456789ABCDEFabcdef"), to = /* @__PURE__ */
|
|
|
7291
7291
|
let e = this.flowLevel > 0, t = this.pos - 1, n = this.pos - 1, r;
|
|
7292
7292
|
for (; r = this.buffer[++n];) if (r === ":") {
|
|
7293
7293
|
let r = this.buffer[n + 1];
|
|
7294
|
-
if (
|
|
7294
|
+
if (eo(r) || e && ro.has(r)) break;
|
|
7295
7295
|
t = n;
|
|
7296
|
-
} else if (
|
|
7296
|
+
} else if (eo(r)) {
|
|
7297
7297
|
let i = this.buffer[n + 1];
|
|
7298
|
-
if (r === "\r" && (i === "\n" ? (n += 1, r = "\n", i = this.buffer[n + 1]) : t = n), i === "#" || e &&
|
|
7298
|
+
if (r === "\r" && (i === "\n" ? (n += 1, r = "\n", i = this.buffer[n + 1]) : t = n), i === "#" || e && ro.has(i)) break;
|
|
7299
7299
|
if (r === "\n") {
|
|
7300
7300
|
let e = this.continueScalar(n + 1);
|
|
7301
7301
|
if (e === -1) break;
|
|
7302
7302
|
n = Math.max(n, e - 2);
|
|
7303
7303
|
}
|
|
7304
7304
|
} else {
|
|
7305
|
-
if (e &&
|
|
7305
|
+
if (e && ro.has(r)) break;
|
|
7306
7306
|
t = n;
|
|
7307
7307
|
}
|
|
7308
7308
|
return !r && !this.atEnd ? this.setNext("plain-scalar") : (yield "", yield* this.pushToIndex(t + 1, !0), e ? "flow" : "doc");
|
|
@@ -7322,13 +7322,13 @@ var eo = /* @__PURE__ */ new Set("0123456789ABCDEFabcdef"), to = /* @__PURE__ */
|
|
|
7322
7322
|
e += yield* this.pushTag(), e += yield* this.pushSpaces(!0);
|
|
7323
7323
|
continue loop;
|
|
7324
7324
|
case "&":
|
|
7325
|
-
e += yield* this.pushUntil(
|
|
7325
|
+
e += yield* this.pushUntil(ao), e += yield* this.pushSpaces(!0);
|
|
7326
7326
|
continue loop;
|
|
7327
7327
|
case "-":
|
|
7328
7328
|
case "?":
|
|
7329
7329
|
case ":": {
|
|
7330
7330
|
let t = this.flowLevel > 0, n = this.charAt(1);
|
|
7331
|
-
if (
|
|
7331
|
+
if (eo(n) || t && ro.has(n)) {
|
|
7332
7332
|
t ? this.flowKey &&= !1 : this.indentNext = this.indentValue + 1, e += yield* this.pushCount(1), e += yield* this.pushSpaces(!0);
|
|
7333
7333
|
continue loop;
|
|
7334
7334
|
}
|
|
@@ -7341,13 +7341,13 @@ var eo = /* @__PURE__ */ new Set("0123456789ABCDEFabcdef"), to = /* @__PURE__ */
|
|
|
7341
7341
|
*pushTag() {
|
|
7342
7342
|
if (this.charAt(1) === "<") {
|
|
7343
7343
|
let e = this.pos + 2, t = this.buffer[e];
|
|
7344
|
-
for (;
|
|
7344
|
+
for (; !eo(t) && t !== ">";) t = this.buffer[++e];
|
|
7345
7345
|
return yield* this.pushToIndex(t === ">" ? e + 1 : e, !1);
|
|
7346
7346
|
}
|
|
7347
7347
|
{
|
|
7348
7348
|
let e = this.pos + 1, t = this.buffer[e];
|
|
7349
|
-
for (; t;) if (
|
|
7350
|
-
else if (t === "%" &&
|
|
7349
|
+
for (; t;) if (no.has(t)) t = this.buffer[++e];
|
|
7350
|
+
else if (t === "%" && to.has(this.buffer[e + 1]) && to.has(this.buffer[e + 2])) t = this.buffer[e += 3];
|
|
7351
7351
|
else break;
|
|
7352
7352
|
return yield* this.pushToIndex(e, !1);
|
|
7353
7353
|
}
|
|
@@ -7369,7 +7369,7 @@ var eo = /* @__PURE__ */ new Set("0123456789ABCDEFabcdef"), to = /* @__PURE__ */
|
|
|
7369
7369
|
for (; !e(n);) n = this.buffer[++t];
|
|
7370
7370
|
return yield* this.pushToIndex(t, !1);
|
|
7371
7371
|
}
|
|
7372
|
-
},
|
|
7372
|
+
}, so = class {
|
|
7373
7373
|
constructor() {
|
|
7374
7374
|
this.lineStarts = [], this.addNewLine = (e) => this.lineStarts.push(e), this.linePos = (e) => {
|
|
7375
7375
|
let t = 0, n = this.lineStarts.length;
|
|
@@ -7395,11 +7395,11 @@ var eo = /* @__PURE__ */ new Set("0123456789ABCDEFabcdef"), to = /* @__PURE__ */
|
|
|
7395
7395
|
};
|
|
7396
7396
|
//#endregion
|
|
7397
7397
|
//#region node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/browser/dist/parse/parser.js
|
|
7398
|
-
function
|
|
7398
|
+
function co(e, t) {
|
|
7399
7399
|
for (let n = 0; n < e.length; ++n) if (e[n].type === t) return !0;
|
|
7400
7400
|
return !1;
|
|
7401
7401
|
}
|
|
7402
|
-
function
|
|
7402
|
+
function lo(e) {
|
|
7403
7403
|
for (let t = 0; t < e.length; ++t) switch (e[t].type) {
|
|
7404
7404
|
case "space":
|
|
7405
7405
|
case "comment":
|
|
@@ -7408,7 +7408,7 @@ function co(e) {
|
|
|
7408
7408
|
}
|
|
7409
7409
|
return -1;
|
|
7410
7410
|
}
|
|
7411
|
-
function
|
|
7411
|
+
function uo(e) {
|
|
7412
7412
|
switch (e?.type) {
|
|
7413
7413
|
case "alias":
|
|
7414
7414
|
case "scalar":
|
|
@@ -7418,7 +7418,7 @@ function lo(e) {
|
|
|
7418
7418
|
default: return !1;
|
|
7419
7419
|
}
|
|
7420
7420
|
}
|
|
7421
|
-
function
|
|
7421
|
+
function fo(e) {
|
|
7422
7422
|
switch (e.type) {
|
|
7423
7423
|
case "document": return e.start;
|
|
7424
7424
|
case "block-map": {
|
|
@@ -7430,7 +7430,7 @@ function uo(e) {
|
|
|
7430
7430
|
default: return [];
|
|
7431
7431
|
}
|
|
7432
7432
|
}
|
|
7433
|
-
function
|
|
7433
|
+
function po(e) {
|
|
7434
7434
|
if (e.length === 0) return [];
|
|
7435
7435
|
let t = e.length;
|
|
7436
7436
|
loop: for (; --t >= 0;) switch (e[t].type) {
|
|
@@ -7443,16 +7443,16 @@ function fo(e) {
|
|
|
7443
7443
|
for (; e[++t]?.type === "space";);
|
|
7444
7444
|
return e.splice(t, e.length);
|
|
7445
7445
|
}
|
|
7446
|
-
function
|
|
7446
|
+
function mo(e, t) {
|
|
7447
7447
|
if (t.length < 1e5) Array.prototype.push.apply(e, t);
|
|
7448
7448
|
else for (let n = 0; n < t.length; ++n) e.push(t[n]);
|
|
7449
7449
|
}
|
|
7450
|
-
function
|
|
7451
|
-
if (e.start.type === "flow-seq-start") for (let t of e.items) t.sep && !t.value && !
|
|
7450
|
+
function ho(e) {
|
|
7451
|
+
if (e.start.type === "flow-seq-start") for (let t of e.items) t.sep && !t.value && !co(t.start, "explicit-key-ind") && !co(t.sep, "map-value-ind") && (t.key && (t.value = t.key), delete t.key, uo(t.value) ? t.value.end ? mo(t.value.end, t.sep) : t.value.end = t.sep : mo(t.start, t.sep), delete t.sep);
|
|
7452
7452
|
}
|
|
7453
|
-
var
|
|
7453
|
+
var go = class {
|
|
7454
7454
|
constructor(e) {
|
|
7455
|
-
this.atNewLine = !0, this.atScalar = !1, this.indent = 0, this.offset = 0, this.onKeyLine = !1, this.stack = [], this.source = "", this.type = "", this.lexer = new
|
|
7455
|
+
this.atNewLine = !0, this.atScalar = !1, this.indent = 0, this.offset = 0, this.onKeyLine = !1, this.stack = [], this.source = "", this.type = "", this.lexer = new oo(), this.onNewLine = e;
|
|
7456
7456
|
}
|
|
7457
7457
|
*parse(e, t = !1) {
|
|
7458
7458
|
this.onNewLine && this.offset === 0 && this.onNewLine(0);
|
|
@@ -7464,7 +7464,7 @@ var ho = class {
|
|
|
7464
7464
|
this.atScalar = !1, yield* this.step(), this.offset += e.length;
|
|
7465
7465
|
return;
|
|
7466
7466
|
}
|
|
7467
|
-
let t =
|
|
7467
|
+
let t = $a(e);
|
|
7468
7468
|
if (!t) {
|
|
7469
7469
|
let t = `Not a YAML token: ${e}`;
|
|
7470
7470
|
yield* this.pop({
|
|
@@ -7547,7 +7547,7 @@ var ho = class {
|
|
|
7547
7547
|
else if (this.stack.length === 0) yield t;
|
|
7548
7548
|
else {
|
|
7549
7549
|
let e = this.peek(1);
|
|
7550
|
-
switch (t.type === "block-scalar" ? t.indent = "indent" in e ? e.indent : 0 : t.type === "flow-collection" && e.type === "document" && (t.indent = 0), t.type === "flow-collection" &&
|
|
7550
|
+
switch (t.type === "block-scalar" ? t.indent = "indent" in e ? e.indent : 0 : t.type === "flow-collection" && e.type === "document" && (t.indent = 0), t.type === "flow-collection" && ho(t), e.type) {
|
|
7551
7551
|
case "document":
|
|
7552
7552
|
e.value = t;
|
|
7553
7553
|
break;
|
|
@@ -7599,7 +7599,7 @@ var ho = class {
|
|
|
7599
7599
|
}
|
|
7600
7600
|
if ((e.type === "document" || e.type === "block-map" || e.type === "block-seq") && (t.type === "block-map" || t.type === "block-seq")) {
|
|
7601
7601
|
let n = t.items[t.items.length - 1];
|
|
7602
|
-
n && !n.sep && !n.value && n.start.length > 0 &&
|
|
7602
|
+
n && !n.sep && !n.value && n.start.length > 0 && lo(n.start) === -1 && (t.indent === 0 || n.start.every((e) => e.type !== "comment" || e.indent < t.indent)) && (e.type === "document" ? e.end = n.start : e.items.push({ start: n.start }), t.items.splice(-1, 1));
|
|
7603
7603
|
}
|
|
7604
7604
|
}
|
|
7605
7605
|
}
|
|
@@ -7640,7 +7640,7 @@ var ho = class {
|
|
|
7640
7640
|
if (e.value) return yield* this.lineEnd(e);
|
|
7641
7641
|
switch (this.type) {
|
|
7642
7642
|
case "doc-start":
|
|
7643
|
-
|
|
7643
|
+
lo(e.start) === -1 ? e.start.push(this.sourceToken) : (yield* this.pop(), yield* this.step());
|
|
7644
7644
|
return;
|
|
7645
7645
|
case "anchor":
|
|
7646
7646
|
case "tag":
|
|
@@ -7660,7 +7660,7 @@ var ho = class {
|
|
|
7660
7660
|
}
|
|
7661
7661
|
*scalar(e) {
|
|
7662
7662
|
if (this.type === "map-value-ind") {
|
|
7663
|
-
let t = fo(
|
|
7663
|
+
let t = po(fo(this.peek(2))), n;
|
|
7664
7664
|
e.end ? (n = e.end, n.push(this.sourceToken), delete e.end) : n = [this.sourceToken];
|
|
7665
7665
|
let r = {
|
|
7666
7666
|
type: "block-map",
|
|
@@ -7710,7 +7710,7 @@ var ho = class {
|
|
|
7710
7710
|
if (this.atIndentedComment(t.start, e.indent)) {
|
|
7711
7711
|
let n = e.items[e.items.length - 2]?.value?.end;
|
|
7712
7712
|
if (Array.isArray(n)) {
|
|
7713
|
-
|
|
7713
|
+
mo(n, t.start), n.push(this.sourceToken), e.items.pop();
|
|
7714
7714
|
return;
|
|
7715
7715
|
}
|
|
7716
7716
|
}
|
|
@@ -7759,12 +7759,12 @@ var ho = class {
|
|
|
7759
7759
|
case "map-value-ind":
|
|
7760
7760
|
if (t.explicitKey) {
|
|
7761
7761
|
if (!t.sep) {
|
|
7762
|
-
if (
|
|
7762
|
+
if (co(t.start, "newline")) Object.assign(t, {
|
|
7763
7763
|
key: null,
|
|
7764
7764
|
sep: [this.sourceToken]
|
|
7765
7765
|
});
|
|
7766
7766
|
else {
|
|
7767
|
-
let e =
|
|
7767
|
+
let e = po(t.start);
|
|
7768
7768
|
this.stack.push({
|
|
7769
7769
|
type: "block-map",
|
|
7770
7770
|
offset: this.offset,
|
|
@@ -7781,7 +7781,7 @@ var ho = class {
|
|
|
7781
7781
|
key: null,
|
|
7782
7782
|
sep: [this.sourceToken]
|
|
7783
7783
|
});
|
|
7784
|
-
else if (
|
|
7784
|
+
else if (co(t.sep, "map-value-ind")) this.stack.push({
|
|
7785
7785
|
type: "block-map",
|
|
7786
7786
|
offset: this.offset,
|
|
7787
7787
|
indent: this.indent,
|
|
@@ -7791,8 +7791,8 @@ var ho = class {
|
|
|
7791
7791
|
sep: [this.sourceToken]
|
|
7792
7792
|
}]
|
|
7793
7793
|
});
|
|
7794
|
-
else if (
|
|
7795
|
-
let e =
|
|
7794
|
+
else if (uo(t.key) && !co(t.sep, "newline")) {
|
|
7795
|
+
let e = po(t.start), n = t.key, r = t.sep;
|
|
7796
7796
|
r.push(this.sourceToken), delete t.key, delete t.sep, this.stack.push({
|
|
7797
7797
|
type: "block-map",
|
|
7798
7798
|
offset: this.offset,
|
|
@@ -7808,7 +7808,7 @@ var ho = class {
|
|
|
7808
7808
|
start: i,
|
|
7809
7809
|
key: null,
|
|
7810
7810
|
sep: [this.sourceToken]
|
|
7811
|
-
}) :
|
|
7811
|
+
}) : co(t.sep, "map-value-ind") ? this.stack.push({
|
|
7812
7812
|
type: "block-map",
|
|
7813
7813
|
offset: this.offset,
|
|
7814
7814
|
indent: this.indent,
|
|
@@ -7842,7 +7842,7 @@ var ho = class {
|
|
|
7842
7842
|
let r = this.startBlockValue(e);
|
|
7843
7843
|
if (r) {
|
|
7844
7844
|
if (r.type === "block-seq") {
|
|
7845
|
-
if (!t.explicitKey && t.sep && !
|
|
7845
|
+
if (!t.explicitKey && t.sep && !co(t.sep, "newline")) {
|
|
7846
7846
|
yield* this.pop({
|
|
7847
7847
|
type: "error",
|
|
7848
7848
|
offset: this.offset,
|
|
@@ -7876,7 +7876,7 @@ var ho = class {
|
|
|
7876
7876
|
if (this.atIndentedComment(t.start, e.indent)) {
|
|
7877
7877
|
let n = e.items[e.items.length - 2]?.value?.end;
|
|
7878
7878
|
if (Array.isArray(n)) {
|
|
7879
|
-
|
|
7879
|
+
mo(n, t.start), n.push(this.sourceToken), e.items.pop();
|
|
7880
7880
|
return;
|
|
7881
7881
|
}
|
|
7882
7882
|
}
|
|
@@ -7890,7 +7890,7 @@ var ho = class {
|
|
|
7890
7890
|
return;
|
|
7891
7891
|
case "seq-item-ind":
|
|
7892
7892
|
if (this.indent !== e.indent) break;
|
|
7893
|
-
t.value ||
|
|
7893
|
+
t.value || co(t.start, "seq-item-ind") ? e.items.push({ start: [this.sourceToken] }) : t.start.push(this.sourceToken);
|
|
7894
7894
|
return;
|
|
7895
7895
|
}
|
|
7896
7896
|
if (this.indent > e.indent) {
|
|
@@ -7959,8 +7959,8 @@ var ho = class {
|
|
|
7959
7959
|
let t = this.peek(2);
|
|
7960
7960
|
if (t.type === "block-map" && (this.type === "map-value-ind" && t.indent === e.indent || this.type === "newline" && !t.items[t.items.length - 1].sep)) yield* this.pop(), yield* this.step();
|
|
7961
7961
|
else if (this.type === "map-value-ind" && t.type !== "flow-collection") {
|
|
7962
|
-
let n = fo(
|
|
7963
|
-
|
|
7962
|
+
let n = po(fo(t));
|
|
7963
|
+
ho(e);
|
|
7964
7964
|
let r = e.end.splice(1, e.end.length);
|
|
7965
7965
|
r.push(this.sourceToken);
|
|
7966
7966
|
let i = {
|
|
@@ -8019,7 +8019,7 @@ var ho = class {
|
|
|
8019
8019
|
};
|
|
8020
8020
|
case "explicit-key-ind": {
|
|
8021
8021
|
this.onKeyLine = !0;
|
|
8022
|
-
let t = fo(
|
|
8022
|
+
let t = po(fo(e));
|
|
8023
8023
|
return t.push(this.sourceToken), {
|
|
8024
8024
|
type: "block-map",
|
|
8025
8025
|
offset: this.offset,
|
|
@@ -8032,7 +8032,7 @@ var ho = class {
|
|
|
8032
8032
|
}
|
|
8033
8033
|
case "map-value-ind": {
|
|
8034
8034
|
this.onKeyLine = !0;
|
|
8035
|
-
let t = fo(
|
|
8035
|
+
let t = po(fo(e));
|
|
8036
8036
|
return {
|
|
8037
8037
|
type: "block-map",
|
|
8038
8038
|
offset: this.offset,
|
|
@@ -8070,39 +8070,39 @@ var ho = class {
|
|
|
8070
8070
|
};
|
|
8071
8071
|
//#endregion
|
|
8072
8072
|
//#region node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/browser/dist/public-api.js
|
|
8073
|
-
function
|
|
8073
|
+
function _o(e) {
|
|
8074
8074
|
let t = e.prettyErrors !== !1;
|
|
8075
8075
|
return {
|
|
8076
|
-
lineCounter: e.lineCounter || t && new
|
|
8076
|
+
lineCounter: e.lineCounter || t && new so() || null,
|
|
8077
8077
|
prettyErrors: t
|
|
8078
8078
|
};
|
|
8079
8079
|
}
|
|
8080
|
-
function
|
|
8081
|
-
let { lineCounter: n, prettyErrors: r } =
|
|
8082
|
-
if (r && n) for (let t of o) t.errors.forEach(
|
|
8080
|
+
function vo(e, t = {}) {
|
|
8081
|
+
let { lineCounter: n, prettyErrors: r } = _o(t), i = new go(n?.addNewLine), a = new Pa(t), o = Array.from(a.compose(i.parse(e)));
|
|
8082
|
+
if (r && n) for (let t of o) t.errors.forEach(Qi(e, n)), t.warnings.forEach(Qi(e, n));
|
|
8083
8083
|
return o.length > 0 ? o : Object.assign([], { empty: !0 }, a.streamInfo());
|
|
8084
8084
|
}
|
|
8085
|
-
function
|
|
8086
|
-
let { lineCounter: n, prettyErrors: r } =
|
|
8085
|
+
function yo(e, t = {}) {
|
|
8086
|
+
let { lineCounter: n, prettyErrors: r } = _o(t), i = new go(n?.addNewLine), a = new Pa(t), o = null;
|
|
8087
8087
|
for (let t of a.compose(i.parse(e), !0, e.length)) if (!o) o = t;
|
|
8088
8088
|
else if (o.options.logLevel !== "silent") {
|
|
8089
|
-
o.errors.push(new
|
|
8089
|
+
o.errors.push(new Xi(t.range.slice(0, 2), "MULTIPLE_DOCS", "Source contains multiple documents; please use YAML.parseAllDocuments()"));
|
|
8090
8090
|
break;
|
|
8091
8091
|
}
|
|
8092
|
-
return r && n && (o.errors.forEach(
|
|
8092
|
+
return r && n && (o.errors.forEach(Qi(e, n)), o.warnings.forEach(Qi(e, n))), o;
|
|
8093
8093
|
}
|
|
8094
|
-
function
|
|
8094
|
+
function bo(e, t, n) {
|
|
8095
8095
|
let r;
|
|
8096
8096
|
typeof t == "function" ? r = t : n === void 0 && t && typeof t == "object" && (n = t);
|
|
8097
|
-
let i =
|
|
8097
|
+
let i = yo(e, n);
|
|
8098
8098
|
if (!i) return null;
|
|
8099
|
-
if (i.warnings.forEach((e) =>
|
|
8099
|
+
if (i.warnings.forEach((e) => jr(i.options.logLevel, e)), i.errors.length > 0) {
|
|
8100
8100
|
if (i.options.logLevel !== "silent") throw i.errors[0];
|
|
8101
8101
|
i.errors = [];
|
|
8102
8102
|
}
|
|
8103
8103
|
return i.toJS(Object.assign({ reviver: r }, n));
|
|
8104
8104
|
}
|
|
8105
|
-
function
|
|
8105
|
+
function xo(e, t, n) {
|
|
8106
8106
|
let r = null;
|
|
8107
8107
|
if (typeof t == "function" || Array.isArray(t) ? r = t : n === void 0 && t && (n = t), typeof n == "string" && (n = n.length), typeof n == "number") {
|
|
8108
8108
|
let e = Math.round(n);
|
|
@@ -8112,41 +8112,41 @@ function bo(e, t, n) {
|
|
|
8112
8112
|
let { keepUndefined: e } = n ?? t ?? {};
|
|
8113
8113
|
if (!e) return;
|
|
8114
8114
|
}
|
|
8115
|
-
return
|
|
8115
|
+
return jn(e) && !r ? e.toString(n) : new qi(e, r, n).toString(n);
|
|
8116
8116
|
}
|
|
8117
8117
|
//#endregion
|
|
8118
8118
|
//#region node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/browser/index.js
|
|
8119
|
-
var
|
|
8120
|
-
Alias: () =>
|
|
8121
|
-
CST: () =>
|
|
8122
|
-
Composer: () =>
|
|
8123
|
-
Document: () =>
|
|
8124
|
-
Lexer: () =>
|
|
8125
|
-
LineCounter: () =>
|
|
8119
|
+
var So = /* @__PURE__ */ b({
|
|
8120
|
+
Alias: () => $n,
|
|
8121
|
+
CST: () => Ya,
|
|
8122
|
+
Composer: () => Pa,
|
|
8123
|
+
Document: () => qi,
|
|
8124
|
+
Lexer: () => oo,
|
|
8125
|
+
LineCounter: () => so,
|
|
8126
8126
|
Pair: () => X,
|
|
8127
|
-
Parser: () =>
|
|
8127
|
+
Parser: () => go,
|
|
8128
8128
|
Scalar: () => Y,
|
|
8129
|
-
Schema: () =>
|
|
8130
|
-
YAMLError: () =>
|
|
8129
|
+
Schema: () => Gi,
|
|
8130
|
+
YAMLError: () => Yi,
|
|
8131
8131
|
YAMLMap: () => Z,
|
|
8132
|
-
YAMLParseError: () =>
|
|
8133
|
-
YAMLSeq: () =>
|
|
8134
|
-
YAMLWarning: () =>
|
|
8135
|
-
isAlias: () =>
|
|
8132
|
+
YAMLParseError: () => Xi,
|
|
8133
|
+
YAMLSeq: () => qr,
|
|
8134
|
+
YAMLWarning: () => Zi,
|
|
8135
|
+
isAlias: () => An,
|
|
8136
8136
|
isCollection: () => G,
|
|
8137
|
-
isDocument: () =>
|
|
8138
|
-
isMap: () =>
|
|
8137
|
+
isDocument: () => jn,
|
|
8138
|
+
isMap: () => Mn,
|
|
8139
8139
|
isNode: () => K,
|
|
8140
8140
|
isPair: () => U,
|
|
8141
8141
|
isScalar: () => W,
|
|
8142
|
-
isSeq: () =>
|
|
8143
|
-
parse: () =>
|
|
8144
|
-
parseAllDocuments: () =>
|
|
8145
|
-
parseDocument: () =>
|
|
8146
|
-
stringify: () =>
|
|
8147
|
-
visit: () =>
|
|
8148
|
-
visitAsync: () =>
|
|
8149
|
-
}),
|
|
8142
|
+
isSeq: () => Nn,
|
|
8143
|
+
parse: () => bo,
|
|
8144
|
+
parseAllDocuments: () => vo,
|
|
8145
|
+
parseDocument: () => yo,
|
|
8146
|
+
stringify: () => xo,
|
|
8147
|
+
visit: () => Ln,
|
|
8148
|
+
visitAsync: () => zn
|
|
8149
|
+
}), Co = class {
|
|
8150
8150
|
baseDir;
|
|
8151
8151
|
maxDepth;
|
|
8152
8152
|
constructor(e, t = 5) {
|
|
@@ -8161,7 +8161,7 @@ var xo = /* @__PURE__ */ b({
|
|
|
8161
8161
|
throw Error(`Circular 'includes' dependency detected: ${e}`);
|
|
8162
8162
|
}
|
|
8163
8163
|
if (n.add(i), !e.existsSync(i)) throw Error(`Included workflow partial not found: ${t}`);
|
|
8164
|
-
let a = e.readFileSync(i, "utf-8"), o =
|
|
8164
|
+
let a = e.readFileSync(i, "utf-8"), o = So.parse(a);
|
|
8165
8165
|
if (Array.isArray(o.includes)) {
|
|
8166
8166
|
for (let e of o.includes) {
|
|
8167
8167
|
let t = this.resolve(e, new Set(n), r + 1);
|
|
@@ -8177,7 +8177,7 @@ var xo = /* @__PURE__ */ b({
|
|
|
8177
8177
|
};
|
|
8178
8178
|
//#endregion
|
|
8179
8179
|
//#region src/parser/matrix-expander.ts
|
|
8180
|
-
function
|
|
8180
|
+
function wo(e) {
|
|
8181
8181
|
if (!e.strategy?.matrix || Object.keys(e.strategy.matrix).length === 0) return [e];
|
|
8182
8182
|
let t = e.strategy.matrix;
|
|
8183
8183
|
return Object.keys(t).reduce((e, n) => {
|
|
@@ -8204,16 +8204,16 @@ function Co(e) {
|
|
|
8204
8204
|
}
|
|
8205
8205
|
//#endregion
|
|
8206
8206
|
//#region src/parser/yaml-loader.ts
|
|
8207
|
-
var
|
|
8207
|
+
var To = class e {
|
|
8208
8208
|
static async from(t) {
|
|
8209
|
-
let n = d(t) ? p("/", t) : f(process.cwd(), p("/", t)), r = (await _(n, { withFileTypes: !0 })).filter((e) => e.isFile() && (e.name.endsWith(".yml") || e.name.endsWith(".yaml"))).map((e) => f(n, e.name)), i = [], a = new
|
|
8209
|
+
let n = d(t) ? p("/", t) : f(process.cwd(), p("/", t)), r = (await _(n, { withFileTypes: !0 })).filter((e) => e.isFile() && (e.name.endsWith(".yml") || e.name.endsWith(".yaml"))).map((e) => f(n, e.name)), i = [], a = new Co(t);
|
|
8210
8210
|
for (let t of r) i.push(...await e.loadFile(t, a));
|
|
8211
8211
|
return i;
|
|
8212
8212
|
}
|
|
8213
8213
|
static loadFile(e, t) {
|
|
8214
8214
|
let n = [];
|
|
8215
8215
|
try {
|
|
8216
|
-
let r =
|
|
8216
|
+
let r = wo(t.resolve(e));
|
|
8217
8217
|
for (let t of r) {
|
|
8218
8218
|
if (typeof t.on != "object") {
|
|
8219
8219
|
console.error(`on: not defined in ${e}! Ignoring this workflow.`);
|
|
@@ -8237,7 +8237,7 @@ var wo = class e {
|
|
|
8237
8237
|
}
|
|
8238
8238
|
return n;
|
|
8239
8239
|
}
|
|
8240
|
-
},
|
|
8240
|
+
}, Eo = class e {
|
|
8241
8241
|
server;
|
|
8242
8242
|
preprocessors = /* @__PURE__ */ new Map();
|
|
8243
8243
|
workflows = [];
|
|
@@ -8249,9 +8249,9 @@ var wo = class e {
|
|
|
8249
8249
|
return new e(r).listen(n);
|
|
8250
8250
|
}
|
|
8251
8251
|
constructor(e) {
|
|
8252
|
-
this.queue = e.queue, this.secrets = e.secrets, this.adminToken = e.adminToken,
|
|
8252
|
+
this.queue = e.queue, this.secrets = e.secrets, this.adminToken = e.adminToken, To.from(e.config.workflows).then((t) => {
|
|
8253
8253
|
this.workflows = t, console.log(`ā
Loaded ${t.length} workflow(s) from ${e.config.workflows}`);
|
|
8254
|
-
}), this.registerPreprocessor(new
|
|
8254
|
+
}), this.registerPreprocessor(new hn()), this.server = c.createServer((e, t) => this.handleRequest(e, t));
|
|
8255
8255
|
}
|
|
8256
8256
|
registerPreprocessor(e) {
|
|
8257
8257
|
this.preprocessors.set(e.name, e);
|
|
@@ -8326,7 +8326,7 @@ var wo = class e {
|
|
|
8326
8326
|
for (let n of this.workflows) {
|
|
8327
8327
|
if (n.on.provider !== e) continue;
|
|
8328
8328
|
if (n.on.if) try {
|
|
8329
|
-
let e =
|
|
8329
|
+
let e = mn.evaluateConditions(n.on.if, { inputs: t });
|
|
8330
8330
|
if (process.env.DEBUG && console.log("shouldRun", typeof e, e), !e) {
|
|
8331
8331
|
console.log(`ā© Skipped ${n.id} based on conditions: ${n.on.if}`, { inputs: t });
|
|
8332
8332
|
continue;
|
|
@@ -8336,7 +8336,7 @@ var wo = class e {
|
|
|
8336
8336
|
continue;
|
|
8337
8337
|
}
|
|
8338
8338
|
let r = "";
|
|
8339
|
-
n.concurrency?.group && (r = await
|
|
8339
|
+
n.concurrency?.group && (r = await mn.evaluateValue(n.concurrency.group, { inputs: t }));
|
|
8340
8340
|
let i = {
|
|
8341
8341
|
workflowId: n.id,
|
|
8342
8342
|
env: n.env,
|
|
@@ -8420,7 +8420,7 @@ var wo = class e {
|
|
|
8420
8420
|
...e,
|
|
8421
8421
|
logContent: i[e.id] || ""
|
|
8422
8422
|
}));
|
|
8423
|
-
let a = new
|
|
8423
|
+
let a = new Cn({ outputDir: "" }).generateHtml(r), o = this.secrets.redactText(a);
|
|
8424
8424
|
t.writeHead(200, { "Content-Type": "text/html; charset=utf-8" }), t.end(o);
|
|
8425
8425
|
}
|
|
8426
8426
|
listen(e) {
|
|
@@ -8437,11 +8437,11 @@ var wo = class e {
|
|
|
8437
8437
|
});
|
|
8438
8438
|
});
|
|
8439
8439
|
}
|
|
8440
|
-
},
|
|
8441
|
-
async function
|
|
8440
|
+
}, Do = process.env.DATABASE_URL, Oo = [];
|
|
8441
|
+
async function ko(e, t, n, r = Oo) {
|
|
8442
8442
|
let i, a, o = 1;
|
|
8443
8443
|
for (; o < 3;) try {
|
|
8444
|
-
if (i = await fetch(new URL("/query",
|
|
8444
|
+
if (i = await fetch(new URL("/query", Do), {
|
|
8445
8445
|
method: "POST",
|
|
8446
8446
|
body: JSON.stringify({
|
|
8447
8447
|
s: t,
|
|
@@ -8456,24 +8456,24 @@ async function Oo(e, t, n, r = Do) {
|
|
|
8456
8456
|
}
|
|
8457
8457
|
throw Error(a || await i.text());
|
|
8458
8458
|
}
|
|
8459
|
-
var
|
|
8460
|
-
function
|
|
8461
|
-
Array.isArray(e) && e.every((e) => typeof e == "string") && (
|
|
8459
|
+
var Ao = ko.bind(null, "get"), jo = ko.bind(null, "run"), Mo = ko.bind(null, "all"), No = ko.bind(null, "exec");
|
|
8460
|
+
function Po(e) {
|
|
8461
|
+
Array.isArray(e) && e.every((e) => typeof e == "string") && (Oo = e);
|
|
8462
8462
|
}
|
|
8463
8463
|
var $ = {
|
|
8464
|
-
query:
|
|
8465
|
-
get:
|
|
8466
|
-
run:
|
|
8467
|
-
all:
|
|
8468
|
-
exec:
|
|
8469
|
-
pragma:
|
|
8464
|
+
query: ko,
|
|
8465
|
+
get: Ao,
|
|
8466
|
+
run: jo,
|
|
8467
|
+
all: Mo,
|
|
8468
|
+
exec: No,
|
|
8469
|
+
pragma: Po
|
|
8470
8470
|
};
|
|
8471
|
-
function
|
|
8472
|
-
|
|
8471
|
+
function Fo(e) {
|
|
8472
|
+
Do = e;
|
|
8473
8473
|
}
|
|
8474
8474
|
//#endregion
|
|
8475
8475
|
//#region src/queue.ts
|
|
8476
|
-
var
|
|
8476
|
+
var Io = class {
|
|
8477
8477
|
workerId;
|
|
8478
8478
|
constructor(e) {
|
|
8479
8479
|
this.workerId = e;
|
|
@@ -8524,7 +8524,7 @@ var Fo = class {
|
|
|
8524
8524
|
for (let e of t) n[e.step_id] = e.log_content;
|
|
8525
8525
|
return n;
|
|
8526
8526
|
}
|
|
8527
|
-
},
|
|
8527
|
+
}, Lo = class {
|
|
8528
8528
|
envFilePath;
|
|
8529
8529
|
secrets = /* @__PURE__ */ new Map();
|
|
8530
8530
|
constructor(e) {
|
|
@@ -8546,10 +8546,10 @@ var Fo = class {
|
|
|
8546
8546
|
}
|
|
8547
8547
|
redactText(e) {
|
|
8548
8548
|
let t = Array.from(this.secrets.values()).filter((e) => e.length > 3).slice().sort((e, t) => t.length - e.length);
|
|
8549
|
-
for (let n of t) e = e.replaceAll(n, "
|
|
8549
|
+
for (let n of t) e = e.replaceAll(n, "****");
|
|
8550
8550
|
return e;
|
|
8551
8551
|
}
|
|
8552
|
-
},
|
|
8552
|
+
}, Ro = s(v), zo = class {
|
|
8553
8553
|
name = "systemd";
|
|
8554
8554
|
async isSupported() {
|
|
8555
8555
|
try {
|
|
@@ -8581,14 +8581,17 @@ var Fo = class {
|
|
|
8581
8581
|
"-p",
|
|
8582
8582
|
"RemainAfterExit=no",
|
|
8583
8583
|
`--working-directory=${o}`
|
|
8584
|
-
]
|
|
8585
|
-
|
|
8586
|
-
|
|
8584
|
+
], l = {
|
|
8585
|
+
...t.env || {},
|
|
8586
|
+
PATH: t.env?.PATH || process.env.PATH
|
|
8587
|
+
};
|
|
8588
|
+
for (let [e, t] of Object.entries(l)) c.push(`--setenv=${e}=${t}`);
|
|
8589
|
+
if (t.timeoutMs) {
|
|
8587
8590
|
let e = Math.ceil(t.timeoutMs / 1e3);
|
|
8588
8591
|
c.push(`--property=RuntimeMaxSec=${e}`);
|
|
8589
8592
|
}
|
|
8590
|
-
let
|
|
8591
|
-
|
|
8593
|
+
let d;
|
|
8594
|
+
t.image ? (c.push("--setenv=WORKING_DIR=/workspace"), d = [
|
|
8592
8595
|
"docker",
|
|
8593
8596
|
"run",
|
|
8594
8597
|
"--rm",
|
|
@@ -8598,26 +8601,29 @@ var Fo = class {
|
|
|
8598
8601
|
`${o}:/workspace`,
|
|
8599
8602
|
"-w",
|
|
8600
8603
|
"/workspace",
|
|
8604
|
+
...Object.keys(l).flatMap((e) => ["-e", e]),
|
|
8605
|
+
"-e",
|
|
8606
|
+
"WORKING_DIR",
|
|
8601
8607
|
t.image,
|
|
8602
8608
|
"sh",
|
|
8603
8609
|
"-c",
|
|
8604
8610
|
t.command
|
|
8605
|
-
] : [
|
|
8611
|
+
]) : (c.push(`--setenv=WORKING_DIR=${o}`), d = [
|
|
8606
8612
|
process.env.SHELL || "sh",
|
|
8607
8613
|
"-e",
|
|
8608
8614
|
"-c",
|
|
8609
8615
|
t.command
|
|
8610
|
-
], process.env.DEBUG && console.log("$ systemd-run", [
|
|
8616
|
+
]), process.env.DEBUG && console.log("$ systemd-run", [
|
|
8611
8617
|
...c,
|
|
8612
8618
|
"--",
|
|
8613
|
-
...
|
|
8619
|
+
...d
|
|
8614
8620
|
].join(" "));
|
|
8615
|
-
let
|
|
8621
|
+
let f;
|
|
8616
8622
|
try {
|
|
8617
|
-
|
|
8623
|
+
f = y("systemd-run", [
|
|
8618
8624
|
...c,
|
|
8619
8625
|
"--",
|
|
8620
|
-
...
|
|
8626
|
+
...d
|
|
8621
8627
|
], { stdio: [
|
|
8622
8628
|
"ignore",
|
|
8623
8629
|
n,
|
|
@@ -8637,7 +8643,7 @@ var Fo = class {
|
|
|
8637
8643
|
logFilePath: a
|
|
8638
8644
|
};
|
|
8639
8645
|
}
|
|
8640
|
-
let
|
|
8646
|
+
let p = !1;
|
|
8641
8647
|
return {
|
|
8642
8648
|
done: new Promise((t) => {
|
|
8643
8649
|
let i = !1, a = (r) => {
|
|
@@ -8649,13 +8655,13 @@ var Fo = class {
|
|
|
8649
8655
|
t(r);
|
|
8650
8656
|
}
|
|
8651
8657
|
};
|
|
8652
|
-
|
|
8658
|
+
f.on("close", (e, t) => {
|
|
8653
8659
|
a({
|
|
8654
|
-
exitCode: e === null ? t ?
|
|
8660
|
+
exitCode: e === null ? t ? p ? 130 : 1 : 0 : e,
|
|
8655
8661
|
durationMs: Date.now() - r,
|
|
8656
|
-
error:
|
|
8662
|
+
error: p ? /* @__PURE__ */ Error("Step cancelled by user or systemd timeout") : void 0
|
|
8657
8663
|
});
|
|
8658
|
-
}),
|
|
8664
|
+
}), f.on("error", (e) => {
|
|
8659
8665
|
a({
|
|
8660
8666
|
exitCode: 1,
|
|
8661
8667
|
durationMs: Date.now() - r,
|
|
@@ -8664,9 +8670,9 @@ var Fo = class {
|
|
|
8664
8670
|
});
|
|
8665
8671
|
}),
|
|
8666
8672
|
cancel: async () => {
|
|
8667
|
-
|
|
8673
|
+
p = !0;
|
|
8668
8674
|
try {
|
|
8669
|
-
t.image && await
|
|
8675
|
+
t.image && await Ro(`docker stop -t 2 ${s}`).catch(() => {}), await Ro(`systemctl stop ${s}.service`).catch(() => {});
|
|
8670
8676
|
} catch {}
|
|
8671
8677
|
},
|
|
8672
8678
|
logFilePath: a
|
|
@@ -8676,7 +8682,7 @@ var Fo = class {
|
|
|
8676
8682
|
let t = await g(e, "utf-8"), n = t.includes("Running as unit: ") ? t.indexOf("\n") + 1 : 0, r = t.includes("Finished with result: ") ? t.lastIndexOf("Finished with result: ") : t.length;
|
|
8677
8683
|
return t.slice(n, r);
|
|
8678
8684
|
}
|
|
8679
|
-
},
|
|
8685
|
+
}, Bo = class {
|
|
8680
8686
|
name = "standard-process";
|
|
8681
8687
|
async isSupported() {
|
|
8682
8688
|
return !0;
|
|
@@ -8696,8 +8702,8 @@ var Fo = class {
|
|
|
8696
8702
|
logFilePath: ""
|
|
8697
8703
|
};
|
|
8698
8704
|
}
|
|
8699
|
-
let s, c;
|
|
8700
|
-
t.image ? (s = "docker", c = [
|
|
8705
|
+
let s, c, l = { ...t.env };
|
|
8706
|
+
t.image ? (l.WORKING_DIR = "/workspace", s = "docker", c = [
|
|
8701
8707
|
"run",
|
|
8702
8708
|
"--rm",
|
|
8703
8709
|
"--init",
|
|
@@ -8707,22 +8713,20 @@ var Fo = class {
|
|
|
8707
8713
|
"/workspace",
|
|
8708
8714
|
"--entrypoint",
|
|
8709
8715
|
"sh",
|
|
8716
|
+
...Object.keys(l).flatMap((e) => ["-e", e]),
|
|
8710
8717
|
t.image,
|
|
8711
8718
|
"-c",
|
|
8712
8719
|
t.command
|
|
8713
|
-
]) : (s = process.env.SHELL || "sh", c = [
|
|
8720
|
+
]) : (l.WORKING_DIR = o, s = process.env.SHELL || "sh", c = [
|
|
8714
8721
|
"-e",
|
|
8715
8722
|
"-c",
|
|
8716
8723
|
t.command
|
|
8717
8724
|
]), process.env.DEBUG && console.log("$ " + s, c.join(" "));
|
|
8718
|
-
let
|
|
8725
|
+
let d;
|
|
8719
8726
|
try {
|
|
8720
|
-
|
|
8727
|
+
d = y(s, c, {
|
|
8721
8728
|
cwd: o,
|
|
8722
|
-
env:
|
|
8723
|
-
...process.env,
|
|
8724
|
-
...t.env
|
|
8725
|
-
},
|
|
8729
|
+
env: l,
|
|
8726
8730
|
detached: !0,
|
|
8727
8731
|
stdio: [
|
|
8728
8732
|
"ignore",
|
|
@@ -8744,27 +8748,27 @@ var Fo = class {
|
|
|
8744
8748
|
logFilePath: a
|
|
8745
8749
|
};
|
|
8746
8750
|
}
|
|
8747
|
-
let
|
|
8751
|
+
let f = !1, p = null;
|
|
8748
8752
|
return {
|
|
8749
8753
|
done: new Promise((i) => {
|
|
8750
8754
|
let a = !1, o = (t) => {
|
|
8751
8755
|
if (!a) {
|
|
8752
|
-
a = !0,
|
|
8756
|
+
a = !0, p && clearTimeout(p);
|
|
8753
8757
|
try {
|
|
8754
8758
|
e.closeSync(n);
|
|
8755
8759
|
} catch {}
|
|
8756
8760
|
i(t);
|
|
8757
8761
|
}
|
|
8758
8762
|
};
|
|
8759
|
-
t.timeoutMs && (
|
|
8760
|
-
|
|
8761
|
-
}, t.timeoutMs),
|
|
8763
|
+
t.timeoutMs && (p = setTimeout(() => {
|
|
8764
|
+
f = !0, this.killProcessGroup(d);
|
|
8765
|
+
}, t.timeoutMs), p.unref()), d.on("close", (e) => {
|
|
8762
8766
|
o({
|
|
8763
|
-
exitCode: e ?? (
|
|
8767
|
+
exitCode: e ?? (f ? 130 : 1),
|
|
8764
8768
|
durationMs: Date.now() - r,
|
|
8765
|
-
error:
|
|
8769
|
+
error: f ? /* @__PURE__ */ Error("Step timed out or was cancelled by user") : void 0
|
|
8766
8770
|
});
|
|
8767
|
-
}),
|
|
8771
|
+
}), d.on("error", (e) => {
|
|
8768
8772
|
o({
|
|
8769
8773
|
exitCode: 1,
|
|
8770
8774
|
durationMs: Date.now() - r,
|
|
@@ -8773,7 +8777,7 @@ var Fo = class {
|
|
|
8773
8777
|
});
|
|
8774
8778
|
}),
|
|
8775
8779
|
cancel: async () => {
|
|
8776
|
-
|
|
8780
|
+
f = !0, this.killProcessGroup(d);
|
|
8777
8781
|
},
|
|
8778
8782
|
logFilePath: a
|
|
8779
8783
|
};
|
|
@@ -8793,13 +8797,13 @@ var Fo = class {
|
|
|
8793
8797
|
};
|
|
8794
8798
|
//#endregion
|
|
8795
8799
|
//#region src/drivers/index.ts
|
|
8796
|
-
async function
|
|
8797
|
-
let e = new
|
|
8798
|
-
return await e.isSupported() ? (console.log("ā” Selected Execution Driver: Systemd (cgroups enabled)"), e) : (console.log("š¦ Selected Execution Driver: Standard Process (Fallback)"), new
|
|
8800
|
+
async function Vo() {
|
|
8801
|
+
let e = new zo();
|
|
8802
|
+
return await e.isSupported() ? (console.log("ā” Selected Execution Driver: Systemd (cgroups enabled)"), e) : (console.log("š¦ Selected Execution Driver: Standard Process (Fallback)"), new Bo());
|
|
8799
8803
|
}
|
|
8800
8804
|
//#endregion
|
|
8801
8805
|
//#region src/signals.ts
|
|
8802
|
-
async function
|
|
8806
|
+
async function Ho(e) {
|
|
8803
8807
|
let t = !1;
|
|
8804
8808
|
async function n(n) {
|
|
8805
8809
|
if (!t) {
|
|
@@ -8807,7 +8811,7 @@ async function Vo(e) {
|
|
|
8807
8811
|
console.error("ā ļø Graceful shutdown timed out after 10s. Forcing exit!"), process.exit(1);
|
|
8808
8812
|
}, 1e4).unref();
|
|
8809
8813
|
try {
|
|
8810
|
-
|
|
8814
|
+
Wo.isStopping = !0, e.length > 0 && (console.log("āļø Waiting for active worker jobs to drain..."), await Promise.allSettled(e)), console.log("⨠Engine stopped cleanly. Goodbye!"), process.exit(0);
|
|
8811
8815
|
} catch (e) {
|
|
8812
8816
|
console.error("ā Error during graceful shutdown:", e.message), process.exit(1);
|
|
8813
8817
|
}
|
|
@@ -8817,21 +8821,21 @@ async function Vo(e) {
|
|
|
8817
8821
|
}
|
|
8818
8822
|
//#endregion
|
|
8819
8823
|
//#region src/worker.ts
|
|
8820
|
-
var
|
|
8821
|
-
function
|
|
8822
|
-
|
|
8823
|
-
let i = Array.from({ length: e }, (e, i) =>
|
|
8824
|
-
return
|
|
8825
|
-
}
|
|
8826
|
-
async function
|
|
8827
|
-
let i = await
|
|
8828
|
-
for (console.log(`[${e}] š Worker started. Driver: ${i.name}`); !
|
|
8824
|
+
var Uo = !!process.env.DEBUG, Wo = { isStopping: !1 };
|
|
8825
|
+
function Go(e, t, n, r) {
|
|
8826
|
+
Wo.isStopping = !1;
|
|
8827
|
+
let i = Array.from({ length: e }, (e, i) => Ko(`worker-${i + 1}`, t, n, r));
|
|
8828
|
+
return Ho(i), i;
|
|
8829
|
+
}
|
|
8830
|
+
async function Ko(e, t, n, r) {
|
|
8831
|
+
let i = await Vo();
|
|
8832
|
+
for (console.log(`[${e}] š Worker started. Driver: ${i.name}`); !Wo.isStopping;) try {
|
|
8829
8833
|
let a = await t.claimNextJob();
|
|
8830
8834
|
if (!a) {
|
|
8831
8835
|
await new Promise((e) => setTimeout(e, 2e3));
|
|
8832
8836
|
continue;
|
|
8833
8837
|
}
|
|
8834
|
-
await
|
|
8838
|
+
await qo({
|
|
8835
8839
|
workerId: e,
|
|
8836
8840
|
job: a,
|
|
8837
8841
|
queue: t,
|
|
@@ -8844,7 +8848,7 @@ async function Go(e, t, n, r) {
|
|
|
8844
8848
|
}
|
|
8845
8849
|
console.log(`[${e}] š Worker loop stopped cleanly.`);
|
|
8846
8850
|
}
|
|
8847
|
-
async function
|
|
8851
|
+
async function qo(e) {
|
|
8848
8852
|
let { workerId: t, job: n, config: r, secrets: i, queue: a } = e;
|
|
8849
8853
|
console.log(`\n[${t}] š¦ Claimed Job #${n.id} (Workflow: ${n.workflow_id})`);
|
|
8850
8854
|
let o = typeof n.payload == "string" ? JSON.parse(n.payload) : n.payload, s = o.steps || [], c = o.inputs || {}, l = Date.now(), u = {
|
|
@@ -8852,22 +8856,22 @@ async function Ko(e) {
|
|
|
8852
8856
|
env: { ...r.env },
|
|
8853
8857
|
secrets: i.getAll(),
|
|
8854
8858
|
steps: {}
|
|
8855
|
-
}, { cancelled: d, failed: f, stepReports: p } = await
|
|
8859
|
+
}, { cancelled: d, failed: f, stepReports: p } = await Jo({
|
|
8856
8860
|
payload: o,
|
|
8857
8861
|
steps: s,
|
|
8858
8862
|
executionContext: u,
|
|
8859
8863
|
...e
|
|
8860
8864
|
}), m = d ? "cancelled" : f ? "failed" : "success";
|
|
8861
8865
|
await a.finishJob(n.id, m), console.log(`[${t}] ā
Job #${n.id} completed as: ${m}`);
|
|
8862
|
-
let h =
|
|
8863
|
-
await a.saveReport(n.id, h), await
|
|
8866
|
+
let h = es(n, m, l, c, u.env, p, o);
|
|
8867
|
+
await a.saveReport(n.id, h), await ts(t, r.reporters, h);
|
|
8864
8868
|
}
|
|
8865
|
-
async function
|
|
8869
|
+
async function Jo(e) {
|
|
8866
8870
|
let { driver: t, workerId: n, queue: r, config: i, job: a, payload: o, steps: s, executionContext: c } = e, l = [], u = !1, d = !1;
|
|
8867
8871
|
try {
|
|
8868
|
-
o.env && Object.assign(c.env, await
|
|
8872
|
+
o.env && Object.assign(c.env, await Zo(o.env, c));
|
|
8869
8873
|
for (let e = 0; e < s.length; e++) {
|
|
8870
|
-
let o = s[e], f = await
|
|
8874
|
+
let o = s[e], f = await Yo({
|
|
8871
8875
|
workerId: n,
|
|
8872
8876
|
jobId: a.id,
|
|
8873
8877
|
step: o,
|
|
@@ -8890,38 +8894,38 @@ async function qo(e) {
|
|
|
8890
8894
|
} catch (e) {
|
|
8891
8895
|
console.log("š Step failed", e), u = !0;
|
|
8892
8896
|
}
|
|
8893
|
-
return l.length < s.length &&
|
|
8897
|
+
return l.length < s.length && $o(s, l.length, l), {
|
|
8894
8898
|
failed: u,
|
|
8895
8899
|
cancelled: d,
|
|
8896
8900
|
stepReports: l
|
|
8897
8901
|
};
|
|
8898
8902
|
}
|
|
8899
|
-
async function
|
|
8903
|
+
async function Yo(e) {
|
|
8900
8904
|
let { step: t, stepIndex: n } = e, r = t.id || `step-${n}`, i = t.name || r;
|
|
8901
8905
|
if (t.if) {
|
|
8902
|
-
let n = await
|
|
8903
|
-
if (!n) return
|
|
8906
|
+
let n = await mn.evaluateConditions(t.if, e.executionContext);
|
|
8907
|
+
if (!n) return Uo && console.log("Skipped step due to condition", typeof n, n), {
|
|
8904
8908
|
failed: !1,
|
|
8905
8909
|
cancelled: !1,
|
|
8906
8910
|
skipped: !0,
|
|
8907
8911
|
report: null
|
|
8908
8912
|
};
|
|
8909
8913
|
}
|
|
8910
|
-
return t.eval ?
|
|
8914
|
+
return t.eval ? Xo({
|
|
8911
8915
|
...e,
|
|
8912
8916
|
stepId: r,
|
|
8913
8917
|
stepName: i,
|
|
8914
8918
|
evalExpr: t.eval
|
|
8915
|
-
}) :
|
|
8919
|
+
}) : Qo({
|
|
8916
8920
|
...e,
|
|
8917
8921
|
stepId: r,
|
|
8918
8922
|
stepName: i
|
|
8919
8923
|
});
|
|
8920
8924
|
}
|
|
8921
|
-
async function
|
|
8925
|
+
async function Xo(e) {
|
|
8922
8926
|
let { queue: t, jobId: n, stepId: r, stepName: i, evalExpr: a, executionContext: o } = e, s = Date.now();
|
|
8923
8927
|
try {
|
|
8924
|
-
let e = await
|
|
8928
|
+
let e = await mn.evaluateExpression(a, o);
|
|
8925
8929
|
o.steps[r] = {
|
|
8926
8930
|
status: "success",
|
|
8927
8931
|
exitCode: 0,
|
|
@@ -8964,15 +8968,15 @@ async function Yo(e) {
|
|
|
8964
8968
|
};
|
|
8965
8969
|
}
|
|
8966
8970
|
}
|
|
8967
|
-
async function
|
|
8971
|
+
async function Zo(e, t) {
|
|
8968
8972
|
let n = {};
|
|
8969
|
-
if (e) for (let [r, i] of Object.entries(e)) n[r] = String(await
|
|
8973
|
+
if (e) for (let [r, i] of Object.entries(e)) n[r] = String(await mn.evaluateValue(i, t));
|
|
8970
8974
|
return n;
|
|
8971
8975
|
}
|
|
8972
|
-
async function
|
|
8976
|
+
async function Qo(t) {
|
|
8973
8977
|
let { workerId: n, jobId: r, step: i, stepId: a, stepName: o, executionContext: s, driver: c, queue: l, config: u } = t, d, f;
|
|
8974
8978
|
try {
|
|
8975
|
-
let e = await
|
|
8979
|
+
let e = await Zo(i.env, s);
|
|
8976
8980
|
d = {
|
|
8977
8981
|
jobId: r.toString(),
|
|
8978
8982
|
stepId: a,
|
|
@@ -9026,7 +9030,7 @@ async function Zo(t) {
|
|
|
9026
9030
|
}
|
|
9027
9031
|
};
|
|
9028
9032
|
}
|
|
9029
|
-
function
|
|
9033
|
+
function $o(e, t, n) {
|
|
9030
9034
|
for (let r = t; r < e.length; r++) {
|
|
9031
9035
|
let t = e[r], i = t.id || `step-${r}`;
|
|
9032
9036
|
n.push({
|
|
@@ -9040,7 +9044,7 @@ function Qo(e, t, n) {
|
|
|
9040
9044
|
});
|
|
9041
9045
|
}
|
|
9042
9046
|
}
|
|
9043
|
-
function
|
|
9047
|
+
function es(e, t, n, r, i, a, o) {
|
|
9044
9048
|
return {
|
|
9045
9049
|
jobId: e.id.toString(),
|
|
9046
9050
|
workflowName: e.workflow_id,
|
|
@@ -9058,7 +9062,7 @@ function $o(e, t, n, r, i, a, o) {
|
|
|
9058
9062
|
})
|
|
9059
9063
|
};
|
|
9060
9064
|
}
|
|
9061
|
-
async function
|
|
9065
|
+
async function ts(e, t = [], n) {
|
|
9062
9066
|
!Array.isArray(t) || t.length === 0 || (console.log(`[${e}] š¢ Dispatching execution report to ${t.length} reporter(s)...`), await Promise.allSettled(t.map(async (t) => {
|
|
9063
9067
|
try {
|
|
9064
9068
|
await t.report(n);
|
|
@@ -9069,7 +9073,7 @@ async function es(e, t = [], n) {
|
|
|
9069
9073
|
}
|
|
9070
9074
|
//#endregion
|
|
9071
9075
|
//#region src/config.ts
|
|
9072
|
-
async function
|
|
9076
|
+
async function ns(e) {
|
|
9073
9077
|
let n = {
|
|
9074
9078
|
port: Number(e.port),
|
|
9075
9079
|
database: e.database,
|
|
@@ -9077,10 +9081,10 @@ async function ts(e) {
|
|
|
9077
9081
|
workers: e.workers ? Number(e.workers) : void 0
|
|
9078
9082
|
}, r = {}, a = p(e.config);
|
|
9079
9083
|
t(a) && i(a).isFile() && (r = (await import(a)).default || {});
|
|
9080
|
-
let o =
|
|
9081
|
-
return t(o.workflows) ? (
|
|
9084
|
+
let o = rs(r, n);
|
|
9085
|
+
return t(o.workflows) ? (Fo(o.database), o) : (console.warn(`ā ļø Warning: Workflows directory '${o.workflows}' not found.`), null);
|
|
9082
9086
|
}
|
|
9083
|
-
function
|
|
9087
|
+
function rs(e, t) {
|
|
9084
9088
|
let n = process.env;
|
|
9085
9089
|
return {
|
|
9086
9090
|
port: Number(e.port || t.port || n.PORT || 11235),
|
|
@@ -9095,7 +9099,7 @@ function ns(e, t) {
|
|
|
9095
9099
|
}
|
|
9096
9100
|
//#endregion
|
|
9097
9101
|
//#region src/reporters/json-file.reporter.ts
|
|
9098
|
-
var
|
|
9102
|
+
var is = class {
|
|
9099
9103
|
name = "json-file";
|
|
9100
9104
|
outputDir;
|
|
9101
9105
|
constructor(e) {
|
|
@@ -9106,7 +9110,7 @@ var rs = class {
|
|
|
9106
9110
|
let n = u.join(this.outputDir, `run-${t.jobId}.json`);
|
|
9107
9111
|
e.writeFileSync(n, JSON.stringify(t, null, 2), "utf-8"), console.log(`š Execution report saved to: ${n}`);
|
|
9108
9112
|
}
|
|
9109
|
-
},
|
|
9113
|
+
}, as = class {
|
|
9110
9114
|
name = "slack";
|
|
9111
9115
|
webhookUrl = "";
|
|
9112
9116
|
token = "";
|
|
@@ -9130,7 +9134,7 @@ var rs = class {
|
|
|
9130
9134
|
})
|
|
9131
9135
|
});
|
|
9132
9136
|
}
|
|
9133
|
-
}, { values:
|
|
9137
|
+
}, { values: os, positionals: ss } = a({
|
|
9134
9138
|
allowPositionals: !0,
|
|
9135
9139
|
options: {
|
|
9136
9140
|
config: {
|
|
@@ -9160,35 +9164,35 @@ var rs = class {
|
|
|
9160
9164
|
}
|
|
9161
9165
|
}
|
|
9162
9166
|
});
|
|
9163
|
-
function
|
|
9167
|
+
function cs() {
|
|
9164
9168
|
console.log("\nš Runner CLI š\n\nUsage:\n npx -y @cloud-cli/on <command> [options]\n pnpm dlx -y @cloud-cli/on <command> [options]\n\nCommands:\n start Runs both Webhook Ingress Server and Workers (Default)\n start-server Runs Webhook Ingress Server only (API Gateway mode)\n start-workers Runs Worker Polling loops only (Scalable Worker mode)\n validate Parses and validates workflow YAML files without running\n\nOptions:\n -c, --config Path to runner.config.mjs (default: ./runner.config.mjs, env: RUNNER_CONFIG_PATH)\n -d, --database SQLite Database URL (env: RUNNER_DATABASE_URL)\n -w, --workflows Path to where your workflows are defined (default: on/, env: RUNNER_WORKFLOWS_PATH)\n -p, --port Port for Webhook Ingress Server (default: 11235, env: PORT)\n -k, --workers Number of worker thread loops to spawn (default: 5, env: RUNNER_WORKERS)\n -h, --help Show this help message\n ");
|
|
9165
9169
|
}
|
|
9166
|
-
|
|
9167
|
-
function
|
|
9170
|
+
os.help && (cs(), process.exit(0));
|
|
9171
|
+
function ls(e) {
|
|
9168
9172
|
console.log("š Validating Workflows in:", e.workflows);
|
|
9169
|
-
let t = new
|
|
9173
|
+
let t = new Co(e.workflows), n = r(e.workflows).filter((e) => e.endsWith(".yml") || e.endsWith(".yaml"));
|
|
9170
9174
|
for (let e of n) {
|
|
9171
|
-
let n =
|
|
9175
|
+
let n = wo(t.resolve(e));
|
|
9172
9176
|
console.log(` ā
${e} -> Valid! (${n.length} job matrix variant(s) generated)`);
|
|
9173
9177
|
}
|
|
9174
9178
|
}
|
|
9175
|
-
async function
|
|
9176
|
-
let e = new
|
|
9179
|
+
async function us() {
|
|
9180
|
+
let e = new Lo("./.env"), t = new Io(process.env.WORKER_NAME || "cli");
|
|
9177
9181
|
return await t.init(), {
|
|
9178
9182
|
secrets: e,
|
|
9179
9183
|
queue: t
|
|
9180
9184
|
};
|
|
9181
9185
|
}
|
|
9182
|
-
async function
|
|
9183
|
-
let e =
|
|
9186
|
+
async function ds() {
|
|
9187
|
+
let e = ss[0] || "start", t = await ns(os);
|
|
9184
9188
|
switch (t || process.exit(1), e) {
|
|
9185
9189
|
case "validate":
|
|
9186
|
-
|
|
9190
|
+
ls(t);
|
|
9187
9191
|
break;
|
|
9188
9192
|
case "start-server": {
|
|
9189
9193
|
console.log("š Starting Ingress Gateway...");
|
|
9190
|
-
let { queue: e, secrets: n } = await
|
|
9191
|
-
await
|
|
9194
|
+
let { queue: e, secrets: n } = await us();
|
|
9195
|
+
await Eo.withPort({
|
|
9192
9196
|
config: t,
|
|
9193
9197
|
queue: e,
|
|
9194
9198
|
secrets: n,
|
|
@@ -9199,13 +9203,13 @@ async function us() {
|
|
|
9199
9203
|
}
|
|
9200
9204
|
case "start-workers": {
|
|
9201
9205
|
console.log(`āļø Starting ${t.workers} Worker Loop(s)...`);
|
|
9202
|
-
let { queue: e, secrets: n } = await
|
|
9203
|
-
|
|
9206
|
+
let { queue: e, secrets: n } = await us();
|
|
9207
|
+
Go(t.workers, e, n, t);
|
|
9204
9208
|
break;
|
|
9205
9209
|
}
|
|
9206
|
-
default: console.error(`ā Unknown command: '${e}'`),
|
|
9210
|
+
default: console.error(`ā Unknown command: '${e}'`), cs(), process.exit(1);
|
|
9207
9211
|
}
|
|
9208
9212
|
}
|
|
9209
|
-
|
|
9213
|
+
ds().catch(console.error);
|
|
9210
9214
|
//#endregion
|
|
9211
|
-
export {
|
|
9215
|
+
export { Cn as HtmlReporter, is as JsonFileReporter, as as SlackReporter };
|