@storm-software/eslint 0.107.1 → 0.107.2
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/README.md +1 -1
- package/dist/acorn-CCDA5Y7C.cjs +3131 -0
- package/dist/acorn-PTPZSZS6.js +3131 -0
- package/dist/angular-NDZ53HZT.js +3014 -0
- package/dist/angular-XXKPBORI.cjs +3014 -0
- package/dist/babel-7OKY5N6D.js +7166 -0
- package/dist/babel-ZAEH2MD6.cjs +7166 -0
- package/dist/chunk-2GN5RLNR.js +55 -0
- package/dist/chunk-BHJDUHOW.cjs +84 -0
- package/dist/chunk-CIGM5K4I.cjs +1334 -0
- package/dist/chunk-GSOR5H2M.cjs +4022 -0
- package/dist/chunk-HXTIVITI.js +4022 -0
- package/dist/chunk-KOFZWJCN.js +84 -0
- package/dist/chunk-PWYAFNCE.cjs +59 -0
- package/dist/chunk-V7TQDECV.js +1334 -0
- package/dist/dist-3EJMVSVL.js +15716 -0
- package/dist/dist-GB3FBWYD.cjs +15717 -0
- package/dist/esm-HMD4VZC2.js +1715 -0
- package/dist/esm-KLBQYHBS.cjs +1715 -0
- package/dist/estree-4FZVBA3I.js +4859 -0
- package/dist/estree-TXEM7J44.cjs +4859 -0
- package/dist/execa-6ZJHRRGH.js +2424 -0
- package/dist/execa-RWXGY3AF.cjs +2424 -0
- package/dist/flow-LEJXBIDN.cjs +28076 -0
- package/dist/flow-TYUDSDMT.js +28076 -0
- package/dist/glimmer-BFX2N2PO.js +3062 -0
- package/dist/glimmer-CI4NLBJN.cjs +3062 -0
- package/dist/graphql-ATKH2UJU.js +1355 -0
- package/dist/graphql-F26LLKM2.cjs +1355 -0
- package/dist/html-DPSCSLFD.cjs +3036 -0
- package/dist/html-TQZJETBK.js +3036 -0
- package/dist/json5-2N47OU6X.cjs +764 -0
- package/dist/json5-DGCDZGKI.js +764 -0
- package/dist/jsonc-3RGXS4EK.js +447 -0
- package/dist/jsonc-H5JHBJWX.cjs +447 -0
- package/dist/markdown-ENFWQVL3.js +3846 -0
- package/dist/markdown-KDQOGP3N.cjs +3846 -0
- package/dist/meriyah-UO5W2QS6.js +2720 -0
- package/dist/meriyah-XW3PRYEN.cjs +2720 -0
- package/dist/multipart-parser-POHWNSZ2.cjs +186 -0
- package/dist/multipart-parser-ZBOXYK27.js +186 -0
- package/dist/postcss-ICZTIVVB.js +5440 -0
- package/dist/postcss-OH45GBM4.cjs +5440 -0
- package/dist/preset.cjs +20461 -117
- package/dist/preset.d.cts +1 -6
- package/dist/preset.d.ts +1 -6
- package/dist/preset.js +20394 -19
- package/dist/prettier-U5XWBEA6.js +23559 -0
- package/dist/prettier-UYPX4PW2.cjs +23560 -0
- package/dist/rules/storm.cjs +7 -0
- package/dist/rules/storm.d.cts +11 -0
- package/dist/rules/storm.d.ts +11 -0
- package/dist/rules/storm.js +7 -0
- package/dist/toml-NUWFIHJI.js +509 -0
- package/dist/toml-WFSEGMHQ.cjs +509 -0
- package/dist/typescript-6RS3BOJH.js +14956 -0
- package/dist/typescript-K6YYG6NX.cjs +14956 -0
- package/dist/yaml-DOGTEZV3.js +4584 -0
- package/dist/yaml-GNGUKHFM.cjs +4584 -0
- package/dist/yaml-UATHGD5B.cjs +1119 -0
- package/dist/yaml-XTDKP6DN.js +1119 -0
- package/package.json +1 -1
|
@@ -0,0 +1,3014 @@
|
|
|
1
|
+
import {
|
|
2
|
+
__esm,
|
|
3
|
+
__name,
|
|
4
|
+
init_esm_shims
|
|
5
|
+
} from "./chunk-2GN5RLNR.js";
|
|
6
|
+
|
|
7
|
+
// ../../node_modules/.pnpm/prettier@3.4.2/node_modules/prettier/plugins/angular.mjs
|
|
8
|
+
function Bs(t26, e) {
|
|
9
|
+
return t26 == null || e == null ? t26 == e : t26.isEquivalent(e);
|
|
10
|
+
}
|
|
11
|
+
function Ds(t26, e, n) {
|
|
12
|
+
let s = t26.length;
|
|
13
|
+
if (s !== e.length) return false;
|
|
14
|
+
for (let r = 0; r < s; r++) if (!n(t26[r], e[r])) return false;
|
|
15
|
+
return true;
|
|
16
|
+
}
|
|
17
|
+
function tt(t26, e) {
|
|
18
|
+
return Ds(t26, e, (n, s) => n.isEquivalent(s));
|
|
19
|
+
}
|
|
20
|
+
function Os(t26, e, n) {
|
|
21
|
+
return new Ge(t26, e, n);
|
|
22
|
+
}
|
|
23
|
+
function Vs(t26, e) {
|
|
24
|
+
if (e != null && !(Array.isArray(e) && e.length == 2)) throw new Error(`Expected '${t26}' to be an array, [start, end].`);
|
|
25
|
+
if (e != null) {
|
|
26
|
+
let n = e[0], s = e[1];
|
|
27
|
+
Fs.forEach((r) => {
|
|
28
|
+
if (r.test(n) || r.test(s)) throw new Error(`['${n}', '${s}'] contains unusable interpolation symbol.`);
|
|
29
|
+
});
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
function ur(t26) {
|
|
33
|
+
return t26 >= Un && t26 <= Wn || t26 == Zn;
|
|
34
|
+
}
|
|
35
|
+
function j(t26) {
|
|
36
|
+
return Ys <= t26 && t26 <= Qs;
|
|
37
|
+
}
|
|
38
|
+
function pr(t26) {
|
|
39
|
+
return t26 >= Yn && t26 <= Qn || t26 >= Jn && t26 <= Kn;
|
|
40
|
+
}
|
|
41
|
+
function dn(t26) {
|
|
42
|
+
return t26 === zn || t26 === qn || t26 === cr;
|
|
43
|
+
}
|
|
44
|
+
function $n(t26, e, n) {
|
|
45
|
+
return new M(t26, e, d.Character, n, String.fromCharCode(n));
|
|
46
|
+
}
|
|
47
|
+
function Er(t26, e, n) {
|
|
48
|
+
return new M(t26, e, d.Identifier, 0, n);
|
|
49
|
+
}
|
|
50
|
+
function yr(t26, e, n) {
|
|
51
|
+
return new M(t26, e, d.PrivateIdentifier, 0, n);
|
|
52
|
+
}
|
|
53
|
+
function _r(t26, e, n) {
|
|
54
|
+
return new M(t26, e, d.Keyword, 0, n);
|
|
55
|
+
}
|
|
56
|
+
function at(t26, e, n) {
|
|
57
|
+
return new M(t26, e, d.Operator, 0, n);
|
|
58
|
+
}
|
|
59
|
+
function Cr(t26, e, n) {
|
|
60
|
+
return new M(t26, e, d.String, 0, n);
|
|
61
|
+
}
|
|
62
|
+
function Tr(t26, e, n) {
|
|
63
|
+
return new M(t26, e, d.Number, n, "");
|
|
64
|
+
}
|
|
65
|
+
function kr(t26, e, n) {
|
|
66
|
+
return new M(t26, e, d.Error, 0, n);
|
|
67
|
+
}
|
|
68
|
+
function Rn(t26) {
|
|
69
|
+
return Yn <= t26 && t26 <= Qn || Jn <= t26 && t26 <= Kn || t26 == Mt || t26 == jn;
|
|
70
|
+
}
|
|
71
|
+
function Bn(t26) {
|
|
72
|
+
return pr(t26) || j(t26) || t26 == Mt || t26 == jn;
|
|
73
|
+
}
|
|
74
|
+
function Ir(t26) {
|
|
75
|
+
return t26 == nr || t26 == Zs;
|
|
76
|
+
}
|
|
77
|
+
function br(t26) {
|
|
78
|
+
return t26 == Xn || t26 == Gn;
|
|
79
|
+
}
|
|
80
|
+
function Ar(t26) {
|
|
81
|
+
switch (t26) {
|
|
82
|
+
case rr:
|
|
83
|
+
return Hs;
|
|
84
|
+
case sr:
|
|
85
|
+
return Ws;
|
|
86
|
+
case ir:
|
|
87
|
+
return qs;
|
|
88
|
+
case or:
|
|
89
|
+
return Un;
|
|
90
|
+
case lr:
|
|
91
|
+
return Us;
|
|
92
|
+
default:
|
|
93
|
+
return t26;
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
function Nr(t26) {
|
|
97
|
+
let e = parseInt(t26);
|
|
98
|
+
if (isNaN(e)) throw new Error("Invalid integer literal when parsing " + t26);
|
|
99
|
+
return e;
|
|
100
|
+
}
|
|
101
|
+
function Pr(t26) {
|
|
102
|
+
let e = /* @__PURE__ */ new Map(), n = 0, s = 0, r = 0;
|
|
103
|
+
for (; r < t26.length; ) {
|
|
104
|
+
let o = t26[r];
|
|
105
|
+
if (o.type === 9) {
|
|
106
|
+
let [a, l] = o.parts;
|
|
107
|
+
n += l.length, s += a.length;
|
|
108
|
+
} else {
|
|
109
|
+
let a = o.parts.reduce((l, u) => l + u.length, 0);
|
|
110
|
+
s += a, n += a;
|
|
111
|
+
}
|
|
112
|
+
e.set(s, n), r++;
|
|
113
|
+
}
|
|
114
|
+
return e;
|
|
115
|
+
}
|
|
116
|
+
function D(t26) {
|
|
117
|
+
return (e) => e.kind === t26;
|
|
118
|
+
}
|
|
119
|
+
function Se(t26, e) {
|
|
120
|
+
return (n) => n.kind === t26 && e === n.expression instanceof Ze;
|
|
121
|
+
}
|
|
122
|
+
function Mr(t26) {
|
|
123
|
+
return (t26.kind === f.Property || t26.kind === f.TwoWayProperty) && !(t26.expression instanceof Ze);
|
|
124
|
+
}
|
|
125
|
+
function et(t26) {
|
|
126
|
+
return t26.slice(t26.length - 1);
|
|
127
|
+
}
|
|
128
|
+
function os({ start: t26, end: e }, n) {
|
|
129
|
+
let s = t26, r = e;
|
|
130
|
+
for (; r !== s && /\s/.test(n[r - 1]); ) r--;
|
|
131
|
+
for (; s !== r && /\s/.test(n[s]); ) s++;
|
|
132
|
+
return { start: s, end: r };
|
|
133
|
+
}
|
|
134
|
+
function Rr({ start: t26, end: e }, n) {
|
|
135
|
+
let s = t26, r = e;
|
|
136
|
+
for (; r !== n.length && /\s/.test(n[r]); ) r++;
|
|
137
|
+
for (; s !== 0 && /\s/.test(n[s - 1]); ) s--;
|
|
138
|
+
return { start: s, end: r };
|
|
139
|
+
}
|
|
140
|
+
function Br(t26, e) {
|
|
141
|
+
return e[t26.start - 1] === "(" && e[t26.end] === ")" ? { start: t26.start - 1, end: t26.end + 1 } : t26;
|
|
142
|
+
}
|
|
143
|
+
function as(t26, e, n) {
|
|
144
|
+
let s = 0, r = { start: t26.start, end: t26.end };
|
|
145
|
+
for (; ; ) {
|
|
146
|
+
let o = Rr(r, e), a = Br(o, e);
|
|
147
|
+
if (o.start === a.start && o.end === a.end) break;
|
|
148
|
+
r.start = a.start, r.end = a.end, s++;
|
|
149
|
+
}
|
|
150
|
+
return { hasParens: (n ? s - 1 : s) !== 0, outerSpan: os(n ? { start: r.start + 1, end: r.end - 1 } : r, e), innerSpan: os(t26, e) };
|
|
151
|
+
}
|
|
152
|
+
function ls(t26) {
|
|
153
|
+
return typeof t26 == "string" ? (e) => e === t26 : (e) => t26.test(e);
|
|
154
|
+
}
|
|
155
|
+
function cs(t26, e, n) {
|
|
156
|
+
let s = ls(e);
|
|
157
|
+
for (let r = n; r >= 0; r--) {
|
|
158
|
+
let o = t26[r];
|
|
159
|
+
if (s(o)) return r;
|
|
160
|
+
}
|
|
161
|
+
throw new Error(`Cannot find front char ${e} from index ${n} in ${JSON.stringify(t26)}`);
|
|
162
|
+
}
|
|
163
|
+
function us(t26, e, n) {
|
|
164
|
+
let s = ls(e);
|
|
165
|
+
for (let r = n; r < t26.length; r++) {
|
|
166
|
+
let o = t26[r];
|
|
167
|
+
if (s(o)) return r;
|
|
168
|
+
}
|
|
169
|
+
throw new Error(`Cannot find character ${e} from index ${n} in ${JSON.stringify(t26)}`);
|
|
170
|
+
}
|
|
171
|
+
function ps(t26) {
|
|
172
|
+
return t26.slice(0, 1).toLowerCase() + t26.slice(1);
|
|
173
|
+
}
|
|
174
|
+
function Fe(t26) {
|
|
175
|
+
let { start: e, end: n } = t26;
|
|
176
|
+
return { start: e, end: n, range: [e, n] };
|
|
177
|
+
}
|
|
178
|
+
function Or(t26, e) {
|
|
179
|
+
let n = e ? Dr(t26) : null;
|
|
180
|
+
if (n === null) return { text: t26, comments: [] };
|
|
181
|
+
let s = { type: "CommentLine", value: t26.slice(n + 2), ...Fe({ start: n, end: t26.length }) };
|
|
182
|
+
return { text: t26.slice(0, n), comments: [s] };
|
|
183
|
+
}
|
|
184
|
+
function Ve(t26, e = true) {
|
|
185
|
+
return (n) => {
|
|
186
|
+
let s = new De(), r = new ue(s), { text: o, comments: a } = Or(n, e), l = t26(o, r);
|
|
187
|
+
if (l.errors.length !== 0) {
|
|
188
|
+
let [{ message: u }] = l.errors;
|
|
189
|
+
throw new SyntaxError(u.replace(/^Parser Error: | at column \d+ in [^]*$/g, ""));
|
|
190
|
+
}
|
|
191
|
+
return { result: l, comments: a, text: o };
|
|
192
|
+
};
|
|
193
|
+
}
|
|
194
|
+
function Ot(t26) {
|
|
195
|
+
var e;
|
|
196
|
+
return !!((e = t26.extra) != null && e.parenthesized);
|
|
197
|
+
}
|
|
198
|
+
function $(t26) {
|
|
199
|
+
return Ot(t26) ? t26.extra.parenStart : t26.start;
|
|
200
|
+
}
|
|
201
|
+
function R(t26) {
|
|
202
|
+
return Ot(t26) ? t26.extra.parenEnd : t26.end;
|
|
203
|
+
}
|
|
204
|
+
function vs(t26) {
|
|
205
|
+
return (t26.type === "OptionalCallExpression" || t26.type === "OptionalMemberExpression") && !Ot(t26);
|
|
206
|
+
}
|
|
207
|
+
function ws(t26, e) {
|
|
208
|
+
let { start: n, end: s } = t26.sourceSpan;
|
|
209
|
+
return n >= s || /^\s+$/.test(e.slice(n, s));
|
|
210
|
+
}
|
|
211
|
+
function xs(t26, e) {
|
|
212
|
+
return new Ue(t26, e).node;
|
|
213
|
+
}
|
|
214
|
+
function Ss(t26) {
|
|
215
|
+
return t26 instanceof Be;
|
|
216
|
+
}
|
|
217
|
+
function Es(t26) {
|
|
218
|
+
return t26 instanceof ce;
|
|
219
|
+
}
|
|
220
|
+
function Is(t26, e) {
|
|
221
|
+
return new Ft(t26, e).expressions;
|
|
222
|
+
}
|
|
223
|
+
function st({ result: { ast: t26 }, text: e, comments: n }) {
|
|
224
|
+
return Object.assign(xs(t26, e), { comments: n });
|
|
225
|
+
}
|
|
226
|
+
function bs({ result: { templateBindings: t26 }, text: e }) {
|
|
227
|
+
return Is(t26, e);
|
|
228
|
+
}
|
|
229
|
+
function qt(t26) {
|
|
230
|
+
var s, r, o;
|
|
231
|
+
let e = ((s = t26.range) == null ? void 0 : s[0]) ?? t26.start, n = (o = ((r = t26.declaration) == null ? void 0 : r.decorators) ?? t26.decorators) == null ? void 0 : o[0];
|
|
232
|
+
return n ? Math.min(qt(n), e) : e;
|
|
233
|
+
}
|
|
234
|
+
function Ls(t26) {
|
|
235
|
+
var e;
|
|
236
|
+
return ((e = t26.range) == null ? void 0 : e[1]) ?? t26.end;
|
|
237
|
+
}
|
|
238
|
+
function rt(t26) {
|
|
239
|
+
return { astFormat: "estree", parse(e) {
|
|
240
|
+
let n = t26(e);
|
|
241
|
+
return { type: "NGRoot", node: t26 === Wt && n.type !== "NGChainedExpression" ? { ...n, type: "NGChainedExpression", expressions: [n] } : n };
|
|
242
|
+
}, locStart: qt, locEnd: Ls };
|
|
243
|
+
}
|
|
244
|
+
var $s, Xt, Jt, it, L, V, Q, c, zt, jt, Gr, Kt, Yt, Qt, B, Zt, en, tn, nn, Rs, sn, _, k, Ge, ct, ut, pt, ht, Xe, ft, Je, dt, mt, C, gt, vt, Ke, Ye, Ee, Qe, wt, xt, Xr, rn, i, P, St, on, an, ye, G, E, se, b, X, Et, _e, Ce, re, Te, ie, ke, oe, Ie, be, A, Ae, Ne, Pe, N, ae, Le, Me, $e, Re, le, O, W, ce, Be, yt, ln, cn, H, un, Fs, _t, Z, ot, Un, Hs, Us, Ws, qs, Wn, js, qn, zs, jn, Gs, pn, zn, je, me, Xs, Gn, ge, Xn, ee, Ct, te, ve, Js, qe, Ks, hn, Ys, Qs, Jn, Zs, Kn, ze, er, we, tr, Mt, Yn, nr, sr, rr, ir, or, ar, lr, Qn, Tt, fn, xe, Zn, cr, mn, gn, vn, wn, hr, es, ts, $t, Jr, Kr, Yr, fr, Qr, ns, Zr, ei, dr, mr, gr, ti, ni, si, f, J, xn, Sn, En, U, yn, _n, Cn, Tn, kn, In, bn, vr, ss, Oe, Rt, ri, ii, oi, Ze, K, An, Nn, kt, Pn, It, bt, ai, Ln, li, ci, ui, pi, wr, xr, Mn, rs, hi, fi, d, Sr, De, M, lt, At, Nt, Pt, ue, ne, z, Lt, Lr, di, mi, gi, vi, wi, xi, Si, Ei, Dn, yi, _i, On, Fn, is, Ci, Ti, ki, Vn, Hn, Dr, hs, Fr, fs, ds, ms, Hr, nt, Bt, gs, We, pe, p, v, He, x, Dt, Ue, he, Y, m, ys, I, Vt, Ht, Ut, _s, Cs, Ts, ks, Ft, As, Ns, Wt, Ps, Ur, Wr, qr, jr, Zi;
|
|
245
|
+
var init_angular = __esm({
|
|
246
|
+
"../../node_modules/.pnpm/prettier@3.4.2/node_modules/prettier/plugins/angular.mjs"() {
|
|
247
|
+
init_esm_shims();
|
|
248
|
+
$s = Object.defineProperty;
|
|
249
|
+
Xt = /* @__PURE__ */ __name((t26) => {
|
|
250
|
+
throw TypeError(t26);
|
|
251
|
+
}, "Xt");
|
|
252
|
+
Jt = /* @__PURE__ */ __name((t26, e) => {
|
|
253
|
+
for (var n in e) $s(t26, n, { get: e[n], enumerable: true });
|
|
254
|
+
}, "Jt");
|
|
255
|
+
it = /* @__PURE__ */ __name((t26, e, n) => e.has(t26) || Xt("Cannot " + n), "it");
|
|
256
|
+
L = /* @__PURE__ */ __name((t26, e, n) => (it(t26, e, "read from private field"), n ? n.call(t26) : e.get(t26)), "L");
|
|
257
|
+
V = /* @__PURE__ */ __name((t26, e, n) => e.has(t26) ? Xt("Cannot add the same private member more than once") : e instanceof WeakSet ? e.add(t26) : e.set(t26, n), "V");
|
|
258
|
+
Q = /* @__PURE__ */ __name((t26, e, n, s) => (it(t26, e, "write to private field"), s ? s.call(t26, n) : e.set(t26, n), n), "Q");
|
|
259
|
+
c = /* @__PURE__ */ __name((t26, e, n) => (it(t26, e, "access private method"), n), "c");
|
|
260
|
+
zt = {};
|
|
261
|
+
Jt(zt, { parsers: /* @__PURE__ */ __name(() => jt, "parsers") });
|
|
262
|
+
jt = {};
|
|
263
|
+
Jt(jt, { __ng_action: /* @__PURE__ */ __name(() => Ur, "__ng_action"), __ng_binding: /* @__PURE__ */ __name(() => Wr, "__ng_binding"), __ng_directive: /* @__PURE__ */ __name(() => jr, "__ng_directive"), __ng_interpolation: /* @__PURE__ */ __name(() => qr, "__ng_interpolation") });
|
|
264
|
+
Gr = new RegExp(`(\\:not\\()|(([\\.\\#]?)[-\\w]+)|(?:\\[([-.\\w*\\\\$]+)(?:=(["']?)([^\\]"']*)\\5)?\\])|(\\))|(\\s*,\\s*)`, "g");
|
|
265
|
+
(function(t26) {
|
|
266
|
+
t26[t26.Emulated = 0] = "Emulated", t26[t26.None = 2] = "None", t26[t26.ShadowDom = 3] = "ShadowDom";
|
|
267
|
+
})(Kt || (Kt = {}));
|
|
268
|
+
(function(t26) {
|
|
269
|
+
t26[t26.OnPush = 0] = "OnPush", t26[t26.Default = 1] = "Default";
|
|
270
|
+
})(Yt || (Yt = {}));
|
|
271
|
+
(function(t26) {
|
|
272
|
+
t26[t26.None = 0] = "None", t26[t26.SignalBased = 1] = "SignalBased", t26[t26.HasDecoratorInputTransform = 2] = "HasDecoratorInputTransform";
|
|
273
|
+
})(Qt || (Qt = {}));
|
|
274
|
+
(function(t26) {
|
|
275
|
+
t26[t26.NONE = 0] = "NONE", t26[t26.HTML = 1] = "HTML", t26[t26.STYLE = 2] = "STYLE", t26[t26.SCRIPT = 3] = "SCRIPT", t26[t26.URL = 4] = "URL", t26[t26.RESOURCE_URL = 5] = "RESOURCE_URL";
|
|
276
|
+
})(B || (B = {}));
|
|
277
|
+
(function(t26) {
|
|
278
|
+
t26[t26.Error = 0] = "Error", t26[t26.Warning = 1] = "Warning", t26[t26.Ignore = 2] = "Ignore";
|
|
279
|
+
})(Zt || (Zt = {}));
|
|
280
|
+
(function(t26) {
|
|
281
|
+
t26[t26.Little = 0] = "Little", t26[t26.Big = 1] = "Big";
|
|
282
|
+
})(en || (en = {}));
|
|
283
|
+
(function(t26) {
|
|
284
|
+
t26[t26.None = 0] = "None", t26[t26.Const = 1] = "Const";
|
|
285
|
+
})(tn || (tn = {}));
|
|
286
|
+
(function(t26) {
|
|
287
|
+
t26[t26.Dynamic = 0] = "Dynamic", t26[t26.Bool = 1] = "Bool", t26[t26.String = 2] = "String", t26[t26.Int = 3] = "Int", t26[t26.Number = 4] = "Number", t26[t26.Function = 5] = "Function", t26[t26.Inferred = 6] = "Inferred", t26[t26.None = 7] = "None";
|
|
288
|
+
})(nn || (nn = {}));
|
|
289
|
+
Rs = void 0;
|
|
290
|
+
(function(t26) {
|
|
291
|
+
t26[t26.Minus = 0] = "Minus", t26[t26.Plus = 1] = "Plus";
|
|
292
|
+
})(sn || (sn = {}));
|
|
293
|
+
(function(t26) {
|
|
294
|
+
t26[t26.Equals = 0] = "Equals", t26[t26.NotEquals = 1] = "NotEquals", t26[t26.Identical = 2] = "Identical", t26[t26.NotIdentical = 3] = "NotIdentical", t26[t26.Minus = 4] = "Minus", t26[t26.Plus = 5] = "Plus", t26[t26.Divide = 6] = "Divide", t26[t26.Multiply = 7] = "Multiply", t26[t26.Modulo = 8] = "Modulo", t26[t26.And = 9] = "And", t26[t26.Or = 10] = "Or", t26[t26.BitwiseOr = 11] = "BitwiseOr", t26[t26.BitwiseAnd = 12] = "BitwiseAnd", t26[t26.Lower = 13] = "Lower", t26[t26.LowerEquals = 14] = "LowerEquals", t26[t26.Bigger = 15] = "Bigger", t26[t26.BiggerEquals = 16] = "BiggerEquals", t26[t26.NullishCoalesce = 17] = "NullishCoalesce";
|
|
295
|
+
})(_ || (_ = {}));
|
|
296
|
+
__name(Bs, "Bs");
|
|
297
|
+
__name(Ds, "Ds");
|
|
298
|
+
__name(tt, "tt");
|
|
299
|
+
k = class {
|
|
300
|
+
static {
|
|
301
|
+
__name(this, "k");
|
|
302
|
+
}
|
|
303
|
+
type;
|
|
304
|
+
sourceSpan;
|
|
305
|
+
constructor(e, n) {
|
|
306
|
+
this.type = e || null, this.sourceSpan = n || null;
|
|
307
|
+
}
|
|
308
|
+
prop(e, n) {
|
|
309
|
+
return new gt(this, e, null, n);
|
|
310
|
+
}
|
|
311
|
+
key(e, n, s) {
|
|
312
|
+
return new vt(this, e, n, s);
|
|
313
|
+
}
|
|
314
|
+
callFn(e, n, s) {
|
|
315
|
+
return new Xe(this, e, null, n, s);
|
|
316
|
+
}
|
|
317
|
+
instantiate(e, n, s) {
|
|
318
|
+
return new ft(this, e, n, s);
|
|
319
|
+
}
|
|
320
|
+
conditional(e, n = null, s) {
|
|
321
|
+
return new mt(this, e, n, null, s);
|
|
322
|
+
}
|
|
323
|
+
equals(e, n) {
|
|
324
|
+
return new C(_.Equals, this, e, null, n);
|
|
325
|
+
}
|
|
326
|
+
notEquals(e, n) {
|
|
327
|
+
return new C(_.NotEquals, this, e, null, n);
|
|
328
|
+
}
|
|
329
|
+
identical(e, n) {
|
|
330
|
+
return new C(_.Identical, this, e, null, n);
|
|
331
|
+
}
|
|
332
|
+
notIdentical(e, n) {
|
|
333
|
+
return new C(_.NotIdentical, this, e, null, n);
|
|
334
|
+
}
|
|
335
|
+
minus(e, n) {
|
|
336
|
+
return new C(_.Minus, this, e, null, n);
|
|
337
|
+
}
|
|
338
|
+
plus(e, n) {
|
|
339
|
+
return new C(_.Plus, this, e, null, n);
|
|
340
|
+
}
|
|
341
|
+
divide(e, n) {
|
|
342
|
+
return new C(_.Divide, this, e, null, n);
|
|
343
|
+
}
|
|
344
|
+
multiply(e, n) {
|
|
345
|
+
return new C(_.Multiply, this, e, null, n);
|
|
346
|
+
}
|
|
347
|
+
modulo(e, n) {
|
|
348
|
+
return new C(_.Modulo, this, e, null, n);
|
|
349
|
+
}
|
|
350
|
+
and(e, n) {
|
|
351
|
+
return new C(_.And, this, e, null, n);
|
|
352
|
+
}
|
|
353
|
+
bitwiseOr(e, n, s = true) {
|
|
354
|
+
return new C(_.BitwiseOr, this, e, null, n, s);
|
|
355
|
+
}
|
|
356
|
+
bitwiseAnd(e, n, s = true) {
|
|
357
|
+
return new C(_.BitwiseAnd, this, e, null, n, s);
|
|
358
|
+
}
|
|
359
|
+
or(e, n) {
|
|
360
|
+
return new C(_.Or, this, e, null, n);
|
|
361
|
+
}
|
|
362
|
+
lower(e, n) {
|
|
363
|
+
return new C(_.Lower, this, e, null, n);
|
|
364
|
+
}
|
|
365
|
+
lowerEquals(e, n) {
|
|
366
|
+
return new C(_.LowerEquals, this, e, null, n);
|
|
367
|
+
}
|
|
368
|
+
bigger(e, n) {
|
|
369
|
+
return new C(_.Bigger, this, e, null, n);
|
|
370
|
+
}
|
|
371
|
+
biggerEquals(e, n) {
|
|
372
|
+
return new C(_.BiggerEquals, this, e, null, n);
|
|
373
|
+
}
|
|
374
|
+
isBlank(e) {
|
|
375
|
+
return this.equals(TYPED_NULL_EXPR, e);
|
|
376
|
+
}
|
|
377
|
+
nullishCoalesce(e, n) {
|
|
378
|
+
return new C(_.NullishCoalesce, this, e, null, n);
|
|
379
|
+
}
|
|
380
|
+
toStmt() {
|
|
381
|
+
return new xt(this, null);
|
|
382
|
+
}
|
|
383
|
+
};
|
|
384
|
+
Ge = class t extends k {
|
|
385
|
+
static {
|
|
386
|
+
__name(this, "t");
|
|
387
|
+
}
|
|
388
|
+
name;
|
|
389
|
+
constructor(e, n, s) {
|
|
390
|
+
super(n, s), this.name = e;
|
|
391
|
+
}
|
|
392
|
+
isEquivalent(e) {
|
|
393
|
+
return e instanceof t && this.name === e.name;
|
|
394
|
+
}
|
|
395
|
+
isConstant() {
|
|
396
|
+
return false;
|
|
397
|
+
}
|
|
398
|
+
visitExpression(e, n) {
|
|
399
|
+
return e.visitReadVarExpr(this, n);
|
|
400
|
+
}
|
|
401
|
+
clone() {
|
|
402
|
+
return new t(this.name, this.type, this.sourceSpan);
|
|
403
|
+
}
|
|
404
|
+
set(e) {
|
|
405
|
+
return new ut(this.name, e, null, this.sourceSpan);
|
|
406
|
+
}
|
|
407
|
+
};
|
|
408
|
+
ct = class t2 extends k {
|
|
409
|
+
static {
|
|
410
|
+
__name(this, "t");
|
|
411
|
+
}
|
|
412
|
+
expr;
|
|
413
|
+
constructor(e, n, s) {
|
|
414
|
+
super(n, s), this.expr = e;
|
|
415
|
+
}
|
|
416
|
+
visitExpression(e, n) {
|
|
417
|
+
return e.visitTypeofExpr(this, n);
|
|
418
|
+
}
|
|
419
|
+
isEquivalent(e) {
|
|
420
|
+
return e instanceof t2 && e.expr.isEquivalent(this.expr);
|
|
421
|
+
}
|
|
422
|
+
isConstant() {
|
|
423
|
+
return this.expr.isConstant();
|
|
424
|
+
}
|
|
425
|
+
clone() {
|
|
426
|
+
return new t2(this.expr.clone());
|
|
427
|
+
}
|
|
428
|
+
};
|
|
429
|
+
ut = class t3 extends k {
|
|
430
|
+
static {
|
|
431
|
+
__name(this, "t");
|
|
432
|
+
}
|
|
433
|
+
name;
|
|
434
|
+
value;
|
|
435
|
+
constructor(e, n, s, r) {
|
|
436
|
+
super(s || n.type, r), this.name = e, this.value = n;
|
|
437
|
+
}
|
|
438
|
+
isEquivalent(e) {
|
|
439
|
+
return e instanceof t3 && this.name === e.name && this.value.isEquivalent(e.value);
|
|
440
|
+
}
|
|
441
|
+
isConstant() {
|
|
442
|
+
return false;
|
|
443
|
+
}
|
|
444
|
+
visitExpression(e, n) {
|
|
445
|
+
return e.visitWriteVarExpr(this, n);
|
|
446
|
+
}
|
|
447
|
+
clone() {
|
|
448
|
+
return new t3(this.name, this.value.clone(), this.type, this.sourceSpan);
|
|
449
|
+
}
|
|
450
|
+
toDeclStmt(e, n) {
|
|
451
|
+
return new wt(this.name, this.value, e, n, this.sourceSpan);
|
|
452
|
+
}
|
|
453
|
+
toConstDecl() {
|
|
454
|
+
return this.toDeclStmt(Rs, Ee.Final);
|
|
455
|
+
}
|
|
456
|
+
};
|
|
457
|
+
pt = class t4 extends k {
|
|
458
|
+
static {
|
|
459
|
+
__name(this, "t");
|
|
460
|
+
}
|
|
461
|
+
receiver;
|
|
462
|
+
index;
|
|
463
|
+
value;
|
|
464
|
+
constructor(e, n, s, r, o) {
|
|
465
|
+
super(r || s.type, o), this.receiver = e, this.index = n, this.value = s;
|
|
466
|
+
}
|
|
467
|
+
isEquivalent(e) {
|
|
468
|
+
return e instanceof t4 && this.receiver.isEquivalent(e.receiver) && this.index.isEquivalent(e.index) && this.value.isEquivalent(e.value);
|
|
469
|
+
}
|
|
470
|
+
isConstant() {
|
|
471
|
+
return false;
|
|
472
|
+
}
|
|
473
|
+
visitExpression(e, n) {
|
|
474
|
+
return e.visitWriteKeyExpr(this, n);
|
|
475
|
+
}
|
|
476
|
+
clone() {
|
|
477
|
+
return new t4(this.receiver.clone(), this.index.clone(), this.value.clone(), this.type, this.sourceSpan);
|
|
478
|
+
}
|
|
479
|
+
};
|
|
480
|
+
ht = class t5 extends k {
|
|
481
|
+
static {
|
|
482
|
+
__name(this, "t");
|
|
483
|
+
}
|
|
484
|
+
receiver;
|
|
485
|
+
name;
|
|
486
|
+
value;
|
|
487
|
+
constructor(e, n, s, r, o) {
|
|
488
|
+
super(r || s.type, o), this.receiver = e, this.name = n, this.value = s;
|
|
489
|
+
}
|
|
490
|
+
isEquivalent(e) {
|
|
491
|
+
return e instanceof t5 && this.receiver.isEquivalent(e.receiver) && this.name === e.name && this.value.isEquivalent(e.value);
|
|
492
|
+
}
|
|
493
|
+
isConstant() {
|
|
494
|
+
return false;
|
|
495
|
+
}
|
|
496
|
+
visitExpression(e, n) {
|
|
497
|
+
return e.visitWritePropExpr(this, n);
|
|
498
|
+
}
|
|
499
|
+
clone() {
|
|
500
|
+
return new t5(this.receiver.clone(), this.name, this.value.clone(), this.type, this.sourceSpan);
|
|
501
|
+
}
|
|
502
|
+
};
|
|
503
|
+
Xe = class t6 extends k {
|
|
504
|
+
static {
|
|
505
|
+
__name(this, "t");
|
|
506
|
+
}
|
|
507
|
+
fn;
|
|
508
|
+
args;
|
|
509
|
+
pure;
|
|
510
|
+
constructor(e, n, s, r, o = false) {
|
|
511
|
+
super(s, r), this.fn = e, this.args = n, this.pure = o;
|
|
512
|
+
}
|
|
513
|
+
get receiver() {
|
|
514
|
+
return this.fn;
|
|
515
|
+
}
|
|
516
|
+
isEquivalent(e) {
|
|
517
|
+
return e instanceof t6 && this.fn.isEquivalent(e.fn) && tt(this.args, e.args) && this.pure === e.pure;
|
|
518
|
+
}
|
|
519
|
+
isConstant() {
|
|
520
|
+
return false;
|
|
521
|
+
}
|
|
522
|
+
visitExpression(e, n) {
|
|
523
|
+
return e.visitInvokeFunctionExpr(this, n);
|
|
524
|
+
}
|
|
525
|
+
clone() {
|
|
526
|
+
return new t6(this.fn.clone(), this.args.map((e) => e.clone()), this.type, this.sourceSpan, this.pure);
|
|
527
|
+
}
|
|
528
|
+
};
|
|
529
|
+
ft = class t7 extends k {
|
|
530
|
+
static {
|
|
531
|
+
__name(this, "t");
|
|
532
|
+
}
|
|
533
|
+
classExpr;
|
|
534
|
+
args;
|
|
535
|
+
constructor(e, n, s, r) {
|
|
536
|
+
super(s, r), this.classExpr = e, this.args = n;
|
|
537
|
+
}
|
|
538
|
+
isEquivalent(e) {
|
|
539
|
+
return e instanceof t7 && this.classExpr.isEquivalent(e.classExpr) && tt(this.args, e.args);
|
|
540
|
+
}
|
|
541
|
+
isConstant() {
|
|
542
|
+
return false;
|
|
543
|
+
}
|
|
544
|
+
visitExpression(e, n) {
|
|
545
|
+
return e.visitInstantiateExpr(this, n);
|
|
546
|
+
}
|
|
547
|
+
clone() {
|
|
548
|
+
return new t7(this.classExpr.clone(), this.args.map((e) => e.clone()), this.type, this.sourceSpan);
|
|
549
|
+
}
|
|
550
|
+
};
|
|
551
|
+
Je = class t8 extends k {
|
|
552
|
+
static {
|
|
553
|
+
__name(this, "t");
|
|
554
|
+
}
|
|
555
|
+
value;
|
|
556
|
+
constructor(e, n, s) {
|
|
557
|
+
super(n, s), this.value = e;
|
|
558
|
+
}
|
|
559
|
+
isEquivalent(e) {
|
|
560
|
+
return e instanceof t8 && this.value === e.value;
|
|
561
|
+
}
|
|
562
|
+
isConstant() {
|
|
563
|
+
return true;
|
|
564
|
+
}
|
|
565
|
+
visitExpression(e, n) {
|
|
566
|
+
return e.visitLiteralExpr(this, n);
|
|
567
|
+
}
|
|
568
|
+
clone() {
|
|
569
|
+
return new t8(this.value, this.type, this.sourceSpan);
|
|
570
|
+
}
|
|
571
|
+
};
|
|
572
|
+
dt = class t9 extends k {
|
|
573
|
+
static {
|
|
574
|
+
__name(this, "t");
|
|
575
|
+
}
|
|
576
|
+
value;
|
|
577
|
+
typeParams;
|
|
578
|
+
constructor(e, n, s = null, r) {
|
|
579
|
+
super(n, r), this.value = e, this.typeParams = s;
|
|
580
|
+
}
|
|
581
|
+
isEquivalent(e) {
|
|
582
|
+
return e instanceof t9 && this.value.name === e.value.name && this.value.moduleName === e.value.moduleName;
|
|
583
|
+
}
|
|
584
|
+
isConstant() {
|
|
585
|
+
return false;
|
|
586
|
+
}
|
|
587
|
+
visitExpression(e, n) {
|
|
588
|
+
return e.visitExternalExpr(this, n);
|
|
589
|
+
}
|
|
590
|
+
clone() {
|
|
591
|
+
return new t9(this.value, this.type, this.typeParams, this.sourceSpan);
|
|
592
|
+
}
|
|
593
|
+
};
|
|
594
|
+
mt = class t10 extends k {
|
|
595
|
+
static {
|
|
596
|
+
__name(this, "t");
|
|
597
|
+
}
|
|
598
|
+
condition;
|
|
599
|
+
falseCase;
|
|
600
|
+
trueCase;
|
|
601
|
+
constructor(e, n, s = null, r, o) {
|
|
602
|
+
super(r || n.type, o), this.condition = e, this.falseCase = s, this.trueCase = n;
|
|
603
|
+
}
|
|
604
|
+
isEquivalent(e) {
|
|
605
|
+
return e instanceof t10 && this.condition.isEquivalent(e.condition) && this.trueCase.isEquivalent(e.trueCase) && Bs(this.falseCase, e.falseCase);
|
|
606
|
+
}
|
|
607
|
+
isConstant() {
|
|
608
|
+
return false;
|
|
609
|
+
}
|
|
610
|
+
visitExpression(e, n) {
|
|
611
|
+
return e.visitConditionalExpr(this, n);
|
|
612
|
+
}
|
|
613
|
+
clone() {
|
|
614
|
+
var e;
|
|
615
|
+
return new t10(this.condition.clone(), this.trueCase.clone(), (e = this.falseCase) == null ? void 0 : e.clone(), this.type, this.sourceSpan);
|
|
616
|
+
}
|
|
617
|
+
};
|
|
618
|
+
C = class t11 extends k {
|
|
619
|
+
static {
|
|
620
|
+
__name(this, "t");
|
|
621
|
+
}
|
|
622
|
+
operator;
|
|
623
|
+
rhs;
|
|
624
|
+
parens;
|
|
625
|
+
lhs;
|
|
626
|
+
constructor(e, n, s, r, o, a = true) {
|
|
627
|
+
super(r || n.type, o), this.operator = e, this.rhs = s, this.parens = a, this.lhs = n;
|
|
628
|
+
}
|
|
629
|
+
isEquivalent(e) {
|
|
630
|
+
return e instanceof t11 && this.operator === e.operator && this.lhs.isEquivalent(e.lhs) && this.rhs.isEquivalent(e.rhs);
|
|
631
|
+
}
|
|
632
|
+
isConstant() {
|
|
633
|
+
return false;
|
|
634
|
+
}
|
|
635
|
+
visitExpression(e, n) {
|
|
636
|
+
return e.visitBinaryOperatorExpr(this, n);
|
|
637
|
+
}
|
|
638
|
+
clone() {
|
|
639
|
+
return new t11(this.operator, this.lhs.clone(), this.rhs.clone(), this.type, this.sourceSpan, this.parens);
|
|
640
|
+
}
|
|
641
|
+
};
|
|
642
|
+
gt = class t12 extends k {
|
|
643
|
+
static {
|
|
644
|
+
__name(this, "t");
|
|
645
|
+
}
|
|
646
|
+
receiver;
|
|
647
|
+
name;
|
|
648
|
+
constructor(e, n, s, r) {
|
|
649
|
+
super(s, r), this.receiver = e, this.name = n;
|
|
650
|
+
}
|
|
651
|
+
get index() {
|
|
652
|
+
return this.name;
|
|
653
|
+
}
|
|
654
|
+
isEquivalent(e) {
|
|
655
|
+
return e instanceof t12 && this.receiver.isEquivalent(e.receiver) && this.name === e.name;
|
|
656
|
+
}
|
|
657
|
+
isConstant() {
|
|
658
|
+
return false;
|
|
659
|
+
}
|
|
660
|
+
visitExpression(e, n) {
|
|
661
|
+
return e.visitReadPropExpr(this, n);
|
|
662
|
+
}
|
|
663
|
+
set(e) {
|
|
664
|
+
return new ht(this.receiver, this.name, e, null, this.sourceSpan);
|
|
665
|
+
}
|
|
666
|
+
clone() {
|
|
667
|
+
return new t12(this.receiver.clone(), this.name, this.type, this.sourceSpan);
|
|
668
|
+
}
|
|
669
|
+
};
|
|
670
|
+
vt = class t13 extends k {
|
|
671
|
+
static {
|
|
672
|
+
__name(this, "t");
|
|
673
|
+
}
|
|
674
|
+
receiver;
|
|
675
|
+
index;
|
|
676
|
+
constructor(e, n, s, r) {
|
|
677
|
+
super(s, r), this.receiver = e, this.index = n;
|
|
678
|
+
}
|
|
679
|
+
isEquivalent(e) {
|
|
680
|
+
return e instanceof t13 && this.receiver.isEquivalent(e.receiver) && this.index.isEquivalent(e.index);
|
|
681
|
+
}
|
|
682
|
+
isConstant() {
|
|
683
|
+
return false;
|
|
684
|
+
}
|
|
685
|
+
visitExpression(e, n) {
|
|
686
|
+
return e.visitReadKeyExpr(this, n);
|
|
687
|
+
}
|
|
688
|
+
set(e) {
|
|
689
|
+
return new pt(this.receiver, this.index, e, null, this.sourceSpan);
|
|
690
|
+
}
|
|
691
|
+
clone() {
|
|
692
|
+
return new t13(this.receiver.clone(), this.index.clone(), this.type, this.sourceSpan);
|
|
693
|
+
}
|
|
694
|
+
};
|
|
695
|
+
Ke = class t14 extends k {
|
|
696
|
+
static {
|
|
697
|
+
__name(this, "t");
|
|
698
|
+
}
|
|
699
|
+
entries;
|
|
700
|
+
constructor(e, n, s) {
|
|
701
|
+
super(n, s), this.entries = e;
|
|
702
|
+
}
|
|
703
|
+
isConstant() {
|
|
704
|
+
return this.entries.every((e) => e.isConstant());
|
|
705
|
+
}
|
|
706
|
+
isEquivalent(e) {
|
|
707
|
+
return e instanceof t14 && tt(this.entries, e.entries);
|
|
708
|
+
}
|
|
709
|
+
visitExpression(e, n) {
|
|
710
|
+
return e.visitLiteralArrayExpr(this, n);
|
|
711
|
+
}
|
|
712
|
+
clone() {
|
|
713
|
+
return new t14(this.entries.map((e) => e.clone()), this.type, this.sourceSpan);
|
|
714
|
+
}
|
|
715
|
+
};
|
|
716
|
+
Ye = class t15 extends k {
|
|
717
|
+
static {
|
|
718
|
+
__name(this, "t");
|
|
719
|
+
}
|
|
720
|
+
entries;
|
|
721
|
+
valueType = null;
|
|
722
|
+
constructor(e, n, s) {
|
|
723
|
+
super(n, s), this.entries = e, n && (this.valueType = n.valueType);
|
|
724
|
+
}
|
|
725
|
+
isEquivalent(e) {
|
|
726
|
+
return e instanceof t15 && tt(this.entries, e.entries);
|
|
727
|
+
}
|
|
728
|
+
isConstant() {
|
|
729
|
+
return this.entries.every((e) => e.value.isConstant());
|
|
730
|
+
}
|
|
731
|
+
visitExpression(e, n) {
|
|
732
|
+
return e.visitLiteralMapExpr(this, n);
|
|
733
|
+
}
|
|
734
|
+
clone() {
|
|
735
|
+
let e = this.entries.map((n) => n.clone());
|
|
736
|
+
return new t15(e, this.type, this.sourceSpan);
|
|
737
|
+
}
|
|
738
|
+
};
|
|
739
|
+
(function(t26) {
|
|
740
|
+
t26[t26.None = 0] = "None", t26[t26.Final = 1] = "Final", t26[t26.Private = 2] = "Private", t26[t26.Exported = 4] = "Exported", t26[t26.Static = 8] = "Static";
|
|
741
|
+
})(Ee || (Ee = {}));
|
|
742
|
+
Qe = class {
|
|
743
|
+
static {
|
|
744
|
+
__name(this, "Qe");
|
|
745
|
+
}
|
|
746
|
+
modifiers;
|
|
747
|
+
sourceSpan;
|
|
748
|
+
leadingComments;
|
|
749
|
+
constructor(e = Ee.None, n = null, s) {
|
|
750
|
+
this.modifiers = e, this.sourceSpan = n, this.leadingComments = s;
|
|
751
|
+
}
|
|
752
|
+
hasModifier(e) {
|
|
753
|
+
return (this.modifiers & e) !== 0;
|
|
754
|
+
}
|
|
755
|
+
addLeadingComment(e) {
|
|
756
|
+
this.leadingComments = this.leadingComments ?? [], this.leadingComments.push(e);
|
|
757
|
+
}
|
|
758
|
+
};
|
|
759
|
+
wt = class t16 extends Qe {
|
|
760
|
+
static {
|
|
761
|
+
__name(this, "t");
|
|
762
|
+
}
|
|
763
|
+
name;
|
|
764
|
+
value;
|
|
765
|
+
type;
|
|
766
|
+
constructor(e, n, s, r, o, a) {
|
|
767
|
+
super(r, o, a), this.name = e, this.value = n, this.type = s || n && n.type || null;
|
|
768
|
+
}
|
|
769
|
+
isEquivalent(e) {
|
|
770
|
+
return e instanceof t16 && this.name === e.name && (this.value ? !!e.value && this.value.isEquivalent(e.value) : !e.value);
|
|
771
|
+
}
|
|
772
|
+
visitStatement(e, n) {
|
|
773
|
+
return e.visitDeclareVarStmt(this, n);
|
|
774
|
+
}
|
|
775
|
+
};
|
|
776
|
+
xt = class t17 extends Qe {
|
|
777
|
+
static {
|
|
778
|
+
__name(this, "t");
|
|
779
|
+
}
|
|
780
|
+
expr;
|
|
781
|
+
constructor(e, n, s) {
|
|
782
|
+
super(Ee.None, n, s), this.expr = e;
|
|
783
|
+
}
|
|
784
|
+
isEquivalent(e) {
|
|
785
|
+
return e instanceof t17 && this.expr.isEquivalent(e.expr);
|
|
786
|
+
}
|
|
787
|
+
visitStatement(e, n) {
|
|
788
|
+
return e.visitExpressionStmt(this, n);
|
|
789
|
+
}
|
|
790
|
+
};
|
|
791
|
+
__name(Os, "Os");
|
|
792
|
+
Xr = Os("<unknown>");
|
|
793
|
+
rn = class t18 {
|
|
794
|
+
static {
|
|
795
|
+
__name(this, "t");
|
|
796
|
+
}
|
|
797
|
+
static INSTANCE = new t18();
|
|
798
|
+
keyOf(e) {
|
|
799
|
+
if (e instanceof Je && typeof e.value == "string") return `"${e.value}"`;
|
|
800
|
+
if (e instanceof Je) return String(e.value);
|
|
801
|
+
if (e instanceof Ke) {
|
|
802
|
+
let n = [];
|
|
803
|
+
for (let s of e.entries) n.push(this.keyOf(s));
|
|
804
|
+
return `[${n.join(",")}]`;
|
|
805
|
+
} else if (e instanceof Ye) {
|
|
806
|
+
let n = [];
|
|
807
|
+
for (let s of e.entries) {
|
|
808
|
+
let r = s.key;
|
|
809
|
+
s.quoted && (r = `"${r}"`), n.push(r + ":" + this.keyOf(s.value));
|
|
810
|
+
}
|
|
811
|
+
return `{${n.join(",")}}`;
|
|
812
|
+
} else {
|
|
813
|
+
if (e instanceof dt) return `import("${e.value.moduleName}", ${e.value.name})`;
|
|
814
|
+
if (e instanceof Ge) return `read(${e.name})`;
|
|
815
|
+
if (e instanceof ct) return `typeof(${this.keyOf(e.expr)})`;
|
|
816
|
+
throw new Error(`${this.constructor.name} does not handle expressions of type ${e.constructor.name}`);
|
|
817
|
+
}
|
|
818
|
+
}
|
|
819
|
+
};
|
|
820
|
+
i = "@angular/core";
|
|
821
|
+
P = class {
|
|
822
|
+
static {
|
|
823
|
+
__name(this, "P");
|
|
824
|
+
}
|
|
825
|
+
static NEW_METHOD = "factory";
|
|
826
|
+
static TRANSFORM_METHOD = "transform";
|
|
827
|
+
static PATCH_DEPS = "patchedDeps";
|
|
828
|
+
static core = { name: null, moduleName: i };
|
|
829
|
+
static namespaceHTML = { name: "\u0275\u0275namespaceHTML", moduleName: i };
|
|
830
|
+
static namespaceMathML = { name: "\u0275\u0275namespaceMathML", moduleName: i };
|
|
831
|
+
static namespaceSVG = { name: "\u0275\u0275namespaceSVG", moduleName: i };
|
|
832
|
+
static element = { name: "\u0275\u0275element", moduleName: i };
|
|
833
|
+
static elementStart = { name: "\u0275\u0275elementStart", moduleName: i };
|
|
834
|
+
static elementEnd = { name: "\u0275\u0275elementEnd", moduleName: i };
|
|
835
|
+
static advance = { name: "\u0275\u0275advance", moduleName: i };
|
|
836
|
+
static syntheticHostProperty = { name: "\u0275\u0275syntheticHostProperty", moduleName: i };
|
|
837
|
+
static syntheticHostListener = { name: "\u0275\u0275syntheticHostListener", moduleName: i };
|
|
838
|
+
static attribute = { name: "\u0275\u0275attribute", moduleName: i };
|
|
839
|
+
static attributeInterpolate1 = { name: "\u0275\u0275attributeInterpolate1", moduleName: i };
|
|
840
|
+
static attributeInterpolate2 = { name: "\u0275\u0275attributeInterpolate2", moduleName: i };
|
|
841
|
+
static attributeInterpolate3 = { name: "\u0275\u0275attributeInterpolate3", moduleName: i };
|
|
842
|
+
static attributeInterpolate4 = { name: "\u0275\u0275attributeInterpolate4", moduleName: i };
|
|
843
|
+
static attributeInterpolate5 = { name: "\u0275\u0275attributeInterpolate5", moduleName: i };
|
|
844
|
+
static attributeInterpolate6 = { name: "\u0275\u0275attributeInterpolate6", moduleName: i };
|
|
845
|
+
static attributeInterpolate7 = { name: "\u0275\u0275attributeInterpolate7", moduleName: i };
|
|
846
|
+
static attributeInterpolate8 = { name: "\u0275\u0275attributeInterpolate8", moduleName: i };
|
|
847
|
+
static attributeInterpolateV = { name: "\u0275\u0275attributeInterpolateV", moduleName: i };
|
|
848
|
+
static classProp = { name: "\u0275\u0275classProp", moduleName: i };
|
|
849
|
+
static elementContainerStart = { name: "\u0275\u0275elementContainerStart", moduleName: i };
|
|
850
|
+
static elementContainerEnd = { name: "\u0275\u0275elementContainerEnd", moduleName: i };
|
|
851
|
+
static elementContainer = { name: "\u0275\u0275elementContainer", moduleName: i };
|
|
852
|
+
static styleMap = { name: "\u0275\u0275styleMap", moduleName: i };
|
|
853
|
+
static styleMapInterpolate1 = { name: "\u0275\u0275styleMapInterpolate1", moduleName: i };
|
|
854
|
+
static styleMapInterpolate2 = { name: "\u0275\u0275styleMapInterpolate2", moduleName: i };
|
|
855
|
+
static styleMapInterpolate3 = { name: "\u0275\u0275styleMapInterpolate3", moduleName: i };
|
|
856
|
+
static styleMapInterpolate4 = { name: "\u0275\u0275styleMapInterpolate4", moduleName: i };
|
|
857
|
+
static styleMapInterpolate5 = { name: "\u0275\u0275styleMapInterpolate5", moduleName: i };
|
|
858
|
+
static styleMapInterpolate6 = { name: "\u0275\u0275styleMapInterpolate6", moduleName: i };
|
|
859
|
+
static styleMapInterpolate7 = { name: "\u0275\u0275styleMapInterpolate7", moduleName: i };
|
|
860
|
+
static styleMapInterpolate8 = { name: "\u0275\u0275styleMapInterpolate8", moduleName: i };
|
|
861
|
+
static styleMapInterpolateV = { name: "\u0275\u0275styleMapInterpolateV", moduleName: i };
|
|
862
|
+
static classMap = { name: "\u0275\u0275classMap", moduleName: i };
|
|
863
|
+
static classMapInterpolate1 = { name: "\u0275\u0275classMapInterpolate1", moduleName: i };
|
|
864
|
+
static classMapInterpolate2 = { name: "\u0275\u0275classMapInterpolate2", moduleName: i };
|
|
865
|
+
static classMapInterpolate3 = { name: "\u0275\u0275classMapInterpolate3", moduleName: i };
|
|
866
|
+
static classMapInterpolate4 = { name: "\u0275\u0275classMapInterpolate4", moduleName: i };
|
|
867
|
+
static classMapInterpolate5 = { name: "\u0275\u0275classMapInterpolate5", moduleName: i };
|
|
868
|
+
static classMapInterpolate6 = { name: "\u0275\u0275classMapInterpolate6", moduleName: i };
|
|
869
|
+
static classMapInterpolate7 = { name: "\u0275\u0275classMapInterpolate7", moduleName: i };
|
|
870
|
+
static classMapInterpolate8 = { name: "\u0275\u0275classMapInterpolate8", moduleName: i };
|
|
871
|
+
static classMapInterpolateV = { name: "\u0275\u0275classMapInterpolateV", moduleName: i };
|
|
872
|
+
static styleProp = { name: "\u0275\u0275styleProp", moduleName: i };
|
|
873
|
+
static stylePropInterpolate1 = { name: "\u0275\u0275stylePropInterpolate1", moduleName: i };
|
|
874
|
+
static stylePropInterpolate2 = { name: "\u0275\u0275stylePropInterpolate2", moduleName: i };
|
|
875
|
+
static stylePropInterpolate3 = { name: "\u0275\u0275stylePropInterpolate3", moduleName: i };
|
|
876
|
+
static stylePropInterpolate4 = { name: "\u0275\u0275stylePropInterpolate4", moduleName: i };
|
|
877
|
+
static stylePropInterpolate5 = { name: "\u0275\u0275stylePropInterpolate5", moduleName: i };
|
|
878
|
+
static stylePropInterpolate6 = { name: "\u0275\u0275stylePropInterpolate6", moduleName: i };
|
|
879
|
+
static stylePropInterpolate7 = { name: "\u0275\u0275stylePropInterpolate7", moduleName: i };
|
|
880
|
+
static stylePropInterpolate8 = { name: "\u0275\u0275stylePropInterpolate8", moduleName: i };
|
|
881
|
+
static stylePropInterpolateV = { name: "\u0275\u0275stylePropInterpolateV", moduleName: i };
|
|
882
|
+
static nextContext = { name: "\u0275\u0275nextContext", moduleName: i };
|
|
883
|
+
static resetView = { name: "\u0275\u0275resetView", moduleName: i };
|
|
884
|
+
static templateCreate = { name: "\u0275\u0275template", moduleName: i };
|
|
885
|
+
static defer = { name: "\u0275\u0275defer", moduleName: i };
|
|
886
|
+
static deferWhen = { name: "\u0275\u0275deferWhen", moduleName: i };
|
|
887
|
+
static deferOnIdle = { name: "\u0275\u0275deferOnIdle", moduleName: i };
|
|
888
|
+
static deferOnImmediate = { name: "\u0275\u0275deferOnImmediate", moduleName: i };
|
|
889
|
+
static deferOnTimer = { name: "\u0275\u0275deferOnTimer", moduleName: i };
|
|
890
|
+
static deferOnHover = { name: "\u0275\u0275deferOnHover", moduleName: i };
|
|
891
|
+
static deferOnInteraction = { name: "\u0275\u0275deferOnInteraction", moduleName: i };
|
|
892
|
+
static deferOnViewport = { name: "\u0275\u0275deferOnViewport", moduleName: i };
|
|
893
|
+
static deferPrefetchWhen = { name: "\u0275\u0275deferPrefetchWhen", moduleName: i };
|
|
894
|
+
static deferPrefetchOnIdle = { name: "\u0275\u0275deferPrefetchOnIdle", moduleName: i };
|
|
895
|
+
static deferPrefetchOnImmediate = { name: "\u0275\u0275deferPrefetchOnImmediate", moduleName: i };
|
|
896
|
+
static deferPrefetchOnTimer = { name: "\u0275\u0275deferPrefetchOnTimer", moduleName: i };
|
|
897
|
+
static deferPrefetchOnHover = { name: "\u0275\u0275deferPrefetchOnHover", moduleName: i };
|
|
898
|
+
static deferPrefetchOnInteraction = { name: "\u0275\u0275deferPrefetchOnInteraction", moduleName: i };
|
|
899
|
+
static deferPrefetchOnViewport = { name: "\u0275\u0275deferPrefetchOnViewport", moduleName: i };
|
|
900
|
+
static deferHydrateWhen = { name: "\u0275\u0275deferHydrateWhen", moduleName: i };
|
|
901
|
+
static deferHydrateNever = { name: "\u0275\u0275deferHydrateNever", moduleName: i };
|
|
902
|
+
static deferHydrateOnIdle = { name: "\u0275\u0275deferHydrateOnIdle", moduleName: i };
|
|
903
|
+
static deferHydrateOnImmediate = { name: "\u0275\u0275deferHydrateOnImmediate", moduleName: i };
|
|
904
|
+
static deferHydrateOnTimer = { name: "\u0275\u0275deferHydrateOnTimer", moduleName: i };
|
|
905
|
+
static deferHydrateOnHover = { name: "\u0275\u0275deferHydrateOnHover", moduleName: i };
|
|
906
|
+
static deferHydrateOnInteraction = { name: "\u0275\u0275deferHydrateOnInteraction", moduleName: i };
|
|
907
|
+
static deferHydrateOnViewport = { name: "\u0275\u0275deferHydrateOnViewport", moduleName: i };
|
|
908
|
+
static deferEnableTimerScheduling = { name: "\u0275\u0275deferEnableTimerScheduling", moduleName: i };
|
|
909
|
+
static conditional = { name: "\u0275\u0275conditional", moduleName: i };
|
|
910
|
+
static repeater = { name: "\u0275\u0275repeater", moduleName: i };
|
|
911
|
+
static repeaterCreate = { name: "\u0275\u0275repeaterCreate", moduleName: i };
|
|
912
|
+
static repeaterTrackByIndex = { name: "\u0275\u0275repeaterTrackByIndex", moduleName: i };
|
|
913
|
+
static repeaterTrackByIdentity = { name: "\u0275\u0275repeaterTrackByIdentity", moduleName: i };
|
|
914
|
+
static componentInstance = { name: "\u0275\u0275componentInstance", moduleName: i };
|
|
915
|
+
static text = { name: "\u0275\u0275text", moduleName: i };
|
|
916
|
+
static enableBindings = { name: "\u0275\u0275enableBindings", moduleName: i };
|
|
917
|
+
static disableBindings = { name: "\u0275\u0275disableBindings", moduleName: i };
|
|
918
|
+
static getCurrentView = { name: "\u0275\u0275getCurrentView", moduleName: i };
|
|
919
|
+
static textInterpolate = { name: "\u0275\u0275textInterpolate", moduleName: i };
|
|
920
|
+
static textInterpolate1 = { name: "\u0275\u0275textInterpolate1", moduleName: i };
|
|
921
|
+
static textInterpolate2 = { name: "\u0275\u0275textInterpolate2", moduleName: i };
|
|
922
|
+
static textInterpolate3 = { name: "\u0275\u0275textInterpolate3", moduleName: i };
|
|
923
|
+
static textInterpolate4 = { name: "\u0275\u0275textInterpolate4", moduleName: i };
|
|
924
|
+
static textInterpolate5 = { name: "\u0275\u0275textInterpolate5", moduleName: i };
|
|
925
|
+
static textInterpolate6 = { name: "\u0275\u0275textInterpolate6", moduleName: i };
|
|
926
|
+
static textInterpolate7 = { name: "\u0275\u0275textInterpolate7", moduleName: i };
|
|
927
|
+
static textInterpolate8 = { name: "\u0275\u0275textInterpolate8", moduleName: i };
|
|
928
|
+
static textInterpolateV = { name: "\u0275\u0275textInterpolateV", moduleName: i };
|
|
929
|
+
static restoreView = { name: "\u0275\u0275restoreView", moduleName: i };
|
|
930
|
+
static pureFunction0 = { name: "\u0275\u0275pureFunction0", moduleName: i };
|
|
931
|
+
static pureFunction1 = { name: "\u0275\u0275pureFunction1", moduleName: i };
|
|
932
|
+
static pureFunction2 = { name: "\u0275\u0275pureFunction2", moduleName: i };
|
|
933
|
+
static pureFunction3 = { name: "\u0275\u0275pureFunction3", moduleName: i };
|
|
934
|
+
static pureFunction4 = { name: "\u0275\u0275pureFunction4", moduleName: i };
|
|
935
|
+
static pureFunction5 = { name: "\u0275\u0275pureFunction5", moduleName: i };
|
|
936
|
+
static pureFunction6 = { name: "\u0275\u0275pureFunction6", moduleName: i };
|
|
937
|
+
static pureFunction7 = { name: "\u0275\u0275pureFunction7", moduleName: i };
|
|
938
|
+
static pureFunction8 = { name: "\u0275\u0275pureFunction8", moduleName: i };
|
|
939
|
+
static pureFunctionV = { name: "\u0275\u0275pureFunctionV", moduleName: i };
|
|
940
|
+
static pipeBind1 = { name: "\u0275\u0275pipeBind1", moduleName: i };
|
|
941
|
+
static pipeBind2 = { name: "\u0275\u0275pipeBind2", moduleName: i };
|
|
942
|
+
static pipeBind3 = { name: "\u0275\u0275pipeBind3", moduleName: i };
|
|
943
|
+
static pipeBind4 = { name: "\u0275\u0275pipeBind4", moduleName: i };
|
|
944
|
+
static pipeBindV = { name: "\u0275\u0275pipeBindV", moduleName: i };
|
|
945
|
+
static hostProperty = { name: "\u0275\u0275hostProperty", moduleName: i };
|
|
946
|
+
static property = { name: "\u0275\u0275property", moduleName: i };
|
|
947
|
+
static propertyInterpolate = { name: "\u0275\u0275propertyInterpolate", moduleName: i };
|
|
948
|
+
static propertyInterpolate1 = { name: "\u0275\u0275propertyInterpolate1", moduleName: i };
|
|
949
|
+
static propertyInterpolate2 = { name: "\u0275\u0275propertyInterpolate2", moduleName: i };
|
|
950
|
+
static propertyInterpolate3 = { name: "\u0275\u0275propertyInterpolate3", moduleName: i };
|
|
951
|
+
static propertyInterpolate4 = { name: "\u0275\u0275propertyInterpolate4", moduleName: i };
|
|
952
|
+
static propertyInterpolate5 = { name: "\u0275\u0275propertyInterpolate5", moduleName: i };
|
|
953
|
+
static propertyInterpolate6 = { name: "\u0275\u0275propertyInterpolate6", moduleName: i };
|
|
954
|
+
static propertyInterpolate7 = { name: "\u0275\u0275propertyInterpolate7", moduleName: i };
|
|
955
|
+
static propertyInterpolate8 = { name: "\u0275\u0275propertyInterpolate8", moduleName: i };
|
|
956
|
+
static propertyInterpolateV = { name: "\u0275\u0275propertyInterpolateV", moduleName: i };
|
|
957
|
+
static i18n = { name: "\u0275\u0275i18n", moduleName: i };
|
|
958
|
+
static i18nAttributes = { name: "\u0275\u0275i18nAttributes", moduleName: i };
|
|
959
|
+
static i18nExp = { name: "\u0275\u0275i18nExp", moduleName: i };
|
|
960
|
+
static i18nStart = { name: "\u0275\u0275i18nStart", moduleName: i };
|
|
961
|
+
static i18nEnd = { name: "\u0275\u0275i18nEnd", moduleName: i };
|
|
962
|
+
static i18nApply = { name: "\u0275\u0275i18nApply", moduleName: i };
|
|
963
|
+
static i18nPostprocess = { name: "\u0275\u0275i18nPostprocess", moduleName: i };
|
|
964
|
+
static pipe = { name: "\u0275\u0275pipe", moduleName: i };
|
|
965
|
+
static projection = { name: "\u0275\u0275projection", moduleName: i };
|
|
966
|
+
static projectionDef = { name: "\u0275\u0275projectionDef", moduleName: i };
|
|
967
|
+
static reference = { name: "\u0275\u0275reference", moduleName: i };
|
|
968
|
+
static inject = { name: "\u0275\u0275inject", moduleName: i };
|
|
969
|
+
static injectAttribute = { name: "\u0275\u0275injectAttribute", moduleName: i };
|
|
970
|
+
static directiveInject = { name: "\u0275\u0275directiveInject", moduleName: i };
|
|
971
|
+
static invalidFactory = { name: "\u0275\u0275invalidFactory", moduleName: i };
|
|
972
|
+
static invalidFactoryDep = { name: "\u0275\u0275invalidFactoryDep", moduleName: i };
|
|
973
|
+
static templateRefExtractor = { name: "\u0275\u0275templateRefExtractor", moduleName: i };
|
|
974
|
+
static forwardRef = { name: "forwardRef", moduleName: i };
|
|
975
|
+
static resolveForwardRef = { name: "resolveForwardRef", moduleName: i };
|
|
976
|
+
static replaceMetadata = { name: "\u0275\u0275replaceMetadata", moduleName: i };
|
|
977
|
+
static \u0275\u0275defineInjectable = { name: "\u0275\u0275defineInjectable", moduleName: i };
|
|
978
|
+
static declareInjectable = { name: "\u0275\u0275ngDeclareInjectable", moduleName: i };
|
|
979
|
+
static InjectableDeclaration = { name: "\u0275\u0275InjectableDeclaration", moduleName: i };
|
|
980
|
+
static resolveWindow = { name: "\u0275\u0275resolveWindow", moduleName: i };
|
|
981
|
+
static resolveDocument = { name: "\u0275\u0275resolveDocument", moduleName: i };
|
|
982
|
+
static resolveBody = { name: "\u0275\u0275resolveBody", moduleName: i };
|
|
983
|
+
static getComponentDepsFactory = { name: "\u0275\u0275getComponentDepsFactory", moduleName: i };
|
|
984
|
+
static defineComponent = { name: "\u0275\u0275defineComponent", moduleName: i };
|
|
985
|
+
static declareComponent = { name: "\u0275\u0275ngDeclareComponent", moduleName: i };
|
|
986
|
+
static setComponentScope = { name: "\u0275\u0275setComponentScope", moduleName: i };
|
|
987
|
+
static ChangeDetectionStrategy = { name: "ChangeDetectionStrategy", moduleName: i };
|
|
988
|
+
static ViewEncapsulation = { name: "ViewEncapsulation", moduleName: i };
|
|
989
|
+
static ComponentDeclaration = { name: "\u0275\u0275ComponentDeclaration", moduleName: i };
|
|
990
|
+
static FactoryDeclaration = { name: "\u0275\u0275FactoryDeclaration", moduleName: i };
|
|
991
|
+
static declareFactory = { name: "\u0275\u0275ngDeclareFactory", moduleName: i };
|
|
992
|
+
static FactoryTarget = { name: "\u0275\u0275FactoryTarget", moduleName: i };
|
|
993
|
+
static defineDirective = { name: "\u0275\u0275defineDirective", moduleName: i };
|
|
994
|
+
static declareDirective = { name: "\u0275\u0275ngDeclareDirective", moduleName: i };
|
|
995
|
+
static DirectiveDeclaration = { name: "\u0275\u0275DirectiveDeclaration", moduleName: i };
|
|
996
|
+
static InjectorDef = { name: "\u0275\u0275InjectorDef", moduleName: i };
|
|
997
|
+
static InjectorDeclaration = { name: "\u0275\u0275InjectorDeclaration", moduleName: i };
|
|
998
|
+
static defineInjector = { name: "\u0275\u0275defineInjector", moduleName: i };
|
|
999
|
+
static declareInjector = { name: "\u0275\u0275ngDeclareInjector", moduleName: i };
|
|
1000
|
+
static NgModuleDeclaration = { name: "\u0275\u0275NgModuleDeclaration", moduleName: i };
|
|
1001
|
+
static ModuleWithProviders = { name: "ModuleWithProviders", moduleName: i };
|
|
1002
|
+
static defineNgModule = { name: "\u0275\u0275defineNgModule", moduleName: i };
|
|
1003
|
+
static declareNgModule = { name: "\u0275\u0275ngDeclareNgModule", moduleName: i };
|
|
1004
|
+
static setNgModuleScope = { name: "\u0275\u0275setNgModuleScope", moduleName: i };
|
|
1005
|
+
static registerNgModuleType = { name: "\u0275\u0275registerNgModuleType", moduleName: i };
|
|
1006
|
+
static PipeDeclaration = { name: "\u0275\u0275PipeDeclaration", moduleName: i };
|
|
1007
|
+
static definePipe = { name: "\u0275\u0275definePipe", moduleName: i };
|
|
1008
|
+
static declarePipe = { name: "\u0275\u0275ngDeclarePipe", moduleName: i };
|
|
1009
|
+
static declareClassMetadata = { name: "\u0275\u0275ngDeclareClassMetadata", moduleName: i };
|
|
1010
|
+
static declareClassMetadataAsync = { name: "\u0275\u0275ngDeclareClassMetadataAsync", moduleName: i };
|
|
1011
|
+
static setClassMetadata = { name: "\u0275setClassMetadata", moduleName: i };
|
|
1012
|
+
static setClassMetadataAsync = { name: "\u0275setClassMetadataAsync", moduleName: i };
|
|
1013
|
+
static setClassDebugInfo = { name: "\u0275setClassDebugInfo", moduleName: i };
|
|
1014
|
+
static queryRefresh = { name: "\u0275\u0275queryRefresh", moduleName: i };
|
|
1015
|
+
static viewQuery = { name: "\u0275\u0275viewQuery", moduleName: i };
|
|
1016
|
+
static loadQuery = { name: "\u0275\u0275loadQuery", moduleName: i };
|
|
1017
|
+
static contentQuery = { name: "\u0275\u0275contentQuery", moduleName: i };
|
|
1018
|
+
static viewQuerySignal = { name: "\u0275\u0275viewQuerySignal", moduleName: i };
|
|
1019
|
+
static contentQuerySignal = { name: "\u0275\u0275contentQuerySignal", moduleName: i };
|
|
1020
|
+
static queryAdvance = { name: "\u0275\u0275queryAdvance", moduleName: i };
|
|
1021
|
+
static twoWayProperty = { name: "\u0275\u0275twoWayProperty", moduleName: i };
|
|
1022
|
+
static twoWayBindingSet = { name: "\u0275\u0275twoWayBindingSet", moduleName: i };
|
|
1023
|
+
static twoWayListener = { name: "\u0275\u0275twoWayListener", moduleName: i };
|
|
1024
|
+
static declareLet = { name: "\u0275\u0275declareLet", moduleName: i };
|
|
1025
|
+
static storeLet = { name: "\u0275\u0275storeLet", moduleName: i };
|
|
1026
|
+
static readContextLet = { name: "\u0275\u0275readContextLet", moduleName: i };
|
|
1027
|
+
static NgOnChangesFeature = { name: "\u0275\u0275NgOnChangesFeature", moduleName: i };
|
|
1028
|
+
static InheritDefinitionFeature = { name: "\u0275\u0275InheritDefinitionFeature", moduleName: i };
|
|
1029
|
+
static CopyDefinitionFeature = { name: "\u0275\u0275CopyDefinitionFeature", moduleName: i };
|
|
1030
|
+
static ProvidersFeature = { name: "\u0275\u0275ProvidersFeature", moduleName: i };
|
|
1031
|
+
static HostDirectivesFeature = { name: "\u0275\u0275HostDirectivesFeature", moduleName: i };
|
|
1032
|
+
static InputTransformsFeatureFeature = { name: "\u0275\u0275InputTransformsFeature", moduleName: i };
|
|
1033
|
+
static ExternalStylesFeature = { name: "\u0275\u0275ExternalStylesFeature", moduleName: i };
|
|
1034
|
+
static listener = { name: "\u0275\u0275listener", moduleName: i };
|
|
1035
|
+
static getInheritedFactory = { name: "\u0275\u0275getInheritedFactory", moduleName: i };
|
|
1036
|
+
static sanitizeHtml = { name: "\u0275\u0275sanitizeHtml", moduleName: i };
|
|
1037
|
+
static sanitizeStyle = { name: "\u0275\u0275sanitizeStyle", moduleName: i };
|
|
1038
|
+
static sanitizeResourceUrl = { name: "\u0275\u0275sanitizeResourceUrl", moduleName: i };
|
|
1039
|
+
static sanitizeScript = { name: "\u0275\u0275sanitizeScript", moduleName: i };
|
|
1040
|
+
static sanitizeUrl = { name: "\u0275\u0275sanitizeUrl", moduleName: i };
|
|
1041
|
+
static sanitizeUrlOrResourceUrl = { name: "\u0275\u0275sanitizeUrlOrResourceUrl", moduleName: i };
|
|
1042
|
+
static trustConstantHtml = { name: "\u0275\u0275trustConstantHtml", moduleName: i };
|
|
1043
|
+
static trustConstantResourceUrl = { name: "\u0275\u0275trustConstantResourceUrl", moduleName: i };
|
|
1044
|
+
static validateIframeAttribute = { name: "\u0275\u0275validateIframeAttribute", moduleName: i };
|
|
1045
|
+
static InputSignalBrandWriteType = { name: "\u0275INPUT_SIGNAL_BRAND_WRITE_TYPE", moduleName: i };
|
|
1046
|
+
static UnwrapDirectiveSignalInputs = { name: "\u0275UnwrapDirectiveSignalInputs", moduleName: i };
|
|
1047
|
+
static unwrapWritableSignal = { name: "\u0275unwrapWritableSignal", moduleName: i };
|
|
1048
|
+
};
|
|
1049
|
+
St = class {
|
|
1050
|
+
static {
|
|
1051
|
+
__name(this, "St");
|
|
1052
|
+
}
|
|
1053
|
+
full;
|
|
1054
|
+
major;
|
|
1055
|
+
minor;
|
|
1056
|
+
patch;
|
|
1057
|
+
constructor(e) {
|
|
1058
|
+
this.full = e;
|
|
1059
|
+
let n = e.split(".");
|
|
1060
|
+
this.major = n[0], this.minor = n[1], this.patch = n.slice(2).join(".");
|
|
1061
|
+
}
|
|
1062
|
+
};
|
|
1063
|
+
(function(t26) {
|
|
1064
|
+
t26[t26.Class = 0] = "Class", t26[t26.Function = 1] = "Function";
|
|
1065
|
+
})(on || (on = {}));
|
|
1066
|
+
(function(t26) {
|
|
1067
|
+
t26[t26.Directive = 0] = "Directive", t26[t26.Component = 1] = "Component", t26[t26.Injectable = 2] = "Injectable", t26[t26.Pipe = 3] = "Pipe", t26[t26.NgModule = 4] = "NgModule";
|
|
1068
|
+
})(an || (an = {}));
|
|
1069
|
+
ye = class {
|
|
1070
|
+
static {
|
|
1071
|
+
__name(this, "ye");
|
|
1072
|
+
}
|
|
1073
|
+
input;
|
|
1074
|
+
errLocation;
|
|
1075
|
+
ctxLocation;
|
|
1076
|
+
message;
|
|
1077
|
+
constructor(e, n, s, r) {
|
|
1078
|
+
this.input = n, this.errLocation = s, this.ctxLocation = r, this.message = `Parser Error: ${e} ${s} [${n}] in ${r}`;
|
|
1079
|
+
}
|
|
1080
|
+
};
|
|
1081
|
+
G = class {
|
|
1082
|
+
static {
|
|
1083
|
+
__name(this, "G");
|
|
1084
|
+
}
|
|
1085
|
+
start;
|
|
1086
|
+
end;
|
|
1087
|
+
constructor(e, n) {
|
|
1088
|
+
this.start = e, this.end = n;
|
|
1089
|
+
}
|
|
1090
|
+
toAbsolute(e) {
|
|
1091
|
+
return new O(e + this.start, e + this.end);
|
|
1092
|
+
}
|
|
1093
|
+
};
|
|
1094
|
+
E = class {
|
|
1095
|
+
static {
|
|
1096
|
+
__name(this, "E");
|
|
1097
|
+
}
|
|
1098
|
+
span;
|
|
1099
|
+
sourceSpan;
|
|
1100
|
+
constructor(e, n) {
|
|
1101
|
+
this.span = e, this.sourceSpan = n;
|
|
1102
|
+
}
|
|
1103
|
+
toString() {
|
|
1104
|
+
return "AST";
|
|
1105
|
+
}
|
|
1106
|
+
};
|
|
1107
|
+
se = class extends E {
|
|
1108
|
+
static {
|
|
1109
|
+
__name(this, "se");
|
|
1110
|
+
}
|
|
1111
|
+
nameSpan;
|
|
1112
|
+
constructor(e, n, s) {
|
|
1113
|
+
super(e, n), this.nameSpan = s;
|
|
1114
|
+
}
|
|
1115
|
+
};
|
|
1116
|
+
b = class extends E {
|
|
1117
|
+
static {
|
|
1118
|
+
__name(this, "b");
|
|
1119
|
+
}
|
|
1120
|
+
visit(e, n = null) {
|
|
1121
|
+
}
|
|
1122
|
+
};
|
|
1123
|
+
X = class extends E {
|
|
1124
|
+
static {
|
|
1125
|
+
__name(this, "X");
|
|
1126
|
+
}
|
|
1127
|
+
visit(e, n = null) {
|
|
1128
|
+
return e.visitImplicitReceiver(this, n);
|
|
1129
|
+
}
|
|
1130
|
+
};
|
|
1131
|
+
Et = class extends X {
|
|
1132
|
+
static {
|
|
1133
|
+
__name(this, "Et");
|
|
1134
|
+
}
|
|
1135
|
+
visit(e, n = null) {
|
|
1136
|
+
var s;
|
|
1137
|
+
return (s = e.visitThisReceiver) == null ? void 0 : s.call(e, this, n);
|
|
1138
|
+
}
|
|
1139
|
+
};
|
|
1140
|
+
_e = class extends E {
|
|
1141
|
+
static {
|
|
1142
|
+
__name(this, "_e");
|
|
1143
|
+
}
|
|
1144
|
+
expressions;
|
|
1145
|
+
constructor(e, n, s) {
|
|
1146
|
+
super(e, n), this.expressions = s;
|
|
1147
|
+
}
|
|
1148
|
+
visit(e, n = null) {
|
|
1149
|
+
return e.visitChain(this, n);
|
|
1150
|
+
}
|
|
1151
|
+
};
|
|
1152
|
+
Ce = class extends E {
|
|
1153
|
+
static {
|
|
1154
|
+
__name(this, "Ce");
|
|
1155
|
+
}
|
|
1156
|
+
condition;
|
|
1157
|
+
trueExp;
|
|
1158
|
+
falseExp;
|
|
1159
|
+
constructor(e, n, s, r, o) {
|
|
1160
|
+
super(e, n), this.condition = s, this.trueExp = r, this.falseExp = o;
|
|
1161
|
+
}
|
|
1162
|
+
visit(e, n = null) {
|
|
1163
|
+
return e.visitConditional(this, n);
|
|
1164
|
+
}
|
|
1165
|
+
};
|
|
1166
|
+
re = class extends se {
|
|
1167
|
+
static {
|
|
1168
|
+
__name(this, "re");
|
|
1169
|
+
}
|
|
1170
|
+
receiver;
|
|
1171
|
+
name;
|
|
1172
|
+
constructor(e, n, s, r, o) {
|
|
1173
|
+
super(e, n, s), this.receiver = r, this.name = o;
|
|
1174
|
+
}
|
|
1175
|
+
visit(e, n = null) {
|
|
1176
|
+
return e.visitPropertyRead(this, n);
|
|
1177
|
+
}
|
|
1178
|
+
};
|
|
1179
|
+
Te = class extends se {
|
|
1180
|
+
static {
|
|
1181
|
+
__name(this, "Te");
|
|
1182
|
+
}
|
|
1183
|
+
receiver;
|
|
1184
|
+
name;
|
|
1185
|
+
value;
|
|
1186
|
+
constructor(e, n, s, r, o, a) {
|
|
1187
|
+
super(e, n, s), this.receiver = r, this.name = o, this.value = a;
|
|
1188
|
+
}
|
|
1189
|
+
visit(e, n = null) {
|
|
1190
|
+
return e.visitPropertyWrite(this, n);
|
|
1191
|
+
}
|
|
1192
|
+
};
|
|
1193
|
+
ie = class extends se {
|
|
1194
|
+
static {
|
|
1195
|
+
__name(this, "ie");
|
|
1196
|
+
}
|
|
1197
|
+
receiver;
|
|
1198
|
+
name;
|
|
1199
|
+
constructor(e, n, s, r, o) {
|
|
1200
|
+
super(e, n, s), this.receiver = r, this.name = o;
|
|
1201
|
+
}
|
|
1202
|
+
visit(e, n = null) {
|
|
1203
|
+
return e.visitSafePropertyRead(this, n);
|
|
1204
|
+
}
|
|
1205
|
+
};
|
|
1206
|
+
ke = class extends E {
|
|
1207
|
+
static {
|
|
1208
|
+
__name(this, "ke");
|
|
1209
|
+
}
|
|
1210
|
+
receiver;
|
|
1211
|
+
key;
|
|
1212
|
+
constructor(e, n, s, r) {
|
|
1213
|
+
super(e, n), this.receiver = s, this.key = r;
|
|
1214
|
+
}
|
|
1215
|
+
visit(e, n = null) {
|
|
1216
|
+
return e.visitKeyedRead(this, n);
|
|
1217
|
+
}
|
|
1218
|
+
};
|
|
1219
|
+
oe = class extends E {
|
|
1220
|
+
static {
|
|
1221
|
+
__name(this, "oe");
|
|
1222
|
+
}
|
|
1223
|
+
receiver;
|
|
1224
|
+
key;
|
|
1225
|
+
constructor(e, n, s, r) {
|
|
1226
|
+
super(e, n), this.receiver = s, this.key = r;
|
|
1227
|
+
}
|
|
1228
|
+
visit(e, n = null) {
|
|
1229
|
+
return e.visitSafeKeyedRead(this, n);
|
|
1230
|
+
}
|
|
1231
|
+
};
|
|
1232
|
+
Ie = class extends E {
|
|
1233
|
+
static {
|
|
1234
|
+
__name(this, "Ie");
|
|
1235
|
+
}
|
|
1236
|
+
receiver;
|
|
1237
|
+
key;
|
|
1238
|
+
value;
|
|
1239
|
+
constructor(e, n, s, r, o) {
|
|
1240
|
+
super(e, n), this.receiver = s, this.key = r, this.value = o;
|
|
1241
|
+
}
|
|
1242
|
+
visit(e, n = null) {
|
|
1243
|
+
return e.visitKeyedWrite(this, n);
|
|
1244
|
+
}
|
|
1245
|
+
};
|
|
1246
|
+
be = class extends se {
|
|
1247
|
+
static {
|
|
1248
|
+
__name(this, "be");
|
|
1249
|
+
}
|
|
1250
|
+
exp;
|
|
1251
|
+
name;
|
|
1252
|
+
args;
|
|
1253
|
+
constructor(e, n, s, r, o, a) {
|
|
1254
|
+
super(e, n, a), this.exp = s, this.name = r, this.args = o;
|
|
1255
|
+
}
|
|
1256
|
+
visit(e, n = null) {
|
|
1257
|
+
return e.visitPipe(this, n);
|
|
1258
|
+
}
|
|
1259
|
+
};
|
|
1260
|
+
A = class extends E {
|
|
1261
|
+
static {
|
|
1262
|
+
__name(this, "A");
|
|
1263
|
+
}
|
|
1264
|
+
value;
|
|
1265
|
+
constructor(e, n, s) {
|
|
1266
|
+
super(e, n), this.value = s;
|
|
1267
|
+
}
|
|
1268
|
+
visit(e, n = null) {
|
|
1269
|
+
return e.visitLiteralPrimitive(this, n);
|
|
1270
|
+
}
|
|
1271
|
+
};
|
|
1272
|
+
Ae = class extends E {
|
|
1273
|
+
static {
|
|
1274
|
+
__name(this, "Ae");
|
|
1275
|
+
}
|
|
1276
|
+
expressions;
|
|
1277
|
+
constructor(e, n, s) {
|
|
1278
|
+
super(e, n), this.expressions = s;
|
|
1279
|
+
}
|
|
1280
|
+
visit(e, n = null) {
|
|
1281
|
+
return e.visitLiteralArray(this, n);
|
|
1282
|
+
}
|
|
1283
|
+
};
|
|
1284
|
+
Ne = class extends E {
|
|
1285
|
+
static {
|
|
1286
|
+
__name(this, "Ne");
|
|
1287
|
+
}
|
|
1288
|
+
keys;
|
|
1289
|
+
values;
|
|
1290
|
+
constructor(e, n, s, r) {
|
|
1291
|
+
super(e, n), this.keys = s, this.values = r;
|
|
1292
|
+
}
|
|
1293
|
+
visit(e, n = null) {
|
|
1294
|
+
return e.visitLiteralMap(this, n);
|
|
1295
|
+
}
|
|
1296
|
+
};
|
|
1297
|
+
Pe = class extends E {
|
|
1298
|
+
static {
|
|
1299
|
+
__name(this, "Pe");
|
|
1300
|
+
}
|
|
1301
|
+
strings;
|
|
1302
|
+
expressions;
|
|
1303
|
+
constructor(e, n, s, r) {
|
|
1304
|
+
super(e, n), this.strings = s, this.expressions = r;
|
|
1305
|
+
}
|
|
1306
|
+
visit(e, n = null) {
|
|
1307
|
+
return e.visitInterpolation(this, n);
|
|
1308
|
+
}
|
|
1309
|
+
};
|
|
1310
|
+
N = class extends E {
|
|
1311
|
+
static {
|
|
1312
|
+
__name(this, "N");
|
|
1313
|
+
}
|
|
1314
|
+
operation;
|
|
1315
|
+
left;
|
|
1316
|
+
right;
|
|
1317
|
+
constructor(e, n, s, r, o) {
|
|
1318
|
+
super(e, n), this.operation = s, this.left = r, this.right = o;
|
|
1319
|
+
}
|
|
1320
|
+
visit(e, n = null) {
|
|
1321
|
+
return e.visitBinary(this, n);
|
|
1322
|
+
}
|
|
1323
|
+
};
|
|
1324
|
+
ae = class t19 extends N {
|
|
1325
|
+
static {
|
|
1326
|
+
__name(this, "t");
|
|
1327
|
+
}
|
|
1328
|
+
operator;
|
|
1329
|
+
expr;
|
|
1330
|
+
left = null;
|
|
1331
|
+
right = null;
|
|
1332
|
+
operation = null;
|
|
1333
|
+
static createMinus(e, n, s) {
|
|
1334
|
+
return new t19(e, n, "-", s, "-", new A(e, n, 0), s);
|
|
1335
|
+
}
|
|
1336
|
+
static createPlus(e, n, s) {
|
|
1337
|
+
return new t19(e, n, "+", s, "-", s, new A(e, n, 0));
|
|
1338
|
+
}
|
|
1339
|
+
constructor(e, n, s, r, o, a, l) {
|
|
1340
|
+
super(e, n, o, a, l), this.operator = s, this.expr = r;
|
|
1341
|
+
}
|
|
1342
|
+
visit(e, n = null) {
|
|
1343
|
+
return e.visitUnary !== void 0 ? e.visitUnary(this, n) : e.visitBinary(this, n);
|
|
1344
|
+
}
|
|
1345
|
+
};
|
|
1346
|
+
Le = class extends E {
|
|
1347
|
+
static {
|
|
1348
|
+
__name(this, "Le");
|
|
1349
|
+
}
|
|
1350
|
+
expression;
|
|
1351
|
+
constructor(e, n, s) {
|
|
1352
|
+
super(e, n), this.expression = s;
|
|
1353
|
+
}
|
|
1354
|
+
visit(e, n = null) {
|
|
1355
|
+
return e.visitPrefixNot(this, n);
|
|
1356
|
+
}
|
|
1357
|
+
};
|
|
1358
|
+
Me = class extends E {
|
|
1359
|
+
static {
|
|
1360
|
+
__name(this, "Me");
|
|
1361
|
+
}
|
|
1362
|
+
expression;
|
|
1363
|
+
constructor(e, n, s) {
|
|
1364
|
+
super(e, n), this.expression = s;
|
|
1365
|
+
}
|
|
1366
|
+
visit(e, n = null) {
|
|
1367
|
+
return e.visitTypeofExpresion(this, n);
|
|
1368
|
+
}
|
|
1369
|
+
};
|
|
1370
|
+
$e = class extends E {
|
|
1371
|
+
static {
|
|
1372
|
+
__name(this, "$e");
|
|
1373
|
+
}
|
|
1374
|
+
expression;
|
|
1375
|
+
constructor(e, n, s) {
|
|
1376
|
+
super(e, n), this.expression = s;
|
|
1377
|
+
}
|
|
1378
|
+
visit(e, n = null) {
|
|
1379
|
+
return e.visitNonNullAssert(this, n);
|
|
1380
|
+
}
|
|
1381
|
+
};
|
|
1382
|
+
Re = class extends E {
|
|
1383
|
+
static {
|
|
1384
|
+
__name(this, "Re");
|
|
1385
|
+
}
|
|
1386
|
+
receiver;
|
|
1387
|
+
args;
|
|
1388
|
+
argumentSpan;
|
|
1389
|
+
constructor(e, n, s, r, o) {
|
|
1390
|
+
super(e, n), this.receiver = s, this.args = r, this.argumentSpan = o;
|
|
1391
|
+
}
|
|
1392
|
+
visit(e, n = null) {
|
|
1393
|
+
return e.visitCall(this, n);
|
|
1394
|
+
}
|
|
1395
|
+
};
|
|
1396
|
+
le = class extends E {
|
|
1397
|
+
static {
|
|
1398
|
+
__name(this, "le");
|
|
1399
|
+
}
|
|
1400
|
+
receiver;
|
|
1401
|
+
args;
|
|
1402
|
+
argumentSpan;
|
|
1403
|
+
constructor(e, n, s, r, o) {
|
|
1404
|
+
super(e, n), this.receiver = s, this.args = r, this.argumentSpan = o;
|
|
1405
|
+
}
|
|
1406
|
+
visit(e, n = null) {
|
|
1407
|
+
return e.visitSafeCall(this, n);
|
|
1408
|
+
}
|
|
1409
|
+
};
|
|
1410
|
+
O = class {
|
|
1411
|
+
static {
|
|
1412
|
+
__name(this, "O");
|
|
1413
|
+
}
|
|
1414
|
+
start;
|
|
1415
|
+
end;
|
|
1416
|
+
constructor(e, n) {
|
|
1417
|
+
this.start = e, this.end = n;
|
|
1418
|
+
}
|
|
1419
|
+
};
|
|
1420
|
+
W = class extends E {
|
|
1421
|
+
static {
|
|
1422
|
+
__name(this, "W");
|
|
1423
|
+
}
|
|
1424
|
+
ast;
|
|
1425
|
+
source;
|
|
1426
|
+
location;
|
|
1427
|
+
errors;
|
|
1428
|
+
constructor(e, n, s, r, o) {
|
|
1429
|
+
super(new G(0, n === null ? 0 : n.length), new O(r, n === null ? r : r + n.length)), this.ast = e, this.source = n, this.location = s, this.errors = o;
|
|
1430
|
+
}
|
|
1431
|
+
visit(e, n = null) {
|
|
1432
|
+
return e.visitASTWithSource ? e.visitASTWithSource(this, n) : this.ast.visit(e, n);
|
|
1433
|
+
}
|
|
1434
|
+
toString() {
|
|
1435
|
+
return `${this.source} in ${this.location}`;
|
|
1436
|
+
}
|
|
1437
|
+
};
|
|
1438
|
+
ce = class {
|
|
1439
|
+
static {
|
|
1440
|
+
__name(this, "ce");
|
|
1441
|
+
}
|
|
1442
|
+
sourceSpan;
|
|
1443
|
+
key;
|
|
1444
|
+
value;
|
|
1445
|
+
constructor(e, n, s) {
|
|
1446
|
+
this.sourceSpan = e, this.key = n, this.value = s;
|
|
1447
|
+
}
|
|
1448
|
+
};
|
|
1449
|
+
Be = class {
|
|
1450
|
+
static {
|
|
1451
|
+
__name(this, "Be");
|
|
1452
|
+
}
|
|
1453
|
+
sourceSpan;
|
|
1454
|
+
key;
|
|
1455
|
+
value;
|
|
1456
|
+
constructor(e, n, s) {
|
|
1457
|
+
this.sourceSpan = e, this.key = n, this.value = s;
|
|
1458
|
+
}
|
|
1459
|
+
};
|
|
1460
|
+
yt = class {
|
|
1461
|
+
static {
|
|
1462
|
+
__name(this, "yt");
|
|
1463
|
+
}
|
|
1464
|
+
visit(e, n) {
|
|
1465
|
+
e.visit(this, n);
|
|
1466
|
+
}
|
|
1467
|
+
visitUnary(e, n) {
|
|
1468
|
+
this.visit(e.expr, n);
|
|
1469
|
+
}
|
|
1470
|
+
visitBinary(e, n) {
|
|
1471
|
+
this.visit(e.left, n), this.visit(e.right, n);
|
|
1472
|
+
}
|
|
1473
|
+
visitChain(e, n) {
|
|
1474
|
+
this.visitAll(e.expressions, n);
|
|
1475
|
+
}
|
|
1476
|
+
visitConditional(e, n) {
|
|
1477
|
+
this.visit(e.condition, n), this.visit(e.trueExp, n), this.visit(e.falseExp, n);
|
|
1478
|
+
}
|
|
1479
|
+
visitPipe(e, n) {
|
|
1480
|
+
this.visit(e.exp, n), this.visitAll(e.args, n);
|
|
1481
|
+
}
|
|
1482
|
+
visitImplicitReceiver(e, n) {
|
|
1483
|
+
}
|
|
1484
|
+
visitThisReceiver(e, n) {
|
|
1485
|
+
}
|
|
1486
|
+
visitInterpolation(e, n) {
|
|
1487
|
+
this.visitAll(e.expressions, n);
|
|
1488
|
+
}
|
|
1489
|
+
visitKeyedRead(e, n) {
|
|
1490
|
+
this.visit(e.receiver, n), this.visit(e.key, n);
|
|
1491
|
+
}
|
|
1492
|
+
visitKeyedWrite(e, n) {
|
|
1493
|
+
this.visit(e.receiver, n), this.visit(e.key, n), this.visit(e.value, n);
|
|
1494
|
+
}
|
|
1495
|
+
visitLiteralArray(e, n) {
|
|
1496
|
+
this.visitAll(e.expressions, n);
|
|
1497
|
+
}
|
|
1498
|
+
visitLiteralMap(e, n) {
|
|
1499
|
+
this.visitAll(e.values, n);
|
|
1500
|
+
}
|
|
1501
|
+
visitLiteralPrimitive(e, n) {
|
|
1502
|
+
}
|
|
1503
|
+
visitPrefixNot(e, n) {
|
|
1504
|
+
this.visit(e.expression, n);
|
|
1505
|
+
}
|
|
1506
|
+
visitTypeofExpresion(e, n) {
|
|
1507
|
+
this.visit(e.expression, n);
|
|
1508
|
+
}
|
|
1509
|
+
visitNonNullAssert(e, n) {
|
|
1510
|
+
this.visit(e.expression, n);
|
|
1511
|
+
}
|
|
1512
|
+
visitPropertyRead(e, n) {
|
|
1513
|
+
this.visit(e.receiver, n);
|
|
1514
|
+
}
|
|
1515
|
+
visitPropertyWrite(e, n) {
|
|
1516
|
+
this.visit(e.receiver, n), this.visit(e.value, n);
|
|
1517
|
+
}
|
|
1518
|
+
visitSafePropertyRead(e, n) {
|
|
1519
|
+
this.visit(e.receiver, n);
|
|
1520
|
+
}
|
|
1521
|
+
visitSafeKeyedRead(e, n) {
|
|
1522
|
+
this.visit(e.receiver, n), this.visit(e.key, n);
|
|
1523
|
+
}
|
|
1524
|
+
visitCall(e, n) {
|
|
1525
|
+
this.visit(e.receiver, n), this.visitAll(e.args, n);
|
|
1526
|
+
}
|
|
1527
|
+
visitSafeCall(e, n) {
|
|
1528
|
+
this.visit(e.receiver, n), this.visitAll(e.args, n);
|
|
1529
|
+
}
|
|
1530
|
+
visitAll(e, n) {
|
|
1531
|
+
for (let s of e) this.visit(s, n);
|
|
1532
|
+
}
|
|
1533
|
+
};
|
|
1534
|
+
(function(t26) {
|
|
1535
|
+
t26[t26.DEFAULT = 0] = "DEFAULT", t26[t26.LITERAL_ATTR = 1] = "LITERAL_ATTR", t26[t26.ANIMATION = 2] = "ANIMATION", t26[t26.TWO_WAY = 3] = "TWO_WAY";
|
|
1536
|
+
})(ln || (ln = {}));
|
|
1537
|
+
(function(t26) {
|
|
1538
|
+
t26[t26.Regular = 0] = "Regular", t26[t26.Animation = 1] = "Animation", t26[t26.TwoWay = 2] = "TwoWay";
|
|
1539
|
+
})(cn || (cn = {}));
|
|
1540
|
+
(function(t26) {
|
|
1541
|
+
t26[t26.Property = 0] = "Property", t26[t26.Attribute = 1] = "Attribute", t26[t26.Class = 2] = "Class", t26[t26.Style = 3] = "Style", t26[t26.Animation = 4] = "Animation", t26[t26.TwoWay = 5] = "TwoWay";
|
|
1542
|
+
})(H || (H = {}));
|
|
1543
|
+
(function(t26) {
|
|
1544
|
+
t26[t26.RAW_TEXT = 0] = "RAW_TEXT", t26[t26.ESCAPABLE_RAW_TEXT = 1] = "ESCAPABLE_RAW_TEXT", t26[t26.PARSABLE_DATA = 2] = "PARSABLE_DATA";
|
|
1545
|
+
})(un || (un = {}));
|
|
1546
|
+
Fs = [/@/, /^\s*$/, /[<>]/, /^[{}]$/, /&(#|[a-z])/i, /^\/\//];
|
|
1547
|
+
__name(Vs, "Vs");
|
|
1548
|
+
_t = class t20 {
|
|
1549
|
+
static {
|
|
1550
|
+
__name(this, "t");
|
|
1551
|
+
}
|
|
1552
|
+
start;
|
|
1553
|
+
end;
|
|
1554
|
+
static fromArray(e) {
|
|
1555
|
+
return e ? (Vs("interpolation", e), new t20(e[0], e[1])) : Z;
|
|
1556
|
+
}
|
|
1557
|
+
constructor(e, n) {
|
|
1558
|
+
this.start = e, this.end = n;
|
|
1559
|
+
}
|
|
1560
|
+
};
|
|
1561
|
+
Z = new _t("{{", "}}");
|
|
1562
|
+
ot = 0;
|
|
1563
|
+
Un = 9;
|
|
1564
|
+
Hs = 10;
|
|
1565
|
+
Us = 11;
|
|
1566
|
+
Ws = 12;
|
|
1567
|
+
qs = 13;
|
|
1568
|
+
Wn = 32;
|
|
1569
|
+
js = 33;
|
|
1570
|
+
qn = 34;
|
|
1571
|
+
zs = 35;
|
|
1572
|
+
jn = 36;
|
|
1573
|
+
Gs = 37;
|
|
1574
|
+
pn = 38;
|
|
1575
|
+
zn = 39;
|
|
1576
|
+
je = 40;
|
|
1577
|
+
me = 41;
|
|
1578
|
+
Xs = 42;
|
|
1579
|
+
Gn = 43;
|
|
1580
|
+
ge = 44;
|
|
1581
|
+
Xn = 45;
|
|
1582
|
+
ee = 46;
|
|
1583
|
+
Ct = 47;
|
|
1584
|
+
te = 58;
|
|
1585
|
+
ve = 59;
|
|
1586
|
+
Js = 60;
|
|
1587
|
+
qe = 61;
|
|
1588
|
+
Ks = 62;
|
|
1589
|
+
hn = 63;
|
|
1590
|
+
Ys = 48;
|
|
1591
|
+
Qs = 57;
|
|
1592
|
+
Jn = 65;
|
|
1593
|
+
Zs = 69;
|
|
1594
|
+
Kn = 90;
|
|
1595
|
+
ze = 91;
|
|
1596
|
+
er = 92;
|
|
1597
|
+
we = 93;
|
|
1598
|
+
tr = 94;
|
|
1599
|
+
Mt = 95;
|
|
1600
|
+
Yn = 97;
|
|
1601
|
+
nr = 101;
|
|
1602
|
+
sr = 102;
|
|
1603
|
+
rr = 110;
|
|
1604
|
+
ir = 114;
|
|
1605
|
+
or = 116;
|
|
1606
|
+
ar = 117;
|
|
1607
|
+
lr = 118;
|
|
1608
|
+
Qn = 122;
|
|
1609
|
+
Tt = 123;
|
|
1610
|
+
fn = 124;
|
|
1611
|
+
xe = 125;
|
|
1612
|
+
Zn = 160;
|
|
1613
|
+
cr = 96;
|
|
1614
|
+
__name(ur, "ur");
|
|
1615
|
+
__name(j, "j");
|
|
1616
|
+
__name(pr, "pr");
|
|
1617
|
+
__name(dn, "dn");
|
|
1618
|
+
(function(t26) {
|
|
1619
|
+
t26[t26.WARNING = 0] = "WARNING", t26[t26.ERROR = 1] = "ERROR";
|
|
1620
|
+
})(mn || (mn = {}));
|
|
1621
|
+
(function(t26) {
|
|
1622
|
+
t26[t26.Inline = 0] = "Inline", t26[t26.SideEffect = 1] = "SideEffect", t26[t26.Omit = 2] = "Omit";
|
|
1623
|
+
})(gn || (gn = {}));
|
|
1624
|
+
(function(t26) {
|
|
1625
|
+
t26[t26.Global = 0] = "Global", t26[t26.Local = 1] = "Local";
|
|
1626
|
+
})(vn || (vn = {}));
|
|
1627
|
+
(function(t26) {
|
|
1628
|
+
t26[t26.Directive = 0] = "Directive", t26[t26.Pipe = 1] = "Pipe", t26[t26.NgModule = 2] = "NgModule";
|
|
1629
|
+
})(wn || (wn = {}));
|
|
1630
|
+
hr = "(:(where|is)\\()?";
|
|
1631
|
+
es = "-shadowcsshost";
|
|
1632
|
+
ts = "-shadowcsscontext";
|
|
1633
|
+
$t = "(?:\\(((?:\\([^)(]*\\)|[^)(]*)+?)\\))?([^,{]*)";
|
|
1634
|
+
Jr = new RegExp(es + $t, "gim");
|
|
1635
|
+
Kr = new RegExp(hr + "(" + ts + $t + ")", "gim");
|
|
1636
|
+
Yr = new RegExp(ts + $t, "im");
|
|
1637
|
+
fr = es + "-no-combinator";
|
|
1638
|
+
Qr = new RegExp(`${fr}(?![^(]*\\))`, "g");
|
|
1639
|
+
ns = "%COMMENT%";
|
|
1640
|
+
Zr = new RegExp(ns, "g");
|
|
1641
|
+
ei = new RegExp(`(\\s*(?:${ns}\\s*)*)([^;\\{\\}]+?)(\\s*)((?:{%BLOCK%}?\\s*;?)|(?:\\s*;))`, "g");
|
|
1642
|
+
dr = "%COMMA_IN_PLACEHOLDER%";
|
|
1643
|
+
mr = "%SEMI_IN_PLACEHOLDER%";
|
|
1644
|
+
gr = "%COLON_IN_PLACEHOLDER%";
|
|
1645
|
+
ti = new RegExp(dr, "g");
|
|
1646
|
+
ni = new RegExp(mr, "g");
|
|
1647
|
+
si = new RegExp(gr, "g");
|
|
1648
|
+
(function(t26) {
|
|
1649
|
+
t26[t26.ListEnd = 0] = "ListEnd", t26[t26.Statement = 1] = "Statement", t26[t26.Variable = 2] = "Variable", t26[t26.ElementStart = 3] = "ElementStart", t26[t26.Element = 4] = "Element", t26[t26.Template = 5] = "Template", t26[t26.ElementEnd = 6] = "ElementEnd", t26[t26.ContainerStart = 7] = "ContainerStart", t26[t26.Container = 8] = "Container", t26[t26.ContainerEnd = 9] = "ContainerEnd", t26[t26.DisableBindings = 10] = "DisableBindings", t26[t26.Conditional = 11] = "Conditional", t26[t26.EnableBindings = 12] = "EnableBindings", t26[t26.Text = 13] = "Text", t26[t26.Listener = 14] = "Listener", t26[t26.InterpolateText = 15] = "InterpolateText", t26[t26.Binding = 16] = "Binding", t26[t26.Property = 17] = "Property", t26[t26.StyleProp = 18] = "StyleProp", t26[t26.ClassProp = 19] = "ClassProp", t26[t26.StyleMap = 20] = "StyleMap", t26[t26.ClassMap = 21] = "ClassMap", t26[t26.Advance = 22] = "Advance", t26[t26.Pipe = 23] = "Pipe", t26[t26.Attribute = 24] = "Attribute", t26[t26.ExtractedAttribute = 25] = "ExtractedAttribute", t26[t26.Defer = 26] = "Defer", t26[t26.DeferOn = 27] = "DeferOn", t26[t26.DeferWhen = 28] = "DeferWhen", t26[t26.I18nMessage = 29] = "I18nMessage", t26[t26.HostProperty = 30] = "HostProperty", t26[t26.Namespace = 31] = "Namespace", t26[t26.ProjectionDef = 32] = "ProjectionDef", t26[t26.Projection = 33] = "Projection", t26[t26.RepeaterCreate = 34] = "RepeaterCreate", t26[t26.Repeater = 35] = "Repeater", t26[t26.TwoWayProperty = 36] = "TwoWayProperty", t26[t26.TwoWayListener = 37] = "TwoWayListener", t26[t26.DeclareLet = 38] = "DeclareLet", t26[t26.StoreLet = 39] = "StoreLet", t26[t26.I18nStart = 40] = "I18nStart", t26[t26.I18n = 41] = "I18n", t26[t26.I18nEnd = 42] = "I18nEnd", t26[t26.I18nExpression = 43] = "I18nExpression", t26[t26.I18nApply = 44] = "I18nApply", t26[t26.IcuStart = 45] = "IcuStart", t26[t26.IcuEnd = 46] = "IcuEnd", t26[t26.IcuPlaceholder = 47] = "IcuPlaceholder", t26[t26.I18nContext = 48] = "I18nContext", t26[t26.I18nAttributes = 49] = "I18nAttributes";
|
|
1650
|
+
})(f || (f = {}));
|
|
1651
|
+
(function(t26) {
|
|
1652
|
+
t26[t26.LexicalRead = 0] = "LexicalRead", t26[t26.Context = 1] = "Context", t26[t26.TrackContext = 2] = "TrackContext", t26[t26.ReadVariable = 3] = "ReadVariable", t26[t26.NextContext = 4] = "NextContext", t26[t26.Reference = 5] = "Reference", t26[t26.StoreLet = 6] = "StoreLet", t26[t26.ContextLetReference = 7] = "ContextLetReference", t26[t26.GetCurrentView = 8] = "GetCurrentView", t26[t26.RestoreView = 9] = "RestoreView", t26[t26.ResetView = 10] = "ResetView", t26[t26.PureFunctionExpr = 11] = "PureFunctionExpr", t26[t26.PureFunctionParameterExpr = 12] = "PureFunctionParameterExpr", t26[t26.PipeBinding = 13] = "PipeBinding", t26[t26.PipeBindingVariadic = 14] = "PipeBindingVariadic", t26[t26.SafePropertyRead = 15] = "SafePropertyRead", t26[t26.SafeKeyedRead = 16] = "SafeKeyedRead", t26[t26.SafeInvokeFunction = 17] = "SafeInvokeFunction", t26[t26.SafeTernaryExpr = 18] = "SafeTernaryExpr", t26[t26.EmptyExpr = 19] = "EmptyExpr", t26[t26.AssignTemporaryExpr = 20] = "AssignTemporaryExpr", t26[t26.ReadTemporaryExpr = 21] = "ReadTemporaryExpr", t26[t26.SlotLiteralExpr = 22] = "SlotLiteralExpr", t26[t26.ConditionalCase = 23] = "ConditionalCase", t26[t26.ConstCollected = 24] = "ConstCollected", t26[t26.TwoWayBindingSet = 25] = "TwoWayBindingSet";
|
|
1653
|
+
})(J || (J = {}));
|
|
1654
|
+
(function(t26) {
|
|
1655
|
+
t26[t26.None = 0] = "None", t26[t26.AlwaysInline = 1] = "AlwaysInline";
|
|
1656
|
+
})(xn || (xn = {}));
|
|
1657
|
+
(function(t26) {
|
|
1658
|
+
t26[t26.Context = 0] = "Context", t26[t26.Identifier = 1] = "Identifier", t26[t26.SavedView = 2] = "SavedView", t26[t26.Alias = 3] = "Alias";
|
|
1659
|
+
})(Sn || (Sn = {}));
|
|
1660
|
+
(function(t26) {
|
|
1661
|
+
t26[t26.Normal = 0] = "Normal", t26[t26.TemplateDefinitionBuilder = 1] = "TemplateDefinitionBuilder";
|
|
1662
|
+
})(En || (En = {}));
|
|
1663
|
+
(function(t26) {
|
|
1664
|
+
t26[t26.Attribute = 0] = "Attribute", t26[t26.ClassName = 1] = "ClassName", t26[t26.StyleProperty = 2] = "StyleProperty", t26[t26.Property = 3] = "Property", t26[t26.Template = 4] = "Template", t26[t26.I18n = 5] = "I18n", t26[t26.Animation = 6] = "Animation", t26[t26.TwoWayProperty = 7] = "TwoWayProperty";
|
|
1665
|
+
})(U || (U = {}));
|
|
1666
|
+
(function(t26) {
|
|
1667
|
+
t26[t26.Creation = 0] = "Creation", t26[t26.Postproccessing = 1] = "Postproccessing";
|
|
1668
|
+
})(yn || (yn = {}));
|
|
1669
|
+
(function(t26) {
|
|
1670
|
+
t26[t26.I18nText = 0] = "I18nText", t26[t26.I18nAttribute = 1] = "I18nAttribute";
|
|
1671
|
+
})(_n || (_n = {}));
|
|
1672
|
+
(function(t26) {
|
|
1673
|
+
t26[t26.None = 0] = "None", t26[t26.ElementTag = 1] = "ElementTag", t26[t26.TemplateTag = 2] = "TemplateTag", t26[t26.OpenTag = 4] = "OpenTag", t26[t26.CloseTag = 8] = "CloseTag", t26[t26.ExpressionIndex = 16] = "ExpressionIndex";
|
|
1674
|
+
})(Cn || (Cn = {}));
|
|
1675
|
+
(function(t26) {
|
|
1676
|
+
t26[t26.HTML = 0] = "HTML", t26[t26.SVG = 1] = "SVG", t26[t26.Math = 2] = "Math";
|
|
1677
|
+
})(Tn || (Tn = {}));
|
|
1678
|
+
(function(t26) {
|
|
1679
|
+
t26[t26.Idle = 0] = "Idle", t26[t26.Immediate = 1] = "Immediate", t26[t26.Timer = 2] = "Timer", t26[t26.Hover = 3] = "Hover", t26[t26.Interaction = 4] = "Interaction", t26[t26.Viewport = 5] = "Viewport", t26[t26.Never = 6] = "Never";
|
|
1680
|
+
})(kn || (kn = {}));
|
|
1681
|
+
(function(t26) {
|
|
1682
|
+
t26[t26.RootI18n = 0] = "RootI18n", t26[t26.Icu = 1] = "Icu", t26[t26.Attr = 2] = "Attr";
|
|
1683
|
+
})(In || (In = {}));
|
|
1684
|
+
(function(t26) {
|
|
1685
|
+
t26[t26.NgTemplate = 0] = "NgTemplate", t26[t26.Structural = 1] = "Structural", t26[t26.Block = 2] = "Block";
|
|
1686
|
+
})(bn || (bn = {}));
|
|
1687
|
+
vr = Symbol("ConsumesSlot");
|
|
1688
|
+
ss = Symbol("DependsOnSlotContext");
|
|
1689
|
+
Oe = Symbol("ConsumesVars");
|
|
1690
|
+
Rt = Symbol("UsesVarOffset");
|
|
1691
|
+
ri = { [vr]: true, numSlotsUsed: 1 };
|
|
1692
|
+
ii = { [ss]: true };
|
|
1693
|
+
oi = { [Oe]: true };
|
|
1694
|
+
Ze = class {
|
|
1695
|
+
static {
|
|
1696
|
+
__name(this, "Ze");
|
|
1697
|
+
}
|
|
1698
|
+
strings;
|
|
1699
|
+
expressions;
|
|
1700
|
+
i18nPlaceholders;
|
|
1701
|
+
constructor(e, n, s) {
|
|
1702
|
+
if (this.strings = e, this.expressions = n, this.i18nPlaceholders = s, s.length !== 0 && s.length !== n.length) throw new Error(`Expected ${n.length} placeholders to match interpolation expression count, but got ${s.length}`);
|
|
1703
|
+
}
|
|
1704
|
+
};
|
|
1705
|
+
K = class extends k {
|
|
1706
|
+
static {
|
|
1707
|
+
__name(this, "K");
|
|
1708
|
+
}
|
|
1709
|
+
constructor(e = null) {
|
|
1710
|
+
super(null, e);
|
|
1711
|
+
}
|
|
1712
|
+
};
|
|
1713
|
+
An = class t21 extends K {
|
|
1714
|
+
static {
|
|
1715
|
+
__name(this, "t");
|
|
1716
|
+
}
|
|
1717
|
+
target;
|
|
1718
|
+
value;
|
|
1719
|
+
sourceSpan;
|
|
1720
|
+
kind = J.StoreLet;
|
|
1721
|
+
[Oe] = true;
|
|
1722
|
+
[ss] = true;
|
|
1723
|
+
constructor(e, n, s) {
|
|
1724
|
+
super(), this.target = e, this.value = n, this.sourceSpan = s;
|
|
1725
|
+
}
|
|
1726
|
+
visitExpression() {
|
|
1727
|
+
}
|
|
1728
|
+
isEquivalent(e) {
|
|
1729
|
+
return e instanceof t21 && e.target === this.target && e.value.isEquivalent(this.value);
|
|
1730
|
+
}
|
|
1731
|
+
isConstant() {
|
|
1732
|
+
return false;
|
|
1733
|
+
}
|
|
1734
|
+
transformInternalExpressions(e, n) {
|
|
1735
|
+
this.value = (this.value, void 0);
|
|
1736
|
+
}
|
|
1737
|
+
clone() {
|
|
1738
|
+
return new t21(this.target, this.value, this.sourceSpan);
|
|
1739
|
+
}
|
|
1740
|
+
};
|
|
1741
|
+
Nn = class t22 extends K {
|
|
1742
|
+
static {
|
|
1743
|
+
__name(this, "t");
|
|
1744
|
+
}
|
|
1745
|
+
kind = J.PureFunctionExpr;
|
|
1746
|
+
[Oe] = true;
|
|
1747
|
+
[Rt] = true;
|
|
1748
|
+
varOffset = null;
|
|
1749
|
+
body;
|
|
1750
|
+
args;
|
|
1751
|
+
fn = null;
|
|
1752
|
+
constructor(e, n) {
|
|
1753
|
+
super(), this.body = e, this.args = n;
|
|
1754
|
+
}
|
|
1755
|
+
visitExpression(e, n) {
|
|
1756
|
+
var s;
|
|
1757
|
+
(s = this.body) == null || s.visitExpression(e, n);
|
|
1758
|
+
for (let r of this.args) r.visitExpression(e, n);
|
|
1759
|
+
}
|
|
1760
|
+
isEquivalent(e) {
|
|
1761
|
+
return !(e instanceof t22) || e.args.length !== this.args.length ? false : e.body !== null && this.body !== null && e.body.isEquivalent(this.body) && e.args.every((n, s) => n.isEquivalent(this.args[s]));
|
|
1762
|
+
}
|
|
1763
|
+
isConstant() {
|
|
1764
|
+
return false;
|
|
1765
|
+
}
|
|
1766
|
+
transformInternalExpressions(e, n) {
|
|
1767
|
+
this.body !== null ? this.body = (this.body, n | bt.InChildOperation, void 0) : this.fn !== null && (this.fn = (this.fn, void 0));
|
|
1768
|
+
for (let s = 0; s < this.args.length; s++) this.args[s] = (this.args[s], void 0);
|
|
1769
|
+
}
|
|
1770
|
+
clone() {
|
|
1771
|
+
var n, s;
|
|
1772
|
+
let e = new t22(((n = this.body) == null ? void 0 : n.clone()) ?? null, this.args.map((r) => r.clone()));
|
|
1773
|
+
return e.fn = ((s = this.fn) == null ? void 0 : s.clone()) ?? null, e.varOffset = this.varOffset, e;
|
|
1774
|
+
}
|
|
1775
|
+
};
|
|
1776
|
+
kt = class t23 extends K {
|
|
1777
|
+
static {
|
|
1778
|
+
__name(this, "t");
|
|
1779
|
+
}
|
|
1780
|
+
target;
|
|
1781
|
+
targetSlot;
|
|
1782
|
+
name;
|
|
1783
|
+
args;
|
|
1784
|
+
kind = J.PipeBinding;
|
|
1785
|
+
[Oe] = true;
|
|
1786
|
+
[Rt] = true;
|
|
1787
|
+
varOffset = null;
|
|
1788
|
+
constructor(e, n, s, r) {
|
|
1789
|
+
super(), this.target = e, this.targetSlot = n, this.name = s, this.args = r;
|
|
1790
|
+
}
|
|
1791
|
+
visitExpression(e, n) {
|
|
1792
|
+
for (let s of this.args) s.visitExpression(e, n);
|
|
1793
|
+
}
|
|
1794
|
+
isEquivalent() {
|
|
1795
|
+
return false;
|
|
1796
|
+
}
|
|
1797
|
+
isConstant() {
|
|
1798
|
+
return false;
|
|
1799
|
+
}
|
|
1800
|
+
transformInternalExpressions(e, n) {
|
|
1801
|
+
for (let s = 0; s < this.args.length; s++) this.args[s] = (this.args[s], void 0);
|
|
1802
|
+
}
|
|
1803
|
+
clone() {
|
|
1804
|
+
let e = new t23(this.target, this.targetSlot, this.name, this.args.map((n) => n.clone()));
|
|
1805
|
+
return e.varOffset = this.varOffset, e;
|
|
1806
|
+
}
|
|
1807
|
+
};
|
|
1808
|
+
Pn = class t24 extends K {
|
|
1809
|
+
static {
|
|
1810
|
+
__name(this, "t");
|
|
1811
|
+
}
|
|
1812
|
+
target;
|
|
1813
|
+
targetSlot;
|
|
1814
|
+
name;
|
|
1815
|
+
args;
|
|
1816
|
+
numArgs;
|
|
1817
|
+
kind = J.PipeBindingVariadic;
|
|
1818
|
+
[Oe] = true;
|
|
1819
|
+
[Rt] = true;
|
|
1820
|
+
varOffset = null;
|
|
1821
|
+
constructor(e, n, s, r, o) {
|
|
1822
|
+
super(), this.target = e, this.targetSlot = n, this.name = s, this.args = r, this.numArgs = o;
|
|
1823
|
+
}
|
|
1824
|
+
visitExpression(e, n) {
|
|
1825
|
+
this.args.visitExpression(e, n);
|
|
1826
|
+
}
|
|
1827
|
+
isEquivalent() {
|
|
1828
|
+
return false;
|
|
1829
|
+
}
|
|
1830
|
+
isConstant() {
|
|
1831
|
+
return false;
|
|
1832
|
+
}
|
|
1833
|
+
transformInternalExpressions(e, n) {
|
|
1834
|
+
this.args = (this.args, void 0);
|
|
1835
|
+
}
|
|
1836
|
+
clone() {
|
|
1837
|
+
let e = new t24(this.target, this.targetSlot, this.name, this.args.clone(), this.numArgs);
|
|
1838
|
+
return e.varOffset = this.varOffset, e;
|
|
1839
|
+
}
|
|
1840
|
+
};
|
|
1841
|
+
It = class t25 extends K {
|
|
1842
|
+
static {
|
|
1843
|
+
__name(this, "t");
|
|
1844
|
+
}
|
|
1845
|
+
receiver;
|
|
1846
|
+
args;
|
|
1847
|
+
kind = J.SafeInvokeFunction;
|
|
1848
|
+
constructor(e, n) {
|
|
1849
|
+
super(), this.receiver = e, this.args = n;
|
|
1850
|
+
}
|
|
1851
|
+
visitExpression(e, n) {
|
|
1852
|
+
this.receiver.visitExpression(e, n);
|
|
1853
|
+
for (let s of this.args) s.visitExpression(e, n);
|
|
1854
|
+
}
|
|
1855
|
+
isEquivalent() {
|
|
1856
|
+
return false;
|
|
1857
|
+
}
|
|
1858
|
+
isConstant() {
|
|
1859
|
+
return false;
|
|
1860
|
+
}
|
|
1861
|
+
transformInternalExpressions(e, n) {
|
|
1862
|
+
this.receiver = (this.receiver, void 0);
|
|
1863
|
+
for (let s = 0; s < this.args.length; s++) this.args[s] = (this.args[s], void 0);
|
|
1864
|
+
}
|
|
1865
|
+
clone() {
|
|
1866
|
+
return new t25(this.receiver.clone(), this.args.map((e) => e.clone()));
|
|
1867
|
+
}
|
|
1868
|
+
};
|
|
1869
|
+
(function(t26) {
|
|
1870
|
+
t26[t26.None = 0] = "None", t26[t26.InChildOperation = 1] = "InChildOperation";
|
|
1871
|
+
})(bt || (bt = {}));
|
|
1872
|
+
ai = /* @__PURE__ */ new Set([f.Element, f.ElementStart, f.Container, f.ContainerStart, f.Template, f.RepeaterCreate]);
|
|
1873
|
+
(function(t26) {
|
|
1874
|
+
t26[t26.Tmpl = 0] = "Tmpl", t26[t26.Host = 1] = "Host", t26[t26.Both = 2] = "Both";
|
|
1875
|
+
})(Ln || (Ln = {}));
|
|
1876
|
+
li = Object.freeze([]);
|
|
1877
|
+
ci = /* @__PURE__ */ new Map([[f.ElementEnd, [f.ElementStart, f.Element]], [f.ContainerEnd, [f.ContainerStart, f.Container]], [f.I18nEnd, [f.I18nStart, f.I18n]]]);
|
|
1878
|
+
ui = /* @__PURE__ */ new Set([f.Pipe]);
|
|
1879
|
+
pi = [Xe, Ke, Ye, It, kt].map((t26) => t26.constructor.name);
|
|
1880
|
+
wr = {};
|
|
1881
|
+
xr = "\uE500";
|
|
1882
|
+
wr.ngsp = xr;
|
|
1883
|
+
(function(t26) {
|
|
1884
|
+
t26.HEX = "hexadecimal", t26.DEC = "decimal";
|
|
1885
|
+
})(Mn || (Mn = {}));
|
|
1886
|
+
rs = ` \f
|
|
1887
|
+
\r \v\u1680\u180E\u2000-\u200A\u2028\u2029\u202F\u205F\u3000\uFEFF`;
|
|
1888
|
+
hi = new RegExp(`[^${rs}]`);
|
|
1889
|
+
fi = new RegExp(`[${rs}]{2,}`, "g");
|
|
1890
|
+
(function(t26) {
|
|
1891
|
+
t26[t26.Character = 0] = "Character", t26[t26.Identifier = 1] = "Identifier", t26[t26.PrivateIdentifier = 2] = "PrivateIdentifier", t26[t26.Keyword = 3] = "Keyword", t26[t26.String = 4] = "String", t26[t26.Operator = 5] = "Operator", t26[t26.Number = 6] = "Number", t26[t26.Error = 7] = "Error";
|
|
1892
|
+
})(d || (d = {}));
|
|
1893
|
+
Sr = ["var", "let", "as", "null", "undefined", "true", "false", "if", "else", "this", "typeof"];
|
|
1894
|
+
De = class {
|
|
1895
|
+
static {
|
|
1896
|
+
__name(this, "De");
|
|
1897
|
+
}
|
|
1898
|
+
tokenize(e) {
|
|
1899
|
+
let n = new At(e), s = [], r = n.scanToken();
|
|
1900
|
+
for (; r != null; ) s.push(r), r = n.scanToken();
|
|
1901
|
+
return s;
|
|
1902
|
+
}
|
|
1903
|
+
};
|
|
1904
|
+
M = class {
|
|
1905
|
+
static {
|
|
1906
|
+
__name(this, "M");
|
|
1907
|
+
}
|
|
1908
|
+
index;
|
|
1909
|
+
end;
|
|
1910
|
+
type;
|
|
1911
|
+
numValue;
|
|
1912
|
+
strValue;
|
|
1913
|
+
constructor(e, n, s, r, o) {
|
|
1914
|
+
this.index = e, this.end = n, this.type = s, this.numValue = r, this.strValue = o;
|
|
1915
|
+
}
|
|
1916
|
+
isCharacter(e) {
|
|
1917
|
+
return this.type == d.Character && this.numValue == e;
|
|
1918
|
+
}
|
|
1919
|
+
isNumber() {
|
|
1920
|
+
return this.type == d.Number;
|
|
1921
|
+
}
|
|
1922
|
+
isString() {
|
|
1923
|
+
return this.type == d.String;
|
|
1924
|
+
}
|
|
1925
|
+
isOperator(e) {
|
|
1926
|
+
return this.type == d.Operator && this.strValue == e;
|
|
1927
|
+
}
|
|
1928
|
+
isIdentifier() {
|
|
1929
|
+
return this.type == d.Identifier;
|
|
1930
|
+
}
|
|
1931
|
+
isPrivateIdentifier() {
|
|
1932
|
+
return this.type == d.PrivateIdentifier;
|
|
1933
|
+
}
|
|
1934
|
+
isKeyword() {
|
|
1935
|
+
return this.type == d.Keyword;
|
|
1936
|
+
}
|
|
1937
|
+
isKeywordLet() {
|
|
1938
|
+
return this.type == d.Keyword && this.strValue == "let";
|
|
1939
|
+
}
|
|
1940
|
+
isKeywordAs() {
|
|
1941
|
+
return this.type == d.Keyword && this.strValue == "as";
|
|
1942
|
+
}
|
|
1943
|
+
isKeywordNull() {
|
|
1944
|
+
return this.type == d.Keyword && this.strValue == "null";
|
|
1945
|
+
}
|
|
1946
|
+
isKeywordUndefined() {
|
|
1947
|
+
return this.type == d.Keyword && this.strValue == "undefined";
|
|
1948
|
+
}
|
|
1949
|
+
isKeywordTrue() {
|
|
1950
|
+
return this.type == d.Keyword && this.strValue == "true";
|
|
1951
|
+
}
|
|
1952
|
+
isKeywordFalse() {
|
|
1953
|
+
return this.type == d.Keyword && this.strValue == "false";
|
|
1954
|
+
}
|
|
1955
|
+
isKeywordThis() {
|
|
1956
|
+
return this.type == d.Keyword && this.strValue == "this";
|
|
1957
|
+
}
|
|
1958
|
+
isKeywordTypeof() {
|
|
1959
|
+
return this.type === d.Keyword && this.strValue === "typeof";
|
|
1960
|
+
}
|
|
1961
|
+
isError() {
|
|
1962
|
+
return this.type == d.Error;
|
|
1963
|
+
}
|
|
1964
|
+
toNumber() {
|
|
1965
|
+
return this.type == d.Number ? this.numValue : -1;
|
|
1966
|
+
}
|
|
1967
|
+
toString() {
|
|
1968
|
+
switch (this.type) {
|
|
1969
|
+
case d.Character:
|
|
1970
|
+
case d.Identifier:
|
|
1971
|
+
case d.Keyword:
|
|
1972
|
+
case d.Operator:
|
|
1973
|
+
case d.PrivateIdentifier:
|
|
1974
|
+
case d.String:
|
|
1975
|
+
case d.Error:
|
|
1976
|
+
return this.strValue;
|
|
1977
|
+
case d.Number:
|
|
1978
|
+
return this.numValue.toString();
|
|
1979
|
+
default:
|
|
1980
|
+
return null;
|
|
1981
|
+
}
|
|
1982
|
+
}
|
|
1983
|
+
};
|
|
1984
|
+
__name($n, "$n");
|
|
1985
|
+
__name(Er, "Er");
|
|
1986
|
+
__name(yr, "yr");
|
|
1987
|
+
__name(_r, "_r");
|
|
1988
|
+
__name(at, "at");
|
|
1989
|
+
__name(Cr, "Cr");
|
|
1990
|
+
__name(Tr, "Tr");
|
|
1991
|
+
__name(kr, "kr");
|
|
1992
|
+
lt = new M(-1, -1, d.Character, 0, "");
|
|
1993
|
+
At = class {
|
|
1994
|
+
static {
|
|
1995
|
+
__name(this, "At");
|
|
1996
|
+
}
|
|
1997
|
+
input;
|
|
1998
|
+
length;
|
|
1999
|
+
peek = 0;
|
|
2000
|
+
index = -1;
|
|
2001
|
+
constructor(e) {
|
|
2002
|
+
this.input = e, this.length = e.length, this.advance();
|
|
2003
|
+
}
|
|
2004
|
+
advance() {
|
|
2005
|
+
this.peek = ++this.index >= this.length ? ot : this.input.charCodeAt(this.index);
|
|
2006
|
+
}
|
|
2007
|
+
scanToken() {
|
|
2008
|
+
let e = this.input, n = this.length, s = this.peek, r = this.index;
|
|
2009
|
+
for (; s <= Wn; ) if (++r >= n) {
|
|
2010
|
+
s = ot;
|
|
2011
|
+
break;
|
|
2012
|
+
} else s = e.charCodeAt(r);
|
|
2013
|
+
if (this.peek = s, this.index = r, r >= n) return null;
|
|
2014
|
+
if (Rn(s)) return this.scanIdentifier();
|
|
2015
|
+
if (j(s)) return this.scanNumber(r);
|
|
2016
|
+
let o = r;
|
|
2017
|
+
switch (s) {
|
|
2018
|
+
case ee:
|
|
2019
|
+
return this.advance(), j(this.peek) ? this.scanNumber(o) : $n(o, this.index, ee);
|
|
2020
|
+
case je:
|
|
2021
|
+
case me:
|
|
2022
|
+
case Tt:
|
|
2023
|
+
case xe:
|
|
2024
|
+
case ze:
|
|
2025
|
+
case we:
|
|
2026
|
+
case ge:
|
|
2027
|
+
case te:
|
|
2028
|
+
case ve:
|
|
2029
|
+
return this.scanCharacter(o, s);
|
|
2030
|
+
case zn:
|
|
2031
|
+
case qn:
|
|
2032
|
+
return this.scanString();
|
|
2033
|
+
case zs:
|
|
2034
|
+
return this.scanPrivateIdentifier();
|
|
2035
|
+
case Gn:
|
|
2036
|
+
case Xn:
|
|
2037
|
+
case Xs:
|
|
2038
|
+
case Ct:
|
|
2039
|
+
case Gs:
|
|
2040
|
+
case tr:
|
|
2041
|
+
return this.scanOperator(o, String.fromCharCode(s));
|
|
2042
|
+
case hn:
|
|
2043
|
+
return this.scanQuestion(o);
|
|
2044
|
+
case Js:
|
|
2045
|
+
case Ks:
|
|
2046
|
+
return this.scanComplexOperator(o, String.fromCharCode(s), qe, "=");
|
|
2047
|
+
case js:
|
|
2048
|
+
case qe:
|
|
2049
|
+
return this.scanComplexOperator(o, String.fromCharCode(s), qe, "=", qe, "=");
|
|
2050
|
+
case pn:
|
|
2051
|
+
return this.scanComplexOperator(o, "&", pn, "&");
|
|
2052
|
+
case fn:
|
|
2053
|
+
return this.scanComplexOperator(o, "|", fn, "|");
|
|
2054
|
+
case Zn:
|
|
2055
|
+
for (; ur(this.peek); ) this.advance();
|
|
2056
|
+
return this.scanToken();
|
|
2057
|
+
}
|
|
2058
|
+
return this.advance(), this.error(`Unexpected character [${String.fromCharCode(s)}]`, 0);
|
|
2059
|
+
}
|
|
2060
|
+
scanCharacter(e, n) {
|
|
2061
|
+
return this.advance(), $n(e, this.index, n);
|
|
2062
|
+
}
|
|
2063
|
+
scanOperator(e, n) {
|
|
2064
|
+
return this.advance(), at(e, this.index, n);
|
|
2065
|
+
}
|
|
2066
|
+
scanComplexOperator(e, n, s, r, o, a) {
|
|
2067
|
+
this.advance();
|
|
2068
|
+
let l = n;
|
|
2069
|
+
return this.peek == s && (this.advance(), l += r), o != null && this.peek == o && (this.advance(), l += a), at(e, this.index, l);
|
|
2070
|
+
}
|
|
2071
|
+
scanIdentifier() {
|
|
2072
|
+
let e = this.index;
|
|
2073
|
+
for (this.advance(); Bn(this.peek); ) this.advance();
|
|
2074
|
+
let n = this.input.substring(e, this.index);
|
|
2075
|
+
return Sr.indexOf(n) > -1 ? _r(e, this.index, n) : Er(e, this.index, n);
|
|
2076
|
+
}
|
|
2077
|
+
scanPrivateIdentifier() {
|
|
2078
|
+
let e = this.index;
|
|
2079
|
+
if (this.advance(), !Rn(this.peek)) return this.error("Invalid character [#]", -1);
|
|
2080
|
+
for (; Bn(this.peek); ) this.advance();
|
|
2081
|
+
let n = this.input.substring(e, this.index);
|
|
2082
|
+
return yr(e, this.index, n);
|
|
2083
|
+
}
|
|
2084
|
+
scanNumber(e) {
|
|
2085
|
+
let n = this.index === e, s = false;
|
|
2086
|
+
for (this.advance(); ; ) {
|
|
2087
|
+
if (!j(this.peek)) if (this.peek === Mt) {
|
|
2088
|
+
if (!j(this.input.charCodeAt(this.index - 1)) || !j(this.input.charCodeAt(this.index + 1))) return this.error("Invalid numeric separator", 0);
|
|
2089
|
+
s = true;
|
|
2090
|
+
} else if (this.peek === ee) n = false;
|
|
2091
|
+
else if (Ir(this.peek)) {
|
|
2092
|
+
if (this.advance(), br(this.peek) && this.advance(), !j(this.peek)) return this.error("Invalid exponent", -1);
|
|
2093
|
+
n = false;
|
|
2094
|
+
} else break;
|
|
2095
|
+
this.advance();
|
|
2096
|
+
}
|
|
2097
|
+
let r = this.input.substring(e, this.index);
|
|
2098
|
+
s && (r = r.replace(/_/g, ""));
|
|
2099
|
+
let o = n ? Nr(r) : parseFloat(r);
|
|
2100
|
+
return Tr(e, this.index, o);
|
|
2101
|
+
}
|
|
2102
|
+
scanString() {
|
|
2103
|
+
let e = this.index, n = this.peek;
|
|
2104
|
+
this.advance();
|
|
2105
|
+
let s = "", r = this.index, o = this.input;
|
|
2106
|
+
for (; this.peek != n; ) if (this.peek == er) {
|
|
2107
|
+
s += o.substring(r, this.index);
|
|
2108
|
+
let l;
|
|
2109
|
+
if (this.advance(), this.peek == ar) {
|
|
2110
|
+
let u = o.substring(this.index + 1, this.index + 5);
|
|
2111
|
+
if (/^[0-9a-f]+$/i.test(u)) l = parseInt(u, 16);
|
|
2112
|
+
else return this.error(`Invalid unicode escape [\\u${u}]`, 0);
|
|
2113
|
+
for (let h = 0; h < 5; h++) this.advance();
|
|
2114
|
+
} else l = Ar(this.peek), this.advance();
|
|
2115
|
+
s += String.fromCharCode(l), r = this.index;
|
|
2116
|
+
} else {
|
|
2117
|
+
if (this.peek == ot) return this.error("Unterminated quote", 0);
|
|
2118
|
+
this.advance();
|
|
2119
|
+
}
|
|
2120
|
+
let a = o.substring(r, this.index);
|
|
2121
|
+
return this.advance(), Cr(e, this.index, s + a);
|
|
2122
|
+
}
|
|
2123
|
+
scanQuestion(e) {
|
|
2124
|
+
this.advance();
|
|
2125
|
+
let n = "?";
|
|
2126
|
+
return (this.peek === hn || this.peek === ee) && (n += this.peek === ee ? "." : "?", this.advance()), at(e, this.index, n);
|
|
2127
|
+
}
|
|
2128
|
+
error(e, n) {
|
|
2129
|
+
let s = this.index + n;
|
|
2130
|
+
return kr(s, this.index, `Lexer Error: ${e} at column ${s} in expression [${this.input}]`);
|
|
2131
|
+
}
|
|
2132
|
+
};
|
|
2133
|
+
__name(Rn, "Rn");
|
|
2134
|
+
__name(Bn, "Bn");
|
|
2135
|
+
__name(Ir, "Ir");
|
|
2136
|
+
__name(br, "br");
|
|
2137
|
+
__name(Ar, "Ar");
|
|
2138
|
+
__name(Nr, "Nr");
|
|
2139
|
+
Nt = class {
|
|
2140
|
+
static {
|
|
2141
|
+
__name(this, "Nt");
|
|
2142
|
+
}
|
|
2143
|
+
strings;
|
|
2144
|
+
expressions;
|
|
2145
|
+
offsets;
|
|
2146
|
+
constructor(e, n, s) {
|
|
2147
|
+
this.strings = e, this.expressions = n, this.offsets = s;
|
|
2148
|
+
}
|
|
2149
|
+
};
|
|
2150
|
+
Pt = class {
|
|
2151
|
+
static {
|
|
2152
|
+
__name(this, "Pt");
|
|
2153
|
+
}
|
|
2154
|
+
templateBindings;
|
|
2155
|
+
warnings;
|
|
2156
|
+
errors;
|
|
2157
|
+
constructor(e, n, s) {
|
|
2158
|
+
this.templateBindings = e, this.warnings = n, this.errors = s;
|
|
2159
|
+
}
|
|
2160
|
+
};
|
|
2161
|
+
ue = class {
|
|
2162
|
+
static {
|
|
2163
|
+
__name(this, "ue");
|
|
2164
|
+
}
|
|
2165
|
+
_lexer;
|
|
2166
|
+
errors = [];
|
|
2167
|
+
constructor(e) {
|
|
2168
|
+
this._lexer = e;
|
|
2169
|
+
}
|
|
2170
|
+
parseAction(e, n, s, r = Z) {
|
|
2171
|
+
this._checkNoInterpolation(e, n, r);
|
|
2172
|
+
let o = this._stripComments(e), a = this._lexer.tokenize(o), l = new z(e, n, s, a, 1, this.errors, 0).parseChain();
|
|
2173
|
+
return new W(l, e, n, s, this.errors);
|
|
2174
|
+
}
|
|
2175
|
+
parseBinding(e, n, s, r = Z) {
|
|
2176
|
+
let o = this._parseBindingAst(e, n, s, r);
|
|
2177
|
+
return new W(o, e, n, s, this.errors);
|
|
2178
|
+
}
|
|
2179
|
+
checkSimpleExpression(e) {
|
|
2180
|
+
let n = new Lt();
|
|
2181
|
+
return e.visit(n), n.errors;
|
|
2182
|
+
}
|
|
2183
|
+
parseSimpleBinding(e, n, s, r = Z) {
|
|
2184
|
+
let o = this._parseBindingAst(e, n, s, r), a = this.checkSimpleExpression(o);
|
|
2185
|
+
return a.length > 0 && this._reportError(`Host binding expression cannot contain ${a.join(" ")}`, e, n), new W(o, e, n, s, this.errors);
|
|
2186
|
+
}
|
|
2187
|
+
_reportError(e, n, s, r) {
|
|
2188
|
+
this.errors.push(new ye(e, n, s, r));
|
|
2189
|
+
}
|
|
2190
|
+
_parseBindingAst(e, n, s, r) {
|
|
2191
|
+
this._checkNoInterpolation(e, n, r);
|
|
2192
|
+
let o = this._stripComments(e), a = this._lexer.tokenize(o);
|
|
2193
|
+
return new z(e, n, s, a, 0, this.errors, 0).parseChain();
|
|
2194
|
+
}
|
|
2195
|
+
parseTemplateBindings(e, n, s, r, o) {
|
|
2196
|
+
let a = this._lexer.tokenize(n);
|
|
2197
|
+
return new z(n, s, o, a, 0, this.errors, 0).parseTemplateBindings({ source: e, span: new O(r, r + e.length) });
|
|
2198
|
+
}
|
|
2199
|
+
parseInterpolation(e, n, s, r, o = Z) {
|
|
2200
|
+
let { strings: a, expressions: l, offsets: u } = this.splitInterpolation(e, n, r, o);
|
|
2201
|
+
if (l.length === 0) return null;
|
|
2202
|
+
let h = [];
|
|
2203
|
+
for (let g = 0; g < l.length; ++g) {
|
|
2204
|
+
let S = l[g].text, w = this._stripComments(S), y = this._lexer.tokenize(w), T = new z(e, n, s, y, 0, this.errors, u[g]).parseChain();
|
|
2205
|
+
h.push(T);
|
|
2206
|
+
}
|
|
2207
|
+
return this.createInterpolationAst(a.map((g) => g.text), h, e, n, s);
|
|
2208
|
+
}
|
|
2209
|
+
parseInterpolationExpression(e, n, s) {
|
|
2210
|
+
let r = this._stripComments(e), o = this._lexer.tokenize(r), a = new z(e, n, s, o, 0, this.errors, 0).parseChain(), l = ["", ""];
|
|
2211
|
+
return this.createInterpolationAst(l, [a], e, n, s);
|
|
2212
|
+
}
|
|
2213
|
+
createInterpolationAst(e, n, s, r, o) {
|
|
2214
|
+
let a = new G(0, s.length), l = new Pe(a, a.toAbsolute(o), e, n);
|
|
2215
|
+
return new W(l, s, r, o, this.errors);
|
|
2216
|
+
}
|
|
2217
|
+
splitInterpolation(e, n, s, r = Z) {
|
|
2218
|
+
let o = [], a = [], l = [], u = s ? Pr(s) : null, h = 0, g = false, S = false, { start: w, end: y } = r;
|
|
2219
|
+
for (; h < e.length; ) if (g) {
|
|
2220
|
+
let T = h, F = T + w.length, fe = this._getInterpolationEndIndex(e, y, F);
|
|
2221
|
+
if (fe === -1) {
|
|
2222
|
+
g = false, S = true;
|
|
2223
|
+
break;
|
|
2224
|
+
}
|
|
2225
|
+
let de = fe + y.length, q = e.substring(F, fe);
|
|
2226
|
+
q.trim().length === 0 && this._reportError("Blank expressions are not allowed in interpolated strings", e, `at column ${h} in`, n), a.push({ text: q, start: T, end: de });
|
|
2227
|
+
let Ms = ((u == null ? void 0 : u.get(T)) ?? T) + w.length;
|
|
2228
|
+
l.push(Ms), h = de, g = false;
|
|
2229
|
+
} else {
|
|
2230
|
+
let T = h;
|
|
2231
|
+
h = e.indexOf(w, h), h === -1 && (h = e.length);
|
|
2232
|
+
let F = e.substring(T, h);
|
|
2233
|
+
o.push({ text: F, start: T, end: h }), g = true;
|
|
2234
|
+
}
|
|
2235
|
+
if (!g) if (S) {
|
|
2236
|
+
let T = o[o.length - 1];
|
|
2237
|
+
T.text += e.substring(h), T.end = e.length;
|
|
2238
|
+
} else o.push({ text: e.substring(h), start: h, end: e.length });
|
|
2239
|
+
return new Nt(o, a, l);
|
|
2240
|
+
}
|
|
2241
|
+
wrapLiteralPrimitive(e, n, s) {
|
|
2242
|
+
let r = new G(0, e == null ? 0 : e.length);
|
|
2243
|
+
return new W(new A(r, r.toAbsolute(s), e), e, n, s, this.errors);
|
|
2244
|
+
}
|
|
2245
|
+
_stripComments(e) {
|
|
2246
|
+
let n = this._commentStart(e);
|
|
2247
|
+
return n != null ? e.substring(0, n) : e;
|
|
2248
|
+
}
|
|
2249
|
+
_commentStart(e) {
|
|
2250
|
+
let n = null;
|
|
2251
|
+
for (let s = 0; s < e.length - 1; s++) {
|
|
2252
|
+
let r = e.charCodeAt(s), o = e.charCodeAt(s + 1);
|
|
2253
|
+
if (r === Ct && o == Ct && n == null) return s;
|
|
2254
|
+
n === r ? n = null : n == null && dn(r) && (n = r);
|
|
2255
|
+
}
|
|
2256
|
+
return null;
|
|
2257
|
+
}
|
|
2258
|
+
_checkNoInterpolation(e, n, { start: s, end: r }) {
|
|
2259
|
+
let o = -1, a = -1;
|
|
2260
|
+
for (let l of this._forEachUnquotedChar(e, 0)) if (o === -1) e.startsWith(s) && (o = l);
|
|
2261
|
+
else if (a = this._getInterpolationEndIndex(e, r, l), a > -1) break;
|
|
2262
|
+
o > -1 && a > -1 && this._reportError(`Got interpolation (${s}${r}) where expression was expected`, e, `at column ${o} in`, n);
|
|
2263
|
+
}
|
|
2264
|
+
_getInterpolationEndIndex(e, n, s) {
|
|
2265
|
+
for (let r of this._forEachUnquotedChar(e, s)) {
|
|
2266
|
+
if (e.startsWith(n, r)) return r;
|
|
2267
|
+
if (e.startsWith("//", r)) return e.indexOf(n, r);
|
|
2268
|
+
}
|
|
2269
|
+
return -1;
|
|
2270
|
+
}
|
|
2271
|
+
*_forEachUnquotedChar(e, n) {
|
|
2272
|
+
let s = null, r = 0;
|
|
2273
|
+
for (let o = n; o < e.length; o++) {
|
|
2274
|
+
let a = e[o];
|
|
2275
|
+
dn(e.charCodeAt(o)) && (s === null || s === a) && r % 2 === 0 ? s = s === null ? a : null : s === null && (yield o), r = a === "\\" ? r + 1 : 0;
|
|
2276
|
+
}
|
|
2277
|
+
}
|
|
2278
|
+
};
|
|
2279
|
+
(function(t26) {
|
|
2280
|
+
t26[t26.None = 0] = "None", t26[t26.Writable = 1] = "Writable";
|
|
2281
|
+
})(ne || (ne = {}));
|
|
2282
|
+
z = class {
|
|
2283
|
+
static {
|
|
2284
|
+
__name(this, "z");
|
|
2285
|
+
}
|
|
2286
|
+
input;
|
|
2287
|
+
location;
|
|
2288
|
+
absoluteOffset;
|
|
2289
|
+
tokens;
|
|
2290
|
+
parseFlags;
|
|
2291
|
+
errors;
|
|
2292
|
+
offset;
|
|
2293
|
+
rparensExpected = 0;
|
|
2294
|
+
rbracketsExpected = 0;
|
|
2295
|
+
rbracesExpected = 0;
|
|
2296
|
+
context = ne.None;
|
|
2297
|
+
sourceSpanCache = /* @__PURE__ */ new Map();
|
|
2298
|
+
index = 0;
|
|
2299
|
+
constructor(e, n, s, r, o, a, l) {
|
|
2300
|
+
this.input = e, this.location = n, this.absoluteOffset = s, this.tokens = r, this.parseFlags = o, this.errors = a, this.offset = l;
|
|
2301
|
+
}
|
|
2302
|
+
peek(e) {
|
|
2303
|
+
let n = this.index + e;
|
|
2304
|
+
return n < this.tokens.length ? this.tokens[n] : lt;
|
|
2305
|
+
}
|
|
2306
|
+
get next() {
|
|
2307
|
+
return this.peek(0);
|
|
2308
|
+
}
|
|
2309
|
+
get atEOF() {
|
|
2310
|
+
return this.index >= this.tokens.length;
|
|
2311
|
+
}
|
|
2312
|
+
get inputIndex() {
|
|
2313
|
+
return this.atEOF ? this.currentEndIndex : this.next.index + this.offset;
|
|
2314
|
+
}
|
|
2315
|
+
get currentEndIndex() {
|
|
2316
|
+
return this.index > 0 ? this.peek(-1).end + this.offset : this.tokens.length === 0 ? this.input.length + this.offset : this.next.index + this.offset;
|
|
2317
|
+
}
|
|
2318
|
+
get currentAbsoluteOffset() {
|
|
2319
|
+
return this.absoluteOffset + this.inputIndex;
|
|
2320
|
+
}
|
|
2321
|
+
span(e, n) {
|
|
2322
|
+
let s = this.currentEndIndex;
|
|
2323
|
+
if (n !== void 0 && n > this.currentEndIndex && (s = n), e > s) {
|
|
2324
|
+
let r = s;
|
|
2325
|
+
s = e, e = r;
|
|
2326
|
+
}
|
|
2327
|
+
return new G(e, s);
|
|
2328
|
+
}
|
|
2329
|
+
sourceSpan(e, n) {
|
|
2330
|
+
let s = `${e}@${this.inputIndex}:${n}`;
|
|
2331
|
+
return this.sourceSpanCache.has(s) || this.sourceSpanCache.set(s, this.span(e, n).toAbsolute(this.absoluteOffset)), this.sourceSpanCache.get(s);
|
|
2332
|
+
}
|
|
2333
|
+
advance() {
|
|
2334
|
+
this.index++;
|
|
2335
|
+
}
|
|
2336
|
+
withContext(e, n) {
|
|
2337
|
+
this.context |= e;
|
|
2338
|
+
let s = n();
|
|
2339
|
+
return this.context ^= e, s;
|
|
2340
|
+
}
|
|
2341
|
+
consumeOptionalCharacter(e) {
|
|
2342
|
+
return this.next.isCharacter(e) ? (this.advance(), true) : false;
|
|
2343
|
+
}
|
|
2344
|
+
peekKeywordLet() {
|
|
2345
|
+
return this.next.isKeywordLet();
|
|
2346
|
+
}
|
|
2347
|
+
peekKeywordAs() {
|
|
2348
|
+
return this.next.isKeywordAs();
|
|
2349
|
+
}
|
|
2350
|
+
expectCharacter(e) {
|
|
2351
|
+
this.consumeOptionalCharacter(e) || this.error(`Missing expected ${String.fromCharCode(e)}`);
|
|
2352
|
+
}
|
|
2353
|
+
consumeOptionalOperator(e) {
|
|
2354
|
+
return this.next.isOperator(e) ? (this.advance(), true) : false;
|
|
2355
|
+
}
|
|
2356
|
+
expectOperator(e) {
|
|
2357
|
+
this.consumeOptionalOperator(e) || this.error(`Missing expected operator ${e}`);
|
|
2358
|
+
}
|
|
2359
|
+
prettyPrintToken(e) {
|
|
2360
|
+
return e === lt ? "end of input" : `token ${e}`;
|
|
2361
|
+
}
|
|
2362
|
+
expectIdentifierOrKeyword() {
|
|
2363
|
+
let e = this.next;
|
|
2364
|
+
return !e.isIdentifier() && !e.isKeyword() ? (e.isPrivateIdentifier() ? this._reportErrorForPrivateIdentifier(e, "expected identifier or keyword") : this.error(`Unexpected ${this.prettyPrintToken(e)}, expected identifier or keyword`), null) : (this.advance(), e.toString());
|
|
2365
|
+
}
|
|
2366
|
+
expectIdentifierOrKeywordOrString() {
|
|
2367
|
+
let e = this.next;
|
|
2368
|
+
return !e.isIdentifier() && !e.isKeyword() && !e.isString() ? (e.isPrivateIdentifier() ? this._reportErrorForPrivateIdentifier(e, "expected identifier, keyword or string") : this.error(`Unexpected ${this.prettyPrintToken(e)}, expected identifier, keyword, or string`), "") : (this.advance(), e.toString());
|
|
2369
|
+
}
|
|
2370
|
+
parseChain() {
|
|
2371
|
+
let e = [], n = this.inputIndex;
|
|
2372
|
+
for (; this.index < this.tokens.length; ) {
|
|
2373
|
+
let s = this.parsePipe();
|
|
2374
|
+
if (e.push(s), this.consumeOptionalCharacter(ve)) for (this.parseFlags & 1 || this.error("Binding expression cannot contain chained expression"); this.consumeOptionalCharacter(ve); ) ;
|
|
2375
|
+
else if (this.index < this.tokens.length) {
|
|
2376
|
+
let r = this.index;
|
|
2377
|
+
if (this.error(`Unexpected token '${this.next}'`), this.index === r) break;
|
|
2378
|
+
}
|
|
2379
|
+
}
|
|
2380
|
+
if (e.length === 0) {
|
|
2381
|
+
let s = this.offset, r = this.offset + this.input.length;
|
|
2382
|
+
return new b(this.span(s, r), this.sourceSpan(s, r));
|
|
2383
|
+
}
|
|
2384
|
+
return e.length == 1 ? e[0] : new _e(this.span(n), this.sourceSpan(n), e);
|
|
2385
|
+
}
|
|
2386
|
+
parsePipe() {
|
|
2387
|
+
let e = this.inputIndex, n = this.parseExpression();
|
|
2388
|
+
if (this.consumeOptionalOperator("|")) {
|
|
2389
|
+
this.parseFlags & 1 && this.error("Cannot have a pipe in an action expression");
|
|
2390
|
+
do {
|
|
2391
|
+
let s = this.inputIndex, r = this.expectIdentifierOrKeyword(), o, a;
|
|
2392
|
+
r !== null ? o = this.sourceSpan(s) : (r = "", a = this.next.index !== -1 ? this.next.index : this.input.length + this.offset, o = new G(a, a).toAbsolute(this.absoluteOffset));
|
|
2393
|
+
let l = [];
|
|
2394
|
+
for (; this.consumeOptionalCharacter(te); ) l.push(this.parseExpression());
|
|
2395
|
+
n = new be(this.span(e), this.sourceSpan(e, a), n, r, l, o);
|
|
2396
|
+
} while (this.consumeOptionalOperator("|"));
|
|
2397
|
+
}
|
|
2398
|
+
return n;
|
|
2399
|
+
}
|
|
2400
|
+
parseExpression() {
|
|
2401
|
+
return this.parseConditional();
|
|
2402
|
+
}
|
|
2403
|
+
parseConditional() {
|
|
2404
|
+
let e = this.inputIndex, n = this.parseLogicalOr();
|
|
2405
|
+
if (this.consumeOptionalOperator("?")) {
|
|
2406
|
+
let s = this.parsePipe(), r;
|
|
2407
|
+
if (this.consumeOptionalCharacter(te)) r = this.parsePipe();
|
|
2408
|
+
else {
|
|
2409
|
+
let o = this.inputIndex, a = this.input.substring(e, o);
|
|
2410
|
+
this.error(`Conditional expression ${a} requires all 3 expressions`), r = new b(this.span(e), this.sourceSpan(e));
|
|
2411
|
+
}
|
|
2412
|
+
return new Ce(this.span(e), this.sourceSpan(e), n, s, r);
|
|
2413
|
+
} else return n;
|
|
2414
|
+
}
|
|
2415
|
+
parseLogicalOr() {
|
|
2416
|
+
let e = this.inputIndex, n = this.parseLogicalAnd();
|
|
2417
|
+
for (; this.consumeOptionalOperator("||"); ) {
|
|
2418
|
+
let s = this.parseLogicalAnd();
|
|
2419
|
+
n = new N(this.span(e), this.sourceSpan(e), "||", n, s);
|
|
2420
|
+
}
|
|
2421
|
+
return n;
|
|
2422
|
+
}
|
|
2423
|
+
parseLogicalAnd() {
|
|
2424
|
+
let e = this.inputIndex, n = this.parseNullishCoalescing();
|
|
2425
|
+
for (; this.consumeOptionalOperator("&&"); ) {
|
|
2426
|
+
let s = this.parseNullishCoalescing();
|
|
2427
|
+
n = new N(this.span(e), this.sourceSpan(e), "&&", n, s);
|
|
2428
|
+
}
|
|
2429
|
+
return n;
|
|
2430
|
+
}
|
|
2431
|
+
parseNullishCoalescing() {
|
|
2432
|
+
let e = this.inputIndex, n = this.parseEquality();
|
|
2433
|
+
for (; this.consumeOptionalOperator("??"); ) {
|
|
2434
|
+
let s = this.parseEquality();
|
|
2435
|
+
n = new N(this.span(e), this.sourceSpan(e), "??", n, s);
|
|
2436
|
+
}
|
|
2437
|
+
return n;
|
|
2438
|
+
}
|
|
2439
|
+
parseEquality() {
|
|
2440
|
+
let e = this.inputIndex, n = this.parseRelational();
|
|
2441
|
+
for (; this.next.type == d.Operator; ) {
|
|
2442
|
+
let s = this.next.strValue;
|
|
2443
|
+
switch (s) {
|
|
2444
|
+
case "==":
|
|
2445
|
+
case "===":
|
|
2446
|
+
case "!=":
|
|
2447
|
+
case "!==":
|
|
2448
|
+
this.advance();
|
|
2449
|
+
let r = this.parseRelational();
|
|
2450
|
+
n = new N(this.span(e), this.sourceSpan(e), s, n, r);
|
|
2451
|
+
continue;
|
|
2452
|
+
}
|
|
2453
|
+
break;
|
|
2454
|
+
}
|
|
2455
|
+
return n;
|
|
2456
|
+
}
|
|
2457
|
+
parseRelational() {
|
|
2458
|
+
let e = this.inputIndex, n = this.parseAdditive();
|
|
2459
|
+
for (; this.next.type == d.Operator; ) {
|
|
2460
|
+
let s = this.next.strValue;
|
|
2461
|
+
switch (s) {
|
|
2462
|
+
case "<":
|
|
2463
|
+
case ">":
|
|
2464
|
+
case "<=":
|
|
2465
|
+
case ">=":
|
|
2466
|
+
this.advance();
|
|
2467
|
+
let r = this.parseAdditive();
|
|
2468
|
+
n = new N(this.span(e), this.sourceSpan(e), s, n, r);
|
|
2469
|
+
continue;
|
|
2470
|
+
}
|
|
2471
|
+
break;
|
|
2472
|
+
}
|
|
2473
|
+
return n;
|
|
2474
|
+
}
|
|
2475
|
+
parseAdditive() {
|
|
2476
|
+
let e = this.inputIndex, n = this.parseMultiplicative();
|
|
2477
|
+
for (; this.next.type == d.Operator; ) {
|
|
2478
|
+
let s = this.next.strValue;
|
|
2479
|
+
switch (s) {
|
|
2480
|
+
case "+":
|
|
2481
|
+
case "-":
|
|
2482
|
+
this.advance();
|
|
2483
|
+
let r = this.parseMultiplicative();
|
|
2484
|
+
n = new N(this.span(e), this.sourceSpan(e), s, n, r);
|
|
2485
|
+
continue;
|
|
2486
|
+
}
|
|
2487
|
+
break;
|
|
2488
|
+
}
|
|
2489
|
+
return n;
|
|
2490
|
+
}
|
|
2491
|
+
parseMultiplicative() {
|
|
2492
|
+
let e = this.inputIndex, n = this.parsePrefix();
|
|
2493
|
+
for (; this.next.type == d.Operator; ) {
|
|
2494
|
+
let s = this.next.strValue;
|
|
2495
|
+
switch (s) {
|
|
2496
|
+
case "*":
|
|
2497
|
+
case "%":
|
|
2498
|
+
case "/":
|
|
2499
|
+
this.advance();
|
|
2500
|
+
let r = this.parsePrefix();
|
|
2501
|
+
n = new N(this.span(e), this.sourceSpan(e), s, n, r);
|
|
2502
|
+
continue;
|
|
2503
|
+
}
|
|
2504
|
+
break;
|
|
2505
|
+
}
|
|
2506
|
+
return n;
|
|
2507
|
+
}
|
|
2508
|
+
parsePrefix() {
|
|
2509
|
+
if (this.next.type == d.Operator) {
|
|
2510
|
+
let e = this.inputIndex, n = this.next.strValue, s;
|
|
2511
|
+
switch (n) {
|
|
2512
|
+
case "+":
|
|
2513
|
+
return this.advance(), s = this.parsePrefix(), ae.createPlus(this.span(e), this.sourceSpan(e), s);
|
|
2514
|
+
case "-":
|
|
2515
|
+
return this.advance(), s = this.parsePrefix(), ae.createMinus(this.span(e), this.sourceSpan(e), s);
|
|
2516
|
+
case "!":
|
|
2517
|
+
return this.advance(), s = this.parsePrefix(), new Le(this.span(e), this.sourceSpan(e), s);
|
|
2518
|
+
}
|
|
2519
|
+
} else if (this.next.isKeywordTypeof()) {
|
|
2520
|
+
this.advance();
|
|
2521
|
+
let e = this.inputIndex, n = this.parsePrefix();
|
|
2522
|
+
return new Me(this.span(e), this.sourceSpan(e), n);
|
|
2523
|
+
}
|
|
2524
|
+
return this.parseCallChain();
|
|
2525
|
+
}
|
|
2526
|
+
parseCallChain() {
|
|
2527
|
+
let e = this.inputIndex, n = this.parsePrimary();
|
|
2528
|
+
for (; ; ) if (this.consumeOptionalCharacter(ee)) n = this.parseAccessMember(n, e, false);
|
|
2529
|
+
else if (this.consumeOptionalOperator("?.")) this.consumeOptionalCharacter(je) ? n = this.parseCall(n, e, true) : n = this.consumeOptionalCharacter(ze) ? this.parseKeyedReadOrWrite(n, e, true) : this.parseAccessMember(n, e, true);
|
|
2530
|
+
else if (this.consumeOptionalCharacter(ze)) n = this.parseKeyedReadOrWrite(n, e, false);
|
|
2531
|
+
else if (this.consumeOptionalCharacter(je)) n = this.parseCall(n, e, false);
|
|
2532
|
+
else if (this.consumeOptionalOperator("!")) n = new $e(this.span(e), this.sourceSpan(e), n);
|
|
2533
|
+
else return n;
|
|
2534
|
+
}
|
|
2535
|
+
parsePrimary() {
|
|
2536
|
+
let e = this.inputIndex;
|
|
2537
|
+
if (this.consumeOptionalCharacter(je)) {
|
|
2538
|
+
this.rparensExpected++;
|
|
2539
|
+
let n = this.parsePipe();
|
|
2540
|
+
return this.rparensExpected--, this.expectCharacter(me), n;
|
|
2541
|
+
} else {
|
|
2542
|
+
if (this.next.isKeywordNull()) return this.advance(), new A(this.span(e), this.sourceSpan(e), null);
|
|
2543
|
+
if (this.next.isKeywordUndefined()) return this.advance(), new A(this.span(e), this.sourceSpan(e), void 0);
|
|
2544
|
+
if (this.next.isKeywordTrue()) return this.advance(), new A(this.span(e), this.sourceSpan(e), true);
|
|
2545
|
+
if (this.next.isKeywordFalse()) return this.advance(), new A(this.span(e), this.sourceSpan(e), false);
|
|
2546
|
+
if (this.next.isKeywordThis()) return this.advance(), new Et(this.span(e), this.sourceSpan(e));
|
|
2547
|
+
if (this.consumeOptionalCharacter(ze)) {
|
|
2548
|
+
this.rbracketsExpected++;
|
|
2549
|
+
let n = this.parseExpressionList(we);
|
|
2550
|
+
return this.rbracketsExpected--, this.expectCharacter(we), new Ae(this.span(e), this.sourceSpan(e), n);
|
|
2551
|
+
} else {
|
|
2552
|
+
if (this.next.isCharacter(Tt)) return this.parseLiteralMap();
|
|
2553
|
+
if (this.next.isIdentifier()) return this.parseAccessMember(new X(this.span(e), this.sourceSpan(e)), e, false);
|
|
2554
|
+
if (this.next.isNumber()) {
|
|
2555
|
+
let n = this.next.toNumber();
|
|
2556
|
+
return this.advance(), new A(this.span(e), this.sourceSpan(e), n);
|
|
2557
|
+
} else if (this.next.isString()) {
|
|
2558
|
+
let n = this.next.toString();
|
|
2559
|
+
return this.advance(), new A(this.span(e), this.sourceSpan(e), n);
|
|
2560
|
+
} else return this.next.isPrivateIdentifier() ? (this._reportErrorForPrivateIdentifier(this.next, null), new b(this.span(e), this.sourceSpan(e))) : this.index >= this.tokens.length ? (this.error(`Unexpected end of expression: ${this.input}`), new b(this.span(e), this.sourceSpan(e))) : (this.error(`Unexpected token ${this.next}`), new b(this.span(e), this.sourceSpan(e)));
|
|
2561
|
+
}
|
|
2562
|
+
}
|
|
2563
|
+
}
|
|
2564
|
+
parseExpressionList(e) {
|
|
2565
|
+
let n = [];
|
|
2566
|
+
do
|
|
2567
|
+
if (!this.next.isCharacter(e)) n.push(this.parsePipe());
|
|
2568
|
+
else break;
|
|
2569
|
+
while (this.consumeOptionalCharacter(ge));
|
|
2570
|
+
return n;
|
|
2571
|
+
}
|
|
2572
|
+
parseLiteralMap() {
|
|
2573
|
+
let e = [], n = [], s = this.inputIndex;
|
|
2574
|
+
if (this.expectCharacter(Tt), !this.consumeOptionalCharacter(xe)) {
|
|
2575
|
+
this.rbracesExpected++;
|
|
2576
|
+
do {
|
|
2577
|
+
let r = this.inputIndex, o = this.next.isString(), a = this.expectIdentifierOrKeywordOrString(), l = { key: a, quoted: o };
|
|
2578
|
+
if (e.push(l), o) this.expectCharacter(te), n.push(this.parsePipe());
|
|
2579
|
+
else if (this.consumeOptionalCharacter(te)) n.push(this.parsePipe());
|
|
2580
|
+
else {
|
|
2581
|
+
l.isShorthandInitialized = true;
|
|
2582
|
+
let u = this.span(r), h = this.sourceSpan(r);
|
|
2583
|
+
n.push(new re(u, h, h, new X(u, h), a));
|
|
2584
|
+
}
|
|
2585
|
+
} while (this.consumeOptionalCharacter(ge) && !this.next.isCharacter(xe));
|
|
2586
|
+
this.rbracesExpected--, this.expectCharacter(xe);
|
|
2587
|
+
}
|
|
2588
|
+
return new Ne(this.span(s), this.sourceSpan(s), e, n);
|
|
2589
|
+
}
|
|
2590
|
+
parseAccessMember(e, n, s) {
|
|
2591
|
+
let r = this.inputIndex, o = this.withContext(ne.Writable, () => {
|
|
2592
|
+
let u = this.expectIdentifierOrKeyword() ?? "";
|
|
2593
|
+
return u.length === 0 && this.error("Expected identifier for property access", e.span.end), u;
|
|
2594
|
+
}), a = this.sourceSpan(r), l;
|
|
2595
|
+
if (s) this.consumeOptionalOperator("=") ? (this.error("The '?.' operator cannot be used in the assignment"), l = new b(this.span(n), this.sourceSpan(n))) : l = new ie(this.span(n), this.sourceSpan(n), a, e, o);
|
|
2596
|
+
else if (this.consumeOptionalOperator("=")) {
|
|
2597
|
+
if (!(this.parseFlags & 1)) return this.error("Bindings cannot contain assignments"), new b(this.span(n), this.sourceSpan(n));
|
|
2598
|
+
let u = this.parseConditional();
|
|
2599
|
+
l = new Te(this.span(n), this.sourceSpan(n), a, e, o, u);
|
|
2600
|
+
} else l = new re(this.span(n), this.sourceSpan(n), a, e, o);
|
|
2601
|
+
return l;
|
|
2602
|
+
}
|
|
2603
|
+
parseCall(e, n, s) {
|
|
2604
|
+
let r = this.inputIndex;
|
|
2605
|
+
this.rparensExpected++;
|
|
2606
|
+
let o = this.parseCallArguments(), a = this.span(r, this.inputIndex).toAbsolute(this.absoluteOffset);
|
|
2607
|
+
this.expectCharacter(me), this.rparensExpected--;
|
|
2608
|
+
let l = this.span(n), u = this.sourceSpan(n);
|
|
2609
|
+
return s ? new le(l, u, e, o, a) : new Re(l, u, e, o, a);
|
|
2610
|
+
}
|
|
2611
|
+
parseCallArguments() {
|
|
2612
|
+
if (this.next.isCharacter(me)) return [];
|
|
2613
|
+
let e = [];
|
|
2614
|
+
do
|
|
2615
|
+
e.push(this.parsePipe());
|
|
2616
|
+
while (this.consumeOptionalCharacter(ge));
|
|
2617
|
+
return e;
|
|
2618
|
+
}
|
|
2619
|
+
expectTemplateBindingKey() {
|
|
2620
|
+
let e = "", n = false, s = this.currentAbsoluteOffset;
|
|
2621
|
+
do
|
|
2622
|
+
e += this.expectIdentifierOrKeywordOrString(), n = this.consumeOptionalOperator("-"), n && (e += "-");
|
|
2623
|
+
while (n);
|
|
2624
|
+
return { source: e, span: new O(s, s + e.length) };
|
|
2625
|
+
}
|
|
2626
|
+
parseTemplateBindings(e) {
|
|
2627
|
+
let n = [];
|
|
2628
|
+
for (n.push(...this.parseDirectiveKeywordBindings(e)); this.index < this.tokens.length; ) {
|
|
2629
|
+
let s = this.parseLetBinding();
|
|
2630
|
+
if (s) n.push(s);
|
|
2631
|
+
else {
|
|
2632
|
+
let r = this.expectTemplateBindingKey(), o = this.parseAsBinding(r);
|
|
2633
|
+
o ? n.push(o) : (r.source = e.source + r.source.charAt(0).toUpperCase() + r.source.substring(1), n.push(...this.parseDirectiveKeywordBindings(r)));
|
|
2634
|
+
}
|
|
2635
|
+
this.consumeStatementTerminator();
|
|
2636
|
+
}
|
|
2637
|
+
return new Pt(n, [], this.errors);
|
|
2638
|
+
}
|
|
2639
|
+
parseKeyedReadOrWrite(e, n, s) {
|
|
2640
|
+
return this.withContext(ne.Writable, () => {
|
|
2641
|
+
this.rbracketsExpected++;
|
|
2642
|
+
let r = this.parsePipe();
|
|
2643
|
+
if (r instanceof b && this.error("Key access cannot be empty"), this.rbracketsExpected--, this.expectCharacter(we), this.consumeOptionalOperator("=")) if (s) this.error("The '?.' operator cannot be used in the assignment");
|
|
2644
|
+
else {
|
|
2645
|
+
let o = this.parseConditional();
|
|
2646
|
+
return new Ie(this.span(n), this.sourceSpan(n), e, r, o);
|
|
2647
|
+
}
|
|
2648
|
+
else return s ? new oe(this.span(n), this.sourceSpan(n), e, r) : new ke(this.span(n), this.sourceSpan(n), e, r);
|
|
2649
|
+
return new b(this.span(n), this.sourceSpan(n));
|
|
2650
|
+
});
|
|
2651
|
+
}
|
|
2652
|
+
parseDirectiveKeywordBindings(e) {
|
|
2653
|
+
let n = [];
|
|
2654
|
+
this.consumeOptionalCharacter(te);
|
|
2655
|
+
let s = this.getDirectiveBoundTarget(), r = this.currentAbsoluteOffset, o = this.parseAsBinding(e);
|
|
2656
|
+
o || (this.consumeStatementTerminator(), r = this.currentAbsoluteOffset);
|
|
2657
|
+
let a = new O(e.span.start, r);
|
|
2658
|
+
return n.push(new Be(a, e, s)), o && n.push(o), n;
|
|
2659
|
+
}
|
|
2660
|
+
getDirectiveBoundTarget() {
|
|
2661
|
+
if (this.next === lt || this.peekKeywordAs() || this.peekKeywordLet()) return null;
|
|
2662
|
+
let e = this.parsePipe(), { start: n, end: s } = e.span, r = this.input.substring(n, s);
|
|
2663
|
+
return new W(e, r, this.location, this.absoluteOffset + n, this.errors);
|
|
2664
|
+
}
|
|
2665
|
+
parseAsBinding(e) {
|
|
2666
|
+
if (!this.peekKeywordAs()) return null;
|
|
2667
|
+
this.advance();
|
|
2668
|
+
let n = this.expectTemplateBindingKey();
|
|
2669
|
+
this.consumeStatementTerminator();
|
|
2670
|
+
let s = new O(e.span.start, this.currentAbsoluteOffset);
|
|
2671
|
+
return new ce(s, n, e);
|
|
2672
|
+
}
|
|
2673
|
+
parseLetBinding() {
|
|
2674
|
+
if (!this.peekKeywordLet()) return null;
|
|
2675
|
+
let e = this.currentAbsoluteOffset;
|
|
2676
|
+
this.advance();
|
|
2677
|
+
let n = this.expectTemplateBindingKey(), s = null;
|
|
2678
|
+
this.consumeOptionalOperator("=") && (s = this.expectTemplateBindingKey()), this.consumeStatementTerminator();
|
|
2679
|
+
let r = new O(e, this.currentAbsoluteOffset);
|
|
2680
|
+
return new ce(r, n, s);
|
|
2681
|
+
}
|
|
2682
|
+
consumeStatementTerminator() {
|
|
2683
|
+
this.consumeOptionalCharacter(ve) || this.consumeOptionalCharacter(ge);
|
|
2684
|
+
}
|
|
2685
|
+
error(e, n = null) {
|
|
2686
|
+
this.errors.push(new ye(e, this.input, this.locationText(n), this.location)), this.skip();
|
|
2687
|
+
}
|
|
2688
|
+
locationText(e = null) {
|
|
2689
|
+
return e == null && (e = this.index), e < this.tokens.length ? `at column ${this.tokens[e].index + 1} in` : "at the end of the expression";
|
|
2690
|
+
}
|
|
2691
|
+
_reportErrorForPrivateIdentifier(e, n) {
|
|
2692
|
+
let s = `Private identifiers are not supported. Unexpected private identifier: ${e}`;
|
|
2693
|
+
n !== null && (s += `, ${n}`), this.error(s);
|
|
2694
|
+
}
|
|
2695
|
+
skip() {
|
|
2696
|
+
let e = this.next;
|
|
2697
|
+
for (; this.index < this.tokens.length && !e.isCharacter(ve) && !e.isOperator("|") && (this.rparensExpected <= 0 || !e.isCharacter(me)) && (this.rbracesExpected <= 0 || !e.isCharacter(xe)) && (this.rbracketsExpected <= 0 || !e.isCharacter(we)) && (!(this.context & ne.Writable) || !e.isOperator("=")); ) this.next.isError() && this.errors.push(new ye(this.next.toString(), this.input, this.locationText(), this.location)), this.advance(), e = this.next;
|
|
2698
|
+
}
|
|
2699
|
+
};
|
|
2700
|
+
Lt = class extends yt {
|
|
2701
|
+
static {
|
|
2702
|
+
__name(this, "Lt");
|
|
2703
|
+
}
|
|
2704
|
+
errors = [];
|
|
2705
|
+
visitPipe() {
|
|
2706
|
+
this.errors.push("pipes");
|
|
2707
|
+
}
|
|
2708
|
+
};
|
|
2709
|
+
__name(Pr, "Pr");
|
|
2710
|
+
Lr = new Map(Object.entries({ class: "className", for: "htmlFor", formaction: "formAction", innerHtml: "innerHTML", readonly: "readOnly", tabindex: "tabIndex" }));
|
|
2711
|
+
di = Array.from(Lr).reduce((t26, [e, n]) => (t26.set(e, n), t26), /* @__PURE__ */ new Map());
|
|
2712
|
+
mi = new ue(new De());
|
|
2713
|
+
__name(D, "D");
|
|
2714
|
+
__name(Se, "Se");
|
|
2715
|
+
__name(Mr, "Mr");
|
|
2716
|
+
gi = [{ test: D(f.StyleMap), transform: et }, { test: D(f.ClassMap), transform: et }, { test: D(f.StyleProp) }, { test: D(f.ClassProp) }, { test: Se(f.Attribute, true) }, { test: Se(f.Property, true) }, { test: Mr }, { test: Se(f.Attribute, false) }];
|
|
2717
|
+
vi = [{ test: Se(f.HostProperty, true) }, { test: Se(f.HostProperty, false) }, { test: D(f.Attribute) }, { test: D(f.StyleMap), transform: et }, { test: D(f.ClassMap), transform: et }, { test: D(f.StyleProp) }, { test: D(f.ClassProp) }];
|
|
2718
|
+
wi = /* @__PURE__ */ new Set([f.Listener, f.TwoWayListener, f.StyleMap, f.ClassMap, f.StyleProp, f.ClassProp, f.Property, f.TwoWayProperty, f.HostProperty, f.Attribute]);
|
|
2719
|
+
__name(et, "et");
|
|
2720
|
+
xi = /* @__PURE__ */ new Map([["window", P.resolveWindow], ["document", P.resolveDocument], ["body", P.resolveBody]]);
|
|
2721
|
+
Si = /* @__PURE__ */ new Map([[B.HTML, P.sanitizeHtml], [B.RESOURCE_URL, P.sanitizeResourceUrl], [B.SCRIPT, P.sanitizeScript], [B.STYLE, P.sanitizeStyle], [B.URL, P.sanitizeUrl]]);
|
|
2722
|
+
Ei = /* @__PURE__ */ new Map([[B.HTML, P.trustConstantHtml], [B.RESOURCE_URL, P.trustConstantResourceUrl]]);
|
|
2723
|
+
(function(t26) {
|
|
2724
|
+
t26[t26.None = 0] = "None", t26[t26.ViewContextRead = 1] = "ViewContextRead", t26[t26.ViewContextWrite = 2] = "ViewContextWrite", t26[t26.SideEffectful = 4] = "SideEffectful";
|
|
2725
|
+
})(Dn || (Dn = {}));
|
|
2726
|
+
yi = /* @__PURE__ */ new Map([[H.Property, U.Property], [H.TwoWay, U.TwoWayProperty], [H.Attribute, U.Attribute], [H.Class, U.ClassName], [H.Style, U.StyleProperty], [H.Animation, U.Animation]]);
|
|
2727
|
+
_i = Symbol("queryAdvancePlaceholder");
|
|
2728
|
+
(function(t26) {
|
|
2729
|
+
t26[t26.NG_CONTENT = 0] = "NG_CONTENT", t26[t26.STYLE = 1] = "STYLE", t26[t26.STYLESHEET = 2] = "STYLESHEET", t26[t26.SCRIPT = 3] = "SCRIPT", t26[t26.OTHER = 4] = "OTHER";
|
|
2730
|
+
})(On || (On = {}));
|
|
2731
|
+
(function(t26) {
|
|
2732
|
+
t26.IDLE = "idle", t26.TIMER = "timer", t26.INTERACTION = "interaction", t26.IMMEDIATE = "immediate", t26.HOVER = "hover", t26.VIEWPORT = "viewport", t26.NEVER = "never";
|
|
2733
|
+
})(Fn || (Fn = {}));
|
|
2734
|
+
is = "%COMP%";
|
|
2735
|
+
Ci = `_nghost-${is}`;
|
|
2736
|
+
Ti = `_ngcontent-${is}`;
|
|
2737
|
+
ki = new St("19.0.1");
|
|
2738
|
+
(function(t26) {
|
|
2739
|
+
t26[t26.Extract = 0] = "Extract", t26[t26.Merge = 1] = "Merge";
|
|
2740
|
+
})(Vn || (Vn = {}));
|
|
2741
|
+
(function(t26) {
|
|
2742
|
+
t26[t26.Directive = 0] = "Directive", t26[t26.Component = 1] = "Component", t26[t26.Injectable = 2] = "Injectable", t26[t26.Pipe = 3] = "Pipe", t26[t26.NgModule = 4] = "NgModule";
|
|
2743
|
+
})(Hn || (Hn = {}));
|
|
2744
|
+
__name(os, "os");
|
|
2745
|
+
__name(Rr, "Rr");
|
|
2746
|
+
__name(Br, "Br");
|
|
2747
|
+
__name(as, "as");
|
|
2748
|
+
__name(ls, "ls");
|
|
2749
|
+
__name(cs, "cs");
|
|
2750
|
+
__name(us, "us");
|
|
2751
|
+
__name(ps, "ps");
|
|
2752
|
+
__name(Fe, "Fe");
|
|
2753
|
+
Dr = /* @__PURE__ */ __name((t26) => ue.prototype._commentStart(t26), "Dr");
|
|
2754
|
+
__name(Or, "Or");
|
|
2755
|
+
__name(Ve, "Ve");
|
|
2756
|
+
hs = Ve((t26, e) => e.parseBinding(t26, "", 0));
|
|
2757
|
+
Fr = Ve((t26, e) => e.parseSimpleBinding(t26, "", 0));
|
|
2758
|
+
fs = Ve((t26, e) => e.parseAction(t26, "", 0));
|
|
2759
|
+
ds = Ve((t26, e) => e.parseInterpolationExpression(t26, "", 0));
|
|
2760
|
+
ms = Ve((t26, e) => e.parseTemplateBindings("", t26, "", 0, 0), false);
|
|
2761
|
+
Hr = /* @__PURE__ */ __name((t26, e, n) => {
|
|
2762
|
+
if (!(t26 && e == null)) return Array.isArray(e) || typeof e == "string" ? e[n < 0 ? e.length + n : n] : e.at(n);
|
|
2763
|
+
}, "Hr");
|
|
2764
|
+
nt = Hr;
|
|
2765
|
+
Bt = class {
|
|
2766
|
+
static {
|
|
2767
|
+
__name(this, "Bt");
|
|
2768
|
+
}
|
|
2769
|
+
text;
|
|
2770
|
+
constructor(e) {
|
|
2771
|
+
this.text = e;
|
|
2772
|
+
}
|
|
2773
|
+
getCharacterIndex(e, n) {
|
|
2774
|
+
return us(this.text, e, n);
|
|
2775
|
+
}
|
|
2776
|
+
getCharacterLastIndex(e, n) {
|
|
2777
|
+
return cs(this.text, e, n);
|
|
2778
|
+
}
|
|
2779
|
+
transformSpan(e, { stripSpaces: n = false, hasParentParens: s = false } = {}) {
|
|
2780
|
+
if (!n) return Fe(e);
|
|
2781
|
+
let { outerSpan: r, innerSpan: o, hasParens: a } = as(e, this.text, s), l = Fe(o);
|
|
2782
|
+
return a && (l.extra = { parenthesized: true, parenStart: r.start, parenEnd: r.end }), l;
|
|
2783
|
+
}
|
|
2784
|
+
createNode(e, { stripSpaces: n = true, hasParentParens: s = false } = {}) {
|
|
2785
|
+
let { type: r, start: o, end: a } = e, l = { ...e, ...this.transformSpan({ start: o, end: a }, { stripSpaces: n, hasParentParens: s }) };
|
|
2786
|
+
switch (r) {
|
|
2787
|
+
case "NumericLiteral":
|
|
2788
|
+
case "StringLiteral": {
|
|
2789
|
+
let u = this.text.slice(l.start, l.end), { value: h } = l;
|
|
2790
|
+
l.extra = { ...l.extra, raw: u, rawValue: h };
|
|
2791
|
+
break;
|
|
2792
|
+
}
|
|
2793
|
+
case "ObjectProperty": {
|
|
2794
|
+
let { shorthand: u } = l;
|
|
2795
|
+
u && (l.extra = { ...l.extra, shorthand: u });
|
|
2796
|
+
break;
|
|
2797
|
+
}
|
|
2798
|
+
}
|
|
2799
|
+
return l;
|
|
2800
|
+
}
|
|
2801
|
+
};
|
|
2802
|
+
gs = Bt;
|
|
2803
|
+
__name(Ot, "Ot");
|
|
2804
|
+
__name($, "$");
|
|
2805
|
+
__name(R, "R");
|
|
2806
|
+
__name(vs, "vs");
|
|
2807
|
+
__name(ws, "ws");
|
|
2808
|
+
Ue = class extends gs {
|
|
2809
|
+
static {
|
|
2810
|
+
__name(this, "Ue");
|
|
2811
|
+
}
|
|
2812
|
+
constructor(n, s) {
|
|
2813
|
+
super(s);
|
|
2814
|
+
V(this, p);
|
|
2815
|
+
V(this, We);
|
|
2816
|
+
V(this, pe);
|
|
2817
|
+
Q(this, We, n), Q(this, pe, s);
|
|
2818
|
+
}
|
|
2819
|
+
get node() {
|
|
2820
|
+
return c(this, p, x).call(this, L(this, We));
|
|
2821
|
+
}
|
|
2822
|
+
transformNode(n) {
|
|
2823
|
+
return c(this, p, Dt).call(this, n);
|
|
2824
|
+
}
|
|
2825
|
+
};
|
|
2826
|
+
We = /* @__PURE__ */ new WeakMap(), pe = /* @__PURE__ */ new WeakMap(), p = /* @__PURE__ */ new WeakSet(), v = /* @__PURE__ */ __name(function(n, { stripSpaces: s = true, hasParentParens: r = false } = {}) {
|
|
2827
|
+
return this.createNode(n, { stripSpaces: s, hasParentParens: r });
|
|
2828
|
+
}, "v"), He = /* @__PURE__ */ __name(function(n, s, { computed: r, optional: o, end: a = R(s), hasParentParens: l = false }) {
|
|
2829
|
+
if (ws(n, L(this, pe)) || n.sourceSpan.start === s.start) return s;
|
|
2830
|
+
let u = c(this, p, x).call(this, n), h = vs(u);
|
|
2831
|
+
return c(this, p, v).call(this, { type: o || h ? "OptionalMemberExpression" : "MemberExpression", object: u, property: s, computed: r, ...o ? { optional: true } : h ? { optional: false } : void 0, start: $(u), end: a }, { hasParentParens: l });
|
|
2832
|
+
}, "He"), x = /* @__PURE__ */ __name(function(n, s = false) {
|
|
2833
|
+
return c(this, p, Dt).call(this, n, s);
|
|
2834
|
+
}, "x"), Dt = /* @__PURE__ */ __name(function(n, s = false) {
|
|
2835
|
+
if (n instanceof Pe) {
|
|
2836
|
+
let { expressions: o } = n;
|
|
2837
|
+
if (o.length !== 1) throw new Error("Unexpected 'Interpolation'");
|
|
2838
|
+
return c(this, p, x).call(this, o[0]);
|
|
2839
|
+
}
|
|
2840
|
+
if (n instanceof ae) return c(this, p, v).call(this, { type: "UnaryExpression", prefix: true, argument: c(this, p, x).call(this, n.expr), operator: n.operator, ...n.sourceSpan }, { hasParentParens: s });
|
|
2841
|
+
if (n instanceof N) {
|
|
2842
|
+
let { left: o, operation: a, right: l } = n, u = c(this, p, x).call(this, o), h = c(this, p, x).call(this, l), g = $(u), S = R(h), w = { left: u, right: h, start: g, end: S };
|
|
2843
|
+
return a === "&&" || a === "||" || a === "??" ? c(this, p, v).call(this, { ...w, type: "LogicalExpression", operator: a }, { hasParentParens: s }) : c(this, p, v).call(this, { ...w, type: "BinaryExpression", operator: a }, { hasParentParens: s });
|
|
2844
|
+
}
|
|
2845
|
+
if (n instanceof be) {
|
|
2846
|
+
let { exp: o, name: a, args: l } = n, u = c(this, p, x).call(this, o), h = $(u), g = R(u), S = this.getCharacterIndex(/\S/, this.getCharacterIndex("|", g) + 1), w = c(this, p, v).call(this, { type: "Identifier", name: a, start: S, end: S + a.length }), y = l.map((T) => c(this, p, x).call(this, T));
|
|
2847
|
+
return c(this, p, v).call(this, { type: "NGPipeExpression", left: u, right: w, arguments: y, start: h, end: R(y.length === 0 ? w : nt(false, y, -1)) }, { hasParentParens: s });
|
|
2848
|
+
}
|
|
2849
|
+
if (n instanceof _e) return c(this, p, v).call(this, { type: "NGChainedExpression", expressions: n.expressions.map((o) => c(this, p, x).call(this, o)), ...n.sourceSpan }, { hasParentParens: s });
|
|
2850
|
+
if (n instanceof Ce) {
|
|
2851
|
+
let { condition: o, trueExp: a, falseExp: l } = n, u = c(this, p, x).call(this, o), h = c(this, p, x).call(this, a), g = c(this, p, x).call(this, l);
|
|
2852
|
+
return c(this, p, v).call(this, { type: "ConditionalExpression", test: u, consequent: h, alternate: g, start: $(u), end: R(g) }, { hasParentParens: s });
|
|
2853
|
+
}
|
|
2854
|
+
if (n instanceof b) return c(this, p, v).call(this, { type: "NGEmptyExpression", ...n.sourceSpan }, { hasParentParens: s });
|
|
2855
|
+
if (n instanceof X) return c(this, p, v).call(this, { type: "ThisExpression", ...n.sourceSpan }, { hasParentParens: s });
|
|
2856
|
+
if (n instanceof ke || n instanceof oe) return c(this, p, He).call(this, n.receiver, c(this, p, x).call(this, n.key), { computed: true, optional: n instanceof oe, end: n.sourceSpan.end, hasParentParens: s });
|
|
2857
|
+
if (n instanceof Ae) return c(this, p, v).call(this, { type: "ArrayExpression", elements: n.expressions.map((o) => c(this, p, x).call(this, o)), ...n.sourceSpan }, { hasParentParens: s });
|
|
2858
|
+
if (n instanceof Ne) {
|
|
2859
|
+
let { keys: o, values: a } = n, l = a.map((h) => c(this, p, x).call(this, h)), u = o.map(({ key: h, quoted: g }, S) => {
|
|
2860
|
+
let w = l[S], y = $(w), T = R(w), F = this.getCharacterIndex(/\S/, S === 0 ? n.sourceSpan.start + 1 : this.getCharacterIndex(",", R(l[S - 1])) + 1), fe = y === F ? T : this.getCharacterLastIndex(/\S/, this.getCharacterLastIndex(":", y - 1) - 1) + 1, de = { start: F, end: fe }, q = g ? c(this, p, v).call(this, { type: "StringLiteral", value: h, ...de }) : c(this, p, v).call(this, { type: "Identifier", name: h, ...de }), Gt = q.end < q.start || F === y;
|
|
2861
|
+
return c(this, p, v).call(this, { type: "ObjectProperty", key: q, value: w, shorthand: Gt, computed: false, start: $(q), end: T });
|
|
2862
|
+
});
|
|
2863
|
+
return c(this, p, v).call(this, { type: "ObjectExpression", properties: u, ...n.sourceSpan }, { hasParentParens: s });
|
|
2864
|
+
}
|
|
2865
|
+
if (n instanceof A) {
|
|
2866
|
+
let { value: o } = n;
|
|
2867
|
+
switch (typeof o) {
|
|
2868
|
+
case "boolean":
|
|
2869
|
+
return c(this, p, v).call(this, { type: "BooleanLiteral", value: o, ...n.sourceSpan }, { hasParentParens: s });
|
|
2870
|
+
case "number":
|
|
2871
|
+
return c(this, p, v).call(this, { type: "NumericLiteral", value: o, ...n.sourceSpan }, { hasParentParens: s });
|
|
2872
|
+
case "object":
|
|
2873
|
+
return c(this, p, v).call(this, { type: "NullLiteral", ...n.sourceSpan }, { hasParentParens: s });
|
|
2874
|
+
case "string":
|
|
2875
|
+
return c(this, p, v).call(this, { type: "StringLiteral", value: o, ...n.sourceSpan }, { hasParentParens: s });
|
|
2876
|
+
case "undefined":
|
|
2877
|
+
return c(this, p, v).call(this, { type: "Identifier", name: "undefined", ...n.sourceSpan }, { hasParentParens: s });
|
|
2878
|
+
default:
|
|
2879
|
+
throw new Error(`Unexpected LiteralPrimitive value type ${typeof o}`);
|
|
2880
|
+
}
|
|
2881
|
+
}
|
|
2882
|
+
if (n instanceof Re || n instanceof le) {
|
|
2883
|
+
let o = n instanceof le, { receiver: a, args: l } = n, u = l.length === 1 ? [c(this, p, x).call(this, l[0], true)] : l.map((w) => c(this, p, x).call(this, w)), h = c(this, p, x).call(this, a), g = vs(h), S = o || g ? "OptionalCallExpression" : "CallExpression";
|
|
2884
|
+
return c(this, p, v).call(this, { type: S, callee: h, arguments: u, optional: S === "OptionalCallExpression" ? o : void 0, start: $(h), end: n.sourceSpan.end }, { hasParentParens: s });
|
|
2885
|
+
}
|
|
2886
|
+
if (n instanceof $e) {
|
|
2887
|
+
let o = c(this, p, x).call(this, n.expression);
|
|
2888
|
+
return c(this, p, v).call(this, { type: "TSNonNullExpression", expression: o, start: $(o), end: n.sourceSpan.end }, { hasParentParens: s });
|
|
2889
|
+
}
|
|
2890
|
+
let r = n instanceof Le;
|
|
2891
|
+
if (r || n instanceof Me) {
|
|
2892
|
+
let o = c(this, p, x).call(this, n.expression), a = r ? "!" : "typeof", { start: l } = n.sourceSpan;
|
|
2893
|
+
if (!r) {
|
|
2894
|
+
let u = this.text.lastIndexOf(a, l);
|
|
2895
|
+
if (u === -1) throw new Error(`Cannot find operator ${a} from index ${l} in ${JSON.stringify(this.text)}`);
|
|
2896
|
+
l = u;
|
|
2897
|
+
}
|
|
2898
|
+
return c(this, p, v).call(this, { type: "UnaryExpression", prefix: true, operator: a, argument: o, start: l, end: R(o) }, { hasParentParens: s });
|
|
2899
|
+
}
|
|
2900
|
+
if (n instanceof re || n instanceof ie) {
|
|
2901
|
+
let { receiver: o, name: a } = n, l = this.getCharacterLastIndex(/\S/, n.sourceSpan.end - 1) + 1, u = c(this, p, v).call(this, { type: "Identifier", name: a, start: l - a.length, end: l }, ws(o, L(this, pe)) ? { hasParentParens: s } : {});
|
|
2902
|
+
return c(this, p, He).call(this, o, u, { computed: false, optional: n instanceof ie, hasParentParens: s });
|
|
2903
|
+
}
|
|
2904
|
+
if (n instanceof Ie) {
|
|
2905
|
+
let o = c(this, p, x).call(this, n.key), a = c(this, p, x).call(this, n.value), l = c(this, p, He).call(this, n.receiver, o, { computed: true, optional: false, end: this.getCharacterIndex("]", R(o)) + 1 });
|
|
2906
|
+
return c(this, p, v).call(this, { type: "AssignmentExpression", left: l, operator: "=", right: a, start: $(l), end: R(a) }, { hasParentParens: s });
|
|
2907
|
+
}
|
|
2908
|
+
if (n instanceof Te) {
|
|
2909
|
+
let { receiver: o, name: a, value: l } = n, u = c(this, p, x).call(this, l), h = this.getCharacterLastIndex(/\S/, this.getCharacterLastIndex("=", $(u) - 1) - 1) + 1, g = c(this, p, v).call(this, { type: "Identifier", name: a, start: h - a.length, end: h }), S = c(this, p, He).call(this, o, g, { computed: false, optional: false });
|
|
2910
|
+
return c(this, p, v).call(this, { type: "AssignmentExpression", left: S, operator: "=", right: u, start: $(S), end: R(u) }, { hasParentParens: s });
|
|
2911
|
+
}
|
|
2912
|
+
throw Object.assign(new Error("Unexpected node"), { node: n });
|
|
2913
|
+
}, "Dt");
|
|
2914
|
+
__name(xs, "xs");
|
|
2915
|
+
__name(Ss, "Ss");
|
|
2916
|
+
__name(Es, "Es");
|
|
2917
|
+
Ft = class extends Ue {
|
|
2918
|
+
static {
|
|
2919
|
+
__name(this, "Ft");
|
|
2920
|
+
}
|
|
2921
|
+
constructor(n, s) {
|
|
2922
|
+
super(void 0, s);
|
|
2923
|
+
V(this, m);
|
|
2924
|
+
V(this, he);
|
|
2925
|
+
V(this, Y);
|
|
2926
|
+
Q(this, he, n), Q(this, Y, s);
|
|
2927
|
+
for (let r of n) c(this, m, _s).call(this, r);
|
|
2928
|
+
}
|
|
2929
|
+
get expressions() {
|
|
2930
|
+
return c(this, m, Ts).call(this);
|
|
2931
|
+
}
|
|
2932
|
+
};
|
|
2933
|
+
he = /* @__PURE__ */ new WeakMap(), Y = /* @__PURE__ */ new WeakMap(), m = /* @__PURE__ */ new WeakSet(), ys = /* @__PURE__ */ __name(function() {
|
|
2934
|
+
return L(this, he)[0].key;
|
|
2935
|
+
}, "ys"), I = /* @__PURE__ */ __name(function(n, { stripSpaces: s = true } = {}) {
|
|
2936
|
+
return this.createNode(n, { stripSpaces: s });
|
|
2937
|
+
}, "I"), Vt = /* @__PURE__ */ __name(function(n) {
|
|
2938
|
+
return this.transformNode(n);
|
|
2939
|
+
}, "Vt"), Ht = /* @__PURE__ */ __name(function(n) {
|
|
2940
|
+
return ps(n.slice(L(this, m, ys).source.length));
|
|
2941
|
+
}, "Ht"), Ut = /* @__PURE__ */ __name(function(n) {
|
|
2942
|
+
let s = L(this, Y);
|
|
2943
|
+
if (s[n.start] !== '"' && s[n.start] !== "'") return;
|
|
2944
|
+
let r = s[n.start], o = false;
|
|
2945
|
+
for (let a = n.start + 1; a < s.length; a++) switch (s[a]) {
|
|
2946
|
+
case r:
|
|
2947
|
+
if (!o) {
|
|
2948
|
+
n.end = a + 1;
|
|
2949
|
+
return;
|
|
2950
|
+
}
|
|
2951
|
+
default:
|
|
2952
|
+
o = false;
|
|
2953
|
+
break;
|
|
2954
|
+
case "\\":
|
|
2955
|
+
o = !o;
|
|
2956
|
+
break;
|
|
2957
|
+
}
|
|
2958
|
+
}, "Ut"), _s = /* @__PURE__ */ __name(function(n) {
|
|
2959
|
+
c(this, m, Ut).call(this, n.key.span), Es(n) && n.value && c(this, m, Ut).call(this, n.value.span);
|
|
2960
|
+
}, "_s"), Cs = /* @__PURE__ */ __name(function(n) {
|
|
2961
|
+
if (!n.value || n.value.source) return n.value;
|
|
2962
|
+
let s = this.getCharacterIndex(/\S/, n.sourceSpan.start);
|
|
2963
|
+
return { source: "$implicit", span: { start: s, end: s } };
|
|
2964
|
+
}, "Cs"), Ts = /* @__PURE__ */ __name(function() {
|
|
2965
|
+
let n = L(this, he), [s] = n, r = L(this, Y).slice(s.sourceSpan.start, s.sourceSpan.end).trim().length === 0 ? n.slice(1) : n, o = [], a = null;
|
|
2966
|
+
for (let [l, u] of r.entries()) {
|
|
2967
|
+
if (a && Ss(a) && Es(u) && u.value && u.value.source === a.key.source) {
|
|
2968
|
+
let h = c(this, m, I).call(this, { type: "NGMicrosyntaxKey", name: u.key.source, ...u.key.span }), g = /* @__PURE__ */ __name((y, T) => ({ ...y, ...this.transformSpan({ start: y.start, end: T }) }), "g"), S = /* @__PURE__ */ __name((y) => ({ ...g(y, h.end), alias: h }), "S"), w = o.pop();
|
|
2969
|
+
if (w.type === "NGMicrosyntaxExpression") o.push(S(w));
|
|
2970
|
+
else if (w.type === "NGMicrosyntaxKeyedExpression") {
|
|
2971
|
+
let y = S(w.expression);
|
|
2972
|
+
o.push(g({ ...w, expression: y }, y.end));
|
|
2973
|
+
} else throw new Error(`Unexpected type ${w.type}`);
|
|
2974
|
+
} else o.push(c(this, m, ks).call(this, u, l));
|
|
2975
|
+
a = u;
|
|
2976
|
+
}
|
|
2977
|
+
return c(this, m, I).call(this, { type: "NGMicrosyntax", body: o, ...o.length === 0 ? n[0].sourceSpan : { start: o[0].start, end: nt(false, o, -1).end } });
|
|
2978
|
+
}, "Ts"), ks = /* @__PURE__ */ __name(function(n, s) {
|
|
2979
|
+
if (Ss(n)) {
|
|
2980
|
+
let { key: r, value: o } = n;
|
|
2981
|
+
return o ? s === 0 ? c(this, m, I).call(this, { type: "NGMicrosyntaxExpression", expression: c(this, m, Vt).call(this, o.ast), alias: null, ...o.sourceSpan }) : c(this, m, I).call(this, { type: "NGMicrosyntaxKeyedExpression", key: c(this, m, I).call(this, { type: "NGMicrosyntaxKey", name: c(this, m, Ht).call(this, r.source), ...r.span }), expression: c(this, m, I).call(this, { type: "NGMicrosyntaxExpression", expression: c(this, m, Vt).call(this, o.ast), alias: null, ...o.sourceSpan }), start: r.span.start, end: o.sourceSpan.end }) : c(this, m, I).call(this, { type: "NGMicrosyntaxKey", name: c(this, m, Ht).call(this, r.source), ...r.span });
|
|
2982
|
+
} else {
|
|
2983
|
+
let { key: r, sourceSpan: o } = n;
|
|
2984
|
+
if (/^let\s$/.test(L(this, Y).slice(o.start, o.start + 4))) {
|
|
2985
|
+
let { value: l } = n;
|
|
2986
|
+
return c(this, m, I).call(this, { type: "NGMicrosyntaxLet", key: c(this, m, I).call(this, { type: "NGMicrosyntaxKey", name: r.source, ...r.span }), value: l ? c(this, m, I).call(this, { type: "NGMicrosyntaxKey", name: l.source, ...l.span }) : null, start: o.start, end: l ? l.span.end : r.span.end });
|
|
2987
|
+
} else {
|
|
2988
|
+
let l = c(this, m, Cs).call(this, n);
|
|
2989
|
+
return c(this, m, I).call(this, { type: "NGMicrosyntaxAs", key: c(this, m, I).call(this, { type: "NGMicrosyntaxKey", name: l.source, ...l.span }), alias: c(this, m, I).call(this, { type: "NGMicrosyntaxKey", name: r.source, ...r.span }), start: l.span.start, end: r.span.end });
|
|
2990
|
+
}
|
|
2991
|
+
}
|
|
2992
|
+
}, "ks");
|
|
2993
|
+
__name(Is, "Is");
|
|
2994
|
+
__name(st, "st");
|
|
2995
|
+
__name(bs, "bs");
|
|
2996
|
+
As = /* @__PURE__ */ __name((t26) => st(hs(t26)), "As");
|
|
2997
|
+
Ns = /* @__PURE__ */ __name((t26) => st(ds(t26)), "Ns");
|
|
2998
|
+
Wt = /* @__PURE__ */ __name((t26) => st(fs(t26)), "Wt");
|
|
2999
|
+
Ps = /* @__PURE__ */ __name((t26) => bs(ms(t26)), "Ps");
|
|
3000
|
+
__name(qt, "qt");
|
|
3001
|
+
__name(Ls, "Ls");
|
|
3002
|
+
__name(rt, "rt");
|
|
3003
|
+
Ur = rt(Wt);
|
|
3004
|
+
Wr = rt(As);
|
|
3005
|
+
qr = rt(Ns);
|
|
3006
|
+
jr = rt(Ps);
|
|
3007
|
+
Zi = zt;
|
|
3008
|
+
}
|
|
3009
|
+
});
|
|
3010
|
+
init_angular();
|
|
3011
|
+
export {
|
|
3012
|
+
Zi as default,
|
|
3013
|
+
jt as parsers
|
|
3014
|
+
};
|