oxfmt 0.57.0 → 0.58.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{acorn-LGWopQvF.js → acorn-CZllRq2x.js} +1893 -1803
- package/dist/{angular-BbAuvH72.js → angular-CsoDKqo4.js} +1587 -995
- package/dist/{apis-CvFX8LhR.js → apis-DLO0lBDu.js} +4 -4
- package/dist/babel-DZD6u90w.js +9896 -0
- package/dist/{bindings-Cj_GMsoO.js → bindings-DTiEua0g.js} +26 -26
- package/dist/{chunk-DSjvVL_1-DllBg9tc.js → chunk-DSjvVL_1-DX2STy_I.js} +1 -1
- package/dist/cli-worker.d.ts +5 -5
- package/dist/cli-worker.js +1 -1
- package/dist/cli.js +3 -2
- package/dist/{dist-BKyxiMdj.js → dist-YOS4M6hk.js} +17 -17
- package/dist/estree-ChnhgzGg.js +7885 -0
- package/dist/flow-C6LkWPPl.js +9149 -0
- package/dist/{glimmer-Ba_8Z2bG.js → glimmer-YnkKK2a7.js} +204 -187
- package/dist/{graphql-CZ7EPWgo.js → graphql-BNiwkZTo.js} +905 -820
- package/dist/{html-DblM11Xw.js → html-DMHXIbrM.js} +1416 -1305
- package/dist/index.js +3 -3
- package/dist/{jiti-Bb1dT6Cw-0c6As3U-.js → jiti-Bb1dT6Cw-B61jQmj-.js} +2 -2
- package/dist/markdown-BjyDFyaO.js +14010 -0
- package/dist/{meriyah-DafjRZfO.js → meriyah-zDNCk2o1.js} +1501 -1429
- package/dist/{migrate-prettier-DrYAkU3F.js → migrate-prettier-BmSsy164.js} +49 -42
- package/dist/{plugin-BuVceHGR.js → plugin-B4cguZ1l.js} +16 -12
- package/dist/{postcss-CkhtwsAS.js → postcss-CwPwODg8.js} +2153 -2002
- package/dist/{prettier-DKAx5A83.js → prettier-BByt4AhK.js} +5674 -5038
- package/dist/{sorter-BZkvDMjt-C8qUPUh2.js → sorter-BZkvDMjt-B8ihSEiX.js} +7 -7
- package/dist/{sorter-DSVZH4kF.js → sorter-BcGkkjyR.js} +1 -1
- package/dist/{typescript-DaxiA0nr.js → typescript-Bq_S3kyC.js} +10499 -10252
- package/dist/{v3-D-mr2VVh-Ch8a-2Ce.js → v3-D-mr2VVh-p01OHBjH.js} +4 -4
- package/dist/{v4-C-HWEQJm-DheWK34Z.js → v4-C-HWEQJm-BbuYNtSW.js} +4 -4
- package/dist/yaml-DlyuuZmC.js +6121 -0
- package/package.json +20 -20
- package/dist/babel-DLjwvkt5.js +0 -9884
- package/dist/estree-DbmUPhmV.js +0 -7269
- package/dist/flow-CJbpv7JL.js +0 -52916
- package/dist/markdown-B5hFVJKQ.js +0 -6880
- package/dist/yaml-BC7gw7un.js +0 -5280
|
@@ -1,34 +1,39 @@
|
|
|
1
1
|
import { n as __esmMin } from "./rolldown-runtime-CE-6LUnI.js";
|
|
2
|
-
//#region ../../node_modules/.pnpm/prettier@3.
|
|
3
|
-
function
|
|
2
|
+
//#region ../../node_modules/.pnpm/prettier@3.9.4/node_modules/prettier/plugins/glimmer.mjs
|
|
3
|
+
function Gn(e) {
|
|
4
4
|
return this[e < 0 ? this.length + e : e];
|
|
5
5
|
}
|
|
6
|
-
function
|
|
6
|
+
function Lr(e, t, r) {
|
|
7
|
+
if (!e.has(t)) {
|
|
8
|
+
let s = r(t);
|
|
9
|
+
e.set(t, s);
|
|
10
|
+
}
|
|
11
|
+
return e.get(t);
|
|
12
|
+
}
|
|
13
|
+
function jn(e) {
|
|
7
14
|
if (typeof e == "string") return Ot;
|
|
8
15
|
if (Array.isArray(e)) return It;
|
|
9
16
|
if (!e) return;
|
|
10
17
|
let { type: t } = e;
|
|
11
18
|
if (ne.has(t)) return t;
|
|
12
19
|
}
|
|
13
|
-
function
|
|
20
|
+
function Jn(e) {
|
|
14
21
|
let t = e === null ? "null" : typeof e;
|
|
15
22
|
if (t !== "string" && t !== "object") return `Unexpected doc '${t}',
|
|
16
23
|
Expected it to be 'string' or 'object'.`;
|
|
17
24
|
if (se(e)) throw new Error("doc is valid.");
|
|
18
25
|
let r = Object.prototype.toString.call(e);
|
|
19
26
|
if (r !== "[object Object]") return `Unexpected doc '${r}'.`;
|
|
20
|
-
let s =
|
|
27
|
+
let s = Qn([...ne].map((n) => `'${n}'`));
|
|
21
28
|
return `Unexpected doc.type '${e.type}'.
|
|
22
29
|
Expected it to be ${s}.`;
|
|
23
30
|
}
|
|
24
|
-
function
|
|
31
|
+
function $n(e, t) {
|
|
25
32
|
if (typeof e == "string") return t(e);
|
|
26
33
|
let r = /* @__PURE__ */ new Map();
|
|
27
34
|
return s(e);
|
|
28
35
|
function s(i) {
|
|
29
|
-
|
|
30
|
-
let a = n(i);
|
|
31
|
-
return r.set(i, a), a;
|
|
36
|
+
return Lr(r, i, n);
|
|
32
37
|
}
|
|
33
38
|
function n(i) {
|
|
34
39
|
switch (se(i)) {
|
|
@@ -64,12 +69,12 @@ function Jn(e, t) {
|
|
|
64
69
|
case ee:
|
|
65
70
|
case Q:
|
|
66
71
|
case xt: return t(i);
|
|
67
|
-
default: throw new
|
|
72
|
+
default: throw new Dr(i);
|
|
68
73
|
}
|
|
69
74
|
}
|
|
70
75
|
}
|
|
71
|
-
function ie(e, t =
|
|
72
|
-
return
|
|
76
|
+
function ie(e, t = Or) {
|
|
77
|
+
return $n(e, (r) => typeof r == "string" ? ut(t, r.split(`
|
|
73
78
|
`)) : r);
|
|
74
79
|
}
|
|
75
80
|
function F(e) {
|
|
@@ -78,18 +83,18 @@ function F(e) {
|
|
|
78
83
|
contents: e
|
|
79
84
|
};
|
|
80
85
|
}
|
|
81
|
-
function
|
|
82
|
-
return
|
|
86
|
+
function Xn(e, t) {
|
|
87
|
+
return Br(e), M(t), {
|
|
83
88
|
type: Et,
|
|
84
89
|
contents: t,
|
|
85
90
|
n: e
|
|
86
91
|
};
|
|
87
92
|
}
|
|
88
93
|
function Be(e) {
|
|
89
|
-
return
|
|
94
|
+
return Xn(-1, e);
|
|
90
95
|
}
|
|
91
96
|
function qe(e) {
|
|
92
|
-
return
|
|
97
|
+
return Ir(e), {
|
|
93
98
|
type: wt,
|
|
94
99
|
parts: e
|
|
95
100
|
};
|
|
@@ -111,14 +116,14 @@ function Ve(e, t = "", r = {}) {
|
|
|
111
116
|
groupId: r.groupId
|
|
112
117
|
};
|
|
113
118
|
}
|
|
114
|
-
function
|
|
119
|
+
function ut(e, t) {
|
|
115
120
|
M(e), ae(t);
|
|
116
121
|
let r = [];
|
|
117
122
|
for (let s = 0; s < t.length; s++) s !== 0 && r.push(e), r.push(t[s]);
|
|
118
123
|
return r;
|
|
119
124
|
}
|
|
120
|
-
function
|
|
121
|
-
let { preferred: r, alternate: s } = t === !0 || t === "'" ?
|
|
125
|
+
function oe(e, t) {
|
|
126
|
+
let { preferred: r, alternate: s } = t === !0 || t === "'" ? es : rs, { length: n } = e, i = 0, a = 0;
|
|
122
127
|
for (let o = 0; o < n; o++) {
|
|
123
128
|
let c = e.charCodeAt(o);
|
|
124
129
|
c === r.codePoint ? i++ : c === s.codePoint && a++;
|
|
@@ -132,14 +137,6 @@ function Fe(e) {
|
|
|
132
137
|
function is(e) {
|
|
133
138
|
return Array.isArray(e) && e.length > 0;
|
|
134
139
|
}
|
|
135
|
-
function Vr(e, t, r) {
|
|
136
|
-
if (e.type === "TextNode") {
|
|
137
|
-
let s = e.chars.trim();
|
|
138
|
-
if (!s) return null;
|
|
139
|
-
r.tag === "style" && r.children.length === 1 && r.children[0] === e ? t.chars = "" : t.chars = R.split(s).join(" ");
|
|
140
|
-
}
|
|
141
|
-
e.type === "ElementNode" && (delete t.startTag, delete t.openTag, delete t.parts, delete t.endTag, delete t.closeTag, delete t.nameNode, delete t.body, delete t.blockParamNodes, delete t.params, delete t.path), e.type === "Block" && (delete t.blockParamNodes, delete t.params), e.type === "AttrNode" && e.name.toLowerCase() === "class" && delete t.value, e.type === "PathExpression" && (t.head = e.head.original);
|
|
142
|
-
}
|
|
143
140
|
function as(e) {
|
|
144
141
|
let { node: t } = e;
|
|
145
142
|
if (t.type !== "TextNode") return;
|
|
@@ -215,7 +212,7 @@ function We(e, t, r) {
|
|
|
215
212
|
if (!s) return r;
|
|
216
213
|
if (s.type === "ContentStatement") return (n || !r ? /^\s*?\r?\n/ : /^\s*?(\r?\n|$)/).test(s.original);
|
|
217
214
|
}
|
|
218
|
-
function
|
|
215
|
+
function pt(e, t, r) {
|
|
219
216
|
var s = e[t == null ? 0 : t + 1];
|
|
220
217
|
if (!(!s || s.type !== "ContentStatement" || !r && s.rightStripped)) {
|
|
221
218
|
var n = s.value;
|
|
@@ -529,7 +526,7 @@ function pn(e) {
|
|
|
529
526
|
return e.type === "StringLiteral" || e.type === "BooleanLiteral" || e.type === "NumberLiteral" || e.type === "NullLiteral" || e.type === "UndefinedLiteral";
|
|
530
527
|
}
|
|
531
528
|
function tr() {
|
|
532
|
-
return Ze || (Ze = new
|
|
529
|
+
return Ze || (Ze = new ft("", "(synthetic)")), Ze;
|
|
533
530
|
}
|
|
534
531
|
function rn(e, t) {
|
|
535
532
|
return d.var({
|
|
@@ -611,7 +608,7 @@ function v(...e) {
|
|
|
611
608
|
return t && typeof t == "object" ? A.forHbsLoc(tr(), t) : A.forHbsLoc(tr(), Bs);
|
|
612
609
|
}
|
|
613
610
|
{
|
|
614
|
-
let [t, r, s, n, i] = e, a = i ? new
|
|
611
|
+
let [t, r, s, n, i] = e, a = i ? new ft("", i) : tr();
|
|
615
612
|
return A.forHbsLoc(a, {
|
|
616
613
|
start: {
|
|
617
614
|
line: t,
|
|
@@ -693,7 +690,7 @@ function Nt(e) {
|
|
|
693
690
|
}
|
|
694
691
|
function mn(e, t = {}) {
|
|
695
692
|
let r, s, n, i = t.mode || "precompile";
|
|
696
|
-
typeof e == "string" ? (r = new
|
|
693
|
+
typeof e == "string" ? (r = new ft(e, t.meta?.moduleName), s = i === "codemod" ? he(e, t.parseOptions) : Je(e, t.parseOptions)) : e instanceof ft ? (r = e, s = i === "codemod" ? he(e.source, t.parseOptions) : Je(e.source, t.parseOptions)) : (r = new ft("", t.meta?.moduleName), s = e), i === "codemod" && (n = new pr());
|
|
697
694
|
let a = A.forCharPositions(r, 0, r.source.length);
|
|
698
695
|
s.loc = {
|
|
699
696
|
source: "(program)",
|
|
@@ -704,6 +701,14 @@ function mn(e, t = {}) {
|
|
|
704
701
|
if (t.plugins?.ast) for (let c of t.plugins.ast) Hs(o, c(ze({}, t, { syntax: Ms }, { plugins: void 0 })).visitor);
|
|
705
702
|
return o;
|
|
706
703
|
}
|
|
704
|
+
function dr(e, t, r) {
|
|
705
|
+
if (e.type === "TextNode") {
|
|
706
|
+
let s = e.chars.trim();
|
|
707
|
+
if (!s) return null;
|
|
708
|
+
r.tag === "style" && r.children.length === 1 && r.children[0] === e ? t.chars = "" : t.chars = R.split(s).join(" ");
|
|
709
|
+
}
|
|
710
|
+
e.type === "ElementNode" && (delete t.startTag, delete t.openTag, delete t.parts, delete t.endTag, delete t.closeTag, delete t.nameNode, delete t.body, delete t.blockParamNodes, delete t.params, delete t.path), e.type === "Block" && (delete t.blockParamNodes, delete t.params), e.type === "AttrNode" && e.name.toLowerCase() === "class" && delete t.value, e.type === "PathExpression" && (t.head = e.head.original);
|
|
711
|
+
}
|
|
707
712
|
function bn(e) {
|
|
708
713
|
return e.toUpperCase() === e;
|
|
709
714
|
}
|
|
@@ -713,11 +718,11 @@ function Ks(e) {
|
|
|
713
718
|
function Ws(e) {
|
|
714
719
|
return Gs.has(e.toLowerCase()) && !bn(e[0]);
|
|
715
720
|
}
|
|
716
|
-
function
|
|
721
|
+
function gr(e) {
|
|
717
722
|
return e.selfClosing === !0 || Ws(e.tag) || Ks(e) && e.children.every((t) => Se(t));
|
|
718
723
|
}
|
|
719
724
|
function Se(e) {
|
|
720
|
-
return e.type === "TextNode" && !/\S
|
|
725
|
+
return e.type === "TextNode" && !/\S/.test(e.chars);
|
|
721
726
|
}
|
|
722
727
|
function gn(e) {
|
|
723
728
|
return e?.type === "MustacheCommentStatement" && typeof e.value == "string" && e.value.trim() === "prettier-ignore";
|
|
@@ -733,7 +738,7 @@ function js(e, t, r) {
|
|
|
733
738
|
case "Template": return I(e.map(r, "body"));
|
|
734
739
|
case "ElementNode": {
|
|
735
740
|
let n = t.htmlWhitespaceSensitivity !== "ignore", i = [!n && e.previous?.type === "ElementNode" ? H : "", I([Js(e, r)])];
|
|
736
|
-
if (
|
|
741
|
+
if (gr(s)) return [i];
|
|
737
742
|
let a = [
|
|
738
743
|
"</",
|
|
739
744
|
s.tag,
|
|
@@ -779,7 +784,7 @@ function js(e, t, r) {
|
|
|
779
784
|
]);
|
|
780
785
|
case "AttrNode": {
|
|
781
786
|
let { name: n, value: i } = s, a = i.type === "TextNode";
|
|
782
|
-
if (a && i.chars === "" &&
|
|
787
|
+
if (a && i.chars === "" && dt(i) === Gt(i)) return n;
|
|
783
788
|
let c = a ? oe(i.chars, t.singleQuote) : i.type === "ConcatStatement" ? oe(i.parts.map((f) => f.type === "TextNode" ? f.chars : "").join(""), t.singleQuote) : "", h = r("value");
|
|
784
789
|
return [
|
|
785
790
|
n,
|
|
@@ -790,7 +795,7 @@ function js(e, t, r) {
|
|
|
790
795
|
];
|
|
791
796
|
}
|
|
792
797
|
case "ConcatStatement": return e.map(r, "parts");
|
|
793
|
-
case "Hash": return
|
|
798
|
+
case "Hash": return ut(N, e.map(r, "pairs"));
|
|
794
799
|
case "HashPair": return [
|
|
795
800
|
s.key,
|
|
796
801
|
"=",
|
|
@@ -800,14 +805,14 @@ function js(e, t, r) {
|
|
|
800
805
|
let n = s.chars, { parent: i } = e;
|
|
801
806
|
if (i.type === "ElementNode") {
|
|
802
807
|
if (i.tag === "pre") return ie(n);
|
|
803
|
-
if (i.tag === "style") return n =
|
|
808
|
+
if (i.tag === "style") return n = ct(0, n, /^\n+/g, ""), n = R.trimEnd(n), n = R.dedentString(n), ie(n, ht);
|
|
804
809
|
}
|
|
805
|
-
n =
|
|
810
|
+
n = ct(0, n, "{{", "\\{{");
|
|
806
811
|
let a = ii(e);
|
|
807
812
|
if (a) {
|
|
808
813
|
if (a === "class") {
|
|
809
|
-
let D = n.trim()
|
|
810
|
-
return e.parent.type === "ConcatStatement" && (e.previous?.type === "MustacheStatement" && /^\s
|
|
814
|
+
let D = ct(0, n.trim(), /\s+/g, " "), B = !1, O = !1;
|
|
815
|
+
return e.parent.type === "ConcatStatement" && (e.previous?.type === "MustacheStatement" && /^\s/.test(n) && (B = !0), e.next?.type === "MustacheStatement" && /\s$/.test(n) && D !== "" && (O = !0)), [
|
|
811
816
|
B ? N : "",
|
|
812
817
|
D,
|
|
813
818
|
O ? N : ""
|
|
@@ -844,8 +849,8 @@ function js(e, t, r) {
|
|
|
844
849
|
...U
|
|
845
850
|
];
|
|
846
851
|
}
|
|
847
|
-
let f = _t(n), p = ai(n), g = oi(n);
|
|
848
852
|
if ((c || h) && o && (e.parent.type === "Block" || e.parent.type === "ElementNode" || e.parent.type === "Template")) return "";
|
|
853
|
+
let f = _t(n), p = ai(n), g = oi(n);
|
|
849
854
|
o && f ? (p = Math.min(f, xn), g = 0) : ((e.next?.type === "BlockStatement" || e.next?.type === "ElementNode") && (g = Math.max(g, 1)), (e.previous?.type === "BlockStatement" || e.previous?.type === "ElementNode") && (p = Math.max(p, 1)));
|
|
850
855
|
let E = "", T = "";
|
|
851
856
|
return g === 0 && e.next?.type === "MustacheStatement" && (T = " "), p === 0 && e.previous?.type === "MustacheStatement" && (E = " "), c && (p = 0, E = ""), h && (g = 0, T = ""), R.hasLeadingWhitespace(n) && (n = E + R.trimStart(n)), R.hasTrailingWhitespace(n) && (n = R.trimEnd(n) + T), [
|
|
@@ -855,7 +860,7 @@ function js(e, t, r) {
|
|
|
855
860
|
];
|
|
856
861
|
}
|
|
857
862
|
case "MustacheCommentStatement": {
|
|
858
|
-
let n =
|
|
863
|
+
let n = dt(s), i = Gt(s), a = t.originalText.charAt(n + 2) === "~", o = t.originalText.charAt(i - 3) === "~", c = s.value.includes("}}") ? "--" : "";
|
|
859
864
|
return [
|
|
860
865
|
"{{",
|
|
861
866
|
a ? "~" : "",
|
|
@@ -878,11 +883,11 @@ function js(e, t, r) {
|
|
|
878
883
|
case "NumberLiteral": return String(s.value);
|
|
879
884
|
case "UndefinedLiteral": return "undefined";
|
|
880
885
|
case "NullLiteral": return "null";
|
|
881
|
-
default: throw new
|
|
886
|
+
default: throw new Fr(s, "Handlebars");
|
|
882
887
|
}
|
|
883
888
|
}
|
|
884
889
|
function Qs(e, t) {
|
|
885
|
-
return
|
|
890
|
+
return dt(e) - dt(t);
|
|
886
891
|
}
|
|
887
892
|
function Js(e, t) {
|
|
888
893
|
let { node: r } = e, s = [
|
|
@@ -892,9 +897,9 @@ function Js(e, t) {
|
|
|
892
897
|
].filter((i) => Bt(r[i])), n = s.flatMap((i) => r[i]).sort(Qs);
|
|
893
898
|
for (let i of s) e.each(({ node: a }) => {
|
|
894
899
|
let o = n.indexOf(a);
|
|
895
|
-
n
|
|
900
|
+
n[o] = [N, t()];
|
|
896
901
|
}, i);
|
|
897
|
-
return Bt(r.blockParams) && n.push(N,
|
|
902
|
+
return Bt(r.blockParams) && n.push(N, yr(r)), [
|
|
898
903
|
"<",
|
|
899
904
|
r.tag,
|
|
900
905
|
F(n),
|
|
@@ -902,7 +907,7 @@ function Js(e, t) {
|
|
|
902
907
|
];
|
|
903
908
|
}
|
|
904
909
|
function $s(e) {
|
|
905
|
-
return
|
|
910
|
+
return gr(e) ? Ve([H, "/>"], [" />", H]) : Ve([H, ">"], ">");
|
|
906
911
|
}
|
|
907
912
|
function ke(e) {
|
|
908
913
|
return [e.trusting ? "{{{" : "{{", e.strip?.open ? "~" : ""];
|
|
@@ -942,17 +947,17 @@ function An(e) {
|
|
|
942
947
|
}
|
|
943
948
|
function ti(e, t) {
|
|
944
949
|
let { node: r } = e, s = [], n = ve(e, t);
|
|
945
|
-
return n && s.push(I(n)), Bt(r.program.blockParams) && s.push(
|
|
950
|
+
return n && s.push(I(n)), Bt(r.program.blockParams) && s.push(yr(r.program)), I([
|
|
946
951
|
Xs(r),
|
|
947
|
-
|
|
948
|
-
s.length > 0 ? F([N,
|
|
952
|
+
br(e, t),
|
|
953
|
+
s.length > 0 ? F([N, ut(N, s)]) : "",
|
|
949
954
|
H,
|
|
950
955
|
Zs(r)
|
|
951
956
|
]);
|
|
952
957
|
}
|
|
953
958
|
function ei(e, t) {
|
|
954
959
|
return [
|
|
955
|
-
t.htmlWhitespaceSensitivity === "ignore" ?
|
|
960
|
+
t.htmlWhitespaceSensitivity === "ignore" ? ht : "",
|
|
956
961
|
Nn(e),
|
|
957
962
|
"else",
|
|
958
963
|
An(e)
|
|
@@ -975,7 +980,7 @@ function ni(e, t) {
|
|
|
975
980
|
F([
|
|
976
981
|
N,
|
|
977
982
|
I(ve(e, t)),
|
|
978
|
-
...Bt(r.program.blockParams) ? [N,
|
|
983
|
+
...Bt(r.program.blockParams) ? [N, yr(r.program)] : []
|
|
979
984
|
]),
|
|
980
985
|
H,
|
|
981
986
|
An(s)
|
|
@@ -984,7 +989,7 @@ function ni(e, t) {
|
|
|
984
989
|
function si(e, t, r) {
|
|
985
990
|
let { node: s } = e;
|
|
986
991
|
return t.htmlWhitespaceSensitivity === "ignore" ? [
|
|
987
|
-
Cn(s) ? H :
|
|
992
|
+
Cn(s) ? H : ht,
|
|
988
993
|
Sn(s),
|
|
989
994
|
r("path"),
|
|
990
995
|
kn(s)
|
|
@@ -1001,16 +1006,16 @@ function En(e, t, r) {
|
|
|
1001
1006
|
let { node: s } = e;
|
|
1002
1007
|
if (Cn(s)) return "";
|
|
1003
1008
|
let n = r("program");
|
|
1004
|
-
return t.htmlWhitespaceSensitivity === "ignore" ? F([
|
|
1009
|
+
return t.htmlWhitespaceSensitivity === "ignore" ? F([ht, n]) : F(n);
|
|
1005
1010
|
}
|
|
1006
1011
|
function vn(e, t, r) {
|
|
1007
1012
|
let { node: s } = e;
|
|
1008
1013
|
if (!s.inverse) return "";
|
|
1009
|
-
let n = r("inverse"), i = t.htmlWhitespaceSensitivity === "ignore" ? [
|
|
1014
|
+
let n = r("inverse"), i = t.htmlWhitespaceSensitivity === "ignore" ? [ht, n] : n;
|
|
1010
1015
|
return e.call(Pn, "inverse", "body", 0) ? i : [ei(s, t), F(i)];
|
|
1011
1016
|
}
|
|
1012
1017
|
function wn(e) {
|
|
1013
|
-
return
|
|
1018
|
+
return ut(N, R.split(e));
|
|
1014
1019
|
}
|
|
1015
1020
|
function ii(e) {
|
|
1016
1021
|
for (let t = 0; t < 2; t++) {
|
|
@@ -1024,20 +1029,20 @@ function _t(e) {
|
|
|
1024
1029
|
}
|
|
1025
1030
|
function ai(e) {
|
|
1026
1031
|
e = typeof e == "string" ? e : "";
|
|
1027
|
-
return _t((e.match(/^([^\S\n\r]*[\n\r])+/
|
|
1032
|
+
return _t((e.match(/^([^\S\n\r]*[\n\r])+/g) || [])[0] || "");
|
|
1028
1033
|
}
|
|
1029
1034
|
function oi(e) {
|
|
1030
1035
|
e = typeof e == "string" ? e : "";
|
|
1031
|
-
return _t((e.match(/([\n\r][^\S\n\r]*)+$/
|
|
1036
|
+
return _t((e.match(/([\n\r][^\S\n\r]*)+$/g) || [])[0] || "");
|
|
1032
1037
|
}
|
|
1033
1038
|
function Kt(e = 0) {
|
|
1034
|
-
return Array.from({ length: Math.min(e, xn) }
|
|
1039
|
+
return Array.from({ length: Math.min(e, xn) }, () => ht);
|
|
1035
1040
|
}
|
|
1036
1041
|
function li(e, t) {
|
|
1037
1042
|
let { node: { value: r } } = e, s = oe(r, ci(e) ? !t.singleQuote : t.singleQuote);
|
|
1038
1043
|
return [
|
|
1039
1044
|
s,
|
|
1040
|
-
|
|
1045
|
+
ct(0, r, s, `\\${s}`),
|
|
1041
1046
|
s
|
|
1042
1047
|
];
|
|
1043
1048
|
}
|
|
@@ -1046,7 +1051,7 @@ function ci(e) {
|
|
|
1046
1051
|
return r !== -1 && t[r + 1].type === "ConcatStatement" && t[r + 2].type === "AttrNode";
|
|
1047
1052
|
}
|
|
1048
1053
|
function ui(e, t) {
|
|
1049
|
-
let r =
|
|
1054
|
+
let r = br(e, t), s = ve(e, t);
|
|
1050
1055
|
return s ? F([
|
|
1051
1056
|
r,
|
|
1052
1057
|
N,
|
|
@@ -1054,21 +1059,21 @@ function ui(e, t) {
|
|
|
1054
1059
|
]) : r;
|
|
1055
1060
|
}
|
|
1056
1061
|
function Tn(e, t) {
|
|
1057
|
-
let r =
|
|
1062
|
+
let r = br(e, t), s = ve(e, t);
|
|
1058
1063
|
return s ? [F([
|
|
1059
1064
|
r,
|
|
1060
1065
|
N,
|
|
1061
1066
|
s
|
|
1062
1067
|
]), H] : r;
|
|
1063
1068
|
}
|
|
1064
|
-
function
|
|
1069
|
+
function br(e, t) {
|
|
1065
1070
|
return t("path");
|
|
1066
1071
|
}
|
|
1067
1072
|
function ve(e, t) {
|
|
1068
1073
|
let { node: r } = e, s = [];
|
|
1069
|
-
return r.params.length > 0 && s.push(...e.map(t, "params")), r.hash?.pairs.length > 0 && s.push(t("hash")), s.length === 0 ? "" :
|
|
1074
|
+
return r.params.length > 0 && s.push(...e.map(t, "params")), r.hash?.pairs.length > 0 && s.push(t("hash")), s.length === 0 ? "" : ut(N, s);
|
|
1070
1075
|
}
|
|
1071
|
-
function
|
|
1076
|
+
function yr(e) {
|
|
1072
1077
|
return [
|
|
1073
1078
|
"as |",
|
|
1074
1079
|
e.blockParams.join(" "),
|
|
@@ -1083,6 +1088,9 @@ function gi(e, t) {
|
|
|
1083
1088
|
return Object.assign(r, t);
|
|
1084
1089
|
}
|
|
1085
1090
|
function bi(e) {
|
|
1091
|
+
return ct(0, e, /[^\n]/g, " ");
|
|
1092
|
+
}
|
|
1093
|
+
function yi(e) {
|
|
1086
1094
|
let t = e.slice(0, Wt);
|
|
1087
1095
|
if (t !== "---" && t !== "+++") return;
|
|
1088
1096
|
let r = e.indexOf(`
|
|
@@ -1093,7 +1101,7 @@ ${t}`, r), i = s;
|
|
|
1093
1101
|
if (i || (i = t === "+++" ? "toml" : "yaml"), n === -1 && t === "---" && i === "yaml" && (n = e.indexOf(`
|
|
1094
1102
|
...`, r)), n === -1) return;
|
|
1095
1103
|
let a = n + 1 + Wt, o = e.charAt(a + 1);
|
|
1096
|
-
if (!/\s
|
|
1104
|
+
if (!/\s?/.test(o)) return;
|
|
1097
1105
|
let c = e.slice(0, a), h;
|
|
1098
1106
|
return {
|
|
1099
1107
|
language: i,
|
|
@@ -1118,30 +1126,30 @@ ${t}`, r), i = s;
|
|
|
1118
1126
|
`)), V(0, h, -1).length;
|
|
1119
1127
|
}
|
|
1120
1128
|
},
|
|
1121
|
-
[
|
|
1129
|
+
[In]: !0
|
|
1122
1130
|
};
|
|
1123
1131
|
}
|
|
1124
|
-
function
|
|
1125
|
-
let t =
|
|
1132
|
+
function Si(e) {
|
|
1133
|
+
let t = yi(e);
|
|
1126
1134
|
return t ? {
|
|
1127
1135
|
frontMatter: t,
|
|
1128
1136
|
get content() {
|
|
1129
1137
|
let { raw: r } = t;
|
|
1130
|
-
return
|
|
1138
|
+
return On(r) + e.slice(r.length);
|
|
1131
1139
|
}
|
|
1132
1140
|
} : { content: e };
|
|
1133
1141
|
}
|
|
1134
|
-
function
|
|
1142
|
+
function ki(e) {
|
|
1135
1143
|
let t = e.children ?? e.body;
|
|
1136
|
-
if (t) for (let r = 0; r < t.length - 1; r++) t[r].type === "TextNode" && t[r + 1].type === "MustacheStatement" && (t[r].chars = t[r].chars.replace(
|
|
1144
|
+
if (t) for (let r = 0; r < t.length - 1; r++) t[r].type === "TextNode" && t[r + 1].type === "MustacheStatement" && (t[r].chars = t[r].chars.replace(/\\$/, "\\\\"));
|
|
1137
1145
|
}
|
|
1138
|
-
function
|
|
1139
|
-
let { frontMatter: t, content: r } =
|
|
1146
|
+
function Ti(e) {
|
|
1147
|
+
let { frontMatter: t, content: r } = Bn(e), s;
|
|
1140
1148
|
try {
|
|
1141
|
-
s = mn(r,
|
|
1149
|
+
s = mn(r, wi);
|
|
1142
1150
|
} catch (n) {
|
|
1143
|
-
let i =
|
|
1144
|
-
if (i) throw Dn(
|
|
1151
|
+
let i = Ni(n);
|
|
1152
|
+
if (i) throw Dn(xi(n), {
|
|
1145
1153
|
loc: i,
|
|
1146
1154
|
cause: n
|
|
1147
1155
|
});
|
|
@@ -1166,16 +1174,25 @@ function wi(e) {
|
|
|
1166
1174
|
}
|
|
1167
1175
|
return s;
|
|
1168
1176
|
}
|
|
1169
|
-
function
|
|
1177
|
+
function xi(e) {
|
|
1170
1178
|
let { message: t } = e, r = t.split(`
|
|
1171
1179
|
`);
|
|
1172
|
-
return r.length >= 4 && /^Parse error on line \d
|
|
1180
|
+
return r.length >= 4 && /^Parse error on line \d+:$/.test(r[0]) && /^-*\^$/.test(V(0, r, -2)) ? V(0, r, -1) : r.length >= 4 && /:\s?$/.test(r[0]) && /^\(error occurred in '.*?' @ line \d+ : column \d+\)$/.test(V(0, r, -1)) && r[1] === "" && V(0, r, -2) === "" && r.slice(2, -2).every((s) => s.startsWith("|")) ? r[0].trim().slice(0, -1) : t;
|
|
1173
1181
|
}
|
|
1174
|
-
function
|
|
1182
|
+
function Ni(e) {
|
|
1175
1183
|
let { location: t, hash: r } = e;
|
|
1176
1184
|
if (t) {
|
|
1177
1185
|
let { start: s, end: n } = t;
|
|
1178
|
-
return
|
|
1186
|
+
return {
|
|
1187
|
+
start: {
|
|
1188
|
+
line: s.line,
|
|
1189
|
+
column: s.column + 1
|
|
1190
|
+
},
|
|
1191
|
+
end: typeof n.line == "number" ? {
|
|
1192
|
+
line: n.line,
|
|
1193
|
+
column: n.column + 1
|
|
1194
|
+
} : void 0
|
|
1195
|
+
};
|
|
1179
1196
|
}
|
|
1180
1197
|
if (r) {
|
|
1181
1198
|
let { loc: { last_line: s, last_column: n } } = r;
|
|
@@ -1185,32 +1202,32 @@ function xi(e) {
|
|
|
1185
1202
|
} };
|
|
1186
1203
|
}
|
|
1187
1204
|
}
|
|
1188
|
-
var
|
|
1205
|
+
var Mn, Oe, Rn, Jt, zn, ct, V, Wn, Dt, Ot, It, $t, kt, Et, Xt, vt, wt, Tt, Zt, te, ee, Q, re, xt, ne, se, Qn, Ie, Dr, M, ae, Ir, Br, Re, N, H, ht, Or, Rr, qr, es, rs, He, R, Bt, Ue, Fr, Hr, Rt, os, Ur, ze, Mr, Vt, Ye, tt, Wr, jr, Ft, hs, Qr, ue, $r, ws, Ts, xs, $e, Ns, As, Ps, Xe, pe, _s, de, st, Bs, sr, nt, ir, ge, ar, or, A, Ut, Mt, J, K, it, Pt, mt, at, zt, Rs, ft, be, mr, Ct, lr, Ze, Us, fe, d, cr, ur, hr, Ms, pr, dn, dt, Gt, Gs, xn, ri, hi, pi, fi, _n, Ln, Sr, Dn, On, In, Wt, Bn, Ei, vi, wi, Ai, Pi;
|
|
1189
1206
|
//#endregion
|
|
1190
1207
|
__esmMin((() => {
|
|
1191
|
-
|
|
1208
|
+
Mn = Object.defineProperty;
|
|
1192
1209
|
Oe = (e, t) => {
|
|
1193
|
-
for (var r in t)
|
|
1210
|
+
for (var r in t) Mn(e, r, {
|
|
1194
1211
|
get: t[r],
|
|
1195
1212
|
enumerable: !0
|
|
1196
1213
|
});
|
|
1197
1214
|
};
|
|
1198
|
-
|
|
1199
|
-
Oe(
|
|
1215
|
+
Rn = {};
|
|
1216
|
+
Oe(Rn, {
|
|
1200
1217
|
languages: () => Ln,
|
|
1201
|
-
parsers: () =>
|
|
1202
|
-
printers: () =>
|
|
1218
|
+
parsers: () => Sr,
|
|
1219
|
+
printers: () => Pi
|
|
1203
1220
|
});
|
|
1204
1221
|
Jt = (e, t) => (r, s, ...n) => r | 1 && s == null ? void 0 : (t.call(s) ?? s[e]).apply(s, n);
|
|
1205
|
-
|
|
1222
|
+
zn = String.prototype.replaceAll ?? function(e, t) {
|
|
1206
1223
|
return e.global ? this.replace(e, t) : this.split(e).join(t);
|
|
1207
|
-
},
|
|
1208
|
-
if (typeof this == "string") return
|
|
1224
|
+
}, ct = Jt("replaceAll", function() {
|
|
1225
|
+
if (typeof this == "string") return zn;
|
|
1209
1226
|
});
|
|
1210
1227
|
V = Jt("at", function() {
|
|
1211
|
-
if (Array.isArray(this) || typeof this == "string") return
|
|
1228
|
+
if (Array.isArray(this) || typeof this == "string") return Gn;
|
|
1212
1229
|
});
|
|
1213
|
-
|
|
1230
|
+
Wn = () => {}, Dt = Wn;
|
|
1214
1231
|
Ot = "string", It = "array", $t = "cursor", kt = "indent", Et = "align", Xt = "trim", vt = "group", wt = "fill", Tt = "if-break", Zt = "indent-if-break", te = "line-suffix", ee = "line-suffix-boundary", Q = "line", re = "label", xt = "break-parent", ne = /* @__PURE__ */ new Set([
|
|
1215
1232
|
$t,
|
|
1216
1233
|
kt,
|
|
@@ -1226,41 +1243,40 @@ __esmMin((() => {
|
|
|
1226
1243
|
re,
|
|
1227
1244
|
xt
|
|
1228
1245
|
]);
|
|
1229
|
-
se =
|
|
1230
|
-
|
|
1246
|
+
se = jn;
|
|
1247
|
+
Qn = (e) => new Intl.ListFormat("en-US", { type: "disjunction" }).format(e);
|
|
1231
1248
|
Ie = class extends Error {
|
|
1232
1249
|
name = "InvalidDocError";
|
|
1233
1250
|
constructor(t) {
|
|
1234
|
-
super(
|
|
1251
|
+
super(Jn(t)), this.doc = t;
|
|
1235
1252
|
}
|
|
1236
|
-
},
|
|
1237
|
-
M = Dt, ae = Dt,
|
|
1253
|
+
}, Dr = Ie;
|
|
1254
|
+
M = Dt, ae = Dt, Ir = Dt, Br = Dt;
|
|
1238
1255
|
Re = { type: xt };
|
|
1239
1256
|
N = { type: Q }, H = {
|
|
1240
1257
|
type: Q,
|
|
1241
1258
|
soft: !0
|
|
1242
|
-
},
|
|
1259
|
+
}, ht = [{
|
|
1243
1260
|
type: Q,
|
|
1244
1261
|
hard: !0
|
|
1245
|
-
}, Re],
|
|
1262
|
+
}, Re], Or = [{
|
|
1246
1263
|
type: Q,
|
|
1247
1264
|
hard: !0,
|
|
1248
1265
|
literal: !0
|
|
1249
1266
|
}, Re];
|
|
1250
|
-
|
|
1267
|
+
Rr = Object.freeze({
|
|
1251
1268
|
character: "'",
|
|
1252
1269
|
codePoint: 39
|
|
1253
|
-
}),
|
|
1270
|
+
}), qr = Object.freeze({
|
|
1254
1271
|
character: "\"",
|
|
1255
1272
|
codePoint: 34
|
|
1256
|
-
}), ts = Object.freeze({
|
|
1257
|
-
preferred: Ir,
|
|
1258
|
-
alternate: Br
|
|
1259
1273
|
}), es = Object.freeze({
|
|
1260
|
-
preferred:
|
|
1261
|
-
alternate:
|
|
1274
|
+
preferred: Rr,
|
|
1275
|
+
alternate: qr
|
|
1276
|
+
}), rs = Object.freeze({
|
|
1277
|
+
preferred: qr,
|
|
1278
|
+
alternate: Rr
|
|
1262
1279
|
});
|
|
1263
|
-
oe = rs;
|
|
1264
1280
|
He = class {
|
|
1265
1281
|
#t;
|
|
1266
1282
|
constructor(t) {
|
|
@@ -1302,7 +1318,7 @@ __esmMin((() => {
|
|
|
1302
1318
|
return this.trimEnd(this.trimStart(t));
|
|
1303
1319
|
}
|
|
1304
1320
|
split(t, r = !1) {
|
|
1305
|
-
let s = `[${Fe([...this.#t].join(""))}]+`, n = new RegExp(r ? `(${s})` : s
|
|
1321
|
+
let s = `[${Fe([...this.#t].join(""))}]+`, n = new RegExp(r ? `(${s})` : s);
|
|
1306
1322
|
return t.split(n);
|
|
1307
1323
|
}
|
|
1308
1324
|
hasWhitespaceCharacter(t) {
|
|
@@ -1349,9 +1365,7 @@ __esmMin((() => {
|
|
|
1349
1365
|
constructor(t, r, s = "type") {
|
|
1350
1366
|
super(`Unexpected ${r} node ${s}: ${JSON.stringify(t[s])}.`), this.node = t;
|
|
1351
1367
|
}
|
|
1352
|
-
},
|
|
1353
|
-
Vr.ignoredProperties = /* @__PURE__ */ new Set(["loc", "selfClosing"]);
|
|
1354
|
-
Fr = Vr;
|
|
1368
|
+
}, Fr = Ue;
|
|
1355
1369
|
Hr = as;
|
|
1356
1370
|
Rt = null;
|
|
1357
1371
|
os = 10;
|
|
@@ -1466,7 +1480,7 @@ __esmMin((() => {
|
|
|
1466
1480
|
89,
|
|
1467
1481
|
92,
|
|
1468
1482
|
93
|
|
1469
|
-
],
|
|
1483
|
+
], kr = [2, 51], Er = [1, 64], vr = [
|
|
1470
1484
|
67,
|
|
1471
1485
|
73,
|
|
1472
1486
|
75,
|
|
@@ -1477,7 +1491,7 @@ __esmMin((() => {
|
|
|
1477
1491
|
87,
|
|
1478
1492
|
88,
|
|
1479
1493
|
89
|
|
1480
|
-
],
|
|
1494
|
+
], wr = [
|
|
1481
1495
|
56,
|
|
1482
1496
|
67,
|
|
1483
1497
|
73,
|
|
@@ -1488,7 +1502,7 @@ __esmMin((() => {
|
|
|
1488
1502
|
87,
|
|
1489
1503
|
88,
|
|
1490
1504
|
89
|
|
1491
|
-
],
|
|
1505
|
+
], Tr = [1, 75], we = [1, 76], Te = [1, 83], gt = [
|
|
1492
1506
|
33,
|
|
1493
1507
|
67,
|
|
1494
1508
|
73,
|
|
@@ -1500,7 +1514,7 @@ __esmMin((() => {
|
|
|
1500
1514
|
87,
|
|
1501
1515
|
88,
|
|
1502
1516
|
89
|
|
1503
|
-
],
|
|
1517
|
+
], xr = [
|
|
1504
1518
|
23,
|
|
1505
1519
|
67,
|
|
1506
1520
|
73,
|
|
@@ -1511,7 +1525,7 @@ __esmMin((() => {
|
|
|
1511
1525
|
87,
|
|
1512
1526
|
88,
|
|
1513
1527
|
89
|
|
1514
|
-
],
|
|
1528
|
+
], Nr = [
|
|
1515
1529
|
67,
|
|
1516
1530
|
68,
|
|
1517
1531
|
73,
|
|
@@ -1522,7 +1536,7 @@ __esmMin((() => {
|
|
|
1522
1536
|
87,
|
|
1523
1537
|
88,
|
|
1524
1538
|
89
|
|
1525
|
-
],
|
|
1539
|
+
], bt = [33, 79], xe = [1, 134], Ar = [73, 81], Ne = {
|
|
1526
1540
|
trace: function() {},
|
|
1527
1541
|
yy: {},
|
|
1528
1542
|
symbols_: {
|
|
@@ -1769,7 +1783,7 @@ __esmMin((() => {
|
|
|
1769
1783
|
[80, 1],
|
|
1770
1784
|
[80, 2]
|
|
1771
1785
|
],
|
|
1772
|
-
performAction: function(b, S, y, m, w, l,
|
|
1786
|
+
performAction: function(b, S, y, m, w, l, yt) {
|
|
1773
1787
|
var u = l.length - 1;
|
|
1774
1788
|
switch (w) {
|
|
1775
1789
|
case 1: return l[u - 1];
|
|
@@ -2296,7 +2310,7 @@ __esmMin((() => {
|
|
|
2296
2310
|
89,
|
|
2297
2311
|
92,
|
|
2298
2312
|
93
|
|
2299
|
-
],
|
|
2313
|
+
], kr, { 74: Er }),
|
|
2300
2314
|
e(P, [2, 49], {
|
|
2301
2315
|
91: 65,
|
|
2302
2316
|
92: U,
|
|
@@ -2306,7 +2320,7 @@ __esmMin((() => {
|
|
|
2306
2320
|
73: E,
|
|
2307
2321
|
90: 66
|
|
2308
2322
|
},
|
|
2309
|
-
e(
|
|
2323
|
+
e(vr, [2, 106], { 76: 67 }),
|
|
2310
2324
|
{
|
|
2311
2325
|
20: 28,
|
|
2312
2326
|
49: 68,
|
|
@@ -2329,12 +2343,12 @@ __esmMin((() => {
|
|
|
2329
2343
|
89: g,
|
|
2330
2344
|
90: 41
|
|
2331
2345
|
},
|
|
2332
|
-
e(
|
|
2333
|
-
e(W,
|
|
2346
|
+
e(wr, [2, 88], { 54: 70 }),
|
|
2347
|
+
e(W, kr),
|
|
2334
2348
|
{
|
|
2335
2349
|
25: 71,
|
|
2336
2350
|
38: 73,
|
|
2337
|
-
39:
|
|
2351
|
+
39: Tr,
|
|
2338
2352
|
43: 74,
|
|
2339
2353
|
44: we,
|
|
2340
2354
|
45: 72,
|
|
@@ -2356,14 +2370,14 @@ __esmMin((() => {
|
|
|
2356
2370
|
26: 82,
|
|
2357
2371
|
47: Te
|
|
2358
2372
|
},
|
|
2359
|
-
e(
|
|
2373
|
+
e(gt, [2, 64], { 30: 84 }),
|
|
2360
2374
|
{
|
|
2361
2375
|
91: 61,
|
|
2362
2376
|
92: U,
|
|
2363
2377
|
93: C
|
|
2364
2378
|
},
|
|
2365
|
-
e(
|
|
2366
|
-
e(
|
|
2379
|
+
e(gt, [2, 70], { 35: 85 }),
|
|
2380
|
+
e(xr, [2, 56], { 21: 86 }),
|
|
2367
2381
|
e(z, [2, 96], { 62: 87 }),
|
|
2368
2382
|
e(s, [2, 22]),
|
|
2369
2383
|
{
|
|
@@ -2391,7 +2405,7 @@ __esmMin((() => {
|
|
|
2391
2405
|
90: 41
|
|
2392
2406
|
},
|
|
2393
2407
|
e($, [2, 105]),
|
|
2394
|
-
{ 74:
|
|
2408
|
+
{ 74: Er },
|
|
2395
2409
|
{
|
|
2396
2410
|
73: E,
|
|
2397
2411
|
90: 91
|
|
@@ -2444,7 +2458,7 @@ __esmMin((() => {
|
|
|
2444
2458
|
90: 41
|
|
2445
2459
|
},
|
|
2446
2460
|
{ 68: [1, 96] },
|
|
2447
|
-
e(
|
|
2461
|
+
e(Nr, [2, 100], { 69: 97 }),
|
|
2448
2462
|
{
|
|
2449
2463
|
20: 28,
|
|
2450
2464
|
49: 100,
|
|
@@ -2551,7 +2565,7 @@ __esmMin((() => {
|
|
|
2551
2565
|
89: g,
|
|
2552
2566
|
90: 41
|
|
2553
2567
|
},
|
|
2554
|
-
e(
|
|
2568
|
+
e(bt, [2, 66], {
|
|
2555
2569
|
71: 27,
|
|
2556
2570
|
20: 28,
|
|
2557
2571
|
64: 29,
|
|
@@ -2574,7 +2588,7 @@ __esmMin((() => {
|
|
|
2574
2588
|
88: p,
|
|
2575
2589
|
89: g
|
|
2576
2590
|
}),
|
|
2577
|
-
e(
|
|
2591
|
+
e(bt, [2, 72], {
|
|
2578
2592
|
71: 27,
|
|
2579
2593
|
20: 28,
|
|
2580
2594
|
64: 29,
|
|
@@ -2656,7 +2670,7 @@ __esmMin((() => {
|
|
|
2656
2670
|
e($, [2, 35]),
|
|
2657
2671
|
e(W, [2, 50]),
|
|
2658
2672
|
e(W, [2, 36]),
|
|
2659
|
-
e(
|
|
2673
|
+
e(vr, [2, 107]),
|
|
2660
2674
|
e(W, [2, 32]),
|
|
2661
2675
|
{
|
|
2662
2676
|
20: 28,
|
|
@@ -2683,19 +2697,19 @@ __esmMin((() => {
|
|
|
2683
2697
|
90: 41
|
|
2684
2698
|
},
|
|
2685
2699
|
{ 56: [1, 126] },
|
|
2686
|
-
e(
|
|
2700
|
+
e(wr, [2, 89]),
|
|
2687
2701
|
{ 56: [2, 91] },
|
|
2688
2702
|
e(s, [2, 13]),
|
|
2689
2703
|
{
|
|
2690
2704
|
38: 73,
|
|
2691
|
-
39:
|
|
2705
|
+
39: Tr,
|
|
2692
2706
|
43: 74,
|
|
2693
2707
|
44: we,
|
|
2694
2708
|
45: 128,
|
|
2695
2709
|
46: 127,
|
|
2696
2710
|
47: [2, 82]
|
|
2697
2711
|
},
|
|
2698
|
-
e(
|
|
2712
|
+
e(gt, [2, 76], { 40: 129 }),
|
|
2699
2713
|
{ 47: [2, 18] },
|
|
2700
2714
|
e(s, [2, 14]),
|
|
2701
2715
|
{ 33: [1, 130] },
|
|
@@ -2708,30 +2722,30 @@ __esmMin((() => {
|
|
|
2708
2722
|
78: 133,
|
|
2709
2723
|
79: xe
|
|
2710
2724
|
},
|
|
2711
|
-
e(
|
|
2712
|
-
e(
|
|
2725
|
+
e(gt, [2, 65]),
|
|
2726
|
+
e(bt, [2, 67]),
|
|
2713
2727
|
{
|
|
2714
2728
|
33: [2, 74],
|
|
2715
2729
|
37: 135,
|
|
2716
2730
|
78: 136,
|
|
2717
2731
|
79: xe
|
|
2718
2732
|
},
|
|
2719
|
-
e(
|
|
2720
|
-
e(
|
|
2733
|
+
e(gt, [2, 71]),
|
|
2734
|
+
e(bt, [2, 73]),
|
|
2721
2735
|
{ 23: [1, 137] },
|
|
2722
|
-
e(
|
|
2736
|
+
e(xr, [2, 57]),
|
|
2723
2737
|
{ 23: [2, 59] },
|
|
2724
2738
|
{ 33: [1, 138] },
|
|
2725
2739
|
e(z, [2, 97]),
|
|
2726
2740
|
{ 33: [2, 99] },
|
|
2727
2741
|
e(s, [2, 23]),
|
|
2728
2742
|
{ 68: [1, 139] },
|
|
2729
|
-
e(
|
|
2743
|
+
e(Nr, [2, 101]),
|
|
2730
2744
|
{ 68: [2, 103] },
|
|
2731
2745
|
e(s, [2, 24]),
|
|
2732
2746
|
{ 47: [2, 19] },
|
|
2733
2747
|
{ 47: [2, 83] },
|
|
2734
|
-
e(
|
|
2748
|
+
e(bt, [2, 78], {
|
|
2735
2749
|
71: 27,
|
|
2736
2750
|
20: 28,
|
|
2737
2751
|
64: 29,
|
|
@@ -2773,19 +2787,19 @@ __esmMin((() => {
|
|
|
2773
2787
|
78: 148,
|
|
2774
2788
|
79: xe
|
|
2775
2789
|
},
|
|
2776
|
-
e(
|
|
2777
|
-
e(
|
|
2790
|
+
e(gt, [2, 77]),
|
|
2791
|
+
e(bt, [2, 79]),
|
|
2778
2792
|
e(T, [2, 15]),
|
|
2779
2793
|
{
|
|
2780
2794
|
73: [1, 150],
|
|
2781
2795
|
81: [1, 149]
|
|
2782
2796
|
},
|
|
2783
|
-
e(
|
|
2797
|
+
e(Ar, [2, 108]),
|
|
2784
2798
|
e(D, [2, 16]),
|
|
2785
2799
|
{ 33: [1, 151] },
|
|
2786
2800
|
{ 33: [2, 81] },
|
|
2787
2801
|
{ 33: [2, 37] },
|
|
2788
|
-
e(
|
|
2802
|
+
e(Ar, [2, 109]),
|
|
2789
2803
|
e(T, [2, 17])
|
|
2790
2804
|
],
|
|
2791
2805
|
defaultActions: {
|
|
@@ -2817,24 +2831,24 @@ __esmMin((() => {
|
|
|
2817
2831
|
}
|
|
2818
2832
|
},
|
|
2819
2833
|
parse: function(b) {
|
|
2820
|
-
var S = this, y = [0], w = [null], l = [],
|
|
2834
|
+
var S = this, y = [0], w = [null], l = [], yt = this.table, u = "", Z = 0, Lt = 0, Pr = 0, Vn = 2, Cr = 1, Fn = l.slice.call(arguments, 1), x = Object.create(this.lexer), ot = { yy: {} };
|
|
2821
2835
|
for (var Pe in this.yy) Object.prototype.hasOwnProperty.call(this.yy, Pe) && (ot.yy[Pe] = this.yy[Pe]);
|
|
2822
2836
|
x.setInput(b, ot.yy), ot.yy.lexer = x, ot.yy.parser = this, typeof x.yylloc > "u" && (x.yylloc = {});
|
|
2823
2837
|
var Ce = x.yylloc;
|
|
2824
2838
|
l.push(Ce);
|
|
2825
|
-
var
|
|
2839
|
+
var Hn = x.options && x.options.ranges;
|
|
2826
2840
|
typeof ot.yy.parseError == "function" ? this.parseError = ot.yy.parseError : this.parseError = Object.getPrototypeOf(this).parseError;
|
|
2827
|
-
for (var
|
|
2841
|
+
for (var Un = function() {
|
|
2828
2842
|
var Y;
|
|
2829
|
-
return Y = x.lex() ||
|
|
2830
|
-
}, L, _e, lt, q, Le,
|
|
2831
|
-
if (lt = y[y.length - 1], this.defaultActions[lt] ? q = this.defaultActions[lt] : ((L === null || typeof L > "u") && (L =
|
|
2843
|
+
return Y = x.lex() || Cr, typeof Y != "number" && (Y = S.symbols_[Y] || Y), Y;
|
|
2844
|
+
}, L, _e, lt, q, Le, St = {}, jt, j, _r, Qt;;) {
|
|
2845
|
+
if (lt = y[y.length - 1], this.defaultActions[lt] ? q = this.defaultActions[lt] : ((L === null || typeof L > "u") && (L = Un()), q = yt[lt] && yt[lt][L]), typeof q > "u" || !q.length || !q[0]) {
|
|
2832
2846
|
var De = "";
|
|
2833
2847
|
Qt = [];
|
|
2834
|
-
for (jt in
|
|
2848
|
+
for (jt in yt[lt]) this.terminals_[jt] && jt > Vn && Qt.push("'" + this.terminals_[jt] + "'");
|
|
2835
2849
|
x.showPosition ? De = "Parse error on line " + (Z + 1) + `:
|
|
2836
2850
|
` + x.showPosition() + `
|
|
2837
|
-
Expecting ` + Qt.join(", ") + ", got '" + (this.terminals_[L] || L) + "'" : De = "Parse error on line " + (Z + 1) + ": Unexpected " + (L ==
|
|
2851
|
+
Expecting ` + Qt.join(", ") + ", got '" + (this.terminals_[L] || L) + "'" : De = "Parse error on line " + (Z + 1) + ": Unexpected " + (L == Cr ? "end of input" : "'" + (this.terminals_[L] || L) + "'"), this.parseError(De, {
|
|
2838
2852
|
text: x.match,
|
|
2839
2853
|
token: this.terminals_[L] || L,
|
|
2840
2854
|
line: x.yylineno,
|
|
@@ -2845,15 +2859,15 @@ Expecting ` + Qt.join(", ") + ", got '" + (this.terminals_[L] || L) + "'" : De =
|
|
|
2845
2859
|
if (q[0] instanceof Array && q.length > 1) throw new Error("Parse Error: multiple actions possible at state: " + lt + ", token: " + L);
|
|
2846
2860
|
switch (q[0]) {
|
|
2847
2861
|
case 1:
|
|
2848
|
-
y.push(L), w.push(x.yytext), l.push(x.yylloc), y.push(q[1]), L = null, _e ? (L = _e, _e = null) : (Lt = x.yyleng, u = x.yytext, Z = x.yylineno, Ce = x.yylloc,
|
|
2862
|
+
y.push(L), w.push(x.yytext), l.push(x.yylloc), y.push(q[1]), L = null, _e ? (L = _e, _e = null) : (Lt = x.yyleng, u = x.yytext, Z = x.yylineno, Ce = x.yylloc, Pr > 0 && Pr--);
|
|
2849
2863
|
break;
|
|
2850
2864
|
case 2:
|
|
2851
|
-
if (j = this.productions_[q[1]][1],
|
|
2865
|
+
if (j = this.productions_[q[1]][1], St.$ = w[w.length - j], St._$ = {
|
|
2852
2866
|
first_line: l[l.length - (j || 1)].first_line,
|
|
2853
2867
|
last_line: l[l.length - 1].last_line,
|
|
2854
2868
|
first_column: l[l.length - (j || 1)].first_column,
|
|
2855
2869
|
last_column: l[l.length - 1].last_column
|
|
2856
|
-
},
|
|
2870
|
+
}, Hn && (St._$.range = [l[l.length - (j || 1)].range[0], l[l.length - 1].range[1]]), Le = this.performAction.apply(St, [
|
|
2857
2871
|
u,
|
|
2858
2872
|
Lt,
|
|
2859
2873
|
Z,
|
|
@@ -2861,8 +2875,8 @@ Expecting ` + Qt.join(", ") + ", got '" + (this.terminals_[L] || L) + "'" : De =
|
|
|
2861
2875
|
q[1],
|
|
2862
2876
|
w,
|
|
2863
2877
|
l
|
|
2864
|
-
].concat(
|
|
2865
|
-
j && (y = y.slice(0, -1 * j * 2), w = w.slice(0, -1 * j), l = l.slice(0, -1 * j)), y.push(this.productions_[q[1]][0]), w.push(
|
|
2878
|
+
].concat(Fn)), typeof Le < "u") return Le;
|
|
2879
|
+
j && (y = y.slice(0, -1 * j * 2), w = w.slice(0, -1 * j), l = l.slice(0, -1 * j)), y.push(this.productions_[q[1]][0]), w.push(St.$), l.push(St._$), _r = yt[y[y.length - 2]][y[y.length - 1]], y.push(_r);
|
|
2866
2880
|
break;
|
|
2867
2881
|
case 3: return !0;
|
|
2868
2882
|
}
|
|
@@ -3275,7 +3289,7 @@ Expecting ` + Qt.join(", ") + ", got '" + (this.terminals_[L] || L) + "'" : De =
|
|
|
3275
3289
|
var a = s[n], o = this.accept(a);
|
|
3276
3290
|
if (o) {
|
|
3277
3291
|
var c = Ke(s, n, r), h = We(s, n, r), f = o.openStandalone && c, p = o.closeStandalone && h, g = o.inlineStandalone && c && h;
|
|
3278
|
-
o.close &&
|
|
3292
|
+
o.close && pt(s, n, !0), o.open && et(s, n, !0), t && g && (pt(s, n), et(s, n) && a.type === "PartialStatement" && (a.indent = /([ \t]+$)/.exec(s[n - 1].original)[1])), t && f && (pt((a.program || a.inverse).body), et(s, n)), t && p && (pt(s, n), et((a.inverse || a.program).body));
|
|
3279
3293
|
}
|
|
3280
3294
|
}
|
|
3281
3295
|
return e;
|
|
@@ -3290,9 +3304,9 @@ Expecting ` + Qt.join(", ") + ", got '" + (this.terminals_[L] || L) + "'" : De =
|
|
|
3290
3304
|
openStandalone: We(t.body),
|
|
3291
3305
|
closeStandalone: Ke((s || t).body)
|
|
3292
3306
|
};
|
|
3293
|
-
if (e.openStrip.close &&
|
|
3307
|
+
if (e.openStrip.close && pt(t.body, null, !0), r) {
|
|
3294
3308
|
var a = e.inverseStrip;
|
|
3295
|
-
a.open && et(t.body, null, !0), a.close &&
|
|
3309
|
+
a.open && et(t.body, null, !0), a.close && pt(s.body, null, !0), e.closeStrip.open && et(n.body, null, !0), !this.options.ignoreStandalone && Ke(t.body) && We(s.body) && (et(t.body), pt(s.body));
|
|
3296
3310
|
} else e.closeStrip.open && et(t.body, null, !0);
|
|
3297
3311
|
return i;
|
|
3298
3312
|
};
|
|
@@ -5899,8 +5913,9 @@ Expecting ` + Qt.join(", ") + ", got '" + (this.terminals_[L] || L) + "'" : De =
|
|
|
5899
5913
|
}
|
|
5900
5914
|
}, or = class e {
|
|
5901
5915
|
static synthetic(t) {
|
|
5916
|
+
let r = A.synthetic(t);
|
|
5902
5917
|
return new e({
|
|
5903
|
-
loc:
|
|
5918
|
+
loc: r,
|
|
5904
5919
|
chars: t
|
|
5905
5920
|
});
|
|
5906
5921
|
}
|
|
@@ -5934,8 +5949,8 @@ Expecting ` + Qt.join(", ") + ", got '" + (this.terminals_[L] || L) + "'" : De =
|
|
|
5934
5949
|
}
|
|
5935
5950
|
static forCharPositions(t, r, s) {
|
|
5936
5951
|
return new Ut(t, {
|
|
5937
|
-
start: new
|
|
5938
|
-
end: new
|
|
5952
|
+
start: new mt(t, r),
|
|
5953
|
+
end: new mt(t, s)
|
|
5939
5954
|
}).wrap();
|
|
5940
5955
|
}
|
|
5941
5956
|
static synthetic(t) {
|
|
@@ -6192,7 +6207,7 @@ Expecting ` + Qt.join(", ") + ", got '" + (this.terminals_[L] || L) + "'" : De =
|
|
|
6192
6207
|
if (r === null) return e.broken();
|
|
6193
6208
|
{
|
|
6194
6209
|
let s = r.offset + t;
|
|
6195
|
-
return r.source.validate(s) ? new
|
|
6210
|
+
return r.source.validate(s) ? new mt(r.source, s).wrap() : e.broken();
|
|
6196
6211
|
}
|
|
6197
6212
|
}
|
|
6198
6213
|
collapsed() {
|
|
@@ -6201,7 +6216,7 @@ Expecting ` + Qt.join(", ") + ", got '" + (this.terminals_[L] || L) + "'" : De =
|
|
|
6201
6216
|
toJSON() {
|
|
6202
6217
|
return this.data.toJSON();
|
|
6203
6218
|
}
|
|
6204
|
-
},
|
|
6219
|
+
}, mt = class {
|
|
6205
6220
|
constructor(t, r) {
|
|
6206
6221
|
this.source = t, this.charPos = r, this.kind = "CharPosition", this._locPos = null;
|
|
6207
6222
|
}
|
|
@@ -6228,13 +6243,13 @@ Expecting ` + Qt.join(", ") + ", got '" + (this.terminals_[L] || L) + "'" : De =
|
|
|
6228
6243
|
}
|
|
6229
6244
|
}, at = class {
|
|
6230
6245
|
constructor(t, r, s = null) {
|
|
6231
|
-
this.source = t, this.hbsPos = r, this.kind = "HbsPosition", this._charPos = s === null ? null : new
|
|
6246
|
+
this.source = t, this.hbsPos = r, this.kind = "HbsPosition", this._charPos = s === null ? null : new mt(t, s);
|
|
6232
6247
|
}
|
|
6233
6248
|
toCharPos() {
|
|
6234
6249
|
let t = this._charPos;
|
|
6235
6250
|
if (t === null) {
|
|
6236
6251
|
let r = this.source.charPosFor(this.hbsPos);
|
|
6237
|
-
this._charPos = t = r === null ? it : new
|
|
6252
|
+
this._charPos = t = r === null ? it : new mt(this.source, r);
|
|
6238
6253
|
}
|
|
6239
6254
|
return t === it ? null : t;
|
|
6240
6255
|
}
|
|
@@ -6263,7 +6278,7 @@ Expecting ` + Qt.join(", ") + ", got '" + (this.terminals_[L] || L) + "'" : De =
|
|
|
6263
6278
|
get offset() {
|
|
6264
6279
|
return null;
|
|
6265
6280
|
}
|
|
6266
|
-
}, Rs = ln(((e) => e.when("HbsPosition", "HbsPosition", (({ hbsPos: t }, { hbsPos: r }) => t.column === r.column && t.line === r.line)).when("CharPosition", "CharPosition", (({ charPos: t }, { charPos: r }) => t === r)).when("CharPosition", "HbsPosition", (({ offset: t }, r) => t === r.toCharPos()?.offset)).when("HbsPosition", "CharPosition", ((t, { offset: r }) => t.toCharPos()?.offset === r)).when("MATCH_ANY", "MATCH_ANY", (() => !1)))),
|
|
6281
|
+
}, Rs = ln(((e) => e.when("HbsPosition", "HbsPosition", (({ hbsPos: t }, { hbsPos: r }) => t.column === r.column && t.line === r.line)).when("CharPosition", "CharPosition", (({ charPos: t }, { charPos: r }) => t === r)).when("CharPosition", "HbsPosition", (({ offset: t }, r) => t === r.toCharPos()?.offset)).when("HbsPosition", "CharPosition", ((t, { offset: r }) => t.toCharPos()?.offset === r)).when("MATCH_ANY", "MATCH_ANY", (() => !1)))), ft = class e {
|
|
6267
6282
|
static from(t, r = {}) {
|
|
6268
6283
|
return new e(t, r.meta?.moduleName);
|
|
6269
6284
|
}
|
|
@@ -7471,7 +7486,8 @@ Expecting ` + Qt.join(", ") + ", got '" + (this.terminals_[L] || L) + "'" : De =
|
|
|
7471
7486
|
parse() {}
|
|
7472
7487
|
};
|
|
7473
7488
|
dn = Ur(be);
|
|
7474
|
-
|
|
7489
|
+
dt = (e) => e.loc.start.offset, Gt = (e) => e.loc.end.offset;
|
|
7490
|
+
dr.ignoredProperties = /* @__PURE__ */ new Set(["loc", "selfClosing"]);
|
|
7475
7491
|
Gs = new Set(on());
|
|
7476
7492
|
xn = 2;
|
|
7477
7493
|
ri = ({ path: e }, { path: t }) => [e, t].every((r) => r.type === "PathExpression" && r.head.type === "VarHead") && e.head.name === t.head.name;
|
|
@@ -7480,7 +7496,7 @@ Expecting ` + Qt.join(", ") + ", got '" + (this.terminals_[L] || L) + "'" : De =
|
|
|
7480
7496
|
"false",
|
|
7481
7497
|
"null",
|
|
7482
7498
|
"undefined"
|
|
7483
|
-
]), fi = (e, t) => t === 0 && e.startsWith("@") ? !1 : t !== 0 && pi.has(e) || /\s
|
|
7499
|
+
]), fi = (e, t) => t === 0 && e.startsWith("@") ? !1 : t !== 0 && pi.has(e) || /\s/.test(e) || /^\d/.test(e) || Array.prototype.some.call(e, (r) => hi.has(r));
|
|
7484
7500
|
_n = {
|
|
7485
7501
|
features: { experimental_frontMatterSupport: {
|
|
7486
7502
|
massageAstNode: !0,
|
|
@@ -7488,7 +7504,7 @@ Expecting ` + Qt.join(", ") + ", got '" + (this.terminals_[L] || L) + "'" : De =
|
|
|
7488
7504
|
print: !0
|
|
7489
7505
|
} },
|
|
7490
7506
|
print: js,
|
|
7491
|
-
massageAstNode:
|
|
7507
|
+
massageAstNode: dr,
|
|
7492
7508
|
hasPrettierIgnore: yn,
|
|
7493
7509
|
getVisitorKeys: dn,
|
|
7494
7510
|
embed: Hr
|
|
@@ -7504,30 +7520,31 @@ Expecting ` + Qt.join(", ") + ", got '" + (this.terminals_[L] || L) + "'" : De =
|
|
|
7504
7520
|
vscodeLanguageIds: ["handlebars"],
|
|
7505
7521
|
linguistLanguageId: 155
|
|
7506
7522
|
}];
|
|
7507
|
-
|
|
7508
|
-
Oe(
|
|
7523
|
+
Sr = {};
|
|
7524
|
+
Oe(Sr, { glimmer: () => Ai });
|
|
7509
7525
|
Dn = gi;
|
|
7510
|
-
On =
|
|
7526
|
+
On = bi;
|
|
7527
|
+
In = Symbol.for("PRETTIER_IS_FRONT_MATTER");
|
|
7511
7528
|
Wt = 3;
|
|
7512
|
-
|
|
7513
|
-
|
|
7529
|
+
Bn = Si;
|
|
7530
|
+
Ei = (e) => {
|
|
7514
7531
|
let { start: t, end: r } = e.loc;
|
|
7515
7532
|
t.offset = e.loc.getStart().offset, r.offset = e.loc.getEnd().offset;
|
|
7516
|
-
},
|
|
7533
|
+
}, vi = () => ({
|
|
7517
7534
|
name: "glimmerPrettierParsePlugin",
|
|
7518
7535
|
visitor: { All(e) {
|
|
7519
|
-
|
|
7536
|
+
Ei(e), ki(e);
|
|
7520
7537
|
} }
|
|
7521
|
-
}),
|
|
7538
|
+
}), wi = {
|
|
7522
7539
|
mode: "codemod",
|
|
7523
|
-
plugins: { ast: [
|
|
7540
|
+
plugins: { ast: [vi] }
|
|
7524
7541
|
};
|
|
7525
|
-
|
|
7526
|
-
parse:
|
|
7542
|
+
Ai = {
|
|
7543
|
+
parse: Ti,
|
|
7527
7544
|
astFormat: "glimmer",
|
|
7528
|
-
locStart:
|
|
7545
|
+
locStart: dt,
|
|
7529
7546
|
locEnd: Gt
|
|
7530
7547
|
};
|
|
7531
|
-
|
|
7548
|
+
Pi = { glimmer: _n };
|
|
7532
7549
|
}))();
|
|
7533
|
-
export {
|
|
7550
|
+
export { Rn as default, Ln as languages, Sr as parsers, Pi as printers };
|