@lingo.dev/_compiler 0.7.18 → 0.8.1
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/build/{acorn-U6XNAJW3.cjs → acorn-QFXI4BEA.cjs} +1 -1
- package/build/{angular-VRWVFJ3P.cjs → angular-OXTGJOFJ.cjs} +1 -1
- package/build/{babel-XUIPTQVD.cjs → babel-EJ7OIZP4.cjs} +1 -1
- package/build/{chunk-253QCR45.cjs → chunk-AKFJBAG4.cjs} +2 -2
- package/build/{chunk-77OA7KVH.cjs → chunk-AKV7BRP5.cjs} +42 -46
- package/build/{chunk-SRWLOKRJ.mjs → chunk-VG5I5JDL.mjs} +22 -26
- package/build/{estree-4GAWSYZ3.cjs → estree-NGS2AYBH.cjs} +1 -1
- package/build/{flow-E755VYYN.mjs → flow-DHPXOK5S.mjs} +8 -8
- package/build/{flow-Q7PWYY7R.cjs → flow-RDDDCZAV.cjs} +9 -9
- package/build/{glimmer-CMYCELEM.cjs → glimmer-CAMUE4OK.cjs} +35 -35
- package/build/{glimmer-E47Q6F77.mjs → glimmer-E3TJQSQ4.mjs} +34 -34
- package/build/{graphql-ATU26IOQ.cjs → graphql-YJNPH5D2.cjs} +1 -1
- package/build/{html-L366VYHK.cjs → html-TYMOOA3H.cjs} +1 -1
- package/build/index.cjs +57 -57
- package/build/index.mjs +35 -35
- package/build/lingo-turbopack-loader.cjs +4 -4
- package/build/lingo-turbopack-loader.mjs +1 -1
- package/build/{markdown-VRQCW4QH.cjs → markdown-EW4GGIPV.cjs} +5 -5
- package/build/{markdown-5YN6HSRL.mjs → markdown-WJTZKU3V.mjs} +4 -4
- package/build/{meriyah-QKHCCSUI.cjs → meriyah-OWUHWYCU.cjs} +1 -1
- package/build/{postcss-NNGTIRRJ.mjs → postcss-3TJJTQXP.mjs} +42 -42
- package/build/{postcss-PVIIR2IT.cjs → postcss-MQS25GNZ.cjs} +43 -43
- package/build/{typescript-VKODJRCW.cjs → typescript-Z5DYTVQY.cjs} +1 -1
- package/build/{yaml-6I36QTON.cjs → yaml-FHNA2CVI.cjs} +1 -1
- package/package.json +34 -34
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } }require('./chunk-
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } }require('./chunk-AKFJBAG4.cjs');
|
|
2
2
|
|
|
3
3
|
// ../../node_modules/.pnpm/prettier@3.6.2/node_modules/prettier/plugins/flow.mjs
|
|
4
4
|
var hA0 = Object.create;
|
|
@@ -1390,7 +1390,7 @@ var kY = bA0((mj) => {
|
|
|
1390
1390
|
var x = new ArrayBuffer(64), r = new Uint32Array(x), e = new Uint8Array(x);
|
|
1391
1391
|
return { len: 0, w: new Uint32Array([1732584193, 4023233417, 2562383102, 271733878]), b32: r, b8: e };
|
|
1392
1392
|
}
|
|
1393
|
-
var hd = /* @__PURE__ */ function() {
|
|
1393
|
+
var hd = /* @__PURE__ */ (function() {
|
|
1394
1394
|
function x(c, v) {
|
|
1395
1395
|
return c + v | 0;
|
|
1396
1396
|
}
|
|
@@ -1413,7 +1413,7 @@ var kY = bA0((mj) => {
|
|
|
1413
1413
|
var s = c[0], l = c[1], p = c[2], d = c[3];
|
|
1414
1414
|
s = e(s, l, p, d, v[0], 7, 3614090360), d = e(d, s, l, p, v[1], 12, 3905402710), p = e(p, d, s, l, v[2], 17, 606105819), l = e(l, p, d, s, v[3], 22, 3250441966), s = e(s, l, p, d, v[4], 7, 4118548399), d = e(d, s, l, p, v[5], 12, 1200080426), p = e(p, d, s, l, v[6], 17, 2821735955), l = e(l, p, d, s, v[7], 22, 4249261313), s = e(s, l, p, d, v[8], 7, 1770035416), d = e(d, s, l, p, v[9], 12, 2336552879), p = e(p, d, s, l, v[10], 17, 4294925233), l = e(l, p, d, s, v[11], 22, 2304563134), s = e(s, l, p, d, v[12], 7, 1804603682), d = e(d, s, l, p, v[13], 12, 4254626195), p = e(p, d, s, l, v[14], 17, 2792965006), l = e(l, p, d, s, v[15], 22, 1236535329), s = t(s, l, p, d, v[1], 5, 4129170786), d = t(d, s, l, p, v[6], 9, 3225465664), p = t(p, d, s, l, v[11], 14, 643717713), l = t(l, p, d, s, v[0], 20, 3921069994), s = t(s, l, p, d, v[5], 5, 3593408605), d = t(d, s, l, p, v[10], 9, 38016083), p = t(p, d, s, l, v[15], 14, 3634488961), l = t(l, p, d, s, v[4], 20, 3889429448), s = t(s, l, p, d, v[9], 5, 568446438), d = t(d, s, l, p, v[14], 9, 3275163606), p = t(p, d, s, l, v[3], 14, 4107603335), l = t(l, p, d, s, v[8], 20, 1163531501), s = t(s, l, p, d, v[13], 5, 2850285829), d = t(d, s, l, p, v[2], 9, 4243563512), p = t(p, d, s, l, v[7], 14, 1735328473), l = t(l, p, d, s, v[12], 20, 2368359562), s = u(s, l, p, d, v[5], 4, 4294588738), d = u(d, s, l, p, v[8], 11, 2272392833), p = u(p, d, s, l, v[11], 16, 1839030562), l = u(l, p, d, s, v[14], 23, 4259657740), s = u(s, l, p, d, v[1], 4, 2763975236), d = u(d, s, l, p, v[4], 11, 1272893353), p = u(p, d, s, l, v[7], 16, 4139469664), l = u(l, p, d, s, v[10], 23, 3200236656), s = u(s, l, p, d, v[13], 4, 681279174), d = u(d, s, l, p, v[0], 11, 3936430074), p = u(p, d, s, l, v[3], 16, 3572445317), l = u(l, p, d, s, v[6], 23, 76029189), s = u(s, l, p, d, v[9], 4, 3654602809), d = u(d, s, l, p, v[12], 11, 3873151461), p = u(p, d, s, l, v[15], 16, 530742520), l = u(l, p, d, s, v[2], 23, 3299628645), s = i(s, l, p, d, v[0], 6, 4096336452), d = i(d, s, l, p, v[7], 10, 1126891415), p = i(p, d, s, l, v[14], 15, 2878612391), l = i(l, p, d, s, v[5], 21, 4237533241), s = i(s, l, p, d, v[12], 6, 1700485571), d = i(d, s, l, p, v[3], 10, 2399980690), p = i(p, d, s, l, v[10], 15, 4293915773), l = i(l, p, d, s, v[1], 21, 2240044497), s = i(s, l, p, d, v[8], 6, 1873313359), d = i(d, s, l, p, v[15], 10, 4264355552), p = i(p, d, s, l, v[6], 15, 2734768916), l = i(l, p, d, s, v[13], 21, 1309151649), s = i(s, l, p, d, v[4], 6, 4149444226), d = i(d, s, l, p, v[11], 10, 3174756917), p = i(p, d, s, l, v[2], 15, 718787259), l = i(l, p, d, s, v[9], 21, 3951481745), c[0] = x(s, c[0]), c[1] = x(l, c[1]), c[2] = x(p, c[2]), c[3] = x(d, c[3]);
|
|
1415
1415
|
};
|
|
1416
|
-
}();
|
|
1416
|
+
})();
|
|
1417
1417
|
function NJ(x, r, e) {
|
|
1418
1418
|
var t = x.len & co, u = 0;
|
|
1419
1419
|
if (x.len += e, t) {
|
|
@@ -11857,7 +11857,7 @@ var kY = bA0((mj) => {
|
|
|
11857
11857
|
}
|
|
11858
11858
|
}
|
|
11859
11859
|
mr(r);
|
|
11860
|
-
var x0 = function(A) {
|
|
11860
|
+
var x0 = (function(A) {
|
|
11861
11861
|
var V = IT0(y(A));
|
|
11862
11862
|
if (31 < V >>> 0) return w(A);
|
|
11863
11863
|
switch (V) {
|
|
@@ -12264,7 +12264,7 @@ var kY = bA0((mj) => {
|
|
|
12264
12264
|
default:
|
|
12265
12265
|
return 35;
|
|
12266
12266
|
}
|
|
12267
|
-
}(r);
|
|
12267
|
+
})(r);
|
|
12268
12268
|
if (67 < x0 >>> 0) return Sx(Bn0);
|
|
12269
12269
|
var i0 = x0;
|
|
12270
12270
|
if (34 > i0) switch (i0) {
|
|
@@ -13513,7 +13513,7 @@ var kY = bA0((mj) => {
|
|
|
13513
13513
|
}
|
|
13514
13514
|
}
|
|
13515
13515
|
mr(r);
|
|
13516
|
-
var i0 = function(_) {
|
|
13516
|
+
var i0 = (function(_) {
|
|
13517
13517
|
var $ = PT0(y(_));
|
|
13518
13518
|
if (36 < $ >>> 0) return w(_);
|
|
13519
13519
|
switch ($) {
|
|
@@ -13979,7 +13979,7 @@ var kY = bA0((mj) => {
|
|
|
13979
13979
|
default:
|
|
13980
13980
|
return 89;
|
|
13981
13981
|
}
|
|
13982
|
-
}(r);
|
|
13982
|
+
})(r);
|
|
13983
13983
|
if (99 < i0 >>> 0) return Sx(Kc0);
|
|
13984
13984
|
var f0 = i0;
|
|
13985
13985
|
if (50 > f0) switch (f0) {
|
|
@@ -21086,7 +21086,7 @@ var kY = bA0((mj) => {
|
|
|
21086
21086
|
break x;
|
|
21087
21087
|
}
|
|
21088
21088
|
let G0 = v;
|
|
21089
|
-
var s = function(k0, G) {
|
|
21089
|
+
var s = (function(k0, G) {
|
|
21090
21090
|
for (var S0 = k0, Z0 = G; ; ) {
|
|
21091
21091
|
var N0 = M(x);
|
|
21092
21092
|
x: if (typeof N0 != "number" && N0[0] === 4) {
|
|
@@ -21118,7 +21118,7 @@ var kY = bA0((mj) => {
|
|
|
21118
21118
|
}
|
|
21119
21119
|
return [0, S0, Z0];
|
|
21120
21120
|
}
|
|
21121
|
-
}(e, i), l = s[2], p = s[1], d = M(x);
|
|
21121
|
+
})(e, i), l = s[2], p = s[1], d = M(x);
|
|
21122
21122
|
x: {
|
|
21123
21123
|
r: if (typeof d == "number") {
|
|
21124
21124
|
var T = d - 17 | 0;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } var _class; var _class2;require('./chunk-
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } var _class; var _class2;require('./chunk-AKFJBAG4.cjs');
|
|
2
2
|
|
|
3
3
|
// ../../node_modules/.pnpm/prettier@3.6.2/node_modules/prettier/plugins/glimmer.mjs
|
|
4
4
|
var zs = Object.defineProperty;
|
|
@@ -578,7 +578,7 @@ var ps = console;
|
|
|
578
578
|
function ms(e5, t = "unexpected unreachable branch") {
|
|
579
579
|
throw ps.log("unreachable", e5), ps.log(`${t} :: ${JSON.stringify(e5)} (${e5})`), new Error("code reached unreachable");
|
|
580
580
|
}
|
|
581
|
-
var In = function() {
|
|
581
|
+
var In = (function() {
|
|
582
582
|
var e5 = function(it, d, k, g) {
|
|
583
583
|
for (k = k || {}, g = it.length; g--; k[it[g]] = d) ;
|
|
584
584
|
return k;
|
|
@@ -767,7 +767,7 @@ Expecting ` + pe.join(", ") + ", got '" + (this.terminals_[O] || O) + "'" : qe =
|
|
|
767
767
|
}
|
|
768
768
|
}
|
|
769
769
|
return true;
|
|
770
|
-
} }, Vs = /* @__PURE__ */ function() {
|
|
770
|
+
} }, Vs = /* @__PURE__ */ (function() {
|
|
771
771
|
var it = { EOF: 1, parseError: function(k, g) {
|
|
772
772
|
if (this.yy.parser) this.yy.parser.parseError(k, g);
|
|
773
773
|
else throw new Error(k);
|
|
@@ -957,13 +957,13 @@ Expecting ` + pe.join(", ") + ", got '" + (this.terminals_[O] || O) + "'" : qe =
|
|
|
957
957
|
}
|
|
958
958
|
}, rules: [/^(?:[^\x00]*?(?=(\{\{)))/, /^(?:[^\x00]+)/, /^(?:[^\x00]{2,}?(?=(\{\{|\\\{\{|\\\\\{\{|$)))/, /^(?:\{\{\{\{(?=[^/]))/, /^(?:\{\{\{\{\/[^\s!"#%-,\.\/;->@\[-\^`\{-~]+(?=[=}\s\/.])\}\}\}\})/, /^(?:[^\x00]+?(?=(\{\{\{\{)))/, /^(?:[\s\S]*?--(~)?\}\})/, /^(?:\()/, /^(?:\))/, /^(?:\{\{\{\{)/, /^(?:\}\}\}\})/, /^(?:\{\{(~)?>)/, /^(?:\{\{(~)?#>)/, /^(?:\{\{(~)?#\*?)/, /^(?:\{\{(~)?\/)/, /^(?:\{\{(~)?\^\s*(~)?\}\})/, /^(?:\{\{(~)?\s*else\s*(~)?\}\})/, /^(?:\{\{(~)?\^)/, /^(?:\{\{(~)?\s*else\b)/, /^(?:\{\{(~)?\{)/, /^(?:\{\{(~)?&)/, /^(?:\{\{(~)?!--)/, /^(?:\{\{(~)?![\s\S]*?\}\})/, /^(?:\{\{(~)?\*?)/, /^(?:=)/, /^(?:\.\.)/, /^(?:\.(?=([=~}\s\/.)|])))/, /^(?:[\/.])/, /^(?:\s+)/, /^(?:\}(~)?\}\})/, /^(?:(~)?\}\})/, /^(?:"(\\["]|[^"])*")/, /^(?:'(\\[']|[^'])*')/, /^(?:@)/, /^(?:true(?=([~}\s)])))/, /^(?:false(?=([~}\s)])))/, /^(?:undefined(?=([~}\s)])))/, /^(?:null(?=([~}\s)])))/, /^(?:-?[0-9]+(?:\.[0-9]+)?(?=([~}\s)])))/, /^(?:as\s+\|)/, /^(?:\|)/, /^(?:([^\s!"#%-,\.\/;->@\[-\^`\{-~]+(?=([=~}\s\/.)|]))))/, /^(?:\[(\\\]|[^\]])*\])/, /^(?:.)/, /^(?:$)/], conditions: { mu: { rules: [7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44], inclusive: false }, emu: { rules: [2], inclusive: false }, com: { rules: [6], inclusive: false }, raw: { rules: [3, 4, 5], inclusive: false }, INITIAL: { rules: [0, 1, 44], inclusive: true } } };
|
|
959
959
|
return it;
|
|
960
|
-
}();
|
|
960
|
+
})();
|
|
961
961
|
De.lexer = Vs;
|
|
962
962
|
function _e() {
|
|
963
963
|
this.yy = {};
|
|
964
964
|
}
|
|
965
965
|
return _e.prototype = De, De.Parser = _e, new _e();
|
|
966
|
-
}();
|
|
966
|
+
})();
|
|
967
967
|
var Se = In;
|
|
968
968
|
var tr = ["description", "fileName", "lineNumber", "endLineNumber", "message", "name", "number", "stack"];
|
|
969
969
|
function er(e5, t) {
|
|
@@ -1168,7 +1168,7 @@ var Es = { Aacute: "\xC1", aacute: "\xE1", Abreve: "\u0102", abreve: "\u0103", a
|
|
|
1168
1168
|
var Gn = /^#[xX]([A-Fa-f0-9]+)$/;
|
|
1169
1169
|
var Kn = /^#([0-9]+)$/;
|
|
1170
1170
|
var Wn = /^([A-Za-z0-9]+)$/;
|
|
1171
|
-
var or = function() {
|
|
1171
|
+
var or = (function() {
|
|
1172
1172
|
function e5(t) {
|
|
1173
1173
|
this.named = t;
|
|
1174
1174
|
}
|
|
@@ -1180,7 +1180,7 @@ var or = function() {
|
|
|
1180
1180
|
if (r = t.match(Wn), r) return this.named[r[1]];
|
|
1181
1181
|
}
|
|
1182
1182
|
}, e5;
|
|
1183
|
-
}();
|
|
1183
|
+
})();
|
|
1184
1184
|
var jn = /[\t\n\f ]/;
|
|
1185
1185
|
var Qn = /[A-Za-z]/;
|
|
1186
1186
|
var Jn = /\r\n?/g;
|
|
@@ -1194,7 +1194,7 @@ function $n(e5) {
|
|
|
1194
1194
|
return e5.replace(Jn, `
|
|
1195
1195
|
`);
|
|
1196
1196
|
}
|
|
1197
|
-
var lr = function() {
|
|
1197
|
+
var lr = (function() {
|
|
1198
1198
|
function e5(t, r, s) {
|
|
1199
1199
|
s === void 0 && (s = "precompile"), this.delegate = t, this.entityParser = r, this.mode = s, this.state = "beforeData", this.line = -1, this.column = -1, this.input = "", this.index = -1, this.tagNameBuffer = "", this.states = { beforeData: function() {
|
|
1200
1200
|
var n = this.peek();
|
|
@@ -1358,8 +1358,8 @@ var lr = function() {
|
|
|
1358
1358
|
var t = this.tagNameBuffer;
|
|
1359
1359
|
return t === "title" && this.input.substring(this.index, this.index + 8) !== "</title>" || t === "style" && this.input.substring(this.index, this.index + 8) !== "</style>" || t === "script" && this.input.substring(this.index, this.index + 9) !== "</script>";
|
|
1360
1360
|
}, e5;
|
|
1361
|
-
}();
|
|
1362
|
-
var so = function() {
|
|
1361
|
+
})();
|
|
1362
|
+
var so = (function() {
|
|
1363
1363
|
function e5(t, r) {
|
|
1364
1364
|
r === void 0 && (r = {}), this.options = r, this.token = null, this.startLine = 1, this.startColumn = 0, this.tokens = [], this.tokenizer = new lr(this, t, r.mode), this._currentAttribute = void 0;
|
|
1365
1365
|
}
|
|
@@ -1431,7 +1431,7 @@ var so = function() {
|
|
|
1431
1431
|
}, e5.prototype.reportSyntaxError = function(t) {
|
|
1432
1432
|
this.current().syntaxError = t;
|
|
1433
1433
|
}, e5;
|
|
1434
|
-
}();
|
|
1434
|
+
})();
|
|
1435
1435
|
var Ne = { Append: 1, TrustingAppend: 2, Comment: 3, Modifier: 4, StrictModifier: 5, Block: 6, StrictBlock: 7, Component: 8, OpenElement: 10, OpenElementWithSplat: 11, FlushElement: 12, CloseElement: 13, StaticAttr: 14, DynamicAttr: 15, ComponentAttr: 16, AttrSplat: 17, Yield: 18, DynamicArg: 20, StaticArg: 21, TrustingDynamicAttr: 22, TrustingComponentAttr: 23, StaticComponentAttr: 24, Debugger: 26, Undefined: 27, Call: 28, Concat: 29, GetSymbol: 30, GetLexicalSymbol: 32, GetStrictKeyword: 31, GetFreeAsComponentOrHelperHead: 35, GetFreeAsHelperHead: 37, GetFreeAsModifierHead: 38, GetFreeAsComponentHead: 39, InElement: 40, If: 41, Each: 42, Let: 44, WithDynamicVars: 45, InvokeComponent: 46, HasBlock: 48, HasBlockParams: 49, Curry: 50, Not: 51, IfInline: 52, GetDynamicVar: 53, Log: 54 };
|
|
1436
1436
|
function vs(e5) {
|
|
1437
1437
|
return function(t) {
|
|
@@ -1484,7 +1484,7 @@ var Pe = class {
|
|
|
1484
1484
|
this._map.set(t, r);
|
|
1485
1485
|
}
|
|
1486
1486
|
match(t) {
|
|
1487
|
-
let r = function(a) {
|
|
1487
|
+
let r = (function(a) {
|
|
1488
1488
|
switch (a) {
|
|
1489
1489
|
case "Broken":
|
|
1490
1490
|
case "InternalsSynthetic":
|
|
@@ -1493,7 +1493,7 @@ var Pe = class {
|
|
|
1493
1493
|
default:
|
|
1494
1494
|
return a;
|
|
1495
1495
|
}
|
|
1496
|
-
}(t), s = [], n = this._map.get(r), i = this._map.get("MATCH_ANY");
|
|
1496
|
+
})(t), s = [], n = this._map.get(r), i = this._map.get("MATCH_ANY");
|
|
1497
1497
|
return n && s.push(n), i && s.push(i), s;
|
|
1498
1498
|
}
|
|
1499
1499
|
constructor() {
|
|
@@ -1944,13 +1944,13 @@ function E(e5, t) {
|
|
|
1944
1944
|
return c.name = "SyntaxError", c.location = t, c.code = a, c;
|
|
1945
1945
|
}
|
|
1946
1946
|
var ii = { Template: ["body"], Block: ["body"], MustacheStatement: ["path", "params", "hash"], BlockStatement: ["path", "params", "hash", "program", "inverse"], ElementModifierStatement: ["path", "params", "hash"], CommentStatement: [], MustacheCommentStatement: [], ElementNode: ["attributes", "modifiers", "children", "comments"], AttrNode: ["value"], TextNode: [], ConcatStatement: ["parts"], SubExpression: ["path", "params", "hash"], PathExpression: [], StringLiteral: [], BooleanLiteral: [], NumberLiteral: [], NullLiteral: [], UndefinedLiteral: [], Hash: ["pairs"], HashPair: ["value"] };
|
|
1947
|
-
var Nr = function() {
|
|
1947
|
+
var Nr = (function() {
|
|
1948
1948
|
function e5(t, r, s, n) {
|
|
1949
1949
|
let i = Error.call(this, t);
|
|
1950
1950
|
this.key = n, this.message = t, this.node = r, this.parent = s, i.stack && (this.stack = i.stack);
|
|
1951
1951
|
}
|
|
1952
1952
|
return e5.prototype = Object.create(Error.prototype), e5.prototype.constructor = e5, e5;
|
|
1953
|
-
}();
|
|
1953
|
+
})();
|
|
1954
1954
|
function ws(e5, t, r) {
|
|
1955
1955
|
return new Nr("Cannot remove a node unless it is part of an array", e5, t, r);
|
|
1956
1956
|
}
|
|
@@ -1986,11 +1986,11 @@ function _s(e5) {
|
|
|
1986
1986
|
return typeof e5 == "function" ? void 0 : e5.exit;
|
|
1987
1987
|
}
|
|
1988
1988
|
function Ae(e5, t) {
|
|
1989
|
-
let r, s, n, { node: i, parent: a, parentKey: o } = t, c = function(h, p) {
|
|
1989
|
+
let r, s, n, { node: i, parent: a, parentKey: o } = t, c = (function(h, p) {
|
|
1990
1990
|
if (h.Program && (p === "Template" && !h.Template || p === "Block" && !h.Block)) return h.Program;
|
|
1991
1991
|
let m = h[p];
|
|
1992
1992
|
return m !== void 0 ? m : h.All;
|
|
1993
|
-
}(e5, i.type);
|
|
1993
|
+
})(e5, i.type);
|
|
1994
1994
|
if (c !== void 0 && (r = Ds(c), s = _s(c)), r !== void 0 && (n = r(i, t)), n != null) {
|
|
1995
1995
|
if (JSON.stringify(i) !== JSON.stringify(n)) return Array.isArray(n) ? (Os(e5, n, a, o), n) : Ae(e5, new zt(n, a, o)) || n;
|
|
1996
1996
|
n = void 0;
|
|
@@ -2006,30 +2006,30 @@ function Ns(e5, t, r) {
|
|
|
2006
2006
|
e5[t] = r;
|
|
2007
2007
|
}
|
|
2008
2008
|
function oi(e5, t, r, s) {
|
|
2009
|
-
let n, i, { node: a } = r, o = function(c, h) {
|
|
2009
|
+
let n, i, { node: a } = r, o = (function(c, h) {
|
|
2010
2010
|
return c[h];
|
|
2011
|
-
}(a, s);
|
|
2011
|
+
})(a, s);
|
|
2012
2012
|
if (o) {
|
|
2013
2013
|
if (t !== void 0) {
|
|
2014
|
-
let c = function(h, p) {
|
|
2014
|
+
let c = (function(h, p) {
|
|
2015
2015
|
let m = typeof h != "function" ? h.keys : void 0;
|
|
2016
2016
|
if (m === void 0) return;
|
|
2017
2017
|
let S = m[p];
|
|
2018
2018
|
return S !== void 0 ? S : m.All;
|
|
2019
|
-
}(t, s);
|
|
2019
|
+
})(t, s);
|
|
2020
2020
|
c !== void 0 && (n = Ds(c), i = _s(c));
|
|
2021
2021
|
}
|
|
2022
2022
|
if (n !== void 0 && n(a, s) !== void 0) throw Ts(a, s);
|
|
2023
2023
|
if (Array.isArray(o)) Os(e5, o, r, s);
|
|
2024
2024
|
else {
|
|
2025
2025
|
let c = Ae(e5, new zt(o, r, s));
|
|
2026
|
-
c !== void 0 && function(h, p, m, S) {
|
|
2026
|
+
c !== void 0 && (function(h, p, m, S) {
|
|
2027
2027
|
if (S === null) throw ws(m, h, p);
|
|
2028
2028
|
if (Array.isArray(S)) {
|
|
2029
2029
|
if (S.length !== 1) throw S.length === 0 ? ws(m, h, p) : ai(m, h, p);
|
|
2030
2030
|
Ns(h, p, S[0]);
|
|
2031
2031
|
} else Ns(h, p, S);
|
|
2032
|
-
}(a, s, o, c);
|
|
2032
|
+
})(a, s, o, c);
|
|
2033
2033
|
}
|
|
2034
2034
|
if (i !== void 0 && i(a, s) !== void 0) throw Ts(a, s);
|
|
2035
2035
|
}
|
|
@@ -2077,10 +2077,10 @@ function ct(e5, t) {
|
|
|
2077
2077
|
return f.path({ head: f.head({ original: i, loc: r.sliceStartChars({ chars: i.length }) }), tail: a, loc: T(t || null) });
|
|
2078
2078
|
}
|
|
2079
2079
|
}
|
|
2080
|
-
let { head: s, tail: n } = function(i, a) {
|
|
2080
|
+
let { head: s, tail: n } = (function(i, a) {
|
|
2081
2081
|
let [o, ...c] = i.split("."), h = f.head({ original: o, loc: T(a || null) });
|
|
2082
2082
|
return f.path({ head: h, tail: c, loc: T(a || null) });
|
|
2083
|
-
}(e5, r);
|
|
2083
|
+
})(e5, r);
|
|
2084
2084
|
return f.path({ head: s, tail: n, loc: r });
|
|
2085
2085
|
}
|
|
2086
2086
|
function xe(e5, t, r) {
|
|
@@ -2169,14 +2169,14 @@ var f = new class {
|
|
|
2169
2169
|
return { type: "Template", body: e5, blockParams: t, loc: r };
|
|
2170
2170
|
}
|
|
2171
2171
|
mustache({ path: e5, params: t, hash: r, trusting: s, loc: n, strip: i = Ce }) {
|
|
2172
|
-
return function({ path: a, params: o, hash: c, trusting: h, strip: p, loc: m }) {
|
|
2172
|
+
return (function({ path: a, params: o, hash: c, trusting: h, strip: p, loc: m }) {
|
|
2173
2173
|
let S = { type: "MustacheStatement", path: a, params: o, hash: c, trusting: h, strip: p, loc: m };
|
|
2174
2174
|
return Object.defineProperty(S, "escaped", { enumerable: false, get() {
|
|
2175
2175
|
return !this.trusting;
|
|
2176
2176
|
}, set(y) {
|
|
2177
2177
|
this.trusting = !y;
|
|
2178
2178
|
} }), S;
|
|
2179
|
-
}({ path: e5, params: t, hash: r, trusting: s, strip: i, loc: n });
|
|
2179
|
+
})({ path: e5, params: t, hash: r, trusting: s, strip: i, loc: n });
|
|
2180
2180
|
}
|
|
2181
2181
|
block({ path: e5, params: t, hash: r, defaultBlock: s, elseBlock: n = null, loc: i, openStrip: a = Ce, inverseStrip: o = Ce, closeStrip: c = Ce }) {
|
|
2182
2182
|
return { type: "BlockStatement", path: e5, params: t, hash: r, program: s, inverse: n, loc: i, openStrip: a, inverseStrip: o, closeStrip: c };
|
|
@@ -2219,7 +2219,7 @@ var f = new class {
|
|
|
2219
2219
|
return { type: "SubExpression", path: e5, params: t, hash: r, loc: s };
|
|
2220
2220
|
}
|
|
2221
2221
|
path({ head: e5, tail: t, loc: r }) {
|
|
2222
|
-
return function({ head: s, tail: n, loc: i }) {
|
|
2222
|
+
return (function({ head: s, tail: n, loc: i }) {
|
|
2223
2223
|
let a = { type: "PathExpression", head: s, tail: n, get original() {
|
|
2224
2224
|
return [this.head.original, ...this.tail].join(".");
|
|
2225
2225
|
}, set original(o) {
|
|
@@ -2238,7 +2238,7 @@ var f = new class {
|
|
|
2238
2238
|
} }), Object.defineProperty(a, "data", { enumerable: false, get() {
|
|
2239
2239
|
return this.head.type === "AtHead";
|
|
2240
2240
|
} }), a;
|
|
2241
|
-
}({ head: e5, tail: t, loc: r });
|
|
2241
|
+
})({ head: e5, tail: t, loc: r });
|
|
2242
2242
|
}
|
|
2243
2243
|
head({ original: e5, loc: t }) {
|
|
2244
2244
|
return e5 === "this" ? this.this({ loc: t }) : e5[0] === "@" ? this.atName({ name: e5, loc: t }) : this.var({ name: e5, loc: t });
|
|
@@ -2279,14 +2279,14 @@ var f = new class {
|
|
|
2279
2279
|
return { type: "HashPair", key: e5, value: t, loc: r };
|
|
2280
2280
|
}
|
|
2281
2281
|
literal({ type: e5, value: t, loc: r }) {
|
|
2282
|
-
return function({ type: s, value: n, loc: i }) {
|
|
2282
|
+
return (function({ type: s, value: n, loc: i }) {
|
|
2283
2283
|
let a = { type: s, value: n, loc: i };
|
|
2284
2284
|
return Object.defineProperty(a, "original", { enumerable: false, get() {
|
|
2285
2285
|
return this.value;
|
|
2286
2286
|
}, set(o) {
|
|
2287
2287
|
this.value = o;
|
|
2288
2288
|
} }), a;
|
|
2289
|
-
}({ type: e5, value: t, loc: r });
|
|
2289
|
+
})({ type: e5, value: t, loc: r });
|
|
2290
2290
|
}
|
|
2291
2291
|
}();
|
|
2292
2292
|
var Sr = class {
|
|
@@ -2436,12 +2436,12 @@ var Er = class extends Sr {
|
|
|
2436
2436
|
}
|
|
2437
2437
|
ContentStatement(t) {
|
|
2438
2438
|
(function(r, s) {
|
|
2439
|
-
let n = s.loc.start.line, i = s.loc.start.column, a = function(o, c) {
|
|
2439
|
+
let n = s.loc.start.line, i = s.loc.start.column, a = (function(o, c) {
|
|
2440
2440
|
if (c === "") return { lines: o.split(`
|
|
2441
2441
|
`).length - 1, columns: 0 };
|
|
2442
2442
|
let [h] = o.split(c), p = h.split(/\n/u), m = p.length - 1;
|
|
2443
2443
|
return { lines: m, columns: p[m].length };
|
|
2444
|
-
}(s.original, s.value);
|
|
2444
|
+
})(s.original, s.value);
|
|
2445
2445
|
n += a.lines, a.lines ? i = a.columns : i += a.columns, r.line = n, r.column = i;
|
|
2446
2446
|
})(this.tokenizer, t), this.tokenizer.tokenizePart(t.value), this.tokenizer.flushData();
|
|
2447
2447
|
}
|
|
@@ -2550,9 +2550,9 @@ function pr(e5, t) {
|
|
|
2550
2550
|
function fr(e5, t) {
|
|
2551
2551
|
let { path: r, params: s, hash: n, loc: i } = t;
|
|
2552
2552
|
if (Bs(r)) {
|
|
2553
|
-
let o = `{{${function(c) {
|
|
2553
|
+
let o = `{{${(function(c) {
|
|
2554
2554
|
return c.type === "UndefinedLiteral" ? "undefined" : JSON.stringify(c.value);
|
|
2555
|
-
}(r)}}}`;
|
|
2555
|
+
})(r)}}}`;
|
|
2556
2556
|
throw E(`In <${e5.name} ... ${o} ..., ${o} is not a valid modifier`, t.loc);
|
|
2557
2557
|
}
|
|
2558
2558
|
let a = f.elementModifier({ path: r, params: s, hash: n, loc: i });
|
|
@@ -578,7 +578,7 @@ var ps = console;
|
|
|
578
578
|
function ms(e5, t = "unexpected unreachable branch") {
|
|
579
579
|
throw ps.log("unreachable", e5), ps.log(`${t} :: ${JSON.stringify(e5)} (${e5})`), new Error("code reached unreachable");
|
|
580
580
|
}
|
|
581
|
-
var In = function() {
|
|
581
|
+
var In = (function() {
|
|
582
582
|
var e5 = function(it, d, k, g) {
|
|
583
583
|
for (k = k || {}, g = it.length; g--; k[it[g]] = d) ;
|
|
584
584
|
return k;
|
|
@@ -767,7 +767,7 @@ Expecting ` + pe.join(", ") + ", got '" + (this.terminals_[O] || O) + "'" : qe =
|
|
|
767
767
|
}
|
|
768
768
|
}
|
|
769
769
|
return true;
|
|
770
|
-
} }, Vs = /* @__PURE__ */ function() {
|
|
770
|
+
} }, Vs = /* @__PURE__ */ (function() {
|
|
771
771
|
var it = { EOF: 1, parseError: function(k, g) {
|
|
772
772
|
if (this.yy.parser) this.yy.parser.parseError(k, g);
|
|
773
773
|
else throw new Error(k);
|
|
@@ -957,13 +957,13 @@ Expecting ` + pe.join(", ") + ", got '" + (this.terminals_[O] || O) + "'" : qe =
|
|
|
957
957
|
}
|
|
958
958
|
}, rules: [/^(?:[^\x00]*?(?=(\{\{)))/, /^(?:[^\x00]+)/, /^(?:[^\x00]{2,}?(?=(\{\{|\\\{\{|\\\\\{\{|$)))/, /^(?:\{\{\{\{(?=[^/]))/, /^(?:\{\{\{\{\/[^\s!"#%-,\.\/;->@\[-\^`\{-~]+(?=[=}\s\/.])\}\}\}\})/, /^(?:[^\x00]+?(?=(\{\{\{\{)))/, /^(?:[\s\S]*?--(~)?\}\})/, /^(?:\()/, /^(?:\))/, /^(?:\{\{\{\{)/, /^(?:\}\}\}\})/, /^(?:\{\{(~)?>)/, /^(?:\{\{(~)?#>)/, /^(?:\{\{(~)?#\*?)/, /^(?:\{\{(~)?\/)/, /^(?:\{\{(~)?\^\s*(~)?\}\})/, /^(?:\{\{(~)?\s*else\s*(~)?\}\})/, /^(?:\{\{(~)?\^)/, /^(?:\{\{(~)?\s*else\b)/, /^(?:\{\{(~)?\{)/, /^(?:\{\{(~)?&)/, /^(?:\{\{(~)?!--)/, /^(?:\{\{(~)?![\s\S]*?\}\})/, /^(?:\{\{(~)?\*?)/, /^(?:=)/, /^(?:\.\.)/, /^(?:\.(?=([=~}\s\/.)|])))/, /^(?:[\/.])/, /^(?:\s+)/, /^(?:\}(~)?\}\})/, /^(?:(~)?\}\})/, /^(?:"(\\["]|[^"])*")/, /^(?:'(\\[']|[^'])*')/, /^(?:@)/, /^(?:true(?=([~}\s)])))/, /^(?:false(?=([~}\s)])))/, /^(?:undefined(?=([~}\s)])))/, /^(?:null(?=([~}\s)])))/, /^(?:-?[0-9]+(?:\.[0-9]+)?(?=([~}\s)])))/, /^(?:as\s+\|)/, /^(?:\|)/, /^(?:([^\s!"#%-,\.\/;->@\[-\^`\{-~]+(?=([=~}\s\/.)|]))))/, /^(?:\[(\\\]|[^\]])*\])/, /^(?:.)/, /^(?:$)/], conditions: { mu: { rules: [7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44], inclusive: false }, emu: { rules: [2], inclusive: false }, com: { rules: [6], inclusive: false }, raw: { rules: [3, 4, 5], inclusive: false }, INITIAL: { rules: [0, 1, 44], inclusive: true } } };
|
|
959
959
|
return it;
|
|
960
|
-
}();
|
|
960
|
+
})();
|
|
961
961
|
De.lexer = Vs;
|
|
962
962
|
function _e() {
|
|
963
963
|
this.yy = {};
|
|
964
964
|
}
|
|
965
965
|
return _e.prototype = De, De.Parser = _e, new _e();
|
|
966
|
-
}();
|
|
966
|
+
})();
|
|
967
967
|
var Se = In;
|
|
968
968
|
var tr = ["description", "fileName", "lineNumber", "endLineNumber", "message", "name", "number", "stack"];
|
|
969
969
|
function er(e5, t) {
|
|
@@ -1168,7 +1168,7 @@ var Es = { Aacute: "\xC1", aacute: "\xE1", Abreve: "\u0102", abreve: "\u0103", a
|
|
|
1168
1168
|
var Gn = /^#[xX]([A-Fa-f0-9]+)$/;
|
|
1169
1169
|
var Kn = /^#([0-9]+)$/;
|
|
1170
1170
|
var Wn = /^([A-Za-z0-9]+)$/;
|
|
1171
|
-
var or = function() {
|
|
1171
|
+
var or = (function() {
|
|
1172
1172
|
function e5(t) {
|
|
1173
1173
|
this.named = t;
|
|
1174
1174
|
}
|
|
@@ -1180,7 +1180,7 @@ var or = function() {
|
|
|
1180
1180
|
if (r = t.match(Wn), r) return this.named[r[1]];
|
|
1181
1181
|
}
|
|
1182
1182
|
}, e5;
|
|
1183
|
-
}();
|
|
1183
|
+
})();
|
|
1184
1184
|
var jn = /[\t\n\f ]/;
|
|
1185
1185
|
var Qn = /[A-Za-z]/;
|
|
1186
1186
|
var Jn = /\r\n?/g;
|
|
@@ -1194,7 +1194,7 @@ function $n(e5) {
|
|
|
1194
1194
|
return e5.replace(Jn, `
|
|
1195
1195
|
`);
|
|
1196
1196
|
}
|
|
1197
|
-
var lr = function() {
|
|
1197
|
+
var lr = (function() {
|
|
1198
1198
|
function e5(t, r, s) {
|
|
1199
1199
|
s === void 0 && (s = "precompile"), this.delegate = t, this.entityParser = r, this.mode = s, this.state = "beforeData", this.line = -1, this.column = -1, this.input = "", this.index = -1, this.tagNameBuffer = "", this.states = { beforeData: function() {
|
|
1200
1200
|
var n = this.peek();
|
|
@@ -1358,8 +1358,8 @@ var lr = function() {
|
|
|
1358
1358
|
var t = this.tagNameBuffer;
|
|
1359
1359
|
return t === "title" && this.input.substring(this.index, this.index + 8) !== "</title>" || t === "style" && this.input.substring(this.index, this.index + 8) !== "</style>" || t === "script" && this.input.substring(this.index, this.index + 9) !== "</script>";
|
|
1360
1360
|
}, e5;
|
|
1361
|
-
}();
|
|
1362
|
-
var so = function() {
|
|
1361
|
+
})();
|
|
1362
|
+
var so = (function() {
|
|
1363
1363
|
function e5(t, r) {
|
|
1364
1364
|
r === void 0 && (r = {}), this.options = r, this.token = null, this.startLine = 1, this.startColumn = 0, this.tokens = [], this.tokenizer = new lr(this, t, r.mode), this._currentAttribute = void 0;
|
|
1365
1365
|
}
|
|
@@ -1431,7 +1431,7 @@ var so = function() {
|
|
|
1431
1431
|
}, e5.prototype.reportSyntaxError = function(t) {
|
|
1432
1432
|
this.current().syntaxError = t;
|
|
1433
1433
|
}, e5;
|
|
1434
|
-
}();
|
|
1434
|
+
})();
|
|
1435
1435
|
var Ne = { Append: 1, TrustingAppend: 2, Comment: 3, Modifier: 4, StrictModifier: 5, Block: 6, StrictBlock: 7, Component: 8, OpenElement: 10, OpenElementWithSplat: 11, FlushElement: 12, CloseElement: 13, StaticAttr: 14, DynamicAttr: 15, ComponentAttr: 16, AttrSplat: 17, Yield: 18, DynamicArg: 20, StaticArg: 21, TrustingDynamicAttr: 22, TrustingComponentAttr: 23, StaticComponentAttr: 24, Debugger: 26, Undefined: 27, Call: 28, Concat: 29, GetSymbol: 30, GetLexicalSymbol: 32, GetStrictKeyword: 31, GetFreeAsComponentOrHelperHead: 35, GetFreeAsHelperHead: 37, GetFreeAsModifierHead: 38, GetFreeAsComponentHead: 39, InElement: 40, If: 41, Each: 42, Let: 44, WithDynamicVars: 45, InvokeComponent: 46, HasBlock: 48, HasBlockParams: 49, Curry: 50, Not: 51, IfInline: 52, GetDynamicVar: 53, Log: 54 };
|
|
1436
1436
|
function vs(e5) {
|
|
1437
1437
|
return function(t) {
|
|
@@ -1484,7 +1484,7 @@ var Pe = class {
|
|
|
1484
1484
|
this._map.set(t, r);
|
|
1485
1485
|
}
|
|
1486
1486
|
match(t) {
|
|
1487
|
-
let r = function(a) {
|
|
1487
|
+
let r = (function(a) {
|
|
1488
1488
|
switch (a) {
|
|
1489
1489
|
case "Broken":
|
|
1490
1490
|
case "InternalsSynthetic":
|
|
@@ -1493,7 +1493,7 @@ var Pe = class {
|
|
|
1493
1493
|
default:
|
|
1494
1494
|
return a;
|
|
1495
1495
|
}
|
|
1496
|
-
}(t), s = [], n = this._map.get(r), i = this._map.get("MATCH_ANY");
|
|
1496
|
+
})(t), s = [], n = this._map.get(r), i = this._map.get("MATCH_ANY");
|
|
1497
1497
|
return n && s.push(n), i && s.push(i), s;
|
|
1498
1498
|
}
|
|
1499
1499
|
constructor() {
|
|
@@ -1944,13 +1944,13 @@ function E(e5, t) {
|
|
|
1944
1944
|
return c.name = "SyntaxError", c.location = t, c.code = a, c;
|
|
1945
1945
|
}
|
|
1946
1946
|
var ii = { Template: ["body"], Block: ["body"], MustacheStatement: ["path", "params", "hash"], BlockStatement: ["path", "params", "hash", "program", "inverse"], ElementModifierStatement: ["path", "params", "hash"], CommentStatement: [], MustacheCommentStatement: [], ElementNode: ["attributes", "modifiers", "children", "comments"], AttrNode: ["value"], TextNode: [], ConcatStatement: ["parts"], SubExpression: ["path", "params", "hash"], PathExpression: [], StringLiteral: [], BooleanLiteral: [], NumberLiteral: [], NullLiteral: [], UndefinedLiteral: [], Hash: ["pairs"], HashPair: ["value"] };
|
|
1947
|
-
var Nr = function() {
|
|
1947
|
+
var Nr = (function() {
|
|
1948
1948
|
function e5(t, r, s, n) {
|
|
1949
1949
|
let i = Error.call(this, t);
|
|
1950
1950
|
this.key = n, this.message = t, this.node = r, this.parent = s, i.stack && (this.stack = i.stack);
|
|
1951
1951
|
}
|
|
1952
1952
|
return e5.prototype = Object.create(Error.prototype), e5.prototype.constructor = e5, e5;
|
|
1953
|
-
}();
|
|
1953
|
+
})();
|
|
1954
1954
|
function ws(e5, t, r) {
|
|
1955
1955
|
return new Nr("Cannot remove a node unless it is part of an array", e5, t, r);
|
|
1956
1956
|
}
|
|
@@ -1986,11 +1986,11 @@ function _s(e5) {
|
|
|
1986
1986
|
return typeof e5 == "function" ? void 0 : e5.exit;
|
|
1987
1987
|
}
|
|
1988
1988
|
function Ae(e5, t) {
|
|
1989
|
-
let r, s, n, { node: i, parent: a, parentKey: o } = t, c = function(h, p) {
|
|
1989
|
+
let r, s, n, { node: i, parent: a, parentKey: o } = t, c = (function(h, p) {
|
|
1990
1990
|
if (h.Program && (p === "Template" && !h.Template || p === "Block" && !h.Block)) return h.Program;
|
|
1991
1991
|
let m = h[p];
|
|
1992
1992
|
return m !== void 0 ? m : h.All;
|
|
1993
|
-
}(e5, i.type);
|
|
1993
|
+
})(e5, i.type);
|
|
1994
1994
|
if (c !== void 0 && (r = Ds(c), s = _s(c)), r !== void 0 && (n = r(i, t)), n != null) {
|
|
1995
1995
|
if (JSON.stringify(i) !== JSON.stringify(n)) return Array.isArray(n) ? (Os(e5, n, a, o), n) : Ae(e5, new zt(n, a, o)) || n;
|
|
1996
1996
|
n = void 0;
|
|
@@ -2006,30 +2006,30 @@ function Ns(e5, t, r) {
|
|
|
2006
2006
|
e5[t] = r;
|
|
2007
2007
|
}
|
|
2008
2008
|
function oi(e5, t, r, s) {
|
|
2009
|
-
let n, i, { node: a } = r, o = function(c, h) {
|
|
2009
|
+
let n, i, { node: a } = r, o = (function(c, h) {
|
|
2010
2010
|
return c[h];
|
|
2011
|
-
}(a, s);
|
|
2011
|
+
})(a, s);
|
|
2012
2012
|
if (o) {
|
|
2013
2013
|
if (t !== void 0) {
|
|
2014
|
-
let c = function(h, p) {
|
|
2014
|
+
let c = (function(h, p) {
|
|
2015
2015
|
let m = typeof h != "function" ? h.keys : void 0;
|
|
2016
2016
|
if (m === void 0) return;
|
|
2017
2017
|
let S = m[p];
|
|
2018
2018
|
return S !== void 0 ? S : m.All;
|
|
2019
|
-
}(t, s);
|
|
2019
|
+
})(t, s);
|
|
2020
2020
|
c !== void 0 && (n = Ds(c), i = _s(c));
|
|
2021
2021
|
}
|
|
2022
2022
|
if (n !== void 0 && n(a, s) !== void 0) throw Ts(a, s);
|
|
2023
2023
|
if (Array.isArray(o)) Os(e5, o, r, s);
|
|
2024
2024
|
else {
|
|
2025
2025
|
let c = Ae(e5, new zt(o, r, s));
|
|
2026
|
-
c !== void 0 && function(h, p, m, S) {
|
|
2026
|
+
c !== void 0 && (function(h, p, m, S) {
|
|
2027
2027
|
if (S === null) throw ws(m, h, p);
|
|
2028
2028
|
if (Array.isArray(S)) {
|
|
2029
2029
|
if (S.length !== 1) throw S.length === 0 ? ws(m, h, p) : ai(m, h, p);
|
|
2030
2030
|
Ns(h, p, S[0]);
|
|
2031
2031
|
} else Ns(h, p, S);
|
|
2032
|
-
}(a, s, o, c);
|
|
2032
|
+
})(a, s, o, c);
|
|
2033
2033
|
}
|
|
2034
2034
|
if (i !== void 0 && i(a, s) !== void 0) throw Ts(a, s);
|
|
2035
2035
|
}
|
|
@@ -2077,10 +2077,10 @@ function ct(e5, t) {
|
|
|
2077
2077
|
return f.path({ head: f.head({ original: i, loc: r.sliceStartChars({ chars: i.length }) }), tail: a, loc: T(t || null) });
|
|
2078
2078
|
}
|
|
2079
2079
|
}
|
|
2080
|
-
let { head: s, tail: n } = function(i, a) {
|
|
2080
|
+
let { head: s, tail: n } = (function(i, a) {
|
|
2081
2081
|
let [o, ...c] = i.split("."), h = f.head({ original: o, loc: T(a || null) });
|
|
2082
2082
|
return f.path({ head: h, tail: c, loc: T(a || null) });
|
|
2083
|
-
}(e5, r);
|
|
2083
|
+
})(e5, r);
|
|
2084
2084
|
return f.path({ head: s, tail: n, loc: r });
|
|
2085
2085
|
}
|
|
2086
2086
|
function xe(e5, t, r) {
|
|
@@ -2169,14 +2169,14 @@ var f = new class {
|
|
|
2169
2169
|
return { type: "Template", body: e5, blockParams: t, loc: r };
|
|
2170
2170
|
}
|
|
2171
2171
|
mustache({ path: e5, params: t, hash: r, trusting: s, loc: n, strip: i = Ce }) {
|
|
2172
|
-
return function({ path: a, params: o, hash: c, trusting: h, strip: p, loc: m }) {
|
|
2172
|
+
return (function({ path: a, params: o, hash: c, trusting: h, strip: p, loc: m }) {
|
|
2173
2173
|
let S = { type: "MustacheStatement", path: a, params: o, hash: c, trusting: h, strip: p, loc: m };
|
|
2174
2174
|
return Object.defineProperty(S, "escaped", { enumerable: false, get() {
|
|
2175
2175
|
return !this.trusting;
|
|
2176
2176
|
}, set(y) {
|
|
2177
2177
|
this.trusting = !y;
|
|
2178
2178
|
} }), S;
|
|
2179
|
-
}({ path: e5, params: t, hash: r, trusting: s, strip: i, loc: n });
|
|
2179
|
+
})({ path: e5, params: t, hash: r, trusting: s, strip: i, loc: n });
|
|
2180
2180
|
}
|
|
2181
2181
|
block({ path: e5, params: t, hash: r, defaultBlock: s, elseBlock: n = null, loc: i, openStrip: a = Ce, inverseStrip: o = Ce, closeStrip: c = Ce }) {
|
|
2182
2182
|
return { type: "BlockStatement", path: e5, params: t, hash: r, program: s, inverse: n, loc: i, openStrip: a, inverseStrip: o, closeStrip: c };
|
|
@@ -2219,7 +2219,7 @@ var f = new class {
|
|
|
2219
2219
|
return { type: "SubExpression", path: e5, params: t, hash: r, loc: s };
|
|
2220
2220
|
}
|
|
2221
2221
|
path({ head: e5, tail: t, loc: r }) {
|
|
2222
|
-
return function({ head: s, tail: n, loc: i }) {
|
|
2222
|
+
return (function({ head: s, tail: n, loc: i }) {
|
|
2223
2223
|
let a = { type: "PathExpression", head: s, tail: n, get original() {
|
|
2224
2224
|
return [this.head.original, ...this.tail].join(".");
|
|
2225
2225
|
}, set original(o) {
|
|
@@ -2238,7 +2238,7 @@ var f = new class {
|
|
|
2238
2238
|
} }), Object.defineProperty(a, "data", { enumerable: false, get() {
|
|
2239
2239
|
return this.head.type === "AtHead";
|
|
2240
2240
|
} }), a;
|
|
2241
|
-
}({ head: e5, tail: t, loc: r });
|
|
2241
|
+
})({ head: e5, tail: t, loc: r });
|
|
2242
2242
|
}
|
|
2243
2243
|
head({ original: e5, loc: t }) {
|
|
2244
2244
|
return e5 === "this" ? this.this({ loc: t }) : e5[0] === "@" ? this.atName({ name: e5, loc: t }) : this.var({ name: e5, loc: t });
|
|
@@ -2279,14 +2279,14 @@ var f = new class {
|
|
|
2279
2279
|
return { type: "HashPair", key: e5, value: t, loc: r };
|
|
2280
2280
|
}
|
|
2281
2281
|
literal({ type: e5, value: t, loc: r }) {
|
|
2282
|
-
return function({ type: s, value: n, loc: i }) {
|
|
2282
|
+
return (function({ type: s, value: n, loc: i }) {
|
|
2283
2283
|
let a = { type: s, value: n, loc: i };
|
|
2284
2284
|
return Object.defineProperty(a, "original", { enumerable: false, get() {
|
|
2285
2285
|
return this.value;
|
|
2286
2286
|
}, set(o) {
|
|
2287
2287
|
this.value = o;
|
|
2288
2288
|
} }), a;
|
|
2289
|
-
}({ type: e5, value: t, loc: r });
|
|
2289
|
+
})({ type: e5, value: t, loc: r });
|
|
2290
2290
|
}
|
|
2291
2291
|
}();
|
|
2292
2292
|
var Sr = class {
|
|
@@ -2436,12 +2436,12 @@ var Er = class extends Sr {
|
|
|
2436
2436
|
}
|
|
2437
2437
|
ContentStatement(t) {
|
|
2438
2438
|
(function(r, s) {
|
|
2439
|
-
let n = s.loc.start.line, i = s.loc.start.column, a = function(o, c) {
|
|
2439
|
+
let n = s.loc.start.line, i = s.loc.start.column, a = (function(o, c) {
|
|
2440
2440
|
if (c === "") return { lines: o.split(`
|
|
2441
2441
|
`).length - 1, columns: 0 };
|
|
2442
2442
|
let [h] = o.split(c), p = h.split(/\n/u), m = p.length - 1;
|
|
2443
2443
|
return { lines: m, columns: p[m].length };
|
|
2444
|
-
}(s.original, s.value);
|
|
2444
|
+
})(s.original, s.value);
|
|
2445
2445
|
n += a.lines, a.lines ? i = a.columns : i += a.columns, r.line = n, r.column = i;
|
|
2446
2446
|
})(this.tokenizer, t), this.tokenizer.tokenizePart(t.value), this.tokenizer.flushData();
|
|
2447
2447
|
}
|
|
@@ -2550,9 +2550,9 @@ function pr(e5, t) {
|
|
|
2550
2550
|
function fr(e5, t) {
|
|
2551
2551
|
let { path: r, params: s, hash: n, loc: i } = t;
|
|
2552
2552
|
if (Bs(r)) {
|
|
2553
|
-
let o = `{{${function(c) {
|
|
2553
|
+
let o = `{{${(function(c) {
|
|
2554
2554
|
return c.type === "UndefinedLiteral" ? "undefined" : JSON.stringify(c.value);
|
|
2555
|
-
}(r)}}}`;
|
|
2555
|
+
})(r)}}}`;
|
|
2556
2556
|
throw E(`In <${e5.name} ... ${o} ..., ${o} is not a valid modifier`, t.loc);
|
|
2557
2557
|
}
|
|
2558
2558
|
let a = f.elementModifier({ path: r, params: s, hash: n, loc: i });
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } var _class;require('./chunk-
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } var _class;require('./chunk-AKFJBAG4.cjs');
|
|
2
2
|
|
|
3
3
|
// ../../node_modules/.pnpm/prettier@3.6.2/node_modules/prettier/plugins/graphql.mjs
|
|
4
4
|
var Et = Object.defineProperty;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } var _class; var _class2;require('./chunk-
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } var _class; var _class2;require('./chunk-AKFJBAG4.cjs');
|
|
2
2
|
|
|
3
3
|
// ../../node_modules/.pnpm/prettier@3.6.2/node_modules/prettier/plugins/html.mjs
|
|
4
4
|
var on = Object.defineProperty;
|